hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
565c727f90be501e8abede934cc9f94f687d2ef9
1,942
py
Python
finder.py
wilsontayar/unused-file-finder
2ba8db69a7992f08259998ada66b106f36c318c3
[ "MIT" ]
null
null
null
finder.py
wilsontayar/unused-file-finder
2ba8db69a7992f08259998ada66b106f36c318c3
[ "MIT" ]
1
2015-05-27T14:29:25.000Z
2015-05-27T14:29:25.000Z
finder.py
wilsontayar/unused-file-finder
2ba8db69a7992f08259998ada66b106f36c318c3
[ "MIT" ]
1
2015-05-26T20:17:37.000Z
2015-05-26T20:17:37.000Z
import sys import os LOOKUP_EXTENSIONS = [".cshtml", ".gif", ".jpg", ".png", ".js", ".css"] FILES_TO_SEARCH = [".cshtml", ".cs", ".css", ".less", ".js"] def main(argv): directory = argv[0] files_to_look_for = find_view_files_in_directory(directory) print_break() print("Loading files...") print_break() print(...
25.552632
90
0.703399
f000a17990c00a560b5343bd21010fd37dc0861e
8,176
py
Python
saleor/order/__init__.py
ibutiti/saleor
fffe9a54c01aa07131102474dcb1519e0b59da74
[ "BSD-3-Clause" ]
1
2021-05-29T10:50:02.000Z
2021-05-29T10:50:02.000Z
saleor/order/__init__.py
Niranjoyyengkhom/saleor
4e6c4fe10476508e6b5c06fb1f38f9dc1dfc81a5
[ "CC-BY-4.0" ]
100
2021-06-21T04:32:32.000Z
2022-03-28T04:41:16.000Z
saleor/order/__init__.py
Niranjoyyengkhom/saleor
4e6c4fe10476508e6b5c06fb1f38f9dc1dfc81a5
[ "CC-BY-4.0" ]
null
null
null
from dataclasses import dataclass from typing import TYPE_CHECKING, Optional if TYPE_CHECKING: from ..product.models import ProductVariant from .models import FulfillmentLine, OrderLine class OrderStatus: DRAFT = "draft" # fully editable, not finalized order created by staff users UNCONFIRMED = ( ...
38.748815
88
0.696184
7401c6e9bfa48ea1d9da04c062c224691b0c5a9e
11,667
py
Python
themark/firstgo.py
bcaplins/NIST_APT_TOOLS
80c25498e8b069b8ee289a2d09c76c932c054cea
[ "Unlicense" ]
null
null
null
themark/firstgo.py
bcaplins/NIST_APT_TOOLS
80c25498e8b069b8ee289a2d09c76c932c054cea
[ "Unlicense" ]
null
null
null
themark/firstgo.py
bcaplins/NIST_APT_TOOLS
80c25498e8b069b8ee289a2d09c76c932c054cea
[ "Unlicense" ]
null
null
null
# standard imports import numpy as np import matplotlib.pyplot as plt # Add parent directory to path import sys import os parent_path = '..\\nistapttools' if parent_path not in sys.path: sys.path.append(os.path.abspath(parent_path)) # custom imports import apt_fileio import m2q_calib import plotting_stuff i...
25.926667
185
0.66161
492d2181b11d8ebeb5a7a118c5b43741979abc15
7,103
py
Python
python/singa/data.py
pavan87/Machine-learning
e5c438c3410c714df3a9cdf4fd760676e5eeb721
[ "Apache-2.0" ]
null
null
null
python/singa/data.py
pavan87/Machine-learning
e5c438c3410c714df3a9cdf4fd760676e5eeb721
[ "Apache-2.0" ]
null
null
null
python/singa/data.py
pavan87/Machine-learning
e5c438c3410c714df3a9cdf4fd760676e5eeb721
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
37.582011
90
0.555681
1e98689dd195325a7824d1b3ebaa9b735b238741
2,775
py
Python
src/efficient_det/hyper_parameter_search.py
zeynep68/object-detection-efficientdet
4d4b194bf1641cbb705e7659b66539752986c218
[ "Apache-2.0" ]
null
null
null
src/efficient_det/hyper_parameter_search.py
zeynep68/object-detection-efficientdet
4d4b194bf1641cbb705e7659b66539752986c218
[ "Apache-2.0" ]
null
null
null
src/efficient_det/hyper_parameter_search.py
zeynep68/object-detection-efficientdet
4d4b194bf1641cbb705e7659b66539752986c218
[ "Apache-2.0" ]
null
null
null
from ray import tune from ray.tune import CLIReporter from ray.tune.schedulers import ASHAScheduler from efficient_det.train import distributed_training def hyper_param_search(config, num_tries=10, gpus_per_trial=1, cpus_per_trial=4): """Hyper parameter sweep. Automatically manages resourc...
40.217391
80
0.585225
24bf4f5629aafdcebf3cbade7b1b40f1b9f915ef
11,854
py
Python
reman/tests/tests_reman_views.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
reman/tests/tests_reman_views.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
reman/tests/tests_reman_views.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
from django.urls import reverse from django.contrib.messages import get_messages from django.utils.translation import ugettext as _ from dashboard.tests.base import UnitTest from reman.models import Repair, SparePart, Batch, EcuModel, EcuRefBase, EcuType, Default class RemanTestCase(UnitTest): def setUp(self):...
41.739437
120
0.643749
da8f7e928740b8633705edc46e732450db21aecc
25,020
py
Python
tests/cli/client/test_args.py
tnoff/hathor
237dfe37e93443b5a298f9f4b258d15429d754ea
[ "BSD-2-Clause-FreeBSD" ]
2
2017-05-03T17:52:27.000Z
2019-04-04T22:29:27.000Z
tests/cli/client/test_args.py
tnoff/hathor
237dfe37e93443b5a298f9f4b258d15429d754ea
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/cli/client/test_args.py
tnoff/hathor
237dfe37e93443b5a298f9f4b258d15429d754ea
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from hathor import client, settings, utils from hathor.cli import client as cli from hathor.exc import CLIException from tests import utils as test_utils LOG_LEVELS = [ 'debug', 'info', 'warn', 'error', ] class TestGlobalArgs(test_utils.TestHelper): def setUp(self): # common function to te...
41.839465
94
0.564828
a220216ac3c1d533435314c622b65e4530018f47
6,823
py
Python
ArticleRecommendationProject/Recommendation/CollabContentBased.py
Newsrecommender/newsrecommender
f6d2b720833d7cbca0d905812860193824b4e657
[ "MIT" ]
7
2017-07-08T11:22:39.000Z
2020-04-12T01:44:58.000Z
ArticleRecommendationProject/Recommendation/CollabContentBased.py
Newsrecommender/newsrecommender
f6d2b720833d7cbca0d905812860193824b4e657
[ "MIT" ]
null
null
null
ArticleRecommendationProject/Recommendation/CollabContentBased.py
Newsrecommender/newsrecommender
f6d2b720833d7cbca0d905812860193824b4e657
[ "MIT" ]
5
2017-07-09T09:38:59.000Z
2018-10-23T07:41:08.000Z
import yaml import pandas as pd import numpy as np import sys import os from math import sqrt import matplotlib import matplotlib.pyplot as plot import networkx as nx class Collabcontentbased(object): def __init__(self): self.object = object def get_script_directory(self): """ This fun...
43.183544
202
0.678001
d4f35bed741e094da299267b64cfa2820f50cdd3
22,610
py
Python
Code/GraphMol/SubstructLibrary/Wrap/rough_test.py
nbehrnd/rdkit
3262b498149f8dcdabe8d74b6d3882c685bbc252
[ "BSD-3-Clause" ]
1
2017-08-18T02:26:16.000Z
2017-08-18T02:26:16.000Z
Code/GraphMol/SubstructLibrary/Wrap/rough_test.py
nbehrnd/rdkit
3262b498149f8dcdabe8d74b6d3882c685bbc252
[ "BSD-3-Clause" ]
9
2016-08-08T13:53:40.000Z
2020-03-08T05:52:07.000Z
Code/GraphMol/SubstructLibrary/Wrap/rough_test.py
bp-kelley/rdkit
e0de7c9622ce73894b1e7d9568532f6d5638058a
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2017-2021 Novartis Institute of BioMedical Research # and other RDKit contributors # # All Rights Reserved # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of sourc...
40.447227
109
0.657497
b24c13b68a700125579f4922aa4ee6f57d020a98
16,872
py
Python
setup.py
venkatalolla/ose3.9
6ad78c11b7b76f1e05bce5b49601cf1f1d95812b
[ "Apache-2.0" ]
1
2018-11-14T01:47:19.000Z
2018-11-14T01:47:19.000Z
setup.py
venkatalolla/ose3.9
6ad78c11b7b76f1e05bce5b49601cf1f1d95812b
[ "Apache-2.0" ]
null
null
null
setup.py
venkatalolla/ose3.9
6ad78c11b7b76f1e05bce5b49601cf1f1d95812b
[ "Apache-2.0" ]
4
2018-07-30T02:40:11.000Z
2019-11-12T06:59:02.000Z
"""A setuptools based setup module. """ from __future__ import print_function import os import fnmatch import re import sys import subprocess import yaml # Always prefer setuptools over distutils from setuptools import setup, Command from setuptools_lint.setuptools_command import PylintCommand from six import string...
37.162996
107
0.584993
66dee474a0314024685f63625b81822e9865ac19
9,705
py
Python
common/src/stack/ws/restapi/views.py
kmcm0/stacki
eb9dff1b45d5725b4986e567876bf61707fec28f
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/ws/restapi/views.py
kmcm0/stacki
eb9dff1b45d5725b4986e567876bf61707fec28f
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/ws/restapi/views.py
kmcm0/stacki
eb9dff1b45d5725b4986e567876bf61707fec28f
[ "BSD-3-Clause" ]
null
null
null
# # @copyright@ # Copyright (c) 2006 - 2019 Teradata # All rights reserved. Stacki(r) v5.x stacki.com # https://github.com/Teradata/stacki/blob/master/LICENSE.txt # @copyright@ # from django.views.generic import View from django.http import HttpResponse, HttpResponseForbidden from django.utils.decorators import method...
25.81117
92
0.643174
2609f4bc19cf76159251c67fb2ad3cc3561c7186
4,042
py
Python
facebook_business/adobjects/audiocopyright.py
s-nez/facebook-python-business-sdk
4766644c7585d2e262463862f8aae26d5bea2615
[ "CNRI-Python" ]
1
2020-05-10T20:53:02.000Z
2020-05-10T20:53:02.000Z
facebook_business/adobjects/audiocopyright.py
s-nez/facebook-python-business-sdk
4766644c7585d2e262463862f8aae26d5bea2615
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/audiocopyright.py
s-nez/facebook-python-business-sdk
4766644c7585d2e262463862f8aae26d5bea2615
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
37.775701
103
0.68951
71afc0e93148ea4fd42b32e133043608786f3c7a
523
py
Python
packages/pyre/algebraic/Leaf.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
3
2019-08-02T21:02:47.000Z
2021-09-08T13:59:43.000Z
packages/pyre/algebraic/Leaf.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
null
null
null
packages/pyre/algebraic/Leaf.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2019 all rights reserved # class Leaf: """ Mix-in class that provides an implementation of the subset of the interface of {Node} that requires traversals of the expression graph rooted at leaf nodes. """ # interface @pr...
18.034483
94
0.596558
621180752abeaa1151b56d2604b139435c29a535
1,124
py
Python
Algorithms/Dutch_National_Flag_Algorithm.py
Pratik110/Python
033ade0dff3dc3bee91eefb53d7eb87a4f4f003d
[ "MIT" ]
null
null
null
Algorithms/Dutch_National_Flag_Algorithm.py
Pratik110/Python
033ade0dff3dc3bee91eefb53d7eb87a4f4f003d
[ "MIT" ]
null
null
null
Algorithms/Dutch_National_Flag_Algorithm.py
Pratik110/Python
033ade0dff3dc3bee91eefb53d7eb87a4f4f003d
[ "MIT" ]
null
null
null
Algorithm = "Dutch National Flag Algorithm" Link = "https://leetcode.com/problems/sort-colors/" Description = "Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of" \ "the same color are adjacent, with the colors in the order red, white, and blue." \ ...
32.114286
119
0.508897
e9b80c052294c96eda02518562b3049778980752
19,147
py
Python
built-in/MindSpore/Official/cv/detection/CenterFace_for_MindSpore/train.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
built-in/MindSpore/Official/cv/detection/CenterFace_for_MindSpore/train.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
built-in/MindSpore/Official/cv/detection/CenterFace_for_MindSpore/train.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
44.527907
167
0.629811
ddfd44f2d155c982d19c953dfd5fc3ab97262800
3,621
py
Python
intake/source/tests/test_text.py
gramhagen/intake
de4cbb5df78881dc166b1f02743d22067f2bbd78
[ "BSD-2-Clause" ]
null
null
null
intake/source/tests/test_text.py
gramhagen/intake
de4cbb5df78881dc166b1f02743d22067f2bbd78
[ "BSD-2-Clause" ]
null
null
null
intake/source/tests/test_text.py
gramhagen/intake
de4cbb5df78881dc166b1f02743d22067f2bbd78
[ "BSD-2-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2018, Anaconda, Inc. and Intake contributors # All rights reserved. # # The full license is in the LICENSE file, distributed with this software. #------------------------------------------------------------------------...
34.817308
78
0.573598
235f09e4cb837545a38b4a1952ecfa35ee4191db
1,457
py
Python
arjuna-samples/workspace/arjex/tests/modules/s01unitee_engine/ep14_my_config/ex01_central.py
test-mile/arjuna
21880b41e061e11bac2e600a3614684f8af75b2f
[ "Apache-2.0" ]
9
2018-11-15T10:09:17.000Z
2021-01-12T05:59:19.000Z
arjuna-samples/workspace/arjex/tests/modules/s01unitee_engine/ep14_my_config/ex01_central.py
test-mile/arjuna
21880b41e061e11bac2e600a3614684f8af75b2f
[ "Apache-2.0" ]
2
2019-07-01T15:33:46.000Z
2019-07-12T13:04:08.000Z
arjuna-samples/workspace/arjex/tests/modules/s01unitee_engine/ep14_my_config/ex01_central.py
test-mile/arjuna
21880b41e061e11bac2e600a3614684f8af75b2f
[ "Apache-2.0" ]
4
2018-12-02T15:14:04.000Z
2020-05-28T12:57:24.000Z
''' This file is a part of Test Mile Arjuna Copyright 2018 Test Mile Software Testing Pvt Ltd Website: www.TestMile.com Email: support [at] testmile.com Creator: Rahul Verma Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain ...
34.690476
79
0.780371
b0794cfce39bec6671b2b59a773b07d6b360613c
9,625
py
Python
simpleplots/utils.py
a-maliarov/simplegraphs
bba3fb9420ce136da4f3d5096a9caff970eba87e
[ "MIT" ]
2
2022-02-09T03:33:00.000Z
2022-02-14T11:14:21.000Z
simpleplots/utils.py
a-maliarov/simplegraphs
bba3fb9420ce136da4f3d5096a9caff970eba87e
[ "MIT" ]
2
2022-02-06T17:39:39.000Z
2022-03-31T19:00:13.000Z
simpleplots/utils.py
a-maliarov/simpleplots
bba3fb9420ce136da4f3d5096a9caff970eba87e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ simpleplots.utils ~~~~~~~~~~~~~~~~~ This module contains simpleplots' utilities. """ __all__ = ('get_font', 'get_text_dimensions', 'normalize_float', 'find_gcd', 'decimals', 'isint', 'normalize_values', 'frange', 'smartrange' 'get_indices_of_values_in_list', 'choose...
35.780669
85
0.576104
74a1980e3f0bb77293f31079ba0b1454e4d68069
23,115
py
Python
tests/test_tables.py
bdemchak/PyCy3
4058e41689c78304812b1e6fd8371d797cbb6b5b
[ "MIT" ]
1
2020-02-10T12:50:35.000Z
2020-02-10T12:50:35.000Z
tests/test_tables.py
bdemchak/PyCy3
4058e41689c78304812b1e6fd8371d797cbb6b5b
[ "MIT" ]
2
2020-02-14T21:19:27.000Z
2020-04-21T21:30:26.000Z
tests/test_tables.py
bdemchak/PyCy3
4058e41689c78304812b1e6fd8371d797cbb6b5b
[ "MIT" ]
1
2020-02-10T17:16:17.000Z
2020-02-10T17:16:17.000Z
# -*- coding: utf-8 -*- """ Test functions in tables.py. """ import numpy as np """License: Copyright 2020 The Cytoscape Consortium Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software wi...
59.117647
193
0.664114
630cdbbbaabe9712ec5bd6e0f19e766ff8c98cc0
479
py
Python
ScienceCruiseDataManagement/main/migrations/0026_auto_20170113_0520.py
Swiss-Polar-Institute/science-cruise-data-management
67721a0f4a1255b8ac43e530ed95a8c324239c7c
[ "MIT" ]
6
2017-10-06T09:18:04.000Z
2022-02-10T08:54:56.000Z
ScienceCruiseDataManagement/main/migrations/0026_auto_20170113_0520.py
Swiss-Polar-Institute/science-cruise-data-management
67721a0f4a1255b8ac43e530ed95a8c324239c7c
[ "MIT" ]
12
2020-02-27T09:24:50.000Z
2021-09-22T17:39:55.000Z
ScienceCruiseDataManagement/main/migrations/0026_auto_20170113_0520.py
Swiss-Polar-Institute/science-cruise-data-management
67721a0f4a1255b8ac43e530ed95a8c324239c7c
[ "MIT" ]
1
2017-10-16T13:49:33.000Z
2017-10-16T13:49:33.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-01-13 03:11 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import smart_selects.db_fields class Migration(migrations.Migration): dependencies = [ ('main', '0025_auto_20170113_0...
20.826087
48
0.659708
4b78df008cc4ebb4fb7cf0f8c524fdc3fc0e2ed6
25,929
py
Python
arcade/sprite.py
ercasta/arcade
4e664d578344ff845fc18f0b5c1cd6f1ee2028ba
[ "MIT" ]
null
null
null
arcade/sprite.py
ercasta/arcade
4e664d578344ff845fc18f0b5c1cd6f1ee2028ba
[ "MIT" ]
null
null
null
arcade/sprite.py
ercasta/arcade
4e664d578344ff845fc18f0b5c1cd6f1ee2028ba
[ "MIT" ]
null
null
null
""" This module manages all of the code around Sprites. For information on Spatial Hash Maps, see: https://www.gamedev.net/articles/programming/general-and-gameplay-programming/spatial-hashing-r2697/ """ import math from arcade.draw_commands import load_texture from arcade.draw_commands import draw_texture_rectang...
36.571227
114
0.594585
22ab7ec10b242599583b3010e8c37e57050f61d6
9,315
py
Python
selfdrive/car/honda/carcontroller.py
reddn/openpilothack
f11b2cfef0cfe8fe9e2f2cbc4348f61e83ff27a1
[ "MIT" ]
1
2021-11-10T05:23:50.000Z
2021-11-10T05:23:50.000Z
selfdrive/car/honda/carcontroller.py
reddn/openpilothack
f11b2cfef0cfe8fe9e2f2cbc4348f61e83ff27a1
[ "MIT" ]
null
null
null
selfdrive/car/honda/carcontroller.py
reddn/openpilothack
f11b2cfef0cfe8fe9e2f2cbc4348f61e83ff27a1
[ "MIT" ]
1
2021-11-10T05:23:52.000Z
2021-11-10T05:23:52.000Z
from cereal import car from collections import namedtuple from selfdrive.boardd.boardd import can_list_to_can_capnp from selfdrive.controls.lib.drive_helpers import rate_limit from common.numpy_fast import clip from selfdrive.car.honda import hondacan from selfdrive.car.honda.values import AH, CruiseButtons, CAR from s...
39.978541
205
0.672678
ec8c55df94f2d8baee2f8927737aa128fc29489c
619
py
Python
mitmirror/main/adapters/request_adapter.py
Claayton/mitmirror-api
a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1
[ "MIT" ]
null
null
null
mitmirror/main/adapters/request_adapter.py
Claayton/mitmirror-api
a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1
[ "MIT" ]
1
2021-10-09T20:42:03.000Z
2021-10-09T20:42:03.000Z
mitmirror/main/adapters/request_adapter.py
Claayton/mitmirror-api
a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1
[ "MIT" ]
null
null
null
"""Adaptando requisicos para o FastAPI""" from typing import Callable from fastapi import Request as RequestFastApi from mitmirror.presenters.helpers import HttpRequest async def request_adapter( request: RequestFastApi, callback: Callable, user_id: int = None ): """Adaptador de requisicoes para FastApi""" ...
24.76
70
0.71567
2b6a2791dc1b7a8bb8d486e6bb402578ab601b8e
279
py
Python
tests/test.py
pfriesch/neural-pipeline
2df4f7467a721b1fbd93f4439086c6dcee5dac2c
[ "MIT" ]
null
null
null
tests/test.py
pfriesch/neural-pipeline
2df4f7467a721b1fbd93f4439086c6dcee5dac2c
[ "MIT" ]
null
null
null
tests/test.py
pfriesch/neural-pipeline
2df4f7467a721b1fbd93f4439086c6dcee5dac2c
[ "MIT" ]
null
null
null
import unittest from .data_processor_test import * from .data_producer_test import * from .train_config_test import * from .utils_test import * from .train_test import * from .predict_test import * from .monitoring_test import * if __name__ == '__main__': unittest.main()
19.928571
34
0.770609
43d9f6a83a93b4a0da94df83672385573bdfe775
2,940
py
Python
setup/settings/settings.py
scpaes/jungledevs-challenge
188bc7a4aacbb278a9486c57685db53be0477d51
[ "MIT" ]
null
null
null
setup/settings/settings.py
scpaes/jungledevs-challenge
188bc7a4aacbb278a9486c57685db53be0477d51
[ "MIT" ]
6
2021-08-10T02:19:35.000Z
2021-08-10T02:24:05.000Z
setup/settings/settings.py
scpaes/jungledevs-challenge
188bc7a4aacbb278a9486c57685db53be0477d51
[ "MIT" ]
null
null
null
from pathlib import Path import os # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ # Application definition INST...
25.344828
91
0.690476
83aab244baacd2ecc9fdca56698c2f070ba52ba2
22,498
py
Python
google/cloud/dialogflow_v2/__init__.py
rkdfc93/python-dialogflow
a59cff0298ef18674c0b4133ef0a6ab82e288920
[ "Apache-2.0" ]
171
2018-09-19T21:16:18.000Z
2020-12-07T17:41:10.000Z
google/cloud/dialogflow_v2/__init__.py
rkdfc93/python-dialogflow
a59cff0298ef18674c0b4133ef0a6ab82e288920
[ "Apache-2.0" ]
150
2018-09-25T14:04:28.000Z
2020-12-09T21:45:43.000Z
google/cloud/dialogflow_v2/__init__.py
rkdfc93/python-dialogflow
a59cff0298ef18674c0b4133ef0a6ab82e288920
[ "Apache-2.0" ]
75
2018-09-22T14:12:18.000Z
2020-12-08T07:12:12.000Z
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
42.369115
88
0.834119
67cacd89124fd68874302e8ab9d12be22b7b8722
2,384
py
Python
configs/selfsup/simclr/r50_bs256_ep200_mocov2_neck.py
neuroailab/OpenSelfSup
37709c326173a981292fed12c336c82d3356cab2
[ "Apache-2.0" ]
2
2020-07-01T02:46:25.000Z
2021-02-21T03:56:10.000Z
configs/selfsup/simclr/r50_bs256_ep200_mocov2_neck.py
neuroailab/OpenSelfSup
37709c326173a981292fed12c336c82d3356cab2
[ "Apache-2.0" ]
null
null
null
configs/selfsup/simclr/r50_bs256_ep200_mocov2_neck.py
neuroailab/OpenSelfSup
37709c326173a981292fed12c336c82d3356cab2
[ "Apache-2.0" ]
null
null
null
_base_ = '../../base.py' # model settings model = dict( type='SimCLR', pretrained=None, backbone=dict( type='ResNet', depth=50, in_channels=3, out_indices=[4], # 0: conv-1, x: stage-x norm_cfg=dict(type='SyncBN')), neck=dict( type='NonLinearNeckV1', # sim...
29.432099
92
0.585151
5cbe7559ff5c9d72eee6f8abf6cbf23660b4c06a
1,999
py
Python
atcoder/python/manhattan.py
yskang/AlgorithmPracticeWithPython
f7129bd1924a7961489198f0ee052d2cd1e9cf40
[ "MIT" ]
null
null
null
atcoder/python/manhattan.py
yskang/AlgorithmPracticeWithPython
f7129bd1924a7961489198f0ee052d2cd1e9cf40
[ "MIT" ]
null
null
null
atcoder/python/manhattan.py
yskang/AlgorithmPracticeWithPython
f7129bd1924a7961489198f0ee052d2cd1e9cf40
[ "MIT" ]
null
null
null
# Title: Manhattan Crepe Cart # Link: hhttps://codingcompetitions.withgoogle.com/codejam/round/0000000000051706/000000000012295c import sys import bisect sys.setrecursionlimit(10 ** 6) read_single_int = lambda: int(sys.stdin.readline().strip()) read_list_int = lambda: list(map(int, sys.stdin.readline().stri...
26.302632
99
0.528764
059e2589ae4d045f29a95059b303da34f3fbd7d4
9,335
py
Python
huaweicloud-sdk-smn/huaweicloudsdksmn/v2/model/list_message_template_details_response.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-smn/huaweicloudsdksmn/v2/model/list_message_template_details_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-smn/huaweicloudsdksmn/v2/model/list_message_template_details_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ListMessageTemplateDetailsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attri...
31.116667
203
0.633637
a42c246a551c8421ed31b5b78c59629ddbd58d67
446
py
Python
Heap/heapq.py
liu-yunpeng/algorithms
1bbe34b4a3d2f090007faec25220ac8535213da7
[ "MIT" ]
3
2021-04-24T01:20:27.000Z
2021-04-24T20:39:27.000Z
Heap/heapq.py
liu-yunpeng/algorithms
1bbe34b4a3d2f090007faec25220ac8535213da7
[ "MIT" ]
null
null
null
Heap/heapq.py
liu-yunpeng/algorithms
1bbe34b4a3d2f090007faec25220ac8535213da7
[ "MIT" ]
null
null
null
import heapq lst = [6, 7, 9, 4, 3, 5, 8, 10, 1] # using heapify() to convert list into heap heapq.heapify(lst) # get the largest k elements print(heapq.nlargest(3, lst)) # get the smallest k elements print(heapq.nsmallest(3, lst)) heapq.heappush(lst, 2) heapq.heappush(lst, 12) print(lst) heapq.heappop(lst) heap...
14.866667
43
0.704036
0cfecda054a672cc32a062436e6a5cfeae36e263
21,736
py
Python
rescene/utility.py
zordtk/pyReScene
fe20ee6c72dcbd62e92d53678016321705795871
[ "MIT" ]
null
null
null
rescene/utility.py
zordtk/pyReScene
fe20ee6c72dcbd62e92d53678016321705795871
[ "MIT" ]
null
null
null
rescene/utility.py
zordtk/pyReScene
fe20ee6c72dcbd62e92d53678016321705795871
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2008-2010 ReScene.com # Copyright (c) 2011-2015 pyReScene # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to deal in the Software without # restrictio...
32.345238
110
0.673261
62ed9b3f37a9b7612bf899204cfcf17aa9f1873b
844
py
Python
contrib/workflow/SpiffWorkflow/src/SpiffWorkflow/Operators/Attrib.py
gonicus/clacks
da579f0acc4e48cf2e9451417ac6792282cf7ab6
[ "ZPL-2.1" ]
2
2015-01-26T07:15:19.000Z
2015-11-09T13:42:11.000Z
contrib/workflow/SpiffWorkflow/src/SpiffWorkflow/Operators/Attrib.py
gonicus/clacks
da579f0acc4e48cf2e9451417ac6792282cf7ab6
[ "ZPL-2.1" ]
null
null
null
contrib/workflow/SpiffWorkflow/src/SpiffWorkflow/Operators/Attrib.py
gonicus/clacks
da579f0acc4e48cf2e9451417ac6792282cf7ab6
[ "ZPL-2.1" ]
null
null
null
# Copyright (C) 2007 Samuel Abels # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distri...
42.2
80
0.75237
50d72e2c72d89a9b49bc4c7895dd1e7d73cf6df5
21,199
py
Python
vspk/v4_0/nuzfbrequest.py
mohaimenhasan/vspk-python
4c7b297427048340b250cc3c74d9214dc0d4bde1
[ "BSD-3-Clause" ]
null
null
null
vspk/v4_0/nuzfbrequest.py
mohaimenhasan/vspk-python
4c7b297427048340b250cc3c74d9214dc0d4bde1
[ "BSD-3-Clause" ]
null
null
null
vspk/v4_0/nuzfbrequest.py
mohaimenhasan/vspk-python
4c7b297427048340b250cc3c74d9214dc0d4bde1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyrigh...
28.802989
214
0.583046
1c5292b9f47e3e88d43a8c4d34058765d7c0a84f
6,183
py
Python
pint/measurement.py
Suseko/pint
4d0f842d8cd15e6d1763a63a2d1b4a8150847a45
[ "BSD-3-Clause" ]
1,545
2015-01-02T17:08:07.000Z
2022-03-30T15:46:42.000Z
pint/measurement.py
Suseko/pint
4d0f842d8cd15e6d1763a63a2d1b4a8150847a45
[ "BSD-3-Clause" ]
1,253
2015-01-02T22:45:45.000Z
2022-03-31T21:05:47.000Z
pint/measurement.py
Suseko/pint
4d0f842d8cd15e6d1763a63a2d1b4a8150847a45
[ "BSD-3-Clause" ]
425
2015-01-18T16:59:57.000Z
2022-03-30T15:21:07.000Z
""" pint.measurement ~~~~~~~~~~~~~~~~ :copyright: 2016 by Pint Authors, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import re from .compat import ufloat from .formatting import _FORMATS, extract_custom_flags, siunitx_format_unit from .quantity import Quantity MISSIN...
32.714286
95
0.547954
b79604a062f0b3fad35e3b5e278d56edab4de024
6,135
py
Python
classset.py
Daedo/Otter
b82a74e908c196838a55abc1e001a30256e87542
[ "MIT" ]
null
null
null
classset.py
Daedo/Otter
b82a74e908c196838a55abc1e001a30256e87542
[ "MIT" ]
null
null
null
classset.py
Daedo/Otter
b82a74e908c196838a55abc1e001a30256e87542
[ "MIT" ]
null
null
null
from typing import Set, List, Any from testclass import * import operator class ClassSet: def __init__(self, classes: List[TestClass]=[]): self._classes = classes # type: List[TestClass] # Cache Unique Elements self._uniques = None # type: List[Set[Any]] self._level = None ...
32.807487
86
0.567237
79be78a385ff2cb8dd98c233b5e97484c82faab1
3,314
py
Python
test/functional/test_framework/address.py
BitPalnet/BitPal
0cce7aea31a2e45fecec0e2ef42728aa26355704
[ "MIT" ]
1
2021-03-09T22:25:20.000Z
2021-03-09T22:25:20.000Z
test/functional/test_framework/address.py
BitPalnet/BitPal
0cce7aea31a2e45fecec0e2ef42728aa26355704
[ "MIT" ]
null
null
null
test/functional/test_framework/address.py
BitPalnet/BitPal
0cce7aea31a2e45fecec0e2ef42728aa26355704
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-2019 The BitPal Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Encode and decode BASE58, P2PKH and P2SH addresses.""" import enum from .script import hash256, hash16...
32.174757
120
0.706397
880612d37103389da74af713a9701b440f4aa3eb
32
py
Python
build/lib/simple-default-backpropagation-ann-package/__init__.py
andairka/Simple-default-Backpropagation-ANN
995de1471e2b132af721b2babbec034f29228640
[ "MIT" ]
null
null
null
build/lib/simple-default-backpropagation-ann-package/__init__.py
andairka/Simple-default-Backpropagation-ANN
995de1471e2b132af721b2babbec034f29228640
[ "MIT" ]
null
null
null
build/lib/simple-default-backpropagation-ann-package/__init__.py
andairka/Simple-default-Backpropagation-ANN
995de1471e2b132af721b2babbec034f29228640
[ "MIT" ]
null
null
null
from GUI import GUI gui = GUI()
10.666667
19
0.6875
0f8edfb439ffc22a93490d3c53d776761d1dd462
15,499
py
Python
maskrcnn_benchmark/data/datasets/evaluation/vg/vg_eval.py
SkrighYZ/scene_graph_benchmark
b17e831a031e11c7b56d12dd092e8f476e48e3d4
[ "MIT" ]
210
2021-04-13T09:16:33.000Z
2022-03-29T03:13:18.000Z
maskrcnn_benchmark/data/datasets/evaluation/vg/vg_eval.py
SkrighYZ/scene_graph_benchmark
b17e831a031e11c7b56d12dd092e8f476e48e3d4
[ "MIT" ]
72
2021-04-13T18:21:37.000Z
2022-03-25T13:45:55.000Z
maskrcnn_benchmark/data/datasets/evaluation/vg/vg_eval.py
SkrighYZ/scene_graph_benchmark
b17e831a031e11c7b56d12dd092e8f476e48e3d4
[ "MIT" ]
55
2021-04-13T09:16:37.000Z
2022-03-29T08:31:04.000Z
# A modification version from chainercv repository. # (See https://github.com/chainer/chainercv/blob/master/chainercv/evaluations/eval_detection_voc.py) from __future__ import division import os import numpy as np import torch from maskrcnn_benchmark.structures.bounding_box import BoxList from maskrcnn_benchmark.data....
39.538265
121
0.561004
50666b561825d43a37197be46479ad0e99d7cbf6
12,508
py
Python
thirdparty/DOTA_devkit/dota_evaluation_task1_.py
Artcs1/RotationDetection
095be17345ee9984d8de8f24eb6b5a0b2d764a06
[ "Apache-2.0" ]
850
2020-10-27T08:51:54.000Z
2022-03-30T15:12:06.000Z
thirdparty/DOTA_devkit/dota_evaluation_task1_.py
Artcs1/RotationDetection
095be17345ee9984d8de8f24eb6b5a0b2d764a06
[ "Apache-2.0" ]
94
2020-12-01T02:18:47.000Z
2022-03-30T08:14:27.000Z
thirdparty/DOTA_devkit/dota_evaluation_task1_.py
Artcs1/RotationDetection
095be17345ee9984d8de8f24eb6b5a0b2d764a06
[ "Apache-2.0" ]
149
2020-10-29T03:30:32.000Z
2022-03-29T09:53:23.000Z
# -------------------------------------------------------- # dota_evaluation_task1 # Licensed under The MIT License [see LICENSE for details] # Written by Jian Ding, based on code from Bharath Hariharan # -------------------------------------------------------- """ To use the code, users should to config detpath, ...
37.449102
149
0.529341
7101183ccdb4121f3893bcbc1898ec763bbda397
266
py
Python
tests/artificial/transf_Integration/trend_Lag1Trend/cycle_12/ar_/test_artificial_128_Integration_Lag1Trend_12__0.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_Integration/trend_Lag1Trend/cycle_12/ar_/test_artificial_128_Integration_Lag1Trend_12__0.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_Integration/trend_Lag1Trend/cycle_12/ar_/test_artificial_128_Integration_Lag1Trend_12__0.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 12, transform = "Integration", sigma = 0.0, exog_count = 0, ar_order = 0);
38
166
0.733083
5fa561e301f6927210036fa24166045ed28233be
1,847
py
Python
cpl_media/__init__.py
matham/cpl_media
4e01b61648562a76f05c5ff696f43972924e9101
[ "MIT" ]
null
null
null
cpl_media/__init__.py
matham/cpl_media
4e01b61648562a76f05c5ff696f43972924e9101
[ "MIT" ]
null
null
null
cpl_media/__init__.py
matham/cpl_media
4e01b61648562a76f05c5ff696f43972924e9101
[ "MIT" ]
1
2020-01-13T19:47:26.000Z
2020-01-13T19:47:26.000Z
"""cpl_media ================= A library providing kivy support for playing and recording from various cameras. """ from functools import wraps import traceback import sys import pathlib import os __all__ = ('error_guard', 'error_callback', 'get_pyinstaller_datas') __version__ = '0.1.3.dev0' def _error_callback(e,...
26.385714
79
0.636708
b2dfcec42ac92e5d3c8ec2ec76590e97fee75e9d
3,913
py
Python
dimsdk/cpu/__init__.py
dimchat/sdk-py
94223b5e6fa7f56eacc523ea3d803086f8b6c64d
[ "MIT" ]
null
null
null
dimsdk/cpu/__init__.py
dimchat/sdk-py
94223b5e6fa7f56eacc523ea3d803086f8b6c64d
[ "MIT" ]
null
null
null
dimsdk/cpu/__init__.py
dimchat/sdk-py
94223b5e6fa7f56eacc523ea3d803086f8b6c64d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # DIM-SDK : Decentralized Instant Messaging Software Development Kit # # Written in 2019 by Moky <albert.moky@gmail.com> # # ============================================================================== # MIT License # # Copyright (c) 2019 Albert Moky # # Perm...
37.625
94
0.740864
f25f43664e262b25473557c5f11dae91e697e3f6
2,115
py
Python
youtube_dl/extractor/infoq.py
Logmytech/youtube-dl-QT
1497297719a95c4f70fbfa32e0fa4e38cdd475dc
[ "MIT" ]
1
2015-02-19T13:13:47.000Z
2015-02-19T13:13:47.000Z
youtube_dl/extractor/infoq.py
Logmytech/youtube-dl-QT
1497297719a95c4f70fbfa32e0fa4e38cdd475dc
[ "MIT" ]
2
2019-05-20T12:46:30.000Z
2020-11-07T12:50:32.000Z
youtube_dl/extractor/infoq.py
Logmytech/youtube-dl-QT
1497297719a95c4f70fbfa32e0fa4e38cdd475dc
[ "MIT" ]
5
2020-10-25T09:18:58.000Z
2021-05-23T22:57:55.000Z
from __future__ import unicode_literals import base64 from .common import InfoExtractor from ..compat import ( compat_urllib_parse, ) class InfoQIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?infoq\.com/[^/]+/(?P<id>[^/]+)$' _TEST = { 'url': 'http://www.infoq.com/presentations/A-Few-of-My...
32.538462
169
0.575887
aee6804b55465fa9bcd9d8ef5cc9b1fb8fbeb87e
360
py
Python
libhdhomerun/common/lineup.py
fugf123d/astrilchukj
966e6f85789b9eac554a93320a62d98d517015ea
[ "MIT" ]
null
null
null
libhdhomerun/common/lineup.py
fugf123d/astrilchukj
966e6f85789b9eac554a93320a62d98d517015ea
[ "MIT" ]
null
null
null
libhdhomerun/common/lineup.py
fugf123d/astrilchukj
966e6f85789b9eac554a93320a62d98d517015ea
[ "MIT" ]
null
null
null
from channel import Channel class Lineup(list): def __init__(self, *args, **kwargs): super(Lineup, self).__init__(*args, **kwargs) def get_channel_numbers(self): return [channel.guide_number for channel in self] @classmethod def from_iterable(cls, iterable): return cls([Chann...
25.714286
64
0.683333
7ab8d78ee794b7954c350e09c63c3cd3b7a14d41
748
py
Python
xlsxwriter/test/vml/test_write_stroke.py
yxwlr995/-Python-Pandas-XlsxWriter
cd28c1b968795b67f3013c49a0e02ffda5898163
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/vml/test_write_stroke.py
yxwlr995/-Python-Pandas-XlsxWriter
cd28c1b968795b67f3013c49a0e02ffda5898163
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/vml/test_write_stroke.py
yxwlr995/-Python-Pandas-XlsxWriter
cd28c1b968795b67f3013c49a0e02ffda5898163
[ "BSD-2-Clause-FreeBSD" ]
1
2020-04-12T16:44:58.000Z
2020-04-12T16:44:58.000Z
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013, John McNamara, jmcnamara@cpan.org # import unittest from ..compatibility import StringIO from ...vml import Vml class TestWriteVstroke(unittest.TestCase): """ Test the Vml _write...
20.216216
79
0.552139
eb0425ab38bd578e179ec39d41ae07428735d050
10,955
py
Python
isi_sdk_9_0_0/isi_sdk_9_0_0/models/drives_drive_firmware_node_drive.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_9_0_0/isi_sdk_9_0_0/models/drives_drive_firmware_node_drive.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_9_0_0/isi_sdk_9_0_0/models/drives_drive_firmware_node_drive.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 10 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class DrivesDriveFirmwareNodeDr...
35.22508
147
0.618622
da984d6838d2fa8f4c7a751bb666e363a16e1e86
717
py
Python
kombu/utils/__init__.py
nlundquist/kombu
483cadced77d82a6ecd0be553b91ce92f04f9617
[ "BSD-3-Clause" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/kombu-4.3.0/kombu/utils/__init__.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/kombu-4.3.0/kombu/utils/__init__.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
"""DEPRECATED - Import from modules below.""" from __future__ import absolute_import, print_function, unicode_literals from .collections import EqualityDict from .compat import fileno, maybe_fileno, nested, register_after_fork from .div import emergency_dump_state from .functional import ( fxrange, fxrangemax, may...
34.142857
72
0.764296
8f8fa5f495a91d013c4df279f146ce1be31c98fa
1,767
py
Python
tests/book/ch02/dat.py
xchaoinfo/pyhanlp
d61829a7aa35965e34ca0e220ee7f83bd3e8c5ed
[ "Apache-2.0" ]
2,792
2018-03-19T10:24:23.000Z
2022-03-29T07:46:53.000Z
pyhanlp-master/tests/book/ch02/dat.py
tianmingl/maincode
724c60d5281ba3911ca065d9e144bb1b09e8257f
[ "MIT" ]
50
2018-03-19T11:08:37.000Z
2022-01-11T16:34:00.000Z
pyhanlp-master/tests/book/ch02/dat.py
tianmingl/maincode
724c60d5281ba3911ca065d9e144bb1b09e8257f
[ "MIT" ]
802
2018-03-19T11:08:49.000Z
2022-03-22T07:20:26.000Z
# -*- coding:utf-8 -*- # Author:hankcs # Date: 2018-05-26 21:16 # 《自然语言处理入门》2.5 双数组字典树 # 配套书籍:http://nlp.hankcs.com/book.php # 讨论答疑:https://bbs.hankcs.com/ from pyhanlp import * class DoubleArrayTrie(object): def __init__(self, dic: dict) -> None: m = JClass('java.util.TreeMap')() for k, v in dic...
28.047619
109
0.526882
7a4a0cabee4e9cb1e23f1acf37c6c01b81024d93
11,636
py
Python
backend/data/client/lunarcrush.py
huenique/gibme-crypto
970f2ab072682c4533a348783c29c40a8fcdd26e
[ "MIT" ]
2
2021-05-23T23:29:56.000Z
2021-05-24T00:16:30.000Z
backend/data/client/lunarcrush.py
huenique/gibme-crypto
970f2ab072682c4533a348783c29c40a8fcdd26e
[ "MIT" ]
6
2021-05-20T14:57:19.000Z
2021-05-26T19:45:01.000Z
backend/data/client/lunarcrush.py
huenique/gibme-crypto
970f2ab072682c4533a348783c29c40a8fcdd26e
[ "MIT" ]
null
null
null
""" Lunarcrush client. HTTP API-endpoint connections to lunarCRUSH. Visit `https://lunarcrush.com/developers/docs#` for more information. """ from __future__ import annotations import string from typing import Optional from . import utils BASE_URL = 'https://api.lunarcrush.com/v2?' class QueryFormatter(string.Fo...
29.835897
120
0.536954
f84b896c41d98ac7a0aa6b43f0ba7d373bf473ff
34,148
py
Python
utils/data.py
mstrise/dep2label-eye-tracking-data
ad83d75f0953d8562e157dbbe4cfe22b8ca516cd
[ "MIT" ]
1
2019-09-02T18:36:38.000Z
2019-09-02T18:36:38.000Z
utils/data.py
mstrise/dep2label-eye-tracking-data
ad83d75f0953d8562e157dbbe4cfe22b8ca516cd
[ "MIT" ]
null
null
null
utils/data.py
mstrise/dep2label-eye-tracking-data
ad83d75f0953d8562e157dbbe4cfe22b8ca516cd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Jie # @Date: 2017-06-14 17:34:32 # @Last Modified by: Jie Yang, Contact: jieynlp@gmail.com # @Last Modified time: 2018-04-26 13:58:10 import sys import numpy as np from alphabet import Alphabet from functions import * import cPickle as pickle import itertools from ast import l...
42.685
222
0.552887
42cf25b9f49f3148f87d8431524cfcc27b0cd78a
1,970
py
Python
bili/base.py
wyapx/bili-api
65160b01a413710ed31588f1bfff9e5ed14d08be
[ "MIT" ]
null
null
null
bili/base.py
wyapx/bili-api
65160b01a413710ed31588f1bfff9e5ed14d08be
[ "MIT" ]
null
null
null
bili/base.py
wyapx/bili-api
65160b01a413710ed31588f1bfff9e5ed14d08be
[ "MIT" ]
null
null
null
from typing import Dict import aiohttp from .utils import assert_success class Network: def __init__(self, cookies: Dict[str, str] = None) -> None: cookiejar = aiohttp.CookieJar() if cookies: cookiejar.update_cookies(cookies) self._session = aiohttp.ClientSession(cookie_jar=c...
32.833333
106
0.59797
43d67fd6650762365dcf2a075dacfc884ffdc203
1,600
py
Python
src/wallabag/commands/add.py
artur-shaik/wallabag-client
6c03a3beebcf27f51076e0eb11bb99f618f8daa3
[ "MIT" ]
16
2020-09-30T23:08:45.000Z
2022-03-30T02:34:17.000Z
src/wallabag/commands/add.py
artur-shaik/wallabag-client
6c03a3beebcf27f51076e0eb11bb99f618f8daa3
[ "MIT" ]
15
2020-11-05T09:22:38.000Z
2022-03-11T16:56:18.000Z
src/wallabag/commands/add.py
artur-shaik/wallabag-client
6c03a3beebcf27f51076e0eb11bb99f618f8daa3
[ "MIT" ]
1
2021-04-02T11:00:57.000Z
2021-04-02T11:00:57.000Z
# -*- coding: utf-8 -*- from colorama import Fore from wallabag.api.add_entry import AddEntry, Params as AddEntryParams from wallabag.api.entry_exists import EntryExists from wallabag.commands.command import Command from wallabag.commands.tags_param import TagsParam from wallabag.commands.params import Params from wa...
29.62963
79
0.64875
e87d16d0d0474d51c83be2f03958f2c58f1b88d0
27,057
py
Python
rest_framework/renderers.py
marctc/django-rest-framework
06fd63dade20e1a19276b7414a54b9f5d2ef8329
[ "Unlicense" ]
1
2015-12-31T10:24:25.000Z
2015-12-31T10:24:25.000Z
rest_framework/renderers.py
marctc/django-rest-framework
06fd63dade20e1a19276b7414a54b9f5d2ef8329
[ "Unlicense" ]
null
null
null
rest_framework/renderers.py
marctc/django-rest-framework
06fd63dade20e1a19276b7414a54b9f5d2ef8329
[ "Unlicense" ]
null
null
null
""" Renderers are used to serialize a response into specific media types. They give us a generic way of being able to handle various media types on the response, such as JSON encoded data or HTML output. REST framework also provides an HTML renderer the renders the browsable API. """ from __future__ import unicode_li...
36.712347
135
0.625679
4699e759fc9c02fe51f52775f52306f7bef8abfb
3,550
py
Python
test_array.py
sebi06/czi_demos
b3f7801f46de0138a8a1ac245e9c80787e0a3f17
[ "MIT" ]
3
2020-12-31T10:06:42.000Z
2021-11-09T13:44:16.000Z
test_array.py
sebi06/czi_demos
b3f7801f46de0138a8a1ac245e9c80787e0a3f17
[ "MIT" ]
null
null
null
test_array.py
sebi06/czi_demos
b3f7801f46de0138a8a1ac245e9c80787e0a3f17
[ "MIT" ]
null
null
null
import numpy as np import imgfileutils as imf from aicspylibczi import CziFile def get_dimorder(dimstring): """Get the order of dimensions from dimension string :param dimstring: string containing the dimensions :type dimstring: str :return: dims_dict - dictionary with the dimensions and its position...
26.691729
139
0.62
38f48316fe6a5de705232180e386303792707117
652
py
Python
charades_preprocess/preprocess.py
hudaAlamri/visdial-bert
77fee9e49c629bff314397d7ff029389a08a4ec0
[ "BSD-3-Clause" ]
null
null
null
charades_preprocess/preprocess.py
hudaAlamri/visdial-bert
77fee9e49c629bff314397d7ff029389a08a4ec0
[ "BSD-3-Clause" ]
null
null
null
charades_preprocess/preprocess.py
hudaAlamri/visdial-bert
77fee9e49c629bff314397d7ff029389a08a4ec0
[ "BSD-3-Clause" ]
1
2022-03-07T15:48:19.000Z
2022-03-07T15:48:19.000Z
# parse charades datasets to get the actions set import csv data_all = {} input_file = csv.DictReader(open("../data/Charades/Charades_v1_train.csv")) actions_list = {} for row in input_file: id = row['id'] data_all[id] = row action_list = [v.split(' ')[0] for v in row['actions'].split(';')] actions_list[id] = ac...
24.148148
77
0.711656
247d152f2b69d9f8a6dff2a79fff958d1b6684c0
3,098
py
Python
apps/gsekit/configfile/handlers/tests.py
iSecloud/bk-process-config-manager
f44c01b7a28dd9328cce6e6066eae42d5365070d
[ "MIT" ]
8
2021-07-08T06:53:57.000Z
2022-03-14T04:05:27.000Z
apps/gsekit/configfile/handlers/tests.py
iSecloud/bk-process-config-manager
f44c01b7a28dd9328cce6e6066eae42d5365070d
[ "MIT" ]
107
2021-07-22T02:20:07.000Z
2022-03-14T08:37:23.000Z
apps/gsekit/configfile/handlers/tests.py
iSecloud/bk-process-config-manager
f44c01b7a28dd9328cce6e6066eae42d5365070d
[ "MIT" ]
12
2021-07-09T08:59:01.000Z
2022-03-08T13:40:41.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸 (Blueking) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may...
48.40625
115
0.727243
7ada18f15ad6980558f5c11aa42a0784c7a372a0
589
py
Python
apps/about/migrations/0001_initial.py
StepicOrg/stepik-apps
5825bc9b2444ad4690681964d1bed172706f8796
[ "Apache-2.0" ]
5
2017-03-17T10:01:25.000Z
2018-03-23T05:56:25.000Z
apps/about/migrations/0001_initial.py
StepicOrg/stepik-apps
5825bc9b2444ad4690681964d1bed172706f8796
[ "Apache-2.0" ]
4
2020-06-05T17:34:05.000Z
2021-04-19T12:58:48.000Z
apps/about/migrations/0001_initial.py
StepicOrg/stepik-apps
5825bc9b2444ad4690681964d1bed172706f8796
[ "Apache-2.0" ]
2
2017-03-21T13:01:28.000Z
2017-04-27T14:33:20.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-04-22 08:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='About',...
24.541667
114
0.575552
d56fdb697519c82350da541bfb1e56a4f610ce7d
860
py
Python
gif_manger.py
Rix565/PygaMone
58879a01b5427328824ab4558f6ea3916f1b844a
[ "MIT" ]
null
null
null
gif_manger.py
Rix565/PygaMone
58879a01b5427328824ab4558f6ea3916f1b844a
[ "MIT" ]
null
null
null
gif_manger.py
Rix565/PygaMone
58879a01b5427328824ab4558f6ea3916f1b844a
[ "MIT" ]
null
null
null
from typing import Optional import pygame_gif __all__: list['Gif'] = [] class Gif(object): def __init__(self, path: str): __all__.append(self) self.path = path self.gif: Optional['pygame_gif.PygameGif'] = None def get(self): if self.gif is None: self.load() ...
22.051282
62
0.615116
68173bb18efddfc4c162bf6f1f9a2c185b68f123
12,026
py
Python
snakebite/minicluster.py
shenfe/snakebite
880fffd177a5fa5bbda08ea6da5e5c43a87e1c70
[ "Apache-2.0" ]
null
null
null
snakebite/minicluster.py
shenfe/snakebite
880fffd177a5fa5bbda08ea6da5e5c43a87e1c70
[ "Apache-2.0" ]
null
null
null
snakebite/minicluster.py
shenfe/snakebite
880fffd177a5fa5bbda08ea6da5e5c43a87e1c70
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2013 Spotify AB # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
43.890511
143
0.614585
a902575ca6c390b725d06233d630c874110e7a6c
2,514
py
Python
test/test_unit/test_plugins.py
zlatsic/aimm
166e56178773ea1333c5d842d10ec60df501f121
[ "Apache-2.0" ]
6
2021-06-16T10:57:58.000Z
2022-02-01T13:43:17.000Z
test/test_unit/test_plugins.py
zlatsic/aimm
166e56178773ea1333c5d842d10ec60df501f121
[ "Apache-2.0" ]
null
null
null
test/test_unit/test_plugins.py
zlatsic/aimm
166e56178773ea1333c5d842d10ec60df501f121
[ "Apache-2.0" ]
1
2021-05-30T23:21:57.000Z
2021-05-30T23:21:57.000Z
from aimm import plugins def test_instantiate(plugin_teardown): @plugins.instantiate('test', state_cb_arg_name='state_cb') def instantiate(state_cb): return state_cb assert plugins.exec_instantiate('test', 'state_cb') == 'state_cb' def test_data_access(plugin_teardown): @plugins.data_access...
27.933333
69
0.625298
7a50997d76dfa105f7852cc8c3b8151131394b8e
21,812
py
Python
homeassistant/components/fan/__init__.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
1
2017-05-30T22:21:05.000Z
2017-05-30T22:21:05.000Z
homeassistant/components/fan/__init__.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
46
2020-12-18T07:15:15.000Z
2022-03-31T06:04:00.000Z
homeassistant/components/fan/__init__.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
2
2021-03-22T21:42:48.000Z
2021-04-12T12:26:39.000Z
"""Provides functionality to interact with fans.""" from datetime import timedelta import functools as ft import logging import math from typing import List, Optional import voluptuous as vol from homeassistant.const import ( SERVICE_TOGGLE, SERVICE_TURN_OFF, SERVICE_TURN_ON, STATE_ON, ) import homeas...
31.795918
115
0.639052
ec7bdaf82920b92a3cdd49c5863a7e7cbd5f1d55
12,673
py
Python
train.py
yzyouzhang/AIR-ASVspoof
b26830d56d4baa6247a72955292ad9d2a336c6f6
[ "MIT" ]
40
2020-10-30T20:41:58.000Z
2022-03-14T05:36:47.000Z
train.py
AirLabUR/AIR-ASVspoof
b26830d56d4baa6247a72955292ad9d2a336c6f6
[ "MIT" ]
13
2020-11-01T16:58:12.000Z
2021-12-29T16:49:36.000Z
train.py
AirLabUR/AIR-ASVspoof
b26830d56d4baa6247a72955292ad9d2a336c6f6
[ "MIT" ]
18
2020-12-23T09:03:12.000Z
2022-03-30T10:20:33.000Z
import argparse import os import json import shutil from resnet import setup_seed, ResNet from loss import * from dataset import ASVspoof2019 from collections import defaultdict from tqdm import tqdm import eval_metrics as em import numpy as np import torch from torch.utils.data import DataLoader torch.set_default_ten...
46.421245
123
0.62211
56a01a5bad0bb4df8209525caf7cb74226bc5ee2
1,558
py
Python
nf_common_source/code/services/file_system_service/objects/file_system_objects.py
boro-alpha/nf_common
66d6844d9ae9a86a3e5b461f92e1ba0ec15e85ef
[ "MIT" ]
null
null
null
nf_common_source/code/services/file_system_service/objects/file_system_objects.py
boro-alpha/nf_common
66d6844d9ae9a86a3e5b461f92e1ba0ec15e85ef
[ "MIT" ]
null
null
null
nf_common_source/code/services/file_system_service/objects/file_system_objects.py
boro-alpha/nf_common
66d6844d9ae9a86a3e5b461f92e1ba0ec15e85ef
[ "MIT" ]
null
null
null
from nf_common_source.code.services.file_system_service.objects.wrappers.absolute_path_wrappers import \ AbsolutePathWrappers from nf_common_source.code.services.identification_services.uuid_service.uuid_helpers.uuid_factory import create_new_uuid class FileSystemObjects: def __init__( self, ...
22.57971
121
0.539153
ab892bc52494c25bf5b46f92ca862965b4d99e5c
8,367
py
Python
Lib/lib2to3/fixes/fix_urllib.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
52,316
2015-01-01T15:56:25.000Z
2022-03-31T23:19:01.000Z
Lib/lib2to3/fixes/fix_urllib.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
25,286
2015-03-03T23:18:02.000Z
2022-03-31T23:17:27.000Z
Lib/lib2to3/fixes/fix_urllib.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
31,623
2015-01-01T13:29:37.000Z
2022-03-31T19:55:06.000Z
"""Fix changes imports of urllib which are now incompatible. This is rather similar to fix_imports, but because of the more complex nature of the fixing for urllib, it has its own fixer. """ # Author: Nick Edds # Local imports from lib2to3.fixes.fix_imports import alternates, FixImports from lib2to3.fixer_util i...
42.472081
79
0.528385
99a72fa14a3725e55fe0bf7367bf268d879f6653
1,128
py
Python
setup.py
eldrin/aarms
bdd5455ac8dcfc1fe91a12fdd132b74e6c37609d
[ "MIT" ]
null
null
null
setup.py
eldrin/aarms
bdd5455ac8dcfc1fe91a12fdd132b74e6c37609d
[ "MIT" ]
3
2020-11-05T08:44:46.000Z
2020-11-10T17:25:15.000Z
setup.py
eldrin/aarms
bdd5455ac8dcfc1fe91a12fdd132b74e6c37609d
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages def readme(): with open('README.md') as f: return f.read() def requirements(): with open('requirements.txt') as f: return [line.strip() for line in f] setup(name='aarms', version='0.0.1', description='Attribute-Aware Recommender ModelS...
28.2
65
0.583333
84b602af98a3c2471e0a0aa1b4d01c65b5ff9883
7,291
py
Python
qa/rpc-tests/walletbackup.py
votcoin/votcoin
f4e594afe2b7b4a04325f5c304329a675decec6a
[ "MIT" ]
null
null
null
qa/rpc-tests/walletbackup.py
votcoin/votcoin
f4e594afe2b7b4a04325f5c304329a675decec6a
[ "MIT" ]
null
null
null
qa/rpc-tests/walletbackup.py
votcoin/votcoin
f4e594afe2b7b4a04325f5c304329a675decec6a
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014 The Bitcoin Core developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Exercise the wallet backup code. Ported from walletbackup.sh. Test case is: 4 nodes. 1 2 and 3 send ...
36.273632
91
0.654917
9631b19078e2a3a5d6db3b09073a548b65302888
6,234
py
Python
src/python/grpcio/grpc/framework/interfaces/links/links.py
DiracResearch/grpc
1c6e2b4790aa24d91338c4d8c16e5808cbfe6d2a
[ "BSD-3-Clause" ]
1
2017-09-14T23:59:05.000Z
2017-09-14T23:59:05.000Z
src/python/grpcio/grpc/framework/interfaces/links/links.py
DiracResearch/grpc
1c6e2b4790aa24d91338c4d8c16e5808cbfe6d2a
[ "BSD-3-Clause" ]
1
2016-10-19T02:43:04.000Z
2016-10-31T14:53:06.000Z
src/python/grpcio/grpc/framework/interfaces/links/links.py
DiracResearch/grpc
1c6e2b4790aa24d91338c4d8c16e5808cbfe6d2a
[ "BSD-3-Clause" ]
8
2016-10-23T00:50:02.000Z
2019-04-21T11:11:57.000Z
# Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
43.291667
80
0.737889
e10e772a5892dcbc36987c6f2c2c452a3cf02b2e
878
py
Python
modeli.py
AnejJereb/Trg_kriptovalut
349d219a52bb1bb5b65007166f542b3b50ea77a8
[ "MIT" ]
null
null
null
modeli.py
AnejJereb/Trg_kriptovalut
349d219a52bb1bb5b65007166f542b3b50ea77a8
[ "MIT" ]
null
null
null
modeli.py
AnejJereb/Trg_kriptovalut
349d219a52bb1bb5b65007166f542b3b50ea77a8
[ "MIT" ]
null
null
null
import sqlite3 conn = sqlite3.connect('kriptovalute.db') conn.execute("PRAGMA foreign_keys = ON") def commit(fun): """ Dekorator, ki ustvari kurzor, ga poda dekorirani funkciji, in nato zapiše spremembe v bazo. Originalna funkcija je na voljo pod atributom nocommit. """ def funkcija(*largs, **...
25.823529
62
0.65262
3ddd6f90c8d993b01673b6ece741499b6a678098
10,550
py
Python
trove/tests/util/__init__.py
viettelidc-oss/trove
2d301d0a21863c6c0fbb9e854c7eb8ad8f19bbc1
[ "Apache-2.0" ]
1
2020-04-08T07:42:19.000Z
2020-04-08T07:42:19.000Z
trove/tests/util/__init__.py
phunv-bka/trove
2d301d0a21863c6c0fbb9e854c7eb8ad8f19bbc1
[ "Apache-2.0" ]
null
null
null
trove/tests/util/__init__.py
phunv-bka/trove
2d301d0a21863c6c0fbb9e854c7eb8ad8f19bbc1
[ "Apache-2.0" ]
1
2020-04-08T07:45:25.000Z
2020-04-08T07:45:25.000Z
# Copyright (c) 2011 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
32.461538
79
0.648246
108b5cf6c6a7b64ca7b81974ef52a7004042edf4
14,833
py
Python
applications/cli/util/system.py
nparkstar/nauta
1bda575a01f782d1dc2cd5221122651f184f7167
[ "Apache-2.0" ]
390
2019-01-23T09:07:00.000Z
2022-02-20T04:03:34.000Z
applications/cli/util/system.py
nparkstar/nauta
1bda575a01f782d1dc2cd5221122651f184f7167
[ "Apache-2.0" ]
52
2019-01-31T12:17:30.000Z
2022-02-10T00:01:39.000Z
applications/cli/util/system.py
nparkstar/nauta
1bda575a01f782d1dc2cd5221122651f184f7167
[ "Apache-2.0" ]
66
2019-01-23T18:59:39.000Z
2020-10-18T15:24:00.000Z
# # Copyright (c) 2019 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.0825
119
0.644779
6fc842bbf51dfb56aea3dfc6f6d239308e1e4142
9,436
py
Python
src/HTMLgen/JpegImagePluginH.py
marinier/soardoc
be4023c8abd6ca93545d75e7edb4328f236ee82c
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/HTMLgen/JpegImagePluginH.py
marinier/soardoc
be4023c8abd6ca93545d75e7edb4328f236ee82c
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/HTMLgen/JpegImagePluginH.py
marinier/soardoc
be4023c8abd6ca93545d75e7edb4328f236ee82c
[ "BSD-2-Clause-FreeBSD" ]
1
2021-02-03T14:17:42.000Z
2021-02-03T14:17:42.000Z
# # The Python Imaging Library. # $Id: JpegImagePluginH.py 2666 2003-10-23 22:14:14Z rmarinie $ # # JPEG (JFIF) file handling # # See "Digital Compression and Coding of Continous-Tone Still Images, # Part 1, Requirements and Guidelines" (CCITT T.81 / ISO 10918-1) # # History: # 95-09-09 fl Created # 95-09-13 fl Added f...
29.395639
73
0.609262
5e695c5f937c34672964f4c256e9a919e9ffc3dc
73,761
py
Python
omtk/modules/rigFaceAvarGrps.py
CDufour909/omtk_unreal
64ae76a7b0a3f73a4b32d3b330f3174d02c54234
[ "MIT" ]
null
null
null
omtk/modules/rigFaceAvarGrps.py
CDufour909/omtk_unreal
64ae76a7b0a3f73a4b32d3b330f3174d02c54234
[ "MIT" ]
null
null
null
omtk/modules/rigFaceAvarGrps.py
CDufour909/omtk_unreal
64ae76a7b0a3f73a4b32d3b330f3174d02c54234
[ "MIT" ]
null
null
null
import copy import itertools import logging import pymel.core as pymel from collections import defaultdict from omtk.core.utils import decorator_uiexpose from omtk.libs import libCtrlShapes from omtk.libs import libPymel from omtk.libs import libPython from omtk.libs import libRigging from omtk.libs.libRigging import g...
40.797013
152
0.614634
be8cb842253b64fbe471b433084dd2ba57b54e61
6,256
py
Python
sdk/python/pulumi_aws/gamelift/alias.py
mdop-wh/pulumi-aws
05bb32e9d694dde1c3b76d440fd2cd0344d23376
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/gamelift/alias.py
mdop-wh/pulumi-aws
05bb32e9d694dde1c3b76d440fd2cd0344d23376
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/gamelift/alias.py
mdop-wh/pulumi-aws
05bb32e9d694dde1c3b76d440fd2cd0344d23376
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from .. import ...
39.1
153
0.626119
e520df72cf1a91619b43b65d589f057a0b0a83e8
39,396
py
Python
kiali_qe/tests/test_istio_config_mtls.py
Hawkular-QE/kiali-qe-python
24e058def1efd0a509a2b599901f4179dbf37583
[ "Apache-2.0" ]
null
null
null
kiali_qe/tests/test_istio_config_mtls.py
Hawkular-QE/kiali-qe-python
24e058def1efd0a509a2b599901f4179dbf37583
[ "Apache-2.0" ]
3
2018-03-28T17:11:13.000Z
2018-03-28T17:55:08.000Z
kiali_qe/tests/test_istio_config_mtls.py
Hawkular-QE/kiali-qe-python
24e058def1efd0a509a2b599901f4179dbf37583
[ "Apache-2.0" ]
2
2018-02-13T10:56:03.000Z
2018-03-20T14:07:51.000Z
import pytest from kiali_qe.tests import ValidationsTest, ConfigValidationObject, NamespaceTLSObject from kiali_qe.utils.path import istio_objects_mtls_path from kiali_qe.components.enums import MeshWideTLSType from kiali_qe.components.error_codes import ( KIA0207, KIA0501, KIA0208, KIA0205, KIA040...
40.909657
102
0.533201
abc0fa290cb953e3237f04d5240ffe2a79e49b93
3,883
py
Python
Lib/fontTools/pens/reverseContourPen.py
anntzer/fonttools
726cd67549956b985bbbe83e26fb0af9da59ddf7
[ "MIT", "BSD-3-Clause" ]
2
2021-04-07T16:47:04.000Z
2022-01-15T04:01:01.000Z
Lib/fontTools/pens/reverseContourPen.py
anntzer/fonttools
726cd67549956b985bbbe83e26fb0af9da59ddf7
[ "MIT", "BSD-3-Clause" ]
1
2020-05-22T09:01:31.000Z
2020-05-22T09:47:18.000Z
Lib/fontTools/pens/reverseContourPen.py
anntzer/fonttools
726cd67549956b985bbbe83e26fb0af9da59ddf7
[ "MIT", "BSD-3-Clause" ]
null
null
null
from fontTools.misc.py23 import * from fontTools.misc.arrayTools import pairwise from fontTools.pens.filterPen import ContourFilterPen __all__ = ["reversedContour", "ReverseContourPen"] class ReverseContourPen(ContourFilterPen): """Filter pen that passes outline data to another pen, but reversing the windin...
40.030928
79
0.611383
ab4f9c06d53a1b23da73796aa6f140cd7e9cbf4f
688
py
Python
netbox/extras/tests/test_registry.py
sourcery-ai-bot/netbox
454971874004356654c7c6d07ce52b4498468b2d
[ "Apache-2.0" ]
null
null
null
netbox/extras/tests/test_registry.py
sourcery-ai-bot/netbox
454971874004356654c7c6d07ce52b4498468b2d
[ "Apache-2.0" ]
null
null
null
netbox/extras/tests/test_registry.py
sourcery-ai-bot/netbox
454971874004356654c7c6d07ce52b4498468b2d
[ "Apache-2.0" ]
null
null
null
from django.test import TestCase from extras.registry import Registry class RegistryTest(TestCase): def test_add_store(self): reg = Registry() reg['foo'] = 123 self.assertEqual(reg['foo'], 123) def test_manipulate_store(self): reg = Registry() reg['foo'] = [1, 2, 3]...
21.5
51
0.569767
16b7938bf4e917bb4b59f3bf7d4bc0201f7f1f56
617
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo/rootwrap/wrapper.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo/rootwrap/wrapper.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo/rootwrap/wrapper.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
44.071429
78
0.729335
a0ab285e30f2da90ab3b8491915db1e00e209086
4,466
py
Python
source/python/neuropod/backends/caffe/packager.py
judgeeeeee/neuropod
6a614e2f09abdd9ccb73c46ecce16994c66c9e32
[ "Apache-2.0" ]
null
null
null
source/python/neuropod/backends/caffe/packager.py
judgeeeeee/neuropod
6a614e2f09abdd9ccb73c46ecce16994c66c9e32
[ "Apache-2.0" ]
8
2020-09-07T07:44:59.000Z
2021-01-04T08:22:19.000Z
source/python/neuropod/backends/caffe/packager.py
judgeeeeee/neuropod
6a614e2f09abdd9ccb73c46ecce16994c66c9e32
[ "Apache-2.0" ]
1
2020-09-18T01:42:25.000Z
2020-09-18T01:42:25.000Z
# Copyright (c) 2020 UATC, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
38.17094
121
0.549037
0b57db9baffacd576e110e0b8170e8f56293340f
2,014
py
Python
accounts/forms.py
Gareth-1987/mvp_landing_page
a2bfce0928d15f15f5cc3782848bda54d44903da
[ "MIT" ]
null
null
null
accounts/forms.py
Gareth-1987/mvp_landing_page
a2bfce0928d15f15f5cc3782848bda54d44903da
[ "MIT" ]
null
null
null
accounts/forms.py
Gareth-1987/mvp_landing_page
a2bfce0928d15f15f5cc3782848bda54d44903da
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth import get_user_model User = get_user_model() class LoginForm(forms.Form): username = forms.CharField(label='', widget=forms.TextInput( attrs={'placeholder': 'Your username'})) password = forms.CharField(label='', widget=forms.PasswordInput( a...
33.566667
85
0.635055
ce0f8b7b9e65687806086113f865b9a50b1a3d65
750
py
Python
foodplanapp/migrations/0020_auto_20220321_1354.py
949027/food-plan
382791059469058614bfd028d674ba1f69b25e2b
[ "MIT" ]
null
null
null
foodplanapp/migrations/0020_auto_20220321_1354.py
949027/food-plan
382791059469058614bfd028d674ba1f69b25e2b
[ "MIT" ]
null
null
null
foodplanapp/migrations/0020_auto_20220321_1354.py
949027/food-plan
382791059469058614bfd028d674ba1f69b25e2b
[ "MIT" ]
1
2022-03-22T02:04:59.000Z
2022-03-22T02:04:59.000Z
# Generated by Django 4.0.3 on 2022-03-21 10:54 import random from django.db import migrations class Migration(migrations.Migration): def set_menutype_for_dishes(apps, schema_editor): menu_types = [ "classic", "low_calorie", "vegan", "keto", ] ...
25
72
0.598667
dd98d9db322a1fed2abe71697a6f73e3820f0d22
7,306
py
Python
scripts/sequence_clusters/expansion/compare_clusters.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
10
2015-04-28T14:15:04.000Z
2021-03-15T00:07:38.000Z
scripts/sequence_clusters/expansion/compare_clusters.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
null
null
null
scripts/sequence_clusters/expansion/compare_clusters.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
6
2017-03-16T22:38:41.000Z
2021-08-11T00:22:52.000Z
#!/usr/bin/env python __author__ = 'Sergei F. Kliver' import argparse from collections import OrderedDict from RouToolPa.GeneralRoutines import FileRoutines def read_cluster_file(filename, with_counts=False): cluster_dict = OrderedDict() noname_family_index = 1 with open(filename, "r") as in_fd: for...
50.041096
160
0.648782
b69e542b01316f996bce327cc511fa1bd7837beb
2,151
py
Python
app/entity/TrafficLight.py
ia2067/TRAPP
a4a7a6b04fda3c781c10d023e1fc7408ea522194
[ "MIT" ]
null
null
null
app/entity/TrafficLight.py
ia2067/TRAPP
a4a7a6b04fda3c781c10d023e1fc7408ea522194
[ "MIT" ]
null
null
null
app/entity/TrafficLight.py
ia2067/TRAPP
a4a7a6b04fda3c781c10d023e1fc7408ea522194
[ "MIT" ]
null
null
null
import traci from LogicWrapper import LogicWrapper class TrafficLight: """ a class to represent an individual traffic light """ def __init__(self, id, incLanes, intLanes, shape, x, y): # the string id self.id = id self.incLanes = incLanes self.intLanes = intLanes self....
31.632353
79
0.595072
09e16d656b53c224f6c6292b4f86b1cc9a59314b
632
py
Python
tests/settings.py
dropseedlabs/django-test-recorder
1bde4053a2a35997dd2c86e6c495d0bea35dc2bb
[ "MIT" ]
null
null
null
tests/settings.py
dropseedlabs/django-test-recorder
1bde4053a2a35997dd2c86e6c495d0bea35dc2bb
[ "MIT" ]
null
null
null
tests/settings.py
dropseedlabs/django-test-recorder
1bde4053a2a35997dd2c86e6c495d0bea35dc2bb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 from __future__ import unicode_literals, absolute_import import django DEBUG = True USE_TZ = True # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = "77777777777777777777777777777777777777777777777777" DATABASES = { "default": { "ENGINE": "django.db.backe...
18.588235
66
0.674051
63a0052f65c1422cef6ef1c3816392c4f05a01d0
12,061
py
Python
herald/base.py
jproffitt/django-herald
3a5aaa395c64c71ffff524b29928b835de66debe
[ "MIT" ]
null
null
null
herald/base.py
jproffitt/django-herald
3a5aaa395c64c71ffff524b29928b835de66debe
[ "MIT" ]
null
null
null
herald/base.py
jproffitt/django-herald
3a5aaa395c64c71ffff524b29928b835de66debe
[ "MIT" ]
null
null
null
""" Base notification classes """ import json from email.mime.base import MIMEBase from mimetypes import guess_type import jsonpickle import re import six from django.conf import settings from django.contrib.sites.models import Site from django.core.mail import EmailMultiAlternatives from django.template import Temp...
29.92804
117
0.613879
a323944f67399fcbe7e1ebb0167183883de0dd6b
219
py
Python
leetCode/algorithms/easy/shuffle_string.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
25
2015-01-21T16:39:18.000Z
2021-05-24T07:01:24.000Z
leetCode/algorithms/easy/shuffle_string.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
2
2020-09-30T19:39:36.000Z
2020-10-01T17:15:16.000Z
leetCode/algorithms/easy/shuffle_string.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
15
2015-01-21T16:39:27.000Z
2020-10-01T17:00:22.000Z
from operator import itemgetter from typing import List class Solution: def restoreString(self, s: str, indices: List[int]) -> str: return "".join(e for e, i in sorted(zip(s, indices), key=itemgetter(1)))
27.375
80
0.689498
9813fb8afddc4fc777c5e503736a44d6d39fb09e
2,014
py
Python
util/util.py
giakou4/MNIST_classification
fdffb36e59a3a90cd06ef3db8feadf6d0d71b03d
[ "MIT" ]
5
2021-11-20T18:40:14.000Z
2022-02-22T19:57:19.000Z
util/util.py
giakou4/MNIST_classification
fdffb36e59a3a90cd06ef3db8feadf6d0d71b03d
[ "MIT" ]
1
2021-11-22T08:35:19.000Z
2021-11-23T11:41:17.000Z
util/util.py
giakou4/MNIST_classification
fdffb36e59a3a90cd06ef3db8feadf6d0d71b03d
[ "MIT" ]
null
null
null
from __future__ import print_function import math import numpy as np import torch import torch.optim as optim class TwoCropTransform: """Create two crops of the same image""" def __init__(self, transform): self.transform = transform def __call__(self, x): return [self.transform(x), self.t...
30.059701
88
0.612711
d3e36ce817401f46adccf705ce7e65ca3970a8aa
783
py
Python
hacktheback/forms/managers.py
hackthevalley/hack-the-back
a418f2d2751656fed76d0b8c95c8e2a060525e78
[ "MIT" ]
null
null
null
hacktheback/forms/managers.py
hackthevalley/hack-the-back
a418f2d2751656fed76d0b8c95c8e2a060525e78
[ "MIT" ]
null
null
null
hacktheback/forms/managers.py
hackthevalley/hack-the-back
a418f2d2751656fed76d0b8c95c8e2a060525e78
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone class FormManager(models.Manager): def miscellaneous(self): return self.filter(type=self.model.FormType.MISCELLANEOUS) def hacker_application(self): return self.filter(type=self.model.FormType.HACKER_APPLICATION) def viewable...
27.964286
71
0.652618
6e726ec5639807f12559a135648343687c408c44
654
py
Python
hw3/wuclient.py
kirk-walker/csc321
6f8b25e68923fc897c0de05d79d8e13ca448822e
[ "MIT" ]
null
null
null
hw3/wuclient.py
kirk-walker/csc321
6f8b25e68923fc897c0de05d79d8e13ca448822e
[ "MIT" ]
null
null
null
hw3/wuclient.py
kirk-walker/csc321
6f8b25e68923fc897c0de05d79d8e13ca448822e
[ "MIT" ]
null
null
null
import sys import zmq # Socket to talk to server context = zmq.Context() socket = context.socket(zmq.SUB) print("Collecting updates from weather server...") socket.connect("tcp://node00:5556") # Subscribe to zipcode, default is NYC, 10001 zip_filter = sys.argv[1] if len(sys.argv) > 1 else "10001" socket.setsockopt...
27.25
62
0.717125
c8b8d37f17cfbbe6116712cc2218fd7bfad0d596
4,401
py
Python
sideboard/lib/_threads.py
EliAndrewC/sideboard
81f0099f4c03e7abb5856e046539aa033ecf04f9
[ "BSD-3-Clause" ]
null
null
null
sideboard/lib/_threads.py
EliAndrewC/sideboard
81f0099f4c03e7abb5856e046539aa033ecf04f9
[ "BSD-3-Clause" ]
null
null
null
sideboard/lib/_threads.py
EliAndrewC/sideboard
81f0099f4c03e7abb5856e046539aa033ecf04f9
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import time import heapq from warnings import warn from threading import Thread, Timer, Event, Lock from six.moves.queue import Queue, Empty from sideboard.lib import log, on_startup, on_shutdown class DaemonTask(object): def __init__(self, func, interval=0.1, threads=1):...
29.736486
120
0.540786
e7668a534c69e87ad7e109b382224ba6bcb6277f
1,758
py
Python
Lib/site-packages/graphviz/__init__.py
caiyongji/tf2.3.1-py3.7.9-full-built
ace4efcbf05b2b494388739718a18c13eab83c71
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/site-packages/graphviz/__init__.py
caiyongji/tf2.3.1-py3.7.9-full-built
ace4efcbf05b2b494388739718a18c13eab83c71
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/site-packages/graphviz/__init__.py
caiyongji/tf2.3.1-py3.7.9-full-built
ace4efcbf05b2b494388739718a18c13eab83c71
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
# graphviz - create dot, save, render, view """Assemble DOT source code and render it with Graphviz. >>> dot = Digraph(comment='The Round Table') >>> dot.node('A', 'King Arthur') >>> dot.node('B', 'Sir Bedevere the Wise') >>> dot.node('L', 'Sir Lancelot the Brave') >>> dot.edges(['AB', 'AL']) >>> dot.edge('B', 'L'...
27.46875
80
0.646758
0255d3720ffb06977a6ab1b927fd479410e3e991
6,805
py
Python
test/continuous/test_sac_with_il.py
edieson/tianshou
679a0ce9ad2f7090b5a642c71dd7d9babf318fb8
[ "MIT" ]
null
null
null
test/continuous/test_sac_with_il.py
edieson/tianshou
679a0ce9ad2f7090b5a642c71dd7d9babf318fb8
[ "MIT" ]
null
null
null
test/continuous/test_sac_with_il.py
edieson/tianshou
679a0ce9ad2f7090b5a642c71dd7d9babf318fb8
[ "MIT" ]
null
null
null
import os import gym import torch import pprint import argparse import numpy as np from torch.utils.tensorboard import SummaryWriter from tianshou.env import VectorEnv, SubprocVectorEnv from tianshou.trainer import offpolicy_trainer from tianshou.data import Collector, ReplayBuffer from tianshou.policy import SACPolic...
41.493902
95
0.685966
041060360ebbe2030bd62e581bb5abb2c040d1b9
24,426
py
Python
src/hpatterns.py
sahitpj/syntaxnet_triplets
4932247a60228722b61381e95a03e6ce66d102ab
[ "MIT" ]
2
2019-06-06T21:59:14.000Z
2020-03-17T05:35:24.000Z
src/hpatterns.py
sahitpj/SyntaxNet-triplets
4932247a60228722b61381e95a03e6ce66d102ab
[ "MIT" ]
null
null
null
src/hpatterns.py
sahitpj/SyntaxNet-triplets
4932247a60228722b61381e95a03e6ce66d102ab
[ "MIT" ]
null
null
null
import sys sys.path.append("../../..") import re import string import spacy from .conllu.conllu import parse_single, TokenList from .hpatternUtils import create_default, create_greedy, create_semi class HearstPatterns(object): """ Contains two methods. One which uses the .conllu file to develop a tokentree wh...
62.470588
503
0.456972
c2e0702dd3bb18f64332997c837e7069b65b843d
69
py
Python
abc/128/a.py
wotsushi/competitive-programming
17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86
[ "MIT" ]
3
2019-06-25T06:17:38.000Z
2019-07-13T15:18:51.000Z
abc/128/a.py
wotsushi/competitive-programming
17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86
[ "MIT" ]
null
null
null
abc/128/a.py
wotsushi/competitive-programming
17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86
[ "MIT" ]
null
null
null
A, P = map(int, input().split()) ans = (3 * A + P) // 2 print(ans)
11.5
32
0.478261
6f01fa2283577d1f8b28081df66fd468f8b05b00
15,710
py
Python
main.py
ishine/HTS-Audio-Transformer
356521f5dbb1893082c449a4993977fd624905f0
[ "MIT" ]
24
2022-02-02T10:19:31.000Z
2022-03-23T16:59:19.000Z
main.py
ishine/HTS-Audio-Transformer
356521f5dbb1893082c449a4993977fd624905f0
[ "MIT" ]
3
2022-02-23T02:31:36.000Z
2022-03-11T06:29:25.000Z
main.py
ishine/HTS-Audio-Transformer
356521f5dbb1893082c449a4993977fd624905f0
[ "MIT" ]
9
2022-02-02T17:42:11.000Z
2022-03-25T07:12:13.000Z
# Ke Chen # knutchen@ucsd.edu # HTS-AT: A HIERARCHICAL TOKEN-SEMANTIC AUDIO TRANSFORMER FOR SOUND CLASSIFICATION AND DETECTION # The main code for training and evaluating HTSAT import os from re import A, S import sys import librosa import numpy as np import argparse import h5py import math import time import logging i...
36.450116
156
0.629408
a149982a6c8f4906806fbff87d44aeb36ed91296
740
py
Python
dbtest/blog/migrations/0002_userinfo.py
marktiu7/demo
07df5d706b17b2d9a6275a96d803914b32ab1630
[ "Apache-2.0" ]
null
null
null
dbtest/blog/migrations/0002_userinfo.py
marktiu7/demo
07df5d706b17b2d9a6275a96d803914b32ab1630
[ "Apache-2.0" ]
null
null
null
dbtest/blog/migrations/0002_userinfo.py
marktiu7/demo
07df5d706b17b2d9a6275a96d803914b32ab1630
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2016-09-28 07:22 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( ...
26.428571
114
0.537838
a3f2415e55adc1079228ea945610fe73a36926e2
319
py
Python
2-Medium/numRescueBoats.py
Sma-Das/Leetcode
6f9b8f069e2ef198408abd6780fd0697a8bebada
[ "MIT" ]
null
null
null
2-Medium/numRescueBoats.py
Sma-Das/Leetcode
6f9b8f069e2ef198408abd6780fd0697a8bebada
[ "MIT" ]
null
null
null
2-Medium/numRescueBoats.py
Sma-Das/Leetcode
6f9b8f069e2ef198408abd6780fd0697a8bebada
[ "MIT" ]
null
null
null
class Solution: def numRescueBoats(self, people: list[int], limit: int) -> int: people.sort(reverse=True) l, r = 0, len(people)-1 while l <= r: # Prioritise fatasses if people[l] + people[r] <= limit: r -= 1 # fatty + thinny l += 1 return l
31.9
67
0.501567
7d956410d3e9a54e2db9cee46f9a7fd4935f9735
2,540
py
Python
demo/dirichlet_poisson2D.py
liqihao2000/shenfun
2164596ccf906242779d9ec361168246ee6214d8
[ "BSD-2-Clause" ]
1
2021-10-09T06:48:30.000Z
2021-10-09T06:48:30.000Z
demo/dirichlet_poisson2D.py
liqihao2000/shenfun
2164596ccf906242779d9ec361168246ee6214d8
[ "BSD-2-Clause" ]
null
null
null
demo/dirichlet_poisson2D.py
liqihao2000/shenfun
2164596ccf906242779d9ec361168246ee6214d8
[ "BSD-2-Clause" ]
null
null
null
r""" Solve Poisson equation in 2D with periodic bcs in one direction and homogeneous Dirichlet in the other \nabla^2 u = f, Use Fourier basis for the periodic direction and Shen's Dirichlet basis for the non-periodic direction. The equation to solve is (\nabla^2 u, v) = (f, v) """ import sys import os imp...
25.4
79
0.645276
4c85fd3963648e556fc1ffca330ce49808418565
3,835
py
Python
kapsoya/models.py
Chebichii-Lab/Kapsoya-Estate
ce10224f30a6823396a51d3edd017b286e399acd
[ "MIT" ]
null
null
null
kapsoya/models.py
Chebichii-Lab/Kapsoya-Estate
ce10224f30a6823396a51d3edd017b286e399acd
[ "MIT" ]
null
null
null
kapsoya/models.py
Chebichii-Lab/Kapsoya-Estate
ce10224f30a6823396a51d3edd017b286e399acd
[ "MIT" ]
1
2021-09-30T19:35:45.000Z
2021-09-30T19:35:45.000Z
from django.db import models from django.contrib.auth.models import User from cloudinary.models import CloudinaryField from django.db.models.signals import post_save from django.dispatch import receiver # Create your models here. #class Neighbourhood class Neighbourhood(models.Model): neighbourhood_name = models....
31.178862
129
0.695698
9b6934e67fa20a6e188120791e2d052823c1d689
165
py
Python
api_digital_certificate/digital_api/urls.py
slarda/Web-Scrapping-Bots-For-Crawling-Docs
aa8ce3c72bfbe2111d16655ffc3a6759a825946e
[ "Apache-2.0" ]
1
2020-12-17T11:21:01.000Z
2020-12-17T11:21:01.000Z
api_digital_certificate/digital_api/urls.py
soft-super/Web-Scrapping-Bots-For-Crawling-Docs
aa8ce3c72bfbe2111d16655ffc3a6759a825946e
[ "Apache-2.0" ]
5
2021-03-19T01:48:07.000Z
2021-06-09T18:26:31.000Z
api_digital_certificate/digital_api/urls.py
tiny-1996/Web-Scrapping-Bots-For-Crawling-Docs
aa8ce3c72bfbe2111d16655ffc3a6759a825946e
[ "Apache-2.0" ]
null
null
null
from django.urls import path from digital_api.views import DigitalCertificateView urlpatterns = [ path('get_signed_key/', DigitalCertificateView.as_view()), ]
20.625
62
0.787879
21cba58902c7717ee527d9b8aeb59e40ee44792b
6,617
py
Python
InplusTrader/dataEngine/drawDK.py
zhengwsh/InplusTrader_Linux
5f7eb17004da0b76ceafb93cb314de7a6009cd04
[ "MIT" ]
17
2017-04-20T05:17:25.000Z
2020-09-30T08:58:03.000Z
InplusTrader/dataEngine/drawDK.py
vladhj38/InplusTrader_Linux
5f7eb17004da0b76ceafb93cb314de7a6009cd04
[ "MIT" ]
1
2017-11-12T01:24:06.000Z
2019-09-19T08:50:38.000Z
InplusTrader/dataEngine/drawDK.py
vladhj38/InplusTrader_Linux
5f7eb17004da0b76ceafb93cb314de7a6009cd04
[ "MIT" ]
17
2017-04-17T08:17:00.000Z
2020-10-25T01:56:49.000Z
# -*- coding: utf-8 -*- """ Create on 2017/02/18 @author: vinson zheng @group: inpluslab @contact: 1530820222@qq.com """ import sys, os import datetime import numpy as np import pymongo from pymongo import MongoClient import talib as ta import plot as iplot import matplotlib.colors as colors import matplotlib.dates a...
31.509524
121
0.552818