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
263290a43a7fd76dbddf7ceb014df04f20ba0371
7,249
py
Python
micropy/project/modules/packages.py
MathijsNL/micropy-cli
2dec0ca3045a22f6552dc3813bedaf552d4bad2c
[ "MIT" ]
null
null
null
micropy/project/modules/packages.py
MathijsNL/micropy-cli
2dec0ca3045a22f6552dc3813bedaf552d4bad2c
[ "MIT" ]
null
null
null
micropy/project/modules/packages.py
MathijsNL/micropy-cli
2dec0ca3045a22f6552dc3813bedaf552d4bad2c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Project Packages Module.""" import shutil from pathlib import Path from typing import Any, Union from boltons import fileutils from micropy import utils from micropy.packages import (LocalDependencySource, PackageDependencySource, create_dependency_source) fr...
32.95
100
0.572769
850
7,249
4.783529
0.214118
0.029513
0.013527
0.011805
0.201181
0.14609
0.099361
0.071323
0.056075
0.056075
0
0.000795
0.305973
7,249
219
101
33.100457
0.807394
0.158229
0
0.103704
0
0
0.086754
0.007934
0
0
0
0
0
1
0.118519
false
0
0.051852
0.007407
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
263cf4e525b99a26c7f1cf3f1ee37f07078de9e0
7,168
py
Python
src/covid19/dash_forecast.py
marhoy/covid19
b53f7b812edea46bca6b27ac106d2363ee5d44d5
[ "MIT" ]
null
null
null
src/covid19/dash_forecast.py
marhoy/covid19
b53f7b812edea46bca6b27ac106d2363ee5d44d5
[ "MIT" ]
null
null
null
src/covid19/dash_forecast.py
marhoy/covid19
b53f7b812edea46bca6b27ac106d2363ee5d44d5
[ "MIT" ]
null
null
null
"""The dash-tab with forecast data.""" from typing import List import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html import plotly.graph_objects as go from dash.dependencies import Input, Output import covid19.forecast from covid19.data import DAY_ZERO_START f...
32
87
0.410435
636
7,168
4.534591
0.327044
0.014563
0.015603
0.020804
0.179958
0.161928
0.100208
0.100208
0.039528
0.024272
0
0.018066
0.498047
7,168
223
88
32.143498
0.783491
0.020229
0
0.297872
0
0
0.126414
0.019183
0
0
0
0
0
1
0.010638
false
0
0.047872
0
0.069149
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
263d7e9a9f0a66a08ad20dffde0a31855dd85fee
145
py
Python
1132.py
barroslipe/urionlinejudge
a20d8199d9a92b30ea394a6c949967d2fc51aa34
[ "MIT" ]
null
null
null
1132.py
barroslipe/urionlinejudge
a20d8199d9a92b30ea394a6c949967d2fc51aa34
[ "MIT" ]
null
null
null
1132.py
barroslipe/urionlinejudge
a20d8199d9a92b30ea394a6c949967d2fc51aa34
[ "MIT" ]
null
null
null
x = int(input()) y = int(input()) if x > y: x, y = y, x soma = 0 for i in range(x, y + 1): if i%13 != 0: soma += i print(soma)
12.083333
25
0.448276
30
145
2.166667
0.466667
0.092308
0
0
0
0
0
0
0
0
0
0.053191
0.351724
145
12
26
12.083333
0.638298
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
263e3167efd7fced0be59c8dcec4e3dcbfdbafc7
193
py
Python
CodeForces/579A. Raising Bacteria/Raising Bacteria.py
tameemalaa/Solved-Problems
9e8bc96eb60f200787f2682e974ec6509a7c1734
[ "MIT" ]
null
null
null
CodeForces/579A. Raising Bacteria/Raising Bacteria.py
tameemalaa/Solved-Problems
9e8bc96eb60f200787f2682e974ec6509a7c1734
[ "MIT" ]
null
null
null
CodeForces/579A. Raising Bacteria/Raising Bacteria.py
tameemalaa/Solved-Problems
9e8bc96eb60f200787f2682e974ec6509a7c1734
[ "MIT" ]
null
null
null
# Solution by : Tameem Alaa El-Deen Sayed n = int(input()) c= 0 while n >= 1 : if n % 2 == 0 : n = n /2 else: n = n -1 n = n / 2 c = c + 1 print (c)
16.083333
41
0.393782
34
193
2.235294
0.529412
0.078947
0.078947
0
0
0
0
0
0
0
0
0.07767
0.466321
193
12
42
16.083333
0.660194
0.202073
0
0.2
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
263ffe0fb0dfe081b932ef96364418b62b9cad91
1,520
py
Python
regression/other/pybindgen/classes/gen.py
ExternalRepositories/shroud
86c39d2324d947d28055f9024f52cc493eb0c813
[ "BSD-3-Clause" ]
73
2017-10-11T17:01:50.000Z
2022-01-01T21:42:12.000Z
regression/other/pybindgen/classes/gen.py
ExternalRepositories/shroud
86c39d2324d947d28055f9024f52cc493eb0c813
[ "BSD-3-Clause" ]
29
2018-03-21T19:34:29.000Z
2022-02-04T18:13:14.000Z
regression/other/pybindgen/classes/gen.py
ExternalRepositories/shroud
86c39d2324d947d28055f9024f52cc493eb0c813
[ "BSD-3-Clause" ]
8
2017-11-22T14:27:01.000Z
2022-03-30T08:49:03.000Z
# Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and # other Shroud Project Developers. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (BSD-3-Clause) # ######################################################################## """ Generate a module for classes using PyBi...
33.043478
97
0.623026
163
1,520
5.595092
0.564417
0.059211
0.037281
0
0
0
0
0
0
0
0
0.016247
0.190132
1,520
45
98
33.777778
0.724614
0.415789
0
0
0
0
0.161006
0
0
0
0
0
0
1
0.052632
false
0
0.157895
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
2641f16660f596ae7a11f3f894108dc509f1b570
12,597
py
Python
aliens4friends/models/tinfoilhat.py
noi-techpark/solda-aliens4friends
65f65f4e6775405e3098b2bac3f5903ff1c56795
[ "Apache-2.0" ]
null
null
null
aliens4friends/models/tinfoilhat.py
noi-techpark/solda-aliens4friends
65f65f4e6775405e3098b2bac3f5903ff1c56795
[ "Apache-2.0" ]
null
null
null
aliens4friends/models/tinfoilhat.py
noi-techpark/solda-aliens4friends
65f65f4e6775405e3098b2bac3f5903ff1c56795
[ "Apache-2.0" ]
null
null
null
# SPDX-FileCopyrightText: NOI Techpark <info@noi.bz.it> # # SPDX-License-Identifier: Apache-2.0 import logging from typing import List, Dict, TypeVar, Optional from copy import deepcopy from deepdiff import DeepDiff from .base import BaseModel, DictModel, ModelError from aliens4friends.commons.utils import sha1sum_...
30.28125
108
0.688656
1,666
12,597
5.080432
0.157263
0.033908
0.062027
0.028355
0.326441
0.303639
0.250236
0.221408
0.205813
0.183719
0
0.002467
0.195523
12,597
415
109
30.354217
0.832741
0.153132
0
0.426901
0
0
0.124351
0.042961
0
0
0
0.007229
0
1
0.052632
false
0
0.017544
0
0.140351
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2642eef0ddc241add30d3eac4bb4b4cb887bc80f
276
py
Python
teachers_sample_codes/spotkanie_3/01b_wheater_json.py
programujemy-python/programuj-w-zespole-test
865f96e5be6ab4e3a7f15b9e446a1c0cbae06472
[ "MIT" ]
2
2022-01-31T20:21:18.000Z
2022-02-22T10:54:41.000Z
teachers_materials/spotkanie_3/01b_wheater_json.py
abixadamj/Popojutrze-Progr-mujemy
d6f5a4de799a486024f799c4c392fdc1419654b8
[ "MIT" ]
null
null
null
teachers_materials/spotkanie_3/01b_wheater_json.py
abixadamj/Popojutrze-Progr-mujemy
d6f5a4de799a486024f799c4c392fdc1419654b8
[ "MIT" ]
1
2022-03-07T11:23:58.000Z
2022-03-07T11:23:58.000Z
# przykład wykorzystania biblioteki requests import requests params = { 'format': 'j1', } api_result = requests.get('https://wttr.in/Varsavia', params) api_response = api_result.json() for elem in api_response: print(f"Klucz: {elem} ma wartość {api_response[elem]}")
25.090909
61
0.724638
37
276
5.27027
0.648649
0.169231
0
0
0
0
0
0
0
0
0
0.004202
0.137681
276
10
62
27.6
0.815126
0.152174
0
0
0
0
0.331897
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
26445917b8f6b4bc76b5e11b529d19936fabc446
12,938
py
Python
dataPrepScripts/CreateTensor.py
strixy16/Clairvoyante
2bf60f9fc54d51518730d94cb05ffdf3a51f0176
[ "BSD-3-Clause" ]
171
2017-07-24T00:35:48.000Z
2022-03-24T08:28:59.000Z
dataPrepScripts/CreateTensor.py
strixy16/Clairvoyante
2bf60f9fc54d51518730d94cb05ffdf3a51f0176
[ "BSD-3-Clause" ]
45
2018-10-30T07:37:42.000Z
2021-12-30T07:53:24.000Z
dataPrepScripts/CreateTensor.py
strixy16/Clairvoyante
2bf60f9fc54d51518730d94cb05ffdf3a51f0176
[ "BSD-3-Clause" ]
27
2017-07-23T21:43:50.000Z
2021-02-27T01:07:29.000Z
import os import sys import argparse import os import re import shlex import subprocess import signal import gc import param is_pypy = '__pypy__' in sys.builtin_module_names def PypyGCCollect(signum, frame): gc.collect() signal.alarm(60) cigarRe = r"(\d+)([MIDNSHP=X])" base2num = dict(zip("ACGT", (0,1,2,3)))...
41.335463
185
0.552713
1,466
12,938
4.834243
0.186221
0.047975
0.041484
0.020742
0.453789
0.363624
0.308029
0.287569
0.226612
0.204318
0
0.025523
0.327717
12,938
312
186
41.467949
0.789262
0.025893
0
0.301961
0
0.011765
0.123541
0.002144
0
0
0
0
0
1
0.027451
false
0
0.039216
0
0.078431
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
26461c895574afc6d2e5c0139208bf8be78b66bf
2,405
py
Python
setup.py
ssjunnebo/MultiQC_NGI
1ca18747256324f1ddcb9ecd68159b2114718e71
[ "MIT" ]
3
2017-02-03T14:18:30.000Z
2019-10-24T14:57:57.000Z
setup.py
ssjunnebo/MultiQC_NGI
1ca18747256324f1ddcb9ecd68159b2114718e71
[ "MIT" ]
27
2015-10-16T16:20:10.000Z
2017-07-03T14:28:40.000Z
setup.py
ssjunnebo/MultiQC_NGI
1ca18747256324f1ddcb9ecd68159b2114718e71
[ "MIT" ]
8
2016-04-20T10:33:29.000Z
2021-03-25T09:01:58.000Z
#!/usr/bin/env python """ MultiQC_NGI is a plugin for MultiQC, providing additional tools which are specific to the National Genomics Infrastructure at the Science for Life Laboratory in Stockholm, Sweden. For more information about NGI, see http://www.scilifelab.se/platforms/ngi/ For more information about MultiQC, s...
34.855072
96
0.63368
251
2,405
5.888446
0.521912
0.11502
0.043978
0.054127
0.074425
0.043302
0.043302
0
0
0
0
0.00388
0.249896
2,405
68
97
35.367647
0.81541
0.140125
0
0.071429
0
0
0.576699
0.203398
0
0
0
0
0
1
0
false
0
0.017857
0
0.017857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
264fec7de161d7ec6768ac23aa7065cdd2a16bae
1,781
py
Python
newsplease/pipeline/extractor/extractors/beautifulsoup_extractor.py
JamilHossain/news-please
6c7fb001a24f0db80dd4f2cd7f3957a7fe284dcf
[ "Apache-2.0" ]
null
null
null
newsplease/pipeline/extractor/extractors/beautifulsoup_extractor.py
JamilHossain/news-please
6c7fb001a24f0db80dd4f2cd7f3957a7fe284dcf
[ "Apache-2.0" ]
null
null
null
newsplease/pipeline/extractor/extractors/beautifulsoup_extractor.py
JamilHossain/news-please
6c7fb001a24f0db80dd4f2cd7f3957a7fe284dcf
[ "Apache-2.0" ]
null
null
null
from copy import deepcopy from bs4 import BeautifulSoup from .abstract_extractor import AbstractExtractor from ..article_candidate import ArticleCandidate class ReadabilityExtractor(AbstractExtractor): """This class implements Readability as an article extractor. Readability is a subclass of Extractors and ...
32.381818
109
0.658057
194
1,781
5.886598
0.376289
0.154116
0.031524
0.017513
0.02627
0
0
0
0
0
0
0.001511
0.256597
1,781
54
110
32.981481
0.861027
0.20831
0
0
0
0
0.06085
0
0
0
0
0
0
1
0.060606
false
0
0.121212
0
0.242424
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2650e879784fe541700fd39b00cc82a607be51e1
2,546
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/12_features/numtrees_20/rule_16.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/12_features/numtrees_20/rule_16.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/12_features/numtrees_20/rule_16.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Passanger, obj[1]: Time, obj[2]: Coupon, obj[3]: Gender, obj[4]: Age, obj[5]: Education, obj[6]: Occupation, obj[7]: Bar, obj[8]: Coffeehouse, obj[9]: Restaurant20to50, obj[10]: Direction_same, obj[11]: Distance # {"feature": "Restaurant20to50", "instances": 51, "metric_value": 0.9526, ...
34.876712
243
0.558916
370
2,546
3.805405
0.151351
0.117188
0.102273
0.102273
0.460938
0.292614
0.290483
0.147017
0.066761
0.066761
0
0.09432
0.225452
2,546
72
244
35.361111
0.619675
0.499607
0
0.568966
0
0
0.104051
0
0
0
0
0
0
1
0.017241
false
0
0
0
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2653fcf693b549d95fda5d96dd6ca0e935afb6e0
1,414
py
Python
src/main.py
fortytw0/vizwiz
36563806d9bf13c8924577141b02bd2552aa48d6
[ "MIT" ]
null
null
null
src/main.py
fortytw0/vizwiz
36563806d9bf13c8924577141b02bd2552aa48d6
[ "MIT" ]
null
null
null
src/main.py
fortytw0/vizwiz
36563806d9bf13c8924577141b02bd2552aa48d6
[ "MIT" ]
null
null
null
import os import time from src.models.model1 import CBD from src.utils.train_utils import TrainGenerator from tensorflow.keras import losses, optimizers, callbacks train_data = TrainGenerator('train') val_data = TrainGenerator('val') epochs = 10 model_dir = 'models/' log_dir = 'logs/' cbd = CBD('models/', 'logs/'...
26.185185
98
0.710042
198
1,414
4.893939
0.353535
0.057792
0.055728
0.024768
0.06192
0.06192
0.06192
0
0
0
0
0.009121
0.1471
1,414
54
99
26.185185
0.794362
0.319661
0
0
0
0
0.125
0.032563
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.28
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
265421a849a89a636ad43bddadaa5357b6a066c0
1,142
py
Python
models/PSim_net.py
PoChunChen1012/synthesizing_human_like_sketches
ec2ba76cda3f658c21b5484bd478e0d4cee52fc6
[ "MIT" ]
46
2020-03-13T14:30:35.000Z
2021-12-19T11:55:31.000Z
models/PSim_net.py
PoChunChen1012/synthesizing_human_like_sketches
ec2ba76cda3f658c21b5484bd478e0d4cee52fc6
[ "MIT" ]
2
2020-07-17T07:48:35.000Z
2020-10-16T15:35:30.000Z
models/PSim_net.py
PoChunChen1012/synthesizing_human_like_sketches
ec2ba76cda3f658c21b5484bd478e0d4cee52fc6
[ "MIT" ]
2
2020-03-20T18:50:52.000Z
2021-12-06T04:03:01.000Z
import torch.nn as nn from models.PSim_alexnet import PSim_Alexnet import torch from utils import utils class PSimNet(nn.Module): """Pre-trained network with all channels equally weighted by default (cosine similarity)""" def __init__(self, device=torch.device("cuda:0")): super(PSimNet, self).__init_...
33.588235
100
0.627846
146
1,142
4.753425
0.513699
0.070605
0.048991
0
0
0
0
0
0
0
0
0.011891
0.263573
1,142
33
101
34.606061
0.813317
0.105079
0
0
0
0
0.051232
0.032512
0
0
0
0
0
1
0.08
false
0
0.16
0
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2658babc747f1ce1026574efd7275014f53e2fd0
2,219
py
Python
sustainableCityManagement/main_project/Bus_API/process_bus_delays.py
Josh-repository/Dashboard-CityManager-
6287881be9fb2c6274a755ce5d75ad355346468a
[ "RSA-MD" ]
null
null
null
sustainableCityManagement/main_project/Bus_API/process_bus_delays.py
Josh-repository/Dashboard-CityManager-
6287881be9fb2c6274a755ce5d75ad355346468a
[ "RSA-MD" ]
null
null
null
sustainableCityManagement/main_project/Bus_API/process_bus_delays.py
Josh-repository/Dashboard-CityManager-
6287881be9fb2c6274a755ce5d75ad355346468a
[ "RSA-MD" ]
1
2021-05-13T16:33:18.000Z
2021-05-13T16:33:18.000Z
import requests import json from ..Config.config_handler import read_config class ProcessBusDelays: def __init__(self): self.config_vals = read_config("Bus_API") # Get the live data of Buses(Arrival Time, Departure Time, Delay) from API and returns. def get_data_from_bus_api(self): ur...
42.673077
133
0.54484
238
2,219
4.785714
0.268908
0.084284
0.073749
0.044776
0.337138
0.272169
0.272169
0.272169
0.272169
0.272169
0
0.000705
0.360523
2,219
51
134
43.509804
0.801973
0.095539
0
0.4
0
0
0.142786
0.010484
0
0
0
0
0
1
0.066667
false
0
0.066667
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
265aad51cd825c5cd3fa7bde6bb29b6e88376717
648
py
Python
op_interface/xgemm.py
LukasSlouka/TF_XNN
152698a5da5ed6fff9ec4337e8dca4a1a396b458
[ "MIT" ]
3
2018-05-19T19:41:28.000Z
2019-03-04T12:40:32.000Z
op_interface/xgemm.py
LukasSlouka/TF_XNN
152698a5da5ed6fff9ec4337e8dca4a1a396b458
[ "MIT" ]
null
null
null
op_interface/xgemm.py
LukasSlouka/TF_XNN
152698a5da5ed6fff9ec4337e8dca4a1a396b458
[ "MIT" ]
null
null
null
from tensorflow.python.framework import ops from tensorflow.python.ops import math_ops from .utils import get_xmodule xmodule = get_xmodule() xgemm = xmodule.xgemm @ops.RegisterGradient("XGEMM") def _xgemm_grad(op, grad): """ Gradient computation for the XGEMM :param op: XGEMM operation that is differen...
28.173913
70
0.723765
98
648
4.653061
0.418367
0.046053
0.087719
0.070175
0
0
0
0
0
0
0
0.003817
0.191358
648
22
71
29.454545
0.866412
0.322531
0
0
0
0
0.012165
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
265ab7b03cf9ea1a66d9ea39dcb79842ad35aa0c
1,004
py
Python
Chapter05/nlp40.py
gushwell/PythonNLP100
c67148232fc942b1f8a72e69a2a5e7a3b76e99bd
[ "MIT" ]
2
2020-01-09T14:48:41.000Z
2021-11-20T20:33:46.000Z
Chapter05/nlp40.py
CLRafaelR/PythonNLP100
c67148232fc942b1f8a72e69a2a5e7a3b76e99bd
[ "MIT" ]
null
null
null
Chapter05/nlp40.py
CLRafaelR/PythonNLP100
c67148232fc942b1f8a72e69a2a5e7a3b76e99bd
[ "MIT" ]
2
2020-01-09T14:48:40.000Z
2021-11-20T20:33:59.000Z
# 第5章: 係り受け解析 import re class Morph: def __init__(self, surface, base, pos, pos1): self.surface = surface self.base = base self.pos = pos self.pos1 = pos1 def print(self): print([self.surface, self.base, self.pos, self.pos1]) def analyze(): article = [] sentenc...
23.904762
63
0.456175
105
1,004
4.247619
0.457143
0.073991
0.067265
0
0
0
0
0
0
0
0
0.022184
0.416335
1,004
41
64
24.487805
0.738908
0.010956
0
0.057143
0
0
0.042381
0
0
0
0
0
0
1
0.114286
false
0
0.028571
0
0.2
0.085714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
265bf6359ab14ac666621994354747be0e20755e
1,096
py
Python
test/TestUtils.py
priscillaboyd/SPaT_Prediction
4309819e1f8d8e49f2e7fc132750102322e1504a
[ "Apache-2.0" ]
7
2017-07-10T09:18:19.000Z
2022-03-22T02:47:12.000Z
test/TestUtils.py
priscillaboyd/SPaT_Prediction
4309819e1f8d8e49f2e7fc132750102322e1504a
[ "Apache-2.0" ]
36
2017-06-27T15:04:27.000Z
2017-10-21T12:39:12.000Z
test/TestUtils.py
priscillaboyd/SPaT_Prediction
4309819e1f8d8e49f2e7fc132750102322e1504a
[ "Apache-2.0" ]
2
2017-11-01T03:26:55.000Z
2019-06-01T20:20:31.000Z
import os import shutil import unittest from tools.Utils import root_path, output_fields, create_folder_if_not_exists, results_folder class TestUtils(unittest.TestCase): def test_output_fields(self): output_fields_needed = ['Date', 'Time', 'Result', 'Phase'] self.assertEqual(output_fields_needed...
28.842105
93
0.70073
138
1,096
5.246377
0.304348
0.107735
0.117403
0.145028
0.426796
0.395028
0.395028
0.146409
0.146409
0
0
0
0.205292
1,096
37
94
29.621622
0.831228
0.07208
0
0.090909
0
0
0.032609
0
0
0
0
0
0.272727
1
0.136364
false
0
0.181818
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2661e35125a9440b7263e4c2e760872c0ae79dad
1,713
py
Python
app/pages.py
mvasilkov/terrible-mistake
4f40a9719786ad3df0aea521dfeda234e3329714
[ "MIT" ]
null
null
null
app/pages.py
mvasilkov/terrible-mistake
4f40a9719786ad3df0aea521dfeda234e3329714
[ "MIT" ]
null
null
null
app/pages.py
mvasilkov/terrible-mistake
4f40a9719786ad3df0aea521dfeda234e3329714
[ "MIT" ]
null
null
null
import html from .models import Post, Session TEMPLATE_BASE = '''<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>noname</title> <link rel="stylesheet" href="/static/app.css"> </head> <body> %s </body> </html> ''' TEMPLATE_FORM = ''' <form action="...
23.465753
68
0.54174
196
1,713
4.642857
0.392857
0.052747
0.030769
0.032967
0.279121
0.215385
0.215385
0.215385
0.12967
0.12967
0
0.000816
0.28488
1,713
72
69
23.791667
0.742041
0
0
0.354839
0
0
0.474606
0.16404
0
0
0
0
0
1
0.016129
false
0
0.032258
0
0.064516
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
266247aa06f4461cb7db5adf2fdddc88aebe5a2f
761
py
Python
seqauto/management/commands/reload_illumina_flowcell_qc.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
seqauto/management/commands/reload_illumina_flowcell_qc.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
seqauto/management/commands/reload_illumina_flowcell_qc.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
""" https://github.com/SACGF/variantgrid/issues/1601 Need to trigger reloads of bad metrics, so we die properly """ import logging from django.core.management.base import BaseCommand from seqauto.models import IlluminaFlowcellQC from snpdb.models import DataState class Command(BaseCommand): def hand...
24.548387
75
0.687254
95
761
5.4
0.705263
0.064327
0.046784
0
0
0
0
0
0
0
0
0.006667
0.211564
761
30
76
25.366667
0.848333
0.141919
0
0
0
0
0.154088
0.04717
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2669475d57fe48eb8f470f059b2de2b3e28b5b3e
2,864
py
Python
GameManager.py
redxdev/Matching
6d65933a64bf0f22a18a27c675cb8e95f4161e08
[ "MIT" ]
1
2016-05-06T10:23:24.000Z
2016-05-06T10:23:24.000Z
GameManager.py
redxdev/Matching
6d65933a64bf0f22a18a27c675cb8e95f4161e08
[ "MIT" ]
null
null
null
GameManager.py
redxdev/Matching
6d65933a64bf0f22a18a27c675cb8e95f4161e08
[ "MIT" ]
null
null
null
from WordList import WordList, WordCard import pygame class GameManager: def __init__(self): self.wordList = WordList() self.cards = [] self.badCards = (None, None) self.goodCards = (None, None) self.timer = 0 def startGame(self, pairCount): self.cards = self.w...
28.929293
94
0.50419
332
2,864
4.331325
0.213855
0.031293
0.056328
0.03338
0.289291
0.25452
0.226704
0.201669
0.201669
0.201669
0
0.025761
0.403631
2,864
99
95
28.929293
0.816159
0
0
0.375
0
0
0
0
0
0
0
0
0
1
0.0875
false
0
0.025
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
266b073ce320af6c6412a8f34133f369b56ae914
1,687
py
Python
src/main.py
ekim1919/TDAGo
014db546dae3dedb4f7206288333756fc358ed8a
[ "MIT" ]
null
null
null
src/main.py
ekim1919/TDAGo
014db546dae3dedb4f7206288333756fc358ed8a
[ "MIT" ]
null
null
null
src/main.py
ekim1919/TDAGo
014db546dae3dedb4f7206288333756fc358ed8a
[ "MIT" ]
null
null
null
from plot import * from experiments import * import warnings warnings.filterwarnings("ignore") #Ignore warnings for now import sys import os import argparse def main(): parser = argparse.ArgumentParser(description='Analysis of Go Games') parser.add_argument('dir',nargs='*') parser.add_argument('--conn',...
35.145833
212
0.740368
247
1,687
4.939271
0.518219
0.036885
0.069672
0.051639
0.113115
0.113115
0
0
0
0
0
0.004926
0.157676
1,687
47
213
35.893617
0.853624
0.484884
0
0
0
0
0.13769
0
0
0
0
0
0
1
0.04
false
0
0.24
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
266c5f9566178c353cbde59b14658db79e486f2e
236
py
Python
script/pipeline/setup/setup.py
cpuabuse/py-deployment-automation
aea0c48ac4c5a81f2e027c984ab65f911ad29d0d
[ "0BSD" ]
1
2020-02-23T22:35:28.000Z
2020-02-23T22:35:28.000Z
script/pipeline/setup/setup.py
cpuabuse/py-deployment-automation
aea0c48ac4c5a81f2e027c984ab65f911ad29d0d
[ "0BSD" ]
null
null
null
script/pipeline/setup/setup.py
cpuabuse/py-deployment-automation
aea0c48ac4c5a81f2e027c984ab65f911ad29d0d
[ "0BSD" ]
null
null
null
""" A file for setup. """ # Metadata __author__ = "cpuabuse.com" __copyright__ = "cpuabuse.com 2019" __license__ = "ISC" __version__ = "0.0.1" __email__ = "cpuabuse@gmail.com" __status__ = "Development" # Minimum python version is 3.6
18.153846
35
0.711864
30
236
4.8
0.8
0.152778
0
0
0
0
0
0
0
0
0
0.044554
0.144068
236
13
36
18.153846
0.668317
0.241525
0
0
0
0
0.385965
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
266efdf5f618ad871cc4108d4a51b575ba968601
6,392
py
Python
Kinkajou/python/admin/opencode.py
app858216291-github/Kinkajou-shop
ee1e841e26407b1dcbd14601e5fe34b6422eba29
[ "MIT" ]
null
null
null
Kinkajou/python/admin/opencode.py
app858216291-github/Kinkajou-shop
ee1e841e26407b1dcbd14601e5fe34b6422eba29
[ "MIT" ]
null
null
null
Kinkajou/python/admin/opencode.py
app858216291-github/Kinkajou-shop
ee1e841e26407b1dcbd14601e5fe34b6422eba29
[ "MIT" ]
null
null
null
from admin.upload import FileUploadField, ImageUploadField from flask_babelex import Babel from flask_admin._compat import urljoin from flask import redirect from flask_admin._compat import quote from flask_admin.contrib.fileadmin import FileAdmin from flask_admin import Admin, BaseView, expose from flask_admin....
37.380117
184
0.571339
706
6,392
5.007082
0.247875
0.028006
0.031683
0.016973
0.145403
0.066761
0.028854
0.028854
0.028854
0
0
0.001832
0.316959
6,392
170
185
37.6
0.807833
0.125
0
0.096491
0
0
0.090584
0.017854
0
0
0
0
0
1
0.061404
false
0
0.149123
0
0.359649
0.04386
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
267010ecd5efb0c3498de085c2712903abc79773
4,137
py
Python
liminal/runners/airflow/operators/kubernetes_pod_operator_with_input_output.py
aviemzur/incubator-liminal
88174a6fe519f9a6052f6e5d366a37a88a915ee4
[ "Apache-2.0" ]
1
2021-03-24T08:23:03.000Z
2021-03-24T08:23:03.000Z
liminal/runners/airflow/operators/kubernetes_pod_operator_with_input_output.py
liorsav/incubator-liminal
88174a6fe519f9a6052f6e5d366a37a88a915ee4
[ "Apache-2.0" ]
null
null
null
liminal/runners/airflow/operators/kubernetes_pod_operator_with_input_output.py
liorsav/incubator-liminal
88174a6fe519f9a6052f6e5d366a37a88a915ee4
[ "Apache-2.0" ]
null
null
null
import json from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator def _split_list(seq, num): k, m = divmod(len(seq), num) return list( (seq[i * k + min(i, m):(i + 1) * k + min(i + 1, m)] for i in range(num)) ) _IS_SPLIT_KEY = 'is_split' class PrepareInputOperator...
28.93007
87
0.555958
483
4,137
4.482402
0.192547
0.07067
0.054042
0.038799
0.366744
0.282679
0.240185
0.228176
0.228176
0.162587
0
0.001095
0.337684
4,137
142
88
29.133803
0.789051
0.021997
0
0.401961
0
0
0.104741
0
0
0
0
0.007042
0
1
0.058824
false
0
0.019608
0.009804
0.166667
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2671a284c0ed4b2cd6f0faa0d1f0db0edd38447c
27,696
py
Python
reV/handlers/collection.py
pjstanle/reV
c22c620749747022a65d2a98a99beef804849ee6
[ "BSD-3-Clause" ]
37
2020-03-04T05:24:23.000Z
2022-02-24T14:39:49.000Z
reV/handlers/collection.py
pjstanle/reV
c22c620749747022a65d2a98a99beef804849ee6
[ "BSD-3-Clause" ]
174
2020-03-03T18:18:53.000Z
2022-03-08T22:00:40.000Z
reV/handlers/collection.py
pjstanle/reV
c22c620749747022a65d2a98a99beef804849ee6
[ "BSD-3-Clause" ]
16
2020-08-10T13:43:36.000Z
2021-11-19T22:43:36.000Z
# -*- coding: utf-8 -*- """ Base class to handle collection of profiles and means across multiple .h5 files """ import logging import numpy as np import os import sys import psutil import pandas as pd import time import shutil from warnings import warn from reV.handlers.outputs import Outputs from reV.utilities.except...
35.326531
79
0.55239
3,405
27,696
4.306314
0.105433
0.026734
0.015959
0.010434
0.488031
0.447521
0.400668
0.369229
0.347473
0.328514
0
0.012237
0.362688
27,696
783
80
35.371648
0.818481
0.298563
0
0.293801
0
0
0.09744
0
0
0
0
0.001277
0
1
0.067385
false
0
0.03504
0
0.140162
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
267391fe6f529c4f578f96fdbf6f647ec6e040d3
964
py
Python
utility/templatetags/to_price.py
hosseinmoghimi/waiter
9f5f332b6f252a29aa14f67655b423fd9c40fba3
[ "MIT" ]
1
2021-12-02T11:16:53.000Z
2021-12-02T11:16:53.000Z
utility/templatetags/to_price.py
hosseinmoghimi/waiter
9f5f332b6f252a29aa14f67655b423fd9c40fba3
[ "MIT" ]
null
null
null
utility/templatetags/to_price.py
hosseinmoghimi/waiter
9f5f332b6f252a29aa14f67655b423fd9c40fba3
[ "MIT" ]
null
null
null
from core.errors import LEO_ERRORS from django import template register = template.Library() from utility.currency import to_price as to_price_origin from utility.num import to_horuf as to_horuf_num,to_tartib as to_tartib_ @register.filter def to_price(value): return to_price_origin(value=value) @register.filter...
18.538462
72
0.65249
131
964
4.603053
0.305344
0.069652
0.112769
0.126036
0.167496
0
0
0
0
0
0
0.01532
0.255187
964
51
73
18.901961
0.824513
0.071577
0
0.235294
0
0
0.003375
0
0
0
0
0
0
1
0.147059
false
0
0.117647
0.088235
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
2674b3c10e1e9d8ebf4b7b0491fb0687920f7025
3,119
py
Python
Python/maximal-rectangle.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2022-01-30T06:55:28.000Z
2022-01-30T06:55:28.000Z
Python/maximal-rectangle.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
null
null
null
Python/maximal-rectangle.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2021-12-31T03:56:39.000Z
2021-12-31T03:56:39.000Z
# Time: O(m*n) # Space: O(n) # 85 # Given a 2D binary matrix filled with 0's and 1's, # find the largest rectangle containing all ones and return its area. # Ascending stack solution. class Solution(object): def maximalRectangle(self, matrix): # USE THIS """ :type matrix: List[List[str]] ...
31.505051
91
0.430907
404
3,119
3.306931
0.289604
0.01497
0.017964
0.024701
0.132485
0.124252
0.106287
0
0
0
0
0.054833
0.432831
3,119
98
92
31.826531
0.700396
0.175697
0
0.15942
0
0
0.018058
0
0
0
0
0
0
1
0.057971
false
0
0
0
0.15942
0.014493
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2676fe4e4181d8ea15429d8939404231084cca25
8,869
py
Python
makechart.py
preeve9534/signalk-sensor-log
7f6afd188b1ed95dad0b4d798f66d145a1f10978
[ "Apache-2.0" ]
null
null
null
makechart.py
preeve9534/signalk-sensor-log
7f6afd188b1ed95dad0b4d798f66d145a1f10978
[ "Apache-2.0" ]
null
null
null
makechart.py
preeve9534/signalk-sensor-log
7f6afd188b1ed95dad0b4d798f66d145a1f10978
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from SocketServer import TCPServer, StreamRequestHandler import socket from subprocess import call import datetime import json import re import sys import os CONF = {} RRDTOOL = '/usr/bin/rrdtool' PERIODS = [] CHART_BACKGROUNDCOLOR = '#000000' CHART_CANVASCOLOR = '#000000' CHART_DIRECTORY = '/tmp/'...
49.272222
209
0.560379
945
8,869
5.184127
0.266667
0.040416
0.064299
0.071443
0.240661
0.203919
0.13513
0.013064
0.013064
0.013064
0
0.015808
0.258203
8,869
179
210
49.547486
0.728834
0.099673
0
0.05036
0
0
0.156376
0.00615
0
0
0
0
0
1
0.035971
false
0
0.064748
0
0.136691
0.007194
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
267701db0df3dc5669a6ef8609e548969a09888e
410
py
Python
way/python/exercises/various/turtle_draws/turtle_spiral_name.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
way/python/exercises/various/turtle_draws/turtle_spiral_name.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
way/python/exercises/various/turtle_draws/turtle_spiral_name.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
# цветная спираль из имени пользователя import turtle t = turtle.Pen() turtle.bgcolor("black") colors = ["red", "yellow", "blue", "green"] # gui text input name = turtle.textinput("Введи своё имя", "Как тебя зовут?") for x in range(100): t.pencolor(colors[x%4]) t.penup() t.forward(x*4) ...
22.777778
61
0.592683
61
410
3.983607
0.721311
0.024691
0.024691
0
0
0
0
0
0
0
0
0.028213
0.221951
410
17
62
24.117647
0.733542
0.126829
0
0
0
0
0.180473
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
26796efa4885d9b90f7bb3e4e595ebd4603db189
1,537
py
Python
config/base_config.py
xuyouze/DropNet
edbaeb72075b819b96e1ca66e966999a40d3645e
[ "Apache-2.0" ]
1
2021-06-28T06:27:06.000Z
2021-06-28T06:27:06.000Z
config/base_config.py
xuyouze/DropNet
edbaeb72075b819b96e1ca66e966999a40d3645e
[ "Apache-2.0" ]
null
null
null
config/base_config.py
xuyouze/DropNet
edbaeb72075b819b96e1ca66e966999a40d3645e
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 # @Time : 2019/5/15 # @Author : xuyouze # @File Name : base_config.py import importlib import os import sys import torch import logging from .dataset_config import build_dataset_config from .logger_config import config __all__ = ["BaseConfig"] class BaseConfig(object): def __init...
23.646154
91
0.709824
206
1,537
5.092233
0.446602
0.073403
0.071497
0.034318
0
0
0
0
0
0
0
0.013503
0.180872
1,537
64
92
24.015625
0.819698
0.348081
0
0
0
0
0.066259
0
0
0
0
0
0
1
0.034483
false
0
0.241379
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
267b0451a5289dfdcefad895acd9541e3d77721e
814
py
Python
test/test_utils.py
fact-project/ratescan
69a2eb8b2c66024f10e59d6dbf15c84c9b12ede4
[ "MIT" ]
null
null
null
test/test_utils.py
fact-project/ratescan
69a2eb8b2c66024f10e59d6dbf15c84c9b12ede4
[ "MIT" ]
null
null
null
test/test_utils.py
fact-project/ratescan
69a2eb8b2c66024f10e59d6dbf15c84c9b12ede4
[ "MIT" ]
null
null
null
from fact.io import read_data def test_sumupCountsOfRun(): from ratescan.utils import sumupCountsOfRun df = read_data("test/test.hdf5", key="ratescan") df_summed = sumupCountsOfRun(df) assert df_summed.run_id.unique() == 182 assert len(df_summed.ratescan_trigger_thresholds) == 1000 ...
29.071429
96
0.701474
95
814
5.821053
0.357895
0.057866
0.092224
0.124774
0.189873
0.189873
0.189873
0.189873
0.189873
0
0
0.033133
0.184275
814
27
97
30.148148
0.799699
0.219902
0
0.166667
0
0
0.140575
0.070288
0
0
0
0
0.25
1
0.166667
false
0
0.25
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
267b7ae665db4a183786b0a16f0d7887f1bbb20e
4,080
py
Python
rbac/cli/cli_test_auth.py
shawnmckinney/py-fortress
ead12bf9b7e37e923c42ccdadd8fd3c5adf027cf
[ "Apache-2.0" ]
16
2018-03-19T02:19:01.000Z
2021-12-30T15:24:40.000Z
rbac/cli/cli_test_auth.py
shawnmckinney/py-fortress
ead12bf9b7e37e923c42ccdadd8fd3c5adf027cf
[ "Apache-2.0" ]
1
2021-12-18T16:46:04.000Z
2021-12-18T16:46:04.000Z
rbac/cli/cli_test_auth.py
shawnmckinney/py-fortress
ead12bf9b7e37e923c42ccdadd8fd3c5adf027cf
[ "Apache-2.0" ]
2
2018-03-14T21:48:43.000Z
2018-03-19T03:25:40.000Z
''' @copyright: 2022 - Symas Corporation ''' import sys import pickle import argparse from rbac.util import global_ids from rbac.model import Perm, User from rbac import access from rbac.util import RbacError from ..cli.utils import print_user, print_entity from rbac.cli.utils import ( load_entity, add_args, ADD,...
34.576271
132
0.554412
492
4,080
4.453252
0.23374
0.013692
0.046554
0.041077
0.262437
0.230032
0.219991
0.19078
0.157006
0.157006
0
0.001461
0.329167
4,080
118
133
34.576271
0.79905
0.014706
0
0.235294
0
0
0.100798
0
0
0
0
0
0
1
0.039216
false
0
0.088235
0
0.156863
0.186275
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
267b9ff6b529eb0367e6acbbd247f37b5d0c7a4d
1,678
py
Python
httprider/presenters/utility_functions_presenter.py
iSWORD/http-rider
5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9
[ "MIT" ]
27
2019-12-20T00:10:28.000Z
2022-03-09T18:04:23.000Z
httprider/presenters/utility_functions_presenter.py
iSWORD/http-rider
5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9
[ "MIT" ]
6
2019-10-13T08:50:21.000Z
2020-06-05T12:23:08.000Z
httprider/presenters/utility_functions_presenter.py
iSWORD/http-rider
5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9
[ "MIT" ]
7
2019-08-10T01:38:31.000Z
2021-08-23T05:28:46.000Z
from httprider.core.generators import utility_func_map class UtilityFunctionsPresenter: def __init__(self, view, parent): self.view = view self.parent = parent # update list of functions for f in utility_func_map.keys(): self.view.function_selector.addItem(f) ...
34.958333
78
0.6764
201
1,678
5.358209
0.333333
0.167131
0.089136
0.089136
0.264624
0.192201
0.192201
0.159703
0.159703
0.159703
0
0
0.234207
1,678
47
79
35.702128
0.838132
0.039928
0
0.111111
0
0
0.04291
0.014303
0
0
0
0
0
1
0.166667
false
0
0.027778
0
0.305556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
267d4a279fad22068d75718ec410431f6a3cbe63
12,745
py
Python
ensembling_sgd.py
suswei/RLCT
e9e04ca5e64250dfbb94134ec5283286dcdc4358
[ "MIT" ]
null
null
null
ensembling_sgd.py
suswei/RLCT
e9e04ca5e64250dfbb94134ec5283286dcdc4358
[ "MIT" ]
null
null
null
ensembling_sgd.py
suswei/RLCT
e9e04ca5e64250dfbb94134ec5283286dcdc4358
[ "MIT" ]
null
null
null
import argparse import numpy as np import os from numpy.linalg import inv import torch import torch.nn as nn from torch.utils.data import TensorDataset import torch.optim as optim from torch.distributions.multivariate_normal import MultivariateNormal from torch.distributions.uniform import Uniform from torch.distribut...
42.342193
175
0.612475
1,824
12,745
4.134868
0.169408
0.014585
0.029303
0.007955
0.417396
0.376425
0.326704
0.267436
0.248077
0.223681
0
0.021021
0.242291
12,745
301
176
42.342193
0.759967
0.274696
0
0.243902
0
0
0.071265
0
0
0
0
0.003322
0
1
0.042683
false
0
0.073171
0
0.152439
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
268c51ed50d4a8d0b92613024c9ad4e9c61f0c83
371
py
Python
Statistics/PopulationMean.py
cadibemma/Statistical-Calculator
4135487577af9e17b51317e72d7b07c09390f3f6
[ "MIT" ]
1
2020-06-27T22:14:11.000Z
2020-06-27T22:14:11.000Z
Statistics/PopulationMean.py
cadibemma/Statistical-Calculator
4135487577af9e17b51317e72d7b07c09390f3f6
[ "MIT" ]
28
2020-06-28T15:03:56.000Z
2020-07-07T16:29:27.000Z
Statistics/PopulationMean.py
cadibemma/Statistical-Calculator
4135487577af9e17b51317e72d7b07c09390f3f6
[ "MIT" ]
1
2020-06-27T14:33:20.000Z
2020-06-27T14:33:20.000Z
# from Calculator.Addition import addition from Calculator.Division import division def populationmean(num): try: num_values = len(num) total = sum(num) return division(total, num_values) except ZeroDivisionError: print("Error: Enter values greater than 0") except ValueErro...
28.538462
51
0.684636
43
371
5.860465
0.627907
0.111111
0
0
0
0
0
0
0
0
0
0.003546
0.239892
371
13
52
28.538462
0.890071
0.107817
0
0
0
0
0.19697
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
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
26931376c81cc95ed098daf30d28fcc4518c0ee9
1,842
py
Python
bot/NFQ.py
cyber-meow/Robotic_state_repr_learning
d74fe372bea0b1cf42107450a8c3344a99279e91
[ "MIT" ]
null
null
null
bot/NFQ.py
cyber-meow/Robotic_state_repr_learning
d74fe372bea0b1cf42107450a8c3344a99279e91
[ "MIT" ]
null
null
null
bot/NFQ.py
cyber-meow/Robotic_state_repr_learning
d74fe372bea0b1cf42107450a8c3344a99279e91
[ "MIT" ]
null
null
null
import numpy as np from sklearn.neural_network import MLPRegressor from sklearn.exceptions import NotFittedError from inter.interfaces import QLearning from utility import set_all_args class NFQ(QLearning): gamma = 0.9 beta = 0.8 def __init__(self, **kwargs): self.mlp = MLPRegressor( ...
29.238095
76
0.58089
248
1,842
4.165323
0.370968
0.075508
0.058083
0.046467
0.162633
0.108422
0.108422
0.058083
0
0
0
0.016279
0.299674
1,842
62
77
29.709677
0.784496
0.01683
0
0.05
0
0
0.004484
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13fe23236e035adcc7cad3112d9cc94bfc4481fa
66,843
py
Python
TransitionListener/transitionFinder.py
tasicarl/TransitionListerner_public
b231467e731f51521a85dd962cc08da07eca8226
[ "MIT" ]
null
null
null
TransitionListener/transitionFinder.py
tasicarl/TransitionListerner_public
b231467e731f51521a85dd962cc08da07eca8226
[ "MIT" ]
null
null
null
TransitionListener/transitionFinder.py
tasicarl/TransitionListerner_public
b231467e731f51521a85dd962cc08da07eca8226
[ "MIT" ]
1
2021-11-04T08:12:10.000Z
2021-11-04T08:12:10.000Z
""" The transitionFinder module is used to calculate finite temperature cosmological phase transitions: it contains functions to find the phase structure as a function of temperature, and functions to find the transition (bubble nucleation) temperature for each phase. In contrast, :mod:`.pathDefomration` is useful for ...
40.412938
222
0.585536
8,823
66,843
4.345121
0.101326
0.016694
0.012416
0.005765
0.448131
0.399405
0.369878
0.349427
0.331481
0.317865
0
0.01561
0.319525
66,843
1,653
223
40.437387
0.82724
0.363658
0
0.455435
0
0.005435
0.07899
0.001087
0
0
0
0.00121
0.003261
1
0.042391
false
0.004348
0.009783
0.011957
0.105435
0.047826
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13fecb8c46693f75faf20fe0071fb2ddb03a2ed2
3,720
py
Python
red-scare/instance-generators/make-words.py
Sebastian-ba/DoDoBing
6edcc18de22ad76505d2c13ac6a207a2c274cc95
[ "MIT" ]
3
2017-09-25T11:59:20.000Z
2017-11-20T12:55:21.000Z
red-scare/instance-generators/make-words.py
ITU-2019/DoDoBing
6edcc18de22ad76505d2c13ac6a207a2c274cc95
[ "MIT" ]
6
2017-09-25T12:04:51.000Z
2017-11-13T07:51:40.000Z
red-scare/instance-generators/make-words.py
ITU-2019/DoDoBing
6edcc18de22ad76505d2c13ac6a207a2c274cc95
[ "MIT" ]
null
null
null
import sys import random import networkx as nx from write_nx_graph import write_graph uncommons = set() # Everything except the 3300 common words in SGB f = open ('data/words.txt','r') words = [] for line in f: if len(line)>0 and line[0] == '*': continue word = line.strip()[:5] words.append(wo...
36.116505
109
0.470968
466
3,720
3.701717
0.244635
0.017391
0.02087
0.026087
0.295652
0.295652
0.190145
0.190145
0.144928
0.105507
0
0.052232
0.397849
3,720
102
110
36.470588
0.717857
0.044355
0
0.16092
0
0
0.04169
0
0
0
0
0
0
1
0.08046
false
0
0.045977
0
0.172414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
13ff78cbd83636d6edec29d58b60fdaa0be4d91a
7,490
py
Python
scripts/strelka-2.9.2.centos6_x86_64/share/scoringModelTraining/somatic/bin/vcf_to_feature_csv.py
dongxuemin666/RNA-combine
13e178aae585e16a9a8eda8151d0f34316de0475
[ "Apache-2.0" ]
7
2021-09-03T09:11:00.000Z
2022-02-14T15:02:12.000Z
scripts/strelka-2.9.2.centos6_x86_64/share/scoringModelTraining/somatic/bin/vcf_to_feature_csv.py
dongxuemin666/RNA-combine
13e178aae585e16a9a8eda8151d0f34316de0475
[ "Apache-2.0" ]
null
null
null
scripts/strelka-2.9.2.centos6_x86_64/share/scoringModelTraining/somatic/bin/vcf_to_feature_csv.py
dongxuemin666/RNA-combine
13e178aae585e16a9a8eda8151d0f34316de0475
[ "Apache-2.0" ]
2
2022-01-10T13:07:29.000Z
2022-01-11T22:14:11.000Z
#!/usr/bin/env python2 # # Strelka - Small Variant Caller # Copyright (c) 2009-2018 Illumina, 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...
41.153846
192
0.633111
887
7,490
5.290868
0.328072
0.028766
0.028979
0.012146
0.12508
0.066056
0.024292
0.024292
0.024292
0
0
0.004168
0.263284
7,490
181
193
41.381215
0.846321
0.242457
0
0.078431
0
0.019608
0.186
0.008
0
0
0
0
0
1
0.04902
false
0
0.068627
0
0.147059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd0344b2d15b20e60fd3ab647958bb726ead940c
2,750
py
Python
qiskit_neko/backend_plugin.py
garrison/qiskit-neko
50c6f0f6975425c7ff86417cedc094e984dc5d1c
[ "Apache-2.0" ]
5
2022-01-11T16:07:48.000Z
2022-02-01T22:05:34.000Z
qiskit_neko/backend_plugin.py
garrison/qiskit-neko
50c6f0f6975425c7ff86417cedc094e984dc5d1c
[ "Apache-2.0" ]
1
2022-02-03T14:10:57.000Z
2022-02-03T14:10:57.000Z
qiskit_neko/backend_plugin.py
garrison/qiskit-neko
50c6f0f6975425c7ff86417cedc094e984dc5d1c
[ "Apache-2.0" ]
1
2022-03-07T15:06:21.000Z
2022-03-07T15:06:21.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
36.184211
87
0.704
378
2,750
5.039683
0.489418
0.041995
0.010499
0.025197
0.031496
0
0
0
0
0
0
0.003813
0.237091
2,750
75
88
36.666667
0.904194
0.626909
0
0
0
0
0.054176
0.030474
0
0
0
0
0
1
0.16
false
0.04
0.12
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd03952161db20fd79bc08d5412273256911f00a
2,155
py
Python
utils/utils.py
ZhenqiSong/OCR_Pytorch
df4e8c53353b6c515509241d4c9af3b153224a10
[ "MIT" ]
null
null
null
utils/utils.py
ZhenqiSong/OCR_Pytorch
df4e8c53353b6c515509241d4c9af3b153224a10
[ "MIT" ]
null
null
null
utils/utils.py
ZhenqiSong/OCR_Pytorch
df4e8c53353b6c515509241d4c9af3b153224a10
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # __author__:Song Zhenqi # 2021-01-20 import os import sys import yaml import logging import functools logger_initialized = set() def get_img_list(img_file): img_lists = [] if img_file is None or not os.path.exists(img_file): raise FileNotFoundError("file path: {} is not exis...
27.278481
91
0.645476
283
2,155
4.75265
0.392226
0.057249
0.01487
0.022305
0
0
0
0
0
0
0
0.006687
0.236659
2,155
78
92
27.628205
0.810942
0.116937
0
0.065217
0
0
0.081932
0
0
0
0
0
0.021739
1
0.065217
false
0
0.108696
0
0.282609
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd0601891b2dad5746ac7c08ac9655b6e8d13ab9
2,130
py
Python
monitoring/uss_qualifier/webapp/tasks.py
interuss/InterUSS-Platform
099abaa1159c4c143f8f1fde6b88956c86608281
[ "Apache-2.0" ]
null
null
null
monitoring/uss_qualifier/webapp/tasks.py
interuss/InterUSS-Platform
099abaa1159c4c143f8f1fde6b88956c86608281
[ "Apache-2.0" ]
1
2021-11-29T21:53:39.000Z
2021-11-29T21:53:39.000Z
monitoring/uss_qualifier/webapp/tasks.py
interuss/InterUSS-Platform
099abaa1159c4c143f8f1fde6b88956c86608281
[ "Apache-2.0" ]
null
null
null
from monitoring.uss_qualifier.test_data import test_report from monitoring.uss_qualifier.utils import USSQualifierTestConfiguration from monitoring.uss_qualifier.main import uss_test_executor from monitoring.uss_qualifier.rid.simulator import flight_state_from_kml from monitoring.uss_qualifier.rid.utils import FullFlig...
30.869565
88
0.746948
269
2,130
5.628253
0.297398
0.064729
0.067371
0.103038
0.299207
0.280053
0.239102
0.187583
0.113606
0.113606
0
0.000575
0.184038
2,130
68
89
31.323529
0.870541
0.013615
0
0.172414
0
0
0
0
0
0
0
0
0
1
0.068966
false
0
0.224138
0
0.396552
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd06e20fb3a5b8f7301bbddc6604a232ac3d8294
11,853
py
Python
grenades_services/modules/basket.py
Parveen3300/Reans
6dfce046b01099284a8c945a04600ed83e5099a4
[ "Apache-2.0" ]
null
null
null
grenades_services/modules/basket.py
Parveen3300/Reans
6dfce046b01099284a8c945a04600ed83e5099a4
[ "Apache-2.0" ]
null
null
null
grenades_services/modules/basket.py
Parveen3300/Reans
6dfce046b01099284a8c945a04600ed83e5099a4
[ "Apache-2.0" ]
null
null
null
""" BasketManagementRelated modules """ # import basket models from basket.models import Basket from basket.models import BasketProductLine # import configuration models from grenades_services.all_configuration_data import get_currency_instance from grenades_services.all_configuration_data import get_customer_instance...
40.731959
114
0.651312
1,318
11,853
5.487102
0.127466
0.041482
0.042035
0.031803
0.390072
0.297566
0.256084
0.192754
0.157218
0.1362
0
0.009172
0.273349
11,853
290
115
40.872414
0.830489
0.2218
0
0.245714
0
0
0.069529
0.010821
0
0
0
0
0
1
0.091429
false
0
0.04
0
0.245714
0.022857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd0b619e6db23ae007998ba9f088e9c319778c9d
517
py
Python
230.py
BYOUINZAKA/LeetCodeNotes
48e1b4522c1f769eeec4944cfbd57abf1281d09a
[ "MIT" ]
null
null
null
230.py
BYOUINZAKA/LeetCodeNotes
48e1b4522c1f769eeec4944cfbd57abf1281d09a
[ "MIT" ]
null
null
null
230.py
BYOUINZAKA/LeetCodeNotes
48e1b4522c1f769eeec4944cfbd57abf1281d09a
[ "MIT" ]
null
null
null
''' @Author: Hata @Date: 2020-05-24 15:30:19 @LastEditors: Hata @LastEditTime: 2020-05-24 15:32:04 @FilePath: \LeetCode\230.py @Description: https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst/ ''' class Solution: def kthSmallest(self, root, k): def gen(r): if r is not None: ...
22.478261
77
0.558994
74
517
3.891892
0.702703
0.041667
0.055556
0.069444
0
0
0
0
0
0
0
0.086835
0.309478
517
22
78
23.5
0.719888
0.381044
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd0c0c186a507173da38fb9c91812fd94be9043a
3,430
py
Python
Scripts/TestParsers/PyUnittestTestParser.py
davidbrownell/v3-Common_Environment
8f42f256e573cbd83cbf9813db9958025ddf12f2
[ "BSL-1.0" ]
null
null
null
Scripts/TestParsers/PyUnittestTestParser.py
davidbrownell/v3-Common_Environment
8f42f256e573cbd83cbf9813db9958025ddf12f2
[ "BSL-1.0" ]
1
2018-06-08T06:45:16.000Z
2018-06-08T06:45:16.000Z
Scripts/TestParsers/PyUnittestTestParser.py
davidbrownell/v3-Common_Environment
8f42f256e573cbd83cbf9813db9958025ddf12f2
[ "BSL-1.0" ]
1
2018-06-08T04:15:17.000Z
2018-06-08T04:15:17.000Z
# ---------------------------------------------------------------------- # | # | PythonUnittestTestParser.py # | # | David Brownell <db@DavidBrownell.com> # | 2018-05-22 07:59:46 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2018-22. # | ...
38.539326
159
0.473178
275
3,430
5.76
0.436364
0.035354
0.041667
0.015152
0
0
0
0
0
0
0
0.011725
0.229155
3,430
88
160
38.977273
0.587368
0.390379
0
0.159091
0
0
0.058465
0
0
0
0
0
0.022727
1
0.090909
false
0
0.204545
0.022727
0.590909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd0c8d9af792a61f23cb21cb4b226023ec5c2f1f
7,116
py
Python
fairseq/models/transformer_xlm_iwslt_decoder.py
jm-glowienke/fairseq
ca45353322f92776e34a7308bf3fab75af9c1d50
[ "MIT" ]
null
null
null
fairseq/models/transformer_xlm_iwslt_decoder.py
jm-glowienke/fairseq
ca45353322f92776e34a7308bf3fab75af9c1d50
[ "MIT" ]
null
null
null
fairseq/models/transformer_xlm_iwslt_decoder.py
jm-glowienke/fairseq
ca45353322f92776e34a7308bf3fab75af9c1d50
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os from typing import Any, Dict from fairseq import checkpoint_utils from fairseq.data.legacy.masked_lm_dictionary import MaskedLMDict...
40.662857
82
0.647274
786
7,116
5.587786
0.221374
0.076958
0.104736
0.036885
0.331967
0.246585
0.203552
0.175546
0.153005
0.153005
0
0.003477
0.272485
7,116
174
83
40.896552
0.844891
0.210933
0
0.1
0
0
0.245443
0.067858
0
0
0
0
0.041667
1
0.058333
false
0
0.05
0.016667
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd0ff0154f3a2ed2059c34dae1964cf271d9a2e1
3,674
py
Python
analysis/sharpness.py
sanketvmehta/lifelong-learning-pretraining-and-sam
2fee18a4b13c918f6005f88c19089b86f4a8aae2
[ "Apache-2.0" ]
null
null
null
analysis/sharpness.py
sanketvmehta/lifelong-learning-pretraining-and-sam
2fee18a4b13c918f6005f88c19089b86f4a8aae2
[ "Apache-2.0" ]
null
null
null
analysis/sharpness.py
sanketvmehta/lifelong-learning-pretraining-and-sam
2fee18a4b13c918f6005f88c19089b86f4a8aae2
[ "Apache-2.0" ]
null
null
null
import copy import numpy as np import torch from scipy import optimize import logging def sharpness(model, criterion_fn, A, epsilon=1e-3, p=0, bounds=None): """Computes sharpness metric according to https://arxiv.org/abs/1609.04836. Args: model: Model on which to compute sharpness criterion_...
32.803571
80
0.631464
491
3,674
4.627291
0.285132
0.033891
0.008803
0.007923
0.194982
0.146127
0.146127
0.118838
0.051937
0.051937
0
0.013253
0.281165
3,674
111
81
33.099099
0.847028
0.311922
0
0.191781
0
0
0.018033
0
0
0
0
0
0
1
0.082192
false
0
0.068493
0
0.219178
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd13a01142ccf63d717a89caf8e588ed9c337f8d
850
py
Python
D_QuickS.py
rut999/Algo
9180f66452597a758a31073cb2b8fa4a3e6a93fe
[ "MIT" ]
null
null
null
D_QuickS.py
rut999/Algo
9180f66452597a758a31073cb2b8fa4a3e6a93fe
[ "MIT" ]
null
null
null
D_QuickS.py
rut999/Algo
9180f66452597a758a31073cb2b8fa4a3e6a93fe
[ "MIT" ]
null
null
null
import time from random import randint def random_int(x): value = [] for i in range(x): value.append(randint(0, x)) return value def Quick_sort(list1): N = len(list1) if N <=1: return list1 pivot = list1.pop() # mid = len(list1)//2 Left_H = [] Right_H = [] for i...
22.368421
74
0.583529
134
850
3.58209
0.395522
0.09375
0.025
0.045833
0
0
0
0
0
0
0
0.106583
0.249412
850
37
75
22.972973
0.645768
0.272941
0
0
0
0
0
0
0
0
0
0
0
1
0.08
false
0
0.08
0
0.28
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd18f82e759c1f805c2c156a96b2d6d4fe352c3d
780
py
Python
api/service/cidades_atendimento_service.py
FinotelliCarlos/ewipesimple-adminweb-python
3bf779250efeb9f85b4283ffbf210bf227aa8e8c
[ "MIT" ]
1
2021-06-17T06:13:33.000Z
2021-06-17T06:13:33.000Z
api/service/cidades_atendimento_service.py
FinotelliCarlos/ewipesimple-adminweb-python
3bf779250efeb9f85b4283ffbf210bf227aa8e8c
[ "MIT" ]
null
null
null
api/service/cidades_atendimento_service.py
FinotelliCarlos/ewipesimple-adminweb-python
3bf779250efeb9f85b4283ffbf210bf227aa8e8c
[ "MIT" ]
null
null
null
from adminweb.services import cep_service from adminweb.models import Profissional from rest_framework import serializers import json def listar_profissionais_cidade(cep): codigo_ibge = buscar_cidade_cep(cep)['ibge'] try: profissionais = Profissional.objects.filter(codigo_ibge=codigo_ibge).order_by('i...
32.5
91
0.75
96
780
5.895833
0.489583
0.063604
0.079505
0.095406
0.155477
0.155477
0
0
0
0
0
0.004658
0.174359
780
23
92
33.913043
0.874224
0
0
0
0
0
0.097436
0
0
0
0
0
0
1
0.105263
false
0
0.210526
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd1a66acf2cfd6c3c481c4c94e53d436215cbbe7
9,414
py
Python
omicron/core/numpy_extensions.py
evimacs/omicron
abe77fd25a93cf3d0d17661ae957373474724535
[ "MIT" ]
4
2020-11-09T02:23:51.000Z
2021-01-24T00:45:21.000Z
omicron/core/numpy_extensions.py
evimacs/omicron
abe77fd25a93cf3d0d17661ae957373474724535
[ "MIT" ]
14
2020-11-09T02:31:34.000Z
2021-12-22T10:15:47.000Z
omicron/core/numpy_extensions.py
evimacs/omicron
abe77fd25a93cf3d0d17661ae957373474724535
[ "MIT" ]
2
2021-01-24T00:45:25.000Z
2021-12-24T06:18:37.000Z
"""Extension function related to numpy """ from __future__ import annotations from typing import List, Tuple import numpy as np import pandas from numpy.typing import ArrayLike def dict_to_numpy_array(d: dict, dtype: List[Tuple]) -> np.array: """convert dictionary to numpy array Examples: >>> d = {"aa...
26.222841
161
0.546633
1,247
9,414
4.054531
0.256616
0.019383
0.010878
0.008307
0.109573
0.074367
0.050633
0.041535
0.018196
0
0
0.060505
0.297748
9,414
358
162
26.296089
0.704281
0.504143
0
0.086207
0
0.008621
0.030966
0
0
0
0
0
0
1
0.086207
false
0
0.043103
0.008621
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd1c390db89d68211aa13e58ba3a2a89676c5247
3,039
py
Python
finetuning/pretrain_scripts/create_sentiment_mask.py
tatsu-lab/mlm_inductive_bias
2d99e2477293036949ba356c88513729244dc1f9
[ "MIT" ]
10
2021-04-14T22:06:19.000Z
2022-01-12T19:41:12.000Z
finetuning/pretrain_scripts/create_sentiment_mask.py
tatsu-lab/mlm_inductive_bias
2d99e2477293036949ba356c88513729244dc1f9
[ "MIT" ]
null
null
null
finetuning/pretrain_scripts/create_sentiment_mask.py
tatsu-lab/mlm_inductive_bias
2d99e2477293036949ba356c88513729244dc1f9
[ "MIT" ]
3
2021-06-06T09:43:14.000Z
2022-02-20T00:40:42.000Z
""" This script computes word masks based on sentiment lexicons """ import os import torch import argparse from tqdm import tqdm from transformers import AutoTokenizer from transformers import GlueDataTrainingArguments as DataTrainingArguments from transformers import GlueDataset as Dataset parser = argparse.Argumen...
37.518519
136
0.66535
422
3,039
4.646919
0.329384
0.039266
0.034676
0.028557
0.237634
0.216216
0.18562
0.163182
0.163182
0.163182
0
0.009595
0.211254
3,039
80
137
37.9875
0.808511
0.080948
0
0.105263
0
0.017544
0.202805
0.055016
0
0
0
0
0
1
0
false
0
0.122807
0
0.122807
0.035088
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd1f80834765c75ab8a5bfc49335f1d5e1f2a008
456
py
Python
Leetcode/443. String Compression/solution2.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/443. String Compression/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/443. String Compression/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
class Solution: def compress(self, chars: List[str]) -> int: l = 0 while l < len(chars): r = l + 1 while r < len(chars) and chars[l] == chars[r]: r += 1 num = r - l for k in range(r - l, 1, -1): chars.pop(l) if num > 1: for ...
32.571429
75
0.41886
68
456
2.808824
0.411765
0.125654
0.031414
0
0
0
0
0
0
0
0
0.03125
0.438596
456
13
76
35.076923
0.714844
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd2798a9ad4d90fcc9bb40c5df39c9d1117edd80
5,946
py
Python
fetch.py
kirillvarn/grocerycomparator-stat
861f90a2d5b4c2b52d89b6cdb574b722eae2327d
[ "MIT" ]
null
null
null
fetch.py
kirillvarn/grocerycomparator-stat
861f90a2d5b4c2b52d89b6cdb574b722eae2327d
[ "MIT" ]
null
null
null
fetch.py
kirillvarn/grocerycomparator-stat
861f90a2d5b4c2b52d89b6cdb574b722eae2327d
[ "MIT" ]
null
null
null
import repo import export.csv as csv # CONSTANTS milk_q = "SELECT * FROM \"%s\" WHERE price != 0 AND discount = false AND (name ILIKE '%%1l%%' OR name ILIKE '%%1 l%%') AND (name ILIKE '%%piim %%' OR name ILIKE '%%piim,%%') AND name NOT ILIKE '%%juust%%' AND name NOT ILIKE '%%kohupiim%%' AND name NOT ILIKE '%%laktoos%%...
58.871287
365
0.601245
835
5,946
4.209581
0.189222
0.101565
0.085349
0.123755
0.433855
0.407112
0.388336
0.388336
0.374964
0.336558
0
0.006888
0.218634
5,946
100
366
59.46
0.749677
0.235452
0
0.133333
0
0.183333
0.581251
0.014592
0
0
0
0
0
1
0.083333
false
0
0.033333
0.016667
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
cd27a3a7d166518d8d7678101792de0e23b578ef
1,755
py
Python
code1.py
roshangol/executed-path-visualize
1759c12b0048fe117205990b151d2f5f57ad9616
[ "MIT" ]
null
null
null
code1.py
roshangol/executed-path-visualize
1759c12b0048fe117205990b151d2f5f57ad9616
[ "MIT" ]
null
null
null
code1.py
roshangol/executed-path-visualize
1759c12b0048fe117205990b151d2f5f57ad9616
[ "MIT" ]
null
null
null
# EX1 # if x < y: # y = 0 # x = x + 1 # else: # x = y def max(a, b, c): if a > b and a > c: print(a,' is maximum among all') elif b > a and b > c: print(b, ' is maximum among all') else: print(c, ' is maximum among all') max(30, 28, 18) # def triangleType(a, b, c): # ...
16.25
66
0.4
275
1,755
2.552727
0.254545
0.02849
0.017094
0.07265
0.153846
0.133903
0.133903
0.133903
0.037037
0
0
0.054795
0.417664
1,755
107
67
16.401869
0.632094
0.773219
0
0
0
0
0.198113
0
0
0
0
0
0
1
0.125
false
0
0
0
0.125
0.375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd28f531641b97aa10ded06e3c6b7fdb2de0d2e7
1,193
py
Python
GameProject/dice.py
CreativeUsernameThatWontInsultAnyone/GameProject
998274e4587d93ff0564af174f4fc1e3a3e60174
[ "CC0-1.0" ]
1
2021-11-13T17:14:03.000Z
2021-11-13T17:14:03.000Z
GameProject/dice.py
CreativeUsernameThatWontInsultAnyone/GameProject
998274e4587d93ff0564af174f4fc1e3a3e60174
[ "CC0-1.0" ]
null
null
null
GameProject/dice.py
CreativeUsernameThatWontInsultAnyone/GameProject
998274e4587d93ff0564af174f4fc1e3a3e60174
[ "CC0-1.0" ]
null
null
null
import random import time while (1): def clear(): ##Placeholder code time.sleep(1) clearConsole = lambda: print('\n' * 150) ## clearConsole() wmsg = "Good morning!" events = { 1 : "calm", 2 : "calm", 3...
28.404762
105
0.506287
144
1,193
4.194444
0.583333
0.044702
0.009934
0.013245
0.019868
0.019868
0
0
0
0
0
0.033467
0.373847
1,193
41
106
29.097561
0.7751
0.198659
0
0.09375
0
0
0.184939
0
0
0
0
0
0
1
0.03125
false
0
0.0625
0
0.09375
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
cd2c1598eaae27b2b8504f6e96bc81711b260dde
774
py
Python
multivision/oa_image_io.py
olaals/tpktools
50416ca554809e3d2f364b25531c78cf4751311c
[ "MIT" ]
null
null
null
multivision/oa_image_io.py
olaals/tpktools
50416ca554809e3d2f364b25531c78cf4751311c
[ "MIT" ]
null
null
null
multivision/oa_image_io.py
olaals/tpktools
50416ca554809e3d2f364b25531c78cf4751311c
[ "MIT" ]
null
null
null
import numpy as np import OpenEXR as exr import cv2 import Imath import matplotlib.pyplot as plt def readEXR(filename): exrfile = exr.InputFile(filename) header = exrfile.header() dw = header['dataWindow'] isize = (dw.max.y - dw.min.y + 1, dw.max.x - dw.min.x + 1) channelData = dict() # conver...
29.769231
90
0.630491
114
774
4.280702
0.5
0.018443
0.02459
0
0
0
0
0
0
0
0
0.009967
0.222222
774
25
91
30.96
0.800664
0.063307
0
0
0
0
0.047157
0
0
0
0
0
0
1
0.052632
false
0
0.263158
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd318b68f4231a08be74b1a2c64d0b4969b29c51
2,422
py
Python
NNet/utils/readNNet.py
noyahoch/Marabou
03eb551498287e5372d462e3c2ad4fcc3210a5fa
[ "BSD-3-Clause" ]
7
2020-01-27T21:25:49.000Z
2022-01-07T04:37:37.000Z
NNet/utils/readNNet.py
noyahoch/Marabou
03eb551498287e5372d462e3c2ad4fcc3210a5fa
[ "BSD-3-Clause" ]
1
2022-01-25T17:41:54.000Z
2022-01-26T02:27:51.000Z
NNet/utils/readNNet.py
noyahoch/Marabou
03eb551498287e5372d462e3c2ad4fcc3210a5fa
[ "BSD-3-Clause" ]
3
2020-03-14T17:12:17.000Z
2022-03-16T09:50:46.000Z
import numpy as np def readNNet(nnetFile, withNorm=False): ''' Read a .nnet file and return list of weight matrices and bias vectors Inputs: nnetFile: (string) .nnet file to read withNorm: (bool) If true, return normalization parameters Returns: weights: List of ...
27.83908
103
0.562758
311
2,422
4.382637
0.282958
0.040352
0.104916
0.061629
0.289068
0.242113
0.22157
0.200293
0.153338
0.088041
0
0.015449
0.30512
2,422
87
104
27.83908
0.794415
0.251858
0
0.480769
0
0
0.009665
0
0
0
0
0
0
1
0.019231
false
0
0.019231
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd336f08882633e139c7b8cf8e6bbf9503123d24
13,668
py
Python
models/model.py
hearai/hearai
2f2bc2923fa2bb170d9ed895c3f638e99811442f
[ "MIT" ]
16
2021-12-16T20:19:31.000Z
2022-03-19T15:59:23.000Z
models/model.py
hearai/hearai
2f2bc2923fa2bb170d9ed895c3f638e99811442f
[ "MIT" ]
34
2021-12-21T19:33:31.000Z
2022-03-31T19:04:39.000Z
models/model.py
hearai/hearai
2f2bc2923fa2bb170d9ed895c3f638e99811442f
[ "MIT" ]
5
2021-12-18T22:35:20.000Z
2022-02-20T12:26:39.000Z
from typing import Dict import neptune.new as neptune import numpy as np import pytorch_lightning as pl import torch import torch.nn as nn from config import NEPTUNE_API_TOKEN, NEPTUNE_PROJECT_NAME from sklearn.metrics import classification_report, f1_score from utils.summary_loss import SummaryLoss from math import c...
41.92638
136
0.592479
1,382
13,668
5.591896
0.194645
0.05823
0.054089
0.033644
0.273163
0.178571
0.149068
0.104296
0.059006
0.059006
0
0.003993
0.321993
13,668
325
137
42.055385
0.829934
0.156277
0
0.138655
0
0
0.071023
0.013938
0
0
0
0
0
1
0.054622
false
0
0.063025
0.004202
0.155462
0.012605
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd33abe036b992ac7ac194a0541c5439617437c4
2,305
py
Python
solutions/day09/solution.py
dbjohnson/advent-of-code-2021
2ed1d30362afa0a73c890730cea46de3291be21f
[ "MIT" ]
null
null
null
solutions/day09/solution.py
dbjohnson/advent-of-code-2021
2ed1d30362afa0a73c890730cea46de3291be21f
[ "MIT" ]
null
null
null
solutions/day09/solution.py
dbjohnson/advent-of-code-2021
2ed1d30362afa0a73c890730cea46de3291be21f
[ "MIT" ]
null
null
null
from functools import lru_cache from collections import defaultdict import pandas as pd import numpy as np with open('input.txt') as fh: depthmap = pd.DataFrame([{ 'row': row, 'col': col, 'height': int(d) } for row, line in enumerate(fh) for col, d in enumerate(line.str...
21.342593
67
0.516269
296
2,305
3.966216
0.331081
0.061329
0.044293
0.07155
0.205281
0.15247
0.109881
0.083475
0.056218
0
0
0.030619
0.334056
2,305
108
68
21.342593
0.734202
0.106291
0
0.223529
0
0
0.043372
0
0
0
0
0
0
1
0.011765
false
0
0.047059
0
0.082353
0.035294
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd3470135bfe7a2b8866c6a268c9e629dad7a8b7
3,467
py
Python
docs/conf.py
ocefpaf/pystac-client
ddf0e0566b2b1783a4d32d3d77f9f51b80270df3
[ "Apache-2.0" ]
52
2021-04-15T23:24:12.000Z
2022-03-09T23:02:27.000Z
docs/conf.py
ocefpaf/pystac-client
ddf0e0566b2b1783a4d32d3d77f9f51b80270df3
[ "Apache-2.0" ]
119
2021-04-13T11:42:01.000Z
2022-02-24T10:02:35.000Z
docs/conf.py
ocefpaf/pystac-client
ddf0e0566b2b1783a4d32d3d77f9f51b80270df3
[ "Apache-2.0" ]
14
2021-04-13T19:00:19.000Z
2022-02-23T09:17:30.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html import re import subprocess import sys from pathlib import Path # -- Path setup ------...
33.660194
97
0.654168
425
3,467
5.221176
0.48
0.024335
0.020279
0.01352
0.044164
0
0
0
0
0
0
0.003709
0.144505
3,467
102
98
33.990196
0.744437
0.496971
0
0
0
0
0.398949
0.03972
0
0
0
0.009804
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd36eb6513428b0c0f981f91eaea0aa21154992a
689
py
Python
cb_scripts/nums_square_cube.py
christopher-burke/python-scripts
bdbea2456130e0958b6a6ab8d138f4f19b39b934
[ "MIT" ]
1
2022-02-05T06:39:05.000Z
2022-02-05T06:39:05.000Z
cb_scripts/nums_square_cube.py
christopher-burke/python-scripts
bdbea2456130e0958b6a6ab8d138f4f19b39b934
[ "MIT" ]
null
null
null
cb_scripts/nums_square_cube.py
christopher-burke/python-scripts
bdbea2456130e0958b6a6ab8d138f4f19b39b934
[ "MIT" ]
1
2021-06-10T22:04:35.000Z
2021-06-10T22:04:35.000Z
#!/usr/bin/env python3 """Squares and Cubes for a range of numbers. Given a start and end, calucate the Square x**2 and the Cube x**3 for all numbers. Example of generator and functools.partial. """ from functools import partial def power(base, exponent): """Raise a base to the exponent.""" return base *...
20.264706
63
0.651669
109
689
4.045872
0.458716
0.031746
0.090703
0
0
0
0
0
0
0
0
0.016514
0.208999
689
33
64
20.878788
0.792661
0.400581
0
0
0
0
0.09596
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd36fd075f7cd95707b64e346e7a7db96e365eac
1,748
py
Python
mozdns/txt/tests.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
22
2015-01-16T01:36:32.000Z
2020-06-08T00:46:18.000Z
mozdns/txt/tests.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
8
2015-12-28T18:56:19.000Z
2019-04-01T17:33:48.000Z
mozdns/txt/tests.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
13
2015-01-13T20:56:22.000Z
2022-02-23T06:01:17.000Z
from django.test import TestCase from django.core.exceptions import ValidationError from mozdns.txt.models import TXT from mozdns.domain.models import Domain class TXTTests(TestCase): def setUp(self): self.o = Domain(name="org") self.o.save() self.o_e = Domain(name="oregonstate.org") ...
29.627119
69
0.587529
227
1,748
4.343612
0.242291
0.045639
0.085193
0.097363
0.44929
0.341785
0.341785
0.266734
0.266734
0.230223
0
0.005507
0.272883
1,748
58
70
30.137931
0.77026
0
0
0.229167
0
0
0.089817
0
0
0
0
0
0.145833
1
0.104167
false
0
0.083333
0
0.229167
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd39f1397ad328542fed8bb62d6c47dc4c191597
6,698
py
Python
xtesting/tests/unit/core/test_behaveframework.py
collivier/functest-xtesting
17739d718901a10f7ec0aaf9a6d53141294a347d
[ "Apache-2.0" ]
1
2020-05-15T12:58:58.000Z
2020-05-15T12:58:58.000Z
xtesting/tests/unit/core/test_behaveframework.py
collivier/functest-xtesting
17739d718901a10f7ec0aaf9a6d53141294a347d
[ "Apache-2.0" ]
null
null
null
xtesting/tests/unit/core/test_behaveframework.py
collivier/functest-xtesting
17739d718901a10f7ec0aaf9a6d53141294a347d
[ "Apache-2.0" ]
3
2018-02-28T15:55:14.000Z
2022-02-24T15:46:12.000Z
#!/usr/bin/env python # Copyright (c) 2019 Orange and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 """Define t...
37.418994
77
0.640042
823
6,698
4.985419
0.200486
0.083841
0.050695
0.048745
0.68389
0.637582
0.565684
0.516208
0.506702
0.418962
0
0.005939
0.220663
6,698
178
78
37.629213
0.780077
0.094357
0
0.453846
0
0
0.158331
0.069228
0
0
0
0
0.192308
1
0.146154
false
0.038462
0.038462
0
0.223077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd3a28ba018f4c08dd5b0ec2fb2ba69c859e803c
963
py
Python
data/test/python/cd3a28ba018f4c08dd5b0ec2fb2ba69c859e803cdjango.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/test/python/cd3a28ba018f4c08dd5b0ec2fb2ba69c859e803cdjango.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/test/python/cd3a28ba018f4c08dd5b0ec2fb2ba69c859e803cdjango.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
# coding=utf-8 from fabric.api import env, run COMMAND_COLLECTSTATIC = 'collectstatic' COMMAND_SYNCDB = 'syncdb' COMMAND_MIGRATE = 'migrate' _default_command = '{python} {manage} {command}' _commands_list = { COMMAND_COLLECTSTATIC: 'yes yes | {python} {manage} {command}', COMMAND_MIGRATE: '{python} {manage} ...
24.075
67
0.677051
115
963
5.356522
0.33913
0.113636
0.097403
0.071429
0.107143
0
0
0
0
0
0
0.001302
0.202492
963
39
68
24.692308
0.800781
0.012461
0
0
0
0
0.14557
0
0
0
0
0
0
1
0.074074
false
0
0.037037
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd3da08c421072d75aa5562437930fcd09889489
8,820
py
Python
commercialoperator/components/bookings/utils.py
wilsonc86/ledger
a60a681e547f37e4ac81cb93dffaf90aea8c8151
[ "Apache-2.0" ]
null
null
null
commercialoperator/components/bookings/utils.py
wilsonc86/ledger
a60a681e547f37e4ac81cb93dffaf90aea8c8151
[ "Apache-2.0" ]
null
null
null
commercialoperator/components/bookings/utils.py
wilsonc86/ledger
a60a681e547f37e4ac81cb93dffaf90aea8c8151
[ "Apache-2.0" ]
null
null
null
from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from django.conf import settings from django.core.exceptions import ValidationError from datetime import datetime, timedelta from commercialoperator.components.main.models import Park from commercialoperator.components.proposals....
40.090909
175
0.675057
1,098
8,820
5.176685
0.1949
0.027094
0.030084
0.039585
0.427692
0.378958
0.333216
0.32266
0.284835
0.262139
0
0.008164
0.222336
8,820
219
176
40.273973
0.820528
0.218367
0
0.228571
0
0
0.114567
0.006454
0
0
0
0
0
1
0.085714
false
0
0.1
0
0.242857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd3ebb35376a9ad6bb35907b043a70f74ff3d06d
2,488
py
Python
driver.py
Nobregaigor/Robot-path-tracking-and-obstacle-avoidance-simulation
23ab060316c5978724b3f109d851ea33206d0e10
[ "MIT" ]
6
2020-05-01T23:33:13.000Z
2021-12-18T08:13:50.000Z
driver.py
Nobregaigor/Robot-path-tracking-and-obstacle-avoidance-simulation--Python
23ab060316c5978724b3f109d851ea33206d0e10
[ "MIT" ]
null
null
null
driver.py
Nobregaigor/Robot-path-tracking-and-obstacle-avoidance-simulation--Python
23ab060316c5978724b3f109d851ea33206d0e10
[ "MIT" ]
2
2020-05-06T11:54:10.000Z
2020-07-30T01:58:06.000Z
import pygame import math import path_planning as pp class Driver(): def __init__(self, vehicle, path, settings): """ Driver """ #_______main objects references_______ #reference to driver vehicle object: self.vehicle = vehicle #creating a plan object: self.plan = p...
35.542857
123
0.63545
286
2,488
5.129371
0.293706
0.04499
0.057941
0.051806
0.132243
0.109066
0.06544
0.06544
0
0
0
0
0.268489
2,488
69
124
36.057971
0.806044
0.17283
0
0.069767
0
0
0.066532
0
0
0
0
0
0
1
0.116279
false
0
0.069767
0
0.325581
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd423af6c5271daa0eac7f6a8ca5e2cf87ffc2fe
2,752
py
Python
test/test_api_v1_module.py
feizhihui/deepnlp
cc6647d65ec39aadd35e4a4748da92df5b79bd48
[ "MIT" ]
null
null
null
test/test_api_v1_module.py
feizhihui/deepnlp
cc6647d65ec39aadd35e4a4748da92df5b79bd48
[ "MIT" ]
null
null
null
test/test_api_v1_module.py
feizhihui/deepnlp
cc6647d65ec39aadd35e4a4748da92df5b79bd48
[ "MIT" ]
1
2019-05-13T14:24:15.000Z
2019-05-13T14:24:15.000Z
#coding:utf-8 ''' Demo for calling API of deepnlp.org web service Anonymous user of this package have limited access on the number of API calling 100/day Please Register and Login Your Account to deepnlp.org to get unlimited access to fully support api_service API module, now supports both windows and linux platforms. ...
38.222222
133
0.682776
418
2,752
4.370813
0.284689
0.021894
0.043788
0.035577
0.314176
0.296661
0.181719
0.059113
0.059113
0
0
0.014169
0.153706
2,752
71
134
38.760563
0.770288
0.306323
0
0.255319
0
0
0.211896
0
0.085106
0
0
0
0
1
0.021277
false
0
0.106383
0
0.148936
0.255319
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd46541bba89d45678808a7b911ed3c9f61dd510
4,245
py
Python
utils/dataset_utils.py
dpaiton/DeepSparseCoding
5ea01fa8770794df5e13743aa3f2d85297c27eb1
[ "MIT" ]
12
2017-04-27T17:19:31.000Z
2021-11-07T03:37:59.000Z
utils/dataset_utils.py
dpaiton/DeepSparseCoding
5ea01fa8770794df5e13743aa3f2d85297c27eb1
[ "MIT" ]
12
2018-03-21T01:16:25.000Z
2022-02-10T00:21:58.000Z
utils/dataset_utils.py
dpaiton/DeepSparseCoding
5ea01fa8770794df5e13743aa3f2d85297c27eb1
[ "MIT" ]
12
2017-02-01T19:49:57.000Z
2021-12-08T03:16:58.000Z
import os import sys import numpy as np import torch from torchvision import datasets, transforms ROOT_DIR = os.path.dirname(os.getcwd()) if ROOT_DIR not in sys.path: sys.path.append(ROOT_DIR) import DeepSparseCoding.utils.data_processing as dp import DeepSparseCoding.datasets.synthetic as synthetic class CustomTe...
42.878788
107
0.660306
518
4,245
5.169884
0.239382
0.033607
0.026139
0.034354
0.446229
0.43652
0.373413
0.348021
0.309186
0.309186
0
0.009786
0.229682
4,245
98
108
43.316327
0.809174
0.00636
0
0.280899
0
0
0.092527
0.020166
0
0
0
0
0.011236
1
0.044944
false
0
0.089888
0.022472
0.179775
0.022472
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd485ea8847607e1b8262b17b33a7d95c7b05c48
2,327
py
Python
src/empirical_study.py
arshajithwolverine/Recommentation-System_KGNN-LS
82ad10633a56794bbc38dc7e6c40a3636c7d570a
[ "MIT" ]
133
2019-06-20T08:38:04.000Z
2022-03-30T07:57:14.000Z
src/empirical_study.py
piaofu110/KGNN-LS
3afd76361b623e9e38b822861c79bcd61dae41aa
[ "MIT" ]
10
2019-07-06T12:53:01.000Z
2021-11-10T12:58:50.000Z
src/empirical_study.py
piaofu110/KGNN-LS
3afd76361b623e9e38b822861c79bcd61dae41aa
[ "MIT" ]
40
2019-08-07T06:02:31.000Z
2022-01-05T15:19:29.000Z
import networkx as nx import numpy as np import argparse if __name__ == '__main__': np.random.seed(555) NUM = 10000 parser = argparse.ArgumentParser() parser.add_argument('-d', type=str, default='music') args = parser.parse_args() DATASET = args.d kg_np = np.load('../data/' + DATASET + '...
36.359375
104
0.621401
333
2,327
3.966967
0.231231
0.183195
0.099924
0.059046
0.558668
0.460257
0.440575
0.3838
0.3838
0.348221
0
0.023367
0.282768
2,327
63
105
36.936508
0.768125
0.010743
0
0.181818
0
0
0.033913
0
0
0
0
0
0
1
0
false
0
0.054545
0
0.054545
0.072727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd4d5dd7883050a254679a4b1f93de18a8465561
1,179
py
Python
datacamp-master/22-introduction-to-time-series-analysis-in-python/04-moving-average-ma-and-arma-models/08-equivalance-of-ar(1)-and-ma(infinity).py
vitthal10/datacamp
522d2b192656f7f6563bf6fc33471b048f1cf029
[ "MIT" ]
1
2020-06-11T01:32:36.000Z
2020-06-11T01:32:36.000Z
22-introduction-to-time-series-analysis-in-python/04-moving-average-ma-and-arma-models/08-equivalance-of-ar(1)-and-ma(infinity).py
AndreasFerox/DataCamp
41525d7252f574111f4929158da1498ee1e73a84
[ "MIT" ]
null
null
null
22-introduction-to-time-series-analysis-in-python/04-moving-average-ma-and-arma-models/08-equivalance-of-ar(1)-and-ma(infinity).py
AndreasFerox/DataCamp
41525d7252f574111f4929158da1498ee1e73a84
[ "MIT" ]
1
2021-08-08T05:09:52.000Z
2021-08-08T05:09:52.000Z
''' Equivalence of AR(1) and MA(infinity) To better understand the relationship between MA models and AR models, you will demonstrate that an AR(1) model is equivalent to an MA(∞ ∞ ) model with the appropriate parameters. You will simulate an MA model with parameters 0.8,0.82,0.83,… 0.8 , 0.8 2 , 0.8 3 , … for a lar...
19.983051
136
0.74894
220
1,179
4.040909
0.386364
0.024747
0.013498
0.022497
0.195726
0.195726
0.195726
0.170979
0.170979
0.146232
0
0.066124
0.166243
1,179
59
137
19.983051
0.824008
0.735369
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
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
cd4e4c3a86cc4a31b024c46ddddde1fa3e66e93b
3,752
py
Python
imutils.py
shimoda-uec/ssdd
564c3e08fae7a158516cdbd9f3599a74dc748aff
[ "MIT" ]
33
2019-11-05T07:15:36.000Z
2021-04-27T06:33:47.000Z
imutils.py
shimoda-uec/ssdd
564c3e08fae7a158516cdbd9f3599a74dc748aff
[ "MIT" ]
1
2019-11-18T13:02:40.000Z
2019-11-18T13:02:54.000Z
imutils.py
shimoda-uec/ssdd
564c3e08fae7a158516cdbd9f3599a74dc748aff
[ "MIT" ]
3
2019-11-25T11:00:39.000Z
2021-03-27T06:53:21.000Z
import PIL.Image import random import numpy as np import cv2 class RandomHorizontalFlip(): def __init__(self): return def __call__(self, inputs): if bool(random.getrandbits(1)): outputs=[] for inp in inputs: out = np.fliplr(inp).copy() ou...
32.068376
91
0.567697
502
3,752
4.035857
0.231076
0.047384
0.027147
0.033564
0.201382
0.158934
0.096742
0.096742
0.096742
0.061204
0
0.033487
0.307569
3,752
117
92
32.068376
0.746343
0.003998
0
0.265306
0
0
0
0
0
0
0
0
0
1
0.122449
false
0
0.061224
0.020408
0.326531
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd503144da89b34c7f7e0c6f7d30f63249106454
398
py
Python
dfmt/svg/run.py
wangrl2016/coding
fd6cd342cade42379c4a0447d83e17c6596fd3a3
[ "MIT" ]
4
2021-02-20T03:47:48.000Z
2021-11-09T17:25:43.000Z
dfmt/svg/run.py
wangrl2016/coding
fd6cd342cade42379c4a0447d83e17c6596fd3a3
[ "MIT" ]
null
null
null
dfmt/svg/run.py
wangrl2016/coding
fd6cd342cade42379c4a0447d83e17c6596fd3a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import subprocess if __name__ == '__main__': out_dir = 'out' if not os.path.exists(out_dir): os.mkdir(out_dir) subprocess.run(['cargo', 'build', '--release']) exe = 'target/release/svg' subprocess.run([exe, '-i', 'test/simple-text.svg', '-o', 'out/simple-t...
26.533333
93
0.585427
54
398
4.111111
0.574074
0.081081
0.117117
0
0
0
0
0
0
0
0
0.003165
0.20603
398
14
94
28.428571
0.699367
0.052764
0
0
0
0
0.335106
0
0
0
0
0
0
1
0
false
0
0.2
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
cd5534b9b393b4ca6ad72c44a3438fcc6e74b3d0
2,501
py
Python
socketshark/utils.py
Play2Live/socketshark
9b1e40654bf629c593079fb44c548911d4c864af
[ "MIT" ]
null
null
null
socketshark/utils.py
Play2Live/socketshark
9b1e40654bf629c593079fb44c548911d4c864af
[ "MIT" ]
null
null
null
socketshark/utils.py
Play2Live/socketshark
9b1e40654bf629c593079fb44c548911d4c864af
[ "MIT" ]
null
null
null
import asyncio import ssl import aiohttp from . import constants as c def _get_rate_limit_wait(log, resp, opts): """ Returns the number of seconds we should wait given a 429 HTTP response and HTTP options. """ max_wait = 3600 wait = opts['wait'] header_name = opts['rate_limit_reset_he...
35.225352
78
0.551779
290
2,501
4.596552
0.351724
0.060015
0.027007
0.042761
0.150038
0.150038
0.127532
0.087022
0.087022
0.087022
0
0.007524
0.362255
2,501
70
79
35.728571
0.828213
0.067173
0
0.232143
0
0
0.104671
0.012111
0
0
0
0
0
1
0.017857
false
0
0.071429
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
cd597b04327e251c7079f983fdc1e98e38cf4a8a
4,324
py
Python
cogs/member_.py
himo1101/NFlegel
7621f5d71b41b71faaf44d142f3b903b0471873a
[ "MIT" ]
null
null
null
cogs/member_.py
himo1101/NFlegel
7621f5d71b41b71faaf44d142f3b903b0471873a
[ "MIT" ]
null
null
null
cogs/member_.py
himo1101/NFlegel
7621f5d71b41b71faaf44d142f3b903b0471873a
[ "MIT" ]
null
null
null
from discord.ext import commands from flegelapi.pg import default, server from distutils.util import strtobool import discord member_table= """ member_( id serial PRIMARY KEY, server_id interger NOT NULL, role_ld interger, channel_id interger, custom_mes character varying DEFAULT が入出しました。, on_o...
32.757576
102
0.56568
503
4,324
4.713718
0.250497
0.033741
0.053142
0.042176
0.332349
0.250527
0.22016
0.22016
0.204133
0.140025
0
0
0.315911
4,324
132
103
32.757576
0.801555
0
0
0.131313
0
0
0.178955
0
0
0
0
0
0
1
0.020202
false
0
0.040404
0
0.121212
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd5a19f0cbafdf639c273ea9eebb620d7cbc509e
7,720
py
Python
client.py
andreidorin13/cs544-messaging-protocol
40d26cb20234a4ad58095150795946aceaf9e4d4
[ "MIT" ]
null
null
null
client.py
andreidorin13/cs544-messaging-protocol
40d26cb20234a4ad58095150795946aceaf9e4d4
[ "MIT" ]
null
null
null
client.py
andreidorin13/cs544-messaging-protocol
40d26cb20234a4ad58095150795946aceaf9e4d4
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' Andrei Dorin 06/10/2018 User interface for WISP chat implementation ''' import argparse import logging import signal import sys import time import queue import select import getpass from wisp_client import WispClient from wisp_common import State, WispRequest, WispResponse, WispMessage, WISP_DEF...
32.166667
116
0.584197
904
7,720
4.850664
0.280973
0.032611
0.022349
0.041049
0.191106
0.119498
0.086203
0.073432
0.036488
0.036488
0
0.022127
0.303368
7,720
239
117
32.301255
0.793232
0.137953
0
0.236025
0
0.006211
0.135728
0.017724
0
0
0
0
0
1
0.10559
false
0.043478
0.062112
0
0.217391
0.093168
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd5e1e26e39c56d3ae62b8fd2032ab324293acc8
526
py
Python
lib/redis_set_get.py
InformaticsResearchCenter/ITeung
2e3f76294c3affca07934293cdeb46d6d618180a
[ "MIT" ]
null
null
null
lib/redis_set_get.py
InformaticsResearchCenter/ITeung
2e3f76294c3affca07934293cdeb46d6d618180a
[ "MIT" ]
37
2020-03-22T23:21:14.000Z
2020-09-16T15:07:06.000Z
lib/redis_set_get.py
InformaticsResearchCenter/ITeung
2e3f76294c3affca07934293cdeb46d6d618180a
[ "MIT" ]
1
2020-09-08T11:31:30.000Z
2020-09-08T11:31:30.000Z
import redis def set(key, value, expired): #use None if don't want to use expired time try: r = redis.Redis() r.set(name=key, value=value, ex=expired) return True, None except Exception as e: return False, f'{e}' def get(key): #key to get value r = redis.Redis() ...
21.04
48
0.579848
78
526
3.910256
0.461538
0.059016
0.072131
0
0
0
0
0
0
0
0
0.002786
0.31749
526
25
49
21.04
0.846797
0.110266
0
0.2
0
0
0.017131
0
0
0
0
0
0
1
0.15
false
0
0.05
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
cd5e82adedde50cba3e364b3ccb25d0a6e80401a
18,185
py
Python
FTDISPI.py
g-i-wilson/spi-tools
1c961a97572a366235f9f3b0517d8201fa8be371
[ "MIT" ]
1
2022-03-22T20:44:01.000Z
2022-03-22T20:44:01.000Z
FTDISPI.py
g-i-wilson/spi-tools
1c961a97572a366235f9f3b0517d8201fa8be371
[ "MIT" ]
null
null
null
FTDISPI.py
g-i-wilson/spi-tools
1c961a97572a366235f9f3b0517d8201fa8be371
[ "MIT" ]
null
null
null
from pyftdi.spi import SpiController from pyftdi.gpio import GpioSyncController import serial import time import sys import JSONFile dbg = False def createByteList(addrList, dataList): newBytes = [] for byte in addrList: newBytes.append(byte) for byte in dataList: newBytes.append(byte) ...
36.081349
144
0.534451
1,987
18,185
4.851535
0.151988
0.03112
0.006846
0.012552
0.302282
0.21888
0.178942
0.145124
0.129979
0.122925
0
0.017353
0.334506
18,185
503
145
36.153082
0.77921
0.049711
0
0.270023
0
0.002288
0.084813
0
0
0
0.003713
0
0
1
0.105263
false
0.011442
0.01373
0.011442
0.187643
0.155606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd63c34fbdfbd183f707a4b54997655b51643809
3,417
py
Python
src/onegov/gazette/views/groups.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/views/groups.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/views/groups.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from morepath import redirect from onegov.core.security import Private from onegov.gazette import _ from onegov.gazette import GazetteApp from onegov.gazette.forms import EmptyForm from onegov.gazette.layout import Layout from onegov.user import UserGroup from onegov.user import UserGroupCollection from onegov.user.for...
23.244898
66
0.605502
375
3,417
5.421333
0.237333
0.054107
0.053123
0.064929
0.432366
0.418593
0.364978
0.343827
0.205116
0.205116
0
0
0.272169
3,417
146
67
23.40411
0.817451
0.073164
0
0.457143
0
0
0.15893
0
0
0
0
0
0
1
0.038095
false
0
0.085714
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
cd64ffc5e28a3c1d060e7cdf2e73c1f3c1f202dd
1,466
py
Python
personal_utilities/fourier_filters.py
dbstein/personal_utilities
3a4c7d2416b13a87f88fc0e400b299d648e1e541
[ "Apache-2.0" ]
null
null
null
personal_utilities/fourier_filters.py
dbstein/personal_utilities
3a4c7d2416b13a87f88fc0e400b299d648e1e541
[ "Apache-2.0" ]
null
null
null
personal_utilities/fourier_filters.py
dbstein/personal_utilities
3a4c7d2416b13a87f88fc0e400b299d648e1e541
[ "Apache-2.0" ]
null
null
null
import numpy as np class SimpleFourierFilter(object): """ Class to apply simple Fourier Filtration to a vector Filter types: 'fraction' (requires kwarg: 'fraction' to be set) 'rule 36' (can set kwarg: 'power' but not necessary) """ def __init__(self, modes, filter_type, **kwargs):...
34.093023
78
0.563438
188
1,466
4.234043
0.345745
0.08794
0.045226
0.070352
0.09799
0.09799
0.052764
0
0
0
0
0.016882
0.313097
1,466
42
79
34.904762
0.773585
0.122101
0
0.129032
0
0
0.065287
0
0
0
0
0
0
1
0.096774
false
0
0.032258
0
0.193548
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd682359aededb5fca5a5b75e857cce2e964a4f3
1,385
py
Python
Final/P2Pchat.py
cainanBlack/csc321
9cebf9c3b61befda932732316b7406f1462c0bee
[ "MIT" ]
null
null
null
Final/P2Pchat.py
cainanBlack/csc321
9cebf9c3b61befda932732316b7406f1462c0bee
[ "MIT" ]
null
null
null
Final/P2Pchat.py
cainanBlack/csc321
9cebf9c3b61befda932732316b7406f1462c0bee
[ "MIT" ]
null
null
null
import netifaces import argparse import os import zmq import threading def recieve(message): ctx = zmq.Context.instance() reciever = ctx.socket(zmq.SUB) for last in range(1, 255): reciever.connect("tcp://{0}.{1}:9000".format(message, last)) reciever.setsockopt(zmq.SUBSCRIBE, b'') while T...
26.634615
102
0.626715
167
1,385
5.095808
0.502994
0.045828
0.030552
0.049354
0
0
0
0
0
0
0
0.020427
0.222383
1,385
51
103
27.156863
0.769731
0
0
0.2
0
0
0.096029
0
0
0
0
0
0
1
0.05
false
0
0.125
0
0.175
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd68c200c93d96ecc3b7ad0ac3280311cd7d42ce
1,822
py
Python
src/playerprofile.py
MarinVlaic/AIBG
cf4960586bdb3c32f8e566c10f9f1e59e6f9ac2d
[ "MIT" ]
null
null
null
src/playerprofile.py
MarinVlaic/AIBG
cf4960586bdb3c32f8e566c10f9f1e59e6f9ac2d
[ "MIT" ]
null
null
null
src/playerprofile.py
MarinVlaic/AIBG
cf4960586bdb3c32f8e566c10f9f1e59e6f9ac2d
[ "MIT" ]
null
null
null
class PlayerProfile: def __init__(self, id): self.cities = [] self.resources = { "SHEEP": 0, "WOOD": 0, "WHEAT": 0, "CLAY": 0, "IRON": 0 } self.current_builder_intersection_position_id = None self.id = id sel...
35.038462
110
0.593853
210
1,822
4.928571
0.290476
0.028986
0.067633
0.115942
0.202899
0.202899
0.125604
0.125604
0.125604
0
0
0.01045
0.317234
1,822
51
111
35.72549
0.821543
0
0
0.133333
0
0
0.017014
0
0
0
0
0
0
1
0.155556
false
0
0
0.022222
0.355556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd6940cd949b8d012c79a302492e17dd59770ba1
2,267
py
Python
source/CTRW.py
tangxiangong/ClassTop
fdafdafd165672ae464210fb8c66c70256d50956
[ "MIT" ]
null
null
null
source/CTRW.py
tangxiangong/ClassTop
fdafdafd165672ae464210fb8c66c70256d50956
[ "MIT" ]
null
null
null
source/CTRW.py
tangxiangong/ClassTop
fdafdafd165672ae464210fb8c66c70256d50956
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # @Time : 2021/12/1 13:27 import numpy as np from numpy import random import matplotlib.pyplot as plt from trajectory import Trajectory from rnd import stable_rnd, skewed_stable_rnd class CTRW(Trajectory): def __init__(self, t_len, ind_waiting, ind_jump, init_positi...
27.313253
70
0.549625
317
2,267
3.719243
0.309148
0.042409
0.050891
0.061069
0.184902
0.184902
0.154368
0.154368
0
0
0
0.054106
0.307014
2,267
82
71
27.646341
0.696372
0.029996
0
0.171429
0
0
0.052823
0
0
0
0
0
0
1
0.042857
false
0
0.071429
0
0.128571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd6b1d33d27551aa6e7a920f48a0b7633b6280b3
3,931
py
Python
Paris_G_1-2-3_v2.py
Gaspe-R/Rendez-vous-prefecture-Paris
e24d1bf0ae6ca5860ad858957c5e923c0ac3d85a
[ "MIT" ]
null
null
null
Paris_G_1-2-3_v2.py
Gaspe-R/Rendez-vous-prefecture-Paris
e24d1bf0ae6ca5860ad858957c5e923c0ac3d85a
[ "MIT" ]
null
null
null
Paris_G_1-2-3_v2.py
Gaspe-R/Rendez-vous-prefecture-Paris
e24d1bf0ae6ca5860ad858957c5e923c0ac3d85a
[ "MIT" ]
null
null
null
from sqlite3 import Date from twilio.rest import Client from datetime import datetime from playsound import playsound from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager import csv import time ################################ "PREFCTURE DE PARIS" ###########################...
36.738318
126
0.522768
419
3,931
4.832936
0.398568
0.04
0.053333
0.059259
0.319506
0.30716
0.278025
0.232099
0.171852
0.090864
0
0.012231
0.313661
3,931
106
127
37.084906
0.738325
0.155177
0
0.295082
0
0
0.191754
0.063011
0
0
0
0
0
1
0
false
0
0.131148
0
0.131148
0.098361
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd6e8efff351684ee42b6f8c78aec9644cacd755
8,661
py
Python
acme_tiny.py
dennydai/docker-letsencrypt
898fa70665d321e527c7fcc463a57a66dbbdab26
[ "MIT" ]
22
2015-12-06T06:19:43.000Z
2016-03-10T06:44:34.000Z
acme_tiny.py
dennydai/docker-letsencrypt
898fa70665d321e527c7fcc463a57a66dbbdab26
[ "MIT" ]
1
2016-09-11T07:38:45.000Z
2016-09-11T10:50:26.000Z
acme_tiny.py
dennydai/docker-letsencrypt
898fa70665d321e527c7fcc463a57a66dbbdab26
[ "MIT" ]
4
2015-12-22T01:25:16.000Z
2016-01-14T13:24:27.000Z
#!/usr/bin/env python import argparse, subprocess, json, os, os.path, urllib2, sys, base64, binascii, time, \ hashlib, re, copy, textwrap #CA = "https://acme-staging.api.letsencrypt.org" CA = "https://acme-v01.api.letsencrypt.org" def get_crt(account_key, csr, acme_dir): # helper function base64 encode for j...
43.522613
221
0.592772
1,041
8,661
4.837656
0.300672
0.023828
0.03058
0.020651
0.226966
0.185068
0.159253
0.132645
0.111199
0.091739
0
0.023455
0.246854
8,661
198
222
43.742424
0.748582
0.051149
0
0.189024
0
0.02439
0.28197
0.035841
0
0
0
0
0.012195
1
0.018293
false
0.006098
0.006098
0.006098
0.04878
0.012195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd6f2ad698e4fc98b32ec95e10035f7d48a91c97
3,667
py
Python
esb/Tags.py
sgbalogh/esb.py
06e8f86b94d5dadc628a0fbd396212649328864d
[ "MIT" ]
null
null
null
esb/Tags.py
sgbalogh/esb.py
06e8f86b94d5dadc628a0fbd396212649328864d
[ "MIT" ]
null
null
null
esb/Tags.py
sgbalogh/esb.py
06e8f86b94d5dadc628a0fbd396212649328864d
[ "MIT" ]
null
null
null
class Tags: class Thematic: ACC_NOTE = "account:note" DELIMITER = "delimiter:thematic" FAM_SIBLINGS = "fam:siblings" FAM_CHILDREN = "fam:children" FAM_PARENTS = "fam:parents" FAM_SPOUSE = "fam:spouse" META_NO_REMARK = "meta:no-remarks" META_PARENT...
35.95098
77
0.642214
464
3,667
4.747845
0.211207
0.066727
0.020427
0.010894
0
0
0
0
0
0
0
0
0.251432
3,667
101
78
36.306931
0.80255
0
0
0.02381
0
0
0.360884
0.099018
0
0
0
0
0
1
0
false
0
0
0
0.035714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd7529c73cff8550931b72e595537b4c1b291bee
1,940
py
Python
scripts/stats_wrapper.py
gpertea/regtools
a59d5dbd3268b0d83412e6fe81cf7e924c7bcb7c
[ "MIT" ]
70
2015-08-05T21:32:51.000Z
2021-11-26T13:26:33.000Z
scripts/stats_wrapper.py
gpertea/regtools
a59d5dbd3268b0d83412e6fe81cf7e924c7bcb7c
[ "MIT" ]
145
2015-08-05T22:27:58.000Z
2022-03-14T21:50:17.000Z
scripts/stats_wrapper.py
gpertea/regtools
a59d5dbd3268b0d83412e6fe81cf7e924c7bcb7c
[ "MIT" ]
29
2015-08-01T02:19:40.000Z
2021-12-16T20:02:40.000Z
import glob import subprocess import os import argparse import shutil input_parser = argparse.ArgumentParser( description="Run RegTools stats script", ) input_parser.add_argument( 'tag', help="Variant tag parameter used to run RegTools.", ) args = input_parser.parse_args() tag = args.tag cwd = os.getcwd(...
33.448276
107
0.676804
266
1,940
4.766917
0.451128
0.037855
0.028391
0.028391
0.0347
0
0
0
0
0
0
0.005316
0.224227
1,940
57
108
34.035088
0.837209
0.094845
0
0.16
0
0
0.215877
0.061108
0
0
0
0
0
1
0
false
0
0.12
0
0.12
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd7892510c7f345ccc184879db2d6bb6e417c44a
451
py
Python
lib/model/utils/plt_loss.py
PhoneSix/Domain-Contrast
5c674b581bce9beacf5bc0dd13113f33c4050495
[ "MIT" ]
4
2021-07-31T01:04:15.000Z
2022-03-09T07:23:10.000Z
lib/model/utils/plt_loss.py
PhoneSix/Domain-Contrast
5c674b581bce9beacf5bc0dd13113f33c4050495
[ "MIT" ]
null
null
null
lib/model/utils/plt_loss.py
PhoneSix/Domain-Contrast
5c674b581bce9beacf5bc0dd13113f33c4050495
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import os def plt_loss(epoch, dir_, name, value): if not os.path.exists(dir_): os.makedirs(dir_) axis = np.linspace(1,epoch,epoch) label = '{}'.format(name) fig = plt.figure() plt.title(label) plt.plot(axis, value) # plt.legend() ...
25.055556
47
0.62306
66
451
4.181818
0.560606
0.050725
0
0
0
0
0
0
0
0
0
0.002809
0.210643
451
18
48
25.055556
0.772472
0.026608
0
0
0
0
0.048387
0
0
0
0
0
0
1
0.0625
false
0
0.1875
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
cd79597c4dc624f2537254fe68c7bb39e5b6003c
2,549
py
Python
apps/insar.py
giswqs/streamlit-insar
e2c0897f01aeff96cd119cce8cf6dd3d8fb0e455
[ "MIT" ]
5
2021-12-14T23:28:36.000Z
2022-02-27T14:35:29.000Z
apps/insar.py
giswqs/streamlit-insar
e2c0897f01aeff96cd119cce8cf6dd3d8fb0e455
[ "MIT" ]
null
null
null
apps/insar.py
giswqs/streamlit-insar
e2c0897f01aeff96cd119cce8cf6dd3d8fb0e455
[ "MIT" ]
null
null
null
import folium import altair as alt import leafmap.foliumap as leafmap import pandas as pd import streamlit as st def app(): st.title("InSAR") option = st.radio("Choose an option", ("Marker Cluster", "Circle Marker")) m = leafmap.Map( center=[29.7029, -95.3335], latlon_control=False, zoom=16, he...
25.747475
85
0.433503
266
2,549
3.996241
0.402256
0.019755
0.035748
0.020696
0.135466
0.107244
0.079022
0.079022
0.079022
0.079022
0
0.027913
0.437819
2,549
98
86
26.010204
0.713887
0
0
0.168675
0
0
0.095332
0
0
0
0
0
0
1
0.012048
false
0
0.060241
0
0.072289
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd7a330fb695d24e5d3e2270fbbe2e1e0d11d2dc
2,105
py
Python
solve_net.py
a1exwang/theano-cnn-intro
5f6ecdcb2908afb34a7d94e69b1d1ab13beb3c62
[ "MIT" ]
null
null
null
solve_net.py
a1exwang/theano-cnn-intro
5f6ecdcb2908afb34a7d94e69b1d1ab13beb3c62
[ "MIT" ]
null
null
null
solve_net.py
a1exwang/theano-cnn-intro
5f6ecdcb2908afb34a7d94e69b1d1ab13beb3c62
[ "MIT" ]
null
null
null
from utils import LOG_INFO import numpy as np def data_iterator(x, y, batch_size, shuffle=True): indx = range(len(x)) if shuffle: np.random.shuffle(indx) for start_idx in range(0, len(x), batch_size): end_idx = min(start_idx + batch_size, len(x)) yield x[start_idx: end_idx], y[sta...
39.716981
116
0.443705
231
2,105
3.774892
0.251082
0.061927
0.045872
0.038991
0.144495
0.116972
0.073395
0.073395
0.073395
0
0
0.009821
0.467933
2,105
52
117
40.480769
0.76875
0
0
0.238095
0
0
0.061283
0
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd7b0a77a1f93e1e0546019ec5051874f1e448ee
1,199
py
Python
playground/test1.py
mathee92/unirentalz
803c58628ebda002e2c127db11fbaddf181ef394
[ "MIT" ]
null
null
null
playground/test1.py
mathee92/unirentalz
803c58628ebda002e2c127db11fbaddf181ef394
[ "MIT" ]
null
null
null
playground/test1.py
mathee92/unirentalz
803c58628ebda002e2c127db11fbaddf181ef394
[ "MIT" ]
null
null
null
# ----------- # User Instructions # # Modify the valid_month() function to verify # whether the data a user enters is a valid # month. If the passed in parameter 'month' # is not a valid month, return None. # If 'month' is a valid month, then return # the name of the month with the first letter # capitalized. # ...
18.734375
46
0.539616
155
1,199
4.135484
0.451613
0.078003
0.051482
0.040562
0
0
0
0
0
0
0
0.015796
0.313595
1,199
63
47
19.031746
0.763062
0.247706
0
0
0
0
0.110485
0
0
0
0
0
0
1
0.125
false
0
0.05
0.025
0.325
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd7da929a4d4176f292520c09ac6f877772c0b49
2,274
py
Python
hookio/logs.py
Marak/hook.io-sdk-python
722b04eb0832ef712d5dcd491899996088e1aa8b
[ "Unlicense" ]
1
2021-06-15T11:52:44.000Z
2021-06-15T11:52:44.000Z
hookio/logs.py
Marak/hook.io-sdk-python
722b04eb0832ef712d5dcd491899996088e1aa8b
[ "Unlicense" ]
null
null
null
hookio/logs.py
Marak/hook.io-sdk-python
722b04eb0832ef712d5dcd491899996088e1aa8b
[ "Unlicense" ]
null
null
null
import sys import weakref import json import logging from .utils import opt_json, Response2JSONLinesIterator from six import StringIO log = logging.getLogger(__name__) class Logs: def __init__(self, client): self.client = weakref.proxy(client) def read(self, url, raw=False, raw_data=True, **opts): ...
35.53125
87
0.575638
282
2,274
4.535461
0.294326
0.05473
0.02502
0.04222
0.137608
0.137608
0.137608
0.137608
0.059421
0.059421
0
0.001254
0.298593
2,274
63
88
36.095238
0.800627
0
0
0.074074
0
0
0.118294
0
0
0
0
0
0.037037
1
0.12963
false
0
0.111111
0
0.37037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd7f21d270d7885499684e88d3eb5ad2fac11de9
6,376
py
Python
alberto/annotation/train.py
lettomobile/DeepPoseKit
a922d2d99cd55d0a3909c1f3f8b2bf8c377ff503
[ "Apache-2.0" ]
1
2021-11-01T02:08:00.000Z
2021-11-01T02:08:00.000Z
alberto/annotation/train.py
albertoursino/DeepPoseKit
a922d2d99cd55d0a3909c1f3f8b2bf8c377ff503
[ "Apache-2.0" ]
null
null
null
alberto/annotation/train.py
albertoursino/DeepPoseKit
a922d2d99cd55d0a3909c1f3f8b2bf8c377ff503
[ "Apache-2.0" ]
null
null
null
from alberto.annotation import annotation_set from pandas import np from deepposekit.io import TrainingGenerator, DataGenerator from deepposekit.augment import FlipAxis import imgaug.augmenters as iaa import imgaug as ia from deepposekit.models import StackedHourglass from deepposekit.models import load_model import ...
32.697436
132
0.606336
831
6,376
4.54272
0.244284
0.042384
0.020662
0.028609
0.396556
0.346225
0.32
0.297748
0.297748
0.229404
0
0.047239
0.25298
6,376
194
133
32.865979
0.745329
0.387077
0
0.095745
0
0
0.032872
0.026089
0
0
0
0
0
1
0
false
0
0.138298
0
0.138298
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd8237accaa927ddf6513747162736a47cc442f6
763
py
Python
northpole/settings/local_staging.py
mhotwagner/northpole
7d904d919aeb6a36549750ee0700578246896691
[ "MIT" ]
null
null
null
northpole/settings/local_staging.py
mhotwagner/northpole
7d904d919aeb6a36549750ee0700578246896691
[ "MIT" ]
null
null
null
northpole/settings/local_staging.py
mhotwagner/northpole
7d904d919aeb6a36549750ee0700578246896691
[ "MIT" ]
null
null
null
from .base import * from dotenv import load_dotenv load_dotenv(dotenv_path='northpole/.staging.env', verbose=True) ALLOWED_HOSTS = ['*'] EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': os.get...
25.433333
64
0.651376
91
763
5.252747
0.494505
0.083682
0.167364
0.087866
0.148536
0.148536
0
0
0
0
0
0.007837
0.163827
763
29
65
26.310345
0.741379
0
0
0
0
0
0.352556
0.138925
0
0
0
0
0
1
0
false
0.047619
0.095238
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd836f4eaf2d0f0894b304e6d9d109cacae91338
12,587
py
Python
bc4py/bip32/bip32.py
namuyan/bc4py
6484d356096261d0d57e9e1f5ffeae1f9a9865f3
[ "MIT" ]
12
2018-09-19T14:02:09.000Z
2020-01-27T16:20:14.000Z
bc4py/bip32/bip32.py
kumacoinproject/bc4py
6484d356096261d0d57e9e1f5ffeae1f9a9865f3
[ "MIT" ]
1
2020-03-19T16:57:30.000Z
2020-03-19T16:57:30.000Z
bc4py/bip32/bip32.py
namuyan/bc4py
6484d356096261d0d57e9e1f5ffeae1f9a9865f3
[ "MIT" ]
6
2018-11-13T17:20:14.000Z
2020-02-15T11:46:52.000Z
#!/usr/bin/env python # # Copyright 2014 Corgan Labs # See LICENSE.txt for distribution terms # from bc4py.bip32.base58 import check_decode, check_encode from bc4py_extension import PyAddress from ecdsa.curves import SECP256k1 from ecdsa.keys import SigningKey, VerifyingKey, square_root_mod_prime as mod_sqrt from ecds...
37.573134
126
0.593072
1,658
12,587
4.378166
0.1731
0.016531
0.013225
0.011572
0.330762
0.237085
0.192451
0.142306
0.136107
0.128668
0
0.03263
0.296337
12,587
334
127
37.685629
0.786948
0.186542
0
0.212389
0
0.017699
0.097225
0
0
0
0.001005
0.002994
0
1
0.079646
false
0
0.057522
0
0.256637
0.088496
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd865fa7395cf48130baac47f65fb9a0acdb8fa6
1,378
py
Python
etapa 2/gaussJacobi.py
jlucartc/MetodosNumericos20182
d5610b95945ed6ec9b9bae6cd96672f4d616c1b9
[ "MIT" ]
null
null
null
etapa 2/gaussJacobi.py
jlucartc/MetodosNumericos20182
d5610b95945ed6ec9b9bae6cd96672f4d616c1b9
[ "MIT" ]
null
null
null
etapa 2/gaussJacobi.py
jlucartc/MetodosNumericos20182
d5610b95945ed6ec9b9bae6cd96672f4d616c1b9
[ "MIT" ]
null
null
null
import numpy as np from sympy import * from math import * from timeit import default_timer as timer start = None end = None def maxXi(Xn,X): n = None d = None for i in range(Xn.shape[0]): if(np.copy(Xn[i,0]) != 0): nk = abs(np.copy(Xn[i,0]) - np.copy(X[i,0]))/abs(np.copy(Xn[i,0])) ...
18.621622
78
0.523948
262
1,378
2.751908
0.248092
0.149792
0.066574
0.049931
0.230236
0.122053
0.041609
0
0
0
0
0.019666
0.261974
1,378
73
79
18.876712
0.689282
0
0
0
0
0
0.097242
0
0
0
0
0
0
1
0.020408
false
0
0.081633
0
0.122449
0.102041
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd8770a9a9b49ceb88698ef2075f53487bd2aca7
8,139
py
Python
custom_libs/Project2/plotter.py
drkostas/COSC522
5731576301daf99ca7c3d382fe3ea8b1398008ff
[ "MIT" ]
1
2021-12-22T14:29:42.000Z
2021-12-22T14:29:42.000Z
custom_libs/Project2/plotter.py
drkostas/COSC522
5731576301daf99ca7c3d382fe3ea8b1398008ff
[ "MIT" ]
3
2021-10-13T02:14:30.000Z
2021-11-24T05:28:32.000Z
custom_libs/Project2/plotter.py
drkostas/COSC522
5731576301daf99ca7c3d382fe3ea8b1398008ff
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from matplotlib.colors import ListedColormap import numpy as np class Plotter: synth_tr: np.ndarray synth_te: np.ndarray pima_tr: np.ndarray pima_te: np.ndarray def __init__(self, synth_tr: np.ndarray, synth_te: np.ndarray, pima_tr: np.ndarray, pim...
44.966851
110
0.578327
1,128
8,139
4.003546
0.185284
0.013286
0.029229
0.018601
0.416962
0.295616
0.219442
0.176484
0.131532
0.099203
0
0.082672
0.288119
8,139
181
111
44.966851
0.696755
0.077159
0
0.143836
0
0
0.130882
0
0
0
0
0
0
1
0.034247
false
0
0.020548
0
0.089041
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd89017afbf663624d11e9b8f48f90440b465747
27,270
py
Python
connector/binance/websockets.py
firebird631/siis
8d64e8fb67619aaa5c0a62fda9de51dedcd47796
[ "PostgreSQL" ]
null
null
null
connector/binance/websockets.py
firebird631/siis
8d64e8fb67619aaa5c0a62fda9de51dedcd47796
[ "PostgreSQL" ]
null
null
null
connector/binance/websockets.py
firebird631/siis
8d64e8fb67619aaa5c0a62fda9de51dedcd47796
[ "PostgreSQL" ]
null
null
null
# @date 2020-01-31 # @author Frederic Scherma, All rights reserved without prejudices. # @license Copyright (c) 2020 Dream Overflow # Binance Websocket connector. import json import threading import traceback from autobahn.twisted.websocket import WebSocketClientFactory, WebSocketClientProtocol, connectWS from twiste...
37.510316
136
0.541584
2,770
27,270
5.202166
0.182671
0.01499
0.018043
0.012977
0.402776
0.368425
0.354337
0.338793
0.327412
0.300139
0
0.043691
0.36212
27,270
726
137
37.561983
0.784708
0.467253
0
0.333333
0
0
0.047314
0.01191
0
0
0
0.001377
0
1
0.123457
false
0.004115
0.037037
0.004115
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd8b45d655ef0b191b537030a3d9f0b1784aa23f
772
py
Python
kolibri/core/public/utils.py
FollonSaxBass/kolibri
4cf820b14386aecc228fecff64c847bad407cbb1
[ "MIT" ]
2
2021-05-13T10:20:46.000Z
2021-11-15T12:31:03.000Z
kolibri/core/public/utils.py
camellia26/kolibri
7f1cb794c93f37e039be22f56a5ac1989ed22bde
[ "MIT" ]
8
2021-05-21T15:31:24.000Z
2022-02-24T15:02:14.000Z
kolibri/core/public/utils.py
camellia26/kolibri
7f1cb794c93f37e039be22f56a5ac1989ed22bde
[ "MIT" ]
1
2019-10-05T11:14:40.000Z
2019-10-05T11:14:40.000Z
import platform from django.core.exceptions import ObjectDoesNotExist from morango.models import InstanceIDModel import kolibri def get_device_info(): """Returns metadata information about the device""" instance_model = InstanceIDModel.get_or_create_current_instance()[0] try: device_name = koli...
28.592593
82
0.715026
87
772
6.114943
0.563218
0.075188
0
0
0
0
0
0
0
0
0
0.001621
0.200777
772
26
83
29.692308
0.860616
0.148964
0
0
0
0
0.109063
0
0
0
0
0
0
1
0.055556
false
0
0.222222
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd8c005ad2ae492334e75e29d8ea3fae95bca95b
1,372
py
Python
mcpipy/cellcraft/config.py
cellcraft/cellcraft
1cb2b152bb6433250cec43e2586f1b5d093ec6e5
[ "MIT" ]
2
2016-01-21T12:05:36.000Z
2016-04-18T09:50:03.000Z
mcpipy/cellcraft/config.py
cellcraft/cellcraft
1cb2b152bb6433250cec43e2586f1b5d093ec6e5
[ "MIT" ]
1
2016-05-13T13:08:28.000Z
2016-05-13T13:08:28.000Z
mcpipy/cellcraft/config.py
cellcraft/cellcraft
1cb2b152bb6433250cec43e2586f1b5d093ec6e5
[ "MIT" ]
3
2015-12-14T19:28:42.000Z
2020-11-29T12:53:12.000Z
import os import json import logging # cellcraft node CELLCRAFT_NODE_URL="http://192.168.178.29:4534" # path to cache where pickle files will be stored PATH_RESOURCES='cellcraft/resources' PATH_CACHE='cellcraft/resources/cache/' PATH_TEST_CACHE='test/fixtures/cache/' # path to fixtures PATH_TO_FIXTURES="test/fixtu...
24.070175
98
0.764577
194
1,372
5.226804
0.469072
0.069034
0.053254
0.073965
0.129191
0.094675
0.094675
0.094675
0.094675
0.094675
0
0.034043
0.143586
1,372
56
99
24.5
0.828936
0.223761
0
0.193548
0
0
0.268939
0.07197
0
0
0
0
0
1
0.032258
false
0
0.096774
0
0.16129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cd8c4a556bdf6a751d59f1d67ef4d0688f0e6844
9,123
py
Python
ftpsync/pyftpsync.py
wengzy/pyftpsync
db6decb02bf3535fe87d90b45a6cc974dd356b04
[ "MIT" ]
86
2015-03-02T17:40:03.000Z
2022-03-14T03:41:40.000Z
ftpsync/pyftpsync.py
wengzy/pyftpsync
db6decb02bf3535fe87d90b45a6cc974dd356b04
[ "MIT" ]
63
2015-04-12T19:01:52.000Z
2022-01-19T00:57:51.000Z
ftpsync/pyftpsync.py
wengzy/pyftpsync
db6decb02bf3535fe87d90b45a6cc974dd356b04
[ "MIT" ]
25
2015-04-12T18:07:25.000Z
2021-04-25T15:20:24.000Z
# -*- coding: utf-8 -*- """ Simple folder synchronization using FTP. (c) 2012-2021 Martin Wendt; see https://github.com/mar10/pyftpsync Licensed under the MIT license: https://www.opensource.org/licenses/mit-license.php Usage examples: > pyftpsync.py --help > pyftpsync.py upload . ftps://example.com/myfo...
31.350515
90
0.574044
998
9,123
5.103206
0.247495
0.034557
0.038288
0.021206
0.428038
0.376988
0.374239
0.348125
0.348125
0.348125
0
0.003753
0.269758
9,123
290
91
31.458621
0.760733
0.163872
0
0.328571
0
0
0.268483
0.003012
0
0
0
0
0
1
0.004762
false
0
0.061905
0
0.07619
0.038095
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0