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
66d8ba6f365049a80533d4986a5c2cf0bb77bfb0
2,561
py
Python
config/jupyter/jupyterhub_config.py
mhwasil/jupyterhub-on-gcloud
9cfe935772d7599fa36c5b998cebb87c17e24277
[ "MIT" ]
3
2018-10-06T20:35:08.000Z
2019-03-02T08:04:52.000Z
config/jupyter/jupyterhub_config.py
mhwasil/jupyterhub-on-gcloud
9cfe935772d7599fa36c5b998cebb87c17e24277
[ "MIT" ]
4
2019-05-15T11:36:43.000Z
2019-07-23T09:34:45.000Z
config/jupyter/jupyterhub_config.py
mhwasil/jupyterhub-on-gcloud
9cfe935772d7599fa36c5b998cebb87c17e24277
[ "MIT" ]
2
2020-01-09T21:03:44.000Z
2020-11-22T16:47:00.000Z
c = get_config() c.JupyterHub.ip = u'127.0.0.1' c.JupyterHub.port = 8000 c.JupyterHub.cookie_secret_file = u'/srv/jupyterhub/jupyterhub_cookie_secret' c.JupyterHub.db_url = u'/srv/jupyterhub/jupyterhub.sqlite' #c.JupyterHub.proxy_auth_token = u'/srv/jupyterhub/proxy_auth_token' c.ConfigurableHTTPProxy.auth_token = u'/s...
31.617284
78
0.643108
306
2,561
5.245098
0.362745
0.061682
0.034891
0.011215
0.196885
0.196885
0.145794
0.085981
0.085981
0
0
0.023245
0.193674
2,561
80
79
32.0125
0.753995
0.335025
0
0
0
0
0.286312
0.092648
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
66d95353965e38496015e85b754a89803b392d87
11,908
py
Python
legacy/Environment.py
LaoKpa/reinforcement_trader
1465731269e6d58900a28a040346bf45ffb5cf97
[ "MIT" ]
7
2020-09-28T23:36:40.000Z
2022-02-22T02:00:32.000Z
legacy/Environment.py
LaoKpa/reinforcement_trader
1465731269e6d58900a28a040346bf45ffb5cf97
[ "MIT" ]
4
2020-11-13T18:48:52.000Z
2022-02-10T01:29:47.000Z
legacy/Environment.py
lzcaisg/reinforcement_trader
1465731269e6d58900a28a040346bf45ffb5cf97
[ "MIT" ]
3
2020-11-23T17:31:59.000Z
2021-04-08T10:55:03.000Z
import datetime import warnings import pandas as pd import numpy as np from MongoDBUtils import * from scipy.optimize import fsolve import pymongo TRADING_FEE = 0.008 EARLIEST_DATE = datetime.datetime(2014, 10, 17) LATEST_DATE = datetime.datetime(2019, 10, 17) # In any cases, we shouldn't know today's and future val...
36.527607
141
0.570037
1,161
11,908
5.761413
0.226529
0.069069
0.008222
0.020631
0.380625
0.311855
0.311855
0.237405
0.22395
0.204814
0
0.01911
0.318861
11,908
325
142
36.64
0.805573
0.169718
0
0.477778
0
0.005556
0.175005
0.061722
0
0
0
0
0
1
0.061111
false
0.005556
0.038889
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
66d9e2205d4a01f644f0a6147e2760e0d6b2de38
579
py
Python
examples/Titanic/titanic.py
mlflow/mlflow-torchserve
91663b630ef12313da3ad821767faf3fc409345b
[ "Apache-2.0" ]
40
2020-11-13T02:08:10.000Z
2022-03-27T07:41:57.000Z
examples/Titanic/titanic.py
Ideas2IT/mlflow-torchserve
d6300fb73f16d74ee2c7718c249faf485c4f3b62
[ "Apache-2.0" ]
23
2020-11-16T11:28:01.000Z
2021-09-23T11:28:24.000Z
examples/Titanic/titanic.py
Ideas2IT/mlflow-torchserve
d6300fb73f16d74ee2c7718c249faf485c4f3b62
[ "Apache-2.0" ]
15
2020-11-13T10:25:25.000Z
2022-02-01T10:13:20.000Z
import torch.nn as nn class TitanicSimpleNNModel(nn.Module): def __init__(self): super().__init__() self.linear1 = nn.Linear(12, 12) self.sigmoid1 = nn.Sigmoid() self.linear2 = nn.Linear(12, 8) self.sigmoid2 = nn.Sigmoid() self.linear3 = nn.Linear(8, 2) self...
30.473684
64
0.62867
76
579
4.605263
0.407895
0.068571
0.057143
0
0
0
0
0
0
0
0
0.059633
0.246978
579
18
65
32.166667
0.743119
0
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
66dcca39ba0172f5d72111b99f2df6a26ed3cb02
6,431
py
Python
src/Datasets.py
fauxneticien/bnf_cnn_qbe-std
ab7dcb9c9d3d8969f1f17aaa87b7337d3ccfcc30
[ "MIT" ]
4
2021-03-26T17:18:59.000Z
2022-03-21T18:28:56.000Z
src/Datasets.py
fauxneticien/bnf_cnn_qbe-std
ab7dcb9c9d3d8969f1f17aaa87b7337d3ccfcc30
[ "MIT" ]
1
2021-11-02T17:29:46.000Z
2021-11-02T17:29:46.000Z
src/Datasets.py
fauxneticien/bnf_cnn_qbe-std
ab7dcb9c9d3d8969f1f17aaa87b7337d3ccfcc30
[ "MIT" ]
1
2020-11-11T05:04:55.000Z
2020-11-11T05:04:55.000Z
import os import torch import numpy as np import pandas as pd from torch.utils.data import Dataset, DataLoader from scipy.spatial.distance import cdist import logging class STD_Dataset(Dataset): """Spoken Term Detection dataset.""" def __init__(self, root_dir, labels_csv, query_dir, audio_dir, apply_vad = Fal...
51.448
133
0.640647
958
6,431
4.102296
0.232777
0.028499
0.033079
0.024936
0.31374
0.284478
0.246819
0.207125
0.175064
0.09771
0
0.011684
0.254704
6,431
124
134
51.862903
0.808262
0.263412
0
0.028986
0
0
0.063239
0
0
0
0
0
0
1
0.057971
false
0
0.101449
0.014493
0.231884
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
66de338a8afcfc34368f70df12c0187b512a7430
3,209
py
Python
dmz/store.py
yuvipanda/edit-stats
fb096715f18df999b4af4fb116e6c4130f24c2ec
[ "MIT" ]
null
null
null
dmz/store.py
yuvipanda/edit-stats
fb096715f18df999b4af4fb116e6c4130f24c2ec
[ "MIT" ]
null
null
null
dmz/store.py
yuvipanda/edit-stats
fb096715f18df999b4af4fb116e6c4130f24c2ec
[ "MIT" ]
null
null
null
"""Implements a db backed storage area for intermediate results""" import sqlite3 class Store(object): """ Represents an sqlite3 backed storage area that's vaguely key value modeled for intermediate storage about metadata / data for metrics about multiple wikis that have some underlying country relate...
38.662651
111
0.600499
422
3,209
4.469194
0.234597
0.059385
0.034995
0.040297
0.530223
0.416755
0.347296
0.274655
0.136797
0.116119
0
0.00262
0.286382
3,209
82
112
39.134146
0.820961
0.229355
0
0.423077
0
0
0.313577
0
0
0
0
0
0
1
0.153846
false
0
0.019231
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
66e356546289b5293424a7a6ad3ffb4afce031ec
7,074
py
Python
main.py
usdot-its-jpo-data-portal/metadata-query-function
589e5df691fab82e264ce74196dd797b9eb17f5e
[ "Apache-2.0" ]
null
null
null
main.py
usdot-its-jpo-data-portal/metadata-query-function
589e5df691fab82e264ce74196dd797b9eb17f5e
[ "Apache-2.0" ]
null
null
null
main.py
usdot-its-jpo-data-portal/metadata-query-function
589e5df691fab82e264ce74196dd797b9eb17f5e
[ "Apache-2.0" ]
1
2021-12-14T18:00:20.000Z
2021-12-14T18:00:20.000Z
import boto3 import dateutil import glob import json import logging import os import queue import time from queries import MetadataQueries USE_LOCAL_DATA = True # whether to load data from S3 (false) or locally (true) LOCAL_DATA_REPOSITORY = "s3data/usdot-its-cvpilot-public-data" # path to local directory containing s...
46.235294
227
0.669918
931
7,074
4.789474
0.201933
0.009868
0.009419
0.037677
0.393137
0.230994
0.184571
0.130971
0.058309
0.058309
0
0.024844
0.209075
7,074
152
228
46.539474
0.772118
0.052446
0
0.155039
0
0.007752
0.253555
0.073342
0
0
0
0
0
1
0.03876
false
0
0.069767
0
0.170543
0.186047
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
66e36f3c188b5158455460f11322fdc4021ffe06
1,070
py
Python
example_config/SecretConfig.py
axiegamingph-dev/discordaxieqrbot
fac9b3f325b98d21ece12445ec798c125d06f788
[ "MIT" ]
null
null
null
example_config/SecretConfig.py
axiegamingph-dev/discordaxieqrbot
fac9b3f325b98d21ece12445ec798c125d06f788
[ "MIT" ]
null
null
null
example_config/SecretConfig.py
axiegamingph-dev/discordaxieqrbot
fac9b3f325b98d21ece12445ec798c125d06f788
[ "MIT" ]
2
2022-01-13T18:45:26.000Z
2022-03-03T11:50:43.000Z
Managers = ['Shim', 'Mike', 'Ryan', 'Kevin', 'Wessa', 'ser0wl'] # google spreedsheet id ISKO_SPREADSHEET_ID = '' # the list of names with discord ID ISKO_DiscordAccount = 'DiscordAccount!A2:B100' # the list of Names, ronin address, ronin private keys # eg: # Name | Address | Privat...
33.4375
94
0.699065
119
1,070
6.210084
0.537815
0.024357
0.044655
0.037889
0
0
0
0
0
0
0
0.138824
0.205607
1,070
31
95
34.516129
0.730588
0.67757
0
0
0
0
0.256098
0.134146
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
66e492eef799f5d354e84f2867ee89f9c4cd7b7a
200
py
Python
tests/button_test.py
almasgai/Drone
1223375976baf79d0f4362d42287d1a4039ba1e9
[ "MIT" ]
null
null
null
tests/button_test.py
almasgai/Drone
1223375976baf79d0f4362d42287d1a4039ba1e9
[ "MIT" ]
null
null
null
tests/button_test.py
almasgai/Drone
1223375976baf79d0f4362d42287d1a4039ba1e9
[ "MIT" ]
null
null
null
from gpiozero import Button import os from time import sleep button = Button(2) i = 0 while True: if button.is_pressed: print(i, ". I've been pressed") i += 1 sleep(0.1)
15.384615
39
0.61
32
200
3.78125
0.59375
0
0
0
0
0
0
0
0
0
0
0.035461
0.295
200
12
40
16.666667
0.822695
0
0
0
0
0
0.095
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
66e5419754e56410c068112926f27e01cdae86bb
820
py
Python
reprojection.py
ekrell/nir2watermap
5253f2cde142a62103eb06fb2931c9aed6431211
[ "MIT" ]
null
null
null
reprojection.py
ekrell/nir2watermap
5253f2cde142a62103eb06fb2931c9aed6431211
[ "MIT" ]
null
null
null
reprojection.py
ekrell/nir2watermap
5253f2cde142a62103eb06fb2931c9aed6431211
[ "MIT" ]
null
null
null
import rasterio from rasterio.plot import show, reshape_as_raster, reshape_as_image, adjust_band from rasterio import warp import numpy as np def reprojectio(img, bounds, transform, projection = "epsg:4326", resolution = 0.00001): # Reproject transform, width, height = warp.calculate_default_transform( \ ...
37.272727
91
0.680488
105
820
5.180952
0.47619
0.044118
0.033088
0
0
0
0
0
0
0
0
0.032061
0.20122
820
21
92
39.047619
0.798473
0.010976
0
0
0
0
0.032178
0
0
0
0
0
0
1
0.0625
false
0
0.25
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
66e80248874252f8ee1fc31cfa1763523a5f99eb
4,034
py
Python
opentsdb/push_thread.py
razvandimescu/opentsdb-py
61c15302468769121f94323493e88cb51efcea15
[ "MIT" ]
48
2016-12-27T10:11:41.000Z
2021-11-15T16:05:24.000Z
opentsdb/push_thread.py
razvandimescu/opentsdb-py
61c15302468769121f94323493e88cb51efcea15
[ "MIT" ]
8
2017-10-08T16:20:30.000Z
2022-02-23T08:36:52.000Z
opentsdb/push_thread.py
razvandimescu/opentsdb-py
61c15302468769121f94323493e88cb51efcea15
[ "MIT" ]
17
2017-10-01T01:14:55.000Z
2021-11-15T16:05:24.000Z
from logging import getLogger from queue import Empty import threading import random import time logger = getLogger('opentsdb-py') class PushThread(threading.Thread): WAIT_NEXT_METRIC_TIMEOUT = 3 def __init__(self, tsdb_connect, metrics_queue, close_client, send_metrics_limit, send_metrics...
32.015873
119
0.617005
459
4,034
5.141612
0.213508
0.074576
0.047458
0.050847
0.359322
0.236441
0.174576
0.144915
0.144915
0.144915
0
0.003892
0.299455
4,034
125
120
32.272
0.83121
0
0
0.285714
0
0
0.03297
0
0
0
0
0
0
1
0.122449
false
0.010204
0.05102
0.010204
0.244898
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
66ee56f212ce0df2c239268cabb21b8541c895a2
1,063
py
Python
Week02/Assignment/jstoppelman_01.py
nkruyer/SkillsWorkshop2018
2201255ff63eca111635789267d0600a95854c38
[ "BSD-3-Clause" ]
1
2020-04-18T03:30:46.000Z
2020-04-18T03:30:46.000Z
Week02/Assignment/jstoppelman_01.py
nkruyer/SkillsWorkshop2018
2201255ff63eca111635789267d0600a95854c38
[ "BSD-3-Clause" ]
21
2018-07-12T19:12:23.000Z
2018-08-10T13:52:45.000Z
Week02/Assignment/jstoppelman_01.py
nkruyer/SkillsWorkshop2018
2201255ff63eca111635789267d0600a95854c38
[ "BSD-3-Clause" ]
60
2018-05-08T16:59:20.000Z
2018-08-01T14:28:28.000Z
#!/usr/bin/env python import matplotlib.pyplot as plt import numpy as np from scipy.integrate import simps from scipy.optimize import curve_fit def curve3(x,a,b,c,d): return a*x**3+b*x**2+c*x+d def BIC(y, yhat, k, weight = 1): err = y - yhat sigma = np.std(np.real(err)) n = len(y) B = n*np.log(sigm...
26.575
125
0.590781
235
1,063
2.659574
0.4
0.056
0.0624
0
0
0
0
0
0
0
0
0.130045
0.160865
1,063
39
126
27.25641
0.570628
0.047037
0
0
0
0
0.039604
0
0
0
0
0
0
1
0.0625
false
0
0.125
0.03125
0.25
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
66f14722457fd9966ac9b7749eb637bceaf702bb
5,464
py
Python
websauna/system/devop/cmdline.py
stevepiercy/websauna
2886b86f7920d75900c634958779d61aa73f011b
[ "CNRI-Python" ]
null
null
null
websauna/system/devop/cmdline.py
stevepiercy/websauna
2886b86f7920d75900c634958779d61aa73f011b
[ "CNRI-Python" ]
null
null
null
websauna/system/devop/cmdline.py
stevepiercy/websauna
2886b86f7920d75900c634958779d61aa73f011b
[ "CNRI-Python" ]
null
null
null
"""Helper functions to initializer Websauna framework for command line applications.""" # Standard Library import logging import os import sys import typing as t # Pyramid import plaster from pyramid import router from pyramid import scripting from rainbow_logging_handler import RainbowLoggingHandler # Websauna from...
31.583815
124
0.731149
705
5,464
5.516312
0.29078
0.06017
0.023142
0.016971
0.244279
0.217537
0.198509
0.198509
0.181538
0.181538
0
0.000449
0.184846
5,464
172
125
31.767442
0.872699
0.380307
0
0.197183
0
0
0.084914
0.012442
0
0
0
0.005814
0.014085
1
0.098592
false
0
0.169014
0
0.338028
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd0515ae81e31b3081572aafa51d5253637ae85f
2,010
py
Python
src/apd/aggregation/actions/base.py
MatthewWilkes/apd.aggregation
427fa908f45332d623295f92e1ccfdaf545d6997
[ "BSD-3-Clause" ]
null
null
null
src/apd/aggregation/actions/base.py
MatthewWilkes/apd.aggregation
427fa908f45332d623295f92e1ccfdaf545d6997
[ "BSD-3-Clause" ]
11
2020-11-23T21:36:48.000Z
2022-03-12T00:48:58.000Z
src/apd/aggregation/actions/base.py
MatthewWilkes/apd.aggregation
427fa908f45332d623295f92e1ccfdaf545d6997
[ "BSD-3-Clause" ]
1
2020-08-09T01:47:59.000Z
2020-08-09T01:47:59.000Z
import typing as t from ..typing import T_value from ..database import DataPoint from ..exceptions import NoDataForTrigger class Trigger(t.Generic[T_value]): name: str async def start(self) -> None: """Coroutine to do any initial setup""" return async def match(self, datapoint: DataPoin...
31.904762
77
0.636816
235
2,010
5.412766
0.365957
0.037736
0.069182
0.02673
0.290881
0.290881
0.246855
0.246855
0.246855
0.246855
0
0
0.288557
2,010
62
78
32.419355
0.88951
0.031841
0
0.3
0
0
0
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd05c5af3b4de9bb3a156483a19f52a9e8f9c454
1,056
py
Python
scripts/32_Model_Parse_SPRING/24_Collect_Test_Gold_Graphs.py
MeghaTiya/amrlib
61febbd1ed15d64e3f01126eaeea46211d42e738
[ "MIT" ]
null
null
null
scripts/32_Model_Parse_SPRING/24_Collect_Test_Gold_Graphs.py
MeghaTiya/amrlib
61febbd1ed15d64e3f01126eaeea46211d42e738
[ "MIT" ]
null
null
null
scripts/32_Model_Parse_SPRING/24_Collect_Test_Gold_Graphs.py
MeghaTiya/amrlib
61febbd1ed15d64e3f01126eaeea46211d42e738
[ "MIT" ]
1
2022-02-09T16:20:42.000Z
2022-02-09T16:20:42.000Z
#!/usr/bin/python3 import setup_run_dir # Set the working directory and python sys.path to 2 levels above import os from glob import glob from amrlib.graph_processing.amr_loading_raw import load_raw_amr # Collect all the amr graphs from multiple files and create a gold test file. # This simply concatenates fil...
37.714286
94
0.705492
167
1,056
4.299401
0.550898
0.061281
0.027855
0
0
0
0
0
0
0
0
0.004739
0.200758
1,056
27
95
39.111111
0.845972
0.35322
0
0
0
0
0.251479
0.156805
0
0
0
0
0
1
0
false
0
0.235294
0
0.235294
0.235294
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd0b8f696341df5e31ece62f9a50dbeb45afc875
5,175
py
Python
ProxyCrawl/ProxyCrawl/rules.py
Time1ess/ProxyPool
c44e74e8045fc560e5fe905aa41135ecb3e6da98
[ "MIT" ]
18
2017-04-25T09:39:08.000Z
2022-03-09T08:07:28.000Z
ProxyCrawl/ProxyCrawl/rules.py
ghosttyq/ProxyPool
c44e74e8045fc560e5fe905aa41135ecb3e6da98
[ "MIT" ]
null
null
null
ProxyCrawl/ProxyCrawl/rules.py
ghosttyq/ProxyPool
c44e74e8045fc560e5fe905aa41135ecb3e6da98
[ "MIT" ]
10
2017-05-29T00:53:41.000Z
2021-05-08T09:07:52.000Z
#!/usr/local/bin/python3 # coding: UTF-8 # Author: David # Email: youchen.du@gmail.com # Created: 2017-04-26 11:14 # Last modified: 2017-04-30 15:55 # Filename: rules.py # Description: import os import redis from scrapy.utils.conf import init_env from ProxyCrawl.settings import PROJECT_ROOT conn = redis.Redis(decod...
26.813472
79
0.565217
639
5,175
4.358372
0.261346
0.051706
0.021544
0.022621
0.155117
0.123519
0.123519
0.100539
0.075404
0.075404
0
0.009412
0.322512
5,175
192
80
26.953125
0.78494
0.182222
0
0.278846
0
0
0.093956
0
0
0
0
0
0
1
0.144231
false
0
0.038462
0.028846
0.307692
0.009615
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd118309b83096677693134bb6b0d70a964e1ab7
1,157
py
Python
fastquotes/fund/__init__.py
YangzhenZhao/fastquotes
1faba9f7fc7801a11359001e08cefa9cfbc41d64
[ "MIT" ]
4
2020-11-18T11:25:00.000Z
2021-04-08T01:02:49.000Z
fastquotes/fund/__init__.py
YangzhenZhao/fastquotes
1faba9f7fc7801a11359001e08cefa9cfbc41d64
[ "MIT" ]
null
null
null
fastquotes/fund/__init__.py
YangzhenZhao/fastquotes
1faba9f7fc7801a11359001e08cefa9cfbc41d64
[ "MIT" ]
1
2020-11-18T11:25:01.000Z
2020-11-18T11:25:01.000Z
import json import requests def fund_intro_dict() -> dict: headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" } url = "http://fund.eastmoney.com/js/fundcode_search.js" res = requests.get(ur...
29.666667
83
0.586863
158
1,157
4.158228
0.556962
0.048706
0.042618
0
0
0
0
0
0
0
0
0.053348
0.238548
1,157
38
84
30.447368
0.692395
0
0
0
0
0.030303
0.355229
0.075194
0
0
0
0
0
1
0.060606
false
0
0.060606
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd17680bbd248da6c5086919dd5e04da84e0dd2e
15,119
py
Python
udebs/interpret.py
recrm/Udebs
d7e8e248e7afaf6559f2a96ce5dd6e2698d65af7
[ "MIT" ]
6
2017-08-20T02:48:12.000Z
2020-09-04T21:46:35.000Z
udebs/interpret.py
recrm/Udebs
d7e8e248e7afaf6559f2a96ce5dd6e2698d65af7
[ "MIT" ]
null
null
null
udebs/interpret.py
recrm/Udebs
d7e8e248e7afaf6559f2a96ce5dd6e2698d65af7
[ "MIT" ]
1
2019-08-28T00:48:43.000Z
2019-08-28T00:48:43.000Z
import copy import json import itertools import os import operator from .errors import * # --------------------------------------------------- # Imports and Variables - # --------------------------------------------------- class Standard: """ Basic functionality wrappers. Do ...
25.031457
102
0.511674
1,610
15,119
4.750932
0.196894
0.045104
0.034514
0.035691
0.224605
0.16525
0.114786
0.114786
0.090469
0.077919
0
0.006142
0.343078
15,119
603
103
25.072968
0.763995
0.274092
0
0.220779
0
0
0.039885
0.002183
0
0
0
0.001658
0
1
0.116883
false
0.003247
0.042208
0.012987
0.347403
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd1a79c02a429daf639fa22cee8d29423011e935
12,150
py
Python
src/predict.py
yzhhome/JDProductSummaryGeneration
4939f061ca90ad7ddd69b5a1794735f962e45bc0
[ "MIT" ]
1
2021-09-18T07:42:36.000Z
2021-09-18T07:42:36.000Z
src/predict.py
yzhhome/JDProductSummaryGeneration
4939f061ca90ad7ddd69b5a1794735f962e45bc0
[ "MIT" ]
null
null
null
src/predict.py
yzhhome/JDProductSummaryGeneration
4939f061ca90ad7ddd69b5a1794735f962e45bc0
[ "MIT" ]
null
null
null
''' @Author: dzy @Date: 2021-09-13 11:07:48 @LastEditTime: 2021-09-26 20:25:17 @LastEditors: dzy @Description: Helper functions or classes used for the model. @FilePath: /JDProductSummaryGeneration/src/predict.py ''' import random import os import sys import pathlib import torch import jieba import config from model i...
38.087774
85
0.535885
1,336
12,150
4.701347
0.241766
0.030091
0.028976
0.009553
0.263652
0.251234
0.244865
0.219073
0.184047
0.152205
0
0.007599
0.382634
12,150
319
86
38.087774
0.829756
0.2893
0
0.251534
0
0
0.01507
0
0
0
0
0
0
1
0.030675
false
0
0.06135
0
0.122699
0.030675
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd1ed841552b8b3a90cb7777b80332b35c886661
7,621
py
Python
PySyft_dev/FL_BC/cryptolib/wrapper_pyca.py
samuelxu999/FederatedLearning_dev
354d951c53ee20eb41bf7980210d61b7a358d341
[ "MIT" ]
null
null
null
PySyft_dev/FL_BC/cryptolib/wrapper_pyca.py
samuelxu999/FederatedLearning_dev
354d951c53ee20eb41bf7980210d61b7a358d341
[ "MIT" ]
2
2021-03-17T23:27:00.000Z
2021-03-17T23:27:01.000Z
PySyft_dev/FL_BC/cryptolib/wrapper_pyca.py
samuelxu999/FederatedLearning_dev
354d951c53ee20eb41bf7980210d61b7a358d341
[ "MIT" ]
2
2019-04-23T22:13:18.000Z
2019-08-19T01:39:51.000Z
''' ======================== Wrapper_pyca module ======================== Created on Nov.7, 2017 @author: Xu Ronghua @Email: rxu22@binghamton.edu @TaskDescription: This module provide cryptography function based on pyca API. @Reference:https://cryptography.io/en/latest/ ''' from cryptography.fernet import Fernet from...
28.543071
124
0.746228
1,081
7,621
5.009251
0.152636
0.098061
0.035457
0.003693
0.384303
0.297507
0.253924
0.214958
0.189474
0.156233
0
0.004105
0.136859
7,621
266
125
28.650376
0.819094
0.142895
0
0.310345
0
0
0.045542
0
0
0
0
0
0
1
0.12931
false
0.034483
0.060345
0
0.327586
0.051724
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd1f85e853fc4ae8cfcfa14f28add26fec35c361
693
py
Python
src/utils/formatter.py
RuhuiCheng/ladybug
fa9e1ea660dd040d3ecfde96ad6c4db67df9bcb9
[ "Apache-2.0" ]
4
2020-03-14T10:43:29.000Z
2020-09-23T11:15:44.000Z
src/utils/formatter.py
RuhuiCheng/ladybug
fa9e1ea660dd040d3ecfde96ad6c4db67df9bcb9
[ "Apache-2.0" ]
null
null
null
src/utils/formatter.py
RuhuiCheng/ladybug
fa9e1ea660dd040d3ecfde96ad6c4db67df9bcb9
[ "Apache-2.0" ]
null
null
null
import logging import json from src.utils.ucm import app_id, env class JsonLogFormatter(logging.Formatter): def format(self, record): msg = '' if record.exc_text is None: msg = record.message else: msg = record.exc_text data = { 'app_id': ''+app...
26.653846
47
0.506494
70
693
4.871429
0.571429
0.043988
0.076246
0
0
0
0
0
0
0
0
0
0.340548
693
25
48
27.72
0.746171
0
0
0
0
0
0.082251
0
0
0
0
0
0
1
0.045455
false
0
0.136364
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd2300aac8a3080e89edc939e28aa0516c80f6a3
4,909
py
Python
wotpy/wot/dictionaries/thing.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
null
null
null
wotpy/wot/dictionaries/thing.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
null
null
null
wotpy/wot/dictionaries/thing.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Wrapper class for dictionaries to represent Things. """ import six from wotpy.wot.dictionaries.base import WotBaseDict from wotpy.wot.dictionaries.interaction import PropertyFragmentDict, ActionFragmentDict, EventFragmentDict from wotpy.wot.dictionaries.link import L...
29.932927
106
0.606233
546
4,909
5.355311
0.274725
0.035568
0.030096
0.032832
0.230848
0.188782
0.150137
0.115253
0.115253
0.076265
0
0.000293
0.303728
4,909
163
107
30.116564
0.855178
0.259931
0
0.333333
0
0
0.077648
0
0
0
0
0
0.009804
1
0.078431
false
0
0.078431
0
0.303922
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd25b254cf6453ad21e303d8fb8dc65ace25ddf6
1,131
py
Python
src/models/losses/corr_loss.py
yewzijian/RegTR
64e5b3f0ccc1e1a11b514eb22734959d32e0cec6
[ "MIT" ]
25
2022-03-28T06:26:16.000Z
2022-03-30T14:21:24.000Z
src/models/losses/corr_loss.py
yewzijian/RegTR
64e5b3f0ccc1e1a11b514eb22734959d32e0cec6
[ "MIT" ]
null
null
null
src/models/losses/corr_loss.py
yewzijian/RegTR
64e5b3f0ccc1e1a11b514eb22734959d32e0cec6
[ "MIT" ]
2
2022-03-29T09:37:50.000Z
2022-03-30T06:26:35.000Z
import torch import torch.nn as nn from utils.se3_torch import se3_transform_list _EPS = 1e-6 class CorrCriterion(nn.Module): """Correspondence Loss. """ def __init__(self, metric='mae'): super().__init__() assert metric in ['mse', 'mae'] self.metric = metric def forward(se...
27.585366
112
0.625111
155
1,131
4.270968
0.380645
0.074018
0.072508
0.049849
0.060423
0
0
0
0
0
0
0.013221
0.264368
1,131
40
113
28.275
0.782452
0.017683
0
0.076923
0
0
0.013649
0
0
0
0
0
0.038462
1
0.076923
false
0
0.115385
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd26b6dd687da7d2ec0ed40d629b6615e9538af8
501
py
Python
application/services/balance_service.py
singnet/token-balances-service
5e32b11bbad46e9df2820132026ab993935f8049
[ "MIT" ]
null
null
null
application/services/balance_service.py
singnet/token-balances-service
5e32b11bbad46e9df2820132026ab993935f8049
[ "MIT" ]
1
2021-04-07T14:40:02.000Z
2021-04-07T14:40:02.000Z
application/services/balance_service.py
singnet/token-balances-service
5e32b11bbad46e9df2820132026ab993935f8049
[ "MIT" ]
3
2021-04-07T14:12:00.000Z
2021-04-27T07:18:34.000Z
from infrastructure.repository.token_snapshot_repo import TokenSnapshotRepo from http import HTTPStatus def get_snapshot_by_address(address): balance = TokenSnapshotRepo().get_token_balance(address) if balance is None: data = None statusCode = HTTPStatus.BAD_REQUEST.value message = "A...
27.833333
75
0.718563
56
501
6.285714
0.553571
0.113636
0
0
0
0
0
0
0
0
0
0
0.223553
501
17
76
29.470588
0.904884
0
0
0
0
0
0.057884
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd272efee44a376502bf4522d14dd1625b93c91b
5,015
py
Python
vaccine_allocation/TN_proj.py
COVID-IWG/epimargin-studies
7d4a78e2e6713c6a0aea2cd2440529153e9a635d
[ "MIT" ]
null
null
null
vaccine_allocation/TN_proj.py
COVID-IWG/epimargin-studies
7d4a78e2e6713c6a0aea2cd2440529153e9a635d
[ "MIT" ]
null
null
null
vaccine_allocation/TN_proj.py
COVID-IWG/epimargin-studies
7d4a78e2e6713c6a0aea2cd2440529153e9a635d
[ "MIT" ]
null
null
null
from typing import Callable, Tuple from epimargin.models import SIR import pandas as pd from epimargin.estimators import analytical_MPVS from epimargin.etl.covid19india import data_path, get_time_series, load_all_data import epimargin.plots as plt from epimargin.smoothing import notched_smoothing from epimargin.utils ...
34.586207
131
0.656032
708
5,015
4.389831
0.269774
0.041828
0.016731
0.027027
0.220721
0.129987
0.045045
0
0
0
0
0.019652
0.208574
5,015
144
132
34.826389
0.763416
0.017348
0
0.017094
0
0
0.106439
0.041641
0
0
0
0
0
1
0.008547
false
0.008547
0.094017
0
0.111111
0.008547
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd28575d99501b8ab89e76a54053a882db38d79c
1,514
py
Python
backend/db/test/id_allocator_test.py
xuantan/viewfinder
992209086d01be0ef6506f325cf89b84d374f969
[ "Apache-2.0" ]
645
2015-01-03T02:03:59.000Z
2021-12-03T08:43:16.000Z
backend/db/test/id_allocator_test.py
hoowang/viewfinder
9caf4e75faa8070d85f605c91d4cfb52c4674588
[ "Apache-2.0" ]
null
null
null
backend/db/test/id_allocator_test.py
hoowang/viewfinder
9caf4e75faa8070d85f605c91d4cfb52c4674588
[ "Apache-2.0" ]
222
2015-01-07T05:00:52.000Z
2021-12-06T09:54:26.000Z
# Copyright 2011 Viewfinder Inc. All Rights Reserved. """Tests for IdAllocator data object. """ __author__ = 'spencer@emailscrubbed.com (Spencer Kimball)' import unittest from viewfinder.backend.base import util from viewfinder.backend.base.testing import async_test from viewfinder.backend.db.id_allocator import Id...
30.28
82
0.694188
205
1,514
4.960976
0.370732
0.035398
0.043265
0.041298
0.267453
0.220256
0.159292
0.082596
0
0
0
0.030303
0.193527
1,514
49
83
30.897959
0.802621
0.104359
0
0.235294
0
0
0.041199
0.018727
0
0
0
0
0.147059
1
0.117647
false
0
0.147059
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
dd2928863b82fbf5dba0596d90335b5ef6bbbb9b
2,429
py
Python
ayame/link.py
hattya/ayame
e8bb2b0ace79cd358b1384270cb9c5e809e12b5d
[ "MIT" ]
1
2022-03-05T03:21:13.000Z
2022-03-05T03:21:13.000Z
ayame/link.py
hattya/ayame
e8bb2b0ace79cd358b1384270cb9c5e809e12b5d
[ "MIT" ]
1
2021-08-25T13:41:34.000Z
2021-08-25T13:41:34.000Z
ayame/link.py
hattya/ayame
e8bb2b0ace79cd358b1384270cb9c5e809e12b5d
[ "MIT" ]
1
2018-03-04T21:47:27.000Z
2018-03-04T21:47:27.000Z
# # ayame.link # # Copyright (c) 2012-2021 Akinori Hattori <hattya@gmail.com> # # SPDX-License-Identifier: MIT # import urllib.parse from . import core, markup, uri, util from . import model as mm from .exception import ComponentError __all__ = ['Link', 'ActionLink', 'PageLink'] # HTML elements _A = markup.QNa...
26.692308
91
0.611774
311
2,429
4.569132
0.315113
0.054187
0.083744
0.108374
0.149191
0.030964
0
0
0
0
0
0.004507
0.269247
2,429
90
92
26.988889
0.796056
0.079868
0
0.034483
0
0
0.049055
0.009901
0
0
0
0
0
1
0.137931
false
0.017241
0.068966
0.034483
0.327586
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd2b8d0943d4247577bcc13dba218fa49f1ddda9
5,775
py
Python
classes.py
mattjoman/deep-RL-snake
c1b48ef3cb7ac0ad068887df1f60bc83a626f9d6
[ "MIT" ]
null
null
null
classes.py
mattjoman/deep-RL-snake
c1b48ef3cb7ac0ad068887df1f60bc83a626f9d6
[ "MIT" ]
null
null
null
classes.py
mattjoman/deep-RL-snake
c1b48ef3cb7ac0ad068887df1f60bc83a626f9d6
[ "MIT" ]
null
null
null
import pygame import numpy as np import random import torch from torch import nn from torch.nn import functional as F class CNN(torch.nn.Module): def __init__(self): super(CNN, self).__init__() torch.manual_seed(50) self.layer1 = nn.Sequential( # input: (1, 1, 10, 10) ...
26.612903
86
0.546667
809
5,775
3.731768
0.201483
0.029149
0.038755
0.019874
0.179861
0.14475
0.135807
0.084134
0.04836
0.04836
0
0.047424
0.324502
5,775
216
87
26.736111
0.72648
0.06684
0
0.222222
0
0
0.001491
0
0
0
0
0
0
1
0.124183
false
0
0.039216
0
0.30719
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd34c031db159b934c285da9deacefad0961aecf
762
py
Python
src/server/alembic/versions/6b8cf99be000_add_user_journal_table.py
princessruthie/paws-data-pipeline
6f7095f99b9ad31b0171b256cf18849d63445c91
[ "MIT" ]
27
2019-11-20T20:20:30.000Z
2022-01-31T17:24:55.000Z
src/server/alembic/versions/6b8cf99be000_add_user_journal_table.py
mrcrnkovich/paws-data-pipeline
7c0bd4c5f23276f541611cb564f2f5abbb6b9887
[ "MIT" ]
348
2019-11-26T20:34:02.000Z
2022-02-27T20:28:20.000Z
src/server/alembic/versions/6b8cf99be000_add_user_journal_table.py
mrcrnkovich/paws-data-pipeline
7c0bd4c5f23276f541611cb564f2f5abbb6b9887
[ "MIT" ]
20
2019-12-03T23:50:33.000Z
2022-02-09T18:38:25.000Z
"""Add user journal table Revision ID: 6b8cf99be000 Revises: 36c4ecbfd11a Create Date: 2020-12-21 15:08:07.784568 """ from alembic import op import sqlalchemy as sa from sqlalchemy.sql import func # revision identifiers, used by Alembic. revision = "6b8cf99be000" down_revision = "36c4ecbfd11a" branch_labels = None ...
23.090909
83
0.692913
103
762
5
0.582524
0.07767
0.046602
0.073786
0
0
0
0
0
0
0
0.08121
0.175853
762
32
84
23.8125
0.738854
0.198163
0
0
0
0
0.145937
0
0
0
0
0
0
1
0.111111
false
0
0.166667
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd368cbbf1f2713371fc20b46be0df6fde83d872
1,906
py
Python
Python/WearherTelegram/weatherbot.py
OnCode-channel/OnCode
4aa7022932bc5aece39121233b34ebea12063717
[ "CC0-1.0" ]
3
2021-11-21T05:09:45.000Z
2021-11-21T09:55:02.000Z
Python/WearherTelegram/weatherbot.py
OnCode-channel/OnCode
4aa7022932bc5aece39121233b34ebea12063717
[ "CC0-1.0" ]
null
null
null
Python/WearherTelegram/weatherbot.py
OnCode-channel/OnCode
4aa7022932bc5aece39121233b34ebea12063717
[ "CC0-1.0" ]
1
2022-03-16T20:34:29.000Z
2022-03-16T20:34:29.000Z
import telebot from pyowm import OWM from pyowm.utils.config import get_default_config bot = telebot.TeleBot("telegram API-key") @bot.message_handler(commands=['start']) def welcome(message): bot.send_message(message.chat.id, 'Добро пожаловать, ' + str(message.from_user.first_name) + ',\n/start - запуск бота\n/help ...
32.862069
217
0.64638
277
1,906
4.364621
0.444043
0.02316
0.046319
0.069479
0.281224
0.281224
0.236559
0.180314
0.180314
0.180314
0
0.005732
0.176285
1,906
57
218
33.438596
0.761783
0
0
0
0
0.043478
0.304302
0
0
0
0
0
0
1
0.065217
false
0
0.065217
0
0.130435
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd3c5ef2c1c57128342b4cbe674344dc894fe7e9
14,427
py
Python
projectroles/app_settings.py
olgabot/sodar_core
2a012c962c763fe970261839226e848d752d14d5
[ "MIT" ]
null
null
null
projectroles/app_settings.py
olgabot/sodar_core
2a012c962c763fe970261839226e848d752d14d5
[ "MIT" ]
null
null
null
projectroles/app_settings.py
olgabot/sodar_core
2a012c962c763fe970261839226e848d752d14d5
[ "MIT" ]
null
null
null
"""Project and user settings API""" import json from projectroles.models import AppSetting, APP_SETTING_TYPES, SODAR_CONSTANTS from projectroles.plugins import get_app_plugin, get_active_plugins # SODAR constants APP_SETTING_SCOPE_PROJECT = SODAR_CONSTANTS['APP_SETTING_SCOPE_PROJECT'] APP_SETTING_SCOPE_USER = SODAR_...
32.938356
80
0.561932
1,633
14,427
4.785671
0.094305
0.029559
0.024952
0.025336
0.488548
0.434805
0.376328
0.329367
0.295457
0.26142
0
0
0.366674
14,427
437
81
33.01373
0.855314
0.266583
0
0.34252
0
0
0.109207
0.007903
0
0
0
0.002288
0
1
0.047244
false
0
0.011811
0
0.133858
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd3d84abfc37890e97980406a58c52b188bedbc3
2,835
py
Python
util/2mass_catalog.py
spake/astrometry.net
12c76f4a44fe90a009eeb962f2ae28b0791829b8
[ "BSD-3-Clause" ]
4
2018-02-13T23:11:40.000Z
2021-09-30T16:02:22.000Z
util/2mass_catalog.py
spake/astrometry.net
12c76f4a44fe90a009eeb962f2ae28b0791829b8
[ "BSD-3-Clause" ]
null
null
null
util/2mass_catalog.py
spake/astrometry.net
12c76f4a44fe90a009eeb962f2ae28b0791829b8
[ "BSD-3-Clause" ]
1
2019-02-11T06:56:30.000Z
2019-02-11T06:56:30.000Z
#! /usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE from __future__ import print_function import sys from optparse import OptionParser try: import pyfits except ImportError: try: from astropy.io import fits as pyfits except ImportError: raise ImportError("Cann...
28.35
113
0.610229
410
2,835
4.112195
0.382927
0.017794
0.035587
0.042705
0.04745
0
0
0
0
0
0
0.013164
0.249735
2,835
99
114
28.636364
0.779502
0.083598
0
0.081081
0
0
0.190421
0
0
0
0
0
0
1
0.013514
false
0.013514
0.162162
0
0.189189
0.22973
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd3f4f79ce1d8a927e706c3ca5d870ec9910cd7c
682
py
Python
models/nicknames.py
Tyson-Chicken-Nuggets/me-discord-leaderboard
d0e04c77e4f7a309cbb6315d24bd47929ba4ec54
[ "MIT" ]
4
2018-12-13T04:15:26.000Z
2021-02-15T21:46:59.000Z
models/nicknames.py
Tyson-Chicken-Nuggets/me-discord-leaderboard
d0e04c77e4f7a309cbb6315d24bd47929ba4ec54
[ "MIT" ]
2
2019-05-17T18:47:18.000Z
2020-09-26T01:31:39.000Z
models/nicknames.py
Tyson-Chicken-Nuggets/me-discord-leaderboard
d0e04c77e4f7a309cbb6315d24bd47929ba4ec54
[ "MIT" ]
1
2018-06-08T17:08:29.000Z
2018-06-08T17:08:29.000Z
from sqlalchemy import Column, String, Integer, ForeignKey from sqlalchemy.orm import relationship from models.base import Base from models.servers import Server from models.users import User class Nickname(Base): __tablename__ = 'nicknames' id = Column(Integer, primary_key=True) user_id = Column(Integer...
31
73
0.727273
84
682
5.72619
0.357143
0.091476
0.093555
0.10395
0
0
0
0
0
0
0
0
0.183284
682
21
74
32.47619
0.863555
0
0
0
0
0
0.039589
0
0
0
0
0
0
1
0.058824
false
0
0.294118
0
0.823529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd409f1079701595dd303cbae441bb3663ea68de
755
py
Python
hgtools/managers/library.py
jaraco/hgtools
1090d139e5dbdab864da8f1917a9e674331b6f9b
[ "MIT" ]
1
2017-05-17T15:12:29.000Z
2017-05-17T15:12:29.000Z
hgtools/managers/library.py
jaraco/hgtools
1090d139e5dbdab864da8f1917a9e674331b6f9b
[ "MIT" ]
12
2016-01-01T14:43:44.000Z
2021-10-03T02:13:19.000Z
hgtools/managers/library.py
jaraco/hgtools
1090d139e5dbdab864da8f1917a9e674331b6f9b
[ "MIT" ]
null
null
null
import sys from . import base from . import cmd from . import reentry class MercurialInProcManager(cmd.Mercurial, base.RepoManager): """ A RepoManager implemented by invoking the hg command in-process. """ def _invoke(self, *params): """ Run the self.exe command in-process with the s...
30.2
69
0.637086
90
755
5.311111
0.566667
0.062762
0.066946
0
0
0
0
0
0
0
0
0.003521
0.247682
755
24
70
31.458333
0.838028
0.166887
0
0
0
0
0.042373
0
0
0
0
0
0
1
0.071429
false
0
0.285714
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
dd41e5e1e67e9d900eb2ff0bece445448ea41207
1,775
py
Python
controllers/__controller.py
VNCompany/vnforum
770aca3a94ad1ed54628d48867c299d83215f75a
[ "Unlicense" ]
null
null
null
controllers/__controller.py
VNCompany/vnforum
770aca3a94ad1ed54628d48867c299d83215f75a
[ "Unlicense" ]
null
null
null
controllers/__controller.py
VNCompany/vnforum
770aca3a94ad1ed54628d48867c299d83215f75a
[ "Unlicense" ]
null
null
null
from flask import redirect, url_for, render_template from flask_login import current_user from components.pagination import html_pagination from db_session import create_session class Controller: __view__ = None __title__ = "Page" view_includes = {} jquery_enabled = True db_session = None de...
34.803922
119
0.580845
203
1,775
4.807882
0.35468
0.090164
0.147541
0.058402
0.061475
0.061475
0.061475
0
0
0
0
0
0.292394
1,775
50
120
35.5
0.77707
0
0
0.097561
0
0.02439
0.131831
0.025352
0
0
0
0
0
1
0.146341
false
0
0.097561
0.02439
0.463415
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd468535a193a7786f5ac49b546150a18ebcd261
1,172
py
Python
setup.py
themightyoarfish/svcca
23faa374489067c1c76cee44d92663c120603bdc
[ "Apache-2.0" ]
8
2019-01-17T14:20:07.000Z
2021-07-08T12:16:23.000Z
setup.py
themightyoarfish/svcca
23faa374489067c1c76cee44d92663c120603bdc
[ "Apache-2.0" ]
1
2019-01-30T11:44:25.000Z
2019-02-07T15:02:02.000Z
setup.py
themightyoarfish/svcca-gpu
23faa374489067c1c76cee44d92663c120603bdc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup import setuptools import os root_dir = os.path.abspath(os.path.dirname(__file__)) with open(f'{root_dir}/README.md') as f: readme = f.read() with open(f'{root_dir}/requirements.txt') as f: requirements = f.read().split() packages = setuptools.find_pack...
33.485714
97
0.636519
133
1,172
5.518797
0.654135
0.02861
0.024523
0.035422
0.043597
0
0
0
0
0
0
0.005549
0.231229
1,172
34
98
34.470588
0.809101
0.042662
0
0
0
0
0.399107
0.04375
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd4835795e462053f9d98a0abafa853d67dd9bfc
829
py
Python
urls.py
CodeForPhilly/philly_legislative
5774100325b5374a0510674b4a542171fff3fcd3
[ "BSD-Source-Code" ]
2
2017-08-29T22:27:05.000Z
2019-04-27T20:21:31.000Z
urls.py
CodeForPhilly/philly_legislative
5774100325b5374a0510674b4a542171fff3fcd3
[ "BSD-Source-Code" ]
null
null
null
urls.py
CodeForPhilly/philly_legislative
5774100325b5374a0510674b4a542171fff3fcd3
[ "BSD-Source-Code" ]
null
null
null
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: #(r'^philly_legislative/', include('philly_legislative.foo.urls')), # Uncomment the admin/doc line below and add 'django....
33.16
76
0.671894
104
829
5.317308
0.451923
0.045208
0.057866
0.057866
0
0
0
0
0
0
0
0
0.147165
829
24
77
34.541667
0.782178
0.495778
0
0
0
0
0.383863
0.224939
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd486d1d0f1328a725ad7af4079cf4b9fc30ab88
2,510
py
Python
irf/scripts/read_corsika_headers.py
fact-project/irf
d82a3d4ae8b9ef15d9f473cdcd01a5f9c92d42a2
[ "MIT" ]
null
null
null
irf/scripts/read_corsika_headers.py
fact-project/irf
d82a3d4ae8b9ef15d9f473cdcd01a5f9c92d42a2
[ "MIT" ]
8
2017-04-25T11:19:32.000Z
2019-05-28T07:24:32.000Z
irf/scripts/read_corsika_headers.py
fact-project/irf
d82a3d4ae8b9ef15d9f473cdcd01a5f9c92d42a2
[ "MIT" ]
null
null
null
from corsikaio import CorsikaFile from fact.io import to_h5py from multiprocessing import Pool, cpu_count from tqdm import tqdm import os import click import pandas as pd import numpy as np from glob import glob def get_headers(f): with CorsikaFile(f) as cf: run_header, event_headers, run_end = cf.read_he...
25.1
89
0.632669
336
2,510
4.497024
0.39881
0.035738
0.027796
0.041694
0.053607
0.053607
0
0
0
0
0
0.002655
0.249801
2,510
99
90
25.353535
0.799788
0.021116
0
0.026667
0
0
0.166599
0.01833
0
0
0
0
0
1
0.026667
false
0
0.12
0
0.16
0.053333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd491d9bbf97708bde610843ff7316857a2a3334
6,452
py
Python
assignment 1/question3/q3.py
Eunoia1729/soft-computing
d7fc155378d1bb0b914a6f660095653e32d2c0b8
[ "Apache-2.0" ]
1
2021-11-14T15:02:35.000Z
2021-11-14T15:02:35.000Z
assignment 1/question3/q3.py
Eunoia1729/soft-computing
d7fc155378d1bb0b914a6f660095653e32d2c0b8
[ "Apache-2.0" ]
null
null
null
assignment 1/question3/q3.py
Eunoia1729/soft-computing
d7fc155378d1bb0b914a6f660095653e32d2c0b8
[ "Apache-2.0" ]
null
null
null
"""## Question 3: Scrap Hotel Data The below code is for India and can be extended to other countries by adding an outer loop given in the last part. The below codes takes several minutes to run. """ import requests import pandas as pd from bs4 import BeautifulSoup hotelname_list = [] city_list = [] countries_list ...
36.451977
160
0.653131
843
6,452
4.829181
0.204033
0.036846
0.023581
0.022353
0.416851
0.397445
0.386146
0.351756
0.320314
0.306067
0
0.014283
0.196993
6,452
177
161
36.451977
0.771473
0.046962
0
0.481013
0
0
0.205319
0.059134
0
0
0
0
0
1
0
false
0
0.018987
0
0.018987
0.018987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd4965798452f29205244dc8f8464e898af885fa
234
py
Python
groundstation/ROV/OCR/SScrop.py
iturov/rov2018
ca1949806d105a2caddf2cf7a1361e2d3f6a1246
[ "MIT" ]
3
2018-01-26T14:00:50.000Z
2018-08-08T06:44:21.000Z
groundstation/ROV/OCR/SScrop.py
iturov/rov2018
ca1949806d105a2caddf2cf7a1361e2d3f6a1246
[ "MIT" ]
null
null
null
groundstation/ROV/OCR/SScrop.py
iturov/rov2018
ca1949806d105a2caddf2cf7a1361e2d3f6a1246
[ "MIT" ]
2
2018-08-08T06:44:23.000Z
2020-10-24T11:36:33.000Z
import pyscreenshot as ImageGrab i=0 src_path ="C:\\Users\\Public\\ROV\OCR\\" if __name__ == "__main__": # part of the screen im=ImageGrab.grab(bbox=(200,100,1100,600)) # X1,Y1,X2,Y2 im.save(src_path + 'init.png')
14.625
60
0.645299
38
234
3.710526
0.894737
0.099291
0
0
0
0
0
0
0
0
0
0.09375
0.179487
234
15
61
15.6
0.640625
0.128205
0
0
0
0
0.22335
0.142132
0
0
0
0
0
1
0
false
0
0.166667
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
dd4ba76a5fa9e5f97446998ac4f6a5e6ee41ec63
3,008
py
Python
tests/http_client/conftest.py
sjaensch/aiobravado
d3f1eb71883b1f24c4b592917890160eb3d3cbcc
[ "BSD-3-Clause" ]
19
2017-11-20T22:47:12.000Z
2021-12-23T15:56:41.000Z
tests/http_client/conftest.py
sjaensch/aiobravado
d3f1eb71883b1f24c4b592917890160eb3d3cbcc
[ "BSD-3-Clause" ]
10
2018-01-11T12:53:01.000Z
2020-01-27T20:05:51.000Z
tests/http_client/conftest.py
sjaensch/aiobravado
d3f1eb71883b1f24c4b592917890160eb3d3cbcc
[ "BSD-3-Clause" ]
4
2017-11-18T12:37:14.000Z
2021-03-19T14:48:13.000Z
# -*- coding: utf-8 -*- import threading import time import bottle import ephemeral_port_reserve import pytest import umsgpack from bravado_core.content_type import APP_JSON from bravado_core.content_type import APP_MSGPACK from six.moves import urllib ROUTE_1_RESPONSE = b'HEY BUDDY' ROUTE_2_RESPONSE = b'BYE BUDDY' ...
24.064
73
0.539894
307
3,008
5.104235
0.358306
0.056158
0.042119
0.028079
0.158264
0.122527
0.122527
0.077856
0.077856
0.077856
0
0.016019
0.31516
3,008
124
74
24.258065
0.74466
0.006981
0
0.098039
0
0
0.176549
0.01742
0
0
0
0
0
1
0.088235
false
0
0.088235
0.029412
0.254902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd4bd1dde3eae994bf4970c151cbd96f077c070c
1,479
py
Python
test/test_convvae.py
kejiejiang/UnsupervisedDeepLearning-Pytorch
6ea7b7151ae62bf0130b56cc023f2be068aa87f0
[ "MIT" ]
87
2017-11-22T02:59:24.000Z
2022-01-16T13:08:40.000Z
test/test_convvae.py
CauchyLagrange/UnsupervisedDeepLearning-Pytorch
6ea7b7151ae62bf0130b56cc023f2be068aa87f0
[ "MIT" ]
3
2018-04-24T11:46:51.000Z
2020-01-07T00:01:46.000Z
test/test_convvae.py
CauchyLagrange/UnsupervisedDeepLearning-Pytorch
6ea7b7151ae62bf0130b56cc023f2be068aa87f0
[ "MIT" ]
25
2018-03-15T04:02:21.000Z
2021-12-30T09:24:19.000Z
import torch import torch.utils.data from torchvision import datasets, transforms import numpy as np from udlp.autoencoder.convVAE import ConvVAE import argparse parser = argparse.ArgumentParser(description='VAE MNIST Example') parser.add_argument('--lr', type=float, default=0.0001, metavar='N', he...
46.21875
98
0.697769
202
1,479
5.014851
0.410891
0.053307
0.067127
0.035538
0.361303
0.361303
0.361303
0.361303
0.361303
0.361303
0
0.028916
0.158215
1,479
31
99
47.709677
0.784739
0
0
0.142857
0
0
0.171062
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd57860debea07d7b1dee00c8d3f246398e5a1ff
573
py
Python
modules/yats/middleware/header.py
PrathameshBolade/yats
93bb5271255120b7131a3bc416e3386428a4d3ec
[ "MIT" ]
54
2015-01-26T07:56:59.000Z
2022-03-10T18:48:05.000Z
modules/yats/middleware/header.py
PrathameshBolade/yats
93bb5271255120b7131a3bc416e3386428a4d3ec
[ "MIT" ]
8
2015-03-15T18:33:39.000Z
2021-12-21T14:23:11.000Z
modules/yats/middleware/header.py
PrathameshBolade/yats
93bb5271255120b7131a3bc416e3386428a4d3ec
[ "MIT" ]
23
2015-02-19T16:55:35.000Z
2022-03-11T19:49:06.000Z
# -*- coding: utf-8 -*- from socket import gethostname def ResponseInjectHeader(get_response): def middleware(request): setattr(request, '_dont_enforce_csrf_checks', True) response = get_response(request) # response['Access-Control-Allow-Origin'] = '*' # response['Access-Control-...
30.157895
64
0.649215
62
573
5.903226
0.645161
0.060109
0.114754
0.142077
0
0
0
0
0
0
0
0.028953
0.216405
573
18
65
31.833333
0.786192
0.212914
0
0
0
0
0.250559
0.055928
0
0
0
0
0
1
0.2
false
0
0.1
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
dd58051ac5d7683774d3d6e01bb0dea25252af19
1,334
py
Python
handshake_client/sockets.py
naoki-maeda/handshake-client-py
286884b358e15f84965f3c3224cfabd83e1a1406
[ "MIT" ]
3
2020-12-31T08:29:20.000Z
2021-08-14T14:41:22.000Z
handshake_client/sockets.py
naoki-maeda/handshake-client-py
286884b358e15f84965f3c3224cfabd83e1a1406
[ "MIT" ]
null
null
null
handshake_client/sockets.py
naoki-maeda/handshake-client-py
286884b358e15f84965f3c3224cfabd83e1a1406
[ "MIT" ]
1
2020-05-25T14:26:33.000Z
2020-05-25T14:26:33.000Z
import logging import socketio logger = logging.getLogger("handshake.socket") sio = socketio.AsyncClient(logger=logger) async def get_connection( url: str, api_key: str, watch_chain: bool = True, watch_mempool: bool = True, ) -> socketio.AsyncClient: """ see https://hsd-dev.org/guides/events.html ""...
26.68
81
0.642429
174
1,334
4.821839
0.293103
0.076281
0.071514
0.045292
0.481526
0.481526
0.421931
0.421931
0.421931
0.421931
0
0
0.230885
1,334
49
82
27.22449
0.817739
0
0
0.4
0
0
0.078818
0
0
0
0
0
0.2
1
0
false
0
0.057143
0
0.114286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd586c3a691480974c3b96292cc74640fddadda5
869
py
Python
generator01/testing/test_generator01.py
sku899/World_Travel_Language_Wizard
a9e009336e2f53c5fc0f3e40af51f34335645e5f
[ "MIT" ]
null
null
null
generator01/testing/test_generator01.py
sku899/World_Travel_Language_Wizard
a9e009336e2f53c5fc0f3e40af51f34335645e5f
[ "MIT" ]
null
null
null
generator01/testing/test_generator01.py
sku899/World_Travel_Language_Wizard
a9e009336e2f53c5fc0f3e40af51f34335645e5f
[ "MIT" ]
null
null
null
from unittest.mock import patch from flask import url_for, Response, request from flask_testing import TestCase from random import randint from app import app class TestBase(TestCase): def create_app(self): return app class TestResponse(TestBase): def rand_country(self): countries = ['German...
34.76
126
0.653625
113
869
4.920354
0.548673
0.032374
0.064748
0.07554
0.151079
0.151079
0.151079
0.151079
0
0
0
0.02
0.194476
869
24
127
36.208333
0.774286
0
0
0.105263
0
0
0.148446
0
0
0
0
0
0.105263
1
0.157895
false
0
0.263158
0.052632
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd5b35b49e23eb6c89bb23b5e7b7a0d158afacb3
14,640
py
Python
assets/arguments.py
YuhangSong/Arena-Baselines-Depreciated
78c33994e67aede7565dda3f68f5cebe0d5ee6e6
[ "Apache-2.0" ]
null
null
null
assets/arguments.py
YuhangSong/Arena-Baselines-Depreciated
78c33994e67aede7565dda3f68f5cebe0d5ee6e6
[ "Apache-2.0" ]
null
null
null
assets/arguments.py
YuhangSong/Arena-Baselines-Depreciated
78c33994e67aede7565dda3f68f5cebe0d5ee6e6
[ "Apache-2.0" ]
null
null
null
import argparse import torch import assets.utils as utils def log_args(args, tf_summary): args_dict = args.__dict__ from pytablewriter import MarkdownTableWriter writer = MarkdownTableWriter() writer.table_name = "Configurations (Args)" writer.headers = ["Parameter", "Value"] print('# INFO: ...
48.476821
126
0.616189
1,813
14,640
4.804744
0.199117
0.049592
0.093675
0.020204
0.291011
0.218804
0.173688
0.106991
0.07083
0.061417
0
0.010876
0.252596
14,640
301
127
48.637874
0.785231
0.002937
0
0.045267
0
0.00823
0.300125
0.02915
0
0
0
0
0.016461
1
0.016461
false
0.004115
0.020576
0
0.045267
0.024691
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd5c3b4cdcb7e58a2c1873f564ec41c534d2da13
687
py
Python
khtube/download_ffmpeg.py
KodersHub/khtube
b1a8f96b7ff27cbb7eae615e8aee7d27260f80e8
[ "MIT" ]
1
2021-08-09T14:01:12.000Z
2021-08-09T14:01:12.000Z
khtube/download_ffmpeg.py
KodersHub/khtube
b1a8f96b7ff27cbb7eae615e8aee7d27260f80e8
[ "MIT" ]
null
null
null
khtube/download_ffmpeg.py
KodersHub/khtube
b1a8f96b7ff27cbb7eae615e8aee7d27260f80e8
[ "MIT" ]
null
null
null
from google_drive_downloader import GoogleDriveDownloader as gdd import sys import os import requests def get_platform(): platforms = { 'linux1' : 'Linux', 'linux2' : 'Linux', 'darwin' : 'OS X', 'win32' : 'Windows' } if sys.platform not in platforms: return sys.plat...
25.444444
84
0.604076
70
687
5.785714
0.614286
0.081481
0.074074
0
0
0
0
0
0
0
0
0.014523
0.298399
687
27
85
25.444444
0.825726
0
0
0
0
0
0.196221
0.047965
0
0
0
0
0
1
0.045455
false
0
0.181818
0
0.318182
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
dd5ce8afa891dc4561f13cf8c918df7e99c18b1f
1,231
py
Python
climbing (1).py
VamsiKrishna1211/Hacker_rank_solutions
a683a36fcc2f011c120eb4d52aa08468deccc820
[ "Apache-2.0" ]
null
null
null
climbing (1).py
VamsiKrishna1211/Hacker_rank_solutions
a683a36fcc2f011c120eb4d52aa08468deccc820
[ "Apache-2.0" ]
null
null
null
climbing (1).py
VamsiKrishna1211/Hacker_rank_solutions
a683a36fcc2f011c120eb4d52aa08468deccc820
[ "Apache-2.0" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the climbingLeaderboard function below. def climbingLeaderboard(scores, alice): li=[] lis=[0 for i in range(len(scores))] lis[0]=1 for i in range(1,len(scores)): #print(i) if scores[i]<scores[i-1]: ...
20.864407
53
0.541024
174
1,231
3.764368
0.316092
0.068702
0.042748
0.050382
0.218321
0.079389
0
0
0
0
0
0.02291
0.29082
1,231
58
54
21.224138
0.727377
0.064988
0
0.052632
0
0
0.020924
0
0
0
0
0
0
1
0.026316
false
0
0.131579
0
0.184211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd5d2da4c7eb58adfbaff7779a18bcc9d814e736
25,661
py
Python
game_manager/machine_learning/block_controller_train.py
EndoNrak/tetris
0ce4863348d644b401c53e6c9a50cdc6f7430ed1
[ "MIT" ]
1
2022-01-29T15:23:15.000Z
2022-01-29T15:23:15.000Z
game_manager/machine_learning/block_controller_train.py
EndoNrak/tetris
0ce4863348d644b401c53e6c9a50cdc6f7430ed1
[ "MIT" ]
null
null
null
game_manager/machine_learning/block_controller_train.py
EndoNrak/tetris
0ce4863348d644b401c53e6c9a50cdc6f7430ed1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- from datetime import datetime import pprint import random import copy import torch import torch.nn as nn from model.deepqnet import DeepQNetwork,DeepQNetwork_v2 import omegaconf from hydra import compose, initialize import os from tensorboardX import SummaryWriter from col...
41.929739
145
0.575465
2,986
25,661
4.723041
0.113195
0.018436
0.017018
0.011345
0.476849
0.403248
0.356165
0.334822
0.303765
0.280933
0
0.012581
0.318538
25,661
612
146
41.929739
0.793904
0.063287
0
0.403471
0
0
0.040344
0.005257
0
0
0
0
0
1
0.047722
false
0.004338
0.034707
0
0.136659
0.036876
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd5ec06ae412be00165dc082fa38f505f00c44d7
2,959
py
Python
qa/rpc-tests/checkpoint-load.py
ericramos1980/energi
aadc44f714f9d52433ab3595a9f33a61433c60c9
[ "MIT" ]
2
2021-12-28T21:47:07.000Z
2022-02-09T21:04:29.000Z
qa/rpc-tests/checkpoint-load.py
reddragon34/energi
4cc6c426d9d4b6b9053912de9b2197eba071201e
[ "MIT" ]
null
null
null
qa/rpc-tests/checkpoint-load.py
reddragon34/energi
4cc6c426d9d4b6b9053912de9b2197eba071201e
[ "MIT" ]
1
2019-10-07T19:17:55.000Z
2019-10-07T19:17:55.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 The Energi Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * import logging...
37.935897
86
0.639743
384
2,959
4.723958
0.270833
0.13892
0.107497
0.14333
0.502756
0.404079
0.377619
0.321389
0.321389
0.321389
0
0.034662
0.220007
2,959
77
87
38.428571
0.7513
0.06759
0
0.366667
0
0
0.113249
0.012704
0
0
0
0
0.216667
1
0.05
false
0
0.05
0
0.116667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd5ffb792de44849ba525e817187b550fe21e9d9
648
py
Python
python/setup.py
tcolgate/gracetests
552c8113b0554d49cf146e6d7cfd573c8b4cbf8f
[ "MIT" ]
2
2019-07-30T16:50:20.000Z
2021-11-26T22:46:29.000Z
python/setup.py
tcolgate/gracetests
552c8113b0554d49cf146e6d7cfd573c8b4cbf8f
[ "MIT" ]
null
null
null
python/setup.py
tcolgate/gracetests
552c8113b0554d49cf146e6d7cfd573c8b4cbf8f
[ "MIT" ]
1
2019-07-30T16:50:54.000Z
2019-07-30T16:50:54.000Z
import os from setuptools import find_packages, setup DIR = os.path.dirname(os.path.abspath(__file__)) setup( name='graceful', version='1.2.0', description='test of graceful shutdown', url='https://github.com/qubitdigital/graceful/python', author='Infra', author_email='infra@qubit.com', l...
22.344828
58
0.603395
78
648
4.871795
0.692308
0.063158
0
0
0
0
0
0
0
0
0
0.030303
0.236111
648
28
59
23.142857
0.737374
0
0
0
0
0
0.350309
0.044753
0
0
0
0
0
1
0
false
0
0.08
0
0.08
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd61ede10dd7a8e91db98cff1eeb2bd9cfadde8d
637
py
Python
convert_assets.py
michaelgold/usdzconvert
f4e6e552db4e27a3e088649f19f6bd61977501c1
[ "MIT" ]
null
null
null
convert_assets.py
michaelgold/usdzconvert
f4e6e552db4e27a3e088649f19f6bd61977501c1
[ "MIT" ]
null
null
null
convert_assets.py
michaelgold/usdzconvert
f4e6e552db4e27a3e088649f19f6bd61977501c1
[ "MIT" ]
null
null
null
import glob import os import subprocess import shutil source_file_list = glob.glob("../source/assets/*.glb") for input_file_name in source_file_list: base_file_name = os.path.split(input_file_name)[1] output_file_name = "../dist/assets/{}.usdz".format(os.path.splitext(base_file_name)[0]) print(...
35.388889
125
0.726845
94
637
4.638298
0.37234
0.146789
0.09633
0.073395
0
0
0
0
0
0
0
0.005464
0.138148
637
17
126
37.470588
0.788707
0
0
0
0
0
0.174194
0.108065
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd64daf0644c28687a4705d4e8b356d44e031ab4
2,190
py
Python
tests/test_examples.py
timgates42/goless
3c8742fa0f94d0a365840aae404da4e8eaed9d71
[ "Apache-2.0" ]
266
2015-01-03T04:18:48.000Z
2022-02-16T03:08:38.000Z
tests/test_examples.py
timgates42/goless
3c8742fa0f94d0a365840aae404da4e8eaed9d71
[ "Apache-2.0" ]
19
2015-03-06T11:04:53.000Z
2021-06-09T15:08:57.000Z
tests/test_examples.py
timgates42/goless
3c8742fa0f94d0a365840aae404da4e8eaed9d71
[ "Apache-2.0" ]
20
2015-01-03T03:45:08.000Z
2022-03-05T06:05:32.000Z
""" Idiomatic Go examples converted to use goless. """ from __future__ import print_function import time from . import BaseTests import goless class Examples(BaseTests): def test_select(self): # https://gobyexample.com/select c1 = goless.chan() c2 = goless.chan() def func1(): ...
26.071429
75
0.541096
265
2,190
4.407547
0.354717
0.05137
0.05137
0.059075
0.02911
0
0
0
0
0
0
0.024658
0.333333
2,190
83
76
26.385542
0.775342
0.115525
0
0
0
0
0.030649
0
0
0
0
0
0.087719
1
0.122807
false
0
0.070175
0
0.210526
0.070175
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd67590d08d500fd8ab7568abbfffa79b1097a7f
3,211
py
Python
Utils/Messaging.py
philshams/FC_analysis
cabe2385d5061d206a21b230605bfce9e39ec7f2
[ "MIT" ]
null
null
null
Utils/Messaging.py
philshams/FC_analysis
cabe2385d5061d206a21b230605bfce9e39ec7f2
[ "MIT" ]
null
null
null
Utils/Messaging.py
philshams/FC_analysis
cabe2385d5061d206a21b230605bfce9e39ec7f2
[ "MIT" ]
null
null
null
from slackclient import SlackClient import requests import os from Config import slack_env_var_token, slack_username """ These functions take care of sending slack messages and emails """ def slack_chat_messenger(message): # NEVER LEAVE THE TOKEN IN YOUR CODE ON GITHUB, EVERYBODY WOULD HAVE ACCESS TO THE CHANN...
28.669643
106
0.646528
411
3,211
4.917275
0.36253
0.029688
0.021771
0.031667
0.160317
0.129639
0.102919
0.102919
0.102919
0.084117
0
0.002003
0.222672
3,211
111
107
28.927928
0.807692
0.140143
0
0.125
0
0
0.181887
0.045096
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.166667
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd67c81828221987d83cf924bc48aff8f98affa6
3,364
py
Python
fluid.py
fomightez/stable-fluids
a7bdbb0960c746022a1dfc216dbfe928ee98947b
[ "Unlicense" ]
1
2020-04-20T12:14:59.000Z
2020-04-20T12:14:59.000Z
fluid.py
fomightez/stable-fluids
a7bdbb0960c746022a1dfc216dbfe928ee98947b
[ "Unlicense" ]
null
null
null
fluid.py
fomightez/stable-fluids
a7bdbb0960c746022a1dfc216dbfe928ee98947b
[ "Unlicense" ]
null
null
null
import numpy as np import scipy.sparse as sp from scipy.ndimage import map_coordinates from scipy.sparse.linalg import factorized import operators as ops class Fluid: def __init__(self, shape, viscosity, quantities): self.shape = shape # Defining these here keeps the code somewhat more readable v...
51.753846
117
0.69352
456
3,364
5.070175
0.407895
0.050606
0.051471
0.031142
0.108131
0.074827
0.037197
0.037197
0.037197
0.037197
0
0.003082
0.2283
3,364
64
118
52.5625
0.887519
0.412901
0
0.058824
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.147059
0
0.323529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd69e272fd1cf6715ec8277d234fe3f1835d95b2
879
py
Python
setup.py
ngocjr7/geneticpython
4b4157523ce13b3da56cef61282cb0a984cd317b
[ "MIT" ]
null
null
null
setup.py
ngocjr7/geneticpython
4b4157523ce13b3da56cef61282cb0a984cd317b
[ "MIT" ]
null
null
null
setup.py
ngocjr7/geneticpython
4b4157523ce13b3da56cef61282cb0a984cd317b
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() PROJECT_URLS = { 'Bug Tracker': 'https://github.com/ngocjr7/geneticpython/issues', 'Documentation': 'https://github.com/ngocjr7/geneticpython/blob/master/README.md', 'Source Code': 'https://gith...
33.807692
88
0.703072
108
879
5.574074
0.592593
0.099668
0.069767
0.104651
0.169435
0
0
0
0
0
0
0.012129
0.155859
879
25
89
35.16
0.799191
0
0
0
0
0
0.386803
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd767e6d50fc90c7d830096cddd6903575b2142e
1,290
py
Python
server_common/helpers.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
null
null
null
server_common/helpers.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
null
null
null
server_common/helpers.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
null
null
null
import json import os import sys from server_common.ioc_data_source import IocDataSource from server_common.mysql_abstraction_layer import SQLAbstraction from server_common.utilities import print_and_log, SEVERITY def register_ioc_start(ioc_name, pv_database=None, prefix=None): """ A helper function to regis...
32.25
108
0.686047
178
1,290
4.758427
0.460674
0.059032
0.056671
0.035419
0
0
0
0
0
0
0
0.001001
0.225581
1,290
39
109
33.076923
0.846847
0.242636
0
0
0
0
0.071274
0
0
0
0
0
0
1
0.095238
false
0
0.285714
0
0.428571
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd782114838d338a027967eb958ee0dd0d6070b0
12,799
py
Python
rman_ui/rman_ui_txmanager.py
ian-hsieh/RenderManForBlender
c827f029f4cbbd1fcc71ed8d3694fc5ac58cc468
[ "MIT" ]
12
2019-05-03T21:58:15.000Z
2022-02-24T07:02:21.000Z
rman_ui/rman_ui_txmanager.py
ian-hsieh/RenderManForBlender
c827f029f4cbbd1fcc71ed8d3694fc5ac58cc468
[ "MIT" ]
4
2019-03-07T18:20:16.000Z
2020-09-24T21:53:15.000Z
rman_ui/rman_ui_txmanager.py
ian-hsieh/RenderManForBlender
c827f029f4cbbd1fcc71ed8d3694fc5ac58cc468
[ "MIT" ]
3
2019-05-25T01:17:09.000Z
2019-09-13T14:43:12.000Z
import bpy from bpy.props import StringProperty, IntProperty, CollectionProperty, EnumProperty, BoolProperty from bpy.types import PropertyGroup, UIList, Operator, Panel from bpy_extras.io_utils import ImportHelper from .rman_ui_base import _RManPanelHeader from ..txmanager3 import txparams from ..rman_utils import tex...
32.734015
110
0.615595
1,446
12,799
5.20816
0.161826
0.041827
0.060417
0.047802
0.476564
0.384942
0.31377
0.259726
0.255079
0.220555
0
0.00319
0.28971
12,799
391
111
32.734015
0.825212
0.051176
0
0.357388
0
0
0.096969
0.030722
0
0
0
0.002558
0
1
0.037801
false
0.003436
0.037801
0.003436
0.243986
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd788c7b5bde6a0a3088e641302680a262892fc0
943
py
Python
cousins-in-binary-tree/cousins-in-binary-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
cousins-in-binary-tree/cousins-in-binary-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
cousins-in-binary-tree/cousins-in-binary-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def isCousins(self, root: Optional[TreeNode], x: int, y: int) -> bool: # condition to be cousin: (1)...
36.269231
74
0.520679
118
943
4.127119
0.432203
0.041068
0.032854
0.065708
0.057495
0
0
0
0
0
0
0.019802
0.35737
943
26
75
36.269231
0.783828
0.249205
0
0
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd7d61b4fcf318d454a05f755e0919c0dd18ea88
2,964
py
Python
pycalc/MAVProxy/modules/mavproxy_gopro.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
null
null
null
pycalc/MAVProxy/modules/mavproxy_gopro.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
8
2021-01-28T19:26:22.000Z
2022-03-24T18:07:24.000Z
pycalc/MAVProxy/modules/mavproxy_gopro.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python '''gopro control over mavlink for the solo-gimbal To use this module connect to a Solo with a GoPro installed on the gimbal. ''' import time, os from MAVProxy.modules.lib import mp_module from pymavlink import mavutil class GoProModule(mp_module.MPModule): def __init__(self, mpstate): ...
34.068966
83
0.5361
319
2,964
4.761755
0.247649
0.110599
0.04345
0.071099
0.515471
0.515471
0.45293
0.45293
0.400263
0.400263
0
0.010616
0.364372
2,964
86
84
34.465116
0.795648
0.065452
0
0.4
0
0
0.109534
0
0
0
0
0
0
1
0.061538
false
0
0.046154
0
0.292308
0.092308
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd7f9dbcfe5bd13ce56beb5ae807d4bb63f3c4df
1,609
py
Python
Program_python/Extractfolderimage.py
pection/MN-furniture
4c796f072662c15b2a263272ef2637e221c42cab
[ "MIT" ]
1
2022-02-22T06:20:56.000Z
2022-02-22T06:20:56.000Z
Program_python/Extractfolderimage.py
pection/MN-furniture
4c796f072662c15b2a263272ef2637e221c42cab
[ "MIT" ]
null
null
null
Program_python/Extractfolderimage.py
pection/MN-furniture
4c796f072662c15b2a263272ef2637e221c42cab
[ "MIT" ]
1
2020-11-24T18:18:42.000Z
2020-11-24T18:18:42.000Z
import os import sys import numpy as np from PIL import Image num=1 path ="/Users/pection/Documents/mn_furniture/AddwatermarkProgram/Lastday/" #we shall store all the file names in this list filelist=[] for root, dirs, files in os.walk(path): for file in files: if(file.endswith(".jpg")): filelis...
35.755556
100
0.661902
223
1,609
4.67713
0.345291
0.023011
0.040268
0.044104
0.260786
0.21093
0.113135
0.113135
0.113135
0.113135
0
0.028396
0.19018
1,609
45
101
35.755556
0.772064
0.429459
0
0
0
0
0.207547
0.146504
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd7fb45e0f3cff64598edf9ddf119adc6b039b8e
1,986
py
Python
BrainML/__init__.py
bogdan124/DeepML
ad5e904cc9fcd3c499bbca3538525d83fde003f5
[ "Apache-2.0" ]
null
null
null
BrainML/__init__.py
bogdan124/DeepML
ad5e904cc9fcd3c499bbca3538525d83fde003f5
[ "Apache-2.0" ]
null
null
null
BrainML/__init__.py
bogdan124/DeepML
ad5e904cc9fcd3c499bbca3538525d83fde003f5
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from BrainML.activation import Activator from BrainML.layers import * from BrainML.optimizer import Optimizer from tensorflow.python.util import deprecation ##deprecation._PRINT_DEPRECATION_WARNINGS = False ##tf.compat.v1.disable_eager_execution() import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = ...
38.192308
268
0.735146
276
1,986
5.068841
0.369565
0.038599
0.017155
0
0
0
0
0
0
0
0
0.008839
0.145519
1,986
52
269
38.192308
0.815557
0.140483
0
0
0
0
0.027811
0
0
0
0
0
0
1
0.081081
false
0
0.162162
0
0.297297
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd81524e1e000d2bbdd8e39c55a281ea1c78ab94
1,336
py
Python
config.py
MGorr/icons_updater
aa9f9177a565fbe590cf959f625f049024e01efb
[ "MIT" ]
1
2021-06-18T06:58:15.000Z
2021-06-18T06:58:15.000Z
config.py
MGorr/icons_updater
aa9f9177a565fbe590cf959f625f049024e01efb
[ "MIT" ]
null
null
null
config.py
MGorr/icons_updater
aa9f9177a565fbe590cf959f625f049024e01efb
[ "MIT" ]
null
null
null
"""Configuration class for icons updating.""" import os from configparser import ConfigParser _DESTINATION_NAME = 'dst' _MAGICK_NAME = 'path' _SOURCES_NAME = 'src' class Config: """Configuration class.""" def __init__(self, config_file=None, src=None, dst=None): """Constructor.""" parser =...
30.363636
72
0.610778
155
1,336
5.064516
0.296774
0.089172
0.071338
0.086624
0.103185
0
0
0
0
0
0
0
0.289671
1,336
43
73
31.069767
0.827187
0.081587
0
0
0
0
0.120733
0
0
0
0
0
0.066667
1
0.1
false
0
0.066667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd837f67ec7177838bf8a526749af097805f6779
15,142
py
Python
CalsCamera/main.py
NoDrones/Imaging
555c8aeced98097379b80f448689f2bf2974c3e9
[ "MIT" ]
1
2019-01-28T21:55:53.000Z
2019-01-28T21:55:53.000Z
CalsCamera/main.py
NoDrones/Imaging
555c8aeced98097379b80f448689f2bf2974c3e9
[ "MIT" ]
null
null
null
CalsCamera/main.py
NoDrones/Imaging
555c8aeced98097379b80f448689f2bf2974c3e9
[ "MIT" ]
null
null
null
#Author: Calvin Ryan import sensor, image, time, pyb, ustruct, math, utime def get_gain(): gain_reg_val = sensor.__read_reg(0x00) #print("gain_reg_val: " + str(gain_reg_val)) bitwise_gain_range = (gain_reg_val & 0b11110000) >> 4 #get the highest four bits which correspond to gain range. Depends on the bit...
43.636888
262
0.66616
2,274
15,142
4.046614
0.134565
0.030428
0.029993
0.027385
0.526081
0.43697
0.312649
0.232667
0.197892
0.197892
0
0.036568
0.212588
15,142
346
263
43.763006
0.735218
0.190992
0
0.148837
0
0
0.068106
0.009678
0
0
0.007886
0
0
1
0.013953
false
0.009302
0.004651
0
0.04186
0.223256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd88982df37b33dce441276837b7773dc3af6b26
1,311
py
Python
tests/garage/tf/spaces/test_dict_space.py
shadiakiki1986/garage
095bb5d25b32df1d44b47e99a78a9b01796941d9
[ "MIT" ]
3
2019-08-11T22:26:55.000Z
2020-11-28T10:23:50.000Z
tests/garage/tf/spaces/test_dict_space.py
shadiakiki1986/garage
095bb5d25b32df1d44b47e99a78a9b01796941d9
[ "MIT" ]
null
null
null
tests/garage/tf/spaces/test_dict_space.py
shadiakiki1986/garage
095bb5d25b32df1d44b47e99a78a9b01796941d9
[ "MIT" ]
2
2019-08-11T22:30:14.000Z
2021-03-25T02:57:50.000Z
"""This script tests garage.tf.spaces.dict functionality.""" import unittest from garage.misc import ext from garage.tf.envs import TfEnv from tests.fixtures.envs.dummy import DummyDictEnv class TestDictSpace(unittest.TestCase): def test_dict_space(self): ext.set_seed(0) # A dummy dict env ...
31.214286
76
0.661327
180
1,311
4.494444
0.316667
0.055624
0.121137
0.074166
0.116193
0.116193
0
0
0
0
0
0.004032
0.243326
1,311
41
77
31.97561
0.811492
0.139588
0
0
0
0
0.043011
0
0
0
0
0
0.217391
1
0.043478
false
0
0.173913
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd8913997853973a6abd55f95d60d2c6a230000b
3,429
py
Python
utils/compare_MRAE.py
Liuhongzhi2018/SSRGAN
b5be922db1600aabb6a06ee52fb1c83ee738d794
[ "Apache-2.0" ]
1
2022-01-21T09:01:48.000Z
2022-01-21T09:01:48.000Z
utils/compare_MRAE.py
Liuhongzhi2018/SSRGAN
b5be922db1600aabb6a06ee52fb1c83ee738d794
[ "Apache-2.0" ]
1
2021-08-18T11:33:43.000Z
2021-08-18T11:33:43.000Z
utils/compare_MRAE.py
Liuhongzhi2018/SSRGAN
b5be922db1600aabb6a06ee52fb1c83ee738d794
[ "Apache-2.0" ]
null
null
null
import argparse import os import cv2 import numpy as np import hdf5storage as hdf5 from scipy.io import loadmat from matplotlib import pyplot as plt from SpectralUtils import savePNG, projectToRGB from EvalMetrics import computeMRAE BIT_8 = 256 # read path def get_files(path): # read a folder, return the complet...
36.870968
118
0.706328
460
3,429
5.06087
0.271739
0.051546
0.034364
0.061856
0.515464
0.500859
0.480241
0.477663
0.47122
0.37543
0
0.044516
0.181102
3,429
92
119
37.271739
0.784544
0.238262
0
0.258065
0
0
0.121481
0.049749
0
0
0
0
0
1
0.096774
false
0
0.145161
0
0.306452
0.048387
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd895eff6bdbc6e4f11421a7c77e8c3865e7d03d
2,435
py
Python
board/send_message.py
ben741863140/cfsystem
227e269f16533719251962f4d8caee8b51091d2f
[ "Apache-2.0" ]
4
2018-02-22T01:59:07.000Z
2020-07-09T06:28:46.000Z
board/send_message.py
ben741863140/cfsystem
227e269f16533719251962f4d8caee8b51091d2f
[ "Apache-2.0" ]
null
null
null
board/send_message.py
ben741863140/cfsystem
227e269f16533719251962f4d8caee8b51091d2f
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import gzip import re import http.cookiejar import urllib.request import urllib.parse # from logreg.sender import use_sender, sender def send_message(handle, content, captcha): def ungzip(data): return gzip.decompress(data) def get_csrf(data): cer = re.compile('data-csr...
29.695122
93
0.588501
299
2,435
4.705686
0.404682
0.03838
0.036958
0.036247
0.283582
0.253731
0.203269
0.157783
0.051173
0.051173
0
0.034884
0.258316
2,435
81
94
30.061728
0.744186
0.092813
0
0.234375
0
0.03125
0.238507
0.045061
0
0
0
0
0
1
0.0625
false
0.015625
0.078125
0.015625
0.234375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd8f9e880d1c5b15888f038a47c041322592d1b0
2,177
py
Python
arfit/run_carma_pack.py
farr/arfit
7ff6def331ef98f43f623da2d9867d1ac967448b
[ "MIT" ]
5
2015-04-29T21:46:52.000Z
2021-05-13T04:59:23.000Z
arfit/run_carma_pack.py
afcarl/arfit
7ff6def331ef98f43f623da2d9867d1ac967448b
[ "MIT" ]
null
null
null
arfit/run_carma_pack.py
afcarl/arfit
7ff6def331ef98f43f623da2d9867d1ac967448b
[ "MIT" ]
2
2015-12-03T12:08:32.000Z
2018-05-26T16:20:31.000Z
#!/usr/bin/env python from __future__ import print_function import argparse import carmcmc as cm import numpy as np import os import plotutils.autocorr as ac import sys if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--input', required=True, metavar='FILE', help='input fil...
34.015625
131
0.635278
291
2,177
4.628866
0.408935
0.046771
0.088344
0.046771
0.158872
0.118782
0.095026
0
0
0
0
0.013921
0.208085
2,177
63
132
34.555556
0.767401
0.009187
0
0.046512
0
0
0.13961
0
0
0
0
0
0
1
0
false
0
0.162791
0
0.162791
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
dd9402b8557bc8fee0baeb9f728d3c332668ae1e
2,240
py
Python
test/http2_test/http2_server_health_check.py
miyachu/grpc
a06ea3c3162c10ff90a1578bf82bbbff95dc799d
[ "BSD-3-Clause" ]
2
2021-09-10T00:20:13.000Z
2021-11-16T11:27:19.000Z
test/http2_test/http2_server_health_check.py
miyachu/grpc
a06ea3c3162c10ff90a1578bf82bbbff95dc799d
[ "BSD-3-Clause" ]
null
null
null
test/http2_test/http2_server_health_check.py
miyachu/grpc
a06ea3c3162c10ff90a1578bf82bbbff95dc799d
[ "BSD-3-Clause" ]
1
2020-11-04T04:19:45.000Z
2020-11-04T04:19:45.000Z
# Copyright 2017, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
44.8
75
0.766964
320
2,240
5.30625
0.5375
0.023557
0.020024
0.027091
0.108363
0.080094
0.080094
0.080094
0.080094
0.080094
0
0.006926
0.162054
2,240
49
76
45.714286
0.897709
0.7125
0
0
0
0
0.163132
0.057096
0
0
0
0
0
1
0
false
0
0.176471
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
dd9452c189452f40fb4e6f56c43cb761ffc48203
3,494
py
Python
server/droidio/demands/test/test_views.py
lucasOlivio/droid.io
945b1452eaaa73b4d7f9d1d1a35eaa2900e97e96
[ "MIT" ]
null
null
null
server/droidio/demands/test/test_views.py
lucasOlivio/droid.io
945b1452eaaa73b4d7f9d1d1a35eaa2900e97e96
[ "MIT" ]
null
null
null
server/droidio/demands/test/test_views.py
lucasOlivio/droid.io
945b1452eaaa73b4d7f9d1d1a35eaa2900e97e96
[ "MIT" ]
null
null
null
from django.urls import reverse from rest_framework.test import APITestCase from rest_framework import status from nose.tools import eq_ from faker import Faker import factory from ..models import Demand from .factories import DemandFactory from ..serializers import DemandSerializer from droidio.users.test.factorie...
34.94
87
0.704637
440
3,494
5.361364
0.222727
0.042391
0.061043
0.067825
0.476473
0.369648
0.302671
0.27766
0.246291
0.246291
0
0.009551
0.190899
3,494
99
88
35.292929
0.824903
0.034917
0
0.235294
0
0
0.029184
0.006254
0
0
0
0
0
1
0.147059
false
0
0.147059
0
0.323529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd94f0230de4472e8494e2e5c028fe0a163fe4d9
422
py
Python
leetcode/python/check_in_n_and_its_double_exists.py
subhadig/leetcode
9151ea49c342efa228cf82de72736c3445bbfef2
[ "Unlicense" ]
null
null
null
leetcode/python/check_in_n_and_its_double_exists.py
subhadig/leetcode
9151ea49c342efa228cf82de72736c3445bbfef2
[ "Unlicense" ]
null
null
null
leetcode/python/check_in_n_and_its_double_exists.py
subhadig/leetcode
9151ea49c342efa228cf82de72736c3445bbfef2
[ "Unlicense" ]
null
null
null
# https://leetcode.com/explore/learn/card/fun-with-arrays/527/searching-for-items-in-an-array/3250/ # time: O(n) # space: O(n) class Solution: def checkIfExist(self, arr: List[int]) -> bool: if not arr: return False nums = set() for x in arr: if 2*x in nums or x/2 in...
26.375
99
0.533175
61
422
3.688525
0.688525
0.017778
0
0
0
0
0
0
0
0
0
0.032727
0.348341
422
15
100
28.133333
0.785455
0.28436
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd95ba5b789b57d2c18cb6c697a4bed1400af969
2,743
py
Python
cloud_functions/trigger-monitor-dag-function/main_test.py
google/feedloader
f6a25569bc3d7d4ee326961fd3b01e45fc3858e4
[ "Apache-2.0" ]
5
2021-02-15T12:49:12.000Z
2022-01-12T06:28:41.000Z
cloud_functions/trigger-monitor-dag-function/main_test.py
google/feedloader
f6a25569bc3d7d4ee326961fd3b01e45fc3858e4
[ "Apache-2.0" ]
null
null
null
cloud_functions/trigger-monitor-dag-function/main_test.py
google/feedloader
f6a25569bc3d7d4ee326961fd3b01e45fc3858e4
[ "Apache-2.0" ]
4
2021-02-16T17:28:00.000Z
2021-06-18T15:27:52.000Z
# coding=utf-8 # Copyright 2021 Google 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 ...
31.528736
79
0.696318
360
2,743
5.138889
0.430556
0.041622
0.037838
0.030811
0.237297
0.188649
0.188649
0.188649
0.188649
0.188649
0
0.02382
0.188844
2,743
86
80
31.895349
0.80764
0.22202
0
0.175439
0
0.017544
0.263357
0.055792
0
0
0
0
0.087719
1
0.070175
false
0
0.070175
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd99b6d2cdd53e9871b02f6e724fb47ac13372e3
12,973
py
Python
programs/loadsheet/loadsheet.py
admin-db/OnboardingTools
0f9d363d461df8c01e99157386338633828f5f92
[ "Apache-2.0" ]
3
2021-04-24T14:39:50.000Z
2021-07-20T17:11:19.000Z
programs/loadsheet/loadsheet.py
admin-db/OnboardingTools
0f9d363d461df8c01e99157386338633828f5f92
[ "Apache-2.0" ]
2
2020-07-22T21:34:33.000Z
2021-01-14T19:26:12.000Z
programs/loadsheet/loadsheet.py
admin-db/OnboardingTools
0f9d363d461df8c01e99157386338633828f5f92
[ "Apache-2.0" ]
2
2020-07-16T03:34:35.000Z
2020-07-22T21:18:12.000Z
#Copyright 2020 DB Engineering #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, softwa...
27.427061
145
0.697757
1,751
12,973
4.974872
0.215306
0.029847
0.023878
0.011021
0.377339
0.302262
0.270577
0.253473
0.253473
0.243256
0
0.008015
0.201727
12,973
473
145
27.427061
0.83314
0.475064
0
0.391489
0
0.004255
0.157294
0.018974
0
0
0
0.002114
0.012766
1
0.07234
false
0.008511
0.046809
0
0.165957
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dd9c212b2612a151f4e10e08866ba944cee12a2b
2,883
py
Python
openwater/zone/model.py
jeradM/openwater
740b7e76622a1ee909b970d9e5c612a840466cec
[ "MIT" ]
null
null
null
openwater/zone/model.py
jeradM/openwater
740b7e76622a1ee909b970d9e5c612a840466cec
[ "MIT" ]
null
null
null
openwater/zone/model.py
jeradM/openwater
740b7e76622a1ee909b970d9e5c612a840466cec
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from datetime import datetime from typing import TYPE_CHECKING, Dict, Any, List, Optional if TYPE_CHECKING: from openwater.core import OpenWater class ZoneRun: def __init__(self, id: int, zone_id: int, start: datetime, duration: int): self.id = id self.zone...
25.289474
78
0.539369
340
2,883
4.347059
0.164706
0.054127
0.032476
0.028417
0.159675
0.159675
0.159675
0.159675
0.159675
0.159675
0
0.00106
0.34582
2,883
113
79
25.513274
0.782609
0
0
0.270833
0
0
0.069719
0
0
0
0
0
0
1
0.125
false
0.041667
0.041667
0.083333
0.270833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dda05eca52f0bd879e75366f591fdb92e3e9abbd
855
py
Python
tests/test_views.py
pennlabs/django-shortener
a8f362863d4d8f13916e9e924ed316384f588373
[ "MIT" ]
3
2018-11-04T15:46:01.000Z
2020-01-06T13:49:46.000Z
tests/test_views.py
pennlabs/shortener
a8f362863d4d8f13916e9e924ed316384f588373
[ "MIT" ]
1
2019-07-30T04:31:19.000Z
2019-07-30T04:31:19.000Z
tests/test_views.py
pennlabs/shortener
a8f362863d4d8f13916e9e924ed316384f588373
[ "MIT" ]
2
2021-02-22T18:12:27.000Z
2021-09-16T18:51:47.000Z
import hashlib from django.test import TestCase from django.urls import reverse from shortener.models import Url class RedirectViewTestCase(TestCase): def setUp(self): self.redirect = "https://pennlabs.org" self.url, _ = Url.objects.get_or_create(long_url=self.redirect) def test_exists(self...
34.2
84
0.691228
104
855
5.576923
0.490385
0.103448
0.062069
0.072414
0.265517
0.265517
0.158621
0.158621
0
0
0
0.018625
0.183626
855
24
85
35.625
0.812321
0
0
0
0
0
0.074854
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
dda073c654623fd4431b83697b75b0c9003f460a
1,758
py
Python
Models/Loss/__init__.py
bobo0810/classification
b27397308c5294dcc30a5aaddab4692becfc45d3
[ "MIT" ]
null
null
null
Models/Loss/__init__.py
bobo0810/classification
b27397308c5294dcc30a5aaddab4692becfc45d3
[ "MIT" ]
null
null
null
Models/Loss/__init__.py
bobo0810/classification
b27397308c5294dcc30a5aaddab4692becfc45d3
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from timm.loss import LabelSmoothingCrossEntropy from pytorch_metric_learning import losses class create_class_loss(nn.Module): """ 常规分类 - 损失函数入口 """ def __init__(self, name): super(create_class_loss, self).__init__() assert name in ["cross_entropy",...
27.46875
80
0.609215
189
1,758
5.375661
0.285714
0.047244
0.047244
0.090551
0.347441
0.155512
0
0
0
0
0
0
0.288965
1,758
63
81
27.904762
0.8128
0.047213
0
0.105263
0
0
0.083439
0
0
0
0
0
0.052632
1
0.157895
false
0
0.105263
0.052632
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dda2bd0af7d3de24450c99ea2968e3067f121da2
1,397
py
Python
VGG_GRU/TrainTestlist/Emotiw/getTraintest_Emotiw.py
XiaoYee/emotion_classification
6122e1b575bce5235169f155295b549a8f721ca1
[ "MIT" ]
74
2018-06-29T06:46:33.000Z
2022-02-26T19:15:55.000Z
VGG_GRU/TrainTestlist/Emotiw/getTraintest_Emotiw.py
JIangjiang1108/emotion_classification
6122e1b575bce5235169f155295b549a8f721ca1
[ "MIT" ]
6
2018-07-02T09:29:05.000Z
2020-01-30T14:21:26.000Z
VGG_GRU/TrainTestlist/Emotiw/getTraintest_Emotiw.py
JIangjiang1108/emotion_classification
6122e1b575bce5235169f155295b549a8f721ca1
[ "MIT" ]
23
2018-06-29T12:52:40.000Z
2020-12-02T12:55:13.000Z
import os import os.path as osp import argparse import random parser = argparse.ArgumentParser(description='Emotiw dataset list producer') args = parser.parse_args() train = "/home/quxiaoye/disk/FR/Emotiw2018/data/Train_AFEW_all/Emotiw-faces" test = "/home/quxiaoye/disk/FR/Emotiw2018/data/Val_AFEW/Emotiw-faces" tr...
29.723404
76
0.7602
207
1,397
4.835749
0.236715
0.0999
0.074925
0.035964
0.563437
0.511489
0.345654
0.345654
0.28971
0.28971
0
0.006515
0.120974
1,397
46
77
30.369565
0.808632
0
0
0.25
0
0
0.170365
0.144596
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06bb33b3d53b354d7a98d017485acac1da8698a5
1,127
py
Python
py/1081. Smallest Subsequence of Distinct Characters.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
3
2021-08-07T07:01:34.000Z
2021-08-07T07:03:02.000Z
py/1081. Smallest Subsequence of Distinct Characters.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
null
null
null
py/1081. Smallest Subsequence of Distinct Characters.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/ # Return the lexicographically smallest subsequence of s that contains all the # distinct characters of s exactly once. # Note: This question is the same as 316: https://leetcode.com/problems/remove- # duplicate-letters/ ###################...
38.862069
108
0.585626
146
1,127
4.486301
0.472603
0.042748
0.048855
0.073282
0.143511
0.143511
0.076336
0
0
0
0
0.006053
0.267081
1,127
28
109
40.25
0.786925
0.489796
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
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
06be7d0ae668828822753247461cfec9b2e4f3d3
675
py
Python
kpm/commands/push.py
ericchiang/kpm
3653b1dba8359f086a6a21d3a5003e80a46083a7
[ "Apache-2.0" ]
121
2016-08-05T17:54:27.000Z
2022-02-21T14:21:59.000Z
kpm/commands/push.py
ericchiang/kpm
3653b1dba8359f086a6a21d3a5003e80a46083a7
[ "Apache-2.0" ]
82
2016-08-07T01:42:41.000Z
2017-05-05T17:35:45.000Z
kpm/commands/push.py
ericchiang/kpm
3653b1dba8359f086a6a21d3a5003e80a46083a7
[ "Apache-2.0" ]
30
2016-08-15T13:12:10.000Z
2022-02-21T14:22:00.000Z
from appr.commands.push import PushCmd as ApprPushCmd from kpm.manifest_jsonnet import ManifestJsonnet class PushCmd(ApprPushCmd): default_media_type = 'kpm' def _kpm(self): self.filter_files = True self.manifest = ManifestJsonnet() ns, name = self.manifest.package['name'].split("/")...
32.142857
66
0.638519
80
675
5.3125
0.4125
0.112941
0.063529
0
0
0
0
0
0
0
0
0
0.251852
675
20
67
33.75
0.841584
0
0
0
0
0
0.04
0
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06bfd7cd414a9434b1f295b51c26d7407c29f08d
383
py
Python
problem_29/distinct_powers.py
plilja/project-euler
646d1989cf15e903ef7e3c6e487284847d522ec9
[ "Apache-2.0" ]
null
null
null
problem_29/distinct_powers.py
plilja/project-euler
646d1989cf15e903ef7e3c6e487284847d522ec9
[ "Apache-2.0" ]
null
null
null
problem_29/distinct_powers.py
plilja/project-euler
646d1989cf15e903ef7e3c6e487284847d522ec9
[ "Apache-2.0" ]
null
null
null
from common.matrix import Matrix def distinct_powers(n): m = Matrix(n + 2, n + 2) for i in range(2, n + 1): m[i][2] = i ** 2 for j in range(3, n + 1): m[i][j] = m[i][j - 1] * i distinct_values = set() for i in range(2, n + 1): for j in range(2, n + 1): ...
21.277778
40
0.488251
68
383
2.691176
0.308824
0.043716
0.131148
0.147541
0.20765
0.153005
0.153005
0
0
0
0
0.052419
0.35248
383
17
41
22.529412
0.685484
0
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06c21871e9ad89697d51562c488828bc64f7390f
1,436
py
Python
1-python/python/transpose.py
Domin-Imperial/Domin-Respository
2e531aabc113ed3511f349107695847b5c4e4320
[ "MIT" ]
null
null
null
1-python/python/transpose.py
Domin-Imperial/Domin-Respository
2e531aabc113ed3511f349107695847b5c4e4320
[ "MIT" ]
null
null
null
1-python/python/transpose.py
Domin-Imperial/Domin-Respository
2e531aabc113ed3511f349107695847b5c4e4320
[ "MIT" ]
1
2021-05-24T20:09:38.000Z
2021-05-24T20:09:38.000Z
# exercism exercise "transpose" def transpose(lines: str) -> str: input_list = lines.split('\n') # or splitlines input_height = len(input_list) input_width = get_input_width(input_list) output_list = [] for colnum in range(input_width): output = '' for rownum in range(input_height)...
27.615385
67
0.612117
193
1,436
4.373057
0.305699
0.138626
0.07109
0.074645
0.239336
0.187204
0.120853
0.075829
0.075829
0
0
0.00283
0.261838
1,436
51
68
28.156863
0.793396
0.373259
0
0
0
0
0.022779
0
0
0
0
0
0
1
0.136364
false
0
0
0
0.318182
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
06c2aad42518b04959fd06448a4c2d1ef11c34fe
4,318
py
Python
core/models.py
mcflydesigner/innorussian
70bec97ad349f340bd66cd8234d94f8829540397
[ "MIT" ]
1
2021-04-12T18:54:37.000Z
2021-04-12T18:54:37.000Z
core/models.py
mcflydesigner/InnoRussian
70bec97ad349f340bd66cd8234d94f8829540397
[ "MIT" ]
null
null
null
core/models.py
mcflydesigner/InnoRussian
70bec97ad349f340bd66cd8234d94f8829540397
[ "MIT" ]
null
null
null
from django.db import models from django.utils.timezone import now from django.core.validators import FileExtensionValidator from django.contrib.auth import get_user_model from django.contrib.postgres.fields import ArrayField from django.db.models import (Func, Value, CharField, IntegerField) from .shortcuts import up...
35.393443
101
0.652154
497
4,318
5.545272
0.32998
0.025399
0.014514
0.023222
0.260523
0.2373
0.211901
0.211901
0.211901
0.211901
0
0.003044
0.239231
4,318
121
102
35.68595
0.835921
0.215146
0
0.258065
0
0
0.076296
0.007499
0
0
0
0
0
1
0.080645
false
0
0.112903
0.064516
0.693548
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06c7a3448e8983e9a265c812e501b174dd35b66d
5,821
py
Python
SegmentationAlgorithms/CBSMoT.py
JRose6/TrajLib
2a5749bf6e9517835801926d6a5e92564ef2c7f0
[ "Apache-2.0" ]
null
null
null
SegmentationAlgorithms/CBSMoT.py
JRose6/TrajLib
2a5749bf6e9517835801926d6a5e92564ef2c7f0
[ "Apache-2.0" ]
null
null
null
SegmentationAlgorithms/CBSMoT.py
JRose6/TrajLib
2a5749bf6e9517835801926d6a5e92564ef2c7f0
[ "Apache-2.0" ]
null
null
null
import Distances as d import pandas as pd import numpy as np class CBSmot: nano_to_seconds = 1000000000 def count_neighbors(self, traj, position, max_dist): neighbors = 0 yet = True j = position + 1 while j < len(traj.index) and yet: if d.Distances.calculate_two_poi...
35.932099
104
0.489263
711
5,821
3.869198
0.139241
0.013086
0.019629
0.034533
0.619775
0.576881
0.517993
0.504544
0.504544
0.504544
0
0.038813
0.398042
5,821
162
105
35.932099
0.74629
0.012025
0
0.597122
0
0
0.007307
0
0
0
0
0
0
1
0.064748
false
0
0.021583
0
0.165468
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06c9d2978cf880b3371f69c40666eeeea090512c
13,838
py
Python
Support/validate.py
sgarbesi/javascript-eslint.tmbundle
b117fe0133582676113a96fc9804795c033d0b78
[ "BSD-3-Clause" ]
1
2015-05-01T14:24:39.000Z
2015-05-01T14:24:39.000Z
Support/validate.py
sgarbesi/javascript-eslint.tmbundle
b117fe0133582676113a96fc9804795c033d0b78
[ "BSD-3-Clause" ]
null
null
null
Support/validate.py
sgarbesi/javascript-eslint.tmbundle
b117fe0133582676113a96fc9804795c033d0b78
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ Validate a JavaScript file using eslint. Author: Nate Silva Copyright 2014 Nate Silva License: MIT """ from __future__ import print_function import sys import os import re import time import json import subprocess import tempfile import hashlib import shutil def find_up_...
33.833741
98
0.568001
1,727
13,838
4.452808
0.223509
0.019506
0.013004
0.007802
0.319246
0.283355
0.264889
0.249415
0.20104
0.182835
0
0.003626
0.3025
13,838
408
99
33.916667
0.791857
0.200607
0
0.363281
0
0.011719
0.25637
0.032932
0
0
0
0
0
1
0.019531
false
0
0.039063
0
0.09375
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06d128fc6f207aa019def30c73ff71c2d5f4ad72
8,745
py
Python
imagenet_pytorch/utils.py
lishuliang/Emotion-Recognition
a8aea1b71b2508e6157410089b20ab463fe901f5
[ "MIT" ]
1
2019-03-16T08:11:53.000Z
2019-03-16T08:11:53.000Z
imagenet_pytorch/utils.py
lishuliang/Emotion-Recognition
a8aea1b71b2508e6157410089b20ab463fe901f5
[ "MIT" ]
null
null
null
imagenet_pytorch/utils.py
lishuliang/Emotion-Recognition
a8aea1b71b2508e6157410089b20ab463fe901f5
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data import torch.nn.functional as F from torch.nn import init class attention(nn.Module): def __init__(self, input_channels, map_size): super(attention, self).__init__() ...
43.507463
145
0.5992
1,199
8,745
4.089241
0.090909
0.039976
0.051397
0.03712
0.700184
0.616153
0.489904
0.448297
0.344687
0.303896
0
0.020392
0.293425
8,745
200
146
43.725
0.773102
0.077759
0
0.302632
0
0
0.000249
0
0
0
0
0
0.006579
1
0.065789
false
0
0.052632
0
0.184211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06d1d332e24aee96ce48f604359996ef77a12eea
1,349
py
Python
setup.py
jopo666/HistoPrep
1b74c346b38c7ca44f92269246571f5f850836af
[ "MIT" ]
11
2021-04-21T10:37:22.000Z
2021-12-19T22:32:59.000Z
setup.py
jopo666/HistoPrep
1b74c346b38c7ca44f92269246571f5f850836af
[ "MIT" ]
1
2021-02-24T09:15:13.000Z
2021-04-19T06:38:58.000Z
setup.py
jopo666/HistoPrep
1b74c346b38c7ca44f92269246571f5f850836af
[ "MIT" ]
1
2021-09-16T05:00:21.000Z
2021-09-16T05:00:21.000Z
import setuptools exec(open('histoprep/_version.py').read()) with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="histoprep", version=__version__, author="jopo666", scripts=['HistoPrep'], author_email="jopo@birdlover.com", description="...
32.119048
75
0.614529
154
1,349
5.285714
0.642857
0.07371
0.046683
0.07371
0
0
0
0
0
0
0
0.047125
0.213491
1,349
42
76
32.119048
0.720075
0
0
0.051282
0
0
0.488148
0.065926
0
0
0
0
0
1
0
false
0
0.025641
0
0.025641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06d28dfe07994e25ac5013d571490aa1301605ee
15,260
py
Python
train.py
Kiwi-PUJ/DataTraining
706642996e884b47a0aa7dfb19da33a7234a311e
[ "CC0-1.0" ]
3
2021-06-04T00:07:54.000Z
2021-06-09T01:14:07.000Z
train.py
Kiwi-PUJ/DataTraining
706642996e884b47a0aa7dfb19da33a7234a311e
[ "CC0-1.0" ]
null
null
null
train.py
Kiwi-PUJ/DataTraining
706642996e884b47a0aa7dfb19da33a7234a311e
[ "CC0-1.0" ]
null
null
null
## @package Training_app # Training code developed with Tensorflow Keras. Content: Unet, Unet++ and FCN # # @version 1 # # Pontificia Universidad Javeriana # # Electronic Enginnering # # Developed by: # - Andrea Juliana Ruiz Gomez # Mail: <andrea_ruiz@javeriana.edu.co> # GitHub: andrearuizg # - Pedro E...
29.921569
80
0.602687
2,302
15,260
3.874023
0.143354
0.032967
0.022202
0.023436
0.59464
0.568065
0.53577
0.505382
0.478471
0.462772
0
0.102997
0.243512
15,260
509
81
29.980354
0.669525
0.216252
0
0.461794
0
0
0.043663
0.002463
0
0
0
0
0
1
0.053156
false
0
0.036545
0
0.139535
0.009967
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06d355973fd78ec8f3b614057e835f98f36682ef
379
py
Python
qt__pyqt__pyside__pyqode/qt_ini.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
qt__pyqt__pyside__pyqode/qt_ini.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
qt__pyqt__pyside__pyqode/qt_ini.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' try: from PyQt4.QtCore import QSettings except: from PyQt5.QtCore import QSettings if __name__ == '__main__': config = QSettings('config.ini', QSettings.IniFormat) counter = int(config.value('counter', 0)) config.setValue('...
18.95
57
0.664908
45
379
5.333333
0.688889
0.1
0.175
0
0
0
0
0
0
0
0
0.022581
0.182058
379
19
58
19.947368
0.751613
0.113456
0
0
0
0
0.140719
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06dacdda970f273fddcf69cadb01b1f2dd499e8c
296
py
Python
sim_test_model.py
feiyanke/simpy
bde9d09e47596e0bfe66dc7001f556bafd03acc5
[ "MIT" ]
1
2019-01-28T09:13:58.000Z
2019-01-28T09:13:58.000Z
sim_test_model.py
feiyanke/simpy
bde9d09e47596e0bfe66dc7001f556bafd03acc5
[ "MIT" ]
null
null
null
sim_test_model.py
feiyanke/simpy
bde9d09e47596e0bfe66dc7001f556bafd03acc5
[ "MIT" ]
2
2019-01-28T09:13:59.000Z
2020-12-13T09:48:20.000Z
import math import matplotlib.pyplot as plt from simpy import model ax1 = plt.subplot(121) ax2 = plt.subplot(122) model_sin = model.TimedFunctionModel(math.sin) model_cos = model.TimedFunctionModel(math.cos) scope = model.ScopeModel(ax1, ax2) def run(): scope(model_sin(), model_cos())
17.411765
46
0.75
43
296
5.069767
0.488372
0.110092
0.119266
0
0
0
0
0
0
0
0
0.039063
0.135135
296
16
47
18.5
0.8125
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06db8ba3ca98cc15e56e2db049c572bc5f7c97a3
2,760
py
Python
Day_10_classes_and_objects/day10_uzd1.py
ValRCS/Python_TietoEvry_Sep2021
e11dac38deb17ba695ce8ad9dab9cf78b4adb99d
[ "MIT" ]
null
null
null
Day_10_classes_and_objects/day10_uzd1.py
ValRCS/Python_TietoEvry_Sep2021
e11dac38deb17ba695ce8ad9dab9cf78b4adb99d
[ "MIT" ]
null
null
null
Day_10_classes_and_objects/day10_uzd1.py
ValRCS/Python_TietoEvry_Sep2021
e11dac38deb17ba695ce8ad9dab9cf78b4adb99d
[ "MIT" ]
null
null
null
# class Song: # Song is name of Class, start with Capital letter # def __init__(self, title="", author="", lyrics=tuple()): # constructor method called upon creation of object # self.title = title # self.author = author # self.lyrics = lyrics # # print(f"New Song made by Author: {s...
34.5
115
0.595652
362
2,760
4.433702
0.276243
0.050467
0.02243
0.032399
0.381308
0.301558
0.266667
0.216822
0.179439
0.05109
0
0.007937
0.269565
2,760
79
116
34.936709
0.788194
0.318116
0
0.136364
0
0
0.169181
0
0
0
0
0
0
1
0.113636
false
0
0
0
0.227273
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
06dc1c17dd56d7e1a1011a34a1e1d9b273c1982c
1,956
py
Python
rurina2/widgets/text.py
TeaCondemns/rurina
43725ebea5872953125271a9abb300a4e3a80a64
[ "MIT" ]
null
null
null
rurina2/widgets/text.py
TeaCondemns/rurina
43725ebea5872953125271a9abb300a4e3a80a64
[ "MIT" ]
null
null
null
rurina2/widgets/text.py
TeaCondemns/rurina
43725ebea5872953125271a9abb300a4e3a80a64
[ "MIT" ]
null
null
null
from constants import STYLE_NORMAL, STYLE_BOLD, STYLE_ITALIC from prefabs.text import write_autoline from widgets.widget import WidgetByRect from base_node import get_surface from prefabs.surface import blit from shape import Rect import pygame class Text(WidgetByRect): def __init__( self, ...
25.402597
90
0.541922
211
1,956
4.805687
0.303318
0.055227
0.025641
0.025641
0
0
0
0
0
0
0
0.006478
0.368609
1,956
76
91
25.736842
0.814575
0
0
0.032787
0
0
0.004601
0
0
0
0
0
0
1
0.081967
false
0
0.114754
0.016393
0.245902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06dcdfc975ea640979bb4f316bbb031845b68fa5
5,350
py
Python
Chapter05/B12322_05_code upload/topic_categorization.py
PacktPublishing/Python-Machine-Learning-By-Example-Second-Edition
830ad0124dc72c3a24929ff1b67081a66894f1f9
[ "MIT" ]
31
2019-05-25T11:28:23.000Z
2022-02-09T15:19:20.000Z
Chapter05/B12322_05_code upload/topic_categorization.py
PacktPublishing/Python-Machine-Learning-By-Example-Second-Edition
830ad0124dc72c3a24929ff1b67081a66894f1f9
[ "MIT" ]
null
null
null
Chapter05/B12322_05_code upload/topic_categorization.py
PacktPublishing/Python-Machine-Learning-By-Example-Second-Edition
830ad0124dc72c3a24929ff1b67081a66894f1f9
[ "MIT" ]
22
2019-02-27T20:11:39.000Z
2022-03-07T21:46:38.000Z
''' Source codes for Python Machine Learning By Example 2nd Edition (Packt Publishing) Chapter 5: Classifying Newsgroup Topic with Support Vector Machine Author: Yuxi (Hayden) Liu ''' from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.datasets import fetch_20newsgroups from nltk.corpus import nam...
31.470588
108
0.774393
752
5,350
5.226064
0.207447
0.040712
0.032061
0.047328
0.606616
0.606616
0.590331
0.561832
0.551908
0.551908
0
0.021886
0.111776
5,350
169
109
31.656805
0.805135
0.045794
0
0.424779
0
0
0.111896
0
0
0
0
0
0
1
0.017699
false
0
0.106195
0.00885
0.141593
0.132743
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06e007230d32188f666bcfa817cb0d72deaa62d6
639
py
Python
cocos#275--HTMLLabel/html_label_test.py
los-cocos/etc_code
71c642a5e0f7ff8049cb5fb4ecac3f166ca20280
[ "MIT" ]
2
2016-08-28T19:41:47.000Z
2018-12-14T22:01:26.000Z
cocos#275--HTMLLabel/html_label_test.py
los-cocos/etc_code
71c642a5e0f7ff8049cb5fb4ecac3f166ca20280
[ "MIT" ]
null
null
null
cocos#275--HTMLLabel/html_label_test.py
los-cocos/etc_code
71c642a5e0f7ff8049cb5fb4ecac3f166ca20280
[ "MIT" ]
2
2015-09-21T06:55:12.000Z
2020-05-29T14:34:34.000Z
#!/usr/bin/env python3 # -*-coding:utf-8 -* import cocos from cocos.text import HTMLLabel from cocos.director import director class TestLayer(cocos.layer.Layer): def __init__(self): super(TestLayer, self).__init__() x, y = director.get_window_size() self.text = HTMLLabel("""<center><font...
24.576923
68
0.640063
84
639
4.607143
0.535714
0.046512
0
0
0
0
0
0
0
0
0
0.013672
0.198748
639
26
69
24.576923
0.742188
0.062598
0
0
0
0
0.175585
0.071906
0
0
0
0
0
1
0.111111
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06e062374abeb59d36c97a31d852af3b3fb9d03c
4,284
py
Python
depronoun.py
rui-bettencourt/AutomaticSentenceDivision
4cb29897103189791c932aaea42c8d5b4ecd8bcd
[ "MIT" ]
null
null
null
depronoun.py
rui-bettencourt/AutomaticSentenceDivision
4cb29897103189791c932aaea42c8d5b4ecd8bcd
[ "MIT" ]
null
null
null
depronoun.py
rui-bettencourt/AutomaticSentenceDivision
4cb29897103189791c932aaea42c8d5b4ecd8bcd
[ "MIT" ]
null
null
null
# from nltk.tokenize import word_tokenize from xml.dom import minidom import progressbar from time import sleep input_file = 'data/dataset_output.txt' num_lines = sum(1 for line in open(input_file)) read_file = open(input_file, 'r') write_output_file = open('data/dataset_output_no_pronouns.txt', 'w') pronouns = ['h...
33.46875
157
0.614613
548
4,284
4.655109
0.213504
0.025872
0.044688
0.054096
0.369267
0.359467
0.320659
0.249314
0.198354
0.167777
0
0.002949
0.287582
4,284
127
158
33.732283
0.832896
0.070495
0
0.255102
0
0
0.108619
0.014617
0
0
0
0
0
1
0
false
0
0.040816
0
0.040816
0.122449
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06e4f094f267243cc672eb7459a8a3c1167d18f8
2,794
py
Python
pyaws/utils/userinput.py
mwozniczak/pyaws
af8f6d64ff47fd2ef2eb9fef25680e4656523fa3
[ "MIT" ]
null
null
null
pyaws/utils/userinput.py
mwozniczak/pyaws
af8f6d64ff47fd2ef2eb9fef25680e4656523fa3
[ "MIT" ]
null
null
null
pyaws/utils/userinput.py
mwozniczak/pyaws
af8f6d64ff47fd2ef2eb9fef25680e4656523fa3
[ "MIT" ]
null
null
null
""" Python3 Module Summary: User Input Manipulation """ import re from string import ascii_lowercase def bool_assignment(arg, patterns=None): """ Summary: Enforces correct bool argment assignment Arg: :arg (*): arg which must be interpreted as either bool True or False Returns: ...
30.043011
100
0.566929
345
2,794
4.53913
0.342029
0.02235
0.019157
0.044061
0.122605
0.057471
0.057471
0
0
0
0
0.00929
0.345025
2,794
92
101
30.369565
0.846448
0.366142
0
0.173913
0
0
0.023679
0
0
0
0
0
0
1
0.065217
false
0
0.043478
0
0.326087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
06f368aa1460565e63ed4a80b862ae97a70212cf
1,151
py
Python
2.py
zweed4u/dailycodingproblem
6e40eaad347e283f86a11adeff01c6426211a0be
[ "MIT" ]
null
null
null
2.py
zweed4u/dailycodingproblem
6e40eaad347e283f86a11adeff01c6426211a0be
[ "MIT" ]
null
null
null
2.py
zweed4u/dailycodingproblem
6e40eaad347e283f86a11adeff01c6426211a0be
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Good morning! Here's your coding interview problem for today. This problem was asked by Uber. Given an array of integers, return a new array such that each element at index i of the new array is the product of all the numbers in the original array except the one at i. For example, if our input...
28.775
174
0.636838
197
1,151
3.64467
0.42132
0.058496
0.050139
0.016713
0.305014
0.169916
0.169916
0.130919
0.130919
0.130919
0
0.048235
0.261512
1,151
39
175
29.512821
0.796471
0.482189
0
0.545455
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
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
66012301064b5709a93a6fcc63e250bae442c6d6
1,804
py
Python
main.py
PortosKo/Python_Lesson_2
160c569f17d21cc1f2e48227b526a49594e90d59
[ "MIT" ]
null
null
null
main.py
PortosKo/Python_Lesson_2
160c569f17d21cc1f2e48227b526a49594e90d59
[ "MIT" ]
null
null
null
main.py
PortosKo/Python_Lesson_2
160c569f17d21cc1f2e48227b526a49594e90d59
[ "MIT" ]
null
null
null
#Задачи на циклы и оператор условия------ #---------------------------------------- ''' # Задача 1 Вывести на экран циклом пять строк из нулей, причем каждая строка должна быть пронумерована. ''' print ('Задача1') x = 0 for x in range (1,6,): print (x,0) ''' Задача 2 Пользователь в цикле вводит 10 цифр. Найти к...
15.288136
92
0.636364
265
1,804
4.286792
0.362264
0.137324
0.079225
0.019366
0.28081
0.15669
0
0
0
0
0
0.06882
0.210643
1,804
118
93
15.288136
0.728933
0.10255
0
0.25
0
0
0.11332
0
0
0
0
0
0
1
0
false
0
0
0
0
0.354167
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
660235efa168bc77f41850e9696ac1ce83979716
5,062
py
Python
config_loader/loader.py
egabancho/config-loader
af45c7bef3afe4dee930754386a1763a28574d6c
[ "MIT" ]
null
null
null
config_loader/loader.py
egabancho/config-loader
af45c7bef3afe4dee930754386a1763a28574d6c
[ "MIT" ]
null
null
null
config_loader/loader.py
egabancho/config-loader
af45c7bef3afe4dee930754386a1763a28574d6c
[ "MIT" ]
null
null
null
"""Configuration loader class.""" import ast import logging import os import types from operator import attrgetter import pkg_resources logger = logging.getLogger(__name__) class Config(object): """Configuration loader, it's like a normal dictionary with super-powers. It will load configuration in the fol...
32.87013
79
0.633544
610
5,062
5.060656
0.286885
0.042112
0.036281
0.017493
0.122773
0.07645
0.07645
0.029155
0
0
0
0.001106
0.285263
5,062
153
80
33.084967
0.852128
0.391545
0
0
0
0
0.035551
0
0
0
0
0
0
1
0.155844
false
0.012987
0.077922
0
0.324675
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
66055a1c87077054947e4816c06f4763187ad5d0
3,125
py
Python
draugr/visualisation/seaborn_utilities/seaborn_enums.py
cnHeider/draugr
b95e0bb1fa5efa581bfb28ff604f296ed2e6b7d6
[ "Apache-2.0" ]
3
2019-09-27T08:04:59.000Z
2020-12-02T06:14:45.000Z
draugr/visualisation/seaborn_utilities/seaborn_enums.py
cnHeider/draugr
b95e0bb1fa5efa581bfb28ff604f296ed2e6b7d6
[ "Apache-2.0" ]
64
2019-09-27T08:03:42.000Z
2022-03-28T15:07:30.000Z
draugr/visualisation/seaborn_utilities/seaborn_enums.py
cnHeider/draugr
b95e0bb1fa5efa581bfb28ff604f296ed2e6b7d6
[ "Apache-2.0" ]
1
2020-10-01T00:18:57.000Z
2020-10-01T00:18:57.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 26-01-2021 """ from enum import Enum from typing import Tuple import numpy from matplotlib import patheffects, pyplot __all__ = ["plot_median_labels", "show_values_on_bars"] from ...
28.935185
86
0.57632
392
3,125
4.346939
0.392857
0.023474
0.025822
0.028169
0.134977
0.085681
0.068075
0.068075
0.068075
0.068075
0
0.009809
0.31488
3,125
107
87
29.205607
0.786081
0.1712
0
0.081081
0
0
0.086328
0
0
0
0
0
0
1
0.040541
false
0
0.067568
0
0.243243
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
66085420dcc9a5728829c81982cb5b8af048ece5
1,061
py
Python
py/callback_dashboard.py
pnvnd/plotly
ede0bb0bb92484c2e3bf4e3631fa97f547e02c16
[ "Unlicense" ]
null
null
null
py/callback_dashboard.py
pnvnd/plotly
ede0bb0bb92484c2e3bf4e3631fa97f547e02c16
[ "Unlicense" ]
null
null
null
py/callback_dashboard.py
pnvnd/plotly
ede0bb0bb92484c2e3bf4e3631fa97f547e02c16
[ "Unlicense" ]
1
2022-01-22T17:19:25.000Z
2022-01-22T17:19:25.000Z
from dash import dash, dcc, html from dash.dependencies import Input, Output import plotly.graph_objs as go import pandas as pd url = 'csv/covidtesting.csv' df = pd.read_csv(url) app = dash.Dash() # list = df.columns[1:] # filter_options = [] # for option in list: # filter_options.append({'label': str(option), ...
24.113636
89
0.597549
140
1,061
4.407143
0.485714
0.04376
0.048622
0
0
0
0
0
0
0
0
0.003667
0.229029
1,061
44
90
24.113636
0.750611
0.183789
0
0
0
0
0.17907
0
0
0
0
0
0
1
0.034483
false
0
0.137931
0.034483
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6608592b97fcda5eb8dc5fb8cb22369434750380
4,288
py
Python
appface.py
iljoong/FaceTag
c43fce89c92ce6de2f397580d80aa834d3e2dbb6
[ "MIT" ]
2
2021-11-12T15:30:55.000Z
2021-11-14T13:53:13.000Z
appface.py
iljoong/FaceTag
c43fce89c92ce6de2f397580d80aa834d3e2dbb6
[ "MIT" ]
1
2018-07-31T08:30:33.000Z
2018-08-01T04:44:52.000Z
appface.py
iljoong/FaceTag
c43fce89c92ce6de2f397580d80aa834d3e2dbb6
[ "MIT" ]
1
2021-11-12T15:31:00.000Z
2021-11-12T15:31:00.000Z
############################################################################################### from keras.models import Model, load_model from PIL import Image import numpy as np import time import cv2 import os import logging import pymongo #import dlib import requests import appconfig import json cascade = cv2.Cas...
28.586667
145
0.614039
522
4,288
4.948276
0.350575
0.046458
0.023229
0.034843
0.213318
0.19125
0.171119
0.14789
0.121564
0.121564
0
0.019673
0.229478
4,288
149
146
28.778523
0.762107
0.016791
0
0.204819
0
0.012048
0.153633
0.051416
0
0
0
0
0
1
0.060241
false
0
0.13253
0
0.277108
0.012048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0