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
eb4b3a57c36fb29e43b2cced38581d7861670f8e
1,639
py
Python
utils.py
josslei/Gender-Detection
51c122eddeb33caf9350a3d974b0842fdc329527
[ "BSD-3-Clause" ]
null
null
null
utils.py
josslei/Gender-Detection
51c122eddeb33caf9350a3d974b0842fdc329527
[ "BSD-3-Clause" ]
null
null
null
utils.py
josslei/Gender-Detection
51c122eddeb33caf9350a3d974b0842fdc329527
[ "BSD-3-Clause" ]
null
null
null
import torch import torchvision.datasets as datasets import torchvision.transforms as transforms import os import sys def export_sample_images(amount:int, export_dir:str, dataset, shuffle=True): os.makedirs(export_dir, exist_ok=True) loader = torch.utils.data.DataLoader(dataset=dataset, batch_size=amount, shuf...
34.145833
99
0.633923
222
1,639
4.540541
0.432432
0.044643
0.035714
0.039683
0.059524
0
0
0
0
0
0
0.011085
0.229408
1,639
47
100
34.87234
0.787015
0
0
0
0
0
0.115995
0.017094
0
0
0
0
0
1
0.046512
false
0
0.116279
0
0.186047
0.116279
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb4eec18185b7f1ef93165dd8d50086af9250306
4,708
py
Python
waveletcodec/wave.py
zenathark/jg.waveletcodec
7994dd18ef5472e7e4d6447062cf4dc3c2f6463f
[ "MIT" ]
1
2017-05-14T01:42:18.000Z
2017-05-14T01:42:18.000Z
waveletcodec/wave.py
zenathark/jg.waveletcodec
7994dd18ef5472e7e4d6447062cf4dc3c2f6463f
[ "MIT" ]
null
null
null
waveletcodec/wave.py
zenathark/jg.waveletcodec
7994dd18ef5472e7e4d6447062cf4dc3c2f6463f
[ "MIT" ]
null
null
null
"""Represent a Wavelet Coefficient Set. .. module::wave :platform: Unix, Windows .. modelauthor:: Juan C Galan-Hernandez <jcgalanh@gmail.com> """ import numpy as np import waveletcodec.tools as tools import waveletcodec.lwt as lwt import cv2 import math #Constant Section CDF97 = 1 #End class WCSet(np.ndarray...
26.301676
79
0.591334
640
4,708
4.301563
0.271875
0.020341
0.017436
0.017436
0.228115
0.151834
0.133672
0.133672
0.102434
0.102434
0
0.039082
0.315208
4,708
178
80
26.449438
0.814826
0.512532
0
0
0
0
0.034948
0
0
0
0
0
0
1
0.111111
false
0
0.079365
0
0.349206
0.015873
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb5060a785cfcf182925ba2ff985ffd151afd8b7
1,598
py
Python
pr2roc/pr_curve.py
ameya98/roc2pr
ab19d7552e2e9ae32ca00a1be4a17b29a3f915fa
[ "MIT" ]
1
2020-09-08T14:51:48.000Z
2020-09-08T14:51:48.000Z
pr2roc/pr_curve.py
ameya98/pr2roc
ab19d7552e2e9ae32ca00a1be4a17b29a3f915fa
[ "MIT" ]
null
null
null
pr2roc/pr_curve.py
ameya98/pr2roc
ab19d7552e2e9ae32ca00a1be4a17b29a3f915fa
[ "MIT" ]
null
null
null
from __future__ import division from .curve import Curve from numpy import min, max, seterr seterr(all='raise') class PRCurve(Curve): def __init__(self, points, pos_neg_ratio, label=None): Curve.__init__(self, points, label) self.pos_neg_ratio = pos_neg_ratio if max([self.x_vals, self.y_v...
35.511111
110
0.615144
234
1,598
3.965812
0.25641
0.068966
0.082974
0.070043
0.359914
0.31681
0.278017
0.163793
0.114224
0.114224
0
0.014821
0.282228
1,598
45
111
35.511111
0.794246
0
0
0
0
0
0.121951
0
0
0
0
0
0
1
0.147059
false
0
0.117647
0.029412
0.441176
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb50a4e886b2a04a462c9218f1a0436f4b1e8244
3,384
py
Python
blg604ehw2/utils.py
cbekar/DRL_HW2
5ecb12ee1d5d545d5059afb4cf578881acb1f00e
[ "MIT" ]
null
null
null
blg604ehw2/utils.py
cbekar/DRL_HW2
5ecb12ee1d5d545d5059afb4cf578881acb1f00e
[ "MIT" ]
null
null
null
blg604ehw2/utils.py
cbekar/DRL_HW2
5ecb12ee1d5d545d5059afb4cf578881acb1f00e
[ "MIT" ]
null
null
null
""" Utilities for homework 2. Function "log_progress" is adapted from: https://github.com/kuk/log-progress """ import matplotlib.pyplot as plt import numpy as np import torch from ipywidgets import IntProgress, HTML, VBox from IPython.display import display from blg604ehw2.atari_wrapper import LazyFrames de...
31.333333
76
0.589835
432
3,384
4.520833
0.31713
0.021505
0.03277
0.034818
0.138249
0.138249
0.108551
0.079877
0.079877
0.079877
0
0.012283
0.302305
3,384
107
77
31.626168
0.814909
0.204787
0
0.142857
0
0
0.037265
0
0
0
0
0
0
1
0.114286
false
0
0.085714
0
0.271429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb51d6d53256cba70fc82a414f813c5e24351542
2,189
py
Python
proposals/management/commands/get_statistics.py
UiL-OTS-labs/etcl
a22df7ff78620b704a500354fb218fbe9bcabf5f
[ "MIT" ]
2
2017-04-22T11:07:13.000Z
2018-03-02T12:23:24.000Z
proposals/management/commands/get_statistics.py
UiL-OTS-labs/etcl
a22df7ff78620b704a500354fb218fbe9bcabf5f
[ "MIT" ]
6
2017-07-24T09:59:13.000Z
2019-04-01T15:15:57.000Z
proposals/management/commands/get_statistics.py
UiL-OTS-labs/etcl
a22df7ff78620b704a500354fb218fbe9bcabf5f
[ "MIT" ]
null
null
null
from django.contrib.auth.models import Group from django.core.management.base import BaseCommand from django.conf import settings from django.views.i18n import set_language from proposals.utils.statistics_utils import get_average_turnaround_time, \ get_qs_for_long_route_reviews, get_qs_for_short_route_reviews, \ ...
33.166667
77
0.600731
240
2,189
5.1125
0.295833
0.04075
0.05868
0.0489
0.394458
0.275469
0.169519
0.169519
0.07824
0.07824
0
0.001338
0.31704
2,189
66
78
33.166667
0.819398
0
0
0.236364
0
0
0.081279
0
0
0
0
0
0
1
0.036364
false
0
0.090909
0
0.163636
0.218182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb51ff6b9107cee84e763a4b3d50eade4083e26c
4,299
py
Python
src/latest.py
rharish101/dilbert-viewer-py
07492822b74e5b9242f47bdf756e147bf792e5c8
[ "MIT" ]
5
2018-12-08T12:06:29.000Z
2022-01-23T14:25:51.000Z
src/latest.py
rharish101/dilbert-viewer-py
07492822b74e5b9242f47bdf756e147bf792e5c8
[ "MIT" ]
3
2021-11-01T18:19:11.000Z
2021-11-01T18:23:08.000Z
src/latest.py
rharish101/dilbert-viewer-py
07492822b74e5b9242f47bdf756e147bf792e5c8
[ "MIT" ]
1
2020-05-16T19:16:00.000Z
2020-05-16T19:16:00.000Z
"""Scraper to get info on the latest Dilbert comic.""" from datetime import timedelta from typing import Optional from constants import LATEST_DATE_REFRESH, SRC_PREFIX from scraper import Scraper, ScrapingException from utils import curr_date, date_to_str, str_to_date class LatestDateScraper(Scraper[str, None]): ...
37.060345
79
0.586183
564
4,299
4.374113
0.315603
0.08107
0.042156
0.015809
0.107013
0.067288
0.036482
0
0
0
0
0.003481
0.331705
4,299
115
80
37.382609
0.855204
0.237497
0
0.116667
0
0
0.14966
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb53bbfae8b29bdd3c9940753f30c643697fe9d2
742
py
Python
tests/use_cases/test_fetch_playlists.py
eeng/montag
8362c4bc6621e23d3b9b43990f9cf28a9e1c1c8a
[ "MIT" ]
null
null
null
tests/use_cases/test_fetch_playlists.py
eeng/montag
8362c4bc6621e23d3b9b43990f9cf28a9e1c1c8a
[ "MIT" ]
null
null
null
tests/use_cases/test_fetch_playlists.py
eeng/montag
8362c4bc6621e23d3b9b43990f9cf28a9e1c1c8a
[ "MIT" ]
null
null
null
from montag.domain.entities import Provider from montag.use_cases.fetch_playlists import FetchPlaylists from montag.use_cases.support import Failure, Success from tests import factory def test_fetch_playlists(repos, spotify_repo): expected_playlists = factory.playlists(2) spotify_repo.find_playlists.return_va...
32.26087
68
0.801887
90
742
6.377778
0.433333
0.076655
0.045296
0.062718
0.219512
0.219512
0.219512
0.219512
0
0
0
0.001538
0.123989
742
22
69
33.727273
0.881538
0
0
0.142857
0
0
0.032345
0
0
0
0
0
0.142857
1
0.142857
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
eb598dc417f9c3b646b630ac18fa21625cf00654
443
py
Python
forest_calculations.py
mpolinski/python-forest
859238ab6a2e05e3479eda5d131f59b26a1f1a22
[ "MIT" ]
null
null
null
forest_calculations.py
mpolinski/python-forest
859238ab6a2e05e3479eda5d131f59b26a1f1a22
[ "MIT" ]
null
null
null
forest_calculations.py
mpolinski/python-forest
859238ab6a2e05e3479eda5d131f59b26a1f1a22
[ "MIT" ]
null
null
null
from forest_constants import (LEAFY, CONIFEROUS) def get_forest_dimensions(forest): rows_num = len(forest) cols_num = 0 if rows_num: cols_num = len(forest[0]) return rows_num, cols_num def get_tree_counts(forest): leafy_count = 0 coniferous_count = 0 for row in forest: l...
21.095238
49
0.688488
61
443
4.721311
0.360656
0.072917
0.083333
0.097222
0
0
0
0
0
0
0
0.011799
0.234763
443
20
50
22.15
0.837758
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.071429
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb5c1e3cdc51524fbf91bb29a9b75350d7e28939
13,580
py
Python
tests/test_locators.py
msabramo/distlib
8c201484821e7cdfd52c560eac98b45439402f39
[ "PSF-2.0" ]
null
null
null
tests/test_locators.py
msabramo/distlib
8c201484821e7cdfd52c560eac98b45439402f39
[ "PSF-2.0" ]
null
null
null
tests/test_locators.py
msabramo/distlib
8c201484821e7cdfd52c560eac98b45439402f39
[ "PSF-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2013 Vinay Sajip. # Licensed to the Python Software Foundation under a contributor agreement. # See LICENSE.txt and CONTRIBUTORS.txt. # from __future__ import unicode_literals import os import sys from compat import unittest from distlib.compat import url2pathname, urlpa...
42.704403
82
0.583726
1,496
13,580
5.195856
0.186497
0.07912
0.048887
0.025473
0.554741
0.489258
0.442429
0.397144
0.365496
0.365496
0
0.022758
0.284904
13,580
317
83
42.839117
0.777675
0.048233
0
0.490842
0
0.003663
0.15136
0.009378
0
0
0
0
0.278388
1
0.058608
false
0
0.029304
0
0.106227
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb5ccd73b62ac958c2eaef0bb0a5f829cbe6ee69
6,946
py
Python
aws_s3/main.py
mayurdhamecha-crest/ta_cloud_exchange_plugins
8d64c92909f28bcb2067587ec3361499de5d5723
[ "BSD-3-Clause" ]
null
null
null
aws_s3/main.py
mayurdhamecha-crest/ta_cloud_exchange_plugins
8d64c92909f28bcb2067587ec3361499de5d5723
[ "BSD-3-Clause" ]
null
null
null
aws_s3/main.py
mayurdhamecha-crest/ta_cloud_exchange_plugins
8d64c92909f28bcb2067587ec3361499de5d5723
[ "BSD-3-Clause" ]
null
null
null
"""AWS S3 Plugin.""" import os from typing import List from tempfile import NamedTemporaryFile from netskope.integrations.cls.plugin_base import ( PluginBase, ValidationResult, PushResult, ) from .utils.aws_s3_validator import ( AWSS3Validator, ) from .utils.aws_s3_client import AWSS3Client class AWS...
36.366492
100
0.565073
692
6,946
5.562139
0.184971
0.018187
0.031437
0.049104
0.544817
0.482463
0.45882
0.420889
0.398545
0.374643
0
0.004719
0.359344
6,946
190
101
36.557895
0.860225
0.081342
0
0.367742
0
0
0.278892
0
0
0
0
0
0
1
0.019355
false
0
0.03871
0
0.135484
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb6026d99e12af7beda1b40e5de9c9f9ef6b3948
751
py
Python
09 Evaluate the Performance of Machine Learning Algorithms with Resampling/shuffle_split.py
IshmaelAsabere/Machine_Learning-Various-Topics
2c663ab73e2631522dac0fa1ec49042aa2088da4
[ "MIT" ]
null
null
null
09 Evaluate the Performance of Machine Learning Algorithms with Resampling/shuffle_split.py
IshmaelAsabere/Machine_Learning-Various-Topics
2c663ab73e2631522dac0fa1ec49042aa2088da4
[ "MIT" ]
null
null
null
09 Evaluate the Performance of Machine Learning Algorithms with Resampling/shuffle_split.py
IshmaelAsabere/Machine_Learning-Various-Topics
2c663ab73e2631522dac0fa1ec49042aa2088da4
[ "MIT" ]
null
null
null
# Evaluate using Shuffle Split Cross Validation from pandas import read_csv from sklearn.model_selection import ShuffleSplit from sklearn.model_selection import cross_val_score from sklearn.linear_model import LogisticRegression filename = 'pima-indians-diabetes.data.csv' names = ['preg', 'plas', 'pres', 'skin', 'test'...
41.722222
80
0.747004
110
751
4.954545
0.554545
0.06055
0.058716
0.091743
0.113761
0
0
0
0
0
0
0.028232
0.103862
751
18
81
41.722222
0.781575
0.05992
0
0
0
0
0.141844
0.042553
0
0
0
0
0
1
0
false
0
0.235294
0
0.235294
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb61d5d7e4bf28a8a1ca4a73ac750956135f0ec5
4,178
py
Python
tests/test_s.py
Tygs/ww
6a4b85141c9b74026abe8f3fa9bc7021f3c99fd4
[ "MIT" ]
15
2016-10-15T10:15:08.000Z
2021-04-06T08:31:02.000Z
tests/test_s.py
Tygs/ww
6a4b85141c9b74026abe8f3fa9bc7021f3c99fd4
[ "MIT" ]
7
2016-10-14T08:53:29.000Z
2016-11-09T23:43:31.000Z
tests/test_s.py
Tygs/ww
6a4b85141c9b74026abe8f3fa9bc7021f3c99fd4
[ "MIT" ]
3
2016-10-13T11:44:46.000Z
2016-10-14T08:58:03.000Z
# coding: utf-8 from __future__ import ( unicode_literals, division, print_function, absolute_import ) import re import pytest from ww import s, g, f def test_lshift(): res = s >> """ This is a long text And it's not indented """ assert isinstance(res, s) s == "This is a long text\nA...
23.60452
78
0.514361
634
4,178
3.337539
0.170347
0.026465
0.036862
0.034026
0.444707
0.324197
0.229679
0.190926
0.150284
0.136106
0
0.022072
0.219244
4,178
176
79
23.738636
0.626609
0.003112
0
0.09434
0
0
0.160221
0
0
0
0
0
0.396226
1
0.113208
false
0
0.04717
0.009434
0.169811
0.009434
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb64352202a6b429c03980e77f840c5767dfc418
513
py
Python
antalla/migrations/versions/bfa53193d3bf_create_exchange_table.py
sambacha/antalla
241f49058e4295aa9f5bc62efe517388d9256520
[ "MIT" ]
null
null
null
antalla/migrations/versions/bfa53193d3bf_create_exchange_table.py
sambacha/antalla
241f49058e4295aa9f5bc62efe517388d9256520
[ "MIT" ]
null
null
null
antalla/migrations/versions/bfa53193d3bf_create_exchange_table.py
sambacha/antalla
241f49058e4295aa9f5bc62efe517388d9256520
[ "MIT" ]
null
null
null
"""create exchange table Revision ID: bfa53193d3bf Revises: b97a89b20fa2 Create Date: 2019-09-22 01:17:06.735174 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'bfa53193d3bf' down_revision = 'b97a89b20fa2' branch_labels = None depends_on = None def upgrade()...
17.689655
54
0.695906
66
513
5.318182
0.666667
0.079772
0
0
0
0
0
0
0
0
0
0.110312
0.187135
513
28
55
18.321429
0.731415
0.292398
0
0
0
0
0.135211
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb6486b781e8bb7e961d09b57c4d80fc18e300da
2,831
py
Python
rpeak_seg_simple_v1.0.py
ziyi-bear/ECG-ML-DL-Algorithm-Python
e1cc28c09fcd9330470b30c240ab7fb331c8ea0c
[ "Apache-2.0" ]
180
2018-05-18T12:18:53.000Z
2022-03-30T11:02:48.000Z
rpeak_seg_simple_v1.0.py
Aiwiscal/ECG-ML-DL-Algorithm-Python-version
23b24a965fdede3552d33943a26ad824a8c03325
[ "Apache-2.0" ]
null
null
null
rpeak_seg_simple_v1.0.py
Aiwiscal/ECG-ML-DL-Algorithm-Python-version
23b24a965fdede3552d33943a26ad824a8c03325
[ "Apache-2.0" ]
61
2018-06-08T08:19:34.000Z
2022-03-18T10:34:02.000Z
#!/usr/bin/python # -*- coding:utf-8 -*- import sys import time import logging import numpy as np from biosppy.signals import ecg from biosppy.storage import load_txt import matplotlib.pyplot as plt logging.basicConfig(level = logging.DEBUG,format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s') ...
36.766234
107
0.657718
362
2,831
4.867403
0.348066
0.093644
0.047673
0.045403
0.239501
0.208854
0.191827
0.114642
0.07151
0.07151
0
0.020542
0.191805
2,831
76
108
37.25
0.749563
0.106323
0
0.103448
0
0
0.20221
0.052395
0
0
0
0
0
1
0.017241
false
0
0.12069
0
0.155172
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb68b9676e0d03d63bb33be1aab4650e1c5fefb7
3,126
py
Python
mediaire_toolbox/queue/tasks.py
mediaire/mediaire_toolbox
292a005247a25eb04eaa34fe5a8155422336d04b
[ "MIT" ]
null
null
null
mediaire_toolbox/queue/tasks.py
mediaire/mediaire_toolbox
292a005247a25eb04eaa34fe5a8155422336d04b
[ "MIT" ]
11
2019-09-27T15:19:28.000Z
2022-01-04T13:27:19.000Z
mediaire_toolbox/queue/tasks.py
mediaire/mediaire_toolbox
292a005247a25eb04eaa34fe5a8155422336d04b
[ "MIT" ]
3
2019-05-07T09:42:56.000Z
2022-01-27T13:14:59.000Z
import time import json from copy import deepcopy class Task(object): """Defines task objects that can be handled by the task manager.""" def __init__(self, t_id=None, user_id=None, product_id=None, tag=None, data=None, timestamp=None, update_timestamp=None, error=None): ...
30.950495
78
0.570377
399
3,126
4.258145
0.22807
0.038846
0.01648
0.012949
0.110653
0.030606
0.030606
0
0
0
0
0.000953
0.328535
3,126
100
79
31.26
0.80848
0.21945
0
0.079365
0
0
0.059005
0
0
0
0
0
0
1
0.15873
false
0
0.047619
0.079365
0.365079
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb69a63e704e44ba8a523693de06b874425f56d2
2,791
py
Python
torch/legacy/nn/Linear.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
51
2020-01-26T23:32:57.000Z
2022-03-20T14:49:57.000Z
torch/legacy/nn/Linear.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
2
2020-12-19T20:00:28.000Z
2021-03-03T20:22:45.000Z
torch/legacy/nn/Linear.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
33
2020-02-18T16:15:48.000Z
2022-03-24T15:12:05.000Z
import math import torch from .Module import Module from .utils import clear class Linear(Module): def __init__(self, inputSize, outputSize, bias=True): super(Linear, self).__init__() self.weight = torch.Tensor(outputSize, inputSize) self.gradWeight = torch.Tensor(outputSize, inputSize) ...
31.715909
118
0.607668
337
2,791
4.934718
0.216617
0.032471
0.050511
0.028864
0.179796
0.116055
0.074564
0.046903
0
0
0
0.008462
0.280186
2,791
87
119
32.08046
0.819313
0.037263
0
0.179104
0
0
0.011918
0
0
0
0
0
0.044776
1
0.134328
false
0
0.059701
0.014925
0.313433
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb6c5cabf7aff4e46d0f69f924e5ecdb4193cfdc
2,349
py
Python
tables_io/testUtils.py
LSSTDESC/tables_io
1c2f119c928d05d237b1c8509e340d29650ceb8b
[ "MIT" ]
1
2021-08-13T15:41:58.000Z
2021-08-13T15:41:58.000Z
tables_io/testUtils.py
LSSTDESC/tables_io
1c2f119c928d05d237b1c8509e340d29650ceb8b
[ "MIT" ]
18
2021-08-12T00:09:36.000Z
2022-02-24T21:11:18.000Z
tables_io/testUtils.py
LSSTDESC/tables_io
1c2f119c928d05d237b1c8509e340d29650ceb8b
[ "MIT" ]
null
null
null
""" Utilities for testing """ import numpy as np from astropy.table import Table as apTable from astropy.utils.diff import report_diff_values def compare_tables(t1, t2): """ Compare all the tables in two `astropy.table.Table`) Parameters ---------- t1 : `astropy.table.Table` One table t2 ...
27.964286
93
0.61175
315
2,349
4.495238
0.342857
0.059322
0.072034
0.055085
0.305085
0.166667
0
0
0
0
0
0.020127
0.259685
2,349
83
94
28.301205
0.794135
0.355045
0
0.05
0
0
0.005785
0
0
0
0
0
0
1
0.075
false
0
0.075
0
0.275
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb6e417ff1d33694d2432e18852dc6a0bbbf5837
746
py
Python
tests/inheritance/test_constructor.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
2
2021-12-18T01:52:50.000Z
2022-01-17T19:41:52.000Z
tests/inheritance/test_constructor.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
18
2021-11-30T04:05:53.000Z
2022-02-01T03:30:04.000Z
tests/inheritance/test_constructor.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
null
null
null
from textwrap import dedent import pytest from pylox.lox import Lox # Base cases from https://github.com/munificent/craftinginterpreters/blob/master/test/inheritance/constructor.lox TEST_SRC = dedent( """\ class A { init(param) { this.field = param; } test() { print this.fi...
19.128205
113
0.648794
88
746
5.386364
0.545455
0.029536
0.084388
0.097046
0
0
0
0
0
0
0
0
0.237265
746
38
114
19.631579
0.83304
0.148794
0
0
0
0
0.011933
0
0
0
0
0
0.230769
1
0.076923
false
0
0.230769
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb71982888d5f8510697907e9a0d0ca96fdd5ff9
1,196
py
Python
dugaire/util.py
tadeugr/dugaire
63e4964ed4b5016e9eb996612138c43fbcb81b53
[ "Apache-2.0" ]
4
2020-11-19T12:17:10.000Z
2020-12-15T19:34:04.000Z
dugaire/util.py
tadeugr/dugaire
63e4964ed4b5016e9eb996612138c43fbcb81b53
[ "Apache-2.0" ]
1
2020-11-26T01:25:28.000Z
2020-11-26T01:25:28.000Z
dugaire/util.py
tadeugr/dugaire
63e4964ed4b5016e9eb996612138c43fbcb81b53
[ "Apache-2.0" ]
1
2020-11-19T21:18:43.000Z
2020-11-19T21:18:43.000Z
#!/usr/bin/env python3 """ Import comunity modules. """ import os import sys import jinja2 import re HERE = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, f"{HERE}") def string_is_latest_or_version(check_string): prog = re.compile("^(\d+\.)?(\d+\.)?(\*|\d+)$") result = prog.match(check_stri...
26
67
0.705686
152
1,196
5.296053
0.421053
0.163975
0.074534
0.081988
0.171429
0.171429
0.171429
0.171429
0.114286
0
0
0.005025
0.16806
1,196
45
68
26.577778
0.80402
0.114548
0
0
0
0
0.169231
0.105769
0
0
0
0
0
1
0.115385
false
0
0.153846
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
eb736abfcc0d07e773852cad1abeb9d44fd78b29
2,770
py
Python
ipaymu/tests.py
ekaputra07/django-ipaymu
7ea946eaeba720a002d20ad5579575951a979347
[ "BSD-3-Clause" ]
2
2018-11-14T16:25:01.000Z
2019-03-22T08:18:43.000Z
ipaymu/tests.py
ekaputra07/django-ipaymu
7ea946eaeba720a002d20ad5579575951a979347
[ "BSD-3-Clause" ]
1
2018-10-31T08:44:10.000Z
2018-11-03T08:37:35.000Z
ipaymu/tests.py
ekaputra07/django-ipaymu
7ea946eaeba720a002d20ad5579575951a979347
[ "BSD-3-Clause" ]
1
2018-10-16T09:18:20.000Z
2018-10-16T09:18:20.000Z
from django.test import TestCase from django.test.client import Client from django.core.urlresolvers import reverse from ipaymu.forms import IpaymuForm from ipaymu.models import IpaymuSessionID from ipaymu.utils import save_session, verify_session, IpaymuParamsBuilder class IpaymuTest(TestCase): fixtures = ['ip...
33.373494
157
0.642599
308
2,770
5.655844
0.292208
0.120551
0.10907
0.100459
0.323192
0.306544
0.299082
0.265786
0.172216
0.172216
0
0.055474
0.258123
2,770
82
158
33.780488
0.792214
0.191336
0
0.186047
0
0
0.145066
0.088222
0
0
0
0
0.325581
1
0.093023
false
0
0.139535
0
0.27907
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb772658ca94856431b34ba889686158bd95aa78
1,884
py
Python
qcdb/tests/nwchem_tests/test_tce_ccsd_pr_br_t.py
loriab/qccddb
d9e156ef8b313ac0633211fc6b841f84a3ddde24
[ "BSD-3-Clause" ]
8
2019-03-28T11:54:59.000Z
2022-03-19T03:31:37.000Z
qcdb/tests/nwchem_tests/test_tce_ccsd_pr_br_t.py
loriab/qccddb
d9e156ef8b313ac0633211fc6b841f84a3ddde24
[ "BSD-3-Clause" ]
39
2018-10-31T23:02:18.000Z
2021-12-12T22:11:37.000Z
qcdb/tests/nwchem_tests/test_tce_ccsd_pr_br_t.py
loriab/qccddb
d9e156ef8b313ac0633211fc6b841f84a3ddde24
[ "BSD-3-Clause" ]
9
2018-03-12T20:51:50.000Z
2022-02-28T15:18:34.000Z
# TCE CCSD(T) and CCSD[T] calculations import os import sys import qcdb from ..utils import * def check_ccsd_t_pr_br(return_value): ccsd_tot = -76.240077811301250 ccsd_corl = -0.213269954065481 t_br_corr = -0.003139909173705 t_br_corl = -0.216409863239186 ccsd_t_br = -76.243217720474960 t_pr...
34.254545
105
0.638004
267
1,884
4.243446
0.269663
0.083848
0.134157
0.0812
0.435128
0.213592
0.213592
0.164166
0.164166
0.090026
0
0.15931
0.230361
1,884
54
106
34.888889
0.622069
0.019108
0
0
0
0
0.250905
0
0
0
0
0
0.205128
1
0.051282
false
0
0.102564
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb7c5cbf4a4be6c62f0ee77abad0dd0ba1cedf55
6,246
py
Python
autoload/squeeze.py
sangjinhan/squeeze
0c1721724d181f146c4829afb58e78a596e38cb5
[ "BSD-3-Clause" ]
1
2018-07-08T10:39:51.000Z
2018-07-08T10:39:51.000Z
autoload/squeeze.py
sangjinhan/squeeze
0c1721724d181f146c4829afb58e78a596e38cb5
[ "BSD-3-Clause" ]
null
null
null
autoload/squeeze.py
sangjinhan/squeeze
0c1721724d181f146c4829afb58e78a596e38cb5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import time import multiprocessing import os import vim from async_worker import AsyncWorker import utils # Global map for host (source code) window ID -> Squeezer instance squeezers = {} # set of Squeezer instances that are waiting for updates polling_squeezers = set() def create_window(b...
30.468293
75
0.590618
749
6,246
4.727637
0.221629
0.049703
0.044055
0.026829
0.310929
0.255578
0.208698
0.158147
0.137249
0.137249
0
0.00249
0.292667
6,246
204
76
30.617647
0.799004
0.06244
0
0.241135
0
0
0.147597
0.014195
0
0
0
0
0
1
0.099291
false
0
0.042553
0
0.177305
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb823a3ab1cfe40fa4039cd8121d4b7741953f43
14,233
py
Python
sirius-pipeline/SAI/sai_api_gen.py
mmiele/DASH
30c65abc597b74a5794f9cc8f287f0febebc820c
[ "Apache-2.0" ]
18
2021-09-22T04:50:09.000Z
2022-03-26T03:54:26.000Z
sirius-pipeline/SAI/sai_api_gen.py
mmiele/DASH
30c65abc597b74a5794f9cc8f287f0febebc820c
[ "Apache-2.0" ]
62
2021-11-12T21:25:10.000Z
2022-03-31T22:41:17.000Z
sirius-pipeline/SAI/sai_api_gen.py
mmiele/DASH
30c65abc597b74a5794f9cc8f287f0febebc820c
[ "Apache-2.0" ]
19
2021-09-22T22:05:59.000Z
2022-03-29T04:37:54.000Z
#!/usr/bin/env python3 try: import os import json import argparse import shutil from git import Repo from jinja2 import Template, Environment, FileSystemLoader except ImportError as ie: print("Import failed for " + ie.name) exit(1) NAME_TAG = 'name' TABLES_TAG = 'tables' BITWIDTH_TAG =...
38.158177
140
0.644488
2,047
14,233
4.16512
0.127504
0.032841
0.032372
0.019939
0.52076
0.438658
0.350575
0.317969
0.297443
0.292048
0
0.010457
0.227359
14,233
372
141
38.260753
0.764845
0.021078
0
0.271186
0
0
0.202069
0.036923
0
0
0
0
0
1
0.037288
false
0
0.027119
0
0.155932
0.030508
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb87aab9a356ed1a7a06480dce0810bf77f27d97
1,658
py
Python
cytoscapeMaker.py
admar505/python-tools
743c0e41e6700efa3817fdb09c451f8fffccd1b3
[ "Apache-2.0" ]
null
null
null
cytoscapeMaker.py
admar505/python-tools
743c0e41e6700efa3817fdb09c451f8fffccd1b3
[ "Apache-2.0" ]
null
null
null
cytoscapeMaker.py
admar505/python-tools
743c0e41e6700efa3817fdb09c451f8fffccd1b3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys,os,re,fileinput,argparse import csv import random parser = argparse.ArgumentParser(description="takes a file of CYC data, and produces pairwise info for cytoscape network viewing" ) parser.add_argument("--fi",help="the file, must be headered as \"Pathway-id Pathway-name Gene-id Gene-nam...
23.027778
131
0.575392
211
1,658
4.483412
0.50237
0.044397
0.019027
0
0
0
0
0
0
0
0
0.002257
0.198432
1,658
71
132
23.352113
0.709556
0.199035
0
0
0
0.034483
0.195103
0.052028
0
0
0
0
0
1
0.034483
false
0
0.103448
0
0.137931
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb893239a685151332f8c8b4695d9a76a757792e
1,402
py
Python
algo/searching_and_sorting/binary_search.py
avi3tal/knowledgebase
fd30805aa94332a6c14c9d8631c7044673fb3e2c
[ "MIT" ]
null
null
null
algo/searching_and_sorting/binary_search.py
avi3tal/knowledgebase
fd30805aa94332a6c14c9d8631c7044673fb3e2c
[ "MIT" ]
null
null
null
algo/searching_and_sorting/binary_search.py
avi3tal/knowledgebase
fd30805aa94332a6c14c9d8631c7044673fb3e2c
[ "MIT" ]
1
2021-11-19T13:45:59.000Z
2021-11-19T13:45:59.000Z
def binary_search(search_num, sorted_arr): """ https://runestone.academy/runestone/books/published/pythonds/SortSearch/TheBinarySearch.html First Q at https://dev.to/javinpaul/20-basic-algorithms-problems-from-coding-interviews-4o76 """ if sorted_arr[0] == search_num: return True arr_l...
26.45283
96
0.617689
192
1,402
4.239583
0.322917
0.143735
0.092138
0.088452
0.291155
0.291155
0.154791
0.154791
0.154791
0.154791
0
0.030632
0.278174
1,402
52
97
26.961538
0.773715
0.131954
0
0.147059
0
0
0.0067
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.264706
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb89523d17723f3e6a6db454cea7c75b5abcf4eb
3,292
py
Python
axelrod/tests/test_resultset.py
DumisaniZA/Axelrod
e59fc40ebb705afe05cea6f30e282d1e9c621259
[ "MIT" ]
33
2015-02-20T11:36:48.000Z
2022-02-16T17:02:06.000Z
axelrod/tests/test_resultset.py
DumisaniZA/Axelrod
e59fc40ebb705afe05cea6f30e282d1e9c621259
[ "MIT" ]
108
2015-02-18T14:15:44.000Z
2020-05-08T10:39:58.000Z
axelrod/tests/test_resultset.py
DumisaniZA/Axelrod
e59fc40ebb705afe05cea6f30e282d1e9c621259
[ "MIT" ]
41
2015-02-18T13:40:04.000Z
2021-05-31T06:08:10.000Z
import unittest import axelrod class TestResultSet(unittest.TestCase): @classmethod def setUpClass(cls): cls.players = ('Player1', 'Player2', 'Player3') cls.test_results = [ [[0, 0], [10, 10], [21, 21]], [[10, 8], [0, 0], [16, 20]], [[16, 16], [16, 16], [0...
36.577778
89
0.59599
433
3,292
4.399538
0.152425
0.022047
0.103937
0.014698
0.349081
0.286089
0.234646
0.234646
0.166404
0.146982
0
0.063715
0.265796
3,292
89
90
36.988764
0.724452
0
0
0.230769
0
0.012821
0.02825
0.015492
0
0
0
0
0.230769
1
0.102564
false
0
0.025641
0
0.141026
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb89728654ff6fe0b167e3b43a91c36391a5c80e
814
py
Python
sparse_arrays.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
sparse_arrays.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
sparse_arrays.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
#There is a collection of #input strings and a collection of query strings. For each query string, determine how many times it occurs in the list of input strings def f(): strings = ['aba', 'baba', 'aba', 'xzxb'] queries = ['aba', 'xzxb', 'ab'] res = [] ''' for q in queries: tota...
20.35
136
0.503686
105
814
3.904762
0.419048
0.029268
0.043902
0.095122
0.287805
0.287805
0.287805
0.287805
0.287805
0.287805
0
0.01002
0.386978
814
39
137
20.871795
0.811623
0.211302
0
0.333333
0
0
0.048729
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.222222
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb8c05f5a993f660ca7de8d026f690e8d7461195
4,658
py
Python
reactapp/FlowerBackend/strategies/FedOpt.py
ImperialAI-Blockchain-Team/group-project-decentralised
27b4242aa850c5c32d3bdbe6e4c9e3e3c226e7d3
[ "Apache-2.0" ]
1
2022-01-03T15:15:58.000Z
2022-01-03T15:15:58.000Z
reactapp/FlowerBackend/strategies/FedOpt.py
ImperialAI-Blockchain-Team/group-project-decentralised
27b4242aa850c5c32d3bdbe6e4c9e3e3c226e7d3
[ "Apache-2.0" ]
null
null
null
reactapp/FlowerBackend/strategies/FedOpt.py
ImperialAI-Blockchain-Team/group-project-decentralised
27b4242aa850c5c32d3bdbe6e4c9e3e3c226e7d3
[ "Apache-2.0" ]
null
null
null
'''Ref: https://arxiv.org/pdf/2003.00295.pdf''' from typing import Callable, Dict, List, Optional, Tuple import numpy as np from flwr.common import ( EvaluateIns, EvaluateRes, FitIns, FitRes, Weights, parameters_to_weights, weights_to_parameters, ) from flwr.server.strategy.aggregate imp...
34
160
0.607342
578
4,658
4.633218
0.262976
0.072816
0.024645
0.016804
0.271098
0.230022
0.126214
0.121733
0.121733
0.121733
0
0.010375
0.296479
4,658
137
161
34
0.806836
0.009017
0
0.090909
0
0
0.036435
0.009976
0
0
0
0
0
1
0.024793
false
0
0.066116
0
0.140496
0.008264
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb8d0654d1d205d5f73cc68270c3fb56a4a831b9
786
py
Python
setup.py
alekordESA/package-template
c95a64bf125d41f1bcfd50494dbd0daeb0b27fca
[ "MIT" ]
null
null
null
setup.py
alekordESA/package-template
c95a64bf125d41f1bcfd50494dbd0daeb0b27fca
[ "MIT" ]
null
null
null
setup.py
alekordESA/package-template
c95a64bf125d41f1bcfd50494dbd0daeb0b27fca
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() long_description = """ Short description... """ setuptools.setup( name='test_package_kthdesa', version='1.0.0', author='Alexandros Korkovelos', author_email='alekor@desa.kth.se', description='This is a test pack...
27.103448
75
0.651399
90
786
5.544444
0.744444
0.150301
0.072144
0.12024
0
0
0
0
0
0
0
0.020701
0.201018
786
29
76
27.103448
0.773885
0
0
0.076923
0
0
0.45108
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb8d74b25be29cc19bd8b5df08384b2634717dc4
5,801
py
Python
gan/Generator.py
leogeier/dl-2020-prog-gan
12f28353548188af31cc14ee18a5444ad3d95a0c
[ "MIT" ]
null
null
null
gan/Generator.py
leogeier/dl-2020-prog-gan
12f28353548188af31cc14ee18a5444ad3d95a0c
[ "MIT" ]
null
null
null
gan/Generator.py
leogeier/dl-2020-prog-gan
12f28353548188af31cc14ee18a5444ad3d95a0c
[ "MIT" ]
null
null
null
import torch from torch.nn import LeakyReLU from torch.nn.functional import interpolate from gan.EqualizedLayers import EqualizedConv2d, EqualizedDeconv2d class PixelwiseNormalization(torch.nn.Module): """ Normalize feature vectors per pixel as suggested in section 4.2 of https://research.nvidia.com/site...
37.185897
119
0.651957
758
5,801
4.808707
0.221636
0.071331
0.030727
0.016461
0.371468
0.301783
0.248011
0.173114
0.173114
0.153361
0
0.02139
0.258576
5,801
155
120
37.425806
0.826087
0.3608
0
0.092308
0
0
0
0
0
0
0
0
0
1
0.138462
false
0
0.061538
0.015385
0.353846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb9292b5b15148056f496da1f3e38d544c9ca3dc
846
py
Python
Active-Contour-Loss.py
xuuuuuuchen/Active-Contour-Loss
f76737b92a2bea558f5a960bb1ef00bbe09b8457
[ "MIT" ]
189
2019-06-11T02:13:53.000Z
2022-03-30T15:41:47.000Z
Active-Contour-Loss.py
xuuuuuuchen/Active-Contour-Loss
f76737b92a2bea558f5a960bb1ef00bbe09b8457
[ "MIT" ]
15
2019-06-29T19:22:07.000Z
2021-07-19T03:26:51.000Z
Active-Contour-Loss.py
xuuuuuuchen/Active-Contour-Loss
f76737b92a2bea558f5a960bb1ef00bbe09b8457
[ "MIT" ]
28
2019-07-15T12:52:52.000Z
2022-03-07T16:50:02.000Z
from keras import backend as K import numpy as np def Active_Contour_Loss(y_true, y_pred): """ lenth term """ x = y_pred[:,:,1:,:] - y_pred[:,:,:-1,:] # horizontal and vertical directions y = y_pred[:,:,:,1:] - y_pred[:,:,:,:-1] delta_x = x[:,:,1:,:-2]**2 delta_y = y[:,:,:-2,1:]**2 delta_u = K.abs(delta...
24.171429
105
0.574468
149
846
3.087248
0.342282
0.076087
0.052174
0.030435
0.178261
0.178261
0.056522
0
0
0
0
0.072674
0.186761
846
34
106
24.882353
0.59593
0.211584
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb9398224cfe1d36acebb90ab93ee6b57c3b5626
7,584
py
Python
edbo/objective.py
v13inc/edbo
dee72777a07594f7940bd03f0049a7d9be7c2266
[ "MIT" ]
70
2020-12-11T03:13:09.000Z
2022-03-16T21:17:26.000Z
edbo/objective.py
v13inc/edbo
dee72777a07594f7940bd03f0049a7d9be7c2266
[ "MIT" ]
8
2021-01-15T14:24:00.000Z
2022-01-16T14:43:52.000Z
edbo/objective.py
v13inc/edbo
dee72777a07594f7940bd03f0049a7d9be7c2266
[ "MIT" ]
18
2020-11-24T00:37:49.000Z
2022-03-13T15:52:51.000Z
# -*- coding: utf-8 -*- # Imports import pandas as pd from .pd_utils import load_csv_or_excel from .pd_utils import load_experiment_results from .pd_utils import to_torch from .math_utils import standard # Objective function class class objective: """Objective funciton data container and operations. N...
33.706667
86
0.548655
793
7,584
5.147541
0.190416
0.080843
0.040421
0.036012
0.323126
0.259922
0.217785
0.212396
0.212396
0.198432
0
0.004788
0.366561
7,584
225
87
33.706667
0.844921
0.2827
0
0.252747
0
0
0.010759
0
0
0
0
0
0
1
0.043956
false
0
0.054945
0
0.153846
0.010989
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb951abd2dd3908e69458a1b26cb28c1b3944745
664
py
Python
p002/solution.py
jcbrockschmidt/project_euler
49576d24f485eea1a21c8111e006a5c9ba1701d7
[ "MIT" ]
null
null
null
p002/solution.py
jcbrockschmidt/project_euler
49576d24f485eea1a21c8111e006a5c9ba1701d7
[ "MIT" ]
null
null
null
p002/solution.py
jcbrockschmidt/project_euler
49576d24f485eea1a21c8111e006a5c9ba1701d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from time import time def fib_sum(limit): prev2 = 1 prev1 = 2 fib_sum = 0 while prev2 < limit: # There is probably a more clever solution that skips the calculation # of every 1st and 3rd element. # For now, we will just cherry-pick the even values. ...
25.538462
77
0.593373
92
664
4.119565
0.630435
0.079156
0.079156
0
0
0
0
0
0
0
0
0.05
0.307229
664
25
78
26.56
0.773913
0.256024
0
0
0
0
0.091837
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.166667
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
eb9525194e5e12addc0e82651317e86bd9db3fd2
15,221
py
Python
source/Gui.py
Faraphel/MKWF-Install
8a86cae630da6702bf65b15340dc2db3e0abc182
[ "Apache-2.0" ]
1
2022-03-01T10:59:11.000Z
2022-03-01T10:59:11.000Z
source/Gui.py
Faraphel/MKWF-Install
8a86cae630da6702bf65b15340dc2db3e0abc182
[ "Apache-2.0" ]
null
null
null
source/Gui.py
Faraphel/MKWF-Install
8a86cae630da6702bf65b15340dc2db3e0abc182
[ "Apache-2.0" ]
3
2021-06-15T17:23:36.000Z
2021-07-07T11:45:46.000Z
from tkinter import filedialog, ttk, messagebox from tkinter import * import traceback import requests import zipfile import json import os from source.Game import Game, RomAlreadyPatched, InvalidGamePath, InvalidFormat, in_thread, VERSION_FILE_URL from source.Option import Option from source.definition import get_ver...
52.66782
245
0.648183
1,856
15,221
5.132004
0.167026
0.036115
0.028346
0.024147
0.335118
0.263937
0.147192
0.110341
0.074961
0.039685
0
0.005267
0.239143
15,221
288
246
52.850694
0.817201
0.062545
0
0.046512
0
0
0.115549
0.020433
0
0
0
0
0
1
0.046512
false
0
0.046512
0
0.106977
0.018605
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb974878838a569a2d9cf63b612ccad301b890eb
1,612
py
Python
titledb/update_db.py
EMUGamesDevTeam/TitleDB
4d13cce0f5e9d547316aba951301f001ca3b2c2c
[ "Unlicense" ]
1
2020-07-13T19:20:45.000Z
2020-07-13T19:20:45.000Z
titledb/update_db.py
EMUGamesDevTeam/TitleDB
4d13cce0f5e9d547316aba951301f001ca3b2c2c
[ "Unlicense" ]
null
null
null
titledb/update_db.py
EMUGamesDevTeam/TitleDB
4d13cce0f5e9d547316aba951301f001ca3b2c2c
[ "Unlicense" ]
null
null
null
import os, sys, re, transaction, base64, zlib from sqlalchemy import engine_from_config from pyramid.paster import ( get_appsettings, setup_logging, ) from .models import ( DBSession, CIA, Entry, User, Group, Base, ) from .security import hash_password def usage(argv): cmd = os....
26
103
0.581266
199
1,612
4.592965
0.38191
0.053611
0.035011
0.054705
0.109409
0.109409
0.109409
0.109409
0.109409
0.109409
0
0.031943
0.300868
1,612
61
104
26.42623
0.779059
0
0
0.16
0
0
0.046555
0
0
0
0
0
0
1
0.04
false
0.02
0.1
0
0.14
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
eb9805e46c99a38df84681449ccdcec4ab9e7a42
3,297
py
Python
src/modeling/models_cv.py
sebasjp/octopus-ml
c8f650cf9487a82d6b71a5d5bada12c5c42ab954
[ "MIT" ]
1
2021-05-15T22:35:51.000Z
2021-05-15T22:35:51.000Z
src/modeling/models_cv.py
sebasjp/octopus
c8f650cf9487a82d6b71a5d5bada12c5c42ab954
[ "MIT" ]
null
null
null
src/modeling/models_cv.py
sebasjp/octopus
c8f650cf9487a82d6b71a5d5bada12c5c42ab954
[ "MIT" ]
null
null
null
from sklearn.ensemble import RandomForestClassifier import xgboost as xgb from sklearn.model_selection import cross_val_score from sklearn.pipeline import Pipeline import numpy as np # ============================================================= # Modeling tools for cross validation # Reference: https://github.com/fm...
33.30303
102
0.558386
330
3,297
5.381818
0.339394
0.056306
0.04223
0.042793
0.583896
0.544482
0.480856
0.399775
0.356982
0.356982
0
0.004038
0.323931
3,297
98
103
33.642857
0.792732
0.358811
0
0.542373
0
0
0.028978
0
0
0
0
0
0
1
0.033898
false
0
0.084746
0
0.152542
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb98399d5d514cad736c35a8e1b08c45e1e0717f
4,089
py
Python
flask_makespc.py
OliWright/MakeSPC
ddcc5b60de3bdb244b25da0d1a459b4b071ab278
[ "MIT" ]
null
null
null
flask_makespc.py
OliWright/MakeSPC
ddcc5b60de3bdb244b25da0d1a459b4b071ab278
[ "MIT" ]
null
null
null
flask_makespc.py
OliWright/MakeSPC
ddcc5b60de3bdb244b25da0d1a459b4b071ab278
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2020 Oli Wright <oli.wright.github@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # ...
41.72449
108
0.705062
563
4,089
4.989343
0.369449
0.019224
0.02136
0.027768
0.128159
0.045212
0
0
0
0
0
0.004877
0.197603
4,089
97
109
42.154639
0.851265
0.343849
0
0.035088
0
0.017544
0.243019
0.045283
0
0
0
0
0
1
0.070175
false
0
0.070175
0.052632
0.245614
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eb999df27e58e23913b51b8bb91c7eb0ee53cf08
1,201
py
Python
pytherface/yamlFileReader.py
aseiger/pytherface-configurator
704703cee8dd31f28fd73552c2b40c4b4d5faa5b
[ "MIT" ]
null
null
null
pytherface/yamlFileReader.py
aseiger/pytherface-configurator
704703cee8dd31f28fd73552c2b40c4b4d5faa5b
[ "MIT" ]
null
null
null
pytherface/yamlFileReader.py
aseiger/pytherface-configurator
704703cee8dd31f28fd73552c2b40c4b4d5faa5b
[ "MIT" ]
null
null
null
#reads in the protocol requirements and stores the information in a class import yaml import logging logger = logging.getLogger(__name__) def loadYamlFile(filename): #open up the filename logger.debug("Opening file {}".format(filename)) try: fObject = open(filename, 'r') except Fi...
31.605263
77
0.631973
137
1,201
5.510949
0.583942
0.007947
0.021192
0
0
0
0
0
0
0
0
0
0.273106
1,201
37
78
32.459459
0.864834
0.273106
0
0
0
0
0.089157
0
0
0
0
0
0
1
0.083333
false
0
0.083333
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
eb9c7f642d7fd9e4d6c05d5178d9f6237379f4fa
2,087
py
Python
docker/src/app_server/sse.py
ShenTengTu/leak_monitoring_app
dba3bc6aebdc4fe104508262065e426844a1ce52
[ "MIT" ]
null
null
null
docker/src/app_server/sse.py
ShenTengTu/leak_monitoring_app
dba3bc6aebdc4fe104508262065e426844a1ce52
[ "MIT" ]
null
null
null
docker/src/app_server/sse.py
ShenTengTu/leak_monitoring_app
dba3bc6aebdc4fe104508262065e426844a1ce52
[ "MIT" ]
null
null
null
import logging import io from asyncio import Queue from sse_starlette.sse import ( EventSourceResponse as _EventSourceResponse, AppStatus, ServerSentEvent, ) from .endec import Encode logger = logging.getLogger("app_server") class EventSourceResponse(_EventSourceResponse): """Override original `Event...
30.691176
88
0.595592
235
2,087
5.165957
0.421277
0.026359
0.032125
0.04201
0.074959
0.054366
0.054366
0
0
0
0
0.000671
0.285577
2,087
67
89
31.149254
0.813548
0.051749
0
0.038462
0
0
0.117108
0.010692
0
0
0
0
0
1
0.038462
false
0
0.096154
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
eba3ba5c97bda5e5f7c847bfd13a55f5e2d84a33
280
py
Python
github-json_to_xml/conv.py
alvarenga/github-json_to_xml
6ac210bea8badbed18f9e65127cb19e386e85d24
[ "MIT" ]
null
null
null
github-json_to_xml/conv.py
alvarenga/github-json_to_xml
6ac210bea8badbed18f9e65127cb19e386e85d24
[ "MIT" ]
null
null
null
github-json_to_xml/conv.py
alvarenga/github-json_to_xml
6ac210bea8badbed18f9e65127cb19e386e85d24
[ "MIT" ]
null
null
null
def conv(user): import requests import json import xmltodict url = 'https://api.github.com/users/' + user s = requests.get(url) # Converter json para dict x = {} x['wg'] = json.loads(s.text) y = xmltodict.unparse(x, pretty=True) return y
20
48
0.6
39
280
4.307692
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.267857
280
13
49
21.538462
0.819512
0.085714
0
0
0
0
0.122047
0
0
0
0
0
0
1
0.1
false
0
0.3
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
eba7e9b9d2ce20a664ab35ed0b3544b8abc90d3f
4,394
py
Python
rail/creation/creator.py
LSSTDESC/RAIL
77707a708068a6818d5d815fb6b952ecc06d511b
[ "MIT" ]
7
2020-09-21T13:02:23.000Z
2022-03-23T19:26:41.000Z
rail/creation/creator.py
LSSTDESC/RAIL
77707a708068a6818d5d815fb6b952ecc06d511b
[ "MIT" ]
116
2019-11-21T17:20:52.000Z
2022-03-30T11:21:54.000Z
rail/creation/creator.py
LSSTDESC/RAIL
77707a708068a6818d5d815fb6b952ecc06d511b
[ "MIT" ]
6
2020-01-24T17:14:43.000Z
2022-03-30T11:27:20.000Z
import numpy as np import pandas as pd from rail.creation.engines import Engine from typing import Callable class Creator: """Object that supplies mock data for redshift estimation experiments. The mock data is drawn from a probability distribution defined by the generator, with an optional degrader appl...
37.237288
107
0.60924
535
4,394
4.927103
0.342056
0.024279
0.014795
0.014416
0.046282
0.011381
0.011381
0
0
0
0
0.007692
0.319527
4,394
117
108
37.555556
0.873913
0.503641
0
0
0
0
0.011993
0
0
0
0
0
0
1
0.083333
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
eba86bf586aecd5b8c7e0131858b6b347ef52969
834
py
Python
contrib/nchain/devops/pipe-unittests.py
Trackerming/bitcoin-sv
fb50a64e3ea0334a86b2c80daf5147c5bc2693c4
[ "MIT" ]
8
2019-08-02T02:49:42.000Z
2022-01-17T15:51:48.000Z
contrib/nchain/devops/pipe-unittests.py
Trackerming/bitcoin-sv
fb50a64e3ea0334a86b2c80daf5147c5bc2693c4
[ "MIT" ]
null
null
null
contrib/nchain/devops/pipe-unittests.py
Trackerming/bitcoin-sv
fb50a64e3ea0334a86b2c80daf5147c5bc2693c4
[ "MIT" ]
4
2019-08-02T02:50:44.000Z
2021-05-28T03:21:38.000Z
#!/usr/bin/python3 # Perform the unit tests on SV import subprocess import os import pathlib import traceback import pipetestutils def main(): r1 = -1 try: pathlib.Path("build/reports").mkdir(parents=True, exist_ok=True) os.chdir("src/test") except Exception as e: print("Problem ch...
23.828571
72
0.581535
100
834
4.71
0.58
0.050955
0.072187
0.076433
0.318471
0.318471
0.191083
0.191083
0.191083
0.191083
0
0.011628
0.278177
834
34
73
24.529412
0.770764
0.055156
0
0.296296
0
0
0.223919
0.05598
0
0
0
0
0
1
0.037037
false
0
0.185185
0
0.222222
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebaa426765a7f0d350ab28d87557159798371f08
2,439
py
Python
tx_salaries/utils/transformers/ut_medical_branch.py
texastribune/tx_salaries
197d8da4e1783216830b8d0a5adb23c0200fd3e8
[ "Apache-2.0" ]
6
2016-05-18T05:53:44.000Z
2019-06-13T18:27:50.000Z
tx_salaries/utils/transformers/ut_medical_branch.py
texastribune/tx_salaries
197d8da4e1783216830b8d0a5adb23c0200fd3e8
[ "Apache-2.0" ]
64
2015-02-13T18:29:04.000Z
2018-06-15T19:48:56.000Z
tx_salaries/utils/transformers/ut_medical_branch.py
texastribune/tx_salaries
197d8da4e1783216830b8d0a5adb23c0200fd3e8
[ "Apache-2.0" ]
2
2015-05-08T19:22:12.000Z
2016-07-11T16:57:49.000Z
from . import base from . import mixins from datetime import date class TransformedRecord( mixins.GenericCompensationMixin, mixins.GenericDepartmentMixin, mixins.GenericIdentifierMixin, mixins.GenericJobTitleMixin, mixins.GenericPersonMixin, mixins.MembershipMixin, mixins.OrganizationM...
29.385542
77
0.627306
252
2,439
5.884921
0.444444
0.037087
0.035064
0.04855
0.125421
0.04855
0.04855
0.04855
0
0
0
0.00723
0.262813
2,439
82
78
29.743902
0.817575
0.04838
0
0.163934
0
0
0.236309
0.011643
0
0
0
0
0
1
0.081967
false
0
0.04918
0.016393
0.393443
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebac6ca248c814898ee7e3737a6b5b9899d1e5a4
762
py
Python
utils/custombase.py
Zashel/utils
1c8b9e1ad7ceb1924a719bef588fcfe38dfd1f70
[ "Apache-2.0" ]
null
null
null
utils/custombase.py
Zashel/utils
1c8b9e1ad7ceb1924a719bef588fcfe38dfd1f70
[ "Apache-2.0" ]
null
null
null
utils/custombase.py
Zashel/utils
1c8b9e1ad7ceb1924a719bef588fcfe38dfd1f70
[ "Apache-2.0" ]
null
null
null
class AttributedDict(dict): def __dir__(self): directory = dir(super()) directory.extend([str(key.replace(" ", "_")) for key in self]) return directory def __getattr__(self, attr): _dir_dict = dict() [_dir_dict.update({key.replace(" ", "_"): key}) for key in self] ...
31.75
72
0.560367
90
762
4.4
0.277778
0.141414
0.060606
0.090909
0.323232
0.323232
0.323232
0.323232
0.323232
0.323232
0
0
0.316273
762
23
73
33.130435
0.760077
0
0
0.47619
0
0
0.007874
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebaeccfe37530d080542e9861760ac1b8264f12f
31,392
py
Python
utils.py
val-iisc/ss_human_mesh
f9c7fcf577c83316eb610753e3f5678b7b5e24c5
[ "MIT" ]
31
2020-08-31T11:32:33.000Z
2021-12-05T08:47:33.000Z
utils.py
rakeshramesha/SS_Human_Mesh
b27d53a08b60a1ac32d1845557f317c165498fd5
[ "MIT" ]
null
null
null
utils.py
rakeshramesha/SS_Human_Mesh
b27d53a08b60a1ac32d1845557f317c165498fd5
[ "MIT" ]
7
2020-09-25T03:50:59.000Z
2021-12-10T05:24:58.000Z
""" General Utilities file. """ import sys import os ############################ NON-TF UTILS ########################## from skimage.util import img_as_float import numpy as np import cv2 import pickle from PIL import Image from io import BytesIO import math import tqdm import scipy import json import matplo...
33.538462
195
0.618374
4,930
31,392
3.718256
0.146856
0.024876
0.003819
0.008401
0.330206
0.263543
0.222301
0.206917
0.187715
0.17615
0
0.04785
0.239074
31,392
935
196
33.574332
0.719555
0.161602
0
0.231561
0
0
0.013716
0.004217
0
0
0
0
0.001715
1
0.087479
false
0
0.039451
0
0.210978
0.006861
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebb024cf3162a7ae7533de24c182385e63946496
8,389
py
Python
netQuil/connections.py
att-innovate/qnetdes
459d688e92139ab3219416cdb9e3b20ff082dc1d
[ "MIT" ]
4
2019-11-14T21:30:35.000Z
2021-12-13T08:34:33.000Z
netQuil/connections.py
att-innovate/qnetdes
459d688e92139ab3219416cdb9e3b20ff082dc1d
[ "MIT" ]
null
null
null
netQuil/connections.py
att-innovate/qnetdes
459d688e92139ab3219416cdb9e3b20ff082dc1d
[ "MIT" ]
null
null
null
import queue import multiprocessing import itertools import sys __all__ = ["QConnect", "CConnect"] pulse_length_default = 10 * 10 ** -12 # 10 ps photon pulse length signal_speed = 2.998 * 10 ** 5 #speed of light in km/s fiber_length_default = 0.0 class QConnect: def __init__(self, *args, transit_devices=[]): ...
39.947619
119
0.619383
1,023
8,389
4.924731
0.162268
0.061532
0.032751
0.015879
0.356689
0.26717
0.250099
0.241366
0.241366
0.216753
0
0.004829
0.308857
8,389
210
120
39.947619
0.864091
0.293003
0
0.290909
0
0
0.022023
0
0
0
0
0
0
1
0.054545
false
0
0.036364
0
0.145455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebb199161cfe0fe5c616a4c065ef5c14803d10c1
2,035
py
Python
pqcli/ui/curses/views/game_view/character_sheet_window.py
tree-s/pq-cli
f5d0ed69a99c490a63f854442fba2b443e59a134
[ "MIT" ]
94
2018-11-17T22:40:16.000Z
2022-03-28T05:09:16.000Z
pqcli/ui/curses/views/game_view/character_sheet_window.py
tree-s/pq-cli
f5d0ed69a99c490a63f854442fba2b443e59a134
[ "MIT" ]
17
2019-04-10T18:06:46.000Z
2022-03-03T03:25:08.000Z
pqcli/ui/curses/views/game_view/character_sheet_window.py
tree-s/pq-cli
f5d0ed69a99c490a63f854442fba2b443e59a134
[ "MIT" ]
14
2019-04-10T21:33:14.000Z
2022-02-16T14:42:56.000Z
import typing as T from pqcli.mechanic import Player, StatType from pqcli.ui.curses.widgets import Focusable from .progress_bar_window import DataTableProgressBarWindow class CharacterSheetWindow(Focusable, DataTableProgressBarWindow): def __init__( self, player: Player, parent: T.Any, h: int, w: int, y...
30.373134
75
0.615725
252
2,035
4.615079
0.31746
0.128977
0.078246
0.082545
0.239037
0.123818
0.123818
0.123818
0
0
0
0.002011
0.26683
2,035
66
76
30.833333
0.77748
0
0
0
0
0
0.064373
0.016708
0
0
0
0
0
1
0.096154
false
0
0.076923
0
0.211538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebb3616f90465bce3896df5538302b23c8d738c6
1,668
py
Python
src/precession/planet.py
kurlytail/precession
a5dd83f4fca4629de1f5759bb467183bda1a6506
[ "MIT" ]
null
null
null
src/precession/planet.py
kurlytail/precession
a5dd83f4fca4629de1f5759bb467183bda1a6506
[ "MIT" ]
null
null
null
src/precession/planet.py
kurlytail/precession
a5dd83f4fca4629de1f5759bb467183bda1a6506
[ "MIT" ]
null
null
null
import yaml import pathlib import json import math class Planet(object): def __init__(self, config): self.GMS = 0 # mass self.M = 0. self.name = "unknown" # period self.T = 1. # eccentricity self.e = 0. # semi major axis self.a = 1. ...
27.8
97
0.522182
223
1,668
3.820628
0.336323
0.029343
0.028169
0.035211
0.052817
0.052817
0
0
0
0
0
0.013686
0.342926
1,668
59
98
28.271186
0.763686
0.032374
0
0
0
0.021277
0.082711
0.03296
0
0
0
0
0
1
0.12766
false
0
0.085106
0.021277
0.297872
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebb54d34edb14bf6d75544e3fae03ac69c069a8f
15,289
py
Python
jade/jobs/job_submitter.py
NREL/jade
84d73f45e206c4a35e6483e6c1ce29ab7ac7e543
[ "BSD-3-Clause" ]
15
2021-05-15T21:58:26.000Z
2022-03-17T08:26:48.000Z
jade/jobs/job_submitter.py
NREL/jade
84d73f45e206c4a35e6483e6c1ce29ab7ac7e543
[ "BSD-3-Clause" ]
22
2021-02-04T20:02:33.000Z
2021-09-14T13:29:30.000Z
jade/jobs/job_submitter.py
NREL/jade
84d73f45e206c4a35e6483e6c1ce29ab7ac7e543
[ "BSD-3-Clause" ]
3
2021-01-11T15:11:31.000Z
2021-06-07T17:36:51.000Z
"""Provides ability to run jobs locally or on HPC.""" from collections import OrderedDict import datetime import fileinput import importlib import logging import os import shutil import jade from jade.common import ( CONFIG_FILE, JOBS_OUTPUT_DIR, OUTPUT_DIR, RESULTS_FILE, HPC_CONFIG_FILE, ) from j...
35.473318
99
0.608738
1,685
15,289
5.279525
0.197626
0.017986
0.007869
0.011241
0.176147
0.110612
0.093413
0.073516
0.057329
0.036196
0
0.001595
0.302832
15,289
430
100
35.555814
0.833005
0.086598
0
0.123839
0
0
0.098097
0.00981
0
0
0
0
0.003096
1
0.049536
false
0.003096
0.092879
0.003096
0.182663
0.003096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebb61e698b97baa6c67673863e148e21ab80d713
1,364
py
Python
testing/MarketMaker_contract_test.py
SK1989sL/RYO
a0c89c694d9ad4aed9a9776937f2f73271b67f28
[ "MIT" ]
null
null
null
testing/MarketMaker_contract_test.py
SK1989sL/RYO
a0c89c694d9ad4aed9a9776937f2f73271b67f28
[ "MIT" ]
null
null
null
testing/MarketMaker_contract_test.py
SK1989sL/RYO
a0c89c694d9ad4aed9a9776937f2f73271b67f28
[ "MIT" ]
null
null
null
import os import pytest from starkware.starknet.compiler.compile import ( compile_starknet_files) from starkware.starknet.testing.starknet import Starknet from starkware.starknet.testing.contract import StarknetContract # The path to the contract source code. CONTRACT_FILE = os.path.join( os.path.dirname(__fi...
30.311111
79
0.73827
181
1,364
5.287293
0.38674
0.025078
0.065831
0.058516
0
0
0
0
0
0
0
0.009001
0.185484
1,364
44
80
31
0.852385
0.195748
0
0
0
0
0.027624
0.027624
0
0
0
0
0.074074
1
0
false
0
0.185185
0
0.185185
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebb6bb07248128010f898b3fb588b1cee8d3c6cc
1,930
py
Python
test/perform_additional_setup.py
aws/amazon-braket-containers
44187fb4cc73e05bda3e361638d94b90f6e4c06a
[ "Apache-2.0" ]
1
2022-03-22T23:49:17.000Z
2022-03-22T23:49:17.000Z
test/perform_additional_setup.py
aws/amazon-braket-containers
44187fb4cc73e05bda3e361638d94b90f6e4c06a
[ "Apache-2.0" ]
null
null
null
test/perform_additional_setup.py
aws/amazon-braket-containers
44187fb4cc73e05bda3e361638d94b90f6e4c06a
[ "Apache-2.0" ]
3
2021-11-29T21:19:31.000Z
2022-01-13T16:31:06.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
33.275862
77
0.698964
283
1,930
4.55477
0.44523
0.031032
0.024825
0
0
0
0
0
0
0
0
0.017857
0.21658
1,930
57
78
33.859649
0.834656
0.389637
0
0
0
0
0.114058
0.045977
0
0
0
0
0
1
0.071429
false
0
0.25
0
0.357143
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebb7280816985728a4a272af67774f62eef9667c
1,146
py
Python
experiments/optim.py
fbcotter/dtcwt_gainlayer
32ec3e21066edc2a0d5edefaf70f43d031d1b4ac
[ "MIT" ]
6
2018-11-14T22:41:58.000Z
2021-12-08T11:01:32.000Z
experiments/optim.py
fbcotter/dtcwt_gainlayer
32ec3e21066edc2a0d5edefaf70f43d031d1b4ac
[ "MIT" ]
null
null
null
experiments/optim.py
fbcotter/dtcwt_gainlayer
32ec3e21066edc2a0d5edefaf70f43d031d1b4ac
[ "MIT" ]
1
2020-05-22T16:10:00.000Z
2020-05-22T16:10:00.000Z
import torch.optim from numpy import ndarray def get_optim(optim, params, init_lr, steps=1, wd=0, gamma=1, momentum=0.9, max_epochs=120): if optim == 'sgd': optimizer = torch.optim.SGD( params, lr=init_lr, momentum=momentum, weight_decay=wd) elif optim == 'sgd_nomem': ...
33.705882
69
0.624782
144
1,146
4.881944
0.361111
0.085349
0.081081
0.059744
0.361309
0.125178
0.125178
0.125178
0.125178
0
0
0.018846
0.259162
1,146
33
70
34.727273
0.809187
0.035777
0
0.148148
0
0
0.047187
0
0
0
0
0
0
1
0.037037
false
0
0.074074
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
ebb8162cb09b68c8030371823ad7d00d0561cc03
1,941
py
Python
src/microengineclamav/tasks.py
polyswarm/microengine-clamav
9427932cd35d4f8bfc7fe7877e90f518e7a3bfbb
[ "MIT" ]
2
2018-05-20T00:08:14.000Z
2018-06-13T22:42:14.000Z
src/microengineclamav/tasks.py
polyswarm/microengine-clamav
9427932cd35d4f8bfc7fe7877e90f518e7a3bfbb
[ "MIT" ]
1
2021-06-22T15:03:01.000Z
2021-06-22T20:26:52.000Z
src/microengineclamav/tasks.py
polyswarm/microengine-clamav
9427932cd35d4f8bfc7fe7877e90f518e7a3bfbb
[ "MIT" ]
1
2019-02-21T20:22:32.000Z
2019-02-21T20:22:32.000Z
from celery import Celery, Task from microengine_utils import errors from microengine_utils.datadog import configure_metrics from microengine_utils.constants import SCAN_FAIL, SCAN_SUCCESS, SCAN_TIME, SCAN_VERDICT from microengineclamav.models import Bounty, ScanResult, Verdict, Assertion, Phase from microengineclamav...
35.944444
104
0.663575
218
1,941
5.678899
0.344037
0.056543
0.061389
0.067851
0.181745
0.065428
0
0
0
0
0
0.000692
0.255023
1,941
53
105
36.622642
0.855463
0.016486
0
0.046512
0
0
0.076036
0.073414
0
0
0
0
0.046512
1
0.046512
false
0
0.162791
0
0.27907
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebb9e939ebab9f1ac907089a906eafebd3d40188
18,835
py
Python
app/main.py
rendybjunior/freddie-mercury
1b6d1fe8c06f317e5fc8ab17afdfa0a8b90a7a75
[ "Apache-2.0" ]
null
null
null
app/main.py
rendybjunior/freddie-mercury
1b6d1fe8c06f317e5fc8ab17afdfa0a8b90a7a75
[ "Apache-2.0" ]
2
2019-05-11T16:25:54.000Z
2019-05-13T01:19:16.000Z
app/main.py
rendybjunior/freddie-mercury
1b6d1fe8c06f317e5fc8ab17afdfa0a8b90a7a75
[ "Apache-2.0" ]
null
null
null
import datetime import os, sys, six, base64, copy from jinja2 import Environment, FileSystemLoader, Template from google.auth.transport import requests from google.cloud import datastore from google.cloud import storage from google.cloud import bigquery import google.oauth2.id_token from flask import Flask, render_t...
40.945652
156
0.623042
2,287
18,835
4.880192
0.155225
0.020697
0.021324
0.018816
0.473255
0.379984
0.362423
0.328644
0.292089
0.276857
0
0.008483
0.261481
18,835
460
157
40.945652
0.793889
0.060473
0
0.379487
0
0
0.12396
0.013528
0
0
0
0.002174
0
1
0.038462
false
0.005128
0.035897
0
0.158974
0.005128
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebbaa88673070e1877aabf5581d29c7b6749d413
982
py
Python
ej2.py
NiopTres/Ejercicio-Herramientas-Computacionales
af97b810e1ade4fb2cdfa433e1e09ddc301b7dd3
[ "Unlicense" ]
null
null
null
ej2.py
NiopTres/Ejercicio-Herramientas-Computacionales
af97b810e1ade4fb2cdfa433e1e09ddc301b7dd3
[ "Unlicense" ]
null
null
null
ej2.py
NiopTres/Ejercicio-Herramientas-Computacionales
af97b810e1ade4fb2cdfa433e1e09ddc301b7dd3
[ "Unlicense" ]
null
null
null
NotaParcial1 = int(input("Nota primer Parcial: ")) NotaParcial2 = int(input("Nota segundo Parcial: ")) NotaTaller = int(input("Nota del Taller: ")) NotaProyecto = int(input("Nota del Proyecto: ")) Parcial1 = NotaParcial1*(25/100) Parcial2 = NotaParcial2*(25/100) Taller = NotaTaller*(20/100) Proyecto = NotaPr...
24.55
99
0.729124
126
982
5.666667
0.34127
0.063025
0.067227
0.042017
0
0
0
0
0
0
0
0.050063
0.186354
982
39
100
25.179487
0.843554
0
0
0
0
0
0.195062
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
ebbeecd7804589e9d66d63e0bc0c0723583222d7
1,395
py
Python
build/package.py
weijiekoh/malvarma
cc8b699b697a0735dd53af27ae4a23955b581f93
[ "MIT" ]
15
2018-01-15T14:22:46.000Z
2022-03-20T19:05:27.000Z
build/package.py
stephensong/malvarma
cc8b699b697a0735dd53af27ae4a23955b581f93
[ "MIT" ]
1
2018-01-21T09:56:04.000Z
2018-06-21T06:20:23.000Z
build/package.py
stephensong/malvarma
cc8b699b697a0735dd53af27ae4a23955b581f93
[ "MIT" ]
6
2018-01-21T10:00:48.000Z
2021-07-26T00:03:45.000Z
#!/usr/bin/env python3 """ This script checksums, signs, and compresses malvarma-<version>.img, and creates malvarma-<version>.tar.bz2. The author's GPG signature is hardcoded below. """ import os import shutil import sys import subprocess if __name__ == "__main__": if len(sys.argv) == 1: print("Usage: ...
31.704545
120
0.665233
171
1,395
5.298246
0.432749
0.110375
0.066225
0.082781
0.247241
0.12362
0.12362
0.12362
0.12362
0
0
0.026738
0.195699
1,395
43
121
32.44186
0.780749
0.127599
0
0.185185
0
0
0.239868
0.035567
0
0
0.014888
0
0
1
0
false
0
0.148148
0
0.148148
0.185185
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebc2424c2e78916d3caf093c64b2223284f39d93
1,955
py
Python
examples/recordRawFrames.py
OnionIoT/tau-lidar-camera
a70b24e18be8e4c5abfe525c6768fbc10a492fd8
[ "MIT" ]
31
2020-12-18T16:35:15.000Z
2022-03-25T18:41:19.000Z
examples/recordRawFrames.py
OnionIoT/tau-lidar-camera
a70b24e18be8e4c5abfe525c6768fbc10a492fd8
[ "MIT" ]
17
2020-11-18T16:10:36.000Z
2022-02-01T22:19:11.000Z
examples/recordRawFrames.py
OnionIoT/tau-lidar-camera
a70b24e18be8e4c5abfe525c6768fbc10a492fd8
[ "MIT" ]
4
2021-01-18T17:25:02.000Z
2021-11-01T13:25:45.000Z
import os import time from signal import signal, SIGINT from TauLidarCommon.frame import FrameType from TauLidarCamera.camera import Camera outputDir = './samples' runLoop = True def setup(): camera = None ports = Camera.scan() ## Scan for available Tau Camera devices if len(ports)...
26.066667
89
0.586189
210
1,955
5.4
0.461905
0.048501
0.031746
0
0
0
0
0
0
0
0
0.017647
0.304348
1,955
74
90
26.418919
0.816176
0.083887
0
0.037736
0
0
0.133146
0
0
0
0
0
0
1
0.075472
false
0
0.09434
0
0.188679
0.207547
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebc29b44ef030ad4cf5e8ff010606f3919b7f18d
1,038
py
Python
HyeonJinGithub/2020-10-13/2560 회장뽑기.py
Team-Morgorithm/Morgorithm
133f19e1e15e423589bd7b94b698d2afc76c3ef6
[ "MIT" ]
1
2021-07-29T01:33:44.000Z
2021-07-29T01:33:44.000Z
HyeonJinGithub/2020-10-13/2560 회장뽑기.py
Team-NTO/NTO
133f19e1e15e423589bd7b94b698d2afc76c3ef6
[ "MIT" ]
150
2020-09-28T13:11:29.000Z
2021-08-05T23:28:36.000Z
HyeonJinGithub/2020-10-13/2560 회장뽑기.py
Team-Morgorithm/morgorithm
133f19e1e15e423589bd7b94b698d2afc76c3ef6
[ "MIT" ]
3
2020-09-30T14:05:56.000Z
2021-07-29T01:33:53.000Z
import sys from collections import deque def bfs(x): q = deque([x]) dist = [0] * (N + 1) check = [False] * (N + 1) cnt = -1 check[x] = True while q: size = len(q) cnt += 1 for _ in range(size): x = q.popleft() for y in a[x]: if dist...
24.714286
54
0.421002
141
1,038
3.028369
0.361702
0.018735
0.046838
0
0
0
0
0
0
0
0
0.032423
0.435453
1,038
42
55
24.714286
0.696246
0
0
0.097561
0
0
0.008662
0
0
0
0
0
0
1
0.02439
false
0
0.04878
0
0.097561
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebc743c4294c3b10ce8684625c881a47ded3ea8a
5,235
py
Python
tests/test_bokeh_wamp.py
ricorx7/rti-python
1316323b782ddb8df357e55404f507a9573e172c
[ "BSD-3-Clause" ]
1
2017-06-10T13:27:44.000Z
2017-06-10T13:27:44.000Z
tests/test_bokeh_wamp.py
ricorx7/rti-python
1316323b782ddb8df357e55404f507a9573e172c
[ "BSD-3-Clause" ]
10
2019-12-28T18:06:18.000Z
2022-03-25T18:48:20.000Z
tests/test_bokeh_wamp.py
ricorx7/rti_python
1316323b782ddb8df357e55404f507a9573e172c
[ "BSD-3-Clause" ]
null
null
null
import json from twisted.logger import Logger from twisted.internet.defer import inlineCallbacks from autobahn.twisted.wamp import ApplicationSession from autobahn.twisted.wamp import ApplicationRunner from bokeh.client import push_session from bokeh.plotting import figure, curdoc from bokeh.models.widgets import Pan...
41.547619
110
0.637631
695
5,235
4.686331
0.253237
0.055266
0.073687
0.036844
0.45809
0.429229
0.338348
0.240098
0.156586
0.156586
0
0.033028
0.207641
5,235
126
111
41.547619
0.75217
0.082713
0
0
0
0
0.126722
0.019284
0
0
0
0
0
1
0.034483
false
0
0.114943
0
0.16092
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebc7a37f046171aa884cf21a18cce4f0bbd74515
8,338
py
Python
scripts/betterX_labs_attributes.py
eliasall/BetterX-Cloud
c6796f1207ced4ad3c63fd56df08ecf5ece613e1
[ "Apache-2.0" ]
null
null
null
scripts/betterX_labs_attributes.py
eliasall/BetterX-Cloud
c6796f1207ced4ad3c63fd56df08ecf5ece613e1
[ "Apache-2.0" ]
null
null
null
scripts/betterX_labs_attributes.py
eliasall/BetterX-Cloud
c6796f1207ced4ad3c63fd56df08ecf5ece613e1
[ "Apache-2.0" ]
null
null
null
## Web File def insertWeb(filetype, json, cursor, conn, uid): if (filetype == 'web'): web_page_node(json,uid,cursor,conn) # [pages] / [pageNode] web_entry_node(json, uid, cursor, conn) # [pages] / [entriesNode] def web_entry_response(json_entries_node, uid, cursor, conn, parentid): tblName = 'lab_web_entries...
32.570313
133
0.71444
861
8,338
6.835075
0.188153
0.050977
0.017672
0.011555
0.435174
0.397451
0.379269
0.300255
0.268479
0.239932
0
0.023302
0.150756
8,338
256
134
32.570313
0.807796
0.039938
0
0.457286
0
0
0.160882
0.017416
0
0
0
0
0
1
0.060302
false
0
0
0
0.095477
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebc8be7f524d02d68beecb4c56841bf72041c9e6
1,148
py
Python
tutorials/W2D2_LinearSystems/solutions/W2D2_Tutorial3_Solution_b972f241.py
eduardojdiniz/CompNeuro
20269e66540dc4e802273735c97323020ee37406
[ "CC-BY-4.0", "BSD-3-Clause" ]
2,294
2020-05-11T12:05:35.000Z
2022-03-28T21:23:34.000Z
tutorials/W2D2_LinearSystems/solutions/W2D2_Tutorial3_Solution_b972f241.py
pellet/course-content
bb383857992469e0e7a9c36639ac0d05e842d9bd
[ "CC-BY-4.0", "BSD-3-Clause" ]
629
2020-05-11T15:42:26.000Z
2022-03-29T12:23:35.000Z
tutorials/W2D2_LinearSystems/solutions/W2D2_Tutorial3_Solution_b972f241.py
pellet/course-content
bb383857992469e0e7a9c36639ac0d05e842d9bd
[ "CC-BY-4.0", "BSD-3-Clause" ]
917
2020-05-11T12:47:53.000Z
2022-03-31T12:14:41.000Z
def ddm(T, x0, xinfty, lam, sig): t = np.arange(0, T, 1.) x = np.zeros_like(t) x[0] = x0 for k in range(len(t)-1): x[k+1] = xinfty + lam * (x[k] - xinfty) + sig * np.random.standard_normal(size=1) return t, x # computes equilibrium variance of ddm # returns variance def ddm_eq_var(T, x0, ...
30.210526
89
0.691638
190
1,148
4.094737
0.421053
0.041131
0.034704
0.046272
0.137532
0.068123
0
0
0
0
0
0.037594
0.189024
1,148
38
90
30.210526
0.798067
0.313589
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
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
ebcd560a4b989401a8f15f7d602324e8d9dfe946
889
py
Python
tests/dna_builders_test.py
auxein/auxein
5388cb572b65aecc282f915515c35dc3b987154c
[ "Apache-2.0" ]
1
2019-05-08T14:53:27.000Z
2019-05-08T14:53:27.000Z
tests/dna_builders_test.py
auxein/auxein
5388cb572b65aecc282f915515c35dc3b987154c
[ "Apache-2.0" ]
2
2020-08-26T09:16:47.000Z
2020-10-30T16:47:03.000Z
tests/dna_builders_test.py
auxein/auxein
5388cb572b65aecc282f915515c35dc3b987154c
[ "Apache-2.0" ]
null
null
null
from unittest.mock import patch import numpy as np from auxein.population.dna_builders import UniformRandomDnaBuilder, NormalRandomDnaBuilder def test_uniform_random_dna_builder_instantiation(): builder = UniformRandomDnaBuilder(interval=(-5, 0)) assert builder.get_distribution() == 'uniform' assert len(...
29.633333
90
0.725534
118
889
5.220339
0.364407
0.081169
0.077922
0.064935
0.097403
0.097403
0
0
0
0
0
0.037736
0.165354
889
29
91
30.655172
0.792453
0
0
0
0
0
0.035996
0
0
0
0
0
0.35
1
0.15
false
0
0.15
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebd0835b63b438a8287b71effbf6286cc7da50d9
5,393
py
Python
distributed_model.py
mknw/mask-rcnn
0e7d14abeecb208e63dc5a9f7c05dbd0419afbe7
[ "MIT" ]
null
null
null
distributed_model.py
mknw/mask-rcnn
0e7d14abeecb208e63dc5a9f7c05dbd0419afbe7
[ "MIT" ]
null
null
null
distributed_model.py
mknw/mask-rcnn
0e7d14abeecb208e63dc5a9f7c05dbd0419afbe7
[ "MIT" ]
null
null
null
from model import * from config import * from utils import * if __name__ == "__main__": ''' GPU(s) ''' gpus = tf.config.experimental.list_physical_devices('GPU') GPU_N = 3 if gpus: try: tf.config.experimental.set_visible_devices(gpus[GPU_N:], 'GPU') logical_gpus = tf.config.experimental.list_logical_devi...
29.631868
139
0.708511
809
5,393
4.488257
0.284302
0.026439
0.026439
0.018728
0.226659
0.09474
0.09474
0.058937
0.017075
0
0
0.038893
0.156128
5,393
181
140
29.79558
0.758954
0.167625
0
0.067416
0
0
0.070668
0.007094
0
0
0
0.005525
0
1
0.05618
false
0
0.11236
0
0.224719
0.044944
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebd7565d7fb3e2e6e97cd012dbbf6e7433713b29
872
py
Python
tests/test_dedge.py
GiliardGodoi/edgesets
b59a600400972ccc82e5e17f2acbb2b45045b40b
[ "MIT" ]
null
null
null
tests/test_dedge.py
GiliardGodoi/edgesets
b59a600400972ccc82e5e17f2acbb2b45045b40b
[ "MIT" ]
20
2021-11-08T13:02:33.000Z
2021-11-29T01:03:40.000Z
tests/test_dedge.py
GiliardGodoi/edgesets
b59a600400972ccc82e5e17f2acbb2b45045b40b
[ "MIT" ]
null
null
null
from edgesets import UEdge, DEdge def test_repr(): e1 = DEdge(7, 8) text = repr(e1) assert text == "DEdge(7, 8, weight=1)" e2 = eval(text) assert type(e1) == type(e1) assert e1 == e2 def test_if_directions_are_differents_with_same_nodes(): d1 = DEdge(10, 15) d2 = DEdge(15...
24.222222
61
0.603211
128
872
3.921875
0.328125
0.069721
0.027888
0.043825
0.507968
0.456175
0.36255
0.36255
0.36255
0.36255
0
0.075591
0.271789
872
36
61
24.222222
0.714961
0.061927
0
0.37037
0
0
0.026889
0
0
0
0
0
0.37037
1
0.185185
false
0
0.037037
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebd871d4dbf6a21fb3d86e6cb1fedb9b96ed2220
1,889
py
Python
pred.py
amoshyc/tthl-code
d00ba5abd2ade5b55db6a6b95d136041022e3150
[ "Apache-2.0" ]
null
null
null
pred.py
amoshyc/tthl-code
d00ba5abd2ade5b55db6a6b95d136041022e3150
[ "Apache-2.0" ]
null
null
null
pred.py
amoshyc/tthl-code
d00ba5abd2ade5b55db6a6b95d136041022e3150
[ "Apache-2.0" ]
null
null
null
import argparse from pathlib import Path import numpy as np import scipy import keras from keras.models import load_model from moviepy.editor import VideoFileClip, concatenate_videoclips from tqdm import tqdm def main(): # yapf: disable parser = argparse.ArgumentParser(description='Video Highlight') pa...
32.568966
88
0.644256
277
1,889
4.303249
0.397112
0.045302
0.08557
0.043624
0.062081
0.033557
0
0
0
0
0
0.023669
0.194812
1,889
57
89
33.140351
0.760026
0.019587
0
0
0
0
0.103896
0
0
0
0
0
0
1
0.02439
false
0
0.195122
0
0.219512
0.073171
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebd878270215dfbcc338d538a43df8bec58e8bb9
4,389
py
Python
blog/views.py
captainxavier/AutoBlog
44fb23628fe0210a3dcec80b91e1217d27ee9462
[ "MIT" ]
null
null
null
blog/views.py
captainxavier/AutoBlog
44fb23628fe0210a3dcec80b91e1217d27ee9462
[ "MIT" ]
null
null
null
blog/views.py
captainxavier/AutoBlog
44fb23628fe0210a3dcec80b91e1217d27ee9462
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django.utils import timezone from django.db.models import Count, Q from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator from django.contrib.auth import login, authenticate, log...
33.503817
98
0.642971
497
4,389
5.430584
0.253521
0.052983
0.040015
0.029641
0.240089
0.203038
0.068914
0.034828
0
0
0
0.005576
0.264525
4,389
131
99
33.503817
0.830545
0.017316
0
0.222222
0
0
0.081618
0.005505
0
0
0
0
0
1
0.037037
false
0
0.12037
0
0.203704
0.009259
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebd938bccdfd5e3d285fcfe2b39abb7192868335
1,408
py
Python
data_loader/data_set_loader.py
ys10/WaveRNN
dc4eec65bc1eec59ebc533469d40f072df3a6be6
[ "MIT" ]
6
2018-11-15T05:48:02.000Z
2021-06-18T02:22:31.000Z
data_loader/data_set_loader.py
ys10/WaveRNN
dc4eec65bc1eec59ebc533469d40f072df3a6be6
[ "MIT" ]
null
null
null
data_loader/data_set_loader.py
ys10/WaveRNN
dc4eec65bc1eec59ebc533469d40f072df3a6be6
[ "MIT" ]
1
2021-04-02T11:53:52.000Z
2021-04-02T11:53:52.000Z
# coding=utf-8 import tensorflow as tf class DataSetLoader(object): def __init__(self, config, generators, default_set_name='train'): self.config = config self.generators = generators self.data_sets = dict() self.data_set_init_ops = dict() with tf.variable_scope("data"): ...
48.551724
120
0.598011
169
1,408
4.692308
0.337278
0.088272
0.075662
0.037831
0.103405
0
0
0
0
0
0
0.011179
0.301136
1,408
28
121
50.285714
0.794715
0.008523
0
0
0
0
0.016499
0
0
0
0
0
0
1
0.083333
false
0
0.041667
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebda183d9ae687038f19ffe815f5ccbfc5935c5a
1,323
py
Python
ssht00ls/classes/connections/__init__.py
vandenberghinc/ssht00ls
e08081773c8da7dfac0764170bfeacb4bf421ec1
[ "CNRI-Python" ]
5
2021-02-18T17:46:39.000Z
2021-12-29T15:48:07.000Z
ssht00ls/classes/connections/__init__.py
vandenberghinc/ssht00ls
e08081773c8da7dfac0764170bfeacb4bf421ec1
[ "CNRI-Python" ]
null
null
null
ssht00ls/classes/connections/__init__.py
vandenberghinc/ssht00ls
e08081773c8da7dfac0764170bfeacb4bf421ec1
[ "CNRI-Python" ]
2
2021-03-19T14:06:20.000Z
2021-09-26T14:08:34.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # imports. from ssht00ls.classes.config import * from ssht00ls.classes import utils # the ssh connections object class. class Connections(Traceback): def __init__(self): # docs. DOCS = { "module":"ssht00ls.connections", "initialized":True, "description"...
28.76087
118
0.665911
155
1,323
5.529032
0.522581
0.060677
0.070012
0.060677
0
0
0
0
0
0
0
0.020833
0.165533
1,323
45
119
29.4
0.755435
0.092971
0
0
0
0.033333
0.307305
0.079765
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.233333
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebde515b95808947b4370dd040bc2675c00b8d5a
907
py
Python
ycyc/tests/__init__.py
MrLYC/ycyc
1938493294fbad3a461cc3a752c5385d30a6e51d
[ "MIT" ]
22
2015-07-21T03:15:36.000Z
2021-02-23T07:58:03.000Z
ycyc/tests/__init__.py
MrLYC/ycyc
1938493294fbad3a461cc3a752c5385d30a6e51d
[ "MIT" ]
3
2016-03-20T12:06:07.000Z
2018-01-16T10:34:19.000Z
ycyc/tests/__init__.py
MrLYC/ycyc
1938493294fbad3a461cc3a752c5385d30a6e51d
[ "MIT" ]
3
2015-05-08T00:55:38.000Z
2017-02-25T03:30:14.000Z
#!/usr/bin/env python # encoding: utf-8 from contextlib import contextmanager import mock __author__ = 'Liu Yicong' __email__ = 'imyikong@gmail.com' @contextmanager def mock_patches(*patches, **named_patches): """ A context manager to help create mock patches. >>> with mock_patches("package.module.cls"...
24.513514
77
0.62183
115
907
4.765217
0.486957
0.120438
0.058394
0.080292
0
0
0
0
0
0
0
0.005764
0.23484
907
36
78
25.194444
0.783862
0.261301
0
0
0
0
0.045242
0
0
0
0
0
0
1
0.047619
false
0
0.095238
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
ebe611c4dd602efaddd3352116b777a3b429c7f6
16,830
py
Python
sdkcore/SdkCoreTesting/scripts/arsdkgenobjc.py
papachuj/groundsdk-ios
f205f75b11a57f49b39ee558b2e8e39f59a15963
[ "BSD-3-Clause" ]
2
2020-03-30T00:06:43.000Z
2021-07-18T18:07:15.000Z
sdkcore/SdkCoreTesting/scripts/arsdkgenobjc.py
papachuj/groundsdk-ios
f205f75b11a57f49b39ee558b2e8e39f59a15963
[ "BSD-3-Clause" ]
null
null
null
sdkcore/SdkCoreTesting/scripts/arsdkgenobjc.py
papachuj/groundsdk-ios
f205f75b11a57f49b39ee558b2e8e39f59a15963
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import sys, os import arsdkparser #=============================================================================== class Writer(object): def __init__(self, fileobj): self.fileobj = fileobj def write(self, fmt, *args): if args: self.fileobj.write(fmt % (args)...
39.048724
128
0.57148
2,090
16,830
4.396172
0.091388
0.096648
0.06367
0.037005
0.732695
0.666086
0.602743
0.555181
0.512407
0.450044
0
0.00683
0.251812
16,830
430
129
39.139535
0.72284
0.043791
0
0.45045
0
0
0.157878
0.026365
0
0
0
0
0
1
0.075075
false
0
0.03003
0.015015
0.168168
0.003003
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ebe8666cf6e33ea8f8a62d695ff363e1865d7f05
4,998
py
Python
game.py
TheAmmiR/snake-game
7a95a36c1ef7c0e9064bad3976f14b25bdb19f2a
[ "MIT" ]
null
null
null
game.py
TheAmmiR/snake-game
7a95a36c1ef7c0e9064bad3976f14b25bdb19f2a
[ "MIT" ]
null
null
null
game.py
TheAmmiR/snake-game
7a95a36c1ef7c0e9064bad3976f14b25bdb19f2a
[ "MIT" ]
null
null
null
import numpy import pygame import random from pygame import gfxdraw pygame.init() config_instance = open('settings.txt', 'r', encoding = 'utf-8') class Settings: def __init__(self, settings: dict): def str_to_rgb(sequence): r, g, b = sequence.split(' ') r, g, b = int(r), int(g), int(b) if (any([r not in r...
33.543624
146
0.652461
772
4,998
4.130829
0.178756
0.118532
0.047037
0.027595
0.343995
0.240201
0.207275
0.158984
0.158984
0.158984
0
0.02553
0.169268
4,998
149
147
33.543624
0.742534
0.014606
0
0.121951
0
0
0.08352
0.009754
0
0
0
0
0
1
0.073171
false
0
0.03252
0
0.138211
0.01626
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccd7c7cddab93c97ea1df7fdefa52d6f4a71efc0
484
py
Python
static/python/demo.py
Nota-Bene/Nota-Bene.github.io
57c0a25176627263bb9403e8f660d36cffa9882b
[ "MIT" ]
null
null
null
static/python/demo.py
Nota-Bene/Nota-Bene.github.io
57c0a25176627263bb9403e8f660d36cffa9882b
[ "MIT" ]
null
null
null
static/python/demo.py
Nota-Bene/Nota-Bene.github.io
57c0a25176627263bb9403e8f660d36cffa9882b
[ "MIT" ]
null
null
null
import time import random def parse(input): tokens = input.split(" ") parsedTokens = [] time.sleep(5) for i in range(200000): test = random.randint(1, 8) + random.randint(-4, 90) for token in tokens: if token == "": continue parsedTokens.append({ "text": token, "lemma": token, ...
23.047619
64
0.60124
59
484
4.932203
0.694915
0.089347
0
0
0
0
0
0
0
0
0
0.036011
0.254132
484
20
65
24.2
0.770083
0
0
0
0
0
0.204545
0
0
0
0
0
0
1
0.052632
false
0
0.105263
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
ccdb25e847708f6452a1e362c123c06d0c2c27e2
2,961
py
Python
pytorch/torchnet.py
sjliu68/Remote-Sensing-Image-Classification
9bd5ec28380961c9e66288dd75c998425622043e
[ "MIT" ]
32
2020-09-10T12:54:09.000Z
2022-03-21T08:55:29.000Z
pytorch/torchnet.py
sjliu68/Remote-Sensing-Image-Classification
9bd5ec28380961c9e66288dd75c998425622043e
[ "MIT" ]
null
null
null
pytorch/torchnet.py
sjliu68/Remote-Sensing-Image-Classification
9bd5ec28380961c9e66288dd75c998425622043e
[ "MIT" ]
19
2020-08-10T10:16:47.000Z
2022-02-17T06:52:14.000Z
# -*- coding: utf-8 -*- """ Created on Mon Jan 6 10:07:13 2020 @author: sjliu.me@gmail.com """ import torch import torch.nn as nn import torch.nn.functional as F class wcrn(nn.Module): def __init__(self, num_classes=9): super(wcrn, self).__init__() self.conv1a = nn.Conv2d(103,64,...
32.538462
83
0.55049
440
2,961
3.625
0.190909
0.075235
0.087774
0.074608
0.602508
0.576176
0.488401
0.399373
0.399373
0.355486
0
0.121622
0.300236
2,961
90
84
32.9
0.648166
0.07126
0
0.229508
0
0
0
0
0
0
0
0
0
1
0.065574
false
0
0.04918
0
0.180328
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccdd4e7946bbbb66bc7ecddf26b85179c631159d
1,012
py
Python
rpmreq/actions.py
softwarefactory-project/rpmreq
b9b30cf6a184929db23ac86c8cc037592ee8b6be
[ "Apache-2.0" ]
null
null
null
rpmreq/actions.py
softwarefactory-project/rpmreq
b9b30cf6a184929db23ac86c8cc037592ee8b6be
[ "Apache-2.0" ]
null
null
null
rpmreq/actions.py
softwarefactory-project/rpmreq
b9b30cf6a184929db23ac86c8cc037592ee8b6be
[ "Apache-2.0" ]
1
2019-03-10T10:07:04.000Z
2019-03-10T10:07:04.000Z
import hawkey import logging from rpmreq import graph from rpmreq import query log = logging.getLogger(__name__) def build_requires(specs, repos, base_repos=None, out_data=None, out_image=None, cache_ttl=3600): dep_graph = graph.build_requires_graph( specs=specs, r...
27.351351
57
0.666008
137
1,012
4.649635
0.350365
0.087912
0.065934
0.050235
0
0
0
0
0
0
0
0.005355
0.261858
1,012
36
58
28.111111
0.84739
0.197628
0
0
0
0
0
0
0
0
0
0
0
1
0.095238
false
0
0.190476
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccde37610c8f0bf0da8d0c2c4fba8732e91c7b0e
1,033
py
Python
app/utils/path_utils.py
Tim-ty-tang/mlflow-fastapi-deploy
c8884a0462fc9f1ce3aa47f9d000af2bffa82123
[ "MIT" ]
null
null
null
app/utils/path_utils.py
Tim-ty-tang/mlflow-fastapi-deploy
c8884a0462fc9f1ce3aa47f9d000af2bffa82123
[ "MIT" ]
null
null
null
app/utils/path_utils.py
Tim-ty-tang/mlflow-fastapi-deploy
c8884a0462fc9f1ce3aa47f9d000af2bffa82123
[ "MIT" ]
null
null
null
from mlflow.tracking import MlflowClient from urllib.parse import urlparse def get_prod_path_mlflow_model_mlflow_query(model_name, version, new_bucket, new_path): client = MlflowClient() artifact_path_original = None for mv in client.search_model_versions(f"name='{model_name}'"): if mv.version == ...
38.259259
110
0.693127
140
1,033
4.714286
0.3
0.084848
0.127273
0.072727
0.369697
0.369697
0.221212
0.124242
0.124242
0.124242
0
0.002378
0.185866
1,033
26
111
39.730769
0.782402
0
0
0.105263
0
0
0.213385
0.1387
0
0
0
0
0
1
0.105263
false
0
0.105263
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccde416df2e474e2d91671ed935f8eaa2f12d8eb
5,350
py
Python
25h8_service.py
openprocurement/robot_tests.broker.25h8
619ffd180a8f051ef46d62767d54f4796baa122c
[ "Apache-2.0" ]
null
null
null
25h8_service.py
openprocurement/robot_tests.broker.25h8
619ffd180a8f051ef46d62767d54f4796baa122c
[ "Apache-2.0" ]
1
2017-12-18T13:44:01.000Z
2017-12-18T13:44:01.000Z
25h8_service.py
openprocurement/robot_tests.broker.25h8
619ffd180a8f051ef46d62767d54f4796baa122c
[ "Apache-2.0" ]
3
2018-06-11T10:30:05.000Z
2019-08-07T07:55:40.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from datetime import datetime, timedelta from iso8601 import parse_date from pytz import timezone import urllib import json import os def convert_time(date): date = datetime.strptime(date, "%d/%m/%Y %H:%M:%S") return timezone('Europe/Kiev').localize(date).strftime('%...
37.152778
114
0.629533
697
5,350
4.677188
0.308465
0.067485
0.064417
0.053988
0.328221
0.240798
0.184356
0.136503
0.112577
0.112577
0
0.017294
0.200187
5,350
144
115
37.152778
0.744566
0.007103
0
0.13913
0
0
0.281868
0.04067
0
0
0
0
0
1
0.113043
false
0
0.052174
0.017391
0.278261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cce181f9f38d4d3c462cfc4fd68ac4c8d8aebe76
6,574
py
Python
connect_four.py
seanstappas/dynamic-connect-4
f6106f71ac8779513cd80a2f46397bb778e21018
[ "MIT" ]
1
2020-08-21T03:05:08.000Z
2020-08-21T03:05:08.000Z
connect_four.py
seanstappas/dynamic-connect-4
f6106f71ac8779513cd80a2f46397bb778e21018
[ "MIT" ]
null
null
null
connect_four.py
seanstappas/dynamic-connect-4
f6106f71ac8779513cd80a2f46397bb778e21018
[ "MIT" ]
null
null
null
from __future__ import print_function NUM_ROWS = 7 NUM_COLS = 7 DIRECTIONS = ('E', 'W', 'N', 'S') MOVEMENT_DIFFS = { 'N': (0, -1), 'S': (0, 1), 'E': (1, 0), 'W': (-1, 0) } X_MOVEMENT_DIFFS = { 'N': 0, 'S': 0, 'E': 1, 'W': -1 } Y_MOVEMENT_DIFFS = { 'N': -1, 'S': 1, 'E': 0, ...
29.479821
119
0.605872
979
6,574
3.95097
0.117467
0.04757
0.033609
0.027921
0.505946
0.441313
0.400982
0.33635
0.307135
0.295502
0
0.012102
0.283541
6,574
222
120
29.612613
0.80913
0.434134
0
0.111111
0
0
0.009868
0
0
0
0
0
0
1
0.131313
false
0
0.010101
0
0.292929
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
cce3bf69f8b9a7979f41b539d693ed801301a438
3,781
py
Python
pyampute/tests/test_mapping.py
RianneSchouten/pyampute
98de0d5591546f958b0106217f60df92dc00fbb9
[ "BSD-3-Clause" ]
3
2022-02-14T02:02:23.000Z
2022-02-20T09:52:41.000Z
pyampute/tests/test_mapping.py
flacle/pyampute
8785f62c52a762dfc3113abe3610ba4893ef5f4b
[ "BSD-3-Clause" ]
24
2022-01-26T15:42:13.000Z
2022-03-12T15:49:56.000Z
pyampute/tests/test_mapping.py
flacle/pyampute
8785f62c52a762dfc3113abe3610ba4893ef5f4b
[ "BSD-3-Clause" ]
1
2022-02-15T19:15:42.000Z
2022-02-15T19:15:42.000Z
import numpy as np import pandas as pd import unittest from pyampute.ampute import MultivariateAmputation from pyampute.exploration.md_patterns import mdPatterns class TestMapping(unittest.TestCase): ''' This class tests the example code in the blogpost "A mapping from R-function ampute to pyampute" ''' ...
31.773109
100
0.539275
420
3,781
4.702381
0.242857
0.113418
0.060759
0.06481
0.508354
0.503797
0.444557
0.351392
0.351392
0.351392
0
0.051056
0.311029
3,781
118
101
32.042373
0.707102
0.02539
0
0.359551
0
0
0.126465
0
0
0
0
0
0.123596
1
0.05618
false
0
0.05618
0
0.123596
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cce90a7d4c65cdb80621e7e28495129d068861f2
2,092
py
Python
Synchro-Update-Vols.py
Apoorb/HCS_Synchro-Reader
d89428069584f420d584e2011a5cf21cd0a51f8b
[ "MIT" ]
null
null
null
Synchro-Update-Vols.py
Apoorb/HCS_Synchro-Reader
d89428069584f420d584e2011a5cf21cd0a51f8b
[ "MIT" ]
null
null
null
Synchro-Update-Vols.py
Apoorb/HCS_Synchro-Reader
d89428069584f420d584e2011a5cf21cd0a51f8b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 30 10:02:36 2019 @author: abibeka Purpose: Batch update synchro volumes """ # 0.0 Housekeeping. Clear variable space #****************************************************************************************** from IPython import get_ipython #run magic commands ipython =...
31.223881
110
0.663002
273
2,092
5.058608
0.494505
0.055033
0.066618
0.098479
0.128168
0.026068
0
0
0
0
0
0.049397
0.167782
2,092
66
111
31.69697
0.743825
0.25
0
0.051282
0
0.025641
0.137864
0.062136
0
0
0
0
0
1
0.025641
false
0
0.128205
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccea292c2e611183f7753e3277974ac6da80216f
5,695
py
Python
matplotlib.indigoPlugin/Contents/Server Plugin/chart_multiline.py
DaveL17/matplotlib
857daf4222390d021defb87b57c3360fa12af5ab
[ "MIT" ]
4
2017-08-27T16:53:56.000Z
2022-03-27T10:48:02.000Z
matplotlib.indigoPlugin/Contents/Server Plugin/chart_multiline.py
DaveL17/matplotlib
857daf4222390d021defb87b57c3360fa12af5ab
[ "MIT" ]
3
2019-01-30T20:04:00.000Z
2021-06-21T02:11:17.000Z
matplotlib.indigoPlugin/Contents/Server Plugin/chart_multiline.py
DaveL17/matplotlib
857daf4222390d021defb87b57c3360fa12af5ab
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Creates the multiline text charts Given the unique nature of multiline text charts, we use a separate method to construct them. ----- """ # Built-in Modules import pickle import sys import textwrap import traceback # Third-party Modules # Note the order and structu...
33.5
114
0.545391
666
5,695
4.537538
0.37988
0.028127
0.029782
0.021178
0.121774
0.121774
0.104567
0.104567
0.085374
0.085374
0
0.012881
0.332046
5,695
169
115
33.698225
0.781546
0.231958
0
0.126214
0
0
0.139442
0
0
0
0
0
0
1
0.019417
false
0.009709
0.07767
0
0.106796
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cceb89993da7a1b69dbd4927d78012815ff5b4de
1,814
py
Python
sdks/apigw-manager/tests/apigw_manager/apigw/test_command.py
IMBlues/bkpaas-python-sdk
a87bee3d26f0ddeac124c7a4679cd3eff4abb8fc
[ "MIT" ]
17
2021-08-03T03:15:35.000Z
2022-03-18T06:10:04.000Z
sdks/apigw-manager/tests/apigw_manager/apigw/test_command.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
7
2021-08-03T07:10:12.000Z
2022-03-23T04:47:22.000Z
sdks/apigw-manager/tests/apigw_manager/apigw/test_command.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
9
2021-08-03T03:20:36.000Z
2022-03-08T13:47:50.000Z
# -*- coding: utf-8 -*- """ * TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-蓝鲸 PaaS 平台(BlueKing-PaaS) available. * Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in co...
37.791667
118
0.711136
242
1,814
5.243802
0.5
0.038613
0.023641
0.025217
0.189125
0.137116
0.096139
0.096139
0.096139
0.096139
0
0.010316
0.198456
1,814
47
119
38.595745
0.862448
0.400772
0
0.153846
0
0
0.028918
0
0
0
0
0
0.307692
1
0.192308
false
0
0.076923
0
0.346154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccedbc549ffc192d24b74e12a04695a4d740a2b9
1,409
py
Python
sources/base.py
chenders/hours
878e0fa57ad4810851fd2bab529e7e1525cf9fbb
[ "MIT" ]
null
null
null
sources/base.py
chenders/hours
878e0fa57ad4810851fd2bab529e7e1525cf9fbb
[ "MIT" ]
6
2015-01-28T00:48:39.000Z
2015-01-28T00:51:48.000Z
sources/base.py
chenders/hours
878e0fa57ad4810851fd2bab529e7e1525cf9fbb
[ "MIT" ]
null
null
null
import pytz from datetime import timedelta from dateutil import parser from django.utils.text import Truncator from django.db import IntegrityError from core.models import Data class HoursDataSource(object): def __init__(self, start_date, end_date): self.entries = [] self.start_date = start_date ...
31.311111
76
0.648687
190
1,409
4.536842
0.3
0.114849
0.092807
0.097448
0.408353
0.408353
0.38051
0.38051
0.38051
0.38051
0
0.000978
0.274663
1,409
44
77
32.022727
0.842466
0.018453
0
0.4
0
0
0
0
0
0
0
0
0
1
0.171429
false
0.028571
0.171429
0.057143
0.485714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccf0191c3e20264408fdd3e37fe77537c8aef935
7,725
py
Python
tests/datastructures_tests/intensity_data_test.py
czbiohub/reconstruct-order
e729ae3871aea0a5ec2d42744a9448c7f0a93037
[ "Unlicense" ]
6
2019-10-30T23:00:01.000Z
2021-03-02T19:09:07.000Z
tests/datastructures_tests/intensity_data_test.py
czbiohub/ReconstructOrder
e729ae3871aea0a5ec2d42744a9448c7f0a93037
[ "Unlicense" ]
14
2019-07-08T22:51:29.000Z
2019-07-13T15:44:01.000Z
tests/datastructures_tests/intensity_data_test.py
mehta-lab/reconstruct-order
e729ae3871aea0a5ec2d42744a9448c7f0a93037
[ "Unlicense" ]
2
2020-05-02T23:28:36.000Z
2020-07-16T23:46:46.000Z
import numpy as np import pytest from numpy.testing import assert_array_equal from ReconstructOrder.datastructures.intensity_data import IntensityData # ==== test basic construction ===== def test_basic_constructor_nparray(): """ test assignment using numpy arrays """ int_data = IntensityData() ...
24.759615
77
0.655016
1,159
7,725
4.099223
0.11648
0.129657
0.06567
0.090928
0.669964
0.615028
0.571248
0.520732
0.428962
0.412334
0
0.03838
0.207379
7,725
311
78
24.839228
0.737547
0.13178
0
0.52439
0
0
0.013616
0
0
0
0
0
0.170732
1
0.121951
false
0
0.02439
0
0.146341
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
ccf118cf4e661c54ae6e3a8fa5192d55fe0bbd47
1,722
py
Python
configs/mario_pg_config.py
Shiien/verify_rl_torch
45866609ac55fcf99aaaa89df94573acf35580d2
[ "MIT" ]
1
2022-03-22T14:59:01.000Z
2022-03-22T14:59:01.000Z
configs/mario_pg_config.py
Shiien/verify_rl_torch
45866609ac55fcf99aaaa89df94573acf35580d2
[ "MIT" ]
null
null
null
configs/mario_pg_config.py
Shiien/verify_rl_torch
45866609ac55fcf99aaaa89df94573acf35580d2
[ "MIT" ]
null
null
null
import torch class MarioConfig: def __init__(self): # hyper config self.max_num_gpus = 1 self.num_workers = 32 self.discount = 0.999 self.observation_space = (84, 84, 3) self.action_space = 256 + 20 + 8 import os import datetime self.results...
43.05
119
0.624855
243
1,722
4.283951
0.539095
0.038425
0.03074
0.040346
0
0
0
0
0
0
0
0.039216
0.289199
1,722
39
120
44.153846
0.811275
0.348432
0
0
0
0
0.028959
0
0
0
0
0
0
1
0.035714
false
0
0.107143
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccf122ab24b6c118407351673ac8790f51122e47
505
py
Python
31-100/31-40/34.py
higee/project_euler
2ecdefb6e4a588f50cea47321c88ee7c7ac28110
[ "MIT" ]
null
null
null
31-100/31-40/34.py
higee/project_euler
2ecdefb6e4a588f50cea47321c88ee7c7ac28110
[ "MIT" ]
null
null
null
31-100/31-40/34.py
higee/project_euler
2ecdefb6e4a588f50cea47321c88ee7c7ac28110
[ "MIT" ]
null
null
null
def fac(n): if n in [0, 1]: return 1 else: return n * fac(n-1) def sum_of_the_factorial_of_their_digits(n): fac_of_the_digits = [fac_dic[int(x)] for x in str(n)] return sum(fac_of_the_digits) def main(): for n in range(10, 2540161): if n == sum_of_the_fac...
21.041667
57
0.584158
85
505
3.129412
0.352941
0.075188
0.037594
0.12782
0.330827
0.233083
0.233083
0.233083
0
0
0
0.042493
0.30099
505
23
58
21.956522
0.711048
0
0
0
0
0
0.015842
0
0
0
0
0
0
1
0.176471
false
0
0
0
0.352941
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccf2d7d2d0ffc342a84d86056b65cf383d097b4c
7,638
py
Python
audio_processing.py
poria-cat/Transformer-TTS-Pytorch
1e9e2dccc16c17372bf86ca73001f76645f53338
[ "MIT" ]
null
null
null
audio_processing.py
poria-cat/Transformer-TTS-Pytorch
1e9e2dccc16c17372bf86ca73001f76645f53338
[ "MIT" ]
null
null
null
audio_processing.py
poria-cat/Transformer-TTS-Pytorch
1e9e2dccc16c17372bf86ca73001f76645f53338
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F import torchaudio import numpy as np from scipy.signal import get_window from librosa.util import pad_center, tiny from librosa.filters import window_sumsquare from librosa.filters import mel as librosa_mel_fn def get_mel_basis(sampling_rate=22050, filter_length=1024, n_m...
40.2
161
0.660775
995
7,638
4.776884
0.18593
0.070692
0.034715
0.019987
0.366716
0.337892
0.253103
0.253103
0.229118
0.202188
0
0.02497
0.234485
7,638
189
162
40.412698
0.787925
0.052893
0
0.171642
0
0
0.005452
0
0
0
0
0
0.022388
1
0.089552
false
0
0.059701
0
0.246269
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccf38eaa3eb535456d8a6a2a6262774cda8e86a7
13,771
bzl
Python
toolchain/ndk_cc_toolchain_config.bzl
jbeich/skcms
9c30a95f0f167ee1513e5a1ea6846b15a010385c
[ "BSD-3-Clause" ]
null
null
null
toolchain/ndk_cc_toolchain_config.bzl
jbeich/skcms
9c30a95f0f167ee1513e5a1ea6846b15a010385c
[ "BSD-3-Clause" ]
null
null
null
toolchain/ndk_cc_toolchain_config.bzl
jbeich/skcms
9c30a95f0f167ee1513e5a1ea6846b15a010385c
[ "BSD-3-Clause" ]
null
null
null
"""This module defines the ndk_cc_toolchain_config rule. This file is based on the `external/androidndk/cc_toolchain_config.bzl` file produced by the built-in `android_ndk_repository` Bazel rule[1], which was used to build the SkCMS repository up until this revision[2]. The paths in this file point to locations insid...
34.002469
188
0.559872
1,435
13,771
5.075261
0.192334
0.023067
0.032953
0.030757
0.542634
0.430729
0.397226
0.312097
0.25992
0.224495
0
0.020979
0.325031
13,771
404
189
34.086634
0.762561
0.085542
0
0.544199
0
0.002762
0.252941
0.16876
0
0
0
0
0
1
0.024862
false
0
0
0
0.071823
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccf57840058ae1e39f456a4f292c8353027f974d
7,149
py
Python
VirtualJudgeSpider/OJs/HDUClass.py
mr-kkid/OnlineJudgeSpider
c83c01d8e989ae87834bdabdb3fae0984eae2eaa
[ "MIT" ]
null
null
null
VirtualJudgeSpider/OJs/HDUClass.py
mr-kkid/OnlineJudgeSpider
c83c01d8e989ae87834bdabdb3fae0984eae2eaa
[ "MIT" ]
null
null
null
VirtualJudgeSpider/OJs/HDUClass.py
mr-kkid/OnlineJudgeSpider
c83c01d8e989ae87834bdabdb3fae0984eae2eaa
[ "MIT" ]
null
null
null
import re from http import cookiejar from urllib import request, parse from bs4 import BeautifulSoup from VirtualJudgeSpider import Config from VirtualJudgeSpider.Config import Problem, Spider, Result from VirtualJudgeSpider.OJs.BaseClass import Base class HDU(Base): def __init__(self): self.code_type =...
41.807018
120
0.55854
886
7,149
4.371332
0.188488
0.011877
0.03718
0.033566
0.458559
0.389362
0.356829
0.306739
0.281694
0.253034
0
0.007331
0.294027
7,149
170
121
42.052941
0.760055
0
0
0.322148
0
0.013423
0.168135
0.065324
0
0
0
0
0
1
0.087248
false
0.013423
0.04698
0.006711
0.295302
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccf57bf381b881ac46ecdef94c8bf2a01ef756ae
705
py
Python
onlineJudge/baekjoon/DFS/Q2667.py
dahyeong-yun/prtc_coding-test-py
f082e42cc47d7da912bd229b355a813f2d38fabb
[ "MIT" ]
null
null
null
onlineJudge/baekjoon/DFS/Q2667.py
dahyeong-yun/prtc_coding-test-py
f082e42cc47d7da912bd229b355a813f2d38fabb
[ "MIT" ]
null
null
null
onlineJudge/baekjoon/DFS/Q2667.py
dahyeong-yun/prtc_coding-test-py
f082e42cc47d7da912bd229b355a813f2d38fabb
[ "MIT" ]
null
null
null
''' 입력 ''' n = int(input()) # 지도의 크기 square_map = [] for i in range(n): square_map.append(list(map(int, input()))) ''' 입력 ''' _house_count = 0 house = [] bundle = 0 def dfx(x, y): global _house_count if x <= -1 or x >= n or y <= -1 or y >= n: return False if square_map[x][y] == 1: ...
16.022727
46
0.486525
114
705
2.885965
0.289474
0.151976
0.054711
0.066869
0.12462
0.051672
0.051672
0
0
0
0
0.028889
0.361702
705
44
47
16.022727
0.702222
0.015603
0
0.206897
0
0
0
0
0
0
0
0
0
1
0.034483
false
0
0
0
0.137931
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccf684f8b04fadc89a621f3af0e959e3165d4fdf
1,530
py
Python
queue_task/views.py
emoryBlame/queue_server
946345111359d5001244eb0cc8fd1b8acc50dd3f
[ "MIT" ]
null
null
null
queue_task/views.py
emoryBlame/queue_server
946345111359d5001244eb0cc8fd1b8acc50dd3f
[ "MIT" ]
7
2020-02-11T23:41:11.000Z
2022-01-13T01:04:03.000Z
queue_task/views.py
emoryBlame/queue_server
946345111359d5001244eb0cc8fd1b8acc50dd3f
[ "MIT" ]
null
null
null
from django.shortcuts import render from .models import Task from rest_framework import serializers from rest_framework.response import Response from rest_framework.decorators import api_view # Create your views here. class TaskSerializer(serializers.ModelSerializer): """ Task serializer class """ class Meta: "...
23.90625
110
0.698693
200
1,530
5.265
0.365
0.093067
0.048433
0.032289
0.160494
0.043685
0
0
0
0
0
0.003091
0.154248
1,530
63
111
24.285714
0.810665
0.060131
0
0.285714
0
0
0.154119
0
0
0
0
0
0
1
0.071429
false
0
0.119048
0
0.452381
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccf716c91df18440671ec6222d7ac8edd7636308
6,275
py
Python
dispotrains.webapp/src/analysis/all_stations.py
emembrives/dispotrains
6ef69d4a62d60a470ed6fd96d04e47d29a0ae44f
[ "Apache-2.0" ]
1
2016-11-12T01:16:32.000Z
2016-11-12T01:16:32.000Z
dispotrains.webapp/src/analysis/all_stations.py
emembrives/dispotrains
6ef69d4a62d60a470ed6fd96d04e47d29a0ae44f
[ "Apache-2.0" ]
null
null
null
dispotrains.webapp/src/analysis/all_stations.py
emembrives/dispotrains
6ef69d4a62d60a470ed6fd96d04e47d29a0ae44f
[ "Apache-2.0" ]
2
2016-05-20T21:04:15.000Z
2020-02-02T15:25:40.000Z
#!/bin/env python3 """ Extracts all metro and RER stations from an OSM dump. """ import xml.etree.cElementTree as ET import argparse import csv from math import radians, cos, sin, asin, sqrt class Station(object): """A train station""" def __init__(self, name, osm_id, lat, lon, accessible=False): self...
32.179487
94
0.629163
774
6,275
4.901809
0.289406
0.011861
0.017923
0.014233
0.056932
0.02214
0
0
0
0
0
0.064649
0.262948
6,275
194
95
32.345361
0.755676
0.138805
0
0.077465
0
0
0.046547
0
0
0
0
0
0
1
0.147887
false
0
0.028169
0.021127
0.316901
0.021127
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccf73deff0cd7b3da75f4fe279624fa28407626b
493
py
Python
scripts/insert_plots.py
hamzaMahdi/sphero_formation
71dd4a8097c578f9237ed1f65e3debdcc3a8cc5b
[ "MIT" ]
null
null
null
scripts/insert_plots.py
hamzaMahdi/sphero_formation
71dd4a8097c578f9237ed1f65e3debdcc3a8cc5b
[ "MIT" ]
null
null
null
scripts/insert_plots.py
hamzaMahdi/sphero_formation
71dd4a8097c578f9237ed1f65e3debdcc3a8cc5b
[ "MIT" ]
1
2019-11-06T21:27:51.000Z
2019-11-06T21:27:51.000Z
# note : this does not create the link between the map and the world. It only spawns the robots. # Please make sure to go back and manually add the path to the bitmap file file_name = 'plots.txt' f = open("../new_results/" + file_name, "w+") counter = 1 for i in range(1, 10): for j in range(1, 6): f.write('...
35.214286
102
0.622718
85
493
3.552941
0.694118
0.05298
0.05298
0
0
0
0
0
0
0
0
0.028947
0.229209
493
13
103
37.923077
0.765789
0.338742
0
0
0
0.1
0.318885
0.229102
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
ccf80cabc3a7e5b0b42749bb4a83f5a36f41004c
5,615
py
Python
lib/aquilon/worker/formats/entitlement.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
7
2015-07-31T05:57:30.000Z
2021-09-07T15:18:56.000Z
lib/aquilon/worker/formats/entitlement.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
115
2015-03-03T13:11:46.000Z
2021-09-20T12:42:24.000Z
lib/aquilon/worker/formats/entitlement.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
13
2015-03-03T11:17:59.000Z
2021-09-09T09:16:41.000Z
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2018-2019 Contributor # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at #...
37.18543
79
0.655565
545
5,615
6.675229
0.297248
0.074217
0.052227
0.013469
0.279549
0.257009
0.182243
0.133865
0
0
0
0.007765
0.243099
5,615
150
80
37.433333
0.848235
0.120926
0
0.448598
0
0
0.067548
0.008545
0
0
0
0
0
1
0.037383
false
0
0.018692
0
0.093458
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccf83380f75272da17e827a8354142f3491d9b15
1,618
py
Python
tests/test_fixture.py
macneiln/py4web
ed50294d650fb466a9a06c26b8f311091b2d0035
[ "BSD-3-Clause" ]
133
2019-07-24T11:32:34.000Z
2022-03-25T02:43:55.000Z
tests/test_fixture.py
macneiln/py4web
ed50294d650fb466a9a06c26b8f311091b2d0035
[ "BSD-3-Clause" ]
396
2019-07-24T06:30:19.000Z
2022-03-24T07:59:07.000Z
tests/test_fixture.py
macneiln/py4web
ed50294d650fb466a9a06c26b8f311091b2d0035
[ "BSD-3-Clause" ]
159
2019-07-24T11:32:37.000Z
2022-03-28T15:17:05.000Z
from types import SimpleNamespace import pytest import threading from py4web.core import Fixture result = {'seq': []} def run_thread(func, *a): t = threading.Thread(target=func, args=a) return t class Foo(Fixture): def on_request(self): self._safe_local = SimpleNamespace() @property de...
22.164384
64
0.631644
231
1,618
4.229437
0.316017
0.04913
0.039918
0.028659
0.030706
0
0
0
0
0
0
0.019465
0.237948
1,618
72
65
22.472222
0.772912
0.035847
0
0.037037
0
0
0.039153
0
0
0
0
0
0.12963
1
0.166667
false
0
0.074074
0.018519
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccf92b8e5eba6aedbf6d4f91a3902a09d0c24f3f
13,049
py
Python
Scripts/simulation/objects/components/object_inventory_component.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/objects/components/object_inventory_component.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/objects/components/object_inventory_component.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\objects\components\object_inventory_component.py # Compiled at: 2020-10-06 03:00:48 # Size of source...
58.515695
486
0.683884
1,554
13,049
5.490347
0.205277
0.02391
0.016878
0.022152
0.185068
0.097281
0.050164
0.024144
0.011955
0
0
0.007266
0.25113
13,049
223
487
58.515695
0.865841
0.025366
0
0.221053
0
0.052632
0.266913
0.008889
0
0
0
0
0
1
0.121053
false
0
0.078947
0.036842
0.331579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccf98db2c183a542430a289ff4949ad327d07cde
786
py
Python
sqs_consumer/management/commands/process_queue.py
guilhermebferreira/sqs-consumer
30e2a636219b7784e43d851570255193e258678d
[ "MIT" ]
null
null
null
sqs_consumer/management/commands/process_queue.py
guilhermebferreira/sqs-consumer
30e2a636219b7784e43d851570255193e258678d
[ "MIT" ]
null
null
null
sqs_consumer/management/commands/process_queue.py
guilhermebferreira/sqs-consumer
30e2a636219b7784e43d851570255193e258678d
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals from django.core.management import BaseCommand, CommandError from sqs_consumer.worker.service import WorkerService class Command(BaseCommand): help = 'Command to process tasks from one or more SQS queues' def add_arguments(self, parser): pars...
34.173913
95
0.667939
92
786
5.521739
0.565217
0.11811
0.066929
0
0
0
0
0
0
0
0
0
0.232824
786
22
96
35.727273
0.842454
0
0
0
0
0
0.226463
0
0
0
0
0
0
1
0.142857
false
0
0.214286
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
ccfb60a5f0e99b7473379c8b27f4c338be01c980
2,222
py
Python
openpharmacophore/tests/test_zinc.py
dprada/OpenPharmacophore
bfcf4bdafd586b27a48fd5d1f13614707b5e55a8
[ "MIT" ]
2
2021-07-10T05:56:04.000Z
2021-08-04T14:56:47.000Z
openpharmacophore/tests/test_zinc.py
dprada/OpenPharmacophore
bfcf4bdafd586b27a48fd5d1f13614707b5e55a8
[ "MIT" ]
21
2021-04-27T06:05:05.000Z
2021-11-01T23:19:36.000Z
openpharmacophore/tests/test_zinc.py
dprada/OpenPharmacophore
bfcf4bdafd586b27a48fd5d1f13614707b5e55a8
[ "MIT" ]
3
2021-06-21T19:09:47.000Z
2021-07-16T01:16:27.000Z
from openpharmacophore.databases.zinc import get_zinc_urls, discretize_values import pytest @pytest.mark.parametrize("subset,mol_weight,logp,format", [ ("Drug-Like", None, None, "smi"), (None, (250, 350), (-1, 1), "smi"), (None, (365, 415), (1.5, 2.25), "smi"), ("Drug-Like", None, None, "sdf"), (No...
35.83871
83
0.564806
311
2,222
3.868167
0.315113
0.093101
0.108063
0.0665
0.378221
0.336658
0.25852
0.23857
0.18537
0.137157
0
0.084525
0.275878
2,222
62
84
35.83871
0.663145
0
0
0.185185
0
0
0.14395
0.05803
0
0
0
0
0.333333
1
0.037037
false
0
0.037037
0
0.074074
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccfc779a1ced7c9e46cfbe2591e7ace76abaf9a2
643
py
Python
tests/test.py
y95847frank/AutomatedTicketBot
66754758430c7a1240b69259e32fcb452639c134
[ "MIT" ]
1
2021-03-26T05:07:20.000Z
2021-03-26T05:07:20.000Z
tests/test.py
y95847frank/AutomatedTicketBot
66754758430c7a1240b69259e32fcb452639c134
[ "MIT" ]
null
null
null
tests/test.py
y95847frank/AutomatedTicketBot
66754758430c7a1240b69259e32fcb452639c134
[ "MIT" ]
null
null
null
import AutoTicketsBot as tBot configDestination = 'var/config.yml' args = tBot.addArgs() config = tBot.configRead(configDestination) if tBot.configWrite(configDestination, args, config) is True: print("Successfully store new config to {}".format(configDestination)) ticketsBot = tBot.AutoTicketsBot(config) #schedul...
29.227273
71
0.785381
71
643
7.112676
0.56338
0.055446
0.10297
0.134653
0
0
0
0
0
0
0
0.008562
0.091757
643
22
72
29.227273
0.856164
0.083981
0
0
0
0
0.156197
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ccfe49b139702ec62120531b875985143b174591
751
py
Python
kattis/k_ones.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
kattis/k_ones.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
kattis/k_ones.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
''' Smallest factor to reach a number composed of digit '1' Status: Accepted ''' ############################################################################### def main(): """Read input and print output""" while True: try: number = int(input()) except EOFError: break...
22.757576
79
0.370173
61
751
4.42623
0.590164
0.044444
0
0
0
0
0
0
0
0
0
0.026157
0.338216
751
32
80
23.46875
0.517103
0.134487
0
0
0
0
0.018789
0
0
0
0
0
0.111111
1
0.055556
false
0
0
0
0.055556
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
ccfe72e943c07b30fc915317d0d3a67d9c72f9cc
2,190
py
Python
back/api/message.py
LyonParapente/EventOrganizer
b263c2ce61b6ad1d6c414eb388ca5ee9492a9b73
[ "MIT" ]
4
2018-07-29T10:48:53.000Z
2018-08-23T13:02:15.000Z
back/api/message.py
LyonParapente/EventOrganizer
b263c2ce61b6ad1d6c414eb388ca5ee9492a9b73
[ "MIT" ]
7
2018-11-15T15:17:45.000Z
2021-05-11T19:58:55.000Z
back/api/message.py
LyonParapente/EventOrganizer
b263c2ce61b6ad1d6c414eb388ca5ee9492a9b73
[ "MIT" ]
null
null
null
from flask import request, abort from flask_restful_swagger_3 import Resource, swagger from flask_jwt_extended import jwt_required, get_jwt_identity, get_jwt from models.message import Message, MessageCreate from database.manager import db from emails import send_new_message class MessageAPICreate(Resource): @jwt_re...
27.721519
109
0.590411
244
2,190
5.131148
0.405738
0.044728
0.022364
0.044728
0.055911
0
0
0
0
0
0
0.017666
0.276256
2,190
78
110
28.076923
0.77224
0.028767
0
0.157143
0
0
0.191509
0
0
0
0
0
0
1
0.014286
false
0
0.085714
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