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
91eb150875402f37ed4f9f20327e1bae5fd23ee0
227
py
Python
dlhub_cli/version.py
DLHub-Argonne/dlhub_cli
4193683c92b9be546588b8e3ac419c5efecd8ef7
[ "Apache-2.0" ]
6
2018-10-19T03:29:03.000Z
2021-07-09T20:28:37.000Z
dlhub_cli/version.py
DLHub-Argonne/dlhub_cli
4193683c92b9be546588b8e3ac419c5efecd8ef7
[ "Apache-2.0" ]
13
2018-11-29T15:23:25.000Z
2019-05-08T20:36:17.000Z
dlhub_cli/version.py
DLHub-Argonne/dlhub_cli
4193683c92b9be546588b8e3ac419c5efecd8ef7
[ "Apache-2.0" ]
1
2019-03-06T15:52:47.000Z
2019-03-06T15:52:47.000Z
# single source of truth for package version, # see https://packaging.python.org/en/latest/single_source_version/ __version__ = "0.6.0" # app name to send as part of SDK requests app_name = "DLHub CLI v{}".format(__version__)
32.428571
67
0.753304
37
227
4.324324
0.756757
0.15
0
0
0
0
0
0
0
0
0
0.015228
0.132159
227
6
68
37.833333
0.796954
0.660793
0
0
0
0
0.246575
0
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
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
91ebff6f2d80648d7a5e7d268b2d10f92e2b3023
3,313
py
Python
configure.py
kratkvit/grvc-ual
027dc6b3e5a0f602ff5a296ad35ce42998134a95
[ "MIT" ]
39
2017-06-21T10:34:04.000Z
2022-03-31T14:55:42.000Z
configure.py
MarceloJacinto/grvc-ual
3c2721d6f6ae6433b3b5575cb0e0ba1373057945
[ "MIT" ]
62
2017-05-11T08:18:28.000Z
2021-11-30T16:29:46.000Z
configure.py
MarceloJacinto/grvc-ual
3c2721d6f6ae6433b3b5575cb0e0ba1373057945
[ "MIT" ]
27
2017-09-25T09:44:36.000Z
2022-03-24T11:35:55.000Z
#!/usr/bin/env python import subprocess class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' def main(): backends = { "mavros" : ["MAVROS", " $ sudo ...
50.969231
236
0.571084
380
3,313
4.760526
0.323684
0.077391
0.079602
0.069652
0.307352
0.279713
0.211719
0.143173
0.116639
0.116639
0
0.021562
0.258074
3,313
64
237
51.765625
0.714402
0.011772
0
0.109091
0
0.090909
0.503973
0.022311
0
0
0
0
0
0
null
null
0
0.018182
null
null
0.090909
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
91ec51179a43c588c2f96934112f408a3e118996
191
py
Python
exaslct_src/lib/flavor.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
null
null
null
exaslct_src/lib/flavor.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
1
2019-05-06T07:36:11.000Z
2019-05-06T07:36:11.000Z
exaslct_src/lib/flavor.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
1
2019-05-03T08:49:29.000Z
2019-05-03T08:49:29.000Z
import pathlib class flavor(): @classmethod def get_name_from_path(cls, path:str): path = pathlib.PurePath(path) flavor_name = path.name return flavor_name
17.363636
42
0.65445
24
191
5
0.583333
0.166667
0
0
0
0
0
0
0
0
0
0
0.267016
191
10
43
19.1
0.857143
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.571429
0
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
91ecb43a181d599c86105ae535220b80253b2d47
5,086
py
Python
keystone/identity/backends/resource_options.py
10088/keystone
1561da645b6512decdc0d307d2ec79a8a4c9cc87
[ "Apache-2.0" ]
615
2015-01-07T12:32:52.000Z
2022-03-24T03:49:47.000Z
keystone/identity/backends/resource_options.py
10088/keystone
1561da645b6512decdc0d307d2ec79a8a4c9cc87
[ "Apache-2.0" ]
11
2015-04-13T18:52:40.000Z
2021-08-21T06:13:05.000Z
keystone/identity/backends/resource_options.py
10088/keystone
1561da645b6512decdc0d307d2ec79a8a4c9cc87
[ "Apache-2.0" ]
696
2015-01-15T00:31:07.000Z
2022-03-16T09:56:00.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
37.955224
79
0.667715
598
5,086
5.436455
0.292642
0.069209
0.038757
0.068902
0.384805
0.356198
0.26761
0.238081
0.185174
0.185174
0
0.008517
0.261306
5,086
133
80
38.240602
0.856801
0.269564
0
0.340659
0
0
0.112469
0.043466
0
0
0
0
0
1
0.021978
false
0.098901
0.032967
0
0.054945
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
91ed1302faafa8dfe6e42711c03422e4d79da73f
881
py
Python
Algorithms/permutations.py
ridwanmsharif/Algorithms
4f3968d2ae0fdc4878c18b56e56f9578f7e89cf4
[ "MIT" ]
2
2017-06-20T06:37:08.000Z
2019-10-24T06:52:27.000Z
Algorithms/permutations.py
ridwanmsharif/Algorithms
4f3968d2ae0fdc4878c18b56e56f9578f7e89cf4
[ "MIT" ]
1
2017-03-04T23:22:34.000Z
2017-03-05T04:21:47.000Z
Algorithms/permutations.py
ridwanmsharif/Algorithms
4f3968d2ae0fdc4878c18b56e56f9578f7e89cf4
[ "MIT" ]
null
null
null
# Returns all permutations of elements using prepend algorithm def permutation_prepend(input_list): if len(input_list) == 0: return [[]] else: list_of_lists = [] first_char = input_list[0] sub_perms = permutations_prepend(input_list[1:]) for sub_perm in sub_perms: for i in range(len(sub_perm) + 1): ...
26.69697
64
0.702611
135
881
4.333333
0.259259
0.184615
0.082051
0.082051
0.276923
0.22906
0.102564
0.102564
0
0
0
0.009749
0.185017
881
32
65
27.53125
0.805014
0.139614
0
0.222222
0
0
0
0
0
0
0
0
0
0
null
null
0
0
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
37cd1503afc65e311b0e8d4b31fc2b316db2270c
14,220
py
Python
Ui_interface.py
lxxtec/FishSound-Detect
284fc884d81bcfebf79a32986d0467c193cfcc7b
[ "MIT" ]
null
null
null
Ui_interface.py
lxxtec/FishSound-Detect
284fc884d81bcfebf79a32986d0467c193cfcc7b
[ "MIT" ]
null
null
null
Ui_interface.py
lxxtec/FishSound-Detect
284fc884d81bcfebf79a32986d0467c193cfcc7b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'interface.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import ...
53.660377
101
0.679747
1,477
14,220
6.465809
0.159783
0.036754
0.078953
0.015079
0.309215
0.18733
0.075183
0.065969
0.058639
0.058639
0
0.044883
0.200914
14,220
264
102
53.863636
0.795565
0.019269
0
0.092
1
0
0.078836
0.003364
0
0
0
0
0
1
0.008
false
0
0.004
0
0.016
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
37d5ff60dc745997cf742876fb9181f4a3159a7d
301
py
Python
Dataset/Leetcode/train/121/433.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/121/433.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/121/433.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution(object): def XXX(self, prices): """ :type prices: List[int] :rtype: int """ left,res=prices[0],-1 for i in range(1,len(prices)): res=max(res,prices[i]-left) left=min(left,prices[i]) return max(0,res)
23.153846
39
0.488372
40
301
3.675
0.575
0.122449
0
0
0
0
0
0
0
0
0
0.020619
0.355482
301
12
40
25.083333
0.737113
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
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
37de87c370e843e84754a6a3a265b2ad7fdb4220
1,251
py
Python
comment/migrations/0008_comment_urlhash.py
Italo-Carvalho/Comment
86424d02a901b74ccbcaa438fffc38f352535301
[ "MIT" ]
75
2018-09-08T14:29:35.000Z
2022-03-25T16:17:06.000Z
comment/migrations/0008_comment_urlhash.py
p0-oya/Comment
39f6fb6c40314d97391d36fc25112d6420c96991
[ "MIT" ]
165
2018-10-07T21:55:31.000Z
2022-02-27T14:44:32.000Z
comment/migrations/0008_comment_urlhash.py
p0-oya/Comment
39f6fb6c40314d97391d36fc25112d6420c96991
[ "MIT" ]
37
2019-12-01T19:44:23.000Z
2022-02-13T16:46:14.000Z
from django.db import migrations, models from comment.utils import id_generator def generate_urlhash(): return id_generator( prefix='comment', len_id=8, suffix='' ) def set_unique_urlhash(model, instance): instance.urlhash = generate_urlhash() while model.objects.filter(...
27.195652
91
0.655476
133
1,251
5.962406
0.451128
0.056747
0.040353
0.075662
0.179067
0.118537
0.118537
0.118537
0
0
0
0.021944
0.235012
1,251
45
92
27.8
0.806688
0
0
0.176471
1
0
0.068745
0.018385
0
0
0
0
0
1
0.088235
false
0
0.058824
0.029412
0.264706
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
37e452f1af217f54bd82c2f298e99ff104c0e5bc
395
py
Python
django_common/context_processors.py
bikemule/django-common
fcc26fafd47a1819e53f02999cc3a6bfcded47b1
[ "MIT" ]
1
2017-12-06T22:17:00.000Z
2017-12-06T22:17:00.000Z
django_common/context_processors.py
bikemule/django-common
fcc26fafd47a1819e53f02999cc3a6bfcded47b1
[ "MIT" ]
null
null
null
django_common/context_processors.py
bikemule/django-common
fcc26fafd47a1819e53f02999cc3a6bfcded47b1
[ "MIT" ]
null
null
null
from django.conf import settings as django_settings from django_common.session import SessionManager def common_settings(request): return { 'domain_name': django_settings.DOMAIN_NAME, 'www_root': django_settings.WWW_ROOT, 'is_dev': django_settings.IS_DEV, 'is_prod': django_settings...
30.384615
58
0.721519
48
395
5.604167
0.4375
0.260223
0.118959
0
0
0
0
0
0
0
0
0
0.189873
395
12
59
32.916667
0.840625
0
0
0
0
0
0.101266
0
0
0
0
0
0
1
0.1
false
0
0.2
0.1
0.4
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
37e489586ca52b017ddc089408bf512ca7f0b203
5,033
py
Python
classifier.py
Ismael-Safadi/Detect-phishing-websites-using-ML-twitter-grabber-2
9c7b5b3f2ce78951e9365360733f6f516766fe14
[ "MIT" ]
1
2020-12-11T03:07:11.000Z
2020-12-11T03:07:11.000Z
classifier.py
Ismael-Safadi/Detect-phishing-websites-using-ML-twitter-grabber-2
9c7b5b3f2ce78951e9365360733f6f516766fe14
[ "MIT" ]
null
null
null
classifier.py
Ismael-Safadi/Detect-phishing-websites-using-ML-twitter-grabber-2
9c7b5b3f2ce78951e9365360733f6f516766fe14
[ "MIT" ]
null
null
null
import difflib from sklearn import tree from sklearn import svm from sklearn.ensemble import RandomForestClassifier from sklearn.ensemble import GradientBoostingClassifier from sklearn.metrics import accuracy_score from sklearn.neighbors import KNeighborsClassifier from sklearn.model_selection import train_test_split ...
32.895425
169
0.680111
636
5,033
5.256289
0.311321
0.015555
0.019743
0.022734
0.247083
0.247083
0.14478
0.14478
0.083757
0.083757
0
0.029193
0.1969
5,033
153
170
32.895425
0.797872
0.596861
0
0
0
0
0.047872
0
0
0
0
0
0
1
0.116279
false
0
0.302326
0.023256
0.488372
0.069767
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
37e84fc7922817c52f6240453b28c13165e7af67
1,332
py
Python
score_table/accounts/models.py
maransowthri/django_rest_udemy
96f83b56f2ef757e18d692a856067e1312759349
[ "MIT" ]
null
null
null
score_table/accounts/models.py
maransowthri/django_rest_udemy
96f83b56f2ef757e18d692a856067e1312759349
[ "MIT" ]
null
null
null
score_table/accounts/models.py
maransowthri/django_rest_udemy
96f83b56f2ef757e18d692a856067e1312759349
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, BaseUserManager class UserProfileManager(BaseUserManager): def create_user(self, name, email, password): if not email: raise ValueError('Email field is required') email = self.norma...
30.272727
90
0.690691
151
1,332
5.94702
0.370861
0.026726
0.028953
0.046771
0.044543
0
0
0
0
0
0
0.00382
0.213964
1,332
43
91
30.976744
0.853868
0
0
0.1875
0
0
0.024793
0
0
0
0
0
0
1
0.125
false
0.125
0.0625
0.0625
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
1
0
0
0
0
0
1
37f344dcd123666857f3bd6d9115ac4e143d1d17
10,414
py
Python
contrib/goodies/goodie_utils.py
electronicvisions/pyplusplus
4d88bb8754d22654a61202ae8adc222807953e38
[ "BSL-1.0" ]
9
2016-06-07T19:14:53.000Z
2020-02-28T09:06:19.000Z
contrib/goodies/goodie_utils.py
electronicvisions/pyplusplus
4d88bb8754d22654a61202ae8adc222807953e38
[ "BSL-1.0" ]
1
2018-08-15T11:33:40.000Z
2018-08-15T11:33:40.000Z
contrib/goodies/goodie_utils.py
electronicvisions/pyplusplus
4d88bb8754d22654a61202ae8adc222807953e38
[ "BSL-1.0" ]
5
2016-06-23T09:37:00.000Z
2019-12-18T13:51:29.000Z
# Copyright 2004-2008 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) # # Authors: # Allen Bierbaum # import pygccxml.declarations as pd from pyplusplus.module_builder.call_policies import * impor...
37.869091
100
0.636355
1,341
10,414
4.785981
0.251305
0.008725
0.010128
0.007479
0.129168
0.098006
0.078685
0.051885
0.028514
0.028514
0
0.003014
0.26714
10,414
274
101
38.007299
0.837919
0.124928
0
0.070423
0
0
0.076283
0.014379
0
0
0
0.007299
0.007042
0
null
null
0
0.06338
null
null
0.021127
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
37f3c68bfced40c29f087ef8bb46978d83dcbb2d
4,243
py
Python
automatminer/automl/base.py
kmu/automatminer
f39894a157dcc35a6fe94b1f747c1f06ffea9824
[ "BSD-3-Clause-LBNL" ]
1
2019-05-16T20:34:54.000Z
2019-05-16T20:34:54.000Z
automatminer/automl/base.py
kmu/automatminer
f39894a157dcc35a6fe94b1f747c1f06ffea9824
[ "BSD-3-Clause-LBNL" ]
null
null
null
automatminer/automl/base.py
kmu/automatminer
f39894a157dcc35a6fe94b1f747c1f06ffea9824
[ "BSD-3-Clause-LBNL" ]
null
null
null
""" Base classes for automl. """ import abc from typing import List import numpy as np import pandas as pd from automatminer.base import DFTransformer from automatminer.utils.log import AMM_LOG_PREDICT_STR, log_progress from automatminer.utils.pkg import AutomatminerError, check_fitted class DFMLAdaptor(DFTransfor...
33.409449
80
0.614895
518
4,243
4.972973
0.361004
0.01087
0.03882
0.043478
0.090839
0.028727
0.028727
0.028727
0
0
0
0.00069
0.316993
4,243
126
81
33.674603
0.888199
0.421636
0
0.283019
0
0
0.133685
0
0
0
0
0
0
1
0.113208
false
0.09434
0.132075
0.018868
0.301887
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
37f56ff84d48ca802c9f204007a7640cc50acf0c
6,909
py
Python
callflow/modules/gradients.py
LLNL/CallFlow
30bd6f94e2428c910ed45bccd3b7a62e0f2623bd
[ "MIT" ]
23
2017-11-03T07:38:35.000Z
2022-02-23T15:54:49.000Z
callflow/modules/gradients.py
LLNL/CallFlow
30bd6f94e2428c910ed45bccd3b7a62e0f2623bd
[ "MIT" ]
15
2017-12-01T22:40:37.000Z
2022-02-28T02:05:59.000Z
callflow/modules/gradients.py
LLNL/CallFlow
30bd6f94e2428c910ed45bccd3b7a62e0f2623bd
[ "MIT" ]
5
2017-11-03T19:22:04.000Z
2018-01-14T00:49:11.000Z
# Copyright 2017-2021 Lawrence Livermore National Security, LLC and other # CallFlow Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: MIT # ------------------------------------------------------------------------------ """ CallFlow's operation to calculate ensemble gradients...
37.548913
103
0.571284
803
6,909
4.767123
0.267746
0.025862
0.019592
0.022989
0.16954
0.14629
0.14629
0.14629
0.124869
0.124869
0
0.006845
0.281083
6,909
183
104
37.754098
0.763841
0.330728
0
0.078652
0
0
0.024329
0
0
0
0
0.016393
0.067416
1
0.05618
false
0
0.089888
0
0.202247
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
37f66c60cca1ebde12586124900fc7cd3b4ac3d9
2,635
py
Python
agenda_me/salas/tests.py
cleberpereiradasilva/python-django-agendamento
38a39dfa3a7fa98857d1b9cd040cd98a124e71f5
[ "MIT" ]
3
2020-10-02T07:51:18.000Z
2022-03-06T18:26:30.000Z
agenda_me/salas/tests.py
cleberpereiradasilva/python-django-agendamento
38a39dfa3a7fa98857d1b9cd040cd98a124e71f5
[ "MIT" ]
3
2020-02-11T23:38:49.000Z
2021-06-10T21:07:29.000Z
agenda_me/salas/tests.py
cleberpereiradasilva/python-django-agendamento
38a39dfa3a7fa98857d1b9cd040cd98a124e71f5
[ "MIT" ]
1
2021-11-23T10:57:14.000Z
2021-11-23T10:57:14.000Z
from django.test import TestCase from rest_framework.test import APIClient from rest_framework import status from django.urls import reverse from .models import Sala # TESTAR CRIACAO DA SALA class ModelSalaTestCase(TestCase): """Testando o model Sala.""" def setUp(self): """Variaveis iniciais para o te...
37.112676
84
0.606072
322
2,635
4.776398
0.304348
0.036411
0.026008
0.03381
0.377763
0.323147
0.215865
0.158648
0.054616
0
0
0.006312
0.278558
2,635
71
85
37.112676
0.802735
0.126755
0
0.22
0
0
0.060948
0
0
0
0
0.014085
0.14
1
0.16
false
0
0.1
0
0.3
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
37f8e36ab188c7883d8bbfe00f92a086670dc3eb
589
py
Python
get_public_ip.py
akarneliuk/automated-troubleshooting
86ab007cc2a08bb7f4c717e1a45ed50576ac346b
[ "BSD-3-Clause" ]
6
2021-03-13T00:13:16.000Z
2021-08-04T08:43:54.000Z
get_public_ip.py
akarneliuk/automated-troubleshooting
86ab007cc2a08bb7f4c717e1a45ed50576ac346b
[ "BSD-3-Clause" ]
null
null
null
get_public_ip.py
akarneliuk/automated-troubleshooting
86ab007cc2a08bb7f4c717e1a45ed50576ac346b
[ "BSD-3-Clause" ]
4
2021-03-13T23:35:44.000Z
2021-09-29T15:02:16.000Z
#!/usr/bin/env python #(c)2019-2021, karneliuk.com """ This tool provides the resultion of the public IP address to the author. """ # Modules import datetime import requests import yaml # Local modules import helpers.shared as hs # Body if __name__ == "__main__": # Import configuration file config = hs.impo...
24.541667
122
0.692699
84
589
4.738095
0.666667
0.045226
0.055276
0
0
0
0
0
0
0
0
0.022403
0.166384
589
24
122
24.541667
0.788187
0.33107
0
0
0
0.111111
0.362205
0.062992
0
0
0
0
0
1
0
false
0
0.555556
0
0.555556
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
37fc55de8bb1520bbf2e432e139c7181fbbd4bc2
8,111
py
Python
mdns/Phidget22Python/Phidget22/Devices/DigitalOutput.py
rabarar/phidget_docker
ceca56c86d27f291a4300a1257c02096862335ec
[ "MIT" ]
null
null
null
mdns/Phidget22Python/Phidget22/Devices/DigitalOutput.py
rabarar/phidget_docker
ceca56c86d27f291a4300a1257c02096862335ec
[ "MIT" ]
null
null
null
mdns/Phidget22Python/Phidget22/Devices/DigitalOutput.py
rabarar/phidget_docker
ceca56c86d27f291a4300a1257c02096862335ec
[ "MIT" ]
null
null
null
import sys import ctypes from Phidget22.PhidgetSupport import PhidgetSupport from Phidget22.Async import * from Phidget22.LEDForwardVoltage import LEDForwardVoltage from Phidget22.PhidgetException import PhidgetException from Phidget22.Phidget import Phidget class DigitalOutput(Phidget): def __init__(self): Phidg...
27.218121
80
0.779682
856
8,111
7.008178
0.09229
0.058343
0.096016
0.176029
0.593432
0.523587
0.523587
0.246208
0.246208
0.196033
0
0.011236
0.133153
8,111
297
81
27.309764
0.841985
0
0
0.395
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.035
0
0.23
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
37fccba3565af113745f7936c2de0302fd313d02
447
py
Python
aws-access-key/keycheck/slack_ID_mapping.py
lacework/ops
ada5abb7074d4cea3def1ef526e05c391150a5d3
[ "Apache-2.0" ]
3
2020-10-05T23:01:31.000Z
2022-01-28T19:06:51.000Z
aws-access-key/keycheck/slack_ID_mapping.py
lacework/ops
ada5abb7074d4cea3def1ef526e05c391150a5d3
[ "Apache-2.0" ]
null
null
null
aws-access-key/keycheck/slack_ID_mapping.py
lacework/ops
ada5abb7074d4cea3def1ef526e05c391150a5d3
[ "Apache-2.0" ]
2
2020-09-17T21:05:32.000Z
2020-10-16T02:12:03.000Z
# mapping for AWS IAM user_name to slack ID accross all AWS accounts # # Fill in "<aws_IAM_user_id>:<slack_id>" here. Seperate each entry by a comma, and leave the last one without a comma # Example: # mapping = { # "IAM_user_id1":"slack_id1", # "IAM_user_id2":"slack_id2", # "IAM_user_id3":"slack_id...
29.8
117
0.651007
69
447
3.884058
0.449275
0.208955
0.074627
0.126866
0.455224
0.455224
0.455224
0.455224
0.455224
0.455224
0
0.034286
0.217002
447
14
118
31.928571
0.731429
0.693512
0
0
0
0
0.496063
0
0
0
0
0
0
1
0
false
0
0
0
0
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
53034e4b4b97c7aedff499cf386a423a907e29c0
716
py
Python
python/network/Foundations-of-Python-Network-Programming/foundations-of-python-network-programming-14/source/chapter16/shell.py
bosserbosser/codetest
987563900d912e891b53eeda8e2cf36f3c769430
[ "Apache-2.0" ]
null
null
null
python/network/Foundations-of-Python-Network-Programming/foundations-of-python-network-programming-14/source/chapter16/shell.py
bosserbosser/codetest
987563900d912e891b53eeda8e2cf36f3c769430
[ "Apache-2.0" ]
null
null
null
python/network/Foundations-of-Python-Network-Programming/foundations-of-python-network-programming-14/source/chapter16/shell.py
bosserbosser/codetest
987563900d912e891b53eeda8e2cf36f3c769430
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Foundations of Python Network Programming, Third Edition # https://github.com/brandon-rhodes/fopnp/blob/m/py3/chapter16/shell.py # A simple shell, so you can try running commands at a prompt where no # characters are special (except that whitespace separates arguments). import subprocess def ...
27.538462
71
0.582402
86
716
4.755814
0.802326
0.03912
0
0
0
0
0
0
0
0
0
0.012024
0.303073
716
25
72
28.64
0.807615
0.399441
0
0
0
0
0.065882
0
0
0
0
0
0
1
0.058824
false
0.058824
0.058824
0
0.117647
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
0
0
0
1
0
0
0
0
0
1
53048c319dd2552fd9ad06fd99e3d4236adae5e5
2,536
py
Python
tourist/routes.py
TomGoBravo/tourist-with-flask
d5dc18cd980e66d825ebbdcc0a82880abcff0e8b
[ "Apache-2.0" ]
3
2019-03-14T10:40:25.000Z
2019-09-05T09:50:33.000Z
tourist/routes.py
TomGoBravo/tourist-with-flask
d5dc18cd980e66d825ebbdcc0a82880abcff0e8b
[ "Apache-2.0" ]
31
2019-03-14T14:59:13.000Z
2022-02-15T14:32:59.000Z
tourist/routes.py
TomGoBravo/tourist-with-flask
d5dc18cd980e66d825ebbdcc0a82880abcff0e8b
[ "Apache-2.0" ]
null
null
null
import flask import geojson from flask import render_template, Blueprint, redirect, url_for from .models import sqlalchemy tourist_bp = Blueprint('tourist_bp', __name__) def mapbox_access_token(): return sqlalchemy.db.get_app().config['MAPBOX_ACCESS_TOKEN'] @tourist_bp.route("/") def home(): world = sqlalch...
33.813333
118
0.74724
366
2,536
4.898907
0.218579
0.125488
0.070273
0.080312
0.370887
0.345231
0.327942
0.284439
0.284439
0.151701
0
0.002699
0.123423
2,536
74
119
34.27027
0.803869
0.036278
0
0.038462
0
0
0.122081
0.031135
0
0
0
0
0
1
0.192308
false
0
0.076923
0.076923
0.557692
0.038462
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
530a6708e8fe5881f0f62a29cae1a8e6ca466464
7,328
py
Python
readthedocs/profiles/views.py
shazelquist/readthedocs.org
25c0f5d9528bd92db3c62db91e8eed8032d01b01
[ "MIT" ]
null
null
null
readthedocs/profiles/views.py
shazelquist/readthedocs.org
25c0f5d9528bd92db3c62db91e8eed8032d01b01
[ "MIT" ]
1
2022-03-02T11:55:37.000Z
2022-03-02T11:55:37.000Z
readthedocs/profiles/views.py
shazelquist/readthedocs.org
25c0f5d9528bd92db3c62db91e8eed8032d01b01
[ "MIT" ]
null
null
null
"""Views for creating, editing and viewing site-specific user profiles.""" from datetime import timedelta from allauth.account.views import LoginView as AllAuthLoginView from allauth.account.views import LogoutView as AllAuthLogoutView from django.conf import settings from django.contrib import messages from django.c...
30.156379
88
0.688319
831
7,328
5.898917
0.271961
0.019584
0.0306
0.02754
0.130967
0.101999
0.090167
0.083435
0.073439
0.058344
0
0.000347
0.214383
7,328
242
89
30.280992
0.851138
0.068641
0
0.155689
0
0
0.106123
0.046364
0
0
0
0
0
1
0.107784
false
0.017964
0.131737
0.053892
0.592814
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
530ca25e09fa83dfc7e8cf86e8f3461fed055166
481
py
Python
src/pycture/menu_bar/__init__.py
miguel-martinr/Pycture
f174699f620244dd188cb1650e3455f553cb5090
[ "MIT" ]
null
null
null
src/pycture/menu_bar/__init__.py
miguel-martinr/Pycture
f174699f620244dd188cb1650e3455f553cb5090
[ "MIT" ]
51
2021-10-06T02:40:17.000Z
2022-01-13T12:45:43.000Z
src/pycture/menu_bar/__init__.py
miguel-martinr/Pycture
f174699f620244dd188cb1650e3455f553cb5090
[ "MIT" ]
1
2022-01-17T16:10:25.000Z
2022-01-17T16:10:25.000Z
from PyQt5.QtWidgets import QMenuBar, QWidget from PyQt5.QtCore import QCoreApplication, QEvent from .command_menus import menus class MenuBar(QMenuBar): def __init__(self, parent: QWidget): super().__init__(parent) self.setup_menus() def setup_menus(self): for menu in menus: ...
26.722222
56
0.681913
55
481
5.763636
0.490909
0.056782
0
0
0
0
0
0
0
0
0
0.005391
0.22869
481
17
57
28.294118
0.849057
0
0
0
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.230769
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
530f1ef2d493141e376af669b6e9b5ca27be4843
4,978
py
Python
autorest/codegen/serializers/import_serializer.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
autorest/codegen/serializers/import_serializer.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
autorest/codegen/serializers/import_serializer.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from copy ...
45.669725
118
0.653475
586
4,978
5.238908
0.196246
0.045603
0.045603
0.027687
0.224756
0.152769
0.140717
0.121824
0.088599
0.088599
0
0.003379
0.2272
4,978
108
119
46.092593
0.794645
0.12053
0
0
0
0.011628
0.0511
0.009395
0
0
0
0
0
1
0.104651
false
0
0.546512
0
0.755814
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
531063bf4ab2f54c1fcdae0343fb3faf78efe006
7,946
py
Python
google/cloud/bigquery/migration_v2alpha/types/migration_service.py
shollyman/python-bigquery-migration
ccb7ca8473252da1eeab1ba4338c65a5ff0e6e8e
[ "Apache-2.0" ]
null
null
null
google/cloud/bigquery/migration_v2alpha/types/migration_service.py
shollyman/python-bigquery-migration
ccb7ca8473252da1eeab1ba4338c65a5ff0e6e8e
[ "Apache-2.0" ]
null
null
null
google/cloud/bigquery/migration_v2alpha/types/migration_service.py
shollyman/python-bigquery-migration
ccb7ca8473252da1eeab1ba4338c65a5ff0e6e8e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
37.481132
104
0.678455
916
7,946
5.805677
0.219432
0.035728
0.053592
0.047386
0.618466
0.576721
0.549267
0.476871
0.476871
0.423467
0
0.015664
0.236723
7,946
211
105
37.658768
0.861171
0.592751
0
0.333333
0
0
0.106034
0.106034
0
0
0
0
0
1
0.028986
false
0
0.043478
0.028986
0.536232
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
53179b8964ba092f1b5d60a2bed22c5e87f46619
605
py
Python
src/config.py
rmindo/python-api
85c62e401f6a62567023b4492605ee7ee16c7184
[ "MIT" ]
null
null
null
src/config.py
rmindo/python-api
85c62e401f6a62567023b4492605ee7ee16c7184
[ "MIT" ]
null
null
null
src/config.py
rmindo/python-api
85c62e401f6a62567023b4492605ee7ee16c7184
[ "MIT" ]
1
2020-05-28T20:25:02.000Z
2020-05-28T20:25:02.000Z
import os # Configuration config = { 'schema': { 'parent': 'users', 'child_one': 'contacts', 'child_two': 'addresses', }, 'server': { 'user': os.environ['DB_USER'], 'host': os.environ['DB_HOST'], 'database': os.environ['DB_NAME'], 'password': os.environ['DB_PASSWORD'] }, 'resource...
18.333333
41
0.449587
54
605
4.925926
0.574074
0.135338
0.165414
0
0
0
0
0
0
0
0
0
0.328926
605
33
42
18.333333
0.655172
0.021488
0
0
0
0
0.34687
0
0
0
0
0
0
1
0
false
0.064516
0.032258
0
0.032258
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
531a262d723efb6fdf018334c24971d8617923bd
10,889
py
Python
src/run_generators/navier_stokes_single_runs.py
karlotness/nn-benchmark
65ddb2f3d9934db5718417fd800278a97f627ba2
[ "MIT" ]
13
2021-08-04T21:07:50.000Z
2022-02-17T20:16:41.000Z
src/run_generators/navier_stokes_single_runs.py
karlotness/nn-benchmark
65ddb2f3d9934db5718417fd800278a97f627ba2
[ "MIT" ]
null
null
null
src/run_generators/navier_stokes_single_runs.py
karlotness/nn-benchmark
65ddb2f3d9934db5718417fd800278a97f627ba2
[ "MIT" ]
1
2021-10-03T00:37:05.000Z
2021-10-03T00:37:05.000Z
import utils import argparse import pathlib from collections import namedtuple import itertools import math parser = argparse.ArgumentParser(description="Generate run descriptions") parser.add_argument("base_dir", type=str, help="Base directory for run descriptions") args = parser.parse_args() base...
44.444898
146
0.548535
1,164
10,889
4.796392
0.158076
0.022569
0.030091
0.027226
0.617768
0.57084
0.530897
0.483611
0.422354
0.374172
0
0.029189
0.370741
10,889
244
147
44.627049
0.78561
0.080632
0
0.466667
1
0
0.030555
0.002304
0
0
0
0
0
1
0
false
0.010256
0.030769
0
0.030769
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
531dc8f2d69047d275b46eeef87d3dd58f263500
454
py
Python
app/user/migrations/0003_alter_user_avatar.py
lenaunderwood22/django-forum
9d739166029197dcd7256d1250641928cff01251
[ "MIT" ]
null
null
null
app/user/migrations/0003_alter_user_avatar.py
lenaunderwood22/django-forum
9d739166029197dcd7256d1250641928cff01251
[ "MIT" ]
null
null
null
app/user/migrations/0003_alter_user_avatar.py
lenaunderwood22/django-forum
9d739166029197dcd7256d1250641928cff01251
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-05 13:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0002_user_username'), ] operations = [ migrations.AlterField( model_name='user', name='avatar', ...
23.894737
128
0.614537
52
454
5.269231
0.75
0.072993
0
0
0
0
0
0
0
0
0
0.056047
0.253304
454
18
129
25.222222
0.752212
0.099119
0
0
1
0
0.142506
0
0
0
0
0
0
1
0
false
0
0.083333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
53207abf669da5466fd16078ed73c454579bfe60
806
py
Python
dataset.py
submission6378/OneshotCLIP
794ae95c734387bb7829c142bcb822bcb2504c05
[ "MIT" ]
40
2022-03-14T00:58:32.000Z
2022-03-30T22:46:32.000Z
dataset.py
submission6378/OneshotCLIP
794ae95c734387bb7829c142bcb822bcb2504c05
[ "MIT" ]
2
2022-03-18T14:13:12.000Z
2022-03-25T21:48:32.000Z
dataset.py
submission6378/OneshotCLIP
794ae95c734387bb7829c142bcb822bcb2504c05
[ "MIT" ]
1
2022-03-29T21:09:49.000Z
2022-03-29T21:09:49.000Z
from io import BytesIO # import lmdb from PIL import Image from torch.utils.data import Dataset import os from torchvision import transforms, utils class MultiResolutionDataset(Dataset): def __init__(self, path, transform, resolution=256,rep=1000): files = os.listdir(path) self.imglist =[] ...
26.866667
85
0.648883
101
806
5.059406
0.465347
0.129159
0.050881
0
0
0
0
0
0
0
0
0.011475
0.243176
806
29
86
27.793103
0.82623
0.013648
0
0
0
0
0.020177
0
0
0
0
0
0
1
0.142857
false
0
0.238095
0.047619
0.52381
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
532259293de49a1369b8c67e434d91aa642c467b
3,382
py
Python
sdk/python/pulumi_aws/ec2/key_pair.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ec2/key_pair.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ec2/key_pair.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime class KeyPair(pulumi.CustomResource): """ Provides an [EC2 key pair](https://docs.aws.amaz...
43.922078
277
0.663808
433
3,382
4.907621
0.332564
0.056
0.048941
0.060235
0.204706
0.122353
0.122353
0.053647
0.053647
0.053647
0
0.008297
0.251626
3,382
76
278
44.5
0.831292
0.298344
0
0
1
0
0.225966
0.011397
0
0
0
0
0
1
0.05
false
0
0.05
0
0.125
0.075
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
5322e7ec3edcfdffd86290efe8ca36a6757a7fb8
3,185
py
Python
leetcode/Array/128. Longest Consecutive Sequence.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
23
2019-08-02T12:02:47.000Z
2022-03-09T15:24:16.000Z
leetcode/Array/128. Longest Consecutive Sequence.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
null
null
null
leetcode/Array/128. Longest Consecutive Sequence.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
21
2019-12-22T04:47:32.000Z
2021-09-12T14:29:35.000Z
""" Given an unsorted array of integers, find the length of the longest consecutive elements sequence. Your algorithm should run in O(n) complexity. Example: Input: [100, 4, 200, 1, 3, 2] Output: 4 Explanation: The longest consecutive elements sequence is [1, 2, 3, 4]. Therefore its length is 4. Solution: 1. Sort ...
22.75
98
0.453689
418
3,185
3.392345
0.255981
0.071932
0.049365
0.03385
0.552891
0.428773
0.419605
0.389986
0.354725
0.354725
0
0.034188
0.44898
3,185
140
99
22.75
0.773789
0.296075
0
0.705882
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.220588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
53240eb6f9c217e75709436d4ce96bd30b177027
2,808
py
Python
my/twitter/twint.py
alaq/HPI
626ee994bf2e817ca9f6ffb4cb91896836136485
[ "MIT" ]
null
null
null
my/twitter/twint.py
alaq/HPI
626ee994bf2e817ca9f6ffb4cb91896836136485
[ "MIT" ]
null
null
null
my/twitter/twint.py
alaq/HPI
626ee994bf2e817ca9f6ffb4cb91896836136485
[ "MIT" ]
null
null
null
""" Twitter data (tweets and favorites). Uses [[https://github.com/twintproject/twint][Twint]] data export. Requirements: =pip3 install --user dataset= """ from ..core.common import Paths from dataclasses import dataclass from my.config import twint as user_config @dataclass class twint(user_config): export_pat...
24
106
0.667023
405
2,808
4.48642
0.360494
0.026417
0.028619
0.028068
0.158503
0.091359
0.091359
0.06164
0.06164
0.06164
0
0.004093
0.21688
2,808
116
107
24.206897
0.822192
0.219373
0
0.140845
0
0
0.15884
0.025783
0
0
0
0.008621
0
1
0.169014
false
0
0.15493
0.084507
0.535211
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
532ccc38f3621f89b9ad7cad8fc59731999c04be
2,604
py
Python
_pycharm_skeletons/renderdoc/MessageSource.py
Lex-DRL/renderdoc-py-stubs
75d280e4f500ded506f3315a49fc432b37ab4fa6
[ "MIT" ]
null
null
null
_pycharm_skeletons/renderdoc/MessageSource.py
Lex-DRL/renderdoc-py-stubs
75d280e4f500ded506f3315a49fc432b37ab4fa6
[ "MIT" ]
null
null
null
_pycharm_skeletons/renderdoc/MessageSource.py
Lex-DRL/renderdoc-py-stubs
75d280e4f500ded506f3315a49fc432b37ab4fa6
[ "MIT" ]
null
null
null
# encoding: utf-8 # module renderdoc # from P:\1-Scripts\_Python\Py-Autocomplete\renderdoc.pyd # by generator 1.146 # no doc # imports import enum as __enum class MessageSource(__enum.IntEnum): """ Where a debug message was reported from .. data:: API This message comes from the API's deb...
26.571429
104
0.633257
288
2,604
5.607639
0.534722
0.047678
0.06935
0.074303
0.257585
0.185759
0.185759
0.143653
0.143653
0.143653
0
0.019168
0.298771
2,604
97
105
26.845361
0.865279
0.529186
0
0.068182
0
0
0.194156
0.04524
0
0
0
0
0
1
0.068182
false
0.068182
0.022727
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
533535e56c960169c8f231aa3a0d8b8b0309d891
4,743
py
Python
packages/sdk/odahuflow/sdk/models/packaging_integration_spec.py
odahu/odahuflow
58c3220a266a61bb893cf79c4b994569e3445097
[ "ECL-2.0", "Apache-2.0" ]
12
2020-10-13T15:39:52.000Z
2021-10-11T17:13:42.000Z
packages/sdk/odahuflow/sdk/models/packaging_integration_spec.py
odahu/odahuflow
58c3220a266a61bb893cf79c4b994569e3445097
[ "ECL-2.0", "Apache-2.0" ]
475
2019-11-18T12:40:47.000Z
2022-03-29T21:17:38.000Z
packages/sdk/odahuflow/sdk/models/packaging_integration_spec.py
odahu/odahuflow
58c3220a266a61bb893cf79c4b994569e3445097
[ "ECL-2.0", "Apache-2.0" ]
4
2020-02-25T11:26:10.000Z
2021-03-10T12:01:00.000Z
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from odahuflow.sdk.models.base_model_ import Model from odahuflow.sdk.models.schema import Schema # noqa: F401,E501 from odahuflow.sdk.models import util class Packa...
31.203947
128
0.655281
488
4,743
6.270492
0.180328
0.082353
0.205882
0.027778
0.50915
0.439542
0.418954
0.279085
0.279085
0.238562
0
0.015928
0.27198
4,743
151
129
31.410596
0.870258
0.506641
0
0.235294
0
0
0.073957
0.012678
0
0
0
0
0
1
0.196078
false
0
0.117647
0
0.431373
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
533c7cfa6f6a4e08bd378207d9ce9eff82d91841
9,232
py
Python
poppy/transport/validators/schemas/ssl_certificate.py
satroutr/poppy
27417f86854d9e0a04726acc263ef0a2ce9f8f6e
[ "Apache-2.0" ]
null
null
null
poppy/transport/validators/schemas/ssl_certificate.py
satroutr/poppy
27417f86854d9e0a04726acc263ef0a2ce9f8f6e
[ "Apache-2.0" ]
null
null
null
poppy/transport/validators/schemas/ssl_certificate.py
satroutr/poppy
27417f86854d9e0a04726acc263ef0a2ce9f8f6e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Rackspace, Inc. # # 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 wr...
37.528455
74
0.259099
421
9,232
5.60095
0.365796
0.072095
0.099237
0.093299
0.52799
0.52799
0.462256
0.343087
0.314249
0.238762
0
0.01749
0.646989
9,232
245
75
37.681633
0.706045
0.07344
0
0.56682
0
0
0.18282
0.002695
0
0
0
0
0
1
0
false
0
0.009217
0
0.018433
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
534138352603684696f7d834a1e07866ecd78a94
614
py
Python
setup.py
motkeg/data-prep
55db7903992196de56fe3b66c0484421b2e69523
[ "MIT" ]
null
null
null
setup.py
motkeg/data-prep
55db7903992196de56fe3b66c0484421b2e69523
[ "MIT" ]
null
null
null
setup.py
motkeg/data-prep
55db7903992196de56fe3b66c0484421b2e69523
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name="data-prep", version="0.0.1", author="Moti Gadian", author_email="motkeg@gmail.com", download_url = "https://github.com/motkeg/data-prep/archive/v0.0.1.tar.gz", description="A data preparetion package for deep learning", long_description="", lon...
30.7
79
0.628664
69
614
5.492754
0.782609
0.042216
0
0
0
0
0
0
0
0
0
0.014737
0.226384
614
20
80
30.7
0.783158
0
0
0
0
0.055556
0.455285
0
0
0
0
0
0
1
0
true
0
0.055556
0
0.055556
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
534815875fbd025b65918224b8653a5dce26a2dc
848
py
Python
oapdf/GenPage/comparepdf.py
OAPDF/oapdftools
e96f72fae2ec48874cbe9763329e7536b8b7b2df
[ "MIT" ]
null
null
null
oapdf/GenPage/comparepdf.py
OAPDF/oapdftools
e96f72fae2ec48874cbe9763329e7536b8b7b2df
[ "MIT" ]
null
null
null
oapdf/GenPage/comparepdf.py
OAPDF/oapdftools
e96f72fae2ec48874cbe9763329e7536b8b7b2df
[ "MIT" ]
null
null
null
#! /usr/bin/env python import os,sys,glob def similarsize(s1,s2): i1=int(s1) i2=int(s2) if (i1 == i2): return 0 if (min(i1,i2)<300000 and abs(i1-i2)<=3000): return 1 elif (abs(i1-i2)<=300000): return 1 else: return -1 if (not os.path.exists('Done')): os.makedirs('Done') for fg in glob.iglob('10.*.pdf...
18.844444
66
0.607311
145
848
3.551724
0.406897
0.031068
0.038835
0.042718
0.15534
0
0
0
0
0
0
0.058394
0.192217
848
44
67
19.272727
0.693431
0.024764
0
0.324324
0
0
0.050971
0
0
0
0
0
0
0
null
null
0
0.027027
null
null
0.135135
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
534dca4abff7e82af6d881145a89a3ee3868cbef
4,504
py
Python
tests/test_lax_response_adapter.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
17
2015-02-10T07:10:29.000Z
2021-05-14T22:24:45.000Z
tests/test_lax_response_adapter.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
459
2015-03-31T18:24:23.000Z
2022-03-30T19:44:40.000Z
tests/test_lax_response_adapter.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
9
2015-04-18T16:57:31.000Z
2020-10-30T11:49:13.000Z
import unittest import json from lax_response_adapter import LaxResponseAdapter from mock import Mock from provider.utils import base64_encode_string FAKE_TOKEN = json.dumps( { u"status": u"vor", u"expanded_folder": u"837411455.1/a8bb05df-2df9-4fce-8f9f-219aca0b0148", u"version": u"1", ...
29.058065
86
0.619227
499
4,504
5.346693
0.160321
0.053973
0.071964
0.089955
0.755997
0.699025
0.699025
0.699025
0.677286
0.634933
0
0.122611
0.244893
4,504
154
87
29.246753
0.661864
0
0
0.449275
0
0
0.333925
0.141874
0
0
0
0
0.021739
1
0.028986
false
0
0.036232
0
0.072464
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
5351e3c343a0d56b4ddd9499bb3430bb59a64653
1,082
py
Python
opennem/db/migrations/versions/f04dfaf47b51_bomstation_additional_feed_fields.py
tourdownunder/opennem
deec3e2079db9d9d84171010fd0c239170d1e7ce
[ "MIT" ]
null
null
null
opennem/db/migrations/versions/f04dfaf47b51_bomstation_additional_feed_fields.py
tourdownunder/opennem
deec3e2079db9d9d84171010fd0c239170d1e7ce
[ "MIT" ]
1
2020-09-06T04:17:59.000Z
2020-09-06T04:17:59.000Z
opennem/db/migrations/versions/f04dfaf47b51_bomstation_additional_feed_fields.py
tourdownunder/opennem
deec3e2079db9d9d84171010fd0c239170d1e7ce
[ "MIT" ]
null
null
null
"""BOMStation additional feed fields Revision ID: f04dfaf47b51 Revises: a76e6ff50cda Create Date: 2020-10-08 01:04:58.796972 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "f04dfaf47b51" down_revision = "a76e6ff50cda" branch_labels = None depends_on = None de...
25.761905
75
0.679298
144
1,082
4.888889
0.375
0.127841
0.227273
0.099432
0.481534
0.291193
0.291193
0.25
0.25
0.133523
0
0.047138
0.176525
1,082
41
76
26.390244
0.742985
0.149723
0
0.178571
0
0
0.25
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.142857
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
535279bea0930bb5d8221c3780342412bc3ff144
437
py
Python
pytweet/mixins.py
TheGenocides/PyTweet
0c6cb7122791593fae3fba358f0f63c729aa06f4
[ "MIT" ]
null
null
null
pytweet/mixins.py
TheGenocides/PyTweet
0c6cb7122791593fae3fba358f0f63c729aa06f4
[ "MIT" ]
null
null
null
pytweet/mixins.py
TheGenocides/PyTweet
0c6cb7122791593fae3fba358f0f63c729aa06f4
[ "MIT" ]
null
null
null
import logging from typing import Any, Dict, Callable _log = logging.getLogger(__name__) __all__ = ("EventMixin",) class EventMixin: events: Dict[str, Callable] = {} def dispatch(self, event_name: str, *args: Any, **kwargs: Any) -> Any: event = self.events.get(event_name) if not event: ...
23
74
0.640732
54
437
4.925926
0.555556
0.101504
0
0
0
0
0
0
0
0
0
0
0.235698
437
18
75
24.277778
0.796407
0
0
0
0
0
0.100687
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.583333
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
535ed89c01ec1ea73c068825b9f43c630bf3165c
2,544
py
Python
djmercadopago/tests/tests_functionals.py
data-tsunami/django-mercadopago
fc816d0480941ea8216e789cce6268e3cbfa8d16
[ "BSD-3-Clause" ]
6
2015-05-19T18:38:54.000Z
2017-09-13T13:53:35.000Z
djmercadopago/tests/tests_functionals.py
data-tsunami/django-mercadopago
fc816d0480941ea8216e789cce6268e3cbfa8d16
[ "BSD-3-Clause" ]
4
2015-08-08T16:59:07.000Z
2017-06-27T00:11:31.000Z
djmercadopago/tests/tests_functionals.py
data-tsunami/django-mercadopago
fc816d0480941ea8216e789cce6268e3cbfa8d16
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os from unittest.case import skipIf from django.test.client import RequestFactory from djmercadopago import services from djmercadopago import signals from djmercadopago.models import Payment from djmercadopago.tests import tests_utils @skipIf...
36.342857
87
0.669025
251
2,544
6.521912
0.354582
0.094075
0.067196
0.085522
0.263897
0.164936
0.109957
0.062309
0
0
0
0.003539
0.222484
2,544
69
88
36.869565
0.824065
0.008255
0
0.115385
0
0
0.106011
0.038993
0
0
0
0
0.211538
0
null
null
0
0.153846
null
null
0.038462
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
535fe44031c0a2885c913994893727727a351c10
921
py
Python
xchange/validators.py
martinzugnoni/xchange
17032d4ad1977e7ada96818d96af76b3b19366a8
[ "MIT" ]
5
2018-06-26T02:09:20.000Z
2022-03-29T15:52:04.000Z
xchange/validators.py
martinzugnoni/xchange
17032d4ad1977e7ada96818d96af76b3b19366a8
[ "MIT" ]
3
2018-06-26T14:41:57.000Z
2019-06-22T13:23:29.000Z
xchange/validators.py
martinzugnoni/xchange
17032d4ad1977e7ada96818d96af76b3b19366a8
[ "MIT" ]
1
2018-06-25T20:14:29.000Z
2018-06-25T20:14:29.000Z
import collections def is_restricted_to_values(value, valid_values): assert isinstance(valid_values, collections.Iterable) if not value in valid_values: raise ValueError('Invalid "{}" value, expected any of: {}' ''.format(value, valid_values)) def is_instance(value, instance...
35.423077
81
0.684039
109
921
5.614679
0.366972
0.127451
0.088235
0.058824
0.078431
0
0
0
0
0
0
0
0.219327
921
25
82
36.84
0.851182
0
0
0
0
0
0.141151
0
0
0
0
0
0.315789
1
0.157895
false
0.105263
0.052632
0
0.210526
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
5360b927e260af14acfff9d6f680b0e28b205cab
650
py
Python
setup.py
instance01/lrz-sync-share-lib
6952019c2aadf84d8d1cddfb8d656175ab4fbba1
[ "MIT" ]
null
null
null
setup.py
instance01/lrz-sync-share-lib
6952019c2aadf84d8d1cddfb8d656175ab4fbba1
[ "MIT" ]
null
null
null
setup.py
instance01/lrz-sync-share-lib
6952019c2aadf84d8d1cddfb8d656175ab4fbba1
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='lrz-sync-share', version='0.1.0', description='LRZ Sync+Share library for uploads and other file management', url='https://github.com/instance01/lrz-sync-share-lib', author='Instance01', author_email='use.github.issues@instancedev.com', license='MIT', ...
30.952381
79
0.647692
76
650
5.460526
0.736842
0.06747
0.115663
0
0
0
0
0
0
0
0
0.017274
0.198462
650
20
80
32.5
0.779271
0
0
0
0
0
0.503077
0.050769
0
0
0
0
0
1
0
true
0
0.055556
0
0.055556
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
536329d36a26a610590462d35bb6071eef2c2a75
1,852
py
Python
domain/image/extractor.py
KoTA208-2017/Mask-RCNN-Fashion
60950dcab84b9af50db824ba35af205943ed6f2d
[ "MIT" ]
1
2020-10-06T03:13:40.000Z
2020-10-06T03:13:40.000Z
domain/image/extractor.py
KoTA208-2017/Mask-RCNN-Fashion
60950dcab84b9af50db824ba35af205943ed6f2d
[ "MIT" ]
2
2020-11-13T17:44:58.000Z
2022-02-09T23:38:33.000Z
domain/image/extractor.py
KoTA208-2017/Mask-RCNN-Fashion
60950dcab84b9af50db824ba35af205943ed6f2d
[ "MIT" ]
null
null
null
import os import tensorflow as tf import numpy as np import matplotlib # matplotlib.use('TkAgg') import matplotlib.pyplot as plt import matplotlib.image as mpimg import argparse from numpy import linalg as LA from keras.applications.vgg16 import VGG16 from keras.preprocessing import image from keras.applications.vgg...
36.313725
172
0.633369
240
1,852
4.7875
0.404167
0.060923
0.048738
0.045257
0.055701
0
0
0
0
0
0
0.032211
0.262419
1,852
51
173
36.313725
0.808931
0.082073
0
0.054054
0
0
0.043588
0
0
0
0
0
0
1
0.081081
false
0
0.324324
0
0.486486
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
5367197ddb79beac82e4b2e5d5fd356997283fae
11,520
py
Python
isi_sdk_8_2_0/isi_sdk_8_2_0/models/node_state_readonly_node.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_0/isi_sdk_8_2_0/models/node_state_readonly_node.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_0/isi_sdk_8_2_0/models/node_state_readonly_node.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 7 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class NodeStateReadonlyNode(obje...
32.450704
450
0.593229
1,441
11,520
4.696044
0.121443
0.073297
0.143638
0.123688
0.630856
0.593173
0.590217
0.496084
0.42323
0.284469
0
0.03616
0.318229
11,520
354
451
32.542373
0.825439
0.442535
0
0.070968
1
0
0.14153
0.0039
0
0
0
0
0
1
0.154839
false
0
0.019355
0
0.290323
0.012903
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
536cc88a4de4da30bd958b72e7a659bc20ef1d1f
40,495
py
Python
commons/os_util.py
btc-ag/revengtools
d58680ef7d6bdc8ef518860d5d13a5acc0d01758
[ "Apache-2.0" ]
2
2019-07-15T14:59:59.000Z
2022-01-18T14:23:54.000Z
commons/os_util.py
btc-ag/revengtools
d58680ef7d6bdc8ef518860d5d13a5acc0d01758
[ "Apache-2.0" ]
10
2018-05-03T13:25:07.000Z
2021-06-25T15:14:55.000Z
commons/os_util.py
btc-ag/revengtools
d58680ef7d6bdc8ef518860d5d13a5acc0d01758
[ "Apache-2.0" ]
1
2018-05-02T13:59:27.000Z
2018-05-02T13:59:27.000Z
#! /usr/bin/env python # -*- coding: UTF-8 -*- ''' Extension functionality around the os and path modules (os.path, posixpath, ntpath). Implements the commons.resource_if interface based on local files. Created on 21.05.2011 @author: SIGIESEC ''' from __future__ import with_statement from commons.core_if import Cont...
39.507317
165
0.642968
4,659
40,495
5.315089
0.136081
0.029076
0.011873
0.006784
0.278803
0.226265
0.177967
0.138271
0.117635
0.10653
0
0.001173
0.263168
40,495
1,024
166
39.545898
0.828742
0.045685
0
0.302926
0
0
0.040807
0.002892
0
0
0
0.008789
0.010327
0
null
null
0.003442
0.034423
null
null
0.001721
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
72541f70ba0841b78acec862fdc0ea93dcb402bf
299
py
Python
environments/gridworld/setup.py
lschw/rl-experiments
8b911b5d655288a60b12ffbacc123e3a3c78638c
[ "MIT" ]
null
null
null
environments/gridworld/setup.py
lschw/rl-experiments
8b911b5d655288a60b12ffbacc123e3a3c78638c
[ "MIT" ]
null
null
null
environments/gridworld/setup.py
lschw/rl-experiments
8b911b5d655288a60b12ffbacc123e3a3c78638c
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='gym_gridworld', version='0.0.1', install_requires=['gym'], author="Lukas Schwarz", author_email="code@lukasschwarz.de", description="A Gym environment representing a 2d rectangular grid world", packages=setuptools.find_packages(), )
27.181818
77
0.722408
37
299
5.72973
0.783784
0
0
0
0
0
0
0
0
0
0
0.01581
0.153846
299
10
78
29.9
0.822134
0
0
0
0
0
0.374582
0
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
72555f81bcd151eeba68c4ced15d7d40b2decbe5
835
py
Python
packetinject.py
jtharel/Packet-Injection
7bf900ea18fbd11148ec71410cb04d647b99e623
[ "Apache-2.0" ]
null
null
null
packetinject.py
jtharel/Packet-Injection
7bf900ea18fbd11148ec71410cb04d647b99e623
[ "Apache-2.0" ]
null
null
null
packetinject.py
jtharel/Packet-Injection
7bf900ea18fbd11148ec71410cb04d647b99e623
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import socket import struct rawSocket = socket.socket(socket.PF_PACKET, socket.SOCK_RAW, socket.htons(0x800)) #rawSocket = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.htons(0x0800)) #the 0x0800 means IP protocol #/usr/include/linux/if_ether.h will show you the defined Ethernet Protocol ID'...
36.304348
111
0.753293
146
835
4.260274
0.506849
0.048232
0.057878
0.057878
0.135048
0
0
0
0
0
0
0.055325
0.134132
835
22
112
37.954545
0.804979
0.615569
0
0
0
0
0.251613
0.154839
0
0
0.035484
0
0
1
0
false
0
0.333333
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
0
1
0
0
0
0
1
7256f3380b6e87eede9e51e9efc33465d267e7ff
359
py
Python
python/experiment2.py
fd-rey/TFG
ad0b75df5f6ec011d7c90b189a4dae218a0d17e2
[ "MIT" ]
null
null
null
python/experiment2.py
fd-rey/TFG
ad0b75df5f6ec011d7c90b189a4dae218a0d17e2
[ "MIT" ]
null
null
null
python/experiment2.py
fd-rey/TFG
ad0b75df5f6ec011d7c90b189a4dae218a0d17e2
[ "MIT" ]
null
null
null
import subprocess import json if __name__ == '__main__': filename ="/tmp/test.json" f = open(filename,"w") result = subprocess.check_output(['kubectl','get','pods','-o','json']).rstrip() f.write(result) f.close() # f = open(filename,"r") data = json.load(f) #print(data) print da...
23.933333
83
0.598886
46
359
4.478261
0.652174
0.048544
0.126214
0
0
0
0
0
0
0
0
0.003448
0.192201
359
14
84
25.642857
0.706897
0.030641
0
0
0
0
0.187861
0
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.090909
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
725b1e550f6d4659bbec7b9ca973566f7f6e7e24
7,911
py
Python
src/pyVirtualize/pyvSphere/_base.py
peterjune/pyVirtualize
a17263f0aeab27dd2c2c4ae549d06b9a80acdb8a
[ "Apache-2.0" ]
15
2017-05-22T05:44:07.000Z
2022-02-06T02:57:18.000Z
src/pyVirtualize/pyvSphere/_base.py
peterjune/pyVirtualize
a17263f0aeab27dd2c2c4ae549d06b9a80acdb8a
[ "Apache-2.0" ]
8
2018-03-26T12:04:25.000Z
2021-06-21T12:09:09.000Z
src/pyVirtualize/pyvSphere/_base.py
peterjune/pyVirtualize
a17263f0aeab27dd2c2c4ae549d06b9a80acdb8a
[ "Apache-2.0" ]
10
2017-11-30T04:20:54.000Z
2020-02-24T10:00:47.000Z
__author__ = 'rramchandani' import ssl from pyVim import connect from pyVmomi import vim from pyVirtualize.utils import exceptions from pyVirtualize.utils.klasses import PersistableClass from .datastore import Datastore from .vm import VirtualMachine class vSphere(PersistableClass): """ Just like vSphere ...
30.662791
112
0.566553
791
7,911
5.561315
0.276865
0.030007
0.043192
0.032962
0.179586
0.127529
0.127529
0.127529
0.127529
0.052285
0
0.022184
0.333333
7,911
257
113
30.782101
0.811907
0.330173
0
0.257576
0
0
0.030445
0.005748
0
0
0
0
0
1
0.159091
false
0.05303
0.05303
0.030303
0.333333
0.090909
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
725d48c00bb143cd2b25dbfde423ec530e5cc314
3,416
py
Python
sdk/python/pulumi_azure/lb/get_backend_address_pool.py
adnang/pulumi-azure
32360d2f1e41e27d7fdd6522cb26d65e531f279f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/lb/get_backend_address_pool.py
adnang/pulumi-azure
32360d2f1e41e27d7fdd6522cb26d65e531f279f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/lb/get_backend_address_pool.py
adnang/pulumi-azure
32360d2f1e41e27d7fdd6522cb26d65e531f279f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class GetBac...
37.955556
143
0.697307
402
3,416
5.626866
0.328358
0.08046
0.10168
0.05305
0.112732
0.06985
0.026525
0
0
0
0
0.000373
0.216042
3,416
89
144
38.382022
0.844287
0.302693
0
0
1
0
0.139806
0.049515
0
0
0
0
0
1
0.069767
false
0
0.139535
0
0.302326
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
725dc00a3361adc8d782ed4a9351b795147173e5
15,568
py
Python
fuel_agent/fuel_agent/tests/test_grub_utils.py
Zipfer/fuel-web
c6c4032eb6e29474e2be0318349265bdb566454c
[ "Apache-2.0" ]
null
null
null
fuel_agent/fuel_agent/tests/test_grub_utils.py
Zipfer/fuel-web
c6c4032eb6e29474e2be0318349265bdb566454c
[ "Apache-2.0" ]
null
null
null
fuel_agent/fuel_agent/tests/test_grub_utils.py
Zipfer/fuel-web
c6c4032eb6e29474e2be0318349265bdb566454c
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Mirantis, Inc. # # 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...
39.412658
78
0.601747
1,879
15,568
4.750931
0.111762
0.033158
0.045368
0.041895
0.755349
0.706956
0.66775
0.623502
0.573989
0.515627
0
0.012592
0.265416
15,568
394
79
39.51269
0.768013
0.048112
0
0.506135
0
0
0.240203
0.092838
0
0
0
0
0.131902
1
0.064417
false
0
0.02454
0.015337
0.107362
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
725e062f3bdf7a4c5ac6faf3beb460907b603348
1,220
py
Python
talos/commands/predict.py
reinert/talos
d8d4cb0377c99e9a973f7d4ef4d49e941ed903d8
[ "MIT" ]
null
null
null
talos/commands/predict.py
reinert/talos
d8d4cb0377c99e9a973f7d4ef4d49e941ed903d8
[ "MIT" ]
null
null
null
talos/commands/predict.py
reinert/talos
d8d4cb0377c99e9a973f7d4ef4d49e941ed903d8
[ "MIT" ]
null
null
null
from numpy import mean, std from sklearn.metrics import f1_score from ..utils.validation_split import kfold from ..utils.best_model import best_model, activate_model class Predict: '''Class for making predictions on the models that are stored in the Scan() object''' def __init__(self, scan_object): ...
27.727273
77
0.672951
180
1,220
4.355556
0.327778
0.127551
0.107143
0.056122
0.548469
0.548469
0.548469
0.548469
0.548469
0.548469
0
0.001078
0.239344
1,220
43
78
28.372093
0.84375
0.253279
0
0.333333
0
0
0.016092
0
0
0
0
0
0
1
0.166667
false
0
0.222222
0
0.555556
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
725f5f618f92c73435631641c2913e7262157ebd
1,199
py
Python
controle_financeiro/autenticacao/tests/test_views.py
douglaspands/controle-financeiro
1f8f44dca6132b730e92ccf62447dede4119b28e
[ "MIT" ]
null
null
null
controle_financeiro/autenticacao/tests/test_views.py
douglaspands/controle-financeiro
1f8f44dca6132b730e92ccf62447dede4119b28e
[ "MIT" ]
null
null
null
controle_financeiro/autenticacao/tests/test_views.py
douglaspands/controle-financeiro
1f8f44dca6132b730e92ccf62447dede4119b28e
[ "MIT" ]
1
2021-06-15T22:14:22.000Z
2021-06-15T22:14:22.000Z
from django.test import Client, TestCase class ViewTest(TestCase): def test_registrar_template(self): response = self.client.get("/autenticacao/registrar/") self.assertEqual(response.status_code, 200) def test_registrar_sucesso(self): c = Client() response = c.post( ...
30.74359
62
0.477064
102
1,199
5.490196
0.411765
0.0375
0.085714
0.155357
0.585714
0.585714
0.521429
0.521429
0.521429
0
0
0.041611
0.378649
1,199
38
63
31.552632
0.708725
0.346956
0
0.105263
0
0
0.200782
0.089961
0
0
0
0
0.105263
1
0.105263
false
0.105263
0.052632
0
0.210526
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
726e1e5d5dc3ce170fe42ed22b729524014e1798
6,826
py
Python
apps/register.py
TechCircle-tech/WebServer
cbc3a64ec333d507fb67aab3f2c3289f86c5d9a0
[ "Apache-2.0" ]
1
2021-05-05T22:58:20.000Z
2021-05-05T22:58:20.000Z
apps/register.py
TechCircle-tech/WebServer
cbc3a64ec333d507fb67aab3f2c3289f86c5d9a0
[ "Apache-2.0" ]
null
null
null
apps/register.py
TechCircle-tech/WebServer
cbc3a64ec333d507fb67aab3f2c3289f86c5d9a0
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint from flask import Flask, redirect, url_for, render_template, request, Blueprint, flash, session import sqlite3 import hashlib import datetime import random register_blueprint = Blueprint('register_blueprint', __name__) @register_blueprint.route('/login/', defaults={'code': None}) @register...
34.13
256
0.632142
790
6,826
5.413924
0.256962
0.043722
0.042553
0.056114
0.445639
0.367781
0.311199
0.265373
0.229133
0.211831
0
0.011641
0.232347
6,826
199
257
34.301508
0.80458
0.134779
0
0.285714
0
0
0.302741
0.073898
0
0
0
0
0
1
0.033613
false
0.07563
0.05042
0.008403
0.193277
0.168067
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
726ea6da4958788c7d7dc31e089a96bcca168e26
523
py
Python
beginner/Open-Computer-Version-Chapter-3/canny-edge-detection.py
CrispenGari/opencv-python
cfa862fbf3b8b2c8899b76cee2774d6fb72ba00e
[ "MIT" ]
1
2021-11-08T07:37:05.000Z
2021-11-08T07:37:05.000Z
beginner/Open-Computer-Version-Chapter-3/canny-edge-detection.py
CrispenGari/opencv-python
cfa862fbf3b8b2c8899b76cee2774d6fb72ba00e
[ "MIT" ]
null
null
null
beginner/Open-Computer-Version-Chapter-3/canny-edge-detection.py
CrispenGari/opencv-python
cfa862fbf3b8b2c8899b76cee2774d6fb72ba00e
[ "MIT" ]
null
null
null
try: import cv2 import numpy as np except ImportError as e: from pip._internal import main as install packages = ["numpy", "opencv-python"] for package in packages: install(["install", package]) finally: pass # read an image and a video image = cv2.imread("avatar.jpg") def cannyImage(...
20.92
45
0.674952
69
523
5.072464
0.652174
0.085714
0.074286
0
0
0
0
0
0
0
0
0.038741
0.210325
523
24
46
21.791667
0.808717
0.126195
0
0
0
0
0.101545
0
0
0
0
0
0
1
0.058824
false
0.058824
0.235294
0
0.352941
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
727a8544a03a5ebf1321e27ca7af318205cd0254
3,231
py
Python
fixture/db.py
needlzzz3/python
af72ed4498e12703297df86761ea135e6288d844
[ "Apache-2.0" ]
null
null
null
fixture/db.py
needlzzz3/python
af72ed4498e12703297df86761ea135e6288d844
[ "Apache-2.0" ]
null
null
null
fixture/db.py
needlzzz3/python
af72ed4498e12703297df86761ea135e6288d844
[ "Apache-2.0" ]
null
null
null
import pymysql.cursors from model import contact from model.group import Group from model.contact import Contact import re class DbFixture: def __init__(self, host, name, user, password): self.host = host self.name = name self.user = user self.password = password self.con...
47.514706
179
0.5961
375
3,231
4.978667
0.210667
0.082485
0.096411
0.029995
0.408141
0.374933
0.238886
0.238886
0.238886
0.238886
0
0.015446
0.298669
3,231
68
180
47.514706
0.808473
0
0
0.350877
0
0.017544
0.071163
0.006807
0
0
0
0
0
1
0.140351
false
0.052632
0.087719
0.070175
0.350877
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
727b8cc418c97ead6191646d223f8a6016dfdd04
238
py
Python
belajar.py
wahyu-handayani/coba2
7849ca99605656b3a86fa10f62d781a687ff6fda
[ "MIT" ]
null
null
null
belajar.py
wahyu-handayani/coba2
7849ca99605656b3a86fa10f62d781a687ff6fda
[ "MIT" ]
null
null
null
belajar.py
wahyu-handayani/coba2
7849ca99605656b3a86fa10f62d781a687ff6fda
[ "MIT" ]
null
null
null
r=int(input('banyaknya angka:')) data=[] for i in range (r): #v n=int(input("Enter Integer {}:".format(i+1))) #v data.append(n) #v m=10**(r-1) for i in range (r): y=int(data[i]*m) print(y) m=m/10 #print(r);
19.833333
53
0.52521
46
238
2.717391
0.456522
0.128
0.096
0.176
0.192
0
0
0
0
0
0
0.032967
0.235294
238
11
54
21.636364
0.653846
0.05042
0
0.2
0
0
0.156398
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
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
727d908d87080b7feb56a7c177f3caf5c1d77d54
2,256
py
Python
python/miind/reporting.py
dekamps/miind
4b321c62c2bd27eb0d5d8336a16a9e840ba63856
[ "MIT" ]
13
2015-09-15T17:28:25.000Z
2022-03-22T20:26:47.000Z
python/miind/reporting.py
dekamps/miind
4b321c62c2bd27eb0d5d8336a16a9e840ba63856
[ "MIT" ]
41
2015-08-25T07:50:55.000Z
2022-03-21T16:20:37.000Z
python/miind/reporting.py
dekamps/miind
4b321c62c2bd27eb0d5d8336a16a9e840ba63856
[ "MIT" ]
9
2015-09-14T20:52:07.000Z
2022-03-08T12:18:18.000Z
def define_display_nodes(tree,nodemap,unscoped_vectors=False,looped_definition=False): if unscoped_vectors: s = '' else: s = '\t\t\tstd::vector<MPILib::NodeId> display_nodes;\n' display_nodes = tree.findall('.//Display') for dn in display_nodes: node_id = str(nodemap[dn.attrib[...
37.6
86
0.604167
323
2,256
3.96904
0.139319
0.021841
0.032761
0.024961
0.734009
0.717629
0.658346
0.621685
0.621685
0.559282
0
0
0.223848
2,256
59
87
38.237288
0.732153
0
0
0.45098
0
0
0.323582
0.25
0
0
0
0
0
1
0.058824
false
0
0
0
0.117647
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
72805ff32a48197d8c81e693066bbe3184f53b2b
376
py
Python
tests/test_template_helpers.py
ramiro/flourish
17fa65e874dae80c8f36a955dcd85406a3c1266e
[ "MIT" ]
12
2015-02-09T23:18:47.000Z
2021-07-21T10:40:36.000Z
tests/test_template_helpers.py
ramiro/flourish
17fa65e874dae80c8f36a955dcd85406a3c1266e
[ "MIT" ]
16
2016-06-22T17:45:41.000Z
2021-11-30T05:31:15.000Z
tests/test_template_helpers.py
ramiro/flourish
17fa65e874dae80c8f36a955dcd85406a3c1266e
[ "MIT" ]
2
2016-06-22T15:49:06.000Z
2021-11-21T17:35:40.000Z
# encoding: utf-8 import pytest from flourish import Flourish from flourish.helpers import publication_range class TestFlourish: @classmethod def setup_class(cls): with pytest.warns(None) as warnings: cls.flourish = Flourish('tests/source') def test_publication_range(self): ...
22.117647
63
0.715426
47
376
5.638298
0.638298
0.181132
0.150943
0
0
0
0
0
0
0
0
0.03
0.202128
376
16
64
23.5
0.85
0.039894
0
0
0
0
0.058496
0
0
0
0
0
0.1
1
0.2
false
0
0.3
0
0.6
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
72808d66e5507c2184211acb0674806af7a77caf
24,895
py
Python
rpython/jit/backend/llsupport/descr.py
muke101/pypy-llvm-backend
bfd8164d25416e7a2c22cea7cc5f5a19c593b1b1
[ "Apache-2.0", "OpenSSL" ]
5
2022-02-24T00:37:44.000Z
2022-02-24T22:05:50.000Z
rpython/jit/backend/llsupport/descr.py
muke101/pypy-llvm-backend
bfd8164d25416e7a2c22cea7cc5f5a19c593b1b1
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/jit/backend/llsupport/descr.py
muke101/pypy-llvm-backend
bfd8164d25416e7a2c22cea7cc5f5a19c593b1b1
[ "Apache-2.0", "OpenSSL" ]
null
null
null
import py from rpython.rtyper.lltypesystem import lltype, rffi, llmemory from rpython.rtyper.lltypesystem.lloperation import llop from rpython.jit.backend.llsupport import symbolic, support from rpython.jit.metainterp.history import AbstractDescr, getkind, FLOAT, INT from rpython.jit.metainterp import history from rpyt...
35.26204
99
0.636072
2,998
24,895
4.938959
0.12008
0.028365
0.034038
0.012156
0.270885
0.225569
0.169717
0.150132
0.101844
0.087526
0
0.00322
0.276562
24,895
705
100
35.312057
0.818934
0.063627
0
0.232143
0
0
0.036746
0.011814
0
0
0
0
0.05
0
null
null
0.003571
0.025
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
7283f3e6fb50a28281b3624741610fe54f2da143
1,724
py
Python
kansha/card_addons/vote/models.py
AnomalistDesignLLC/kansha
85b5816da126b1c7098707c98f217d8b2e524ff2
[ "BSD-3-Clause" ]
161
2015-04-27T17:07:40.000Z
2021-10-14T23:14:56.000Z
kansha/card_addons/vote/models.py
AnomalistDesignLLC/kansha
85b5816da126b1c7098707c98f217d8b2e524ff2
[ "BSD-3-Clause" ]
228
2015-05-27T15:47:31.000Z
2018-11-24T04:05:11.000Z
kansha/card_addons/vote/models.py
AnomalistDesignLLC/kansha
85b5816da126b1c7098707c98f217d8b2e524ff2
[ "BSD-3-Clause" ]
38
2015-05-27T15:16:15.000Z
2021-03-24T05:34:08.000Z
# -*- coding:utf-8 -*- #-- # Copyright (c) 2012-2014 Net-ng. # All rights reserved. # # This software is licensed under the BSD License, as described in # the file LICENSE.txt, which you should have received as part of # this distribution. #-- from sqlalchemy import func from elixir import ManyToOne from elixir import...
25.731343
66
0.606148
213
1,724
4.86385
0.43662
0.047297
0.031853
0.032819
0.100386
0.100386
0.100386
0.100386
0.100386
0
0
0.007287
0.283643
1,724
66
67
26.121212
0.831579
0.338167
0
0.166667
0
0
0.033366
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.566667
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
728b0bb336a0661728a0c24078e6720b02c8ec86
689
py
Python
intermediate/doit/doit_examples/two_tasks.py
marianekka/DEPRECATED-bc
55f5cec89376faaf4b12ab572c930f0a05ab8dd5
[ "CC-BY-3.0" ]
34
2016-08-05T07:36:28.000Z
2022-01-30T20:08:55.000Z
intermediate/doit/doit_examples/two_tasks.py
UW-Madison-ACI/2014-08-25-wisc
35a4ab08b73634d7d11267ec2bb4685d381efce6
[ "CC-BY-3.0" ]
2
2016-08-04T10:54:52.000Z
2016-08-04T10:55:12.000Z
intermediate/doit/doit_examples/two_tasks.py
UW-Madison-ACI/2014-08-25-wisc
35a4ab08b73634d7d11267ec2bb4685d381efce6
[ "CC-BY-3.0" ]
22
2016-08-01T16:48:48.000Z
2022-02-24T22:42:36.000Z
# two_tasks.py def task_reformat_temperature_data(): """Reformats the raw temperature data file for easier analysis""" return { 'file_dep': ['UK_Tmean_data.txt'], 'targets': ['UK_Tmean_data.reformatted.txt'], 'actions': ['python reformat_weather_data.py UK_Tmean_data.txt > UK_...
34.45
111
0.683599
87
689
5.08046
0.298851
0.162896
0.099548
0.085973
0.58371
0.425339
0.425339
0.425339
0.425339
0.244344
0
0
0.188679
689
20
112
34.45
0.790698
0.188679
0
0.166667
0
0
0.565693
0.310219
0
0
0
0
0
1
0.166667
true
0
0
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
1
0
0
0
0
0
0
1
7295121509507af76dc3231ec01806abc8a85c3f
4,422
py
Python
HW-2/answer4.py
thewickedaxe/600.647-Computational-Genomics
008e60bd264a4710c8b6cdf6698ec8fb8a75a422
[ "MIT" ]
null
null
null
HW-2/answer4.py
thewickedaxe/600.647-Computational-Genomics
008e60bd264a4710c8b6cdf6698ec8fb8a75a422
[ "MIT" ]
null
null
null
HW-2/answer4.py
thewickedaxe/600.647-Computational-Genomics
008e60bd264a4710c8b6cdf6698ec8fb8a75a422
[ "MIT" ]
null
null
null
#!/usr/bin/python import fileinput # ************* Boilerplate ************* class Index(object): def __init__(self, t, k): """ Create index from all substrings of size 'length' """ self.k = k # k-mer length (k) self.index = {} for i in range(len(t) - k + 1): # for each k-mer ...
26.963415
113
0.626866
554
4,422
4.794224
0.212996
0.052711
0.045181
0.027108
0.33509
0.246611
0.210843
0.180723
0.180723
0.140813
0
0.00641
0.259159
4,422
163
114
27.128834
0.804335
0.057214
0
0.123457
0
0
0.009108
0
0
0
0
0
0
0
null
null
0
0.012346
null
null
0.037037
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
7295f872a7f90721ad2f69869e0d9e498d125dd4
10,354
py
Python
pdc/settings.py
tzhaoredhat/automation
a1867dc2d3591fdae1fa7f80d457c25f9705070e
[ "MIT" ]
null
null
null
pdc/settings.py
tzhaoredhat/automation
a1867dc2d3591fdae1fa7f80d457c25f9705070e
[ "MIT" ]
null
null
null
pdc/settings.py
tzhaoredhat/automation
a1867dc2d3591fdae1fa7f80d457c25f9705070e
[ "MIT" ]
null
null
null
# # Copyright (c) 2015 Red Hat # Licensed under The MIT License (MIT) # http://opensource.org/licenses/MIT # """ Django settings for pdc project. Generated by 'django-admin startproject' using Django 1.8.1. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full lis...
27.983784
129
0.648252
1,193
10,354
5.478625
0.390612
0.025704
0.020196
0.02295
0.086444
0.060435
0.060435
0.053091
0.0306
0
0
0.009084
0.213251
10,354
369
130
28.059621
0.793273
0.291771
0
0.084112
1
0.004673
0.500138
0.295524
0
0
0
0
0
1
0
false
0.004673
0.023364
0
0.023364
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
72a036602e8d822f6210e9e5f8350f73f2bc6873
5,550
py
Python
src/hobbits-plugins/analyzers/KaitaiStruct/ksy_py/common/bcd.py
Mikevin/hobbits
0a99aa97a34abe06a8c0542acd5c96e1a7078ec4
[ "MIT" ]
null
null
null
src/hobbits-plugins/analyzers/KaitaiStruct/ksy_py/common/bcd.py
Mikevin/hobbits
0a99aa97a34abe06a8c0542acd5c96e1a7078ec4
[ "MIT" ]
null
null
null
src/hobbits-plugins/analyzers/KaitaiStruct/ksy_py/common/bcd.py
Mikevin/hobbits
0a99aa97a34abe06a8c0542acd5c96e1a7078ec4
[ "MIT" ]
null
null
null
# This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild from pkg_resources import parse_version import kaitaistruct from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO import collections if parse_version(kaitaistruct.__version__) < parse_version('0.9'): raise E...
49.553571
607
0.631532
847
5,550
3.90673
0.218418
0.036265
0.074645
0.054397
0.515866
0.508311
0.446963
0.427319
0.413116
0.385011
0
0.037789
0.237117
5,550
111
608
50
0.743741
0.234234
0
0.387097
1
0
0.090688
0
0
0
0
0
0
1
0.096774
false
0
0.064516
0
0.322581
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
72a1484a9f766ecfc893eef9c7fe14c67fcc4af3
2,208
py
Python
config/swagger.py
vaporyorg/pm-trading-db
097f94c630a41da2f9015fd29f05a433fb0dacb0
[ "MIT" ]
null
null
null
config/swagger.py
vaporyorg/pm-trading-db
097f94c630a41da2f9015fd29f05a433fb0dacb0
[ "MIT" ]
null
null
null
config/swagger.py
vaporyorg/pm-trading-db
097f94c630a41da2f9015fd29f05a433fb0dacb0
[ "MIT" ]
null
null
null
import os from rest_framework import exceptions, status from rest_framework.permissions import AllowAny from rest_framework.renderers import CoreJSONRenderer, JSONRenderer from rest_framework.response import Response from rest_framework.schemas import SchemaGenerator from rest_framework.views import APIView from rest_...
33.969231
80
0.665308
217
2,208
6.580645
0.354839
0.05042
0.107143
0.05042
0.054622
0.054622
0
0
0
0
0
0.001854
0.26721
2,208
64
81
34.5
0.880717
0.022645
0
0
0
0
0.045752
0.010738
0
0
0
0
0
1
0.083333
false
0
0.208333
0
0.520833
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
72ab1c90fcdafbff0f1bee1aa6238d647dc3c036
3,002
py
Python
python101/Dump_raw_code.py
geraudazangue/Python_Projects
8db1aec617c5ea7ece36c674cbf76674146afaa8
[ "MIT" ]
null
null
null
python101/Dump_raw_code.py
geraudazangue/Python_Projects
8db1aec617c5ea7ece36c674cbf76674146afaa8
[ "MIT" ]
null
null
null
python101/Dump_raw_code.py
geraudazangue/Python_Projects
8db1aec617c5ea7ece36c674cbf76674146afaa8
[ "MIT" ]
null
null
null
############### XML MANIPULATION ################# Write to to a file XML tree = ET.ElementTree(Root) tree.write('C:/Users/Gael/Desktop/CODE/RAW FILES/filename.xml', pretty_print=True, xml_declaration=True) Using xpath instead of findall for nb in xml.xpath("/users/user/nom"): print(nb.text) value.append(nb.tex...
30.948454
129
0.668554
475
3,002
4.170526
0.444211
0.014134
0.030288
0.051489
0.121151
0.071681
0.071681
0.042403
0.042403
0
0
0.010882
0.142905
3,002
97
130
30.948454
0.759036
0.084943
0
0
0
0.042857
0.258236
0.111321
0
0
0
0
0
0
null
null
0.028571
0.071429
null
null
0.028571
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
72ad691cff6f9dd62a717d59b539a09d69860181
1,578
py
Python
shiyandaima/demo1.py
HW-BC/mon
7988ebdd5e4b093fd94d180d259af7f9630fc0cb
[ "MIT" ]
null
null
null
shiyandaima/demo1.py
HW-BC/mon
7988ebdd5e4b093fd94d180d259af7f9630fc0cb
[ "MIT" ]
1
2021-11-10T06:48:45.000Z
2021-11-10T06:48:45.000Z
shiyandaima/demo1.py
HW-BC/mon
7988ebdd5e4b093fd94d180d259af7f9630fc0cb
[ "MIT" ]
null
null
null
print("hello\nworld")#换行 print("hello\tworld") print("hell\tworld") print("hellooo\tworld")#这里\t会以四个字符为一个组若在\t之前不够四个一组则补上剩下的,如果正好四个则再补四个 print("hello\rworld")#\r将hello覆盖掉 print("hello\bworld")#\b退回一个字符o print("http:\\www.baidu.com") print("http:\\\\www.baidu.com")#\相当于转义转成单纯字符形式而不是具有作用的字符 #print('老师说:'大家好'')不加\就会报错 pri...
20.763158
68
0.734474
230
1,578
5.03913
0.5
0.017256
0.028473
0.044003
0.034513
0
0
0
0
0
0
0.051436
0.051331
1,578
75
69
21.04
0.722779
0.423321
0
0
0
0
0.251781
0.026128
0
0
0.005938
0
0
1
0
false
0
0.02
0
0.02
0.64
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
72b612826ebbf77aff620df79c14715ce8d8bf1a
7,696
py
Python
settings.py
dzenX/music_bot
d6bb4d1a4c2934c708d3613881ea6cace0bfc713
[ "MIT" ]
1
2018-07-22T22:34:01.000Z
2018-07-22T22:34:01.000Z
settings.py
dzenX/music_bot
d6bb4d1a4c2934c708d3613881ea6cace0bfc713
[ "MIT" ]
null
null
null
settings.py
dzenX/music_bot
d6bb4d1a4c2934c708d3613881ea6cace0bfc713
[ "MIT" ]
null
null
null
import os import yaml from utils import get_dict, silent_remove, valid_server class Settings: """ Class to stoge and control settings for different servers. """ Settings = {} # Store in servers setting def __init__(self, settings_folder): """ Constructor method for Settings class. :param settings_...
30.418972
116
0.718295
1,128
7,696
4.767731
0.132092
0.07289
0.03347
0.046486
0.525846
0.483451
0.433433
0.369468
0.343064
0.303273
0
0.000159
0.185291
7,696
252
117
30.539683
0.857576
0.552755
0
0.285714
0
0
0.085473
0
0
0
0
0.003968
0
1
0.22619
false
0
0.035714
0
0.428571
0.071429
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
72b61a49712e345727b0b0a9bfdcb6ceb557cfab
3,043
py
Python
bin/slurm.py
odingsy/NGStoolkit
68d73810351550b9ba75f9184f26bc8e55708fcc
[ "MIT" ]
null
null
null
bin/slurm.py
odingsy/NGStoolkit
68d73810351550b9ba75f9184f26bc8e55708fcc
[ "MIT" ]
null
null
null
bin/slurm.py
odingsy/NGStoolkit
68d73810351550b9ba75f9184f26bc8e55708fcc
[ "MIT" ]
null
null
null
import subprocess import random slurmKeyword = '#SBATCH ' firstLine = '#!/bin/bash\n' defaultFileName = 'temp.sh' expectedOutputStringInitial = 'Submitted batch job ' def dictionary2slurmLines(dictionary): lines = '\n' for key in dictionary.keys(): lines += slurmKeyword + str(key) + str(dictionary[ke...
31.371134
119
0.581991
307
3,043
5.697068
0.355049
0.034305
0.027444
0.029731
0
0
0
0
0
0
0
0.011463
0.283273
3,043
96
120
31.697917
0.790463
0.056195
0
0
0
0
0.083682
0.016388
0
0
0
0
0
1
0.226667
false
0
0.026667
0.026667
0.333333
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
0
1
0
0
0
0
0
0
0
1
72bef4fc273ba7e5153a6527878bcd6b642311e9
2,261
py
Python
dnaco/util/crypto.py
matteobertozzi/dnaco-python
e4a36d15e72a313de633c889c1397d29c133fdd5
[ "Apache-2.0" ]
null
null
null
dnaco/util/crypto.py
matteobertozzi/dnaco-python
e4a36d15e72a313de633c889c1397d29c133fdd5
[ "Apache-2.0" ]
null
null
null
dnaco/util/crypto.py
matteobertozzi/dnaco-python
e4a36d15e72a313de633c889c1397d29c133fdd5
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.683333
98
0.764264
343
2,261
4.90379
0.413994
0.041617
0.015458
0.019025
0.1522
0.1522
0.1522
0.1522
0.108205
0.108205
0
0.021784
0.14728
2,261
59
99
38.322034
0.850622
0.371075
0
0.068966
0
0
0.004274
0
0
0
0
0
0
0
null
null
0
0.241379
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
72c046a576075f6a9e901f62c5a6514d0e647ea6
1,584
py
Python
bitbucket/tests/private/private.py
affinitic/BitBucket-api
5ebeae52e4e627f56ce0283f9c305dc5b89d125d
[ "0BSD" ]
null
null
null
bitbucket/tests/private/private.py
affinitic/BitBucket-api
5ebeae52e4e627f56ce0283f9c305dc5b89d125d
[ "0BSD" ]
null
null
null
bitbucket/tests/private/private.py
affinitic/BitBucket-api
5ebeae52e4e627f56ce0283f9c305dc5b89d125d
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from bitbucket.bitbucket import Bitbucket from bitbucket.tests.private import USERNAME, PASSWORD TEST_REPO_SLUG = 'test_bitbucket_api' class AuthenticatedBitbucketTest(unittest.TestCase): """ Bitbucket test base class for authenticated methods.""" def setUp(self): ...
33
84
0.669192
174
1,584
5.977011
0.344828
0.051923
0.081731
0.091346
0.338462
0.338462
0.196154
0.196154
0.196154
0.196154
0
0.000815
0.225379
1,584
47
85
33.702128
0.846781
0.22096
0
0.230769
0
0
0.035176
0
0
0
0
0
0.269231
1
0.153846
false
0.076923
0.115385
0
0.346154
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
72c741fc68b1954facaf7d800e89f827b940b3f8
1,444
py
Python
example/basic/demo14.py
zhq-zhuhaiqiang/python-demo
a1484b75f8fb33c3684c4dfd6368ff703b6b2d1b
[ "MIT" ]
null
null
null
example/basic/demo14.py
zhq-zhuhaiqiang/python-demo
a1484b75f8fb33c3684c4dfd6368ff703b6b2d1b
[ "MIT" ]
null
null
null
example/basic/demo14.py
zhq-zhuhaiqiang/python-demo
a1484b75f8fb33c3684c4dfd6368ff703b6b2d1b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """ 随机产生验证码 """ from functools import wraps import random code = "" for i in range(4): num = random.randrange(0, 2) # 当前位显示字母或者数字各有50%几率 if num == 0: # 随机显示数字 r1 = random.randrange(0, 10) code += str(r1) else: # 随机显示字母 ...
16.790698
71
0.56856
169
1,444
4.727811
0.461538
0.05632
0.04005
0
0
0
0
0
0
0
0
0.026834
0.225762
1,444
85
72
16.988235
0.687835
0.196676
0
0.038462
0
0
0.112476
0
0
0
0
0
0
1
0.211538
false
0
0.038462
0.057692
0.384615
0.173077
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
72cb42452a724fec73d08b03e1a9e4efa8a486e3
1,328
py
Python
Strings/Merge_the_Tools!.py
NikolayVaklinov10/Python_Challenges
a1052e1d527004bbb6072a3cbc802065469f66ae
[ "MIT" ]
2
2019-11-01T23:57:34.000Z
2019-11-01T23:58:16.000Z
Strings/Merge_the_Tools!.py
NikolayVaklinov10/Python_Challenges
a1052e1d527004bbb6072a3cbc802065469f66ae
[ "MIT" ]
null
null
null
Strings/Merge_the_Tools!.py
NikolayVaklinov10/Python_Challenges
a1052e1d527004bbb6072a3cbc802065469f66ae
[ "MIT" ]
null
null
null
""" Consider the following: A string, , of length where . An integer, , where is a factor of . We can split into subsegments where each subsegment, , consists of a contiguous block of characters in . Then, use each to create string such that: The characters in are a subsequence of the characters in ...
13.148515
146
0.715361
214
1,328
4.439252
0.462617
0.050526
0.029474
0.04
0.048421
0
0
0
0
0
0
0.00098
0.231928
1,328
100
147
13.28
0.930392
0.865211
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
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
72cff7eeb447af5e92226a8a1aba0d871bb52b56
1,462
py
Python
concurrency_limit/configuration.py
beachmachine/python-concurrency-limit
071cc0d6173ce6741a4846dd8e96e21947b837af
[ "MIT" ]
null
null
null
concurrency_limit/configuration.py
beachmachine/python-concurrency-limit
071cc0d6173ce6741a4846dd8e96e21947b837af
[ "MIT" ]
1
2022-01-19T16:47:25.000Z
2022-01-19T16:47:25.000Z
concurrency_limit/configuration.py
beachmachine/python-concurrency-limit
071cc0d6173ce6741a4846dd8e96e21947b837af
[ "MIT" ]
1
2022-01-19T15:56:32.000Z
2022-01-19T15:56:32.000Z
import dataclasses import redis __all__ = [ 'RedisConfiguration', 'LimitConfiguration', ] @dataclasses.dataclass(eq=True, frozen=True) class RedisConfiguration: """ Redis connection configuration. """ host: str = None "The hostname or IP of the Redis server." port: int = 6379 "T...
23.206349
111
0.691518
173
1,462
5.791908
0.462428
0.031936
0.02994
0.051896
0.081836
0.081836
0.081836
0
0
0
0
0.013357
0.231874
1,462
62
112
23.580645
0.878896
0.043776
0
0.052632
0
0
0.503292
0.025604
0
0
0
0
0
1
0
false
0.052632
0.052632
0
0.473684
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
72d541cc7dbcd3a1232d1f77a07c6237915d8498
2,470
py
Python
examples/test_sign.py
lingpy/pysign
1aa67b736b97c02e14d35889cef1d1cc23de9441
[ "MIT" ]
null
null
null
examples/test_sign.py
lingpy/pysign
1aa67b736b97c02e14d35889cef1d1cc23de9441
[ "MIT" ]
6
2020-04-24T09:55:54.000Z
2021-05-20T18:47:37.000Z
examples/test_sign.py
lingpy/pysl
1aa67b736b97c02e14d35889cef1d1cc23de9441
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Transcriptions and targets for the parser """ # Example (1) most simple full sign transcription: # one dominant hand, one orientation (must have two symbols), one location, # one movement { "   ": # segmented into types { "symmetry": "", "dominant_hand": "", # hamfinger2...
29.404762
81
0.605263
242
2,470
6.417355
0.359504
0.061816
0.038635
0.034771
0.345138
0.307791
0.307791
0.27302
0.27302
0.27302
0
0.004109
0.211741
2,470
83
82
29.759036
0.745249
0.401619
0
0.457627
0
0
0.546908
0.063933
0
0
0
0
0
1
0
true
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
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
72d840ae2bea75d3bd659d5dfcf0f4f1bf6f7c80
3,678
py
Python
helpers/mbosoap/BasicRequestHelper.py
vacoj/mbodjango
e9a6df563862c587e4cc2c2713ed7f8ea0a6e4e3
[ "MIT" ]
8
2015-10-27T12:38:54.000Z
2018-02-23T03:03:24.000Z
helpers/mbosoap/BasicRequestHelper.py
vacoj/mbodjango
e9a6df563862c587e4cc2c2713ed7f8ea0a6e4e3
[ "MIT" ]
3
2015-10-28T22:23:58.000Z
2016-01-13T04:05:04.000Z
helpers/mbosoap/BasicRequestHelper.py
vacoj/mbodjango
e9a6df563862c587e4cc2c2713ed7f8ea0a6e4e3
[ "MIT" ]
9
2015-09-28T17:32:17.000Z
2018-02-01T00:01:04.000Z
"""This is where most universal code for the Python examples of API implementation exist. Much of the abstracted logic such as filling out credential objects and arrays resides in this class.""" from mboapi_djangodemo.SECRETS import SITEIDs, SOURCENAME, SOURCEPASS, USERNAME, USERPASS def BuildWsdlUrl(serviceNa...
36.78
130
0.712072
447
3,678
5.854586
0.42953
0.037447
0.053496
0.013756
0
0
0
0
0
0
0
0.002404
0.208265
3,678
99
131
37.151515
0.896291
0.334965
0
0.117647
0
0
0.054925
0
0
0
0
0
0
1
0.137255
false
0.137255
0.019608
0
0.352941
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
72dcf401e44f410845c08834be229c595955bb1d
549
py
Python
kafka_scripts/kafka-producer.py
walterjgsp/meaning
71fd69eab430d364baefb31096c866999de9b4dd
[ "MIT" ]
null
null
null
kafka_scripts/kafka-producer.py
walterjgsp/meaning
71fd69eab430d364baefb31096c866999de9b4dd
[ "MIT" ]
null
null
null
kafka_scripts/kafka-producer.py
walterjgsp/meaning
71fd69eab430d364baefb31096c866999de9b4dd
[ "MIT" ]
null
null
null
from kafka import KafkaProducer import json import random from time import sleep from datetime import datetime # Create an instance of the Kafka producer producer = KafkaProducer(bootstrap_servers='kafka-server:9092', value_serializer=lambda v: str(v).encode('utf-8'), ...
30.5
75
0.688525
74
549
5.067568
0.702703
0.064
0
0
0
0
0
0
0
0
0
0.030093
0.213115
549
17
76
32.294118
0.837963
0.169399
0
0
0
0
0.139073
0
0
0
0
0
0
1
0
false
0
0.384615
0
0.384615
0.153846
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
72ddbb31c8c4810b3a5fbf6b884179a874006b75
1,176
py
Python
tests/unit/test_scriptHandler.py
asaranprasad/nvda
e9609694acbfb06398eb6552067a0dcd532d67af
[ "bzip2-1.0.6" ]
2
2020-08-24T17:41:45.000Z
2020-08-25T16:48:52.000Z
tests/unit/test_scriptHandler.py
asaranprasad/nvda
e9609694acbfb06398eb6552067a0dcd532d67af
[ "bzip2-1.0.6" ]
3
2017-09-29T17:14:18.000Z
2019-05-20T16:13:39.000Z
tests/unit/test_scriptHandler.py
asaranprasad/nvda
e9609694acbfb06398eb6552067a0dcd532d67af
[ "bzip2-1.0.6" ]
1
2020-08-24T16:18:55.000Z
2020-08-24T16:18:55.000Z
#tests/unit/test_scriptHandler.py #A part of NonVisual Desktop Access (NVDA) #This file is covered by the GNU General Public License. #See the file COPYING for more details. #Copyright (C) 2018 NV Access Limited, Babbage B.V. """Unit tests for the scriptHandler module.""" import unittest from scriptHandler i...
32.666667
88
0.748299
147
1,176
5.857143
0.482993
0.081301
0.073171
0.087108
0
0
0
0
0
0
0
0.004004
0.15051
1,176
35
89
33.6
0.857858
0.287415
0
0
0
0
0.058376
0
0
0
0
0
0.26087
1
0.086957
false
0.086957
0.173913
0.043478
0.347826
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
72ea8e6ab107ef7c79711914f695c789e5cf1be4
2,843
py
Python
tests/test_app.py
iambanker/currency_converter
5e103e87cb2185c9330c1db618eaa0a44ecd180c
[ "MIT" ]
null
null
null
tests/test_app.py
iambanker/currency_converter
5e103e87cb2185c9330c1db618eaa0a44ecd180c
[ "MIT" ]
null
null
null
tests/test_app.py
iambanker/currency_converter
5e103e87cb2185c9330c1db618eaa0a44ecd180c
[ "MIT" ]
null
null
null
import pytest import json from app import create_app @pytest.fixture def testapp(): app = create_app() app.config['TESTING'] = True return app.test_client() def test_docs_endpoint(testapp): resp = testapp.get('/docs', follow_redirects=True) assert "Documentation" in resp.data.decode("utf-8") d...
37.906667
164
0.671122
414
2,843
4.485507
0.200483
0.094777
0.042003
0.140011
0.652127
0.536887
0.494884
0.452342
0.419494
0.386645
0
0.036302
0.166725
2,843
74
165
38.418919
0.747573
0.051002
0
0.316667
0
0.016667
0.238025
0.098403
0
0
0
0
0.416667
1
0.083333
false
0
0.05
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
0
1
0
0
0
0
0
0
0
0
0
1
72ead221eb4dd58caa1c0dc3c0588624b19fffa4
638
py
Python
flask_graphite/utils.py
shapiy/flask-graphite
053274eb1a998e6bd9bd1a3ecd80c64195eaccf0
[ "MIT" ]
15
2018-03-30T14:35:28.000Z
2020-07-31T17:14:29.000Z
flask_graphite/utils.py
shapiy/flask-graphite
053274eb1a998e6bd9bd1a3ecd80c64195eaccf0
[ "MIT" ]
15
2018-04-02T17:47:54.000Z
2019-06-03T08:59:23.000Z
flask_graphite/utils.py
shapiy/flask-graphite
053274eb1a998e6bd9bd1a3ecd80c64195eaccf0
[ "MIT" ]
1
2019-06-01T13:55:14.000Z
2019-06-01T13:55:14.000Z
from flask import current_app, request from werkzeug.routing import _rule_re def get_request_metric_prefix(): """Turn the URI of the current request into a metric .. warning:: You must be inside a Flask request context to call this function. """ metric_template = current_app.config.get("FLASK_...
37.529412
78
0.672414
81
638
5.037037
0.555556
0.205882
0.088235
0.117647
0
0
0
0
0
0
0
0
0.221003
638
16
79
39.875
0.820926
0.206897
0
0
0
0
0.131417
0.106776
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
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
72ebb7c54a44c8637af8ce1f318d26753ff35280
1,175
py
Python
setup.py
robertdelacruz1551/CoinbaseProWebsocketClient
6de2b19ce7a2c05127b32f7422be72f4b1786c90
[ "MIT" ]
4
2018-11-07T07:50:52.000Z
2022-01-15T22:36:06.000Z
setup.py
robertdelacruz1551/CoinbaseProWebsocketClient
6de2b19ce7a2c05127b32f7422be72f4b1786c90
[ "MIT" ]
null
null
null
setup.py
robertdelacruz1551/CoinbaseProWebsocketClient
6de2b19ce7a2c05127b32f7422be72f4b1786c90
[ "MIT" ]
null
null
null
#!/usr/bin/env python from os.path import exists from setuptools import setup, find_packages setup( name='CoinbaseProWebsocketClient', version=open('VERSION').read().strip(), # Your name & email here author='Robert De La Cruz', author_email='robert.delacruz1551@hotmail.com', # If you had Coinb...
37.903226
115
0.688511
150
1,175
5.346667
0.68
0.029925
0
0
0
0
0
0
0
0
0
0.011435
0.181277
1,175
30
116
39.166667
0.822245
0.35234
0
0
0
0
0.353723
0.075798
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
72f67a19ccc9ad43173a42f288abbd7a21ab6620
3,151
py
Python
otp_txt.py
robertmcatee/one_time_pad
ba349488d425ec4a82a121be65ee89fa5a7f3ccd
[ "Apache-2.0" ]
null
null
null
otp_txt.py
robertmcatee/one_time_pad
ba349488d425ec4a82a121be65ee89fa5a7f3ccd
[ "Apache-2.0" ]
null
null
null
otp_txt.py
robertmcatee/one_time_pad
ba349488d425ec4a82a121be65ee89fa5a7f3ccd
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 """ Generate One Time Pad files, or serve the pads up using a CherryPy server. """ from jinja2 import DictLoader, Environment import secrets # The characters available for the One Time Pad OTP_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' # The number of characters in each group, separated by ...
34.25
114
0.71279
472
3,151
4.612288
0.400424
0.032154
0.041341
0.027561
0.088654
0.03491
0.03491
0.03491
0
0
0
0.012261
0.171692
3,151
92
115
34.25
0.821839
0.194859
0
0.114754
1
0.081967
0.528773
0.032998
0
0
0
0
0
1
0.032787
false
0
0.032787
0
0.098361
0.032787
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
72faf128b0e0ab402063c54a9410846dbfb610c4
1,334
py
Python
heliosburn/proxy/models.py
thecodeteam/heliosburn
513f6335c9788948d82e5c9285d7869f3ff4cc10
[ "MIT" ]
null
null
null
heliosburn/proxy/models.py
thecodeteam/heliosburn
513f6335c9788948d82e5c9285d7869f3ff4cc10
[ "MIT" ]
null
null
null
heliosburn/proxy/models.py
thecodeteam/heliosburn
513f6335c9788948d82e5c9285d7869f3ff4cc10
[ "MIT" ]
1
2020-09-17T18:19:05.000Z
2020-09-17T18:19:05.000Z
from pymongo import MongoClient from bson import ObjectId from settings import Common # import datetime # import sys from twisted.python import log class MongoModel(dict): collection_name = None def __init__(self, *args, **kwargs): dict.__init__(self, *args, **kwargs) self.db = self.connect()...
24.254545
69
0.62069
143
1,334
5.622378
0.405594
0.104478
0.119403
0.044776
0
0
0
0
0
0
0
0
0.272864
1,334
54
70
24.703704
0.828866
0.129685
0
0
0
0
0.043478
0
0
0
0
0
0
1
0.096774
false
0
0.129032
0.032258
0.612903
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
72fd2133d4f79aa346c95976a6fe3ab69dd1af1f
1,808
py
Python
tests/test_uy.py
smithdc1/django-localflavor
871ed24461720325d4dd0354daa1832330549c7a
[ "BSD-3-Clause" ]
619
2015-01-08T15:49:06.000Z
2022-03-29T15:06:43.000Z
tests/test_uy.py
smithdc1/django-localflavor
871ed24461720325d4dd0354daa1832330549c7a
[ "BSD-3-Clause" ]
263
2015-01-03T14:08:52.000Z
2022-03-05T15:03:45.000Z
tests/test_uy.py
smithdc1/django-localflavor
871ed24461720325d4dd0354daa1832330549c7a
[ "BSD-3-Clause" ]
262
2015-01-05T12:55:07.000Z
2022-03-22T19:15:23.000Z
from django.test import SimpleTestCase from localflavor.uy.forms import UYCIField, UYDepartmentSelect from localflavor.uy.util import get_validation_digit class UYLocalFlavorTests(SimpleTestCase): def test_UYDepartmentSelect(self): f = UYDepartmentSelect() out = '''<select name="departamentos"> <...
36.16
92
0.647677
230
1,808
5.056522
0.434783
0.179708
0.263113
0.033534
0.120378
0
0
0
0
0
0
0.08221
0.179204
1,808
49
93
36.897959
0.701482
0
0
0
0
0.022222
0.560288
0.251659
0
0
0
0
0.088889
1
0.044444
false
0
0.066667
0
0.133333
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
72fec69a4212433b17fcbbd516b802fad1425621
1,058
py
Python
platform/core/polyaxon/events/event_colors.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/events/event_colors.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/events/event_colors.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
from typing import Any from events import event_actions, event_context from lifecycles.statuses import StatusOptions class EventColor(object): GREEN = '#1aaa55' RED = '#aa310f' BLUE = '#2e77aa' YELLOW = '#aa9e4a' GREY = '#485563' @classmethod def get_for_event(cls, event_content_object: ...
28.594595
78
0.643667
122
1,058
5.360656
0.377049
0.09633
0.110092
0.091743
0.304281
0.237003
0.237003
0.171254
0.171254
0.171254
0
0.022398
0.282609
1,058
36
79
29.388889
0.839262
0
0
0.148148
0
0
0.033081
0
0
0
0
0
0
1
0.037037
false
0
0.111111
0
0.62963
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
f4045fcb0f7279f97a4e3f121d88e74596cda77d
6,039
py
Python
train.py
Ahn-JH/YOLOv3_tf2
4bbf5454a94b32b0d5795c13c5298f32e7cb3c50
[ "MIT" ]
null
null
null
train.py
Ahn-JH/YOLOv3_tf2
4bbf5454a94b32b0d5795c13c5298f32e7cb3c50
[ "MIT" ]
null
null
null
train.py
Ahn-JH/YOLOv3_tf2
4bbf5454a94b32b0d5795c13c5298f32e7cb3c50
[ "MIT" ]
null
null
null
#! /usr/bin/env python # coding=utf-8 #================================================================ # Copyright (C) 2019 * Ltd. All rights reserved. # # Editor : VIM # File name : train.py # Author : YunYang1994 # Created date: 2019-07-18 09:18:54 # Description : # #=========================...
36.161677
151
0.660374
845
6,039
4.519527
0.253254
0.031684
0.01702
0.014664
0.136685
0.100026
0.071747
0.049751
0.019901
0
0
0.018848
0.20053
6,039
166
152
36.379518
0.772162
0
0
0
0
0.04386
0.107572
0.046232
0
0
0
0
0
0
null
null
0
0.157895
null
null
0.035088
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
f4056ce94d4e8583b4e788bcb3b94a226a56a0d1
28,094
py
Python
qtui.py
kwdgwl/mzlnmsl
6212253a9bfa605b0582963f9d66a7241dde328f
[ "MIT" ]
1
2021-05-10T12:16:02.000Z
2021-05-10T12:16:02.000Z
qtui.py
kwdgwl/mzlnmsl
6212253a9bfa605b0582963f9d66a7241dde328f
[ "MIT" ]
null
null
null
qtui.py
kwdgwl/mzlnmsl
6212253a9bfa605b0582963f9d66a7241dde328f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mzlnmsl.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGu...
63.417607
95
0.73158
3,551
28,094
5.485497
0.082512
0.067765
0.092613
0.054058
0.482212
0.3263
0.254993
0.166538
0.024077
0.014066
0
0.033573
0.157115
28,094
442
96
63.561086
0.78902
0.009682
0
0.037383
1
0
0.077407
0.004782
0
0
0
0
0
1
0.004673
false
0.03972
0.004673
0
0.011682
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
f4059aa3adaefd9be87f1ced93a7c506447339f0
3,876
py
Python
resolwe/flow/executors/prepare.py
zagm/resolwe
da371a3ec0260a45ccab848704c6a339a0de79cc
[ "Apache-2.0" ]
null
null
null
resolwe/flow/executors/prepare.py
zagm/resolwe
da371a3ec0260a45ccab848704c6a339a0de79cc
[ "Apache-2.0" ]
null
null
null
resolwe/flow/executors/prepare.py
zagm/resolwe
da371a3ec0260a45ccab848704c6a339a0de79cc
[ "Apache-2.0" ]
null
null
null
""".. Ignore pydocstyle D400. ====================== Flow Executor Preparer ====================== Framework for the manager-resident executor preparation facilities. .. autoclass:: resolwe.flow.executors.prepare.BaseFlowExecutorPreparer :members: """ import logging import os from django.conf import settings f...
36.914286
92
0.676471
476
3,876
5.386555
0.355042
0.025741
0.017161
0.017551
0.200078
0.185257
0.117395
0.095944
0.063963
0.063963
0
0.001686
0.235036
3,876
104
93
37.269231
0.863069
0.448142
0
0
0
0
0.042654
0.013165
0
0
0
0
0
1
0.153846
false
0
0.205128
0
0.564103
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
f407fb8746c9657f01dd6264e92da7d4c08a3117
8,631
py
Python
externals/libbot/bot2-lcmgl/python/src/bot_lcmgl/lcmgl.py
ericmanzi/double_pendulum_lqr
76bba3091295abb7d412c4a3156258918f280c96
[ "BSD-3-Clause" ]
null
null
null
externals/libbot/bot2-lcmgl/python/src/bot_lcmgl/lcmgl.py
ericmanzi/double_pendulum_lqr
76bba3091295abb7d412c4a3156258918f280c96
[ "BSD-3-Clause" ]
null
null
null
externals/libbot/bot2-lcmgl/python/src/bot_lcmgl/lcmgl.py
ericmanzi/double_pendulum_lqr
76bba3091295abb7d412c4a3156258918f280c96
[ "BSD-3-Clause" ]
null
null
null
import cStringIO as StringIO import bot_lcmgl.data_t as data_t import struct LCMGL_GL_BEGIN = 4 LCMGL_GL_END = 5 LCMGL_GL_VERTEX3F = 6 LCMGL_GL_VERTEX3D = 7 LCMGL_GL_COLOR3F = 8 LCMGL_GL_COLOR4F = 9 LCMGL_GL_POINTSIZE = 10 LCMGL_GL_ENABLE = 11 LCMGL_GL_DISABLE =...
30.935484
98
0.610821
1,189
8,631
4.079899
0.263246
0.064935
0.080396
0.01979
0.150072
0.096681
0.004123
0.004123
0.004123
0
0
0.068392
0.296953
8,631
278
99
31.046763
0.731048
0.064187
0
0.036199
0
0
0.048435
0.009314
0
0
0.024466
0
0
0
null
null
0
0.031674
null
null
0.004525
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
f4085286f734d98dc19bd5903194bbdf1f3992b5
2,058
py
Python
swaper.py
djkarmi/swapy
0030bfacd725896536223b10ba4dac2c810b6f0b
[ "MIT" ]
null
null
null
swaper.py
djkarmi/swapy
0030bfacd725896536223b10ba4dac2c810b6f0b
[ "MIT" ]
null
null
null
swaper.py
djkarmi/swapy
0030bfacd725896536223b10ba4dac2c810b6f0b
[ "MIT" ]
null
null
null
import hmac import time import urllib import hashlib import requests import config class BitapiException(Exception): pass class Yolo(): def __init__(self, key=config.key, secret=config.secret): self.key = key self.secret = secret def bitapi(self, method, **params): """Main met...
27.810811
74
0.573372
242
2,058
4.797521
0.429752
0.05168
0.031008
0.029285
0.041344
0
0
0
0
0
0
0.007524
0.289602
2,058
73
75
28.191781
0.786594
0.016035
0
0
0
0
0.126005
0
0
0
0
0
0
0
null
null
0.019231
0.115385
null
null
0.038462
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
f40c0337e5d1b7a7cc7cac22ac5117482aa77824
868
py
Python
scout/build/user.py
ninanorgren/scout
1b2f110aac7bd66d331e3413f13bbda93af19127
[ "BSD-3-Clause" ]
1
2019-08-17T21:20:04.000Z
2019-08-17T21:20:04.000Z
scout/build/user.py
ninanorgren/scout
1b2f110aac7bd66d331e3413f13bbda93af19127
[ "BSD-3-Clause" ]
null
null
null
scout/build/user.py
ninanorgren/scout
1b2f110aac7bd66d331e3413f13bbda93af19127
[ "BSD-3-Clause" ]
null
null
null
from scout.models import User def build_user(user_info): """Build a user object Args: user_info(dict): A dictionary with user information Returns: user_obj(scout.models.User) """ try: email = user_info['email'] except KeyError as err: raise KeyError("A ...
25.529412
59
0.607143
117
868
4.358974
0.367521
0.156863
0.058824
0.082353
0.284314
0.184314
0.184314
0.184314
0.184314
0.184314
0
0
0.294931
868
34
60
25.529412
0.833333
0.198157
0
0.222222
0
0
0.195159
0
0
0
0
0.029412
0
1
0.055556
false
0
0.055556
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
1
0
0
0
0
0
0
0
0
0
0
1
f40d6e64811b3a6ebf48187ab4aa250633651bf9
1,672
py
Python
geoq/training/models.py
kaydoh/geoq
6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0
[ "MIT" ]
471
2015-01-05T15:16:26.000Z
2022-03-28T05:06:11.000Z
geoq/training/models.py
kaydoh/geoq
6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0
[ "MIT" ]
109
2015-01-06T20:00:58.000Z
2022-03-11T23:17:53.000Z
geoq/training/models.py
kaydoh/geoq
6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0
[ "MIT" ]
100
2015-01-05T15:16:39.000Z
2021-12-01T12:13:13.000Z
# This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and # is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012) from django.db import models from django.contrib.auth.models import User from jsonfield import JSONField class ...
69.666667
168
0.749402
242
1,672
5.061983
0.524793
0.058776
0.053061
0.069388
0.044082
0
0
0
0
0
0
0.026204
0.155502
1,672
23
169
72.695652
0.84136
0.120215
0
0
0
0
0.303134
0
0
0
0
0
0
1
0.058824
false
0
0.176471
0.058824
0.941176
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
f40e04ba8bedde956c87f0f207dd1625ad31a706
1,803
py
Python
bin/pack.py
old-bibigon/qgis-gost-style
7edb0cb18cfa6ab0419d97d92315b7214323946f
[ "CC-BY-3.0" ]
null
null
null
bin/pack.py
old-bibigon/qgis-gost-style
7edb0cb18cfa6ab0419d97d92315b7214323946f
[ "CC-BY-3.0" ]
null
null
null
bin/pack.py
old-bibigon/qgis-gost-style
7edb0cb18cfa6ab0419d97d92315b7214323946f
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf8 -*- #from lxml import etree from xml.etree import ElementTree as etree import os, sys import optparse import re #import codecs #сборка кучки xml с описанием стилей знаков в единую библиотеку qgis tree = etree.fromstring("""<!DOCTYPE qgis_style> <qgis_style version="0" > <symbol...
32.196429
109
0.618968
219
1,803
5.050228
0.52968
0.0217
0.05425
0
0
0
0
0
0
0
0
0.003544
0.217415
1,803
55
110
32.781818
0.780298
0.13533
0
0
0
0
0.209542
0.016763
0
0
0
0
0
0
null
null
0
0.117647
null
null
0.058824
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
f414486069bea099363beac2f74d80694060f678
388
py
Python
cpdb/cr/tests/mixins.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
25
2018-07-20T22:31:40.000Z
2021-07-15T16:58:41.000Z
cpdb/cr/tests/mixins.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
13
2018-06-18T23:08:47.000Z
2022-02-10T07:38:25.000Z
cpdb/cr/tests/mixins.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
6
2018-05-17T21:59:43.000Z
2020-11-17T00:30:26.000Z
from cr.index_aliases import cr_index_alias from cr.indexers import CRIndexer class CRTestCaseMixin(object): def setUp(self): cr_index_alias.write_index.delete(ignore=404) cr_index_alias.read_index.create(ignore=400) def refresh_index(self): with cr_index_alias.indexing(): ...
27.714286
53
0.719072
52
388
5.076923
0.480769
0.159091
0.227273
0.128788
0.166667
0
0
0
0
0
0
0.019169
0.193299
388
13
54
29.846154
0.824281
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.5
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
f417292743c955b09c3442456d72e7f99b0276f3
51,901
py
Python
tests/test_data_tokenizers.py
leezu/gluon-nlp
19de74c2b03f22dde8311a0225b4571c2deef0e4
[ "Apache-2.0" ]
2,461
2018-04-25T03:47:22.000Z
2022-03-31T03:58:48.000Z
tests/test_data_tokenizers.py
leezu/gluon-nlp
19de74c2b03f22dde8311a0225b4571c2deef0e4
[ "Apache-2.0" ]
1,450
2018-04-25T16:14:25.000Z
2022-02-24T21:02:57.000Z
tests/test_data_tokenizers.py
leezu/gluon-nlp
19de74c2b03f22dde8311a0225b4571c2deef0e4
[ "Apache-2.0" ]
578
2018-04-25T04:55:18.000Z
2022-03-16T03:01:45.000Z
import pytest import random import collections import pickle from uuid import uuid4 import os import unicodedata import tempfile from pkg_resources import parse_version import gluonnlp from gluonnlp.data.tokenizers import WhitespaceTokenizer, MosesTokenizer, JiebaTokenizer,\ SpacyTokenizer, SubwordNMTTokenizer, YTT...
62.306122
133
0.502688
6,158
51,901
4.067717
0.087853
0.019402
0.036648
0.046349
0.784582
0.736516
0.680666
0.640864
0.602419
0.577428
0
0.078363
0.298029
51,901
832
134
62.38101
0.604754
0.02183
0
0.29589
0
0.005479
0.178705
0.0413
0
0
0
0
0.041096
1
0.034247
false
0
0.024658
0
0.060274
0.00137
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
f41a5819618e46a47c0b07c1c09c8644999afe8f
471
py
Python
django_extras/tests/forms/fields.py
gem/django-extras
d692e87891fe4cb79726437d3185628c1a9e2f33
[ "BSD-3-Clause" ]
18
2015-08-22T08:59:48.000Z
2020-10-08T17:15:23.000Z
django_extras/tests/forms/fields.py
gem/django-extras
d692e87891fe4cb79726437d3185628c1a9e2f33
[ "BSD-3-Clause" ]
4
2018-01-06T23:19:20.000Z
2020-10-09T02:22:45.000Z
django_extras/tests/forms/fields.py
gem/django-extras
d692e87891fe4cb79726437d3185628c1a9e2f33
[ "BSD-3-Clause" ]
9
2015-06-15T17:28:03.000Z
2021-08-29T07:26:50.000Z
from django import test from django_extras.forms import fields from django_extras.core import validators class ColorFieldTestCase(test.TestCase): def test_check_validator_no_alpha(self): target = fields.ColorField() self.assertIn(validators.validate_color, target.validators) def test_check_val...
39.25
73
0.783439
58
471
6.12069
0.448276
0.084507
0.090141
0.11831
0.174648
0
0
0
0
0
0
0
0.146497
471
12
73
39.25
0.883085
0
0
0
0
0
0
0
0
0
0
0
0.2
1
0.2
false
0
0.3
0
0.6
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
f41b3285d1ce1df0f51b2037d12125c49c9576a9
7,338
py
Python
tensorflow/python/autograph/pyct/origin_info.py
datanonymous/TFandroid
89927e863b1ad96184ab09188f62b7e391c896d9
[ "Apache-2.0" ]
6
2019-02-05T22:36:51.000Z
2022-01-14T03:50:57.000Z
tensorflow/python/autograph/pyct/origin_info.py
shekharpalit/tensorflow
6aa83398ab03bfae822f36772757097bcb98b6ed
[ "Apache-2.0" ]
1
2019-09-14T04:40:07.000Z
2020-11-18T18:16:17.000Z
tensorflow/python/autograph/pyct/origin_info.py
shekharpalit/tensorflow
6aa83398ab03bfae822f36772757097bcb98b6ed
[ "Apache-2.0" ]
8
2016-01-14T13:12:56.000Z
2021-04-09T10:20:53.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.450704
80
0.694876
982
7,338
5.056008
0.304481
0.018127
0.024169
0.029204
0.126485
0.087815
0.031017
0.019335
0
0
0
0.002925
0.208095
7,338
212
81
34.613208
0.851489
0.404606
0
0.076923
0
0
0.049692
0
0
0
0
0.014151
0
1
0.048077
false
0.009615
0.144231
0.009615
0.269231
0.038462
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
f41d1fdb4192631f955e43de7ee4c3232ca87e8d
2,134
py
Python
rest/collection/migrations/0001_initial.py
cmu-lib/campi
c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2
[ "MIT" ]
12
2020-10-09T18:12:30.000Z
2021-03-23T16:17:40.000Z
rest/collection/migrations/0001_initial.py
cmu-lib/campi
c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2
[ "MIT" ]
1
2020-08-11T17:11:43.000Z
2020-08-11T17:29:58.000Z
rest/collection/migrations/0001_initial.py
cmu-lib/campi
c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-21 19:25 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
47.422222
230
0.630272
231
2,134
5.658009
0.372294
0.042846
0.042846
0.06733
0.625861
0.625861
0.625861
0.625861
0.596787
0.518745
0
0.012947
0.239925
2,134
44
231
48.5
0.792848
0.021087
0
0.486486
1
0
0.172976
0
0
0
0
0
0
1
0
false
0
0.081081
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f41e01bdf5e3088939512da12728bc36d98c337c
2,270
py
Python
fishBooked/fish/migrations/0013_auto_20171112_1548.py
lijingdetime/weixinMinApp
479d1e5c276e4a0838d5e0d6b758d25438e56ff7
[ "MIT" ]
null
null
null
fishBooked/fish/migrations/0013_auto_20171112_1548.py
lijingdetime/weixinMinApp
479d1e5c276e4a0838d5e0d6b758d25438e56ff7
[ "MIT" ]
null
null
null
fishBooked/fish/migrations/0013_auto_20171112_1548.py
lijingdetime/weixinMinApp
479d1e5c276e4a0838d5e0d6b758d25438e56ff7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-11-12 07:48 from __future__ import unicode_literals import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('fish', '0012_auto_20171109_2011'), ] ...
39.824561
143
0.587665
233
2,270
5.583691
0.373391
0.05073
0.024596
0.05073
0.53113
0.500384
0.471176
0.471176
0.471176
0.442736
0
0.060219
0.275771
2,270
56
144
40.535714
0.731144
0.029956
0
0.428571
1
0
0.136426
0.010459
0
0
0
0
0
1
0
false
0
0.081633
0
0.142857
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