hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
4
247
max_issues_repo_name
stringlengths
4
125
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
4
247
max_forks_repo_name
stringlengths
4
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
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
e8a4d6853804f4590a0288c9c5eca52412b23f32
31,243
py
Python
augly/audio/transforms.py
Ierezell/AugLy
a7dca8c36bc05dbd7694373fe9b883d6ff720f56
[ "MIT" ]
1
2021-09-29T21:27:50.000Z
2021-09-29T21:27:50.000Z
augly/audio/transforms.py
Ierezell/AugLy
a7dca8c36bc05dbd7694373fe9b883d6ff720f56
[ "MIT" ]
null
null
null
augly/audio/transforms.py
Ierezell/AugLy
a7dca8c36bc05dbd7694373fe9b883d6ff720f56
[ "MIT" ]
1
2021-07-02T13:08:55.000Z
2021-07-02T13:08:55.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. import random from typing import Any, Callable, Dict, List, Optional, Tuple, Union import augly.audio.functional as F import augly.utils as utils import numpy as np from augly.audio.utils import RNGSeed """ Base Classes for Transforms """ ...
35.223224
92
0.625964
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. import random from typing import Any, Callable, Dict, List, Optional, Tuple, Union import augly.audio.functional as F import augly.utils as utils import numpy as np from augly.audio.utils import RNGSeed """ Base Classes for Transforms """ c...
0
29,920
460
e0ef9bce5e87aa31386e4253a0d246ce6c621dd9
2,663
py
Python
python_code/easy/412_Fizz_Buzz_easy/solution.py
timshenkao/interview_coding_exercises
c531fa5e0c09faef976539275589e957fcb88393
[ "Apache-2.0" ]
null
null
null
python_code/easy/412_Fizz_Buzz_easy/solution.py
timshenkao/interview_coding_exercises
c531fa5e0c09faef976539275589e957fcb88393
[ "Apache-2.0" ]
null
null
null
python_code/easy/412_Fizz_Buzz_easy/solution.py
timshenkao/interview_coding_exercises
c531fa5e0c09faef976539275589e957fcb88393
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 - present, Timur Shenkao # 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 by appl...
37.507042
117
0.579046
# Copyright (c) 2021 - present, Timur Shenkao # 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 by appl...
0
1,490
23
aa8755d6383871ea335e941c7857fa0ecccd50d3
1,458
py
Python
heltour/tournament/migrations/0110_scheduledevent.py
lenguyenthanh/heltour
13018b1905539de0b273370a76f6aa1d1ebbb01a
[ "MIT" ]
null
null
null
heltour/tournament/migrations/0110_scheduledevent.py
lenguyenthanh/heltour
13018b1905539de0b273370a76f6aa1d1ebbb01a
[ "MIT" ]
null
null
null
heltour/tournament/migrations/0110_scheduledevent.py
lenguyenthanh/heltour
13018b1905539de0b273370a76f6aa1d1ebbb01a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-11-08 18:16 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
42.882353
138
0.613855
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-11-08 18:16 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('tournament', '0109_auto_20161108_0128'), ] operatio...
0
1,247
23
09cf4e8dc61f85f2ebaa498eb81cabb195f04722
3,358
py
Python
Sketches/MH/Layout/Visualisation/Graph/RenderingParticle.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MH/Layout/Visualisation/Graph/RenderingParticle.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MH/Layout/Visualisation/Graph/RenderingParticle.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License,...
37.730337
114
0.611674
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License,...
339
0
27
3ccdf549310d1c10291d371e3807c060ab2fe1c2
2,130
py
Python
bindings/python/benchmark.py
wangjia3015/marisa-trie
da2924831c1e8f90dae7223cfe7a2bc1bd8b5132
[ "BSD-2-Clause" ]
388
2016-01-28T15:16:43.000Z
2022-03-28T08:18:07.000Z
bindings/python/benchmark.py
wangjia3015/marisa-trie
da2924831c1e8f90dae7223cfe7a2bc1bd8b5132
[ "BSD-2-Clause" ]
38
2016-02-12T14:51:12.000Z
2022-02-12T09:10:25.000Z
bindings/python/benchmark.py
wangjia3015/marisa-trie
da2924831c1e8f90dae7223cfe7a2bc1bd8b5132
[ "BSD-2-Clause" ]
79
2016-03-16T15:47:50.000Z
2022-03-15T22:21:08.000Z
import datetime import marisa import sys time_begin = datetime.datetime.now() keys = [] for line in sys.stdin: keys.append(line.rstrip()) time_end = datetime.datetime.now() print "input:", time_end - time_begin time_begin = datetime.datetime.now() dic = dict() for i in range(len(keys)): dic[keys[i]] = i time_end ...
25.97561
63
0.753052
import datetime import marisa import sys time_begin = datetime.datetime.now() keys = [] for line in sys.stdin: keys.append(line.rstrip()) time_end = datetime.datetime.now() print "input:", time_end - time_begin time_begin = datetime.datetime.now() dic = dict() for i in range(len(keys)): dic[keys[i]] = i time_end ...
0
0
0
7f9c95359486993b762a90f03b356fc2e537a3c5
5,868
py
Python
SPACE/random_concept_building.py
lkreiskoether/SPACE
ba7e697bd10c5881cd6a87f9f877664978436597
[ "Apache-2.0" ]
null
null
null
SPACE/random_concept_building.py
lkreiskoether/SPACE
ba7e697bd10c5881cd6a87f9f877664978436597
[ "Apache-2.0" ]
null
null
null
SPACE/random_concept_building.py
lkreiskoether/SPACE
ba7e697bd10c5881cd6a87f9f877664978436597
[ "Apache-2.0" ]
1
2021-10-05T09:07:36.000Z
2021-10-05T09:07:36.000Z
""" Copyright 2021 Lukas Kreisköther 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
54.333333
128
0.63514
""" Copyright 2021 Lukas Kreisköther 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
0
0
0
3178a9110e2900570b8a0543edc4ea7b69019a8e
13,724
py
Python
examples/model_compression/distill_lstm/data.py
wzzju/PaddleNLP
1757a4fc2a3cd5a45f75c6482746777752b414d8
[ "Apache-2.0" ]
1
2021-07-13T02:21:15.000Z
2021-07-13T02:21:15.000Z
examples/model_compression/distill_lstm/data.py
wzzju/PaddleNLP
1757a4fc2a3cd5a45f75c6482746777752b414d8
[ "Apache-2.0" ]
null
null
null
examples/model_compression/distill_lstm/data.py
wzzju/PaddleNLP
1757a4fc2a3cd5a45f75c6482746777752b414d8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. # # 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 # # U...
36.403183
93
0.573302
# -*- coding: utf-8 -*- # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. # # 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 # # U...
1,987
0
96
b3cfc2a4680ba5fb688c8c605dffbd3378abcff5
472
py
Python
pametis/__init__.py
avnr/pametis
1037c7b50e5825770f2296761f3a0ad3cb37eae4
[ "MIT" ]
null
null
null
pametis/__init__.py
avnr/pametis
1037c7b50e5825770f2296761f3a0ad3cb37eae4
[ "MIT" ]
null
null
null
pametis/__init__.py
avnr/pametis
1037c7b50e5825770f2296761f3a0ad3cb37eae4
[ "MIT" ]
null
null
null
from .pametis import * __all__ = [ 'OPT', 'configure', 'reset', 'sitemap', 'PametisException', 'AmbiguousOptions', 'BadParam', 'PametisCacheError', 'BadDomain', 'CantRemove', 'Pametis_cache', 'Sql_cache', 'postgres'...
19.666667
30
0.489407
from .pametis import * __all__ = [ 'OPT', 'configure', 'reset', 'sitemap', 'PametisException', 'AmbiguousOptions', 'BadParam', 'PametisCacheError', 'BadDomain', 'CantRemove', 'Pametis_cache', 'Sql_cache', 'postgres'...
0
0
0
727b56502133746fee15b7edcec9513b698ea9ac
513
py
Python
proxy/parser.py
GavinHan/sina_weibo_crawler
5fcbd4007fb8d2fad1aa3ad68b73aec6b7669b49
[ "BSD-2-Clause" ]
1
2016-03-15T16:21:28.000Z
2016-03-15T16:21:28.000Z
proxy/parser.py
GavinHan/sina_weibo_crawler
5fcbd4007fb8d2fad1aa3ad68b73aec6b7669b49
[ "BSD-2-Clause" ]
null
null
null
proxy/parser.py
GavinHan/sina_weibo_crawler
5fcbd4007fb8d2fad1aa3ad68b73aec6b7669b49
[ "BSD-2-Clause" ]
null
null
null
#coding: utf-8 import re from pyquery import PyQuery as pq from lxml import etree page = ''' ''' doc = pq(page) div = doc('div').find('.proxylistitem') div.each(perser) #print d('p') #返回<p>test 1</p><p>test 2</p> #print d('p').html() #返回test 1 #print d('p').eq(1).html() #返回test 2
19.730769
65
0.608187
#coding: utf-8 import re from pyquery import PyQuery as pq from lxml import etree page = ''' ''' def perser(i): node = pq(this) #import pdb; pdb.set_trace() ip = node.find('.tbBottomLine:first').html().strip() port = node.find('.tbBottomLine:first').next().html().strip() print ('%s:%s %s')%(ip,...
203
0
23
a1b30ecc1b479a04796b2d974aafc93c7541b6f8
2,964
py
Python
picoCTF-web/api/common.py
minhnq1618/picoCTF
f634f0e55be6b1a8552a33e4f94e7487142e8bce
[ "MIT" ]
280
2016-03-23T05:16:07.000Z
2022-03-25T10:45:33.000Z
picoCTF-web/api/common.py
minhnq1618/picoCTF
f634f0e55be6b1a8552a33e4f94e7487142e8bce
[ "MIT" ]
384
2016-03-22T05:14:47.000Z
2021-09-13T23:46:14.000Z
picoCTF-web/api/common.py
minhnq1618/picoCTF
f634f0e55be6b1a8552a33e4f94e7487142e8bce
[ "MIT" ]
142
2016-03-15T16:27:21.000Z
2022-02-23T23:41:28.000Z
"""Classes and functions used by multiple modules in the system.""" import uuid from hashlib import md5 import bcrypt from voluptuous import Invalid, MultipleInvalid def token(): """ Generate a random but insecure token. Returns: The randomly generated token """ return str(uuid.uuid4()....
23.903226
75
0.612686
"""Classes and functions used by multiple modules in the system.""" import uuid from hashlib import md5 import bcrypt from voluptuous import Invalid, MultipleInvalid def token(): """ Generate a random but insecure token. Returns: The randomly generated token """ return str(uuid.uuid4()....
0
0
0
83823ad614f73f1c0d4cb2b4bbf506ba88b266f8
573
py
Python
src/active_learner.py
shenw33/ML_DLD
e83b5237a6f8dce6f9b347258f04b59345c59678
[ "BSD-3-Clause" ]
null
null
null
src/active_learner.py
shenw33/ML_DLD
e83b5237a6f8dce6f9b347258f04b59345c59678
[ "BSD-3-Clause" ]
null
null
null
src/active_learner.py
shenw33/ML_DLD
e83b5237a6f8dce6f9b347258f04b59345c59678
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import os from keras import layers, optimizers from keras.models import Model, Sequential from keras.layers import Dense, LSTM, Dropout from keras import optimizers, regularizers from tensorflow import keras from tensorflow.keras import layers from train_model import ...
20.464286
45
0.710297
import numpy as np import matplotlib.pyplot as plt import os from keras import layers, optimizers from keras.models import Model, Sequential from keras.layers import Dense, LSTM, Dropout from keras import optimizers, regularizers from tensorflow import keras from tensorflow.keras import layers from train_model import ...
25
0
23
db1ede0805cc9287d3f9c347c54ac16a2d07b94d
374
py
Python
server/src/api/usecases/firebase.py
Mokumoku-Rin/client
7352c651edff79a28a0056d60d483a1753a7354d
[ "Apache-2.0" ]
null
null
null
server/src/api/usecases/firebase.py
Mokumoku-Rin/client
7352c651edff79a28a0056d60d483a1753a7354d
[ "Apache-2.0" ]
109
2020-03-02T08:44:44.000Z
2022-02-27T00:32:30.000Z
server/src/api/usecases/firebase.py
Mokumoku-Rin/client
7352c651edff79a28a0056d60d483a1753a7354d
[ "Apache-2.0" ]
1
2020-03-19T06:13:33.000Z
2020-03-19T06:13:33.000Z
from firebase_admin import storage
31.166667
62
0.756684
from firebase_admin import storage def fetch_landmark_image(filename: str) -> bytes: bucket = storage.bucket() blob = bucket.blob(filename) b = blob.download_as_string(raw_download=True) return b def upload_landmark_image(filename: str, data: bytes) -> bool: blob = storage.bucket().blob() blob.upload_from...
294
0
46
6bbbf7ab3429580d63cba356479214e356e08185
16
py
Python
shapelet_features/shapelets/__init__.py
ratschlab/circEWS
b2b1f00dac4f5d46856a2c7abe2ca4f12d4c612d
[ "MIT" ]
34
2020-03-17T16:42:00.000Z
2022-03-29T15:53:24.000Z
shapelet_features/utils/__init__.py
ranxiao/circEWS
1e52880c268f8f763bbc16763131634ffc217153
[ "MIT" ]
3
2020-07-30T22:37:10.000Z
2021-08-10T00:02:30.000Z
shapelet_features/utils/__init__.py
ranxiao/circEWS
1e52880c268f8f763bbc16763131634ffc217153
[ "MIT" ]
14
2020-04-22T01:13:54.000Z
2021-11-27T20:23:41.000Z
# Do not REMOVE
8
15
0.6875
# Do not REMOVE
0
0
0
f706c175ce9374eac08af908306915c436098b21
239
py
Python
gym_simpleflappy/__init__.py
jmathison/gym-simpleflappy
54acd54346f0ba4a611120a9ebba69acf0bae8b5
[ "MIT" ]
null
null
null
gym_simpleflappy/__init__.py
jmathison/gym-simpleflappy
54acd54346f0ba4a611120a9ebba69acf0bae8b5
[ "MIT" ]
null
null
null
gym_simpleflappy/__init__.py
jmathison/gym-simpleflappy
54acd54346f0ba4a611120a9ebba69acf0bae8b5
[ "MIT" ]
1
2019-09-19T05:26:02.000Z
2019-09-19T05:26:02.000Z
from gym.envs.registration import register register( id='SimpleFlappy-v0', entry_point='gym_simpleflappy.envs:FlappyEnv', ) register( id='SimpleFlappyDistance-v0', entry_point='gym_simpleflappy.envs:FlappyEnvDistance', )
19.916667
58
0.757322
from gym.envs.registration import register register( id='SimpleFlappy-v0', entry_point='gym_simpleflappy.envs:FlappyEnv', ) register( id='SimpleFlappyDistance-v0', entry_point='gym_simpleflappy.envs:FlappyEnvDistance', )
0
0
0
96c6bc44c1be86be9f511ff65006a4d582768b84
10,154
py
Python
gym_bandits/scoreboard.py
ThomasLecat/gym-bandits-environments
adafed5952e00f1601e8a5294078cf7a2e83c836
[ "MIT" ]
11
2018-06-10T18:20:26.000Z
2021-09-02T03:25:29.000Z
gym_bandits/scoreboard.py
ThomasLecat/gym-bandits-environments
adafed5952e00f1601e8a5294078cf7a2e83c836
[ "MIT" ]
null
null
null
gym_bandits/scoreboard.py
ThomasLecat/gym-bandits-environments
adafed5952e00f1601e8a5294078cf7a2e83c836
[ "MIT" ]
4
2019-05-07T17:41:26.000Z
2020-10-08T21:02:40.000Z
from gym.scoreboard.registration import add_task, add_group add_group( id='bandits', name='Bandits', description='Various N-Armed Bandit environments' ) add_task( id='BanditTwoArmedDeterministicFixed-v0', group='bandits', experimental=True, contributor='jkcooper2', summary="Simplest b...
38.755725
168
0.701792
from gym.scoreboard.registration import add_task, add_group add_group( id='bandits', name='Bandits', description='Various N-Armed Bandit environments' ) add_task( id='BanditTwoArmedDeterministicFixed-v0', group='bandits', experimental=True, contributor='jkcooper2', summary="Simplest b...
0
0
0
dbe5e2a057d822c9b7627e69b232caa21bca193c
5,368
py
Python
books/forms.py
burhan/hellowebbooks-website
96ca56f6d32716e5ce694664c760aa6a7bfce419
[ "MIT" ]
null
null
null
books/forms.py
burhan/hellowebbooks-website
96ca56f6d32716e5ce694664c760aa6a7bfce419
[ "MIT" ]
null
null
null
books/forms.py
burhan/hellowebbooks-website
96ca56f6d32716e5ce694664c760aa6a7bfce419
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth import forms as auth_forms from django.contrib.auth.models import User from books.widgets import NoNameTextInput # TODO: Might be good to update this later to update the username too so we aren't doing two database saves PRODUCTS = [ ('ebook', 'eBook Only')...
47.087719
126
0.698398
from django import forms from django.contrib.auth import forms as auth_forms from django.contrib.auth.models import User from books.widgets import NoNameTextInput # TODO: Might be good to update this later to update the username too so we aren't doing two database saves class EditEmailForm(forms.ModelForm): clas...
2,895
1,879
213
9cfd1b79359a086dbd7fc0769ab8bcefa649fbcf
5,944
py
Python
test_discretization/test_reduction_diff_by_class.py
wsgan001/AnomalyDetection
397673dc6ce978361a3fc6f2fd34879f69bc962a
[ "MIT" ]
null
null
null
test_discretization/test_reduction_diff_by_class.py
wsgan001/AnomalyDetection
397673dc6ce978361a3fc6f2fd34879f69bc962a
[ "MIT" ]
null
null
null
test_discretization/test_reduction_diff_by_class.py
wsgan001/AnomalyDetection
397673dc6ce978361a3fc6f2fd34879f69bc962a
[ "MIT" ]
1
2020-03-16T21:50:52.000Z
2020-03-16T21:50:52.000Z
# -*- coding: utf-8 -*- """ It generates plots that shows similarity for anomalies in each dataset. """ import copy import math import numpy as np import matplotlib import matplotlib.mlab import matplotlib.pyplot as plt from matplotlib import gridspec import nslkdd.preprocessing as preprocessing import nslkdd.data.mo...
33.965714
126
0.621803
# -*- coding: utf-8 -*- """ It generates plots that shows similarity for anomalies in each dataset. """ import copy import math import numpy as np import matplotlib import matplotlib.mlab import matplotlib.pyplot as plt from matplotlib import gridspec import nslkdd.preprocessing as preprocessing import nslkdd.data.mo...
4,959
0
69
dfa8e89860cca2eb77dbf1ea4151fd82a146dc80
7,277
py
Python
src/tests/test_aligngraph.py
dthadi3/pbdagcon
c14c422e609a914f0139f7222202ac1bce7e3ef1
[ "BSD-3-Clause-Clear" ]
31
2015-02-24T19:17:22.000Z
2022-02-23T18:45:36.000Z
src/tests/test_aligngraph.py
dthadi3/pbdagcon
c14c422e609a914f0139f7222202ac1bce7e3ef1
[ "BSD-3-Clause-Clear" ]
44
2015-06-04T00:03:39.000Z
2018-04-27T05:16:59.000Z
src/tests/test_aligngraph.py
dthadi3/pbdagcon
c14c422e609a914f0139f7222202ac1bce7e3ef1
[ "BSD-3-Clause-Clear" ]
31
2015-01-26T09:59:29.000Z
2022-02-23T18:45:40.000Z
from nose.tools import assert_equal from nose import SkipTest import random from pbtools.pbdagcon.aligngraph import *
35.497561
86
0.615776
from nose.tools import assert_equal from nose import SkipTest import random from pbtools.pbdagcon.aligngraph import * def generate_simulated_reads(pi=None, pd=None, n = 4): import random random.seed(42) seq = "ATATTTGGC" seq1 = "ATAGCCGGC" seq2 = "ATACCCGGC" seq3 = "ATATCCGGC" seq4 = ...
6,144
8
1,005
d8a9c2251631c9b59e6ef4e09bf81e4fe06fc445
2,005
py
Python
ggongsul/visitation/serializers.py
blc-cruise/ggongsul-api
0cdfc09ea75688ffc297bc0c0f08897091896f3e
[ "MIT" ]
2
2021-05-22T07:33:34.000Z
2021-09-18T04:22:25.000Z
ggongsul/visitation/serializers.py
blc-cruise/ggongsul-api
0cdfc09ea75688ffc297bc0c0f08897091896f3e
[ "MIT" ]
null
null
null
ggongsul/visitation/serializers.py
blc-cruise/ggongsul-api
0cdfc09ea75688ffc297bc0c0f08897091896f3e
[ "MIT" ]
null
null
null
from django.utils import timezone from django.utils.translation import gettext_lazy as _ from rest_framework import serializers from rest_framework.exceptions import ValidationError from ggongsul.member.models import Member from ggongsul.member.serializers import MemberSerializer from ggongsul.partner.models import P...
33.416667
82
0.672319
from django.utils import timezone from django.utils.translation import gettext_lazy as _ from rest_framework import serializers from rest_framework.exceptions import ValidationError from ggongsul.member.models import Member from ggongsul.member.serializers import MemberSerializer from ggongsul.partner.models import P...
897
721
46
84d6e4d646bae0fc1e7b329a0d2484ed91b465ac
6,596
py
Python
app/main.py
Ackaman/starter-snake-python
450d24c72b9f3af6bffaef2369913bd4d827acf2
[ "MIT" ]
null
null
null
app/main.py
Ackaman/starter-snake-python
450d24c72b9f3af6bffaef2369913bd4d827acf2
[ "MIT" ]
null
null
null
app/main.py
Ackaman/starter-snake-python
450d24c72b9f3af6bffaef2369913bd4d827acf2
[ "MIT" ]
null
null
null
import json import os import random import bottle from api import ping_response, start_response, move_response, end_response # Moving towards a tail is safe as long as that snake does not have food witihn reach. # If it is te only possible move, that move should be made anyway @bottle.route('/') @bottle.route('/...
27.831224
111
0.626289
import json import os import random import bottle from api import ping_response, start_response, move_response, end_response # Moving towards a tail is safe as long as that snake does not have food witihn reach. # If it is te only possible move, that move should be made anyway @bottle.route('/') def index(): r...
4,830
0
110
83b39d103baf95f5e28b9da6371e0b29b75f4428
17,696
py
Python
pygsti/report/report.py
drewrisinger/pyGSTi
dd4ad669931c7f75e026456470cf33ac5b682d0d
[ "Apache-2.0" ]
1
2021-12-19T15:11:09.000Z
2021-12-19T15:11:09.000Z
pygsti/report/report.py
drewrisinger/pyGSTi
dd4ad669931c7f75e026456470cf33ac5b682d0d
[ "Apache-2.0" ]
null
null
null
pygsti/report/report.py
drewrisinger/pyGSTi
dd4ad669931c7f75e026456470cf33ac5b682d0d
[ "Apache-2.0" ]
null
null
null
""" Internal model of a report during generation """ #*************************************************************************************************** # Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS). # Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government ...
42.640964
112
0.61415
""" Internal model of a report during generation """ #*************************************************************************************************** # Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS). # Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government ...
519
0
26
056e5bfd74cdb3c57ea5d1772797214b876ae034
6,878
py
Python
function/tests/testTask/test_update.py
kohski/serverless_todo
60e90caf86f5d921150193beac4acbd90752c814
[ "MIT" ]
null
null
null
function/tests/testTask/test_update.py
kohski/serverless_todo
60e90caf86f5d921150193beac4acbd90752c814
[ "MIT" ]
32
2021-02-25T01:18:20.000Z
2021-03-03T23:42:27.000Z
function/tests/testTask/test_update.py
kohski/serverless_todo
60e90caf86f5d921150193beac4acbd90752c814
[ "MIT" ]
null
null
null
import pytest from datetime import datetime from update import lambda_handler import boto3 import os import json dynamodb = boto3.resource('dynamodb') table = dynamodb.Table(os.environ['TABLE_NAME']) # ------------------------------------------ # valid pattern # ----------------------------------------...
32.443396
109
0.486915
import pytest from datetime import datetime from update import lambda_handler import boto3 import os import json dynamodb = boto3.resource('dynamodb') table = dynamodb.Table(os.environ['TABLE_NAME']) # ------------------------------------------ # valid pattern # ----------------------------------------...
5,659
0
112
877b0945aabc974e781666ff3dc8ba39b0ce5990
3,195
py
Python
bot/helper/mirror_utils/status_utils/qbit_download_status.py
vincreator/Eunha
85a702a5b5f30ccea1798122c261d4ff07fe0c0c
[ "Apache-2.0" ]
null
null
null
bot/helper/mirror_utils/status_utils/qbit_download_status.py
vincreator/Eunha
85a702a5b5f30ccea1798122c261d4ff07fe0c0c
[ "Apache-2.0" ]
null
null
null
bot/helper/mirror_utils/status_utils/qbit_download_status.py
vincreator/Eunha
85a702a5b5f30ccea1798122c261d4ff07fe0c0c
[ "Apache-2.0" ]
null
null
null
from bot import DOWNLOAD_DIR, LOGGER from bot.helper.ext_utils.bot_utils import MirrorStatus, get_readable_file_size, get_readable_time from time import sleep
29.859813
98
0.634429
from bot import DOWNLOAD_DIR, LOGGER from bot.helper.ext_utils.bot_utils import MirrorStatus, get_readable_file_size, get_readable_time from time import sleep def get_download(client, hash_): try: return client.torrents_info(torrent_hashes=hash_)[0] except: pass class QbDownloadStatus: d...
2,080
909
46
339c00d28f3cce8e0930a2efcf6717be89f5a16d
642
py
Python
micron/tests/audiodevice.test.py
zhengyang-c/photonLauncher
76215f47ccd1178f1826834533f5702c4b8f2c35
[ "Apache-2.0" ]
6
2015-11-26T15:03:38.000Z
2020-10-05T14:08:54.000Z
micron/tests/audiodevice.test.py
zhengyang-c/photonLauncher
76215f47ccd1178f1826834533f5702c4b8f2c35
[ "Apache-2.0" ]
7
2015-12-09T06:44:34.000Z
2021-12-14T15:51:28.000Z
micron/tests/audiodevice.test.py
zhengyang-c/photonLauncher
76215f47ccd1178f1826834533f5702c4b8f2c35
[ "Apache-2.0" ]
3
2016-07-25T10:43:21.000Z
2021-12-07T14:12:47.000Z
#!/usr/bin/env python3 import pyaudio import sys sys.path.insert(0, "../") from pwmaudio import noALSAerror with noALSAerror(): p = pyaudio.PyAudio() info = p.get_host_api_info_by_index(0) print(p.get_host_api_count()) print(info) numdevices = info.get('deviceCount') for i in range(0, numdevi...
33.789474
116
0.661994
#!/usr/bin/env python3 import pyaudio import sys sys.path.insert(0, "../") from pwmaudio import noALSAerror with noALSAerror(): p = pyaudio.PyAudio() info = p.get_host_api_info_by_index(0) print(p.get_host_api_count()) print(info) numdevices = info.get('deviceCount') for i in range(0, numdevi...
0
0
0
38f4cfc7cbdf2d4521cd2cce0f4533e5bc58ff43
2,384
py
Python
app/src/main/assets/code/controller/controller.py
tongjinlv/py_and
a069336c47dd233648fbbadee7275ef188696a44
[ "Apache-2.0" ]
null
null
null
app/src/main/assets/code/controller/controller.py
tongjinlv/py_and
a069336c47dd233648fbbadee7275ef188696a44
[ "Apache-2.0" ]
null
null
null
app/src/main/assets/code/controller/controller.py
tongjinlv/py_and
a069336c47dd233648fbbadee7275ef188696a44
[ "Apache-2.0" ]
null
null
null
import sys import math import random import imp from java import jclass from controller.leds import leds from controller.message import message from controller.sensor import sensor from controller.motion_sensor import motion_sensor from controller.button import button from controller.color_sensor import color_sensor fr...
41.824561
116
0.75797
import sys import math import random import imp from java import jclass from controller.leds import leds from controller.message import message from controller.sensor import sensor from controller.motion_sensor import motion_sensor from controller.button import button from controller.color_sensor import color_sensor fr...
744
232
23
9126ebac0a1ed3389e3b8adbc570ccd9cc668771
4,684
py
Python
crowdstrike/src/crowdstrike/actor/importer.py
galonsososa/connectors
6272128a2ca69ffca13cec63ff0f7bc55ee902a5
[ "Apache-2.0" ]
null
null
null
crowdstrike/src/crowdstrike/actor/importer.py
galonsososa/connectors
6272128a2ca69ffca13cec63ff0f7bc55ee902a5
[ "Apache-2.0" ]
2
2021-02-16T20:48:43.000Z
2021-03-03T06:20:13.000Z
crowdstrike/src/crowdstrike/actor/importer.py
galonsososa/connectors
6272128a2ca69ffca13cec63ff0f7bc55ee902a5
[ "Apache-2.0" ]
2
2021-02-16T20:45:11.000Z
2021-03-03T05:47:53.000Z
# -*- coding: utf-8 -*- """OpenCTI CrowdStrike actor importer module.""" from typing import Any, Generator, List, Mapping, Optional from crowdstrike_client.api.intel.actors import Actors from crowdstrike_client.api.models import Response from crowdstrike_client.api.models.actor import Actor from pycti.connector.open...
33.219858
105
0.638343
# -*- coding: utf-8 -*- """OpenCTI CrowdStrike actor importer module.""" from typing import Any, Generator, List, Mapping, Optional from crowdstrike_client.api.intel.actors import Actors from crowdstrike_client.api.models import Response from crowdstrike_client.api.models.actor import Actor from pycti.connector.open...
1,953
0
135
f6bfb6ffbc2d0285ca49b8bc43649c6454ef1f28
3,024
py
Python
Sample.py
zerobounce-llc/zero-bounce-python-sdk-setup
46dcdce9ece529e23d65fa92fb81f8ac19ce5c2e
[ "MIT" ]
null
null
null
Sample.py
zerobounce-llc/zero-bounce-python-sdk-setup
46dcdce9ece529e23d65fa92fb81f8ac19ce5c2e
[ "MIT" ]
null
null
null
Sample.py
zerobounce-llc/zero-bounce-python-sdk-setup
46dcdce9ece529e23d65fa92fb81f8ac19ce5c2e
[ "MIT" ]
null
null
null
from datetime import date from zerobouncesdk import zerobouncesdk, ZBApiException, \ ZBMissingApiKeyException test()
29.076923
85
0.652116
from datetime import date from zerobouncesdk import zerobouncesdk, ZBApiException, \ ZBMissingApiKeyException def test_validate(): try: response = zerobouncesdk.validate(email="<EMAIL_TO_TEST>") print("validate success response: " + str(response)) except ZBApiException as e: print(...
2,709
0
184
7bc2b1b8575ca1fb963e3e27a6dc57290ad35330
2,305
py
Python
Software/Sensors/IAQ_SCD30.py
xJohnnyBravo/zephyrus-iaq
31d39ae21080de55d39bc0dde6e49f5749d39477
[ "MIT" ]
2
2019-10-01T23:08:25.000Z
2019-11-05T23:37:38.000Z
Software/Sensors/IAQ_SCD30.py
aaronjense/raspberrypi-indoor-air-quality-pcb
7e1fc68b31dea88229866c8cbc6b221a4a679134
[ "MIT" ]
1
2019-11-14T02:28:30.000Z
2019-11-14T02:28:30.000Z
Software/Sensors/IAQ_SCD30.py
aaronjense/raspberrypi-indoor-air-quality-pcb
7e1fc68b31dea88229866c8cbc6b221a4a679134
[ "MIT" ]
6
2019-10-01T22:44:44.000Z
2019-11-14T20:19:46.000Z
#!/usr/bin/python ################################################################################# # MIT License # # Copyright (c) 2019 Aaron Jense, Amy Heidner, Dennis Heidner # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation file...
39.741379
82
0.6282
#!/usr/bin/python ################################################################################# # MIT License # # Copyright (c) 2019 Aaron Jense, Amy Heidner, Dennis Heidner # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation file...
736
112
24
64b668a6aa6c762d7927caa38bc992ca22f6db7c
3,424
py
Python
dc_gym/iroko_reward.py
matthieu637/iroko
3905caa46328a7c011762f8a96a15fbde9826899
[ "Apache-2.0" ]
56
2018-12-01T00:11:27.000Z
2022-03-08T04:10:10.000Z
dc_gym/iroko_reward.py
matthieu637/iroko
3905caa46328a7c011762f8a96a15fbde9826899
[ "Apache-2.0" ]
33
2018-12-13T20:18:07.000Z
2022-03-23T16:03:26.000Z
dc_gym/iroko_reward.py
matthieu637/iroko
3905caa46328a7c011762f8a96a15fbde9826899
[ "Apache-2.0" ]
17
2019-02-19T05:31:23.000Z
2022-03-14T15:20:00.000Z
import numpy as np import math import logging log = logging.getLogger(__name__) def fairness_reward(actions, queues=None): """Compute Jain"s fairness index for a list of values. See http://en.wikipedia.org/wiki/Fairness_measure for fairness equations. @param values: list of values @return fairness: JF...
29.264957
80
0.651577
import numpy as np import math import logging log = logging.getLogger(__name__) def fairness_reward(actions, queues=None): """Compute Jain"s fairness index for a list of values. See http://en.wikipedia.org/wiki/Fairness_measure for fairness equations. @param values: list of values @return fairness: JF...
1,379
127
184
e25ff3df493ac431d6d60b22582cb70b4670f2a3
727
py
Python
cellar/fs.py
JonathanHuot/cellarpy
74fe9f144b63b891d6cda45f10f63d310c0d0f58
[ "MIT" ]
null
null
null
cellar/fs.py
JonathanHuot/cellarpy
74fe9f144b63b891d6cda45f10f63d310c0d0f58
[ "MIT" ]
4
2018-03-03T22:08:22.000Z
2021-09-07T23:44:54.000Z
cellar/fs.py
JonathanHuot/cellarpy
74fe9f144b63b891d6cda45f10f63d310c0d0f58
[ "MIT" ]
1
2017-06-08T13:01:02.000Z
2017-06-08T13:01:02.000Z
# -*- coding: utf-8 -*- import os
25.964286
73
0.639615
# -*- coding: utf-8 -*- import os def iswritable(directory): if not os.path.exists(directory): try: os.makedirs(directory) except: return False return os.access(directory, os.W_OK | os.X_OK | os.R_OK) def static_file_path(root, filename): root = os.path.abspath(ro...
621
0
69
3c950daaa32f79dd0904fd8cf520966d77491761
371
py
Python
ex043.py
GuilhermeAntony14/Estudando-Python
b020f6d2625e7fcc42d30658bcbd881b093434dd
[ "MIT" ]
null
null
null
ex043.py
GuilhermeAntony14/Estudando-Python
b020f6d2625e7fcc42d30658bcbd881b093434dd
[ "MIT" ]
null
null
null
ex043.py
GuilhermeAntony14/Estudando-Python
b020f6d2625e7fcc42d30658bcbd881b093434dd
[ "MIT" ]
null
null
null
print('vamos calcular seu IMC') a = float(input('Sua altura: ')) p = float(input('Seu peso: ')) n = (p/(a**2)) print(f'Seu IMC e: {n:.1f}') if n < 18.5: print('Abaixo do peso.') elif n <= 25 and n > 18.5: print('Peso ideal.') elif n < 30 and n > 25: print('Sobrepeso.') elif n <= 40 and 30 < n: print('ob...
23.1875
32
0.566038
print('vamos calcular seu IMC') a = float(input('Sua altura: ')) p = float(input('Seu peso: ')) n = (p/(a**2)) print(f'Seu IMC e: {n:.1f}') if n < 18.5: print('Abaixo do peso.') elif n <= 25 and n > 18.5: print('Peso ideal.') elif n < 30 and n > 25: print('Sobrepeso.') elif n <= 40 and 30 < n: print('ob...
0
0
0
e5bd5f40b426cef7283c560a2796fb22b549035d
667
py
Python
tests/test_data_cleanser.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
231
2016-05-30T02:34:45.000Z
2022-03-28T17:00:29.000Z
tests/test_data_cleanser.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
77
2016-03-23T16:28:34.000Z
2021-09-30T22:08:03.000Z
tests/test_data_cleanser.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
103
2016-08-10T19:53:09.000Z
2022-03-16T16:34:38.000Z
from unittest import TestCase import logging from supplychainpy._helpers import _data_cleansing from supplychainpy.sample_data.config import ABS_FILE_PATH #logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
39.235294
104
0.728636
from unittest import TestCase import logging from supplychainpy._helpers import _data_cleansing from supplychainpy.sample_data.config import ABS_FILE_PATH #logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') class TestCleanser(TestCase): def test_incorrect_row_length(self...
0
393
23
e738317c6f5cf90c7eb6eb5ab706d4e66f9a907d
438
py
Python
sikuli-ide/sample-scripts/mute.sikuli/mute.py
mgrundy/sikuli
4adaab7880d2f3e14702ca7287ae9c9e4f4de9ab
[ "MIT" ]
1,292
2015-01-09T17:48:46.000Z
2022-03-30T20:08:15.000Z
sikuli-ide/sample-scripts/mute.sikuli/mute.py
mgrundy/sikuli
4adaab7880d2f3e14702ca7287ae9c9e4f4de9ab
[ "MIT" ]
31
2015-01-20T15:01:24.000Z
2022-03-03T11:02:06.000Z
sikuli-ide/sample-scripts/mute.sikuli/mute.py
mgrundy/sikuli
4adaab7880d2f3e14702ca7287ae9c9e4f4de9ab
[ "MIT" ]
267
2015-02-08T19:51:25.000Z
2022-03-19T22:16:01.000Z
switchApp("System Preferences.app") click("1273526123226.png") click("1273526171905.png") thumbs = findAll("1273527194228.png") for t in list(thumbs)[:2]: # only take the first two dragLeft(t) # off #dragRight(t) # on #dragToMute(t)
23.052632
58
0.691781
def dragLeft(t): dragDrop(t, t.getCenter().left(200)) def dragRight(t): dragDrop(t, t.getCenter().right(200)) def dragToMute(t): dragDrop(t, t.nearby().left().find("1273527108356.png")) switchApp("System Preferences.app") click("1273526123226.png") click("1273526171905.png") thumbs = findAll("1273527194228.pn...
127
0
68
5a5a83ad47518f4946babfacb96a920c30542e02
4,869
py
Python
pytest_func_cov/plugin.py
radug0314/pytest_func_cov
cc689ba68d083e69d399baad83189861a7adb199
[ "MIT" ]
4
2020-04-03T19:36:51.000Z
2021-04-11T23:41:59.000Z
pytest_func_cov/plugin.py
RaduG/pytest_func_cov
cc689ba68d083e69d399baad83189861a7adb199
[ "MIT" ]
5
2020-02-23T20:37:04.000Z
2021-07-07T07:53:39.000Z
pytest_func_cov/plugin.py
radug0314/pytest_func_cov
cc689ba68d083e69d399baad83189861a7adb199
[ "MIT" ]
1
2021-04-05T15:36:54.000Z
2021-04-05T15:36:54.000Z
import os import sys from .tracking import FunctionIndexer, get_full_function_name def pytest_addoption(parser): """ Pytest hook - register command line arguments. We want to register the --func_cov argument to explicitly pass the location of the package to discover and the ignore_func_names ini sett...
30.622642
82
0.586979
import os import sys from .tracking import FunctionIndexer, get_full_function_name def pytest_addoption(parser): """ Pytest hook - register command line arguments. We want to register the --func_cov argument to explicitly pass the location of the package to discover and the ignore_func_names ini sett...
311
3,637
46
df932a1d318345b8235882775e0cd92939917f5c
1,968
py
Python
lib/tests/test_runner.py
xuzhiying9510/ncflow
3f6f4a5b2c13ac8f6375b097b35f6c55b18d212e
[ "Artistic-1.0-cl8" ]
10
2021-02-09T19:25:46.000Z
2022-03-29T13:49:23.000Z
lib/tests/test_runner.py
xuzhiying9510/ncflow
3f6f4a5b2c13ac8f6375b097b35f6c55b18d212e
[ "Artistic-1.0-cl8" ]
null
null
null
lib/tests/test_runner.py
xuzhiying9510/ncflow
3f6f4a5b2c13ac8f6375b097b35f6c55b18d212e
[ "Artistic-1.0-cl8" ]
5
2020-12-23T15:24:40.000Z
2022-01-06T09:42:38.000Z
#! /usr/bin/env python from .toy_problem_test import ToyProblemTest from .reconciliation_problem_test import ReconciliationProblemTest from .reconciliation_problem_2_test import ReconciliationProblem2Test from .recon3_test import Recon3Test from .optgapc1_test import OptGapC1Test from .optgapc2_test import OptGapC2Te...
33.931034
102
0.723069
#! /usr/bin/env python from .toy_problem_test import ToyProblemTest from .reconciliation_problem_test import ReconciliationProblemTest from .reconciliation_problem_2_test import ReconciliationProblem2Test from .recon3_test import Recon3Test from .optgapc1_test import OptGapC1Test from .optgapc2_test import OptGapC2Te...
476
0
23
5eef5e446e1922c169ce5770f96bdb08b8933d69
17,847
py
Python
openmdao/core/tests/test_getset_vars.py
friedenhe/OpenMDAO
db1d7e22a8bf9f66afa82ec3544b7244d5545f6d
[ "Apache-2.0" ]
451
2015-07-20T11:52:35.000Z
2022-03-28T08:04:56.000Z
openmdao/core/tests/test_getset_vars.py
friedenhe/OpenMDAO
db1d7e22a8bf9f66afa82ec3544b7244d5545f6d
[ "Apache-2.0" ]
1,096
2015-07-21T03:08:26.000Z
2022-03-31T11:59:17.000Z
openmdao/core/tests/test_getset_vars.py
friedenhe/OpenMDAO
db1d7e22a8bf9f66afa82ec3544b7244d5545f6d
[ "Apache-2.0" ]
301
2015-07-16T20:02:11.000Z
2022-03-28T08:04:39.000Z
"""Test getting/setting variables and subjacs with promoted/relative/absolute names.""" import unittest import numpy as np from openmdao.api import Problem, Group, ExecComp, IndepVarComp, DirectSolver, ParallelGroup from openmdao.utils.mpi import MPI try: from openmdao.vectors.petsc_vector import PETScVector exce...
39.837054
292
0.518462
"""Test getting/setting variables and subjacs with promoted/relative/absolute names.""" import unittest import numpy as np from openmdao.api import Problem, Group, ExecComp, IndepVarComp, DirectSolver, ParallelGroup from openmdao.utils.mpi import MPI try: from openmdao.vectors.petsc_vector import PETScVector exce...
8,858
8,460
45
c4ac532576ad2e3296ef052f13dff92d03c958af
6,299
py
Python
heltour/tournament/tests/test_views.py
lenguyenthanh/heltour
13018b1905539de0b273370a76f6aa1d1ebbb01a
[ "MIT" ]
null
null
null
heltour/tournament/tests/test_views.py
lenguyenthanh/heltour
13018b1905539de0b273370a76f6aa1d1ebbb01a
[ "MIT" ]
null
null
null
heltour/tournament/tests/test_views.py
lenguyenthanh/heltour
13018b1905539de0b273370a76f6aa1d1ebbb01a
[ "MIT" ]
null
null
null
from django.test import TestCase from heltour.tournament.models import * from django.core.urlresolvers import reverse # For now we just have sanity checks for the templates used # This could be enhanced by verifying the context data
41.993333
123
0.699476
from django.test import TestCase from heltour.tournament.models import * from django.core.urlresolvers import reverse # For now we just have sanity checks for the templates used # This could be enhanced by verifying the context data def createCommonLeagueData(): team_count = 4 round_count = 3 board_count ...
5,159
123
783
f99a17b230e8119aba628bdff0bc3af92b2d5225
765
py
Python
tests/test_mass_fetch.py
dominik7680/py-skydb
ddf2c6c993cc75398bc3dfcf41954b6793bf3349
[ "MIT" ]
14
2020-11-23T17:05:27.000Z
2022-03-22T01:52:09.000Z
tests/test_mass_fetch.py
dominik7680/py-skydb
ddf2c6c993cc75398bc3dfcf41954b6793bf3349
[ "MIT" ]
2
2020-11-25T12:00:24.000Z
2020-12-09T18:10:50.000Z
tests/test_mass_fetch.py
dominik7680/py-skydb
ddf2c6c993cc75398bc3dfcf41954b6793bf3349
[ "MIT" ]
5
2020-12-09T15:57:11.000Z
2022-01-30T13:17:14.000Z
from skydb import SkydbTable from random import choice from string import ascii_letters table_name = ''.join([choice(ascii_letters) for i in range(20)]) import time print("Creating table") table = SkydbTable(table_name, columns=['c1','c2','c3'], seed="some_random", verbose=1) print("Added table successfully")
24.677419
87
0.678431
from skydb import SkydbTable from random import choice from string import ascii_letters table_name = ''.join([choice(ascii_letters) for i in range(20)]) import time print("Creating table") table = SkydbTable(table_name, columns=['c1','c2','c3'], seed="some_random", verbose=1) print("Added table successfully") def te...
427
0
23
2fbbfb33fb8b668b247f87dcbbe55fe6c26a1b4c
545
py
Python
tests/db_engine_specs/athena_tests.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
tests/db_engine_specs/athena_tests.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
tests/db_engine_specs/athena_tests.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
1
2021-07-09T16:29:50.000Z
2021-07-09T16:29:50.000Z
from rabbitai.db_engine_specs.athena import AthenaEngineSpec from tests.db_engine_specs.base_tests import TestDbEngineSpec
30.277778
67
0.677064
from rabbitai.db_engine_specs.athena import AthenaEngineSpec from tests.db_engine_specs.base_tests import TestDbEngineSpec class TestAthenaDbEngineSpec(TestDbEngineSpec): def test_convert_dttm(self): dttm = self.get_dttm() self.assertEqual( AthenaEngineSpec.convert_dttm("DATE", dttm),...
346
26
49
f47c4459ec95c272bab38550541eef155938f3cc
1,733
py
Python
api/tests/integration/tests/layout/template_layout.py
tsingdao-Tp/Indigo
b2d73faebb6a450e9b3d34fed553fad4f9d0012f
[ "Apache-2.0" ]
204
2015-11-06T21:34:34.000Z
2022-03-30T16:17:01.000Z
api/tests/integration/tests/layout/template_layout.py
tsingdao-Tp/Indigo
b2d73faebb6a450e9b3d34fed553fad4f9d0012f
[ "Apache-2.0" ]
509
2015-11-05T13:54:43.000Z
2022-03-30T22:15:30.000Z
api/tests/integration/tests/layout/template_layout.py
tsingdao-Tp/Indigo
b2d73faebb6a450e9b3d34fed553fad4f9d0012f
[ "Apache-2.0" ]
89
2015-11-17T08:22:54.000Z
2022-03-17T04:26:28.000Z
import os import sys import errno import math from math import * sys.path.append('../../common') from env_indigo import * if not os.path.exists(joinPathPy("out", __file__)): try: os.makedirs(joinPathPy("out", __file__)) except OSError as e: if e.errno != errno.EEXIST: raise indigo...
31.509091
104
0.669359
import os import sys import errno import math from math import * sys.path.append('../../common') from env_indigo import * if not os.path.exists(joinPathPy("out", __file__)): try: os.makedirs(joinPathPy("out", __file__)) except OSError as e: if e.errno != errno.EEXIST: raise indigo...
0
0
0
90c360f1f9de7372f63bd4be872c6b44a814289d
1,019
py
Python
versionfield/forms.py
willseward/django-versionfield3
4ae365fb42f38a02c77d317cba3fef22806f2b24
[ "Unlicense" ]
null
null
null
versionfield/forms.py
willseward/django-versionfield3
4ae365fb42f38a02c77d317cba3fef22806f2b24
[ "Unlicense" ]
null
null
null
versionfield/forms.py
willseward/django-versionfield3
4ae365fb42f38a02c77d317cba3fef22806f2b24
[ "Unlicense" ]
null
null
null
from builtins import str from django import forms from django.forms.widgets import TextInput from .version import Version from .constants import DEFAULT_NUMBER_BITS from .utils import convert_version_int_to_string
30.878788
96
0.675172
from builtins import str from django import forms from django.forms.widgets import TextInput from .version import Version from .constants import DEFAULT_NUMBER_BITS from .utils import convert_version_int_to_string class VersionField(forms.IntegerField): widget = TextInput def __init__(self, number_bits=DEFA...
326
454
23
b76165b2825027823939347d4036fc0458906b68
605
py
Python
src/tblink_rpc_utils/input_reader_yaml.py
tblink-rpc/tblink-rpc-utils
48a731cb8c6201e1975ba18f43737228eb1f7dee
[ "Apache-2.0" ]
null
null
null
src/tblink_rpc_utils/input_reader_yaml.py
tblink-rpc/tblink-rpc-utils
48a731cb8c6201e1975ba18f43737228eb1f7dee
[ "Apache-2.0" ]
null
null
null
src/tblink_rpc_utils/input_reader_yaml.py
tblink-rpc/tblink-rpc-utils
48a731cb8c6201e1975ba18f43737228eb1f7dee
[ "Apache-2.0" ]
null
null
null
''' Created on Oct 20, 2021 @author: mballance ''' from tblink_rpc_utils.idl_spec import IDLSpec from tblink_rpc_utils.input_reader import InputReader from tblink_rpc_utils.input_spec import InputSpec from tblink_rpc_utils.yaml_idl_parser import YamlIDLParser
25.208333
58
0.66281
''' Created on Oct 20, 2021 @author: mballance ''' from tblink_rpc_utils.idl_spec import IDLSpec from tblink_rpc_utils.input_reader import InputReader from tblink_rpc_utils.input_spec import InputSpec from tblink_rpc_utils.yaml_idl_parser import YamlIDLParser class InputReaderYaml(InputReader): def __init__...
241
14
89
9734061ff8c9ce101186289f0971e8af178cbcda
518
py
Python
escola/templatetags/markdown.py
vini84200/medusa2
37cf33d05be8b0195b10845061ca893ba5e814dd
[ "MIT" ]
1
2019-03-15T18:04:24.000Z
2019-03-15T18:04:24.000Z
escola/templatetags/markdown.py
vini84200/medusa2
37cf33d05be8b0195b10845061ca893ba5e814dd
[ "MIT" ]
22
2019-03-17T21:53:50.000Z
2021-03-31T19:12:19.000Z
escola/templatetags/markdown.py
vini84200/medusa2
37cf33d05be8b0195b10845061ca893ba5e814dd
[ "MIT" ]
1
2018-11-25T03:05:23.000Z
2018-11-25T03:05:23.000Z
import misaka as m from django import template from django.template.defaultfilters import stringfilter from django.utils.safestring import mark_safe from MedusaII.settings import MARKDOWNX_MARKDOWN_EXTENSIONS register = template.Library() @register.filter(is_safe=True) @stringfilter
28.777778
78
0.702703
import misaka as m from django import template from django.template.defaultfilters import stringfilter from django.utils.safestring import mark_safe from MedusaII.settings import MARKDOWNX_MARKDOWN_EXTENSIONS register = template.Library() @register.filter(is_safe=True) @stringfilter def md(value): rendered_text...
208
0
22
297983f1224fa368c806bb3709b78cd221f4c7f1
1,720
py
Python
targetrsqueak-embedded.py
shiplift/RSqueakOnABoat
ac449758ddb7aef1721e65a13171547761dd6e39
[ "BSD-3-Clause" ]
44
2015-02-08T09:38:46.000Z
2017-11-15T01:19:40.000Z
targetrsqueak-embedded.py
shiplift/RSqueakOnABoat
ac449758ddb7aef1721e65a13171547761dd6e39
[ "BSD-3-Clause" ]
112
2015-02-08T09:34:40.000Z
2017-04-10T19:06:30.000Z
targetrsqueak-embedded.py
shiplift/RSqueakOnABoat
ac449758ddb7aef1721e65a13171547761dd6e39
[ "BSD-3-Clause" ]
7
2015-04-08T11:49:10.000Z
2017-01-19T06:36:27.000Z
#! /usr/bin/env python import sys from rpython.jit.codewriter.policy import JitPolicy from rsqueakvm import model, objspace, interpreter, squeakimage # This loads an image file in advance and includes it in the # translation-output. At run-time, the defined selector is sent # to the defined SmallInteger. This way we g...
30.714286
85
0.73314
#! /usr/bin/env python import sys from rpython.jit.codewriter.policy import JitPolicy from rsqueakvm import model, objspace, interpreter, squeakimage # This loads an image file in advance and includes it in the # translation-output. At run-time, the defined selector is sent # to the defined SmallInteger. This way we g...
869
0
92
1422dc0df676bf0e1144a0249d8dca0784d485b3
32
py
Python
model/__init__.py
Khurramjaved96/Dicta
416638a3d1ad851b00394e55a7574ec978080d51
[ "Apache-2.0" ]
60
2019-05-29T17:09:15.000Z
2022-03-30T15:35:57.000Z
model/__init__.py
Khurramjaved96/Dicta
416638a3d1ad851b00394e55a7574ec978080d51
[ "Apache-2.0" ]
6
2018-06-08T14:32:34.000Z
2019-05-20T05:34:39.000Z
model/__init__.py
Khurramjaved96/Dicta
416638a3d1ad851b00394e55a7574ec978080d51
[ "Apache-2.0" ]
28
2019-06-10T04:07:24.000Z
2022-01-12T19:21:49.000Z
from model.modelfactory import *
32
32
0.84375
from model.modelfactory import *
0
0
0
3e4408ccc1944b2314adbe4828cdf345edcdd816
6,087
py
Python
doublyLinkedList.py
nemodesouza/ed-trabalho-01-1-doubly-linked-list
b86689a52837ee7d9cb7a6cde7a420ffeb809fb6
[ "CC0-1.0" ]
null
null
null
doublyLinkedList.py
nemodesouza/ed-trabalho-01-1-doubly-linked-list
b86689a52837ee7d9cb7a6cde7a420ffeb809fb6
[ "CC0-1.0" ]
null
null
null
doublyLinkedList.py
nemodesouza/ed-trabalho-01-1-doubly-linked-list
b86689a52837ee7d9cb7a6cde7a420ffeb809fb6
[ "CC0-1.0" ]
null
null
null
from cursor import Cursor from node import Node
33.629834
91
0.55676
from cursor import Cursor from node import Node class DoublyLinkedList: def __init__(self, limit=None): self.__cursor = Cursor() self.__limit = None self.__elements = 0 @property def element(self): return self.__elements def accessCurrent(self): """(elemento) a...
127
5,891
23
d5764f7267401bb5f87916e35baf7cbfc9aaaca4
96
bzl
Python
tools/bzl/classpath.bzl
jinrongc1986/events-log
37371e72e9604cc637d0a96ebc91e5a53d420e2c
[ "Apache-2.0" ]
null
null
null
tools/bzl/classpath.bzl
jinrongc1986/events-log
37371e72e9604cc637d0a96ebc91e5a53d420e2c
[ "Apache-2.0" ]
null
null
null
tools/bzl/classpath.bzl
jinrongc1986/events-log
37371e72e9604cc637d0a96ebc91e5a53d420e2c
[ "Apache-2.0" ]
null
null
null
load( "@com_googlesource_gerrit_bazlets//tools:classpath.bzl", "classpath_collector", )
19.2
60
0.739583
load( "@com_googlesource_gerrit_bazlets//tools:classpath.bzl", "classpath_collector", )
0
0
0
9daee1667658b8ded3cb5aa585437a23a6547b46
9,652
py
Python
wrap/pyllbc/script/common/Stream.py
caochunxi/llbc
2ff4af937f1635be67a7e24602d0a3e87c708ba7
[ "MIT" ]
83
2015-11-10T09:52:56.000Z
2022-01-12T11:53:01.000Z
wrap/pyllbc/script/common/Stream.py
lailongwei/llbc
ec7e69bfa1f0afece8bb19dfa9a0a4578508a077
[ "MIT" ]
30
2017-09-30T07:43:20.000Z
2022-01-23T13:18:48.000Z
wrap/pyllbc/script/common/Stream.py
caochunxi/llbc
2ff4af937f1635be67a7e24602d0a3e87c708ba7
[ "MIT" ]
34
2015-11-14T12:37:44.000Z
2021-12-16T02:38:36.000Z
# -*- coding: utf-8 -*- import inspect import llbc class pyllbcStream(object): """ Stream class encapsulation, use to pack/unpack data sequence. """ @property def endian(self): """ Get stream endian setting(see llbc.Endian module). """ return llbc.inl.GetPyStreamE...
30.544304
129
0.623809
# -*- coding: utf-8 -*- import inspect import llbc class pyllbcStream(object): """ Stream class encapsulation, use to pack/unpack data sequence. """ def __init__(self, size=0, init_obj=None, endian=llbc.Endian.MachineEndian): self.__c_obj = llbc.inl.NewPyStream(self, size, endian) sel...
3,328
0
1,236
793dabc069adbb525fbf397b7888dc9fdb942b2b
2,036
py
Python
src/BloomFilter/BloomFilter.py
shapovalovdev/AlgorythmsAndDataStructures
34d5f38c089e0ba902813607f08847fbdc7361ab
[ "Apache-2.0" ]
null
null
null
src/BloomFilter/BloomFilter.py
shapovalovdev/AlgorythmsAndDataStructures
34d5f38c089e0ba902813607f08847fbdc7361ab
[ "Apache-2.0" ]
null
null
null
src/BloomFilter/BloomFilter.py
shapovalovdev/AlgorythmsAndDataStructures
34d5f38c089e0ba902813607f08847fbdc7361ab
[ "Apache-2.0" ]
null
null
null
#import hashlib #from random import randint # # def hash2(self, str1): # # result=0 # b_str1=str.encode(str1) # h=hashlib.sha1(b_str1).hexdigest() # for c in str1: # result += ord(c) # return result % self.filter_len # if __name__ == '__main__': # da...
32.83871
178
0.589391
#import hashlib #from random import randint class BloomFilter: def __init__(self, f_len): self.filter_len = f_len # создаём битовый массив длиной f_len ... self.bloom_array=self.filter_len * [0] def hash1(self, str1): result=1 rand_int=17 for c in str1: ...
793
-3
157
a5c93ce3ff85b6ac11e58c307fe15570a8d84a8e
2,659
py
Python
target.py
anarthal/omnibuild
466ce4391d016b0890894b984fa1da57edd8f136
[ "MIT" ]
null
null
null
target.py
anarthal/omnibuild
466ce4391d016b0890894b984fa1da57edd8f136
[ "MIT" ]
null
null
null
target.py
anarthal/omnibuild
466ce4391d016b0890894b984fa1da57edd8f136
[ "MIT" ]
null
null
null
import os.path
35.453333
92
0.649116
import os.path class Target(object): def __init__(self, name): self.name = name self.depends = [] def __str__(self): return '<Target {}>'.format(self.name) def is_up_to_date(self, cache): raise NotImplementedError() def build(self): raise NotImplementedError() ...
1,989
227
427
6f4a2eae77a08e70580164954af371a9d61703ba
5,170
py
Python
ivolution/FacemovieThread.py
jlengrand/Ivolution
2753d7120b11fb94a5ce84bfe4a134b5a437a5c7
[ "BSD-3-Clause" ]
4
2015-01-22T06:32:15.000Z
2020-01-30T05:53:48.000Z
ivolution/FacemovieThread.py
jlengrand/Ivolution
2753d7120b11fb94a5ce84bfe4a134b5a437a5c7
[ "BSD-3-Clause" ]
null
null
null
ivolution/FacemovieThread.py
jlengrand/Ivolution
2753d7120b11fb94a5ce84bfe4a134b5a437a5c7
[ "BSD-3-Clause" ]
7
2015-04-23T12:34:19.000Z
2021-08-01T05:58:56.000Z
""" .. module:: Facemovie :platform: Unix, Windows :synopsis: Main class of the application. Contains the core image processing functions.Plays the role of a controller for the application, as it supports the communication layer. .. moduleauthor:: Julien Lengrand-Lambert <jlengrand@gmail.com> """ import threadi...
40.077519
181
0.609284
""" .. module:: Facemovie :platform: Unix, Windows :synopsis: Main class of the application. Contains the core image processing functions.Plays the role of a controller for the application, as it supports the communication layer. .. moduleauthor:: Julien Lengrand-Lambert <jlengrand@gmail.com> """ import threadi...
1,796
0
27
0c88166c936c8776b4331a148fd68ba27d214ba1
1,395
py
Python
Q024_implement_queue_class_in_python.py
latika18/learning
a57c9aacc0157bf7c318f46c1e7c4971d1d55aea
[ "Unlicense" ]
null
null
null
Q024_implement_queue_class_in_python.py
latika18/learning
a57c9aacc0157bf7c318f46c1e7c4971d1d55aea
[ "Unlicense" ]
null
null
null
Q024_implement_queue_class_in_python.py
latika18/learning
a57c9aacc0157bf7c318f46c1e7c4971d1d55aea
[ "Unlicense" ]
null
null
null
#Question 24 #Implement a queue class in Python: It should support 3 APIs: #queue.top(): prints current element at front of queue #queue.pop(): takes out an element from front of queue #queue.add(): adds a new element at end of stack queue_1 = Queue() queue_1.add(12) queue_1.add(11) queue_1.add(55) queue_1.add(66) qu...
21.136364
61
0.653047
#Question 24 #Implement a queue class in Python: It should support 3 APIs: #queue.top(): prints current element at front of queue #queue.pop(): takes out an element from front of queue #queue.add(): adds a new element at end of stack class Queue: def __init__(self): """initialise a Queue class""" se...
0
571
22
9961f18b23d3984a91e993cdbb9cc0a5a87b1478
1,860
py
Python
app/services/searchers/rule.py
ninoseki/uzen
93726f22f43902e17b22dd36142dac05171d0d84
[ "MIT" ]
76
2020-02-27T06:36:27.000Z
2022-03-10T20:18:03.000Z
app/services/searchers/rule.py
ninoseki/uzen
93726f22f43902e17b22dd36142dac05171d0d84
[ "MIT" ]
33
2020-03-13T02:04:14.000Z
2022-03-04T02:06:11.000Z
app/services/searchers/rule.py
ninoseki/uzen
93726f22f43902e17b22dd36142dac05171d0d84
[ "MIT" ]
6
2020-03-17T16:42:25.000Z
2021-04-27T06:35:46.000Z
from typing import Any, Dict, List, Optional, cast from uuid import UUID from tortoise.query_utils import Q from app import models, schemas from app.services.searchers import AbstractSearcher
31
89
0.612366
from typing import Any, Dict, List, Optional, cast from uuid import UUID from tortoise.query_utils import Q from app import models, schemas from app.services.searchers import AbstractSearcher class RuleSearcher(AbstractSearcher): @classmethod async def search( cls, filters: Dict[str, Any], ...
0
1,642
23
7a93655ebac4268d033069e0c8e6ff264d96d3fb
45
py
Python
src/widget/user1/__init__.py
megemini/DataCastle2017
261134f760d8c1bbfc3e65e1362b7710e601947d
[ "MIT" ]
null
null
null
src/widget/user1/__init__.py
megemini/DataCastle2017
261134f760d8c1bbfc3e65e1362b7710e601947d
[ "MIT" ]
null
null
null
src/widget/user1/__init__.py
megemini/DataCastle2017
261134f760d8c1bbfc3e65e1362b7710e601947d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Just for test """
11.25
23
0.466667
# -*- coding: utf-8 -*- """ Just for test """
0
0
0
2366a81d98fc425ba641105e960fcc11a70e1e25
993
py
Python
plot/Plot_thermal_conductiviy_V1.py
eastsheng/Thermal-conductivity
8a26be22c58b3b3b6723c57c65f4bba93556f9e8
[ "MIT" ]
7
2020-06-10T05:38:17.000Z
2022-03-11T10:33:57.000Z
plot/Plot_thermal_conductiviy_V1.py
eastsheng/Thermal-conductivity
8a26be22c58b3b3b6723c57c65f4bba93556f9e8
[ "MIT" ]
null
null
null
plot/Plot_thermal_conductiviy_V1.py
eastsheng/Thermal-conductivity
8a26be22c58b3b3b6723c57c65f4bba93556f9e8
[ "MIT" ]
2
2020-04-24T09:36:25.000Z
2022-03-11T10:33:58.000Z
import numpy as np import matplotlib.pyplot as plt if __name__ == '__main__': # tcfile = './Thermal_conductivity_Se.txt' tcfile = './Thermal_conductivity_S.txt' plt_tc(tcfile)
24.825
96
0.678751
import numpy as np import matplotlib.pyplot as plt def plt_tc(tcfile): tc = np.loadtxt(tcfile) # print(tc) x = tc[:,0]/32.06 y = tc[:,1:4] y_mean = np.mean(y,axis=1) y_std = np.std(y,axis=1) # print(y_mean,y_std) plt.rc('font',family='Times New Roman',size=26) fig, ax = plt.subplots(figsize=(8,6)) fig.sub...
785
0
23
68a08329945e4e078a86db5c9188a879ac68c385
4,743
py
Python
scripts/scatter_plots.py
tupleblog/bkkdreams-datathon
54214356d42cecdc758803d958375bd7ee7dc169
[ "MIT" ]
1
2020-09-13T16:52:03.000Z
2020-09-13T16:52:03.000Z
scripts/scatter_plots.py
tupleblog/bkkdreams-datathon
54214356d42cecdc758803d958375bd7ee7dc169
[ "MIT" ]
null
null
null
scripts/scatter_plots.py
tupleblog/bkkdreams-datathon
54214356d42cecdc758803d958375bd7ee7dc169
[ "MIT" ]
null
null
null
""" Scatter plot between """ import pandas as pd import numpy as np from numpy.random import random from math import pi from bokeh.io import output_notebook output_notebook() from bokeh.io import show, output_file from bokeh.palettes import RdYlGn6 from bokeh.models import ( BasicTicker, ColorBar, LinearC...
31.62
85
0.560826
""" Scatter plot between """ import pandas as pd import numpy as np from numpy.random import random from math import pi from bokeh.io import output_notebook output_notebook() from bokeh.io import show, output_file from bokeh.palettes import RdYlGn6 from bokeh.models import ( BasicTicker, ColorBar, LinearC...
0
0
0
c175aa18424a015e81f4404dc8122dd28b20d6bf
302
py
Python
QISKIT/TDA/Qconfig_20_qubit.py
rsarkar-github/Quantum-Computing-Projects
966c0465f98dca0091f09826e12eb57277faf3c0
[ "MIT" ]
null
null
null
QISKIT/TDA/Qconfig_20_qubit.py
rsarkar-github/Quantum-Computing-Projects
966c0465f98dca0091f09826e12eb57277faf3c0
[ "MIT" ]
null
null
null
QISKIT/TDA/Qconfig_20_qubit.py
rsarkar-github/Quantum-Computing-Projects
966c0465f98dca0091f09826e12eb57277faf3c0
[ "MIT" ]
null
null
null
APItoken = 'ffb1bf6df27099919ca9ab63da88b1929016a7f7468d477f65241f61e1f457ab4' \ 'f53c50ead0371ce632b283b5dc803fae33b34b3601053d2bde24f4ebc921b1b' config = { 'url': 'https://q-console-api.mybluemix.net/api', 'hub': 'ibmq', 'group': 'qc-ware', 'project': 'default' }
30.2
80
0.688742
APItoken = 'ffb1bf6df27099919ca9ab63da88b1929016a7f7468d477f65241f61e1f457ab4' \ 'f53c50ead0371ce632b283b5dc803fae33b34b3601053d2bde24f4ebc921b1b' config = { 'url': 'https://q-console-api.mybluemix.net/api', 'hub': 'ibmq', 'group': 'qc-ware', 'project': 'default' }
0
0
0
de5c1f120fe34ee35b979c4f5b009fc460b748c4
1,906
py
Python
os_faults/ansible/modules/iptables.py
Marie-Donnie/os-faults
2f9eb760d240b9a03b7df5682b5b24cf35daacd0
[ "Apache-2.0" ]
null
null
null
os_faults/ansible/modules/iptables.py
Marie-Donnie/os-faults
2f9eb760d240b9a03b7df5682b5b24cf35daacd0
[ "Apache-2.0" ]
null
null
null
os_faults/ansible/modules/iptables.py
Marie-Donnie/os-faults
2f9eb760d240b9a03b7df5682b5b24cf35daacd0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # 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 # ...
38.897959
75
0.629066
#!/usr/bin/python # 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 # ...
1,228
0
23
91aa923768fc23db2b0a5d788c50eb978a3701bc
15,766
py
Python
python/pyspark/sql/tests/test_session.py
wangyeweikuer/spark
731aa2cdf8a78835621fbf3de2d3492b27711d1a
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2022-03-25T06:40:43.000Z
2022-03-25T06:40:43.000Z
python/pyspark/sql/tests/test_session.py
nyingping/spark
ca7200b0008dc6101a252020e6c34ef7b72d81d6
[ "Apache-2.0" ]
6
2018-06-14T11:15:27.000Z
2019-01-27T12:11:23.000Z
python/pyspark/sql/tests/test_session.py
nyingping/spark
ca7200b0008dc6101a252020e6c34ef7b72d81d6
[ "Apache-2.0" ]
1
2022-03-09T08:50:07.000Z
2022-03-09T08:50:07.000Z
# # 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 us...
40.425641
99
0.639921
# # 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 us...
12,883
469
771
f10f0867880f642b6d0b6d7c51bd8255be411723
14,187
py
Python
model/run_experiments.py
irenetrampoline/clustering-interval-censored
f6ab06a6cf3098ffe006d1b95d1b4f1d158b0bc4
[ "MIT" ]
1
2022-02-03T08:47:45.000Z
2022-02-03T08:47:45.000Z
model/run_experiments.py
irenetrampoline/clustering-interval-censored
f6ab06a6cf3098ffe006d1b95d1b4f1d158b0bc4
[ "MIT" ]
null
null
null
model/run_experiments.py
irenetrampoline/clustering-interval-censored
f6ab06a6cf3098ffe006d1b95d1b4f1d158b0bc4
[ "MIT" ]
null
null
null
import argparse import numpy as np import os import sys sys.path.append('../data') sys.path.append('../plot') import torch from load import sigmoid, quadratic, chf, parkinsons, load_data_format from data_utils import parse_data, change_missing from plot_utils import plot_subtypes, plot_latent from models import Subl...
48.585616
229
0.584408
import argparse import numpy as np import os import sys sys.path.append('../data') sys.path.append('../plot') import torch from load import sigmoid, quadratic, chf, parkinsons, load_data_format from data_utils import parse_data, change_missing from plot_utils import plot_subtypes, plot_latent from models import Subl...
13,728
0
99
a53c8a2a5ad5aded053ad7c5fd27b412fc60a466
2,573
py
Python
parsers/pdbparser.py
rigdenlab/conkit-web
bf50d28a73f43b9eb0e0c397ec1d0fd32547fdf1
[ "BSD-3-Clause" ]
1
2020-04-16T16:52:53.000Z
2020-04-16T16:52:53.000Z
parsers/pdbparser.py
rigdenlab/conplot
9b3129d9e1b7ed93da63c6fd31f9b50e63f2d4d9
[ "BSD-3-Clause" ]
47
2020-05-11T13:59:11.000Z
2022-01-21T09:37:18.000Z
parsers/pdbparser.py
rigdenlab/conkit-web
bf50d28a73f43b9eb0e0c397ec1d0fd32547fdf1
[ "BSD-3-Clause" ]
5
2020-04-24T11:19:21.000Z
2020-05-06T08:01:36.000Z
from Bio.PDB import PDBParser as BioPDBParser import io import itertools from operator import itemgetter from utils.exceptions import InvalidFormat VALID_AMINOACIDS = {"A", "R", "N", "D", "C", "C", "Q", "E", "G", "H", "I", "L", "K", "M", "M", "F", "P", "O", "S", "U", "T", "W", "Y", "V", "B", "Z", "...
38.402985
119
0.585309
from Bio.PDB import PDBParser as BioPDBParser import io import itertools from operator import itemgetter from utils.exceptions import InvalidFormat VALID_AMINOACIDS = {"A", "R", "N", "D", "C", "C", "Q", "E", "G", "H", "I", "L", "K", "M", "M", "F", "P", "O", "S", "U", "T", "W", "Y", "V", "B", "Z", "...
469
0
23
415c056f05afba92871ed1b11cf1af7a2b45bdd6
1,753
py
Python
salmon/search/discogs.py
Junkbite/smoked-salmon
c7ee36dc9bba00707d8529af34b69e8c529d3615
[ "Apache-2.0" ]
42
2020-03-02T11:42:17.000Z
2022-03-02T13:51:05.000Z
salmon/search/discogs.py
Junkbite/smoked-salmon
c7ee36dc9bba00707d8529af34b69e8c529d3615
[ "Apache-2.0" ]
20
2020-03-02T11:46:43.000Z
2022-01-26T23:33:37.000Z
salmon/search/discogs.py
Junkbite/smoked-salmon
c7ee36dc9bba00707d8529af34b69e8c529d3615
[ "Apache-2.0" ]
16
2020-03-01T11:29:55.000Z
2022-01-24T18:10:35.000Z
import re from salmon.search.base import IdentData, SearchMixin from salmon.sources import DiscogsBase SOURCES = { "Vinyl": "Vinyl", "File": "WEB", "CD": "CD", } def sanitize_artist_name(name): """ Remove parenthentical number disambiguation bullshit from artist names, as well as the asteri...
30.224138
79
0.553908
import re from salmon.search.base import IdentData, SearchMixin from salmon.sources import DiscogsBase SOURCES = { "Vinyl": "Vinyl", "File": "WEB", "CD": "CD", } class Searcher(DiscogsBase, SearchMixin): async def search_releases(self, searchstr, limit): releases = {} resp = await se...
978
20
49
8e0d50b482773beb3ff48ba3c18ff76723f48d7c
590
py
Python
scripts/relay.py
MDooley47/jam-house
f67c98e2dc3edd32fa26f7f95df03a27b5e0b3ff
[ "Apache-2.0" ]
null
null
null
scripts/relay.py
MDooley47/jam-house
f67c98e2dc3edd32fa26f7f95df03a27b5e0b3ff
[ "Apache-2.0" ]
null
null
null
scripts/relay.py
MDooley47/jam-house
f67c98e2dc3edd32fa26f7f95df03a27b5e0b3ff
[ "Apache-2.0" ]
null
null
null
import RPi.GPIO as GPIO
16.857143
37
0.625424
import RPi.GPIO as GPIO class Relay: def __init__(self, pin): self.pin = int(pin) GPIO.setup(self.pin, GPIO.OUT) def close(self): GPIO.output(self.pin, GPIO.LOW) return def open(self): GPIO.output(self.pin, GPIO.HIGH) return def status(self): return bool(GPIO.input(self.pin)) ...
353
-9
222
d4a0efc7601cb3d5e6ec66f5f5af3b78a9158768
1,309
py
Python
threaded_messages/listeners.py
MattBlack85/django-threaded-messages
da86dea6dd854f9ab37201d3953f9d028faa85e9
[ "MIT" ]
null
null
null
threaded_messages/listeners.py
MattBlack85/django-threaded-messages
da86dea6dd854f9ab37201d3953f9d028faa85e9
[ "MIT" ]
null
null
null
threaded_messages/listeners.py
MattBlack85/django-threaded-messages
da86dea6dd854f9ab37201d3953f9d028faa85e9
[ "MIT" ]
1
2021-01-06T14:41:13.000Z
2021-01-06T14:41:13.000Z
import logging from django.utils.html import strip_tags from . import settings as sendgrid_settings from .signals import message_composed logger = logging.getLogger('threaded_messages') if sendgrid_settings.THREADED_MESSAGES_USE_SENDGRID: from sendgrid_parse_api.signals import email_received else: email_rec...
30.44186
98
0.663102
import logging from django.utils.html import strip_tags from . import settings as sendgrid_settings from .signals import message_composed logger = logging.getLogger('threaded_messages') if sendgrid_settings.THREADED_MESSAGES_USE_SENDGRID: from sendgrid_parse_api.signals import email_received else: email_rec...
928
0
46
4e5e61e419f37f8dd598086847f0c15a320b4ff7
15,814
py
Python
fzutils/free_api_utils.py
superonesfazai/fzutils
a8aafaacd94af0001af2ab139f0aa8cbcb8b5eda
[ "MIT" ]
11
2018-08-04T08:14:27.000Z
2021-09-03T09:00:33.000Z
fzutils/free_api_utils.py
superonesfazai/fzutils
a8aafaacd94af0001af2ab139f0aa8cbcb8b5eda
[ "MIT" ]
null
null
null
fzutils/free_api_utils.py
superonesfazai/fzutils
a8aafaacd94af0001af2ab139f0aa8cbcb8b5eda
[ "MIT" ]
8
2018-08-04T08:16:17.000Z
2019-05-05T09:17:35.000Z
# coding:utf-8 ''' @author = super_fazai @File : free_api_utils.py @connect : superonesfazai@gmail.com ''' """ 一些免费api 接口的封装 """ from pprint import pprint import re # from fzutils.ip_pools import tri_ip_pool # from fzutils.spider.fz_requests import Requests # from fzutils.common_utils import json_2_dict # from f...
33.014614
139
0.496775
# coding:utf-8 ''' @author = super_fazai @File : free_api_utils.py @connect : superonesfazai@gmail.com ''' """ 一些免费api 接口的封装 """ from pprint import pprint import re # from fzutils.ip_pools import tri_ip_pool # from fzutils.spider.fz_requests import Requests # from fzutils.common_utils import json_2_dict # from f...
0
0
0
b24c57ae9801978655a2dd8c90c7f52a6c81983c
377
py
Python
tests/test_axpy_weather.py
AxxAxx/axpy_weather
2714397968b55b63b784ce08a2df0ade08aa2008
[ "MIT" ]
null
null
null
tests/test_axpy_weather.py
AxxAxx/axpy_weather
2714397968b55b63b784ce08a2df0ade08aa2008
[ "MIT" ]
null
null
null
tests/test_axpy_weather.py
AxxAxx/axpy_weather
2714397968b55b63b784ce08a2df0ade08aa2008
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_axpy_weather ---------------------------------- Tests for `axpy_weather` module. """ import sys import unittest from axpy_weather import axpy_weather
13
42
0.599469
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_axpy_weather ---------------------------------- Tests for `axpy_weather` module. """ import sys import unittest from axpy_weather import axpy_weather class TestAxpy_weather(unittest.TestCase): def setUp(self): pass def tearDown(self): ...
40
21
104
dad37465db8abb220a6642fa8e0c3fe096021b1a
446
py
Python
setup.py
GeorgianaElena/jupyterhub-configurator
f356175732d487c520415b84368b3368397d8b60
[ "BSD-3-Clause" ]
null
null
null
setup.py
GeorgianaElena/jupyterhub-configurator
f356175732d487c520415b84368b3368397d8b60
[ "BSD-3-Clause" ]
null
null
null
setup.py
GeorgianaElena/jupyterhub-configurator
f356175732d487c520415b84368b3368397d8b60
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages setup( name="jupyterhub-configurator", version="1.0", packages=find_packages(), license="3-BSD", author="yuvipanda", author_email="yuvipanda@gmail.com", install_requires=["tornado", "aiohttp", "jupyterhub", "deepmerge", "pluggy"], include_pack...
27.875
82
0.686099
from setuptools import setup, find_packages setup( name="jupyterhub-configurator", version="1.0", packages=find_packages(), license="3-BSD", author="yuvipanda", author_email="yuvipanda@gmail.com", install_requires=["tornado", "aiohttp", "jupyterhub", "deepmerge", "pluggy"], include_pack...
0
0
0
85bc4000ac9a7feae9aa1e58301dae7af7b354a8
2,767
py
Python
src/austin_heller_repo/component_manager.py
AustinHellerRepo/ComponentManager
bd347d87cb0c19acf07419ba8e8c30d4fa6f6027
[ "MIT" ]
null
null
null
src/austin_heller_repo/component_manager.py
AustinHellerRepo/ComponentManager
bd347d87cb0c19acf07419ba8e8c30d4fa6f6027
[ "MIT" ]
null
null
null
src/austin_heller_repo/component_manager.py
AustinHellerRepo/ComponentManager
bd347d87cb0c19acf07419ba8e8c30d4fa6f6027
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import List, Tuple, Dict try: import urequests as requests except ImportError: import requests try: import ujson as json except ImportError: import json
28.234694
152
0.729671
from __future__ import annotations from typing import List, Tuple, Dict try: import urequests as requests except ImportError: import requests try: import ujson as json except ImportError: import json class MethodTypeEnum(): Get = 0 Post = 1 class ApiInterface(): def __init__(self, *, api_base_url: str): ...
2,272
49
237
067659e95365ddba0dd9591d5eb66a3a527b4438
100
py
Python
python/hackerrank/conditional code/which one is greater/task.py
3keepmovingforward3/ENGR1102
b4f38a70560fc695d70706279047b1dec9f5c7f4
[ "MIT" ]
null
null
null
python/hackerrank/conditional code/which one is greater/task.py
3keepmovingforward3/ENGR1102
b4f38a70560fc695d70706279047b1dec9f5c7f4
[ "MIT" ]
null
null
null
python/hackerrank/conditional code/which one is greater/task.py
3keepmovingforward3/ENGR1102
b4f38a70560fc695d70706279047b1dec9f5c7f4
[ "MIT" ]
null
null
null
# Start your code below (tip: Make sure to indent your code)
20
64
0.71
def greater_if_else(num1, num2): # Start your code below (tip: Make sure to indent your code)
11
0
23
ca8820199ef0c7948e24a842fd58013d23375baa
2,451
py
Python
pmst/tests/test_component.py
talonchandler/pmst
c7d4d00a9a377726f8996cb416970037af92c40a
[ "MIT" ]
null
null
null
pmst/tests/test_component.py
talonchandler/pmst
c7d4d00a9a377726f8996cb416970037af92c40a
[ "MIT" ]
null
null
null
pmst/tests/test_component.py
talonchandler/pmst
c7d4d00a9a377726f8996cb416970037af92c40a
[ "MIT" ]
null
null
null
import sys sys.path.append("../../") from unittest import TestCase from pmst.geometry import Point, Ray from pmst.component import Lens from pmst.microscope import Microscope import pmst.source import numpy as np # self.assertTrue(self.s.ray_list.get_ray(1) == Ray(Point(0, .5, 1), Point(0, .5, 2))) # ...
35.014286
95
0.571195
import sys sys.path.append("../../") from unittest import TestCase from pmst.geometry import Point, Ray from pmst.component import Lens from pmst.microscope import Microscope import pmst.source import numpy as np class TestPixel(TestCase): def setUp(self): origin = np.array((0, 0, 0)) normal = ...
1,759
47
203
19c0a3b65b67a59f869878709be52202016b86ff
3,021
py
Python
src/bmeg/utils.py
bmeg/bmeg-etl
3efa28a7775d6defd77457838e92817a2fbc9e99
[ "MIT" ]
1
2022-03-08T22:06:35.000Z
2022-03-08T22:06:35.000Z
src/bmeg/utils.py
bmeg/bmeg-etl
3efa28a7775d6defd77457838e92817a2fbc9e99
[ "MIT" ]
191
2018-07-09T20:49:34.000Z
2021-02-09T18:44:28.000Z
src/bmeg/utils.py
bmeg/bmeg-etl
3efa28a7775d6defd77457838e92817a2fbc9e99
[ "MIT" ]
null
null
null
import os import inspect import typing import threading from contextlib import suppress from functools import wraps def enforce_types(callable): """ From: https://stackoverflow.com/questions/50563546/validating-detailed-types-in-python-dataclasses """ spec = inspect.getfullargspec(callable) ...
27.216216
96
0.586892
import os import inspect import typing import threading from contextlib import suppress from functools import wraps def ensure_directory(*args): path = os.path.join(*args) if os.path.isfile(path): raise Exception( "Emitter output directory %s is a regular file", path) if not os.path.e...
2,295
0
261
35a9845cf13f68f6956c51a6bcfbdd68d916ace4
568
py
Python
voting/apps/survey/signals.py
nurikou/voting_back
de54218f01095f5090d490cabf32a86b1e608925
[ "MIT" ]
null
null
null
voting/apps/survey/signals.py
nurikou/voting_back
de54218f01095f5090d490cabf32a86b1e608925
[ "MIT" ]
null
null
null
voting/apps/survey/signals.py
nurikou/voting_back
de54218f01095f5090d490cabf32a86b1e608925
[ "MIT" ]
null
null
null
from django.db.models.signals import post_save from django.dispatch import receiver from .models import Vote from .serializers import VoteSerializer from asgiref.sync import async_to_sync import channels.layers @receiver(post_save, sender=Vote)
31.555556
78
0.741197
from django.db.models.signals import post_save from django.dispatch import receiver from .models import Vote from .serializers import VoteSerializer from asgiref.sync import async_to_sync import channels.layers @receiver(post_save, sender=Vote) def send_notification(sender, instance, created, **kwargs): if creat...
298
0
22
aadac3c14b4d6bf52fd38741ccf5cbd8ff170fdc
5,352
py
Python
check_mariadb_slaves.py
flickerfly/check_mariadb_slaves
b9917c5a097a9806d19caee83c5644afab924366
[ "MIT" ]
null
null
null
check_mariadb_slaves.py
flickerfly/check_mariadb_slaves
b9917c5a097a9806d19caee83c5644afab924366
[ "MIT" ]
null
null
null
check_mariadb_slaves.py
flickerfly/check_mariadb_slaves
b9917c5a097a9806d19caee83c5644afab924366
[ "MIT" ]
null
null
null
#!/usr/bin/env python """MariaDB slave status checker""" import sys import argparse import MySQLdb class NagiosPlugin(object): """Nagios Plugin base class""" class SlaveStatusCheck(NagiosPlugin): """Class to help us run slave status queries against MariaDB""" REPLICATION_LAG_MODE = 'replication_lag' ...
33.873418
80
0.596599
#!/usr/bin/env python """MariaDB slave status checker""" import sys import argparse import MySQLdb class NagiosPlugin(object): """Nagios Plugin base class""" def __init__(self, warning, critical, *args, **kwargs): self.warning = warning self.critical = critical def run_check(self): ...
817
0
189
10099580e70302fbeaf41e9a358a3baf413b5d47
6,025
py
Python
src/prg_state_ctrl.py
ccarr66/handwriting_gui
c5d8a8925ee37d874ee794a241e50974a7b9d921
[ "MIT" ]
null
null
null
src/prg_state_ctrl.py
ccarr66/handwriting_gui
c5d8a8925ee37d874ee794a241e50974a7b9d921
[ "MIT" ]
null
null
null
src/prg_state_ctrl.py
ccarr66/handwriting_gui
c5d8a8925ee37d874ee794a241e50974a7b9d921
[ "MIT" ]
1
2020-11-17T21:31:55.000Z
2020-11-17T21:31:55.000Z
import sys, os, platform import ocr_image_analyzer as OCR try: import PIL.Image import PIL.ImageTk except ModuleNotFoundError: print('Required libraries not found, please install PIL') if __name__ == "__main__": raise Exception('Cannot be called as main script') debug = True #***********...
33.848315
137
0.601494
import sys, os, platform import ocr_image_analyzer as OCR try: import PIL.Image import PIL.ImageTk except ModuleNotFoundError: print('Required libraries not found, please install PIL') if __name__ == "__main__": raise Exception('Cannot be called as main script') debug = True #***********...
4,261
1,155
74
54692a530049e8154ae7b77f87421496fbec60bd
1,013
py
Python
02_assignment/toolbox/Toolbox_Python02450/Scripts/ex10_2_1.py
LukaAvbreht/ML_projects
8b36acdeb017ce8a57959c609b96111968852d5f
[ "MIT" ]
null
null
null
02_assignment/toolbox/Toolbox_Python02450/Scripts/ex10_2_1.py
LukaAvbreht/ML_projects
8b36acdeb017ce8a57959c609b96111968852d5f
[ "MIT" ]
null
null
null
02_assignment/toolbox/Toolbox_Python02450/Scripts/ex10_2_1.py
LukaAvbreht/ML_projects
8b36acdeb017ce8a57959c609b96111968852d5f
[ "MIT" ]
null
null
null
# exercise 10.2.1 from matplotlib.pyplot import figure, show from scipy.io import loadmat from toolbox_02450 import clusterplot from scipy.cluster.hierarchy import linkage, fcluster, dendrogram # Load Matlab data file and extract variables of interest mat_data = loadmat('../Data/synth1.mat') X = mat_data['X'] y = mat_...
28.138889
75
0.755183
# exercise 10.2.1 from matplotlib.pyplot import figure, show from scipy.io import loadmat from toolbox_02450 import clusterplot from scipy.cluster.hierarchy import linkage, fcluster, dendrogram # Load Matlab data file and extract variables of interest mat_data = loadmat('../Data/synth1.mat') X = mat_data['X'] y = mat_...
0
0
0
67bd1f4cc17ab520aed02257323fdafae66bc88e
2,002
py
Python
modules/network/PrefabGateOne.py
Jumpscale/rsal9
e7ff7638ca53dafe872ce3030a379e8b65cb4831
[ "Apache-2.0" ]
1
2017-06-07T08:11:57.000Z
2017-06-07T08:11:57.000Z
modules/network/PrefabGateOne.py
Jumpscale/rsal9
e7ff7638ca53dafe872ce3030a379e8b65cb4831
[ "Apache-2.0" ]
106
2017-05-10T18:16:31.000Z
2019-09-18T15:09:07.000Z
modules/network/PrefabGateOne.py
Jumpscale/rsal9
e7ff7638ca53dafe872ce3030a379e8b65cb4831
[ "Apache-2.0" ]
5
2018-01-26T16:11:52.000Z
2018-08-22T15:12:52.000Z
from js9 import j app = j.tools.prefab._getBaseAppClass()
26
131
0.584915
from js9 import j app = j.tools.prefab._getBaseAppClass() class PrefabGateOne(app): NAME = "gateone" def build(self, reset=False): """ Build Gateone :param reset: reset build if already built before :return: """ if self.doneCheck("build", reset): r...
0
1,919
23
d6055403ada75fdb58112230e49db04f73faeaa8
7,213
py
Python
scripts/slave/recipe_modules/skia/resources/trigger_wait_ct_task.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
scripts/slave/recipe_modules/skia/resources/trigger_wait_ct_task.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
scripts/slave/recipe_modules/skia/resources/trigger_wait_ct_task.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
1
2020-07-23T11:05:06.000Z
2020-07-23T11:05:06.000Z
#!/usr/bin/env python # Copyright (c) 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Python utility that triggers and waits for tasks to complete on CTFE.""" import base64 import hashlib import json import math i...
33.087156
80
0.674338
#!/usr/bin/env python # Copyright (c) 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Python utility that triggers and waits for tasks to complete on CTFE.""" import base64 import hashlib import json import math i...
2,643
21
114
98cde3ab65273da077819776204d130012f60c8c
189
py
Python
qvapay/v1/errors.py
jorgeajimenezl/qvapay-python
e3fa24ae1be858c65f6816af3d74dabba572e7f0
[ "MIT" ]
15
2021-08-28T12:45:30.000Z
2022-02-09T23:41:43.000Z
qvapay/v1/errors.py
jorgeajimenezl/qvapay-python
e3fa24ae1be858c65f6816af3d74dabba572e7f0
[ "MIT" ]
11
2021-08-30T20:30:37.000Z
2021-10-31T18:05:41.000Z
qvapay/v1/errors.py
jorgeajimenezl/qvapay-python
e3fa24ae1be858c65f6816af3d74dabba572e7f0
[ "MIT" ]
6
2021-08-28T22:22:08.000Z
2022-03-07T19:53:09.000Z
from dataclasses import dataclass, field from typing import Optional @dataclass
21
55
0.783069
from dataclasses import dataclass, field from typing import Optional @dataclass class QvaPayError(Exception): status_code: int status_message: Optional[str] = field(default=None)
0
85
22
3da55060c919b50297a4552fec6032bcf0f5ca39
1,605
py
Python
flask_appify/ext/appengine.py
RealKinetic/flask-appify
3bfc649ab96fca92abeb03bd37b976f3de7dbbc3
[ "Apache-2.0" ]
null
null
null
flask_appify/ext/appengine.py
RealKinetic/flask-appify
3bfc649ab96fca92abeb03bd37b976f3de7dbbc3
[ "Apache-2.0" ]
null
null
null
flask_appify/ext/appengine.py
RealKinetic/flask-appify
3bfc649ab96fca92abeb03bd37b976f3de7dbbc3
[ "Apache-2.0" ]
null
null
null
import functools from flask_appify.util import request_wants_json try: from google.appengine.api import datastore_errors except ImportError: # not on the AppEngine platform datastore_errors = None __all__ = [ 'init_app', ] html_response = { 503: """<!doctype html><html><head><title>503 Service...
26.75
77
0.699688
import functools from flask_appify.util import request_wants_json try: from google.appengine.api import datastore_errors except ImportError: # not on the AppEngine platform datastore_errors = None __all__ = [ 'init_app', ] html_response = { 503: """<!doctype html><html><head><title>503 Service...
391
0
23
e70169b20bf89f034aa2f15f946cacbc5c045ef2
1,146
py
Python
my_receipts/apps/receipts/tests/test_parsers.py
Tvrsch/my_receipts
0a905d2366cee3b62f2dd083af1622afeb648bef
[ "MIT" ]
null
null
null
my_receipts/apps/receipts/tests/test_parsers.py
Tvrsch/my_receipts
0a905d2366cee3b62f2dd083af1622afeb648bef
[ "MIT" ]
11
2021-05-10T15:40:38.000Z
2022-02-28T21:09:37.000Z
my_receipts/apps/receipts/tests/test_parsers.py
Tvrsch/my_receipts
0a905d2366cee3b62f2dd083af1622afeb648bef
[ "MIT" ]
2
2021-09-18T18:49:58.000Z
2021-11-17T12:29:13.000Z
from datetime import datetime from pathlib import Path import pytest from my_receipts.apps.receipts.parsers import TaxcomParser CURRENT_DIR = Path(__file__).resolve(strict=True).parent pytestmark = pytest.mark.django_db
30.157895
82
0.711169
from datetime import datetime from pathlib import Path import pytest from my_receipts.apps.receipts.parsers import TaxcomParser CURRENT_DIR = Path(__file__).resolve(strict=True).parent pytestmark = pytest.mark.django_db def test_taxcom(requests_mock): with open(CURRENT_DIR / "taxcom_page.html", encoding="utf8...
959
0
23
3f3179753f11234dd6a4245ab4afb96624ed7961
341
py
Python
django_fastapi/api/migrations/0005_rename_id_login_id2.py
ehddn5252/FastAPI_Django
a179aedb62c28d1700578882e681002a61576060
[ "MIT" ]
null
null
null
django_fastapi/api/migrations/0005_rename_id_login_id2.py
ehddn5252/FastAPI_Django
a179aedb62c28d1700578882e681002a61576060
[ "MIT" ]
null
null
null
django_fastapi/api/migrations/0005_rename_id_login_id2.py
ehddn5252/FastAPI_Django
a179aedb62c28d1700578882e681002a61576060
[ "MIT" ]
1
2021-11-26T08:22:57.000Z
2021-11-26T08:22:57.000Z
# Generated by Django 3.2.9 on 2021-11-18 17:50 from django.db import migrations
17.947368
47
0.557185
# Generated by Django 3.2.9 on 2021-11-18 17:50 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0004_login_id'), ] operations = [ migrations.RenameField( model_name='login', old_name='id', new_name='id...
0
235
23
0d241de29929eca30aa84aa2c82ddd0f71d7d6f2
1,049
py
Python
projects/ide/sublime/src/Bolt/api/command/bolt_listener.py
boltjs/bolt
c2666c876b34b1a61486a432eef3141ca8d1e411
[ "BSD-3-Clause" ]
11
2015-09-29T19:19:34.000Z
2020-11-20T09:14:46.000Z
projects/ide/sublime/src/Bolt/api/command/bolt_listener.py
boltjs/bolt
c2666c876b34b1a61486a432eef3141ca8d1e411
[ "BSD-3-Clause" ]
null
null
null
projects/ide/sublime/src/Bolt/api/command/bolt_listener.py
boltjs/bolt
c2666c876b34b1a61486a432eef3141ca8d1e411
[ "BSD-3-Clause" ]
null
null
null
import sublime import sublime_plugin from structs.thread_handler import * from api.inspect import highlighting from lookup import file_type as lookup_file_type
26.225
83
0.633937
import sublime import sublime_plugin from structs.thread_handler import * from api.inspect import highlighting from lookup import file_type as lookup_file_type class BoltListener(sublime_plugin.EventListener): def __init__(self): self.thread = None def init(t): self.thread = t ...
728
28
131
d9a539681a7a683b2742f4354908b361aaacc82b
18
py
Python
tmc-langs/tests/data/some_course/PythonExercise/src/__init__.py
Robustic/tmc-langs-rust
fd7d689a5f898a728787123966b8a5d8eb0f0c5b
[ "Apache-2.0", "MIT" ]
7
2021-11-16T06:01:41.000Z
2022-03-30T21:09:14.000Z
tmc-langs/tests/data/some_course/PythonExercise/src/__init__.py
Robustic/tmc-langs-rust
fd7d689a5f898a728787123966b8a5d8eb0f0c5b
[ "Apache-2.0", "MIT" ]
110
2020-05-04T13:44:28.000Z
2022-03-09T12:21:40.000Z
tmc-langs/tests/data/some_course/PythonExercise/src/__init__.py
Robustic/tmc-langs-rust
fd7d689a5f898a728787123966b8a5d8eb0f0c5b
[ "Apache-2.0", "MIT" ]
9
2020-05-05T03:05:53.000Z
2021-04-29T13:13:52.000Z
from src import *
9
17
0.722222
from src import *
0
0
0
70cb51c5cefbf126f84ed0c92fb87ae557ed0c84
2,072
py
Python
grocery_store/grocery_store/grocery_auth/views.py
DeanDupalov/my_project
3346f940a246441c46188c20d1ddfbd13a883928
[ "MIT" ]
null
null
null
grocery_store/grocery_store/grocery_auth/views.py
DeanDupalov/my_project
3346f940a246441c46188c20d1ddfbd13a883928
[ "MIT" ]
null
null
null
grocery_store/grocery_store/grocery_auth/views.py
DeanDupalov/my_project
3346f940a246441c46188c20d1ddfbd13a883928
[ "MIT" ]
null
null
null
from django.contrib.auth import login, logout from django.contrib.auth.decorators import login_required from django.db import transaction from django.shortcuts import render, redirect from django.views.generic import TemplateView from grocery_store.grocery_auth.forms import SignInForm, SignUpForm from grocery_store.p...
28
72
0.644305
from django.contrib.auth import login, logout from django.contrib.auth.decorators import login_required from django.db import transaction from django.shortcuts import render, redirect from django.views.generic import TemplateView from grocery_store.grocery_auth.forms import SignInForm, SignUpForm from grocery_store.p...
1,422
138
68
037795ac1abedf72121969ab98a1ef082062b78c
6,589
py
Python
data/Luminometrics/htbayes.py
ericmjl/protein-systematic-characterization
3ac44d672380490d8e602aa024e40009fdf306b0
[ "MIT" ]
null
null
null
data/Luminometrics/htbayes.py
ericmjl/protein-systematic-characterization
3ac44d672380490d8e602aa024e40009fdf306b0
[ "MIT" ]
44
2016-08-31T14:58:13.000Z
2017-04-07T19:01:56.000Z
data/Luminometrics/htbayes.py
ericmjl/protein-systematic-characterization
3ac44d672380490d8e602aa024e40009fdf306b0
[ "MIT" ]
1
2016-08-31T14:33:35.000Z
2016-08-31T14:33:35.000Z
# -*- coding: utf-8 -*- """ Created on Wed Nov 30 17:56:58 2016 @author: Vivian Zhong """ import click import pymc3 as pm import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns import logging @click.command() @click.option('--filename', default='data.csv', help='Fi...
35.616216
81
0.591137
# -*- coding: utf-8 -*- """ Created on Wed Nov 30 17:56:58 2016 @author: Vivian Zhong """ import click import pymc3 as pm import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns import logging @click.command() @click.option('--filename', default='data.csv', help='Fi...
900
0
98
6192fb7a57daf01ebdb8110a9977c021054793ab
150
py
Python
python/armstrong.py
lukasjoc/random
5be080b424f02491fb219634902fc0cc192aff6c
[ "0BSD" ]
1
2020-11-09T19:32:43.000Z
2020-11-09T19:32:43.000Z
python/armstrong.py
lukasjoc/random
5be080b424f02491fb219634902fc0cc192aff6c
[ "0BSD" ]
null
null
null
python/armstrong.py
lukasjoc/random
5be080b424f02491fb219634902fc0cc192aff6c
[ "0BSD" ]
null
null
null
#!/usr/local/bin/python3 if __name__ == "__main__": arm(2)
13.636364
28
0.586667
#!/usr/local/bin/python3 def arm(number int) -> bool: for d in number: print(d) return False if __name__ == "__main__": arm(2)
62
0
23
1772f57bf5430988d5b8a92657ecfe7e16777a86
4,324
py
Python
main_2.py
NathanMaton/stargan_single_image
b46837d1dd618bdd68ea4813d2a051df736e7399
[ "MIT" ]
null
null
null
main_2.py
NathanMaton/stargan_single_image
b46837d1dd618bdd68ea4813d2a051df736e7399
[ "MIT" ]
8
2020-11-13T18:52:25.000Z
2022-02-10T01:59:43.000Z
main_2.py
NathanMaton/stargan_single_image
b46837d1dd618bdd68ea4813d2a051df736e7399
[ "MIT" ]
null
null
null
''' TO-DO: GET BETTER RESULTS CLEAN UP THIS CODE TO GET THE SINGLE PROCESSING EASIER TO USE REDO AS A PR TO ORIGINAL REPO ''' import os import argparse from solver import Solver from data_loader import get_loader from torch.backends import cudnn # celeba_loader = get_loader(config.celeba_image_dir, config.attr_path...
30.027778
100
0.624191
''' TO-DO: GET BETTER RESULTS CLEAN UP THIS CODE TO GET THE SINGLE PROCESSING EASIER TO USE REDO AS A PR TO ORIGINAL REPO ''' import os import argparse from solver import Solver from data_loader import get_loader from torch.backends import cudnn # celeba_loader = get_loader(config.celeba_image_dir, config.attr_path...
3,304
-2
95
1ef202fcfbe1e539d7edcd862acda06dba044d6d
1,600
py
Python
openchem/layers/gcn.py
jmhayesesq/Open-Chem
e612d5cd471079c64e61ceda946c3dc7cf095bd8
[ "MIT" ]
466
2018-08-10T04:58:42.000Z
2022-03-29T07:04:39.000Z
openchem/layers/gcn.py
jmhayesesq/Open-Chem
e612d5cd471079c64e61ceda946c3dc7cf095bd8
[ "MIT" ]
15
2019-08-06T08:23:11.000Z
2022-01-23T22:39:52.000Z
openchem/layers/gcn.py
jmhayesesq/Open-Chem
e612d5cd471079c64e61ceda946c3dc7cf095bd8
[ "MIT" ]
91
2018-08-19T00:37:50.000Z
2022-02-27T11:15:31.000Z
# modified from https://github.com/tkipf/pygcn/blob/master/pygcn/layers.py import math import torch import torch.nn as nn from torch.nn.parameter import Parameter class GraphConvolution(nn.Module): """ Simple GCN layer, similar to https://arxiv.org/abs/1609.02907 """
33.333333
77
0.625625
# modified from https://github.com/tkipf/pygcn/blob/master/pygcn/layers.py import math import torch import torch.nn as nn from torch.nn.parameter import Parameter class GraphConvolution(nn.Module): """ Simple GCN layer, similar to https://arxiv.org/abs/1609.02907 """ def __init__(self, in_features,...
1,208
0
107
f4ff0fcd3bec384fcf5b2cfb85a770e9589fe089
80
py
Python
py/authdata-example.py
flopp/safari
d7c8fca838cecbba738a547a8852bf40abed0409
[ "MIT" ]
1
2018-12-09T19:37:05.000Z
2018-12-09T19:37:05.000Z
py/authdata-example.py
flopp/safari
d7c8fca838cecbba738a547a8852bf40abed0409
[ "MIT" ]
9
2015-02-14T20:41:08.000Z
2015-07-25T10:32:35.000Z
py/authdata-example.py
flopp/safari
d7c8fca838cecbba738a547a8852bf40abed0409
[ "MIT" ]
null
null
null
OC_OKAPI_KEY = "xxx" OC_USERNAME = "xxx" OC_PASSWORD = "xxx" OC_QUERYID = "xxx"
16
20
0.7
OC_OKAPI_KEY = "xxx" OC_USERNAME = "xxx" OC_PASSWORD = "xxx" OC_QUERYID = "xxx"
0
0
0
2bcd8e707519ec5796351e2ec38632750a8b4827
2,164
py
Python
tests/system/data_sources/test_teradata.py
ajw0100/professional-services-data-validator
b1dc82adf92adf19702f5ef41590c62c7c128c74
[ "Apache-2.0" ]
167
2021-05-27T19:43:43.000Z
2022-03-16T02:42:30.000Z
tests/system/data_sources/test_teradata.py
ajw0100/professional-services-data-validator
b1dc82adf92adf19702f5ef41590c62c7c128c74
[ "Apache-2.0" ]
110
2021-05-27T14:49:09.000Z
2022-03-31T11:10:41.000Z
tests/system/data_sources/test_teradata.py
ajw0100/professional-services-data-validator
b1dc82adf92adf19702f5ef41590c62c7c128c74
[ "Apache-2.0" ]
32
2021-06-23T22:00:59.000Z
2022-03-30T03:32:20.000Z
# Copyright 2020 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 agreed to in writing, ...
32.298507
77
0.700555
# Copyright 2020 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 agreed to in writing, ...
225
0
23
b770869444f6fb03f601c5c9ff6f8b90df966db3
2,065
py
Python
tf/mnist_test.py
skolchin/gbr
3ec4b72e0352d36f38f5cd5815b69fac0b7a3e9c
[ "MIT" ]
29
2019-10-10T22:51:55.000Z
2022-03-09T05:57:59.000Z
tf/mnist_test.py
skolchin/gbr
3ec4b72e0352d36f38f5cd5815b69fac0b7a3e9c
[ "MIT" ]
1
2020-12-07T06:51:50.000Z
2020-12-08T16:59:20.000Z
tf/mnist_test.py
skolchin/gbr
3ec4b72e0352d36f38f5cd5815b69fac0b7a3e9c
[ "MIT" ]
11
2020-12-09T01:44:38.000Z
2022-03-20T17:40:02.000Z
#------------------------------------------------------------------------------- # Name: MNIST TensorFlow example # Purpose: Experiments with TensorFlow # # Author: kol # # Created: 09.01.2020 # Copyright: (c) kol 2020 #------------------------------------------------------------------------------...
27.533333
80
0.582567
#------------------------------------------------------------------------------- # Name: MNIST TensorFlow example # Purpose: Experiments with TensorFlow # # Author: kol # # Created: 09.01.2020 # Copyright: (c) kol 2020 #------------------------------------------------------------------------------...
446
0
23
e40e9d7f20ea238e67e6d5c2573d672e7aa05b32
3,321
py
Python
ivy_mech_tests/test_orientation/orientation_data.py
unifyai/mech
d678c8732ee5aba4a92fb37b96519cd06553c0c6
[ "Apache-2.0" ]
1
2021-10-11T17:58:41.000Z
2021-10-11T17:58:41.000Z
ivy_mech_tests/test_orientation/orientation_data.py
ivy-dl/mech
f3ce5f7b38fe2c453a066f58019ff84dcee517a6
[ "Apache-2.0" ]
null
null
null
ivy_mech_tests/test_orientation/orientation_data.py
ivy-dl/mech
f3ce5f7b38fe2c453a066f58019ff84dcee517a6
[ "Apache-2.0" ]
null
null
null
""" test data for orientation functions """ # global import numpy as np
40.5
109
0.563686
""" test data for orientation functions """ # global import numpy as np class OrientationTestData: def __init__(self): # axis axis = np.array([[1., 2., 3.]]) self.axis = axis / np.linalg.norm(axis) self.batched_axis = np.expand_dims(self.axis, 0) # angle self.ang...
3,192
5
50
4ac0c80fe1d17851b9d6ffc3e6a8d25148170948
137
py
Python
titan/api_pkg/formtype/resources.py
mnieber/gen
65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9
[ "MIT" ]
null
null
null
titan/api_pkg/formtype/resources.py
mnieber/gen
65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9
[ "MIT" ]
null
null
null
titan/api_pkg/formtype/resources.py
mnieber/gen
65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9
[ "MIT" ]
null
null
null
from dataclasses import dataclass from moonleap import Resource @dataclass
13.7
33
0.766423
from dataclasses import dataclass from moonleap import Resource @dataclass class FormType(Resource): name: str type_name: str
0
37
22
3374968f5ffa11f472f968bd304b1ae949911373
1,805
py
Python
drf_integrations/utils.py
yoyowallet/drf-integrations-framework
7cf5cd28e5aff80c9b1a34b461294f4bd3108fa9
[ "MIT" ]
1
2020-07-09T11:39:19.000Z
2020-07-09T11:39:19.000Z
drf_integrations/utils.py
yoyowallet/drf-integrations-framework
7cf5cd28e5aff80c9b1a34b461294f4bd3108fa9
[ "MIT" ]
5
2020-07-08T11:00:26.000Z
2021-01-13T09:33:09.000Z
drf_integrations/utils.py
yoyowallet/drf-integrations-framework
7cf5cd28e5aff80c9b1a34b461294f4bd3108fa9
[ "MIT" ]
2
2021-08-12T12:23:54.000Z
2021-09-20T06:45:38.000Z
from typing import Any, Iterable, Iterator, List, Optional, Union AnyString = Union[str, Iterable[Any]] def split_string(string: Optional[AnyString], separator: str = ",") -> List[str]: """ Breaks given *string* by the specified *separator*. If *string* is a non-``str`` iterable, then return a list if i...
31.12069
90
0.60831
from typing import Any, Iterable, Iterator, List, Optional, Union AnyString = Union[str, Iterable[Any]] def split_string(string: Optional[AnyString], separator: str = ",") -> List[str]: """ Breaks given *string* by the specified *separator*. If *string* is a non-``str`` iterable, then return a list if i...
0
0
0
861242ea84f9b5b122ec9897c57092bfc93096a8
22,227
py
Python
pymtl/tools/translation/verilator_cffi.py
belang/pymtl
4a96738724b007cbd684753aed0ac3de5b5dbebb
[ "BSD-3-Clause" ]
206
2015-01-05T21:53:56.000Z
2022-03-14T08:04:49.000Z
pymtl/tools/translation/verilator_cffi.py
belang/pymtl
4a96738724b007cbd684753aed0ac3de5b5dbebb
[ "BSD-3-Clause" ]
84
2015-01-25T19:57:33.000Z
2021-05-11T15:46:56.000Z
pymtl/tools/translation/verilator_cffi.py
belang/pymtl
4a96738724b007cbd684753aed0ac3de5b5dbebb
[ "BSD-3-Clause" ]
99
2015-02-17T17:43:44.000Z
2022-02-14T17:58:18.000Z
#======================================================================= # verilator_cffi.py #======================================================================= from __future__ import print_function import os import shutil import verilog_structural from ...tools.simulation.vcd import get_vcd_timescale from sub...
33.728376
88
0.587394
#======================================================================= # verilator_cffi.py #======================================================================= from __future__ import print_function import os import shutil import verilog_structural from ...tools.simulation.vcd import get_vcd_timescale from sub...
16,982
0
294
ecf2ad1014ba580179cdf2f557a5ed584afa8446
3,595
py
Python
vmaig_blog/urls.py
wangsure/czxs
e45e2ffde1597cb5a41d5fb46818805a1fa0d848
[ "BSD-3-Clause" ]
null
null
null
vmaig_blog/urls.py
wangsure/czxs
e45e2ffde1597cb5a41d5fb46818805a1fa0d848
[ "BSD-3-Clause" ]
null
null
null
vmaig_blog/urls.py
wangsure/czxs
e45e2ffde1597cb5a41d5fb46818805a1fa0d848
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import include, url from django.contrib.sitemaps.views import sitemap from django.contrib.sitemaps import FlatPageSitemap, GenericSitemap, Sitemap from django.core.urlresolvers import reverse from django.contrib import admin from blog.models import Article, News, Category, Column from demoprojec...
37.447917
115
0.606954
from django.conf.urls import include, url from django.contrib.sitemaps.views import sitemap from django.contrib.sitemaps import FlatPageSitemap, GenericSitemap, Sitemap from django.core.urlresolvers import reverse from django.contrib import admin from blog.models import Article, News, Category, Column from demoprojec...
71
110
22
63789201d86443209329b9776585583fa421912b
2,010
py
Python
luigi/contrib/sparkey.py
shouldsee/luigi
54a347361ae1031f06105eaf30ff88f5ef65b00c
[ "Apache-2.0" ]
5
2015-02-26T18:52:56.000Z
2017-07-07T05:47:18.000Z
luigi/contrib/sparkey.py
shouldsee/luigi
54a347361ae1031f06105eaf30ff88f5ef65b00c
[ "Apache-2.0" ]
9
2017-03-22T23:38:48.000Z
2019-01-28T21:13:06.000Z
luigi/contrib/sparkey.py
shouldsee/luigi
54a347361ae1031f06105eaf30ff88f5ef65b00c
[ "Apache-2.0" ]
9
2015-01-26T14:47:57.000Z
2020-07-07T17:01:25.000Z
# -*- coding: utf-8 -*- # # Copyright 2012-2015 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...
31.40625
100
0.685075
# -*- coding: utf-8 -*- # # Copyright 2012-2015 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...
705
0
81
ff451b4287664bcebaa07ec7328aecbf9cc1c8c2
2,639
py
Python
epytope/Data/pssms/smm/mat/A_23_01_11.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
7
2021-02-01T18:11:28.000Z
2022-01-31T19:14:07.000Z
epytope/Data/pssms/smm/mat/A_23_01_11.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
22
2021-01-02T15:25:23.000Z
2022-03-14T11:32:53.000Z
epytope/Data/pssms/smm/mat/A_23_01_11.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
4
2021-05-28T08:50:38.000Z
2022-03-14T11:45:32.000Z
A_23_01_11 = {0: {'A': 0.076, 'C': 0.036, 'E': 0.046, 'D': -0.002, 'G': 0.043, 'F': -0.067, 'I': 0.002, 'H': 0.011, 'K': 0.104, 'M': -0.205, 'L': -0.209, 'N': -0.039, 'Q': 0.186, 'P': 0.065, 'S': 0.074, 'R': -0.03, 'T': 0.087, 'W': 0.0, 'V': -0.11, 'Y': -0.068}, 1: {'A': 0.014, 'C': 0.002, 'E': 0.031, 'D': -0.004, 'G':...
2,639
2,639
0.360743
A_23_01_11 = {0: {'A': 0.076, 'C': 0.036, 'E': 0.046, 'D': -0.002, 'G': 0.043, 'F': -0.067, 'I': 0.002, 'H': 0.011, 'K': 0.104, 'M': -0.205, 'L': -0.209, 'N': -0.039, 'Q': 0.186, 'P': 0.065, 'S': 0.074, 'R': -0.03, 'T': 0.087, 'W': 0.0, 'V': -0.11, 'Y': -0.068}, 1: {'A': 0.014, 'C': 0.002, 'E': 0.031, 'D': -0.004, 'G':...
0
0
0
8805847efb84b9182830f2db109cdf8df06405a3
727
py
Python
echome/identity.py
mgtrrz/echome-python-sdk
c169510cb801ff3144cc746b96726cb2b535f9fd
[ "MIT" ]
1
2022-01-31T19:35:14.000Z
2022-01-31T19:35:14.000Z
echome/identity.py
mgtrrz/echome-python-sdk
c169510cb801ff3144cc746b96726cb2b535f9fd
[ "MIT" ]
1
2021-09-26T01:40:30.000Z
2021-09-26T01:40:30.000Z
echome/identity.py
mgtrrz/echome-python-sdk
c169510cb801ff3144cc746b96726cb2b535f9fd
[ "MIT" ]
null
null
null
import logging from .resource import BaseResource logger = logging.getLogger(__name__)
29.08
61
0.661623
import logging from .resource import BaseResource logger = logging.getLogger(__name__) class Identity(BaseResource): namespace = "identity/user" def describe_all_users(self): return self.request_url("/describe/all") def describe_user(self, user_id:str): return self.request_url(f"/des...
425
191
23
c5ef3ffd9fd787999fffa6497ba9c887822e5121
949
py
Python
core/forms.py
programecompedro/django-testes
12af91a8d175779be86c87fd12d07df0e2de214c
[ "Unlicense" ]
null
null
null
core/forms.py
programecompedro/django-testes
12af91a8d175779be86c87fd12d07df0e2de214c
[ "Unlicense" ]
null
null
null
core/forms.py
programecompedro/django-testes
12af91a8d175779be86c87fd12d07df0e2de214c
[ "Unlicense" ]
null
null
null
from django import forms from django.core.mail.message import EmailMessage from django.forms.widgets import Textarea
36.5
90
0.646997
from django import forms from django.core.mail.message import EmailMessage from django.forms.widgets import Textarea class ContatoForm(forms.Form): nome = forms.CharField(label="Nome", max_length=100) email = forms.CharField(label="E-mail", max_length=100) assunto = forms.CharField(label="Assunto", max_len...
520
290
23