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
04dc2b56346a0029e3867882b541bc4c488cd002
12,578
py
Python
script.module.saltsrd.shared/lib/kodi.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:37:15.000Z
2019-03-05T09:37:15.000Z
script.module.saltsrd.shared/lib/kodi.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
script.module.saltsrd.shared/lib/kodi.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
""" Salts RD Lite shared module Copyright (C) 2016 creits -2- tknorris This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any...
35.430986
139
0.63134
1,561
12,578
4.950673
0.213965
0.013975
0.025233
0.014234
0.290502
0.259964
0.242365
0.219332
0.179865
0.155797
0
0.012488
0.255128
12,578
354
140
35.531073
0.81236
0.062649
0
0.26259
0
0
0.054717
0.015767
0
0
0
0
0
1
0.158273
false
0
0.046763
0.039568
0.363309
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
04dc6f790341edc14815fce9aa1146cef3491bdc
11,554
py
Python
data/aicharacter.py
kennethsinder/exit-dash-hyperion
d44ea77ef5e8a6ce9490e3f802636da5b44e6e74
[ "MIT" ]
2
2018-01-29T14:34:51.000Z
2020-10-20T23:30:26.000Z
data/aicharacter.py
kennethsinder/exit-dash-hyperion
d44ea77ef5e8a6ce9490e3f802636da5b44e6e74
[ "MIT" ]
null
null
null
data/aicharacter.py
kennethsinder/exit-dash-hyperion
d44ea77ef5e8a6ce9490e3f802636da5b44e6e74
[ "MIT" ]
null
null
null
# coding=utf-8 from random import randint import pygame, math from character import * class AICharacter(Character): def __init__(self, x, y, Vx, Vy, properties=('slime', -1, -1)): # Properties should be a tuple of the form (STRING mobName, INT leftLimit, # INT rightLimit) where leftLimit ...
49.587983
131
0.552017
1,323
11,554
4.785336
0.176115
0.028432
0.042647
0.062549
0.380351
0.304375
0.26931
0.232823
0.213236
0.138051
0
0.020906
0.283798
11,554
232
132
49.801724
0.744169
0.127402
0
0.059172
0
0
0.057056
0
0
0
0
0
0
1
0.029586
false
0
0.017751
0.005917
0.065089
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
04dd4054cf822a4ba24699d6faff9a798c1077f5
360
py
Python
py_elasticinfra/metrics/cpu_load.py
NullConvergence/py_metrics
fa58959591a1a4ee90cb4145acd4ed5f9f6c3b8a
[ "MIT" ]
null
null
null
py_elasticinfra/metrics/cpu_load.py
NullConvergence/py_metrics
fa58959591a1a4ee90cb4145acd4ed5f9f6c3b8a
[ "MIT" ]
null
null
null
py_elasticinfra/metrics/cpu_load.py
NullConvergence/py_metrics
fa58959591a1a4ee90cb4145acd4ed5f9f6c3b8a
[ "MIT" ]
null
null
null
import psutil from .base import BaseMetric class CpuLoad(BaseMetric): def __init__(self): pass def measure(self): load = psutil.cpu_percent() cpu_threads = psutil.cpu_percent(percpu=True) return {'cpu_load_average': load, 'cpu_load_threads': cpu_threads} d...
21.176471
53
0.630556
43
360
4.976744
0.511628
0.084112
0.149533
0
0
0
0
0
0
0
0
0
0.277778
360
16
54
22.5
0.823077
0
0
0
0
0
0.097222
0
0
0
0
0
0
1
0.25
false
0.083333
0.166667
0.083333
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
04df5ace15ecf002b804beff354c72b4b1d3aca6
6,157
py
Python
Basics_DataTypes/Sets.py
sudipkrk/Python_from_Scratch
2b414fd3d8c9694db50c61baaf424e945fbe35aa
[ "MIT" ]
1
2021-07-19T10:07:59.000Z
2021-07-19T10:07:59.000Z
Basics_DataTypes/Sets.py
sudipkrk/Python_from_Scratch
2b414fd3d8c9694db50c61baaf424e945fbe35aa
[ "MIT" ]
null
null
null
Basics_DataTypes/Sets.py
sudipkrk/Python_from_Scratch
2b414fd3d8c9694db50c61baaf424e945fbe35aa
[ "MIT" ]
null
null
null
#@ Sets : used to store multiple items in a single variable. #@ These are immutable, unordered and unindexed. And duplicates are not allowed in sets. #@ Use the curly brackets -> {} to create a set #@ set can be of any data type #@ Examples myset = {'apple', 'banana', 'orange'} # Cre...
66.204301
160
0.436414
656
6,157
4.085366
0.240854
0.031343
0.033955
0.038806
0.118657
0.084328
0.065672
0.065672
0.041791
0.041791
0
0.0143
0.500244
6,157
92
161
66.923913
0.856679
0.42878
0
0.339286
0
0
0.037714
0
0
0
0
0
0
1
0
false
0
0
0
0
0.357143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
04e078577ead750421a7020ed8aeebb5726ef2c5
2,181
py
Python
HotPotato/hot_potato.py
caternuson/CircuitPython-Demos
cffb226750614caed5368d7ca31c06be321f54d8
[ "MIT" ]
null
null
null
HotPotato/hot_potato.py
caternuson/CircuitPython-Demos
cffb226750614caed5368d7ca31c06be321f54d8
[ "MIT" ]
null
null
null
HotPotato/hot_potato.py
caternuson/CircuitPython-Demos
cffb226750614caed5368d7ca31c06be321f54d8
[ "MIT" ]
null
null
null
# Circuit Playground Express Hot Potato # # Author: Carter Nelson # MIT License (https://opensource.org/licenses/MIT) import time import random import math import board from analogio import AnalogIn from adafruit_circuitplayground.express import cpx # This brings in the song to play import melody number_of_notes = len...
23.967033
76
0.600642
311
2,181
4.096463
0.37299
0.037677
0.054945
0.040031
0.105965
0.105965
0.105965
0.105965
0.065934
0
0
0.046154
0.314535
2,181
91
77
23.967033
0.80602
0.220083
0
0.037037
0
0
0
0
0
0
0.009524
0
0
1
0.018519
false
0.018519
0.12963
0
0.166667
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
04e099a4d954a7885dde4b77c5a8e0d2e91b8314
1,107
py
Python
optuna/pruners/__init__.py
captain-pool/optuna
2ae8c17afea54362460320870304c763e91c0596
[ "MIT" ]
4,950
2019-11-15T07:35:51.000Z
2022-03-31T10:32:42.000Z
optuna/pruners/__init__.py
SCUTJcfeng/optuna
9331374a2460da067a6922e4ea09dd4706f3d950
[ "MIT" ]
2,490
2019-11-15T07:06:20.000Z
2022-03-31T23:52:45.000Z
optuna/pruners/__init__.py
SCUTJcfeng/optuna
9331374a2460da067a6922e4ea09dd4706f3d950
[ "MIT" ]
621
2019-11-15T11:26:57.000Z
2022-03-28T11:46:34.000Z
from typing import TYPE_CHECKING from optuna.pruners._base import BasePruner from optuna.pruners._hyperband import HyperbandPruner from optuna.pruners._median import MedianPruner from optuna.pruners._nop import NopPruner from optuna.pruners._patient import PatientPruner from optuna.pruners._percentile import Percentil...
29.918919
88
0.766034
119
1,107
6.92437
0.394958
0.121359
0.165049
0.053398
0
0
0
0
0
0
0
0
0.160795
1,107
36
89
30.75
0.886975
0.060524
0
0
0
0
0.129094
0.022158
0
0
0
0
0
1
0.035714
false
0
0.392857
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
04e0b45d4a2c91bb016d8c40ce99ce0942e046b2
7,728
py
Python
evaluator/design_table.py
vita-epfl/Trajectory-Transformer
922e17741c532678fd34b041257395acfaecec04
[ "MIT" ]
null
null
null
evaluator/design_table.py
vita-epfl/Trajectory-Transformer
922e17741c532678fd34b041257395acfaecec04
[ "MIT" ]
null
null
null
evaluator/design_table.py
vita-epfl/Trajectory-Transformer
922e17741c532678fd34b041257395acfaecec04
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties from collections import OrderedDict import pandas as pd from evaluator.evaluator_helpers import Categories, Sub_categories, Metrics class Table(object): """docstring for Table""" def __init__(self, arg=None)...
43.41573
158
0.566511
1,049
7,728
3.954242
0.156339
0.050386
0.027001
0.039778
0.536644
0.502411
0.492285
0.492285
0.486017
0.474928
0
0.027826
0.260611
7,728
178
159
43.41573
0.69811
0.048395
0
0.31405
0
0
0.084711
0
0
0
0
0
0
1
0.049587
false
0
0.049587
0
0.123967
0.008264
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04e1d79de3ac3f1998a9096e9d35c2880a417cdc
4,667
py
Python
bench/sample.py
MustardForBreakfast/safetywrap
170f836e12df455aed9b6dce5e7c634f6b9e8f87
[ "Apache-2.0" ]
21
2019-10-31T17:43:18.000Z
2022-03-19T13:46:05.000Z
bench/sample.py
MustardForBreakfast/safetywrap
170f836e12df455aed9b6dce5e7c634f6b9e8f87
[ "Apache-2.0" ]
null
null
null
bench/sample.py
MustardForBreakfast/safetywrap
170f836e12df455aed9b6dce5e7c634f6b9e8f87
[ "Apache-2.0" ]
3
2019-11-01T17:50:07.000Z
2021-12-15T07:23:21.000Z
"""A benchmark to be run externally. Executes a program that might make heavy use of Result/Option types in one of two ways: classically, with exceptions, or using result types. The program checks several data stores (in memory to minimize interference from slow IO &c.) in order for a key. If it finds it, it gets the...
29.916667
77
0.543604
535
4,667
4.646729
0.263551
0.044248
0.017699
0.013274
0.341512
0.334674
0.28399
0.263073
0.209976
0.209976
0
0.004217
0.339404
4,667
155
78
30.109677
0.802141
0.150204
0
0.238095
0
0
0.07088
0
0
0
0
0
0.019048
1
0.114286
false
0
0.038095
0
0.27619
0.009524
0
0
0
null
0
0
0
0
0
0
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
04e2062fcfd90b0198e33c8160f2903fd4069e92
583
py
Python
library/packages/admin.py
thermokarst-forks/library
2d13e85a5b2c2992e024769158bcd6885ffcce9e
[ "BSD-3-Clause" ]
1
2018-08-16T22:34:04.000Z
2018-08-16T22:34:04.000Z
library/packages/admin.py
thermokarst-forks/library
2d13e85a5b2c2992e024769158bcd6885ffcce9e
[ "BSD-3-Clause" ]
null
null
null
library/packages/admin.py
thermokarst-forks/library
2d13e85a5b2c2992e024769158bcd6885ffcce9e
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import Package, PackageBuild class PackageBuildInline(admin.TabularInline): model = PackageBuild readonly_fields = ('package', 'github_run_id', 'version') extra = 0 can_delete = False class PackageAdmin(admin.ModelAdmin): readonly_fields = ('name', ...
24.291667
61
0.747856
60
583
7.133333
0.533333
0.098131
0.098131
0.126168
0.182243
0.182243
0.182243
0
0
0
0
0.002
0.142367
583
23
62
25.347826
0.854
0
0
0.142857
0
0
0.125214
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
04e23249464eb1af09688cb5261f0910c0a92916
1,775
py
Python
schemato/validationresult.py
emmett9001/schema.to
cfb5eb128faee391e1ac5c69093776b2d2cfd6b6
[ "Apache-2.0" ]
38
2015-01-16T11:28:12.000Z
2017-10-26T07:24:32.000Z
schemato/validationresult.py
emmett9001/schema.to
cfb5eb128faee391e1ac5c69093776b2d2cfd6b6
[ "Apache-2.0" ]
11
2015-03-20T13:54:49.000Z
2016-10-05T18:38:38.000Z
schemato/validationresult.py
emmett9001/schema.to
cfb5eb128faee391e1ac5c69093776b2d2cfd6b6
[ "Apache-2.0" ]
5
2015-02-17T18:08:35.000Z
2021-12-02T12:33:07.000Z
import json class ValidationResult(object): ERROR = 1 WARNING = 2 def __init__(self, namespace, classname): super(ValidationResult, self).__init__() self.warnings = [] self.errors = [] self.namespace = namespace self.classname = classname def add_error(self, w...
28.629032
74
0.593239
189
1,775
5.386243
0.190476
0.035363
0.021611
0.02554
0.155206
0.155206
0.102161
0.102161
0.102161
0.102161
0
0.001597
0.294648
1,775
61
75
29.098361
0.811502
0
0
0.24
0
0
0.042817
0
0
0
0
0
0
1
0.16
false
0
0.02
0.02
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
04e2eacd84c84c864a83a13c251d959ab593d0a5
2,049
py
Python
robosuite/scripts/playback_demonstrations_from_hdf5.py
gsp-27/robosuite
642065ebba4ea0c2c1f3ae6e96a8f14262146019
[ "MIT" ]
1
2021-12-22T13:10:46.000Z
2021-12-22T13:10:46.000Z
robosuite/scripts/playback_demonstrations_from_hdf5.py
gsp-27/robosuite
642065ebba4ea0c2c1f3ae6e96a8f14262146019
[ "MIT" ]
null
null
null
robosuite/scripts/playback_demonstrations_from_hdf5.py
gsp-27/robosuite
642065ebba4ea0c2c1f3ae6e96a8f14262146019
[ "MIT" ]
1
2020-12-29T01:38:01.000Z
2020-12-29T01:38:01.000Z
""" A convenience script to playback random demonstrations from a set of demonstrations stored in a hdf5 file. Example: $ python playback_demonstrations_from_hdf5.py --folder ../models/assets/demonstrations/SawyerPickPlace/ """ import os import h5py import argparse import random import numpy as np import robosuit...
28.068493
107
0.644705
261
2,049
4.873563
0.45977
0.031447
0.023585
0.022013
0.034591
0.034591
0
0
0
0
0
0.007194
0.253782
2,049
72
108
28.458333
0.824722
0.223524
0
0
0
0
0.099493
0.020279
0
0
0
0
0
1
0
false
0
0.145833
0
0.145833
0.020833
0
0
0
null
0
0
0
0
0
0
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
04e54898e0b86a46980499b94c96db2931de15a5
113
py
Python
theseus/base/metrics/__init__.py
kaylode/Custom-Template
b2f11bfacf2b03b793476a19781f9046fab6fd82
[ "MIT" ]
2
2022-02-18T04:41:29.000Z
2022-03-12T09:04:14.000Z
theseus/base/metrics/__init__.py
kaylode/mediaeval21-vsa
8c5e7d612393d511331124931843c2ed07192c1b
[ "MIT" ]
8
2022-02-16T17:01:28.000Z
2022-03-28T02:53:45.000Z
theseus/base/metrics/__init__.py
lannguyen0910/theseus
5c08fb2f4a9c7ffa395788e6a0ade43780e8bd7d
[ "MIT" ]
3
2022-02-13T05:00:13.000Z
2022-03-02T00:11:27.000Z
from theseus.registry import Registry from .metric_template import Metric METRIC_REGISTRY = Registry('METRIC')
18.833333
37
0.823009
14
113
6.5
0.428571
0
0
0
0
0
0
0
0
0
0
0
0.115044
113
5
38
22.6
0.91
0
0
0
0
0
0.053097
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
04e56c9e1ac441e2b6c321a2b4209ef7f3040dfc
1,562
py
Python
merch_week.py
m-paulus/merch_calendar
1b5065828c91685b92135f892ef4054082013fb1
[ "MIT" ]
null
null
null
merch_week.py
m-paulus/merch_calendar
1b5065828c91685b92135f892ef4054082013fb1
[ "MIT" ]
null
null
null
merch_week.py
m-paulus/merch_calendar
1b5065828c91685b92135f892ef4054082013fb1
[ "MIT" ]
null
null
null
import merch_calendar from datetime import date, timedelta import calendar class MerchWeek: def __init__(self, year, month, week): try: self._date = merch_calendar.start_of_week(year, month, week) except: raise @classmethod def from_date(cls, date): year = ...
26.033333
92
0.65493
205
1,562
4.717073
0.219512
0.161324
0.08273
0.098242
0.406412
0.275078
0.157187
0.09514
0.09514
0
0
0.004248
0.246479
1,562
59
93
26.474576
0.817332
0
0
0.217391
0
0
0.03009
0
0
0
0
0
0
1
0.26087
false
0
0.065217
0.195652
0.586957
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
04e5f68f42ca705a8b76e3ac11e3a69fe8883a0f
26,352
py
Python
test/test_md007.py
jackdewinter/pymarkdown
7ae408ba0b24506fa07552ffe520750bbff38c53
[ "MIT" ]
20
2021-01-14T17:39:09.000Z
2022-03-14T08:35:22.000Z
test/test_md007.py
jackdewinter/pymarkdown
7ae408ba0b24506fa07552ffe520750bbff38c53
[ "MIT" ]
304
2020-08-15T23:24:00.000Z
2022-03-31T23:34:03.000Z
test/test_md007.py
jackdewinter/pymarkdown
7ae408ba0b24506fa07552ffe520750bbff38c53
[ "MIT" ]
3
2021-08-11T10:26:26.000Z
2021-11-02T20:41:27.000Z
""" Module to provide tests related to the MD007 rule. """ from test.markdown_scanner import MarkdownScanner import pytest @pytest.mark.rules def test_md007_bad_configuration_indent(): """ Test to verify that a configuration error is thrown when supplying the indent value with a string that is not an int...
27.53605
109
0.68769
3,183
26,352
5.390512
0.048068
0.028908
0.065043
0.069705
0.965672
0.960427
0.952559
0.949703
0.940844
0.928022
0
0.024156
0.22708
26,352
956
110
27.564854
0.818244
0.174901
0
0.673993
0
0.001832
0.284194
0.186152
0
0
0
0
0.056777
1
0.056777
false
0
0.003663
0
0.06044
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
04e7154f348934cac78d204904e5d27232571945
18,168
py
Python
tests/ticketing/test_transactions.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
1
2021-03-14T11:56:47.000Z
2021-03-14T11:56:47.000Z
tests/ticketing/test_transactions.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
180
2019-09-15T19:52:46.000Z
2021-11-06T23:48:01.000Z
tests/ticketing/test_transactions.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
null
null
null
import copy from mock import patch, Mock import urllib from django.core.files import File from django.core.exceptions import PermissionDenied from django.shortcuts import get_object_or_404 from django.urls import reverse from ticketing.models import ( TicketingEvents, BrownPaperSettings, EventbriteSettings,...
44.638821
83
0.641292
1,770
18,168
6.367797
0.133898
0.029279
0.046846
0.027948
0.747405
0.705616
0.684411
0.656109
0.644308
0.634726
0
0.010482
0.259577
18,168
406
84
44.748768
0.827386
0.005284
0
0.579946
0
0
0.087236
0.01406
0
0
0
0
0.149051
1
0.04607
false
0
0.113821
0
0.162602
0.00271
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
04e8053cd909a8f30dd024e9c4b9845248ff59fe
1,518
py
Python
awacs/xray.py
mprince/awacs
f6a16af326ac7fd11e2e2be3a48180475f150611
[ "BSD-2-Clause" ]
null
null
null
awacs/xray.py
mprince/awacs
f6a16af326ac7fd11e2e2be3a48180475f150611
[ "BSD-2-Clause" ]
null
null
null
awacs/xray.py
mprince/awacs
f6a16af326ac7fd11e2e2be3a48180475f150611
[ "BSD-2-Clause" ]
1
2020-04-03T06:37:42.000Z
2020-04-03T06:37:42.000Z
# Copyright (c) 2012-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from aws import Action as BaseAction from aws import BaseARN service_name = 'AWS XRay' prefix = 'xray' class Action(BaseAction): def __init__(self, action=None): sup = super(Action, self) ...
33
73
0.763505
133
1,518
8.586466
0.428571
0.014011
0.022767
0
0
0
0
0
0
0
0
0.006029
0.125823
1,518
45
74
33.733333
0.854559
0.069829
0
0
0
0
0.24236
0.041933
0
0
0
0
0
1
0.060606
false
0
0.060606
0
0.181818
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
04e9345c467b4cd556b5bf96877b1b7bbf75e2df
235
py
Python
setup.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
15
2020-10-14T14:15:54.000Z
2022-03-31T17:55:36.000Z
setup.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
145
2020-10-01T13:32:20.000Z
2022-03-31T08:31:47.000Z
setup.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
3
2021-03-03T10:57:05.000Z
2021-05-24T09:11:49.000Z
"""The setup script.""" from setuptools import setup, find_packages import versioneer setup( version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), packages=find_packages(), include_package_data=True )
19.583333
43
0.748936
27
235
6.296296
0.592593
0.141176
0
0
0
0
0
0
0
0
0
0
0.144681
235
11
44
21.363636
0.845771
0.07234
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
04e9b558edc86055533277471959d45abdfff936
74
py
Python
wsgi.py
rogerdahl/acme-notifications
fa877af7361847ca70acc00fc8cb9adc9ab3dc45
[ "MIT" ]
null
null
null
wsgi.py
rogerdahl/acme-notifications
fa877af7361847ca70acc00fc8cb9adc9ab3dc45
[ "MIT" ]
null
null
null
wsgi.py
rogerdahl/acme-notifications
fa877af7361847ca70acc00fc8cb9adc9ab3dc45
[ "MIT" ]
null
null
null
import acme_notifications.init application = acme_notifications.init.app
18.5
41
0.864865
9
74
6.888889
0.666667
0.548387
0.677419
0
0
0
0
0
0
0
0
0
0.081081
74
3
42
24.666667
0.911765
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
04eacbed2960320b74f280d23dd6e09fb5dbbb17
6,839
py
Python
cmake/CMakeBuild/bin/pyhhi/cmbuild/bjambld.py
myfan/VTM-1.1_sKLT
adf549a14e630167fe22f9b8c73a307174160d7c
[ "BSD-3-Clause" ]
null
null
null
cmake/CMakeBuild/bin/pyhhi/cmbuild/bjambld.py
myfan/VTM-1.1_sKLT
adf549a14e630167fe22f9b8c73a307174160d7c
[ "BSD-3-Clause" ]
null
null
null
cmake/CMakeBuild/bin/pyhhi/cmbuild/bjambld.py
myfan/VTM-1.1_sKLT
adf549a14e630167fe22f9b8c73a307174160d7c
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import os import shutil import subprocess import logging import pyhhi.build.common.ver as ver import pyhhi.build.common.bldtools as bldtools from pyhhi.build.common.system import SystemInfo class BjamBuilder(object): """The BjamBuilder class supports building a new bjam exe...
39.531792
146
0.607106
895
6,839
4.338547
0.231285
0.027814
0.030904
0.036055
0.288694
0.193665
0.136235
0.110482
0.096575
0.096575
0
0.010419
0.284252
6,839
172
147
39.761628
0.78284
0.130136
0
0.193798
0
0
0.09973
0.018932
0
0
0
0
0.03876
1
0.054264
false
0
0.062016
0
0.178295
0.054264
0
0
0
null
0
0
0
0
0
0
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
04ebbba0f5550d29b2188709fea832733cf15cb6
2,773
py
Python
Exercise 2-3.py
Falli0o/linear_regression
b21a682bae9e4a3d5aa8aa6223233aa6dea8749c
[ "Apache-2.0" ]
null
null
null
Exercise 2-3.py
Falli0o/linear_regression
b21a682bae9e4a3d5aa8aa6223233aa6dea8749c
[ "Apache-2.0" ]
null
null
null
Exercise 2-3.py
Falli0o/linear_regression
b21a682bae9e4a3d5aa8aa6223233aa6dea8749c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # In[ ]: from __future__ import division get_ipython().magic(u'matplotlib inline') import numpy as np import matplotlib.pyplot as plt import math import multivarlinreg import rmse # In[ ]: #Linear regression red_train = np.loadtxt('redwine_training.txt') red_test = np.loadtxt('redwine_testing.tx...
25.440367
106
0.728814
434
2,773
4.426267
0.31106
0.040083
0.023425
0.026028
0.155648
0.070276
0.030193
0
0
0
0
0.03658
0.152182
2,773
108
107
25.675926
0.780519
0.268301
0
0
0
0
0.046784
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.037037
0
0
0
null
0
0
0
0
0
0
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
04ed3a31ba03c3f597496c93d4309dbd599f0a3e
1,915
py
Python
untitled/precaritorazor/models.py
NDI-ICE-2019/NDI-main-subject-backend
5628e36b414599e75eace6acea6536131c4126fa
[ "MIT" ]
null
null
null
untitled/precaritorazor/models.py
NDI-ICE-2019/NDI-main-subject-backend
5628e36b414599e75eace6acea6536131c4126fa
[ "MIT" ]
null
null
null
untitled/precaritorazor/models.py
NDI-ICE-2019/NDI-main-subject-backend
5628e36b414599e75eace6acea6536131c4126fa
[ "MIT" ]
null
null
null
from django.db import models class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): question = models.ForeignKey(Question, on_delete=models.CASCADE) choice_text = models.CharField(max_length=200) ...
27.357143
76
0.721671
241
1,915
5.526971
0.215768
0.191441
0.22973
0.306306
0.567568
0.425676
0.375375
0.323574
0.291291
0.22973
0
0.0347
0.172324
1,915
69
77
27.753623
0.805678
0.076762
0
0.318182
0
0
0.007937
0
0
0
0
0
0
1
0.136364
false
0
0.022727
0.136364
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
04ed512b72b29125fda2c468f7c24dac5e1e16b7
1,027
py
Python
centernet_lightning/datasets/__init__.py
gau-nernst/CenterNet
bd6a21813a63310e3b1c77cefe24077b72d1092a
[ "MIT" ]
47
2021-08-10T09:30:53.000Z
2022-03-29T07:53:43.000Z
centernet_lightning/datasets/__init__.py
gau-nernst/CenterNet
bd6a21813a63310e3b1c77cefe24077b72d1092a
[ "MIT" ]
1
2021-08-07T13:46:49.000Z
2021-08-07T13:46:49.000Z
centernet_lightning/datasets/__init__.py
gau-nernst/CenterNet
bd6a21813a63310e3b1c77cefe24077b72d1092a
[ "MIT" ]
6
2021-08-12T02:40:43.000Z
2022-01-31T16:12:40.000Z
# from .utils import ( # IMAGENET_MEAN, IMAGENET_STD, CollateDetection, CollateTracking, # get_default_transforms, get_default_detection_transforms, get_default_tracking_transforms # ) # from .coco import COCODataset # from .voc import VOCDataset # from .crowdhuman import CrowdHumanDataset # from .mot import MO...
46.681818
102
0.787731
90
1,027
8.655556
0.377778
0.077022
0.102696
0.05905
0.336329
0.336329
0.336329
0.336329
0.336329
0.336329
0
0
0.118793
1,027
21
103
48.904762
0.860773
0.959104
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
04ee4a305162e4e3bdcb164213ede6ebc3c2c03c
3,260
py
Python
Sketches/JL/IRC/Translator.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/JL/IRC/Translator.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/JL/IRC/Translator.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
# -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Version 2.0 (the "Lice...
34.315789
112
0.607975
353
3,260
5.569405
0.424929
0.030519
0.045778
0.048321
0.151577
0.096643
0.047813
0.047813
0.047813
0
0
0.006397
0.280675
3,260
94
113
34.680851
0.831983
0.235583
0
0.180328
0
0
0.094622
0
0
0
0
0
0
1
0.131148
false
0
0.081967
0.081967
0.360656
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
04ef6f0e489ba56bb79c74e9f8745f375bebe0bc
3,840
py
Python
hybmc/models/DeterministicModel.py
sschlenkrich/HybridMonteCarlo
72f54aa4bcd742430462b27b72d70369c01f9ac4
[ "MIT" ]
3
2021-08-18T18:34:41.000Z
2021-12-24T07:05:19.000Z
hybmc/models/DeterministicModel.py
sschlenkrich/HybridMonteCarlo
72f54aa4bcd742430462b27b72d70369c01f9ac4
[ "MIT" ]
null
null
null
hybmc/models/DeterministicModel.py
sschlenkrich/HybridMonteCarlo
72f54aa4bcd742430462b27b72d70369c01f9ac4
[ "MIT" ]
3
2021-01-31T11:41:19.000Z
2022-03-25T19:51:20.000Z
#!/usr/bin/python import numpy as np from hybmc.models.StochasticProcess import StochasticProcess class DeterministicModel(StochasticProcess): # Python constructor def __init__(self, domAlias, # name of our domestic (numeraire) currency domCurve, ...
35.88785
110
0.610938
475
3,840
4.915789
0.309474
0.017131
0.051392
0.035974
0.285225
0.182013
0.140471
0.140471
0.140471
0.140471
0
0.004542
0.311979
3,840
106
111
36.226415
0.879258
0.32474
0
0.15
0
0
0
0
0
0
0
0
0
1
0.316667
false
0
0.033333
0.233333
0.683333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
04efafcb6db1afd7a3030ec016d52f31b51e110e
11,926
py
Python
ClientSide2.py
MatthewGong/DiffractionClassification
68be6cf3960f09388253c79bab13cbd9dc07edbb
[ "MIT" ]
7
2019-08-14T18:14:06.000Z
2021-01-14T01:43:50.000Z
ClientSide2.py
MatthewGong/DiffractionClassification
68be6cf3960f09388253c79bab13cbd9dc07edbb
[ "MIT" ]
null
null
null
ClientSide2.py
MatthewGong/DiffractionClassification
68be6cf3960f09388253c79bab13cbd9dc07edbb
[ "MIT" ]
2
2019-11-06T20:19:23.000Z
2020-08-04T21:06:36.000Z
from __future__ import print_function from __future__ import division from Notation import SpaceGroupsDict as spgs SpGr = spgs.spacegroups() notation_dictionary = spgs.spacegroups() import PeakFinding2 as pfnd #custom library to handle the functions behind Find_Peaks import UniversalLoader2 as uvll #custom library ...
32.673973
124
0.606322
1,491
11,926
4.663984
0.205902
0.015099
0.03365
0.015531
0.303422
0.222174
0.156888
0.109002
0.080242
0.041703
0
0.011397
0.27897
11,926
364
125
32.763736
0.797302
0.28811
0
0.060976
0
0
0.147232
0
0
0
0
0
0
1
0.042683
false
0
0.042683
0
0.128049
0.128049
0
0
0
null
0
0
0
0
0
0
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
04efee032a0d44425bb27f5c80f9f0aee01d3ab5
465
py
Python
tests/utils.py
kurtbrose/ufork
4674abc5a27a2e3076e28756685512359e8e809f
[ "BSD-3-Clause" ]
5
2016-09-13T05:12:42.000Z
2021-08-31T11:15:59.000Z
tests/utils.py
skhortiuk/ufork
aa96ae8e903c0e95b0b307e8c738e8455ab477f4
[ "MIT" ]
7
2016-10-13T01:08:01.000Z
2021-06-24T19:09:29.000Z
tests/utils.py
skhortiuk/ufork
aa96ae8e903c0e95b0b307e8c738e8455ab477f4
[ "MIT" ]
4
2017-04-11T20:29:41.000Z
2020-10-12T15:22:33.000Z
from __future__ import absolute_import import os import signal def check_leaked_workers(arbiter): leaked_workers = [] for worker in arbiter.workers.values(): try: # check if process still exists os.kill(worker.pid, signal.SIGKILL) leaked_workers.append(worker.pid) exce...
29.0625
71
0.670968
55
465
5.472727
0.581818
0.259136
0
0
0
0
0
0
0
0
0
0
0.253763
465
15
72
31
0.867435
0.101075
0
0
0
0
0.038554
0
0
0
0
0
0.076923
1
0.076923
false
0.076923
0.230769
0
0.307692
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
04f023bee1d7ff03aceebf8ab92a9d06c9bdc3a1
802
py
Python
examples/application_commands/choices.py
freepizzas-dev/nextcord
58dd18d4d60d50a0462e87b2400db980e73da72c
[ "MIT" ]
null
null
null
examples/application_commands/choices.py
freepizzas-dev/nextcord
58dd18d4d60d50a0462e87b2400db980e73da72c
[ "MIT" ]
null
null
null
examples/application_commands/choices.py
freepizzas-dev/nextcord
58dd18d4d60d50a0462e87b2400db980e73da72c
[ "MIT" ]
null
null
null
import nextcord from nextcord import SlashOption from nextcord.interactions import Interaction client = nextcord.Client() @client.slash_command(guild_ids=[...]) # Limits the guildes async def choose_a_number( interaction: Interaction, number: str = SlashOption( name="picker", description="Th...
27.655172
99
0.699501
101
802
5.475248
0.475248
0.0434
0.065099
0.083183
0.256781
0.256781
0.126582
0
0
0
0
0.009023
0.170823
802
28
100
28.642857
0.822556
0.067332
0
0.285714
0
0
0.171812
0
0
0
0
0
0
1
0
false
0
0.142857
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
04f0e3299aae2df07132187459eead6effe98308
16
py
Python
pyvcdr/__init__.py
EtlamGit/pyvcdr
abb475d1389b069e6b8ae53d50329e64c3f0e261
[ "MIT" ]
null
null
null
pyvcdr/__init__.py
EtlamGit/pyvcdr
abb475d1389b069e6b8ae53d50329e64c3f0e261
[ "MIT" ]
null
null
null
pyvcdr/__init__.py
EtlamGit/pyvcdr
abb475d1389b069e6b8ae53d50329e64c3f0e261
[ "MIT" ]
null
null
null
name = "pyvcdr"
8
15
0.625
2
16
5
1
0
0
0
0
0
0
0
0
0
0
0
0.1875
16
1
16
16
0.769231
0
0
0
0
0
0.375
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
04f24dbabf997234bb3f9394b5d4778cde915e92
729
py
Python
debug/testUSB.py
sgoadhouse/dcps-visa
3021168bb15bb66fdd74d2a235d4dc3e0e3a4733
[ "MIT" ]
2
2019-10-30T08:23:14.000Z
2021-09-15T14:20:53.000Z
debug/testUSB.py
sgoadhouse/dcps-visa
3021168bb15bb66fdd74d2a235d4dc3e0e3a4733
[ "MIT" ]
null
null
null
debug/testUSB.py
sgoadhouse/dcps-visa
3021168bb15bb66fdd74d2a235d4dc3e0e3a4733
[ "MIT" ]
6
2019-10-11T18:52:40.000Z
2022-03-28T10:14:38.000Z
import usb.core import usb.util import sys # got these using the command lsusb -vv VENDOR_ID = 0x1AB1 PRODUCT_ID = 0x0E11 DATA_SIZE = 1 device = usb.core.find(idVendor=VENDOR_ID, idProduct=PRODUCT_ID) #@@@#print(device.is_kernel_driver_active(0)) # was it found? if device is None: raise ValueError('USB Device ...
22.78125
64
0.728395
109
729
4.770642
0.633028
0.040385
0
0
0
0
0
0
0
0
0
0.036244
0.167353
729
31
65
23.516129
0.820428
0.30727
0
0
0
0
0.109091
0
0
0
0.024242
0
0
1
0
false
0
0.1875
0
0.1875
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
04f30aaa86b0d421b2d40dfdaa3750bdc67bcc4e
809
py
Python
test_ruge_stuben_solver.py
CoderMoray/AMG-for-finity-element
1f4194eb3d1b8b6007733cb1122bdab7d67424bc
[ "MIT" ]
null
null
null
test_ruge_stuben_solver.py
CoderMoray/AMG-for-finity-element
1f4194eb3d1b8b6007733cb1122bdab7d67424bc
[ "MIT" ]
null
null
null
test_ruge_stuben_solver.py
CoderMoray/AMG-for-finity-element
1f4194eb3d1b8b6007733cb1122bdab7d67424bc
[ "MIT" ]
null
null
null
import pyamg import numpy as np import time from prettytable import PrettyTable A = pyamg.gallery.poisson((500,500), format='csr') # 2D Poisson problem on 500x500 grid # print('A : ', A ) ml = pyamg.ruge_stuben_solver(A) b = np.random.rand(A.shape[0]) # pick a random right hand side # t0= ...
28.892857
88
0.608158
131
809
3.70229
0.519084
0.041237
0.037113
0.057732
0
0
0
0
0
0
0
0.055016
0.236094
809
28
89
28.892857
0.729773
0.202719
0
0
0
0
0.050235
0
0
0
0
0
0
1
0
false
0
0.190476
0
0.190476
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04f33c7544bbc8ed87639ae554a4185b880e29cc
7,467
py
Python
app/telegram_handler.py
badgateway666/Telegram2MQTT
387709bae98e99f1c5a83a27981ebd2172ad356b
[ "MIT" ]
1
2020-05-22T17:00:27.000Z
2020-05-22T17:00:27.000Z
app/telegram_handler.py
badgateway666/Telegram2MQTT
387709bae98e99f1c5a83a27981ebd2172ad356b
[ "MIT" ]
null
null
null
app/telegram_handler.py
badgateway666/Telegram2MQTT
387709bae98e99f1c5a83a27981ebd2172ad356b
[ "MIT" ]
null
null
null
import logging import re from queue import SimpleQueue from telegram.bot import Bot as Telegram_Bot from telegram.ext import Updater, CommandHandler, Filters class TelegramHandler(object): def __init__(self, bot_token, allowed_telegram_user_ids): self.logger = logging.getLogger("telegram2mqtt.bot") ...
38.096939
109
0.583367
876
7,467
4.826484
0.206621
0.028382
0.034059
0.042573
0.456244
0.397824
0.342952
0.342952
0.331835
0.306055
0
0.00331
0.312174
7,467
195
110
38.292308
0.819899
0.124146
0
0.244898
0
0
0.202202
0.003256
0
0
0
0.005128
0
1
0.047619
false
0
0.034014
0
0.122449
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
04f340fbe83331013ceb88840a2f5fe6d9acebc2
1,273
py
Python
tests/python/pycasbin_test_suite.py
lezli01/casbin-cpp
24d43cee747a514a63bcad1aae4953e981e484c3
[ "Apache-2.0" ]
null
null
null
tests/python/pycasbin_test_suite.py
lezli01/casbin-cpp
24d43cee747a514a63bcad1aae4953e981e484c3
[ "Apache-2.0" ]
null
null
null
tests/python/pycasbin_test_suite.py
lezli01/casbin-cpp
24d43cee747a514a63bcad1aae4953e981e484c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The casbin Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
29.604651
75
0.743126
172
1,273
5.406977
0.581395
0.064516
0.058065
0.119355
0.132258
0
0
0
0
0
0
0.010536
0.17989
1,273
42
76
30.309524
0.880268
0.49568
0
0
0
0
0.01278
0
0
0
0
0
0
1
0.047619
false
0
0.333333
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
04f40581777dd72ef62292b53638cb5d976a365c
1,574
py
Python
forcefield_utilities/utils.py
mosdef-hub/forcefield-utilities
6424f9c8c2935399171ee7056a0d6b408cabda81
[ "MIT" ]
1
2022-03-15T15:14:02.000Z
2022-03-15T15:14:02.000Z
forcefield_utilities/utils.py
mosdef-hub/forcefield-utilities
6424f9c8c2935399171ee7056a0d6b408cabda81
[ "MIT" ]
5
2021-11-12T01:35:55.000Z
2022-03-23T15:45:29.000Z
forcefield_utilities/utils.py
mosdef-hub/forcefield-utilities
6424f9c8c2935399171ee7056a0d6b408cabda81
[ "MIT" ]
2
2022-03-15T15:14:06.000Z
2022-03-23T00:11:24.000Z
import functools import warnings def call_on_import(func): """Declare a decorator that will run `func` when imported.""" func() def get_package_file_path(from_package, relative_path): """Use source of a python package to locate and cache the address of a file.""" from pkg_resources import resource_f...
29.698113
87
0.656925
192
1,574
5.182292
0.411458
0.096482
0.066332
0.046231
0.293467
0.180905
0.180905
0.180905
0.180905
0.180905
0
0.001735
0.267471
1,574
52
88
30.269231
0.861232
0.081957
0
0.105263
0
0
0.199442
0
0
0
0
0
0
1
0.157895
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
04f45b90500ae631520f30af9f99758d2ff28520
889
py
Python
decbin.py
faisalkhan91/Dec2Bin
623f1640aa6a4b619d95fad9df869c4901cd4c96
[ "MIT" ]
null
null
null
decbin.py
faisalkhan91/Dec2Bin
623f1640aa6a4b619d95fad9df869c4901cd4c96
[ "MIT" ]
null
null
null
decbin.py
faisalkhan91/Dec2Bin
623f1640aa6a4b619d95fad9df869c4901cd4c96
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 decimal = input("Please enter a real number: ") index = 0 while index < len(decimal) and decimal[index] != ".": index += 1 if index == 10: intpart = decimal[:] fracpart = "" else : intpart = decimal[:index] fracpart = decimal[index+1:] # print("int len = ", len(intpart), "int part = "...
18.914894
115
0.590551
112
889
4.6875
0.294643
0.068571
0
0
0
0
0
0
0
0
0
0.033626
0.230596
889
46
116
19.326087
0.733918
0.154106
0
0.151515
0
0
0.069333
0
0
0
0
0
0
1
0
false
0
0
0
0
0.030303
0
0
0
null
0
0
0
0
0
0
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
04f50ce80dd5255194e1fa6d4b1af8eddf9cb9d6
4,003
py
Python
tests/operators/vector/test_cos_001.py
laekov/akg
5316b8cb2340bbf71bdc724dc9d81513a67b3104
[ "Apache-2.0" ]
1
2020-08-31T02:43:43.000Z
2020-08-31T02:43:43.000Z
tests/operators/vector/test_cos_001.py
laekov/akg
5316b8cb2340bbf71bdc724dc9d81513a67b3104
[ "Apache-2.0" ]
null
null
null
tests/operators/vector/test_cos_001.py
laekov/akg
5316b8cb2340bbf71bdc724dc9d81513a67b3104
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
43.51087
104
0.572071
529
4,003
4.015123
0.257089
0.101695
0.097928
0.026365
0.348399
0.323917
0.06968
0.06968
0.047081
0.047081
0
0.20873
0.238821
4,003
91
105
43.989011
0.488349
0.62703
0
0.076923
0
0
0.107402
0.034833
0
0
0
0
0
1
0.115385
false
0
0.192308
0
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
04f5f1b977e5486329255efbf34e12d42bdcf0a3
2,716
py
Python
src/installer/src/tortuga/db/nicsDbHandler.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
33
2018-03-02T17:07:39.000Z
2021-05-21T18:02:51.000Z
src/installer/src/tortuga/db/nicsDbHandler.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
201
2018-03-05T14:28:24.000Z
2020-11-23T19:58:27.000Z
src/installer/src/tortuga/db/nicsDbHandler.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
23
2018-03-02T17:21:59.000Z
2020-11-18T14:52:38.000Z
# Copyright 2008-2018 Univa Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
28.893617
74
0.626657
297
2,716
5.673401
0.474747
0.035608
0.026706
0.018991
0.052819
0
0
0
0
0
0
0.006094
0.275037
2,716
93
75
29.204301
0.84967
0.279087
0
0.095238
0
0
0.084819
0
0
0
0
0
0
1
0.095238
false
0.02381
0.142857
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04f9c470ab4651b45902a20abeeb4edab7d93d0c
1,068
py
Python
test/utils/devices/ph_probe_mock_test.py
kieransukachevin/AlkalinityTitrator
09b642ee1368278b7b4fc180bed50ff538a0938a
[ "MIT" ]
null
null
null
test/utils/devices/ph_probe_mock_test.py
kieransukachevin/AlkalinityTitrator
09b642ee1368278b7b4fc180bed50ff538a0938a
[ "MIT" ]
31
2021-06-29T17:53:56.000Z
2021-08-19T21:59:03.000Z
test/utils/devices/ph_probe_mock_test.py
kieransukachevin/AlkalinityTitrator
09b642ee1368278b7b4fc180bed50ff538a0938a
[ "MIT" ]
4
2021-02-12T23:21:17.000Z
2021-11-15T16:55:38.000Z
import pytest import titration.utils.devices.board_mock as board_mock import titration.utils.devices.ph_probe_mock as ph_probe_mock def test_ph_create(): ph = ph_probe_mock.pH_Probe(board_mock.SCL, board_mock.SDA) assert ph is not None def test_ph_create_null(): ph = ph_probe_mock.pH_Probe(None, None) ...
23.217391
63
0.700375
182
1,068
3.802198
0.208791
0.141619
0.127168
0.112717
0.615607
0.615607
0.615607
0.514451
0.393064
0.393064
0
0.019722
0.192884
1,068
45
64
23.733333
0.783063
0
0
0.413793
0
0
0
0
0
0
0
0
0.206897
1
0.206897
false
0
0.103448
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
04fa50f216dce4da7cb555026a335c1664fdf05b
516
py
Python
topCoder/srms/300s/srm378/div2/two_rotation_cypher.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-09-30T19:53:08.000Z
2020-09-30T19:53:08.000Z
topCoder/srms/300s/srm378/div2/two_rotation_cypher.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
null
null
null
topCoder/srms/300s/srm378/div2/two_rotation_cypher.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-10-15T09:10:57.000Z
2020-10-15T09:10:57.000Z
from string import ascii_lowercase class TwoRotationCypher: def encrypt(self, firstSize, firstRotate, secondRotate, message): f, s, r = ascii_lowercase[:firstSize], ascii_lowercase[firstSize:], '' for e in message: if e == ' ': r += e elif e in f: ...
36.857143
88
0.52907
63
516
4.285714
0.444444
0.155556
0.17037
0.059259
0
0
0
0
0
0
0
0.017291
0.327519
516
13
89
39.692308
0.760807
0
0
0
0
0
0.001938
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04faa5333b2d83edb78730a93736b95eddd63ea2
5,675
py
Python
src/CoRe.py
SkBlaz/core
2833191021ddf7113d375daeb9e9740faa068957
[ "BSD-3-Clause" ]
null
null
null
src/CoRe.py
SkBlaz/core
2833191021ddf7113d375daeb9e9740faa068957
[ "BSD-3-Clause" ]
null
null
null
src/CoRe.py
SkBlaz/core
2833191021ddf7113d375daeb9e9740faa068957
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from class_neural import GenericAutoencoder from class_clustering_reduction import ReductionCluster from class_subspace_reduction import ReductionSubspace try: import umap except Exception as es: print(f"UMAP unavailable. {es}") from sklearn.decomposition import TruncatedSVD from sklearn.man...
32.994186
84
0.622379
584
5,675
5.847603
0.234589
0.084334
0.083748
0.084334
0.332943
0.194729
0.175988
0.108053
0.108053
0.108053
0
0.003002
0.295507
5,675
171
85
33.187135
0.851176
0.014978
0
0.178295
0
0
0.058855
0
0
0
0
0
0
1
0.046512
false
0
0.069767
0
0.155039
0.015504
0
0
0
null
0
0
0
0
0
0
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
04fb5d0dbcd3e4b473928d99c92155cb381bc3e9
5,632
py
Python
autograd/container_types.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
autograd/container_types.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
autograd/container_types.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from autograd.core import (primitive, Node, VSpace, register_node, vspace, register_vspace, SparseObject) from builtins import zip from future.utils import iteritems from functools import partial import autograd.numpy as np class SequenceNode(Node): ...
34.552147
91
0.649148
823
5,632
4.256379
0.132442
0.035969
0.01199
0.017985
0.384528
0.33143
0.316871
0.265487
0.209535
0.147873
0
0.00414
0.227983
5,632
162
92
34.765432
0.801518
0
0
0.304965
0
0
0
0
0
0
0
0
0.007092
1
0.269504
false
0
0.042553
0.177305
0.531915
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
04fccb1478ce692e14caa6ca3962aae84ed836d8
1,771
py
Python
p314_Binary_Tree_Vertical_Order_Traversal.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p314_Binary_Tree_Vertical_Order_Traversal.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
p314_Binary_Tree_Vertical_Order_Traversal.py
bzhou26/leetcode_sol
82506521e2cc412f96cd1dfc3c8c3ab635f67f73
[ "MIT" ]
null
null
null
''' - Leetcode problem: 314 - Difficulty: Medium - Brief problem description: Given a binary tree, return the vertical order traversal of its nodes' values. (ie, from top to bottom, column by column). If two nodes are in the same row and column, the order should be from left to right. Examples 1: Input: [3,9,20,n...
15.8125
122
0.512705
244
1,771
3.704918
0.393443
0.013274
0.013274
0.017699
0.042035
0.042035
0.026549
0.026549
0
0
0
0.07088
0.338792
1,771
111
123
15.954955
0.70111
0.57764
0
0
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.210526
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
04feec89ef011be3222eac2c8a548d3c3d472132
2,548
py
Python
tests/pterradactyl/commands/test_lookup.py
GiampaoloFalqui/pterradactyl
3d34f8088784c53e3d0871d8ca81f2381f2c2be9
[ "Apache-2.0" ]
2
2022-03-31T09:02:49.000Z
2022-03-31T18:56:52.000Z
tests/pterradactyl/commands/test_lookup.py
GiampaoloFalqui/pterradactyl
3d34f8088784c53e3d0871d8ca81f2381f2c2be9
[ "Apache-2.0" ]
4
2021-12-20T18:31:47.000Z
2022-03-14T16:31:49.000Z
tests/pterradactyl/commands/test_lookup.py
GiampaoloFalqui/pterradactyl
3d34f8088784c53e3d0871d8ca81f2381f2c2be9
[ "Apache-2.0" ]
null
null
null
import unittest from pterradactyl.commands.lookup import LookupCommand from mock import patch import os import argparse import pytest class TestLookupCommands(unittest.TestCase): def setUp(self) -> None: self.base_path = os.path.dirname(os.path.abspath(__file__)) self.config = os.path.join(os.get...
49
145
0.637363
310
2,548
5.070968
0.222581
0.050891
0.053435
0.050891
0.655216
0.608142
0.608142
0.587786
0.544529
0.489822
0
0.005056
0.223705
2,548
51
146
49.960784
0.789687
0
0
0.363636
0
0
0.127943
0.042386
0
0
0
0
0.159091
1
0.113636
false
0
0.136364
0
0.295455
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
ca0012763ebde5a8a825cd260de95730a4c414f2
926
py
Python
Stack/stackusinglinkedlist.py
shaurtoonetwork/Data-Structures-Implemented-In-Python
31f770165d535547e6ab3973ca92944cd4d93e11
[ "Unlicense" ]
null
null
null
Stack/stackusinglinkedlist.py
shaurtoonetwork/Data-Structures-Implemented-In-Python
31f770165d535547e6ab3973ca92944cd4d93e11
[ "Unlicense" ]
null
null
null
Stack/stackusinglinkedlist.py
shaurtoonetwork/Data-Structures-Implemented-In-Python
31f770165d535547e6ab3973ca92944cd4d93e11
[ "Unlicense" ]
null
null
null
class Node: def __init__(self,data): self.data=data self.next=None class Stack(): def __init__(self): self.head=None def push(self,data): new_node=Node(data) new_node.next=self.head self.head=new_node def pop(self): cur_node=self.head se...
15.694915
37
0.541037
137
926
3.481752
0.255474
0.134172
0.075472
0.067086
0.079665
0
0
0
0
0
0
0.003231
0.331533
926
58
38
15.965517
0.767367
0
0
0.097561
0
0
0.010846
0
0
0
0
0
0
1
0.195122
false
0
0
0
0.292683
0.097561
0
0
0
null
0
0
0
0
0
0
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
b6b8dd05f5f7cbaff9802e64ef9b63bb934698fe
10,059
py
Python
emailhandler.py
wcascades/Simple_Slack_Bot
b674909d5e02d8f15918fb4dee9f2cb1bcf1079a
[ "MIT" ]
null
null
null
emailhandler.py
wcascades/Simple_Slack_Bot
b674909d5e02d8f15918fb4dee9f2cb1bcf1079a
[ "MIT" ]
3
2021-08-05T14:56:04.000Z
2022-03-06T18:43:58.000Z
emailhandler.py
wcascades/Simple_Slack_Bot
b674909d5e02d8f15918fb4dee9f2cb1bcf1079a
[ "MIT" ]
null
null
null
# don't use 3.9, currently using 3.7 import mysecrets import re import email import logging import slackhandler import my_parser from exchangelib import Credentials, Account, DELEGATE, Configuration, FaultTolerance, Message from imapclient import IMAPClient from collections import deque class emailhandler: def _...
42.987179
117
0.571429
1,136
10,059
4.865317
0.227993
0.045594
0.052108
0.05645
0.349195
0.274109
0.213136
0.188891
0.188891
0.188891
0
0.005772
0.345561
10,059
233
118
43.171674
0.833814
0.125659
0
0.266272
0
0
0.14483
0.002511
0
0
0
0.004292
0
1
0.071006
false
0.017751
0.053254
0.005917
0.183432
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
b6b8e6b112b5f5a0738910a049da1d3ae0235a6c
1,698
py
Python
notebooks/jetlatcalcs.py
afahadabdullah/cmip6hack-emergentconstraints
287044e7bfb76bc318856d9b25b9e5e2b52ed477
[ "MIT" ]
1
2019-11-21T02:36:59.000Z
2019-11-21T02:36:59.000Z
notebooks/jetlatcalcs.py
afahadabdullah/cmip6hack-emergentconstraints
287044e7bfb76bc318856d9b25b9e5e2b52ed477
[ "MIT" ]
null
null
null
notebooks/jetlatcalcs.py
afahadabdullah/cmip6hack-emergentconstraints
287044e7bfb76bc318856d9b25b9e5e2b52ed477
[ "MIT" ]
6
2019-10-15T20:17:21.000Z
2019-10-18T22:20:12.000Z
print( "you have successfully imported the jet latitude calculation subroutines" ) import numpy as np def getzonalmeanonplev( xdatin, plev ): # -----calculates zonal mean and picks out a pressure level----- # input: xdatin = xarray data array (plev,nlat,nlon) # : plev = desired pressure level (hPa) # oudput: xda...
38.590909
92
0.65371
246
1,698
4.50813
0.45122
0.036069
0.024346
0.037872
0.182146
0.182146
0.111812
0.111812
0.050496
0
0
0.018813
0.186101
1,698
43
93
39.488372
0.783647
0.430506
0
0
0
0
0.134595
0
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.285714
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b6b9caeebc32813369795932495c71aeac2c4847
244
py
Python
statuscheck/services/sentry.py
amureki/statuscheck
caff92ef211f1fd2bf6c8a18ba8243eb434bc0df
[ "Apache-2.0" ]
35
2018-10-22T06:04:55.000Z
2022-02-01T10:20:00.000Z
statuscheck/services/sentry.py
amureki/statuscheck
caff92ef211f1fd2bf6c8a18ba8243eb434bc0df
[ "Apache-2.0" ]
209
2018-10-22T11:44:57.000Z
2022-03-31T04:02:37.000Z
statuscheck/services/sentry.py
amureki/statuscheck
caff92ef211f1fd2bf6c8a18ba8243eb434bc0df
[ "Apache-2.0" ]
2
2020-06-05T02:41:19.000Z
2020-09-03T07:03:46.000Z
from statuscheck.services.bases._statuspageio import BaseStatusPageAPI class ServiceAPI(BaseStatusPageAPI): name = "Sentry" domain_id = "t687h3m0nh65" status_url = "https://status.sentry.io" service_url = "https://sentry.io/"
27.111111
70
0.737705
26
244
6.769231
0.730769
0.090909
0
0
0
0
0
0
0
0
0
0.033654
0.147541
244
8
71
30.5
0.8125
0
0
0
0
0
0.245902
0
0
0
0
0
0
1
0
false
0
0.166667
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
b6ba87cd65c4a5ebab94e9028834ee5c431dddfa
4,145
py
Python
DQM/HLTEvF/test/hlt_jetmet_test_dqm_fromfile_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/HLTEvF/test/hlt_jetmet_test_dqm_fromfile_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/HLTEvF/test/hlt_jetmet_test_dqm_fromfile_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("DQM") process.load("DQM.HLTEvF.HLTMonitor_cff") process.load("DQMServices.Core.DQM_cfg") process.load("DQMServices.Components.DQMEnvironment_cfi") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) ) process.source = cms.Sourc...
62.80303
145
0.785766
651
4,145
4.721966
0.230415
0.071568
0.104099
0.110605
0.568966
0.568966
0.568966
0.527001
0.527001
0.527001
0
0.17944
0.077684
4,145
65
146
63.769231
0.62464
0.001689
0
0.070175
0
0.350877
0.707234
0.689572
0
0
0
0
0
1
0
false
0
0.017544
0
0.017544
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
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
b6ba96554a84cae2263637750307f51ca135bde3
1,488
py
Python
TournamentReminder.py
0ffkilter/StunfiskBot
5ec1fd27b875ede1845747f22bf5b1fafe81caff
[ "MIT" ]
1
2019-05-10T00:29:15.000Z
2019-05-10T00:29:15.000Z
TournamentReminder.py
0ffkilter/StunfiskBot
5ec1fd27b875ede1845747f22bf5b1fafe81caff
[ "MIT" ]
null
null
null
TournamentReminder.py
0ffkilter/StunfiskBot
5ec1fd27b875ede1845747f22bf5b1fafe81caff
[ "MIT" ]
null
null
null
import praw, sys, os user_agent = "Tournament Reminder by /u/0ffkilter" config_file = open('%s%s' %(os.getcwd(), '/Config.txt'), 'r') config = config_file.read().split('\n') config_file.close() reddit = praw.Reddit(user_agent = user_agent) reddit.login('stunfiskhelperbot', config[1]) part_file = open('%s%s' %(os.g...
33.818182
118
0.670699
219
1,488
4.484018
0.502283
0.010183
0.033605
0.020367
0.03666
0.03666
0
0
0
0
0
0.010067
0.198925
1,488
43
119
34.604651
0.813758
0
0
0
0
0.071429
0.572966
0
0
0
0
0
0
1
0
false
0
0.035714
0
0.035714
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b6baabf4be70eeed58c26930ea96749e16e4205c
1,699
py
Python
NGG_NEW.py
Antrix9/NUMBER_GUESSING_GAME
b5fcd5aca17b52dcec1bdbb5f661e20b82cc768b
[ "MIT" ]
null
null
null
NGG_NEW.py
Antrix9/NUMBER_GUESSING_GAME
b5fcd5aca17b52dcec1bdbb5f661e20b82cc768b
[ "MIT" ]
null
null
null
NGG_NEW.py
Antrix9/NUMBER_GUESSING_GAME
b5fcd5aca17b52dcec1bdbb5f661e20b82cc768b
[ "MIT" ]
1
2021-03-27T16:28:33.000Z
2021-03-27T16:28:33.000Z
import random while True: random_list = random.sample((3, 4, 5), 2) #print(random_list) random_number = random.randint(1, 1000) #print(random_number) start_range = random_number - random_list[0] end_range = random_number + random_list[1] print(f'Range Hint: The Number...
26.138462
76
0.540906
215
1,699
4.176744
0.334884
0.13363
0.060134
0.051225
0.207127
0.062361
0
0
0
0
0
0.021739
0.350206
1,699
64
77
26.546875
0.791667
0.045909
0
0.155556
0
0
0.291237
0
0
0
0
0
0
1
0
false
0.022222
0.022222
0
0.022222
0.311111
0
0
0
null
0
0
0
0
0
0
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
b6bc65524aa9146a7d999087ba23c1ddab175047
284
py
Python
2048test.py
zhangzhibo123/2048game
2bd573fdcff61b47bcdafc6aa498c6cd9e5b55a7
[ "Apache-2.0" ]
null
null
null
2048test.py
zhangzhibo123/2048game
2bd573fdcff61b47bcdafc6aa498c6cd9e5b55a7
[ "Apache-2.0" ]
null
null
null
2048test.py
zhangzhibo123/2048game
2bd573fdcff61b47bcdafc6aa498c6cd9e5b55a7
[ "Apache-2.0" ]
null
null
null
# map = [[0 for i in range(4)] for j in range(4)] # print(map) map = [[2, 0, 0, 0], [0, 0, 0, 4], [8, 0, 0, 0], [4, 0, 0, 2]] # ma = [[map[c][r] for c in range(4)] for r in reversed(range(4))] # print(ma) ma = [[map[c][r] for r in reversed(range(4))] for c in range(4)] print(ma)
23.666667
66
0.517606
65
284
2.261538
0.230769
0.108844
0.102041
0.081633
0.571429
0.272109
0
0
0
0
0
0.103604
0.21831
284
12
67
23.666667
0.558559
0.46831
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
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
b6bf51d40278ce4e1770aa55c0402ddffbaac7d1
4,876
py
Python
module/platform_node.py
doudoudzj/python-learn
ccb2210e986288f7b0e34c16f55e5a2851e80cf7
[ "BSD-3-Clause" ]
null
null
null
module/platform_node.py
doudoudzj/python-learn
ccb2210e986288f7b0e34c16f55e5a2851e80cf7
[ "BSD-3-Clause" ]
null
null
null
module/platform_node.py
doudoudzj/python-learn
ccb2210e986288f7b0e34c16f55e5a2851e80cf7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # platform_node.py # https://www.cnblogs.com/hongten/p/hongten_python_platform.html import platform ''' python中,platform模块给我们提供了很多方法去获取操作系统的信息 如: import platform platform.platform() #获取操作系统名称及版本号,'Linux-3.13.0-46-generic-i686-with-Deepin-2014.2-trus...
25.798942
150
0.65566
555
4,876
5.542342
0.21982
0.061443
0.027308
0.056892
0.221391
0.171652
0.170026
0.154421
0.095579
0.058518
0
0.018182
0.199139
4,876
188
151
25.93617
0.769526
0.159557
0
0.065934
0
0
0.164549
0
0
0
0
0
0
1
0.241758
false
0
0.010989
0
0.417582
0.362637
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b6c2400ffbeca603e01ee66e01e65345a49b8317
3,110
py
Python
scripts/generate_result.py
XinYao1994/HOPE
99b41b457b67d3e5d6dd182f8aa2ce4ea66e4a68
[ "Apache-2.0" ]
108
2020-04-23T19:06:51.000Z
2022-02-23T20:05:09.000Z
scripts/generate_result.py
XinYao1994/HOPE
99b41b457b67d3e5d6dd182f8aa2ce4ea66e4a68
[ "Apache-2.0" ]
1
2021-07-07T05:58:57.000Z
2021-07-07T05:58:57.000Z
scripts/generate_result.py
XinYao1994/HOPE
99b41b457b67d3e5d6dd182f8aa2ce4ea66e4a68
[ "Apache-2.0" ]
11
2020-04-24T01:53:50.000Z
2022-01-21T07:36:14.000Z
import sys import os import numpy as np RESULT_DIR = 'results/' PREFIX = ['ART', 'btree', 'prefixbtree', 'hot', 'microbench/cpr_latency', 'SuRF'] TYPE = ['point', 'range'] DATASETS = ['email', 'url', 'wiki'] VAR = ['cpr','x','height', 'fpr', 'lat', 'insertlat', 'lookuplat', 'mem', 'stats'] BT_OUTFILE = "../results/micr...
30.194175
86
0.50418
376
3,110
4.015957
0.337766
0.039735
0.025828
0.025828
0.099338
0.063576
0.063576
0
0
0
0
0.006965
0.353698
3,110
102
87
30.490196
0.744279
0.007074
0
0.113636
0
0
0.129294
0.033377
0
0
0
0
0
1
0.045455
false
0.011364
0.034091
0
0.079545
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
b6c2d0dc24c606298c21d99b5fb317a520be4673
2,139
py
Python
configuracion/migrations/0001_initial.py
ErickMurillo/aprocacaho
eecd216103e6b06e3ece174c89d911f27b50585a
[ "MIT" ]
null
null
null
configuracion/migrations/0001_initial.py
ErickMurillo/aprocacaho
eecd216103e6b06e3ece174c89d911f27b50585a
[ "MIT" ]
7
2020-06-05T17:11:32.000Z
2022-03-11T23:14:00.000Z
configuracion/migrations/0001_initial.py
ErickMurillo/aprocacaho
eecd216103e6b06e3ece174c89d911f27b50585a
[ "MIT" ]
1
2016-07-04T18:38:14.000Z
2016-07-04T18:38:14.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-09 22:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Actuali...
31.925373
114
0.510986
181
2,139
5.872928
0.320442
0.103481
0.117592
0.108184
0.604892
0.604892
0.604892
0.604892
0.604892
0.604892
0
0.013879
0.359981
2,139
66
115
32.409091
0.7626
0.031323
0
0.603448
1
0
0.144998
0
0
0
0
0
0
1
0
false
0
0.034483
0
0.103448
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b6c2e06c318572e03e24661769d9fadacecffe3d
1,647
py
Python
raspberryPi/control.py
djvolz/CarlLights
7e0f9d16f2a93c9fcdbd7c4caa3438d39685c498
[ "Beerware" ]
null
null
null
raspberryPi/control.py
djvolz/CarlLights
7e0f9d16f2a93c9fcdbd7c4caa3438d39685c498
[ "Beerware" ]
null
null
null
raspberryPi/control.py
djvolz/CarlLights
7e0f9d16f2a93c9fcdbd7c4caa3438d39685c498
[ "Beerware" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: djvolz # @Date: 2016-11-14 17:03:11 # @Last Modified by: djvolz # @Last Modified time: 2016-11-15 01:13:28 import time import json # import json library to parse messages import boto3 # import boto library that handles queuing functions import lightSequence as ls class Contro...
28.894737
75
0.604129
191
1,647
5.141361
0.539267
0.03055
0.032587
0
0
0
0
0
0
0
0
0.028344
0.314511
1,647
56
76
29.410714
0.841453
0.336976
0
0
0
0
0.091248
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.321429
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b6c56b5f68188582cabf5cbccf6cc782f9460133
22,361
py
Python
textboard/board.py
iMalinois/TextBoard
ca8c61ae1969c0a0c0863226771cd06cc13fcb43
[ "MIT" ]
3
2019-05-21T22:56:58.000Z
2020-07-29T12:01:48.000Z
textboard/board.py
iMalinois/TextBoard
ca8c61ae1969c0a0c0863226771cd06cc13fcb43
[ "MIT" ]
6
2019-05-21T07:26:04.000Z
2019-05-24T13:10:05.000Z
textboard/board.py
iMalinois/TextBoard
ca8c61ae1969c0a0c0863226771cd06cc13fcb43
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function from copy import copy from collections import OrderedDict from abc import ABCMeta, abstractmethod, abstractproperty from textboard.ansi import ANSI LOG_BOARD_DEFAULT_LINES_COUNT = 20 LOG_BOARD_SECTOR_DEFAULT_LINES_COUNT = 4 def _validate_id_property(cls...
35.663477
162
0.618398
2,938
22,361
4.505786
0.097345
0.046835
0.038299
0.016694
0.41955
0.340988
0.272095
0.232135
0.209246
0.183865
0
0.000447
0.299495
22,361
627
163
35.663477
0.844676
0.351907
0
0.286624
0
0
0.040501
0
0
0
0
0
0
1
0.219745
false
0.028662
0.015924
0
0.388535
0.015924
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b6c60ff992939fb96343007441d2c3b3c58baf13
41
py
Python
adobe_sign_api/__init__.py
lingthio/adobe_sign_api
a82cb13587fa8414f67263d5354c7413edfc44ac
[ "MIT" ]
6
2019-09-10T03:34:20.000Z
2021-08-08T14:42:00.000Z
adobe_sign_api/__init__.py
lingthio/adobe_sign_api
a82cb13587fa8414f67263d5354c7413edfc44ac
[ "MIT" ]
null
null
null
adobe_sign_api/__init__.py
lingthio/adobe_sign_api
a82cb13587fa8414f67263d5354c7413edfc44ac
[ "MIT" ]
1
2019-09-06T23:05:27.000Z
2019-09-06T23:05:27.000Z
from .adobe_sign_api import AdobeSignAPI
20.5
40
0.878049
6
41
5.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.097561
41
1
41
41
0.918919
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
b6c7c7680b4ba76a99f84c48fad447e0e2a46a23
2,350
py
Python
measurements/tasks/cleanup.py
nat64check/zaphod_backend
b92191950825e1a4fd8c34207c8491d587cfb61f
[ "BSD-3-Clause" ]
1
2017-11-14T16:22:38.000Z
2017-11-14T16:22:38.000Z
measurements/tasks/cleanup.py
sjm-steffann/nat64check_zaphod_backend
b92191950825e1a4fd8c34207c8491d587cfb61f
[ "BSD-3-Clause" ]
5
2019-12-03T05:36:07.000Z
2021-06-25T15:20:04.000Z
measurements/tasks/cleanup.py
sjm-steffann/nat64check_zaphod_backend
b92191950825e1a4fd8c34207c8491d587cfb61f
[ "BSD-3-Clause" ]
null
null
null
# •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• # Copyright (c) 2018, S.J.M. Steffann. This software is licensed under the BSD # 3-Clause License. Please see the LICENSE file in the project root directory. # •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••...
32.638889
115
0.580426
262
2,350
5.667939
0.473282
0.051852
0.028283
0.03367
0
0
0
0
0
0
0
0.014434
0.262979
2,350
71
116
33.098592
0.752887
0.190213
0
0.108696
0
0
0.176253
0.013193
0
0
0
0
0
1
0.021739
false
0
0.130435
0
0.217391
0.173913
0
0
0
null
0
0
0
0
0
0
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
b6c82c22096c001538617e60b4c65e0821866b31
6,593
py
Python
script/prepare_active_learning.py
oliverwatts/snickery
6d7e0b48cbb21760089bbbe85f6d7bd206f89821
[ "Apache-2.0" ]
28
2018-06-26T02:57:45.000Z
2021-12-01T01:07:23.000Z
script/prepare_active_learning.py
oliverwatts/snickery
6d7e0b48cbb21760089bbbe85f6d7bd206f89821
[ "Apache-2.0" ]
1
2018-11-02T09:29:29.000Z
2018-11-02T10:20:28.000Z
script/prepare_active_learning.py
oliverwatts/snickery
6d7e0b48cbb21760089bbbe85f6d7bd206f89821
[ "Apache-2.0" ]
5
2018-12-21T08:05:06.000Z
2021-01-16T16:43:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ## Project: ## Contact: Oliver Watts - owatts@staffmail.ed.ac.uk import sys import os import glob import os import fileinput from argparse import ArgumentParser import shelve import h5py import numpy import numpy as np from train_halfphone import get_data_dump_name fr...
26.162698
115
0.609586
882
6,593
4.346939
0.31746
0.007303
0.025561
0.009129
0.189098
0.129369
0.10746
0.08555
0.069901
0.069901
0
0.021405
0.2489
6,593
251
116
26.266932
0.752827
0.272107
0
0.106796
0
0
0.048858
0
0
0
0
0
0
0
null
null
0
0.15534
null
null
0.116505
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b6c876e63b43d2613e35e9f8be781edcaf28ef29
1,268
py
Python
filter_dict/core.py
daddinuz/filter_dict
5e4df5489a04eb0a97251197a45dfd8a56e88874
[ "MIT" ]
null
null
null
filter_dict/core.py
daddinuz/filter_dict
5e4df5489a04eb0a97251197a45dfd8a56e88874
[ "MIT" ]
1
2018-12-02T15:37:11.000Z
2018-12-04T04:59:50.000Z
filter_dict/core.py
daddinuz/filter_dict
5e4df5489a04eb0a97251197a45dfd8a56e88874
[ "MIT" ]
null
null
null
import typing import chainable_iterator K = typing.TypeVar('K') V = typing.TypeVar('V') P = typing.List[K] Predicate = typing.Callable[[P, K, V], bool] _Node = typing.NamedTuple('_Node', (('path', P), ('data', typing.Mapping))) def match_all(_kp: P, _k: K, _v: V) -> bool: return True def _decompose_dict(predi...
30.926829
94
0.614353
177
1,268
4.254237
0.288136
0.023904
0.074369
0.079681
0.166003
0.132802
0.132802
0.132802
0.132802
0.132802
0
0.00207
0.23817
1,268
40
95
31.7
0.777433
0
0
0
0
0
0.01183
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0.066667
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
b6c8ac2b3828724efc5a4b1a174acc6003af0ab7
2,549
py
Python
src/marlb.py
bennett-nguyen/marlb
f169fa814c7454dce54fd6d0ce8e0821280345b2
[ "MIT" ]
4
2021-12-15T14:41:43.000Z
2021-12-27T18:57:13.000Z
src/marlb.py
bennett-nguyen/marlb
f169fa814c7454dce54fd6d0ce8e0821280345b2
[ "MIT" ]
null
null
null
src/marlb.py
bennett-nguyen/marlb
f169fa814c7454dce54fd6d0ce8e0821280345b2
[ "MIT" ]
null
null
null
import argparse import os import re from utils import interpret parser = argparse.ArgumentParser() parser.add_argument("-m", "--mode", choices=["interpret", "debug"], required=True, help="Mode to interpret your file") parser.add_argument("-f", "--file", required=True, help="File to interpret, pass in either file name...
31.085366
175
0.532366
281
2,549
4.704626
0.362989
0.066566
0.049924
0.040847
0.142209
0.057489
0.057489
0.057489
0
0
0
0.003928
0.300902
2,549
81
176
31.469136
0.737935
0
0
0.25
0
0
0.238133
0.025893
0
0
0
0
0
1
0.035714
false
0.017857
0.071429
0
0.25
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
b6cb847d557da703ed48e69c2c1a9916ef360141
598
py
Python
capella_console_client/cli/sanitize.py
capellaspace/console-client
bad631f207043231630c9b8c0893a1b4382d4061
[ "MIT" ]
23
2021-07-28T19:32:25.000Z
2022-03-19T07:57:36.000Z
capella_console_client/cli/sanitize.py
capellaspace/console-client
bad631f207043231630c9b8c0893a1b4382d4061
[ "MIT" ]
6
2021-07-16T22:31:56.000Z
2022-03-11T21:09:40.000Z
capella_console_client/cli/sanitize.py
capellaspace/console-client
bad631f207043231630c9b8c0893a1b4382d4061
[ "MIT" ]
1
2022-01-05T18:38:46.000Z
2022-01-05T18:38:46.000Z
import json from uuid import UUID from pathlib import Path from typing import List, Dict, Any, Iterable class SafeEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, UUID): # if the obj is uuid, we simply return the value of uuid return obj.hex return json...
26
68
0.670569
89
598
4.370787
0.426966
0.102828
0.071979
0
0
0
0
0
0
0
0
0
0.244147
598
22
69
27.181818
0.860619
0.090301
0
0
0
0
0
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
1
0
0
1
b6cbfc1847ede598c7c1e4c45f5ef9f8cdf47c97
1,165
py
Python
portal/libs/scripts/snapshots.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/libs/scripts/snapshots.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/libs/scripts/snapshots.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
7
2020-12-15T19:59:17.000Z
2021-11-24T16:47:06.000Z
#!/usr/bin/python # -*- coding utf-8 -*- import os import subprocess def make_snapshot(filename, page=0): output = filename.replace('.pdf', '.jpg') if os.path.exists(output): return None # os.unlink(output) print filename args = ['convert', '%s[%i]' % (filename, page), output] stde...
27.093023
81
0.556223
149
1,165
4.248322
0.42953
0.044234
0.014218
0.012638
0.011058
0
0
0
0
0
0
0.006046
0.290129
1,165
42
82
27.738095
0.759371
0.04721
0
0.142857
0
0
0.053297
0
0
0
0
0
0
0
null
null
0
0.057143
null
null
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b6cc07d04501634b38a9132db0f8a13778e8d948
1,333
py
Python
almatsurat_data_compiler.py
IMuslim-org/Al-Matsurat-Internalisation
ad92da6c623911801af23d2d96335e8dedbcd148
[ "BSD-2-Clause" ]
null
null
null
almatsurat_data_compiler.py
IMuslim-org/Al-Matsurat-Internalisation
ad92da6c623911801af23d2d96335e8dedbcd148
[ "BSD-2-Clause" ]
null
null
null
almatsurat_data_compiler.py
IMuslim-org/Al-Matsurat-Internalisation
ad92da6c623911801af23d2d96335e8dedbcd148
[ "BSD-2-Clause" ]
null
null
null
import csv import json import os import argparse parser = argparse.ArgumentParser() parser.add_argument("--dzikir_type", dest="dzikir_type", type=str, help="Please Add Al Matsurat Type") args = parser.parse_args() dzikir_type = args.dzikir_type if dzikir_type == None: dzikir_type = "sugro" __dir__ = os.path.d...
24.236364
102
0.651913
167
1,333
4.898204
0.359281
0.0978
0.03912
0.05868
0.155257
0.06357
0.06357
0
0
0
0
0.004757
0.211553
1,333
55
103
24.236364
0.773549
0.021005
0
0.176471
0
0
0.162058
0.089094
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
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
b6cc4aeb99e1db488430dfb0021b28e612cd980b
3,642
py
Python
prometheus_api_client/metric_range_df.py
chauhankaranraj/prometheus-api-client-python
5c09c7f3d5b9b2f16dc3aa19c84e9a45c6e23327
[ "MIT" ]
118
2019-03-31T14:43:25.000Z
2022-03-20T02:35:42.000Z
prometheus_api_client/metric_range_df.py
chauhankaranraj/prometheus-api-client-python
5c09c7f3d5b9b2f16dc3aa19c84e9a45c6e23327
[ "MIT" ]
225
2019-03-22T19:31:51.000Z
2022-03-29T15:38:20.000Z
prometheus_api_client/metric_range_df.py
chauhankaranraj/prometheus-api-client-python
5c09c7f3d5b9b2f16dc3aa19c84e9a45c6e23327
[ "MIT" ]
67
2019-03-21T19:00:52.000Z
2022-03-31T12:01:14.000Z
"""A pandas.DataFrame subclass for Prometheus range vector responses.""" from pandas import DataFrame from pandas._typing import Axes, Dtype from typing import Optional, Sequence class MetricRangeDataFrame(DataFrame): """Subclass to format and represent Prometheus query response as pandas.DataFrame. Assumes ...
46.692308
107
0.547227
391
3,642
4.976982
0.388747
0.02261
0.016958
0.020555
0.040082
0.040082
0.040082
0.040082
0
0
0
0.012232
0.281713
3,642
77
108
47.298701
0.731651
0.674355
0
0
0
0
0.105871
0
0
0
0
0
0
1
0.037037
false
0
0.111111
0
0.185185
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
b6cdb079c562be783ee1672f61ed3ddde8daade9
408
py
Python
testing/testing-xarray-pydap.py
jenfly/atmos-read
0d7315b3ae12b649af298c43bbedbfc5b519afaa
[ "MIT" ]
3
2018-03-30T20:39:52.000Z
2019-01-02T19:16:08.000Z
testing/testing-xarray-pydap.py
jenfly/atmos-read
0d7315b3ae12b649af298c43bbedbfc5b519afaa
[ "MIT" ]
null
null
null
testing/testing-xarray-pydap.py
jenfly/atmos-read
0d7315b3ae12b649af298c43bbedbfc5b519afaa
[ "MIT" ]
null
null
null
import sys sys.path.append('/home/jwalker/dynamics/python/atmos-tools') sys.path.append('/home/jwalker/dynamics/python/atmos-read') import os import xarray as xray import pydap import numpy as np import collections import atmos as atm url = 'http://iridl.ldeo.columbia.edu/SOURCES/.OSU/.PRISM/.monthly/dods' ds = xray...
25.5
72
0.77451
65
408
4.815385
0.615385
0.044728
0.083067
0.108626
0.27476
0.27476
0.27476
0.27476
0
0
0
0.002688
0.088235
408
16
73
25.5
0.83871
0
0
0
0
0
0.366748
0.198044
0
0
0
0
0
1
0
false
0
0.583333
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
b6ce2aec2391ea0b9093ac93109f9105c5b3043c
1,076
py
Python
projects/PointsColletion/pointscollection/layers/emd/modules/emd.py
li-haoran/detectron2
84aebaaed19b07cce9dfd579f98b09ad4ed22e90
[ "Apache-2.0" ]
null
null
null
projects/PointsColletion/pointscollection/layers/emd/modules/emd.py
li-haoran/detectron2
84aebaaed19b07cce9dfd579f98b09ad4ed22e90
[ "Apache-2.0" ]
null
null
null
projects/PointsColletion/pointscollection/layers/emd/modules/emd.py
li-haoran/detectron2
84aebaaed19b07cce9dfd579f98b09ad4ed22e90
[ "Apache-2.0" ]
null
null
null
# EMD approximation module (based on auction algorithm) # memory complexity: O(n) # time complexity: O(n^2 * iter) # author: Minghua Liu # input: # p1, p2: [#batch, #points, 3] # where p1 is the predicted point cloud and p2 is the ground truth point cloud # two point clouds should have same size and be normalized to...
30.742857
91
0.715613
168
1,076
4.52381
0.565476
0.015789
0.031579
0.05
0.063158
0
0
0
0
0
0
0.024447
0.201673
1,076
35
92
30.742857
0.860303
0.703532
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.375
0.125
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
0
0
0
3
b6ce85f9e35e48f81120db106f1180d6d1703043
437
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/website_google_map/__manifest__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/website_google_map/__manifest__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/website_google_map/__manifest__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Website Google Map', 'category': 'Website', 'summary': '', 'version': '1.0', 'description': """ Odoo Website Google Map ========================== """, 'depends': ['base_geoloca...
23
74
0.540046
43
437
5.395349
0.813953
0.116379
0.137931
0
0
0
0
0
0
0
0
0.008902
0.228833
437
18
75
24.277778
0.679525
0.215103
0
0
0
0
0.614706
0.164706
0
0
0
0
0
1
0
true
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
b6d182de999f2b8dda4a0f8767443a13245f8b9e
710
py
Python
nmtpytorch/layers/pw/embedding.py
toshohirasawa/nmtpytorch-emb-pred
3b2d60990967c391aa32ce1e1a9e5cef6229c705
[ "MIT" ]
4
2019-05-22T00:17:28.000Z
2020-08-26T02:03:33.000Z
nmtpytorch/layers/pw/embedding.py
toshohirasawa/nmtpytorch-emb-pred
3b2d60990967c391aa32ce1e1a9e5cef6229c705
[ "MIT" ]
3
2019-07-14T09:17:11.000Z
2022-01-13T01:15:10.000Z
nmtpytorch/layers/pw/embedding.py
toshohirasawa/nmtpytorch-emb-pred
3b2d60990967c391aa32ce1e1a9e5cef6229c705
[ "MIT" ]
null
null
null
from torch import nn import torch class EmbeddingOutput(nn.Module): def __init__(self, n_vocab, emb_size, weight=None): super().__init__() self.n_vocab, self.emb_size = n_vocab, emb_size if weight == None: weight = torch.randn(n_vocab, emb_size) # travarse matrix for ...
29.583333
65
0.650704
95
710
4.515789
0.442105
0.083916
0.083916
0.121212
0.079254
0
0
0
0
0
0
0
0.249296
710
23
66
30.869565
0.804878
0.139437
0
0
0
0
0.082237
0.080592
0
0
0
0
0
1
0.2
false
0
0.133333
0.133333
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
b6d40c0b4675da86701d6ce4d065ffec39bc4d25
8,216
py
Python
cdApi/discount.py
renqiukai/cd_api
4f1f641adaf031252b097db03249a2581268cc11
[ "MIT" ]
null
null
null
cdApi/discount.py
renqiukai/cd_api
4f1f641adaf031252b097db03249a2581268cc11
[ "MIT" ]
null
null
null
cdApi/discount.py
renqiukai/cd_api
4f1f641adaf031252b097db03249a2581268cc11
[ "MIT" ]
null
null
null
''' @说明 :满减送接口。 @时间 :2020/2/13 下午4:28:26 @作者 :任秋锴 @版本 :1.0 ''' from .base import base from .product import product from .store import store class discount(base): def __init__(self, token): super().__init__(token) def list(self, state=None, name=None, ...
29.985401
66
0.443403
740
8,216
4.827027
0.214865
0.023516
0.023516
0.030235
0.495521
0.43561
0.380179
0.354983
0.343785
0.31243
0
0.036531
0.430258
8,216
273
67
30.095238
0.726554
0.047712
0
0.52968
0
0
0.151808
0.011964
0
0
0
0
0
1
0.045662
false
0
0.013699
0
0.114155
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
b6d4d24a9d02c1d338914db5f0e973ea12ab7e75
1,793
py
Python
login.py
2oYC/Monopoly
c039cddadb38326bc4ce1ddd36c3a51887e9fbe2
[ "MIT" ]
null
null
null
login.py
2oYC/Monopoly
c039cddadb38326bc4ce1ddd36c3a51887e9fbe2
[ "MIT" ]
null
null
null
login.py
2oYC/Monopoly
c039cddadb38326bc4ce1ddd36c3a51887e9fbe2
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import time usernameStr = 'user_teamj' passwordStr = 'aad@123' def login(quesno,diff): # diff = 0 # # difficulty ...
27.166667
89
0.662019
220
1,793
5.263636
0.445455
0.066494
0.108808
0.120898
0.205527
0.1019
0.055268
0
0
0
0
0.014493
0.191857
1,793
65
90
27.584615
0.784679
0.232013
0
0
0
0
0.18893
0.115867
0
0
0
0
0
1
0.032258
false
0.096774
0.16129
0
0.193548
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b6d550ad2ae06f4375b0baa41ab881e26142f3e6
589
py
Python
blanc_basic_pages/migrations/0002_page_hero_image.py
src-r-r/blanc-basic-pages
2714567e054cafeaaefd533a1786cdef43369f9d
[ "BSD-3-Clause" ]
1
2020-01-11T12:48:38.000Z
2020-01-11T12:48:38.000Z
blanc_basic_pages/migrations/0002_page_hero_image.py
src-r-r/blanc-basic-pages
2714567e054cafeaaefd533a1786cdef43369f9d
[ "BSD-3-Clause" ]
1
2017-05-02T21:41:35.000Z
2017-05-02T21:41:35.000Z
blanc_basic_pages/migrations/0002_page_hero_image.py
src-r-r/blanc-basic-pages
2714567e054cafeaaefd533a1786cdef43369f9d
[ "BSD-3-Clause" ]
2
2020-01-11T12:49:03.000Z
2020-10-17T00:34:29.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import blanc_basic_assets.fields import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('assets', '0001_initial'), ('pages', '0001_initial'), ] ope...
25.608696
148
0.657046
65
589
5.723077
0.6
0.064516
0.086022
0.11828
0
0
0
0
0
0
0
0.019565
0.219015
589
22
149
26.772727
0.78913
0.035654
0
0
0
0
0.107774
0
0
0
0
0
0
1
0
false
0
0.25
0
0.4375
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
b6d62cb0d58d04d2fb59cddbe5dfdb15bc52ce89
4,538
py
Python
src/app/beer_garden/metrics.py
ExpressHermes/beer-garden
2ea0944d7528a8127bc1b79d16d8fdc668f1c8e4
[ "MIT" ]
null
null
null
src/app/beer_garden/metrics.py
ExpressHermes/beer-garden
2ea0944d7528a8127bc1b79d16d8fdc668f1c8e4
[ "MIT" ]
null
null
null
src/app/beer_garden/metrics.py
ExpressHermes/beer-garden
2ea0944d7528a8127bc1b79d16d8fdc668f1c8e4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Metrics Service The metrics service manages: * Connectivity to the Prometheus Server * Creating default summary views in Prometheus * Publishing `Request` metrics """ import datetime import logging from http.server import ThreadingHTTPServer from brewtils.models import Request from brewti...
28.721519
86
0.694579
511
4,538
5.921722
0.252446
0.059484
0.035691
0.039656
0.329478
0.29577
0.25347
0.206543
0.206543
0.206543
0
0.000274
0.197003
4,538
157
87
28.904459
0.830132
0.128911
0
0.227723
0
0
0.203794
0.027685
0
0
0
0
0
1
0.079208
false
0
0.089109
0
0.188119
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
b6d923de7666600e544be448396f3fd26e44e836
2,368
py
Python
sendmail/__init__.py
hmif-itb/hmif-send-mail
628e283d7de06b132fe72af97b76104ea5ff8c88
[ "MIT" ]
null
null
null
sendmail/__init__.py
hmif-itb/hmif-send-mail
628e283d7de06b132fe72af97b76104ea5ff8c88
[ "MIT" ]
null
null
null
sendmail/__init__.py
hmif-itb/hmif-send-mail
628e283d7de06b132fe72af97b76104ea5ff8c88
[ "MIT" ]
null
null
null
import argparse from .helpers import yaml_parser from .mailer import Mailer from .utils import csv_to_recipients from .exceptions import TemplateNotFoundException from .exceptions import TemplateAndCSVNotMatchException def main(): parser = argparse.ArgumentParser() parser.add_argument("--config", help="yaml ...
37
82
0.600084
251
2,368
5.478088
0.270916
0.069818
0.086545
0.019636
0.058182
0
0
0
0
0
0
0
0.310389
2,368
63
83
37.587302
0.842009
0
0
0.058824
0
0
0.154561
0
0
0
0
0
0
1
0.019608
false
0
0.117647
0
0.137255
0.058824
0
0
0
null
0
0
0
0
0
0
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
b6d95e9d197de4562be8336500d24a19ca05a815
1,540
py
Python
aquascope/tests/aquascope/webserver/data_access/db/dummy_uploads.py
MicroscopeIT/aquascope_backend
6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24
[ "MIT" ]
null
null
null
aquascope/tests/aquascope/webserver/data_access/db/dummy_uploads.py
MicroscopeIT/aquascope_backend
6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24
[ "MIT" ]
3
2021-06-08T19:50:36.000Z
2021-09-08T01:15:33.000Z
aquascope/tests/aquascope/webserver/data_access/db/dummy_uploads.py
MicroscopeIT/aquascope_backend
6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24
[ "MIT" ]
2
2019-05-15T13:30:42.000Z
2020-06-12T02:42:49.000Z
import copy from bson import ObjectId from aquascope.webserver.data_access.db.upload import Upload, DEFAULT_UPLOAD_PROJECTION from aquascope.webserver.data_access.db.util import project_dict _DUMMY_UPLOADS = [ { '_id': ObjectId('000000000000000000001000'), 'filename': 'dummy0', 'state': '...
27.017544
103
0.587013
140
1,540
6.142857
0.421429
0.069767
0.051163
0.060465
0.132558
0.07907
0
0
0
0
0
0.121454
0.267532
1,540
56
104
27.5
0.640957
0
0
0.039216
0
0
0.327922
0.121429
0
0
0
0
0
1
0
false
0
0.078431
0
0.078431
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
b6d96dd49a13b9761c39ef2d1c9b9e38d768bfea
1,855
py
Python
setup.py
boryana-ilieva/soepy_dev
98655bb1d7012c5554201a8dcfb728eeeaadf5bf
[ "MIT" ]
null
null
null
setup.py
boryana-ilieva/soepy_dev
98655bb1d7012c5554201a8dcfb728eeeaadf5bf
[ "MIT" ]
null
null
null
setup.py
boryana-ilieva/soepy_dev
98655bb1d7012c5554201a8dcfb728eeeaadf5bf
[ "MIT" ]
null
null
null
import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command # Package meta-data. NAME = "soepy" DESCRIPTION = ( "soepy is an open-source Python package for the simulation and estimation of a " "dynamic model of human capital accumulation tailored to the German Socio-Eco...
24.733333
87
0.654987
231
1,855
5.203463
0.584416
0.019967
0.016639
0.023295
0
0
0
0
0
0
0
0.007581
0.21779
1,855
74
88
25.067568
0.814611
0.068464
0
0.057692
0
0
0.308275
0
0
0
0
0
0
1
0.076923
false
0.057692
0.076923
0
0.211538
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b6dae59c813a21c1bae77174eb41e6d55a7c96e9
1,833
py
Python
Sort/IndexMinPQ.py
sywh/algorithms
8df353aa6716f2ed83e9167a27ceb6d3384891da
[ "MIT" ]
null
null
null
Sort/IndexMinPQ.py
sywh/algorithms
8df353aa6716f2ed83e9167a27ceb6d3384891da
[ "MIT" ]
null
null
null
Sort/IndexMinPQ.py
sywh/algorithms
8df353aa6716f2ed83e9167a27ceb6d3384891da
[ "MIT" ]
null
null
null
class IndexMinPQ: # refer to https://www.cnblogs.com/nullzx/p/6624731.html def __init__(self, max): # how about resize? self.pq = [None] * (max + 1) self.qp = [None] * (max + 1) # inverse of pq: qp[pq[i]] = pq[qp[i]] = i self.keys = [None] * (max + 1) # keys[i] = priority of i se...
25.458333
80
0.454446
282
1,833
2.939716
0.198582
0.094089
0.033776
0.039807
0.137515
0.050663
0
0
0
0
0
0.025203
0.39389
1,833
71
81
25.816901
0.720972
0.085652
0
0.068966
0
0
0
0
0
0
0
0
0.017241
1
0.206897
false
0
0
0.051724
0.327586
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b6ddbe7c2cabd5e9f6c3a2acc63484a224906441
702
py
Python
careapi/models.py
Framinus/transgendercare
3c5fc53774fb5e808a5f33faa1f7a288d9f33d56
[ "MIT" ]
null
null
null
careapi/models.py
Framinus/transgendercare
3c5fc53774fb5e808a5f33faa1f7a288d9f33d56
[ "MIT" ]
null
null
null
careapi/models.py
Framinus/transgendercare
3c5fc53774fb5e808a5f33faa1f7a288d9f33d56
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Office(models.Model): name = models.CharField(max_length=200) staff_rating = models.IntegerField(default=0) forms_language = models.IntegerField(default=0) class Provider(models.Model): name = models.CharField(max_length=200) zip_code =...
30.521739
52
0.716524
89
702
5.505618
0.460674
0.110204
0.183673
0.244898
0.281633
0.171429
0.171429
0.171429
0
0
0
0.033101
0.182336
702
23
53
30.521739
0.820557
0.034188
0
0.105263
0
0
0
0
0
0
0
0
0
1
0
false
0.052632
0.052632
0
0.736842
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
4
b6dea75ac1d892435b1297a25c34723e9ed2ad4b
4,961
py
Python
Features/OCR.py
JosephLteif/Smart-Assistant
6f428288da3abf21e83d64e7db63a41eba9c496c
[ "MIT" ]
null
null
null
Features/OCR.py
JosephLteif/Smart-Assistant
6f428288da3abf21e83d64e7db63a41eba9c496c
[ "MIT" ]
null
null
null
Features/OCR.py
JosephLteif/Smart-Assistant
6f428288da3abf21e83d64e7db63a41eba9c496c
[ "MIT" ]
null
null
null
# Import required packages import os import time import cv2 import imutils import numpy as np import pytesseract from autocorrect import Speller from PIL import Image def VideoOn(): video = cv2.VideoCapture(0, cv2.CAP_DSHOW) while True: # check returns true if python can actually read and frame is n...
29.011696
100
0.642209
645
4,961
4.897674
0.368992
0.02849
0.034188
0.023742
0.149414
0.106363
0.084204
0.039253
0.039253
0.039253
0
0.029162
0.239669
4,961
171
101
29.011696
0.808325
0.263657
0
0.153061
0
0
0.091337
0.070578
0
0
0
0
0
1
0.091837
false
0
0.081633
0
0.234694
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
b6dff72d70ac2ad0638bfd3497907c8deb6f393f
167
py
Python
CursoEmVideo/Aula07/ex013.py
lucashsouza/Desafios-Python
abb5b11ebdfd4c232b4f0427ef41fd96013f2802
[ "MIT" ]
null
null
null
CursoEmVideo/Aula07/ex013.py
lucashsouza/Desafios-Python
abb5b11ebdfd4c232b4f0427ef41fd96013f2802
[ "MIT" ]
null
null
null
CursoEmVideo/Aula07/ex013.py
lucashsouza/Desafios-Python
abb5b11ebdfd4c232b4f0427ef41fd96013f2802
[ "MIT" ]
null
null
null
sal = float(input('Digite seu salario: R$')) aum = sal * 0.15 print('Parabens, você ganhou um aumento de 15%') print('Seu novo salario é de R${}'.format(sal + aum))
41.75
53
0.658683
29
167
3.793103
0.689655
0.127273
0
0
0
0
0
0
0
0
0
0.035971
0.167665
167
4
53
41.75
0.755396
0
0
0
0
0
0.527273
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
b6e01231f6ddaed17eabf22f2cf909de2da3fd64
8,289
py
Python
tests/test_backend.py
pbaehr/django-cas-ng
470fc9ab4d6110cf39cc434c8317097546aa4ced
[ "MIT" ]
null
null
null
tests/test_backend.py
pbaehr/django-cas-ng
470fc9ab4d6110cf39cc434c8317097546aa4ced
[ "MIT" ]
1
2017-07-17T12:31:28.000Z
2017-07-31T08:59:35.000Z
tests/test_backend.py
WernerRaath/django-cas-ng
2999648af76e888ea0122c8f727451396cf9f724
[ "MIT" ]
1
2019-03-06T09:44:08.000Z
2019-03-06T09:44:08.000Z
from __future__ import absolute_import import sys import pytest from django.test import RequestFactory from django_cas_ng import backends @pytest.mark.django_db def test_backend_authentication_creating_a_user(monkeypatch, django_user_model): """ Test the case where CAS authentication is creating a new user....
31.51711
93
0.694414
1,008
8,289
5.565476
0.109127
0.055615
0.047415
0.040998
0.870232
0.860606
0.860606
0.84795
0.84795
0.836185
0
0.001365
0.204488
8,289
262
94
31.637405
0.849409
0.186754
0
0.79085
0
0
0.152131
0.039587
0
0
0
0
0.163399
1
0.124183
false
0
0.03268
0.065359
0.228758
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
b6e017a707606aa130c9e5c3bc33df054392f69e
4,208
py
Python
gunnery/core/migrations/0005_auto__add_serverauthentication__add_field_server_method.py
timgates42/gunnery
733a261cae6243a11883a40e18b14f57cf6e47b2
[ "Apache-2.0" ]
314
2015-01-01T06:17:34.000Z
2022-03-10T03:34:02.000Z
gunnery/core/migrations/0005_auto__add_serverauthentication__add_field_server_method.py
timgates42/gunnery
733a261cae6243a11883a40e18b14f57cf6e47b2
[ "Apache-2.0" ]
20
2015-04-03T13:34:59.000Z
2021-06-10T20:37:25.000Z
gunnery/core/migrations/0005_auto__add_serverauthentication__add_field_server_method.py
pkucmus/gunnery
30fce7f3fd74947621da6e91c1e872f383fc1e71
[ "Apache-2.0" ]
57
2015-01-07T05:41:34.000Z
2021-10-31T19:56:50.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'ServerAuthentication' db.create_table(u'core_serverauthen...
56.106667
165
0.57557
430
4,208
5.532558
0.202326
0.087432
0.147121
0.210172
0.564943
0.527112
0.503153
0.366961
0.295502
0.210593
0
0.007764
0.204135
4,208
75
166
56.106667
0.702598
0.036835
0
0.116667
0
0
0.523468
0.271245
0
0
0
0
0
1
0.033333
false
0.033333
0.066667
0
0.15
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b6e0c18e1b0c4376c070fbdb4d419c07ae32956c
3,160
py
Python
t1_extract_data_from_db.py
AuthEceSoftEng/MiningSOAnswerEdits
3353db1dabf592df5e4c569f6ebb6e1a752a4a24
[ "Apache-2.0" ]
1
2020-11-06T03:45:56.000Z
2020-11-06T03:45:56.000Z
t1_extract_data_from_db.py
AuthEceSoftEng/MiningSOAnswerEdits
3353db1dabf592df5e4c569f6ebb6e1a752a4a24
[ "Apache-2.0" ]
null
null
null
t1_extract_data_from_db.py
AuthEceSoftEng/MiningSOAnswerEdits
3353db1dabf592df5e4c569f6ebb6e1a752a4a24
[ "Apache-2.0" ]
2
2020-11-02T08:16:06.000Z
2020-12-09T04:01:18.000Z
from pandas import DataFrame import mysql.connector as mc from properties import user, password, host, port, database, data_path cnx = mc.connect(user=user, password=password, host=host, port=port, database=database) cursor = cnx.cursor() # Find answer(with code block which has changed at least once) ids sql1...
39.5
184
0.774684
489
3,160
4.916155
0.220859
0.146007
0.106073
0.055324
0.509567
0.442596
0.37604
0.326123
0.291181
0.291181
0
0.053914
0.143038
3,160
79
185
40
0.833826
0.119304
0
0.196721
0
0.04918
0.758813
0.26308
0
0
0
0
0
1
0
false
0.032787
0.04918
0
0.04918
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b6e1e6d3adbca60b66dd0941ce9aa4bd443a43a2
278
py
Python
qcow2tool/sub_scan.py
nishemon/qcow2tool
4db1516488e598baae9d2e64ba5c0fbea3a68d7b
[ "MIT" ]
2
2018-02-27T07:00:47.000Z
2020-05-20T09:51:17.000Z
qcow2tool/sub_scan.py
nishemon/qcow2tool
4db1516488e598baae9d2e64ba5c0fbea3a68d7b
[ "MIT" ]
null
null
null
qcow2tool/sub_scan.py
nishemon/qcow2tool
4db1516488e598baae9d2e64ba5c0fbea3a68d7b
[ "MIT" ]
1
2019-11-27T09:56:17.000Z
2019-11-27T09:56:17.000Z
import argparse def scan(conf, args): pass def setup_subcmd(subparsers): scan_parser = subparsers.add_parser('scan', help='scan qcow2 image dir') scan_parser.add_argument('srcdir', type=argparse.FileType('r'), nargs=1) scan_parser.set_defaults(handler=scan)
23.166667
76
0.733813
39
278
5.051282
0.666667
0.152284
0
0
0
0
0
0
0
0
0
0.008368
0.140288
278
11
77
25.272727
0.8159
0
0
0
0
0
0.111511
0
0
0
0
0
0
1
0.285714
false
0.142857
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
b6e1ea932d8c5cacb20dcd319573741e59522077
4,395
py
Python
scrapy/tests/test_contrib_exp_crawlspider_reqgen.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
scrapy/tests/test_contrib_exp_crawlspider_reqgen.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
scrapy/tests/test_contrib_exp_crawlspider_reqgen.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
from twisted.internet import defer from twisted.trial import unittest from scrapy.http import Request from scrapy.http import HtmlResponse from scrapy.utils.python import equal_attributes from scrapy.contrib_exp.crawlspider.reqext import SgmlRequestExtractor from scrapy.contrib_exp.crawlspider.reqgen import RequestGe...
35.16
81
0.598635
435
4,395
5.954023
0.225287
0.034749
0.043243
0.056757
0.501158
0.471042
0.471042
0.385714
0.385714
0.385714
0
0.009455
0.278043
4,395
124
82
35.443548
0.806807
0.014334
0
0.484211
0
0.010526
0.164317
0.023111
0
0
0
0
0
1
0.052632
false
0
0.115789
0
0.210526
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
b6e323612c27f1c648a39e77bf266f1f8b1edb1c
5,891
py
Python
scripts/train_agents.py
Silviatulli/minmax_transparency_project
45f93870d4366c8a1d0d5a43cf270ec92bc7a63b
[ "MIT" ]
1
2021-07-13T02:55:16.000Z
2021-07-13T02:55:16.000Z
scripts/train_agents.py
Silviatulli/minmax_transparency_project
45f93870d4366c8a1d0d5a43cf270ec92bc7a63b
[ "MIT" ]
1
2020-07-06T08:44:28.000Z
2020-07-06T08:44:28.000Z
scripts/train_agents.py
Silviatulli/minmax_transparency_project
45f93870d4366c8a1d0d5a43cf270ec92bc7a63b
[ "MIT" ]
1
2020-03-15T15:53:40.000Z
2020-03-15T15:53:40.000Z
import tensorflow as tf import json from sklearn.model_selection import KFold import jsonpickle import numpy as np from minmax.game_model import GameState def load_data(file_name): with open(file_name, "r") as file: data = json.load(file) data_decoded = jsonpickle.decode(data) states = list(...
33.282486
79
0.654728
800
5,891
4.5975
0.195
0.036161
0.042414
0.04894
0.430941
0.386079
0.346384
0.313757
0.250136
0.250136
0
0.015457
0.209302
5,891
176
80
33.471591
0.774152
0.138856
0
0.226087
0
0
0.056922
0.02261
0
0
0
0
0
1
0.026087
false
0
0.052174
0
0.104348
0.017391
0
0
0
null
0
0
0
0
0
0
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
b6e3ed186797b0db9105b6d4c93d6db5f25cd9a2
447
py
Python
blockapi/test/api/test_tronscan.py
jendis/blockapi
c886cef954a504fc926c132b30acddc71abe5f12
[ "MIT" ]
null
null
null
blockapi/test/api/test_tronscan.py
jendis/blockapi
c886cef954a504fc926c132b30acddc71abe5f12
[ "MIT" ]
null
null
null
blockapi/test/api/test_tronscan.py
jendis/blockapi
c886cef954a504fc926c132b30acddc71abe5f12
[ "MIT" ]
null
null
null
from pytest import mark from blockapi.api.tronscan import TronscanAPI from blockapi.test_init import test_addresses class TestTronscanAPI: ADDRESS = test_addresses['TRX'][0] @mark.vcr() def test_get_balance(self): api = TronscanAPI(address=self.ADDRESS) result = api.get_balance() ...
24.833333
78
0.655481
58
447
4.948276
0.568966
0.083624
0
0
0
0
0
0
0
0
0
0.02907
0.230425
447
17
79
26.294118
0.805233
0
0
0
0
0
0.040268
0
0
0
0
0
0.166667
1
0.083333
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
b6e731b3f53ab367c89ef0ea8e1cbffb0d990775
429
py
Python
kornia/feature/loftr/backbone/__init__.py
Ishticode/kornia
974abb43ec72d12dbd244a2fb247bbbab8498de0
[ "ECL-2.0", "Apache-2.0" ]
4,894
2019-10-24T15:51:39.000Z
2022-03-30T22:58:33.000Z
kornia/feature/loftr/backbone/__init__.py
Ishticode/kornia
974abb43ec72d12dbd244a2fb247bbbab8498de0
[ "ECL-2.0", "Apache-2.0" ]
912
2019-10-24T16:08:42.000Z
2022-03-31T19:07:09.000Z
kornia/feature/loftr/backbone/__init__.py
Ishticode/kornia
974abb43ec72d12dbd244a2fb247bbbab8498de0
[ "ECL-2.0", "Apache-2.0" ]
557
2019-10-24T16:02:43.000Z
2022-03-28T07:33:33.000Z
from .resnet_fpn import ResNetFPN_8_2, ResNetFPN_16_4 def build_backbone(config): if config['backbone_type'] == 'ResNetFPN': if config['resolution'] == (8, 2): return ResNetFPN_8_2(config['resnetfpn']) elif config['resolution'] == (16, 4): return ResNetFPN_16_4(config['resn...
35.75
89
0.655012
53
429
5.056604
0.471698
0.022388
0.08209
0
0
0
0
0
0
0
0
0.044118
0.207459
429
11
90
39
0.744118
0
0
0
0
0
0.27972
0.058275
0
0
0
0
0
1
0.111111
false
0
0.111111
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
b6e9c145098ed95681098c525d8b180ef7ee86d5
554
py
Python
itaizi/list.py
kaheiseki/itaizi
cb52672475ce074b57bd4244f7d5d1f83b541921
[ "MIT" ]
null
null
null
itaizi/list.py
kaheiseki/itaizi
cb52672475ce074b57bd4244f7d5d1f83b541921
[ "MIT" ]
1
2022-03-19T08:51:08.000Z
2022-03-19T08:51:08.000Z
itaizi/list.py
kaheiseki/itaizi
cb52672475ce074b57bd4244f7d5d1f83b541921
[ "MIT" ]
null
null
null
itaizi_list = { "亞":"亜", "啞":"唖", "瘂":"唖", "惡":"悪", "蘆":"芦", "鰺":"鯵", "壓":"圧", "葊":"庵", "菴":"庵", "桉":"案", "圍":"囲", "爲":"為", "醫":"医", "毓":"育", "弌":"一", "壹":"壱", "稻":"稲", "囙":"因", "婣":"姻", "飮":"飲", "滛":"淫", "婬":"淫", "隱":"隠", "阴":"陰", "隂":"陰", "夘":"卯", "丒":"丑", "噓":"...
10.45283
15
0.196751
99
554
1.090909
0.919192
0
0
0
0
0
0
0
0
0
0
0.005
0.277978
554
53
16
10.45283
0.265
0.00361
0
0
0
0
0.174545
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b6e9e820b7afe09d1d292ddb58ac088c11338fa6
5,298
py
Python
bitsoapi/Client.py
oxsoftdev/bitsoapi
daa15c8921f4e49e07f1a958e8837d3548db329d
[ "MIT" ]
null
null
null
bitsoapi/Client.py
oxsoftdev/bitsoapi
daa15c8921f4e49e07f1a958e8837d3548db329d
[ "MIT" ]
null
null
null
bitsoapi/Client.py
oxsoftdev/bitsoapi
daa15c8921f4e49e07f1a958e8837d3548db329d
[ "MIT" ]
null
null
null
from .errors import (ApiError, ApiClientError) from .mixins import ApiClientMixin from .models.public import ( AvailableBooks , Ticker , OrderBook , Trade ) class Client(ApiClientMixin): def __init__(self, key=None, secret=None): self.base_url = 'https://bitso.com/api/v3' self.key...
34.855263
114
0.597206
596
5,298
5.209732
0.204698
0.028341
0.038969
0.057971
0.300483
0.258937
0.212882
0.152979
0.121417
0.050242
0
0.00207
0.270479
5,298
151
115
35.086093
0.801294
0.004153
0
0.235772
0
0
0.128794
0
0
0
0
0
0
1
0.170732
false
0
0.02439
0
0.284553
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
b6ea62493bb53238356a18063f57e6e79423b5be
328
py
Python
vgrocery/main.py
ViniciusMadureira/ifsp-oop2-exercise001
c66727bfde82ee96b10b81a84f6b52bbcb62f68b
[ "CC0-1.0" ]
null
null
null
vgrocery/main.py
ViniciusMadureira/ifsp-oop2-exercise001
c66727bfde82ee96b10b81a84f6b52bbcb62f68b
[ "CC0-1.0" ]
null
null
null
vgrocery/main.py
ViniciusMadureira/ifsp-oop2-exercise001
c66727bfde82ee96b10b81a84f6b52bbcb62f68b
[ "CC0-1.0" ]
null
null
null
# This Python file uses the following encoding: utf-8 from PyQt5 import QtCore, QtGui, QtWidgets from view.productsview import ProductsView if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) pv = ProductsView() #pv.pte_product_value.installEventFilter(self) sys.exit(app.e...
27.333333
53
0.740854
42
328
5.52381
0.761905
0
0
0
0
0
0
0
0
0
0
0.007326
0.167683
328
11
54
29.818182
0.842491
0.292683
0
0
0
0
0.034935
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b6ec13e7e4ba96b5a332cf789b0ce2b80b637f18
880
py
Python
proxion/util/common.py
WhiteOnBlackCode/proxion
6c6fda6f3017ad28f917a0d6d18b0b18aabb248b
[ "MIT" ]
4
2018-09-08T18:41:09.000Z
2019-07-18T03:20:53.000Z
proxion/util/common.py
codeswhite/proxion
6c6fda6f3017ad28f917a0d6d18b0b18aabb248b
[ "MIT" ]
9
2021-06-26T07:44:08.000Z
2021-07-10T05:32:22.000Z
proxion/util/common.py
WhiteOnBlackCode/proxion
6c6fda6f3017ad28f917a0d6d18b0b18aabb248b
[ "MIT" ]
null
null
null
from site import USER_BASE from ipaddress import AddressValueError, IPv4Address from pathlib import Path from random import choice from termcolor import cprint from interutils import clear class InvalidProxyFormatError(Exception): pass def is_ip_address(ip_addr: str) -> bool: try: IPv4Address(ip_ad...
20.465116
81
0.657955
117
880
4.854701
0.495727
0.116197
0.038732
0.045775
0.059859
0
0
0
0
0
0
0.014107
0.275
880
42
82
20.952381
0.876176
0.078409
0
0.333333
0
0
0.001245
0
0
0
0
0
0
1
0.066667
false
0.033333
0.2
0
0.566667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b6ec2598a56faa62709a6fdad2b2f7f1d84fc242
3,256
py
Python
pycryptoki/mechanism/des.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
null
null
null
pycryptoki/mechanism/des.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
null
null
null
pycryptoki/mechanism/des.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
null
null
null
""" DES3-specific mechanism implementations. """ import logging from ctypes import c_void_p, cast, pointer, sizeof, POINTER from . import Mechanism from ..attributes import to_byte_array from ..conversions import from_bytestring from ..cryptoki import CK_ULONG, CK_BYTE, CK_BYTE_PTR, CK_DES_CTR_PARAMS, \ CK_KEY_DE...
36.58427
77
0.677211
412
3,256
5.06068
0.23301
0.034532
0.020144
0.021583
0.663309
0.618705
0.569784
0.569784
0.569784
0.517026
0
0.014601
0.221744
3,256
89
78
36.58427
0.808208
0.292383
0
0.372093
0
0
0.023245
0
0
0
0
0
0
1
0.069767
false
0
0.139535
0
0.418605
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
b6ed12c39143d84b5ad92a9fccf364f6029a375d
3,850
py
Python
tw2/core/jsonify.py
atbinf/tw2.core
51b124d62954a3d3cd9a89c78d48e534297c9c35
[ "MIT" ]
6
2015-01-20T13:45:24.000Z
2022-01-04T18:41:55.000Z
tw2/core/jsonify.py
atbinf/tw2.core
51b124d62954a3d3cd9a89c78d48e534297c9c35
[ "MIT" ]
14
2015-07-13T20:20:41.000Z
2021-10-11T23:59:01.000Z
tw2/core/jsonify.py
atbinf/tw2.core
51b124d62954a3d3cd9a89c78d48e534297c9c35
[ "MIT" ]
5
2015-06-10T06:44:56.000Z
2018-05-16T17:36:07.000Z
""" Copyright (c) 2005-2009 Ben Bangert, James Gardner, Philip Jenvey and contributors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must reta...
42.777778
79
0.749091
542
3,850
5.311808
0.352399
0.012157
0.015283
0.031956
0.680792
0.680792
0.680792
0.680792
0.680792
0.680792
0
0.006373
0.184935
3,850
89
80
43.258427
0.91109
0.814805
0
0
0
0
0.264012
0
0
0
0
0
0
1
0.052632
false
0
0.263158
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b6ee407db83d6ab01037c334c2bf8e1bea1a5bf8
685
py
Python
mail/views.py
lxdiyun/mail_sender
fda1cbb413f8647c2ab5be858ec0aaa32a0fbfac
[ "BSD-3-Clause" ]
null
null
null
mail/views.py
lxdiyun/mail_sender
fda1cbb413f8647c2ab5be858ec0aaa32a0fbfac
[ "BSD-3-Clause" ]
null
null
null
mail/views.py
lxdiyun/mail_sender
fda1cbb413f8647c2ab5be858ec0aaa32a0fbfac
[ "BSD-3-Clause" ]
null
null
null
""" mail app views""" from django.http import Http404 from django.http import HttpResponse from mail.models import Receiver, Mail, generate_mail_conent def mail_demo_view(request, mail_id, receiver_id): """ final mail demo """ if mail_id: try: mail = Mail.objects.get(pk=mail_id) ...
25.37037
65
0.649635
85
685
5.094118
0.4
0.04157
0.064665
0.092379
0
0
0
0
0
0
0
0.012
0.270073
685
26
66
26.346154
0.854
0.045255
0
0.111111
1
0
0.040562
0
0
0
0
0
0
1
0.055556
false
0
0.166667
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b6ef7292ee095b344a1e27bdac06d5abb78f801f
4,772
py
Python
main.py
hollow-earth/handwritten-latex
077ecc09edd94d9cda10700886c74bb93f0f6121
[ "MIT" ]
null
null
null
main.py
hollow-earth/handwritten-latex
077ecc09edd94d9cda10700886c74bb93f0f6121
[ "MIT" ]
null
null
null
main.py
hollow-earth/handwritten-latex
077ecc09edd94d9cda10700886c74bb93f0f6121
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter.filedialog import askopenfilename from tkinter import scrolledtext from PIL import ImageTk,Image import execute def updateText(text): text_widget["state"] = tk.NORMAL text_widget.insert(tk.INSERT, text) text_widget["state"] = tk.DISABLED def getFile(): global filenam...
40.440678
132
0.67917
614
4,772
5.262215
0.286645
0.021665
0.015475
0.022284
0.282266
0.210152
0.162798
0.11204
0.11204
0.084184
0
0.035321
0.181266
4,772
118
133
40.440678
0.791656
0
0
0.165049
0
0
0.125707
0
0
0
0
0
0
1
0.048544
false
0
0.048544
0
0.097087
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
b6f0097f2059d2d9b097d5fd295d4ac7fbf4e17b
1,067
py
Python
game/spaceship/module.py
shycoldii/asteroids
3e06e68dff6e5a4ec87444ae94bd40c77e31515b
[ "MIT" ]
null
null
null
game/spaceship/module.py
shycoldii/asteroids
3e06e68dff6e5a4ec87444ae94bd40c77e31515b
[ "MIT" ]
null
null
null
game/spaceship/module.py
shycoldii/asteroids
3e06e68dff6e5a4ec87444ae94bd40c77e31515b
[ "MIT" ]
null
null
null
from pygame.math import Vector2 from game.base.base import BasicObject class AbstractModule(BasicObject): """Абстрактный модуль, гаджет, навес для spaceship""" def __init__(self, display, space_pos, space_size, space_head): super().__init__(display) self._space_size = space_size self...
24.813953
67
0.63074
117
1,067
5.495727
0.452991
0.049767
0.080871
0.079316
0.065319
0
0
0
0
0
0
0.002538
0.261481
1,067
42
68
25.404762
0.813452
0.212746
0
0.217391
0
0
0
0
0
0
0
0
0
1
0.347826
false
0.130435
0.086957
0
0.565217
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
b6f0188653bb2ee871af6055822ae4236aad3138
1,681
py
Python
aaem/components/ashp_base/config.py
gina-alaska/alaska_affordable_energy_model
96fed0137152985ce280ea37e0affec131e3087f
[ "MIT-feh" ]
1
2022-01-23T07:18:36.000Z
2022-01-23T07:18:36.000Z
aaem/components/ashp_base/config.py
gina-alaska/alaska_affordable_energy_model
96fed0137152985ce280ea37e0affec131e3087f
[ "MIT-feh" ]
5
2017-07-14T21:56:46.000Z
2017-07-14T21:59:15.000Z
aaem/components/ashp_base/config.py
gina-alaska/alaska_affordable_energy_model
96fed0137152985ce280ea37e0affec131e3087f
[ "MIT-feh" ]
2
2020-04-28T18:12:55.000Z
2021-01-13T01:56:57.000Z
""" Air Sorce Heat Pump Base Configuration -------------------------------------- Contains Air Sorce Heat Pump Base configuration info for community data yaml file, and other set-up requirements """ from aaem.components import definitions from pandas import DataFrame COMPONENT_NAME = "air source heat pumps b...
27.112903
161
0.603807
197
1,681
5.121827
0.431472
0.053518
0.039643
0.051536
0.243806
0.168484
0.047572
0
0
0
0
0
0.245687
1,681
61
162
27.557377
0.795741
0.160024
0
0
0
0.045455
0.516429
0
0
0
0
0
0
1
0
false
0
0.068182
0
0.068182
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
b6f042d82082418eff06a31d2338a1f484ffdb28
1,481
py
Python
tkRAD/xml/rad_xml_attributes_dict.py
eblade/telegram
fffdcdad501a672130ea5b970c5bfc6bd554d826
[ "MIT" ]
1
2015-02-22T16:33:35.000Z
2015-02-22T16:33:35.000Z
tkRAD/xml/rad_xml_attributes_dict.py
eblade/telegram
fffdcdad501a672130ea5b970c5bfc6bd554d826
[ "MIT" ]
null
null
null
tkRAD/xml/rad_xml_attributes_dict.py
eblade/telegram
fffdcdad501a672130ea5b970c5bfc6bd554d826
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ tkRAD - tkinter Rapid Application Development library (c) 2013+ Raphaël SEBAN <motus@laposte.net> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free S...
29.62
71
0.679271
197
1,481
5.010152
0.634518
0.033435
0.039514
0.057751
0.08308
0.056738
0
0
0
0
0
0.006289
0.248481
1,481
49
72
30.22449
0.880503
0.654963
0
0
0
0
0.047493
0
0
0
0
0
0
1
0.1
false
0
0.2
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
b6f087683a1ffd2178d9ae0471c0a084774f2ca3
2,256
py
Python
analysis_tools/PYTHON_RICARDO/rpl/tools/ray_tracing/test_bsp.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
analysis_tools/PYTHON_RICARDO/rpl/tools/ray_tracing/test_bsp.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
analysis_tools/PYTHON_RICARDO/rpl/tools/ray_tracing/test_bsp.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
import numpy as np from math import sqrt import time from rpl.tools.geometry.surface_io import open_geom from bsp_tree_poly import BSP_Tree import logging ## Get rid of any existing handlers (e.g. if running interactively in ipython) logging.getLogger().handlers = [] ## Main logging goes to a file logging....
23.257732
114
0.628103
352
2,256
3.880682
0.392045
0.013177
0.015373
0.014641
0.043192
0
0
0
0
0
0
0.041214
0.225621
2,256
97
115
23.257732
0.740698
0.070035
0
0
0
0
0.070677
0.017544
0
0
0
0
0
0
null
null
0
0.122807
null
null
0.140351
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b6f0f2ae0437a7438574c9999baa6648a2c77f76
6,080
py
Python
noogle/models.py
mtik00/gcal_nest
eb54e0cdefa8747f3173a91df131092286b83e09
[ "MIT" ]
1
2019-08-14T01:51:22.000Z
2019-08-14T01:51:22.000Z
noogle/models.py
mtik00/noogle
eb54e0cdefa8747f3173a91df131092286b83e09
[ "MIT" ]
null
null
null
noogle/models.py
mtik00/noogle
eb54e0cdefa8747f3173a91df131092286b83e09
[ "MIT" ]
null
null
null
import enum from sqlalchemy import Integer, String, Column, Enum, UniqueConstraint from sqlalchemy.sql import exists, and_ from sqlalchemy_utils import ArrowType from sqlalchemy.exc import IntegrityError from .db import Base, session import arrow from .settings import settings from .utils import get_scheduled_date fro...
29.371981
88
0.587171
675
6,080
5.093333
0.219259
0.052938
0.046539
0.034904
0.315009
0.243165
0.188773
0.128272
0.099767
0.099767
0
0.002861
0.310033
6,080
206
89
29.514563
0.816687
0.064967
0
0.25
0
0
0.05976
0.02599
0
0
0
0
0
1
0.083333
false
0
0.064103
0.038462
0.448718
0.012821
0
0
0
null
0
0
0
0
0
0
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