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
f763a075ca0d75a67e4baebdc0e81a5a75407c9b
268
py
Python
spikes/pytest/testdata/example/stderr_test.py
sjansen/mecha
2bcfb2eb54052038b0566754c55e6173fcb52d24
[ "Apache-2.0" ]
3
2019-01-04T20:32:33.000Z
2020-02-20T00:46:12.000Z
spikes/pytest/testdata/example/stderr_test.py
sjansen/mecha
2bcfb2eb54052038b0566754c55e6173fcb52d24
[ "Apache-2.0" ]
null
null
null
spikes/pytest/testdata/example/stderr_test.py
sjansen/mecha
2bcfb2eb54052038b0566754c55e6173fcb52d24
[ "Apache-2.0" ]
null
null
null
from sys import stderr from time import sleep stderr.write("loading... ") def test__stderr__1(): sleep(0.25) stderr.write("Spoon!\n") def test__stderr__2(): sleep(0.25) stderr.write("Kilroy was here.\n") assert False stderr.write("done\n")
13.4
38
0.660448
41
268
4.121951
0.536585
0.260355
0.153846
0.16568
0.224852
0
0
0
0
0
0
0.036866
0.190299
268
19
39
14.105263
0.741935
0
0
0.181818
0
0
0.160448
0
0
0
0
0
0.090909
1
0.181818
true
0
0.181818
0
0.363636
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
1
0
0
0
0
0
0
3
f764646dcf7538d6373d9499a5f2dc722b1aa77d
992
py
Python
release/stubs.min/System/ComponentModel/__init___parts/INestedContainer.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/System/ComponentModel/__init___parts/INestedContainer.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/System/ComponentModel/__init___parts/INestedContainer.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class INestedContainer(IContainer,IDisposable): """ Provides functionality for nested containers,which logically contain zero or more other components and are owned by a parent component. """ def __enter__(self,*args): """ __enter__(self: IDisposable) -> object Provides the implementation of __ent...
29.176471
147
0.714718
119
992
5.495798
0.478992
0.036697
0.051988
0.094801
0.324159
0.223242
0.223242
0.094801
0
0
0
0
0.181452
992
33
148
30.060606
0.805419
0.565524
0
0.375
0
0
0
0
0
0
0
0
0
1
0.375
false
0.375
0
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
1
0
1
0
0
1
0
0
3
f77188b38a014b561a46fb2e8327642e31f23697
9,830
py
Python
combine.py
WouterKoch/Naturalis_data_preparation
05d60d2913838297d30959ccf1388028ac8553bc
[ "MIT" ]
null
null
null
combine.py
WouterKoch/Naturalis_data_preparation
05d60d2913838297d30959ccf1388028ac8553bc
[ "MIT" ]
null
null
null
combine.py
WouterKoch/Naturalis_data_preparation
05d60d2913838297d30959ccf1388028ac8553bc
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from tqdm import tqdm import os import sys import hashlib def generateId(image_url, prefix, exisiting_ids): id = f"{prefix}:{hashlib.md5(image_url.encode()).hexdigest()}" # while id in exisiting_ids: # print(f"id {id} exists!") # image_url = image_url + "1...
71.231884
245
0.717599
1,402
9,830
4.936519
0.199001
0.036989
0.055483
0.064731
0.546164
0.47941
0.368444
0.285074
0.235226
0.235226
0
0.120282
0.105188
9,830
137
246
71.751825
0.666553
0.045982
0
0.020619
1
0.329897
0.650299
0.036507
0
0
0
0
0
1
0.020619
false
0
0.061856
0
0.092784
0.072165
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
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
f7803b54455c4b1c52ff959c77b7df108e31e8ad
2,534
py
Python
serious_pysam/game_object/game_object.py
notrurs/Serious_PySam
37acbf3d2a1136f35b907f0528a4005e6870b4a1
[ "MIT" ]
null
null
null
serious_pysam/game_object/game_object.py
notrurs/Serious_PySam
37acbf3d2a1136f35b907f0528a4005e6870b4a1
[ "MIT" ]
1
2020-05-28T21:34:34.000Z
2020-05-30T14:06:57.000Z
serious_pysam/game_object/game_object.py
notrurs/Serious_PySam
37acbf3d2a1136f35b907f0528a4005e6870b4a1
[ "MIT" ]
null
null
null
from pygame import image from pygame.mixer import Sound class GameObject: """A super class for hero, enemies, boss and bullets. Any subclasses has methods below: blit() move() play_sound() update() """ def __init__(self, x, y, picture, speed=(0, 0), sound=None, channel=None): ...
24.133333
101
0.583268
332
2,534
4.418675
0.298193
0.087253
0.08589
0.110429
0
0
0
0
0
0
0
0.002316
0.318469
2,534
104
102
24.365385
0.847134
0.337806
0
0.18
0
0
0
0
0
0
0
0
0
1
0.28
false
0
0.04
0.18
0.54
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
f786b319f2dcf666892608a9066ed01bef6363d7
343
py
Python
src/test_next_greater_element_ii.py
manoldonev/algo-challenges
0ecbc79fdc62d6f4712405a55bbab3e49d5139a6
[ "MIT" ]
null
null
null
src/test_next_greater_element_ii.py
manoldonev/algo-challenges
0ecbc79fdc62d6f4712405a55bbab3e49d5139a6
[ "MIT" ]
null
null
null
src/test_next_greater_element_ii.py
manoldonev/algo-challenges
0ecbc79fdc62d6f4712405a55bbab3e49d5139a6
[ "MIT" ]
null
null
null
import unittest from next_greater_element_ii import next_greater_element class NextGreaterElementIITests(unittest.TestCase): """Tests for next greater element ii challenge.""" def test_case_1(self): self.assertEqual(next_greater_element([1, 2, 1]), [2, -1, 2]) if __name__ == "__main__": unit...
20.176471
69
0.725948
45
343
5.155556
0.533333
0.189655
0.310345
0.172414
0
0
0
0
0
0
0
0.027875
0.163265
343
16
70
21.4375
0.780488
0.12828
0
0
0
0
0.027397
0
0
0
0
0
0.142857
1
0.142857
false
0
0.285714
0
0.571429
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
1
0
0
3
f786cee0c03ea7febb020f0bbceb800b64f1d056
58
py
Python
amlutils/web/__init__.py
parvoberoi/amlutils
afdbb036c5b081ba27f376fb9808435d6b37d66f
[ "Apache-2.0" ]
null
null
null
amlutils/web/__init__.py
parvoberoi/amlutils
afdbb036c5b081ba27f376fb9808435d6b37d66f
[ "Apache-2.0" ]
3
2021-09-08T02:43:05.000Z
2022-03-12T00:51:39.000Z
amlutils/web/__init__.py
parvoberoi/amlutils
afdbb036c5b081ba27f376fb9808435d6b37d66f
[ "Apache-2.0" ]
null
null
null
from amlutils.web import ( download, requests, )
11.6
26
0.637931
6
58
6.166667
1
0
0
0
0
0
0
0
0
0
0
0
0.275862
58
4
27
14.5
0.880952
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
f787fba928d9720dfc9238a1a389cbc413bc06dc
136
py
Python
train.py
rinatz/livedoor-news-dataset
20b2818f57bfd59e3a1bc51cc2ed1b9fd771b873
[ "MIT" ]
null
null
null
train.py
rinatz/livedoor-news-dataset
20b2818f57bfd59e3a1bc51cc2ed1b9fd771b873
[ "MIT" ]
null
null
null
train.py
rinatz/livedoor-news-dataset
20b2818f57bfd59e3a1bc51cc2ed1b9fd771b873
[ "MIT" ]
null
null
null
#!/usr/bin/env python from livedoor.model import create_model def main(): create_model() if __name__ == "__main__": main()
11.333333
39
0.669118
18
136
4.5
0.722222
0.271605
0
0
0
0
0
0
0
0
0
0
0.198529
136
11
40
12.363636
0.743119
0.147059
0
0
0
0
0.069565
0
0
0
0
0
0
1
0.2
true
0
0.2
0
0.4
0
1
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
3
f78c850f79bd41b765e6017360cec9cadff3c7dd
663
bzl
Python
third_party/org_apache_httpcomponents_client5.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
third_party/org_apache_httpcomponents_client5.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
third_party/org_apache_httpcomponents_client5.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
load(":import_external.bzl", import_external = "import_external") def dependencies(): import_external( name = "org_apache_httpcomponents_client5_httpclient5", artifact = "org.apache.httpcomponents.client5:httpclient5:5.1", artifact_sha256 = "b7a30296763a4d5dbf840f0b79df7439cf3d2341c8990aee4...
41.4375
93
0.713424
52
663
8.615385
0.519231
0.125
0.205357
0.133929
0.348214
0
0
0
0
0
0
0.196226
0.200603
663
15
94
44.2
0.649057
0
0
0
0
0
0.591252
0.508296
0
0
0
0
0
1
0.071429
true
0
0.142857
0
0.214286
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
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
f78caf8f7c692fc208f6a87b95c0d3a7d1c72a09
4,436
py
Python
tests/test_utility.py
caleb531/cidr-brewer
bf6f8a16f4559964206c950b0cde6f5cb2e78ecb
[ "MIT" ]
3
2017-03-13T01:33:16.000Z
2021-06-25T14:05:53.000Z
tests/test_utility.py
caleb531/cidr-brewer
bf6f8a16f4559964206c950b0cde6f5cb2e78ecb
[ "MIT" ]
8
2017-09-26T11:19:55.000Z
2021-09-01T00:27:32.000Z
tests/test_utility.py
caleb531/cidr-brewer
bf6f8a16f4559964206c950b0cde6f5cb2e78ecb
[ "MIT" ]
2
2018-10-25T22:09:47.000Z
2018-11-19T18:36:17.000Z
#!/usr/bin/env python3 import nose.tools as nose import cidrbrewer def test_get_subnet_mask(): """Should compute the subnet mask.""" nose.assert_equal( cidrbrewer.get_subnet_mask(28), '11111111111111111111111111110000') def test_get_network_id(): """Should compute the network ID of an ...
32.379562
73
0.714833
480
4,436
6.347917
0.227083
0.041352
0.088612
0.147686
0.412537
0.358057
0.221201
0.182475
0.100427
0.069577
0
0.288944
0.182372
4,436
136
74
32.617647
0.551144
0.204914
0
0.21519
0
0
0.300058
0.280268
0
0
0
0
0.227848
1
0.227848
true
0
0.025316
0
0.253165
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
1
1
0
0
0
0
0
0
3
f7a1239520da9cd383dbb24bc3dd21c507551ecb
485
py
Python
tests/models/test_case_type.py
levi-rs/testrail-api-wrapper
5cafbb4ef8c97a0c1e0dc6dac64534fa72e56f11
[ "MIT" ]
2
2019-01-19T13:18:26.000Z
2019-02-23T19:39:50.000Z
tests/models/test_case_type.py
levi-rs/testrail-api-wrapper
5cafbb4ef8c97a0c1e0dc6dac64534fa72e56f11
[ "MIT" ]
3
2019-01-20T19:21:34.000Z
2019-02-13T17:54:30.000Z
tests/models/test_case_type.py
leviable/testrail-api-wrapper
5cafbb4ef8c97a0c1e0dc6dac64534fa72e56f11
[ "MIT" ]
null
null
null
from copy import deepcopy import pytest from traw.models import CaseType ID = 1234 NAME = 'mock case type name' @pytest.fixture() def case_type(client): content = {"id": ID, "is_default": True, "name": NAME} return CaseType(client, deepcopy(content)) def test_id(case_type): ...
17.321429
46
0.674227
70
485
4.485714
0.342857
0.203822
0.133758
0.171975
0.210191
0
0
0
0
0
0
0.010695
0.228866
485
27
47
17.962963
0.828877
0
0
0
0
0
0.072165
0
0
0
0
0
0.176471
1
0.235294
false
0
0.176471
0
0.470588
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
1
0
0
0
0
0
0
0
3
e3afbb975470d2621b1de66d06c4f0e764549af1
1,199
py
Python
old/pepper1/src/libpepper/vals/types/pepinstance.py
andybalaam/pepper
f0d12379c7c6e2d82003c0c1d6130bfac685e1c3
[ "MIT" ]
2
2018-12-19T16:32:46.000Z
2019-01-10T09:00:33.000Z
old/pepper1/src/libpepper/vals/types/pepinstance.py
andybalaam/pepper
f0d12379c7c6e2d82003c0c1d6130bfac685e1c3
[ "MIT" ]
null
null
null
old/pepper1/src/libpepper/vals/types/pepinstance.py
andybalaam/pepper
f0d12379c7c6e2d82003c0c1d6130bfac685e1c3
[ "MIT" ]
null
null
null
# Copyright (C) 2012-2013 Andy Balaam and The Pepper Developers # Released under the MIT License. See the file COPYING.txt for details. # For instance, a man may go into the forest with his neighbour to cut wood, # and as he swings his axe to fell a tree, the head may fly off and hit his # neighbour and kill him. Tha...
32.405405
79
0.706422
174
1,199
4.793103
0.574713
0.053957
0.031175
0
0
0
0
0
0
0
0
0.012048
0.238532
1,199
36
80
33.305556
0.901424
0.539616
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.214286
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
e3b86e89ce4228aecb0ab5d334a4b48a63d0617e
334
py
Python
tests/unit/decoders/test_file_decoder.py
dm03514/architecting-a-package-manager
9f97c0ab6879aa055821d4bb4cac8d83e4a6fe3d
[ "Unlicense" ]
null
null
null
tests/unit/decoders/test_file_decoder.py
dm03514/architecting-a-package-manager
9f97c0ab6879aa055821d4bb4cac8d83e4a6fe3d
[ "Unlicense" ]
null
null
null
tests/unit/decoders/test_file_decoder.py
dm03514/architecting-a-package-manager
9f97c0ab6879aa055821d4bb4cac8d83e4a6fe3d
[ "Unlicense" ]
null
null
null
import unittest class FileDecoderTestCase(unittest.TestCase): @unittest.skip('TODO') def test_decode_file_0_lines(self): self.fail() @unittest.skip('TODO') def test_decode_file_1_line(self): self.fail() @unittest.skip('TODO') def test_decode_file_multiple_lines(self): ...
19.647059
46
0.673653
42
334
5.071429
0.428571
0.169014
0.225352
0.267606
0.577465
0.577465
0.577465
0.422535
0.422535
0.422535
0
0.007547
0.206587
334
16
47
20.875
0.796226
0
0
0.545455
0
0
0.035928
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0
0.454545
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
1
0
0
0
0
0
0
0
3
e3be4d6b0e42ab23fbfd8796d6326d40ba3e4c67
633
py
Python
tests/test_shapley.py
natalia-rubio/py_grama
968c1c0238d7165de3b1b96534791feacc4aa960
[ "MIT" ]
13
2020-02-24T16:51:51.000Z
2022-03-30T18:56:55.000Z
tests/test_shapley.py
natalia-rubio/py_grama
968c1c0238d7165de3b1b96534791feacc4aa960
[ "MIT" ]
78
2019-12-30T19:13:21.000Z
2022-02-23T18:17:54.000Z
tests/test_shapley.py
natalia-rubio/py_grama
968c1c0238d7165de3b1b96534791feacc4aa960
[ "MIT" ]
7
2020-10-19T17:49:25.000Z
2021-08-15T20:46:52.000Z
import numpy as np import pandas as pd import unittest import io import sys from context import grama as gr ## Test cohort shapley ################################################## class TestCohortShapley(unittest.TestCase): def setUp(self): pass def test_cohort_shapley(self): df_data = gr.d...
25.32
80
0.546603
103
633
3.213592
0.378641
0.048338
0.054381
0.072508
0.048338
0.048338
0.048338
0.048338
0
0
0
0.068966
0.221169
633
24
81
26.375
0.602434
0.030016
0
0
0
0
0.008913
0
0
0
0
0
0.0625
1
0.125
false
0.0625
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
1
1
0
1
0
0
3
e3c4127589612a08da425244a33d321f6f381d9e
1,416
py
Python
main/chapter_3/and_or.py
nathaniel-walker/python-tutoring
d6ab3362f32c5c1a558610509a2df9524ea63e58
[ "MIT" ]
1
2021-10-06T19:51:57.000Z
2021-10-06T19:51:57.000Z
main/chapter_3/and_or.py
nathaniel-walker/python-tutoring
d6ab3362f32c5c1a558610509a2df9524ea63e58
[ "MIT" ]
null
null
null
main/chapter_3/and_or.py
nathaniel-walker/python-tutoring
d6ab3362f32c5c1a558610509a2df9524ea63e58
[ "MIT" ]
null
null
null
# this py file will be strictly dedicated to "Boolean Logic" # Boolean Logic is best defined as the combination of phrases that can result in printing different values # define two variables a = True b = False # if-statement... output: True # the if condition prints, if the "if statement" evaluates to True i...
16.658824
107
0.596045
209
1,416
4.038278
0.277512
0.117299
0.138626
0.191943
0.430095
0.375592
0.273697
0.265403
0.265403
0.265403
0
0
0.280367
1,416
85
108
16.658824
0.828263
0.376412
0
0.755102
0
0
0.146099
0
0
0
0
0
0
1
0
false
0
0
0
0
0.44898
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
e3c673e7166ca25bd27685eb165aee8a1ca89119
83
py
Python
backend/billparser/logger.py
Congress-Dev/congress-dev
a697b2590472e0e55f94cec35b3e57042649638d
[ "MIT" ]
9
2020-03-09T01:18:43.000Z
2022-01-28T10:07:05.000Z
backend/billparser/logger.py
Congress-Dev/congress-dev
a697b2590472e0e55f94cec35b3e57042649638d
[ "MIT" ]
13
2020-03-24T12:57:38.000Z
2022-02-18T15:37:01.000Z
backend/billparser/logger.py
Congress-Dev/congress-dev
a697b2590472e0e55f94cec35b3e57042649638d
[ "MIT" ]
1
2022-02-15T20:52:55.000Z
2022-02-15T20:52:55.000Z
import logging log = logging.getLogger("bill-parser") log.setLevel(logging.ERROR)
16.6
38
0.783133
11
83
5.909091
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.084337
83
4
39
20.75
0.855263
0
0
0
0
0
0.13253
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
e3d116a872a19b2775a25ff7f84d67f4d630172e
141
py
Python
main.py
Captain-Chen/honkbot
0eb669292badbcd42e92de2753559fb7a1b4b648
[ "MIT" ]
1
2021-09-26T14:39:50.000Z
2021-09-26T14:39:50.000Z
main.py
Captain-Chen/honkbot
0eb669292badbcd42e92de2753559fb7a1b4b648
[ "MIT" ]
null
null
null
main.py
Captain-Chen/honkbot
0eb669292badbcd42e92de2753559fb7a1b4b648
[ "MIT" ]
null
null
null
import json import os from src.bot import Bot config = json.load(open(os.path.abspath("./honkbot/config.json"))) bot = Bot(config) bot.run()
20.142857
66
0.730496
24
141
4.291667
0.541667
0.174757
0
0
0
0
0
0
0
0
0
0
0.106383
141
7
67
20.142857
0.81746
0
0
0
0
0
0.147887
0.147887
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
e3e82d9c7aa51196c341fc3de292b051633df7a1
4,055
py
Python
lymph/serializers/base.py
torte/lymph
1dc726dfa931c91a0068ddd81401d3321367f470
[ "Apache-2.0" ]
null
null
null
lymph/serializers/base.py
torte/lymph
1dc726dfa931c91a0068ddd81401d3321367f470
[ "Apache-2.0" ]
null
null
null
lymph/serializers/base.py
torte/lymph
1dc726dfa931c91a0068ddd81401d3321367f470
[ "Apache-2.0" ]
null
null
null
import abc import datetime import decimal import functools import json import uuid import pytz import msgpack import six import iso8601 from lymph.utils import Undefined @six.add_metaclass(abc.ABCMeta) class ExtensionTypeSerializer(object): @abc.abstractmethod def serialize(self, obj): raise NotImpl...
25.34375
100
0.678175
475
4,055
5.602105
0.216842
0.047351
0.06351
0.049981
0.291995
0.221345
0.162721
0.110109
0.110109
0.110109
0
0.005002
0.211097
4,055
159
101
25.503145
0.826821
0.018496
0
0.209091
0
0
0.029915
0
0
0
0
0
0
1
0.227273
false
0
0.1
0.163636
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
1
0
0
3
e3ecb5837cf546c654a2805ef5ca594b4205ec5e
205
py
Python
15-more-types/protocol/random/generic_randompick.py
SeirousLee/example-code-2e
81ec1669a4b8fd098db44a78a3d551287eec7bc9
[ "MIT" ]
990
2019-03-21T21:17:34.000Z
2022-03-31T00:55:07.000Z
15-more-types/protocol/random/generic_randompick.py
FerMatPy/example-code-2e
980f75032685921e08d5200513a261e83ef5f858
[ "MIT" ]
17
2019-12-18T18:00:05.000Z
2022-01-12T14:23:47.000Z
15-more-types/protocol/random/generic_randompick.py
FerMatPy/example-code-2e
980f75032685921e08d5200513a261e83ef5f858
[ "MIT" ]
276
2019-04-06T12:32:00.000Z
2022-03-29T11:50:47.000Z
from typing import Protocol, runtime_checkable, TypeVar T_co = TypeVar('T_co', covariant=True) # <1> @runtime_checkable class RandomPicker(Protocol[T_co]): # <2> def pick(self) -> T_co: ... # <3>
25.625
55
0.682927
29
205
4.62069
0.655172
0.089552
0.149254
0
0
0
0
0
0
0
0
0.017442
0.160976
205
7
56
29.285714
0.761628
0.053659
0
0
0
0
0.021053
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
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
1
0
0
3
e3f524c7ddfd43a179cb43cee5969685557210a8
137
py
Python
WebHashcat/Auth/urls.py
HexPandaa/WebHashcat
be145758b82a1fca2ccc6893550af6a1e5ce73a3
[ "MIT" ]
191
2017-02-22T12:07:52.000Z
2022-02-24T22:23:38.000Z
WebHashcat/Auth/urls.py
rvrsh3ll/WebHashcat
ba69cfe10e4f4d08b10feddbfb180f9076cf86ef
[ "MIT" ]
26
2018-05-02T09:57:43.000Z
2021-03-27T02:18:04.000Z
WebHashcat/Auth/urls.py
rvrsh3ll/WebHashcat
ba69cfe10e4f4d08b10feddbfb180f9076cf86ef
[ "MIT" ]
60
2017-05-24T07:29:07.000Z
2022-03-04T14:50:06.000Z
from django.conf.urls import url from . import views app_name = 'Auth' urlpatterns = [ url(r'^$', views.auth, name='auth'), ]
13.7
44
0.627737
19
137
4.473684
0.631579
0.188235
0
0
0
0
0
0
0
0
0
0
0.211679
137
9
45
15.222222
0.787037
0
0
0
0
0
0.073529
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
e3ff9ca12e9a992c77dc3150047f7d3f2f7efb9c
243
py
Python
book_worm/book.py
collinsgit/book-worm
6041a85174dbe6ba68c2aa89fe67d42e50fa9585
[ "MIT" ]
null
null
null
book_worm/book.py
collinsgit/book-worm
6041a85174dbe6ba68c2aa89fe67d42e50fa9585
[ "MIT" ]
null
null
null
book_worm/book.py
collinsgit/book-worm
6041a85174dbe6ba68c2aa89fe67d42e50fa9585
[ "MIT" ]
null
null
null
"""Representation of a book. Currently just acts like a named tuple, but will be extended. """ from typing import Optional from pydantic import BaseModel class Book(BaseModel): title: str text: str author: Optional[str] = None
17.357143
61
0.720165
34
243
5.147059
0.764706
0
0
0
0
0
0
0
0
0
0
0
0.205761
243
13
62
18.692308
0.906736
0.36214
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
540fcb3de3c529620870ba0d01b677cdbb573cac
73
py
Python
packages/jet_django/jet_django/__init__.py
dennisae/jet-admin
2256391275f7b147886cd7495986dda43347ca96
[ "MIT" ]
2
2021-05-31T19:13:34.000Z
2022-02-03T13:12:35.000Z
packages/jet_django/jet_django/__init__.py
dennisae/jet-admin
2256391275f7b147886cd7495986dda43347ca96
[ "MIT" ]
null
null
null
packages/jet_django/jet_django/__init__.py
dennisae/jet-admin
2256391275f7b147886cd7495986dda43347ca96
[ "MIT" ]
null
null
null
VERSION = '1.1.4' default_app_config = 'jet_django.apps.JetDjangoConfig'
24.333333
54
0.780822
11
73
4.909091
0.909091
0
0
0
0
0
0
0
0
0
0
0.044776
0.082192
73
2
55
36.5
0.761194
0
0
0
0
0
0.493151
0.424658
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
5809bcbea1640619ffc288116f86383363a06523
236
py
Python
pyramda/iterable/contains_with.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
124
2015-07-30T21:34:25.000Z
2022-02-19T08:45:50.000Z
pyramda/iterable/contains_with.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
37
2015-08-31T23:02:20.000Z
2022-02-04T04:45:28.000Z
pyramda/iterable/contains_with.py
sergiors/pyramda
5bf200888809b1bc946e813e29460f204bccd13e
[ "MIT" ]
20
2015-08-04T18:59:09.000Z
2021-12-13T08:08:59.000Z
from pyramda.function.curry import curry from .any_satisfy import any_satisfy from functools import partial @curry def contains_with(is_equal, x, xs): is_equal_to_x = partial(is_equal, x) return any_satisfy(is_equal_to_x, xs)
23.6
41
0.788136
40
236
4.35
0.45
0.16092
0.091954
0.114943
0
0
0
0
0
0
0
0
0.144068
236
9
42
26.222222
0.861386
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.714286
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
1
0
0
3
580d95486e9876a6d264ab08c4a13016c141e643
101
py
Python
boa3_test/test_sc/built_in_methods_test/LenString.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
25
2020-07-22T19:37:43.000Z
2022-03-08T03:23:55.000Z
boa3_test/test_sc/built_in_methods_test/LenString.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
419
2020-04-23T17:48:14.000Z
2022-03-31T13:17:45.000Z
boa3_test/test_sc/built_in_methods_test/LenString.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
15
2020-05-21T21:54:24.000Z
2021-11-18T06:17:24.000Z
from boa3.builtin import public @public def Main() -> int: a = 'just a test' return len(a)
12.625
31
0.623762
16
101
3.9375
0.8125
0
0
0
0
0
0
0
0
0
0
0.013333
0.257426
101
7
32
14.428571
0.826667
0
0
0
0
0
0.108911
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
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
1
0
0
3
581078c40e440672d5d85a6fd8b3ae33ea15b36e
2,257
py
Python
gdsfactory/tests/test_import_gds_avoid_duplicated_cells.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
null
null
null
gdsfactory/tests/test_import_gds_avoid_duplicated_cells.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
null
null
null
gdsfactory/tests/test_import_gds_avoid_duplicated_cells.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
null
null
null
"""avoid duplicated cell names when importing GDS files.""" import gdsfactory as gf from gdsfactory import geometry def test_import_first(): c1 = gf.Component("parent") c1 << gf.components.mzi_arms() gdspath1 = c1.write_gds("extra/mzi.gds") mzi1 = gf.import_gds(gdspath1, safe_cell_names=True) # IMP...
26.552941
66
0.653965
311
2,257
4.540193
0.176849
0.050992
0.082861
0.121105
0.707507
0.707507
0.65085
0.648017
0.648017
0.648017
0
0.038206
0.199823
2,257
84
67
26.869048
0.743632
0.211786
0
0.577778
0
0
0.072041
0
0
0
0
0
0.088889
1
0.088889
false
0
0.333333
0
0.422222
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
1
0
0
0
0
3
58371178f47522a3269b3ab88efa7468dcfa62db
10,468
py
Python
violas_client/lbrtypes/transaction/transaction.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
violas_client/lbrtypes/transaction/transaction.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
violas_client/lbrtypes/transaction/transaction.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
1
2022-01-05T06:49:42.000Z
2022-01-05T06:49:42.000Z
from violas_client.canoser import Uint64, Uint8, Struct, RustEnum from violas_client.move_core_types.account_address import AccountAddress from violas_client.lbrtypes.transaction.change_set import ChangeSet from violas_client.lbrtypes.transaction.script import Script from violas_client.lbrtypes.transaction.module impor...
31.154762
115
0.67052
1,222
10,468
5.468903
0.11784
0.048481
0.058656
0.048631
0.486159
0.407901
0.364956
0.318719
0.264103
0.206494
0
0.004487
0.233473
10,468
335
116
31.247761
0.82839
0
0
0.356322
0
0
0.045281
0.004776
0
0
0
0
0
1
0.233716
false
0.003831
0.045977
0.122605
0.597701
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
5839f7920221740256f4cc6347cc8461496a469a
560
py
Python
python/perspective/perspective/tests/table/binding/test_t_ctx.py
willium/perspective
2ed64db54d46c8d0a4b770ffc12ee5bc3b053f41
[ "Apache-2.0" ]
null
null
null
python/perspective/perspective/tests/table/binding/test_t_ctx.py
willium/perspective
2ed64db54d46c8d0a4b770ffc12ee5bc3b053f41
[ "Apache-2.0" ]
null
null
null
python/perspective/perspective/tests/table/binding/test_t_ctx.py
willium/perspective
2ed64db54d46c8d0a4b770ffc12ee5bc3b053f41
[ "Apache-2.0" ]
null
null
null
# ***************************************************************************** # # Copyright (c) 2019, the Perspective Authors. # # This file is part of the Perspective library, distributed under the terms of # the Apache License 2.0. The full license can be found in the LICENSE file. # from perspective.table.libbin...
23.333333
79
0.558929
72
560
4.180556
0.541667
0.049834
0.079734
0.079734
0
0
0
0
0
0
0
0.034884
0.232143
560
23
80
24.347826
0.665116
0.539286
0
0.375
0
0
0
0
0
0
0
0
0
1
0.375
false
0.375
0.125
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
1
0
1
0
0
1
0
0
3
584f6e9188a02be0d4e6148a6b8f39fd61e3fb8a
326
py
Python
ziplookup/models.py
citizenengagementlab/django-webcam-photoupload
e235e061b3c72f61b49f621f5a5305166766e91b
[ "MIT" ]
1
2021-01-08T19:20:19.000Z
2021-01-08T19:20:19.000Z
ziplookup/models.py
citizenengagementlab/django-webcam-photoupload
e235e061b3c72f61b49f621f5a5305166766e91b
[ "MIT" ]
1
2019-12-06T11:35:42.000Z
2019-12-06T11:35:42.000Z
ziplookup/models.py
citizenengagementlab/django-webcam-photoupload
e235e061b3c72f61b49f621f5a5305166766e91b
[ "MIT" ]
2
2015-05-28T01:59:44.000Z
2021-08-04T22:24:07.000Z
from django.db import models from django.contrib.localflavor.us import models as us_models class ZipCode(models.Model): zipcode = models.CharField(max_length=10,db_index=True) city = models.CharField(max_length=255) state = us_models.USPostalCodeField() def __unicode__(self): return self.z...
32.6
61
0.748466
44
326
5.340909
0.590909
0.085106
0.153191
0.204255
0
0
0
0
0
0
0
0.018382
0.165644
326
10
62
32.6
0.845588
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
0.125
1
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
1
1
0
0
3
5863e5fdf9488d8264f4c4418f6811754b0c995f
80
py
Python
routers/utils/types.py
TheOnlyWayUp/waifu.im
87b552d67663bc0f868326ea612342e69eec7d09
[ "MIT" ]
null
null
null
routers/utils/types.py
TheOnlyWayUp/waifu.im
87b552d67663bc0f868326ea612342e69eec7d09
[ "MIT" ]
null
null
null
routers/utils/types.py
TheOnlyWayUp/waifu.im
87b552d67663bc0f868326ea612342e69eec7d09
[ "MIT" ]
null
null
null
from enum import Enum class ImageType(str, Enum): sfw="sfw" nsfw="nsfw"
16
27
0.6625
12
80
4.416667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.2125
80
5
28
16
0.84127
0
0
0
0
0
0.08642
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
58797dbb716d018c5add70a900a4c45e434546ef
136
py
Python
tests/resolve_url/urls.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
61,676
2015-01-01T00:05:13.000Z
2022-03-31T20:37:54.000Z
tests/resolve_url/urls.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
8,884
2015-01-01T00:12:05.000Z
2022-03-31T19:53:11.000Z
tests/resolve_url/urls.py
mustafa0x/django
d7394cfa13a4d1a02356e3a83e10ec100fbb9948
[ "BSD-3-Clause", "0BSD" ]
33,143
2015-01-01T02:04:52.000Z
2022-03-31T19:42:46.000Z
from django.urls import path def some_view(request): pass urlpatterns = [ path('some-url/', some_view, name='some-view'), ]
12.363636
51
0.661765
19
136
4.631579
0.684211
0.272727
0
0
0
0
0
0
0
0
0
0
0.191176
136
10
52
13.6
0.8
0
0
0
0
0
0.132353
0
0
0
0
0
0
1
0.166667
false
0.166667
0.166667
0
0.333333
0
1
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
1
0
0
0
0
0
3
589af098c65050dfec36aa9cac3e61007df9c382
44
py
Python
rastervision/version.py
ValRat/raster-vision
90f4c5d99869466c65fa972fa8f08f68c1102820
[ "Apache-2.0" ]
4
2019-03-11T12:38:15.000Z
2021-04-06T14:57:52.000Z
rastervision/version.py
ValRat/raster-vision
90f4c5d99869466c65fa972fa8f08f68c1102820
[ "Apache-2.0" ]
null
null
null
rastervision/version.py
ValRat/raster-vision
90f4c5d99869466c65fa972fa8f08f68c1102820
[ "Apache-2.0" ]
1
2021-02-25T18:23:27.000Z
2021-02-25T18:23:27.000Z
"""Library verison""" __version__ = '0.8.0'
14.666667
21
0.636364
6
44
4
0.833333
0
0
0
0
0
0
0
0
0
0
0.076923
0.113636
44
2
22
22
0.538462
0.340909
0
0
0
0
0.217391
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
589e1b44d0d5372afabf7293b9bb78ec0474da8f
71
py
Python
backend/database/__init__.py
ComicShrimp/snotra
7df050584791cf2e9195f5bfb0b01c744f48503a
[ "MIT" ]
null
null
null
backend/database/__init__.py
ComicShrimp/snotra
7df050584791cf2e9195f5bfb0b01c744f48503a
[ "MIT" ]
null
null
null
backend/database/__init__.py
ComicShrimp/snotra
7df050584791cf2e9195f5bfb0b01c744f48503a
[ "MIT" ]
null
null
null
from .async_database import AsyncDatabase __all__ = ["AsyncDatabase"]
17.75
41
0.802817
7
71
7.428571
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.112676
71
3
42
23.666667
0.825397
0
0
0
0
0
0.183099
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
544998b55fe3b8628878410b93d015f4666ffdfb
2,090
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/NVX/gpu_multicast2.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/NVX/gpu_multicast2.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/NVX/gpu_multicast2.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import...
63.333333
312
0.829665
280
2,090
5.892857
0.364286
0.067879
0.084848
0.050909
0.470303
0.404242
0.378788
0.250303
0.250303
0.250303
0
0.007099
0.056459
2,090
32
313
65.3125
0.829615
0.047847
0
0.214286
1
0
0.032804
0.032804
0
0
0.003075
0
0
1
0.25
false
0.214286
0.214286
0.035714
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
5450976f8c3da2f1b7cab79e675bdd56bde35f0b
492
py
Python
cat.py
gauravkumarpandey/python
759265a90a3940edc45caa29a9c4eb2d4197f214
[ "Apache-2.0" ]
null
null
null
cat.py
gauravkumarpandey/python
759265a90a3940edc45caa29a9c4eb2d4197f214
[ "Apache-2.0" ]
null
null
null
cat.py
gauravkumarpandey/python
759265a90a3940edc45caa29a9c4eb2d4197f214
[ "Apache-2.0" ]
null
null
null
class Cat: name = '' age = 0 color = '' def __init__(self, name, age=0, color ='White'): self.name = name self.age = age self.color = color def meow(self): print(f'{self.name} meow') def sleep(self): print(f' {self.name} zzz') def hungry(self): ...
21.391304
87
0.514228
68
492
3.661765
0.397059
0.160643
0.120482
0.168675
0.216867
0
0
0
0
0
0
0.009288
0.343496
492
23
88
21.391304
0.76161
0
0
0
0
0.058824
0.212982
0
0
0
0
0
0
1
0.294118
false
0
0
0
0.529412
0.176471
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
548aa2ee3a9abc12befd02961fbceec84f651bfd
1,567
py
Python
b2/sync/file.py
SergeyBurma/B2_Command_Line_Tool
65d8adf080e1502cd51c78f9bc9ce3b0bc787147
[ "MIT" ]
1
2020-09-06T09:32:44.000Z
2020-09-06T09:32:44.000Z
b2/sync/file.py
SergeyBurma/B2_Command_Line_Tool
65d8adf080e1502cd51c78f9bc9ce3b0bc787147
[ "MIT" ]
null
null
null
b2/sync/file.py
SergeyBurma/B2_Command_Line_Tool
65d8adf080e1502cd51c78f9bc9ce3b0bc787147
[ "MIT" ]
null
null
null
###################################################################### # # File: b2/sync/file.py # # Copyright 2018 Backblaze Inc. All Rights Reserved. # # License https://www.backblaze.com/using_b2_code.html # ###################################################################### class File(object): """ Hold...
28.490909
88
0.567964
195
1,567
4.410256
0.425641
0.055814
0.051163
0.062791
0.069767
0
0
0
0
0
0
0.008467
0.246331
1,567
54
89
29.018519
0.719729
0.407786
0
0.105263
0
0
0.059805
0
0
0
0
0
0
1
0.263158
false
0
0
0.157895
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
549eaf55fc02e1704e4756e2ecb5212bc54d2d2c
318
py
Python
djavError/tests/models/test_long_request.py
dasmith2/djavError
6fc1bfcf8b1443be817a9bd8ec2d59e7682521dd
[ "MIT" ]
null
null
null
djavError/tests/models/test_long_request.py
dasmith2/djavError
6fc1bfcf8b1443be817a9bd8ec2d59e7682521dd
[ "MIT" ]
null
null
null
djavError/tests/models/test_long_request.py
dasmith2/djavError
6fc1bfcf8b1443be817a9bd8ec2d59e7682521dd
[ "MIT" ]
null
null
null
from djavError.models.long_request import LongRequest from djavError.tests.models.test_problem_request import ( set_problem_request_stuff) def get_test_long_request(**kwargs): instance = LongRequest( total_duration=kwargs.get('total_duration', 10)) return set_problem_request_stuff(instance, **kwargs)
31.8
57
0.805031
41
318
5.902439
0.487805
0.173554
0.140496
0.181818
0
0
0
0
0
0
0
0.007067
0.110063
318
9
58
35.333333
0.848057
0
0
0
0
0
0.044025
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
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
1
0
0
3
54aa4f4981fd29e959b24209c40e8547e727c1c9
133
py
Python
py/t1/test2.py
firekyrin/train-demo
a949a461bb9324fc2732cdf80c42c26379442c96
[ "MIT" ]
null
null
null
py/t1/test2.py
firekyrin/train-demo
a949a461bb9324fc2732cdf80c42c26379442c96
[ "MIT" ]
null
null
null
py/t1/test2.py
firekyrin/train-demo
a949a461bb9324fc2732cdf80c42c26379442c96
[ "MIT" ]
null
null
null
#!/usr/bin/env python class Person: def fun(myself): print "just a fun.%s" %(myself.__class__) aPerson = Person() aPerson.fun()
14.777778
43
0.676692
20
133
4.3
0.7
0
0
0
0
0
0
0
0
0
0
0
0.150376
133
8
44
16.625
0.761062
0.150376
0
0
0
0
0.116071
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
3
54b0270251e7a76049e1d87ce9c9eb93f39375ca
435
py
Python
debug_toolbar_htmltidy/views.py
Narsil/django-dtpanel-htmltidy
b01d4106c3176da0ce9551b1aee277d30a9c69d4
[ "BSD-3-Clause" ]
8
2015-05-26T06:01:29.000Z
2020-06-22T17:26:53.000Z
debug_toolbar_htmltidy/views.py
Narsil/django-dtpanel-htmltidy
b01d4106c3176da0ce9551b1aee277d30a9c69d4
[ "BSD-3-Clause" ]
2
2016-04-02T20:00:46.000Z
2019-06-20T23:20:54.000Z
debug_toolbar_htmltidy/views.py
joymax/django-dtpanel-htmltidy
438e2c075eb58458ad3f8a53b0643e7fc2db5038
[ "BSD-3-Clause" ]
2
2016-05-23T16:44:22.000Z
2017-07-25T14:58:27.000Z
import os from django.conf import settings from django.views.static import serve def debug_media(request, path): """View to serve media for debug_toolbar_Htmltidy""" root = getattr(settings, 'DEBUG_TOOLBAR_HTMLTIDY_MEDIA_ROOT', None) if root is None: parent = os.path.abspath(os.path.dirname(__file...
33.461538
71
0.726437
61
435
4.967213
0.491803
0.118812
0.19802
0
0
0
0
0
0
0
0
0
0.170115
435
12
72
36.25
0.839335
0.105747
0
0
0
0
0.159269
0.143603
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.555556
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
49a528c58e736a8f4922d28520c754036f97362c
2,268
py
Python
examples/antlr2grako/semantics.py
alyosha1879/grako
75d92e0c7992b3c30116e267adbae07a252a3d46
[ "BSD-2-Clause" ]
33
2015-01-01T14:15:50.000Z
2022-02-21T19:37:46.000Z
examples/antlr2grako/semantics.py
alyosha1879/grako
75d92e0c7992b3c30116e267adbae07a252a3d46
[ "BSD-2-Clause" ]
3
2016-02-20T18:56:00.000Z
2017-09-23T20:04:48.000Z
examples/antlr2grako/semantics.py
swayf/grako
f8ab1cc84b25ed132fb6feaa906cfc31ce140f1f
[ "BSD-2-Clause" ]
8
2015-06-28T18:06:37.000Z
2022-01-17T21:47:07.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import, unicode_literals from grako import grammars as model class ANTLRSemantics(object): def __init__(self, name): self.name = name def grammar(self, ast): return model.Grammar(self.name, ast.rules) def r...
26.372093
82
0.571429
289
2,268
4.425606
0.290657
0.163409
0.131353
0.154808
0.12197
0
0
0
0
0
0
0.003232
0.317901
2,268
85
83
26.682353
0.823529
0.009259
0
0.061538
0
0
0.006682
0
0
0
0
0
0
1
0.292308
false
0
0.030769
0.169231
0.707692
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
49a65382da57a9e7c64cac33eb46fa4d02432d6f
8,369
py
Python
tests/test_attacks.py
kasra-hosseini/synthetic_data_release
768fe15cae6a033a17390d8dc2152bb75a083ca2
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests/test_attacks.py
kasra-hosseini/synthetic_data_release
768fe15cae6a033a17390d8dc2152bb75a083ca2
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests/test_attacks.py
kasra-hosseini/synthetic_data_release
768fe15cae6a033a17390d8dc2152bb75a083ca2
[ "MIT", "BSD-3-Clause" ]
null
null
null
"""A template file for writing a simple test for a new attack model""" from unittest import TestCase, skip from warnings import filterwarnings filterwarnings('ignore') from os import path cwd = path.dirname(__file__) from numpy import all from sklearn.model_selection import train_test_split from synthetic_data.priv...
41.845
113
0.672721
1,100
8,369
4.965455
0.134545
0.028561
0.057122
0.038081
0.777005
0.746796
0.739107
0.668803
0.668803
0.668803
0
0.00656
0.216752
8,369
199
114
42.055276
0.826697
0.036922
0
0.561538
0
0
0.130754
0.024882
0
0
0
0
0.184615
1
0.046154
false
0
0.076923
0
0.130769
0.115385
0
0
0
null
0
0
0
0
1
1
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
3
49fe483a0ce14117a47a34c8b0dc0e4f726ca387
295
py
Python
pydaria/models/Product.py
vonmoraes/pyjamas-pydaria
bdb9dadcb0b955e7b19052960bb5f28c0836e79c
[ "MIT" ]
null
null
null
pydaria/models/Product.py
vonmoraes/pyjamas-pydaria
bdb9dadcb0b955e7b19052960bb5f28c0836e79c
[ "MIT" ]
null
null
null
pydaria/models/Product.py
vonmoraes/pyjamas-pydaria
bdb9dadcb0b955e7b19052960bb5f28c0836e79c
[ "MIT" ]
null
null
null
from pydaria.extensions.database import db from sqlalchemy_serializer import SerializerMixin class Product(db.Model, SerializerMixin): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(140)) price = db.Column(db.Numeric()) description = db.Column(db.Text)
32.777778
49
0.749153
40
295
5.475
0.625
0.146119
0.182648
0
0
0
0
0
0
0
0
0.011811
0.138983
295
9
50
32.777778
0.850394
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.285714
0
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
b706ee21c736484bcc972f6226305d2869d8f42a
2,505
py
Python
lib/vector2.py
MizunagiKB/pyxel_demo
f7fbb9b603e8d95485765cda1da8def643350eb1
[ "MIT" ]
null
null
null
lib/vector2.py
MizunagiKB/pyxel_demo
f7fbb9b603e8d95485765cda1da8def643350eb1
[ "MIT" ]
null
null
null
lib/vector2.py
MizunagiKB/pyxel_demo
f7fbb9b603e8d95485765cda1da8def643350eb1
[ "MIT" ]
null
null
null
import math class Vector2(object): def __init__(self, x, y): enumerate self.x = x self.y = y def angle(self): return math.atan2(self.y, self.x) def length(self): return math.sqrt(self.x * self.x + self.y * self.y) def length_squared(self): return self...
27.228261
76
0.560479
387
2,505
3.457364
0.144703
0.104634
0.053812
0.03139
0.423019
0.372197
0.310912
0.264574
0.217489
0.183109
0
0.021801
0.304192
2,505
91
77
27.527473
0.745841
0
0
0.029412
0
0
0
0
0
0
0
0
0
1
0.323529
false
0
0.014706
0.205882
0.632353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
b70a9bbac54586a9d5bb386d76d0054421c4dfcb
21
py
Python
lib_monitor/__init__.py
AnsonShie/smartctl_monitor
877df513f5f282659f88205257fdb5df2ad02f90
[ "Apache-2.0" ]
null
null
null
lib_monitor/__init__.py
AnsonShie/smartctl_monitor
877df513f5f282659f88205257fdb5df2ad02f90
[ "Apache-2.0" ]
null
null
null
lib_monitor/__init__.py
AnsonShie/smartctl_monitor
877df513f5f282659f88205257fdb5df2ad02f90
[ "Apache-2.0" ]
null
null
null
__author__ = 'anson'
10.5
20
0.714286
2
21
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
21
1
21
21
0.611111
0
0
0
0
0
0.238095
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
b70aacdcdd369d4008927e67478e99a53d9b1184
241
py
Python
app/be/gateway/gateway/views/auth.py
hasboeuf/robotum
8ba3932b0766134c455e0b3874813107ba883b18
[ "MIT" ]
null
null
null
app/be/gateway/gateway/views/auth.py
hasboeuf/robotum
8ba3932b0766134c455e0b3874813107ba883b18
[ "MIT" ]
10
2021-03-09T03:57:48.000Z
2022-02-26T19:30:24.000Z
app/be/gateway/gateway/views/auth.py
hasboeuf/robotum
8ba3932b0766134c455e0b3874813107ba883b18
[ "MIT" ]
null
null
null
""" Auth endpoints """ import requests def login(body): """ todoc """ response = requests.post("http://127.0.0.1:8081/v1/login", json=body) return response.json(), response.status_code def logout(): """ todoc """
15.0625
73
0.59751
30
241
4.766667
0.7
0
0
0
0
0
0
0
0
0
0
0.057895
0.211618
241
15
74
16.066667
0.694737
0.149378
0
0
0
0
0.162162
0
0
0
0
0.133333
0
1
0.4
false
0
0.2
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
1
0
0
1
0
0
0
0
1
0
0
3
b70be78784ed22b8dcf0b86a9032038d2136224b
551
py
Python
src/layers/base.py
biggs/tensor-trickle
1c222c71b4611f805aeac5341fd7eb5bf80cc020
[ "MIT" ]
3
2019-03-07T20:13:57.000Z
2019-03-13T00:21:41.000Z
src/layers/base.py
biggs/toy-dl-lib
1c222c71b4611f805aeac5341fd7eb5bf80cc020
[ "MIT" ]
null
null
null
src/layers/base.py
biggs/toy-dl-lib
1c222c71b4611f805aeac5341fd7eb5bf80cc020
[ "MIT" ]
null
null
null
""" base.py: Base class for differentiable neural network layers.""" class Layer(object): """ Abstract base class for differentiable layer.""" def forward_pass(self, input_): """ Forward pass returning and storing outputs.""" raise NotImplementedError() def backward_pass(self, err): ...
32.411765
68
0.671506
59
551
6.186441
0.559322
0.19726
0.065753
0.142466
0
0
0
0
0
0
0
0
0.22323
551
16
69
34.4375
0.852804
0.435572
0
0.428571
0
0
0
0
0
0
0
0
0
1
0.428571
false
0.285714
0
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
1
0
0
3
b7133846c45ef41024e463a00386a20ed0ef5a9a
1,685
py
Python
patterns/factory/abs_factory.py
AaronYang2333/CSCI_570
03e34ce5ff192fc94612bc3afb51dcab3e854462
[ "Apache-2.0" ]
36
2020-07-25T00:13:25.000Z
2022-02-28T17:48:15.000Z
patterns/factory/abs_factory.py
AaronYang2333/LeetCode
03e34ce5ff192fc94612bc3afb51dcab3e854462
[ "Apache-2.0" ]
6
2020-06-06T04:39:37.000Z
2021-04-03T01:45:39.000Z
patterns/factory/abs_factory.py
AaronYang2333/LeetCode
03e34ce5ff192fc94612bc3afb51dcab3e854462
[ "Apache-2.0" ]
16
2020-12-16T02:38:16.000Z
2022-02-28T17:48:16.000Z
__author__ = 'Aaron Yang' __email__ = 'byang971@usc.edu' __date__ = '6/29/2020 5:47 PM' import abc class Factory(abc.ABC): @abc.abstractmethod def produce_partA(self): return DefaultObj() def produce_partB(self): return DefaultObj() class Product(abc.ABC): @abc.abstractmethod d...
19.823529
95
0.634421
222
1,685
4.608108
0.310811
0.078201
0.064516
0.087977
0.450635
0.256109
0.256109
0.166178
0.136852
0
0
0.010442
0.261128
1,685
84
96
20.059524
0.811245
0.18457
0
0.340426
0
0
0.100746
0
0
0
0
0
0
1
0.276596
false
0.021277
0.021277
0.148936
0.638298
0.106383
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
b738aa6474825e1d9f384f7f5d6e03f5b964e8ac
3,967
py
Python
python3/core/sbox.py
urbanware-org/erfr
3f82f42092923b6f03597a54a4d3a8e1cb771d61
[ "MIT" ]
2
2018-04-20T20:13:25.000Z
2018-06-18T18:37:16.000Z
python3/core/sbox.py
urbanware-org/erfr
3f82f42092923b6f03597a54a4d3a8e1cb771d61
[ "MIT" ]
null
null
null
python3/core/sbox.py
urbanware-org/erfr
3f82f42092923b6f03597a54a4d3a8e1cb771d61
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ============================================================================ # Erfr - One-time pad encryption tool # Substitution-box core module # Copyright (C) 2018 by Ralf Kilian # Distributed under the MIT License (https://opensource.org/licenses/MIT) # # Website: h...
43.593407
78
0.598185
577
3,967
4.093588
0.530329
0.010161
0
0
0
0
0
0
0
0
0
0.373672
0.216789
3,967
90
79
44.077778
0.386547
0.122763
0
0
0
0
0.00145
0
0
0
0.593795
0
0
1
0.014493
false
0
0
0
0.028986
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
1
0
0
0
0
0
0
0
0
0
0
0
3
3f7c7a638a9a43b649dc4d8de2b61807b3579290
1,765
py
Python
line_endings.py
ratijas/sublime-commands
a95fa9fbcefa845aa8ddff0771b8f864ede8f923
[ "MIT" ]
17
2017-08-12T15:08:54.000Z
2022-02-03T00:57:24.000Z
line_endings.py
ratijas/sublime-commands
a95fa9fbcefa845aa8ddff0771b8f864ede8f923
[ "MIT" ]
7
2018-07-16T16:42:36.000Z
2021-08-11T12:41:24.000Z
line_endings.py
ratijas/sublime-commands
a95fa9fbcefa845aa8ddff0771b8f864ede8f923
[ "MIT" ]
3
2017-08-12T15:07:19.000Z
2020-10-28T17:37:43.000Z
import sublime_plugin # dictionary of valid line endings LINE_ENDINGS = { 'windows': "Windows\tCRLF", 'unix': "Unix\tLF", 'cr': "MacOS\tCR" } def description(type): return LINE_ENDINGS.get(type.lower(), type) class TypeInputHandler(sublime_plugin.ListInputHandler): def __init__(self, line_endi...
28.015873
77
0.648725
212
1,765
5.240566
0.372642
0.148515
0.063006
0.034203
0.059406
0.059406
0
0
0
0
0
0
0.241926
1,765
62
78
28.467742
0.830344
0.152975
0
0
0
0
0.099185
0
0
0
0
0
0
1
0.25641
false
0
0.025641
0.128205
0.589744
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
3fb8e83b4a8efe860b4b67cee2c0689a1d415dc6
144
py
Python
lang/Python/hash-from-two-arrays-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/hash-from-two-arrays-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/hash-from-two-arrays-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
keys = ['a', 'b', 'c'] values = [1, 2, 3] hash = dict(list(zip(keys, values))) # Lazily, Python 2.3+, not 3.x: hash = dict(zip(keys, values))
18
36
0.5625
26
144
3.115385
0.615385
0.049383
0.320988
0
0
0
0
0
0
0
0
0.050847
0.180556
144
7
37
20.571429
0.635593
0.201389
0
0
0
0
0.026549
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
3fb9917696b227139510aad41b711e315c0e1799
28,344
py
Python
argus/backend/controller/api.py
scylladb/argus
b706082b370680585e7f36880c9d8fff9fbbda26
[ "Apache-2.0" ]
null
null
null
argus/backend/controller/api.py
scylladb/argus
b706082b370680585e7f36880c9d8fff9fbbda26
[ "Apache-2.0" ]
8
2022-02-22T17:32:22.000Z
2022-03-31T08:52:10.000Z
argus/backend/controller/api.py
scylladb/argus
b706082b370680585e7f36880c9d8fff9fbbda26
[ "Apache-2.0" ]
1
2022-03-16T10:24:26.000Z
2022-03-16T10:24:26.000Z
import logging from uuid import UUID from flask import ( Blueprint, g, request ) from flask.json import jsonify from argus.backend.controller.notification_api import bp as notifications_bp from argus.backend.service.argus_service import ArgusService from argus.backend.controller.auth import login_required f...
31.044907
131
0.598469
3,159
28,344
5.137069
0.061095
0.054905
0.026436
0.03192
0.799975
0.771937
0.710316
0.671617
0.638772
0.619855
0
0.001306
0.27071
28,344
912
132
31.078947
0.783755
0.001799
0
0.660194
0
0
0.173707
0.01969
0
0
0
0.001096
0
1
0.04733
false
0
0.010922
0
0.105583
0.003641
0
0
0
null
0
0
0
0
1
1
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
3
3fbaa7662628eb1304e14dcc99be3b5cb9d9d140
9,793
py
Python
pycatia/hybrid_shape_interfaces/line.py
evereux/catia_python
08948585899b12587b0415ce3c9191a408b34897
[ "MIT" ]
90
2019-02-21T10:05:28.000Z
2022-03-19T01:53:41.000Z
pycatia/hybrid_shape_interfaces/line.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
99
2019-05-21T08:29:12.000Z
2022-03-25T09:55:15.000Z
pycatia/hybrid_shape_interfaces/line.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
26
2019-04-04T06:31:36.000Z
2022-03-30T07:24:47.000Z
#! usr/bin/python3.6 """ Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-07-06 14:02:20.222384 .. warning:: The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only. They are there as a guide as to how the visual basic / catscript function...
37.235741
111
0.500051
949
9,793
5.055848
0.203372
0.018758
0.022509
0.035015
0.673197
0.638599
0.619008
0.607962
0.583785
0.567528
0
0.030287
0.433575
9,793
262
112
37.377863
0.834685
0.69999
0
0.076923
1
0
0.014935
0.014935
0
0
0
0
0
1
0.346154
false
0
0.076923
0.038462
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
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
3fc35e31b7d01f0d94a780896730a466afeea2a1
462
py
Python
land/views.py
Django-Lessons/lesson-27-context-processors
b1629ea2e893722f1439318043d211b52b68953b
[ "Apache-2.0" ]
null
null
null
land/views.py
Django-Lessons/lesson-27-context-processors
b1629ea2e893722f1439318043d211b52b68953b
[ "Apache-2.0" ]
null
null
null
land/views.py
Django-Lessons/lesson-27-context-processors
b1629ea2e893722f1439318043d211b52b68953b
[ "Apache-2.0" ]
1
2022-03-25T10:12:07.000Z
2022-03-25T10:12:07.000Z
from django.shortcuts import render from land.models import Category def index(request): return render( request, 'land/index.html', ) def privacy_policy(request): return render( request, 'land/privacy.html', ) def login(request): return render( request,...
13.2
35
0.588745
49
462
5.489796
0.367347
0.193309
0.282528
0.386617
0.446097
0
0
0
0
0
0
0
0.311688
462
34
36
13.588235
0.845912
0
0
0.363636
0
0
0.150327
0.04793
0
0
0
0
0
1
0.181818
false
0
0.090909
0.181818
0.454545
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
1
0
0
0
3
3fc92a164818e5d90704711e797875800b161742
208
py
Python
myproject/todolist/models.py
RootenberG/ToDo
7cb903eed2bfb53913f7fb87e2a4e9777147deea
[ "MIT" ]
null
null
null
myproject/todolist/models.py
RootenberG/ToDo
7cb903eed2bfb53913f7fb87e2a4e9777147deea
[ "MIT" ]
null
null
null
myproject/todolist/models.py
RootenberG/ToDo
7cb903eed2bfb53913f7fb87e2a4e9777147deea
[ "MIT" ]
null
null
null
from django.db import models class Article(models.Model): article_id = models.AutoField(primary_key=True) article_heading = models.TextField(default='') state = models.BooleanField(default=False)
34.666667
51
0.764423
26
208
6
0.730769
0
0
0
0
0
0
0
0
0
0
0
0.129808
208
6
52
34.666667
0.861878
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
3fefccb3d784d47baa8ed3a6759b70c76bbe98b4
2,996
py
Python
AtomPos/gui_interaction.py
rhambach/TEMimage
436c9d8912db481185d09d9d70c4827c87cbd8a5
[ "BSD-3-Clause" ]
2
2020-10-05T06:12:43.000Z
2022-03-15T04:15:16.000Z
AtomPos/gui_interaction.py
rhambach/TEMimage
436c9d8912db481185d09d9d70c4827c87cbd8a5
[ "BSD-3-Clause" ]
null
null
null
AtomPos/gui_interaction.py
rhambach/TEMimage
436c9d8912db481185d09d9d70c4827c87cbd8a5
[ "BSD-3-Clause" ]
null
null
null
""" Organize GUI interaction for following steps: 1. Fourier Filtering (ToDo) 2. Peak Fitting 3. Delaunay Triangulation 4. Generate Atom Positions from Dual Graph Copyright (c) 2013, rhambach. This file is part of the TEMimage package and released under the MIT-Licence. See LICENCE file f...
32.215054
84
0.659212
389
2,996
4.979434
0.426735
0.023232
0.034073
0.023232
0.094992
0.033041
0.033041
0.033041
0
0
0
0.013796
0.201602
2,996
92
85
32.565217
0.795987
0.105474
0
0.055556
1
0
0.121907
0.02834
0
0
0
0.032609
0
0
null
null
0
0.092593
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
3
3fffa5a303fa8d323c2ff6842f9d8d17f25cc604
249
py
Python
tests/unit/tasks/example_test.py
pytheons/pyunit
e8b9104b6c7ff0c6cd3b702262f6fb0f3c2c2d45
[ "MIT" ]
1
2021-01-14T14:35:31.000Z
2021-01-14T14:35:31.000Z
tests/unit/tasks/example_test.py
pytheons/pyunit
e8b9104b6c7ff0c6cd3b702262f6fb0f3c2c2d45
[ "MIT" ]
null
null
null
tests/unit/tasks/example_test.py
pytheons/pyunit
e8b9104b6c7ff0c6cd3b702262f6fb0f3c2c2d45
[ "MIT" ]
1
2021-12-23T07:58:47.000Z
2021-12-23T07:58:47.000Z
import unittest from unittest import TestCase from pytheons.pyunit.decorators.test import test class ExampleTest(TestCase): @test def something(self): self.assertEqual(True, False) if __name__ == '__main__': unittest.main()
16.6
48
0.722892
29
249
5.931034
0.655172
0
0
0
0
0
0
0
0
0
0
0
0.188755
249
14
49
17.785714
0.851485
0
0
0
0
0
0.032129
0
0
0
0
0
0.111111
1
0.111111
false
0
0.333333
0
0.555556
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
b75578c4955107ac9ad0e6572c3e3480ab758a72
2,252
py
Python
src/fbstring/test_fbstring.py
zrthxn/lldb_folly_formatter
f8ed80c0b1bcd7573a7699e48c2f75d869ea7820
[ "MIT" ]
1
2021-11-13T22:11:29.000Z
2021-11-13T22:11:29.000Z
src/fbstring/test_fbstring.py
zrthxn/lldb_folly_formatter
f8ed80c0b1bcd7573a7699e48c2f75d869ea7820
[ "MIT" ]
7
2021-10-30T07:53:38.000Z
2021-11-29T18:22:36.000Z
src/fbstring/test_fbstring.py
zrthxn/lldb_folly_formatter
f8ed80c0b1bcd7573a7699e48c2f75d869ea7820
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from common import LLDBTestCase from os import path class LLDBFollyTests(LLDBTestCase): def get_formatter_path(self): curr_dir = path.abspath(path.dirname(path.realpath(__file__))) return path.join(curr_dir, "fbstring_formatter.py") def test_fbstring(self): """ ...
34.121212
94
0.746892
253
2,252
6.604743
0.256917
0.217834
0.150808
0.259725
0.448235
0.32675
0.32675
0.32675
0.32675
0.32675
0
0.00652
0.114565
2,252
65
95
34.646154
0.831494
0.038632
0
0.254545
0
0
0.81504
0.397478
0
0
0
0
0.018182
1
0.036364
false
0
0.036364
0
0.109091
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
b761a6725bff9c75c6240970adea0036e7373181
185
py
Python
rest_framework_siren/utils.py
clarkperkins/django-rest-framework-siren
a0bc3d9990d88cfda7204fd0cf78ef08c38084b5
[ "Apache-2.0" ]
2
2017-01-29T03:08:12.000Z
2019-03-28T20:12:01.000Z
rest_framework_siren/utils.py
clarkperkins/django-rest-framework-siren
a0bc3d9990d88cfda7204fd0cf78ef08c38084b5
[ "Apache-2.0" ]
null
null
null
rest_framework_siren/utils.py
clarkperkins/django-rest-framework-siren
a0bc3d9990d88cfda7204fd0cf78ef08c38084b5
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from collections import OrderedDict def link_maker(rel, href): return OrderedDict([ ('rel', rel), ('href', href), ])
15.416667
39
0.643243
20
185
5.65
0.65
0.123894
0
0
0
0
0
0
0
0
0
0
0.248649
185
11
40
16.818182
0.81295
0
0
0
0
0
0.038043
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0.142857
0.571429
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
3
b775075dcc63f415ecbd188877ed3b6bb57a8d91
561
py
Python
loss_functions.py
FreedomSlow/Recommendation-Systems
9799ce1ef8c5a5dc89fb2059c081065c87b4f294
[ "Apache-2.0" ]
null
null
null
loss_functions.py
FreedomSlow/Recommendation-Systems
9799ce1ef8c5a5dc89fb2059c081065c87b4f294
[ "Apache-2.0" ]
null
null
null
loss_functions.py
FreedomSlow/Recommendation-Systems
9799ce1ef8c5a5dc89fb2059c081065c87b4f294
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn.functional as F import numpy as np def bprl(positive: torch.Tensor, negative: torch.Tensor) -> torch.Tensor: """ Bayesian Personalized Ranking Loss https://arxiv.org/ftp/arxiv/papers/1205/1205.2618.pdf """ dist = positive - negative return -F.logsigmoid(dist).mean...
28.05
93
0.702317
75
561
5.226667
0.506667
0.196429
0.096939
0.137755
0.193878
0.193878
0
0
0
0
0
0.029979
0.167558
561
19
94
29.526316
0.809422
0.212121
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.333333
0
0.777778
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
1
0
1
0
0
3
b77da5b99e9423f9e3143964fd73378340a56296
196
py
Python
archive/clarifai.py
maketwittergreatagain/website
d47f522be9f8c2b29fd0faf51cae1fb83317ea33
[ "MIT" ]
1
2016-02-21T00:56:43.000Z
2016-02-21T00:56:43.000Z
archive/clarifai.py
maketwittergreatagain/website
d47f522be9f8c2b29fd0faf51cae1fb83317ea33
[ "MIT" ]
null
null
null
archive/clarifai.py
maketwittergreatagain/website
d47f522be9f8c2b29fd0faf51cae1fb83317ea33
[ "MIT" ]
null
null
null
from clarifai.client import ClarifaiApi clarifai_api = ClarifaiApi() # assumes environment variables are set. result = clarifai_api.tag_image_urls('http://www.clarifai.com/img/metro-north.jpg')
39.2
83
0.80102
27
196
5.666667
0.814815
0.143791
0
0
0
0
0
0
0
0
0
0
0.091837
196
4
84
49
0.859551
0.193878
0
0
0
0
0.275641
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
b77f52b9e4a69083457f086805ef196fc39c599c
68
py
Python
desafio 1.py
murillovico/.python
aa2e2e0d7dadd1b520c307d0bb029b29417ddc9e
[ "Apache-2.0" ]
null
null
null
desafio 1.py
murillovico/.python
aa2e2e0d7dadd1b520c307d0bb029b29417ddc9e
[ "Apache-2.0" ]
null
null
null
desafio 1.py
murillovico/.python
aa2e2e0d7dadd1b520c307d0bb029b29417ddc9e
[ "Apache-2.0" ]
null
null
null
nome = input ("qual é sue nome?") print ("bem vinda(o)" + nome)
22.666667
34
0.573529
11
68
3.545455
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.235294
68
2
35
34
0.75
0
0
0
0
0
0.424242
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
1
0
3
b7802f1d8a8e2eabf0debc0f1c8f0dd6279dc189
126
py
Python
venv/lib/python2.7/site-packages/nano-1.0a3-py2.7.egg/nano/privmsg/apps.py
784134748/kubernetes-install
5df59632c2619632e422948b667fb68eab9ff5be
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/nano-1.0a3-py2.7.egg/nano/privmsg/apps.py
784134748/kubernetes-install
5df59632c2619632e422948b667fb68eab9ff5be
[ "MIT" ]
1
2021-04-30T20:41:19.000Z
2021-04-30T20:41:19.000Z
venv/lib/python2.7/site-packages/nano-1.0a3-py2.7.egg/nano/privmsg/apps.py
784134748/kubernetes-install
5df59632c2619632e422948b667fb68eab9ff5be
[ "MIT" ]
null
null
null
from django.apps import AppConfig class NanoPrivmsgConfig(AppConfig): name = 'nano.privmsg' verbose_name = "Privmsg"
21
35
0.746032
14
126
6.642857
0.785714
0
0
0
0
0
0
0
0
0
0
0
0.166667
126
5
36
25.2
0.885714
0
0
0
0
0
0.150794
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
b7cb217acb2883ce3c97357368ae8bc6f9eebbd4
21
py
Python
test/__init__.py
kangdanni/korial
a6d92d8d571f081ea0ee61ede3cb0468d76fff78
[ "BSD-3-Clause" ]
108
2015-01-13T17:49:58.000Z
2022-02-01T15:11:51.000Z
test/__init__.py
kangdanni/korial
a6d92d8d571f081ea0ee61ede3cb0468d76fff78
[ "BSD-3-Clause" ]
9
2015-09-07T04:49:21.000Z
2020-01-27T01:00:53.000Z
test/__init__.py
kangdanni/korial
a6d92d8d571f081ea0ee61ede3cb0468d76fff78
[ "BSD-3-Clause" ]
51
2015-02-14T19:02:33.000Z
2022-02-14T11:25:12.000Z
__author__ = 'sng2c'
10.5
20
0.714286
2
21
5.5
1
0
0
0
0
0
0
0
0
0
0
0.055556
0.142857
21
1
21
21
0.555556
0
0
0
0
0
0.238095
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
b7e4446a4428ad212fc0e1f0ba5042db16f1550f
2,231
py
Python
invenio_rdm_records/services/pids/providers/external.py
ParthS007/invenio-rdm-records
2359ad48216c02c2ec6ddecfea876417837daa1a
[ "MIT" ]
null
null
null
invenio_rdm_records/services/pids/providers/external.py
ParthS007/invenio-rdm-records
2359ad48216c02c2ec6ddecfea876417837daa1a
[ "MIT" ]
null
null
null
invenio_rdm_records/services/pids/providers/external.py
ParthS007/invenio-rdm-records
2359ad48216c02c2ec6ddecfea876417837daa1a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CERN. # # Invenio-RDM-Records is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """PID Base Provider.""" from invenio_pidstore.models import PIDStatus from .base import BaseProvider clas...
32.808824
79
0.642761
258
2,231
5.44186
0.418605
0.0349
0.079772
0.094729
0.314815
0.314815
0.314815
0.314815
0.314815
0.273504
0
0.002994
0.251457
2,231
67
80
33.298507
0.837725
0.461676
0
0.304348
0
0
0.007156
0
0
0
0
0.014925
0
1
0.391304
false
0
0.086957
0
0.565217
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
1
0
0
3
b7e7094ce6fc89268924c7f77e280a4f0452c489
1,080
py
Python
bloodhound_relations/bhrelations/utils/__init__.py
beebopkim/bloodhound
1a1d3c88309136229f4b64d9e75e0441a4c590e4
[ "Apache-2.0" ]
84
2015-01-07T03:42:53.000Z
2022-01-10T11:57:30.000Z
bloodhound_relations/bhrelations/utils/__init__.py
beebopkim/bloodhound
1a1d3c88309136229f4b64d9e75e0441a4c590e4
[ "Apache-2.0" ]
1
2021-11-04T12:52:03.000Z
2021-11-04T12:52:03.000Z
bloodhound_relations/bhrelations/utils/__init__.py
isabella232/bloodhound-1
c3e31294e68af99d4e040e64fbdf52394344df9e
[ "Apache-2.0" ]
35
2015-01-06T11:30:27.000Z
2021-11-10T16:34:52.000Z
# -*- coding: UTF-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (t...
38.571429
74
0.727778
166
1,080
4.73494
0.608434
0.076336
0.033079
0.040712
0
0
0
0
0
0
0
0.009227
0.197222
1,080
27
75
40
0.897347
0.85463
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
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
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
b7e82310ce22b5abc5675b41fcc67c0d3fbc3cc5
320
py
Python
powersimdata/input/changes/helpers.py
lanesmith/PowerSimData
668fda79a316e3681d14c35099df75a7b21f87e4
[ "MIT" ]
null
null
null
powersimdata/input/changes/helpers.py
lanesmith/PowerSimData
668fda79a316e3681d14c35099df75a7b21f87e4
[ "MIT" ]
null
null
null
powersimdata/input/changes/helpers.py
lanesmith/PowerSimData
668fda79a316e3681d14c35099df75a7b21f87e4
[ "MIT" ]
null
null
null
def ordinal(n): """Translate a 0-based index into a 1-based ordinal, e.g. 0 -> 1st, 1 -> 2nd, etc. :param int n: the index to be translated. :return: (*str*) -- Ordinal. """ ord_dict = {1: "st", 2: "nd", 3: "rd"} return str(n + 1) + ord_dict.get((n + 1) if (n + 1) < 20 else (n + 1) % 10, "th")
35.555556
86
0.521875
57
320
2.894737
0.631579
0.048485
0
0
0
0
0
0
0
0
0
0.07234
0.265625
320
8
87
40
0.629787
0.471875
0
0
0
0
0.053333
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
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
1
0
0
0
0
1
0
0
3
4d10228e0c87c62df6f21344188b309186857e0e
96
py
Python
janus/testingRoom/dataTest/dataAccess2.py
bberri1205/2sdfinal
8f56ffd481fc7dadf7c8c154a31e201f8ddcb6ae
[ "MIT" ]
null
null
null
janus/testingRoom/dataTest/dataAccess2.py
bberri1205/2sdfinal
8f56ffd481fc7dadf7c8c154a31e201f8ddcb6ae
[ "MIT" ]
1
2018-05-22T05:14:26.000Z
2018-05-22T18:28:44.000Z
janus/testingRoom/dataTest/dataAccess2.py
bberri1205/2sdfinal
8f56ffd481fc7dadf7c8c154a31e201f8ddcb6ae
[ "MIT" ]
2
2018-05-18T11:32:44.000Z
2018-06-23T22:48:20.000Z
def getItem(tabl, od): gotee = tabl.query.filter_by(id=od).first() print gotee.fname return 0
24
44
0.729167
17
96
4.058824
0.823529
0
0
0
0
0
0
0
0
0
0
0.011905
0.125
96
4
45
24
0.809524
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
3
4d2cdb2931cc55b4e2981d757de47df2315b9a0e
230
py
Python
Hackerrank/Python/python-time-delta.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
1
2021-01-10T13:29:21.000Z
2021-01-10T13:29:21.000Z
Hackerrank/Python/python-time-delta.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
null
null
null
Hackerrank/Python/python-time-delta.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
null
null
null
from datetime import datetime as dt for _ in range(int(input())): s = '%a %d %b %Y %H:%M:%S %z' t1_obj = dt.strptime(input(), s) t2_obj = dt.strptime(input(), s) print(abs(int((t1_obj - t2_obj).total_seconds())))
28.75
54
0.6
41
230
3.219512
0.634146
0.136364
0.19697
0.272727
0.287879
0
0
0
0
0
0
0.021739
0.2
230
7
55
32.857143
0.695652
0
0
0
0
0
0.1
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4d58e8f6a834d83c06c1c363248795be0e1854ef
493
py
Python
mainapp/admin.py
dhavalsavalia/django-database-api
74fdf18f92446811f51b4f48cc6bb3b6a0076aa5
[ "MIT" ]
null
null
null
mainapp/admin.py
dhavalsavalia/django-database-api
74fdf18f92446811f51b4f48cc6bb3b6a0076aa5
[ "MIT" ]
null
null
null
mainapp/admin.py
dhavalsavalia/django-database-api
74fdf18f92446811f51b4f48cc6bb3b6a0076aa5
[ "MIT" ]
null
null
null
from django.contrib import admin from mainapp.models.training import Training from mainapp.models.project import Project, ProjectItem from mainapp.models.experience import Experience from mainapp.models.education import Education from mainapp.models.profile import PersonData # Register your models here. admin.site.reg...
32.866667
55
0.84787
64
493
6.53125
0.28125
0.129187
0.244019
0
0
0
0
0
0
0
0
0
0.075051
493
14
56
35.214286
0.916667
0.052738
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
4d5a1e14296124c78bad2f293b7e5ed026a85201
1,425
py
Python
jtyoui/__init__.py
Abcbaisan/Jtyoui
96b8eebc3c42eaf337221d6485ba8395f07af821
[ "MIT" ]
2
2019-11-06T01:47:17.000Z
2019-11-06T01:48:19.000Z
jtyoui/__init__.py
Abcbaisan/Jtyoui
96b8eebc3c42eaf337221d6485ba8395f07af821
[ "MIT" ]
null
null
null
jtyoui/__init__.py
Abcbaisan/Jtyoui
96b8eebc3c42eaf337221d6485ba8395f07af821
[ "MIT" ]
null
null
null
#!/usr/bin/python3.7 # -*- coding: utf-8 -*- # @Time : 2018/2/2 10:58 # @Email : jtyoui@qq.com # @Software: PyCharm from jtyoui.bs import binary_system # 任意进制转换 from jtyoui.code import cr # 二维码识别 from jtyoui.plunar import * # 农历、阳历 from jtyoui.sogou import SoGou # 下载搜狗 from jtyoui.word import * # 新词发现 from jt...
33.928571
86
0.709474
201
1,425
4.900498
0.537313
0.294416
0
0
0
0
0
0
0
0
0
0.015385
0.178947
1,425
41
87
34.756098
0.826496
0.204912
0
0
0
0
0.070128
0.032787
0
0
0
0
0
1
0
false
0
0.852941
0
0.852941
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
4d90e5c3632fc86b8ea8324c3d9434bf0f4f1ce2
548
py
Python
ramona/server/singleton.py
bulya/ramona
994f0306218c87ba3af57e07b2df716e83aa89c4
[ "BSD-2-Clause" ]
70
2015-01-05T00:42:37.000Z
2021-03-26T08:16:07.000Z
ramona/server/singleton.py
bulya/ramona
994f0306218c87ba3af57e07b2df716e83aa89c4
[ "BSD-2-Clause" ]
3
2015-04-18T15:18:15.000Z
2017-05-24T07:33:50.000Z
ramona/server/singleton.py
bulya/ramona
994f0306218c87ba3af57e07b2df716e83aa89c4
[ "BSD-2-Clause" ]
24
2015-02-09T02:58:37.000Z
2019-10-21T10:30:59.000Z
import weakref # class server_app_singleton(object): ''' Providing server application singleton construct and more importantly also server_app_singleton.instance weak reference (that points to top level application object) ''' instance = None def __init__(self): assert server_app_singleton.instance is None...
22.833333
113
0.79562
73
548
5.657534
0.465753
0.152542
0.305085
0.377724
0.154964
0.154964
0
0
0
0
0
0
0.138686
548
23
114
23.826087
0.875
0.30292
0
0
0
0
0
0
0
0
0
0
0.090909
1
0.272727
false
0
0.090909
0
0.636364
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
1
0
0
0
0
0
0
0
3
4da603d0add48eca248da9f06b3d2a574d7bf08e
1,114
py
Python
0x08_CPython/3-tests.py
gogomillan/holbertonschool-system_linux
13c5bff024fd84c37e256977b106216a27d8cde1
[ "MIT" ]
null
null
null
0x08_CPython/3-tests.py
gogomillan/holbertonschool-system_linux
13c5bff024fd84c37e256977b106216a27d8cde1
[ "MIT" ]
null
null
null
0x08_CPython/3-tests.py
gogomillan/holbertonschool-system_linux
13c5bff024fd84c37e256977b106216a27d8cde1
[ "MIT" ]
2
2021-01-12T01:57:44.000Z
2021-03-24T18:24:56.000Z
#!/usr/bin/python3 -u import ctypes lib = ctypes.CDLL('./libPython.so') lib.print_python_list.argtypes = [ctypes.py_object] lib.print_python_bytes.argtypes = [ctypes.py_object] lib.print_python_float.argtypes = [ctypes.py_object] s = b"Hello" lib.print_python_bytes(s); b = b'\xff\xf8\x00\x00\x00\x00\x00\x00'; lib.pri...
25.906977
78
0.735189
206
1,114
3.776699
0.276699
0.195373
0.341902
0.254499
0.482005
0.348329
0.244216
0.084833
0
0
0
0.135108
0.089767
1,114
42
79
26.52381
0.63215
0.017953
0
0.25641
0
0
0.129918
0.029277
0
0
0
0
0
1
0
false
0
0.025641
0
0.025641
0.512821
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
1
0
3
4daf123aab2cb73281eef7814326dd336113ae33
2,727
py
Python
pettingzoo/magent/magent_env.py
AnanthHari/PettingZoo
c147c2992a067fd529570db0bea6a0324f01ee6e
[ "MIT" ]
null
null
null
pettingzoo/magent/magent_env.py
AnanthHari/PettingZoo
c147c2992a067fd529570db0bea6a0324f01ee6e
[ "MIT" ]
null
null
null
pettingzoo/magent/magent_env.py
AnanthHari/PettingZoo
c147c2992a067fd529570db0bea6a0324f01ee6e
[ "MIT" ]
null
null
null
from gym.spaces import Discrete import numpy as np import warnings import magent from pettingzoo import AECEnv class env(AECEnv): metadata = {'render.modes': ['human']} ''' Parent Class Methods ''' def __init__(self, config, **kwargs): self.env = magent.GridWorld(config, **kwargs) ...
26.475728
79
0.642831
374
2,727
4.526738
0.224599
0.095097
0.099823
0.103957
0.236858
0.236858
0.105729
0.050797
0.050797
0.050797
0
0.004363
0.243491
2,727
102
80
26.735294
0.816287
0
0
0.058824
0
0
0.012801
0
0
0
0
0
0
1
0.367647
false
0.029412
0.073529
0.191176
0.661765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
4db2309da68d7c5513c4a9ee2539a7d0d2e2cd5c
38
py
Python
atest/testdata/variables/same_variable_file_names/different_variable_files/suite3/subsuite2/variable.py
phil-davis/robotframework
4d4ce686cbe01e293bb86ea6ff34330e8c45fc43
[ "ECL-2.0", "Apache-2.0" ]
7,073
2015-01-01T17:19:16.000Z
2022-03-31T22:01:29.000Z
atest/testdata/variables/same_variable_file_names/different_variable_files/suite3/subsuite2/variable.py
phil-davis/robotframework
4d4ce686cbe01e293bb86ea6ff34330e8c45fc43
[ "ECL-2.0", "Apache-2.0" ]
2,412
2015-01-02T09:29:05.000Z
2022-03-31T13:10:46.000Z
atest/testdata/variables/same_variable_file_names/different_variable_files/suite3/subsuite2/variable.py
phil-davis/robotframework
4d4ce686cbe01e293bb86ea6ff34330e8c45fc43
[ "ECL-2.0", "Apache-2.0" ]
2,298
2015-01-03T02:47:15.000Z
2022-03-31T02:00:16.000Z
SUITE = SUITE_32 = "suite3.subsuite2"
19
37
0.736842
5
38
5.4
0.8
0
0
0
0
0
0
0
0
0
0
0.121212
0.131579
38
1
38
38
0.69697
0
0
0
0
0
0.421053
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4db826a7391812a12ee48ade9295935c44e441e8
7,958
py
Python
Template/ProcessDeterminer.py
szegedai/hun_ner_checklist
d4aefc29b3d6966e71f1c47d469c2cbbf6dcf561
[ "MIT" ]
null
null
null
Template/ProcessDeterminer.py
szegedai/hun_ner_checklist
d4aefc29b3d6966e71f1c47d469c2cbbf6dcf561
[ "MIT" ]
null
null
null
Template/ProcessDeterminer.py
szegedai/hun_ner_checklist
d4aefc29b3d6966e71f1c47d469c2cbbf6dcf561
[ "MIT" ]
null
null
null
import itertools from TemplateReader import readLines from TemplateWriter import * def cartesianProduct(start, finish): tagsDf = templateDf[start-1:start].dropna(axis=1, how='all').values.tolist() tags = tagsDf[0] locations = templateDf['Basic cases'][start:finish] persons = templateDf['Unnamed: 2'][s...
39.39604
97
0.699171
762
7,958
7.290026
0.186352
0.128533
0.2009
0.248425
0.818542
0.551035
0.551035
0.482088
0.459226
0.459226
0
0.034674
0.184594
7,958
201
98
39.59204
0.82139
0.002765
0
0.529032
0
0
0.061893
0.008068
0
0
0
0
0
1
0.058065
false
0
0.019355
0
0.077419
0.019355
0
0
0
null
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4db8debf17dab82cea76256fbf0c473cc2931ec0
1,232
py
Python
app/lib_master_python/ds_cache.py
docusign/sfdc-recipe-soap-auto-provisioning
50621220e91360306e60be6d7753943c95feb57d
[ "MIT" ]
2
2021-11-14T17:10:50.000Z
2021-12-29T21:41:58.000Z
app/lib_master_python/ds_cache.py
docusign/sfdc-recipe-auto-provisioning
50621220e91360306e60be6d7753943c95feb57d
[ "MIT" ]
2
2021-03-22T17:15:31.000Z
2021-12-13T19:41:55.000Z
app/lib_master_python/ds_cache.py
docusign/sfdc-recipe-auto-provisioning
50621220e91360306e60be6d7753943c95feb57d
[ "MIT" ]
5
2017-01-28T05:50:53.000Z
2020-12-03T01:00:09.000Z
# A session-independent cache for DocuSign Recipes # Use this file to store information that needs to be available independent # of a particular user's session. # This is especially needed for credentials for "Service Integration" that just # run in the background. # Set encoding to utf8. See http:#stackoverflow.com/...
30.8
79
0.465097
114
1,232
4.973684
0.640351
0.026455
0.05291
0
0
0
0
0
0
0
0
0.014178
0.141234
1,232
39
80
31.589744
0.521739
0.420455
0
0
0
0
0.016461
0
0
0
0
0
0
1
0.2
true
0
0.6
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
4dbb5b847e8a3ef1eeb157da394018ecbe84a885
1,366
py
Python
python/arachne/runtime/rpc/protobuf/runtime_pb2.py
fixstars/arachne
03c00fc5105991d0d706b935d77e6f9255bae9e7
[ "MIT" ]
3
2022-03-29T03:02:20.000Z
2022-03-29T03:48:38.000Z
python/arachne/runtime/rpc/protobuf/runtime_pb2.py
fixstars/arachne
03c00fc5105991d0d706b935d77e6f9255bae9e7
[ "MIT" ]
null
null
null
python/arachne/runtime/rpc/protobuf/runtime_pb2.py
fixstars/arachne
03c00fc5105991d0d706b935d77e6f9255bae9e7
[ "MIT" ]
1
2022-03-29T05:44:12.000Z
2022-03-29T05:44:12.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: runtime.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from goog...
45.533333
529
0.817716
189
1,366
5.656085
0.465608
0.046773
0.084191
0.112254
0.106642
0
0
0
0
0
0
0.073344
0.071742
1,366
29
530
47.103448
0.769716
0.150805
0
0
1
0.071429
0.412174
0.406087
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
4dec7b929925b659e35b645ad42c471d1a9819b2
9,238
py
Python
tests/test_to_pub_key.py
btclib-org/btclib
d19b45edca068118eb1d509536a1a459660d7306
[ "MIT" ]
40
2020-04-07T12:10:34.000Z
2022-03-18T18:10:48.000Z
tests/test_to_pub_key.py
btclib-org/btclib
d19b45edca068118eb1d509536a1a459660d7306
[ "MIT" ]
30
2020-03-20T00:52:37.000Z
2022-02-10T12:54:30.000Z
tests/test_to_pub_key.py
btclib-org/btclib
d19b45edca068118eb1d509536a1a459660d7306
[ "MIT" ]
16
2020-03-19T15:33:35.000Z
2022-02-24T21:47:39.000Z
#!/usr/bin/env python3 # Copyright (C) 2017-2021 The btclib developers # # This file is part of btclib. It is subject to the license terms in the # LICENSE file found in the top-level directory of this distribution. # # No part of btclib including this file, may be copied, modified, propagated, # or distributed except...
41.057778
87
0.688244
1,306
9,238
4.457887
0.073507
0.066987
0.14909
0.093439
0.81484
0.788732
0.743044
0.667812
0.576091
0.40742
0
0.016504
0.226023
9,238
224
88
41.241071
0.797762
0.054557
0
0.311224
0
0
0.036073
0
0
0
0
0
0.27551
1
0.005102
false
0
0.030612
0
0.035714
0
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4df0f16f38552b815da6dfa57676046cd73ccc44
223
py
Python
cogs/badges.py
londarks/Athus-Discord-Bot
720a8c0a2280077712b8d954e7d48dec366953dd
[ "MIT" ]
3
2020-04-04T11:41:19.000Z
2021-06-02T22:56:27.000Z
cogs/badges.py
londarks/Athus-Discord-Bot
720a8c0a2280077712b8d954e7d48dec366953dd
[ "MIT" ]
null
null
null
cogs/badges.py
londarks/Athus-Discord-Bot
720a8c0a2280077712b8d954e7d48dec366953dd
[ "MIT" ]
null
null
null
import sqlite3 import discord from discord.ext import commands import asyncio class Badges(commands.Cog): def __init__(self,client): self.client = client def setup(client): client.add_cog(Badges(client))
17.153846
34
0.73991
30
223
5.333333
0.533333
0.125
0
0
0
0
0
0
0
0
0
0.005435
0.174888
223
13
34
17.153846
0.86413
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.444444
0
0.777778
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
1
0
1
0
0
3
1504107ec51cae2f3465ea7a1184d3200ef83661
559
py
Python
sane_out/colour.py
sane-out/python
beb4d1b834f00b67f7e85e45614cfcdfb83fe1d1
[ "MIT" ]
null
null
null
sane_out/colour.py
sane-out/python
beb4d1b834f00b67f7e85e45614cfcdfb83fe1d1
[ "MIT" ]
null
null
null
sane_out/colour.py
sane-out/python
beb4d1b834f00b67f7e85e45614cfcdfb83fe1d1
[ "MIT" ]
null
null
null
""" This module defines function that turns ANSI codes into an escaped string """ def encode_ansi(*codes: int) -> str: """ Encodes the ANSI code into an ANSI escape sequence. >>> encode_ansi(30) '\\x1b[30m' Support defining multiple codes: >>> encode_ansi(1, 33) '\\x1b[1;33m' All n...
20.703704
73
0.62254
79
559
4.35443
0.64557
0.116279
0
0
0
0
0
0
0
0
0
0.046838
0.236136
559
26
74
21.5
0.758782
0.681574
0
0
0
0
0.464286
0.267857
0
0
0
0
0
1
0.5
true
0
0
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
1
0
0
0
1
0
0
3
1511a897ad9ba787f0d78c45aaeb43024870cde8
280
py
Python
Basics/string_methods.py
caseysalvador/Python
19bc762a123e98ebbac427c69ce58925e507b045
[ "MIT" ]
null
null
null
Basics/string_methods.py
caseysalvador/Python
19bc762a123e98ebbac427c69ce58925e507b045
[ "MIT" ]
null
null
null
Basics/string_methods.py
caseysalvador/Python
19bc762a123e98ebbac427c69ce58925e507b045
[ "MIT" ]
null
null
null
# string methods course = 'Python for Beginners' print('Original = ' + course) print(course.upper()) print(course.lower()) print(course.find('P')) # finds the index of P which is 0 print(course.replace('Beginners', 'Absolute Beginners')) print('Python' in course) # Boolean value
31.111111
57
0.725
39
280
5.205128
0.615385
0.216749
0
0
0
0
0
0
0
0
0
0.004065
0.121429
280
8
58
35
0.821138
0.214286
0
0
0
0
0.300926
0
0
0
0
0
0
1
0
false
0
0
0
0
0.857143
0
0
0
null
1
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
1
0
3
151a0da974e9a5c72673cf947e06f01dd0f956c1
268
py
Python
backend/app/app/db/session.py
Pinafore/Karl-flashcards-web-app
2f4d9925c545f83eb3289dfef85d9b0bf9bfeb8c
[ "Apache-2.0" ]
7
2020-09-13T06:06:32.000Z
2021-11-15T11:37:16.000Z
backend/app/app/db/session.py
Pinafore/Karl-flashcards-web-app
2f4d9925c545f83eb3289dfef85d9b0bf9bfeb8c
[ "Apache-2.0" ]
17
2020-06-01T05:55:04.000Z
2021-04-29T19:04:06.000Z
backend/app/app/db/session.py
danielmichaels/check-redirects.com
90634fb6e7c2443230516e68a55a339f16982a5f
[ "MIT" ]
1
2021-11-28T10:32:33.000Z
2021-11-28T10:32:33.000Z
from app.core.config import settings from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker engine = create_engine(settings.SQLALCHEMY_DATABASE_URI, pool_pre_ping=True) SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
38.285714
76
0.854478
35
268
6.371429
0.628571
0.125561
0
0
0
0
0
0
0
0
0
0
0.08209
268
6
77
44.666667
0.906504
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
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
1
0
0
3
127a407fa270541cb90c2a4a0956dba65509aa7a
263
py
Python
belter/event.py
tartley/belter
a6a766a236a37ed0673c1d43bce2811ae6fac0fb
[ "BlueOak-1.0.0" ]
null
null
null
belter/event.py
tartley/belter
a6a766a236a37ed0673c1d43bce2811ae6fac0fb
[ "BlueOak-1.0.0" ]
1
2019-03-28T14:14:06.000Z
2019-03-29T20:26:23.000Z
belter/event.py
tartley/belter
a6a766a236a37ed0673c1d43bce2811ae6fac0fb
[ "BlueOak-1.0.0" ]
null
null
null
class Event: def __init__(self): self.listeners = set() def __call__(self, *args, **kwargs): for listener in self.listeners: listener(*args, **kwargs) def subscribe(self, listener): self.listeners.add(listener)
20.230769
40
0.60076
29
263
5.172414
0.517241
0.26
0
0
0
0
0
0
0
0
0
0
0.277567
263
12
41
21.916667
0.789474
0
0
0
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0
0
0.5
0
1
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
1
0
0
0
0
0
0
0
3
1289bcc9ad2a58d8cc47c1a377e5ee7a7cc1c5d1
169
py
Python
contacts/urls.py
Vicky-Rathod/django-blog
1c15210376c9e365052dd5c106dbd903a9717bba
[ "MIT" ]
null
null
null
contacts/urls.py
Vicky-Rathod/django-blog
1c15210376c9e365052dd5c106dbd903a9717bba
[ "MIT" ]
null
null
null
contacts/urls.py
Vicky-Rathod/django-blog
1c15210376c9e365052dd5c106dbd903a9717bba
[ "MIT" ]
null
null
null
from django.urls import path from .views import ContactFormView app_name = 'contacts' urlpatterns = [ path('c/', ContactFormView.as_view(), name='contact_view'), ]
21.125
63
0.733728
21
169
5.761905
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.136095
169
7
64
24.142857
0.828767
0
0
0
0
0
0.130178
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
12bf78934beafaaf30114373d300c1b7319c7510
2,298
py
Python
pyscf/pbc/scf/scfint.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
501
2018-12-06T23:48:17.000Z
2022-03-31T11:53:18.000Z
pyscf/pbc/scf/scfint.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
710
2018-11-26T22:04:52.000Z
2022-03-30T03:53:12.000Z
pyscf/pbc/scf/scfint.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
273
2018-11-26T10:10:24.000Z
2022-03-30T12:25:28.000Z
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
31.916667
82
0.693647
362
2,298
4.345304
0.491713
0.031151
0.030515
0.035601
0.13096
0.067387
0.040687
0
0
0
0
0.017325
0.196258
2,298
71
83
32.366197
0.834326
0.570496
0
0
0
0
0.154348
0
0
0
0
0.014085
0
1
0.217391
false
0
0.130435
0
0.565217
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
1
0
0
1
0
0
0
0
1
0
0
3
12e7decd7cb8f3e5d155a98dfc9c90aae2ba5b44
4,442
py
Python
tests/correct/aoc2020/test_day_1_report_repair.py
mristin/python-by-contract-corpus
c96ed00389c3811d7d63560ac665d410a7ee8493
[ "MIT" ]
8
2021-05-07T17:37:37.000Z
2022-02-26T15:08:42.000Z
tests/correct/aoc2020/test_day_1_report_repair.py
mristin/python-by-contract-corpus
c96ed00389c3811d7d63560ac665d410a7ee8493
[ "MIT" ]
22
2021-04-28T21:55:48.000Z
2022-03-04T07:41:37.000Z
tests/correct/aoc2020/test_day_1_report_repair.py
mristin/aocdbc
c96ed00389c3811d7d63560ac665d410a7ee8493
[ "MIT" ]
3
2021-03-26T22:29:12.000Z
2021-04-11T20:45:45.000Z
import textwrap import unittest import icontract_hypothesis from python_by_contract_corpus.correct.aoc2020 import day_1_report_repair class TestWithIcontractHypothesis(unittest.TestCase): def test_functions(self) -> None: for func in [day_1_report_repair.find_pair_with_sum]: try: ...
18.822034
85
0.330707
319
4,442
4.492163
0.846395
0.039777
0.020935
0.033496
0.043266
0.043266
0.043266
0.043266
0
0
0
0.523533
0.650833
4,442
235
86
18.902128
0.400387
0
0
0
0
0
0.103884
0
0
0
0
0
0.083333
1
0.083333
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
1
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
3
12f8410ef39ac6c77c731d93c9790acfd00be392
1,092
py
Python
tests/style.py
naokazuterada/MarkdownTOC
b61546d001661d9385423556a62c21c36abc6857
[ "MIT" ]
299
2015-01-16T23:58:12.000Z
2022-03-12T03:26:17.000Z
tests/style.py
naokazuterada/MarkdownTOC
b61546d001661d9385423556a62c21c36abc6857
[ "MIT" ]
137
2015-01-14T22:43:21.000Z
2021-05-25T10:27:12.000Z
tests/style.py
naokazuterada/MarkdownTOC
b61546d001661d9385423556a62c21c36abc6857
[ "MIT" ]
77
2015-01-23T17:51:36.000Z
2022-03-16T02:19:38.000Z
# coding:utf-8 from base import TestBase class TestStyle(TestBase): """Test for attributes \'style\'""" # for debug # def tearDown(self): # pass style_text = """ <!-- MarkdownTOC {0} --> <!-- /MarkdownTOC --> # foo ## bar ## buz # qux """ def test_style_default(self): """Defa...
24.266667
80
0.576007
143
1,092
4.223776
0.251748
0.173841
0.258278
0.298013
0.627483
0.456954
0.456954
0.456954
0.397351
0.397351
0
0.007282
0.245421
1,092
44
81
24.818182
0.725728
0.097985
0
0.285714
0
0
0.183695
0
0
0
0
0
0.428571
1
0.107143
false
0
0.035714
0
0.214286
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
1
0
0
0
0
0
0
0
0
0
3
4204ff502ff9d369c687e6b0c16898a982327bcf
257
py
Python
tests/context.py
yoshida-lab/pythroughput
ea52f27507a7e103c1a33f24db8dd882c27c77e3
[ "BSD-3-Clause" ]
null
null
null
tests/context.py
yoshida-lab/pythroughput
ea52f27507a7e103c1a33f24db8dd882c27c77e3
[ "BSD-3-Clause" ]
null
null
null
tests/context.py
yoshida-lab/pythroughput
ea52f27507a7e103c1a33f24db8dd882c27c77e3
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2018-2019, Taku MURAKAMI. All rights reserved. # Distributed under the terms of the BSD 3-clause License. import sys import os sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import model
25.7
82
0.735409
42
257
4.404762
0.761905
0.097297
0
0
0
0
0
0
0
0
0
0.049107
0.128405
257
9
83
28.555556
0.776786
0.509728
0
0
0
0
0.016393
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
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
1
0
1
0
0
0
0
3
420d2de5081ea74a7015cacaca326a451cb45ee5
234
py
Python
code/python/experiments/print_levels.py
rec/echomesh
be668971a687b141660fd2e5635d2fd598992a01
[ "MIT" ]
30
2015-02-18T14:07:00.000Z
2021-12-11T15:19:01.000Z
code/python/experiments/print_levels.py
rec/echomesh
be668971a687b141660fd2e5635d2fd598992a01
[ "MIT" ]
16
2015-01-01T23:17:24.000Z
2015-04-18T23:49:27.000Z
code/python/experiments/print_levels.py
rec/echomesh
be668971a687b141660fd2e5635d2fd598992a01
[ "MIT" ]
31
2015-03-11T20:04:07.000Z
2020-11-02T13:56:59.000Z
from echomesh.Cechomesh import cechomesh import time loudness = cechomesh.AudioLoudness('AK5370', 1) loudness2 = cechomesh.AudioLoudness('AK5370', 1) print('deleting first') loudness = None print('deleting second') loudness2 = None
21.272727
48
0.782051
27
234
6.777778
0.555556
0.163934
0.306011
0.31694
0
0
0
0
0
0
0
0.057692
0.111111
234
10
49
23.4
0.822115
0
0
0
0
0
0.175214
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
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
3
42271beb4c4f5e04c0e1dac32755b670babc600a
11,350
py
Python
TG_Fonts/font_01.py
TG-Techie/TG-Fonts
aee8f8ba2d11ff939fc4afcb21be821faeb4166c
[ "MIT" ]
null
null
null
TG_Fonts/font_01.py
TG-Techie/TG-Fonts
aee8f8ba2d11ff939fc4afcb21be821faeb4166c
[ "MIT" ]
null
null
null
TG_Fonts/font_01.py
TG-Techie/TG-Fonts
aee8f8ba2d11ff939fc4afcb21be821faeb4166c
[ "MIT" ]
null
null
null
# The MIT License (MIT) # -Copyright (c) 2017 Radomir Dopieralski and Adafruit Industries # -Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation th...
21.018519
79
0.490837
716
11,350
7.705307
0.337989
0.130506
0.130506
0.116005
0.186877
0.168207
0.116911
0.094617
0.055827
0.040964
0
0.599571
0.424846
11,350
539
80
21.057514
0.245558
0.119119
0
0.71954
0
0
0.019095
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
423f871f760acda1154d911b8d4bbe89eb780b89
201
py
Python
src/api/urls.py
MadRex2000/pycon.tw
3db353dd6ac5cd5c3d98d233bf56ecef94826724
[ "MIT" ]
null
null
null
src/api/urls.py
MadRex2000/pycon.tw
3db353dd6ac5cd5c3d98d233bf56ecef94826724
[ "MIT" ]
null
null
null
src/api/urls.py
MadRex2000/pycon.tw
3db353dd6ac5cd5c3d98d233bf56ecef94826724
[ "MIT" ]
null
null
null
from django.conf.urls import url from sponsors.views import SponsorAPIView, JobAPIView urlpatterns = [ url(r'^sponsors/$', SponsorAPIView.as_view()), url(r'^jobs/$', JobAPIView.as_view()), ]
22.333333
53
0.711443
25
201
5.64
0.6
0.056738
0
0
0
0
0
0
0
0
0
0
0.134328
201
8
54
25.125
0.810345
0
0
0
0
0
0.089552
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
4270120cea767f83e40db90953ebd3379368181f
512
py
Python
logsense_opentracing/instrumentation/__init__.py
logsenseapp/logsense-opentracing-python
805923199101218a9d440c9480a669428b27b4a8
[ "Apache-2.0" ]
null
null
null
logsense_opentracing/instrumentation/__init__.py
logsenseapp/logsense-opentracing-python
805923199101218a9d440c9480a669428b27b4a8
[ "Apache-2.0" ]
1
2021-06-02T00:43:20.000Z
2021-06-02T00:43:20.000Z
logsense_opentracing/instrumentation/__init__.py
logsenseapp/logsense-opentracing-python
805923199101218a9d440c9480a669428b27b4a8
[ "Apache-2.0" ]
null
null
null
""" `Instrumentation` takes together everything needed to automatic and manual instrumentation of python application """ from .general import instrumentation, remove_instrumentation, async_instrumentation from .utils import ALL_ARGS from .modules import patch_module from .functions import patch_single, patch_async_sing...
39.384615
112
0.853516
65
512
6.523077
0.492308
0.07783
0
0
0
0
0
0
0
0
0
0
0.101563
512
12
113
42.666667
0.921739
0.21875
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
4279b2169901dda01cb9280d8db22f48b52bad2c
90
py
Python
code/answer_5-5-12.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
1
2022-03-29T13:50:12.000Z
2022-03-29T13:50:12.000Z
code/answer_5-5-12.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
code/answer_5-5-12.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
A, B = input().split() a = sum(map(int, A)) b = sum(map(int, B)) print(a if a > b else b)
18
24
0.544444
21
90
2.333333
0.47619
0.122449
0.367347
0
0
0
0
0
0
0
0
0
0.211111
90
4
25
22.5
0.690141
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
427b32fae53a51efd84cd326b3a7c57d52f2a65a
12,283
py
Python
manila/policies/shares.py
gouthampacha/manila
4b7ba9b99d272663f519b495668715fbf979ffbc
[ "Apache-2.0" ]
1
2020-01-21T11:18:14.000Z
2020-01-21T11:18:14.000Z
manila/policies/shares.py
gouthampacha/manila
4b7ba9b99d272663f519b495668715fbf979ffbc
[ "Apache-2.0" ]
6
2021-02-11T16:09:43.000Z
2022-03-15T09:56:25.000Z
manila/policies/shares.py
gouthampacha/manila
4b7ba9b99d272663f519b495668715fbf979ffbc
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
32.408971
79
0.523406
1,089
12,283
5.68595
0.150597
0.05491
0.076873
0.09593
0.811693
0.788437
0.758075
0.627261
0.553295
0.490633
0
0.001407
0.363348
12,283
378
80
32.494709
0.790409
0.049499
0
0.573034
0
0
0.253452
0.047517
0
0
0
0
0
1
0.002809
false
0
0.005618
0.002809
0.011236
0
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
42811e2672841f492814ba827c23ac45df6210fd
8,257
py
Python
gp_lib/kernels.py
tonyduan/gp-lib
8febaab91cad8b6435791fa5f0673b0c033c0101
[ "MIT" ]
4
2019-05-02T21:31:48.000Z
2021-10-03T03:23:46.000Z
gp_lib/kernels.py
tonyduan/gaussian-processes
8febaab91cad8b6435791fa5f0673b0c033c0101
[ "MIT" ]
null
null
null
gp_lib/kernels.py
tonyduan/gaussian-processes
8febaab91cad8b6435791fa5f0673b0c033c0101
[ "MIT" ]
1
2021-10-03T03:23:53.000Z
2021-10-03T03:23:53.000Z
import numpy as np import scipy as sp import scipy.spatial from functools import reduce class Kernel(object): def __call__(self, x, y): """ Returns ------- kernel: m x n array """ raise NotImplementedError def trace_x_x(self, x): """ Returns tr...
26.464744
101
0.571031
1,126
8,257
4.022202
0.122558
0.04968
0.037536
0.02208
0.71826
0.688011
0.682049
0.609406
0.609406
0.584677
0
0.010325
0.284486
8,257
311
102
26.549839
0.756263
0.163013
0
0.687898
0
0
0.066759
0.03284
0
0
0
0
0
1
0.343949
false
0
0.025478
0.171975
0.656051
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
42989cab449daf2e41fd317bc7b2e62d9e6b03da
102
py
Python
test/test_yaml_mirror.py
slovak194/pibot
a58ce60f0bfcfbb0fdd66c95ed8ffdaa5549318a
[ "MIT" ]
null
null
null
test/test_yaml_mirror.py
slovak194/pibot
a58ce60f0bfcfbb0fdd66c95ed8ffdaa5549318a
[ "MIT" ]
null
null
null
test/test_yaml_mirror.py
slovak194/pibot
a58ce60f0bfcfbb0fdd66c95ed8ffdaa5549318a
[ "MIT" ]
null
null
null
import yaml with open("/home/slovak/pibot/config/conf.yaml") as iff: jobj = yaml.safe_load(iff)
17
56
0.705882
17
102
4.176471
0.823529
0
0
0
0
0
0
0
0
0
0
0
0.147059
102
5
57
20.4
0.816092
0
0
0
0
0
0.346535
0.346535
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
429a3298b0f15913fbd7a04d002640ac76218bd8
337
py
Python
Some-Examples-of-Simple-Python-Script-master/network/check ip and mac address.py
Aarif1430/Python-Awesome-notes-and-exercises-list
c8ad7f90ebd973025f37d4e79c2f1229a8a2915c
[ "MIT" ]
2
2021-01-13T21:20:57.000Z
2021-08-18T17:53:53.000Z
Some-Examples-of-Simple-Python-Script-master/network/check ip and mac address.py
Aarif1430/Python-Awesome-notes-and-exercises-list
c8ad7f90ebd973025f37d4e79c2f1229a8a2915c
[ "MIT" ]
null
null
null
Some-Examples-of-Simple-Python-Script-master/network/check ip and mac address.py
Aarif1430/Python-Awesome-notes-and-exercises-list
c8ad7f90ebd973025f37d4e79c2f1229a8a2915c
[ "MIT" ]
1
2020-11-05T09:56:55.000Z
2020-11-05T09:56:55.000Z
agaust@agaust:~$ python iPython 2.7.6 (default, Jun 22 2015, 18:00:18) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import commands >>> commands.getoutput('ifconfig wlan0').split()[6][5:] '192.168.1.17' >>> commands.getoutput('ifconfig wlan0').split()[4][0:] '2d:c0:5...
30.636364
70
0.664688
55
337
4.072727
0.8
0.151786
0.223214
0.267857
0.3125
0
0
0
0
0
0
0.13289
0.106825
337
10
71
33.7
0.611296
0
0
0
0
0
0.249258
0
0
0
0
0
0
0
null
null
0
0.1
null
null
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
1
0
0
0
0
0
0
0
0
3
429ece4071c32e87c73a6f2ca85db21bfcec9a8a
28
py
Python
samtranslator/model/packagetype.py
hawflau/serverless-application-model
d2cf4b7e23d26cdf677c564d53bb58e6a5b6cac2
[ "Apache-2.0" ]
1,279
2020-08-25T03:33:15.000Z
2022-03-31T09:49:22.000Z
samtranslator/model/packagetype.py
hawflau/serverless-application-model
d2cf4b7e23d26cdf677c564d53bb58e6a5b6cac2
[ "Apache-2.0" ]
797
2020-08-24T23:30:05.000Z
2022-03-31T22:28:29.000Z
samtranslator/model/packagetype.py
hawflau/serverless-application-model
d2cf4b7e23d26cdf677c564d53bb58e6a5b6cac2
[ "Apache-2.0" ]
431
2020-08-27T20:47:26.000Z
2022-03-31T23:57:55.000Z
IMAGE = "Image" ZIP = "Zip"
9.333333
15
0.571429
4
28
4
0.5
0
0
0
0
0
0
0
0
0
0
0
0.214286
28
2
16
14
0.727273
0
0
0
0
0
0.285714
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
35f2c46e04131693ef5860569dc128ea59013941
65
py
Python
test/testRefin.py
zer01ike/HoleFilling
b1591485f37975c0793839880dbb6185a132d3f9
[ "Apache-2.0" ]
4
2019-02-18T08:58:19.000Z
2021-11-05T01:20:32.000Z
test/testRefin.py
zer01ike/HoleFilling
b1591485f37975c0793839880dbb6185a132d3f9
[ "Apache-2.0" ]
null
null
null
test/testRefin.py
zer01ike/HoleFilling
b1591485f37975c0793839880dbb6185a132d3f9
[ "Apache-2.0" ]
6
2018-05-21T10:08:20.000Z
2021-11-05T01:20:35.000Z
from Refine import TextureRefine a = TextureRefine.TextureRefine
21.666667
32
0.861538
7
65
8
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.107692
65
3
33
21.666667
0.965517
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
35fd65465807deddbd049fa6d07258a864ebca31
7,494
py
Python
pymtl3/passes/rtlir/rtype/RTLIRDataType.py
hsqforfun/pymtl3
05e06601cf262a663a95d1235cb99056ece84580
[ "BSD-3-Clause" ]
1
2019-11-12T12:26:01.000Z
2019-11-12T12:26:01.000Z
pymtl3/passes/rtlir/rtype/RTLIRDataType.py
hsqforfun/pymtl3
05e06601cf262a663a95d1235cb99056ece84580
[ "BSD-3-Clause" ]
null
null
null
pymtl3/passes/rtlir/rtype/RTLIRDataType.py
hsqforfun/pymtl3
05e06601cf262a663a95d1235cb99056ece84580
[ "BSD-3-Clause" ]
null
null
null
#========================================================================= # RTLIRDataType.py #========================================================================= # Author : Peitian Pan # Date : Jan 6, 2019 """RTLIR instance data types and generation methods. This file contains all RTLIR instance data types an...
29.503937
94
0.640779
1,064
7,494
4.307331
0.196429
0.033602
0.017456
0.02902
0.271438
0.174122
0.144665
0.099716
0.068296
0.057386
0
0.006332
0.241393
7,494
253
95
29.620553
0.799824
0.184014
0
0.2375
0
0
0.122473
0.003977
0
0
0
0
0.1
1
0.225
false
0.00625
0.0375
0.15
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
c400d9982b0e75387a5e6aab424878550d3f8a97
1,498
py
Python
martian_lights/helpers/zll_switch.py
aleksejspopovs/martian_lights
1c0b2234c5cfefb3ee426fc1589a1d315720ce47
[ "MIT" ]
1
2021-11-29T16:10:24.000Z
2021-11-29T16:10:24.000Z
martian_lights/helpers/zll_switch.py
aleksejspopovs/martian_lights
1c0b2234c5cfefb3ee426fc1589a1d315720ce47
[ "MIT" ]
null
null
null
martian_lights/helpers/zll_switch.py
aleksejspopovs/martian_lights
1c0b2234c5cfefb3ee426fc1589a1d315720ce47
[ "MIT" ]
null
null
null
import enum from martian_lights.helpers.schema import condition class ZLLSwitchButtonType(enum.Enum): TOP = 1 DIM_UP = 2 DIM_DOWN = 3 BOTTOM = 4 class ZLLSwitchEventType(enum.Enum): INITIAL_PRESS = 0 HOLD = 1 SHORT_RELEASE = 2 LONG_RELEASE = 3 def zll_switch_event(button, event_type): return f'{button.valu...
23.046154
69
0.767023
203
1,498
5.423645
0.246305
0.065395
0.101726
0.087193
0.412352
0.165304
0
0
0
0
0
0.007686
0.131509
1,498
64
70
23.40625
0.838586
0
0
0.041667
0
0
0.084112
0.081442
0
0
0
0
0
1
0.270833
false
0
0.041667
0.229167
0.791667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
c4238ee044db694e1f7927244ce90741889f5a62
403
py
Python
code/ch09/9.1.1.2.two_sum.py
leetcode-pp/leetcode-pp1
a1f9e46fdd2f480d2fcb94e76370e040e0f0a4f5
[ "MIT" ]
22
2021-02-23T13:42:28.000Z
2022-03-02T11:19:28.000Z
code/ch09/9.1.1.2.two_sum.py
leetcode-pp/leetcode-pp1
a1f9e46fdd2f480d2fcb94e76370e040e0f0a4f5
[ "MIT" ]
9
2021-06-16T10:42:01.000Z
2021-08-24T09:06:29.000Z
code/ch09/9.1.1.2.two_sum.py
leetcode-pp/leetcode-pp1
a1f9e46fdd2f480d2fcb94e76370e040e0f0a4f5
[ "MIT" ]
9
2021-02-20T08:29:00.000Z
2021-09-18T08:52:25.000Z
class Solution: def twoSum(self, number:List[int], target:int)->List[int]: left, right = 0, len(numbers) - 1 while left < right: if (numbers[left] + numbers[right] == target): return [left + 1, right + 1] elif (numbers[left] + numbers[right] < target): ...
31
62
0.476427
44
403
4.363636
0.431818
0.072917
0.1875
0.239583
0.302083
0
0
0
0
0
0
0.02449
0.39206
403
12
63
33.583333
0.759184
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
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
1
0
0
0
0
0
0
0
0
3