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
3227a055c835557ad7f0f841ab6676069d791695
10,965
py
Python
verify/imagenet.py
CAS-LRJ/DeepPAC
75059572c23474d32a762aca5640f4d799fd992a
[ "Apache-2.0" ]
null
null
null
verify/imagenet.py
CAS-LRJ/DeepPAC
75059572c23474d32a762aca5640f4d799fd992a
[ "Apache-2.0" ]
null
null
null
verify/imagenet.py
CAS-LRJ/DeepPAC
75059572c23474d32a762aca5640f4d799fd992a
[ "Apache-2.0" ]
null
null
null
import torch from torchvision import transforms from PIL import Image import numpy as np import math from sklearn.linear_model import LinearRegression from .grid import Grid, grid_split import torch.backends.cudnn as cudnn ''' Global Constants: TASK_NAME: Name of the verification task (deprecate...
43.685259
188
0.639216
1,388
10,965
4.865994
0.201729
0.032573
0.031093
0.039976
0.277169
0.236601
0.183447
0.171898
0.14584
0.139177
0
0.02526
0.263475
10,965
250
189
43.86
0.811045
0.055814
0
0.180851
0
0
0.059803
0.003329
0
0
0
0
0
1
0.015957
false
0
0.042553
0
0.085106
0.101064
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
3228d6088055f54b7b82121a3d3e109e936942b3
1,623
py
Python
setup.py
cakebread/musubi
5b5f1bdf65fe07c14ff7bb2252c278f6ca0c903c
[ "BSD-2-Clause" ]
5
2015-05-18T13:18:26.000Z
2020-01-14T08:24:08.000Z
setup.py
cakebread/musubi
5b5f1bdf65fe07c14ff7bb2252c278f6ca0c903c
[ "BSD-2-Clause" ]
null
null
null
setup.py
cakebread/musubi
5b5f1bdf65fe07c14ff7bb2252c278f6ca0c903c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python PROJECT = 'musubi' VERSION = '0.2' import distribute_setup distribute_setup.use_setuptools() from setuptools import setup, find_packages try: long_description = open('README.rst', 'rt').read() except IOError: long_description = 'Uh oh, we may need a new hard drive.' setup( name=PR...
29.509091
73
0.590265
166
1,623
5.662651
0.63253
0.06383
0.079787
0.03617
0.068085
0.068085
0
0
0
0
0
0.005059
0.269254
1,623
54
74
30.055556
0.787521
0.012323
0
0.06383
0
0
0.408864
0
0
0
0
0
0
1
0
false
0
0.042553
0
0.042553
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
3229164df79c432f6f7ad72e86350bc6d3ce6e18
1,048
py
Python
airflow_ml_dags/images/airflow-preprocess/preprocess.py
made-ml-in-prod-2021/holyketzer
f693f2d5fce8cced03873e2b89cbe10617996c64
[ "MIT" ]
null
null
null
airflow_ml_dags/images/airflow-preprocess/preprocess.py
made-ml-in-prod-2021/holyketzer
f693f2d5fce8cced03873e2b89cbe10617996c64
[ "MIT" ]
2
2021-05-21T09:09:23.000Z
2021-06-05T08:13:40.000Z
airflow_ml_dags/images/airflow-preprocess/preprocess.py
made-ml-in-prod-2021/holyketzer
f693f2d5fce8cced03873e2b89cbe10617996c64
[ "MIT" ]
null
null
null
import os import pandas as pd import click from datetime import date @click.command("preprocess") @click.option("--input-dir") @click.option("--output-dir") @click.option("--mode") def preprocess(input_dir: str, output_dir, mode): if mode == "data": data = pd.read_csv(os.path.join(input_dir, "data.csv"))...
29.942857
101
0.621183
140
1,048
4.514286
0.414286
0.050633
0.042722
0.061709
0.098101
0.098101
0.098101
0.098101
0.098101
0
0
0
0.204198
1,048
34
102
30.823529
0.757794
0
0
0
0
0
0.158397
0
0
0
0
0
0
1
0.035714
false
0
0.142857
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
32298c15e29bc9b924d33fac9a984d4c8170430a
581
py
Python
estrutura_while/barra-de-progresso.py
BEp0/Estudos_de_Python
da32a01d3f4462b3e6b1b6035106895afe9c7627
[ "MIT" ]
1
2021-02-15T19:14:44.000Z
2021-02-15T19:14:44.000Z
estrutura_while/barra-de-progresso.py
BEp0/Estudos_de_Python
da32a01d3f4462b3e6b1b6035106895afe9c7627
[ "MIT" ]
null
null
null
estrutura_while/barra-de-progresso.py
BEp0/Estudos_de_Python
da32a01d3f4462b3e6b1b6035106895afe9c7627
[ "MIT" ]
null
null
null
from time import sleep from sys import stdout def barra(v): v = int(v) print('[ ', end='') for v in range(0, v): print(f'-', end='', flush=True) sleep(0.1) print(' ]', end='\n') def calcularNotas(): soma = 0 v = 0 for i in range(0, 2): nota = float(input(f'\n{i + ...
17.088235
50
0.504303
85
581
3.305882
0.447059
0.042705
0.05694
0
0
0
0
0
0
0
0
0.027295
0.306368
581
33
51
17.606061
0.669975
0
0
0
0
0
0.141136
0
0
0
0
0
0
1
0.12
false
0
0.08
0
0.24
0.24
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
322c0212f8148c0b38508aaf2672d99f9c4007b4
8,524
py
Python
src/apodeixi/text_layout/tests_unit/test_column_layout.py
ChateauClaudia-Labs/apodeixi
dd668e210e92cabc2682ad3049781c06e58e3101
[ "MIT" ]
null
null
null
src/apodeixi/text_layout/tests_unit/test_column_layout.py
ChateauClaudia-Labs/apodeixi
dd668e210e92cabc2682ad3049781c06e58e3101
[ "MIT" ]
null
null
null
src/apodeixi/text_layout/tests_unit/test_column_layout.py
ChateauClaudia-Labs/apodeixi
dd668e210e92cabc2682ad3049781c06e58e3101
[ "MIT" ]
null
null
null
import sys as _sys import pandas as _pd from apodeixi.testing_framework.a6i_unit_test import ApodeixiUnitTest from apodeixi.util.formatting_utils import DictionaryFormatter from apodeixi.util.a6i_error import ApodeixiError, FunctionalTrace...
51.660606
141
0.530737
876
8,524
4.88242
0.268265
0.032733
0.015198
0.009119
0.170447
0.119242
0.089783
0.042553
0.026654
0.026654
0
0.014303
0.40122
8,524
165
142
51.660606
0.823668
0.134209
0
0.018018
0
0
0.057569
0.012033
0
0
0
0
0.045045
1
0.054054
false
0
0.054054
0
0.126126
0.009009
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
322e21d79121fc682dbbeaf19bfb0822ed607a7a
4,236
py
Python
pru/db/geo/geo_admin.py
euctrl-pru/rt-python
da5d0040e250bd159845a0d43bf0b73eab368863
[ "MIT" ]
null
null
null
pru/db/geo/geo_admin.py
euctrl-pru/rt-python
da5d0040e250bd159845a0d43bf0b73eab368863
[ "MIT" ]
null
null
null
pru/db/geo/geo_admin.py
euctrl-pru/rt-python
da5d0040e250bd159845a0d43bf0b73eab368863
[ "MIT" ]
null
null
null
# # Copyright (c) 2018 Via Technology Ltd. All Rights Reserved. # Consult your license regarding permissions and restrictions. # """ Administration operations for the geo db. """ import os import socket import time from pru.db.geo.geo_init import load_airspace, remove_all_sectors, tear_down from pru.db.geo.geo_init i...
31.377778
93
0.674929
619
4,236
4.449111
0.216478
0.043573
0.040668
0.017429
0.603486
0.553377
0.533043
0.502179
0.470588
0.470588
0
0.001892
0.25118
4,236
134
94
31.61194
0.86633
0.308074
0
0.352941
0
0
0.140733
0.007617
0
0
0
0
0
1
0.073529
false
0
0.147059
0
0.323529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
322f9af92fcd6688ac16683be314d7931fa1f2eb
4,040
py
Python
tests/test_autogeometry.py
fabiommendes/easymunk
420dfc4a006997c47887f6876876249674feb3cd
[ "MIT" ]
1
2021-07-02T11:59:07.000Z
2021-07-02T11:59:07.000Z
tests/test_autogeometry.py
fabiommendes/easymunk
420dfc4a006997c47887f6876876249674feb3cd
[ "MIT" ]
null
null
null
tests/test_autogeometry.py
fabiommendes/easymunk
420dfc4a006997c47887f6876876249674feb3cd
[ "MIT" ]
1
2022-01-14T20:18:35.000Z
2022-01-14T20:18:35.000Z
from typing import List, Tuple import easymunk as a from easymunk import BB, Vec2d class TestAutoGeometry: def test_is_closed(self) -> None: not_closed: List[Tuple[float, float]] = [(0, 0), (1, 1), (0, 1)] closed: List[Tuple[float, float]] = [(0, 0), (1, 1), (0, 1), (0, 0)] assert not a.i...
28.652482
87
0.366832
531
4,040
2.728814
0.150659
0.048309
0.026915
0.078675
0.57902
0.545204
0.536922
0.458937
0.458937
0.458937
0
0.146297
0.455198
4,040
140
88
28.857143
0.51204
0.04604
0
0.630252
0
0
0.025981
0
0
0
0
0.007143
0.058824
1
0.07563
false
0
0.02521
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
32306c14bb390e41af15482d3244081bad57ece0
13,144
py
Python
darshan-util/pydarshan/darshan/backend/cffi_backend.py
gaocegege/darshan
2d54cd8ec96d26db23e9ca421df48d2031a4c55e
[ "mpich2" ]
null
null
null
darshan-util/pydarshan/darshan/backend/cffi_backend.py
gaocegege/darshan
2d54cd8ec96d26db23e9ca421df48d2031a4c55e
[ "mpich2" ]
null
null
null
darshan-util/pydarshan/darshan/backend/cffi_backend.py
gaocegege/darshan
2d54cd8ec96d26db23e9ca421df48d2031a4c55e
[ "mpich2" ]
null
null
null
# -*- coding: utf-8 -*- import cffi import ctypes import numpy as np import pandas as pd from darshan.api_def_c import load_darshan_header from darshan.discover_darshan import find_utils from darshan.discover_darshan import check_version API_def_c = load_darshan_header() ffi = cffi.FFI() ffi.cdef(API_def_c) lib...
24.295749
137
0.614197
1,785
13,144
4.371989
0.146218
0.029216
0.017299
0.040364
0.537032
0.47104
0.445284
0.440928
0.390441
0.380958
0
0.009684
0.253652
13,144
540
138
24.340741
0.785831
0.295268
0
0.337838
0
0
0.142028
0.002437
0
0
0
0.001852
0
1
0.09009
false
0
0.031532
0
0.238739
0.009009
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
32363a369f2abd8123a3c352cf5267f2cd8f6e3e
882
py
Python
pluggklockan.py
Vforsh03/Pluggklockan
845dbe82476ad3ecd8664b7cd99ce74311b92830
[ "MIT" ]
null
null
null
pluggklockan.py
Vforsh03/Pluggklockan
845dbe82476ad3ecd8664b7cd99ce74311b92830
[ "MIT" ]
null
null
null
pluggklockan.py
Vforsh03/Pluggklockan
845dbe82476ad3ecd8664b7cd99ce74311b92830
[ "MIT" ]
null
null
null
import time def countdown(time_sec, to_do): while time_sec: mins, secs = divmod(time_sec, 60) timeformat = '{:02d}:{:02d}'.format(mins, secs) print(timeformat, end='\r') time.sleep(1) time_sec -= 1 if time_sec == 0: print("Det här har du att göra: ") ...
25.941176
73
0.538549
127
882
3.559055
0.456693
0.079646
0.048673
0.070796
0
0
0
0
0
0
0
0.018644
0.331066
882
33
74
26.727273
0.747458
0
0
0
0
0
0.237927
0
0
0
0
0
0
1
0.076923
false
0
0.038462
0
0.115385
0.192308
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
32364b003eb60db5ffb76e4251c347561207ed8b
1,397
py
Python
gallery/views.py
mkbeh/Site-Nordic-Walking-
ba98f41db09ed448ecc4db175f65ef4fa2d64979
[ "MIT" ]
null
null
null
gallery/views.py
mkbeh/Site-Nordic-Walking-
ba98f41db09ed448ecc4db175f65ef4fa2d64979
[ "MIT" ]
8
2021-04-08T21:57:55.000Z
2022-03-12T00:50:38.000Z
gallery/views.py
mkbeh/Site-Nordic-Walking-
ba98f41db09ed448ecc4db175f65ef4fa2d64979
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.views.decorators.cache import cache_page from .models import PhotoAlbum, VideoAlbum from blog.utils import get_pagination_page def albums_list(request): album_specific_data = {'photo': (PhotoAlbum, 'Фото альбомы'), 'video': (VideoAlbum, 'Видео ал...
32.488372
105
0.689334
182
1,397
5.016484
0.335165
0.078861
0.07448
0.030668
0.243154
0.063527
0
0
0
0
0
0.012324
0.186829
1,397
42
106
33.261905
0.791373
0
0
0.125
0
0
0.1267
0.035791
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3236d1e8e71e93e12b492398d92736947474b9fb
2,134
py
Python
test/test_post.py
enjoy233/zhihu-py3
bcb4aa8325f8b54d3b44bd0bdc959edd9761fcfc
[ "MIT" ]
1,321
2015-02-16T13:19:42.000Z
2022-03-25T15:03:58.000Z
test/test_post.py
fru1tw4ter/zhihu-py3
bcb4aa8325f8b54d3b44bd0bdc959edd9761fcfc
[ "MIT" ]
64
2015-07-03T12:30:08.000Z
2022-03-01T00:55:50.000Z
test/test_post.py
fru1tw4ter/zhihu-py3
bcb4aa8325f8b54d3b44bd0bdc959edd9761fcfc
[ "MIT" ]
551
2015-02-22T11:21:40.000Z
2022-03-25T13:22:13.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from __future__ import print_function, division, unicode_literals import unittest import os import json from zhihu import Post from test_utils import TEST_DATA_PATH class ColumnTest(unittest.TestCase): @classmethod def setUpClass(cls): url = 'http://zhu...
34.419355
77
0.638238
279
2,134
4.637993
0.258065
0.062597
0.117465
0.146059
0.295981
0.170015
0.117465
0.097372
0.097372
0
0
0.01476
0.238051
2,134
61
78
34.983607
0.781058
0.02015
0
0.044444
0
0
0.131163
0.011967
0
0
0
0
0.177778
1
0.177778
false
0
0.133333
0
0.333333
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
323ae527f5aea6328f8ca830f729b3e6114a8c51
503
py
Python
algorithm implement (python)/mergesort.py
yedkk/algorithm-design
433b70e8302ec91b74542e9144dd93fdb5b0f8d3
[ "MIT" ]
2
2021-06-01T02:31:06.000Z
2021-06-01T02:39:45.000Z
algorithm implement (python)/mergesort.py
yedkk/algorithm-design
433b70e8302ec91b74542e9144dd93fdb5b0f8d3
[ "MIT" ]
null
null
null
algorithm implement (python)/mergesort.py
yedkk/algorithm-design
433b70e8302ec91b74542e9144dd93fdb5b0f8d3
[ "MIT" ]
null
null
null
def getArray(): line = input() line = line.strip().split(' ')[1:] s = [] for x in line: s.append(int(x)) return s def merge(s1, s2): n1 = len(s1) n2 = len(s2) p1 = 0 p2 = 0 s = [] while(p1 < n1 or p2 < n2): if(p1 < n1 and (p2 >= n2 or s1[p1] < s2[p2])): s.append(s1[p1]) p1 += 1 else: s.a...
13.236842
48
0.508946
90
503
2.844444
0.377778
0.082031
0.078125
0
0
0
0
0
0
0
0
0.095109
0.26839
503
37
49
13.594595
0.600543
0
0
0.142857
0
0
0.005964
0
0
0
0
0
0
1
0.107143
false
0
0
0
0.178571
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
323b7d2cb5ec3fee745d90ccfecbe50bdd67fcc2
1,276
py
Python
src/CSVtoJSON.py
CloudSevenConsulting/DustyDynamo
335e9a2efc71ccf42cf9dfc7c13fcf62cd5d9453
[ "MIT" ]
null
null
null
src/CSVtoJSON.py
CloudSevenConsulting/DustyDynamo
335e9a2efc71ccf42cf9dfc7c13fcf62cd5d9453
[ "MIT" ]
null
null
null
src/CSVtoJSON.py
CloudSevenConsulting/DustyDynamo
335e9a2efc71ccf42cf9dfc7c13fcf62cd5d9453
[ "MIT" ]
null
null
null
import csv import json from pprint import pprint import os stockData = ['RIO'] for i in range(0,len(stockData)): csvfile = open(stockData[i]+'.csv', 'r') fieldnames = ("NetworkTime","StockID","Open","High", "Low", "Close", "Adj Close", "Volume") reader = csv.DictReader( csvfile, fieldnames) data = o...
29.674419
95
0.462382
133
1,276
4.428571
0.368421
0.054329
0.095076
0.091681
0.091681
0.091681
0
0
0
0
0
0.002323
0.325235
1,276
42
96
30.380952
0.681765
0
0
0
0
0
0.259812
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
323d0642bd0b2e71b6ea4028021ab212c0e0889f
700
py
Python
core/api.py
rastos/Mi-Fit-and-Zepp-workout-exporter
e05dd7321b71dff6a4e2f4794d0d66d4eee2cbfa
[ "MIT" ]
13
2021-04-13T14:27:58.000Z
2022-02-09T18:32:37.000Z
core/api.py
rastos/Mi-Fit-and-Zepp-workout-exporter
e05dd7321b71dff6a4e2f4794d0d66d4eee2cbfa
[ "MIT" ]
3
2021-06-03T20:27:34.000Z
2021-06-04T06:24:18.000Z
core/api.py
rastos/Mi-Fit-and-Zepp-workout-exporter
e05dd7321b71dff6a4e2f4794d0d66d4eee2cbfa
[ "MIT" ]
2
2021-06-03T20:29:54.000Z
2021-08-13T22:28:59.000Z
import requests class Api: def __init__(self, token): self.token = token def get_history(self): r = requests.get('https://api-mifit-de2.huami.com/v1/sport/run/history.json', headers={ 'apptoken': self.token }, params={ 'source': 'run.mifit.huami.com', ...
24.137931
95
0.547143
84
700
4.416667
0.380952
0.097035
0.06469
0.091644
0.571429
0.571429
0.38814
0.247978
0.247978
0.247978
0
0.008214
0.304286
700
28
96
25
0.753593
0
0
0.47619
0
0.095238
0.238571
0
0
0
0
0
0
1
0.142857
false
0
0.047619
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
323de0cd069365ae5cc57c4534ae993e3a17cc39
7,616
py
Python
Server/Python/tests/dbsserver_t/unittests/web_t/DBSMigrateModel_t.py
vkuznet/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
8
2015-08-14T04:01:32.000Z
2021-06-03T00:56:42.000Z
Server/Python/tests/dbsserver_t/unittests/web_t/DBSMigrateModel_t.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
162
2015-01-07T21:34:47.000Z
2021-10-13T09:42:41.000Z
Server/Python/tests/dbsserver_t/unittests/web_t/DBSMigrateModel_t.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
16
2015-01-22T15:27:29.000Z
2021-04-28T09:23:28.000Z
#!/usr/bin/env python """ DBS 3 Migrate REST model unittests The DBS3 Migration Service must be stopped before executing the unittest. In addition, take care that no instance is running on the same DB. Else the single unittests can happen to fail due to race conditions with DBS3 Migration Service. """ from dbsserver_t...
55.591241
125
0.689207
950
7,616
5.211579
0.235789
0.065441
0.048071
0.038174
0.498283
0.45102
0.35003
0.322965
0.280347
0.267219
0
0.013414
0.216912
7,616
136
126
56
0.816734
0.207064
0
0.2
0
0
0.142833
0.029495
0
0
0
0
0.063158
1
0.136842
false
0.010526
0.073684
0
0.242105
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
323e018247ff04ecd6fd2937c2a4145cd45afc55
844
py
Python
setup.py
sgang007/audio_chat_client
e2c1caf6ec1a781be0d22f516e55434099514da1
[ "MIT" ]
null
null
null
setup.py
sgang007/audio_chat_client
e2c1caf6ec1a781be0d22f516e55434099514da1
[ "MIT" ]
null
null
null
setup.py
sgang007/audio_chat_client
e2c1caf6ec1a781be0d22f516e55434099514da1
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages # from distutils.core import setup # import py2exe # import sys import os del os.link # sys.setrecursionlimit(5000) with open('requirements.txt') as f: required = f.read().splitlines() def readme(): with open('README.md') as f: return f.read() setup(name=...
23.444444
58
0.64455
99
844
5.323232
0.686869
0.041746
0
0
0
0
0
0
0
0
0
0.015432
0.232227
844
35
59
24.114286
0.79784
0.100711
0
0
0
0
0.267905
0.071618
0
0
0
0
0
1
0.04
false
0
0.12
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
323e28eb5aa06c996913613c2bfc7c17a0e85d7c
2,334
py
Python
kglib/tests/end_to_end/kgcn/diagnosis_debug.py
graknlabs/research
ae3ee07106739efd10f0627058210038ab5956d3
[ "Apache-2.0" ]
13
2018-09-25T13:29:08.000Z
2018-12-10T11:04:38.000Z
kglib/tests/end_to_end/kgcn/diagnosis_debug.py
graknlabs/research
ae3ee07106739efd10f0627058210038ab5956d3
[ "Apache-2.0" ]
23
2018-09-17T20:31:44.000Z
2018-12-14T11:21:52.000Z
kglib/tests/end_to_end/kgcn/diagnosis_debug.py
graknlabs/research
ae3ee07106739efd10f0627058210038ab5956d3
[ "Apache-2.0" ]
1
2018-09-25T15:56:32.000Z
2018-09-25T15:56:32.000Z
# # Copyright (C) 2021 Vaticle # # 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, Versi...
42.436364
163
0.707798
317
2,334
5.037855
0.492114
0.03757
0.018785
0.020038
0.072636
0.072636
0.036318
0
0
0
0
0.01619
0.206084
2,334
54
164
43.222222
0.845656
0.51928
0
0
0
0
0.041783
0
0
0
0
0
0.2
1
0.1
false
0
0.2
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
324140adbf8ce6a27b7f51c371562021ff506dae
1,668
py
Python
python/math_utils.py
PROrock/codin-game-puzzles
a0444719f9a629fc97b1da6f175ecd462a9ff59b
[ "MIT" ]
1
2021-06-16T02:33:57.000Z
2021-06-16T02:33:57.000Z
python/math_utils.py
PROrock/codin-game-puzzles
a0444719f9a629fc97b1da6f175ecd462a9ff59b
[ "MIT" ]
null
null
null
python/math_utils.py
PROrock/codin-game-puzzles
a0444719f9a629fc97b1da6f175ecd462a9ff59b
[ "MIT" ]
null
null
null
def signum(x): if x > 0: return 1 if x < 0: return -1 return 0 # copy of Python 3.5 implementation - probably not needed def isclose(a, b, rel_tol=1e-09, abs_tol=0.0): return abs(a - b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol) def gcd(a, b): """Greatest common divisor""" return _gcd_in...
32.076923
93
0.607914
253
1,668
3.909091
0.391304
0.016178
0.0273
0.020222
0.068756
0
0
0
0
0
0
0.02209
0.294365
1,668
51
94
32.705882
0.818182
0.343525
0
0.066667
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0.033333
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3247a207cdb1e57a605f9bb8949d6c37632fda73
3,707
py
Python
pymt/grids/map.py
mwtoews/pymt
81a8469b0d0d115d21186ec1d1c9575690d51850
[ "MIT" ]
null
null
null
pymt/grids/map.py
mwtoews/pymt
81a8469b0d0d115d21186ec1d1c9575690d51850
[ "MIT" ]
null
null
null
pymt/grids/map.py
mwtoews/pymt
81a8469b0d0d115d21186ec1d1c9575690d51850
[ "MIT" ]
null
null
null
#! /bin/env python """ Examples ======== **Rectilinear** Create a rectilinear grid that is 2x3:: (0) --- (1) --- (2) | | | | | | | [0] | [1] | | | | | | | (3) --- (4) --- (5) Numbers in parens are node IDs, and numbers in square br...
23.916129
84
0.555705
468
3,707
4.228632
0.252137
0.027287
0.024255
0.018191
0.279434
0.235472
0.195048
0.123295
0.123295
0.100051
0
0.022683
0.310224
3,707
154
85
24.071429
0.751271
0.362018
0
0.218182
0
0
0.035566
0
0
0
0
0
0
1
0.090909
false
0
0.054545
0.036364
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3247e08ee12a7d9414679491f0b3e5ad060be2e8
27,447
py
Python
jogo.py
AdamastorLinsFrancaNetto/jogo-academic-journey
ad312d255abe23e243ba39732e972cf45f092b08
[ "MIT" ]
null
null
null
jogo.py
AdamastorLinsFrancaNetto/jogo-academic-journey
ad312d255abe23e243ba39732e972cf45f092b08
[ "MIT" ]
null
null
null
jogo.py
AdamastorLinsFrancaNetto/jogo-academic-journey
ad312d255abe23e243ba39732e972cf45f092b08
[ "MIT" ]
null
null
null
import pygame from conteudo import Conteudo, Nave, Tiro import random class Jogo: def __init__(self): self.fundo1 = Conteudo("arquivos/espaco.png", 0, 0) self.fundo2 = Conteudo("arquivos/espaco.png", 0, -960) self.nave = Nave("arquivos/nave1.png",630,750) self.comando = Conteudo("a...
47.651042
134
0.603709
3,302
27,447
4.944579
0.071169
0.045569
0.087217
0.045201
0.624793
0.398359
0.307099
0.168494
0.108716
0.082134
0
0.066041
0.266805
27,447
575
135
47.733913
0.745279
0
0
0.152174
0
0
0.07102
0.024742
0
0
0
0
0
1
0.032609
false
0
0.005435
0
0.039855
0.001812
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
32485d3d2f97d8719c9ad7891c585aced9f9c6ac
1,308
py
Python
xpresso/binders/dependants.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
75
2022-01-18T02:17:57.000Z
2022-03-24T02:30:04.000Z
xpresso/binders/dependants.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
73
2022-01-18T03:01:27.000Z
2022-03-27T16:41:38.000Z
xpresso/binders/dependants.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
3
2022-01-18T22:47:06.000Z
2022-01-25T02:03:53.000Z
import inspect import typing from di.api.dependencies import CacheKey from di.dependant import Dependant, Marker from xpresso._utils.typing import Protocol from xpresso.binders.api import SupportsExtractor, SupportsOpenAPI T = typing.TypeVar("T", covariant=True) class SupportsMarker(Protocol[T]): def register_...
26.693878
70
0.683486
131
1,308
6.625954
0.328244
0.074885
0.065668
0.0553
0.103687
0.103687
0.103687
0
0
0
0
0
0.2263
1,308
48
71
27.25
0.857708
0
0
0.216216
0
0
0.00841
0
0
0
0
0
0
1
0.135135
false
0
0.162162
0.054054
0.432432
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
3249b98ec0603abf9f97a5033a897bd1e2965b76
440
py
Python
Cisco/Python/Modulo_3/for/exercicio1.py
ThiagoKS-7/Python_Essencials_1_cisco
a417747e873f69bb307c4d36205797b191b5b45a
[ "MIT" ]
null
null
null
Cisco/Python/Modulo_3/for/exercicio1.py
ThiagoKS-7/Python_Essencials_1_cisco
a417747e873f69bb307c4d36205797b191b5b45a
[ "MIT" ]
null
null
null
Cisco/Python/Modulo_3/for/exercicio1.py
ThiagoKS-7/Python_Essencials_1_cisco
a417747e873f69bb307c4d36205797b191b5b45a
[ "MIT" ]
null
null
null
def main(): import time # Write a for loop that counts to five. # Body of the loop - print the loop iteration number and the word "Mississippi". # Body of the loop - use: time.sleep(1) # Write a print function with the final message. for i in range(5): print(f'{i + 1} ...
27.5
89
0.584091
65
440
3.830769
0.630769
0.084337
0.072289
0.104418
0
0
0
0
0
0
0
0.013289
0.315909
440
16
90
27.5
0.813953
0.456818
0
0
0
0
0.236364
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
3252c61f7a71dbc22f9e4a1f7ba0cf98c90f9ea0
8,931
py
Python
pytorch-transformers-extensions/examples/run_inference.py
deepchatterjeevns/nlp_projects
8ea4a846138da0bcee2970907ea3340b1cdc74cb
[ "MIT" ]
21
2019-07-25T08:39:56.000Z
2020-12-14T09:59:06.000Z
pytorch-transformers-extensions/examples/run_inference.py
deepchatterjeevns/nlp_projects
8ea4a846138da0bcee2970907ea3340b1cdc74cb
[ "MIT" ]
1
2019-08-05T03:23:54.000Z
2019-08-05T03:24:39.000Z
pytorch-transformers-extensions/examples/run_inference.py
deepchatterjeevns/nlp_projects
8ea4a846138da0bcee2970907ea3340b1cdc74cb
[ "MIT" ]
15
2019-07-31T13:37:14.000Z
2021-09-28T19:01:27.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
46.759162
163
0.665659
1,150
8,931
4.97913
0.28087
0.022005
0.032658
0.013098
0.166958
0.131855
0.108977
0.053091
0.036326
0.036326
0
0.006226
0.226738
8,931
190
164
47.005263
0.822908
0.128765
0
0.015625
0
0
0.155604
0
0.023438
0
0
0
0
1
0.023438
false
0
0.09375
0
0.125
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
3256173ee4e9a424745cf36c9f1ac6cf9bf2bc08
7,872
py
Python
tools/table.py
asterick/minimon.js
4876544525eb1bfef1b81a12807e7ba37cdd4949
[ "0BSD" ]
5
2019-04-25T00:19:56.000Z
2020-09-02T01:24:40.000Z
tools/table.py
asterick/minimon.js
4876544525eb1bfef1b81a12807e7ba37cdd4949
[ "0BSD" ]
6
2020-05-23T23:17:59.000Z
2022-02-17T21:50:46.000Z
tools/table.py
asterick/minimon.js
4876544525eb1bfef1b81a12807e7ba37cdd4949
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 # ISC License # # Copyright (c) 2019, Bryon Vandiver # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFT...
32.528926
123
0.506225
1,067
7,872
3.689784
0.268978
0.042672
0.06604
0.016764
0.178054
0.137668
0.084836
0.062484
0.035052
0.035052
0
0.03328
0.282393
7,872
241
124
32.6639
0.663657
0.102769
0
0.086957
0
0.01087
0.264001
0.007644
0
0
0.003381
0
0
1
0.021739
false
0
0.016304
0.005435
0.065217
0.163043
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
325927f14aed5b03fe28e7161da22ac9db1b0f2b
15,364
py
Python
test_log.py
erkooi/desp_tools
2bea2e44591ceeeb62cbfe163b4635a3157f6582
[ "Apache-2.0" ]
null
null
null
test_log.py
erkooi/desp_tools
2bea2e44591ceeeb62cbfe163b4635a3157f6582
[ "Apache-2.0" ]
null
null
null
test_log.py
erkooi/desp_tools
2bea2e44591ceeeb62cbfe163b4635a3157f6582
[ "Apache-2.0" ]
null
null
null
############################################################################### # # Copyright (C) 2012 # ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/> # P.O.Box 2, 7990 AA Dwingeloo, The Netherlands # # This program is free software: you can redistribute it and/or modify # it under the term...
48.466877
164
0.570034
1,894
15,364
4.536431
0.187434
0.036662
0.028748
0.039804
0.42237
0.385242
0.342877
0.329842
0.304353
0.261639
0
0.010481
0.329341
15,364
316
165
48.620253
0.82337
0.402044
0
0.309942
0
0.005848
0.041408
0
0
0
0
0
0
1
0.070175
false
0
0.017544
0.005848
0.157895
0.011696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
325b56ca169aa22d3b3e5e502acb535b1e7a8a46
868
py
Python
subaudible/subparse.py
RobbieClarken/subaudible
f22bdec90693727b36eff426e96d6960387fb94d
[ "MIT" ]
null
null
null
subaudible/subparse.py
RobbieClarken/subaudible
f22bdec90693727b36eff426e96d6960387fb94d
[ "MIT" ]
null
null
null
subaudible/subparse.py
RobbieClarken/subaudible
f22bdec90693727b36eff426e96d6960387fb94d
[ "MIT" ]
null
null
null
import re def parse_srt(line_iter): """ Parses SubRip text into caption dicts. Args: line_iter: An iterator that yields lines of a SubRip file. Yields: dict: Caption dicts with `start`, `end` and `text` keys. """ line_iter = iter(line.rstrip('\r\n') for line in line_iter) ...
27.125
67
0.59447
136
868
3.617647
0.426471
0.03252
0.042683
0.04878
0.018293
0.018293
0.018293
0.018293
0
0
0
0.01214
0.240783
868
31
68
28
0.734446
0.221198
0
0
0
0
0.080871
0.045101
0
0
0
0
0
1
0.2
false
0
0.066667
0.066667
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
325b89ab7374be326978f10a334f001191bd3ead
1,971
py
Python
application/models/basemodel.py
ahmedsadman/festive
e0e739f126de2e8368014398f5c928c410098da5
[ "MIT" ]
2
2020-10-19T23:26:23.000Z
2020-10-20T02:14:10.000Z
application/models/basemodel.py
ahmedsadman/fest-management-api
e0e739f126de2e8368014398f5c928c410098da5
[ "MIT" ]
null
null
null
application/models/basemodel.py
ahmedsadman/fest-management-api
e0e739f126de2e8368014398f5c928c410098da5
[ "MIT" ]
1
2021-08-04T15:45:29.000Z
2021-08-04T15:45:29.000Z
from sqlalchemy import func from application import db from application.helpers.error_handlers import ServerError class BaseModel(db.Model): __abstract__ = True def save(self): """save the item to database""" try: db.session.add(self) db.session.commit() except...
33.982759
78
0.597666
247
1,971
4.672065
0.437247
0.031196
0.046794
0.034662
0.169844
0.169844
0.169844
0.169844
0.169844
0.103986
0
0
0.316591
1,971
57
79
34.578947
0.856719
0.281583
0
0.243243
0
0
0.027656
0
0
0
0
0
0
1
0.135135
false
0
0.081081
0.027027
0.351351
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
325fc49ee449fcf77d594c853f23436486f7b300
2,711
py
Python
tests/io/s3/test_s3_fetcher.py
ToucanToco/PeaKina
afaeec65d9b136d42331f140c3048d27bcddb6b1
[ "BSD-3-Clause" ]
null
null
null
tests/io/s3/test_s3_fetcher.py
ToucanToco/PeaKina
afaeec65d9b136d42331f140c3048d27bcddb6b1
[ "BSD-3-Clause" ]
null
null
null
tests/io/s3/test_s3_fetcher.py
ToucanToco/PeaKina
afaeec65d9b136d42331f140c3048d27bcddb6b1
[ "BSD-3-Clause" ]
null
null
null
from typing import Any, Dict import boto3 import pytest from s3fs import S3FileSystem from peakina.io.s3.s3_fetcher import S3Fetcher @pytest.fixture def s3_fetcher(s3_endpoint_url): return S3Fetcher(client_kwargs={"endpoint_url": s3_endpoint_url}) def test_s3_fetcher_open(s3_fetcher): dirpath = "s3://acce...
33.8875
94
0.693471
375
2,711
4.741333
0.266667
0.086052
0.025309
0.028121
0.431384
0.3009
0.245782
0.134421
0.102362
0.102362
0
0.040326
0.185909
2,711
79
95
34.316456
0.765292
0.020288
0
0.175439
0
0
0.220882
0.141726
0
0
0
0
0.140351
1
0.140351
false
0
0.087719
0.017544
0.280702
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
32638416d54a115fde42bba19086c99e40948e61
802
py
Python
backend/events/tests/test_views.py
trfoss/parrot
2f120ee1ab82368f85b2b5a7f1c45afc26aa8963
[ "BSD-2-Clause" ]
5
2019-02-25T02:24:51.000Z
2019-04-21T00:56:43.000Z
backend/events/tests/test_views.py
trfoss/parrot
2f120ee1ab82368f85b2b5a7f1c45afc26aa8963
[ "BSD-2-Clause" ]
51
2019-02-06T03:36:27.000Z
2021-06-10T21:11:24.000Z
backend/events/tests/test_views.py
trfoss/parrot
2f120ee1ab82368f85b2b5a7f1c45afc26aa8963
[ "BSD-2-Clause" ]
7
2019-02-06T04:37:10.000Z
2019-03-28T07:52:26.000Z
""" backend/events/tests/test_views.py Tests for the events page views. We use the test client. Read more at https://docs.djangoproject.com/en/2.1/topics/testing/tools/ """ import json from django.test import TestCase class EventsPageViewTests(TestCase): """Events page view tests for route /events/data ""...
26.733333
69
0.63591
102
802
4.960784
0.588235
0.079051
0.059289
0
0
0
0
0
0
0
0
0.014851
0.244389
802
29
70
27.655172
0.820132
0.377805
0
0
0
0
0.100877
0
0
0
0
0
0.214286
1
0.071429
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3265c12d40cc56aa2b76c483dff904dc52c43391
11,333
py
Python
myfunds/web/views/crypto/views.py
anzodev/myfunds
9f6cda99f443cec064d15d7ff7780f297cbdfe10
[ "MIT" ]
null
null
null
myfunds/web/views/crypto/views.py
anzodev/myfunds
9f6cda99f443cec064d15d7ff7780f297cbdfe10
[ "MIT" ]
null
null
null
myfunds/web/views/crypto/views.py
anzodev/myfunds
9f6cda99f443cec064d15d7ff7780f297cbdfe10
[ "MIT" ]
null
null
null
import csv import io from datetime import datetime import peewee as pw from flask import Blueprint from flask import g from flask import make_response from flask import redirect from flask import render_template from flask import request from flask import url_for from wtforms import Form from wtforms import IntegerFie...
29.667539
88
0.682344
1,292
11,333
5.81192
0.157121
0.030763
0.03356
0.046611
0.557464
0.513118
0.471434
0.459449
0.395659
0.395659
0
0.001349
0.215212
11,333
381
89
29.745407
0.842928
0
0
0.432432
0
0
0.096532
0.019677
0
0
0
0
0
1
0.030405
false
0
0.101351
0
0.192568
0.006757
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
32665f5e99814a1ca419ee599a7bb327ba8ffbf0
9,115
py
Python
src/modeci_mdf/interfaces/pytorch/mod_torch_builtins.py
29riyasaxena/MDF
476e6950d0f14f29463eb4f6e3be518dfb2160a5
[ "Apache-2.0" ]
12
2021-01-18T20:38:21.000Z
2022-03-29T15:01:10.000Z
src/modeci_mdf/interfaces/pytorch/mod_torch_builtins.py
29riyasaxena/MDF
476e6950d0f14f29463eb4f6e3be518dfb2160a5
[ "Apache-2.0" ]
101
2020-12-14T15:23:07.000Z
2022-03-31T17:06:19.000Z
src/modeci_mdf/interfaces/pytorch/mod_torch_builtins.py
29riyasaxena/MDF
476e6950d0f14f29463eb4f6e3be518dfb2160a5
[ "Apache-2.0" ]
15
2020-12-04T22:37:14.000Z
2022-03-31T09:48:03.000Z
""" Wrap commonly-used torch builtins in nn.Module subclass for easier automatic construction of script """ import torch import torch.nn as nn import torch.nn.functional as F class argmax(torch.nn.Module): def __init__(self): super().__init__() def forward(self, A): return torch.argmax(A) c...
23.798956
88
0.501042
1,139
9,115
3.763828
0.115891
0.055983
0.072778
0.089573
0.595055
0.524843
0.503149
0.470725
0.461628
0.446699
0
0.037545
0.360066
9,115
382
89
23.861257
0.697411
0.032913
0
0.458182
0
0
0.017837
0
0
0
0
0.002618
0
1
0.174545
false
0
0.010909
0.072727
0.367273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
326698864c4df87b158debf66bd86b994c325aa0
8,068
py
Python
taf/testlib/snmphelpers.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
10
2016-12-16T00:05:58.000Z
2018-10-30T17:48:25.000Z
taf/testlib/snmphelpers.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
40
2017-01-04T23:07:05.000Z
2018-04-16T19:52:02.000Z
taf/testlib/snmphelpers.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
23
2016-12-30T05:03:53.000Z
2020-04-01T08:40:24.000Z
# Copyright (c) 2011 - 2017, Intel Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
29.992565
104
0.649603
1,145
8,068
4.375546
0.20786
0.026347
0.01996
0.015569
0.244711
0.199601
0.162475
0.125349
0.079441
0.061876
0
0.004763
0.24529
8,068
268
105
30.104478
0.818033
0.318295
0
0.10084
0
0
0.081055
0
0
0
0
0
0
1
0.058824
false
0.042017
0.084034
0
0.168067
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
32675e661c420861aca3a72ce984ac5043cdeab4
2,868
py
Python
elexon_api/utils.py
GiorgioBalestrieri/elexon_api_tool
5b271e9d4a52dec5585a232833a699b8392ee6b0
[ "MIT" ]
4
2019-06-07T11:14:46.000Z
2021-04-01T14:15:14.000Z
elexon_api/utils.py
GiorgioBalestrieri/elexon_api_tool
5b271e9d4a52dec5585a232833a699b8392ee6b0
[ "MIT" ]
null
null
null
elexon_api/utils.py
GiorgioBalestrieri/elexon_api_tool
5b271e9d4a52dec5585a232833a699b8392ee6b0
[ "MIT" ]
6
2019-02-28T20:24:26.000Z
2021-03-30T18:08:23.000Z
import os from pathlib import Path import pandas as pd from collections import defaultdict from typing import Dict, List from .config import REQUIRED_D, API_KEY_FILENAME import logging logger = logging.getLogger(__name__) logger.addHandler(logging.NullHandler()) def get_required_parameters(service_code: str) -> Lis...
25.380531
81
0.540098
328
2,868
4.509146
0.335366
0.027045
0.02975
0.032454
0.183908
0.151454
0.093306
0.093306
0.051386
0.051386
0
0.006871
0.340307
2,868
113
82
25.380531
0.774841
0.360181
0
0.1
0
0
0.074442
0
0
0
0
0
0
1
0.15
false
0.025
0.175
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
326881582afe0e7d4f36578fa52df6c3b487641d
1,608
py
Python
relative_connectivity_of_subgraphs.py
doberse/RRI
e2fdc085d8040efc230a25eec670dd6839cbf1f7
[ "MIT" ]
null
null
null
relative_connectivity_of_subgraphs.py
doberse/RRI
e2fdc085d8040efc230a25eec670dd6839cbf1f7
[ "MIT" ]
null
null
null
relative_connectivity_of_subgraphs.py
doberse/RRI
e2fdc085d8040efc230a25eec670dd6839cbf1f7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import networkx as nx import pandas as pd #Other nodes connected by one node r=open('input_data/BC-related_RRI_network.txt') ll=r.readlines() r.close() rna_pairs=[] node_to_nodes={} for l in ll: ws=l.strip().split('\t') qx=sorted(ws[0:2]) rna_pairs.append((qx[0],qx[1]...
26.360656
99
0.625622
276
1,608
3.485507
0.32971
0.043659
0.080042
0.046778
0.060291
0
0
0
0
0
0
0.014937
0.208955
1,608
60
100
26.8
0.741352
0.121891
0
0.08
0
0
0.107887
0.068452
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
326dd27e7ff223645c2d0bf5d397fdea5ed20af2
2,632
py
Python
src/piotr/cmdline/fs.py
orangecms/piotr
f892ce6eaaa08ea81eb01943a388b64fbf3ccc44
[ "MIT" ]
47
2021-07-02T08:39:02.000Z
2021-11-08T22:21:39.000Z
src/piotr/cmdline/fs.py
orangecms/piotr
f892ce6eaaa08ea81eb01943a388b64fbf3ccc44
[ "MIT" ]
2
2021-07-08T09:25:30.000Z
2021-07-12T10:06:51.000Z
src/piotr/cmdline/fs.py
orangecms/piotr
f892ce6eaaa08ea81eb01943a388b64fbf3ccc44
[ "MIT" ]
5
2021-07-08T08:29:17.000Z
2021-10-18T13:35:11.000Z
""" FS commandline module. Allows to: - list host filesystems - remove a specific host filesystem - add a specific host filesystem """ from os.path import basename from piotr.cmdline import CmdlineModule, module, command from piotr.user import UserDirectory as ud from piotr.util import confirm @module('fs', 'List, ...
32.9
112
0.549392
287
2,632
5.003484
0.341463
0.068245
0.027159
0.04805
0.14624
0.110028
0.110028
0.064067
0.064067
0
0
0.00681
0.330547
2,632
79
113
33.316456
0.808173
0.1269
0
0.183673
0
0.020408
0.307414
0
0
0
0
0
0
1
0.081633
false
0
0.142857
0
0.244898
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
327639bba2a2aa36c47d30fbf67b64ee714db74b
2,975
py
Python
RNAstructure_Source/RNAstructure_python_interface/Error_handling.py
mayc2/PseudoKnot_research
33e94b84435d87aff3d89dbad970c438ac173331
[ "MIT" ]
null
null
null
RNAstructure_Source/RNAstructure_python_interface/Error_handling.py
mayc2/PseudoKnot_research
33e94b84435d87aff3d89dbad970c438ac173331
[ "MIT" ]
null
null
null
RNAstructure_Source/RNAstructure_python_interface/Error_handling.py
mayc2/PseudoKnot_research
33e94b84435d87aff3d89dbad970c438ac173331
[ "MIT" ]
null
null
null
#automated error checking for RNAstructure python interface from __future__ import print_function import inspect from functools import wraps from collections import defaultdict debug = False class StructureError(Exception): pass class RNAstructureInternalError(Exception):pass lookup_exceptions = defaultdict(lambda:Runt...
35.416667
110
0.621176
299
2,975
5.913043
0.347826
0.039593
0.054299
0.033937
0.263575
0.263575
0.263575
0.218326
0.218326
0.218326
0
0.022482
0.282353
2,975
83
111
35.843373
0.805621
0.019496
0
0.233766
0
0
0.095336
0.007202
0
0
0
0
0
1
0.103896
false
0.038961
0.051948
0
0.285714
0.064935
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
3276b79a61cf27161c545de376944d5851538c10
52,691
py
Python
Src/si_figs.py
jomimc/FoldAsymCode
1896e5768e738bb5d1921a3f4c8eaf7f66c06be9
[ "MIT" ]
1
2020-10-07T14:24:06.000Z
2020-10-07T14:24:06.000Z
Src/si_figs.py
jomimc/FoldAsymCode
1896e5768e738bb5d1921a3f4c8eaf7f66c06be9
[ "MIT" ]
null
null
null
Src/si_figs.py
jomimc/FoldAsymCode
1896e5768e738bb5d1921a3f4c8eaf7f66c06be9
[ "MIT" ]
null
null
null
from collections import defaultdict, Counter from itertools import product, permutations from glob import glob import json import os from pathlib import Path import pickle import sqlite3 import string import sys import time import matplotlib as mpl from matplotlib import colors from matplotlib import pyplot as plt fro...
42.085463
162
0.557723
8,901
52,691
3.21065
0.073475
0.008713
0.007768
0.012492
0.698194
0.622227
0.570929
0.537756
0.493317
0.460004
0
0.055077
0.209523
52,691
1,251
163
42.119105
0.631053
0.042721
0
0.397089
0
0.006237
0.103354
0.014935
0
0
0
0
0
1
0.030146
false
0
0.034304
0.00104
0.066528
0.02183
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
327857254668f20b13612c825f93043e95b1c5c9
3,449
py
Python
test_beam_search.py
slegroux/slgBeam
733049ad4a97f582bc169623941cfbdf3efea207
[ "Apache-2.0" ]
null
null
null
test_beam_search.py
slegroux/slgBeam
733049ad4a97f582bc169623941cfbdf3efea207
[ "Apache-2.0" ]
null
null
null
test_beam_search.py
slegroux/slgBeam
733049ad4a97f582bc169623941cfbdf3efea207
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # (c) 2020 Sylvain Le Groux <slegroux@ccrma.stanford.edu> import pytest from pytest import approx import numpy as np import torch from IPython import embed from beam_search import Tokenizer, Score, BeamSearch @pytest.fixture(scope='module') def data(): mat = torch.Tensor(np.genfromtxt('data/...
33.813725
98
0.632647
573
3,449
3.544503
0.162304
0.039389
0.044313
0.054161
0.464796
0.402757
0.373215
0.351059
0.339242
0.339242
0
0.034446
0.19194
3,449
101
99
34.148515
0.694295
0.057988
0
0.37037
0
0
0.056121
0
0
0
0
0
0.197531
1
0.123457
false
0
0.074074
0
0.197531
0.135802
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
327872875221fcfb18f1db81613c4a83884de390
3,404
py
Python
src/main/python/hydra/kafkatest/maxrate_test.py
bopopescu/hydra
ec0793f8c1f49ceb93bf1f1a9789085b68d55f08
[ "Apache-2.0" ]
10
2016-05-28T15:56:43.000Z
2018-01-03T21:30:58.000Z
src/main/python/hydra/kafkatest/maxrate_test.py
bopopescu/hydra
ec0793f8c1f49ceb93bf1f1a9789085b68d55f08
[ "Apache-2.0" ]
17
2016-06-06T22:15:28.000Z
2020-07-22T20:28:12.000Z
src/main/python/hydra/kafkatest/maxrate_test.py
bopopescu/hydra
ec0793f8c1f49ceb93bf1f1a9789085b68d55f08
[ "Apache-2.0" ]
5
2016-06-01T22:01:44.000Z
2020-07-22T20:12:49.000Z
__author__ = 'annyz' from pprint import pprint, pformat # NOQA import logging import os import sys from datetime import datetime from hydra.lib import util from hydra.kafkatest.runtest import RunTestKAFKA from hydra.lib.boundary import Scanner from optparse import OptionParser l = util.createlogger('runSuitMaxRate',...
38.247191
94
0.595476
414
3,404
4.73913
0.413043
0.057085
0.033129
0.035168
0.044852
0.044852
0.044852
0.044852
0.044852
0.044852
0
0.033638
0.292597
3,404
88
95
38.681818
0.781146
0.050235
0
0.042857
0
0
0.177985
0.013953
0
0
0
0
0
1
0.028571
false
0
0.128571
0
0.185714
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
327a4fc033970cf2fec138ab6d2ea6fa9e580d97
1,574
py
Python
map_report.py
porcpine1967/aoe2stats
52965e437b8471753186ba1fc34cb773807eb496
[ "MIT" ]
null
null
null
map_report.py
porcpine1967/aoe2stats
52965e437b8471753186ba1fc34cb773807eb496
[ "MIT" ]
null
null
null
map_report.py
porcpine1967/aoe2stats
52965e437b8471753186ba1fc34cb773807eb496
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Writes out map popularity of last two pools.""" from datetime import datetime, timedelta from utils.map_pools import map_type_filter, pools from utils.tools import execute_sql, last_time_breakpoint, map_name_lookup SQL = """SELECT map_type, COUNT(*) as cnt FROM matches WHERE started BETWEEN ...
32.122449
85
0.560991
209
1,574
4.043062
0.401914
0.049704
0.042604
0
0
0
0
0
0
0
0
0.028907
0.296696
1,574
48
86
32.791667
0.734417
0.051461
0
0
0
0
0.136486
0
0
0
0
0
0
1
0.025641
false
0
0.076923
0
0.102564
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
327cb6d4121abb0fa5a0265759fdf829da140dce
6,303
py
Python
tempdb/postgres.py
runfalk/tempdb
a19f7568db1795025c9ec8adfd84a9544f9a6966
[ "MIT" ]
2
2021-01-17T00:01:14.000Z
2021-01-18T09:26:56.000Z
tempdb/postgres.py
runfalk/tempdb
a19f7568db1795025c9ec8adfd84a9544f9a6966
[ "MIT" ]
null
null
null
tempdb/postgres.py
runfalk/tempdb
a19f7568db1795025c9ec8adfd84a9544f9a6966
[ "MIT" ]
null
null
null
import getpass import os import platform import psycopg2 import sys import tempfile from glob import glob from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT, quote_ident from subprocess import check_output, PIPE, Popen from time import sleep from ._compat import ustr from .utils import is_executable, Uri, Ver...
30.597087
79
0.58369
750
6,303
4.778667
0.3
0.023438
0.011161
0.01423
0.122489
0.095703
0.055246
0.055246
0.055246
0
0
0.001645
0.324766
6,303
205
80
30.746341
0.840461
0.137712
0
0.075342
0
0
0.11287
0.004656
0
0
0
0
0
1
0.089041
false
0.013699
0.082192
0.006849
0.246575
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
327ee9780e46ebbfd9024596b22934ad7011175f
426
py
Python
nymph/modules/tool.py
smilelight/nymph
c8da2211f7a8f58d1c6d327b243e419ed9e64ead
[ "Apache-2.0" ]
1
2020-08-10T00:58:14.000Z
2020-08-10T00:58:14.000Z
nymph/modules/tool.py
smilelight/nymph
c8da2211f7a8f58d1c6d327b243e419ed9e64ead
[ "Apache-2.0" ]
null
null
null
nymph/modules/tool.py
smilelight/nymph
c8da2211f7a8f58d1c6d327b243e419ed9e64ead
[ "Apache-2.0" ]
1
2021-07-03T07:06:41.000Z
2021-07-03T07:06:41.000Z
# -*- coding: utf-8 -*- import pandas as pd def save_dict_to_csv(dict_data: dict, csv_path: str): indexes = list(dict_data.keys()) columns = list(list(dict_data.values())[0].keys()) data = [] for row in dict_data: data.append([item for item in dict_data[row].values()]) pd_data = pd.DataFra...
30.428571
64
0.666667
67
426
4.029851
0.462687
0.148148
0.088889
0
0
0
0
0
0
0
0
0.008646
0.185446
426
13
65
32.769231
0.769452
0.049296
0
0
0
0
0.009926
0
0
0
0
0
0
1
0.1
false
0
0.1
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
328065cc7a0c80c52a732c0213b03b1281db7d57
1,035
py
Python
Python/rockpaperscissors/rockpaperscissors.py
rvrheenen/OpenKattis
7fd59fcb54e86cdf10f56c580c218c62e584f391
[ "MIT" ]
12
2016-10-03T20:43:43.000Z
2021-06-12T17:18:42.000Z
Python/rockpaperscissors/rockpaperscissors.py
rvrheenen/OpenKattis
7fd59fcb54e86cdf10f56c580c218c62e584f391
[ "MIT" ]
null
null
null
Python/rockpaperscissors/rockpaperscissors.py
rvrheenen/OpenKattis
7fd59fcb54e86cdf10f56c580c218c62e584f391
[ "MIT" ]
10
2017-11-14T19:56:37.000Z
2021-02-02T07:39:57.000Z
# WORKS BUT ISN'T FAST ENOUGH first_run = True while(True): inp = input().split() if len(inp) == 1: break if first_run: first_run = False else: print() nPlayers, nGames = [int(x) for x in inp] resultsW = [0] * nPlayers resultsL = [0] * nPlayers for i in range( int...
32.34375
147
0.510145
142
1,035
3.65493
0.338028
0.023121
0.028902
0.030829
0.013487
0.013487
0
0
0
0
0
0.044733
0.330435
1,035
32
148
32.34375
0.704185
0.026087
0
0.1
0
0
0.052632
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3280c700cb467b6fd44a96a8f003a083cb2e0a5f
9,460
py
Python
monitorcontrol/monitor_control.py
klwlau/monitorcontrol
92d07c7a93585de14551ba1f1dd8bb3a009c4842
[ "MIT" ]
null
null
null
monitorcontrol/monitor_control.py
klwlau/monitorcontrol
92d07c7a93585de14551ba1f1dd8bb3a009c4842
[ "MIT" ]
null
null
null
monitorcontrol/monitor_control.py
klwlau/monitorcontrol
92d07c7a93585de14551ba1f1dd8bb3a009c4842
[ "MIT" ]
null
null
null
############################################################################### # Copyright 2019 Alex M. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including witho...
30.031746
79
0.595455
1,137
9,460
4.85752
0.226913
0.015209
0.034764
0.014123
0.380952
0.319392
0.266341
0.227413
0.151729
0.091979
0
0.005852
0.313531
9,460
314
80
30.127389
0.844626
0.502537
0
0.186813
0
0
0.111233
0
0
0
0.005479
0
0
1
0.186813
false
0
0.032967
0
0.340659
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
328135201e01cdb2208c77c5703c4b619db0d327
6,201
py
Python
algorithms/vae.py
ENSP-AI-Mentoring/machine-learning-algorithms
d53d5342f79d08066e158228cab6240872f61f72
[ "Apache-2.0" ]
1
2021-11-14T19:46:46.000Z
2021-11-14T19:46:46.000Z
algorithms/vae.py
ENSP-AI-Mentoring/machine-learning-algorithms
d53d5342f79d08066e158228cab6240872f61f72
[ "Apache-2.0" ]
null
null
null
algorithms/vae.py
ENSP-AI-Mentoring/machine-learning-algorithms
d53d5342f79d08066e158228cab6240872f61f72
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch from torch.optim import Adam from torch.utils.data import DataLoader from tqdm import tqdm class VAE: def __init__( self, train_data, test_data, in_dim, encoder_width, decoder_width, latent_dim, device=None, ): ...
31.8
94
0.588776
777
6,201
4.442728
0.185328
0.028679
0.040556
0.021727
0.348204
0.275492
0.237833
0.182213
0.110371
0.110371
0
0.008555
0.302532
6,201
194
95
31.963918
0.789595
0.067247
0
0.161972
0
0
0.055401
0
0
0
0
0
0
1
0.070423
false
0
0.035211
0
0.176056
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
32837c01862960b0796752083e66eefb2afb0c24
1,244
py
Python
qfig.py
mth1haha/BlockchainQueueingNetwork
611dc84b857efbec22edfe5f3a1bb8f7052a39aa
[ "Apache-2.0" ]
1
2021-11-30T08:22:43.000Z
2021-11-30T08:22:43.000Z
qfig.py
mth1haha/BlockchainQueueingNetwork
611dc84b857efbec22edfe5f3a1bb8f7052a39aa
[ "Apache-2.0" ]
null
null
null
qfig.py
mth1haha/BlockchainQueueingNetwork
611dc84b857efbec22edfe5f3a1bb8f7052a39aa
[ "Apache-2.0" ]
1
2020-11-25T08:48:25.000Z
2020-11-25T08:48:25.000Z
import simpy as sp import numpy as np import seaborn as sns import matplotlib.pyplot as plt from scipy import stats, integrate def client(env, lamda, q, tic): meant = 1/lamda while True: t = np.random.exponential(meant) yield env.timeout(t) q.put('job') tic.append(env.now) def ...
20.393443
52
0.619775
203
1,244
3.788177
0.458128
0.041612
0.035111
0.078023
0.109233
0.062419
0.062419
0
0
0
0
0.053236
0.229904
1,244
60
53
20.733333
0.749478
0.07717
0
0.086957
0
0
0.031607
0
0
0
0
0
0
1
0.043478
false
0
0.108696
0
0.152174
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
328b211073d9f2b0d84385aebf512b9639d8569d
1,133
py
Python
application/utils/data_transfer_objects.py
charles-crawford/sentiment
38cfd6af1cc81ad1858621a182cd76dc3e5f04db
[ "MIT" ]
null
null
null
application/utils/data_transfer_objects.py
charles-crawford/sentiment
38cfd6af1cc81ad1858621a182cd76dc3e5f04db
[ "MIT" ]
null
null
null
application/utils/data_transfer_objects.py
charles-crawford/sentiment
38cfd6af1cc81ad1858621a182cd76dc3e5f04db
[ "MIT" ]
null
null
null
from flask_restx.fields import String, Boolean, Raw, List, Float, Nested class DataTransferObjects: def __init__(self, ns): self.ns = ns self.general_responses = {200: 'OK', 404: "Resource not found", 400: "Bad Request", ...
33.323529
112
0.529568
116
1,133
5.068966
0.448276
0.071429
0.093537
0.071429
0.105442
0.105442
0
0
0
0
0
0.017241
0.33451
1,133
33
113
34.333333
0.762599
0
0
0.2
0
0
0.218005
0
0
0
0
0
0
1
0.04
false
0
0.04
0
0.12
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
329003760fc6877a5fb340f8c2de344d9c2c4d3e
13,284
py
Python
grover.py
raulillo82/TFG-Fisica-2021
8acfd748c7f49ea294606a9c185227927ec2e256
[ "MIT" ]
null
null
null
grover.py
raulillo82/TFG-Fisica-2021
8acfd748c7f49ea294606a9c185227927ec2e256
[ "MIT" ]
null
null
null
grover.py
raulillo82/TFG-Fisica-2021
8acfd748c7f49ea294606a9c185227927ec2e256
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' * Copyright (C) 2021 Raúl Osuna Sánchez-Infante * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE.txt file for details. ''' ################## #Needed libraries# ################## import matplotlib as mpl mpl.use('TkAgg') import matpl...
29.851685
187
0.546522
2,078
13,284
3.464389
0.179981
0.029449
0.025698
0.033616
0.373246
0.317405
0.301014
0.247118
0.217947
0.211557
0
0.054229
0.300361
13,284
444
188
29.918919
0.720034
0.141448
0
0.577703
0
0.010135
0.089647
0
0
0
0
0
0
1
0.043919
false
0
0.023649
0
0.084459
0.033784
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
3294741b0f8e1bf0eeabf4019d19a68a63e99c23
1,419
py
Python
tests/bind_tests/diagram_tests/strategies.py
lycantropos/voronoi
977e0b3e5eff2dd294e2e6ce1a8030c763e86233
[ "MIT" ]
null
null
null
tests/bind_tests/diagram_tests/strategies.py
lycantropos/voronoi
977e0b3e5eff2dd294e2e6ce1a8030c763e86233
[ "MIT" ]
null
null
null
tests/bind_tests/diagram_tests/strategies.py
lycantropos/voronoi
977e0b3e5eff2dd294e2e6ce1a8030c763e86233
[ "MIT" ]
null
null
null
from hypothesis import strategies from hypothesis_geometry import planar from tests.bind_tests.hints import (BoundCell, BoundDiagram, BoundEdge, BoundVertex) from tests.bind_tests.utils import (bound_source_cate...
44.34375
76
0.653982
132
1,419
6.80303
0.287879
0.089087
0.066815
0.040089
0.044543
0
0
0
0
0
0
0.005911
0.284708
1,419
31
77
45.774194
0.878818
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.206897
0
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
32955f3ecdc5ec46e6e7127a3ed57f1411af2c54
2,381
py
Python
apps/blog/serializers.py
yc19890920/dble_fastapi_blog
dd9b8984d849df893d4fea270e8b75ac12d01241
[ "Apache-2.0" ]
null
null
null
apps/blog/serializers.py
yc19890920/dble_fastapi_blog
dd9b8984d849df893d4fea270e8b75ac12d01241
[ "Apache-2.0" ]
2
2021-03-31T19:56:46.000Z
2021-04-30T21:19:15.000Z
apps/blog/serializers.py
yc19890920/dble_fastapi_blog
dd9b8984d849df893d4fea270e8b75ac12d01241
[ "Apache-2.0" ]
null
null
null
""" @Author: YangCheng @contact: 1248644045@qq.com @Software: Y.C @Time: 2020/7/21 15:22 """ from typing import List from pydantic import BaseModel, Field from tortoise import Tortoise from tortoise.contrib.pydantic import pydantic_model_creator, pydantic_queryset_creator from lib.tortoise.pydantic import json_...
25.063158
87
0.761025
237
2,381
7.506329
0.320675
0.047218
0.067454
0.047218
0.104553
0
0
0
0
0
0
0.01015
0.131037
2,381
94
88
25.329787
0.849686
0.099118
0
0
0
0
0.121653
0.050258
0
0
0
0
0
1
0
false
0
0.111111
0
0.481481
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
329a1a34027b83c6621340af222a98c0d43067e0
1,102
py
Python
Python/image_analysis_centerlines/analysis_example.py
fromenlab/guides
ac9831265f8219d5b5a8ee3a441fc77c7ae4fe3b
[ "MIT" ]
null
null
null
Python/image_analysis_centerlines/analysis_example.py
fromenlab/guides
ac9831265f8219d5b5a8ee3a441fc77c7ae4fe3b
[ "MIT" ]
null
null
null
Python/image_analysis_centerlines/analysis_example.py
fromenlab/guides
ac9831265f8219d5b5a8ee3a441fc77c7ae4fe3b
[ "MIT" ]
null
null
null
from skimage import img_as_bool, io, color, morphology import matplotlib.pyplot as plt import numpy as np import pandas as pd # Testing process # Import images one = img_as_bool(color.rgb2gray(io.imread('1.jpg'))) cross = img_as_bool(color.rgb2gray(io.imread('cross.jpg'))) grid = img_as_bool(color.rgb2gray(io.imread('...
34.4375
83
0.791289
170
1,102
4.864706
0.3
0.067715
0.043531
0.050786
0.221282
0.108827
0.108827
0
0
0
0
0.006036
0.098004
1,102
32
84
34.4375
0.825956
0.098004
0
0
0
0
0.024292
0
0
0
0
0
0
1
0
false
0
0.210526
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
329a5ba2f15a3280c3c7c2b2a6a0114abcec0cf9
485
py
Python
resources/settings.py
Miriel-py/Room-Wizard
83d86fe8e8fed8bb073b38465cd0e97b1a6113b8
[ "MIT" ]
null
null
null
resources/settings.py
Miriel-py/Room-Wizard
83d86fe8e8fed8bb073b38465cd0e97b1a6113b8
[ "MIT" ]
null
null
null
resources/settings.py
Miriel-py/Room-Wizard
83d86fe8e8fed8bb073b38465cd0e97b1a6113b8
[ "MIT" ]
null
null
null
# global_data.py import os from dotenv import load_dotenv # Read the bot token from the .env file load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') DEBUG_MODE = os.getenv('DEBUG_MODE') BOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DB_FILE = os.path.join(BOT_DIR, 'database/room_wizard_db.db') ...
24.25
69
0.764948
78
485
4.5
0.512821
0.08547
0.074074
0.08547
0.205128
0.11396
0
0
0
0
0
0.053364
0.11134
485
20
70
24.25
0.761021
0.131959
0
0
0
0
0.203349
0.062201
0
0
0.019139
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
329eec6934c9b0ff2824d0ffd01a1902dae80850
1,767
py
Python
detection_algorithms/temporal_anomaly_detection/model_def.py
hanahs-deepfake-detection/detection-algorithms
6d7ec53eaf333adb10a1aba448f80fceaf7722be
[ "MIT" ]
null
null
null
detection_algorithms/temporal_anomaly_detection/model_def.py
hanahs-deepfake-detection/detection-algorithms
6d7ec53eaf333adb10a1aba448f80fceaf7722be
[ "MIT" ]
null
null
null
detection_algorithms/temporal_anomaly_detection/model_def.py
hanahs-deepfake-detection/detection-algorithms
6d7ec53eaf333adb10a1aba448f80fceaf7722be
[ "MIT" ]
null
null
null
""" Model Definition """ from tensorflow import keras from tensorflow.keras.applications import ResNet101V2 from tensorflow.keras.layers import ( BatchNormalization, Conv2D, Dense, Dropout, Flatten, LSTM, MaxPool2D, TimeDistributed, Lambda ) import tensorflow as tf from .spatial_transformer.bilinear_sampler i...
42.071429
84
0.654782
220
1,767
5.163636
0.322727
0.022887
0.104754
0.035211
0.242077
0.178697
0.088028
0.088028
0.088028
0.088028
0
0.04745
0.200905
1,767
41
85
43.097561
0.757082
0.009055
0
0.114286
0
0
0.021228
0
0
0
0
0
0
1
0.028571
false
0
0.142857
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
329f8f1e2538fb2f56b719613eee2ed54216347d
4,884
py
Python
osspeak/platforms/windows.py
OSSpeak/OSSpeak
327c38a37684165f87bf8d76ab2ca135b43b8ab7
[ "MIT" ]
1
2020-03-17T10:24:41.000Z
2020-03-17T10:24:41.000Z
osspeak/platforms/windows.py
OSSpeak/OSSpeak
327c38a37684165f87bf8d76ab2ca135b43b8ab7
[ "MIT" ]
12
2016-09-28T05:16:00.000Z
2020-11-27T22:32:40.000Z
osspeak/platforms/windows.py
OSSpeak/OSSpeak
327c38a37684165f87bf8d76ab2ca135b43b8ab7
[ "MIT" ]
null
null
null
''' Collection of Windows-specific I/O functions ''' import msvcrt import time import ctypes from platforms import winconstants, winclipboard EnumWindows = ctypes.windll.user32.EnumWindows EnumWindowsProc = ctypes.WINFUNCTYPE(ctypes.c_bool, ctypes.POINTER(ctypes.c_int), ctypes.POINTER(ctypes.c_int)) GetWindowText = c...
37.282443
123
0.719287
559
4,884
6.159213
0.255814
0.080163
0.120244
0.053732
0.250363
0.118211
0.069997
0.069997
0.069997
0.069997
0
0.020025
0.182023
4,884
131
124
37.282443
0.841802
0.019656
0
0.148148
0
0
0.010667
0
0
0
0
0
0
1
0.138889
false
0
0.037037
0.018519
0.296296
0.009259
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
32a0d30f56c4a1916c5ad0aef5a7b50495e1860b
715
py
Python
sudokusolver/common/messenger.py
Blondberg/SudokuSolver
4a6f1f927d41f7a39a953b9784b28d570edf1f09
[ "MIT" ]
null
null
null
sudokusolver/common/messenger.py
Blondberg/SudokuSolver
4a6f1f927d41f7a39a953b9784b28d570edf1f09
[ "MIT" ]
null
null
null
sudokusolver/common/messenger.py
Blondberg/SudokuSolver
4a6f1f927d41f7a39a953b9784b28d570edf1f09
[ "MIT" ]
null
null
null
# messenger.py - contains functions to create different kinds of messages like info or error # color the text, usage: print bcolors.WARNING + "Warning: No active frommets remain. Continue?" + bcolors.ENDC BCOLORS = { 'HEADER': '\033[95m', 'OKBLUE': '\033[94m', 'OKGREEN': '\033[92m', 'WARNING': '\033[9...
23.833333
111
0.633566
87
715
5.206897
0.528736
0.10596
0.125828
0
0
0
0
0
0
0
0
0.063574
0.186014
715
29
112
24.655172
0.714777
0.348252
0
0
0
0
0.297826
0
0
0
0
0
0
1
0.1875
false
0
0
0
0.1875
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
32a23291b7486cbc9a87ce5a914dd735071b20e4
554
py
Python
test.py
w0w/miniPFC
63b1bf608de03efada2a1b57c0370b6a7c2bf1ad
[ "MIT" ]
null
null
null
test.py
w0w/miniPFC
63b1bf608de03efada2a1b57c0370b6a7c2bf1ad
[ "MIT" ]
null
null
null
test.py
w0w/miniPFC
63b1bf608de03efada2a1b57c0370b6a7c2bf1ad
[ "MIT" ]
null
null
null
import json import RPi.GPIO as GPIO from modules.sensor import getTempC, getHumidity def loadConfig(): with open('./config/pin.json') as data_file: data = json.load(data_file) return data currentPins = loadConfig().values() def bootActuators(): '''Assumes that pi is booting and set off al...
25.181818
63
0.66426
76
554
4.815789
0.644737
0.040984
0
0
0
0
0
0
0
0
0
0
0.220217
554
22
64
25.181818
0.847222
0.095668
0
0
0
0
0.074597
0
0
0
0
0
0
1
0.125
false
0
0.1875
0
0.375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
32a426fd1c9efac97183a6c708ae91ac77c14062
1,170
py
Python
example.py
clagraff/habu
28d05c2fa2204b26177bbaed969648b92b89c735
[ "MIT" ]
null
null
null
example.py
clagraff/habu
28d05c2fa2204b26177bbaed969648b92b89c735
[ "MIT" ]
null
null
null
example.py
clagraff/habu
28d05c2fa2204b26177bbaed969648b92b89c735
[ "MIT" ]
null
null
null
import json import habu def do_req(uri, *args, **kwargs): route_data = { "/": { "_links": { "people": { "href": "/people" }, "animals": { "href": "/animals" } } }, "/people": { "_links": { "self": { "href":...
23.4
105
0.417949
105
1,170
4.47619
0.438095
0.119149
0.082979
0.080851
0.178723
0.178723
0.178723
0.178723
0.178723
0
0
0.007194
0.405983
1,170
49
106
23.877551
0.669065
0
0
0.073171
0
0
0.232479
0
0
0
0
0
0
1
0.04878
false
0
0.04878
0
0.121951
0.073171
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
32a62b611ae086d7c010dc8106960f0f8f3738b2
1,162
py
Python
notify_tweet.py
mkaraki/WatchTweets
9b0a4ef66e38311453fff99d02091758b1bd0df5
[ "MIT" ]
null
null
null
notify_tweet.py
mkaraki/WatchTweets
9b0a4ef66e38311453fff99d02091758b1bd0df5
[ "MIT" ]
1
2022-01-26T18:03:15.000Z
2022-01-26T18:03:35.000Z
notify_tweet.py
mkaraki/WatchTweets
9b0a4ef66e38311453fff99d02091758b1bd0df5
[ "MIT" ]
null
null
null
import json import os import requests from dotenv import load_dotenv # You have to configure in this file to notify other services def notifyHandler(tweet): notifyDiscord(tweet) return def notifyDiscord(tweet, find_user_info=False): msg = tweet['text'] if ('entities' in tweet and 'urls' in tweet[...
26.409091
87
0.553356
129
1,162
4.883721
0.534884
0.031746
0.04127
0.057143
0.07619
0
0
0
0
0
0
0
0.288296
1,162
43
88
27.023256
0.76179
0.050775
0
0.0625
0
0
0.286104
0
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
32ac15da27e5771cb19e9b355fd09244b1a2fee3
561
py
Python
misprogs/sensor_Luz_LCD.py
dacocube/CursoGalileo
1dac903031d9ff61174cb0c5e00e3f3795ea60de
[ "Apache-2.0" ]
null
null
null
misprogs/sensor_Luz_LCD.py
dacocube/CursoGalileo
1dac903031d9ff61174cb0c5e00e3f3795ea60de
[ "Apache-2.0" ]
null
null
null
misprogs/sensor_Luz_LCD.py
dacocube/CursoGalileo
1dac903031d9ff61174cb0c5e00e3f3795ea60de
[ "Apache-2.0" ]
null
null
null
import signal import sys import time import pyupm_grove as grove import pyupm_i2clcd as lcd def interruptHandler(signal, frame): sys.exit(0) if __name__=='__main__': signal.signal(signal.SIGINT, interruptHandler) myLcd = lcd.Jhd1313m1(0, 0x3E,0x62) sensorluz=grove.GroveLight(0) coloR=255 colorG=200 colorB=100...
20.777778
63
0.761141
82
561
5.085366
0.634146
0.052758
0
0
0
0
0
0
0
0
0
0.061856
0.135472
561
26
64
21.576923
0.797938
0.108734
0
0
0
0
0.022044
0
0
0
0.016032
0
0
1
0.047619
false
0
0.238095
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
32b26100558c8d0079fd4f055056d994cd62c099
9,553
py
Python
clustviz/clarans.py
barbarametzler/ClustViz
a460e1ffb5195dfe1e12bca106366901d169a690
[ "MIT" ]
6
2019-11-14T11:22:54.000Z
2020-03-01T09:14:21.000Z
clustviz/clarans.py
barbarametzler/ClustViz
a460e1ffb5195dfe1e12bca106366901d169a690
[ "MIT" ]
2
2020-07-21T07:49:07.000Z
2021-04-06T16:16:09.000Z
clustviz/clarans.py
barbarametzler/ClustViz
a460e1ffb5195dfe1e12bca106366901d169a690
[ "MIT" ]
5
2020-07-14T15:22:00.000Z
2022-03-19T19:45:32.000Z
import random from typing import Tuple, Dict, Any import scipy import itertools import graphviz import numpy as np import pandas as pd from clustviz.pam import plot_pam from pyclustering.utils import euclidean_distance_square from pyclustering.cluster.clarans import clarans as clarans_pyclustering class clarans(cla...
36.185606
114
0.539098
980
9,553
4.968367
0.234694
0.036147
0.040049
0.022592
0.240501
0.177449
0.121586
0.111316
0.104539
0.084822
0
0.006726
0.39307
9,553
263
115
36.323194
0.833046
0.185596
0
0.231707
0
0
0.038522
0
0
0
0
0
0
1
0.02439
false
0.006098
0.060976
0
0.109756
0.036585
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
32b489e63deb6a7323ecb9996f33d06edac172bd
1,507
py
Python
bin/demo_findit_backup_url.py
cariaso/metapub
bfa361dd6e5de8ee0859e596d490fb478f7dcfba
[ "Apache-2.0" ]
28
2019-09-09T08:12:31.000Z
2021-12-17T00:09:14.000Z
bin/demo_findit_backup_url.py
cariaso/metapub
bfa361dd6e5de8ee0859e596d490fb478f7dcfba
[ "Apache-2.0" ]
33
2019-11-07T05:36:04.000Z
2022-01-29T01:14:57.000Z
bin/demo_findit_backup_url.py
cariaso/metapub
bfa361dd6e5de8ee0859e596d490fb478f7dcfba
[ "Apache-2.0" ]
10
2019-09-09T10:04:05.000Z
2021-06-08T16:00:14.000Z
from __future__ import absolute_import, print_function, unicode_literals import os import requests from metapub.findit import FindIt from metapub.exceptions import * from requests.packages import urllib3 urllib3.disable_warnings() OUTPUT_DIR = 'findit' CURL_TIMEOUT = 4000 def try_request(url): # verify=False m...
28.433962
98
0.666224
205
1,507
4.717073
0.44878
0.055843
0.062048
0.074457
0.136505
0.136505
0.066184
0
0
0
0
0.020924
0.238885
1,507
52
99
28.980769
0.822145
0.028534
0
0.1
0
0
0.069178
0
0
0
0
0
0
1
0.05
false
0
0.175
0
0.3
0.175
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
32b5c206b4bd2dca61a6557018af529be9b8ba2f
3,939
py
Python
kgcnn/layers/conv/dmpnn_conv.py
the16thpythonist/gcnn_keras
27d794095b684333d93149c825d84b85df8c30ff
[ "MIT" ]
47
2021-03-10T10:15:42.000Z
2022-03-14T00:53:40.000Z
kgcnn/layers/conv/dmpnn_conv.py
the16thpythonist/gcnn_keras
27d794095b684333d93149c825d84b85df8c30ff
[ "MIT" ]
36
2021-05-06T15:06:51.000Z
2022-03-02T13:06:16.000Z
kgcnn/layers/conv/dmpnn_conv.py
the16thpythonist/gcnn_keras
27d794095b684333d93149c825d84b85df8c30ff
[ "MIT" ]
11
2021-04-05T02:14:27.000Z
2022-03-02T03:25:52.000Z
import tensorflow as tf from kgcnn.layers.base import GraphBaseLayer from kgcnn.layers.gather import GatherNodesOutgoing, GatherNodesIngoing from kgcnn.layers.pooling import PoolingLocalEdges from kgcnn.layers.modules import LazySubtract @tf.keras.utils.register_keras_serializable(package='kgcnn', name='DMPNNGatherE...
43.766667
117
0.67276
477
3,939
5.381551
0.289308
0.049085
0.032723
0.030386
0.354889
0.340475
0.293728
0.201792
0.172965
0.131671
0
0.010081
0.219345
3,939
89
118
44.258427
0.824715
0.369383
0
0.15
0
0
0.026258
0.020569
0
0
0
0
0.025
1
0.15
false
0
0.125
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
32b877d4916dd5d40bd6976997b7ef7d01823785
349
py
Python
api/admin.py
jchmura/suchary-django
af2e8a62d222fd6eb18f29af95c23ab098ccc2a6
[ "MIT" ]
null
null
null
api/admin.py
jchmura/suchary-django
af2e8a62d222fd6eb18f29af95c23ab098ccc2a6
[ "MIT" ]
2
2021-03-19T21:54:17.000Z
2021-06-10T19:20:12.000Z
api/admin.py
jchmura/suchary-django
af2e8a62d222fd6eb18f29af95c23ab098ccc2a6
[ "MIT" ]
null
null
null
from django.contrib import admin from api.models import Device class DeviceAdmin(admin.ModelAdmin): list_display = ['android_id', 'alias', 'model', 'os_version', 'version', 'created', 'last_seen', 'active'] list_filter = ['active'] search_fields = ['registration_id', 'android_id', 'alias'] admin.site.r...
26.846154
110
0.713467
42
349
5.738095
0.690476
0.074689
0.116183
0
0
0
0
0
0
0
0
0
0.13467
349
12
111
29.083333
0.798013
0
0
0
0
0
0.272206
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
32bd83533b8a10d702670e0618e12d21f2714992
712
py
Python
f8a_jobs/handlers/flow.py
sawood14012/fabric8-analytics-jobs
a7d850dfef5785144676b9a3b4e29942161e5347
[ "Apache-2.0" ]
5
2017-05-04T11:22:31.000Z
2018-08-24T16:12:30.000Z
f8a_jobs/handlers/flow.py
sawood14012/fabric8-analytics-jobs
a7d850dfef5785144676b9a3b4e29942161e5347
[ "Apache-2.0" ]
325
2017-05-03T08:44:03.000Z
2021-12-13T21:03:49.000Z
f8a_jobs/handlers/flow.py
sawood14012/fabric8-analytics-jobs
a7d850dfef5785144676b9a3b4e29942161e5347
[ "Apache-2.0" ]
28
2017-05-02T05:09:32.000Z
2021-03-11T09:42:34.000Z
"""Schedule multiple flows of a type.""" from .base import BaseHandler class FlowScheduling(BaseHandler): """Schedule multiple flows of a type.""" def execute(self, flow_name, flow_arguments): """Schedule multiple flows of a type, do filter expansion if needed. :param flow_name: flow name t...
33.904762
76
0.651685
94
712
4.734043
0.425532
0.089888
0.141573
0.155056
0.305618
0.305618
0
0
0
0
0
0
0.273876
712
20
77
35.6
0.860735
0.345506
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.111111
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
32bdf6c9f66952e90bfd46bcfa58f2ec034c3c0d
1,032
py
Python
mako/stats/notifier.py
zer0tonin/mako
12420056e13e1acd333e686537d5ebc909450620
[ "MIT" ]
null
null
null
mako/stats/notifier.py
zer0tonin/mako
12420056e13e1acd333e686537d5ebc909450620
[ "MIT" ]
1
2021-06-02T04:22:46.000Z
2021-06-02T04:22:46.000Z
mako/stats/notifier.py
zer0tonin/mako
12420056e13e1acd333e686537d5ebc909450620
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__) class Notifier: def __init__(self, redis): self.redis = redis async def notify_guilds(self): guilds_set = "guilds" logger.debug("Scanning {}".format(guilds_set)) result = [] async for guild_id in self.redis.isscan(...
30.352941
86
0.631783
130
1,032
4.761538
0.323077
0.087237
0.067851
0.048465
0.109855
0.109855
0.109855
0.109855
0
0
0
0
0.255814
1,032
33
87
31.272727
0.80599
0
0
0.25
0
0
0.092054
0
0
0
0
0
0
1
0.041667
false
0
0.041667
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
32c304191982cf35da8aed8e53fd875c3bef3ba2
1,505
py
Python
PageObjectModel/Test/addAndEditionData.py
lblaszkowski/Arena
61f924bc7c3994ec7714fe68f60b02b35ccd286b
[ "Apache-2.0" ]
null
null
null
PageObjectModel/Test/addAndEditionData.py
lblaszkowski/Arena
61f924bc7c3994ec7714fe68f60b02b35ccd286b
[ "Apache-2.0" ]
null
null
null
PageObjectModel/Test/addAndEditionData.py
lblaszkowski/Arena
61f924bc7c3994ec7714fe68f60b02b35ccd286b
[ "Apache-2.0" ]
null
null
null
import unittest from selenium import webdriver from PageObjectModel.Pages.addAndEditionDataPage import AddAndEditionData_Page from time import sleep url = 'https://buggy-testingcup.pgs-soft.com/' class AddAndEditionDataPage(unittest.TestCase): def setUp(self, browser="mozilla", task="task_3"): if browse...
32.717391
106
0.67907
142
1,505
7.126761
0.528169
0.098814
0.037549
0.043478
0.092885
0.092885
0.092885
0.092885
0.092885
0.092885
0
0.013594
0.21794
1,505
45
107
33.444444
0.846219
0
0
0.121212
0
0
0.145333
0.056
0
0
0
0
0
1
0.090909
false
0
0.121212
0
0.272727
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
32c57ec480ef32335403cba14fba78c713f0eb97
741
py
Python
azext_script/compilers/az/handlers/HDInsight.py
yorek/adl
d9da1b7d46c71415e38a6efe5b1c8d45b02b3704
[ "MIT" ]
null
null
null
azext_script/compilers/az/handlers/HDInsight.py
yorek/adl
d9da1b7d46c71415e38a6efe5b1c8d45b02b3704
[ "MIT" ]
1
2018-10-15T05:51:38.000Z
2018-10-15T05:51:38.000Z
azext_script/compilers/az/handlers/HDInsight.py
yorek/adl
d9da1b7d46c71415e38a6efe5b1c8d45b02b3704
[ "MIT" ]
1
2018-10-18T18:41:02.000Z
2018-10-18T18:41:02.000Z
from .Generic import GenericHandler class HDInsightHandler(GenericHandler): azure_object = "hdinsight" def execute(self): fqn = self.get_full_resource_name() self.add_context_parameter("resource-group", "group") if fqn == "hdinsight" and self.action == "create": ...
30.875
70
0.618084
75
741
5.92
0.506667
0.189189
0.063063
0.103604
0
0
0
0
0
0
0
0
0.279352
741
23
71
32.217391
0.831461
0
0
0
0
0
0.17027
0.02973
0
0
0
0
0
1
0.066667
false
0
0.066667
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
32c6c31592e8107e78ef2bb52771dcffacd50781
393
py
Python
html_mining/twitter.py
sourceperl/sandbox
bbe1be52c3e51906a8ec94411c4df6a95dcbb39c
[ "MIT" ]
null
null
null
html_mining/twitter.py
sourceperl/sandbox
bbe1be52c3e51906a8ec94411c4df6a95dcbb39c
[ "MIT" ]
null
null
null
html_mining/twitter.py
sourceperl/sandbox
bbe1be52c3e51906a8ec94411c4df6a95dcbb39c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import requests from bs4 import BeautifulSoup r = requests.get("https://twitter.com/ThePSF", headers={"User-Agent": ""}) if r.status_code == 200: s = BeautifulSoup(r.content, "html.parser") # extract tweets l_tw = [] for p in s.find_all("p", attrs={"clas...
23.117647
74
0.62341
58
393
4.137931
0.775862
0.0375
0
0
0
0
0
0
0
0
0
0.018692
0.183206
393
16
75
24.5625
0.728972
0.147583
0
0
0
0
0.189759
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
32c80a80f478110db9183291633d248502cd65ad
590
py
Python
warehouse_labeling_machines/libs/utils.py
sdg97/warehouse_labeling_machines
3650b9fb2d3fef85ee01925acf0a9266dafe746a
[ "Apache-2.0" ]
null
null
null
warehouse_labeling_machines/libs/utils.py
sdg97/warehouse_labeling_machines
3650b9fb2d3fef85ee01925acf0a9266dafe746a
[ "Apache-2.0" ]
null
null
null
warehouse_labeling_machines/libs/utils.py
sdg97/warehouse_labeling_machines
3650b9fb2d3fef85ee01925acf0a9266dafe746a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import decimal import multiprocessing import random def roundDecimal(v): ''' Sembra che l'arrotondamento di un decimal sia più complicato del previsto ''' return v.quantize(decimal.Decimal('0.01'), rounding=decimal.ROUND_HALF_UP) def maybeStart(startCb, deb...
21.851852
78
0.666102
75
590
5.2
0.72
0.020513
0
0
0
0
0
0
0
0
0
0.015317
0.225424
590
26
79
22.692308
0.838074
0.366102
0
0
0
0
0.011834
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
086749fe086bfe8b53982e2dc76e87c1e91b6cc7
1,596
py
Python
code/p3.py
OscarFlores-IFi/CDINP19
7fb0cb6ff36b9a10bcfa0772b172c5e49996df48
[ "MIT" ]
null
null
null
code/p3.py
OscarFlores-IFi/CDINP19
7fb0cb6ff36b9a10bcfa0772b172c5e49996df48
[ "MIT" ]
null
null
null
code/p3.py
OscarFlores-IFi/CDINP19
7fb0cb6ff36b9a10bcfa0772b172c5e49996df48
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 11 09:18:37 2019 @author: if715029 """ import pandas as pd import numpy as np import sklearn.metrics as skm import scipy.spatial.distance as sc #%% Leer datos data = pd.read_excel('../data/Test de películas(1-16).xlsx', encoding='latin_1') #%% Seleccionar datos (a mi e...
21.863014
80
0.697368
260
1,596
4.184615
0.419231
0.051471
0.012868
0.03125
0.095588
0.071691
0
0
0
0
0
0.051338
0.133459
1,596
72
81
22.166667
0.735358
0.308271
0
0.057143
0
0
0.046468
0
0
0
0
0
0
1
0
false
0
0.114286
0
0.114286
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
0867a27f2b0a9d65b0fbacf348d77dfbc3427264
1,187
py
Python
itao/utils/qt_logger.py
MaxChangInnodisk/itao
b0745eb48bf67718ef00db566c4cc19896d903a7
[ "MIT" ]
null
null
null
itao/utils/qt_logger.py
MaxChangInnodisk/itao
b0745eb48bf67718ef00db566c4cc19896d903a7
[ "MIT" ]
null
null
null
itao/utils/qt_logger.py
MaxChangInnodisk/itao
b0745eb48bf67718ef00db566c4cc19896d903a7
[ "MIT" ]
null
null
null
import logging class CustomLogger: def __init__(self): pass """ Create logger which name is 'dev' """ def create_logger(self, name='dev', log_file='itao.log', write_mode='w'): logger = logging.getLogger(name) # setup LEVEL logger.setLevel(logging.DEBUG) # setup...
34.911765
97
0.615838
134
1,187
5.298507
0.380597
0.067606
0.039437
0.047887
0.188732
0.188732
0.188732
0.188732
0.188732
0.188732
0
0.002299
0.26706
1,187
34
97
34.911765
0.813793
0.077506
0
0.095238
0
0
0.096993
0
0
0
0
0
0
1
0.142857
false
0.047619
0.047619
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
08687783aacc944c351fc37618c9c87ef69b3d6b
2,296
py
Python
scripts/ndvi_diff.py
hkfrei/pythonRemoteSensing
c8681d859313ee5ad01e5b9753f8c43462268624
[ "MIT" ]
1
2019-12-18T21:54:22.000Z
2019-12-18T21:54:22.000Z
scripts/ndvi_diff.py
hkfrei/pythonRemoteSensing
c8681d859313ee5ad01e5b9753f8c43462268624
[ "MIT" ]
null
null
null
scripts/ndvi_diff.py
hkfrei/pythonRemoteSensing
c8681d859313ee5ad01e5b9753f8c43462268624
[ "MIT" ]
1
2020-07-01T16:44:21.000Z
2020-07-01T16:44:21.000Z
import numpy import rasterio import gdal print('all modules imported') # path to the folder with the ndvi rasters base_path = "/Users/hk/Downloads/gaga/" # shapefile with forest mask forest_mask = base_path + "waldmaske_wgs84.shp" # initialize the necessary rasters for the ndvi calculation. ndvi_2017 = rasterio.open...
41.745455
120
0.726916
339
2,296
4.731563
0.351032
0.069825
0.037406
0.049875
0.354738
0.308603
0.218204
0.143392
0.143392
0.143392
0
0.058547
0.166812
2,296
54
121
42.518519
0.779927
0.275261
0
0
0
0
0.153613
0.04068
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.28125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
0869fc3b1af3273cc468fc0da2d162910f894bff
3,610
py
Python
studio/model.py
NunoEdgarGFlowHub/studio
42b221892a81535842ff25cbbcc434d6422a19e5
[ "Apache-2.0" ]
null
null
null
studio/model.py
NunoEdgarGFlowHub/studio
42b221892a81535842ff25cbbcc434d6422a19e5
[ "Apache-2.0" ]
null
null
null
studio/model.py
NunoEdgarGFlowHub/studio
42b221892a81535842ff25cbbcc434d6422a19e5
[ "Apache-2.0" ]
null
null
null
"""Data providers.""" import os try: # try-except statement needed because # pip module is not available in google app engine import pip except ImportError: pip = None import yaml import six from .artifact_store import get_artifact_store from .http_provider import HTTPProvider from .firebase_provider...
28.88
77
0.591967
396
3,610
5.217172
0.277778
0.058083
0.029042
0.046467
0.188771
0.135528
0.135528
0.135528
0.093901
0.061955
0
0.005645
0.313019
3,610
124
78
29.112903
0.827419
0.027978
0
0.145833
0
0
0.082524
0.006568
0
0
0
0
0.010417
1
0.041667
false
0
0.114583
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
086b6939a15a14e2ba2c7a9bf78818444b385782
7,310
py
Python
extendPlugins/minecraft.py
f88af65a/XyzB0ts
21a557288877b24f337f16002d8bb72b155f2551
[ "MIT" ]
4
2021-10-17T11:54:07.000Z
2022-03-18T13:10:11.000Z
extendPlugins/minecraft.py
f88af65a/XyzB0ts
21a557288877b24f337f16002d8bb72b155f2551
[ "MIT" ]
null
null
null
extendPlugins/minecraft.py
f88af65a/XyzB0ts
21a557288877b24f337f16002d8bb72b155f2551
[ "MIT" ]
1
2021-10-16T09:51:25.000Z
2021-10-16T09:51:25.000Z
import asyncio import json import socket import time from botsdk.util.BotPlugin import BotPlugin from botsdk.util.Error import printTraceBack def getMcRequestData(ip, port): data = (b"\x00\xff\xff\xff\xff\x0f" + bytes([len(ip.encode("utf8"))]) + ip.encode("utf8") + int.to_byte...
36.733668
79
0.477291
687
7,310
5.056769
0.232897
0.072539
0.079447
0.046632
0.48129
0.467473
0.423719
0.415947
0.415947
0.39407
0
0.037037
0.409029
7,310
198
80
36.919192
0.76713
0.008071
0
0.466292
0
0
0.097742
0.027808
0
0
0
0
0
1
0.022472
false
0
0.033708
0.005618
0.134831
0.078652
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
086ccdd01316fbb3c32c9928ed64ba2001cd4f5d
2,583
py
Python
main.py
brpaz/ulauncher-dockerhub
22e646bda40328373a4d90fa0aece2cac0187a42
[ "MIT" ]
3
2020-09-04T07:56:47.000Z
2022-01-05T13:19:25.000Z
main.py
brpaz/ulauncher-dockerhub
22e646bda40328373a4d90fa0aece2cac0187a42
[ "MIT" ]
null
null
null
main.py
brpaz/ulauncher-dockerhub
22e646bda40328373a4d90fa0aece2cac0187a42
[ "MIT" ]
null
null
null
""" Main Module """ import logging from ulauncher.api.client.Extension import Extension from ulauncher.api.client.EventListener import EventListener from ulauncher.api.shared.event import KeywordQueryEvent from ulauncher.api.shared.item.ExtensionResultItem import ExtensionResultItem from ulauncher.api.shared.action.R...
34.905405
85
0.622145
233
2,583
6.781116
0.381974
0.065823
0.081013
0.083544
0.182278
0.111392
0.086076
0.086076
0
0
0
0.001085
0.286101
2,583
73
86
35.383562
0.855206
0.080527
0
0.163265
0
0
0.068862
0
0
0
0
0
0
1
0.061224
false
0
0.204082
0
0.387755
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
0871266d4d435da659b3d90a1e0729b53c28c39c
2,448
py
Python
game/gamesrc/objects/character.py
ranka47/battle-of-hogwarts
e7b2265ebe5661249dd28e472c49b74c1bbcdf23
[ "BSD-3-Clause" ]
2
2019-02-24T00:20:47.000Z
2020-04-24T15:50:31.000Z
game/gamesrc/objects/character.py
ranka47/battle-of-hogwarts
e7b2265ebe5661249dd28e472c49b74c1bbcdf23
[ "BSD-3-Clause" ]
null
null
null
game/gamesrc/objects/character.py
ranka47/battle-of-hogwarts
e7b2265ebe5661249dd28e472c49b74c1bbcdf23
[ "BSD-3-Clause" ]
1
2019-01-05T15:51:37.000Z
2019-01-05T15:51:37.000Z
""" Template for Characters Copy this module up one level and name it as you like, then use it as a template to create your own Character class. To make new logins default to creating characters of your new type, change settings.BASE_CHARACTER_TYPECLASS to point to your new class, e.g. settings.BASE_CHARACTER_TYPEC...
38.25
79
0.663807
353
2,448
4.546742
0.504249
0.071028
0.03053
0.028037
0.071028
0.071028
0.071028
0.041122
0.041122
0
0
0.012878
0.270425
2,448
64
80
38.25
0.885778
0.607843
0
0.16
0
0
0.10694
0
0
0
0
0
0
1
0.08
false
0
0.12
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0873053669c5a9be614101baec79eda2eb276cb9
3,170
py
Python
lesson5/lesson5_task4.py
nekdfl/GB-python-developer
ca3f34bac2a92a930779f89357941bfa9634b3d4
[ "MIT" ]
null
null
null
lesson5/lesson5_task4.py
nekdfl/GB-python-developer
ca3f34bac2a92a930779f89357941bfa9634b3d4
[ "MIT" ]
null
null
null
lesson5/lesson5_task4.py
nekdfl/GB-python-developer
ca3f34bac2a92a930779f89357941bfa9634b3d4
[ "MIT" ]
null
null
null
""" Создать (не программно) текстовый файл со следующим содержимым: One — 1 Two — 2 Three — 3 Four — 4 Необходимо написать программу, открывающую файл на чтение и считывающую построчно данные. При этом английские числительные должны заменяться на русские. Новый блок строк должен записываться в новый текстовый файл. ""...
26.864407
111
0.582334
412
3,170
4.351942
0.34466
0.023424
0.029002
0.020078
0.147239
0.147239
0.131623
0.092582
0.092582
0.092582
0
0.014641
0.288959
3,170
117
112
27.094017
0.779059
0.131861
0
0.207792
0
0
0.173421
0.018985
0
0
0
0
0
1
0.077922
false
0.025974
0
0
0.116883
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0876136eb46ef1d30f09dbd0eff572dd1e4a0144
28,812
py
Python
generator.py
jimstorch/DGGen
cdecbc4bfa491a634aac370de05b21bb6f6cf8e1
[ "Apache-2.0" ]
19
2016-12-04T12:43:43.000Z
2022-01-25T01:00:24.000Z
generator.py
jimstorch/DGGen
cdecbc4bfa491a634aac370de05b21bb6f6cf8e1
[ "Apache-2.0" ]
9
2017-01-04T16:33:00.000Z
2021-11-16T06:02:16.000Z
generator.py
jimstorch/DGGen
cdecbc4bfa491a634aac370de05b21bb6f6cf8e1
[ "Apache-2.0" ]
7
2016-12-04T12:43:47.000Z
2022-02-04T13:10:58.000Z
#!/usr/bin/env python3 import argparse import csv import datetime import json import logging import os import sys import warnings from collections import defaultdict from copy import copy from dataclasses import dataclass from itertools import islice, cycle, chain from random import randint, shuffle, choice, sample fro...
34.797101
103
0.530508
3,317
28,812
4.509798
0.208321
0.011699
0.009559
0.00722
0.128217
0.078548
0.061167
0.051006
0.036099
0.031018
0
0.097958
0.313342
28,812
827
104
34.839178
0.656945
0.025198
0
0.050754
0
0.002743
0.20271
0.021715
0
0
0
0
0
1
0.037037
false
0
0.024691
0.005487
0.096022
0.002743
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
087670710e46b9499b04f22d8a01fa0767bf4b47
9,093
py
Python
tests/test_remote.py
bcyran/philipstv
6037724d5fab0b72265c2de2c0441a64f6e00c00
[ "MIT" ]
null
null
null
tests/test_remote.py
bcyran/philipstv
6037724d5fab0b72265c2de2c0441a64f6e00c00
[ "MIT" ]
null
null
null
tests/test_remote.py
bcyran/philipstv
6037724d5fab0b72265c2de2c0441a64f6e00c00
[ "MIT" ]
null
null
null
from typing import Union from unittest.mock import Mock, create_autospec import pytest from pytest import MonkeyPatch from philipstv import PhilipsTVAPI, PhilipsTVPairer, PhilipsTVRemote, PhilipsTVRemoteError from philipstv.model import ( AllChannels, AmbilightColor, AmbilightColors, AmbilightLayer, ...
29.144231
94
0.698119
1,083
9,093
5.598338
0.174515
0.073891
0.036286
0.03711
0.505195
0.369949
0.280719
0.241959
0.179119
0.12535
0
0.015448
0.195535
9,093
311
95
29.237942
0.813397
0.00132
0
0.25431
0
0
0.066637
0.035136
0
0
0
0
0.107759
1
0.094828
false
0
0.025862
0.008621
0.12931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
0879ba08e89fa5f242f50ddb01acf847e7896d29
9,612
py
Python
a2t/src/test_runner.py
syeda-khurrath/fabric8-analytics-common
421f7e27869c5695ed73b51e6422e097aba00108
[ "Apache-2.0" ]
null
null
null
a2t/src/test_runner.py
syeda-khurrath/fabric8-analytics-common
421f7e27869c5695ed73b51e6422e097aba00108
[ "Apache-2.0" ]
4
2019-05-20T08:27:47.000Z
2019-05-20T08:29:57.000Z
a2t/src/test_runner.py
codeready-analytics/fabric8-analytics-common
a763c5534d601f2f40a0f02c02914c49ea23669d
[ "Apache-2.0" ]
1
2020-10-05T21:12:44.000Z
2020-10-05T21:12:44.000Z
"""Implementation of benchmarks. Copyright (c) 2019 Red Hat Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program...
37.546875
99
0.634415
1,209
9,612
4.837055
0.224152
0.029925
0.037791
0.04617
0.350205
0.233755
0.197503
0.161936
0.15236
0.112175
0
0.011998
0.24563
9,612
255
100
37.694118
0.794511
0.168435
0
0.168539
0
0
0.212343
0.046668
0
0
0
0.003922
0
1
0.061798
false
0
0.050562
0
0.123596
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
087e86827c6cc73f03d6554fcf8f36b2777a11b4
1,221
py
Python
win/python/CAO/calcClient.py
kioto/ORiN2Sample
a7a9007b696fdd3ab29f1ec5cededc59b232fae2
[ "MIT" ]
null
null
null
win/python/CAO/calcClient.py
kioto/ORiN2Sample
a7a9007b696fdd3ab29f1ec5cededc59b232fae2
[ "MIT" ]
null
null
null
win/python/CAO/calcClient.py
kioto/ORiN2Sample
a7a9007b696fdd3ab29f1ec5cededc59b232fae2
[ "MIT" ]
null
null
null
import win32com.client import time class CalcClient(object): def __init__(self): # CAOエンジンの作成 self._eng = win32com.client.Dispatch('CAO.CaoEngine') self._ws = self._eng.Workspaces(0) self._ctrl = self._ws.AddController('bb1', 'CaoProv.Blackboard') # 変数の追加 ...
29.780488
73
0.564292
150
1,221
4.293333
0.36
0.108696
0.147516
0.055901
0
0
0
0
0
0
0
0.052817
0.302211
1,221
41
74
29.780488
0.703052
0.027027
0
0
0
0
0.091783
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.166667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
08804de9d3324b167c6447b69cc226552d4b7bbe
282
py
Python
Mundo-1/exercicio-05.py
FRafaelPA/Praticando-Python
d8a46beceeae2ac20acf4c63f86a32cba537c896
[ "MIT" ]
null
null
null
Mundo-1/exercicio-05.py
FRafaelPA/Praticando-Python
d8a46beceeae2ac20acf4c63f86a32cba537c896
[ "MIT" ]
null
null
null
Mundo-1/exercicio-05.py
FRafaelPA/Praticando-Python
d8a46beceeae2ac20acf4c63f86a32cba537c896
[ "MIT" ]
null
null
null
''' Faça um programa que leia um número inteiro e mostre na tela o seu sucessor e seu antecessor. ''' n = int(input('Entre com um valor: ')) antecessor = n - 1 sucessor = n + 1 msg = 'o antecessor do número {} é {} e seu sucessor é {}'.format(n, antecessor, sucessor) print(msg)
23.5
93
0.673759
47
282
4.042553
0.574468
0.115789
0
0
0
0
0
0
0
0
0
0.008889
0.202128
282
12
94
23.5
0.835556
0.329787
0
0
0
0
0.38674
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
0886c3adb37d4bb2d284b34954bef308daf23bd3
508
py
Python
001-Python-basico/008-desafio-pratico.py
clebertonf/Python-course
a57f405cbd27f96e0cb61128df31e9249c79a962
[ "MIT" ]
null
null
null
001-Python-basico/008-desafio-pratico.py
clebertonf/Python-course
a57f405cbd27f96e0cb61128df31e9249c79a962
[ "MIT" ]
null
null
null
001-Python-basico/008-desafio-pratico.py
clebertonf/Python-course
a57f405cbd27f96e0cb61128df31e9249c79a962
[ "MIT" ]
null
null
null
from datetime import date year_current_date = date.today().year def get_info(name, age, height, weight): year_birth = year_current_date - age imc = round(weight / (height ** 2), 2) print(f"{name} tem {age} anos, {height} de altura e pesa {weight} KG.") print(f"O IMC do {name} é: {imc}") print(f"{...
28.222222
83
0.687008
80
508
4.2625
0.6125
0.052786
0.087977
0
0
0
0
0
0
0
0
0.021739
0.185039
508
17
84
29.882353
0.801932
0.222441
0
0
0
0.111111
0.313776
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.222222
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
08873554c1a8d8174ca6425485bfe2a0d0880e6a
2,306
py
Python
tests/components/speedtestdotnet/test_init.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
tests/components/speedtestdotnet/test_init.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
tests/components/speedtestdotnet/test_init.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""Tests for SpeedTest integration.""" from unittest.mock import patch import speedtest from openpeerpower import config_entries from openpeerpower.components import speedtestdotnet from openpeerpower.setup import async_setup_component from tests.common import MockConfigEntry async def test_setup_with_config(opp):...
28.825
82
0.717259
268
2,306
5.958955
0.276119
0.073262
0.030056
0.067627
0.365686
0.349405
0.349405
0.319975
0.319975
0.319975
0
0.004849
0.195143
2,306
79
83
29.189873
0.855603
0.013877
0
0.320755
0
0
0.077184
0.03301
0
0
0
0
0.132075
1
0
false
0
0.113208
0
0.113208
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
0888b580bb9eb1968da656fe5efb329d6602a748
616
py
Python
case/xpath.py
xierensong/learnPython
33f9891d8a8ed39772ff9bcbeb1e5cff6f3b5455
[ "MIT" ]
null
null
null
case/xpath.py
xierensong/learnPython
33f9891d8a8ed39772ff9bcbeb1e5cff6f3b5455
[ "MIT" ]
null
null
null
case/xpath.py
xierensong/learnPython
33f9891d8a8ed39772ff9bcbeb1e5cff6f3b5455
[ "MIT" ]
1
2018-10-11T08:20:44.000Z
2018-10-11T08:20:44.000Z
import requests from lxml import etree if __name__ == '__main__': headers = {"User-Agent":'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36'} url = 'https://www.apache.org/dist/ant/' sourceHTML = requests.get(url, headers = headers) selec...
41.066667
144
0.63474
89
616
4.213483
0.640449
0.08
0
0
0
0
0
0
0
0
0
0.058943
0.201299
616
15
145
41.066667
0.703252
0
0
0
0
0.076923
0.349026
0.045455
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
088ddea79b72540b919336ee600c90b0505ded86
5,132
py
Python
jelm/tests/unit/test_jelm_class.py
endremborza/jelm
6916bbd4ceb909ad3350c56d3a149bdb97671489
[ "MIT" ]
null
null
null
jelm/tests/unit/test_jelm_class.py
endremborza/jelm
6916bbd4ceb909ad3350c56d3a149bdb97671489
[ "MIT" ]
null
null
null
jelm/tests/unit/test_jelm_class.py
endremborza/jelm
6916bbd4ceb909ad3350c56d3a149bdb97671489
[ "MIT" ]
null
null
null
import pytest from jelm import Jelm, Node, Edge from jelm.tests.network_case_set_class import NetwokCaseTemplate def test_eq(jelm_pair_case: NetwokCaseTemplate): jelm_pair_case.evaluate_fun(non_altering_function=lambda x: x) assert not (10 == Jelm()) assert not ("fing" == Jelm()) def test_jelm_repr(...
25.034146
77
0.639517
726
5,132
4.242424
0.140496
0.031169
0.054545
0.068182
0.647078
0.516558
0.502273
0.356494
0.271429
0.237662
0
0.016153
0.227981
5,132
204
78
25.156863
0.761232
0
0
0.223141
0
0
0.055144
0
0
0
0
0
0.305785
1
0.181818
false
0
0.024793
0
0.256198
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
088f0e150b58a95dbcc3bacf169c6bdc57e4eedc
6,582
py
Python
trajectory_prediction/evaluation.py
libai2019/dataset-api
2f793821864f32bd210c17060a70682488bb74e0
[ "Apache-2.0" ]
385
2018-07-02T22:21:25.000Z
2022-03-28T13:12:47.000Z
trajectory_prediction/evaluation.py
libai2019/dataset-api
2f793821864f32bd210c17060a70682488bb74e0
[ "Apache-2.0" ]
102
2018-08-01T10:40:40.000Z
2022-03-16T10:32:44.000Z
trajectory_prediction/evaluation.py
libai2019/dataset-api
2f793821864f32bd210c17060a70682488bb74e0
[ "Apache-2.0" ]
98
2018-07-12T18:36:42.000Z
2022-03-20T04:38:03.000Z
''' Evaluation code for trajectory prediction. We record the objects in the last frame of every sequence in test dataset as considered objects, which is stored in considered_objects.txt. We compare the error between your predicted locations in the next 3s(six positions) and the ground truth for these considered object...
36.364641
139
0.628836
827
6,582
4.758162
0.2237
0.066074
0.034562
0.027446
0.282084
0.209911
0.191105
0.191105
0.153748
0.038628
0
0.012553
0.285931
6,582
180
140
36.566667
0.824681
0.17244
0
0.147826
0
0
0.059095
0.020499
0
0
0
0
0
1
0.043478
false
0
0.026087
0.008696
0.104348
0.052174
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
0891695cf058c07ea805662895cf40325fd7ce37
2,561
py
Python
shellfoundry/commands/install_command.py
p-sherratt/shellfoundry
d1f35a31123b9e701c801345fb633b6fda5420b7
[ "Apache-2.0" ]
null
null
null
shellfoundry/commands/install_command.py
p-sherratt/shellfoundry
d1f35a31123b9e701c801345fb633b6fda5420b7
[ "Apache-2.0" ]
1
2021-03-25T23:21:02.000Z
2021-03-25T23:21:02.000Z
shellfoundry/commands/install_command.py
p-sherratt/shellfoundry
d1f35a31123b9e701c801345fb633b6fda5420b7
[ "Apache-2.0" ]
null
null
null
# !/usr/bin/python # -*- coding: utf-8 -*- import click import os try: # Python 2.x version from urllib2 import HTTPError, URLError except: # Python 3.x version from urllib.error import HTTPError, URLError from shellfoundry.exceptions import FatalError from shellfoundry.utilities.config_reader import ...
43.40678
119
0.705193
289
2,561
6.058824
0.363322
0.068532
0.071388
0.051399
0.042262
0
0
0
0
0
0
0.004539
0.225693
2,561
58
120
44.155172
0.878467
0.029676
0
0.12766
0
0
0.157661
0
0
0
0
0
0
1
0.06383
false
0
0.234043
0
0.319149
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
0896e29401ea1989cb26ef01107f5729035c11a7
4,405
py
Python
app/__main__.py
pablohawz/tfg-Scan-Paint-clone
056cd50d9e4274620cf085a41ed9d326e16dd47b
[ "MIT" ]
null
null
null
app/__main__.py
pablohawz/tfg-Scan-Paint-clone
056cd50d9e4274620cf085a41ed9d326e16dd47b
[ "MIT" ]
null
null
null
app/__main__.py
pablohawz/tfg-Scan-Paint-clone
056cd50d9e4274620cf085a41ed9d326e16dd47b
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 from app.package.views.Calibrate_view import CalibrateView from app.package.controllers.Calibrate_controller import CalibrateController from app.package.models.Calibrate_model import CalibrateModel import sys import matplotlib from PySide2.QtWidgets import QApplica...
33.120301
76
0.711691
481
4,405
6.297297
0.247401
0.039947
0.032354
0.018818
0.081215
0.029713
0.029713
0.029713
0.029713
0.029713
0
0.001132
0.197503
4,405
132
77
33.371212
0.855728
0.119864
0
0
0
0
0.048187
0
0
0
0
0
0
1
0.061728
false
0
0.222222
0
0.308642
0.024691
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
089a04fda175104b7a74e5689381760d2e0c8310
1,513
py
Python
PyEEA/analysis/SimulationAnalysisEngine.py
ThomasJFR/PyEEA
7927ee5ff1de8d3cf9e9654899ea4c2c0284519c
[ "MIT" ]
1
2020-06-15T03:16:06.000Z
2020-06-15T03:16:06.000Z
PyEEA/analysis/SimulationAnalysisEngine.py
ThomasJFR/PyEEA
7927ee5ff1de8d3cf9e9654899ea4c2c0284519c
[ "MIT" ]
1
2020-06-19T04:56:21.000Z
2020-06-19T04:56:21.000Z
PyEEA/analysis/SimulationAnalysisEngine.py
ThomasJFR/PyEEA
7927ee5ff1de8d3cf9e9654899ea4c2c0284519c
[ "MIT" ]
null
null
null
from numpy.random import standard_normal from numbers import Number def simulation_analysis(project, sim_dict, iterations=250, valuator=None): """ Purpose: Analyses the effects of uncertainty of a system by performing a Monte Carlo simulation. Args: project: An instance of Project to pe...
35.186047
110
0.61996
197
1,513
4.664975
0.431472
0.060936
0.043526
0.023939
0.032644
0
0
0
0
0
0
0.002921
0.321216
1,513
42
111
36.02381
0.891918
0.364177
0
0.086957
0
0
0.04126
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0.043478
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
08a37f1f4c2faa26bde495db95f37f4816d7caf0
12,652
py
Python
dh/network/__init__.py
dhaase-de/dh-python-dh
40b04407e5f67ec261f559263718ec2b2588dabb
[ "MIT" ]
null
null
null
dh/network/__init__.py
dhaase-de/dh-python-dh
40b04407e5f67ec261f559263718ec2b2588dabb
[ "MIT" ]
null
null
null
dh/network/__init__.py
dhaase-de/dh-python-dh
40b04407e5f67ec261f559263718ec2b2588dabb
[ "MIT" ]
null
null
null
""" Tools for network communication. """ import abc import io import json import socket import struct import sys import time import zlib import dh.ejson import dh.utils # NumPy is only needed for some parts and is optional try: import numpy as np except ImportError as e: _NUMPY_ERROR = e else: _NUMPY_ERR...
30.858537
163
0.641084
1,467
12,652
5.462849
0.207226
0.041178
0.010981
0.017969
0.518343
0.481283
0.44597
0.441228
0.441228
0.426504
0
0.007221
0.255691
12,652
409
164
30.933985
0.843793
0.373064
0
0.437158
0
0
0.028552
0
0
0
0
0
0
1
0.169399
false
0.032787
0.076503
0.005464
0.382514
0.054645
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
08a7afeb8a1abc10ec91968f8b8eddea6a7e071a
16,361
py
Python
qtable/engine.py
ihgazni2/qtable
269bb1052d7c7aeeae4d0b1024746fae38870c40
[ "MIT" ]
null
null
null
qtable/engine.py
ihgazni2/qtable
269bb1052d7c7aeeae4d0b1024746fae38870c40
[ "MIT" ]
null
null
null
qtable/engine.py
ihgazni2/qtable
269bb1052d7c7aeeae4d0b1024746fae38870c40
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import elist.elist as elel import edict.edict as eded import tlist.tlist as tltl import copy __all__ = [ '_append_col', '_append_cols', '_append_row', '_append_rows', '_cn2clocs', '_col', '_cols', '_columns_map', '_crop', '_get_clocs', '_get_rlocs', '_getitem', '_ind...
27.40536
110
0.603753
2,150
16,361
4.351628
0.077209
0.038478
0.020522
0.025652
0.670051
0.594912
0.540188
0.521377
0.492946
0.448055
0
0.015329
0.242406
16,361
596
111
27.451342
0.739492
0.032883
0
0.591954
0
0
0.049693
0
0
0
0
0
0
1
0.088123
false
0.030651
0.011494
0.007663
0.099617
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
08ab2c42e46cc085323887951f27802509bc2c01
1,131
py
Python
pythonDesafios/desafio058.py
mateusdev7/desafios-python
6160ddc84548c7af7f5775f9acabe58238f83008
[ "MIT" ]
null
null
null
pythonDesafios/desafio058.py
mateusdev7/desafios-python
6160ddc84548c7af7f5775f9acabe58238f83008
[ "MIT" ]
null
null
null
pythonDesafios/desafio058.py
mateusdev7/desafios-python
6160ddc84548c7af7f5775f9acabe58238f83008
[ "MIT" ]
null
null
null
from random import randint from time import sleep opcao = 123 cont = 0 while opcao != 0: print('-=-' * 20) print('Vou pensar em um número entre 0 e 10, quer tentar adivinhar?') print('-=-' * 20) print('\n[ 1 ] Sim [ 0 ] Não') opcao = int(input('Escolha uma das opções acima\n>')) if opcao == 1:...
35.34375
78
0.535809
137
1,131
4.423358
0.50365
0.039604
0.036304
0.046205
0.056106
0.056106
0
0
0
0
0
0.042272
0.330681
1,131
32
79
35.34375
0.758256
0.035367
0
0.2
0
0
0.338532
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
08ab8c8ec2777c51be6f0455ab77ed9f159c8995
1,896
py
Python
FeatureEngineeringPy_DataScience/demo153_rarecategories.py
mahnooranjum/Programming_DataScience
f7a4215d4615b3f8460c3a1944a585628cf6930d
[ "MIT" ]
null
null
null
FeatureEngineeringPy_DataScience/demo153_rarecategories.py
mahnooranjum/Programming_DataScience
f7a4215d4615b3f8460c3a1944a585628cf6930d
[ "MIT" ]
null
null
null
FeatureEngineeringPy_DataScience/demo153_rarecategories.py
mahnooranjum/Programming_DataScience
f7a4215d4615b3f8460c3a1944a585628cf6930d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Demo153_RareCategories.ipynb ## Rare Categories - Labels - The number of labels in the dataset are different - __high cardinality__ refers to uniqueness of data values - The lower the cardinality, the more duplicated elements in a column - A column with the lowest possible cardinali...
26.704225
88
0.728903
289
1,896
4.650519
0.432526
0.060268
0.09375
0.068452
0.220982
0.18006
0.18006
0.153274
0.153274
0.116071
0
0.004884
0.136076
1,896
71
89
26.704225
0.815629
0.341245
0
0.310345
0
0
0.273927
0.031353
0
0
0
0
0
1
0
false
0
0.172414
0
0.172414
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
08af904e7f82a923beed7c2fa65793eb9bf02793
878
py
Python
popbl_servicesapp/flask_app/order/application/api_client.py
xetxezarreta/master-popbl1
253880b9ba358f63f666893cdbbffe7391fcd096
[ "MIT" ]
null
null
null
popbl_servicesapp/flask_app/order/application/api_client.py
xetxezarreta/master-popbl1
253880b9ba358f63f666893cdbbffe7391fcd096
[ "MIT" ]
1
2021-06-02T00:57:11.000Z
2021-06-02T00:57:11.000Z
popbl_servicesapp/flask_app/order/application/api_client.py
xetxezarreta/master-popbl1
253880b9ba358f63f666893cdbbffe7391fcd096
[ "MIT" ]
null
null
null
import requests import json from os import environ from .models import Order, Piece from .BLConsul import BLConsul GATEWAY_PORT = environ.get("HAPROXY_PORT") GATEWAY_ADDRESS = environ.get("HAPROXY_IP") MACHINE_SERVICE = "machine" PAYMENT_SERVICE = "payment" DELIVERY_SERVICE = "delivery" AUTH_SERVICE = "auth" CA_CERT ...
29.266667
100
0.693622
109
878
5.385321
0.46789
0.068143
0.057922
0
0
0
0
0
0
0
0
0.005556
0.179954
878
29
101
30.275862
0.809722
0
0
0
0
0
0.146925
0
0
0
0
0
0
1
0.041667
false
0
0.208333
0
0.333333
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
08b08e4c091db6970d8bd9b3e8f858f92dfeb9ac
2,569
py
Python
polya/modules/congruence_closure_module.py
holtzermann17/polya
6d611bf47185249a96f4cf7ee9b3884bc70a15ac
[ "Apache-2.0" ]
24
2015-01-01T18:21:40.000Z
2021-08-29T01:56:14.000Z
polya/modules/congruence_closure_module.py
holtzermann17/polya
6d611bf47185249a96f4cf7ee9b3884bc70a15ac
[ "Apache-2.0" ]
1
2018-09-06T17:53:13.000Z
2018-09-07T13:57:39.000Z
polya/modules/congruence_closure_module.py
holtzermann17/polya
6d611bf47185249a96f4cf7ee9b3884bc70a15ac
[ "Apache-2.0" ]
4
2017-02-08T15:04:09.000Z
2021-05-02T15:13:05.000Z
#################################################################################################### # # congruence_closure_module.py # # Authors: # Jeremy Avigad # Rob Lewis # # This module maintains a union-find structure for terms in Blackboard, which is currently only used # for congruence closure. It should perhap...
36.7
100
0.54963
323
2,569
4.28483
0.386997
0.03974
0.026012
0.028902
0.021676
0
0
0
0
0
0
0.015899
0.289996
2,569
70
101
36.7
0.742873
0.256131
0
0.054054
0
0
0.015281
0
0
0
0
0
0.027027
1
0.108108
false
0.027027
0.135135
0.027027
0.378378
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
08b3ea49c776eba1ca9a6e036f7a93721ad3e46b
3,280
py
Python
build.py
Jackcava/mappingToFHIR
3189b55121a50ee1c4734227cde6da58ed6cb576
[ "MIT" ]
null
null
null
build.py
Jackcava/mappingToFHIR
3189b55121a50ee1c4734227cde6da58ed6cb576
[ "MIT" ]
null
null
null
build.py
Jackcava/mappingToFHIR
3189b55121a50ee1c4734227cde6da58ed6cb576
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import csv def buildPat(row,key): if key == "extension.valueAddress.city": return row.A01_DESC_LUOGO_NASCITA elif key == "identifier.value": return row.A01_ID_PERSONA elif key == "name.family": return row.A01_COGNOME elif key == "name.given...
34.893617
78
0.576524
383
3,280
4.785901
0.245431
0.06874
0.065466
0.061102
0.608838
0.518276
0.508456
0.47245
0.47245
0.454992
0
0.034273
0.297256
3,280
93
79
35.268817
0.760954
0
0
0.505495
0
0
0.197866
0.080793
0
0
0
0
0
1
0.021978
false
0
0.032967
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
08b53ae263a1ae583483ba9e1d84efca2906ad4a
2,109
py
Python
sources-filter-list.py
kerberizer/wikimedia-scripts
18b78d5cc0042d5efcb355a65f4309fb4ae97eaf
[ "CC0-1.0" ]
null
null
null
sources-filter-list.py
kerberizer/wikimedia-scripts
18b78d5cc0042d5efcb355a65f4309fb4ae97eaf
[ "CC0-1.0" ]
null
null
null
sources-filter-list.py
kerberizer/wikimedia-scripts
18b78d5cc0042d5efcb355a65f4309fb4ae97eaf
[ "CC0-1.0" ]
1
2016-07-31T07:26:33.000Z
2016-07-31T07:26:33.000Z
#!/usr/bin/env python3 import locale import sys from datetime import datetime as dt import pywikibot as pwb def main(argv): dump_only = False if len(argv) > 1: if argv.pop() == '--dump': dump_only = True else: print('Error: Unrecognized option.', file=sys.stderr) ...
31.477612
98
0.543385
266
2,109
4.12406
0.406015
0.087511
0.065634
0.038286
0.208751
0.177758
0.177758
0
0
0
0
0.016678
0.289237
2,109
66
99
31.954545
0.715143
0.027027
0
0.075472
0
0
0.157073
0.012195
0
0
0
0
0
1
0.018868
false
0
0.075472
0
0.09434
0.037736
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
08c039eccfb3500006401f61d37873f932777364
1,120
py
Python
douyin/hot/trend.py
miaotiaotech/DouYin
e996ad99ce27e0d13f2856c497fd4b4f05f95b56
[ "MIT" ]
657
2018-10-24T16:58:04.000Z
2022-03-15T03:58:04.000Z
douyin/hot/trend.py
1997lw/DouYin
5859f4db5258ad10926fddaa2b4074c85581d419
[ "MIT" ]
15
2018-10-30T09:40:11.000Z
2020-08-09T13:58:31.000Z
douyin/hot/trend.py
1997lw/DouYin
5859f4db5258ad10926fddaa2b4074c85581d419
[ "MIT" ]
249
2018-10-25T07:12:14.000Z
2022-02-21T07:49:58.000Z
from douyin.utils import fetch from douyin.config import hot_trend_url, common_headers from douyin.utils.tranform import data_to_music, data_to_topic from douyin.structures.hot import HotTrend from douyin.utils.common import parse_datetime # define trend query params query = { 'version_code': '2.9.1', 'count'...
32
99
0.633036
142
1,120
4.838028
0.429577
0.07278
0.065502
0.037846
0
0
0
0
0
0
0
0.009335
0.234821
1,120
34
100
32.941176
0.792299
0.065179
0
0
0
0
0.093567
0
0
0
0
0
0
1
0.041667
false
0
0.208333
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
08c1a85992031481a6829f933c45c2206c709fa4
288
py
Python
hashing/hashing.py
subhamsagar524/Learn-Blockchain
316f30ed9d43f6ab806ca87b9b83c0237ef69828
[ "MIT" ]
null
null
null
hashing/hashing.py
subhamsagar524/Learn-Blockchain
316f30ed9d43f6ab806ca87b9b83c0237ef69828
[ "MIT" ]
null
null
null
hashing/hashing.py
subhamsagar524/Learn-Blockchain
316f30ed9d43f6ab806ca87b9b83c0237ef69828
[ "MIT" ]
1
2020-03-13T06:32:46.000Z
2020-03-13T06:32:46.000Z
# Import the hashing Library import hashlib # Get the string as input word = input("Enter the word for Hashing: ") # Get the hashing hashed_code = hashlib.sha256(word.encode()) final = hashed_code.hexdigest() # Print the result print("Hashed with 256 bit: ") print(final)
20.571429
45
0.704861
41
288
4.902439
0.560976
0.099502
0
0
0
0
0
0
0
0
0
0.025974
0.197917
288
13
46
22.153846
0.844156
0.288194
0
0
0
0
0.262032
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0