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
312a1085fdf5e6c3b4e9bd0bbe7df0d73ffe2f2f
6,913
py
Python
scipy/stats/_tukeylambda_stats.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
2
2015-10-30T10:04:46.000Z
2017-03-11T00:58:21.000Z
scipy/stats/_tukeylambda_stats.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/_tukeylambda_stats.py
seberg/scipy
d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from numpy import array, poly1d from scipy.interpolate import interp1d from scipy.special import beta # The following code was used to generate the Pade coefficients for the # Tukey Lambda variance function. Version 0.17 of mpmath was used. #------------------------------------------------------...
34.054187
79
0.595689
989
6,913
4.078868
0.208291
0.009916
0.027764
0.021815
0.494298
0.475459
0.458602
0.44819
0.413981
0.413981
0
0.083141
0.248373
6,913
202
80
34.222772
0.693226
0.585708
0
0.262295
1
0
0
0
0
0
0
0
0
1
0.032787
false
0
0.065574
0
0.131148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3130dceeddd8d16d67be32357cc743482ba8dfbc
1,304
py
Python
app/translation_service/translation_service.py
harvard-lts/drs-translation-service
8b448422c460c735860d3a64cf2ddc01f6e16eb3
[ "Apache-2.0" ]
null
null
null
app/translation_service/translation_service.py
harvard-lts/drs-translation-service
8b448422c460c735860d3a64cf2ddc01f6e16eb3
[ "Apache-2.0" ]
3
2022-03-21T23:40:33.000Z
2022-03-28T01:35:01.000Z
app/translation_service/translation_service.py
harvard-lts/drs-translation-service
8b448422c460c735860d3a64cf2ddc01f6e16eb3
[ "Apache-2.0" ]
null
null
null
import os, os.path, logging, shutil import translate_data_structure_service from batch_builder_assistant import BatchBuilderAssistant logfile=os.getenv('LOGFILE_PATH', 'drs_translation_service') loglevel=os.getenv('LOGLEVEL', 'WARNING') logging.basicConfig(filename=logfile, level=loglevel) batch_builder_assistant = ...
32.6
110
0.777607
170
1,304
5.547059
0.352941
0.067869
0.069989
0.060445
0.110286
0.057264
0
0
0
0
0
0
0.138804
1,304
40
111
32.6
0.839715
0.122699
0
0.086957
0
0
0.061947
0.020354
0
0
0
0
0
1
0.173913
false
0.086957
0.130435
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
313147a04932bcb55b8aa3a3a95071ebcf440f0d
443
py
Python
src/navability/services/solve.py
sam-globus/NavAbilitySDK.py
46bcf0e8b4b244f26847b59fdf3bf7ba32e35013
[ "Apache-2.0" ]
null
null
null
src/navability/services/solve.py
sam-globus/NavAbilitySDK.py
46bcf0e8b4b244f26847b59fdf3bf7ba32e35013
[ "Apache-2.0" ]
29
2022-01-17T16:44:49.000Z
2022-03-31T11:55:01.000Z
src/navability/services/solve.py
NavAbility/NavAbilitySDK.py
815cd06574dcdf8bbf4770097c9494db739308f3
[ "Apache-2.0" ]
null
null
null
from gql import gql from navability.common.mutations import GQL_SOLVESESSION from navability.entities.client import Client from navability.entities.navabilityclient import MutationOptions, NavAbilityClient async def solveSession(navAbilityClient: NavAbilityClient, client: Client): result = await navAbilityClient...
34.076923
82
0.79684
45
443
7.8
0.4
0.119658
0.125356
0
0
0
0
0
0
0
0
0
0.126411
443
12
83
36.916667
0.906977
0
0
0
0
0
0.040632
0
0
0
0
0
0
1
0
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
0
0
0
1
3131527ac3cb93933718b89609849e427156e5c9
12,289
py
Python
tests/test_spatial_dims.py
DennisHgj/pyela
bbdbf1a55b31cd2ae4dc1877d220ad32589ead4c
[ "Intel", "MIT" ]
null
null
null
tests/test_spatial_dims.py
DennisHgj/pyela
bbdbf1a55b31cd2ae4dc1877d220ad32589ead4c
[ "Intel", "MIT" ]
2
2019-08-13T06:14:35.000Z
2019-10-06T08:09:19.000Z
tests/test_spatial_dims.py
DennisHgj/pyela
bbdbf1a55b31cd2ae4dc1877d220ad32589ead4c
[ "Intel", "MIT" ]
null
null
null
import os import pandas as pd import numpy as np import datetime as dt import sys from datetime import datetime import rasterio import geopandas as gpd pkg_dir = os.path.join(os.path.dirname(__file__),'..') sys.path.insert(0, pkg_dir) from ela.textproc import * from ela.spatial import * from ela.classification impor...
34.714689
187
0.619416
2,352
12,289
3.0625
0.117347
0.012495
0.039706
0.02499
0.44301
0.396779
0.347633
0.263779
0.249896
0.233236
0
0.091192
0.21564
12,289
353
188
34.813031
0.656085
0.116039
0
0.158076
0
0
0.026581
0.006461
0
0
0
0.002833
0.443299
1
0.075601
false
0
0.051546
0.013746
0.158076
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
0
0
0
0
0
0
0
1
313abe22c67b82f33911458417a849ea9d32b2a4
2,529
py
Python
sc-kpm/sc-python/services/sc_tests/test_set.py
irinagrigorjewa/sc-machine
732434a179711d8e49066723bd994309235b9ab0
[ "MIT" ]
1
2020-05-05T14:11:05.000Z
2020-05-05T14:11:05.000Z
sc-kpm/sc-python/services/sc_tests/test_set.py
irinagrigorjewa/sc-machine
732434a179711d8e49066723bd994309235b9ab0
[ "MIT" ]
9
2022-03-01T07:33:48.000Z
2022-03-24T17:06:07.000Z
sc-kpm/sc-python/services/sc_tests/test_set.py
irinagrigorjewa/sc-machine
732434a179711d8e49066723bd994309235b9ab0
[ "MIT" ]
23
2015-04-18T15:11:56.000Z
2021-12-21T14:43:22.000Z
from unittest import TestCase from common import * from sc import * from sc_tests.test_utils import * class TestScSet(TestCase): def test_sc_set(self): ctx = TestScSet.MemoryCtx() addr1 = ctx.CreateNode(ScType.NodeConst) addr2 = ctx.CreateNode(ScType.Node) addr3 = ctx.CreateNode(ScType.Node) ...
24.553398
70
0.678529
322
2,529
5.217391
0.167702
0.12381
0.180952
0.123214
0.679167
0.591071
0.520238
0.520238
0.520238
0.370833
0
0.018482
0.208383
2,529
102
71
24.794118
0.820679
0.031633
0
0.685714
0
0
0
0
0
0
0
0
0.271429
1
0.057143
false
0
0.057143
0
0.128571
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3140da081cc20a2dae06f3f0cd8b2f2af3dcca2f
2,489
py
Python
main.py
chao-mu/five-finder
3da128e64dbafe3f9d6b6dc2a9ff07daad3f6858
[ "MIT" ]
null
null
null
main.py
chao-mu/five-finder
3da128e64dbafe3f9d6b6dc2a9ff07daad3f6858
[ "MIT" ]
null
null
null
main.py
chao-mu/five-finder
3da128e64dbafe3f9d6b6dc2a9ff07daad3f6858
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import random from five_finder.structs import ChaosHeap from five_finder.graph import generate_paths # Graph rendering import networkx as nx # UI import matplotlib.pyplot as plt def main(): parser = argparse.ArgumentParser(description="Generate operations needed to get to...
25.141414
106
0.616714
359
2,489
4.164345
0.306407
0.014716
0.068227
0.046154
0.10301
0.050836
0.03612
0.03612
0.03612
0
0
0.011088
0.239052
2,489
98
107
25.397959
0.778247
0.016071
0
0.057971
1
0
0.10834
0
0
0
0
0
0
1
0.115942
false
0
0.086957
0.043478
0.304348
0.072464
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3141dd76de5e5c7fa7b11d285bdf71c710b60314
933
py
Python
platform/core/polyaxon/api/endpoint/cluster.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/api/endpoint/cluster.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/api/endpoint/cluster.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
from django.http import HttpRequest import access from access.resources import Resources from api.endpoint.base import BaseEndpoint from db.models.clusters import Cluster from scopes.permissions.scopes import ScopesPermission class ClusterPermission(ScopesPermission): SCOPE_MAPPING = access.get_scope_mapping_fo...
30.096774
77
0.732047
103
933
6.485437
0.563107
0.035928
0.056886
0
0
0
0
0
0
0
0
0
0.20686
933
30
78
31.1
0.902703
0.06538
0
0
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0.285714
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
31420e1c4c3041cfe8d9cf1a1468968a63b3f7ef
3,537
py
Python
tests/integration/certificates/test_certificates.py
cenkalti/hcloud-python
1be68b3cc29b81d93d85bef2d4b8dc57cbf603fb
[ "MIT" ]
null
null
null
tests/integration/certificates/test_certificates.py
cenkalti/hcloud-python
1be68b3cc29b81d93d85bef2d4b8dc57cbf603fb
[ "MIT" ]
null
null
null
tests/integration/certificates/test_certificates.py
cenkalti/hcloud-python
1be68b3cc29b81d93d85bef2d4b8dc57cbf603fb
[ "MIT" ]
null
null
null
import mock import pytest from hcloud.certificates.client import BoundCertificate from hcloud.certificates.domain import Certificate class TestBoundCertificate(object): @pytest.fixture() def bound_certificate(self, hetzner_client): return BoundCertificate(client=hetzner_client.certificates, data=dict...
45.935065
176
0.689002
436
3,537
5.465596
0.176606
0.142677
0.083928
0.042803
0.634914
0.596307
0.568611
0.514058
0.500629
0.451951
0
0.042553
0.176138
3,537
76
177
46.539474
0.775223
0
0
0.440678
0
0.050847
0.16907
0.068702
0
0
0
0
0.542373
1
0.152542
false
0
0.067797
0.016949
0.271186
0.050847
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
0
0
0
0
0
0
0
1
314aae55009118f1b1f8661c5d19e892e36ce614
448
py
Python
tests/codequality_test.py
bbiskup/purkinje
4d12cbb452c0e596a63fa911e732d625b6229243
[ "MIT" ]
13
2015-09-24T13:39:37.000Z
2020-01-22T13:33:23.000Z
tests/codequality_test.py
bbiskup/purkinje
4d12cbb452c0e596a63fa911e732d625b6229243
[ "MIT" ]
7
2015-03-08T18:06:43.000Z
2018-01-29T20:39:00.000Z
tests/codequality_test.py
bbiskup/purkinje
4d12cbb452c0e596a63fa911e732d625b6229243
[ "MIT" ]
7
2015-03-08T17:36:04.000Z
2020-01-22T14:20:04.000Z
# -*- coding: utf-8 -*- """Miscellaneous tests about code quality""" import subprocess import pytest MAX_MCCABE_COMPLEXITY = 10 @pytest.mark.slow def test_mccabe(): # TODO Test remove test case? (Now performed separately with flake8) cmd = 'flake8 --ignore=E402 --max-complexity={0} purkinje'\ .form...
24.888889
72
0.700893
58
448
5.327586
0.724138
0.058252
0.122977
0
0
0
0
0
0
0
0
0.027174
0.178571
448
17
73
26.352941
0.8125
0.285714
0
0
0
0
0.265176
0
0
0
0
0.058824
0.111111
1
0.111111
false
0
0.222222
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
314f74145158ac8ae4cccbeffa03f6f7678212b0
2,194
py
Python
rabit/tracker/rabit_demo.py
wachaong/distributed_xgboost
e6e03b6c6c02851a6a193254ece86b653143fb88
[ "Apache-2.0" ]
null
null
null
rabit/tracker/rabit_demo.py
wachaong/distributed_xgboost
e6e03b6c6c02851a6a193254ece86b653143fb88
[ "Apache-2.0" ]
null
null
null
rabit/tracker/rabit_demo.py
wachaong/distributed_xgboost
e6e03b6c6c02851a6a193254ece86b653143fb88
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """ This is the demo submission script of rabit, it is created to submit rabit jobs using hadoop streaming """ import argparse import sys import os import subprocess from threading import Thread import rabit_tracker as tracker parser = argparse.ArgumentParser(description='Rabit script to submit rabit...
37.186441
112
0.647675
298
2,194
4.711409
0.463087
0.011396
0.036325
0.011396
0.043447
0.032764
0.032764
0
0
0
0
0.009135
0.251595
2,194
58
113
37.827586
0.84592
0.088879
0
0.054054
0
0
0.175758
0
0
0
0
0
0
0
null
null
0
0.162162
null
null
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
314f766f9e86f6dff05a8427a9bd692f32a4d5cf
1,575
py
Python
src/main/building.py
jcolekaplan/WNCYC
390b464ddf3dae07b2e7075a20e200145ece0cff
[ "MIT" ]
null
null
null
src/main/building.py
jcolekaplan/WNCYC
390b464ddf3dae07b2e7075a20e200145ece0cff
[ "MIT" ]
2
2017-10-15T18:49:55.000Z
2019-09-12T03:35:28.000Z
src/main/building.py
jcolekaplan/WNCYC
390b464ddf3dae07b2e7075a20e200145ece0cff
[ "MIT" ]
null
null
null
class Building(object): """Class representing all the data for a building 'attribute name': 'type' swagger_types = { 'buildingId': 'str', 'nameList': 'list[str]', 'numWashers': 'int', 'numDryers': 'int', } 'attribute name': 'Attribute name in Swagger Docs' attribute_map = { 'buildingId': 'buildingId...
29.166667
79
0.692063
196
1,575
5.530612
0.260204
0.110701
0.162362
0.199262
0.423432
0.371771
0.351476
0.249077
0.178967
0
0
0.001584
0.198095
1,575
54
80
29.166667
0.85669
0.349841
0
0
0
0
0.381592
0
0
0
0
0
0
1
0.045455
false
0
0
0
0.090909
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3156ea79af5e123151a4f44a7e3a2a1214a8a762
402
py
Python
nmmis/utils/mixins/population.py
mgrsantox/nmmis
77f5bc0907c4fa7babe177a07ea144c2ac8b2eca
[ "BSD-2-Clause" ]
null
null
null
nmmis/utils/mixins/population.py
mgrsantox/nmmis
77f5bc0907c4fa7babe177a07ea144c2ac8b2eca
[ "BSD-2-Clause" ]
null
null
null
nmmis/utils/mixins/population.py
mgrsantox/nmmis
77f5bc0907c4fa7babe177a07ea144c2ac8b2eca
[ "BSD-2-Clause" ]
null
null
null
from django.db import models class Population(models.Model): total = models.PositiveIntegerField() male = models.PositiveIntegerField() female = models.PositiveIntegerField() hindu = models.PositiveIntegerField() buddhist = models.PositiveIntegerField() muslim = models.PositiveIntegerField() ...
26.8
44
0.726368
34
402
8.588235
0.558824
0.623288
0
0
0
0
0
0
0
0
0
0
0.186567
402
14
45
28.714286
0.892966
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.909091
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3164bc9293acd62b4f4bcde0299392e21d8981e0
1,977
py
Python
Ansible/inventories/production/Python_scripts/vASA/NetmikoOperator.py
dmmar/netascode
1d15e717b600d38bd33a65fa110e1c129d72e5df
[ "MIT" ]
36
2019-07-17T17:00:32.000Z
2022-03-26T09:34:40.000Z
Ansible/inventories/production/Python_scripts/vASA/NetmikoOperator.py
dmmar/netascode
1d15e717b600d38bd33a65fa110e1c129d72e5df
[ "MIT" ]
4
2021-03-31T19:16:53.000Z
2021-12-13T20:01:57.000Z
Ansible/inventories/development/Python_scripts/vASA/NetmikoOperator.py
dmmar/netascode
1d15e717b600d38bd33a65fa110e1c129d72e5df
[ "MIT" ]
10
2019-07-31T07:58:03.000Z
2021-10-13T04:45:45.000Z
# -*- coding: utf-8 -*- from netmiko import ConnectHandler class NetmikoOperator(): def __init__(self): self.net_connect = {} self.device = "" def open_session(self,ip,username,password,device,hostname): # open session to target device if hostname in self.net_connect: ...
32.409836
97
0.592817
217
1,977
5.267281
0.253456
0.048994
0.097988
0.115486
0.27734
0.27734
0.2021
0.169729
0.169729
0.094488
0
0.009299
0.292868
1,977
60
98
32.95
0.808298
0.096611
0
0.27907
0
0
0.151856
0
0
0
0
0
0
1
0.139535
false
0.069767
0.023256
0
0.255814
0.325581
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
316aade07aba71191772ed67c88f5fb1bdd6d481
4,035
py
Python
ModelTraining/PointNetTrain.py
matthewwicker/IterativeSalienceOcclusion
71603d952c8e95eec47ffd2819d73d2fa41c264f
[ "BSD-3-Clause" ]
12
2019-04-01T15:58:57.000Z
2021-03-19T08:50:13.000Z
ModelTraining/PointNetTrain.py
matthewwicker/IterativeSalienceOcclusion
71603d952c8e95eec47ffd2819d73d2fa41c264f
[ "BSD-3-Clause" ]
null
null
null
ModelTraining/PointNetTrain.py
matthewwicker/IterativeSalienceOcclusion
71603d952c8e95eec47ffd2819d73d2fa41c264f
[ "BSD-3-Clause" ]
1
2019-12-09T06:32:32.000Z
2019-12-09T06:32:32.000Z
# coding: utf-8 # In[1]: import h5py import numpy as np files = ['ModelNet40_train/ply_data_train0.h5', 'ModelNet40_train/ply_data_train1.h5', 'ModelNet40_train/ply_data_train2.h5', 'ModelNet40_train/ply_data_train3.h5', 'ModelNet40_train/ply_data_train4.h5'] #files = ['ModelNet...
26.201299
103
0.672367
589
4,035
4.502547
0.251273
0.089744
0.050905
0.041478
0.439291
0.29638
0.279035
0.26546
0.122926
0.085219
0
0.052326
0.14746
4,035
153
104
26.372549
0.718605
0.10285
0
0.232323
0
0
0.091162
0.055309
0
0
0
0
0
0
null
null
0
0.131313
null
null
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
316cdf599b003aaf991d3a88ed54114ead8053f8
3,099
py
Python
meowshield.py
webdev03/meowshield
d45a81c45bbe0ec85954f06521b596326e2b2fb9
[ "MIT" ]
null
null
null
meowshield.py
webdev03/meowshield
d45a81c45bbe0ec85954f06521b596326e2b2fb9
[ "MIT" ]
3
2022-01-16T00:16:20.000Z
2022-01-20T05:18:46.000Z
meowshield.py
webdev03/meowshield
d45a81c45bbe0ec85954f06521b596326e2b2fb9
[ "MIT" ]
2
2022-01-15T23:34:51.000Z
2022-01-16T20:20:20.000Z
import json # Loads env file # Don't use .env on Replit import os secrets = { } if ("REPL_SLUG" in os.environ and "REPLIT_DB_URL" in os.environ and "REPL_ID" in os.environ and "REPL_IMAGE" in os.environ and "REPL_LANGUAGE" in os.environ and "REPL_OWNER" in os.environ and "REPL_PUBKEYS" in os.environ and "REPL_SLUG" in...
44.913043
295
0.70797
454
3,099
4.735683
0.381057
0.054419
0.04093
0.045581
0.19814
0.097674
0.072558
0.072558
0.072558
0.042791
0
0.016235
0.165215
3,099
68
296
45.573529
0.81407
0.107777
0
0.122807
0
0.035088
0.399492
0.034107
0
0
0
0
0
1
0.017544
false
0.087719
0.122807
0
0.140351
0.280702
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
316f0896c6911825f530e27db41920bc51711aa4
463
py
Python
programs/pgm09_08.py
danielsunzhongyuan/python_practice
79bc88db1c52ee2f5607f6f9fec1bbacea2804ff
[ "Apache-2.0" ]
null
null
null
programs/pgm09_08.py
danielsunzhongyuan/python_practice
79bc88db1c52ee2f5607f6f9fec1bbacea2804ff
[ "Apache-2.0" ]
null
null
null
programs/pgm09_08.py
danielsunzhongyuan/python_practice
79bc88db1c52ee2f5607f6f9fec1bbacea2804ff
[ "Apache-2.0" ]
null
null
null
# # This file contains the Python code from Program 9.8 of # "Data Structures and Algorithms # with Object-Oriented Design Patterns in Python" # by Bruno R. Preiss. # # Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved. # # http://www.brpreiss.com/books/opus7/programs/pgm09_08.txt # class Tree(Containe...
25.722222
69
0.706263
63
463
5.174603
0.857143
0.042945
0.04908
0.08589
0
0
0
0
0
0
0
0.029024
0.181425
463
17
70
27.235294
0.831135
0.613391
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
false
0
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
1
0
0
0
0
0
0
0
1
31704a50c710bc0258a11169194e43d08c0d60b9
9,891
py
Python
model.py
MichaelAllen1966/1912_stroke_unit_location_with_outcomes
2f5f5b86718afaac1c3ce7e9cde0c21feae90355
[ "MIT" ]
null
null
null
model.py
MichaelAllen1966/1912_stroke_unit_location_with_outcomes
2f5f5b86718afaac1c3ce7e9cde0c21feae90355
[ "MIT" ]
null
null
null
model.py
MichaelAllen1966/1912_stroke_unit_location_with_outcomes
2f5f5b86718afaac1c3ce7e9cde0c21feae90355
[ "MIT" ]
null
null
null
""" Results generated 0: Number of hospitals 1: Mean time to thrombolysis 2: Max time to thrombolysis 3: Mean time to thrombectomy 4: Maximum time to thrombectomy 5: Minimum thrombolysis admissions to any one hospital 6: Maximum thrombolysis admissions to any one hospital 7: Minimum thrombectomy admissions to ...
38.486381
80
0.615812
1,130
9,891
5.212389
0.20531
0.043973
0.086587
0.017827
0.448727
0.383871
0.287097
0.273514
0.252122
0.252122
0
0.016609
0.29997
9,891
256
81
38.636719
0.834055
0.25781
0
0.338462
1
0
0.115487
0.00782
0
0
0
0
0
1
0.030769
false
0
0.069231
0
0.138462
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3179a78961cf55b0d6dbefeda913b9bcb4cbacb2
1,223
py
Python
puzzle/sorting.py
aliciawyy/dmining
513f6f036f8f258281e1282fef052a74bf9cc3d3
[ "Apache-2.0" ]
null
null
null
puzzle/sorting.py
aliciawyy/dmining
513f6f036f8f258281e1282fef052a74bf9cc3d3
[ "Apache-2.0" ]
9
2017-10-25T10:03:36.000Z
2018-06-12T22:49:22.000Z
puzzle/sorting.py
aliciawyy/dmining
513f6f036f8f258281e1282fef052a74bf9cc3d3
[ "Apache-2.0" ]
null
null
null
def print_n(x): print x, def print_arr(arr): map(print_n, arr) print '' def print_insertion_sort(arr): for i in range(1, len(arr)): num_i = arr[i] k = i for j in range(i - 1, -1, -1): if num_i < arr[j]: print_arr(arr[:j + 1] + arr[j:i] + arr[i + 1...
21.839286
65
0.430908
204
1,223
2.47549
0.147059
0.09505
0.059406
0.047525
0.532673
0.518812
0.518812
0.483168
0.483168
0.483168
0
0.031637
0.40556
1,223
55
66
22.236364
0.662999
0.020442
0
0.571429
0
0
0.000837
0
0
0
0
0
0
0
null
null
0
0
null
null
0.261905
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3183ce55d6f1cf4ea3e30f7a50008c291383f66d
626
py
Python
yolo_inference.py
nrober734/pi-security-cam-backend
81691573a9dfd73d9dd8c49e0731e5b68dfc0b5c
[ "MIT" ]
null
null
null
yolo_inference.py
nrober734/pi-security-cam-backend
81691573a9dfd73d9dd8c49e0731e5b68dfc0b5c
[ "MIT" ]
1
2020-09-24T00:00:11.000Z
2020-10-09T22:30:44.000Z
yolo_inference.py
nrober734/pi-security-cam-backend
81691573a9dfd73d9dd8c49e0731e5b68dfc0b5c
[ "MIT" ]
null
null
null
import numpy as np from detection_utilities import detect class YoloExecutor: def __init__(self): self.detections = [] def get_labels(self, input_frame: np.ndarray): print(f'Length of detections: {len(self.detections)}') self.detections = detect(input_frame=input_frame, operation='ad...
26.083333
149
0.666134
80
626
4.9875
0.625
0.175439
0.105263
0
0
0
0
0
0
0
0
0.010504
0.239617
626
23
150
27.217391
0.827731
0.108626
0
0
0
0
0.084838
0.039711
0
0
0
0
0
1
0.214286
false
0
0.142857
0
0.5
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
318a07b4cd8440cea6e296aafc38a87d9dd6fb2f
1,351
py
Python
djconnectwise/migrations/0114_auto_20200219_1515.py
kti-sam/django-connectwise
28484faad9435892a46b8ce4a3c957f64c299971
[ "MIT" ]
10
2017-04-27T19:51:38.000Z
2020-10-09T17:21:23.000Z
djconnectwise/migrations/0114_auto_20200219_1515.py
kti-sam/django-connectwise
28484faad9435892a46b8ce4a3c957f64c299971
[ "MIT" ]
45
2017-02-07T22:52:07.000Z
2021-11-25T21:45:44.000Z
djconnectwise/migrations/0114_auto_20200219_1515.py
kti-sam/django-connectwise
28484faad9435892a46b8ce4a3c957f64c299971
[ "MIT" ]
9
2017-01-27T00:07:33.000Z
2021-07-12T19:48:27.000Z
# Generated by Django 2.1.14 on 2020-02-19 15:15 from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields class Migration(migrations.Migration): dependencies = [ ('djconnectwise', '0113_auto_20200204_1054'), ] operations = [ migrations...
37.527778
137
0.612139
134
1,351
6.007463
0.507463
0.054658
0.067081
0.089441
0.084472
0
0
0
0
0
0
0.034
0.259808
1,351
35
138
38.6
0.771
0.034049
0
0.068966
1
0
0.145817
0.036838
0
0
0
0
0
1
0
false
0
0.103448
0
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
318c38cfa486f6cf2c04439dcd85ce7a1d67b57b
773
py
Python
keys.py
ffbskt/msu_graph
bbb7e4e920ce8b1ec232f4f50b4dcb1c08b069d1
[ "Apache-2.0" ]
null
null
null
keys.py
ffbskt/msu_graph
bbb7e4e920ce8b1ec232f4f50b4dcb1c08b069d1
[ "Apache-2.0" ]
null
null
null
keys.py
ffbskt/msu_graph
bbb7e4e920ce8b1ec232f4f50b4dcb1c08b069d1
[ "Apache-2.0" ]
null
null
null
"""" by ffbskt Load file from parent directory. Named GoogleDrivePermision.json and EmailPassLog """ import os.path import json GoogleDrivePermision = os.path.dirname(__file__) + '/GoogleDrivePermision.json' file = open(os.path.dirname(__file__) + '/EmailPassLog') EmailPassLog = json.loads(file.read()) if __name__ =...
36.809524
103
0.714101
96
773
5.520833
0.625
0.135849
0.049057
0.064151
0
0
0
0
0
0
0
0
0.173351
773
21
104
36.809524
0.829421
0.12031
0
0
0
0
0.164912
0.091228
0
0
0
0
0
1
0
false
0.428571
0.285714
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
31901b5461e7624856176e61c149a41bdf82a8ac
8,239
py
Python
run_state.py
ojwalch/district_mbo
d1f21974183899301f35ccb595ba7a754121e13c
[ "MIT" ]
4
2018-06-25T21:04:42.000Z
2020-02-21T07:16:11.000Z
run_state.py
ojwalch/district_mbo
d1f21974183899301f35ccb595ba7a754121e13c
[ "MIT" ]
null
null
null
run_state.py
ojwalch/district_mbo
d1f21974183899301f35ccb595ba7a754121e13c
[ "MIT" ]
null
null
null
import shapefile from shapely.geometry import shape import csv import sys import matplotlib.pyplot as plt import numpy as np from random import randint from subprocess import call from array import array from shapely.geometry import Polygon from shapely.geometry.multipolygon import MultiPolygon import glob import math ...
37.793578
309
0.633208
1,064
8,239
4.682331
0.245301
0.013248
0.022481
0.029506
0.321558
0.265155
0.250301
0.200522
0.147933
0.133882
0
0.017511
0.27916
8,239
217
310
37.967742
0.82135
0.22442
0
0.175573
0
0
0.050403
0.01343
0
0
0
0
0
0
null
null
0
0.114504
null
null
0.038168
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
319129202bc2d554752e946b4adf300a6ea0ecf2
3,769
py
Python
section-3-13-mini_project-solution.py
gopal-amlekar/Jumpstart-IOT-Exercise
684932b279c6e079fe4e87504480f27a90964c4d
[ "MIT" ]
1
2020-05-12T04:56:07.000Z
2020-05-12T04:56:07.000Z
section-3-13-mini_project-solution.py
gopal-amlekar/Jumpstart-IOT-Exercise
684932b279c6e079fe4e87504480f27a90964c4d
[ "MIT" ]
null
null
null
section-3-13-mini_project-solution.py
gopal-amlekar/Jumpstart-IOT-Exercise
684932b279c6e079fe4e87504480f27a90964c4d
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import smbus import time SHT21_ADD = 0x40 SHT21_STATUS_MASK = 0xFFFC SHT21_MEASURE_TEMP_CMD = 0xF3 SHT21_MEASURE_HUM_CMD = 0xF5 MAX_TEMPERATURE = 120 MAX_HUMIDITY = 100 temperatureBarGraph = [26,23,20,17,14,11,8,5] humidityBarGraph = [27,24,21,18,15,12,9,6] unusedLEDs = [16,13,10,7] temper...
25.815068
95
0.672327
487
3,769
5.00616
0.26078
0.027071
0.039377
0.039377
0.40402
0.35685
0.271124
0.244873
0.224364
0.11813
0
0.041406
0.237464
3,769
145
96
25.993103
0.806889
0.066861
0
0.150538
0
0
0.041417
0
0
0
0.005141
0
0
0
null
null
0
0.032258
null
null
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
31933ebed3ddafa78d45c3714df4c8cde1cdfbfa
2,160
py
Python
tools/merge_strings.py
mittorn/SmartKeyboard
48fc28d9f8006b6d21caf5f97aaa4c37d901e30a
[ "Apache-2.0" ]
7
2019-09-01T16:50:26.000Z
2021-04-04T17:26:07.000Z
tools/merge_strings.py
nillerusr/SmartKeyboard
c1220a7dab4da7ad5ad8e1ef012d7e98481b4e62
[ "Apache-2.0" ]
null
null
null
tools/merge_strings.py
nillerusr/SmartKeyboard
c1220a7dab4da7ad5ad8e1ef012d7e98481b4e62
[ "Apache-2.0" ]
5
2019-09-01T16:49:41.000Z
2021-02-14T15:46:04.000Z
#!/usr/bin/env python import os from os.path import join from lxml import etree CROWDIN = '../crowdin' BASE = '../common/src/main/res' STRINGS = 'strings.xml' setup_names = set([ "setup_welcome_title", "setup_welcome_additional_description", "setup_start_action", "setup_next_action", "setup_steps_title", "setup_step...
27
88
0.625926
281
2,160
4.594306
0.30605
0.048799
0.032533
0.029435
0.198296
0.168861
0.168861
0.131681
0.131681
0.131681
0
0.007971
0.244907
2,160
79
89
27.341772
0.783568
0.031481
0
0.212121
0
0
0.24988
0.101005
0.015152
0
0
0
0
0
null
null
0
0.045455
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3198bdcb25c46eb128f2cff5807b253a95b19012
5,049
py
Python
tests/test_shipment.py
sameerkumar18/easypost-python
55832975384ad786e78d5e65c05548c83d65aa26
[ "MIT" ]
null
null
null
tests/test_shipment.py
sameerkumar18/easypost-python
55832975384ad786e78d5e65c05548c83d65aa26
[ "MIT" ]
null
null
null
tests/test_shipment.py
sameerkumar18/easypost-python
55832975384ad786e78d5e65c05548c83d65aa26
[ "MIT" ]
null
null
null
# Unit tests related to 'Shipments' (https://www.easypost.com/docs/api#shipments). import time import easypost import pytest @pytest.mark.vcr() def test_shipment_creation(): # We create a shipment and assert on values saved. # create a to address and a from address to_address = easypost.Address.create(...
28.365169
107
0.644088
616
5,049
5.121753
0.271104
0.062124
0.028526
0.035499
0.639937
0.639937
0.631379
0.586371
0.586371
0.586371
0
0.041865
0.252525
5,049
177
108
28.525424
0.794118
0.125173
0
0.701493
0
0
0.103911
0.005684
0
0
0
0
0.134328
1
0.014925
false
0
0.022388
0
0.037313
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
319b41519f30272f6a89d2aca300ab21502fee90
392
py
Python
pathways/migrations/0003_major_common_course_decl.py
uw-it-aca/pathways
ad1d136f6e4eab6a4ccc09429d56d3d31a247b27
[ "Apache-2.0" ]
null
null
null
pathways/migrations/0003_major_common_course_decl.py
uw-it-aca/pathways
ad1d136f6e4eab6a4ccc09429d56d3d31a247b27
[ "Apache-2.0" ]
148
2021-07-12T20:34:57.000Z
2022-03-11T21:41:33.000Z
pathways/migrations/0003_major_common_course_decl.py
uw-it-aca/pathways
ad1d136f6e4eab6a4ccc09429d56d3d31a247b27
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-20 23:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pathways', '0002_auto_20210920_1834'), ] operations = [ migrations.AddField( model_name='major', name='common_course...
20.631579
48
0.604592
43
392
5.372093
0.860465
0
0
0
0
0
0
0
0
0
0
0.11032
0.283163
392
18
49
21.777778
0.711744
0.114796
0
0
1
0
0.156522
0.066667
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
319be863e39ceb45330194d955c81443ad1662fa
827
py
Python
src/salt/my/devTIME.py
MaksymD/autopi_080519
639caeddfae50a650dc2f2c88b606fc8c8f97086
[ "Apache-2.0" ]
null
null
null
src/salt/my/devTIME.py
MaksymD/autopi_080519
639caeddfae50a650dc2f2c88b606fc8c8f97086
[ "Apache-2.0" ]
null
null
null
src/salt/my/devTIME.py
MaksymD/autopi_080519
639caeddfae50a650dc2f2c88b606fc8c8f97086
[ "Apache-2.0" ]
null
null
null
import ntplib from time import ctime import time import urllib2 from datetime import datetime def time(): c = ntplib.NTPClient() response = c.request('pool.ntp.org') print(ctime(response.tx_time)) #Returns Mon Sep 30 11:10:45 2019 (ADD Time Zone) return time ##################################...
20.675
59
0.577993
112
827
4.241071
0.651786
0.042105
0
0
0
0
0
0
0
0
0
0.052545
0.263603
827
40
60
20.675
0.727422
0.08948
0
0
0
0
0.106443
0.043417
0
0
0
0
0
0
null
null
0
0.178571
null
null
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
31a324785b6113c81a5e4e4eca7e13195e8bb4f7
1,119
py
Python
httphandler.py
nakaokat/timer-app
6ee2a29a1efa2e5f841e64781e882998ba95a6d2
[ "Apache-2.0" ]
null
null
null
httphandler.py
nakaokat/timer-app
6ee2a29a1efa2e5f841e64781e882998ba95a6d2
[ "Apache-2.0" ]
null
null
null
httphandler.py
nakaokat/timer-app
6ee2a29a1efa2e5f841e64781e882998ba95a6d2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'nakaokataiki' def get_htmltemplate(): """ レスポンスとして返すHTMLのうち、定形部分を返す。 """ html_body = u""" <!DOCTYPE html> <html> <head> <title>{title}</title> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <li...
28.692308
78
0.389634
93
1,119
4.612903
0.451613
0.111888
0.104895
0.083916
0.242424
0
0
0
0
0
0
0.009885
0.457551
1,119
39
79
28.692308
0.69687
0.043789
0
0.294118
0
0.029412
0.912796
0.16019
0
0
0
0
0
1
0.029412
false
0
0
0
0.058824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
31a37cee32d594c9c31712a5feba975dc97a088c
1,459
py
Python
resources/user/endpoints/register.py
illBeRoy/secured-chat-server
31915bc43168392295b33484be83f3a435d4d666
[ "MIT" ]
10
2017-06-07T15:34:48.000Z
2021-07-05T23:52:25.000Z
resources/user/endpoints/register.py
illBeRoy/secured-chat-server
31915bc43168392295b33484be83f3a435d4d666
[ "MIT" ]
null
null
null
resources/user/endpoints/register.py
illBeRoy/secured-chat-server
31915bc43168392295b33484be83f3a435d4d666
[ "MIT" ]
2
2018-01-01T17:20:39.000Z
2021-06-02T19:36:21.000Z
import server import resources.user.models class Endpoint(server.Endpoint): url = '/users' def post(self): # parse request body_parser = server.BodyParser() body_parser.add_argument('username', help='unique name of user', required=True) body_parser.add_argument('password', he...
39.432432
105
0.598355
156
1,459
5.448718
0.391026
0.082353
0.076471
0.123529
0.28
0.28
0.124706
0.124706
0
0
0
0.008964
0.311857
1,459
36
106
40.527778
0.837649
0.027416
0
0
0
0
0.131449
0
0
0
0
0
0.08
1
0.04
false
0.08
0.08
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
31a4b43142420aac177e981491e8c6d2cd577756
4,443
py
Python
PyStacks/test/templates/test_elasticsearch.py
0xack13/PyStacks
13136c43089c241680beb216a233d1846119dd7c
[ "MIT" ]
11
2018-02-15T04:27:05.000Z
2020-10-02T11:20:08.000Z
PyStacks/test/templates/test_elasticsearch.py
0xack13/PyStacks
13136c43089c241680beb216a233d1846119dd7c
[ "MIT" ]
3
2018-02-15T05:46:54.000Z
2018-03-05T04:46:51.000Z
PyStacks/test/templates/test_elasticsearch.py
0xack13/PyStacks
13136c43089c241680beb216a233d1846119dd7c
[ "MIT" ]
8
2018-03-05T04:40:41.000Z
2021-02-22T08:07:58.000Z
import unittest from PyStacks.PyStacks.template import templateCF class TestTemplate(unittest.TestCase): def test_templateCF_ElasticSearch(self): self.maxDiff = None resources = { "elasticsearch": { "ElasticSearchTest": { "version": 5.5, ...
36.719008
77
0.317803
185
4,443
7.556757
0.52973
0.020029
0.057225
0.040057
0.1402
0.1402
0.074392
0.074392
0
0
0
0.020364
0.580014
4,443
120
78
37.025
0.728832
0
0
0.125
0
0
0.272113
0.09183
0
0
0
0
0.008929
1
0.008929
false
0
0.026786
0
0.044643
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
31a685b4046ff71a9304718c2fbced073961b530
6,496
py
Python
test/test_user_otp.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
395
2015-01-12T19:20:13.000Z
2022-03-30T05:40:40.000Z
test/test_user_otp.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
2,388
2015-01-01T20:09:19.000Z
2022-03-29T16:49:14.000Z
test/test_user_otp.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
177
2015-01-04T14:47:00.000Z
2022-03-25T09:01:51.000Z
# -*- coding: utf-8 -*- import pytest from girder.exceptions import AccessException from girder.models.setting import Setting from girder.models.user import User from girder.settings import SettingKey from pytest_girder.assertions import assertStatus, assertStatusOk def testInitializeOtp(user): # The logic for t...
33.484536
99
0.68319
787
6,496
5.613723
0.212198
0.024898
0.042327
0.052286
0.533273
0.495473
0.481892
0.442055
0.381847
0.334993
0
0.008619
0.196275
6,496
193
100
33.658031
0.837579
0.251232
0
0.56
0
0
0.149409
0.004773
0
0
0
0
0.27
1
0.07
false
0.11
0.08
0
0.16
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
31a78b91f7793e879bf2d2250aeefca6cd85d1e7
852
py
Python
courseproject/main.py
hpaldan/IOT_SummerCourseProject_2021
df266bd572ae63228e3c76e6102dd9212c139492
[ "Apache-2.0" ]
null
null
null
courseproject/main.py
hpaldan/IOT_SummerCourseProject_2021
df266bd572ae63228e3c76e6102dd9212c139492
[ "Apache-2.0" ]
null
null
null
courseproject/main.py
hpaldan/IOT_SummerCourseProject_2021
df266bd572ae63228e3c76e6102dd9212c139492
[ "Apache-2.0" ]
null
null
null
#from mqtt import MQTTClient from mqtt import MQTTClient_lib as MQTTClient from network import WLAN import machine from machine import Pin import time import math import config adc = machine.ADC() apin = adc.channel(pin='P19') wlan = WLAN(mode=WLAN.STA) wlan.connect(config.WIFI_NAME, auth=(WLAN.WPA2, con...
23.027027
121
0.694836
119
852
4.890756
0.546218
0.027491
0.04811
0.082474
0
0
0
0
0
0
0
0.034884
0.192488
852
36
122
23.666667
0.811047
0.03169
0
0
0
0
0.041878
0
0
0
0
0
0
1
0
false
0.043478
0.304348
0
0.304348
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
31a94bb1dc08f7520edadf106db370b1c6d5c5f4
1,945
py
Python
stonesoup/updater/base.py
JPompeus/Stone-Soup
030c60aaf5ff92d7bb53f06e350c0bf58c9af037
[ "MIT" ]
1
2020-07-21T15:20:20.000Z
2020-07-21T15:20:20.000Z
stonesoup/updater/base.py
JPompeus/Stone-Soup
030c60aaf5ff92d7bb53f06e350c0bf58c9af037
[ "MIT" ]
null
null
null
stonesoup/updater/base.py
JPompeus/Stone-Soup
030c60aaf5ff92d7bb53f06e350c0bf58c9af037
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from abc import abstractmethod from ..base import Base, Property from ..models.measurement import MeasurementModel class Updater(Base): r"""Updater base class An updater is used to update the predicted state, utilising a measurement and a :class:`~.MeasurementModel`. The general...
30.390625
78
0.627249
193
1,945
6.290155
0.393782
0.092257
0.046952
0.051071
0
0
0
0
0
0
0
0.00071
0.275578
1,945
63
79
30.873016
0.860894
0.617995
0
0.307692
0
0
0.034343
0
0
0
0
0
0
1
0.153846
false
0
0.230769
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
31ab3a277111e5666cb5eba035133fe26d4ce816
503
py
Python
robokassa_merchant/options.py
DirectlineDev/django-robokassa-merchant
aca72195745036c17e7f66b2761b4142c3846f5f
[ "MIT" ]
3
2016-03-03T11:29:18.000Z
2017-07-14T19:41:55.000Z
robokassa_merchant/options.py
DirectlineDev/django-robokassa-merchant
aca72195745036c17e7f66b2761b4142c3846f5f
[ "MIT" ]
1
2016-03-03T11:30:43.000Z
2016-03-03T13:38:21.000Z
robokassa_merchant/options.py
DirectlineDev/django-robokassa-merchant
aca72195745036c17e7f66b2761b4142c3846f5f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Статусы заказов STATUS_CREATED = 0 STATUS_SUCCESS = 1 STATUS_FAIL = 2 STATUS = ( (STATUS_CREATED, 'Created'), (STATUS_SUCCESS, 'Success'), (STATUS_FAIL, 'Fail'), ) # Статусы заказа в Robokassa todo проверять через XML-интерфейс ROBOKASSA_STATUS = ( (5, 'Initialized'), (10...
22.863636
63
0.648111
58
503
5.5
0.706897
0.081505
0
0
0
0
0
0
0
0
0
0.039801
0.200795
503
21
64
23.952381
0.753731
0.196819
0
0
0
0
0.365
0
0
0
0
0.047619
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
31aff568f8a4736193818939475b3c776ca20221
16,796
py
Python
kino/functions.py
DongjunLee/kino-bot
226aa009008e30d76e9253fe47fbe862766bdc83
[ "MIT" ]
109
2017-04-28T05:42:05.000Z
2020-06-23T03:27:54.000Z
kino/functions.py
DongjunLee/kino-bot
226aa009008e30d76e9253fe47fbe862766bdc83
[ "MIT" ]
32
2016-09-18T16:35:04.000Z
2019-05-04T16:16:21.000Z
kino/functions.py
DongjunLee/stalker-bot
226aa009008e30d76e9253fe47fbe862766bdc83
[ "MIT" ]
17
2017-05-15T14:19:24.000Z
2020-05-13T15:35:11.000Z
# -*- coding: utf-8 -*- import random import re import subprocess import time from .background import schedule from .nlp.ner import NamedEntitiyRecognizer from .skills.bus import Bus from .skills.feed import FeedNotifier from .skills.github import GithubManager from .skills.humor import Humor from .skills.maxim imp...
30.482759
158
0.592462
1,798
16,796
5.37931
0.226363
0.054591
0.043424
0.042804
0.22043
0.172974
0.072994
0.040116
0.022953
0.01158
0
0.001227
0.272386
16,796
550
159
30.538182
0.790197
0.250834
0
0.185185
0
0
0.022858
0
0
0
0
0.012727
0
1
0.159259
false
0
0.111111
0.003704
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
31b0013c5fdf860d8598d6332213be585a1f61ce
560
py
Python
src/home_work/part_2_automation/test/test_functions.py
AndreiHustiuc/IT_Factory_Course
c6f3e4a9282a1c19c0f52c79f0c81f026814a02a
[ "MIT" ]
null
null
null
src/home_work/part_2_automation/test/test_functions.py
AndreiHustiuc/IT_Factory_Course
c6f3e4a9282a1c19c0f52c79f0c81f026814a02a
[ "MIT" ]
null
null
null
src/home_work/part_2_automation/test/test_functions.py
AndreiHustiuc/IT_Factory_Course
c6f3e4a9282a1c19c0f52c79f0c81f026814a02a
[ "MIT" ]
1
2022-03-16T10:39:03.000Z
2022-03-16T10:39:03.000Z
from selenium import webdriver import time from selenium.webdriver.common.by import By from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver import ActionChains import pyautogui driver = webdriver.Chrome(ChromeDriverManager().install()) driver.get('https://formy-project.herokuapp.com/fileup...
29.473684
86
0.808929
73
560
6.150685
0.630137
0.080178
0.093541
0
0
0
0
0
0
0
0
0.007663
0.067857
560
19
87
29.473684
0.85249
0
0
0
0
0
0.187166
0.062389
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
31c8584021bca5288cadb4b13238974b6c189ee4
332
py
Python
wounderful/analyzer/migrations/0004_remove_uploadimage_post.py
mberkay0/wounderful
86dbd28acb7554a8e5732077e9f36fb0a8e382d9
[ "MIT" ]
2
2020-09-03T18:00:02.000Z
2021-08-21T18:33:42.000Z
wounderful/analyzer/migrations/0004_remove_uploadimage_post.py
mberkay0/wounderful
86dbd28acb7554a8e5732077e9f36fb0a8e382d9
[ "MIT" ]
null
null
null
wounderful/analyzer/migrations/0004_remove_uploadimage_post.py
mberkay0/wounderful
86dbd28acb7554a8e5732077e9f36fb0a8e382d9
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-08-30 10:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('analyzer', '0003_auto_20200830_1327'), ] operations = [ migrations.RemoveField( model_name='uploadimage', name='post', ...
18.444444
48
0.596386
35
332
5.542857
0.857143
0
0
0
0
0
0
0
0
0
0
0.131915
0.292169
332
17
49
19.529412
0.693617
0.135542
0
0
1
0
0.161404
0.080702
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
31c86d6b331126771b454e1fed73b9e3a3b5386e
4,889
py
Python
pyplusplus/code_repository/indexing_suite/slice_header.py
electronicvisions/pyplusplus
4d88bb8754d22654a61202ae8adc222807953e38
[ "BSL-1.0" ]
5
2021-01-29T19:54:34.000Z
2022-03-23T11:16:37.000Z
pyplusplus/code_repository/indexing_suite/slice_header.py
electronicvisions/pyplusplus
4d88bb8754d22654a61202ae8adc222807953e38
[ "BSL-1.0" ]
null
null
null
pyplusplus/code_repository/indexing_suite/slice_header.py
electronicvisions/pyplusplus
4d88bb8754d22654a61202ae8adc222807953e38
[ "BSL-1.0" ]
null
null
null
# Copyright 2004-2008 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) """ This file contains indexing suite v2 code """ file_name = "indexing_suite/slice.hpp" code = """// Header file ...
30.179012
88
0.644508
634
4,889
4.788644
0.356467
0.076087
0.037549
0.047431
0.237154
0.176548
0.135705
0.135705
0.123188
0.123188
0
0.025697
0.243813
4,889
161
89
30.36646
0.79551
0.046226
0
0.21875
0
0.023438
0.991761
0.198397
0
0
0.004453
0
0
1
0
false
0.007813
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
31ce37dd51bb5bce4f870d42684c7e363415f453
2,654
py
Python
meetup/migrations/0001_initial.py
BradleyKirton/gpug-graphql
ebcd53e48773801d3908d11bcc4c039a259dc04b
[ "MIT" ]
null
null
null
meetup/migrations/0001_initial.py
BradleyKirton/gpug-graphql
ebcd53e48773801d3908d11bcc4c039a259dc04b
[ "MIT" ]
3
2020-06-05T18:19:29.000Z
2021-06-10T20:23:21.000Z
meetup/migrations/0001_initial.py
BradleyKirton/gpug-graphql
ebcd53e48773801d3908d11bcc4c039a259dc04b
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-13 15:43 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Attendance', fields=[ ...
39.61194
216
0.550867
251
2,654
5.713147
0.302789
0.033473
0.039052
0.061367
0.516039
0.470014
0.358438
0.358438
0.358438
0.358438
0
0.012234
0.291635
2,654
66
217
40.212121
0.750532
0.016956
0
0.474576
1
0
0.12313
0
0
0
0
0
0
1
0
false
0
0.033898
0
0.101695
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
31d03dbc5d2ecf08927f633a478f762e39657868
3,109
py
Python
users/management/commands/create_test_user.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
3
2020-05-05T12:12:09.000Z
2020-05-08T08:48:16.000Z
users/management/commands/create_test_user.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
160
2020-05-19T13:03:43.000Z
2022-03-12T00:35:28.000Z
users/management/commands/create_test_user.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
null
null
null
import datetime from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from django.core.management.base import BaseCommand from faker import Faker User = get_user_model() fake = Faker() class Command(BaseCommand): help = "Create test user" def add_arguments(self, parse...
30.480392
78
0.559344
340
3,109
4.914706
0.305882
0.048474
0.050868
0.043088
0.254339
0.254339
0.219629
0.078995
0
0
0
0.007852
0.303635
3,109
101
79
30.782178
0.763972
0
0
0.192771
0
0
0.174011
0.056288
0
0
0
0
0
1
0.036145
false
0.084337
0.060241
0
0.120482
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
31d5cf231ec33b379f256eb71a4d3612a50d9cb4
1,454
py
Python
applications/migrations/0053_alter_applicationeventschedule_priority.py
juhasuv/tilavarauspalvelu-core
ba1f3241f7ea5b3949c410c7de2a58c4be951966
[ "MIT" ]
null
null
null
applications/migrations/0053_alter_applicationeventschedule_priority.py
juhasuv/tilavarauspalvelu-core
ba1f3241f7ea5b3949c410c7de2a58c4be951966
[ "MIT" ]
null
null
null
applications/migrations/0053_alter_applicationeventschedule_priority.py
juhasuv/tilavarauspalvelu-core
ba1f3241f7ea5b3949c410c7de2a58c4be951966
[ "MIT" ]
null
null
null
# Generated by Django 3.2.12 on 2022-02-28 11:47 from django.db import migrations, models def forwards(apps, schema_editor): ApplicationEventSchedule = apps.get_model( "applications", "ApplicationEventSchedule" ) db_alias = schema_editor.connection.alias # At the time of writing, PRIORITY_HI...
31.608696
83
0.682256
162
1,454
6.024691
0.475309
0.04918
0.032787
0.081967
0.565574
0.565574
0.565574
0.565574
0.565574
0.565574
0
0.038869
0.221458
1,454
45
84
32.311111
0.823322
0.244842
0
0.296296
1
0
0.144954
0.092661
0
0
0
0
0
1
0.074074
false
0
0.037037
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
31dd2fb79e87d155346c457ffb42be38687d8c3f
302
py
Python
basic_python/sockets.py
Faraaz54/python_training_problems
24c7b42daaf54366759e1d7c4b42f9936316e94b
[ "MIT" ]
null
null
null
basic_python/sockets.py
Faraaz54/python_training_problems
24c7b42daaf54366759e1d7c4b42f9936316e94b
[ "MIT" ]
null
null
null
basic_python/sockets.py
Faraaz54/python_training_problems
24c7b42daaf54366759e1d7c4b42f9936316e94b
[ "MIT" ]
null
null
null
import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server = 'Pythonprogramming.net' port = 80 server_ip = socket.gethostbyname(server) request = "GET / HTTP/1.1\nHost: "+server+"\n\n" s.connect((server, port)) s.send(request) result = s.recv(4096) print result
16.777778
54
0.682119
43
302
4.72093
0.604651
0.118227
0
0
0
0
0
0
0
0
0
0.032129
0.175497
302
17
55
17.764706
0.783133
0
0
0
0
0
0.165493
0.073944
0
0
0
0
0
0
null
null
0
0.1
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9ec3daa1e3ae5c96c96812576daef5b7e31eeb10
2,528
py
Python
recbole/model/general_recommender/mfsimple.py
ghazalehnt/RecBole
f1219847005e2c8d72b8c3cd5c49a138fe83276d
[ "MIT" ]
null
null
null
recbole/model/general_recommender/mfsimple.py
ghazalehnt/RecBole
f1219847005e2c8d72b8c3cd5c49a138fe83276d
[ "MIT" ]
null
null
null
recbole/model/general_recommender/mfsimple.py
ghazalehnt/RecBole
f1219847005e2c8d72b8c3cd5c49a138fe83276d
[ "MIT" ]
null
null
null
from recbole.model.abstract_recommender import GeneralRecommender from recbole.model.loss import RegLoss from recbole.utils import InputType import torch.nn as nn import torch from torch.nn.init import normal_ class MFSimple(GeneralRecommender): input_type = InputType.POINTWISE def __init__(self, config, dat...
40.126984
160
0.676028
339
2,528
4.855457
0.277286
0.043742
0.038882
0.036452
0.191373
0.115431
0.115431
0.078979
0.078979
0.078979
0
0.003543
0.218354
2,528
63
161
40.126984
0.829453
0.199367
0
0.136364
0
0
0.035732
0
0
0
0
0.015873
0
1
0.113636
false
0
0.136364
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9ec60d3b68637d96ad5d7ab164daedfb8a7987b8
1,977
py
Python
tests/db/test_models.py
koonwen/YNC-Gym-Counter
e5000f1e8665c275f0a3c66ade7084d94e6526ad
[ "Apache-2.0" ]
null
null
null
tests/db/test_models.py
koonwen/YNC-Gym-Counter
e5000f1e8665c275f0a3c66ade7084d94e6526ad
[ "Apache-2.0" ]
null
null
null
tests/db/test_models.py
koonwen/YNC-Gym-Counter
e5000f1e8665c275f0a3c66ade7084d94e6526ad
[ "Apache-2.0" ]
1
2021-11-05T06:15:33.000Z
2021-11-05T06:15:33.000Z
from app.db import Data, Admin from datetime import datetime import random import pytest # TODO Change these to suites def test_Admin_class(app): with app.test_request_context(): assert Admin.verify_admin('test', 'test') == 1 assert Admin.verify_admin('a', 'a') is None assert Admin.verify_...
37.301887
115
0.546788
252
1,977
4.126984
0.309524
0.046154
0.049038
0.063462
0.225
0.119231
0.063462
0
0
0
0
0.041698
0.320688
1,977
52
116
38.019231
0.732688
0.013657
0
0.093023
0
0.023256
0.164271
0.030801
0
0
0
0.019231
0.255814
1
0.046512
false
0.046512
0.093023
0
0.139535
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9ec653a6ebc3abe8cf863fc38ce27c43376acb4d
2,721
py
Python
SteeringAngle/SteeringAngle_64x64/cGAN-concat/opts.py
asatk/improved_CcGAN
29a58e6e2a03e56c2ad80ae1a2ebbd0710e026f3
[ "MIT" ]
1
2022-02-26T00:07:37.000Z
2022-02-26T00:07:37.000Z
SteeringAngle/SteeringAngle_64x64/cGAN-concat/opts.py
asatk/improved_CcGAN
29a58e6e2a03e56c2ad80ae1a2ebbd0710e026f3
[ "MIT" ]
null
null
null
SteeringAngle/SteeringAngle_64x64/cGAN-concat/opts.py
asatk/improved_CcGAN
29a58e6e2a03e56c2ad80ae1a2ebbd0710e026f3
[ "MIT" ]
null
null
null
import argparse def parse_opts(): parser = argparse.ArgumentParser() ''' Overall Settings ''' parser.add_argument('--root_path', type=str, default='') parser.add_argument('--data_path', type=str, default='') parser.add_argument('--eval_ckpt_path', type=str, default="") parser.add_argument('--G...
53.352941
109
0.708563
376
2,721
4.898936
0.303191
0.151466
0.286102
0.036916
0.414224
0.27633
0.27633
0.219327
0.131379
0.045603
0
0.0267
0.119074
2,721
50
110
54.42
0.741761
0.008453
0
0
0
0
0.26746
0.03185
0
0
0
0
0
1
0.027778
false
0
0.027778
0
0.083333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9eced0d0702bb4c72aedeb73d00fa9d16cde55c1
10,117
py
Python
visualdl/python/storage.py
nepeplwu/VisualDL
a6928902ca0802419fa337236b71d2db8e669e13
[ "Apache-2.0" ]
1
2019-08-23T08:42:44.000Z
2019-08-23T08:42:44.000Z
visualdl/python/storage.py
nepeplwu/VisualDL
a6928902ca0802419fa337236b71d2db8e669e13
[ "Apache-2.0" ]
null
null
null
visualdl/python/storage.py
nepeplwu/VisualDL
a6928902ca0802419fa337236b71d2db8e669e13
[ "Apache-2.0" ]
1
2020-01-29T03:38:35.000Z
2020-01-29T03:38:35.000Z
# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
31.814465
100
0.618365
1,326
10,117
4.603318
0.156863
0.023591
0.023591
0.030636
0.52867
0.412189
0.385321
0.354849
0.34502
0.299312
0
0.002956
0.297816
10,117
317
101
31.914827
0.856278
0.469606
0
0.380952
0
0
0.0685
0
0
0
0
0
0.028571
1
0.257143
false
0
0.019048
0.019048
0.495238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9ecf1e772652169e596541ecc68d61d2d7bb0154
958
py
Python
djangoproj/djangoapp/crawler/tests.py
pbarton666/buzz_bot
9f44c66e8ecb10e231f70989421f164d7a55029a
[ "MIT" ]
null
null
null
djangoproj/djangoapp/crawler/tests.py
pbarton666/buzz_bot
9f44c66e8ecb10e231f70989421f164d7a55029a
[ "MIT" ]
null
null
null
djangoproj/djangoapp/crawler/tests.py
pbarton666/buzz_bot
9f44c66e8ecb10e231f70989421f164d7a55029a
[ "MIT" ]
null
null
null
""" """ from django.test import TestCase import unittest import buzz import buzz.buzzapp #tests fror module models.py #catch-all error class generalFailureError(): pass class urlTests(unittest.TestCase): #see if we can import a bunch of strange urls def testImport(self): testUrls = [ ...
25.891892
92
0.593946
119
958
4.764706
0.613445
0.037037
0.063492
0.079365
0
0
0
0
0
0
0
0.012839
0.268267
958
36
93
26.611111
0.796006
0.322547
0
0
0
0
0.206625
0
0
0
0
0
0.058824
1
0.058824
false
0.058824
0.294118
0
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9ed094beeffb817d606c146cde2e68709369894a
567
py
Python
multiplier.py
Athenian-ComputerScience-Fall2020/functions-practice-mishikag
d3eaab479a06a378bf69412ab2200677cac9d07b
[ "Apache-2.0" ]
null
null
null
multiplier.py
Athenian-ComputerScience-Fall2020/functions-practice-mishikag
d3eaab479a06a378bf69412ab2200677cac9d07b
[ "Apache-2.0" ]
null
null
null
multiplier.py
Athenian-ComputerScience-Fall2020/functions-practice-mishikag
d3eaab479a06a378bf69412ab2200677cac9d07b
[ "Apache-2.0" ]
null
null
null
''' Adapt the code from one of the functions above to create a new function called 'multiplier'. The user should be able to input two numbers that are stored in variables. The function should multiply the two variables together and return the result to a variable in the main program. The main program should output the ...
35.4375
112
0.779541
90
567
4.844444
0.5
0.055046
0.06422
0
0
0
0
0
0
0
0
0
0.15873
567
15
113
37.8
0.914046
0.659612
0
0
0
0
0.194595
0
0
0
0
0
0
1
0.166667
false
0
0
0.166667
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
9ed09f07bff21cd606b03a8f925b51c3546e4c52
7,996
py
Python
python/IECoreMaya/ProceduralHolderUI.py
gcodebackups/cortex-vfx
72fa6c6eb3327fce4faf01361c8fcc2e1e892672
[ "BSD-3-Clause" ]
5
2016-07-26T06:09:28.000Z
2022-03-07T03:58:51.000Z
python/IECoreMaya/ProceduralHolderUI.py
turbosun/cortex
4bdc01a692652cd562f3bfa85f3dae99d07c0b15
[ "BSD-3-Clause" ]
null
null
null
python/IECoreMaya/ProceduralHolderUI.py
turbosun/cortex
4bdc01a692652cd562f3bfa85f3dae99d07c0b15
[ "BSD-3-Clause" ]
3
2015-03-25T18:45:24.000Z
2020-02-15T15:37:18.000Z
########################################################################## # # Copyright (c) 2010, Image Engine Design 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: # # * Redistribu...
35.856502
114
0.722986
817
7,996
7.020808
0.30967
0.054393
0.030683
0.040272
0.381625
0.298815
0.23152
0.214784
0.176081
0.176081
0
0.001784
0.158829
7,996
222
115
36.018018
0.851026
0.238119
0
0.345588
0
0
0.093374
0.01254
0
0
0
0
0
0
null
null
0
0.036765
null
null
0.044118
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9ed21022661c7a916494ec83a3cb118d9189a742
9,242
py
Python
flextensor/optimize/optimize_gemm_conv2d.py
imxian/FlexTensor
311af3362856ea1b0073404fffad42c54585c205
[ "MIT" ]
135
2020-03-15T11:28:48.000Z
2022-03-26T00:54:32.000Z
flextensor/optimize/optimize_gemm_conv2d.py
KnowingNothing/FlexTensor-Micro
6de200326d4999c56af3f3343282149bc5758c15
[ "MIT" ]
11
2020-03-23T11:06:38.000Z
2022-01-24T06:25:41.000Z
flextensor/optimize/optimize_gemm_conv2d.py
KnowingNothing/FlexTensor-Micro
6de200326d4999c56af3f3343282149bc5758c15
[ "MIT" ]
32
2020-03-17T05:12:59.000Z
2022-03-26T00:54:33.000Z
import os import sys import argparse import time import json import tvm import torch from flextensor.utils import Config from flextensor.task import Task, TASK_TABLE from flextensor.scheduler import schedule, schedule_with_config from flextensor.measure import _evaluate from flextensor.configs.conv2d_config import * ...
40.893805
155
0.574443
1,247
9,242
4.147554
0.176423
0.021655
0.020302
0.016241
0.419374
0.350348
0.344354
0.29099
0.258701
0.232792
0
0.148606
0.282082
9,242
225
156
41.075556
0.630897
0.010387
0
0.253165
0
0
0.111189
0.027692
0
0
0
0
0.006329
0
null
null
0
0.075949
null
null
0.113924
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9ed3430dc6e6432198407f10f0d831d967ce9665
24,937
py
Python
desc/compute/_core.py
MothVine/DESC
8f18ca63b34dad07ec67a4d43945d39287b303b8
[ "MIT" ]
null
null
null
desc/compute/_core.py
MothVine/DESC
8f18ca63b34dad07ec67a4d43945d39287b303b8
[ "MIT" ]
null
null
null
desc/compute/_core.py
MothVine/DESC
8f18ca63b34dad07ec67a4d43945d39287b303b8
[ "MIT" ]
null
null
null
"""Core compute functions, for profiles, geometry, and basis vectors/jacobians.""" import numpy as np from desc.backend import jnp from desc.compute import data_index def check_derivs(key, R_transform=None, Z_transform=None, L_transform=None): """Check if Transforms can compute required derivatives of R, Z, lam...
32.427828
88
0.597065
3,585
24,937
3.916318
0.057741
0.061254
0.05641
0.102564
0.779416
0.722863
0.669587
0.583333
0.562108
0.535256
0
0.003615
0.245779
24,937
768
89
32.470052
0.742875
0.313751
0
0.284635
0
0
0.16062
0
0
0
0
0.001302
0
1
0.040302
false
0
0.007557
0
0.088161
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9ed4532ecb8e8d80fe5160b5b9cd6e0c06dcdab5
3,297
py
Python
bookwyrm/tests/views/imports/test_import_review.py
mouse-reeve/fedireads
e3471fcc3500747a1b1deaaca662021aae5b08d4
[ "CC0-1.0" ]
270
2020-01-27T06:06:07.000Z
2020-06-21T00:28:18.000Z
bookwyrm/tests/views/imports/test_import_review.py
mouse-reeve/fedireads
e3471fcc3500747a1b1deaaca662021aae5b08d4
[ "CC0-1.0" ]
158
2020-02-10T20:36:54.000Z
2020-06-26T17:12:54.000Z
bookwyrm/tests/views/imports/test_import_review.py
mouse-reeve/fedireads
e3471fcc3500747a1b1deaaca662021aae5b08d4
[ "CC0-1.0" ]
15
2020-02-13T21:53:33.000Z
2020-06-17T16:52:46.000Z
""" test for app action functionality """ from unittest.mock import patch from django.template.response import TemplateResponse from django.test import TestCase from django.test.client import RequestFactory from bookwyrm.tests.validate_html import validate_html from bookwyrm import models, views class ImportManualRe...
37.465909
85
0.634516
377
3,297
5.37931
0.320955
0.073965
0.032051
0.033531
0.317554
0.304734
0.278107
0.239645
0.211045
0.17357
0
0.002865
0.259023
3,297
87
86
37.896552
0.827262
0.055505
0
0.323944
0
0
0.113924
0.0753
0
0
0
0
0.126761
1
0.056338
false
0.014085
0.323944
0
0.394366
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9ed9e3b5b5513668280f1d38a124768fcfee33aa
1,916
py
Python
eroshare/extract_albums_links.py
topaz1874/iscripts
990c8df11b3f824dfdee15ce6bda67c8e0c7bf8d
[ "MIT" ]
null
null
null
eroshare/extract_albums_links.py
topaz1874/iscripts
990c8df11b3f824dfdee15ce6bda67c8e0c7bf8d
[ "MIT" ]
null
null
null
eroshare/extract_albums_links.py
topaz1874/iscripts
990c8df11b3f824dfdee15ce6bda67c8e0c7bf8d
[ "MIT" ]
null
null
null
import sys import requests from bs4 import BeautifulSoup url = 'https://eroshare.com/u/Eneswar' def get_soup(url): r = requests.get(url, timeout=10) if r.status_code == requests.codes.ok: soup = BeautifulSoup(r.content, 'html.parser') else: r.raise_for_status() return soup def get_al...
26.985915
75
0.618998
257
1,916
4.342412
0.307393
0.125448
0.043011
0.048387
0.143369
0.143369
0.05914
0
0
0
0
0.003448
0.243215
1,916
70
76
27.371429
0.766207
0.033925
0
0.153846
0
0
0.132249
0
0
0
0
0
0
0
null
null
0
0.057692
null
null
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9edcb748675acd6c2ea1739db0bc843ac7656846
1,299
py
Python
Demo/compute_gr.py
matthagy/PyLJFluid
386925e76283e5340e2cb55599e2a799e9606152
[ "Apache-2.0" ]
4
2016-04-19T12:35:33.000Z
2020-02-06T04:52:31.000Z
Demo/compute_gr.py
matthagy/PyLJFluid
386925e76283e5340e2cb55599e2a799e9606152
[ "Apache-2.0" ]
1
2016-04-18T14:52:53.000Z
2016-04-18T14:52:53.000Z
Demo/compute_gr.py
matthagy/PyLJFluid
386925e76283e5340e2cb55599e2a799e9606152
[ "Apache-2.0" ]
2
2020-10-01T08:41:33.000Z
2020-11-10T19:17:31.000Z
'''Simulate a Lennard-Jones fluid and plot the computed g(r) ''' from pyljfluid.components import (LJForceField, Config, MDSimulator, StaticPairCorrelationCalculator) import matplotlib.pyplot as plt # Parameters N = 1000 rho = 0.2 T = 1.5 forcefield = LJForceField(sigma=1.0, epsilon=...
30.928571
84
0.678214
192
1,299
4.505208
0.453125
0.009249
0.030058
0.023121
0.030058
0
0
0
0
0
0
0.044298
0.183218
1,299
41
85
31.682927
0.770971
0.048499
0
0
0
0
0.101201
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9ee237a958e7145dcf3253430887df1f556acc83
4,300
py
Python
wldata_backup/auxilaryquery.py
jakariapervez/cmis6
de279e5c586a77745ddd3d471599784606d50d15
[ "MIT" ]
null
null
null
wldata_backup/auxilaryquery.py
jakariapervez/cmis6
de279e5c586a77745ddd3d471599784606d50d15
[ "MIT" ]
7
2021-06-04T23:45:15.000Z
2022-03-12T00:44:14.000Z
wldata_backup/auxilaryquery.py
jakariapervez/cmis6
de279e5c586a77745ddd3d471599784606d50d15
[ "MIT" ]
null
null
null
import os import pandas as pd import datetime import random import math from .models import GaugeLocation,GaugeReading def generateWL(year,month,days,max_val,min_val,gauge_id): times=[] readings=[] for d in days: D1=datetime.datetime(year,month,d,6) times.append(D1) wl=float(random...
32.089552
109
0.640698
576
4,300
4.65625
0.210069
0.049217
0.044743
0.055928
0.564504
0.490679
0.456376
0.393736
0.302386
0.302386
0
0.031915
0.234884
4,300
134
110
32.089552
0.783283
0
0
0.409836
1
0
0.030691
0
0
0
0
0
0
1
0.040984
false
0
0.04918
0
0.098361
0.155738
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9ee23c3f47e68f0f432810d5f2df587b20a98b61
1,179
py
Python
demos/form_1/app.py
WeiWei1992/helloflask
30715ef7266bb5b438006d868e5b761b97e5162d
[ "MIT" ]
null
null
null
demos/form_1/app.py
WeiWei1992/helloflask
30715ef7266bb5b438006d868e5b761b97e5162d
[ "MIT" ]
null
null
null
demos/form_1/app.py
WeiWei1992/helloflask
30715ef7266bb5b438006d868e5b761b97e5162d
[ "MIT" ]
null
null
null
import os from flask import Flask, render_template, flash, redirect, url_for, request, send_from_directory, session from flask_ckeditor import CKEditor, upload_success, upload_fail from flask_dropzone import Dropzone from flask_wtf.csrf import validate_csrf from wtforms import ValidationError from forms import LoginFo...
29.475
105
0.679389
146
1,179
5.30137
0.424658
0.046512
0.036176
0.05168
0
0
0
0
0
0
0
0
0.159457
1,179
40
106
29.475
0.781029
0.07464
0
0
0
0
0.187328
0.019284
0
0
0
0
0
1
0.037037
false
0.111111
0.259259
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
0
0
0
0
0
1
9ee523807cb78bdb8a5474357ba65d1d75d67450
1,312
py
Python
zmqrpc/proxy/ZmqProxyRep2Req.py
brgirgis/pyzmqrpc3
a93339f98686e7f695f7c8a19dac198e4fc56aab
[ "MIT" ]
null
null
null
zmqrpc/proxy/ZmqProxyRep2Req.py
brgirgis/pyzmqrpc3
a93339f98686e7f695f7c8a19dac198e4fc56aab
[ "MIT" ]
null
null
null
zmqrpc/proxy/ZmqProxyRep2Req.py
brgirgis/pyzmqrpc3
a93339f98686e7f695f7c8a19dac198e4fc56aab
[ "MIT" ]
null
null
null
''' Created on Apr 2014 Edited on Oct 2020 @author: Jan Verhoeven @author: Bassem Girgis @copyright: MIT license, see http://opensource.org/licenses/MIT ''' from typing import Optional, Tuple from .ZmqProxy import ZmqProxy class ZmqProxyRep2Req(ZmqProxy): ''' This class implements a simple message forw...
27.914894
74
0.64939
151
1,312
5.350993
0.450331
0.054455
0.074257
0.042079
0
0
0
0
0
0
0
0.014706
0.27439
1,312
46
75
28.521739
0.834034
0.258384
0
0
0
0
0
0
0
0
0
0
0
1
0.043478
false
0.173913
0.086957
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9ee9bc7ee0e2295b3fb198bcad67466e8401e019
437
py
Python
day_2/pattern_16.py
anishLearnsToCode/python-training-1
ef5d6b64f888e167faecd1410563173dcc27f319
[ "MIT" ]
3
2021-01-05T18:00:14.000Z
2021-11-28T15:43:04.000Z
day_2/pattern_16.py
anishLearnsToCode/python-training-1
ef5d6b64f888e167faecd1410563173dcc27f319
[ "MIT" ]
null
null
null
day_2/pattern_16.py
anishLearnsToCode/python-training-1
ef5d6b64f888e167faecd1410563173dcc27f319
[ "MIT" ]
null
null
null
""" n = 4 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 count: i + 1 f(i, j) = i (i + 1) / 2 + 1 + j 1 + 2 + 3 + 4 + ... + n = n (n + 1) / 2 """ n = int(input()) # k = 1 # for i in range(n): # for _ in range(i + 1): # print(k, end=' ') # k += 1 # print() """ Time Complexity: O(n^2) Space Complexity: ...
13.242424
48
0.407323
88
437
2.011364
0.363636
0.056497
0.033898
0.045198
0.40678
0.248588
0.180791
0
0
0
0
0.149091
0.370709
437
32
49
13.65625
0.494545
0.533181
0
0
0
0
0.007299
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
1
9eeb8ade683622e2e24dbabc4b2775e08efdfc9f
30,667
py
Python
MIDI Remote Scripts/ableton/v2/control_surface/control_surface.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
MIDI Remote Scripts/ableton/v2/control_surface/control_surface.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
MIDI Remote Scripts/ableton/v2/control_surface/control_surface.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
# uncompyle6 version 3.3.5 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)] # Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\ableton\v2\control_surface\control_surface.py # Compiled at: 2019-04-...
40.298292
544
0.671438
3,668
30,667
5.309978
0.154853
0.020845
0.013349
0.013554
0.329106
0.240232
0.177235
0.152334
0.130667
0.100169
0
0.005402
0.257541
30,667
761
545
40.298292
0.850015
0.010467
0
0.280992
0
0
0.014427
0
0
0
0
0
0.078512
0
null
null
0.006198
0.03719
null
null
0.008264
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9eee6c02efc329032f1a387b514488b7a2d78af6
1,165
py
Python
Chapter39.Decorators/3-decorator2-for_function.py
mindnhand/Learning-Python-5th
3dc1b28d6e048d512bf851de6c7f6445edfe7b84
[ "MIT" ]
null
null
null
Chapter39.Decorators/3-decorator2-for_function.py
mindnhand/Learning-Python-5th
3dc1b28d6e048d512bf851de6c7f6445edfe7b84
[ "MIT" ]
null
null
null
Chapter39.Decorators/3-decorator2-for_function.py
mindnhand/Learning-Python-5th
3dc1b28d6e048d512bf851de6c7f6445edfe7b84
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #encoding=utf-8 #------------------------------------------------ # Usage: python3 3-decorator2.py # Description: Tracer call with key-word only #------------------------------------------------ class Tracer: # state via instance attributes def __init__(self, func): # ...
29.871795
80
0.522747
148
1,165
3.925676
0.47973
0.068847
0.010327
0.086059
0
0
0
0
0
0
0
0.021661
0.286695
1,165
38
81
30.657895
0.677497
0.471245
0
0.105263
0
0
0.035058
0
0
0
0
0
0
1
0.210526
false
0
0
0
0.315789
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9eef26e818a4eb093ed07f73ac70605dbcfcdd6c
5,131
py
Python
accounts/forms.py
simpledatatools/start-django
aa3df13fb930f80642b0dc2d9d25b2f8197a0236
[ "MIT" ]
1
2022-02-25T18:39:44.000Z
2022-02-25T18:39:44.000Z
accounts/forms.py
prateekmohanty63/microfinance
39839c0d378be4ccc40a9dde5dc38a10773a38a1
[ "MIT" ]
null
null
null
accounts/forms.py
prateekmohanty63/microfinance
39839c0d378be4ccc40a9dde5dc38a10773a38a1
[ "MIT" ]
1
2022-02-24T13:17:20.000Z
2022-02-24T13:17:20.000Z
from django import forms from django.contrib.auth.forms import UserCreationForm, PasswordResetForm, SetPasswordForm from django.contrib.auth.models import User, Group, Permission from django.core.exceptions import ValidationError from django.utils.translation import gettext, gettext_lazy as _ from django.contrib.auth i...
32.474684
130
0.579224
506
5,131
5.790514
0.250988
0.033788
0.049147
0.05529
0.405461
0.374403
0.364846
0.33686
0.325256
0.233788
0
0.010686
0.306958
5,131
157
131
32.681529
0.813273
0.013058
0
0.42446
0
0
0.202094
0
0
0
0
0
0
1
0.035971
false
0.266187
0.064748
0
0.244604
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9eef46661947fcf1a104a9acb0014fb19405cb52
3,870
py
Python
flocker/provision/_effect.py
stackriot/flocker
eaa586248986d7cd681c99c948546c2b507e44de
[ "Apache-2.0" ]
2,690
2015-01-02T11:12:11.000Z
2022-03-15T15:41:51.000Z
flocker/provision/_effect.py
stackriot/flocker
eaa586248986d7cd681c99c948546c2b507e44de
[ "Apache-2.0" ]
2,102
2015-01-02T18:49:40.000Z
2021-01-21T18:49:47.000Z
flocker/provision/_effect.py
stackriot/flocker
eaa586248986d7cd681c99c948546c2b507e44de
[ "Apache-2.0" ]
333
2015-01-10T01:44:01.000Z
2022-03-08T15:03:04.000Z
from functools import partial from six import reraise from characteristic import attributes from effect import ( sync_performer, Effect, ComposedDispatcher, TypeDispatcher, base_dispatcher) from treq import get from pyrsistent import PClass, field from txeffect import deferred_performer from eliot import startA...
29.097744
79
0.677519
496
3,870
5.21371
0.344758
0.011601
0.010441
0.015081
0.032869
0.025522
0.025522
0.025522
0.025522
0.025522
0
0.001016
0.236693
3,870
132
80
29.318182
0.874408
0.424806
0
0
0
0
0.027491
0.016691
0
0
0
0
0
1
0.157895
false
0
0.157895
0.035088
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
0
0
0
1
0
0
1
9ef31635f2565dc77cdf63ccb250c0f9cc3d8d27
452
py
Python
est8/main.py
MartinHowarth/est8
fcc5700024830eada2d08b409fdefb9a0edca4a2
[ "MIT" ]
null
null
null
est8/main.py
MartinHowarth/est8
fcc5700024830eada2d08b409fdefb9a0edca4a2
[ "MIT" ]
1
2020-01-11T14:50:48.000Z
2020-01-11T14:50:48.000Z
est8/main.py
MartinHowarth/est8
fcc5700024830eada2d08b409fdefb9a0edca4a2
[ "MIT" ]
null
null
null
import cocos import sys from est8.backend.definitions import GameDefinition from est8.frontend.game import GameDisplay def main(): director = cocos.director.director director.init(width=1400, height=800) director.window.position = 100, 100 game_definition = GameDefinition.default() game_display ...
21.52381
51
0.747788
55
452
5.927273
0.545455
0.04908
0
0
0
0
0
0
0
0
0
0.039267
0.154867
452
20
52
22.6
0.814136
0
0
0
0
0
0.017699
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9ef77d97ee70eadc94ad4868c41136da15e14de2
8,440
py
Python
subsets.py
puzis/experiments
9a8d34235aed5f5044c2150bbe98e59bba73bce6
[ "MIT" ]
null
null
null
subsets.py
puzis/experiments
9a8d34235aed5f5044c2150bbe98e59bba73bce6
[ "MIT" ]
null
null
null
subsets.py
puzis/experiments
9a8d34235aed5f5044c2150bbe98e59bba73bce6
[ "MIT" ]
null
null
null
class MonosizeLexIterator(object): """ (self, size, universeSize, client = None) # defined members : # _stack - stack of next set elements # _universeSize # _clientSet - # _hasClient """ def __init__(self, size, universeSize, client = None)...
36.536797
93
0.521564
876
8,440
4.88242
0.216895
0.053776
0.035071
0.044424
0.375497
0.314239
0.284078
0.240589
0.240589
0.240589
0
0.012382
0.387559
8,440
230
94
36.695652
0.815051
0.186137
0
0.409091
0
0
0.001249
0
0
0
0
0
0.045455
0
null
null
0
0.006494
null
null
0.012987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
730393364e6e2c4cf6ed8d817b75e222c1251e85
281
py
Python
alembic/versions/1b8378b8914_person_romania_curat.py
wenbs/mptracker
e011ab11954bbf785ae11fea7ed977440df2284a
[ "MIT" ]
4
2015-01-20T15:03:15.000Z
2017-03-15T09:56:07.000Z
alembic/versions/1b8378b8914_person_romania_curat.py
wenbs/mptracker
e011ab11954bbf785ae11fea7ed977440df2284a
[ "MIT" ]
3
2021-03-31T18:53:12.000Z
2022-03-21T22:16:35.000Z
alembic/versions/1b8378b8914_person_romania_curat.py
wenbs/mptracker
e011ab11954bbf785ae11fea7ed977440df2284a
[ "MIT" ]
6
2015-12-13T08:56:49.000Z
2021-08-07T20:36:29.000Z
revision = '1b8378b8914' down_revision = '55c008192aa' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column('person', sa.Column('romania_curata', sa.Text(), nullable=True)) def downgrade(): op.drop_column('person', 'romania_curata')
18.733333
66
0.69395
35
281
5.428571
0.657143
0.126316
0
0
0
0
0
0
0
0
0
0.073276
0.174377
281
14
67
20.071429
0.74569
0
0
0
0
0
0.220641
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7305121620848869f57e5405c7e56e36531a88e9
1,250
py
Python
1-property_proteomevis/tm_and_sid/pre_run_extra.py
proteins247/proteomevis_scripts
33d864f02787659a5d75103baad556fb48b3bd1e
[ "MIT" ]
1
2020-11-11T06:14:10.000Z
2020-11-11T06:14:10.000Z
1-property_proteomevis/tm_and_sid/pre_run_extra.py
proteins247/proteomevis_scripts
33d864f02787659a5d75103baad556fb48b3bd1e
[ "MIT" ]
null
null
null
1-property_proteomevis/tm_and_sid/pre_run_extra.py
proteins247/proteomevis_scripts
33d864f02787659a5d75103baad556fb48b3bd1e
[ "MIT" ]
1
2019-05-28T19:13:24.000Z
2019-05-28T19:13:24.000Z
#!/usr/bin/python help_msg = 'write extra.txt files for ./run --extra/--EXTRA' import sys, os CWD = os.getcwd() UTLTS_DIR = CWD[:CWD.index('proteomevis_scripts')]+'/proteomevis_scripts/utlts' sys.path.append(UTLTS_DIR) from parse_user_input import help_message from read_in_file import read_in from parse_data import ...
34.722222
140
0.704
193
1,250
4.357513
0.404145
0.042806
0.061831
0.0761
0.185493
0.066587
0.066587
0
0
0
0
0.009251
0.1352
1,250
35
141
35.714286
0.768733
0.0888
0
0.142857
0
0
0.381162
0.068662
0
0
0
0
0
0
null
null
0
0.178571
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
73058c24bc4f77759ba5d03cefd65f42b55bdb72
1,083
py
Python
code/counting_the_number_of_hollow_square_laminae_that_can_form_one_two_three__distinct_arrangements/sol_174.py
bhavinjawade/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
2
2020-07-16T08:16:32.000Z
2020-10-01T07:16:48.000Z
code/counting_the_number_of_hollow_square_laminae_that_can_form_one_two_three__distinct_arrangements/sol_174.py
Psingh12354/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
null
null
null
code/counting_the_number_of_hollow_square_laminae_that_can_form_one_two_three__distinct_arrangements/sol_174.py
Psingh12354/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
1
2021-05-07T18:06:08.000Z
2021-05-07T18:06:08.000Z
# -*- coding: utf-8 -*- ''' File name: code\counting_the_number_of_hollow_square_laminae_that_can_form_one_two_three__distinct_arrangements\sol_174.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #174 :: Counting the number of "hollow" squ...
34.935484
185
0.722992
189
1,083
4.079365
0.539683
0.046693
0.057069
0.049287
0.267185
0.267185
0.207523
0.207523
0.207523
0.207523
0
0.04675
0.190212
1,083
30
186
36.1
0.827822
0.433056
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
730ca3d0074d0d79f37aadd9b64ce7f2c38a11c0
7,830
py
Python
tests/test_orderpackage.py
mberk/flumine
6216bcc233326cf07852fca9c7d39a18cee265ad
[ "MIT" ]
77
2017-12-09T07:10:18.000Z
2022-03-03T09:50:35.000Z
tests/test_orderpackage.py
mberk/flumine
6216bcc233326cf07852fca9c7d39a18cee265ad
[ "MIT" ]
423
2017-01-21T07:26:51.000Z
2022-03-04T11:13:54.000Z
tests/test_orderpackage.py
mberk/flumine
6216bcc233326cf07852fca9c7d39a18cee265ad
[ "MIT" ]
47
2017-04-22T17:31:41.000Z
2022-01-11T08:52:37.000Z
import unittest from unittest import mock from flumine import config from flumine.order.orderpackage import ( OrderPackageType, BaseOrderPackage, EventType, QueueType, BetfairOrderPackage, ExchangeType, OrderStatus, ) class OrderPackageTest(unittest.TestCase): def setUp(self) -> None:...
38.955224
86
0.680971
883
7,830
5.751982
0.112118
0.179563
0.236267
0.151211
0.719039
0.549715
0.465052
0.390234
0.35952
0.248474
0
0.009554
0.224649
7,830
200
87
39.15
0.827047
0
0
0.296512
0
0
0.020945
0.006641
0
0
0
0
0.348837
1
0.139535
false
0
0.023256
0
0.174419
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
731089cb8fcf2b01b7ea762c3ff147b6cf4fd214
2,722
py
Python
python/functions/logstash_endpointApi.py
Z88897050/emulateSamples
57a519422e0e15aadc301470ac6a8397848d93c3
[ "Apache-2.0" ]
null
null
null
python/functions/logstash_endpointApi.py
Z88897050/emulateSamples
57a519422e0e15aadc301470ac6a8397848d93c3
[ "Apache-2.0" ]
1
2021-09-21T14:38:33.000Z
2021-09-21T14:38:33.000Z
python/functions/logstash_endpointApi.py
Z88897050/emulateSamples
57a519422e0e15aadc301470ac6a8397848d93c3
[ "Apache-2.0" ]
1
2019-05-17T11:31:47.000Z
2019-05-17T11:31:47.000Z
#!/usr/bin/python # -*- coding: UTF-8 -*- # 通过logstash的endpoint api(http)获取plugin的输出信息 from urllib import request from urllib import error import time port = int(input("输入端口号:")) ''' {"host":"node14","version":"5.3.0","http_address":"127.0.0.1:9600","id":"c0453696-9e73-41a4-ab1f-d023aed55305","name":"node14", "pip...
41.242424
143
0.654298
332
2,722
5.213855
0.343373
0.034662
0.055459
0.050838
0.448296
0.397458
0.333911
0.257655
0.257655
0.257655
0
0.129466
0.12601
2,722
65
144
41.876923
0.59815
0.068332
0
0.107143
0
0
0.096262
0.019626
0
0
0
0
0
1
0.071429
false
0.107143
0.107143
0
0.178571
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7319ae3c7bed4a17436625c258cfe22c868d631e
1,843
py
Python
pythonQuiz.py
Lakhankumawat/Python-Quiz
1e4b38f1afa73d939ca18a139ce92e17cab90385
[ "FSFAP" ]
null
null
null
pythonQuiz.py
Lakhankumawat/Python-Quiz
1e4b38f1afa73d939ca18a139ce92e17cab90385
[ "FSFAP" ]
null
null
null
pythonQuiz.py
Lakhankumawat/Python-Quiz
1e4b38f1afa73d939ca18a139ce92e17cab90385
[ "FSFAP" ]
null
null
null
def q1(): print("hello" * 5) def q2(): x, y = 4, 5 y, x = x, y print(x) print(y) def q3(): z = 9 lst = [0] * z print(lst[:-1]) def q4(): def help(x): return x % 2 == 0 lst = [i**2 for i in range(10)] lst = filter(help, lst) print(list(lst)[::2]) def q5(): z = 0 for i in range(1, 10): if (i + 1...
12.205298
62
0.486706
374
1,843
2.34492
0.219251
0.022805
0.027366
0.050171
0.18244
0.041049
0
0
0
0
0
0.093344
0.29083
1,843
150
63
12.286667
0.577659
0
0
0.183333
0
0
0.014107
0
0
0
0
0
0
1
0.241667
false
0
0.008333
0.025
0.333333
0.275
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
731f3b1b214c383bf1056c0343c35c6932c2ed2e
988
py
Python
bounties_api/bounties/views.py
tenthirtyone/BountiesAPI
2bb449a947d987072be24633ba36fbd67c0ab29b
[ "MIT" ]
45
2018-03-24T21:37:59.000Z
2021-11-12T11:53:04.000Z
bounties_api/bounties/views.py
tenthirtyone/BountiesAPI
2bb449a947d987072be24633ba36fbd67c0ab29b
[ "MIT" ]
192
2018-03-15T22:42:51.000Z
2022-02-12T11:42:20.000Z
bounties_api/bounties/views.py
tenthirtyone/BountiesAPI
2bb449a947d987072be24633ba36fbd67c0ab29b
[ "MIT" ]
27
2018-03-23T17:12:27.000Z
2021-12-06T02:21:26.000Z
import copy from django.http import HttpResponseBadRequest from django.contrib.sitemaps import views as django_sitemaps_views def custom_sitemap_index(request, sitemaps, section=None, template_name='sitemap.xml', content_type='application/xml'): platform = request.GET.get('platform', None) platform_in = reque...
39.52
119
0.754049
122
988
5.901639
0.360656
0.083333
0.054167
0.058333
0
0
0
0
0
0
0
0
0.158907
988
24
120
41.166667
0.866426
0
0
0
0
0
0.09919
0
0
0
0
0
0
1
0.055556
false
0.055556
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
0
0
0
0
1
0
0
0
0
0
1
731f7c95dc2ef2e811eab0176c40ff6d0b7ae38b
1,187
py
Python
setup.py
huangf1/moonmask
ba62a1f8430a122904b7f9d4ebd1d7809c75a4f2
[ "MIT" ]
null
null
null
setup.py
huangf1/moonmask
ba62a1f8430a122904b7f9d4ebd1d7809c75a4f2
[ "MIT" ]
null
null
null
setup.py
huangf1/moonmask
ba62a1f8430a122904b7f9d4ebd1d7809c75a4f2
[ "MIT" ]
null
null
null
from distutils.core import setup from setuptools import setup, find_packages setup( name = 'moonmask', packages = find_packages(), version = '1.9', license='MIT', description = 'Gets moon visualizations courtesy of Ernie Wright and uses them for artistic collages', author = 'Sadie Parker', ...
32.081081
106
0.604044
143
1,187
4.972028
0.594406
0.106892
0.140647
0.146273
0.09564
0.09564
0
0
0
0
0
0.048193
0.230834
1,187
36
107
32.972222
0.730559
0
0
0.057143
0
0
0.565291
0.038753
0
0
0
0
0
1
0
true
0
0.057143
0
0.057143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
731fb0b256aedf6f79e5439087f61efa1a97c3aa
4,258
py
Python
PlaidCTF/2020/misc/BonziScheme/app/bonzi/acsparse.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
PlaidCTF/2020/misc/BonziScheme/app/bonzi/acsparse.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
PlaidCTF/2020/misc/BonziScheme/app/bonzi/acsparse.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
import os import struct from tabulate import tabulate import numpy as np import bitstring from PIL import Image SZ_ULONG = 4 SZ_LONG = 4 SZ_USHORT = 2 SZ_SHORT = 2 SZ_BYTE = 1 SZ_WCHAR = 2 class ACSParseException(Exception): def __init__(self, value): super(ACSParseE...
22.892473
85
0.57891
536
4,258
4.425373
0.257463
0.074199
0.097386
0.115093
0.325042
0.16231
0.151771
0.13575
0.104553
0.104553
0
0.012414
0.318929
4,258
186
86
22.892473
0.805517
0.097933
0
0.091837
0
0
0.010491
0
0
0
0.001104
0.005376
0
0
null
null
0
0.061224
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
73215f26a92ec4d53a58ae22f6366842c484fa7f
14,481
py
Python
src/corex/corex_basic.py
rsling/cow
afd42457a5f454e2271711ddaf0ef67406d4777f
[ "BSD-2-Clause" ]
2
2019-01-19T11:31:08.000Z
2020-08-10T08:36:34.000Z
src/corex/corex_basic.py
rsling/cow
afd42457a5f454e2271711ddaf0ef67406d4777f
[ "BSD-2-Clause" ]
null
null
null
src/corex/corex_basic.py
rsling/cow
afd42457a5f454e2271711ddaf0ef67406d4777f
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Get elemenatry features from COW-DOM. import os.path import sys import glob import re from lxml import etree as ET # Just for rounding. StringHandler etc. maybe? class FloatHandler: def __init__(self, digits): self.digits = digits def act(self, d): return str(round...
39.137838
918
0.623438
2,335
14,481
3.67666
0.214561
0.038439
0.05661
0.07548
0.272568
0.184042
0.160163
0.144787
0.124054
0.071753
0
0.00582
0.204958
14,481
369
919
39.243902
0.739859
0.146882
0
0.041885
0
0.005236
0.138288
0.017069
0
0
0
0.00271
0
0
null
null
0
0.026178
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
732324239c38bcebc9b5fa550149db78b520f8f0
3,004
py
Python
rm.py
dsoft20/romrenamer
d6340c687835a95fc3ad8eae2b8409263da72376
[ "MIT" ]
1
2017-04-12T14:08:47.000Z
2017-04-12T14:08:47.000Z
rm.py
dsoft20/romrenamer
d6340c687835a95fc3ad8eae2b8409263da72376
[ "MIT" ]
null
null
null
rm.py
dsoft20/romrenamer
d6340c687835a95fc3ad8eae2b8409263da72376
[ "MIT" ]
null
null
null
#Replace game name with the rom name, github: https://github.com/dsoft20 #This script takes the gamelist.xml generated by the Universal XML-Scraper #and replace the scraped name field (<name>) with the rom name # <path>./Game name (Europe).zip</path> # <name>Game name</name> # TO # <path>./Game name (Europe).z...
29.742574
332
0.674434
416
3,004
4.850962
0.411058
0.076313
0.039643
0.028246
0.22002
0.20218
0.142716
0.142716
0.142716
0.056492
0
0.012138
0.1498
3,004
100
333
30.04
0.777995
0.369507
0
0.301887
1
0
0.270878
0
0
0
0
0
0
1
0.037736
false
0
0.018868
0
0.113208
0.150943
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
73285a15cc1a4efa749f74e5e16060418c0e54a5
268
py
Python
db2/__init__.py
WindfallLabs/db2
bdda797a0153e3885e010bbf1638ef499e7e3a1f
[ "BSD-3-Clause" ]
null
null
null
db2/__init__.py
WindfallLabs/db2
bdda797a0153e3885e010bbf1638ef499e7e3a1f
[ "BSD-3-Clause" ]
null
null
null
db2/__init__.py
WindfallLabs/db2
bdda797a0153e3885e010bbf1638ef499e7e3a1f
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from .db import DB from .db import SQLiteDB, MSSQLDB, PostgresDB __author__ = """Garin Wally""" __email__ = 'garwall101@gmail.com' __version__ = '1.0b1.dev1' options = { "sqlite_datetime_format": u"%Y-%m-%d %H:%M:%S" }
17.866667
50
0.705224
37
268
4.594595
0.810811
0.070588
0.141176
0
0
0
0
0
0
0
0
0.030702
0.149254
268
14
51
19.142857
0.714912
0
0
0
0
0
0.299625
0.082397
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
732f9bf4a3f48a96379b0298faa124b280962f66
316
py
Python
catalog/models.py
tdpearson/cybercommons
37295cef2ef89ede5a7b7de51719cf0a578ed0b1
[ "BSD-3-Clause" ]
null
null
null
catalog/models.py
tdpearson/cybercommons
37295cef2ef89ede5a7b7de51719cf0a578ed0b1
[ "BSD-3-Clause" ]
15
2019-12-04T22:40:52.000Z
2022-03-02T23:28:57.000Z
catalog/models.py
tdpearson/cybercommons
37295cef2ef89ede5a7b7de51719cf0a578ed0b1
[ "BSD-3-Clause" ]
8
2019-08-21T17:00:52.000Z
2022-03-04T06:26:28.000Z
from django.db import models from django.contrib.auth.models import User # Create your models here. class catalogModel(models.Model): class Meta: managed=False permissions = ( ('catalog_admin', 'Catalog Admin'), ('catalog_create','Create Catalog Collections'), )
26.333333
60
0.64557
34
316
5.941176
0.617647
0.09901
0.188119
0
0
0
0
0
0
0
0
0
0.256329
316
11
61
28.727273
0.859574
0.075949
0
0
0
0
0.227586
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.444444
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7333df471e4a070ce9348e4803d0949728b11c62
1,124
py
Python
openprocurement_client/resources/edr.py
openprocurement/ProzorroUKR-openprocurement.client.python
ccd573d2b71fe8ab197773253e170c132c66501b
[ "Apache-2.0" ]
1
2020-05-16T22:05:30.000Z
2020-05-16T22:05:30.000Z
openprocurement_client/resources/edr.py
openprocurement/ProzorroUKR-openprocurement.client.python
ccd573d2b71fe8ab197773253e170c132c66501b
[ "Apache-2.0" ]
null
null
null
openprocurement_client/resources/edr.py
openprocurement/ProzorroUKR-openprocurement.client.python
ccd573d2b71fe8ab197773253e170c132c66501b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from openprocurement_client.compatibility_utils import munchify_factory from simplejson import loads from openprocurement_client.exceptions import InvalidResponse from openprocurement_client.templates import APITemplateClient munchify = munchify_factory() class EDRClient(APITemplateClient)...
34.060606
105
0.703737
133
1,124
5.706767
0.473684
0.055336
0.057971
0.039526
0.065876
0.065876
0
0
0
0
0
0.006615
0.193061
1,124
32
106
35.125
0.830209
0.051601
0
0
0
0
0.05949
0
0
0
0
0
0
1
0.095238
false
0.095238
0.190476
0
0.47619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
734ab8b6d1d7c596684a41afe2df3ec74f80eb83
514
py
Python
config/urls.py
pythify/backend-pithify
ac845bd96769d3cda1e32ea5c141598f0529db19
[ "MIT" ]
null
null
null
config/urls.py
pythify/backend-pithify
ac845bd96769d3cda1e32ea5c141598f0529db19
[ "MIT" ]
null
null
null
config/urls.py
pythify/backend-pithify
ac845bd96769d3cda1e32ea5c141598f0529db19
[ "MIT" ]
null
null
null
"""Main URLs module.""" from django.urls import path, include from django.conf import settings from django.urls import path from django.conf.urls.static import static from django.contrib import admin urlpatterns = [ # Django Admin path(settings.ADMIN_URL, admin.site.urls), #CEOL users path('', include...
30.235294
74
0.717899
68
514
5.367647
0.338235
0.136986
0.076712
0.109589
0.131507
0
0
0
0
0
0
0
0.134241
514
16
75
32.125
0.820225
0.079767
0
0
0
0
0.113734
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
734bdbfabfd83f9acd778416b459a39ed8a0ad6b
383
py
Python
other/send_email.py
zjhdota/practice
de28003e7adf6140dfc06a1ffa3a808e514dbbc0
[ "MIT" ]
1
2018-01-10T11:08:48.000Z
2018-01-10T11:08:48.000Z
other/send_email.py
zjhdota/practice
de28003e7adf6140dfc06a1ffa3a808e514dbbc0
[ "MIT" ]
1
2021-01-31T04:21:48.000Z
2021-01-31T04:21:48.000Z
other/send_email.py
zjhdota/practice
de28003e7adf6140dfc06a1ffa3a808e514dbbc0
[ "MIT" ]
null
null
null
import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart fromaddr = "" toaddr = "" msg = MIMEMultipart() msg['From'] = fromaddr msg['To'] = toaddr msg['Subject'] = '1234' msg.attach(MIMEText(html, 'html')) server = smtplib.SMTP(address,port) server.login(username,password) ...
20.157895
46
0.738903
50
383
5.64
0.54
0.06383
0.092199
0
0
0
0
0
0
0
0
0.011799
0.114883
383
18
47
21.277778
0.820059
0
0
0
0
0
0.05483
0
0
0
0
0
0
1
0
false
0.071429
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7350ef590d7bf4d22c6d3c330992b601088c2e47
793
py
Python
python/process_csv.py
rivei/pm4py_with_dash
05ed524c11b44932783864a4465d400ea1300910
[ "MIT" ]
null
null
null
python/process_csv.py
rivei/pm4py_with_dash
05ed524c11b44932783864a4465d400ea1300910
[ "MIT" ]
null
null
null
python/process_csv.py
rivei/pm4py_with_dash
05ed524c11b44932783864a4465d400ea1300910
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Nov 24 23:55:51 2019 @author: Wei """ import os from pm4py.objects.log.importer.xes import factory as xes_importer log = xes_importer.apply("..\\data\\financial_log.xes") from pm4py.objects.log.util import interval_lifecycle enriched_log = interval_lifecycle.assign_lead_c...
25.580645
85
0.711223
122
793
4.483607
0.47541
0.080439
0.082267
0.104205
0.106033
0.106033
0.106033
0
0
0
0
0.027697
0.134931
793
31
86
25.580645
0.769679
0.413619
0
0
0
0
0.06
0.06
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
73540fbab6c3a277e0a6d4017a67bb9fd7e67e17
1,124
py
Python
learn/two-stack-queue.py
vipingoel/getting-started
d034749f1e832bb791c9ed86a0c94b553dd3f44b
[ "Apache-2.0" ]
null
null
null
learn/two-stack-queue.py
vipingoel/getting-started
d034749f1e832bb791c9ed86a0c94b553dd3f44b
[ "Apache-2.0" ]
null
null
null
learn/two-stack-queue.py
vipingoel/getting-started
d034749f1e832bb791c9ed86a0c94b553dd3f44b
[ "Apache-2.0" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUT class TwoStackQueue: def __init__(self): self.forward_stack = [] self.reverse_stack = [] def dequeue(self): if not self.reverse_stack: while self.forward_stack: self.reverse_stac...
26.139535
75
0.570285
134
1,124
4.634328
0.432836
0.088567
0.128824
0.064412
0.10306
0.10306
0
0
0
0
0
0.006658
0.331851
1,124
42
76
26.761905
0.82024
0.117438
0
0
0
0
0.013728
0
0
0
0
0.02381
0
1
0.166667
false
0
0
0
0.266667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
735ac396263b838118349b9323e68e359e690f33
877
py
Python
psi/app/views/views_mapping.py
lusi1990/betterlifepsi
8e7f8562967ab1816d8c25db3251c550a357f39c
[ "MIT" ]
33
2018-10-19T03:41:56.000Z
2022-01-23T16:26:02.000Z
psi/app/views/views_mapping.py
lusi1990/betterlifepsi
8e7f8562967ab1816d8c25db3251c550a357f39c
[ "MIT" ]
318
2018-09-23T15:16:54.000Z
2022-03-31T22:58:55.000Z
psi/app/views/views_mapping.py
lusi1990/betterlifepsi
8e7f8562967ab1816d8c25db3251c550a357f39c
[ "MIT" ]
19
2018-10-22T18:04:18.000Z
2021-12-06T19:49:05.000Z
# encoding=utf-8 from psi.app.models import PurchaseOrder from psi.app import const views_mapping = { # The key should be 'purchaseorder' : { const.DIRECT_PO_TYPE_KEY : 'dpo', const.FRANCHISE_PO_TYPE_KEY : 'fpo' }, } def get_endpoint_by_type_attr(value, low_case_model_name): """ G...
26.575758
72
0.67959
130
877
4.361538
0.430769
0.08642
0.148148
0.197531
0.229277
0.10582
0
0
0
0
0
0.001524
0.251995
877
32
73
27.40625
0.862805
0.342075
0
0.117647
0
0
0.035316
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.235294
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
736128e0e2098fe14264c037ccfbc82054a6a5fe
3,578
py
Python
djangofiltertest/djangofiltertest/settings/dev.py
gonzaloamadio/django-filter-test
7b9dbc36ca248e2113deaac03e824b123a31a4ba
[ "MIT" ]
null
null
null
djangofiltertest/djangofiltertest/settings/dev.py
gonzaloamadio/django-filter-test
7b9dbc36ca248e2113deaac03e824b123a31a4ba
[ "MIT" ]
3
2020-06-05T19:44:12.000Z
2022-03-08T21:09:34.000Z
djangofiltertest/djangofiltertest/settings/dev.py
gonzaloamadio/django-filter-test
7b9dbc36ca248e2113deaac03e824b123a31a4ba
[ "MIT" ]
null
null
null
# flake8: noqa from .base import * from decouple import config, Csv DEBUG = config('DEBUG', default=True, cast=bool) EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'sqlite3.db', 'USER': '', ...
25.557143
81
0.657071
439
3,578
5.234624
0.496583
0.052219
0.012185
0.01436
0.040905
0.021758
0.021758
0
0
0
0
0.009842
0.204863
3,578
139
82
25.741007
0.797891
0.472051
0
0.101695
0
0
0.296213
0.143584
0
0
0.002826
0.007194
0
1
0.033898
false
0.050847
0.050847
0.016949
0.135593
0.050847
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7df3e144a4c1394c225abb07ff4ccf9d9676401a
844
py
Python
pyglet-app/device.py
PCH-Engineering/pch-cloud
9b0f774c6f15e8ee02f8311b4965816d04d73edd
[ "MIT" ]
null
null
null
pyglet-app/device.py
PCH-Engineering/pch-cloud
9b0f774c6f15e8ee02f8311b4965816d04d73edd
[ "MIT" ]
null
null
null
pyglet-app/device.py
PCH-Engineering/pch-cloud
9b0f774c6f15e8ee02f8311b4965816d04d73edd
[ "MIT" ]
1
2020-12-03T17:53:14.000Z
2020-12-03T17:53:14.000Z
import requests import pprint import server_paths as url def get_device_list(host, session_token): r = requests.get(url.backend(host)+"/device/devices", data={'session_token': session_token}) # print("get_device_list", r.status_code, r.reason) if r.status_code != requests.codes.ok: prin...
35.166667
155
0.690758
113
844
4.920354
0.265487
0.113309
0.100719
0.053957
0.431655
0.330935
0.330935
0.215827
0.215827
0.215827
0
0
0.188389
844
24
156
35.166667
0.811679
0.117299
0
0.235294
0
0
0.177778
0.031944
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.529412
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7df4ba2683743cbd4c7461b52cc123022368312c
1,545
py
Python
guide/lesson5.py
robotika/heidi
a5e2b1b12dac5d5cc79ab2903c88886b2fbb3e5f
[ "MIT" ]
11
2015-03-04T17:48:23.000Z
2021-07-08T02:44:49.000Z
guide/lesson5.py
robotika/heidi
a5e2b1b12dac5d5cc79ab2903c88886b2fbb3e5f
[ "MIT" ]
2
2015-04-17T15:00:04.000Z
2017-03-26T17:22:47.000Z
guide/lesson5.py
robotika/heidi
a5e2b1b12dac5d5cc79ab2903c88886b2fbb3e5f
[ "MIT" ]
4
2015-04-15T07:49:13.000Z
2020-05-30T07:46:26.000Z
""" Lesson 5 - fly at given height """ import sys sys.path.append('..') # access to drone source without installation from ardrone2 import ARDrone2, ManualControlException def testLesson5( drone ): desiredSpeed = 0.8 # in meters per second desiredHeight = 1.5 try: drone.takeoff() startTim...
31.530612
92
0.577994
183
1,545
4.830601
0.486339
0.076923
0.013575
0
0
0
0
0
0
0
0
0.049196
0.315858
1,545
48
93
32.1875
0.787133
0.126214
0
0
0
0
0.029954
0.016897
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7df8353536d31bfda235cfefe2d73597e7c47630
2,917
py
Python
scripts/poems-processor.py
facjure/public-domain-poetry
f734b8eb96d1c8659e7865646306ec29eec851b4
[ "Apache-2.0" ]
4
2017-12-28T23:14:45.000Z
2020-06-01T10:20:21.000Z
scripts/poems-processor.py
lahorichargha/public-domain-poetry
f734b8eb96d1c8659e7865646306ec29eec851b4
[ "Apache-2.0" ]
null
null
null
scripts/poems-processor.py
lahorichargha/public-domain-poetry
f734b8eb96d1c8659e7865646306ec29eec851b4
[ "Apache-2.0" ]
2
2017-02-28T08:59:33.000Z
2021-12-08T03:31:11.000Z
#!/usr/bin/env python """ Usage: process scripts/process.py Assumptions 1) Always run from poetics directory 2) virtual env for frozen-pie in in the same folder as frozen pie 3) paths are hardcoded """ poetics_path = "/Users/harsha/yuti/poetics" frozen_pie_path = "/Users/harsha/yuti/frozen-pie-latest" poems_path ...
30.072165
154
0.651011
433
2,917
4.295612
0.378753
0.055914
0.023656
0.030645
0.039785
0
0
0
0
0
0
0.003858
0.200206
2,917
96
155
30.385417
0.793399
0.015084
0
0.102941
0
0
0.28465
0.052906
0
0
0
0
0
0
null
null
0
0.161765
null
null
0.073529
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7dfb7b260ab4efd6a789835dbc96edc3dc5aeea5
821
py
Python
009_special_pythagorean_triplet.py
fbcom/project-euler
3c2194f797d54a0cc04031cd0be153f6a6f849ad
[ "MIT" ]
null
null
null
009_special_pythagorean_triplet.py
fbcom/project-euler
3c2194f797d54a0cc04031cd0be153f6a6f849ad
[ "MIT" ]
null
null
null
009_special_pythagorean_triplet.py
fbcom/project-euler
3c2194f797d54a0cc04031cd0be153f6a6f849ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # A Solution to "Special Pythagorean triplet" – Project Euler Problem No. 9 # by Florian Buetow # # Sourcecode: https://github.com/fbcom/project-euler # Problem statement: https://projecteuler.net/problem=9 # def isPythagoreanTriple(a, b, c): if a < b < c: r...
26.483871
75
0.591961
116
821
4.198276
0.482759
0.020534
0.030801
0.090349
0.041068
0
0
0
0
0
0
0.021776
0.272838
821
30
76
27.366667
0.792295
0.336175
0
0
0
0
0.029907
0
0
0
0
0
0
0
null
null
0
0
null
null
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b4039af4fc984d30f540dc0921fd2c39b349b64a
5,553
py
Python
beemgraphenebase/chains.py
sourovafrin/beem
3050d995a2b63f7ebe55ab1860f56bca6d77cd5a
[ "MIT" ]
null
null
null
beemgraphenebase/chains.py
sourovafrin/beem
3050d995a2b63f7ebe55ab1860f56bca6d77cd5a
[ "MIT" ]
null
null
null
beemgraphenebase/chains.py
sourovafrin/beem
3050d995a2b63f7ebe55ab1860f56bca6d77cd5a
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals default_prefix = "STM" known_chains = { "HIVE": { "chain_id": "0" * int(256 / 4), "min_version": '0.23.0', "prefix": "STM", "chain_asse...
40.532847
87
0.488205
501
5,553
5.291417
0.149701
0.090532
0.108638
0.06375
0.683893
0.622407
0.584685
0.427763
0.427763
0.408148
0
0.166583
0.28219
5,553
136
88
40.830882
0.498495
0
0
0.492647
0
0
0.452368
0.103728
0
0
0
0
0
1
0
false
0
0.029412
0
0.029412
0.007353
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1
b40a3bb55ea3945bdc30abfff7b3f56810056555
3,566
py
Python
nicolasCageDiscordBot.py
michalmonday/Discord-bot-user-account-
afc9ddd249c4eaab857df4a3e89d37676f51d6a8
[ "MIT" ]
1
2018-06-21T21:02:40.000Z
2018-06-21T21:02:40.000Z
nicolasCageDiscordBot.py
michalmonday/discordBot_NicolasCage
afc9ddd249c4eaab857df4a3e89d37676f51d6a8
[ "MIT" ]
null
null
null
nicolasCageDiscordBot.py
michalmonday/discordBot_NicolasCage
afc9ddd249c4eaab857df4a3e89d37676f51d6a8
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys #needed to press enter after the bot types the reply from bs4 import BeautifulSoup #awesome tool for extracting useful data from websites import time #to add delay import re # regular expressions, much more direct than BeautifulSoup, all...
44.024691
214
0.652552
491
3,566
4.704684
0.472505
0.015152
0.009091
0.012987
0.017316
0
0
0
0
0
0
0.02644
0.225743
3,566
80
215
44.575
0.810214
0.278183
0
0.039216
0
0.058824
0.25357
0.058099
0
0
0
0
0
0
null
null
0
0.098039
null
null
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b40e2588fb3961680fc533af1c917aa35f1ccf99
9,345
py
Python
i18n/json_to_js.py
bharati-software/blockly-games-Kannada
cc410e7656699f0fd1b23626917b17c61f5c168b
[ "Apache-2.0" ]
1,184
2015-01-02T19:07:55.000Z
2022-03-31T11:29:28.000Z
i18n/json_to_js.py
moniika/blockly-games
e99f3cfc1f2a2844dd3423c83202ed968296005e
[ "Apache-2.0" ]
171
2015-01-01T17:10:24.000Z
2022-03-28T03:18:07.000Z
i18n/json_to_js.py
moniika/blockly-games
e99f3cfc1f2a2844dd3423c83202ed968296005e
[ "Apache-2.0" ]
580
2015-01-05T00:36:37.000Z
2022-03-23T15:21:16.000Z
#!/usr/bin/python # Converts .json files from Translatewiki into .js files. # # Copyright 2013 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
36.791339
84
0.628785
1,247
9,345
4.597434
0.282277
0.027909
0.018141
0.008896
0.10675
0.0764
0.057213
0.047793
0.047793
0.017094
0
0.007818
0.260888
9,345
253
85
36.936759
0.822209
0.161905
0
0.042254
0
0.007042
0.210553
0.04474
0
0
0
0
0
0
null
null
0
0.049296
null
null
0.049296
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b419d557add5755f5a71d4ecd302ed428096d1d8
1,808
py
Python
src/Testing/ZopeTestCase/connections.py
rbanffy/Zope
ecf6770219052e7c7f8c9634ddf187a1e6280742
[ "ZPL-2.1" ]
289
2015-01-05T12:38:21.000Z
2022-03-05T21:20:39.000Z
src/Testing/ZopeTestCase/connections.py
rbanffy/Zope
ecf6770219052e7c7f8c9634ddf187a1e6280742
[ "ZPL-2.1" ]
732
2015-02-09T23:35:57.000Z
2022-03-31T09:10:13.000Z
src/Testing/ZopeTestCase/connections.py
rbanffy/Zope
ecf6770219052e7c7f8c9634ddf187a1e6280742
[ "ZPL-2.1" ]
102
2015-01-12T14:03:35.000Z
2022-03-30T11:02:44.000Z
############################################################################## # # Copyright (c) 2005 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
28.25
78
0.613385
212
1,808
5.113208
0.424528
0.058118
0.04428
0.027675
0
0
0
0
0
0
0
0.00427
0.222898
1,808
63
79
28.698413
0.76726
0.389934
0
0.129032
0
0
0.005501
0
0
0
0
0
0
1
0.258065
false
0
0
0.096774
0.387097
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b41a67f20cc78812f97ae952f731e135911bc9a6
360
py
Python
frontend/GUI/ROOT_AND_MAIN/SUBJECT_WINDOW/widgets.py
tomaspoupin/smart_scheduler_usm
85943c0a7feee1fd1d6c558c4fe65dffdcef7dc5
[ "MIT" ]
null
null
null
frontend/GUI/ROOT_AND_MAIN/SUBJECT_WINDOW/widgets.py
tomaspoupin/smart_scheduler_usm
85943c0a7feee1fd1d6c558c4fe65dffdcef7dc5
[ "MIT" ]
null
null
null
frontend/GUI/ROOT_AND_MAIN/SUBJECT_WINDOW/widgets.py
tomaspoupin/smart_scheduler_usm
85943c0a7feee1fd1d6c558c4fe65dffdcef7dc5
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import ttk class Subject_window(): def __init__(self, parent): self.frame = ttk.Frame(parent) self.parent = parent self.children = {} def grid(self): self.frame.grid() def add_children(self, **kwargs): for child in kwargs: ...
24
48
0.613889
45
360
4.777778
0.466667
0.139535
0
0
0
0
0
0
0
0
0
0
0.280556
360
15
48
24
0.830116
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.166667
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
1
0
0
0
0
0
0
0
1
b41bac80d983521dc73ca74191d204b678400da8
4,696
py
Python
bayarea_urbansim/data_regeneration/counties/ala.py
ual/DOE-repo-deliverable
4bafdd9a702a9a6466dd32ae62f440644d735d3c
[ "BSD-3-Clause" ]
null
null
null
bayarea_urbansim/data_regeneration/counties/ala.py
ual/DOE-repo-deliverable
4bafdd9a702a9a6466dd32ae62f440644d735d3c
[ "BSD-3-Clause" ]
null
null
null
bayarea_urbansim/data_regeneration/counties/ala.py
ual/DOE-repo-deliverable
4bafdd9a702a9a6466dd32ae62f440644d735d3c
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd from spandex import TableLoader, TableFrame from spandex.io import df_to_db import urbansim.sim.simulation as sim import utils loader = TableLoader() staging = loader.tables.staging ## Assumptions. # Use codes were classified manually because the assessor classifications # ...
25.521739
78
0.681005
638
4,696
4.805643
0.315047
0.048924
0.035877
0.042401
0.338226
0.274951
0.210698
0.210698
0.185258
0.148728
0
0.045151
0.202939
4,696
183
79
25.661202
0.773978
0.157581
0
0.336538
0
0
0.156743
0.073791
0
0
0
0
0.057692
1
0.182692
false
0.009615
0.057692
0.115385
0.403846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
b420dec0f0f0b51a1a3bd8d407e6342664c0c878
19,841
py
Python
src/com/dtmilano/android/adb/adbclient.py
NexellCorp/infrastructure_test_AndroidViewClient
0f8678689d18bb0daadf96f282f078d5e85a06eb
[ "Apache-2.0" ]
3
2016-06-22T17:24:57.000Z
2020-05-29T20:08:18.000Z
src/com/dtmilano/android/adb/adbclient.py
Fuzion24/AndroidViewClient
b1dad1f059cb564aca8e55247dc16d55a3248ee9
[ "Apache-2.0" ]
null
null
null
src/com/dtmilano/android/adb/adbclient.py
Fuzion24/AndroidViewClient
b1dad1f059cb564aca8e55247dc16d55a3248ee9
[ "Apache-2.0" ]
null
null
null
''' Copyright (C) 2012-2013 Diego Torres Milano Created on Dec 1, 2012 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
33.290268
158
0.560355
2,265
19,841
4.822517
0.221192
0.022704
0.039733
0.039824
0.186304
0.15536
0.095029
0.073057
0.07086
0.07086
0
0.014782
0.324883
19,841
595
159
33.346218
0.800672
0.051459
0
0.25
0
0.004762
0.135316
0.014543
0
0
0
0.001681
0
0
null
null
0.002381
0.030952
null
null
0.080952
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b42a67ed243719a17974de99550c6e43465c4246
652
py
Python
app/secrets.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
app/secrets.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
app/secrets.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
EXPECTED_SECRETS = [ "EQ_SERVER_SIDE_STORAGE_USER_ID_SALT", "EQ_SERVER_SIDE_STORAGE_USER_IK_SALT", "EQ_SERVER_SIDE_STORAGE_ENCRYPTION_USER_PEPPER", "EQ_SECRET_KEY", "EQ_RABBITMQ_USERNAME", "EQ_RABBITMQ_PASSWORD", ] def validate_required_secrets(secrets): for required_secret in EXPECTED_SEC...
28.347826
74
0.723926
82
652
5.268293
0.439024
0.055556
0.083333
0.131944
0.168981
0
0
0
0
0
0
0
0.177914
652
22
75
29.636364
0.80597
0
0
0
0
0
0.308282
0.17638
0
0
0
0
0
1
0.176471
false
0.058824
0
0.058824
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b42cea640576110dc178504b1f3b8a0b762a9431
4,624
py
Python
trackml/client.py
sds-dubois/trackml-client-py
0895e8f1f4a4f11d496adb32e5bf375dfa5865b5
[ "MIT" ]
null
null
null
trackml/client.py
sds-dubois/trackml-client-py
0895e8f1f4a4f11d496adb32e5bf375dfa5865b5
[ "MIT" ]
null
null
null
trackml/client.py
sds-dubois/trackml-client-py
0895e8f1f4a4f11d496adb32e5bf375dfa5865b5
[ "MIT" ]
null
null
null
import json from urllib3 import connection_from_url from urllib import urlencode class Client(object): """ A simple JSON API client """ def __init__(self, base_url="http://localhost:3000/", encoding='utf8'): self.base_url = base_url self.encoding = encoding self.connection_poo...
32.794326
110
0.60705
573
4,624
4.719023
0.209424
0.049186
0.044009
0.031065
0.225592
0.178994
0.130917
0.068047
0.039201
0.039201
0
0.004239
0.285683
4,624
140
111
33.028571
0.814411
0.222751
0
0.125
0
0
0.108208
0.019982
0
0
0
0
0.125
1
0.222222
false
0
0.041667
0.055556
0.458333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b42d833a9365c0bc77d5f7c7e58d0171b72fa336
681
py
Python
virusshare_fetch.py
johansoula/malware_playground
b45941339f2426a29002fcee66a6bd4dce275719
[ "MIT" ]
2
2018-03-20T13:51:05.000Z
2018-03-23T10:01:13.000Z
virusshare_fetch.py
johansoula/malware_playground
b45941339f2426a29002fcee66a6bd4dce275719
[ "MIT" ]
null
null
null
virusshare_fetch.py
johansoula/malware_playground
b45941339f2426a29002fcee66a6bd4dce275719
[ "MIT" ]
null
null
null
#!/usr/bin/env python import re import requests import sys import os def virusshare_fetch(fname, i): url = "http://virusshare.com/hashes/VirusShare_%s.md5" % i r = requests.get(url, stream = True) if r.status_code != 200: return False with open(fname, 'aw') as fd: ...
20.029412
62
0.582966
90
681
4.277778
0.6
0.155844
0.093506
0
0
0
0
0
0
0
0
0.034557
0.320117
681
33
63
20.636364
0.796976
0.029369
0
0
0
0
0.113809
0.034901
0
0
0
0
0
0
null
null
0
0.190476
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b42e5b3670dd97b9f58e54e87b3d3c93d87d7bed
7,400
py
Python
mlalgorithms/parsers/parser.py
danila19991/tinkoff-web-service
ccc8ac4e8dae6aae5e1c843ddf8730f6216e8450
[ "Apache-2.0" ]
null
null
null
mlalgorithms/parsers/parser.py
danila19991/tinkoff-web-service
ccc8ac4e8dae6aae5e1c843ddf8730f6216e8450
[ "Apache-2.0" ]
75
2018-08-18T15:16:22.000Z
2018-10-04T20:28:57.000Z
mlalgorithms/parsers/parser.py
robot-lab/tinkoff-web-service
ccc8ac4e8dae6aae5e1c843ddf8730f6216e8450
[ "Apache-2.0" ]
null
null
null
import abc import math import pandas as pd class IParser(abc.ABC): @property @abc.abstractmethod def chknums(self): """ Return chknum lists for formatted output. :return: list. List with chknums. """ raise NotImplementedError("Called abstract class me...
29.83871
79
0.604865
890
7,400
4.946067
0.186517
0.042481
0.049977
0.094957
0.675375
0.653794
0.632213
0.621081
0.612222
0.580872
0
0.00119
0.318784
7,400
247
80
29.959514
0.872049
0.536892
0
0.516129
0
0
0.133641
0
0
0
0
0
0
1
0.274194
false
0
0.048387
0
0.467742
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b431f38924a8b0b027e0998938c53c53bd21b4da
7,359
py
Python
YOLOV3.py
lavenderlove52/YOLOV3_DetectionInterface_pyqt5
6e051bd1c3c072c48043892b65f6ff5ec12bc33d
[ "Apache-2.0" ]
null
null
null
YOLOV3.py
lavenderlove52/YOLOV3_DetectionInterface_pyqt5
6e051bd1c3c072c48043892b65f6ff5ec12bc33d
[ "Apache-2.0" ]
null
null
null
YOLOV3.py
lavenderlove52/YOLOV3_DetectionInterface_pyqt5
6e051bd1c3c072c48043892b65f6ff5ec12bc33d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'YOLOV3.ui' # # Created by: PyQt5 UI code generator 5.15.3 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5.QtWidgets import * fro...
32.276316
114
0.561897
752
7,359
5.420213
0.261968
0.064769
0.0395
0.030913
0.347154
0.310599
0.238469
0.184985
0.184985
0.138862
0
0.038808
0.320696
7,359
227
115
32.418502
0.776555
0.099742
0
0.367816
1
0
0.077413
0.01015
0
0
0
0
0
1
0.091954
false
0.005747
0.022989
0
0.126437
0.074713
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1