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
d8681bd0cf3b8a72eaf239299014e64f3fe891d5
307
py
Python
autokey/data/MacOS/newtab.py
ankur-gupta/keyboard
5fb6d1e45a3c1956c18d4f2464eacb79397b8aab
[ "MIT" ]
1
2018-03-12T20:52:31.000Z
2018-03-12T20:52:31.000Z
autokey/data/MacOS/newtab.py
ankur-gupta/keyboard
5fb6d1e45a3c1956c18d4f2464eacb79397b8aab
[ "MIT" ]
null
null
null
autokey/data/MacOS/newtab.py
ankur-gupta/keyboard
5fb6d1e45a3c1956c18d4f2464eacb79397b8aab
[ "MIT" ]
null
null
null
# Enter script code import re winClass = window.get_active_class() isTerminalWin1 = re.search("konsole\\.konsole", winClass) isTerminalWin2 = re.search("x+terminal.*", winClass) if isTerminalWin1 or isTerminalWin2: keyboard.send_keys("<ctrl>+<shift>+t") else: keyboard.send_keys("<ctrl>+t")
30.7
57
0.71987
38
307
5.710526
0.657895
0.073733
0.147465
0.184332
0
0
0
0
0
0
0
0.014981
0.130293
307
9
58
34.111111
0.797753
0.055375
0
0
0
0
0.184028
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d8965945ad6985da1a9a4430d54d6216025cbd48
110
py
Python
exercices/003.py
haxuyennt38/python-learning
c5fcfc0abfd4aebf4ce58e2f23d378703bd48430
[ "MIT" ]
null
null
null
exercices/003.py
haxuyennt38/python-learning
c5fcfc0abfd4aebf4ce58e2f23d378703bd48430
[ "MIT" ]
null
null
null
exercices/003.py
haxuyennt38/python-learning
c5fcfc0abfd4aebf4ce58e2f23d378703bd48430
[ "MIT" ]
null
null
null
yearOfbirthday = int(input()) year = 2017 age = year - yearOfbirthday print (f'In 2017, i am {age} years old')
27.5
40
0.7
17
110
4.529412
0.764706
0
0
0
0
0
0
0
0
0
0
0.086957
0.163636
110
4
40
27.5
0.75
0
0
0
0
0
0.261261
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d8a7230534db073c5ffa3f79a291a7bc904c8d11
361
py
Python
yelp/obj/region.py
ruchir594/messenger-bot-yelp-aws
757d9e3e599432954a1acbf477b2f40e5c2d247c
[ "MIT" ]
8
2016-05-13T20:59:39.000Z
2017-02-01T03:26:57.000Z
yelp/obj/region.py
ruchir594/messenger-bot-yelp-aws
757d9e3e599432954a1acbf477b2f40e5c2d247c
[ "MIT" ]
1
2016-08-08T03:53:21.000Z
2016-08-08T04:09:07.000Z
yelp/obj/region.py
ruchir594/messenger-bot-yelp-aws
757d9e3e599432954a1acbf477b2f40e5c2d247c
[ "MIT" ]
4
2016-06-21T00:26:55.000Z
2019-12-23T15:55:42.000Z
# -*- coding: UTF-8 -*- from yelp.obj.coordinate import Coordinate from yelp.obj.response_object import ResponseObject from yelp.obj.span import Span class Region(ResponseObject): def __init__(self, response): super(Region, self).__init__(response) self._parse('center', Coordinate, response) ...
25.785714
51
0.711911
44
361
5.590909
0.454545
0.097561
0.134146
0
0
0
0
0
0
0
0
0.003344
0.171745
361
13
52
27.769231
0.819398
0.058172
0
0
0
0
0.029586
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d8a93321e34f3f2ddc18f49907a9271df644f115
124
py
Python
SensorMonitor/__init__.py
Nzbuu/SensorMonitor
4523e9accc3e57718d752d4f2a22fdb77f80fd82
[ "MIT" ]
null
null
null
SensorMonitor/__init__.py
Nzbuu/SensorMonitor
4523e9accc3e57718d752d4f2a22fdb77f80fd82
[ "MIT" ]
null
null
null
SensorMonitor/__init__.py
Nzbuu/SensorMonitor
4523e9accc3e57718d752d4f2a22fdb77f80fd82
[ "MIT" ]
null
null
null
__author__ = 'James Myatt' __version__ = '0.0.2' __all__ = [ 'monitor', 'sensor', 'utils', 'time', 'w1therm' ]
15.5
33
0.564516
13
124
4.461538
0.923077
0
0
0
0
0
0
0
0
0
0
0.042105
0.233871
124
7
34
17.714286
0.568421
0
0
0
0
0
0.362903
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d8b4ef88996d2847dce287ee8237d1d76d1f9da8
586
py
Python
abb_deeplearning_keras/Source_code/models/quiver_server.py
habichta/ETHZDeepReinforcementLearning
e1ae22159753724290f20068214bb3d94fcb7be4
[ "BSD-3-Clause" ]
7
2018-01-23T05:17:50.000Z
2020-10-30T02:29:59.000Z
abb_deeplearning_keras/Source_code/models/quiver_server.py
habichta/ETHZDeepReinforcementLearning
e1ae22159753724290f20068214bb3d94fcb7be4
[ "BSD-3-Clause" ]
null
null
null
abb_deeplearning_keras/Source_code/models/quiver_server.py
habichta/ETHZDeepReinforcementLearning
e1ae22159753724290f20068214bb3d94fcb7be4
[ "BSD-3-Clause" ]
2
2018-01-23T05:17:58.000Z
2018-07-02T00:13:34.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Jun 14 12:31:13 2017 @author: maverick """ import keras from keras.applications import vgg16 #model = vgg16.VGG16() # #from quiver_engine.server import launch #launch(model, input_folder='./img', port=7000) import resnet model ...
22.538462
96
0.715017
84
586
4.833333
0.630952
0.049261
0.078818
0.108374
0.29064
0.29064
0.29064
0.29064
0.29064
0.29064
0
0.085657
0.143345
586
25
97
23.44
0.723108
0.348123
0
0
0
0
0.241279
0.212209
0
0
0
0
0
1
0
false
0
0.571429
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d8b9aa2f627ed0a618578ec601b0b22134b69e0f
1,638
py
Python
test/test_beacon_api.py
NCATS-Tangerine/tkbeacon-python-client
a5a88405b6eb5c998b66f6741b589ba72839fd51
[ "MIT" ]
null
null
null
test/test_beacon_api.py
NCATS-Tangerine/tkbeacon-python-client
a5a88405b6eb5c998b66f6741b589ba72839fd51
[ "MIT" ]
null
null
null
test/test_beacon_api.py
NCATS-Tangerine/tkbeacon-python-client
a5a88405b6eb5c998b66f6741b589ba72839fd51
[ "MIT" ]
null
null
null
# coding: utf-8 """ Translator Knowledge Beacon API This is the Translator Knowledge Beacon web service application programming interface (API). # noqa: E501 The version of the OpenAPI document: 1.3.0 Contact: richard@starinformatics.com Generated by: https://openapi-generator.tech """ from _...
19.73494
111
0.642247
196
1,638
5.086735
0.362245
0.056169
0.088265
0.112337
0.30993
0.138415
0
0
0
0
0
0.010943
0.274725
1,638
82
112
19.97561
0.828283
0.415751
0
0.321429
0
0
0.00907
0
0
0
0
0
0
1
0.357143
false
0.321429
0.178571
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
d8c48b7d57359870b490a90227e4ef21b9bcd088
1,384
py
Python
exchange_plugin/consumer.py
FastyBird/application-exchange
66fedb46b684e5a2fa29e6d654cf7fb9df2b5ee5
[ "Apache-2.0" ]
null
null
null
exchange_plugin/consumer.py
FastyBird/application-exchange
66fedb46b684e5a2fa29e6d654cf7fb9df2b5ee5
[ "Apache-2.0" ]
null
null
null
exchange_plugin/consumer.py
FastyBird/application-exchange
66fedb46b684e5a2fa29e6d654cf7fb9df2b5ee5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Copyright 2021. FastyBird s.r.o. # # 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 re...
29.446809
78
0.689306
176
1,384
5.403409
0.670455
0.063091
0.02734
0.033649
0
0
0
0
0
0
0
0.008443
0.229769
1,384
46
79
30.086957
0.883677
0.671243
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d8ca50d05d227a6bd61f471eef16a683056e344e
380
py
Python
test/test_sshtype.py
stribika/sshlabs
421e62433aab0e21456254a0b2c5feb830d0c77c
[ "Unlicense" ]
76
2015-01-24T19:18:31.000Z
2021-03-11T11:17:14.000Z
test/test_sshtype.py
stribika/sshlabs
421e62433aab0e21456254a0b2c5feb830d0c77c
[ "Unlicense" ]
8
2015-01-24T18:59:57.000Z
2017-06-07T13:07:34.000Z
test/test_sshtype.py
stribika/sshlabs
421e62433aab0e21456254a0b2c5feb830d0c77c
[ "Unlicense" ]
21
2015-01-24T18:56:52.000Z
2021-03-10T14:33:14.000Z
import sys import unittest sys.path.append("../main") from sshtype import * class TestUInt32(unittest.TestCase): def test_from_bytes(self): uint32 = UInt32() self.assertEqual(uint32.from_bytes(b"\x00\x00\x01\x02"), (b"", 0x102)) def test_to_bytes(self): uint32 = UInt32() self...
23.75
78
0.665789
52
380
4.75
0.480769
0.05668
0.121457
0.17004
0.340081
0.340081
0.340081
0
0
0
0
0.129032
0.184211
380
15
79
25.333333
0.667742
0
0
0.181818
0
0
0.102632
0
0
0
0.031579
0
0.181818
1
0.181818
false
0
0.272727
0
0.545455
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
1
0
0
2
d8cba97cb8816c7aeda1bf733a60793f225c76f2
392
py
Python
eventlet_raft/tests/test_client.py
jason-ni/eventlet-raft
12d97d7b90f4ecd4849ecf5ca3e36dc3879e1d2b
[ "Apache-2.0" ]
3
2015-05-22T05:30:29.000Z
2016-01-06T10:14:31.000Z
eventlet_raft/tests/test_client.py
jason-ni/eventlet-raft
12d97d7b90f4ecd4849ecf5ca3e36dc3879e1d2b
[ "Apache-2.0" ]
null
null
null
eventlet_raft/tests/test_client.py
jason-ni/eventlet-raft
12d97d7b90f4ecd4849ecf5ca3e36dc3879e1d2b
[ "Apache-2.0" ]
null
null
null
from glob import glob import os from unittest import TestCase from nose.plugins.attrib import attr from ..client import RaftClient class RaftClientTest(TestCase): @classmethod def tearDownClass(cls): map(os.remove, glob('./~test_file*')) @attr("integration") def test_client_init(self): ...
19.6
48
0.683673
49
392
5.408163
0.612245
0.075472
0
0
0
0
0
0
0
0
0
0.031949
0.201531
392
19
49
20.631579
0.814696
0
0
0
0
0
0.084184
0
0
0
0
0
0
1
0.153846
false
0
0.384615
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d8ccfdce9caee10035d22fbe4da0b0cf737f602c
1,852
py
Python
roc-prepare3.py
catherinekerr/ip-ensemble
a1ddcf0260d5a210dd55ae5faf015f3a8792c812
[ "Apache-2.0" ]
1
2020-07-25T10:55:21.000Z
2020-07-25T10:55:21.000Z
roc-prepare3.py
jmarecek/ip-ensemble
9a867373ea1c99c746debdc9d7aa3a76e00b2005
[ "Apache-2.0" ]
1
2019-10-16T20:18:26.000Z
2019-10-16T20:18:26.000Z
roc-prepare3.py
catherinekerr/ip-ensemble
a1ddcf0260d5a210dd55ae5faf015f3a8792c812
[ "Apache-2.0" ]
null
null
null
""" Construct the ROC plot. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license in the LICENSE file in the root directory of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. Any modifications or derivative works of this code must retain this copyright ...
30.360656
146
0.736501
278
1,852
4.881295
0.690647
0.017686
0
0
0
0
0
0
0
0
0
0.058937
0.157127
1,852
60
147
30.866667
0.810378
0.12797
0
0
0
0
0.063172
0.047043
0
0
0
0
0
0
null
null
0
0.481481
null
null
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
d8cfe5c85d4c780f5fe5a04c1b84c01f4f74a9e3
1,818
py
Python
go/contacts/import_handlers.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/contacts/import_handlers.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/contacts/import_handlers.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
from go.contacts import tasks, utils from go.contacts.parsers import ContactFileParser class ContactImportException(Exception): """ Exception raised when an import handler determines that an import cannot succeed. """ def dispatch_import_task(import_task, request, group, check_fields=None): file...
33.054545
78
0.735424
245
1,818
5.15102
0.379592
0.066561
0.057052
0.061807
0.298732
0.211569
0.162441
0.162441
0.125198
0.085578
0
0
0.187569
1,818
54
79
33.666667
0.854435
0.112211
0
0.096774
0
0
0.040829
0
0
0
0
0
0
1
0.16129
false
0
0.548387
0.096774
0.83871
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d8d623e88b523d074fcb064df7ff09e465d2847b
1,823
py
Python
BrainML/optimizer.py
bogdan124/DeepML
ad5e904cc9fcd3c499bbca3538525d83fde003f5
[ "Apache-2.0" ]
null
null
null
BrainML/optimizer.py
bogdan124/DeepML
ad5e904cc9fcd3c499bbca3538525d83fde003f5
[ "Apache-2.0" ]
null
null
null
BrainML/optimizer.py
bogdan124/DeepML
ad5e904cc9fcd3c499bbca3538525d83fde003f5
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf class Optimizer: def __init__(self,optimizerName=None): """ Here you have the Optimizer class, optimizerName is the optimizer that you want to chose: ex: Optimizer("Adam") optimizerName can be one of the following Adam, Adadelta, Adagrad, Adamax, Nadam, Sgd, Rmsprop """ ...
26.808824
109
0.659353
233
1,823
5.098712
0.317597
0.047138
0.074074
0.094276
0
0
0
0
0
0
0
0.029167
0.210093
1,823
67
110
27.208955
0.795833
0.259462
0
0.133333
0
0
0.042588
0
0
0
0
0
0
1
0.266667
false
0.133333
0.033333
0
0.433333
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
d8e061713db2c288586dc6014b12b5d47b5cd800
66
py
Python
drones/version.py
bugout-dev/drones
9af74215a93e364463b1373e7055735f0eef45b0
[ "Apache-2.0" ]
null
null
null
drones/version.py
bugout-dev/drones
9af74215a93e364463b1373e7055735f0eef45b0
[ "Apache-2.0" ]
5
2021-07-13T19:18:54.000Z
2021-08-25T11:11:17.000Z
drones/version.py
bugout-dev/drones
9af74215a93e364463b1373e7055735f0eef45b0
[ "Apache-2.0" ]
null
null
null
""" Drones library and API version. """ DRONES_VERSION = "0.1.2"
11
31
0.651515
10
66
4.2
0.8
0
0
0
0
0
0
0
0
0
0
0.054545
0.166667
66
5
32
13.2
0.709091
0.469697
0
0
0
0
0.185185
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d8e9bd22610fd3818aa67bc056c53e3bfa6d9b36
755
py
Python
python.py
Xsmael/blockhain-implementation
984e769c8dadb5c90216ebcf8cd98114a64b8a44
[ "MIT" ]
2
2020-10-23T09:05:39.000Z
2021-12-24T09:46:51.000Z
python.py
Xsmael/blockchain-implementation
984e769c8dadb5c90216ebcf8cd98114a64b8a44
[ "MIT" ]
null
null
null
python.py
Xsmael/blockchain-implementation
984e769c8dadb5c90216ebcf8cd98114a64b8a44
[ "MIT" ]
null
null
null
import json a= [1,2,3,4,5,6,7,8,9,10] print(a) b=[el*2 for el in a] # double everything print(b) print([el*10 for el in a]) # 10X everything print([el for el in a if el%2 ==0]) # filter even nums print([el for el in a if el%2 !=0]) # filter odd nums print([el for el in a if el%5 ==0]) # filter multiples of 5 c=...
19.358974
76
0.598675
168
755
2.690476
0.297619
0.088496
0.123894
0.106195
0.391593
0.325221
0.325221
0.294248
0.179204
0.119469
0
0.06822
0.203974
755
39
77
19.358974
0.68386
0.150993
0
0.086957
0
0
0.01735
0
0
0
0
0
0
0
null
null
0
0.086957
null
null
0.521739
0
0
0
null
0
0
0
0
0
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
1
0
2
d8ebc194794e59dcd8ef162cae6d6b84fa4669ac
763
py
Python
dynamo/api/views.py
rendrom/django-dynamit
4280da60212ffd9ad6a8cb96a7eba0890a98fee5
[ "MIT" ]
3
2015-01-20T18:43:16.000Z
2015-12-09T06:46:55.000Z
dynamo/api/views.py
rendrom/django-dynamit
4280da60212ffd9ad6a8cb96a7eba0890a98fee5
[ "MIT" ]
null
null
null
dynamo/api/views.py
rendrom/django-dynamit
4280da60212ffd9ad6a8cb96a7eba0890a98fee5
[ "MIT" ]
null
null
null
# coding=utf-8 from dynamo.api.serializers import DynamicModelSerializer, DynamicModelFieldSerializer from dynamo.models import DynamicModel, DynamicModelField from rest_framework import viewsets from rest_framework import generics from rest_framework.renderers import TemplateHTMLRenderer, JSONRenderer, HTMLFormRendere...
33.173913
89
0.815203
65
763
9.461538
0.553846
0.052033
0.110569
0.074797
0
0
0
0
0
0
0
0.00152
0.137615
763
22
90
34.681818
0.933131
0.150721
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
2b08787effb6f7bbb1ae2706ee9a8d4b32070149
1,057
py
Python
pfproject_py/pfgrid.py
assassin945/PixelFight
eca26825dcba17748a5f5c1e9f778aecd3824a4c
[ "Apache-2.0" ]
2
2018-06-27T09:14:18.000Z
2018-08-30T06:51:33.000Z
pfproject_py/pfgrid.py
assassin945/PixelFight
eca26825dcba17748a5f5c1e9f778aecd3824a4c
[ "Apache-2.0" ]
5
2018-07-23T14:41:14.000Z
2018-09-07T15:48:18.000Z
pfproject_py/pfgrid.py
assassin945/PixelFight
eca26825dcba17748a5f5c1e9f778aecd3824a4c
[ "Apache-2.0" ]
3
2018-07-17T08:11:52.000Z
2018-07-23T14:56:50.000Z
# !/usr/bin/env python3 # -*- coding:utf-8 -*- __author__ = 'Zhiquan Wang' __date__ = '2018/7/20 22:01' import taginfo class GridTag(object): type_land = 'land' attribution_empty = 'empty' class PixelGrid(object): def __init__(self, *, ptype=GridTag.type_land, attribution='empty', value=1): se...
21.571429
81
0.631977
120
1,057
5.15
0.341667
0.05178
0.067961
0
0
0
0
0
0
0
0
0.017926
0.261116
1,057
48
82
22.020833
0.773367
0.039735
0
0.090909
0
0
0.040514
0
0
0
0
0
0
1
0.242424
false
0
0.030303
0.121212
0.515152
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
2b1cbced49e2339c08d41be09ebb4df53e711aa3
8,638
py
Python
hvm/exceptions.py
hyperevo/py-helios-node
ff417fe3fe90f85c9f95b3d8a5f0dd4c80532ee8
[ "MIT" ]
null
null
null
hvm/exceptions.py
hyperevo/py-helios-node
ff417fe3fe90f85c9f95b3d8a5f0dd4c80532ee8
[ "MIT" ]
null
null
null
hvm/exceptions.py
hyperevo/py-helios-node
ff417fe3fe90f85c9f95b3d8a5f0dd4c80532ee8
[ "MIT" ]
null
null
null
class PyEVMError(Exception): """ Base class for all py-hvm errors. """ pass class VMNotFound(PyEVMError): """ Raised when no VM is available for the provided block number. """ pass class NoGenesisBlockPresent(PyEVMError): """ Raised when a block is imported but there is no gen...
23.158177
171
0.691364
1,033
8,638
5.775411
0.301065
0.078445
0.117332
0.042239
0.233993
0.179517
0.161247
0.127389
0.115991
0.115991
0
0.000459
0.243112
8,638
373
172
23.158177
0.912053
0.523385
0
0.469027
0
0
0
0
0
0
0
0
0
1
0
false
0.469027
0.00885
0
0.539823
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1
0
0
2
2b21c264b8b104047fd393b8623d64402d9f7dcd
822
py
Python
src/cfcs/__init__.py
KamasamaK/sublimetext-cfml
3730fca4679a5294234dfb3207eb41a4b313b87e
[ "MIT" ]
null
null
null
src/cfcs/__init__.py
KamasamaK/sublimetext-cfml
3730fca4679a5294234dfb3207eb41a4b313b87e
[ "MIT" ]
null
null
null
src/cfcs/__init__.py
KamasamaK/sublimetext-cfml
3730fca4679a5294234dfb3207eb41a4b313b87e
[ "MIT" ]
1
2022-02-28T17:09:43.000Z
2022-02-28T17:09:43.000Z
from .cfcs import build_project_cfcs from .completions import get_dot_completions from .documentation import get_inline_documentation, get_goto_cfml_file, get_completions_doc, get_method_preview from .di import CfmlDiPropertyCommand from .. import completions, inline_documentation, goto_cfml_file, method_preview from ....
41.1
112
0.868613
112
822
5.901786
0.267857
0.068079
0.072617
0.045386
0
0
0
0
0
0
0
0
0.079075
822
19
113
43.263158
0.873184
0
0
0
0
0
0.00365
0
0
0
0
0
0
1
0.0625
false
0
0.375
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
2b3105bc401831618b83dd86dab377681bcffe9d
2,062
py
Python
doobi/recc/serializers.py
bryanopew/doobi
45e98c7a0a8aceea7b13665da4d57f161fe78725
[ "MIT" ]
null
null
null
doobi/recc/serializers.py
bryanopew/doobi
45e98c7a0a8aceea7b13665da4d57f161fe78725
[ "MIT" ]
null
null
null
doobi/recc/serializers.py
bryanopew/doobi
45e98c7a0a8aceea7b13665da4d57f161fe78725
[ "MIT" ]
null
null
null
from . models import Cal_result, Foods, Profile, Recc_result from rest_framework import serializers class ProfileForReccSerializer(serializers.ModelSerializer): class Meta: model = Profile fields = "__all__" class CalResultSerializer(serializers.ModelSerializer): class Meta: model = Ca...
23.976744
60
0.555771
163
2,062
6.723926
0.355828
0.213504
0.114964
0.255474
0.392336
0.392336
0.392336
0.202555
0
0
0
0.001505
0.35548
2,062
85
61
24.258824
0.823175
0.084869
0
0.5
0
0
0.11953
0
0
0
0
0
0
1
0
false
0
0.032258
0
0.33871
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2b489d07d9e82fe1aadc06b20d66dc9fd7145ce7
430
py
Python
app/models/shop/footprint.py
Hugking/lin-cms-flask
5f79e744e60d0f1b81c6e8bd045ab4ffa00043ce
[ "MIT" ]
null
null
null
app/models/shop/footprint.py
Hugking/lin-cms-flask
5f79e744e60d0f1b81c6e8bd045ab4ffa00043ce
[ "MIT" ]
null
null
null
app/models/shop/footprint.py
Hugking/lin-cms-flask
5f79e744e60d0f1b81c6e8bd045ab4ffa00043ce
[ "MIT" ]
null
null
null
from lin.exception import NotFound, ParameterException from lin.interface import InfoCrud as Base from sqlalchemy import Column, String, Integer, Text,ForeignKey, DateTime class Footprint(Base): id = Column(Integer, primary_key=True, autoincrement=True) member_id = Column(Integer,index=True,nullable=False,defa...
43
73
0.77907
57
430
5.807018
0.578947
0.072508
0.135952
0.120846
0.271903
0.271903
0.271903
0.271903
0.271903
0
0
0.005291
0.12093
430
9
74
47.777778
0.87037
0
0
0
0
0
0.004651
0
0
0
0
0
0
1
0
false
0
0.375
0
1
0.125
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
1
0
0
0
0
2
2b4d03d59954090b025b2fdb39cc1802e82f536f
751
py
Python
wharf_management/wharf_management/doctype/security_check/security_check.py
staumoepeau/pms
67aa43fb27f75482275b50dff17f5919e6c394b1
[ "MIT" ]
1
2021-02-19T11:45:24.000Z
2021-02-19T11:45:24.000Z
wharf_management/wharf_management/doctype/security_check/security_check.py
staumoepeau/pms
67aa43fb27f75482275b50dff17f5919e6c394b1
[ "MIT" ]
1
2021-08-12T08:29:50.000Z
2021-08-17T06:12:02.000Z
wharf_management/wharf_management/doctype/security_check/security_check.py
staumoepeau/pms
67aa43fb27f75482275b50dff17f5919e6c394b1
[ "MIT" ]
4
2020-07-22T20:30:00.000Z
2021-08-07T12:36:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Sione Taumoepeau and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe import msgprint, _, scrub class SecurityCheck(Document): def on_submit(self):...
30.04
165
0.772304
102
751
5.480392
0.558824
0.125224
0.096601
0
0
0
0
0
0
0
0
0.009063
0.118509
751
25
166
30.04
0.835347
0.163782
0
0
0
0
0.1792
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0
0.642857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
2b58110490a5ec506b288ccfafb0c78b031eefd9
10,645
py
Python
botstory/chat_test.py
botstory/bot-story
9c5b2fc7f7a14dbd467d70f60d5ba855ef89dac3
[ "MIT" ]
5
2017-01-14T13:42:13.000Z
2021-07-27T21:52:04.000Z
botstory/chat_test.py
botstory/bot-story
9c5b2fc7f7a14dbd467d70f60d5ba855ef89dac3
[ "MIT" ]
235
2016-11-07T23:33:28.000Z
2018-03-13T11:27:33.000Z
botstory/chat_test.py
hyzhak/bot-story
9c5b2fc7f7a14dbd467d70f60d5ba855ef89dac3
[ "MIT" ]
5
2017-01-14T13:42:14.000Z
2020-11-06T08:33:20.000Z
import aiohttp import logging import pytest from botstory import Story import botstory.integrations.fb.messenger from botstory.middlewares import location from botstory.utils import answer, SimpleTrigger logger = logging.getLogger(__name__) @pytest.fixture() def mock_interface(mocker): mocker.patch.object( ...
36.455479
115
0.519493
997
10,645
5.371113
0.201605
0.05098
0.104575
0.123249
0.786368
0.754062
0.7324
0.675444
0.675444
0.579832
0
0.013863
0.356224
10,645
291
116
36.580756
0.767547
0.007233
0
0.629482
0
0
0.289758
0
0
0
0
0.003436
0.027888
1
0.027888
false
0
0.027888
0.003984
0.063745
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2b623892d5b3f6ccac316343b3491435d7f31554
14,568
py
Python
ooobuild/lo/inspection/x_property_handler.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/inspection/x_property_handler.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/inspection/x_property_handler.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
61.468354
410
0.734075
1,764
14,568
6.022676
0.267007
0.01073
0.017884
0.016566
0.213479
0.198042
0.181005
0.181005
0.171781
0.125753
0
0.010373
0.212521
14,568
236
411
61.728814
0.915708
0.706274
0
0.32
0
0
0.146427
0.116629
0
0
0
0
0
1
0.32
false
0
0.22
0
0.64
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
2b6e8e31e13f5f8be39e53404e2a14e1327af75b
4,982
py
Python
magma/t.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
167
2017-10-08T00:59:22.000Z
2022-02-08T00:14:39.000Z
magma/t.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
719
2017-08-29T17:58:28.000Z
2022-03-31T23:39:18.000Z
magma/t.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
14
2017-09-01T03:25:16.000Z
2021-11-05T13:30:24.000Z
import abc import enum from magma.common import deprecated from magma.compatibility import IntegerTypes, StringTypes from magma.ref import AnonRef, NamedRef, TempNamedRef, DefnRef, InstRef from magma.protocol_type import magma_value from magma.wire import wire class Direction(enum.Enum): In = 0 Out = 1 In...
26.784946
79
0.61381
622
4,982
4.770096
0.226688
0.045838
0.040445
0.03303
0.262555
0.145939
0.114594
0.114594
0.114594
0.114594
0
0.001135
0.292654
4,982
185
80
26.92973
0.840806
0.160779
0
0.251969
0
0
0.054642
0.007495
0
0
0
0
0
1
0.23622
false
0
0.055118
0.133858
0.582677
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
2b6f5015f37c257a07fcf7c93dc55530a55149b2
284
py
Python
src/python/baekjoon/10996.py
Hyeon9mak/Baekjoon
1595eeb260eaf41cc191bd4bbda5a9a2a817f1bd
[ "MIT" ]
null
null
null
src/python/baekjoon/10996.py
Hyeon9mak/Baekjoon
1595eeb260eaf41cc191bd4bbda5a9a2a817f1bd
[ "MIT" ]
null
null
null
src/python/baekjoon/10996.py
Hyeon9mak/Baekjoon
1595eeb260eaf41cc191bd4bbda5a9a2a817f1bd
[ "MIT" ]
null
null
null
N = int(input()) R = [] for i in range(0, N*2) : if i%2 == 0 : R.append("*") else : R.append(" ") for l in range(0, N) : P1 = P2 = "" for i in range(0, N) : P1 += R[i] print(P1) for i in range(N*2-1, N-1, -1) : P2 += R[i] print(P2)
18.933333
36
0.408451
54
284
2.148148
0.333333
0.241379
0.155172
0.284483
0.336207
0.224138
0
0
0
0
0
0.089888
0.373239
284
15
37
18.933333
0.561798
0
0
0
0
0
0.007018
0
0
0
0
0
0
1
0
false
0
0
0
0
0.153846
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2b7232f90a535ad8f5b268e20e520ac98a6345eb
2,089
py
Python
evaluator/base_evaluator.py
marsggbo/CovidNet3D
0aeca91a775f938a0e568dd88d8162473dacf3ce
[ "MIT" ]
5
2021-02-23T06:43:31.000Z
2021-07-05T15:24:05.000Z
evaluator/base_evaluator.py
etherx-dev/CovidNet3D
b107d7d965cad07f1890ee492857273f3468cc01
[ "MIT" ]
1
2021-06-08T21:06:10.000Z
2021-06-08T21:06:10.000Z
evaluator/base_evaluator.py
etherx-dev/CovidNet3D
b107d7d965cad07f1890ee492857273f3468cc01
[ "MIT" ]
4
2021-02-01T03:29:16.000Z
2021-08-05T09:13:37.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import argparse import json import logging import os import time from argparse import ArgumentParser import numpy as np import torch import torch.nn as nn from torch.utils.tensorboard import SummaryWriter import nni from datasets import build_d...
26.443038
76
0.675443
254
2,089
5.385827
0.448819
0.017544
0.059211
0.024854
0.097953
0.067251
0.067251
0.067251
0.067251
0
0
0
0.26472
2,089
79
77
26.443038
0.890625
0.346577
0
0.195122
0
0
0.010708
0
0
0
0
0
0
1
0.146341
false
0.04878
0.463415
0
0.634146
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
2b75551cd2d7ea8e68ffa526133f1c22b78f2a55
494
py
Python
example/models.py
acdh-oeaw/django-gnd
48e4d11bad0fb9ee11cc386d5f401480551e871c
[ "MIT" ]
null
null
null
example/models.py
acdh-oeaw/django-gnd
48e4d11bad0fb9ee11cc386d5f401480551e871c
[ "MIT" ]
null
null
null
example/models.py
acdh-oeaw/django-gnd
48e4d11bad0fb9ee11cc386d5f401480551e871c
[ "MIT" ]
null
null
null
from django.db import models from django.urls import reverse from gnd.models import GndPersonBase class MyText(models.Model): title = models.CharField(max_length=250, blank=True, null=True) text = models.TextField(blank=True, null=True) def __str__(self): return self.title class Person(GndPers...
24.7
67
0.722672
68
494
5.117647
0.5
0.077586
0.112069
0.146552
0.347701
0.281609
0.281609
0.281609
0.281609
0.281609
0
0.014599
0.168016
494
19
68
26
0.832117
0
0
0.166667
0
0
0.030364
0
0
0
0
0
0
1
0.166667
false
0
0.25
0.166667
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
2b75db05dad24a6a1243b29f46ad745c9c2181c9
535
py
Python
programs/migrations/0004_auto_20200708_1510.py
bycristhian/psp
019825e010386b6acc8c5466e7a6765218cb10d9
[ "MIT" ]
2
2020-09-04T17:06:41.000Z
2020-10-05T01:46:20.000Z
programs/migrations/0004_auto_20200708_1510.py
bycristhian/psp
019825e010386b6acc8c5466e7a6765218cb10d9
[ "MIT" ]
null
null
null
programs/migrations/0004_auto_20200708_1510.py
bycristhian/psp
019825e010386b6acc8c5466e7a6765218cb10d9
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-07-08 20:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('programs', '0003_program_total_lines'), ] operations = [ migrations.AlterField( model_name='program', name='finish_d...
22.291667
49
0.571963
53
535
5.641509
0.679245
0.133779
0.167224
0.19398
0.267559
0.267559
0
0
0
0
0
0.051771
0.314019
535
23
50
23.26087
0.762943
0.084112
0
0.352941
1
0
0.137295
0.04918
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2b76074f6c6e9f21f01241dacdb81730768d55e8
3,643
py
Python
example.py
Resident234/dejavu
607811a60388f024d8dd52b47030b4271e4660f3
[ "MIT" ]
null
null
null
example.py
Resident234/dejavu
607811a60388f024d8dd52b47030b4271e4660f3
[ "MIT" ]
null
null
null
example.py
Resident234/dejavu
607811a60388f024d8dd52b47030b4271e4660f3
[ "MIT" ]
null
null
null
import warnings import json import logging import datetime import threading, time import vlc import os import sys #import multiprocessing from multiprocessing import Process warnings.filterwarnings("ignore") from dejavu import Dejavu from dejavu.recognize import FileRecognizer, MicrophoneRecognizer from dejavu.record...
35.715686
101
0.715619
491
3,643
5.160896
0.295316
0.052092
0.041042
0.044199
0.31176
0.258485
0.204025
0.162983
0.126283
0.040253
0
0.051004
0.165797
3,643
101
102
36.069307
0.782823
0.553939
0
0.076923
0
0
0.125396
0.036099
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
2b7b79f498f068eefb83d8e90c391e5196855fa6
26,109
py
Python
pysnmp/SYMMCOMMONPTP.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/SYMMCOMMONPTP.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/SYMMCOMMONPTP.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module SYMMCOMMONPTP (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/neermitt/Dev/kusanagi/mibs.snmplabs.com/asn1/SYMMCOMMONPTP # Produced by pysmi-0.3.4 at Tue Jul 30 11:34:16 2019 # On host NEERMITT-M-J0NV platform Darwin version 18.6.0 by user neermitt # Using Python version 3.7.4 (default, J...
109.242678
3,472
0.747865
2,929
26,109
6.665756
0.089109
0.014956
0.013061
0.01721
0.425015
0.352182
0.289183
0.270027
0.251229
0.238937
0
0.105428
0.095408
26,109
238
3,473
109.701681
0.72123
0.012601
0
0.068807
0
0
0.139226
0.016608
0
0
0
0
0
1
0
false
0
0.041284
0
0.256881
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9913d53c298de5a6193b0026cb227fb8ff808714
514
py
Python
AER_experimentalist/experiment_environment/IV.py
musslick/DARTS-Cognitive-Modeling
f38e7e34f6f20c1626458de62503e8670e06be7c
[ "MIT" ]
null
null
null
AER_experimentalist/experiment_environment/IV.py
musslick/DARTS-Cognitive-Modeling
f38e7e34f6f20c1626458de62503e8670e06be7c
[ "MIT" ]
null
null
null
AER_experimentalist/experiment_environment/IV.py
musslick/DARTS-Cognitive-Modeling
f38e7e34f6f20c1626458de62503e8670e06be7c
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from tinkerforge_variable import Tinkerforge_Variable class IV(Tinkerforge_Variable): def __init__(self, *args, **kwargs): self._name = "IV" self._variable_label = "Independent Variable" super(IV, self).__init__(*args, **kwargs) # Method for measur...
24.47619
53
0.68677
56
514
5.964286
0.5
0.170659
0
0
0
0
0
0
0
0
0
0
0.231518
514
20
54
25.7
0.84557
0.161479
0
0.307692
0
0
0.051402
0
0
0
0
0
0
1
0.230769
false
0.153846
0.153846
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
991a14e9940b831c177bd7fef5e9c7239bb18cfa
298
py
Python
mayan/apps/ocr/literals.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
2
2021-09-12T19:41:19.000Z
2021-09-12T19:41:20.000Z
mayan/apps/ocr/literals.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
37
2021-09-13T01:00:12.000Z
2021-10-02T03:54:30.000Z
mayan/apps/ocr/literals.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
1
2021-09-22T13:17:30.000Z
2021-09-22T13:17:30.000Z
DEFAULT_OCR_AUTO_OCR = True DEFAULT_OCR_BACKEND = 'mayan.apps.ocr.backends.tesseract.Tesseract' DEFAULT_OCR_BACKEND_ARGUMENTS = {'environment': {'OMP_THREAD_LIMIT': '1'}} TASK_DOCUMENT_VERSION_PAGE_OCR_RETRY_DELAY = 10 TASK_DOCUMENT_VERSION_PAGE_OCR_TIMEOUT = 10 * 60 # 10 Minutes per page
42.571429
75
0.805369
43
298
5.093023
0.604651
0.136986
0.155251
0.210046
0.237443
0
0
0
0
0
0
0.033835
0.107383
298
6
76
49.666667
0.789474
0.063758
0
0
0
0
0.261993
0.158672
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
991fb0f0b1676c7704c886f5d502235f7e62b383
770
py
Python
article/templatetags/article_tags.py
brahici/WBO
8781512b2ae3e308e2fe9310935a0f5ce4e30a29
[ "BSD-3-Clause" ]
null
null
null
article/templatetags/article_tags.py
brahici/WBO
8781512b2ae3e308e2fe9310935a0f5ce4e30a29
[ "BSD-3-Clause" ]
null
null
null
article/templatetags/article_tags.py
brahici/WBO
8781512b2ae3e308e2fe9310935a0f5ce4e30a29
[ "BSD-3-Clause" ]
null
null
null
from django.template import Library from taggit.models import Tag from ..models import Article, Category register = Library() @register.inclusion_tag('article/tags/recent_articles.html') def get_recent_articles(number=5): articles = Article.published.all()[:number] return {'articles': articles,} @register....
26.551724
61
0.738961
95
770
5.852632
0.315789
0.122302
0.143885
0.194245
0.223022
0
0
0
0
0
0
0.001475
0.119481
770
28
62
27.5
0.818584
0
0
0
0
0
0.192458
0.148244
0
0
0
0
0
1
0.2
false
0
0.15
0
0.55
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
1
0
0
2
99201765d5f972ad4a6a952e2022f6b35f419092
4,539
py
Python
app/status/models.py
LCOGT/serol
1b1a0c8343fc7233b9935b8da64c90b8696134cc
[ "MIT" ]
null
null
null
app/status/models.py
LCOGT/serol
1b1a0c8343fc7233b9935b8da64c90b8696134cc
[ "MIT" ]
19
2017-12-13T14:33:46.000Z
2022-03-11T23:47:08.000Z
app/status/models.py
LCOGT/serol
1b1a0c8343fc7233b9935b8da64c90b8696134cc
[ "MIT" ]
null
null
null
from datetime import datetime from django.db import models from django.contrib import admin from django.contrib.auth.models import AbstractUser from django.conf import settings from django_fsm import FSMField, transition from django.utils.html import format_html from django.utils.safestring import mark_safe from djang...
35.186047
121
0.666667
527
4,539
5.616698
0.27704
0.027027
0.056757
0.072973
0.330405
0.290878
0.254054
0.14527
0.029054
0
0
0.014124
0.20445
4,539
128
122
35.460938
0.805594
0
0
0.194175
0
0
0.124477
0
0
0
0
0
0
1
0.126214
false
0.07767
0.097087
0.029126
0.582524
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1
0
0
2
992f8922bdee0ba5a83a10cf55efdc2c81a78c4a
436
py
Python
iota/commands/extended/helpers.py
joWeiss/iota.lib.py
e168aaf7101d4eea2fa98340ef793cc870270597
[ "MIT" ]
null
null
null
iota/commands/extended/helpers.py
joWeiss/iota.lib.py
e168aaf7101d4eea2fa98340ef793cc870270597
[ "MIT" ]
null
null
null
iota/commands/extended/helpers.py
joWeiss/iota.lib.py
e168aaf7101d4eea2fa98340ef793cc870270597
[ "MIT" ]
null
null
null
class Helpers(object): """ Adds additional helper functions that aren't part of the core or extended API. """ def __init__(self, api): self.api = api def is_promotable(self, tail): # type: (TransactionHash) -> bool """ Determines if a tail transaction is promotable. :param tail: ...
22.947368
75
0.658257
56
436
5.017857
0.696429
0.074733
0.113879
0
0
0
0
0
0
0
0
0
0.229358
436
18
76
24.222222
0.83631
0.506881
0
0
0
0
0.02809
0
0
0
0
0
0
1
0.4
false
0
0
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
993679cf18fb575717d3ec43572613b88cdb5275
310
py
Python
src/features/build_features.py
victormmp/ibm_advanced_ds_capstone
fe5f785c6118acaaa698a07d6e1f8a82b816d042
[ "MIT" ]
null
null
null
src/features/build_features.py
victormmp/ibm_advanced_ds_capstone
fe5f785c6118acaaa698a07d6e1f8a82b816d042
[ "MIT" ]
null
null
null
src/features/build_features.py
victormmp/ibm_advanced_ds_capstone
fe5f785c6118acaaa698a07d6e1f8a82b816d042
[ "MIT" ]
null
null
null
import csv import pandas as pd import numpy as np import os import sys root_dir = os.path.dirname(__file__) sys.path.insert(0, root_dir + '/../..') class ETL: def __init__(self): self.data = None def load_data(self, path): self.data = pd.read_csv(path) return self
16.315789
39
0.629032
47
310
3.893617
0.553191
0.076503
0
0
0
0
0
0
0
0
0
0.004367
0.26129
310
19
40
16.315789
0.79476
0
0
0
0
0
0.019293
0
0
0
0
0
0
1
0.153846
false
0
0.384615
0
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
9947f9b9c078d6c553858729a5952d4735a8d687
755
py
Python
src/unittest/python/raq_matchers/TimeMatchers.py
Continuous-Delivery-Machines/raqcrawl
f00fd7cd29143c99b7b17151d65c22ba87959b64
[ "Apache-2.0" ]
null
null
null
src/unittest/python/raq_matchers/TimeMatchers.py
Continuous-Delivery-Machines/raqcrawl
f00fd7cd29143c99b7b17151d65c22ba87959b64
[ "Apache-2.0" ]
null
null
null
src/unittest/python/raq_matchers/TimeMatchers.py
Continuous-Delivery-Machines/raqcrawl
f00fd7cd29143c99b7b17151d65c22ba87959b64
[ "Apache-2.0" ]
null
null
null
from datetime import datetime, timedelta from hamcrest.core.base_matcher import BaseMatcher class WithinDatetimeMatcher(BaseMatcher): def __init__(self, lower_limit_datetime: datetime, upper_limit_datetime: datetime): self.__lowerLimit = lower_limit_datetime self.__upperLimit = upper_limit_datet...
32.826087
108
0.744371
87
755
6.114943
0.471264
0.097744
0.067669
0
0
0
0
0
0
0
0
0.011058
0.161589
755
22
109
34.318182
0.829384
0
0
0
0
0
0.037086
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.071429
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
994f2a9b067dc43d042097eea7bcc12994acae5d
873
py
Python
pypro/aperitivos/tests/test_video.py
ravellys/curso-django
98c0fad20d7c9e5dcd3482eb37c43f9d65695184
[ "MIT" ]
null
null
null
pypro/aperitivos/tests/test_video.py
ravellys/curso-django
98c0fad20d7c9e5dcd3482eb37c43f9d65695184
[ "MIT" ]
789
2020-09-02T01:46:12.000Z
2022-03-31T23:55:42.000Z
pypro/aperitivos/tests/test_video.py
ravellys/curso-django
98c0fad20d7c9e5dcd3482eb37c43f9d65695184
[ "MIT" ]
null
null
null
import pytest from django.urls import reverse from model_mommy import mommy from pypro.aperitivos.models import Video from pypro.django_assertions import assert_contains @pytest.fixture def video(db): return mommy.make(Video) @pytest.fixture def resp(client, video): return client.get(reverse('aperitivos:vi...
22.973684
89
0.767468
125
873
5.152
0.344
0.083851
0.074534
0.062112
0.28882
0.28882
0.189441
0.189441
0.189441
0.189441
0
0.007813
0.120275
873
37
90
23.594595
0.830729
0
0
0.136364
0
0
0.117984
0
0
0
0
0
0.136364
1
0.318182
false
0
0.227273
0.227273
0.772727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
995680b25f293385b1b3c0e4810d1bd28b5693a8
9,308
py
Python
prototree/train.py
TristanGomez44/ProtoTree
d9e77a90b47cb1efe19f1736c6701872a3c4a62e
[ "MIT" ]
35
2020-12-03T14:38:52.000Z
2022-03-30T02:41:26.000Z
prototree/train.py
TristanGomez44/ProtoTree
d9e77a90b47cb1efe19f1736c6701872a3c4a62e
[ "MIT" ]
3
2021-06-01T10:55:12.000Z
2021-11-27T10:40:14.000Z
prototree/train.py
TristanGomez44/ProtoTree
d9e77a90b47cb1efe19f1736c6701872a3c4a62e
[ "MIT" ]
7
2021-03-13T12:17:01.000Z
2022-02-17T15:12:13.000Z
from tqdm import tqdm import argparse from copy import deepcopy import torch import torch.nn.functional as F import torch.optim import torch.utils.data from torch.utils.data import DataLoader from prototree.prototree import ProtoTree from util.log import Log def train_epoch(tree: ProtoTree, ...
38.783333
151
0.572733
1,119
9,308
4.588025
0.17605
0.033113
0.024542
0.029217
0.741917
0.709973
0.639657
0.621543
0.572848
0.556486
0
0.004565
0.340997
9,308
240
152
38.783333
0.83241
0.208208
0
0.727848
0
0.012658
0.065095
0.006778
0
0
0
0
0
1
0.018987
false
0
0.063291
0
0.094937
0.006329
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
995d69939d2d763e9d9c13dfa53c33127ce868ab
2,887
py
Python
src/workflow/tests/test_workflows.py
opnfv/laas
35b9f39178cc502a5283a1b37a65f7dd0838ae05
[ "Apache-2.0" ]
2
2020-10-31T15:03:20.000Z
2021-03-22T16:29:15.000Z
src/workflow/tests/test_workflows.py
opnfv/laas
35b9f39178cc502a5283a1b37a65f7dd0838ae05
[ "Apache-2.0" ]
13
2019-12-04T23:29:42.000Z
2022-03-02T04:53:53.000Z
src/workflow/tests/test_workflows.py
opnfv/laas
35b9f39178cc502a5283a1b37a65f7dd0838ae05
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright (c) 2018 Parker Berberian, Sawyer Bergeron, and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distrib...
28.87
89
0.626256
312
2,887
5.692308
0.403846
0.023649
0.054054
0.060811
0.272523
0.227477
0.072635
0
0
0
0
0.00764
0.229304
2,887
99
90
29.161616
0.790562
0.161067
0
0.25
0
0
0.023017
0
0
0
0
0.010101
0.038462
1
0.211538
false
0
0.057692
0
0.346154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
0
0
0
2
997657151e6c735ccab22a613d02ebc8b14a375d
548
py
Python
tests/test_utils.py
Supplyframe/inlinestyler
3f4ea2642183476d3e26d9733f992422532af893
[ "BSD-3-Clause" ]
null
null
null
tests/test_utils.py
Supplyframe/inlinestyler
3f4ea2642183476d3e26d9733f992422532af893
[ "BSD-3-Clause" ]
2
2021-03-31T19:18:35.000Z
2021-12-13T20:03:06.000Z
tests/test_utils.py
Supplyframe/inlinestyler
3f4ea2642183476d3e26d9733f992422532af893
[ "BSD-3-Clause" ]
null
null
null
from unittest import TestCase from inlinestyler.utils import inline_css class TestUtils(TestCase): def setUp(self): self.the_document = '<html><head><style>.turn_red{ color: red; }</style></head><body><p class="turn_red">This text should be red.</p></body></html>' def test_inline_css(self): ...
36.533333
156
0.680657
83
548
4.337349
0.373494
0.075
0.083333
0.072222
0.127778
0.127778
0.127778
0
0
0
0
0
0.155109
548
14
157
39.142857
0.777538
0
0
0
0
0.25
0.452555
0.175182
0
0
0
0
0.125
1
0.25
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
997ebd1b92696efee94ae16c2be8e1ec43d7d71a
4,147
py
Python
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/project/viewmodels/project_left_nav_bar.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
6
2018-11-26T08:42:52.000Z
2020-06-01T08:33:48.000Z
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/project/viewmodels/project_left_nav_bar.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
null
null
null
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/project/viewmodels/project_left_nav_bar.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
1
2019-01-22T06:45:36.000Z
2019-01-22T06:45:36.000Z
#coding=utf-8 ''' Created on 2015-9-24 @author: Devuser ''' from doraemon.project.models import Project class ProjectLeftNavBar(object): ''' classdocs ''' def __init__(self,request,projectid): self.request=request # self.dashboard_href='/project/'+str(projectid)+'/dashboard' s...
31.416667
93
0.677116
417
4,147
6.431655
0.151079
0.106637
0.095078
0.152125
0.777405
0.732662
0.728188
0.53654
0.381805
0.357942
0
0.004163
0.189052
4,147
132
94
31.416667
0.793339
0.050398
0
0.454545
0
0
0.123584
0
0
0
0
0
0
1
0.168831
false
0
0.012987
0.038961
0.350649
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
99973a7bbffe4bb4c1ff3021b87bc939e4ebaefd
434
py
Python
plugins/auth/crypto/algo_pbkdf2.py
UltrosBot/Ultros
639efc11f73ebf7e8f47f0554aced00a559d9e2d
[ "Artistic-2.0" ]
16
2015-01-02T00:16:11.000Z
2019-06-03T06:23:11.000Z
plugins/auth/crypto/algo_pbkdf2.py
UltrosBot/Ultros
639efc11f73ebf7e8f47f0554aced00a559d9e2d
[ "Artistic-2.0" ]
31
2015-01-18T12:14:53.000Z
2018-01-07T13:32:29.000Z
plugins/auth/crypto/algo_pbkdf2.py
UltrosBot/Ultros
639efc11f73ebf7e8f47f0554aced00a559d9e2d
[ "Artistic-2.0" ]
9
2015-02-13T09:38:53.000Z
2020-11-29T19:59:32.000Z
# coding=utf-8 from plugins.auth.crypto.algo_base import BaseAlgorithm from pbkdf2 import crypt __author__ = 'Gareth Coles' class PBKDF2Algo(BaseAlgorithm): def check(self, hash, value, salt=None): return hash == self.hash(value, hash) def hash(self, value, salt=None): return crypt( ...
20.666667
55
0.652074
58
434
4.775862
0.568966
0.097473
0.093863
0.137184
0
0
0
0
0
0
0
0.018462
0.251152
434
20
56
21.7
0.833846
0.06682
0
0
0
0
0.029851
0
0
0
0
0
0
1
0.25
false
0
0.166667
0.25
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
99a62a1c3b2e90d6a24f5b5d1e8c742b15d66e2e
120
py
Python
Chatbot_KG/chatbot_scrapy/wikidataSpider/wikientities/wikientities/loadjson.py
guci314/Chatbot_CN
02044eed4a141aa8c61d6064c166f95dbdae894c
[ "Apache-2.0" ]
1
2020-06-21T12:50:34.000Z
2020-06-21T12:50:34.000Z
Chatbot_KG/chatbot_scrapy/wikidataSpider/wikientities/wikientities/loadjson.py
guci314/Chatbot_CN
02044eed4a141aa8c61d6064c166f95dbdae894c
[ "Apache-2.0" ]
null
null
null
Chatbot_KG/chatbot_scrapy/wikidataSpider/wikientities/wikientities/loadjson.py
guci314/Chatbot_CN
02044eed4a141aa8c61d6064c166f95dbdae894c
[ "Apache-2.0" ]
2
2019-11-21T02:51:53.000Z
2020-04-28T09:09:52.000Z
import json with open('entities2.json', 'r') as f: for line in f: entityjson = json.loads(line) print(entityjson)
17.142857
38
0.691667
19
120
4.368421
0.736842
0
0
0
0
0
0
0
0
0
0
0.010101
0.175
120
6
39
20
0.828283
0
0
0
0
0
0.125
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
41e1a762f0d1be508b8aea67bb97266e256a8294
1,399
py
Python
bestiary/management/commands/parse_game_data.py
Itori/swarfarm
7192e2d8bca093b4254023bbec42b6a2b1887547
[ "Apache-2.0" ]
66
2017-09-11T04:46:00.000Z
2021-03-13T00:02:42.000Z
bestiary/management/commands/parse_game_data.py
Itori/swarfarm
7192e2d8bca093b4254023bbec42b6a2b1887547
[ "Apache-2.0" ]
133
2017-09-24T21:28:59.000Z
2021-04-02T10:35:31.000Z
bestiary/management/commands/parse_game_data.py
Itori/swarfarm
7192e2d8bca093b4254023bbec42b6a2b1887547
[ "Apache-2.0" ]
28
2017-08-30T19:04:32.000Z
2020-11-16T04:09:00.000Z
from django.core.management.base import BaseCommand from bestiary import parse class Command(BaseCommand): help = 'Parse all bestiary data from game files' def handle(self, *args, **kwargs): self.stdout.write('Processing static files...') parse.static.decrypt_images() parse.static.cr...
29.145833
83
0.649035
153
1,399
5.869281
0.379085
0.144766
0.217149
0.244989
0.10245
0
0
0
0
0
0
0
0.223731
1,399
47
84
29.765957
0.826888
0
0
0
0
0
0.289492
0.015011
0
0
0
0
0
1
0.032258
false
0
0.064516
0
0.16129
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
41fabf8105aa6882a6a0f47a122cddef117b9740
850
py
Python
src/runner-base/runnertools/runnertools/runner_io.py
ads-ad-itcenter/qunomon.forked
48d532692d353fe2d3946f62b227f834f9349034
[ "Apache-2.0" ]
16
2020-11-18T05:43:55.000Z
2021-11-27T14:43:26.000Z
src/runner-base/runnertools/runnertools/runner_io.py
aistairc/qunomon
d4e9c5cb569b16addfbe6c33c73812065065a1df
[ "Apache-2.0" ]
1
2022-03-23T07:55:54.000Z
2022-03-23T13:24:11.000Z
src/runner-base/runnertools/runnertools/runner_io.py
ads-ad-itcenter/qunomon.forked
48d532692d353fe2d3946f62b227f834f9349034
[ "Apache-2.0" ]
3
2021-02-12T01:56:31.000Z
2022-03-23T02:45:02.000Z
import os import sys import shutil import glob from pathlib import Path import json import yaml # init QAI_USER_HOME = os.environ['QAI_USER_HOME'] inventory_dir = os.path.join(QAI_USER_HOME, 'inventory/') # check args args_file = os.path.join(QAI_USER_HOME, 'args', 'args.json') if os.path.exists(args_file): print...
25.757576
102
0.701176
134
850
4.261194
0.38806
0.063047
0.096322
0.056042
0.143608
0.073555
0
0
0
0
0
0.001383
0.149412
850
32
103
26.5625
0.788382
0.017647
0
0
0
0
0.097473
0
0
0
0
0
0
1
0.130435
false
0
0.304348
0.043478
0.521739
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
51107035f4e15f54ac07d9fc6430729a7c1928eb
432
py
Python
python/high-scores/high_scores_old.py
christine-court/exercism
0e8fbac1c75ee09003d470352e82b076e2816c44
[ "MIT" ]
null
null
null
python/high-scores/high_scores_old.py
christine-court/exercism
0e8fbac1c75ee09003d470352e82b076e2816c44
[ "MIT" ]
null
null
null
python/high-scores/high_scores_old.py
christine-court/exercism
0e8fbac1c75ee09003d470352e82b076e2816c44
[ "MIT" ]
null
null
null
from unittest.main import main def latest(scores): return scores[-1] def personal_best(scores): return max(scores) def personal_top_three(scores): top_three_scores = [] for i in range(3): top_three_scores.append(max(scores)) scores.remove(max(scores)) if len(scores) == 0: ...
17.28
44
0.645833
59
432
4.40678
0.491525
0.153846
0.215385
0
0
0
0
0
0
0
0
0.027607
0.24537
432
24
45
18
0.769939
0
0
0
0
0
0.018519
0
0
0
0
0
0
1
0.2
false
0
0.066667
0.133333
0.466667
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
1
0
0
0
2
5123590c3fd365bf56e8d06d0192a1521867fd54
2,018
py
Python
blog/models.py
IreneG5/spss_online
760abcdd3304a141396ab982ca17cb992afbcecd
[ "CNRI-Python", "blessing" ]
14
2017-09-28T12:15:42.000Z
2022-01-27T20:27:01.000Z
blog/models.py
IreneG5/spss_online
760abcdd3304a141396ab982ca17cb992afbcecd
[ "CNRI-Python", "blessing" ]
null
null
null
blog/models.py
IreneG5/spss_online
760abcdd3304a141396ab982ca17cb992afbcecd
[ "CNRI-Python", "blessing" ]
9
2017-10-25T16:49:02.000Z
2022-01-22T10:48:18.000Z
# -*- coding: utf-8 -*- from django.db import models from django.utils import timezone from django.conf import settings class Category(models.Model): """ Each blog post belongs to a pre-defined category. Categories are set up on the admin panel """ name = models.CharField(max_length=100) def __unico...
32.548387
77
0.708622
286
2,018
4.874126
0.388112
0.025108
0.032281
0.043042
0.276901
0.167862
0.167862
0.167862
0.098996
0.098996
0
0.006246
0.20664
2,018
61
78
33.081967
0.86446
0.360258
0
0.107143
0
0
0.027363
0
0
0
0
0
0
1
0.142857
false
0
0.107143
0.107143
0.928571
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1
0
0
2
51246251518c088b066874ea4f40b82f548660f5
2,045
py
Python
tests/lib/durak/test_draw_pile.py
maximpertsov/durak-sockets
53e47980a5456f44df4c2f140d74504ae8ad43a6
[ "MIT" ]
null
null
null
tests/lib/durak/test_draw_pile.py
maximpertsov/durak-sockets
53e47980a5456f44df4c2f140d74504ae8ad43a6
[ "MIT" ]
1
2020-10-23T14:12:47.000Z
2020-11-03T17:33:11.000Z
tests/lib/durak/test_draw_pile.py
maximpertsov/durak-sockets
53e47980a5456f44df4c2f140d74504ae8ad43a6
[ "MIT" ]
null
null
null
import pytest from lib.durak.draw_pile import DrawPile @pytest.fixture def cards(): return ["10D", "10C", "2S", "5C", "8D", "2C"] @pytest.fixture def mocked_draw_cards(cards, get_draw_pile_cards): return get_draw_pile_cards(cards) @pytest.fixture def default_parameters(): return { "drawn_card...
27.266667
68
0.634719
236
2,045
5.148305
0.211864
0.23786
0.111111
0.111111
0.69465
0.69465
0.69465
0.69465
0.607407
0.607407
0
0.023632
0.213692
2,045
74
69
27.635135
0.731965
0
0
0.525424
0
0
0.150122
0
0
0
0
0
0.152542
1
0.118644
false
0
0.033898
0.050847
0.20339
0
0
0
0
null
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5142fe4ce72945b27f6b98b88093c27e12051fda
9,843
py
Python
tools/download_secuityhub_event_files.py
xen0l/python-asff
6b043dd4200084b9999aea2995ea1222309ac42c
[ "BSD-3-Clause" ]
2
2020-12-15T20:49:46.000Z
2021-10-05T15:59:04.000Z
tools/download_secuityhub_event_files.py
xen0l/python-asff
6b043dd4200084b9999aea2995ea1222309ac42c
[ "BSD-3-Clause" ]
68
2020-12-13T20:29:58.000Z
2021-12-20T05:11:08.000Z
tools/download_secuityhub_event_files.py
xen0l/python-asff
6b043dd4200084b9999aea2995ea1222309ac42c
[ "BSD-3-Clause" ]
1
2022-01-04T23:34:26.000Z
2022-01-04T23:34:26.000Z
#!/usr/bin/env python # # This script is meant to be run when new security hub events are added or we need # to regenerate sample securityhub event files # import json import os import boto3 # To get all supported TTPs, it's easiest to fetch it from the AWS console: # https://eu-west-1.console.aws.amazon.com/securit...
54.683333
181
0.722239
1,013
9,843
6.982231
0.238894
0.059098
0.071257
0.089071
0.515906
0.397568
0.318394
0.242896
0.162025
0.162025
0
0.009422
0.180534
9,843
179
182
54.988827
0.867468
0.040536
0
0.064103
1
0.025641
0.704642
0.391267
0
0
0
0
0
1
0.00641
false
0.00641
0.019231
0
0.038462
0.019231
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
51622d8d280219828a67dff8026ea26e97683b57
4,578
py
Python
tests/test_properties.py
Kapiche/gcloud-python-orm
c2f452f18c9bd549a77b5f3312c1329b1bb6413c
[ "Apache-2.0" ]
1
2017-07-11T14:00:24.000Z
2017-07-11T14:00:24.000Z
tests/test_properties.py
Kapiche/gcloud-python-orm
c2f452f18c9bd549a77b5f3312c1329b1bb6413c
[ "Apache-2.0" ]
null
null
null
tests/test_properties.py
Kapiche/gcloud-python-orm
c2f452f18c9bd549a77b5f3312c1329b1bb6413c
[ "Apache-2.0" ]
1
2019-02-01T08:56:41.000Z
2019-02-01T08:56:41.000Z
import six import unittest2 from gcloud.datastore import helpers, key, set_default_dataset_id from gcloudorm import model, properties class TestProperties(unittest2.TestCase): _DATASET_ID = 'DATASET' def setUp(self): set_default_dataset_id(self._DATASET_ID) def testBooleanProperty(self): ...
28.08589
67
0.616208
509
4,578
5.398821
0.145383
0.076419
0.186317
0.232897
0.710699
0.672489
0.576055
0.473435
0.245633
0.1754
0
0.018761
0.266492
4,578
162
68
28.259259
0.799583
0
0
0.429825
0
0
0.035605
0
0
0
0
0
0.298246
1
0.096491
false
0
0.061404
0
0.307018
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5166eb8771a6e99003d7a3deae5a69bf5c9516a0
1,061
py
Python
app/services/user.py
StakeBeat/api-server
c23c235a1813c422d0369cb71a448f15340651cc
[ "MIT" ]
null
null
null
app/services/user.py
StakeBeat/api-server
c23c235a1813c422d0369cb71a448f15340651cc
[ "MIT" ]
null
null
null
app/services/user.py
StakeBeat/api-server
c23c235a1813c422d0369cb71a448f15340651cc
[ "MIT" ]
null
null
null
from typing import Dict, List import bcrypt from app.session import SessionManager from app.models.user import User from app.models.validator import Validator class UserService: def __init__(self) -> None: pass def create(self, payload: Dict[str, str]) -> User: hashed_pw = bcrypt.hashpw(payl...
32.151515
81
0.67295
127
1,061
5.496063
0.385827
0.04298
0.10745
0.116046
0.146132
0
0
0
0
0
0
0
0.220547
1,061
32
82
33.15625
0.844015
0
0
0.130435
0
0
0.04147
0
0
0
0
0
0
1
0.173913
false
0.130435
0.217391
0
0.521739
0
0
0
0
null
0
0
0
0
0
0
0
0
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
1
0
0
2
5a99982380d5effeca0f6dd6c5b36321143294e3
243
py
Python
lists/fruits.py
renataeva/python-basics
0d8a2c6eda3aa31cca61fb2c727956f82642ebc8
[ "Apache-2.0" ]
1
2021-02-14T10:43:43.000Z
2021-02-14T10:43:43.000Z
lists/fruits.py
renataeva/python-basics
0d8a2c6eda3aa31cca61fb2c727956f82642ebc8
[ "Apache-2.0" ]
null
null
null
lists/fruits.py
renataeva/python-basics
0d8a2c6eda3aa31cca61fb2c727956f82642ebc8
[ "Apache-2.0" ]
null
null
null
fruits = ['pineapple', 'lemon', 'pear', 'watermelon', 'tomato', 'apple'] first, second, *middle, firstlast, last = fruits print(f'''Первый элемент: {first} Второй: {second} Посередине: {middle} Предпоследний: {firstlast} Последний: {last}''')
30.375
72
0.691358
26
243
6.461538
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.106996
243
7
73
34.714286
0.774194
0
0
0
0
0
0.596708
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5a9eed27c33e629bc1e08035dd959f61cb18df2d
527
py
Python
py_projects_boilerplates/sphinx_loguru_pytest_boiler/app/modules/hello_world/tools/tools.py
rypaik/PYTHON
283ffb90321153c66036ab0282b44918d422f645
[ "MIT" ]
null
null
null
py_projects_boilerplates/sphinx_loguru_pytest_boiler/app/modules/hello_world/tools/tools.py
rypaik/PYTHON
283ffb90321153c66036ab0282b44918d422f645
[ "MIT" ]
null
null
null
py_projects_boilerplates/sphinx_loguru_pytest_boiler/app/modules/hello_world/tools/tools.py
rypaik/PYTHON
283ffb90321153c66036ab0282b44918d422f645
[ "MIT" ]
null
null
null
#from config import console, log from config import console from loguru import logger import sys #TODO: factory function to create logger # setting up Logger logger.add(sys.stderr, format="{time} {level} {message}", level="INFO") logger.add("./common/loguru_log/Tools_{time}.log", rotation="500 MB") # @logger.catch #...
31
82
0.73055
76
527
5.026316
0.592105
0.052356
0.08377
0.120419
0
0
0
0
0
0
0
0.006593
0.136622
527
17
82
31
0.832967
0.250474
0
0
0
0
0.315385
0.092308
0
0
0
0.058824
0
1
0.111111
false
0
0.333333
0
0.555556
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
2
5aad16869e98dc66ff1b17b701a95290d46df4a6
1,930
py
Python
demo/caya/dataobj.py
sugarflower/caya
40acc237a1e367c757356e8754d11928b01b3f82
[ "MIT" ]
null
null
null
demo/caya/dataobj.py
sugarflower/caya
40acc237a1e367c757356e8754d11928b01b3f82
[ "MIT" ]
1
2021-11-15T11:38:15.000Z
2021-11-15T16:16:01.000Z
demo/caya/dataobj.py
sugarflower/caya
40acc237a1e367c757356e8754d11928b01b3f82
[ "MIT" ]
null
null
null
import json import os import zipfile class DataObj: def __init__(self, workspace="dataobj", name="default"): self.workspace = workspace self.name = name self.home = self.homepath() self.iter_pos = 0 self.read() def keys(self): return list(self.data.keys()) ...
23.536585
65
0.546632
237
1,930
4.240506
0.320675
0.071642
0.054726
0.023881
0.059701
0
0
0
0
0
0
0.002264
0.313472
1,930
81
66
23.82716
0.756226
0
0
0.16129
0
0
0.04873
0.014515
0
0
0
0
0
1
0.258065
false
0
0.048387
0.112903
0.451613
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
5ac1a515b4945a1114f763c54484e24f450a8d2d
2,166
py
Python
light_control/colors.py
XenonMolecule/led-lightstrip
3e2fe0f1e45646dacf03000a0634cfa29db20e33
[ "MIT" ]
null
null
null
light_control/colors.py
XenonMolecule/led-lightstrip
3e2fe0f1e45646dacf03000a0634cfa29db20e33
[ "MIT" ]
6
2021-03-10T19:20:03.000Z
2022-02-27T05:15:39.000Z
light_control/colors.py
XenonMolecule/led-lightstrip
3e2fe0f1e45646dacf03000a0634cfa29db20e33
[ "MIT" ]
null
null
null
# Converts RGB to GRB which is needed by the lightstrip def Color(red, green, blue, white = 0): """Convert the provided red, green, blue color to a 24-bit color value. Each color component should be a value 0-255 where 0 is the lowest intensity and 255 is the highest intensity. """ return (white << 24) | (green <<...
25.186047
109
0.638966
349
2,166
3.948424
0.240688
0.095791
0.05225
0.028302
0.248186
0.217707
0.113208
0.08418
0.08418
0.08418
0
0.100992
0.209141
2,166
86
110
25.186047
0.703444
0.108033
0
0.121212
0
0
0.012481
0
0
0
0
0
0
1
0.30303
false
0
0
0.106061
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
5ac1fd4ad75709753b765bad70ec5641a7265458
402
py
Python
tests/test_grid/test_continent_cells.py
wpreimes/io_utils
9ef4161a5bc65ab2fabee0e2c7cf873f19cf7a17
[ "MIT" ]
null
null
null
tests/test_grid/test_continent_cells.py
wpreimes/io_utils
9ef4161a5bc65ab2fabee0e2c7cf873f19cf7a17
[ "MIT" ]
4
2021-07-09T09:03:12.000Z
2021-12-20T17:24:32.000Z
tests/test_grid/test_continent_cells.py
wpreimes/io_utils
9ef4161a5bc65ab2fabee0e2c7cf873f19cf7a17
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from io_utils.grid.grid_functions import read_cells_for_continent def test_read_cells_for_continent(): try: read_cells_for_continent('notexistingname') except ValueError: assert True else: assert False cells = read_cells_for_continent('Oceania') asse...
22.333333
65
0.708955
51
402
5.058824
0.568627
0.174419
0.232558
0.406977
0.193798
0
0
0
0
0
0
0.015723
0.208955
402
17
66
23.647059
0.795597
0.052239
0
0
0
0
0.079365
0
0
0
0
0
0.25
1
0.083333
false
0
0.083333
0
0.166667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5ae65f8d4acee2e0b7d88fb146f0907a54517320
1,088
py
Python
filebarn/views.py
popas90/filebarn
031f4baef20b3eb004483597777990fefe03aef8
[ "MIT" ]
null
null
null
filebarn/views.py
popas90/filebarn
031f4baef20b3eb004483597777990fefe03aef8
[ "MIT" ]
null
null
null
filebarn/views.py
popas90/filebarn
031f4baef20b3eb004483597777990fefe03aef8
[ "MIT" ]
null
null
null
from flask import render_template, flash, redirect from flask import session, url_for, request, g from flask.ext.login import login_user, logout_user from flask.ext.login import current_user, login_required from filebarn import app, db, lm from .forms import LoginForm from .models import User @app.route('/secret/<use...
32.969697
75
0.699449
151
1,088
4.92053
0.403974
0.048452
0.040377
0.04576
0.061911
0
0
0
0
0
0
0
0.172794
1,088
32
76
34
0.825556
0
0
0
0
0
0.090074
0
0
0
0
0
0
1
0.115385
false
0.076923
0.269231
0.076923
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
5ae86cfdf4fb6e5066a584407a52efdaac38c700
7,824
py
Python
main_ssid.py
thomasjanssenR8/Localization
0c4976c5e16a4d1870fa529591701010fa22d49c
[ "Apache-2.0" ]
null
null
null
main_ssid.py
thomasjanssenR8/Localization
0c4976c5e16a4d1870fa529591701010fa22d49c
[ "Apache-2.0" ]
null
null
null
main_ssid.py
thomasjanssenR8/Localization
0c4976c5e16a4d1870fa529591701010fa22d49c
[ "Apache-2.0" ]
null
null
null
""" 6-Bachelor thesis: Wi-Fi localization - Thomas Janssen Localization v1: Use SSID of a network to find coordinates via www.wigle.net and calculate the error. """ import requests import matplotlib.pyplot as plt import haversine class Localization: userID = "" password = "" url = "" ssid = "" re...
50.805195
1,965
0.629729
914
7,824
5.35558
0.299781
0.01716
0.017365
0.013279
0.170787
0.160163
0.149745
0.141982
0.133401
0.104597
0
0.103849
0.186478
7,824
153
1,966
51.137255
0.6652
0.508563
0
0
0
0.012048
0.142517
0.017715
0
0
0
0
0
1
0.13253
false
0.072289
0.036145
0
0.313253
0.096386
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
5aed6d615fa91fad4e07d37eee2af76cc5e8ed65
463
py
Python
hackathon/column1/test_12_5.py
abdurahmanadilovic/elements-of-programming-interviews
14d05935aa901f453ea2086e449b670e993a4c83
[ "MIT" ]
null
null
null
hackathon/column1/test_12_5.py
abdurahmanadilovic/elements-of-programming-interviews
14d05935aa901f453ea2086e449b670e993a4c83
[ "MIT" ]
null
null
null
hackathon/column1/test_12_5.py
abdurahmanadilovic/elements-of-programming-interviews
14d05935aa901f453ea2086e449b670e993a4c83
[ "MIT" ]
null
null
null
from unittest import TestCase from .problem_12_5_closes_squared_number import solution class TestSolution(TestCase): def testGivenCases(self): self.assertEqual(4, solution(16)) def testGivenCases2(self): self.assertEqual(17, solution(300)) def testZero(self): self.assertEqual(0, ...
23.15
56
0.686825
56
463
5.589286
0.5
0.127796
0.303514
0.127796
0.178914
0
0
0
0
0
0
0.049046
0.207343
463
19
57
24.368421
0.803815
0
0
0
0
0
0
0
0
0
0
0
0.384615
1
0.384615
false
0
0.153846
0
0.615385
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
1
0
0
0
0
0
0
0
2
8526ea9531ae4232ab59f4752d913053e7551235
828
py
Python
src/command_manager.py
thomaspenin/orchid-font-tool
c064a5ddd582393e462fd7411eae250944a6f7e5
[ "MIT" ]
null
null
null
src/command_manager.py
thomaspenin/orchid-font-tool
c064a5ddd582393e462fd7411eae250944a6f7e5
[ "MIT" ]
null
null
null
src/command_manager.py
thomaspenin/orchid-font-tool
c064a5ddd582393e462fd7411eae250944a6f7e5
[ "MIT" ]
null
null
null
from src.commands.help import HelpCommand from src.commands.version import VersionCommand class CommandManager(object): """docstring for CommandManager.""" def __init__(self): super(CommandManager, self).__init__() self.command_list = self._build_command_list() def _build_command_list(sel...
26.709677
83
0.625604
90
828
5.533333
0.455556
0.13253
0.090361
0.080321
0
0
0
0
0
0
0
0
0.295894
828
30
84
27.6
0.854202
0.211353
0
0
0
0
0.018092
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.055556
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
516d50479cd839e1f2fb6ba1f23bf879b0b72ee4
178
py
Python
lcopt/bin/lcopt_bw2_setup.py
pjamesjoyce/lcopt_geo
a167ecfa258e62e91af7dac6cbf70be5d63fff93
[ "BSD-3-Clause" ]
17
2017-08-04T11:38:13.000Z
2022-03-29T16:22:39.000Z
lcopt/bin/lcopt_bw2_setup.py
pjamesjoyce/lcopt_geo
a167ecfa258e62e91af7dac6cbf70be5d63fff93
[ "BSD-3-Clause" ]
65
2017-04-27T16:01:04.000Z
2022-01-19T07:36:15.000Z
lcopt/bin/lcopt_bw2_setup.py
pjamesjoyce/lcopt_geo
a167ecfa258e62e91af7dac6cbf70be5d63fff93
[ "BSD-3-Clause" ]
6
2017-06-19T09:37:21.000Z
2022-02-22T18:44:01.000Z
from sys import argv from lcopt.utils import lcopt_bw2_setup def main(): ecospold_path = argv[1] lcopt_bw2_setup(ecospold_path) if __name__ == "__main__": main()
14.833333
39
0.713483
26
178
4.346154
0.576923
0.141593
0.230089
0
0
0
0
0
0
0
0
0.020979
0.196629
178
11
40
16.181818
0.769231
0
0
0
0
0
0.044944
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.428571
0
1
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
2
5174351e99ecce6cc76d978668a7a39b17c6cccd
7,043
py
Python
road-and-rail-stats/calculate_rail_emissions_and_energy.py
Rebeccacachia/projects
4f8bebce1c0b4ba2d032aba658b38c3de9effb32
[ "MIT" ]
null
null
null
road-and-rail-stats/calculate_rail_emissions_and_energy.py
Rebeccacachia/projects
4f8bebce1c0b4ba2d032aba658b38c3de9effb32
[ "MIT" ]
null
null
null
road-and-rail-stats/calculate_rail_emissions_and_energy.py
Rebeccacachia/projects
4f8bebce1c0b4ba2d032aba658b38c3de9effb32
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.4 # kernelspec: # display_name: Python 3 # name: python3 # --- # + from pathlib import Path import geopandas as gpd import pandas as pd fro...
26.378277
102
0.726821
938
7,043
4.971215
0.180171
0.245336
0.144113
0.189149
0.560798
0.537208
0.451855
0.407463
0.399528
0.399528
0
0.031198
0.153486
7,043
266
103
26.477444
0.750923
0.121823
0
0.377778
0
0
0.226545
0.023864
0
0
0
0
0
1
0.005556
false
0
0.022222
0
0.033333
0.005556
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
517d85ea470a29dfc6956fb01a2a0f088f31fb7e
3,217
py
Python
features/steps/day5.py
erikedin/aoc2016
7f248f252b0a846e39c60d66485f796576b2179e
[ "MIT" ]
null
null
null
features/steps/day5.py
erikedin/aoc2016
7f248f252b0a846e39c60d66485f796576b2179e
[ "MIT" ]
null
null
null
features/steps/day5.py
erikedin/aoc2016
7f248f252b0a846e39c60d66485f796576b2179e
[ "MIT" ]
null
null
null
from behave import * import aoc2016.securitydoor as securitydoor import aoc2016.day5 as day5 @given(u'a door with door id "{door_id}"') def step_impl(context, door_id): context.door_breaker = securitydoor.DoorBreaker(door_id) @given(u'a second door with door id "{door_id}"') def step_impl(context, door_id): c...
38.759036
121
0.761579
503
3,217
4.695825
0.172962
0.097798
0.088484
0.144793
0.527519
0.41829
0.316681
0.286198
0.252329
0.144793
0
0.006759
0.126205
3,217
82
122
39.231707
0.833511
0
0
0.222222
0
0.015873
0.29313
0.007771
0
0
0
0
0.095238
1
0.301587
false
0.396825
0.047619
0
0.349206
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
517e27047d5d641e18eeb7fefe552eda3043f7c9
11,125
py
Python
adapters-stk/example/MixedPoissonExample/analyze_performance.py
hillyuan/Panzer
13ece3ea4c145c4d7b6339e3ad6332a501932ea8
[ "BSD-3-Clause" ]
1
2022-03-22T03:49:50.000Z
2022-03-22T03:49:50.000Z
adapters-stk/example/MixedPoissonExample/analyze_performance.py
hillyuan/Panzer
13ece3ea4c145c4d7b6339e3ad6332a501932ea8
[ "BSD-3-Clause" ]
null
null
null
adapters-stk/example/MixedPoissonExample/analyze_performance.py
hillyuan/Panzer
13ece3ea4c145c4d7b6339e3ad6332a501932ea8
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python """ Script for analyzing Panzer kernel performance on next-generation architectures. Runs hierarchic parallelism and generates plots from data. """ __version__ = "1.0" __author__ = "Roger Pawlowski" __date__ = "Dec 2018" # Import python modules for command-line options, the operating syst...
51.985981
234
0.626427
1,379
11,125
4.894851
0.211748
0.058667
0.088889
0.08
0.547111
0.50637
0.479704
0.447111
0.401778
0.386222
0
0.014244
0.19227
11,125
213
235
52.230047
0.736924
0.134112
0
0.242424
1
0.007576
0.379639
0.186645
0
0
0
0
0
0
null
null
0
0.060606
null
null
0.113636
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
1
0
0
0
0
0
0
0
0
2
51924a6869dfd9437cc45177c80fbceb98f4485d
243
py
Python
sedastrela_is/urls.py
ondrejsika/sedastrela-is
be9c449c81fd1d7711a09acceb2321fd4828e8b1
[ "MIT" ]
null
null
null
sedastrela_is/urls.py
ondrejsika/sedastrela-is
be9c449c81fd1d7711a09acceb2321fd4828e8b1
[ "MIT" ]
null
null
null
sedastrela_is/urls.py
ondrejsika/sedastrela-is
be9c449c81fd1d7711a09acceb2321fd4828e8b1
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.views.generic.base import RedirectView urlpatterns = [ url(r'^event/', include('sedastrela_is.event.urls', namespace='event')), url(r'^$', RedirectView.as_view(url='/admin/')), ]
27
76
0.707819
32
243
5.3125
0.625
0.117647
0
0
0
0
0
0
0
0
0
0
0.115226
243
8
77
30.375
0.790698
0
0
0
0
0
0.185185
0.098765
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
51a8a5ea4b3bcb9b33a3e62002c249025c90e13f
13,905
py
Python
tests/test_images.py
Muhammad-R/flaskr
16f33963653fa758c9402b91f2f4723ba3d7a6db
[ "MIT" ]
2
2021-03-04T08:23:20.000Z
2021-12-19T16:41:54.000Z
tests/test_images.py
Muhammad-R/flaskr
16f33963653fa758c9402b91f2f4723ba3d7a6db
[ "MIT" ]
null
null
null
tests/test_images.py
Muhammad-R/flaskr
16f33963653fa758c9402b91f2f4723ba3d7a6db
[ "MIT" ]
2
2021-09-14T20:57:35.000Z
2021-12-19T15:26:58.000Z
import os import shutil import pytest from flask import url_for from werkzeug.datastructures import FileStorage from flaskr import images from flaskr.db import get_db class ExampleImage(object): def __init__(self): self.filename = "example.png" self.path = os.path.join( os.path.dirna...
37.379032
79
0.665085
1,754
13,905
4.982896
0.104903
0.072769
0.050343
0.043249
0.777117
0.715446
0.697941
0.660526
0.64611
0.617162
0
0.006901
0.249622
13,905
371
80
37.479784
0.830746
0.096081
0
0.607407
0
0
0.067119
0.004629
0
0
0
0
0.225926
1
0.07037
false
0
0.025926
0
0.1
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
51c816d336e3c0a3ca2ec653b14ab90eeb171ba8
51
py
Python
python_work/Chapter2_Exercises/exe7_name_cases.py
Elektra-2/python_crash_course_2nd
1c8beaddfe037faa3a36e7c384a6ea2f9d560060
[ "MIT" ]
1
2020-08-25T18:42:30.000Z
2020-08-25T18:42:30.000Z
python_work/Chapter2_Exercises/exe7_name_cases.py
Elektra-2/python_crash_course_2nd
1c8beaddfe037faa3a36e7c384a6ea2f9d560060
[ "MIT" ]
null
null
null
python_work/Chapter2_Exercises/exe7_name_cases.py
Elektra-2/python_crash_course_2nd
1c8beaddfe037faa3a36e7c384a6ea2f9d560060
[ "MIT" ]
null
null
null
nome = "\tCarolina" nome = nome.strip() print(nome)
17
19
0.686275
7
51
5
0.571429
0
0
0
0
0
0
0
0
0
0
0
0.117647
51
3
20
17
0.777778
0
0
0
0
0
0.192308
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
51dd8afe5967102df99425c0fa965295c60ca0cb
460
py
Python
pyrhessys/read_shellscript.py
DavidChoi76/pyRHESSys
7dd75041bdafa8dd99851960bec4e27c834f9cc8
[ "MIT" ]
null
null
null
pyrhessys/read_shellscript.py
DavidChoi76/pyRHESSys
7dd75041bdafa8dd99851960bec4e27c834f9cc8
[ "MIT" ]
6
2020-05-28T17:46:11.000Z
2020-12-02T06:43:49.000Z
pyrhessys/read_shellscript.py
DavidChoi76/pyRHESSys
7dd75041bdafa8dd99851960bec4e27c834f9cc8
[ "MIT" ]
1
2022-01-15T12:45:12.000Z
2022-01-15T12:45:12.000Z
import os import shutil import pkg_resources delineation_d8 = pkg_resources.resource_filename( __name__, 'sh_code/grass_delineation_d8.sh') delineation_dinf = pkg_resources.resource_filename( __name__, 'sh_code/grass_delineation_dinf.sh') spatial_hierarchy = pkg_resources.resource_filename( __n...
35.384615
55
0.793478
58
460
5.603448
0.310345
0.184615
0.246154
0.344615
0.581538
0.581538
0.581538
0.464615
0.332308
0
0
0.004988
0.128261
460
12
56
38.333333
0.805486
0
0
0
0
0
0.265217
0.265217
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
51e477d0f9beac58a4c8c8d7b0f51e45e12352e0
362
py
Python
Recipes/Recipes/web_app/models.py
petel3/Softuni_education
4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c
[ "MIT" ]
2
2022-03-05T13:17:12.000Z
2022-03-05T13:17:16.000Z
Recipes/Recipes/web_app/models.py
petel3/Softuni_education
4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c
[ "MIT" ]
null
null
null
Recipes/Recipes/web_app/models.py
petel3/Softuni_education
4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c
[ "MIT" ]
null
null
null
from django.db import models class Recipe(models.Model): TITLE_MAX_LEN=30 INGREDIENTS_MAX_LEN=250 title=models.CharField( max_length=TITLE_MAX_LEN, ) image_url=models.URLField() description=models.TextField() ingredients=models.CharField( max_length=INGREDIENTS_MAX_LEN, ...
18.1
39
0.696133
43
362
5.604651
0.534884
0.099585
0.091286
0.19917
0
0
0
0
0
0
0
0.017668
0.218232
362
19
40
19.052632
0.833922
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.692308
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
1
0
0
2
51f4ea1e8dffd32df205aff2ca163a1723388b58
10,566
py
Python
pucadmin/secondments/migrations/0001_initial.py
JobDoesburg/PUC-admin
ab61478cbf1cb0ddb57661a7508e70b23642810b
[ "MIT" ]
null
null
null
pucadmin/secondments/migrations/0001_initial.py
JobDoesburg/PUC-admin
ab61478cbf1cb0ddb57661a7508e70b23642810b
[ "MIT" ]
null
null
null
pucadmin/secondments/migrations/0001_initial.py
JobDoesburg/PUC-admin
ab61478cbf1cb0ddb57661a7508e70b23642810b
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-11-26 20:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ("organisations", "0004_auto_20210718_1147"), ("schools", "0004_auto_20211126_2107"), ] o...
34.529412
84
0.376301
637
10,566
6.032967
0.172684
0.125943
0.037471
0.045798
0.618787
0.584179
0.523289
0.483997
0.431954
0.36612
0
0.015828
0.533598
10,566
305
85
34.642623
0.764002
0.004259
0
0.627517
1
0
0.132047
0.015781
0
0
0
0
0
1
0
false
0
0.006711
0
0.020134
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
51f7fd3b964d6ecb8c5ec2f8d89edff3d73d845e
1,229
py
Python
lib/utils/stat.py
shikorab/DSG
f2e5eeb1e9695da47b964f3da91b197ab3ecc7ba
[ "MIT" ]
9
2020-05-29T18:36:56.000Z
2021-09-22T12:23:21.000Z
lib/utils/stat.py
shikorab/DSG
f2e5eeb1e9695da47b964f3da91b197ab3ecc7ba
[ "MIT" ]
1
2021-03-21T14:21:27.000Z
2021-03-21T14:21:27.000Z
lib/utils/stat.py
shikorab/DSG
f2e5eeb1e9695da47b964f3da91b197ab3ecc7ba
[ "MIT" ]
3
2020-05-31T03:15:59.000Z
2020-12-30T05:48:20.000Z
class Stat: def __init__(self): self.sum = {} self.sum_square = {} self.count = {} def add(self, key, value): self.count[key] = self.count.get(key, 0) + 1 self.sum[key] = self.sum.get(key, 0.0) + value self.sum_square[key] = self.sum_square.get(key, 0.0) + value...
34.138889
114
0.528885
192
1,229
3.317708
0.151042
0.120879
0.120879
0.117739
0.412873
0.255887
0.189953
0.189953
0.189953
0.094192
0
0.028504
0.31489
1,229
35
115
35.114286
0.728029
0
0
0
0
0
0.025224
0
0
0
0
0
0
1
0.25
false
0
0
0.107143
0.392857
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
a409519b575802d5e295668a5c504b47abedd1a4
70
py
Python
trade_system/offers/choises.py
Artsiom-Shlapakou/trade-system
41c7bd6779b159d1c867968f5230d4ccbc37995a
[ "MIT" ]
null
null
null
trade_system/offers/choises.py
Artsiom-Shlapakou/trade-system
41c7bd6779b159d1c867968f5230d4ccbc37995a
[ "MIT" ]
null
null
null
trade_system/offers/choises.py
Artsiom-Shlapakou/trade-system
41c7bd6779b159d1c867968f5230d4ccbc37995a
[ "MIT" ]
null
null
null
BUY = 1 SALE = 2 OrderType = [ (BUY, 'BUY'), (SALE, 'SALE') ]
10
18
0.457143
9
70
3.555556
0.555556
0
0
0
0
0
0
0
0
0
0
0.041667
0.314286
70
7
19
10
0.625
0
0
0
0
0
0.098592
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
cf91304e2204d86edfae47bac4c942d96ebb31ad
1,807
py
Python
meiduo_mall/meiduo_mall/apps/verifications/views.py
zhiliangsu/MeiduoMall
a3968c52f6815ccda6513371d331580dc5aa58f3
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/verifications/views.py
zhiliangsu/MeiduoMall
a3968c52f6815ccda6513371d331580dc5aa58f3
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/verifications/views.py
zhiliangsu/MeiduoMall
a3968c52f6815ccda6513371d331580dc5aa58f3
[ "MIT" ]
null
null
null
import logging from django.shortcuts import render from rest_framework.response import Response from rest_framework.views import APIView from random import randint from django_redis import get_redis_connection from rest_framework import status from meiduo_mall.libs.yuntongxun.sms import CCP from . import constants fr...
30.627119
96
0.679026
229
1,807
5.113537
0.414847
0.077711
0.037575
0.038429
0.192997
0.169086
0.169086
0.169086
0.169086
0.169086
0
0.01976
0.215827
1,807
58
97
31.155172
0.806634
0.308799
0
0
0
0
0.060408
0
0
0
0
0
0
1
0.04
false
0
0.4
0
0.56
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
cf9c78ede48195cf2c3a61fc9f5787fc0aa9ab8b
1,114
py
Python
core/views.py
DjangoBoston/django-mulsite
1a4c0e710fa89cbdeda1f0d9070588cdde0878db
[ "MIT" ]
null
null
null
core/views.py
DjangoBoston/django-mulsite
1a4c0e710fa89cbdeda1f0d9070588cdde0878db
[ "MIT" ]
4
2021-03-19T01:05:57.000Z
2022-02-10T08:23:38.000Z
core/views.py
DjangoBoston/django-mulsite
1a4c0e710fa89cbdeda1f0d9070588cdde0878db
[ "MIT" ]
null
null
null
from django.contrib.sites.models import Site from django.contrib.auth import get_user_model from django.contrib.sites.shortcuts import get_current_site from rest_framework import viewsets from core.models import SiteUser from core import sites from core.serializers import SiteUserSerializer, SiteSerializer, UserSeri...
27.170732
79
0.752244
132
1,114
6.174242
0.401515
0.03681
0.062577
0.053988
0.228221
0.228221
0.154601
0.154601
0.154601
0.154601
0
0
0.184022
1,114
40
80
27.85
0.89659
0.087074
0
0.24
0
0
0
0
0
0
0
0.025
0
1
0.08
false
0
0.28
0
0.84
0
0
0
0
null
0
0
0
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
1
0
0
2
cf9d331b8df5bee8697093247c209e1dc1500366
1,445
py
Python
Mutable Function.py
samli6479/PythonLearn
2ad78f62d58612132d3a3759aecec4a52381566f
[ "Apache-2.0" ]
null
null
null
Mutable Function.py
samli6479/PythonLearn
2ad78f62d58612132d3a3759aecec4a52381566f
[ "Apache-2.0" ]
null
null
null
Mutable Function.py
samli6479/PythonLearn
2ad78f62d58612132d3a3759aecec4a52381566f
[ "Apache-2.0" ]
null
null
null
# A function with Behavior That varies Over Time # A function compound value have a body and a parent frame # The parent frame contains the balance, the local state of the withdraw function # Non-Local Assignment & Persistent Local State # Work for python 3 def make_withdraw(balance): """ Return a withdraw fun...
32.111111
130
0.674048
189
1,445
5.142857
0.365079
0.057613
0.058642
0.045267
0.255144
0.255144
0.207819
0.207819
0.133745
0.133745
0
0.009372
0.261592
1,445
44
131
32.840909
0.901593
0.476125
0
0.695652
0
0
0.049113
0
0
0
0
0
0
1
0.26087
false
0
0
0
0.608696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
cfae276e00c535030e057c9ddc74b0073c1f988e
1,470
py
Python
brain/src/model/firmware_error.py
siddharthkundu/raspberry-pi-os-image-builder
ffbb008668340e602722f98227048ed3e5243386
[ "Apache-2.0" ]
null
null
null
brain/src/model/firmware_error.py
siddharthkundu/raspberry-pi-os-image-builder
ffbb008668340e602722f98227048ed3e5243386
[ "Apache-2.0" ]
null
null
null
brain/src/model/firmware_error.py
siddharthkundu/raspberry-pi-os-image-builder
ffbb008668340e602722f98227048ed3e5243386
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from enum import unique, IntEnum import json @unique class ErrorType(IntEnum): WARNING = 5 ERROR = 6 OK = 4 class FirmwareError: def __init__(self, number: int, task: str, description: str) -> None: self.number = number self.task = task sel...
30.625
116
0.647619
174
1,470
5.241379
0.367816
0.054825
0.0625
0.108553
0.100877
0.100877
0.100877
0
0
0
0
0.004464
0.238095
1,470
47
117
31.276596
0.809821
0.092517
0
0.0625
0
0.03125
0.072079
0
0
0
0
0
0
1
0.21875
false
0
0.09375
0.09375
0.71875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
cfb3732057211f535d8019c8ff6d43bb2848aa9e
325
py
Python
Gold_Badges/Ayuba_Badge/backend/frontend/tests.py
MoonX-Hub/Voting
e7d3672405a8752a7d8ea15bfde8201c943d7685
[ "Apache-2.0" ]
5
2021-09-15T08:03:05.000Z
2022-03-31T22:12:35.000Z
Gold_Badges/Ayuba_Badge/backend/frontend/tests.py
MoonX-Hub/Voting
e7d3672405a8752a7d8ea15bfde8201c943d7685
[ "Apache-2.0" ]
null
null
null
Gold_Badges/Ayuba_Badge/backend/frontend/tests.py
MoonX-Hub/Voting
e7d3672405a8752a7d8ea15bfde8201c943d7685
[ "Apache-2.0" ]
3
2021-12-10T01:30:38.000Z
2021-12-26T17:45:13.000Z
#from django.test import TestCase # Create your tests here. from algosdk import account,mnemonic def generateAccount(): private_key, public_key = account.generate_account() print('addr:',public_key) print('mnemonic:',mnemonic.from_private_key(private_key)) return private_key,public_key generateAcco...
23.214286
61
0.769231
41
325
5.878049
0.512195
0.165975
0.13278
0.157676
0
0
0
0
0
0
0
0
0.135385
325
14
62
23.214286
0.857651
0.172308
0
0
1
0
0.052239
0
0
0
0
0
0
1
0.142857
true
0
0.142857
0
0.428571
0.285714
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
1
0
0
0
0
0
0
2
cfbba94515cd85c42f66f489666d043f63087f36
404
py
Python
parens/plistd.py
NoraCodes/pyparens
3f0579bfd947d9f689ee51b706109b4a3d4b21a9
[ "MIT" ]
2
2021-01-08T17:13:30.000Z
2021-11-17T11:39:24.000Z
parens/plistd.py
NoraCodes/pyparens
3f0579bfd947d9f689ee51b706109b4a3d4b21a9
[ "MIT" ]
null
null
null
parens/plistd.py
NoraCodes/pyparens
3f0579bfd947d9f689ee51b706109b4a3d4b21a9
[ "MIT" ]
null
null
null
# plistd.py # Python LIsp STanDard library def makelist(*args): " Create a list from arguments. " return list(args) def quote(*args): return ['"{}"'.format(a) if isinstance(a, str) else a for a in args] def cond(test, then, else_=False, *, env): from .eval import eval return eval(then if test ...
19.238095
72
0.638614
62
404
4.129032
0.532258
0.054688
0
0
0
0
0
0
0
0
0
0
0.230198
404
20
73
20.2
0.823151
0.173267
0
0
0
0
0.096419
0
0
0
0
0
0
1
0.363636
false
0
0.090909
0.090909
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
cfcc0c173cc04cd06fb9541afc5a52fc6abd7401
636
py
Python
generate_password/random_sample.py
XinyueZ/some-python-codes
2d7296a4deebb0cd086be34ad7d66f5042cdf6e6
[ "Unlicense" ]
null
null
null
generate_password/random_sample.py
XinyueZ/some-python-codes
2d7296a4deebb0cd086be34ad7d66f5042cdf6e6
[ "Unlicense" ]
null
null
null
generate_password/random_sample.py
XinyueZ/some-python-codes
2d7296a4deebb0cd086be34ad7d66f5042cdf6e6
[ "Unlicense" ]
null
null
null
""" This is another sample to generate password. """ import random # Use an import statement at the top word_file = "words.txt" word_list = [] #fill up the word_list with open(word_file,'r') as words: for line in words: # remove white space and make everything lowercase word = line.strip().lower(...
25.44
68
0.597484
85
636
4.376471
0.694118
0.086022
0
0
0
0
0
0
0
0
0
0.006849
0.311321
636
24
69
26.5
0.842466
0.345912
0
0
1
0
0.024752
0
0
0
0
0
0
1
0.1
false
0.2
0.1
0.1
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
cfcef9df4894b134addf72c709648c18ea2aa5c9
628
py
Python
ramda/ap.py
zydmayday/pamda
6740d0294f3bedbeeef3bbc3042a43dceb3239b2
[ "MIT" ]
1
2022-03-14T07:35:13.000Z
2022-03-14T07:35:13.000Z
ramda/ap.py
zydmayday/pamda
6740d0294f3bedbeeef3bbc3042a43dceb3239b2
[ "MIT" ]
3
2022-03-24T02:30:18.000Z
2022-03-31T07:46:04.000Z
ramda/ap.py
zydmayday/pamda
6740d0294f3bedbeeef3bbc3042a43dceb3239b2
[ "MIT" ]
null
null
null
from .map import map from .private._concat import _concat from .private._curry2 import _curry2 from .private._helper import getAttribute from .private._isFunction import _isFunction from .private._reduce import _reduce def inner_ap(applyF, applyX): if _isFunction(getAttribute(applyX, 'fantasy-land/ap')): return...
31.4
73
0.75
83
628
5.46988
0.277108
0.121145
0.079295
0.127753
0.136564
0
0
0
0
0
0
0.005484
0.128981
628
19
74
33.052632
0.824497
0
0
0
0
0
0.05414
0
0
0
0
0
0
1
0.066667
false
0
0.4
0
0.733333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
cfd103c655e14bd5cf358f126c6fa0c152f8b798
1,894
py
Python
toxaway/views/contract/__init__.py
cmickeyb/toxaway
dbc3391bfafac8464b191e6e5228ab56258f02fb
[ "Apache-2.0" ]
null
null
null
toxaway/views/contract/__init__.py
cmickeyb/toxaway
dbc3391bfafac8464b191e6e5228ab56258f02fb
[ "Apache-2.0" ]
null
null
null
toxaway/views/contract/__init__.py
cmickeyb/toxaway
dbc3391bfafac8464b191e6e5228ab56258f02fb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwar...
51.189189
119
0.716473
257
1,894
5.070039
0.361868
0.04835
0.073676
0.110514
0.288565
0.135073
0.135073
0.135073
0.135073
0.135073
0
0.002364
0.106653
1,894
36
120
52.611111
0.767731
0.354805
0
0
0
0
0.175104
0.077178
0
0
0
0
0
1
0.058824
false
0
0.470588
0
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
cfd18c0693619d0fdb0cb134fdd955a738fdd3c2
346
py
Python
Exercicios-Python/CursoEmVideo/ex035.py
bruno1906/ExerciciosPython
af657fb8083bc60b80d35d0d9f66495a2f1e3b43
[ "MIT" ]
null
null
null
Exercicios-Python/CursoEmVideo/ex035.py
bruno1906/ExerciciosPython
af657fb8083bc60b80d35d0d9f66495a2f1e3b43
[ "MIT" ]
null
null
null
Exercicios-Python/CursoEmVideo/ex035.py
bruno1906/ExerciciosPython
af657fb8083bc60b80d35d0d9f66495a2f1e3b43
[ "MIT" ]
null
null
null
print('-*-'*20) print('Analisador de triângulos ') print('-*-'*20) r1=float(input('Primeiro segmento:')) r2=float(input('Segundo segmento:')) r3=float(input('Terceiro segmento:')) if r1<r2+r3 and r2<r1+r3 and r3<r1+r2: print('Os segmentos acima podem formar um triangulo') else: print('Os segmentos acima não pod...
28.833333
61
0.702312
53
346
4.584906
0.471698
0.123457
0.131687
0.17284
0
0
0
0
0
0
0
0.052805
0.124277
346
11
62
31.454545
0.749175
0
0
0.2
0
0
0.510145
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
1
0
2
cfe5d3050fdcafb0b2e8679258684898732aba8c
528
py
Python
code_reviews/palabras_largas/palabras_largas_refactored.py
proto-tools-docs/Soluciones
7a619e00572a3496cb08a90702f152f52c6d5e56
[ "MIT" ]
null
null
null
code_reviews/palabras_largas/palabras_largas_refactored.py
proto-tools-docs/Soluciones
7a619e00572a3496cb08a90702f152f52c6d5e56
[ "MIT" ]
null
null
null
code_reviews/palabras_largas/palabras_largas_refactored.py
proto-tools-docs/Soluciones
7a619e00572a3496cb08a90702f152f52c6d5e56
[ "MIT" ]
null
null
null
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython Solución completa en: https://github.com/AyudaEnPython/Soluciones/blob/main/ejercicios/palabras_largas.py """ from prototools.entradas import entrada_int def solver(s: str, n: int) -> bool: return any(len(e) >= n for e in s.split()) def main(): ...
26.4
83
0.693182
76
528
4.671053
0.671053
0.11831
0.095775
0.107042
0
0
0
0
0
0
0
0.002252
0.159091
528
20
84
26.4
0.797297
0.357955
0
0
0
0
0.207207
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.111111
0.444444
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
32192f629351c3c68beb0f689c9a0a85ec1e8711
337
py
Python
jrdb/models/managers.py
hankehly/JRDB
ad470e867d204ea975f7b98b57881d72fcfb41c7
[ "MIT" ]
1
2022-02-19T14:44:34.000Z
2022-02-19T14:44:34.000Z
jrdb/models/managers.py
hankehly/JRDB
ad470e867d204ea975f7b98b57881d72fcfb41c7
[ "MIT" ]
null
null
null
jrdb/models/managers.py
hankehly/JRDB
ad470e867d204ea975f7b98b57881d72fcfb41c7
[ "MIT" ]
1
2022-02-19T14:46:40.000Z
2022-02-19T14:46:40.000Z
import pandas as pd from django.db import models from django.db.models.query import ModelIterable class DataFrameQuerySet(models.QuerySet): def to_dataframe(self): records = ( self.values() if issubclass(self._iterable_class, ModelIterable) else self ) return pd.DataFrame.from_...
28.083333
86
0.718101
41
337
5.804878
0.585366
0.084034
0.10084
0
0
0
0
0
0
0
0
0
0.207715
337
11
87
30.636364
0.891386
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
5c5b855dafbecfa12d8f6ff9bfebe6eb2b90cd1b
710
py
Python
PublisherAzureTestsResults/variables.py
ismailktami/robotframework-azuretestplans-results
261f936a24121a90cf0a778a61b31bb01f490d41
[ "MIT" ]
1
2022-03-18T13:30:34.000Z
2022-03-18T13:30:34.000Z
PublisherAzureTestsResults/variables.py
ismailktami/robotframework-azuretestplans-results
261f936a24121a90cf0a778a61b31bb01f490d41
[ "MIT" ]
null
null
null
PublisherAzureTestsResults/variables.py
ismailktami/robotframework-azuretestplans-results
261f936a24121a90cf0a778a61b31bb01f490d41
[ "MIT" ]
null
null
null
from robot.libraries.BuiltIn import BuiltIn import json class VariablesBuiltIn: @staticmethod def getVariables(): USERNAME = BuiltIn().get_variable_value("${USERNAME}") or "USERNAME" ENVIRONNEMENT = BuiltIn().get_variable_value("${ENVIRONNEMENT}") or "ENVIRONNEMENT" JOB_ID = BuiltIn()....
47.333333
144
0.691549
85
710
5.447059
0.282353
0.12959
0.233261
0.298056
0.168467
0
0
0
0
0
0
0
0.156338
710
14
145
50.714286
0.772955
0
0
0
0
0
0.201408
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.416667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5c6c0888dbb7c41a10165e561af163c693fbb054
1,014
py
Python
Utility/Torch/Models/Supertransformer/StorageTools.py
smithblack-0/Utility
875ab69fffad1412174d9d0a1de70edc1fd64152
[ "MIT" ]
null
null
null
Utility/Torch/Models/Supertransformer/StorageTools.py
smithblack-0/Utility
875ab69fffad1412174d9d0a1de70edc1fd64152
[ "MIT" ]
null
null
null
Utility/Torch/Models/Supertransformer/StorageTools.py
smithblack-0/Utility
875ab69fffad1412174d9d0a1de70edc1fd64152
[ "MIT" ]
null
null
null
""" Storing tensors such that torchscript can work with them can be quite a pain. This set of tools makes it a lot easier. Tensors are stored by placing them in the initialization region, and become something that can then be accessed by looking at .stored """ from __future__ import annotations from typing import ...
28.166667
77
0.75641
135
1,014
5.555556
0.555556
0.08
0.072
0.058667
0.176
0
0
0
0
0
0
0
0.171598
1,014
35
78
28.971429
0.892857
0.254438
0
0
0
0
0
0
0
0
0
0
0
1
0.176471
false
0
0.352941
0.058824
0.705882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
5c7d69cf4bcf2289ab3c3b5c106e109c577910a8
1,364
py
Python
treap/treap_test.py
Monras/Treap
867465fca019e0ca3745c07235900706e74e1173
[ "CC-BY-3.0" ]
null
null
null
treap/treap_test.py
Monras/Treap
867465fca019e0ca3745c07235900706e74e1173
[ "CC-BY-3.0" ]
null
null
null
treap/treap_test.py
Monras/Treap
867465fca019e0ca3745c07235900706e74e1173
[ "CC-BY-3.0" ]
null
null
null
#Test code to treap.py from treap import * def test(): """test code to treap.py""" treap = Treap() treap.add("A", 2) treap.add("B", 123) treap.add("C", 23) treap.add("D", "T") all = treap.get_all() assert treap.size() == 4 assert treap.search("A") == all[0] assert treap.get_min(...
27.28
41
0.576979
216
1,364
3.550926
0.194444
0.344198
0.156454
0.110821
0.504563
0.319426
0.277705
0.277705
0.194263
0.119948
0
0.036893
0.244868
1,364
49
42
27.836735
0.707767
0.031525
0
0.232558
0
0
0.019011
0
0
0
0
0
0.744186
1
0.023256
false
0
0.023256
0
0.046512
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
1
0
0
0
0
0
0
0
0
0
2
5c81f37a8aca6a5f42cddb3483e43667ae7ea664
289
py
Python
alembic/versions/e43177bfe90b_nbgrader_schema.py
EvgenyTsydenov/python_course
d3d228b4bf051ad5fb0dff14c2a1fc9656d5ae63
[ "MIT" ]
4
2022-03-22T14:26:19.000Z
2022-03-24T05:05:12.000Z
alembic/versions/e43177bfe90b_nbgrader_schema.py
EvgenyTsydenov/python_course
d3d228b4bf051ad5fb0dff14c2a1fc9656d5ae63
[ "MIT" ]
null
null
null
alembic/versions/e43177bfe90b_nbgrader_schema.py
EvgenyTsydenov/python_course
d3d228b4bf051ad5fb0dff14c2a1fc9656d5ae63
[ "MIT" ]
null
null
null
"""nbgrader_schema Revision ID: e43177bfe90b Revises: Create Date: 2021-09-11 04:07:31.804665+00:00 """ # revision identifiers, used by Alembic. revision = 'e43177bfe90b' down_revision = None branch_labels = None depends_on = None def upgrade(): pass def downgrade(): pass
13.136364
45
0.719723
39
289
5.230769
0.769231
0
0
0
0
0
0
0
0
0
0
0.158996
0.17301
289
21
46
13.761905
0.694561
0.477509
0
0.25
0
0
0.083916
0
0
0
0
0
0
1
0.25
false
0.25
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
5cb480c198ba718ab8b76bbb622684e256d89ea8
4,582
py
Python
ooobuild/lo/xml/sax/x_fast_attribute_list.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/xml/sax/x_fast_attribute_list.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/xml/sax/x_fast_attribute_list.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
46.755102
314
0.721955
598
4,582
5.456522
0.301003
0.025743
0.04597
0.052099
0.503218
0.476862
0.476862
0.447135
0.447135
0.447135
0
0.014796
0.218245
4,582
97
315
47.237113
0.896147
0.659974
0
0.269231
0
0
0.165714
0.119184
0
0
0
0
0
1
0.269231
false
0
0.192308
0
0.653846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
5cd51578386d122ba218a5538c2d40af15721e00
1,612
py
Python
tests/integration/test_termination.py
jobvs/cf-mendix-buildpack
7df5585b5ac8550fd36d21c9d354d74489ff78c0
[ "Apache-2.0" ]
1
2022-01-31T09:56:06.000Z
2022-01-31T09:56:06.000Z
tests/integration/test_termination.py
jobvs/cf-mendix-buildpack
7df5585b5ac8550fd36d21c9d354d74489ff78c0
[ "Apache-2.0" ]
null
null
null
tests/integration/test_termination.py
jobvs/cf-mendix-buildpack
7df5585b5ac8550fd36d21c9d354d74489ff78c0
[ "Apache-2.0" ]
5
2018-12-17T09:45:17.000Z
2020-11-17T22:08:10.000Z
from tests.integration import basetest class TestCaseTermination(basetest.BaseTest): # Tests that the process terminates with a stack trace when Python code # errors. The env variable S3_ENCRYPTION_KEYS is used here, it doesn't # have a try-except on it. # TODO determine if we can unit test this / sh...
35.043478
75
0.630273
187
1,612
5.15508
0.540107
0.041494
0.049793
0.068465
0.296681
0.209544
0.151452
0.151452
0.151452
0.151452
0
0.020566
0.276055
1,612
45
76
35.822222
0.805484
0.137717
0
0.314286
0
0
0.212274
0.074368
0
0
0
0.022222
0.171429
1
0.085714
false
0.085714
0.028571
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
0
0
0
2
5cd8dfb05582b57c170a1f603910f7bd19608dbe
419
py
Python
tests/models/r-net_dynamic_test.py
matthew-z/pytorch_rnet
670f3796cd01595903ef781ec7eb0e55c020e77b
[ "MIT" ]
227
2017-09-20T08:17:07.000Z
2022-02-16T23:48:04.000Z
tests/models/r-net_dynamic_test.py
matthew-z/R-Net
670f3796cd01595903ef781ec7eb0e55c020e77b
[ "MIT" ]
18
2017-10-25T14:42:56.000Z
2020-04-14T18:50:48.000Z
tests/models/r-net_dynamic_test.py
matthew-z/R-Net
670f3796cd01595903ef781ec7eb0e55c020e77b
[ "MIT" ]
59
2017-10-02T15:25:27.000Z
2021-05-28T07:57:39.000Z
from allennlp.common.testing import ModelTestCase from qa.squad.rnet import RNet class RNetDynamicTest(ModelTestCase): def setUp(self): super().setUp() self.set_up_model('tests/fixtures/rnet/experiment_dynamic.jsonnet', 'tests/fixtures/data/squad.json') def test_model...
34.916667
75
0.72315
55
419
5.218182
0.618182
0.062718
0.090592
0.118467
0.195122
0.195122
0.195122
0
0
0
0
0
0.186158
419
11
76
38.090909
0.841642
0
0
0
0
0
0.181384
0.181384
0
0
0
0
0
1
0.222222
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
1
0
0
0
0
1
0
0
2
7a3bf82ffb41a87ec9399ff8dca826537eac4c4f
1,039
py
Python
ecdsa_keygen.py
seandsanders/ecdsa_keygen
5c7f71a8f403e4f69beeeca3d0df576a89045ee7
[ "MIT" ]
1
2015-12-17T10:46:37.000Z
2015-12-17T10:46:37.000Z
ecdsa_keygen.py
seandsanders/ecdsa_keygen
5c7f71a8f403e4f69beeeca3d0df576a89045ee7
[ "MIT" ]
null
null
null
ecdsa_keygen.py
seandsanders/ecdsa_keygen
5c7f71a8f403e4f69beeeca3d0df576a89045ee7
[ "MIT" ]
null
null
null
import argparse from binascii import hexlify from ecdsa import SigningKey, NIST256p from ecdsa.curves import curves def generate_ecdsa_keypair(curve): signing_key = SigningKey.generate(curve=curve) signing_key.to_string() verifying_key = signing_key.get_verifying_key() return signing_key, verifying_ke...
28.081081
70
0.709336
123
1,039
5.723577
0.422764
0.056818
0.056818
0
0
0
0
0
0
0
0
0.007101
0.186718
1,039
37
71
28.081081
0.826036
0
0
0
1
0
0.034615
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
7a5f45847ce76f45725bec3e256fc722d6260c66
556
py
Python
setup.py
Don-Felice/photoraspi
04b64f65cacde6c7d31acd1b5f337444d1ee7489
[ "MIT" ]
null
null
null
setup.py
Don-Felice/photoraspi
04b64f65cacde6c7d31acd1b5f337444d1ee7489
[ "MIT" ]
null
null
null
setup.py
Don-Felice/photoraspi
04b64f65cacde6c7d31acd1b5f337444d1ee7489
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='photoraspi', version='0.1.0', author='Felix Segerer', packages=['photoraspi'], license='LICENSE', description='Photography tools using the raspberry pi', entry_points={ 'console_scripts': [ 'photoraspi = photoraspi.__main__:main...
25.272727
61
0.595324
50
556
6.48
0.64
0.209877
0.12963
0
0
0
0
0
0
0
0
0.007444
0.27518
556
21
62
26.47619
0.796526
0
0
0.105263
0
0
0.498201
0.226619
0
0
0
0
0
1
0
true
0
0.052632
0
0.052632
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
1
0
0
0
0
0
0
2
7a5f59b8105d8c01b6a6b66cefa57d4ad90dde3c
92,239
py
Python
psx/_dump_/17/_dump_ida_/set_vars.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
15
2018-06-28T01:11:25.000Z
2021-09-27T15:57:18.000Z
psx/_dump_/17/_dump_ida_/set_vars.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-29T04:08:23.000Z
2019-10-17T13:57:22.000Z
psx/_dump_/17/_dump_ida_/set_vars.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-28T01:11:34.000Z
2020-05-23T09:21:48.000Z
del_items(0x80114B24) SetType(0x80114B24, "int NumOfMonsterListLevels") del_items(0x800A49E4) SetType(0x800A49E4, "struct MonstLevel AllLevels[16]") del_items(0x80114820) SetType(0x80114820, "unsigned char NumsLEV1M1A[4]") del_items(0x80114824) SetType(0x80114824, "unsigned char NumsLEV1M1B[4]") del_items(0x80114828) S...
33.407823
67
0.815414
11,130
92,239
6.604762
0.266757
0.150182
0.008448
0.000925
0
0
0
0
0
0
0
0.264379
0.067336
92,239
2,760
68
33.419928
0.590122
0
0
0
0
0
0.311788
0.006993
0
0
0.299223
0
0
1
0
true
0.000362
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
7a66397e7772830697bee3478cb657c01b06a8bc
655
py
Python
src/aspire/utils/em.py
janden/ASPIRE-Python
5bcf831881fd0e42630c3b99671c5ed08de260ea
[ "MIT" ]
null
null
null
src/aspire/utils/em.py
janden/ASPIRE-Python
5bcf831881fd0e42630c3b99671c5ed08de260ea
[ "MIT" ]
5
2019-06-07T13:25:29.000Z
2019-06-18T20:34:37.000Z
src/aspire/utils/em.py
janden/ASPIRE-Python
5bcf831881fd0e42630c3b99671c5ed08de260ea
[ "MIT" ]
1
2019-06-18T17:41:52.000Z
2019-06-18T17:41:52.000Z
""" Utility functions for Electron-Microscopy """ import math def voltage_to_wavelength(voltage): """ Convert from electron voltage to wavelength. :param voltage: float, The electron voltage in kV. :return: float, The electron wavelength in nm. """ return 12.2643247 / math.sqrt(voltage*1e3 + ...
27.291667
98
0.680916
86
655
5.139535
0.337209
0.135747
0.144796
0.117647
0.506787
0.506787
0.506787
0
0
0
0
0.095785
0.203053
655
23
99
28.478261
0.750958
0.503817
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.2
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
7a679d1a00efd7ff99cef00976d5ad2c0db00094
268
py
Python
1 MyPractice/A_Tutorials/Socratica/2InteractiveHelp.py
Davidjbennett/DavidBennett.github.io
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
3
2021-05-18T16:17:29.000Z
2022-01-20T15:46:59.000Z
1 MyPractice/A_Tutorials/Socratica/2InteractiveHelp.py
Davidjbennett/DavidBennett
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
null
null
null
1 MyPractice/A_Tutorials/Socratica/2InteractiveHelp.py
Davidjbennett/DavidBennett
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
null
null
null
import math print(dir()) #short for directory #print(dir(__builtins__)) #containes many functions and types help(pow) #shows documentation for specific function print(pow(2,10),"\n") help(hex) print("\n", hex(10)) print(0xa,"\n") #help('modules') print(dir(math))
17.866667
61
0.712687
41
268
4.560976
0.609756
0.128342
0
0
0
0
0
0
0
0
0
0.025105
0.108209
268
14
62
19.142857
0.757322
0.5
0
0
0
0
0.046512
0
0
0
0.023256
0
0
1
0
true
0
0.125
0
0.125
0.625
0
0
0
null
0
0
0
0
0
0
0
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
1
0
2
7a67bebe0580d55980e54fbc6f55a144c53ec12f
7,953
py
Python
voicefixer/vocoder/config.py
ishine/voicefixer
0966a2f39096575cf8ae3fed8b53daf2f4512f35
[ "MIT" ]
159
2021-09-26T08:09:45.000Z
2022-03-30T07:51:02.000Z
voicefixer/vocoder/config.py
ishine/voicefixer
0966a2f39096575cf8ae3fed8b53daf2f4512f35
[ "MIT" ]
15
2021-09-30T04:28:09.000Z
2022-03-27T05:06:32.000Z
voicefixer/vocoder/config.py
ishine/voicefixer
0966a2f39096575cf8ae3fed8b53daf2f4512f35
[ "MIT" ]
32
2021-09-27T03:24:01.000Z
2022-03-30T07:52:15.000Z
import torch import numpy as np import os from voicefixer.tools.path import root_path class Config: @classmethod def refresh(cls, sr): if sr == 44100: Config.ckpt = os.path.join( os.path.expanduser("~"), ".cache/voicefixer/synthesis_module/44100/model.ckpt-1...
25.088328
88
0.530995
921
7,953
4.378936
0.52443
0.029755
0.020828
0.018845
0.13935
0.116539
0.107612
0.093231
0.093231
0.093231
0
0.342469
0.38979
7,953
316
89
25.167722
0.488564
0.014083
0
0.037671
0
0
0.034091
0.023749
0
0
0
0
0
1
0.017123
false
0
0.013699
0.006849
0.441781
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7a92082d3d523c6edc93f0763c489fce6fec5488
3,612
py
Python
src/TypeChecker.py
leveryd/PlayWithCompiler
0701fbb7d94512e3af05a95266e0fdc562b3d40c
[ "MIT" ]
8
2021-01-16T09:29:54.000Z
2022-03-25T11:22:09.000Z
src/TypeChecker.py
leveryd/PlayWithCompiler
0701fbb7d94512e3af05a95266e0fdc562b3d40c
[ "MIT" ]
null
null
null
src/TypeChecker.py
leveryd/PlayWithCompiler
0701fbb7d94512e3af05a95266e0fdc562b3d40c
[ "MIT" ]
null
null
null
# coding:utf-8 """ 类型检查: 1. 检查赋值是否正确 2. 变量初始化; 3. 表达式里的一些运算,比如加减乘除,是否类型匹配; 4. 返回值的类型; [这个还没有做] """ from dist.PlayScriptListener import PlayScriptListener from dist.PlayScriptParser import PlayScriptParser from src.DataStructures import * class TypeChecker(PlayScriptListener): def __init__(self, ast_tree): ...
38.83871
113
0.550941
370
3,612
5.237838
0.294595
0.053664
0.04128
0.0516
0.330753
0.319917
0.319917
0.240454
0.240454
0.211558
0
0.005497
0.345238
3,612
92
114
39.26087
0.813953
0.08804
0
0.357143
0
0
0.056847
0
0
0
0
0.021739
0
1
0.071429
false
0.089286
0.053571
0
0.178571
0.017857
0
0
0
null
0
0
0
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
1
0
0
0
0
0
2
7ab674f9cee64f6395f521ac99930ad93c5cdb4a
2,006
py
Python
Lesson_3/List.py
mirdinemris/Python_lesson_2
bf2fce1dbd6ae635d6aa631703b9930b164972b0
[ "MIT" ]
null
null
null
Lesson_3/List.py
mirdinemris/Python_lesson_2
bf2fce1dbd6ae635d6aa631703b9930b164972b0
[ "MIT" ]
1
2020-04-14T14:13:57.000Z
2020-04-14T14:13:57.000Z
Lesson_3/List.py
mirdinemris/Python_lesson_2
bf2fce1dbd6ae635d6aa631703b9930b164972b0
[ "MIT" ]
null
null
null
# Тип данных - список (List) # Инициализация (генераторы) list_temp = [] # Пустой список print(type(list_temp)) list_temp = [1.2, 123, 'Volvo', [1,2,3,]] for el in list_temp: print(el, type(el)) # инициализация с помощью команды - list list_str = list('Volvo') print(list_str) # Обращение к элементам сп...
25.075
86
0.720837
317
2,006
4.394322
0.302839
0.236899
0.080402
0.031587
0.237617
0.207466
0.142857
0.142857
0.079684
0.079684
0
0.026316
0.147557
2,006
79
87
25.392405
0.788304
0.321037
0
0.326087
0
0
0.009701
0
0
0
0
0
0
1
0
false
0
0.021739
0
0.021739
0.434783
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
1
0
2