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
132ae9e6aa78637b14f0471d166be94c74264d00
2,329
py
Python
python/tempdir.py
clslgrnc/moonlight
0bb2538103ef13ca58895af329474dee1e0235ac
[ "Apache-2.0" ]
null
null
null
python/tempdir.py
clslgrnc/moonlight
0bb2538103ef13ca58895af329474dee1e0235ac
[ "Apache-2.0" ]
null
null
null
python/tempdir.py
clslgrnc/moonlight
0bb2538103ef13ca58895af329474dee1e0235ac
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Australian National University # # This software is the result of a joint project between the Defence Science # and Technology Group and the Australian National University. It was enabled # as part of a Next Generation Technology Fund grant: # see https://www.dst.defence.gov.au/nextgentechfund # # ...
31.90411
78
0.657793
302
2,329
4.940397
0.52649
0.040214
0.02815
0.041555
0
0
0
0
0
0
0
0.013341
0.259768
2,329
72
79
32.347222
0.852088
0.50365
0
0
0
0
0.066243
0
0
0
0
0
0
1
0.193548
false
0
0.16129
0.064516
0.516129
0.064516
0
0
0
null
0
0
0
0
0
0
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
132bba95d4aeb5cc8be99ce2e28f39e240976075
281
py
Python
Exercicios/Exercicio032.py
RicardoMart922/estudo_Python
cb595c2a5e5aee568b6afa71b3ed9dd9cb7eef72
[ "MIT" ]
null
null
null
Exercicios/Exercicio032.py
RicardoMart922/estudo_Python
cb595c2a5e5aee568b6afa71b3ed9dd9cb7eef72
[ "MIT" ]
null
null
null
Exercicios/Exercicio032.py
RicardoMart922/estudo_Python
cb595c2a5e5aee568b6afa71b3ed9dd9cb7eef72
[ "MIT" ]
null
null
null
# Crie um programa que leia um número inteiro e mostre na tela se ele é PAR ou ÍMPAR. numero = int(input('Digite um número: ')) if numero % 2 == 0: print('O número {} é \033[1;34mPar\033[m.'.format(numero)) else: print('O número {} é \033[1;34mÍmpar\033[m.'.format(numero))
46.833333
85
0.66548
51
281
3.666667
0.647059
0.085562
0.128342
0.139037
0.181818
0.181818
0
0
0
0
0
0.086207
0.174377
281
6
86
46.833333
0.719828
0.295374
0
0
0
0
0.446701
0.111675
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
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
132e85ddeec9119c03a11e030c3e6f09c32735c4
419
py
Python
common/security-features/subresource/empty.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
8
2019-04-09T21:13:05.000Z
2021-11-23T17:25:18.000Z
common/security-features/subresource/empty.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
21
2021-03-31T19:48:22.000Z
2022-03-12T00:24:53.000Z
common/security-features/subresource/empty.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
11
2019-04-12T01:20:16.000Z
2021-11-23T17:25:02.000Z
import os, sys sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) import subresource def generate_payload(server_data): return '' def main(request, response): subresource.respond(request, response, payload_generator = generate_payload, ...
27.933333
62
0.591885
42
419
5.619048
0.690476
0.050847
0
0
0
0
0
0
0
0
0
0.003484
0.315036
419
14
63
29.928571
0.818815
0
0
0
1
0
0.026316
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0.090909
0.454545
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
1333e80fbb9ceb7dccd4733e27522ba472c066c3
4,548
py
Python
Hopfield.py
anamikasharaf/sudoku-solver
5f3ecf1c8d2db786bde026b4125db78e0c99fdba
[ "MIT" ]
1
2019-03-21T19:35:01.000Z
2019-03-21T19:35:01.000Z
Hopfield.py
anamikasharaf/Sudoku-Solver
5f3ecf1c8d2db786bde026b4125db78e0c99fdba
[ "MIT" ]
null
null
null
Hopfield.py
anamikasharaf/Sudoku-Solver
5f3ecf1c8d2db786bde026b4125db78e0c99fdba
[ "MIT" ]
null
null
null
import numpy as np class Hopfield_Neuron: input=0.0 output=0.0 energy=0.0 prev_energy=0.0 alpha=1.0 # alpha is put to 1, because this neural network linearly transfers the energy to the output i=0 j=0 k=0 #constructor to initialize values for each neuron def __init__(self, i, j, k, ce...
34.195489
122
0.590589
758
4,548
3.406332
0.17942
0.054222
0.055771
0.055771
0.381875
0.314098
0.268009
0.220759
0.189001
0.183579
0
0.050493
0.28584
4,548
132
123
34.454545
0.744458
0.25
0
0.154639
0
0
0.006144
0
0
0
0
0
0
0
null
null
0
0.010309
null
null
0.010309
0
0
0
null
0
0
0
0
0
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
13352d79beddfc9b6ea26254866a9f944172b41b
844
py
Python
Salami/Maths.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
15
2020-04-17T12:02:14.000Z
2022-03-16T03:01:34.000Z
Salami/Maths.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
9
2020-04-25T01:57:16.000Z
2020-04-29T11:42:34.000Z
Salami/Maths.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
55
2020-04-17T12:01:11.000Z
2021-12-28T10:14:02.000Z
def lerp(a, b, amount): return (amount * a) + ((1 - amount) * b) def smoothstep(edge0, edge1, amount): x = clamp((amount - edge0) / (edge1 - edge0), 0.0, 1.0) return x * x * (3 - 2 * x) def smootherstep(edge0, edge1, amount): x = clamp((amount - edge0) / (edge1 - edge0), 0.0, 1.0) return x ...
21.641026
59
0.526066
129
844
3.372093
0.302326
0.114943
0.110345
0.117241
0.37931
0.37931
0.252874
0.252874
0.252874
0.252874
0
0.090753
0.308057
844
39
60
21.641026
0.65411
0
0
0.071429
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0.071429
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1339c5c07e8f0119008b17aec2f34b88dcfccd5d
263
py
Python
mysql/common.py
databps/BDA
23bb819136e9360d5b0d85085dc30201f7d820fb
[ "MIT" ]
1
2018-10-12T08:48:51.000Z
2018-10-12T08:48:51.000Z
mysql/common.py
databps/BDA
23bb819136e9360d5b0d85085dc30201f7d820fb
[ "MIT" ]
null
null
null
mysql/common.py
databps/BDA
23bb819136e9360d5b0d85085dc30201f7d820fb
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- DEFAULT_HOST = '127.0.01' DEFAULT_PORT = 3306 DEFAULT_USER_NAME = 'root' DEFAULT_USER_PASS = 'root123' DEFAULT_USER_LIST = 'accounts/user.list' DEFAULT_WORD_LIST = 'accounts/word.list' # text color in console
23.909091
40
0.703422
38
263
4.605263
0.657895
0.188571
0
0
0
0
0
0
0
0
0
0.063063
0.155894
263
11
41
23.909091
0.725225
0.228137
0
0
0
0
0.273632
0
0
0
0
0
0
1
0
false
0.166667
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
1
0
0
0
0
0
1
133a85d5afe77605b3d78a20a073fb23c6c25ebe
1,085
py
Python
mayan/apps/statistics/tests/test_views.py
edsonbin/maxacali
1fd3ac99543788f77f1a7795981179b2cc8c4421
[ "Apache-2.0" ]
null
null
null
mayan/apps/statistics/tests/test_views.py
edsonbin/maxacali
1fd3ac99543788f77f1a7795981179b2cc8c4421
[ "Apache-2.0" ]
null
null
null
mayan/apps/statistics/tests/test_views.py
edsonbin/maxacali
1fd3ac99543788f77f1a7795981179b2cc8c4421
[ "Apache-2.0" ]
2
2020-02-24T21:02:31.000Z
2021-01-05T23:52:01.000Z
from __future__ import unicode_literals from common.tests.test_views import GenericViewTestCase from user_management.tests.literals import ( TEST_USER_PASSWORD, TEST_USER_USERNAME ) from ..classes import Statistic from ..permissions import permission_statistics_view class StatisticsViewTestCase(GenericViewTest...
29.324324
79
0.742857
122
1,085
6.278689
0.344262
0.062663
0.062663
0.057441
0.556136
0.488251
0.488251
0.488251
0.488251
0.488251
0
0.008969
0.17788
1,085
36
80
30.138889
0.849776
0
0
0.347826
0
0
0.04977
0.04977
0
0
0
0
0.086957
1
0.086957
false
0.130435
0.217391
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
133aa86e7487c06d6507aa8286e720e3b015a320
5,027
py
Python
cloud2015-1/plz77-basic/plz77.py
paurisg/U
92bab42792679840363068da04c708f3ef355701
[ "MIT" ]
null
null
null
cloud2015-1/plz77-basic/plz77.py
paurisg/U
92bab42792679840363068da04c708f3ef355701
[ "MIT" ]
null
null
null
cloud2015-1/plz77-basic/plz77.py
paurisg/U
92bab42792679840363068da04c708f3ef355701
[ "MIT" ]
null
null
null
import pp, sys, os, time _input = "" _output = "" sep = 8 results = {} #a callback to get results from each job execution def aggregate_results(result): results[result[0]] = result[1] class LZ77Compressor: MAX_WINDOW_SIZE = 400 MAX_SEP = 4 def __init__(self, window_size=20): self.window_size = min(window_si...
27.773481
172
0.689278
735
5,027
4.582313
0.272109
0.053444
0.022268
0.013658
0.13361
0.069477
0.069477
0.069477
0.045131
0.045131
0
0.017971
0.191963
5,027
180
173
27.927778
0.811177
0.047145
0
0.123967
0
0
0.106544
0
0
0
0.000709
0
0
0
null
null
0
0.008264
null
null
0.07438
0
0
0
null
0
0
0
0
0
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
134502240d3799a0ec3e02c0690b95fad0e51c47
8,400
py
Python
lingvo/jax/asserts_test.py
LaudateCorpus1/lingvo
5c69d8afbffca222cf9d357d54e0eb4d09e92764
[ "Apache-2.0" ]
null
null
null
lingvo/jax/asserts_test.py
LaudateCorpus1/lingvo
5c69d8afbffca222cf9d357d54e0eb4d09e92764
[ "Apache-2.0" ]
null
null
null
lingvo/jax/asserts_test.py
LaudateCorpus1/lingvo
5c69d8afbffca222cf9d357d54e0eb4d09e92764
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
37.004405
81
0.627024
1,064
8,400
4.816729
0.140977
0.067902
0.107317
0.150244
0.733463
0.714927
0.692878
0.630049
0.573659
0.529366
0
0.043384
0.234405
8,400
226
82
37.168142
0.753538
0.073571
0
0.587912
0
0
0.174031
0.028855
0
0
0
0
0.318681
1
0.131868
false
0
0.016484
0
0.153846
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
134a39c4c0df1ece9bda0ee0c1e9562b9c82d986
504
py
Python
setup.py
the-gigi/dominion-grpc-proto
bc3f7a93c7985476864aa49359dbe2e14afad271
[ "MIT" ]
null
null
null
setup.py
the-gigi/dominion-grpc-proto
bc3f7a93c7985476864aa49359dbe2e14afad271
[ "MIT" ]
null
null
null
setup.py
the-gigi/dominion-grpc-proto
bc3f7a93c7985476864aa49359dbe2e14afad271
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='dominion-grpc-proto', version='0.3.0', url='https://github.com/the-gigi/dominion-grpc-proto', license='MIT', author='Gigi Sayfan', author_email='the.gigi@gmail.com', description='gRPC protobuf definitions + generated Python code', packa...
33.6
70
0.670635
63
504
5.222222
0.698413
0.109422
0.155015
0
0
0
0
0
0
0
0
0.012077
0.178571
504
14
71
36
0.782609
0
0
0
0
0
0.392857
0
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
135a024f9f041a604cec5385b4d068d268eb9dd2
17,630
py
Python
tests/util/test_file_parser.py
Keendata/impala
b25e250d321f329b98e017c648df75d052497963
[ "Apache-2.0" ]
746
2017-12-02T06:02:05.000Z
2022-03-29T06:59:03.000Z
tests/util/test_file_parser.py
xwzbupt/impala
97dda2b27da99367f4d07699aa046b16cda16dd4
[ "Apache-2.0" ]
9
2018-01-30T16:16:22.000Z
2021-08-31T00:13:28.000Z
tests/util/test_file_parser.py
xwzbupt/impala
97dda2b27da99367f4d07699aa046b16cda16dd4
[ "Apache-2.0" ]
363
2017-12-10T01:08:17.000Z
2022-03-26T05:25:00.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
44.860051
90
0.699773
2,408
17,630
4.940199
0.19186
0.031439
0.01572
0.010087
0.12189
0.08196
0.058675
0.032784
0.024378
0.010087
0
0.003003
0.20675
17,630
392
91
44.97449
0.847622
0.194441
0
0.088106
0
0
0.136113
0.006032
0
0
0
0.005102
0.013216
0
null
null
0
0.035242
null
null
0.008811
0
0
0
null
0
0
0
0
0
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
135d755357d5847080ce10622e5c582bb9368819
3,541
py
Python
apps/PPTcalc/qtd/ui_mywidget.py
rboman/progs
c60b4e0487d01ccd007bcba79d1548ebe1685655
[ "Apache-2.0" ]
2
2021-12-12T13:26:06.000Z
2022-03-03T16:14:53.000Z
apps/PPTcalc/qtd/ui_mywidget.py
rboman/progs
c60b4e0487d01ccd007bcba79d1548ebe1685655
[ "Apache-2.0" ]
5
2019-03-01T07:08:46.000Z
2019-04-28T07:32:42.000Z
apps/PPTcalc/qtd/ui_mywidget.py
rboman/progs
c60b4e0487d01ccd007bcba79d1548ebe1685655
[ "Apache-2.0" ]
2
2017-12-13T13:13:52.000Z
2019-03-13T20:08:15.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mywidget.ui' # # Created by: PyQt5 UI code generator 5.8.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MyWidget: def setupUi(self, MyWidget): MyWidget.setObjectNa...
47.213333
84
0.682858
371
3,541
6.477089
0.256065
0.099043
0.053267
0.067416
0.133999
0.02913
0.02913
0
0
0
0
0.035155
0.188647
3,541
74
85
47.851351
0.801253
0.051116
0
0.048387
1
0
0.105012
0
0
0
0
0
0
1
0.032258
false
0
0.016129
0
0.064516
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
136425b3cd045d62e86081a0e3816f5ce9e5f219
1,272
py
Python
src/tensorneko/layer/noise.py
ControlNet/tensorneko
70dfb2f6395e1703dbdf5d5adcfed7b1334efb8f
[ "MIT" ]
9
2021-05-23T17:38:09.000Z
2021-12-30T19:12:12.000Z
src/tensorneko/layer/noise.py
ControlNet/tensorneko
70dfb2f6395e1703dbdf5d5adcfed7b1334efb8f
[ "MIT" ]
null
null
null
src/tensorneko/layer/noise.py
ControlNet/tensorneko
70dfb2f6395e1703dbdf5d5adcfed7b1334efb8f
[ "MIT" ]
null
null
null
from typing import Union import torch from .. import NekoModule from ..util import Device class GaussianNoise(NekoModule): """ The layer for adding a Gaussian noise. Get inspired from YannDubs1 (2020). Args: sigma (``float``, optional): relative standard deviation used to generate the ...
35.333333
102
0.641509
170
1,272
4.735294
0.511765
0.044721
0.019876
0.054658
0.101863
0.101863
0.101863
0.101863
0
0
0
0.021008
0.251572
1,272
35
103
36.342857
0.82458
0.525943
0
0
0
0
0.00726
0
0
0
0
0
0
1
0.133333
false
0
0.266667
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
136663099577ff9f09b896ab0ca39a409cc867d9
2,894
py
Python
examples/planar_hand/planar_hand_worker.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
6
2021-11-20T19:05:06.000Z
2022-01-31T00:10:41.000Z
examples/planar_hand/planar_hand_worker.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
10
2021-07-24T19:50:36.000Z
2021-11-20T19:06:40.000Z
examples/planar_hand/planar_hand_worker.py
lujieyang/irs_lqr
bc9cade6a3bb2fa2d76bdd5fe453030a7b28700f
[ "MIT" ]
1
2021-12-15T22:09:31.000Z
2021-12-15T22:09:31.000Z
import multiprocessing import time from qsim.simulator import QuasistaticSimParameters from qsim.system import cpp_params_from_py_params try: from irs_lqr.quasistatic_dynamics import * from zmq_parallel_cmp.array_io import * except ImportError: from irs_lqr.irs_lqr.quasistatic_dynamics import * from i...
30.145833
77
0.676918
378
2,894
4.830688
0.386243
0.03943
0.03943
0.029573
0.269441
0.224535
0.156627
0.156627
0.069003
0.069003
0
0.010459
0.240152
2,894
95
78
30.463158
0.819918
0.072218
0
0.086957
0
0
0.029511
0
0
0
0
0.010526
0.014493
1
0.014493
false
0
0.144928
0
0.15942
0.028986
0
0
0
null
0
0
0
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
136886d6735932b32d34a6977e9ed0a84fe265fb
1,786
py
Python
models/recipes.py
GDGSNF/ChefAPI
bede60dc392dac47982b324d3a4f2f430ef0026f
[ "MIT" ]
11
2021-06-26T02:06:38.000Z
2021-08-06T01:34:10.000Z
models/recipes.py
yezz123/ChefAPI
bede60dc392dac47982b324d3a4f2f430ef0026f
[ "MIT" ]
15
2021-09-05T14:59:01.000Z
2021-09-06T08:43:31.000Z
models/recipes.py
GDGSNF/ChefAPI
bede60dc392dac47982b324d3a4f2f430ef0026f
[ "MIT" ]
2
2021-06-26T02:13:03.000Z
2021-07-05T01:28:00.000Z
import datetime from typing import TYPE_CHECKING from sqlalchemy import (Boolean, Column, DateTime, ForeignKey, Integer, String, Text) from sqlalchemy.sql import func from sql...
35.72
69
0.676932
198
1,786
6
0.252525
0.047138
0.088384
0.070707
0.468855
0.411616
0.411616
0.352694
0.352694
0.352694
0
0
0.215006
1,786
49
70
36.44898
0.847361
0
0
0.3
0
0
0.067749
0
0
0
0
0
0
1
0
false
0
0.175
0
0.825
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
136902a5a312e24b48cbaf4b092cae54a032da4b
1,267
py
Python
rl/environment/mdp/GridMove.py
AliKhalili/girdword
3f31a961847599b84a11f76846d2d361caeb7e5b
[ "MIT" ]
null
null
null
rl/environment/mdp/GridMove.py
AliKhalili/girdword
3f31a961847599b84a11f76846d2d361caeb7e5b
[ "MIT" ]
null
null
null
rl/environment/mdp/GridMove.py
AliKhalili/girdword
3f31a961847599b84a11f76846d2d361caeb7e5b
[ "MIT" ]
null
null
null
import numpy as np class GridMove: def __init__(self, grid): self._Grid = grid self._height = grid.shape[0] self._width = grid.shape[1] def _in_bound(self, x, y): if x < 0 or x >= self._height: return False if y < 0 or y >= self._width: return F...
34.243243
86
0.524862
193
1,267
3.316062
0.233161
0.05625
0.153125
0.182813
0.3125
0.3125
0.3125
0.3125
0.3125
0
0
0.018913
0.332281
1,267
36
87
35.194444
0.737589
0
0
0.066667
0
0
0.014996
0
0
0
0
0
0
1
0.133333
false
0
0.033333
0
0.366667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
136cfde23e5d028491b24a82e157eb00d0062746
8,229
py
Python
src/tcp/object_detection/init_labeler.py
Iszhanghailun/Traffic_Camera_Pipeline
4dbd0e993087d46066a780f5345c125f47b28881
[ "MIT" ]
5
2019-04-04T17:30:41.000Z
2021-12-06T15:27:43.000Z
src/tcp/object_detection/init_labeler.py
Iszhanghailun/Traffic_Camera_Pipeline
4dbd0e993087d46066a780f5345c125f47b28881
[ "MIT" ]
2
2018-02-07T06:22:08.000Z
2020-04-20T06:54:52.000Z
src/tcp/object_detection/init_labeler.py
Iszhanghailun/Traffic_Camera_Pipeline
4dbd0e993087d46066a780f5345c125f47b28881
[ "MIT" ]
7
2018-02-06T23:23:29.000Z
2020-09-20T14:48:22.000Z
import os import pickle import cv2 import numpy as np import matplotlib import matplotlib.pyplot as plt import matplotlib.image as mpimg import matplotlib.patches as patches """ AX is a matplotlib axis object. BBOX is an array like object: [xmin, ymin, xmax, ymax]. IM_SIZE is image (width, height). """ def draw_bbox...
38.097222
122
0.590837
1,102
8,229
4.199637
0.210526
0.053155
0.071305
0.049914
0.270311
0.177615
0.134183
0.126188
0.100691
0.100691
0
0.014783
0.301252
8,229
216
123
38.097222
0.790087
0.008507
0
0.1375
0
0
0.042701
0.003274
0
0
0
0
0.0125
0
null
null
0
0.05
null
null
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
1
0
0
0
0
0
0
0
0
1
136d74b6c5e37db65f56e4b42bbab1d605597a3d
1,613
py
Python
docstr_coverage/visitor.py
cthoyt/docstr_coverage
906e023de3242cebf909b079e8d01e17077a2d4b
[ "MIT" ]
null
null
null
docstr_coverage/visitor.py
cthoyt/docstr_coverage
906e023de3242cebf909b079e8d01e17077a2d4b
[ "MIT" ]
null
null
null
docstr_coverage/visitor.py
cthoyt/docstr_coverage
906e023de3242cebf909b079e8d01e17077a2d4b
[ "MIT" ]
null
null
null
"""This module handles traversing abstract syntax trees to check for docstrings""" from ast import NodeVisitor, get_docstring, FunctionDef, ClassDef, Module class DocStringCoverageVisitor(NodeVisitor): """Class to visit nodes, determine whether a node requires a docstring, and to check for the existence of a ...
40.325
87
0.67328
199
1,613
5.301508
0.386935
0.056872
0.060664
0.068246
0.185782
0.185782
0.185782
0.185782
0.104265
0.104265
0
0.003187
0.221947
1,613
39
88
41.358974
0.83745
0.353379
0
0.272727
0
0
0
0
0
0
0
0
0
1
0.227273
false
0
0.045455
0
0.318182
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
137cd989f0c5e41bb704956d13079a24e10d8439
48,583
py
Python
dist-packages/samba/netcmd/dns.py
Jianwei-Wang/python2.7_lib
911b8e81512e5ac5f13e669ab46f7693ed897378
[ "PSF-2.0" ]
null
null
null
dist-packages/samba/netcmd/dns.py
Jianwei-Wang/python2.7_lib
911b8e81512e5ac5f13e669ab46f7693ed897378
[ "PSF-2.0" ]
null
null
null
dist-packages/samba/netcmd/dns.py
Jianwei-Wang/python2.7_lib
911b8e81512e5ac5f13e669ab46f7693ed897378
[ "PSF-2.0" ]
null
null
null
# DNS management tool # # Copyright (C) Amitay Isaacs 2011-2012 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Th...
40.418469
116
0.606323
5,463
48,583
5.163646
0.095735
0.035414
0.018327
0.017477
0.540714
0.479351
0.416853
0.34847
0.325215
0.287887
0
0.006092
0.287076
48,583
1,201
117
40.452123
0.80835
0.01941
0
0.332251
0
0.006494
0.169491
0.024389
0
0
0.000173
0
0
0
null
null
0
0.006494
null
null
0.014069
0
0
0
null
0
0
0
0
0
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
137d073efc2bb466e7955fa291299151e349445a
2,543
py
Python
badash-api/auth.py
swilcox/badash
da4de694ba7c9faed4425f889ccd37d7813c8b7c
[ "MIT" ]
3
2017-11-15T17:29:09.000Z
2018-03-23T12:51:47.000Z
badash-api/auth.py
swilcox/badash
da4de694ba7c9faed4425f889ccd37d7813c8b7c
[ "MIT" ]
13
2017-11-02T16:24:58.000Z
2018-05-26T19:19:56.000Z
badash-api/auth.py
swilcox/badash
da4de694ba7c9faed4425f889ccd37d7813c8b7c
[ "MIT" ]
null
null
null
"""auth.py for authentication related functions""" import hug from jose import jwt import requests from models import ApiKey from settings import settings def _get_rsa_key(kid): """get known good jwks""" # TODO: cache this!!! rsa_key = {} response = requests.get(settings.JWKS_URL) if response.stat...
27.344086
83
0.602045
318
2,543
4.613208
0.289308
0.08589
0.02454
0.02454
0.02454
0
0
0
0
0
0
0.003363
0.298466
2,543
92
84
27.641304
0.818946
0.122297
0
0.109375
0
0
0.027372
0
0
0
0
0.01087
0
1
0.09375
false
0
0.078125
0
0.375
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
1384795d8815b08d41efa3508ab34d632a91adb4
2,131
py
Python
applications/pytorch/cnns/train/restore.py
kew96/GraphcoreExamples
22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb
[ "MIT" ]
null
null
null
applications/pytorch/cnns/train/restore.py
kew96/GraphcoreExamples
22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb
[ "MIT" ]
null
null
null
applications/pytorch/cnns/train/restore.py
kew96/GraphcoreExamples
22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Graphcore Ltd. All rights reserved. import argparse import torch import poptorch from train import train, convert_to_ipu_model, get_validation_function from validate import validate_checkpoints import os import logging from train import create_model_opts, get_optimizer, get_lr_scheduler import sys ...
48.431818
179
0.769592
285
2,131
5.498246
0.340351
0.034461
0.019145
0.021698
0
0
0
0
0
0
0
0.003219
0.125293
2,131
43
180
49.55814
0.837446
0.02534
0
0
0
0.027027
0.164819
0.045783
0
0
0
0
0
1
0
false
0
0.324324
0
0.324324
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1385dea5a899790d888fd1152978f7ffe69d4533
1,191
py
Python
volunteercore/__init__.py
stevenabadie/volunteercore
b797354aa52fbcfdca39925e6729263762a679ce
[ "MIT" ]
2
2019-11-08T04:35:34.000Z
2020-08-01T19:39:53.000Z
volunteercore/__init__.py
stevenabadie/volunteercore
b797354aa52fbcfdca39925e6729263762a679ce
[ "MIT" ]
95
2018-09-29T22:50:51.000Z
2019-05-27T16:37:46.000Z
volunteercore/__init__.py
stevenabadie/volunteercore
b797354aa52fbcfdca39925e6729263762a679ce
[ "MIT" ]
4
2019-05-27T17:49:48.000Z
2020-01-10T00:47:33.000Z
import os from flask import Flask, render_template from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_migrate import Migrate from config import Config import flask_whooshalchemyplus db = SQLAlchemy() migrate = Migrate() login_manager = LoginManager() login_manager.login_view = 'api...
29.775
64
0.761545
163
1,191
5.319018
0.257669
0.063437
0.046136
0.101499
0
0
0
0
0
0
0
0
0.15869
1,191
39
65
30.538462
0.865269
0.015953
0
0
0
0
0.036752
0
0
0
0
0
0
1
0.060606
false
0
0.333333
0.030303
0.454545
0.121212
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
13887c3cd8537236af56236a6358b0cf3dc73d68
839
py
Python
jose/algorithms/mac.py
bwhmather/jose
8bf1f08afd5b4bd21f20bf86f3474afb671d8992
[ "BSD-3-Clause" ]
null
null
null
jose/algorithms/mac.py
bwhmather/jose
8bf1f08afd5b4bd21f20bf86f3474afb671d8992
[ "BSD-3-Clause" ]
null
null
null
jose/algorithms/mac.py
bwhmather/jose
8bf1f08afd5b4bd21f20bf86f3474afb671d8992
[ "BSD-3-Clause" ]
null
null
null
import logging logger = logging.getLogger(__name__) from Crypto.Hash import HMAC, SHA256, SHA384, SHA512 from jose.utils import const_compare class HMAC_Base(object): def __init__(self, key): self.key = key def sign(self, text): hmac = HMAC.new(self.key, digestmod=self.mod) hmac.upd...
17.122449
53
0.636472
110
839
4.681818
0.381818
0.062136
0.064078
0.058252
0.186408
0.186408
0.186408
0.186408
0.186408
0.186408
0
0.072
0.255066
839
48
54
17.479167
0.752
0
0
0.133333
0
0
0.017878
0
0
0
0
0
0
1
0.133333
false
0
0.1
0.033333
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1389c32550e29a2394be303fec1565da38da6981
2,188
py
Python
src/scrapper/scrapper.py
zebrajr/imdbscrapper
29881deca5253e50f267bc4d7728627f781452fc
[ "MIT" ]
null
null
null
src/scrapper/scrapper.py
zebrajr/imdbscrapper
29881deca5253e50f267bc4d7728627f781452fc
[ "MIT" ]
4
2021-07-30T15:19:36.000Z
2021-08-18T13:07:45.000Z
src/scrapper/scrapper.py
zebrajr/imdbscrapper
29881deca5253e50f267bc4d7728627f781452fc
[ "MIT" ]
1
2021-05-02T12:52:54.000Z
2021-05-02T12:52:54.000Z
from time import sleep from multiprocessing import Process import os import time import datetime import csv import logging import rsc.functions as scrapper import rsc.helper as helper def main(): helper.cls() #imdbscrapper(903747,903733) remDuplicates = int(os.getenv('removeDuplicates', 0)) ...
37.724138
142
0.637112
241
2,188
5.742739
0.431535
0.018064
0.03974
0.021676
0.069364
0
0
0
0
0
0
0.021823
0.287934
2,188
57
143
38.385965
0.866496
0.292962
0
0.055556
0
0
0.068493
0
0
0
0
0.017544
0
1
0.027778
false
0
0.25
0
0.277778
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
138b578b978ce726a8f0bca71a6f21804ad9cbd7
721
py
Python
marco/portal/data_gaps/models.py
Ecotrust/marco-portal2
13bb1b444c7605e1de3c88313d36abc1f463d1f5
[ "0BSD" ]
4
2016-09-24T00:57:45.000Z
2019-07-28T23:35:15.000Z
marco/portal/data_gaps/models.py
MidAtlanticPortal/marco-portal2
b47e7bfa171e98a6cf499b2d411fc743caae91c2
[ "0BSD" ]
146
2016-09-27T23:16:52.000Z
2022-03-09T16:55:32.000Z
marco/portal/data_gaps/models.py
Ecotrust/marco-portal2
13bb1b444c7605e1de3c88313d36abc1f463d1f5
[ "0BSD" ]
1
2019-07-03T23:42:05.000Z
2019-07-03T23:42:05.000Z
from django.db import models from wagtail.wagtailadmin.edit_handlers import FieldPanel from wagtail.wagtailsearch import index from portal.base.models import PageBase,DetailPageBase class DataGaps(PageBase): subpage_types = ['DataGap'] def get_detail_children(self): return DataGap.objects.child_of(s...
25.75
57
0.726768
78
721
6.525641
0.589744
0.058939
0
0
0
0
0
0
0
0
0
0.001689
0.178918
721
27
58
26.703704
0.858108
0
0
0
0
0
0.073509
0
0
0
0
0
0
1
0.052632
false
0
0.210526
0.052632
0.684211
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
138d7bc4b0520e3a2db37c0f407ede225496a386
388
py
Python
Django/ballon/migrations/0002_auto_20180827_2341.py
ballon3/GRAD
c630e32272fe34ead590c04d8360169e02be87f1
[ "MIT" ]
null
null
null
Django/ballon/migrations/0002_auto_20180827_2341.py
ballon3/GRAD
c630e32272fe34ead590c04d8360169e02be87f1
[ "MIT" ]
null
null
null
Django/ballon/migrations/0002_auto_20180827_2341.py
ballon3/GRAD
c630e32272fe34ead590c04d8360169e02be87f1
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-28 06:41 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('ballon', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='resume', name='category', ), mi...
18.47619
45
0.556701
36
388
5.944444
0.777778
0.11215
0
0
0
0
0
0
0
0
0
0.069231
0.329897
388
20
46
19.4
0.753846
0.110825
0
0.142857
1
0
0.116618
0
0
0
0
0
0
1
0
false
0
0.071429
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
138f5f5bc0181f1235dbc416e2d0fd75adb044d8
227
py
Python
scripts/variables.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
null
null
null
scripts/variables.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
3
2022-02-10T11:47:58.000Z
2022-02-23T18:50:24.000Z
scripts/variables.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
null
null
null
"""Contains all variable for custom scripts""" ENVS = { "staging": { "app": "sparte-staging", "region": "osc-fr1", }, "prod": { "app": "sparte", "region": "osc-secnum-fr1", }, }
17.461538
46
0.462555
21
227
5
0.714286
0.171429
0
0
0
0
0
0
0
0
0
0.012987
0.321586
227
12
47
18.916667
0.668831
0.176211
0
0
0
0
0.38674
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
138fa6ec8c630c597d875a9b513d5b93048f43b1
36,791
py
Python
build/PureCloudPlatformClientV2/models/user_me.py
cjohnson-ctl/platform-client-sdk-python
38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100
[ "MIT" ]
10
2019-02-22T00:27:08.000Z
2021-09-12T23:23:44.000Z
libs/PureCloudPlatformClientV2/models/user_me.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
5
2018-06-07T08:32:00.000Z
2021-07-28T17:37:26.000Z
libs/PureCloudPlatformClientV2/models/user_me.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
6
2020-04-09T17:43:07.000Z
2022-02-17T08:48:05.000Z
# coding: utf-8 """ Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
26.602314
174
0.580223
3,862
36,791
5.391248
0.080269
0.057634
0.112963
0.040008
0.510446
0.369099
0.315595
0.250372
0.229096
0.214303
0
0.002058
0.339567
36,791
1,382
175
26.621563
0.854844
0.405018
0
0.109054
0
0
0.124667
0.010374
0
0
0
0
0
1
0.216049
false
0
0.010288
0
0.341564
0.002058
0
0
0
null
0
0
0
0
0
0
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
13901066087e3c1465d7f51ca6d117bb169113ce
20,605
py
Python
src/ploomber/util/default.py
lgfunderburk/ploomber
b631a1b21da64bb7b9525db1c29c32ee3c0e48b4
[ "Apache-2.0" ]
2,141
2020-02-14T02:34:34.000Z
2022-03-31T22:43:20.000Z
src/ploomber/util/default.py
lgfunderburk/ploomber
b631a1b21da64bb7b9525db1c29c32ee3c0e48b4
[ "Apache-2.0" ]
660
2020-02-06T16:15:57.000Z
2022-03-31T22:55:01.000Z
src/ploomber/util/default.py
lgfunderburk/ploomber
b631a1b21da64bb7b9525db1c29c32ee3c0e48b4
[ "Apache-2.0" ]
122
2020-02-14T18:53:05.000Z
2022-03-27T22:33:24.000Z
""" Functions to determine defaults Layouts ------- TODO: make sure soopervisor documentation also uses these two terms (simple and packaged) There are two layouts that can be used, simple and package. Simple ------ A project composed of a pipeline.yaml and optionally extra pipeline.{name}.yaml files (all of them mus...
36.149123
79
0.63538
2,806
20,605
4.522096
0.137562
0.023643
0.017968
0.014343
0.224368
0.150682
0.099299
0.079202
0.059579
0.047443
0
0.001428
0.286338
20,605
569
80
36.212654
0.861476
0.38015
0
0.141176
0
0
0.242176
0.03359
0
0
0
0.015817
0
1
0.058824
false
0.011765
0.027451
0
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
1
0
0
0
0
0
0
0
0
0
0
1
1391176f875465989312dd20d28e36e7eef39472
1,989
py
Python
src/nrel_dev_api/solar/dataset_query.py
SarthakJariwala/nrel_dev_api
2cb486c88c67aa9758427a76ec5c79f7ef7bc997
[ "Apache-2.0" ]
null
null
null
src/nrel_dev_api/solar/dataset_query.py
SarthakJariwala/nrel_dev_api
2cb486c88c67aa9758427a76ec5c79f7ef7bc997
[ "Apache-2.0" ]
115
2021-03-08T00:50:11.000Z
2022-03-30T19:18:55.000Z
src/nrel_dev_api/solar/dataset_query.py
SarthakJariwala/nrel_dev_api
2cb486c88c67aa9758427a76ec5c79f7ef7bc997
[ "Apache-2.0" ]
null
null
null
from typing import Optional from typing import Union from .._core import check_api_key from .._core import get_request # TODO - add checks for data inputs class SolarDatasetQuery: """ Returns information on the closest climate data for a location. Parameters ---------- api_key: NREL de...
24.8625
78
0.594268
246
1,989
4.678862
0.361789
0.052129
0.059079
0.03649
0.132928
0.076455
0.076455
0.076455
0.076455
0
0
0.005193
0.322273
1,989
79
79
25.177215
0.848665
0.396682
0
0
0
0
0.064428
0.026316
0
0
0
0.012658
0
1
0.033333
false
0
0.133333
0
0.233333
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
13927437f5f5bba070dc77601fe99783e1127aa9
1,649
py
Python
allauth/socialaccount/providers/untappd_provider/client.py
Fuzzwah/django-allauth
071cbef1388bb61a563d3e41197bd5b7c26664d2
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/untappd_provider/client.py
Fuzzwah/django-allauth
071cbef1388bb61a563d3e41197bd5b7c26664d2
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/untappd_provider/client.py
Fuzzwah/django-allauth
071cbef1388bb61a563d3e41197bd5b7c26664d2
[ "MIT" ]
null
null
null
import requests from allauth.socialaccount import app_settings from allauth.socialaccount.providers.oauth2_provider.client import ( OAuth2Client, OAuth2Error, ) from .provider import UntappdProvider class UntappdOAuth2Client(OAuth2Client): """ Custom client because Untappd: * uses redirect_u...
32.333333
81
0.61795
176
1,649
5.596591
0.454545
0.13401
0.045685
0.04264
0
0
0
0
0
0
0
0.007759
0.296543
1,649
50
82
32.98
0.841379
0.134021
0
0
0
0
0.123307
0
0
0
0
0.02
0
1
0.026316
false
0
0.105263
0
0.184211
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
13987db570a345ce682d439175cf202c45a2c878
1,122
py
Python
typhon/debug.py
justinnoah/typhon
2aa883aa37e4ae70a45474c6eb4a444181940ef1
[ "Apache-2.0" ]
63
2015-02-19T20:47:16.000Z
2021-12-27T23:29:54.000Z
typhon/debug.py
justinnoah/typhon
2aa883aa37e4ae70a45474c6eb4a444181940ef1
[ "Apache-2.0" ]
197
2015-02-23T23:05:24.000Z
2021-04-05T16:15:04.000Z
typhon/debug.py
justinnoah/typhon
2aa883aa37e4ae70a45474c6eb4a444181940ef1
[ "Apache-2.0" ]
9
2015-02-15T09:27:09.000Z
2018-02-14T17:27:40.000Z
from rpython.rlib.debug import debug_print from rpython.rlib.jit import Counters, JitHookInterface class DebugPrinter(object): # _immutable_fields_ = "enabled?", enabled = False def enableDebugPrint(self): self.enabled = True def debugPrint(self, *args): if self.enabled: ...
27.365854
99
0.682709
116
1,122
6.439655
0.387931
0.060241
0.048193
0.066934
0.187416
0.10174
0.10174
0.10174
0
0
0
0
0.231729
1,122
40
100
28.05
0.866589
0.028521
0
0.222222
0
0
0.064338
0
0
0
0
0
0
0
null
null
0
0.074074
null
null
0.185185
0
0
0
null
0
0
0
0
0
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
1398d168e5980c63d76d970313a39c67012bf190
3,934
py
Python
tests/test_span.py
isi-vista/vistautils
c25e5fbbed02281ca321523c4c4d604c7a369b1d
[ "MIT" ]
3
2018-10-26T16:44:44.000Z
2019-10-03T14:02:44.000Z
tests/test_span.py
isi-vista/vistautils
c25e5fbbed02281ca321523c4c4d604c7a369b1d
[ "MIT" ]
136
2018-10-11T21:37:31.000Z
2021-03-25T22:15:13.000Z
tests/test_span.py
isi-vista/vistautils
c25e5fbbed02281ca321523c4c4d604c7a369b1d
[ "MIT" ]
3
2019-07-01T17:55:37.000Z
2020-08-05T15:42:56.000Z
from unittest import TestCase from attr import attrs from immutablecollections import immutableset from vistautils.span import HasSpanIndex, Span @attrs(auto_attribs=True, frozen=True, slots=True) class Foo: span: Span @attrs(auto_attribs=True, frozen=True, slots=True) class Bar: span: Span class TestS...
36.766355
89
0.608033
445
3,934
5.217978
0.168539
0.135659
0.186047
0.114556
0.478036
0.440138
0.296727
0.253661
0.253661
0.253661
0
0.061394
0.267158
3,934
106
90
37.113208
0.744017
0
0
0.304348
0
0
0.011185
0
0
0
0
0
0.282609
1
0.032609
false
0
0.043478
0
0.130435
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
13995c594bdaefb500430baba3a7e3071acd23c3
1,486
py
Python
bclearer_source/b_code/substages/operations/b_evolve/common/universes_merge_registers.py
boro-alpha/bclearer
b2d0b2acd9b8eff1c2dd3d7c100ed1e5256791c8
[ "MIT" ]
null
null
null
bclearer_source/b_code/substages/operations/b_evolve/common/universes_merge_registers.py
boro-alpha/bclearer
b2d0b2acd9b8eff1c2dd3d7c100ed1e5256791c8
[ "MIT" ]
null
null
null
bclearer_source/b_code/substages/operations/b_evolve/common/universes_merge_registers.py
boro-alpha/bclearer
b2d0b2acd9b8eff1c2dd3d7c100ed1e5256791c8
[ "MIT" ]
1
2021-11-03T11:19:16.000Z
2021-11-03T11:19:16.000Z
from bclearer_source.b_code.substages.operations.b_evolve.common.universe_aligner import align_universes from nf_ea_common_tools_source.b_code.services.general.nf_ea.com.nf_ea_com_universes import NfEaComUniverses ALIGNED_UNIVERSE_SHORT_NAME_SUFFIX = \ '_aligned' class UniversesMergeRegisters: def __init__( ...
30.958333
108
0.669583
152
1,486
6.072368
0.375
0.146262
0.086674
0.104009
0.23402
0.23402
0
0
0
0
0
0.0103
0.281292
1,486
47
109
31.617021
0.853933
0.041723
0
0.057143
0
0
0.005626
0
0
0
0
0.021277
0
1
0.057143
false
0
0.057143
0
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
1
0
0
0
0
0
0
0
0
0
0
1
139ab2fabdad902c2217ae56b111f11f132faa25
2,791
py
Python
omc.py
JossMoff/SetClipper
242a6b94179ffea6ef4f1c6e64b3c0f1337aa124
[ "Apache-2.0" ]
1
2019-09-07T10:21:35.000Z
2019-09-07T10:21:35.000Z
omc.py
JossMoff/SetClipper
242a6b94179ffea6ef4f1c6e64b3c0f1337aa124
[ "Apache-2.0" ]
null
null
null
omc.py
JossMoff/SetClipper
242a6b94179ffea6ef4f1c6e64b3c0f1337aa124
[ "Apache-2.0" ]
null
null
null
import youtube_dl import subprocess import os.path import shutil import os import json class OnlineMediaConverter(youtube_dl.YoutubeDL): def __init__(self, options, extension, cache_limit): super().__init__(options) self.options = options self.id = "" self.extension = '.' + extensio...
41.656716
99
0.601218
343
2,791
4.603499
0.274052
0.062698
0.045598
0.040532
0.295124
0.227992
0.227992
0.176061
0.136795
0.083597
0
0.002046
0.299534
2,791
67
100
41.656716
0.805627
0.035471
0
0.236364
0
0
0.147584
0
0
0
0
0.014925
0
1
0.127273
false
0
0.109091
0.018182
0.327273
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
139c5622f2b653870f97063a93e7fbf6c225f4f9
17,757
py
Python
crystallography/molecule.py
Huaguiyuan/crystallography
67275599f1e132d0137ee8695bc0b49fe3de88a9
[ "MIT" ]
null
null
null
crystallography/molecule.py
Huaguiyuan/crystallography
67275599f1e132d0137ee8695bc0b49fe3de88a9
[ "MIT" ]
null
null
null
crystallography/molecule.py
Huaguiyuan/crystallography
67275599f1e132d0137ee8695bc0b49fe3de88a9
[ "MIT" ]
1
2019-12-08T01:22:29.000Z
2019-12-08T01:22:29.000Z
from pymatgen.core.structure import Molecule from pymatgen.core.operations import SymmOp from pymatgen.symmetry.analyzer import PointGroupAnalyzer from pymatgen.symmetry.analyzer import generate_full_symmops import numpy as np from numpy.linalg import eigh from numpy.linalg import det from copy import deepcopy from mat...
40.633867
125
0.580335
2,346
17,757
4.278772
0.160273
0.004981
0.01315
0.017035
0.237099
0.151225
0.116159
0.105798
0.078601
0.072724
0
0.025279
0.322746
17,757
436
126
40.727064
0.809413
0.24289
0
0.232026
1
0
0.037497
0
0
0
0
0
0
1
0.022876
false
0
0.04902
0
0.114379
0.04902
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
13a05626201e8cdc21cdadb15061d122b04c55a5
2,404
py
Python
demos/template/app.py
Lutl/helloflask
25e5361b8495b67a3bf823af574a6050a46468fb
[ "MIT" ]
null
null
null
demos/template/app.py
Lutl/helloflask
25e5361b8495b67a3bf823af574a6050a46468fb
[ "MIT" ]
null
null
null
demos/template/app.py
Lutl/helloflask
25e5361b8495b67a3bf823af574a6050a46468fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ :author: Grey Li (李辉) :url: http://greyli.com :copyright: © 2018 Grey Li :license: MIT, see LICENSE for more details. """ import os from flask import Flask, render_template, flash, redirect, url_for, Markup app = Flask(__name__) app.secret_key = os.getenv("SECRET_KEY", "secr...
23.339806
82
0.654326
320
2,404
4.8
0.45625
0.054688
0.065104
0.023438
0.066406
0
0
0
0
0
0
0.038423
0.177205
2,404
102
83
23.568627
0.737614
0.232529
0
0
0
0
0.27081
0.014428
0
0
0
0
0
1
0.178571
false
0
0.035714
0.125
0.410714
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
1
0
0
0
1
13a58ec4952e00b59849c03b44d1cd1b5263aa88
3,252
py
Python
flask-s3-upload.py
JohnFunkCode/FlaskUploadToS3
b654156c9bf2a963c9cdc72ccb74b10b35dc11be
[ "MIT" ]
null
null
null
flask-s3-upload.py
JohnFunkCode/FlaskUploadToS3
b654156c9bf2a963c9cdc72ccb74b10b35dc11be
[ "MIT" ]
null
null
null
flask-s3-upload.py
JohnFunkCode/FlaskUploadToS3
b654156c9bf2a963c9cdc72ccb74b10b35dc11be
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, redirect from werkzeug.utils import secure_filename import os import boto3 from cfenv import AppEnv env=AppEnv() print env.name print env.port s3bucket = env.get_service(name='s3bucket') print s3bucket.credentials app = Flask(__name__) #app.config.from_object("confi...
25.015385
81
0.618696
422
3,252
4.530806
0.279621
0.056485
0.046025
0.023536
0.270921
0.212343
0.100418
0.041841
0
0
0
0.022866
0.246925
3,252
130
82
25.015385
0.75786
0.108241
0
0.054054
0
0
0.17478
0
0
0
0
0
0
0
null
null
0
0.067568
null
null
0.22973
0
0
0
null
0
0
0
0
0
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
13a72c3e4b0e1f49fafe3ea4d6fa10743f367acd
1,157
py
Python
tests/test_ram.py
nikhil153/codecarbon
b3cc0cc29abd4b82e39699695d535351e86f1ec0
[ "MIT" ]
346
2020-11-11T02:27:03.000Z
2022-03-30T12:43:21.000Z
tests/test_ram.py
nikhil153/codecarbon
b3cc0cc29abd4b82e39699695d535351e86f1ec0
[ "MIT" ]
163
2020-11-10T18:57:38.000Z
2022-03-30T14:44:53.000Z
tests/test_ram.py
nikhil153/codecarbon
b3cc0cc29abd4b82e39699695d535351e86f1ec0
[ "MIT" ]
57
2020-11-11T02:26:15.000Z
2022-03-30T14:36:39.000Z
import unittest import numpy as np from codecarbon.external.hardware import RAM # TODO: need help: test multiprocess case class TestRAM(unittest.TestCase): def test_ram_diff(self): ram = RAM(tracking_mode="process") for array_size in [ # (10, 10), # too small to be noticed ...
31.27027
70
0.496975
146
1,157
3.746575
0.438356
0.131627
0.065814
0.043876
0.149909
0
0
0
0
0
0
0.130496
0.390666
1,157
36
71
32.138889
0.64539
0.108902
0
0
0
0
0.047852
0
0
0
0
0.027778
0.037037
1
0.037037
false
0
0.111111
0
0.185185
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
13a911587065457bff61527ca45f336ee8cd70f5
11,376
py
Python
xkcdpass/xkcd_password.py
hoangcuongflp/XKCD-password-generator
8b54941d098cec168d3a264710ddd439fbaf2aea
[ "BSD-3-Clause" ]
null
null
null
xkcdpass/xkcd_password.py
hoangcuongflp/XKCD-password-generator
8b54941d098cec168d3a264710ddd439fbaf2aea
[ "BSD-3-Clause" ]
null
null
null
xkcdpass/xkcd_password.py
hoangcuongflp/XKCD-password-generator
8b54941d098cec168d3a264710ddd439fbaf2aea
[ "BSD-3-Clause" ]
1
2021-01-25T23:05:37.000Z
2021-01-25T23:05:37.000Z
#!/usr/bin/env python # encoding: utf-8 import random import os import os.path import argparse import re import math import sys __LICENSE__ = """ Copyright (c) 2011 - 2016, Steven Tobin and Contributors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitt...
32.595989
79
0.616297
1,339
11,376
5.147872
0.294996
0.013202
0.023937
0.005223
0.133759
0.109386
0.09749
0.086755
0.086755
0.07689
0
0.004954
0.29026
11,376
348
80
32.689655
0.848774
0.102233
0
0.202479
0
0
0.334458
0.00546
0
0
0
0
0
1
0.049587
false
0.107438
0.028926
0
0.115702
0.028926
0
0
0
null
0
0
0
0
0
0
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
13aaddd70a5b2bc4e309c757bc6f09f473115e81
959
py
Python
clines.py
AJubatus/pcstudy
267e8f90690067561686942e0b2eeab6daf2675c
[ "Apache-2.0" ]
null
null
null
clines.py
AJubatus/pcstudy
267e8f90690067561686942e0b2eeab6daf2675c
[ "Apache-2.0" ]
null
null
null
clines.py
AJubatus/pcstudy
267e8f90690067561686942e0b2eeab6daf2675c
[ "Apache-2.0" ]
null
null
null
''' Count total lines of C code exluding comments below the current working directory c comment starts with /* ends with */ can be multiline can be // also ''' import glob def parse(): files = glob.glob("**/*.c", recursive=True) counter = 0 for sourcefile in files: print(sourcefile) mul...
22.833333
81
0.504692
97
959
4.907216
0.597938
0.088235
0.07563
0.092437
0
0
0
0
0
0
0
0.006908
0.396246
959
41
82
23.390244
0.815199
0.212722
0
0.16
0
0
0.036193
0
0
0
0
0
0
1
0.04
false
0.16
0.04
0
0.12
0.08
0
0
0
null
0
0
0
0
0
0
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
13ab16eac099553ae99877f9010d2a91764b9f52
4,496
py
Python
unit-tests/test_command_register.py
armarti/Commander
b0109d6a5fb52dd462656d4742e41385062d7c0c
[ "MIT" ]
null
null
null
unit-tests/test_command_register.py
armarti/Commander
b0109d6a5fb52dd462656d4742e41385062d7c0c
[ "MIT" ]
null
null
null
unit-tests/test_command_register.py
armarti/Commander
b0109d6a5fb52dd462656d4742e41385062d7c0c
[ "MIT" ]
null
null
null
from unittest import TestCase, mock from data_vault import get_synced_params, VaultEnvironment, get_user_params from keepercommander.commands import register vault_env = VaultEnvironment() class TestRegister(TestCase): expected_commands = [] def setUp(self): self.communicate_mock = mock.patch('keep...
43.230769
145
0.65992
486
4,496
5.886831
0.236626
0.106257
0.176162
0.095072
0.503321
0.452289
0.433415
0.416987
0.416987
0.392171
0
0.011061
0.215747
4,496
103
146
43.650485
0.80034
0
0
0.278481
0
0
0.1875
0.074956
0
0
0
0
0.101266
1
0.075949
false
0.063291
0.037975
0
0.202532
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
13abcd391dc51b2cd69d20c1266c3d852784ef2c
540
py
Python
utils/num/factordb.py
thatbirdguythatuknownot/pyutils
35a30acf5c2755c070046d96f4d385c65a4f382c
[ "MIT" ]
3
2021-01-06T15:01:51.000Z
2021-08-20T07:12:13.000Z
utils/num/factordb.py
thatbirdguythatuknownot/pyutils
35a30acf5c2755c070046d96f4d385c65a4f382c
[ "MIT" ]
1
2022-02-11T09:11:42.000Z
2022-02-11T09:11:42.000Z
utils/num/factordb.py
thatbirdguythatuknownot/pyutils
35a30acf5c2755c070046d96f4d385c65a4f382c
[ "MIT" ]
1
2022-01-20T22:59:18.000Z
2022-01-20T22:59:18.000Z
#!/usr/bin/env python3 import sys from dataclasses import dataclass from typing import List import requests URL = "http://www.factordb.com/api" @dataclass class Result: status: str factors: List[int] def fetch_result(n: int) -> Result: resp = requests.get(URL, params={"query": str(n)}).json() return Result( r...
20.769231
90
0.7
82
540
4.47561
0.536585
0.038147
0.065395
0
0
0
0
0
0
0
0
0.008584
0.137037
540
25
91
21.6
0.77897
0.038889
0
0
0
0
0.102317
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0.055556
0.611111
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
13b3ecf735efa79c7b8932432952f12b67977896
2,372
py
Python
antalla/migrations/versions/ca6cd71568db_create_order_book_snapshot_table.py
dudo-project/antalla
e59a1ff5e748a7b04e10f2fc9fdc27a7b3273bcd
[ "MIT" ]
9
2019-12-12T13:57:31.000Z
2021-08-13T15:51:13.000Z
antalla/migrations/versions/ca6cd71568db_create_order_book_snapshot_table.py
dudo-project/antalla
e59a1ff5e748a7b04e10f2fc9fdc27a7b3273bcd
[ "MIT" ]
5
2021-09-17T09:14:55.000Z
2022-02-26T21:06:07.000Z
antalla/migrations/versions/ca6cd71568db_create_order_book_snapshot_table.py
dudo-project/antalla
e59a1ff5e748a7b04e10f2fc9fdc27a7b3273bcd
[ "MIT" ]
3
2020-04-27T03:30:58.000Z
2020-09-07T00:08:59.000Z
"""create order book snapshot table Revision ID: ca6cd71568db Revises: 76f253d77eba Create Date: 2019-09-22 01:33:59.794177 """ from antalla.settings import TABLE_PREFIX from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "ca6cd71568db" down_revision = "76f253d77eba" b...
33.885714
81
0.62774
292
2,372
4.917808
0.270548
0.116992
0.14624
0.194986
0.655292
0.652507
0.553621
0.344011
0.157382
0.126741
0
0.025684
0.244941
2,372
69
82
34.376812
0.776103
0.067875
0
0.345455
0
0
0.164775
0
0
0
0
0
0
1
0.036364
false
0
0.054545
0
0.090909
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
13b93dd74d9ade216bd251d58d382ddcb371eff0
305
py
Python
fps/urls.py
LupusHr/fps
83a5494def79f6c89d44ad6c521f06194a4a169c
[ "Apache-2.0" ]
null
null
null
fps/urls.py
LupusHr/fps
83a5494def79f6c89d44ad6c521f06194a4a169c
[ "Apache-2.0" ]
null
null
null
fps/urls.py
LupusHr/fps
83a5494def79f6c89d44ad6c521f06194a4a169c
[ "Apache-2.0" ]
null
null
null
from django.urls import include, path from django.contrib import admin urlpatterns = [ # Examples: # url(r'^$', 'fps.views.home', name='home'), # url(r'^blog/', include('blog.urls')), path(r'admin/', admin.site.urls), path(r'', include('fps_glavni.urls', namespace='url_glavni')), ]
25.416667
66
0.632787
41
305
4.658537
0.487805
0.104712
0.094241
0
0
0
0
0
0
0
0
0
0.160656
305
11
67
27.727273
0.746094
0.295082
0
0
0
0
0.146919
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
13bae1f5527b7cb9a9a0718a66c980f12f948f04
382
py
Python
aboutme/urls.py
tharindubasnnayaka/MyWebApp
b9f9adae5df01f495a459eeee1083288ba568be9
[ "MIT" ]
2
2018-06-22T22:31:55.000Z
2018-10-09T17:14:35.000Z
aboutme/urls.py
tharindubasnnayaka/MyWebApp
b9f9adae5df01f495a459eeee1083288ba568be9
[ "MIT" ]
7
2018-10-04T18:56:33.000Z
2020-10-11T18:03:22.000Z
aboutme/urls.py
tharindubasnnayaka/MyWebApp
b9f9adae5df01f495a459eeee1083288ba568be9
[ "MIT" ]
17
2018-10-04T19:09:44.000Z
2022-03-17T10:27:28.000Z
from django.conf.urls import url from django.views.generic import RedirectView from . import views from django.conf import settings from django.conf.urls.static import static app_name = 'aboutme' urlpatterns = [ #Regular Expression r'regularExprsHere' # /aboutme/ url(r'^$', views.index, name='index'), ] +...
29.384615
65
0.759162
51
382
5.607843
0.45098
0.13986
0.146853
0.125874
0
0
0
0
0
0
0
0
0.133508
382
13
65
29.384615
0.864048
0.125654
0
0
0
0
0.042042
0
0
0
0
0
0
1
0
false
0
0.555556
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
13bb62f9a3d63750d489ab94d7ea415d9041ac17
791
py
Python
Two pointer/leetcode15. 3Sum.py
aurora314156/leetcode
7fb6096f9af255e46c69d83254b58b1558e082d8
[ "MIT" ]
null
null
null
Two pointer/leetcode15. 3Sum.py
aurora314156/leetcode
7fb6096f9af255e46c69d83254b58b1558e082d8
[ "MIT" ]
null
null
null
Two pointer/leetcode15. 3Sum.py
aurora314156/leetcode
7fb6096f9af255e46c69d83254b58b1558e082d8
[ "MIT" ]
null
null
null
class Solution: def threeSum(self, nums: List[int]) -> List[List[int]]: res = [] nums.sort() n = len(nums) for i in range(n-2): if i > 0 and nums[i] == nums[i-1]: continue j, k = i + 1, n - 1 while j < k: _sum = nums...
32.958333
59
0.312263
96
791
2.541667
0.3125
0.081967
0.110656
0.098361
0.245902
0.245902
0
0
0
0
0
0.043103
0.560051
791
24
60
32.958333
0.658046
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.041667
false
0
0
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
13bcb60cb1a15f181f6761cffa2d29ea53619afa
775
py
Python
src/allocate_lecture_rooms.py
redfast00/daily-algorithm-challenge
3507164d5ec58abe68a6e820120625e100dee96c
[ "MIT" ]
null
null
null
src/allocate_lecture_rooms.py
redfast00/daily-algorithm-challenge
3507164d5ec58abe68a6e820120625e100dee96c
[ "MIT" ]
null
null
null
src/allocate_lecture_rooms.py
redfast00/daily-algorithm-challenge
3507164d5ec58abe68a6e820120625e100dee96c
[ "MIT" ]
null
null
null
def min_rooms_required(intervals): '''Returns the minimum amount of rooms necessary. Input consists of a list of time-intervals (start, stop): >>> min_rooms_required([(10, 20), (15, 25)]) 2 >>> min_rooms_required([(10, 20), (20, 30)]) 1 ''' # transform intervals # [(10, 20), (15, 25...
27.678571
65
0.587097
100
775
4.38
0.4
0.207763
0.109589
0.082192
0.091324
0
0
0
0
0
0
0.0746
0.273548
775
27
66
28.703704
0.703375
0.365161
0
0
0
0
0
0
0
0
0
0
0.071429
1
0.071429
false
0
0
0
0.142857
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
13c53a7112511badc30933251923b1db40d9e0e7
1,496
py
Python
alerta/utils/hooks.py
sepich/alerta
64d4e9f7bca6e41bda2d0553c846fbe68b494ab2
[ "Apache-2.0" ]
1
2019-08-15T02:37:21.000Z
2019-08-15T02:37:21.000Z
alerta/utils/hooks.py
sepich/alerta
64d4e9f7bca6e41bda2d0553c846fbe68b494ab2
[ "Apache-2.0" ]
60
2020-07-27T07:00:45.000Z
2022-03-21T18:02:18.000Z
alerta/utils/hooks.py
sepich/alerta
64d4e9f7bca6e41bda2d0553c846fbe68b494ab2
[ "Apache-2.0" ]
1
2020-11-24T03:16:49.000Z
2020-11-24T03:16:49.000Z
import blinker from flask import Flask from alerta.exceptions import ApiError, RejectException hook_signals = blinker.Namespace() pre_receive_hook = hook_signals.signal('pre-receive') post_receive_hook = hook_signals.signal('post-receive') status_change_hook = hook_signals.signal('status-change') take_action_hook = ...
28.769231
69
0.679813
192
1,496
5.057292
0.265625
0.056643
0.061792
0.086509
0.372812
0.117405
0.07621
0.07621
0
0
0
0.005245
0.235294
1,496
51
70
29.333333
0.843531
0.01738
0
0.085714
0
0
0.03206
0
0
0
0
0
0
1
0.171429
false
0.085714
0.114286
0
0.342857
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
13c5492bd4777a21113047f07f0a7e19fd6aa1f8
1,313
py
Python
ports/math/z3/dragonfly/patch-scripts_mk__util.py
liweitianux/DeltaPorts
b907de0ceb9c0e46ae8961896e97b361aa7c62c0
[ "BSD-2-Clause-FreeBSD" ]
31
2015-02-06T17:06:37.000Z
2022-03-08T19:53:28.000Z
ports/math/z3/dragonfly/patch-scripts_mk__util.py
liweitianux/DeltaPorts
b907de0ceb9c0e46ae8961896e97b361aa7c62c0
[ "BSD-2-Clause-FreeBSD" ]
236
2015-06-29T19:51:17.000Z
2021-12-16T22:46:38.000Z
ports/math/z3/dragonfly/patch-scripts_mk__util.py
liweitianux/DeltaPorts
b907de0ceb9c0e46ae8961896e97b361aa7c62c0
[ "BSD-2-Clause-FreeBSD" ]
52
2015-02-06T17:05:36.000Z
2021-10-21T12:13:06.000Z
--- scripts/mk_util.py.orig 2019-12-22 14:03:24 UTC +++ scripts/mk_util.py @@ -597,7 +597,7 @@ elif os.name == 'posix': IS_LINUX=True elif os.uname()[0] == 'GNU': IS_HURD=True - elif os.uname()[0] == 'FreeBSD': + elif os.uname()[0] == 'FreeBSD' or os.uname()[0] == 'DragonFly': IS_F...
43.766667
146
0.535415
164
1,313
4.164634
0.329268
0.158126
0.070278
0.070278
0.327965
0.219619
0.219619
0.219619
0.219619
0.219619
0
0.051557
0.290937
1,313
29
147
45.275862
0.682062
0
0
0.068966
0
0
0.156131
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
13c9e2ad78ea8452012a7ae5984ba83164ea1aed
421
py
Python
api/migrations/0027_alter_talkroom_id.py
mayone-du/harusmile-backend
4f6b90ab5c2278401ee50aa54920709effd7f323
[ "MIT" ]
null
null
null
api/migrations/0027_alter_talkroom_id.py
mayone-du/harusmile-backend
4f6b90ab5c2278401ee50aa54920709effd7f323
[ "MIT" ]
1
2021-06-23T09:15:50.000Z
2021-06-23T09:15:50.000Z
api/migrations/0027_alter_talkroom_id.py
mayone-du/harusmile-backend
4f6b90ab5c2278401ee50aa54920709effd7f323
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-06-11 09:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0026_alter_talkroom_id'), ] operations = [ migrations.AlterField( model_name='talkroom', name='id', ...
22.157895
92
0.617577
47
421
5.404255
0.787234
0
0
0
0
0
0
0
0
0
0
0.061688
0.268409
421
18
93
23.388889
0.762987
0.106888
0
0
1
0
0.093583
0.058824
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
13cabf9ec9a860ff46a83fc6cacc13b7e36ffa19
1,060
py
Python
resources/PyInstaller-3.0/tests/functional/modules/pyi_testmod_dynamic.py
dvt32/mypymodoro
7d2db639ea828e4db9caa84cd6f747f542ab22d8
[ "MIT" ]
null
null
null
resources/PyInstaller-3.0/tests/functional/modules/pyi_testmod_dynamic.py
dvt32/mypymodoro
7d2db639ea828e4db9caa84cd6f747f542ab22d8
[ "MIT" ]
null
null
null
resources/PyInstaller-3.0/tests/functional/modules/pyi_testmod_dynamic.py
dvt32/mypymodoro
7d2db639ea828e4db9caa84cd6f747f542ab22d8
[ "MIT" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2005-2015, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
29.444444
80
0.639623
116
1,060
5.534483
0.603448
0.046729
0
0
0
0
0
0
0
0
0
0.00883
0.145283
1,060
35
81
30.285714
0.699779
0.720755
0
0
0
0
0.043011
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
13ce4a464a0bb05720660ed18803d94f0ccdc3ff
685
py
Python
softlearning/environments/gym/wrappers/normalize_action.py
pedrodbs/mbpo
42c3be5eca050116c0cbada91588184e97af7c12
[ "MIT" ]
362
2019-04-16T22:45:21.000Z
2022-03-30T06:13:22.000Z
softlearning/environments/gym/wrappers/normalize_action.py
pedrodbs/mbpo
42c3be5eca050116c0cbada91588184e97af7c12
[ "MIT" ]
39
2019-05-03T04:21:14.000Z
2022-03-11T23:45:03.000Z
softlearning/environments/gym/wrappers/normalize_action.py
pedrodbs/mbpo
42c3be5eca050116c0cbada91588184e97af7c12
[ "MIT" ]
67
2019-04-17T03:35:29.000Z
2021-12-26T05:39:37.000Z
import gym from gym import spaces import numpy as np __all__ = ['NormalizeActionWrapper'] class NormalizeActionWrapper(gym.ActionWrapper): """Rescale the action space of the environment.""" def action(self, action): if not isinstance(self.env.action_space, spaces.Box): return action ...
24.464286
73
0.681752
83
685
5.481928
0.433735
0.096703
0.085714
0.118681
0
0
0
0
0
0
0
0.00759
0.230657
685
27
74
25.37037
0.855787
0.093431
0
0
0
0
0.035772
0.035772
0
0
0
0
0
1
0.133333
false
0
0.2
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
13cfc39e3cb69225d6de32cfc7784e54e9bb1a20
907
py
Python
pics/2020-10-10-autoencoder/pca_and_ae/no01_pca_on_MNIST.py
reporeferences/angeloyeo.github.io
c249e860665b918d1144f9cc5093dbe24b384224
[ "MIT" ]
24
2019-06-16T00:33:44.000Z
2022-01-21T05:25:37.000Z
pics/2020-10-10-autoencoder/pca_and_ae/no01_pca_on_MNIST.py
reporeferences/angeloyeo.github.io
c249e860665b918d1144f9cc5093dbe24b384224
[ "MIT" ]
null
null
null
pics/2020-10-10-autoencoder/pca_and_ae/no01_pca_on_MNIST.py
reporeferences/angeloyeo.github.io
c249e860665b918d1144f9cc5093dbe24b384224
[ "MIT" ]
27
2019-12-11T11:28:05.000Z
2022-03-23T02:27:05.000Z
# -*- coding: utf-8 -*- """ Created on Wed Oct 14 17:23:28 2020 @author: biosensor1 """ import numpy as np from sklearn.decomposition import PCA from sklearn.datasets import fetch_openml import matplotlib.pyplot as plt import torch import torchvision.transforms as transforms mnist_transform = transforms.Compose([ ...
21.093023
96
0.712238
133
907
4.766917
0.533835
0.056782
0.053628
0
0
0
0
0
0
0
0
0.034794
0.144432
907
42
97
21.595238
0.782216
0.101433
0
0
0
0
0.019876
0
0
0
0
0
0
1
0
false
0
0.304348
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
13d365d41e5c06a7c5db27451d2c29af00831518
471
py
Python
app/main.py
nplsm/neoplasm-users
b28f8880bce820be1c4b96d72b82ef96b6cc5915
[ "MIT" ]
null
null
null
app/main.py
nplsm/neoplasm-users
b28f8880bce820be1c4b96d72b82ef96b6cc5915
[ "MIT" ]
null
null
null
app/main.py
nplsm/neoplasm-users
b28f8880bce820be1c4b96d72b82ef96b6cc5915
[ "MIT" ]
null
null
null
from ariadne import load_schema_from_path, snake_case_fallback_resolvers from ariadne.asgi import GraphQL from ariadne.contrib.federation import make_federated_schema from graphql import GraphQLSchema from .resolvers import mutation, query, user type_defs: str = load_schema_from_path("app") schema: GraphQLSchema = m...
24.789474
72
0.802548
62
471
5.806452
0.419355
0.091667
0.077778
0.1
0
0
0
0
0
0
0
0
0.138004
471
18
73
26.166667
0.8867
0
0
0
0
0
0.006369
0
0
0
0
0
0
1
0
false
0
0.357143
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
13dc85ebb73934884cd263c457426c40bce55fe5
1,993
py
Python
custom_components/here_weather/utils.py
eifinger/homeassistant-conf
170e22a7d3ea1339318ba9823fd9e2eb1be47869
[ "MIT" ]
60
2018-07-21T04:17:25.000Z
2021-12-11T18:48:28.000Z
custom_components/here_weather/utils.py
eifinger/homeassistant-conf
170e22a7d3ea1339318ba9823fd9e2eb1be47869
[ "MIT" ]
1
2018-08-16T06:44:46.000Z
2018-11-02T11:32:54.000Z
custom_components/here_weather/utils.py
eifinger/homeassistant-conf
170e22a7d3ea1339318ba9823fd9e2eb1be47869
[ "MIT" ]
3
2019-12-06T04:15:55.000Z
2022-03-13T21:16:45.000Z
"""Utility functions for here_weather.""" from __future__ import annotations from homeassistant.const import ( CONF_UNIT_SYSTEM_METRIC, LENGTH_CENTIMETERS, LENGTH_INCHES, LENGTH_KILOMETERS, LENGTH_MILES, PRESSURE_INHG, PRESSURE_MBAR, SPEED_KILOMETERS_PER_HOUR, SPEED_MILES_PER_HOUR, ...
31.634921
80
0.72002
250
1,993
5.324
0.264
0.08565
0.242675
0.06311
0.359128
0.193839
0.193839
0.193839
0.193839
0.193839
0
0.000639
0.215253
1,993
62
81
32.145161
0.850384
0.136478
0
0.25
0
0
0.00059
0
0
0
0
0
0
1
0.083333
false
0
0.041667
0
0.25
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
13dfc653e37c7f0927463728a4d911b5c190c627
813
py
Python
recursion-basics/fibonnacci-recursive.py
thehimalayanleo/Algorithm-Practice
aa63d90de7a3a72910ead1017574e2cca485009f
[ "MIT" ]
null
null
null
recursion-basics/fibonnacci-recursive.py
thehimalayanleo/Algorithm-Practice
aa63d90de7a3a72910ead1017574e2cca485009f
[ "MIT" ]
null
null
null
recursion-basics/fibonnacci-recursive.py
thehimalayanleo/Algorithm-Practice
aa63d90de7a3a72910ead1017574e2cca485009f
[ "MIT" ]
null
null
null
## Implementation of a recursive fibonacci series. Extremely inefficient though. ## Author: AJ class fibonacci: def __init__(self): self.number = 0 self.series = [] def fib_series(self, num): if num <=2: if 1 not in self.series: self.series.append(1) ...
25.40625
80
0.592866
112
813
4.196429
0.321429
0.212766
0.076596
0.06383
0.27234
0.27234
0.27234
0
0
0
0
0.018998
0.287823
813
31
81
26.225806
0.792746
0.196802
0
0
0
0
0.00155
0
0
0
0
0
0
1
0.136364
false
0
0
0
0.272727
0.136364
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
13e8e64b716ebd6750077cda40745dbdc1b758d5
1,088
py
Python
tests/test_forms.py
AnomalistDesignLLC/kansha
85b5816da126b1c7098707c98f217d8b2e524ff2
[ "BSD-3-Clause" ]
161
2015-04-27T17:07:40.000Z
2021-10-14T23:14:56.000Z
tests/test_forms.py
AnomalistDesignLLC/kansha
85b5816da126b1c7098707c98f217d8b2e524ff2
[ "BSD-3-Clause" ]
228
2015-05-27T15:47:31.000Z
2018-11-24T04:05:11.000Z
tests/test_forms.py
AnomalistDesignLLC/kansha
85b5816da126b1c7098707c98f217d8b2e524ff2
[ "BSD-3-Clause" ]
38
2015-05-27T15:16:15.000Z
2021-03-24T05:34:08.000Z
# -*- coding:utf-8 -*- #-- # Copyright (c) 2012-2014 Net-ng. # All rights reserved. # # This software is licensed under the BSD License, as described in # the file LICENSE.txt, which you should have received as part of # this distribution. #-- import logging import unittest from nagare import database from elixir imp...
26.536585
70
0.684743
131
1,088
5.473282
0.549618
0.037657
0.083682
0
0
0
0
0
0
0
0
0.010539
0.215074
1,088
40
71
27.2
0.82904
0.206801
0
0
0
0
0.086753
0
0
0
0
0
0.15
1
0.15
false
0.1
0.3
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
1
0
0
0
0
0
1
13eb2f63237636002a60ffac6763da8e99e0b010
2,635
py
Python
testbed.py
najeira/testbed
5cdd226dd4a1afd96b0d577d7f3010f7769f9a19
[ "BSD-3-Clause" ]
1
2015-06-22T01:24:57.000Z
2015-06-22T01:24:57.000Z
testbed.py
najeira/testbed
5cdd226dd4a1afd96b0d577d7f3010f7769f9a19
[ "BSD-3-Clause" ]
1
2015-06-26T05:39:40.000Z
2015-06-26T05:39:40.000Z
testbed.py
najeira/testbed
5cdd226dd4a1afd96b0d577d7f3010f7769f9a19
[ "BSD-3-Clause" ]
null
null
null
import sys import logging import base64 import pickle import traceback #logging.basicConfig(filename="./testbed.log", level=logging.DEBUG) def setup_appengine(): sdk_path = r"C:\Program Files (x86)\Google\google_appengine" if len(sys.argv) >= 2: sdk_path = sys.argv[1] sys.path.insert(0, sdk_path) from api...
29.277778
81
0.71537
336
2,635
5.380952
0.348214
0.054757
0.049779
0.042035
0.070796
0.03208
0.03208
0
0
0
0
0.009246
0.179127
2,635
89
82
29.606742
0.82663
0.032638
0
0.054054
0
0
0.045728
0.011633
0
0
0
0
0
0
null
null
0
0.148649
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
13ecaffd1d61feeb63ad4172c9c5965e1370b68d
1,424
py
Python
intro/oop/example_3.py
Ho011/learning_python
7117c0009f13675c65e23f3650b44dc0bce6a657
[ "MIT" ]
null
null
null
intro/oop/example_3.py
Ho011/learning_python
7117c0009f13675c65e23f3650b44dc0bce6a657
[ "MIT" ]
null
null
null
intro/oop/example_3.py
Ho011/learning_python
7117c0009f13675c65e23f3650b44dc0bce6a657
[ "MIT" ]
null
null
null
#inherits , extend , override class Employee: def __init__(self , name , age , salary): self.name = name self.age = age self.salary = salary def work(self): print( f"{self.name} is working..." ) class SoftwareEngineer(Employee): def __init__(self , name , age , salary , le...
22.25
68
0.610955
169
1,424
4.994083
0.313609
0.075829
0.059242
0.082938
0.219194
0.219194
0.171801
0.095972
0
0
0
0.027422
0.231742
1,424
63
69
22.603175
0.744059
0.283006
0
0.103448
0
0
0.154536
0
0
0
0
0
0
1
0.275862
false
0
0
0
0.37931
0.172414
0
0
0
null
0
0
0
0
0
0
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
13ef3eaa4beee4c63b9d95535377b18d1925ca21
8,338
py
Python
data_selection/prepare_data.py
jorgeavilacartes/dl-forecast
56991ae9cb317739180edd1b2ee37cd0b0f64aed
[ "MIT" ]
null
null
null
data_selection/prepare_data.py
jorgeavilacartes/dl-forecast
56991ae9cb317739180edd1b2ee37cd0b0f64aed
[ "MIT" ]
null
null
null
data_selection/prepare_data.py
jorgeavilacartes/dl-forecast
56991ae9cb317739180edd1b2ee37cd0b0f64aed
[ "MIT" ]
null
null
null
import os import time import datetime import json import pandas as pd import numpy as np from pathlib import Path from tqdm import tqdm from typing import List, Optional class PrepareData: """ Limpiar y extraer las series de tiempo de una tabla CSV + Asegurar fechas continuas, completar con 0 las n...
42.324873
154
0.636963
1,139
8,338
4.482002
0.225637
0.043095
0.028208
0.029775
0.110872
0.041136
0.020372
0
0
0
0
0.002313
0.273927
8,338
197
155
42.324873
0.840932
0.273327
0
0.07438
0
0.016529
0.151683
0.01422
0
0
0
0.010152
0.016529
1
0.107438
false
0
0.07438
0
0.223141
0.057851
0
0
0
null
0
0
0
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
13f1f4950659df03a7fd1a84516b7bede9dd2ac0
1,372
py
Python
machine-learning-ex8/ex8/selectThreshold.py
RunningGump/coursera-ml-py
7287a0c143660e4e10ea019607c9fc818fe1367a
[ "MIT" ]
1
2019-05-12T07:04:53.000Z
2019-05-12T07:04:53.000Z
machine-learning-ex8/ex8/selectThreshold.py
RunningGump/coursera-ml-py
7287a0c143660e4e10ea019607c9fc818fe1367a
[ "MIT" ]
null
null
null
machine-learning-ex8/ex8/selectThreshold.py
RunningGump/coursera-ml-py
7287a0c143660e4e10ea019607c9fc818fe1367a
[ "MIT" ]
null
null
null
import numpy as np def select_threshold(yval, pval): f1 = 0 # You have to return these values correctly best_eps = 0 best_f1 = 0 for epsilon in np.linspace(np.min(pval), np.max(pval), num=1001): # ===================== Your Code Here ===================== # Instructions: Compute ...
36.105263
80
0.526239
178
1,372
3.988764
0.432584
0.033803
0.029577
0.059155
0.114085
0.090141
0.090141
0
0
0
0
0.024919
0.327259
1,372
37
81
37.081081
0.744312
0.450437
0
0
0
0
0
0
0
0
0
0.027027
0
1
0.058824
false
0
0.058824
0
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
1
0
0
0
0
0
0
0
0
0
0
1
b9117825d5b5823465068968b41afbf2e807751c
826
py
Python
classroom/views/people.py
Minecraft3193092/school-classroom
c0ea63f09d4125b0ae9033fd8b0a4aab2604bb42
[ "Apache-2.0" ]
11
2021-07-16T11:08:29.000Z
2022-01-10T12:53:03.000Z
classroom/views/people.py
Minecraft3193092/school-classroom
c0ea63f09d4125b0ae9033fd8b0a4aab2604bb42
[ "Apache-2.0" ]
1
2022-03-18T15:39:39.000Z
2022-03-18T15:39:39.000Z
classroom/views/people.py
Allesanddro/Zooming-cls
5555f1aa588ede6707b34ed8ac91bd4daeb4989c
[ "Apache-2.0" ]
9
2021-09-02T06:30:02.000Z
2022-03-28T16:53:05.000Z
from django.shortcuts import redirect, render, get_object_or_404 from django.views import View from django.contrib import messages from classroom.models import ClassRoom, MemberShip from profiles.models import Teacher, Student from django.utils.decorators import method_decorator from django.contrib.auth.decorators impo...
37.545455
64
0.72155
104
826
5.615385
0.480769
0.085616
0.037671
0.047945
0
0
0
0
0
0
0
0.008837
0.177966
826
22
65
37.545455
0.851252
0.021792
0
0
0
0
0.038414
0
0
0
0
0
0
1
0.105263
false
0
0.368421
0.052632
0.631579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b913969c03c655f30466b3db79dd504fed996b38
6,225
py
Python
biolinkml/generators/namespacegen.py
rajshruti18/biolinkml
451e71c9d3fd11aa3b08c6a713d9ab8b127ece77
[ "CC0-1.0" ]
null
null
null
biolinkml/generators/namespacegen.py
rajshruti18/biolinkml
451e71c9d3fd11aa3b08c6a713d9ab8b127ece77
[ "CC0-1.0" ]
null
null
null
biolinkml/generators/namespacegen.py
rajshruti18/biolinkml
451e71c9d3fd11aa3b08c6a713d9ab8b127ece77
[ "CC0-1.0" ]
null
null
null
import os import click from biolinkml.generators import PYTHON_GEN_VERSION from biolinkml.generators.pythongen import PythonGenerator from biolinkml.utils.formatutils import split_line, be from biolinkml.utils.generator import shared_arguments class NamespaceGenerator(PythonGenerator): generatorname = os.path.b...
32.591623
123
0.654137
743
6,225
5.366083
0.297443
0.026085
0.012039
0.018811
0.083271
0.039629
0.020065
0
0
0
0
0.001507
0.253815
6,225
191
124
32.591623
0.856835
0.013333
0
0.181208
0
0.020134
0.843358
0.144743
0
0
0
0
0
1
0.020134
false
0.006711
0.060403
0.006711
0.221477
0.006711
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b91c413adf976cb042514ff27e9484b79abacd3d
283
py
Python
test/benchmark/map_numeric.py
CohenArthur/wren
f81cb5d23cbf3a6bb5b83511cf6a47dcf2f130e9
[ "MIT" ]
61
2020-05-23T21:36:19.000Z
2022-02-15T10:16:54.000Z
test/benchmark/map_numeric.py
CohenArthur/wren
f81cb5d23cbf3a6bb5b83511cf6a47dcf2f130e9
[ "MIT" ]
7
2020-05-24T17:00:32.000Z
2021-01-15T15:55:18.000Z
test/benchmark/map_numeric.py
CohenArthur/wren
f81cb5d23cbf3a6bb5b83511cf6a47dcf2f130e9
[ "MIT" ]
6
2020-05-23T23:49:16.000Z
2022-01-15T22:03:15.000Z
from __future__ import print_function import time start = time.clock() map = {} for i in range(1, 2000001): map[i] = i sum = 0 for i in range(1, 2000001): sum = sum + map[i] print(sum) for i in range(1, 2000001): del map[i] print("elapsed: " + str(time.clock() - start))
14.15
46
0.639576
49
283
3.591837
0.408163
0.068182
0.102273
0.1875
0.323864
0.323864
0
0
0
0
0
0.111607
0.208481
283
20
46
14.15
0.674107
0
0
0.230769
0
0
0.03169
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.230769
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b91d9ab4e270eeedb9de38d4f3466c69f2e8be26
1,177
py
Python
src/models/model_restore.py
Julienbeaulieu/kaggle-computer-vision-competition
7bc6bcb8b85d81ff1544040c403e356c0a3c8060
[ "MIT" ]
14
2020-12-07T22:24:17.000Z
2022-03-30T05:11:55.000Z
src/models/model_restore.py
Julienbeaulieu/kaggle-computer-vision-competition
7bc6bcb8b85d81ff1544040c403e356c0a3c8060
[ "MIT" ]
null
null
null
src/models/model_restore.py
Julienbeaulieu/kaggle-computer-vision-competition
7bc6bcb8b85d81ff1544040c403e356c0a3c8060
[ "MIT" ]
4
2020-02-22T17:54:23.000Z
2022-01-31T06:41:11.000Z
from pathlib import Path import torch from yacs.config import CfgNode as ConfigurationNode from src.modeling.meta_arch import build_baseline_model from src.models.model_predict import device class RestorationMixin: """ This is a MixIn class, provid class based method to regular models. To REUSE this fun...
30.179487
76
0.6661
151
1,177
5.092715
0.470199
0.041612
0.046814
0
0
0
0
0
0
0
0
0
0.26678
1,177
39
77
30.179487
0.891078
0.352591
0
0
0
0
0.020349
0
0
0
0
0
0
1
0.071429
false
0
0.357143
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
1
0
0
0
0
1
b91dc02d822cd0efae2076666373864943d39795
26,703
py
Python
chii.py
zeekay/chii
5eea6566de343f99bfc240ef57d2c910f6678e41
[ "Unlicense" ]
2
2015-11-01T16:52:04.000Z
2017-03-20T01:25:12.000Z
chii.py
zeekay/chii
5eea6566de343f99bfc240ef57d2c910f6678e41
[ "Unlicense" ]
null
null
null
chii.py
zeekay/chii
5eea6566de343f99bfc240ef57d2c910f6678e41
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import argparse, datetime, new, os, sys, time, traceback, zlib from fnmatch import fnmatch from collections import defaultdict from twisted.words.protocols import irc from twisted.internet import reactor, protocol, defer, threads from twisted.internet.task import LoopingCall from twisted.python i...
37.556962
146
0.587387
3,182
26,703
4.765556
0.164048
0.011079
0.012859
0.010683
0.29913
0.263783
0.218478
0.179834
0.140398
0.10637
0
0.005717
0.292514
26,703
710
147
37.609859
0.796951
0.038348
0
0.25144
0
0.001919
0.079283
0
0
0
0
0
0
0
null
null
0.015355
0.026871
null
null
0.024952
0
0
0
null
0
0
0
0
0
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
b91f7d7e843b8c3f5af1cfabad5e6b86443ccd66
451
py
Python
addons/l10n_in_purchase/__manifest__.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/l10n_in_purchase/__manifest__.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/l10n_in_purchase/__manifest__.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Indian - Purchase Report(GST)', 'version': '1.0', 'description': """GST Purchase Report""", 'category': 'Accounting', 'depends': [ 'l10n_in', 'purchase', ], 'data': ...
22.55
74
0.560976
46
451
5.413043
0.847826
0.11245
0
0
0
0
0
0
0
0
0
0.01497
0.259424
451
19
75
23.736842
0.730539
0.208426
0
0.125
0
0
0.514124
0.087571
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
b9248f46cb3e806014e326b0d18b69764bb6b52c
1,046
py
Python
almoxarifado/migrations/0019_auto_20171018_1741.py
rvmoura96/projeto-almoxarifado
4ca5e5d00f449a940f7c601479bb3fe14c54f012
[ "MIT" ]
1
2019-05-24T17:39:01.000Z
2019-05-24T17:39:01.000Z
almoxarifado/migrations/0019_auto_20171018_1741.py
rvmoura96/projeto-almoxarifado
4ca5e5d00f449a940f7c601479bb3fe14c54f012
[ "MIT" ]
null
null
null
almoxarifado/migrations/0019_auto_20171018_1741.py
rvmoura96/projeto-almoxarifado
4ca5e5d00f449a940f7c601479bb3fe14c54f012
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-18 19:41 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('almoxarifado', '0018_auto_20171017_1528'), ...
29.055556
115
0.565966
99
1,046
5.818182
0.626263
0.041667
0.048611
0.076389
0
0
0
0
0
0
0
0.048815
0.314532
1,046
35
116
29.885714
0.754533
0.06501
0
0.142857
1
0
0.117021
0.024468
0
0
0
0
0
1
0
false
0
0.107143
0
0.214286
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
b928fc941c3e020f301b30452b3b7a2e3b854051
1,436
py
Python
galaxiaclient/common/cli_utils.py
WiproOpenSourcePractice/galaxia
baa6ea0a2192625dce2df7daddb1d983520bb7ab
[ "Apache-2.0" ]
25
2016-04-27T14:45:59.000Z
2020-05-21T00:14:56.000Z
galaxiaclient/common/cli_utils.py
WiproOpenSource/galaxia
baa6ea0a2192625dce2df7daddb1d983520bb7ab
[ "Apache-2.0" ]
62
2016-04-27T14:13:06.000Z
2016-11-16T05:12:21.000Z
galaxiaclient/common/cli_utils.py
WiproOpenSource/galaxia
baa6ea0a2192625dce2df7daddb1d983520bb7ab
[ "Apache-2.0" ]
20
2016-05-01T14:28:09.000Z
2018-10-25T18:11:29.000Z
# Copyright 2016 - Wipro Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
29.916667
74
0.631616
179
1,436
4.977654
0.597765
0.06734
0.029181
0.035915
0
0
0
0
0
0
0
0.007767
0.28273
1,436
47
75
30.553191
0.857282
0.383705
0
0
0
0
0.042821
0
0
0
0
0
0
0
null
null
0
0.095238
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b92ac19c19a751ef30b46a110bf1f78a9f435de5
97,354
py
Python
jenkins/bootstrap_test.py
mikedanese/test-infra
8a15bfaaeea58a2906f4a77c2b0c0a45fd39e33c
[ "Apache-2.0" ]
1
2021-02-22T21:06:48.000Z
2021-02-22T21:06:48.000Z
jenkins/bootstrap_test.py
mikedanese/test-infra
8a15bfaaeea58a2906f4a77c2b0c0a45fd39e33c
[ "Apache-2.0" ]
null
null
null
jenkins/bootstrap_test.py
mikedanese/test-infra
8a15bfaaeea58a2906f4a77c2b0c0a45fd39e33c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 The Kubernetes Authors. # # 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 appli...
41.427234
134
0.565739
11,229
97,354
4.790097
0.082109
0.036365
0.0396
0.039154
0.556091
0.507734
0.459285
0.423849
0.376162
0.33303
0
0.012078
0.298396
97,354
2,349
135
41.44487
0.775401
0.03327
0
0.356695
0
0
0.203352
0.10873
0
0
0
0.000426
0.159519
0
null
null
0.02249
0.006799
null
null
0.000523
0
0
0
null
0
0
0
0
0
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
b92c2271a687569606cd21ff37ab9bc572fa6cfb
1,576
py
Python
main.py
KodeyCode/AGP
0003ce148ff43216c4b0163a3816e64fc86a8be5
[ "MIT" ]
1
2022-01-24T05:18:01.000Z
2022-01-24T05:18:01.000Z
main.py
KodeyCode/AGP
0003ce148ff43216c4b0163a3816e64fc86a8be5
[ "MIT" ]
null
null
null
main.py
KodeyCode/AGP
0003ce148ff43216c4b0163a3816e64fc86a8be5
[ "MIT" ]
null
null
null
from sys import argv,exit import requests COLOR = {"HEADER": "\033[95m","BLUE": "\033[94m","GREEN": "\033[92m","RED": "\033[91m","ENDC": "\033[0m"} def get(repo): try: url = 'https://raw.githubusercontent.com/'+repo+'/main/code.alf' print(COLOR['BLUE']+'Connecting to ['+url+']'+COLOR['ENDC']) ...
43.777778
161
0.568528
222
1,576
4.036036
0.391892
0.066964
0.040179
0.033482
0.522321
0.473214
0.473214
0.473214
0.473214
0.370536
0
0.027287
0.209391
1,576
35
162
45.028571
0.691814
0
0
0.441176
0
0.029412
0.384518
0.023477
0
0
0
0
0
0
null
null
0
0.058824
null
null
0.264706
0
0
0
null
0
0
0
0
0
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
b936b4e891556a626d526e7aa23336ef4fcdc9e9
365
py
Python
setup.py
TehMillhouse/PyMarkovChain
6103c62761ca5a32f241de91d3753cf89806fbc2
[ "Beerware" ]
71
2015-01-11T22:30:42.000Z
2021-08-19T07:01:46.000Z
setup.py
TehMillhouse/PyMarkovChain
6103c62761ca5a32f241de91d3753cf89806fbc2
[ "Beerware" ]
4
2015-01-02T18:50:20.000Z
2020-01-29T08:16:46.000Z
setup.py
TehMillhouse/PyMarkovChain
6103c62761ca5a32f241de91d3753cf89806fbc2
[ "Beerware" ]
17
2015-01-04T01:38:53.000Z
2021-04-09T12:07:58.000Z
from distutils.core import setup setup( name='PyMarkovChain', version='1.7.5', author='Max Wagner', author_email='max@trollbu.de', packages=['pymarkovchain',], url='http://pypi.python.org/pypi/PyMarkovChain/', license='LICENSE.txt', description='Simple markov chain implementation', ...
26.071429
53
0.679452
43
365
5.72093
0.813953
0
0
0
0
0
0
0
0
0
0
0.009709
0.153425
365
13
54
28.076923
0.786408
0
0
0
0
0
0.413699
0
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
b939f98471ce99e17c291b8fd8cb30d3680ce093
4,756
py
Python
booker.py
kevdo475/TimeEdit-Booker
4028658fb249c7ec494e0e4a0a9a441a79f59ba7
[ "MIT" ]
null
null
null
booker.py
kevdo475/TimeEdit-Booker
4028658fb249c7ec494e0e4a0a9a441a79f59ba7
[ "MIT" ]
null
null
null
booker.py
kevdo475/TimeEdit-Booker
4028658fb249c7ec494e0e4a0a9a441a79f59ba7
[ "MIT" ]
null
null
null
import getpass import time import sys from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import Select, WebDriverWait date = raw_...
37.448819
95
0.716989
683
4,756
4.739385
0.225476
0.054062
0.069509
0.135002
0.483781
0.461847
0.327773
0.265987
0.219957
0.219957
0
0.016393
0.089361
4,756
126
96
37.746032
0.731009
0.410219
0
0.175439
0
0.017544
0.173932
0.074288
0
0
0
0.007937
0
1
0
false
0.070175
0.140351
0
0.140351
0.017544
0
0
0
null
0
0
0
0
0
0
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
b93eb33cae7df0a2a1a47e26596d9066c6bee4fa
1,917
py
Python
transipApiV6/Generic.py
jeromba6/transip_api_v6
585019333492b5c241c9cb227ee903796754236a
[ "MIT" ]
null
null
null
transipApiV6/Generic.py
jeromba6/transip_api_v6
585019333492b5c241c9cb227ee903796754236a
[ "MIT" ]
null
null
null
transipApiV6/Generic.py
jeromba6/transip_api_v6
585019333492b5c241c9cb227ee903796754236a
[ "MIT" ]
1
2020-08-09T11:24:37.000Z
2020-08-09T11:24:37.000Z
from OpenSSL import crypto import base64 import requests import random import string import json def randomDigits(self, stringLength=10): """Generate a random string of letters and digits """ return ''.join(random.choice(string.digits) for i in range(stringLength)) class Generic: base_url='https://api.tra...
54.771429
671
0.752739
173
1,917
8.219653
0.543353
0.018987
0.014065
0
0
0
0
0
0
0
0
0.074462
0.152321
1,917
34
672
56.382353
0.800615
0.023996
0
0
1
0
0.445815
0.348712
0
0
0
0
0
1
0.137931
false
0
0.206897
0.034483
0.551724
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b93fc239655dac8cc4bf4a6291e04520aa568a16
1,968
py
Python
src/commercetools/services/messages.py
jeroenubbink/commercetools-python-sdk
ee27768d6fdde3e12618059891d1d4f75dd61390
[ "MIT" ]
null
null
null
src/commercetools/services/messages.py
jeroenubbink/commercetools-python-sdk
ee27768d6fdde3e12618059891d1d4f75dd61390
[ "MIT" ]
null
null
null
src/commercetools/services/messages.py
jeroenubbink/commercetools-python-sdk
ee27768d6fdde3e12618059891d1d4f75dd61390
[ "MIT" ]
null
null
null
# DO NOT EDIT! This file is automatically generated import typing from commercetools._schemas._message import ( MessagePagedQueryResponseSchema, MessageSchema, ) from commercetools.helpers import RemoveEmptyValuesMixin from commercetools.types._message import Message, MessagePagedQueryResponse from commercetoo...
30.276923
84
0.625
184
1,968
6.565217
0.402174
0.056291
0.029801
0.031457
0.231788
0.187086
0.125828
0.125828
0.125828
0.125828
0
0
0.29065
1,968
64
85
30.75
0.86533
0.123984
0
0.04
1
0
0.044326
0
0
0
0
0
0
1
0.04
false
0.02
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b9408931b1a5ecc598e4d223d4406970eb4b9d07
4,883
py
Python
2020/day4.py
smokeytheblair/adventcode2018
2f39660fe9be616d783c40bced4612d3f11a4196
[ "MIT" ]
null
null
null
2020/day4.py
smokeytheblair/adventcode2018
2f39660fe9be616d783c40bced4612d3f11a4196
[ "MIT" ]
null
null
null
2020/day4.py
smokeytheblair/adventcode2018
2f39660fe9be616d783c40bced4612d3f11a4196
[ "MIT" ]
null
null
null
import sys import argparse import math from collections import Counter from operator import xor reset_report = None valid_colors = ["amb", "blu", "brn", "gry", "grn", "hzl", "oth"] def print_usage(name, input_file): print(f"Usage: python3 {name} {input_file}") def load_inputs(input_file): global reset_repor...
25.432292
83
0.601884
612
4,883
4.663399
0.184641
0.092502
0.06377
0.078486
0.49054
0.440785
0.437982
0.401542
0.401542
0.380519
0
0.017141
0.295105
4,883
191
84
25.565445
0.812028
0.015155
0
0.486111
0
0
0.0675
0
0
0
0
0
0
1
0.0625
false
0.486111
0.034722
0
0.3125
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b9453a3f32273d0084ded2325a073a87b40593f3
801
py
Python
atlantic_server/smd/serializers.py
matteli/atlantic_server
d2c77fa172600ee304ebcf86df8242f466f5fb81
[ "MIT" ]
4
2019-08-08T12:46:27.000Z
2019-11-09T19:24:38.000Z
atlantic_server/smd/serializers.py
matteli/atlantic_server
d2c77fa172600ee304ebcf86df8242f466f5fb81
[ "MIT" ]
1
2019-10-21T12:10:39.000Z
2019-10-21T16:35:41.000Z
atlantic_server/smd/serializers.py
matteli/atlantic_server
d2c77fa172600ee304ebcf86df8242f466f5fb81
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Doc, File from ..com.models import User, ModelPlane class DocSerializer(serializers.ModelSerializer): model_plane = serializers.StringRelatedField() class Meta: model = Doc fields = "__all__" class ModelPlaneSerializer(serializers.M...
23.558824
72
0.682896
73
801
7.287671
0.39726
0.195489
0.105263
0.142857
0.31203
0
0
0
0
0
0
0
0.223471
801
33
73
24.272727
0.855305
0.067416
0
0.333333
0
0
0.069892
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.619048
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
b94551bcb36a56fcb48de1f2a5f44b7b1eae22d4
4,662
py
Python
nextnanopy/utils/config.py
nextnanopy/nextnanopy
f28266d444f488726f16c9a4eb08e98720f5f683
[ "BSD-3-Clause" ]
9
2020-12-01T15:32:40.000Z
2022-03-12T06:36:12.000Z
nextnanopy/utils/config.py
nextnanopy/nextnanopy
f28266d444f488726f16c9a4eb08e98720f5f683
[ "BSD-3-Clause" ]
1
2022-03-16T14:46:06.000Z
2022-03-22T14:13:32.000Z
nextnanopy/utils/config.py
nextnanopy/nextnanopy
f28266d444f488726f16c9a4eb08e98720f5f683
[ "BSD-3-Clause" ]
4
2021-07-06T07:25:47.000Z
2022-03-12T06:36:18.000Z
import configparser from copy import deepcopy class Config(object): """ This class stores and manipulates a configuration file. The initialization of the class will execute the load method. ... Parameters ---------- fullpath : str path to the file. ...
31.288591
91
0.585157
543
4,662
4.939227
0.197053
0.029083
0.038031
0.025354
0.223341
0.182327
0.12789
0.111484
0.099925
0.074571
0
0
0.328185
4,662
148
92
31.5
0.856322
0.323895
0
0.138889
0
0
0.027987
0.01507
0
0
0
0
0
1
0.208333
false
0
0.027778
0.041667
0.319444
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b948b8cbb7bc4d4c6228ea3fe9354b8f435fde19
2,285
py
Python
src/store/forms.py
Costopoulos/DeliveryApp
e9bce7c57f1d073b8a07732ee15c248bd25af3d7
[ "MIT" ]
1
2021-05-31T22:07:41.000Z
2021-05-31T22:07:41.000Z
src/store/forms.py
Costopoulos/DeliveryApp
e9bce7c57f1d073b8a07732ee15c248bd25af3d7
[ "MIT" ]
null
null
null
src/store/forms.py
Costopoulos/DeliveryApp
e9bce7c57f1d073b8a07732ee15c248bd25af3d7
[ "MIT" ]
null
null
null
from driver.models import order from django import forms from datetimewidget.widgets import DateTimeWidget class OrderForm(forms.ModelForm): time_to_pickup = forms.CharField(label='Ημερομηνία και ώρα παράδοσης', widget=forms.DateTimeInput( ...
40.803571
92
0.334354
132
2,285
5.734848
0.530303
0.058124
0.031704
0.071334
0.142668
0.142668
0.142668
0.142668
0.142668
0
0
0.01164
0.586433
2,285
56
93
40.803571
0.789418
0.115536
0
0.116279
0
0
0.10995
0
0
0
0
0
0
1
0
false
0
0.069767
0
0.209302
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b94cb84e29c787a17cef1ea945b8b63797ae0932
2,082
py
Python
bigfastapi/utils/utils.py
danieliheonu/bigfastapi
483554776195c9f38bb46ba719b613360eda1028
[ "MIT" ]
1
2022-03-20T21:46:05.000Z
2022-03-20T21:46:05.000Z
bigfastapi/utils/utils.py
danieliheonu/bigfastapi
483554776195c9f38bb46ba719b613360eda1028
[ "MIT" ]
null
null
null
bigfastapi/utils/utils.py
danieliheonu/bigfastapi
483554776195c9f38bb46ba719b613360eda1028
[ "MIT" ]
null
null
null
import random import re import validators import fastapi import json import pkg_resources DATA_PATH = pkg_resources.resource_filename('bigfastapi', 'data/') def generate_short_id(size=9, chars='ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'): return ''.join(random.choice(chars) for _ in range(size)) def validate_email(...
28.916667
107
0.648415
268
2,082
4.876866
0.373134
0.024484
0.057383
0.071155
0.109411
0.082632
0.082632
0.082632
0.082632
0.082632
0
0.01737
0.225744
2,082
71
108
29.323944
0.793424
0
0
0.037037
1
0
0.146013
0.037944
0
0
0
0
0
1
0.12963
false
0
0.111111
0.018519
0.407407
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
b94e225cd35c775021bdb7508c44b21182786276
3,003
py
Python
tensorflow_similarity/classification_metrics/classification_metric.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
706
2021-09-04T02:11:05.000Z
2022-03-31T13:29:14.000Z
tensorflow_similarity/classification_metrics/classification_metric.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
119
2021-09-01T22:32:40.000Z
2022-03-30T22:39:27.000Z
tensorflow_similarity/classification_metrics/classification_metric.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
57
2021-09-04T02:11:14.000Z
2022-03-31T13:29:15.000Z
# Copyright 2021 The TensorFlow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
32.641304
79
0.645022
365
3,003
5.249315
0.394521
0.05428
0.036534
0.06263
0.161273
0.080376
0.080376
0.080376
0
0
0
0.007049
0.291375
3,003
91
80
33
0.893327
0.617716
0
0
0
0
0.036345
0
0
0
0
0
0
1
0.178571
false
0
0.107143
0.107143
0.428571
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
1
0
0
0
1
b95051297a3ba5fb91b9d0b7c0b4f493696a6e9b
3,965
py
Python
ansible/my_env/lib/python2.7/site-packages/ansible/modules/windows/win_wait_for_process.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2019-04-16T21:23:15.000Z
2019-04-16T21:23:15.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/windows/win_wait_for_process.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
5
2020-02-26T20:10:50.000Z
2021-09-23T23:23:18.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/windows/win_wait_for_process.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2020-02-13T14:24:57.000Z
2020-02-13T14:24:57.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2017, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # this is a windows documentation stub, actual code lives in the .ps1 # file of the same name ANSIBLE_METADATA = {'metadata_version': '1.1', ...
30.037879
114
0.69256
547
3,965
4.965265
0.378428
0.014728
0.02025
0.023932
0.232327
0.175994
0.072165
0.027246
0
0
0
0.018303
0.242119
3,965
131
115
30.267176
0.885524
0.064565
0
0.364407
0
0.008475
0.957332
0.025115
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b950b8954e57673d09f01cae68882092339e9d68
8,341
py
Python
local2global/lazy.py
LJeub/Local2Global
6e605664c9ae00e3b0189f3768efdb538ba5338a
[ "MIT" ]
null
null
null
local2global/lazy.py
LJeub/Local2Global
6e605664c9ae00e3b0189f3768efdb538ba5338a
[ "MIT" ]
null
null
null
local2global/lazy.py
LJeub/Local2Global
6e605664c9ae00e3b0189f3768efdb538ba5338a
[ "MIT" ]
null
null
null
# Copyright (c) 2021. Lucas G. S. Jeub # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publi...
28.861592
81
0.599329
1,023
8,341
4.667644
0.204301
0.039581
0.031414
0.037696
0.384712
0.319372
0.284607
0.264293
0.219476
0.209843
0
0.003779
0.302122
8,341
288
82
28.961806
0.816526
0.132478
0
0.471963
0
0
0.018439
0.012339
0
0
0
0
0
1
0.200935
false
0
0.018692
0.042056
0.401869
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
b95768a5276fd86b7cd689024a3b74c151e29e92
3,028
py
Python
utils/mesh.py
eidosmontreal/shape-analysis
62f62db869cc577dcf5a384cd0e72c321d83f976
[ "Apache-2.0" ]
1
2022-02-01T15:55:35.000Z
2022-02-01T15:55:35.000Z
utils/mesh.py
eidosmontreal/shape-analysis
62f62db869cc577dcf5a384cd0e72c321d83f976
[ "Apache-2.0" ]
null
null
null
utils/mesh.py
eidosmontreal/shape-analysis
62f62db869cc577dcf5a384cd0e72c321d83f976
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt cmap = plt.get_cmap('viridis') from typing import NoReturn def mesh2obj(vertices: np.array, faces: np.array, fname: str='mesh.obj',shift:int=1) -> NoReturn: """ Returns a .obj with the input vertices and faces. :param vertices: nx3 np.array of vertices ...
37.382716
132
0.641347
456
3,028
4.22807
0.247807
0.079876
0.105809
0.103734
0.47251
0.409232
0.381224
0.340768
0.260373
0.260373
0
0.016102
0.200132
3,028
80
133
37.85
0.779934
0.277081
0
0.375
0
0
0.185026
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.125
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
b96846f3d2f539155d42b9ebdedde26677b5a52d
5,315
py
Python
openavalancheproject/convert_to_zarr.py
scottcha/OpenAvalancheProject
b59529d907c7bbf1f13ae0c7f39b380ac50a09cb
[ "MIT" ]
52
2018-03-06T22:58:35.000Z
2022-02-21T15:42:02.000Z
openavalancheproject/convert_to_zarr.py
bmiller1881/OpenAvalancheProject
b59529d907c7bbf1f13ae0c7f39b380ac50a09cb
[ "MIT" ]
28
2017-12-04T16:04:32.000Z
2022-02-28T20:51:28.000Z
openavalancheproject/convert_to_zarr.py
bmiller1881/OpenAvalancheProject
b59529d907c7bbf1f13ae0c7f39b380ac50a09cb
[ "MIT" ]
38
2018-03-07T06:04:07.000Z
2021-12-25T20:14:08.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: DataPipelineNotebooks/2.ConvertToZarr.ipynb (unless otherwise specified). __all__ = ['ConvertToZarr'] # Cell import xarray as xr import zarr from joblib import Parallel, delayed import pandas as pd import os # Cell class ConvertToZarr: """ Class which encapsulates ...
38.79562
143
0.58683
679
5,315
4.46539
0.349043
0.026715
0.025726
0.021108
0.021108
0.021108
0.021108
0
0
0
0
0.026272
0.319661
5,315
137
144
38.79562
0.812223
0.276764
0
0.141026
1
0
0.098844
0
0
0
0
0.007299
0.012821
1
0.064103
false
0.012821
0.064103
0
0.179487
0.064103
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
b969704aae0570e7c9dfe12cd12a770e07f5f675
1,781
py
Python
addons/s3compat/apps.py
yuanyuan-deng/RDM-osf.io
e1c54e97c898d26406d71129db7e4baf82802224
[ "Apache-2.0" ]
null
null
null
addons/s3compat/apps.py
yuanyuan-deng/RDM-osf.io
e1c54e97c898d26406d71129db7e4baf82802224
[ "Apache-2.0" ]
8
2018-11-09T05:57:09.000Z
2019-07-25T10:27:55.000Z
addons/s3compat/apps.py
yuanyuan-deng/RDM-osf.io
e1c54e97c898d26406d71129db7e4baf82802224
[ "Apache-2.0" ]
null
null
null
import os from addons.base.apps import BaseAddonAppConfig, generic_root_folder s3compat_root_folder = generic_root_folder('s3compat') HERE = os.path.dirname(os.path.abspath(__file__)) TEMPLATE_PATH = os.path.join( HERE, 'templates' ) class S3CompatAddonAppConfig(BaseAddonAppConfig): name = 'addons.s3com...
28.725806
87
0.711398
202
1,781
5.881188
0.326733
0.080808
0.025253
0.055556
0.191919
0.191919
0.077441
0.077441
0
0
0
0.015515
0.203818
1,781
61
88
29.196721
0.822285
0.001123
0
0.078431
0
0
0.222285
0.140124
0
0
0
0
0
1
0.078431
false
0
0.058824
0.058824
0.647059
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
b96b7640264ea3fd546ab9ca2bfbc06c473ac81d
1,935
py
Python
python/232_Implement_Queue_using_Stacks.py
willa-jin/leetcode-1
a4459a729483a7eaf5e59730ab9409e7e7368c32
[ "MIT" ]
null
null
null
python/232_Implement_Queue_using_Stacks.py
willa-jin/leetcode-1
a4459a729483a7eaf5e59730ab9409e7e7368c32
[ "MIT" ]
null
null
null
python/232_Implement_Queue_using_Stacks.py
willa-jin/leetcode-1
a4459a729483a7eaf5e59730ab9409e7e7368c32
[ "MIT" ]
null
null
null
# class Queue(object): # def __init__(self): # """ # initialize your data structure here. # """ # self.stack1 = [] # self.stack2 = [] # # # def push(self, x): # """ # :type x: int # :rtype: nothing # """ # while len(self.stack1) > 0...
20.806452
57
0.446512
195
1,935
4.297436
0.174359
0.085919
0.139618
0.060859
0.742243
0.647971
0.621718
0.621718
0.544153
0.46778
0
0.015734
0.408786
1,935
92
58
21.032609
0.716783
0.467183
0
0.454545
0
0
0
0
0
0
0
0
0
1
0.227273
false
0
0
0
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b96b8d593bf92da92ce8926b71c43f5b24330a7f
1,544
py
Python
byro_directdebit/default.py
MoritzFago/byro-directdebit
447cdfae10515618510800da09319e808ca59a85
[ "Apache-2.0" ]
1
2021-06-06T15:50:52.000Z
2021-06-06T15:50:52.000Z
byro_directdebit/default.py
MoritzFago/byro-directdebit
447cdfae10515618510800da09319e808ca59a85
[ "Apache-2.0" ]
null
null
null
byro_directdebit/default.py
MoritzFago/byro-directdebit
447cdfae10515618510800da09319e808ca59a85
[ "Apache-2.0" ]
1
2020-03-23T02:08:06.000Z
2020-03-23T02:08:06.000Z
from i18nfield.strings import LazyI18nString from django.utils.translation import ugettext_lazy as _ MANDATE_REFERENCE_NOTIFICATION_SUBJECT = LazyI18nString.from_gettext(_('SEPA Direct Debit mandate reference notification')) MANDATE_REFERENCE_NOTIFICATION_TEXT = LazyI18nString.from_gettext( _( '''Hi, thi...
27.087719
123
0.746762
212
1,544
5.273585
0.349057
0.11449
0.089445
0.06619
0.711986
0.711986
0.647585
0.647585
0.542039
0.542039
0
0.009608
0.191062
1,544
56
124
27.571429
0.885508
0
0
0.153846
0
0
0.156942
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b973887ec8e297a436a61dd08bdaf64a302fcf76
11,346
py
Python
scanpipe/pipes/rootfs.py
hyounes4560/scancode.io
62911d1fe692327a23af85fa9668344deb5b9ebd
[ "Apache-2.0" ]
null
null
null
scanpipe/pipes/rootfs.py
hyounes4560/scancode.io
62911d1fe692327a23af85fa9668344deb5b9ebd
[ "Apache-2.0" ]
null
null
null
scanpipe/pipes/rootfs.py
hyounes4560/scancode.io
62911d1fe692327a23af85fa9668344deb5b9ebd
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # http://nexb.com and https://github.com/nexB/scancode.io # The ScanCode.io software is licensed under the Apache License version 2.0. # Data generated with ScanCode.io is provided as-is without warranties. # ScanCode is a trademark of nexB Inc. # # You may not use this software ...
33.175439
85
0.668782
1,398
11,346
5.269671
0.243205
0.020361
0.013031
0.009773
0.148772
0.10547
0.066377
0.0357
0.019818
0.019818
0
0.003882
0.250749
11,346
341
86
33.272727
0.862722
0.304248
0
0.057895
1
0
0.0872
0.003067
0
0
0
0
0
1
0.068421
false
0.010526
0.057895
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b97a69555ae96dff2d2ae383b1a432e3ef55348c
243
py
Python
PythonBrasil/EstruturaDeDecisao/1.py
rafhaelom/Python
293c410b460b58b9ffcbadba0f8e5304e04c53be
[ "MIT" ]
null
null
null
PythonBrasil/EstruturaDeDecisao/1.py
rafhaelom/Python
293c410b460b58b9ffcbadba0f8e5304e04c53be
[ "MIT" ]
2
2021-05-19T01:58:50.000Z
2021-05-19T02:00:01.000Z
PythonBrasil/EstruturaDeDecisao/1.py
rafhaelom/Python
293c410b460b58b9ffcbadba0f8e5304e04c53be
[ "MIT" ]
null
null
null
# 1 - Faça um Programa que peça dois números e imprima o # maior deles. num1 = input("Digite um número: ") num2 = input("Digite outro número: ") if(num1 > num2): print(f"O maior é {num1}") else: print(f"O maior é {num2}")
22.090909
58
0.613169
39
243
3.820513
0.615385
0.120805
0.09396
0.161074
0.174497
0
0
0
0
0
0
0.038462
0.251029
243
10
59
24.3
0.78022
0.279835
0
0
0
0
0.438272
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b9852c601f69e076338b5c69bfac23ed8f4f915d
1,453
py
Python
scripts/parse_problog_output.py
dilkas/random-logic-programs
031cc73a6f654bc52916d0ac4ed3386fd29de188
[ "MIT" ]
null
null
null
scripts/parse_problog_output.py
dilkas/random-logic-programs
031cc73a6f654bc52916d0ac4ed3386fd29de188
[ "MIT" ]
null
null
null
scripts/parse_problog_output.py
dilkas/random-logic-programs
031cc73a6f654bc52916d0ac4ed3386fd29de188
[ "MIT" ]
null
null
null
import csv import os DIR = '../generated/problog_output/' def extract_parameters_from_filename(filename): values = filename[:filename.rindex('.')].split('_') names = ['number.of.predicates', 'number.of.variables', 'maximum.number.of.nodes', 'maximum.arity', 'number.of.independent.pai...
34.595238
83
0.579491
168
1,453
4.964286
0.47619
0.047962
0.05036
0.069544
0.088729
0
0
0
0
0
0
0.00186
0.260151
1,453
41
84
35.439024
0.773953
0
0
0.111111
1
0
0.203716
0.08947
0
0
0
0
0
1
0.027778
false
0
0.055556
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b989eff9a74d04d9e4bc184a5f709fbfbc35d4a7
1,273
py
Python
passbook/core/forms/users.py
fossabot/passbook
cba17f6659404445ac3025f11657d89368cc8b4f
[ "MIT" ]
null
null
null
passbook/core/forms/users.py
fossabot/passbook
cba17f6659404445ac3025f11657d89368cc8b4f
[ "MIT" ]
null
null
null
passbook/core/forms/users.py
fossabot/passbook
cba17f6659404445ac3025f11657d89368cc8b4f
[ "MIT" ]
null
null
null
"""passbook core user forms""" from django import forms from django.forms import ValidationError from django.utils.translation import gettext_lazy as _ from passbook.core.models import User class UserDetailForm(forms.ModelForm): """Update User Details""" class Meta: model = User fields = [...
29.604651
87
0.651218
132
1,273
6.151515
0.439394
0.103448
0.081281
0.066502
0.229064
0.197044
0
0
0
0
0
0
0.227808
1,273
42
88
30.309524
0.826043
0.10055
0
0.142857
0
0
0.177936
0
0
0
0
0
0
1
0.035714
false
0.571429
0.142857
0
0.392857
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
b98dae3ad84494cb99144a64a4aff46eacfe8fed
3,881
py
Python
itml.py
franblas/facialrecoChallenge
db898eda760f09730b15240c6cb02a439b4858ca
[ "MIT" ]
null
null
null
itml.py
franblas/facialrecoChallenge
db898eda760f09730b15240c6cb02a439b4858ca
[ "MIT" ]
null
null
null
itml.py
franblas/facialrecoChallenge
db898eda760f09730b15240c6cb02a439b4858ca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jun 18 19:04:51 2015 @author: Paco """ """ Information Theoretic Metric Learning, Kulis et al., ICML 2007 """ import numpy as np from sklearn.metrics import pairwise_distances from base_metric import BaseMetricLearner class ITML(BaseMetricLearner): """ Information The...
31.048
78
0.608606
614
3,881
3.7443
0.285016
0.023923
0.006525
0.008699
0.187908
0.161809
0.087864
0.076555
0.076555
0.076555
0
0.020102
0.243752
3,881
125
79
31.048
0.763203
0.054883
0
0.204819
0
0
0.020013
0
0
0
0
0
0.012048
0
null
null
0
0.036145
null
null
0.024096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b98e2fed2f360b1af71664db84e42a09803c15ef
2,977
py
Python
resources/test_cases/python/ucryptolib/TestRule3.py
stg-tud/licma
b899e6e682f7716d19e79d6ce7b73c28c6efd4cf
[ "MIT" ]
5
2021-09-13T11:24:13.000Z
2022-03-18T21:56:58.000Z
resources/test_cases/python/ucryptolib/TestRule3.py
stg-tud/licma
b899e6e682f7716d19e79d6ce7b73c28c6efd4cf
[ "MIT" ]
null
null
null
resources/test_cases/python/ucryptolib/TestRule3.py
stg-tud/licma
b899e6e682f7716d19e79d6ce7b73c28c6efd4cf
[ "MIT" ]
1
2021-09-13T06:02:20.000Z
2021-09-13T06:02:20.000Z
# https://hwwong168.wordpress.com/2019/09/25/esp32-micropython-implementation-of-cryptographic/ import uos from ucryptolib import aes, MODE_ECB, MODE_CBC g_key1 = b"1234567812345678" g_key2 = bytes("1234567812345678", "utf8") def p_example1_hard_coded1(data): cipher = aes(b"1234567812345678", MODE_ECB) ciphe...
24.401639
95
0.737991
416
2,977
4.956731
0.182692
0.126091
0.081959
0.107178
0.618332
0.602813
0.597963
0.586809
0.586809
0.508729
0
0.10836
0.172321
2,977
121
96
24.603306
0.72849
0.03124
0
0.617284
0
0
0.074948
0
0
0
0
0
0
1
0.222222
false
0
0.024691
0.012346
0.469136
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
b99097f1738c7fc70bba8107bbfa5c336594e59e
1,662
py
Python
bin/reading_csv.py
bbi-lab/bbi-sge
5de7ea7c75a4b2afc8c485d215ef5a058cb86c43
[ "MIT" ]
null
null
null
bin/reading_csv.py
bbi-lab/bbi-sge
5de7ea7c75a4b2afc8c485d215ef5a058cb86c43
[ "MIT" ]
null
null
null
bin/reading_csv.py
bbi-lab/bbi-sge
5de7ea7c75a4b2afc8c485d215ef5a058cb86c43
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pandas as pd import argparse import sys import subprocess # Taking variables that are declared in main.nf by argparser if __name__ == '__main__': parser = argparse.ArgumentParser(description='parameters for nomenclature') parser.add_argument('--path', help='sample sheet') ...
26.806452
78
0.590253
227
1,662
4.167401
0.480176
0.029598
0.022199
0.023256
0
0
0
0
0
0
0
0.013468
0.285199
1,662
62
79
26.806452
0.782828
0.061372
0
0
0
0
0.097796
0
0
0
0
0
0
0
null
null
0
0.190476
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b99190ccf15de8ab59b1ed5974955e3606c86480
2,154
py
Python
checkers_py/common/debugger_helper.py
intel/diagnostics-utility
380166619294e4292621855f7cfd4cc8e39c6123
[ "BSD-3-Clause" ]
5
2021-12-13T07:35:43.000Z
2022-01-14T15:36:26.000Z
checkers_py/common/debugger_helper.py
intel/diagnostics-utility
380166619294e4292621855f7cfd4cc8e39c6123
[ "BSD-3-Clause" ]
null
null
null
checkers_py/common/debugger_helper.py
intel/diagnostics-utility
380166619294e4292621855f7cfd4cc8e39c6123
[ "BSD-3-Clause" ]
null
null
null
# /******************************************************************************* # Copyright Intel Corporation. # This software and the related documents are Intel copyrighted materials, and your use of them # is governed by the express license under which they were provided to you (License). # Unless the License pro...
37.789474
101
0.649025
294
2,154
4.55102
0.377551
0.035874
0.037369
0.041854
0.2713
0.204036
0.204036
0.130045
0.130045
0.130045
0
0.001123
0.173166
2,154
56
102
38.464286
0.75014
0.333798
0
0
0
0
0.183989
0
0
0
0
0
0
1
0.1875
false
0.0625
0.125
0.03125
0.40625
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
b99ef36efce1db04806c633b1fb2c2e3bc6acfb8
709
py
Python
jx3_scheduledaily.py
Fly-Potato/nj
63f70106d29959e757bc8d49a1295f30d80f369c
[ "MIT" ]
null
null
null
jx3_scheduledaily.py
Fly-Potato/nj
63f70106d29959e757bc8d49a1295f30d80f369c
[ "MIT" ]
null
null
null
jx3_scheduledaily.py
Fly-Potato/nj
63f70106d29959e757bc8d49a1295f30d80f369c
[ "MIT" ]
null
null
null
import httpx import nonebot from aiocqhttp.exceptions import Error as CQHttpError @nonebot.scheduler.scheduled_job('cron', hour='8', misfire_grace_time=2) async def _(): bot = nonebot.get_bot() api = f'https://jx3api.com/app/getDaily?server=绝代天骄' try: res = httpx.get(api) dictionary = res....
37.315789
154
0.660085
91
709
5.054945
0.769231
0.069565
0
0
0
0
0
0
0
0
0
0.022184
0.173484
709
18
155
39.388889
0.762799
0
0
0
0
0.0625
0.283498
0.1622
0
0
0
0
0
1
0
false
0.0625
0.1875
0
0.1875
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
b99f508cc0ad79e189a2e1591e4e7143788b97ba
973
py
Python
tcp_ip/python/client/client.py
aalopes/codeSnippets
424de726c26342643ad3e611765ac508f3bbc085
[ "Unlicense" ]
null
null
null
tcp_ip/python/client/client.py
aalopes/codeSnippets
424de726c26342643ad3e611765ac508f3bbc085
[ "Unlicense" ]
null
null
null
tcp_ip/python/client/client.py
aalopes/codeSnippets
424de726c26342643ad3e611765ac508f3bbc085
[ "Unlicense" ]
null
null
null
#!/usr/bin/python """ Note that in order to make this work with Matlab one needs to wait a bit between opening the connection and sending data to the server, otherwise the server fails to read the data: cf. http://stackoverflow.com/questions/20271970/matlab-sockets-wait-for-response Alexandre Lopes (adapted from Py...
20.702128
80
0.633094
138
973
4.442029
0.637681
0.044046
0.063622
0
0
0
0
0
0
0
0
0.037762
0.265159
973
46
81
21.152174
0.81958
0.113052
0
0.238095
0
0
0.041584
0
0
0
0
0
0
0
null
null
0
0.095238
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b9a1ab6f3aa90aecdd28e71f000017e8df1b0657
487
py
Python
end_to_end_tests/golden-record-custom/custom_e2e/api/tests/no_response_tests_no_response_get.py
upciti/openapi-python-client
2931e8da5679f0044029ad6be758bdaa59b516e7
[ "MIT" ]
null
null
null
end_to_end_tests/golden-record-custom/custom_e2e/api/tests/no_response_tests_no_response_get.py
upciti/openapi-python-client
2931e8da5679f0044029ad6be758bdaa59b516e7
[ "MIT" ]
47
2020-12-02T07:04:31.000Z
2022-02-10T22:11:24.000Z
end_to_end_tests/golden-record-custom/custom_e2e/api/tests/no_response_tests_no_response_get.py
upciti/openapi-python-client
2931e8da5679f0044029ad6be758bdaa59b516e7
[ "MIT" ]
1
2021-11-04T10:26:12.000Z
2021-11-04T10:26:12.000Z
import httpx from ...types import Response Client = httpx.Client def _build_response(*, response: httpx.Response) -> Response[None]: return Response( status_code=response.status_code, content=response.content, headers=response.headers, parsed=None, ) def httpx_request( ...
18.037037
67
0.650924
51
487
6.058824
0.372549
0.20712
0.135922
0
0
0
0
0
0
0
0
0
0.240246
487
26
68
18.730769
0.835135
0
0
0
0
0
0.043121
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0.055556
0.333333
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