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
95128ff73c5b19e12278311e5737397a3c5afe40
6,943
py
Python
infrastructure/cdn-in-a-box/ort/traffic_ops_ort/utils.py
hbeatty/incubator-trafficcontrol
13ed991531778c60298eb8f532b2a4862f7cb67b
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2021-04-11T16:55:27.000Z
2021-04-11T16:55:27.000Z
infrastructure/cdn-in-a-box/ort/traffic_ops_ort/utils.py
hbeatty/incubator-trafficcontrol
13ed991531778c60298eb8f532b2a4862f7cb67b
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
3
2021-03-12T22:35:02.000Z
2021-12-09T23:00:11.000Z
infrastructure/cdn-in-a-box/ort/traffic_ops_ort/utils.py
hbeatty/incubator-trafficcontrol
13ed991531778c60298eb8f532b2a4862f7cb67b
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.572222
211
0.715109
1,039
6,943
4.766121
0.297401
0.015549
0.01454
0.010501
0.353998
0.340469
0.331583
0.318659
0.263732
0.246365
0
0.007644
0.152096
6,943
179
212
38.78771
0.833532
0.55826
0
0.230769
0
0
0.190796
0
0
0
0
0
0
1
0.061538
false
0
0.061538
0
0.215385
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9514c9647a31509619c43b943b315ef73a1f481a
1,192
py
Python
tests/test_hw02.py
timm/sinless-swe
b331b9bf4d27fdf357ce8a5ce54f9858103fd64f
[ "MIT" ]
null
null
null
tests/test_hw02.py
timm/sinless-swe
b331b9bf4d27fdf357ce8a5ce54f9858103fd64f
[ "MIT" ]
null
null
null
tests/test_hw02.py
timm/sinless-swe
b331b9bf4d27fdf357ce8a5ce54f9858103fd64f
[ "MIT" ]
2
2021-08-29T19:26:19.000Z
2021-09-20T17:44:27.000Z
import os import sys sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/..")) from src.hw2 import csv_reader def testCsvReader(): expectedResult = [['outlook', 'Temp', '?Humidity', 'windy', 'Wins+', 'Play-'], ['sunny', 85, 85, 'FALSE', 10, 20], ['sunny', 80, 90, ...
45.846154
82
0.452181
135
1,192
3.918519
0.466667
0.045369
0.049149
0
0
0
0
0
0
0
0
0.132732
0.348993
1,192
25
83
47.68
0.548969
0
0
0
0
0
0.158557
0
0
0
0
0
0.041667
1
0.041667
false
0
0.125
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
9514f668db331c946ecbf660cfa6375f54adec5b
2,462
py
Python
hyperdeck.py
FlantasticDan/hyperdeck-replay
5d5a62c9342c4e552e6a2d44dbe85cb3dba49f28
[ "MIT" ]
1
2021-09-06T15:02:34.000Z
2021-09-06T15:02:34.000Z
hyperdeck.py
FlantasticDan/hyperdeck-replay
5d5a62c9342c4e552e6a2d44dbe85cb3dba49f28
[ "MIT" ]
null
null
null
hyperdeck.py
FlantasticDan/hyperdeck-replay
5d5a62c9342c4e552e6a2d44dbe85cb3dba49f28
[ "MIT" ]
null
null
null
from telnetlib import Telnet from threading import Thread class Hyperdeck: def __init__(self, ip_address, id) -> None: self.deck = Telnet(ip_address, 9993) self.id = id self.thread = Thread(target=self.listener) self.thread.start() def listener(self): while True: ...
34.676056
79
0.553209
283
2,462
4.731449
0.272085
0.123226
0.052278
0.067214
0.352502
0.300224
0.300224
0.180732
0.079164
0.079164
0
0.035308
0.321284
2,462
71
80
34.676056
0.766008
0
0
0.065574
0
0
0.240357
0.019488
0
0
0
0
0
1
0.098361
false
0
0.032787
0
0.42623
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
951662a92b08b48e3775881d06dfdde6053f3486
453
py
Python
leetcode/weekly154/balloons.py
jan25/code_sorted
f405fd0898f72eb3d5428f9e10aefb4a009d5089
[ "Unlicense" ]
2
2018-01-18T11:01:36.000Z
2021-12-20T18:14:48.000Z
leetcode/weekly154/balloons.py
jan25/code_sorted
f405fd0898f72eb3d5428f9e10aefb4a009d5089
[ "Unlicense" ]
null
null
null
leetcode/weekly154/balloons.py
jan25/code_sorted
f405fd0898f72eb3d5428f9e10aefb4a009d5089
[ "Unlicense" ]
null
null
null
''' https://leetcode.com/contest/weekly-contest-154/problems/maximum-number-of-balloons/ ''' class Solution: def maxNumberOfBalloons(self, text: str) -> int: m = {} for c in text: if c not in m: m[c] = 0 m[c] += 1 ans = len(text) for c in 'lo': if ...
28.3125
84
0.479029
68
453
3.191176
0.514706
0.069124
0.082949
0.046083
0
0
0
0
0
0
0
0.024911
0.379691
453
16
85
28.3125
0.747331
0.18543
0
0
0
0
0.019337
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9518a93eb1a74edc2a091b88692ed0896329bfe9
38,343
py
Python
fraudbot.py
DocGrishka/tetstsss
9e594333306e6ea8c13f0c81aa5ccb05bc7e9e5e
[ "MIT" ]
null
null
null
fraudbot.py
DocGrishka/tetstsss
9e594333306e6ea8c13f0c81aa5ccb05bc7e9e5e
[ "MIT" ]
null
null
null
fraudbot.py
DocGrishka/tetstsss
9e594333306e6ea8c13f0c81aa5ccb05bc7e9e5e
[ "MIT" ]
null
null
null
import discord import sqlite3 import random import requests import pymorphy2 from itertools import product # база, в которой будут храниться заработанные очки и статус отношений бота с пользователем - играет оно и во что, # или просто общается class Bnc: def __init__(self): random.seed(self.ge...
68.469643
122
0.463683
3,732
38,343
4.673365
0.244373
0.028095
0.044665
0.054068
0.265237
0.216215
0.185712
0.143799
0.120005
0.098561
0
0.013575
0.458232
38,343
559
123
68.592129
0.826024
0.130976
0
0.206208
0
0.006652
0.235492
0.006978
0
0
0
0
0
1
0.019956
false
0.004435
0.013304
0.004435
0.064302
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9518dbb4f02a3d9f4f06a63e879638510aa4fe07
31,698
py
Python
iocage/lib/ioc_json.py
project-fifo/iocage
1b8669bc2119718dbea8f2707a4eb4c92197c0f0
[ "BSD-2-Clause" ]
null
null
null
iocage/lib/ioc_json.py
project-fifo/iocage
1b8669bc2119718dbea8f2707a4eb4c92197c0f0
[ "BSD-2-Clause" ]
null
null
null
iocage/lib/ioc_json.py
project-fifo/iocage
1b8669bc2119718dbea8f2707a4eb4c92197c0f0
[ "BSD-2-Clause" ]
1
2022-03-06T10:09:18.000Z
2022-03-06T10:09:18.000Z
"""Convert, load or write JSON.""" import json import logging import os import re import sys from os import geteuid, path from subprocess import CalledProcessError, PIPE, Popen, STDOUT, check_call from iocage.lib.ioc_common import checkoutput, get_nested_key, open_atomic def _get_pool_and_iocroot(): """For inter...
39.573034
81
0.430942
2,921
31,698
4.549127
0.157823
0.009783
0.005795
0.009633
0.33233
0.260686
0.244958
0.214253
0.185882
0.162854
0
0.008564
0.440059
31,698
800
82
39.6225
0.740098
0.054136
0
0.324238
0
0
0.173244
0.020419
0
0
0
0
0
1
0.022472
false
0.00321
0.024077
0
0.077047
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
951a6328f58a32b162e3ef00d555a91633c30955
6,913
py
Python
FP/V46_faraday_effect/plot.py
nsalewski/laboratory
e30d187a3f5227d5e228b0132c3de4d426d85ffb
[ "MIT" ]
1
2021-05-05T23:00:28.000Z
2021-05-05T23:00:28.000Z
FP/V46_faraday_effect/plot.py
nsalewski/laboratory
e30d187a3f5227d5e228b0132c3de4d426d85ffb
[ "MIT" ]
null
null
null
FP/V46_faraday_effect/plot.py
nsalewski/laboratory
e30d187a3f5227d5e228b0132c3de4d426d85ffb
[ "MIT" ]
null
null
null
#!usr/bin/env python3 #coding:utf8 import matplotlib.pyplot as plt import numpy as np from scipy.optimize import curve_fit from astropy.io import ascii from uncertainties import ufloat import uncertainties.unumpy as unp from modules.table import textable import scipy.constants as const import math as math from modules....
43.20625
613
0.707363
1,254
6,913
3.796651
0.19378
0.012602
0.025415
0.036967
0.349926
0.299727
0.26192
0.227473
0.204789
0.174543
0
0.070606
0.057573
6,913
159
614
43.477987
0.660169
0.064516
0
0.153226
0
0.016129
0.31933
0.169741
0
0
0
0
0
1
0.040323
false
0
0.080645
0.024194
0.16129
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
951a6b980e66f06393b5c53d18d14db57345b12d
2,256
py
Python
hackzurich_py/test_hist_threshold.py
ejoebstl/hackzurich16
81a3b302050a4a464e2191c1d0912f8038c26ed9
[ "MIT" ]
null
null
null
hackzurich_py/test_hist_threshold.py
ejoebstl/hackzurich16
81a3b302050a4a464e2191c1d0912f8038c26ed9
[ "MIT" ]
null
null
null
hackzurich_py/test_hist_threshold.py
ejoebstl/hackzurich16
81a3b302050a4a464e2191c1d0912f8038c26ed9
[ "MIT" ]
null
null
null
import os import matplotlib.pyplot as plt import numpy as np import cv2 filedir = '/Users/gabrielfior/Dropbox/Hackzurich16/pupils_cutout/' readbgr = filedir+'left_pupil232.bmp' frame = plt.imread(readbgr) white=plt.imread('/Users/gabrielfior/Dropbox/Hackzurich16/pupils_bw/right_pupil61.bmp') black=plt.imread('/Users/...
23.747368
88
0.626773
382
2,256
3.649215
0.246073
0.012912
0.030129
0.075323
0.471306
0.424677
0.315638
0.315638
0.315638
0.149928
0
0.060381
0.163121
2,256
94
89
24
0.677966
0.080674
0
0.362319
0
0
0.111816
0.092285
0
0
0
0
0
1
0
false
0
0.057971
0
0.057971
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9521b11ea24c3b1975d9331d56438810a026e0f3
14,298
py
Python
tensorflow_federated/python/research/baselines/emnist/models.py
khramtsova/federated
88b3ca65204a9922696ccefd774ece03ebf5cc8e
[ "Apache-2.0" ]
1
2019-10-10T06:19:52.000Z
2019-10-10T06:19:52.000Z
tensorflow_federated/python/research/baselines/emnist/models.py
khramtsova/federated
88b3ca65204a9922696ccefd774ece03ebf5cc8e
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/research/baselines/emnist/models.py
khramtsova/federated
88b3ca65204a9922696ccefd774ece03ebf5cc8e
[ "Apache-2.0" ]
2
2019-10-10T06:19:41.000Z
2021-01-28T03:06:55.000Z
# Lint as: python3 # Copyright 2019, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
34.873171
80
0.665268
1,795
14,298
4.577716
0.159889
0.040039
0.056955
0.027261
0.632226
0.574054
0.531703
0.504077
0.462212
0.450164
0
0.036658
0.234928
14,298
409
81
34.958435
0.714508
0.574486
0
0.558011
0
0
0.037308
0
0
0
0
0
0
1
0.038674
false
0
0.01105
0
0.088398
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9522282432e0e76392916180e81134140fe248cd
893
py
Python
iterdeciser/loader.py
mpavlase/responses-form-evaluator
d0066a44c078ece458ae44577afc207583116638
[ "MIT" ]
1
2020-02-19T00:39:10.000Z
2020-02-19T00:39:10.000Z
iterdeciser/loader.py
mpavlase/responses-form-evaluator
d0066a44c078ece458ae44577afc207583116638
[ "MIT" ]
null
null
null
iterdeciser/loader.py
mpavlase/responses-form-evaluator
d0066a44c078ece458ae44577afc207583116638
[ "MIT" ]
null
null
null
import csv from iterdeciser import models def data_loader(filename): with open(filename, newline='') as fd: reader = csv.reader(fd, delimiter=',', quotechar='"') # remove all previous entries models.Answer.objects.all().delete() models.Question.objects.all().delete() model...
27.060606
61
0.555431
89
893
5.561798
0.438202
0.060606
0.09697
0.088889
0
0
0
0
0
0
0
0
0.339306
893
32
62
27.90625
0.838983
0.030235
0
0
0
0
0.002315
0
0
0
0
0
0
1
0.043478
false
0
0.086957
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95258effa24ad7ea4b397bc2159a4af1349e68bd
6,146
py
Python
adapter.py
jain-harshil/Adapter-BERT
fd74ed0eea21b13034f9a834244191846de6b8d5
[ "Apache-2.0" ]
4
2021-03-14T23:02:14.000Z
2022-02-14T10:10:12.000Z
adapter.py
jain-harshil/Adapter-BERT
fd74ed0eea21b13034f9a834244191846de6b8d5
[ "Apache-2.0" ]
null
null
null
adapter.py
jain-harshil/Adapter-BERT
fd74ed0eea21b13034f9a834244191846de6b8d5
[ "Apache-2.0" ]
2
2020-10-12T09:04:55.000Z
2021-11-13T03:54:55.000Z
import torch from torch import nn from transformers.modeling_bert import BertIntermediate, BertOutput, BertLayer, BertEncoder, BertModel, BertForSequenceClassification def get_nonlin_func(nonlin): if nonlin == "tanh": return torch.tanh elif nonlin == "relu": return torch.relu elif nonlin =...
35.94152
134
0.678653
704
6,146
5.606534
0.208807
0.057765
0.025082
0.038764
0.422346
0.365087
0.31619
0.285787
0.211553
0.186724
0
0.003399
0.234136
6,146
171
135
35.94152
0.835139
0.04328
0
0.267717
0
0
0.007512
0
0
0
0
0
0
1
0.141732
false
0
0.023622
0
0.299213
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95277c92e91076992bcacdf611aab098dd6f15f0
3,837
py
Python
models/pixelpick/networks/deeplab.py
martafdezmAM/lessen_supervision
630dfea2e396b9b6f61a3ad6786bb3ee169da3fd
[ "MIT" ]
49
2021-04-08T07:45:13.000Z
2022-03-08T03:20:30.000Z
networks/deeplab.py
leiyu1980/PixelPick
f0ae7d35f62c1dda70f5bff1689177a513ab6259
[ "MIT" ]
5
2021-04-21T02:13:47.000Z
2022-03-30T12:06:36.000Z
networks/deeplab.py
leiyu1980/PixelPick
f0ae7d35f62c1dda70f5bff1689177a513ab6259
[ "MIT" ]
15
2021-04-14T01:15:06.000Z
2022-03-25T05:05:36.000Z
import os import torch import torch.nn as nn import torch.nn.functional as F from .aspp import ASPP from .decoders import SegmentHead from .mobilenet_v2 import MobileNetV2 class DeepLab(nn.Module): def __init__(self, args, backbone='mobilenet', output_stride=16...
37.990099
111
0.584832
479
3,837
4.473904
0.265136
0.041064
0.027998
0.037331
0.299113
0.258049
0.258049
0.218385
0.218385
0.218385
0
0.021421
0.306489
3,837
101
112
37.990099
0.783916
0.063852
0
0.213333
0
0
0.029346
0
0
0
0
0
0
1
0.12
false
0
0.093333
0
0.24
0.026667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95293f8eba3bae03a2ebdf267114cb3e46a7731e
2,468
py
Python
readthedocs/worker.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
4,054
2015-01-01T00:58:07.000Z
2019-06-28T05:50:49.000Z
readthedocs/worker.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
4,282
2015-01-01T21:38:49.000Z
2019-06-28T15:41:00.000Z
readthedocs/worker.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
3,224
2015-01-01T07:38:45.000Z
2019-06-28T09:19:10.000Z
"""Celery worker application instantiation.""" import os from celery import Celery from django.conf import settings from django_structlog.celery.steps import DjangoStructLogInitStep def create_application(): """Create a Celery application using Django settings.""" os.environ.setdefault( 'DJANGO_SET...
32.473684
77
0.715559
333
2,468
5.246246
0.423423
0.048082
0.02862
0.017172
0
0
0
0
0
0
0
0.003603
0.212723
2,468
75
78
32.906667
0.895522
0.640194
0
0.105263
0
0
0.095745
0.06117
0
0
0
0
0
1
0.105263
false
0
0.210526
0
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
952e3eae671c4397df0072361e08791772e8f4d1
5,401
py
Python
src/lib/Server/Reports/settings.py
pcmxgti/bcfg2
33aaf9c6bbeb0d20eef084b1347a0fce42086663
[ "mpich2" ]
null
null
null
src/lib/Server/Reports/settings.py
pcmxgti/bcfg2
33aaf9c6bbeb0d20eef084b1347a0fce42086663
[ "mpich2" ]
null
null
null
src/lib/Server/Reports/settings.py
pcmxgti/bcfg2
33aaf9c6bbeb0d20eef084b1347a0fce42086663
[ "mpich2" ]
null
null
null
import django import sys # Compatibility import from Bcfg2.Bcfg2Py3k import ConfigParser # Django settings for bcfg2 reports project. c = ConfigParser.ConfigParser() if len(c.read(['/etc/bcfg2.conf', '/etc/bcfg2-web.conf'])) == 0: raise ImportError("Please check that bcfg2.conf or bcfg2-web.conf exists " ...
33.339506
79
0.695797
682
5,401
5.394428
0.36217
0.042403
0.041587
0.066051
0.159011
0.135635
0.135635
0.135635
0.135635
0.135635
0
0.010925
0.169598
5,401
161
80
33.546584
0.809365
0.210887
0
0.196429
0
0.008929
0.446412
0.241265
0
0
0
0
0
1
0
false
0.017857
0.071429
0
0.071429
0.008929
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9532e0a3625fbfa97cee2a3c1c1ac08b02e54bbb
1,297
py
Python
legacy/lua_data/lua_data_converter.py
kshshkim/factorioCalcPy
2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205
[ "MIT" ]
1
2021-09-21T01:42:05.000Z
2021-09-21T01:42:05.000Z
legacy/lua_data/lua_data_converter.py
kshshkim/factorioCalcPy
2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205
[ "MIT" ]
null
null
null
legacy/lua_data/lua_data_converter.py
kshshkim/factorioCalcPy
2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205
[ "MIT" ]
null
null
null
from slpp import slpp as lua import json class LuaConverter: def parse(self, luafile): with open(luafile, 'r') as to_convert: to_convert = str(to_convert.read()) to_convert = to_convert.replace('data:extend(\n{\n {', '').replace('})\n', '') # slpp가 알아먹을수 있는 형태로 가공 to_convert ...
36.027778
112
0.591365
168
1,297
4.416667
0.458333
0.097035
0.044474
0.072776
0.067385
0
0
0
0
0
0
0.001038
0.257517
1,297
35
113
37.057143
0.76947
0.085582
0
0
0
0
0.106211
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0
0.26087
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9533f3d3d51a5a32d60d0e2337d926980cff5177
839
py
Python
odette/scripts/collect_iso_codes.py
mdelhoneux/oDETTE
1b09bb3a950eb847c409de48c466d6559a010bd8
[ "Unlicense" ]
2
2017-04-18T13:31:37.000Z
2017-07-12T21:00:10.000Z
odette/scripts/collect_iso_codes.py
mdelhoneux/oDETTE
1b09bb3a950eb847c409de48c466d6559a010bd8
[ "Unlicense" ]
null
null
null
odette/scripts/collect_iso_codes.py
mdelhoneux/oDETTE
1b09bb3a950eb847c409de48c466d6559a010bd8
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python #============================================================================== #author :Miryam de Lhoneux #email :miryam.de_lhoneux@lingfil.uu.se #date :2015/12/30 #version :1.0 #description :collect iso codes in UD directories #usage :python scripts/collect_iso_codes.py #Python version ...
28.931034
79
0.54112
107
839
4.158879
0.560748
0.053933
0.067416
0
0
0
0
0
0
0
0
0.025496
0.158522
839
28
80
29.964286
0.604816
0.533969
0
0
0
0
0.026316
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20f86d70eb09a90cb1a4b918de25a5f97e226d8c
5,696
py
Python
airtest/core/ios/mjpeg_cap.py
Cache-Cloud/Airtest
4f831977a32c2b120dee631631c1154407b34d32
[ "Apache-2.0" ]
null
null
null
airtest/core/ios/mjpeg_cap.py
Cache-Cloud/Airtest
4f831977a32c2b120dee631631c1154407b34d32
[ "Apache-2.0" ]
null
null
null
airtest/core/ios/mjpeg_cap.py
Cache-Cloud/Airtest
4f831977a32c2b120dee631631c1154407b34d32
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- import numpy import socket import traceback from airtest import aircv from airtest.utils.snippet import reg_cleanup, on_method_ready, ready_method from airtest.core.ios.constant import ROTATION_MODE, DEFAULT_MJPEG_PORT from airtest.utils.logger import get_logger from airte...
33.309942
119
0.607619
673
5,696
4.945022
0.300149
0.039964
0.022536
0.01262
0.076022
0.059796
0.042969
0.025841
0.025841
0
0
0.011677
0.293364
5,696
171
120
33.309942
0.815155
0.102001
0
0.196721
0
0.008197
0.054135
0
0
0
0
0
0
1
0.106557
false
0
0.081967
0.016393
0.286885
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20fa7eb3a7346661e1dcc5a7aa474c9102b7df4b
3,342
py
Python
happy.py
xiaoqcn/LearnLinuxViaPython
3c591471bbceefab44161aedb8ff67c2009b8ec0
[ "Apache-2.0" ]
null
null
null
happy.py
xiaoqcn/LearnLinuxViaPython
3c591471bbceefab44161aedb8ff67c2009b8ec0
[ "Apache-2.0" ]
null
null
null
happy.py
xiaoqcn/LearnLinuxViaPython
3c591471bbceefab44161aedb8ff67c2009b8ec0
[ "Apache-2.0" ]
null
null
null
import time import datetime import os import sys import atexit import signal from multiprocessing import Pool from threading import Thread class HappyScrum: def __init__( self, pid_path, pool_size=4, busy_wait=90, idle_wait=300, say_hi_wait=1800, is_debug=Fa...
28.084034
92
0.529623
410
3,342
4.104878
0.282927
0.033274
0.026738
0.028521
0.212121
0.134284
0.091503
0.091503
0.053476
0
0
0.012099
0.356972
3,342
118
93
28.322034
0.771056
0
0
0.116505
0
0.019417
0.090963
0.022142
0
0
0
0
0
1
0.07767
false
0.009709
0.07767
0
0.174757
0.058252
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20fa9357a93d7d86c13beaf0a8a806393d553ed4
526
py
Python
functional_tests/test_gallery.py
atypicalrobot/igor_personal_site
8fd788bc43884792b786abeb34e9fec9e79492f1
[ "MIT" ]
null
null
null
functional_tests/test_gallery.py
atypicalrobot/igor_personal_site
8fd788bc43884792b786abeb34e9fec9e79492f1
[ "MIT" ]
null
null
null
functional_tests/test_gallery.py
atypicalrobot/igor_personal_site
8fd788bc43884792b786abeb34e9fec9e79492f1
[ "MIT" ]
null
null
null
from .base import * class GalleryPageTests(SeleniumTestCase): def test_gallery_items(self): browser = self.browser browser.get('http://127.0.0.1:8000/gallery/') assert "we don't have any Galleries" not in browser.page_source def test_gallery_images(self): browser = self.b...
29.222222
71
0.659696
72
526
4.680556
0.569444
0.130564
0.083086
0.130564
0.445104
0.31454
0.31454
0.31454
0.31454
0.31454
0
0.049261
0.228137
526
18
72
29.222222
0.780788
0
0
0.333333
0
0
0.214421
0
0
0
0
0
0.166667
1
0.166667
false
0
0.083333
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
20fb6d839493dfeb4698c4e202a1cd7ca0226dba
784
py
Python
plates.py
winksaville/cq-plates
fb175522fae991a8d88cdf26afad273a4b8b9098
[ "MIT" ]
null
null
null
plates.py
winksaville/cq-plates
fb175522fae991a8d88cdf26afad273a4b8b9098
[ "MIT" ]
null
null
null
plates.py
winksaville/cq-plates
fb175522fae991a8d88cdf26afad273a4b8b9098
[ "MIT" ]
null
null
null
import cadquery as cq # type: ignore nd = 0.4 # Nozzle Diameter length = 50 width = 20 gap = 5 p1 = ( cq.Workplane("XY", origin=(-(width + gap), 0, 0)) .rect(width, length) .extrude(nd/2) ) #show_object(p1) p2 = ( cq.Workplane("XY", origin=(0, 0, 0)) .rect(width, length) .extrude(nd) ) #sho...
21.189189
68
0.626276
118
784
4.127119
0.474576
0.016427
0.080082
0.117043
0.427105
0.316222
0.316222
0.262834
0.262834
0.262834
0
0.044944
0.205357
784
36
69
21.777778
0.736758
0.392857
0
0.136364
0
0
0.012903
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20fe1adaa92216baa26b834b33664cd9c78ae67b
2,430
py
Python
tests/tonalmodel_tests/test_chromatic_scale.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
1
2021-05-06T19:45:54.000Z
2021-05-06T19:45:54.000Z
tests/tonalmodel_tests/test_chromatic_scale.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
tests/tonalmodel_tests/test_chromatic_scale.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
import unittest import logging from tonalmodel.chromatic_scale import ChromaticScale class TestChromaticScale(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_frequencies(self): assert is_close(ChromaticScale.get_frequency((4, 9)), 440.0), \ ...
38.571429
117
0.60535
317
2,430
4.44164
0.205047
0.011364
0.085227
0.144176
0.481534
0.365767
0.303267
0.246449
0.183239
0.183239
0
0.072799
0.270782
2,430
62
118
39.193548
0.721783
0
0
0.044444
0
0
0.068724
0
0
0
0
0
0.155556
1
0.2
false
0.044444
0.066667
0.044444
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
20feae08b04eeba7945d6473eedc0730006c75f9
3,093
py
Python
beeseyes/pycode/sampling.py
sosi-org/scientific-code
395bae0f95fbccb936dc01145c797dc22a1c99a0
[ "Unlicense" ]
null
null
null
beeseyes/pycode/sampling.py
sosi-org/scientific-code
395bae0f95fbccb936dc01145c797dc22a1c99a0
[ "Unlicense" ]
null
null
null
beeseyes/pycode/sampling.py
sosi-org/scientific-code
395bae0f95fbccb936dc01145c797dc22a1c99a0
[ "Unlicense" ]
null
null
null
import numpy as np import math import polygon_sampler nan_rgb = np.zeros((3,)) + np.NaN # sampler session: texture, W_,H_,W,H ''' Used by `sample_colors_squarepixels()` Samples a single point. Using square pixels. [0, ... ,W-1] (incl.) By mapping [0,1) -> [0,W) (int) (mapping u,v) ''' def sample1(um,vm, texture, W_...
25.991597
154
0.6172
476
3,093
3.890756
0.289916
0.010799
0.041577
0.010799
0.390929
0.333693
0.187905
0.187905
0.176026
0.141469
0
0.024464
0.246686
3,093
118
155
26.211864
0.770386
0.176528
0
0.553571
0
0
0.00418
0
0
0
0
0
0.017857
1
0.071429
false
0
0.053571
0
0.214286
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f00bbb4cb26e6889fa5994c748463440e235c8e
654
py
Python
migrations/versions/d805931e1abd_add_topics.py
cyberinnovationhub/lunch-roulette
0b0b933188c095b6e3778ee7de9d4e21cd7caae5
[ "BSD-3-Clause" ]
4
2020-12-03T19:24:20.000Z
2022-03-16T13:45:11.000Z
migrations/versions/d805931e1abd_add_topics.py
cyberinnovationhub/lunch-roulette
0b0b933188c095b6e3778ee7de9d4e21cd7caae5
[ "BSD-3-Clause" ]
3
2020-08-24T08:05:11.000Z
2021-11-07T06:14:36.000Z
migrations/versions/d805931e1abd_add_topics.py
cyberinnovationhub/lunch-roulette
0b0b933188c095b6e3778ee7de9d4e21cd7caae5
[ "BSD-3-Clause" ]
3
2020-08-27T13:58:53.000Z
2022-03-09T14:09:06.000Z
"""add topics Revision ID: d805931e1abd Revises: 9430b6bc8d1a Create Date: 2018-09-18 15:11:45.922659 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'd805931e1abd' down_revision = '9430b6bc8d1a' branch_labels = None depends_on = None def upgrade(): # ###...
22.551724
84
0.689602
82
654
5.439024
0.597561
0.060538
0.09417
0.103139
0.197309
0.197309
0.197309
0.197309
0
0
0
0.094444
0.174312
654
28
85
23.357143
0.731481
0.446483
0
0
0
0
0.135385
0
0
0
0
0
0
1
0.2
false
0
0.2
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
1f0432871a66053bea5e2a19da56fe363bea9cb9
78,296
py
Python
allesfitter/basement.py
pierfra-ro/allesfitter
a6a885aaeb3253fec0d924ef3b45e8b7c473b181
[ "MIT" ]
null
null
null
allesfitter/basement.py
pierfra-ro/allesfitter
a6a885aaeb3253fec0d924ef3b45e8b7c473b181
[ "MIT" ]
null
null
null
allesfitter/basement.py
pierfra-ro/allesfitter
a6a885aaeb3253fec0d924ef3b45e8b7c473b181
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Oct 5 00:17:06 2018 @author: Dr. Maximilian N. Günther European Space Agency (ESA) European Space Research and Technology Centre (ESTEC) Keplerlaan 1, 2201 AZ Noordwijk, The Netherlands Email: maximilian.guenther@esa.int GitHub: mnguenther Twitter: m_n...
58.04003
224
0.481008
8,322
78,296
4.333694
0.094448
0.099154
0.035325
0.016692
0.626314
0.562041
0.460585
0.369721
0.310162
0.259864
0
0.010743
0.293821
78,296
1,349
225
58.04003
0.641533
0.247829
0
0.226902
0
0.019022
0.212424
0.0203
0
0
0
0.001483
0
1
0.021739
false
0.006793
0.019022
0.001359
0.05163
0.024457
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f08e87bb685c5de27a28a6c0f75d6ba70a73d31
3,334
py
Python
schematron/ssk.py
SarahTV/SSK
ac7f5b7b1f1c02aefcb706abd80178f86c216cf7
[ "CC-BY-4.0" ]
null
null
null
schematron/ssk.py
SarahTV/SSK
ac7f5b7b1f1c02aefcb706abd80178f86c216cf7
[ "CC-BY-4.0" ]
null
null
null
schematron/ssk.py
SarahTV/SSK
ac7f5b7b1f1c02aefcb706abd80178f86c216cf7
[ "CC-BY-4.0" ]
null
null
null
#coding: utf-8 import re import os from lxml import etree as ET from bs4 import BeautifulSoup import csv class schSSK: def create_directory(self, directory): """Create a new directory. :param directory: path to new directory :type directory: string """ if not os.path.exis...
35.468085
96
0.54889
344
3,334
5.287791
0.421512
0.024739
0.016493
0.018142
0.06707
0.06707
0.06707
0.06707
0.057174
0.057174
0
0.015071
0.323335
3,334
94
97
35.468085
0.791223
0.113977
0
0.029412
0
0
0.064494
0.007204
0
0
0
0
0.044118
1
0.102941
false
0
0.073529
0
0.264706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f098e212077f84f0f80919da194e6c3605bd4fb
14,798
py
Python
src/01_eigenprogression_transform.py
lostanlen/nemisig2018
2868da84c938ff6db98936d81a830b838eef1131
[ "MIT" ]
1
2018-09-27T09:07:05.000Z
2018-09-27T09:07:05.000Z
src/01_eigenprogression_transform.py
lostanlen/nemisig2018
2868da84c938ff6db98936d81a830b838eef1131
[ "MIT" ]
null
null
null
src/01_eigenprogression_transform.py
lostanlen/nemisig2018
2868da84c938ff6db98936d81a830b838eef1131
[ "MIT" ]
null
null
null
import localmodule import datetime import h5py import math import music21 as m21 import numpy as np import os import scipy import scipy.linalg import sys import time # Parse arguments args = sys.argv[1:] composer_str = args[0] track_str = args[1] # Define constants. J_tm = 8 N = 2**10 n_octaves = 8 midi_octave_off...
34.334107
86
0.68462
2,086
14,798
4.642378
0.146692
0.030669
0.018174
0.02974
0.356981
0.278604
0.22594
0.185977
0.170487
0.140335
0
0.027031
0.157521
14,798
430
87
34.413953
0.749739
0.188607
0
0.156364
0
0
0.04997
0.008864
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0.069091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f09cb31eceadc76ff93699e82ee70df317cae82
983
py
Python
src/spaceone/monitoring/manager/plugin_manager.py
jean1042/monitoring
0585a1ea52ec13285eaca81cc5b19fa3f7a1fba4
[ "Apache-2.0" ]
5
2020-06-04T23:01:30.000Z
2020-09-09T08:58:51.000Z
src/spaceone/monitoring/manager/plugin_manager.py
jean1042/monitoring
0585a1ea52ec13285eaca81cc5b19fa3f7a1fba4
[ "Apache-2.0" ]
9
2022-02-10T00:58:28.000Z
2022-03-23T11:12:47.000Z
src/spaceone/monitoring/manager/plugin_manager.py
jean1042/monitoring
0585a1ea52ec13285eaca81cc5b19fa3f7a1fba4
[ "Apache-2.0" ]
7
2020-06-10T01:56:35.000Z
2021-12-02T05:36:21.000Z
import logging from spaceone.core.manager import BaseManager from spaceone.core.connector.space_connector import SpaceConnector _LOGGER = logging.getLogger(__name__) class PluginManager(BaseManager): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.plugin_connector: S...
35.107143
110
0.666328
100
983
6.2
0.37
0.148387
0.051613
0.106452
0.254839
0.254839
0.254839
0.254839
0.254839
0.254839
0
0
0.220753
983
27
111
36.407407
0.809399
0
0
0
0
0
0.160732
0.02645
0
0
0
0
0
1
0.1
false
0
0.15
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f0a14df894f78200ec160dd56d1194d86c6d8d9
1,107
py
Python
Segmentation/bins/hist_label_portarit.py
ttthomaschan/DeepcvLib
18f7728559136a3c5c8ad54666788ea771e95b16
[ "MIT" ]
null
null
null
Segmentation/bins/hist_label_portarit.py
ttthomaschan/DeepcvLib
18f7728559136a3c5c8ad54666788ea771e95b16
[ "MIT" ]
null
null
null
Segmentation/bins/hist_label_portarit.py
ttthomaschan/DeepcvLib
18f7728559136a3c5c8ad54666788ea771e95b16
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ # @file name : hist_label_portrait.py # @author : JLChen # @date : 2020-03-11 # @brief : 统计各类别数量 """ import numpy as np import os import matplotlib.pyplot as plt import pylab as pl import cv2 def cal_cls_nums(path, t=0.78): label_img = cv2.imread(path) label_img = c...
26.357143
100
0.67299
165
1,107
4.284848
0.563636
0.113154
0.046676
0.067893
0.048091
0
0
0
0
0
0
0.025959
0.199639
1,107
41
101
27
0.772009
0.270099
0
0
0
0
0.084489
0.061791
0
0
0
0
0
1
0.047619
false
0
0.238095
0
0.333333
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f0a726404191dd0a8ef9e2cd1c7c33d9b482f77
7,924
py
Python
yoapi/contexts.py
YoApp/yo-api
a162e51804ab91724cc7ad3e7608410329da6789
[ "MIT" ]
1
2021-12-17T03:25:34.000Z
2021-12-17T03:25:34.000Z
yoapi/contexts.py
YoApp/yo-api
a162e51804ab91724cc7ad3e7608410329da6789
[ "MIT" ]
null
null
null
yoapi/contexts.py
YoApp/yo-api
a162e51804ab91724cc7ad3e7608410329da6789
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Client context module.""" import pytz import time from flask import current_app from datetime import datetime, timedelta from mongoengine import DoesNotExist from .ab_test import get_enrolled_experiments from .core import cache from .errors import APIError from .helpers import assert_vali...
32.342857
114
0.617365
948
7,924
4.931435
0.205696
0.041925
0.023957
0.032941
0.224813
0.149947
0.129198
0.11893
0.085134
0.085134
0
0.004569
0.281928
7,924
244
115
32.47541
0.817047
0.03319
0
0.243386
0
0
0.08802
0.005885
0
0
0
0
0.010582
1
0.042328
false
0.005291
0.074074
0.005291
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f0acc1fb7d824f01253e231a80bcc928842ee31
4,180
py
Python
coyote_framework/config/abstract_config.py
vaibhavrastogi1988/python_testing_framework
583a2286479ed0ccda309c866a403dc92fa1bb3b
[ "MIT" ]
null
null
null
coyote_framework/config/abstract_config.py
vaibhavrastogi1988/python_testing_framework
583a2286479ed0ccda309c866a403dc92fa1bb3b
[ "MIT" ]
null
null
null
coyote_framework/config/abstract_config.py
vaibhavrastogi1988/python_testing_framework
583a2286479ed0ccda309c866a403dc92fa1bb3b
[ "MIT" ]
null
null
null
from configparser import ConfigParser import json import fnmatch import os __author__ = 'justin@shapeways.com' TEST_RUN_SETTING_CONFIG = 'TEST_RUN_SETTING_CONFIG' confg_dict = {} class NullConfigAttribute(object): def __init__(self, description, default_value=None): self.description = description ...
35.726496
134
0.617943
502
4,180
4.982072
0.338645
0.02399
0.027989
0.039984
0.065574
0.027989
0
0
0
0
0
0.001366
0.299282
4,180
116
135
36.034483
0.852509
0.326794
0
0.064516
0
0
0.028701
0.008686
0
0
0
0
0
1
0.145161
false
0.016129
0.064516
0.064516
0.33871
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f0d5b67c4f91743453ccb056ca36b102ec5a878
6,485
py
Python
src/main.py
matthewb96/NetSpeedGraphs
51e6f6d4f24845e50f34ed56452a4fa454db189b
[ "MIT" ]
null
null
null
src/main.py
matthewb96/NetSpeedGraphs
51e6f6d4f24845e50f34ed56452a4fa454db189b
[ "MIT" ]
4
2021-06-08T21:23:15.000Z
2022-03-12T00:29:23.000Z
src/main.py
matthewb96/NetSpeedGraphs
51e6f6d4f24845e50f34ed56452a4fa454db189b
[ "MIT" ]
null
null
null
""" Main module for running NetSpeedGraphs. """ ##### IMPORTS ##### # Standard imports from pathlib import Path from datetime import datetime, timedelta from argparse import ArgumentParser # Third party imports import speedtest import numpy as np import pandas as pd from bokeh.plotting import figure, output_file,...
33.25641
84
0.612336
782
6,485
5.011509
0.292839
0.014289
0.01531
0.018372
0.136259
0.126563
0.126563
0.126563
0.094922
0.094922
0
0.003417
0.278026
6,485
194
85
33.427835
0.833618
0.369776
0
0.035714
0
0
0.138667
0
0
0
0
0
0
1
0.071429
false
0
0.119048
0
0.261905
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f0da5b719cc8ed4639299b06648e3a470d196da
7,478
py
Python
tests/planar_tests/test_region_in_multiregion.py
lycantropos/orient
01f4f67a717c5ee911d83756d455cc35e85ce817
[ "MIT" ]
2
2020-11-01T00:25:09.000Z
2021-04-07T10:13:59.000Z
tests/planar_tests/test_region_in_multiregion.py
lycantropos/orient
01f4f67a717c5ee911d83756d455cc35e85ce817
[ "MIT" ]
null
null
null
tests/planar_tests/test_region_in_multiregion.py
lycantropos/orient
01f4f67a717c5ee911d83756d455cc35e85ce817
[ "MIT" ]
null
null
null
from typing import Tuple from ground.base import Relation from hypothesis import given from orient.hints import (Multiregion, Region) from orient.planar import (contour_in_multiregion, region_in_multiregion, region_in_region) from tests.u...
47.329114
79
0.622626
724
7,478
6.191989
0.093923
0.13607
0.139193
0.071827
0.725184
0.596253
0.517734
0.448807
0.401963
0.364711
0
0
0.33418
7,478
157
80
47.630573
0.900382
0
0
0.195489
0
0
0
0
0
0
0
0
0.195489
1
0.045113
false
0
0.052632
0
0.097744
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f0ed2213b59cdb0f244b760bfd1759ed4538c6a
11,676
py
Python
gui/src/core/parse_qca.py
retallickj/qca-embedding
96fd37a3ecd4beacb04ad1cb193d65d0b48ceab2
[ "MIT" ]
1
2017-11-02T20:38:20.000Z
2017-11-02T20:38:20.000Z
gui/src/core/parse_qca.py
retallickj/qca-embedding
96fd37a3ecd4beacb04ad1cb193d65d0b48ceab2
[ "MIT" ]
null
null
null
gui/src/core/parse_qca.py
retallickj/qca-embedding
96fd37a3ecd4beacb04ad1cb193d65d0b48ceab2
[ "MIT" ]
null
null
null
#!/usr/bin/env python #--------------------------------------------------------- # Name: parse_qca.py # Purpose: Parsing functions for QCADesigner files # Author: Jacob Retallick # Created: 2015.10.22 # Last Modified: 2015.10.22 #--------------------------------------------------------- # NOTE # the origin...
32.34349
80
0.554642
1,569
11,676
4.06246
0.250478
0.00502
0.01412
0.010668
0.122372
0.104644
0.096956
0.08064
0.064324
0.064324
0
0.008943
0.320058
11,676
360
81
32.433333
0.793929
0.309267
0
0.123711
0
0
0.074834
0
0
0
0
0
0
1
0.030928
false
0
0.025773
0
0.097938
0.020619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f0fed3d680bffcc5eeafee6ce65b7395cfecca1
7,391
py
Python
docs/Tutorial/1-glm/plot_1_LinearRegression.py
bbayukari/abess
3b21b0a58cac6c1464ec9403ffbe4902fee7b890
[ "Intel" ]
null
null
null
docs/Tutorial/1-glm/plot_1_LinearRegression.py
bbayukari/abess
3b21b0a58cac6c1464ec9403ffbe4902fee7b890
[ "Intel" ]
null
null
null
docs/Tutorial/1-glm/plot_1_LinearRegression.py
bbayukari/abess
3b21b0a58cac6c1464ec9403ffbe4902fee7b890
[ "Intel" ]
null
null
null
""" ================= Linear Regression ================= In this tutorial, we are going to demonstrate how to use the ``abess`` package to carry out best subset selection in linear regression with both simulated data and real data. """ ############################################################################### #...
35.028436
221
0.64998
1,060
7,391
4.471698
0.339623
0.016878
0.020042
0.017089
0.052321
0.052321
0.029114
0.016456
0
0
0
0.017588
0.146124
7,391
210
222
35.195238
0.733481
0.672981
0
0.220339
0
0
0.107274
0
0
0
0
0
0
1
0
false
0
0.118644
0
0.118644
0.20339
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f11e9df2b051fcb60ef9a9128d6a058c4f210e2
2,386
py
Python
pyppeteer/tracing.py
cr1pt/pypyteer
b3aade3741b385f2e1dde600b501776f1f5e8479
[ "MIT" ]
null
null
null
pyppeteer/tracing.py
cr1pt/pypyteer
b3aade3741b385f2e1dde600b501776f1f5e8479
[ "MIT" ]
null
null
null
pyppeteer/tracing.py
cr1pt/pypyteer
b3aade3741b385f2e1dde600b501776f1f5e8479
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tracing module.""" import asyncio from pathlib import Path from typing import Any, Awaitable from pyppeteer.connection import Session class Tracing(object): """Tracing class.""" def __init__(self, client: Session) -> None: """Make new tracing objec...
32.684932
77
0.559933
237
2,386
5.523207
0.455696
0.053476
0.064935
0.076394
0.147441
0
0
0
0
0
0
0.002418
0.30679
2,386
72
78
33.138889
0.788996
0.04694
0
0.074074
0
0
0.185849
0.098522
0
0
0
0
0
1
0.018519
false
0
0.074074
0
0.12963
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f126ef87161ba2d8fbb4e598c5bbb09c32019bd
2,627
py
Python
src/wai/annotations/isp/map_labels/component/_MapLabels.py
waikato-ufdl/wai-annotations-core
bac3429e9488efb456972c74f9d462f951c4af3d
[ "Apache-2.0" ]
null
null
null
src/wai/annotations/isp/map_labels/component/_MapLabels.py
waikato-ufdl/wai-annotations-core
bac3429e9488efb456972c74f9d462f951c4af3d
[ "Apache-2.0" ]
3
2021-06-30T23:42:47.000Z
2022-03-01T03:45:07.000Z
src/wai/annotations/isp/map_labels/component/_MapLabels.py
waikato-ufdl/wai-annotations-core
bac3429e9488efb456972c74f9d462f951c4af3d
[ "Apache-2.0" ]
null
null
null
from typing import Optional, Dict from wai.common.adams.imaging.locateobjects import LocatedObjects from wai.common.cli.options import TypedOption from ....core.component import ProcessorComponent from ....core.stream import ThenFunction, DoneFunction from ....core.stream.util import RequiresNoFinalisation from ....c...
33.679487
113
0.650552
296
2,627
5.658784
0.378378
0.053731
0.025075
0.025075
0.035821
0
0
0
0
0
0
0.000524
0.272935
2,627
77
114
34.116883
0.87644
0.175485
0
0.043478
0
0
0.092813
0
0
0
0
0
0
1
0.065217
false
0
0.195652
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f14096bca569e364e31b3699b308c6507e8fe1b
8,221
py
Python
nlg/app.py
samrudh/gramex-nlg
fb1b1ce14347947c8644adda7bd63856dcb2ce3d
[ "MIT" ]
null
null
null
nlg/app.py
samrudh/gramex-nlg
fb1b1ce14347947c8644adda7bd63856dcb2ce3d
[ "MIT" ]
null
null
null
nlg/app.py
samrudh/gramex-nlg
fb1b1ce14347947c8644adda7bd63856dcb2ce3d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # vim:fenc=utf-8 """ Module for gramex exposure. This shouldn't be imported anywhere, only for use with gramex. """ import glob import json import os import os.path as op import pandas as pd from six.moves.urllib import parse from tornado.template import Template from gramex.apps.nlg import g...
33.555102
88
0.643961
1,122
8,221
4.602496
0.215686
0.020914
0.015492
0.023044
0.285244
0.197134
0.162277
0.129357
0.070488
0.064291
0
0.002802
0.218465
8,221
244
89
33.692623
0.800934
0.243158
0
0.16
0
0
0.068189
0
0
0
0
0.004098
0
1
0.1
false
0
0.08
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
1f14219d12c0adf9ade099f871dd4550e114601e
3,682
py
Python
data/main_data_flow.py
SterArcher/OHCA-registry-Slovenia
ad8278a28039503ab6a75d48ffea314de9a759ba
[ "MIT" ]
1
2022-02-28T13:02:14.000Z
2022-02-28T13:02:14.000Z
data/main_data_flow.py
SterArcher/dispatch
ad8278a28039503ab6a75d48ffea314de9a759ba
[ "MIT" ]
1
2022-03-20T10:51:17.000Z
2022-03-21T07:52:57.000Z
data/main_data_flow.py
SterArcher/OHCA-registry-Slovenia
ad8278a28039503ab6a75d48ffea314de9a759ba
[ "MIT" ]
null
null
null
import plotly.graph_objects as go import plotly as plt import random # Uncomment the names you want the diagram to show # Names in english # sta = "Statistical Office" # si = "Emergency call admission" #"sprejem intervencij" # pni = "Emergency intervention report" #"poročilo/protokol nujne intervencije" # pnrv = "Em...
35.066667
125
0.67409
478
3,682
5.15272
0.39749
0.017052
0.004872
0.038977
0.216809
0.141291
0.129111
0.11287
0.11287
0.087698
0
0.01759
0.181695
3,682
104
126
35.403846
0.799867
0.311244
0
0
0
0
0.1868
0
0
0
0
0
0
1
0.014925
false
0
0.044776
0
0.074627
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f1586c55bd8026b70c428056979527a8012b8fd
8,468
py
Python
apcadastros.py
Alexsussa/ap-cadastros
9b5e9b57970a6a044ebde071a68403e0d513e89b
[ "MIT" ]
null
null
null
apcadastros.py
Alexsussa/ap-cadastros
9b5e9b57970a6a044ebde071a68403e0d513e89b
[ "MIT" ]
null
null
null
apcadastros.py
Alexsussa/ap-cadastros
9b5e9b57970a6a044ebde071a68403e0d513e89b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- __developer__ = 'Alex Pinheiro' __version__ = 1.4 __build__ = 6 import sqlite3 from tkinter.ttk import * from tkinter.filedialog import * from threading import Thread from utils import Utils from login import Login u = Utils # Listas estados = ['AC', 'AL', 'AP', 'AM'...
41.920792
118
0.62931
1,095
8,468
4.829224
0.238356
0.033283
0.049924
0.057489
0.364032
0.231467
0.221256
0.20556
0.20556
0.197428
0
0.018508
0.202409
8,468
201
119
42.129353
0.764436
0.018777
0
0.071895
0
0.019608
0.148869
0.006081
0
0
0
0
0
1
0.019608
false
0
0.045752
0
0.071895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f18f11b5d9f381e25d945aa36634594b061dc4c
3,749
py
Python
exps/supp-synthetic/notebooks/hp_analysis.py
Viktour19/overlap-code
f5c6e63146a00f65710c38b9181bb9d12de6454f
[ "MIT" ]
2
2020-07-09T03:15:58.000Z
2022-03-09T11:57:17.000Z
exps/supp-synthetic/notebooks/hp_analysis.py
Viktour19/overlap-code
f5c6e63146a00f65710c38b9181bb9d12de6454f
[ "MIT" ]
null
null
null
exps/supp-synthetic/notebooks/hp_analysis.py
Viktour19/overlap-code
f5c6e63146a00f65710c38b9181bb9d12de6454f
[ "MIT" ]
1
2021-05-18T11:55:04.000Z
2021-05-18T11:55:04.000Z
#!/usr/bin/env python # coding: utf-8 from sacred.observers import TinyDbReader import pdb import numpy as np import pandas as pd import matplotlib.pyplot as plt def get_exclusion_metadata( d, ideal_rule = [['i0', 'not', ''], ['i1', 'not', '']], w_lb=1e-8): r = dict(d) r['rule_avg_cov...
41.197802
112
0.628434
586
3,749
3.692833
0.226962
0.081331
0.054067
0.025878
0.414048
0.331331
0.292514
0.235675
0.18207
0.102588
0
0.005483
0.221659
3,749
90
113
41.655556
0.736121
0.141104
0
0
0
0
0.259421
0.086889
0
0
0
0
0.016129
1
0.048387
false
0
0.080645
0.016129
0.177419
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f1e0b869b9f01994358b74334809a1ece521ead
774
py
Python
345_ReverseVowelsOfAString.py
satwiksabharwal01/LeetcodeProblemSolutions
c08fb77b76519f9c543d74f84cb2c0477aeddcd9
[ "MIT" ]
1
2020-06-03T22:00:54.000Z
2020-06-03T22:00:54.000Z
345_ReverseVowelsOfAString.py
AmiGandhi/leetcode
238186f1e4dd7f243caab47173ebc2511ae5902e
[ "MIT" ]
null
null
null
345_ReverseVowelsOfAString.py
AmiGandhi/leetcode
238186f1e4dd7f243caab47173ebc2511ae5902e
[ "MIT" ]
null
null
null
# Write a function that takes a string as input and reverse only the vowels of a string. # Example 1: # Input: "hello" # Output: "holle" # Example 2: # Input: "leetcode" # Output: "leotcede" class Solution: def reverseVowels(self, s: str) -> str: vowels = set(list("aeiouAEIOU")) s = list(s) ...
26.689655
88
0.536176
105
774
3.87619
0.428571
0.061425
0.034398
0
0
0
0
0
0
0
0
0.015564
0.335917
774
29
89
26.689655
0.776265
0.22739
0
0
0
0
0.038917
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.176471
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f1f88fe67e806539b890092e9e0d182702100b7
574
py
Python
script/run_basic_slackbot.py
imperial-genomics-facility/IGFSlackBot
2692460e907381cea067b674a560cacef6fff981
[ "Apache-2.0" ]
null
null
null
script/run_basic_slackbot.py
imperial-genomics-facility/IGFSlackBot
2692460e907381cea067b674a560cacef6fff981
[ "Apache-2.0" ]
null
null
null
script/run_basic_slackbot.py
imperial-genomics-facility/IGFSlackBot
2692460e907381cea067b674a560cacef6fff981
[ "Apache-2.0" ]
null
null
null
import argparse from slackbot.basic.igfbasicslackbot import IgfBasicSlackBot parser=argparse.ArgumentParser() parser.add_argument('-s','--slack_config', required=True, help='Slack configuration json file') parser.add_argument('-p','--project_data', required=True, help='Project data CSV file') args=parser.parse_args()...
31.888889
95
0.771777
75
574
5.666667
0.466667
0.155294
0.08
0.103529
0
0
0
0
0
0
0
0
0.120209
574
17
96
33.764706
0.841584
0
0
0
0
0
0.142857
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f2103ff16477b77dbb801e6f1f09baa26d1ea3b
1,170
py
Python
bgbl/management/commands/fix_glyphs.py
okfde/api.offenegesetze.de
85bc0a1a65dfa77651b7319eb0fccde1a27ba193
[ "MIT" ]
16
2018-12-10T11:59:44.000Z
2020-06-28T21:37:15.000Z
bgbl/management/commands/fix_glyphs.py
bundestag/api.offenegesetze.de
280673b9995a8a5c1fd01b1cb14dc0046599530f
[ "MIT" ]
21
2020-02-11T23:17:52.000Z
2022-01-05T13:58:20.000Z
bgbl/management/commands/fix_glyphs.py
bundestag/api.offenegesetze.de
280673b9995a8a5c1fd01b1cb14dc0046599530f
[ "MIT" ]
1
2018-12-11T20:17:09.000Z
2018-12-11T20:17:09.000Z
from glob import glob import os import shutil from django.core.management.base import BaseCommand from bgbl.pdf_utils import fix_glyphs, remove_watermark class Command(BaseCommand): help = 'Fix glyphs pdfs' def add_arguments(self, parser): parser.add_argument('doc_path', type=str) def handle(s...
30.789474
81
0.638462
135
1,170
5.318519
0.42963
0.058496
0.038997
0.069638
0
0
0
0
0
0
0
0
0.260684
1,170
37
82
31.621622
0.830058
0
0
0
0
0
0.095727
0
0
0
0
0
0
1
0.074074
false
0
0.185185
0
0.333333
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f228e4d5652a96220edc4fa67e8ff6e9ecc91ac
657
py
Python
catalog/bindings/csw/time_topology_complex_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/time_topology_complex_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/time_topology_complex_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from typing import List from bindings.csw.abstract_time_complex_type import AbstractTimeComplexType from bindings.csw.time_topology_primitive_property_type import ( TimeTopologyPrimitivePropertyType, ) __NAMESPACE__ = "http://www.opengis.net/gml" @dataclass class TimeTopo...
26.28
75
0.703196
61
657
7.360656
0.57377
0.053452
0.066815
0.10245
0.129176
0.129176
0
0
0
0
0
0.001908
0.202435
657
24
76
27.375
0.854962
0.042618
0
0
0
0
0.133768
0
0
0
0
0
0
1
0
false
0
0.235294
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f251d95dc8853c21e444177f77e27a265f912f3
1,534
py
Python
maro/cli/grass/lib/services/node_api_server/blueprints/containers.py
yangboz/maro
0973783e55ca07bf8e177910c9d47854117a4ea8
[ "MIT" ]
598
2020-09-23T00:50:22.000Z
2022-03-31T08:12:54.000Z
maro/cli/grass/lib/services/node_api_server/blueprints/containers.py
gx9702/maro
38c796f0a7ed1e0f64c299d96c6e0df032401fa9
[ "MIT" ]
235
2020-09-22T10:20:48.000Z
2022-03-31T02:10:03.000Z
maro/cli/grass/lib/services/node_api_server/blueprints/containers.py
gx9702/maro
38c796f0a7ed1e0f64c299d96c6e0df032401fa9
[ "MIT" ]
116
2020-09-22T09:19:04.000Z
2022-02-12T05:04:07.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from flask import Blueprint, abort, request from ...utils.docker_controller import DockerController from ...utils.exception import CommandExecutionError # Flask related. blueprint = Blueprint(name="container", import_name=__name__) URL_PREFIX...
22.895522
89
0.683833
167
1,534
6.095808
0.329341
0.127701
0.086444
0.053045
0.413556
0.38998
0.38998
0.38998
0.38998
0.38998
0
0.00821
0.205997
1,534
66
90
23.242424
0.827586
0.249674
0
0.423077
0
0
0.103993
0.058496
0
0
0
0
0
1
0.115385
false
0
0.153846
0
0.384615
0.192308
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f26c8fd4ac1dfad9af1cf8e92f70fe641af8f00
6,521
py
Python
src/licensedcode/saneyaml.py
chetanya-shrimali/scancode-toolkit
a1a22fb225cbeb211bd6f92272a46f1351f57d6b
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/licensedcode/saneyaml.py
chetanya-shrimali/scancode-toolkit
a1a22fb225cbeb211bd6f92272a46f1351f57d6b
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/licensedcode/saneyaml.py
chetanya-shrimali/scancode-toolkit
a1a22fb225cbeb211bd6f92272a46f1351f57d6b
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
# # Copyright (c) 2017 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
33.441026
90
0.73455
936
6,521
5.038462
0.317308
0.012723
0.025445
0.034987
0.23961
0.208651
0.15458
0.15458
0.129771
0.086726
0
0.016387
0.176507
6,521
194
91
33.613402
0.861825
0.408526
0
0.051948
0
0
0.101887
0.09717
0
0
0
0
0.012987
1
0.116883
false
0.012987
0.12987
0.012987
0.376623
0.012987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f272919a0358c21a01d9a8008881e0d63626d7a
14,383
py
Python
tsutsuji/gui_tsutsuji.py
konawasabi/tsutsuji-trackcomputer
04469a8a9872e8bad3d661c5911b9c881fab8ca9
[ "Apache-2.0" ]
1
2022-03-14T00:35:05.000Z
2022-03-14T00:35:05.000Z
tsutsuji/gui_tsutsuji.py
konawasabi/tsutsuji-trackcomputer
04469a8a9872e8bad3d661c5911b9c881fab8ca9
[ "Apache-2.0" ]
null
null
null
tsutsuji/gui_tsutsuji.py
konawasabi/tsutsuji-trackcomputer
04469a8a9872e8bad3d661c5911b9c881fab8ca9
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021-2022 konawasabi # # 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 o...
43.453172
144
0.643398
2,019
14,383
4.425458
0.193165
0.026861
0.010632
0.021936
0.378511
0.326133
0.260884
0.214326
0.178064
0.150196
0
0.019666
0.225753
14,383
330
145
43.584848
0.782238
0.081485
0
0.105042
0
0
0.050361
0
0
0
0
0
0
1
0.088235
false
0
0.088235
0
0.189076
0.033613
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f2ccc8e4139330b0b1a1e4de76035b03e5fa0d0
1,011
py
Python
extra/uniq.py
JarryShaw/darc
0fc8782bb2f641ca3734c94666cbc36e3d9cb09f
[ "BSD-3-Clause" ]
24
2020-07-08T06:16:52.000Z
2022-02-19T00:33:34.000Z
extra/uniq.py
JarryShaw/darc
0fc8782bb2f641ca3734c94666cbc36e3d9cb09f
[ "BSD-3-Clause" ]
42
2020-05-29T12:56:10.000Z
2022-03-07T17:12:08.000Z
extra/uniq.py
JarryShaw/darc
0fc8782bb2f641ca3734c94666cbc36e3d9cb09f
[ "BSD-3-Clause" ]
7
2020-07-11T18:57:24.000Z
2022-02-01T21:46:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys import tempfile def is_in(line: str, dest: str) -> bool: if os.path.isfile(dest): with open(dest) as file: for content in filter(None, map(lambda s: s.strip(), file)): if line == content: r...
24.071429
72
0.547972
137
1,011
3.956204
0.40146
0.03321
0.02952
0.055351
0.140221
0.140221
0.140221
0.140221
0.140221
0.140221
0
0.007246
0.317507
1,011
41
73
24.658537
0.778261
0.042532
0
0.068966
0
0
0.017598
0
0
0
0
0
0
1
0.103448
false
0
0.103448
0
0.310345
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f2d5d68906150aa022de6e4c0b468cf3688673c
353
py
Python
tests.py
B1Z0N/turingmachine
4c6761ee52fd05071d675a8cab8558025a5c26d9
[ "MIT" ]
null
null
null
tests.py
B1Z0N/turingmachine
4c6761ee52fd05071d675a8cab8558025a5c26d9
[ "MIT" ]
3
2020-03-24T16:53:31.000Z
2021-02-02T21:58:25.000Z
tests.py
B1Z0N/turingmachine
4c6761ee52fd05071d675a8cab8558025a5c26d9
[ "MIT" ]
null
null
null
""" Script that runs all tests written """ import os import pathlib import pytest cwd = pathlib.Path.cwd os.chdir(cwd() / "tests") def subfolders(dir): return [x[0] for x in os.walk(dir)][1:] # without current directory for subf in subfolders(cwd()): if not subf.endswith("__pycache__"): os.chd...
13.576923
72
0.645892
51
353
4.392157
0.627451
0.0625
0
0
0
0
0
0
0
0
0
0.007246
0.21813
353
25
73
14.12
0.804348
0.172805
0
0
0
0
0.057143
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0.090909
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
1f2da5398cfdb995da864f3b7f84a89bc1c2fda5
7,933
py
Python
sandbox/straws/loadstraws.py
mustaric/lambda-tess-search
1d48133f32c8a073cba5d221f30c2d44e8d06e4b
[ "BSD-3-Clause" ]
2
2019-06-26T14:35:22.000Z
2020-05-12T15:26:27.000Z
sandbox/straws/loadstraws.py
mustaric/lambda-tess-search
1d48133f32c8a073cba5d221f30c2d44e8d06e4b
[ "BSD-3-Clause" ]
7
2019-06-26T20:52:14.000Z
2020-12-16T21:08:20.000Z
sandbox/straws/loadstraws.py
mustaric/lambda-tess-search
1d48133f32c8a073cba5d221f30c2d44e8d06e4b
[ "BSD-3-Clause" ]
2
2019-06-26T20:24:11.000Z
2020-05-12T19:36:04.000Z
# -*- coding: utf-8 -*- # Copyright 2017-2018 Orbital Insight Inc., all rights reserved. # Contains confidential and trade secret information. # Government Users: Commercial Computer Software - Use governed by # terms of Orbital Insight commercial license agreement. """ Created on Tue Oct 22 21:22:36 2019 @author: fe...
30.511538
87
0.573427
981
7,933
4.575943
0.294597
0.026732
0.018712
0.023391
0.234796
0.17955
0.17955
0.152818
0.128314
0.107374
0
0.015023
0.328753
7,933
259
88
30.629344
0.827981
0.33556
0
0.181818
0
0
0.043914
0
0
0
0
0
0.036364
1
0.136364
false
0
0.072727
0.018182
0.336364
0.027273
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f30e7564e6c5decd42ff9ef937b6271af7e25ce
8,797
py
Python
MISC/opt_omega_ip.py
PHOTOX/photoxrepo
83ad3813e9c52926e6387afc76813e99d430a5f3
[ "MIT" ]
4
2015-03-27T09:12:44.000Z
2022-01-18T08:45:29.000Z
MISC/opt_omega_ip.py
PHOTOX/photoxrepo
83ad3813e9c52926e6387afc76813e99d430a5f3
[ "MIT" ]
5
2015-01-06T22:08:58.000Z
2021-04-12T07:56:34.000Z
MISC/opt_omega_ip.py
PHOTOX/photoxrepo
83ad3813e9c52926e6387afc76813e99d430a5f3
[ "MIT" ]
2
2019-09-02T11:43:32.000Z
2022-01-18T08:45:30.000Z
#!/usr/bin/env python import os import sys sys.path.append(os.getcwd()) import abinitio_driver as driver from abinitio_driver import AUtoEV import scipy.optimize as opt from scipy.interpolate import interp1d try: import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt except: pass # This i...
32.581481
103
0.665909
1,265
8,797
4.49249
0.23083
0.044343
0.042231
0.058068
0.468063
0.446771
0.446771
0.416329
0.397501
0.35351
0
0.017649
0.220643
8,797
269
104
32.702602
0.81126
0.276685
0
0.494318
0
0
0.146267
0
0
0
0
0
0
1
0.022727
false
0.017045
0.045455
0
0.090909
0.085227
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f36e08746ee116943eb44bc9ccc08813b7b6dbe
415
py
Python
test/test_pbp.py
Galtozzy/basketball_reference_scraper
fb0081f2ae146f3a7da3a17d4e30af0c0dc1124a
[ "MIT" ]
191
2020-01-14T19:32:54.000Z
2022-03-29T17:57:19.000Z
test/test_pbp.py
Galtozzy/basketball_reference_scraper
fb0081f2ae146f3a7da3a17d4e30af0c0dc1124a
[ "MIT" ]
59
2020-01-14T18:55:09.000Z
2022-03-03T21:10:03.000Z
test/test_pbp.py
Galtozzy/basketball_reference_scraper
fb0081f2ae146f3a7da3a17d4e30af0c0dc1124a
[ "MIT" ]
76
2020-01-08T19:50:31.000Z
2022-03-31T18:52:06.000Z
import unittest from basketball_reference_scraper.pbp import get_pbp class TestPbp(unittest.TestCase): def test_pbp(self): df = get_pbp('2020-01-06', 'DEN', 'ATL') expected_columns = ['QUARTER', 'TIME_REMAINING', 'DENVER_ACTION', 'ATLANTA_ACTION', 'DENVER_SCORE', 'ATLANTA_SCORE'] self.asser...
34.583333
124
0.710843
51
415
5.392157
0.666667
0.043636
0
0
0
0
0
0
0
0
0
0.022792
0.154217
415
11
125
37.727273
0.760684
0
0
0
0
0
0.233735
0
0
0
0
0
0.111111
1
0.111111
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
1f376809bd6d755cb0caead50017abc148fc244a
978
py
Python
bin/grep.py
Blindfold/pk-mod
24f958b0d501a3b5d9393dcad1e69987c2448968
[ "Apache-2.0" ]
1
2019-04-03T20:02:40.000Z
2019-04-03T20:02:40.000Z
bin/grep.py
Blindfold-Games/pk-mod
24f958b0d501a3b5d9393dcad1e69987c2448968
[ "Apache-2.0" ]
3
2015-01-03T23:56:51.000Z
2015-01-15T09:16:46.000Z
bin/grep.py
Blindfold-Games/pk-mod
24f958b0d501a3b5d9393dcad1e69987c2448968
[ "Apache-2.0" ]
null
null
null
import re import os from sys import argv def grep(match): def _do_grep_wrapper(match): def _do_grep(lines): if match(lines): yield lines return _do_grep return _do_grep_wrapper(match) def find(what, where, depth=True): """ :param what: str String to search ...
27.166667
96
0.5818
140
978
3.907143
0.464286
0.043876
0.036563
0.051188
0.157221
0.080439
0
0
0
0
0
0.004418
0.305726
978
36
97
27.166667
0.801178
0.190184
0
0
0
0
0.011765
0
0
0
0
0
0
1
0.16
false
0
0.12
0
0.4
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f39f0a7bb12ceef46b29fb32101f2f558a75220
2,023
py
Python
solution.py
nandita16gupta/CSV-Reading-using-Dynamic-Programming
793f9a9b23c2b1ea45d9ec71ea7070690932f9aa
[ "Apache-2.0" ]
null
null
null
solution.py
nandita16gupta/CSV-Reading-using-Dynamic-Programming
793f9a9b23c2b1ea45d9ec71ea7070690932f9aa
[ "Apache-2.0" ]
null
null
null
solution.py
nandita16gupta/CSV-Reading-using-Dynamic-Programming
793f9a9b23c2b1ea45d9ec71ea7070690932f9aa
[ "Apache-2.0" ]
null
null
null
import csv def inner(cell, spreadsheet): try: parts = cell.split() if len(parts) == 0: return 0.0 stack = [] for part in parts: if part[0].isalpha(): col = ord(part[0]) - ord('a') row = int(part[1:]) - 1 cell ...
24.373494
53
0.44439
213
2,023
4.14554
0.2723
0.074745
0.084938
0.064553
0.14043
0.08607
0.08607
0.08607
0.08607
0.08607
0
0.008711
0.432526
2,023
82
54
24.670732
0.760453
0.00692
0
0.109375
0
0
0.036889
0.010967
0
0
0
0
0
1
0.03125
false
0
0.015625
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f3ca2663f904f54aa3ffae1453e96545934c8ab
959
py
Python
tests/test_auth.py
ChukwuEmekaAjah/buycoins_python
86547aa742364a0e308b1dfb5f7c73b4467b1e06
[ "MIT" ]
1
2021-03-25T19:28:48.000Z
2021-03-25T19:28:48.000Z
tests/test_auth.py
ChukwuEmekaAjah/buycoins_python
86547aa742364a0e308b1dfb5f7c73b4467b1e06
[ "MIT" ]
null
null
null
tests/test_auth.py
ChukwuEmekaAjah/buycoins_python
86547aa742364a0e308b1dfb5f7c73b4467b1e06
[ "MIT" ]
null
null
null
from buycoins_client import Auth import unittest class TestAuthMethods(unittest.TestCase): def test_invalid_secret_key_setup(self): """ Should throw an exception for invalid secret key """ try: Auth.setup("name",3) except Exception as e: self.ass...
26.638889
89
0.605839
116
959
4.836207
0.37069
0.096257
0.114082
0.064171
0.481283
0.481283
0.481283
0.392157
0.392157
0.392157
0
0.004511
0.306569
959
35
90
27.4
0.839098
0.169969
0
0.222222
0
0
0.173669
0
0
0
0
0
0.166667
1
0.166667
false
0
0.111111
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
1f3d20a100b0201057cb5b8f77818cba1ad9e63b
6,328
py
Python
icn/plc/main.py
PMaynard/ndn-water-treatment-testbed
926db68237b06f43f6e736f035201ed71fc153bc
[ "MIT" ]
3
2021-01-20T00:54:09.000Z
2021-06-02T01:54:02.000Z
icn/plc/main.py
PMaynard/ndn-water-treatment-testbed
926db68237b06f43f6e736f035201ed71fc153bc
[ "MIT" ]
null
null
null
icn/plc/main.py
PMaynard/ndn-water-treatment-testbed
926db68237b06f43f6e736f035201ed71fc153bc
[ "MIT" ]
null
null
null
# from ui import UI # from ui import UI_Element import sys import time import threading import socket from plcrpcservice import PLCRPCClient import pyndn from pyndn import Name from pyndn import Face from pyndn import Interest from pyndn.security import KeyChain from pyndn.security.identity import IdentityManager fr...
31.326733
112
0.588021
731
6,328
5.023256
0.27907
0.041394
0.02097
0.022876
0.026144
0
0
0
0
0
0
0.010191
0.286662
6,328
201
113
31.482587
0.803279
0.195006
0
0.032787
0
0
0.068684
0
0
0
0.000818
0.004975
0
1
0.098361
false
0
0.131148
0.016393
0.270492
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f3eb22adbac011762c8a0158ac669343f090557
2,876
py
Python
cogs/administration.py
tigersharkpr13/AnsuraBot
035797121d8e7952bc38e32834cdb655c15cb703
[ "Unlicense" ]
null
null
null
cogs/administration.py
tigersharkpr13/AnsuraBot
035797121d8e7952bc38e32834cdb655c15cb703
[ "Unlicense" ]
null
null
null
cogs/administration.py
tigersharkpr13/AnsuraBot
035797121d8e7952bc38e32834cdb655c15cb703
[ "Unlicense" ]
null
null
null
from typing import Union import discord from discord.ext import commands import cogs.gamertags from ansura.ansurabot import AnsuraBot from ansura.ansuracontext import AnsuraContext class Administration(commands.Cog): def error(self, title, message={}, color=0xff0000): e = discord.Embed() e.colou...
40.507042
92
0.561544
401
2,876
3.955112
0.239402
0.027743
0.062421
0.090164
0.474149
0.461538
0.428752
0.428752
0.428752
0.428752
0
0.012626
0.311544
2,876
70
93
41.085714
0.788384
0
0
0.33871
0
0
0.08484
0.011127
0
0
0.002782
0
0
1
0.048387
false
0
0.096774
0
0.209677
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f3f0f56c3a1c070b48e8fbce26fe6e40715c8ef
357
py
Python
project/celery.py
kunugoda/jobbrd
19debcac7673a85eda4a8d1eb00e5537268bd601
[ "MIT" ]
1
2020-06-17T05:25:42.000Z
2020-06-17T05:25:42.000Z
project/celery.py
kunugoda/jobbrd
19debcac7673a85eda4a8d1eb00e5537268bd601
[ "MIT" ]
null
null
null
project/celery.py
kunugoda/jobbrd
19debcac7673a85eda4a8d1eb00e5537268bd601
[ "MIT" ]
null
null
null
import os from celery import Celery from django.conf import settings os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings') app = Celery('jobboard') app.config_from_object('django.conf:settings') app.autodiscover_tasks(lambda: settings.INSTALLED_APPS) @app.task(bind=True) def debug_task(self): print(...
23.8
67
0.787115
50
357
5.48
0.6
0.072993
0
0
0
0
0
0
0
0
0
0.003049
0.081232
357
14
68
25.5
0.832317
0
0
0
0
0
0.218487
0.061625
0
0
0
0
0
1
0.1
false
0
0.3
0
0.4
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
1f407417b73374a6afc645fcceeb6ced94f54f5e
2,388
py
Python
EGGS_labrad/clients/cryovac_clients/fma1700a_client.py
EGGS-Experiment/EGGS_Control
c29b3ab0e30dcb6e01d1ca3212ac64ad1506143b
[ "MIT" ]
2
2021-12-26T05:00:54.000Z
2021-12-30T17:15:49.000Z
EGGS_labrad/clients/cryovac_clients/fma1700a_client.py
EGGS-Experiment/EGGS_Control
c29b3ab0e30dcb6e01d1ca3212ac64ad1506143b
[ "MIT" ]
null
null
null
EGGS_labrad/clients/cryovac_clients/fma1700a_client.py
EGGS-Experiment/EGGS_Control
c29b3ab0e30dcb6e01d1ca3212ac64ad1506143b
[ "MIT" ]
null
null
null
from time import time from datetime import datetime from twisted.internet.defer import inlineCallbacks from EGGS_labrad.clients import GUIClient from EGGS_labrad.clients.cryovac_clients.fma1700a_gui import fma1700a_gui class fma1700a_client(GUIClient): name = 'FMA1700A Client' FLOWID = 877920 servers = ...
33.166667
100
0.620603
293
2,388
4.945392
0.389079
0.043478
0.030366
0.043478
0.037267
0
0
0
0
0
0
0.033869
0.270519
2,388
71
101
33.633803
0.797933
0.101759
0
0.108696
0
0
0.067593
0.010067
0
0
0
0
0
1
0.108696
false
0
0.130435
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f43bc58bc8f57d5639beefb900d57b125412748
1,440
py
Python
cd4ml/app.py
joragupra/CD4ML-Scenarios
8c8886388260147cd5248dfa1945f60ebabfaacc
[ "MIT" ]
1
2020-12-24T19:52:58.000Z
2020-12-24T19:52:58.000Z
cd4ml/app.py
joragupra/CD4ML-Scenarios
8c8886388260147cd5248dfa1945f60ebabfaacc
[ "MIT" ]
null
null
null
cd4ml/app.py
joragupra/CD4ML-Scenarios
8c8886388260147cd5248dfa1945f60ebabfaacc
[ "MIT" ]
1
2020-05-04T18:21:41.000Z
2020-05-04T18:21:41.000Z
from flask import Flask, render_template, request import cd4ml.app_utils as utils from cd4ml.fluentd_logging import FluentdLogger app = Flask(__name__, template_folder='webapp/templates', static_folder='webapp/static') fluentd_logger = FluentdLogger() @app.route('/') def index(): return render_templ...
25.263158
66
0.702083
180
1,440
5.327778
0.333333
0.036496
0.031283
0.043796
0.216893
0.154327
0.154327
0.091762
0.091762
0
0
0.013468
0.175
1,440
56
67
25.714286
0.793771
0
0
0.1
0
0
0.116667
0
0
0
0
0
0
1
0.125
false
0
0.075
0.025
0.325
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f44b877c61b52c5169fcc3dc901630593e11752
1,456
py
Python
api/crud/events.py
cnuland/tbml
8dca907011971a8ad21dfc5b5d6bec1ddbff0818
[ "MIT" ]
null
null
null
api/crud/events.py
cnuland/tbml
8dca907011971a8ad21dfc5b5d6bec1ddbff0818
[ "MIT" ]
null
null
null
api/crud/events.py
cnuland/tbml
8dca907011971a8ad21dfc5b5d6bec1ddbff0818
[ "MIT" ]
null
null
null
from fastapi import HTTPException from tortoise.exceptions import DoesNotExist from db.models import Events from schemas.events import EventsOutSchema async def get_events(): return await EventsOutSchema.from_queryset(Events.all()) async def get_event(event_id) -> EventsOutSchema: return await EventsOutSch...
35.512195
86
0.76511
198
1,456
5.414141
0.227273
0.084888
0.078358
0.149254
0.580224
0.498134
0.449627
0.449627
0.449627
0.449627
0
0.007223
0.144231
1,456
41
87
35.512195
0.85313
0
0
0.392857
0
0
0.070007
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f46b6c5cc84e0b05c2f63e339fe44af56c4515e
29,428
py
Python
sfx/sfx.py
Terry14/sfx
16bcf401ba3251b0de211276d97153469499515d
[ "MIT" ]
null
null
null
sfx/sfx.py
Terry14/sfx
16bcf401ba3251b0de211276d97153469499515d
[ "MIT" ]
null
null
null
sfx/sfx.py
Terry14/sfx
16bcf401ba3251b0de211276d97153469499515d
[ "MIT" ]
null
null
null
import asyncio import os import unicodedata import aiohttp import discord import lavalink import unidecode from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.utils.predicates import MessagePredicate from .api import generate_urls try: from redb...
35.327731
157
0.571259
3,584
29,428
4.607422
0.118862
0.027615
0.038515
0.018107
0.628475
0.58245
0.538303
0.500696
0.486647
0.47502
0
0.006234
0.329584
29,428
832
158
35.370192
0.830757
0.012471
0
0.524409
0
0.014173
0.173608
0.018003
0
0
0
0
0
1
0.006299
false
0.00315
0.023622
0
0.113386
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f477811434f0fbba0fb2564e885e5ce2cde1027
581
py
Python
norm_files.py
jncraton/ipeds-data
e17b051bac3d4d112d83a85f38dc1422d4fb584b
[ "MIT" ]
null
null
null
norm_files.py
jncraton/ipeds-data
e17b051bac3d4d112d83a85f38dc1422d4fb584b
[ "MIT" ]
null
null
null
norm_files.py
jncraton/ipeds-data
e17b051bac3d4d112d83a85f38dc1422d4fb584b
[ "MIT" ]
null
null
null
""" Normalizes contents for all data files. - Converts column names to uppercase - Converts data values to uppercase - Converts to Unix line endings - Removes trailing whitespace from all lines """ import os csvs = ['data/' + f for f in os.listdir('data') if f.endswith('.csv')] for f in csvs: lf = f.lower() o...
19.366667
70
0.650602
89
581
4.247191
0.573034
0.058201
0.100529
0
0
0
0
0
0
0
0
0.017167
0.197935
581
29
71
20.034483
0.793991
0.327022
0
0
0
0
0.075916
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f528ea187b09ea162a161716dde9aff8b7b565d
1,042
py
Python
examples/chain_mdp.py
kngwyu/rlpy
329166de28d311d8f87358a62c38f40a7318fe07
[ "BSD-3-Clause" ]
3
2019-12-07T13:34:02.000Z
2021-03-29T10:20:05.000Z
examples/chain_mdp.py
kngwyu/rlpy
329166de28d311d8f87358a62c38f40a7318fe07
[ "BSD-3-Clause" ]
14
2019-09-29T03:09:09.000Z
2022-01-13T03:17:48.000Z
examples/chain_mdp.py
kngwyu/rlpy3
329166de28d311d8f87358a62c38f40a7318fe07
[ "BSD-3-Clause" ]
null
null
null
import click from rlpy.domains import ChainMDP from rlpy.tools.cli import run_experiment import methods def select_domain(chain_size): return ChainMDP(chain_size=chain_size) def select_agent(name, domain, max_steps, seed, **kwargs): if name is None or name == "lspi": return methods.tabular_lspi(dom...
28.944444
76
0.681382
138
1,042
4.876812
0.442029
0.096582
0.118871
0.056464
0.098068
0.098068
0.098068
0.098068
0.098068
0
0
0.017032
0.211132
1,042
35
77
29.771429
0.801703
0
0
0
0
0
0.070058
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0.035714
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f5495f299c3cac72ffba7fb46905bf9c811295d
694
py
Python
migrations/versions/6e2656ef034b_.py
haichungcn/h-ticketbox
37d3a3054a92fbb3702cac10f87621762b68bae2
[ "Apache-2.0" ]
null
null
null
migrations/versions/6e2656ef034b_.py
haichungcn/h-ticketbox
37d3a3054a92fbb3702cac10f87621762b68bae2
[ "Apache-2.0" ]
1
2021-06-02T00:42:03.000Z
2021-06-02T00:42:03.000Z
migrations/versions/6e2656ef034b_.py
haichungcn/h-ticketbox
37d3a3054a92fbb3702cac10f87621762b68bae2
[ "Apache-2.0" ]
null
null
null
"""empty message Revision ID: 6e2656ef034b Revises: f8f949ce4522 Create Date: 2019-11-26 11:05:54.376467 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6e2656ef034b' down_revision = 'f8f949ce4522' branch_labels = None depends_on = None def upgrade(): # ...
23.931034
80
0.708934
82
694
5.865854
0.573171
0.056133
0.087318
0.095634
0.345114
0.182952
0.182952
0.182952
0
0
0
0.089655
0.164265
694
28
81
24.785714
0.739655
0.425072
0
0
0
0
0.265193
0
0
0
0
0
0
1
0.2
false
0
0.2
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
1f54a8fce56dc2266fdcba4960db2d6b32f72f6a
1,940
py
Python
python/heterocl/mlir/context.py
chhzh123/heterocl
856e9b8ad877d11280a7e457e91ca89803c05570
[ "Apache-2.0" ]
null
null
null
python/heterocl/mlir/context.py
chhzh123/heterocl
856e9b8ad877d11280a7e457e91ca89803c05570
[ "Apache-2.0" ]
null
null
null
python/heterocl/mlir/context.py
chhzh123/heterocl
856e9b8ad877d11280a7e457e91ca89803c05570
[ "Apache-2.0" ]
null
null
null
from contextvars import ContextVar from hcl_mlir.dialects import hcl as hcl_d from hcl_mlir.ir import * ImperativeLoopNestCount = ContextVar("ImperativeLoopNestCount", default=1) ImperativeLoopDepth = ContextVar("ImperativeLoopDepth", default=0) StageName = ContextVar("StageName", default="") NestedCompute = ContextV...
27.714286
79
0.619588
232
1,940
4.939655
0.267241
0.020942
0.034904
0.052356
0.027923
0
0
0
0
0
0
0.01073
0.279381
1,940
69
80
28.115942
0.809013
0.013402
0
0.036364
0
0
0.107741
0.012029
0
0
0
0
0
1
0.109091
false
0.018182
0.054545
0.036364
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f572ce92d4767535e92d6069a13c0b878ad4d2b
1,216
py
Python
378. Kth Smallest Element in a Sorted Matrix.py
XinchaoGou/MyLeetCode
bba0ab077374f7da2cb1a990266bc59fa7ddf23c
[ "MIT" ]
null
null
null
378. Kth Smallest Element in a Sorted Matrix.py
XinchaoGou/MyLeetCode
bba0ab077374f7da2cb1a990266bc59fa7ddf23c
[ "MIT" ]
null
null
null
378. Kth Smallest Element in a Sorted Matrix.py
XinchaoGou/MyLeetCode
bba0ab077374f7da2cb1a990266bc59fa7ddf23c
[ "MIT" ]
null
null
null
from typing import List import heapq # 排序 class Solution: def kthSmallest(self, matrix: List[List[int]], k: int) -> int: res = sorted(sum(matrix,[])) return res[k-1] # 最小堆维护归并排序 class Solution: def kthSmallest(self, matrix: List[List[int]], k: int) -> int: n = len(matrix) hpq = ...
27.022222
66
0.449836
162
1,216
3.376543
0.277778
0.071298
0.087751
0.14808
0.301645
0.301645
0.301645
0.301645
0.301645
0.301645
0
0.029371
0.412007
1,216
44
67
27.636364
0.735664
0.013158
0
0.27027
0
0
0
0
0
0
0
0
0
1
0.108108
false
0
0.054054
0
0.351351
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f5774372518e14045e4add17d37c16fbf360cfe
10,289
py
Python
episim/model.py
jm-begon/episim
705f80b782c5653a0d8b6e53614f34c12917cb43
[ "BSD-3-Clause" ]
null
null
null
episim/model.py
jm-begon/episim
705f80b782c5653a0d8b6e53614f34c12917cb43
[ "BSD-3-Clause" ]
null
null
null
episim/model.py
jm-begon/episim
705f80b782c5653a0d8b6e53614f34c12917cb43
[ "BSD-3-Clause" ]
null
null
null
import os import datetime from collections import defaultdict import numpy as np from scipy import sparse from episim.ontology import Ontology from episim.plot.modeling import System, Accumulator from .data import State class EulerSimulator(object): """ Explicit Euler method """ def __init__(self, ...
26.180662
80
0.57197
1,297
10,289
4.298381
0.157286
0.01722
0.018655
0.003587
0.4287
0.357309
0.327892
0.307085
0.259731
0.259731
0
0.009597
0.321508
10,289
392
81
26.247449
0.788999
0.055593
0
0.388
0
0
0.023884
0
0
0
0
0
0
1
0.144
false
0
0.032
0.048
0.312
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f5af941019a09b58bc8c7a46b832a62890985af
2,446
py
Python
db/schema.py
aatrubilin/sqlalchemy_sessions
8f99c3bf42da7224bbb6622ab23222ee1ebf1627
[ "MIT" ]
null
null
null
db/schema.py
aatrubilin/sqlalchemy_sessions
8f99c3bf42da7224bbb6622ab23222ee1ebf1627
[ "MIT" ]
null
null
null
db/schema.py
aatrubilin/sqlalchemy_sessions
8f99c3bf42da7224bbb6622ab23222ee1ebf1627
[ "MIT" ]
null
null
null
import logging from datetime import datetime import sqlalchemy as sa import sqlalchemy.orm as so from .base import Base, Session __all__ = ["User", "Message"] logger = logging.getLogger(__name__) class User(Base): __tablename__ = "users" id = sa.Column(sa.Integer, primary_key=True) nickname = sa.Colu...
27.795455
95
0.629191
320
2,446
4.565625
0.234375
0.049281
0.061602
0.043806
0.292266
0.279261
0.238193
0.11499
0.069815
0.069815
0
0
0.248978
2,446
87
96
28.114943
0.795318
0
0
0.215385
0
0.015385
0.061325
0
0
0
0
0
0
1
0.138462
false
0
0.076923
0.061538
0.569231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f5e5337671f2aa26669d1f985e1feb6f9bb2487
3,075
py
Python
app/eventFrameTemplates/forms.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
27
2017-11-27T05:01:05.000Z
2020-11-14T19:52:26.000Z
app/eventFrameTemplates/forms.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
259
2017-11-23T00:43:26.000Z
2020-11-03T01:07:30.000Z
app/eventFrameTemplates/forms.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
8
2018-10-29T04:39:29.000Z
2020-10-01T22:18:12.000Z
from flask_wtf import FlaskForm from wtforms import HiddenField, IntegerField, SelectField, StringField, SubmitField, ValidationError from wtforms.validators import Length, Required from .. models import EventFrameTemplate class CopyEventFrameTemplateForm(FlaskForm): name = StringField("Name", validators = [Required(...
45.220588
152
0.766504
309
3,075
7.601942
0.226537
0.044274
0.036186
0.068114
0.707961
0.675181
0.675181
0.502767
0.463602
0.397616
0
0.005285
0.138537
3,075
67
153
45.895522
0.881465
0.125203
0
0.641509
0
0
0.055887
0
0
0
0
0
0
1
0.056604
false
0
0.075472
0
0.433962
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f605b59e4b42a83b06301dd95460d66a85a140f
3,751
py
Python
flask_demo.py
tlinc/cyber-ng-18
40dd088b5785e75e59afded17f71ea50d64ae77f
[ "MIT" ]
null
null
null
flask_demo.py
tlinc/cyber-ng-18
40dd088b5785e75e59afded17f71ea50d64ae77f
[ "MIT" ]
null
null
null
flask_demo.py
tlinc/cyber-ng-18
40dd088b5785e75e59afded17f71ea50d64ae77f
[ "MIT" ]
null
null
null
import os from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC from cryptography.hazmat.backends import default_backend from stegano import lsb from flask import Flask, render_te...
27.379562
76
0.643295
467
3,751
5.062099
0.30621
0.029611
0.037225
0.040609
0.197547
0.168359
0.168359
0.168359
0.168359
0.168359
0
0.013633
0.217809
3,751
136
77
27.580882
0.792093
0.111704
0
0.222222
0
0
0.084163
0.026848
0
0
0
0
0
1
0.077778
false
0
0.088889
0.011111
0.244444
0.011111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f61bacc0966d711145c05f1a6526934fd3ce1d0
1,585
py
Python
ex0095.py
EwertonRosendo/PastaDeExercicios
68d23194b87ce1c8405c70fcceb3378955815d7d
[ "MIT" ]
null
null
null
ex0095.py
EwertonRosendo/PastaDeExercicios
68d23194b87ce1c8405c70fcceb3378955815d7d
[ "MIT" ]
null
null
null
ex0095.py
EwertonRosendo/PastaDeExercicios
68d23194b87ce1c8405c70fcceb3378955815d7d
[ "MIT" ]
null
null
null
jogador = dict() lista_de_jogadores = [] lista = [] print("_"*38) contador = 0 while True: jogador["nome"] = str(input("Informe o nome do jogador: ")).strip() jogador["partidas"] = int(input("Informe quantas partidas foram jogadas: ")) jogador["gols marcados"] = [] for c in range(0, jogador["partidas"])...
40.641026
83
0.620189
212
1,585
4.556604
0.353774
0.057971
0.132505
0.074534
0.141822
0.076605
0.076605
0
0
0
0
0.018053
0.196215
1,585
39
84
40.641026
0.740188
0.0347
0
0.157895
0
0
0.284872
0.027505
0
0
0
0
0
1
0
false
0
0
0
0
0.263158
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f634bdb1c7a7c3154dda573b13beb16dfe4e289
8,568
py
Python
slide/models.py
AICAN-Research/learn-pathology
663f9c5f125857badf5bb41b6bfa2d9100578e2e
[ "MIT" ]
2
2021-09-16T08:38:10.000Z
2021-09-16T10:46:53.000Z
slide/models.py
AICAN-Research/learn-pathology
663f9c5f125857badf5bb41b6bfa2d9100578e2e
[ "MIT" ]
6
2021-09-20T10:56:21.000Z
2022-01-05T08:25:17.000Z
slide/models.py
AICAN-Research/learn-pathology
663f9c5f125857badf5bb41b6bfa2d9100578e2e
[ "MIT" ]
null
null
null
import threading from io import BytesIO from django.db import models import fast import time import numpy as np from PIL import Image from django.conf import settings from slide.timing import Timer from tag.models import Tag class Slide(models.Model): """ Model for whole slide image """ name = models....
38.25
152
0.615079
1,043
8,568
4.819751
0.198466
0.044559
0.021484
0.03342
0.256018
0.193754
0.163915
0.092699
0.059678
0.02029
0
0.009794
0.285014
8,568
223
153
38.421525
0.810806
0.108193
0
0.114458
0
0.012048
0.085109
0.015983
0
0
0
0.008969
0
1
0.084337
false
0
0.090361
0.006024
0.331325
0.048193
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f641a14add400abd8e0ed7c75835db3c0d6d277
742
py
Python
xpresso/_utils/endpoint_dependant.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
75
2022-01-18T02:17:57.000Z
2022-03-24T02:30:04.000Z
xpresso/_utils/endpoint_dependant.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
73
2022-01-18T03:01:27.000Z
2022-03-27T16:41:38.000Z
xpresso/_utils/endpoint_dependant.py
adriangb/xpresso
43fcc360f7b19c00e0b78480f96390bcb4d28053
[ "MIT" ]
3
2022-01-18T22:47:06.000Z
2022-01-25T02:03:53.000Z
from __future__ import annotations import typing from di.api.providers import CallableProvider, CoroutineProvider from di.dependant import Dependant from xpresso.dependencies._dependencies import Depends, DependsMarker Endpoint = typing.Union[CallableProvider[typing.Any], CoroutineProvider[typing.Any]] class Endp...
25.586207
84
0.677898
76
742
6.328947
0.526316
0.056133
0.074844
0
0
0
0
0
0
0
0
0
0.239892
742
28
85
26.5
0.852837
0
0
0
0
0
0.010782
0
0
0
0
0
0
1
0.095238
false
0
0.238095
0.047619
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f64ad352e9b9691d83fdce5ed744e84a89c5372
13,330
py
Python
create_pretraining_data_lm.py
twilightdema/ALBERT_Thai
2c5612237a6843c4949dd941dbcd01ca91f82f2b
[ "Apache-2.0" ]
null
null
null
create_pretraining_data_lm.py
twilightdema/ALBERT_Thai
2c5612237a6843c4949dd941dbcd01ca91f82f2b
[ "Apache-2.0" ]
4
2020-09-25T22:35:29.000Z
2022-02-09T23:37:24.000Z
create_pretraining_data_lm.py
twilightdema/ALBERT_Thai
2c5612237a6843c4949dd941dbcd01ca91f82f2b
[ "Apache-2.0" ]
1
2020-10-17T01:36:03.000Z
2020-10-17T01:36:03.000Z
# coding=utf-8 # Copyright 2018 The Google AI Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
33.076923
117
0.692798
1,866
13,330
4.755627
0.229904
0.018256
0.018932
0.003944
0.208249
0.146833
0.091053
0.057471
0.04192
0.04192
0
0.006722
0.207577
13,330
402
118
33.159204
0.833097
0.25994
0
0.14
0
0
0.122476
0.005842
0
0
0
0
0.02
1
0.056
false
0.004
0.044
0.004
0.152
0.044
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f6706c7305503eebcfb4dc0e941eec4fd99c3fd
3,260
py
Python
src/libcore/tests/test_qmc.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
7
2020-07-24T03:19:59.000Z
2022-03-30T10:56:12.000Z
src/libcore/tests/test_qmc.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
1
2021-04-07T22:30:23.000Z
2021-04-08T00:55:36.000Z
src/libcore/tests/test_qmc.py
tizian/layer-laboratory
008cc94b76127e9eb74227fcd3d0145da8ddec30
[ "CNRI-Python" ]
2
2020-06-08T08:25:09.000Z
2021-04-05T22:13:08.000Z
import enoki as ek import pytest import mitsuba def r_inv(divisor, index): factor = 1 value = 0 recip = 1.0 / divisor while index != 0: next_val = index // divisor factor *= recip value = value * divisor + index - next_val * divisor index = next_val return value *...
28.347826
74
0.60184
481
3,260
3.989605
0.234927
0.029182
0.046899
0.065659
0.4716
0.460657
0.439812
0.369463
0.342887
0.342887
0
0.092646
0.261656
3,260
114
75
28.596491
0.704612
0.01319
0
0.252874
0
0
0.033904
0
0
0
0
0
0.172414
1
0.08046
false
0
0.126437
0
0.218391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f69bfc2c5f28e5c08c2ff64bb83de310333e32a
14,656
py
Python
train.py
ColinWine/Multi-modal-Multi-label-Facial-Action-Unit-Detection-with-Transformer
93871bed9078d5bf6b4bb37407c9dce87c569b55
[ "MIT" ]
null
null
null
train.py
ColinWine/Multi-modal-Multi-label-Facial-Action-Unit-Detection-with-Transformer
93871bed9078d5bf6b4bb37407c9dce87c569b55
[ "MIT" ]
null
null
null
train.py
ColinWine/Multi-modal-Multi-label-Facial-Action-Unit-Detection-with-Transformer
93871bed9078d5bf6b4bb37407c9dce87c569b55
[ "MIT" ]
null
null
null
import warnings import torch from torch.utils.data.dataloader import DataLoader from torch.optim import lr_scheduler import numpy as np from models import * from dataloader import Aff2CompDataset, SubsetSequentialSampler, SubsetRandomSampler, Prefetcher from tqdm import tqdm import os import time from sklearn.metrics i...
42.604651
134
0.60917
1,905
14,656
4.501312
0.177428
0.012128
0.018192
0.030787
0.395102
0.338542
0.294111
0.28898
0.260058
0.189854
0
0.016751
0.246452
14,656
343
135
42.728863
0.759689
0.034047
0
0.236301
0
0.003425
0.107582
0.025888
0
0
0
0
0
1
0.030822
false
0
0.061644
0
0.113014
0.034247
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f6f98de6468e928dedff399ac6db135e5b7f2ec
18,002
py
Python
src/agent.py
Lukeeeeee/DataCenterJobSchedulingSolution
9c62c0039b2dd9e0a1ca5474dc46c8be98a972b3
[ "MIT" ]
null
null
null
src/agent.py
Lukeeeeee/DataCenterJobSchedulingSolution
9c62c0039b2dd9e0a1ca5474dc46c8be98a972b3
[ "MIT" ]
null
null
null
src/agent.py
Lukeeeeee/DataCenterJobSchedulingSolution
9c62c0039b2dd9e0a1ca5474dc46c8be98a972b3
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import tensorlayer as tl import datetime from log import LOG_PATH import os import src.visualization as vis from src.config import Config as con import tensorflow.contrib as tfcontrib server_count = con.server_count server_state_dim = con.server_state_dim total_server_state_d...
47.750663
118
0.575436
2,175
18,002
4.407816
0.106667
0.028476
0.021905
0.043809
0.520601
0.434964
0.383227
0.358611
0.329822
0.297695
0
0.006376
0.32913
18,002
376
119
47.87766
0.787447
0.119876
0
0.241509
0
0
0.04755
0
0
0
0
0
0
1
0.060377
false
0.003774
0.041509
0.003774
0.14717
0.045283
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f74a2f22700c0cecd865a836091b95cf438f84d
536
py
Python
ch06/data.py
stoneflyop1/py_machine_learning
18fd635d312f957ca4fcc23d856a1bcd4cf95f48
[ "MIT" ]
null
null
null
ch06/data.py
stoneflyop1/py_machine_learning
18fd635d312f957ca4fcc23d856a1bcd4cf95f48
[ "MIT" ]
null
null
null
ch06/data.py
stoneflyop1/py_machine_learning
18fd635d312f957ca4fcc23d856a1bcd4cf95f48
[ "MIT" ]
null
null
null
import pandas as pd ##################### # Load Dataset # https://archive.ics.uci.edu/ml/machine-learning-databases/breast-cancer-wisconsin/wdbc.data df = pd.read_csv('../data/wdbc.data', header=None) from sklearn.preprocessing import LabelEncoder X = df.loc[:, 2:].values y = df.loc[:,1].values le = LabelEncoder() ...
28.210526
93
0.699627
85
536
4.258824
0.611765
0.044199
0.077348
0.082873
0
0
0
0
0
0
0
0.012579
0.110075
536
19
94
28.210526
0.746331
0.19403
0
0
0
0
0.046455
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
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
1f75dc40de3440e94dfc62ec31434b5e0206507e
733
py
Python
src/tga_to_jpg.py
NicolasGrosjean/HoI4_Stats
b2b6341e8a0b400255302b277407ea33c1a9833f
[ "MIT" ]
null
null
null
src/tga_to_jpg.py
NicolasGrosjean/HoI4_Stats
b2b6341e8a0b400255302b277407ea33c1a9833f
[ "MIT" ]
null
null
null
src/tga_to_jpg.py
NicolasGrosjean/HoI4_Stats
b2b6341e8a0b400255302b277407ea33c1a9833f
[ "MIT" ]
null
null
null
import argparse import os from PIL import Image def get_args(): parser = argparse.ArgumentParser(description='Transform tga files to jpg') parser.add_argument('input_dir', type=str, help='Path of input directory containing tga files') parser.add_argument('output_dir', type=str, help='Path of output direct...
34.904762
101
0.682128
107
733
4.46729
0.46729
0.050209
0.07113
0.058577
0.083682
0.083682
0
0
0
0
0
0.001684
0.189632
733
20
102
36.65
0.80303
0
0
0
0
0
0.208731
0
0
0
0
0
0
1
0.0625
false
0
0.1875
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
1f78bf747e413822fce9fdf17d1c1fc1b0c7a165
3,052
py
Python
src/construction_finder/coderack.py
juliakzn/construction_finder
92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8
[ "MIT" ]
null
null
null
src/construction_finder/coderack.py
juliakzn/construction_finder
92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8
[ "MIT" ]
null
null
null
src/construction_finder/coderack.py
juliakzn/construction_finder
92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8
[ "MIT" ]
null
null
null
import logging import random from typing import Dict, List, Tuple, Union from construction_finder import codelets, frame logger = logging.getLogger(f"{__name__}") class SpinResult: def __init__( self, temp_modifier: float, workspace_modifiers: Union[List[codelets.WorkSpaceModifier], None...
35.08046
118
0.656619
355
3,052
5.323944
0.219718
0.087302
0.063492
0.058201
0.183598
0.129101
0.129101
0.068783
0.068783
0.068783
0
0.00488
0.261468
3,052
86
119
35.488372
0.833629
0
0
0.073529
0
0
0.082896
0.02654
0
0
0
0
0
1
0.117647
false
0
0.058824
0.014706
0.279412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f7babebb7eb438c1f113d421ddd85e8d4dce5ed
1,713
py
Python
configuration.py
ewellchen/STIN
0612a0b56d8caf1f8771ce13a3d8827d26a38f30
[ "MIT" ]
null
null
null
configuration.py
ewellchen/STIN
0612a0b56d8caf1f8771ce13a3d8827d26a38f30
[ "MIT" ]
null
null
null
configuration.py
ewellchen/STIN
0612a0b56d8caf1f8771ce13a3d8827d26a38f30
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Default configurations of model configuration, training. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os.path as osp from typing import Dict CONFIG = { 'is_train': True, ...
23.148649
65
0.549329
195
1,713
4.461538
0.364103
0.051724
0.063218
0.087356
0.457471
0.382759
0.382759
0.318391
0.27931
0.147126
0
0.047502
0.287215
1,713
73
66
23.465753
0.665029
0.058377
0
0.333333
0
0
0.458877
0.116188
0
0
0
0
0
1
0
false
0
0.119048
0
0.119048
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f7d838dc8f88dc8eef76ebba1d92fdbf66fdaf5
54,959
py
Python
util/configurejson2cmake.py
chentoz/occQt
9738c26a18ac7757201342a69f95483d435a39fa
[ "MIT" ]
null
null
null
util/configurejson2cmake.py
chentoz/occQt
9738c26a18ac7757201342a69f95483d435a39fa
[ "MIT" ]
null
null
null
util/configurejson2cmake.py
chentoz/occQt
9738c26a18ac7757201342a69f95483d435a39fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ############################################################################# ## ## Copyright (C) 2018 The Qt Company Ltd. ## Contact: https://www.qt.io/licensing/ ## ## This file is part of the plugins of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:GPL-EXCEPT$ ## Commercial License Usage ## Licensee...
34.608942
147
0.580251
5,997
54,959
5.121227
0.142571
0.019146
0.029891
0.012047
0.274518
0.196243
0.155639
0.128582
0.098496
0.084039
0
0.008092
0.293965
54,959
1,587
148
34.63075
0.783393
0.097236
0
0.171149
0
0
0.265549
0.058592
0.002445
0
0
0.00126
0.00326
1
0.0326
false
0.000815
0.00815
0
0.072535
0.0326
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f7e10137722c6fcc224fdac359159dee3d532fc
819
py
Python
easy_scrapy/2_beautifulsoup/bs4_3_regex.py
cyfu/web_scrapying
b59a75d3db289032bb9005f062470e8ce745539a
[ "MIT" ]
null
null
null
easy_scrapy/2_beautifulsoup/bs4_3_regex.py
cyfu/web_scrapying
b59a75d3db289032bb9005f062470e8ce745539a
[ "MIT" ]
null
null
null
easy_scrapy/2_beautifulsoup/bs4_3_regex.py
cyfu/web_scrapying
b59a75d3db289032bb9005f062470e8ce745539a
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from urllib.request import urlopen import re # open and read web page, decode it if it contains Chinese html = urlopen('https://mofanpy.com/static/scraping/table.html').read().decode('utf-8') print(html) # 'lxml' is parser name soup = BeautifulSoup(html, features='lxml') # search by tag...
32.76
87
0.693529
125
819
4.48
0.52
0.05
0.058929
0
0
0
0
0
0
0
0
0.002829
0.136752
819
25
88
32.76
0.78925
0.218559
0
0
0
0
0.193701
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.266667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f8f15b75dc5ee4ca1fc697ef1e5c0863cf598a7
1,893
py
Python
easyTCP/CLIENT/backend/Protocol.py
dsal3389/easyTCP
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
[ "MIT" ]
4
2018-12-09T13:57:59.000Z
2019-10-19T19:34:28.000Z
easyTCP/CLIENT/backend/Protocol.py
dsal3389/easyTCP
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
[ "MIT" ]
null
null
null
easyTCP/CLIENT/backend/Protocol.py
dsal3389/easyTCP
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
[ "MIT" ]
null
null
null
import asyncio import json from ..utils import DEFAULT_SETTINGS from ..utils.DEFAULT_ENCRYPTION import SERVER_encryption, CLIENT_encryption def json_dumper(data): return bytes(json.dumps(data), encoding=DEFAULT_SETTINGS.ENCODING) def json_loader(data): return json.loads(str(data, encoding=DEFAULT_S...
36.403846
111
0.661912
238
1,893
5.138655
0.327731
0.07359
0.075225
0.076043
0.057236
0
0
0
0
0
0
0
0.242472
1,893
51
112
37.117647
0.852859
0.064976
0
0.078947
0
0
0.022727
0
0
0
0
0
0
1
0.157895
false
0
0.105263
0.052632
0.394737
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f8f9e391109c41227336b2bb762cb77a40123c1
6,413
py
Python
src/harvester.py
bmoxon/azfinsim
3e203855410abd6c9636377b93ed5d33ac896c41
[ "MIT" ]
5
2021-02-24T19:10:34.000Z
2022-02-24T21:11:24.000Z
src/harvester.py
bmoxon/azfinsim
3e203855410abd6c9636377b93ed5d33ac896c41
[ "MIT" ]
null
null
null
src/harvester.py
bmoxon/azfinsim
3e203855410abd6c9636377b93ed5d33ac896c41
[ "MIT" ]
2
2021-05-03T11:57:31.000Z
2021-12-09T10:24:29.000Z
#! /usr/bin/env python3 #-- harvest scheduler that runs on the compute pool nodes import argparse import time import sys import logging import os import psutil from applicationinsights import TelemetryClient from applicationinsights.logging import LoggingHandler from getargs import getargs import azlog azlog.color=...
34.478495
127
0.626072
802
6,413
4.905237
0.34414
0.027453
0.015252
0.011439
0.11998
0.093035
0.084392
0.038129
0.038129
0.038129
0
0.007097
0.252924
6,413
186
128
34.478495
0.814026
0.24388
0
0.220472
0
0
0.151301
0.00437
0
0
0
0
0
1
0.031496
false
0
0.07874
0
0.11811
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f8faaab50ba1792d26b495c5cba37135b67c989
7,758
py
Python
old/model.py
samhippie/shallow-red
5690cdf380c6e138e25d88e85093738951438298
[ "MIT" ]
null
null
null
old/model.py
samhippie/shallow-red
5690cdf380c6e138e25d88e85093738951438298
[ "MIT" ]
null
null
null
old/model.py
samhippie/shallow-red
5690cdf380c6e138e25d88e85093738951438298
[ "MIT" ]
1
2020-03-13T12:53:35.000Z
2020-03-13T12:53:35.000Z
#!/usr/bin/env python3 #loading tf is slow, so don't do it unless we're using it USE_TENSORFLOW = False import collections import numpy as np import os import pickle if USE_TENSORFLOW: import tensorflow as tf from tensorflow import keras os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import modelInput #use...
37.298077
130
0.620907
921
7,758
5.186754
0.256243
0.046891
0.041449
0.045426
0.305212
0.239481
0.14821
0.113042
0.082479
0.067406
0
0.014469
0.278422
7,758
207
131
37.478261
0.838871
0.143336
0
0.267123
0
0
0.01374
0
0
0
0
0
0
1
0.130137
false
0.006849
0.047945
0
0.267123
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f9508b579771bc7e41b7b6de9c4a49ddf05f51e
3,368
py
Python
models/generatorUnet.py
ctyler9/cartoon-gan
48ec80cfcf23c6f30c5d1c446c12ff6f9c81afc8
[ "MIT" ]
177
2020-01-31T08:32:07.000Z
2022-03-28T02:20:29.000Z
models/generatorUnet.py
ctyler9/cartoon-gan
48ec80cfcf23c6f30c5d1c446c12ff6f9c81afc8
[ "MIT" ]
10
2020-06-26T04:46:26.000Z
2022-02-01T18:17:10.000Z
models/generatorUnet.py
ctyler9/cartoon-gan
48ec80cfcf23c6f30c5d1c446c12ff6f9c81afc8
[ "MIT" ]
44
2020-03-11T17:21:51.000Z
2022-03-16T16:09:22.000Z
import torch import torch.nn as nn import torch.nn.functional as F class Bottleneck(nn.Module): def __init__(self, in_channels, out_channels): super(Bottleneck, self).__init__() self.conv = nn.Sequential( nn.Conv2d(in_channels, in_channels, 1, padding=0, bias=False), ...
32.384615
101
0.561758
451
3,368
4.026608
0.190687
0.082599
0.104626
0.092511
0.378304
0.318282
0.189427
0.1663
0.124449
0.102423
0
0.065896
0.306116
3,368
104
102
32.384615
0.711168
0.003563
0
0.193182
0
0
0.002385
0
0
0
0
0
0
1
0.102273
false
0
0.034091
0.034091
0.238636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1f964a207f38c7145c92fc77855d4848bb25de63
1,716
py
Python
app/calc/utility.py
sajeeshen/WebCalculatorAPI
d951e688e84741cc594877914d292fbddb4e9542
[ "MIT" ]
null
null
null
app/calc/utility.py
sajeeshen/WebCalculatorAPI
d951e688e84741cc594877914d292fbddb4e9542
[ "MIT" ]
null
null
null
app/calc/utility.py
sajeeshen/WebCalculatorAPI
d951e688e84741cc594877914d292fbddb4e9542
[ "MIT" ]
null
null
null
import math from datetime import datetime AVAILABLE_ACTIONS = [{'action': 'add', 'admin_required': False, 'operator': '+'}, {'action': 'subtract', 'admin_required': False, 'operator': '-'}, {'action': 'multiply', 'admin_required': Fa...
28.131148
73
0.501166
185
1,716
4.545946
0.318919
0.028537
0.057075
0.053508
0.26635
0.047562
0.047562
0.047562
0.047562
0.047562
0
0.001781
0.345571
1,716
60
74
28.6
0.747106
0.132284
0
0.054054
0
0
0.164575
0
0
0
0
0
0
1
0.135135
false
0
0.054054
0.027027
0.324324
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f06bad44169797de0c1276f26ece53ea110fad2
6,009
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/api/v1/models.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/api/v1/models.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/api/v1/models.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" API v1 models. """ import logging from itertools import groupby from django.db import transaction from opaque_keys import InvalidKeyError from opaque_keys.edx.keys import CourseKey from common.djangoapps.course_modes.models import CourseMode from lms.djangoapps.verify_student.models import VerificationDeadline ...
40.328859
112
0.669496
748
6,009
5.183155
0.295455
0.035079
0.024761
0.01625
0.069126
0.02992
0
0
0
0
0
0.000222
0.251955
6,009
148
113
40.601351
0.862291
0.237144
0
0.083333
0
0
0.067065
0.018592
0
0
0
0
0
1
0.072917
false
0
0.083333
0
0.302083
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f0914ec0565214e9bbc4b09ca688ebda76940dd
3,428
py
Python
training_v1_backup/training/PPO/run_ppo.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
training_v1_backup/training/PPO/run_ppo.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
training_v1_backup/training/PPO/run_ppo.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
''' Wrapper function to run PPO algorithm for training ''' import numpy as np import matplotlib.pyplot as plt import time import math import logging from scipy.optimize import minimize, LinearConstraint # custom libraries from training.PPO.run_helper import buyerPenaltiesCalculator, buyerUtilitiesCalculator, evaluati...
38.516854
130
0.698658
388
3,428
5.927835
0.322165
0.046957
0.04
0.015652
0.144348
0.144348
0.118261
0.086957
0.086957
0.064348
0
0.005678
0.229288
3,428
88
131
38.954545
0.864875
0.151984
0
0.04
0
0
0.038141
0
0
0
0
0
0
1
0.02
false
0.04
0.16
0
0.18
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f0957f3db94b5ef71452361a51b110a5a627030
14,927
py
Python
mlprogram/entrypoint/train.py
HiroakiMikami/mlprogram
573e94c567064705fa65267dd83946bf183197de
[ "MIT" ]
9
2020-05-24T11:25:01.000Z
2022-03-28T15:32:10.000Z
mlprogram/entrypoint/train.py
HiroakiMikami/mlprogram
573e94c567064705fa65267dd83946bf183197de
[ "MIT" ]
87
2020-05-09T08:56:55.000Z
2022-03-31T14:46:45.000Z
mlprogram/entrypoint/train.py
HiroakiMikami/NL2Prog
573e94c567064705fa65267dd83946bf183197de
[ "MIT" ]
3
2021-02-22T20:38:29.000Z
2021-11-11T18:48:44.000Z
import os import traceback from dataclasses import dataclass from typing import Any, Callable, List, Optional, Union import pytorch_pfn_extras as ppe import torch from pytorch_pfn_extras.training import extension, extensions from torch import nn from torch.utils.data import DataLoader from mlprogram import distribute...
37.599496
88
0.554231
1,469
14,927
5.397549
0.1484
0.018918
0.027242
0.018161
0.53752
0.479506
0.454156
0.436751
0.379493
0.359945
0
0.002602
0.356401
14,927
396
89
37.694444
0.822733
0.005158
0
0.486647
0
0
0.043048
0.004716
0
0
0
0
0
1
0.04451
false
0
0.038576
0.011869
0.139466
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f09b816cae5d16accf1cca62376da23fd995e52
3,381
py
Python
visualization.py
aditya-srikanth/Data-Mining-Assignment-3
7dc44d7ca8884680130db9b52a75e3036cf2f8a7
[ "MIT" ]
null
null
null
visualization.py
aditya-srikanth/Data-Mining-Assignment-3
7dc44d7ca8884680130db9b52a75e3036cf2f8a7
[ "MIT" ]
null
null
null
visualization.py
aditya-srikanth/Data-Mining-Assignment-3
7dc44d7ca8884680130db9b52a75e3036cf2f8a7
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import math import numpy as np class Visualization: """ This class contains methods for reducing the dimensions of the points to 2-D and visualization of the reduced points. Attributes ---------- OUTLIERS : list List of points marked as outlier...
34.85567
121
0.55102
405
3,381
4.51358
0.259259
0.060175
0.05744
0.036105
0.501094
0.410284
0.342451
0.272429
0.272429
0.272429
0
0.014072
0.348418
3,381
97
122
34.85567
0.815706
0.317658
0
0.2
0
0
0.018443
0
0
0
0
0
0
1
0.088889
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f0df6e28987fcaa913b236b22575fcae954bfe4
3,639
py
Python
robotidy/transformers/ext_ExtraIndentForKeywordArguments.py
josflorap/robotframework-tidy
9d4e1ccc6a50c415187468305235830f80f3373b
[ "Apache-2.0" ]
null
null
null
robotidy/transformers/ext_ExtraIndentForKeywordArguments.py
josflorap/robotframework-tidy
9d4e1ccc6a50c415187468305235830f80f3373b
[ "Apache-2.0" ]
null
null
null
robotidy/transformers/ext_ExtraIndentForKeywordArguments.py
josflorap/robotframework-tidy
9d4e1ccc6a50c415187468305235830f80f3373b
[ "Apache-2.0" ]
null
null
null
from robot.api.parsing import ModelTransformer, get_model, ModelVisitor, Token import os, sys keywordlist = [] other_keywords = [] used_keywords = [] class ext_ExtraIndentForKeywordArguments(ModelTransformer): def __init__(self): self.cont = 0 def visit_File(self, node): # Get keywords in py...
50.541667
140
0.569387
437
3,639
4.636156
0.242563
0.049358
0.019743
0.027641
0.441757
0.37463
0.245805
0.135242
0.076012
0.076012
0
0.009858
0.303105
3,639
71
141
51.253521
0.789038
0.141797
0
0.245283
0
0
0.031501
0
0
0
0
0
0
1
0.09434
false
0
0.037736
0
0.207547
0.113208
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f0e2ccc0b7fb78f69f72c37d56b7289930132ef
6,581
py
Python
Common/Strategies/TechIndicators/MacdStrategy.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
Common/Strategies/TechIndicators/MacdStrategy.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
Common/Strategies/TechIndicators/MacdStrategy.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
from typing import Tuple import pandas as pd import numpy as np import matplotlib.pyplot as plt from Common.Strategies.TechIndicators.AbstractTechStrategy import AbstractTechStrategy from Common.TechIndicators.MacdIndicator import MacdIndicator class MacdStrategy(AbstractTechStrategy): _macd_indicator: MacdIndica...
46.34507
124
0.621942
856
6,581
4.502336
0.146028
0.128179
0.158796
0.062273
0.573949
0.447846
0.375714
0.305656
0.281266
0.281266
0
0.01481
0.251026
6,581
141
125
46.673759
0.767093
0.018538
0
0.193548
0
0
0.019377
0
0
0
0
0
0
1
0.056452
false
0
0.048387
0.008065
0.169355
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f1305b235214a028b433be662b9539aa5ea50e7
7,572
py
Python
dayu_widgets/wizard.py
xiaonuoAndy/dayu_widgets
0a87e40b5b3b10e9f1f3f98c17a252c107118257
[ "MIT" ]
null
null
null
dayu_widgets/wizard.py
xiaonuoAndy/dayu_widgets
0a87e40b5b3b10e9f1f3f98c17a252c107118257
[ "MIT" ]
null
null
null
dayu_widgets/wizard.py
xiaonuoAndy/dayu_widgets
0a87e40b5b3b10e9f1f3f98c17a252c107118257
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################### # Author: Mu yanru # Date : 2018.5 # Email : muyanru345@163.com ################################################################### from collections import defaultdict import utils from qt import * from s...
34.108108
100
0.633386
876
7,572
5.221461
0.207763
0.035418
0.0446
0.019676
0.183865
0.081329
0.069961
0.049847
0.018365
0
0
0.006554
0.234284
7,572
221
101
34.262443
0.782339
0.029583
0
0.093567
0
0.005848
0.1267
0.006245
0
0
0
0
0
1
0.111111
false
0.017544
0.040936
0.023392
0.251462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f14ec3187ef5944e2d523b10e6eabf13148caae
897
py
Python
examples/TechChangeModel.py
timkittel/PyViability
63b628df47ab506e9317a908a63a49a556232137
[ "BSD-2-Clause" ]
null
null
null
examples/TechChangeModel.py
timkittel/PyViability
63b628df47ab506e9317a908a63a49a556232137
[ "BSD-2-Clause" ]
null
null
null
examples/TechChangeModel.py
timkittel/PyViability
63b628df47ab506e9317a908a63a49a556232137
[ "BSD-2-Clause" ]
null
null
null
from __future__ import division, print_function, generators import numpy as np pi = np.pi def techChange_rhs(uB_pB, t, rvar, pBmin, pE, delta, smax, sBmax): uB, pB = uB_pB if sBmax == 0.: p = pE else: if smax < sBmax * uB: p = pE + smax / uB else: p = s...
20.860465
68
0.528428
133
897
3.466165
0.308271
0.052061
0.095445
0.039046
0.416486
0.416486
0.416486
0.416486
0.416486
0.416486
0
0.013051
0.316611
897
42
69
21.357143
0.738989
0.040134
0
0.384615
0
0
0
0
0
0
0
0
0
1
0.115385
false
0
0.076923
0
0.307692
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
2f1545a93541c971b7ff89f3c71a62f913a542c9
2,502
py
Python
tests/test_heif.py
Cykooz/cykooz.heif
cfd60687406763503a57fe949bdf01fb9997cae8
[ "MIT" ]
5
2020-03-05T20:31:23.000Z
2021-11-24T00:22:18.000Z
tests/test_heif.py
Cykooz/cykooz.heif
cfd60687406763503a57fe949bdf01fb9997cae8
[ "MIT" ]
3
2021-01-14T15:23:04.000Z
2021-11-24T00:30:37.000Z
tests/test_heif.py
Cykooz/cykooz.heif
cfd60687406763503a57fe949bdf01fb9997cae8
[ "MIT" ]
1
2020-06-12T01:29:10.000Z
2020-06-12T01:29:10.000Z
# -*- coding: utf-8 -*- """ :Authors: cykooz :Date: 23.06.2019 """ from pathlib import Path import piexif import pytest from PIL import Image from cykooz.heif.errors import HeifError from cykooz.heif.image import RawHeifImage from cykooz.heif.pil import register_heif_opener @pytest.fixture(scope='session', autouse=...
24.529412
79
0.63709
355
2,502
4.315493
0.287324
0.082245
0.031332
0.041775
0.510444
0.456919
0.405352
0.362272
0.362272
0.313969
0
0.062984
0.225819
2,502
101
80
24.772277
0.72793
0.028777
0
0.378378
0
0
0.082197
0
0
0
0
0
0.324324
1
0.094595
false
0
0.094595
0.013514
0.202703
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2f15770186ad88ae65932854e1cbbe4f54f58e9d
3,960
py
Python
ambari-agent/src/main/python/ambari_agent/StatusCommandsExecutor.py
risdenk/ambari
3809bdc6d5fe367c2c3207812ee42856214db8de
[ "Apache-2.0" ]
null
null
null
ambari-agent/src/main/python/ambari_agent/StatusCommandsExecutor.py
risdenk/ambari
3809bdc6d5fe367c2c3207812ee42856214db8de
[ "Apache-2.0" ]
1
2018-10-22T17:50:00.000Z
2018-10-22T17:50:00.000Z
ambari-agent/src/main/python/ambari_agent/StatusCommandsExecutor.py
risdenk/ambari
3809bdc6d5fe367c2c3207812ee42856214db8de
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
41.684211
195
0.769192
479
3,960
6.256785
0.415449
0.047714
0.026693
0.024024
0.102436
0.058058
0.028695
0
0
0
0
0.002991
0.155808
3,960
94
196
42.12766
0.893509
0.330303
0
0.115385
0
0.019231
0.161782
0.044538
0
0
0
0
0
1
0.096154
false
0
0.153846
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
2f16819a3d5eb873ef8eef277cfd895042d5e5d1
5,630
py
Python
blender/addons/2.8/mifth_tools/mifth_tools_ui.py
feynmanliang/mifthtools
cf99bc5811215a8747c43d84895ba4fa806812b7
[ "BSD-3-Clause" ]
null
null
null
blender/addons/2.8/mifth_tools/mifth_tools_ui.py
feynmanliang/mifthtools
cf99bc5811215a8747c43d84895ba4fa806812b7
[ "BSD-3-Clause" ]
null
null
null
blender/addons/2.8/mifth_tools/mifth_tools_ui.py
feynmanliang/mifthtools
cf99bc5811215a8747c43d84895ba4fa806812b7
[ "BSD-3-Clause" ]
null
null
null
import bpy from bpy.props import * from bpy.types import Operator, AddonPreferences class MFT_PT_PanelPose(bpy.types.Panel): bl_label = "Bones" bl_space_type = 'VIEW_3D' bl_region_type = 'UI' bl_context = "posemode" bl_category = 'Mifth' # bl_options = {'DEFAULT_CLOSED'} def draw(self, co...
37.533333
89
0.675311
574
5,630
6.480836
0.250871
0.053763
0.063978
0.020161
0.365323
0.270161
0.228495
0.228495
0.206452
0.206452
0
0.001107
0.197513
5,630
149
90
37.785235
0.822266
0.049911
0
0.392857
0
0
0.27111
0.058603
0
0
0
0
0
1
0.044643
false
0
0.026786
0
0.339286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0