hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
78bdec4c27e3a76ab38ab92303fab613828aef61
1,801
py
Python
assembler.py
Solomon1999/kivystudio
1eeee68b1437bf4d26f6bb222dc6c127ca67ee58
[ "MIT" ]
1
2020-02-18T17:41:07.000Z
2020-02-18T17:41:07.000Z
assembler.py
Solomon1999/kivystudio
1eeee68b1437bf4d26f6bb222dc6c127ca67ee58
[ "MIT" ]
null
null
null
assembler.py
Solomon1999/kivystudio
1eeee68b1437bf4d26f6bb222dc6c127ca67ee58
[ "MIT" ]
null
null
null
from kivy.uix.boxlayout import BoxLayout from kivy.core.window import Window from kivy.clock import Clock import os import sys import traceback from kivystudio.parser import emulate_file from kivystudio.widgets.filemanager import filemanager from kivystudio.components.screens import AndroidPhoneScreen from kivystud...
26.880597
82
0.755136
266
1,801
4.917293
0.319549
0.085627
0.110092
0.061162
0.199541
0.144495
0.082569
0
0
0
0
0.012862
0.136591
1,801
66
83
27.287879
0.828296
0.084953
0
0.047619
0
0
0.037782
0
0
0
0
0
0
1
0.071429
false
0.047619
0.333333
0
0.428571
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
78bed793811d9608509d254efaf501b16da3fb54
13,297
py
Python
imagetyperzapi2/imagetyperzapi.py
imagetyperz/bypasscaptcha
a79f20c7f903d1bacf27abbaa64767a77933d193
[ "MIT" ]
null
null
null
imagetyperzapi2/imagetyperzapi.py
imagetyperz/bypasscaptcha
a79f20c7f903d1bacf27abbaa64767a77933d193
[ "MIT" ]
null
null
null
imagetyperzapi2/imagetyperzapi.py
imagetyperz/bypasscaptcha
a79f20c7f903d1bacf27abbaa64767a77933d193
[ "MIT" ]
null
null
null
# Imagetyperz captcha API # ----------------------- # requests lib try: from requests import session except: raise Exception('requests package not installed, try with: \'pip2.7 install requests\'') import os from base64 import b64encode # endpoints # -----------------------------------------------------------...
38.766764
123
0.581109
1,463
13,297
5.090226
0.146275
0.038673
0.029542
0.023499
0.477776
0.419901
0.383242
0.356922
0.34524
0.306298
0
0.003859
0.298488
13,297
342
124
38.880117
0.79449
0.212905
0
0.452489
0
0
0.13682
0
0
0
0
0
0
0
null
null
0.036199
0.013575
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
78c80ceba1f3ba75f20d999eaee8fdd28849d2f5
1,708
py
Python
02/premier.py
alexprengere/PythonExercises
08ec40ece8010dc94c10ee62689cbbc8f673f4cf
[ "Apache-2.0" ]
23
2016-05-09T12:17:59.000Z
2022-01-15T20:20:18.000Z
02/premier.py
alexprengere/PythonExercises
08ec40ece8010dc94c10ee62689cbbc8f673f4cf
[ "Apache-2.0" ]
1
2016-05-10T11:34:13.000Z
2016-09-15T07:45:55.000Z
02/premier.py
alexprengere/PythonExercises
08ec40ece8010dc94c10ee62689cbbc8f673f4cf
[ "Apache-2.0" ]
7
2017-08-22T18:49:50.000Z
2022-02-10T08:43:00.000Z
#!/usr/bin/env python import sys def is_prime(n): """Returns True is n is prime, False otherwise. >>> is_prime(4) False >>> is_prime(7) True """ if n <= 1: return False for i in xrange(2, n): if n % i == 0: # i divides n, n is not prime ...
22.473684
72
0.502927
245
1,708
3.416327
0.297959
0.100358
0.081243
0.075269
0
0
0
0
0
0
0
0.030109
0.358314
1,708
75
73
22.773333
0.733577
0.111241
0
0.058824
0
0
0.091076
0
0
0
0
0
0
0
null
null
0
0.058824
null
null
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
78cb15b59cd1908071188b45021130f2c88ed6c4
1,954
py
Python
yeast_ubi/gpmdb_ptm_bot.py
RonBeavis/StandardsAndPractices
0a3dafce9befdccc46055ae2d0b9bc6a14b4e838
[ "Apache-2.0" ]
null
null
null
yeast_ubi/gpmdb_ptm_bot.py
RonBeavis/StandardsAndPractices
0a3dafce9befdccc46055ae2d0b9bc6a14b4e838
[ "Apache-2.0" ]
null
null
null
yeast_ubi/gpmdb_ptm_bot.py
RonBeavis/StandardsAndPractices
0a3dafce9befdccc46055ae2d0b9bc6a14b4e838
[ "Apache-2.0" ]
null
null
null
# # Copyright © 2021 Ronald C. Beavis # Licensed under Apache License, Version 2.0, January 2004 # # Takes a list of protein accession numbers in a file and generates # a list of lysine residues that have been observed with ubiquitination # and the number of times the ubiquitination has been observed. import sys impo...
26.053333
96
0.717503
318
1,954
4.371069
0.41195
0.028777
0.015108
0.033094
0.215827
0.215827
0.178417
0.178417
0.178417
0.178417
0
0.013699
0.178096
1,954
74
97
26.405405
0.851183
0.404811
0
0.44
1
0.02
0.11986
0
0
0
0
0
0
1
0.04
false
0
0.1
0
0.26
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
151ed15536751bbe5fee058cf0d42b58770d67eb
3,272
py
Python
partners_histo.py
ccicconetti/cordis-scripts
4a7a6e04506c036e0e1a8f67ea7963bfbe197cd5
[ "Apache-2.0" ]
2
2019-05-01T21:49:49.000Z
2021-02-03T11:57:01.000Z
partners_histo.py
ccicconetti/cordis-scripts
4a7a6e04506c036e0e1a8f67ea7963bfbe197cd5
[ "Apache-2.0" ]
null
null
null
partners_histo.py
ccicconetti/cordis-scripts
4a7a6e04506c036e0e1a8f67ea7963bfbe197cd5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import csv import argparse parser = argparse.ArgumentParser( description='Parse the H2020 cordis csv file and produce statistics about participants', formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument("--input", type=str, default='cordis-h2020proj...
38.952381
92
0.577934
395
3,272
4.708861
0.301266
0.033871
0.063978
0.035484
0.289247
0.280645
0.208065
0.208065
0.136559
0.136559
0
0.019845
0.291565
3,272
83
93
39.421687
0.782571
0.00489
0
0.226667
0
0
0.171736
0.007373
0
0
0
0
0
0
null
null
0
0.026667
null
null
0.053333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1523f5ce350de8c110fa6297a230bd5d4130c772
860
py
Python
src/base/exceptions.py
system-design-2/user-service
5bf71e15d7c0969bac55a0e53298711877b02aa1
[ "MIT" ]
null
null
null
src/base/exceptions.py
system-design-2/user-service
5bf71e15d7c0969bac55a0e53298711877b02aa1
[ "MIT" ]
null
null
null
src/base/exceptions.py
system-design-2/user-service
5bf71e15d7c0969bac55a0e53298711877b02aa1
[ "MIT" ]
null
null
null
from rest_framework import exceptions, status from rest_framework.views import Response, exception_handler def custom_exception_handler(exc, context): # Call REST framework's default exception handler first to get the standard error response. response = exception_handler(exc, context) # if there is an In...
34.4
96
0.768605
107
860
6.009346
0.551402
0.099533
0.052877
0.080871
0
0
0
0
0
0
0
0.01257
0.167442
860
24
97
35.833333
0.885475
0.2
0
0
0
0
0.112409
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
152448999ca1e36ecb5e1ce6ed061ef2b803f8e2
2,976
py
Python
Round 1B/fair-fight2.py
enigma-pattern/GoogleCodeJam-2019
558c57209a90319d31da13a58f8da60ca56d9f0a
[ "MIT" ]
54
2019-04-07T06:19:19.000Z
2022-01-19T10:58:00.000Z
Round 1B/fair-fight2.py
Escapist-007/GoogleCodeJam-2019
bfa4f2a9585c710f3bbc176b9f8aa4d2ee0a4ce4
[ "MIT" ]
1
2019-06-02T18:20:30.000Z
2019-06-02T18:40:32.000Z
Round 1B/fair-fight2.py
Escapist-007/GoogleCodeJam-2019
bfa4f2a9585c710f3bbc176b9f8aa4d2ee0a4ce4
[ "MIT" ]
21
2019-04-10T04:32:03.000Z
2021-07-22T22:38:53.000Z
# Copyright (c) 2019 kamyu. All rights reserved. # # Google Code Jam 2019 Round 1B - Problem C. Fair Fight # https://codingcompetitions.withgoogle.com/codejam/round/0000000000051706/0000000000122838 # # Time: O(NlogN), pass in PyPy2 but Python2 # Space: O(NlogN) # import collections import itertools class RangeQuery...
37.2
101
0.550403
466
2,976
3.317597
0.244635
0.041397
0.033635
0.036223
0.371928
0.35511
0.30401
0.271669
0.271669
0.271669
0
0.042543
0.297043
2,976
79
102
37.670886
0.696463
0.122312
0
0.193548
0
0
0.004619
0
0
0
0
0
0
0
null
null
0
0.032258
null
null
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
152968298e7bfd6ee6f5cb6e08376111302a968a
338
py
Python
UserAuthentication/starter_code_4_views/src/core/forms.py
johangenis/intermediate-django-concepts
3f7d4cc5a988727fc8dad52d6ac47d43214c93a5
[ "MIT" ]
null
null
null
UserAuthentication/starter_code_4_views/src/core/forms.py
johangenis/intermediate-django-concepts
3f7d4cc5a988727fc8dad52d6ac47d43214c93a5
[ "MIT" ]
null
null
null
UserAuthentication/starter_code_4_views/src/core/forms.py
johangenis/intermediate-django-concepts
3f7d4cc5a988727fc8dad52d6ac47d43214c93a5
[ "MIT" ]
null
null
null
from django import forms # from django.conf import settings from django.contrib.auth import get_user_model # settings.AUTH_USER_MODEL User = get_user_model() class UserRegisterForm(forms.ModelForm): class Meta: model = User fields = [ "username", "email", "pas...
18.777778
46
0.62426
37
338
5.540541
0.513514
0.146341
0.117073
0
0
0
0
0
0
0
0
0
0.295858
338
17
47
19.882353
0.861345
0.168639
0
0
0
0
0.07554
0
0
0
0
0
0
1
0
false
0.090909
0.181818
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
152d64440c0272183d569b32ecc46ce5a6a3a3e8
319
py
Python
bluebottle/follow/admin.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/follow/admin.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/follow/admin.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
from django.contrib.contenttypes.admin import GenericTabularInline from bluebottle.follow.models import Follow class FollowAdminInline(GenericTabularInline): model = Follow ct_fk_field = "instance_id" readonly_fields = ['created', 'user'] fields = readonly_fields extra = 0 can_delete = True
24.538462
66
0.752351
35
319
6.685714
0.771429
0.119658
0
0
0
0
0
0
0
0
0
0.003802
0.175549
319
12
67
26.583333
0.885932
0
0
0
0
0
0.068966
0
0
0
0
0
0
1
0
false
0
0.222222
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
152f9fcc367d3f8eec8505e9262c706850a9b3df
420
py
Python
src/connectivity/overnet/lib/stats/link.py
bootingman/fuchsia2
04012f0aa1edd1d4108a2ac647a65e59730fc4c2
[ "BSD-3-Clause" ]
1
2019-10-09T10:50:57.000Z
2019-10-09T10:50:57.000Z
src/connectivity/overnet/lib/stats/link.py
bootingman/fuchsia2
04012f0aa1edd1d4108a2ac647a65e59730fc4c2
[ "BSD-3-Clause" ]
null
null
null
src/connectivity/overnet/lib/stats/link.py
bootingman/fuchsia2
04012f0aa1edd1d4108a2ac647a65e59730fc4c2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import statsc statsc.compile( name='Link', include='src/connectivity/overnet/lib/stats/link.h', stats = [ statsc.C...
24.705882
72
0.702381
59
420
4.932203
0.79661
0.089347
0.116838
0
0
0
0
0
0
0
0
0.01173
0.188095
420
16
73
26.25
0.841642
0.416667
0
0
0
0
0.360996
0.344398
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1532a72fc1c99b385fdebbcfc8e9c6f245e656a1
465
py
Python
read_file_names.py
rajatagarwal/Filtered_Copy_Paste
8ab2300eea36ecc05d50733a9710b7c0fca37cf9
[ "MIT" ]
null
null
null
read_file_names.py
rajatagarwal/Filtered_Copy_Paste
8ab2300eea36ecc05d50733a9710b7c0fca37cf9
[ "MIT" ]
null
null
null
read_file_names.py
rajatagarwal/Filtered_Copy_Paste
8ab2300eea36ecc05d50733a9710b7c0fca37cf9
[ "MIT" ]
null
null
null
from os import walk from shutil import copyfile # To get list of files names in the "text" file f = [] external_disk_path = '/Volumes/My Passport/XXXX' for (dir_path, dir_names, file_names) in walk(external_disk_path): f.extend(file_names) break print("File names to be copied:") print(file_names) destination_file ...
24.473684
66
0.76129
76
465
4.460526
0.539474
0.132743
0.094395
0.141593
0
0
0
0
0
0
0
0
0.124731
465
19
67
24.473684
0.832924
0.096774
0
0
0
0
0.171838
0
0
0
0
0
0
1
0
false
0.071429
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1537166697903c99e1d2795d4eece249fd13596f
1,695
py
Python
part3/webapp/final/pypi_web_mongodb_f/pypi_web_mongodb/services/user_service.py
israelrico007/build-pypi-mongodb-webcast-series
b5960e2619ba4527e27cdb8e6efd7de2bb6c7448
[ "MIT" ]
25
2018-05-30T18:03:35.000Z
2021-11-27T19:03:16.000Z
part3/webapp/final/pypi_web_mongodb_f/pypi_web_mongodb/services/user_service.py
israelrico007/build-pypi-mongodb-webcast-series
b5960e2619ba4527e27cdb8e6efd7de2bb6c7448
[ "MIT" ]
3
2018-10-18T11:08:32.000Z
2019-12-26T16:42:26.000Z
part3/webapp/final/pypi_web_mongodb_f/pypi_web_mongodb/services/user_service.py
israelrico007/build-pypi-mongodb-webcast-series
b5960e2619ba4527e27cdb8e6efd7de2bb6c7448
[ "MIT" ]
10
2018-05-30T18:03:49.000Z
2021-11-27T19:03:19.000Z
from typing import Optional from passlib.handlers.sha2_crypt import sha512_crypt from pypi_web_mongodb.data.users import User def user_count() -> int: return User.objects().count() def user_by_id(user_id) -> Optional[User]: return User.objects().filter(id=user_id).first() def user_by_email(email: str) ->...
25.681818
91
0.701475
239
1,695
4.769874
0.238494
0.078947
0.119298
0.070175
0.275439
0.275439
0.275439
0.275439
0.275439
0.275439
0
0.011756
0.19705
1,695
65
92
26.076923
0.825863
0
0
0.333333
0
0
0.043068
0
0
0
0
0
0
1
0.166667
false
0.190476
0.071429
0.071429
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
153fded7745e852f349294be5f79f24c342bb4f9
1,872
py
Python
custom_components/citymind_water_meter/managers/configuration_manager.py
elad-bar/citymind_water_meter
c1863c50ba3d8e9874e55a5a0c43d8f970b008cd
[ "Apache-2.0" ]
17
2020-07-17T13:50:48.000Z
2022-03-25T22:10:17.000Z
custom_components/citymind_water_meter/managers/configuration_manager.py
elad-bar/citymind_water_meter
c1863c50ba3d8e9874e55a5a0c43d8f970b008cd
[ "Apache-2.0" ]
17
2020-07-14T00:09:42.000Z
2021-12-11T22:19:58.000Z
custom_components/citymind_water_meter/managers/configuration_manager.py
elad-bar/citymind_water_meter
c1863c50ba3d8e9874e55a5a0c43d8f970b008cd
[ "Apache-2.0" ]
7
2020-07-31T10:39:09.000Z
2021-12-11T13:54:25.000Z
from typing import Optional from homeassistant.config_entries import ConfigEntry from ..helpers.const import ( CONF_LOG_LEVEL, CONF_PASSWORD, CONF_USERNAME, LOG_LEVEL_DEFAULT, ) from ..models.config_data import ConfigData from .password_manager import PasswordManager class ConfigManager: data: C...
27.130435
75
0.659188
212
1,872
5.561321
0.254717
0.089059
0.064461
0.039016
0
0
0
0
0
0
0
0.000737
0.275641
1,872
68
76
27.529412
0.868732
0
0
0.081633
0
0
0
0
0
0
0
0
0
1
0.061224
false
0.244898
0.102041
0
0.306122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
154492c3d4c397129edb81054a61bcb77f7822dc
2,406
py
Python
author/views.py
IanSeng/CMPUT404_PROJECT
80acd2c57de4b091e0e66ad9f5f2df17801bf09e
[ "W3C-20150513" ]
null
null
null
author/views.py
IanSeng/CMPUT404_PROJECT
80acd2c57de4b091e0e66ad9f5f2df17801bf09e
[ "W3C-20150513" ]
null
null
null
author/views.py
IanSeng/CMPUT404_PROJECT
80acd2c57de4b091e0e66ad9f5f2df17801bf09e
[ "W3C-20150513" ]
null
null
null
from rest_framework import generics, authentication, permissions from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.exceptions import ValidationError, AuthenticationFailed from rest_framework.authtoken.models import Token from rest_framework.response import Response from rest_framework impor...
39.442623
116
0.720698
250
2,406
6.784
0.372
0.028302
0.060142
0.049528
0.272406
0.272406
0.231132
0.231132
0.191038
0.191038
0
0.004642
0.194098
2,406
60
117
40.1
0.870036
0.057772
0
0.181818
0
0
0.0561
0
0
0
0
0
0
1
0.068182
false
0
0.204545
0
0.681818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1544b4914d12fdf8741f4919423793c9546b5c94
886
py
Python
src/web/pager.py
dzca/net-audit
d99a11b2203c758b9c77af3e40fcc2928fa4232c
[ "MIT" ]
null
null
null
src/web/pager.py
dzca/net-audit
d99a11b2203c758b9c77af3e40fcc2928fa4232c
[ "MIT" ]
null
null
null
src/web/pager.py
dzca/net-audit
d99a11b2203c758b9c77af3e40fcc2928fa4232c
[ "MIT" ]
null
null
null
#!/usr/bin/python class Pager: def __init__(self, size, count, page): self.size = size self.count = count self.pages = self._init_pages() self.page = page def _init_pages(self): pages = self.count/self.size mod_of_pages = self.count%self.size if ...
21.609756
43
0.509029
104
886
4.221154
0.221154
0.123007
0.095672
0.082005
0.100228
0
0
0
0
0
0
0.013283
0.405192
886
41
44
21.609756
0.819734
0.018059
0
0.294118
0
0
0
0
0
0
0
0
0
1
0.205882
false
0
0
0.088235
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
15461ae7077d4c8c85fe42be64a10a68ef198582
723
py
Python
100-Exercicios/ex017.py
thedennerdev/ExerciciosPython-Iniciante
de36c4a09700353a9a1daa7f1320e416c6201a5c
[ "MIT" ]
null
null
null
100-Exercicios/ex017.py
thedennerdev/ExerciciosPython-Iniciante
de36c4a09700353a9a1daa7f1320e416c6201a5c
[ "MIT" ]
null
null
null
100-Exercicios/ex017.py
thedennerdev/ExerciciosPython-Iniciante
de36c4a09700353a9a1daa7f1320e416c6201a5c
[ "MIT" ]
null
null
null
#Faça um programa que leia o comprimento do cateto oposto e do cateto adjacente de um triângulo retângulo. #Calcule e mostre o comprimento da hipotenusa. """co = float(input('Valor cateto oposto: ')) ca = float(input('valor cateto adjacente: ')) hi = (co ** 2 + ca ** 2) ** (1/2) print('O valor da hipotenusa é {:.2f}'....
38.052632
106
0.683264
114
723
4.333333
0.324561
0.121457
0.121457
0.17004
0.609312
0.609312
0.475709
0.475709
0.392713
0.255061
0
0.011419
0.152144
723
19
107
38.052632
0.794454
0.448133
0
0
0
0
0.40625
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
15490af09a7b1ec83e952362343470ca7bd62dc5
662
py
Python
exercises/0389-FindTheDifference/find_the_difference_test.py
tqa236/leetcode-solutions
556147981c43509a6e8a7f59f138d1ab027ebfd1
[ "MIT" ]
1
2020-09-26T15:09:25.000Z
2020-09-26T15:09:25.000Z
exercises/0389-FindTheDifference/find_the_difference_test.py
tqa236/leetcode-solutions
556147981c43509a6e8a7f59f138d1ab027ebfd1
[ "MIT" ]
null
null
null
exercises/0389-FindTheDifference/find_the_difference_test.py
tqa236/leetcode-solutions
556147981c43509a6e8a7f59f138d1ab027ebfd1
[ "MIT" ]
null
null
null
import random import string import unittest from find_the_difference import Solution from hypothesis import given from hypothesis.strategies import text class Test(unittest.TestCase): def test_1(self): solution = Solution() self.assertEqual(solution.findTheDifference("abcd", "abcde"), "e") @...
24.518519
74
0.679758
78
662
5.564103
0.461538
0.082949
0.105991
0.184332
0
0
0
0
0
0
0
0.001919
0.212991
662
26
75
25.461538
0.831094
0
0
0.1
0
0
0.02719
0
0
0
0
0
0.1
1
0.1
false
0
0.3
0
0.45
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
154b5a942b538a2d4b4c6f56cceda66eeff09443
3,890
py
Python
src/load_data.py
agalbachicar/swing_for_the_fences
3871e88884a90e5c9dd80d71b20b811485007273
[ "BSD-3-Clause" ]
null
null
null
src/load_data.py
agalbachicar/swing_for_the_fences
3871e88884a90e5c9dd80d71b20b811485007273
[ "BSD-3-Clause" ]
null
null
null
src/load_data.py
agalbachicar/swing_for_the_fences
3871e88884a90e5c9dd80d71b20b811485007273
[ "BSD-3-Clause" ]
null
null
null
import os import logging import json import pandas as pd def data_paths_from_periodicity(periodicity): if periodicity == 'hourly': return ['../datasets/bitstamp_data_hourly.csv'] elif periodicity == 'daily': return ['../datasets/bitstamp_data_daily.csv'] return ['../datasets/bitstamp_data....
38.9
113
0.607455
487
3,890
4.655031
0.285421
0.049405
0.061756
0.050728
0.382885
0.323776
0.308778
0.282311
0.282311
0.282311
0
0.008439
0.268895
3,890
99
114
39.292929
0.788678
0.104627
0
0.166667
0
0
0.18415
0.127954
0
0
0
0.010101
0
1
0.152778
false
0
0.055556
0.069444
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1551acc19a06389b1d58c433c4d91eec2e82167e
3,293
py
Python
pysparktestingexample/tests/test_udf_dict_arg.py
zhangabner/pyspark-debug-test
e79ab5f1784900b28b0625badd0cec77c4503071
[ "CNRI-Python" ]
null
null
null
pysparktestingexample/tests/test_udf_dict_arg.py
zhangabner/pyspark-debug-test
e79ab5f1784900b28b0625badd0cec77c4503071
[ "CNRI-Python" ]
null
null
null
pysparktestingexample/tests/test_udf_dict_arg.py
zhangabner/pyspark-debug-test
e79ab5f1784900b28b0625badd0cec77c4503071
[ "CNRI-Python" ]
null
null
null
import pytest import pyspark.sql.functions as F from pyspark.sql.types import * # @F.udf(returnType=StringType()) # def state_abbreviation(s, mapping): # if s is not None: # return mapping[s] # def test_udf_dict_failure(spark): # df = spark.createDataFrame([ # ['Alabama',], # ['Texas...
28.387931
123
0.626784
405
3,293
4.928395
0.301235
0.04008
0.03006
0.067635
0.191884
0.16984
0.143788
0.131764
0.131764
0.118236
0
0.007553
0.19587
3,293
115
124
28.634783
0.746224
0.721227
0
0
0
0
0.024941
0
0
0
0
0
0
1
0.2
false
0
0.2
0.066667
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
155239b9ebb15efb8376ead76a3ce2965c3afb5e
5,653
py
Python
create_art_cluster_DAO.py
tbitsakis/astro_projects
7453512779467d264b1455756d24e3d46409218d
[ "MIT" ]
2
2018-09-27T07:47:56.000Z
2018-09-27T07:48:02.000Z
create_art_cluster_DAO.py
tbitsakis/astro_projects
7453512779467d264b1455756d24e3d46409218d
[ "MIT" ]
null
null
null
create_art_cluster_DAO.py
tbitsakis/astro_projects
7453512779467d264b1455756d24e3d46409218d
[ "MIT" ]
null
null
null
#! /usr/bin/python ''' = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = PURPOSE: The code creates artificial clusters from the theoretical isochrones of Bruzual&Charlot and then saves a table that will be used as an input for DAOPHOT>addstar to create an artifici...
38.455782
134
0.53989
613
5,653
4.88907
0.401305
0.035035
0.024024
0.010677
0.154154
0.144811
0.122122
0.086086
0.086086
0.086086
0
0.020361
0.157262
5,653
146
135
38.719178
0.608732
0.194941
0
0.04
0
0.04
0.278057
0.087102
0
0
0
0
0
0
null
null
0
0.08
null
null
0.106667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1558d9229a4cfcfdb81312d3b02873600598e961
6,694
py
Python
agent/consul_api.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
6
2016-10-10T09:26:07.000Z
2018-09-20T08:59:42.000Z
agent/consul_api.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
11
2016-10-10T12:11:07.000Z
2018-05-09T22:11:02.000Z
agent/consul_api.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
16
2016-09-28T16:00:58.000Z
2019-02-25T16:52:12.000Z
# Copyright (c) Trainline Limited, 2016-2017. All rights reserved. See LICENSE.txt in the project root for license information. import base64, json, logging, requests from retrying import retry class ConsulError(RuntimeError): pass def handle_connection_error(func): def handle_error(*args, **kwargs): ...
50.330827
188
0.671497
880
6,694
4.902273
0.215909
0.061196
0.054242
0.026426
0.471256
0.433704
0.389198
0.341215
0.330088
0.2879
0
0.02088
0.205856
6,694
132
189
50.712121
0.790632
0.046758
0
0.302752
0
0
0.191813
0.007528
0
0
0
0.007576
0
1
0.201835
false
0.009174
0.018349
0.027523
0.422018
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
15619638424fb44f4247dcbc74840b388a9f9cf3
849
py
Python
test-unit/PythonToJavascript/converters_test/DecoratorConverter_test.py
stoogoff/python-to-javascript
4349b09b15ada544501e7091c7ff1574487e7598
[ "MIT" ]
1
2021-11-19T09:56:41.000Z
2021-11-19T09:56:41.000Z
test-unit/PythonToJavascript/converters_test/DecoratorConverter_test.py
stoogoff/python-to-javascript
4349b09b15ada544501e7091c7ff1574487e7598
[ "MIT" ]
2
2022-02-25T23:11:27.000Z
2022-03-04T10:22:14.000Z
test-unit/PythonToJavascript/converters_test/DecoratorConverter_test.py
stoogoff/python-to-javascript
4349b09b15ada544501e7091c7ff1574487e7598
[ "MIT" ]
4
2021-05-06T19:03:19.000Z
2022-03-06T13:52:30.000Z
from utils import parseSource, nodesToString, nodesToLines, dumpNodes, dumpTree from converters import DecoratorConverter def test_DecoratorGather_01(): src = """ @require_call_auth( "view" ) def bim(): pass """ matches = DecoratorConverter().gather( parseSource( src ) ) mat...
31.444444
91
0.619552
83
849
6.180723
0.445783
0.08577
0.116959
0.148148
0.132554
0.132554
0.132554
0.132554
0.132554
0
0
0.009404
0.248528
849
26
92
32.653846
0.794671
0
0
0.416667
0
0
0.270907
0
0
0
0
0
0.166667
1
0.083333
false
0.083333
0.083333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1565f15c7bdaa2b3155fe63c57b77330ec18de52
231
py
Python
Core/Block_9/R9001_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
1
2021-04-25T13:53:20.000Z
2021-04-25T13:53:20.000Z
Core/Block_9/R9001_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
null
null
null
Core/Block_9/R9001_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
null
null
null
from Core.IFactory import IFactory from Regs.Block_9 import R9001 class R9001Factory(IFactory): def create_block_object(self, line): self.r9001 = _r9001 = R9001() _r9001.reg_list = line return _r9001
21
40
0.69697
30
231
5.133333
0.6
0.194805
0.194805
0
0
0
0
0
0
0
0
0.163842
0.233766
231
10
41
23.1
0.706215
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.714286
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
15752b5b78797b4c750e38d315998ee194161a6c
1,205
py
Python
ctf/migrations/0003_auto_20171220_1132.py
scnerd/pythonathon_v3
61548db58e3e3da501d9ea8b14240b5ff9deaea1
[ "MIT" ]
null
null
null
ctf/migrations/0003_auto_20171220_1132.py
scnerd/pythonathon_v3
61548db58e3e3da501d9ea8b14240b5ff9deaea1
[ "MIT" ]
1
2018-04-27T21:53:32.000Z
2018-04-27T21:53:32.000Z
ctf/migrations/0003_auto_20171220_1132.py
scnerd/pythonathon_v3
61548db58e3e3da501d9ea8b14240b5ff9deaea1
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2017-12-20 16:32 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('ctf', '0002_auto_20171220_1128'), ] operations = [ migrations.AlterField( model_name='category', ...
34.428571
163
0.629046
133
1,205
5.548872
0.345865
0.054201
0.075881
0.119241
0.589431
0.5271
0.365854
0.365854
0.365854
0.365854
0
0.033003
0.245643
1,205
34
164
35.441176
0.778878
0.035685
0
0.464286
1
0
0.15
0.056897
0
0
0
0
0
1
0
false
0
0.071429
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
157534eab104b41b242143ff7d8b5a60e7a91bfe
35,387
py
Python
networking_mlnx_baremetal/plugins/ml2/mech_ib_baremetal.py
IamFive/networking-mlnx-baremetal
070d42a2b9eefe3198553353fe65043b54cd383e
[ "Apache-2.0" ]
null
null
null
networking_mlnx_baremetal/plugins/ml2/mech_ib_baremetal.py
IamFive/networking-mlnx-baremetal
070d42a2b9eefe3198553353fe65043b54cd383e
[ "Apache-2.0" ]
null
null
null
networking_mlnx_baremetal/plugins/ml2/mech_ib_baremetal.py
IamFive/networking-mlnx-baremetal
070d42a2b9eefe3198553353fe65043b54cd383e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 HuaWei Technologies. 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 require...
43.20757
79
0.621104
4,225
35,387
5.059882
0.111243
0.027505
0.018664
0.015436
0.563897
0.507484
0.468613
0.451352
0.422444
0.378988
0
0.003235
0.318592
35,387
818
80
43.260391
0.883341
0.434877
0
0.375
0
0
0.199137
0.018292
0
0
0
0.003667
0
1
0.085366
false
0.051829
0.045732
0
0.204268
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1575914eec8c123e5affb6fda697005cd859437e
402
py
Python
output/models/nist_data/list_pkg/unsigned_byte/schema_instance/nistschema_sv_iv_list_unsigned_byte_enumeration_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/unsigned_byte/schema_instance/nistschema_sv_iv_list_unsigned_byte_enumeration_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/unsigned_byte/schema_instance/nistschema_sv_iv_list_unsigned_byte_enumeration_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.unsigned_byte.schema_instance.nistschema_sv_iv_list_unsigned_byte_enumeration_2_xsd.nistschema_sv_iv_list_unsigned_byte_enumeration_2 import ( NistschemaSvIvListUnsignedByteEnumeration2, NistschemaSvIvListUnsignedByteEnumeration2Type, ) __all__ = [ "NistschemaSvIvListU...
40.2
180
0.875622
34
402
9.676471
0.617647
0.109422
0.085106
0.109422
0.255319
0.255319
0.255319
0.255319
0
0
0
0.016129
0.074627
402
9
181
44.666667
0.86828
0
0
0
0
0
0.218905
0.218905
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
15796deac29fccedc2ec5b65ef24d14b746aca53
1,925
py
Python
pwcheck.py
madfordmac/scripts
f1a9d50ef77325f10d12190aa0edd0b611453507
[ "Unlicense" ]
null
null
null
pwcheck.py
madfordmac/scripts
f1a9d50ef77325f10d12190aa0edd0b611453507
[ "Unlicense" ]
null
null
null
pwcheck.py
madfordmac/scripts
f1a9d50ef77325f10d12190aa0edd0b611453507
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- from hashlib import sha1 import requests import argparse import sys, os parser = argparse.ArgumentParser(description="Check your password against the https://haveibeenpwned.com/ API.") parser.add_argument('-q', '--quiet', action="store_true", help="No STDOUT. Only output ...
31.048387
120
0.695065
302
1,925
4.36755
0.466887
0.027293
0.025777
0.024261
0
0
0
0
0
0
0
0.013639
0.162078
1,925
62
121
31.048387
0.804092
0.236883
0
0.046512
0
0
0.292042
0
0
0
0
0
0
1
0.069767
false
0.325581
0.116279
0
0.255814
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
15799cec47e855822d4dfe06e130272b06aec875
810
py
Python
auth.py
Bociany/Moodai
b7c2a3f1febe067c85830849a1e1b7ca3e4efb48
[ "MIT" ]
null
null
null
auth.py
Bociany/Moodai
b7c2a3f1febe067c85830849a1e1b7ca3e4efb48
[ "MIT" ]
null
null
null
auth.py
Bociany/Moodai
b7c2a3f1febe067c85830849a1e1b7ca3e4efb48
[ "MIT" ]
1
2020-10-25T16:33:28.000Z
2020-10-25T16:33:28.000Z
from pymemcache.client.base import Client import secrets import hashlib memcached_client = Client(("localhost", 11211)) TOKEN_EXPIRATION = 60*60*24 print("auth: memcached hot token cache backend started!") # Generates a new token for a user def generate_token(id): token = secrets.token_urlsafe(32) memcached_client...
23.142857
57
0.77037
124
810
4.887097
0.459677
0.123762
0.052805
0.075908
0
0
0
0
0
0
0
0.025605
0.132099
810
34
58
23.823529
0.836415
0.076543
0
0
0
0
0.083221
0
0
0
0
0
0
1
0.208333
false
0
0.125
0.041667
0.5
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
157b6ae0d38910f31b577c2c8decd1606ddcf065
7,112
py
Python
demos/python/sdk_wireless_camera_control/open_gopro/interfaces.py
hypoxic/OpenGoPro
2c3efd3ef39ef3ae502981cd494d48ececff2bc6
[ "MIT" ]
1
2021-07-19T22:55:05.000Z
2021-07-19T22:55:05.000Z
demos/python/sdk_wireless_camera_control/open_gopro/interfaces.py
hypoxic/OpenGoPro
2c3efd3ef39ef3ae502981cd494d48ececff2bc6
[ "MIT" ]
null
null
null
demos/python/sdk_wireless_camera_control/open_gopro/interfaces.py
hypoxic/OpenGoPro
2c3efd3ef39ef3ae502981cd494d48ececff2bc6
[ "MIT" ]
null
null
null
# interfaces.py/Open GoPro, Version 1.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). # This copyright was auto-generated on Tue May 18 22:08:50 UTC 2021 """Interfaces that must be defined outside of other files to avoid circular imports.""" from abc import ABC, abstractmethod from typing import Callab...
30.26383
115
0.633015
782
7,112
5.700767
0.259591
0.080754
0.102288
0.067519
0.231045
0.156572
0.12472
0.090175
0.058771
0.058771
0
0.005487
0.28248
7,112
234
116
30.393162
0.868117
0.255062
0
0.450704
1
0
0.079936
0
0
0
0
0
0
1
0.169014
false
0.014085
0.042254
0
0.309859
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
15846da1e5d4bf26623eefb4252273111caff529
1,311
py
Python
verto/processors/CommentPreprocessor.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/processors/CommentPreprocessor.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/processors/CommentPreprocessor.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
from markdown.preprocessors import Preprocessor import re class CommentPreprocessor(Preprocessor): ''' Searches a Document for comments (e.g. {comment example text here}) and removes them from the document. ''' def __init__(self, ext, *args, **kwargs): ''' Args: ext: An in...
30.488372
82
0.611747
152
1,311
5.217105
0.486842
0.041614
0.045397
0.055486
0
0
0
0
0
0
0
0
0.300534
1,311
42
83
31.214286
0.864776
0.451564
0
0
0
0
0.024867
0
0
0
0
0
0
1
0.230769
false
0
0.153846
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1590946be99026fb276d9b6362190b472a4494b8
3,597
py
Python
backgroundtasks.py
chadspratt/AveryDB
441ae4604ea5493991611cdc26379a4bc3cfed8c
[ "Apache-2.0" ]
null
null
null
backgroundtasks.py
chadspratt/AveryDB
441ae4604ea5493991611cdc26379a4bc3cfed8c
[ "Apache-2.0" ]
2
2015-09-10T16:23:13.000Z
2015-09-10T18:18:23.000Z
backgroundtasks.py
chadspratt/AveryDB
441ae4604ea5493991611cdc26379a4bc3cfed8c
[ "Apache-2.0" ]
null
null
null
"""Code to handle queuing and execution of background tasks.""" ## # Copyright 2013 Chad Spratt # 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/...
44.407407
79
0.623297
399
3,597
5.591479
0.428571
0.021963
0.048409
0.040341
0.188256
0.177499
0.177499
0.177499
0.147019
0.147019
0
0.005948
0.29886
3,597
81
80
44.407407
0.878668
0.253545
0
0.244898
0
0
0.059811
0
0
0
0
0
0
0
null
null
0
0.040816
null
null
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
159150bf6a2097183f572db1879ee97634148f6c
3,403
py
Python
bot.py
kevinchu-sg/reddit-csv-bot
77b00f738f607cf4959a387dc62285ceac7fc8f9
[ "MIT" ]
2
2016-07-08T10:51:31.000Z
2016-07-25T06:49:28.000Z
bot.py
kevinchu-sg/reddit-csv-bot
77b00f738f607cf4959a387dc62285ceac7fc8f9
[ "MIT" ]
null
null
null
bot.py
kevinchu-sg/reddit-csv-bot
77b00f738f607cf4959a387dc62285ceac7fc8f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import praw import csv from datetime import datetime, timedelta #------------------------------------------------- #OPTIONS USERNAME = '' PASSWORD = '' user_agent = 'management by /u/kevinosaurus' #user-agent details csv_list = ['log1.csv', 'log2.csv'] #log1 corresponds to subreddi...
41
127
0.500735
395
3,403
4.116456
0.336709
0.02214
0.01968
0.02214
0.121771
0.121771
0.121771
0.121771
0.121771
0.121771
0
0.00697
0.367617
3,403
82
128
41.5
0.748606
0.120482
0
0.104478
0
0
0.162069
0
0
0
0
0
0
0
null
null
0.029851
0.044776
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
159358da837d2a8d08cab81b58469b6833b1204c
3,545
py
Python
ngcccbase/tests/test_verifier.py
killerstorm/ngcccbase
30fd033835ceeecd0eafc3461bf5b4dcfff117de
[ "MIT" ]
31
2015-01-25T01:59:07.000Z
2022-03-11T02:49:53.000Z
ngcccbase/tests/test_verifier.py
killerstorm/ngcccbase
30fd033835ceeecd0eafc3461bf5b4dcfff117de
[ "MIT" ]
5
2015-06-16T14:43:49.000Z
2016-07-19T12:49:16.000Z
ngcccbase/tests/test_verifier.py
jeorgen/ngcccbase
0a7348d95353598a320e5612166402ba676c8d33
[ "MIT" ]
17
2015-02-14T15:19:49.000Z
2019-11-28T19:17:50.000Z
#!/usr/bin/env python import unittest from ngcccbase.verifier import Verifier, hash_decode from ngcccbase.services.electrum import ( ElectrumInterface, EnhancedBlockchainState) class FakeBlockchainState(object): def get_height(self): return 100 def get_merkle(self, tx_hash): l = ["3a459e...
45.448718
80
0.736248
288
3,545
8.885417
0.333333
0.075029
0.052755
0.084408
0.251661
0.209457
0.154748
0.139117
0.139117
0.082845
0
0.264998
0.177151
3,545
77
81
46.038961
0.612273
0.044852
0
0.189655
0
0
0.384979
0.359551
0
0
0
0
0.155172
1
0.137931
false
0
0.051724
0.017241
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1594d96bafd84ea5ed368c5859328f0a9cd3cc60
446
py
Python
backend/flask-api/migrations/versions/d77d5b7c3921_.py
lucasbibianot/inova-cnj-time16
e621d7027bd462d348e233ffd6ed88648c53704b
[ "Apache-2.0" ]
null
null
null
backend/flask-api/migrations/versions/d77d5b7c3921_.py
lucasbibianot/inova-cnj-time16
e621d7027bd462d348e233ffd6ed88648c53704b
[ "Apache-2.0" ]
null
null
null
backend/flask-api/migrations/versions/d77d5b7c3921_.py
lucasbibianot/inova-cnj-time16
e621d7027bd462d348e233ffd6ed88648c53704b
[ "Apache-2.0" ]
2
2020-10-19T22:03:31.000Z
2020-11-29T21:22:33.000Z
"""Retirando complemento 5008 Revision ID: d77d5b7c3921 Revises: 495061e1bbe4 Create Date: 2020-10-18 14:28:57.319452 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'd77d5b7c3921' down_revision = '495061e1bbe4' branch_labels = None depends_on = None def upgr...
17.84
90
0.751121
59
446
5.559322
0.762712
0
0
0
0
0
0
0
0
0
0
0.15873
0.152466
446
24
91
18.583333
0.708995
0.347534
0
0
0
0
0.339223
0
0
0
0
0
0
1
0.2
false
0.1
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
15968584a7d5ee1dacae3e3d55139a1c35f84e1e
1,460
py
Python
pythonAlgorithm/highlevel/Big Integer Addition.py
Sky-zzt/lintcodePractice
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
[ "MIT" ]
1
2020-09-15T07:58:55.000Z
2020-09-15T07:58:55.000Z
pythonAlgorithm/highlevel/Big Integer Addition.py
Sky-zzt/lintcodePractice
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
[ "MIT" ]
null
null
null
pythonAlgorithm/highlevel/Big Integer Addition.py
Sky-zzt/lintcodePractice
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
[ "MIT" ]
null
null
null
class Solution: """ @param num1: a non-negative integers @param num2: a non-negative integers @return: return sum of num1 and num2 以字符串的形式给出两个非负整数 num1 和 num2,返回 num1 和 num2 的和。 Example 样例 1: 输入 : num1 = "123", num2 = "45" 输出 : "168" Notice num1 和 num2 的长度都小于5100。 num1 和 num2 都只包含数字 0-9。 num1 和 nu...
32.444444
261
0.589041
203
1,460
4.137931
0.423645
0.029762
0.053571
0.047619
0.180952
0.180952
0.180952
0.180952
0.180952
0.180952
0
0.091434
0.288356
1,460
44
262
33.181818
0.717036
0.456849
0
0
0
0
0
0
0
0
0
0.022727
0
1
0.05
false
0
0
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
159bb2097045a17ed5ac0777d829cd6a73f16ae5
174
py
Python
test_herencia.py
Ivan395/Python
989f9c01cef0264cf07fd944f3b638d95b28aee5
[ "Apache-2.0" ]
null
null
null
test_herencia.py
Ivan395/Python
989f9c01cef0264cf07fd944f3b638d95b28aee5
[ "Apache-2.0" ]
null
null
null
test_herencia.py
Ivan395/Python
989f9c01cef0264cf07fd944f3b638d95b28aee5
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python3 # -*- coding: utf-8 -*- from cuadrado import Cuadrado def run(): cuad = Cuadrado(1,2,3) print(cuad.show()) if __name__ == '__main__': run()
15.818182
29
0.597701
24
174
4
0.833333
0
0
0
0
0
0
0
0
0
0
0.036232
0.206897
174
10
30
17.4
0.65942
0.229885
0
0
0
0
0.060606
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
159d543d678d2e9901ad323b73e503e1d62865e0
597
py
Python
lbm/src/core/obstacle.py
jviquerat/lbm
96522a247d25ac533e6fdba90ddb90251f144a50
[ "MIT" ]
32
2020-11-13T07:49:34.000Z
2022-03-31T08:36:52.000Z
lbm/src/core/obstacle.py
elswit/lbm
68b061f6f6bdb200a1e9e18531fd7bcad553f26f
[ "MIT" ]
1
2022-02-17T11:44:14.000Z
2022-03-25T12:56:11.000Z
lbm/src/core/obstacle.py
elswit/lbm
68b061f6f6bdb200a1e9e18531fd7bcad553f26f
[ "MIT" ]
7
2021-07-18T22:37:41.000Z
2022-03-29T21:57:55.000Z
### ************************************************ ### Class defining an obstacle in the lattice class obstacle: def __init__(self, name, n_pts, n_spts, type, size, pos): self.name = name self.n_pts = n_pts self.n_spts = n_spts self.type = type self.size = size ...
22.961538
61
0.507538
73
597
3.986301
0.328767
0.041237
0.034364
0
0
0
0
0
0
0
0
0
0.324958
597
25
62
23.88
0.722084
0.150754
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
15a2509a7b7b700554004b2fe038f0bb1703b296
344
py
Python
example_racktests/6_create_host_with_minimum_bigger_disk_to_verify_rackattack_virtual.py
eyal-stratoscale/pyracktest
e75474e7bf83fa7b3e9e809d21b4b789a96ff241
[ "Apache-2.0" ]
null
null
null
example_racktests/6_create_host_with_minimum_bigger_disk_to_verify_rackattack_virtual.py
eyal-stratoscale/pyracktest
e75474e7bf83fa7b3e9e809d21b4b789a96ff241
[ "Apache-2.0" ]
null
null
null
example_racktests/6_create_host_with_minimum_bigger_disk_to_verify_rackattack_virtual.py
eyal-stratoscale/pyracktest
e75474e7bf83fa7b3e9e809d21b4b789a96ff241
[ "Apache-2.0" ]
null
null
null
from strato.racktest.infra.suite import * class Test: HOSTS = dict(it=dict(rootfs="rootfs-basic", minimumDisk1SizeGB=20)) def run(self): partitions = host.it.ssh.run.script("cat /proc/partitions") vdaSizeKB = int(partitions.split('\n')[2][13:13 + 12].strip()) TS_ASSERT_LESS_THAN(18, v...
31.272727
71
0.662791
47
344
4.787234
0.808511
0
0
0
0
0
0
0
0
0
0
0.070922
0.180233
344
10
72
34.4
0.72695
0
0
0
0
0
0.098837
0
0
0
0
0
0.142857
1
0.142857
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
15a4d2acb02c26093169947ac6bc2fb8a30d8470
702
py
Python
src/apps/devices/discoball.py
ajintom/music_sync
0d7bc302502d28e4be4f0a0be1fc9bafb706f651
[ "MIT" ]
null
null
null
src/apps/devices/discoball.py
ajintom/music_sync
0d7bc302502d28e4be4f0a0be1fc9bafb706f651
[ "MIT" ]
null
null
null
src/apps/devices/discoball.py
ajintom/music_sync
0d7bc302502d28e4be4f0a0be1fc9bafb706f651
[ "MIT" ]
null
null
null
import device from phosphene.signal import * from phosphene.signalutil import * from phosphene.graphs import * class DiscoBall(device.Device): def __init__(self, port): device.Device.__init__(self, "DiscoBall", port) def setupSignal(self, signal): def beats(s): return numpymap(lamb...
30.521739
95
0.650997
91
702
4.934066
0.461538
0.08686
0.084633
0
0
0
0
0
0
0
0
0.027726
0.229345
702
22
96
31.909091
0.802218
0
0
0
0
0
0.012821
0
0
0
0
0
0
0
null
null
0
0.222222
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
15aade104589b575809be8b017a5ec5ec529656b
248
py
Python
6_1_2.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
null
null
null
6_1_2.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
null
null
null
6_1_2.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
1
2019-12-03T01:34:19.000Z
2019-12-03T01:34:19.000Z
%matplotlib inline from numpy import linspace,sqrt import matplotlib.pyplot as plt x = linspace(-1,5,50) y1 = 1.0/sqrt(x**2 + 1) y2 = 1.0/sqrt(3 * x**2 + 1) plt.plot(x,y1,label='plot 1') plt.plot(x,y2,'--',label='plot 2') plt.legend() plt.show()
20.666667
34
0.653226
50
248
3.24
0.46
0.024691
0.074074
0.111111
0
0
0
0
0
0
0
0.088372
0.133065
248
11
35
22.545455
0.665116
0
0
0
0
0
0.056452
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
15abb32d4ecfa42aed9cc969fc6364b9a089ff23
2,191
py
Python
ubersmith_client/ubersmith_request.py
internap/python-ubersmithclient
b406eddfdc11315e8f685285ca8ba6523bc0fba3
[ "Apache-2.0" ]
1
2016-01-29T18:56:23.000Z
2016-01-29T18:56:23.000Z
ubersmith_client/ubersmith_request.py
internap/python-ubersmithclient
b406eddfdc11315e8f685285ca8ba6523bc0fba3
[ "Apache-2.0" ]
16
2016-02-01T18:26:25.000Z
2020-04-29T17:09:24.000Z
ubersmith_client/ubersmith_request.py
internap/python-ubersmithclient
b406eddfdc11315e8f685285ca8ba6523bc0fba3
[ "Apache-2.0" ]
8
2016-03-09T19:38:25.000Z
2017-02-15T21:26:56.000Z
# Copyright 2017 Internap. # # 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, so...
34.777778
83
0.67047
252
2,191
5.690476
0.47619
0.041841
0.037657
0.022315
0
0
0
0
0
0
0
0.009674
0.245094
2,191
62
84
35.33871
0.857316
0.249201
0
0
0
0
0.045984
0
0
0
0
0
0
1
0.157895
false
0.052632
0.078947
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
15ae0035e0f30f9a7c8c90c941ad419027f41702
393
py
Python
moving_zeros_to_the_end.py
StefanS97/free-time-fun
2de2f70c333eff4263e54bc908220465fa29d592
[ "MIT" ]
null
null
null
moving_zeros_to_the_end.py
StefanS97/free-time-fun
2de2f70c333eff4263e54bc908220465fa29d592
[ "MIT" ]
null
null
null
moving_zeros_to_the_end.py
StefanS97/free-time-fun
2de2f70c333eff4263e54bc908220465fa29d592
[ "MIT" ]
null
null
null
def move_zeros(array): helper_array = [] zeros_counter = 0 helper_zeros = 0 for i in range(len(array)): if array[i] == 0: zeros_counter += 1 else: helper_array.append(array[i]) if zeros_counter > 0: while helper_zeros < zeros_counter: help...
24.5625
43
0.56743
50
393
4.22
0.36
0.208531
0.123223
0
0
0
0
0
0
0
0
0.027132
0.343511
393
16
44
24.5625
0.790698
0
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.142857
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
15afe46308717e1e3ec782fa25093646e7f9e380
4,338
py
Python
srcgen.py
emlynoregan/sutlstudio
ec8b65496cf3ceeb7b28c7481a5218013c2c19de
[ "Apache-2.0" ]
null
null
null
srcgen.py
emlynoregan/sutlstudio
ec8b65496cf3ceeb7b28c7481a5218013c2c19de
[ "Apache-2.0" ]
null
null
null
srcgen.py
emlynoregan/sutlstudio
ec8b65496cf3ceeb7b28c7481a5218013c2c19de
[ "Apache-2.0" ]
null
null
null
import json from decl import Decl, Dist from google.appengine.ext import ndb import webapp2 from google.appengine.api import users import logging class SrcGenBase(webapp2.RequestHandler): def RequiredUser(self): return None def ProcessSrcGen(self, aUser): raise Exception("ProcessSrcGen Not Overridden") def ge...
29.510204
144
0.652605
487
4,338
5.753593
0.225873
0.047109
0.044968
0.044968
0.419343
0.373662
0.359743
0.307994
0.275161
0.275161
0
0.007002
0.242739
4,338
146
145
29.712329
0.845967
0.044491
0
0.46789
0
0
0.083394
0
0
0
0
0
0
0
null
null
0
0.055046
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
15b2251998fdb265c9f52ff2ad95a496e71b7e4f
1,680
py
Python
year/2020/04/passport_validator.py
nbalas/advent_of_code
7c67a07eccc6e07f56fc448e463c557c937a4aaa
[ "MIT" ]
null
null
null
year/2020/04/passport_validator.py
nbalas/advent_of_code
7c67a07eccc6e07f56fc448e463c557c937a4aaa
[ "MIT" ]
null
null
null
year/2020/04/passport_validator.py
nbalas/advent_of_code
7c67a07eccc6e07f56fc448e463c557c937a4aaa
[ "MIT" ]
null
null
null
from operator import methodcaller from logs.setup_logs import init_logs from readers.file_reader import FileReader import re logger = init_logs(__name__) VALID_EYE_COLORS = ["amb", "blu", "brn", "gry", "grn", "hzl", "oth"] REQUIRED_FIELDS = { "byr": lambda x: 1920 <= int(x) <= 2002, "iyr": lambda x: 2010 <=...
36.521739
145
0.659524
243
1,680
4.390947
0.399177
0.045923
0.026242
0.014995
0.04686
0
0
0
0
0
0
0.030413
0.177976
1,680
46
146
36.521739
0.742216
0
0
0
0
0
0.133254
0
0
0
0
0
0
1
0.085714
false
0.371429
0.114286
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
15b2e1368ac96544f12feac18afc3f54f85447d2
1,010
py
Python
src/tt_storage/tt_storage/models.py
serhii73/the-tale
ee69b033f57fae5004c14afb51f4a6679b189410
[ "BSD-3-Clause" ]
null
null
null
src/tt_storage/tt_storage/models.py
serhii73/the-tale
ee69b033f57fae5004c14afb51f4a6679b189410
[ "BSD-3-Clause" ]
1
2022-01-18T12:04:47.000Z
2022-01-18T12:04:47.000Z
src/tt_storage/tt_storage/models.py
serhii73/the-tale
ee69b033f57fae5004c14afb51f4a6679b189410
[ "BSD-3-Clause" ]
null
null
null
import uuid from django.db import models from . import conf class Item(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) owner = models.PositiveIntegerField(db_index=True) storage = models.IntegerField(default=0) data = models.JSONField(default=dict) ...
21.956522
79
0.717822
127
1,010
5.519685
0.393701
0.064194
0.089872
0.10699
0.42796
0.25107
0.25107
0.25107
0.131241
0
0
0.003619
0.179208
1,010
45
80
22.444444
0.841978
0
0
0.25
0
0
0.029732
0
0
0
0
0
0
1
0
false
0
0.125
0
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
15baca589ff976c6a301fb9ce6e832a26958f079
878
py
Python
src/kestrue/naturals.py
brunolange/kestrue
b1e56ec4055ccbbb39f0ba87cbba92022c99a2a1
[ "MIT" ]
null
null
null
src/kestrue/naturals.py
brunolange/kestrue
b1e56ec4055ccbbb39f0ba87cbba92022c99a2a1
[ "MIT" ]
null
null
null
src/kestrue/naturals.py
brunolange/kestrue
b1e56ec4055ccbbb39f0ba87cbba92022c99a2a1
[ "MIT" ]
null
null
null
from functools import reduce zero = lambda f: lambda x: x one = lambda f: lambda x: f(x) two = lambda f: lambda x: f(f(x)) three = lambda f: lambda x: f(f(f(x))) four = lambda f: lambda x: f(f(f(f(x)))) five = lambda f: lambda x: f(f(f(f(f(x))))) r""" succ := \n.\fx.f(nfx) >>> succ(2) n -> \gy.g(gy) -> fx.f(f(f(x)))...
19.511111
59
0.522779
184
878
2.461957
0.228261
0.101545
0.099338
0.339956
0.423841
0.353201
0.216336
0.12362
0.083885
0
0
0.014535
0.216401
878
44
60
19.954545
0.643895
0.149203
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0.066667
0.333333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
15bd0d1ebb48618a3d6878287d84a75b22631e7f
38,486
py
Python
tests/main/views/test_brief_response.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
25
2015-01-14T10:45:13.000Z
2021-05-26T17:21:41.000Z
tests/main/views/test_brief_response.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
641
2015-01-15T11:10:50.000Z
2021-06-15T22:18:42.000Z
tests/main/views/test_brief_response.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
22
2015-06-13T15:37:45.000Z
2021-08-19T23:40:49.000Z
"""Tests for brief response views in app/views/brief_responses.py.""" from datetime import datetime, timedelta from freezegun import freeze_time import json import mock import pytest from dmapiclient.audit import AuditTypes from app.main.views.brief_responses import COMPLETED_BRIEF_RESPONSE_STATUSES from app.models i...
41.382796
120
0.656888
4,602
38,486
5.172751
0.067362
0.111405
0.023945
0.028733
0.759084
0.712791
0.663138
0.629238
0.602268
0.55879
0
0.016496
0.239204
38,486
929
121
41.427341
0.796448
0.013979
0
0.507607
0
0.011065
0.16255
0.044737
0
0
0
0
0.192255
1
0.096819
false
0
0.015214
0.008299
0.136929
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
15bdb3892b8bcef82e9be406df7dacf2aa7969ca
288
py
Python
python/python.py
stewpidtnlvr/Smartproxy
44b45433f3b6abdf54055a4eb9f73c86a600c980
[ "MIT" ]
null
null
null
python/python.py
stewpidtnlvr/Smartproxy
44b45433f3b6abdf54055a4eb9f73c86a600c980
[ "MIT" ]
null
null
null
python/python.py
stewpidtnlvr/Smartproxy
44b45433f3b6abdf54055a4eb9f73c86a600c980
[ "MIT" ]
null
null
null
import urllib.request as request url = 'https://ipinfo.io' username = 'username' password = 'password' proxy = f'http://{username}:{password}@gate.smartproxy.com:7000' query = request.build_opener(request.ProxyHandler({'http': proxy, 'https': proxy})) print(query.open(url).read())
24
83
0.715278
37
288
5.540541
0.648649
0.156098
0
0
0
0
0
0
0
0
0
0.015444
0.100694
288
11
84
26.181818
0.776062
0
0
0
0
0
0.329861
0
0
0
0
0
0
1
0
false
0.285714
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
15bfb4488b04c84f145185649080b05678ada985
448
py
Python
watchmen/pipeline/core/context/unit_context.py
Insurance-Metrics-Measure-Advisory/watchman-data-connector
8ecab0c5b28174f1611e51deba8d94a42f53d51d
[ "MIT" ]
125
2021-03-13T07:39:46.000Z
2022-02-28T03:14:17.000Z
watchmen/pipeline/core/context/unit_context.py
Insurance-Metrics-Measure-Advisory/watchman-data-connector
8ecab0c5b28174f1611e51deba8d94a42f53d51d
[ "MIT" ]
null
null
null
watchmen/pipeline/core/context/unit_context.py
Insurance-Metrics-Measure-Advisory/watchman-data-connector
8ecab0c5b28174f1611e51deba8d94a42f53d51d
[ "MIT" ]
17
2021-03-13T07:31:58.000Z
2021-05-20T09:38:02.000Z
from model.model.pipeline.pipeline import ProcessUnit from watchmen.monitor.model.pipeline_monitor import UnitRunStatus from watchmen.pipeline.core.context.stage_context import StageContext class UnitContext: stageContext: StageContext unit: ProcessUnit unitStatus: UnitRunStatus def __init__(self, s...
28
69
0.767857
46
448
7.347826
0.413043
0.076923
0
0
0
0
0
0
0
0
0
0
0.171875
448
15
70
29.866667
0.911051
0
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
15c0cd644e50ac23604940605dcfe052407b235b
968
py
Python
tensorflow/python/distribute/distribute_coordinator_context.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/python/distribute/distribute_coordinator_context.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/python/distribute/distribute_coordinator_context.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
# Copyright 2018 The TensorFlow Authors. 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 applica...
34.571429
80
0.69938
126
968
5.31746
0.666667
0.089552
0.038806
0.047761
0
0
0
0
0
0
0
0.009768
0.153926
968
27
81
35.851852
0.808303
0.77686
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ec5e0eff47d32cb2c133c9cfd5343ee1ff9a83f3
664
py
Python
title_classification/train_word2vec.py
sun-yitao/PsychicLearners
8577e7ec2989ec759cdb7e79b11cdef7fe31268b
[ "MIT" ]
14
2019-03-24T10:42:08.000Z
2020-11-28T03:19:38.000Z
title_classification/train_word2vec.py
sun-yitao/PsychicLearners
8577e7ec2989ec759cdb7e79b11cdef7fe31268b
[ "MIT" ]
5
2020-01-28T22:11:11.000Z
2022-02-09T23:29:32.000Z
title_classification/train_word2vec.py
sun-yitao/PsychicLearners
8577e7ec2989ec759cdb7e79b11cdef7fe31268b
[ "MIT" ]
1
2019-05-12T09:30:19.000Z
2019-05-12T09:30:19.000Z
import gensim from gensim.models import Word2Vec from gensim.utils import simple_preprocess from pathlib import Path from multiprocessing import cpu_count psychic_learner_dir = Path.cwd().parent data_dir = psychic_learner_dir / 'data' with open(str(data_dir / 'titles.txt'), 'r') as f: sentences = f.read().splitli...
31.619048
86
0.781627
94
664
5.382979
0.553191
0.059289
0.063241
0
0
0
0
0
0
0
0
0.016835
0.105422
664
20
87
33.2
0.835017
0.087349
0
0
0
0
0.044628
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ec5f5715cbf11e4c24c878cc9795dbef00deb5bb
1,596
py
Python
memoboard/__init__.py
codebyravi/MemoBoard
5ebf144000dd0be23ea9b6479ef9c85241497be2
[ "MIT" ]
null
null
null
memoboard/__init__.py
codebyravi/MemoBoard
5ebf144000dd0be23ea9b6479ef9c85241497be2
[ "MIT" ]
null
null
null
memoboard/__init__.py
codebyravi/MemoBoard
5ebf144000dd0be23ea9b6479ef9c85241497be2
[ "MIT" ]
null
null
null
""" Everything that needs to be set up to get flask running is initialized in this file. * set up and configure the app * start the database (db) * load all (!) models used (essential to create the database using db_create) * load all (!) controllers * load api * Set up blueprints """ from flask import Fl...
23.820896
84
0.740602
211
1,596
5.440758
0.336493
0.054878
0.043554
0.027875
0.054007
0
0
0
0
0
0
0
0.188596
1,596
66
85
24.181818
0.886486
0.294486
0
0
0
0
0.026978
0.020683
0
0
0
0
0
1
0.032258
false
0
0.354839
0
0.419355
0.129032
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ec616c4c172cfa7c8428cb9272f57b34e44e4a1b
986
py
Python
battlenet/utils.py
BuloZB/battlenet
80bf73b7bfa45c7cf97f320d79ca5ca7179940f7
[ "MIT" ]
null
null
null
battlenet/utils.py
BuloZB/battlenet
80bf73b7bfa45c7cf97f320d79ca5ca7179940f7
[ "MIT" ]
null
null
null
battlenet/utils.py
BuloZB/battlenet
80bf73b7bfa45c7cf97f320d79ca5ca7179940f7
[ "MIT" ]
null
null
null
import unicodedata import re import urllib _slugify_strip_re = re.compile(r'[^\w\s-]') _slugify_hyphenate_re = re.compile(r'[-\s]+') def slugify(value): slug = unicode(_slugify_strip_re.sub('', normalize(value)).strip().lower()) slug = _slugify_hyphenate_re.sub('-', slug) if not slug: return quo...
21.911111
84
0.662272
127
986
5
0.385827
0.088189
0.113386
0.037795
0
0
0
0
0
0
0
0.007566
0.19574
986
44
85
22.409091
0.79319
0
0
0
0
0
0.096349
0
0
0
0
0
0
1
0.178571
false
0
0.142857
0.035714
0.535714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ec66d2d2dc12f5ffd0f97844087d85752c91c26b
1,729
py
Python
machine/storage/backends/base.py
drdarina/slack-machine
9bb6fed886908a2ef7d4619e8a752c33213df2ed
[ "MIT" ]
111
2017-09-19T21:12:20.000Z
2021-12-14T02:30:35.000Z
machine/storage/backends/base.py
drdarina/slack-machine
9bb6fed886908a2ef7d4619e8a752c33213df2ed
[ "MIT" ]
480
2017-09-17T21:47:46.000Z
2022-03-31T17:07:04.000Z
machine/storage/backends/base.py
drdarina/slack-machine
9bb6fed886908a2ef7d4619e8a752c33213df2ed
[ "MIT" ]
41
2017-11-14T22:07:44.000Z
2022-03-13T21:29:51.000Z
class MachineBaseStorage: """Base class for storage backends Extending classes should implement the five methods in this base class. Slack Machine takes care of a lot of details regarding the persistent storage of data. So storage backends **do not** have to deal with the following, because Slack Machi...
32.018519
96
0.638519
224
1,729
4.910714
0.433036
0.109091
0.098182
0.038182
0.111818
0.054545
0.054545
0.054545
0.054545
0
0
0
0.293811
1,729
53
97
32.622642
0.900901
0.625795
0
0.384615
0
0
0
0
0
0
0
0
0
1
0.461538
false
0
0
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ec69605800be6e1a07f51ce6d01c3c210a542825
1,620
py
Python
source/utils/db/manager.py
goakgun/falcon-simple-api
8f4dbd748bcc424bc31b66e5d12aed346677ffb6
[ "Apache-2.0" ]
null
null
null
source/utils/db/manager.py
goakgun/falcon-simple-api
8f4dbd748bcc424bc31b66e5d12aed346677ffb6
[ "Apache-2.0" ]
null
null
null
source/utils/db/manager.py
goakgun/falcon-simple-api
8f4dbd748bcc424bc31b66e5d12aed346677ffb6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import logging import sqlalchemy from sqlalchemy import orm from sqlalchemy.orm import scoping from utils.db import models from passlib.hash import sha256_crypt class DBManager(object): def __init__(self, connection=None, pool_recycle=None): self.connection ...
35.217391
136
0.62963
193
1,620
5.176166
0.481865
0.052052
0.03003
0.036036
0.076076
0.076076
0.076076
0.076076
0
0
0
0.006832
0.27716
1,620
45
137
36
0.846285
0.098765
0
0.117647
0
0
0.096907
0
0
0
0
0
0
1
0.088235
false
0.088235
0.176471
0.029412
0.323529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ec6b95b5f857fbd58d8e5a5499b3abe67cd75df0
1,438
py
Python
src/catalogo.py
pugaru/NGKS_Shop
135a8bb05ba77dfd160dd07833e709a068b480ca
[ "Unlicense" ]
null
null
null
src/catalogo.py
pugaru/NGKS_Shop
135a8bb05ba77dfd160dd07833e709a068b480ca
[ "Unlicense" ]
null
null
null
src/catalogo.py
pugaru/NGKS_Shop
135a8bb05ba77dfd160dd07833e709a068b480ca
[ "Unlicense" ]
null
null
null
from catalogo.models import Categoria, Produto class Gerencia_categoria(): def Cria_categoria(request): nome = request.POST.get("nome") slug = request.POST.get("slug") Categoria.objects.create(nome=nome, slug=slug) def Atualiza_categoria(request, slug): nome = request.POST....
35.95
115
0.648122
164
1,438
5.621951
0.152439
0.143167
0.182213
0.078091
0.522777
0.470716
0.407809
0.407809
0.326464
0.326464
0
0
0.228095
1,438
40
116
35.95
0.830631
0
0
0.352941
0
0
0.048645
0
0
0
0
0
0
1
0.176471
false
0
0.029412
0
0.264706
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ec6cd427fd339df7c880123c49098ec91cdc5aa3
521
py
Python
learn/views/choose_exercise.py
Aigrefin/py3learn
8104315689caff2523bda3b4ad70a807f4a43fa7
[ "MIT" ]
null
null
null
learn/views/choose_exercise.py
Aigrefin/py3learn
8104315689caff2523bda3b4ad70a807f4a43fa7
[ "MIT" ]
1
2021-06-10T19:05:49.000Z
2021-06-10T19:05:49.000Z
learn/views/choose_exercise.py
Aigrefin/py3learn
8104315689caff2523bda3b4ad70a807f4a43fa7
[ "MIT" ]
null
null
null
from django.shortcuts import redirect from learn.services.choice import random_choice, rythm_choice def choose_rythm_notation_exercise(request, dictionary_pk): if request.user.is_authenticated(): translation = rythm_choice(dictionary_pk, request.user) else: translation = random_choice(diction...
40.076923
97
0.78119
64
521
6.09375
0.4375
0.215385
0.071795
0.123077
0
0
0
0
0
0
0
0
0.142035
521
13
97
40.076923
0.872483
0
0
0
0
0
0.055556
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.5
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ec6ee2c1aa40037c0f7f0c8c9cd88daf7f3dc737
915
py
Python
os_traits/hw/nic/__init__.py
mail2nsrajesh/os-traits
71e35dee0a4642677b3926dc4af48adea94cb329
[ "Apache-2.0" ]
10
2017-03-24T10:14:06.000Z
2019-01-28T22:07:42.000Z
os_traits/hw/nic/__init__.py
mail2nsrajesh/os-traits
71e35dee0a4642677b3926dc4af48adea94cb329
[ "Apache-2.0" ]
null
null
null
os_traits/hw/nic/__init__.py
mail2nsrajesh/os-traits
71e35dee0a4642677b3926dc4af48adea94cb329
[ "Apache-2.0" ]
3
2017-10-11T06:43:01.000Z
2021-01-09T10:59:51.000Z
# -*- coding: utf-8 -*- # 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, softw...
38.125
78
0.728962
132
915
5.045455
0.712121
0.09009
0.039039
0.048048
0
0
0
0
0
0
0
0.008141
0.194536
915
23
79
39.782609
0.895522
0.852459
0
0
0
0
0.344828
0.181034
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ec6fe64e52b6aab93b33b95e275edb5c9ffbe529
607
py
Python
main.py
citReyJoshua/assignment_statement_lexical_analyzer
6aae2c7d4a1a979afe6a4ed27d306df5252ff346
[ "MIT" ]
null
null
null
main.py
citReyJoshua/assignment_statement_lexical_analyzer
6aae2c7d4a1a979afe6a4ed27d306df5252ff346
[ "MIT" ]
null
null
null
main.py
citReyJoshua/assignment_statement_lexical_analyzer
6aae2c7d4a1a979afe6a4ed27d306df5252ff346
[ "MIT" ]
null
null
null
from lexical_analyzer.assignment_analyzer import analyze if __name__ == '__main__': assignment_statements = [] # get string statements from file with open('test-cases.txt', 'r') as file: for line in file: assignment_statements.append(line.rstrip('\n')) # lexically analyze ...
31.947368
80
0.607908
59
607
5.983051
0.576271
0.226629
0
0
0
0
0
0
0
0
0
0
0.214168
607
19
81
31.947368
0.740042
0.107084
0
0
0
0
0.202226
0.09833
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.2
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ec793460150c824a74523bec3b7d103f3b150d10
635
py
Python
antiqueProjectApp/migrations/0012_auto_20190812_1531.py
jennie6151/inwiththeold
5b9bfb91d754a8cff515e41cb9b8beb3a4c79669
[ "MIT" ]
null
null
null
antiqueProjectApp/migrations/0012_auto_20190812_1531.py
jennie6151/inwiththeold
5b9bfb91d754a8cff515e41cb9b8beb3a4c79669
[ "MIT" ]
11
2020-02-12T01:21:38.000Z
2022-01-13T01:31:56.000Z
antiqueProjectApp/migrations/0012_auto_20190812_1531.py
jennie6151/inwiththeold
5b9bfb91d754a8cff515e41cb9b8beb3a4c79669
[ "MIT" ]
1
2019-08-23T17:27:45.000Z
2019-08-23T17:27:45.000Z
# Generated by Django 2.2.3 on 2019-08-12 14:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('antiqueProjectApp', '0011_auto_20190812_1453'), ] operations = [ migrations.AlterModelOptions( name='antiquesale', o...
27.608696
121
0.618898
62
635
6.241935
0.790323
0
0
0
0
0
0
0
0
0
0
0.066098
0.261417
635
22
122
28.863636
0.759062
0.070866
0
0.125
1
0
0.289116
0.088435
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ec7de471a1339c9bbbe9e1a624becdd5f5814bcb
12,766
py
Python
arjuna/tpi/constant.py
bhargavkumar-65/arjuna
400dfd598096199e89d64eb6e8d2932892d37f6d
[ "Apache-2.0" ]
null
null
null
arjuna/tpi/constant.py
bhargavkumar-65/arjuna
400dfd598096199e89d64eb6e8d2932892d37f6d
[ "Apache-2.0" ]
null
null
null
arjuna/tpi/constant.py
bhargavkumar-65/arjuna
400dfd598096199e89d64eb6e8d2932892d37f6d
[ "Apache-2.0" ]
null
null
null
# This file is a part of Arjuna # Copyright 2015-2021 Rahul Verma # Website: www.RahulVerma.net # 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...
34.317204
220
0.691759
1,679
12,766
5.136986
0.248362
0.023536
0.033391
0.051246
0.279188
0.210783
0.182377
0.138203
0.097507
0.074899
0
0.004047
0.206408
12,766
372
221
34.317204
0.8473
0.070813
0
0
0
0
0.01023
0
0
0
0
0
0
1
0
false
0.008
0.032
0
0.984
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ec8d8381cf247759c56bdb48558a9553bb6bcbdd
558
py
Python
projects/migrations/0005_auto_20191104_1335.py
EddyAnalytics/eddy-backend
bc465996e51b9ebc3e498ad0d6434bac80b173a6
[ "Apache-2.0" ]
1
2021-09-24T07:52:08.000Z
2021-09-24T07:52:08.000Z
projects/migrations/0005_auto_20191104_1335.py
EddyAnalytics/eddy-backend
bc465996e51b9ebc3e498ad0d6434bac80b173a6
[ "Apache-2.0" ]
2
2021-05-25T22:16:18.000Z
2021-06-09T19:16:24.000Z
projects/migrations/0005_auto_20191104_1335.py
EddyAnalytics/eddy-backend
bc465996e51b9ebc3e498ad0d6434bac80b173a6
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.6 on 2019-11-04 13:35 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('projects', '0004_auto_20191016_1732'), ] operations = [ migrations.AlterField( model_name='data...
27.9
172
0.675627
63
558
5.857143
0.698413
0.065041
0.075881
0.119241
0
0
0
0
0
0
0
0.070295
0.209677
558
19
173
29.368421
0.76644
0.080645
0
0
1
0
0.201566
0.091977
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ec93a1c81ef3da8f819ff469badaece45bff6016
721
py
Python
Dynamic_Programming/514.Paint Fence/Solution.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
12
2019-05-04T04:21:27.000Z
2022-03-02T07:06:57.000Z
Dynamic_Programming/514.Paint Fence/Solution.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
1
2019-07-24T18:43:53.000Z
2019-07-24T18:43:53.000Z
Dynamic_Programming/514.Paint Fence/Solution.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
10
2019-07-01T04:03:04.000Z
2022-03-09T03:57:37.000Z
class Solution: """ @param n: non-negative integer, n posts @param k: non-negative integer, k colors @return: an integer, the total number of ways """ def numWays(self, n, k): # write your code here if n == 1: return k if n == 2: return k * k ...
23.258065
67
0.432732
112
721
2.776786
0.357143
0.038585
0.048232
0.051447
0.064309
0.064309
0.064309
0.064309
0.064309
0.064309
0
0.051345
0.432732
721
30
68
24.033333
0.709046
0.375867
0
0
0
0
0
0
0
0
0
0.033333
0
1
0.066667
false
0
0
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ec9411d5f0e87e024e7b4747ca4fba0a73af3ff3
4,885
py
Python
infoblox_netmri/api/remote/models/auth_user_remote.py
NastyaArslanova/infoblox-netmri
399d904399ba7958262c6f107fa3b0efdd55019b
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/auth_user_remote.py
NastyaArslanova/infoblox-netmri
399d904399ba7958262c6f107fa3b0efdd55019b
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/auth_user_remote.py
NastyaArslanova/infoblox-netmri
399d904399ba7958262c6f107fa3b0efdd55019b
[ "Apache-2.0" ]
null
null
null
from ..remote import RemoteModel class AuthUserRemote(RemoteModel): """ The defined NetMRI users. | ``id:`` The internal NetMRI identifier for this user. | ``attribute type:`` number | ``user_name:`` The user's login name. | ``attribute type:`` string | ``password:`` The user's pa...
35.919118
136
0.598567
540
4,885
5.259259
0.242593
0.141901
0.086972
0.024648
0.209507
0.127113
0.098592
0.047887
0.028169
0.028169
0
0.000868
0.292528
4,885
135
137
36.185185
0.820891
0.699284
0
0
0
0
0.353821
0.077243
0
0
0
0
0
1
0
false
0.176471
0.029412
0
0.088235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ec96adb11f6f45d1b3a0107acf9ec58b923eaca0
1,416
py
Python
dao/permissao_dao.py
lucianoanjos02/Choco-Stock-System-CSS
767e3827c8a68ea1620a0645daff3fae6076db8d
[ "Apache-2.0" ]
null
null
null
dao/permissao_dao.py
lucianoanjos02/Choco-Stock-System-CSS
767e3827c8a68ea1620a0645daff3fae6076db8d
[ "Apache-2.0" ]
null
null
null
dao/permissao_dao.py
lucianoanjos02/Choco-Stock-System-CSS
767e3827c8a68ea1620a0645daff3fae6076db8d
[ "Apache-2.0" ]
null
null
null
from database import db_session from models.permissao import Permissao class PermissaoDAO: ''' CLASSE PermissaoDAO - IMPLEMENTA O ACESSO AO BANCO RELACIONADO A CLASSE Permisssao DO MÓDULO models.py QUE MAPEIA A TABELA TPermissao @autor: Luciano Gomes Vieira dos Anjos - @data: 07/08...
35.4
111
0.634181
165
1,416
5.193939
0.387879
0.077013
0.093349
0.070012
0.332555
0.264877
0.229872
0.148191
0.109685
0.109685
0
0.021463
0.27613
1,416
40
112
35.4
0.814634
0.247881
0
0.26087
0
0
0
0
0
0
0
0.025
0
1
0.173913
false
0
0.086957
0
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ec979338a60a32d7f1dcfc648e96e5d51aaf3578
3,255
py
Python
tests/inventory/pipelines/test_data/fake_groups.py
pombredanne/forseti-security
68a9a88243460065e00b6c131b3d9abd0331fb37
[ "Apache-2.0" ]
1
2018-03-26T08:15:21.000Z
2018-03-26T08:15:21.000Z
tests/inventory/pipelines/test_data/fake_groups.py
pombredanne/forseti-security
68a9a88243460065e00b6c131b3d9abd0331fb37
[ "Apache-2.0" ]
null
null
null
tests/inventory/pipelines/test_data/fake_groups.py
pombredanne/forseti-security
68a9a88243460065e00b6c131b3d9abd0331fb37
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Forseti Security Authors. 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 ap...
42.272727
356
0.620584
336
3,255
5.931548
0.339286
0.045158
0.081285
0.103864
0.578525
0.453086
0.347717
0.341696
0.246864
0.158053
0
0.04099
0.20553
3,255
76
357
42.828947
0.729698
0.185561
0
0.241379
0
0.051724
0.686669
0.262058
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ec98d6d1f1cc3848a76839c79aa33f277ee2d672
5,085
py
Python
rs/Database/mackinac/test/test_workspace.py
stevenirby/RetSynth
89cd62221959fd2dc2952c30de6ecbe2d511479a
[ "BSD-2-Clause" ]
3
2018-08-24T23:45:11.000Z
2021-09-08T19:57:22.000Z
rs/Database/mackinac/test/test_workspace.py
stevenirby/RetSynth
89cd62221959fd2dc2952c30de6ecbe2d511479a
[ "BSD-2-Clause" ]
1
2019-10-11T12:08:25.000Z
2019-10-14T16:36:14.000Z
rs/Database/mackinac/test/test_workspace.py
stevenirby/RetSynth
89cd62221959fd2dc2952c30de6ecbe2d511479a
[ "BSD-2-Clause" ]
2
2021-08-21T19:52:43.000Z
2021-09-25T12:39:03.000Z
import pytest import mackinac @pytest.fixture(scope='module') def test_model(b_theta_genome_id, b_theta_id): # Reconstruct a model so there is a folder in the workspace. stats = mackinac.create_patric_model(b_theta_genome_id, model_id=b_theta_id) yield stats mackinac.delete_patric_model(b_theta_id) ...
41.008065
115
0.692035
664
5,085
5.025602
0.183735
0.039856
0.044951
0.032364
0.611627
0.479772
0.440515
0.369494
0.355709
0.325142
0
0.013457
0.196264
5,085
123
116
41.341463
0.803034
0.054867
0
0.263736
0
0
0.088958
0.01375
0
0
0
0
0.32967
1
0.21978
false
0
0.021978
0.032967
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ec997e0a81787d02a2f083e31363f73c83ab5f72
1,593
py
Python
pragfastapi/web_server_security.py
skillplot/pragfastapi
b7b975756b384cfe9b792084113516797f3248ab
[ "BSD-3-Clause" ]
null
null
null
pragfastapi/web_server_security.py
skillplot/pragfastapi
b7b975756b384cfe9b792084113516797f3248ab
[ "BSD-3-Clause" ]
null
null
null
pragfastapi/web_server_security.py
skillplot/pragfastapi
b7b975756b384cfe9b792084113516797f3248ab
[ "BSD-3-Clause" ]
null
null
null
## Copyright (c) 2020 mangalbhaskar. """FastAPI Security https://fastapi.tiangolo.com/tutorial/security/first-steps/ https://fastapi.tiangolo.com/advanced/behind-a-proxy https://fastapi.tiangolo.com/tutorial/security/get-current-user/ https://en.wikipedia.org/wiki/Security_through_obscurity """ __author__ = 'mangalbh...
51.387097
389
0.7715
253
1,593
4.806324
0.470356
0.049342
0.059211
0.056743
0.185855
0.177632
0.113487
0.113487
0.059211
0
0
0.010152
0.134338
1,593
30
390
53.1
0.871646
0.775267
0
0
0
0
0.146199
0
0
0
0
0
0
1
0
false
0.222222
0.222222
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ec9bc4c2f2362644d8c5d6b48995a2dd471e8ea7
490
py
Python
worlds/migrations/0010_alter_job_job_definition.py
cognitive-space/warpzone
06acee2add83cf9ddf981b4e4187dd742e627561
[ "MIT" ]
1
2022-02-25T12:04:13.000Z
2022-02-25T12:04:13.000Z
worlds/migrations/0010_alter_job_job_definition.py
cognitive-space/warpzone
06acee2add83cf9ddf981b4e4187dd742e627561
[ "MIT" ]
null
null
null
worlds/migrations/0010_alter_job_job_definition.py
cognitive-space/warpzone
06acee2add83cf9ddf981b4e4187dd742e627561
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-04 18:09 import django.core.serializers.json from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('worlds', '0009_job_job_definition'), ] operations = [ migrations.AlterField( model_name='job...
24.5
114
0.653061
55
490
5.727273
0.690909
0.063492
0.133333
0.15873
0
0
0
0
0
0
0
0.050667
0.234694
490
19
115
25.789474
0.789333
0.091837
0
0
1
0
0.103837
0.051919
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eca32b4d29b6eccbb8b8be4c0d9f2e11ec91c98f
2,923
py
Python
Mastermind/Mastermind.py
jamtot/PyProjects
ddfbefd311736e1cbb910983f5b2377e08d35bf3
[ "MIT" ]
null
null
null
Mastermind/Mastermind.py
jamtot/PyProjects
ddfbefd311736e1cbb910983f5b2377e08d35bf3
[ "MIT" ]
null
null
null
Mastermind/Mastermind.py
jamtot/PyProjects
ddfbefd311736e1cbb910983f5b2377e08d35bf3
[ "MIT" ]
null
null
null
import random class Board(object): def __init__(self, rows, columns, pegs): self.rows = rows self.columns = columns self.pegs = pegs self.code = self.makeCode() def makeCode(self): # randomly generate a peg for each row code = [] for i in xrange(self.row...
29.826531
126
0.49196
330
2,923
4.306061
0.327273
0.057002
0.021112
0.033779
0.054187
0.040816
0.040816
0.040816
0
0
0
0.004569
0.400958
2,923
97
127
30.134021
0.806967
0.121108
0
0.1
0
0
0.07235
0
0
0
0
0
0
0
null
null
0
0.014286
null
null
0.085714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ecabfe67203fb2673cbfaca8c511a9469d572682
1,292
py
Python
Breast Cancer Prediction by Logistic Regression/cancer_prediction.py
parakh-gupta/Machine-Learning-
48566faaa56aada89de5d0c7f1f8ad7917130bc3
[ "MIT" ]
null
null
null
Breast Cancer Prediction by Logistic Regression/cancer_prediction.py
parakh-gupta/Machine-Learning-
48566faaa56aada89de5d0c7f1f8ad7917130bc3
[ "MIT" ]
null
null
null
Breast Cancer Prediction by Logistic Regression/cancer_prediction.py
parakh-gupta/Machine-Learning-
48566faaa56aada89de5d0c7f1f8ad7917130bc3
[ "MIT" ]
null
null
null
# Importing the libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt # Importing our cancer dataset dataset = pd.read_csv('breast_cancer_dataset.csv') X = dataset.iloc[:, 1:9].values Y = dataset.iloc[:, 9].values # Encoding categorical data values from sklearn.preprocessing impo...
33.128205
94
0.78096
189
1,292
5.148148
0.407407
0.056526
0.073998
0.061665
0.059609
0
0
0
0
0
0
0.014363
0.137771
1,292
38
95
34
0.859066
0.164861
0
0
0
0
0.093901
0.024201
0
0
0
0
0
1
0
false
0
0.32
0
0.32
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ecac0bb045b128bc80492d9a7cb8155cd87a1d6e
524
py
Python
sichu/cabinet/backends.py
ax003d/sichu_web
f01002f169fb5a683996bd5987572d55f1fa7c3b
[ "MIT" ]
55
2016-04-05T15:42:21.000Z
2018-07-19T07:13:09.000Z
sichu/cabinet/backends.py
ax003d/sichu_web
f01002f169fb5a683996bd5987572d55f1fa7c3b
[ "MIT" ]
null
null
null
sichu/cabinet/backends.py
ax003d/sichu_web
f01002f169fb5a683996bd5987572d55f1fa7c3b
[ "MIT" ]
18
2016-04-05T15:40:13.000Z
2018-03-15T23:50:27.000Z
import models class WeiboBackend(object): supports_object_permissions = False supports_anonymous_user = True supports_inactive_user = True def authenticate(self, wid=None): try: wu = models.WeiboUser.objects.get(uid=wid) return wu.user except models.WeiboUser.D...
24.952381
54
0.639313
60
524
5.433333
0.466667
0.04908
0.134969
0
0
0
0
0
0
0
0
0
0.290076
524
20
55
26.2
0.876344
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ecba89c508cbec96264f11ef617723d1340ba222
5,901
py
Python
benchmarks.py
jonahbaron/SELinuxBenchmarks
fbad9a68c8c66df08858ca18817caf3fdf25e8d0
[ "MIT" ]
null
null
null
benchmarks.py
jonahbaron/SELinuxBenchmarks
fbad9a68c8c66df08858ca18817caf3fdf25e8d0
[ "MIT" ]
null
null
null
benchmarks.py
jonahbaron/SELinuxBenchmarks
fbad9a68c8c66df08858ca18817caf3fdf25e8d0
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import division import datetime import os def copytime(filesrc,filedst): t1 = datetime.datetime.now() os.system("cp " + filesrc + " copyfile.txt") t2 = datetime.datetime.now() t3 = t2 - t1 # print "Evaluating " + filesrc # print "Pre-copy time: ", t1 # print "Post-copy time: ", ...
22.352273
193
0.672598
797
5,901
4.95734
0.190715
0.048595
0.062516
0.031891
0.340673
0.29309
0.273095
0.267021
0.212604
0.175146
0
0.040304
0.175902
5,901
263
194
22.437262
0.772157
0.112862
0
0.267857
0
0.029762
0.24289
0
0
0
0
0
0
0
null
null
0
0.017857
null
null
0.172619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ecc72b216fa142071c976e01f56b2e384eaa0e57
410
py
Python
9. Testing with pytest-mock and pytest-flask/source_code/tests/test_example.py
Edmartt/articles
93d62086ff141f5646193afb868973e94f33f1e6
[ "MIT" ]
31
2020-03-01T20:27:03.000Z
2022-02-15T14:53:09.000Z
9. Testing with pytest-mock and pytest-flask/source_code/tests/test_example.py
hmajid2301/articles
27f38cc6c2dd470d879b30d54d1e804a7d76caab
[ "MIT" ]
24
2020-04-04T12:18:25.000Z
2022-03-29T08:41:57.000Z
9. Testing with pytest-mock and pytest-flask/source_code/tests/test_example.py
Edmartt/articles
93d62086ff141f5646193afb868973e94f33f1e6
[ "MIT" ]
52
2020-02-29T04:01:10.000Z
2022-03-11T07:54:16.000Z
import pytest import example.app @pytest.fixture def app(mocker): mocker.patch("flask_sqlalchemy.SQLAlchemy.init_app", return_value=True) mocker.patch("flask_sqlalchemy.SQLAlchemy.create_all", return_value=True) mocker.patch("example.database.get_all", return_value={}) return example.app.app def te...
24.117647
77
0.74878
54
410
5.5
0.462963
0.111111
0.107744
0.175084
0.380471
0
0
0
0
0
0
0.008403
0.129268
410
16
78
25.625
0.823529
0
0
0
0
0
0.241463
0.239024
0
0
0
0
0.090909
1
0.181818
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eccfb2dcab641e50e3700ce395f33f54ddb2988d
4,108
py
Python
dz.py
miliskok/bot1
14d39cb0d1736b92b5aa864a7154c3df309f29a8
[ "MIT" ]
null
null
null
dz.py
miliskok/bot1
14d39cb0d1736b92b5aa864a7154c3df309f29a8
[ "MIT" ]
null
null
null
dz.py
miliskok/bot1
14d39cb0d1736b92b5aa864a7154c3df309f29a8
[ "MIT" ]
null
null
null
from telebot import types def my_input(bot, chat_id, txt, ResponseHandler): message = bot.send_message(chat_id, text=txt) bot.register_next_step_handler(message, ResponseHandler) # ----------------------------------------------------------------------- def my_inputInt(bot, chat_id, txt, ResponseHandler): ...
36.035088
151
0.649221
567
4,108
4.520282
0.312169
0.095981
0.131877
0.165821
0.405384
0.352712
0.272337
0.206789
0.172844
0.172844
0
0.022585
0.223953
4,108
113
152
36.353982
0.781368
0.049659
0
0.129412
0
0.023529
0.195641
0
0
0
0
0
0
1
0.152941
false
0
0.011765
0
0.164706
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ecd785fdd68e19137df6aee7b4685002919852ff
2,186
py
Python
randomPassword.py
Jarvis-Yu/RandomPasswordGenerator
b4b0a8ba3efc51ea45cb78a1d714bca64f38dd3c
[ "MIT" ]
null
null
null
randomPassword.py
Jarvis-Yu/RandomPasswordGenerator
b4b0a8ba3efc51ea45cb78a1d714bca64f38dd3c
[ "MIT" ]
null
null
null
randomPassword.py
Jarvis-Yu/RandomPasswordGenerator
b4b0a8ba3efc51ea45cb78a1d714bca64f38dd3c
[ "MIT" ]
null
null
null
import sys from random import randint class SymbolSet: def __init__(self, string: str, weight: int) -> None: self.__str = string self.__weight = weight def getWeight(self) -> int: return self.__weight def getChar(self) -> str: index = randint(0, len(self.__str) - 1) ...
25.717647
83
0.518298
209
2,186
5.287081
0.330144
0.027149
0.027149
0.021719
0
0
0
0
0
0
0
0.026696
0.365965
2,186
84
84
26.02381
0.770563
0.011894
0
0.151515
0
0
0.072786
0.034307
0
0
0
0
0
1
0.075758
false
0.090909
0.030303
0.015152
0.242424
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ece62b8c71685d3565e89ccb8811b2978ec700a5
1,372
py
Python
gym/envs/box2d/find_unconstructed_roads.py
Riya5915/gym
794bcdf7f1e2a13c47451b6132b6e7ac626cf8d8
[ "Python-2.0", "OLDAP-2.7" ]
46
2019-03-18T13:23:27.000Z
2022-03-31T10:41:24.000Z
gym/envs/box2d/find_unconstructed_roads.py
Riya5915/gym
794bcdf7f1e2a13c47451b6132b6e7ac626cf8d8
[ "Python-2.0", "OLDAP-2.7" ]
38
2019-03-26T19:11:04.000Z
2022-02-19T14:19:51.000Z
gym/envs/box2d/find_unconstructed_roads.py
Riya5915/gym
794bcdf7f1e2a13c47451b6132b6e7ac626cf8d8
[ "Python-2.0", "OLDAP-2.7" ]
21
2019-06-14T12:54:35.000Z
2022-01-27T11:50:46.000Z
import os import shutil from pdb import set_trace from gym.envs.box2d.car_racing import CarRacing import numpy as np import pandas as pd def find_roads(): path = './touching_tracks_tests' # Check if dir exists TODO if os.path.isdir(path): # Remove files TODO shutil.rmtree(path) # Cre...
29.191489
67
0.553207
185
1,372
3.886486
0.437838
0.075104
0.069541
0.058414
0.107093
0
0
0
0
0
0
0.025751
0.3207
1,372
46
68
29.826087
0.745708
0.042274
0
0.054054
0
0
0.052672
0.017557
0
0
0
0.021739
0
1
0.027027
false
0
0.162162
0
0.189189
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ece8a683215ccb0760fc7055bb87e0341581ea24
438
py
Python
order/migrations/0008_order_stripe_payment_id.py
abdellatifLabr/MyStore
6a1db004d7372c236be72077aa55260927a46135
[ "MIT" ]
null
null
null
order/migrations/0008_order_stripe_payment_id.py
abdellatifLabr/MyStore
6a1db004d7372c236be72077aa55260927a46135
[ "MIT" ]
null
null
null
order/migrations/0008_order_stripe_payment_id.py
abdellatifLabr/MyStore
6a1db004d7372c236be72077aa55260927a46135
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-08-21 13:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order', '0007_auto_20200818_1555'), ] operations = [ migrations.AddField( model_name='order', name='stripe_payment_id'...
21.9
62
0.60274
47
438
5.446809
0.808511
0
0
0
0
0
0
0
0
0
0
0.102236
0.285388
438
19
63
23.052632
0.715655
0.098174
0
0
1
0
0.127226
0.058524
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ecf4a484a133b501fef43b41e1581f1f039d234a
708
py
Python
ibsng/handler/user/change_status.py
ParspooyeshFanavar/pyibsng
d48bcf4f25e3f23461528bf0ff8870cc3d537444
[ "MIT" ]
6
2018-03-06T10:16:36.000Z
2021-12-05T12:43:10.000Z
ibsng/handler/user/change_status.py
ParspooyeshFanavar/pyibsng
d48bcf4f25e3f23461528bf0ff8870cc3d537444
[ "MIT" ]
3
2018-03-06T10:27:08.000Z
2022-01-02T15:21:27.000Z
ibsng/handler/user/change_status.py
ParspooyeshFanavar/pyibsng
d48bcf4f25e3f23461528bf0ff8870cc3d537444
[ "MIT" ]
3
2018-01-06T16:28:31.000Z
2018-09-17T19:47:19.000Z
"""Change user status API method.""" from ibsng.handler.handler import Handler class changeStatus(Handler): """Change user status method class.""" def control(self): """Validate inputs after setup method. :return: None :rtype: None """ self.is_valid(self.user_id, int)...
24.413793
63
0.583333
82
708
4.95122
0.414634
0.08867
0.073892
0.093596
0.1133
0
0
0
0
0
0
0
0.316384
708
28
64
25.285714
0.838843
0.440678
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
019f9037f269b579331879f1c3e044a3dd5179e7
639
py
Python
python/tests/test_product_service.py
gregorriegler/ValidateAndAddProduct-Refactoring-Kata
0d142be622fffbcd97ee9c12e5db2d4431adff73
[ "MIT" ]
12
2019-08-05T18:49:45.000Z
2021-08-14T09:39:38.000Z
python/tests/test_product_service.py
gregorriegler/ValidateAndAddProduct-Refactoring-Kata
0d142be622fffbcd97ee9c12e5db2d4431adff73
[ "MIT" ]
1
2019-08-07T05:56:38.000Z
2019-08-07T05:56:38.000Z
python/tests/test_product_service.py
gregorriegler/ValidateAndAddProduct-Refactoring-Kata
0d142be622fffbcd97ee9c12e5db2d4431adff73
[ "MIT" ]
8
2019-08-06T15:33:39.000Z
2021-08-18T05:53:14.000Z
from approvaltests import verify from database import DatabaseAccess from product_service import validate_and_add from response import ProductFormData class FakeDatabase(DatabaseAccess): def __init__(self): self.product = None def store_product(self, product): self.product = product ...
22.821429
78
0.719875
75
639
5.88
0.453333
0.07483
0.095238
0
0
0
0
0
0
0
0
0.007874
0.205008
639
27
79
23.666667
0.860236
0.028169
0
0
0
0
0.072934
0
0
0
0
0
0
1
0.1875
false
0
0.25
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
01a4afdda59f16bb04094a0e81060a32adc816a4
1,296
py
Python
project/Lagou/Analyzer.py
zhengbomo/python_practice
1bc5c4ff426f806639bbc01249e66747271ec398
[ "MIT" ]
2
2016-10-03T10:20:02.000Z
2018-03-20T00:38:53.000Z
project/Lagou/Analyzer.py
zhengbomo/python_practice
1bc5c4ff426f806639bbc01249e66747271ec398
[ "MIT" ]
2
2019-10-08T07:13:44.000Z
2019-10-08T07:13:46.000Z
project/Lagou/Analyzer.py
zhengbomo/python_practice
1bc5c4ff426f806639bbc01249e66747271ec398
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- from LagouDb import LagouDb class Analyzer(object): def __init__(self): self.db = LagouDb() # 统计最受欢迎的工作 @staticmethod def get_popular_jobs(since=None): if since: pass else: pass # 统计职位在不同城市的薪资情况 def get_...
26.44898
68
0.506944
161
1,296
3.944099
0.310559
0.047244
0.075591
0.037795
0.393701
0.308661
0.176378
0.176378
0.116535
0.116535
0
0.015421
0.349537
1,296
48
69
27
0.737841
0.071759
0
0.485714
0
0
0.061873
0
0
0
0
0
0
1
0.142857
false
0.057143
0.028571
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
01b2a77f919ad7bdbd5b15c348bc9f7ebe6d2c50
860
py
Python
dragon/python/_api/io/__init__.py
seetaresearch/Dragon
494774d3a545f807d483fd9e6e4563cedec6dda5
[ "BSD-2-Clause" ]
81
2018-03-13T13:08:37.000Z
2020-06-13T14:36:29.000Z
dragon/python/_api/io/__init__.py
seetaresearch/Dragon
494774d3a545f807d483fd9e6e4563cedec6dda5
[ "BSD-2-Clause" ]
2
2019-08-07T09:26:07.000Z
2019-08-26T07:33:55.000Z
dragon/python/_api/io/__init__.py
seetaresearch/Dragon
494774d3a545f807d483fd9e6e4563cedec6dda5
[ "BSD-2-Clause" ]
13
2018-03-13T13:08:50.000Z
2020-05-28T08:20:22.000Z
# ------------------------------------------------------------ # Copyright (c) 2017-present, SeetaTech, Co.,Ltd. # # Licensed under the BSD 2-Clause License. # You should have received a copy of the BSD 2-Clause License # along with the software. If not, See, # # <https://opensource.org/licenses/BSD-2-Clause> # # -...
37.391304
62
0.67907
111
860
4.981982
0.513514
0.090416
0.126582
0.144665
0.292948
0.220615
0.220615
0
0
0
0
0.009174
0.112791
860
22
63
39.090909
0.715596
0.417442
0
0
0
0
0.002041
0
0
0
0
0
0
1
0
false
0
0.888889
0
0.888889
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
01b4e1cff23503eb768cc58d9cf9b313eba136eb
11,259
py
Python
pompy/demos.py
alexliberzonlab/pompy
8bba8138c43800e22ddc23107f10b06e5df69860
[ "MIT" ]
12
2016-03-10T13:52:07.000Z
2021-03-09T17:22:28.000Z
pompy/demos.py
alexliberzonlab/pompy
8bba8138c43800e22ddc23107f10b06e5df69860
[ "MIT" ]
1
2018-11-13T12:35:10.000Z
2018-11-14T09:35:15.000Z
pompy/demos.py
alexliberzonlab/pompy
8bba8138c43800e22ddc23107f10b06e5df69860
[ "MIT" ]
7
2016-03-10T13:52:36.000Z
2021-05-09T15:26:39.000Z
# -*- coding: utf-8 -*- """Demonstrations of setting up models and visualising outputs.""" from __future__ import division __authors__ = 'Matt Graham' __license__ = 'MIT' import sys import matplotlib.pyplot as plt import matplotlib.cm as cm from matplotlib.animation import FuncAnimation import numpy as np from pomp...
34.53681
79
0.657341
1,563
11,259
4.56174
0.153551
0.04418
0.036466
0.023983
0.698457
0.686957
0.685133
0.668724
0.662272
0.630295
0
0.024623
0.246114
11,259
325
80
34.643077
0.815386
0.382894
0
0.464789
0
0
0.03303
0
0
0
0
0
0
1
0.084507
false
0
0.049296
0
0.21831
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
01b5f136e6b3f8db60e8582400e269c2390bcaf3
2,604
py
Python
tests/filters/test_types.py
SocialFinanceDigitalLabs/sfdata-stream-parser
27d7275403094b376cbd624c270ddb43e45f8bc0
[ "MIT" ]
1
2022-03-29T12:13:05.000Z
2022-03-29T12:13:05.000Z
tests/filters/test_types.py
SocialFinanceDigitalLabs/sfdata-stream-parser
27d7275403094b376cbd624c270ddb43e45f8bc0
[ "MIT" ]
null
null
null
tests/filters/test_types.py
SocialFinanceDigitalLabs/sfdata-stream-parser
27d7275403094b376cbd624c270ddb43e45f8bc0
[ "MIT" ]
null
null
null
import datetime from unittest.mock import MagicMock from sfdata_stream_parser import events from sfdata_stream_parser.filters.types import integer_converter, float_converter, cell_value_converter, _from_excel, \ date_converter def cell(value): return events.Cell(value=value) def test_decorator(): mock_...
37.73913
119
0.709293
382
2,604
4.662304
0.188482
0.189781
0.101067
0.10219
0.560921
0.400337
0.262212
0.202134
0.202134
0.202134
0
0.097704
0.147081
2,604
68
120
38.294118
0.703287
0
0
0.083333
0
0
0.102919
0
0
0
0
0
0.645833
1
0.125
false
0
0.083333
0.020833
0.229167
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
01b8dfd2cbed583b1899fd1e2c5006406e68e7d4
700
py
Python
setup.py
CrossNox/symspellpy
11eca2051b52a6a248c1a9272778283801c27399
[ "MIT" ]
null
null
null
setup.py
CrossNox/symspellpy
11eca2051b52a6a248c1a9272778283801c27399
[ "MIT" ]
null
null
null
setup.py
CrossNox/symspellpy
11eca2051b52a6a248c1a9272778283801c27399
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='symspellpy', packages=find_packages(exclude=['test']), package_data={ 'symspellpy': ['README.md', 'LICENSE'] }, version='0.9.0', description='Keyboard layout aware version of SymSpell', long_description=open('README.md').read(...
24.137931
68
0.595714
73
700
5.60274
0.726027
0.05868
0
0
0
0
0
0
0
0
0
0.018382
0.222857
700
28
69
25
0.733456
0
0
0.08
0
0
0.357143
0
0
0
0
0
0
1
0
true
0
0.04
0
0.04
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
01be93479e768b550b7ca0a6d9ead048fdbc74b1
437
py
Python
mistos-backend/src/app/tests/databasetest.py
Maddonix/mistos_2
4bd9f45ad9e49f4178c0b8bb1a177d7db5349c34
[ "MIT" ]
1
2021-03-22T10:57:01.000Z
2021-03-22T10:57:01.000Z
mistos-backend/src/app/tests/databasetest.py
Maddonix/mistos_2
4bd9f45ad9e49f4178c0b8bb1a177d7db5349c34
[ "MIT" ]
44
2021-02-17T15:07:17.000Z
2021-04-05T07:07:09.000Z
mistos-backend/src/app/tests/databasetest.py
Maddonix/mistos_2
4bd9f45ad9e49f4178c0b8bb1a177d7db5349c34
[ "MIT" ]
null
null
null
from app.database import Base from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker SQLALCHEMY_DATABASE_URL = "sqlite:///./test.db" engine = create_engine( SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False} ) TestingSes...
29.133333
70
0.814645
54
437
6.388889
0.518519
0.121739
0.104348
0
0
0
0
0
0
0
0
0
0.100687
437
14
71
31.214286
0.877863
0
0
0
0
0
0.08238
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
01ce7841d89fe7e2397c3292cabf6998f18a2285
7,401
py
Python
nerblackbox/cli.py
af-ai-center/nerblackbox
a2b751d0b74c3f4779ccf3846e35d8575b488027
[ "Apache-2.0" ]
11
2020-09-24T12:10:52.000Z
2021-05-28T12:59:06.000Z
nerblackbox/cli.py
af-ai-center/nerblackbox
a2b751d0b74c3f4779ccf3846e35d8575b488027
[ "Apache-2.0" ]
1
2020-07-03T13:13:35.000Z
2020-07-03T13:13:35.000Z
nerblackbox/cli.py
af-ai-center/nerblackbox
a2b751d0b74c3f4779ccf3846e35d8575b488027
[ "Apache-2.0" ]
null
null
null
"""Command Line Interface of the nerblackbox package.""" import os import subprocess from os.path import join import click from typing import Dict, Any from nerblackbox.modules.main import NerBlackBoxMain ################################################################################################################...
31.227848
120
0.622348
860
7,401
5.139535
0.174419
0.063348
0.040724
0.066516
0.54095
0.48914
0.444344
0.437783
0.369457
0.327828
0
0.001919
0.154979
7,401
236
121
31.360169
0.704829
0.176868
0
0.410256
0
0
0.238295
0.059813
0
0
0
0
0
1
0.108974
false
0.089744
0.038462
0
0.147436
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
01e3727da95a7367f41b7450467b8cf4844cacbb
720
py
Python
tests/test_euclidean_distance_from_label_centroid_map.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
64
2020-03-18T12:11:22.000Z
2022-03-31T08:19:18.000Z
tests/test_euclidean_distance_from_label_centroid_map.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
148
2020-05-14T06:14:11.000Z
2022-03-26T15:02:31.000Z
tests/test_euclidean_distance_from_label_centroid_map.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
16
2020-05-31T00:53:44.000Z
2022-03-23T13:20:57.000Z
import pyclesperanto_prototype as cle import numpy as np def test_euclidean_distance_from_label_centroid_map(): labels = cle.push(np.asarray([ [1, 1, 1, 2], [1, 1, 1, 2], [1, 1, 1, 2], [2, 2, 2, 2] ])) reference = cle.push(np.asarray([ [1.4142135, 1, 1.4142135, 2.3...
23.225806
67
0.593056
106
720
3.877358
0.367925
0.043796
0.021898
0.029197
0.399027
0.238443
0.238443
0.029197
0
0
0
0.215356
0.258333
720
30
68
24
0.554307
0
0
0.130435
0
0
0
0
0
0
0
0
0.043478
1
0.043478
false
0
0.086957
0
0.130435
0.130435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
01e653aec7c72a4edc41cc92c9e94cb724a0ea72
1,510
py
Python
lnbits/helpers.py
frennkie/lnbits
5fe64d324dc7ac05d1d0fc25eb5ad6a5a414ea8a
[ "MIT" ]
null
null
null
lnbits/helpers.py
frennkie/lnbits
5fe64d324dc7ac05d1d0fc25eb5ad6a5a414ea8a
[ "MIT" ]
null
null
null
lnbits/helpers.py
frennkie/lnbits
5fe64d324dc7ac05d1d0fc25eb5ad6a5a414ea8a
[ "MIT" ]
null
null
null
import json import os import shortuuid from typing import List, NamedTuple, Optional from .settings import LNBITS_PATH class Extension(NamedTuple): code: str is_valid: bool name: Optional[str] = None short_description: Optional[str] = None icon: Optional[str] = None contributors: Optional[Li...
25.59322
112
0.628477
181
1,510
5.055249
0.513812
0.038251
0.04918
0.034973
0.065574
0.065574
0
0
0
0
0
0.034703
0.274834
1,510
58
113
26.034483
0.800913
0
0
0
0
0
0.028477
0
0
0
0
0
0
1
0.068182
false
0
0.113636
0.022727
0.704545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
01ed87428e6f537e0eb161da0a5faab68e9ea8b8
4,455
py
Python
aiida_siesta/calculations/tkdict.py
pfebrer96/aiida_siesta_plugin
ef0b086f070767921edf96ca4195176877768f69
[ "MIT" ]
null
null
null
aiida_siesta/calculations/tkdict.py
pfebrer96/aiida_siesta_plugin
ef0b086f070767921edf96ca4195176877768f69
[ "MIT" ]
null
null
null
aiida_siesta/calculations/tkdict.py
pfebrer96/aiida_siesta_plugin
ef0b086f070767921edf96ca4195176877768f69
[ "MIT" ]
null
null
null
""" Module with implementation of TKDict (translated-keys-dictionary) class. It is actually a dictionary with 'translation insensitive' keys. For example, in the FDFDict subclass: MD.TypeOfRun, md-type-of-run, mdTypeOfRun, mdtypeofrun all represent the same key in the dictionary. The actual form of the key return...
33.246269
99
0.637935
570
4,455
4.794737
0.322807
0.068423
0.030735
0.023417
0.234907
0.197219
0.163922
0.139041
0.139041
0.139041
0
0.002747
0.264646
4,455
133
100
33.496241
0.831502
0.447363
0
0.316667
0
0
0.012227
0
0
0
0
0
0
1
0.266667
false
0
0.016667
0.066667
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
01f67f5b0c322bd6d8e722f14bf8f8c4a9aba5cd
1,544
py
Python
setup.py
actingthegroat/pyxtf
b71d38e4435dffc4732748b6c2b9611e20192550
[ "MIT" ]
27
2018-04-05T09:07:41.000Z
2022-03-03T12:32:08.000Z
setup.py
actingthegroat/pyxtf
b71d38e4435dffc4732748b6c2b9611e20192550
[ "MIT" ]
12
2017-07-24T19:25:31.000Z
2021-08-04T12:30:04.000Z
setup.py
actingthegroat/pyxtf
b71d38e4435dffc4732748b6c2b9611e20192550
[ "MIT" ]
18
2017-04-29T16:09:37.000Z
2022-03-25T17:09:51.000Z
from os import path from setuptools import setup from tools.generate_pyi import generate_pyi def main(): # Generate .pyi files import pyxtf.xtf_ctypes generate_pyi(pyxtf.xtf_ctypes) import pyxtf.vendors.kongsberg generate_pyi(pyxtf.vendors.kongsberg) # read the contents of README file thi...
33.565217
77
0.603627
166
1,544
5.427711
0.578313
0.061043
0.031077
0.066593
0
0
0
0
0
0
0
0.013321
0.270725
1,544
45
78
34.311111
0.786856
0.044689
0
0
1
0
0.307954
0.014956
0
0
0
0
0
1
0.027778
false
0
0.138889
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
01f76911d251d1008baac3a420a0d8396ec92c26
14,029
py
Python
examples/gdl/font.py
simoncozens/pysilfont
bb8a9fc58a83e074bbcc466ba058841845b9107e
[ "MIT" ]
41
2015-05-21T21:12:26.000Z
2022-02-17T17:23:14.000Z
examples/gdl/font.py
simoncozens/pysilfont
bb8a9fc58a83e074bbcc466ba058841845b9107e
[ "MIT" ]
63
2015-05-15T10:25:55.000Z
2021-02-23T04:51:17.000Z
examples/gdl/font.py
simoncozens/pysilfont
bb8a9fc58a83e074bbcc466ba058841845b9107e
[ "MIT" ]
12
2015-06-12T11:52:08.000Z
2020-09-23T10:40:59.000Z
#!/usr/bin/env python 'The main font object for GDL creation. Depends on fonttools' __url__ = 'http://github.com/silnrsi/pysilfont' __copyright__ = 'Copyright (c) 2012 SIL International (http://www.sil.org)' __license__ = 'Released under the MIT License (http://opensource.org/licenses/MIT)' import os, re, traceback fr...
35.516456
140
0.511441
1,752
14,029
4.070776
0.17637
0.022715
0.012339
0.007011
0.139933
0.103197
0.075154
0.061694
0.044307
0.035614
0
0.00653
0.355977
14,029
394
141
35.606599
0.782844
0.064224
0
0.174174
0
0.003003
0.075233
0.003205
0
0
0
0.002538
0
0
null
null
0.006006
0.015015
null
null
0.003003
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
01f971b9b4b3f6976195ea6a40b577d032b40f59
3,146
py
Python
internship-qualification/mercari-summer-internship-2017/tests.py
mikoim/funstuff
3c391c76784a4bb37983c1a251773bfa61182ce1
[ "MIT" ]
null
null
null
internship-qualification/mercari-summer-internship-2017/tests.py
mikoim/funstuff
3c391c76784a4bb37983c1a251773bfa61182ce1
[ "MIT" ]
null
null
null
internship-qualification/mercari-summer-internship-2017/tests.py
mikoim/funstuff
3c391c76784a4bb37983c1a251773bfa61182ce1
[ "MIT" ]
null
null
null
import os import uuid from unittest import TestCase import grpc import grpc._channel from google.protobuf import json_format as _json_format import api_pb2 import api_pb2_grpc def random_id() -> str: return str(uuid.uuid4()) def sample(item_id='', name='', title='', description='', price=0, pv=0, status=False...
31.777778
113
0.660839
401
3,146
4.910224
0.25187
0.048756
0.036567
0.04063
0.532758
0.452006
0.425597
0.425597
0.337735
0.319959
0
0.011784
0.217737
3,146
98
114
32.102041
0.788297
0.020979
0
0.267606
0
0
0.031849
0
0
0
0
0.010204
0.126761
1
0.140845
false
0.014085
0.112676
0.028169
0.295775
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
01fb3c277fcec06fe75e31b0dd5908240d6b59b3
764
py
Python
src/pkg/caendr/caendr/models/datastore/user_token.py
AndersenLab/CAENDR
ce4cdb74db736db8226ffc90988959b71b0d5ff5
[ "MIT" ]
3
2022-02-09T07:04:37.000Z
2022-03-11T02:46:35.000Z
src/pkg/caendr/caendr/models/datastore/user_token.py
AndersenLab/CAENDR
ce4cdb74db736db8226ffc90988959b71b0d5ff5
[ "MIT" ]
4
2022-01-28T22:28:08.000Z
2022-02-11T21:47:15.000Z
src/pkg/caendr/caendr/models/datastore/user_token.py
AndersenLab/CAENDR
ce4cdb74db736db8226ffc90988959b71b0d5ff5
[ "MIT" ]
1
2022-01-11T03:39:02.000Z
2022-01-11T03:39:02.000Z
from caendr.models.datastore import Entity class UserToken(Entity): kind = 'user_token' def __init__(self, *args, **kwargs): super(UserToken, self).__init__(*args, **kwargs) self.set_properties(**kwargs) def set_properties(self, **kwargs): ''' Sets allowed properties for the UserToken instance ...
25.466667
62
0.660995
95
764
5.189474
0.368421
0.10142
0.085193
0
0
0
0
0
0
0
0
0
0.197644
764
29
63
26.344828
0.804241
0.181937
0
0
0
0
0.066116
0
0
0
0
0
0
1
0.25
false
0
0.0625
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
01fda5d9649b50cc0a7b08f63afaafb4c1b330a4
8,834
py
Python
tests/shinytest/commands/test_commands.py
shinymud/ShinyMUD
3f659d8be4468c9a8745b8797f5f96c2bc86533c
[ "MIT" ]
35
2015-01-06T12:01:38.000Z
2022-01-22T13:57:26.000Z
tests/shinytest/commands/test_commands.py
shinymud/ShinyMUD
3f659d8be4468c9a8745b8797f5f96c2bc86533c
[ "MIT" ]
1
2021-06-24T13:21:16.000Z
2021-07-06T18:46:06.000Z
tests/shinytest/commands/test_commands.py
shinymud/ShinyMUD
3f659d8be4468c9a8745b8797f5f96c2bc86533c
[ "MIT" ]
8
2015-02-04T16:30:52.000Z
2021-02-03T15:02:38.000Z
from shinytest import ShinyTestCase # Test all of the general commands! class TestGeneralCommands(ShinyTestCase): def test_command_register(self): from shinymud.models.area import Area from shinymud.data import config from shinymud.models.player import Player from shinymud.commands...
39.61435
92
0.590333
1,119
8,834
4.596962
0.152815
0.075816
0.052488
0.044907
0.575233
0.509331
0.475311
0.430016
0.416796
0.361003
0
0.006526
0.288771
8,834
222
93
39.792793
0.812192
0.083314
0
0.439306
0
0
0.139391
0.004209
0
0
0
0
0.242775
0
null
null
0.034682
0.121387
null
null
0.034682
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bf080aad53590bdb43cacf7796ec2313b4648381
8,223
py
Python
rump/router/__init__.py
bninja/rump
3b6c4ff29974b3c04a260d8275567beebb296e5d
[ "0BSD" ]
6
2015-07-27T09:02:36.000Z
2018-07-18T11:11:33.000Z
rump/router/__init__.py
bninja/rump
3b6c4ff29974b3c04a260d8275567beebb296e5d
[ "0BSD" ]
null
null
null
rump/router/__init__.py
bninja/rump
3b6c4ff29974b3c04a260d8275567beebb296e5d
[ "0BSD" ]
null
null
null
import contextlib import logging import re import pilo from .. import exc, Request, parser, Rule, Rules, Upstream logger = logging.getLogger(__name__) class Dynamic(pilo.Form): """ Represents the dynamic components: - settings and - selection rules of a ``rump.Router``.U seful if you want to...
27.318937
82
0.610604
935
8,223
5.306952
0.181818
0.028214
0.01975
0.025393
0.365377
0.339178
0.31056
0.302902
0.269448
0.230552
0
0.000342
0.289554
8,223
300
83
27.41
0.849024
0.058859
0
0.369697
0
0
0.029463
0
0
0
0
0
0
0
null
null
0
0.066667
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bf08fcaa034976989ea7dbdae96293ed8c083ba4
2,630
py
Python
docassemble_base/tests/test3.py
abramsmatthew/adpllc-test
b6ae9d07ed3e98dd9f1fae5f4af8dc5b104ca8e6
[ "MIT" ]
1
2021-06-17T05:04:41.000Z
2021-06-17T05:04:41.000Z
docassemble_base/tests/test3.py
toolness/docassemble
8273ae257daa2e318ad58f36829d1c83880b0961
[ "MIT" ]
null
null
null
docassemble_base/tests/test3.py
toolness/docassemble
8273ae257daa2e318ad58f36829d1c83880b0961
[ "MIT" ]
2
2019-01-26T14:20:35.000Z
2021-01-15T06:48:26.000Z
#! /usr/bin/python import ast import sys mycode = """\ if b < 6: a = 77 c = 72 else: a = 66 sys.exit() """ mycode = """\ user.foobar.name.last = 77 if b < 6: a = 77 c = 72 else: a = 66 """ class myextract(ast.NodeVisitor): def __init__(self): self.stack = [] def visit_Name(self, node): ...
31.309524
208
0.577186
330
2,630
4.493939
0.230303
0.064734
0.075523
0.094403
0.469993
0.449764
0.273095
0.256237
0.20499
0.20499
0
0.013641
0.275285
2,630
83
209
31.686747
0.764428
0.332319
0
0.465517
0
0
0.086406
0.012097
0
0
0
0
0
0
null
null
0
0.034483
null
null
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bf0c3bf9ae5e342f6596bf41e85521b4159e57f6
1,183
py
Python
fp_demo/functional2.py
AegirAexx/python-sandbox
fa1f584f615c6ed04f80b9dd92d2b241248c9ebe
[ "Unlicense" ]
null
null
null
fp_demo/functional2.py
AegirAexx/python-sandbox
fa1f584f615c6ed04f80b9dd92d2b241248c9ebe
[ "Unlicense" ]
null
null
null
fp_demo/functional2.py
AegirAexx/python-sandbox
fa1f584f615c6ed04f80b9dd92d2b241248c9ebe
[ "Unlicense" ]
null
null
null
""" Playing around with filter higher order function and lambda expresions. """ from pprint import pprint # Nicer formatting when printing tuples/lists from scientist import scientists # Using one lambda in filter. WINNERS = tuple(filter(lambda x: x.nobel is True, scientists)) print('---- Nobel Winners: -----') ppri...
22.75
79
0.69738
157
1,183
5.191083
0.407643
0.04908
0.044172
0.058896
0.100614
0.100614
0.100614
0.100614
0
0
0
0
0.162299
1,183
51
80
23.196078
0.822402
0.287405
0
0.230769
0
0
0.197561
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.230769
0.576923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
bf1a92fb2a9542bdec992082197666522c56dd7f
3,578
py
Python
learning-phases/src/neuralnetwork/network.py
vonhachtaugust/learning-phases
1b3079f619f67abad245f515015ed2ddd2488d22
[ "MIT" ]
null
null
null
learning-phases/src/neuralnetwork/network.py
vonhachtaugust/learning-phases
1b3079f619f67abad245f515015ed2ddd2488d22
[ "MIT" ]
null
null
null
learning-phases/src/neuralnetwork/network.py
vonhachtaugust/learning-phases
1b3079f619f67abad245f515015ed2ddd2488d22
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np from keras.models import Sequential, Model from keras.models import model_from_yaml import keras.backend as K from keras.callbacks import Callback from ..utility.utils import path def custom_uniform(shape, range=(-1, 1), name=None): """ Examp...
30.844828
79
0.631917
473
3,578
4.579281
0.274841
0.062327
0.027701
0.036934
0.156971
0.139428
0.139428
0.087719
0
0
0
0.010219
0.234209
3,578
115
80
31.113043
0.780292
0.075182
0
0.056338
0
0
0.027616
0
0
0
0
0
0
1
0.225352
false
0
0.084507
0.042254
0.43662
0.014085
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
bf1fd76e143db0172ae4ed0804d15f70b7c150ff
1,391
py
Python
examples/EnumEditor_demo.py
rwl/traitsbackendpyjamas
bd5ec340be2b58decf36e28b9a396d77919fefc0
[ "MIT" ]
1
2016-05-08T23:25:28.000Z
2016-05-08T23:25:28.000Z
examples/EnumEditor_demo.py
rwl/traitsbackendpyjamas
bd5ec340be2b58decf36e28b9a396d77919fefc0
[ "MIT" ]
null
null
null
examples/EnumEditor_demo.py
rwl/traitsbackendpyjamas
bd5ec340be2b58decf36e28b9a396d77919fefc0
[ "MIT" ]
null
null
null
# Copyright (c) 2007, Enthought, Inc. # License: BSD Style. """ Implementation of an EnumEditor demo for Traits UI This demo shows each of the four styles of the EnumEditor Fixme: This only shows the capabilities of the old-style EnumEditor """ # Imports: from enthought.traits.api \ import HasTra...
27.27451
71
0.578001
165
1,391
4.757576
0.460606
0.050955
0.061147
0.086624
0.080255
0
0
0
0
0
0
0.018462
0.299065
1,391
50
72
27.82
0.786667
0.349389
0
0.125
0
0
0.159664
0
0
0
0
0.02
0
1
0
false
0
0.083333
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1