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
d5e0af8f7664b4a3e325a4fae5620a00d8307d09
308
py
Python
carla/recourse_methods/catalog/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
140
2021-08-03T21:53:32.000Z
2022-03-20T08:52:02.000Z
carla/recourse_methods/catalog/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
54
2021-03-07T18:22:16.000Z
2021-08-03T12:06:31.000Z
carla/recourse_methods/catalog/__init__.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
16
2021-08-23T12:14:58.000Z
2022-03-01T00:52:58.000Z
# flake8: noqa from .actionable_recourse import ActionableRecourse from .cchvae import CCHVAE from .cem import CEM from .clue import Clue from .crud import CRUD from .dice import Dice from .face import Face from .growing_spheres import GrowingSpheres from .revise import Revise from .wachter import Wachter
23.692308
51
0.818182
44
308
5.681818
0.409091
0
0
0
0
0
0
0
0
0
0
0.003788
0.142857
308
12
52
25.666667
0.943182
0.038961
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
d5ebcfa0103a792d49b1d3e03f057af9cfaf776c
4,771
py
Python
myapp/RankingPortal.py
abars/illustbook
3e790a688c19205b7384cc5815ca76c23b88f09a
[ "MIT" ]
3
2016-06-16T20:11:45.000Z
2022-01-27T04:23:09.000Z
myapp/RankingPortal.py
abars/illustbook
3e790a688c19205b7384cc5815ca76c23b88f09a
[ "MIT" ]
1
2017-10-23T00:23:13.000Z
2017-10-23T00:23:13.000Z
myapp/RankingPortal.py
abars/illustbook
3e790a688c19205b7384cc5815ca76c23b88f09a
[ "MIT" ]
null
null
null
#!-*- coding:utf-8 -*- #!/usr/bin/env python import cgi import os import sys import re import datetime from google.appengine.ext import webapp import template_select from google.appengine.api import users from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.ext import db from google.appen...
32.455782
78
0.826661
643
4,771
6.03888
0.251944
0.185424
0.029359
0.016997
0.050476
0
0
0
0
0
0
0.001894
0.114651
4,771
146
79
32.678082
0.917377
0.008594
0
0
0
0
0.027496
0
0
0
0
0
0
1
0.007576
false
0
0.69697
0
0.712121
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
d5f1294c2a8c1b0f43871021bf9c1e543daa6ea9
5,202
py
Python
pystachio/typing.py
jmcrawford45/pystachio
43acf709464e47ab0f40b26ec3b9dbbdb4e2ef12
[ "MIT" ]
73
2015-01-15T22:47:40.000Z
2021-11-01T14:43:32.000Z
pystachio/typing.py
jmcrawford45/pystachio
43acf709464e47ab0f40b26ec3b9dbbdb4e2ef12
[ "MIT" ]
27
2015-02-24T22:43:35.000Z
2022-01-28T00:21:55.000Z
pystachio/typing.py
jmcrawford45/pystachio
43acf709464e47ab0f40b26ec3b9dbbdb4e2ef12
[ "MIT" ]
21
2015-02-24T21:27:08.000Z
2021-11-01T14:43:37.000Z
from .naming import frozendict class TypeCheck(object): """ Encapsulate the results of a type check pass. """ class Error(Exception): pass @staticmethod def success(): return TypeCheck(True, "") @staticmethod def failure(msg): return TypeCheck(False, msg) def __init__(self, success,...
29.061453
88
0.678777
635
5,202
5.35748
0.214173
0.053498
0.021164
0.014991
0.153145
0.128748
0.051734
0.051734
0.051734
0.051734
0
0.000742
0.222991
5,202
178
89
29.224719
0.84092
0.221261
0
0.220183
0
0
0.041275
0
0
0
0
0
0.018349
1
0.211009
false
0.009174
0.027523
0.055046
0.522936
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
d5f28f74e9d8f137a4874cbd2a6c528f8ac2a125
844
py
Python
fitbit_tests/__init__.py
salvador-moreno/python-fitbit
8d92d577288fee81356d0ac418d67abf084df420
[ "Apache-2.0" ]
536
2015-01-06T15:22:42.000Z
2022-03-30T16:12:04.000Z
fitbit_tests/__init__.py
salvador-moreno/python-fitbit
8d92d577288fee81356d0ac418d67abf084df420
[ "Apache-2.0" ]
107
2015-01-05T14:01:16.000Z
2022-03-27T13:30:21.000Z
fitbit_tests/__init__.py
salvador-moreno/python-fitbit
8d92d577288fee81356d0ac418d67abf084df420
[ "Apache-2.0" ]
333
2015-01-12T13:45:07.000Z
2022-03-08T21:48:04.000Z
import unittest from .test_exceptions import ExceptionTest from .test_auth import Auth2Test from .test_api import ( APITest, CollectionResourceTest, DeleteCollectionResourceTest, ResourceAccessTest, SubscriptionsTest, PartnerAPITest ) def all_tests(consumer_key="", consumer_secret="", user_key...
33.76
84
0.785545
80
844
8.1875
0.35
0.146565
0.244275
0.354198
0
0
0
0
0
0
0
0.002706
0.124408
844
24
85
35.166667
0.883627
0
0
0
0
0
0
0
0
0
0
0
0
1
0.045455
false
0
0.181818
0
0.272727
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d5f4c4dd189a66e7d415f897bc149a2435e62ee7
114
py
Python
factorialDigitSum.py
vega0604/Project-Euler
dfccfa6399d8a02ba9473dc6ba770958a23a0378
[ "MIT" ]
null
null
null
factorialDigitSum.py
vega0604/Project-Euler
dfccfa6399d8a02ba9473dc6ba770958a23a0378
[ "MIT" ]
null
null
null
factorialDigitSum.py
vega0604/Project-Euler
dfccfa6399d8a02ba9473dc6ba770958a23a0378
[ "MIT" ]
null
null
null
from math import factorial num = factorial(100) sumOfDigits = sum([int(x) for x in str(num)]) print(sumOfDigits)
19
45
0.736842
18
114
4.666667
0.777778
0
0
0
0
0
0
0
0
0
0
0.030612
0.140351
114
6
46
19
0.826531
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
91000d3bacf091daffe3e6c0c9a9720ded567dd5
545
py
Python
src/pcb/common.py
paulo-raca/PyPcb
cf768e90a643996fcf9ef1ce013d65aa7e4475a4
[ "Unlicense" ]
2
2021-08-25T10:50:01.000Z
2021-12-24T03:09:29.000Z
src/pcb/common.py
paulo-raca/PyPcb
cf768e90a643996fcf9ef1ce013d65aa7e4475a4
[ "Unlicense" ]
null
null
null
src/pcb/common.py
paulo-raca/PyPcb
cf768e90a643996fcf9ef1ce013d65aa7e4475a4
[ "Unlicense" ]
null
null
null
class PcbObject: def __init__(self, name=None, parent=None): self._parent = parent self._name = name or self.__class__.__name__ def symbol_prefix(self): return self.__class__.__name__.upper().strip("_") def __str__(self): pretty_path = self._name current = self._par...
27.25
59
0.607339
62
545
4.758065
0.387097
0.135593
0.088136
0
0
0
0
0
0
0
0
0
0.302752
545
19
60
28.684211
0.773684
0
0
0
0
0
0.00367
0
0
0
0
0
0
1
0.266667
false
0
0
0.133333
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
910441d94eedf4da99aa223e52c35d4939333c49
3,305
py
Python
thirdparty/org/apache/arrow/flatbuf/RecordBatch.py
mrocklin/pygdf
2de9407427da9497ebdf8951a12857be0fab31bb
[ "Apache-2.0" ]
5
2018-10-17T20:28:42.000Z
2022-02-15T17:33:01.000Z
thirdparty/org/apache/arrow/flatbuf/RecordBatch.py
mrocklin/pygdf
2de9407427da9497ebdf8951a12857be0fab31bb
[ "Apache-2.0" ]
19
2018-07-18T07:15:44.000Z
2021-02-22T17:00:18.000Z
thirdparty/org/apache/arrow/flatbuf/RecordBatch.py
mrocklin/pygdf
2de9407427da9497ebdf8951a12857be0fab31bb
[ "Apache-2.0" ]
2
2020-05-01T09:54:34.000Z
2021-04-17T10:57:07.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: flatbuf import flatbuffers # /// A data header describing the shared memory layout of a "record" or "row" # /// batch. Some systems call this a "row batch" internally and others a "record # /// batch". class RecordBatch(object): __...
38.882353
143
0.674433
411
3,305
5.3309
0.318735
0.044728
0.100411
0.14377
0.385212
0.349612
0.273391
0.273391
0.273391
0.273391
0
0.014431
0.224206
3,305
84
144
39.345238
0.840094
0.247504
0
0.415094
1
0
0.001622
0
0
0
0
0
0
1
0.264151
false
0
0.056604
0.056604
0.566038
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
91072471a0618a5e7e71beda56e91352b54bc45f
77,641
py
Python
pysnmp-with-texts/HUAWEI-TUNNEL-TE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/HUAWEI-TUNNEL-TE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/HUAWEI-TUNNEL-TE-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 HUAWEI-TUNNEL-TE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-TUNNEL-TE-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:49:13 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
149.023033
7,230
0.777875
9,160
77,641
6.593122
0.060262
0.061398
0.107446
0.010862
0.569768
0.445581
0.390492
0.361499
0.34557
0.332224
0
0.069442
0.087093
77,641
520
7,231
149.309615
0.782615
0.004302
0
0.02544
0
0.066536
0.28764
0.030001
0
0
0
0
0
1
0
false
0
0.021526
0
0.021526
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
91138e7c9e8130c69c0dee67b6ad2d1b8a55a722
515
py
Python
ims/trashcan/events.py
imsweb/ims.trashcan
e854453d293ba78231aa079a204204772be536de
[ "MIT" ]
null
null
null
ims/trashcan/events.py
imsweb/ims.trashcan
e854453d293ba78231aa079a204204772be536de
[ "MIT" ]
null
null
null
ims/trashcan/events.py
imsweb/ims.trashcan
e854453d293ba78231aa079a204204772be536de
[ "MIT" ]
null
null
null
import plone.api def trashEventHandler(ob, event): """ Item is deleted - trash it!""" try: can = plone.api.portal.get_tool('portal_trash_can') except plone.api.exc.InvalidParameterError: pass # not installed except plone.api.exc.CannotGetPortalError: pass # portal i...
21.458333
60
0.601942
60
515
5.116667
0.516667
0.104235
0.091205
0.110749
0.156352
0.156352
0
0
0
0
0
0
0.28932
515
23
61
22.391304
0.838798
0.194175
0
0.285714
0
0
0.043011
0
0
0
0
0
0
1
0.214286
false
0.285714
0.071429
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
911394692be63c3c9c9a2dab798f2c04e064f2d1
730
py
Python
plugin/python_reference/__init__.py
rbreu/krita-plugin-python-reference
e28f766d4542acf0582fea2befcdae4e603c2801
[ "MIT" ]
8
2018-12-25T09:09:27.000Z
2022-01-15T18:44:04.000Z
plugin/python_reference/__init__.py
rbreu/krita-plugin-python-reference
e28f766d4542acf0582fea2befcdae4e603c2801
[ "MIT" ]
null
null
null
plugin/python_reference/__init__.py
rbreu/krita-plugin-python-reference
e28f766d4542acf0582fea2befcdae4e603c2801
[ "MIT" ]
2
2019-01-11T22:14:37.000Z
2020-07-13T08:39:31.000Z
import krita from .widgets import PythonReferenceDialog class PythonReferenceExtension(krita.Extension): def __init__(self, parent): super().__init__(parent) self.parent = parent def setup(self): pass def createActions(self, window): action = window.createAction( ...
25.172414
72
0.690411
70
730
7
0.471429
0.106122
0.065306
0
0
0
0
0
0
0
0
0
0.212329
730
28
73
26.071429
0.852174
0
0
0
0
0
0.067123
0
0
0
0
0
0
1
0.210526
false
0.052632
0.105263
0
0.368421
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
9119c63c9baf742b08afa5e184f46daa6536d861
2,260
py
Python
.leetcode/781.rabbits-in-forest.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/781.rabbits-in-forest.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/781.rabbits-in-forest.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=781 lang=python3 # # [781] Rabbits in Forest # # https://leetcode.com/problems/rabbits-in-forest/description/ # # algorithms # Medium (55.99%) # Likes: 563 # Dislikes: 446 # Total Accepted: 32.1K # Total Submissions: 57.5K # Testcase Example: '[1,1,2]' # # There is a forest with an unknown ...
19.824561
78
0.611947
336
2,260
4.092262
0.41369
0.017455
0.008727
0.014545
0.085818
0.053818
0
0
0
0
0
0.049795
0.24469
2,260
114
79
19.824561
0.755712
0.59469
0
0.322581
0
0
0.144038
0
0
0
0
0
0
1
0.032258
false
0.064516
0.032258
0
0.129032
0.516129
0
0
0
null
0
0
0
0
0
0
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
1
0
2
911de0b793756e2794329e46f2762043bbe6e0cf
751
py
Python
app_no_js/code/app/__init__.py
mellemahp/python_app_template
cee503d32054629d9b67ce6dea67e7ea0928aafa
[ "MIT" ]
1
2020-11-03T17:35:07.000Z
2020-11-03T17:35:07.000Z
app_no_js/code/app/__init__.py
mellemahp/python_app_template
cee503d32054629d9b67ce6dea67e7ea0928aafa
[ "MIT" ]
2
2020-02-05T05:05:42.000Z
2021-05-11T03:31:52.000Z
app_no_js/code/app/__init__.py
mellemahp/python_app_template
cee503d32054629d9b67ce6dea67e7ea0928aafa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """/app/__init__.py Description: Application factory for Template app Project: Python App Template Author: Hunter Mellema Date: 1/20/2020 """ #=== Start imports ===# # third party from flask import Flask # standard library # local imports from config import config #...
20.861111
68
0.672437
102
751
4.852941
0.696078
0.044444
0
0
0
0
0
0
0
0
0
0.015203
0.211718
751
36
69
20.861111
0.820946
0.697736
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
91230742303998f1ba92d638af0efb38c0bb0840
25,303
py
Python
python/dazl/ledger/__init__.py
digital-asset/dazl-client
5d54edaea26d7704cc8d73e5945b37ed2806265b
[ "Apache-2.0" ]
8
2019-09-08T09:41:03.000Z
2022-02-19T12:54:30.000Z
python/dazl/ledger/__init__.py
digital-asset/dazl-client
5d54edaea26d7704cc8d73e5945b37ed2806265b
[ "Apache-2.0" ]
55
2019-05-30T23:00:31.000Z
2022-01-24T01:51:32.000Z
python/dazl/ledger/__init__.py
digital-asset/dazl-client
5d54edaea26d7704cc8d73e5945b37ed2806265b
[ "Apache-2.0" ]
9
2019-06-30T18:15:27.000Z
2021-12-03T10:15:27.000Z
# Copyright (c) 2017-2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 """ This module contains the types needed to submit commands to and read events from a Daml `gRPC Ledger API <https://docs.daml.com/app-dev/ledger-api.html>`_ or `HTTP JSON API <h...
40.745572
102
0.65925
3,288
25,303
5.003954
0.131387
0.006199
0.013128
0.030754
0.679998
0.663709
0.641464
0.633745
0.625418
0.609858
0
0.001323
0.283326
25,303
620
103
40.81129
0.905978
0.728412
0
0.302521
0
0
0.055988
0.006026
0
0
0
0
0
1
0.252101
false
0
0.05042
0
0.336134
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
91258552d70610ee0a81bbb58a309ea69b28ea9e
75
py
Python
pydesk/__init__.py
Adereso1/py-desk
913d1b0e887d7cf6487077c9071c563d637287c6
[ "MIT" ]
null
null
null
pydesk/__init__.py
Adereso1/py-desk
913d1b0e887d7cf6487077c9071c563d637287c6
[ "MIT" ]
null
null
null
pydesk/__init__.py
Adereso1/py-desk
913d1b0e887d7cf6487077c9071c563d637287c6
[ "MIT" ]
1
2021-11-25T14:42:01.000Z
2021-11-25T14:42:01.000Z
from pydesk.desk_client import DeskClient __all__ = [ 'DeskClient' ]
10.714286
41
0.72
8
75
6.125
0.875
0
0
0
0
0
0
0
0
0
0
0
0.2
75
6
42
12.5
0.816667
0
0
0
0
0
0.133333
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
913fd25038a8c16172ff95763a257cf7fd2e3221
8,520
py
Python
pyeccodes/defs/grib1/2_98_213_table.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
7
2020-04-14T09:41:17.000Z
2021-08-06T09:38:19.000Z
pyeccodes/defs/grib1/2_98_213_table.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
null
null
null
pyeccodes/defs/grib1/2_98_213_table.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
3
2020-04-30T12:44:48.000Z
2020-12-15T08:40:26.000Z
def load(h): return ({'abbr': 1, 'code': 1, 'title': 'SPPT1 Random pattern 1 for sppt', 'units': 'dimensionless'}, {'abbr': 2, 'code': 2, 'title': 'SPPT2 Random pattern 2 for sppt', 'units': 'dimensionless'}, {'abb...
38.378378
63
0.439085
769
8,520
4.864759
0.221066
0.191125
0.317562
0.227212
0.492114
0.445335
0
0
0
0
0
0.101312
0.418427
8,520
221
64
38.552036
0.653683
0
0
0.244344
0
0
0.439202
0
0
0
0
0
0
1
0.004525
false
0
0
0.004525
0.00905
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
91409b4a682ca1c5c1dd362900787953111b7916
982
py
Python
python_src/dimension.py
williamctburke/Dimension
7575ccc6cdce71a80ff3e95cb5836db15dcb0658
[ "MIT" ]
null
null
null
python_src/dimension.py
williamctburke/Dimension
7575ccc6cdce71a80ff3e95cb5836db15dcb0658
[ "MIT" ]
null
null
null
python_src/dimension.py
williamctburke/Dimension
7575ccc6cdce71a80ff3e95cb5836db15dcb0658
[ "MIT" ]
1
2021-11-03T07:55:21.000Z
2021-11-03T07:55:21.000Z
class Dimension: sample_count = 100000 def __init__(self, name, dim, tol, sigma=3, dist = "normal", shift = 0): # basic attributes self.name = name self.dim = dim self.tol = tol if sigma == None: sigma = 3 self.sigma = sigma if self.tol != None...
32.733333
86
0.568228
131
982
4.122137
0.351145
0.051852
0.044444
0
0
0
0
0
0
0
0
0.015314
0.335031
982
29
87
33.862069
0.811639
0.07332
0
0
0
0
0.039691
0
0
0
0
0
0
1
0.214286
false
0
0
0.107143
0.392857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
914556aa55a1357f5ab8f2187966c9948c71597c
693
py
Python
examples/metagen/get_chromomes.py
neurospin/rql_download
5a847fd9323dc92fa1faf6cbadb62dc514834e40
[ "CECILL-B" ]
null
null
null
examples/metagen/get_chromomes.py
neurospin/rql_download
5a847fd9323dc92fa1faf6cbadb62dc514834e40
[ "CECILL-B" ]
6
2016-03-21T12:44:55.000Z
2019-02-19T10:39:51.000Z
examples/metagen/get_chromomes.py
neurospin/rql_download
5a847fd9323dc92fa1faf6cbadb62dc514834e40
[ "CECILL-B" ]
7
2016-02-09T08:09:30.000Z
2019-02-18T16:53:46.000Z
""" Get chromosomes =============== Credit: A Grigis In this tutorial we will send a request to a PIWS instance that contains a genomic reference. """ # Imports from pprint import pprint from cwbrowser import CWInstanceConnection from cwbrowser.utils import ask_credential # Define CubicWeb service url url = "https:...
22.354839
72
0.759019
94
693
5.574468
0.617021
0.074427
0.072519
0
0
0
0
0
0
0
0
0
0.150072
693
30
73
23.1
0.889643
0.445887
0
0
0
0
0.212938
0
0
0
0
0
0
1
0
false
0.222222
0.333333
0
0.333333
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
914abb8f64ae36bbb92d74a3ed34e1337f556564
2,576
py
Python
begin-python/cp2/chapter2.py
Jocs/reading-notes
26b8331877a2de034b8860bc3e3967893112d52d
[ "MIT" ]
3
2021-08-04T07:59:48.000Z
2022-03-26T23:58:17.000Z
begin-python/cp2/chapter2.py
Jocs/reading-notes
26b8331877a2de034b8860bc3e3967893112d52d
[ "MIT" ]
null
null
null
begin-python/cp2/chapter2.py
Jocs/reading-notes
26b8331877a2de034b8860bc3e3967893112d52d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf8 -*- # ##第二章:列表和元组 # ###2.1 序列的操作 fourth = raw_input('Year: ')[3] print fourth # 分片 number = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] partial = number[2:-2] print partial print number[-3:] # 复制序列 anotherNumber = number[:] print anotherNumber # 步长 print number[::2] # 序列相加 number2 = [1, ...
16.512821
65
0.617236
379
2,576
4.184697
0.385224
0.015132
0.020807
0.017654
0.031526
0.018285
0
0
0
0
0
0.062589
0.181289
2,576
155
66
16.619355
0.689426
0.23059
0
0.127907
0
0
0.12687
0
0
0
0
0
0
0
null
null
0
0
null
null
0.430233
0
0
0
null
0
0
0
0
0
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
e6736cd30b26ad17c0789f375a3676fb20cd6e80
259
py
Python
Pyhton files/mod.py
PacktPublishing/Python-for-Beginners---Start-to-Code-with-Python
c82d1ccb3db691352966e61ef1b0e2646d4d135e
[ "MIT" ]
5
2021-12-09T16:43:21.000Z
2022-01-24T10:10:19.000Z
Pyhton files/mod.py
PacktPublishing/Python-for-Beginners---Start-to-Code-with-Python
c82d1ccb3db691352966e61ef1b0e2646d4d135e
[ "MIT" ]
null
null
null
Pyhton files/mod.py
PacktPublishing/Python-for-Beginners---Start-to-Code-with-Python
c82d1ccb3db691352966e61ef1b0e2646d4d135e
[ "MIT" ]
6
2021-12-10T06:26:37.000Z
2022-03-01T05:51:57.000Z
import mod1 import data1 import data2 as nn from mod1 import myName mod1.welcome(myName["first"],myName["last"]) mod1.welcome(data1.myName["first"],data1.myName["last"]) mod1.welcome(nn.myName["first"],nn.myName["last"]) total = mod1.adder(5,8) print(total)
25.9
56
0.741313
41
259
4.682927
0.390244
0.171875
0.145833
0.21875
0
0
0
0
0
0
0
0.050209
0.07722
259
10
57
25.9
0.753138
0
0
0
0
0
0.103846
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0.111111
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
1
0
0
0
0
2
e675f0f75a385d31a1b3ec95a8594e3f2f28f94d
1,150
py
Python
leetcode/415_add_strings/415_add_strings.py
ryangillard/misc
d1f9919400636e6b988fa933493b94829a73331e
[ "Apache-2.0" ]
null
null
null
leetcode/415_add_strings/415_add_strings.py
ryangillard/misc
d1f9919400636e6b988fa933493b94829a73331e
[ "Apache-2.0" ]
null
null
null
leetcode/415_add_strings/415_add_strings.py
ryangillard/misc
d1f9919400636e6b988fa933493b94829a73331e
[ "Apache-2.0" ]
null
null
null
class Solution(object): def addStrings(self, num1, num2): """ :type num1: str :type num2: str :rtype: str """ n1 = len(num1) n2 = len(num2) nmin = min(n1, n2) nmax = max(n1, n2) sum_list = [0] * nmax i = 0 carry = 0 ...
27.380952
104
0.464348
157
1,150
3.299363
0.254777
0.216216
0.138996
0.200772
0.312741
0.312741
0.277992
0.23166
0.23166
0
0
0.051948
0.397391
1,150
42
105
27.380952
0.695527
0.037391
0
0
0
0
0.002809
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.166667
0.066667
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
e67717ed3445c78428d8c1d728108b9b8674ef38
8,746
py
Python
app/models.py
Island-Daoist/CS50-Project
ab7b22212bb371fbdc20b92aa4539e4c56d36d50
[ "MIT" ]
null
null
null
app/models.py
Island-Daoist/CS50-Project
ab7b22212bb371fbdc20b92aa4539e4c56d36d50
[ "MIT" ]
null
null
null
app/models.py
Island-Daoist/CS50-Project
ab7b22212bb371fbdc20b92aa4539e4c56d36d50
[ "MIT" ]
null
null
null
""" Module contains all of the SQL-Alchemy classes that create tables and functionality connected to those classes. Functionality predominately stems from the Users class, with ForeignKey connections to other classes. Classes Exported by Module: --------------------------- Users: Contains the base data f...
36.441667
111
0.669449
1,141
8,746
4.998247
0.186678
0.039278
0.036823
0.036823
0.405225
0.339646
0.303875
0.279677
0.273891
0.220936
0
0.005511
0.21164
8,746
239
112
36.594142
0.82161
0.176881
0
0.138158
0
0
0.084703
0.00295
0
0
0
0
0
1
0.144737
false
0.065789
0.052632
0.065789
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
e67cae9a5cd7a1d47e9a4ea661af818b1cbfcf62
1,296
py
Python
s3_credentials/policies.py
H4kor/s3-credentials
86861a36497119a441fb9b3287e0125607ce4ddc
[ "Apache-2.0" ]
null
null
null
s3_credentials/policies.py
H4kor/s3-credentials
86861a36497119a441fb9b3287e0125607ce4ddc
[ "Apache-2.0" ]
null
null
null
s3_credentials/policies.py
H4kor/s3-credentials
86861a36497119a441fb9b3287e0125607ce4ddc
[ "Apache-2.0" ]
null
null
null
def read_write(bucket): # https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_examples_s3_rw-bucket.html return { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": ["s3:ListBucket"], "Resource": ["ar...
26.44898
100
0.391204
100
1,296
5
0.35
0.11
0.17
0.19
0.742
0.742
0.686
0.562
0.562
0.562
0
0.046053
0.41358
1,296
48
101
27
0.611842
0.072531
0
0.55814
0
0
0.2875
0
0
0
0
0
0
1
0.069767
false
0
0
0.069767
0.139535
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e68408ee09a859d97f06d5bd8e2fc43eef949f7c
17,123
py
Python
v2ray/com/core/app/stats/command/command_pb2.py
xieruan/v2bp
350b2f80d3a06494ed4092945804c1c851fdf1db
[ "MIT" ]
7
2020-06-24T07:15:15.000Z
2022-03-08T16:36:09.000Z
v2ray/com/core/app/stats/command/command_pb2.py
xieruan/vp
350b2f80d3a06494ed4092945804c1c851fdf1db
[ "MIT" ]
null
null
null
v2ray/com/core/app/stats/command/command_pb2.py
xieruan/vp
350b2f80d3a06494ed4092945804c1c851fdf1db
[ "MIT" ]
6
2020-07-06T06:51:20.000Z
2021-03-23T06:26:36.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: v2ray.com/core/app/stats/command/command.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf im...
37.468271
1,571
0.749343
2,107
17,123
5.849075
0.100617
0.035784
0.061344
0.092502
0.689792
0.66196
0.611814
0.596884
0.49221
0.488965
0
0.036792
0.119021
17,123
456
1,572
37.550439
0.780179
0.05005
0
0.62716
1
0.004938
0.261506
0.215543
0
0
0
0
0
1
0
false
0
0.009877
0
0.009877
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
e6912d12f232b4b98558d2de96c15576c60b66db
467
py
Python
plyplus/__init__.py
TheChuckster/plyplus
12985cf3598dab8d084c90636de6b3e3b6ef86c6
[ "MIT" ]
null
null
null
plyplus/__init__.py
TheChuckster/plyplus
12985cf3598dab8d084c90636de6b3e3b6ef86c6
[ "MIT" ]
null
null
null
plyplus/__init__.py
TheChuckster/plyplus
12985cf3598dab8d084c90636de6b3e3b6ef86c6
[ "MIT" ]
null
null
null
"""A friendly yet powerful LR-parser written in Python.""" from __future__ import absolute_import import os from tempfile import gettempdir __version__ = "0.6.0" PLYPLUS_DIR = os.path.join(gettempdir(), 'plyplus') try: os.mkdir(PLYPLUS_DIR) except OSError: pass from .plyplus import Grammar, SVisitor, STra...
19.458333
82
0.773019
59
467
5.915254
0.661017
0.057307
0.097421
0
0
0
0
0
0
0
0
0.007481
0.141328
467
23
83
20.304348
0.862843
0.111349
0
0
0
0
0.029412
0
0
0
0
0
0
1
0
false
0.076923
0.461538
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
e6999181aa94c65b279b6b6fd3d2fe4990a08f28
323
wsgi
Python
django.wsgi
dutrow/crits
6b357daa5c3060cf622d3a3b0c7b41a9ca69c049
[ "MIT" ]
738
2015-01-02T12:39:55.000Z
2022-03-23T11:05:51.000Z
django.wsgi
deadbits/crits
154097a1892e9d3960d6faaed4bd2e912a196a47
[ "MIT" ]
605
2015-01-01T01:03:39.000Z
2021-11-17T18:51:07.000Z
django.wsgi
deadbits/crits
154097a1892e9d3960d6faaed4bd2e912a196a47
[ "MIT" ]
316
2015-01-07T12:35:01.000Z
2022-03-30T04:44:30.000Z
import os os.environ['PYTHON_EGG_CACHE'] = '/tmp' os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'crits.settings') # This application object is used by the development server # as well as any WSGI server configured to use this file. from django.core.wsgi import get_wsgi_application application = get_wsgi_application...
32.3
65
0.798762
48
323
5.208333
0.666667
0.072
0.144
0
0
0
0
0
0
0
0
0
0.117647
323
9
66
35.888889
0.877193
0.349845
0
0
0
0
0.270531
0.10628
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
e69efe209ec492148d18363b931e0dfab639ffe0
6,198
py
Python
scsgate/messages.py
vinciop/ESP_scsgate
941ac2e002bd5a33e191ec020e06eb9f4b86a61b
[ "MIT" ]
4
2018-01-23T17:02:29.000Z
2019-09-18T11:16:36.000Z
scsgate/messages.py
vinciop/ESP_scsgate
941ac2e002bd5a33e191ec020e06eb9f4b86a61b
[ "MIT" ]
null
null
null
scsgate/messages.py
vinciop/ESP_scsgate
941ac2e002bd5a33e191ec020e06eb9f4b86a61b
[ "MIT" ]
1
2020-02-07T09:57:24.000Z
2020-02-07T09:57:24.000Z
""" This module contains the definition of all the messages known by SCSGate """ from functools import reduce class SCSMessage: """ Base class for all SCS messages """ def __init__(self, data): self._data = data @property def bytes(self): """ A list containing all the bytes of the me...
24.401575
100
0.586964
720
6,198
4.838889
0.181944
0.043628
0.037887
0.036165
0.435993
0.426234
0.399828
0.38806
0.361079
0.361079
0
0.008714
0.296386
6,198
253
101
24.498024
0.790186
0.180542
0
0.598684
0
0.006579
0.091858
0.019231
0
0
0
0
0
1
0.256579
false
0
0.006579
0.065789
0.559211
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
e6ccdd5cac3968a1906550edd0e49ccf824003ef
938
py
Python
helper_functions.py
narendravardi/URLReduce
de71f8b504f5faf3ef1e479ec9ba582401fed661
[ "Unlicense" ]
1
2017-08-20T11:49:03.000Z
2017-08-20T11:49:03.000Z
helper_functions.py
narendravardi/URLReduce
de71f8b504f5faf3ef1e479ec9ba582401fed661
[ "Unlicense" ]
1
2019-10-14T15:22:12.000Z
2019-10-14T15:22:12.000Z
helper_functions.py
narendravardi/URLReduce
de71f8b504f5faf3ef1e479ec9ba582401fed661
[ "Unlicense" ]
1
2019-10-13T14:32:05.000Z
2019-10-13T14:32:05.000Z
import re import dynamodb_crud_operations import hash_encode_and_decode def is_valid_url(url): # url of the type http[s]://www.amazon.com # url of the type http[s]://amazon.com url_regex = 'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+' if not re.search(url_regex,url): return Fals...
40.782609
100
0.804904
157
938
4.343949
0.343949
0.152493
0.211144
0.083578
0.313783
0.167155
0
0
0
0
0
0.008083
0.076759
938
23
101
40.782609
0.779446
0.08209
0
0
0
0.055556
0.090803
0.090803
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.555556
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
e6d929194e255ca6fd2b718e803073829bf8472c
175
py
Python
workers/facade_worker/facade_worker/__init__.py
rakibx007/augur
e05d5c45f55692000c0a855878249ac08eb95360
[ "MIT" ]
null
null
null
workers/facade_worker/facade_worker/__init__.py
rakibx007/augur
e05d5c45f55692000c0a855878249ac08eb95360
[ "MIT" ]
null
null
null
workers/facade_worker/facade_worker/__init__.py
rakibx007/augur
e05d5c45f55692000c0a855878249ac08eb95360
[ "MIT" ]
null
null
null
#SPDX-License-Identifier: MIT """augur_worker_github - Augur Worker that collects GitHub data""" __version__ = '0.2.0' __author__ = 'Augur Team <s@goggins.com>' __all__ = []
25
66
0.725714
24
175
4.708333
0.791667
0.19469
0
0
0
0
0
0
0
0
0
0.019608
0.125714
175
6
67
29.166667
0.718954
0.508571
0
0
0
0
0.3875
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
e6e4f34935c789d1d91b6dab5a2f796dd42372f4
475
py
Python
cloud_storage_utility/common/cloud_local_map.py
nkahlor/cloud-storage-utility
18883c8fe90a677ed604f1b1a9d8367dd3ae88d2
[ "MIT" ]
1
2022-01-13T00:38:30.000Z
2022-01-13T00:38:30.000Z
cloud_storage_utility/common/cloud_local_map.py
nkahlor/cloud-storage-utility
18883c8fe90a677ed604f1b1a9d8367dd3ae88d2
[ "MIT" ]
3
2021-05-27T16:55:14.000Z
2021-06-11T21:54:36.000Z
cloud_storage_utility/common/cloud_local_map.py
nkahlor/cloud-storage-utility
18883c8fe90a677ed604f1b1a9d8367dd3ae88d2
[ "MIT" ]
1
2021-12-13T20:17:50.000Z
2021-12-13T20:17:50.000Z
class CloudLocalMap: """Maps a local filepath to a remote cloud key""" def __init__(self, cloud_key: str, local_filepath: str): """Creates an association between a remote cloud key, and a local filepath. Args: cloud_key (str): The name of an item in a cloud bucket. loca...
36.538462
83
0.644211
68
475
4.323529
0.455882
0.265306
0.095238
0.102041
0
0
0
0
0
0
0
0
0.282105
475
12
84
39.583333
0.86217
0.534737
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
e6ebd475e75e7a9930e4312febe1f1613992e289
2,980
py
Python
services/core/IEEE2030_5Agent/IEEE2030_5/__init__.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
406
2015-01-20T03:08:53.000Z
2022-03-31T20:59:07.000Z
services/core/IEEE2030_5Agent/IEEE2030_5/__init__.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
2,031
2015-01-05T21:35:45.000Z
2022-03-29T21:44:36.000Z
services/core/IEEE2030_5Agent/IEEE2030_5/__init__.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
219
2015-01-20T14:53:57.000Z
2022-03-06T00:37:41.000Z
from collections import namedtuple STOR_UNKNOWN = -1 STOR_DISCONNECTED = 1 STOR_CONNECTED = 5 CONTROL_MODE_LOCAL = 0 CONTROL_MODE_REMOTE = 1 INVERTER_STATUS_UNKNOWN = -1 INVERTER_NORMAL = 0 INVERTER_OFF = 1 INVERTER_STARTING = 3 INVERTER_FORCED_POWER_REDUCTION = 5 INVERTER_FAULT = 7 INVERTER_CELL_BALANCING = 10 MRI...
33.863636
81
0.67349
391
2,980
4.920716
0.258312
0.148649
0.194906
0.177755
0.214657
0.122141
0
0
0
0
0
0.026799
0.12349
2,980
87
82
34.252874
0.709801
0
0
0
0
0
0.354362
0.032886
0
0
0
0
0
1
0
false
0
0.013889
0
0.013889
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
e6ee347a8912ed4e0b6f88ab3ccf5f3bcaa0cd70
665
py
Python
script_fillpolygon_edge_2.py
emliunix/pygraph
3a66e295030d843b6ac37e1421ef6bef25296cca
[ "MIT" ]
null
null
null
script_fillpolygon_edge_2.py
emliunix/pygraph
3a66e295030d843b6ac37e1421ef6bef25296cca
[ "MIT" ]
null
null
null
script_fillpolygon_edge_2.py
emliunix/pygraph
3a66e295030d843b6ac37e1421ef6bef25296cca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pygraph.fillpolygon_edge_2 import fillPolygonEdge2 from pygraph.util import mkGraph, saveG, enLarge g = mkGraph((160, 120)) points = [ (10, 40), (20, 10), (30, 10), (40, 20), (50, 5), (60, 10), (75, 25), (25, 30), (155, 40), (30, 50) ] points2 = [ ...
15.113636
55
0.502256
90
665
3.655556
0.477778
0.066869
0.036474
0
0
0
0
0
0
0
0
0.254737
0.285714
665
43
56
15.465116
0.437895
0.031579
0
0
0
0
0.05919
0.034268
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e6ef4550d7ec239e86582edb06a74759f633c3f1
277
py
Python
test_solver.py
tolstislon/sudoku_decision
770f643b55fec6721c60f5c88429d62c9e194bbb
[ "MIT" ]
null
null
null
test_solver.py
tolstislon/sudoku_decision
770f643b55fec6721c60f5c88429d62c9e194bbb
[ "MIT" ]
null
null
null
test_solver.py
tolstislon/sudoku_decision
770f643b55fec6721c60f5c88429d62c9e194bbb
[ "MIT" ]
null
null
null
import pytest from sudoku_solver import SudokuSolver from validator import Validator from dataset import dataset @pytest.mark.parametrize('task', dataset) def test_solver(task): sudoku = SudokuSolver(task['task']) sudoku.run() assert Validator().run(sudoku.data)
23.083333
41
0.765343
35
277
6
0.457143
0.095238
0
0
0
0
0
0
0
0
0
0
0.137184
277
11
42
25.181818
0.878661
0
0
0
0
0
0.028881
0
0
0
0
0
0.111111
1
0.111111
false
0
0.444444
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
fc0318662071a35487db8d492a331ee8fd1a85ba
116
py
Python
wcloud/__init__.py
neocortex/wcloud
a3cb44ad8aea5c6a2e799bf715bc827560d0343b
[ "MIT" ]
null
null
null
wcloud/__init__.py
neocortex/wcloud
a3cb44ad8aea5c6a2e799bf715bc827560d0343b
[ "MIT" ]
5
2021-03-18T19:55:31.000Z
2022-03-11T23:11:37.000Z
wcloud/__init__.py
neocortex/wcloud
a3cb44ad8aea5c6a2e799bf715bc827560d0343b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'Rafael Schultze-Kraft' __email__ = 'skraftr@gmail.com' __version__ = '0.0.1'
19.333333
36
0.663793
15
116
4.333333
0.933333
0
0
0
0
0
0
0
0
0
0
0.04
0.137931
116
5
37
23.2
0.61
0.181034
0
0
0
0
0.462366
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
fc145f8db29873d1114480d7c2720afa3416475b
228
py
Python
src/pyCRGI/pure/__init__.py
pleiszenburg/pyIGRF
2572afd40650ef7f10ba1804aaa4c7f870ef704e
[ "MIT" ]
1
2022-02-13T07:30:05.000Z
2022-02-13T07:30:05.000Z
src/pyCRGI/pure/__init__.py
pleiszenburg/pyCRGI
3a1f394e2df6702432b29d2a7edded4d63cb14da
[ "MIT" ]
null
null
null
src/pyCRGI/pure/__init__.py
pleiszenburg/pyCRGI
3a1f394e2df6702432b29d2a7edded4d63cb14da
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Pure Python implementation """ from ._calculate import ( geodetic2geocentric, get_syn, ) from ._coeffs import ( get_coeffs, ) from ._value import ( get_value, get_variation, )
11.4
26
0.635965
24
228
5.75
0.625
0.130435
0
0
0
0
0
0
0
0
0
0.011494
0.236842
228
19
27
12
0.781609
0.214912
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.272727
0
0.272727
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
1
0
0
0
0
0
0
2
fc1e569ba080de1fdeec334a87e5410727a1310d
2,488
py
Python
i3pystatus/core/modules.py
rampage644/i3pystatus
b9846936e187cd80f15928e93ad6318755f84285
[ "MIT" ]
null
null
null
i3pystatus/core/modules.py
rampage644/i3pystatus
b9846936e187cd80f15928e93ad6318755f84285
[ "MIT" ]
null
null
null
i3pystatus/core/modules.py
rampage644/i3pystatus
b9846936e187cd80f15928e93ad6318755f84285
[ "MIT" ]
null
null
null
from i3pystatus.core.settings import SettingsBase from i3pystatus.core.threading import Manager from i3pystatus.core.util import convert_position class Module(SettingsBase): output = None position = 0 def registered(self, status_handler): """Called when this module is registered with a status han...
29.619048
84
0.615354
288
2,488
5.211806
0.381944
0.046636
0.029314
0.034644
0.039973
0
0
0
0
0
0
0.005062
0.28537
2,488
83
85
29.975904
0.839145
0.159164
0
0.155172
0
0
0.027724
0
0
0
0
0
0
1
0.224138
false
0.086207
0.051724
0
0.413793
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
fc2064d3eb99669d01de296bd4c8de320b0adc72
1,855
py
Python
data/external/repositories/137656/blundercheck-master/insert_games.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories/137656/blundercheck-master/insert_games.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories/137656/blundercheck-master/insert_games.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
#!env python import chess.pgn, urllib, os, sys from sqlalchemy import create_engine, MetaData, Table, text from sqlalchemy.orm import mapper, sessionmaker class Sources(object): pass t = text(""" insert into game (source_id, source_ref, white_elo, black_elo, eco, result, white_computer, black_computer) values (...
30.409836
109
0.613477
228
1,855
4.837719
0.394737
0.099728
0.076156
0.070716
0.217588
0.217588
0.1233
0.1233
0.1233
0.1233
0
0.009601
0.270081
1,855
60
110
30.916667
0.805022
0.060377
0
0.097561
0
0.02439
0.2
0
0
0
0
0.016667
0
0
null
null
0.02439
0.073171
null
null
0.02439
0
0
0
null
0
0
0
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
fc25c0d1b7f5cf311cdbe4b5a6f48d88af8f5ce3
24,963
py
Python
exavault/models/webhook_v2_event_data_share.py
ExaVault/evapi-python
769bfa9fbb683f2b4653ca2564029ffb72445c8c
[ "MIT" ]
null
null
null
exavault/models/webhook_v2_event_data_share.py
ExaVault/evapi-python
769bfa9fbb683f2b4653ca2564029ffb72445c8c
[ "MIT" ]
3
2017-07-13T20:58:05.000Z
2019-08-02T19:08:37.000Z
exavault/models/webhook_v2_event_data_share.py
ExaVault/evapi-python
769bfa9fbb683f2b4653ca2564029ffb72445c8c
[ "MIT" ]
4
2016-11-16T00:14:23.000Z
2020-09-24T14:50:46.000Z
# coding: utf-8 """ ExaVault API See our API reference documentation at https://www.exavault.com/developer/api-docs/ # noqa: E501 OpenAPI spec version: 2.0 Contact: support@exavault.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 i...
30.780518
455
0.618275
2,796
24,963
5.39628
0.079041
0.069459
0.199894
0.170599
0.618372
0.518624
0.484425
0.406018
0.28062
0.18127
0
0.029457
0.301005
24,963
810
456
30.818519
0.835234
0.460922
0
0.085106
0
0
0.077585
0.006189
0
0
0
0
0
1
0.176292
false
0.033435
0.009119
0
0.291793
0.006079
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
fc277905214f00419de40e34e90eafa2b62a1bdc
339
py
Python
dev/panair_test.py
usuaero/PyPan
ae32a8ec8110df27a6bce089942c6172f599f3bf
[ "MIT" ]
10
2021-03-22T12:40:12.000Z
2022-01-12T04:18:52.000Z
dev/panair_test.py
usuaero/PyPan
ae32a8ec8110df27a6bce089942c6172f599f3bf
[ "MIT" ]
null
null
null
dev/panair_test.py
usuaero/PyPan
ae32a8ec8110df27a6bce089942c6172f599f3bf
[ "MIT" ]
null
null
null
# For testing the PAN AIR capabilities. from panair import Main if __name__=="__main__": # Declare input file #input_file = "dev/meshes/axiebody.INP" input_file = "dev/meshes/wingbody.INP" # Load case my_case = Main(input_file=input_file, verbose=True) my_case.plot_mesh() my_case.execute...
24.214286
55
0.710914
49
339
4.571429
0.571429
0.200893
0.125
0.160714
0
0
0
0
0
0
0
0
0.185841
339
14
56
24.214286
0.811594
0.306785
0
0
0
0
0.134199
0.099567
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
fc2872d746a30a8dfd8b3c56d53c959e9a6b071a
838
py
Python
src/myapp/models.py
Anton-Shevchenko/tester
f1f6b3a22acba1ab09b0c9586892684dfb6d5750
[ "MIT" ]
null
null
null
src/myapp/models.py
Anton-Shevchenko/tester
f1f6b3a22acba1ab09b0c9586892684dfb6d5750
[ "MIT" ]
null
null
null
src/myapp/models.py
Anton-Shevchenko/tester
f1f6b3a22acba1ab09b0c9586892684dfb6d5750
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.translation import ugettext_lazy as _ from .managers import CustomUserManager class DemoModel(models.Model): title = models.CharField(max_length=255) body = models.TextField() image = models.ImageField(uploa...
26.1875
77
0.720764
103
838
5.631068
0.533981
0.051724
0.051724
0.082759
0.196552
0
0
0
0
0
0
0.008772
0.183771
838
32
78
26.1875
0.839181
0
0
0.130435
0
0
0.034565
0
0
0
0
0
0
1
0.130435
false
0
0.173913
0.130435
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
fc39112a0d6cc3d495bc76b33f2111e831fa057b
413
py
Python
shopping_cart_test.py
mfaibish/shopping-cart
4f71e19edd779885e0bce02b100e622ff92cf7fc
[ "MIT" ]
1
2019-06-17T20:36:53.000Z
2019-06-17T20:36:53.000Z
shopping_cart_test.py
mfaibish/shopping-cart
4f71e19edd779885e0bce02b100e622ff92cf7fc
[ "MIT" ]
null
null
null
shopping_cart_test.py
mfaibish/shopping-cart
4f71e19edd779885e0bce02b100e622ff92cf7fc
[ "MIT" ]
null
null
null
# shopping_card_test.py from shopping_cart import to_usd def test_to_usd(): # it should apply USD formatting: assert to_usd(4.50) == "$4.50" # it should display two decimal places: assert to_usd(4.5) == "$4.50" # it should round to two places: assert to_usd(4.55555) == "$4.56" # it shou...
25.8125
60
0.66586
67
413
3.955224
0.492537
0.113208
0.166038
0.135849
0.135849
0
0
0
0
0
0
0.149847
0.208232
413
16
60
25.8125
0.66055
0.392252
0
0
0
0
0.130081
0
0
0
0
0
0.666667
1
0.166667
true
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
0
0
0
0
0
2
fc475373a510344214a314a71b0518e73b15a117
675
py
Python
testdriven-app/services/users/project/api/users/models.py
felkost/flask_microservice
46d8d14fc79bc6cbb457b56cb621c50c066a979b
[ "MIT" ]
null
null
null
testdriven-app/services/users/project/api/users/models.py
felkost/flask_microservice
46d8d14fc79bc6cbb457b56cb621c50c066a979b
[ "MIT" ]
null
null
null
testdriven-app/services/users/project/api/users/models.py
felkost/flask_microservice
46d8d14fc79bc6cbb457b56cb621c50c066a979b
[ "MIT" ]
null
null
null
import os from sqlalchemy.sql import func from project import db class User(db.Model): __tablename__ = "users" id = db.Column(db.Integer, primary_key=True, autoincrement=True) username = db.Column(db.String(128), nullable=False) email = db.Column(db.String(128), nullable=False) active = db.Colu...
27
77
0.722963
92
675
5.184783
0.456522
0.083857
0.104822
0.067086
0.134172
0.134172
0.134172
0
0
0
0
0.010619
0.162963
675
24
78
28.125
0.833628
0
0
0
0
0
0.007407
0
0
0
0
0
0
1
0.0625
false
0
0.3125
0
0.8125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
fc4d0ed94ca074383275e23a952c3b749808b5c0
3,027
py
Python
archive/1.py
HackerDaGreat57/mcpy
959c3180c724ab2039d4bd98d0a8f0fae30b6b3c
[ "MIT" ]
1
2021-06-09T02:53:33.000Z
2021-06-09T02:53:33.000Z
archive/1.py
HackerDaGreat57/mcpy
959c3180c724ab2039d4bd98d0a8f0fae30b6b3c
[ "MIT" ]
1
2021-06-09T03:02:42.000Z
2022-01-03T02:15:11.000Z
archive/1.py
HackerDaGreat57/mcpy
959c3180c724ab2039d4bd98d0a8f0fae30b6b3c
[ "MIT" ]
null
null
null
"""entry point for Tkinter Window with OpenGL] """ from tkinter import Tk, YES, BOTH from tko.tk_win import TkOglWin from tko.ogl_hdr import GL_BLEND, GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_DEPTH_TEST, \ GL_MODELVIEW, GL_ONE_MINUS_SRC_ALPHA, GL_PROJECTION, GL_QUADS, GL_RENDERER, \ ...
23.648438
101
0.507103
360
3,027
4.097222
0.263889
0.067797
0.195254
0.211525
0.320678
0.296271
0.296271
0.296271
0.252881
0.252881
0
0.077977
0.372977
3,027
127
102
23.834646
0.699157
0.021143
0
0.347826
0
0
0.008119
0
0
0
0
0
0
1
0.032609
false
0
0.032609
0
0.086957
0.01087
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
fc59a87ecc9b4b2ae9395aebca59d41dd5912f6e
482
py
Python
src/api/resources/token/views.py
rafaelsierra/estoudebike-api
9755395fb0396e63aa97695caa0970adebe520fe
[ "Apache-2.0" ]
null
null
null
src/api/resources/token/views.py
rafaelsierra/estoudebike-api
9755395fb0396e63aa97695caa0970adebe520fe
[ "Apache-2.0" ]
null
null
null
src/api/resources/token/views.py
rafaelsierra/estoudebike-api
9755395fb0396e63aa97695caa0970adebe520fe
[ "Apache-2.0" ]
null
null
null
from rest_framework import generics from rest_framework.response import Response from rest_framework.throttling import AnonRateThrottle from bike_auth.models import Token class NovoAcessoThrottle(AnonRateThrottle): rate = '100/hour' scope = 'burst' class NovoAcessoView(generics.CreateAPIView): throttle...
25.368421
54
0.751037
52
482
6.865385
0.596154
0.067227
0.142857
0
0
0
0
0
0
0
0
0.007426
0.161826
482
18
55
26.777778
0.876238
0
0
0
0
0
0.037344
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.916667
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
fc85d994925aec49e66b1bdeb83f79c4340fa575
4,194
py
Python
examples/wifiFingerprint.py
flemic/R2DM-EVARILOS
0729f3164695895dde35ee1c3c9ab5bf3f13e609
[ "BSD-3-Clause" ]
2
2017-02-02T09:49:37.000Z
2020-01-02T16:49:00.000Z
examples/wifiFingerprint.py
flemic/R2DM-EVARILOS
0729f3164695895dde35ee1c3c9ab5bf3f13e609
[ "BSD-3-Clause" ]
null
null
null
examples/wifiFingerprint.py
flemic/R2DM-EVARILOS
0729f3164695895dde35ee1c3c9ab5bf3f13e609
[ "BSD-3-Clause" ]
1
2016-06-01T14:24:15.000Z
2016-06-01T14:24:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """wifiFingerprint.py: Generate a fingerprint of the WiFi environment (Linux, Mac OS).""" __author__ = "Filip Lemic" __copyright__ = "Copyright 2015, EVARILOS Project" __version__ = "1.0.0" __maintainer__ = "Filip Lemic" __email__ = "lemic@tkn.tu-berlin.de" __status__ = ...
35.846154
181
0.559609
448
4,194
5.149554
0.348214
0.052016
0.039012
0.046814
0.259211
0.239272
0.215865
0.175986
0.130039
0.106199
0
0.01303
0.286361
4,194
116
182
36.155172
0.757768
0.018836
0
0.352273
1
0.022727
0.17861
0.102406
0
0
0
0
0
0
null
null
0.011364
0.034091
null
null
0.238636
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
fc8cec0e5ce29916716b90fe31242adcd3a25621
1,953
py
Python
src/test/python/keep-alive.py
farnetto/httpd
ec57a38f4c1a47be9cb4e7003e2c8edac2de2fdb
[ "MIT" ]
null
null
null
src/test/python/keep-alive.py
farnetto/httpd
ec57a38f4c1a47be9cb4e7003e2c8edac2de2fdb
[ "MIT" ]
null
null
null
src/test/python/keep-alive.py
farnetto/httpd
ec57a38f4c1a47be9cb4e7003e2c8edac2de2fdb
[ "MIT" ]
null
null
null
import unittest import http.client import time # # Tests the keep-alive functionality # class TestKeepAlive(unittest.TestCase): host = "localhost" port = 80 resource = "/test-classes/test.html" def test_keep_alive(self): conn = http.client.HTTPConnection(self.host, self.port) # get re...
30.046154
79
0.601639
208
1,953
5.591346
0.403846
0.047291
0.060189
0.077386
0.454858
0.432502
0.432502
0.358555
0.358555
0.27601
0
0.010212
0.298003
1,953
64
80
30.515625
0.838074
0.15873
0
0.545455
0
0
0.082822
0.01411
0
0
0
0.015625
0.068182
1
0.068182
false
0.090909
0.068182
0
0.227273
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
0
0
0
2
fc8fb1ff71a9bfeb68b6edb9bf889c8d0b646484
280
py
Python
tests/unit/api/__init__.py
Amplo-GmbH/AutoML
eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606
[ "MIT" ]
5
2022-01-07T13:34:37.000Z
2022-03-17T06:40:28.000Z
tests/unit/api/__init__.py
Amplo-GmbH/AutoML
eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606
[ "MIT" ]
5
2022-03-22T13:42:22.000Z
2022-03-31T16:20:44.000Z
tests/unit/api/__init__.py
Amplo-GmbH/AutoML
eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606
[ "MIT" ]
1
2021-12-17T22:41:11.000Z
2021-12-17T22:41:11.000Z
import pytest from pathlib import Path from tests import rmtree __all__ = ['TestAPI'] class TestAPI: sync_dir = Path('./test_dir') @pytest.fixture(autouse=True) def rmtree_sync_dir(self): rmtree(self.sync_dir) yield rmtree(self.sync_dir)
15.555556
33
0.667857
37
280
4.783784
0.513514
0.158192
0.158192
0.19209
0
0
0
0
0
0
0
0
0.235714
280
17
34
16.470588
0.827103
0
0
0.181818
0
0
0.060714
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.545455
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
fca59607e7cb39677ff5e580e5db857fedef9277
112
py
Python
Beecrowd/1078.py
Gugarauj07/Algorithms
21c0fe96c1c870a01644d398c446182ced37eb19
[ "MIT" ]
null
null
null
Beecrowd/1078.py
Gugarauj07/Algorithms
21c0fe96c1c870a01644d398c446182ced37eb19
[ "MIT" ]
null
null
null
Beecrowd/1078.py
Gugarauj07/Algorithms
21c0fe96c1c870a01644d398c446182ced37eb19
[ "MIT" ]
null
null
null
N = int(input()) if 1 < N < 1000: for number in range(1, 11): print(f"{number} x {N} = {number*N}")
22.4
45
0.508929
20
112
2.85
0.7
0
0
0
0
0
0
0
0
0
0
0.098765
0.276786
112
4
46
28
0.604938
0
0
0
0
0
0.241071
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fca70a396c072b86156673847080040bc0401841
3,641
py
Python
rootfs/usr/lib/python3/dist-packages/numpy/oldnumeric/functions.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python3/dist-packages/numpy/oldnumeric/functions.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
21
2021-10-02T00:07:05.000Z
2022-03-30T00:02:10.000Z
rootfs/usr/lib/python3/dist-packages/numpy/oldnumeric/functions.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
# Functions that should behave the same as Numeric and need changing import numpy as np import numpy.core.multiarray as mu import numpy.core.numeric as nn from .typeconv import convtypecode, convtypecode2 __all__ = ['take', 'repeat', 'sum', 'product', 'sometrue', 'alltrue', 'cumsum', 'cumproduct', 'compres...
29.128
75
0.669047
527
3,641
4.611006
0.208729
0.062551
0.07037
0.042798
0.347325
0.281481
0.265844
0.220165
0.160905
0.139095
0
0.015187
0.186213
3,641
124
76
29.362903
0.804927
0.090085
0
0.119048
0
0
0.068618
0
0
0
0
0
0
1
0.345238
false
0
0.047619
0.214286
0.738095
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
5d8808a6083286c5e01e4203e0e6635240c82ef7
3,803
py
Python
tests/api_resources/test_transfer.py
henry232323/stripe-python
953faf3612522f4294393d341138800691f406e0
[ "MIT" ]
null
null
null
tests/api_resources/test_transfer.py
henry232323/stripe-python
953faf3612522f4294393d341138800691f406e0
[ "MIT" ]
null
null
null
tests/api_resources/test_transfer.py
henry232323/stripe-python
953faf3612522f4294393d341138800691f406e0
[ "MIT" ]
null
null
null
import stripe TEST_RESOURCE_ID = "tr_123" TEST_REVERSAL_ID = "trr_123" class TestTransfer(object): def test_is_listable(self, request_mock): resources = stripe.Transfer.list() request_mock.assert_requested("get", "/v1/transfers") assert isinstance(resources.data, list) assert isi...
35.212963
71
0.626611
409
3,803
5.555012
0.183374
0.101673
0.117077
0.114437
0.776849
0.762764
0.762764
0.669014
0.605194
0.540493
0
0.010072
0.268998
3,803
107
72
35.542056
0.807194
0.024191
0
0.373626
0
0
0.098706
0.042071
0
0
0
0
0.230769
1
0.10989
false
0
0.010989
0
0.142857
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
5d8df53d42a6667eb8142efe5e054771c9d05494
2,516
py
Python
pyipmi/commands/payload.py
emaadmanzoor/pyipmi
17d41fa34abc1be487b6d68da9b33d205fd1529e
[ "BSD-3-Clause" ]
1
2015-11-08T17:31:06.000Z
2015-11-08T17:31:06.000Z
pyipmi/commands/payload.py
emaadmanzoor/pyipmi
17d41fa34abc1be487b6d68da9b33d205fd1529e
[ "BSD-3-Clause" ]
null
null
null
pyipmi/commands/payload.py
emaadmanzoor/pyipmi
17d41fa34abc1be487b6d68da9b33d205fd1529e
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012, Calxeda Inc. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and th...
38.121212
72
0.756757
322
2,516
5.891304
0.512422
0.035846
0.017923
0.024249
0.175013
0.121244
0.121244
0.121244
0.121244
0.071692
0
0.002882
0.172496
2,516
65
73
38.707692
0.908261
0.667329
0
0
0
0
0.190898
0
0
0
0
0.015385
0
1
0.0625
false
0
0.125
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
5d9e30c27409bbb05836eeb6b8437f52ba7d5c86
16,257
py
Python
xitorch/_tests/test_interp.py
Jaikinator/xitorch
053db8d27a7777baa7f572c2d37004e788ff4cb8
[ "MIT" ]
null
null
null
xitorch/_tests/test_interp.py
Jaikinator/xitorch
053db8d27a7777baa7f572c2d37004e788ff4cb8
[ "MIT" ]
null
null
null
xitorch/_tests/test_interp.py
Jaikinator/xitorch
053db8d27a7777baa7f572c2d37004e788ff4cb8
[ "MIT" ]
null
null
null
import warnings import torch from torch.autograd import gradcheck, gradgradcheck from xitorch.interpolate.interp1 import Interp1D from xitorch._tests.utils import device_dtype_float_test @device_dtype_float_test(only64=True, additional_kwargs={ "bc_type": ["clamped", "natural", "not-a-knot", "periodic", Non...
50.175926
108
0.569416
2,322
16,257
3.854005
0.104221
0.082356
0.10828
0.047491
0.779417
0.703654
0.643759
0.63035
0.572578
0.546542
0
0.229942
0.267823
16,257
323
109
50.331269
0.521885
0.124316
0
0.49004
0
0
0.018453
0
0
0
0
0
0.075697
1
0.039841
false
0
0.01992
0.01992
0.083665
0.003984
0
0
0
null
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5da2841dd2687cdac00ddf016b9922d748b4b887
1,509
py
Python
app/utils.py
aaronnorrish/PubMedConnections
dc17e141d94afe6d26a9b49b2183c06f3630e561
[ "CC-BY-4.0" ]
4
2022-03-09T05:20:46.000Z
2022-03-13T11:18:58.000Z
app/utils.py
aaronnorrish/PubMedConnections
dc17e141d94afe6d26a9b49b2183c06f3630e561
[ "CC-BY-4.0" ]
null
null
null
app/utils.py
aaronnorrish/PubMedConnections
dc17e141d94afe6d26a9b49b2183c06f3630e561
[ "CC-BY-4.0" ]
1
2022-03-09T05:21:53.000Z
2022-03-09T05:21:53.000Z
""" This file contains general utility functions that don't really fit anywhere else. """ from multiprocessing.pool import ThreadPool from typing import TypeVar T = TypeVar('T') def or_else(value: T, default_value: T) -> T: """ Returns value if it is not None, or else returns default_value. """ if v...
27.436364
94
0.653413
218
1,509
4.440367
0.389908
0.061983
0.018595
0.022727
0.02686
0
0
0
0
0
0
0.007847
0.239894
1,509
54
95
27.944444
0.836094
0.336647
0
0
0
0
0.094054
0
0
0
0
0
0
1
0.208333
false
0
0.083333
0.041667
0.583333
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
5db6baf10be6cfb87da4f5d3d72cb0b7443811c4
2,068
py
Python
indexdigest/test/linters/test_0027_selects_with_like.py
macbre/index-digest
cb0c42f3905b608d58e1c214f461352b74aaa8df
[ "MIT" ]
41
2017-10-25T11:52:50.000Z
2022-02-10T07:18:06.000Z
indexdigest/test/linters/test_0027_selects_with_like.py
macbre/index-digest
cb0c42f3905b608d58e1c214f461352b74aaa8df
[ "MIT" ]
120
2017-09-28T17:07:52.000Z
2022-03-31T03:20:55.000Z
indexdigest/test/linters/test_0027_selects_with_like.py
macbre/index-digest
cb0c42f3905b608d58e1c214f461352b74aaa8df
[ "MIT" ]
6
2017-11-09T19:52:44.000Z
2022-03-15T09:44:18.000Z
from __future__ import print_function from unittest import TestCase from indexdigest.linters.linter_0027_selects_with_like import check_selects_with_like, query_uses_leftmost_like from indexdigest.test import DatabaseTestMixin, read_queries_from_log class TestSelectsWithLike(TestCase, DatabaseTestMixin): def t...
53.025641
155
0.722921
278
2,068
5.125899
0.233813
0.082105
0.143158
0.176842
0.545263
0.527018
0.480702
0.480702
0.480702
0.428772
0
0.028242
0.161025
2,068
38
156
54.421053
0.793084
0.005803
0
0.076923
0
0
0.302824
0.012658
0
0
0
0
0.615385
1
0.076923
false
0
0.153846
0
0.269231
0.076923
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
1
0
0
0
0
0
0
0
0
0
2
5db6e3038d650bfcfd007f7361d941d9ea97be32
5,175
gyp
Python
deps/sqlite3.gyp
patlamontagne/node-sqlcipher
0467110fc94381434f51709430807870748c1d90
[ "BSD-3-Clause" ]
null
null
null
deps/sqlite3.gyp
patlamontagne/node-sqlcipher
0467110fc94381434f51709430807870748c1d90
[ "BSD-3-Clause" ]
null
null
null
deps/sqlite3.gyp
patlamontagne/node-sqlcipher
0467110fc94381434f51709430807870748c1d90
[ "BSD-3-Clause" ]
null
null
null
{ 'includes': [ 'common-sqlite.gypi' ], 'target_defaults': { 'default_configuration': 'Release', 'cflags':[ '-std=c99' ], 'configurations': { 'Debug': { 'defines': [ 'DEBUG', '_DEBUG' ], 'msvs_settings': { 'VCCLCompilerTool': { 'RuntimeLibrary': 1, ...
26.675258
127
0.481353
376
5,175
6.281915
0.335106
0.11558
0.148603
0.18713
0.501693
0.501693
0.468671
0.468671
0.442422
0.274344
0
0.014135
0.357488
5,175
193
128
26.813472
0.696241
0.022222
0
0.433862
0
0
0.519193
0.252473
0
0
0
0
0
1
0
true
0
0
0
0
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
5dbc4ad9f2643bcadaf5a64f9f58dc5d898ebec4
2,420
py
Python
freeletics/api.py
tpulfer/freeletics
8726e7257959bbdeff906e2f0ece0778664bb9a3
[ "Apache-2.0" ]
null
null
null
freeletics/api.py
tpulfer/freeletics
8726e7257959bbdeff906e2f0ece0778664bb9a3
[ "Apache-2.0" ]
1
2018-11-08T10:04:22.000Z
2018-11-08T10:04:22.000Z
freeletics/api.py
tpulfer/freeletics
8726e7257959bbdeff906e2f0ece0778664bb9a3
[ "Apache-2.0" ]
1
2018-11-07T08:46:28.000Z
2018-11-07T08:46:28.000Z
#!/usr/bin/python """Generate statistics from your Freeletics feed""" import collections import json import requests import configargparse URL_LOGIN = 'https://api.freeletics.com/user/v1/auth/password/login' URL_FEED = 'https://api.freeletics.com/v3/users/{}/feed_entries?page={}' URL_PROFILE = 'https://api.freeletic...
31.025641
89
0.672727
314
2,420
4.974522
0.321656
0.077465
0.038412
0.040333
0.100512
0.076825
0.040973
0
0
0
0
0.00253
0.183471
2,420
77
90
31.428571
0.787955
0.069421
0
0.036364
1
0
0.177107
0
0
0
0
0
0
1
0.090909
false
0.090909
0.072727
0
0.236364
0.018182
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
5dbce09cdf5f5d6e9720f0c7b8b33695cce71b99
3,225
py
Python
appengine/findit/common/constants.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/common/constants.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
16
2020-09-07T11:55:09.000Z
2022-03-02T05:47:58.000Z
appengine/findit/common/constants.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Includes all the constants of module names, queue names, url paths, etc.""" import os import re # OAuth2 client_id of the "API Explorer" web app. API_EXP...
39.329268
80
0.787597
429
3,225
5.715618
0.379953
0.066069
0.07137
0.026917
0.261419
0.168842
0.042414
0
0
0
0
0.006937
0.106047
3,225
81
81
39.814815
0.843566
0.253953
0
0
0
0
0.490566
0.419707
0
0
0
0.012346
0
1
0
false
0
0.039216
0
0.039216
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
1
null
0
0
1
0
0
0
0
0
0
0
0
0
0
2
5dc050c7cc558472544ab24e95e880a1d158601b
11,806
py
Python
vcf_parsing.py
GastonLab/ddb-dev
4c512f1c5e4c2e0515a98f7cae84329951cb7b2d
[ "MIT" ]
null
null
null
vcf_parsing.py
GastonLab/ddb-dev
4c512f1c5e4c2e0515a98f7cae84329951cb7b2d
[ "MIT" ]
null
null
null
vcf_parsing.py
GastonLab/ddb-dev
4c512f1c5e4c2e0515a98f7cae84329951cb7b2d
[ "MIT" ]
null
null
null
import sys from cyvcf2 import VCF from collections import defaultdict def parse_caller_vcfs(sample_dict, caller_list): caller_vcf_records = defaultdict(lambda: dict()) for caller in caller_list: parse_vcf(sample_dict[caller], caller, caller_vcf_records) return caller_vcf_records def parse_vcf(v...
36.214724
125
0.566068
1,529
11,806
4.260955
0.151079
0.141827
0.22947
0.26769
0.421949
0.396163
0.359939
0.345664
0.298081
0.28396
0
0.004121
0.260037
11,806
325
126
36.326154
0.741644
0.098933
0
0.330544
0
0
0.135944
0
0
0
0
0
0
1
0.079498
false
0
0.012552
0
0.221757
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
5dc5f92ba1cfc4bf1c620cee95e8f97eed028d39
508
py
Python
award/migrations/0005_auto_20200115_1033.py
owinolawrence/awwards
23ec5a53e715c3a75139c31a8d340c7b348e57a8
[ "MIT" ]
null
null
null
award/migrations/0005_auto_20200115_1033.py
owinolawrence/awwards
23ec5a53e715c3a75139c31a8d340c7b348e57a8
[ "MIT" ]
3
2020-06-06T00:35:36.000Z
2021-06-10T22:28:53.000Z
award/migrations/0005_auto_20200115_1033.py
owinolawrence/awwards
23ec5a53e715c3a75139c31a8d340c7b348e57a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2020-01-15 07:33 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('award', '0004_remove_post_profile'), ] operations = [ migrations.RemoveField( ...
21.166667
46
0.59252
51
508
5.666667
0.705882
0.145329
0.179931
0.207612
0.33218
0.33218
0.33218
0
0
0
0
0.055866
0.295276
508
23
47
22.086957
0.751397
0.129921
0
0.375
1
0
0.154897
0.05467
0
0
0
0
0
1
0
false
0
0.125
0
0.3125
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
5dcf9c4e03bc7225bdb6ba5b7a29fb4fab24fb93
260
py
Python
tests/tox_banner.py
josven/opensearchmock
0ebfb26fd7061d8b0905378641449adbf388bb94
[ "MIT" ]
null
null
null
tests/tox_banner.py
josven/opensearchmock
0ebfb26fd7061d8b0905378641449adbf388bb94
[ "MIT" ]
null
null
null
tests/tox_banner.py
josven/opensearchmock
0ebfb26fd7061d8b0905378641449adbf388bb94
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import platform import opensearchpy print( "{} {}; Opensearchpy {}".format( platform.python_implementation(), platform.python_version(), opensearchpy.VERSION ) )
16.25
41
0.65
23
260
7.043478
0.608696
0.17284
0
0
0
0
0
0
0
0
0
0.004975
0.226923
260
15
42
17.333333
0.800995
0.080769
0
0
0
0
0.092827
0
0
0
0
0
0
1
0
true
0
0.3
0
0.3
0.2
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
1
0
0
0
0
0
0
2
5dd153f496f558eafd37836c1b8feb856884e27b
618
py
Python
python/easy/1863_Sum_of_All_Subset_XOR_Totals.py
JackWang0107/leetcode
c02932190b639ef87a8d0fcd07d9cd6ec7344a67
[ "MIT" ]
1
2021-05-22T03:27:33.000Z
2021-05-22T03:27:33.000Z
python/easy/1863_Sum_of_All_Subset_XOR_Totals.py
JackWang0107/leetcode
c02932190b639ef87a8d0fcd07d9cd6ec7344a67
[ "MIT" ]
null
null
null
python/easy/1863_Sum_of_All_Subset_XOR_Totals.py
JackWang0107/leetcode
c02932190b639ef87a8d0fcd07d9cd6ec7344a67
[ "MIT" ]
null
null
null
from typing import * from itertools import combinations from functools import reduce from operator import xor class Solution: # 68 ms, faster than 70.76% of Python3 online submissions for Sum of All Subset XOR Totals. # 14.4 MB, less than 25.45% of Python3 online submissions for Sum of All Subset XOR Totals. ...
32.526316
95
0.666667
97
618
4.164948
0.57732
0.044554
0.074257
0.128713
0.257426
0.257426
0.257426
0.257426
0.257426
0.257426
0
0.048319
0.229773
618
19
96
32.526316
0.80042
0.289644
0
0
0
0
0.018307
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.538462
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
5dddc22dfb2c0f5aa9bade819ff2c4303e2cda4c
482
py
Python
gdb-pretty-printer.py
dangelog/strong_typedef
3ea4cd3b54899328721a3e6553356861d667648d
[ "Unlicense" ]
102
2019-05-29T09:59:36.000Z
2022-01-11T16:04:19.000Z
gdb-pretty-printer.py
dangelog/strong_typedef
3ea4cd3b54899328721a3e6553356861d667648d
[ "Unlicense" ]
6
2019-05-30T08:10:57.000Z
2021-12-28T13:16:25.000Z
gdb-pretty-printer.py
dangelog/strong_typedef
3ea4cd3b54899328721a3e6553356861d667648d
[ "Unlicense" ]
9
2019-05-29T20:08:13.000Z
2022-02-07T09:17:31.000Z
import gdb.printing class StrongTypedefPrinter: def __init__(self,val): self.val=val def to_string(self): return "{value=" + str(self.val["value"])+"}" def build_pretty_printer(): pp = gdb.printing.RegexpCollectionPrettyPrinter( "strong_typedef") pp.add_printer('strong_typedef...
25.368421
87
0.695021
54
482
5.907407
0.481481
0.103448
0.112853
0
0
0
0
0
0
0
0
0
0.172199
482
18
88
26.777778
0.799499
0
0
0
0
0
0.136929
0.051867
0
0
0
0
0
1
0.214286
false
0
0.071429
0.071429
0.5
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
1
0
2
5de6a89f2f98f92ebcca98bb76bb9073e924aeb7
2,520
py
Python
powerfulseal/metriccollectors/datadog_collector.py
fahedouch/powerfulseal
64cc58b75200cedc0d74c39eab21fb96f6b46a1f
[ "Apache-2.0" ]
1,362
2017-12-06T20:22:48.000Z
2020-08-24T17:55:49.000Z
powerfulseal/metriccollectors/datadog_collector.py
fahedouch/powerfulseal
64cc58b75200cedc0d74c39eab21fb96f6b46a1f
[ "Apache-2.0" ]
187
2017-12-06T20:03:36.000Z
2020-08-20T06:37:46.000Z
powerfulseal/metriccollectors/datadog_collector.py
fahedouch/powerfulseal
64cc58b75200cedc0d74c39eab21fb96f6b46a1f
[ "Apache-2.0" ]
154
2017-12-06T20:08:12.000Z
2020-08-03T08:02:37.000Z
from powerfulseal.metriccollectors.collector import AbstractCollector from datadog import statsd STATUS_SUCCESS = 'success' STATUS_FAILURE = 'failure' POD_KILLS_METRIC_NAME = 'powerfulseal.pod_kills_total' POD_KILLS = ['status:', 'namespace:', 'name:'] NODE_STOPS_METRIC_NAME = 'powerfulseal.nodes_stopped_total' NODE_...
39.375
94
0.744048
331
2,520
5.23565
0.196375
0.092325
0.046163
0.072706
0.481246
0.411425
0.212349
0.169648
0.169648
0.169648
0
0
0.15754
2,520
63
95
40
0.816298
0.010714
0
0.088889
0
0
0.130611
0.094622
0
0
0
0
0
1
0.222222
false
0.066667
0.044444
0.022222
0.311111
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
b90f93eb0e3b876852d16762380f1ecb39a3e406
357
py
Python
CURSO PYTHON/pythonsexercicios/ex011.py
Sabrinaparussoli/PYTHON
77436608ffd799e9e2bbe4fa5084443fb7382793
[ "MIT" ]
null
null
null
CURSO PYTHON/pythonsexercicios/ex011.py
Sabrinaparussoli/PYTHON
77436608ffd799e9e2bbe4fa5084443fb7382793
[ "MIT" ]
null
null
null
CURSO PYTHON/pythonsexercicios/ex011.py
Sabrinaparussoli/PYTHON
77436608ffd799e9e2bbe4fa5084443fb7382793
[ "MIT" ]
null
null
null
print('-'*12, 'PINTANDO PAREDE', '-'*12) h = float(input('Qual a altura da parede em metros: ')) l = float(input('Qual a largura da parede em metros: ')) a = h * l pintura = a / 2 print('A sua parede tem a dimensão de {:.2f} x {:.2f} e sua area é de {:.2f}m2'.format(h, l, a)) print('Para pinta essa parede, vc irá prec...
44.625
96
0.641457
67
357
3.41791
0.522388
0.087336
0.122271
0.131004
0
0
0
0
0
0
0
0.030612
0.176471
357
8
97
44.625
0.748299
0
0
0
0
0.142857
0.594972
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
f8e6b6ad132e4c0a4994a9a9aa0d26d41292329c
771
py
Python
portfolyo/__init__.py
rwijtvliet/portfolyo
b22948fbc55264ec5d69824e791ca7ef45c6e49c
[ "BSD-3-Clause" ]
null
null
null
portfolyo/__init__.py
rwijtvliet/portfolyo
b22948fbc55264ec5d69824e791ca7ef45c6e49c
[ "BSD-3-Clause" ]
null
null
null
portfolyo/__init__.py
rwijtvliet/portfolyo
b22948fbc55264ec5d69824e791ca7ef45c6e49c
[ "BSD-3-Clause" ]
null
null
null
from .core.pfline import PfLine, SinglePfLine, MultiPfLine from .core.pfstate import PfState from .core.mixins.plot import plot_pfstates from .core import changefreq from . import dev from .core import basics # extend functionalty of pandas basics.apply() # Methods/attributes directly available at package root. fr...
24.09375
58
0.774319
106
771
5.40566
0.575472
0.069808
0.048866
0
0
0
0
0
0
0
0
0
0.156939
771
31
59
24.870968
0.881538
0.108949
0
0
0
0
0.010234
0
0
0
0
0
0
1
0
false
0
0.541667
0
0.541667
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
5d08915a056188693a03eed58432ff96edfa7989
312
py
Python
Chambers_Jess/Assignments/Names.py
webguru001/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
5
2019-05-17T01:30:02.000Z
2021-06-17T21:02:58.000Z
Chambers_Jess/Assignments/Names.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
Chambers_Jess/Assignments/Names.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
students = [ {'first_name' : 'Michael', 'last_name' : 'Jordan'}, {'first_name' : 'John', 'last_name' : 'Rosales'}, {'first_name' : 'Mark', 'last_name' : 'Guillen'}, {'first_name' : 'KB', 'last_name' : 'Tonel'} ] for list in students: print list['first_name'] + " " + list['last_name']
28.363636
57
0.560897
36
312
4.583333
0.444444
0.272727
0
0
0
0
0
0
0
0
0
0
0.211538
312
10
58
31.2
0.670732
0
0
0
0
0
0.44373
0
0
0
0
0
0
0
null
null
0
0
null
null
0.125
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
5d111dd143649a249fde3c2cbc2b9338298b3467
2,490
py
Python
src/design/migrations/0001_initial.py
maumg1196/GearDesign
35aaeaab9b0eaa187c585fe68242cfa8bd3de9a7
[ "MIT" ]
null
null
null
src/design/migrations/0001_initial.py
maumg1196/GearDesign
35aaeaab9b0eaa187c585fe68242cfa8bd3de9a7
[ "MIT" ]
null
null
null
src/design/migrations/0001_initial.py
maumg1196/GearDesign
35aaeaab9b0eaa187c585fe68242cfa8bd3de9a7
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-31 18:45 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
54.130435
118
0.616466
283
2,490
5.325088
0.342756
0.138686
0.146649
0.191772
0.546118
0.546118
0.50564
0.50564
0.359655
0.359655
0
0.00792
0.239357
2,490
45
119
55.333333
0.787751
0.018072
0
0
1
0
0.155137
0
0
0
0
0
0
1
0
false
0
0.078947
0
0.184211
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
5d2956e200c3ca75b20df2171dfbe49b8d14c239
1,242
py
Python
plans/taxation/__init__.py
kevwilde/django-plans
ab45d85cd744a3dfd01646121fc6d86a83e0f7c5
[ "MIT" ]
1
2019-04-01T05:52:37.000Z
2019-04-01T05:52:37.000Z
plans/taxation/__init__.py
kevwilde/django-plans
ab45d85cd744a3dfd01646121fc6d86a83e0f7c5
[ "MIT" ]
2
2015-06-11T07:44:21.000Z
2015-06-11T07:47:31.000Z
plans/taxation/__init__.py
kevwilde/django-plans
ab45d85cd744a3dfd01646121fc6d86a83e0f7c5
[ "MIT" ]
null
null
null
from django.conf import settings class TaxationPolicy(object): """ Abstract class for defining taxation policies. Taxation policy is a way to handle what tax rate should be put on the order, this depends on user billing data. Custom taxation policy should implement only method ``get_default_tax(va...
28.883721
98
0.651369
155
1,242
5.096774
0.496774
0.035443
0.064557
0.037975
0
0
0
0
0
0
0
0.001101
0.268921
1,242
42
99
29.571429
0.868943
0.522544
0
0.272727
0
0
0.12528
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
5d2a54c559f7d97326034d0850d3b0344ad39b06
2,969
py
Python
pypddl_parser/term.py
TmanHef/SCPPP-Algs
468d5ec68c853f5d7126d846b66ab420bddfe47e
[ "MIT" ]
null
null
null
pypddl_parser/term.py
TmanHef/SCPPP-Algs
468d5ec68c853f5d7126d846b66ab420bddfe47e
[ "MIT" ]
null
null
null
pypddl_parser/term.py
TmanHef/SCPPP-Algs
468d5ec68c853f5d7126d846b66ab420bddfe47e
[ "MIT" ]
null
null
null
# This file is part of pypddl_parser. # pypddl_parser is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # pypddl_parser is distributed ...
30.295918
92
0.621421
404
2,969
4.388614
0.252475
0.049633
0.071066
0.027073
0.204174
0.118443
0.062042
0.041737
0.041737
0.041737
0
0.004171
0.273156
2,969
97
93
30.608247
0.817424
0.235096
0
0.129032
0
0
0.031887
0
0
0
0
0
0
1
0.274194
false
0
0
0.209677
0.532258
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
5d2b82a8634f681c5e8caf06fbfe6e238f810f4b
3,695
py
Python
tests/test_offline.py
massanchik/monero-python
5699c26f6ba0a64f50ac065ebe0419daf01fd993
[ "BSD-3-Clause" ]
2
2019-11-18T02:38:45.000Z
2020-09-24T09:16:42.000Z
tests/test_offline.py
massanchik/monero-python
5699c26f6ba0a64f50ac065ebe0419daf01fd993
[ "BSD-3-Clause" ]
13
2019-03-18T16:01:19.000Z
2019-09-04T08:32:40.000Z
tests/test_offline.py
massanchik/monero-python
5699c26f6ba0a64f50ac065ebe0419daf01fd993
[ "BSD-3-Clause" ]
2
2019-04-29T14:22:34.000Z
2019-05-20T16:36:37.000Z
from monero.backends.offline import OfflineWallet, WalletIsOffline from monero.wallet import Wallet import unittest from .base import JSONTestCase class OfflineTest(unittest.TestCase): addr = '47ewoP19TN7JEEnFKUJHAYhGxkeTRH82sf36giEp9AcNfDBfkAtRLX7A6rZz18bbNHPNV7ex6WYbMN3aKisFRJZ8Ebsmgef' svk = '6d9056aa2c096...
46.1875
108
0.739378
327
3,695
8.253823
0.269113
0.096332
0.149315
0.168581
0.367173
0.300111
0.172657
0.101519
0.046684
0.046684
0
0.127362
0.169148
3,695
79
109
46.772152
0.751792
0
0
0.095238
0
0
0.24276
0.224087
0
0
0
0
0.333333
1
0.095238
false
0
0.095238
0
0.507937
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
5d31776e48b60db2c92f43f79a032509d845e2c5
1,067
py
Python
tests/bug_test.py
mehulved/bugcatcher
1f46312b5f4ea652a2740455fa2bb012c6385546
[ "Apache-2.0" ]
1
2020-01-29T15:51:16.000Z
2020-01-29T15:51:16.000Z
tests/bug_test.py
mehulved/bugcatcher
1f46312b5f4ea652a2740455fa2bb012c6385546
[ "Apache-2.0" ]
null
null
null
tests/bug_test.py
mehulved/bugcatcher
1f46312b5f4ea652a2740455fa2bb012c6385546
[ "Apache-2.0" ]
null
null
null
import os import tempfile import unittest import sys import simplejson as json sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))) import bug class BugTestCase(unittest.TestCase): def setUp(self): self.db_fd, bug.app.config['SQLALCHEMY_DATABASE_URI'] = tempfile.mkstem...
27.358974
89
0.66448
146
1,067
4.678082
0.458904
0.043924
0.052709
0.064422
0.140556
0.096633
0
0
0
0
0
0
0.210872
1,067
38
90
28.078947
0.811164
0
0
0
0
0
0.109756
0.043152
0
0
0
0
0.068966
1
0.206897
false
0
0.206897
0.068966
0.517241
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
5d37652face5b3a2ee15bd48c1f5e367089192ef
1,160
py
Python
sp/base/Exceptions.py
sodaphish/break
7f3eae619904eb4488c1067a768d93f41bb7c816
[ "MIT" ]
null
null
null
sp/base/Exceptions.py
sodaphish/break
7f3eae619904eb4488c1067a768d93f41bb7c816
[ "MIT" ]
null
null
null
sp/base/Exceptions.py
sodaphish/break
7f3eae619904eb4488c1067a768d93f41bb7c816
[ "MIT" ]
null
null
null
class Generic(Exception): pass class ConfigFault(Exception): """ Fault in configuration file syntax/formatting. """ pass class Dependency(Exception): """ A dependency error has occurred. """ pass class DatabaseConnectError(Exception): """ database connection error...
14.5
85
0.632759
108
1,160
6.796296
0.444444
0.134877
0.073569
0.06812
0.133515
0.133515
0.133515
0.133515
0
0
0
0.001188
0.274138
1,160
79
86
14.683544
0.870546
0.356034
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
2
5d41218b2964d46bbf794481d48e33304f43ec57
214
py
Python
setup.py
531464049/PythonLearning
40678e626ca5dce9f9f56a278525381b002f52cd
[ "Apache-2.0" ]
null
null
null
setup.py
531464049/PythonLearning
40678e626ca5dce9f9f56a278525381b002f52cd
[ "Apache-2.0" ]
null
null
null
setup.py
531464049/PythonLearning
40678e626ca5dce9f9f56a278525381b002f52cd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Author : mh from setuptools import setup setup( name='hello', version='1.0', description='simple simple', author='mh', py_modules=['hello'])
16.461538
32
0.598131
27
214
4.703704
0.814815
0.125984
0
0
0
0
0
0
0
0
0
0.023669
0.21028
214
12
33
17.833333
0.727811
0.266355
0
0
0
0
0.181818
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
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
1
0
0
0
0
0
0
2
5d4cd97d7d5f6646eca2a8658facb13e21cd827b
1,068
py
Python
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Analyses/Mission/Segments/Conditions/Unknowns.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Analyses/Mission/Segments/Conditions/Unknowns.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Analyses/Mission/Segments/Conditions/Unknowns.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
## @ingroup Analyses-Mission-Segments-Conditions # Unknowns.py # # Created: # Modified: Feb 2016, Andrew Wendorff # ---------------------------------------------------------------------- # Imports # ---------------------------------------------------------------------- from .Conditions import Conditions # -------...
22.723404
76
0.370787
66
1,068
5.939394
0.636364
0.076531
0.112245
0.153061
0.204082
0
0
0
0
0
0
0.00545
0.312734
1,068
47
77
22.723404
0.52861
0.627341
0
0
0
0
0.045455
0
0
0
0
0
0
1
0.25
false
0
0.25
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
1
0
0
0
0
1
0
0
2
5d612c3f9ad435ed1ecf855af166410ae05a6e5c
4,012
py
Python
plumy/Sensor.py
sesutton93/exploiting_plume_structure
75f0701f7807cb4e6fa14750b695512de744db29
[ "MIT" ]
null
null
null
plumy/Sensor.py
sesutton93/exploiting_plume_structure
75f0701f7807cb4e6fa14750b695512de744db29
[ "MIT" ]
null
null
null
plumy/Sensor.py
sesutton93/exploiting_plume_structure
75f0701f7807cb4e6fa14750b695512de744db29
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jan 28 15:58:31 2014 @author: viktor plumy.Sensor - A Metal-Oxide-Sensor representation The Sensor Class is the lowest link in our Object Oriented Data Model, thus representing the smallest possible contributor to the Dataset. There are 6 x 9 x 8 = 432 Sensors in the plumy ...
28.453901
87
0.590977
492
4,012
4.656504
0.329268
0.039721
0.014404
0.018333
0.06591
0.01746
0
0
0
0
0
0.009636
0.301595
4,012
140
88
28.657143
0.807994
0.218843
0
0.130435
0
0.014493
0.071008
0
0
0
0
0.014286
0.057971
1
0.202899
false
0
0.057971
0
0.391304
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
5d622eb6f7332e4c1f9526b2be6d4c4e8ea8b92d
417
py
Python
Exercicios/ex003.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
2
2021-11-13T13:52:56.000Z
2022-03-29T18:10:27.000Z
Exercicios/ex003.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
null
null
null
Exercicios/ex003.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
null
null
null
n1 = int(input('digite um numero:')) n2 = int(input('digite outro:')) s = n1 + n2 cores = {'limpa': '\033[m', 'vermelho': '\033[0;31m', 'amarelo': '\033[0;33m'} print('a soma entre {}{}{} e {}{}{} corresponde {}{}'.format(cores['amarelo'], n1, cores['limpa'], cores['amarelo'], n2, ...
41.7
120
0.47482
48
417
4.125
0.520833
0.20202
0.141414
0
0
0
0
0
0
0
0
0.070234
0.282974
417
9
121
46.333333
0.591973
0
0
0
0
0
0.378897
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
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
5d6bf1b5c281b8131eb9d4030a81b471a8bd546e
4,342
py
Python
vk_air/objects/donut.py
sultan1k/vk_air
110864a370914afebbeb4fa27ee382a5bbbed516
[ "MIT" ]
5
2021-12-02T14:41:54.000Z
2022-02-17T18:20:36.000Z
vk_air/objects/donut.py
sultan1k/vk_air
110864a370914afebbeb4fa27ee382a5bbbed516
[ "MIT" ]
null
null
null
vk_air/objects/donut.py
sultan1k/vk_air
110864a370914afebbeb4fa27ee382a5bbbed516
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021 sultan1k Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dist...
25.845238
78
0.643252
554
4,342
4.900722
0.272563
0.092818
0.095764
0.117864
0.45267
0.430939
0.413996
0.390792
0.376427
0.361326
0
0.001558
0.260709
4,342
168
79
25.845238
0.844237
0.307692
0
0.684783
0
0
0.075721
0.015283
0
0
0
0
0
1
0.304348
false
0
0.01087
0.217391
0.619565
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
53774c6f87cd54c8ec0a5ce4c1bd9ec3bdfdbe7a
1,000
py
Python
python-pscheduler/pscheduler/tests/psselect_test.py
igarny/pscheduler
0ab6e68bb3adb808e1116bab0eb7438bf4c31e2c
[ "Apache-2.0" ]
null
null
null
python-pscheduler/pscheduler/tests/psselect_test.py
igarny/pscheduler
0ab6e68bb3adb808e1116bab0eb7438bf4c31e2c
[ "Apache-2.0" ]
null
null
null
python-pscheduler/pscheduler/tests/psselect_test.py
igarny/pscheduler
0ab6e68bb3adb808e1116bab0eb7438bf4c31e2c
[ "Apache-2.0" ]
null
null
null
""" test for the select module. """ import unittest from base_test import PschedTestBase from pscheduler.psselect import * class TestPsselect(PschedTestBase): """ Select tests. """ def test_empty(self): """All-empty select with a very short timeout""" self.assertEqual( ...
20.833333
58
0.472
97
1,000
4.690722
0.443299
0.061538
0.184615
0.237363
0.32967
0.246154
0.246154
0.246154
0.246154
0.246154
0
0.026114
0.349
1,000
47
59
21.276596
0.672811
0.084
0
0.142857
0
0
0.030405
0
0
0
0
0
0.142857
1
0.142857
false
0
0.107143
0
0.285714
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
5379cafd63e9f1712ffcbfcc8a6bd8886d21c951
504
py
Python
defectio/models/mixins.py
Darkflame72/revolt.py
9bb8ca695bd423d9237788b59f79aa3d52946036
[ "MIT" ]
26
2021-08-29T02:56:52.000Z
2022-03-11T06:44:22.000Z
defectio/models/mixins.py
Darkflame72/revolt.py
9bb8ca695bd423d9237788b59f79aa3d52946036
[ "MIT" ]
36
2021-09-03T02:18:28.000Z
2022-03-01T08:27:57.000Z
defectio/models/mixins.py
Darkflame72/revolt.py
9bb8ca695bd423d9237788b59f79aa3d52946036
[ "MIT" ]
18
2021-08-29T17:37:58.000Z
2022-03-31T15:08:15.000Z
__all__ = ( "EqualityComparable", "Hashable", ) class EqualityComparable: __slots__ = () id: str def __eq__(self, other: object) -> bool: return isinstance(other, self.__class__) and other.id == self.id def __ne__(self, other: object) -> bool: if isinstance(other, self.__cla...
19.384615
72
0.613095
54
504
5.12963
0.388889
0.064982
0.108303
0.137184
0
0
0
0
0
0
0
0
0.269841
504
25
73
20.16
0.752717
0
0
0.117647
0
0
0.051587
0
0
0
0
0
0
1
0.176471
false
0
0
0.117647
0.705882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
5399a21f7a997f593c9bc58912572da3999396f9
394
py
Python
dorado/scheduling/__init__.py
bwgref/dorado-scheduling
f3f8784bcc0646d10b7bc2c11040ef9c933b92b1
[ "NASA-1.3" ]
null
null
null
dorado/scheduling/__init__.py
bwgref/dorado-scheduling
f3f8784bcc0646d10b7bc2c11040ef9c933b92b1
[ "NASA-1.3" ]
null
null
null
dorado/scheduling/__init__.py
bwgref/dorado-scheduling
f3f8784bcc0646d10b7bc2c11040ef9c933b92b1
[ "NASA-1.3" ]
null
null
null
# # Copyright © 2021 United States Government as represented by the Administrator # of the National Aeronautics and Space Administration. No copyright is claimed # in the United States under Title 17, U.S. Code. All Other Rights Reserved. # # SPDX-License-Identifier: NASA-1.3 # from .fov import FOV from .orbit import O...
32.833333
79
0.761421
60
394
4.9
0.716667
0.081633
0
0
0
0
0
0
0
0
0
0.024024
0.154822
394
11
80
35.818182
0.855856
0.670051
0
0
0
0
0.139344
0
0
0
0
0
0
1
0
false
0
0.75
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
53a2be1291956932a53b1f57f2cc537c083de39a
741
py
Python
webapp/app/__init__.py
britiger/simple_tracking
7b9a6b1751a701517d2b34f6cb58af5cef5db5c0
[ "MIT" ]
null
null
null
webapp/app/__init__.py
britiger/simple_tracking
7b9a6b1751a701517d2b34f6cb58af5cef5db5c0
[ "MIT" ]
1
2021-11-17T08:22:49.000Z
2021-11-19T09:42:42.000Z
webapp/app/__init__.py
britiger/simple_tracking
7b9a6b1751a701517d2b34f6cb58af5cef5db5c0
[ "MIT" ]
null
null
null
from flask import Flask, request, current_app from config import Config from flask_sqlalchemy import SQLAlchemy from flask_babel import Babel from json import loads db = SQLAlchemy() babel = Babel() def create_app(config_class=Config): app = Flask(__name__) app.config.from_object(config_class) db.init_ap...
23.903226
79
0.755735
107
741
5
0.364486
0.050467
0.037383
0.082243
0
0
0
0
0
0
0
0
0.17139
741
30
80
24.7
0.871336
0.033738
0
0
0
0
0.012605
0
0
0
0
0
0
1
0.095238
false
0
0.333333
0.047619
0.52381
0.095238
0
0
0
null
0
0
0
0
0
0
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
53a3a12f54a7ef1885abe5efb80abdd991c7dd37
8,087
py
Python
test/test_hpybuildvalue.py
qunaibit/hpy
055a9f4bf42a0fa722e1e6989385357faa0e1d1b
[ "MIT" ]
1
2021-12-24T19:16:27.000Z
2021-12-24T19:16:27.000Z
test/test_hpybuildvalue.py
fangerer/hpy
8a276d3e809d0e2d5807aa82b64372b51a0e212c
[ "MIT" ]
null
null
null
test/test_hpybuildvalue.py
fangerer/hpy
8a276d3e809d0e2d5807aa82b64372b51a0e212c
[ "MIT" ]
null
null
null
from .support import HPyTest class TestBuildValue(HPyTest): def make_tests_module(self, test_cases): # Creates a module with function "f", that takes index of a test case # to execute. Argument test_cases should be a tuple with first item # being C code of the test case. # Generat...
40.638191
107
0.505997
975
8,087
4.018462
0.172308
0.169219
0.167432
0.213374
0.578101
0.499234
0.410158
0.352476
0.271822
0.262889
0
0.028773
0.351057
8,087
198
108
40.843434
0.717797
0.043403
0
0.281609
0
0.005747
0.622073
0.022254
0
0
0
0
0.068966
1
0.045977
false
0.045977
0.017241
0
0.126437
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
53abdd792d0298408b75a919a4b70cc165734b13
4,751
py
Python
usaspending_api/references/tests/test_financial_spending.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
null
null
null
usaspending_api/references/tests/test_financial_spending.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
3
2020-02-12T01:16:46.000Z
2021-06-10T20:36:57.000Z
usaspending_api/references/tests/test_financial_spending.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
null
null
null
import pytest from model_mommy import mommy from rest_framework import status @pytest.fixture def financial_spending_data(db): # Create 2 objects that should be returned and one that should not. # Create AGENCY AND TopTier AGENCY For FinancialAccountsByProgramActivityObjectClass objects ttagency1 = mommy...
53.382022
120
0.738371
595
4,751
5.610084
0.223529
0.12852
0.052726
0.023966
0.727981
0.727981
0.727981
0.662972
0.618634
0.510485
0
0.039547
0.164386
4,751
88
121
53.988636
0.801259
0.150705
0
0.388889
0
0
0.294309
0.223914
0
0
0
0
0.203704
1
0.055556
false
0
0.055556
0
0.111111
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
53adabf39d632d4ab7515427139b220661fb8b4e
422
py
Python
pyutils/_nbdev.py
choct155/pyutils
5802880dca75753c34b8eeeda330ba395d6f0b5e
[ "MIT" ]
1
2021-02-22T17:37:03.000Z
2021-02-22T17:37:03.000Z
pyutils/_nbdev.py
choct155/pyutils
5802880dca75753c34b8eeeda330ba395d6f0b5e
[ "MIT" ]
1
2021-02-22T01:51:57.000Z
2021-02-22T01:51:57.000Z
pyutils/_nbdev.py
choct155/pyutils
5802880dca75753c34b8eeeda330ba395d6f0b5e
[ "MIT" ]
null
null
null
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"foldl_list": "list.ipynb", "A": "list.ipynb", "B": "list.ipynb", "foldr_list": "list.ipynb"} modules = ["pycollections/list.py"] doc_url = "https://choct155.github.io/pyutils/" ...
24.823529
61
0.649289
56
422
4.660714
0.607143
0.137931
0.10728
0
0
0
0
0
0
0
0
0.016997
0.163507
422
16
62
26.375
0.72238
0.085308
0
0
1
0
0.523438
0.054688
0
0
0
0
0
1
0.111111
false
0
0
0.111111
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
2
53bcf4d3e59b70cbc198ddf9534ab521d24e1030
236
py
Python
synapse_antispam/setup.py
hidraulicChicken/mjolnir
32a063bc497bfa7339c248539ef52fa8f9c14b3c
[ "Apache-2.0" ]
153
2019-09-26T06:25:20.000Z
2022-03-31T10:12:12.000Z
synapse_antispam/setup.py
hidraulicChicken/mjolnir
32a063bc497bfa7339c248539ef52fa8f9c14b3c
[ "Apache-2.0" ]
217
2019-10-07T20:18:24.000Z
2022-03-31T07:08:18.000Z
synapse_antispam/setup.py
hidraulicChicken/mjolnir
32a063bc497bfa7339c248539ef52fa8f9c14b3c
[ "Apache-2.0" ]
35
2020-01-24T22:52:47.000Z
2022-03-28T00:58:08.000Z
from setuptools import setup, find_packages setup( name="mjolnir", version="0.0.1", packages=find_packages(), description="Mjolnir Antispam", include_package_data=True, zip_safe=True, install_requires=[], )
19.666667
43
0.690678
28
236
5.607143
0.75
0.152866
0
0
0
0
0
0
0
0
0
0.015625
0.186441
236
11
44
21.454545
0.802083
0
0
0
0
0
0.118644
0
0
0
0
0
0
1
0
true
0
0.1
0
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
1
0
0
0
0
0
0
2
53c83a1e7176db2c4a23fea70c467852d755fa91
1,905
py
Python
kitsune/landings/views.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
kitsune/landings/views.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
kitsune/landings/views.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import get_list_or_404, render from django.views.decorators.cache import never_cache from mobility.decorators import mobile_template from kitsune.products.models import Product, Topic, HOT_TOPIC_SLUG from kitsune.sumo.parser import get_object_fallback from kitsune.sumo.views import redirect_to f...
28.863636
66
0.76168
250
1,905
5.632
0.288
0.078125
0.09446
0.099432
0.287642
0.287642
0.230114
0.230114
0.230114
0.230114
0
0.004237
0.132808
1,905
65
67
29.307692
0.848063
0.048819
0
0.125
0
0
0.162132
0.125486
0
0
0
0
0
1
0.2
false
0
0.2
0.15
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
53ce03c96081c5d56dcee8c2d6234f7cc939e7a5
1,041
py
Python
elfi/__init__.py
diadochos/elfi
f2932297d686403950f7f55a290cd25af10dbda6
[ "BSD-3-Clause" ]
null
null
null
elfi/__init__.py
diadochos/elfi
f2932297d686403950f7f55a290cd25af10dbda6
[ "BSD-3-Clause" ]
null
null
null
elfi/__init__.py
diadochos/elfi
f2932297d686403950f7f55a290cd25af10dbda6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # flake8: noqa """Engine for Likelihood-Free Inference (ELFI) is a statistical software package for likelihood-free inference (LFI) such as Approximate Bayesian Computation (ABC). """ import elfi.clients.native import elfi.methods.mcmc import elfi.model.tools as tools from elfi.client import ...
34.7
72
0.815562
147
1,041
5.591837
0.55102
0.107056
0.091241
0.06326
0.097324
0
0
0
0
0
0
0.0054
0.110471
1,041
29
73
35.896552
0.882289
0.256484
0
0
0
0
0.048366
0
0
0
0
0
0
1
0
false
0
0.823529
0
0.823529
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
53ced59568d41ebef68b77d3bdf36528a3565d0d
13,831
py
Python
tests/test_services/test_set_302.py
ucloud/ucloud-sdk-python2
90fb43198df73a78d64bbd98675dc7b302856057
[ "Apache-2.0" ]
19
2019-05-15T13:41:58.000Z
2019-11-13T09:09:37.000Z
tests/test_services/test_set_302.py
ucloud/ucloud-sdk-python2
90fb43198df73a78d64bbd98675dc7b302856057
[ "Apache-2.0" ]
9
2019-07-24T08:31:33.000Z
2020-09-22T04:01:46.000Z
tests/test_services/test_set_302.py
ucloud/ucloud-sdk-python2
90fb43198df73a78d64bbd98675dc7b302856057
[ "Apache-2.0" ]
3
2019-06-18T00:22:07.000Z
2020-04-24T02:28:06.000Z
# -*- coding: utf-8 -*- """ Code is generated by ucloud-model, DO NOT EDIT IT. """ import pytest import logging from ucloud.core import exc from ucloud.testing import env, funcs, op, utest logger = logging.getLogger(__name__) scenario = utest.Scenario(302) @pytest.mark.skipif(env.is_ut(), reason=env.get_skip_reason...
28.935146
80
0.612826
1,667
13,831
4.880624
0.111578
0.10767
0.048181
0.03675
0.789208
0.696288
0.653269
0.636062
0.626967
0.626967
0
0.026368
0.229484
13,831
477
81
28.995807
0.737074
0.00535
0
0.627586
1
0
0.206909
0.043927
0
0
0
0
0
1
0.043678
false
0.004598
0.009195
0
0.094253
0
0
0
0
null
0
0
0
0
0
0
0
0
1
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
53d7459fbe64bf2eb4874012ac2c312138130eac
10,537
py
Python
apps/seqan_tcoffee/tests/run_tests.py
kneubert/seqan
3c4f01dbe67ead02b1ca957b217309493f1ddccf
[ "BSD-3-Clause" ]
1
2016-12-09T01:44:56.000Z
2016-12-09T01:44:56.000Z
apps/seqan_tcoffee/tests/run_tests.py
kreinert/seqan
6c84fd1f4e6d2ad9795a86819959de7c942bb92e
[ "BSD-3-Clause" ]
null
null
null
apps/seqan_tcoffee/tests/run_tests.py
kreinert/seqan
6c84fd1f4e6d2ad9795a86819959de7c942bb92e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 """Execute the tests for the seqan_tcoffee program. The golden test outputs are generated by the script generate_outputs.sh. You have to give the root paths to the source and the binaries as arguments to the program. These are the paths to the directory that contains the 'projects' directory. ...
39.171004
79
0.460093
1,234
10,537
3.824959
0.15235
0.097458
0.05911
0.072034
0.670551
0.606144
0.562712
0.46928
0.421186
0.386229
0
0.016461
0.313941
10,537
268
80
39.317164
0.636464
0.142735
0
0.513089
1
0
0.162734
0.013484
0
0
0
0.003731
0
0
null
null
0
0.020942
null
null
0.057592
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
53dfcb09e9e0a055f243972a75eef737cb04c20a
964
py
Python
pyrcn/postprocessing/_normal_distribution.py
TUD-STKS/PyRCN
26fb7f0d55e8c8925f692191c56db2ea32e3f630
[ "BSD-3-Clause" ]
35
2020-07-21T18:11:01.000Z
2022-03-28T01:31:11.000Z
pyrcn/postprocessing/_normal_distribution.py
TUD-STKS/PyRCN
26fb7f0d55e8c8925f692191c56db2ea32e3f630
[ "BSD-3-Clause" ]
21
2020-12-30T14:25:26.000Z
2021-12-02T10:34:43.000Z
pyrcn/postprocessing/_normal_distribution.py
TUD-STKS/PyRCN
26fb7f0d55e8c8925f692191c56db2ea32e3f630
[ "BSD-3-Clause" ]
10
2020-07-15T11:22:21.000Z
2022-03-18T10:27:47.000Z
import scipy import scipy.stats import numpy as np from sklearn.base import BaseEstimator, TransformerMixin from sklearn.utils import check_random_state from sklearn.exceptions import NotFittedError from sklearn.cluster import KMeans from sklearn.preprocessing import StandardScaler from sklearn.decomposition import PC...
31.096774
88
0.735477
129
964
5.317829
0.403101
0.112245
0.026239
0.043732
0.055394
0
0
0
0
0
0
0.005076
0.182573
964
30
89
32.133333
0.865482
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.416667
0.041667
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
53e5d4efa4da1d2db926d5d42b73073814c3f38f
274
py
Python
Recursion/CodingNinjas/Recursion2/Find_Subsequences_Print.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Recursion/CodingNinjas/Recursion2/Find_Subsequences_Print.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
Recursion/CodingNinjas/Recursion2/Find_Subsequences_Print.py
prash-kr-meena/GoogleR
27aca71e51cc2442e604e07ab00406a98d8d63a4
[ "Apache-2.0" ]
null
null
null
from Recursion.Aditya_Verma.Input_Output_Method.Subsets_Powerset_Subsequence.Of_String.Not_Handling_Duplicate_Characters.Print__All_Subsets__Idx_Impl import \ print_all_string_subsets if __name__ == '__main__': string = input() print_all_string_subsets(string)
39.142857
158
0.843066
36
274
5.611111
0.666667
0.118812
0.138614
0.207921
0
0
0
0
0
0
0
0
0.094891
274
6
159
45.666667
0.814516
0
0
0
0
0
0.029197
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
53ef4553aa0d5cb63865cff33477619c2ea92b6e
679
py
Python
src/spark_etl/exceptions.py
stonezhong/spark_etl
1f227a09e916ba9036f03822a76512e409894763
[ "MIT" ]
null
null
null
src/spark_etl/exceptions.py
stonezhong/spark_etl
1f227a09e916ba9036f03822a76512e409894763
[ "MIT" ]
1
2021-02-10T03:52:08.000Z
2021-02-19T11:53:37.000Z
src/spark_etl/exceptions.py
stonezhong/spark_etl
1f227a09e916ba9036f03822a76512e409894763
[ "MIT" ]
2
2021-02-20T04:36:40.000Z
2021-04-24T08:47:50.000Z
class SparkETLException(Exception): """Base class for exception raised from spark_etl package""" def __init__(self, message, cause=None): super(SparkETLException, self).__init__(message) self.cause = cause class SparkETLDeploymentFailure(SparkETLException): """spark-etl failed to deploy an ...
39.941176
77
0.736377
72
679
6.597222
0.347222
0.126316
0.069474
0.113684
0.501053
0.256842
0.256842
0.189474
0.189474
0
0
0
0.159057
679
16
78
42.4375
0.831874
0.20324
0
0.3
0
0
0
0
0
0
0
0
0
1
0.3
false
0
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
0
0
0
1
0
0
2
53f4258937e0cf36f2c0b386143d8401240112e9
7,800
py
Python
tests/test_Project/test_properties.py
Yobmod/git-pandas
4d7ce11f4afedb1a89f8bde097ed80b2f63db7f5
[ "BSD-3-Clause" ]
null
null
null
tests/test_Project/test_properties.py
Yobmod/git-pandas
4d7ce11f4afedb1a89f8bde097ed80b2f63db7f5
[ "BSD-3-Clause" ]
null
null
null
tests/test_Project/test_properties.py
Yobmod/git-pandas
4d7ce11f4afedb1a89f8bde097ed80b2f63db7f5
[ "BSD-3-Clause" ]
null
null
null
import os import stat import unittest import shutil import time import git from gitpandas import ProjectDirectory __author__ = 'willmcginnis' class TestProperties(unittest.TestCase): """ For now this is using the git-python repo for tests. This probably isn't a great idea, we should really be either mock...
36.619718
113
0.593333
1,014
7,800
4.423077
0.206114
0.096321
0.066667
0.026756
0.527982
0.46845
0.412709
0.30903
0.270234
0.224303
0
0.026338
0.250385
7,800
212
114
36.792453
0.740722
0.833846
0
0
0
0
0.097797
0.034361
0
0
0
0
0.230769
1
0.230769
false
0
0.269231
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
9904828c128ac05781cf2d0aa30d622ebe83abca
6,306
py
Python
Trabalho IBD/tp2.py
nataliaellem/Learning_SQL
7ca98660398781f9a17e23a2c8c23df1955a8ef8
[ "MIT" ]
1
2021-10-21T00:06:17.000Z
2021-10-21T00:06:17.000Z
Trabalho IBD/tp2.py
nataliaellem/Learning_SQL
7ca98660398781f9a17e23a2c8c23df1955a8ef8
[ "MIT" ]
null
null
null
Trabalho IBD/tp2.py
nataliaellem/Learning_SQL
7ca98660398781f9a17e23a2c8c23df1955a8ef8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """tp2.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1ACocFRFXhA5iyJsfeQrNIoOGZ1zrzala """ import io import sqlite3 import pandas as pd from pathlib import Path # Como os cpf's dos beneficiários não estão completos, ou ...
24.253846
137
0.724231
897
6,306
4.934225
0.22408
0.054903
0.028468
0.022368
0.294171
0.196566
0.150474
0.12291
0.075011
0.02779
0
0.019954
0.165557
6,306
260
138
24.253846
0.821171
0.294799
0
0.393939
1
0
0.748356
0.09567
0
0
0
0
0
1
0
false
0
0.024242
0
0.024242
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
99056961a0ec46365e3555dc7a7ac2c60fcdb8df
903
py
Python
cheap_repr/utils.py
gpshead/cheap_repr
076d1ebf4aa02f50093f6bea9b8368fa38a91837
[ "MIT" ]
19
2018-02-04T23:29:45.000Z
2022-01-03T14:34:30.000Z
cheap_repr/utils.py
gpshead/cheap_repr
076d1ebf4aa02f50093f6bea9b8368fa38a91837
[ "MIT" ]
15
2018-07-25T18:33:07.000Z
2021-09-18T11:10:50.000Z
cheap_repr/utils.py
gpshead/cheap_repr
076d1ebf4aa02f50093f6bea9b8368fa38a91837
[ "MIT" ]
6
2017-11-19T17:15:30.000Z
2021-10-08T00:55:51.000Z
import traceback from sys import version_info try: from qualname import qualname except ImportError: def qualname(cls): return cls.__qualname__ PY2 = version_info[0] == 2 PY3 = not PY2 if PY2: def viewitems(d): return d.viewitems() else: def viewitems(d): return d.items() d...
20.066667
75
0.65227
112
903
5
0.419643
0.107143
0.096429
0.123214
0.071429
0
0
0
0
0
0
0.008863
0.250277
903
44
76
20.522727
0.818316
0.021041
0
0.129032
0
0
0.00907
0
0
0
0
0
0.032258
1
0.193548
false
0
0.129032
0.129032
0.516129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
99088d1abfe8e81fa13cec57707b5877167e5a61
1,651
py
Python
kive/portal/views.py
cfe-lab/Kive
e46b9eb40f085d579c12f47b6b5696d5ee93a9d3
[ "BSD-3-Clause" ]
2
2016-10-02T18:24:53.000Z
2019-01-19T09:37:56.000Z
kive/portal/views.py
dmacmillan/Kive
76bc8f289f66fb133f78cb6d5689568b7d015915
[ "BSD-3-Clause" ]
1,190
2015-07-10T22:57:23.000Z
2022-03-30T05:10:14.000Z
kive/portal/views.py
dmacmillan/Kive
76bc8f289f66fb133f78cb6d5689568b7d015915
[ "BSD-3-Clause" ]
2
2019-07-16T00:25:25.000Z
2019-11-25T16:32:58.000Z
""" portal.views """ from django.http import HttpResponse, HttpResponseRedirect from django.template import loader from django.contrib.auth.decorators import login_required, user_passes_test from django.views.generic.base import ContextMixin from constants import groups def developer_check(user): return user.gro...
26.206349
93
0.71169
202
1,651
5.633663
0.311881
0.077329
0.039543
0.047452
0.217926
0.115993
0
0
0
0
0
0
0.178074
1,651
62
94
26.629032
0.838615
0.057541
0
0.142857
0
0
0.065868
0
0
0
0
0
0
1
0.171429
false
0.057143
0.142857
0.057143
0.542857
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
54caac6e0e19450dd8a037c3213f9b4c75faa6c0
431
py
Python
reportsrender/__init__.py
grst/reportsrender
ed2ba62f9b4dcded07bde252caf2708ca68f1af7
[ "MIT" ]
11
2020-01-08T11:50:33.000Z
2021-12-12T16:02:11.000Z
reportsrender/__init__.py
grst/reportsrender
ed2ba62f9b4dcded07bde252caf2708ca68f1af7
[ "MIT" ]
19
2019-10-08T16:48:18.000Z
2020-05-11T07:07:18.000Z
reportsrender/__init__.py
grst/reportsrender
ed2ba62f9b4dcded07bde252caf2708ca68f1af7
[ "MIT" ]
1
2020-01-08T11:50:37.000Z
2020-01-08T11:50:37.000Z
"""Execute and render notebooks as HTML reports. """ from get_version import get_version import sys __version__ = get_version(__file__) del get_version __author__ = "Gregor Sturm" # To avoid that all dependencies need to be installed at build # time: if "flit" not in sys.argv[0]: from .papermill import render_p...
23.944444
62
0.758701
64
431
4.796875
0.609375
0.130293
0.104235
0
0
0
0
0
0
0
0
0.002833
0.180974
431
17
63
25.352941
0.866856
0.264501
0
0
0
0
0.051613
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
54d14cc713ec5dfa6da749adc2d451aab92250db
13,537
py
Python
client/BinaryData.py
Vector35/traceapi
57978753e5b36b8d7effa1748885cadc6e288dbc
[ "MIT" ]
3
2017-06-12T16:39:54.000Z
2020-12-09T05:38:39.000Z
client/BinaryData.py
Vector35/traceapi
57978753e5b36b8d7effa1748885cadc6e288dbc
[ "MIT" ]
null
null
null
client/BinaryData.py
Vector35/traceapi
57978753e5b36b8d7effa1748885cadc6e288dbc
[ "MIT" ]
1
2020-04-26T16:51:41.000Z
2020-04-26T16:51:41.000Z
# Copyright (c) 2011-2015 Rusty Wagner # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # This program is distributed...
29.300866
127
0.683386
2,134
13,537
4.203374
0.086692
0.049944
0.028986
0.042363
0.708138
0.650613
0.603344
0.573913
0.558083
0.542252
0
0.018411
0.169461
13,537
461
128
29.364425
0.779418
0.047721
0
0.411932
0
0
0.018406
0
0
0
0
0
0
1
0.207386
false
0
0.005682
0.136364
0.434659
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
54d6103c9d9742d5b3ca9c7f7c138d28cadc3d24
340
py
Python
behavioral/command/data/trader.py
Kozak24/Patterns
351d5c11f7c64ce5d58db37b6715fc8f7d31945a
[ "MIT" ]
null
null
null
behavioral/command/data/trader.py
Kozak24/Patterns
351d5c11f7c64ce5d58db37b6715fc8f7d31945a
[ "MIT" ]
null
null
null
behavioral/command/data/trader.py
Kozak24/Patterns
351d5c11f7c64ce5d58db37b6715fc8f7d31945a
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import List from behavioral.command.data.item import Item @dataclass class Trader: name: str items: List[Item] gold: int @property def items_amount(self) -> int: return len(self.items) def __str__(self) -> str: return f"{self.nam...
17.894737
45
0.661765
46
340
4.782609
0.543478
0
0
0
0
0
0
0
0
0
0
0
0.238235
340
18
46
18.888889
0.849421
0
0
0
0
0
0.079412
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0.153846
0.846154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
54d74be80340937d5056b34594f1ed3858019610
2,188
py
Python
opinions/united_states/state/nyappdiv_1st.py
brianwc/juriscraper
f95221c3ab38ef89e642a3f5ed5569f73866d636
[ "BSD-2-Clause" ]
null
null
null
opinions/united_states/state/nyappdiv_1st.py
brianwc/juriscraper
f95221c3ab38ef89e642a3f5ed5569f73866d636
[ "BSD-2-Clause" ]
null
null
null
opinions/united_states/state/nyappdiv_1st.py
brianwc/juriscraper
f95221c3ab38ef89e642a3f5ed5569f73866d636
[ "BSD-2-Clause" ]
null
null
null
# Scraper for New York Appellate Divisions 1st Dept. #CourtID: nyappdiv_1st #Court Short Name: NY #Author: Andrei Chelaru #Reviewer: mlr #Date: 2014-07-04 import re import time from datetime import date from juriscraper.OpinionSite import OpinionSite class Site(OpinionSite): def __init__(self): super(Si...
34.1875
116
0.615174
299
2,188
4.277592
0.397993
0.028147
0.060985
0.07975
0.346364
0.346364
0.291634
0.223612
0.223612
0.223612
0
0.015303
0.223492
2,188
63
117
34.730159
0.737493
0.172303
0
0.102564
0
0
0.186874
0.093437
0
0
0
0
0
1
0.205128
false
0
0.102564
0.025641
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
54e5155606ae70ff7a3dec643fc2296b0cafae97
197
py
Python
server/web2.py
Pi-Robot/code
20df19419113b84dc5e883fa8d84e8cad736782c
[ "MIT" ]
1
2021-02-20T07:06:43.000Z
2021-02-20T07:06:43.000Z
server/web2.py
Pi-Robot/code
20df19419113b84dc5e883fa8d84e8cad736782c
[ "MIT" ]
null
null
null
server/web2.py
Pi-Robot/code
20df19419113b84dc5e883fa8d84e8cad736782c
[ "MIT" ]
1
2021-02-20T07:06:43.000Z
2021-02-20T07:06:43.000Z
# flask server from flask import Flask app = Flask(__name__) print(__name__) @app.route("/") def showIndex(): return "INDEX" if __name__ == "__main__": app.run(host="0.0.0.0", port=5000)
16.416667
38
0.664975
29
197
3.965517
0.655172
0.052174
0.052174
0
0
0
0
0
0
0
0
0.048485
0.162437
197
11
39
17.909091
0.648485
0.060914
0
0
0
0
0.114754
0
0
0
0
0
0
1
0.125
false
0
0.125
0.125
0.375
0.125
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
2