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
72bd4a8996d5c4753f1f31aee9a880c97885b93a
254
py
Python
examples/single_message.py
Inrixia/pyais
b50fd4d75c687d71b3c70ee939ac9112cfec991e
[ "MIT" ]
51
2019-10-07T11:26:56.000Z
2022-03-16T10:45:15.000Z
examples/single_message.py
KingKongOne/pyais
ddee5cc4eb8f01f494c82f7b14bdd55aa393af47
[ "MIT" ]
57
2019-10-14T07:50:00.000Z
2022-03-28T06:52:27.000Z
examples/single_message.py
KingKongOne/pyais
ddee5cc4eb8f01f494c82f7b14bdd55aa393af47
[ "MIT" ]
31
2019-10-13T17:17:56.000Z
2022-03-26T16:46:54.000Z
from pyais.messages import NMEAMessage message = NMEAMessage(b"!AIVDM,1,1,,B,15M67FC000G?ufbE`FepT@3n00Sa,0*5C") print(message.decode()) # or message = NMEAMessage.from_string("!AIVDM,1,1,,B,15M67FC000G?ufbE`FepT@3n00Sa,0*5C") print(message.decode())
25.4
84
0.755906
39
254
4.897436
0.487179
0.188482
0.073298
0.08377
0.565445
0.565445
0.565445
0.565445
0.565445
0.565445
0
0.118143
0.066929
254
9
85
28.222222
0.687764
0.007874
0
0.4
0
0
0.376
0.376
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
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
72bde1ffa295f39cff6155beef6e3b3159a43bd3
536
py
Python
30_days_of_code_10.py
sercangul/HackerRank
e6d7056babe03baafee8d7f1cacdca7c28b72ded
[ "Apache-2.0" ]
null
null
null
30_days_of_code_10.py
sercangul/HackerRank
e6d7056babe03baafee8d7f1cacdca7c28b72ded
[ "Apache-2.0" ]
null
null
null
30_days_of_code_10.py
sercangul/HackerRank
e6d7056babe03baafee8d7f1cacdca7c28b72ded
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 3 19:02:33 2019 @author: sercangul """ def maxConsecutiveOnes(x): # Initialize result count = 0 # Count the number of iterations to # reach x = 0. while (x!=0): # This operation reduces length ...
18.482759
42
0.544776
68
536
4.176471
0.735294
0.014085
0
0
0
0
0
0
0
0
0
0.053073
0.33209
536
29
43
18.482759
0.740223
0.429104
0
0
0
0
0.027397
0
0
0
0
0
0
1
0.1
false
0
0
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72be55bfd5b76b9d59e5532d60fbf00e392fbde4
6,744
py
Python
artap/algorithm_cmaes.py
artap-framework/artap
7e4b01abbe5ca0fce9fa87a1a307ebd11ace36b4
[ "MIT" ]
5
2021-06-13T17:04:37.000Z
2022-03-04T17:16:06.000Z
artap/algorithm_cmaes.py
artap-framework/artap
7e4b01abbe5ca0fce9fa87a1a307ebd11ace36b4
[ "MIT" ]
null
null
null
artap/algorithm_cmaes.py
artap-framework/artap
7e4b01abbe5ca0fce9fa87a1a307ebd11ace36b4
[ "MIT" ]
8
2021-03-11T18:23:47.000Z
2022-02-22T11:13:23.000Z
import numpy as np from .problem import Problem from .algorithm_genetic import GeneralEvolutionaryAlgorithm from .individual import Individual from .operators import CustomGenerator, nondominated_truncate, RandomGenerator, UniformGenerator import time class CMA_ES(GeneralEvolutionaryAlgorithm): """ Implementa...
40.626506
116
0.647539
798
6,744
5.319549
0.264411
0.033687
0.041461
0.039576
0.282686
0.182332
0.136631
0.095642
0.036278
0.036278
0
0.017936
0.264235
6,744
165
117
40.872727
0.837162
0.307088
0
0.129412
0
0
0.066048
0.01425
0
0
0
0
0
1
0.070588
false
0
0.070588
0
0.2
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
0
0
1
0
72bf6f79bc537479ff8af423d399ec3e3244b8ce
4,988
py
Python
apns_proxy_client/core.py
hagino3000/apns-proxy-client-py
b5ce34be940a8f8a990dc369e293408380d0c359
[ "BSD-2-Clause" ]
null
null
null
apns_proxy_client/core.py
hagino3000/apns-proxy-client-py
b5ce34be940a8f8a990dc369e293408380d0c359
[ "BSD-2-Clause" ]
null
null
null
apns_proxy_client/core.py
hagino3000/apns-proxy-client-py
b5ce34be940a8f8a990dc369e293408380d0c359
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ APNS Proxy Serverのクライアント """ import time import zmq import simplejson as json READ_TIMEOUT = 1500 # msec FLUSH_TIMEOUT = 5000 # msec COMMAND_ASK_ADDRESS = b'\1' COMMAND_SEND = b'\2' COMMAND_FEEDBACK = b'\3' DEVICE_TOKEN_LENGTH = 64 JSON_ALERT_KEY_SET = set(['body', 'action_loc_key', ...
30.414634
94
0.589014
573
4,988
4.965096
0.246073
0.044991
0.018981
0.016872
0.140598
0.089982
0.070299
0.070299
0.070299
0.070299
0
0.006369
0.307538
4,988
163
95
30.601227
0.817313
0.027065
0
0.125
0
0
0.103666
0
0
0
0
0
0
1
0.116667
false
0
0.025
0.008333
0.216667
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
0
0
1
0
72c0ae451f7caa49a39c48148ab8e7fb5585d0b8
800
py
Python
003_joint_probabilities.py
svetlanama/snowball
a41865a866dae124b4a22134f091a7d09bd0896e
[ "MIT" ]
null
null
null
003_joint_probabilities.py
svetlanama/snowball
a41865a866dae124b4a22134f091a7d09bd0896e
[ "MIT" ]
null
null
null
003_joint_probabilities.py
svetlanama/snowball
a41865a866dae124b4a22134f091a7d09bd0896e
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '..') import numpy import time import ConfigParser import topicmodel def main(): # read configuration file config = ConfigParser.ConfigParser() config.readfp(open('config.ini')) dataDir = config.get('main', 'dataDir') io = topicmodel.io(dataDir) model ...
22.222222
87
0.665
94
800
5.521277
0.542553
0.05395
0
0
0
0
0
0
0
0
0
0.007788
0.1975
800
35
88
22.857143
0.800623
0.06375
0
0
0
0
0.189262
0.127517
0
0
0
0
0
0
null
null
0
0.217391
null
null
0.086957
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
72c1a420d34dd573dce6d90546ddf3cb21473656
2,660
py
Python
tests/bugs/core_4318_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_4318_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_4318_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_4318 # title: Regression: Predicates involving PSQL variables/parameters are not pushed inside the aggregation # decription: # tracker_id: CORE-4318 # min_versions: ['3.0'] # versions: 3.0 # qmid: None import pytest from firebird.qa import db_factory, i...
22.931034
112
0.557895
357
2,660
4.008403
0.37535
0.025157
0.014675
0.018868
0.194969
0.171209
0.089448
0.089448
0.037736
0.037736
0
0.052359
0.346617
2,660
115
113
23.130435
0.771001
0.104887
0
0.25
0
0.011905
0.790629
0
0
0
0
0
0.011905
1
0.011905
false
0
0.02381
0
0.035714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
72c1ef9e3306b06082ecfe37e40b05472ed66d4a
1,047
py
Python
dictionary.py
WilliamHackspeare/profanity-percentage
4aab708620b7543a2a5cb30c9cee8404dcc836cb
[ "MIT" ]
null
null
null
dictionary.py
WilliamHackspeare/profanity-percentage
4aab708620b7543a2a5cb30c9cee8404dcc836cb
[ "MIT" ]
null
null
null
dictionary.py
WilliamHackspeare/profanity-percentage
4aab708620b7543a2a5cb30c9cee8404dcc836cb
[ "MIT" ]
null
null
null
#Import the json library to parse JSON file to Python import json #Import list of punctuation characters from the string library from string import punctuation as p #This method checks if the given word is a profanity def is_profanity(word): #Open the JSON file words_file = open('data.json') #Parse the JSON f...
26.846154
114
0.73639
173
1,047
4.398844
0.364162
0.027595
0.018397
0
0
0
0
0
0
0
0
0.008475
0.211079
1,047
39
115
26.846154
0.912833
0.578797
0
0
0
0
0.02331
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72c22519e149895de228608442ca88e10bbdc5d3
1,613
py
Python
setup.py
cyfrmedia/cerridwen
6ac9193d41d7c6fdea0abab5e5f207132844fb4e
[ "MIT" ]
25
2015-01-20T13:13:51.000Z
2021-11-05T12:52:13.000Z
setup.py
cyfrmedia/cerridwen
6ac9193d41d7c6fdea0abab5e5f207132844fb4e
[ "MIT" ]
2
2018-11-11T21:02:10.000Z
2020-04-10T09:18:52.000Z
setup.py
cyfrmedia/cerridwen
6ac9193d41d7c6fdea0abab5e5f207132844fb4e
[ "MIT" ]
14
2015-01-26T10:20:28.000Z
2021-10-31T13:05:24.000Z
from setuptools import setup import os here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() #NEWS = open(os.path.join(here, 'NEWS.txt')).read() rootdir = os.path.dirname(os.path.abspath(__file__)) exec(open(rootdir + '/cerridwen/version.py').read()) version = __VERS...
35.844444
81
0.629882
170
1,613
5.858824
0.570588
0.036145
0.026104
0.028112
0.036145
0
0
0
0
0
0
0.003953
0.215747
1,613
44
82
36.659091
0.783399
0.075635
0
0
0
0
0.476478
0.045699
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
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
0
0
1
0
72c2286c61223e879e49fc3a51d82e195787e502
4,768
py
Python
pajbot/apiwrappers/authentication/access_token.py
JoachimFlottorp/pajbot
4fb88c403dedb20d95be80e38da72be1ed064901
[ "MIT" ]
128
2015-12-28T01:02:30.000Z
2019-05-24T21:20:50.000Z
pajbot/apiwrappers/authentication/access_token.py
JoachimFlottorp/pajbot
4fb88c403dedb20d95be80e38da72be1ed064901
[ "MIT" ]
277
2015-05-03T18:48:57.000Z
2019-05-23T17:41:28.000Z
pajbot/apiwrappers/authentication/access_token.py
JoachimFlottorp/pajbot
4fb88c403dedb20d95be80e38da72be1ed064901
[ "MIT" ]
96
2015-08-07T18:49:50.000Z
2019-05-20T19:49:27.000Z
import datetime from abc import ABC, abstractmethod import pajbot class AccessToken(ABC): SHOULD_REFRESH_THRESHOLD = 0.9 """Fraction between 0 and 1 indicating what fraction/percentage of the specified full validity period should actually be utilized. E.g. if this is set to 0.9, the implementation will ...
32.216216
105
0.635067
592
4,768
4.890203
0.261824
0.090155
0.018998
0.034542
0.173748
0.12677
0.033851
0.033851
0.033851
0.033851
0
0.006173
0.286493
4,768
147
106
32.435374
0.844797
0.139681
0
0.260417
0
0
0.066719
0
0
0
0
0
0
1
0.125
false
0.020833
0.03125
0.041667
0.302083
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
0
0
1
0
72c23dc2d109c0b3025a3d48b3833415e7515ab1
1,686
py
Python
GHOST.py
RadicalAjay/Ghost_data
b151b0b92d27c3b8454e28d4f037eafb587d7b23
[ "MIT" ]
1
2020-06-13T11:29:17.000Z
2020-06-13T11:29:17.000Z
GHOST.py
RadicalAjay/Ghost_data
b151b0b92d27c3b8454e28d4f037eafb587d7b23
[ "MIT" ]
null
null
null
GHOST.py
RadicalAjay/Ghost_data
b151b0b92d27c3b8454e28d4f037eafb587d7b23
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # Description: Data_Ghost, concealing data into spaces and tabs making it imperceptable to human eyes. # Author: Ajay Dyavathi # Github: Radical Ajay class Ghost(): def __init__(self, file_name, output_format='txt'): ''' Converts ascii text to spaces and tabs ''' self.file_name...
33.72
102
0.577699
224
1,686
4.205357
0.352679
0.038217
0.055202
0.031847
0.104034
0.048832
0.048832
0
0
0
0
0.012542
0.290629
1,686
49
103
34.408163
0.775084
0.293594
0
0
0
0
0.019948
0
0
0
0
0
0
1
0.217391
false
0
0
0
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
1
0
0
0
0
0
0
0
1
72c2e94771b614f6c939030fdbb56bca1d8a8d06
1,965
py
Python
scan_predict.py
ychu196/chicago_scan
ed5f32a9f27fd5b9350cb3232a2631c3aaa60744
[ "Apache-2.0" ]
null
null
null
scan_predict.py
ychu196/chicago_scan
ed5f32a9f27fd5b9350cb3232a2631c3aaa60744
[ "Apache-2.0" ]
null
null
null
scan_predict.py
ychu196/chicago_scan
ed5f32a9f27fd5b9350cb3232a2631c3aaa60744
[ "Apache-2.0" ]
null
null
null
# Image classification using AWS Sagemaker and Linear Learner # Program set up and import libraries import numpy as np import pandas as pd import os from sagemaker import get_execution_role role = get_execution_role() bucket = 'chi-hackathon-skin-images' # Import Data import boto3 from sagemaker import get_execution...
30.703125
114
0.795929
279
1,965
5.390681
0.412186
0.031915
0.042553
0.029255
0.219415
0.110372
0.110372
0.110372
0.110372
0.110372
0
0.018151
0.102799
1,965
63
115
31.190476
0.83494
0.148092
0
0.157895
0
0
0.180397
0.084185
0
0
0
0
0
1
0
false
0
0.263158
0
0.263158
0.078947
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
0
1
0
72c448e2ac75cf97f325c368c89cf5c864f7ebd6
34,227
py
Python
gerber/am_statements.py
FixturFab/pcb-tools
7b8d1c6ccd9c242c162ede47557bb816233cf66f
[ "Apache-2.0" ]
null
null
null
gerber/am_statements.py
FixturFab/pcb-tools
7b8d1c6ccd9c242c162ede47557bb816233cf66f
[ "Apache-2.0" ]
null
null
null
gerber/am_statements.py
FixturFab/pcb-tools
7b8d1c6ccd9c242c162ede47557bb816233cf66f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # copyright 2015 Hamilton Kibbe <ham@hamiltonkib.be> and Paulo Henrique Silva # <ph.silva@gmail.com> # 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...
32.690544
164
0.624302
4,023
34,227
5.195377
0.097688
0.034161
0.011196
0.016363
0.507488
0.4384
0.387206
0.363667
0.313956
0.287259
0
0.01399
0.266953
34,227
1,046
165
32.721797
0.819051
0.293891
0
0.458
0
0
0.066719
0.026819
0
0
0
0.000956
0
1
0.142
false
0.008
0.008
0.022
0.248
0.002
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
0
1
0
72c45f6e75be10ab1eab557e6f4a81a72ff78154
600
py
Python
heroquest/migrations/0002_auto_20160819_1747.py
DeividVM/heroquest
c693d664717a849de645908ae78d62ec2a5837a5
[ "MIT" ]
null
null
null
heroquest/migrations/0002_auto_20160819_1747.py
DeividVM/heroquest
c693d664717a849de645908ae78d62ec2a5837a5
[ "MIT" ]
null
null
null
heroquest/migrations/0002_auto_20160819_1747.py
DeividVM/heroquest
c693d664717a849de645908ae78d62ec2a5837a5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-08-19 17:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('heroquest', '0001_initial'), ] operations = [ migrations.RemoveField( ...
24
108
0.596667
61
600
5.704918
0.721311
0.051724
0.086207
0.109195
0
0
0
0
0
0
0
0.046083
0.276667
600
24
109
25
0.75576
0.111667
0
0.235294
1
0
0.130189
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.294118
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
72c4b917975b4d4f647b8a13d6702b4b9e1e961c
1,727
py
Python
dask/array/utils.py
epervago/dask
958732ce6c51ef6af39db4727d948bfa66a0a8d6
[ "BSD-3-Clause" ]
null
null
null
dask/array/utils.py
epervago/dask
958732ce6c51ef6af39db4727d948bfa66a0a8d6
[ "BSD-3-Clause" ]
null
null
null
dask/array/utils.py
epervago/dask
958732ce6c51ef6af39db4727d948bfa66a0a8d6
[ "BSD-3-Clause" ]
null
null
null
from distutils.version import LooseVersion import difflib import os import numpy as np from .core import Array from ..async import get_sync if LooseVersion(np.__version__) >= '1.10.0': allclose = np.allclose else: def allclose(a, b, **kwargs): if kwargs.pop('equal_nan', False): a_nans = np...
24.671429
74
0.568037
242
1,727
3.921488
0.318182
0.012645
0.03372
0.05058
0.067439
0.067439
0.067439
0
0
0
0
0.004255
0.319629
1,727
69
75
25.028986
0.803404
0.043428
0
0.074074
0
0
0.030321
0
0
0
0
0
0.148148
0
null
null
0.018519
0.111111
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
72c7cb9e21a63cc41a2a8dafac7960b8bc5acb97
370
py
Python
launchpad_py/__init__.py
inniyah/launchpad-py
b8dd4815b05d7e75ba5ca09ced64ddc38f515bad
[ "CC-BY-4.0" ]
1
2020-05-07T04:08:13.000Z
2020-05-07T04:08:13.000Z
launchpad_py/__init__.py
inniyah/launchpad-py
b8dd4815b05d7e75ba5ca09ced64ddc38f515bad
[ "CC-BY-4.0" ]
null
null
null
launchpad_py/__init__.py
inniyah/launchpad-py
b8dd4815b05d7e75ba5ca09ced64ddc38f515bad
[ "CC-BY-4.0" ]
null
null
null
# more specific selections for Python 3 (ASkr, 2/2018) from launchpad_py.launchpad import Launchpad from launchpad_py.launchpad import LaunchpadMk2 from launchpad_py.launchpad import LaunchpadPro from launchpad_py.launchpad import LaunchControlXL from launchpad_py.launchpad import LaunchKeyMini from launchpad_py.launch...
41.111111
54
0.87027
50
370
6.3
0.38
0.288889
0.333333
0.457143
0.571429
0
0
0
0
0
0
0.021021
0.1
370
8
55
46.25
0.924925
0.140541
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
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
1
0
1
0
1
0
0
7
72c7d7e3f8694c5c646ef95b15742cc54526c455
4,174
py
Python
networks/adabins/utils.py
EvoCargo/mono_depth
3a77291a7fc8f3eaad5f93aa17e2b60c9339a0b1
[ "MIT" ]
null
null
null
networks/adabins/utils.py
EvoCargo/mono_depth
3a77291a7fc8f3eaad5f93aa17e2b60c9339a0b1
[ "MIT" ]
1
2021-06-09T12:56:47.000Z
2021-06-11T10:49:06.000Z
networks/adabins/utils.py
EvoCargo/mono_depth
3a77291a7fc8f3eaad5f93aa17e2b60c9339a0b1
[ "MIT" ]
null
null
null
import base64 import math import re from io import BytesIO import matplotlib.cm import numpy as np import torch import torch.nn from PIL import Image # Compute edge magnitudes from scipy import ndimage class RunningAverage: def __init__(self): self.avg = 0 self.count = 0 ...
28.394558
80
0.565884
594
4,174
3.880471
0.281145
0.020824
0.014317
0.013015
0.086768
0.035575
0.035575
0
0
0
0
0.047716
0.292046
4,174
146
81
28.589041
0.732318
0.081696
0
0.039216
0
0
0.008717
0.005993
0
0
0
0
0
1
0.147059
false
0
0.098039
0.029412
0.372549
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
0
0
1
0
72c85d886bda8e81edae28edb917d772be6187cc
8,439
py
Python
gdsfactory/types.py
simbilod/gdsfactory
4d76db32674c3edb4d16260e3177ee29ef9ce11d
[ "MIT" ]
null
null
null
gdsfactory/types.py
simbilod/gdsfactory
4d76db32674c3edb4d16260e3177ee29ef9ce11d
[ "MIT" ]
null
null
null
gdsfactory/types.py
simbilod/gdsfactory
4d76db32674c3edb4d16260e3177ee29ef9ce11d
[ "MIT" ]
null
null
null
"""In programming, a factory is a function that returns an object. Functions are easy to understand because they have clear inputs and outputs. Most gdsfactory functions take some inputs and return a Component object. Some of these inputs parameters are also functions. - Component: Object with. - name. - refe...
25.041543
100
0.670103
958
8,439
5.824635
0.298539
0.027599
0.014337
0.022581
0.100179
0.063978
0.036022
0.016487
0
0
0
0.008868
0.211636
8,439
336
101
25.116071
0.829851
0.221353
0
0.152074
0
0
0.171081
0.010471
0
0
0
0
0.004608
1
0.02765
false
0.004608
0.069124
0.009217
0.336406
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
0
0
1
0
72c98748f08c6f90f0d9a63c5a27d1f4d96b3af8
1,685
py
Python
tests/_site/myauth/models.py
ahmetdaglarbas/e-commerce
ff190244ccd422b4e08d7672f50709edcbb6ebba
[ "BSD-3-Clause" ]
2
2015-12-11T00:19:15.000Z
2021-11-14T19:44:42.000Z
tests/_site/myauth/models.py
ahmetdaglarbas/e-commerce
ff190244ccd422b4e08d7672f50709edcbb6ebba
[ "BSD-3-Clause" ]
null
null
null
tests/_site/myauth/models.py
ahmetdaglarbas/e-commerce
ff190244ccd422b4e08d7672f50709edcbb6ebba
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Code will only work with Django >= 1.5. See tests/config.py import re from django.utils.translation import ugettext_lazy as _ from django.db import models from django.core import validators from django.contrib.auth.models import BaseUserManager from oscar.apps.customer.abstract_models impor...
29.051724
105
0.636795
196
1,685
5.357143
0.540816
0.038095
0.06
0.047619
0.04
0
0
0
0
0
0
0.00638
0.255786
1,685
57
106
29.561404
0.830941
0.109199
0
0
0
0
0.12115
0
0
0
0
0
0
1
0.055556
false
0.111111
0.166667
0
0.444444
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
72caabf05592563e94088a4e1c8a8ae64828efbb
3,253
py
Python
5 - FC layers retraining/4 - FC weights to C++ code/weights_pck_to_cpp_unrolled_loop.py
brouwa/CNNs-on-FPSPs
71bcc2335e6d71ad21ba66e04a651d4db218356d
[ "MIT" ]
1
2021-02-23T21:53:30.000Z
2021-02-23T21:53:30.000Z
5 - FC layers retraining/4 - FC weights to C++ code/weights_pck_to_cpp_unrolled_loop.py
brouwa/CNNs-on-FPSPs
71bcc2335e6d71ad21ba66e04a651d4db218356d
[ "MIT" ]
1
2020-11-13T19:08:27.000Z
2020-11-13T19:08:27.000Z
5 - FC layers retraining/4 - FC weights to C++ code/weights_pck_to_cpp_unrolled_loop.py
brouwa/CNNs-on-FPSPs
71bcc2335e6d71ad21ba66e04a651d4db218356d
[ "MIT" ]
1
2021-03-04T10:17:01.000Z
2021-03-04T10:17:01.000Z
import pickle import numpy as np INPUT_FILENAME = 'NP_WEIGHTS.pck' PRECISION = 100 # Open weights fc1_k, fc1_b, fc2_k, fc2_b = pickle.load( open(INPUT_FILENAME, 'rb')) # Round them fc1_k, fc1_b, fc2_k, fc2_b = fc1_k*PRECISION//1, fc1_b*PRECISION//1, fc2_k*PRECISION//1, fc2_b*PRECISION*PRECISION//1 fc1_k, fc1_b, f...
27.567797
117
0.619428
574
3,253
3.30662
0.167247
0.036881
0.03372
0.021075
0.660695
0.584299
0.584299
0.584299
0.534773
0.5
0
0.031622
0.173686
3,253
117
118
27.803419
0.674479
0.165078
0
0.375
0
0
0.161085
0.023525
0
0
0
0
0
1
0.0625
false
0
0.03125
0
0.15625
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
0
0
1
0
72cb0ad23b1774315b100a3169e33454e096362a
346
py
Python
python/Canny_EdgeDetection.py
yubaoliu/Computer-Vision
2fe4d3e1db0a65ef8c9def5f84d5e494bec3faa9
[ "BSD-3-Clause" ]
null
null
null
python/Canny_EdgeDetection.py
yubaoliu/Computer-Vision
2fe4d3e1db0a65ef8c9def5f84d5e494bec3faa9
[ "BSD-3-Clause" ]
null
null
null
python/Canny_EdgeDetection.py
yubaoliu/Computer-Vision
2fe4d3e1db0a65ef8c9def5f84d5e494bec3faa9
[ "BSD-3-Clause" ]
null
null
null
import cv2 import numpy as np import random img = cv2.imread('../../Assets/Images/flower-white.jpeg', 1) imgInfo = img.shape height = imgInfo[0] width = imgInfo[1] cv2.imshow('img', img) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) imgG = cv2.GaussianBlur(gray, (3, 3), 0) dst = cv2.Canny(img, 50, 50) cv2.imshow(...
17.3
60
0.687861
57
346
4.157895
0.54386
0.050633
0
0
0
0
0
0
0
0
0
0.070234
0.135838
346
20
61
17.3
0.722408
0
0
0
0
0
0.124277
0.106936
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
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
0
0
1
0
72cb9ae8cd277faadce0f3f6be82d9d90c087279
7,767
py
Python
avod/core/trainer_stride.py
Guoxs/DODT
f354cda6ef08465018fdeec1a8b4be4002e6a71f
[ "MIT" ]
1
2021-09-01T00:34:17.000Z
2021-09-01T00:34:17.000Z
avod/core/trainer_stride.py
Guoxs/DODT
f354cda6ef08465018fdeec1a8b4be4002e6a71f
[ "MIT" ]
null
null
null
avod/core/trainer_stride.py
Guoxs/DODT
f354cda6ef08465018fdeec1a8b4be4002e6a71f
[ "MIT" ]
null
null
null
"""Detection model trainer. This file provides a generic training method to train a DetectionModel. """ import datetime import os import tensorflow as tf import time from avod.builders import optimizer_builder from avod.core import trainer_utils from avod.core import summary_utils slim = tf.contrib.slim def train(m...
35.62844
87
0.643234
904
7,767
5.225664
0.21792
0.038103
0.050381
0.020322
0.255292
0.217189
0.210627
0.202371
0.202371
0.202371
0
0.0081
0.26883
7,767
218
88
35.62844
0.823737
0.15862
0
0.231343
0
0
0.04705
0.009913
0
0
0
0
0
1
0.007463
false
0
0.052239
0
0.059701
0.037313
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
0
1
0
72cbf3d35b93e0b877b0f490045834b6cee53f3c
1,237
py
Python
rest_framework_hmac/hmac_key/models.py
nickc92/django-rest-framework-hmac
c32e37cf00ef0c13957a6e02eb0a7fabac3d1ac1
[ "BSD-2-Clause" ]
null
null
null
rest_framework_hmac/hmac_key/models.py
nickc92/django-rest-framework-hmac
c32e37cf00ef0c13957a6e02eb0a7fabac3d1ac1
[ "BSD-2-Clause" ]
null
null
null
rest_framework_hmac/hmac_key/models.py
nickc92/django-rest-framework-hmac
c32e37cf00ef0c13957a6e02eb0a7fabac3d1ac1
[ "BSD-2-Clause" ]
null
null
null
import binascii import os from django.conf import settings from django.db import models from django.utils.translation import ugettext_lazy as _ class HMACKey(models.Model): """ The default HMACKey model that can auto generate a key/secret for HMAC Auth via a signal """ def generate_key(): ...
30.925
73
0.673403
157
1,237
5.095541
0.541401
0.0375
0.0275
0.045
0.0725
0.0725
0
0
0
0
0
0.009504
0.234438
1,237
39
74
31.717949
0.835269
0.173808
0
0
0
0
0.071502
0.028601
0
0
0
0
0
1
0.08
false
0
0.2
0.04
0.64
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
0
0
1
0
72cc196deafcaa7796f8d6ee97d9294d3efde7f3
6,222
py
Python
test/conftest.py
Geoiv/river
d013985145c09f263172b054819e811689002ae9
[ "MIT" ]
null
null
null
test/conftest.py
Geoiv/river
d013985145c09f263172b054819e811689002ae9
[ "MIT" ]
2
2021-02-10T22:44:36.000Z
2021-04-09T22:36:41.000Z
test/conftest.py
Geoiv/river
d013985145c09f263172b054819e811689002ae9
[ "MIT" ]
1
2021-08-24T21:55:34.000Z
2021-08-24T21:55:34.000Z
import os from tempfile import NamedTemporaryFile import boto3 from moto import mock_s3 import pandas as pd import pandavro as pdx import pickle import pytest @pytest.fixture(autouse=True, scope='session') def aws_credentials(): """ Sets AWS credentials to invalid values. Applied to all test functions and ...
31.907692
77
0.635969
868
6,222
4.381336
0.172811
0.056797
0.047331
0.050486
0.531948
0.505916
0.472259
0.424139
0.424139
0.424139
0
0.013031
0.235294
6,222
194
78
32.072165
0.786255
0.128576
0
0.373134
0
0
0.116152
0.018261
0
0
0
0
0
1
0.067164
false
0
0.059701
0
0.156716
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
0
0
1
0
72cdbe89dce7053232a88a1aed13e52d7045db37
641
py
Python
company/migrations/0021_auto_20161208_1113.py
uktrade/directory-api
45a9024a7ecc2842895201cbb51420ba9e57a168
[ "MIT" ]
2
2017-06-02T09:09:08.000Z
2021-01-18T10:26:53.000Z
company/migrations/0021_auto_20161208_1113.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
629
2016-10-10T09:35:52.000Z
2022-03-25T15:04:04.000Z
company/migrations/0021_auto_20161208_1113.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
5
2017-06-22T10:02:22.000Z
2022-03-14T17:55:21.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.10 on 2016-12-08 11:13 from __future__ import unicode_literals from django.db import migrations from company import helpers def ensure_verification_code(apps, schema_editor): Company = apps.get_model("company", "Company") for company in Company.objects.filte...
23.740741
72
0.711388
75
641
5.84
0.64
0.182648
0.100457
0
0
0
0
0
0
0
0
0.063098
0.184087
641
26
73
24.653846
0.774379
0.106084
0
0
1
0
0.077193
0.040351
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.466667
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
72ce4318d1d0f496564578d4caec5a73368d7bf6
68,544
py
Python
system/indy-node-tests/TestAuthMapSuite.py
Toktar/indy-test-automation
4d583dda7cbf2a9f451b3a01312a90e55c7bacc8
[ "Apache-2.0" ]
null
null
null
system/indy-node-tests/TestAuthMapSuite.py
Toktar/indy-test-automation
4d583dda7cbf2a9f451b3a01312a90e55c7bacc8
[ "Apache-2.0" ]
null
null
null
system/indy-node-tests/TestAuthMapSuite.py
Toktar/indy-test-automation
4d583dda7cbf2a9f451b3a01312a90e55c7bacc8
[ "Apache-2.0" ]
null
null
null
import pytest import asyncio from system.utils import * from random import randrange as rr import hashlib import time from datetime import datetime, timedelta, timezone from indy import payment import logging logger = logging.getLogger(__name__) @pytest.mark.usefixtures('docker_setup_and_teardown') class TestAuthMa...
59.345455
126
0.521067
7,107
68,544
4.70508
0.048966
0.080864
0.070158
0.099046
0.903346
0.898562
0.885822
0.876761
0.870241
0.851132
0
0.021087
0.376649
68,544
1,154
127
59.39688
0.761533
0.044307
0
0.790291
0
0
0.104281
0.006559
0.000971
0
0
0.000867
0.113592
1
0
false
0
0.008738
0
0.009709
0.065049
0
0
0
null
0
0
0
1
1
1
1
1
1
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
7
72cf2ee1f1f114780fd41988e0ddaa2bfd651b27
18,351
py
Python
test/integration/test_reindex.py
jgough/opensearch-curator
e8d7eb4d969eac551db9f99bd021d0c05e28dc35
[ "Apache-2.0" ]
8
2021-11-10T15:15:16.000Z
2022-03-10T10:09:50.000Z
test/integration/test_reindex.py
jgough/opensearch-curator
e8d7eb4d969eac551db9f99bd021d0c05e28dc35
[ "Apache-2.0" ]
1
2021-11-18T11:28:44.000Z
2021-11-21T09:30:54.000Z
test/integration/test_reindex.py
jgough/opensearch-curator
e8d7eb4d969eac551db9f99bd021d0c05e28dc35
[ "Apache-2.0" ]
3
2022-01-28T18:40:38.000Z
2022-03-22T18:40:59.000Z
import opensearchpy import curator import os import json import string import random import tempfile import click from click import testing as clicktest import time from . import CuratorTestCase from unittest.case import SkipTest from . import testvars as testvars import logging logger = logging.getLogger(__name__) ...
37.681725
107
0.555719
1,954
18,351
5.068577
0.098772
0.045234
0.05937
0.053716
0.897213
0.872476
0.85733
0.848546
0.833704
0.833704
0
0.019331
0.32347
18,351
486
108
37.759259
0.778413
0.058307
0
0.760369
0
0
0.110048
0
0
0
0
0
0.036866
1
0.032258
false
0.002304
0.032258
0
0.06682
0
0
0
0
null
0
0
0
1
1
1
1
1
1
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
7
72cf53ccf7f23461f4563c9f0a973dec0115aebc
2,235
py
Python
libhustpass/login.py
naivekun/libhustpass
d8d487e3af996898e4a7b21b924fbf0fc4fbe419
[ "WTFPL" ]
26
2020-02-18T14:30:30.000Z
2021-11-30T02:50:37.000Z
libhustpass/login.py
ingdex/libhustpass
d8d487e3af996898e4a7b21b924fbf0fc4fbe419
[ "WTFPL" ]
3
2020-05-01T20:26:42.000Z
2020-12-30T07:03:10.000Z
libhustpass/login.py
ingdex/libhustpass
d8d487e3af996898e4a7b21b924fbf0fc4fbe419
[ "WTFPL" ]
6
2020-02-18T14:33:39.000Z
2022-01-28T11:09:25.000Z
import libhustpass.sbDes as sbDes import libhustpass.captcha as captcha import requests import re import random def toWideChar(data): data_bytes = bytes(data, encoding="utf-8") ret = [] for i in data_bytes: ret.extend([0, i]) while len(ret) % 8 != 0: ret.append(0) return ret def En...
28.653846
99
0.561521
295
2,235
4.111864
0.355932
0.037098
0.022259
0.029678
0.117065
0
0
0
0
0
0
0.025933
0.292617
2,235
77
100
29.025974
0.741303
0
0
0.057143
0
0
0.104251
0
0
0
0
0
0
1
0.042857
false
0.1
0.071429
0
0.157143
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
72cfd36241688b520b69fa546395cf4b9423fe79
779
py
Python
code/contours_sorting_by_area.py
Asadullah-Dal17/contours-detection-advance
45522492363cc01cb8c66b18790b1859c4efe44d
[ "MIT" ]
1
2021-12-12T12:17:11.000Z
2021-12-12T12:17:11.000Z
code/contours_sorting_by_area.py
Asadullah-Dal17/contours-detection-advance
45522492363cc01cb8c66b18790b1859c4efe44d
[ "MIT" ]
null
null
null
code/contours_sorting_by_area.py
Asadullah-Dal17/contours-detection-advance
45522492363cc01cb8c66b18790b1859c4efe44d
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np def areaFinder(contours): areas = [] for c in contours: a =cv.contourArea(c) areas.append(a) return areas def sortedContoursByArea(img, larger_to_smaller=True): edges_img = cv.Canny(img, 100, 150) contours , h = cv.findContours(edges_img, cv.RETR_...
35.409091
88
0.724005
109
779
5.027523
0.46789
0.153285
0.082117
0.113139
0.153285
0.153285
0
0
0
0
0
0.019939
0.16303
779
22
89
35.409091
0.820552
0.03466
0
0
0
0
0.037284
0.033289
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.285714
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72cfd74acaa21b51c8cdcd979a394eceb3c1b59d
1,813
py
Python
matchzoo/metrics/precision.py
ChrisRBXiong/MatchZoo-py
8883d0933a62610d71fec0215dce643630e03b1c
[ "Apache-2.0" ]
468
2019-07-03T02:43:52.000Z
2022-03-30T05:51:03.000Z
matchzoo/metrics/precision.py
ChrisRBXiong/MatchZoo-py
8883d0933a62610d71fec0215dce643630e03b1c
[ "Apache-2.0" ]
126
2019-07-04T15:51:57.000Z
2021-07-31T13:14:40.000Z
matchzoo/metrics/precision.py
ChrisRBXiong/MatchZoo-py
8883d0933a62610d71fec0215dce643630e03b1c
[ "Apache-2.0" ]
117
2019-07-04T11:31:08.000Z
2022-03-18T12:21:32.000Z
"""Precision for ranking.""" import numpy as np from matchzoo.engine.base_metric import ( BaseMetric, sort_and_couple, RankingMetric ) class Precision(RankingMetric): """Precision metric.""" ALIAS = 'precision' def __init__(self, k: int = 1, threshold: float = 0.): """ :class:`Preci...
30.216667
68
0.539989
226
1,813
4.137168
0.362832
0.042781
0.032086
0.053476
0.070588
0.047059
0.047059
0.047059
0
0
0
0.0266
0.336459
1,813
59
69
30.728814
0.750623
0.385549
0
0
0
0
0.10262
0.04476
0
0
0
0
0
1
0.130435
false
0
0.086957
0
0.391304
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
0
0
1
0
72d0cee317d77c14ae420378473b099449564673
4,168
py
Python
src/main/py/ltprg/config/seq.py
forkunited/ltprg
4e40d3571d229023df0f845c68643024e04bc202
[ "MIT" ]
11
2017-08-03T15:42:19.000Z
2021-02-04T12:43:35.000Z
src/main/py/ltprg/config/seq.py
forkunited/ltprg
4e40d3571d229023df0f845c68643024e04bc202
[ "MIT" ]
null
null
null
src/main/py/ltprg/config/seq.py
forkunited/ltprg
4e40d3571d229023df0f845c68643024e04bc202
[ "MIT" ]
1
2021-02-04T12:43:37.000Z
2021-02-04T12:43:37.000Z
from mung.torch_ext.eval import Loss from ltprg.model.seq import DataParameter, SequenceModelNoInput, SequenceModelInputToHidden, SequenceModelAttendedInput from ltprg.model.seq import VariableLengthNLLLoss # Expects config of the form: # { # data_parameter : { # seq : [SEQUENCE PARAMETER NAME] # inp...
43.416667
120
0.676823
476
4,168
5.661765
0.189076
0.053061
0.031169
0.029685
0.35436
0.337291
0.327644
0.327644
0.299443
0.299443
0
0.000917
0.215451
4,168
95
121
43.873684
0.823242
0.25048
0
0.25
0
0
0.12012
0.015682
0
0
0
0
0
1
0.035714
false
0
0.053571
0
0.125
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
0
0
1
0
72d551e4fbff60d0217a556d091c57b4d8d63fe7
1,086
py
Python
src/Utilities/metadata_worker.py
sigseg5/nometa-tg
7d0d9f0cf5d8fd98a3808c07a5c44d30f1b13032
[ "MIT" ]
3
2020-12-15T07:44:58.000Z
2022-03-11T18:57:44.000Z
src/Utilities/metadata_worker.py
sigseg5/nometa-tg
7d0d9f0cf5d8fd98a3808c07a5c44d30f1b13032
[ "MIT" ]
null
null
null
src/Utilities/metadata_worker.py
sigseg5/nometa-tg
7d0d9f0cf5d8fd98a3808c07a5c44d30f1b13032
[ "MIT" ]
null
null
null
from shutil import move import piexif from PIL import Image def delete_metadata(full_path_to_img): """ This function used for remove metadata only from documents, if you send image 'as image' Telegram automatically removes all metadata at sending. This function removes all metadata via 'piexif' lib, save...
40.222222
115
0.745856
166
1,086
4.722892
0.301205
0.061224
0.076531
0.09949
0.609694
0.609694
0.609694
0.609694
0.609694
0.609694
0
0
0.175875
1,086
26
116
41.769231
0.875978
0.618785
0
0
0
0
0.222841
0.139276
0
0
0
0
0
1
0.222222
false
0
0.333333
0
0.555556
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
1
0
0
1
0
1
0
0
4
72d5dcde5caf7bc67be36a1a3162b2ed4f45540f
765
py
Python
dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_unit_2.py
pbarton666/virtual_classroom
a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675
[ "MIT" ]
null
null
null
dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_unit_2.py
pbarton666/virtual_classroom
a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675
[ "MIT" ]
null
null
null
dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_unit_2.py
pbarton666/virtual_classroom
a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675
[ "MIT" ]
null
null
null
#py_unit_2.py import unittest class FirstTest(unittest.TestCase): def setUp(self): "setUp() runs before every test" self.msg="Sorry, Charlie, but {} is not the same as {}." def tearDown(self): "tearDown runs after every test" pass def test_me(self): "this test should pass" first=1 second=2 self.asse...
25.5
64
0.705882
118
765
4.432203
0.415254
0.053537
0.091778
0.137667
0.367113
0.240918
0.133843
0.133843
0.133843
0
0
0.010886
0.159477
765
30
65
25.5
0.802488
0.249673
0
0.153846
0
0
0.305445
0
0
0
0
0
0.153846
1
0.230769
false
0.230769
0.038462
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
72d61a6fdb060552b86f4595f2938ff73c8b70ad
41
py
Python
src/scheduled_task/__init__.py
Sciocatti/python_scheduler_and_clean_forced_exit
4e5373ba33798c08096087058773412257230662
[ "MIT" ]
null
null
null
src/scheduled_task/__init__.py
Sciocatti/python_scheduler_and_clean_forced_exit
4e5373ba33798c08096087058773412257230662
[ "MIT" ]
null
null
null
src/scheduled_task/__init__.py
Sciocatti/python_scheduler_and_clean_forced_exit
4e5373ba33798c08096087058773412257230662
[ "MIT" ]
null
null
null
from .scheduled_task import ScheduledTask
41
41
0.902439
5
41
7.2
1
0
0
0
0
0
0
0
0
0
0
0
0.073171
41
1
41
41
0.947368
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
1
0
1
0
1
0
0
6
72d67501443e4ca7891e84e39882fcf4f2a78705
1,623
py
Python
scripts/game.py
davidnegrazis/PyPlayText-Workshop
70156b73c1d2ab52daaef839b72450e331ff1e80
[ "MIT" ]
null
null
null
scripts/game.py
davidnegrazis/PyPlayText-Workshop
70156b73c1d2ab52daaef839b72450e331ff1e80
[ "MIT" ]
null
null
null
scripts/game.py
davidnegrazis/PyPlayText-Workshop
70156b73c1d2ab52daaef839b72450e331ff1e80
[ "MIT" ]
null
null
null
from sys import exit # ------------------------------------------------------------------------------ global dev_name global game_title dev_name = "" # enter your name in the quotes! game_title = "" # enter the game title in the quotes! # ------------------------------------------------------------------------------ ...
22.541667
93
0.51756
194
1,623
4.231959
0.42268
0.051157
0.026797
0
0
0
0
0
0
0
0
0.012195
0.242144
1,623
71
94
22.859155
0.655285
0.390018
0
0.097561
0
0
0.174538
0
0
0
0
0
0
1
0.097561
false
0
0.02439
0
0.121951
0.146341
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
0
1
0
72d6fbca1e2a56e32eed016c2b0a2d21ed7addda
510
py
Python
lc1108_defangip.py
moheed/algo
921bb55852fa49d97e469694a64bffe6c285319e
[ "MIT" ]
null
null
null
lc1108_defangip.py
moheed/algo
921bb55852fa49d97e469694a64bffe6c285319e
[ "MIT" ]
null
null
null
lc1108_defangip.py
moheed/algo
921bb55852fa49d97e469694a64bffe6c285319e
[ "MIT" ]
null
null
null
class Solution: def defangIPaddr(self, address: str) -> str: i=0 j=0 strlist=list(address) defang=[] while i< len(strlist): if strlist[i] == '.': defang.append('[') defang.append('.') defang.append(']') ...
23.181818
48
0.394118
43
510
4.674419
0.534884
0.238806
0.179104
0.238806
0
0
0
0
0
0
0
0.011364
0.482353
510
21
49
24.285714
0.75
0.02549
0
0
0
0
0.00813
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.1875
0
0
0
0
null
1
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
2
72d812548fd737a5e6c2dd14c16ac5901a2c0669
1,018
py
Python
src/elections_address_files/commands/zip_files.py
gregbunce/assign_vista_pcts_to_sgid_addrpnts
c1a3210e68c8c1e94c0b68547d0c26697de77ff7
[ "MIT" ]
null
null
null
src/elections_address_files/commands/zip_files.py
gregbunce/assign_vista_pcts_to_sgid_addrpnts
c1a3210e68c8c1e94c0b68547d0c26697de77ff7
[ "MIT" ]
1
2021-09-01T20:10:29.000Z
2021-09-01T20:10:29.000Z
src/elections_address_files/commands/zip_files.py
gregbunce/assign_vista_pcts_to_sgid_addrpnts
c1a3210e68c8c1e94c0b68547d0c26697de77ff7
[ "MIT" ]
null
null
null
import os, zipfile # Zip files. def zipfiles(directory): # File extension to zip. #ext = ('.gdb', '.csv') ext = ('.gdb') # Iterate over all files and check for desired extentions for zipping. for file in os.listdir(directory): if file.endswith(ext): #: Zip it. ...
33.933333
109
0.570727
131
1,018
4.221374
0.458015
0.086799
0.108499
0.151899
0
0
0
0
0
0
0
0.009818
0.299607
1,018
29
110
35.103448
0.765778
0.130648
0
0
0
0
0.076223
0.037543
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.117647
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
0
0
0
0
0
0
0
0
1
0
72da26872a32cdd69f28a7e6093c2164b2d30874
344
py
Python
tartiflette/parser/nodes/node.py
erezsh/tartiflette
c945b02e9025e2524393c1eaec2191745bfc38f4
[ "MIT" ]
null
null
null
tartiflette/parser/nodes/node.py
erezsh/tartiflette
c945b02e9025e2524393c1eaec2191745bfc38f4
[ "MIT" ]
null
null
null
tartiflette/parser/nodes/node.py
erezsh/tartiflette
c945b02e9025e2524393c1eaec2191745bfc38f4
[ "MIT" ]
null
null
null
class Node: def __init__(self, path, libgraphql_type, location, name): self.path = path self.parent = None self.children = [] self.libgraphql_type = libgraphql_type self.location = location self.name = name def __repr__(self): return "%s(%s)" % (self.libg...
28.666667
62
0.607558
40
344
4.925
0.4
0.284264
0.182741
0
0
0
0
0
0
0
0
0
0.284884
344
11
63
31.272727
0.800813
0
0
0
0
0
0.017442
0
0
0
0
0
0
1
0.2
false
0
0
0.1
0.4
0
0
0
0
null
1
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
2
72dca5ec94eec75c7728a1bea9a137060f5e6849
5,097
py
Python
mars/services/web/tests/test_core.py
yuyiming/mars
5e6990d1ea022444dd646c56697e596ef5d7e747
[ "Apache-2.0" ]
1
2022-02-24T08:39:26.000Z
2022-02-24T08:39:26.000Z
mars/services/web/tests/test_core.py
yuyiming/mars
5e6990d1ea022444dd646c56697e596ef5d7e747
[ "Apache-2.0" ]
null
null
null
mars/services/web/tests/test_core.py
yuyiming/mars
5e6990d1ea022444dd646c56697e596ef5d7e747
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
33.754967
88
0.679419
707
5,097
4.649222
0.261669
0.049285
0.043505
0.056891
0.404624
0.378765
0.368421
0.350776
0.332522
0.310009
0
0.011157
0.191093
5,097
150
89
33.98
0.786078
0.111634
0
0.07619
0
0
0.267612
0.10988
0
0
0
0
0.095238
1
0.047619
false
0
0.085714
0
0.190476
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
0
0
1
0
72dd8b3d7047f515b38a96161e263e0136b29c7e
3,419
py
Python
test/test.py
caizhanjin/deepseg
5e91a387683ad73075b51b49da8957d8f4bb6b7f
[ "Apache-2.0" ]
null
null
null
test/test.py
caizhanjin/deepseg
5e91a387683ad73075b51b49da8957d8f4bb6b7f
[ "Apache-2.0" ]
null
null
null
test/test.py
caizhanjin/deepseg
5e91a387683ad73075b51b49da8957d8f4bb6b7f
[ "Apache-2.0" ]
null
null
null
""" 例子为MNIST,对手写图片进行分类。 神经网络hello world。 """ import tensorflow as tf import numpy as np from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('MNIST_data', one_hot=True) # 封装网络用到的API def weight_variable(shape): initial = tf.truncated_normal(shape, stddev=0.1) return tf....
24.956204
74
0.563908
495
3,419
3.652525
0.262626
0.044801
0.024889
0.028761
0.181416
0.106748
0.106748
0.08573
0.08573
0.08573
0
0.071076
0.288096
3,419
136
75
25.139706
0.671734
0.157356
0
0.142857
0
0
0.019473
0
0
0
0
0
0
1
0.063492
false
0
0.047619
0.031746
0.174603
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72dda3613656327f62f267160ac432bf2f3e78fb
34,924
py
Python
game/content/ghplots/lancemates.py
jwvhewitt/gearhead-caramel
dfe1bc5dbf2960b82a97577f4bf687b60040d8bf
[ "Apache-2.0" ]
74
2015-03-09T00:33:09.000Z
2022-02-25T20:28:27.000Z
game/content/ghplots/lancemates.py
jwvhewitt/gearhead-caramel
dfe1bc5dbf2960b82a97577f4bf687b60040d8bf
[ "Apache-2.0" ]
108
2017-12-30T20:26:12.000Z
2021-01-16T12:37:00.000Z
game/content/ghplots/lancemates.py
jwvhewitt/gearhead-caramel
dfe1bc5dbf2960b82a97577f4bf687b60040d8bf
[ "Apache-2.0" ]
61
2018-03-03T09:55:31.000Z
2022-03-18T17:28:33.000Z
import pbge from game.content.plotutility import LMSkillsSelfIntro from game.content import backstory from pbge.plots import Plot from pbge.dialogue import Offer, ContextTag from game.ghdialogue import context import gears import game.content.gharchitecture import game.content.ghterrain import random from game import m...
45.005155
213
0.583295
3,931
34,924
5.048079
0.107097
0.051401
0.043086
0.020863
0.824934
0.815662
0.807347
0.792582
0.777968
0.770712
0
0.004401
0.303803
34,924
775
214
45.063226
0.811755
0.050424
0
0.781403
0
0.006525
0.113389
0.006108
0
0
0
0
0
1
0.115824
false
0
0.017945
0.016313
0.32137
0
0
0
0
null
0
0
0
1
1
1
1
1
1
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
7
72de8b8aee3f4620163c8f97b222277abcb82e15
1,061
py
Python
projects/detr/scripts/dd.py
zzzzzz0407/detectron2
021fc5b1502bbba54e4714735736898803835ab0
[ "Apache-2.0" ]
1
2020-07-03T07:17:17.000Z
2020-07-03T07:17:17.000Z
projects/detr/scripts/dd.py
zzzzzz0407/detectron2
021fc5b1502bbba54e4714735736898803835ab0
[ "Apache-2.0" ]
null
null
null
projects/detr/scripts/dd.py
zzzzzz0407/detectron2
021fc5b1502bbba54e4714735736898803835ab0
[ "Apache-2.0" ]
null
null
null
import json if __name__ == '__main__': jsonFile = '/data00/home/zhangrufeng1/projects/detectron2/projects/detr/datasets/mot/mot17/annotations/mot17_train_half.json' with open(jsonFile, 'r') as f: infos = json.load(f) count_dict = dict() for info in infos["images"]: if info["file_name"]...
33.15625
130
0.609802
156
1,061
3.923077
0.403846
0.088235
0.065359
0.04902
0.160131
0.160131
0.094771
0.094771
0
0
0
0.046569
0.230914
1,061
31
131
34.225806
0.703431
0
0
0
0
0.041667
0.253534
0.133836
0
0
0
0
0
0
null
null
0
0.041667
null
null
0.125
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
72dee79c27f224ab988e2c1d440c86b9133510f7
3,099
py
Python
app/app.py
wesleibarboza/natasha-virtual
74c5ef9a4db5ce98dd72499d40775bfd65d34974
[ "MIT" ]
23
2017-07-07T22:08:26.000Z
2018-07-17T01:07:22.000Z
app/app.py
wesleibarboza/natasha-virtual
74c5ef9a4db5ce98dd72499d40775bfd65d34974
[ "MIT" ]
1
2017-07-06T23:34:21.000Z
2017-07-07T04:17:15.000Z
app/app.py
wesleibarboza/natasha-virtual
74c5ef9a4db5ce98dd72499d40775bfd65d34974
[ "MIT" ]
3
2017-07-10T12:57:31.000Z
2018-04-20T00:31:51.000Z
# -*- coding: utf-8 -*- """Archivo principal para el echobot. Main File for the echobot""" from fbmq import Page from flask import Flask, request # Token generado por la página web. Generated token in the facebook web page PAGE_ACCESS_TOKEN = "COPY_HERE_YOUR_PAGE_ACCES_TOKEN" # Token generado por nosotros. Token gener...
56.345455
215
0.718296
499
3,099
4.378758
0.390782
0.03524
0.01373
0.019222
0.034325
0
0
0
0
0
0
0.004884
0.207164
3,099
54
216
57.388889
0.884412
0.623104
0
0
1
0
0.176835
0.027409
0
0
0
0.018519
0
1
0.111111
false
0
0.074074
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
1
0
0
0
0
0
0
0
0
0
0
2
72df31fd0b80ac5547d308a5a1ccd1a315222eb8
7,607
py
Python
Camvid/CamVid_utlis.py
Water2style/FCN-pytorch-CanRun
b2994f98930580cd2c32f58d19f94becb68a3ccb
[ "MIT" ]
7
2019-03-17T15:58:44.000Z
2022-01-28T20:06:38.000Z
Camvid/CamVid_utlis.py
cenchaojun/FCN-pytorch-CanRun
364d42590c592bed77a760b0a567ccffe93f59bb
[ "MIT" ]
null
null
null
Camvid/CamVid_utlis.py
cenchaojun/FCN-pytorch-CanRun
364d42590c592bed77a760b0a567ccffe93f59bb
[ "MIT" ]
1
2019-11-04T06:42:05.000Z
2019-11-04T06:42:05.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from matplotlib import pyplot as plt import matplotlib.image as mpimg import numpy as np import scipy.misc import random import os import imageio ############################# # global variables # ############################# root_dir = "/ho...
40.897849
102
0.574471
927
7,607
4.581446
0.389428
0.021191
0.03061
0.019779
0.151401
0.136567
0.08971
0.059336
0.059336
0.059336
0
0.029423
0.285132
7,607
186
103
40.897849
0.751563
0.384909
0
0.154639
0
0
0.06257
0.00668
0
0
0
0
0
1
0.030928
false
0
0.082474
0
0.113402
0.082474
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
0
1
0
72dfdaa4454ede71b658a424efe5fbeaae467461
804
py
Python
stream-reasoner/ws_client.py
patrik999/AdaptiveStreamReasoningMonitoring
7bbfa1a394e0127e0c4ea670a632be216c83faea
[ "Apache-2.0" ]
1
2021-04-23T11:37:01.000Z
2021-04-23T11:37:01.000Z
stream-reasoner/ws_client.py
patrik999/AdaptiveStreamReasoningMonitoring
7bbfa1a394e0127e0c4ea670a632be216c83faea
[ "Apache-2.0" ]
null
null
null
stream-reasoner/ws_client.py
patrik999/AdaptiveStreamReasoningMonitoring
7bbfa1a394e0127e0c4ea670a632be216c83faea
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import websocket import time try: import thread except ImportError: import _thread as thread runs = 100 def on_message(ws, message): print(message) def on_error(ws, error): print(error) def on_close(ws): print("### closed ###") def on_open(ws): ...
18.697674
104
0.589552
104
804
4.326923
0.451923
0.044444
0.04
0
0
0
0
0
0
0
0
0.015679
0.28607
804
42
105
19.142857
0.768293
0.024876
0
0
0
0
0.089069
0
0
0
0
0
0
1
0.178571
false
0
0.178571
0
0.357143
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72dff42ed030c124c8990d7454998c4a84aa0eeb
932
py
Python
Main.py
samuelterra22/Data-Mining
0237bc6e86f28f7bf1306dfb60c41987f5e41bbd
[ "Apache-2.0" ]
null
null
null
Main.py
samuelterra22/Data-Mining
0237bc6e86f28f7bf1306dfb60c41987f5e41bbd
[ "Apache-2.0" ]
null
null
null
Main.py
samuelterra22/Data-Mining
0237bc6e86f28f7bf1306dfb60c41987f5e41bbd
[ "Apache-2.0" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import numpy as np import scipy.stats as stats import seaborn as sns from matplotlib import rcParams import statsmodels.api as sm from statsmodels.formula.api import ols df = pd.read_csv('kc_house_data.csv') # print(df.head()) # print(df.isnull().any()) # print(df.d...
24.526316
84
0.700644
151
932
4.231788
0.483444
0.062598
0.040689
0.059468
0.115806
0
0
0
0
0
0
0.018428
0.126609
932
37
85
25.189189
0.766585
0.567597
0
0
0
0
0.094241
0
0
0
0
0
0
1
0
false
0
0.727273
0
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
72e01bf0a4210399b76b4de5d871a56ed311bc12
3,915
py
Python
whole_cell_patch/filterDialog.py
11uc/whole_cell_patch
84e11bbb904b363a6bb5af878d46e23d789c5be0
[ "MIT" ]
2
2021-08-03T13:05:55.000Z
2021-08-25T15:03:24.000Z
whole_cell_patch/filterDialog.py
11uc/whole_cell_patch
84e11bbb904b363a6bb5af878d46e23d789c5be0
[ "MIT" ]
null
null
null
whole_cell_patch/filterDialog.py
11uc/whole_cell_patch
84e11bbb904b363a6bb5af878d46e23d789c5be0
[ "MIT" ]
null
null
null
# Dialogs for setting filter parameters. from PyQt5.QtWidgets import QLabel, QGridLayout, QPushButton, \ QLineEdit, QVBoxLayout, QHBoxLayout, QDialog, QComboBox, QWidget from PyQt5.QtCore import pyqtSignal class FilterDialog(QDialog): ''' Dialog for choosing filter types. ''' def __init__(self, default, parent ...
24.778481
72
0.678927
490
3,915
5.385714
0.297959
0.041682
0.022736
0.024252
0.153088
0.090944
0.058355
0.039409
0
0
0
0.006001
0.191315
3,915
157
73
24.936306
0.827543
0.347126
0
0.225
0
0
0.010081
0
0
0
0
0
0
1
0.075
false
0
0.025
0
0.1625
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
0
0
1
0
72e01bffe818f26ef544964b5648f4372f9a04d4
813
py
Python
projects/controllable_dialogue/tasks/agents.py
zl930216/ParlAI
abf0ad6d1779af0f8ce0b5aed00d2bab71416684
[ "MIT" ]
41
2019-06-07T17:36:10.000Z
2021-11-16T06:26:16.000Z
projects/controllable_dialogue/tasks/agents.py
zl930216/ParlAI
abf0ad6d1779af0f8ce0b5aed00d2bab71416684
[ "MIT" ]
316
2021-03-19T14:53:31.000Z
2022-03-27T03:36:51.000Z
projects/controllable_dialogue/tasks/agents.py
zl930216/ParlAI
abf0ad6d1779af0f8ce0b5aed00d2bab71416684
[ "MIT" ]
11
2019-06-06T01:19:08.000Z
2020-07-23T07:34:56.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import copy from .build import build, make_path from parlai.utils.misc import warn_once from parlai.core.teachers import...
30.111111
79
0.702337
108
813
5.148148
0.611111
0.03777
0
0
0
0
0
0
0
0
0
0.003044
0.191882
813
26
80
31.269231
0.843227
0.233702
0
0
0
0
0.174475
0.045234
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
72e1010bc4f2ebd173a6efd489e56ee4ea6793c8
1,228
py
Python
problems/p009.py
davisschenk/project-euler-python
1375412e6c8199ab02250bd67223c758d4df1725
[ "MIT" ]
null
null
null
problems/p009.py
davisschenk/project-euler-python
1375412e6c8199ab02250bd67223c758d4df1725
[ "MIT" ]
null
null
null
problems/p009.py
davisschenk/project-euler-python
1375412e6c8199ab02250bd67223c758d4df1725
[ "MIT" ]
2
2020-10-08T23:35:03.000Z
2020-10-09T00:28:36.000Z
from math import ceil, sqrt from problem import Problem from utils.math import gcd class PythagoreanTriplet(Problem, name="Special Pythagorean triplet", expected=31875000): @Problem.solution() def brute_force(self, ts=1000): for a in range(3, round((ts - 3) / 2)): for b in range(a + 1, ro...
29.238095
89
0.35342
157
1,228
2.757962
0.299363
0.023095
0.083141
0.04157
0.023095
0
0
0
0
0
0
0.075044
0.533388
1,228
41
90
29.95122
0.680628
0
0
0.121212
0
0
0.021987
0
0
0
0
0
0
1
0.060606
false
0
0.090909
0
0.242424
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
72e12151f37d1939bde729526720c6ed8432a926
4,345
py
Python
Roche.py
murbanec/Roche2D
a4d7e85e893fd6f18c12b682c2c8ca33b2b549a6
[ "MIT" ]
null
null
null
Roche.py
murbanec/Roche2D
a4d7e85e893fd6f18c12b682c2c8ca33b2b549a6
[ "MIT" ]
null
null
null
Roche.py
murbanec/Roche2D
a4d7e85e893fd6f18c12b682c2c8ca33b2b549a6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jan 14 10:37:04 2021 @author: martin urbanec """ #calculates trajectory of small mass positioned close to L4 Lagrange point #creates gif as output import math import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation, PillowWriter ...
22.630208
161
0.595397
924
4,345
2.779221
0.257576
0.030374
0.017134
0.021417
0.190421
0.101636
0.083723
0.066978
0.053738
0.053738
0
0.104114
0.177675
4,345
191
162
22.748691
0.61461
0.272957
0
0.06422
0
0
0.011513
0
0
0
0
0
0
1
0.045872
false
0
0.036697
0
0.110092
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
0
0
1
0
72e1bd59d28fcd4bceaa6c1453fe80d65e9ccc96
5,078
py
Python
youtube_dl/extractor/azubu.py
LyleH/youtube-dl
7564b09ef5c09454908f78cb91c3bd2d6daacac5
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/azubu.py
LyleH/youtube-dl
7564b09ef5c09454908f78cb91c3bd2d6daacac5
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/azubu.py
LyleH/youtube-dl
7564b09ef5c09454908f78cb91c3bd2d6daacac5
[ "Unlicense" ]
null
null
null
from __future__ import unicode_literals import json from .common import InfoExtractor from ..utils import ( ExtractorError, float_or_none, sanitized_Request, ) class AzubuIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?azubu\.tv/[^/]+#!/play/(?P<id>\d+)' _TESTS = [ { 'ur...
36.797101
200
0.551398
505
5,078
5.382178
0.362376
0.018028
0.022075
0.020603
0.185798
0.135394
0.049301
0.049301
0.022075
0
0
0.06883
0.29618
5,078
137
201
37.065693
0.691662
0
0
0.136752
0
0.025641
0.337141
0.086648
0
0
0
0
0
1
0.017094
false
0
0.034188
0
0.119658
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
0
0
1
0
72e2f4f20411bdef4f641e8d7563731afc8c78a7
8,157
py
Python
conda_build/main_develop.py
dan-blanchard/conda-build
2db31bb2c48d2459e16df80172967d906f43b355
[ "BSD-3-Clause" ]
null
null
null
conda_build/main_develop.py
dan-blanchard/conda-build
2db31bb2c48d2459e16df80172967d906f43b355
[ "BSD-3-Clause" ]
null
null
null
conda_build/main_develop.py
dan-blanchard/conda-build
2db31bb2c48d2459e16df80172967d906f43b355
[ "BSD-3-Clause" ]
null
null
null
# (c) Continuum Analytics, Inc. / http://continuum.io # All Rights Reserved # # conda is distributed under the terms of the BSD 3-clause license. # Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause. from __future__ import absolute_import, division, print_function import sys from os.path import join, ...
32.891129
79
0.60868
1,102
8,157
4.35118
0.244102
0.039416
0.035037
0.01585
0.161001
0.111783
0.074661
0.055474
0.044213
0.027112
0
0.001891
0.286993
8,157
247
80
33.024292
0.822558
0.301581
0
0.117647
0
0
0.239803
0.017116
0
0
0
0.008097
0
1
0.066176
false
0
0.073529
0
0.154412
0.088235
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
0
1
0
72e3326bd28b6a407fd1315276c6cbaaa56add9a
494
py
Python
benchmarking/experiments/sanity_check.py
ltgoslo/norBERT
d75d5c12d9b7f9cc11c65757f2228b7e6070b69b
[ "CC0-1.0" ]
19
2021-01-18T13:51:08.000Z
2022-03-05T07:32:26.000Z
benchmarking/experiments/sanity_check.py
ltgoslo/norBERT
d75d5c12d9b7f9cc11c65757f2228b7e6070b69b
[ "CC0-1.0" ]
2
2021-02-05T16:09:44.000Z
2021-06-16T18:56:47.000Z
benchmarking/experiments/sanity_check.py
ltgoslo/norBERT
d75d5c12d9b7f9cc11c65757f2228b7e6070b69b
[ "CC0-1.0" ]
1
2021-04-29T20:26:55.000Z
2021-04-29T20:26:55.000Z
#!/bin/env python3 from transformers import TFBertForTokenClassification from data_preparation.data_preparation_pos import MBERTTokenizer as MBERT_Tokenizer_pos import sys if __name__ == "__main__": if len(sys.argv) > 1: modelname = sys.argv[1] else: modelname = "ltgoslo/norbert" model = T...
32.933333
87
0.769231
58
494
6.206897
0.586207
0.177778
0.094444
0
0
0
0
0
0
0
0
0.007177
0.153846
494
14
88
35.285714
0.854067
0.034413
0
0
0
0
0.048319
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
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
0
0
0
0
0
1
0
72e3ac4fde0a35b1aa2592f2a98574d5dd8e6f76
10,192
py
Python
nca47/api/controllers/v1/firewall/securityZone.py
WosunOO/nca_xianshu
bbb548cb67b755a57528796d4c5a66ee68df2678
[ "Apache-2.0" ]
null
null
null
nca47/api/controllers/v1/firewall/securityZone.py
WosunOO/nca_xianshu
bbb548cb67b755a57528796d4c5a66ee68df2678
[ "Apache-2.0" ]
null
null
null
nca47/api/controllers/v1/firewall/securityZone.py
WosunOO/nca_xianshu
bbb548cb67b755a57528796d4c5a66ee68df2678
[ "Apache-2.0" ]
null
null
null
from oslo_serialization import jsonutils as json from nca47.api.controllers.v1 import base from nca47.common.i18n import _ from nca47.common.i18n import _LI, _LE from nca47.common.exception import Nca47Exception from oslo_log import log from nca47.api.controllers.v1 import tools from nca47.manager.central import Centra...
45.097345
77
0.577414
1,111
10,192
5.190819
0.10441
0.074909
0.112363
0.062424
0.891625
0.862494
0.851743
0.851743
0.829894
0.766083
0
0.012547
0.327512
10,192
225
78
45.297778
0.828859
0.022174
0
0.748815
0
0
0.07008
0
0
0
0
0
0
1
0.033175
false
0
0.061611
0
0.222749
0
0
0
0
null
0
0
0
1
1
1
1
1
1
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
7
72e3f9ddf2ff488e4523f7cf3d57f420ea39a9f3
6,992
py
Python
mlmodels/model_tch/nbeats/model.py
gitter-badger/mlmodels
f08cc9b6ec202d4ad25ecdda2f44487da387569d
[ "MIT" ]
1
2019-12-10T06:38:08.000Z
2019-12-10T06:38:08.000Z
mlmodels/model_tch/nbeats/model.py
whitetiger1002/mlmodels
f70f1da7434e8855eed50adc67b49cc169f2ea24
[ "MIT" ]
null
null
null
mlmodels/model_tch/nbeats/model.py
whitetiger1002/mlmodels
f70f1da7434e8855eed50adc67b49cc169f2ea24
[ "MIT" ]
null
null
null
import numpy as np import torch from torch import nn from torch.nn import functional as F def seasonality_model(thetas, t, device): p = thetas.size()[-1] assert p < 10, 'thetas_dim is too big.' p1, p2 = (p // 2, p // 2) if p % 2 == 0 else (p // 2, p // 2 + 1) s1 = torch.tensor([np.cos(2 * np.pi * i * ...
39.502825
119
0.635441
923
6,992
4.547129
0.138678
0.076721
0.036693
0.053371
0.433167
0.297832
0.239695
0.228258
0.228258
0.203479
0
0.011523
0.255292
6,992
176
120
39.727273
0.794507
0.017305
0
0.169014
0
0
0.05609
0.032925
0
0
0
0
0.014085
1
0.112676
false
0
0.028169
0
0.288732
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
0
0
0
0
0
0
0
0
1
0
72e5fa5123e3b4ee554b59dbd26a061b553bcda4
2,916
py
Python
BACKPROPAGATION/Backprop.py
chaya-v/AI-ML-Lab-Programs
cb2e91cf62376f5f95395e89357fa0bef730deed
[ "MIT" ]
2
2022-01-03T07:28:21.000Z
2022-01-23T06:49:47.000Z
BACKPROPAGATION/Backprop.py
chaya-v/AI-ML-Lab-Programs
cb2e91cf62376f5f95395e89357fa0bef730deed
[ "MIT" ]
null
null
null
BACKPROPAGATION/Backprop.py
chaya-v/AI-ML-Lab-Programs
cb2e91cf62376f5f95395e89357fa0bef730deed
[ "MIT" ]
1
2022-01-03T07:28:22.000Z
2022-01-03T07:28:22.000Z
from math import exp from random import seed from random import random def initialize_network(n_inputs, n_hidden, n_outputs): network = list() hidden_layer = [{'weights':[random() for i in range(n_inputs + 1)]} for i in range(n_hidden)] network.append(hidden_layer) output_layer = [{'weights':[random() for i in r...
29.16
95
0.682785
448
2,916
4.341518
0.1875
0.046787
0.027764
0.045244
0.231877
0.154756
0.062725
0.062725
0.031877
0
0
0.097511
0.159465
2,916
100
96
29.16
0.696042
0
0
0.084337
0
0
0.042852
0
0
0
0
0
0
1
0.096386
false
0
0.036145
0.024096
0.192771
0.024096
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
0
1
0
72e64a1d83c3d728c1a241962b109b3208e3da0f
1,993
py
Python
tests/multi_design_test.py
benoitc/hypercouch
23055c26529a7f2198288b249b45d05b796e78bf
[ "MIT" ]
3
2016-05-08T23:45:29.000Z
2020-01-21T11:12:46.000Z
tests/multi_design_test.py
benoitc/hypercouch
23055c26529a7f2198288b249b45d05b796e78bf
[ "MIT" ]
null
null
null
tests/multi_design_test.py
benoitc/hypercouch
23055c26529a7f2198288b249b45d05b796e78bf
[ "MIT" ]
null
null
null
"""\ Copyright (c) 2009 Paul J. Davis <paul.joseph.davis@gmail.com> This file is part of hypercouch which is released uner the MIT license. """ import time import unittest import couchdb COUCHURI = "http://127.0.0.1:5984/" TESTDB = "hyper_tests" class MultiDesignTest(unittest.TestCase): def setUp(self): s...
32.145161
113
0.515805
247
1,993
4.093117
0.421053
0.034619
0.051434
0.055391
0.077151
0.0455
0
0
0
0
0
0.026393
0.315605
1,993
61
114
32.672131
0.714809
0.067235
0
0.215686
0
0
0.280151
0
0
0
0
0
0.078431
1
0.098039
false
0
0.058824
0
0.196078
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
0
0
1
0
72e6cd5ab67a94bed0e467a242a32fec14419840
144
py
Python
xled_plus/samples/colmeander.py
DanieleMancini/xled_plus
a6e9f3da56f95f508ec4fa2bb6ceae005450e654
[ "MIT" ]
null
null
null
xled_plus/samples/colmeander.py
DanieleMancini/xled_plus
a6e9f3da56f95f508ec4fa2bb6ceae005450e654
[ "MIT" ]
null
null
null
xled_plus/samples/colmeander.py
DanieleMancini/xled_plus
a6e9f3da56f95f508ec4fa2bb6ceae005450e654
[ "MIT" ]
null
null
null
from .sample_setup import * ctr = setup_control() eff = ColorMeanderEffect(ctr, "solid") eff.launch_rt() input() eff.stop_rt() ctr.turn_off()
14.4
38
0.729167
21
144
4.761905
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.118056
144
9
39
16
0.787402
0
0
0
0
0
0.034722
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
1
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
2
72e6e5211adcbf36c0973a390acaf06195e58f6f
6,739
py
Python
python/dgl/nn/pytorch/sparse_emb.py
wcyjames/dgl
00a668ac6898971aa154a8a3fe851010034fd6bf
[ "Apache-2.0" ]
null
null
null
python/dgl/nn/pytorch/sparse_emb.py
wcyjames/dgl
00a668ac6898971aa154a8a3fe851010034fd6bf
[ "Apache-2.0" ]
null
null
null
python/dgl/nn/pytorch/sparse_emb.py
wcyjames/dgl
00a668ac6898971aa154a8a3fe851010034fd6bf
[ "Apache-2.0" ]
1
2021-08-16T08:33:31.000Z
2021-08-16T08:33:31.000Z
"""Torch NodeEmbedding.""" from datetime import timedelta import torch as th from ...backend import pytorch as F from ...utils import get_shared_mem_array, create_shared_mem_array _STORE = None class NodeEmbedding: # NodeEmbedding '''Class for storing node embeddings. The class is optimized for training larg...
30.355856
99
0.588811
787
6,739
4.905972
0.265565
0.030303
0.014245
0.021756
0.16317
0.135198
0.118104
0.118104
0.09583
0.09583
0
0.010137
0.326606
6,739
221
100
30.493213
0.840679
0.485384
0
0.181818
0
0
0.004289
0
0
0
0
0
0
1
0.155844
false
0
0.051948
0
0.337662
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
0
0
1
0
72e73a6f2f22fa84ad441b95a06268e872edfef4
2,815
py
Python
tests/sentry/web/frontend/test_create_team.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
20
2016-10-01T04:29:24.000Z
2020-10-09T07:23:34.000Z
tests/sentry/web/frontend/test_create_team.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
8
2019-12-28T23:49:55.000Z
2022-03-02T04:34:18.000Z
tests/sentry/web/frontend/test_create_team.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
7
2016-10-27T05:12:45.000Z
2021-05-01T14:29:53.000Z
from __future__ import absolute_import from django.core.urlresolvers import reverse from sentry.models import OrganizationMember, OrganizationMemberTeam, Team from sentry.testutils import TestCase, PermissionTestCase class CreateTeamPermissionTest(PermissionTestCase): def setUp(self): super(CreateTeamPe...
32.356322
81
0.649023
304
2,815
5.828947
0.25
0.027652
0.053612
0.051919
0.358916
0.335214
0.288375
0.255643
0.255643
0.255643
0
0.004212
0.240853
2,815
86
82
32.732558
0.824988
0
0
0.318182
0
0
0.077087
0.015631
0
0
0
0
0.19697
1
0.121212
false
0
0.060606
0
0.212121
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
0
0
1
0
72ea2c27713d0d21a3c0d65d78528e65b46ecc6c
61,742
py
Python
baseCli.py
eym55/mango-client-python
2cb1ce77d785343c24ecba913eaa9693c3db1181
[ "MIT" ]
null
null
null
baseCli.py
eym55/mango-client-python
2cb1ce77d785343c24ecba913eaa9693c3db1181
[ "MIT" ]
null
null
null
baseCli.py
eym55/mango-client-python
2cb1ce77d785343c24ecba913eaa9693c3db1181
[ "MIT" ]
null
null
null
import abc import datetime import enum import logging import time import typing import aysncio import Layout as layouts from decimal import Decimal from pyserum.market import Market from pyserum.open_orders_account import OpenOrdersAccount from solana.account import Account from solana.publickey import PublicKey from...
45.498895
1,008
0.678064
7,149
61,742
5.620506
0.068961
0.018666
0.008735
0.009407
0.457878
0.378935
0.318758
0.283418
0.243623
0.223439
0
0.00993
0.223624
61,742
1,357
1,009
45.498895
0.827016
0.020942
0
0.323689
0
0.005425
0.134013
0.033164
0
0
0
0.000737
0.000904
1
0.120253
false
0
0.022604
0.047016
0.299277
0.007233
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
72ea8bc7ed52d0a04a2d089038bfcf2f1a671d9a
373
py
Python
agendamentos/migrations/0011_alter_agendamentosfuncionarios_table.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
agendamentos/migrations/0011_alter_agendamentosfuncionarios_table.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
agendamentos/migrations/0011_alter_agendamentosfuncionarios_table.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-29 05:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('agendamentos', '0010_agendamentosfuncionarios'), ] operations = [ migrations.AlterModelTable( name='agendamentosfuncionarios', ...
20.722222
58
0.640751
33
373
7.181818
0.848485
0
0
0
0
0
0
0
0
0
0
0.068841
0.260054
373
17
59
21.941176
0.789855
0.120643
0
0
1
0
0.269939
0.233129
0
0
0
0
0
1
0
false
0
0.090909
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
72ee1cbe6083bf017bca4e5b6925555840bc1de4
1,288
py
Python
openstack/tests/unit/metric/v1/test_capabilities.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
43
2018-12-19T08:39:15.000Z
2021-07-21T02:45:43.000Z
openstack/tests/unit/metric/v1/test_capabilities.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
11
2019-03-17T13:28:56.000Z
2020-09-23T23:57:50.000Z
openstack/tests/unit/metric/v1/test_capabilities.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
47
2018-12-19T05:14:25.000Z
2022-03-19T15:28:30.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 the Li...
34.810811
75
0.714286
166
1,288
5.463855
0.572289
0.066152
0.079383
0.101433
0
0
0
0
0
0
0
0.004812
0.193323
1,288
36
76
35.777778
0.868142
0.401398
0
0
0
0
0.088274
0
0
0
0
0
0.421053
1
0.105263
false
0
0.105263
0
0.263158
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
72ee24f7120a48a59768912e69a446c1ca036274
10,706
py
Python
pyxdsm/tests/test_xdsm.py
yqliaohk/pyXDSM
3bcfab710543d6624ba0698093c6522bc94601e8
[ "Apache-2.0" ]
null
null
null
pyxdsm/tests/test_xdsm.py
yqliaohk/pyXDSM
3bcfab710543d6624ba0698093c6522bc94601e8
[ "Apache-2.0" ]
null
null
null
pyxdsm/tests/test_xdsm.py
yqliaohk/pyXDSM
3bcfab710543d6624ba0698093c6522bc94601e8
[ "Apache-2.0" ]
null
null
null
import unittest import os from pyxdsm.XDSM import XDSM, __file__ from numpy.distutils.exec_command import find_executable def filter_lines(lns): # Empty lines are excluded. # Leading and trailing whitespaces are removed # Comments are removed. return [ln.strip() for ln in lns if ln.strip() and not ln....
33.772871
110
0.515412
1,296
10,706
4.114198
0.204475
0.060765
0.028132
0.033758
0.306264
0.249437
0.213053
0.187172
0.171793
0.171793
0
0.014456
0.32804
10,706
316
111
33.879747
0.726717
0.084252
0
0.219409
0
0.004219
0.488878
0.027781
0
0
0
0
0.059072
1
0.033755
false
0.004219
0.033755
0.004219
0.075949
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
0
0
1
0
72ef01a1de3148482533568abd4a325f3fc543ee
926
py
Python
wecom_sdk/base/callback.py
quanttide/wecom-sdk-py
1c71909c08d885e52e4ec38a9ddac0938a059e5a
[ "Apache-2.0" ]
9
2021-06-24T03:59:54.000Z
2022-03-06T06:22:54.000Z
wecom_sdk/base/callback.py
quanttide/wecom-sdk-py
1c71909c08d885e52e4ec38a9ddac0938a059e5a
[ "Apache-2.0" ]
null
null
null
wecom_sdk/base/callback.py
quanttide/wecom-sdk-py
1c71909c08d885e52e4ec38a9ddac0938a059e5a
[ "Apache-2.0" ]
3
2021-06-24T02:59:05.000Z
2021-09-01T00:44:19.000Z
# -*- coding: utf-8 -*- from wecom_sdk.base.crypt import encrypt_msg, decrypt_msg class WeChatWorkCallbackSDK(object): """ 企业微信回调SDK基本类,用于实现内部系统和企业微信客户端的双向通信 详细说明:https://work.weixin.qq.com/api/doc/90000/90135/90930 """ def __init__(self, token, encoding_aes_key): self.token = token ...
29.870968
93
0.62419
107
926
5.168224
0.439252
0.139241
0.177215
0.108499
0.21519
0.21519
0.166365
0.166365
0.166365
0.166365
0
0.02346
0.263499
926
31
94
29.870968
0.78739
0.215983
0
0
0
0
0
0
0
0
0
0
0
1
0.3
false
0
0.1
0
0.7
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
1
0
0
2
72ef3701a3a8ef52c1a792f4ce8c00616bb47526
351
py
Python
scripts/get-table-schemas.py
numankh/GRE-Vocab-Helper
c2858f3200f6d6673b1f316879e5ac482a6b7a83
[ "MIT" ]
null
null
null
scripts/get-table-schemas.py
numankh/GRE-Vocab-Helper
c2858f3200f6d6673b1f316879e5ac482a6b7a83
[ "MIT" ]
null
null
null
scripts/get-table-schemas.py
numankh/GRE-Vocab-Helper
c2858f3200f6d6673b1f316879e5ac482a6b7a83
[ "MIT" ]
null
null
null
import psycopg2 from decouple import config import pandas as pd import dbconnect cursor, connection = dbconnect.connect_to_db() sql = """ SELECT "table_name","column_name", "data_type", "table_schema" FROM INFORMATION_SCHEMA.COLUMNS WHERE "table_schema" = 'public' ORDER BY table_name """ df = pd.read_sql(sql, con=co...
25.071429
62
0.77208
51
351
5.098039
0.647059
0.069231
0
0
0
0
0
0
0
0
0
0.003215
0.11396
351
14
63
25.071429
0.832797
0
0
0
0
0
0.426136
0.150568
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0.076923
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
72ef4fcc94a467e2eb56273b32fbc169f181effc
7,880
py
Python
tests/test_table/test_pivot.py
andriyor/agate
9b12d4bcc75bf3788e0774e23188f4409c3e7519
[ "MIT" ]
663
2016-02-16T13:43:00.000Z
2022-03-13T17:21:19.000Z
tests/test_table/test_pivot.py
andriyor/agate
9b12d4bcc75bf3788e0774e23188f4409c3e7519
[ "MIT" ]
347
2015-08-28T13:46:37.000Z
2016-02-16T01:53:06.000Z
tests/test_table/test_pivot.py
andriyor/agate
9b12d4bcc75bf3788e0774e23188f4409c3e7519
[ "MIT" ]
122
2016-02-23T02:43:24.000Z
2022-03-04T17:21:14.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- import sys try: from cdecimal import Decimal except ImportError: # pragma: no cover from decimal import Decimal from agate import Table from agate.aggregations import Sum from agate.computations import Percent from agate.data_types import Number, Text from agate....
33.248945
110
0.583629
881
7,880
5.034052
0.112372
0.124014
0.047351
0.052762
0.747689
0.695603
0.683878
0.647802
0.636302
0.624803
0
0.017583
0.263832
7,880
236
111
33.389831
0.74694
0.00736
0
0.356322
0
0
0.096048
0
0
0
0
0
0.235632
1
0.08046
false
0
0.051724
0
0.137931
0.017241
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
72f00f9b87241d8593ec5b5f4a827b52ab93ebc1
156
py
Python
external/pyTorchChamferDistance/chamfer_distance/__init__.py
chengzhag/DeepPanoContext
14f847e51ec2bd08e0fc178dd1640541752addb7
[ "MIT" ]
52
2021-09-12T02:41:02.000Z
2022-03-05T21:55:36.000Z
external/pyTorchChamferDistance/chamfer_distance/__init__.py
mertkiray/EndtoEnd3DSceneUnderstandingWithAttention
f220017f8218c8ce311e9ffa1ee205ef0e735fc5
[ "MIT" ]
2
2021-11-25T06:50:19.000Z
2022-01-19T10:11:06.000Z
external/pyTorchChamferDistance/chamfer_distance/__init__.py
chengzhag/DeepPanoContext
14f847e51ec2bd08e0fc178dd1640541752addb7
[ "MIT" ]
9
2021-09-18T01:44:05.000Z
2022-01-12T16:19:46.000Z
import os os.makedirs(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'build')), exist_ok=True) from .chamfer_distance import ChamferDistance
39
99
0.769231
23
156
4.956522
0.695652
0.157895
0
0
0
0
0
0
0
0
0
0
0.064103
156
3
100
52
0.780822
0
0
0
0
0
0.044872
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
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
1
0
1
0
0
0
0
4
72f29f7ed6f48568758a4eb5e3565edf5506bbba
1,332
py
Python
test_impartial.py
georg-wolflein/impartial
a53819cefcb74a57e3c1148a6b8fa88aed9264d4
[ "Apache-2.0" ]
null
null
null
test_impartial.py
georg-wolflein/impartial
a53819cefcb74a57e3c1148a6b8fa88aed9264d4
[ "Apache-2.0" ]
null
null
null
test_impartial.py
georg-wolflein/impartial
a53819cefcb74a57e3c1148a6b8fa88aed9264d4
[ "Apache-2.0" ]
null
null
null
from functools import partial from impartial import impartial def f(x: int, y: int, z: int = 0) -> int: return x + 2*y + z def test_simple_call_args(): assert impartial(f, 1)(2) == f(1, 2) def test_simple_call_kwargs(): assert impartial(f, y=2)(x=1) == f(1, 2) def test_simple_call_empty(): asse...
20.492308
65
0.61036
240
1,332
3.2625
0.15
0.03576
0.034483
0.15198
0.490421
0.413793
0.378033
0.237548
0.237548
0.153257
0
0.054966
0.221471
1,332
64
66
20.8125
0.700096
0
0
0.153846
0
0
0
0
0
0
0
0
0.384615
1
0.333333
false
0
0.051282
0.051282
0.435897
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
72f43506a3e179e12b61e504fc43770a91f14bf0
5,076
py
Python
manager.py
smilechaser/screeps-script-caddy
11b6e809675dfd0a5a4ff917a492adc4a5a08bca
[ "MIT" ]
2
2016-02-23T09:50:15.000Z
2016-02-28T22:08:03.000Z
manager.py
smilechaser/screeps-script-caddy
11b6e809675dfd0a5a4ff917a492adc4a5a08bca
[ "MIT" ]
null
null
null
manager.py
smilechaser/screeps-script-caddy
11b6e809675dfd0a5a4ff917a492adc4a5a08bca
[ "MIT" ]
null
null
null
''' Python script for uploading/downloading scripts for use with the game Screeps. http://support.screeps.com/hc/en-us/articles/203022612-Commiting-scripts-using-direct-API-access Usage: # # general help/usage # python3 manager.py --help # # retrieve all scripts from the game and store them...
22.460177
96
0.597715
602
5,076
4.906977
0.299003
0.040623
0.034529
0.028436
0.104942
0.05281
0.033175
0.033175
0.033175
0.033175
0
0.00441
0.285264
5,076
225
97
22.56
0.809813
0.149921
0
0.081818
0
0
0.156243
0
0
0
0
0
0
1
0.072727
false
0.136364
0.054545
0.009091
0.163636
0.072727
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
72f4405126d83aa638993123007b34b00b84222c
289
py
Python
contact.py
Nemfeto/python_training
4d04f07700da4b0d5b50736ba197ad85fd2ee549
[ "Apache-2.0" ]
null
null
null
contact.py
Nemfeto/python_training
4d04f07700da4b0d5b50736ba197ad85fd2ee549
[ "Apache-2.0" ]
null
null
null
contact.py
Nemfeto/python_training
4d04f07700da4b0d5b50736ba197ad85fd2ee549
[ "Apache-2.0" ]
null
null
null
class Contact: def __init__(self, first_name, last_name, nickname, address, mobile, email): self.first_name = first_name self.last_name = last_name self.nickname = nickname self.address = address self.mobile = mobile self.email = email
28.9
80
0.643599
35
289
5.028571
0.342857
0.153409
0.147727
0
0
0
0
0
0
0
0
0
0.280277
289
9
81
32.111111
0.846154
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
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
72f452ac4f4dcb2cc71e6a4cb7d5b81c957513cc
1,158
py
Python
integreat_cms/cms/views/dashboard/admin_dashboard_view.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
21
2018-10-26T20:10:45.000Z
2020-10-22T09:41:46.000Z
integreat_cms/cms/views/dashboard/admin_dashboard_view.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
392
2018-10-25T08:34:07.000Z
2020-11-19T08:20:30.000Z
integreat_cms/cms/views/dashboard/admin_dashboard_view.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
23
2019-03-06T17:11:35.000Z
2020-10-16T04:36:41.000Z
import logging from django.views.generic import TemplateView from ...models import Feedback from ..chat.chat_context_mixin import ChatContextMixin logger = logging.getLogger(__name__) class AdminDashboardView(TemplateView, ChatContextMixin): """ View for the admin dashboard """ #: The template to ...
31.297297
101
0.686528
130
1,158
5.953846
0.5
0.056848
0.093023
0.085271
0.136951
0.077519
0
0
0
0
0
0.001089
0.207254
1,158
36
102
32.166667
0.842048
0.391192
0
0
0
0
0.1216
0.048
0
0
0
0
0
1
0.066667
false
0
0.266667
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
72f55f6824f11224ca92665bf8c3e8e323d9e480
15,144
py
Python
src/tangled_up_in_unicode/tangled_up_in_unicode_14_0_0.py
bhumikapahariapuresoftware/tangled-up-in-unicode
ee052e6f0fd4a0083178a163ec72dc37e2ad5d59
[ "BSD-4-Clause" ]
2
2019-09-28T23:46:24.000Z
2019-10-02T12:08:51.000Z
src/tangled_up_in_unicode/tangled_up_in_unicode_14_0_0.py
dylan-profiler/tangled_up_in_unicode
a4368c2b70f55d90381085bfcdf979f89e42138d
[ "BSD-4-Clause" ]
5
2020-02-16T06:02:27.000Z
2021-09-27T21:59:29.000Z
src/tangled_up_in_unicode/tangled_up_in_unicode_14_0_0.py
dylan-profiler/tangled_up_in_unicode
a4368c2b70f55d90381085bfcdf979f89e42138d
[ "BSD-4-Clause" ]
4
2020-02-17T19:55:32.000Z
2022-03-21T04:01:37.000Z
from typing import Optional import bisect from tangled_up_in_unicode.u14_0_0_data.prop_list_to_property import prop_list_to_property from tangled_up_in_unicode.u14_0_0_data.blocks_to_block_start import blocks_to_block_start from tangled_up_in_unicode.u14_0_0_data.blocks_to_block_end import blocks_to_block_end from ta...
36.403846
132
0.726162
2,218
15,144
4.527502
0.050947
0.059152
0.069906
0.046306
0.896236
0.794065
0.750149
0.694583
0.66431
0.595798
0
0.012042
0.2049
15,144
415
133
36.491566
0.821942
0.088352
0
0.624595
0
0
0.00924
0
0
0
0
0
0
1
0.07767
false
0
0.106796
0
0.359223
0
0
0
0
null
0
0
0
1
1
1
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
3
72f6da1974a7d86bd87801e4461a62cded6e702d
1,379
py
Python
to_display.py
namib-project/weatherstation-image
ae6a11943bfd21135bf0ce5d113865b69c58bbe2
[ "MIT" ]
null
null
null
to_display.py
namib-project/weatherstation-image
ae6a11943bfd21135bf0ce5d113865b69c58bbe2
[ "MIT" ]
null
null
null
to_display.py
namib-project/weatherstation-image
ae6a11943bfd21135bf0ce5d113865b69c58bbe2
[ "MIT" ]
null
null
null
from PIL import Image from PIL import ImageDraw from PIL import ImageFont import sys import ST7735 # Create ST7735 LCD display class object and set pin numbers and display hardware information. disp = ST7735.ST7735( dc=24, cs=ST7735.BG_SPI_CS_BACK, rst=25, port=0, width=122, height=160, ro...
26.519231
96
0.701233
229
1,379
4.213974
0.519651
0.050777
0.033161
0.029016
0.043523
0.043523
0
0
0
0
0
0.076249
0.172589
1,379
51
97
27.039216
0.768624
0.329224
0
0.058824
0
0
0.146288
0.115721
0
0
0
0
0
1
0
false
0
0.147059
0
0.147059
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
0
0
1
0
72f7f3e6d5b462f2c1a23997a28ebc45762b8fc7
245
py
Python
Smart User Targeted Advertising/MinorPro/FINALPROJECT/Resources/testInsert.py
saransh808/Projects
7449ed6b53900ebb16a9084cff389cc50f3c9f6c
[ "MIT" ]
null
null
null
Smart User Targeted Advertising/MinorPro/FINALPROJECT/Resources/testInsert.py
saransh808/Projects
7449ed6b53900ebb16a9084cff389cc50f3c9f6c
[ "MIT" ]
null
null
null
Smart User Targeted Advertising/MinorPro/FINALPROJECT/Resources/testInsert.py
saransh808/Projects
7449ed6b53900ebb16a9084cff389cc50f3c9f6c
[ "MIT" ]
null
null
null
import sqlite3 conn=sqlite3.connect('Survey.db') fo=open('insertcommand.txt') str=fo.readline() while str: str="INSERT INTO data VALUES"+str conn.execute(str) #print(str) str=fo.readline() conn.commit() conn.close() fo.close()
16.333333
37
0.689796
36
245
4.694444
0.583333
0.059172
0.153846
0
0
0
0
0
0
0
0
0.009524
0.142857
245
14
38
17.5
0.795238
0.040816
0
0.181818
0
0
0.209402
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
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
0
0
1
0
72f81be16085865d9021b61f8214e479cfae5efb
4,719
py
Python
cdp/headless_experimental.py
HyperionGray/python-chrome-devtools-protocol
5463a5f3d20100255c932961b944e4b37dbb7e61
[ "MIT" ]
42
2019-10-07T17:50:00.000Z
2022-03-28T17:56:27.000Z
cdp/headless_experimental.py
HyperionGray/python-chrome-devtools-protocol
5463a5f3d20100255c932961b944e4b37dbb7e61
[ "MIT" ]
23
2019-06-09T19:56:25.000Z
2022-03-02T01:53:13.000Z
cdp/headless_experimental.py
HyperionGray/python-chrome-devtools-protocol
5463a5f3d20100255c932961b944e4b37dbb7e61
[ "MIT" ]
15
2019-11-25T10:20:32.000Z
2022-03-01T21:14:56.000Z
# DO NOT EDIT THIS FILE! # # This file is generated from the CDP specification. If you need to make # changes, edit the generator and regenerate all of the modules. # # CDP domain: HeadlessExperimental (experimental) from __future__ import annotations from cdp.util import event_class, T_JSON_DICT from dataclasses impo...
40.333333
300
0.700148
617
4,719
5.23987
0.333874
0.023198
0.041757
0.024126
0.131457
0.111661
0.111661
0.09867
0.088463
0.042066
0
0.004315
0.21424
4,719
116
301
40.681034
0.867584
0.453062
0
0.184615
1
0
0.119658
0.05291
0
0
0
0
0
1
0.092308
false
0
0.076923
0.030769
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
72f84712a4005f1ecc74d20ce01f90b1d0a8a90c
237
py
Python
tests/test_geometry.py
resurtm/wvflib
106f426cc2c63c8d21f3e0ec1b90b06450dfc547
[ "MIT" ]
1
2020-08-14T20:59:54.000Z
2020-08-14T20:59:54.000Z
tests/test_geometry.py
resurtm/wvflib
106f426cc2c63c8d21f3e0ec1b90b06450dfc547
[ "MIT" ]
3
2020-03-31T11:16:01.000Z
2022-03-01T01:40:38.000Z
tests/test_geometry.py
resurtm/wvflib
106f426cc2c63c8d21f3e0ec1b90b06450dfc547
[ "MIT" ]
3
2020-01-24T11:10:46.000Z
2020-03-31T11:24:34.000Z
import unittest from wvflib.geometry import Face class TestGeometry(unittest.TestCase): def test_constructor(self): f = Face() self.assertTrue(len(f.vertices) == 0) if __name__ == '__main__': unittest.main()
16.928571
45
0.675105
28
237
5.392857
0.75
0
0
0
0
0
0
0
0
0
0
0.005348
0.21097
237
13
46
18.230769
0.802139
0
0
0
0
0
0.033755
0
0
0
0
0
0.125
1
0.125
false
0
0.25
0
0.5
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
72f91b913afb43954a794d5c35602920d06bf7b3
11,325
py
Python
tests/test_core.py
d066y/detectem
648ddff159e17777e41b1dd266a759e9f0774ea8
[ "MIT" ]
null
null
null
tests/test_core.py
d066y/detectem
648ddff159e17777e41b1dd266a759e9f0774ea8
[ "MIT" ]
null
null
null
tests/test_core.py
d066y/detectem
648ddff159e17777e41b1dd266a759e9f0774ea8
[ "MIT" ]
1
2019-07-28T10:11:01.000Z
2019-07-28T10:11:01.000Z
import pytest from detectem.core import Detector, Result, ResultCollection from detectem.plugin import Plugin, PluginCollection from detectem.settings import INDICATOR_TYPE, HINT_TYPE, MAIN_ENTRY, GENERIC_TYPE from detectem.plugins.helpers import meta_generator class TestDetector(): HAR_ENTRY_1 = { 'requ...
32.449857
93
0.47947
1,117
11,325
4.696509
0.120859
0.047083
0.045368
0.048037
0.62886
0.571102
0.521159
0.516775
0.479604
0.453679
0
0.011486
0.346578
11,325
348
94
32.543103
0.697432
0
0
0.357143
0
0
0.189404
0.012804
0
0
0
0
0.055195
1
0.055195
false
0
0.016234
0
0.123377
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
0
0
1
0
72fa110e2fe65a7ff391593c876372e3cc4ad11c
8,317
py
Python
twitter-clone/twitter/views.py
Mlitwin98/twitter-clone
4fbe754a4693c39ac4e9623f51ca42a7facecd2e
[ "MIT" ]
null
null
null
twitter-clone/twitter/views.py
Mlitwin98/twitter-clone
4fbe754a4693c39ac4e9623f51ca42a7facecd2e
[ "MIT" ]
null
null
null
twitter-clone/twitter/views.py
Mlitwin98/twitter-clone
4fbe754a4693c39ac4e9623f51ca42a7facecd2e
[ "MIT" ]
null
null
null
from django.dispatch.dispatcher import receiver from django.shortcuts import get_object_or_404, redirect, render from django.contrib.auth.decorators import login_required from django.http.response import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import authenticate, logout as aut...
39.046948
242
0.666106
990
8,317
5.464646
0.157576
0.058965
0.031608
0.024584
0.438078
0.359704
0.292052
0.201294
0.154713
0.154713
0
0.001993
0.215823
8,317
213
243
39.046948
0.827507
0.006132
0
0.360465
0
0
0.075387
0
0
0
0
0
0
1
0.075581
false
0.02907
0.075581
0.005814
0.296512
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
0
0
1
0
72fac0ae2d96fa1f6d3aaf1194458c0e2fa5d7a4
143
py
Python
custom_app/custom_app/doctype/depart/test_depart.py
Amruthaohm/custom_app
03bc3fc11c3627251796611caf33b7117c46d69b
[ "MIT" ]
null
null
null
custom_app/custom_app/doctype/depart/test_depart.py
Amruthaohm/custom_app
03bc3fc11c3627251796611caf33b7117c46d69b
[ "MIT" ]
null
null
null
custom_app/custom_app/doctype/depart/test_depart.py
Amruthaohm/custom_app
03bc3fc11c3627251796611caf33b7117c46d69b
[ "MIT" ]
null
null
null
# Copyright (c) 2022, momscode and Contributors # See license.txt # import frappe import unittest class Testdepart(unittest.TestCase): pass
15.888889
47
0.776224
18
143
6.166667
0.888889
0
0
0
0
0
0
0
0
0
0
0.032787
0.146853
143
8
48
17.875
0.877049
0.524476
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
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
1
1
1
0
1
0
0
6
72fb29b0b3b127d1a4779c19adfdd5ba81413ede
2,057
py
Python
stix2/__init__.py
khdesai/cti-python-stix2
20a9bb316c43b7d9faaab686db8d51e5c89416da
[ "BSD-3-Clause" ]
null
null
null
stix2/__init__.py
khdesai/cti-python-stix2
20a9bb316c43b7d9faaab686db8d51e5c89416da
[ "BSD-3-Clause" ]
null
null
null
stix2/__init__.py
khdesai/cti-python-stix2
20a9bb316c43b7d9faaab686db8d51e5c89416da
[ "BSD-3-Clause" ]
null
null
null
"""Python APIs for STIX 2. .. autosummary:: :toctree: api confidence datastore environment equivalence exceptions markings parsing pattern_visitor patterns properties serialization utils v20 v21 versioning workbench """ # flake8: noqa DEFAULT_VERSION = '2.1' # De...
31.646154
85
0.808459
169
2,057
9.721893
0.615385
0.039562
0.014607
0.018259
0.046257
0.046257
0.046257
0.046257
0.046257
0.046257
0
0.007928
0.141468
2,057
64
86
32.140625
0.922424
0.191055
0
0
0
0
0.001814
0
0
0
0
0
0
1
0
false
0
0.361111
0
0.361111
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
72fbd53ac87abb2352685e43c874d647c228dd86
125
py
Python
0/1/1436/1436.py
chr0m3/boj-codes
d71d0a22d0a3ae62c225f382442461275f56fe8f
[ "MIT" ]
3
2017-07-08T16:29:06.000Z
2020-07-20T00:17:45.000Z
0/1/1436/1436.py
chr0m3/boj-codes
d71d0a22d0a3ae62c225f382442461275f56fe8f
[ "MIT" ]
null
null
null
0/1/1436/1436.py
chr0m3/boj-codes
d71d0a22d0a3ae62c225f382442461275f56fe8f
[ "MIT" ]
2
2017-11-20T14:06:06.000Z
2020-07-20T00:17:47.000Z
count = int(input()) title = 0 while count > 0: title += 1 if '666' in str(title): count -= 1 print(title)
12.5
27
0.536
19
125
3.526316
0.631579
0
0
0
0
0
0
0
0
0
0
0.081395
0.312
125
9
28
13.888889
0.697674
0
0
0
0
0
0.024
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
1
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
2
72fc07d1bccf9a44ddf48057772608ff2bbcb0f5
197,684
py
Python
functions/source/GreengrassLambda/idna/uts46data.py
jieatelement/quickstart-aws-industrial-machine-connectivity
ca6af4dcbf795ce4a91adcbec4b206147ab26bfa
[ "Apache-2.0" ]
40
2020-07-11T10:07:51.000Z
2021-12-11T17:09:20.000Z
functions/source/GreengrassLambda/idna/uts46data.py
jieatelement/quickstart-aws-industrial-machine-connectivity
ca6af4dcbf795ce4a91adcbec4b206147ab26bfa
[ "Apache-2.0" ]
18
2020-07-20T18:54:31.000Z
2021-11-04T13:14:28.000Z
functions/source/GreengrassLambda/idna/uts46data.py
jieatelement/quickstart-aws-industrial-machine-connectivity
ca6af4dcbf795ce4a91adcbec4b206147ab26bfa
[ "Apache-2.0" ]
37
2020-07-09T23:12:30.000Z
2022-03-16T11:15:58.000Z
# This file is automatically generated by tools/idna-data # vim: set fileencoding=utf-8 : """IDNA Mapping Table from UTS46.""" __version__ = "11.0.0" def _seg_0(): return [ (0x0, '3'), (0x1, '3'), (0x2, '3'), (0x3, '3'), (0x4, '3'), (0x5, '3'), (0x6, '3'), (0x7, '3...
24.090178
58
0.353625
27,611
197,684
2.532505
0.409402
0.155452
0.001673
0.000572
0.000772
0
0
0
0
0
0
0.212494
0.315655
197,684
8,205
59
24.093114
0.301854
0.000592
0
0.009729
1
0
0.081102
0
0
0
0.251929
0
0
1
0.009729
false
0
0
0.009729
0.019458
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
72fc770cdae73372ef5eddce8deb799fc40b9990
3,078
py
Python
tests/kbcr/smart/test_smart.py
alex4321/ctp
22a6a55442a648e5f7d8c10f90708a7340360720
[ "MIT" ]
null
null
null
tests/kbcr/smart/test_smart.py
alex4321/ctp
22a6a55442a648e5f7d8c10f90708a7340360720
[ "MIT" ]
null
null
null
tests/kbcr/smart/test_smart.py
alex4321/ctp
22a6a55442a648e5f7d8c10f90708a7340360720
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import torch from torch import nn from kbcr.kernels import GaussianKernel from kbcr.smart import NeuralKB import pytest @pytest.mark.light def test_smart_v1(): embedding_size = 50 rs = np.random.RandomState(0) for _ in range(32): with torch.no_grad(...
30.475248
108
0.525016
394
3,078
3.819797
0.266497
0.03588
0.025914
0.043854
0.190033
0.102326
0.082392
0
0
0
0
0.018765
0.342105
3,078
100
109
30.78
0.724444
0.012021
0
0
0
0
0.016458
0
0
0
0
0
0.028986
1
0.014493
false
0
0.086957
0
0.101449
0.072464
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
0
1
0
72fca82d10a22b6f1dadf793abb5d2d66ab69ad0
254
py
Python
test.py
eseJiHeaLim/find_child
29596529ccf39241492b092b01baf03b76d0eb3a
[ "MIT" ]
null
null
null
test.py
eseJiHeaLim/find_child
29596529ccf39241492b092b01baf03b76d0eb3a
[ "MIT" ]
null
null
null
test.py
eseJiHeaLim/find_child
29596529ccf39241492b092b01baf03b76d0eb3a
[ "MIT" ]
null
null
null
import tkinter window=tkinter.Tk() window.title("YUN DAE HEE") window.geometry("640x400+100+100") window.resizable(True, True) image=tkinter.PhotoImage(file="opencv_frame_0.png") label=tkinter.Label(window, image=image) label.pack() window.mainloop()
19.538462
51
0.775591
37
254
5.27027
0.621622
0
0
0
0
0
0
0
0
0
0
0.054852
0.066929
254
13
52
19.538462
0.767932
0
0
0
0
0
0.172549
0
0
0
0
0
0
1
0
false
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
0
0
0
0
0
0
1
0
72fd07154cf4859fb20d5f7aa637f41a882f2a27
584
py
Python
UMSLHackRestAPI/api/urls.py
trujivan/climate-impact-changes
609b8197b0ede1c1fdac3aa82b34e73e6f4526e3
[ "MIT" ]
1
2020-03-29T17:52:26.000Z
2020-03-29T17:52:26.000Z
UMSLHackRestAPI/api/urls.py
trujivan/climate-impact-changes
609b8197b0ede1c1fdac3aa82b34e73e6f4526e3
[ "MIT" ]
6
2021-03-19T00:01:21.000Z
2021-09-22T18:37:17.000Z
UMSLHackRestAPI/api/urls.py
trujivan/climate-impact-changes
609b8197b0ede1c1fdac3aa82b34e73e6f4526e3
[ "MIT" ]
null
null
null
from django.urls import path, include from .views import main_view, PredictionView #router = routers.DefaultRouter(trailing_slash=False) #router.register('years', YearView, basename='years') #router.register('predict', PredictionView, basename='predict') urlpatterns = [ #path('api/', get_dummy_data), #path('...
36.5
69
0.714041
73
584
5.561644
0.493151
0.059113
0
0
0
0
0
0
0
0
0
0.001927
0.111301
584
16
70
36.5
0.780347
0.585616
0
0
0
0
0.105932
0
0
0
0
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
72fd5b11bfca65c6e323b75581cbff1627fbd28f
1,547
py
Python
ievv_opensource/utils/ievv_colorize.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
null
null
null
ievv_opensource/utils/ievv_colorize.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
37
2015-10-26T09:14:12.000Z
2022-02-10T10:35:33.000Z
ievv_opensource/utils/ievv_colorize.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
1
2015-11-06T07:56:34.000Z
2015-11-06T07:56:34.000Z
from django.conf import settings from termcolor import colored #: Red color constant for :func:`.ievv_colorize`. COLOR_RED = 'red' #: Blue color constant for :func:`.ievv_colorize`. COLOR_BLUE = 'blue' #: Yellow color constant for :func:`.ievv_colorize`. COLOR_YELLOW = 'yellow' #: Grey color constant for :func:`.i...
25.783333
82
0.614092
195
1,547
4.723077
0.333333
0.156352
0.129207
0.108578
0.294245
0.294245
0.294245
0.093377
0
0
0
0
0.266322
1,547
59
83
26.220339
0.811454
0.648352
0
0
0
0
0.111607
0.053571
0
0
0
0
0
1
0.066667
false
0
0.133333
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
0
0
0
0
1
0
72ff28fd3335697c188eb234e3558bfd46b20d35
12,438
py
Python
RSICompute.py
bluefin1986/tinyspark
0b086d3af5316062c2f3aaa7d4492341ed5c71c2
[ "MIT" ]
3
2020-04-14T14:08:11.000Z
2021-01-27T00:36:23.000Z
RSICompute.py
bluefin1986/tinyspark
0b086d3af5316062c2f3aaa7d4492341ed5c71c2
[ "MIT" ]
null
null
null
RSICompute.py
bluefin1986/tinyspark
0b086d3af5316062c2f3aaa7d4492341ed5c71c2
[ "MIT" ]
5
2020-02-15T09:54:13.000Z
2021-08-19T17:31:57.000Z
# coding: utf-8 # In[1]: import baostock as bs import pandas as pd import numpy as np import talib as ta import matplotlib.pyplot as plt import KlineService import BaoStockUtil import math import datetime from scipy import integrate from RSI import DayRSI,WeekRSI,MonthRSI,SixtyMinRSI from concurrent.futures import...
34.359116
133
0.651069
1,325
12,438
6.008302
0.258113
0.030147
0.02261
0.031654
0.224846
0.163422
0.099862
0.099862
0.068082
0.049491
0
0.027968
0.226725
12,438
361
134
34.454294
0.79975
0.087474
0
0.171548
0
0
0.082378
0.004205
0
0
0
0.00277
0
1
0.050209
false
0
0.062762
0.004184
0.16318
0.033473
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
0
1
0
72ff4801f405ee21c99ddd54c7ec445e3fe9a25d
1,558
py
Python
osnoise/conf/base.py
abousselmi/OSNoise
f0e4baa51921f672179c014beb89555958c7ddca
[ "Apache-2.0" ]
4
2017-11-17T13:19:32.000Z
2020-05-29T05:10:58.000Z
osnoise/conf/base.py
abousselmi/osnoise
f0e4baa51921f672179c014beb89555958c7ddca
[ "Apache-2.0" ]
null
null
null
osnoise/conf/base.py
abousselmi/osnoise
f0e4baa51921f672179c014beb89555958c7ddca
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Orange # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softw...
26.40678
74
0.625802
200
1,558
4.79
0.505
0.06263
0.050104
0.046973
0
0
0
0
0
0
0
0.018341
0.265083
1,558
59
75
26.40678
0.818341
0.348524
0
0.243243
0
0
0.275449
0.027944
0
0
0
0
0
1
0.054054
false
0
0.027027
0.027027
0.108108
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
0
0
1
0
72ff4a4495a1cf2b2c794050ad0652e0aaf629e7
333
py
Python
src/orionsensor/gui/sensors/proximitysensor.py
Ginkooo/ORION-sensor-visualizer
550b2e692d711bb8104fe827570ef9b9112536d3
[ "MIT" ]
null
null
null
src/orionsensor/gui/sensors/proximitysensor.py
Ginkooo/ORION-sensor-visualizer
550b2e692d711bb8104fe827570ef9b9112536d3
[ "MIT" ]
null
null
null
src/orionsensor/gui/sensors/proximitysensor.py
Ginkooo/ORION-sensor-visualizer
550b2e692d711bb8104fe827570ef9b9112536d3
[ "MIT" ]
null
null
null
from kivy.properties import NumericProperty from gui.sensors.sensor import Sensor import config class ProximitySensor(Sensor): """Proximity sensor view""" # maximum possible reading max = NumericProperty(config.ProximitySensor.max) # minimum possible reading min = NumericProperty(config.Proximit...
23.785714
53
0.768769
35
333
7.314286
0.542857
0.09375
0.28125
0
0
0
0
0
0
0
0
0
0.159159
333
13
54
25.615385
0.914286
0.216216
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
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
1
0
1
0
0
3
72ff9b4fe0f33f7f62e39cedf2e3740b3be6be6c
9,360
py
Python
Cogs/HelpCommand.py
gudtldn/DiscordStockBot
d1b06e49738092ccf3c5d5a26b35fd321a3bd0f2
[ "MIT" ]
1
2022-03-12T13:43:36.000Z
2022-03-12T13:43:36.000Z
Cogs/HelpCommand.py
gudtldn/DiscordStockBot
d1b06e49738092ccf3c5d5a26b35fd321a3bd0f2
[ "MIT" ]
1
2022-03-12T04:53:08.000Z
2022-03-12T13:41:15.000Z
Cogs/HelpCommand.py
gudtldn/DiscordStockBot
d1b06e49738092ccf3c5d5a26b35fd321a3bd0f2
[ "MIT" ]
null
null
null
#도움말 import discord from discord.ext import commands from discord.ext.commands import Context from define import * class HelpCommand_Context(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command(name="도움말", aliases=["명령어", "?"]) @CommandExecutionTime async def _Hel...
52.58427
128
0.570833
1,171
9,360
4.487617
0.181042
0.068506
0.111323
0.145576
0.669648
0.656708
0.606089
0.532445
0.351855
0.315699
0
0.002947
0.274893
9,360
178
129
52.58427
0.771328
0.000321
0
0.344828
0
0
0.232767
0.024687
0
0
0
0
0
1
0.013793
false
0
0.027586
0
0.151724
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
0
0
1
0
f400616765ba783e10a8ef7b8571b9c9e51facfb
778
py
Python
test/test_model/cprofile_test.py
SupermeLC/PyNeval
2cccfb1af7d97857454e9cbc3515ba75e5d8d4b0
[ "BSD-3-Clause" ]
12
2020-07-18T16:55:23.000Z
2022-03-14T12:26:08.000Z
test/test_model/cprofile_test.py
SupermeLC/PyNeval
2cccfb1af7d97857454e9cbc3515ba75e5d8d4b0
[ "BSD-3-Clause" ]
5
2021-05-31T22:08:51.000Z
2021-08-31T15:42:44.000Z
test/test_model/cprofile_test.py
SupermeLC/PyNeval
2cccfb1af7d97857454e9cbc3515ba75e5d8d4b0
[ "BSD-3-Clause" ]
2
2021-09-24T03:02:27.000Z
2021-11-09T06:21:00.000Z
import cProfile import pstats import os # 性能分析装饰器定义 def do_cprofile(filename): """ Decorator for function profiling. """ def wrapper(func): def profiled_func(*args, **kwargs): # Flag for do profiling or not. DO_PROF = False if DO_PROF: profil...
27.785714
61
0.521851
76
778
5.25
0.513158
0.06015
0.105263
0.100251
0
0
0
0
0
0
0
0
0.394602
778
28
62
27.785714
0.847134
0.131105
0
0.1
0
0
0.010622
0
0
0
0
0
0
1
0.15
false
0
0.15
0
0.45
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
0
0
1
0
f400d61d2c093b253733ba5d9d909f4f48a668af
1,629
py
Python
renku/core/commands/providers/api.py
cyberhck/renku-python
2e52dff9dd627c93764aadb9fd1e91bd190a5de7
[ "Apache-2.0" ]
null
null
null
renku/core/commands/providers/api.py
cyberhck/renku-python
2e52dff9dd627c93764aadb9fd1e91bd190a5de7
[ "Apache-2.0" ]
null
null
null
renku/core/commands/providers/api.py
cyberhck/renku-python
2e52dff9dd627c93764aadb9fd1e91bd190a5de7
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 - Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # Y...
28.578947
75
0.683855
206
1,629
5.373786
0.563107
0.054201
0.108401
0.065041
0.063234
0.063234
0
0
0
0
0
0.006309
0.221608
1,629
56
76
29.089286
0.866719
0.59116
0
0.545455
0
0
0
0
0
0
0
0
0
1
0.272727
false
0.272727
0.045455
0
0.409091
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
1
0
0
0
0
0
2
f4030f6d52f16b8e41c89e74609c247cf9d493ab
864
py
Python
cattr/__init__.py
bluetech/cattrs
be438d5566bd308b584359a9b0011a7bd0006b06
[ "MIT" ]
1
2021-07-07T12:24:58.000Z
2021-07-07T12:24:58.000Z
cattr/__init__.py
bluetech/cattrs
be438d5566bd308b584359a9b0011a7bd0006b06
[ "MIT" ]
null
null
null
cattr/__init__.py
bluetech/cattrs
be438d5566bd308b584359a9b0011a7bd0006b06
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .converters import Converter, UnstructureStrategy __all__ = ('global_converter', 'unstructure', 'structure', 'structure_attrs_fromtuple', 'structure_attrs_fromdict', 'UnstructureStrategy') __author__ = 'Tin Tvrtković' __email__ = 'tinchester@gmail.com' global_conve...
37.565217
76
0.834491
90
864
7.411111
0.277778
0.224888
0.125937
0.104948
0.38081
0.134933
0
0
0
0
0
0.001282
0.097222
864
22
77
39.272727
0.853846
0.024306
0
0
0
0
0.162901
0.058264
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
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
f40395409149c4799e946dbfb2cb47f22353b013
4,531
py
Python
vega/security/run_dask.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/security/run_dask.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/security/run_dask.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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/LICENS...
32.364286
110
0.604282
580
4,531
4.508621
0.27931
0.048184
0.042065
0.036711
0.469981
0.455067
0.416826
0.390057
0.390057
0.390057
0
0.016462
0.262635
4,531
139
111
32.597122
0.766238
0.165306
0
0.446602
0
0
0.286784
0.164794
0
0
0
0
0
1
0.058252
false
0
0.097087
0
0.223301
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
0
0
1
0
f404334cff69f2f2935c67baf019e6df2ad2e301
12,512
py
Python
MISSGANvsStarGAN/core/solver.py
NoaBrazilay/DeepLearningProject
5c44d21069de1fc5fa2687c4121286670be3d773
[ "MIT" ]
2
2021-09-03T11:44:31.000Z
2021-09-22T11:51:47.000Z
MISSGANvsStarGAN/core/solver.py
NoaBrazilay/MISSGAN
5c44d21069de1fc5fa2687c4121286670be3d773
[ "MIT" ]
null
null
null
MISSGANvsStarGAN/core/solver.py
NoaBrazilay/MISSGAN
5c44d21069de1fc5fa2687c4121286670be3d773
[ "MIT" ]
1
2020-10-20T08:06:50.000Z
2020-10-20T08:06:50.000Z
""" StarGAN v2 Copyright (c) 2020-present NAVER Corp. This work is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, US...
40.623377
164
0.629955
1,783
12,512
4.176108
0.174986
0.020682
0.007252
0.010878
0.326887
0.284448
0.22549
0.218775
0.197556
0.164384
0
0.016447
0.261349
12,512
308
165
40.623377
0.789223
0.120844
0
0.185185
0
0
0.029924
0
0
0
0
0
0.018519
1
0.060185
false
0
0.060185
0
0.148148
0.027778
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
0
1
0
f404724df75288d1e7ccb8f451caae2678af6f55
534
py
Python
1. Algorithmic Toolbox/week2_algorithmic_warmup/4_lcm.py
vishweshwartyagi/Data-Structures-and-Algorithms-UCSD
de942b3a0eb2bf56f949f47c297fad713aa81489
[ "MIT" ]
null
null
null
1. Algorithmic Toolbox/week2_algorithmic_warmup/4_lcm.py
vishweshwartyagi/Data-Structures-and-Algorithms-UCSD
de942b3a0eb2bf56f949f47c297fad713aa81489
[ "MIT" ]
null
null
null
1. Algorithmic Toolbox/week2_algorithmic_warmup/4_lcm.py
vishweshwartyagi/Data-Structures-and-Algorithms-UCSD
de942b3a0eb2bf56f949f47c297fad713aa81489
[ "MIT" ]
null
null
null
# Uses python3 import sys def lcm_naive(a, b): for l in range(1, a*b + 1): if l % a == 0 and l % b == 0: return l return a*b def gcd(a, b): if a%b == 0: return b elif b%a == 0: return a if a > b: return gcd(a%b, b) else: return gcd(b%...
14.833333
37
0.456929
93
534
2.516129
0.322581
0.111111
0.064103
0.08547
0
0
0
0
0
0
0
0.021148
0.38015
534
35
38
15.257143
0.685801
0.11236
0
0
0
0
0.017058
0
0
0
0
0
0
1
0.15
false
0
0.05
0.05
0.55
0.05
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
f404f9b14c52ee5b292f41c316a483d68139b651
2,261
py
Python
guessing_game.py
JoviCastillo/TH-Project-1-guessing-game-
efa5c7080b1a484b20655ddb01873dc3edefc415
[ "BSD-2-Clause" ]
null
null
null
guessing_game.py
JoviCastillo/TH-Project-1-guessing-game-
efa5c7080b1a484b20655ddb01873dc3edefc415
[ "BSD-2-Clause" ]
null
null
null
guessing_game.py
JoviCastillo/TH-Project-1-guessing-game-
efa5c7080b1a484b20655ddb01873dc3edefc415
[ "BSD-2-Clause" ]
null
null
null
import random highscore = [] def not_in_range(guess_it): """This is to check that the numbers inputted by the user are in range, and will let the user know. If the numbers are in range then it passes. """ if guess_it < 1: print('I am not thinking of negative numbers!') elif guess_it > 10:...
32.3
88
0.590889
313
2,261
4.15655
0.370607
0.048424
0.029977
0.043812
0.104535
0.05073
0.05073
0.05073
0
0
0
0.011643
0.316232
2,261
69
89
32.768116
0.829884
0.259177
0
0.208333
0
0
0.249538
0
0
0
0
0
0
1
0.0625
false
0.020833
0.020833
0
0.083333
0.25
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
0
1
0
f406ec6db00306ef4d7774bf08e8d323010c32b3
201
py
Python
MAIL_SERVER.py
dastacy/gve_devnet_unity_unread_voicemail_notifier
445177d1107e465d90971d3d6ebb3249c5ed7b29
[ "RSA-MD" ]
null
null
null
MAIL_SERVER.py
dastacy/gve_devnet_unity_unread_voicemail_notifier
445177d1107e465d90971d3d6ebb3249c5ed7b29
[ "RSA-MD" ]
null
null
null
MAIL_SERVER.py
dastacy/gve_devnet_unity_unread_voicemail_notifier
445177d1107e465d90971d3d6ebb3249c5ed7b29
[ "RSA-MD" ]
1
2021-06-09T14:09:01.000Z
2021-06-09T14:09:01.000Z
#!/usr/bin/env python3 USER = r'server\user' PASSWORD = 'server_password' HOSTNAME = 'hostname.goes.here.com' DOMAIN = 'domain.goes.here.com' FROM_ADDR = 'emailyouwanttosendmessagesfrom@something.com'
28.714286
58
0.771144
26
201
5.884615
0.653846
0.104575
0.143791
0
0
0
0
0
0
0
0
0.005435
0.084577
201
6
59
33.5
0.826087
0.104478
0
0
0
0
0.625698
0.368715
0
0
0
0
0
1
0
false
0.2
0
0
0
0
1
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
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
f407b452be28a7b2d21cb5bd0c9039e2720ed8e1
1,956
py
Python
src/testrsscast/rss/ytconverter_example.py
anetczuk/rsscast
8649d1143679afcabbe19e5499f104fa1325bff1
[ "MIT" ]
null
null
null
src/testrsscast/rss/ytconverter_example.py
anetczuk/rsscast
8649d1143679afcabbe19e5499f104fa1325bff1
[ "MIT" ]
null
null
null
src/testrsscast/rss/ytconverter_example.py
anetczuk/rsscast
8649d1143679afcabbe19e5499f104fa1325bff1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # # MIT License # # Copyright (c) 2021 Arkadiusz Netczuk <dev.arnet@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limi...
33.724138
94
0.762781
283
1,956
5.19788
0.60424
0.059823
0.017675
0
0
0
0
0
0
0
0
0.006765
0.168712
1,956
57
95
34.315789
0.897909
0.714213
0
0
0
0
0.195817
0
0
0
0
0
0
1
0
false
0.066667
0.4
0
0.4
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
f407eb6974ae23f62280d5ff068afc9b35ea9eeb
984
py
Python
cli.py
palazzem/elmo-server
b2e02d600a431dc1db31090f0d8dd09a8d586373
[ "BSD-3-Clause" ]
null
null
null
cli.py
palazzem/elmo-server
b2e02d600a431dc1db31090f0d8dd09a8d586373
[ "BSD-3-Clause" ]
8
2019-05-20T19:26:01.000Z
2019-05-26T13:02:45.000Z
cli.py
palazzem/elmo-server
b2e02d600a431dc1db31090f0d8dd09a8d586373
[ "BSD-3-Clause" ]
null
null
null
import click APP_YAML_TEMPLATE = """runtime: python37 env_variables: ELMO_BASE_URL: '{BASE_URL}' ELMO_VENDOR: '{VENDOR}' handlers: - url: /.* script: auto secure: always redirect_http_response_code: 301 """ @click.command() @click.argument("base_url") @click.argument("vendor") def generate_app_yaml(base_u...
25.230769
76
0.704268
136
984
4.823529
0.470588
0.117378
0.068598
0.042683
0.085366
0
0
0
0
0
0
0.006258
0.188008
984
38
77
25.894737
0.814768
0.275407
0
0
0
0
0.458944
0.041056
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.086957
0.130435
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
0
1
0