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
0c51ca98e88d1a727ce66114b104904f547341c6
268
py
Python
test/test_db.py
AleRiccardi/NextEws
e158ef4739f8ea6abe0ab799d3b879586ff11935
[ "Apache-2.0" ]
null
null
null
test/test_db.py
AleRiccardi/NextEws
e158ef4739f8ea6abe0ab799d3b879586ff11935
[ "Apache-2.0" ]
null
null
null
test/test_db.py
AleRiccardi/NextEws
e158ef4739f8ea6abe0ab799d3b879586ff11935
[ "Apache-2.0" ]
null
null
null
import os import tempfile import pytest import sqlite3 import pandas as pd from nextews import db # def test_get_size_author(app): # with app.app_context(): # authors = db.get_authors_df() # print(authors) # assert authors.shape[0] != 0
17.866667
39
0.675373
38
268
4.605263
0.657895
0
0
0
0
0
0
0
0
0
0
0.014706
0.238806
268
14
40
19.142857
0.843137
0.58209
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
0
0
0
2
0c65a3520b49d5e07283dc3bb7ee05a780a74537
5,115
py
Python
utils/encoders.py
rezer0dai/bnpo
e32f2b013d28714530c46c2f1084a14385af1ce9
[ "MIT" ]
null
null
null
utils/encoders.py
rezer0dai/bnpo
e32f2b013d28714530c46c2f1084a14385af1ce9
[ "MIT" ]
null
null
null
utils/encoders.py
rezer0dai/bnpo
e32f2b013d28714530c46c2f1084a14385af1ce9
[ "MIT" ]
null
null
null
import abc import numpy as np import torch #from utils.rbf import * from utils.normalizer import * class IEncoder(nn.Module): def __init__(self, size_in, size_out, n_features): super().__init__() self.size_in = size_in self.size_out = size_out self.n_features = n_features @ab...
39.045802
124
0.668035
716
5,115
4.5
0.145251
0.05959
0.046555
0.043451
0.579764
0.472688
0.335816
0.315953
0.267225
0.267225
0
0.007748
0.217791
5,115
130
125
39.346154
0.797551
0.036559
0
0.385321
0
0
0.019086
0
0
0
0
0
0.027523
1
0.238532
false
0.009174
0.036697
0.06422
0.504587
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
a73f846765cfb33b7914c36f82e9bb0b02a7d4aa
4,980
py
Python
dlearn/utils/costfuncs.py
Cysu/dlearn
7a2c96802ece7356a1574fbb100480f8e92dc120
[ "MIT" ]
4
2015-05-15T11:34:07.000Z
2020-02-13T20:37:58.000Z
dlearn/utils/costfuncs.py
Cysu/dlearn
7a2c96802ece7356a1574fbb100480f8e92dc120
[ "MIT" ]
null
null
null
dlearn/utils/costfuncs.py
Cysu/dlearn
7a2c96802ece7356a1574fbb100480f8e92dc120
[ "MIT" ]
null
null
null
import theano.tensor as T def binxent(output, target): r"""Return the mean binary cross entropy cost. The binary cross entropy of two :math:`n`-dimensional vectors :math:`o` and :math:`t` is .. math:: c = -\sum_{i=1}^n t_i\log(o_i) + (1-t_i)\log(1-o_i) Parameters ---------- outp...
27.977528
79
0.621888
758
4,980
4.047493
0.149077
0.074316
0.043025
0.062581
0.647327
0.568123
0.471969
0.409387
0.409387
0.396675
0
0.012473
0.243373
4,980
177
80
28.135593
0.801752
0.65241
0
0.054054
0
0
0
0
0
0
0
0
0
1
0.243243
false
0
0.027027
0
0.513514
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
a75f722f92e0a20714ee208037de137c544970ae
3,725
py
Python
tests/integrational/native_sync/test_fetch_messages.py
natekspencer/pubnub-python
453ba34104b4067077546d5d9ba3b206559494d1
[ "MIT" ]
146
2015-01-05T03:14:53.000Z
2022-03-16T16:51:52.000Z
tests/integrational/native_sync/test_fetch_messages.py
natekspencer/pubnub-python
453ba34104b4067077546d5d9ba3b206559494d1
[ "MIT" ]
48
2015-01-15T15:27:41.000Z
2022-03-21T14:17:05.000Z
tests/integrational/native_sync/test_fetch_messages.py
natekspencer/pubnub-python
453ba34104b4067077546d5d9ba3b206559494d1
[ "MIT" ]
128
2015-01-05T03:40:59.000Z
2022-03-02T20:50:58.000Z
import time from pubnub.models.consumer.history import PNFetchMessagesResult from pubnub.models.consumer.pubsub import PNPublishResult from pubnub.pubnub import PubNub from tests.helper import pnconf_copy from tests.integrational.vcr_helper import use_cassette_and_stub_time_sleep_native COUNT = 120 class TestFetchM...
41.853933
98
0.668993
442
3,725
5.461538
0.18552
0.086164
0.041425
0.062138
0.724109
0.709611
0.696769
0.656587
0.656587
0.656587
0
0.02226
0.216107
3,725
88
99
42.329545
0.804452
0
0
0.528571
0
0
0.117584
0.069262
0
0
0
0
0.242857
1
0.042857
false
0
0.085714
0
0.142857
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a766da6d25ef7e31965cd07d408b8fab47555402
19,182
py
Python
pysnmp/LOWPAN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/LOWPAN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/LOWPAN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module LOWPAN-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/LOWPAN-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:58:25 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:...
118.407407
2,966
0.762798
2,022
19,182
7.234916
0.102868
0.014765
0.020917
0.019687
0.364823
0.351289
0.351289
0.350673
0.151207
0.141636
0
0.065926
0.080336
19,182
161
2,967
119.142857
0.763335
0.01637
0
0.03268
0
0
0.178588
0.018294
0
0
0
0
0
1
0
false
0
0.045752
0
0.045752
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a77df039acf6efe52ec89df2d35322bce686ad31
1,431
py
Python
pulser-core/pulser/parametrized/decorators.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
pulser-core/pulser/parametrized/decorators.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
pulser-core/pulser/parametrized/decorators.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pulser Development Team # # 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 i...
32.522727
78
0.718379
197
1,431
5.19797
0.563452
0.058594
0.025391
0.03125
0
0
0
0
0
0
0
0.007005
0.201957
1,431
43
79
33.27907
0.889667
0.55905
0
0
0
0
0.001692
0
0
0
0
0
0
1
0.133333
false
0
0.4
0
0.733333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
a785e07104fd8353be5e5f6266ad25f83f8dca3c
786
py
Python
packages/pyright-internal/src/tests/samples/tryExcept9.py
not-my-profile/pyright
dc24fab7796be6e224003d0784d93fc53130070b
[ "MIT" ]
1
2022-02-14T04:03:29.000Z
2022-02-14T04:03:29.000Z
packages/pyright-internal/src/tests/samples/tryExcept9.py
not-my-profile/pyright
dc24fab7796be6e224003d0784d93fc53130070b
[ "MIT" ]
1
2022-01-27T19:30:44.000Z
2022-01-27T19:30:44.000Z
packages/pyright-internal/src/tests/samples/tryExcept9.py
not-my-profile/pyright
dc24fab7796be6e224003d0784d93fc53130070b
[ "MIT" ]
null
null
null
# This sample tests the case where a finally clause contains some conditional # logic that narrows the type of an expression. This narrowed type should # persist after the finally clause. def func1(): file = None try: file = open("test.txt") except Exception: return None finally: ...
19.65
77
0.609415
94
786
5.031915
0.457447
0.05074
0.069767
0.095137
0.56871
0.56871
0.486258
0.43129
0.43129
0.257928
0
0.005464
0.301527
786
39
78
20.153846
0.856102
0.23028
0
0.814815
0
0
0.116473
0
0
0
0
0
0
1
0.111111
false
0.074074
0
0
0.148148
0
0
0
0
null
0
0
0
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
1
0
0
0
0
0
2
a78d3177e3e7f5fee2f6e3642d532aa76064ce16
1,623
py
Python
setup.py
teekaay/aws-switchrole-link
8affb3d6f7f75337ebc79dc967152386378afb5f
[ "Apache-2.0" ]
2
2019-01-09T13:02:03.000Z
2019-03-19T13:43:54.000Z
setup.py
teekaay/aws-switchrole-link
8affb3d6f7f75337ebc79dc967152386378afb5f
[ "Apache-2.0" ]
null
null
null
setup.py
teekaay/aws-switchrole-link
8affb3d6f7f75337ebc79dc967152386378afb5f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import io from setuptools import setup, find_packages VERSION = (1, 0, 0) __versionstr__ = '.'.join(map(str, VERSION)) setup( name = 'aws_switchrole_links', description = "Generate links for switching role in AWS console", license="Apache License, Version 2.0", url = "https://g...
33.8125
74
0.612446
166
1,623
5.825301
0.566265
0.176836
0.232678
0.161324
0.055843
0
0
0
0
0
0
0.016234
0.240912
1,623
47
75
34.531915
0.768669
0.012939
0
0.046512
0
0
0.51
0.02125
0
0
0
0
0
1
0
false
0
0.046512
0
0.046512
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a7935a0c933830345143463877382b65822b3ac0
386
py
Python
Python/fetch_github_info.py
Brabec/Hacktoberfest2020
d3a85850a462ab24abf59d68b5142e0b61b5ce37
[ "MIT" ]
null
null
null
Python/fetch_github_info.py
Brabec/Hacktoberfest2020
d3a85850a462ab24abf59d68b5142e0b61b5ce37
[ "MIT" ]
null
null
null
Python/fetch_github_info.py
Brabec/Hacktoberfest2020
d3a85850a462ab24abf59d68b5142e0b61b5ce37
[ "MIT" ]
null
null
null
import requests _GITHUB_API = "https://api.github.com/user" def fetch_github_info(auth_user, auth_pass): """ Fetch GitHub info of a user using the requests module """ return requests.get(_GITHUB_API, auth=(auth_user, auth_pass)).json() if __name__ == "__main__": for key, value in fetch_github_i...
24.125
76
0.683938
54
386
4.518519
0.574074
0.135246
0.184426
0.131148
0
0
0
0
0
0
0
0
0.176166
386
15
77
25.733333
0.767296
0.137306
0
0
0
0
0.173502
0
0
0
0
0
0
1
0.142857
false
0.428571
0.142857
0
0.428571
0.142857
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
1
0
0
0
0
0
2
a79c9e630b08c39b60f77e5a5644ed0a982fe0e2
231
py
Python
cookies/run_test.py
nikicc/anaconda-recipes
9c611a5854bf41bbc5e7ed9853dc71c0851a62ef
[ "BSD-3-Clause" ]
130
2015-07-28T03:41:21.000Z
2022-03-16T03:07:41.000Z
cookies/run_test.py
nikicc/anaconda-recipes
9c611a5854bf41bbc5e7ed9853dc71c0851a62ef
[ "BSD-3-Clause" ]
147
2017-08-13T04:31:27.000Z
2022-03-07T11:22:23.000Z
cookies/run_test.py
nikicc/anaconda-recipes
9c611a5854bf41bbc5e7ed9853dc71c0851a62ef
[ "BSD-3-Clause" ]
72
2015-07-29T02:35:56.000Z
2022-02-26T14:31:15.000Z
# new cookies.py from cookies import Cookies, Cookie cookies = Cookies(rocky='road') # Can also write explicitly: cookies['rocky'] = Cookie['road'] cookies['rocky'].path = "/cookie" assert cookies.render_request() == 'rocky=road'
28.875
62
0.722944
30
231
5.533333
0.533333
0.216867
0
0
0
0
0
0
0
0
0
0
0.116883
231
7
63
33
0.813725
0.324675
0
0
0
0
0.169935
0
0
0
0
0
0.25
1
0
false
0
0.25
0
0.25
0
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
0
0
2
a7c3cb68f9eed336fedb8d99464d9185518aa0b5
308
py
Python
core/argo/core/TrainingLauncher.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
null
null
null
core/argo/core/TrainingLauncher.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
null
null
null
core/argo/core/TrainingLauncher.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
null
null
null
from .ArgoLauncher import ArgoLauncher import pdb class TrainingLauncher(ArgoLauncher): def execute(self, model, opts, **kwargs): model.train() def initialize(self, model, dataset, config): super().initialize(model,dataset, config) model.create_session(config)
25.666667
49
0.675325
32
308
6.46875
0.59375
0.173913
0.173913
0
0
0
0
0
0
0
0
0
0.224026
308
12
50
25.666667
0.866109
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
a7d3257a0e5a5d2eafa7daa4ed2eb785cd648404
650
py
Python
test/test_spiral_print.py
gasamoma/spiral-print
21d2d617af9a563721a51edbcbb2bc400726426a
[ "Apache-2.0" ]
null
null
null
test/test_spiral_print.py
gasamoma/spiral-print
21d2d617af9a563721a51edbcbb2bc400726426a
[ "Apache-2.0" ]
null
null
null
test/test_spiral_print.py
gasamoma/spiral-print
21d2d617af9a563721a51edbcbb2bc400726426a
[ "Apache-2.0" ]
null
null
null
from src.spiral_print import print_spiral answer_ten = "1 2 3 4 5 6 7 8 9 20 30 40 50 60 70 80 90 100 99 98 97 96 95" \ " 94 93 92 81 71 61 51 41 31 21 11 12 13 14 15 16 17 18 29 39" \ " 49 59 69 79 89 88 87 86 85 84 83 72 62 52 42 32 22 23 24 25" \ " 26 27 38 48 58 68 78 77...
36.111111
78
0.538462
130
650
2.638462
0.846154
0.06414
0
0
0
0
0
0
0
0
0
0.449749
0.387692
650
17
79
38.235294
0.41206
0
0
0
0
0.071429
0.413902
0
0
0
0
0
0.071429
1
0.071429
false
0
0.071429
0
0.142857
0.214286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a7d704cd3b025041be8bd52316c35e156e296af8
83
py
Python
features/tensor_parallel/configs/tp_2d.py
yuxuan-lou/ColossalAI-Examples
1fcb7b4ff5588c653523f877c8848db0a7c56a60
[ "Apache-2.0" ]
39
2022-01-18T09:35:17.000Z
2022-03-30T09:17:35.000Z
features/tensor_parallel/configs/tp_2d.py
yuxuan-lou/ColossalAI-Examples
1fcb7b4ff5588c653523f877c8848db0a7c56a60
[ "Apache-2.0" ]
26
2022-01-20T05:45:23.000Z
2022-03-30T08:41:39.000Z
features/tensor_parallel/configs/tp_2d.py
yuxuan-lou/ColossalAI-Examples
1fcb7b4ff5588c653523f877c8848db0a7c56a60
[ "Apache-2.0" ]
31
2022-01-18T14:16:29.000Z
2022-03-30T09:17:39.000Z
parallel = dict( data=1, pipeline=1, tensor=dict(size=4, mode='2d'), )
13.833333
35
0.566265
12
83
3.916667
0.833333
0
0
0
0
0
0
0
0
0
0
0.063492
0.240964
83
5
36
16.6
0.68254
0
0
0
0
0
0.024096
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
38f36d6393f173bdd5d3ee75e2ddb775f9fa1e7d
12,881
py
Python
smite.py
micahprice/smite-recommender
f6a08faabe591d9e19879d8d8d9be7c2f801c318
[ "MIT" ]
null
null
null
smite.py
micahprice/smite-recommender
f6a08faabe591d9e19879d8d8d9be7c2f801c318
[ "MIT" ]
null
null
null
smite.py
micahprice/smite-recommender
f6a08faabe591d9e19879d8d8d9be7c2f801c318
[ "MIT" ]
null
null
null
""" smite-python (github.com/jaydenkieran/smite-python) Distributed under the MIT License by Jayden Bailey """ import hashlib import traceback import urllib from enum import Enum from urllib.request import urlopen import json import logging from datetime import datetime version = '1.0_rc2' # Initialise logg...
36.908309
150
0.635898
1,624
12,881
4.8867
0.218596
0.036038
0.044103
0.066154
0.322329
0.231981
0.216986
0.189264
0.143145
0.133317
0
0.004944
0.261936
12,881
348
151
37.014368
0.82981
0.301762
0
0.170886
0
0
0.157025
0.01991
0
0
0
0
0
1
0.227848
false
0
0.050633
0
0.537975
0.018987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
ac130a046accfc0befde0cde862e8b09b89ddffe
1,436
py
Python
tests/integrationtest/api/conftest.py
RasmusGodske/eo-platform-utils
4d7c5bdc102d1eb7a5edff096f2783dbdbaa283d
[ "Apache-2.0" ]
null
null
null
tests/integrationtest/api/conftest.py
RasmusGodske/eo-platform-utils
4d7c5bdc102d1eb7a5edff096f2783dbdbaa283d
[ "Apache-2.0" ]
null
null
null
tests/integrationtest/api/conftest.py
RasmusGodske/eo-platform-utils
4d7c5bdc102d1eb7a5edff096f2783dbdbaa283d
[ "Apache-2.0" ]
null
null
null
""" conftest.py according to pytest docs: https://docs.pytest.org/en/2.7.3/plugins.html?highlight=re#conftest-py-plugins """ import pytest from datetime import datetime, timedelta, timezone from origin.api import Application from origin.models.auth import InternalToken from origin.tokens import TokenEncoder @pytest....
19.146667
78
0.639972
159
1,436
5.710692
0.408805
0.085903
0.118943
0.171806
0.279736
0.131057
0.085903
0
0
0
0
0.005372
0.222145
1,436
74
79
19.405405
0.80752
0.101671
0
0.205128
0
0
0.081376
0
0
0
0
0.081081
0
1
0.153846
false
0
0.128205
0
0.282051
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
1
0
0
0
0
0
0
0
0
0
0
2
ac173d6d20d0a48b50315fbb05f7eba1b09583b2
1,053
py
Python
setup.py
theelous3/sansio-multipart-parser
63c8e6a9321132bd3e2b059041bcfea3340f0415
[ "MIT" ]
4
2019-07-31T18:38:17.000Z
2020-10-20T06:37:50.000Z
setup.py
theelous3/sansio-multipart-parser
63c8e6a9321132bd3e2b059041bcfea3340f0415
[ "MIT" ]
null
null
null
setup.py
theelous3/sansio-multipart-parser
63c8e6a9321132bd3e2b059041bcfea3340f0415
[ "MIT" ]
null
null
null
import sys import os.path from setuptools import setup from sansio_multipart import __version__, __author__, __doc__ setup( name="sansio_multipart", version=__version__, description="Parser for multipart/form-data.", long_description=__doc__, author=__author__, author_email="theegrandmaster@gm...
33.967742
82
0.631529
108
1,053
5.888889
0.555556
0.122642
0.150943
0.188679
0.150943
0
0
0
0
0
0
0.003672
0.224122
1,053
30
83
35.1
0.774786
0
0
0
0
0
0.553656
0.023742
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
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
1
0
0
0
0
0
0
2
ac2e5128ae0e537901880f9ba2b45c07789c4999
1,079
py
Python
stubs.min/System/Windows/Controls/__init___parts/DataGridSelectionUnit.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/System/Windows/Controls/__init___parts/DataGridSelectionUnit.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/System/Windows/Controls/__init___parts/DataGridSelectionUnit.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class DataGridSelectionUnit(Enum,IComparable,IFormattable,IConvertible): """ Defines constants that specify whether cells,rows,or both,are used for selection in a System.Windows.Controls.DataGrid control. enum DataGridSelectionUnit,values: Cell (0),CellOrRowHeader (2),FullRow (1) """ def __eq__(self,*arg...
30.828571
215
0.684893
141
1,079
4.567376
0.41844
0.124224
0.130435
0.139752
0.200311
0.200311
0.200311
0.175466
0.175466
0.175466
0
0.00333
0.164968
1,079
34
216
31.735294
0.711432
0.494903
0
0.4
0
0
0
0
0
0
0
0
0
1
0.4
false
0.4
0
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
ac3e681fdbc79f4dbf8ea110347e65fb44507313
1,327
py
Python
virtual/lib/python3.6/site-packages/auth_token/migrations/0010_auto_20190723_1410.py
AudreyCherrie/ihood
7a9de0f8d2c59c117ab6db33037e76e4425f27e9
[ "Unlicense" ]
6
2018-07-03T13:06:27.000Z
2021-02-26T22:46:34.000Z
virtual/lib/python3.6/site-packages/auth_token/migrations/0010_auto_20190723_1410.py
AudreyCherrie/ihood
7a9de0f8d2c59c117ab6db33037e76e4425f27e9
[ "Unlicense" ]
9
2018-07-18T09:00:46.000Z
2021-09-22T17:41:34.000Z
virtual/lib/python3.6/site-packages/auth_token/migrations/0010_auto_20190723_1410.py
AudreyCherrie/ihood
7a9de0f8d2c59c117ab6db33037e76e4425f27e9
[ "Unlicense" ]
5
2018-10-26T11:00:16.000Z
2021-06-29T15:24:17.000Z
# Generated by Django 2.0 on 2019-07-23 12:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('auth_token', '0009_auto_20190622_1920'), ] operations = [ migrations.AlterFi...
31.595238
109
0.593821
135
1,327
5.666667
0.437037
0.130719
0.163399
0.189542
0.27451
0.27451
0
0
0
0
0
0.034188
0.29465
1,327
41
110
32.365854
0.78312
0.032404
0
0.428571
1
0
0.118565
0.017941
0
0
0
0
0
1
0
false
0
0.085714
0
0.171429
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ac4575b558c4f30d5609aca3feca6135df155590
304
py
Python
others/KUPC/2020/d.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
others/KUPC/2020/d.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
others/KUPC/2020/d.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
from math import sqrt N = int(input()) n = int(sqrt(N)) stick = [2*(i+1)-1 for i in range(N)] if N%2 == 0: print(N // 2) for i in range(N//2): print(2, stick[i], stick[-(i+1)]) elif n**2 == N: idx = [(i%n-i//n)%n for i in range(n)] print(n) for i in range(n): else: print('impossible')
17.882353
40
0.542763
66
304
2.5
0.318182
0.09697
0.145455
0.266667
0.30303
0.157576
0
0
0
0
0
0.042194
0.220395
304
16
41
19
0.654008
0
0
0
0
0
0.032895
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.285714
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
1
0
0
0
0
0
0
0
0
2
ac46eb4690c4a62876577f959f7853e8f17aac4d
965
py
Python
time_management/main.py
artorias111/time-management
c79c31e070447e70bd3a54e2ad77d88d9821ac2e
[ "MIT" ]
null
null
null
time_management/main.py
artorias111/time-management
c79c31e070447e70bd3a54e2ad77d88d9821ac2e
[ "MIT" ]
null
null
null
time_management/main.py
artorias111/time-management
c79c31e070447e70bd3a54e2ad77d88d9821ac2e
[ "MIT" ]
null
null
null
import interface_mode import facade_tasks import kronos import os import getpass import ddl import sqlitedb import speech_cadence_emulator def main(): on_startup() def on_startup(): # Initialize database db_v1 = sqlitedb.SQLiteDatabase(os.path.join(os.path.dirname(__file__), "TM_v1.db")) # Scan for...
25.394737
107
0.753368
133
965
5.052632
0.466165
0.02381
0.040179
0.03869
0
0
0
0
0
0
0
0.006173
0.160622
965
37
108
26.081081
0.823457
0.093264
0
0
0
0
0.110345
0.028736
0
0
0
0
0
1
0.083333
false
0.083333
0.333333
0
0.416667
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
0
0
0
2
ac49be8dc1fa90c39680ff3ad9fe6619fe546409
726
py
Python
libp2p/routing/kademlia/kademlia_content_router.py
ChihChengLiang/py-libp2p
f0046fa3e0952b492837a698b1988e05c9821f47
[ "Apache-2.0", "MIT" ]
null
null
null
libp2p/routing/kademlia/kademlia_content_router.py
ChihChengLiang/py-libp2p
f0046fa3e0952b492837a698b1988e05c9821f47
[ "Apache-2.0", "MIT" ]
null
null
null
libp2p/routing/kademlia/kademlia_content_router.py
ChihChengLiang/py-libp2p
f0046fa3e0952b492837a698b1988e05c9821f47
[ "Apache-2.0", "MIT" ]
null
null
null
from libp2p.routing.interfaces import IContentRouting class KadmeliaContentRouter(IContentRouting): def provide(self, cid, announce=True): """ Provide adds the given cid to the content routing system. If announce is True, it also announces it, otherwise it is just kept in the local ...
36.3
89
0.670799
100
726
4.83
0.67
0.028986
0
0
0
0
0
0
0
0
0
0.001883
0.268595
726
19
90
38.210526
0.907721
0.585399
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0.25
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
ac4dc0b7e5047f90c46c25cc8dea11ba0267bdf0
1,405
py
Python
bin/remove_numbers.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
bin/remove_numbers.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
bin/remove_numbers.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python import os,re,glob entries=glob.glob("*") entries=sorted(entries) files={} for filename in entries: if (os.path.isfile(filename)): files[ filename ]=True files=files.keys() files.sort() for filename in files: rfilename=filename regex='^\d+' rfilename=re.sub(regex,'',rfilena...
20.970149
63
0.524555
141
1,405
5.170213
0.269504
0.089163
0.178326
0.208505
0.54321
0.54321
0.54321
0.495199
0.495199
0.495199
0
0
0.276868
1,405
66
64
21.287879
0.71752
0.020641
0
0.2
0
0
0.070648
0
0
0
0
0
0
0
null
null
0
0.022222
null
null
0.044444
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
1
0
0
0
0
0
0
0
0
2
ac515c66086461fac67b6e276d5619e1d27197c5
1,893
py
Python
sdks/python/apache_beam/examples/complete/estimate_pi_test.py
aaltay/incubator-beam
b150ace0884c88bc93da21f6dfe3b7684f886e94
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
9
2016-09-28T18:25:24.000Z
2019-05-09T12:28:29.000Z
sdks/python/apache_beam/examples/complete/estimate_pi_test.py
aaltay/incubator-beam
b150ace0884c88bc93da21f6dfe3b7684f886e94
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
28
2020-03-04T22:01:48.000Z
2022-03-12T00:59:47.000Z
sdks/python/apache_beam/examples/complete/estimate_pi_test.py
aaltay/incubator-beam
b150ace0884c88bc93da21f6dfe3b7684f886e94
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
6
2020-12-02T09:51:34.000Z
2022-03-15T23:09:26.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
32.637931
78
0.749604
265
1,893
5.249057
0.516981
0.043134
0.040259
0.045291
0.044572
0.044572
0
0
0
0
0
0.012788
0.173798
1,893
57
79
33.210526
0.876598
0.501321
0
0
0
0
0.053319
0
0
0
0
0
0.217391
1
0.130435
false
0
0.304348
0
0.521739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
ac59bee8cb37bdfe3460ccc2748f183a8073af70
1,372
py
Python
linux/lib/python2.7/dist-packages/samba/tests/kcc/kcc_utils.py
nmercier/linux-cross-gcc
a5b0028fd2b72ec036a4725e93ba29d73cb753a6
[ "BSD-3-Clause" ]
3
2015-10-31T10:39:25.000Z
2019-04-27T20:19:33.000Z
linux/lib/python2.7/dist-packages/samba/tests/kcc/kcc_utils.py
nmercier/linux-cross-gcc
a5b0028fd2b72ec036a4725e93ba29d73cb753a6
[ "BSD-3-Clause" ]
null
null
null
linux/lib/python2.7/dist-packages/samba/tests/kcc/kcc_utils.py
nmercier/linux-cross-gcc
a5b0028fd2b72ec036a4725e93ba29d73cb753a6
[ "BSD-3-Clause" ]
null
null
null
# Unix SMB/CIFS implementation. Tests for samba.kcc.kcc_utils. # Copyright (C) Andrew Bartlett 2015 # # Written by Douglas Bagnall <douglas.bagnall@catalyst.net.nz> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free ...
36.105263
74
0.752915
207
1,372
4.951691
0.57971
0.023415
0.032195
0.046829
0.154146
0.101463
0
0
0
0
0
0.010536
0.169825
1,372
37
75
37.081081
0.889377
0.69242
0
0
0
0
0
0
0
0
0
0
0.333333
1
0.111111
false
0
0.333333
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
ac59eba33bb1576d678461a5cf11c7f7bdfb5b9b
462
py
Python
src/AddressBook/api/views.py
thunderoy/AddressBook
0d848c1732585c990f057b8e99b4b9290d0b043c
[ "MIT" ]
1
2018-06-13T07:45:13.000Z
2018-06-13T07:45:13.000Z
src/AddressBook/api/views.py
thunderoy/AddressBook
0d848c1732585c990f057b8e99b4b9290d0b043c
[ "MIT" ]
null
null
null
src/AddressBook/api/views.py
thunderoy/AddressBook
0d848c1732585c990f057b8e99b4b9290d0b043c
[ "MIT" ]
null
null
null
#generic from rest_framework import generics from AddressBook.models import Contact from .serializers import ContactSerializer from rest_framework import permissions class CreateContactApiView(generics.CreateAPIView): def get_queryset(self): return Contact.objects.all() serializer_class = ContactSerializer d...
24.315789
62
0.833333
50
462
7.58
0.62
0.042216
0.08971
0.121372
0
0
0
0
0
0
0
0
0.101732
462
19
62
24.315789
0.913253
0.015152
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.363636
0.090909
0.909091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
ac5b11c2f1b24048a3f73e89fb0d8ba1dcccaf8b
245
py
Python
web/sso/models.py
mhamzaerol/kisaweb
6852bbfb018f14df6caeaf75c4087553df6a1357
[ "MIT" ]
null
null
null
web/sso/models.py
mhamzaerol/kisaweb
6852bbfb018f14df6caeaf75c4087553df6a1357
[ "MIT" ]
null
null
null
web/sso/models.py
mhamzaerol/kisaweb
6852bbfb018f14df6caeaf75c4087553df6a1357
[ "MIT" ]
null
null
null
from django.db import models from tinymce.models import HTMLField # Create your models here. class Agreement(models.Model): english = HTMLField() korean = HTMLField() class LoginError(models.Model): email = models.EmailField()
16.333333
36
0.730612
29
245
6.172414
0.62069
0.122905
0
0
0
0
0
0
0
0
0
0
0.179592
245
14
37
17.5
0.890547
0.097959
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.285714
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
ac5e942635b4b7d45e9363bd71fa9157911ba2fe
653
py
Python
src/ytwrapper/resources/ChannelSectionResources.py
Robert-Phan/yt-wrapper
e23d7592969c2dd79c054ab63a403d74ed4385c4
[ "MIT" ]
null
null
null
src/ytwrapper/resources/ChannelSectionResources.py
Robert-Phan/yt-wrapper
e23d7592969c2dd79c054ab63a403d74ed4385c4
[ "MIT" ]
null
null
null
src/ytwrapper/resources/ChannelSectionResources.py
Robert-Phan/yt-wrapper
e23d7592969c2dd79c054ab63a403d74ed4385c4
[ "MIT" ]
null
null
null
"""Class representations of the `ChannelSection` resource.""" from dataclasses import dataclass from .utils import ResponseResourceBase @dataclass class Snippet: type: str = None channel_id: str = None title: str = None position: int = None @dataclass class ContentDetails: playlists: list[str...
25.115385
61
0.733538
63
653
7.571429
0.47619
0.08805
0.037736
0
0
0
0
0
0
0
0
0
0.18683
653
26
62
25.115385
0.898305
0.084227
0
0.2
0
0
0
0
0
0
0
0
0
1
0
true
0
0.1
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
2
ac6703ce0d17f3f28ca02249946a77ca36767852
21,568
py
Python
google/cloud/asset_v1p1beta1/proto/asset_service_pb2.py
vam-google/python-asset
dbf236ecd633a5fa5dd2371493425ef0adfcc266
[ "Apache-2.0" ]
null
null
null
google/cloud/asset_v1p1beta1/proto/asset_service_pb2.py
vam-google/python-asset
dbf236ecd633a5fa5dd2371493425ef0adfcc266
[ "Apache-2.0" ]
null
null
null
google/cloud/asset_v1p1beta1/proto/asset_service_pb2.py
vam-google/python-asset
dbf236ecd633a5fa5dd2371493425ef0adfcc266
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/asset_v1p1beta1/proto/asset_service.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf imp...
38.241135
2,083
0.658754
2,307
21,568
5.910707
0.146077
0.051335
0.064095
0.071502
0.711792
0.656644
0.611616
0.531974
0.504107
0.499413
0
0.049739
0.244019
21,568
563
2,084
38.309059
0.786569
0.027448
0
0.688462
1
0.009615
0.394353
0.175236
0
0
0
0
0
1
0
false
0
0.017308
0
0.017308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ac6a7ee9f4476a25542bba0f32a72c27510cd912
673
py
Python
migrations/versions/164efab664ba_add_abbreviations.py
edbeard/csrweb
aecf8b6199aa6ce04a89c549ea2b970369f750e1
[ "MIT" ]
2
2021-06-26T09:01:28.000Z
2021-07-20T14:47:52.000Z
migrations/versions/164efab664ba_add_abbreviations.py
edbeard/csrweb
aecf8b6199aa6ce04a89c549ea2b970369f750e1
[ "MIT" ]
null
null
null
migrations/versions/164efab664ba_add_abbreviations.py
edbeard/csrweb
aecf8b6199aa6ce04a89c549ea2b970369f750e1
[ "MIT" ]
4
2017-09-04T20:18:03.000Z
2020-04-23T15:28:28.000Z
"""Add abbreviations Revision ID: 164efab664ba Revises: 5626ea423bf1 Create Date: 2016-03-14 01:27:28.956379 """ # revision identifiers, used by Alembic. revision = '164efab664ba' down_revision = '5626ea423bf1' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql def upgrade():...
24.925926
91
0.717682
81
673
5.901235
0.555556
0.056485
0.087866
0.096234
0.1841
0.1841
0.1841
0.1841
0
0
0
0.084806
0.15899
673
26
92
25.884615
0.759717
0.438336
0
0
0
0
0.185507
0
0
0
0
0
0
1
0.222222
false
0
0.333333
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
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
0
0
0
2
ac75e96d9e093614acc930205d6f6b91f8c8c313
511
py
Python
cw/__main__.py
aarondewindt/cw
6be9770da0f0fc34ea47d7ab83e6929c4823e98a
[ "MIT" ]
1
2021-10-06T07:20:43.000Z
2021-10-06T07:20:43.000Z
cw/__main__.py
aarondewindt/cw
6be9770da0f0fc34ea47d7ab83e6929c4823e98a
[ "MIT" ]
3
2019-02-18T13:49:39.000Z
2020-12-28T04:13:27.000Z
cw/__main__.py
aarondewindt/cw
6be9770da0f0fc34ea47d7ab83e6929c4823e98a
[ "MIT" ]
null
null
null
import argparse from cw.generate_cython_pyi import Pyx2PyiCLI from cw.mp.main import MPCLI def main(): parser = argparse.ArgumentParser( prog="cw", description="CW command line tools.", ) subparsers = parser.add_subparsers() Pyx2PyiCLI.configure_arg_parser(subparsers) MPCLI.config...
20.44
47
0.67319
60
511
5.45
0.533333
0.036697
0.110092
0.171254
0
0
0
0
0
0
0
0.005038
0.223092
511
24
48
21.291667
0.81864
0
0
0
1
0
0.07045
0
0
0
0
0
0
1
0.055556
false
0
0.166667
0
0.222222
0.055556
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ac7730e02a3f82bf4bc85b707eba62f6985275b1
690
py
Python
scripts/make_users.py
vsoch/CogatPheno
c3b964d40a4fe501857e68f422e4da557625dd0d
[ "MIT" ]
null
null
null
scripts/make_users.py
vsoch/CogatPheno
c3b964d40a4fe501857e68f422e4da557625dd0d
[ "MIT" ]
12
2015-07-07T21:07:26.000Z
2015-11-05T01:10:49.000Z
scripts/make_users.py
vsoch/CogPheno
c3b964d40a4fe501857e68f422e4da557625dd0d
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from userroles.models import set_user_role from userroles import roles # Read in some file with usersnames, emails, etc. username = "tmp" email = "vsochat@stanford.edu" password = "tmppassword" user = User.objects.create_user(username, email, password) # At this point, user...
34.5
68
0.689855
92
690
5.076087
0.630435
0.044968
0.070664
0.102784
0
0
0
0
0
0
0
0
0.247826
690
19
69
36.315789
0.899807
0.424638
0
0
0
0
0.087855
0
0
0
0
0
0
1
0
false
0.25
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
ac88d3c920ee3595b1697b8c02211913de8ba96b
2,119
py
Python
kong-python-pdk/kong_pdk/pdk/kong/service/__init__.py
srAtKong/kong-custom-plugin-py-tcp
d2b1208b533e3a54845448d5c67e2e6f19d28960
[ "Apache-2.0" ]
18
2021-03-04T18:52:15.000Z
2022-02-14T07:23:35.000Z
kong-python-pdk/kong_pdk/pdk/kong/service/__init__.py
srAtKong/kong-custom-plugin-py-tcp
d2b1208b533e3a54845448d5c67e2e6f19d28960
[ "Apache-2.0" ]
31
2021-03-24T17:00:04.000Z
2022-03-30T15:16:27.000Z
kong-python-pdk/kong_pdk/pdk/kong/service/__init__.py
srAtKong/kong-custom-plugin-py-tcp
d2b1208b533e3a54845448d5c67e2e6f19d28960
[ "Apache-2.0" ]
3
2021-04-25T05:31:03.000Z
2021-07-19T16:32:48.000Z
# AUTO GENERATED BASED ON Kong 2.4.x, DO NOT EDIT # Original source path: kong/pdk/service.lua from typing import TypeVar, Any, Union, List, Mapping, Tuple, Optional number = TypeVar('number', int, float) table = TypeVar('table', List[Any], Mapping[str, Any]) # XXX cdata = Any err = str from .request import request ...
29.430556
89
0.618688
280
2,119
4.614286
0.375
0.04257
0.05418
0.051084
0.430341
0.430341
0.399381
0.399381
0.399381
0.371517
0
0.012032
0.294007
2,119
72
90
29.430556
0.851604
0.508259
0
0.391304
1
0
0.01455
0
0
0
0
0
0
1
0.173913
false
0.217391
0.130435
0
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
ac8bc09520f431c471e2b0424a5d664c55dcc986
498
py
Python
tools/process_malloc_trace.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
tools/process_malloc_trace.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
null
null
null
tools/process_malloc_trace.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
lines = [l for l in open("out.log").readlines() if l.startswith("malloc ") or l.startswith("free ")] freed = set() err = set() for l in lines: if l.startswith("malloc"): p = l[7:] if p in freed: freed.remove(p) else: assert l.startswith("free") p = l[5:] if...
21.652174
100
0.473896
70
498
3.371429
0.4
0.186441
0.050847
0.161017
0
0
0
0
0
0
0
0.006515
0.383534
498
22
101
22.636364
0.762215
0
0
0.111111
0
0
0.068548
0
0
0
0
0
0.055556
0
null
null
0
0
null
null
0.055556
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
1
0
0
0
0
0
0
0
0
2
ac8c10dfe3451c5eeeed91be1c360b0876b1072c
22,362
py
Python
sendsecure/json_client.py
xmedius/sendsecure-python
c1fd75acf7eb1772025e92b1cc7777b205c5d734
[ "MIT" ]
null
null
null
sendsecure/json_client.py
xmedius/sendsecure-python
c1fd75acf7eb1772025e92b1cc7777b205c5d734
[ "MIT" ]
null
null
null
sendsecure/json_client.py
xmedius/sendsecure-python
c1fd75acf7eb1772025e92b1cc7777b205c5d734
[ "MIT" ]
null
null
null
import os import io from .utils import * from .exceptions import * class JsonClient: """ JsonClient object constructor. @param api_token: The API Token to be used for authentication with the SendSecure service @param user_id: The user id of the current user @param en...
41.565056
167
0.673061
2,847
22,362
5.103969
0.082192
0.050719
0.034684
0.040947
0.708554
0.691625
0.684674
0.64937
0.610626
0.586195
0
0.002977
0.234013
22,362
538
168
41.565056
0.84535
0.022807
0
0.306818
0
0
0.17587
0.020838
0
0
0
0
0
1
0.255682
false
0
0.022727
0.011364
0.534091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
3bb164ccb18d1eee3a856188b51eefd4ddf62b4b
394
py
Python
quant/observers/t_example.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/observers/t_example.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/observers/t_example.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- import logging from quant.observers.basicbot import BasicBot class T_Example(BasicBot): """ python -m quant.cli -mBitfinex_BCH_USD,Liqui_BCC_BTC,Bitfinex_BTC_USD -oT_Example -f=example -d """ def __init__(self): super(T_Example, self).__init__()...
20.736842
99
0.675127
55
394
4.509091
0.672727
0.064516
0
0
0
0
0
0
0
0
0
0.003145
0.192893
394
18
100
21.888889
0.77673
0.350254
0
0
0
0
0.075314
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0
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
0
1
0
0
2
3bbb480bb536afaf879fb79fae1fa07e58457ba3
1,041
py
Python
backend/core/auth.py
dominikbullo/SportAgenda
fa130111e08aed38d93b9ab85e14684f362b1930
[ "Apache-2.0" ]
null
null
null
backend/core/auth.py
dominikbullo/SportAgenda
fa130111e08aed38d93b9ab85e14684f362b1930
[ "Apache-2.0" ]
null
null
null
backend/core/auth.py
dominikbullo/SportAgenda
fa130111e08aed38d93b9ab85e14684f362b1930
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from django.urls import path, include from apps.users.api.views import CustomConfirmEmailView from django.urls import path, include from . import views as acc_views urlpatterns = [ path("", include('rest_auth.urls')), # The django-rest-passwordreset urls to request a token a...
40.038462
103
0.732949
136
1,041
5.536765
0.463235
0.053121
0.037185
0.053121
0.164675
0.092961
0.092961
0
0
0
0
0.036464
0.130644
1,041
25
104
41.64
0.79558
0.418828
0
0.166667
0
0
0.301508
0.214405
0
0
0
0
0
1
0
false
0.083333
0.416667
0
0.416667
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
0
0
0
2
3bc49a99df2575ae49c9752210078e58d64c8cad
558
py
Python
src/modeling/meta_arch/build.py
Julienbeaulieu/kaggle-computer-vision-competition
7bc6bcb8b85d81ff1544040c403e356c0a3c8060
[ "MIT" ]
14
2020-12-07T22:24:17.000Z
2022-03-30T05:11:55.000Z
src/modeling/meta_arch/build.py
Julienbeaulieu/kaggle-computer-vision-competition
7bc6bcb8b85d81ff1544040c403e356c0a3c8060
[ "MIT" ]
null
null
null
src/modeling/meta_arch/build.py
Julienbeaulieu/kaggle-computer-vision-competition
7bc6bcb8b85d81ff1544040c403e356c0a3c8060
[ "MIT" ]
4
2020-02-22T17:54:23.000Z
2022-01-31T06:41:11.000Z
from torch import nn from yacs.config import CfgNode from src.tools.registry import Registry from src.modeling.layers.sync_batchnorm import convert_model META_ARCH_REGISTRY = Registry() def build_model(model_cfg: CfgNode) -> nn.Module: """ build model :param model_cfg: model config blob :return: model...
25.363636
60
0.729391
78
558
4.987179
0.448718
0.102828
0.100257
0.107969
0
0
0
0
0
0
0
0
0.191756
558
21
61
26.571429
0.862528
0.145161
0
0
0
0
0.015453
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
3bedb0357334e10076d8b93aa09ae6fab1f2b184
199
py
Python
Kattis/spavanac.py
ruidazeng/online-judge
6bdf8bbf1af885637dab474d0ccb58aff22a0933
[ "MIT" ]
null
null
null
Kattis/spavanac.py
ruidazeng/online-judge
6bdf8bbf1af885637dab474d0ccb58aff22a0933
[ "MIT" ]
null
null
null
Kattis/spavanac.py
ruidazeng/online-judge
6bdf8bbf1af885637dab474d0ccb58aff22a0933
[ "MIT" ]
1
2020-06-22T21:07:24.000Z
2020-06-22T21:07:24.000Z
h, m = map(int, input().split()) if h - 1 < 0: h = 23 m += 15 print(h,m) elif m - 45 < 0: h -= 1 m += 15 print(h, m) else: m -= 45 print(h, m)
13.266667
33
0.351759
34
199
2.058824
0.441176
0.114286
0.3
0.257143
0.285714
0
0
0
0
0
0
0.133333
0.472362
199
15
34
13.266667
0.533333
0
0
0.416667
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3bfa009595d1f7448bc774e93be6f7fe180b6ac4
696
py
Python
tests/orbital_space/test_orbital_space.py
fevangelista/pyWicked
9bc0e13f6e45c86222ea95fdadf1cb66eb59862f
[ "MIT" ]
null
null
null
tests/orbital_space/test_orbital_space.py
fevangelista/pyWicked
9bc0e13f6e45c86222ea95fdadf1cb66eb59862f
[ "MIT" ]
null
null
null
tests/orbital_space/test_orbital_space.py
fevangelista/pyWicked
9bc0e13f6e45c86222ea95fdadf1cb66eb59862f
[ "MIT" ]
null
null
null
import wicked as w import pytest def test_orbital_space(): w.reset_space() w.add_space("c", "fermion", "occupied", ["m", "n"]) w.add_space("a", "fermion", "general", ["u", "v", "w", "x", "y", "z"]) w.add_space("v", "fermion", "unoccupied", ["e", "f"]) assert w.num_spaces() == 3 def test_orbital_...
27.84
74
0.58908
96
696
3.989583
0.385417
0.062663
0.140992
0.177546
0.488251
0.422977
0.422977
0.422977
0.422977
0.422977
0
0.001754
0.181034
696
24
75
29
0.670175
0
0
0.388889
0
0
0.173851
0
0
0
0
0
0.055556
1
0.111111
true
0
0.111111
0
0.222222
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
1
0
0
0
0
0
0
2
3bfd302aeec75daf01a4a0a841e34e7518ab8cc5
5,014
py
Python
src/anaplan_api/File.py
pieter-pot/anaplan-api
1b099cb102f98b114afa0794a40aaf0de19956c1
[ "BSD-2-Clause" ]
null
null
null
src/anaplan_api/File.py
pieter-pot/anaplan-api
1b099cb102f98b114afa0794a40aaf0de19956c1
[ "BSD-2-Clause" ]
null
null
null
src/anaplan_api/File.py
pieter-pot/anaplan-api
1b099cb102f98b114afa0794a40aaf0de19956c1
[ "BSD-2-Clause" ]
null
null
null
from .AnaplanConnection import AnaplanConnection from .Resources import Resources from .ResourceParserFile import ResourceParserFile from .AnaplanResourceFile import AnaplanResourceFile from .util.AnaplanVersion import AnaplanVersion from .util.Util import ResourceNotFoundError class File: """A class representing...
33.205298
117
0.66075
593
5,014
5.367622
0.153457
0.047125
0.025134
0.028275
0.306315
0.251335
0.231857
0.20421
0.20421
0.20421
0
0
0.262266
5,014
150
118
33.426667
0.860503
0.44276
0
0.178571
0
0
0.066837
0
0
0
0
0
0
1
0.214286
false
0
0.107143
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
0
0
0
1
0
0
2
ce05b5185dcdc4b22cf81e4b223f653b893a7dc5
1,294
py
Python
app/api/__init__.py
TestAuto2018/TestAuto
ecc598ac35d8f025296b871b437b2d1de7249b3b
[ "Apache-2.0" ]
249
2018-05-11T08:43:17.000Z
2021-08-13T09:32:57.000Z
app/api/__init__.py
oracle614/AutoLine
923fa4345a06d2d45740055a8f58665f9d59cce1
[ "Apache-2.0" ]
31
2018-05-15T01:25:18.000Z
2022-03-12T00:11:29.000Z
app/api/__init__.py
oracle614/AutoLine
923fa4345a06d2d45740055a8f58665f9d59cce1
[ "Apache-2.0" ]
132
2018-03-01T02:34:52.000Z
2021-02-08T02:00:40.000Z
# -*- coding: utf-8 -*- __author__ = "苦叶子" """ 公众号: 开源优测 Email: lymking@foxmail.com """ from flask import Blueprint from flask_restful import Api api_bp = Blueprint('api', __name__) api = Api(api_bp) from .auth import Auth api.add_resource(Auth, "/auth/") from .product import Product api.add_resource(Product...
18.753623
58
0.739567
183
1,294
5.054645
0.224044
0.11027
0.257297
0.041081
0
0
0
0
0
0
0
0.000876
0.118238
1,294
68
59
19.029412
0.809816
0.016229
0
0
0
0
0.118464
0
0
0
0
0
0
1
0
false
0
0.473684
0
0.473684
0.052632
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
0
0
0
2
ce12c9153ad7746525e9609476dcae241a7769f2
361
py
Python
examples/docs_snippets/docs_snippets/concepts/assets/source_asset.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets/concepts/assets/source_asset.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets/concepts/assets/source_asset.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
1
2019-09-11T03:02:27.000Z
2019-09-11T03:02:27.000Z
# pylint: disable=redefined-outer-name # start_marker from dagster import AssetGroup, AssetKey, SourceAsset, asset my_source_asset = SourceAsset(key=AssetKey("my_source_asset")) @asset def my_derived_asset(my_source_asset): return my_source_asset + [4] asset_group = AssetGroup(assets=[my_derived_asset], source...
22.5625
84
0.797784
50
361
5.4
0.48
0.148148
0.240741
0.133333
0
0
0
0
0
0
0
0.003096
0.105263
361
15
85
24.066667
0.832817
0.166205
0
0
0
0
0.050505
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.166667
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
0
0
0
1
0
0
0
2
ce1412db02be117680b88c0df64f5c4d4850890e
4,569
py
Python
pywinrt/bleak_winrt/windows/devices/bluetooth/genericattributeprofile/__init__.py
langarmjonny/bleak-winrt
848b3e9630ce3111a1044e26b1c0f6b904f7c772
[ "MIT" ]
null
null
null
pywinrt/bleak_winrt/windows/devices/bluetooth/genericattributeprofile/__init__.py
langarmjonny/bleak-winrt
848b3e9630ce3111a1044e26b1c0f6b904f7c772
[ "MIT" ]
null
null
null
pywinrt/bleak_winrt/windows/devices/bluetooth/genericattributeprofile/__init__.py
langarmjonny/bleak-winrt
848b3e9630ce3111a1044e26b1c0f6b904f7c772
[ "MIT" ]
null
null
null
# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-alpha.5 import enum import bleak_winrt _ns_module = bleak_winrt._import_ns_module("Windows.Devices.Bluetooth.GenericAttributeProfile") try: import bleak_winrt.windows.devices.bluetooth except Exception: pass try: ...
33.844444
129
0.80696
390
4,569
9.153846
0.382051
0.087395
0.026891
0.026611
0.067227
0.067227
0.056022
0.056022
0.030812
0
0
0.01698
0.149267
4,569
134
130
34.097015
0.901466
0.018604
0
0.166667
1
0
0.01127
0.01127
0
0
0.00874
0
0
1
0
false
0.04386
0.070175
0
0.54386
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
ce1faf92a51c5d13a973422e933c4e3857b333c8
3,182
py
Python
Data fetching scripts/questiontext_thisdumps.py
KahiniWadhawan/MinasTirith
59fcb24d372383886573ba5c69ff46d23beeccd7
[ "MIT" ]
null
null
null
Data fetching scripts/questiontext_thisdumps.py
KahiniWadhawan/MinasTirith
59fcb24d372383886573ba5c69ff46d23beeccd7
[ "MIT" ]
null
null
null
Data fetching scripts/questiontext_thisdumps.py
KahiniWadhawan/MinasTirith
59fcb24d372383886573ba5c69ff46d23beeccd7
[ "MIT" ]
null
null
null
'''Generates words that are dependent on the word "This" for all question text in train and test''' from __future__ import division import operator import nltk import string from csv import DictReader, DictWriter import wikipedia import re import time import cPickle as pickle from pattern.en import tag fro...
36.159091
121
0.600251
394
3,182
4.781726
0.304569
0.019108
0.033439
0.071656
0.509554
0.455414
0.44586
0.42569
0.42569
0.42569
0
0.003032
0.274356
3,182
87
122
36.574713
0.812906
0.061911
0
0.31746
1
0.015873
0.394255
0.007899
0
0
0
0
0
0
null
null
0
0.206349
null
null
0.031746
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
ce227f0a3d3dd1c55f1c1537db4faa7f786d4a68
182
py
Python
solns/python/5.py
retiman/project-euler
402dc1e6dca91cb52140f74465661595de96d7b7
[ "CC0-1.0" ]
7
2015-06-15T08:18:40.000Z
2021-05-02T03:57:09.000Z
solns/python/5.py
retiman/project-euler
402dc1e6dca91cb52140f74465661595de96d7b7
[ "CC0-1.0" ]
3
2015-01-29T20:56:41.000Z
2021-03-28T22:56:12.000Z
solns/python/5.py
retiman/project-euler
402dc1e6dca91cb52140f74465661595de96d7b7
[ "CC0-1.0" ]
1
2015-01-29T06:29:29.000Z
2015-01-29T06:29:29.000Z
from functools import reduce from math import gcd def lcm(a, b): return a * (b // gcd(a, b)) result = reduce(lcm, range(1, 21), 20) print(result) assert result == 232792560
14
38
0.659341
30
182
4
0.633333
0.05
0
0
0
0
0
0
0
0
0
0.097222
0.208791
182
12
39
15.166667
0.736111
0
0
0
0
0
0
0
0
0
0
0
0.142857
1
0.142857
false
0
0.285714
0.142857
0.571429
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
ce22af3267a8a6a4d594883415879b276df1e0e2
153
py
Python
001~010/009.py
alstn2468/Kakao_Algorithm_Walk
f53ff7db84e72d8c61c7fe04a2431f6d9f951233
[ "MIT" ]
null
null
null
001~010/009.py
alstn2468/Kakao_Algorithm_Walk
f53ff7db84e72d8c61c7fe04a2431f6d9f951233
[ "MIT" ]
null
null
null
001~010/009.py
alstn2468/Kakao_Algorithm_Walk
f53ff7db84e72d8c61c7fe04a2431f6d9f951233
[ "MIT" ]
null
null
null
# 009.py 리스트 = [i for i in range(10)] for i in 리스트 : print(i) ''' 1 2 3 4 5 6 7 8 9 ''' for i in 'kimminsu' : print(i) ''' k i m m i n s u '''
5.1
28
0.48366
38
153
1.947368
0.631579
0.162162
0.243243
0
0
0
0
0
0
0
0
0.138614
0.339869
153
29
29
5.275862
0.594059
0.039216
0
0.4
0
0
0.082474
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
0
0
1
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ce264c8e0b3a5b73200a8568517b54390b5b485d
2,368
py
Python
AULA9.py
ViniciusMottag/Aulas_LP2
bbe53ec2f875f85095e646fe41f493efaf8a89fd
[ "Apache-2.0" ]
null
null
null
AULA9.py
ViniciusMottag/Aulas_LP2
bbe53ec2f875f85095e646fe41f493efaf8a89fd
[ "Apache-2.0" ]
null
null
null
AULA9.py
ViniciusMottag/Aulas_LP2
bbe53ec2f875f85095e646fe41f493efaf8a89fd
[ "Apache-2.0" ]
null
null
null
class Pessoa: def __init__(self, nome, email, celular): self.nome = nome self.email = email self.celular = celular def get_nome(self): return f"Caro(a) {self.nome}" def get_email(self): return(self.email) def get_celular(self): return(self.celular) d...
25.462366
99
0.626689
314
2,368
4.544586
0.216561
0.077085
0.056062
0.035739
0.20953
0.20953
0.139453
0.070077
0.070077
0.070077
0
0.033168
0.236064
2,368
92
100
25.73913
0.755666
0.040118
0
0.272727
0
0
0.100177
0.020741
0
0
0
0
0
1
0.333333
false
0
0
0.166667
0.5
0.106061
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
ce37c7c5dc2b8949349b076942446afad2d749f1
325
py
Python
caas-cStart.py
abhishekkhandal/py-project
f9597afcf02ef06a6ce005d5c5b98af24a89eaaf
[ "MIT" ]
3
2017-06-16T12:50:09.000Z
2018-06-25T09:57:24.000Z
caas-cStart.py
abhishekkhandal/py-project
f9597afcf02ef06a6ce005d5c5b98af24a89eaaf
[ "MIT" ]
null
null
null
caas-cStart.py
abhishekkhandal/py-project
f9597afcf02ef06a6ce005d5c5b98af24a89eaaf
[ "MIT" ]
null
null
null
#!/usr/bin/python2 import commands,cgi print "content-type: text/html" containerName = cgi.FormContent()['containerName'][0] cStopStatus = commands.getstatusoutput("sudo docker start {}".format(containerName)) if cStopStatus[0] == 0: print "location: dp.py" print else: print "Container could not be stopped" ...
14.772727
84
0.723077
40
325
5.875
0.75
0
0
0
0
0
0
0
0
0
0
0.014337
0.141538
325
21
85
15.47619
0.827957
0.052308
0
0
0
0
0.342282
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.444444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
2
ce38a5f78cd4d22d97a9aaa899b751a18da1a6c3
1,206
py
Python
Chapter05/LEDtest.py
PacktPublishing/Wearable-Projects-with-Raspberry-Pi-Zero
681acb4c83674a211307a6061cca07fc8abee4c9
[ "MIT" ]
9
2018-02-07T21:59:41.000Z
2021-07-24T22:07:14.000Z
Chapter05/LEDtest.py
PacktPublishing/Wearable-Projects-with-Raspberry-Pi-Zero
681acb4c83674a211307a6061cca07fc8abee4c9
[ "MIT" ]
2
2017-07-14T05:42:40.000Z
2018-07-02T10:36:59.000Z
Chapter05/LEDtest.py
PacktPublishing/Wearable-Projects-with-Raspberry-Pi-Zero
681acb4c83674a211307a6061cca07fc8abee4c9
[ "MIT" ]
6
2017-07-13T11:12:00.000Z
2021-12-26T01:10:28.000Z
#! /usr/bin/python3 from gpiozero import LEDBoard from time import sleep redLEDs = LEDBoard(15, 18, 17, 27) greLEDs = LEDBoard(14, 2, 3, 4) bluLEDs = LEDBoard(23, 24, 22, 25) while True: redLEDs.on() sleep(0.5) greLEDs.on() sleep(0.5) bluLEDs.on() sleep(0.5) redLEDs.off() sleep(0.5) ...
21.927273
34
0.538143
211
1,206
3.075829
0.184834
0.194145
0.1849
0.16641
0.546995
0.514638
0.514638
0.514638
0.414484
0.077042
0
0.161253
0.28524
1,206
54
35
22.333333
0.591647
0.072139
0
0.4375
0
0
0
0
0
0
0
0
0
1
0
false
0
0.041667
0
0.041667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ce427d536365ba7e2cb741a524345b56dc1e5e4d
3,859
py
Python
tests/strategy/test_memory.py
djmattyg007/freiner
4acff72c55c37495862ea642a70b443da1278894
[ "MIT" ]
null
null
null
tests/strategy/test_memory.py
djmattyg007/freiner
4acff72c55c37495862ea642a70b443da1278894
[ "MIT" ]
null
null
null
tests/strategy/test_memory.py
djmattyg007/freiner
4acff72c55c37495862ea642a70b443da1278894
[ "MIT" ]
null
null
null
import time import pytest from freiner.limits import RateLimitItemPerMinute, RateLimitItemPerSecond from freiner.storage.memory import MemoryStorage from freiner.strategies.fixed_window import FixedWindowRateLimiter from freiner.strategies.fixed_window_elastic import FixedWindowElasticExpiryRateLimiter from freiner.s...
34.150442
88
0.700441
471
3,859
5.573248
0.135881
0.128762
0.102857
0.128
0.76
0.714667
0.682286
0.682286
0.567238
0.497905
0
0.016344
0.223115
3,859
112
89
34.455357
0.859239
0.007774
0
0.650602
0
0
0
0
0
0
0
0
0.433735
1
0.072289
false
0
0.096386
0.012048
0.180723
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
2
cbe9fd394bb868044dc5245f6b049c44aeda5a38
133
py
Python
example_in.py
roberhag/variables-to-argparse
7097679b14c5ec2eeca19e8ca9ecfa1c8dd27117
[ "Unlicense" ]
1
2022-03-24T11:40:25.000Z
2022-03-24T11:40:25.000Z
example_in.py
roberhag/variables-to-argparse
7097679b14c5ec2eeca19e8ca9ecfa1c8dd27117
[ "Unlicense" ]
null
null
null
example_in.py
roberhag/variables-to-argparse
7097679b14c5ec2eeca19e8ca9ecfa1c8dd27117
[ "Unlicense" ]
null
null
null
# Here follows example input: fs = 48000 # Sample rate (Hz) base_freq = 100. # Base frequency (Hz) bpm = 120 # Beats per minute
19
39
0.669173
20
133
4.4
0.9
0
0
0
0
0
0
0
0
0
0
0.107843
0.233083
133
6
40
22.166667
0.754902
0.609023
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0204b0c199bb4f915266aa307951bc43b5968b4a
2,807
py
Python
tests/test_note_pages.py
alexdmoss/alchemyst
dba67544aa1b81c5db1f5ee29d25cf8c9d098e21
[ "MIT" ]
null
null
null
tests/test_note_pages.py
alexdmoss/alchemyst
dba67544aa1b81c5db1f5ee29d25cf8c9d098e21
[ "MIT" ]
null
null
null
tests/test_note_pages.py
alexdmoss/alchemyst
dba67544aa1b81c5db1f5ee29d25cf8c9d098e21
[ "MIT" ]
null
null
null
from alchemyst import app from fakes.fake_note import FakeOrganicNote, FakeInorganicNote, FakePhysicalNote def test_notes_page(mocker): mocker.patch('alchemyst.ui.routes.notes') notes_list = mocker.patch('alchemyst.ui.routes.notes_from_dicts') notes_list.return_value = [FakeInorganicNote(), FakeOrganicNot...
49.245614
91
0.727823
366
2,807
5.374317
0.204918
0.06609
0.085918
0.112354
0.780376
0.767667
0.753432
0.629893
0.542959
0.477885
0
0.008113
0.165657
2,807
56
92
50.125
0.831768
0
0
0.395833
0
0
0.238689
0.113288
0
0
0
0
0.395833
1
0.083333
false
0
0.041667
0
0.125
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
020baede5a9e6d5548509f7f917f0e1ccaa3f33e
304
py
Python
tests/urls.py
marquicus/django-postalcodes-mexico
2103f13954331fa41fb6d879c063fded7cf5c2ef
[ "MIT" ]
null
null
null
tests/urls.py
marquicus/django-postalcodes-mexico
2103f13954331fa41fb6d879c063fded7cf5c2ef
[ "MIT" ]
null
null
null
tests/urls.py
marquicus/django-postalcodes-mexico
2103f13954331fa41fb6d879c063fded7cf5c2ef
[ "MIT" ]
1
2022-03-31T20:11:48.000Z
2022-03-31T20:11:48.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from django.urls import path, include from django.contrib import admin urlpatterns = [ path('admin/', admin.site.urls), path('', include('django_postalcodes_mexico.urls', namespace='django_postalcodes_mexico')) ]
27.636364
94
0.746711
37
304
5.864865
0.540541
0.092166
0.211982
0
0
0
0
0
0
0
0
0.003759
0.125
304
10
95
30.4
0.81203
0.069079
0
0
0
0
0.217082
0.19573
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
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
0
0
0
2
0217429c1dac4823e84cc174dbce6434bf5a4312
1,179
py
Python
workflows/TW-phoSim-r3/helpers/genFocalPlane.py
LSSTDESC/Twinkles
86d6caebde7f965b76ded80df0a1b66254f2a866
[ "MIT" ]
6
2017-02-10T00:38:09.000Z
2018-12-13T17:12:08.000Z
workflows/TW-phoSim-r3/helpers/genFocalPlane.py
LSSTDESC/Twinkles
86d6caebde7f965b76ded80df0a1b66254f2a866
[ "MIT" ]
101
2016-11-29T15:31:00.000Z
2019-08-23T19:14:19.000Z
workflows/TW-phoSim-r3/helpers/genFocalPlane.py
LSSTDESC/Twinkles
86d6caebde7f965b76ded80df0a1b66254f2a866
[ "MIT" ]
4
2017-01-05T20:28:40.000Z
2018-12-13T17:12:09.000Z
#!/nfs/farm/g/lsst/u1/software/redhat6-x86_64-64bit-gcc44/anaconda/2.3.0/bin/python """ genFocalPlane.py - create a text file containing all sets of phoSim sensor locations for use as command line options, e.g.,"-s R122_S11" is the sensor in the very center of the focal plane. Strings are of the format Rxy_Sxy, where...
28.756098
89
0.593723
183
1,179
3.803279
0.568306
0.034483
0.014368
0.017241
0
0
0
0
0
0
0
0.059312
0.284987
1,179
40
90
29.475
0.766311
0.128923
0
0.181818
0
0
0.068729
0
0.045455
0
0
0
0
0
null
null
0.181818
0
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
021a974567463517a8292a5de32b19cb875150fb
602
py
Python
django_kickstart/template/app/manage.py
theduke/django-kickstart
737bd787daeaeb2eb8ecc01409f4b71507f3783f
[ "BSD-3-Clause" ]
5
2015-05-06T08:40:08.000Z
2016-06-28T08:34:28.000Z
django_kickstart/template/app/manage.py
theduke/django-kickstart
737bd787daeaeb2eb8ecc01409f4b71507f3783f
[ "BSD-3-Clause" ]
1
2017-11-03T14:16:37.000Z
2017-11-03T14:34:36.000Z
django_kickstart/template/app/manage.py
theduke/django-kickstart
737bd787daeaeb2eb8ecc01409f4b71507f3783f
[ "BSD-3-Clause" ]
2
2016-07-21T10:47:46.000Z
2019-09-03T13:58:46.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": # Make it possible to run from any directory. os.chdir(os.path.dirname(os.path.realpath(__file__))) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings") sys.path.append('apps') sys.path.append('lib') ...
28.666667
85
0.729236
84
602
4.928571
0.559524
0.043478
0.094203
0.101449
0
0
0
0
0
0
0
0
0.151163
602
20
86
30.1
0.810176
0.171096
0
0
0
0
0.129032
0.044355
0
0
0
0
0
0
null
null
0
0.363636
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
0222e4f75ac37ade7f441ee39de38f434e41c110
1,559
py
Python
lib/modeling/contrasted_context_net.py
xixiobba/MVP-Net
07bf00390080670b5d9a643b99f633419322a1ec
[ "MIT" ]
18
2019-12-17T04:01:16.000Z
2022-02-18T03:20:12.000Z
lib/modeling/contrasted_context_net.py
xixiobba/MVP-Net
07bf00390080670b5d9a643b99f633419322a1ec
[ "MIT" ]
4
2021-02-18T12:14:03.000Z
2021-09-07T01:08:54.000Z
lib/modeling/contrasted_context_net.py
xixiobba/MVP-Net
07bf00390080670b5d9a643b99f633419322a1ec
[ "MIT" ]
8
2019-12-17T08:38:19.000Z
2021-08-10T04:56:47.000Z
# Author zhangshu import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from core.config import cfg import nn as mynn import utils.net as net_utils def get_cc_net(input_channels, output_channels): """ Get an intance of the contrasted_context_net """ re...
32.479167
120
0.649775
190
1,559
5.057895
0.378947
0.081165
0.118626
0.168574
0.193548
0.126951
0.126951
0.126951
0.126951
0.126951
0
0.011334
0.264272
1,559
47
121
33.170213
0.826504
0.164208
0
0
0
0
0
0
0
0
0
0
0
1
0.178571
false
0
0.25
0.035714
0.607143
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
023de3a613b083cc418b31d01a6f61b0d8d15b69
3,283
py
Python
test_typeconverter.py
Hardtack/TypeConverter
94b51f54844d57772f90b359ca0bd9dac806e25e
[ "MIT" ]
null
null
null
test_typeconverter.py
Hardtack/TypeConverter
94b51f54844d57772f90b359ca0bd9dac806e25e
[ "MIT" ]
null
null
null
test_typeconverter.py
Hardtack/TypeConverter
94b51f54844d57772f90b359ca0bd9dac806e25e
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- import sys import pytest import typeconverter if sys.version_info < (3, 0, 0): PY3 = None PY2 = object() string_basetype = basestring def to_str(x): return unicode(x) else: PY3 = object() PY2 = None string_basetype = str def to_str(x): ret...
23.618705
75
0.572647
409
3,283
4.503667
0.200489
0.156352
0.036916
0.009772
0.311075
0.242128
0.204126
0.171553
0.096634
0.096634
0
0.017499
0.286323
3,283
138
76
23.789855
0.768673
0.007006
0
0.254902
0
0
0.017802
0
0
0
0
0
0.196078
1
0.205882
false
0
0.029412
0.127451
0.401961
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
024f42408d1a91ba28efe76cccc9e0432bf13792
127
py
Python
evq/__init__.py
sylwekczmil/evq
2a6bc22884521dd7f2931495a6f1e07c1c43721d
[ "MIT" ]
null
null
null
evq/__init__.py
sylwekczmil/evq
2a6bc22884521dd7f2931495a6f1e07c1c43721d
[ "MIT" ]
null
null
null
evq/__init__.py
sylwekczmil/evq
2a6bc22884521dd7f2931495a6f1e07c1c43721d
[ "MIT" ]
null
null
null
"""Top-level package for evq.""" __author__ = """Sylwester Czmil""" __email__ = 'sylwekczmil@gmail.com' __version__ = '0.0.2'
21.166667
35
0.685039
16
127
4.6875
0.9375
0
0
0
0
0
0
0
0
0
0
0.026786
0.11811
127
5
36
25.4
0.642857
0.204724
0
0
0
0
0.431579
0.221053
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
024f7d69bd21af7f2d11bcfef278562043137180
2,673
py
Python
models/discriminator.py
wspalding/hs_cards_3
0ad4c7b001311d8c6a749aeb574e00b18c31d9bc
[ "MIT" ]
null
null
null
models/discriminator.py
wspalding/hs_cards_3
0ad4c7b001311d8c6a749aeb574e00b18c31d9bc
[ "MIT" ]
null
null
null
models/discriminator.py
wspalding/hs_cards_3
0ad4c7b001311d8c6a749aeb574e00b18c31d9bc
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Conv2D, MaxPooling2D, Dropout, Dense, Flatten, \ Conv2DTranspose, Reshape, AveragePooling2D, UpSampling2D, LeakyReLU, \ BatchNormalization, Embedding, Concatenate, Input from tensorflow.keras.losses ...
43.112903
109
0.737
379
2,673
4.960422
0.21372
0.208511
0.117021
0.170213
0.475532
0.447872
0.447872
0.432979
0.432979
0.432979
0
0.051672
0.138421
2,673
62
110
43.112903
0.764655
0.09278
0
0.444444
0
0
0.019446
0
0
0
0
0
0
1
0.044444
false
0
0.2
0
0.288889
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
02500e3c8db0fd904781541e8a6f02e18d26eea9
150
py
Python
MagniPy/__init__.py
dangilman/MagniPy
820b82ea0f6559c895f11c92d93de475a92d38b0
[ "MIT" ]
2
2020-02-20T02:27:16.000Z
2020-02-20T08:38:23.000Z
MagniPy/__init__.py
dangilman/MagniPy
820b82ea0f6559c895f11c92d93de475a92d38b0
[ "MIT" ]
1
2021-11-15T17:50:20.000Z
2021-11-15T17:50:20.000Z
MagniPy/__init__.py
dangilman/MagniPy
820b82ea0f6559c895f11c92d93de475a92d38b0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for MagniPy.""" __author__ = """Daniel Gilman""" __email__ = 'gilmanda@ucla.edu' __version__ = '0.1.0'
18.75
36
0.633333
19
150
4.368421
0.947368
0
0
0
0
0
0
0
0
0
0
0.031008
0.14
150
7
37
21.428571
0.612403
0.353333
0
0
0
0
0.384615
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0253950f20aca03c14763e8eb2ee221c75f97204
1,071
py
Python
python/Strategy/Duck/Duck.py
eling22/Design-Pattern
2757b2468e28f7a4fcae185752101fb565975bd9
[ "MIT" ]
2
2020-12-19T05:30:06.000Z
2021-08-07T11:16:13.000Z
python/Strategy/Duck/Duck.py
eling22/Design-Pattern
2757b2468e28f7a4fcae185752101fb565975bd9
[ "MIT" ]
null
null
null
python/Strategy/Duck/Duck.py
eling22/Design-Pattern
2757b2468e28f7a4fcae185752101fb565975bd9
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from .FlyBehavior import FlyBehavior, FlyNoWay, FlyWithWings from .QuackBehavior import QuackBehavior, Quack, MuteQuack, SQuack class Duck(ABC): def __init__(self): self.flyBehavior = None self.quackBehavior = None @abstractmethod def display(self): ...
22.787234
66
0.659197
113
1,071
6.141593
0.345133
0.129683
0.10951
0.064842
0.25072
0.213256
0.126801
0.126801
0.126801
0.126801
0
0
0.246499
1,071
46
67
23.282609
0.859975
0
0
0.25
0
0
0.063492
0
0
0
0
0
0
1
0.34375
false
0.03125
0.09375
0
0.53125
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
0258e75312fd7561103b74c3ed13674a0453b83a
2,242
py
Python
shared/logfileAnalysis/windows.py
infostreams/webindex
8e8fbfe35fe6292aaa209f932f636ef74a07b8b1
[ "Python-2.0" ]
1
2017-03-23T08:08:27.000Z
2017-03-23T08:08:27.000Z
shared/logfileAnalysis/windows.py
infostreams/webindex
8e8fbfe35fe6292aaa209f932f636ef74a07b8b1
[ "Python-2.0" ]
null
null
null
shared/logfileAnalysis/windows.py
infostreams/webindex
8e8fbfe35fe6292aaa209f932f636ef74a07b8b1
[ "Python-2.0" ]
null
null
null
import _winreg import os import string import IISLog, NCSALog class logfileParser: def __init__(self, logfilename=None): if logfilename!=None: openLogfile(logfilename) def __getLogdirs(self): key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Services\\W3SVC\\Paramete...
28.379747
143
0.672614
277
2,242
5.350181
0.350181
0.026991
0.016194
0.034413
0.172065
0.147773
0.129555
0.129555
0.129555
0.129555
0
0.008394
0.202944
2,242
78
144
28.74359
0.820929
0.134255
0
0
0
0.017544
0.127694
0.030172
0
0
0
0.012821
0
0
null
null
0
0.070175
null
null
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
2
0279e9aab8b0f696324936ee99b4a37b59b42696
377
py
Python
Lab_4/4.2_rsa_key.py
Saif-M-Dhrubo/Crypto-Lab
2807320d7ca389adee86f69f704b9f91f9cd8054
[ "MIT" ]
2
2019-04-28T16:34:15.000Z
2019-04-28T17:54:06.000Z
Lab_4/4.2_rsa_key.py
saif-mahmud/Crypto-Lab
2807320d7ca389adee86f69f704b9f91f9cd8054
[ "MIT" ]
null
null
null
Lab_4/4.2_rsa_key.py
saif-mahmud/Crypto-Lab
2807320d7ca389adee86f69f704b9f91f9cd8054
[ "MIT" ]
1
2020-01-08T06:48:08.000Z
2020-01-08T06:48:08.000Z
from Crypto.PublicKey import RSA rsa_private_key = open('rsa_key').read() rsa_public_key = open('rsa_key.pub').read() rsa_private_key = RSA.importKey(rsa_private_key) rsa_public_key = RSA.importKey(rsa_public_key) m = 'hello world' print 'Plain Text :', m c = rsa_public_key.encrypt(m, '') print 'Encryption :', c m...
23.5625
48
0.742706
62
377
4.225806
0.370968
0.152672
0.198473
0.099237
0
0
0
0
0
0
0
0
0.119363
377
16
49
23.5625
0.789157
0
0
0
0
0
0.18254
0
0
0
0
0
0
0
null
null
0
0.272727
null
null
0.272727
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
1
0
0
0
0
0
0
0
0
2
027b249e539917230264f31ef50efd6a5ba5cfbf
152
py
Python
scripts/mksprite.py
gasman/kisskill
9f8112a8fb282dc1cf1d0c8ed5f91eacbb59485d
[ "MIT" ]
2
2015-05-26T12:49:13.000Z
2018-09-09T16:43:06.000Z
scripts/mksprite.py
gasman/kisskill
9f8112a8fb282dc1cf1d0c8ed5f91eacbb59485d
[ "MIT" ]
null
null
null
scripts/mksprite.py
gasman/kisskill
9f8112a8fb282dc1cf1d0c8ed5f91eacbb59485d
[ "MIT" ]
null
null
null
from PIL import Image import sys im = Image.open(sys.argv[1]) im = im.convert('1') out = file(sys.argv[2], 'wb') out.write(im.tostring()) out.close()
15.2
29
0.664474
28
152
3.607143
0.607143
0.138614
0
0
0
0
0
0
0
0
0
0.022727
0.131579
152
9
30
16.888889
0.742424
0
0
0
0
0
0.019737
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
028379cfa45fb53ff047496a5881058b1a566269
652
py
Python
shot.py
penguintutor/pico-spacegame
c2b9f5c26287d2e411155e7dc48eb935d7a95af4
[ "MIT" ]
2
2021-10-15T02:49:54.000Z
2021-11-28T01:17:07.000Z
shot.py
penguintutor/pico-spacegame
c2b9f5c26287d2e411155e7dc48eb935d7a95af4
[ "MIT" ]
null
null
null
shot.py
penguintutor/pico-spacegame
c2b9f5c26287d2e411155e7dc48eb935d7a95af4
[ "MIT" ]
2
2021-09-20T23:41:50.000Z
2021-12-03T02:12:51.000Z
import utime from constants import * class Shot: def __init__ (self, display, start_position, color=(255, 255, 255)): self.display = display self.x = start_position[0] self.y = start_position[1] self.color = color def update(self): self.y -= 2 def ...
29.636364
72
0.579755
95
652
3.884211
0.294737
0.238482
0.173442
0.205962
0.352304
0.352304
0.352304
0.352304
0.352304
0.178862
0
0.036093
0.277607
652
22
73
29.636364
0.747346
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.111111
0
0.388889
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
02857489a98d098cae9999b7b3734e8ce25d192b
336
py
Python
tests/test_get_host.py
sasqwatch/yawast
41572108e4d46f76cb83eae6dd3727bc02bd46c7
[ "BSD-3-Clause" ]
null
null
null
tests/test_get_host.py
sasqwatch/yawast
41572108e4d46f76cb83eae6dd3727bc02bd46c7
[ "BSD-3-Clause" ]
null
null
null
tests/test_get_host.py
sasqwatch/yawast
41572108e4d46f76cb83eae6dd3727bc02bd46c7
[ "BSD-3-Clause" ]
null
null
null
from unittest import TestCase from yawast.scanner.plugins.dns import basic class TestGetHost(TestCase): def test_get_host(self): res = basic.get_host("8.8.8.8") self.assertEqual("dns.google", res) def test_get_host_na(self): res = basic.get_host("104.28.27.55") self.assertEq...
22.4
44
0.66369
51
336
4.235294
0.529412
0.12963
0.092593
0.12963
0.175926
0
0
0
0
0
0
0.048689
0.205357
336
14
45
24
0.7603
0
0
0
0
0
0.095238
0
0
0
0
0
0.222222
1
0.222222
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
65f231d4eb765c9f79ed01c640ced418e85556af
1,294
py
Python
src/lib/mine/utility/test_config.py
rdw20170120/workstation
ed19aa930a83885c2a8cb58eb0bb5afe58f95df3
[ "MIT" ]
null
null
null
src/lib/mine/utility/test_config.py
rdw20170120/workstation
ed19aa930a83885c2a8cb58eb0bb5afe58f95df3
[ "MIT" ]
2
2021-04-06T18:07:32.000Z
2021-06-02T01:50:40.000Z
src/lib/mine/utility/test_config.py
rdw20170120/workstation
ed19aa930a83885c2a8cb58eb0bb5afe58f95df3
[ "MIT" ]
null
null
null
#!/usr/bin/env false """TODO: Write """ # Internal packages (absolute references, distributed with Python) # External packages (absolute references, NOT distributed with Python) # Library modules (absolute references, NOT packaged, in project) from utility import my_assert as is_ # Project modules (relative refere...
21.213115
70
0.738022
179
1,294
5.061453
0.256983
0.0883
0.129139
0.09713
0.442605
0.353201
0.304636
0.231788
0.081678
0
0
0
0.173107
1,294
60
71
21.566667
0.846729
0.229521
0
0.333333
0
0
0
0
0
0
0
0.016667
0.366667
1
0.3
false
0
0.033333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
0
0
0
2
65fc9006d7cb7e50657b74dcf647db7eaac2da96
113
py
Python
lang/py/cookbook/v2/source/cb2_10_12_sol_2.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_10_12_sol_2.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_10_12_sol_2.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
from ctypes import oledll dll = oledll[r'C:\Path\To\Some.DLL'] dll.DllRegisterServer() dll.DllUnregisterServer()
22.6
36
0.778761
16
113
5.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.079646
113
4
37
28.25
0.846154
0
0
0
0
0
0.168142
0
0
0
0
0
0
1
0
false
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
0
0
0
0
0
0
0
2
65fed2f9e6e1c3b0f3f4a3ef079c246703a36096
809
py
Python
python/testData/inspections/PyTypeCheckerInspection/ParametrizedBuiltinTypeAndTypingTypeAreEquivalent.py
alexey-anufriev/intellij-community
ffcd46f14e630acdefcc76e2bfc7c43d2449013a
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/PyTypeCheckerInspection/ParametrizedBuiltinTypeAndTypingTypeAreEquivalent.py
alexey-anufriev/intellij-community
ffcd46f14e630acdefcc76e2bfc7c43d2449013a
[ "Apache-2.0" ]
1
2020-07-30T19:04:47.000Z
2020-07-30T19:04:47.000Z
python/testData/inspections/PyTypeCheckerInspection/ParametrizedBuiltinTypeAndTypingTypeAreEquivalent.py
bradleesand/intellij-community
750ff9c10333c9c1278c00dbe8d88c877b1b9749
[ "Apache-2.0" ]
1
2020-10-15T05:56:42.000Z
2020-10-15T05:56:42.000Z
from typing import Type, TypeVar def expects_typing_Type(x: Type[str]): expects_builtin_type(x) expects_builtin_type(<warning descr="Expected type 'Type[str]', got 'Type[int]' instead">int</warning>) def expects_builtin_type(x: type[str]): expects_typing_Type(x) expects_typing_Type(<warning descr="E...
32.36
113
0.739184
120
809
4.733333
0.158333
0.070423
0.077465
0.169014
0.762324
0.59507
0.510563
0.464789
0.429577
0.429577
0
0
0.117429
809
24
114
33.708333
0.795518
0
0
0
0
0
0.243511
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
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
1
0
0
0
0
0
0
0
0
2
5a01fce55d55d163fdacd15d0e10d3b70e40bdc1
290
py
Python
projects/serializers.py
engineer237/Project-Track-Api
505f95d886144bbafd00797b25bd1c8940529e3f
[ "MIT" ]
null
null
null
projects/serializers.py
engineer237/Project-Track-Api
505f95d886144bbafd00797b25bd1c8940529e3f
[ "MIT" ]
null
null
null
projects/serializers.py
engineer237/Project-Track-Api
505f95d886144bbafd00797b25bd1c8940529e3f
[ "MIT" ]
null
null
null
from dataclasses import fields from pyexpat import model from rest_framework import serializers from .models import Project from track.serializers import TrackSerializer class ProjectSerializer(serializers.ModelSerializer): class Meta: model= Project fields = '__all__'
29
53
0.793103
32
290
7.03125
0.5625
0
0
0
0
0
0
0
0
0
0
0
0.168966
290
10
54
29
0.93361
0
0
0
0
0
0.024055
0
0
0
0
0
0
1
0
false
0
0.555556
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
0
0
0
1
0
1
0
0
2
5a07d49e1650a0eca051ea0d3121a181b740f784
606
py
Python
server/githubsrm/administrator/errors.py
Aradhya-Tripathi/githubsrm
86da56079fe61b067b294ca99ea2b28b07d5a06b
[ "MIT" ]
1
2022-03-22T17:24:22.000Z
2022-03-22T17:24:22.000Z
server/githubsrm/administrator/errors.py
Aradhya-Tripathi/githubsrm
86da56079fe61b067b294ca99ea2b28b07d5a06b
[ "MIT" ]
null
null
null
server/githubsrm/administrator/errors.py
Aradhya-Tripathi/githubsrm
86da56079fe61b067b294ca99ea2b28b07d5a06b
[ "MIT" ]
null
null
null
from core.errorfactory import ( AuthenticationErrors, AdminErrors, MaintainerErrors, ProjectErrors, ContributorApprovedError, ContributorNotFoundError, MaintainerNotFoundError, ) class InvalidWebhookError(AuthenticationErrors): ... class ExistingAdminError(AdminErrors): ... cla...
15.947368
53
0.744224
32
606
14.09375
0.59375
0.110865
0
0
0
0
0
0
0
0
0
0
0.169967
606
37
54
16.378378
0.89662
0
0
0.304348
0
0
0
0
0
0
0
0
0
1
0
true
0
0.043478
0
0.347826
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
5a0b69ec3d015ac59f7e37a9497cd393d8ebc157
433
py
Python
project_1__tictcactoe/player_types/Player.py
mulvenstein/cs_AI
1e5680dfc9f9eef0831dcec6ac9c219eafb8e349
[ "MIT" ]
null
null
null
project_1__tictcactoe/player_types/Player.py
mulvenstein/cs_AI
1e5680dfc9f9eef0831dcec6ac9c219eafb8e349
[ "MIT" ]
null
null
null
project_1__tictcactoe/player_types/Player.py
mulvenstein/cs_AI
1e5680dfc9f9eef0831dcec6ac9c219eafb8e349
[ "MIT" ]
null
null
null
class Player: def __init__(self, char='X'): self.kind = 'human' self.char = char def move(self, board): while True: #valid move move = int(input('Your move? ')) if board[move] != "X" and board[move] != "O" and move >= 0 and move <= 9: ret...
33.307692
86
0.508083
59
433
3.661017
0.508475
0.074074
0
0
0
0
0
0
0
0
0
0.014235
0.351039
433
13
87
33.307692
0.75089
0.023095
0
0
0
0
0.048662
0
0
0
0
0
0
1
0.272727
false
0
0
0.090909
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
5a0bbb6d3199fc6f3144143352fcf9afa8e2b6cc
177
py
Python
PYTHON-CURSO EM VIDEO/Desafio 024.py
JaumVitor/HOMEWORK-PYTHON
aff564ac61802c7417d7280a73c1ed4a98978ed3
[ "Apache-2.0" ]
null
null
null
PYTHON-CURSO EM VIDEO/Desafio 024.py
JaumVitor/HOMEWORK-PYTHON
aff564ac61802c7417d7280a73c1ed4a98978ed3
[ "Apache-2.0" ]
null
null
null
PYTHON-CURSO EM VIDEO/Desafio 024.py
JaumVitor/HOMEWORK-PYTHON
aff564ac61802c7417d7280a73c1ed4a98978ed3
[ "Apache-2.0" ]
null
null
null
cidade = str ( input ('Qual cidade você nasceu ? ')).strip().lower().split() cidade = cidade[0] print ('Sua cidade começa com a palavra Santo ? {}'.format('santo' in (cidade)))
44.25
80
0.661017
25
177
4.68
0.76
0
0
0
0
0
0
0
0
0
0
0.006623
0.146893
177
3
81
59
0.768212
0
0
0
0
0
0.412429
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5a0ecef08c9e6f0c31ace8b4dc134306bfc614d1
491
py
Python
institution/migrations/0006_auto_20180509_0858.py
mmesiti/cogs3
c48cd48629570f418b93aec73de49bc2fb59edc2
[ "MIT" ]
1
2020-03-28T23:55:02.000Z
2020-03-28T23:55:02.000Z
institution/migrations/0006_auto_20180509_0858.py
mmesiti/cogs3
c48cd48629570f418b93aec73de49bc2fb59edc2
[ "MIT" ]
150
2018-08-07T09:34:47.000Z
2019-08-15T20:16:11.000Z
institution/migrations/0006_auto_20180509_0858.py
mmesiti/cogs3
c48cd48629570f418b93aec73de49bc2fb59edc2
[ "MIT" ]
10
2018-03-14T22:25:50.000Z
2020-01-09T21:32:22.000Z
# Generated by Django 2.0.2 on 2018-05-09 08:58 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('institution', '0005_institution_identity_provider'), ] operations = [ migrations.RemoveField( model_name='institution', name...
22.318182
62
0.613035
46
491
6.347826
0.608696
0.164384
0.178082
0.205479
0.417808
0.417808
0.417808
0.417808
0
0
0
0.054286
0.287169
491
21
63
23.380952
0.78
0.09165
0
0.4
1
0
0.256757
0.182432
0
0
0
0
0
1
0
false
0
0.066667
0
0.266667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5a15dd762d37da786a05a35e90f2a9009fed0104
8,974
py
Python
forch/radius_datatypes.py
henry54809/forch
100b00d2ecf7aed8c204d8d06419f8add599af95
[ "Apache-2.0" ]
1
2020-03-12T12:17:33.000Z
2020-03-12T12:17:33.000Z
forch/radius_datatypes.py
henry54809/forch
100b00d2ecf7aed8c204d8d06419f8add599af95
[ "Apache-2.0" ]
92
2019-12-13T03:30:35.000Z
2021-11-11T16:16:13.000Z
forch/radius_datatypes.py
henry54809/forch
100b00d2ecf7aed8c204d8d06419f8add599af95
[ "Apache-2.0" ]
7
2020-01-11T14:12:46.000Z
2021-01-25T17:30:55.000Z
"""Radius Attribute Datatypes""" import struct import math from forch.utils import MessageParseError class DataType(): """Parent datatype class, subclass should provide implementation for abstractmethods.""" DATA_TYPE_VALUE = None AVP_HEADER_LEN = 1 + 1 MAX_DATA_LENGTH = 253 MIN_DATA_LENGTH = 1 ...
33.114391
98
0.612213
1,140
8,974
4.570175
0.149123
0.089827
0.077351
0.024568
0.63167
0.595777
0.560269
0.544338
0.544338
0.544338
0
0.007269
0.294852
8,974
270
99
33.237037
0.816056
0.145197
0
0.661017
0
0
0.044884
0
0
0
0
0.003704
0
1
0.20339
false
0
0.016949
0.090395
0.519774
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
5a35972ce2f2289ce3b3579202a3b55abbe711e6
394
py
Python
ngram/__init__.py
msathia/open-tamil
8e98a584dcf56ac8fe7529464114151f7357c746
[ "MIT" ]
1
2020-05-20T13:54:24.000Z
2020-05-20T13:54:24.000Z
ngram/__init__.py
AasaiAlangaram/open-tamil
6679c60148f0dddc287a892b8c9aaf8a159e99f0
[ "MIT" ]
null
null
null
ngram/__init__.py
AasaiAlangaram/open-tamil
6679c60148f0dddc287a892b8c9aaf8a159e99f0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # (C) முத்தையா அண்ணாமலை 2013-2015 # # N-gram language model for Tamil in letters and words # # Ref: "CS 388: Natural Language Processing: N-Gram Language Models", # Raymond J. Mooney, U of Texas, Austin. # Ref: N-gram models https://en.wikipedia.org/wiki/N-gram from . import LetterM...
28.142857
70
0.682741
70
394
3.942857
0.714286
0.072464
0.094203
0
0
0
0
0
0
0
0
0.037267
0.182741
394
14
71
28.142857
0.798137
0.708122
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
0
0
0
2
5a68ccce75a92f6115d20ae9a92c5ba1d2b0ad3c
5,412
py
Python
economic_dispatch/model/bus.py
simcesplatform/economic-dispatch
83bda518eea9ed140fa0a8f0ee6964ff0a23746e
[ "MIT" ]
null
null
null
economic_dispatch/model/bus.py
simcesplatform/economic-dispatch
83bda518eea9ed140fa0a8f0ee6964ff0a23746e
[ "MIT" ]
null
null
null
economic_dispatch/model/bus.py
simcesplatform/economic-dispatch
83bda518eea9ed140fa0a8f0ee6964ff0a23746e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2021 Tampere University and VTT Technical Research Centre of Finland # This software was developed as a part of the ProCemPlus project: https://www.senecc.fi/projects/procemplus # This source code is licensed under the MIT license. See LICENSE in the repository root directory. # Aut...
29.096774
108
0.597376
733
5,412
4.298772
0.255116
0.028562
0.011425
0.019042
0.212314
0.16947
0.139003
0.119327
0.10092
0.052047
0
0.001322
0.301183
5,412
186
109
29.096774
0.831835
0.3568
0
0.053333
0
0
0.015487
0
0
0
0
0
0
1
0.266667
false
0
0.04
0.106667
0.52
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
5a742b487c21df44e97620a91bc83f9269c2e08b
234
py
Python
oosc/oosc/counties/admin.py
C4DLabOrg/da_api
3d876576a189ce35c6b4b2f1c728f4b91e4b2ed0
[ "MIT" ]
null
null
null
oosc/oosc/counties/admin.py
C4DLabOrg/da_api
3d876576a189ce35c6b4b2f1c728f4b91e4b2ed0
[ "MIT" ]
null
null
null
oosc/oosc/counties/admin.py
C4DLabOrg/da_api
3d876576a189ce35c6b4b2f1c728f4b91e4b2ed0
[ "MIT" ]
null
null
null
from django.contrib import admin from oosc.counties.models import Counties # Register your models here. class classAdmin(admin.ModelAdmin): list_display=['county_name','id','lat','lng'] admin.site.register(Counties,classAdmin);
26
49
0.777778
31
234
5.806452
0.709677
0
0
0
0
0
0
0
0
0
0
0
0.098291
234
8
50
29.25
0.853081
0.111111
0
0
0
0
0.092233
0
0
0
0
0
0
1
0
false
0
0.4
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
ce45f8177a1ce211acab51fa813131863de11fbb
2,033
py
Python
release/stubs.min/Autodesk/Revit/DB/__init___parts/FloorType.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Autodesk/Revit/DB/__init___parts/FloorType.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Autodesk/Revit/DB/__init___parts/FloorType.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class FloorType(HostObjAttributes, IDisposable): """ An object that specifies the type of a floor in Autodesk Revit. """ def Dispose(self): """ Dispose(self: Element,A_0: bool) """ pass def getBoundingBox(self, *args): """ getBoundingBox(self: Element,view: View) -> Boundin...
28.236111
221
0.642892
205
2,033
6.082927
0.35122
0.072173
0.038492
0.04571
0.22935
0.22935
0.22935
0.22935
0.22935
0.22935
0
0.000651
0.244958
2,033
71
222
28.633803
0.811726
0.307427
0
0.416667
0
0
0
0
0
0
0
0
0
1
0.291667
false
0.291667
0
0
0.458333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
ce7ffbcddd70cd0e3e0395a6571d09db04a00a1e
296
py
Python
unitology/conf.py
bashu/django-unitology
45dfc2eb514d0ee8984cfc11a14d8a07e374dc63
[ "MIT" ]
9
2017-01-21T16:49:02.000Z
2021-05-21T04:28:40.000Z
unitology/conf.py
bashu/django-unitology
45dfc2eb514d0ee8984cfc11a14d8a07e374dc63
[ "MIT" ]
5
2016-10-24T03:55:51.000Z
2020-07-04T06:00:36.000Z
unitology/conf.py
bashu/django-unitology
45dfc2eb514d0ee8984cfc11a14d8a07e374dc63
[ "MIT" ]
3
2016-08-03T21:28:17.000Z
2020-06-18T15:00:11.000Z
# -*- coding: utf-8 -*- from django.conf import settings # pylint: disable=W0611 from appconf import AppConf from .variables import METRIC class UnitologySettings(AppConf): DATABASE_UNITS = METRIC class Meta: prefix = 'unitology' holder = 'unitology.conf.settings'
18.5
57
0.692568
33
296
6.181818
0.666667
0.107843
0
0
0
0
0
0
0
0
0
0.021552
0.216216
296
15
58
19.733333
0.857759
0.14527
0
0
0
0
0.128
0.092
0
0
0
0
0
1
0
false
0
0.375
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
ce8a516358bb177555c074e4a47aa1769c1e24f4
112
py
Python
distribubot/__init__.py
orionspeakgaming/orionsdistributor
43456d5104ebb4ee5cfa2a6a428065643a0b666d
[ "MIT" ]
4
2020-06-04T02:09:02.000Z
2021-05-23T16:13:22.000Z
distribubot/__init__.py
orionspeakgaming/orionsdistributor
43456d5104ebb4ee5cfa2a6a428065643a0b666d
[ "MIT" ]
null
null
null
distribubot/__init__.py
orionspeakgaming/orionsdistributor
43456d5104ebb4ee5cfa2a6a428065643a0b666d
[ "MIT" ]
7
2020-04-26T16:24:23.000Z
2021-05-29T19:08:55.000Z
""" distribubot.""" from .version import version as __version__ __all__ = [ 'utils', 'distribubot' ]
18.666667
43
0.633929
10
112
6.3
0.7
0
0
0
0
0
0
0
0
0
0
0
0.223214
112
6
44
18.666667
0.724138
0.107143
0
0
0
0
0.170213
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ce9170764921f78a108bca2430b017a3a4932b88
946
py
Python
tests/docs/models.py
OlgaBorisova/django-pgfields
fc21efc116d017f1bf75c88fa3502cc23f8923b3
[ "BSD-3-Clause" ]
1
2015-03-26T09:34:32.000Z
2015-03-26T09:34:32.000Z
tests/docs/models.py
elbaschid/django-pgfields
37915b92349c392ed4980d255225e991be3463d6
[ "BSD-3-Clause" ]
null
null
null
tests/docs/models.py
elbaschid/django-pgfields
37915b92349c392ed4980d255225e991be3463d6
[ "BSD-3-Clause" ]
1
2018-10-23T21:31:29.000Z
2018-10-23T21:31:29.000Z
from __future__ import absolute_import, unicode_literals from django_pg import models class Hobbit(models.Model): name = models.CharField(max_length=50) favorite_foods = models.ArrayField(models.CharField(max_length=100)) created = models.DateTimeField(auto_now_add=True) modified = models.DateTimeFiel...
29.5625
72
0.727273
116
946
5.732759
0.413793
0.135338
0.162406
0.216541
0.421053
0.33985
0.249624
0.249624
0.249624
0.249624
0
0.015075
0.158562
946
31
73
30.516129
0.820352
0
0
0.26087
0
0
0.021142
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.869565
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
ceab335661e6d45439c7faa9a02ce2a3771f5f23
1,092
py
Python
deploy/deploy_tookit/fedvision_deploy_toolkit/_generate_template.py
owlet42/FedVision
87c3fa5aee2a45c7bfd694cba18f398ff135228f
[ "Apache-2.0" ]
80
2020-12-30T13:32:44.000Z
2022-03-04T12:25:20.000Z
deploy/deploy_tookit/fedvision_deploy_toolkit/_generate_template.py
owlet42/FedVision
87c3fa5aee2a45c7bfd694cba18f398ff135228f
[ "Apache-2.0" ]
16
2021-02-18T08:35:32.000Z
2022-01-13T08:04:37.000Z
deploy/deploy_tookit/fedvision_deploy_toolkit/_generate_template.py
owlet42/FedVision
87c3fa5aee2a45c7bfd694cba18f398ff135228f
[ "Apache-2.0" ]
17
2020-12-30T13:43:09.000Z
2022-02-19T06:44:38.000Z
# Copyright (c) 2020 The FedVision Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
29.513514
84
0.738095
152
1,092
5.197368
0.572368
0.075949
0.032911
0.040506
0.070886
0.070886
0
0
0
0
0
0.008762
0.163919
1,092
36
85
30.333333
0.856517
0.588828
0
0
0
0
0.150246
0.059113
0
0
0
0
0
1
0.181818
false
0
0.363636
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
ceda47857f252417f9d299c07c65fb436572f204
647
py
Python
dragg/redis_client.py
apigott/dra
c2f24d9ef6d9d8cb78c5a058574cec8e132afd4f
[ "MIT" ]
2
2021-12-02T09:34:01.000Z
2021-12-26T07:51:31.000Z
dragg/redis_client.py
wuyou33/dragg
c2f24d9ef6d9d8cb78c5a058574cec8e132afd4f
[ "MIT" ]
7
2020-05-09T15:50:10.000Z
2020-11-12T15:58:56.000Z
dragg/redis_client.py
wuyou33/dragg
c2f24d9ef6d9d8cb78c5a058574cec8e132afd4f
[ "MIT" ]
3
2021-03-29T16:00:00.000Z
2021-12-02T09:33:57.000Z
import os import redis class Singleton(type): _instances = {} def __call__(cls): if cls not in cls._instances: cls._instances[cls] = super(Singleton, cls).__call__() return cls._instances[cls] class RedisClient(metaclass=Singleton): def __init__(self): self.pool = re...
24.884615
123
0.641422
76
647
5.171053
0.460526
0.091603
0.114504
0
0
0
0
0
0
0
0
0.002045
0.244204
647
25
124
25.88
0.801636
0
0
0
0
0
0.037094
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
0c6c2b1857f7493d389f5a99235b809245f34827
1,760
py
Python
flask_blog/forms.py
ronan7796/flask-blog
45f943d952e79d051ba9509c36d620c519ef7253
[ "Apache-2.0" ]
null
null
null
flask_blog/forms.py
ronan7796/flask-blog
45f943d952e79d051ba9509c36d620c519ef7253
[ "Apache-2.0" ]
null
null
null
flask_blog/forms.py
ronan7796/flask-blog
45f943d952e79d051ba9509c36d620c519ef7253
[ "Apache-2.0" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, BooleanField from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError from flask_blog.models import User class RegistrationForm(FlaskForm): username = StringField('Username', [DataRequir...
51.764706
117
0.654545
181
1,760
6.309392
0.298343
0.094571
0.052539
0.068301
0.448336
0.398424
0.259194
0.259194
0.25394
0.25394
0
0.013196
0.225
1,760
33
118
53.333333
0.824047
0
0
0.148148
0
0
0.147655
0
0
0
0
0
0
1
0.074074
false
0.296296
0.148148
0
0.703704
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
0c6d7aaf50e5c86261d1a6bf5e4adffae72e3fd8
321
py
Python
branching.py
FriendOfDorothy/twilio-quest
5c7282fd2f82048601ebb0924d87be8ee407f6f5
[ "MIT" ]
8
2019-12-15T22:05:33.000Z
2022-01-14T08:38:27.000Z
branching.py
FriendOfDorothy/twilio-quest
5c7282fd2f82048601ebb0924d87be8ee407f6f5
[ "MIT" ]
2
2020-06-27T22:20:29.000Z
2021-11-07T12:31:37.000Z
branching.py
FriendOfDorothy/twilio-quest
5c7282fd2f82048601ebb0924d87be8ee407f6f5
[ "MIT" ]
3
2020-07-27T02:43:09.000Z
2021-12-17T15:42:07.000Z
import sys def add(x, y): z = int(x) + int(y) if z <= 0: print("You have chosen the path of destitution.") elif z in range(1,101): print("You have chosen the path of plenty.") else: print("You have chosen the path of excess.") return z print(add(sys.argv[1], sys.argv[2]))...
20.0625
57
0.576324
55
321
3.363636
0.527273
0.12973
0.194595
0.291892
0.437838
0.437838
0.437838
0
0
0
0
0.030568
0.286604
321
15
58
21.4
0.777293
0
0
0
0
0
0.342679
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
0.363636
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0c7a0dd07c5acb96d463ccedd71fe11156f2bb04
206
py
Python
utilities.py
SalmanBurhan/PyJackett
5abddca89b523066419292aae9c4b191488235c7
[ "MIT" ]
null
null
null
utilities.py
SalmanBurhan/PyJackett
5abddca89b523066419292aae9c4b191488235c7
[ "MIT" ]
null
null
null
utilities.py
SalmanBurhan/PyJackett
5abddca89b523066419292aae9c4b191488235c7
[ "MIT" ]
null
null
null
def human_readable_size(size, decimal_places=2): for unit in ['B','KB','MB','GB','TB']: if size < 1024.0: break size /= 1024.0 return f"{size:.{decimal_places}f} {unit}"
29.428571
48
0.553398
31
206
3.548387
0.677419
0.2
0.309091
0
0
0
0
0
0
0
0
0.072368
0.262136
206
6
49
34.333333
0.651316
0
0
0
0
0
0.199029
0.121359
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
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
0
0
0
2
0c826edd69ccbf032dcc4365a65fc4916febd65d
8,249
py
Python
polyjit/experiments/sequences/hill_climber.py
PolyJIT/polyjit.experiments
4ac51473a20f86d4b07b598ac4c9b09df0c8fcb6
[ "MIT" ]
null
null
null
polyjit/experiments/sequences/hill_climber.py
PolyJIT/polyjit.experiments
4ac51473a20f86d4b07b598ac4c9b09df0c8fcb6
[ "MIT" ]
null
null
null
polyjit/experiments/sequences/hill_climber.py
PolyJIT/polyjit.experiments
4ac51473a20f86d4b07b598ac4c9b09df0c8fcb6
[ "MIT" ]
null
null
null
#!/usr/bin/env python """This module supplies a function that can generate custom sequences of optimization passes for arbitrary programs. This module provides an implementation of a hill climber algorithm presented by Kulkarni in his paper "Evaluating Heuristic Optimization Phase Order Search Algorithms" (published 2...
36.662222
79
0.661777
1,015
8,249
5.232512
0.234483
0.049708
0.04293
0.02636
0.241951
0.158915
0.11109
0.034645
0.022218
0.022218
0
0.003311
0.26779
8,249
224
80
36.825893
0.875993
0.481513
0
0.089888
1
0
0.094819
0.006539
0
0
0
0
0
1
0.05618
false
0.157303
0.044944
0
0.146067
0.044944
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
0c85ab8a2cc85f5e67d55ac4c6db03d127310baa
174
py
Python
tests/test_gui_config.py
akki2825/CorpusTools
ba236f55266eceb7e719fa36545985d8453953d3
[ "BSD-3-Clause" ]
97
2015-07-06T18:58:43.000Z
2022-03-10T23:00:07.000Z
tests/test_gui_config.py
akki2825/CorpusTools
ba236f55266eceb7e719fa36545985d8453953d3
[ "BSD-3-Clause" ]
443
2015-03-10T21:24:39.000Z
2022-03-22T22:20:13.000Z
tests/test_gui_config.py
akki2825/CorpusTools
ba236f55266eceb7e719fa36545985d8453953d3
[ "BSD-3-Clause" ]
22
2015-07-19T18:56:24.000Z
2020-09-17T17:58:12.000Z
from corpustools.gui.config import * def test_preferences(qtbot, settings): dialog = PreferencesDialog(None, settings) qtbot.addWidget(dialog) dialog.accept()
19.333333
46
0.741379
19
174
6.736842
0.789474
0
0
0
0
0
0
0
0
0
0
0
0.16092
174
8
47
21.75
0.876712
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0c98f2e99f8b3c4beb368e656d31567ddf097c01
225
py
Python
Python/FizzBuzz using list.py
veotani/Hacktoberfest-2020-FizzBuzz
2881cdb8ff2c86a4ace56e6302c57881e0ac891c
[ "Unlicense" ]
80
2020-10-01T00:32:34.000Z
2021-01-08T21:56:09.000Z
Python/FizzBuzz using list.py
veotani/Hacktoberfest-2020-FizzBuzz
2881cdb8ff2c86a4ace56e6302c57881e0ac891c
[ "Unlicense" ]
672
2020-09-30T22:53:47.000Z
2020-11-01T12:39:59.000Z
Python/FizzBuzz using list.py
veotani/Hacktoberfest-2020-FizzBuzz
2881cdb8ff2c86a4ace56e6302c57881e0ac891c
[ "Unlicense" ]
618
2020-09-30T22:21:12.000Z
2020-10-31T21:28:06.000Z
a=[] for x in range(1,101): if x%3==0: a.append('Fizz') elif x%5==0: a.append('Buzz') elif x%3==0 and x%5==0: a.append("FizzBuzz") else: a.append(x) print(*a)
16.071429
28
0.426667
38
225
2.526316
0.5
0.291667
0.25
0.083333
0.208333
0
0
0
0
0
0
0.085714
0.377778
225
13
29
17.307692
0.6
0
0
0
0
0
0.071111
0
0
0
0
0
0
1
0
false
0
0
0
0
0.090909
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0ca4764e629d045632b6d5a90b6b7fef4c1a375f
282
py
Python
PhythonExercicios/ex035.py
Luis-Otavio-Araujo/Curso-de-Python
1283b26ee7057d61043cfbab53841bac5e1d4487
[ "MIT" ]
1
2021-07-31T18:57:46.000Z
2021-07-31T18:57:46.000Z
PhythonExercicios/ex035.py
Luis-Otavio-Araujo/Curso-de-Python
1283b26ee7057d61043cfbab53841bac5e1d4487
[ "MIT" ]
null
null
null
PhythonExercicios/ex035.py
Luis-Otavio-Araujo/Curso-de-Python
1283b26ee7057d61043cfbab53841bac5e1d4487
[ "MIT" ]
null
null
null
r1 = float(input('1° segmento: ')) r2 = float(input('2° segmento: ')) r3 = float(input('3° segmento: ')) print('==' * 20) if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r2 + r1: print('Os segmentos acima FORMAM um triângulo!') else: print('Os segmentos NÃO FORMAM um triângulo!')
35.25
52
0.617021
47
282
3.765957
0.468085
0.169492
0.180791
0
0
0
0
0
0
0
0
0.075221
0.198582
282
8
53
35.25
0.69469
0
0
0
0
0
0.413428
0
0
0
0
0
0
1
0
false
0
0
0
0
0.375
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
0
0
0
2
0ca848445ab9cac568ab7535c485218e5be469dc
5,098
py
Python
libs/configs/VOC2007/cfgs_res50_voc07_v2.py
DetectionTeamUCAS/RetinaNet_Tensorflow
bf05e25a11b420649f1c3f8bc58af66ba7bdf5c8
[ "MIT" ]
55
2019-05-23T02:42:48.000Z
2021-11-22T08:18:46.000Z
libs/configs/VOC2007/cfgs_res50_voc07_v2.py
DetectionTeamUCAS/RetinaNet_Tensorflow
bf05e25a11b420649f1c3f8bc58af66ba7bdf5c8
[ "MIT" ]
7
2019-06-05T11:29:14.000Z
2020-12-12T11:44:49.000Z
libs/configs/VOC2007/cfgs_res50_voc07_v2.py
DetectionTeamUCAS/RetinaNet_Tensorflow
bf05e25a11b420649f1c3f8bc58af66ba7bdf5c8
[ "MIT" ]
20
2019-06-01T01:17:14.000Z
2021-04-29T15:08:02.000Z
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import os import tensorflow as tf import math """ cls : aeroplane|| Recall: 0.9438596491228071 || Precison: 0.03152836380684482|| AP: 0.7773597235133686 cls : person|| Recall: 0.9754858657243817 || Precison: 0.021128815456515397||...
44.330435
106
0.701648
679
5,098
5.079529
0.427099
0.040591
0.026095
0.012177
0.054509
0.04639
0.022615
0.022615
0.022615
0.022615
0
0.282416
0.116516
5,098
114
107
44.719298
0.483348
0.130051
0
0
0
0
0.122681
0.045531
0
0
0
0
0
1
0
false
0
0.059701
0
0.059701
0.044776
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0cad262c61a69fa6da9d39d9dc1cbdf41eb2f0f2
613
py
Python
baghera_tool/cli.py
stracquadaniolab/baghera
fbedcd247ade810df65d1cc8e1bf29067783a76f
[ "MIT" ]
9
2019-04-06T13:13:08.000Z
2022-01-22T02:01:48.000Z
baghera_tool/cli.py
stracquadaniolab/baghera
fbedcd247ade810df65d1cc8e1bf29067783a76f
[ "MIT" ]
4
2020-08-02T13:13:50.000Z
2022-01-28T20:14:52.000Z
baghera_tool/cli.py
stracquadaniolab/baghera
fbedcd247ade810df65d1cc8e1bf29067783a76f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import logging import argh import sys import os import inspect import datetime from baghera_tool.logging import setup_console_logger from baghera_tool import preprocess as pre from baghera_tool import command as cmd def main(): setup_console_logger() """ command dispatcher """ ...
19.15625
53
0.597064
66
613
5.227273
0.560606
0.095652
0.130435
0.121739
0
0
0
0
0
0
0
0
0.33279
613
31
54
19.774194
0.843521
0.032626
0
0
0
0
0.01487
0
0
0
0
0
0
1
0.055556
true
0
0.5
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
0caf4e6f12e8084a7155710c217af536b110c455
914
py
Python
arekit/contrib/networks/context/configurations/bilstm.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
18
2019-12-14T18:43:11.000Z
2022-03-21T05:55:36.000Z
arekit/contrib/networks/context/configurations/bilstm.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
284
2020-08-08T20:52:44.000Z
2022-03-31T05:26:20.000Z
arekit/contrib/networks/context/configurations/bilstm.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
1
2021-08-07T13:17:43.000Z
2021-08-07T13:17:43.000Z
import tensorflow as tf from arekit.contrib.networks.context.configurations.rnn import RNNConfig from arekit.contrib.networks.tf_helpers.cell_types import CellTypes class BiLSTMConfig(RNNConfig): __lstm_cell_initializer = tf.keras.initializers.glorot_normal() def __init__(self): super(BiLSTMConfig, ...
35.153846
99
0.7593
108
914
6.101852
0.5
0.180577
0.223065
0.245827
0
0
0
0
0
0
0
0.015464
0.150985
914
25
100
36.56
0.833763
0.02954
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.1875
0.0625
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0cb3d4a6c7817d1d7790c5cb63f6b58a36c79ec1
564
py
Python
players/expectimax_weighted_probabilities_with_filter_player.py
nazaruka/Catan-AI
d7c91c7011ac82ad41d3b80a29c73c23ab7b579e
[ "MIT" ]
9
2019-07-16T15:28:00.000Z
2022-02-08T00:53:39.000Z
players/expectimax_weighted_probabilities_with_filter_player.py
nazaruka/Catan-AI
d7c91c7011ac82ad41d3b80a29c73c23ab7b579e
[ "MIT" ]
2
2020-01-09T15:27:58.000Z
2020-09-23T18:04:41.000Z
players/expectimax_weighted_probabilities_with_filter_player.py
nazaruka/Catan-AI
d7c91c7011ac82ad41d3b80a29c73c23ab7b579e
[ "MIT" ]
5
2019-08-07T16:51:38.000Z
2021-05-06T04:01:32.000Z
from players.expectimax_weighted_probabilities_player import ExpectimaxWeightedProbabilitiesPlayer from players.filters import create_bad_robber_placement_and_monte_carlo_filter class ExpectimaxWeightedProbabilitiesWithFilterPlayer(ExpectimaxWeightedProbabilitiesPlayer): def __init__(self, seed=None, timeout_seco...
56.4
119
0.801418
56
564
7.517857
0.571429
0.099762
0.071259
0.114014
0.204276
0.204276
0.204276
0.204276
0
0
0
0.008333
0.148936
564
9
120
62.666667
0.86875
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
0cb3fcbf3fd7d1e1567ed490a588cd3334e6f1e2
803
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/config/urls.py
ghn/django-template
c86dec419e39ab706ec88b99de0e90338a8f4881
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/config/urls.py
ghn/django-template
c86dec419e39ab706ec88b99de0e90338a8f4881
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/config/urls.py
ghn/django-template
c86dec419e39ab706ec88b99de0e90338a8f4881
[ "MIT" ]
null
null
null
import django.views.static from django.conf import settings from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.urls import include, path from django.views.generic import TemplateView admin.autodiscover() urlpatterns = [ path('', TemplateView.as_view(te...
30.884615
70
0.694894
92
803
5.913043
0.434783
0.091912
0.0625
0
0
0
0
0
0
0
0
0
0.169365
803
25
71
32.12
0.815592
0
0
0.090909
0
0
0.09589
0
0
0
0
0
0
0
null
null
0
0.318182
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
0cc0888db352e48fb775766d13540579d9443f3f
284
py
Python
interview_challenges/barclays_codility_test/question_1.py
noelevans/playground
da529e967a15bcb217fff091ac0ec5c4dc1821ce
[ "MIT" ]
1
2015-04-28T20:36:57.000Z
2015-04-28T20:36:57.000Z
interview_challenges/barclays_codility_test/question_1.py
noelevans/playground
da529e967a15bcb217fff091ac0ec5c4dc1821ce
[ "MIT" ]
2
2021-02-03T21:05:54.000Z
2021-03-23T09:25:43.000Z
interview_challenges/barclays_codility_test/question_1.py
noelevans/playground
da529e967a15bcb217fff091ac0ec5c4dc1821ce
[ "MIT" ]
null
null
null
import itertools def solution(N): # write your code in Python 2.7 nums = [int(v) for v in str(N)] return len(set(itertools.permutations(nums))) def main(): print solution(1213) print solution(0) print solution(99999) if __name__ == '__main__': main()
16.705882
49
0.644366
41
284
4.268293
0.682927
0.222857
0
0
0
0
0
0
0
0
0
0.055046
0.232394
284
16
50
17.75
0.747706
0.102113
0
0
0
0
0.031621
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0.3
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
1
0
0
0
0
0
0
0
0
2
0cc604d5a99a295b391ac29587c1187524311d54
108
py
Python
ejercicios_resueltos/t10/t10ejer05.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
ejercicios_resueltos/t10/t10ejer05.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
ejercicios_resueltos/t10/t10ejer05.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
import numpy as np tablero = np.zeros((8, 8)) tablero[1::2, ::2] = 1 tablero[::2, 1::2] = 1 print(tablero)
15.428571
26
0.601852
21
108
3.095238
0.47619
0.092308
0
0
0
0
0
0
0
0
0
0.111111
0.166667
108
7
27
15.428571
0.611111
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0ccac73386c23b079ed37687a18e2396bc2db621
312
py
Python
torch2trt/plugins/globals.py
huliang2016/torch2trt_dynamic
aa55f354a742d26272eae93934d0cff7cd946cbf
[ "MIT" ]
null
null
null
torch2trt/plugins/globals.py
huliang2016/torch2trt_dynamic
aa55f354a742d26272eae93934d0cff7cd946cbf
[ "MIT" ]
null
null
null
torch2trt/plugins/globals.py
huliang2016/torch2trt_dynamic
aa55f354a742d26272eae93934d0cff7cd946cbf
[ "MIT" ]
null
null
null
import os import os.path as osp dir_path = osp.join( os.path.expanduser('~'), "space/trt_plugin/build/lib/") if not osp.exists(dir_path): if "AMIRSTAN_LIBRARY_PATH" in os.environ: dir_path = os.environ["AMIRSTAN_LIBRARY_PATH"] else: dir_path = os.path.dirname(os.path.realpath(__file__))
34.666667
76
0.705128
49
312
4.22449
0.489796
0.115942
0.183575
0
0
0
0
0
0
0
0
0
0.157051
312
9
77
34.666667
0.787072
0
0
0
0
0
0.223642
0.220447
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
0
0
0
2
0cd177ca138114c58b21d952bd5201b28d1af91f
414
py
Python
tinkoff_voicekit_client/speech_utils/user_utils.py
nikolai-semenov/voicekit_client_python
208cb615a00585e926e558617bf12a1f79d55e9f
[ "Apache-2.0" ]
19
2020-01-14T12:49:53.000Z
2021-12-22T11:34:22.000Z
tinkoff_voicekit_client/speech_utils/user_utils.py
nikolai-semenov/voicekit_client_python
208cb615a00585e926e558617bf12a1f79d55e9f
[ "Apache-2.0" ]
1
2021-07-26T22:09:55.000Z
2021-07-26T22:09:55.000Z
tinkoff_voicekit_client/speech_utils/user_utils.py
nikolai-semenov/voicekit_client_python
208cb615a00585e926e558617bf12a1f79d55e9f
[ "Apache-2.0" ]
7
2020-05-07T17:38:50.000Z
2021-07-26T16:28:45.000Z
def get_x_request_id(metadata): """ Returning x-request-id from response metadata :param metadata: response metadata from one of VoiceKit methods return: None if x-request-id don't contain in metadata """ x_request_id = tuple(filter(lambda x: x[0] == 'x-request-id', metadata)) if x_requ...
31.846154
76
0.676329
64
414
4.171875
0.40625
0.269663
0.337079
0.134831
0.11236
0.11236
0
0
0
0
0
0.009434
0.231884
414
12
77
34.5
0.830189
0.405797
0
0
0
0
0.054299
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.5
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2