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
8577638bf4ccf5772ce85b6e85457d1e027d3afe
1,507
py
Python
parallel_esn/example/power_consumption_oneshot.py
zblanks/parallel_esn
25a979d0863ce54a4a588f4216dc473d4e9c5e8a
[ "BSD-2-Clause" ]
7
2019-05-06T00:32:24.000Z
2021-06-03T14:49:23.000Z
parallel_esn/example/power_consumption_oneshot.py
zblanks/parallel_esn
25a979d0863ce54a4a588f4216dc473d4e9c5e8a
[ "BSD-2-Clause" ]
8
2019-04-20T04:51:38.000Z
2020-02-25T22:25:34.000Z
parallel_esn/example/power_consumption_oneshot.py
zblanks/parallel_esn
25a979d0863ce54a4a588f4216dc473d4e9c5e8a
[ "BSD-2-Clause" ]
2
2019-04-19T11:05:51.000Z
2020-10-15T20:40:26.000Z
from pkg_resources import resource_filename import numpy as np import matplotlib.pyplot as plt from ..esn import ESN from ..utils import chunk_data, standardize_traindata, scale_data # Example using real data, one shot prediction # Load data fname = resource_filename('parallel_esn', 'data/PJM_Load_hourly.csv') data =...
32.06383
69
0.741208
241
1,507
4.510373
0.460581
0.033119
0.027599
0.027599
0
0
0
0
0
0
0
0.023538
0.126078
1,507
46
70
32.76087
0.801822
0.197744
0
0
0
0
0.121565
0.019983
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8577a2ae24790cf5340a14689ec14a5be4fe05c0
7,522
py
Python
tests/st/explainer/test_runner.py
Vincent34/mindspore
a39a60878a46e7e9cb02db788c0bca478f2fa6e5
[ "Apache-2.0" ]
2
2021-07-08T13:10:42.000Z
2021-11-08T02:48:57.000Z
tests/st/explainer/test_runner.py
peixinhou/mindspore
fcb2ec2779b753e95c762cf292b23bd81d1f561b
[ "Apache-2.0" ]
null
null
null
tests/st/explainer/test_runner.py
peixinhou/mindspore
fcb2ec2779b753e95c762cf292b23bd81d1f561b
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.422886
109
0.626695
962
7,522
4.747401
0.230769
0.032844
0.049923
0.025619
0.41559
0.358441
0.335888
0.319247
0.271732
0.248741
0
0.022579
0.246344
7,522
200
110
37.61
0.783031
0.130417
0
0.338346
0
0
0.031825
0
0
0
0
0
0.195489
1
0.105263
false
0
0.120301
0.030075
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8578189186a9c269dc0edf7eade08b1bd089bcd5
28,956
py
Python
GUI src/app.py
xngst/press-graphs
0fdb1b402fc948cf66c1d0c66c726e7ecf6f15e5
[ "MIT" ]
null
null
null
GUI src/app.py
xngst/press-graphs
0fdb1b402fc948cf66c1d0c66c726e7ecf6f15e5
[ "MIT" ]
null
null
null
GUI src/app.py
xngst/press-graphs
0fdb1b402fc948cf66c1d0c66c726e7ecf6f15e5
[ "MIT" ]
null
null
null
""" PRESSGRAPHS DASH CLIENT WEB GUI interface for PressGraphs WebAPI """ ################################### # IMPORTS ################################### #builtins from datetime import datetime from datetime import timedelta #3rd party import dash import dash_core_components as dcc import dash_html_components as html...
29.486762
140
0.521239
3,242
28,956
4.467921
0.118754
0.040041
0.034035
0.037556
0.682775
0.630376
0.584743
0.553055
0.524888
0.524888
0
0.017098
0.2749
28,956
981
141
29.51682
0.672795
0.030598
0
0.570175
0
0
0.210388
0.033978
0
0
0
0.006116
0
1
0.026316
false
0
0.019006
0
0.096491
0.001462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
857b09fd9aab40fed40cd686483e3386e8a76e25
1,467
py
Python
algorithms/bubblesort.py
KellyHwong/Algorithms
50cfc37c9b3694bb5ae9f13bb1e923e4f2142bca
[ "MIT" ]
3
2019-06-20T07:09:57.000Z
2019-07-01T07:04:46.000Z
algorithms/bubblesort.py
KellyHwong/Algorithms
50cfc37c9b3694bb5ae9f13bb1e923e4f2142bca
[ "MIT" ]
null
null
null
algorithms/bubblesort.py
KellyHwong/Algorithms
50cfc37c9b3694bb5ae9f13bb1e923e4f2142bca
[ "MIT" ]
1
2019-11-22T07:36:28.000Z
2019-11-22T07:36:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Date : Jul-13-19 18:02 # @Author : Your Name (you@example.org) # @Link : http://example.org import os import random import pysnooper import time import csv from quicksort import quicksort def bubblesort(l: list): for i in range(len(l)): for j in r...
23.66129
60
0.524881
195
1,467
3.805128
0.358974
0.107817
0.012129
0.052561
0.142857
0.130728
0.09973
0.09973
0.09973
0.09973
0
0.029592
0.33197
1,467
61
61
24.04918
0.727551
0.177914
0
0.153846
0
0
0.048346
0
0
0
0
0
0
1
0.051282
false
0
0.153846
0
0.230769
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
857e81aeb8f91a043f2183d0e0e74e4b51951da7
890
py
Python
codes/Others/Longest-Palindromic-Substring/script.py
kotori-y/LeetCode-Code
cf42265401d5fdedd8ba95974e93f5c005694e86
[ "MIT" ]
3
2021-04-23T02:02:23.000Z
2021-05-15T01:01:24.000Z
codes/Others/Longest-Palindromic-Substring/script.py
kotori-y/LeetCode-Code
cf42265401d5fdedd8ba95974e93f5c005694e86
[ "MIT" ]
null
null
null
codes/Others/Longest-Palindromic-Substring/script.py
kotori-y/LeetCode-Code
cf42265401d5fdedd8ba95974e93f5c005694e86
[ "MIT" ]
null
null
null
''' Description: Author: Kotori Y Date: 2021-04-22 09:14:19 LastEditors: Kotori Y LastEditTime: 2021-04-22 09:14:20 FilePath: \LeetCode-Code\codes\Others\Longest-Palindromic-Substring\script.py AuthorMail: kotori@cbdd.me ''' class Solution: def boo(self, s, left, right): if (left < 0) or (right >= len(s))...
29.666667
77
0.569663
124
890
4.08871
0.435484
0.063116
0.047337
0.039448
0.086785
0
0
0
0
0
0
0.0592
0.297753
890
30
78
29.666667
0.752
0.24382
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8580ed32aedebf1af35027d068875f6c4fc89997
6,319
py
Python
8-2.machine_learning_ra_pbmc_bulk.py
yxaxaxa/sle_and_hd_single_cell_analysis
139a3f6bd9ee34bec77b7ab3e1ec81a8c716d992
[ "MIT" ]
null
null
null
8-2.machine_learning_ra_pbmc_bulk.py
yxaxaxa/sle_and_hd_single_cell_analysis
139a3f6bd9ee34bec77b7ab3e1ec81a8c716d992
[ "MIT" ]
null
null
null
8-2.machine_learning_ra_pbmc_bulk.py
yxaxaxa/sle_and_hd_single_cell_analysis
139a3f6bd9ee34bec77b7ab3e1ec81a8c716d992
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[5]: import pandas as pd import numpy as np import glob,os from glob import iglob #import scanpy as sc from sklearn.svm import SVC from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import RocCurveDisplay from sklearn.datasets import load_wine from skle...
24.303846
106
0.743789
1,022
6,319
4.440313
0.253425
0.03636
0.021155
0.033054
0.413398
0.342221
0.318422
0.29286
0.254738
0.197444
0
0.039181
0.103339
6,319
259
107
24.397683
0.761737
0.150815
0
0.309524
0
0
0.155202
0.080349
0
0
0
0
0
1
0
false
0
0.246032
0
0.246032
0.119048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8582f63940499d89e8d668d18b7810768499bc46
782
py
Python
python/tests/test_statement.py
vlachvojta/Theatrical-Players-Refactoring-Kata
a26968f52e680ad041cfdd67572256a93e80f14a
[ "MIT" ]
69
2019-08-07T07:48:29.000Z
2022-03-25T13:51:27.000Z
python/tests/test_statement.py
vlachvojta/Theatrical-Players-Refactoring-Kata
a26968f52e680ad041cfdd67572256a93e80f14a
[ "MIT" ]
16
2019-08-08T10:12:59.000Z
2022-03-22T12:42:48.000Z
python/tests/test_statement.py
vlachvojta/Theatrical-Players-Refactoring-Kata
a26968f52e680ad041cfdd67572256a93e80f14a
[ "MIT" ]
69
2019-08-07T13:21:38.000Z
2022-03-31T17:38:21.000Z
import json import pytest from approvaltests import verify from approvaltests.utils import get_adjacent_file from statement import statement def test_example_statement(): with open(get_adjacent_file("invoice.json")) as f: invoice = json.loads(f.read()) with open(get_adjacent_file("plays.json")) as f...
30.076923
64
0.719949
111
782
4.873874
0.315315
0.101664
0.138632
0.140481
0.441774
0.414048
0.303142
0.303142
0.303142
0.18854
0
0
0.172634
782
25
65
31.28
0.836167
0
0
0.210526
0
0
0.089514
0.028133
0
0
0
0
0.052632
1
0.105263
false
0
0.263158
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
858551bc894c37253f0341f789dc0c08a3fb1059
2,702
py
Python
Chapter06/stan_example.py
PacktPublishing/Mastering-Machine-Learning-Algorithms-Second-Edition
706d76fdb91b8c59223879cb236ce2bb6cc7e768
[ "MIT" ]
40
2019-08-23T13:33:12.000Z
2022-02-24T12:48:41.000Z
Chapter06/stan_example.py
PacktPublishing/Mastering-Machine-Learning-Algorithms-Second-Edition
706d76fdb91b8c59223879cb236ce2bb6cc7e768
[ "MIT" ]
null
null
null
Chapter06/stan_example.py
PacktPublishing/Mastering-Machine-Learning-Algorithms-Second-Edition
706d76fdb91b8c59223879cb236ce2bb6cc7e768
[ "MIT" ]
33
2019-10-21T09:47:51.000Z
2022-01-14T17:21:54.000Z
import numpy as np import matplotlib.pyplot as plt import seaborn as sns # Install using pip install pystan # It requires a C/C++ compiler import pystan # Set random seed for reproducibility np.random.seed(1000) # Number of observations nb_samples = 10 if __name__ == "__main__": # Create the observations ...
27.571429
65
0.57883
358
2,702
4.159218
0.27933
0.065816
0.034923
0.040296
0.16454
0.111484
0.111484
0.028207
0
0
0
0.036209
0.304959
2,702
97
66
27.85567
0.756656
0.122872
0
0.059701
0
0
0.335314
0.009338
0
0
0
0
0
1
0
false
0
0.059701
0
0.059701
0.014925
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
858760cd43df7a53576a57dc1a9f62fa326e32a2
7,377
py
Python
api/imgur/imgur_api.py
CharlieCorner/pymage_downloader
d145d2fe8666d4dbbc104bb563fc43415bd8802c
[ "Apache-2.0" ]
null
null
null
api/imgur/imgur_api.py
CharlieCorner/pymage_downloader
d145d2fe8666d4dbbc104bb563fc43415bd8802c
[ "Apache-2.0" ]
9
2018-11-04T23:20:22.000Z
2020-04-30T05:19:07.000Z
api/imgur/imgur_api.py
CharlieCorner/pymage_downloader
d145d2fe8666d4dbbc104bb563fc43415bd8802c
[ "Apache-2.0" ]
null
null
null
import json import logging from datetime import datetime import requests from api.imgur import * from exceptions.pymage_exceptions import NotAbleToDownloadException, ImgurAPICommunicationException from utils.utils import extract_imgur_id_from_url LOGGER = logging.getLogger(__name__) class ImgurAPI: @staticmet...
41.212291
121
0.638471
854
7,377
5.251756
0.24356
0.0466
0.031215
0.042363
0.363657
0.333779
0.278261
0.263545
0.234114
0.234114
0
0.008626
0.277077
7,377
179
122
41.212291
0.832365
0.208893
0
0.223404
0
0
0.153488
0.023135
0
0
0
0
0
1
0.085106
false
0
0.074468
0.010638
0.234043
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85899347be22ba0685e74fcc5e8475db930f138a
2,305
py
Python
debexpo/tests/test_utils.py
jadonk/debexpo
a022160492e40cd02bafc413a3cb009551fd6f8d
[ "MIT" ]
null
null
null
debexpo/tests/test_utils.py
jadonk/debexpo
a022160492e40cd02bafc413a3cb009551fd6f8d
[ "MIT" ]
null
null
null
debexpo/tests/test_utils.py
jadonk/debexpo
a022160492e40cd02bafc413a3cb009551fd6f8d
[ "MIT" ]
2
2017-01-20T23:08:40.000Z
2019-08-13T20:30:00.000Z
# -*- coding: utf-8 -*- # # test_utils.py — Test cases for debexpo.lib.utils # # This file is part of debexpo - https://alioth.debian.org/projects/debexpo/ # # Copyright © 2008 Jonny Lamb <jonny@debian.org> # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and...
33.897059
124
0.695879
304
2,305
5.217105
0.483553
0.055486
0.056747
0.035939
0.108449
0.034048
0
0
0
0
0
0.017496
0.206508
2,305
67
125
34.402985
0.848004
0.608243
0
0
0
0
0.250313
0.105131
0
0
0
0
0.294118
1
0.176471
false
0
0.176471
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85998c2ca2be37ec4bb630ebbb2d3b94c9c6145d
5,732
py
Python
T3 2D - Tau Calculator.py
sohdesune/SUTD-projects
1061bd7e2756dcf4ea6f7e1ed0411f9b761e9bc1
[ "MIT" ]
null
null
null
T3 2D - Tau Calculator.py
sohdesune/SUTD-projects
1061bd7e2756dcf4ea6f7e1ed0411f9b761e9bc1
[ "MIT" ]
null
null
null
T3 2D - Tau Calculator.py
sohdesune/SUTD-projects
1061bd7e2756dcf4ea6f7e1ed0411f9b761e9bc1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 12 00:58:08 2018 @author: sohdesune """ ''' ln|T_w - T| - ln|T_w - T_amb| = -(1/tau) * t 1. Extract raw data for first 20s from csv 2. Plot complicated ln function vs t 3. Compute tau 4. [Remove outliers] 5. Write tau vs T_w to txt ...
37.464052
93
0.539253
913
5,732
3.313253
0.278204
0.008595
0.023802
0.019835
0.13124
0.087273
0.05686
0.05686
0.027107
0.027107
0
0.11977
0.241103
5,732
153
94
37.464052
0.575632
0.087404
0
0.119565
0
0
0.223795
0.017387
0
0
0
0
0
1
0.021739
false
0
0.021739
0
0.054348
0.195652
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
859c6ae60388a87f3a8c1e4b27fc07a9168d7730
1,656
py
Python
boidfunc/endpoint_func.py
travelingnight/boidload
55df24c3f22104fdf67219d2f7286f71df80c2e7
[ "MIT" ]
null
null
null
boidfunc/endpoint_func.py
travelingnight/boidload
55df24c3f22104fdf67219d2f7286f71df80c2e7
[ "MIT" ]
null
null
null
boidfunc/endpoint_func.py
travelingnight/boidload
55df24c3f22104fdf67219d2f7286f71df80c2e7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Allan Millar Various functions related to sockets, ip's, port's etc. """ import sys, random, socket from contextlib import closing def find_port(): # This will only ever be run when the machine has already been # captured, and from the machine itself. HOST = "localhost" ...
36.8
95
0.63285
238
1,656
4.37395
0.592437
0.04611
0.034582
0.038425
0.065322
0.065322
0.065322
0
0
0
0
0.031489
0.290459
1,656
45
96
36.8
0.854468
0.532609
0
0
0
0
0.042838
0
0
0
0
0
0
1
0.083333
false
0.041667
0.083333
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
859f202a2f2f1138c22ae3526261447b406a220f
3,339
py
Python
yt_playlist_downloader.py
lautisilber/youtube_playlist_downloader
95f24f3a059a6efb02a81f352b08186651fd6aae
[ "MIT" ]
null
null
null
yt_playlist_downloader.py
lautisilber/youtube_playlist_downloader
95f24f3a059a6efb02a81f352b08186651fd6aae
[ "MIT" ]
null
null
null
yt_playlist_downloader.py
lautisilber/youtube_playlist_downloader
95f24f3a059a6efb02a81f352b08186651fd6aae
[ "MIT" ]
null
null
null
''' created by Lautaro Silbergleit on 2021 ''' import re from pytube import Playlist, YouTube from tqdm import tqdm from os import makedirs, listdir, remove from os.path import join, exists, isfile import json from time import sleep SENSITIVE_CHARACTERS = ['%', ':'] def main(): PLAYLIST_URL_PATH = 'playlist_urls.j...
31.8
126
0.698712
500
3,339
4.486
0.266
0.049041
0.053054
0.065537
0.119483
0.057958
0.03745
0.03745
0.03745
0.03745
0
0.00548
0.180294
3,339
104
127
32.105769
0.81403
0.116502
0
0.121951
0
0.02439
0.144853
0.008862
0
0
0
0
0.012195
1
0.012195
false
0
0.085366
0
0.109756
0.097561
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85a07ddbba59bb16c26817858612ab97a63c481d
1,344
py
Python
2019/day13.py
kyz/adventofcode
b3dd544624a8fc313ca1fad0d2f02f53bd79ce3d
[ "MIT" ]
null
null
null
2019/day13.py
kyz/adventofcode
b3dd544624a8fc313ca1fad0d2f02f53bd79ce3d
[ "MIT" ]
null
null
null
2019/day13.py
kyz/adventofcode
b3dd544624a8fc313ca1fad0d2f02f53bd79ce3d
[ "MIT" ]
null
null
null
import intcode def breakout_demo(p): cpu = intcode.computer(p) screen = dict() while True: try: x, y, tile = next(cpu), next(cpu), next(cpu) screen[x, y] = tile except StopIteration: return bricks_remaining(screen) def breakout(p): p[0] = 2 cpu =...
30.545455
79
0.530506
202
1,344
3.504951
0.336634
0.059322
0.025424
0.053672
0.234463
0.135593
0
0
0
0
0
0.048458
0.324405
1,344
43
80
31.255814
0.731278
0.122768
0
0.228571
0
0
0.046036
0
0
0
0
0
0
1
0.085714
false
0
0.028571
0.028571
0.2
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85a0e2d9282c759866463e075085469b476b17b8
1,650
py
Python
syncany/calculaters/__init__.py
snower/syncany
32d32907a155618678d5b2335cd8a70192ed1e6f
[ "MIT" ]
5
2018-08-15T13:45:30.000Z
2021-03-18T01:51:47.000Z
syncany/calculaters/__init__.py
snower/syncany
32d32907a155618678d5b2335cd8a70192ed1e6f
[ "MIT" ]
null
null
null
syncany/calculaters/__init__.py
snower/syncany
32d32907a155618678d5b2335cd8a70192ed1e6f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # 18/8/15 # create by: snower from .calculater import Calculater from .builtin import * from .conversion_calculater import ConvCalculater from ..errors import CalculaterUnknownException CALCULATERS = { "": Calculater, "type": TypeCalculater, 'range': RangeCalculater, "add": Add...
27.04918
75
0.667273
144
1,650
7.625
0.722222
0.038251
0
0
0
0
0
0
0
0
0
0.005331
0.204242
1,650
61
76
27.04918
0.830922
0.028485
0
0
0
0
0.111875
0
0
0
0
0
0
1
0.037037
false
0
0.074074
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85a25605545d4e4f832fe9a3447b0a972658df24
1,094
py
Python
sweet/features/gabor.py
charlienewey/penumbra-python
a848adf5628a37339354f5ed5a747b03cc4df9bd
[ "BSD-3-Clause" ]
1
2017-10-16T03:47:51.000Z
2017-10-16T03:47:51.000Z
sweet/features/gabor.py
charlienewey/penumbra-python
a848adf5628a37339354f5ed5a747b03cc4df9bd
[ "BSD-3-Clause" ]
null
null
null
sweet/features/gabor.py
charlienewey/penumbra-python
a848adf5628a37339354f5ed5a747b03cc4df9bd
[ "BSD-3-Clause" ]
null
null
null
import math import skimage.filters def variance_difference(image_1, image_2): def _var_dif(img_1, img_2): return math.sqrt((img_1.var() - img_2.var()) ** 2) if isinstance(image_1, list): var_dif = 0 for i in range(0, len(image_1)): var_dif += _var_dif(image_1[i], image_2[...
27.35
87
0.610603
168
1,094
3.714286
0.220238
0.115385
0.070513
0.076923
0.605769
0.166667
0.166667
0.070513
0.070513
0
0
0.043424
0.263254
1,094
39
88
28.051282
0.730769
0
0
0.233333
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.066667
0.066667
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
85a26fa5e4287545bb2aafe69a4a95320c01eec9
3,530
py
Python
log.py
mpagliaro98/multi-drive-backup-tool
f4f00f59c6fc3f2fb3786b76f807e160794f43c6
[ "MIT" ]
null
null
null
log.py
mpagliaro98/multi-drive-backup-tool
f4f00f59c6fc3f2fb3786b76f807e160794f43c6
[ "MIT" ]
null
null
null
log.py
mpagliaro98/multi-drive-backup-tool
f4f00f59c6fc3f2fb3786b76f807e160794f43c6
[ "MIT" ]
null
null
null
""" log.py Author: Michael Pagliaro Utility functions specific to writing log files. """ from datetime import datetime import sys import traceback import os import util # The log file to be written to whenever log() is called LOG_FILE = None LOGS_DIRECTORY = "logs" def logger(func): """ Creates a decorato...
36.020408
108
0.687535
540
3,530
4.362963
0.303704
0.062394
0.033956
0.017827
0.191426
0.170204
0.147284
0.133277
0.078523
0.067912
0
0.002148
0.208782
3,530
98
109
36.020408
0.841389
0.478754
0
0.142857
0
0
0.092912
0
0
0
0
0
0
1
0.166667
false
0
0.119048
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
85a33483e90e1c90f85785e7d45cc06e684432cd
589
py
Python
CH04/comma_code.py
kaifee-haque/Automate-the-Boring-Stuff-Solutions
5acbf9a397dc4aa000ebd9e8f6d79d0ee5287fef
[ "MIT" ]
null
null
null
CH04/comma_code.py
kaifee-haque/Automate-the-Boring-Stuff-Solutions
5acbf9a397dc4aa000ebd9e8f6d79d0ee5287fef
[ "MIT" ]
null
null
null
CH04/comma_code.py
kaifee-haque/Automate-the-Boring-Stuff-Solutions
5acbf9a397dc4aa000ebd9e8f6d79d0ee5287fef
[ "MIT" ]
null
null
null
#! python3 def comma_string(_list): """Takes a list of items and formats it into a string, separated by commas like plain English. Args: _list: The list of items. Returns: result: The string of list items separated by commas.""" result = "" for i, character in enumerate(...
22.653846
71
0.561969
73
589
4.438356
0.547945
0.067901
0.067901
0.061728
0.104938
0.104938
0
0
0
0
0
0.007371
0.308998
589
25
72
23.56
0.788698
0.349745
0
0
0
0
0.098039
0
0.090909
0
0
0
0
1
0.090909
false
0
0
0
0.090909
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85abdadf7f6975446f101ad9487de12633ee5082
564
py
Python
settings.py
Zeebra38/Schedule_bot
903f7cde755940f226cf8077c2c35550d0291d51
[ "MIT" ]
null
null
null
settings.py
Zeebra38/Schedule_bot
903f7cde755940f226cf8077c2c35550d0291d51
[ "MIT" ]
null
null
null
settings.py
Zeebra38/Schedule_bot
903f7cde755940f226cf8077c2c35550d0291d51
[ "MIT" ]
null
null
null
from DataBase import Schedule weekdays_en = {'Monday': 'Понедельник', 'Tuesday': 'Вторник', 'Wednesday': 'Среда', 'Thursday': 'Четверг', 'Friday': 'Пятница', 'Saturday': 'Суббота', 'Sunday': 'Воскресенье'} weekdays_ru = {'Понеде...
31.333333
39
0.457447
36
564
7.111111
0.583333
0
0
0
0
0
0
0
0
0
0
0
0.386525
564
17
40
33.176471
0.739884
0
0
0
0
0
0.37234
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85b14c976895976f7613389ae5b2fd3070acf95a
789
py
Python
reporting-plugins/add-to-xml-note/edit-note.py
qbicsoftware/etl-scripts
e1cea11b5f55fb218e7d4c8d49bdd3c5fe6c62c6
[ "MIT" ]
2
2018-04-20T15:48:02.000Z
2021-11-30T17:39:28.000Z
reporting-plugins/add-to-xml-note/edit-note.py
qbicsoftware/etl-scripts
e1cea11b5f55fb218e7d4c8d49bdd3c5fe6c62c6
[ "MIT" ]
41
2017-07-19T11:17:26.000Z
2021-09-28T12:10:49.000Z
reporting-plugins/add-to-xml-note/edit-note.py
qbicsoftware/etl-scripts
e1cea11b5f55fb218e7d4c8d49bdd3c5fe6c62c6
[ "MIT" ]
2
2017-04-27T10:32:33.000Z
2018-02-20T09:26:12.000Z
def wrap(element, input): return "<"+element+">"+input+"</"+element+">\n" def process(tr, parameters, tableBuilder): id = parameters.get("id") idtype = len(id.split("/")) #sample if(idtype == 3): entity = tr.getSampleForUpdate(id) #experiment else: entity = tr.getExperimentForUpdate(id) user = ...
25.451613
73
0.6109
98
789
4.897959
0.418367
0.108333
0.0375
0
0
0
0
0
0
0
0
0.001558
0.186312
789
31
74
25.451613
0.746106
0.020279
0
0
0
0
0.132124
0
0
0
0
0
0
1
0.076923
false
0
0
0.038462
0.115385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85b1d6a22c0d0090a75d779c87cff9038cdd496d
994
py
Python
core/main.py
rafael-junio/JustAChip8PythonEmulator
ff9c2d67aeaf4f87ff3b5fd6f0231702587455a7
[ "MIT" ]
null
null
null
core/main.py
rafael-junio/JustAChip8PythonEmulator
ff9c2d67aeaf4f87ff3b5fd6f0231702587455a7
[ "MIT" ]
null
null
null
core/main.py
rafael-junio/JustAChip8PythonEmulator
ff9c2d67aeaf4f87ff3b5fd6f0231702587455a7
[ "MIT" ]
null
null
null
from core.cpu.instructions import Cpu from core.cpu.config.memory_starter import MemoryStarter from core.cpu.config.memory_config import Config from core.reader.file_reader import FileReader class Main: def __init__(self): self.chip8_cpu = Cpu() self.memory_management = MemoryStarter(self.chip8_c...
38.230769
95
0.71328
132
994
5.045455
0.310606
0.108108
0.144144
0.051051
0.342342
0.198198
0
0
0
0
0
0.013906
0.204225
994
25
96
39.76
0.828066
0
0
0
0
0
0
0
0
0
0
0
0
1
0.15
false
0
0.2
0
0.4
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
85b65c485dd500cc66bdbb6dadc0a74ee700639d
2,179
py
Python
Bot/src/unclassified/motivation.py
AryamanSrii/Mecha-Karen
4a5c7318f8c458495eee72a13be5db8a0113ed28
[ "Apache-2.0" ]
181
2021-05-26T17:37:40.000Z
2022-02-26T08:36:07.000Z
Bot/src/unclassified/motivation.py
AryamanSrii/Mecha-Karen
4a5c7318f8c458495eee72a13be5db8a0113ed28
[ "Apache-2.0" ]
24
2021-05-14T19:47:34.000Z
2021-09-06T17:16:17.000Z
Bot/src/unclassified/motivation.py
AryamanSrii/Mecha-Karen
4a5c7318f8c458495eee72a13be5db8a0113ed28
[ "Apache-2.0" ]
16
2021-07-02T09:40:56.000Z
2022-01-21T10:07:08.000Z
# !/usr/bin/python """ Copyright ©️: 2020 Seniatical / _-*™#7519 License: Apache 2.0 A permissive license whose main conditions require preservation of copyright and license notices. Contributors provide an express grant of patent rights. Licensed works, modifications, and larger works may be distributed under ...
35.721311
114
0.658559
275
2,179
5.185455
0.501818
0.02805
0.042076
0.046283
0.101683
0.076438
0.058906
0.058906
0.058906
0
0
0.013789
0.234511
2,179
60
115
36.316667
0.838729
0.267554
0
0.052632
0
0
0.079188
0.016361
0
0
0
0
0
1
0.052632
false
0
0.210526
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85b702a0495ec20a4916f8eef85a4c0805c48829
1,882
py
Python
curami/analysis/pair_matching_word_base.py
EBIBioSamples/curami-v2
671ec5f1d48b866c6ccb24fcddfb80610c377e07
[ "Apache-2.0" ]
null
null
null
curami/analysis/pair_matching_word_base.py
EBIBioSamples/curami-v2
671ec5f1d48b866c6ccb24fcddfb80610c377e07
[ "Apache-2.0" ]
2
2020-07-02T13:56:03.000Z
2021-06-01T23:51:49.000Z
curami/analysis/pair_matching_word_base.py
EBIBioSamples/curami-v2
671ec5f1d48b866c6ccb24fcddfb80610c377e07
[ "Apache-2.0" ]
null
null
null
import pandas as pd from nltk.stem import LancasterStemmer, WordNetLemmatizer from nltk.tokenize import sent_tokenize, word_tokenize from curami.commons import file_utils ''' Match pair of attributes for their base form similarity Generates matched attribute file by measuring the syntactic similarity between the base...
37.64
115
0.655154
216
1,882
5.481481
0.328704
0.129223
0.016892
0.023649
0.374155
0.327703
0.327703
0.327703
0.327703
0.27027
0
0.018284
0.244421
1,882
49
116
38.408163
0.814346
0.007439
0
0.2
0
0
0.096833
0
0
0
0
0
0
1
0.033333
false
0
0.133333
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
85b977a716a0ab42b9f5ac5d7528fcff4dd7ef93
7,154
py
Python
knee/zmethod.py
mariolpantunes/knee
fa4678a55f1f2d161f982b8214541cf8f392444d
[ "MIT" ]
2
2021-09-03T02:59:10.000Z
2021-12-28T16:32:28.000Z
knee/zmethod.py
mariolpantunes/knee
fa4678a55f1f2d161f982b8214541cf8f392444d
[ "MIT" ]
9
2021-06-05T08:10:30.000Z
2022-01-05T20:50:32.000Z
knee/zmethod.py
mariolpantunes/knee
fa4678a55f1f2d161f982b8214541cf8f392444d
[ "MIT" ]
4
2020-12-04T07:04:34.000Z
2021-09-03T02:59:19.000Z
# coding: utf-8 __author__ = 'Tyler Estro' __version__ = '0.1' __email__ = 'testro@cs.stonybrook.edu' __status__ = 'Development' import numpy as np import logging import uts.gradient as grad from uts.zscore import zscore_array logger = logging.getLogger(__name__) def map_index(a:np.ndarray, b:np.ndarray) -> np.n...
41.836257
146
0.588063
1,014
7,154
3.994083
0.205128
0.057037
0.023704
0.018765
0.393333
0.360494
0.344198
0.344198
0.328395
0.30716
0
0.025069
0.286273
7,154
170
147
42.082353
0.768116
0.331004
0
0.223529
0
0
0.034207
0.005196
0
0
0
0
0
1
0.035294
false
0
0.047059
0
0.152941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85b9a2ded21bb7e26efb4522b699d759a2fe4d28
1,496
py
Python
services/logo_finder_service.py
fedsp/site2data
5e049c3b96875283bf854ece6796abfd44690954
[ "MIT" ]
null
null
null
services/logo_finder_service.py
fedsp/site2data
5e049c3b96875283bf854ece6796abfd44690954
[ "MIT" ]
null
null
null
services/logo_finder_service.py
fedsp/site2data
5e049c3b96875283bf854ece6796abfd44690954
[ "MIT" ]
null
null
null
from config import settings import re class LogoFinderService(): def __init__(self,soup_obj,website_url): self.soup_obj = soup_obj self.website_url = website_url self.scrapping_settings = settings['ScrappingSettings'] def find_logo(self) -> str: '''returns a list of scrapped lo...
42.742857
106
0.600936
169
1,496
5.12426
0.402367
0.057737
0.038106
0.053118
0.168591
0.168591
0
0
0
0
0
0.003865
0.308155
1,496
35
107
42.742857
0.83285
0.028075
0
0.064516
0
0
0.162181
0.036577
0
0
0
0
0
1
0.064516
false
0
0.064516
0
0.225806
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85bbef976d587c77a873695fe486aefcf8beff7e
796
py
Python
spinbot/gh/util.py
rantav/spinnaker
98fb0c77db8fc723fd705ae6b663a8cbbd348fdb
[ "Apache-2.0" ]
null
null
null
spinbot/gh/util.py
rantav/spinnaker
98fb0c77db8fc723fd705ae6b663a8cbbd348fdb
[ "Apache-2.0" ]
null
null
null
spinbot/gh/util.py
rantav/spinnaker
98fb0c77db8fc723fd705ae6b663a8cbbd348fdb
[ "Apache-2.0" ]
1
2018-05-27T01:49:01.000Z
2018-05-27T01:49:01.000Z
import github def IssueRepo(issue): return '/'.join(issue.url.split('/')[-4:-2]) def HasLabel(issue, name): label = next((l for l in issue.get_labels() if l.name == name), None) return label is not None def AddLabel(gh, issue, name, create=True): if HasLabel(issue, name): return label = ...
26.533333
79
0.614322
108
796
4.481481
0.435185
0.07438
0.070248
0
0
0
0
0
0
0
0
0.00339
0.258794
796
29
80
27.448276
0.816949
0
0
0.083333
0
0
0.100503
0
0
0
0
0
0
1
0.166667
false
0
0.041667
0.041667
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
85bfbd13cd57659c834b764ccdc661565f83c01a
3,820
py
Python
qp/composite.py
meshch/qp
4f19841769c644ffff3eff297cacf6aeb2ac2cbc
[ "MIT" ]
4
2016-12-06T17:51:45.000Z
2019-11-15T12:27:24.000Z
qp/composite.py
meshch/qp
4f19841769c644ffff3eff297cacf6aeb2ac2cbc
[ "MIT" ]
74
2016-11-15T22:11:56.000Z
2022-03-30T15:38:03.000Z
qp/composite.py
meshch/qp
4f19841769c644ffff3eff297cacf6aeb2ac2cbc
[ "MIT" ]
7
2017-04-04T19:46:21.000Z
2021-05-19T06:02:07.000Z
import numpy as np import scipy as sp from scipy import stats as sps import scipy.optimize as op import qp class composite(object): def __init__(self, components, vb=True): """ A probability distribution that is a linear combination of scipy.stats.rv_continuous objects Parameters ...
29.612403
127
0.548953
458
3,820
4.534935
0.28821
0.046221
0.065479
0.064035
0.341358
0.276842
0.222918
0.222918
0.222918
0.222918
0
0.006342
0.339529
3,820
128
128
29.84375
0.816885
0.353403
0
0.065217
0
0
0.021425
0
0
0
0
0
0
1
0.130435
false
0
0.108696
0.021739
0.369565
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85bfeb01c7c84ab97b4d582a2ab7af8b0450f27b
1,628
py
Python
test/PR_test/unit_test/layers/tensorflow/test_reflection_padding_2d.py
DwijayDS/fastestimator
9b288cb2bd870f971ec4cee09d0b3205e1316a94
[ "Apache-2.0" ]
57
2019-05-21T21:29:26.000Z
2022-02-23T05:55:21.000Z
test/PR_test/unit_test/layers/tensorflow/test_reflection_padding_2d.py
vbvg2008/fastestimator
6061a4fbbeb62a2194ef82ba8017f651710d0c65
[ "Apache-2.0" ]
93
2019-05-23T18:36:07.000Z
2022-03-23T17:15:55.000Z
test/PR_test/unit_test/layers/tensorflow/test_reflection_padding_2d.py
vbvg2008/fastestimator
6061a4fbbeb62a2194ef82ba8017f651710d0c65
[ "Apache-2.0" ]
47
2019-05-09T15:41:37.000Z
2022-03-26T17:00:08.000Z
# Copyright 2020 The FastEstimator Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
41.74359
109
0.59828
231
1,628
4.151515
0.467532
0.062565
0.012513
0.016684
0.289885
0.183525
0.10219
0.10219
0.10219
0.10219
0
0.047148
0.19226
1,628
38
110
42.842105
0.682129
0.407248
0
0.222222
0
0
0
0
0
0
0
0
0.111111
1
0.166667
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
85c403c65750bffb34aefa6e46026cbba51be791
533
py
Python
Aulas python downloads/ex064.py
Osmair-riamso/AulasPython
647f51182a46f34af6d9b5cff8511182c6cad4a4
[ "MIT" ]
null
null
null
Aulas python downloads/ex064.py
Osmair-riamso/AulasPython
647f51182a46f34af6d9b5cff8511182c6cad4a4
[ "MIT" ]
null
null
null
Aulas python downloads/ex064.py
Osmair-riamso/AulasPython
647f51182a46f34af6d9b5cff8511182c6cad4a4
[ "MIT" ]
null
null
null
'''Crie um programa que leia vários números inteiros pelo teclado. O programa só vai parar quando o usuário digitar o valor 999, que é a condição de parada. No final, mostre quantos números foram digitados e qual foi a soma entre eles (desconsiderando o flag). ''' print("Descubra a senha!") n = cont = soma = 0 n = in...
29.611111
85
0.677298
86
533
4.197674
0.651163
0.027701
0.049862
0.083102
0.127424
0.127424
0
0
0
0
0
0.019139
0.21576
533
17
86
31.352941
0.844498
0.482176
0
0.25
0
0
0.41573
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a40f6ef49b65b50190c5c179cd273379d51e94de
1,285
py
Python
test/conftest.py
starcraftman/new-awesome
59f779e2aa0b1aab2eca2aaf351f789f2833c4a9
[ "BSD-3-Clause" ]
6
2016-03-09T04:17:42.000Z
2020-03-02T18:46:28.000Z
test/conftest.py
starcraftman/new-awesome
59f779e2aa0b1aab2eca2aaf351f789f2833c4a9
[ "BSD-3-Clause" ]
null
null
null
test/conftest.py
starcraftman/new-awesome
59f779e2aa0b1aab2eca2aaf351f789f2833c4a9
[ "BSD-3-Clause" ]
null
null
null
""" Global fixtures to be reused. """ from __future__ import absolute_import import sys import mock import pytest import test.common as tc @pytest.fixture(scope='session', autouse=True) def setup_test_bed(request): """ Fixture sets up the testing environment for this web application. Session scope, exec...
21.779661
69
0.659144
170
1,285
4.764706
0.429412
0.034568
0.066667
0.051852
0.303704
0.264198
0.264198
0.264198
0.264198
0.264198
0
0.004073
0.235798
1,285
58
70
22.155172
0.820774
0.352529
0
0.32
0
0
0.095425
0.027451
0
0
0
0
0
1
0.12
false
0
0.2
0
0.32
0.16
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4109a9f5fcfaf5a3730a40e38d6e3b2c4713fea
1,167
py
Python
vizsgaremek/test_con_feed_list.py
boat83/conduit
eaef1c9f34dc7909f42022237815b37405e1885c
[ "MIT" ]
1
2021-08-16T15:37:15.000Z
2021-08-16T15:37:15.000Z
vizsgaremek/test_con_feed_list.py
boat83/conduit
eaef1c9f34dc7909f42022237815b37405e1885c
[ "MIT" ]
null
null
null
vizsgaremek/test_con_feed_list.py
boat83/conduit
eaef1c9f34dc7909f42022237815b37405e1885c
[ "MIT" ]
null
null
null
def test_con_feed_list(): from selenium import webdriver import time from selenium.webdriver.chrome.options import Options from webdriver_manager.chrome import ChromeDriverManager opt = Options() opt.headless = True driver = webdriver.Chrome(ChromeDriverManager().install(), options=opt) ...
33.342857
110
0.689803
153
1,167
5.045752
0.522876
0.064767
0.064767
0.098446
0.186529
0.124352
0.124352
0.124352
0
0
0
0.012346
0.167095
1,167
34
111
34.323529
0.781893
0.055698
0
0
0
0
0.221311
0.15847
0
0
0
0
0
1
0.041667
false
0.041667
0.166667
0
0.208333
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a41ba8d2cbc5f6d76cae7b7cd03a312bdb6d6150
1,046
py
Python
payment/migrations/0010_auto__del_field_paymentpackage_name.py
rif/conference-registration
2e83e98d68eff5c8ab6ae3a79db910e2e81c58ae
[ "BSD-3-Clause" ]
null
null
null
payment/migrations/0010_auto__del_field_paymentpackage_name.py
rif/conference-registration
2e83e98d68eff5c8ab6ae3a79db910e2e81c58ae
[ "BSD-3-Clause" ]
null
null
null
payment/migrations/0010_auto__del_field_paymentpackage_name.py
rif/conference-registration
2e83e98d68eff5c8ab6ae3a79db910e2e81c58ae
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'PaymentPackage.name' db.delete_column('payment_paymentpackage', 'name') def backwa...
32.6875
117
0.624283
110
1,046
5.872727
0.609091
0.06192
0.086687
0.123839
0
0
0
0
0
0
0
0.003722
0.229446
1,046
31
118
33.741935
0.797767
0.122371
0
0
0
0
0.40919
0.222101
0
0
0
0
0
1
0.105263
false
0
0.210526
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a420b5f8c2547bd492b541121354ca50d503baab
10,273
py
Python
code/palmnet/core/layer_replacer.py
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
[ "MIT" ]
1
2021-07-15T07:05:18.000Z
2021-07-15T07:05:18.000Z
code/palmnet/core/layer_replacer.py
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
[ "MIT" ]
2
2021-07-15T06:12:47.000Z
2021-07-16T10:05:36.000Z
code/palmnet/core/layer_replacer.py
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
[ "MIT" ]
null
null
null
from abc import abstractmethod, ABCMeta import pickle import keras # from self.keras_module.models import Model # from self.keras_module.layers import InputLayer # from self.keras_module.layers import Dense, Conv2D from palmnet.core.palminizable import Palminizable from palmnet.utils import get_idx_last_layer_of_class...
44.280172
180
0.682566
1,332
10,273
4.943694
0.148649
0.053303
0.051936
0.043432
0.439028
0.35262
0.276689
0.236598
0.179347
0.163857
0
0.00255
0.23664
10,273
231
181
44.471861
0.837159
0.166164
0
0.148936
0
0
0.050494
0
0
0
0
0
0
1
0.12766
false
0.028369
0.056738
0.021277
0.255319
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a422fb3416879c75a86139388d6af9e719ed842b
1,469
py
Python
kivyoav/emotion_feedback.py
yglazner/guess_the_bless
99176759b3f3fb6a4fe0b4d32f70be582a0640af
[ "MIT" ]
1
2017-07-18T10:25:43.000Z
2017-07-18T10:25:43.000Z
kivyoav/emotion_feedback.py
yglazner/guess_the_bless
99176759b3f3fb6a4fe0b4d32f70be582a0640af
[ "MIT" ]
null
null
null
kivyoav/emotion_feedback.py
yglazner/guess_the_bless
99176759b3f3fb6a4fe0b4d32f70be582a0640af
[ "MIT" ]
null
null
null
''' Created on Jun 29, 2017 @author: yglazner ''' from kivy.uix.widget import Widget from kivy.properties import * from kivy.uix.boxlayout import BoxLayout from kivy.base import runTouchApp from kivy.uix.slider import Slider Slider class EmotionFeedBack(Widget): ''' EmotionFeedBack - a widget that lets the use...
28.25
92
0.607897
176
1,469
4.9375
0.414773
0.04603
0.037975
0.034522
0.085155
0.085155
0
0
0
0
0
0.013121
0.273656
1,469
52
93
28.25
0.801312
0.095303
0
0
0
0
0.040738
0
0
0
0
0
0
1
0.125
false
0
0.15625
0.03125
0.5
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4233cffbf5beccc2cc2ebc7c2720114c2cce820
1,793
py
Python
solutions/day12/test_lib.py
benjaminarjun/AdventOfCode2020
b9ca2f5c6121c401eb79911dbbbd0d3188f38034
[ "MIT" ]
1
2020-12-04T17:57:24.000Z
2020-12-04T17:57:24.000Z
solutions/day12/test_lib.py
benjaminarjun/AdventOfCode2020
b9ca2f5c6121c401eb79911dbbbd0d3188f38034
[ "MIT" ]
null
null
null
solutions/day12/test_lib.py
benjaminarjun/AdventOfCode2020
b9ca2f5c6121c401eb79911dbbbd0d3188f38034
[ "MIT" ]
null
null
null
import unittest from .results import NavInstruction, Position, Ship class TestNavInstruction(unittest.TestCase): def test_nav_instruction_from_str(self): instr_str = 'F10' instr = NavInstruction.from_str(instr_str) self.assertEqual('F', instr.direction) self.assertEqual(10, instr....
24.902778
53
0.597323
207
1,793
5.014493
0.318841
0.130058
0.066474
0.023121
0.196532
0.090559
0.090559
0
0
0
0
0.033858
0.29169
1,793
71
54
25.253521
0.783465
0
0
0.115385
0
0
0.010597
0
0
0
0
0
0.173077
1
0.173077
false
0
0.038462
0.038462
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4239e95f4d189e6430c6fd1dbf406378ad3126c
4,507
py
Python
scripts used in article/clustering_evaluation.py
BoyanZhou/starstr
03280b0b280ef5be351b7ff285e90541baed3d63
[ "Apache-2.0" ]
null
null
null
scripts used in article/clustering_evaluation.py
BoyanZhou/starstr
03280b0b280ef5be351b7ff285e90541baed3d63
[ "Apache-2.0" ]
1
2018-09-06T16:50:46.000Z
2018-09-06T16:50:46.000Z
scripts used in article/clustering_evaluation.py
BoyanZhou/starstr
03280b0b280ef5be351b7ff285e90541baed3d63
[ "Apache-2.0" ]
null
null
null
import sys import numpy as np A = int(sys.argv[2]) # start of the tree threshold B = int(sys.argv[3]) # end of the tree threshold N = int(sys.argv[1]) # repeat number now threshold_list = [i/1000.0 for i in range(A, B)] # compare cluster result with the nwk_tree for i in threshold_list: branch_length_thre...
38.194915
103
0.652319
658
4,507
4.170213
0.165654
0.033163
0.080175
0.026239
0.351312
0.252915
0.21137
0.135569
0.112974
0.112974
0
0.014943
0.242734
4,507
117
104
38.521368
0.789042
0.127579
0
0.129032
0
0
0.055201
0.041145
0
0
0
0
0
1
0
false
0
0.021505
0
0.021505
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a423ebdcfa4aac7d6ec8a3988d72013b56326556
236
py
Python
celery/worker_a/__init__.py
tim-barnes/lang-python
3dbbc7f38cec598e32bd1a06827246dcab3a0ced
[ "MIT" ]
1
2021-06-16T23:43:27.000Z
2021-06-16T23:43:27.000Z
celery/worker_a/__init__.py
tim-barnes/lang-python
3dbbc7f38cec598e32bd1a06827246dcab3a0ced
[ "MIT" ]
null
null
null
celery/worker_a/__init__.py
tim-barnes/lang-python
3dbbc7f38cec598e32bd1a06827246dcab3a0ced
[ "MIT" ]
null
null
null
from celery import Celery app = Celery(__name__, broker="redis://redis//") # app.conf.task_routes = { # 'worker_a.pulse': {'queue': 'worker_a'} # } @app.task def pulse(i): print(f"Pulse: {i} ({__name__})") return i + 1000
19.666667
48
0.618644
33
236
4.090909
0.606061
0.103704
0
0
0
0
0
0
0
0
0
0.020619
0.177966
236
11
49
21.454545
0.675258
0.29661
0
0
0
0
0.234568
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4254aa2b6ed63ccd6175aec14c799cb09949454
960
py
Python
main.py
MobinNesari81/Syquation_Solver
9bfa5963d6ecdf0a529603daaee56900dc4b60a9
[ "MIT" ]
1
2022-01-11T13:39:26.000Z
2022-01-11T13:39:26.000Z
main.py
MobinNesari81/Syquation_Solver
9bfa5963d6ecdf0a529603daaee56900dc4b60a9
[ "MIT" ]
null
null
null
main.py
MobinNesari81/Syquation_Solver
9bfa5963d6ecdf0a529603daaee56900dc4b60a9
[ "MIT" ]
null
null
null
# Main file which solve equation import processor coefficient_rows = int(input("Please enter coefficient matrix row numbers: ")) coefficient_columns = int(input("Please enter coefficient matrix column numbers: ")) coefficient_matrix = [[] for _ in range(coefficient_rows)] print("Please enter coefficients in one row the...
48
84
0.760417
132
960
5.371212
0.325758
0.093089
0.101551
0.124118
0.299013
0.228491
0
0
0
0
0
0.007101
0.119792
960
19
85
50.526316
0.831953
0.03125
0
0.111111
0
0
0.275862
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a42671651e3b71dc6f8347faea546f685c85f61f
9,000
py
Python
falcon_heavy/core/types/formats.py
NotJustAToy/falcon-heavy
2e96f649daafc2707a01e38f403f1ce4268f4629
[ "Apache-2.0" ]
21
2020-01-02T10:44:42.000Z
2022-02-11T14:27:05.000Z
falcon_heavy/core/types/formats.py
NotJustAToy/falcon-heavy
2e96f649daafc2707a01e38f403f1ce4268f4629
[ "Apache-2.0" ]
2
2020-02-13T21:06:56.000Z
2020-09-27T16:47:25.000Z
falcon_heavy/core/types/formats.py
NotJustAToy/falcon-heavy
2e96f649daafc2707a01e38f403f1ce4268f4629
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 Not Just A Toy Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
26.162791
111
0.613333
1,024
9,000
5.290039
0.203125
0.03046
0.018276
0.047997
0.602178
0.55455
0.539782
0.532583
0.492893
0.477386
0
0.028502
0.267111
9,000
343
112
26.239067
0.792753
0.106111
0
0.502392
0
0.004785
0.082137
0.006047
0
0
0
0
0
1
0.07177
false
0
0.086124
0.004785
0.416268
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4292f81184da60467cc60d71bcf08055c6aed74
1,008
py
Python
Desafio086 & 87 - Matriz 3x3.py
tmoura1981/Python_Exercicios
c873e2758dfd9058d2c2d83b5b38b522c6264029
[ "MIT" ]
1
2021-11-25T11:19:59.000Z
2021-11-25T11:19:59.000Z
Desafio086 & 87 - Matriz 3x3.py
tmoura1981/Python_Exercicios
c873e2758dfd9058d2c2d83b5b38b522c6264029
[ "MIT" ]
null
null
null
Desafio086 & 87 - Matriz 3x3.py
tmoura1981/Python_Exercicios
c873e2758dfd9058d2c2d83b5b38b522c6264029
[ "MIT" ]
null
null
null
valores = [[], [], [], [], [], [], [], [], []] num = linha = coluna = pos = soma = soma_ter_col = maior = 0 titulo = 'Matriz 3x3' print(titulo.center(50, '=')) for v in range(9): # 9 valores da matriz num = int(input(f'Linha[{linha}] Coluna[{coluna}]: ')) valores[pos].append(num) po...
37.333333
91
0.529762
147
1,008
3.578231
0.387755
0.068441
0.057034
0.057034
0.079848
0.079848
0
0
0
0
0
0.051913
0.27381
1,008
26
92
38.769231
0.666667
0.118056
0
0.076923
0
0
0.371461
0
0
0
0
0
0
1
0
false
0
0
0
0
0.346154
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a42c0be3c130f39da6d363c285104e88b9933080
911
py
Python
dags/word_count_dag.py
firasesbai/airflow-spark-jobs
1925a20c212185843fcfb4c9349419bf8c418662
[ "Apache-2.0" ]
null
null
null
dags/word_count_dag.py
firasesbai/airflow-spark-jobs
1925a20c212185843fcfb4c9349419bf8c418662
[ "Apache-2.0" ]
null
null
null
dags/word_count_dag.py
firasesbai/airflow-spark-jobs
1925a20c212185843fcfb4c9349419bf8c418662
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from airflow.models import DAG from airflow.operators.dummy_operator import DummyOperator from airflow.providers.apache.spark.operators.spark_submit import SparkSubmitOperator spark_master = "spark://spark-master:7077" input_path = "/usr/local/spark/data/ebook" now = datetime.now() wit...
27.606061
85
0.706915
119
911
5.226891
0.436975
0.07074
0.062701
0.054662
0
0
0
0
0
0
0
0.006579
0.165752
911
32
86
28.46875
0.811842
0
0
0
0
0
0.206367
0.12404
0
0
0
0
0
1
0
false
0
0.16
0
0.16
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a42c53b95de25e5c3963b4ce490f26df00cbe658
1,446
py
Python
faker/providers/phone_number/en_NG/__init__.py
djunehor/faker-1
e478c437fe3c05b02b7deffa43252f622ea45732
[ "MIT" ]
null
null
null
faker/providers/phone_number/en_NG/__init__.py
djunehor/faker-1
e478c437fe3c05b02b7deffa43252f622ea45732
[ "MIT" ]
null
null
null
faker/providers/phone_number/en_NG/__init__.py
djunehor/faker-1
e478c437fe3c05b02b7deffa43252f622ea45732
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from .. import Provider as PhoneNumberProvider class Provider(PhoneNumberProvider): formats = ( # National & Mobile dialing '0{{area_code}}#######', '0{{area_code}} ### ####', '0{{area_code}}-###-####', # International ...
24.508475
68
0.45574
135
1,446
4.711111
0.644444
0.125786
0.103774
0.110063
0.146226
0.146226
0.103774
0.103774
0.103774
0.103774
0
0.136033
0.334025
1,446
58
69
24.931034
0.524403
0.126556
0
0.15
0
0
0.26261
0.115292
0
0
0
0
0
1
0.05
false
0
0.05
0.025
0.225
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a42cb12c2f9525fc1e01261772b1444db88cd2dc
3,794
py
Python
EnemyStats.py
rohwid/rpg-stats-generator
5a1fcdf713ec5d0af3cbf6dce3bcb21e6e363519
[ "MIT" ]
null
null
null
EnemyStats.py
rohwid/rpg-stats-generator
5a1fcdf713ec5d0af3cbf6dce3bcb21e6e363519
[ "MIT" ]
null
null
null
EnemyStats.py
rohwid/rpg-stats-generator
5a1fcdf713ec5d0af3cbf6dce3bcb21e6e363519
[ "MIT" ]
null
null
null
import datetime """ STATS GENERATOR FOR TURN BASED OR ACTION RPG (ROLE PLAYING GAMES) By: ROHMAN WIDIYANTO GitHub: http://github.com/rohwid/ All component or object defined separately, here's the reason: - Levels: Because sometimes the characters won't start from 1st level. - Magic Point: Because sometimes t...
28.961832
92
0.655245
485
3,794
4.950515
0.34433
0.049979
0.049979
0.028322
0.217826
0.188671
0.167847
0.121616
0.121616
0.121616
0
0.019271
0.24776
3,794
130
93
29.184615
0.822004
0.122562
0
0.269231
0
0
0.136089
0
0
0
0
0
0
1
0.019231
false
0
0.038462
0
0.057692
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a42e5d68ea357f4b16c9eced0c8eecd76665797a
590
py
Python
experiments/spanmaskhistogram/report_writer.py
WojciechMula/parsing-int-series
f0a45c8b1251018e52dac9ebf1d98e8dfb705755
[ "BSD-2-Clause" ]
19
2018-04-20T06:51:42.000Z
2022-02-24T02:12:00.000Z
experiments/spanmaskhistogram/report_writer.py
WojciechMula/parsing-int-series
f0a45c8b1251018e52dac9ebf1d98e8dfb705755
[ "BSD-2-Clause" ]
2
2018-04-20T09:53:37.000Z
2018-04-27T19:01:16.000Z
experiments/spanmaskhistogram/report_writer.py
WojciechMula/parsing-int-series
f0a45c8b1251018e52dac9ebf1d98e8dfb705755
[ "BSD-2-Clause" ]
3
2019-02-25T19:26:51.000Z
2020-11-04T00:50:42.000Z
class RestWriter(object): def __init__(self, file, report): self.file = file self.report = report def write(self, restsection): assert len(restsection) >= 1 for title, table in self.report: self.write_header(title, restsection[0], 80) self.file.write...
23.6
56
0.537288
76
590
4.092105
0.355263
0.128617
0.067524
0.051447
0.064309
0
0
0
0
0
0
0.014851
0.315254
590
24
57
24.583333
0.754951
0
0
0.176471
0
0
0.020374
0
0
0
0
0
0.058824
1
0.176471
false
0
0
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a42e667bd6ebb350e9c0d59466ded20c39b8c4ae
9,005
py
Python
pywgrib2_xr/dataset.py
yt87/pywgrib2_xr
5c49eaaee12948ecc2f2aff526a9e51e6d4d98b5
[ "0BSD" ]
11
2021-01-05T03:26:51.000Z
2022-02-15T02:44:39.000Z
pywgrib2_xr/dataset.py
yt87/pywgrib2_xr
5c49eaaee12948ecc2f2aff526a9e51e6d4d98b5
[ "0BSD" ]
2
2020-12-18T02:35:08.000Z
2021-07-11T13:01:53.000Z
pywgrib2_xr/dataset.py
yt87/pywgrib2_xr
5c49eaaee12948ecc2f2aff526a9e51e6d4d98b5
[ "0BSD" ]
null
null
null
from collections import defaultdict from functools import partial import logging from typing import ( Any, Callable, DefaultDict, Dict, List, NamedTuple, Sequence, Tuple, Union, cast, ) try: from numpy.typing import ArrayLike except ImportError: ArrayLike = Any import n...
33.726592
88
0.549139
963
9,005
4.981308
0.228453
0.0271
0.013759
0.011882
0.193246
0.144882
0.133625
0.102564
0.035439
0.035439
0
0.003363
0.339589
9,005
266
89
33.853383
0.803262
0.113937
0
0.17734
0
0
0.052293
0
0
0
0
0.003759
0.009852
1
0.034483
false
0
0.059113
0.004926
0.147783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a42fe444580c5e09c79668e45d2c77ef6d352594
1,473
py
Python
stog/simple_predict.py
mg9/stog
49d0d1ebc1ae666f79e43466fbdc33b1b12f1adf
[ "MIT" ]
null
null
null
stog/simple_predict.py
mg9/stog
49d0d1ebc1ae666f79e43466fbdc33b1b12f1adf
[ "MIT" ]
null
null
null
stog/simple_predict.py
mg9/stog
49d0d1ebc1ae666f79e43466fbdc33b1b12f1adf
[ "MIT" ]
null
null
null
import h5py,os from transformers import T5Tokenizer, T5Model, T5ForConditionalGeneration if __name__ == "__main__": snt_0 = "amrgraphize: establish model in Industrial Innovation </s>" snt_1 = "amrgraphize: raise standard to in excess of CITY_1 's 1 magnitude could leave authority with some breathing spa...
32.021739
181
0.699932
195
1,473
5.107692
0.492308
0.044177
0.02008
0
0
0
0
0
0
0
0
0.036942
0.209776
1,473
45
182
32.733333
0.818729
0.086897
0
0
0
0.12
0.477085
0.018032
0
0
0
0
0
1
0
false
0
0.08
0
0.08
0.16
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a431ecb8dce6d4bde6d87983adda3ad4f20a538e
23,627
py
Python
Experiments/evaluate_CAPe.py
Lorenzo-Perini/Active_PU_Learning
83b608993586420bb84d1b4e6fc6c7cb561a382f
[ "Apache-2.0" ]
10
2020-07-22T09:16:55.000Z
2022-01-16T12:23:44.000Z
Experiments/evaluate_CAPe.py
Lorenzo-Perini/Active_PU_Learning
83b608993586420bb84d1b4e6fc6c7cb561a382f
[ "Apache-2.0" ]
null
null
null
Experiments/evaluate_CAPe.py
Lorenzo-Perini/Active_PU_Learning
83b608993586420bb84d1b4e6fc6c7cb561a382f
[ "Apache-2.0" ]
1
2021-06-28T06:37:54.000Z
2021-06-28T06:37:54.000Z
import numpy as np import pandas as pd from multiprocessing import Pool, freeze_support, cpu_count from sklearn.metrics import confusion_matrix from sklearn.preprocessing import MinMaxScaler from sklearn.neighbors import KernelDensity from sklearn.model_selection import StratifiedKFold from anomatools.models import SSD...
54.946512
129
0.629365
3,409
23,627
4.198005
0.105603
0.016351
0.020124
0.018587
0.632031
0.602124
0.562784
0.54252
0.518552
0.498009
0
0.02498
0.274813
23,627
429
130
55.074592
0.81026
0.450629
0
0.175879
0
0
0.022092
0
0
0
0
0
0
1
0.035176
false
0
0.080402
0
0.150754
0.01005
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4331a72af0d0109165afb03b5f32236c6ec4e77
28,470
py
Python
__main__.py
wbrxcorp/genpack
12cbbbf8306cb825c65d76ef55e85d24f1db0f90
[ "MIT" ]
null
null
null
__main__.py
wbrxcorp/genpack
12cbbbf8306cb825c65d76ef55e85d24f1db0f90
[ "MIT" ]
null
null
null
__main__.py
wbrxcorp/genpack
12cbbbf8306cb825c65d76ef55e85d24f1db0f90
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Copyright (c) 2021 Walbrix Corporation # https://github.com/wbrxcorp/genpack/blob/main/LICENSE import os,re,argparse,subprocess,glob,json,uuid import importlib.resources import urllib.request import initlib,init,util import qemu from sudo import sudo,Tee BASE_URL="http://ftp.iij.ad.jp/pub/linux/...
47.292359
216
0.638778
3,967
28,470
4.398286
0.128309
0.04436
0.048143
0.035591
0.414718
0.344968
0.276192
0.185809
0.136463
0.092503
0
0.005224
0.19993
28,470
601
217
47.371048
0.760778
0.018792
0
0.127049
0
0.004098
0.171925
0.025099
0
0
0
0
0
1
0.067623
false
0.012295
0.014344
0.006148
0.131148
0.022541
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a439fafd82d5aa8cd5f33e7668e9b80a3b2590de
740
py
Python
Arduino.py
dvcsciencealliance/vertical-farming-raspberry-pi
58ca9d9677b9eb9251ff5b07cef3bd34bd11a178
[ "MIT" ]
5
2019-05-13T21:46:01.000Z
2021-11-15T10:30:55.000Z
Arduino.py
dvcsciencealliance/vertical-farming-raspberry-pi
58ca9d9677b9eb9251ff5b07cef3bd34bd11a178
[ "MIT" ]
null
null
null
Arduino.py
dvcsciencealliance/vertical-farming-raspberry-pi
58ca9d9677b9eb9251ff5b07cef3bd34bd11a178
[ "MIT" ]
3
2017-05-04T21:17:43.000Z
2018-01-29T20:34:57.000Z
import time import serial from Sensor import * class Arduino: BaudRate = 9600 def __init__(self, specs): self.name = specs['name'] self.port = specs['port'] self.ser = serial.Serial(self.port, timeout=2) self.sensors = [Sensor.makeSensor(s)for s in specs['sensors']] sel...
24.666667
70
0.563514
95
740
4.347368
0.442105
0.050847
0
0
0
0
0
0
0
0
0
0.021654
0.313514
740
29
71
25.517241
0.791339
0
0
0
0
0
0.021622
0
0
0
0
0
0
1
0.130435
false
0
0.130435
0.043478
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a43a8a2442407e60f6d58636889003043e11690c
2,716
py
Python
ymir/backend/src/ymir-controller/controller/invoker/invoker_task_copy.py
elliotmessi/ymir
3ec8145a1f894778116eb5218de223f6dd805b70
[ "Apache-2.0" ]
null
null
null
ymir/backend/src/ymir-controller/controller/invoker/invoker_task_copy.py
elliotmessi/ymir
3ec8145a1f894778116eb5218de223f6dd805b70
[ "Apache-2.0" ]
null
null
null
ymir/backend/src/ymir-controller/controller/invoker/invoker_task_copy.py
elliotmessi/ymir
3ec8145a1f894778116eb5218de223f6dd805b70
[ "Apache-2.0" ]
null
null
null
import logging import os from typing import Dict from controller.invoker.invoker_task_base import TaskBaseInvoker from controller.utils import utils from id_definition.error_codes import CTLResponseCode from proto import backend_pb2 class TaskCopyInvoker(TaskBaseInvoker): def task_pre_invoke(self, sandbox_root: ...
48.5
109
0.641753
333
2,716
4.888889
0.27027
0.081081
0.060197
0.03317
0.344595
0.28317
0.28317
0.28317
0.28317
0.244472
0
0.004059
0.2743
2,716
55
110
49.381818
0.821918
0
0
0.173913
0
0
0.074374
0.02025
0
0
0
0
0
1
0.086957
false
0
0.152174
0.021739
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a43dd40cc07d8072ff6bb89e915bbbbd9aedea90
1,124
py
Python
web/ask/ask/urls.py
artemsprygin/nginx-conf
f4f5fe0486d309619c5157a3ce690064b9850fd0
[ "MIT" ]
null
null
null
web/ask/ask/urls.py
artemsprygin/nginx-conf
f4f5fe0486d309619c5157a3ce690064b9850fd0
[ "MIT" ]
null
null
null
web/ask/ask/urls.py
artemsprygin/nginx-conf
f4f5fe0486d309619c5157a3ce690064b9850fd0
[ "MIT" ]
1
2021-07-27T17:35:56.000Z
2021-07-27T17:35:56.000Z
"""ask URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
37.466667
78
0.668149
173
1,124
4.323699
0.375723
0.042781
0.020053
0.032086
0.156417
0.156417
0.100267
0
0
0
0
0.008556
0.168149
1,124
30
79
37.466667
0.791444
0.589858
0
0
0
0
0.197778
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a43f90a0bae76d7994937a72ad1940d58309ef25
7,443
py
Python
src/cascade/executor/dismod_runner.py
skspoon/cascade
00534bd7e2558b880dfeb2e8bb2248a104ba6083
[ "MIT" ]
null
null
null
src/cascade/executor/dismod_runner.py
skspoon/cascade
00534bd7e2558b880dfeb2e8bb2248a104ba6083
[ "MIT" ]
null
null
null
src/cascade/executor/dismod_runner.py
skspoon/cascade
00534bd7e2558b880dfeb2e8bb2248a104ba6083
[ "MIT" ]
null
null
null
""" This stage runs Dismod-AT. Dismod gets called in very similar ways. Let's look at them in order to narrow down configuration of this stage.:: dismod_at database init dismod_at database fit <variables> dismod_at database fit <variables> <simulate_index> dismod_at database set option <name> <value> di...
35.783654
119
0.680908
1,060
7,443
4.640566
0.309434
0.027648
0.032527
0.011588
0.135597
0.114861
0.114861
0.078471
0.045538
0.036999
0
0.002821
0.238076
7,443
207
120
35.956522
0.864574
0.530834
0
0.082192
0
0
0.147628
0.033084
0
0
0
0
0
1
0.082192
false
0.013699
0.054795
0
0.178082
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a43fdd0da98368699ded07907d0510b59fd1edbd
617
py
Python
rpython/translator/platform/arch/test/test_s390x.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
381
2018-08-18T03:37:22.000Z
2022-02-06T23:57:36.000Z
rpython/translator/platform/arch/test/test_s390x.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
16
2018-09-22T18:12:47.000Z
2022-02-22T20:03:59.000Z
rpython/translator/platform/arch/test/test_s390x.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
55
2015-08-16T02:41:30.000Z
2022-03-20T20:33:35.000Z
import py import platform from rpython.translator.platform.arch.s390x import (s390x_cpu_revision, extract_s390x_cpu_ids) if platform.machine() != 's390x': py.test.skip("s390x tests only") def test_cpuid_s390x(): revision = s390x_cpu_revision() assert revision != 'unknown', 'the model you are runni...
26.826087
81
0.65154
80
617
4.8375
0.5625
0.082687
0.082687
0.093023
0
0
0
0
0
0
0
0.083857
0.226904
617
22
82
28.045455
0.727463
0
0
0
0
0
0.256911
0
0
0
0.011382
0
0.117647
1
0.117647
false
0
0.176471
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4459b0fbafee95c54aac59a2ffccbbf009eddf7
502
py
Python
assignments/02_sum/sum.py
michaelandrewblum/be434-fall-2021
5c2281a99ece283e7ee7d1873708efbef473f3d3
[ "MIT" ]
null
null
null
assignments/02_sum/sum.py
michaelandrewblum/be434-fall-2021
5c2281a99ece283e7ee7d1873708efbef473f3d3
[ "MIT" ]
null
null
null
assignments/02_sum/sum.py
michaelandrewblum/be434-fall-2021
5c2281a99ece283e7ee7d1873708efbef473f3d3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Purpose: Sum any number of inputted integers together. import argparse def get_args(): parser = argparse.ArgumentParser(description='Add numbers') parser.add_argument('integers', metavar='INT', type=int, nargs='+', help='Numbers to add') return parser.parse...
27.888889
73
0.635458
61
502
5.032787
0.639344
0.045603
0
0
0
0
0
0
0
0
0
0.002525
0.211155
502
18
74
27.888889
0.772727
0.151394
0
0
0
0
0.12
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.333333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a44700a1f4cbe5d05ab638e44bb80fe2126da8f7
940
py
Python
batch3/outputs/Alens_degeneracies.py
sjoudaki/CosmoJBD
3c1d029b74034b92cb2974de15e4c18637a5277e
[ "MIT" ]
null
null
null
batch3/outputs/Alens_degeneracies.py
sjoudaki/CosmoJBD
3c1d029b74034b92cb2974de15e4c18637a5277e
[ "MIT" ]
null
null
null
batch3/outputs/Alens_degeneracies.py
sjoudaki/CosmoJBD
3c1d029b74034b92cb2974de15e4c18637a5277e
[ "MIT" ]
null
null
null
import planckStyle as s g = s.getSubplotPlotter() roots = ['base_Alens_plikHM_TT_lowl_lowE', 'base_Alens_plikHM_TTTEEE_lowl_lowE', 'base_plikHM_TTTEEE_lowl_lowE', 'base_Alens_CamSpecHM_TTTEEE_lowl_lowE'] for i, root in enumerate(roots): samples = g.getSamples(root) p = samples.getParams() samples....
49.473684
118
0.620213
129
940
4.333333
0.527132
0.057245
0.064401
0.064401
0.193202
0.107335
0.107335
0.107335
0.107335
0.107335
0
0.014342
0.184043
940
18
119
52.222222
0.714472
0
0
0
0
0
0.329787
0.167021
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a448be34e5e9ec9f19e29113bb213defc64c3da8
17,495
py
Python
pymatgen/analysis/path_finder.py
adozier/pymatgen
f1cc4d8db24ec11063be2fd84b4ea911f006eeb7
[ "MIT" ]
null
null
null
pymatgen/analysis/path_finder.py
adozier/pymatgen
f1cc4d8db24ec11063be2fd84b4ea911f006eeb7
[ "MIT" ]
null
null
null
pymatgen/analysis/path_finder.py
adozier/pymatgen
f1cc4d8db24ec11063be2fd84b4ea911f006eeb7
[ "MIT" ]
1
2018-10-28T01:41:38.000Z
2018-10-28T01:41:38.000Z
""" This module finds diffusion paths through a structure based on a given potential field. If you use PathFinder algorithm for your research, please consider citing the following work: Ziqin Rong, Daniil Kitchaev, Pieremanuele Canepa, Wenxuan Huang, Gerbrand Ceder, The Journal of Chemical Physics 145 (7), 074...
46.405836
157
0.603658
2,527
17,495
4.012663
0.199842
0.010848
0.004734
0.004734
0.220907
0.171795
0.145562
0.101874
0.089152
0.089152
0
0.027406
0.295056
17,495
376
158
46.529255
0.794778
0.359417
0
0.173077
0
0
0.02718
0
0
0
0
0
0
1
0.076923
false
0
0.086538
0
0.216346
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a44b0dc8fca4c0b10f05e699512cb5275897d550
1,388
py
Python
doc/kubernetes/example.py
nlnjnj/ray
8a829fbdcb09b30af27d09d372b53ed86fdacfaf
[ "Apache-2.0" ]
null
null
null
doc/kubernetes/example.py
nlnjnj/ray
8a829fbdcb09b30af27d09d372b53ed86fdacfaf
[ "Apache-2.0" ]
null
null
null
doc/kubernetes/example.py
nlnjnj/ray
8a829fbdcb09b30af27d09d372b53ed86fdacfaf
[ "Apache-2.0" ]
null
null
null
import os import sys import time from collections import Counter import ray @ray.remote def get_hostname(x): import platform import time time.sleep(0.01) return x + (platform.node(),) def wait_for_nodes(expected): # Wait for all nodes to join the cluster. while True: num_nodes = len...
25.703704
101
0.623919
193
1,388
4.331606
0.481865
0.050239
0.052632
0.038278
0.047847
0
0
0
0
0
0
0.013739
0.26585
1,388
53
102
26.188679
0.806673
0.146254
0
0.131579
0
0
0.172735
0
0
0
0
0
0
1
0.078947
false
0
0.184211
0
0.289474
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
a44bdb80ae36c700d7a3190615830ddbcb5d0287
2,563
py
Python
dataset_builder/domain/dataset_builder_script_service.py
statisticsnorway/microdata-dataset-builder
c58fe5804f146290e1d523536729f1a5b1ac2c73
[ "Apache-2.0" ]
null
null
null
dataset_builder/domain/dataset_builder_script_service.py
statisticsnorway/microdata-dataset-builder
c58fe5804f146290e1d523536729f1a5b1ac2c73
[ "Apache-2.0" ]
3
2022-01-18T15:21:49.000Z
2022-03-07T13:49:03.000Z
dataset_builder/domain/dataset_builder_script_service.py
statisticsnorway/microdata-dataset-builder
c58fe5804f146290e1d523536729f1a5b1ac2c73
[ "Apache-2.0" ]
null
null
null
import logging from dataset_builder.exceptions.exceptions import ( BuilderStepError ) from dataset_builder.adapter import dataset_adapter from dataset_builder.steps import ( dataset_validator, dataset_converter, dataset_transformer, dataset_enricher, dataset_mover, directory_cleaner ) from ...
30.152941
79
0.712446
286
2,563
6.01049
0.216783
0.083188
0.066899
0.069808
0.534031
0.510762
0.510762
0.46655
0.411867
0.411867
0
0
0.218884
2,563
84
80
30.511905
0.858641
0.02341
0
0.34375
0
0
0.112
0
0
0
0
0
0
1
0.03125
false
0
0.109375
0
0.140625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4513608264b5ef5fadbdb3f5d4972dad1c038cb
8,235
py
Python
chap05/ConvolutionalLayer.py
viekie/basic_deeplearning
6c9e55cd621504da3d7ea1627e6783c9819a1916
[ "Apache-2.0" ]
3
2017-05-23T08:11:44.000Z
2017-09-25T11:17:57.000Z
chap05/ConvolutionalLayer.py
viekie/basic_deeplearning
6c9e55cd621504da3d7ea1627e6783c9819a1916
[ "Apache-2.0" ]
null
null
null
chap05/ConvolutionalLayer.py
viekie/basic_deeplearning
6c9e55cd621504da3d7ea1627e6783c9819a1916
[ "Apache-2.0" ]
1
2017-06-19T03:36:40.000Z
2017-06-19T03:36:40.000Z
#!/usr/bin/env python # -*- coding:utf8 -*- # Power by viekie. 2017-05-27 08:35:06 import numpy as np import Filter class ConvolutionalLayer(object): def __init__(self, input_width, input_height, channel_number, filter_width, filter_height, filter_number, zero_padding, stride, ac...
39.401914
79
0.548877
867
8,235
4.94579
0.178777
0.069963
0.026119
0.01959
0.288479
0.189832
0.105177
0.064366
0
0
0
0.011355
0.369035
8,235
208
80
39.591346
0.813895
0.07796
0
0.084507
0
0
0.001213
0
0
0
0
0
0
1
0.091549
false
0
0.014085
0.007042
0.169014
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a451da894d989b6d53bdd9a5869aaa0646748dae
4,521
py
Python
src/thunder/text_processing/transform.py
rbracco/thunder-speech
2b16abf1a14438b1174c168ad8252ad869f31139
[ "MIT" ]
8
2021-01-26T23:19:51.000Z
2022-03-02T23:18:46.000Z
src/thunder/text_processing/transform.py
rbracco/thunder-speech
2b16abf1a14438b1174c168ad8252ad869f31139
[ "MIT" ]
27
2021-01-28T06:50:11.000Z
2022-02-27T08:21:12.000Z
src/thunder/text_processing/transform.py
rbracco/thunder-speech
2b16abf1a14438b1174c168ad8252ad869f31139
[ "MIT" ]
3
2021-05-06T21:04:23.000Z
2021-08-09T13:24:50.000Z
# This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # Copyright (c) 2021 scart97 __all__ = ["BatchTextTransformer", "TextTransformConfig"] from dataclasses import dataclass from typing import List, Optional import torch from torch import nn fro...
35.880952
140
0.639681
524
4,521
5.389313
0.360687
0.032224
0.03187
0.017705
0
0
0
0
0
0
0
0.002166
0.285114
4,521
125
141
36.168
0.871287
0.337094
0
0
0
0
0.048313
0.019893
0
0
0
0
0
1
0.058824
false
0
0.102941
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a454242a5d2a6fda9bc26f402c83e116c412e094
19,801
py
Python
experiments/book_comparison.py
LasLitz/ma-doc-embeddings
e6edbb64a766b7906179b0cb767606c6f65cddb9
[ "MIT" ]
1
2022-01-10T20:29:42.000Z
2022-01-10T20:29:42.000Z
experiments/book_comparison.py
LasLitz/ma-doc-embeddings
e6edbb64a766b7906179b0cb767606c6f65cddb9
[ "MIT" ]
null
null
null
experiments/book_comparison.py
LasLitz/ma-doc-embeddings
e6edbb64a766b7906179b0cb767606c6f65cddb9
[ "MIT" ]
null
null
null
import os from collections import defaultdict import random from typing import Dict, List import pandas as pd from scipy.stats import stats from lib2vec.corpus_structure import Corpus from experiments.predicting_high_rated_books import mcnemar_sig_text, chi_square_test from lib2vec.vectorization import Vectorizer fro...
44.697517
121
0.55477
2,129
19,801
4.757163
0.121184
0.049763
0.029621
0.01876
0.56872
0.498321
0.43049
0.411532
0.374803
0.340344
0
0.030798
0.340791
19,801
442
122
44.798643
0.745116
0.248321
0
0.410714
0
0
0.092655
0.027016
0
0
0
0
0
1
0.017857
false
0.010714
0.039286
0
0.067857
0.053571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a45592f450830cd65a28e51d131d98bb598da933
12,729
py
Python
armi/physics/neutronics/parameters.py
crisobg1/armi
38d9febdbec7ab8a67dd9b8e50780e11ea127022
[ "Apache-2.0" ]
1
2020-10-14T15:18:11.000Z
2020-10-14T15:18:11.000Z
armi/physics/neutronics/parameters.py
crisobg1/Framework
87b56c2cf286b75e7cc2c02a1e2886d6ce3037b8
[ "Apache-2.0" ]
null
null
null
armi/physics/neutronics/parameters.py
crisobg1/Framework
87b56c2cf286b75e7cc2c02a1e2886d6ce3037b8
[ "Apache-2.0" ]
1
2020-08-26T09:02:06.000Z
2020-08-26T09:02:06.000Z
# Copyright 2019 TerraPower, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
30.895631
164
0.569723
1,229
12,729
5.891782
0.274207
0.080099
0.018782
0.033145
0.410441
0.341389
0.243198
0.184919
0.17028
0.116973
0
0.008225
0.331369
12,729
411
165
30.970803
0.842557
0.089402
0
0.44164
0
0.003155
0.283824
0.007266
0
0
0
0
0
1
0.012618
false
0
0.015773
0
0.037855
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a456f12f0c4a167d3c083c3079f270b436ec245d
1,768
py
Python
Software/Backend/app/controllers/Persona.py
davidsgv/Sistemas-Transaccionales
a26904742bd163461aca7e8039448441b4a98fb9
[ "MIT" ]
null
null
null
Software/Backend/app/controllers/Persona.py
davidsgv/Sistemas-Transaccionales
a26904742bd163461aca7e8039448441b4a98fb9
[ "MIT" ]
null
null
null
Software/Backend/app/controllers/Persona.py
davidsgv/Sistemas-Transaccionales
a26904742bd163461aca7e8039448441b4a98fb9
[ "MIT" ]
null
null
null
from flask import Blueprint, jsonify, request from flask_cors import cross_origin #Model from app.model.Persona import Persona from app.model.Usuario import ManejoUsuarios persona = Blueprint('persona', __name__, url_prefix="/persona/") #listar todas las Personas @persona.route("list", methods=["POST"]) @cross_ori...
26.787879
64
0.635181
184
1,768
6.048913
0.326087
0.116801
0.143756
0.121294
0.554358
0.458221
0.405211
0.331536
0.331536
0.331536
0
0
0.234729
1,768
66
65
26.787879
0.822616
0.117081
0
0.604651
0
0
0.14157
0
0
0
0
0
0
1
0.069767
false
0
0.093023
0
0.395349
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a458419f6584ac4036e6240f20d87f28078e862b
947
py
Python
sieve.py
rigewo02/rsa
10736f695931ca835600410cd3f89b4f93b1e8e3
[ "MIT" ]
null
null
null
sieve.py
rigewo02/rsa
10736f695931ca835600410cd3f89b4f93b1e8e3
[ "MIT" ]
null
null
null
sieve.py
rigewo02/rsa
10736f695931ca835600410cd3f89b4f93b1e8e3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys import random import math def sieve(n): # Every number is assumed prime except 0 and 1 numbers = [False, False] + [True] * (n-2) print("Numbers appended") for i in range(int(math.sqrt(n))+1): if not numbers[i]: continue # Do not do a...
23.097561
78
0.548046
132
947
3.871212
0.44697
0.041096
0.023483
0.043053
0
0
0
0
0
0
0
0.023438
0.324182
947
40
79
23.675
0.775
0.279831
0
0.08
0
0
0.074405
0
0
0
0
0
0
1
0.08
false
0
0.12
0
0.24
0.16
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4591e8c5e0a7f2482e3823831464176b3c6732c
1,136
py
Python
tests/api_tests/search/test_fetch_platsannons.py
JobtechSwe/castaway
e0917511b20152f0bd7e2802b73a0beae30a96f5
[ "Apache-2.0" ]
null
null
null
tests/api_tests/search/test_fetch_platsannons.py
JobtechSwe/castaway
e0917511b20152f0bd7e2802b73a0beae30a96f5
[ "Apache-2.0" ]
null
null
null
tests/api_tests/search/test_fetch_platsannons.py
JobtechSwe/castaway
e0917511b20152f0bd7e2802b73a0beae30a96f5
[ "Apache-2.0" ]
null
null
null
import sys import os import requests import pytest from tests.test_resources.helper import get_with_path_return_json from tests.test_resources.settings import SEARCH_URL @pytest.mark.smoke @pytest.mark.integration def test_fetch_ad_by_id( session): """ Get an ad by a request to /search without a query,and li...
31.555556
89
0.724472
178
1,136
4.342697
0.410112
0.025873
0.042691
0.065977
0.283312
0.178525
0.093144
0
0
0
0
0.048269
0.161092
1,136
35
90
32.457143
0.762854
0.1875
0
0.095238
0
0
0.140156
0.072303
0
0
0
0
0.142857
1
0.095238
false
0
0.285714
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a45c6a40589988b06217c130fc291b75cbb96b4e
2,835
py
Python
dmaap/tests/test_consulif.py
onap/dcaegen2-platform-plugins
64131311ba1d01ff7d20bca0c14d30a006b2e712
[ "Apache-2.0", "CC-BY-4.0" ]
1
2020-07-14T14:22:04.000Z
2020-07-14T14:22:04.000Z
dmaap/tests/test_consulif.py
alex-sh2020/dcaegen2-platform-plugins
c5abb9b34468400bdcdd3ce23595af41ac03cd80
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
dmaap/tests/test_consulif.py
alex-sh2020/dcaegen2-platform-plugins
c5abb9b34468400bdcdd3ce23595af41ac03cd80
[ "Apache-2.0", "CC-BY-4.0" ]
1
2020-07-14T19:02:05.000Z
2020-07-14T19:02:05.000Z
# ============LICENSE_START======================================================= # org.onap.dcae # ================================================================================ # Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved. # =============================================================...
38.835616
105
0.639153
358
2,835
4.874302
0.435754
0.044126
0.027507
0.018338
0.093983
0.093983
0.093983
0.066476
0.066476
0.066476
0
0.013119
0.16649
2,835
72
106
39.375
0.725349
0.45679
0
0.171429
0
0
0.21004
0
0
0
0
0
0
1
0.057143
false
0.028571
0.114286
0
0.171429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a463318d48a23200b05fe5c478703327af0250c6
5,411
py
Python
utils/transforms.py
zdaiot/NAIC-Person-Re-identification
762be875b68e85fbaab8b7730b5a857bfcc9e218
[ "MIT" ]
null
null
null
utils/transforms.py
zdaiot/NAIC-Person-Re-identification
762be875b68e85fbaab8b7730b5a857bfcc9e218
[ "MIT" ]
null
null
null
utils/transforms.py
zdaiot/NAIC-Person-Re-identification
762be875b68e85fbaab8b7730b5a857bfcc9e218
[ "MIT" ]
null
null
null
import math import random import numpy as np import torchvision.transforms as T from albumentations import ( Compose, HorizontalFlip, VerticalFlip, CLAHE, RandomRotate90, HueSaturationValue, RandomBrightness, RandomContrast, RandomGamma, OneOf, ToFloat, ShiftScaleRotate, GridDistortion, ElasticTransform, Jp...
32.993902
108
0.577342
655
5,411
4.615267
0.30229
0.007278
0.011578
0.013232
0.137281
0.111479
0.102878
0.064175
0.014555
0
0
0.038661
0.321198
5,411
163
109
33.196319
0.784372
0.135834
0
0.106796
0
0
0.01041
0.006866
0
0
0
0
0
1
0.067961
false
0
0.097087
0
0.262136
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a46426c4091f69e2bafaff6462b464224cf7d8e8
382
py
Python
Day-017-MoreOOPS/main.py
codefather91/100DaysOfPython
7c27e0b1af7b73c8fefdd8e3bd73f092ea665868
[ "MIT" ]
null
null
null
Day-017-MoreOOPS/main.py
codefather91/100DaysOfPython
7c27e0b1af7b73c8fefdd8e3bd73f092ea665868
[ "MIT" ]
null
null
null
Day-017-MoreOOPS/main.py
codefather91/100DaysOfPython
7c27e0b1af7b73c8fefdd8e3bd73f092ea665868
[ "MIT" ]
null
null
null
from question_model import Question from data import question_data from quiz_brain import QuizBrain question_bank = [] for question in question_data: question_bank.append(Question(question['text'], question['answer'])) quiz = QuizBrain(question_bank) while quiz.still_has_question(): quiz.next_question() pr...
25.466667
72
0.777487
52
382
5.519231
0.480769
0.125436
0.146341
0
0
0
0
0
0
0
0
0
0.120419
382
15
73
25.466667
0.854167
0
0
0
0
0
0.167102
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
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
a464c2d34843871e0b098c7eded073e73e59a58c
1,655
py
Python
using_result.py
takat0m0/pix2pix
f6b0277fdd4bc98581db8cfd6dd6a039baf5e349
[ "MIT" ]
3
2017-02-09T14:26:12.000Z
2017-02-20T03:21:26.000Z
using_result.py
takat0m0/pix2pix
f6b0277fdd4bc98581db8cfd6dd6a039baf5e349
[ "MIT" ]
null
null
null
using_result.py
takat0m0/pix2pix
f6b0277fdd4bc98581db8cfd6dd6a039baf5e349
[ "MIT" ]
null
null
null
#! -*- coding:utf-8 -*- import os import sys import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import cv2 from Model import Model from util import get_figs, dump_figs class FigGenerator(object): def __init__(self, file_name, z_dim, batch_size): self.batch_size = batch_size ...
27.583333
79
0.64713
246
1,655
4.097561
0.325203
0.098214
0.051587
0.03869
0.144841
0.111111
0
0
0
0
0
0.028906
0.226586
1,655
59
80
28.050847
0.758594
0.076133
0
0
0
0
0.068376
0
0
0
0
0
0.052632
1
0.052632
false
0
0.210526
0
0.315789
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a465cded6b282420fb15a7a55e99a0790dcca303
1,300
py
Python
prob_calculator.py
ZaatarX/probability-calculator
ae077db1eb435864ac5070c38d5794bccd0c92b8
[ "MIT" ]
null
null
null
prob_calculator.py
ZaatarX/probability-calculator
ae077db1eb435864ac5070c38d5794bccd0c92b8
[ "MIT" ]
null
null
null
prob_calculator.py
ZaatarX/probability-calculator
ae077db1eb435864ac5070c38d5794bccd0c92b8
[ "MIT" ]
null
null
null
import copy import random # Consider using the modules imported above. class Hat: def __init__(self, **kwargs) -> None: self.set_contents(**kwargs) def set_contents(self, **kwargs): contents = [] for key in kwargs: for n in range(kwargs[key]): contents.app...
26
70
0.539231
150
1,300
4.566667
0.34
0.040876
0.026277
0.048175
0
0
0
0
0
0
0
0.009756
0.369231
1,300
49
71
26.530612
0.82561
0.05
0
0.108108
0
0
0
0
0
0
0
0
0
1
0.108108
false
0
0.054054
0
0.27027
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a46624d14c9284368d486f5789d1189343a38de8
7,309
py
Python
naivenmt/layers/transformer.py
luozhouyang/tf-nmt-keras
bcceeec0a477eb09c4a8915e638a27dae6c95562
[ "Apache-2.0" ]
7
2018-09-10T03:49:06.000Z
2020-06-15T06:10:28.000Z
naivenmt/layers/transformer.py
luozhouyang/tf-nmt-keras
bcceeec0a477eb09c4a8915e638a27dae6c95562
[ "Apache-2.0" ]
1
2019-02-18T10:01:44.000Z
2019-02-18T10:01:44.000Z
naivenmt/layers/transformer.py
luozhouyang/tf-nmt-keras
bcceeec0a477eb09c4a8915e638a27dae6c95562
[ "Apache-2.0" ]
1
2018-09-15T05:49:31.000Z
2018-09-15T05:49:31.000Z
# Copyright 2018 luozhouyang # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.198238
95
0.629224
1,077
7,309
4.17363
0.220984
0.011568
0.05673
0.035595
0.283426
0.205562
0.156174
0.125028
0.07564
0.054283
0
0.015423
0.237105
7,309
226
96
32.340708
0.79071
0.405117
0
0.16129
0
0
0.032491
0
0
0
0
0
0
1
0.075269
false
0
0.021505
0
0.172043
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4696c2f89e7bc7a526efb0d4e80f4d3b7b63062
5,700
py
Python
sudoku/models.py
mpilkou/django_code
08e42ef3cdbbcdd9050e591fd97b0d8be060df6b
[ "Apache-2.0" ]
null
null
null
sudoku/models.py
mpilkou/django_code
08e42ef3cdbbcdd9050e591fd97b0d8be060df6b
[ "Apache-2.0" ]
null
null
null
sudoku/models.py
mpilkou/django_code
08e42ef3cdbbcdd9050e591fd97b0d8be060df6b
[ "Apache-2.0" ]
null
null
null
from django.db import models from typing import List, Tuple from django.core.exceptions import ValidationError # Create your models here. class Sudoku(models.Model): puzzle_creation_date = models.DateField(verbose_name = 'creation date', help_text= 'puzzle creation date', auto_now=True, auto_now_add=False) ...
41.605839
146
0.666842
692
5,700
5.138728
0.140173
0.077334
0.053993
0.074241
0.544994
0.497469
0.435602
0.395669
0.328178
0.119235
0
0.018799
0.234737
5,700
136
147
41.911765
0.796424
0.004211
0
0.141509
0
0
0.059041
0.003701
0
0
0
0
0
1
0.066038
false
0
0.037736
0.009434
0.358491
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a46a6612483e49119e42e59a73001ccaee6e6e4f
3,999
py
Python
src/dbspro/cli/correctfastq.py
FrickTobias/iSeq
3732de7716e2d379e9a4d7060dd4797fd1955ac4
[ "MIT" ]
1
2021-01-18T13:04:04.000Z
2021-01-18T13:04:04.000Z
src/dbspro/cli/correctfastq.py
FrickTobias/iSeq
3732de7716e2d379e9a4d7060dd4797fd1955ac4
[ "MIT" ]
27
2019-06-19T16:38:48.000Z
2021-11-16T09:50:50.000Z
src/dbspro/cli/correctfastq.py
FrickTobias/DBSpro
3732de7716e2d379e9a4d7060dd4797fd1955ac4
[ "MIT" ]
1
2020-02-06T10:23:00.000Z
2020-02-06T10:23:00.000Z
""" Correct FASTQ/FASTA with the corrected sequences from starcode clustering """ from collections import defaultdict import logging import os import statistics from pathlib import Path from typing import Iterator, Tuple, List, Set, Dict import dnaio from tqdm import tqdm from xopen import xopen from dbspro.utils imp...
32.512195
117
0.656164
500
3,999
5.1
0.304
0.047059
0.026667
0.030588
0.068235
0.019608
0
0
0
0
0
0.002621
0.236809
3,999
122
118
32.778689
0.832896
0.022256
0
0.043478
0
0.01087
0.188621
0
0
0
0
0
0
1
0.065217
false
0
0.108696
0
0.206522
0.01087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a46b76b7d31855db7ddb1a13d8f3e3d37eeece53
27,058
py
Python
pythonFiles/ASCA_Functions.py
huangysh/ASCA_Cluster
3f7ff5df514cbe48730ba0634abe7f9726d3b98e
[ "MIT" ]
null
null
null
pythonFiles/ASCA_Functions.py
huangysh/ASCA_Cluster
3f7ff5df514cbe48730ba0634abe7f9726d3b98e
[ "MIT" ]
null
null
null
pythonFiles/ASCA_Functions.py
huangysh/ASCA_Cluster
3f7ff5df514cbe48730ba0634abe7f9726d3b98e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ********************************************************************************************************************** # MIT License # Copyright (c) 2020 School of Environmental Science and Engineering, Shanghai Jiao Tong University # Permission is hereby granted, free of charge, to any per...
30.888128
120
0.594131
2,636
27,058
6.078907
0.241654
0.007988
0.011608
0.011233
0.102659
0.055417
0.037194
0.026023
0.019346
0.019346
0
0.015076
0.259664
27,058
875
121
30.923429
0.784595
0.25874
0
0.177778
0
0
0.05089
0.018697
0.002222
0
0
0.002286
0
1
0.08
false
0
0.013333
0.002222
0.191111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a46c23843edc73519673ebfe146fa5d2ec8aa8a4
7,000
py
Python
legacy/notebooks/Language Model - BPE.py
ceshine/modern_chinese_nlp
e1d5941f381431ac114f440472d3e0f976437777
[ "MIT" ]
42
2018-08-21T05:31:18.000Z
2021-08-30T02:00:05.000Z
legacy/notebooks/Language Model - BPE.py
ceshine/modern_chinese_nlp
e1d5941f381431ac114f440472d3e0f976437777
[ "MIT" ]
null
null
null
legacy/notebooks/Language Model - BPE.py
ceshine/modern_chinese_nlp
e1d5941f381431ac114f440472d3e0f976437777
[ "MIT" ]
7
2018-08-21T09:04:17.000Z
2021-03-28T06:25:28.000Z
# coding: utf-8 # In[1]: import sys sys.path.append("../") # In[2]: from pathlib import Path from functools import partial import joblib import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from fastai.text import LanguageModelLoader, LanguageModelData from fastai.core i...
17.5
129
0.618286
1,140
7,000
3.688596
0.263158
0.021403
0.011415
0.017122
0.437812
0.384542
0.354102
0.329132
0.322949
0.322949
0
0.049648
0.208714
7,000
399
130
17.54386
0.709514
0.145429
0
0.293706
0
0
0.090046
0.011192
0
0
0
0
0
1
0.020979
false
0
0.125874
0
0.153846
0.020979
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a46caa769bacecd220bd2803dcc01b740d0f7a7d
2,576
py
Python
controller/components/badger.py
cclauss/flight-lab
d2dfcc842391c287970b14e470f209665a233b59
[ "Apache-2.0" ]
15
2018-10-18T07:50:46.000Z
2021-10-21T03:40:55.000Z
controller/components/badger.py
cclauss/flight-lab
d2dfcc842391c287970b14e470f209665a233b59
[ "Apache-2.0" ]
9
2018-09-17T23:00:02.000Z
2019-01-22T21:08:04.000Z
controller/components/badger.py
cclauss/flight-lab
d2dfcc842391c287970b14e470f209665a233b59
[ "Apache-2.0" ]
12
2019-01-07T12:43:37.000Z
2021-10-21T03:40:44.000Z
# Copyright 2018 Flight Lab 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
33.025641
125
0.727873
336
2,576
5.41369
0.440476
0.038483
0.030786
0.028037
0.186916
0.120396
0
0
0
0
0
0.006585
0.174689
2,576
77
126
33.454545
0.849012
0.332298
0
0.194444
0
0
0.078115
0
0
0
0
0
0
1
0.111111
false
0
0.138889
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
a470aba9fce332f6e5b9f8335122d8eef4080e8a
1,332
py
Python
adhoc.py
oudmane/excelcy
25263d16db0cda24fe66ab3d52ff08a770117dc1
[ "MIT" ]
99
2018-07-19T17:32:26.000Z
2022-02-01T18:10:57.000Z
adhoc.py
oudmane/excelcy
25263d16db0cda24fe66ab3d52ff08a770117dc1
[ "MIT" ]
15
2018-07-20T01:34:32.000Z
2020-08-25T09:14:28.000Z
adhoc.py
oudmane/excelcy
25263d16db0cda24fe66ab3d52ff08a770117dc1
[ "MIT" ]
11
2018-07-20T03:30:29.000Z
2021-12-14T22:38:23.000Z
from excelcy import ExcelCy from excelcy.storage import Config # test_string = 'Android Pay expands to Canada' # excelcy = ExcelCy() # excelcy.storage.config = Config(nlp_base='en_core_web_sm', train_iteration=50, train_drop=0.2) # doc = excelcy.nlp(test_string) # # showing no ORG # print([(ent.label_, ent.text) for e...
40.363636
148
0.720721
192
1,332
4.875
0.348958
0.059829
0.055556
0.068376
0.479701
0.403846
0.403846
0.403846
0.403846
0.403846
0
0.010101
0.108108
1,332
32
149
41.625
0.777778
0.70045
0
0.5
0
0
0.226316
0.073684
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4756366de9ce838849093fa734c08d1d1fc9abf
4,978
py
Python
lambda/frequencyQueries.py
NickStrick/Code-Challenges
b6c13357783d3b556e90349ccc6f9bb568a3531d
[ "MIT" ]
null
null
null
lambda/frequencyQueries.py
NickStrick/Code-Challenges
b6c13357783d3b556e90349ccc6f9bb568a3531d
[ "MIT" ]
null
null
null
lambda/frequencyQueries.py
NickStrick/Code-Challenges
b6c13357783d3b556e90349ccc6f9bb568a3531d
[ "MIT" ]
null
null
null
# https://youtu.be/O3HBd0ICJ2M # defaultdict is the same as normal dictionaries, except a defaultdict # sets a default value if a key has not been set yet; this is mostly # for convenience from collections import defaultdict def freqQuery(queries): val_counts = defaultdict(int) freq_counts = defaultdict(int)...
37.712121
87
0.546203
647
4,978
4.117465
0.228748
0.082583
0.045045
0.037162
0.43994
0.375375
0.340841
0.322072
0.260511
0.260511
0
0.021535
0.337686
4,978
131
88
38
0.786473
0.724387
0
0.275862
0
0
0
0
0
0
0
0
0
1
0.034483
false
0
0.034483
0
0.103448
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a475dd4e9e3743b42f2405054585911fbb5f8a22
1,663
py
Python
char-rnn-name-classification/train.py
StanleyLsx/practical-pytorch
ccc9ebad47ca6763c04dbb8574769cfe3f1acdde
[ "MIT" ]
null
null
null
char-rnn-name-classification/train.py
StanleyLsx/practical-pytorch
ccc9ebad47ca6763c04dbb8574769cfe3f1acdde
[ "MIT" ]
2
2021-06-08T22:12:46.000Z
2022-01-13T03:11:10.000Z
char-rnn-name-classification/train.py
StanleyLsx/practical-pytorch
ccc9ebad47ca6763c04dbb8574769cfe3f1acdde
[ "MIT" ]
null
null
null
from data import * from model import * import time import math n_hidden = 128 n_epochs = 100000 print_every = 5000 plot_every = 1000 learning_rate = 0.005 # If you set this too high, it might explode. If too low, it might not learn rnn = RNN(n_letters, n_hidden, n_categories) optimizer = torch.optim.SGD(rnn.paramet...
25.584615
99
0.657246
246
1,663
4.296748
0.422764
0.047304
0.051088
0.068117
0.054872
0
0
0
0
0
0
0.027907
0.224293
1,663
64
100
25.984375
0.789922
0.113049
0
0.046512
0
0
0.04966
0.021088
0
0
0
0
0
1
0.046512
false
0
0.093023
0
0.186047
0.069767
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4774d5aae891207d351e4416da7e1e5f7ee2c3e
8,623
py
Python
flow_models/elephants/plot.py
piotrjurkiewicz/flow_stats
cc97a8381275cb9dd23ed0c3432abffaf4198431
[ "MIT" ]
9
2019-07-08T09:53:22.000Z
2021-11-19T07:50:11.000Z
flow_models/elephants/plot.py
ElsevierSoftwareX/SOFTX-D-21-00003
cc97a8381275cb9dd23ed0c3432abffaf4198431
[ "MIT" ]
1
2021-02-23T16:01:21.000Z
2021-04-03T02:06:32.000Z
flow_models/elephants/plot.py
ElsevierSoftwareX/SOFTX-D-21-00003
cc97a8381275cb9dd23ed0c3432abffaf4198431
[ "MIT" ]
5
2019-09-27T14:52:54.000Z
2022-01-25T07:58:24.000Z
#!/usr/bin/python3 import argparse import collections import pathlib import matplotlib.pyplot as plt import matplotlib.ticker import numpy as np import pandas as pd from flow_models.elephants.calculate import calculate from flow_models.lib.data import UNITS from flow_models.lib.plot import save_figure, matplotlib_con...
37.491304
108
0.542851
1,111
8,623
4.080108
0.212421
0.030885
0.035297
0.02934
0.404368
0.311493
0.286565
0.262299
0.239576
0.173395
0
0.022705
0.305346
8,623
229
109
37.655022
0.734057
0.001971
0
0.275862
0
0
0.129111
0.002789
0
0
0
0
0.009852
1
0.034483
false
0
0.049261
0
0.083744
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4782f2535bfc86b20dfc387ade673021d013c90
2,088
py
Python
multiview/db/saxs_v2/db_config.py
bsmind/react-multisciview
613dbe327542d0384e5d6b87697a05db17f42ca8
[ "MIT" ]
null
null
null
multiview/db/saxs_v2/db_config.py
bsmind/react-multisciview
613dbe327542d0384e5d6b87697a05db17f42ca8
[ "MIT" ]
null
null
null
multiview/db/saxs_v2/db_config.py
bsmind/react-multisciview
613dbe327542d0384e5d6b87697a05db17f42ca8
[ "MIT" ]
1
2020-08-28T16:27:15.000Z
2020-08-28T16:27:15.000Z
MONGODB_CONFIG = { 'ROOT': '/Users/scott/Documents/Work/bnl/MultiView/pyServer/data/saxs/', # mongo db set-up 'DB': { #'HOST': 'visws.csi.bnl.gov', 'HOST': 'localhost', 'PORT': 27017, 'NAME': 'multiview_saxs_v2', 'COLLECTION': 'saxs_v2' }, # parsing xml file...
22.212766
86
0.45546
202
2,088
4.584158
0.613861
0.022678
0.036717
0.034557
0
0
0
0
0
0
0
0.012598
0.391762
2,088
93
87
22.451613
0.716535
0.210728
0
0.112903
0
0
0.358063
0.082158
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a479239492621d9e94b74d01d6b7559292d39674
415
py
Python
ch06/hw06_03/hw06_03.py
z2x3c4v5bz/pybook_wenlongtsai_etc
0a3e90d9f53a1d33e31b27f40de8abdce56e7e2a
[ "MIT" ]
4
2021-06-12T07:51:22.000Z
2021-12-20T11:35:12.000Z
ch06/hw06_03/hw06_03.py
z2x3c4v5bz/pybook_wenlongtsai_etc
0a3e90d9f53a1d33e31b27f40de8abdce56e7e2a
[ "MIT" ]
null
null
null
ch06/hw06_03/hw06_03.py
z2x3c4v5bz/pybook_wenlongtsai_etc
0a3e90d9f53a1d33e31b27f40de8abdce56e7e2a
[ "MIT" ]
1
2021-11-08T03:36:43.000Z
2021-11-08T03:36:43.000Z
# hw06_03 import random def makesentence(): subjects = ['Dog', 'Cat', 'Monkey', 'Pig', 'Fox'] verbs = ['walks', 'runs', 'jumps'] advs = ['slowly', 'quickly'] print('%s %s %s.' % (random.choice(subjects), random.choice(verbs), random.choice(advs))) for i in range(5): makesentence() ''' Cat walk...
17.291667
93
0.624096
53
415
4.867925
0.509434
0.139535
0.131783
0
0
0
0
0
0
0
0
0.014837
0.187952
415
23
94
18.043478
0.750742
0.016867
0
0
0
0
0.180602
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a47acd60891c08f70a65acabe0a7b03b7c1a3a1f
1,482
py
Python
dci/api/v1/audits.py
redhat-cip/dci-control-server
6dee30e7b8770fde2466f2b09554d299a3f3db4d
[ "Apache-2.0" ]
17
2016-09-02T09:21:29.000Z
2021-09-27T11:33:58.000Z
dci/api/v1/audits.py
redhat-cip/dci-control-server
6dee30e7b8770fde2466f2b09554d299a3f3db4d
[ "Apache-2.0" ]
80
2015-12-09T09:29:26.000Z
2021-01-06T08:24:22.000Z
dci/api/v1/audits.py
redhat-cip/dci-control-server
6dee30e7b8770fde2466f2b09554d299a3f3db4d
[ "Apache-2.0" ]
10
2015-09-29T21:34:53.000Z
2021-09-27T11:34:01.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2015-2016 Red Hat, 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 applicab...
30.244898
75
0.695682
217
1,482
4.64977
0.529954
0.059465
0.025768
0.031715
0
0
0
0
0
0
0
0.014346
0.200405
1,482
48
76
30.875
0.837131
0.388664
0
0
0
0
0.057303
0
0
0
0
0
0
1
0.038462
false
0
0.269231
0
0.346154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a47ad8b5997995620bf43529f5fc03e2a2cb0078
1,017
py
Python
app/app.py
jaswged/die-detector-api
249ce50ac340e73a3ce05a2c7ed4f5874a002ab9
[ "MIT" ]
null
null
null
app/app.py
jaswged/die-detector-api
249ce50ac340e73a3ce05a2c7ed4f5874a002ab9
[ "MIT" ]
2
2020-01-07T04:17:58.000Z
2020-01-08T01:21:30.000Z
app/app.py
jaswged/die-detector-api
249ce50ac340e73a3ce05a2c7ed4f5874a002ab9
[ "MIT" ]
null
null
null
# Common python package imports. from flask import Flask, jsonify, request, render_template from fastai.vision import * # Initialize the app and set a secret_key. app = Flask(__name__) app.secret_key = 'something_secret' # Load the pickled model. defaults.device = torch.device('cpu') path = '.' learn = load_learner(p...
24.804878
63
0.654867
137
1,017
4.664234
0.547445
0.065728
0.062598
0
0
0
0
0
0
0
0
0.009685
0.187807
1,017
40
64
25.425
0.763923
0.093412
0
0
0
0
0.131808
0
0
0
0
0
0
1
0.115385
false
0
0.076923
0.076923
0.307692
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a47af5d98f82e7d880c1857ba14e7365fcae7341
651
py
Python
junopy/entities/pix.py
robertons/junopy
1acc64ab99d8ea49bb0dac979cd34da43541f243
[ "MIT" ]
3
2021-07-12T15:05:13.000Z
2022-01-31T03:35:43.000Z
junopy/entities/pix.py
robertons/junopy
1acc64ab99d8ea49bb0dac979cd34da43541f243
[ "MIT" ]
2
2022-01-29T20:14:51.000Z
2022-02-07T16:16:24.000Z
junopy/entities/pix.py
robertons/junopy
1acc64ab99d8ea49bb0dac979cd34da43541f243
[ "MIT" ]
1
2022-02-01T18:36:10.000Z
2022-02-01T18:36:10.000Z
# -*- coding: utf-8 -*- from .lib import * class Pix(JunoEntity): def __init__(cls, **kw): cls.__metadata__ = {} # FIELDS cls.id = String(max=80) cls.key = String(max=80) cls.type = String(max=80) cls.includeImage = Boolean() cls.payloadInBase64 = String(...
25.038462
54
0.574501
69
651
5.246377
0.536232
0.124309
0.121547
0.154696
0
0
0
0
0
0
0
0.03871
0.285714
651
25
55
26.04
0.739785
0.043011
0
0
0
0
0.009677
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a47e22c2a0cc7d55c5e439122397bc64272708be
11,203
py
Python
rstring/__init__.py
phantie/mutable-string
3a944528e777aecdec0ff8d6cc09585a8543874b
[ "MIT" ]
null
null
null
rstring/__init__.py
phantie/mutable-string
3a944528e777aecdec0ff8d6cc09585a8543874b
[ "MIT" ]
null
null
null
rstring/__init__.py
phantie/mutable-string
3a944528e777aecdec0ff8d6cc09585a8543874b
[ "MIT" ]
null
null
null
from __future__ import annotations from functools import partialmethod, wraps from array import array from typing import NewType, Union, Callable, Iterable, Generator, Type from ruption import some, none from take import take __all__ = ('String',) __version__ = '0.5.3' def no_mut(f): if __debug__: @wrap...
27.060386
114
0.560743
1,352
11,203
4.323225
0.152367
0.021386
0.032849
0.034217
0.355346
0.296664
0.253379
0.202224
0.154662
0.117023
0
0.003652
0.31563
11,203
414
115
27.060386
0.758706
0.005802
0
0.331269
0
0.003096
0.0481
0.001967
0
0
0
0
0.01548
1
0.19195
false
0
0.018576
0.03096
0.439628
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a47ea1f3b9daa8db7fc8245fb0cffd99591ee6a0
2,160
py
Python
portfolio/Python/scrapy/outillage/conrad.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/outillage/conrad.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/outillage/conrad.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
5
2016-03-22T07:40:46.000Z
2021-05-30T16:12:21.000Z
import re import os from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector from scrapy.http import Request, HtmlResponse from scrapy.utils.response import get_base_url from scrapy.utils.url import urljoin_rfc from urllib import urlencode import hashlib import csv from product_spiders.item...
36
99
0.635648
261
2,160
5.103448
0.363985
0.045045
0.03003
0.038288
0.219219
0.193694
0.172673
0.172673
0.121622
0.121622
0
0.009158
0.241667
2,160
60
100
36
0.804029
0.013889
0
0.130435
0
0
0.153738
0.071932
0
0
0
0
0
1
0.043478
false
0
0.26087
0
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4872bfc5ea2ebaa9569179a301218bcadb5ad3d
8,965
py
Python
old/old_another_small_jobshop_dwave_another_example.py
MiRudnik/quantum_optimization
9c63c9164d9a8620d7610cc0576a1e3ee7319d98
[ "MIT" ]
null
null
null
old/old_another_small_jobshop_dwave_another_example.py
MiRudnik/quantum_optimization
9c63c9164d9a8620d7610cc0576a1e3ee7319d98
[ "MIT" ]
null
null
null
old/old_another_small_jobshop_dwave_another_example.py
MiRudnik/quantum_optimization
9c63c9164d9a8620d7610cc0576a1e3ee7319d98
[ "MIT" ]
1
2021-07-13T21:50:53.000Z
2021-07-13T21:50:53.000Z
import numpy as np # Set Q for the problem QUBO from utils.jobshop_helpers import get_machine_and_time_slot, get_operation_length, is_last_row, get_qubits_from_slot_and_machine, \ get_time_slot def main(): # qubo_matrix = np.zeros((40,40)) jobs = [[2, 1], [1,2]] j_flat = [] for job in jobs: j_fla...
46.21134
139
0.62164
1,298
8,965
4.026194
0.128659
0.065825
0.068886
0.026789
0.497321
0.368733
0.309606
0.250287
0.216992
0.216992
0
0.092547
0.232236
8,965
193
140
46.450777
0.666715
0.353374
0
0.14
0
0
0.013082
0
0
0
0
0
0
1
0.07
false
0
0.02
0
0.15
0.06
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a48740f19c411c12d63473995b985326be58c92a
425
py
Python
sensors/TemperaturaDHT11.py
tec-csf/reto-iot-en-supermercado-2019-nova-iot-supermarket
0eb643132478a06477404dcd86c4359869ec7d81
[ "MIT" ]
1
2019-10-28T14:58:14.000Z
2019-10-28T14:58:14.000Z
sensors/TemperaturaDHT11.py
tec-csf/reto-iot-en-supermercado-2019-nova-iot-supermarket
0eb643132478a06477404dcd86c4359869ec7d81
[ "MIT" ]
null
null
null
sensors/TemperaturaDHT11.py
tec-csf/reto-iot-en-supermercado-2019-nova-iot-supermarket
0eb643132478a06477404dcd86c4359869ec7d81
[ "MIT" ]
null
null
null
import Adafruit_DHT sensor = Adafruit_DHT.DHT11 pin_temp = 3 def temperatura(pin_temp): temperature = 0 if (temperature <=22): humidity, temperature = Adafruit_DHT.read_retry(sensor, pin_temp) if humidity is not None and temperature is not None: print('Temp={0:0.1f}*C Humidity={1:0....
38.636364
86
0.663529
59
425
4.661017
0.559322
0.12
0.065455
0
0
0
0
0
0
0
0
0.036585
0.228235
425
11
87
38.636364
0.801829
0
0
0
0
0
0.159624
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.181818
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a48881351fb66e53f1af28f4da440b46709db632
2,428
py
Python
N-MOS_transistor_by_Python/I-V_Characteristics_n-MOSFET.py
yasser296/Python-Projects
eae3598e2d4faf08d9def92c8b417c2e7946c5f4
[ "MIT" ]
null
null
null
N-MOS_transistor_by_Python/I-V_Characteristics_n-MOSFET.py
yasser296/Python-Projects
eae3598e2d4faf08d9def92c8b417c2e7946c5f4
[ "MIT" ]
null
null
null
N-MOS_transistor_by_Python/I-V_Characteristics_n-MOSFET.py
yasser296/Python-Projects
eae3598e2d4faf08d9def92c8b417c2e7946c5f4
[ "MIT" ]
null
null
null
from numpy import arange from matplotlib import pyplot , figure # Kn = Kn' * W/L 4 Kn=1e-3 # Vth is th threshold voltagee Vth = 1.5 # Sweep drain to source voltge from 0 to 12V Vds = arange(0, 12, 0.1).tolist() Vgs = [4 , 6 , 8 , 10 ] Id = list() # Drain Current Id (A) for I in range(1,len(Vgs)+1) : Id.append...
22.90566
119
0.639209
415
2,428
3.650602
0.293976
0.023762
0.032343
0.021782
0.129373
0.106271
0.067987
0.056766
0.056766
0
0
0.045158
0.17916
2,428
105
120
23.12381
0.715003
0.189456
0
0.072727
0
0
0.083419
0.012873
0
0
0
0
0
1
0
false
0
0.036364
0
0.036364
0.109091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a488bfa5aa832da083db4e6b51c66de316b8a1a6
7,652
py
Python
mods/default/client/gui/game_overlays.py
mpbagot/hsc-major-project-code
eaa69bf566b5b34ae7d4aa78504f97576fa2bb1c
[ "MIT" ]
4
2018-04-17T11:55:06.000Z
2021-02-25T16:03:47.000Z
mods/default/client/gui/game_overlays.py
mpbagot/mata
eaa69bf566b5b34ae7d4aa78504f97576fa2bb1c
[ "MIT" ]
null
null
null
mods/default/client/gui/game_overlays.py
mpbagot/mata
eaa69bf566b5b34ae7d4aa78504f97576fa2bb1c
[ "MIT" ]
null
null
null
""" game_overlays.py A module containing the GUI overlays of the default client game """ # Import the Modding API from api.gui.gui import * from api.gui.objects import * from api.colour import * from api.packets import SendCommandPacket # Import stuff from the mod modules from mods.default.client.gui.extras import * f...
40.062827
127
0.595792
958
7,652
4.719207
0.263048
0.075205
0.030967
0.02787
0.304357
0.210573
0.201504
0.16921
0.076753
0.072329
0
0.080835
0.267642
7,652
190
128
40.273684
0.72591
0.122321
0
0.151261
0
0
0.035463
0.017208
0
0
0
0
0
1
0.07563
false
0.008403
0.05042
0
0.159664
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a488cd89e65f252e4c293f2398293943079200dc
11,362
py
Python
JumpscaleLib/tools/docsite/Doc.py
threefoldtech/jumpscale_lib9
03c1451133d777e5af106fcc6f75c1138bb997f2
[ "Apache-2.0" ]
null
null
null
JumpscaleLib/tools/docsite/Doc.py
threefoldtech/jumpscale_lib9
03c1451133d777e5af106fcc6f75c1138bb997f2
[ "Apache-2.0" ]
220
2018-07-29T08:37:17.000Z
2019-08-05T15:01:27.000Z
JumpscaleLib/tools/docsite/Doc.py
threefoldtech/jumpscale_lib9
03c1451133d777e5af106fcc6f75c1138bb997f2
[ "Apache-2.0" ]
1
2018-08-20T09:16:08.000Z
2018-08-20T09:16:08.000Z
from .Link import Link from jumpscale import j import toml import copy JSBASE = j.application.jsbase_get_class() class Doc(JSBASE): """ """ def __init__(self, path, name, docsite): JSBASE.__init__(self) self.path = path self.docsite = docsite self.cat = "" if "/...
33.417647
114
0.535557
1,378
11,362
4.285922
0.177794
0.021673
0.008127
0.006773
0.255842
0.219777
0.198273
0.174738
0.142736
0.113613
0
0.004175
0.346506
11,362
339
115
33.516224
0.791246
0.135011
0
0.209205
0
0.004184
0.065052
0.005847
0
0
0
0.00295
0
1
0.108787
false
0
0.020921
0.016736
0.259414
0.012552
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a48bcd95f6ff3785768fc221bb5436bed3d1d5bd
1,937
py
Python
tally_ho/apps/tally/views/reports/races.py
crononauta/tally-ho
ba2207bfaef27bee3ff13a393983ca493f767238
[ "Apache-2.0" ]
null
null
null
tally_ho/apps/tally/views/reports/races.py
crononauta/tally-ho
ba2207bfaef27bee3ff13a393983ca493f767238
[ "Apache-2.0" ]
null
null
null
tally_ho/apps/tally/views/reports/races.py
crononauta/tally-ho
ba2207bfaef27bee3ff13a393983ca493f767238
[ "Apache-2.0" ]
null
null
null
from django.views.generic import TemplateView from guardian.mixins import LoginRequiredMixin from tally_ho.libs.views.exports import valid_ballots from tally_ho.libs.permissions import groups from tally_ho.libs.reports import progress as p from tally_ho.libs.views import mixins class RacesReportView(LoginRequiredMix...
33.396552
64
0.587506
199
1,937
5.507538
0.39196
0.051095
0.040146
0.054745
0.036496
0
0
0
0
0
0
0.003053
0.323696
1,937
57
65
33.982456
0.833588
0
0
0
0
0
0.083634
0
0
0
0
0
0
1
0.043478
false
0
0.130435
0
0.282609
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a48e2876e063fca41404c9b42cd9234687e02f29
1,251
py
Python
psono/restapi/serializers/share_right_accept.py
dirigeant/psono-server
a18c5b3c4d8bbbe4ecf1615b210d99fb77752205
[ "Apache-2.0", "CC0-1.0" ]
48
2018-04-19T15:50:58.000Z
2022-01-23T15:58:11.000Z
psono/restapi/serializers/share_right_accept.py
dirigeant/psono-server
a18c5b3c4d8bbbe4ecf1615b210d99fb77752205
[ "Apache-2.0", "CC0-1.0" ]
9
2018-09-13T14:56:18.000Z
2020-01-17T16:44:33.000Z
psono/restapi/serializers/share_right_accept.py
dirigeant/psono-server
a18c5b3c4d8bbbe4ecf1615b210d99fb77752205
[ "Apache-2.0", "CC0-1.0" ]
11
2019-09-20T11:53:47.000Z
2021-07-18T22:41:31.000Z
from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers, exceptions from ..fields import UUIDField from ..models import User_Share_Right class ShareRightAcceptSerializer(serializers.Serializer): share_right_id = UUIDField(required=True) key = serializers.CharField(max_...
40.354839
132
0.718625
160
1,251
5.39375
0.4625
0.115875
0.097335
0.100811
0.17613
0.17613
0.17613
0
0
0
0
0.007937
0.194245
1,251
31
133
40.354839
0.848214
0
0
0.090909
0
0.045455
0.159744
0
0
0
0
0
0
1
0.045455
false
0
0.181818
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
a48f32363a4214c8c84b8ccdfb70d7f2134e405c
3,086
py
Python
nb_cli/prompts/input.py
cdlaimin/nb-cli
b428a9a24091c072accedbeee56064c6a3cfd15a
[ "MIT" ]
88
2020-10-02T07:16:06.000Z
2022-03-30T01:24:36.000Z
nb_cli/prompts/input.py
cdlaimin/nb-cli
b428a9a24091c072accedbeee56064c6a3cfd15a
[ "MIT" ]
13
2021-01-28T03:14:35.000Z
2022-01-15T11:47:21.000Z
nb_cli/prompts/input.py
cdlaimin/nb-cli
b428a9a24091c072accedbeee56064c6a3cfd15a
[ "MIT" ]
11
2021-03-11T15:12:23.000Z
2022-01-13T10:09:18.000Z
from typing import Callable, Optional from prompt_toolkit.styles import Style from prompt_toolkit.buffer import Buffer from prompt_toolkit.layout import Layout from prompt_toolkit.lexers import SimpleLexer from prompt_toolkit.application import get_app from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolki...
29.390476
75
0.571614
304
3,086
5.736842
0.315789
0.063073
0.107225
0.039564
0.036697
0
0
0
0
0
0
0.00381
0.319507
3,086
104
76
29.673077
0.809524
0.053791
0
0.025
0
0
0.038128
0
0
0
0
0
0
1
0.1125
false
0
0.1625
0.0125
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a492c95951a23587cee545058f4a9aba5d476ad7
4,880
py
Python
IMU/VTK-6.2.0/IO/Geometry/Testing/Python/motor.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
4
2016-03-30T14:31:52.000Z
2019-02-02T05:01:32.000Z
IMU/VTK-6.2.0/IO/Geometry/Testing/Python/motor.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
null
null
null
IMU/VTK-6.2.0/IO/Geometry/Testing/Python/motor.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
2
2019-08-30T23:36:13.000Z
2019-11-08T16:52:01.000Z
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() def GetRGBColor(colorName): ''' Return the red, green and blue components for a color as doubles. ''' rgb = [0.0, 0.0, 0.0] # black vtk.vt...
28.208092
62
0.7625
522
4,880
7.095785
0.314176
0.012959
0.015389
0.015119
0.071544
0.070194
0.066415
0.012419
0
0
0
0.050577
0.112705
4,880
172
63
28.372093
0.80485
0.084836
0
0
0
0
0.029647
0
0
0
0
0
0
1
0.008547
false
0
0.025641
0
0.042735
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4945675fa5668b6a6e7a48d03c92355e85e8193
3,787
py
Python
Liver_disease/liver_prediction.py
R3DDY97/kaggle_kernels
8a5a456612bdae712e58188d407714c7cfd04849
[ "MIT" ]
null
null
null
Liver_disease/liver_prediction.py
R3DDY97/kaggle_kernels
8a5a456612bdae712e58188d407714c7cfd04849
[ "MIT" ]
null
null
null
Liver_disease/liver_prediction.py
R3DDY97/kaggle_kernels
8a5a456612bdae712e58188d407714c7cfd04849
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pandas as pd # import numpy as np from sklearn import (svm, preprocessing) from sklearn.model_selection import train_test_split, KFold from sklearn.metrics import (recall_score, precision_score, accuracy_score, confusion_matrix,) #precision_recall_curve,auc,roc_auc_score,roc_curve,recall_...
38.252525
97
0.686295
480
3,787
5.1875
0.3375
0.02249
0.031325
0.027309
0.219277
0.165462
0.08755
0.060241
0
0
0
0.015873
0.184843
3,787
98
98
38.642857
0.790735
0.40375
0
0
0
0
0.139189
0.069369
0
0
0
0
0
1
0.042553
false
0
0.12766
0
0.170213
0.085106
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4951993c951ee5441f92978fa0bae320459a650
570
py
Python
practicalnlp/settings.py
paulomann/practical-nlp-pytorch
7c6b3612599a4d74bf8d1acdd8a8bd25446b526b
[ "MIT" ]
null
null
null
practicalnlp/settings.py
paulomann/practical-nlp-pytorch
7c6b3612599a4d74bf8d1acdd8a8bd25446b526b
[ "MIT" ]
null
null
null
practicalnlp/settings.py
paulomann/practical-nlp-pytorch
7c6b3612599a4d74bf8d1acdd8a8bd25446b526b
[ "MIT" ]
1
2019-09-24T17:13:35.000Z
2019-09-24T17:13:35.000Z
from os.path import dirname, join ROOT = dirname(dirname(__file__)) DATA = join(ROOT, 'data') TRAIN_DATA = join(DATA, 'sst2', 'stsa.binary.phrases.train') VALIDATION_DATA = join(DATA, 'sst2', 'stsa.binary.dev') TEST_DATA = join(DATA, 'sst2', 'stsa.binary.test') PRETRAINED_EMBEDDINGS_FILE = join(DATA, 'GoogleNews-vecto...
43.846154
77
0.738596
83
570
4.879518
0.361446
0.138272
0.177778
0.118519
0.377778
0.377778
0
0
0
0
0
0.017341
0.089474
570
13
78
43.846154
0.763006
0
0
0
0
0
0.336252
0.103328
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a495964d82d25e210cda079c174cec9fcd420d1c
2,447
py
Python
Tools/extract-sfc.py
Navasnaz/mib2-toolbox
732f859d0dbb94dcf5c0d8388c959b7389a4c4f0
[ "MIT" ]
339
2019-09-18T21:46:50.000Z
2022-03-31T07:50:04.000Z
Tools/extract-sfc.py
Navasnaz/mib2-toolbox
732f859d0dbb94dcf5c0d8388c959b7389a4c4f0
[ "MIT" ]
188
2019-09-19T23:09:49.000Z
2022-03-30T20:21:34.000Z
Tools/extract-sfc.py
Navasnaz/mib2-toolbox
732f859d0dbb94dcf5c0d8388c959b7389a4c4f0
[ "MIT" ]
115
2019-09-19T19:49:15.000Z
2022-03-12T21:10:00.000Z
# ---------------------------------------------------------- # --- Quick 'n' dirty CFF file extractor # # File: extract-sfc.py # Author: Jille # Revision: 1 # Purpose: MIB2 sfc file exporter # Comments: Usage: extract-sfc.py <filename> <outdir> # Changelog: First version # -------------------...
23.304762
115
0.591336
351
2,447
4.037037
0.390313
0.05928
0.01976
0.023289
0.079746
0.043754
0
0
0
0
0
0.02069
0.229669
2,447
104
116
23.528846
0.731034
0.251328
0
0
0
0
0.16097
0
0
0
0
0
0
1
0.015625
false
0
0.09375
0
0.109375
0.109375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a4991ee5bb3a8049313bf554b77dbf8520f3ded7
2,374
py
Python
actions/lib/base.py
StackStorm-Exchange/powerdns
13879e0e66b29a466d82c1077a1d4abde69c0d3e
[ "Apache-2.0" ]
null
null
null
actions/lib/base.py
StackStorm-Exchange/powerdns
13879e0e66b29a466d82c1077a1d4abde69c0d3e
[ "Apache-2.0" ]
null
null
null
actions/lib/base.py
StackStorm-Exchange/powerdns
13879e0e66b29a466d82c1077a1d4abde69c0d3e
[ "Apache-2.0" ]
1
2021-12-01T14:49:27.000Z
2021-12-01T14:49:27.000Z
# coding=utf-8 from st2common import log as logging from st2common.runners.base_action import Action from powerdns.exceptions import PDNSCanonicalError, PDNSError import powerdns __all__ = ["PowerDNSClient"] LOG = logging.getLogger(__name__) class PowerDNSClientError(Exception): def __init__(self, message): ...
28.95122
73
0.603201
267
2,374
5.116105
0.314607
0.061493
0.016105
0.019034
0
0
0
0
0
0
0
0.00299
0.295703
2,374
81
74
29.308642
0.813995
0.016428
0
0.081967
0
0
0.051887
0
0
0
0
0
0
1
0.114754
false
0.032787
0.065574
0
0.262295
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0