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
3a090e5c232242360194af34105d0efa576a5d9f
6,613
py
Python
src/test.py
0shimax/SE-Wavenet
f3cf8239175fec02565c81995e5b9f9e1bbd5eb1
[ "MIT" ]
null
null
null
src/test.py
0shimax/SE-Wavenet
f3cf8239175fec02565c81995e5b9f9e1bbd5eb1
[ "MIT" ]
null
null
null
src/test.py
0shimax/SE-Wavenet
f3cf8239175fec02565c81995e5b9f9e1bbd5eb1
[ "MIT" ]
null
null
null
import argparse from pathlib import Path import torch import torch.nn.functional as F from sklearn.metrics import precision_recall_fscore_support, roc_curve, auc import matplotlib.pyplot as plt import numpy as np from data.data_loader import ActivDataset, loader from models.focal_loss import FocalLoss from models.ete_...
42.121019
145
0.665356
933
6,613
4.411576
0.212219
0.072886
0.065598
0.068027
0.353013
0.29033
0.208698
0.16448
0.152575
0.109815
0
0.017574
0.199758
6,613
156
146
42.391026
0.760204
0
0
0.04918
0
0.008197
0.111447
0.02858
0
0
0
0
0
1
0.016393
false
0
0.090164
0
0.106557
0.204918
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a0d56385a100828a93d1a548339d663fa8c3ed6
4,031
py
Python
code/ConvexHull.py
vijindal/cluspand
a3676594354ab59991fe75fccecdc3a400c7b153
[ "MIT" ]
null
null
null
code/ConvexHull.py
vijindal/cluspand
a3676594354ab59991fe75fccecdc3a400c7b153
[ "MIT" ]
null
null
null
code/ConvexHull.py
vijindal/cluspand
a3676594354ab59991fe75fccecdc3a400c7b153
[ "MIT" ]
null
null
null
from structure_helper_class import structure_helper from model_train_helper_class import model_train_helper import matplotlib.pyplot as plt import pandas as pd from tabulate import tabulate class convex_hull: def get_convex_hull_points(structure_name_to_object_map, draw_hull = True, model = None, model_str =...
47.988095
161
0.611015
521
4,031
4.516315
0.305182
0.022949
0.044624
0.062473
0.282618
0.266043
0.266043
0.233744
0.162346
0.078198
0
0.007473
0.302903
4,031
83
162
48.566265
0.829893
0.127512
0
0.074074
0
0
0.040051
0.00801
0
0
0
0
0
1
0.055556
false
0
0.092593
0.018519
0.222222
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a0f2160b69e0995f3cc76e9cebbc03eb599b9f1
2,077
py
Python
libra/transaction/script.py
MaslDi/libra-client
0983adfcb6787f7a16de4bf364cdf5596c183d88
[ "MIT" ]
null
null
null
libra/transaction/script.py
MaslDi/libra-client
0983adfcb6787f7a16de4bf364cdf5596c183d88
[ "MIT" ]
null
null
null
libra/transaction/script.py
MaslDi/libra-client
0983adfcb6787f7a16de4bf364cdf5596c183d88
[ "MIT" ]
null
null
null
from canoser import Struct, Uint8, bytes_to_int_list, hex_to_int_list from libra.transaction.transaction_argument import TransactionArgument, normalize_public_key from libra.bytecode import bytecodes from libra.account_address import Address class Script(Struct): _fields = [ ('code', [Uint8]), ...
36.438596
93
0.641791
206
2,077
6.140777
0.242718
0.142292
0.042688
0.063241
0.38419
0.365217
0.267984
0.180237
0.180237
0.180237
0
0.006012
0.279249
2,077
57
94
36.438596
0.839011
0
0
0.32
0
0
0.054896
0.02275
0
0
0
0
0
1
0.1
false
0
0.08
0.02
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a110cf9f81c51a45a9e039e2675a3d01dca6237
13,818
py
Python
SourceRepositoryTools/__init__.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
1
2017-04-25T13:15:10.000Z
2017-04-25T13:15:10.000Z
SourceRepositoryTools/__init__.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
null
null
null
SourceRepositoryTools/__init__.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
null
null
null
# ---------------------------------------------------------------------- # | # | __init__.py # | # | David Brownell <db@DavidBrownell.com> # | 2018-02-18 14:37:39 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2018. # | Distribute...
45.453947
285
0.481473
1,170
13,818
5.57265
0.287179
0.018405
0.009202
0.004141
0.094479
0.070245
0.033742
0.033742
0.023006
0.023006
0
0.00431
0.361919
13,818
303
286
45.60396
0.735171
0.275655
0
0.098039
0
0
0.03741
0.003956
0
0
0
0
0.03268
1
0.045752
false
0
0.130719
0
0.202614
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a11c774870f73e9df814c0fb0e907ad67a018a8
2,075
py
Python
src/einsteinpy/tests/test_plotting/test_staticgeodesicplotter.py
Ankk98/einsteinpy
e6c3e3939063a7698410163b6de52e499bb3c8ea
[ "MIT" ]
null
null
null
src/einsteinpy/tests/test_plotting/test_staticgeodesicplotter.py
Ankk98/einsteinpy
e6c3e3939063a7698410163b6de52e499bb3c8ea
[ "MIT" ]
null
null
null
src/einsteinpy/tests/test_plotting/test_staticgeodesicplotter.py
Ankk98/einsteinpy
e6c3e3939063a7698410163b6de52e499bb3c8ea
[ "MIT" ]
null
null
null
from unittest import mock import astropy.units as u import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import pytest from einsteinpy.coordinates import SphericalDifferential from einsteinpy.plotting import StaticGeodesicPlotter @pytest.fixture() def dummy_data(): sph_obj = SphericalDiff...
28.040541
63
0.700241
313
2,075
4.361022
0.268371
0.072527
0.052747
0.065934
0.452015
0.428571
0.386081
0.287912
0.287912
0.287912
0
0.021687
0.2
2,075
73
64
28.424658
0.800602
0
0
0.338983
0
0
0.051084
0.044819
0
0
0
0
0.186441
1
0.101695
false
0
0.135593
0
0.254237
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a1626ac2fa1019fb590d26ad03b0ec329ab6d9d
2,017
py
Python
deciphon_cli/console/scan.py
EBI-Metagenomics/deciphon-cli
aa090c886db1f4dacc6bc88b46b6ebcecb79eaab
[ "MIT" ]
null
null
null
deciphon_cli/console/scan.py
EBI-Metagenomics/deciphon-cli
aa090c886db1f4dacc6bc88b46b6ebcecb79eaab
[ "MIT" ]
null
null
null
deciphon_cli/console/scan.py
EBI-Metagenomics/deciphon-cli
aa090c886db1f4dacc6bc88b46b6ebcecb79eaab
[ "MIT" ]
null
null
null
from enum import Enum import typer from fasta_reader import read_fasta from deciphon_cli.core import ScanPost, SeqPost from deciphon_cli.requests import get_json, get_plain, post_json __all__ = ["app"] app = typer.Typer() class ScanIDType(str, Enum): SCAN_ID = "scan_id" JOB_ID = "job_id" @app.command() ...
24.901235
84
0.67526
307
2,017
4.228013
0.214984
0.087827
0.100154
0.124807
0.432203
0.411402
0.320493
0.320493
0.298921
0.298921
0
0.001735
0.142786
2,017
80
85
25.2125
0.748988
0
0
0.226415
0
0
0.11651
0.090729
0
0
0
0
0
1
0.188679
false
0
0.09434
0
0.339623
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a163271adf00fd1d184016bb403b5d130a4068f
1,655
py
Python
neuralmaterial/lib/models/vgg.py
NejcHirci/material-addon
c08e2081413c3319b712c2f7193ac8013f601382
[ "MIT" ]
4
2022-01-31T14:26:39.000Z
2022-02-06T06:34:27.000Z
neuralmaterial/lib/models/vgg.py
NejcHirci/material_addon
c08e2081413c3319b712c2f7193ac8013f601382
[ "MIT" ]
2
2022-01-30T10:35:04.000Z
2022-01-30T10:35:04.000Z
neuralmaterial/lib/models/vgg.py
NejcHirci/material-addon
c08e2081413c3319b712c2f7193ac8013f601382
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.hub import load_state_dict_from_url class VGG(nn.Module): def __init__(self, features, pretrained): super(VGG, self).__init__() self.features = features if not pretrained: self._initialize_weights() def _initialize_weights(sel...
33.77551
113
0.578852
219
1,655
4.187215
0.360731
0.039258
0.061069
0.065431
0.175573
0.131952
0.080698
0.080698
0.080698
0.080698
0
0.060293
0.298489
1,655
48
114
34.479167
0.729544
0
0
0.076923
0
0
0.0429
0
0
0
0
0
0
1
0.102564
false
0
0.076923
0
0.25641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a16bef75430d1f8616b4661d929e57eb96f5d11
1,295
py
Python
quasimodo/cache/file_cache.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
16
2019-11-28T13:26:37.000Z
2022-02-09T09:53:10.000Z
quasimodo/cache/file_cache.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
1
2021-03-26T20:31:48.000Z
2021-07-15T08:52:47.000Z
quasimodo/cache/file_cache.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
3
2020-08-14T23:23:25.000Z
2021-12-24T14:02:35.000Z
import os import shutil class FileCache(object): def __init__(self, cache_dir): self.cache_dir = cache_dir + "/" if not os.path.exists(self.cache_dir): os.makedirs(self.cache_dir) def write_cache(self, query, suggestions): filename = self.cache_dir + query.replace(" ", "-...
32.375
95
0.565251
150
1,295
4.74
0.406667
0.101266
0.135021
0.056259
0.129395
0.129395
0.129395
0.129395
0
0
0
0.0044
0.29807
1,295
39
96
33.205128
0.777778
0.030116
0
0.133333
0
0
0.019139
0
0
0
0
0
0
1
0.2
false
0
0.066667
0
0.366667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a193908dfb0eb3ea9c064b546eae9b145317435
10,915
py
Python
txraft/test_txraft.py
tehasdf/txraft
860345e4a10d438d3fc69d752f09a06546c92d08
[ "MIT" ]
null
null
null
txraft/test_txraft.py
tehasdf/txraft
860345e4a10d438d3fc69d752f09a06546c92d08
[ "MIT" ]
null
null
null
txraft/test_txraft.py
tehasdf/txraft
860345e4a10d438d3fc69d752f09a06546c92d08
[ "MIT" ]
null
null
null
from twisted.internet.defer import succeed from twisted.internet.task import Clock from twisted.trial.unittest import TestCase from txraft import Entry, RaftNode, MockRPC, STATE from txraft.commands import AppendEntriesCommand, RequestVotesCommand class MockStoreDontUse(object): def __init__(self, entries=None):...
30.319444
93
0.599542
1,155
10,915
5.586147
0.127273
0.037663
0.026193
0.031618
0.629107
0.609888
0.57641
0.556107
0.532703
0.509764
0
0.026148
0.29574
10,915
359
94
30.4039
0.813191
0.006047
0
0.572464
0
0
0.000738
0
0
0
0
0
0.076087
1
0.094203
false
0
0.018116
0.01087
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a19793608f407d01e4af46fb22f949e028fb9e8
6,867
py
Python
prototype/c2dn/script/analysis/extractData.py
Thesys-lab/C2DN
55aa7fc1cd13ab0c80a9c25aa0288b454616d83c
[ "Apache-2.0" ]
null
null
null
prototype/c2dn/script/analysis/extractData.py
Thesys-lab/C2DN
55aa7fc1cd13ab0c80a9c25aa0288b454616d83c
[ "Apache-2.0" ]
null
null
null
prototype/c2dn/script/analysis/extractData.py
Thesys-lab/C2DN
55aa7fc1cd13ab0c80a9c25aa0288b454616d83c
[ "Apache-2.0" ]
null
null
null
import os, sys sys.path.append(os.path.expanduser("~/workspace/")) from pyutils.common import * def load_fe_metrics(ifilepath): n_byte_partial_miss, n_req_partial_miss = 0, 0 n_byte_push_chunk, n_byte_chunk_hit, n_req_chunk_hit, n_byte_ICP_chunk = 0, 0, 0, 0 n_req_ICP_chunk, n_req_skip_chunk = 0, 0 ...
42.388889
128
0.642493
1,029
6,867
3.870748
0.119534
0.052724
0.035149
0.07532
0.75521
0.649761
0.584735
0.407733
0.337183
0.26111
0
0.031653
0.231688
6,867
161
129
42.652174
0.723275
0.165866
0
0.056604
0
0.009434
0.237953
0.116348
0
0
0
0
0
1
0.018868
false
0
0.018868
0
0.04717
0.028302
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a20f5e777be4409e899dec4e5460fecff5677e0
10,325
py
Python
baselines/baseline_summarunner/main.py
PKULiuHui/LiveBlogSum
b6a22521ee454e649981d70ddca6c89a1bac5a4c
[ "MIT" ]
null
null
null
baselines/baseline_summarunner/main.py
PKULiuHui/LiveBlogSum
b6a22521ee454e649981d70ddca6c89a1bac5a4c
[ "MIT" ]
null
null
null
baselines/baseline_summarunner/main.py
PKULiuHui/LiveBlogSum
b6a22521ee454e649981d70ddca6c89a1bac5a4c
[ "MIT" ]
null
null
null
# coding:utf-8 import torch import torch.nn as nn from torch.autograd import Variable from torch.nn.utils import clip_grad_norm_ from torch.utils.data import DataLoader from tqdm import tqdm import numpy as np import math import re import sys from Vocab import Vocab from Dataset import Dataset from RNN_RNN import RNN_R...
36.743772
120
0.606683
1,440
10,325
4.154167
0.168056
0.042126
0.079572
0.011702
0.293547
0.272651
0.242227
0.201772
0.192076
0.1777
0
0.017273
0.254237
10,325
280
121
36.875
0.75961
0.030218
0
0.209877
0
0.00823
0.088544
0.015608
0
0
0
0
0
1
0.024691
false
0
0.061728
0.004115
0.106996
0.032922
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a2b8a858ee6da50e87c4cd8bfce4156f67a9cc7
844
py
Python
lgtv.py
aakropotkin/PyWebOSTV
4c060541b397dc20f79049fa9390c1b6b1a7050b
[ "MIT" ]
null
null
null
lgtv.py
aakropotkin/PyWebOSTV
4c060541b397dc20f79049fa9390c1b6b1a7050b
[ "MIT" ]
null
null
null
lgtv.py
aakropotkin/PyWebOSTV
4c060541b397dc20f79049fa9390c1b6b1a7050b
[ "MIT" ]
null
null
null
#! /usr/bin/env nix-shell #! nix-shell -i python3 -p "[python3] ++ (with pkgs.python37Packages; [ requests future ws4py pytest pylint coveralls twine wheel ])" # <<END Extended Shebang>> import json from pywebostv.discovery import * from pywebostv.connection import * from pywebostv.controls import * with open('/home/...
28.133333
133
0.728673
104
844
5.903846
0.682692
0.063518
0.061889
0
0
0
0
0
0
0
0
0.006974
0.150474
844
29
134
29.103448
0.849372
0.246446
0
0
0
0
0.142405
0.03481
0
0
0
0
0
1
0
false
0
0.210526
0
0.210526
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a2e8191805b6dc90c6ff13576324c98a0708604
2,102
py
Python
lutin_lua.py
generic-library/lua
1dddc5e025d94bd62ae6ca9e9e3f2cd11ed23a35
[ "MIT" ]
null
null
null
lutin_lua.py
generic-library/lua
1dddc5e025d94bd62ae6ca9e9e3f2cd11ed23a35
[ "MIT" ]
null
null
null
lutin_lua.py
generic-library/lua
1dddc5e025d94bd62ae6ca9e9e3f2cd11ed23a35
[ "MIT" ]
null
null
null
#!/usr/bin/python import realog.debug as debug import lutin.tools as tools def get_type(): return "LIBRARY" def get_desc(): return "Lua interpretic script module" def get_licence(): return "MIT" def get_compagny_type(): return "org" def get_compagny_name(): return "lua" def get_maintainer(): return "author...
18.438596
58
0.569458
297
2,102
3.902357
0.340067
0.160483
0.056946
0.038827
0.051769
0.051769
0
0
0
0
0
0.004941
0.229781
2,102
113
59
18.60177
0.710933
0.045195
0
0.044944
0
0
0.429715
0.016008
0
0
0
0
0
1
0.089888
false
0
0.022472
0.078652
0.202247
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a34c3856763aba4f082175e4e23858129d09e5b
3,595
py
Python
civbot/commands/cmd_add_game.py
thyjukki/Civi-Botti-2.0
7b9ff6bf3e97b90f61286e7688db731f91365e88
[ "MIT" ]
null
null
null
civbot/commands/cmd_add_game.py
thyjukki/Civi-Botti-2.0
7b9ff6bf3e97b90f61286e7688db731f91365e88
[ "MIT" ]
3
2020-04-28T09:19:11.000Z
2021-06-01T23:21:32.000Z
civbot/commands/cmd_add_game.py
thyjukki/Civi-Botti-2.0
7b9ff6bf3e97b90f61286e7688db731f91365e88
[ "MIT" ]
null
null
null
import telegram from telegram.ext import CommandHandler, ConversationHandler, MessageHandler, \ Filters from civbot.commands.cmd_cancel import cancel_all from civbot.models import User, Subscription SELECT = 1 def add_game(bot, update): user = User.get_or_none(User.id == update.message.from_user.id) if...
28.307087
79
0.628929
406
3,595
5.44335
0.246305
0.105882
0.081448
0.099548
0.447511
0.367421
0.318552
0.171041
0.125792
0.125792
0
0.002316
0.279277
3,595
126
80
28.531746
0.850637
0.007232
0
0.28866
0
0
0.118587
0
0
0
0
0
0
1
0.030928
false
0
0.041237
0.010309
0.185567
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a354a29d377cbf952a940a0b75110dea65c2d7e
1,355
py
Python
tutorials/W1D4_Optimization/solutions/W1D4_Tutorial1_Solution_9732cf5a.py
carsen-stringer/course-content-dl
27749aec56a3d2a43b3890483675ad0338a2680f
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
tutorials/W1D4_Optimization/solutions/W1D4_Tutorial1_Solution_9732cf5a.py
carsen-stringer/course-content-dl
27749aec56a3d2a43b3890483675ad0338a2680f
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
tutorials/W1D4_Optimization/solutions/W1D4_Tutorial1_Solution_9732cf5a.py
carsen-stringer/course-content-dl
27749aec56a3d2a43b3890483675ad0338a2680f
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
def rmsprop_update(loss, params, grad_sq, lr=1e-1, alpha=0.8): """Perform an RMSprop update on a collection of parameters Args: loss (tensor): A scalar tensor containing the loss whose gradient will be computed params (iterable): Collection of parameters with respect to which we compute gradients grad_...
39.852941
90
0.724723
211
1,355
4.578199
0.473934
0.037267
0.035197
0.020704
0.109731
0.060041
0.060041
0
0
0
0
0.02307
0.168266
1,355
34
91
39.852941
0.834073
0.473801
0
0.133333
0
0
0.141194
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.066667
0.266667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a35de756e73312c8d8aa96bb05d403a7ba20ad8
4,289
py
Python
tridentstream/inputs/rfs/handler.py
tridentstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
6
2020-01-03T14:50:09.000Z
2021-09-13T01:44:31.000Z
tridentstream/inputs/rfs/handler.py
tidalstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
null
null
null
tridentstream/inputs/rfs/handler.py
tidalstream/mediaserver
5d47d766df2e8dca076e41348062567a569019fd
[ "MIT" ]
null
null
null
import logging from urllib.parse import urljoin import requests from thomas import Item, StreamerBase, router from unplugged import Schema, fields from twisted.internet import threads from ...exceptions import NotModifiedException, PathNotFoundException from ...plugins import InputPlugin from ...stream import Stream...
30.41844
96
0.609466
499
4,289
5.062124
0.236473
0.038005
0.055424
0.0673
0.289786
0.272367
0.241489
0.164687
0.16152
0.098179
0
0.006175
0.282583
4,289
140
97
30.635714
0.814755
0.045232
0
0.165049
0
0
0.087754
0.018577
0
0
0
0
0
1
0.106796
false
0
0.087379
0.029126
0.349515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a37961a35f717a520a82adff518def2441c92f7
2,024
py
Python
app/main/service/exp_service.py
ayoyin/REST-API
965cda0f87ba8055ee78e9300ca80d5ed79a41c8
[ "MIT" ]
1
2021-06-01T14:35:11.000Z
2021-06-01T14:35:11.000Z
app/main/service/exp_service.py
ayoyin/REST-API
965cda0f87ba8055ee78e9300ca80d5ed79a41c8
[ "MIT" ]
10
2021-05-26T22:27:59.000Z
2021-06-03T21:04:43.000Z
app/main/service/exp_service.py
ayoyin/REST-API
965cda0f87ba8055ee78e9300ca80d5ed79a41c8
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify from flask_sqlalchemy import SQLAlchemy from model.exp_model import Experience, ExperienceSchema class ExperienceService(object): def __init__(self, app:Flask, db:SQLAlchemy) -> None: self.app = app self.db = db self.exp_schema = ExperienceSchema() ...
31.625
83
0.682312
231
2,024
5.787879
0.203463
0.065819
0.048616
0.056844
0.414361
0.414361
0.314884
0.314884
0.211668
0.211668
0
0
0.228261
2,024
64
84
31.625
0.855954
0.065711
0
0.414634
0
0
0.042418
0
0
0
0
0
0
1
0.146341
false
0
0.073171
0
0.365854
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a393e7c4f3f1d263e29f99079506e54bfc2ef8b
367
py
Python
scripts/hackathon/create_evaluable_CAG.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
25
2018-03-03T11:57:57.000Z
2022-01-16T21:19:54.000Z
scripts/hackathon/create_evaluable_CAG.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
385
2018-02-21T16:52:06.000Z
2022-02-17T07:44:56.000Z
scripts/hackathon/create_evaluable_CAG.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
19
2018-03-20T01:08:11.000Z
2021-09-29T01:04:49.000Z
import sys import pickle def create_evaluable_CAG(input, output): with open(input, "rb") as f: G = pickle.load(f) G.res = 200 G.assemble_transition_model_from_gradable_adjectives() G.sample_from_prior() with open(output, "wb") as f: pickle.dump(G, f) if __name__ == "__main__": ...
24.466667
58
0.6703
56
367
4.053571
0.607143
0.132159
0.15859
0
0
0
0
0
0
0
0
0.017123
0.20436
367
14
59
26.214286
0.760274
0
0
0
0
0
0.032698
0
0
0
0
0
0
1
0.083333
false
0
0.166667
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
3a3c22b7737a192dfe1f9e9024ae59ca8fe3e8e0
3,721
py
Python
inclearn/convnet/my_resnet.py
romilbhardwaj/incremental_learning.pytorch
77097ef4dd4fc6b6c35d13ef66856d6f8a15598d
[ "MIT" ]
3
2019-07-01T14:43:05.000Z
2019-12-27T13:26:52.000Z
inclearn/convnet/my_resnet.py
rahulvigneswaran/incremental_learning.pytorch
786ecda7dbce5977894737d61cd5e3a30f61aac6
[ "MIT" ]
null
null
null
inclearn/convnet/my_resnet.py
rahulvigneswaran/incremental_learning.pytorch
786ecda7dbce5977894737d61cd5e3a30f61aac6
[ "MIT" ]
null
null
null
''' Incremental-Classifier Learning Authors : Khurram Javed, Muhammad Talha Paracha Maintainer : Khurram Javed Lab : TUKL-SEECS R&D Lab Email : 14besekjaved@seecs.edu.pk ''' import math import torch import torch.nn as nn import torch.nn.functional as F from torch.nn import init class DownsampleStride(nn.Module)...
27.562963
108
0.58452
514
3,721
4.068093
0.272374
0.068388
0.014347
0.021521
0.141081
0.0923
0.039216
0.039216
0.039216
0.039216
0
0.030987
0.297501
3,721
134
109
27.768657
0.768937
0.097017
0
0.082353
0
0
0.003352
0
0
0
0
0
0
1
0.094118
false
0
0.070588
0.023529
0.270588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a3ec3da72c85292efaee127eb5ad56d111e5946
2,095
py
Python
src/nlplib/general/thread.py
rectangletangle/nlplib
7dcc0daf050a73c03b7d7f0257ad0b862586a6e3
[ "BSD-2-Clause" ]
1
2015-11-18T12:59:52.000Z
2015-11-18T12:59:52.000Z
src/nlplib/general/thread.py
rectangletangle/nlplib
7dcc0daf050a73c03b7d7f0257ad0b862586a6e3
[ "BSD-2-Clause" ]
null
null
null
src/nlplib/general/thread.py
rectangletangle/nlplib
7dcc0daf050a73c03b7d7f0257ad0b862586a6e3
[ "BSD-2-Clause" ]
null
null
null
''' Tools for dealing with multithreaded programs. ''' from concurrent.futures import ThreadPoolExecutor, as_completed from nlplib.general.iterate import chunked __all__ = ['simultaneously'] def simultaneously (function, iterable, max_workers=4) : ''' This runs the given function over the iterable concurrently...
32.734375
119
0.673031
252
2,095
5.420635
0.503968
0.065886
0.02489
0.04246
0
0
0
0
0
0
0
0.010982
0.217661
2,095
63
120
33.253968
0.822453
0.178998
0
0
0
0
0.114813
0
0
0
0
0
0.085714
1
0.142857
false
0.028571
0.114286
0.028571
0.314286
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a43287b070e57b4e1131e9830fa7848ee4816f3
1,424
py
Python
appdaemon/apps/exhaust/exhaust.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
3
2019-10-27T06:10:26.000Z
2020-07-21T01:27:11.000Z
appdaemon/apps/exhaust/exhaust.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
null
null
null
appdaemon/apps/exhaust/exhaust.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
null
null
null
import globals class Exhaust(globals.Hass): async def initialize(self): config = self.args["config"] self._input = config["input"] self._temperature = config["temperature"] self._min_temperature = float(config["min_temperature"]) self._max_temperature = float(config["max_te...
40.685714
85
0.614466
157
1,424
5.286624
0.267516
0.075904
0.057831
0.06988
0.19759
0.086747
0.086747
0
0
0
0
0
0.278792
1,424
34
86
41.882353
0.808179
0.117978
0
0.166667
0
0
0.079936
0.034373
0
0
0
0
0
1
0
false
0
0.041667
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a4437265de98cfb27b3d5feaa4dc75634628d02
2,159
py
Python
test/test.py
fmaida/rosie
3906d11231aadaf9095f00fde8a73bc186403660
[ "MIT" ]
null
null
null
test/test.py
fmaida/rosie
3906d11231aadaf9095f00fde8a73bc186403660
[ "MIT" ]
null
null
null
test/test.py
fmaida/rosie
3906d11231aadaf9095f00fde8a73bc186403660
[ "MIT" ]
null
null
null
import os import unittest from rosie import Rosie from rosie import DocumentNotFound # from test import create # create(100) class RosieTest(unittest.TestCase): def setUp(self): basedir = os.path.join(os.path.expanduser("~"), "Documents", "Progetti", "HTML-CSS", "rosie-ou...
35.393443
89
0.593793
247
2,159
5.105263
0.461538
0.071372
0.031721
0.047581
0.199048
0.154639
0.080888
0.080888
0.080888
0.080888
0
0.015656
0.289949
2,159
61
90
35.393443
0.806915
0.126911
0
0
0
0
0.18709
0
0
0
0
0
0.166667
1
0.166667
false
0.027778
0.111111
0
0.305556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a44e47df6767fcc400ca98f82e16bb29f7143a3
7,728
py
Python
HeifImagePlugin.py
uploadcare/heif-image-plugin
164230d08472403b709e2d0c78e8de0207e9312a
[ "MIT" ]
6
2021-12-09T16:57:55.000Z
2022-03-22T13:34:53.000Z
HeifImagePlugin.py
uploadcare/heif-image-plugin
164230d08472403b709e2d0c78e8de0207e9312a
[ "MIT" ]
5
2021-11-24T15:59:35.000Z
2022-03-11T16:29:53.000Z
HeifImagePlugin.py
uploadcare/heif-image-plugin
164230d08472403b709e2d0c78e8de0207e9312a
[ "MIT" ]
1
2022-02-07T11:59:30.000Z
2022-02-07T11:59:30.000Z
import inspect import subprocess import tempfile from copy import copy from weakref import WeakKeyDictionary import piexif import pyheif from cffi import FFI from PIL import Image, ImageFile from pyheif.error import HeifError ffi = FFI() _keep_refs = WeakKeyDictionary() pyheif_supports_transformations = ( 'trans...
34.044053
84
0.62073
981
7,728
4.769623
0.320082
0.063261
0.015388
0.013678
0.131652
0.078008
0
0
0
0
0
0.013057
0.276527
7,728
226
85
34.19469
0.823287
0.186077
0
0.108108
0
0
0.078592
0.004822
0
0
0
0
0
1
0.047297
false
0.006757
0.067568
0.006757
0.175676
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a490f04946e54025d2f9929396fe594e1a1e7a5
3,916
py
Python
utils/comm_mqtt.py
peacemaker07/iot_making_for_raspberry_pi
d37d1256ea99794ff1dde4de0cadcbee1e5d6679
[ "MIT" ]
null
null
null
utils/comm_mqtt.py
peacemaker07/iot_making_for_raspberry_pi
d37d1256ea99794ff1dde4de0cadcbee1e5d6679
[ "MIT" ]
null
null
null
utils/comm_mqtt.py
peacemaker07/iot_making_for_raspberry_pi
d37d1256ea99794ff1dde4de0cadcbee1e5d6679
[ "MIT" ]
null
null
null
import json import time from utils.helper import RedisClient from paho.mqtt.client import MQTT_ERR_SUCCESS import paho.mqtt.client as mqtt from utils.date_time import TimeMeasure import tasks as tasks_mqtt from utils.message import MsgShadowGet, MsgShadowUpdate import logging logger = logging.getLogger() logger.setL...
24.628931
113
0.59142
457
3,916
4.864333
0.28884
0.031489
0.016194
0.023392
0.138102
0.138102
0.08457
0.08457
0.08457
0.044984
0
0.007119
0.318437
3,916
158
114
24.78481
0.825777
0.09857
0
0.25
0
0
0.019056
0
0
0
0
0
0
1
0.086957
false
0
0.097826
0
0.336957
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a4b65fb4152f97b12ef78ecb2e26b90659acced
255
py
Python
servo-test.py
dthompson-personal/pi-robot-shop
19ed4bc2727bc1681b7aed906fd95f58cc2f9fbe
[ "MIT" ]
1
2019-01-08T00:12:38.000Z
2019-01-08T00:12:38.000Z
servo-test.py
dthompson-personal/pi-robot-shop
19ed4bc2727bc1681b7aed906fd95f58cc2f9fbe
[ "MIT" ]
null
null
null
servo-test.py
dthompson-personal/pi-robot-shop
19ed4bc2727bc1681b7aed906fd95f58cc2f9fbe
[ "MIT" ]
null
null
null
# simple servo test for PCA9685 with HS422 from servo.servo import * from time import sleep pca = PCA9685() pca.setZero(0) sleep(2) for a in xrange(-67,67,1): pca.setAngle(0,a) sleep(0.05) for a in xrange(67,0,-1): pca.setAngle(0,a) sleep(0.05)
18.214286
42
0.686275
50
255
3.5
0.44
0.045714
0.068571
0.137143
0.411429
0.251429
0.251429
0.251429
0
0
0
0.141509
0.168627
255
13
43
19.615385
0.683962
0.156863
0
0.363636
0
0
0
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a4cbefcb62071a2d988ae8d1ba6c3ebd094217e
1,386
py
Python
lists_dictionary/Hello France.py
vasetousa/Python-fundamentals
3180c03de28b4f4d36d966221719069a7e18e521
[ "MIT" ]
null
null
null
lists_dictionary/Hello France.py
vasetousa/Python-fundamentals
3180c03de28b4f4d36d966221719069a7e18e521
[ "MIT" ]
null
null
null
lists_dictionary/Hello France.py
vasetousa/Python-fundamentals
3180c03de28b4f4d36d966221719069a7e18e521
[ "MIT" ]
null
null
null
items = input().split("|") # items to buy budged = int(input()) profit = 0 profit_price_list = [] profit_list = [] profit_price = 0 for index in items: profit = 0 profit_price = 0 separator = index.split("->") if separator[0] == "Clothes": if not 0 < float(separator[1]) <= 50: co...
34.65
143
0.622655
184
1,386
4.559783
0.288043
0.144219
0.125149
0.039333
0.075089
0.075089
0
0
0
0
0
0.044146
0.248196
1,386
40
144
34.65
0.761036
0.165945
0
0.205128
0
0
0.067015
0
0
0
0
0
0
1
0
false
0
0
0
0
0.128205
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a4f4e40f01a34131b926552b927be814c889324
7,875
py
Python
vision/crop_image_on_faces.py
timmahrt/toybox
1c063428ba85d26c8d9229b020503f6f57df2219
[ "MIT" ]
null
null
null
vision/crop_image_on_faces.py
timmahrt/toybox
1c063428ba85d26c8d9229b020503f6f57df2219
[ "MIT" ]
null
null
null
vision/crop_image_on_faces.py
timmahrt/toybox
1c063428ba85d26c8d9229b020503f6f57df2219
[ "MIT" ]
null
null
null
''' Created on Sep 8, 2018 Use autocropFaces() to crop out the material around faces in an image, where the faces are automatically detected. See the bottom for an example use script. Used this as a starting reference point: https://docs.opencv.org/3.3.0/d7/d8b/tutorial_py_face_detection.html @author: tmahrt ''' i...
30.761719
133
0.610159
923
7,875
5.152763
0.312026
0.023129
0.009462
0.003364
0.087679
0.044155
0
0
0
0
0
0.031831
0.289905
7,875
255
134
30.882353
0.81867
0.210032
0
0.055556
0
0
0.046286
0.01186
0
0
0
0
0
1
0.097222
false
0
0.034722
0.006944
0.208333
0.006944
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a5276bb48c6b9ee88490cc0b0a29ff3c27d3bba
2,920
py
Python
aiida_lsmo/workchains/multistage_ddec.py
ltalirz/aiida-lsmo
38a839af63686320ab070fada89241860e095b9e
[ "MIT" ]
null
null
null
aiida_lsmo/workchains/multistage_ddec.py
ltalirz/aiida-lsmo
38a839af63686320ab070fada89241860e095b9e
[ "MIT" ]
null
null
null
aiida_lsmo/workchains/multistage_ddec.py
ltalirz/aiida-lsmo
38a839af63686320ab070fada89241860e095b9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """MultistageDdecWorkChain workchain""" from __future__ import absolute_import from aiida.plugins import CalculationFactory, DataFactory, WorkflowFactory from aiida.common import AttributeDict from aiida.engine import WorkChain, ToContext # import sub-workchains Cp2kMultistageWorkChain = Work...
45.625
106
0.743151
322
2,920
6.509317
0.307453
0.038168
0.046756
0.045802
0.238073
0.133588
0.034351
0.034351
0
0
0
0.020598
0.152055
2,920
63
107
46.349206
0.825929
0.203425
0
0
0
0
0.131718
0.009692
0
0
0
0
0
1
0.114286
false
0
0.114286
0
0.314286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a5286d6d3711424348d457dbffee994d0ef9214
2,997
py
Python
ambari-server/src/test/python/TestServerUtils.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
16
2018-05-24T10:28:24.000Z
2021-08-05T03:13:26.000Z
ambari-server/src/test/python/TestServerUtils.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
8
2020-06-18T17:31:19.000Z
2022-03-02T08:32:03.000Z
ambari-server/src/test/python/TestServerUtils.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
17
2018-07-06T08:57:00.000Z
2021-11-04T11:00:36.000Z
''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
38.922078
140
0.746079
428
2,997
5.030374
0.357477
0.045982
0.046447
0.041802
0.343242
0.266605
0.229912
0.199257
0.158384
0.116117
0
0.019554
0.146813
2,997
76
141
39.434211
0.822448
0.295963
0
0.302326
0
0
0.166667
0.051429
0
0
0
0
0.069767
1
0.069767
false
0
0.186047
0.023256
0.325581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a533adcbaa3e599ac553a4a4afcfe1138f8018d
828
py
Python
docs/md2ipynb.py
RingoIngo/gluon-ts
62fb20c36025fc969653accaffaa783671709564
[ "Apache-2.0" ]
7
2021-07-20T21:46:28.000Z
2022-01-12T04:18:14.000Z
docs/md2ipynb.py
RingoIngo/gluon-ts
62fb20c36025fc969653accaffaa783671709564
[ "Apache-2.0" ]
null
null
null
docs/md2ipynb.py
RingoIngo/gluon-ts
62fb20c36025fc969653accaffaa783671709564
[ "Apache-2.0" ]
3
2021-08-28T06:01:27.000Z
2022-01-12T04:18:13.000Z
import sys import time from itertools import chain from pathlib import Path import nbformat import notedown def convert(path, timeout=40 * 60): with path.open() as in_file: notebook = notedown.MarkdownReader().read(in_file) start = time.time() notedown.run(notebook, timeout) print(f"=== {pa...
23.657143
78
0.669082
114
828
4.72807
0.561404
0.033395
0
0
0
0
0
0
0
0
0
0.008996
0.194444
828
34
79
24.352941
0.7991
0.059179
0
0
0
0
0.145431
0
0
0
0
0
0.047619
1
0.047619
false
0
0.285714
0
0.333333
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
3a5679211ddca25bc7c34ee2ad4a2a92de9f338e
25,389
py
Python
kessk_web/device/views.py
yungs2017/kessk-switch
a56c73c756bb88e8ee38b7aa196fd58a4a802341
[ "BSD-3-Clause" ]
9
2019-09-30T04:24:39.000Z
2021-07-15T06:08:20.000Z
kessk_web/device/views.py
yungs2017/kessk-switch
a56c73c756bb88e8ee38b7aa196fd58a4a802341
[ "BSD-3-Clause" ]
6
2020-05-14T03:13:32.000Z
2022-02-10T10:23:46.000Z
kessk_web/device/views.py
yungs2017/kessk-switch
a56c73c756bb88e8ee38b7aa196fd58a4a802341
[ "BSD-3-Clause" ]
2
2020-12-19T07:12:01.000Z
2021-05-24T02:21:15.000Z
# The 3-Clause BSD License # Copyright (C) 2019, KessK, all rights reserved. # Copyright (C) 2019, Kison.Y, all rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the # following conditions are met:Redistribution and use in source and binary ...
46.245902
194
0.65363
2,960
25,389
5.391216
0.114527
0.058654
0.015979
0.027071
0.633726
0.574884
0.50589
0.449116
0.381815
0.361073
0
0.007135
0.254795
25,389
549
195
46.245902
0.836311
0.177124
0
0.410765
0
0
0.063685
0.012589
0
0
0
0
0
1
0.087819
false
0.011331
0.048159
0
0.212465
0.022663
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a5bc5539f00418441249df40d6f8b47af45d0da
1,087
py
Python
examples/boilerplate/render/main.py
Sakuk3/DefCurse
22c7de689c2d4ec859ca70ecbe0d014034adfadc
[ "MIT" ]
null
null
null
examples/boilerplate/render/main.py
Sakuk3/DefCurse
22c7de689c2d4ec859ca70ecbe0d014034adfadc
[ "MIT" ]
null
null
null
examples/boilerplate/render/main.py
Sakuk3/DefCurse
22c7de689c2d4ec859ca70ecbe0d014034adfadc
[ "MIT" ]
null
null
null
import models from DefCurse import widgets from DefCurse import style from DefCurse import area def render(model: models.Model, rows: int, cols: int): areas = [ area.Area( int(rows/2), int(cols/2), ), area.Area( int(rows/2), int(cols/2), ...
19.070175
54
0.420423
114
1,087
3.929825
0.263158
0.109375
0.107143
0.122768
0.535714
0.285714
0.267857
0.267857
0.232143
0.178571
0
0.049488
0.460902
1,087
57
55
19.070175
0.715017
0
0
0.396226
0
0
0.04136
0
0
0
0
0
0
1
0.018868
false
0
0.075472
0
0.09434
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a5bd10b62878bb2d6b8444b0e27578b7d011c76
579
py
Python
api/urls.py
cooleo/py_feeds_services
1d6ccb3695e091d001714aef8af210d6509f03b6
[ "Apache-2.0" ]
null
null
null
api/urls.py
cooleo/py_feeds_services
1d6ccb3695e091d001714aef8af210d6509f03b6
[ "Apache-2.0" ]
null
null
null
api/urls.py
cooleo/py_feeds_services
1d6ccb3695e091d001714aef8af210d6509f03b6
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url, include from rest_framework import routers from api.views import UserViewSet, GroupViewSet,FeedViewSet router = routers.DefaultRouter() router.register(r'users', UserViewSet) router.register(r'groups', GroupViewSet) router.register(r'feeds', FeedViewSet) router.register(r'category', ...
34.058824
82
0.772021
76
579
5.842105
0.5
0.126126
0.135135
0
0
0
0
0
0
0
0
0
0.108808
579
17
83
34.058824
0.860465
0.177893
0
0
0
0
0.14346
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28a42a406aff16efea2049670fcc9c1d85827d10
1,512
py
Python
3rdparty/cb58ref/setup.py
jgeofil/avax-python
b09e78e3d7e1c35db5ae42e3918e960e775f2d45
[ "MIT" ]
25
2021-05-16T23:43:47.000Z
2022-03-29T03:08:30.000Z
setup.py
moreati/cb58ref
c9827f2cdd2eb55c52bc5de91ade573eab9de827
[ "MIT" ]
2
2021-04-26T11:43:22.000Z
2021-06-04T07:55:22.000Z
3rdparty/cb58ref/setup.py
jgeofil/avax-python
b09e78e3d7e1c35db5ae42e3918e960e775f2d45
[ "MIT" ]
4
2021-08-06T10:55:58.000Z
2022-03-29T08:03:05.000Z
#!/usr/bin/env python3 from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ ] setup_requirements = [ 'pytest-runner', ] test_requirements = [ 'pytest>...
26.526316
72
0.630291
166
1,512
5.608434
0.548193
0.102041
0.134264
0.139635
0
0
0
0
0
0
0
0.029813
0.223545
1,512
56
73
27
0.763203
0.06746
0
0
0
0
0.39245
0
0
0
0
0
0
1
0
false
0
0.023256
0
0.023256
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28a484d541dac8a37bc08470e582fe2e7c7e91cc
1,009
py
Python
prepare_ce_data.py
akio-kobayashi/lc_lstm
c5367518ebf56d13a29794d90061fdfb06677e3e
[ "Apache-2.0" ]
null
null
null
prepare_ce_data.py
akio-kobayashi/lc_lstm
c5367518ebf56d13a29794d90061fdfb06677e3e
[ "Apache-2.0" ]
null
null
null
prepare_ce_data.py
akio-kobayashi/lc_lstm
c5367518ebf56d13a29794d90061fdfb06677e3e
[ "Apache-2.0" ]
null
null
null
import argparse import os import sys import subprocess import time import numpy as np import random import h5py def main(): parser = argparse.ArgumentParser() parser.add_argument('--data', type=str, required=True, help='training data') parser.add_argument('--align', type=str, required=True, help='alignmen...
30.575758
82
0.581764
124
1,009
4.612903
0.362903
0.055944
0.089161
0.09965
0.120629
0
0
0
0
0
0
0.00551
0.280476
1,009
32
83
31.53125
0.782369
0
0
0
0
0
0.091179
0
0
0
0
0
0
1
0.037037
false
0
0.296296
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28a65fd5ccf17c9151ab25e19828fabbbeef343e
627
py
Python
day04/aoc04_1.py
Dbof/adventofcode17
68a390a8601c3421340fa2a59b0497aa76e5f580
[ "MIT" ]
null
null
null
day04/aoc04_1.py
Dbof/adventofcode17
68a390a8601c3421340fa2a59b0497aa76e5f580
[ "MIT" ]
null
null
null
day04/aoc04_1.py
Dbof/adventofcode17
68a390a8601c3421340fa2a59b0497aa76e5f580
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys def has_duplicate(phrase): seen = set() words = phrase.split(' ') for w in words: if w in seen: return True seen.add(w) return False def check(text): count = 0 phrases = text.split('\n') for p in phr...
17.416667
47
0.524721
86
627
3.709302
0.581395
0.065831
0
0
0
0
0
0
0
0
0
0.018824
0.322169
627
35
48
17.914286
0.731765
0.068581
0
0
0
0
0.053265
0
0
0
0
0
0
1
0.086957
false
0
0.043478
0
0.26087
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28a7314d913c35ef3d7bae8ca492ed8ba470e621
4,707
py
Python
setup.py
danmills0/pytket
4ac62896aa61c11ae1077246ab1931d0a8f9a9ac
[ "Apache-2.0" ]
null
null
null
setup.py
danmills0/pytket
4ac62896aa61c11ae1077246ab1931d0a8f9a9ac
[ "Apache-2.0" ]
null
null
null
setup.py
danmills0/pytket
4ac62896aa61c11ae1077246ab1931d0a8f9a9ac
[ "Apache-2.0" ]
null
null
null
import setuptools from setuptools import setup, Extension, find_packages from setuptools.command.build_ext import build_ext import sys import setuptools import os import re import platform import subprocess # from pathlib import Path from os.path import expanduser, join from distutils.version import LooseVersion impor...
34.866667
98
0.607818
545
4,707
5.113761
0.420183
0.010764
0.018658
0.012917
0.072838
0.026552
0
0
0
0
0
0.015108
0.254727
4,707
134
99
35.126866
0.779361
0.085192
0
0.09434
0
0
0.249064
0.035581
0
0
0
0
0
1
0.04717
false
0
0.122642
0
0.226415
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28a8e0d56673ed011c58970fc2cc9375a3c70f66
18,099
py
Python
u24_lymphocyte/third_party/treeano/sandbox/nodes/resnet.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
45
2015-04-26T04:45:51.000Z
2022-01-24T15:03:55.000Z
u24_lymphocyte/third_party/treeano/sandbox/nodes/resnet.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
u24_lymphocyte/third_party/treeano/sandbox/nodes/resnet.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import functools import numpy as np import theano import theano.tensor as T import treeano import treeano.nodes as tn import canopy from treeano.sandbox.nodes import batch_normalization as bn fX = theano.config.floatX @treeano.register_node("strided_downsample") class StridedDownsampleNode(treeano.NodeImpl): hy...
37.70625
82
0.477485
1,615
18,099
5.074923
0.134365
0.059785
0.028551
0.031723
0.550268
0.533431
0.494998
0.473646
0.455832
0.45144
0
0.013312
0.435549
18,099
479
83
37.784969
0.788959
0.048677
0
0.571053
0
0
0.057041
0.005546
0
0
0
0.004175
0.021053
1
0.034211
false
0
0.021053
0.010526
0.107895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28acfde090e21839e1960e00b53a1c31a3399db4
6,857
py
Python
autogalaxy/mock/mock.py
caoxiaoyue/PyAutoGalaxy
ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05
[ "MIT" ]
null
null
null
autogalaxy/mock/mock.py
caoxiaoyue/PyAutoGalaxy
ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05
[ "MIT" ]
null
null
null
autogalaxy/mock/mock.py
caoxiaoyue/PyAutoGalaxy
ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05
[ "MIT" ]
null
null
null
from astropy import constants import math import autofit as af import autoarray as aa import autogalaxy as ag from autoarray.mock.mock import * from autofit.mock.mock import * from autofit.mock import mock as af_m # MockProfiles # class MockLightProfile(ag.lp.LightProfile): def __init__( ...
27.210317
120
0.613825
816
6,857
4.810049
0.167892
0.032102
0.02242
0.028535
0.491975
0.448153
0.367898
0.31414
0.275924
0.275924
0
0.015417
0.309465
6,857
251
121
27.318725
0.813516
0.05848
0
0.462857
0
0
0.004294
0
0
0
0
0
0
1
0.142857
false
0
0.045714
0.08
0.342857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28aedc5062be8fe00618f3317176a7524c4110f1
9,441
py
Python
classification/active_learning_scatterplots_annotated_tresh.py
gbosetti/ca
3f37edc4b8f69f61d02b881242522f6fa15e2695
[ "MIT" ]
null
null
null
classification/active_learning_scatterplots_annotated_tresh.py
gbosetti/ca
3f37edc4b8f69f61d02b881242522f6fa15e2695
[ "MIT" ]
4
2021-06-08T22:30:03.000Z
2022-03-12T00:48:52.000Z
classification/active_learning_scatterplots_annotated_tresh.py
gbosetti/cati
3f37edc4b8f69f61d02b881242522f6fa15e2695
[ "MIT" ]
null
null
null
import json import ast import plotly.plotly as py import plotly.graph_objs as go import plotly.io as pio import os import numpy as np import plotly plotly.io.orca.config.executable = '/home/gabi/dev/miniconda3/bin/orca' #May be useful in Ubuntu #PARAMS logs_path = "C:\\Users\\gbosetti\\Desktop\\test\\logs" output_pat...
37.169291
247
0.565724
1,203
9,441
4.281796
0.188695
0.017472
0.011648
0.017472
0.373908
0.323626
0.30926
0.30266
0.268103
0.218404
0
0.015568
0.299227
9,441
253
248
37.316206
0.762999
0.099142
0
0.343434
0
0
0.114858
0.012028
0.010101
0
0
0
0
1
0.040404
false
0
0.040404
0
0.106061
0.010101
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28b0de3981830a9c1ce4101e37d4ea75cec7989b
1,173
py
Python
dataloader.py
AmanPriyanshu/Federated-Neural-Collaborative-Filtering
44dd31cec644859faa44adf54ace3981d8be5bda
[ "MIT" ]
null
null
null
dataloader.py
AmanPriyanshu/Federated-Neural-Collaborative-Filtering
44dd31cec644859faa44adf54ace3981d8be5bda
[ "MIT" ]
null
null
null
dataloader.py
AmanPriyanshu/Federated-Neural-Collaborative-Filtering
44dd31cec644859faa44adf54ace3981d8be5bda
[ "MIT" ]
1
2022-03-08T14:28:00.000Z
2022-03-08T14:28:00.000Z
import numpy as np import os class MovielensDatasetLoader: def __init__(self, filename='./ml-1m/ratings.dat', npy_file='./ml-1m/ratings.npy', num_movies=None, num_users=None): self.filename = filename self.npy_file = npy_file self.rating_tuples = self.read_ratings() if num_users is None: self.num_users = n...
30.868421
117
0.719523
187
1,173
4.278075
0.299465
0.0525
0.055
0.0325
0.055
0.055
0
0
0
0
0
0.010913
0.140665
1,173
38
118
30.868421
0.782738
0
0
0.121212
0
0
0.041738
0
0
0
0
0
0
1
0.121212
false
0
0.060606
0
0.30303
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28b1ad0e46f2ba4d47dfc0ef0bd3f82478359754
1,785
py
Python
tests/test_command.py
roskakori/sanpo
909ea663a9a4f12495decb828e2256e45a9cee73
[ "BSD-3-Clause" ]
null
null
null
tests/test_command.py
roskakori/sanpo
909ea663a9a4f12495decb828e2256e45a9cee73
[ "BSD-3-Clause" ]
2
2021-09-07T17:32:24.000Z
2022-01-13T20:44:41.000Z
tests/test_command.py
roskakori/sanpo
909ea663a9a4f12495decb828e2256e45a9cee73
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2021, Thomas Aglassinger # All rights reserved. Distributed under the BSD 3-Clause License. from sanpo.command import main_without_logging_setup from ._common import PoFileTest class CommandTest(PoFileTest): def test_can_show_help(self): with self.assertRaises(SystemExit): mai...
42.5
89
0.733894
252
1,785
4.690476
0.289683
0.100677
0.121827
0.116751
0.467005
0.377327
0.214044
0.145516
0.096447
0
0
0.007571
0.185994
1,785
41
90
43.536585
0.805919
0.057703
0
0.066667
0
0
0.051817
0.036927
0
0
0
0
0.266667
1
0.166667
false
0
0.066667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28b25075889c486e4fe8f7d95019574b35bd45f1
3,371
py
Python
tests/test/test_sign_msgpack_keyreg.py
salvatorecorvaglia/ledger-app-algorand
549b863af169b3ce5c7721f2e6a7fca5b4bd05fb
[ "MIT" ]
16
2019-06-12T11:46:12.000Z
2022-01-30T16:28:42.000Z
tests/test/test_sign_msgpack_keyreg.py
salvatorecorvaglia/ledger-app-algorand
549b863af169b3ce5c7721f2e6a7fca5b4bd05fb
[ "MIT" ]
42
2019-07-26T13:31:03.000Z
2022-03-18T15:18:52.000Z
tests/test/test_sign_msgpack_keyreg.py
salvatorecorvaglia/ledger-app-algorand
549b863af169b3ce5c7721f2e6a7fca5b4bd05fb
[ "MIT" ]
38
2019-04-08T14:16:22.000Z
2022-03-18T06:42:29.000Z
import pytest import logging import struct import base64 import msgpack import nacl.signing import algosdk from . import txn_utils from . import ui_interaction from . import speculos @pytest.fixture def keyreg_txn(): b64votekey = "eXq34wzh2UIxCZaI1leALKyAvSz/+XOe0wqdHagM+bw=" votekey_addr = algosdk.encodi...
33.04902
103
0.660931
373
3,371
5.747989
0.340483
0.051306
0.024254
0.023321
0.301306
0.275187
0.275187
0.231343
0.198694
0.146455
0
0.044799
0.218629
3,371
101
104
33.376238
0.769172
0.027292
0
0.083333
0
0
0.147601
0.058426
0
0
0.00492
0
0.027778
1
0.055556
false
0
0.138889
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
28b391732090366f571ee26a22266dbf07b53e53
613
py
Python
VideoSearchEngine/page_rank.py
AkshatSh/VideoSearchEngine
57f64b241b8a7bbc377ce7826e1206f679f41def
[ "MIT" ]
49
2018-05-22T09:06:18.000Z
2022-02-26T10:03:43.000Z
VideoSearchEngine/page_rank.py
AkshatSh/VideoSearchEngine
57f64b241b8a7bbc377ce7826e1206f679f41def
[ "MIT" ]
17
2018-05-18T21:14:36.000Z
2019-06-06T09:17:18.000Z
VideoSearchEngine/page_rank.py
AkshatSh/VideoSearchEngine
57f64b241b8a7bbc377ce7826e1206f679f41def
[ "MIT" ]
18
2018-06-06T22:14:26.000Z
2021-11-23T08:59:31.000Z
from sklearn.feature_extraction.text import TfidfVectorizer from database_utils import get_all_data, remove_summary from collections import OrderedDict import operator def rank_pages(summaries, query): vect = TfidfVectorizer() result = {} for video in summaries: tfidf = vect.fit_transform([video...
26.652174
88
0.681892
76
613
5.342105
0.605263
0.064039
0
0
0
0
0
0
0
0
0
0.010121
0.194127
613
23
89
26.652174
0.811741
0.026101
0
0
0
0
0.031826
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28b3adff40823a3f0d9ff8ca30f874e0ce8a4a4f
3,112
py
Python
generated-libraries/python/netapp/net/ifgrp_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/net/ifgrp_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/net/ifgrp_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.netapp_object import NetAppObject class IfgrpInfo(NetAppObject): """ ifgrp name, type, and components. """ _interface_name = None @property def interface_name(self): """ The interface name. """ return self._interface_name @interface_name.sett...
27.539823
96
0.547237
317
3,112
5.201893
0.205047
0.060036
0.054579
0.043663
0.289873
0.289873
0.289873
0.094603
0.054579
0
0
0
0.335154
3,112
112
97
27.785714
0.797003
0.116967
0
0.179487
0
0
0.135798
0
0
0
0
0
0
1
0.192308
false
0
0.012821
0.038462
0.410256
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28b3f20587976d38da80b634aca51223e642e85b
4,679
py
Python
nrpcalc/base/utils.py
TimothyStiles/nrpcalc
42ab25e929d472c2e808dd3bec6430bc80b42a06
[ "MIT" ]
6
2020-07-27T17:59:19.000Z
2022-03-18T03:33:17.000Z
nrpcalc/base/utils.py
TimothyStiles/nrpcalc
42ab25e929d472c2e808dd3bec6430bc80b42a06
[ "MIT" ]
3
2020-07-17T23:10:36.000Z
2021-09-10T05:19:47.000Z
nrpcalc/base/utils.py
TimothyStiles/nrpcalc
42ab25e929d472c2e808dd3bec6430bc80b42a06
[ "MIT" ]
3
2020-07-27T17:59:22.000Z
2021-02-08T15:47:28.000Z
import os import sys from typing import Tuple import pkg_resources from Bio import SeqIO import RNA import numpy as np complement_table = str.maketrans('ATGCU', 'TACGA') def stream_fasta_seq_list(fasta_filename): with open(fasta_filename, "rU") as handle: for record in SeqIO.parse(handle, "fasta"): ...
29.613924
97
0.596281
621
4,679
4.323672
0.341385
0.026816
0.031285
0.017877
0.236872
0.188827
0.144879
0.125512
0.125512
0.125512
0
0.037336
0.284462
4,679
158
98
29.613924
0.764636
0.125454
0
0.162162
0
0
0.041943
0.011773
0
0
0
0
0
1
0.144144
false
0.009009
0.063063
0.036036
0.342342
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28b511c9bffc7778b947732b16ddfa8179fa7a1e
2,288
py
Python
src/tab_list_analyse.py
GwenIves/Scripts
d2ec5ae0df25f16d5c1fb766767ec358de7d2f97
[ "MIT" ]
null
null
null
src/tab_list_analyse.py
GwenIves/Scripts
d2ec5ae0df25f16d5c1fb766767ec358de7d2f97
[ "MIT" ]
null
null
null
src/tab_list_analyse.py
GwenIves/Scripts
d2ec5ae0df25f16d5c1fb766767ec358de7d2f97
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Analyses a hierarchical tab-indented list file # and prints out subsection sizes on a requested nesting level # Subsections with the same name in different subtrees # are treated as continutaions of a single section # The script accepts two command line parameters: # file name # indent...
25.142857
79
0.488636
250
2,288
4.42
0.38
0.027149
0.01991
0.027149
0.137557
0.137557
0.094118
0.094118
0.094118
0.094118
0
0.024763
0.399913
2,288
90
80
25.422222
0.780044
0.149038
0
0.357143
0
0
0.06095
0.014979
0
0
0
0
0
1
0.035714
false
0
0.017857
0
0.071429
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
28b9d3223ab59c39762f3f62adf5a1151d5a2567
1,357
py
Python
main.py
cortial-manon/vrep-robot-helper
8bae73c78d537c6fda383261f25d52a4df4d1787
[ "MIT" ]
null
null
null
main.py
cortial-manon/vrep-robot-helper
8bae73c78d537c6fda383261f25d52a4df4d1787
[ "MIT" ]
null
null
null
main.py
cortial-manon/vrep-robot-helper
8bae73c78d537c6fda383261f25d52a4df4d1787
[ "MIT" ]
null
null
null
#based on the code from https://github.com/studywolf/blog/blob/master/VREP/two_link_arm/vrep_twolink_controller.py #explained at https://studywolf.wordpress.com/2016/04/18/using-vrep-for-simulation-of-force-controlled-models/ import numpy as np from VrepWorld import VrepWorld #create the world object world = Vrep...
23.807018
114
0.719971
185
1,357
5.254054
0.589189
0.006173
0.034979
0
0
0
0
0
0
0
0
0.024735
0.165807
1,357
57
115
23.807018
0.833922
0.463522
0
0
0
0
0.03662
0
0
0
0
0
0
1
0
false
0
0.130435
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28babc6c1eea36a0a66fd271330d1972461ccef9
15,902
py
Python
ROAR/control_module/mpc_full_controller.py
cmcniel79/ROAR
cd94ec637e6e5df0eaac3d30ece00a2de74730ee
[ "Apache-2.0" ]
null
null
null
ROAR/control_module/mpc_full_controller.py
cmcniel79/ROAR
cd94ec637e6e5df0eaac3d30ece00a2de74730ee
[ "Apache-2.0" ]
null
null
null
ROAR/control_module/mpc_full_controller.py
cmcniel79/ROAR
cd94ec637e6e5df0eaac3d30ece00a2de74730ee
[ "Apache-2.0" ]
null
null
null
from ROAR.control_module.controller import Controller from ROAR.utilities_module.vehicle_models import VehicleControl, Vehicle from ROAR.utilities_module.data_structures_models import Transform, Location import numpy as np import logging from ROAR.agent_module.agent import Agent from typing import Tuple import json fro...
43.807163
149
0.616338
2,180
15,902
4.329817
0.176147
0.041318
0.013985
0.012607
0.30268
0.230427
0.170993
0.146308
0.135502
0.102447
0
0.017502
0.295749
15,902
362
150
43.928177
0.825342
0.353163
0
0.089888
0
0
0.02462
0
0
0
0
0
0
1
0.05618
false
0
0.073034
0
0.191011
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28bb50413a26c30eabe9689d01ddc125b69d1e97
2,268
py
Python
eahub/tests/test_localgroups_models.py
LisaJD/eahub.org
1fd69f9dea5178c4da8923c3497e6326f359d0b5
[ "MIT" ]
null
null
null
eahub/tests/test_localgroups_models.py
LisaJD/eahub.org
1fd69f9dea5178c4da8923c3497e6326f359d0b5
[ "MIT" ]
null
null
null
eahub/tests/test_localgroups_models.py
LisaJD/eahub.org
1fd69f9dea5178c4da8923c3497e6326f359d0b5
[ "MIT" ]
null
null
null
from django.test import TestCase from eahub.base.models import User from eahub.localgroups.models import LocalGroup, Organisership from eahub.profiles.models import Profile class LocalGroupTestCase(TestCase): def test_organisers_names(self): local_group = LocalGroup() local_group.save() ...
26.682353
77
0.581129
221
2,268
5.701357
0.343891
0.103175
0.045238
0.047619
0.131746
0.131746
0.131746
0
0
0
0
0.019506
0.321869
2,268
84
78
27
0.79974
0
0
0.059701
0
0
0.130071
0
0
0
0
0
0.044776
1
0.044776
false
0
0.059701
0
0.119403
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28bd72b293eddba770453dd33bd72e6fed937e89
5,769
py
Python
cloudmosh/components/depth.py
rmmilewi/cloudmosh
a6387296ad5591f35a5bbfe0d20c5865eb98d07c
[ "MIT" ]
null
null
null
cloudmosh/components/depth.py
rmmilewi/cloudmosh
a6387296ad5591f35a5bbfe0d20c5865eb98d07c
[ "MIT" ]
null
null
null
cloudmosh/components/depth.py
rmmilewi/cloudmosh
a6387296ad5591f35a5bbfe0d20c5865eb98d07c
[ "MIT" ]
null
null
null
from cloudmosh.components.base import CloudMoshComponent import os import numpy as np # Keras / TensorFlow os.environ['TF_CPP_MIN_LOG_LEVEL'] = '5' from keras.models import load_model import skimage.io from skimage.transform import resize from keras.engine.topology import Layer, InputSpec import keras.utils.conv_utils ...
38.97973
121
0.691454
796
5,769
4.866834
0.281407
0.056789
0.022716
0.026846
0.250387
0.232318
0.2127
0.2127
0.2127
0.205472
0
0.024662
0.205755
5,769
148
122
38.97973
0.820821
0.240076
0
0.25
0
0
0.03234
0
0
0
0
0
0
1
0.125
false
0
0.125
0.011364
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28bea69d4e6a6b28445e83be9513a3aebdc5d979
9,316
py
Python
diagnostics/model_test/verify_model.py
ami-GS/ngraph-tf
b5ac340f43bf70879ef6c180f69aac8241152c1e
[ "Apache-2.0" ]
null
null
null
diagnostics/model_test/verify_model.py
ami-GS/ngraph-tf
b5ac340f43bf70879ef6c180f69aac8241152c1e
[ "Apache-2.0" ]
null
null
null
diagnostics/model_test/verify_model.py
ami-GS/ngraph-tf
b5ac340f43bf70879ef6c180f69aac8241152c1e
[ "Apache-2.0" ]
null
null
null
# ============================================================================== # Copyright 2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
36.677165
130
0.659833
1,232
9,316
4.737013
0.233766
0.023989
0.020562
0.013708
0.127142
0.088588
0.047293
0.047293
0.025703
0.025703
0
0.008197
0.240447
9,316
253
131
36.822134
0.816563
0.254186
0
0.026846
0
0.006711
0.124632
0
0
0
0
0
0.026846
1
0.033557
false
0.026846
0.060403
0
0.120805
0.04698
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28c180845ca339e6f881e886240beaf93a1ed892
10,953
py
Python
main.py
Tominous/Mario-1
28709143019d40cfeaa53737a01270ce14f99858
[ "Unlicense" ]
1
2020-06-09T10:43:08.000Z
2020-06-09T10:43:08.000Z
main.py
Tominous/Mario-1
28709143019d40cfeaa53737a01270ce14f99858
[ "Unlicense" ]
null
null
null
main.py
Tominous/Mario-1
28709143019d40cfeaa53737a01270ce14f99858
[ "Unlicense" ]
null
null
null
import discord from discord.ext import commands import os import random from server import run_server #token token = os.environ.get("token") #prefisso bot = commands.Bot(command_prefix="m!", description="Nada.") bot.remove_command('help') #status @bot.event async def on_ready(): print("Sono online come", bot.use...
37.382253
279
0.601936
1,302
10,953
5.025346
0.241935
0.035763
0.063579
0.083448
0.597127
0.575424
0.54715
0.54715
0.530796
0.502522
0
0.026017
0.252534
10,953
293
280
37.382253
0.772811
0.004108
0
0.491597
0
0.021008
0.311961
0.085856
0
0
0.006604
0
0
1
0.004202
false
0
0.021008
0.004202
0.029412
0.004202
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28c25c0dfe99e2a00d332afa08326f2e3d25b1e8
19,506
py
Python
helpers.py
agartland/HLAPredCache
ebacc706df581a71ba3812282013263939cfbb61
[ "MIT" ]
null
null
null
helpers.py
agartland/HLAPredCache
ebacc706df581a71ba3812282013263939cfbb61
[ "MIT" ]
null
null
null
helpers.py
agartland/HLAPredCache
ebacc706df581a71ba3812282013263939cfbb61
[ "MIT" ]
null
null
null
import numpy as np import string import re __all__ = ['BADAA', 'AALPHABET', 'convertHLAAsterisk', 'isvalidmer', 'isvalidHLA', 'rankEpitopes', 'rankKmers', 'rankMers', 'getIC50', 'getMers', 'getMerInd...
32.838384
110
0.584589
2,672
19,506
4.26235
0.126871
0.007024
0.011063
0.004215
0.578189
0.56897
0.550707
0.536044
0.5054
0.498024
0
0.015943
0.324721
19,506
594
111
32.838384
0.848694
0.485082
0
0.295547
0
0
0.030758
0
0
0
0
0
0
1
0.064777
false
0
0.012146
0
0.186235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28c5429706a9cf44dbc351c293ef49e987982fbe
5,697
py
Python
simfempy/examples/incompflow.py
anairabeze/simfempy
144362956263cb9b81f4bade15664d9cc640f93a
[ "MIT" ]
null
null
null
simfempy/examples/incompflow.py
anairabeze/simfempy
144362956263cb9b81f4bade15664d9cc640f93a
[ "MIT" ]
null
null
null
simfempy/examples/incompflow.py
anairabeze/simfempy
144362956263cb9b81f4bade15664d9cc640f93a
[ "MIT" ]
null
null
null
assert __name__ == '__main__' # in shell import os, sys simfempypath = os.path.abspath(os.path.join(__file__, os.path.pardir, os.path.pardir, os.path.pardir, os.path.pardir,'simfempy')) sys.path.insert(0,simfempypath) import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import pygm...
44.507813
129
0.584694
783
5,697
4.204342
0.195402
0.061968
0.034022
0.038275
0.591738
0.57017
0.543742
0.488153
0.442892
0.409478
0
0.056765
0.177462
5,697
127
130
44.858268
0.645753
0.270318
0
0.318182
0
0
0.07696
0.005341
0
0
0
0.007874
0.011364
1
0.045455
false
0
0.113636
0
0.193182
0.034091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28c6551ca38cd065b2ced67935d3a361ea90ce26
11,816
py
Python
polecat/db/sql/expression/where.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
4
2019-08-10T12:56:12.000Z
2020-01-21T09:51:20.000Z
polecat/db/sql/expression/where.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
71
2019-04-09T05:39:21.000Z
2020-05-16T23:09:24.000Z
polecat/db/sql/expression/where.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
null
null
null
import re import ujson from psycopg2.sql import SQL, Composable, Identifier from polecat.utils import to_bool, to_tuple from ...schema.column import ReverseColumn from .expression import Expression class DiscardValue: pass class Where: FILTER_PROG = re.compile(r'^([a-zA-Z][a-zA-Z0-9_]+(?:__[a-zA-Z][a-zA-Z...
30.142857
110
0.565166
1,394
11,816
4.672166
0.160689
0.047597
0.034393
0.039152
0.406571
0.37786
0.341778
0.307078
0.29633
0.288961
0
0.003069
0.310511
11,816
391
111
30.219949
0.796367
0.07346
0
0.376271
0
0.00339
0.066477
0.004853
0
0
0
0.002558
0
1
0.145763
false
0.010169
0.020339
0.023729
0.366102
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28c7010fc293f500f9e2e5f809119706506c2ca1
1,479
py
Python
autobahn/protocols/ws_client_protocol.py
olegpshenichniy/uvloop-dyno-track
b90e369a12077d390bd74aab833c2c562c5a2567
[ "MIT" ]
2
2017-09-12T10:32:48.000Z
2017-09-27T14:47:37.000Z
autobahn/protocols/ws_client_protocol.py
olegpshenichniy/uvloop-dyno-track
b90e369a12077d390bd74aab833c2c562c5a2567
[ "MIT" ]
null
null
null
autobahn/protocols/ws_client_protocol.py
olegpshenichniy/uvloop-dyno-track
b90e369a12077d390bd74aab833c2c562c5a2567
[ "MIT" ]
null
null
null
import json from autobahn.asyncio.websocket import WebSocketClientProtocol from config import DEBUG, CLIENTS_MSGS_COUNT, CLIENTS_COUNT class WSClientProtocol(WebSocketClientProtocol): """ Websocket client protocol. """ def __init__(self): super(WSClientProtocol, self).__init__() sel...
30.183673
101
0.628803
162
1,479
5.469136
0.45679
0.05079
0.072235
0.051919
0
0
0
0
0
0
0
0.006369
0.25693
1,479
48
102
30.8125
0.799818
0.017579
0
0
0
0
0.141267
0
0
0
0
0
0
1
0.1875
false
0
0.09375
0
0.3125
0.21875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28c80161e65709f4218b6dce11334fbf557a4f57
13,174
py
Python
tests/www/services/synapse_space/daa/test_grant_daa_access_service.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
tests/www/services/synapse_space/daa/test_grant_daa_access_service.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
tests/www/services/synapse_space/daa/test_grant_daa_access_service.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
import pytest import time import json from datetime import date, timedelta from www.core import Synapse, Env from www.services.synapse_space.daa import GrantDaaAccessService import synapseclient as syn @pytest.fixture def mk_service(syn_test_helper, syn_client, mk_uniq_real_email, blank_daa_config, set_daa_config): ...
41.297806
115
0.617656
1,542
13,174
4.993515
0.144617
0.023636
0.043896
0.055195
0.543117
0.485844
0.447273
0.385714
0.345844
0.322597
0
0.007533
0.27448
13,174
318
116
41.427673
0.798075
0.016927
0
0.350598
0
0
0.079305
0.014704
0
0
0
0.003145
0.338645
1
0.063745
false
0.003984
0.027888
0
0.095618
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28c8168a9876befd17a03652dfc26fe8e8b8d160
6,048
py
Python
scripts/verify/test_sampling/species_generator_funcs.py
nadiahpk/niche-neutral-riau-birds
83eeba57973d6912ad354592c84a03b5c24b3363
[ "Unlicense" ]
null
null
null
scripts/verify/test_sampling/species_generator_funcs.py
nadiahpk/niche-neutral-riau-birds
83eeba57973d6912ad354592c84a03b5c24b3363
[ "Unlicense" ]
null
null
null
scripts/verify/test_sampling/species_generator_funcs.py
nadiahpk/niche-neutral-riau-birds
83eeba57973d6912ad354592c84a03b5c24b3363
[ "Unlicense" ]
null
null
null
import numpy as np # create J[k,h], the number of individuals in niche k on island h def draw_J(K, JV): # secondary parameters H = len(JV) # number of islands J = list() for k in range(K): J.append([]) for h in range(H): Jkh_float = JV[h] / K # number of indivi...
32.691892
106
0.475694
788
6,048
3.59264
0.214467
0.067114
0.038149
0.03391
0.452844
0.421406
0.372307
0.372307
0.372307
0.372307
0
0.017231
0.424272
6,048
184
107
32.869565
0.795807
0.303571
0
0.488636
0
0
0
0
0
0
0
0
0
1
0.034091
false
0
0.011364
0
0.045455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28cb2fe8595e1829af00fa8ae1db21b69746fd37
767
py
Python
protonfixes/gamefixes/243470.py
Citiroller/protonfixes
6e0116bd1cd2172b6f0ff9905667bbc59595cdb7
[ "BSD-2-Clause" ]
213
2018-10-06T01:40:26.000Z
2022-03-16T16:17:37.000Z
protonfixes/gamefixes/243470.py
Citiroller/protonfixes
6e0116bd1cd2172b6f0ff9905667bbc59595cdb7
[ "BSD-2-Clause" ]
88
2018-10-06T17:38:56.000Z
2022-02-19T13:27:26.000Z
protonfixes/gamefixes/243470.py
Citiroller/protonfixes
6e0116bd1cd2172b6f0ff9905667bbc59595cdb7
[ "BSD-2-Clause" ]
67
2018-10-09T16:57:16.000Z
2022-03-14T13:06:25.000Z
""" Game fix for Watch_Dogs """ # pylint: disable=C0103 import subprocess from protonfixes import util from protonfixes import splash def main(): """ Fix the in-game sound """ util.protontricks('xact') util.protontricks('winxp') info_popup() @util.once def info_popup(): """ Show info popup...
22.558824
165
0.640156
100
767
4.81
0.59
0.056133
0.087318
0
0
0
0
0
0
0
0
0.013841
0.246415
767
33
166
23.242424
0.818339
0.168188
0
0
0
0.052632
0.299838
0
0
0
0
0
0
1
0.105263
false
0
0.157895
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
28cfe2649130d1fc2ca1713a506f572c7ef8b0ef
3,564
py
Python
test.py
ughiriccardo/retinaface-tf2
4791819fc7e47a63ffe695f0a3adccd6cfa5bb5e
[ "MIT" ]
null
null
null
test.py
ughiriccardo/retinaface-tf2
4791819fc7e47a63ffe695f0a3adccd6cfa5bb5e
[ "MIT" ]
null
null
null
test.py
ughiriccardo/retinaface-tf2
4791819fc7e47a63ffe695f0a3adccd6cfa5bb5e
[ "MIT" ]
null
null
null
from absl import app, flags, logging from absl.flags import FLAGS import cv2 import os import numpy as np import tensorflow as tf import time from PIL import Image from modules.models import RetinaFaceModel from modules.utils import (set_memory_growth, load_yaml, draw_bbox_landm, pad_input_...
33.622642
125
0.664703
515
3,564
4.394175
0.335922
0.027839
0.033142
0.030491
0.135219
0.120194
0.022978
0
0
0
0
0.014873
0.207632
3,564
105
126
33.942857
0.786473
0.062009
0
0.051948
0
0
0.142172
0.009298
0
0
0
0
0
1
0.012987
false
0.012987
0.12987
0
0.142857
0.051948
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28d3228ab5984fc81c4a723afce6ac8224b5d570
214
py
Python
Contest/ABC182/d/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC182/d/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC182/d/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 n, *a = map(int, open(0).read().split()) from itertools import* *S, = accumulate(a) *M, = accumulate(S, max) Z = ans = 0 for s, m in zip(S, M): ans = max(ans, Z + m) Z += s print(ans)
21.4
40
0.570093
41
214
2.97561
0.609756
0.032787
0
0
0
0
0
0
0
0
0
0.017751
0.21028
214
10
41
21.4
0.704142
0.098131
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
28dcbab6ce14a5c552df454e459ab5d17982bfb0
1,627
py
Python
new_skeleton1/tests/test_player_repository.py
borko81/SU_OOP_2021
8c38682bd4a2b032ca09f85b0a579be152223a59
[ "MIT" ]
null
null
null
new_skeleton1/tests/test_player_repository.py
borko81/SU_OOP_2021
8c38682bd4a2b032ca09f85b0a579be152223a59
[ "MIT" ]
null
null
null
new_skeleton1/tests/test_player_repository.py
borko81/SU_OOP_2021
8c38682bd4a2b032ca09f85b0a579be152223a59
[ "MIT" ]
null
null
null
import unittest from project.player.beginner import Beginner from project.player.player_repository import PlayerRepository class TestPlayerRepo(unittest.TestCase): def setUp(self): self.repo = PlayerRepository() def test_set_up(self): self.assertEqual(self.repo.count, 0) self.assertL...
31.288462
80
0.657652
210
1,627
4.909524
0.290476
0.131911
0.064016
0.069835
0.458778
0.403492
0.234724
0.234724
0.205626
0.13967
0
0.004747
0.22311
1,627
51
81
31.901961
0.810918
0
0
0.35
0
0
0.066994
0
0
0
0
0
0.3
1
0.175
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
28dfb8dee6d42e22033971ee588b9325fc390cc8
640
py
Python
montype.py
xenolithcluster/mon
b3ecb7810857ae6890ec57cd862f79d8422ee99d
[ "Unlicense" ]
null
null
null
montype.py
xenolithcluster/mon
b3ecb7810857ae6890ec57cd862f79d8422ee99d
[ "Unlicense" ]
null
null
null
montype.py
xenolithcluster/mon
b3ecb7810857ae6890ec57cd862f79d8422ee99d
[ "Unlicense" ]
null
null
null
from monstage import * class MonType(): def __init__(self,sprites=None,stage=egg,becomes=None): self.stage = stage self.becomes = becomes self._sprites = sprites def setSprites(self,sprites): if type(sprites) not in [list,tuple] or sprites == None: ...
22.857143
74
0.614063
74
640
5.216216
0.459459
0.142487
0.139896
0.108808
0
0
0
0
0
0
0
0.006383
0.265625
640
27
75
23.703704
0.814894
0
0
0.133333
0
0
0.076682
0
0
0
0
0
0
1
0.2
false
0
0.066667
0.066667
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28e78c6007647b288497c3988604a790b661d369
7,327
py
Python
examples/prefilter_test.py
abiedermann/worms
026c45a88d5c71b0e035ac83de6f4dc107316ed8
[ "Apache-2.0" ]
4
2018-01-30T23:13:43.000Z
2021-02-12T22:36:54.000Z
examples/prefilter_test.py
abiedermann/worms
026c45a88d5c71b0e035ac83de6f4dc107316ed8
[ "Apache-2.0" ]
9
2018-02-23T00:52:25.000Z
2022-01-26T00:02:32.000Z
examples/prefilter_test.py
abiedermann/worms
026c45a88d5c71b0e035ac83de6f4dc107316ed8
[ "Apache-2.0" ]
4
2018-06-28T21:30:14.000Z
2022-03-30T17:50:42.000Z
import logging import sys import concurrent.futures as cf from time import clock, time import numpy as np import pytest from worms import simple_search_dag, Cyclic, grow_linear, NullCriteria from worms.util import InProcessExecutor from worms.database import CachingBBlockDB, CachingSpliceDB from worms.ssdag_pose impo...
32.856502
115
0.661253
1,044
7,327
4.37069
0.25
0.053254
0.074074
0.086785
0.319088
0.289064
0.250931
0.235371
0.235371
0.225948
0
0.070432
0.207452
7,327
222
116
33.004505
0.715344
0.10782
0
0.1
0
0.011765
0.312327
0.239625
0
0
0
0
0
1
0.017647
false
0
0.094118
0
0.123529
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28e92acc31d96b35a53502cfb20ad7033a7cf662
2,476
py
Python
f_net/main.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
2
2021-09-04T09:08:38.000Z
2021-09-04T09:08:44.000Z
f_net/main.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
null
null
null
f_net/main.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
5
2021-11-25T07:40:17.000Z
2022-03-22T11:13:39.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
32.578947
83
0.735057
349
2,476
5.063037
0.475645
0.033956
0.023769
0.01811
0.019242
0
0
0
0
0
0
0.004885
0.173263
2,476
75
84
33.013333
0.858329
0.319063
0
0
0
0
0.186899
0.025841
0
0
0
0
0
1
0.02381
false
0
0.238095
0
0.261905
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28e9489a4ce0811a2281acebf64dae5129d76367
18,341
py
Python
mypyext/ml.py
VolkiTheDreamer/PythonRocks
f7b6cdf335687c6d111bf08387965ca3ecddd504
[ "Apache-2.0" ]
null
null
null
mypyext/ml.py
VolkiTheDreamer/PythonRocks
f7b6cdf335687c6d111bf08387965ca3ecddd504
[ "Apache-2.0" ]
null
null
null
mypyext/ml.py
VolkiTheDreamer/PythonRocks
f7b6cdf335687c6d111bf08387965ca3ecddd504
[ "Apache-2.0" ]
2
2019-10-04T10:56:14.000Z
2022-03-06T18:18:59.000Z
import numpy as np import pandas as pd from sklearn.metrics import silhouette_samples, silhouette_score from sklearn.metrics import confusion_matrix, accuracy_score, recall_score, precision_score, f1_score,roc_auc_score,roc_curve from sklearn.metrics import mean_squared_error,mean_absolute_error,r2_score import ma...
38.531513
213
0.601876
2,375
18,341
4.544
0.291368
0.015845
0.00556
0.009266
0.083117
0.061527
0.039288
0.034099
0.016679
0.008154
0
0.021779
0.284009
18,341
476
214
38.531513
0.80003
0.209858
0
0.062914
0
0
0.092658
0.00301
0
0
0
0
0
1
0.086093
false
0.003311
0.07947
0.003311
0.201987
0.072848
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28eb9384d1558fa0c10861f56ac8ad811737befd
845
py
Python
src/isaw.theme/isaw/theme/browser/viewlets/zotero.py
isawnyu/isaw.web
604499f9fa55d1ce9698ca05f85ddb54a88f1cab
[ "CC-BY-3.0" ]
null
null
null
src/isaw.theme/isaw/theme/browser/viewlets/zotero.py
isawnyu/isaw.web
604499f9fa55d1ce9698ca05f85ddb54a88f1cab
[ "CC-BY-3.0" ]
405
2015-03-12T18:20:25.000Z
2022-03-07T18:44:16.000Z
src/isaw.theme/isaw/theme/browser/viewlets/zotero.py
isawnyu/isaw.web
604499f9fa55d1ce9698ca05f85ddb54a88f1cab
[ "CC-BY-3.0" ]
1
2016-11-07T21:18:49.000Z
2016-11-07T21:18:49.000Z
import re from urlparse import urlparse from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from plone.app.layout.viewlets.common import ViewletBase ZOTERO_JSON_BASE = 'https://api.zotero.org{}?v=3&format=json' Z_MATCH = re.compile(r'^/(groups|users)/\d+/items/[A-Z1-9]+$') class PublicationZotero...
33.8
71
0.695858
109
845
5.229358
0.541284
0.063158
0.049123
0
0
0
0
0
0
0
0
0.004425
0.197633
845
24
72
35.208333
0.836283
0
0
0
0
0
0.138462
0.043787
0
0
0
0
0
1
0.05
false
0
0.2
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
28ec2d89ad8ce29a9ec68a6cf207b6114836df8c
1,079
py
Python
descender.py
illBeRoy/tldr-of-the-world-data
06d581eb117bdc79ebbe7af4f8ae4b26190d7231
[ "MIT" ]
null
null
null
descender.py
illBeRoy/tldr-of-the-world-data
06d581eb117bdc79ebbe7af4f8ae4b26190d7231
[ "MIT" ]
null
null
null
descender.py
illBeRoy/tldr-of-the-world-data
06d581eb117bdc79ebbe7af4f8ae4b26190d7231
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import json import jinja2 import webbrowser import graph if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('groups', help='json file describing seed groups') args = parser.parse_args() # load group from file with open(args.gro...
28.394737
100
0.656163
146
1,079
4.760274
0.458904
0.034532
0.051799
0.046043
0
0
0
0
0
0
0
0.008187
0.2076
1,079
37
101
29.162162
0.804678
0.159407
0
0
0
0
0.211111
0.067778
0
0
0
0
0
1
0
false
0
0.238095
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28f54f1fb9cdd4025290b813dd74c2874e584666
14,375
py
Python
4_Model_Updater/train_new_model.py
kshahnazari1998/SmartDota-Public
270ddabfd353c57e754c00b7a5365d99f4d5902f
[ "MIT" ]
null
null
null
4_Model_Updater/train_new_model.py
kshahnazari1998/SmartDota-Public
270ddabfd353c57e754c00b7a5365d99f4d5902f
[ "MIT" ]
null
null
null
4_Model_Updater/train_new_model.py
kshahnazari1998/SmartDota-Public
270ddabfd353c57e754c00b7a5365d99f4d5902f
[ "MIT" ]
null
null
null
import json import pandas as pd import numpy as np import random from Sqldatabasehandler import sqlhandler from datetime import datetime from sklearn.linear_model import SGDClassifier from sklearn.preprocessing import PolynomialFeatures import pickle import torch from torch import nn import torch.optim as optim from ...
36.209068
88
0.517704
1,778
14,375
4.012373
0.142295
0.062798
0.046257
0.08831
0.640454
0.619288
0.599103
0.577236
0.555649
0.535744
0
0.035497
0.361113
14,375
396
89
36.300505
0.741289
0.066574
0
0.44373
0
0
0.039518
0.003593
0
0
0
0
0
1
0.041801
false
0.009646
0.045016
0.006431
0.180064
0.012862
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28f6f0c2610028a27b78a080b28387f6adc1ab80
2,227
py
Python
meshrcnn/structures/mask.py
MAYURGAIKWAD/meshrcnn
b47ecd47ca7de7055b7d141e63ddab286c5245f3
[ "BSD-3-Clause" ]
1,028
2020-01-23T23:30:54.000Z
2022-03-27T22:33:50.000Z
meshrcnn/structures/mask.py
MAYURGAIKWAD/meshrcnn
b47ecd47ca7de7055b7d141e63ddab286c5245f3
[ "BSD-3-Clause" ]
103
2020-01-24T05:29:48.000Z
2022-03-08T13:04:24.000Z
meshrcnn/structures/mask.py
MAYURGAIKWAD/meshrcnn
b47ecd47ca7de7055b7d141e63ddab286c5245f3
[ "BSD-3-Clause" ]
179
2020-01-24T08:14:30.000Z
2022-03-19T00:34:05.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import torch from torch.nn import functional as F def crop_mask_within_box(mask, box, mask_size): """ Crop the mask content in the given box. The cropped mask is resized to (mask_size, mask_size). This function is used when genera...
34.796875
97
0.68388
337
2,227
4.391691
0.367953
0.059459
0.037162
0.043243
0.037838
0.037838
0.037838
0
0
0
0
0.011008
0.224966
2,227
63
98
35.349206
0.846466
0.535249
0
0
0
0
0.015168
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28f7bcf0fe258f3b0b26915576f9434aa6d0a9ec
1,727
py
Python
app/controller/org.py
Jimmy-Xu/fastapi_demo
f19c629cc7fa0e0e47e73e8688cd019bc74aa982
[ "MIT" ]
12
2020-09-01T09:19:41.000Z
2022-03-17T05:48:50.000Z
app/controller/org.py
Jimmy-Xu/fastapi_demo
f19c629cc7fa0e0e47e73e8688cd019bc74aa982
[ "MIT" ]
null
null
null
app/controller/org.py
Jimmy-Xu/fastapi_demo
f19c629cc7fa0e0e47e73e8688cd019bc74aa982
[ "MIT" ]
3
2021-04-26T02:53:04.000Z
2021-11-01T14:32:38.000Z
from fastapi import APIRouter, Depends from fastapi_plus.schema.base import ListArgsSchema, RespListSchema, RespIdSchema, RespBaseSchema from fastapi_plus.utils.auth import get_auth_data from fastapi_plus.utils.custom_route import CustomRoute from ..schema.org import OrgInfoSchema, OrgRespDetailSchema from ..service.o...
27.412698
97
0.712218
212
1,727
5.622642
0.283019
0.114094
0.055369
0.079698
0.322148
0.29698
0.234899
0.209732
0.137584
0
0
0
0.165605
1,727
62
98
27.854839
0.827203
0
0
0
0
0
0.018921
0
0
0
0
0
0
1
0
false
0
0.24
0
0.44
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28fa10ec4cb7ea617432d1a843efa65bb4d46c15
2,327
py
Python
nerodia/alert.py
harsh183/nerodia
69c5e4408432e85b5af0b2da03015f729809dac4
[ "MIT" ]
83
2017-11-20T08:41:09.000Z
2022-02-09T21:01:47.000Z
nerodia/alert.py
harsh183/nerodia
69c5e4408432e85b5af0b2da03015f729809dac4
[ "MIT" ]
28
2017-11-21T02:25:03.000Z
2021-04-15T15:26:30.000Z
nerodia/alert.py
harsh183/nerodia
69c5e4408432e85b5af0b2da03015f729809dac4
[ "MIT" ]
14
2017-11-29T06:44:12.000Z
2021-09-06T04:53:44.000Z
from selenium.common.exceptions import NoAlertPresentException import nerodia from .exception import UnknownObjectException from .wait.wait import Waitable, TimeoutError class Alert(Waitable): def __init__(self, browser): self.browser = browser self.alert = None @property def text(self):...
23.039604
83
0.581006
244
2,327
5.442623
0.319672
0.072289
0.071536
0.051205
0.219127
0.203313
0.073795
0.073795
0.073795
0.073795
0
0
0.329179
2,327
100
84
23.27
0.850737
0.234207
0
0.304348
0
0
0.042913
0
0
0
0
0
0.065217
1
0.195652
false
0
0.086957
0.021739
0.456522
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28fa6ae216b4aa0d88457aec32b09566f1611604
1,448
py
Python
finetwork/distance_calculator/distance_calculator.py
annakuchko/FinNetwork
4566ff96b33fb5668f9b28f41a94791d1cf9249c
[ "MIT" ]
5
2021-12-07T22:14:10.000Z
2022-03-30T14:09:15.000Z
finetwork/distance_calculator/distance_calculator.py
annakuchko/FinNetwork
4566ff96b33fb5668f9b28f41a94791d1cf9249c
[ "MIT" ]
null
null
null
finetwork/distance_calculator/distance_calculator.py
annakuchko/FinNetwork
4566ff96b33fb5668f9b28f41a94791d1cf9249c
[ "MIT" ]
null
null
null
from finetwork.distance_calculator import _distance_metrics import pandas as pd class CalculateDistance: def __init__(self, data, method='pearson', scaled=False, sigma = 0.5): self.data = data self.method = method self.scaled = scaled self.sigma = sigma ...
34.47619
78
0.462017
149
1,448
4.308725
0.328859
0.062305
0.028037
0.034268
0.077882
0.077882
0.077882
0.077882
0
0
0
0.00861
0.438536
1,448
41
79
35.317073
0.781058
0
0
0
0
0
0.030561
0
0
0
0
0
0
1
0.060606
false
0
0.060606
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28fc0673c7bc0e68a3641dedb06915366e9c6c39
27,818
py
Python
aprastreioWin.py
Alexsussa/aprastreio
1159861edd932f61a849f63f9dc7e5d34b2f272b
[ "MIT" ]
null
null
null
aprastreioWin.py
Alexsussa/aprastreio
1159861edd932f61a849f63f9dc7e5d34b2f272b
[ "MIT" ]
null
null
null
aprastreioWin.py
Alexsussa/aprastreio
1159861edd932f61a849f63f9dc7e5d34b2f272b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- encoding: utf-8 -*- __version__ = 1.2 from tkinter.ttk import * from tkinter.messagebox import * from tkinter.scrolledtext import * from tkinter import * from bs4 import BeautifulSoup from urllib.request import urlopen from mailcomposer import MailComposer from threading import Thread import ...
46.910624
225
0.60752
3,162
27,818
5.327324
0.166034
0.023508
0.029445
0.022559
0.600534
0.551202
0.507806
0.449629
0.400475
0.384862
0
0.012346
0.260443
27,818
592
226
46.989865
0.806445
0.020562
0
0.360341
0
0.012793
0.264556
0.005208
0
0
0
0
0
1
0.051173
false
0.008529
0.031983
0
0.098081
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28fcf00920c199ce0f0b62aba120f4cb4d0c324d
5,480
py
Python
samples/attributes.py
DavidJohnGee/clicrud
f1f178ac44649efe7b7681d37e97d2632b8971b2
[ "Apache-2.0" ]
9
2015-12-07T23:00:24.000Z
2021-06-23T21:31:47.000Z
samples/attributes.py
DavidJohnGee/clicrud
f1f178ac44649efe7b7681d37e97d2632b8971b2
[ "Apache-2.0" ]
8
2016-04-05T12:36:54.000Z
2017-05-15T16:00:08.000Z
samples/attributes.py
DavidJohnGee/clicrud
f1f178ac44649efe7b7681d37e97d2632b8971b2
[ "Apache-2.0" ]
7
2016-06-02T23:39:05.000Z
2021-03-25T20:52:46.000Z
#!/usr/bin/env python """ Copyright 2015 Brocade Communications Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
37.793103
77
0.534672
566
5,480
4.998233
0.316254
0.041357
0.051962
0.056911
0.404383
0.323436
0.297278
0.297278
0.297278
0.297278
0
0.015425
0.372993
5,480
144
78
38.055556
0.807916
0.250547
0
0.54023
0
0
0.149171
0
0
0
0
0
0
1
0.045977
false
0
0.011494
0
0.091954
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28fd8a0aa5ca53d8cc4ae5edc75046373f2c1af3
1,929
py
Python
Q36_reversePairs.py
FreesiaLikesPomelo/-offer
14ac73cb46d13c7f5bbc294329a14f3c5995bc7a
[ "Apache-2.0" ]
null
null
null
Q36_reversePairs.py
FreesiaLikesPomelo/-offer
14ac73cb46d13c7f5bbc294329a14f3c5995bc7a
[ "Apache-2.0" ]
null
null
null
Q36_reversePairs.py
FreesiaLikesPomelo/-offer
14ac73cb46d13c7f5bbc294329a14f3c5995bc7a
[ "Apache-2.0" ]
null
null
null
''' 面试题51. 数组中的逆序对 在数组中的两个数字,如果前面一个数字大于后面的数字,则这两个数字组成一个逆序对。输入一个数组,求出这个数组中的逆序对的总数。 示例 1: 输入: [7,5,6,4] 输出: 5 限制: 0 <= 数组长度 <= 50000 https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof/ 执行用时 :1564 ms, 在所有 Python3 提交中击败了85.67%的用户 内存消耗 :18.5 MB, 在所有 Python3 提交中击败了100.00%的用户 ''' # merge-sort # test cases: # 1...
26.424658
64
0.524624
242
1,929
4.181818
0.35124
0.041502
0.050395
0.045455
0.189723
0.189723
0.189723
0.189723
0.057312
0
0
0.048722
0.350959
1,929
72
65
26.791667
0.759585
0.248834
0
0.325581
0
0
0
0
0
0
0
0
0
1
0.069767
false
0
0
0
0.209302
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28fd8b4c1c5abdea704fd69e0b99370a0f6f8997
21,954
py
Python
Apps/phgreynoise/greynoise_connector.py
ryanbsaunders/phantom-apps
1befda793a08d366fbd443894f993efb1baf9635
[ "Apache-2.0" ]
2
2021-07-23T03:51:30.000Z
2021-08-12T14:13:04.000Z
Apps/phgreynoise/greynoise_connector.py
ryanbsaunders/phantom-apps
1befda793a08d366fbd443894f993efb1baf9635
[ "Apache-2.0" ]
4
2021-10-04T09:22:02.000Z
2021-11-01T12:00:04.000Z
Apps/phgreynoise/greynoise_connector.py
ryanbsaunders/phantom-apps
1befda793a08d366fbd443894f993efb1baf9635
[ "Apache-2.0" ]
2
2021-05-15T17:31:24.000Z
2021-07-23T03:51:42.000Z
# File: greynoise_connector.py # # Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) # Python 3 Compatibility imports from __future__ import print_function, unicode_literals # Phantom App imports import phantom.app as phantom from phantom.base_connector import BaseConnector from phantom.acti...
38.856637
123
0.579029
2,452
21,954
4.902529
0.132545
0.063888
0.037434
0.041927
0.444555
0.412362
0.384827
0.377256
0.355711
0.333417
0
0.002717
0.329325
21,954
564
124
38.925532
0.813706
0.034709
0
0.401766
0
0
0.123858
0.004733
0
0
0
0
0
1
0.039735
false
0.01766
0.028698
0.004415
0.183223
0.024283
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28ff68d107d4e01cf5ece21ad9bb66128f102b8f
373
py
Python
src/pgbackup/pgdump.py
narbutas/pgbackup
2bc65dc9c4cdba135e0ae68c71d034de50fddda8
[ "Apache-2.0" ]
null
null
null
src/pgbackup/pgdump.py
narbutas/pgbackup
2bc65dc9c4cdba135e0ae68c71d034de50fddda8
[ "Apache-2.0" ]
null
null
null
src/pgbackup/pgdump.py
narbutas/pgbackup
2bc65dc9c4cdba135e0ae68c71d034de50fddda8
[ "Apache-2.0" ]
null
null
null
import subprocess import sys def dump(url): try: return subprocess.Popen(['pg_dump', url], stdout=subprocess.PIPE) except OSError as err: print(f"Error: {err}") sys.exit(1) def dump_file_name(url, timestamp=None): db_name = url.split('/')[-1] db_name = db_name.split('?')[0] if timestamp: return f"{db_na...
21.941176
67
0.686327
60
373
4.133333
0.516667
0.120968
0.072581
0.104839
0
0
0
0
0
0
0
0.009346
0.13941
373
17
68
21.941176
0.76324
0
0
0
0
0
0.157754
0.066845
0
0
0
0
0
1
0.133333
false
0
0.133333
0
0.466667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e900f1fbad104966ef7247511d53bc745e2f6385
1,190
py
Python
e2_s13.py
iansantana00/Python-Course
43852aa64c93099342ab4765b0fe8729a959449e
[ "MIT" ]
2
2022-01-13T15:55:58.000Z
2022-02-11T23:18:34.000Z
e2_s13.py
iansantana00/Python-Course
43852aa64c93099342ab4765b0fe8729a959449e
[ "MIT" ]
null
null
null
e2_s13.py
iansantana00/Python-Course
43852aa64c93099342ab4765b0fe8729a959449e
[ "MIT" ]
null
null
null
numero_vogal = 0 espaço = 0 numero_consoante = 0 contador = 0 escrita = 0 arquivo = input('Digite o nome do seu arquivo (.txt): ') with open(arquivo, 'w', encoding='utf-8') as texto: while escrita != 'sair': escrita = input('Digite: ') texto.write(escrita) texto.write(...
30.512821
117
0.443697
182
1,190
2.868132
0.412088
0.063218
0.04023
0.074713
0.162835
0.061303
0
0
0
0
0
0.015421
0.291597
1,190
38
118
31.315789
0.603796
0
0
0
0
0
0.231771
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e903dc912d5bbd81aedab3090527461e1da894a1
2,843
py
Python
mammoth/ensembl.py
hbc/mammoth_code
2e6909514e8ff232981ea2cb03f078257bc5c847
[ "MIT" ]
1
2017-05-22T01:18:13.000Z
2017-05-22T01:18:13.000Z
mammoth/ensembl.py
hbc/mammoth_code
2e6909514e8ff232981ea2cb03f078257bc5c847
[ "MIT" ]
null
null
null
mammoth/ensembl.py
hbc/mammoth_code
2e6909514e8ff232981ea2cb03f078257bc5c847
[ "MIT" ]
null
null
null
"""ensembl interaction function""" import os import requests, sys import yaml import logging import gffutils from collections import defaultdict import mammoth.logger as mylog server = "http://rest.ensembl.org{ext}" ext = "/sequence/id/{id}?type=cds" prot = "/sequence/id/{id}?type=protein" sequence = "/sequence/reg...
38.418919
133
0.570172
353
2,843
4.458924
0.291785
0.015248
0.047649
0.043202
0.302414
0.219822
0.202668
0.16582
0.16582
0.16582
0
0.004455
0.289483
2,843
73
134
38.945205
0.774752
0.020401
0
0.233333
0
0
0.146508
0.040317
0
0
0
0
0
1
0.1
false
0
0.116667
0.016667
0.383333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e90a508ef0e30d0bdd4948ae4a031308ac6c728e
10,317
py
Python
pag_demo.py
Topaz1618/MeowFile
33878abfb552128368ad6bbf5396d45f21906ce3
[ "MIT" ]
null
null
null
pag_demo.py
Topaz1618/MeowFile
33878abfb552128368ad6bbf5396d45f21906ce3
[ "MIT" ]
null
null
null
pag_demo.py
Topaz1618/MeowFile
33878abfb552128368ad6bbf5396d45f21906ce3
[ "MIT" ]
null
null
null
__copyright__ = """ Copyright (c) 2021 HangYan. """ __license__ = 'MIT license' __version__ = '1.0' __author__ = 'topaz1668@gmail.com' from models import conn_db, UploadFiles from sqlalchemy import func, distinct, or_, and_ import datetime from datetime import timedelta import time import math def string_to_ts(str_t...
29.226629
342
0.602113
1,243
10,317
4.747385
0.152051
0.052872
0.033045
0.033045
0.543298
0.523471
0.463989
0.447382
0.429758
0.3818
0
0.072094
0.24038
10,317
353
343
29.226629
0.680873
0.773287
0
0.297872
0
0
0.116164
0.02175
0
0
0
0
0
1
0.085106
false
0
0.12766
0
0.276596
0.06383
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e90aae947ee6b59303ae1471afa7007b7d9e535a
4,490
py
Python
test/orb.py
Tythos/oyb
0653c4fa24c73f4f2cb2d1c1a29d318f6e9cbd79
[ "MIT" ]
1
2017-08-05T16:16:32.000Z
2017-08-05T16:16:32.000Z
test/orb.py
Tythos/oyb
0653c4fa24c73f4f2cb2d1c1a29d318f6e9cbd79
[ "MIT" ]
null
null
null
test/orb.py
Tythos/oyb
0653c4fa24c73f4f2cb2d1c1a29d318f6e9cbd79
[ "MIT" ]
null
null
null
""" """ import datetime import unittest import numpy from math import pi import oyb from oyb import earth, anomaly class ClassTests(unittest.TestCase): def test_default(self): o = oyb.Orbit() def test_args(self): o = oyb.Orbit(a_m=1.064e7, e=0.42607, i_rad=39.687*pi/180, O_rad=130.32*...
38.376068
122
0.57951
753
4,490
3.293493
0.231076
0.141129
0.164516
0.082258
0.328629
0.25
0.175806
0.075
0.053226
0.033871
0
0.137534
0.264811
4,490
116
123
38.706897
0.613753
0
0
0.042553
0
0
0.001785
0
0
0
0
0
0.265957
1
0.191489
false
0
0.06383
0
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
e90be1f05a4443793696e6d766c9b0e422e47832
11,656
py
Python
src/python/WMComponent/JobArchiver/JobArchiverPoller.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
1
2015-02-05T13:43:46.000Z
2015-02-05T13:43:46.000Z
src/python/WMComponent/JobArchiver/JobArchiverPoller.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
1
2016-10-13T14:57:35.000Z
2016-10-13T14:57:35.000Z
src/python/WMComponent/JobArchiver/JobArchiverPoller.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ The actual jobArchiver algorithm """ import logging import os import os.path import shutil import tarfile import threading from Utils.IteratorTools import grouper from Utils.Timers import timeFunction from WMCore.DAOFactory import DAOFactory from WMCore.JobStateMachine.ChangeState import Chan...
34.081871
99
0.591455
1,115
11,656
6.156951
0.295964
0.033212
0.017334
0.019374
0.117407
0.098762
0.074727
0.064239
0.064239
0.055936
0
0.0038
0.322666
11,656
341
100
34.181818
0.865738
0.127316
0
0.283721
0
0
0.109093
0.013063
0
0
0
0
0
1
0.046512
false
0.004651
0.07907
0
0.190698
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e90c9d97a14172ce328d8d9a5973b099b111668f
5,127
py
Python
mnist/mnist_dist.py
vibhatha/PytorchExamples
df356f120d6eef69a94586af93bff75af307582d
[ "Apache-2.0" ]
3
2021-04-11T05:09:00.000Z
2021-08-11T09:58:53.000Z
mnist/mnist_dist.py
vibhatha/PytorchExamples
df356f120d6eef69a94586af93bff75af307582d
[ "Apache-2.0" ]
4
2021-03-12T21:51:01.000Z
2021-03-14T16:03:13.000Z
mnist/mnist_dist.py
vibhatha/PytorchExamples
df356f120d6eef69a94586af93bff75af307582d
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import argparse from math import ceil from random import Random from socket import socket import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from torch.optim.lr_scheduler import StepLR import...
29.635838
122
0.577921
639
5,127
4.477308
0.280125
0.005592
0.008389
0.012583
0.041244
0.026564
0.009088
0
0
0
0
0.028865
0.29725
5,127
172
123
29.80814
0.765196
0.062415
0
0.072581
0
0
0.039666
0
0
0
0
0
0
1
0.08871
false
0
0.129032
0.016129
0.282258
0.072581
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e90e71723fb83c3e9db45cf94c16cac0b3962eb2
1,218
py
Python
common/es/one_scripts.py
ltxhh/course
45c8e4e436d9f20effccc7ed0844dfd07d8348b1
[ "Apache-2.0" ]
null
null
null
common/es/one_scripts.py
ltxhh/course
45c8e4e436d9f20effccc7ed0844dfd07d8348b1
[ "Apache-2.0" ]
null
null
null
common/es/one_scripts.py
ltxhh/course
45c8e4e436d9f20effccc7ed0844dfd07d8348b1
[ "Apache-2.0" ]
null
null
null
# -*- codeing = utf-8 -*- # @Time : 2022/4/12 13:43 # @Author : linyaxuan # @File : one_scripts.py # @Software : PyCharm """ 将数据库数据导入es """ import pymysql import traceback from elasticsearch import Elasticsearch def get_db_data(): # 打开数据库连接(ip/数据库用户名/登录密码/数据库名) db = pymysql.connect(host="127.0.0.1:3306", use...
23.882353
85
0.559113
149
1,218
4.42953
0.624161
0.015152
0.027273
0.042424
0
0
0
0
0
0
0
0.052448
0.295567
1,218
51
86
23.882353
0.716783
0.183908
0
0
0
0
0.149284
0
0
0
0
0
0
1
0.064516
false
0.032258
0.096774
0
0.193548
0.096774
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e910c8bb7a93d643dfe5883064380eb1ced0913d
1,343
py
Python
doubleRedirect.py
ebraminio/DeltaBot
14d427ca644c4e842f72802a0e07adcaecda7097
[ "CC0-1.0" ]
10
2016-08-09T21:28:27.000Z
2021-12-23T17:22:04.000Z
doubleRedirect.py
ebraminio/DeltaBot
14d427ca644c4e842f72802a0e07adcaecda7097
[ "CC0-1.0" ]
9
2016-12-31T10:48:11.000Z
2020-07-22T20:52:06.000Z
doubleRedirect.py
ebraminio/DeltaBot
14d427ca644c4e842f72802a0e07adcaecda7097
[ "CC0-1.0" ]
11
2017-01-24T15:51:57.000Z
2022-02-10T00:35:18.000Z
#!/usr/bin/python # -*- coding: UTF-8 -*- # licensed under CC-Zero: https://creativecommons.org/publicdomain/zero/1.0 import pywikibot from pywikibot.data import api import re site = pywikibot.Site('wikidata', 'wikidata') site.login() repo = site.data_repository() def redirect(fromId, toId): # get...
24.87037
78
0.527923
135
1,343
5.185185
0.533333
0.042857
0.06
0.077143
0.114286
0.114286
0.114286
0.114286
0.114286
0
0
0.019459
0.311243
1,343
53
79
25.339623
0.737297
0.102755
0
0.195122
0
0
0.162162
0
0
0
0
0
0
1
0.04878
false
0.02439
0.073171
0
0.121951
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e914dc16d8c9fee0bbb11e912b41acdddd08ad05
1,237
py
Python
leetcode/permutation.py
huynonstop/solving-everything
21c7c32f9e482e1e88d5ec8a03f8815d28f7ef39
[ "MIT" ]
null
null
null
leetcode/permutation.py
huynonstop/solving-everything
21c7c32f9e482e1e88d5ec8a03f8815d28f7ef39
[ "MIT" ]
null
null
null
leetcode/permutation.py
huynonstop/solving-everything
21c7c32f9e482e1e88d5ec8a03f8815d28f7ef39
[ "MIT" ]
null
null
null
from typing import List class Solution: def permuteUnique(self, nums: List[int]) -> List[List[int]]: return permute_unique(nums) # https://leetcode.com/problems/permutations-ii/discuss/18602/9-line-python-solution-with-1-line-to-handle-duplication-beat-99-of-others-%3A-) def permute_unique(nums): r...
22.089286
142
0.501213
163
1,237
3.742331
0.361963
0.065574
0.083607
0.065574
0.134426
0.078689
0.078689
0.078689
0.078689
0
0
0.02402
0.36055
1,237
55
143
22.490909
0.747156
0.113177
0
0.365854
0
0
0
0
0
0
0
0
0
1
0.121951
false
0
0.02439
0.02439
0.292683
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e91d0411a8febadb09ca20268e15414ccded8163
1,543
py
Python
pedurma/proofreading.py
Esukhia/pedurma
334b5957db30f514d396bd9defc9e9381f5b290b
[ "MIT" ]
null
null
null
pedurma/proofreading.py
Esukhia/pedurma
334b5957db30f514d396bd9defc9e9381f5b290b
[ "MIT" ]
null
null
null
pedurma/proofreading.py
Esukhia/pedurma
334b5957db30f514d396bd9defc9e9381f5b290b
[ "MIT" ]
1
2021-11-04T07:04:05.000Z
2021-11-04T07:04:05.000Z
from pedurma.pecha import ProofreadNotePage from pedurma.utils import from_yaml def get_note_page_img_link(text_id, pg_num, repo_path): text_meta = from_yaml((repo_path / text_id / "meta.yml")) image_grp_id = text_meta.get("img_grp_id", "") img_link = f"https://iiif.bdrc.io/bdr:{image_grp_id}::{image_grp_...
35.068182
116
0.706416
253
1,543
3.905138
0.245059
0.066802
0.064777
0.07085
0.32996
0.271255
0.225709
0.138664
0.138664
0.138664
0
0.009382
0.171095
1,543
43
117
35.883721
0.763096
0
0
0.058824
0
0.029412
0.169799
0
0
0
0
0
0
1
0.117647
false
0
0.058824
0
0.264706
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e91ff99a3728e01c9518fdfe79d256b14ae28af1
353
py
Python
DataBase Sqlite3/NoteMeilheur.py
otmanabdoun/IHM-Python
624e961c2f6966b98bf2c1bc4dd276b812954ba1
[ "Apache-2.0" ]
3
2021-12-08T10:34:55.000Z
2022-01-17T21:02:40.000Z
NoteMeilheur.py
otmanabdoun/IHM-Python
624e961c2f6966b98bf2c1bc4dd276b812954ba1
[ "Apache-2.0" ]
null
null
null
NoteMeilheur.py
otmanabdoun/IHM-Python
624e961c2f6966b98bf2c1bc4dd276b812954ba1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Nov 3 04:38:07 2021 @author: User """ import sqlite3 connexion = sqlite3.connect("dbM2IQL.db") curseur = connexion.cursor() curseur.execute("""SELECT e.Nom, c.note FROM Etudiant as e INNER JOIN CF as c ON e.id = c.fk_etudiant ORDER BY c.note DESC LIMIT ...
25.214286
70
0.651558
56
353
4.089286
0.767857
0.043668
0
0
0
0
0
0
0
0
0
0.05694
0.203966
353
14
71
25.214286
0.758007
0.206799
0
0
0
0
0.496154
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e924f0db03f4f2a8c126f7c109a518852a2aa24a
6,850
py
Python
ProcessingData/get_gp-bias.py
gomes-lab/SARA_ScienceAdvances
61848d1c92a66bd58c8c195e5b2bb250ef8efb51
[ "MIT" ]
1
2022-01-13T12:17:29.000Z
2022-01-13T12:17:29.000Z
ProcessingData/get_gp-bias.py
gomes-lab/SARA_ScienceAdvances
61848d1c92a66bd58c8c195e5b2bb250ef8efb51
[ "MIT" ]
null
null
null
ProcessingData/get_gp-bias.py
gomes-lab/SARA_ScienceAdvances
61848d1c92a66bd58c8c195e5b2bb250ef8efb51
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Script to extract the gp bias features from microscopy images """ import sys import json import os import copy as cp import numpy as np import glob import matplotlib.pyplot as plt import matplotlib from numpy.polynomial import polynomial import offsets as GS from probability_dist import * imp...
35.492228
163
0.646277
1,053
6,850
4.026591
0.265907
0.026415
0.033726
0.008491
0.167217
0.123821
0.049057
0.049057
0.049057
0.049057
0
0.029478
0.217518
6,850
192
164
35.677083
0.761194
0.132555
0
0.014286
0
0
0.065088
0
0
0
0
0
0
1
0.028571
false
0
0.128571
0.007143
0.185714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e925522b3d3915457215980e5bca266c8fd2ff38
2,448
py
Python
monitoring/automation/monitor.py
shane0/flask-website-monitor
39031b9207c97baef4b10a792e038f241bcdc857
[ "MIT" ]
1
2017-04-13T05:29:15.000Z
2017-04-13T05:29:15.000Z
monitoring/automation/monitor.py
shane0/flask-website-monitor
39031b9207c97baef4b10a792e038f241bcdc857
[ "MIT" ]
1
2017-04-12T23:44:58.000Z
2017-04-12T23:44:58.000Z
monitoring/automation/monitor.py
shane0/flask-website-monitor
39031b9207c97baef4b10a792e038f241bcdc857
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ A website monitor. """ import sys import traceback import requests import re import json import datetime DEFAULT_CONFIG_FILE = 'config.json' def check(): headers = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'...
28.137931
126
0.541258
324
2,448
4.021605
0.42284
0.00921
0.027629
0.021489
0
0
0
0
0
0
0
0.032221
0.290033
2,448
86
127
28.465116
0.717491
0.069853
0
0.066667
0
0.05
0.335544
0.06145
0
0
0
0
0
1
0.066667
false
0
0.1
0.016667
0.25
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e92912ace35fc868f85b6a3bdb13260570590334
412
py
Python
Chapter03/c3_27_datadotworld_1.py
andrewjcoxon/Hands-On-Data-Science-with-Anaconda
82504a059ecd284b3599fa9af2b3eb6bbd6e28f3
[ "MIT" ]
25
2018-06-25T16:21:09.000Z
2022-02-08T09:28:29.000Z
Hands-On-Data-Science-with-Anaconda-master/Hands-On-Data-Science-with-Anaconda-master/Chapter03/c3_27_datadotworld_1.py
manual123/Nacho-Jupyter-Notebooks
e75523434b1a90313a6b44e32b056f63de8a7135
[ "MIT" ]
null
null
null
Hands-On-Data-Science-with-Anaconda-master/Hands-On-Data-Science-with-Anaconda-master/Chapter03/c3_27_datadotworld_1.py
manual123/Nacho-Jupyter-Notebooks
e75523434b1a90313a6b44e32b056f63de8a7135
[ "MIT" ]
17
2018-06-15T02:55:30.000Z
2022-03-09T15:24:42.000Z
""" Name : c3_27_datadotworld_1.py Book : Hands-on Data Science with Anaconda) Publisher: Packt Publishing Ltd. Author : Yuxing Yan and James Yan Date : 1/15/2018 email : yany@canisius.edu paulyxy@hotmail.com """ import datadotworld as dw dataset = 'jonloyens/an-intro-to-dat...
27.466667
51
0.694175
56
412
5.017857
0.839286
0
0
0
0
0
0
0
0
0
0
0.033846
0.211165
412
15
52
27.466667
0.830769
0.565534
0
0
0
0
0.246835
0.246835
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e92a3ce5abab1bfe02516472d0fc6c56a482d48d
15,964
py
Python
strutil.py
IloveKanade/k3fmt
13a81562b9fc706dbf7fc05fcae130260bc2551d
[ "MIT" ]
null
null
null
strutil.py
IloveKanade/k3fmt
13a81562b9fc706dbf7fc05fcae130260bc2551d
[ "MIT" ]
3
2021-08-06T07:24:40.000Z
2022-03-23T06:58:36.000Z
strutil.py
IloveKanade/k3fmt
13a81562b9fc706dbf7fc05fcae130260bc2551d
[ "MIT" ]
1
2021-08-04T08:41:33.000Z
2021-08-04T08:41:33.000Z
import re import os import errno import string import subprocess import k3color listtype = (tuple, list) invisible_chars = ''.join(map(chr, list(range(0, 32)))) invisible_chars_re = re.compile('[%s]' % re.escape(invisible_chars)) def break_line(linestr, width): lines = linestr.splitlines() rst = [] spa...
26.084967
103
0.5057
2,051
15,964
3.862019
0.163335
0.01515
0.00909
0.008837
0.144552
0.072844
0.035602
0.035602
0.01818
0.010605
0
0.025446
0.38211
15,964
611
104
26.12766
0.777575
0.330055
0
0.205212
0
0
0.017958
0
0
0
0
0
0
1
0.052117
false
0.006515
0.019544
0.006515
0.153094
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e92ba6f82fbd7b5de0f238a51cd87521f2ccd146
16,920
py
Python
camera.py
Euclideon/udSDKPython
a82157ab6382fda6291bdcca9ec2a51203b95b2a
[ "MIT" ]
4
2020-09-03T05:35:15.000Z
2021-11-08T04:31:55.000Z
camera.py
Euclideon/udSDKPython
a82157ab6382fda6291bdcca9ec2a51203b95b2a
[ "MIT" ]
1
2020-08-18T06:49:21.000Z
2020-08-18T06:49:21.000Z
camera.py
Euclideon/udSDKPython
a82157ab6382fda6291bdcca9ec2a51203b95b2a
[ "MIT" ]
1
2020-09-11T07:52:32.000Z
2020-09-11T07:52:32.000Z
import logging import math import numpy as np import pyglet import udSDK logger = logging.getLogger(__name__) class Camera(): """ Base camera class for Euclideon udSDK Python Sample This sets the default behaviour for a perspective camera Stores the state of the camera, and provides functions for modifyting ...
29.32409
176
0.642317
2,326
16,920
4.6092
0.171539
0.006902
0.005317
0.015017
0.280011
0.210335
0.187389
0.136275
0.130118
0.130118
0
0.022629
0.232151
16,920
576
177
29.375
0.802571
0.177896
0
0.317585
0
0
0.068487
0
0
0
0
0.001736
0
1
0.128609
false
0.018373
0.013123
0.005249
0.181102
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e932fb4ec343373146508adfa905b3c8915cb66b
4,831
py
Python
train.py
ppujol76/-Pere_Transformers
e267bcc6559c998accaed647cacbff253031f8b0
[ "MIT" ]
null
null
null
train.py
ppujol76/-Pere_Transformers
e267bcc6559c998accaed647cacbff253031f8b0
[ "MIT" ]
null
null
null
train.py
ppujol76/-Pere_Transformers
e267bcc6559c998accaed647cacbff253031f8b0
[ "MIT" ]
1
2021-06-21T08:40:18.000Z
2021-06-21T08:40:18.000Z
import torch import os from model.visualization import Visualization from panel.main import tensorboard_panel from torch.utils.data.dataset import Subset import random import numpy as np def write_on_tensorboard(epoch:int, loss:int, bleu:int, image, expected_captions, generated_captions): tensorboard_panel.add_senten...
35.262774
114
0.673981
661
4,831
4.751891
0.291982
0.031837
0.022923
0.026743
0.201528
0.149316
0.063037
0.044572
0.044572
0.044572
0
0.01303
0.126268
4,831
136
115
35.522059
0.731106
0.195819
0
0.075
0
0
0.126599
0.102323
0
0
0
0
0
1
0.075
false
0
0.0875
0
0.1875
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
e933799d41eabf2ce3d0578ad558fcf9ab8d220d
2,251
py
Python
views/probabilidade.py
pxcx/ambar-backend
350baabb492e4fbc1002ea851d1cef4fc999b81a
[ "MIT" ]
null
null
null
views/probabilidade.py
pxcx/ambar-backend
350baabb492e4fbc1002ea851d1cef4fc999b81a
[ "MIT" ]
null
null
null
views/probabilidade.py
pxcx/ambar-backend
350baabb492e4fbc1002ea851d1cef4fc999b81a
[ "MIT" ]
null
null
null
from flask import jsonify from sqlalchemy import func from datetime import datetime, date from models.previsao import Previsao, db def configure(app): # /probabilidade - retorna a probabilidade total de chuva # - inicio (YYYY-MM-DD) # - fim (YYYY-MM-DD) @app.route('/probabilidade/<inicio>/<fim>', metho...
39.491228
97
0.52821
250
2,251
4.7
0.368
0.051064
0.061277
0.074894
0.251915
0.194043
0.194043
0.194043
0.161702
0.161702
0
0.004098
0.349622
2,251
57
98
39.491228
0.798497
0.099067
0
0.146341
0
0
0.06383
0.014349
0
0
0
0
0
1
0.04878
false
0
0.097561
0
0.219512
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e937f0e5ec885071b7daceb7fa5456d999a1e95f
293
py
Python
scripts/makeNegativesList.py
jccaicedo/localization-agent
d280acf355307b74e68dca9ec80ab293f0d18642
[ "MIT" ]
8
2016-11-20T19:43:45.000Z
2020-12-09T04:58:05.000Z
scripts/makeNegativesList.py
jccaicedo/localization-agent
d280acf355307b74e68dca9ec80ab293f0d18642
[ "MIT" ]
45
2015-05-04T20:41:05.000Z
2017-07-17T12:04:13.000Z
scripts/makeNegativesList.py
jccaicedo/localization-agent
d280acf355307b74e68dca9ec80ab293f0d18642
[ "MIT" ]
9
2016-11-20T19:43:46.000Z
2020-09-01T21:01:54.000Z
import sys,os import utils as cu params = cu.loadParams('fullList positivesList output') full = [x for x in open(params['fullList'])] positives = [x for x in open(params['positivesList'])] out = open(params['output'],'w') for r in full: if r not in positives: out.write(r) out.close()
22.538462
55
0.692833
48
293
4.229167
0.5
0.147783
0.049261
0.068966
0.167488
0.167488
0
0
0
0
0
0
0.16041
293
12
56
24.416667
0.825203
0
0
0
0
0
0.194539
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e93a77efc359563f0911c10f45a8c7e3f5ed8fd4
1,354
py
Python
tests/test_model.py
alexdawn/rollinghub
6043c12520d7e0b0596f28c166616c1014e1f870
[ "MIT" ]
null
null
null
tests/test_model.py
alexdawn/rollinghub
6043c12520d7e0b0596f28c166616c1014e1f870
[ "MIT" ]
11
2019-08-18T21:37:28.000Z
2022-03-21T22:17:37.000Z
tests/test_model.py
alexdawn/rollinghub
6043c12520d7e0b0596f28c166616c1014e1f870
[ "MIT" ]
null
null
null
import pytest from rollinghub.db import get_db def test_index(client, auth): response = client.get('/') assert b"Log In" in response.data assert b"Register" in response.data auth.login() response = client.get('/') assert b'Log Out' in response.data assert b'test title' in response.data ...
27.08
72
0.656573
197
1,354
4.441624
0.370558
0.056
0.096
0.091429
0.257143
0.061714
0
0
0
0
0
0.024954
0.200886
1,354
49
73
27.632653
0.783734
0.087149
0
0.25
0
0
0.19237
0
0
0
0
0
0.305556
1
0.111111
false
0
0.055556
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
e93be486b0635edc83619c16da55bfa370ed7c0e
19,672
py
Python
openpype/hosts/unreal/plugins/load/load_camera.py
Tilix4/OpenPype
8909bd890170880aa7ec8b673abaa25a9bdf40f2
[ "MIT" ]
1
2022-02-08T15:40:41.000Z
2022-02-08T15:40:41.000Z
openpype/hosts/unreal/plugins/load/load_camera.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
null
null
null
openpype/hosts/unreal/plugins/load/load_camera.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Load camera from FBX.""" from pathlib import Path import unreal from unreal import EditorAssetLibrary from unreal import EditorLevelLibrary from unreal import EditorLevelUtils from openpype.pipeline import ( AVALON_CONTAINER_ID, legacy_io, ) from openpype.hosts.unreal.api import plu...
35.509025
79
0.573861
2,083
19,672
5.167547
0.136822
0.012542
0.017559
0.013935
0.490803
0.404496
0.353586
0.304348
0.246284
0.222315
0
0.004503
0.333926
19,672
553
80
35.573237
0.816988
0.102176
0
0.402469
0
0
0.072368
0.019108
0
0
0
0
0.004938
1
0.014815
false
0
0.049383
0
0.083951
0.004938
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0