hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
63579a88721e0d3e200a379d5e13ea6f5c821b4d
27
py
Python
mp_sort/virtenv/lib/python3.6/site-packages/transcrypt/development/automated_tests/transcrypt/div_issues/issue55/sub1.py
ang-jason/fip_powerx_mini_projects-foxtrot
37e3671969b516369e2d1c7cab5890b75c489f56
[ "MIT" ]
2,200
2016-10-12T16:47:13.000Z
2022-03-30T16:40:35.000Z
mp_sort/virtenv/lib/python3.6/site-packages/transcrypt/development/automated_tests/transcrypt/div_issues/issue55/sub1.py
ang-jason/fip_powerx_mini_projects-foxtrot
37e3671969b516369e2d1c7cab5890b75c489f56
[ "MIT" ]
672
2016-10-12T16:36:48.000Z
2022-03-25T00:57:04.000Z
mp_sort/virtenv/lib/python3.6/site-packages/transcrypt/development/automated_tests/transcrypt/div_issues/issue55/sub1.py
ang-jason/fip_powerx_mini_projects-foxtrot
37e3671969b516369e2d1c7cab5890b75c489f56
[ "MIT" ]
230
2016-10-20T14:31:40.000Z
2022-03-16T15:57:15.000Z
p = 'p' q = 'q' r = 'r'
6.75
8
0.222222
0
0
0
0
0
0
0
0
9
0.333333
6358b098420866d24c9e82073283db2a21735a5a
666
py
Python
database/sql_server/create_table.py
miguelgfierro/pybase
de8e4f11ed5c655e748178e65195c7e70a9c98af
[ "BSD-3-Clause" ]
14
2020-02-07T21:36:39.000Z
2022-03-12T22:37:04.000Z
database/sql_server/create_table.py
miguelgfierro/pybase
de8e4f11ed5c655e748178e65195c7e70a9c98af
[ "BSD-3-Clause" ]
19
2019-05-18T23:58:30.000Z
2022-01-09T16:45:35.000Z
database/sql_server/create_table.py
miguelgfierro/pybase
de8e4f11ed5c655e748178e65195c7e70a9c98af
[ "BSD-3-Clause" ]
5
2020-10-06T06:10:27.000Z
2021-07-08T12:58:46.000Z
import pyodbc def create_table(table_name, cursor): """Create a table and drop it if it exists. Args: table_name (str): Table name. cursor (object): pyobdc cursor. **Examples** .. code-block:: python conn = pyodbc.connect(connection_string) cur = conn.curso...
23.785714
97
0.588589
0
0
0
0
0
0
0
0
458
0.687688
6358b66597519efb625eaca18ac93b55e3628738
9,050
py
Python
parser/fase2/team07/Tytus_SQLPARSER_G8/Instrucciones/plpgsql/condicional_case.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/fase2/team07/Tytus_SQLPARSER_G8/Instrucciones/plpgsql/condicional_case.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/fase2/team07/Tytus_SQLPARSER_G8/Instrucciones/plpgsql/condicional_case.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
from Instrucciones.TablaSimbolos.Instruccion import Instruccion from Instrucciones.TablaSimbolos.Tipo import Tipo_Dato from Instrucciones.Excepcion import Excepcion from Instrucciones.Expresiones import Relacional class Case(Instruccion): ''' La clase Case, recibe una lista de condiciones y cada una de ellas t...
40.765766
121
0.631713
8,817
0.974147
0
0
0
0
0
0
2,003
0.221302
635b340138a681c68148582d1c62f125d6b4f774
10,896
py
Python
vbox/src/VBox/ValidationKit/testmanager/core/useraccount.py
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
vbox/src/VBox/ValidationKit/testmanager/core/useraccount.py
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
vbox/src/VBox/ValidationKit/testmanager/core/useraccount.py
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # $Id: useraccount.py 69111 2017-10-17 14:26:02Z vboxsync $ """ Test Manager - User DB records management. """ __copyright__ = \ """ Copyright (C) 2012-2017 Oracle Corporation This file is part of VirtualBox Open Source Edition (OSE), as available from http://www.virtualbox.org. This file is ...
37.187713
127
0.55112
9,402
0.862885
0
0
0
0
0
0
3,994
0.366557
635c4ec1c60bd1d815137a50f68717285f1fe57d
11,129
py
Python
Bip39Generator.py
crc32/AlphaSeed
10089f7324cde8b52c9bc02c7c85421f82888d4f
[ "MIT" ]
3
2022-01-04T02:21:37.000Z
2022-01-22T23:49:06.000Z
Bip39Generator.py
crc32/AlphaSeed
10089f7324cde8b52c9bc02c7c85421f82888d4f
[ "MIT" ]
null
null
null
Bip39Generator.py
crc32/AlphaSeed
10089f7324cde8b52c9bc02c7c85421f82888d4f
[ "MIT" ]
1
2022-01-09T16:50:42.000Z
2022-01-09T16:50:42.000Z
#!/usr/bin/env python # entropy generating geigercounter # Modified from https://apollo.open-resource.org/mission:log:2014:06:13:generating-entropy-from-radioactive-decay-with-pigi import geiger import time import datetime import textwrap import binascii # for conversion between Hexa and bytes import qrcode import i...
35.218354
123
0.538952
9,677
0.86953
0
0
0
0
0
0
2,751
0.247192
635d54351361f86080532efa30b9a8d9dcf38427
3,908
py
Python
crawto/classification_visualization.py
crawftv/CRAwTO
8c6fdb93ed963cbddfe967b041e8beb578d1e94d
[ "BSD-3-Clause" ]
1
2020-04-03T12:43:27.000Z
2020-04-03T12:43:27.000Z
crawto/classification_visualization.py
crawftv/CRAwTO
8c6fdb93ed963cbddfe967b041e8beb578d1e94d
[ "BSD-3-Clause" ]
21
2020-02-14T04:29:03.000Z
2020-07-14T02:19:37.000Z
crawto/classification_visualization.py
crawftv/CRAwTO
8c6fdb93ed963cbddfe967b041e8beb578d1e94d
[ "BSD-3-Clause" ]
1
2019-10-25T01:06:58.000Z
2019-10-25T01:06:58.000Z
import matplotlib.pyplot as plt import pandas as pd import numpy as np import seaborn as sns import sklearn from sklearn import metrics from sklearn.metrics import ( auc, average_precision_score, classification_report, confusion_matrix, precision_recall_curve, roc_auc_score, roc_curve, ) f...
30.771654
109
0.64739
0
0
0
0
0
0
0
0
1,011
0.2587
6361883ccbeef4311c362908b9ce22b95ef0ef47
4,308
py
Python
pyspedas/themis/tests/tests.py
pulupa/pyspedas
7228199cf16eca2a27d130f1e4985ef1e69462ea
[ "MIT" ]
75
2019-02-22T12:59:33.000Z
2022-02-26T15:33:20.000Z
pyspedas/themis/tests/tests.py
pulupa/pyspedas
7228199cf16eca2a27d130f1e4985ef1e69462ea
[ "MIT" ]
40
2019-07-02T07:46:34.000Z
2022-02-23T21:48:50.000Z
pyspedas/themis/tests/tests.py
pulupa/pyspedas
7228199cf16eca2a27d130f1e4985ef1e69462ea
[ "MIT" ]
43
2019-02-22T13:03:41.000Z
2022-01-24T19:26:59.000Z
"""Test gmag and themis load functions.""" import os import unittest from pyspedas.utilities.data_exists import data_exists import pyspedas class GmagTestCases(unittest.TestCase): """Test GMAG functions.""" def test_get_group(self): """Get gmag stations of a group.""" from pyspedas.themis.gr...
34.190476
79
0.612581
4,112
0.954503
0
0
0
0
0
0
1,083
0.251393
6361be6747f74fe445a4fb5c773189efbc6d790b
6,673
py
Python
tests/test_subscription_service.py
rukzuk/paymill-python
637cdb2a56e75e2c062611907982d786fb258bb5
[ "MIT" ]
null
null
null
tests/test_subscription_service.py
rukzuk/paymill-python
637cdb2a56e75e2c062611907982d786fb258bb5
[ "MIT" ]
null
null
null
tests/test_subscription_service.py
rukzuk/paymill-python
637cdb2a56e75e2c062611907982d786fb258bb5
[ "MIT" ]
null
null
null
__author__ = 'yalnazov' try: import unittest2 as unittest except ImportError: import unittest from paymill.paymill_context import PaymillContext from paymill.models.subscription import Subscription import test_config class TestSubscriptionService(unittest.TestCase): currency = 'EUR' interval = '2 DA...
50.172932
114
0.528848
6,444
0.965683
0
0
0
0
0
0
992
0.148659
6362b82e328d27e85d3822efc006649be370c499
123
py
Python
basic_syntax_conditional_statements_and_loops/lab/number_between_1_and_100.py
PetkoAndreev/Python-fundamentals
dcf2ecb65d7a82a6688a7529a14eb8a331a83256
[ "MIT" ]
null
null
null
basic_syntax_conditional_statements_and_loops/lab/number_between_1_and_100.py
PetkoAndreev/Python-fundamentals
dcf2ecb65d7a82a6688a7529a14eb8a331a83256
[ "MIT" ]
null
null
null
basic_syntax_conditional_statements_and_loops/lab/number_between_1_and_100.py
PetkoAndreev/Python-fundamentals
dcf2ecb65d7a82a6688a7529a14eb8a331a83256
[ "MIT" ]
null
null
null
num = float(input()) while num < 1 or num > 100: num = float(input()) print(f'The number {num} is between 1 and 100')
20.5
47
0.626016
0
0
0
0
0
0
0
0
40
0.325203
6363782e48bd5eaedc0c8edeecafa798bb0dc04d
94
py
Python
heronpy/connectors/textfiles/__init__.py
ajorgensen/heron
6430c51a4a6030e93018e0ed40e5936a64317636
[ "Apache-2.0" ]
2
2016-07-04T07:10:31.000Z
2018-03-28T16:59:02.000Z
heronpy/connectors/textfiles/__init__.py
ajorgensen/heron
6430c51a4a6030e93018e0ed40e5936a64317636
[ "Apache-2.0" ]
null
null
null
heronpy/connectors/textfiles/__init__.py
ajorgensen/heron
6430c51a4a6030e93018e0ed40e5936a64317636
[ "Apache-2.0" ]
1
2017-06-05T17:55:45.000Z
2017-06-05T17:55:45.000Z
'''module for textfiles connectors''' __import__('pkg_resources').declare_namespace(__name__)
31.333333
55
0.808511
0
0
0
0
0
0
0
0
52
0.553191
6363c6bbeaa5d8ba27ac83c8c4a9925fa4151cdf
1,824
py
Python
examples/animate/recamanSeq.py
beidongjiedeguang/manim-express
e9c89b74da3692db3ea9b568727e78d5cbcef503
[ "MIT" ]
12
2021-06-14T07:28:29.000Z
2022-02-25T02:49:49.000Z
examples/animate/recamanSeq.py
beidongjiedeguang/manim-kunyuan
e9c89b74da3692db3ea9b568727e78d5cbcef503
[ "MIT" ]
1
2022-02-01T12:30:14.000Z
2022-02-01T12:30:14.000Z
examples/animate/recamanSeq.py
beidongjiedeguang/manim-express
e9c89b74da3692db3ea9b568727e78d5cbcef503
[ "MIT" ]
2
2021-05-13T13:24:15.000Z
2021-05-18T02:56:22.000Z
from examples.example_imports import * VIOLET = "#EE82EE" INDIGO = "#4B0082" VIBGYOR = [VIOLET, INDIGO, BLUE, GREEN, YELLOW, ORANGE, RED] class RecamanSequence(EagerModeScene): CONFIG = { "n": 100, # number of iterations } def clip1(self): self.count = 0 visited = [0] + [None] *...
27.223881
76
0.533443
1,607
0.881031
0
0
0
0
0
0
237
0.129934
636542941608f361eff45699a289086724f66554
95
py
Python
pygfs/utils.py
eWaterCycle/pyGFS
3d2c533b7781c4ae94ac393877d91d4325e0c0cb
[ "Apache-2.0" ]
1
2021-05-19T05:42:28.000Z
2021-05-19T05:42:28.000Z
pygfs/utils.py
eWaterCycle/pyGFS
3d2c533b7781c4ae94ac393877d91d4325e0c0cb
[ "Apache-2.0" ]
null
null
null
pygfs/utils.py
eWaterCycle/pyGFS
3d2c533b7781c4ae94ac393877d91d4325e0c0cb
[ "Apache-2.0" ]
null
null
null
def check_gribfile(f): ''' check if file is a grib file and readeable ''' pass
15.833333
46
0.589474
0
0
0
0
0
0
0
0
58
0.610526
6365ef6932b09a9ca176a69f9f72ff21e3cd604b
5,182
py
Python
validator/txnserver/web_pages/prevalidation_page.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
1
2019-03-18T13:31:11.000Z
2019-03-18T13:31:11.000Z
validator/txnserver/web_pages/prevalidation_page.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
validator/txnserver/web_pages/prevalidation_page.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 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 in wri...
37.014286
80
0.604979
3,960
0.764184
0
0
0
0
0
0
1,449
0.279622
6368cb3cf505c5009517da98c8fe412698d9997a
2,052
py
Python
additional_models/model2.py
srikanth311/CarND-Behavioral-Cloning-P3
2d6f7f73f646b5d83d283d33a84770ea6fae11d0
[ "MIT" ]
null
null
null
additional_models/model2.py
srikanth311/CarND-Behavioral-Cloning-P3
2d6f7f73f646b5d83d283d33a84770ea6fae11d0
[ "MIT" ]
null
null
null
additional_models/model2.py
srikanth311/CarND-Behavioral-Cloning-P3
2d6f7f73f646b5d83d283d33a84770ea6fae11d0
[ "MIT" ]
null
null
null
# https://stackoverflow.com/questions/34518656/how-to-interpret-loss-and-accuracy-for-a-machine-learning-model from additional_models.data2 import read_csv_data, get_samples from keras.models import Sequential from keras.layers.core import Dense, Dropout, Flatten, Lambda from keras.layers.convolutional import Conv2D f...
34.779661
110
0.694444
0
0
0
0
0
0
0
0
462
0.225146
636b12312c9285edfa8c85a571b4320d339a5502
4,254
py
Python
networks/recognition/models.py
FaceID-Dongguk-Univ/FaceID
61147b11e70b1c172cbbff618d10f7e518c2c801
[ "MIT" ]
null
null
null
networks/recognition/models.py
FaceID-Dongguk-Univ/FaceID
61147b11e70b1c172cbbff618d10f7e518c2c801
[ "MIT" ]
null
null
null
networks/recognition/models.py
FaceID-Dongguk-Univ/FaceID
61147b11e70b1c172cbbff618d10f7e518c2c801
[ "MIT" ]
2
2021-09-30T14:02:04.000Z
2021-10-08T07:44:20.000Z
""" MIT License Copyright (c) 2019 Kuan-Yu Huang 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 restriction, including without limitation the rights to use, copy, modify, merge, publish,...
35.45
79
0.666432
0
0
0
0
0
0
0
0
1,324
0.311236
636c08dd9863e232a0e141c5bf49a4049685e262
6,693
py
Python
magnum/tests/unit/db/test_x509keypair.py
mjbrewer/testIndex
420dc071d4240a89b6f266e8d2575cedb39bfea0
[ "Apache-2.0" ]
null
null
null
magnum/tests/unit/db/test_x509keypair.py
mjbrewer/testIndex
420dc071d4240a89b6f266e8d2575cedb39bfea0
[ "Apache-2.0" ]
null
null
null
magnum/tests/unit/db/test_x509keypair.py
mjbrewer/testIndex
420dc071d4240a89b6f266e8d2575cedb39bfea0
[ "Apache-2.0" ]
1
2020-09-09T14:35:08.000Z
2020-09-09T14:35:08.000Z
# Copyright 2015 NEC 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 required b...
42.903846
79
0.659346
5,795
0.86583
0
0
0
0
0
0
918
0.137158
636f486add13f8c9416be0f98507743cabd74049
2,769
py
Python
src/rysia/core/tensorflow/helper.py
vdeuschle/rysia
c8c5adc2c770424b3a328a936f23a80a38c9f0f2
[ "Apache-2.0" ]
2
2020-08-17T15:46:30.000Z
2020-08-20T19:20:57.000Z
src/rysia/core/tensorflow/helper.py
vdeuschle/rysia
c8c5adc2c770424b3a328a936f23a80a38c9f0f2
[ "Apache-2.0" ]
null
null
null
src/rysia/core/tensorflow/helper.py
vdeuschle/rysia
c8c5adc2c770424b3a328a936f23a80a38c9f0f2
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Vincent Deuschle. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license" file accompanyin...
48.578947
119
0.653666
0
0
0
0
0
0
0
0
725
0.261827
637294b6bbc4dcbace3b74bbe577dbb797c776c8
1,670
py
Python
examples/stdicons.py
diegomvh/pyqt
435756fab9751eab2e30f5f3351d7fc43589533f
[ "MIT" ]
1
2022-03-07T20:20:51.000Z
2022-03-07T20:20:51.000Z
examples/stdicons.py
diegomvh/pyqt
435756fab9751eab2e30f5f3351d7fc43589533f
[ "MIT" ]
null
null
null
examples/stdicons.py
diegomvh/pyqt
435756fab9751eab2e30f5f3351d7fc43589533f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from PyQt4 import QtCore, QtGui def get_std_icon(name): if not name.startswith('SP_'): name = 'SP_' + name standardIconName = getattr(QtGui.QStyle, name, None) if standardIconName is not None: return QtGui.QWidget().style().standardIcon( standa...
31.509434
82
0.578443
1,062
0.635928
0
0
0
0
0
0
212
0.126946
6372c851f000a2f462e3b75cd28ab4a885253034
3,616
py
Python
examples/run_homographs.py
vinnamkim/GEM
cac74b711ef1547e5bc68b85fdf7f7437933b325
[ "BSD-3-Clause" ]
null
null
null
examples/run_homographs.py
vinnamkim/GEM
cac74b711ef1547e5bc68b85fdf7f7437933b325
[ "BSD-3-Clause" ]
null
null
null
examples/run_homographs.py
vinnamkim/GEM
cac74b711ef1547e5bc68b85fdf7f7437933b325
[ "BSD-3-Clause" ]
null
null
null
''' Run the graph embedding methods on Karate graph and evaluate them on graph reconstruction and visualization. Please copy the gem/data/karate.edgelist to the working directory ''' import matplotlib.pyplot as plt from time import time from gem.utils import graph_util, plot_util from gem.evaluation import visualize...
39.304348
145
0.601217
0
0
0
0
0
0
0
0
934
0.258296
6372eab4ac944c27e2845406a864b91ae6b8f10c
256
py
Python
src/ScientificProgrammingPrimer/ch_01/gaussian.py
bmoretz/Python-Playground
a367ec7659b85c24363c21b5c0ac25db08ffa1f6
[ "MIT" ]
null
null
null
src/ScientificProgrammingPrimer/ch_01/gaussian.py
bmoretz/Python-Playground
a367ec7659b85c24363c21b5c0ac25db08ffa1f6
[ "MIT" ]
null
null
null
src/ScientificProgrammingPrimer/ch_01/gaussian.py
bmoretz/Python-Playground
a367ec7659b85c24363c21b5c0ac25db08ffa1f6
[ "MIT" ]
null
null
null
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt mu = 0 sigma = 2 def f(x): return 1/ ( np.sqrt( 2*np.pi ) * sigma ) * np.exp( -.5 * ( ( x - mu ) / sigma ) **2 ) x = np.arange( -4.0, 4.0, 0.1 ) plt.plot( x, f(x) ) plt.show()
18.285714
86
0.574219
0
0
0
0
0
0
0
0
0
0
6372ee8c2eee6d970a09c164123669b1173e689f
120
py
Python
easy_transformers/constants.py
ManoharSai2000/easy-transformers
9f10bcf469ff30093e3af763eaca066740fb1795
[ "Apache-2.0" ]
null
null
null
easy_transformers/constants.py
ManoharSai2000/easy-transformers
9f10bcf469ff30093e3af763eaca066740fb1795
[ "Apache-2.0" ]
null
null
null
easy_transformers/constants.py
ManoharSai2000/easy-transformers
9f10bcf469ff30093e3af763eaca066740fb1795
[ "Apache-2.0" ]
null
null
null
DEFAULT_MAX_LENGTH = 512 DEFAULT_EASY_TRANSFORMERS_CACHE_SIZE = 1 DEFAULT_EASY_TRANSFORMERS_TEXT_EMB_CACHE_SIZE = 10000
30
53
0.9
0
0
0
0
0
0
0
0
0
0
63735a38a8d7214835bb46850a5181ef1c373ff8
1,981
py
Python
tests/test_color.py
cowo78/pynextion
40215761bc8abbd7cc53fefa68e8b78a67b73aed
[ "Apache-2.0" ]
null
null
null
tests/test_color.py
cowo78/pynextion
40215761bc8abbd7cc53fefa68e8b78a67b73aed
[ "Apache-2.0" ]
1
2019-02-24T14:40:42.000Z
2019-02-24T14:40:42.000Z
tests/test_color.py
cowo78/pynextion
40215761bc8abbd7cc53fefa68e8b78a67b73aed
[ "Apache-2.0" ]
null
null
null
from pynextion.color import ( NamedColor, Color ) def test_named_color(): assert NamedColor.BLACK.value == 0 assert NamedColor.WHITE.value == 65535 assert NamedColor.RED.value == 63488 assert NamedColor.GREEN.value == 2016 assert NamedColor.BLUE.value == 31 assert NamedColor.GRAY.value...
27.136986
67
0.540636
0
0
0
0
0
0
0
0
134
0.067643
63748db7a5ced0b64fd8d94829c93ed18e0dccd7
1,149
py
Python
src/Classes/MSDS400/Module 2/gas_mix.py
bmoretz/Python-Playground
a367ec7659b85c24363c21b5c0ac25db08ffa1f6
[ "MIT" ]
null
null
null
src/Classes/MSDS400/Module 2/gas_mix.py
bmoretz/Python-Playground
a367ec7659b85c24363c21b5c0ac25db08ffa1f6
[ "MIT" ]
null
null
null
src/Classes/MSDS400/Module 2/gas_mix.py
bmoretz/Python-Playground
a367ec7659b85c24363c21b5c0ac25db08ffa1f6
[ "MIT" ]
null
null
null
# A company is developing a new additive for gasoline. # The additive is a mixture of three liquid​ ingredients, I,​ II, and III. # For proper​ performance, the total amount of additive must be at least 7 oz per gal of gasoline.​ # However, for safety​ reasons, the amount of additive should not exceed 19 oz per gal ...
33.794118
170
0.684073
0
0
0
0
0
0
0
0
690
0.587234
6375bb306a93b9eec7919581139fd4a68e0b853c
3,994
py
Python
sankey_chart.py
fwd1990man/PythonSankeyChart
ee97570587fda84fb52798132b46f68c1775623a
[ "MIT" ]
1
2021-05-19T00:09:24.000Z
2021-05-19T00:09:24.000Z
sankey_chart.py
vladhj38/PythonSankeyChart
ee97570587fda84fb52798132b46f68c1775623a
[ "MIT" ]
null
null
null
sankey_chart.py
vladhj38/PythonSankeyChart
ee97570587fda84fb52798132b46f68c1775623a
[ "MIT" ]
null
null
null
import drawSvg as draw import pandas as pd from PIL import Image df = pd.DataFrame([[15.7, 11.9, 3.8]], index=[1], columns=['Comp', 'Traffic', 'Ticket']) # df = pd.DataFrame([[9.0, -2.0, 11.1]], index=[1], columns=['Comp', 'Traffic', 'Ticket']) comp_val = df.at[1, 'Comp'] traffic_val = df.at[1, 'Traffic'] ticket_val...
21.589189
90
0.525538
0
0
0
0
0
0
0
0
780
0.195293
6376ae7819f9e26b72824b9b1885ad2420eb93b4
3,135
py
Python
SndClass.py
fit087/scientific_python
17b128c064e49581043ef3c1cf84e61c25287065
[ "MIT" ]
1
2020-02-28T22:57:54.000Z
2020-02-28T22:57:54.000Z
SndClass.py
fit087/scientific_python
17b128c064e49581043ef3c1cf84e61c25287065
[ "MIT" ]
null
null
null
SndClass.py
fit087/scientific_python
17b128c064e49581043ef3c1cf84e61c25287065
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Feb 11 13:07:06 2020 @author: Adolfo Correa Professor: Dr. Iuri Segtovich """ import numpy as np print('\nExercise 1\n') # Exercise 1 # ============================================= x = [1, 346432, 68, 1223, 5, 47, 678] max_val = x[0] for elem in x: if e...
19.233129
109
0.482616
0
0
0
0
0
0
0
0
1,346
0.428936
6377a7cfc960f1b8f02d09cde803ef13fad43a69
4,495
py
Python
backups/button.py
lsjsg/People_counting_raspberry_pi
5b2b8c4807e72bc1a0f86b0afeb5abf58fe07ed4
[ "MIT" ]
2
2019-05-19T20:09:47.000Z
2019-08-27T15:45:10.000Z
backups/button.py
roskeys/People_counting_raspberry_pi
5b2b8c4807e72bc1a0f86b0afeb5abf58fe07ed4
[ "MIT" ]
null
null
null
backups/button.py
roskeys/People_counting_raspberry_pi
5b2b8c4807e72bc1a0f86b0afeb5abf58fe07ed4
[ "MIT" ]
1
2020-03-21T15:08:10.000Z
2020-03-21T15:08:10.000Z
from time import sleep import pyrebase import RPi.GPIO as GPIO url = 'https://dw-1d-kivy.firebaseio.com' # URL to Firebase database apikey = '"AIzaSyADs22Rdhef_5w28Y4oOvx0Aat1NiKCl5U"' # unique token used for authentication config = {"apiKey": apikey, "databaseURL": url, } # Create a firebase object by specifying ...
30.371622
117
0.606007
0
0
0
0
0
0
0
0
1,392
0.309677
63786d836006075a18bb63e6fb9cab3c649282bd
6,526
py
Python
project/app/api/rental_pred_viz.py
labs26-citrics/Labs26-Citrics-DS-TeamB
980ff695f49be7bcb3ffdda38dba56049ef1e988
[ "MIT" ]
1
2021-01-04T19:32:50.000Z
2021-01-04T19:32:50.000Z
project/app/api/rental_pred_viz.py
labs26-citrics/Labs26-Citrics-DS-TeamB
980ff695f49be7bcb3ffdda38dba56049ef1e988
[ "MIT" ]
3
2020-09-08T22:27:35.000Z
2020-10-01T22:19:13.000Z
project/app/api/rental_pred_viz.py
labs26-citrics/Labs26-Citrics-DS-TeamB
980ff695f49be7bcb3ffdda38dba56049ef1e988
[ "MIT" ]
4
2020-10-13T21:56:42.000Z
2021-03-03T01:59:37.000Z
from fastapi import APIRouter, HTTPException import numpy as np import pandas as pd import plotly.graph_objects as go import plotly.express as px import os router = APIRouter() DATA_FILEPATH = os.path.join(os.path.dirname(__file__), "..", "..","data", "rental_all.csv") @router.get('/predict_rental/{city_id}') async ...
21.973064
96
0.596843
0
0
0
0
1,090
0.167024
1,049
0.160742
2,473
0.378946
63787af43ccc0aea55b2d299610f4773a1860ff2
2,185
py
Python
release/scripts/addons/oscurart_tools/object/search_and_select.py
simileV/blenderStereo29
09b993449aaca671a9eb2a6a22327246936eb3db
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-07-20T15:41:58.000Z
2020-07-20T15:41:58.000Z
release/scripts/addons/oscurart_tools/object/search_and_select.py
ringsce/Rings3D
8059d1e2460fc8d6f101eff8e695f68a99f6671d
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
release/scripts/addons/oscurart_tools/object/search_and_select.py
ringsce/Rings3D
8059d1e2460fc8d6f101eff8e695f68a99f6671d
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
36.416667
74
0.652632
1,182
0.540961
0
0
0
0
0
0
1,036
0.474142
637a49b80162d3c9d3ede67a0b42de3e48ef8458
6,605
py
Python
find_facilities.py
tayuny/the-wandering-chicago
d861f0de4ce0ebc23d246768e45690fbda055be6
[ "Unlicense" ]
null
null
null
find_facilities.py
tayuny/the-wandering-chicago
d861f0de4ce0ebc23d246768e45690fbda055be6
[ "Unlicense" ]
null
null
null
find_facilities.py
tayuny/the-wandering-chicago
d861f0de4ce0ebc23d246768e45690fbda055be6
[ "Unlicense" ]
null
null
null
''' Main code for finding the nearest target spots and export an webpage ''' import os import webbrowser import pandas as pd import util import gmplot COLOR_MAP = {'family support (children services)': '#FFFACD', 'family support (senior services)':'#FFFACD', 'family support (domestic violenc...
39.550898
94
0.640575
0
0
0
0
0
0
0
0
3,166
0.479334
637a981be4eccfd221f02a9a564f08b97ca045a8
765
py
Python
tests/run_tests.py
lbanawa/photo_filters
a9729d96929770599ddca2715026b69d8837168f
[ "MIT" ]
null
null
null
tests/run_tests.py
lbanawa/photo_filters
a9729d96929770599ddca2715026b69d8837168f
[ "MIT" ]
7
2020-03-02T01:48:58.000Z
2022-01-13T02:21:10.000Z
tests/run_tests.py
lbanawa/photo_filters
a9729d96929770599ddca2715026b69d8837168f
[ "MIT" ]
null
null
null
import inspect import os import sys import unittest __author__ = "David Juboor" __version__ = "1.0" # Can't use __file__ because when running with coverage via command line, ___file__ is not the full path my_location = os.path.dirname(os.path.abspath(inspect.stack()[0][1])) def test_runner_suite(): tests_source...
27.321429
104
0.745098
0
0
0
0
0
0
0
0
269
0.351634
637a9ea66b82d2beaeba55846d62607bb1b78e7b
8,500
py
Python
core/core_service.py
greatkeke/V2ray.FunPi
e58f78331f2fa19eb2af0082bccdc8e904e73217
[ "MIT" ]
576
2020-08-10T07:02:49.000Z
2022-03-21T05:21:12.000Z
core/core_service.py
raydoom/V2ray.FunPi
53d8c205e5dd260abd59f95a633d3c5062ace0e0
[ "MIT" ]
13
2020-08-14T00:55:28.000Z
2022-03-21T05:23:27.000Z
core/core_service.py
raydoom/V2ray.FunPi
53d8c205e5dd260abd59f95a633d3c5062ace0e0
[ "MIT" ]
52
2020-08-10T13:20:58.000Z
2022-03-17T08:56:34.000Z
# encoding: utf-8 """ File: core_service Author: twotrees.us@gmail.com Date: 2020年7月30日 31周星期四 10:55 Desc: """ import psutil import os import os.path from .package import jsonpickle from typing import List from apscheduler.schedulers.background import BackgroundScheduler from apscheduler.schedulers.bas...
32.442748
160
0.626588
7,833
0.920014
0
0
7,269
0.85377
0
0
544
0.063895
637b2a10deb0627e199f297b833ffac4a9356c63
4,282
py
Python
src/dropSQL/ast/join.py
LakshyaaSoni/dropSQL
da07ad3edf2d55f0521a385ad10678fc353b4b2b
[ "MIT" ]
35
2017-11-27T22:24:46.000Z
2022-01-16T23:50:01.000Z
src/dropSQL/ast/join.py
LakshyaaSoni/dropSQL
da07ad3edf2d55f0521a385ad10678fc353b4b2b
[ "MIT" ]
null
null
null
src/dropSQL/ast/join.py
LakshyaaSoni/dropSQL
da07ad3edf2d55f0521a385ad10678fc353b4b2b
[ "MIT" ]
2
2018-02-20T06:06:12.000Z
2021-10-16T18:30:15.000Z
import abc from typing import * from dropSQL.engine.row_set import * from dropSQL.engine.types import * from dropSQL.generic import * from dropSQL.parser.streams import * from dropSQL.parser.tokens import * from .alias import AliasedTable from .ast import * from .expression import Expression if TYPE_CHECKING: fro...
26.432099
96
0.570061
3,841
0.897011
0
0
2,429
0.567258
0
0
815
0.190332
637cb1919870ccb4eeaec9f7ea5827d1ff65b585
2,007
py
Python
raspberry/car_unlock/lib/MyMQTT.py
FrancescoConforte/Car2Smart
b14f447c55e0d82e9d00124c1494faddc94c9ed1
[ "MIT" ]
null
null
null
raspberry/car_unlock/lib/MyMQTT.py
FrancescoConforte/Car2Smart
b14f447c55e0d82e9d00124c1494faddc94c9ed1
[ "MIT" ]
null
null
null
raspberry/car_unlock/lib/MyMQTT.py
FrancescoConforte/Car2Smart
b14f447c55e0d82e9d00124c1494faddc94c9ed1
[ "MIT" ]
null
null
null
import paho.mqtt.client as PahoMQTT import json class MyMQTT: def __init__(self, clientID, broker, port, notifier=None): self.broker = broker self.port = port self.notifier = notifier self.clientID = clientID self._topic = "" self._isSubscriber = False # creat...
34.016949
74
0.63129
1,958
0.975585
0
0
0
0
0
0
449
0.223717
637d0020a33a6fdd3c4651808a9b764d4bbf5ed2
128
py
Python
member/urls.py
itssunny322/User_activity
c150b1e8e52f4cb019d6d390c6007e038fbb1688
[ "Apache-2.0" ]
null
null
null
member/urls.py
itssunny322/User_activity
c150b1e8e52f4cb019d6d390c6007e038fbb1688
[ "Apache-2.0" ]
3
2021-03-19T02:57:29.000Z
2021-09-22T18:58:45.000Z
member/urls.py
itssunny322/User_activity
c150b1e8e52f4cb019d6d390c6007e038fbb1688
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import * urlpatterns = [ path('users', UserView.as_view(), name='user_list'), ]
14.222222
56
0.679688
0
0
0
0
0
0
0
0
18
0.140625
637ebf676d3ea3b214dcf86fafe7c2902594ff07
895
py
Python
Lib/css/stylesheets/CreditAgricole.py
jeamick/ares-visual
3cf5068f874b3f6fe898968b2a7efa86fadca99d
[ "MIT" ]
null
null
null
Lib/css/stylesheets/CreditAgricole.py
jeamick/ares-visual
3cf5068f874b3f6fe898968b2a7efa86fadca99d
[ "MIT" ]
2
2019-03-27T00:36:09.000Z
2019-04-09T00:39:12.000Z
Lib/css/stylesheets/CreditAgricole.py
jeamick/ares-visual
3cf5068f874b3f6fe898968b2a7efa86fadca99d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # author: Olivier Noguès # All colors are coming from the template # https://credit-agricole.ua/pdf/Credit_Agricole_AR_2016_ENG_full_17072017_.pdf import CssBase charts = ['#71bf44', '#1d99d6', '#6bcff6', '#bed630', '#00805f', '#00a96c', '#66bbaa', '#bbeeee', ...
16.574074
109
0.458101
0
0
0
0
0
0
0
0
560
0.625
637ff6c71153ab5cecfe30bce4a405dfd2c17978
1,960
py
Python
src/python/gwas_analysis/dask/codecs.py
tomwhite/gwas-analysis
5b219607b8311722f16f7df8a8aad09ba69dc448
[ "Apache-2.0" ]
19
2020-03-18T01:06:58.000Z
2022-02-06T19:59:30.000Z
src/python/gwas_analysis/dask/codecs.py
tomwhite/gwas-analysis
5b219607b8311722f16f7df8a8aad09ba69dc448
[ "Apache-2.0" ]
39
2020-01-20T19:50:19.000Z
2021-01-07T19:01:48.000Z
src/python/gwas_analysis/dask/codecs.py
tomwhite/gwas-analysis
5b219607b8311722f16f7df8a8aad09ba69dc448
[ "Apache-2.0" ]
5
2020-03-13T20:47:24.000Z
2022-01-13T09:43:35.000Z
from dask.distributed import WorkerPlugin from numcodecs import PackBits from numcodecs.compat import ensure_ndarray, ndarray_copy import numpy as np # See: https://github.com/zarr-developers/numcodecs/blob/master/numcodecs/packbits.py class PackGeneticBits(PackBits): """Custom Zarr plugin for encoding allele co...
30.625
113
0.654082
1,717
0.87602
0
0
0
0
0
0
820
0.418367
63806501475b50be287ea81ec9eea6bfef44daae
6,363
py
Python
astromodels/core/property.py
giacomov/astromodels
bfad6993465df66d9c071c00d6e0c747266bd3a7
[ "BSD-3-Clause" ]
11
2015-12-02T17:28:57.000Z
2018-10-08T02:33:32.000Z
astromodels/core/property.py
giacomov/astromodels
bfad6993465df66d9c071c00d6e0c747266bd3a7
[ "BSD-3-Clause" ]
73
2016-05-29T10:17:30.000Z
2018-12-21T19:35:00.000Z
astromodels/core/property.py
giacomov/astromodels
bfad6993465df66d9c071c00d6e0c747266bd3a7
[ "BSD-3-Clause" ]
15
2016-06-03T21:28:10.000Z
2019-01-07T14:23:15.000Z
import collections import copy from typing import Any, Dict, List, Optional, Tuple, Union from astromodels.utils.logging import setup_logger from .tree import Node log = setup_logger(__name__) # Exception for when a parameter is out of its bounds class SettingUnknownValue(RuntimeError): pass class PropertyBas...
27.786026
115
0.54534
6,079
0.955367
0
0
800
0.125727
0
0
1,999
0.31416
6381b46ba4699339e587d7107a305cb39d4ea409
4,354
py
Python
modules/import_ships.py
sprintska/menagerie
43a92f161f4b6aba9841ef7edb6fe10e84ab1f77
[ "MIT" ]
null
null
null
modules/import_ships.py
sprintska/menagerie
43a92f161f4b6aba9841ef7edb6fe10e84ab1f77
[ "MIT" ]
null
null
null
modules/import_ships.py
sprintska/menagerie
43a92f161f4b6aba9841ef7edb6fe10e84ab1f77
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import json import logging import logging.handlers import os import pickle import requests import sqlite3 import shutil from contextlib import closing _handler = logging.handlers.WatchedFileHandler("/var/log/menagerie.log") logging.basicConfig(handlers=[_handler], level=logging.INFO) API_TARGET_U...
29.821918
101
0.426964
0
0
0
0
0
0
0
0
2,274
0.522278
63821dda649cfe4db5f1c008cef5ae903f0936db
2,296
py
Python
source/custom_scripts/backfill_app_stats_ee2_reserved_cpu.py
kbase/metrics
33b134d6d9dea8cc4e9cf0ebe6b370aef1dc3486
[ "MIT" ]
1
2015-12-16T13:33:04.000Z
2015-12-16T13:33:04.000Z
source/custom_scripts/backfill_app_stats_ee2_reserved_cpu.py
kbase/metrics
33b134d6d9dea8cc4e9cf0ebe6b370aef1dc3486
[ "MIT" ]
54
2016-06-01T19:28:09.000Z
2022-03-31T00:08:38.000Z
source/custom_scripts/backfill_app_stats_ee2_reserved_cpu.py
kbase/metrics
33b134d6d9dea8cc4e9cf0ebe6b370aef1dc3486
[ "MIT" ]
8
2015-12-16T13:33:04.000Z
2020-02-07T23:30:33.000Z
import os import mysql.connector as mysql sql_host = os.environ["SQL_HOST"] query_on = os.environ["QUERY_ON"] metrics_mysql_password = os.environ["METRICS_MYSQL_PWD"] def make_lookup_dict(): cpu_file = open("custom_scripts/app_reserved_cpu_lookup_file.txt", "r") lines = cpu_file.readlines() count = 0 ...
30.613333
88
0.678571
0
0
0
0
0
0
0
0
452
0.196864
6383bbf4486f5639d8906a1645240b576336ba7a
7,157
py
Python
rein_train.py
jhkim6467/input_distill
0e49e7552fa17cf72143fcc5ff84a8b25cb02232
[ "MIT" ]
null
null
null
rein_train.py
jhkim6467/input_distill
0e49e7552fa17cf72143fcc5ff84a8b25cb02232
[ "MIT" ]
null
null
null
rein_train.py
jhkim6467/input_distill
0e49e7552fa17cf72143fcc5ff84a8b25cb02232
[ "MIT" ]
null
null
null
from __future__ import division, unicode_literals import argparse import time import math import random import torch.nn as nn, torch import torch.nn.init as init import torch.optim as optim import os import numpy as np import pickle from torch.autograd import Variable from torch.utils.data import DataLoader from scip...
31.808889
144
0.619254
3,902
0.545201
0
0
0
0
0
0
585
0.081738
6385ed5301b4cb8b06313076f50b0982e7fb2002
2,605
py
Python
pyblas/level2/icamax.py
timleslie/pyblas
9109f2cc24e674cf59a3b39f95c2d7b8116ae884
[ "BSD-3-Clause" ]
null
null
null
pyblas/level2/icamax.py
timleslie/pyblas
9109f2cc24e674cf59a3b39f95c2d7b8116ae884
[ "BSD-3-Clause" ]
1
2020-10-10T23:23:06.000Z
2020-10-10T23:23:06.000Z
pyblas/level2/icamax.py
timleslie/pyblas
9109f2cc24e674cf59a3b39f95c2d7b8116ae884
[ "BSD-3-Clause" ]
null
null
null
# > \brief \b ICAMAX # # =========== DOCUMENTATION =========== # # Online html documentation available at # http://www.netlib.org/lapack/explore-html/ # # Definition: # =========== # # INTEGER FUNCTION ICAmax(N,CX,INCX) # # .. Scalar Arguments .. # INTEGER INCX,N # .. # .. Ar...
22.652174
84
0.471785
0
0
0
0
0
0
0
0
1,883
0.722841
63872bec7ad482c58ec938d8ed3b9e283f7be51a
135
py
Python
core/__init__.py
david-wm-sanders/oeo
1ce26ddcd83d957183eefaae508c2a6800d47e94
[ "MIT" ]
1
2019-07-28T04:40:16.000Z
2019-07-28T04:40:16.000Z
core/__init__.py
david-wm-sanders/oeo
1ce26ddcd83d957183eefaae508c2a6800d47e94
[ "MIT" ]
null
null
null
core/__init__.py
david-wm-sanders/oeo
1ce26ddcd83d957183eefaae508c2a6800d47e94
[ "MIT" ]
null
null
null
from .oeo import Oeo from .element import Element from .stats import Stats from .move import Move, MoveCategory from .item import Item
22.5
36
0.8
0
0
0
0
0
0
0
0
0
0
63872c71ea983b463c94d5253e8b2aae917c2ae9
8,708
py
Python
iepy/extraction/active_learning_core.py
silky/iepy
5967d025ce47d28e1d8725c14d5b05dda36afa3c
[ "BSD-2-Clause", "BSD-3-Clause" ]
1
2019-06-27T11:32:36.000Z
2019-06-27T11:32:36.000Z
iepy/extraction/active_learning_core.py
silky/iepy
5967d025ce47d28e1d8725c14d5b05dda36afa3c
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
iepy/extraction/active_learning_core.py
silky/iepy
5967d025ce47d28e1d8725c14d5b05dda36afa3c
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
import logging import random import sys import numpy from sklearn.cross_validation import StratifiedKFold from sklearn.metrics import precision_recall_curve from iepy import defaults from iepy.extraction.relation_extraction_classifier import RelationExtractionClassifier logger = logging.getLogger(__name__) HIPREC...
38.875
108
0.636082
8,266
0.949242
0
0
255
0.029283
0
0
3,154
0.362196
6389f2d088c36850ddd534900c1ca48ec6be6f71
3,211
py
Python
core/src/autogluon/core/utils/mo_hbo_utils.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
4,462
2019-12-09T17:41:07.000Z
2022-03-31T22:00:41.000Z
core/src/autogluon/core/utils/mo_hbo_utils.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
1,408
2019-12-09T17:48:59.000Z
2022-03-31T20:24:12.000Z
core/src/autogluon/core/utils/mo_hbo_utils.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
623
2019-12-10T02:04:18.000Z
2022-03-20T17:11:01.000Z
""" Methods helpful for multi-objective HPO. """ import numpy as np def retrieve_pareto_front(training_history, objectives): """Retrieves the pareto efficient points discovered during a scheduler's search process. Parameters ---------- training_history: A training history dictionary gen...
31.174757
78
0.63625
0
0
0
0
0
0
0
0
1,879
0.585176
638a0baf11ca5164a0488e66a941c341fef23f5f
1,191
py
Python
twinpy/interfaces/phonopy.py
kei0822kei/twinpy
14b47df1fa5b57a54f57d5c2120ed3fe9502a9bc
[ "MIT" ]
null
null
null
twinpy/interfaces/phonopy.py
kei0822kei/twinpy
14b47df1fa5b57a54f57d5c2120ed3fe9502a9bc
[ "MIT" ]
5
2021-01-19T13:08:28.000Z
2021-02-20T12:03:59.000Z
twinpy/interfaces/phonopy.py
kei0822kei/twinpy
14b47df1fa5b57a54f57d5c2120ed3fe9502a9bc
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Interfaces for Phonopy. """ from phonopy.structure.atoms import PhonopyAtoms def get_phonopy_structure(cell:tuple) -> PhonopyAtoms: """ Return phonopy structure. Args: cell: (lattice, scaled_positions, symbols). Returns: PhonopyAtoms: Phonopy structure. ...
25.891304
77
0.645676
0
0
0
0
0
0
0
0
457
0.383711
638c0be826b6716fae5d37c58132d62b7412ca00
151
py
Python
unecorn/admin.py
anast239/unecorn
8a874f8cced013668dd29398176a8fb60cc04057
[ "MIT" ]
null
null
null
unecorn/admin.py
anast239/unecorn
8a874f8cced013668dd29398176a8fb60cc04057
[ "MIT" ]
null
null
null
unecorn/admin.py
anast239/unecorn
8a874f8cced013668dd29398176a8fb60cc04057
[ "MIT" ]
null
null
null
from django.contrib import admin from unecorn.models import * admin.site.register(Discount) admin.site.register(Category) admin.site.register(Company)
25.166667
32
0.827815
0
0
0
0
0
0
0
0
0
0
638fa7d83e983c9f58b992517e42b211927ac9d7
101
py
Python
smaland/totp.py
emilwareus/smaland
b455199b072c84bcf6d576c92fc18004e0cbe60b
[ "MIT" ]
3
2020-03-15T21:07:48.000Z
2021-03-15T20:37:39.000Z
smaland/totp.py
emilwareus/smaland
b455199b072c84bcf6d576c92fc18004e0cbe60b
[ "MIT" ]
null
null
null
smaland/totp.py
emilwareus/smaland
b455199b072c84bcf6d576c92fc18004e0cbe60b
[ "MIT" ]
1
2020-04-05T08:17:14.000Z
2020-04-05T08:17:14.000Z
import os import pyotp def totp(secret): totp = pyotp.TOTP(secret) return totp.now()
10.1
29
0.633663
0
0
0
0
0
0
0
0
0
0
63926d6791f595f27ac1f2b7ab67e1b7d3e158ff
1,929
py
Python
tests/test_configurations/test_validation.py
marcofavorito/agents-aea
e520f2f5d076a193514e194d94aa76c6423ac5bc
[ "Apache-2.0" ]
null
null
null
tests/test_configurations/test_validation.py
marcofavorito/agents-aea
e520f2f5d076a193514e194d94aa76c6423ac5bc
[ "Apache-2.0" ]
null
null
null
tests/test_configurations/test_validation.py
marcofavorito/agents-aea
e520f2f5d076a193514e194d94aa76c6423ac5bc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
37.096154
83
0.613271
0
0
0
0
0
0
0
0
1,136
0.588906
63945e496bccbd028111b476e664c3eb1a506627
149
py
Python
catfact.py
machow/catfact
d316ddc399c5832827748bfd0090c9aab328be0e
[ "MIT" ]
null
null
null
catfact.py
machow/catfact
d316ddc399c5832827748bfd0090c9aab328be0e
[ "MIT" ]
1
2020-08-17T16:39:22.000Z
2020-08-17T17:26:28.000Z
catfact.py
machow/forcats-py
d316ddc399c5832827748bfd0090c9aab328be0e
[ "MIT" ]
null
null
null
__version__ = "0.0.1" # NOTE: I am moving the forcats module from siuba to here # https://github.com/machow/siuba/blob/master/siuba/dply/forcats.py
29.8
67
0.744966
0
0
0
0
0
0
0
0
131
0.879195
6394a005b0b9bebb0d580dab268f093e10997fc7
958
py
Python
src/djanban/apps/boards/migrations/0007_auto_20160724_2331.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
33
2017-06-14T18:04:25.000Z
2021-06-15T07:07:56.000Z
src/djanban/apps/boards/migrations/0007_auto_20160724_2331.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
1
2017-05-10T08:45:55.000Z
2017-05-10T08:45:55.000Z
src/djanban/apps/boards/migrations/0007_auto_20160724_2331.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
8
2017-08-27T11:14:25.000Z
2021-03-03T12:11:16.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-07-24 21:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('boards', '0006_board_hourly_rates'), ] operations = [ migrations.AddField( ...
30.903226
135
0.625261
801
0.836117
0
0
0
0
0
0
269
0.280793
6394f2f9f555e0a8608e94bc903806f7f599f382
547
py
Python
consultas/consultas/report/reporte_ars/reporte_ars.py
Lewinta/Consultas
e01ad870a2bad0eb5938d8800e3e2934402fce62
[ "MIT" ]
null
null
null
consultas/consultas/report/reporte_ars/reporte_ars.py
Lewinta/Consultas
e01ad870a2bad0eb5938d8800e3e2934402fce62
[ "MIT" ]
null
null
null
consultas/consultas/report/reporte_ars/reporte_ars.py
Lewinta/Consultas
e01ad870a2bad0eb5938d8800e3e2934402fce62
[ "MIT" ]
null
null
null
# Copyright (c) 2013, Lewin Villar and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe def execute(filters=None): fields = ["paciente","ars_nombre","diferencia","reclamado","autorizado","medico"] filters = {"name":"CLS-0000001795"} result = frap...
36.466667
109
0.740402
0
0
0
0
0
0
0
0
284
0.519196
63962ee9e6bd04454a63c550017a084b6549e70a
2,014
py
Python
features/list.py
magnusstubman/mal00
e99cad410657bf0452cae02d81d89c211732a789
[ "MIT" ]
3
2021-03-29T13:28:31.000Z
2021-10-12T09:33:14.000Z
features/list.py
magnusstubman/mal00
e99cad410657bf0452cae02d81d89c211732a789
[ "MIT" ]
null
null
null
features/list.py
magnusstubman/mal00
e99cad410657bf0452cae02d81d89c211732a789
[ "MIT" ]
1
2021-04-05T10:19:34.000Z
2021-04-05T10:19:34.000Z
from features import addFeature from lib import implants from lib import globals import tableprint import timeago import sys import time global lastImplantCount lastImplantCount = 0 def delLast(num): return num += 4 ERASE_LINE = '\x1b[2K' CURSOR_UP_ONE = '\x1b[1A' CURSOR_DOWN_ONE = '\x1b[1B' print((CURS...
30.515152
134
0.626614
1,403
0.696624
0
0
0
0
0
0
727
0.360973
639784db5f7b3e514273818d74c8edc0b31fcc00
2,883
py
Python
cst_toolbox/misc.py
danielberenberg/system-triangle-citizen
9b3aef8ce61c798119456f7c0febbabd15d4b054
[ "AFL-1.1" ]
null
null
null
cst_toolbox/misc.py
danielberenberg/system-triangle-citizen
9b3aef8ce61c798119456f7c0febbabd15d4b054
[ "AFL-1.1" ]
null
null
null
cst_toolbox/misc.py
danielberenberg/system-triangle-citizen
9b3aef8ce61c798119456f7c0febbabd15d4b054
[ "AFL-1.1" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import shutil import secrets from pathlib import Path class text_color: BLACK = '\033[30m' RED = '\033[31m' GREEN = '\033[32m' YELLOW = '\033[33m' BLUE = '\033[34m' MAGENTA = '\033[35m' CYAN = '\033[36m' WHITE = '\033[37m' ...
23.826446
88
0.58897
2,425
0.841138
0
0
128
0.044398
0
0
538
0.186611
6398388ca17e95891e06f879a77203f8c6d615b1
226
py
Python
tests/xtests/view_base/apps.py
Linuxbody/Xadmin
09f588dda215c9e872d7c007622c1a8d32956265
[ "BSD-3-Clause" ]
null
null
null
tests/xtests/view_base/apps.py
Linuxbody/Xadmin
09f588dda215c9e872d7c007622c1a8d32956265
[ "BSD-3-Clause" ]
1
2021-02-08T20:51:30.000Z
2021-02-08T20:51:30.000Z
tests/xtests/view_base/apps.py
Linuxbody/Xadmin
09f588dda215c9e872d7c007622c1a8d32956265
[ "BSD-3-Clause" ]
1
2017-08-23T06:49:46.000Z
2017-08-23T06:49:46.000Z
#!/usr/bin/env python #coding:utf-8 import sys if sys.getdefaultencoding()=='ascii': reload(sys) sys.setdefaultencoding('utf-8') from django.apps import AppConfig class ViewBaseApp(AppConfig): name = "view_base"
18.833333
37
0.721239
52
0.230088
0
0
0
0
0
0
59
0.261062
63992d2753f85baec5addc65ebdd06abc6f26af5
2,569
py
Python
equidistantpoints/cli.py
ksbg/edpoints
f0534ad7deb6ec50992dc382bf3395e7e494aace
[ "MIT" ]
5
2019-04-01T12:15:35.000Z
2021-11-23T21:56:14.000Z
equidistantpoints/cli.py
ksbg/edpoints
f0534ad7deb6ec50992dc382bf3395e7e494aace
[ "MIT" ]
null
null
null
equidistantpoints/cli.py
ksbg/edpoints
f0534ad7deb6ec50992dc382bf3395e7e494aace
[ "MIT" ]
1
2019-03-23T08:43:03.000Z
2019-03-23T08:43:03.000Z
"""Command-line usage of the package""" from argparse import ArgumentParser from . import EquidistantPoints def parse_args(): """Command-line arguments parsing""" parser = ArgumentParser() parser.add_argument( 'n_points', help='Number of points to be generated', metavar='N', ...
32.518987
96
0.609965
0
0
0
0
0
0
0
0
964
0.375243
6399347054a80cac6c21b3faa78dc0fa728a196b
406
py
Python
conda_verify/package/test_setup_files.py
soapy1/conda-verify
4941b8ea37bf4afa5ca16366ae855f756037f230
[ "BSD-3-Clause" ]
null
null
null
conda_verify/package/test_setup_files.py
soapy1/conda-verify
4941b8ea37bf4afa5ca16366ae855f756037f230
[ "BSD-3-Clause" ]
null
null
null
conda_verify/package/test_setup_files.py
soapy1/conda-verify
4941b8ea37bf4afa5ca16366ae855f756037f230
[ "BSD-3-Clause" ]
1
2020-02-03T12:43:17.000Z
2020-02-03T12:43:17.000Z
from conda_verify.conda_package_check import CondaPackageCheck def verify(path_to_package=None, verbose=True, **kwargs): package_check = CondaPackageCheck(path_to_package, verbose) package_check.no_setuptools() pedantic = kwargs.get("pedantic") if "pedantic" in kwargs.keys() else True package_check.no...
36.909091
78
0.780788
0
0
0
0
0
0
0
0
20
0.049261
639a947ce1dccf8c0d1cdff0245bd69ac98bd8c8
346
py
Python
py/kgc/csv_numbered_fields.py
bcgov/diutils
caf510c81f7f43372d4a8e18f77eaa86cdede6a5
[ "Apache-2.0" ]
3
2020-02-13T21:34:28.000Z
2021-01-11T17:24:56.000Z
py/kgc/csv_numbered_fields.py
bcgov/diputils
6a491e8f1dd9330b58083953a274544b6c0f5bea
[ "Apache-2.0" ]
14
2020-04-17T19:33:50.000Z
2021-12-12T22:03:43.000Z
py/kgc/csv_numbered_fields.py
bcgov/diutils
caf510c81f7f43372d4a8e18f77eaa86cdede6a5
[ "Apache-2.0" ]
1
2021-11-19T01:18:41.000Z
2021-11-19T01:18:41.000Z
# write new version of csv with numbered (not named) fields import os import sys args = sys.argv lines = open(args[1]).readlines() lines = [line.strip() for line in lines] hdr = lines[0].split(',') hdr = ','.join([str(i) for i in range(len(hdr))]) lines[0] = hdr open(args[1] + "_numbered_fields.csv", "wb").write(('\...
24.714286
79
0.656069
0
0
0
0
0
0
0
0
95
0.274566
639b89ff3173f96edbd1e584cff4ca8d08819f9f
2,532
py
Python
bike/parsing/load.py
debiancn/bicyclerepair
dd054e802d6d8ad80baeccee0396da68144f2a26
[ "ICU" ]
2
2020-05-29T06:31:53.000Z
2020-12-19T21:49:25.000Z
bike/parsing/load.py
debiancn/bicyclerepair
dd054e802d6d8ad80baeccee0396da68144f2a26
[ "ICU" ]
null
null
null
bike/parsing/load.py
debiancn/bicyclerepair
dd054e802d6d8ad80baeccee0396da68144f2a26
[ "ICU" ]
null
null
null
from bike.globals import * import os from bike.parsing.fastparser import fastparser class Cache: def __init__(self): self.reset() def reset(self): self.srcnodecache = {} self.typecache = {} self.maskedlinescache = {} instance = None Cache.instance = Cache() class CantLoca...
26.652632
77
0.648499
1,798
0.710111
0
0
0
0
0
0
96
0.037915
639c16e6f34dd9dd30026f135c3b0b6e5f096b19
736
py
Python
tests/expander/test_expand_config_shared.py
alphatwirl/qtwirl
85cc5fa53a9932a83c3fb6115a054590bcf999a7
[ "BSD-3-Clause" ]
null
null
null
tests/expander/test_expand_config_shared.py
alphatwirl/qtwirl
85cc5fa53a9932a83c3fb6115a054590bcf999a7
[ "BSD-3-Clause" ]
null
null
null
tests/expander/test_expand_config_shared.py
alphatwirl/qtwirl
85cc5fa53a9932a83c3fb6115a054590bcf999a7
[ "BSD-3-Clause" ]
null
null
null
# Tai Sakuma <tai.sakuma@gmail.com> import pytest try: import unittest.mock as mock except ImportError: import mock from qtwirl._parser.expander import _expand_config ##__________________________________________________________________|| @pytest.fixture() def mock_expand_one_dict(monkeypatch): def ret(cf...
26.285714
70
0.766304
0
0
0
0
234
0.317935
0
0
203
0.275815
639c1fc6dce0c0de8ecc27f3959b4ad5d2555fed
2,815
py
Python
molecool/visualize.py
janash/sample_python_package
367a1f446671aca81b789077adfb771385786d48
[ "BSD-3-Clause" ]
1
2020-05-01T18:43:56.000Z
2020-05-01T18:43:56.000Z
molecool/visualize.py
janash/sample_python_package
367a1f446671aca81b789077adfb771385786d48
[ "BSD-3-Clause" ]
null
null
null
molecool/visualize.py
janash/sample_python_package
367a1f446671aca81b789077adfb771385786d48
[ "BSD-3-Clause" ]
null
null
null
""" Functions for visualization of molecules """ import numpy as np import matplotlib.pyplot as plt from .atom_data import atom_colors def draw_molecule(coordinates, symbols, draw_bonds=None, save_location=None, dpi=300): """Draw a picture of a molecule. Parameters ---------- coordinates : np.ndarray...
28.72449
86
0.617052
0
0
0
0
0
0
0
0
1,333
0.473535
639d17d627a197d64b7fb4116f0b3b64aa07ae6b
2,185
py
Python
interesting_info.py
jicarretero/fiware-users
cedb87550fc3a1e95b0087e3174160301fe3b80d
[ "Apache-2.0" ]
null
null
null
interesting_info.py
jicarretero/fiware-users
cedb87550fc3a1e95b0087e3174160301fe3b80d
[ "Apache-2.0" ]
null
null
null
interesting_info.py
jicarretero/fiware-users
cedb87550fc3a1e95b0087e3174160301fe3b80d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ## # Copyright 2017 FIWARE Foundation, e.V. # 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.apach...
28.012821
103
0.70389
0
0
0
0
0
0
0
0
966
0.441903
639ecc093e44120c4662cc5f7f988b58d3a293ce
5,365
py
Python
test/test_parity_accounts.py
ad360io/python-ethereum-client
93c111f20ea2f7297d4462edc500cfecb1f289e0
[ "Apache-2.0" ]
3
2019-03-28T18:56:44.000Z
2020-12-30T17:00:15.000Z
test/test_parity_accounts.py
thezedwards/python-ethereum-client
93c111f20ea2f7297d4462edc500cfecb1f289e0
[ "Apache-2.0" ]
null
null
null
test/test_parity_accounts.py
thezedwards/python-ethereum-client
93c111f20ea2f7297d4462edc500cfecb1f289e0
[ "Apache-2.0" ]
null
null
null
from test_base import TestBase class TestParityAccounts(TestBase): def test_parity_all_accounts_info(self): cb = lambda: self.client.parity_all_accounts_info() self.mock(cb, True) def test_parity_change_password(self): address = '0xdae1bfb92c7c0fd23396619ee1a0d643bf609c2e' ol...
39.448529
92
0.704753
5,331
0.993663
0
0
0
0
0
0
982
0.183038
639f02b61ea216bdda84b7ae424cd5d8a516bacb
1,955
py
Python
stats/management/commands/import_historical_daily_compute_ligo.py
ARCCA/cogs3
bcfe4397e1c91607e231f97df7d05b924e6598da
[ "MIT" ]
1
2020-03-28T23:55:02.000Z
2020-03-28T23:55:02.000Z
stats/management/commands/import_historical_daily_compute_ligo.py
ARCCA/cogs3
bcfe4397e1c91607e231f97df7d05b924e6598da
[ "MIT" ]
60
2018-04-16T13:40:23.000Z
2020-06-05T18:02:01.000Z
stats/management/commands/import_historical_daily_compute_ligo.py
ARCCA/cogs3
bcfe4397e1c91607e231f97df7d05b924e6598da
[ "MIT" ]
10
2018-03-14T22:25:50.000Z
2020-01-09T21:32:22.000Z
import os from datetime import datetime from django.core.management.base import BaseCommand from . import find_date_range_of_ligo_file class Command(BaseCommand): help = 'Import historical daily compute stats for LIGO from bz2 files.' def add_arguments(self, parser): parser.add_argument...
34.298246
88
0.547315
1,806
0.923785
0
0
0
0
0
0
468
0.239386
639f2d1a51d2e5c95491eb21f78d303d6cbf9833
2,949
py
Python
xero_python/payrolluk/models/benefits.py
parasharrk/xero-python
e8416f3bd893520a343af014f5bb65acbf1f4f13
[ "MIT" ]
null
null
null
xero_python/payrolluk/models/benefits.py
parasharrk/xero-python
e8416f3bd893520a343af014f5bb65acbf1f4f13
[ "MIT" ]
null
null
null
xero_python/payrolluk/models/benefits.py
parasharrk/xero-python
e8416f3bd893520a343af014f5bb65acbf1f4f13
[ "MIT" ]
null
null
null
# coding: utf-8 """ Xero Payroll UK This is the Xero Payroll API for orgs in the UK region. # noqa: E501 OpenAPI spec version: 2.4.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel class Benefits(BaseMod...
24.172131
83
0.587657
2,650
0.89861
0
0
1,419
0.48118
0
0
1,756
0.595456
63a01e092685c700f3b8dba69aaebf5daf1ae324
67
py
Python
supplychainpy/reporting/blueprints/contact/templates/__init__.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
231
2016-05-30T02:34:45.000Z
2022-03-28T17:00:29.000Z
supplychainpy/reporting/blueprints/contact/templates/__init__.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
77
2016-03-23T16:28:34.000Z
2021-09-30T22:08:03.000Z
supplychainpy/reporting/blueprints/contact/templates/__init__.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
103
2016-08-10T19:53:09.000Z
2022-03-16T16:34:38.000Z
from supplychainpy.reporting.blueprints.contact.views import about
33.5
66
0.880597
0
0
0
0
0
0
0
0
0
0
63a078f73cd02a7639b3fb8a84f7a96fd200a95a
390
py
Python
harmony/harmony_checker/migrations/0018_auto_20191230_1247.py
ecxia/harmony-checker
78b198fa091bd8175a8ad8f233053b34654c3a09
[ "MIT" ]
null
null
null
harmony/harmony_checker/migrations/0018_auto_20191230_1247.py
ecxia/harmony-checker
78b198fa091bd8175a8ad8f233053b34654c3a09
[ "MIT" ]
null
null
null
harmony/harmony_checker/migrations/0018_auto_20191230_1247.py
ecxia/harmony-checker
78b198fa091bd8175a8ad8f233053b34654c3a09
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-12-30 18:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('harmony_checker', '0017_auto_20191230_1246'), ] operations = [ migrations.AlterField( model_name='test', name='func'...
20.526316
55
0.602564
297
0.761538
0
0
0
0
0
0
101
0.258974
63a0c556655cbddce507c8203d32acd238d0abbf
11,486
py
Python
Meters/IEC/crm_getter.py
Runamook/PyCharmProjects
1b1a063345e052451f00e3fdea82e31bdd2a0cae
[ "MIT" ]
null
null
null
Meters/IEC/crm_getter.py
Runamook/PyCharmProjects
1b1a063345e052451f00e3fdea82e31bdd2a0cae
[ "MIT" ]
null
null
null
Meters/IEC/crm_getter.py
Runamook/PyCharmProjects
1b1a063345e052451f00e3fdea82e31bdd2a0cae
[ "MIT" ]
null
null
null
import json try: from .Helpers.create_logger import create_logger except ImportError: from Helpers.create_logger import create_logger try: from .emhmeter import * except ModuleNotFoundError: from emhmeter import * from time import sleep import datetime class CRMtoRedis: url = "http://10.11.30.97:...
34.911854
141
0.562946
10,807
0.940885
0
0
250
0.021766
0
0
4,858
0.42295
63a10e3867c93ef6e2a403378b7afcbe977b5a3c
172
py
Python
panel/widgets/__init__.py
arianon/panel
634d9b65fe7973f7875b827a22ef18fc74120725
[ "MIT" ]
null
null
null
panel/widgets/__init__.py
arianon/panel
634d9b65fe7973f7875b827a22ef18fc74120725
[ "MIT" ]
null
null
null
panel/widgets/__init__.py
arianon/panel
634d9b65fe7973f7875b827a22ef18fc74120725
[ "MIT" ]
null
null
null
from ..widget import Widget from .bitcoin import bitcoin from .clock import clock, calendar from .music import music from .volume import volume from .memory import memory
21.5
34
0.802326
0
0
0
0
0
0
0
0
0
0
63a1738a8546e5c03125ba171676d6c0f49767de
1,280
py
Python
custom_components/vivint/lock.py
cameroncockrell/hacs-vivint
e0d3b053a2247d7b506e8e3edfbdc4b5f6de7e0b
[ "MIT" ]
25
2021-02-08T16:13:38.000Z
2022-02-22T01:32:31.000Z
custom_components/vivint/lock.py
cameroncockrell/hacs-vivint
e0d3b053a2247d7b506e8e3edfbdc4b5f6de7e0b
[ "MIT" ]
37
2021-01-24T22:37:25.000Z
2022-03-16T03:08:09.000Z
custom_components/vivint/lock.py
cameroncockrell/hacs-vivint
e0d3b053a2247d7b506e8e3edfbdc4b5f6de7e0b
[ "MIT" ]
1
2021-09-02T18:49:06.000Z
2021-09-02T18:49:06.000Z
"""Support for Vivint door locks.""" from homeassistant.components.lock import LockEntity from vivintpy.devices.door_lock import DoorLock from .const import DOMAIN from .hub import VivintEntity async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Vivint door locks using config entry."""...
27.826087
77
0.657813
552
0.43125
0
0
252
0.196875
731
0.571094
259
0.202344
63a25b18c73a26d39d698b2c55164a02e5eac2cc
1,482
py
Python
fastapi-master-api/app/service/adapters.py
SionAbes/fullstack-porfolio
6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9
[ "MIT" ]
1
2021-12-25T09:19:25.000Z
2021-12-25T09:19:25.000Z
fastapi-master-api/app/service/adapters.py
SionAbes/fullstack-porfolio
6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9
[ "MIT" ]
null
null
null
fastapi-master-api/app/service/adapters.py
SionAbes/fullstack-porfolio
6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9
[ "MIT" ]
null
null
null
import json from typing import List, Union from app.domain.adapter import ( Adapter, CreateVolvoCaretrackAdapter, CreateWackerNeusonKramerAdapter, ) from app.repository.database.adapters import PolymorphicAdaptersBase, adapters_repo from kafka import KafkaProducer from sqlalchemy.orm import Session class...
26.945455
83
0.662618
1,039
0.70108
0
0
0
0
0
0
33
0.022267
63a466972fbe138345c3a144affd2ff678d1060a
592
py
Python
gamabr.py
shalahuddin/sketch
e8c051e09d48348bab1594e9538f719940fba52e
[ "Unlicense" ]
null
null
null
gamabr.py
shalahuddin/sketch
e8c051e09d48348bab1594e9538f719940fba52e
[ "Unlicense" ]
3
2020-07-13T09:59:41.000Z
2020-07-13T10:24:34.000Z
gamabr.py
shalahuddin/sketch
e8c051e09d48348bab1594e9538f719940fba52e
[ "Unlicense" ]
null
null
null
import cv2 import sys # do instal modul opencv-python image = cv2.imread("gambar.jpg") grayImage = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) grayImageInv = 255 - grayImage grayImageInv = cv2.GaussianBlur(grayImageInv, (21, 21), 0) output = cv2.divide(grayImage, 255-grayImageInv, scale = 256.0) resizeImg = cv2.resize(ou...
31.157895
63
0.760135
0
0
0
0
0
0
0
0
106
0.179054
63a544bf153a8063e56192d1b7de1591ce27ac14
2,111
py
Python
ioe_api/user/token.py
mohsinalimat/frappe_ioe_api
d21941ac6050644c8ccbcc21a9ccc24f1a432712
[ "MIT" ]
1
2021-02-24T13:48:01.000Z
2021-02-24T13:48:01.000Z
ioe_api/user/token.py
mohsinalimat/frappe_ioe_api
d21941ac6050644c8ccbcc21a9ccc24f1a432712
[ "MIT" ]
1
2019-12-16T09:08:20.000Z
2019-12-17T08:10:50.000Z
ioe_api/user/token.py
mohsinalimat/frappe_ioe_api
d21941ac6050644c8ccbcc21a9ccc24f1a432712
[ "MIT" ]
3
2020-05-31T21:08:56.000Z
2021-12-22T10:42:21.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, Dirk Chang and contributors # For license information, please see license.txt # # Api for user.token # from __future__ import unicode_literals import frappe import uuid from ioe_api.helper import throw @frappe.whitelist(allow_guest=True) def test(): frappe.response.upda...
20.104762
89
0.670298
0
0
0
0
1,846
0.874467
0
0
641
0.303648
63a5feffe2c2078e241a498bb5eb36898788c2b3
1,608
py
Python
Lab5/RobieLavy - AICV LAB 5/Task-2.py
kubabujak48/AICV_LABS
75468410a56252de28c256f1d7a732c51a7239fb
[ "MIT" ]
null
null
null
Lab5/RobieLavy - AICV LAB 5/Task-2.py
kubabujak48/AICV_LABS
75468410a56252de28c256f1d7a732c51a7239fb
[ "MIT" ]
null
null
null
Lab5/RobieLavy - AICV LAB 5/Task-2.py
kubabujak48/AICV_LABS
75468410a56252de28c256f1d7a732c51a7239fb
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np from random import randrange def noise(img): s = salt(img) p = pepper(img) noise = cv.addWeighted(s, 0.5, p, 0.5, 0) output = cv.addWeighted(img, 0.5, noise, 0.5, 0) return output def salt(img): rows, cols = img.shape[:2] dens = (rows*cols*0.5)//2 ...
18.697674
57
0.567164
0
0
0
0
0
0
0
0
269
0.167289
63a7115e0b5bdec7a35652d52dc76e2f6f175302
726
py
Python
marner/core.py
FergusonTG/marner
2b90a8396d365244101ea17bf24964bf445599fc
[ "MIT" ]
null
null
null
marner/core.py
FergusonTG/marner
2b90a8396d365244101ea17bf24964bf445599fc
[ "MIT" ]
null
null
null
marner/core.py
FergusonTG/marner
2b90a8396d365244101ea17bf24964bf445599fc
[ "MIT" ]
null
null
null
"""Core functions to integrate the gui and the backup.""" import logging from .gui import App, tk from .backup import collect_emails, ImapRuntimeError logging.basicConfig( level=logging.INFO, ) def _do_backup(): app.disable_submit(True) dialog_values = app.as_dict() server_login = dict( ...
18.615385
57
0.677686
0
0
0
0
0
0
0
0
105
0.144628
63a73b69fb793b77e0ad6523894415a1d427ed75
172
py
Python
any_response_redirect_middleware/tests/__init__.py
hzdg/django-any-response-redirect-middleware
1b832a35b14566b0c7aa99e17cfcdbe4835a269c
[ "MIT" ]
null
null
null
any_response_redirect_middleware/tests/__init__.py
hzdg/django-any-response-redirect-middleware
1b832a35b14566b0c7aa99e17cfcdbe4835a269c
[ "MIT" ]
null
null
null
any_response_redirect_middleware/tests/__init__.py
hzdg/django-any-response-redirect-middleware
1b832a35b14566b0c7aa99e17cfcdbe4835a269c
[ "MIT" ]
null
null
null
from .basic import BasicRedirectMiddlewareTests from .django_cms import RedirectMiddlewareTestsWithDjangoCMS from .wagtail_cms import RedirectMiddlewareTestsWithWagtailCMS
43
62
0.912791
0
0
0
0
0
0
0
0
0
0
63a75ebd32da30f3a8d2044144db3a414d9879d2
265
py
Python
api/serializers.py
MarcelIrawan/django-template
03944f99979c303ee364b24385aa827a739cadf0
[ "MIT" ]
1
2020-11-28T12:55:56.000Z
2020-11-28T12:55:56.000Z
api/serializers.py
MarcelIrawan/django-template
03944f99979c303ee364b24385aa827a739cadf0
[ "MIT" ]
null
null
null
api/serializers.py
MarcelIrawan/django-template
03944f99979c303ee364b24385aa827a739cadf0
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import CustomUser class UserSerializer(serializers.ModelSerializer): """ Serilizer for user """ class Meta: model = CustomUser # fields = '__all__' fields = ['id','email']
22.083333
50
0.649057
193
0.728302
0
0
0
0
0
0
65
0.245283
63a76f1c1a9231b2370d39956bed3335b3730a64
2,302
py
Python
natural-computing/genetic-programming/constants.py
ramongonze/ufmg-practical-assignments
d85821e330a0f089a7601168bbbf8b4aef174f27
[ "MIT" ]
null
null
null
natural-computing/genetic-programming/constants.py
ramongonze/ufmg-practical-assignments
d85821e330a0f089a7601168bbbf8b4aef174f27
[ "MIT" ]
null
null
null
natural-computing/genetic-programming/constants.py
ramongonze/ufmg-practical-assignments
d85821e330a0f089a7601168bbbf8b4aef174f27
[ "MIT" ]
null
null
null
import math import operator import random # Seed used to control the tests random.seed() # A set of nodes composes a binary tree class Node(object): def __init__(self, item, right=None, left=None, level=1): self.right = right # Right child self.left = left # Left child self.item = item self.level = level # T...
37.129032
113
0.670721
478
0.207646
0
0
0
0
0
0
1,163
0.505213
63a7dc72e2d08886f4dcef0209986deb895e47ef
1,290
py
Python
LeetCode/python-R1/0005-最长回文子串D/V2.py
huuuuusy/Programming-Practice-Everyday
c78b368ab0439d85b8a69f6d9c8154d708bafc9c
[ "Apache-2.0" ]
4
2019-08-27T11:28:03.000Z
2020-12-24T07:10:22.000Z
LeetCode/python-R1/0005-最长回文子串D/V2.py
huuuuusy/Programming-Practice-Everyday
c78b368ab0439d85b8a69f6d9c8154d708bafc9c
[ "Apache-2.0" ]
null
null
null
LeetCode/python-R1/0005-最长回文子串D/V2.py
huuuuusy/Programming-Practice-Everyday
c78b368ab0439d85b8a69f6d9c8154d708bafc9c
[ "Apache-2.0" ]
4
2019-09-20T09:44:01.000Z
2020-12-24T07:10:23.000Z
""" @Author: huuuuusy @GitHub: https://github.com/huuuuusy 系统: Ubuntu 18.04 IDE: VS Code 1.36 工具: python == 3.7.3 """ """ 思路: 以每个元素为中心,分别向外扩散寻找奇数回文子串和偶数回文子串 结果: 执行用时 : 868 ms, 在所有 Python3 提交中击败了82.03%的用户 内存消耗 : 13.7 MB, 在所有 Python3 提交中击败了19.28%的用户 """ class Solution: def longestPalindrome(self, s): ...
25.8
92
0.489922
1,121
0.681045
0
0
0
0
0
0
876
0.532199
63aa61e1d8acde8bc8dcb47698d79a9564703801
210
py
Python
tuples.py
joshavenue/python_notebook
8d46ba88ef4f05dea6801364bc134edb981df02e
[ "Unlicense" ]
null
null
null
tuples.py
joshavenue/python_notebook
8d46ba88ef4f05dea6801364bc134edb981df02e
[ "Unlicense" ]
null
null
null
tuples.py
joshavenue/python_notebook
8d46ba88ef4f05dea6801364bc134edb981df02e
[ "Unlicense" ]
null
null
null
x = (1,2,3,4) y = (1,2,'abc',[1,2,3]) // Only can change data with a list, other cannot be change y[3][1] = 22 print(y) x = 1,2,3,4,5 tuple(x) // You can create a tuple this way
19.090909
90
0.509524
0
0
0
0
0
0
0
0
5
0.02381
63aafba5bd8bdfc6df640fba8aa9924fc93ada56
2,359
py
Python
Wrappers/Python/cil/optimisation/operators/DiagonalOperator.py
ClaireDelplancke/CCPi-Framework
3f0cb9dd363ac386832d3034717f022c3b2952a1
[ "Apache-2.0" ]
30
2021-05-18T08:54:01.000Z
2022-03-24T17:42:31.000Z
Wrappers/Python/cil/optimisation/operators/DiagonalOperator.py
ClaireDelplancke/CCPi-Framework
3f0cb9dd363ac386832d3034717f022c3b2952a1
[ "Apache-2.0" ]
301
2021-05-07T12:28:15.000Z
2022-03-31T17:16:26.000Z
Wrappers/Python/cil/optimisation/operators/DiagonalOperator.py
ClaireDelplancke/CCPi-Framework
3f0cb9dd363ac386832d3034717f022c3b2952a1
[ "Apache-2.0" ]
7
2021-09-05T20:45:11.000Z
2022-03-10T21:16:37.000Z
# -*- coding: utf-8 -*- # This work is part of the Core Imaging Library (CIL) developed by CCPi # (Collaborative Computational Project in Tomographic Imaging), with # substantial contributions by UKRI-STFC and University of Manchester. # Licensed under the Apache License, Version 2.0 (the "License"); # you...
38.048387
84
0.648156
1,446
0.612972
0
0
0
0
0
0
1,534
0.650276
63acb591d68fc2c9434a33512ffeb95aa93fdd10
1,284
py
Python
repos/system_upgrade/el7toel8/models/vsftpdfacts.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
21
2018-11-20T15:58:39.000Z
2022-03-15T19:57:24.000Z
repos/system_upgrade/el7toel8/models/vsftpdfacts.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
732
2018-11-21T18:33:26.000Z
2022-03-31T16:16:24.000Z
repos/system_upgrade/el7toel8/models/vsftpdfacts.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
85
2018-11-20T17:55:00.000Z
2022-03-29T09:40:31.000Z
from leapp.models import Model, fields from leapp.topics import SystemInfoTopic class VsftpdConfig(Model): """ Model representing some aspects of a vsftpd configuration file. The attributes representing the state of configuration options are nullable, so that they can represent the real state of the ...
40.125
93
0.731308
1,198
0.933022
0
0
0
0
0
0
806
0.627726
63ad66c77ea48cbf7d452c7ca127eea43619e80f
426
py
Python
solutions/python/2017/makeArrayConsecutive.py
lucifer1198/Codesignal
07d6d6457b8b3a9f1c51118b0e8e44cce66ee039
[ "MIT" ]
2
2020-12-21T22:09:26.000Z
2021-01-01T15:40:01.000Z
solutions/python/2017/makeArrayConsecutive.py
nsu1210/Codesignal
07d6d6457b8b3a9f1c51118b0e8e44cce66ee039
[ "MIT" ]
null
null
null
solutions/python/2017/makeArrayConsecutive.py
nsu1210/Codesignal
07d6d6457b8b3a9f1c51118b0e8e44cce66ee039
[ "MIT" ]
1
2021-01-28T18:15:02.000Z
2021-01-28T18:15:02.000Z
""" Given an array of integers, we need to fill in the "holes" such that it contains all the integers from some range. Example For sequence = [6, 2, 3, 8], the output should be makeArrayConsecutive(sequence) = [4, 5, 7]. """ def makeArrayConsecutive(sequence): s = sorted(sequence) x = range(min(s), max(s) +...
22.421053
114
0.626761
0
0
0
0
0
0
0
0
226
0.530516
63ae651d3be857f3edd0aaef054f1eeeb0a39829
6,141
py
Python
findy/utils/request.py
doncat99/FinanceDataCenter
1538c8347ed5bff9a99a3cca07507a7605108124
[ "MIT" ]
null
null
null
findy/utils/request.py
doncat99/FinanceDataCenter
1538c8347ed5bff9a99a3cca07507a7605108124
[ "MIT" ]
null
null
null
findy/utils/request.py
doncat99/FinanceDataCenter
1538c8347ed5bff9a99a3cca07507a7605108124
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging from http import client from retrying import retry import requests from aiohttp import ClientSession, ClientTimeout, TCPConnector # from aiohttp_client_cache import CachedSession, SQLiteBackend # from findy.interface import RunMode # from findy.utils.cache import hashable_lru l...
37.674847
131
0.623351
214
0.034848
0
0
818
0.133203
0
0
1,542
0.251099
63aef9c2f41a87230a16543f6b852c81c6bc1313
1,290
py
Python
tools/export_weights.py
hlld/classification
327a67661ac2fc6302809dc8caab12b7a8195c64
[ "MIT" ]
7
2021-07-29T09:05:38.000Z
2021-07-29T11:01:03.000Z
tools/export_weights.py
zhaojiankuan/classification
f5e90107aadb35be7056d75b6b01d48bd1370800
[ "MIT" ]
null
null
null
tools/export_weights.py
zhaojiankuan/classification
f5e90107aadb35be7056d75b6b01d48bd1370800
[ "MIT" ]
4
2021-07-29T09:05:40.000Z
2021-07-29T10:51:50.000Z
import argparse import sys import os import torch import struct from pathlib import Path sys.path.append('../') from classification.tools import load_model def export_weights(model, wts_file): # Export model to TensorRT compatible format with open(wts_file, 'w') as fd: fd.write('{}\n'.format(len(mode...
32.25
70
0.589147
0
0
0
0
0
0
0
0
228
0.176744
63b061c19fd581caa93d0fedc228b0c213f72200
1,153
py
Python
pytrivia/__helpers.py
Dnewman9/Python-Trivia-API
0af7f999cc4ab278fb0ac6fd64733ab168984e60
[ "MIT" ]
6
2018-01-15T15:17:56.000Z
2021-06-16T19:48:14.000Z
pytrivia/__helpers.py
MaT1g3R/Python-Trivia-API
0af7f999cc4ab278fb0ac6fd64733ab168984e60
[ "MIT" ]
null
null
null
pytrivia/__helpers.py
MaT1g3R/Python-Trivia-API
0af7f999cc4ab278fb0ac6fd64733ab168984e60
[ "MIT" ]
7
2017-05-15T23:41:43.000Z
2021-07-10T01:09:09.000Z
import binascii from base64 import b64decode from aiohttp import ClientResponseError, ClientSession from requests import get def decode_dict(d): """ Recursivly decode all strings in a dict :param d: the input dict :return: a dict with all its vals decoded """ if isinstance(d, int): re...
23.06
76
0.630529
0
0
0
0
0
0
173
0.150043
386
0.334779
63b125702a1b2571faf102a9e6061df6610c3d1e
1,213
py
Python
Network.py
LonglongaaaGo/CNN-python
02b0f9e0e5044796bc858b75421cbc4e2e3cc653
[ "MIT" ]
null
null
null
Network.py
LonglongaaaGo/CNN-python
02b0f9e0e5044796bc858b75421cbc4e2e3cc653
[ "MIT" ]
null
null
null
Network.py
LonglongaaaGo/CNN-python
02b0f9e0e5044796bc858b75421cbc4e2e3cc653
[ "MIT" ]
null
null
null
from Layer import * class Network(BasicLayer): def __init__(self,para={}): self.model = [] #para={ # "Conv_layer":{XX..} # } for key in para.keys(): if "Conv" in key: self.model.append(Conv_layer(para[key])) elif "Fully" in key: ...
28.209302
65
0.538335
1,191
0.981863
0
0
0
0
0
0
67
0.055235
63b1840d56f09a5d5a9c20bc118d0207eadb7b11
1,882
py
Python
spyder/plugins/statusbar/container.py
ximion/spyder
50911555cefd95947c887f8a412a58ad96ff8d9e
[ "MIT" ]
1
2021-03-13T04:36:43.000Z
2021-03-13T04:36:43.000Z
spyder/plugins/statusbar/container.py
ximion/spyder
50911555cefd95947c887f8a412a58ad96ff8d9e
[ "MIT" ]
null
null
null
spyder/plugins/statusbar/container.py
ximion/spyder
50911555cefd95947c887f8a412a58ad96ff8d9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Status bar container. """ # Third-party imports from qtpy.QtCore import Signal # Local imports from spyder.api.widgets import PluginMainContainer ...
30.354839
65
0.635494
1,455
0.772703
0
0
0
0
0
0
593
0.314923
63b3401ea17e27ce0e9f4bb65e298c006a065ac2
589
py
Python
yaga_ga/evolutionary_algorithm/selectors/ranking.py
alessandrolenzi/yaga
872503ad04a2831135143750bc309188e5685284
[ "MIT" ]
null
null
null
yaga_ga/evolutionary_algorithm/selectors/ranking.py
alessandrolenzi/yaga
872503ad04a2831135143750bc309188e5685284
[ "MIT" ]
null
null
null
yaga_ga/evolutionary_algorithm/selectors/ranking.py
alessandrolenzi/yaga
872503ad04a2831135143750bc309188e5685284
[ "MIT" ]
null
null
null
from typing import Iterable, Sequence, Tuple, TypeVar, Generic from yaga_ga.evolutionary_algorithm.details import Comparable from yaga_ga.evolutionary_algorithm.individuals import IndividualType ScoreType = TypeVar("ScoreType", bound=Comparable) class Ranking(Generic[IndividualType, ScoreType]): def __init__(se...
32.722222
69
0.748727
338
0.573854
192
0.325976
0
0
0
0
11
0.018676
63b34b23e85c1cc079fa60870ca4a94cacd21c1e
10
py
Python
venv/lib/python3.8/site-packages/spaceone/tester/conf/global_conf.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/tester/conf/global_conf.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/tester/conf/global_conf.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
LOG = { }
3.333333
7
0.3
0
0
0
0
0
0
0
0
0
0
63b46e49e3698a981c3b277c71021abeaf2bfdc6
957
py
Python
algorithms/show_permutations_fast.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
algorithms/show_permutations_fast.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
algorithms/show_permutations_fast.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
def show_permutations_anti_lexicographic_fast(sequence=None, length=None): if sequence is None: if length is None: length = 3 sequence = [i + 1 for i in range(length)] if length is None: length = len(sequence) if length == 0: print(sequence) return e...
29
126
0.597701
0
0
0
0
0
0
0
0
10
0.010449
63b82fdab1655334ee890b5f03a53544fb79bd9a
2,774
py
Python
blog/migrations/0001_squashed_0010_auto_20180604_2248.py
n2o/dpb
9e44ef91dc25782a12150e1001983aeee62bc566
[ "MIT" ]
3
2020-11-05T10:09:04.000Z
2021-03-13T11:27:05.000Z
blog/migrations/0001_squashed_0010_auto_20180604_2248.py
n2o/dpb
9e44ef91dc25782a12150e1001983aeee62bc566
[ "MIT" ]
31
2015-07-26T13:53:26.000Z
2020-09-28T06:08:03.000Z
blog/migrations/0001_squashed_0010_auto_20180604_2248.py
n2o/dpb
9e44ef91dc25782a12150e1001983aeee62bc566
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-25 19:40 import autoslug.fields import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): replaces = [('blog', '0001_initial'), ('blog', '0002_auto_20150802_0017'), ('blog', '0003_auto_2...
47.827586
119
0.583273
2,594
0.934438
0
0
0
0
0
0
722
0.260086
63b8f2381a48d0a34e089f59b031e0d0cf2ef305
5,548
py
Python
serene_schema/serene_schema/helpers/markdown.py
NICTA/serene-etl
1d446012c0d08a95b8fbbbe8237735320a2fe2a4
[ "Apache-2.0" ]
null
null
null
serene_schema/serene_schema/helpers/markdown.py
NICTA/serene-etl
1d446012c0d08a95b8fbbbe8237735320a2fe2a4
[ "Apache-2.0" ]
null
null
null
serene_schema/serene_schema/helpers/markdown.py
NICTA/serene-etl
1d446012c0d08a95b8fbbbe8237735320a2fe2a4
[ "Apache-2.0" ]
null
null
null
if __name__ == "__main__" and __package__ is None: #use the local version of schema import sys, os if os.getcwd().endswith('serene_schema'): sys.path.insert(0, os.getcwd()) elif os.getcwd().endswith('helpers'): sys.path.insert(0, os.path.join(os.getcwd(), '..', '..')) from serene_schem...
33.421687
151
0.556957
0
0
0
0
0
0
0
0
1,994
0.359409
63b90808230e3a349c223887dc7145428b84feb5
640
py
Python
r2lldb/backend/trace.py
nowsecure/r2lldb
29cf97bf96f68d5a78060ea63504112b4a2fb3df
[ "MIT" ]
57
2016-07-06T18:04:19.000Z
2022-01-13T09:38:21.000Z
r2lldb/backend/trace.py
Maijin/r2lldb
5aaadba59d19a584b63735d37827ae1e5a152ade
[ "MIT" ]
4
2016-08-11T15:35:47.000Z
2019-01-25T15:39:35.000Z
r2lldb/backend/trace.py
Maijin/r2lldb
5aaadba59d19a584b63735d37827ae1e5a152ade
[ "MIT" ]
16
2016-07-14T04:07:07.000Z
2021-12-15T08:07:58.000Z
# TODO: implement tracing helpers here traces = {} def add(at,cmd): try: #at = "0x%x"%int(at, 16) print("ADD",at) print(traces[at]) if traces[at]: return False except: pass traces[at] = cmd return True def get(at): try: try: at = "0x%x"%int(at, 16) except: pass print("GET",at) return ...
14.222222
46
0.5625
0
0
0
0
0
0
0
0
119
0.185938
63b9f726456ae2875c8836c2389ad5af6fa15ef2
609
py
Python
test/model/test_driver.py
Petro31/zwave-js-server-python
ed766f054d2ef2f6a6fa01fa431484da12d05eca
[ "Apache-2.0" ]
null
null
null
test/model/test_driver.py
Petro31/zwave-js-server-python
ed766f054d2ef2f6a6fa01fa431484da12d05eca
[ "Apache-2.0" ]
null
null
null
test/model/test_driver.py
Petro31/zwave-js-server-python
ed766f054d2ef2f6a6fa01fa431484da12d05eca
[ "Apache-2.0" ]
null
null
null
"""Test the driver model.""" import json from zwave_js_server.event import Event from zwave_js_server.model import driver as driver_pkg from .. import load_fixture def test_from_state(): """Test from_state method.""" ws_msgs = load_fixture("basic_dump.txt").strip().split("\n") driver = driver_pkg.Drive...
26.478261
69
0.665025
0
0
0
0
0
0
0
0
118
0.19376
63ba13266acfe77823f64100997d3843e282a41e
9,342
py
Python
features_extractions.py
AIKICo/Steganalysis-By-Frame
c2e1a20664056eb723c694949119a26f7fb6cfbc
[ "Apache-2.0" ]
1
2019-03-25T07:20:05.000Z
2019-03-25T07:20:05.000Z
features_extractions.py
MohMehrnia/Steganalysis-By-Frame
c2e1a20664056eb723c694949119a26f7fb6cfbc
[ "Apache-2.0" ]
1
2020-01-29T07:12:02.000Z
2020-01-29T07:12:02.000Z
features_extractions.py
MohMehrnia/Steganalysis-By-Frame
c2e1a20664056eb723c694949119a26f7fb6cfbc
[ "Apache-2.0" ]
null
null
null
import numpy as np import math as ma import os from pywt import wavedec from pyeeg import hfd, pfd from scipy.io import wavfile as wav from python_speech_features.sigproc import framesig from python_speech_features import mfcc, fbank, logfbank from python_speech_features.base import delta from pandas import DataFrame f...
45.130435
165
0.652644
0
0
0
0
0
0
0
0
2,434
0.260544
63bc2d0d047391a080297053dfaf4fe899a6e18a
252
py
Python
src/chapter10/soft.py
ManuelA1000/BCS-2021
0bdf8a165b6e9e79c33257919a44b4be3cd49a57
[ "MIT" ]
null
null
null
src/chapter10/soft.py
ManuelA1000/BCS-2021
0bdf8a165b6e9e79c33257919a44b4be3cd49a57
[ "MIT" ]
null
null
null
src/chapter10/soft.py
ManuelA1000/BCS-2021
0bdf8a165b6e9e79c33257919a44b4be3cd49a57
[ "MIT" ]
null
null
null
txt = 'but soft what light in yonder window breaks' words = txt.split () t = list () for word in words: t.append ((len (word), word)) print(t) t.sort (reverse = True) print(t) res = list () for length, word in t: res.append (word) print (res)
18
51
0.638889
0
0
0
0
0
0
0
0
45
0.178571
63bce539de4f9c34cc18cec63222346a4f46825b
3,923
py
Python
workspaces/voyage/server/src/core/rediscover.py
raychorn/svn_hp-projects
d5547906354e2759a93b8030632128e8c4bf3880
[ "CC0-1.0" ]
null
null
null
workspaces/voyage/server/src/core/rediscover.py
raychorn/svn_hp-projects
d5547906354e2759a93b8030632128e8c4bf3880
[ "CC0-1.0" ]
null
null
null
workspaces/voyage/server/src/core/rediscover.py
raychorn/svn_hp-projects
d5547906354e2759a93b8030632128e8c4bf3880
[ "CC0-1.0" ]
null
null
null
''' Created on Oct 18, 2011 @author: IslamM ''' from logging import getLogger log = getLogger(__name__) from util import catalog from util.config import config from portlets.collector import Collector, remove_collector from core.uim import UIManager from urlparse import urlparse from threading import Thr...
39.626263
158
0.567678
3,573
0.910783
0
0
0
0
0
0
483
0.12312
63bd3e2bbbdf441ba8d0ab08f9a5c6b52a9e7b44
13,798
py
Python
sem/__init__.py
YoannDupont/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
22
2016-11-13T21:08:58.000Z
2021-04-26T07:04:54.000Z
sem/__init__.py
Raphencoder/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
15
2016-11-15T10:21:07.000Z
2021-11-08T10:08:05.000Z
sem/__init__.py
Raphencoder/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
8
2016-11-15T10:21:41.000Z
2022-03-04T21:28:05.000Z
#-*- encoding: utf-8-*- """ file: __init__.py author: Yoann Dupont MIT License Copyright (c) 2018 Yoann Dupont 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 restriction, including wi...
46.302013
334
0.582983
0
0
0
0
0
0
0
0
9,213
0.666305
63c122508ef3b38e3a6c1356ea1d1720457824fb
77
py
Python
Set/1.Create-Define-a-aset.py
manish1822510059/Python-1000-program
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
[ "Apache-2.0" ]
1
2021-03-06T03:33:42.000Z
2021-03-06T03:33:42.000Z
Set/1.Create-Define-a-aset.py
manish1822510059/Python-1000-programs
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
[ "Apache-2.0" ]
null
null
null
Set/1.Create-Define-a-aset.py
manish1822510059/Python-1000-programs
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
[ "Apache-2.0" ]
null
null
null
myset ={"C","C++","Python","Shap","Ruby","Java"} print("Set Content:",myset)
38.5
49
0.584416
0
0
0
0
0
0
0
0
48
0.623377
63c2b7aa2638b5f2da8a026a57c38590a6974584
6,539
py
Python
d_parser/d_spider_29dui.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
null
null
null
d_parser/d_spider_29dui.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
2
2018-03-28T19:47:46.000Z
2021-12-13T20:56:31.000Z
d_parser/d_spider_29dui.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
null
null
null
import re from d_parser.d_spider_common import DSpiderCommon from d_parser.helpers.re_set import Ree from helpers.url_generator import UrlGenerator from d_parser.helpers.stat_counter import StatCounter as SC VERSION = 29 # Warn: Don't remove task argument even if not use it (it's break grab and spider crashed) # W...
36.327778
128
0.564765
6,204
0.946164
5,944
0.906512
0
0
0
0
1,578
0.240659