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
47170ca3654fffbe8da2a35f88340beab3b11a2b
3,333
py
Python
osm/parser.py
ChenZhongPu/osmRoad
5c4ce5e7476b6f35c2917efa835c4f1a0f308ebf
[ "MIT" ]
1
2019-05-02T21:33:05.000Z
2019-05-02T21:33:05.000Z
osm/parser.py
ChenZhongPu/osmRoad
5c4ce5e7476b6f35c2917efa835c4f1a0f308ebf
[ "MIT" ]
1
2019-05-02T22:55:43.000Z
2019-05-02T22:55:43.000Z
osm/parser.py
ChenZhongPu/osmRoad
5c4ce5e7476b6f35c2917efa835c4f1a0f308ebf
[ "MIT" ]
3
2019-05-02T22:37:42.000Z
2021-04-24T05:59:32.000Z
# -------------------------------------------------------------------- # The osmRoad is # # Copyright (c) 2018 by Zhongpu Chen (chenloveit@gmail.com) # # By obtaining, using, and/or copying this software and/or its # associated documentation, you agree that you have read, understood, # and will comply with the followin...
35.457447
94
0.643264
437
3,333
4.84897
0.407323
0.023596
0.030203
0.013214
0.143464
0.143464
0.100047
0.100047
0.100047
0.100047
0
0.002644
0.205521
3,333
93
95
35.83871
0.797583
0.432343
0
0.208333
0
0
0.142397
0
0
0
0
0
0
1
0.145833
false
0
0.020833
0
0.3125
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
0
0
1
0
4718c7e9cd589624b9835b0bd07e75e39f735f11
8,319
py
Python
cs-restaurant/input/devel/expand.py
stg880631/tgen
67db94bf3bfc851e673e50b84230ed9f533b2c23
[ "Apache-2.0" ]
null
null
null
cs-restaurant/input/devel/expand.py
stg880631/tgen
67db94bf3bfc851e673e50b84230ed9f533b2c23
[ "Apache-2.0" ]
null
null
null
cs-restaurant/input/devel/expand.py
stg880631/tgen
67db94bf3bfc851e673e50b84230ed9f533b2c23
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import re import sys import codecs from argparse import ArgumentParser from util import load_dais, load_texts, write_das, write_texts, write_toks, DAI import kenlm import numpy as np from delexicalize import Delexicalizer from tgen.l...
40.383495
121
0.60464
1,109
8,319
4.306583
0.201082
0.035176
0.030151
0.021357
0.252513
0.114531
0.073492
0.073492
0.041457
0.026801
0
0.002649
0.274071
8,319
205
122
40.580488
0.78821
0.056137
0
0.039474
0
0.019737
0.111026
0.005232
0
0
0
0.004878
0.019737
1
0.059211
false
0
0.065789
0.006579
0.164474
0.026316
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
0
0
1
0
471ba427f7183a39af603bd2c7e5e3442783239a
3,908
py
Python
rpi-config/scripts/arduinoMotor.py
DiamondLightSource/rpi-config
617f5e176c0621e3ea1b567e9586e96ba0f8b5db
[ "Apache-2.0" ]
4
2016-08-23T12:13:21.000Z
2018-08-22T12:55:55.000Z
rpi-config/scripts/arduinoMotor.py
DiamondLightSource/rpi-config
617f5e176c0621e3ea1b567e9586e96ba0f8b5db
[ "Apache-2.0" ]
null
null
null
rpi-config/scripts/arduinoMotor.py
DiamondLightSource/rpi-config
617f5e176c0621e3ea1b567e9586e96ba0f8b5db
[ "Apache-2.0" ]
2
2016-09-15T19:17:30.000Z
2018-03-06T06:34:13.000Z
from gda.device.scannable import PseudoDevice from arduinoScannable import arduinoScannable import time from org.slf4j import LoggerFactory logger = LoggerFactory.getLogger(__name__ + '.py') class arduinoMotor(PseudoDevice): def __init__(self, name, stepsPerRotation, motorPin1, motorPin2, motorPin3, motorPin4): ...
39.877551
91
0.575486
326
3,908
6.874233
0.239264
0.10174
0.071843
0.055332
0.344935
0.281571
0.168675
0
0
0
0
0.030478
0.336745
3,908
98
92
39.877551
0.834105
0.026612
0
0.325581
0
0
0.028444
0
0
0
0
0
0
1
0.069767
false
0.011628
0.046512
0.023256
0.197674
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
0
0
1
0
471e1e651b0efcca16a531bc8067e597b5c516f6
2,986
py
Python
polling_stations/apps/data_collection/management/commands/import_torbay.py
alexsdutton/UK-Polling-Stations
01ec234fd4a832694870d5ed9de069a228397f53
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_torbay.py
alexsdutton/UK-Polling-Stations
01ec234fd4a832694870d5ed9de069a228397f53
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_collection/management/commands/import_torbay.py
alexsdutton/UK-Polling-Stations
01ec234fd4a832694870d5ed9de069a228397f53
[ "BSD-3-Clause" ]
null
null
null
from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "E06000027" addresses_name = "local.2019-05-02/Version 1/Democracy_Club__02May2019tor.tsv" stations_name = "local.2019-05-02/Version 1/Democracy_Club__02May201...
50.610169
100
0.630944
329
2,986
5.613982
0.462006
0.058473
0.06497
0.082296
0.413644
0.214402
0.10287
0.05739
0.05739
0.05739
0
0.186758
0.266577
2,986
58
101
51.482759
0.656621
0.401206
0
0.130435
0
0
0.266553
0.065648
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.26087
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
0
0
1
0
472180e30875c4ac8339f38fa4c6fde5ae82de74
376
py
Python
nlp100/12.py
walkingmask/expr4-dm-2016
b62d4c9d57ea8e4efe044fc98e4bdc365e87666d
[ "MIT" ]
null
null
null
nlp100/12.py
walkingmask/expr4-dm-2016
b62d4c9d57ea8e4efe044fc98e4bdc365e87666d
[ "MIT" ]
null
null
null
nlp100/12.py
walkingmask/expr4-dm-2016
b62d4c9d57ea8e4efe044fc98e4bdc365e87666d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # 12.py # 2016/10/11(火) # walkingmask # check # cut -f1 hightemp.txt # cut -f2 hightemp.txt col1f = open('col1.txt', 'w') col2f = open('col2.txt', 'w') for line in open('hightemp.txt', 'r'): raw = line.rstrip().replace("\t"," ").split(" ") col1f.write(raw[0]+"\n") ...
17.090909
50
0.590426
60
376
3.7
0.666667
0.148649
0
0
0
0
0
0
0
0
0
0.075
0.148936
376
21
51
17.904762
0.61875
0.327128
0
0
0
0
0.159184
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
1
0
47223575ffe3dacf450a360bb6f35695e71e393c
1,115
py
Python
libnd4j/include/graph/generated/nd4j/graph/DataType.py
nutonchain/Deeplearning
20f222c1eff95205c6c9c9b666b04402405e4442
[ "Apache-2.0" ]
1
2018-08-29T05:46:54.000Z
2018-08-29T05:46:54.000Z
libnd4j/include/graph/generated/nd4j/graph/DataType.py
nutonchain/Deeplearning
20f222c1eff95205c6c9c9b666b04402405e4442
[ "Apache-2.0" ]
null
null
null
libnd4j/include/graph/generated/nd4j/graph/DataType.py
nutonchain/Deeplearning
20f222c1eff95205c6c9c9b666b04402405e4442
[ "Apache-2.0" ]
1
2020-12-13T22:26:47.000Z
2020-12-13T22:26:47.000Z
################################################################################ # Copyright (c) 2015-2018 Skymind, Inc. # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at # https://www.apache.org/licenses/LICENSE-2.0. # # Unless...
27.875
80
0.591031
138
1,115
4.775362
0.775362
0.036419
0.045524
0
0
0
0
0
0
0
0
0.064407
0.206278
1,115
39
81
28.589744
0.680226
0.577578
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
47226c18564ce8f55f4fdb06c8ed33bfda9ac9a4
1,026
py
Python
tests/test_app.py
Habbie/stockbot
648e70604828d0ed762c243b4eb83122fd393b4d
[ "Apache-2.0" ]
null
null
null
tests/test_app.py
Habbie/stockbot
648e70604828d0ed762c243b4eb83122fd393b4d
[ "Apache-2.0" ]
16
2017-10-12T09:10:28.000Z
2021-05-20T20:30:15.000Z
tests/test_app.py
Habbie/stockbot
648e70604828d0ed762c243b4eb83122fd393b4d
[ "Apache-2.0" ]
1
2021-06-18T18:23:36.000Z
2021-06-18T18:23:36.000Z
import unittest import datetime from app import ScheduleHandler class TestScheduleHandler(unittest.TestCase): def test_timer(self): class PartialIrcBot(ScheduleHandler): pass t = PartialIrcBot() df = "%d/%m/%Y %H:%M:%S" for d in [9, 10, 11, 12, 13]: d_s...
31.090909
87
0.517544
138
1,026
3.73913
0.355072
0.031008
0.069767
0.110465
0.567829
0.527132
0.527132
0.387597
0.387597
0.387597
0
0.061493
0.334308
1,026
32
88
32.0625
0.693997
0
0
0.416667
0
0
0.065302
0
0
0
0
0
0.125
1
0.041667
false
0.041667
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
47240275a74da00053f650b9e1be9d450a7288f2
6,150
py
Python
aiida_quantumespresso/cli/utils/validate.py
lin-cp/aiida-quantumespresso
55f2bc8c137a69be24709a119bc285c700997907
[ "MIT" ]
null
null
null
aiida_quantumespresso/cli/utils/validate.py
lin-cp/aiida-quantumespresso
55f2bc8c137a69be24709a119bc285c700997907
[ "MIT" ]
null
null
null
aiida_quantumespresso/cli/utils/validate.py
lin-cp/aiida-quantumespresso
55f2bc8c137a69be24709a119bc285c700997907
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Utility functions for validation of command line interface parameter inputs.""" from aiida.cmdline.utils import decorators from aiida.common import exceptions import click @decorators.with_dbenv() def validate_kpoints_mesh(ctx, param, value): """Command line option validator for a kpoin...
39.423077
120
0.696585
803
6,150
5.215442
0.220423
0.068768
0.027937
0.032951
0.344556
0.31638
0.256208
0.231614
0.219198
0.175263
0
0.002685
0.212683
6,150
155
121
39.677419
0.862247
0.30374
0
0.180723
0
0.012048
0.265478
0.026259
0
0
0
0
0
1
0.048193
false
0
0.060241
0
0.168675
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
0
0
1
0
4725bdc2094e9f435b0639c37370a8daffc3e956
2,197
py
Python
src/Utils/Trade.py
andrebask/TradingMate
1b07c70cb6d911201c6983942353b3d70f1fc479
[ "MIT" ]
null
null
null
src/Utils/Trade.py
andrebask/TradingMate
1b07c70cb6d911201c6983942353b3d70f1fc479
[ "MIT" ]
null
null
null
src/Utils/Trade.py
andrebask/TradingMate
1b07c70cb6d911201c6983942353b3d70f1fc479
[ "MIT" ]
null
null
null
from enum import Enum import os import sys import inspect import logging import datetime currentdir = os.path.dirname(os.path.abspath( inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0, parentdir) from Utils.Utils import Actions class Trade(): def __init__(s...
34.873016
171
0.578971
262
2,197
4.790076
0.282443
0.027888
0.050199
0.033466
0.084462
0.084462
0.039841
0
0
0
0
0.009702
0.296313
2,197
62
172
35.435484
0.80207
0
0
0.037037
0
0
0.088757
0
0
0
0
0
0
1
0.074074
false
0
0.12963
0.018519
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
0
0
0
0
1
0
472734dfa2d0143ee41b2ebd5310df9144aa63b2
497
py
Python
scorebot/players.py
cloudlinux/scorebot
e2a105a605e17bcdeee8493efaa66b29c434ca80
[ "MIT" ]
3
2017-06-15T17:42:20.000Z
2021-04-04T14:11:21.000Z
scorebot/players.py
cloudlinux/scorebot
e2a105a605e17bcdeee8493efaa66b29c434ca80
[ "MIT" ]
null
null
null
scorebot/players.py
cloudlinux/scorebot
e2a105a605e17bcdeee8493efaa66b29c434ca80
[ "MIT" ]
2
2017-02-14T08:05:25.000Z
2017-03-11T08:26:35.000Z
from collections import namedtuple from config.config import CONF PlayerInfo = namedtuple('PlayerInfo', ['team', 'slack_name']) class PlayerNotFound(Exception): def __init__(self, player): msg = "Player '{}' cannot be found in player-to-team " \ "mapping.".format(player) super(Playe...
26.157895
64
0.672032
54
497
6
0.611111
0
0
0
0
0
0
0
0
0
0
0
0.209256
497
18
65
27.611111
0.824427
0
0
0
0
0
0.171026
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
472b0a2f2e9b3fe1b62227a85d0dd389ed036ca6
18,590
py
Python
elm/elmr.py
ShubhamDiwan/elm
bf33f2498551fba3b2fd42d982feb0d22c031a71
[ "BSD-3-Clause" ]
84
2015-03-08T07:39:47.000Z
2022-03-06T03:41:23.000Z
elm/elmr.py
ShubhamDiwan/elm
bf33f2498551fba3b2fd42d982feb0d22c031a71
[ "BSD-3-Clause" ]
11
2015-09-10T04:01:26.000Z
2021-06-01T23:04:46.000Z
elm/elmr.py
ShubhamDiwan/elm
bf33f2498551fba3b2fd42d982feb0d22c031a71
[ "BSD-3-Clause" ]
70
2015-03-30T10:20:14.000Z
2022-03-06T03:41:24.000Z
# -*- coding: utf-8 -*- """ This file contains ELMKernel classes and all developed methods. """ # Python2 support from __future__ import unicode_literals from __future__ import division from __future__ import absolute_import from __future__ import print_function from .mltools import * import numpy as np import ...
35.75
83
0.537063
1,969
18,590
4.858812
0.187913
0.024459
0.016097
0.011916
0.308874
0.271245
0.217519
0.186474
0.141319
0.141319
0
0.010515
0.375901
18,590
519
84
35.818882
0.814084
0.31603
0
0.312236
0
0
0.052376
0
0
0
0
0.003854
0
1
0.054852
false
0.004219
0.059072
0.008439
0.164557
0.084388
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
0
0
1
0
472d943521309da5bdb5ecbc1180c718f5245c0f
1,561
py
Python
ctapipe/image/concentration.py
nbiederbeck/ctapipe
cdd2fe5205bd2747d2846cfc751c51868b4a0bdd
[ "BSD-3-Clause" ]
null
null
null
ctapipe/image/concentration.py
nbiederbeck/ctapipe
cdd2fe5205bd2747d2846cfc751c51868b4a0bdd
[ "BSD-3-Clause" ]
null
null
null
ctapipe/image/concentration.py
nbiederbeck/ctapipe
cdd2fe5205bd2747d2846cfc751c51868b4a0bdd
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import astropy.units as u from ..instrument import CameraGeometry from ..containers import ConcentrationContainer from .hillas import camera_to_shower_coordinates from ..utils.quantities import all_to_value __all__ = ["concentration_parameters"] def concentration_parameters(geom: CameraGeometry, ...
30.607843
88
0.679052
225
1,561
4.506667
0.368889
0.015779
0.027613
0.04931
0.019724
0.019724
0
0
0
0
0
0.009967
0.2287
1,561
50
89
31.22
0.832226
0.189622
0
0
0
0
0.019417
0.019417
0
0
0
0
0
1
0.034483
false
0
0.206897
0
0.275862
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
0
0
1
0
472df55e17729fcc47b160990f5f92d48d797df5
5,647
py
Python
config/settings.py
jochenklar/django-project
ae46a6bdaf7a7711a3862009754c27f953d5f8eb
[ "MIT" ]
null
null
null
config/settings.py
jochenklar/django-project
ae46a6bdaf7a7711a3862009754c27f953d5f8eb
[ "MIT" ]
null
null
null
config/settings.py
jochenklar/django-project
ae46a6bdaf7a7711a3862009754c27f953d5f8eb
[ "MIT" ]
null
null
null
import os from pathlib import Path import dj_database_url from django.utils.translation import gettext_lazy as _ BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = os.getenv('SECRET_KEY') DEBUG = (os.getenv('DEBUG', 'False').upper() == 'TRUE') DEBUG_TOOLBAR = (os.getenv('DEBUG_TOOLBAR', 'False').upper...
28.376884
79
0.556933
533
5,647
5.703565
0.311445
0.044737
0.029934
0.022368
0.095724
0.067105
0.030921
0.030921
0.030921
0
0
0.007731
0.289888
5,647
198
80
28.520202
0.750374
0.004604
0
0.10119
0
0
0.422036
0.217515
0
0
0
0
0
1
0
false
0.005952
0.02381
0
0.02381
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
0
0
1
0
4731fabfe155fe4caec4fa4a58fe927e97e941d4
4,935
py
Python
custom_components/magicstrip/light.py
elahd/ha-magicstrip
f33aeafc4a313d8674591e44c0d1d9c11c91e9cd
[ "MIT" ]
null
null
null
custom_components/magicstrip/light.py
elahd/ha-magicstrip
f33aeafc4a313d8674591e44c0d1d9c11c91e9cd
[ "MIT" ]
null
null
null
custom_components/magicstrip/light.py
elahd/ha-magicstrip
f33aeafc4a313d8674591e44c0d1d9c11c91e9cd
[ "MIT" ]
null
null
null
"""MagicStrip light implementation.""" from __future__ import annotations import logging from typing import Any, MutableMapping from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_EFFECT, ATTR_RGB_COLOR, COLOR_MODE_RGB, SUPPORT_BRIGHTNESS, SUPPORT_COLOR, SUPPORT_EFFECT, ...
32.9
119
0.674772
562
4,935
5.661922
0.265125
0.025141
0.02357
0.026398
0.125393
0.097737
0.087995
0.052168
0.030798
0
0
0.001885
0.247416
4,935
149
120
33.120805
0.854873
0.09848
0
0.173077
0
0
0.007662
0.004876
0
0
0
0
0
1
0.057692
false
0
0.125
0.009615
0.278846
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
0
0
1
0
5b26a2989cc751d061fee5e02533b62c0199aa67
1,407
py
Python
matrix/spiralOrder.py
nishantml/100-days-of-code
fdbd7f8d195363467ab462bd4f0774a34379a769
[ "MIT" ]
1
2021-03-20T12:23:31.000Z
2021-03-20T12:23:31.000Z
matrix/spiralOrder.py
nishantml/100-days-of-code
fdbd7f8d195363467ab462bd4f0774a34379a769
[ "MIT" ]
null
null
null
matrix/spiralOrder.py
nishantml/100-days-of-code
fdbd7f8d195363467ab462bd4f0774a34379a769
[ "MIT" ]
null
null
null
""" Given an m x n matrix, return all elements of the matrix in spiral order. Example 1: Input: matrix = [[1,2,3],[4,5,6],[7,8,9]] Output: [1,2,3,6,9,8,7,4,5] Example 2: Input: matrix = [[1,2,3,4],[5,6,7,8],[9,10,11,12]] Output: [1,2,3,4,8,12,11,10,9,5,6,7] Constraints: m == matrix.length n == matrix[i].len...
22.693548
73
0.471215
202
1,407
3.282178
0.29703
0.012066
0.0181
0.066365
0.138763
0.060332
0.060332
0.060332
0.060332
0.060332
0
0.09215
0.375267
1,407
61
74
23.065574
0.662116
0.278607
0
0
0
0
0
0
0
0
0
0
0
1
0.035714
false
0
0.035714
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5b2c78d7a80a1e068c05e2fcdde3201711ae2bcd
2,161
py
Python
telegram_ecommerce/database/db_wrapper.py
Anonylions/telegram_ecommerce
f5382886bbebf607c735e2f451774c56df8d6011
[ "MIT" ]
10
2020-11-20T20:55:52.000Z
2022-02-10T20:25:45.000Z
telegram_ecommerce/database/db_wrapper.py
Anonylions/telegram_ecommerce
f5382886bbebf607c735e2f451774c56df8d6011
[ "MIT" ]
1
2022-02-16T10:28:18.000Z
2022-02-16T10:35:31.000Z
telegram_ecommerce/database/db_wrapper.py
Anonylions/telegram_ecommerce
f5382886bbebf607c735e2f451774c56df8d6011
[ "MIT" ]
8
2021-05-01T01:13:09.000Z
2022-03-13T14:00:01.000Z
import mysql.connector as connector from ..utils.utils import get_sql_commands_from_a_file from ..utils.consts import db_credentials from ..utils.log import logger class DBWrapper(): def __init__(self, db_credentials): self.database_name = "telegram_ecommerce" self.connection = connector.connect...
29.202703
76
0.661731
255
2,161
5.301961
0.239216
0.097633
0.059172
0.053254
0.39497
0.344675
0.260355
0.260355
0.260355
0.260355
0
0
0.245257
2,161
73
77
29.60274
0.828939
0
0
0.346154
0
0
0.069477
0.020843
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.288462
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
0
0
1
0
5b2dd18e1ecfbb5e9df7c4c7ce61b73c2c764de6
5,334
py
Python
satsense/extract.py
fossabot/satsense
6666dd01a6988a86319c71a8f8802bf4b096c550
[ "Apache-2.0" ]
22
2018-03-14T10:29:38.000Z
2022-03-29T10:54:51.000Z
satsense/extract.py
fdbesanto2/satsense
b0fa650193995a30328f26a36ebab2437c0e37ef
[ "Apache-2.0" ]
49
2018-05-25T13:28:07.000Z
2021-07-31T09:48:02.000Z
satsense/extract.py
fdbesanto2/satsense
b0fa650193995a30328f26a36ebab2437c0e37ef
[ "Apache-2.0" ]
11
2018-04-24T08:55:28.000Z
2021-02-17T22:32:05.000Z
"""Module for computing features.""" import logging from concurrent.futures import ProcessPoolExecutor from functools import partial from itertools import groupby from os import cpu_count from typing import Iterator import numpy as np from .features import Feature from .generators import FullGenerator from .image imp...
34.412903
79
0.630484
633
5,334
5.21643
0.270142
0.015142
0.027862
0.029073
0.149606
0.134464
0.11811
0.076317
0.076317
0.043004
0
0.014088
0.281402
5,334
154
80
34.636364
0.847378
0.407387
0
0.119403
0
0
0.051908
0
0
0
0
0
0
1
0.059701
false
0
0.149254
0
0.223881
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
0
0
1
0
5b2e595b9f19bfb2e8967ee33be2a32475c6a58f
2,319
py
Python
main.py
lbellomo/mafalda_bot
a2037d266d3c7ba2129b65686d05c9611fd10c61
[ "MIT" ]
1
2021-02-20T16:33:37.000Z
2021-02-20T16:33:37.000Z
main.py
lbellomo/mafalda_bot
a2037d266d3c7ba2129b65686d05c9611fd10c61
[ "MIT" ]
null
null
null
main.py
lbellomo/mafalda_bot
a2037d266d3c7ba2129b65686d05c9611fd10c61
[ "MIT" ]
null
null
null
import os import sys import time from pathlib import Path from random import choice from codecs import decode from base64 import b64decode import tweepy max_errors_count = 5 CONSUMER_KEY = os.environ["CONSUMER_KEY"] CONSUMER_SECRET = os.environ["CONSUMER_SECRET"] ACCESS_TOKEN = os.environ["ACCESS_TOKEN"] ACCESS_TOKE...
24.670213
129
0.598103
298
2,319
4.426175
0.389262
0.058378
0.038666
0.050038
0.136467
0.051554
0.051554
0.051554
0
0
0
0.010143
0.277275
2,319
93
130
24.935484
0.77685
0
0
0.115942
0
0.014493
0.16947
0.028892
0
0
0
0
0
1
0.014493
false
0
0.115942
0
0.144928
0.057971
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
0
0
1
0
5b2f1506a9908854c576dc2669ef2013acbe7667
1,787
py
Python
steelpy/f2uModel/load/sqlite/main.py
svortega/steelpy
bef35eb8ab8728fc29f57b7070b5f3bac0b0e840
[ "MIT" ]
4
2021-09-28T12:52:01.000Z
2022-02-24T22:30:22.000Z
steelpy/f2uModel/load/sqlite/main.py
svortega/steelpy
bef35eb8ab8728fc29f57b7070b5f3bac0b0e840
[ "MIT" ]
null
null
null
steelpy/f2uModel/load/sqlite/main.py
svortega/steelpy
bef35eb8ab8728fc29f57b7070b5f3bac0b0e840
[ "MIT" ]
null
null
null
# # Copyright (c) 2009-2021 fem2ufo # # Python stdlib imports #from typing import NamedTuple, Dict, List, Iterable, Union # package imports from steelpy.f2uModel.load.sqlite.basic_load import BasicLoadSQL from steelpy.f2uModel.load.sqlite.combination import LoadCombSQL from steelpy.f2uModel.results.sqlite.operation....
29.783333
97
0.588137
191
1,787
5.256545
0.34555
0.076693
0.047809
0.065737
0.243028
0.185259
0.055777
0
0
0
0
0.009983
0.327364
1,787
60
98
29.783333
0.825291
0.081142
0
0.125
0
0
0.019683
0
0
0
0
0
0
1
0.125
false
0
0.09375
0
0.34375
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
0
0
1
0
5b2f83d5cd93c073ad130cc113bab25a1d03255b
423
py
Python
wrap/pybind11/pybind11/__init__.py
xxiao-1/gtsam
8b1516f43ffdf6b5098fc282b566f2ee1edb50f6
[ "BSD-3-Clause" ]
84
2020-09-07T01:38:44.000Z
2022-03-31T16:05:11.000Z
wrap/pybind11/pybind11/__init__.py
xxiao-1/gtsam
8b1516f43ffdf6b5098fc282b566f2ee1edb50f6
[ "BSD-3-Clause" ]
39
2016-11-25T22:14:09.000Z
2022-01-13T21:44:51.000Z
wrap/pybind11/pybind11/__init__.py
xxiao-1/gtsam
8b1516f43ffdf6b5098fc282b566f2ee1edb50f6
[ "BSD-3-Clause" ]
22
2018-07-12T06:16:57.000Z
2022-01-15T03:38:51.000Z
# -*- coding: utf-8 -*- from ._version import version_info, __version__ # noqa: F401 imported but unused def get_include(user=False): import os d = os.path.dirname(__file__) if os.path.exists(os.path.join(d, "include")): # Package is installed return os.path.join(d, "include") else: ...
30.214286
81
0.64539
60
423
4.366667
0.55
0.137405
0.114504
0.083969
0.137405
0
0
0
0
0
0
0.012195
0.224586
423
13
82
32.538462
0.786585
0.255319
0
0
0
0
0.067742
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5b30d2a47cc806b49df80d10546f31a2ce91bf14
20,347
py
Python
h3/tree.py
rajatkapoor/pyh3
874b6aa94d61cd13b2d8e9232b1cc5971fc193f3
[ "MIT" ]
61
2015-08-11T00:44:58.000Z
2022-02-10T12:14:01.000Z
h3/tree.py
rajatkapoor/pyh3
874b6aa94d61cd13b2d8e9232b1cc5971fc193f3
[ "MIT" ]
3
2016-02-26T17:27:19.000Z
2016-08-12T03:04:12.000Z
h3/tree.py
rajatkapoor/pyh3
874b6aa94d61cd13b2d8e9232b1cc5971fc193f3
[ "MIT" ]
17
2015-08-10T20:32:55.000Z
2019-03-13T19:33:21.000Z
import logging import math from collections import deque from node import Node from operator import itemgetter from h3math import compute_radius, compute_hyperbolic_area, compute_delta_phi, compute_delta_theta import mpl_toolkits.mplot3d.art3d as art3d from matplotlib.patches import Circle import matplotlib.pyplot as ...
48.101655
120
0.57291
2,571
20,347
4.404123
0.160638
0.092997
0.059701
0.02517
0.481145
0.405546
0.338691
0.299302
0.257617
0.22759
0
0.012192
0.33892
20,347
422
121
48.21564
0.829604
0.231975
0
0.393728
0
0.010453
0.028206
0
0
0
0
0
0
1
0.041812
false
0.003484
0.034843
0
0.087108
0.003484
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
0
0
1
0
5b31f0b330141ac44d0ebd212cbd8605bcb60314
1,530
py
Python
utils/plot_results.py
miniautonomous/trainer_ai
953b6c22b65e249a9d7595d15c78c24c12bc254e
[ "MIT" ]
1
2021-06-23T22:32:53.000Z
2021-06-23T22:32:53.000Z
utils/plot_results.py
miniautonomous/trainer_ai
953b6c22b65e249a9d7595d15c78c24c12bc254e
[ "MIT" ]
null
null
null
utils/plot_results.py
miniautonomous/trainer_ai
953b6c22b65e249a9d7595d15c78c24c12bc254e
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt def plot_results(model_name: str, history, history_keys: list, training_dictionary:dict): """ Plot the results of a simulation. Parameters ---------- model_name: (str) model name history: (tf history) result of a Keras model fit history_keys: (list) lis...
36.428571
89
0.66732
212
1,530
4.721698
0.367925
0.125874
0.08991
0.07992
0.533467
0.505495
0.443556
0.377622
0.377622
0.377622
0
0.033175
0.172549
1,530
41
90
37.317073
0.757504
0.195425
0
0.32
0
0
0.086076
0.018565
0
0
0
0
0
1
0.04
false
0
0.04
0
0.08
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
0
0
1
0
5b34aa1af56249ef97f4b6fdf0c203875ab7d112
1,971
py
Python
abel/tests/test_basex.py
Derollez/PyAbel
c8be4ed7e8e08ee026634b9e856fb473e58d7330
[ "MIT" ]
null
null
null
abel/tests/test_basex.py
Derollez/PyAbel
c8be4ed7e8e08ee026634b9e856fb473e58d7330
[ "MIT" ]
null
null
null
abel/tests/test_basex.py
Derollez/PyAbel
c8be4ed7e8e08ee026634b9e856fb473e58d7330
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os.path import numpy as np from numpy.testing import assert_allclose import abel DATA_DIR = os.path.join(os.path.split(__file__)[0], 'data') def test_basex_basis_sets_cache(): # n_vert, n_horz =...
27.760563
93
0.690005
320
1,971
3.940625
0.3
0.017446
0.047581
0.055512
0.421094
0.384615
0.384615
0.384615
0.384615
0.384615
0
0.028554
0.182648
1,971
70
94
28.157143
0.75419
0.083714
0
0.295455
0
0
0.02951
0.015033
0
0
0
0
0.090909
1
0.090909
false
0
0.159091
0
0.25
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5b3a8027dd21491237d65a61527430d014ff49a1
23,554
py
Python
shogi-main1.py
GudSirSnek/GameOfShogi
3961cdcba68561de9eb98d96dcc50df498cc9fcc
[ "Apache-2.0" ]
null
null
null
shogi-main1.py
GudSirSnek/GameOfShogi
3961cdcba68561de9eb98d96dcc50df498cc9fcc
[ "Apache-2.0" ]
null
null
null
shogi-main1.py
GudSirSnek/GameOfShogi
3961cdcba68561de9eb98d96dcc50df498cc9fcc
[ "Apache-2.0" ]
null
null
null
#main class handles user input and current gameState class import pygame as p import shogiEngine1 import os import copy import Piece import Menu height = 1057 #defines the board resolution width = 1920 sq_size = 66 x_offset = 459 y_offset = 243 scale = 1 p.font.init() myfont = p.font.SysFont('Comi...
43.537893
263
0.484164
2,774
23,554
4.086518
0.142394
0.019054
0.016673
0.022495
0.477064
0.440014
0.369972
0.320219
0.270995
0.251323
0
0.049256
0.389743
23,554
540
264
43.618519
0.739391
0.089879
0
0.412322
0
0
0.03322
0.001056
0
0
0
0
0
1
0.030806
false
0.00237
0.014218
0
0.056872
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
0
0
1
0
5b4adf85d7a1a04cebb1c8771aa76f2f5d18e037
505
py
Python
others/levenshtein.py
Mifour/Algorithms
77cfafc49bc0130da0f6041b169a15053f81af87
[ "MIT" ]
null
null
null
others/levenshtein.py
Mifour/Algorithms
77cfafc49bc0130da0f6041b169a15053f81af87
[ "MIT" ]
null
null
null
others/levenshtein.py
Mifour/Algorithms
77cfafc49bc0130da0f6041b169a15053f81af87
[ "MIT" ]
null
null
null
import numpy as np def levenshtein(first, second): """ O(nm) time & space for word of n and m characters """ n = len(first) m = len(second) matrix = np.array([np.arange(m)+i+1 for i in range(n)]) for i in range(1, n): for j in range(1, m): matrix[i,j] = min( matrix[i-1, j] +1, matrix[i, j-1] +1...
21.956522
56
0.592079
94
505
3.180851
0.404255
0.026756
0.040134
0.073579
0.06689
0
0
0
0
0
0
0.037688
0.211881
505
23
57
21.956522
0.713568
0.136634
0
0
0
0
0.049412
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.2
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
0
0
0
0
0
0
0
0
1
0
5b52819344cdd9b254cb63f54c8459751f763cd8
2,781
py
Python
dp_conceptual_search/ons/search/queries/ons_query_builders.py
flaxandteal/dp-conceptual-search
16c6383a61ba5b7069337c2626a0dc243bfe9d35
[ "MIT" ]
3
2018-05-10T16:49:27.000Z
2022-03-29T15:23:04.000Z
dp_conceptual_search/ons/search/queries/ons_query_builders.py
flaxandteal/dp-conceptual-search
16c6383a61ba5b7069337c2626a0dc243bfe9d35
[ "MIT" ]
2
2018-09-20T06:37:27.000Z
2018-11-12T12:05:08.000Z
dp_conceptual_search/ons/search/queries/ons_query_builders.py
flaxandteal/dp-conceptual-search
16c6383a61ba5b7069337c2626a0dc243bfe9d35
[ "MIT" ]
3
2018-06-25T10:48:43.000Z
2021-04-11T08:01:27.000Z
""" Defines a series of useful Elasticsearch queries for the ONS """ from typing import List from elasticsearch_dsl import query as Q from elasticsearch_dsl.aggs import A as Aggregation from dp_conceptual_search.ons.search.fields import AvailableFields from dp_conceptual_search.ons.search.content_type import ContentT...
36.116883
144
0.667026
333
2,781
5.366366
0.282282
0.067152
0.054841
0.063794
0.225518
0.183548
0.148853
0.117515
0.071628
0.071628
0
0.016698
0.224739
2,781
76
145
36.592105
0.812152
0.134484
0
0.052632
0
0
0.056014
0
0
0
0
0
0
1
0.105263
false
0
0.157895
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5b574f2296ecb2d56b23821c1097178c52787f98
1,486
py
Python
02_crowsnest/crowsnest.py
leszekgrechowicz/tiny_python_projects
792c21a9a56c1dbe35d1aa1d4959c030a7921acd
[ "MIT" ]
null
null
null
02_crowsnest/crowsnest.py
leszekgrechowicz/tiny_python_projects
792c21a9a56c1dbe35d1aa1d4959c030a7921acd
[ "MIT" ]
null
null
null
02_crowsnest/crowsnest.py
leszekgrechowicz/tiny_python_projects
792c21a9a56c1dbe35d1aa1d4959c030a7921acd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : Leszek Grechowicz <leszek_grechowicz@o2.pl> Date : 2021-06-13 Purpose: Choose the correct article """ import argparse # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( descript...
25.62069
75
0.514132
147
1,486
5.061224
0.557823
0.043011
0.043011
0.061828
0
0
0
0
0
0
0
0.010554
0.234859
1,486
57
76
26.070175
0.643799
0.298789
0
0
0
0
0.193103
0
0
0
0
0
0
1
0.12
false
0
0.04
0
0.24
0.04
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
0
0
1
0
5b5ae9e5749ec7396c079711e82dc60783ccf32d
6,449
py
Python
interpreter-server/buzzcommander.py
Anglia-Ruskin-IoT-Labs/avs-device-sdk
68d4446b3ecbb81cab73d7701ec909f5f3603316
[ "Apache-2.0" ]
null
null
null
interpreter-server/buzzcommander.py
Anglia-Ruskin-IoT-Labs/avs-device-sdk
68d4446b3ecbb81cab73d7701ec909f5f3603316
[ "Apache-2.0" ]
null
null
null
interpreter-server/buzzcommander.py
Anglia-Ruskin-IoT-Labs/avs-device-sdk
68d4446b3ecbb81cab73d7701ec909f5f3603316
[ "Apache-2.0" ]
1
2018-08-22T14:35:08.000Z
2018-08-22T14:35:08.000Z
#!/usr/bin/python3 import socket # used for TCP/IP communication import smtplib # used to send email report import time # used to insert current date in email report import threading class Buzzbox(): # Constructor, saving constants def main(self, _ip: str, _port: int, _light: int, _led: int): self.BUZZ...
27.917749
86
0.609862
786
6,449
4.843511
0.215013
0.072498
0.085369
0.089572
0.456527
0.345679
0.344628
0.344628
0.319149
0.315997
0
0.003993
0.262211
6,449
230
87
28.03913
0.796133
0.150876
0
0.548023
0
0
0.075741
0
0
0
0
0.004348
0
1
0.050847
false
0
0.022599
0.00565
0.220339
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
0
0
1
0
5b5b5de9cc4bb46f2ff5bbbe7a01860b9bf18703
17,997
py
Python
pointcloud_diff/scripts/PointCloudDiff.py
565353780/pytorch-voxblox-plus-plus
fd319495b36651cf8c0c9244e0f664fac1afd5ca
[ "BSD-3-Clause" ]
null
null
null
pointcloud_diff/scripts/PointCloudDiff.py
565353780/pytorch-voxblox-plus-plus
fd319495b36651cf8c0c9244e0f664fac1afd5ca
[ "BSD-3-Clause" ]
null
null
null
pointcloud_diff/scripts/PointCloudDiff.py
565353780/pytorch-voxblox-plus-plus
fd319495b36651cf8c0c9244e0f664fac1afd5ca
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import numpy as np import open3d as o3d from time import time, sleep import rospy from sensor_msgs.point_cloud2 import read_points from vpp_msgs.srv import GetMap from tensorboard_logger_ros.msg import Scalar from tensorboard_logger_ros.srv import ScalarToBool ...
40.902273
97
0.64483
1,997
17,997
5.425138
0.100651
0.100425
0.048459
0.043843
0.646114
0.552612
0.464925
0.439265
0.40096
0.391822
0
0.012526
0.276935
17,997
439
98
40.995444
0.820026
0.003667
0
0.425824
0
0
0.098516
0.064376
0
0
0
0
0
1
0.032967
false
0
0.024725
0
0.145604
0.087912
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
0
0
1
0
5b5bca6fb329af46502ecd4b3cff5294fef66f40
1,314
py
Python
tests/pup/sensors/color_color.py
cschlack/pybricks-micropython
0abfd2918267a4e6e7a04062976ac1bb3da1f4b1
[ "MIT" ]
115
2020-06-15T16:43:14.000Z
2022-03-21T21:11:57.000Z
tests/pup/sensors/color_color.py
cschlack/pybricks-micropython
0abfd2918267a4e6e7a04062976ac1bb3da1f4b1
[ "MIT" ]
83
2020-06-17T17:19:29.000Z
2022-03-08T18:50:35.000Z
tests/pup/sensors/color_color.py
BertLindeman/pybricks-micropython
8f22a99551100e66ddf08d014d9f442f22b33b4d
[ "MIT" ]
40
2020-06-15T18:36:39.000Z
2022-03-28T13:22:43.000Z
# SPDX-License-Identifier: MIT # Copyright (c) 2020 The Pybricks Authors """ Hardware Module: 1 Description: Verifies color sensing and calibration capability. """ from pybricks.pupdevices import Motor, ColorSensor, UltrasonicSensor from pybricks.parameters import Port, Color # Initialize devices. motor = Motor(Por...
26.816327
92
0.702435
173
1,314
5.277457
0.468208
0.060241
0.029573
0.062432
0.338445
0.338445
0.338445
0.338445
0.338445
0.338445
0
0.028259
0.165145
1,314
48
93
27.375
0.804011
0.249619
0
0.333333
0
0
0.100927
0
0
0
0
0
0.074074
1
0
false
0
0.074074
0
0.074074
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
0
0
1
0
5b5c888bbb8125ae3ac660dfc5ba639abf84f105
3,406
py
Python
software/firmware/data_dump.py
lab11/polypoint
0a21b19db7d00c0b0d9b523a54a6b243a5e64bac
[ "Apache-2.0" ]
132
2015-05-16T10:19:15.000Z
2022-03-17T22:11:49.000Z
software/module/firmware/data_dump.py
pinsonc/totternary
b938123bec8264927984740f7b435ab0b9ebdbd8
[ "Apache-2.0" ]
14
2015-05-27T07:55:43.000Z
2018-06-27T22:57:47.000Z
software/module/firmware/data_dump.py
pinsonc/totternary
b938123bec8264927984740f7b435ab0b9ebdbd8
[ "Apache-2.0" ]
56
2015-06-27T09:51:13.000Z
2022-01-22T17:02:42.000Z
#!/usr/bin/env python3 import argparse import binascii import os import struct import sys import serial import numpy as np import scipy.io as sio parser = argparse.ArgumentParser() parser.add_argument('-s', '--serial', default='/dev/tty.usbserial-AL00EZAS') parser.add_argument('-b', '--baudrate', default=3000000,...
24.328571
79
0.66882
487
3,406
4.577002
0.347023
0.049349
0.04576
0.025572
0.132346
0.036788
0.036788
0.025572
0.025572
0
0
0.024779
0.170581
3,406
139
80
24.503597
0.764248
0.043159
0
0.128713
0
0
0.227762
0.024007
0
0
0.006771
0
0.039604
1
0.019802
false
0.009901
0.079208
0
0.108911
0.118812
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
0
0
1
0
5b5f3d38d66083adf3fa27d5150cb13f0c26d96e
4,642
py
Python
venv/Lib/site-packages/pyshorteners/base.py
arturj9/encurtar-link
2e5bfdd2b2525f10f41942c79cb45cc4e43a24ee
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyshorteners/base.py
arturj9/encurtar-link
2e5bfdd2b2525f10f41942c79cb45cc4e43a24ee
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyshorteners/base.py
arturj9/encurtar-link
2e5bfdd2b2525f10f41942c79cb45cc4e43a24ee
[ "MIT" ]
null
null
null
import requests import re from .exceptions import BadURLException, ExpandingErrorException URL_RE = re.compile( r"(?i)\b((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.]" r"[a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)" r"))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()" r'\[\]{};:\'".,<>?«»“...
29.948387
122
0.554718
490
4,642
5.206122
0.273469
0.016464
0.0196
0.02548
0.437084
0.416699
0.358683
0.325755
0.306546
0.268914
0
0.002182
0.308919
4,642
154
123
30.142857
0.792394
0.497199
0
0.309091
0
0.036364
0.121133
0.082328
0
0
0
0
0
1
0.109091
false
0
0.054545
0
0.254545
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
0
0
1
0
5b5fb3612eed2c2c094b3078cd58aaf1ac0191cc
3,937
py
Python
walletUI/wallet/views.py
avinashshenoy97/brownie-points
27eb1e9a5ab685e72a5b701c0f76af44d9700960
[ "MIT" ]
1
2020-11-25T12:14:40.000Z
2020-11-25T12:14:40.000Z
walletUI/wallet/views.py
avinashshenoy97/brownie-points
27eb1e9a5ab685e72a5b701c0f76af44d9700960
[ "MIT" ]
null
null
null
walletUI/wallet/views.py
avinashshenoy97/brownie-points
27eb1e9a5ab685e72a5b701c0f76af44d9700960
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework import status from rest_framework.views import APIView from rest_framework.response import Response import requests import os,sys,inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdi...
40.173469
236
0.712217
491
3,937
5.698574
0.197556
0.061115
0.046462
0.048606
0.473553
0.422445
0.399571
0.34203
0.327377
0.291994
0
0.029611
0.099314
3,937
98
237
40.173469
0.759447
0
0
0.348315
0
0
0.216353
0.010665
0
0
0
0
0
1
0.078652
false
0
0.067416
0.011236
0.280899
0.089888
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
0
0
1
0
5b62f118e2ffc9dd673f3068d8b01e2b12d22cc7
1,362
py
Python
tests/test_template.py
furbrain/CVExplorer
1283e3320ef7bb610b1044543614dd1b96740e52
[ "MIT" ]
null
null
null
tests/test_template.py
furbrain/CVExplorer
1283e3320ef7bb610b1044543614dd1b96740e52
[ "MIT" ]
null
null
null
tests/test_template.py
furbrain/CVExplorer
1283e3320ef7bb610b1044543614dd1b96740e52
[ "MIT" ]
null
null
null
from unittest import TestCase import os.path import cv2 from lxml import html from functions import ParameterTemplate from functions.template import FunctionTemplate FIXTURES_FILTER_HTML = "/usr/share/doc/opencv-doc/opencv4/html/d4/d86/group__imgproc__filter.html" FIXTURES_FRAGMENT_HTML = os.path.join(os.path.dirname...
32.428571
98
0.65859
149
1,362
5.845638
0.449664
0.020666
0.041332
0.022962
0.036739
0
0
0
0
0
0
0.006796
0.243759
1,362
41
99
33.219512
0.838835
0
0
0.058824
0
0.029412
0.119765
0.074945
0
0
0
0
0.058824
1
0.088235
false
0
0.205882
0
0.323529
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
0
0
1
0
5b6372f2718a1820477d44a40467e6e54ef84811
3,662
py
Python
Eric/day3.py
efacks68/codingjuntos_advent2020
1d7ef6278616716ad62a5f3af3fa0419173b6dc1
[ "MIT" ]
1
2020-12-02T20:16:16.000Z
2020-12-02T20:16:16.000Z
Eric/day3.py
efacks68/codingjuntos_advent2020
1d7ef6278616716ad62a5f3af3fa0419173b6dc1
[ "MIT" ]
null
null
null
Eric/day3.py
efacks68/codingjuntos_advent2020
1d7ef6278616716ad62a5f3af3fa0419173b6dc1
[ "MIT" ]
null
null
null
#Day3: Toboggan Trajectory #Part1: Starting in Top-Left Corner, follow a slope of Right 3 and Down 1. f=open("input_day3.txt") lines=f.readlines() #read in each line f.close() #print("lines\n",lines) length=0 mnt=[] for row in lines: mnt.append(str(row)) #move into new list for easier manipulation length=leng...
19.902174
95
0.534134
582
3,662
3.359107
0.249141
0.022506
0.024552
0.023018
0.364194
0.352941
0.337596
0.337596
0.3289
0.299744
0
0.076012
0.28509
3,662
183
96
20.010929
0.670741
0.66876
0
0.254902
0
0
0.045022
0
0
0
0
0
0
1
0.039216
false
0
0
0
0.058824
0.078431
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
0
0
1
0
5b65b745e1b964b05f2af0b1c1dc9c88bdbc1879
235
py
Python
equipment_slots.py
BTmathic/game-template
77765b1340e51828cc9216b4239f558c251859ce
[ "MIT" ]
1
2019-09-01T20:15:52.000Z
2019-09-01T20:15:52.000Z
equipment_slots.py
BTmathic/game-template
77765b1340e51828cc9216b4239f558c251859ce
[ "MIT" ]
null
null
null
equipment_slots.py
BTmathic/game-template
77765b1340e51828cc9216b4239f558c251859ce
[ "MIT" ]
null
null
null
from enum import auto, Enum class EquipmentSlots(Enum): MAIN_HAND = auto() OFF_HAND = auto() HEAD = auto() BODY = auto() LEGS = auto() BOOTS = auto() L_RING = auto() R_RING = auto() CLOAK = auto()
16.785714
27
0.561702
30
235
4.266667
0.566667
0.125
0
0
0
0
0
0
0
0
0
0
0.306383
235
13
28
18.076923
0.785276
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.090909
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5b6848b8710fcce4dc8ab6725a2afbe088dcdcab
1,200
py
Python
make_cache.py
jdh4/tigergpu_visualization
770697124e6c8e04432db08002107dbd694e233b
[ "CNRI-Python" ]
null
null
null
make_cache.py
jdh4/tigergpu_visualization
770697124e6c8e04432db08002107dbd694e233b
[ "CNRI-Python" ]
null
null
null
make_cache.py
jdh4/tigergpu_visualization
770697124e6c8e04432db08002107dbd694e233b
[ "CNRI-Python" ]
1
2020-05-26T15:13:15.000Z
2020-05-26T15:13:15.000Z
#!/usr/licensed/anaconda3/2020.11/bin/python base = "/home/jdh4/bin/gpus" import sys sys.path = list(filter(lambda p: p.startswith("/usr"), sys.path)) sys.path.append(base) import json import subprocess import pandas as pd from dossier import ldap_plus if 1: rows = [] with open(base + "/utilization.json") as f...
31.578947
75
0.675833
182
1,200
4.406593
0.527473
0.05985
0.033666
0.049875
0
0
0
0
0
0
0
0.012597
0.14
1,200
37
76
32.432432
0.764535
0.035833
0
0
0
0
0.17128
0.019896
0
0
0
0
0
1
0
false
0.03125
0.15625
0
0.15625
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
0
0
1
0
5b68dabbc6ef27b5064c767d7bec2e0782be79bd
4,777
py
Python
test_of_inheritance_2.py
JRF-2018/simbd
7a453562331cf5b41187a8c69e18ec3378004dc1
[ "ClArtistic" ]
null
null
null
test_of_inheritance_2.py
JRF-2018/simbd
7a453562331cf5b41187a8c69e18ec3378004dc1
[ "ClArtistic" ]
10
2021-09-05T13:15:50.000Z
2022-02-10T06:48:46.000Z
test_of_inheritance_2.py
JRF-2018/simbd
7a453562331cf5b41187a8c69e18ec3378004dc1
[ "ClArtistic" ]
null
null
null
#!/usr/bin/python3 __version__ = '0.0.3' # Time-stamp: <2021-10-16T01:25:51Z> ## Language: Japanese/UTF-8 """相続のテスト""" ## ## License: ## ## Public Domain ## (Since this small code is close to be mathematically trivial.) ## ## Author: ## ## JRF ## http://jrf.cocolog-nifty.com/software/ ## (Th...
28.777108
78
0.515386
577
4,777
4.083189
0.305026
0.074703
0.046689
0.0191
0.12309
0.02292
0.02292
0.02292
0.02292
0
0
0.02683
0.368013
4,777
165
79
28.951515
0.752898
0.169772
0
0.142857
0
0
0.023905
0
0
0
0
0
0.008403
1
0.10084
false
0
0.02521
0.008403
0.260504
0.008403
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
0
0
1
0
5b6b492e6ec14da57db531db52f34774d727d4cb
8,345
py
Python
detectron/ops/pcl.py
sisrfeng/NA-fWebSOD
49cb75a9a0d557b05968c6b11b0f17a7043f2077
[ "Apache-2.0" ]
23
2020-03-30T11:48:33.000Z
2022-03-11T06:34:31.000Z
detectron/ops/pcl.py
sisrfeng/NA-fWebSOD
49cb75a9a0d557b05968c6b11b0f17a7043f2077
[ "Apache-2.0" ]
9
2020-09-28T07:15:16.000Z
2022-03-25T08:11:06.000Z
detectron/ops/pcl.py
sisrfeng/NA-fWebSOD
49cb75a9a0d557b05968c6b11b0f17a7043f2077
[ "Apache-2.0" ]
10
2020-03-30T11:48:34.000Z
2021-06-02T06:12:36.000Z
import numpy as np from sklearn.cluster import KMeans from detectron.core.config import cfg import detectron.utils.boxes as box_utils try: xrange # Python 2 except NameError: xrange = range # Python 3 cfg_TRAIN_NUM_KMEANS_CLUSTER = 3 cfg_RNG_SEED = 3 cfg_TRAIN_GRAPH_IOU_THRESHOLD = 0.4 cfg_TRAIN_MA...
38.279817
119
0.637987
1,225
8,345
4.043265
0.147755
0.062185
0.048052
0.027458
0.347668
0.255401
0.234403
0.174036
0.147789
0.121946
0
0.023873
0.231995
8,345
217
120
38.456221
0.748947
0.074895
0
0.038961
0
0
0.051569
0
0
0
0
0
0.012987
1
0.045455
false
0.006494
0.025974
0
0.11039
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
0
0
1
0
5b6b52bea6e9b40479b6ac3698397020ea08e793
19,109
py
Python
services/python-images/src/master/resources/distributions.py
hpi-epic/mpcsl
05361acb0c8da68ddfa21f9fc9cd32a59255dc5c
[ "MIT" ]
1
2021-11-21T13:52:36.000Z
2021-11-21T13:52:36.000Z
services/python-images/src/master/resources/distributions.py
hpi-epic/mpcsl
05361acb0c8da68ddfa21f9fc9cd32a59255dc5c
[ "MIT" ]
3
2021-10-06T13:23:43.000Z
2022-01-07T13:48:41.000Z
services/python-images/src/master/resources/distributions.py
hpi-epic/mpcsl
05361acb0c8da68ddfa21f9fc9cd32a59255dc5c
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from flask_restful import Resource from flask_restful_swagger_2 import swagger from marshmallow import fields, validates, Schema, ValidationError from src.master.helpers.database import get_db_session from src.master.helpers.io import marshal, load_data, InvalidInputData from src...
46.045783
120
0.55466
1,913
19,109
5.358599
0.147935
0.01873
0.013169
0.017559
0.420349
0.345137
0.27568
0.196274
0.171203
0.149254
0
0.006816
0.33199
19,109
414
121
46.157005
0.79624
0.017112
0
0.332378
0
0
0.184976
0.023015
0
0
0
0
0
1
0.017192
false
0
0.028653
0
0.163324
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
0
0
1
0
5b6da9f79d2796f8456fd3c992ddac850201f870
18,233
py
Python
ginga/qtw/plugins/Pick.py
Rbeaty88/ginga
08451a81288b8defc54aa9f9e2af23a9ba32e985
[ "BSD-3-Clause" ]
1
2016-03-21T15:56:15.000Z
2016-03-21T15:56:15.000Z
ginga/qtw/plugins/Pick.py
Rbeaty88/ginga
08451a81288b8defc54aa9f9e2af23a9ba32e985
[ "BSD-3-Clause" ]
null
null
null
ginga/qtw/plugins/Pick.py
Rbeaty88/ginga
08451a81288b8defc54aa9f9e2af23a9ba32e985
[ "BSD-3-Clause" ]
null
null
null
# # Pick.py -- Pick plugin for Ginga fits viewer # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # from ginga.qtw.QtHelp import QtGui, QtCore from ginga.qtw import QtHel...
34.401887
133
0.577744
2,193
18,233
4.69585
0.195622
0.030588
0.021752
0.022334
0.320451
0.26209
0.205574
0.173529
0.129346
0.101767
0
0.015315
0.301651
18,233
529
134
34.466919
0.79345
0.091373
0
0.173228
0
0.002625
0.08396
0
0
0
0.001819
0
0.002625
1
0.086614
false
0
0.020997
0.007874
0.146982
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
0
0
1
0
5b723c49946f52cdac915a09e27adab029ad9a35
715
py
Python
django2/simpleDemo/blog/views.py
Gozeon/code-collections
7304e2b9c4c91a809125198d22cf40dcbb45a23b
[ "MIT" ]
null
null
null
django2/simpleDemo/blog/views.py
Gozeon/code-collections
7304e2b9c4c91a809125198d22cf40dcbb45a23b
[ "MIT" ]
1
2020-07-17T09:25:42.000Z
2020-07-17T09:25:42.000Z
django2/simpleDemo/blog/views.py
Gozeon/code-collections
7304e2b9c4c91a809125198d22cf40dcbb45a23b
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from .models import Comment from .forms import CommentForm def index(request): comments = Comment.objects.order_by('-create_at') context = {'comments': comments} return render(request, 'blog/index.html', context) def sign(request): if request.method == '...
28.6
66
0.622378
79
715
5.56962
0.443038
0.075
0.086364
0.104545
0
0
0
0
0
0
0
0
0.258741
715
25
67
28.6
0.830189
0
0
0
0
0
0.099162
0
0
0
0
0
0
1
0.105263
false
0
0.157895
0
0.421053
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
0
0
1
0
5b73957f0a22b9435187079c42d5be88539e176e
2,572
py
Python
scripts/create_cluster.py
rnrbarbosa/CDPDCTrial
aecff49971ba35b6ec02d04846c1ff891d8bca45
[ "Apache-2.0" ]
7
2020-08-04T20:09:22.000Z
2022-01-09T05:05:39.000Z
scripts/create_cluster.py
rnrbarbosa/CDPDCTrial
aecff49971ba35b6ec02d04846c1ff891d8bca45
[ "Apache-2.0" ]
1
2020-12-09T13:18:45.000Z
2022-01-08T17:41:39.000Z
scripts/create_cluster.py
rnrbarbosa/CDPDCTrial
aecff49971ba35b6ec02d04846c1ff891d8bca45
[ "Apache-2.0" ]
14
2020-09-03T14:19:10.000Z
2022-02-21T20:03:31.000Z
from __future__ import print_function import cm_client from cm_client.rest import ApiException from collections import namedtuple from pprint import pprint import json import time import sys def wait(cmd, timeout=None): SYNCHRONOUS_COMMAND_ID = -1 if cmd.id == SYNCHRONOUS_COMMAND_ID: return cmd SL...
27.956522
115
0.692846
333
2,572
5.12012
0.396396
0.070381
0.035191
0.044575
0
0
0
0
0
0
0
0.007349
0.206454
2,572
91
116
28.263736
0.828025
0.052488
0
0.134328
0
0
0.104613
0.021417
0
0
0
0
0
1
0.014925
false
0.029851
0.149254
0
0.208955
0.059701
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
0
0
1
0
5b73b791ebd04c2f9222a3d5b07d99e182af0ec3
447
py
Python
codefestival_2016_final_b.py
hythof/atc
12cb94ebe693e1f469ce0d982bc2924b586552cd
[ "CC0-1.0" ]
null
null
null
codefestival_2016_final_b.py
hythof/atc
12cb94ebe693e1f469ce0d982bc2924b586552cd
[ "CC0-1.0" ]
null
null
null
codefestival_2016_final_b.py
hythof/atc
12cb94ebe693e1f469ce0d982bc2924b586552cd
[ "CC0-1.0" ]
null
null
null
n=int(input()) def findMax(n): l=0 r=n while r-l>=2: m1=l+(r-l)//2 m2=m1+1 s1=(m1+1)*(m1/2) s2=(m2+1)*(m2/2) if s2 >= n > s1: return m2 elif s1 < n: l=m1 else: r=m1 return 1 def printLines(n,m): for i in rang...
17.88
28
0.373602
74
447
2.256757
0.364865
0.095808
0.035928
0
0
0
0
0
0
0
0
0.112033
0.46085
447
24
29
18.625
0.580913
0
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.166667
0.125
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
0
0
1
0
5b7674325078da66bb522f08c9f888feac4e3166
483
py
Python
test/test_pre_flight.py
gregbanks/atlascli
381966c4a042c3769d14167d5db7b5abb9a7c6e0
[ "Apache-2.0" ]
null
null
null
test/test_pre_flight.py
gregbanks/atlascli
381966c4a042c3769d14167d5db7b5abb9a7c6e0
[ "Apache-2.0" ]
null
null
null
test/test_pre_flight.py
gregbanks/atlascli
381966c4a042c3769d14167d5db7b5abb9a7c6e0
[ "Apache-2.0" ]
null
null
null
import unittest from atlascli.commands import Commands from atlascli.atlasmap import AtlasMap class TestPreFlight(unittest.TestCase): def test_preflight(self): map = AtlasMap() map.authenticate() c = Commands(map) with self.assertRaises(SystemExit) as e: c.preflight_clu...
24.15
48
0.652174
55
483
5.490909
0.581818
0.07947
0.112583
0.13245
0
0
0
0
0
0
0
0
0.242236
483
19
49
25.421053
0.825137
0
0
0
0
0
0.068323
0
0
0
0
0
0.066667
1
0.066667
false
0
0.2
0
0.333333
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
0
0
0
0
0
0
0
0
1
0
5b76d1c0d954a8965e785d0d46268bbbacc88062
1,357
py
Python
idealplanets/environment.py
bnb32/spring_onset
f856e839c38c7eb72c8f6148fa1c82e880925370
[ "MIT" ]
null
null
null
idealplanets/environment.py
bnb32/spring_onset
f856e839c38c7eb72c8f6148fa1c82e880925370
[ "MIT" ]
null
null
null
idealplanets/environment.py
bnb32/spring_onset
f856e839c38c7eb72c8f6148fa1c82e880925370
[ "MIT" ]
null
null
null
import os USERNAME='bbenton' PROJECT_CODE='UCOR0044' MAIN_DIR='/glade/u/home/'+USERNAME+'/spring_onset/' MY_CESM_DIR=MAIN_DIR+'/my_cesm' POST_PROC_DIR=MAIN_DIR+'/idealplanets/postprocessing/' PRE_PROC_DIR=MAIN_DIR+'/idealplanets/preprocessing/' SCRATCH_DIR='/glade/scratch/'+USERNAME+'/' CIME_OUTPUT_ROOT=SCRATCH_DIR+'/...
37.694444
75
0.812822
234
1,357
4.260684
0.354701
0.042126
0.04012
0.028084
0.052156
0
0
0
0
0
0
0.073485
0.027266
1,357
35
76
38.771429
0.681818
0.201179
0
0
0
0
0.404453
0.207792
0
0
0
0
0
1
0
false
0
0.037037
0
0.037037
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
0
0
1
0
5b77172878c48e201c7ca6f3a1acef26fd66d49d
5,316
py
Python
app/services/routes/service.py
codepointtku/viuhka-flask
e51382a306675efabebe2a47d0ae54b7abcdb884
[ "MIT" ]
null
null
null
app/services/routes/service.py
codepointtku/viuhka-flask
e51382a306675efabebe2a47d0ae54b7abcdb884
[ "MIT" ]
1
2021-06-02T00:32:26.000Z
2021-06-02T00:32:26.000Z
app/services/routes/service.py
codepointtku/viuhka-flask
e51382a306675efabebe2a47d0ae54b7abcdb884
[ "MIT" ]
1
2019-11-29T05:46:59.000Z
2019-11-29T05:46:59.000Z
from flask import Blueprint, render_template, request, redirect, Response, url_for from flask_login import login_required, current_user from flask_wtf.csrf import validate_csrf from app.services.models.service import ( Service, get_services...
40.580153
135
0.569789
571
5,316
5.119089
0.204904
0.026343
0.028738
0.020527
0.461512
0.347246
0.281902
0.281902
0.281902
0.281902
0
0.00834
0.323363
5,316
131
136
40.580153
0.804281
0.000941
0
0.447368
0
0
0.091149
0.024105
0
0
0
0
0
1
0.026316
false
0.035088
0.087719
0
0.22807
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5b78c81118416d931976b8f9e56f5af3adf5b603
5,799
py
Python
src/idom/backend/starlette.py
jmtaysom/idom
d2a569d27f915d3b2b1fc6eb8eef9aca3a6d9343
[ "MIT" ]
55
2019-02-28T23:58:42.000Z
2020-07-14T22:01:45.000Z
src/idom/backend/starlette.py
jmtaysom/idom
d2a569d27f915d3b2b1fc6eb8eef9aca3a6d9343
[ "MIT" ]
72
2019-04-04T18:46:30.000Z
2020-06-24T02:47:57.000Z
src/idom/backend/starlette.py
jmtaysom/idom
d2a569d27f915d3b2b1fc6eb8eef9aca3a6d9343
[ "MIT" ]
7
2019-04-02T17:53:30.000Z
2020-06-23T16:17:58.000Z
from __future__ import annotations import asyncio import json import logging from dataclasses import dataclass from typing import Any, Awaitable, Callable, Dict, Tuple, Union from starlette.applications import Starlette from starlette.middleware.cors import CORSMiddleware from starlette.staticfiles import StaticFiles...
32.038674
88
0.703914
705
5,799
5.6
0.321986
0.020517
0.017731
0.013678
0.090172
0.047619
0
0
0
0
0
0.000863
0.201069
5,799
180
89
32.216667
0.851284
0.155372
0
0.044643
0
0
0.050465
0.010182
0
0
0
0
0
1
0.080357
false
0
0.169643
0
0.357143
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
0
0
1
0
5b79cabe84902f79ff0d8c0db3006962e902cb92
650
py
Python
python/tests/strings/test_lsd_string_sort.py
rcanepa/cs-fundamentals
b362fc206417501e53a5739df1edf7568901eef8
[ "MIT" ]
null
null
null
python/tests/strings/test_lsd_string_sort.py
rcanepa/cs-fundamentals
b362fc206417501e53a5739df1edf7568901eef8
[ "MIT" ]
null
null
null
python/tests/strings/test_lsd_string_sort.py
rcanepa/cs-fundamentals
b362fc206417501e53a5739df1edf7568901eef8
[ "MIT" ]
null
null
null
import unittest from strings.lsd_string_sort import lsd_sort class LSDSort(unittest.TestCase): def setUp(self): self.licenses = [ "4PGC938", "2IYE230", "3CI0720", "1ICK750", "1OHV845", "4JZY524", "1ICK750", "3C...
25
59
0.526154
57
650
5.77193
0.491228
0.121581
0.109422
0
0
0
0
0
0
0
0
0.132678
0.373846
650
26
59
25
0.675676
0
0
0.391304
0
0
0.139785
0
0
0
0
0
0.043478
1
0.086957
false
0
0.086957
0
0.217391
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
0
0
1
0
5b7fc793ffe2598f7fc3e99084535d7e8a02825e
2,523
py
Python
Neville.py
VdeThevenin/Lagrange-Neville
35081615556d405dba30f874494e382ea5881817
[ "CC0-1.0" ]
null
null
null
Neville.py
VdeThevenin/Lagrange-Neville
35081615556d405dba30f874494e382ea5881817
[ "CC0-1.0" ]
null
null
null
Neville.py
VdeThevenin/Lagrange-Neville
35081615556d405dba30f874494e382ea5881817
[ "CC0-1.0" ]
null
null
null
""" Lagrange's Interpolation class File """ import sympy as sp import numpy as np from time import process_time as timer class Neville: def __init__(self): self.Q = [] self.time_ellapsed = 0 self.x = np.array([]) self.y = np.array([]) self._x = sp.symbols('x', real=True) ...
31.5375
120
0.442727
340
2,523
3.232353
0.226471
0.100091
0.080073
0.054595
0.247498
0.241128
0.213831
0.175614
0.153776
0.10737
0
0.019938
0.363853
2,523
79
121
31.936709
0.664798
0.122473
0
0.070175
0
0
0.015427
0
0
0
0
0
0
1
0.087719
false
0
0.052632
0
0.175439
0.035088
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
0
0
1
0
5b808a99380bd94afac98d7d0e9d8f814414f64f
1,103
py
Python
tests/test_fuzzy_matching.py
zhangkaizhao/supportbot
03c8e1761a3450614b53c3bdc8c5c33af1f186ec
[ "MIT" ]
1
2019-02-27T06:07:17.000Z
2019-02-27T06:07:17.000Z
tests/test_fuzzy_matching.py
zhangkaizhao/supportbot
03c8e1761a3450614b53c3bdc8c5c33af1f186ec
[ "MIT" ]
null
null
null
tests/test_fuzzy_matching.py
zhangkaizhao/supportbot
03c8e1761a3450614b53c3bdc8c5c33af1f186ec
[ "MIT" ]
null
null
null
from supportbot.bots import FuzzyMatchingSupportbot from helpers import get_fixture_filepath def _make_bot(filename): filepath = get_fixture_filepath(filename) return FuzzyMatchingSupportbot(filepath) def test_fuzzy_matching_reply(): filename = "questions_answers.txt" question = "OK?" bot = _m...
21.627451
51
0.715322
137
1,103
5.49635
0.248175
0.111554
0.099602
0.106242
0.749004
0.622842
0.524568
0.486056
0.486056
0.486056
0
0
0.186763
1,103
50
52
22.06
0.839465
0
0
0.580645
0
0
0.116954
0.081596
0
0
0
0
0.193548
1
0.16129
false
0
0.064516
0
0.258065
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
0
0
1
0
5b808ed1b42ee2bf4fcd01d4c2489a179a5aa41b
6,668
py
Python
experiments/firefox_send/Flask_App.py
olegtaranenko/gw-proxy-serverless
afb5d7b7cfaf6bfb82bafe951e45c76a11a0ffd3
[ "Apache-2.0" ]
null
null
null
experiments/firefox_send/Flask_App.py
olegtaranenko/gw-proxy-serverless
afb5d7b7cfaf6bfb82bafe951e45c76a11a0ffd3
[ "Apache-2.0" ]
null
null
null
experiments/firefox_send/Flask_App.py
olegtaranenko/gw-proxy-serverless
afb5d7b7cfaf6bfb82bafe951e45c76a11a0ffd3
[ "Apache-2.0" ]
null
null
null
import json import sys from websocket import create_connection sys.path.append('.') sys.path.append('./modules/OSBot-Utils') from osbot_utils.utils.Files import Files from flask import Flask,request,redirect,Response #from flask_socketio import SocketIO, emit import requests from gw_proxy.api.Http_Proxy import Http...
38.543353
140
0.59913
810
6,668
4.782716
0.188889
0.034848
0.021683
0.020134
0.447599
0.413526
0.395457
0.355188
0.355188
0.355188
0
0.010965
0.234103
6,668
173
141
38.543353
0.747601
0.326035
0
0.131868
0
0.010989
0.182679
0.011277
0
0
0
0
0
1
0.043956
false
0
0.10989
0.010989
0.21978
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5b83a834e3f1d50dc2140e7d4b70fe0b778dca6a
4,513
py
Python
image-comment-matching/rerank.py
stonyhu/Image-Commenting
eb925a3f99075d8b74c6cabd125f7b9a1f9786d2
[ "Apache-2.0" ]
null
null
null
image-comment-matching/rerank.py
stonyhu/Image-Commenting
eb925a3f99075d8b74c6cabd125f7b9a1f9786d2
[ "Apache-2.0" ]
null
null
null
image-comment-matching/rerank.py
stonyhu/Image-Commenting
eb925a3f99075d8b74c6cabd125f7b9a1f9786d2
[ "Apache-2.0" ]
null
null
null
import time import MeCab from tqdm import tqdm import argparse import torch import torch.nn.functional as F from model import Model from utils.functional import load_image_caption, str2bool mecab = MeCab.Tagger('-Ochasen') parser = argparse.ArgumentParser('Rerank all generated captions') parser.add_argu...
37.297521
94
0.605141
562
4,513
4.681495
0.272242
0.058153
0.04523
0.027366
0.154314
0.154314
0.145572
0.126568
0.126568
0.126568
0
0.008833
0.272546
4,513
120
95
37.608333
0.792568
0.015732
0
0.081633
0
0
0.089182
0.031967
0
0
0
0
0
1
0.040816
false
0
0.081633
0
0.153061
0.020408
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
0
0
1
0
5b83c5eaa2c2d8a8bb4f83de0e100de77825c6af
16,924
py
Python
alpine/job.py
alpinedatalabs/python-alpine-api
2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7
[ "MIT" ]
null
null
null
alpine/job.py
alpinedatalabs/python-alpine-api
2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7
[ "MIT" ]
8
2017-03-07T01:23:22.000Z
2019-10-24T22:45:46.000Z
alpine/job.py
alpinedatalabs/python-alpine-api
2f74e4eeb7cb6d2b4f2d73db90e8c4afc552d1e7
[ "MIT" ]
3
2017-03-13T11:15:19.000Z
2019-03-24T21:47:05.000Z
import json import pytz from datetime import datetime, timedelta try: # For Python 3.0 and later from urllib.parse import urlparse from urllib.parse import urljoin except ImportError: # Fall back to Python 2.7 from urlparse import urlparse from urlparse import urljoin from .exception import * f...
39.63466
125
0.568424
2,059
16,924
4.530355
0.127732
0.026265
0.038593
0.020262
0.552101
0.478666
0.428066
0.400086
0.36503
0.34048
0
0.015509
0.329473
16,924
426
126
39.7277
0.806486
0.289175
0
0.306533
0
0
0.17959
0.033244
0
0
0
0
0
1
0.070352
false
0
0.050251
0.005025
0.21608
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
0
0
1
0
5b88af3896dc7ac76c3bd00bb55fe5410335259b
11,276
py
Python
methods/http/param_cipher.py
bbhunter/lollipopz
ed6945eab4f017b1b6b8d3d4ec7a3efc1108cd20
[ "MIT" ]
null
null
null
methods/http/param_cipher.py
bbhunter/lollipopz
ed6945eab4f017b1b6b8d3d4ec7a3efc1108cd20
[ "MIT" ]
null
null
null
methods/http/param_cipher.py
bbhunter/lollipopz
ed6945eab4f017b1b6b8d3d4ec7a3efc1108cd20
[ "MIT" ]
null
null
null
import random import urllib from scapy.layers import http import exfilkit as lpz from exfilkit import methods ENCODING_TABLE = { '0': 'radio', '1': 'spoke', '2': 'thick', '3': 'human', '4': 'atom', '5': 'effect', '6': 'electric', '7': 'expect', '8': 'bone', '9': 'rail', '...
19.079526
97
0.485012
1,073
11,276
5.05219
0.555452
0.011068
0.003874
0.005165
0.154031
0.145176
0.130972
0.130972
0.130972
0.115846
0
0.012943
0.314828
11,276
590
98
19.111864
0.688713
0
0
0.067029
0
0
0.335669
0.013569
0
0
0
0
0
1
0.018116
false
0.001812
0.009058
0.003623
0.065217
0.001812
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
0
0
1
0
5b89275a0c09b79fb0e333962752c95ab1981d95
1,422
py
Python
test.py
itsmahadi007/leet_code
dafbf10c02d163ef69c8bcda26f4f67949e1170e
[ "MIT" ]
null
null
null
test.py
itsmahadi007/leet_code
dafbf10c02d163ef69c8bcda26f4f67949e1170e
[ "MIT" ]
null
null
null
test.py
itsmahadi007/leet_code
dafbf10c02d163ef69c8bcda26f4f67949e1170e
[ "MIT" ]
null
null
null
# Definition for a binary tree node. from typing import Optional class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def solver(self, r1, r2): if r1 == None and r2 == None: return Non...
21.223881
66
0.585091
187
1,422
4.427807
0.31016
0.062802
0.028986
0
0
0
0
0
0
0
0
0.04264
0.307314
1,422
66
67
21.545455
0.79797
0.087201
0
0
0
0
0.020898
0
0
0
0
0
0
1
0.113636
false
0
0.022727
0.022727
0.318182
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
0
0
0
0
0
0
0
0
1
0
5b8945c7fa951796c85d83a1615cc0df86de506d
1,919
py
Python
test/libcxx/ndk/test/config.py
AOSiP/platform_external_libcxx
eb2115113f10274c0d25523ba44c3c7373ea3209
[ "MIT" ]
5
2020-12-19T06:56:06.000Z
2022-01-09T01:28:42.000Z
test/libcxx/ndk/test/config.py
AOSiP/platform_external_libcxx
eb2115113f10274c0d25523ba44c3c7373ea3209
[ "MIT" ]
1
2021-09-27T06:00:40.000Z
2021-09-27T06:00:40.000Z
test/libcxx/ndk/test/config.py
AOSiP/platform_external_libcxx
eb2115113f10274c0d25523ba44c3c7373ea3209
[ "MIT" ]
14
2017-01-21T00:56:32.000Z
2022-02-24T11:27:38.000Z
import os import libcxx.test.config import libcxx.android.test.format class Configuration(libcxx.test.config.Configuration): def __init__(self, lit_config, config): super(Configuration, self).__init__(lit_config, config) self.cxx_under_test = None self.cxx_template = None self.lin...
33.086207
79
0.625326
227
1,919
4.986784
0.30837
0.071555
0.080389
0.100707
0.136926
0.060954
0.060954
0.060954
0.060954
0.060954
0
0.002085
0.25013
1,919
57
80
33.666667
0.784573
0.045336
0
0
0
0
0.107709
0.02515
0
0
0
0
0
1
0.113636
false
0
0.068182
0
0.227273
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
0
0
1
0
5b898d9bc24faf9e5765013e37fd2996b10a93b4
2,341
py
Python
main.py
uncleben006/ptt-stock-vane
f55951eded377cc2f52fb9b98fc57c04b3ead36f
[ "MIT" ]
1
2021-01-11T06:56:59.000Z
2021-01-11T06:56:59.000Z
main.py
uncleben006/ptt-stock-vane
f55951eded377cc2f52fb9b98fc57c04b3ead36f
[ "MIT" ]
null
null
null
main.py
uncleben006/ptt-stock-vane
f55951eded377cc2f52fb9b98fc57c04b3ead36f
[ "MIT" ]
null
null
null
import json from controller import follow, postback, message, cron, image from datetime import datetime from flask import Flask, request, abort, render_template from linebot.exceptions import ( InvalidSignatureError ) from linebot.models import ( MessageEvent, FollowEvent, PostbackEvent, TextMess...
25.725275
90
0.692012
300
2,341
5.26
0.383333
0.020279
0.024715
0.039924
0
0
0
0
0
0
0
0.00368
0.187527
2,341
91
91
25.725275
0.825973
0.064502
0
0
0
0
0.163004
0.019689
0
0
0
0
0
1
0.125
false
0
0.125
0
0.328125
0.03125
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
0
0
1
0
5b8b223b7c31de5945dad6e3558f8e2424ffcf2e
307
py
Python
tests/test_parser.py
threatlead/blocklistde
fe3649fac2a2a59d5fadced1eecfcb2f3b32781c
[ "MIT" ]
null
null
null
tests/test_parser.py
threatlead/blocklistde
fe3649fac2a2a59d5fadced1eecfcb2f3b32781c
[ "MIT" ]
null
null
null
tests/test_parser.py
threatlead/blocklistde
fe3649fac2a2a59d5fadced1eecfcb2f3b32781c
[ "MIT" ]
null
null
null
from .context import blocklistde import unittest class ConnectTestSuite(unittest.TestCase): def test_ip_list(self): ip = blocklistde.BlocklistDe.ssh() self.assertGreater(len(ip), 10, 'Found a total of {0} ipaddresses'.format(len(ip))) if __name__ == '__main__': unittest.main()
21.928571
91
0.700326
38
307
5.394737
0.710526
0.04878
0
0
0
0
0
0
0
0
0
0.011905
0.179153
307
13
92
23.615385
0.801587
0
0
0
0
0
0.130293
0
0
0
0
0
0.125
1
0.125
false
0
0.25
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
0
0
0
0
1
0
5b8c98b7a0da2c7b24385ad368e7947606ef9b7d
16,016
py
Python
vaccinator.py
vikas-kundu/vaccinator
b2621f6d3fb41b0405e56226a7ce0559f321e766
[ "MIT" ]
2
2021-05-05T05:07:52.000Z
2021-05-05T22:35:12.000Z
vaccinator.py
vikas-kundu/vaccinator
b2621f6d3fb41b0405e56226a7ce0559f321e766
[ "MIT" ]
null
null
null
vaccinator.py
vikas-kundu/vaccinator
b2621f6d3fb41b0405e56226a7ce0559f321e766
[ "MIT" ]
null
null
null
print(r""" ______ <((((((\\\ / . }\ ;--..--._|} (\ '--/\--' ) \\ | '-' :'| \\ . -==- .-| \\ \.__.' \--._ [\\ __.--| // _/'...
44.612813
682
0.56225
1,924
16,016
4.537942
0.220894
0.021762
0.027259
0.020616
0.265949
0.241439
0.185889
0.169396
0.134692
0.134692
0
0.017021
0.277348
16,016
358
683
44.73743
0.737342
0.024288
0
0.214765
0
0.043624
0.41748
0.021053
0
0
0
0
0
1
0.043624
false
0.030201
0.036913
0
0.161074
0.040268
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
0
0
1
0
5b8db7b0a0b74ffa065a705147027e75e8d0ea2e
3,857
py
Python
opensearch_dsl/function.py
CEHENKLE/opensearch-dsl-py
f004b394f8c81be59a30b4d6841ab69ccbf9c006
[ "Apache-2.0" ]
13
2021-10-16T13:11:57.000Z
2022-02-11T19:13:05.000Z
opensearch_dsl/function.py
CEHENKLE/opensearch-dsl-py
f004b394f8c81be59a30b4d6841ab69ccbf9c006
[ "Apache-2.0" ]
9
2021-10-15T18:40:15.000Z
2022-03-23T21:56:29.000Z
opensearch_dsl/function.py
CEHENKLE/opensearch-dsl-py
f004b394f8c81be59a30b4d6841ab69ccbf9c006
[ "Apache-2.0" ]
8
2021-10-30T13:21:29.000Z
2022-03-29T20:14:40.000Z
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. # # Modifications Copyright OpenSearch Contributors. See # GitHub history for details. # # Licensed to Elasticsearch B.V. under...
30.132813
93
0.651802
499
3,857
4.937876
0.366733
0.017045
0.022727
0.012175
0.158685
0.10349
0.049513
0.049513
0.049513
0.049513
0
0.005183
0.249676
3,857
127
94
30.370079
0.846234
0.380607
0
0.149254
0
0
0.134664
0
0
0
0
0
0
1
0.044776
false
0.029851
0.059701
0
0.462687
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
0
0
1
0
5b8e5f0147dcdda64ded2911f084d79a4acf77e0
3,438
py
Python
apps/purchases/api/serializers.py
mikespux/prov-jewellery-cloud
4bb16b74d4f32eec938e64325c39bb5770ad2848
[ "MIT" ]
1
2020-05-17T22:27:02.000Z
2020-05-17T22:27:02.000Z
apps/purchases/api/serializers.py
antorenge/prov-jewellery-cloud
de09048c7043d970d62d13dba1beac73c42ef281
[ "MIT" ]
7
2020-06-05T18:13:25.000Z
2022-03-11T23:20:21.000Z
apps/purchases/api/serializers.py
mikespux/prov-jewellery-cloud
4bb16b74d4f32eec938e64325c39bb5770ad2848
[ "MIT" ]
null
null
null
""" Purchases API """ from rest_framework import serializers from apps.users.api.serializers import UserSerializer from apps.inventory.api.serializers import InventoryItemSerializer from apps.products.api.serializers import (MaterialSerializer, ProductDesignSerializer) from .....
30.696429
75
0.684991
277
3,438
8.393502
0.314079
0.089462
0.048172
0.117419
0.151828
0.087742
0.042151
0.042151
0
0
0
0.001109
0.213205
3,438
111
76
30.972973
0.85841
0.084642
0
0.242424
0
0
0.133484
0.007757
0
0
0
0
0
1
0
false
0
0.075758
0
0.621212
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
0
0
1
0
5b914dd6bd0c32e0b0e0f9fee38aac8091c15b3b
3,063
py
Python
src/fill_in_forms.py
vicksonzero/webbot
8cdbe655bafae90d390c0f051c799e164d63365e
[ "MIT" ]
null
null
null
src/fill_in_forms.py
vicksonzero/webbot
8cdbe655bafae90d390c0f051c799e164d63365e
[ "MIT" ]
null
null
null
src/fill_in_forms.py
vicksonzero/webbot
8cdbe655bafae90d390c0f051c799e164d63365e
[ "MIT" ]
null
null
null
# Google sheets from __future__ import print_function import httplib2 import os from apiclient import discovery import oauth2client from oauth2client import client from oauth2client import tools try: import argparse flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args() except ImportError: ...
27.106195
75
0.757754
395
3,063
5.726582
0.412658
0.019894
0.01061
0.020336
0.026525
0.026525
0
0
0
0
0
0.00834
0.138753
3,063
112
76
27.348214
0.849128
0.186092
0
0.026316
0
0
0.137414
0.025537
0
0
0
0
0
1
0.039474
false
0
0.184211
0
0.25
0.065789
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
0
0
1
0
5b95d709623e6f9a1a48dbe716470993b1042f83
323
py
Python
pythx/__init__.py
s0b0lev/pythx
c34d81421a2cbea71e60c33245d54fb19b6ad68a
[ "MIT" ]
null
null
null
pythx/__init__.py
s0b0lev/pythx
c34d81421a2cbea71e60c33245d54fb19b6ad68a
[ "MIT" ]
null
null
null
pythx/__init__.py
s0b0lev/pythx
c34d81421a2cbea71e60c33245d54fb19b6ad68a
[ "MIT" ]
null
null
null
"""Top-level package for pythx.""" __author__ = """Dominik Muhs""" __email__ = "dominik.muhs@consensys.net" __version__ = "1.3.2" from pythx.conf import config from pythx.api.client import Client from mythx_models.exceptions import ( MythXBaseException, MythXAPIError, ValidationError, ValidationError,...
21.533333
40
0.736842
37
323
6.081081
0.72973
0.097778
0
0
0
0
0
0
0
0
0
0.010949
0.151703
323
14
41
23.071429
0.810219
0.086687
0
0.181818
0
0
0.148789
0.089965
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
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
0
0
1
0
5b96fe8753e574fd0587ec62d1080f3007e66924
6,882
py
Python
src/main.py
karavik18/Verification-and-Selection-in-Federated-Average
b7a275b6158c9e9d9c16c1e62786558037196306
[ "MIT" ]
null
null
null
src/main.py
karavik18/Verification-and-Selection-in-Federated-Average
b7a275b6158c9e9d9c16c1e62786558037196306
[ "MIT" ]
null
null
null
src/main.py
karavik18/Verification-and-Selection-in-Federated-Average
b7a275b6158c9e9d9c16c1e62786558037196306
[ "MIT" ]
null
null
null
import os import time import copy import random import argparse import numpy as np from PIL import Image from tqdm import tqdm as tq import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.functional as F from torch.utils import data from model_utils import * from data_utils import * from t...
44.115385
297
0.648794
987
6,882
4.372847
0.237082
0.037535
0.070899
0.031279
0.200185
0.145505
0.101019
0.07785
0.060241
0.060241
0
0.010173
0.200087
6,882
155
298
44.4
0.773842
0.021651
0
0.123967
0
0.008264
0.171696
0
0
0
0
0
0
1
0.024793
false
0
0.14876
0
0.190083
0.024793
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
0
0
1
0
5b9bae125e13deb3ca6f4383bdd93263a6ff8361
2,398
py
Python
weather/forecast.py
Shom770/weather_usa
4e925c4eb7fbbc444a27f2969d342335dae5ea83
[ "MIT" ]
null
null
null
weather/forecast.py
Shom770/weather_usa
4e925c4eb7fbbc444a27f2969d342335dae5ea83
[ "MIT" ]
null
null
null
weather/forecast.py
Shom770/weather_usa
4e925c4eb7fbbc444a27f2969d342335dae5ea83
[ "MIT" ]
null
null
null
from __future__ import annotations import asyncio import aiohttp from datetime import datetime class Forecast: def __init__(self, totals: dict, grid_x: int, grid_y: int, cwa: str, city: str, state: str): self.totals = totals self.simplified_dict = {key: '...' for key in totals.keys()} self....
46.115385
103
0.621351
282
2,398
5.131206
0.308511
0.020733
0.01244
0.033172
0.214236
0.163096
0.163096
0.163096
0.163096
0.078784
0
0.00442
0.245204
2,398
52
104
46.115385
0.795028
0.027523
0
0.142857
0
0
0.140524
0.034809
0
0
0
0
0
1
0.071429
false
0
0.095238
0.02381
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5b9d5e37aaae1696ad5a8c3f64abcd5dca15ddbc
1,170
py
Python
bunny.py
querciak/matplotlib-3d
8d361b861f33b1133fcf304a2e397769797ef1d3
[ "BSD-2-Clause" ]
242
2020-03-26T11:36:21.000Z
2022-03-10T01:57:54.000Z
bunny.py
mikepsn/matplotlib-3d
538d514e7fd11843f5a338a52b5887c3f16a9bff
[ "BSD-2-Clause" ]
6
2020-03-30T18:20:09.000Z
2021-01-26T20:16:07.000Z
bunny.py
mikepsn/matplotlib-3d
538d514e7fd11843f5a338a52b5887c3f16a9bff
[ "BSD-2-Clause" ]
31
2020-03-29T01:55:55.000Z
2022-03-29T12:52:14.000Z
# ----------------------------------------------------------------------------- # Copyright (c) 2020 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- # This example shows how to display a mesh # ----------...
36.5625
79
0.486325
133
1,170
4.18797
0.593985
0.014363
0.010772
0
0
0
0
0
0
0
0
0.029116
0.148718
1,170
31
80
37.741935
0.53012
0.387179
0
0
0
0
0.062059
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
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
0
0
1
0
5b9d6d92851d5c526612bcafb989ae5b804d21b9
1,193
py
Python
Backend/resize.py
tfederico/WatsonInnovation
22a7bf28c4a110f2af0d45c77fa7971f3d0f9647
[ "MIT" ]
null
null
null
Backend/resize.py
tfederico/WatsonInnovation
22a7bf28c4a110f2af0d45c77fa7971f3d0f9647
[ "MIT" ]
null
null
null
Backend/resize.py
tfederico/WatsonInnovation
22a7bf28c4a110f2af0d45c77fa7971f3d0f9647
[ "MIT" ]
null
null
null
import os, sys from PIL import Image import argparse from os import listdir from os.path import isfile, join if __name__ == '__main__': maxheigth = 320 maxwidth = 320 parser = argparse.ArgumentParser(description='Cleaning files that are too big.') parser.add_argument('-dir', '--d', help="Directory name...
33.138889
97
0.615256
145
1,193
4.993103
0.482759
0.041436
0.016575
0
0
0
0
0
0
0
0
0.007973
0.26404
1,193
35
98
34.085714
0.816629
0
0
0
0
0
0.100587
0
0
0
0
0
0
1
0
false
0
0.16129
0
0.16129
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
0
0
0
0
0
0
0
0
1
0
5ba08622224ba72fb67b9d3ea638e78dc27e3b06
1,543
py
Python
Solutions/022.py
ruppysuppy/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
70
2021-03-18T05:22:40.000Z
2022-03-30T05:36:50.000Z
Solutions/022.py
ungaro/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
null
null
null
Solutions/022.py
ungaro/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
30
2021-03-18T05:22:43.000Z
2022-03-17T10:25:18.000Z
""" Problem: Given a dictionary of words and a string made up of those words (no spaces), return the original sentence in a list. If there is more than one possible reconstruction, return any of them. If there is no possible reconstruction, then return null. For example, given the set of words 'quick', 'brown', 'the'...
28.574074
87
0.6442
206
1,543
4.68932
0.378641
0.041408
0.066253
0.049689
0.161491
0.076605
0.076605
0.076605
0
0
0
0.00166
0.219054
1,543
53
88
29.113208
0.8
0.438756
0
0.086957
0
0
0.144531
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.173913
0.130435
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
0
0
1
0
5ba1f94b481fd67f37cb2f9937fc57e408770c9f
2,872
py
Python
scripts/jpg_exif_remove/jpg_exif_remove.py
jimholdaway/pythonista
f0621e4043a1c1aa7c37bae363ae0852fb54a1ec
[ "MIT" ]
null
null
null
scripts/jpg_exif_remove/jpg_exif_remove.py
jimholdaway/pythonista
f0621e4043a1c1aa7c37bae363ae0852fb54a1ec
[ "MIT" ]
null
null
null
scripts/jpg_exif_remove/jpg_exif_remove.py
jimholdaway/pythonista
f0621e4043a1c1aa7c37bae363ae0852fb54a1ec
[ "MIT" ]
null
null
null
import sys import argparse import os import piexif from PIL import Image def jpg_exif_remove(args): """ Removes EXIF data from directory of jpeg images whilst preserving image orientation and quality. Parameters ---------- in_dir: string, directory containing jpgs to have EXIF removed, default 'images' out...
31.217391
187
0.69812
425
2,872
4.578824
0.317647
0.017986
0.036999
0.045221
0.184995
0.16444
0.110997
0.067831
0.067831
0.067831
0
0.011202
0.191852
2,872
91
188
31.56044
0.82723
0.230153
0
0
0
0.019608
0.172382
0
0
0
0
0
0
1
0.019608
false
0
0.098039
0
0.117647
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
0
0
0
0
0
0
0
0
1
0
5ba302171ec86e6e932c808425569cf399e3d09e
385
py
Python
boiler/__init__.py
rudineirk/faculdade_boiler
9e796d8c2603f37799fc02dc7bd01827b28164df
[ "MIT" ]
null
null
null
boiler/__init__.py
rudineirk/faculdade_boiler
9e796d8c2603f37799fc02dc7bd01827b28164df
[ "MIT" ]
null
null
null
boiler/__init__.py
rudineirk/faculdade_boiler
9e796d8c2603f37799fc02dc7bd01827b28164df
[ "MIT" ]
null
null
null
from .conn import BoilerConn from .controller import WaterColumnController, WaterTempController from .core import Main from .reader import WaterColumnReader, WaterTempReader __all__ = [ 'BoilerConn', 'WaterColumnController', 'WaterTempController', 'WaterColumnReader', 'WaterTempReader', 'Main',...
20.263158
66
0.716883
32
385
8.25
0.5
0.090909
0.090909
0
0
0
0
0
0
0
0
0
0.184416
385
18
67
21.388889
0.840764
0
0
0
0
0
0.244156
0.054545
0
0
0
0
0
1
0
false
0
0.266667
0
0.266667
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
0
0
1
0
5ba6095505bab7a365504562e670632218328c79
2,462
py
Python
fault_generator.py
Jihaoyun/gem5
c52195e8304b5571008eab050fc9cc38ba91107c
[ "BSD-3-Clause" ]
null
null
null
fault_generator.py
Jihaoyun/gem5
c52195e8304b5571008eab050fc9cc38ba91107c
[ "BSD-3-Clause" ]
null
null
null
fault_generator.py
Jihaoyun/gem5
c52195e8304b5571008eab050fc9cc38ba91107c
[ "BSD-3-Clause" ]
null
null
null
import os import argparse parser = argparse.ArgumentParser(description = 'gem5 with fault injection') parser.add_argument('-log', '--log-file', type = str, dest = 'logFile', help = 'The input file of debug info of Gem5 simulator') parser.add_argument('-in', '--input-fault', type = str, dest = 'faultFile', h...
26.191489
90
0.68156
301
2,462
5.495017
0.299003
0.050786
0.030834
0.054414
0.325272
0.28295
0.28295
0.232164
0.232164
0.232164
0
0.007324
0.168156
2,462
94
91
26.191489
0.800293
0
0
0.333333
0
0
0.096224
0
0
0
0
0
0
1
0.115942
false
0
0.028986
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
0
0
0
0
0
1
0
5ba7b4142e2df3a12d460152b808e2562e69558e
1,362
py
Python
src/testproject/urls.py
DramaFever/sst
63d41a102c9d3bdb54019f28a93cff0314a0214f
[ "Apache-2.0" ]
4
2015-01-21T22:20:50.000Z
2017-12-18T11:38:16.000Z
src/testproject/urls.py
DramaFever/sst
63d41a102c9d3bdb54019f28a93cff0314a0214f
[ "Apache-2.0" ]
63
2015-01-13T19:32:06.000Z
2020-04-22T17:01:03.000Z
src/testproject/urls.py
wbdl/sst
7a2805391fdd390ecb0f488f8377f58381358c89
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import include, patterns from django.conf import settings from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^testproject/', include('...
43.935484
77
0.501468
129
1,362
5.178295
0.325581
0.197605
0.041916
0
0
0
0
0
0
0
0
0.002268
0.352423
1,362
30
78
45.4
0.755102
0.044787
0
0
0
0
0.3151
0.113251
0
0
0
0
0
1
0
false
0
0.173913
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
0
0
0
0
0
1
0
5ba819e5829f91fab4b95f7e26b1d2411684036a
2,017
py
Python
mmxai/interpretability/classification/torchray/extremal_perturbation/torchray_mmf.py
yongkangzzz/mmfgroup
098a78c83e1c2973dc895d1dc7fd30d7d3668143
[ "MIT" ]
null
null
null
mmxai/interpretability/classification/torchray/extremal_perturbation/torchray_mmf.py
yongkangzzz/mmfgroup
098a78c83e1c2973dc895d1dc7fd30d7d3668143
[ "MIT" ]
null
null
null
mmxai/interpretability/classification/torchray/extremal_perturbation/torchray_mmf.py
yongkangzzz/mmfgroup
098a78c83e1c2973dc895d1dc7fd30d7d3668143
[ "MIT" ]
null
null
null
from mmxai.interpretability.classification.torchray.extremal_perturbation.multimodal_extremal_perturbation import * from mmf.models.mmbt import MMBT from mmf.models.fusions import LateFusion from mmf.models.vilbert import ViLBERT from mmf.models.visual_bert import VisualBERT from PIL import Image def torchray_multimo...
46.906977
115
0.531482
196
2,017
5.244898
0.44898
0.064202
0.050584
0
0
0
0
0
0
0
0
0.008251
0.399108
2,017
42
116
48.02381
0.839934
0.074864
0
0
0
0
0.021482
0
0
0
0
0
0
1
0.03125
false
0
0.1875
0
0.25
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ba864287e43b24a6ee51f736ea3dfbb9bf7e4ff
812
py
Python
tests/test_json.py
GarrettMooney/moonpy
8e44f7afa2daccac6f2b2c089f272b95e4ba2945
[ "MIT" ]
null
null
null
tests/test_json.py
GarrettMooney/moonpy
8e44f7afa2daccac6f2b2c089f272b95e4ba2945
[ "MIT" ]
null
null
null
tests/test_json.py
GarrettMooney/moonpy
8e44f7afa2daccac6f2b2c089f272b95e4ba2945
[ "MIT" ]
null
null
null
import pytest from .util import make_tempdir from moonpy.util import json_dumps, read_json def test_json_dumps_sort_keys(data): result = json_dumps(data["data"], sort_keys=True) assert result == data["sorted_file_contents"] def test_read_json_file(data): with make_tempdir({data["file_name"]: data["file...
30.074074
86
0.694581
117
812
4.487179
0.299145
0.091429
0.091429
0.057143
0.464762
0.392381
0.392381
0.392381
0.259048
0.259048
0
0.00152
0.189655
812
26
87
31.230769
0.796353
0
0
0.210526
0
0
0.128079
0.025862
0
0
0
0
0.263158
1
0.157895
false
0
0.157895
0
0.315789
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
0
0
1
0
5ba92f0037540c51b246e7074e898854f1450755
869
py
Python
2016/python/d10.py
eduellery/adventofcode
dccece0bf59bc241803edc99a6536062fe2714d1
[ "MIT" ]
null
null
null
2016/python/d10.py
eduellery/adventofcode
dccece0bf59bc241803edc99a6536062fe2714d1
[ "MIT" ]
null
null
null
2016/python/d10.py
eduellery/adventofcode
dccece0bf59bc241803edc99a6536062fe2714d1
[ "MIT" ]
null
null
null
import re, collections bot = collections.defaultdict(list) output = collections.defaultdict(list) values = open('d10.in').read().splitlines() pipeline = {} for value in values: if value.startswith('value'): n, b = map(int, re.findall(r'-?\d+', value)) bot[b].append(n) elif value.startswith('...
24.138889
59
0.514384
132
869
3.386364
0.409091
0.060403
0.067114
0.067114
0.098434
0.098434
0.098434
0
0
0
0
0.063005
0.287687
869
35
60
24.828571
0.659128
0
0
0
0
0
0.049482
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bab74b4a30cd2de20b8b06675475d7ebf4ce3d0
6,063
py
Python
datasets/synthetic_iam.py
IHR-Nom/Full_Page_Recognition
27899ece69e328e8d40a8cf5214a77a6ab8aef35
[ "Apache-2.0" ]
null
null
null
datasets/synthetic_iam.py
IHR-Nom/Full_Page_Recognition
27899ece69e328e8d40a8cf5214a77a6ab8aef35
[ "Apache-2.0" ]
null
null
null
datasets/synthetic_iam.py
IHR-Nom/Full_Page_Recognition
27899ece69e328e8d40a8cf5214a77a6ab8aef35
[ "Apache-2.0" ]
null
null
null
import glob from torch.utils.data import Dataset import torchvision.transforms.functional as TF import torchvision as tv import xml.etree.ElementTree as ET from PIL import Image import numpy as np import random import os from transformers import BertTokenizer from .utils import nested_tensor_from_tensor_list MAX_D...
36.305389
116
0.61933
821
6,063
4.269184
0.233861
0.043937
0.033381
0.017118
0.154066
0.119829
0.115264
0.076462
0.035378
0
0
0.011328
0.271978
6,063
166
117
36.524096
0.782737
0.002969
0
0
0
0
0.03442
0
0
0
0
0
0
1
0.070313
false
0
0.085938
0.007813
0.234375
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
0
0
1
0
5bac90785ee9d2b6b8dbf64e7b92696ce0bb3f65
1,177
py
Python
idt/factories.py
Bergolfs/idt
22a1d19a42b16a87f9045b45805f82efe34885cf
[ "MIT" ]
null
null
null
idt/factories.py
Bergolfs/idt
22a1d19a42b16a87f9045b45805f82efe34885cf
[ "MIT" ]
null
null
null
idt/factories.py
Bergolfs/idt
22a1d19a42b16a87f9045b45805f82efe34885cf
[ "MIT" ]
null
null
null
from idt.duckgo import DuckGoSearchEngine from idt.bing import BingSearchEngine from idt.bing_api import BingApiSearchEngine from idt.flickr_api import FlickrApiSearchEngine __name__ = "factories" class SearchEngineFactory: def __init__(self,data,n_images,folder,verbose,root_folder,size,engine,api_key): self.data...
37.967742
125
0.776551
166
1,177
5.319277
0.198795
0.11325
0.050963
0.084938
0.344281
0.344281
0.344281
0.344281
0.344281
0.344281
0
0
0.119796
1,177
30
126
39.233333
0.852317
0
0
0
0
0
0.031436
0
0
0
0
0
0
1
0.074074
false
0
0.148148
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
0
0
0
0
0
0
0
1
0
5bae7bbd789ea3ac35f03b0a03ec727ec87d770c
3,075
py
Python
noaa.py
microprediction/windspeed
0ea88079ac8ae8955c4ba5cbcf1cd1aed64beb10
[ "MIT" ]
null
null
null
noaa.py
microprediction/windspeed
0ea88079ac8ae8955c4ba5cbcf1cd1aed64beb10
[ "MIT" ]
null
null
null
noaa.py
microprediction/windspeed
0ea88079ac8ae8955c4ba5cbcf1cd1aed64beb10
[ "MIT" ]
1
2021-12-19T16:25:22.000Z
2021-12-19T16:25:22.000Z
# New video tutorials are available at https://www.microprediction.com/python-1 to help you # get started creating streams (see the 4th module in particular) import logging import urllib import time import pytz import random from datetime import datetime from pprint import pprint from microprediction import MicroWrite...
33.791209
137
0.609431
379
3,075
4.802111
0.430079
0.030769
0.020879
0.023077
0.025275
0.025275
0
0
0
0
0
0.040609
0.295285
3,075
90
138
34.166667
0.799262
0.145366
0
0.057971
0
0.014493
0.129353
0
0
0
0
0
0.014493
1
0.043478
false
0
0.130435
0
0.217391
0.028986
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
0
0
1
0
5bb1e0e67d45581de03559a2275a7b5ca7ba495a
3,384
py
Python
shfl/data_base/data_base.py
joarreg/Sherpa.ai-Federated-Learning-Framework
9da392bf71c9acf13761dde0f119622c62780c87
[ "Apache-2.0" ]
2
2021-11-14T12:04:39.000Z
2022-01-03T16:03:36.000Z
shfl/data_base/data_base.py
joarreg/Sherpa.ai-Federated-Learning-Framework
9da392bf71c9acf13761dde0f119622c62780c87
[ "Apache-2.0" ]
null
null
null
shfl/data_base/data_base.py
joarreg/Sherpa.ai-Federated-Learning-Framework
9da392bf71c9acf13761dde0f119622c62780c87
[ "Apache-2.0" ]
1
2022-01-19T16:29:46.000Z
2022-01-19T16:29:46.000Z
import abc import numpy as np def split_train_test(data, labels, dim): """ Method that randomly choose the train and test sets from data and labels. # Arguments: data: Numpy matrix with data for extract the validation data labels: Numpy array with labels dim: Size for validation d...
28.677966
109
0.649232
423
3,384
4.959811
0.208038
0.064347
0.050048
0.040515
0.260725
0.177788
0.074357
0.074357
0.051478
0.051478
0
0.002816
0.265366
3,384
117
110
28.923077
0.84111
0.368794
0
0.16
0
0
0
0
0
0
0
0
0
1
0.18
false
0
0.04
0.06
0.36
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
0
0
1
0
5bb2c6977e580018666f892e53fb97c55744bde7
26,945
py
Python
ontomatch/matcher_lib.py
RogerTangos/aurum_debug
fa3afd96c795e9b674a5951430635d43aa3f5c78
[ "MIT" ]
null
null
null
ontomatch/matcher_lib.py
RogerTangos/aurum_debug
fa3afd96c795e9b674a5951430635d43aa3f5c78
[ "MIT" ]
6
2020-06-05T17:52:29.000Z
2021-06-10T19:44:58.000Z
ontomatch/matcher_lib.py
RogerTangos/aurum_debug
fa3afd96c795e9b674a5951430635d43aa3f5c78
[ "MIT" ]
null
null
null
from enum import Enum import time from collections import defaultdict from nltk.corpus import stopwords from dataanalysis import nlp_utils as nlp from ontomatch import glove_api from ontomatch import ss_utils as SS from datasketch import MinHash, MinHashLSH from knowledgerepr.networkbuilder import LSHRandomProjectionsI...
40.825758
128
0.618148
3,401
26,945
4.598941
0.097912
0.040279
0.029538
0.020459
0.689981
0.649575
0.629435
0.616329
0.589732
0.530145
0
0.011198
0.284134
26,945
659
129
40.887709
0.799679
0.070069
0
0.555777
0
0
0.021567
0
0
0
0
0.001517
0
1
0.037849
false
0
0.023904
0.001992
0.111554
0.01992
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
0
0
1
0
5bb3cf7dfd698c8727e5eccdcdcd702e3c271a0e
3,034
py
Python
details/details/spiders/truyenqq.py
mantranit/vncomics-server
bcf5a45975e393162c9b44daf8c620b6b73292b3
[ "MIT" ]
null
null
null
details/details/spiders/truyenqq.py
mantranit/vncomics-server
bcf5a45975e393162c9b44daf8c620b6b73292b3
[ "MIT" ]
null
null
null
details/details/spiders/truyenqq.py
mantranit/vncomics-server
bcf5a45975e393162c9b44daf8c620b6b73292b3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy import requests import pymongo import time import re from datetime import datetime from details.items import DetailsItem class TruyenqqSpider(scrapy.Spider): name = 'truyenqq' # allowed_domains = ['truyenqq.com'] # start_urls = ['http://truyenqq.com/'] client = py...
35.27907
131
0.575808
351
3,034
4.860399
0.356125
0.032825
0.061547
0.09027
0.290152
0.257327
0.239156
0.239156
0.19578
0.146542
0
0.013432
0.288398
3,034
85
132
35.694118
0.776748
0.033949
0
0.173913
0
0.028986
0.185578
0.050239
0
0
0
0
0
1
0.043478
false
0.043478
0.101449
0
0.246377
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
0
0
1
0
5bb4934e053b5ee79225aaffff2965e5f1acee34
1,902
py
Python
apps/article/views/pages/category.py
codelieche/codelieche.com
8f18a9f4064af81a6dd0203fbaa138565065fff5
[ "MIT" ]
2
2017-06-11T16:41:48.000Z
2017-06-14T00:32:27.000Z
apps/article/views/pages/category.py
codelieche/codelieche.com
8f18a9f4064af81a6dd0203fbaa138565065fff5
[ "MIT" ]
13
2020-02-11T21:33:40.000Z
2022-03-11T23:12:16.000Z
apps/article/views/pages/category.py
codelieche/codelieche.com
8f18a9f4064af81a6dd0203fbaa138565065fff5
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from django.shortcuts import get_object_or_404, render from django.views.generic import View from django.core.paginator import Paginator from article.models import Category, Post from article.utils import get_page_num_list class ArticleListView(View): """ 分类文章列表View """ def get...
31.7
76
0.615668
215
1,902
5.186047
0.381395
0.056502
0.049327
0.059193
0.283408
0.269058
0.269058
0.269058
0.269058
0.269058
0
0.011244
0.298633
1,902
59
77
32.237288
0.824588
0.154048
0
0.228571
0
0
0.034766
0
0
0
0
0
0
1
0.028571
false
0
0.142857
0
0.228571
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
0
0
1
0
5bb7dcb6bea70b57e941c03e794281139890eb69
5,739
py
Python
app/app.py
nepworldwide/nepms-zendesk-stats
7bed10e65b2b6f6d4d1dbbf0c79a0e716d87d517
[ "MIT" ]
null
null
null
app/app.py
nepworldwide/nepms-zendesk-stats
7bed10e65b2b6f6d4d1dbbf0c79a0e716d87d517
[ "MIT" ]
null
null
null
app/app.py
nepworldwide/nepms-zendesk-stats
7bed10e65b2b6f6d4d1dbbf0c79a0e716d87d517
[ "MIT" ]
null
null
null
import argparse import yaml import logging import os import sys import time from schema import Schema, SchemaError import requests from prometheus_client import CollectorRegistry, Gauge, push_to_gateway from apscheduler.schedulers.background import BlockingScheduler class Config(object): def __init__(self): ...
33.758824
112
0.605855
653
5,739
5.136294
0.249617
0.050388
0.059034
0.015206
0.051282
0.019678
0.019678
0
0
0
0
0
0.282628
5,739
169
113
33.95858
0.814671
0.025614
0
0.058394
0
0
0.228551
0.019165
0
0
0
0
0
1
0.072993
false
0
0.072993
0.007299
0.19708
0.007299
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
0
0
1
0
5bb9142eb89bd3dd107533c878c67b880a33eb33
501
py
Python
mongodb/webScrapper/courseFilter.py
ISHITA006/STARS-Course-Registration-Application
a7a208f5b7e3aa4b4f652bf2b6432b038b76c346
[ "MIT" ]
1
2022-02-16T08:25:53.000Z
2022-02-16T08:25:53.000Z
mongodb/webScrapper/courseFilter.py
ISHITA006/STARS-Course-Registration-Application
a7a208f5b7e3aa4b4f652bf2b6432b038b76c346
[ "MIT" ]
null
null
null
mongodb/webScrapper/courseFilter.py
ISHITA006/STARS-Course-Registration-Application
a7a208f5b7e3aa4b4f652bf2b6432b038b76c346
[ "MIT" ]
null
null
null
import json import os f = open('ntu_mods.json', "r") mod_json = json.loads(f.read()) filtered_dict = {} count = 0 for course in mod_json['COURSES']: if "CE" in course['COURSE']: filtered_dict = course count += 1 path = os.path.abspath("./courses/" + course['COURSE'] + ".json") with...
25.05
73
0.590818
66
501
4.378788
0.5
0.16609
0
0
0
0
0
0
0
0
0
0.005376
0.257485
501
19
74
26.368421
0.771505
0
0
0.125
0
0
0.161677
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.0625
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
0
0
1
0
5bbc03dd34b0d6ae5babb01f31f01fe13fbcb7bf
2,545
py
Python
graphs/models/vgg.py
bigdata-inha/Rethinking_network_pruning
d68dfeb6d31f5fee2f066ceec92bcb24867de345
[ "MIT" ]
null
null
null
graphs/models/vgg.py
bigdata-inha/Rethinking_network_pruning
d68dfeb6d31f5fee2f066ceec92bcb24867de345
[ "MIT" ]
2
2020-12-04T07:28:01.000Z
2022-02-27T03:07:59.000Z
graphs/models/vgg.py
bigdata-inha/Rethinking_network_pruning
d68dfeb6d31f5fee2f066ceec92bcb24867de345
[ "MIT" ]
null
null
null
"""VGG11/13/16/19 in Pytorch.""" import torch import torch.nn as nn cfg = { 'VGG11': [64, 'M', 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'VGG13': [64, 64, 'M', 128, 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'VGG16': [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 'M', 512, 512, 512,...
37.985075
117
0.539882
349
2,545
3.790831
0.246418
0.063492
0.042328
0.030234
0.322751
0.29932
0.281179
0.195011
0.188964
0.157218
0
0.116883
0.304126
2,545
66
118
38.560606
0.630152
0.010216
0
0.160714
0
0
0.022682
0
0
0
0
0
0
1
0.089286
false
0
0.035714
0.017857
0.196429
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
0
0
1
0
5bbce0ad3c838fa381d3b09478b10889eda211b9
841
py
Python
interfaces/func_description.py
hriener/party-elli
e7636a8045a46cd988a3a05b4b888577afb97708
[ "MIT" ]
9
2016-04-04T07:13:02.000Z
2021-11-08T12:15:33.000Z
interfaces/func_description.py
hriener/party-elli
e7636a8045a46cd988a3a05b4b888577afb97708
[ "MIT" ]
1
2020-04-12T18:44:26.000Z
2020-04-12T18:44:26.000Z
interfaces/func_description.py
hriener/party-elli
e7636a8045a46cd988a3a05b4b888577afb97708
[ "MIT" ]
2
2019-02-25T13:54:55.000Z
2020-04-07T14:00:36.000Z
from typing import Dict class FuncDesc: def __init__(self, func_name:str, type_by_arg:Dict[str, str], output_ty:str): self.name = func_name self.output_ty = output_ty self.ordered_argname_type_pairs = sorted(list(type_by_arg.items()), ...
28.033333
77
0.546968
99
841
4.222222
0.393939
0.083732
0.043062
0.105263
0.129187
0
0
0
0
0
0
0.001832
0.350773
841
29
78
29
0.763736
0
0
0
0
0
0.059453
0
0
0
0
0
0
1
0.173913
false
0
0.043478
0.086957
0.478261
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
0
0
1
0
5bbd5acd96c506ff895add5fd69efd97917904ed
1,001
py
Python
github/delete/collaborator/src/formula/formula.py
rogerio-ignacio-developer/formulas-github
12cf7401f31e4a6212289b839c02de1d612c8271
[ "Apache-2.0" ]
32
2021-01-27T17:43:23.000Z
2022-03-23T18:00:41.000Z
github/delete/collaborator/src/formula/formula.py
rogerio-ignacio-developer/formulas-github
12cf7401f31e4a6212289b839c02de1d612c8271
[ "Apache-2.0" ]
12
2021-01-26T18:14:59.000Z
2021-10-04T12:24:41.000Z
github/delete/collaborator/src/formula/formula.py
rogerio-ignacio-developer/formulas-github
12cf7401f31e4a6212289b839c02de1d612c8271
[ "Apache-2.0" ]
11
2021-01-28T13:54:24.000Z
2022-03-16T12:16:27.000Z
#!/usr/bin/python3 import requests import json def run(token, username, repository, collaborator): url = f"https://api.github.com/repos/{username}/{repository}/collaborators/{collaborator}" authorization = f"token {token}" headers = { "Accept": "application/vnd.github.v3+json", "Authoriza...
27.805556
144
0.613387
118
1,001
5.211864
0.440678
0.039024
0.042276
0.065041
0.247154
0.100813
0
0
0
0
0
0.067568
0.260739
1,001
35
145
28.6
0.758108
0.016983
0
0.24
0
0.08
0.427263
0.144456
0
0
0
0
0
1
0.04
false
0
0.08
0
0.12
0.16
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
0
0
1
0
5bbd63f55e42c79ca4727c69d8e64efe299a4827
1,281
py
Python
simulator/src/files/util.py
larashores/burridgeknopoffsimulator
2201b266f8fde00325dc0321acc6aa3f3e2c66f8
[ "MIT" ]
1
2019-05-16T12:50:03.000Z
2019-05-16T12:50:03.000Z
simulator/src/files/util.py
vinceshores/burridgeknopoffsimulator
2201b266f8fde00325dc0321acc6aa3f3e2c66f8
[ "MIT" ]
null
null
null
simulator/src/files/util.py
vinceshores/burridgeknopoffsimulator
2201b266f8fde00325dc0321acc6aa3f3e2c66f8
[ "MIT" ]
1
2021-03-02T14:44:36.000Z
2021-03-02T14:44:36.000Z
from files.datafile import DataFile import glob import os import sys def read_data(file_name): with open(file_name, 'rb') as file: data, index = DataFile.from_bytes(bytearray(file.read())) return data.get() def write_data(file_name, data): data_file = DataFile() data_file.set(type(data)...
25.62
65
0.571429
179
1,281
3.96648
0.385475
0.016901
0.042254
0.04507
0.222535
0.222535
0.222535
0.222535
0.222535
0.222535
0
0.004334
0.279469
1,281
49
66
26.142857
0.764897
0
0
0.210526
0
0
0.153005
0.035129
0
0
0
0
0
1
0.131579
false
0
0.105263
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bbdc792215a8ce6952b1d5568327d6cf71b3813
845
py
Python
pir.py
lionyhw/PlanetX_MicroPython
0bcbb637be9971260c32846acec3ecbd60df647c
[ "MIT" ]
2
2020-08-06T07:32:57.000Z
2022-02-11T02:37:21.000Z
pir.py
lionyhw/PlanetX_MicroPython
0bcbb637be9971260c32846acec3ecbd60df647c
[ "MIT" ]
null
null
null
pir.py
lionyhw/PlanetX_MicroPython
0bcbb637be9971260c32846acec3ecbd60df647c
[ "MIT" ]
1
2021-09-11T02:34:39.000Z
2021-09-11T02:34:39.000Z
from microbit import * from enum import * class PIR(object): """基本描述 人体红外检测, 运动检测 Args: RJ_pin (pin): 连接端口 """ def __init__(self, RJ_pin): if RJ_pin == J1: self.__pin = pin8 elif RJ_pin == J2: self.__pin = pin12 elif RJ_pin == J3: ...
17.978723
42
0.504142
94
845
4.180851
0.531915
0.076336
0.068702
0
0
0
0
0
0
0
0
0.023622
0.398817
845
46
43
18.369565
0.75
0.128994
0
0.083333
0
0
0.011887
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.291667
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
0
0
1
0
5bbe9f7c8be6cfdb5c273cc5d3e55754436428fd
390
py
Python
hive_gns/engine/pruner.py
imwatsi/hive-gns
c2b29b19245381af8ad0c055c0f0c14f331d5c10
[ "MIT" ]
null
null
null
hive_gns/engine/pruner.py
imwatsi/hive-gns
c2b29b19245381af8ad0c055c0f0c14f331d5c10
[ "MIT" ]
null
null
null
hive_gns/engine/pruner.py
imwatsi/hive-gns
c2b29b19245381af8ad0c055c0f0c14f331d5c10
[ "MIT" ]
null
null
null
import time from hive_gns.database.access import delete class Pruner: @classmethod def delete_old_ops(cls): sql = f""" DELETE FROM gns.ops WHERE created <= NOW() - INTERVAL '30 DAYS'; """ return delete(sql) @classmethod def run_pruner(cls): whi...
19.5
56
0.561538
46
390
4.630435
0.630435
0.131455
0.112676
0
0
0
0
0
0
0
0
0.019608
0.346154
390
19
57
20.526316
0.815686
0
0
0.133333
0
0
0.251282
0
0
0
0
0
0
1
0.133333
false
0
0.133333
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
0
0
0
0
1
0
5bc01949d492a259d48585f6c5cb445301f6248e
7,604
py
Python
examples/example_sim_grad_bounce.py
NVIDIA/warp
fc7d3255435fc2fe6b54300e689f74e6d67418ca
[ "CNRI-Python-GPL-Compatible", "Unlicense", "0BSD", "Apache-2.0", "MIT" ]
306
2022-03-21T23:24:13.000Z
2022-03-31T21:11:28.000Z
examples/example_sim_grad_bounce.py
NVIDIA/warp
fc7d3255435fc2fe6b54300e689f74e6d67418ca
[ "CNRI-Python-GPL-Compatible", "Unlicense", "0BSD", "Apache-2.0", "MIT" ]
11
2022-03-23T06:23:25.000Z
2022-03-31T22:17:18.000Z
examples/example_sim_grad_bounce.py
NVIDIA/warp
fc7d3255435fc2fe6b54300e689f74e6d67418ca
[ "CNRI-Python-GPL-Compatible", "Unlicense", "0BSD", "Apache-2.0", "MIT" ]
18
2022-03-22T16:27:21.000Z
2022-03-30T20:07:47.000Z
# Copyright (c) 2022 NVIDIA CORPORATION. All rights reserved. # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and relate...
28.912548
161
0.574303
1,011
7,604
4.195846
0.256182
0.035361
0.018152
0.015559
0.218293
0.137199
0.126827
0.07025
0.057049
0.057049
0
0.023117
0.294582
7,604
263
162
28.912548
0.767711
0.166491
0
0.2
0
0
0.036893
0.005688
0
0
0
0
0
1
0.059259
false
0
0.037037
0
0.192593
0.044444
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
0
0
1
0
5bc51f065eb8ca85aa842d7f3d633a1dccfbb3b5
18,655
py
Python
learning/optimize/linesearch.py
JustinLovinger/learning
895b5d91509f1bf3da64f804dc346aecbfec853c
[ "MIT" ]
6
2017-09-15T20:54:14.000Z
2021-05-07T21:32:43.000Z
learning/optimize/linesearch.py
JustinLovinger/learning
895b5d91509f1bf3da64f804dc346aecbfec853c
[ "MIT" ]
null
null
null
learning/optimize/linesearch.py
JustinLovinger/learning
895b5d91509f1bf3da64f804dc346aecbfec853c
[ "MIT" ]
5
2017-09-20T17:39:41.000Z
2020-05-03T23:24:43.000Z
############################################################################### # The MIT License (MIT) # # Copyright (c) 2017 Justin Lovinger # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Softwar...
40.032189
96
0.633021
2,639
18,655
4.214096
0.15953
0.082007
0.01079
0.017265
0.510296
0.466595
0.399694
0.370201
0.357162
0.355274
0
0.010953
0.285446
18,655
465
97
40.11828
0.823331
0.498633
0
0.321429
0
0
0.047771
0.006046
0
0
0
0.004301
0.017857
1
0.107143
false
0.005952
0.02381
0
0.261905
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
0
0
1
0
5bc67afba8ed5dc9591c0f85d1fe2b5abb56dd2e
546
py
Python
drivers/ssd1351/test128_row.py
IhorNehrutsa/micropython-nano-gui
4ef0e20da27ef7c0b5c34136dcb372200f0e5e66
[ "MIT" ]
198
2018-08-31T22:30:28.000Z
2022-03-27T14:21:36.000Z
drivers/ssd1351/test128_row.py
IhorNehrutsa/micropython-nano-gui
4ef0e20da27ef7c0b5c34136dcb372200f0e5e66
[ "MIT" ]
24
2018-10-01T23:44:25.000Z
2022-01-08T09:05:14.000Z
drivers/ssd1351/test128_row.py
IhorNehrutsa/micropython-nano-gui
4ef0e20da27ef7c0b5c34136dcb372200f0e5e66
[ "MIT" ]
44
2018-09-30T02:09:56.000Z
2022-03-25T07:37:36.000Z
# test128_row.py Test for device driver on 96 row display import machine from ssd1351 import SSD1351 as SSD # Initialise hardware def setup(): pdc = machine.Pin('X1', machine.Pin.OUT_PP, value=0) pcs = machine.Pin('X2', machine.Pin.OUT_PP, value=1) prst = machine.Pin('X3', machine.Pin.OUT_PP, value=1) ...
28.736842
63
0.664835
98
546
3.663265
0.459184
0.167131
0.108635
0.125348
0.172702
0.116992
0
0
0
0
0
0.100897
0.18315
546
18
64
30.333333
0.704036
0.184982
0
0
0
0
0.013605
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5bca10654ae55fb2d3ea1b8dd68b0e38ebec9051
2,202
py
Python
sw/3rd_party/VTK-7.1.0/Filters/Points/Testing/Python/TestExtractPoints.py
esean/stl_voro_fill
c569a4019ff80afbf85482c7193711ea85a7cafb
[ "MIT" ]
4
2019-05-30T01:52:12.000Z
2021-09-29T21:12:13.000Z
sw/3rd_party/VTK-7.1.0/Filters/Points/Testing/Python/TestExtractPoints.py
esean/stl_voro_fill
c569a4019ff80afbf85482c7193711ea85a7cafb
[ "MIT" ]
null
null
null
sw/3rd_party/VTK-7.1.0/Filters/Points/Testing/Python/TestExtractPoints.py
esean/stl_voro_fill
c569a4019ff80afbf85482c7193711ea85a7cafb
[ "MIT" ]
2
2019-08-30T23:36:13.000Z
2019-11-08T16:52:01.000Z
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Interpolate onto a volume # Parameters for debugging NPts = 1000000 math = vtk.vtkMath() math.RandomSeed(31415) # create pipeline # points = vtk.vtkBoundedPointSour...
23.934783
75
0.752044
250
2,202
6.616
0.48
0.003628
0.003628
0
0
0
0
0
0
0
0
0.027763
0.133061
2,202
91
76
24.197802
0.838659
0.161671
0
0
0
0
0.046605
0
0
0
0
0
0
1
0
false
0
0.054545
0
0.054545
0.054545
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
0
0
1
0
5bcd24af92ff2049a8f1702bee4c476fb75c0379
3,381
py
Python
generator/functions/make_keyword_wordart.py
niyazed/wordify
bc927947476568544cd79d05e0a2ea007e3de2d0
[ "MIT" ]
2
2020-05-18T21:33:55.000Z
2021-03-11T17:38:37.000Z
generator/functions/make_keyword_wordart.py
niyazed/wordify
bc927947476568544cd79d05e0a2ea007e3de2d0
[ "MIT" ]
8
2020-02-14T02:26:41.000Z
2021-09-22T18:32:00.000Z
generator/functions/make_keyword_wordart.py
niyazed/wordify
bc927947476568544cd79d05e0a2ea007e3de2d0
[ "MIT" ]
null
null
null
import nltk from nltk import word_tokenize import string from nltk.stem import WordNetLemmatizer from wordcloud import WordCloud, STOPWORDS #nltk.download('punkt') #nltk.download('averaged_perceptron_tagger') #nltk.download('wordnet') class generate: def __init__(self, text): self.text = text def...
28.411765
139
0.597456
411
3,381
4.756691
0.3309
0.036829
0.027621
0.016368
0.185166
0.185166
0.142199
0.142199
0.090026
0
0
0.007137
0.295475
3,381
118
140
28.652542
0.813602
0.147294
0
0.108108
0
0
0.021262
0
0
0
0
0
0
1
0.067568
false
0
0.067568
0
0.162162
0.027027
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
0
0
1
0
5bd0c05ae4e8061d76b12526917129097eb9bc66
1,037
py
Python
filebrowser/utils.py
albadrun/django-filebrowser-no-grappelli-no-pillow
5c85efae5b5bd934b6d71582a3f0c6efe01979d6
[ "BSD-3-Clause" ]
null
null
null
filebrowser/utils.py
albadrun/django-filebrowser-no-grappelli-no-pillow
5c85efae5b5bd934b6d71582a3f0c6efe01979d6
[ "BSD-3-Clause" ]
null
null
null
filebrowser/utils.py
albadrun/django-filebrowser-no-grappelli-no-pillow
5c85efae5b5bd934b6d71582a3f0c6efe01979d6
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import re import os import unicodedata import math import six from django.utils.module_loading import import_string from filebrowser.settings import NORMALIZE_FILENAME, CONVERT_FILENAME def convert_filename(value): """ Convert Filename. """ if NORMALIZE_FILENAME: chunks = v...
22.06383
69
0.600771
125
1,037
4.904
0.456
0.097879
0.068516
0
0
0
0
0
0
0
0
0.004016
0.279653
1,037
46
70
22.543478
0.8166
0.030858
0
0.064516
0
0
0.031345
0
0
0
0
0
0
1
0.064516
false
0
0.225806
0
0.419355
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
0
0
1
0
5bd19aef2b594e4beb08b1c61935213131c03545
1,985
py
Python
tests/cte.py
Airleaf/traffic-sim
ff7acaefe7ef8c73d0f032ecad18947ad46da146
[ "Apache-2.0" ]
null
null
null
tests/cte.py
Airleaf/traffic-sim
ff7acaefe7ef8c73d0f032ecad18947ad46da146
[ "Apache-2.0" ]
8
2021-02-13T15:11:58.000Z
2021-02-15T17:39:00.000Z
tests/cte.py
Airleaf/traffic-sim
ff7acaefe7ef8c73d0f032ecad18947ad46da146
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # # This script is used for custom compilation scripts with selected # modules in order to achieve a selected enviroment for the running # code. This is done using the test.json file located in every test. # # The first argument is the name of the test enviroment, being the # folder name where test....
24.8125
88
0.611083
298
1,985
3.969799
0.379195
0.047337
0.040575
0.021978
0.113271
0.113271
0.113271
0.067625
0.067625
0.067625
0
0.000666
0.243829
1,985
79
89
25.126582
0.787475
0.240302
0
0.047619
0
0
0.309396
0.030872
0
0
0
0
0
1
0.047619
false
0
0.071429
0
0.119048
0.02381
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
0
0
1
0
5bd351c81bdbf7b0fc4d0428569a34e08fce0261
1,512
py
Python
main.py
abhilasharevur/ospin-promotion
e7814e6f2c745af250ba65ac0ab051af8ad4925c
[ "MIT" ]
null
null
null
main.py
abhilasharevur/ospin-promotion
e7814e6f2c745af250ba65ac0ab051af8ad4925c
[ "MIT" ]
null
null
null
main.py
abhilasharevur/ospin-promotion
e7814e6f2c745af250ba65ac0ab051af8ad4925c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os.path import argparse from src.app import main as app_main def run(): parser = argparse.ArgumentParser() # command line arguments parser.add_argument( "--input-path", help="Absolute path to input directory where .csv files reside", # nargs="+", ...
24
75
0.64418
196
1,512
4.729592
0.336735
0.084142
0.055016
0.04315
0.243797
0.196332
0.196332
0.196332
0.196332
0.196332
0
0.000883
0.251323
1,512
62
76
24.387097
0.818021
0.03373
0
0.204545
0
0
0.216735
0
0
0
0
0
0
1
0.068182
false
0
0.068182
0
0.227273
0.068182
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
0
0
1
0
5bd3f111c1e1343f5f5a3b4a6545c2bf77669071
8,310
py
Python
piston/wallet.py
faddat/piston
13459d720453090360ea5acace62bb40f8671d7c
[ "MIT" ]
null
null
null
piston/wallet.py
faddat/piston
13459d720453090360ea5acace62bb40f8671d7c
[ "MIT" ]
null
null
null
piston/wallet.py
faddat/piston
13459d720453090360ea5acace62bb40f8671d7c
[ "MIT" ]
null
null
null
import os import json import base64 import hashlib from Crypto import Random from Crypto.Cipher import AES from steembase import PrivateKey from appdirs import user_data_dir import logging log = logging.getLogger(__name__) appname = "piston" appauthor = "Fabian Schuh" walletFile = "wallet.dat" prefix = "STM" # prefix ...
31.83908
105
0.530806
911
8,310
4.760703
0.243688
0.036892
0.01614
0.015679
0.307125
0.290523
0.237261
0.193221
0.193221
0.193221
0
0.005722
0.369073
8,310
260
106
31.961538
0.821476
0.032371
0
0.401826
0
0
0.068338
0
0
0
0
0
0
1
0.127854
false
0.045662
0.045662
0.022831
0.342466
0.018265
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
0
0
1
0