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
b3d0c3d583358469a62183dc3e94d74f4fb738b4
19,768
py
Python
botintegration/main.py
discord-autonomie/PreciousPlasticBot
d0934823d9ef4e9ea268047d100756ba95b0731f
[ "MIT" ]
null
null
null
botintegration/main.py
discord-autonomie/PreciousPlasticBot
d0934823d9ef4e9ea268047d100756ba95b0731f
[ "MIT" ]
null
null
null
botintegration/main.py
discord-autonomie/PreciousPlasticBot
d0934823d9ef4e9ea268047d100756ba95b0731f
[ "MIT" ]
2
2019-09-21T13:36:19.000Z
2019-10-25T16:28:54.000Z
import asyncio import discord import os import json import time from datetime import datetime from config import get_configuration departements = json.loads(open("departements.json").read()) regions = json.loads(open("regions.json").read()) async def log(self, guild, message) : config = get_configuration(guild....
53.86376
285
0.610633
2,616
19,768
4.539373
0.15711
0.041684
0.040421
0.037137
0.598232
0.551158
0.484632
0.450274
0.420042
0.381389
0
0.009937
0.282173
19,768
366
286
54.010929
0.82685
0.001669
0
0.423077
0
0.052448
0.29404
0.006132
0
0
0.001014
0
0
1
0.006993
false
0
0.024476
0.006993
0.097902
0.003497
0
0
0
null
0
0
0
0
0
0
0
0
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
b3d1fe94baad9d15458d5ff9000e994472945459
1,062
py
Python
setup.py
mtna/rds-python
961ea12fc70a35c8b979855c8f20a803a9d2f596
[ "Apache-2.0" ]
3
2020-05-15T17:31:18.000Z
2021-05-05T09:21:24.000Z
setup.py
mtna/rds-python
961ea12fc70a35c8b979855c8f20a803a9d2f596
[ "Apache-2.0" ]
null
null
null
setup.py
mtna/rds-python
961ea12fc70a35c8b979855c8f20a803a9d2f596
[ "Apache-2.0" ]
2
2020-06-04T09:01:35.000Z
2021-04-22T14:49:36.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="mtna-rds", version="0.2.16", author="Metadata Technology North America Inc.", author_email="mtna@mtna.us", description="A library to query the Rich Data Services API framework developed by...
36.62069
92
0.620527
128
1,062
5.078125
0.625
0.092308
0.153846
0.12
0.083077
0
0
0
0
0
0
0.033493
0.212806
1,062
28
93
37.928571
0.744019
0
0
0
0
0.038462
0.55838
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
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
b3d58035864fec3162d63e3f38f884692d40a888
13,575
py
Python
spectate/mvc/base.py
agoose77/spectate
a70d8e3fb8e9e3f053cb2a1c5a4c760df0d61cb3
[ "MIT" ]
null
null
null
spectate/mvc/base.py
agoose77/spectate
a70d8e3fb8e9e3f053cb2a1c5a4c760df0d61cb3
[ "MIT" ]
null
null
null
spectate/mvc/base.py
agoose77/spectate
a70d8e3fb8e9e3f053cb2a1c5a4c760df0d61cb3
[ "MIT" ]
null
null
null
# See End Of File For Licensing from inspect import signature from functools import wraps from typing import Union, Callable, Optional from contextlib import contextmanager from weakref import WeakValueDictionary from spectate.core import Watchable, watched, Immutable, MethodSpectator from .utils import members __a...
32.632212
88
0.604936
1,666
13,575
4.80072
0.210084
0.015004
0.010503
0.005001
0.199425
0.16004
0.146537
0.098525
0.087022
0.076019
0
0.001385
0.308508
13,575
415
89
32.710843
0.850645
0.507993
0
0.147239
0
0
0.051467
0.004098
0
0
0
0
0
1
0.147239
false
0.006135
0.042945
0
0.294479
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
b3d75d2890f7f5972e2fbf7529699f51b48bdb8b
1,803
py
Python
wk2/Crossmatching with k-d trees/05_space_trees.py
lokijota/datadrivenastronomymooc
175655e5c6450c091534299da6bce6f10a1a3627
[ "MIT" ]
8
2018-12-09T18:10:16.000Z
2021-03-21T16:38:58.000Z
wk2/Crossmatching with k-d trees/05_space_trees.py
lokijota/datadrivenastronomymooc
175655e5c6450c091534299da6bce6f10a1a3627
[ "MIT" ]
null
null
null
wk2/Crossmatching with k-d trees/05_space_trees.py
lokijota/datadrivenastronomymooc
175655e5c6450c091534299da6bce6f10a1a3627
[ "MIT" ]
5
2018-11-09T16:57:17.000Z
2020-04-15T09:11:33.000Z
import numpy as np import statistics import time from astropy.coordinates import SkyCoord from astropy import units as u def crossmatch(cat1, cat2, max_dist): matches = [] nomatches = [] start = time.perf_counter() skycat1 = SkyCoord(cat1*u.degree, frame='icrs') skycat2 = SkyCoord(cat2*u.degree, frame='ic...
31.086207
85
0.698835
262
1,803
4.652672
0.412214
0.068909
0.044299
0.026251
0.178835
0.178835
0.178835
0.178835
0.178835
0.178835
0
0.046061
0.169163
1,803
57
86
31.631579
0.76769
0.20244
0
0.216216
0
0
0.051821
0
0
0
0
0
0
1
0.054054
false
0
0.135135
0
0.243243
0.162162
0
0
0
null
0
0
0
0
0
0
0
0
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
b3d97ce2c5e214ea0d96fc151d9ce9c5473d5232
5,753
py
Python
code_generator/type_generators/cpp_extended_variant.py
SumuduLansakara/JsonToStruct
82d5ed613fc313dedeeada94679e0edbc0a5486a
[ "MIT" ]
null
null
null
code_generator/type_generators/cpp_extended_variant.py
SumuduLansakara/JsonToStruct
82d5ed613fc313dedeeada94679e0edbc0a5486a
[ "MIT" ]
null
null
null
code_generator/type_generators/cpp_extended_variant.py
SumuduLansakara/JsonToStruct
82d5ed613fc313dedeeada94679e0edbc0a5486a
[ "MIT" ]
null
null
null
from typing import Set from code_generator.line_buffer import LineBuffer, IndentedBlock from code_generator.type_generators.cpp_array_alias import CppArrayAlias from code_generator.type_generators.cpp_enum import CppEnum from code_generator.type_generators.cpp_extended_variant_utils.from_json_generator import FromJson...
42.301471
110
0.649226
654
5,753
5.425076
0.188073
0.063134
0.049605
0.047351
0.45885
0.359357
0.267475
0.213078
0.213078
0.182638
0
0
0.250652
5,753
135
111
42.614815
0.823011
0.06275
0
0.346154
0
0
0.115056
0.042007
0.009615
0
0
0
0
1
0.048077
false
0.019231
0.134615
0
0.240385
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
b3dac29fab9b30a15f3567e16ce2def62510c239
5,959
py
Python
src/main/apps/mlops/utils/model_loader.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
2
2021-08-23T21:56:07.000Z
2022-01-20T13:52:19.000Z
src/main/apps/mlops/utils/model_loader.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
src/main/apps/mlops/utils/model_loader.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
import numpy as np import os from .file_loader import ( CatsvsdogsFileLoader, FashionMnistFileLoader, ImdbSentimentFileLoader, StackoverflowFileLoader, ) from .model_input import ModelInputGenerator from .output_decoder import OutputDecoder from .pipeline import Pipeline from .preprocessing import pipe...
35.260355
116
0.664205
703
5,959
5.42532
0.197724
0.076036
0.031463
0.022024
0.375983
0.35763
0.303618
0.253802
0.253802
0.179339
0
0.004594
0.232925
5,959
168
117
35.470238
0.829797
0.119987
0
0.237705
0
0
0.039329
0.029882
0
0
0
0
0
1
0.122951
false
0.040984
0.098361
0.008197
0.295082
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
b3de0447e00cc0a2285e58663644fe3c006386e1
2,206
py
Python
src/mdp/sokoban.py
pudumagico/RLASP
bce5b87404fdca60e983e4a187e734c49ac923fa
[ "MIT" ]
null
null
null
src/mdp/sokoban.py
pudumagico/RLASP
bce5b87404fdca60e983e4a187e734c49ac923fa
[ "MIT" ]
1
2021-06-02T16:55:33.000Z
2021-06-04T14:30:54.000Z
src/mdp/sokoban.py
pudumagico/RLASP
bce5b87404fdca60e983e4a187e734c49ac923fa
[ "MIT" ]
2
2021-03-22T14:46:49.000Z
2021-03-31T16:12:12.000Z
import os from typing import Set from . import MarkovDecisionProcedure class Sokoban(MarkovDecisionProcedure): def __init__(self, state_initial: Set[str], state_static: Set[str]): # No discounting for Sokoban discount_rate = 1.0 file_name = 'sokoban.lp' super().__init__(state_i...
33.938462
96
0.550771
273
2,206
4.131868
0.260073
0.095745
0.085106
0.079787
0.139184
0.090426
0.090426
0.04078
0.04078
0.04078
0
0.007979
0.318223
2,206
64
97
34.46875
0.742021
0.031278
0
0
0
0
0.067948
0
0
0
0
0
0
1
0.090909
false
0
0.068182
0.022727
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3e045df8f99c15e93bf5205a4e184cde6cf770d
1,014
py
Python
create.py
haknkayaa/periodic-table
89d6251074f448b875d7a024897c8203342aaebf
[ "MIT" ]
1
2021-08-05T10:37:26.000Z
2021-08-05T10:37:26.000Z
create.py
haknkayaa/periodic-table
89d6251074f448b875d7a024897c8203342aaebf
[ "MIT" ]
null
null
null
create.py
haknkayaa/periodic-table
89d6251074f448b875d7a024897c8203342aaebf
[ "MIT" ]
null
null
null
import sqlite3 conn = sqlite3.connect('elements.db') cur = conn.cursor() cur.execute('DROP TABLE IF EXISTS elements') cur.execute('CREATE TABLE elements (number INTEGER, atomic_weight FLOAT, element TEXT, symbol TEXT, mp FLOAT, bp FLOAT, density FLOAT, earth_crust FLOAT, discovered INTEGER, egroup INTEGER, ionization...
30.727273
308
0.649901
146
1,014
4.486301
0.493151
0.083969
0.033588
0.036641
0
0
0
0
0
0
0
0.021127
0.159763
1,014
32
309
31.6875
0.747653
0.011834
0
0
0
0.105263
0.445565
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
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
b3e0a169cb3b631c48d93e3f6d0c870c92bbcab5
12,454
py
Python
DRACO/visualization-scripts/compute_map.py
RahulSajnani/DRACO-Weakly-Supervised-Dense-Reconstruction-And-Canonicalization-of-Objects
d697905da990487589f88068c886a32d2ef57118
[ "MIT" ]
3
2021-06-20T17:46:32.000Z
2021-12-17T16:55:00.000Z
DRACO/visualization-scripts/compute_map.py
RahulSajnani/DRACO-Weakly-Supervised-Dense-Reconstruction-And-Canonicalization-of-Objects
d697905da990487589f88068c886a32d2ef57118
[ "MIT" ]
1
2022-01-13T01:41:00.000Z
2022-01-13T06:54:29.000Z
DRACO/visualization-scripts/compute_map.py
RahulSajnani/DRACO-Weakly-Supervised-Dense-Reconstruction-And-Canonicalization-of-Objects
d697905da990487589f88068c886a32d2ef57118
[ "MIT" ]
1
2021-09-14T06:17:55.000Z
2021-09-14T06:17:55.000Z
import open3d as o3d from open3d import * import numpy as np import sys, os import matplotlib.pyplot as plt import cv2 import torch import glob import copy import mathutils from PIL import Image from pytorch3d.loss import chamfer_distance from tk3dv.nocstools.aligning import estimateSimilarityUmeyama import math from ...
32.097938
165
0.599004
1,707
12,454
4.187463
0.175747
0.018607
0.019586
0.029379
0.467403
0.451875
0.433548
0.390459
0.340235
0.325126
0
0.04789
0.252208
12,454
387
166
32.180879
0.719639
0.126626
0
0.202586
0
0
0.085179
0.059078
0
0
0
0
0
1
0.043103
false
0
0.086207
0
0.163793
0.043103
0
0
0
null
0
0
0
0
0
0
0
0
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
b3e10b13128ce93e6e6559d8e9d45993251f9fca
10,440
py
Python
chainer/functions/normalization/decorrelated_batch_normalization.py
zaltoprofen/chainer
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
[ "MIT" ]
2
2019-08-12T21:48:04.000Z
2020-08-27T18:04:20.000Z
chainer/functions/normalization/decorrelated_batch_normalization.py
zaltoprofen/chainer
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
[ "MIT" ]
null
null
null
chainer/functions/normalization/decorrelated_batch_normalization.py
zaltoprofen/chainer
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
[ "MIT" ]
2
2019-07-16T00:24:47.000Z
2021-02-26T10:27:27.000Z
from chainer import backend from chainer import function_node from chainer.utils import argument from chainer.utils import type_check def _calc_axis_and_m(x_shape, batch_size, groups): m = batch_size * groups spatial_ndim = len(x_shape) - 2 spatial_axis = tuple(range(2, 2 + spatial_ndim)) for i in spa...
34.569536
79
0.597126
1,394
10,440
4.314204
0.147059
0.017958
0.054872
0.026937
0.483538
0.450449
0.42717
0.365314
0.312271
0.306119
0
0.015259
0.284387
10,440
301
80
34.684385
0.78972
0.225287
0
0.405263
0
0
0.024816
0
0
0
0
0.003322
0
1
0.089474
false
0
0.021053
0
0.178947
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
b3e51e1c2ad25822aeffab799695aee3ded4fa23
5,857
py
Python
ml/app.py
necla-ml/ml
7ebd29382326e3958297607da7182c211865e7ff
[ "BSD-3-Clause" ]
1
2022-02-21T21:06:29.000Z
2022-02-21T21:06:29.000Z
ml/app.py
necla-ml/ml
7ebd29382326e3958297607da7182c211865e7ff
[ "BSD-3-Clause" ]
null
null
null
ml/app.py
necla-ml/ml
7ebd29382326e3958297607da7182c211865e7ff
[ "BSD-3-Clause" ]
null
null
null
import os, sys import subprocess from pathlib import Path import ml from ml import ( cuda, distributed as dist, multiprocessing as mp, random, utils, logging,) def init_cuda(cfg): if cfg.no_gpu: # No use of GPU cfg.gpu = [] os.environ['CUDA_VISIBLE_DEVICES'] = 'NoDe...
44.371212
188
0.583575
742
5,857
4.459569
0.233154
0.054397
0.054397
0.046238
0.3424
0.265639
0.183741
0.183741
0.085827
0.085827
0
0.002414
0.292641
5,857
132
189
44.371212
0.796283
0.085026
0
0.218182
0
0.036364
0.227086
0.102694
0
0
0
0
0.063636
1
0.045455
false
0
0.063636
0
0.136364
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
b3e59a34da2419eebef779ae17ec337eb9356b63
2,497
py
Python
sopel-homedirectory/modules/lib/gettitle.py
kunwon1/subtitle-selenium
9af8c08d5f30cf0734a65cad79a6ac98a2647124
[ "MIT" ]
null
null
null
sopel-homedirectory/modules/lib/gettitle.py
kunwon1/subtitle-selenium
9af8c08d5f30cf0734a65cad79a6ac98a2647124
[ "MIT" ]
null
null
null
sopel-homedirectory/modules/lib/gettitle.py
kunwon1/subtitle-selenium
9af8c08d5f30cf0734a65cad79a6ac98a2647124
[ "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 from pyvirtualdisplay import Display import urllib3.exceptions import traceback import string import time import re prin...
30.82716
208
0.62515
289
2,497
5.287197
0.480969
0.052356
0.049084
0.052356
0.11322
0.060209
0.060209
0
0
0
0
0.043549
0.264317
2,497
80
209
31.2125
0.788242
0.060072
0
0.111111
0
0.031746
0.174603
0
0
0
0
0
0
1
0.079365
false
0.015873
0.15873
0.015873
0.333333
0.15873
0
0
0
null
0
0
0
0
0
0
0
0
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
b3e644d9272bdc05c07609d43e1cf04ff2a64a5c
769
py
Python
carpyncho/migrations/versions/19e8e023f5fb_remove_enum_from_tile.py
toros-astro/carpyncho3
27b00e7539e081c563f1a09c70fb255ac5e71583
[ "BSD-3-Clause" ]
1
2016-02-16T11:10:52.000Z
2016-02-16T11:10:52.000Z
carpyncho/migrations/versions/19e8e023f5fb_remove_enum_from_tile.py
toros-astro/carpyncho3
27b00e7539e081c563f1a09c70fb255ac5e71583
[ "BSD-3-Clause" ]
null
null
null
carpyncho/migrations/versions/19e8e023f5fb_remove_enum_from_tile.py
toros-astro/carpyncho3
27b00e7539e081c563f1a09c70fb255ac5e71583
[ "BSD-3-Clause" ]
null
null
null
"""remove enum from tile Revision ID: 19e8e023f5fb Revises: cf2e08638e84 Create Date: 2018-08-23 12:43:31.403270 """ # revision identifiers, used by Alembic. revision = '19e8e023f5fb' down_revision = 'cf2e08638e84' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade()...
24.806452
93
0.687906
99
769
5.282828
0.525253
0.051625
0.080306
0.087954
0.474187
0.474187
0.474187
0.474187
0.309751
0.309751
0
0.087227
0.16515
769
30
94
25.633333
0.727414
0.394018
0
0.181818
0
0
0.13986
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3e8a25b886e2dd3e93fc2e6fa0f2a2bcc470b21
2,224
py
Python
tests/test_wquantile.py
nailbiter/alex_python_toolbox
e9624db00f5dc3c1a83b87bc267eff1e3f96aea5
[ "MIT" ]
null
null
null
tests/test_wquantile.py
nailbiter/alex_python_toolbox
e9624db00f5dc3c1a83b87bc267eff1e3f96aea5
[ "MIT" ]
1
2021-11-15T23:18:39.000Z
2021-11-15T23:18:39.000Z
tests/test_wquantile.py
nailbiter/alex_python_toolbox
e9624db00f5dc3c1a83b87bc267eff1e3f96aea5
[ "MIT" ]
null
null
null
"""=============================================================================== FILE: tests/test_wquantile.py USAGE: (not intended to be directly executed) DESCRIPTION: OPTIONS: --- REQUIREMENTS: --- BUGS: --- NOTES: --- AUTHOR: Alex Leontiev (nailbiter@dtws-work.in) ORG...
37.694915
144
0.553507
260
2,224
4.507692
0.411538
0.047782
0.025597
0.037543
0.071672
0.052901
0
0
0
0
0
0.020528
0.233363
2,224
58
145
38.344828
0.666862
0.294964
0
0
0
0
0.063421
0.016015
0
0
0
0
0.032258
1
0.096774
false
0
0.225806
0
0.387097
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3ed1e109e8b2ec28f7a697722de818e6a4cde1f
912
py
Python
prepare.py
mukherjeeakash/GestureRecognizer
51c16c9b7c2d32fc6cdcc90bd251f7b131b9e821
[ "Apache-2.0" ]
null
null
null
prepare.py
mukherjeeakash/GestureRecognizer
51c16c9b7c2d32fc6cdcc90bd251f7b131b9e821
[ "Apache-2.0" ]
null
null
null
prepare.py
mukherjeeakash/GestureRecognizer
51c16c9b7c2d32fc6cdcc90bd251f7b131b9e821
[ "Apache-2.0" ]
null
null
null
path = 'C:\\Users\\akash\\Pictures\\Sign-Language-Digits-Dataset-master\\Dataset\\' import os from PIL import Image for i in range(3): for filename in os.listdir(path + str(i)): if filename != "": image_obj = Image.open(path + str(i) + "\\" + filename).convert('L') rotated_image = i...
50.666667
84
0.593202
110
912
4.772727
0.336364
0.091429
0.121905
0.057143
0.712381
0.697143
0.598095
0.350476
0.350476
0.350476
0
0.001425
0.230263
912
18
85
50.666667
0.746439
0
0
0.25
0
0
0.179628
0.081051
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
b3f25d0874f1f41b96cf0db0cf82de3fe58fb7d7
4,409
py
Python
care/facility/summarisation/tests_summary.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
189
2020-03-17T17:18:58.000Z
2022-02-22T09:49:45.000Z
care/facility/summarisation/tests_summary.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
598
2020-03-19T21:22:09.000Z
2022-03-30T05:08:37.000Z
care/facility/summarisation/tests_summary.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
159
2020-03-19T18:45:56.000Z
2022-03-17T13:23:12.000Z
from celery.decorators import periodic_task from celery.schedules import crontab from django.core.exceptions import ObjectDoesNotExist from django.utils import timezone from django.utils.decorators import method_decorator from django.views.decorators.cache import cache_page from django_filters import rest_framework as ...
46.904255
110
0.714901
459
4,409
6.544662
0.294118
0.034621
0.044274
0.055925
0.216378
0.194407
0.194407
0.15779
0.124501
0.124501
0
0.002835
0.200045
4,409
93
111
47.408602
0.84888
0.110456
0
0.055556
0
0
0.06878
0
0
0
0
0
0
1
0.041667
false
0
0.166667
0.013889
0.319444
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
b3f8d6b9c7c673105416ad9c741ad2b778d84b31
23,272
py
Python
bdragon/cdragontoolbox/rads.py
headbangsmurf/CommunityDataDragon
cc3307280dbaf61b4a2cab4bc953edb192a077bb
[ "MIT" ]
3
2020-11-10T19:37:41.000Z
2022-03-18T11:37:15.000Z
bdragon/cdragontoolbox/rads.py
headbangsmurf/CommunityDataDragon
cc3307280dbaf61b4a2cab4bc953edb192a077bb
[ "MIT" ]
1
2020-11-30T00:46:44.000Z
2020-11-30T06:57:19.000Z
bdragon/cdragontoolbox/rads.py
headbangsmurf/CommunityDataDragon
cc3307280dbaf61b4a2cab4bc953edb192a077bb
[ "MIT" ]
null
null
null
import os import re import zlib from typing import List, Dict, Union, Optional, Generator, Iterable from collections import defaultdict import logging import requests from .data import Language from .tools import write_file_or_remove from .storage import ( BaseVersion, Storage, Patch, PatchElement, ...
36.419405
124
0.606179
2,739
23,272
5.016429
0.147499
0.020087
0.007205
0.012227
0.309534
0.232096
0.204731
0.17329
0.157569
0.140539
0
0.005354
0.293744
23,272
638
125
36.476489
0.830616
0.181849
0
0.297483
0
0
0.124143
0.039042
0
0
0
0
0.022883
1
0.132723
false
0.002288
0.022883
0.032037
0.343249
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
b3fb508751b27387b839402708cd6c7d5ae12cf0
935
py
Python
venv/lib/python3.8/site-packages/arch/tests/bootstrap/test_block_length.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
1
2022-03-29T22:12:54.000Z
2022-03-29T22:12:54.000Z
venv/lib/python3.8/site-packages/arch/tests/bootstrap/test_block_length.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/arch/tests/bootstrap/test_block_length.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
null
null
null
import numpy as np from numpy.testing import assert_allclose import pandas as pd from arch.bootstrap.base import optimal_block_length def test_block_length(): rs = np.random.RandomState(0) e = rs.standard_normal(10000 + 100) y = e for i in range(1, len(e)): y[i] = 0.3 * y[i - 1] + e[i] s ...
28.333333
58
0.610695
154
935
3.603896
0.38961
0.126126
0.12973
0.108108
0.299099
0.299099
0.21982
0.21982
0.21982
0.21982
0
0.077241
0.224599
935
32
59
29.21875
0.688276
0
0
0.153846
0
0
0.027807
0
0
0
0
0
0.307692
1
0.038462
false
0
0.153846
0
0.192308
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
b3fc69ae17afb4191989d8ffd0210a58f43c6b8b
2,836
py
Python
articles/imp/genfigs/bulldozer_age_pdp_shap.py
parrt/stratx
c190ecc32ac7b8dd3f5532a5d5b0de34a3693a22
[ "MIT" ]
54
2019-07-17T04:59:39.000Z
2022-03-18T15:25:00.000Z
articles/imp/genfigs/bulldozer_age_pdp_shap.py
parrt/stratx
c190ecc32ac7b8dd3f5532a5d5b0de34a3693a22
[ "MIT" ]
5
2019-07-27T16:18:37.000Z
2020-12-02T20:16:49.000Z
articles/imp/genfigs/bulldozer_age_pdp_shap.py
parrt/stratx
c190ecc32ac7b8dd3f5532a5d5b0de34a3693a22
[ "MIT" ]
13
2019-08-08T22:17:50.000Z
2022-02-11T10:19:23.000Z
from support import * import numpy as np import pandas as pd import matplotlib.pyplot as plt import shap GREY = '#444443' n = 20_000 shap_test_size = 1000 X, y = load_bulldozer(n=50_000) # Most recent timeseries data is more relevant so get big recent chunk # then we can sample from that to get n X = X.iloc[-50_00...
31.511111
86
0.681946
453
2,836
4.092715
0.293598
0.07767
0.033981
0.048544
0.581446
0.559871
0.55178
0.55178
0.377562
0.320928
0
0.039328
0.139281
2,836
90
87
31.511111
0.720197
0.043371
0
0.42029
0
0
0.141697
0.038007
0
0
0
0
0
1
0
false
0
0.072464
0
0.072464
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
b6025c07a550e6b64ea088e2d2ae6f07c65add55
2,154
py
Python
congregation/dag/dag.py
CCD-HRI/congregation
a552856b03a64a4295792184107c4e529ca3f4ae
[ "MIT" ]
3
2020-10-05T16:30:15.000Z
2021-01-22T13:38:02.000Z
congregation/dag/dag.py
CCD-HRI/congregation
a552856b03a64a4295792184107c4e529ca3f4ae
[ "MIT" ]
null
null
null
congregation/dag/dag.py
CCD-HRI/congregation
a552856b03a64a4295792184107c4e529ca3f4ae
[ "MIT" ]
1
2021-02-19T12:40:57.000Z
2021-02-19T12:40:57.000Z
from congregation.dag.nodes import OpNode class Dag: def __init__(self, roots: set): self.roots = roots def __str__(self): return "\n".join(str(node) for node in self.top_sort()) def involves_compute_party(self, pid: int): """ For a given PID, check if it owns any ...
28.342105
113
0.587744
281
2,154
4.323843
0.284698
0.065844
0.039506
0.024691
0.128395
0.092181
0.034568
0
0
0
0
0.000684
0.321727
2,154
75
114
28.72
0.830938
0.031105
0
0
0
0
0.03455
0
0
0
0
0
0
1
0.18
false
0
0.02
0.04
0.34
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b602707d9d2d61f75e1f77871a6e22ddd13d0a1e
8,940
py
Python
package_control/package_disabler_iterator.py
evandrocoan/package_control
bb17c851fa2dee0e564128ea4a499087f2d2ec45
[ "MIT" ]
2
2018-12-08T21:44:59.000Z
2021-11-27T05:14:02.000Z
package_control/package_disabler_iterator.py
evandrocoan/package_control
bb17c851fa2dee0e564128ea4a499087f2d2ec45
[ "MIT" ]
3
2018-02-09T04:14:30.000Z
2018-10-08T14:40:36.000Z
package_control/package_disabler_iterator.py
evandrocoan/package_control
bb17c851fa2dee0e564128ea4a499087f2d2ec45
[ "MIT" ]
null
null
null
import sublime import time import functools from .settings import run_on_main_thread from .package_disabler import PackageDisabler # How many packages to ignore and unignore in batch to fix the ignored packages bug error PACKAGES_COUNT_TO_IGNORE_AHEAD = 8 # The minimum time between multiple calls setting the `igno...
40.821918
150
0.702908
1,103
8,940
5.349048
0.197643
0.071186
0.056949
0.067797
0.469153
0.384576
0.315593
0.249661
0.209153
0.202203
0
0.002193
0.234899
8,940
218
151
41.009174
0.86038
0.21443
0
0.230769
0
0
0.105087
0.030814
0
0
0
0
0.008547
1
0.136752
false
0
0.042735
0
0.222222
0.059829
0
0
0
null
0
0
0
0
0
0
0
0
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
b604ed726ad0c27b4c9c8cb853054f3c1f6e34f0
1,125
py
Python
djenga/encryption/kms.py
2ps/djenga
85ac2c7b0b0e80b55aff43f027814d05b9b0532c
[ "BSD-3-Clause" ]
6
2015-01-18T10:31:13.000Z
2019-06-14T17:39:58.000Z
djenga/encryption/kms.py
2ps/djenga
85ac2c7b0b0e80b55aff43f027814d05b9b0532c
[ "BSD-3-Clause" ]
12
2015-05-03T06:58:00.000Z
2019-06-26T21:58:16.000Z
djenga/encryption/kms.py
2ps/djenga
85ac2c7b0b0e80b55aff43f027814d05b9b0532c
[ "BSD-3-Clause" ]
1
2018-04-27T20:36:29.000Z
2018-04-27T20:36:29.000Z
from .helpers import _as_bytes from .helpers import b64_str from .helpers import from_b64_str from .helpers import _get_client from .helpers import _prefix_alias def encrypt_bytes( plain_text: bytes , alias: str , region: str = None , profile: str = None) -> bytes: client = _get_cl...
29.605263
79
0.691556
148
1,125
5.013514
0.189189
0.075472
0.114555
0.107817
0.304582
0.242588
0.206199
0.161725
0.161725
0.161725
0
0.010147
0.211556
1,125
37
80
30.405405
0.826381
0
0
0.206897
0
0
0.024889
0
0
0
0
0
0
1
0.137931
false
0
0.172414
0
0.448276
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
b6067da1a3d8144b0aacdb78ebe92f0d1ae4957c
3,275
py
Python
Testing/intersection_densityTEST.py
djconly85/PPA2_0_code
1d67934eb3bc3c7df16cdd5867639b92c9ea45eb
[ "MIT" ]
null
null
null
Testing/intersection_densityTEST.py
djconly85/PPA2_0_code
1d67934eb3bc3c7df16cdd5867639b92c9ea45eb
[ "MIT" ]
null
null
null
Testing/intersection_densityTEST.py
djconly85/PPA2_0_code
1d67934eb3bc3c7df16cdd5867639b92c9ea45eb
[ "MIT" ]
null
null
null
# -------------------------------- # Name: transit_svc_measure.py # Purpose: Get count of intersection density per acre # # # Author: Darren Conly # Last Updated: <date> # Updated by: <name> # Copyright: (c) SACOG # Python Version: 3.x # -------------------------------- import gc import sys import arcpy # import pp...
31.190476
140
0.643359
417
3,275
4.810552
0.386091
0.023928
0.041874
0.045862
0.047856
0.015952
0
0
0
0
0
0.0204
0.251603
3,275
104
141
31.490385
0.798042
0.205802
0
0.034483
0
0
0.100736
0.024022
0
0
0
0
0
1
0.051724
false
0
0.068966
0
0.172414
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
b60cc9c298430cfb0532fa24f8e831ee7ebc2637
308
py
Python
utilities/extract-files.py
ukgamesfund/registry-blockchain
73b12a36b7af5df3235f1b91939b8fd59b213b9f
[ "MIT" ]
null
null
null
utilities/extract-files.py
ukgamesfund/registry-blockchain
73b12a36b7af5df3235f1b91939b8fd59b213b9f
[ "MIT" ]
null
null
null
utilities/extract-files.py
ukgamesfund/registry-blockchain
73b12a36b7af5df3235f1b91939b8fd59b213b9f
[ "MIT" ]
null
null
null
import json,os,sys filename = sys.argv[1] file_path = "../build/contracts/"+filename content = open(file_path, "r").read() object = json.loads(content) abi = json.dumps(object['abi'], indent=2) bin = object['unlinked_binary'][2:] open(filename+".abi","w").write(abi) open(filename+".bin","w").write(bin)
22
42
0.681818
47
308
4.404255
0.553191
0.077295
0
0
0
0
0
0
0
0
0
0.010714
0.090909
308
13
43
23.692308
0.728571
0
0
0
0
0
0.156352
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b60cefb60f76a4f016c09e520a3873524a38f0fc
499
py
Python
trinity/tests/test_bonds.py
elliothevel/trinity
af4425e6432f6edd7c56478b039eab654c5fec26
[ "MIT" ]
null
null
null
trinity/tests/test_bonds.py
elliothevel/trinity
af4425e6432f6edd7c56478b039eab654c5fec26
[ "MIT" ]
null
null
null
trinity/tests/test_bonds.py
elliothevel/trinity
af4425e6432f6edd7c56478b039eab654c5fec26
[ "MIT" ]
null
null
null
import trinity.bonds as bonds import trinity.returns as returns def test_simulate_returns(expected_bond_returns): """Ensure simulated returns match published results.""" interest_rates = [(year['rate'], year['rate_long']) for year in returns.read_shiller()] simulated_returns = bonds...
35.642857
77
0.727455
61
499
5.721311
0.508197
0.137536
0.108883
0.148997
0
0
0
0
0
0
0
0.012195
0.178357
499
13
78
38.384615
0.839024
0.098196
0
0
0
0
0.056306
0
0
0
0
0
0.125
1
0.125
false
0
0.25
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b60cff1aa58f85db479507a365921e43a1e5cf4d
705
py
Python
karutakeqingautoreact/karutakeqingautoreact.py
RealCyGuy/modmail-plugins
e515f827eb3fedf8456fbb5ff65a4e5fa81ab72e
[ "MIT" ]
8
2020-01-03T19:01:59.000Z
2021-04-14T13:30:49.000Z
karutakeqingautoreact/karutakeqingautoreact.py
RealCyGuy/modmail-plugins
e515f827eb3fedf8456fbb5ff65a4e5fa81ab72e
[ "MIT" ]
4
2020-12-22T12:51:03.000Z
2022-01-05T20:17:00.000Z
karutakeqingautoreact/karutakeqingautoreact.py
RealCyGuy/modmail-plugins
e515f827eb3fedf8456fbb5ff65a4e5fa81ab72e
[ "MIT" ]
27
2020-01-17T18:05:29.000Z
2022-02-04T07:38:52.000Z
import discord from discord.ext import commands class KarutaKeqingAutoReact(commands.Cog): """ Reacts to karuta character lookup and collection for keqing bot. """ def __init__(self, bot): self.bot = bot @commands.Cog.listener() async def on_message(self, message: discord.Message): ...
29.375
70
0.652482
81
705
5.617284
0.518519
0.048352
0.087912
0.101099
0
0
0
0
0
0
0
0.035581
0.242553
705
23
71
30.652174
0.810861
0.09078
0
0
0
0
0.0544
0
0
0
0
0
0
1
0.133333
false
0
0.133333
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
b60ef291cf0091e55fe384f99b9ffc4eb76852f2
4,035
py
Python
tests/cli/test_capture.py
lkolacek/osbs-client
90c6db9a414214c681c777468079bcbe7dd7c809
[ "BSD-3-Clause" ]
4
2020-05-16T22:30:32.000Z
2021-11-09T22:26:38.000Z
tests/cli/test_capture.py
lkolacek/osbs-client
90c6db9a414214c681c777468079bcbe7dd7c809
[ "BSD-3-Clause" ]
183
2019-06-06T09:10:24.000Z
2022-03-30T12:05:15.000Z
tests/cli/test_capture.py
lkolacek/osbs-client
90c6db9a414214c681c777468079bcbe7dd7c809
[ "BSD-3-Clause" ]
10
2019-10-29T21:55:03.000Z
2021-01-18T14:20:34.000Z
""" Copyright (c) 2015, 2019 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from __future__ import absolute_import import json import os import responses import yaml from tempfile import NamedTemporaryFile from...
35.086957
157
0.680297
527
4,035
4.916509
0.259962
0.114628
0.052103
0.040139
0.450405
0.396372
0.33076
0.33076
0.33076
0.264377
0
0.014223
0.215861
4,035
114
158
35.394737
0.804678
0.051053
0
0.219512
0
0.02439
0.251113
0.086934
0
0
0
0
0.04878
1
0.04878
false
0
0.146341
0.012195
0.219512
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
b60f51942494a012c87412de5d38d61489e17976
2,162
py
Python
ludwig/datasets/iris/__init__.py
dantreiman/ludwig
daeffd21f9eef524afb2037763abd07a93228c2a
[ "Apache-2.0" ]
7,739
2019-02-11T14:06:31.000Z
2020-12-16T18:30:29.000Z
ludwig/datasets/iris/__init__.py
dantreiman/ludwig
daeffd21f9eef524afb2037763abd07a93228c2a
[ "Apache-2.0" ]
769
2019-02-11T16:13:20.000Z
2020-12-16T17:26:11.000Z
ludwig/datasets/iris/__init__.py
dantreiman/ludwig
daeffd21f9eef524afb2037763abd07a93228c2a
[ "Apache-2.0" ]
975
2019-02-11T15:55:54.000Z
2020-12-14T21:45:39.000Z
#! /usr/bin/env python # Copyright (c) 2022 Predibase, Inc. # # 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 applicabl...
34.31746
96
0.702128
282
2,162
5.202128
0.492908
0.0409
0.04908
0.021813
0.088616
0
0
0
0
0
0
0.004499
0.177613
2,162
62
97
34.870968
0.820585
0.343201
0
0
0
0
0.092286
0
0
0
0
0
0
1
0.129032
false
0
0.225806
0.032258
0.451613
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
b614594c792bcc71148ae6b00e42b3819d01bc79
6,582
py
Python
src/dtpattern/alignment/alignment_cls.py
jumbrich/dtpattern
38433c89d169a280b0439b9cd4f463d5d7604dd7
[ "MIT" ]
null
null
null
src/dtpattern/alignment/alignment_cls.py
jumbrich/dtpattern
38433c89d169a280b0439b9cd4f463d5d7604dd7
[ "MIT" ]
2
2018-04-25T22:13:34.000Z
2018-04-26T17:52:43.000Z
src/dtpattern/alignment/alignment_cls.py
jumbrich/dtpattern
38433c89d169a280b0439b9cd4f463d5d7604dd7
[ "MIT" ]
null
null
null
import functools from dtpattern.alignment.alignment_list import align_global, finalize, format_alignment2 from dtpattern.unicode_translate.uc_models import FIX_SYMB from pyjuhelpers.timer import timer class Alignment(object): def __init__(self, alpha, beta, translate=None, m=6, mm=-4, om=3, csetm=4,go=-10, ge...
37.186441
133
0.499696
734
6,582
4.393733
0.185286
0.032248
0.032248
0.018605
0.459535
0.43938
0.396589
0.386047
0.386047
0.368062
0
0.029199
0.370404
6,582
176
134
37.397727
0.749035
0.118201
0
0.475806
0
0
0.098107
0.004341
0
0
0
0
0
1
0.056452
false
0
0.032258
0.008065
0.16129
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
3733a08138ec283d797445a7d27a5b19edaeec7d
6,056
py
Python
tests/test_validators.py
jpsca/pforms
77c9da93e5224e79bb147aa873f28951e972bb21
[ "MIT" ]
2
2020-09-30T22:41:00.000Z
2020-12-04T16:47:17.000Z
tests/test_validators.py
jpsca/hyperform
d5c450ad8684a853fed26f8c2606877151125a9e
[ "MIT" ]
2
2021-11-18T18:01:28.000Z
2021-11-18T18:03:29.000Z
tests/test_validators.py
jpsca/hyperform
d5c450ad8684a853fed26f8c2606877151125a9e
[ "MIT" ]
null
null
null
from datetime import date, datetime import pytest from proper_forms import Date, DateTime, Field, Integer from proper_forms import validators as v def test_confirmed_message(): validator = v.Confirmed() assert validator.message == "Values doesn't match." assert v.Confirmed(message="custom").message == "...
39.842105
79
0.62467
824
6,056
4.541262
0.137136
0.069482
0.032068
0.044896
0.665152
0.524319
0.370657
0.219669
0.181187
0.145377
0
0.115544
0.16397
6,056
151
80
40.10596
0.623543
0
0
0.016529
0
0
0.168758
0
0
0
0
0
0.181818
1
0.099174
false
0.033058
0.033058
0
0.132231
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
3734bdeaee2424fb8a41b0e01dff10a01e85aac8
2,084
py
Python
detection_viz/scripts/fps_calculator.py
Benson516/detection_viz_ROS
7eb0c3edee9f402ab6fe2d8d4050cd4a67eabf6b
[ "MIT" ]
null
null
null
detection_viz/scripts/fps_calculator.py
Benson516/detection_viz_ROS
7eb0c3edee9f402ab6fe2d8d4050cd4a67eabf6b
[ "MIT" ]
null
null
null
detection_viz/scripts/fps_calculator.py
Benson516/detection_viz_ROS
7eb0c3edee9f402ab6fe2d8d4050cd4a67eabf6b
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import rospy import numpy as np import threading from timeit import default_timer as timer import time class FPS: def __init__(self): self.period_update = 0.2 # sec. self.window_size = 25 # samples self.max_cumulated_step = 100000 # self.buffer_cumul...
26.717949
74
0.596929
268
2,084
4.313433
0.283582
0.051903
0.051903
0.083045
0.32699
0.288927
0.188581
0.100346
0.100346
0.100346
0
0.013541
0.291267
2,084
77
75
27.064935
0.769127
0.096929
0
0.136364
0
0
0.004391
0
0
0
0
0
0
1
0.113636
false
0
0.113636
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
3735790497e156cdee39aed5c0df2ddf1799e05b
2,966
py
Python
examples/main.py
levsh/arrlio
c6819bbe697ebcfbeafdd04af07f26f24b33d670
[ "MIT" ]
null
null
null
examples/main.py
levsh/arrlio
c6819bbe697ebcfbeafdd04af07f26f24b33d670
[ "MIT" ]
null
null
null
examples/main.py
levsh/arrlio
c6819bbe697ebcfbeafdd04af07f26f24b33d670
[ "MIT" ]
null
null
null
import asyncio import logging import arrlio import tasks from arrlio import crypto from arrlio.serializer.json import CryptoJson logger = logging.getLogger("arrlio") logger.setLevel("INFO") BACKEND = "arrlio.backend.local" async def main(): async def example_1(): producer = arrlio.Producer(arrlio.Pro...
30.265306
95
0.599798
342
2,966
5.04386
0.248538
0.064928
0.05913
0.055072
0.491014
0.397681
0.365217
0.316522
0.187826
0.187826
0
0.003322
0.289616
2,966
97
96
30.57732
0.815377
0.019555
0
0.246377
0
0
0.047193
0.007234
0
0
0
0
0
1
0.014493
false
0
0.086957
0.014493
0.115942
0.028986
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37369717bf4744bf752a9e5e1db557ed280d3c7a
496
py
Python
Blatt-02/Sonstiges/tribonacci.py
MartinThoma/prog-ws1213
c82a2fb81bac774f8d3214a25c33124a9f512ef0
[ "MIT" ]
1
2017-08-10T13:12:03.000Z
2017-08-10T13:12:03.000Z
Blatt-02/Sonstiges/tribonacci.py
siviaseason/prog-ws1213
c82a2fb81bac774f8d3214a25c33124a9f512ef0
[ "MIT" ]
null
null
null
Blatt-02/Sonstiges/tribonacci.py
siviaseason/prog-ws1213
c82a2fb81bac774f8d3214a25c33124a9f512ef0
[ "MIT" ]
2
2016-06-08T20:56:04.000Z
2022-03-11T20:12:37.000Z
def tribonacci(n): if n < 3: return n else: return tribonacci(n-1) + tribonacci(n-2) + tribonacci(n-3) def tribonacciBottomUp(n): last = 1 secondLast = 1 thirdLast = 1 for i in range(2,n): new = last + secondLast + thirdLast thirdLast = secondLast secondL...
21.565217
73
0.568548
69
496
4.086957
0.376812
0.156028
0.042553
0
0
0
0
0
0
0
0
0.034286
0.294355
496
22
74
22.545455
0.771429
0
0
0
0
0
0.0625
0.0625
0
0
0
0
0
1
0.157895
false
0
0
0
0.315789
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
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
37379882a0e02a3d332d5d8f259eede951ecb249
1,805
py
Python
flake8_pie/tests/test_pie803_prefer_logging_interpolation.py
sbdchd/flake8-pie
96ae441d92abe64b23e1c37b0eb15778434000cc
[ "BSD-2-Clause" ]
23
2019-01-25T14:58:20.000Z
2022-03-27T02:20:01.000Z
flake8_pie/tests/test_pie803_prefer_logging_interpolation.py
sbdchd/flake8-assign-and-return
96ae441d92abe64b23e1c37b0eb15778434000cc
[ "BSD-2-Clause" ]
50
2019-04-17T02:37:01.000Z
2022-03-27T02:19:53.000Z
flake8_pie/tests/test_pie803_prefer_logging_interpolation.py
sbdchd/flake8-assign-and-return
96ae441d92abe64b23e1c37b0eb15778434000cc
[ "BSD-2-Clause" ]
5
2019-02-21T07:29:12.000Z
2021-11-06T21:01:26.000Z
from __future__ import annotations import ast import pytest from flake8_pie import Flake8PieCheck from flake8_pie.pie803_prefer_logging_interpolation import PIE803 from flake8_pie.tests.utils import Error, ex, to_errors EXAMPLES = [ ex( code=r""" logger.info("Login error for %s" % user) """, ...
24.066667
78
0.587812
239
1,805
4.330544
0.271967
0.10628
0.138164
0.14686
0.542029
0.501449
0.446377
0.307246
0.307246
0.216425
0
0.042569
0.232133
1,805
74
79
24.391892
0.704185
0
0
0.588235
0
0
0.330748
0.057064
0
0
0
0
0.014706
1
0.014706
false
0
0.088235
0
0.102941
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
373b0831f54ef02bac3d59c0fc65db6ad11950d7
1,517
py
Python
test/test_graph/test_slice.py
jjon/rdflib
4c2ab7b392b353bf3c6088017ec9351ce8ac3db6
[ "BSD-3-Clause" ]
null
null
null
test/test_graph/test_slice.py
jjon/rdflib
4c2ab7b392b353bf3c6088017ec9351ce8ac3db6
[ "BSD-3-Clause" ]
6
2021-11-22T19:10:32.000Z
2022-01-31T19:16:37.000Z
test/test_graph/test_slice.py
jjon/rdflib
4c2ab7b392b353bf3c6088017ec9351ce8ac3db6
[ "BSD-3-Clause" ]
null
null
null
from test.data import bob, cheese, hates, likes, michel, pizza, tarek from rdflib import Graph class TestGraphSlice: def test_slice(self): """ We pervert the slice object, and use start, stop, step as subject, predicate, object all operations return generators over full triples ...
27.089286
76
0.556361
209
1,517
4.033493
0.45933
0.033215
0.032028
0.053381
0.104389
0
0
0
0
0
0
0.006843
0.325643
1,517
55
77
27.581818
0.817204
0.376401
0
0
0
0
0
0
0
0
0
0
0.043478
1
0.130435
false
0
0.086957
0.086957
0.347826
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
373cd2d11dd4c527255309c855c5dbf16d3610fd
2,163
py
Python
pyContabo/Tags.py
xLeon-python/pyContabo
9863bd1ab0f95b50186902c90c40ce53d3026afd
[ "MIT" ]
5
2022-01-03T10:34:35.000Z
2022-01-27T10:34:41.000Z
pyContabo/Tags.py
xLeon-python/pyContabo
9863bd1ab0f95b50186902c90c40ce53d3026afd
[ "MIT" ]
4
2022-01-14T10:37:57.000Z
2022-01-20T20:44:54.000Z
pyContabo/Tags.py
xLeon-python/pyContabo
9863bd1ab0f95b50186902c90c40ce53d3026afd
[ "MIT" ]
1
2022-01-20T14:59:32.000Z
2022-01-20T14:59:32.000Z
import json from typing import List, Union from .Tag import Tag from .audits.TagsAudits import TagsAudits class Tags: def __init__(self, _http): self._http = _http self.Audits = TagsAudits(_http) def get( self, id: str = None, page: int = None, pageSize: int ...
29.630137
250
0.520573
285
2,163
3.785965
0.277193
0.027804
0.074143
0.061168
0.379981
0.317887
0.317887
0.266914
0.189064
0.189064
0
0.008584
0.353675
2,163
72
251
30.041667
0.763233
0.064263
0
0.163636
0
0.018182
0.162444
0.023845
0
0
0
0
0
1
0.054545
false
0
0.072727
0
0.254545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
373ce6abe69658df775573e30396ce08743e65d4
1,458
py
Python
2021/07/b.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2021/07/b.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2021/07/b.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
from collections import Counter, defaultdict from typing import Dict, List import config def calculate_crab_pos_change_fuel(start: int, end: int) -> int: """Calculate the amount of fuel changed per position. Args: start (int): starting position end (int): ending position Returns: ...
23.516129
67
0.633059
201
1,458
4.368159
0.333333
0.039863
0.05467
0.06492
0.137813
0
0
0
0
0
0
0.006464
0.257202
1,458
61
68
23.901639
0.804247
0.215364
0
0
0
0
0.008333
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
373f20855c48097a781ae0349231baa0bc6b5ae5
5,730
py
Python
aplus_client/django/models.py
apluslms/a-plus-client
21cf1575ef70baf6ece70d6ae99f7bcee554e9b1
[ "MIT" ]
1
2019-10-13T10:21:51.000Z
2019-10-13T10:21:51.000Z
aplus_client/django/models.py
apluslms/a-plus-client
21cf1575ef70baf6ece70d6ae99f7bcee554e9b1
[ "MIT" ]
null
null
null
aplus_client/django/models.py
apluslms/a-plus-client
21cf1575ef70baf6ece70d6ae99f7bcee554e9b1
[ "MIT" ]
1
2018-08-28T18:32:20.000Z
2018-08-28T18:32:20.000Z
import datetime from functools import reduce from urllib.parse import urlsplit from django.apps import apps from django.core.exceptions import ObjectDoesNotExist from django.db import models from django.utils import timezone from django.utils.functional import cached_property from django.utils.translation import ugette...
31.311475
79
0.63822
671
5,730
5.247392
0.207154
0.044306
0.05453
0.031809
0.214996
0.158762
0.158762
0.127237
0.116444
0.106788
0
0.000956
0.269459
5,730
182
80
31.483516
0.840182
0
0
0.265734
0
0
0.03438
0
0
0
0
0
0
1
0.125874
false
0
0.062937
0.020979
0.433566
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
373f799d97bc4aea9455aac2ae9a2ed13f94701c
1,010
py
Python
tests/changes/api/test_kick_sync_repo.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
443
2015-01-03T16:28:39.000Z
2021-04-26T16:39:46.000Z
tests/changes/api/test_kick_sync_repo.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
12
2015-07-30T19:07:16.000Z
2016-11-07T23:11:21.000Z
tests/changes/api/test_kick_sync_repo.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
47
2015-01-09T10:04:00.000Z
2020-11-18T17:58:19.000Z
import json import mock from changes.config import db from changes.testutils import APITestCase class KickSyncRepoTest(APITestCase): path = '/api/0/kick_sync_repo/' def setUp(self): self.repo = self.create_repo() db.session.commit() super(KickSyncRepoTest, self).setUp() def test...
29.705882
80
0.623762
124
1,010
4.959677
0.491935
0.039024
0.039024
0.058537
0.130081
0.130081
0.130081
0.130081
0
0
0
0.010724
0.261386
1,010
33
81
30.606061
0.813673
0
0
0.148148
0
0
0.137624
0.063366
0
0
0
0
0.222222
1
0.111111
false
0
0.148148
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
37401799ef8790b8796a6d77073cb66a40a6c746
1,350
py
Python
send.py
b1tst0rm/pygsuite
8884d85b3bf038c4e41b6447f0c20af6b1925044
[ "MIT" ]
1
2021-06-10T16:59:57.000Z
2021-06-10T16:59:57.000Z
send.py
b1tst0rm/pygsuite
8884d85b3bf038c4e41b6447f0c20af6b1925044
[ "MIT" ]
null
null
null
send.py
b1tst0rm/pygsuite
8884d85b3bf038c4e41b6447f0c20af6b1925044
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import smtplib import ssl import traceback from email.message import EmailMessage import csv csv_name = input("Enter path to CSV: ") with open(csv_name) as csv_file: csv_reader = csv.reader(csv_file, delimiter=",") for row in csv_reader: title = row[0] last_name = row[1] ...
27
70
0.554074
159
1,350
4.603774
0.566038
0.036885
0.032787
0
0
0
0
0
0
0
0
0.012401
0.342963
1,350
49
71
27.55102
0.812852
0.094074
0
0
0
0
0.101678
0
0
0
0
0
0
1
0
false
0
0.16129
0
0.16129
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37403c0b4b4f8c0a873678dc2513d03b98245665
609
py
Python
falco/client_credentials.py
jasondellaluce/client-py
694780796289fdd20f1588d06e66c5a1b52ecb26
[ "Apache-2.0" ]
20
2019-10-14T15:01:14.000Z
2021-08-09T19:13:08.000Z
falco/client_credentials.py
jasondellaluce/client-py
694780796289fdd20f1588d06e66c5a1b52ecb26
[ "Apache-2.0" ]
45
2019-10-14T14:55:30.000Z
2022-02-11T03:27:37.000Z
falco/client_credentials.py
jasondellaluce/client-py
694780796289fdd20f1588d06e66c5a1b52ecb26
[ "Apache-2.0" ]
11
2019-10-14T17:41:06.000Z
2022-02-21T05:40:44.000Z
import grpc def load_file(filepath): with open(filepath, "rb") as f: return f.read() def get_grpc_channel_credentials(client_crt, client_key, ca_root): """Returns a ChannelCredentials object to use with the grpc channel https://grpc.github.io/grpc/python/grpc.html#create-client-credentials ...
27.681818
106
0.747126
82
609
5.256098
0.47561
0.074246
0.12529
0
0
0
0
0
0
0
0
0
0.165846
609
21
107
29
0.848425
0.223317
0
0
0
0
0.004367
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0
0.454545
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
3741437c9d6eeb011b2b876a314bb32cbeb6caaf
2,020
py
Python
scripts/release.py
ydcjeff/api-extractor
0c8b22d75f21d08c3e7601e1bf15a37963742516
[ "MIT" ]
1
2021-07-03T18:42:38.000Z
2021-07-03T18:42:38.000Z
scripts/release.py
ydcjeff/api-extractor
0c8b22d75f21d08c3e7601e1bf15a37963742516
[ "MIT" ]
1
2022-02-04T14:42:25.000Z
2022-02-06T02:21:44.000Z
scripts/release.py
ydcjeff/api-extractor
0c8b22d75f21d08c3e7601e1bf15a37963742516
[ "MIT" ]
null
null
null
# pylint: skip-file import json import subprocess import sys import api_extractor try: from semver import VersionInfo except ImportError: raise ImportError( 'semver must be installed for release. `pip install semver`' ) try: import koloro except ImportError: raise ImportError( 'koloro must be inst...
21.263158
79
0.634653
265
2,020
4.743396
0.407547
0.062053
0.059666
0.052506
0.097056
0.055688
0.055688
0
0
0
0
0.001229
0.194554
2,020
94
80
21.489362
0.771358
0.008416
0
0.208955
0
0
0.287356
0
0
0
0
0
0
1
0.014925
false
0
0.149254
0
0.19403
0.089552
0
0
0
null
0
0
0
0
0
0
0
0
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
3743220aa5b97be4c5b07c94e92e07656a597733
674
py
Python
Exercicios Curso Em Video Mundo 3/Exe_081.py
JorgeTranin/Python_Curso_Em_Video
be74c9301aafc055bdf883be649cb8b7716617e3
[ "MIT" ]
null
null
null
Exercicios Curso Em Video Mundo 3/Exe_081.py
JorgeTranin/Python_Curso_Em_Video
be74c9301aafc055bdf883be649cb8b7716617e3
[ "MIT" ]
null
null
null
Exercicios Curso Em Video Mundo 3/Exe_081.py
JorgeTranin/Python_Curso_Em_Video
be74c9301aafc055bdf883be649cb8b7716617e3
[ "MIT" ]
null
null
null
''' Exercício Python 081: Crie um programa que vai ler vários números e colocar em uma lista. Depois disso, mostre: A) Quantos números foram digitados. B) A lista de valores, ordenada de forma decrescente. C) Se o valor 5 foi digitado e está ou não na lista. ''' lista = list() while True: lista.append(int(input(...
21.741935
57
0.675074
113
674
4.026549
0.628319
0.03956
0.046154
0.043956
0.083516
0.083516
0
0
0
0
0
0.014981
0.207715
674
30
58
22.466667
0.837079
0.376855
0
0
0
0
0.441463
0
0
0
0
0
0
1
0
false
0
0
0
0
0.307692
0
0
0
null
0
0
0
0
0
0
0
0
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
374483f15bf635d6c70ab7f2db45d14d34cefa97
1,327
py
Python
vulnhub/venus/exploit_not_1337_version.py
nhtri2003gmail/ctf-write-ups
7e969c47027c39b614e10739ae3a953eed17dfa3
[ "MIT" ]
101
2020-03-09T17:40:47.000Z
2022-03-31T23:26:55.000Z
vulnhub/venus/exploit_not_1337_version.py
nhtri2003gmail/ctf-write-ups
7e969c47027c39b614e10739ae3a953eed17dfa3
[ "MIT" ]
1
2021-11-09T13:39:40.000Z
2021-11-10T19:15:04.000Z
vulnhub/venus/exploit_not_1337_version.py
datajerk/ctf-write-ups
1bc4ecc63a59de7d924c7214b1ce467801792da0
[ "MIT" ]
31
2020-05-27T12:29:50.000Z
2022-03-31T23:23:32.000Z
#!/usr/bin/env python3 from pwn import * binary = context.binary = ELF('./venus_messaging') if args.REMOTE: #p = remote('172.19.2.239',9080) #port blocked? workaround: ssh -L 9080:localhost:9080 magellan@172.19.2.239 p = remote('localhost',9080) libc = ELF('./libc.so.6') # lame no ASLR ''' # ldd /usr/bin/venu...
25.519231
76
0.6948
212
1,327
4.283019
0.410377
0.132159
0.030837
0.019824
0.248899
0.169604
0
0
0
0
0
0.122432
0.119819
1,327
51
77
26.019608
0.654966
0.104748
0
0.235294
0
0
0.184263
0.030876
0
0
0.043825
0
0
1
0
false
0.029412
0.029412
0
0.029412
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
37495eaeb03f7a3a0e3a85e6649c760538db37b4
9,932
py
Python
Blinkenlights/clients/cal.py
mbalasz/Blinkenlights
f95cb40fb6c9c078ed174a2b70e74f20084db124
[ "Apache-2.0" ]
3
2021-05-23T20:16:03.000Z
2022-02-16T15:52:19.000Z
Blinkenlights/clients/cal.py
mbalasz/Blinkenlights
f95cb40fb6c9c078ed174a2b70e74f20084db124
[ "Apache-2.0" ]
2
2021-06-15T14:01:01.000Z
2021-07-08T13:31:10.000Z
Blinkenlights/clients/cal.py
mbalasz/Blinkenlights
f95cb40fb6c9c078ed174a2b70e74f20084db124
[ "Apache-2.0" ]
7
2021-06-07T11:36:04.000Z
2021-10-31T23:18:10.000Z
#!/usr/bin/python3 # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
34.971831
97
0.592429
1,312
9,932
4.398628
0.297256
0.027725
0.02062
0.014556
0.106221
0.065846
0.015942
0.015942
0.015942
0.015942
0
0.026715
0.283931
9,932
283
98
35.095406
0.78473
0.197644
0
0.085
0
0
0.130566
0.003785
0
0
0
0.003534
0
1
0.09
false
0
0.05
0.025
0.205
0.025
0
0
0
null
0
0
0
0
0
0
0
0
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
3749d562b21ac17eff7db98c573f8f834fbad3b1
6,455
py
Python
edivorce/apps/core/views/efiling.py
seeker25/eDivorce
e0c56424f97a30b74930b35d774c30d7be25b5a1
[ "Apache-2.0" ]
null
null
null
edivorce/apps/core/views/efiling.py
seeker25/eDivorce
e0c56424f97a30b74930b35d774c30d7be25b5a1
[ "Apache-2.0" ]
null
null
null
edivorce/apps/core/views/efiling.py
seeker25/eDivorce
e0c56424f97a30b74930b35d774c30d7be25b5a1
[ "Apache-2.0" ]
null
null
null
import base64 import random import re from django.conf import settings from django.contrib import messages from django.shortcuts import redirect from django.urls import reverse from django.contrib.auth.decorators import login_required from ..decorators import prequal_completed from ..models import Document, UserRespo...
32.933673
117
0.698993
808
6,455
5.311881
0.238861
0.033551
0.029357
0.040774
0.337139
0.288677
0.199674
0.162861
0.102516
0.078751
0
0.009977
0.208056
6,455
195
118
33.102564
0.829617
0.027576
0
0.246479
0
0
0.145437
0.052102
0
0
0
0
0
1
0.070423
false
0
0.098592
0.028169
0.274648
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
374dd8193ca54427fd3b47ebd2fa213180ba8a3d
796
py
Python
pyasn1_modules/rfc3537.py
alvistack/etingof-pyasn1-modules
bdbcc5d9650a8e8382979f089df3307dd4121b49
[ "BSD-2-Clause" ]
34
2016-04-03T09:10:31.000Z
2022-02-12T20:38:31.000Z
pyasn1_modules/rfc3537.py
alvistack/etingof-pyasn1-modules
bdbcc5d9650a8e8382979f089df3307dd4121b49
[ "BSD-2-Clause" ]
138
2017-05-31T09:25:10.000Z
2022-02-07T09:00:19.000Z
pyasn1_modules/rfc3537.py
alvistack/etingof-pyasn1-modules
bdbcc5d9650a8e8382979f089df3307dd4121b49
[ "BSD-2-Clause" ]
36
2016-03-16T00:37:04.000Z
2021-11-12T12:09:43.000Z
# # This file is part of pyasn1-modules software. # # Created by Russ Housley. # # Copyright (c) 2019, Vigil Security, LLC # License: http://snmplabs.com/pyasn1/license.html # # SEED Encryption Algorithm in CMS # # ASN.1 source from: # https://www.rfc-editor.org/rfc/rfc4010.txt # from pyasn1.type import constraint fro...
22.742857
77
0.757538
108
796
5.481481
0.601852
0.033784
0.047297
0.067568
0.121622
0.121622
0.121622
0.121622
0.121622
0.121622
0
0.091954
0.125628
796
34
78
23.411765
0.758621
0.383166
0
0
0
0
0.109244
0.109244
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
374f3b7ef3585b1770c1ec627dee8e6fd5b66ec8
6,195
py
Python
pylibs/benchmarking/tests/test_run_bench/test_benchmark_driver.py
famousyub/smartyphp
2691233a8993b8902c6a3d533a6e3f1fe44fe0f8
[ "MIT" ]
359
2018-06-16T02:42:54.000Z
2022-03-21T06:39:26.000Z
pylibs/benchmarking/tests/test_run_bench/test_benchmark_driver.py
famousyub/smartyphp
2691233a8993b8902c6a3d533a6e3f1fe44fe0f8
[ "MIT" ]
257
2018-07-03T22:08:27.000Z
2022-03-31T18:45:04.000Z
pylibs/benchmarking/tests/test_run_bench/test_benchmark_driver.py
famousyub/smartyphp
2691233a8993b8902c6a3d533a6e3f1fe44fe0f8
[ "MIT" ]
77
2018-06-16T04:00:29.000Z
2022-02-19T03:07:58.000Z
#!/usr/bin/env python ############################################################################## # Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. ################################...
28.548387
85
0.528168
671
6,195
4.734724
0.193741
0.089707
0.101668
0.062323
0.603399
0.506453
0.380548
0.376456
0.367013
0.308467
0
0.097209
0.305892
6,195
216
86
28.680556
0.641628
0.035028
0
0.46988
0
0
0.078775
0
0
0
0
0
0.168675
1
0.114458
false
0
0.012048
0.006024
0.180723
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
3752450480eea1c7e55ce4fc9b56d64c75873411
4,604
py
Python
ADT/Homework 9/HashTables/HashTable.py
Devang-25/CS-Jacobs
d56a70c13ce3863bcf3140990fab5b634b30a2af
[ "MIT" ]
null
null
null
ADT/Homework 9/HashTables/HashTable.py
Devang-25/CS-Jacobs
d56a70c13ce3863bcf3140990fab5b634b30a2af
[ "MIT" ]
null
null
null
ADT/Homework 9/HashTables/HashTable.py
Devang-25/CS-Jacobs
d56a70c13ce3863bcf3140990fab5b634b30a2af
[ "MIT" ]
null
null
null
class Node: # Defining a Node def __init__(self, key=None, value=None): """A Node Class Keyword Arguments: key {int} -- The unique key for a Node (default: {None}) value {int} -- The data for the the Node (default: {None}) """ self.key = key self....
32.885714
86
0.572546
573
4,604
4.572426
0.249564
0.024046
0.034351
0.026336
0.2
0.093511
0.035115
0
0
0
0
0.016279
0.346221
4,604
139
87
33.122302
0.854153
0.399001
0
0.163636
0
0
0.076699
0
0
0
0
0
0
1
0.109091
false
0
0
0
0.254545
0.072727
0
0
0
null
0
0
0
0
0
0
0
0
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
375570af4f92c8f4e216e1ebc0166477badfeb09
1,213
py
Python
chapter11/step02/train_model.py
UserAdminD3us/Microsoft-Certified-Azure-Data-Scientist-Associate-Certification-Guide
62873b5a99120d240a8df8c0b7f81e6c95d5be02
[ "MIT" ]
null
null
null
chapter11/step02/train_model.py
UserAdminD3us/Microsoft-Certified-Azure-Data-Scientist-Associate-Certification-Guide
62873b5a99120d240a8df8c0b7f81e6c95d5be02
[ "MIT" ]
null
null
null
chapter11/step02/train_model.py
UserAdminD3us/Microsoft-Certified-Azure-Data-Scientist-Associate-Certification-Guide
62873b5a99120d240a8df8c0b7f81e6c95d5be02
[ "MIT" ]
null
null
null
import argparse import os import lightgbm as lgb import joblib parser = argparse.ArgumentParser() parser.add_argument( "--learning-rate", type=float, dest="learning_rate", help="Learning date for LightGBM", default=0.01, ) parser.add_argument( "--input-path", type=str, dest="input_path...
22.054545
86
0.690025
162
1,213
4.993827
0.41358
0.086527
0.063041
0.037083
0.091471
0.091471
0.091471
0.091471
0.091471
0
0
0.004921
0.162407
1,213
54
87
22.462963
0.791339
0
0
0.106383
0
0
0.258038
0.018137
0
0
0
0
0
1
0
false
0
0.085106
0
0.085106
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
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
37567441cec8df2625f386786c43826f9d7358ea
6,446
py
Python
log_parser/__init__.py
kozlovzxc/python-log-parser
a7b5c2b489e7cece437dfc36746ff58399646fd0
[ "MIT" ]
null
null
null
log_parser/__init__.py
kozlovzxc/python-log-parser
a7b5c2b489e7cece437dfc36746ff58399646fd0
[ "MIT" ]
null
null
null
log_parser/__init__.py
kozlovzxc/python-log-parser
a7b5c2b489e7cece437dfc36746ff58399646fd0
[ "MIT" ]
null
null
null
from pyparsing import * from string import printable, uppercase from dateutil import parser as dateutil_parser import yaml class LogParser(object): ACCESS_LOG_VARS = { 'request.first_line' : Word(uppercase)('request.method')+\ Literal(" ")+\ SkipTo(" ")('request....
42.973333
134
0.477195
564
6,446
5.265957
0.271277
0.03771
0.036364
0.038384
0.134007
0.116498
0.116498
0.116498
0.093603
0
0
0.005415
0.398387
6,446
149
135
43.261745
0.760444
0.032578
0
0.161765
0
0
0.113465
0.021987
0
0
0
0
0
1
0.036765
false
0
0.029412
0.014706
0.25
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
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
37578518bee7829df262610a24f622d6d408232d
12,196
py
Python
python/biograph/vdb/parquet_test.py
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
16
2021-07-14T23:32:31.000Z
2022-03-24T16:25:15.000Z
python/biograph/vdb/parquet_test.py
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
9
2021-07-20T20:39:47.000Z
2021-09-16T20:57:59.000Z
python/biograph/vdb/parquet_test.py
spiralgenetics/biograph
33c78278ce673e885f38435384f9578bfbf9cdb8
[ "BSD-2-Clause" ]
9
2021-07-15T19:38:35.000Z
2022-01-31T19:24:56.000Z
# pylint: disable=missing-docstring import unittest import gzip import tempfile from biograph.vdb import vcf_to_parquet, anno_to_parquet import biograph.vdb.parquet import pyarrow as pa import pandas as pd class ParquetTestCases(unittest.TestCase): def setUp(self): # Make sure we test having multiple inp...
45.00369
269
0.38816
1,066
12,196
4.333959
0.287993
0.040476
0.042857
0.024675
0.470563
0.398485
0.366667
0.331169
0.311039
0.301299
0
0.084639
0.455559
12,196
270
270
45.17037
0.611145
0.044605
0
0.583333
0
0.004167
0.180087
0.030655
0
0
0.00222
0
0.104167
1
0.033333
false
0
0.029167
0
0.075
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
375827b6a9a91f6310a50237f1737c67e7e7e925
2,430
py
Python
bot/libraries/helper.py
Feyko/FICSIT-Fred
94f049214d82d61862fe03405a2fd60a51e48177
[ "MIT" ]
5
2020-05-24T21:29:34.000Z
2022-02-04T03:09:18.000Z
bot/libraries/helper.py
Feyko/FICSIT-Fred
94f049214d82d61862fe03405a2fd60a51e48177
[ "MIT" ]
33
2021-08-02T16:41:48.000Z
2022-03-31T21:22:10.000Z
bot/libraries/helper.py
Feyko/FICSIT-Fred
94f049214d82d61862fe03405a2fd60a51e48177
[ "MIT" ]
3
2021-03-03T18:48:27.000Z
2021-07-28T12:23:27.000Z
import re import asyncio from html.parser import HTMLParser import aiohttp from discord.ext import commands import config def is_bot_author(id: int): return id == 227473074616795137 async def t3_only(ctx): return is_bot_author(ctx.author.id) or permission_check(ctx, 4) async def mod_only(ctx): return ...
26.413043
112
0.597531
328
2,430
4.301829
0.393293
0.031892
0.023388
0.021262
0.145996
0.145996
0.077959
0.077959
0.077959
0.077959
0
0.014013
0.265844
2,430
91
113
26.703297
0.776906
0.025514
0
0.057971
0
0
0.095983
0
0
0
0
0
0
1
0.101449
false
0.014493
0.086957
0.014493
0.347826
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
37589b5d5e93593f28c9b4b9003c4e6bfe3a425e
8,419
py
Python
src/build_df_to_plot.py
crahal/centgovspend
82ae1f63ec735da59cbe75dd47eda51d202d7555
[ "MIT" ]
4
2018-06-23T09:08:29.000Z
2021-11-11T18:27:50.000Z
src/build_df_to_plot.py
crahal/centgovspend
82ae1f63ec735da59cbe75dd47eda51d202d7555
[ "MIT" ]
null
null
null
src/build_df_to_plot.py
crahal/centgovspend
82ae1f63ec735da59cbe75dd47eda51d202d7555
[ "MIT" ]
null
null
null
import glob import ntpath import pandas as pd def build_timely_df(payments): ''' build the longitudinal dataset for figure 2b ''' timely_df = pd.DataFrame(columns=['Number of Payments', 'Value of Payments']) for year in list(range(2009, 2018)): timel...
47.835227
112
0.473215
868
8,419
4.420507
0.228111
0.043784
0.080271
0.069325
0.545478
0.434715
0.365911
0.35705
0.338546
0.314829
0
0.058424
0.369759
8,419
175
113
48.108571
0.664342
0.010334
0
0.251613
0
0
0.168734
0.005403
0
0
0
0
0
1
0.058065
false
0.006452
0.019355
0.019355
0.135484
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
375baab0f35211b2da08b1e7f0a7cfd2b213edad
361
py
Python
imagekitio/constants/files.py
samims/imagekit-python
4bc8041e22c6333710645ddc95446c9c348eea5b
[ "MIT" ]
1
2020-01-20T16:56:32.000Z
2020-01-20T16:56:32.000Z
imagekitio/constants/files.py
samims/imagekit-python
4bc8041e22c6333710645ddc95446c9c348eea5b
[ "MIT" ]
null
null
null
imagekitio/constants/files.py
samims/imagekit-python
4bc8041e22c6333710645ddc95446c9c348eea5b
[ "MIT" ]
null
null
null
VALID_FILE_OPTIONS = [ "path", "fileType", "tags", "includeFolder", "name", "limit", "skip", ] VALID_FILE_DETAIL_OPTIONS = ["fileID"] VALID_UPLOAD_OPTIONS = [ "file", "file_name", "use_unique_file_name", "tags", "folder", "is_private_file", "custom_coordinates",...
15.041667
38
0.581717
35
361
5.571429
0.657143
0.092308
0
0
0
0
0
0
0
0
0
0
0.257618
361
23
39
15.695652
0.727612
0
0
0.095238
0
0
0.407202
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
375c80d3b986b5561b93d213ff84e9281e6dd2b6
9,972
py
Python
src/getContents.py
ajayz09/amazon-textract
bea3028596d6b60482017e12b80cbb0d2b91d3a5
[ "Apache-2.0" ]
1
2021-01-03T01:23:52.000Z
2021-01-03T01:23:52.000Z
src/getContents.py
ajayz09/amazon-textract
bea3028596d6b60482017e12b80cbb0d2b91d3a5
[ "Apache-2.0" ]
null
null
null
src/getContents.py
ajayz09/amazon-textract
bea3028596d6b60482017e12b80cbb0d2b91d3a5
[ "Apache-2.0" ]
null
null
null
import os import time import csv import pandas as pd def formatdate(paymentDate): months = dict(january='01', february='02', march='03', april='04', may='05', june='06', july='07', august='08', september='09', october='10', november='11', december='12') paymentDateList = paymentDate.split() if (len(payment...
38.206897
175
0.586843
920
9,972
6.3
0.166304
0.008282
0.037267
0.022774
0.504658
0.478088
0.441511
0.43668
0.414941
0.412698
0
0.007577
0.298536
9,972
261
176
38.206897
0.821015
0.018853
0
0.556034
0
0
0.088575
0.038662
0
0
0
0
0
1
0.056034
false
0
0.017241
0
0.189655
0.064655
0
0
0
null
0
0
0
0
0
0
0
0
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
375e6389f147aa8b980167ffea1afe5678abb33e
4,203
py
Python
sspace/backends/cspace.py
Epistimio/sample-space
5435b7f97a5c9dea279271033fd4582dbd77211f
[ "BSD-3-Clause" ]
null
null
null
sspace/backends/cspace.py
Epistimio/sample-space
5435b7f97a5c9dea279271033fd4582dbd77211f
[ "BSD-3-Clause" ]
6
2020-05-23T02:16:40.000Z
2022-03-16T01:37:45.000Z
sspace/backends/cspace.py
Epistimio/sample-space
5435b7f97a5c9dea279271033fd4582dbd77211f
[ "BSD-3-Clause" ]
null
null
null
import_error = None try: import ConfigSpace as cs import ConfigSpace.hyperparameters as csh from sspace.utils import sort_dict cond_dispatch_leaves = { 'eq': cs.EqualsCondition, 'ne': cs.NotEqualsCondition, 'lt': cs.LessThanCondition, 'gt': cs.GreaterThanCondition, ...
28.787671
97
0.600999
457
4,203
5.374179
0.266958
0.017101
0.030945
0.013436
0.245521
0.210098
0.185668
0.098534
0.049674
0.049674
0
0
0.29931
4,203
145
98
28.986207
0.833956
0
0
0.113208
0
0
0.044016
0
0
0
0
0
0
1
0.084906
false
0
0.075472
0.009434
0.283019
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
3761ad381b725114e1ca90dc5552b488a21daeb4
16,128
py
Python
models/roberta.py
tjdevWorks/multimodal-sentiment-prediction
cc656817f12e9676f59dd66c134a365bad8cbcec
[ "Apache-2.0" ]
8
2022-02-04T20:37:26.000Z
2022-03-30T03:18:04.000Z
models/roberta.py
tjdevWorks/multimodal-sentiment-prediction
cc656817f12e9676f59dd66c134a365bad8cbcec
[ "Apache-2.0" ]
1
2022-02-13T22:44:30.000Z
2022-02-13T23:15:34.000Z
models/roberta.py
tjdevWorks/TEASEL
cc656817f12e9676f59dd66c134a365bad8cbcec
[ "Apache-2.0" ]
null
null
null
from transformers import RobertaPreTrainedModel from transformers.models.roberta.modeling_roberta import RobertaEmbeddings, RobertaEncoder, RobertaPooler, RobertaLMHead, RobertaClassificationHead from transformers.modeling_outputs import BaseModelOutputWithPoolingAndCrossAttentions, MaskedLMOutput, SequenceClassifierOu...
44.8
213
0.667783
2,018
16,128
5.061447
0.153617
0.036421
0.021147
0.014
0.418837
0.334737
0.31868
0.255042
0.217838
0.198159
0
0.004591
0.257254
16,128
359
214
44.924791
0.848067
0.264447
0
0.471545
0
0
0.045072
0.017108
0
0
0
0
0
1
0.044715
false
0
0.020325
0.00813
0.130081
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
3762cff1ab3661bebf0065d7a9d2efca756c6d5d
14,847
py
Python
packages/pdf/src/RPA/PDF/keywords/finder.py
AntonStange/rpaframework
2a6a4abe56c7fece4f9cfed1ba488774393abdd8
[ "Apache-2.0" ]
25
2020-03-30T09:01:11.000Z
2020-05-21T04:04:58.000Z
packages/pdf/src/RPA/PDF/keywords/finder.py
AntonStange/rpaframework
2a6a4abe56c7fece4f9cfed1ba488774393abdd8
[ "Apache-2.0" ]
2
2020-04-02T18:08:58.000Z
2020-05-27T12:07:19.000Z
packages/pdf/src/RPA/PDF/keywords/finder.py
AntonStange/rpaframework
2a6a4abe56c7fece4f9cfed1ba488774393abdd8
[ "Apache-2.0" ]
7
2020-04-02T17:17:26.000Z
2020-05-27T04:18:54.000Z
import functools import math import re from dataclasses import dataclass try: # Python >=3.7 from re import Pattern except ImportError: # Python =3.6 from re import _pattern_type as Pattern from typing import ( Callable, Dict, List, Optional, Union, ) from RPA.PDF.keywords import (...
34.052752
88
0.579309
1,648
14,847
5.099515
0.169296
0.020228
0.007853
0.008567
0.297953
0.240124
0.212042
0.191218
0.178605
0.160162
0
0.004541
0.332525
14,847
435
89
34.131034
0.843491
0.253587
0
0.23913
0
0.003623
0.055556
0
0
0
0
0
0
1
0.047101
false
0
0.036232
0
0.184783
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
37637a324f01571ae1690b30b0221a8ae45d7ede
2,662
py
Python
ctimer/cli.py
zztin/ctimer
a0721bb9791b23305ee4ff4a2eb30a1f4d8c80cc
[ "Apache-2.0" ]
null
null
null
ctimer/cli.py
zztin/ctimer
a0721bb9791b23305ee4ff4a2eb30a1f4d8c80cc
[ "Apache-2.0" ]
35
2020-06-07T12:40:43.000Z
2021-06-03T19:56:01.000Z
ctimer/cli.py
zztin/ctimer
a0721bb9791b23305ee4ff4a2eb30a1f4d8c80cc
[ "Apache-2.0" ]
1
2020-06-04T05:31:03.000Z
2020-06-04T05:31:03.000Z
"""Console script for ctimer.""" from ctimer import ctimer import ctimer.ctimer_db as db import sys import argparse from ctimer.visual import show_stats as ss import logging from ctimer import utils def main(): parser = argparse.ArgumentParser() parser.add_argument( "--debug", help="Shorten cl...
31.690476
160
0.616454
344
2,662
4.610465
0.392442
0.034048
0.08575
0.066204
0.286255
0.261034
0.136192
0.136192
0.136192
0.136192
0
0.005708
0.276108
2,662
83
161
32.072289
0.817333
0.027423
0
0.253333
0
0.026667
0.300271
0.020922
0
0
0
0
0
1
0.013333
false
0
0.093333
0
0.106667
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
37667d129be38ecf142b51cf7166051726ad367a
5,256
py
Python
ZoomImage.py
renshj/High-Cadence-Processing
5d5a2df741858f6e1466d7c4b008e9245d4b780a
[ "MIT" ]
null
null
null
ZoomImage.py
renshj/High-Cadence-Processing
5d5a2df741858f6e1466d7c4b008e9245d4b780a
[ "MIT" ]
null
null
null
ZoomImage.py
renshj/High-Cadence-Processing
5d5a2df741858f6e1466d7c4b008e9245d4b780a
[ "MIT" ]
null
null
null
#This file was created by Wayne Dreyer #It serves to create a zoomed/cropped image around the detected candidate import matplotlib.pyplot as plt from matplotlib.figure import Figure from PIL import Image import math from ZoomObject import ZoomObject #import DataObject as dataObject #Takes in path to the ima...
46.105263
265
0.682839
664
5,256
5.40512
0.274096
0.030092
0.033436
0.025634
0.355531
0.31095
0.246308
0.246308
0.246308
0.246308
0
0.014081
0.216324
5,256
113
266
46.513274
0.857247
0.277017
0
0.15
0
0
0.010932
0
0
0
0
0
0
1
0.075
false
0
0.0625
0
0.1625
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
37668c7ab8f618318b3325cde0c87efe87b84f7c
2,032
py
Python
service/dataset_builder.py
sumanthgenz/magma
44a6c8b834fbf683c959ce336c6cdfe1df828980
[ "MIT" ]
null
null
null
service/dataset_builder.py
sumanthgenz/magma
44a6c8b834fbf683c959ce336c6cdfe1df828980
[ "MIT" ]
null
null
null
service/dataset_builder.py
sumanthgenz/magma
44a6c8b834fbf683c959ce336c6cdfe1df828980
[ "MIT" ]
null
null
null
import pickle import glob import random from tqdm import tqdm import os import collections import urllib import urllib.request from urllib.request import Request, urlopen import json import shutil class DatasetBuilder: def __init__(self, name, data_type, classes, class_size): self.name = name self...
30.787879
130
0.633858
275
2,032
4.530909
0.432727
0.052167
0.020867
0
0
0
0
0
0
0
0
0.020739
0.24065
2,032
65
131
31.261538
0.786779
0
0
0.039216
0
0.019608
0.140748
0.011811
0
0
0
0
0
1
0.137255
false
0.039216
0.215686
0
0.45098
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
37682a93288511c01d92701ef4ba444acd620a71
391
py
Python
app.py
flyme2bluemoon/Flask-Project-Template
0a2953e4ec77ec577b13655856ab162efb536d4a
[ "MIT" ]
null
null
null
app.py
flyme2bluemoon/Flask-Project-Template
0a2953e4ec77ec577b13655856ab162efb536d4a
[ "MIT" ]
null
null
null
app.py
flyme2bluemoon/Flask-Project-Template
0a2953e4ec77ec577b13655856ab162efb536d4a
[ "MIT" ]
null
null
null
from helpers import * from flask import Flask, redirect, request, render_template, session from flask_session import Session app = Flask(__name__) app.config["TEMPLATES_AUTO_RELOAD"] = True app.config["SESSION_PERMANENT"] = False app.config["SESSION_TYPE"] = "filesystem" Session(app) @app.route("/") def index(): ...
23
68
0.7289
54
391
4.944444
0.555556
0.101124
0.11985
0
0
0
0
0
0
0
0
0.01173
0.127877
391
17
69
23
0.771261
0
0
0
0
0
0.206633
0.053571
0
0
0
0
0
1
0.076923
false
0
0.230769
0.076923
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3768f3ba1595d85981a62e468f1663abf36a9838
7,179
py
Python
mmf/utils/logger.py
san2597/mmf
c0812e9281c6e679cb7f00af78a5eda267820aab
[ "BSD-3-Clause" ]
2
2021-02-22T12:15:42.000Z
2021-05-02T15:22:24.000Z
mmf/utils/logger.py
san2597/mmf
c0812e9281c6e679cb7f00af78a5eda267820aab
[ "BSD-3-Clause" ]
7
2021-03-01T21:16:26.000Z
2022-02-27T07:07:11.000Z
mmf/utils/logger.py
krantirk/MMF
2e4acaad7ca8eee4319e1205a560eed81733a0be
[ "BSD-3-Clause" ]
1
2022-03-04T14:19:43.000Z
2022-03-04T14:19:43.000Z
# Copyright (c) Facebook, Inc. and its affiliates. import collections import json import logging import os import sys from typing import Type from mmf.utils.configuration import get_mmf_env from mmf.utils.distributed import is_master from mmf.utils.file_io import PathManager from mmf.utils.timer import Timer class ...
32.337838
86
0.620003
892
7,179
4.764574
0.206278
0.032941
0.025412
0.017647
0.326118
0.273882
0.192
0.192
0.140706
0.108706
0
0.000776
0.281794
7,179
221
87
32.484163
0.823507
0.068533
0
0.265823
0
0
0.042061
0.003906
0
0
0
0
0
1
0.094937
false
0.006329
0.06962
0
0.259494
0.025316
0
0
0
null
0
0
0
0
0
0
0
0
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
376ac08cf10241073ec03135469cc20f62b04104
1,710
py
Python
mex.py
hagai-helman/mex
d4ee6f79dd0f96346a1b16727e5aa91ab808aed5
[ "MIT" ]
null
null
null
mex.py
hagai-helman/mex
d4ee6f79dd0f96346a1b16727e5aa91ab808aed5
[ "MIT" ]
null
null
null
mex.py
hagai-helman/mex
d4ee6f79dd0f96346a1b16727e5aa91ab808aed5
[ "MIT" ]
null
null
null
class MexFinder: """This class collects non-negative integers, and finds the minimal non-negative integer that was not added to it. """ def __init__(self): # We maintain a dict, representing a set, with the following # invariants: # (a) Its keys are the elements of the set (and -...
32.884615
78
0.580117
249
1,710
3.927711
0.37751
0.051125
0.07362
0.064417
0.216769
0.143149
0.0818
0
0
0
0
0.010408
0.325731
1,710
51
79
33.529412
0.837814
0.562573
0
0
0
0
0
0
0
0
0
0
0
1
0.190476
false
0
0
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
0
0
0
0
1
0
376b687ba9788b6a0541074221d59f6f3f6f83f8
1,672
py
Python
tests/conftest.py
karolow/geocoder
e88014015a3ae2643203944401e7e4030948a635
[ "MIT" ]
null
null
null
tests/conftest.py
karolow/geocoder
e88014015a3ae2643203944401e7e4030948a635
[ "MIT" ]
null
null
null
tests/conftest.py
karolow/geocoder
e88014015a3ae2643203944401e7e4030948a635
[ "MIT" ]
null
null
null
from collections import namedtuple from pytest import fixture from geocoder.geocoding import ( Addresses, Coordinates, ) @fixture def mock_csv_coordinates(tmp_path): data = [ "city,street,number,postal_code,state,lon,lat", "Katowice,Armii Krajowej,102,40-671,istniejacy,259921.7313,498200....
28.827586
80
0.668062
203
1,672
5.384236
0.359606
0.045746
0.038426
0.054895
0.307411
0.307411
0.254346
0.254346
0.254346
0.254346
0
0.088775
0.184809
1,672
57
81
29.333333
0.713133
0
0
0.326087
0
0
0.294856
0.184211
0
0
0
0
0
1
0.108696
false
0
0.065217
0
0.23913
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
376df6d7f89516a0e412a13d0db28bac87a6c75e
7,176
py
Python
update/update_db.py
reclada/db
09dfdeaad8d1f48082aa0512eed7ba3394f1d737
[ "Apache-2.0" ]
null
null
null
update/update_db.py
reclada/db
09dfdeaad8d1f48082aa0512eed7ba3394f1d737
[ "Apache-2.0" ]
2
2021-06-04T11:42:27.000Z
2021-06-04T16:16:21.000Z
update/update_db.py
reclada/db
09dfdeaad8d1f48082aa0512eed7ba3394f1d737
[ "Apache-2.0" ]
2
2021-04-16T09:00:04.000Z
2021-06-23T12:07:45.000Z
import os import json import stat from pathlib import Path import sys import urllib.parse import uuid import shutil os.chdir(os.path.dirname(os.path.abspath(__file__))) j = '' with open('update_config.json') as f: j = f.read() j = json.loads(j) branch_db = j["branch_db"] branch_runtime = j["branch_runtime"] bran...
28.589641
133
0.603958
1,000
7,176
4.131
0.216
0.038732
0.013556
0.019366
0.134834
0.088114
0.054708
0.044057
0.029049
0.029049
0
0.019561
0.244844
7,176
251
134
28.589641
0.742757
0.013657
0
0.178571
0
0
0.237173
0.049611
0
0
0
0
0
1
0.071429
false
0.005102
0.040816
0.010204
0.153061
0.030612
0
0
0
null
0
0
0
0
0
0
0
0
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
376fcab57617bb6cde8c9472e7ac7b41d22d82ce
15,579
py
Python
yoyo/tests/test_migrations.py
emurphy/yoyo
f9a32d5448970da3a81041692420d5def490b7b0
[ "Apache-2.0" ]
null
null
null
yoyo/tests/test_migrations.py
emurphy/yoyo
f9a32d5448970da3a81041692420d5def490b7b0
[ "Apache-2.0" ]
null
null
null
yoyo/tests/test_migrations.py
emurphy/yoyo
f9a32d5448970da3a81041692420d5def490b7b0
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Oliver Cope # # 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 writing, ...
35.649886
86
0.642275
1,950
15,579
4.926667
0.144615
0.034975
0.039554
0.012491
0.588633
0.525034
0.506089
0.457895
0.435516
0.404393
0
0.020156
0.232492
15,579
436
87
35.731651
0.783307
0.073368
0
0.417857
0
0
0.107761
0.005396
0
0
0
0
0.15
1
0.135714
false
0
0.042857
0.003571
0.210714
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
377084db60ebee117b24913239fec5ff9e73b737
2,613
py
Python
aiogram_oop_framework/core/project.py
drforse/aiogram_oop_framework
ee56b6a0893300fea43f01c2f4c4ea8b5fae1424
[ "MIT" ]
null
null
null
aiogram_oop_framework/core/project.py
drforse/aiogram_oop_framework
ee56b6a0893300fea43f01c2f4c4ea8b5fae1424
[ "MIT" ]
null
null
null
aiogram_oop_framework/core/project.py
drforse/aiogram_oop_framework
ee56b6a0893300fea43f01c2f4c4ea8b5fae1424
[ "MIT" ]
null
null
null
from pathlib import Path from aiogram_oop_framework.core.funcs import get_init_py class ProjectStructure: def __init__(self, project: 'Project'): self.root: Path = project.path / project.name self.directories = {'root': {'directory': self.root, 'tree': {}}} def add_dir_to_root(self, name: st...
34.381579
104
0.566781
304
2,613
4.700658
0.236842
0.115465
0.06648
0.046186
0.279916
0.249825
0.176347
0.176347
0.176347
0.176347
0
0
0.307692
2,613
75
105
34.84
0.789939
0.083046
0
0.188679
0
0
0.068653
0
0
0
0
0
0
1
0.150943
false
0
0.037736
0
0.226415
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
37756f838d9a991c6fb09146913f58963f4cf285
3,149
py
Python
gender_detection_keras.py
matejcrnac/Face_deidentification_kazemi
434fff49b5a7b555bb3c56a62915fd502e0b75f9
[ "MIT" ]
1
2019-03-27T10:30:54.000Z
2019-03-27T10:30:54.000Z
gender_detection_keras.py
matejcrnac/Face_deidentification_kazemi
434fff49b5a7b555bb3c56a62915fd502e0b75f9
[ "MIT" ]
null
null
null
gender_detection_keras.py
matejcrnac/Face_deidentification_kazemi
434fff49b5a7b555bb3c56a62915fd502e0b75f9
[ "MIT" ]
null
null
null
#Classifier 1------------------------------------------------------------- # author: Arun Ponnusamy # website: https://www.arunponnusamy.com # import necessary packages from keras.preprocessing.image import img_to_array from keras.models import load_model import numpy as np import cv2 import cvlib as cv class Gend...
33.5
117
0.659257
414
3,149
4.78744
0.335749
0.040363
0.090817
0.110999
0.258325
0.244198
0.221998
0.221998
0
0
0
0.050778
0.224516
3,149
93
118
33.860215
0.760852
0.158463
0
0
0
0
0.29962
0.274525
0
0
0
0
0
1
0.058824
false
0
0.098039
0
0.235294
0.078431
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3775c014edc4cfe9bbf99059dbab03441eae21fe
3,389
py
Python
dnppy/convert/_extract_HDF_layer_data.py
NASA-DEVELOP/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
65
2015-09-10T12:59:56.000Z
2022-02-27T22:09:03.000Z
dnppy/convert/_extract_HDF_layer_data.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
40
2015-04-08T19:23:30.000Z
2015-08-04T15:53:11.000Z
dnppy/convert/_extract_HDF_layer_data.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
45
2015-08-14T19:09:38.000Z
2022-02-15T18:53:16.000Z
__author__ = ['djjensen', 'jwely'] __all__ = ["_extract_HDF_layer_data"] import gdal import os def _extract_HDF_layer_data(hdfpath, layer_indexs = None): """ Extracts one or more layers from an HDF file and returns a dictionary with all the data available in the HDF layer for use in further format conver...
33.89
154
0.691059
475
3,389
4.764211
0.397895
0.048608
0.046399
0.058772
0.188688
0.175873
0.175873
0.114892
0.114892
0
0
0.06448
0.208321
3,389
99
155
34.232323
0.778979
0.594571
0
0
0
0.037037
0.153907
0.106551
0
0
0
0
0
1
0.037037
false
0
0.074074
0
0.148148
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
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
377821387853d45c0c5a9841c83920bc6e3f180e
1,964
py
Python
network/R2plus1d.py
sabarim/3DC-Seg
210ee5b9ddebfed7b44c544e2eeb8c3d00e2a7d7
[ "MIT" ]
50
2020-09-11T07:57:49.000Z
2022-03-27T06:37:37.000Z
network/R2plus1d.py
sabarim/3DC-Seg
210ee5b9ddebfed7b44c544e2eeb8c3d00e2a7d7
[ "MIT" ]
15
2020-09-11T12:54:34.000Z
2022-01-13T08:38:38.000Z
network/R2plus1d.py
sabarim/3DC-Seg
210ee5b9ddebfed7b44c544e2eeb8c3d00e2a7d7
[ "MIT" ]
12
2020-10-01T07:29:53.000Z
2021-09-18T11:00:49.000Z
import torch from torch import nn from torchvision.models.video.resnet import VideoResNet, BasicBlock, Conv2Plus1D, R2Plus1dStem model_urls = { "r2plus1d_34_8_ig65m": "https://github.com/moabitcoin/ig65m-pytorch/releases/download/v1.0.0/r2plus1d_34_clip8_ig65m_from_scratch-9bae36ae.pth", # noqa: E501 ...
44.636364
171
0.682281
260
1,964
4.961538
0.4
0.069767
0.065116
0.074419
0.293798
0.277519
0.24186
0.24186
0.24186
0.24186
0
0.116592
0.205193
1,964
43
172
45.674419
0.709801
0.1222
0
0
0
0.142857
0.330029
0.026239
0
0
0
0
0
1
0.035714
false
0
0.107143
0
0.178571
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
3778b68ea4424c5dd5d977058233e58cf1a45c2c
2,213
py
Python
mapillary_tools/gps_parser.py
didier2020/mapillary_tools
23b8f422559f8dfdabdebc26d0d2001d40fbe2ef
[ "BSD-2-Clause" ]
null
null
null
mapillary_tools/gps_parser.py
didier2020/mapillary_tools
23b8f422559f8dfdabdebc26d0d2001d40fbe2ef
[ "BSD-2-Clause" ]
null
null
null
mapillary_tools/gps_parser.py
didier2020/mapillary_tools
23b8f422559f8dfdabdebc26d0d2001d40fbe2ef
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python import datetime from .geo import utc_to_localtime import gpxpy import pynmea2 """ Methods for parsing gps data from various file format e.g. GPX, NMEA, SRT. """ def get_lat_lon_time_from_gpx(gpx_file, local_time=True): """ Read location and time stamps from a track in a GPX file. Re...
27.6625
88
0.612743
316
2,213
4.21519
0.297468
0.027027
0.031532
0.024775
0.554054
0.554054
0.509009
0.509009
0.509009
0.509009
0
0.003839
0.293719
2,213
79
89
28.012658
0.848369
0.219611
0
0.463415
0
0
0.013863
0
0
0
0
0
0
1
0.04878
false
0
0.097561
0
0.195122
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
37795fd108033032ce115714c706b125640ba1c5
1,685
py
Python
src/polyd_events/consumer.py
supernothing/polyd-events
527dbd4c538253bed9a4096711e1ba4ee32202bf
[ "MIT" ]
null
null
null
src/polyd_events/consumer.py
supernothing/polyd-events
527dbd4c538253bed9a4096711e1ba4ee32202bf
[ "MIT" ]
null
null
null
src/polyd_events/consumer.py
supernothing/polyd-events
527dbd4c538253bed9a4096711e1ba4ee32202bf
[ "MIT" ]
null
null
null
import logging import time import inflection from .events import Event, RedisEvent logger = logging.getLogger(__name__) class EventConsumer(object): def __init__(self, streams, group, consumer_name, db, consume_from_end=False): """ An event consumer :param streams: List of stream names ...
31.203704
121
0.563798
206
1,685
4.480583
0.354369
0.032503
0.032503
0.028169
0.045504
0
0
0
0
0
0
0.009964
0.344807
1,685
53
122
31.792453
0.826087
0.106231
0
0
0
0
0.033793
0
0
0
0
0
0
1
0.085714
false
0
0.114286
0
0.228571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
378287ed5b55d57f24765ff2c9e50d71d392d932
3,438
py
Python
urdu_tts/tts/text_processor/number_strings.py
mhsiddiqui/nlp_with_docker
a44191f2acc4e7cb62bea8bfdff6ffca123613e9
[ "Apache-2.0" ]
null
null
null
urdu_tts/tts/text_processor/number_strings.py
mhsiddiqui/nlp_with_docker
a44191f2acc4e7cb62bea8bfdff6ffca123613e9
[ "Apache-2.0" ]
3
2020-06-05T18:09:02.000Z
2021-06-10T20:06:02.000Z
urdu_tts/tts/text_processor/number_strings.py
mhsiddiqui/nlp_with_docker
a44191f2acc4e7cb62bea8bfdff6ffca123613e9
[ "Apache-2.0" ]
null
null
null
import csv import re import collections from tts.text_processor import RESOURCE_PATH class GetStringType(object): """ Get String type if it is Date, Time, Number Number formats which are handled are below 1. Date (12.12.12 or 12/12/12 or 12-12-12) 2. Time (12:12:12 or 12:12) 3....
30.157895
98
0.559046
436
3,438
4.188073
0.192661
0.043812
0.026287
0.035049
0.372399
0.372399
0.215772
0.215772
0.215772
0.215772
0
0.03838
0.317917
3,438
113
99
30.424779
0.740299
0.111402
0
0.240506
0
0
0.048813
0.019726
0
0
0
0
0
1
0.113924
false
0
0.050633
0
0.316456
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
378755b6e4a6d1df5540651db412b6b7152b2607
2,055
py
Python
classes/entities/song.py
Xindictus/Simple-Web-Based-Interface-CRUD
274fe6aa4e6e2583a04b3bb1a8ba3f9aa213c263
[ "Apache-2.0" ]
null
null
null
classes/entities/song.py
Xindictus/Simple-Web-Based-Interface-CRUD
274fe6aa4e6e2583a04b3bb1a8ba3f9aa213c263
[ "Apache-2.0" ]
null
null
null
classes/entities/song.py
Xindictus/Simple-Web-Based-Interface-CRUD
274fe6aa4e6e2583a04b3bb1a8ba3f9aa213c263
[ "Apache-2.0" ]
null
null
null
#!/Python27/python from ..database.database import Database # A class used for song insertion class Song: def __init__(self, title, production_year, cd, singer, composer, song_writer): self.title = title self.production_year = production_year self.cd = cd self.singer = singer ...
35.431034
112
0.552798
218
2,055
5.105505
0.348624
0.040431
0.048518
0.016173
0.156334
0.127583
0.127583
0.127583
0.127583
0.127583
0
0.001496
0.349392
2,055
57
113
36.052632
0.830965
0.163504
0
0.054054
0
0.027027
0.18538
0
0
0
0
0
0
1
0.054054
false
0
0.027027
0
0.162162
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
378979218302d31b75d0e2659058fd19f5495d01
1,237
py
Python
NeoAnalysis_Py3.5/NeoAnalysis/readio/h5_io.py
Research-lab-KUMS/NeoAnalysis
32b508dfade3069b1ec5cc7664574b8d3f2d5f57
[ "MIT" ]
23
2017-09-04T13:20:38.000Z
2022-03-08T08:15:17.000Z
NeoAnalysis_Py3.5/NeoAnalysis/readio/h5_io.py
Research-lab-KUMS/NeoAnalysis
32b508dfade3069b1ec5cc7664574b8d3f2d5f57
[ "MIT" ]
4
2018-01-05T13:44:29.000Z
2021-09-30T17:08:15.000Z
NeoAnalysis_Py2.7/NeoAnalysis/readio/h5_io.py
neoanalysis/NeoAnalysis
c5f25b71e16997f3a05f70b1eead11f99a3b7e2b
[ "MIT" ]
5
2017-11-26T19:40:46.000Z
2021-03-11T17:25:23.000Z
import h5py as hp import numpy as np import re def h5_io(filename, spike_to_load, analog_to_load): spikes = dict() analogs = dict() events = dict() comments = dict() with hp.File(filename,'r') as f: for key in f.keys(): if key=='events': events['times'] = f[key]['...
44.178571
98
0.514956
156
1,237
3.916667
0.25641
0.12766
0.052373
0.065466
0.248773
0.186579
0.186579
0.094926
0.094926
0.094926
0
0.002454
0.341148
1,237
28
99
44.178571
0.747239
0
0
0.071429
0
0
0.105816
0
0
0
0
0
0
1
0.035714
false
0
0.107143
0
0.178571
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
378a6f60c85208588264fa4b0e5b9304df902135
1,601
py
Python
device_gateway/gateway.py
dastultz/home-automation
4007dbca43726cdf5949ee2aa1cd4d40ba67b5d3
[ "MIT" ]
null
null
null
device_gateway/gateway.py
dastultz/home-automation
4007dbca43726cdf5949ee2aa1cd4d40ba67b5d3
[ "MIT" ]
null
null
null
device_gateway/gateway.py
dastultz/home-automation
4007dbca43726cdf5949ee2aa1cd4d40ba67b5d3
[ "MIT" ]
null
null
null
import time import network_manager from components import Heartbeat, LogManager from message_bus import MessageBus import logger class Gateway: def __init__(self): self._message_bus = MessageBus(self._on_message) self._components = [] self._component_dict = {} def add_component(self...
28.087719
91
0.610868
175
1,601
5.297143
0.348571
0.064725
0.06041
0.084142
0.228695
0.228695
0.148867
0
0
0
0
0.0045
0.306059
1,601
56
92
28.589286
0.829883
0.049344
0
0.186047
0
0
0.00527
0
0
0
0
0
0
1
0.116279
false
0
0.116279
0
0.255814
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
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
378b8c1c8a129943980f58b79ee2233ffe6b0bae
3,439
py
Python
haco/DIDrive_core/demo/latent_rl/collect_data.py
decisionforce/HACO
ebd1dc49598e6ae2704e58c053cc35f2d9e28429
[ "Apache-2.0" ]
21
2022-02-15T10:11:54.000Z
2022-03-24T17:44:29.000Z
haco/DIDrive_core/demo/latent_rl/collect_data.py
decisionforce/HACO
ebd1dc49598e6ae2704e58c053cc35f2d9e28429
[ "Apache-2.0" ]
null
null
null
haco/DIDrive_core/demo/latent_rl/collect_data.py
decisionforce/HACO
ebd1dc49598e6ae2704e58c053cc35f2d9e28429
[ "Apache-2.0" ]
3
2022-02-22T11:11:43.000Z
2022-03-17T17:58:44.000Z
import os from functools import partial import numpy as np from ding.envs import SyncSubprocessEnvManager from ding.utils.default_helper import deep_merge_dicts from easydict import EasyDict from tqdm import tqdm from haco.DIDrive_core.data import CarlaBenchmarkCollector, BenchmarkDatasetSaver from haco.DIDrive_core....
30.433628
105
0.639139
396
3,439
5.310606
0.363636
0.038516
0.060865
0.036139
0.099382
0.038992
0.038992
0
0
0
0
0.014596
0.262867
3,439
112
106
30.705357
0.81499
0.009014
0
0.097826
0
0
0.036994
0
0
0
0
0
0
1
0.032609
false
0
0.119565
0.01087
0.173913
0.01087
0
0
0
null
0
0
0
0
0
0
0
0
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
378fb80fb53ae0d7cd227f1351a2926e938d591b
25,206
py
Python
recent2.py
hongyi-zhao/recent2
5b072ff5d6419c444bb013b88e5e2a4de19b0851
[ "MIT" ]
null
null
null
recent2.py
hongyi-zhao/recent2
5b072ff5d6419c444bb013b88e5e2a4de19b0851
[ "MIT" ]
null
null
null
recent2.py
hongyi-zhao/recent2
5b072ff5d6419c444bb013b88e5e2a4de19b0851
[ "MIT" ]
null
null
null
#!/usr/bin/env python #https://github.com/kislyuk/argcomplete#synopsis import argcomplete import argparse import hashlib import json import os import re import socket import sqlite3 import sys import time from pathlib import Path from tabulate import tabulate from datetime import datetime # pip install python-dateutil...
37.620896
165
0.568119
2,986
25,206
4.649364
0.188881
0.015559
0.026939
0.00958
0.173522
0.116473
0.091047
0.070302
0.056472
0.037744
0
0.016633
0.31068
25,206
669
166
37.67713
0.782388
0.131318
0
0.195817
0
0.001901
0.284954
0.031396
0.001901
0
0
0.00299
0
1
0.043726
false
0.005703
0.057034
0
0.197719
0.060837
0
0
0
null
0
0
0
0
0
0
0
0
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
3791e586a9b8f892c8036023d9ce18df5f8e863a
2,499
py
Python
cnn_model.py
Onimee58/bangla_ocr_cnn
c274d05adbbf2381d0d467ee7fad57fd89bc4019
[ "MIT" ]
null
null
null
cnn_model.py
Onimee58/bangla_ocr_cnn
c274d05adbbf2381d0d467ee7fad57fd89bc4019
[ "MIT" ]
null
null
null
cnn_model.py
Onimee58/bangla_ocr_cnn
c274d05adbbf2381d0d467ee7fad57fd89bc4019
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon May 10 04:24:41 2021 @author: Saif """ import numpy as np from keras.models import Sequential from keras.layers import Conv2D, MaxPooling2D, GlobalAveragePooling2D from keras.layers import Dropout, Flatten, Dense from keras.preprocessing import image ...
34.232877
124
0.666667
341
2,499
4.771261
0.307918
0.108175
0.044253
0.068838
0.476951
0.476951
0.476951
0.426552
0.303626
0.303626
0
0.046891
0.214886
2,499
72
125
34.708333
0.782365
0.229692
0
0.289474
0
0
0.043621
0
0
0
0
0
0
1
0.052632
false
0
0.184211
0
0.289474
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
37940bf72d979b6ddcf361e5f37474a801422c7b
6,520
py
Python
tests/plugins/test_types.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
17
2019-02-04T12:58:10.000Z
2021-07-16T12:36:23.000Z
tests/plugins/test_types.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
201
2018-08-07T19:39:10.000Z
2022-03-15T00:20:24.000Z
tests/plugins/test_types.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
5
2019-06-07T15:45:34.000Z
2021-10-13T18:49:52.000Z
import re import pytest from alfasim_sdk._internal.types import MultipleReference from alfasim_sdk._internal.types import Reference @pytest.mark.parametrize("expression_type", ["enable_expr", "visible_expr"]) def test_enable_expr_and_visible_expr(expression_type): from alfasim_sdk._internal.types import String ...
30.900474
135
0.661963
815
6,520
5.195092
0.146012
0.09589
0.094473
0.135805
0.608644
0.567785
0.392537
0.268068
0.258385
0.213982
0
0.006009
0.208742
6,520
210
136
31.047619
0.811204
0
0
0.293333
0
0.013333
0.258436
0
0
0
0
0
0.053333
1
0.073333
false
0.026667
0.1
0
0.193333
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
3794ba9a44060b3cd6e66adb831807d3aaf08691
6,153
py
Python
math_signals/test/test_relation.py
Omnivanitate/sweep_design
00c20066d83a2eebf8402294b413737f49a97564
[ "MIT" ]
null
null
null
math_signals/test/test_relation.py
Omnivanitate/sweep_design
00c20066d83a2eebf8402294b413737f49a97564
[ "MIT" ]
null
null
null
math_signals/test/test_relation.py
Omnivanitate/sweep_design
00c20066d83a2eebf8402294b413737f49a97564
[ "MIT" ]
null
null
null
import unittest import numpy as np from scipy.integrate import cumulative_trapezoid from numpy.testing import assert_array_equal from math_signals.math_relation import Relation from math_signals.defaults.base_structures import BaseXY def pre_integr(x, y): return BaseXY(x=x[1:], y=np.ones(x[1:].size)) ...
39.191083
102
0.568178
874
6,153
3.74714
0.141876
0.070534
0.102595
0.014656
0.458321
0.342595
0.290382
0.214351
0.200611
0.200611
0
0.069203
0.290752
6,153
156
103
39.442308
0.681256
0.021778
0
0.170732
0
0
0.012474
0
0
0
0
0
0.203252
1
0.105691
false
0
0.04878
0.00813
0.186992
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
3794d2cf81706b3a4b46cdb0956d6d92b0823772
4,910
py
Python
nglp/lib/openapi.py
mauromsl/NGLP-Analytics
d6df05f82dbf2ffa5e136a20b6e89f7ef3bcbef2
[ "MIT" ]
null
null
null
nglp/lib/openapi.py
mauromsl/NGLP-Analytics
d6df05f82dbf2ffa5e136a20b6e89f7ef3bcbef2
[ "MIT" ]
54
2021-04-28T05:14:45.000Z
2021-12-10T09:14:28.000Z
nglp/lib/openapi.py
mauromsl/NGLP-Analytics
d6df05f82dbf2ffa5e136a20b6e89f7ef3bcbef2
[ "MIT" ]
1
2022-03-09T16:09:25.000Z
2022-03-09T16:09:25.000Z
from copy import deepcopy from nglp.lib.seamless import Construct, SeamlessException class OpenAPISupport(object): DEFAULT_OPENAPI_TRANS = { # The default translation from our coerce to openapi is {"type": "string"} # if there is no matching entry in the trans dict here. "unicode": {"type...
46.761905
222
0.578411
506
4,910
5.476285
0.266798
0.090942
0.057741
0.043306
0.223385
0.148322
0.120895
0.110429
0.048358
0.048358
0
0.001395
0.270265
4,910
104
223
47.211538
0.771979
0.185336
0
0.03125
0
0
0.244142
0.014109
0
0
0
0
0
1
0.046875
false
0
0.03125
0.015625
0.140625
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
37990b900d049794f3a0a486dc1c773935bc6ed9
584
py
Python
5_0_even_odd.py
ChuckChen2020/ElementsOfProgrammingInterviews
635817bab6cddb397c45aa4b57c07a74b5ddb0a8
[ "MIT" ]
null
null
null
5_0_even_odd.py
ChuckChen2020/ElementsOfProgrammingInterviews
635817bab6cddb397c45aa4b57c07a74b5ddb0a8
[ "MIT" ]
null
null
null
5_0_even_odd.py
ChuckChen2020/ElementsOfProgrammingInterviews
635817bab6cddb397c45aa4b57c07a74b5ddb0a8
[ "MIT" ]
null
null
null
def even_odd(A): pe, po = 0, len(A) - 1 while pe < po: if A[pe] % 2 == 0: pe += 1 else: # if it pe hits an odd, swap with the one at po. if this po bears 1) an even value, next round pe will move right and therefore skip to the next. 2) an odd value, then next round it wi...
36.5
302
0.556507
108
584
2.916667
0.509259
0.038095
0.050794
0
0
0
0
0
0
0
0
0.046154
0.332192
584
15
303
38.933333
0.761538
0.493151
0
0
0
0
0.027211
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.083333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
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
379a96fa891f104347b8acc6017c208b33cfdbbb
4,072
py
Python
sdks/python/apache_beam/tests/pipeline_verifiers.py
chamikaramj/beam
7c710360868d784c5b6bf99b8341748807b08101
[ "Apache-2.0" ]
1
2019-05-24T14:03:58.000Z
2019-05-24T14:03:58.000Z
sdks/python/apache_beam/tests/pipeline_verifiers.py
kavyasmj/beam0.6
d59dfeb339bd56feb7569531e5c421a297b0d3dc
[ "Apache-2.0" ]
2
2017-04-24T20:32:25.000Z
2022-03-29T12:59:55.000Z
sdks/python/apache_beam/tests/pipeline_verifiers.py
kavyasmj/beam0.6
d59dfeb339bd56feb7569531e5c421a297b0d3dc
[ "Apache-2.0" ]
2
2019-03-04T02:12:46.000Z
2021-08-10T20:29:37.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
33.933333
75
0.747299
560
4,072
5.271429
0.328571
0.0271
0.020325
0.01084
0.176152
0.109756
0.109756
0.090786
0.057588
0.057588
0
0.001492
0.176817
4,072
119
76
34.218487
0.879177
0.370334
0
0.131148
0
0
0.080208
0
0
0
0
0
0
1
0.163934
false
0
0.131148
0.016393
0.409836
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
379d365c3b72852583302df9254d3e745ae62646
4,975
py
Python
flappy.py
mrlmaia/myFlappyBird
393421c6d33051e3e5f9fb9b872651e2e8615de3
[ "MIT" ]
null
null
null
flappy.py
mrlmaia/myFlappyBird
393421c6d33051e3e5f9fb9b872651e2e8615de3
[ "MIT" ]
null
null
null
flappy.py
mrlmaia/myFlappyBird
393421c6d33051e3e5f9fb9b872651e2e8615de3
[ "MIT" ]
null
null
null
import pygame, random from pygame.locals import * SCREEN_WIDTH = 400 SCREEN_HEIGTH = 800 SPEED = 10 GRAVITY = 1 GAME_SPEED = 10 X = 0 Y = 1 GROUND_WIDTH = 2 * SCREEN_WIDTH GROUND_HEIGHT = 100 PIPE_WIDTH = 80 PIPE_HEIGHT = 500 PIPE_GAP = 200 class Bird(pygame.sprite.Sprite): def __init__(self): pygame....
26.604278
102
0.637186
659
4,975
4.629742
0.200303
0.047198
0.034415
0.048181
0.408391
0.361193
0.300229
0.27532
0.202229
0.145854
0
0.018037
0.242211
4,975
186
103
26.747312
0.791247
0.057487
0
0.222222
0
0
0.037639
0.034431
0
0
0
0
0
1
0.076923
false
0
0.017094
0.008547
0.136752
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
379d69c530c32691ab9a0100007cee3fa8cae31c
2,487
py
Python
GolVe_Classification/GolVe+lr/train_model.py
majingliang/machine_learning
cd70e3a07bd1f0803ebcffebca565e70aff96de8
[ "MIT" ]
1
2019-09-29T13:36:29.000Z
2019-09-29T13:36:29.000Z
GolVe_Classification/GolVe+lr/train_model.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
GolVe_Classification/GolVe+lr/train_model.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.datasets.base import Bunch import os import pickle from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.cross_validation import train_test_split import random from collections import defaultdict from sklearn.linear_model import LogisticRegressionCV...
36.573529
136
0.644552
334
2,487
4.613772
0.407186
0.05451
0.051914
0.057106
0.215445
0.215445
0.186892
0.186892
0.186892
0.186892
0
0.0128
0.24608
2,487
67
137
37.119403
0.809067
0.003619
0
0.166667
0
0.066667
0.195477
0.165994
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
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
379d9ac43e5f8a9e61641e45c339fb8f78a1a4d0
3,136
py
Python
homeassistant/components/sensor/wink.py
TastyPi/home-assistant
aa1e4c564cb8660bf6b7637bc25317ee58869214
[ "MIT" ]
13
2017-02-01T13:25:34.000Z
2022-01-26T01:30:39.000Z
homeassistant/components/sensor/wink.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
9
2017-07-26T18:05:32.000Z
2021-12-05T14:16:34.000Z
homeassistant/components/sensor/wink.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
21
2017-07-26T17:09:40.000Z
2022-03-27T22:37:22.000Z
""" Support for Wink sensors. For more details about this platform, please refer to the documentation at at https://home-assistant.io/components/sensor.wink/ """ import logging from homeassistant.const import TEMP_CELSIUS from homeassistant.helpers.entity import Entity from homeassistant.components.wink import WinkDe...
32.666667
79
0.638712
365
3,136
5.323288
0.309589
0.065878
0.025733
0.028821
0.210499
0.198147
0.160062
0
0
0
0
0.002141
0.255421
3,136
95
80
33.010526
0.82955
0.162628
0
0.2
0
0
0.050933
0
0
0
0
0
0
1
0.116667
false
0
0.1
0
0.316667
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
379e0ba70961375d128909802ed03cfc631262e2
2,925
py
Python
src/backend/opsbot/stdlib.py
xiashuqin89/bk-chatbot
d3f95363032f699cbc7e6617060642e0763443a6
[ "MIT" ]
null
null
null
src/backend/opsbot/stdlib.py
xiashuqin89/bk-chatbot
d3f95363032f699cbc7e6617060642e0763443a6
[ "MIT" ]
null
null
null
src/backend/opsbot/stdlib.py
xiashuqin89/bk-chatbot
d3f95363032f699cbc7e6617060642e0763443a6
[ "MIT" ]
null
null
null
""" TencentBlueKing is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaSCommunity Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the...
28.676471
93
0.631111
359
2,925
5.089136
0.440111
0.032841
0.021894
0.021346
0.073344
0.073344
0.073344
0.073344
0.073344
0.073344
0
0.033363
0.231453
2,925
101
94
28.960396
0.779359
0.270769
0
0.16
0
0
0.073255
0.030482
0
0
0
0
0
1
0.2
false
0
0.1
0.06
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
37a06a46bd7dbc7b3904bddfec3b2e850b11c9b4
518
py
Python
tests/endpoints/test_pricing.py
tacchang001/oandapyV20helper
c8bff56ce9b3d69207911c899652df4328a8a847
[ "MIT" ]
null
null
null
tests/endpoints/test_pricing.py
tacchang001/oandapyV20helper
c8bff56ce9b3d69207911c899652df4328a8a847
[ "MIT" ]
null
null
null
tests/endpoints/test_pricing.py
tacchang001/oandapyV20helper
c8bff56ce9b3d69207911c899652df4328a8a847
[ "MIT" ]
null
null
null
import json import pytest from oandaV20helper.endpoints.pricing import to_dom class TestPricing: @pytest.mark.parametrize("num, filename", [ (1, 'test_pricing01.json'), (3, 'test_pricing02.json'), (15, 'test_pricing03.json') ]) def test_to_dataframe(self, num, filename): ...
22.521739
51
0.606178
62
518
4.725806
0.645161
0.03413
0
0
0
0
0
0
0
0
0
0.03125
0.258687
518
22
52
23.545455
0.731771
0.11583
0
0
0
0
0.156044
0
0
0
0
0
0
1
0.071429
false
0
0.214286
0
0.357143
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
37a25acc37f7d6522679e3d2bfe44a22a8595cc0
2,364
py
Python
tests/__init__.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
tests/__init__.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
tests/__init__.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
import logging from pathlib import Path from utsc.core import Util class PropogateHandler(logging.Handler): def emit(self, record): logging.getLogger(record.name).handle(record) class MockFolders: class ConfDir: def __init__(self, path: Path, app_name: str) -> None: self.dir = pa...
38.129032
88
0.648054
321
2,364
4.588785
0.242991
0.057026
0.044807
0.067889
0.634759
0.466395
0.274949
0.092329
0.092329
0.092329
0
0.001109
0.236887
2,364
61
89
38.754098
0.81541
0.198393
0
0
0
0
0.155072
0.099841
0
0
0
0
0
1
0.078947
false
0
0.078947
0
0.289474
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
37a39ff3342130319876ca4904644fe3206688ea
3,889
py
Python
esphome/components/modbus_controller/number/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
249
2018-04-07T12:04:11.000Z
2019-01-25T01:11:34.000Z
esphome/components/modbus_controller/number/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
243
2018-04-11T16:37:11.000Z
2019-01-25T16:50:37.000Z
esphome/components/modbus_controller/number/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
40
2018-04-10T05:50:14.000Z
2019-01-25T15:20:36.000Z
import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import number from esphome.const import ( CONF_ADDRESS, CONF_ID, CONF_MAX_VALUE, CONF_MIN_VALUE, CONF_MULTIPLY, CONF_STEP, ) from .. import ( MODBUS_WRITE_REGISTER_TYPE, add_modbus_base_propertie...
30.865079
92
0.674466
489
3,889
5.03681
0.259714
0.073082
0.045473
0.030857
0.139667
0.095818
0.086886
0.086886
0.065773
0
0
0.023458
0.232708
3,889
125
93
31.112
0.801944
0.021599
0
0.037383
0
0
0.070752
0.006312
0
0
0
0
0
1
0.018692
false
0
0.056075
0
0.093458
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
37ad7164ae63d5ffb588e864b6d5d0bdac217918
9,305
py
Python
flowsa/USDA_CoA_Cropland.py
cchiq/flowsa
fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0
[ "CC0-1.0" ]
null
null
null
flowsa/USDA_CoA_Cropland.py
cchiq/flowsa
fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0
[ "CC0-1.0" ]
null
null
null
flowsa/USDA_CoA_Cropland.py
cchiq/flowsa
fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0
[ "CC0-1.0" ]
null
null
null
# USDA_CoA_Cropland.py (flowsa) # !/usr/bin/env python3 # coding=utf-8 import json import numpy as np import pandas as pd from flowsa.common import * def CoA_Cropland_URL_helper(build_url, config, args): """This helper function uses the "build_url" input from flowbyactivity.py, which is a base url for coa cropla...
58.522013
153
0.629339
1,223
9,305
4.638594
0.29027
0.014807
0.027499
0.011458
0.242729
0.230742
0.142077
0.110347
0.110347
0.110347
0
0.012188
0.232886
9,305
158
154
58.892405
0.782572
0.284901
0
0.216981
0
0.018868
0.369268
0.051777
0
0
0
0
0
1
0.028302
false
0
0.037736
0
0.09434
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
37ae25cb640514b4b69d9fbcf3fe21ab2db9d1d8
4,762
py
Python
chiron/apps/visits/views.py
vahidzee/chiron
66115f935a65253ec9c8a7feabfb7db0842acb29
[ "MIT" ]
null
null
null
chiron/apps/visits/views.py
vahidzee/chiron
66115f935a65253ec9c8a7feabfb7db0842acb29
[ "MIT" ]
null
null
null
chiron/apps/visits/views.py
vahidzee/chiron
66115f935a65253ec9c8a7feabfb7db0842acb29
[ "MIT" ]
null
null
null
from django.db import IntegrityError from rest_framework.authentication import TokenAuthentication, SessionAuthentication from rest_framework.response import Response import django.shortcuts as shortcuts from rest_framework import ( status, viewsets, serializers as drf_serializers, permissions as drf_pe...
37.203125
201
0.666107
512
4,762
6.082031
0.25
0.024727
0.034682
0.038536
0.331407
0.316956
0.272319
0.245986
0.245986
0.245986
0
0.004096
0.230995
4,762
127
202
37.496063
0.846259
0.337463
0
0.057143
0
0
0.036999
0
0
0
0
0
0
1
0.114286
false
0
0.114286
0
0.442857
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
37aec59f9b17b9d32ce9730876f6d8d46a79c1b0
478
py
Python
3-natural-language-processing/2-nlp-character-pred.py
MLStruckmann/tensorflow-templates
ca35a8f055929ee4ec552fa03737d808a0fe3491
[ "MIT" ]
null
null
null
3-natural-language-processing/2-nlp-character-pred.py
MLStruckmann/tensorflow-templates
ca35a8f055929ee4ec552fa03737d808a0fe3491
[ "MIT" ]
null
null
null
3-natural-language-processing/2-nlp-character-pred.py
MLStruckmann/tensorflow-templates
ca35a8f055929ee4ec552fa03737d808a0fe3491
[ "MIT" ]
null
null
null
# Simple character prediction model (stateful) model = keras.models.Sequential([ keras.layers.GRU(128, return_sequences=True, stateful=True, dropout=0.2, recurrent_dropout=0.2, batch_input_shape=[batch_size, None, max_id]), keras.layers.GRU(128, return_sequences=True, stateful=True, ...
43.454545
62
0.669456
59
478
5.271186
0.491525
0.141479
0.115756
0.109325
0.482315
0.482315
0.482315
0.482315
0.482315
0.482315
0
0.037037
0.209205
478
11
63
43.454545
0.785714
0.09205
0
0.222222
0
0
0.016548
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
37b007b20e0af00196c2315cf92bfae9d58c871d
12,681
py
Python
data_format_scripts/makeDatasetTxt_4Points_fromCasper.py
TT-happy-work/keras-yolo3
92ed71769c1040a18cf18e88dab30bfaa16248f4
[ "MIT" ]
null
null
null
data_format_scripts/makeDatasetTxt_4Points_fromCasper.py
TT-happy-work/keras-yolo3
92ed71769c1040a18cf18e88dab30bfaa16248f4
[ "MIT" ]
null
null
null
data_format_scripts/makeDatasetTxt_4Points_fromCasper.py
TT-happy-work/keras-yolo3
92ed71769c1040a18cf18e88dab30bfaa16248f4
[ "MIT" ]
null
null
null
import os from xml.etree import ElementTree from scipy.spatial import distance as dist import numpy as np from time import sleep import cv2 from PIL import Image, ImageDraw import colorsys def order_points(ptsArr): # pt_a, pt_b: out of the 2 left X, a is thr top one and b is the bottom. # pt_c, pt_d: out of ...
56.865471
439
0.59459
1,553
12,681
4.777849
0.213136
0.050809
0.090566
0.096092
0.392453
0.30566
0.179919
0.109973
0.100809
0.086792
0
0.008792
0.26449
12,681
223
440
56.865471
0.786748
0.314959
0
0.171053
0
0
0.149236
0.05608
0
0
0
0
0
1
0.006579
false
0
0.052632
0
0.065789
0.046053
0
0
0
null
0
0
0
0
0
0
0
0
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
37b6eafa409acb5528b0f4f84a8bb707d55e196c
3,839
py
Python
pyspider/libs/wsgi_xmlrpc.py
zgwcome/pyspider
1e6375850538d8e04793f5e26b6d92adf8db6a9e
[ "Apache-2.0" ]
13,935
2015-01-01T04:48:55.000Z
2022-03-30T02:02:42.000Z
pyspider/libs/wsgi_xmlrpc.py
zgwcome/pyspider
1e6375850538d8e04793f5e26b6d92adf8db6a9e
[ "Apache-2.0" ]
848
2015-01-04T14:13:40.000Z
2022-03-04T02:29:44.000Z
pyspider/libs/wsgi_xmlrpc.py
zgwcome/pyspider
1e6375850538d8e04793f5e26b6d92adf8db6a9e
[ "Apache-2.0" ]
4,077
2015-01-02T03:01:27.000Z
2022-03-27T12:06:40.000Z
# Copyright (c) 2006-2007 Open Source Applications Foundation # # 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 require...
39.989583
109
0.655379
451
3,839
5.490022
0.470067
0.050889
0.044426
0.029079
0.051696
0
0
0
0
0
0
0.01164
0.261526
3,839
95
110
40.410526
0.861728
0.419901
0
0.093023
0
0
0.078322
0
0
0
0
0
0
1
0.139535
false
0
0.046512
0.069767
0.372093
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
37b7d635ca3c11179e0de2c573fb71ee96d85d19
38,975
py
Python
dremail.py
shofutex/duplicati-sqs-report
e9257dae228f774fb818389cfd192f8886282bae
[ "MIT" ]
null
null
null
dremail.py
shofutex/duplicati-sqs-report
e9257dae228f774fb818389cfd192f8886282bae
[ "MIT" ]
null
null
null
dremail.py
shofutex/duplicati-sqs-report
e9257dae228f774fb818389cfd192f8886282bae
[ "MIT" ]
null
null
null
##### # # Module name: dremail.com # Purpose: Manage email connections for dupReport # # Notes: # ##### # Import system modules import imaplib import poplib import email import quopri import base64 import re import datetime import time import smtplib import os from email.mime.multipart import MIMEMultipart from...
58.345808
245
0.556459
4,126
38,975
5.250606
0.189045
0.024003
0.037805
0.018095
0.236614
0.17753
0.148772
0.108198
0.084749
0.069886
0
0.015334
0.324003
38,975
667
246
58.433283
0.806885
0.23569
0
0.272138
0
0.008639
0.193717
0.017414
0
0
0
0
0
1
0.030238
false
0.015119
0.038877
0.00216
0.153348
0.00216
0
0
0
null
0
0
0
0
0
0
0
0
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
37b838e0d54c247d6c2708be9b4641d2684a62fb
4,557
py
Python
tacker/extensions/common_services.py
hyunchic86/NDN-test
2417ececbd9a1b9bb4438baf5404cee872e4ec78
[ "Apache-2.0" ]
null
null
null
tacker/extensions/common_services.py
hyunchic86/NDN-test
2417ececbd9a1b9bb4438baf5404cee872e4ec78
[ "Apache-2.0" ]
null
null
null
tacker/extensions/common_services.py
hyunchic86/NDN-test
2417ececbd9a1b9bb4438baf5404cee872e4ec78
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Brocade Communications Systems Inc # 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 # # ...
28.841772
78
0.65745
501
4,557
5.798403
0.369261
0.02685
0.033735
0.045783
0.185198
0.17074
0.143201
0.11222
0.11222
0.098451
0
0.008816
0.253237
4,557
157
79
29.025478
0.844843
0.136054
0
0.311927
0
0
0.18052
0.006374
0
0
0
0
0
1
0.12844
false
0.027523
0.073395
0.082569
0.431193
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