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
341ccffc9e7ed4b86b653144bd2deb78296a6032
8,025
py
Python
superpeer/LocalData.py
xBlue0/AlaKazaam
ffd84c8afcb3aca40eac45c4c98faa547822e0fb
[ "MIT" ]
5
2018-04-10T13:13:59.000Z
2019-05-12T17:07:37.000Z
superpeer/LocalData.py
marcorambaldi/AlaKazaam
ffd84c8afcb3aca40eac45c4c98faa547822e0fb
[ "MIT" ]
2
2018-04-14T13:04:27.000Z
2018-04-17T09:03:58.000Z
superpeer/LocalData.py
marcorambaldi/AlaKazaam
ffd84c8afcb3aca40eac45c4c98faa547822e0fb
[ "MIT" ]
1
2019-03-01T13:28:51.000Z
2019-03-01T13:28:51.000Z
#!/usr/bin/env python import re class LocalData: """ Data class containing data structures and methods to interact with them """ # ('ipv4', 'ipv6', 'port') super_friends = list() # {'pktid' : (ip, port)} received_packets = dict() # 'pktid' sent_supe_packet = str() # 'pktid' sent_menu_quer_packet = str()...
29.395604
114
0.662804
1,117
8,025
4.459266
0.083259
0.140534
0.098976
0.04216
0.696447
0.495081
0.361574
0.288898
0.219434
0.183297
0
0.01438
0.133458
8,025
272
115
29.503676
0.701898
0.153022
0
0.362162
0
0
0.000148
0
0
0
0
0
0
1
0.27027
false
0
0.005405
0.167568
0.540541
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
341d97beaea78e6d23a478af81f6df13714d58f6
951
py
Python
msc/__main__.py
sshh12/multi-sys-cli
3de18d0df24f3b1710b5cb49726c23b24f4b5858
[ "MIT" ]
null
null
null
msc/__main__.py
sshh12/multi-sys-cli
3de18d0df24f3b1710b5cb49726c23b24f4b5858
[ "MIT" ]
null
null
null
msc/__main__.py
sshh12/multi-sys-cli
3de18d0df24f3b1710b5cb49726c23b24f4b5858
[ "MIT" ]
null
null
null
from msc.args import parse_args, prompt_string_arg_if_none from msc.pool_cmds import pool_list, pool_create, pool_delete, pool_exec, pool_shell from msc.digitalocean import DigitalOceanPoolProvider def main(): providers = [DigitalOceanPoolProvider()] args = parse_args() if args.sub_cmd == "pool": ...
33.964286
84
0.649842
122
951
4.713115
0.213115
0.083478
0.095652
0.118261
0.354783
0.234783
0.234783
0.234783
0.234783
0.234783
0
0
0.247108
951
28
85
33.964286
0.803073
0
0
0.136364
0
0
0.067227
0
0
0
0
0
0
1
0.045455
false
0
0.136364
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
341e054992d30cc10f37c1880c1fd753fd2e6420
590
py
Python
vive_server/setup.py
MPC-Berkeley/vive_ros2
9b82beb56c64b85ab87b352c14f122f8fca14bee
[ "MIT" ]
1
2022-01-06T18:19:56.000Z
2022-01-06T18:19:56.000Z
vive_server/setup.py
GeckoRobotics/vive_ros2
9b82beb56c64b85ab87b352c14f122f8fca14bee
[ "MIT" ]
null
null
null
vive_server/setup.py
GeckoRobotics/vive_ros2
9b82beb56c64b85ab87b352c14f122f8fca14bee
[ "MIT" ]
2
2021-06-24T18:24:11.000Z
2021-08-28T20:02:20.000Z
import setuptools setuptools.setup( name="vive_ros2_server", version="0.0.1", author="Michael Equi", author_email="michaelequi@berkeley.edu", description="Package for running the pure python server", long_description="", long_description_content_type="text/markdown", url="https://github...
29.5
61
0.667797
66
590
5.818182
0.757576
0.041667
0
0
0
0
0
0
0
0
0
0.016807
0.19322
590
19
62
31.052632
0.789916
0
0
0
0
0
0.449153
0.040678
0
0
0
0
0
1
0
true
0
0.055556
0
0.055556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
3420a801dbe6606d54a136ed65823cdd2e9cecae
384
py
Python
Chapter07/algorithms_13.py
vabyte/Modern-Python-Standard-Library-Cookbook
4f53e3ab7b61aca1cca9343e7421e170280cd5b5
[ "MIT" ]
84
2018-08-09T09:30:03.000Z
2022-01-04T23:20:38.000Z
Chapter07/algorithms_13.py
jiro74/Modern-Python-Standard-Library-Cookbook
4f53e3ab7b61aca1cca9343e7421e170280cd5b5
[ "MIT" ]
1
2019-11-04T18:57:40.000Z
2020-09-07T08:52:25.000Z
Chapter07/algorithms_13.py
jiro74/Modern-Python-Standard-Library-Cookbook
4f53e3ab7b61aca1cca9343e7421e170280cd5b5
[ "MIT" ]
33
2018-09-26T11:05:55.000Z
2022-03-15T10:31:10.000Z
from contextlib import ExitStack import contextlib @contextlib.contextmanager def first(): print('First') yield @contextlib.contextmanager def second(): print('Second') yield for n in range(5): with ExitStack() as stack: stack.enter_context(first()) if n % 2 == 0: stac...
19.2
41
0.632813
45
384
5.355556
0.555556
0.19917
0.224066
0
0
0
0
0
0
0
0
0.010309
0.242188
384
19
42
20.210526
0.817869
0
0
0.25
0
0
0.054688
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0.1875
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
34213d4a49d584afc7dd7bc836c55645b4e2dc55
398
py
Python
CombinedLinearCongruentialGenerators/generate.py
SUT-Courses/SimulationMiniTool
56e050e887d2b2c7f24921300059a6d925dfd9dc
[ "MIT" ]
null
null
null
CombinedLinearCongruentialGenerators/generate.py
SUT-Courses/SimulationMiniTool
56e050e887d2b2c7f24921300059a6d925dfd9dc
[ "MIT" ]
null
null
null
CombinedLinearCongruentialGenerators/generate.py
SUT-Courses/SimulationMiniTool
56e050e887d2b2c7f24921300059a6d925dfd9dc
[ "MIT" ]
null
null
null
def combined_linear_cong(n=10000): r = [0.0] * n m1 = 2147483563 a1 = 40014 y1 = 1 m2 = 2147483399 a2 = 40692 y2 = 1 for i in range(n): y1 = a1 * y1 % m1 y2 = a2 * y2 % m2 x = (y1 - y2) % (m1 - 1) if x > 0: r[i] = (x / m1) else: ...
14.214286
34
0.414573
59
398
2.728814
0.474576
0.173913
0.223602
0
0
0
0
0
0
0
0
0.285714
0.454774
398
27
35
14.740741
0.456221
0
0
0
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.111111
0.055556
0
0
0
null
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
342261e60df9efc91277a7fb7c47cae5e098de83
18,997
py
Python
encoder_disk_generator.py
Hyvok/Inkscape-rotary-encoder-disk-generator
0c5cca22e75d865b820c3756323e173c54035556
[ "MIT" ]
28
2015-02-26T21:43:56.000Z
2021-12-13T11:26:33.000Z
encoder_disk_generator.py
Hyvok/Inkscape-rotary-encoder-disk-generator
0c5cca22e75d865b820c3756323e173c54035556
[ "MIT" ]
5
2019-11-14T13:32:06.000Z
2021-09-27T19:14:26.000Z
encoder_disk_generator.py
Hyvok/Inkscape-rotary-encoder-disk-generator
0c5cca22e75d865b820c3756323e173c54035556
[ "MIT" ]
4
2016-11-22T21:40:48.000Z
2020-08-18T19:34:56.000Z
#!/usr/bin/env python3 import inkex import math import string from lxml import etree from inkex.transforms import Transform # Function for calculating a point from the origin when you know the distance # and the angle def calculate_point(angle, distance): if (angle < 0 or angle > 360): return None els...
38.848671
79
0.554351
2,145
18,997
4.700699
0.107226
0.060002
0.032232
0.039671
0.596549
0.477636
0.382723
0.339482
0.308043
0.274026
0
0.013922
0.353424
18,997
488
80
38.928279
0.806969
0.07817
0
0.34026
0
0
0.088808
0.009384
0
0
0
0
0
1
0.044156
false
0.012987
0.012987
0
0.088312
0.002597
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3422a13073f2fbe5d59125ed9250844c05c25fa3
1,756
py
Python
fbadhelpers/helpers/initializers.py
jameslk/fbadhelpers
5d7e6e645b245a5df7a466ec73add66f9aafb9e9
[ "MIT" ]
1
2018-01-11T20:06:36.000Z
2018-01-11T20:06:36.000Z
fbadhelpers/helpers/initializers.py
jameslk/fbadhelpers
5d7e6e645b245a5df7a466ec73add66f9aafb9e9
[ "MIT" ]
null
null
null
fbadhelpers/helpers/initializers.py
jameslk/fbadhelpers
5d7e6e645b245a5df7a466ec73add66f9aafb9e9
[ "MIT" ]
null
null
null
from typing import Iterable, Mapping, Sequence, Callable from urllib.parse import quote from facebookads import FacebookAdsApi from facebookads.adobjects.ad import Ad from facebookads.adobjects.adaccount import AdAccount from facebookads.adobjects.adcreative import AdCreative from facebookads.adobjects.adset import Ad...
31.357143
101
0.730638
203
1,756
6.108374
0.295567
0.08871
0.062097
0.106452
0.427419
0.427419
0.427419
0.427419
0.427419
0.427419
0
0
0.196469
1,756
55
102
31.927273
0.878809
0.037016
0
0.521739
0
0
0.004739
0
0
0
0
0
0
1
0.065217
false
0
0.23913
0.065217
0.369565
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
342400da6b0f4b51a717d4f0399a8254357e5d4c
8,106
py
Python
api.py
Bociany/Moodai
b7c2a3f1febe067c85830849a1e1b7ca3e4efb48
[ "MIT" ]
null
null
null
api.py
Bociany/Moodai
b7c2a3f1febe067c85830849a1e1b7ca3e4efb48
[ "MIT" ]
null
null
null
api.py
Bociany/Moodai
b7c2a3f1febe067c85830849a1e1b7ca3e4efb48
[ "MIT" ]
1
2020-10-25T16:33:28.000Z
2020-10-25T16:33:28.000Z
from flask import Flask, Blueprint, request, session from flask_httpauth import HTTPTokenAuth from sqlalchemy import desc from auth import verify_token, generate_token, token_exists, hash_multiple, remove_token from database import * from models.user import User from models.mood import Mood from models.notes import No...
37.013699
257
0.723415
1,183
8,106
4.743872
0.171598
0.034212
0.045438
0.049893
0.469351
0.442267
0.408767
0.376515
0.297577
0.263364
0
0.003233
0.122255
8,106
218
258
37.183486
0.785524
0.084752
0
0.303226
1
0
0.123278
0
0
0
0
0.004587
0
1
0.090323
false
0.032258
0.109677
0.012903
0.316129
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
342451e25dffec100fb073381fd7a1aa1ac1aaf6
11,228
py
Python
osipkd/views/admin/m_unit.py
aagusti/o-sipkd
6c61fddb87fa6f4be18cac851bb44949019b8f3e
[ "MIT" ]
null
null
null
osipkd/views/admin/m_unit.py
aagusti/o-sipkd
6c61fddb87fa6f4be18cac851bb44949019b8f3e
[ "MIT" ]
null
null
null
osipkd/views/admin/m_unit.py
aagusti/o-sipkd
6c61fddb87fa6f4be18cac851bb44949019b8f3e
[ "MIT" ]
null
null
null
import os import uuid from osipkd.tools import row2dict, xls_reader from datetime import datetime from sqlalchemy import not_, func from sqlalchemy.sql.expression import and_ from ziggurat_foundations.models import groupfinder from pyramid.view import ( view_config, ) from pyramid.httpexceptions import ( HT...
39.535211
115
0.520217
1,194
11,228
4.793132
0.18258
0.028831
0.032151
0.027957
0.254761
0.178403
0.123537
0.096802
0.063254
0.063254
0
0.002803
0.364535
11,228
284
116
39.535211
0.799299
0.007927
0
0.22093
0
0
0.08378
0.008078
0
0
0
0
0
0
null
null
0.011628
0.062016
null
null
0.003876
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
34275cbd7c4a75b5049827255a7fa18f83a6f781
3,518
py
Python
day9-stream-processing/run.py
mg6/advent-of-code-2017
d7e60cfdfa3ea0cf9973afcb9ff371b46f23d169
[ "MIT" ]
null
null
null
day9-stream-processing/run.py
mg6/advent-of-code-2017
d7e60cfdfa3ea0cf9973afcb9ff371b46f23d169
[ "MIT" ]
null
null
null
day9-stream-processing/run.py
mg6/advent-of-code-2017
d7e60cfdfa3ea0cf9973afcb9ff371b46f23d169
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def parse_garbage(stream): stream = iter(stream) while True: try: c = next(stream) except StopIteration: return else: if c == '!': next(stream) elif c == '>': return else:...
30.327586
80
0.552302
419
3,518
4.424821
0.183771
0.225458
0.088997
0.124595
0.614887
0.569579
0.467638
0.437433
0.407228
0.381338
0
0.009919
0.197555
3,518
115
81
30.591304
0.64683
0.005969
0
0.241758
0
0
0.169908
0.049771
0
0
0
0
0.406593
1
0.054945
false
0.010989
0
0
0.120879
0.021978
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
2
3428512d1b7e127cd70a34943dfe9bec7323f84b
908
py
Python
tenc/core.py
nanogiants/tenc
fb9632c5a60d3d5342e5d00a6c2c28d53fbdd6ea
[ "MIT" ]
null
null
null
tenc/core.py
nanogiants/tenc
fb9632c5a60d3d5342e5d00a6c2c28d53fbdd6ea
[ "MIT" ]
null
null
null
tenc/core.py
nanogiants/tenc
fb9632c5a60d3d5342e5d00a6c2c28d53fbdd6ea
[ "MIT" ]
null
null
null
import sys from Crypto.Cipher import AES from Crypto.Util.Padding import pad, unpad def encrypt(data, password): """Enrcrypt data and return content in binary""" try: cipher = AES.new(password.encode(), AES.MODE_CBC) cypher_text_bytes = cipher.encrypt(pad(data.encode(), AES.block_size)) ...
29.290323
81
0.655286
122
908
4.795082
0.42623
0.046154
0.044444
0.068376
0.297436
0.297436
0.297436
0.297436
0.174359
0
0
0.009887
0.220264
908
30
82
30.266667
0.816384
0.101322
0
0.4
0
0
0.052174
0
0
0
0
0
0
1
0.1
false
0.2
0.15
0
0.35
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
1
0
0
0
0
0
1
342bf82a9483e64b740b3a00daa8f3a88e20797a
1,812
py
Python
src/stock/lib/fundamentals/company_info.py
callim105/alphascan
a8eea45b3560a369b186c9971b01351a7a900d13
[ "MIT" ]
1
2021-12-03T01:30:12.000Z
2021-12-03T01:30:12.000Z
src/stock/lib/fundamentals/company_info.py
callim105/alphascan
a8eea45b3560a369b186c9971b01351a7a900d13
[ "MIT" ]
null
null
null
src/stock/lib/fundamentals/company_info.py
callim105/alphascan
a8eea45b3560a369b186c9971b01351a7a900d13
[ "MIT" ]
null
null
null
import requests import pandas as pd from util.api_util import AV_API_KEY def query_av(function, symbol, datatype): url = f"https://www.alphavantage.co/query?function={function}&symbol={symbol}&apikey={AV_API_KEY}" r = requests.get(url) req = r.json() symbol = req["symbol"] data = req[datatype] ...
26.26087
102
0.689845
243
1,812
4.983539
0.230453
0.089182
0.086705
0.069364
0.689513
0.672998
0.6218
0.599505
0.535095
0.305533
0
0.002736
0.193157
1,812
69
103
26.26087
0.825581
0.145143
0
0.314286
0
0.057143
0.240576
0
0
0
0
0
0
1
0.228571
false
0
0.085714
0
0.542857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
342c2f2a3ec8444cfd113ad50ed2e68ddd742bbc
502
py
Python
FinalGame.py
KRHS-GameProgramming-2016/Memefinity
85dbf98ecebcf2cb7622a6d40a6b170d6309bf29
[ "MIT" ]
null
null
null
FinalGame.py
KRHS-GameProgramming-2016/Memefinity
85dbf98ecebcf2cb7622a6d40a6b170d6309bf29
[ "MIT" ]
6
2017-01-19T19:00:11.000Z
2017-06-05T15:01:36.000Z
FinalGame.py
KRHS-GameProgramming-2016/Memefinity
85dbf98ecebcf2cb7622a6d40a6b170d6309bf29
[ "MIT" ]
null
null
null
import pygame, sys, math, random from Meme import * from Bossmeme import * from Wall import * from Level import * from Player import * from Memefinity import * pygame.init() #Hello b0ss, this file shall be the final game, or a script, kinda, whatever. #Reading the file top to bottom should be the game from start to fi...
20.08
77
0.752988
82
502
4.609756
0.658537
0.132275
0
0
0
0
0
0
0
0
0
0.007371
0.189243
502
24
78
20.916667
0.921376
0.605578
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.875
0
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
342d26dcc76f61867565c30c84a06b8e86e0eed4
10,876
py
Python
sdk/python/pulumi_aws/guardduty/outputs.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
260
2018-06-18T14:57:00.000Z
2022-03-29T11:41:03.000Z
sdk/python/pulumi_aws/guardduty/outputs.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
1,154
2018-06-19T20:38:20.000Z
2022-03-31T19:48:16.000Z
sdk/python/pulumi_aws/guardduty/outputs.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
115
2018-06-28T03:20:27.000Z
2022-03-29T11:41:06.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
39.838828
262
0.655756
1,309
10,876
5.237586
0.13369
0.015753
0.025671
0.033256
0.678821
0.65213
0.644545
0.589119
0.566365
0.54507
0
0.014978
0.238783
10,876
272
263
39.985294
0.813142
0.289629
0
0.465116
1
0.023256
0.191513
0.078029
0
0
0
0
0
1
0.174419
false
0
0.034884
0.005814
0.360465
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
342d58d1ad9286b4fe5d8adc6492bb006a2ce91d
2,943
py
Python
src/ipaparser/_code/matcher.py
danmysak/ipa-parser
bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf
[ "MIT" ]
null
null
null
src/ipaparser/_code/matcher.py
danmysak/ipa-parser
bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf
[ "MIT" ]
null
null
null
src/ipaparser/_code/matcher.py
danmysak/ipa-parser
bb4f5fc1a8f95ef87793d2ffd79430a9a0ffbeaf
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Any, Callable, Generic, Iterable, Optional, TypeVar from .strings import StringPosition, StringPositions, to_string __all__ = [ 'Match', 'Matcher', 'MatchOption', ] T = TypeVar('T') @dataclass(frozen=True) class MatchOption(Generic[T]): data: T ...
37.730769
120
0.649677
334
2,943
5.51497
0.224551
0.032573
0.043431
0.026059
0.178067
0.065147
0.065147
0.065147
0.065147
0.065147
0
0.002705
0.246347
2,943
77
121
38.220779
0.827773
0
0
0.095238
0
0
0.008155
0
0
0
0
0
0.015873
1
0.079365
false
0
0.047619
0.015873
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
342d9ca5a0ea976bd56c381378be9fbabc55becb
4,311
py
Python
audible_processor/monitor/file_processor.py
killermonk/audible_processor
7738ba927818d15b702ff49b2fdf89433e477021
[ "MIT" ]
1
2022-02-18T13:23:39.000Z
2022-02-18T13:23:39.000Z
audible_processor/monitor/file_processor.py
killermonk/audible_processor
7738ba927818d15b702ff49b2fdf89433e477021
[ "MIT" ]
null
null
null
audible_processor/monitor/file_processor.py
killermonk/audible_processor
7738ba927818d15b702ff49b2fdf89433e477021
[ "MIT" ]
null
null
null
import configparser import logging import multiprocessing as mp import os.path from contextlib import contextmanager from datetime import datetime from enum import Enum from parser.parser import Parser, ParserConfig from queue import Empty from typing import Any, Dict from monitor.config import DaemonConfig STATE_FIL...
33.679688
105
0.635583
523
4,311
5.059273
0.277247
0.021164
0.022676
0.024943
0.088435
0.079365
0
0
0
0
0
0.002488
0.254233
4,311
127
106
33.944882
0.820529
0.034795
0
0.1
0
0
0.043563
0.005354
0
0
0
0
0
1
0.12
false
0
0.11
0.02
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
342f32ed64550a8da4a8ef5f7800093077e54557
1,569
py
Python
tests/lib/scaling_test.py
Crossing-Minds/xminds-python
8ee345e3a9ec41016c6a866e1af5eb13f7ff4f1f
[ "MIT" ]
4
2020-10-27T00:11:52.000Z
2022-01-17T21:15:25.000Z
tests/lib/scaling_test.py
Crossing-Minds/xminds-python
8ee345e3a9ec41016c6a866e1af5eb13f7ff4f1f
[ "MIT" ]
null
null
null
tests/lib/scaling_test.py
Crossing-Minds/xminds-python
8ee345e3a9ec41016c6a866e1af5eb13f7ff4f1f
[ "MIT" ]
null
null
null
import unittest import numpy from xminds.ds.scaling import linearscaling class LinearToolsTestCase(unittest.TestCase): def test_linearscaling_scalar(self): assert numpy.isclose(linearscaling(0, 0, 10, 0, 1), 0) assert numpy.isclose(linearscaling(1, 0, 10, 0, 1), 10) assert numpy.isclose(...
41.289474
83
0.555131
213
1,569
4.042254
0.159624
0.166086
0.188153
0.324042
0.595819
0.557491
0.518002
0.469222
0.469222
0.29849
0
0.111309
0.284257
1,569
37
84
42.405405
0.655387
0
0
0.129032
0
0
0.004461
0
0
0
0
0
0.419355
1
0.096774
false
0
0.096774
0
0.225806
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
34307682e8bac87302038a9a06f371acc7dd9b50
12,912
py
Python
pcwg/gui/date_pick.py
lcameron05/PCWG
8ae8ea7d644aa5bec0d1651101d83d8f17994f4b
[ "MIT" ]
14
2015-01-15T12:40:51.000Z
2019-06-14T16:10:08.000Z
pcwg/gui/date_pick.py
lzhiwen3090/PCWG
795e3ea267c7b87187dce04721c91a9d9c7999a7
[ "MIT" ]
121
2015-01-06T11:31:25.000Z
2018-05-29T21:13:23.000Z
pcwg/gui/date_pick.py
lzhiwen3090/PCWG
795e3ea267c7b87187dce04721c91a9d9c7999a7
[ "MIT" ]
26
2015-01-15T12:41:09.000Z
2019-04-11T14:45:32.000Z
#based on code by : Camilo Olarte|colarte@telesat.com.co|Sept.2003 import sys import string import calendar import Tkinter as tk import time import datetime from dateutil.parser import parse from dateutil.relativedelta import relativedelta from tk_simple_dialog import Dialog from ..core.status import Status class ...
34.803235
136
0.563197
1,589
12,912
4.378855
0.135305
0.048865
0.066686
0.024432
0.504886
0.44553
0.365479
0.28169
0.212992
0.172895
0
0.017349
0.33039
12,912
371
137
34.803235
0.787416
0.007125
0
0.258687
0
0
0.027071
0
0
0
0
0
0
1
0.088803
false
0
0.03861
0.003861
0.158301
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
34317faacca728036cc0c949a6524177d35c7254
3,929
py
Python
tests/test_blog.py
octopusinvitro/flask-tutorial
8a8173cdfb0f854a1462d5bc3f251e6552a531a6
[ "MIT" ]
null
null
null
tests/test_blog.py
octopusinvitro/flask-tutorial
8a8173cdfb0f854a1462d5bc3f251e6552a531a6
[ "MIT" ]
null
null
null
tests/test_blog.py
octopusinvitro/flask-tutorial
8a8173cdfb0f854a1462d5bc3f251e6552a531a6
[ "MIT" ]
null
null
null
import pytest from flaskr import db def test_index_shows_auth_links_when_not_logged(client, app): response = client.get('/') assert b'Log In' in response.data assert b'Register' in response.data def test_index_shows_content_when_logged(client, auth): auth.login() response = client.get('/') a...
28.678832
94
0.683125
552
3,929
4.646739
0.163043
0.049123
0.076413
0.098635
0.728265
0.649513
0.568811
0.455361
0.430799
0.357895
0
0.013154
0.167982
3,929
136
95
28.889706
0.77149
0
0
0.474227
0
0
0.139221
0
0
0
0
0
0.268041
1
0.195876
false
0
0.020619
0
0.216495
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3431d10ba196cb41783bcea2077798fd2c896622
1,946
py
Python
hadoop/openpayments/build_test_data.py
shubags/MSAN694
9b2594f7209d9d1d7792fc596ea46d0f90f27525
[ "Apache-2.0" ]
null
null
null
hadoop/openpayments/build_test_data.py
shubags/MSAN694
9b2594f7209d9d1d7792fc596ea46d0f90f27525
[ "Apache-2.0" ]
null
null
null
hadoop/openpayments/build_test_data.py
shubags/MSAN694
9b2594f7209d9d1d7792fc596ea46d0f90f27525
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # A simple script to save NUM lines from the huge dataset into a smaller file for simple tests # # Usage: build_test_data.py [outfile] from __future__ import print_function import argparse import random import sys __author__ = 'marco' FILE_NAME = 'data/OPPR_ALL_DTL_GNRL_12192014.csv' NUM = 10...
32.433333
94
0.573484
231
1,946
4.658009
0.47619
0.022305
0.047398
0.031599
0.048327
0.048327
0.048327
0
0
0
0
0.022104
0.325797
1,946
59
95
32.983051
0.798018
0.097636
0
0.047619
0
0
0.164
0.02
0
0
0
0
0
1
0.071429
false
0
0.095238
0.02381
0.214286
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
34372621e9f6d0b9c6557e14b649382d8ceb0b47
335
py
Python
tests/test_dummy.py
LucaMarconato/mirna-explorer
6447cdc7d1e9d6dbf899c74c564bf9a45b19e36f
[ "MIT" ]
null
null
null
tests/test_dummy.py
LucaMarconato/mirna-explorer
6447cdc7d1e9d6dbf899c74c564bf9a45b19e36f
[ "MIT" ]
4
2018-10-16T05:32:38.000Z
2018-10-31T21:32:08.000Z
tests/test_dummy.py
LucaMarconato/mirna_explorer
6447cdc7d1e9d6dbf899c74c564bf9a45b19e36f
[ "MIT" ]
null
null
null
import unittest class DummyTestCase(unittest.TestCase): def setUp(self): self.AN_ITEM = "item" def test_givenAnEmpyArray_whenAnItemIsAdded_thenArraySizeIncreases(self): array = [] array_size_expected = 1 array.append(self.AN_ITEM) self.assertEquals(array_size_expecte...
22.333333
77
0.698507
36
335
6.25
0.583333
0.053333
0.088889
0
0
0
0
0
0
0
0
0.003817
0.21791
335
14
78
23.928571
0.854962
0
0
0
0
0
0.01194
0
0
0
0
0
0.111111
1
0.222222
false
0
0.111111
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
1
0
0
0
0
0
0
0
1
3437523667b4fd7c19e4eec18e650541f0fb1f99
528
py
Python
helpers.py
chame1eon/binaryninja-frida
6292320d1854abaa9a1f2a59234c49faebf86416
[ "MIT" ]
46
2017-10-10T20:28:57.000Z
2022-02-28T13:45:48.000Z
helpers.py
chame1eon/binaryninja-frida
6292320d1854abaa9a1f2a59234c49faebf86416
[ "MIT" ]
5
2019-07-04T20:17:38.000Z
2020-06-01T17:53:58.000Z
helpers.py
chame1eon/binaryninja-frida
6292320d1854abaa9a1f2a59234c49faebf86416
[ "MIT" ]
7
2018-06-04T14:00:24.000Z
2021-11-15T04:42:25.000Z
''' Some python helper functions. Tested on Python 3.8 ''' # https://learning.oreilly.com/library/view/effective-python-90/9780134854717/ch01.xhtml#ch1 def to_str(bytes_or_str): if isinstance(bytes_or_str, bytes): value = bytes_or_str.decode('utf-8') else: value = bytes_or_str return value ...
26.4
92
0.6875
80
528
4.3125
0.4375
0.162319
0.231884
0.173913
0.44058
0.44058
0.44058
0.44058
0.255072
0.255072
0
0.052381
0.204545
528
19
93
27.789474
0.769048
0.331439
0
0.5
0
0
0.02924
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3437ac01cfd94d44391f51d8c11604eb9e8f9c2a
893
py
Python
cpc/asm/DirectMemoryReference.py
U-Ar/Cpresto
f723458fb237c9e3e8bc8a6afdf7c81858a65363
[ "BSD-3-Clause" ]
1
2021-05-09T07:10:19.000Z
2021-05-09T07:10:19.000Z
cpc/asm/DirectMemoryReference.py
U-Ar/Cpresto
f723458fb237c9e3e8bc8a6afdf7c81858a65363
[ "BSD-3-Clause" ]
null
null
null
cpc/asm/DirectMemoryReference.py
U-Ar/Cpresto
f723458fb237c9e3e8bc8a6afdf7c81858a65363
[ "BSD-3-Clause" ]
null
null
null
from .MemoryReference import MemoryReference from .SymbolTable import SymbolTable class DirectMemoryReference(MemoryReference): def __init__(self,val): self._value = val def value(self): return self._value def collect_statistics(self,stats): self._value.collect_statistics(stats) ...
26.264706
67
0.653975
100
893
5.64
0.33
0.095745
0.079787
0
0
0
0
0
0
0
0
0.001488
0.24748
893
33
68
27.060606
0.837798
0
0
0
0
0
0.06271
0.06047
0
0
0
0
0
1
0.375
false
0
0.083333
0.208333
0.791667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
343a85de1d3e11277cfecd3f880ab9548f9d2217
635
py
Python
Others/hard/Dijkstra.py
GeorgianBadita/algorithmic-problems
6b260050b7a1768b5e47a1d7d4ef7138a52db210
[ "MIT" ]
1
2021-07-05T16:32:14.000Z
2021-07-05T16:32:14.000Z
Others/hard/Dijkstra.py
GeorgianBadita/algorithmic-problems
6b260050b7a1768b5e47a1d7d4ef7138a52db210
[ "MIT" ]
null
null
null
Others/hard/Dijkstra.py
GeorgianBadita/algorithmic-problems
6b260050b7a1768b5e47a1d7d4ef7138a52db210
[ "MIT" ]
1
2021-05-14T15:40:09.000Z
2021-05-14T15:40:09.000Z
import heapq def dijkstrasAlgorithm(start, edges): dist = [float('inf') for _ in range(len(edges))] dist[start] = 0 queue = [(dist[start], start)] while queue: current_best_dist, current_node = heapq.heappop(queue) if current_best_dist != dist[current_node]: continue ...
27.608696
62
0.587402
85
635
4.235294
0.329412
0.152778
0.166667
0.1
0.161111
0.161111
0.161111
0
0
0
0
0.008869
0.289764
635
22
63
28.863636
0.789357
0
0
0
0
0
0.009449
0
0
0
0
0
0
1
0.066667
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
343ac4986234c278328262f80d5ff0144e2423b0
213
py
Python
spinta/ufuncs/changebase/components.py
atviriduomenys/spinta
77a10e201f8cdc63143fce7996fd0898acb1ff58
[ "MIT" ]
2
2019-03-14T06:41:14.000Z
2019-03-26T11:48:14.000Z
spinta/ufuncs/changebase/components.py
sirex/spinta
77a10e201f8cdc63143fce7996fd0898acb1ff58
[ "MIT" ]
44
2019-04-05T15:52:45.000Z
2022-03-30T07:41:33.000Z
spinta/ufuncs/changebase/components.py
sirex/spinta
77a10e201f8cdc63143fce7996fd0898acb1ff58
[ "MIT" ]
1
2019-04-01T09:54:27.000Z
2019-04-01T09:54:27.000Z
from __future__ import annotations from spinta.components import Model from spinta.components import Property from spinta.core.ufuncs import Env class ChangeModelBase(Env): model: Model prop: Property
17.75
38
0.798122
27
213
6.148148
0.518519
0.180723
0.240964
0.313253
0
0
0
0
0
0
0
0
0.159624
213
11
39
19.363636
0.927374
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.571429
0
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
343c95622efc40d3730894f1a187c4d8b7598c6c
11,723
py
Python
IRIS_data_download/IRIS_download_support/obspy/signal/tests/test_filter.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-03-05T01:03:01.000Z
2020-12-17T05:04:07.000Z
IRIS_data_download/IRIS_download_support/obspy/signal/tests/test_filter.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
4
2021-03-31T19:25:55.000Z
2021-12-13T20:32:46.000Z
IRIS_data_download/IRIS_download_support/obspy/signal/tests/test_filter.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-09-08T19:33:40.000Z
2021-04-05T09:47:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ The Filter test suite. """ from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins import * # NOQA import gzip import os import unittest import warnings import numpy as np import scipy.signal a...
40.285223
79
0.579459
1,508
11,723
4.42374
0.161141
0.028332
0.022485
0.029381
0.747414
0.705741
0.6921
0.6921
0.663019
0.663019
0
0.040707
0.333618
11,723
290
80
40.424138
0.813236
0.3047
0
0.528302
0
0
0.051731
0.024747
0
0
0
0
0.08805
1
0.069182
false
0.176101
0.062893
0.006289
0.144654
0.006289
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
343ca14a3ff776c2e2c14b42414980219bd43f45
2,421
py
Python
random_greetings_test.py
joaodartora/random-greetings
6a037497df1beb94202303fba8a1cc601fb02e69
[ "MIT" ]
5
2021-01-06T18:45:35.000Z
2022-01-05T19:38:41.000Z
random_greetings_test.py
joaodartora/random-greetings
6a037497df1beb94202303fba8a1cc601fb02e69
[ "MIT" ]
3
2021-02-25T00:05:55.000Z
2021-02-25T00:24:44.000Z
random_greetings_test.py
joaodartora/random-greetings
6a037497df1beb94202303fba8a1cc601fb02e69
[ "MIT" ]
null
null
null
import unittest import random_greetings class RandomGreetings(unittest.TestCase): # abrir_csv def test_abrir_csv_com_sucesso_validando_numero_linhas(self): arquivo_csv = random_greetings.abrir_csv("test/lista_correta.csv") numero_linhas = sum(1 for linha in arquivo_csv) self.assert...
45.679245
152
0.768278
313
2,421
5.485623
0.220447
0.122306
0.077461
0.058241
0.651718
0.636575
0.602796
0.602796
0.602796
0.404776
0
0.010721
0.152416
2,421
52
153
46.557692
0.826023
0.026435
0
0.25
0
0
0.121173
0.043367
0
0
0
0
0.277778
1
0.277778
false
0
0.055556
0
0.361111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
343f19c9ce6d15621044a8ba4f49367413bf9126
762
py
Python
neo_finrl/ccxt/preprocess_ccxt.py
chandra168/NeoFinRL
c2b9da5918ac2905bc31c42f5e17a45159afd47f
[ "MIT" ]
null
null
null
neo_finrl/ccxt/preprocess_ccxt.py
chandra168/NeoFinRL
c2b9da5918ac2905bc31c42f5e17a45159afd47f
[ "MIT" ]
null
null
null
neo_finrl/ccxt/preprocess_ccxt.py
chandra168/NeoFinRL
c2b9da5918ac2905bc31c42f5e17a45159afd47f
[ "MIT" ]
null
null
null
from finrl.config import config from finrl.preprocessing.preprocessors import FeatureEngineer import pandas as pd import numpy as np def preprocess_btc(df): df = df.rename(columns={'time':'date'}) df.insert(loc=1, column='tic',value='BTC/USDT') df = df[['date','tic','open','high','low','close','volume']] ...
33.130435
79
0.612861
90
762
5.044444
0.633333
0.026432
0
0
0
0
0
0
0
0
0
0.010772
0.269029
762
22
80
34.636364
0.804309
0
0
0
0
0
0.062992
0
0
0
0
0
0
1
0.055556
false
0
0.222222
0
0.333333
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
343f4428b931645496c3bb608e0d5b0d226d8b52
86
py
Python
ForLoop.py
aytona/PythonIntro
a370f532dae6fb17fbcb8c70d2439358f2e3fe7d
[ "MIT" ]
null
null
null
ForLoop.py
aytona/PythonIntro
a370f532dae6fb17fbcb8c70d2439358f2e3fe7d
[ "MIT" ]
null
null
null
ForLoop.py
aytona/PythonIntro
a370f532dae6fb17fbcb8c70d2439358f2e3fe7d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 fh = open('lines.txt') for line in fh.readlines(): print(line)
17.2
27
0.651163
14
86
4
0.857143
0
0
0
0
0
0
0
0
0
0
0.013699
0.151163
86
5
28
17.2
0.753425
0.197674
0
0
0
0
0.130435
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
344044da2a53c80838fd73ef0645f11d64dbe6c3
1,807
py
Python
tests/session/drivers/testsessioncookie.py
LowieHuyghe/edmunds-python
236d087746cb8802a8854b2706b8d3ff009e9209
[ "Apache-2.0" ]
4
2017-09-07T13:39:50.000Z
2018-05-31T16:14:50.000Z
tests/session/drivers/testsessioncookie.py
LowieHuyghe/edmunds-python
236d087746cb8802a8854b2706b8d3ff009e9209
[ "Apache-2.0" ]
103
2017-03-19T15:58:21.000Z
2018-07-11T20:36:17.000Z
tests/session/drivers/testsessioncookie.py
LowieHuyghe/edmunds-python
236d087746cb8802a8854b2706b8d3ff009e9209
[ "Apache-2.0" ]
2
2017-10-14T15:20:11.000Z
2018-04-20T09:55:44.000Z
from tests.testcase import TestCase from edmunds.globals import session from flask.sessions import SecureCookieSession from werkzeug.local import LocalProxy class TestSessionCookie(TestCase): """ Test the SessionCookie """ def test_session_cookie(self): """ Test the file """ ...
28.234375
86
0.524073
179
1,807
5.106145
0.335196
0.109409
0.04814
0.04267
0.196937
0.140044
0.140044
0.083151
0
0
0
0.006944
0.362479
1,807
63
87
28.68254
0.786458
0.040952
0
0.15
0
0
0.178001
0.021881
0
0
0
0
0.25
1
0.025
false
0
0.125
0
0.175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
344045b6f807beeee5b6164c6e47ca93c4b6f0be
837
py
Python
r2cloud/auth.py
Lukas0025/r2cloud-python-sdk
22539b7cff4d7e09b5cc1291add677a9ebacf6da
[ "Apache-2.0" ]
null
null
null
r2cloud/auth.py
Lukas0025/r2cloud-python-sdk
22539b7cff4d7e09b5cc1291add677a9ebacf6da
[ "Apache-2.0" ]
null
null
null
r2cloud/auth.py
Lukas0025/r2cloud-python-sdk
22539b7cff4d7e09b5cc1291add677a9ebacf6da
[ "Apache-2.0" ]
null
null
null
#!/bin/env python ## tle file for r2cloud SDK # @author Lukáš Plevač <lukasplevac@gmail.com> # @date 9.9.2020 import time class auth: ## init function # @param object self - instance of class # @param dict auth_dict - dict of auth def __init__(self, auth_dict): sel...
28.862069
70
0.602151
106
837
4.584906
0.45283
0.082305
0.053498
0.078189
0.098765
0
0
0
0
0
0
0.015177
0.291517
837
29
71
28.862069
0.804384
0.409797
0
0
0
0
0.096234
0
0
0
0
0
0
1
0.25
false
0
0.083333
0.166667
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
344249726263f6cdedfbf9989e61be0b224dbb96
1,097
py
Python
pymatflow/scripts/xyz-build-supercell.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
6
2020-03-06T16:13:08.000Z
2022-03-09T07:53:34.000Z
pymatflow/scripts/xyz-build-supercell.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-10-02T02:23:08.000Z
2021-11-08T13:29:37.000Z
pymatflow/scripts/xyz-build-supercell.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-07-10T16:28:14.000Z
2021-07-10T16:28:14.000Z
#!/usr/bin/env python # _*_ coding: utf-8 _*_ import argparse from pymatflow.base.xyz import base_xyz from pymatflow.structure.crystal import crystal """ usage: xyz-build-supercell.py -i input.xyz -o output.xyz -n n1 n2 n3 n1, n2, n3 are the three repeated number in the three direct of three ...
28.128205
83
0.646308
145
1,097
4.675862
0.406897
0.051622
0.075221
0.047198
0.070796
0
0
0
0
0
0
0.008178
0.21969
1,097
38
84
28.868421
0.783879
0.038286
0
0
0
0
0.135231
0
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
344597918733e3cbaa91a11a58a4ce26bab24486
179
py
Python
tests/conftest.py
bendavies99/LedFx
d2b5bf3412fecb67c4e2858f83caea402a29d589
[ "MIT" ]
17
2018-08-31T05:51:09.000Z
2022-02-12T15:41:33.000Z
tests/conftest.py
simon-wh/LedFx
393af53726a7ccaa11331a0e0bccce3f5289ed15
[ "MIT" ]
null
null
null
tests/conftest.py
simon-wh/LedFx
393af53726a7ccaa11331a0e0bccce3f5289ed15
[ "MIT" ]
5
2019-07-15T22:12:45.000Z
2022-02-05T10:50:44.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ https://pytest.org/latest/plugins.html """ from __future__ import print_function, absolute_import, division # import pytest
19.888889
64
0.698324
23
179
5.173913
0.869565
0
0
0
0
0
0
0
0
0
0
0.006452
0.134078
179
8
65
22.375
0.76129
0.530726
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
1
0
6
34459c00bf15a915c60f32d842e7ed2f88e46044
288
py
Python
Depth Map from Stereo Images/depth_map_from_stereo_images.py
boazde/balloon-shooter
6478f046701b3c804345c4eeb864e82cb1ccdc2b
[ "Apache-2.0" ]
null
null
null
Depth Map from Stereo Images/depth_map_from_stereo_images.py
boazde/balloon-shooter
6478f046701b3c804345c4eeb864e82cb1ccdc2b
[ "Apache-2.0" ]
null
null
null
Depth Map from Stereo Images/depth_map_from_stereo_images.py
boazde/balloon-shooter
6478f046701b3c804345c4eeb864e82cb1ccdc2b
[ "Apache-2.0" ]
1
2018-08-05T09:01:32.000Z
2018-08-05T09:01:32.000Z
import numpy as np import cv2 as cv from matplotlib import pyplot as plt imgL = cv.imread('tsukuba_l.png', 0) imgR = cv.imread('tsukuba_r.png', 0) stereo = cv.StereoBM_create(numDisparities=16, blockSize=15) disparity = stereo.compute(imgL, imgR) plt.imshow(disparity, 'gray') plt.show()
28.8
60
0.756944
47
288
4.574468
0.638298
0.074419
0.139535
0
0
0
0
0
0
0
0
0.027451
0.114583
288
9
61
32
0.815686
0
0
0
0
0
0.104167
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
344a6c57396ca61d68d37dfcbcf6e3f06084c514
18,268
py
Python
Ui_Menu.py
atticus-lv/Little-function
adeefedc910fd937f39f2b8bb8e2df9920ef8c2b
[ "BSD-3-Clause" ]
4
2020-07-01T14:04:07.000Z
2020-07-14T15:07:40.000Z
Ui_Menu.py
atticus-lv/Little-function
adeefedc910fd937f39f2b8bb8e2df9920ef8c2b
[ "BSD-3-Clause" ]
null
null
null
Ui_Menu.py
atticus-lv/Little-function
adeefedc910fd937f39f2b8bb8e2df9920ef8c2b
[ "BSD-3-Clause" ]
1
2020-12-11T07:46:15.000Z
2020-12-11T07:46:15.000Z
#-*- coding =utf-8 -*- import bpy from bpy.props import * from bpy.types import Menu,Panel,AddonPreferences from .Ops_Light import getlight # shift a menu def add_cam_menu(self, context): # add menu if context.mode == 'OBJECT': self.layout.operator("object.add_view_camera",icon='VIEW_CAMERA',text = "A...
33.580882
120
0.625137
2,395
18,268
4.607516
0.133194
0.045945
0.033711
0.036701
0.569733
0.476846
0.421658
0.331128
0.283371
0.228908
0
0.007702
0.225257
18,268
543
121
33.642726
0.771921
0.066017
0
0.423181
0
0.002695
0.195614
0.026223
0
0
0
0
0
1
0.06469
false
0.005391
0.010782
0.005391
0.12938
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
344bf5eb081c017555d5742dacc0a86867177bca
391
py
Python
fields/image-proc/raw/raw-1-drawImage.py
animatedb/codeplayfield
3ce164d9402581dcc18555743945c4ea57f3be48
[ "MIT" ]
null
null
null
fields/image-proc/raw/raw-1-drawImage.py
animatedb/codeplayfield
3ce164d9402581dcc18555743945c4ea57f3be48
[ "MIT" ]
null
null
null
fields/image-proc/raw/raw-1-drawImage.py
animatedb/codeplayfield
3ce164d9402581dcc18555743945c4ea57f3be48
[ "MIT" ]
null
null
null
# Load a library that allows drawing and images. import cv2 # Save image in set directory # Read RGB image # download image from cleanpng.com img = cv2.imread('1-pets.jpg') # Output img with window name as 'image' cv2.imshow('image', img) # Maintain output window util user presses a key cv2.waitKey(0) ...
20.578947
49
0.713555
58
391
4.810345
0.775862
0
0
0
0
0
0
0
0
0
0
0.022581
0.207161
391
18
50
21.722222
0.877419
0.631714
0
0
0
0
0.112782
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3450537bbf39749b02ea29c68a2890f5f1285284
2,438
py
Python
peepo/tests/network_modification_test.py
hayoc/peepo_prototype
57b4a42fd6b769cbd17a3449a49a013fc5d75455
[ "MIT" ]
2
2019-03-04T21:12:21.000Z
2021-03-30T00:35:50.000Z
peepo/tests/network_modification_test.py
hayoc/peepo
b15fd18d0f618e1e24eadc97c72fde62039ddafb
[ "MIT" ]
null
null
null
peepo/tests/network_modification_test.py
hayoc/peepo
b15fd18d0f618e1e24eadc97c72fde62039ddafb
[ "MIT" ]
null
null
null
from pgmpy.factors.discrete import TabularCPD from pgmpy.inference import VariableElimination from pgmpy.models import BayesianModel """ CREATE NEW MODEL THEN INFER AFTER WE WILL MODIFY THE MODEL AND INFER AGAIN I'm simply creating the same network used here in this tutorial, except that I'm creating the network part...
36.38806
118
0.632075
363
2,438
4.176309
0.360882
0.039578
0.034301
0.050132
0.075198
0
0
0
0
0
0
0.039767
0.226415
2,438
66
119
36.939394
0.764051
0.2137
0
0.176471
0
0
0.04311
0
0
0
0
0
0
1
0
false
0
0.088235
0
0.088235
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3451491f281657225eb12e397ca0c1b32618813b
10,025
py
Python
src/baldor/transform.py
gavanderhoorn/baldor
7844f56bccbfb63b255c21e93a255726847509ee
[ "BSD-3-Clause" ]
1
2021-11-06T10:32:59.000Z
2021-11-06T10:32:59.000Z
src/baldor/transform.py
Dream360/baldor
08c29ba226687a81b3de15085c80e9fc0238c287
[ "BSD-3-Clause" ]
null
null
null
src/baldor/transform.py
Dream360/baldor
08c29ba226687a81b3de15085c80e9fc0238c287
[ "BSD-3-Clause" ]
1
2021-11-06T10:32:54.000Z
2021-11-06T10:32:54.000Z
#!/usr/bin/env python """ Homogeneous Transformation Matrices """ import math import numpy as np # Local modules import baldor as br def are_equal(T1, T2, rtol=1e-5, atol=1e-8): """ Returns True if two homogeneous transformation are equal within a tolerance. Parameters ---------- T1: array_like First i...
26.662234
79
0.59601
1,635
10,025
3.609174
0.171254
0.00644
0.013557
0.01271
0.351296
0.291645
0.254533
0.23979
0.212506
0.149466
0
0.052625
0.23611
10,025
375
80
26.733333
0.717942
0.492269
0
0.14094
0
0
0.021776
0
0
0
0
0
0
1
0.053691
false
0
0.020134
0
0.127517
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
34575d0be5f1d539f952f6ed5f2ce7d84d79f289
1,423
py
Python
celery_uncovered/tricks/celery_conf.py
TinlokLee/Python-CelerySS
f66c42d2eace51e28b17ed6d7eec0fa765f9d90b
[ "MIT" ]
null
null
null
celery_uncovered/tricks/celery_conf.py
TinlokLee/Python-CelerySS
f66c42d2eace51e28b17ed6d7eec0fa765f9d90b
[ "MIT" ]
null
null
null
celery_uncovered/tricks/celery_conf.py
TinlokLee/Python-CelerySS
f66c42d2eace51e28b17ed6d7eec0fa765f9d90b
[ "MIT" ]
null
null
null
import os import logging from django.conf import settings # noqa from celery import signals from celery.task.control import inspect def copy_dict(ds): return {k: v for k, v in ds.iteritems()} @signals.celeryd_after_setup.connect def configure_task_logging(instance=None, **kwargs): tasks = inst...
27.901961
69
0.588897
158
1,423
5.120253
0.443038
0.034611
0.037083
0
0
0
0
0
0
0
0
0.000985
0.286718
1,423
50
70
28.46
0.796059
0.017569
0
0.047619
0
0
0.14052
0.017844
0
0
0
0
0
0
null
null
0
0.119048
null
null
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
1
0
0
0
0
0
0
0
0
1
3457d8aedd18211653e91995d82cf79ab5d2e314
4,419
py
Python
codes/scripts/generate_mod_LR_bic.py
yuanjunchai/IKC
2a846cf1194cd9bace08973d55ecd8fd3179fe48
[ "Apache-2.0" ]
192
2019-09-03T14:52:10.000Z
2022-03-18T14:07:06.000Z
codes/scripts/generate_mod_LR_bic.py
sczhangjie/IKC
2a846cf1194cd9bace08973d55ecd8fd3179fe48
[ "Apache-2.0" ]
25
2019-09-10T01:42:07.000Z
2022-01-11T02:14:27.000Z
codes/scripts/generate_mod_LR_bic.py
sczhangjie/IKC
2a846cf1194cd9bace08973d55ecd8fd3179fe48
[ "Apache-2.0" ]
35
2019-09-17T07:20:27.000Z
2022-03-23T00:17:06.000Z
import os import sys import cv2 import numpy as np import torch try: sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from data.util import imresize_np from utils import util except ImportError: pass def generate_mod_LR_bic(): # set parameters up_scale = 4 mod_...
37.449153
123
0.632722
650
4,419
4.149231
0.255385
0.066741
0.063033
0.07564
0.340007
0.166852
0.079347
0.079347
0.079347
0.030404
0
0.020498
0.227201
4,419
117
124
37.769231
0.769253
0.107264
0
0.05814
0
0
0.090678
0.030311
0
0
0
0
0
1
0.011628
false
0.011628
0.093023
0
0.104651
0.116279
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
34589dda9c22ca7f74bb3fd8e4579be48b9b939f
602
py
Python
aldjemy/types.py
winclap/aldjemy
090486983b648b1ee531c2b6004201c10253a33d
[ "BSD-3-Clause" ]
null
null
null
aldjemy/types.py
winclap/aldjemy
090486983b648b1ee531c2b6004201c10253a33d
[ "BSD-3-Clause" ]
null
null
null
aldjemy/types.py
winclap/aldjemy
090486983b648b1ee531c2b6004201c10253a33d
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import django from sqlalchemy import types, ForeignKey def simple(typ): return lambda field: typ() def varchar(field): return types.String(length=field.max_length) def foreign_key(field): if django.VERSION < (1, 8): parent_model = field.related.parent_model elif django.VER...
22.296296
73
0.689369
82
602
4.890244
0.47561
0.137157
0.119701
0.114713
0
0
0
0
0
0
0
0.010482
0.207641
602
26
74
23.153846
0.830189
0.021595
0
0
0
0
0.008518
0
0
0
0
0
0
1
0.176471
false
0
0.117647
0.117647
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
3458c8a244167fc4de3cea41505e9b6d068889de
1,543
py
Python
linters/lexicon_linter.py
unfoldingWord-dev/tx-job-handler
5364ed079bbd5b6528eeb6d12f2ca5c696e84f4f
[ "MIT" ]
1
2020-11-25T04:07:37.000Z
2020-11-25T04:07:37.000Z
linters/lexicon_linter.py
unfoldingWord-dev/tx-job-handler
5364ed079bbd5b6528eeb6d12f2ca5c696e84f4f
[ "MIT" ]
52
2018-10-25T05:49:30.000Z
2022-03-16T22:31:57.000Z
linters/lexicon_linter.py
unfoldingWord-dev/tx-job-handler
5364ed079bbd5b6528eeb6d12f2ca5c696e84f4f
[ "MIT" ]
null
null
null
import os import re from linters.markdown_linter import MarkdownLinter from general_tools.file_utils import read_file from app_settings.app_settings import AppSettings class LexiconLinter(MarkdownLinter): def lint(self): """ Checks for issues with OBS Use self.log.warning("message") to l...
35.068182
85
0.594945
189
1,543
4.756614
0.455026
0.046719
0.046719
0.040044
0.117909
0.117909
0
0
0
0
0
0.000918
0.294232
1,543
43
86
35.883721
0.821855
0.545042
0
0
0
0
0.075353
0.032967
0
0
0
0
0
1
0.090909
false
0
0.454545
0
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
3458e78a61d0530976d41cc1ee35cbe952501111
1,812
py
Python
project_template/linegen.py
warrencrowell/OptimusRhyme
dca3a78e868b5cec01c1af708dcfb942c0702bc1
[ "MIT" ]
null
null
null
project_template/linegen.py
warrencrowell/OptimusRhyme
dca3a78e868b5cec01c1af708dcfb942c0702bc1
[ "MIT" ]
null
null
null
project_template/linegen.py
warrencrowell/OptimusRhyme
dca3a78e868b5cec01c1af708dcfb942c0702bc1
[ "MIT" ]
null
null
null
import nltk import random EXPLICIT_WORDS = ['shit', 'fuck', 'nigg', 'masturb', 'bitch'] def is_explicit(line): for word in line: for e in EXPLICIT_WORDS: if e in word.lower(): return True return False def get_random_line(corpus, last_line = None): if os.path.isfile('ly...
31.789474
64
0.546909
242
1,812
3.938017
0.256198
0.066107
0.044071
0.04617
0.43022
0.381952
0.381952
0.381952
0.381952
0.381952
0
0.010076
0.342715
1,812
56
65
32.357143
0.790092
0
0
0.538462
0
0
0.056291
0.019868
0
0
0
0
0
1
0.057692
false
0
0.038462
0
0.173077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
345a42252196ac144c22ac0ef54c695e0268f0d1
1,596
py
Python
Functions/readFile.py
SunYongshuai/SunSpice
7f9368a7af1421a63b69dcce3decc6d06ff1ff6b
[ "Apache-2.0" ]
1
2018-12-10T06:06:54.000Z
2018-12-10T06:06:54.000Z
Functions/readFile.py
SunYongshuai/SunSpice
7f9368a7af1421a63b69dcce3decc6d06ff1ff6b
[ "Apache-2.0" ]
null
null
null
Functions/readFile.py
SunYongshuai/SunSpice
7f9368a7af1421a63b69dcce3decc6d06ff1ff6b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- encoding="UTF-8" -*- #Import Package import sys sys.path.append("..") import re from tkinter.messagebox import * import parameters #Dont use from parameters import NetlistPath, it Will be import ealier than Changed from parameters import regExpExtend from parameters import regExpCommandEnd ...
23.820896
90
0.652882
187
1,596
5.572193
0.433155
0.038388
0.053743
0.03263
0
0
0
0
0
0
0
0.00753
0.16792
1,596
66
91
24.181818
0.777108
0.116541
0
0.25
0
0
0.197575
0.052782
0
0
0
0
0
1
0.022727
false
0
0.159091
0
0.181818
0.204545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
345a69af5d907c6bab145563e5584f5ba8f8fc27
451
py
Python
tasurvey/__init__.py
Rcain07/SCULabTAevaluations
fcedbd046c2880ea0ce12c7bb02b8e9f8d84d372
[ "MIT" ]
null
null
null
tasurvey/__init__.py
Rcain07/SCULabTAevaluations
fcedbd046c2880ea0ce12c7bb02b8e9f8d84d372
[ "MIT" ]
null
null
null
tasurvey/__init__.py
Rcain07/SCULabTAevaluations
fcedbd046c2880ea0ce12c7bb02b8e9f8d84d372
[ "MIT" ]
null
null
null
''' Description: Functional file that initializes our app ''' import os from flask import Flask, flash, request, redirect, url_for from config import Config from flask_sqlalchemy import SQLAlchemy from werkzeug.utils import secure_filename from flask_login import LoginManager app = Flask(__name__) app.config.from_objec...
22.55
58
0.804878
63
451
5.587302
0.492063
0.076705
0
0
0
0
0
0
0
0
0
0
0.124169
451
19
59
23.736842
0.891139
0.117517
0
0
0
0
0.01292
0
0
0
0
0
0
1
0
false
0
0.538462
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
345d49286901cd1496500b9260f619ea4162e4b2
12,043
py
Python
posts/views.py
vadimpopovski/codegram
5bc30671d9e4d60344484e2958de3c5753124fd4
[ "MIT" ]
null
null
null
posts/views.py
vadimpopovski/codegram
5bc30671d9e4d60344484e2958de3c5753124fd4
[ "MIT" ]
null
null
null
posts/views.py
vadimpopovski/codegram
5bc30671d9e4d60344484e2958de3c5753124fd4
[ "MIT" ]
null
null
null
from django.http.response import HttpResponse from django.shortcuts import render, get_object_or_404 from django.http import HttpResponseRedirect, JsonResponse from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator from main.functions import get_authenticated_user, get_new...
37.990536
259
0.651499
1,441
12,043
5.285219
0.105482
0.138393
0.025998
0.033088
0.761555
0.720851
0.699842
0.675945
0.650604
0.650604
0
0.006622
0.235074
12,043
317
260
37.990536
0.819692
0.16931
0
0.605
0
0.03
0.151411
0.05746
0
0
0
0
0
1
0.045
false
0
0.04
0
0.16
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
345d7857b732bab4f144ef27557980ac82d5ba78
754
py
Python
oniony/__init__.py
ruivieira/oniony
c2b9bab360ccaa9dfcafa60febf5a26145397db7
[ "Apache-2.0" ]
null
null
null
oniony/__init__.py
ruivieira/oniony
c2b9bab360ccaa9dfcafa60febf5a26145397db7
[ "Apache-2.0" ]
null
null
null
oniony/__init__.py
ruivieira/oniony
c2b9bab360ccaa9dfcafa60febf5a26145397db7
[ "Apache-2.0" ]
2
2020-01-14T10:43:36.000Z
2020-02-23T22:10:31.000Z
class Anonymizer: def __init__(self, context, dataframe): restructed = self.restructure(dataframe) self._anonymized = self.anonymize(restructed) def restructure(self, dataframe): """ Applies the restructuring Spark transformations :param dataframe: The original Spark d...
29
56
0.656499
67
754
7.298507
0.38806
0.114519
0.0818
0.09407
0
0
0
0
0
0
0
0
0.274536
754
26
57
29
0.893967
0.35809
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.363636
false
0
0
0.090909
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
345d873ec822bd85ba44e8e911804060c0abd48f
4,221
py
Python
es/plot.py
DanielTakeshi/rl_algorithms
7a43fa485137dd5e0bbebecbbbc390cdb6dbde0b
[ "MIT" ]
150
2017-02-13T01:27:59.000Z
2021-12-11T01:06:28.000Z
es/plot.py
DanielTakeshi/Reinforcement_Learning_Algorithms
7a43fa485137dd5e0bbebecbbbc390cdb6dbde0b
[ "MIT" ]
6
2017-01-17T22:44:24.000Z
2017-12-21T15:05:32.000Z
es/plot.py
DanielTakeshi/Reinforcement_Learning_Algorithms
7a43fa485137dd5e0bbebecbbbc390cdb6dbde0b
[ "MIT" ]
36
2017-07-22T12:29:17.000Z
2020-12-04T12:40:33.000Z
""" To plot this, you need to provide the experiment directory plus an output stem. I use this for InvertedPendulum: python plot.py outputs/InvertedPendulum-v1 --envname InvertedPendulum-v1 \ --out figures/InvertedPendulum-v1 (c) May 2017 by Daniel Seita """ import argparse import matplotlib matplotl...
36.076923
86
0.628761
551
4,221
4.725953
0.433757
0.024962
0.015361
0.023041
0.164363
0.146697
0.146697
0.122888
0.122888
0.122888
0
0.01737
0.2362
4,221
116
87
36.387931
0.790323
0.201137
0
0.125
0
0
0.169777
0.006424
0
0
0
0
0
1
0.0125
false
0
0.125
0
0.1375
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
345e34a7d6bf14a08366aa0aaaefde67070a65d9
2,810
py
Python
setup.py
johannah/balloon-learning-environment
cdb2e582f2b03c41f037bf76142d31611f5e0316
[ "Apache-2.0" ]
64
2021-11-09T08:49:02.000Z
2022-03-30T17:33:54.000Z
setup.py
johannah/balloon-learning-environment
cdb2e582f2b03c41f037bf76142d31611f5e0316
[ "Apache-2.0" ]
null
null
null
setup.py
johannah/balloon-learning-environment
cdb2e582f2b03c41f037bf76142d31611f5e0316
[ "Apache-2.0" ]
5
2021-11-14T18:56:42.000Z
2022-03-18T16:22:31.000Z
# coding=utf-8 # Copyright 2022 The Balloon Learning Environment 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 require...
25.315315
76
0.693594
370
2,810
5.12973
0.505405
0.031612
0.041096
0.01686
0.035827
0.035827
0
0
0
0
0
0.012747
0.190391
2,810
110
77
25.545455
0.821538
0.348754
0
0.057143
0
0
0.221664
0.072027
0
0
0
0
0
1
0.042857
false
0
0.071429
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
345e922f08611898b3ac561b10e1e4d11726e99b
386
py
Python
mips-rt/native_lib/gen_isr_table.py
MikuroXina/pic32mx470-rs-hello-world
28ef92a33db13345ce40f2a31089023f082e10bd
[ "MIT" ]
1
2020-03-04T21:02:32.000Z
2020-03-04T21:02:32.000Z
mips-rt/native_lib/gen_isr_table.py
MikuroXina/pic32mx470-rs-hello-world
28ef92a33db13345ce40f2a31089023f082e10bd
[ "MIT" ]
null
null
null
mips-rt/native_lib/gen_isr_table.py
MikuroXina/pic32mx470-rs-hello-world
28ef92a33db13345ce40f2a31089023f082e10bd
[ "MIT" ]
2
2020-03-04T21:02:45.000Z
2020-07-11T16:58:31.000Z
#!/usr/bin/python3 # # generate ISR table # vect_fmt = '''\ # vector {0} .weak _vector_{0}_fn, _vector_{0}_j _vector_{0}_fn = _default_isr_fn _vector_{0}_context = _isr_context .section .vector_{0}, "ax" .ent _vector_{0} _vector_{0}: la k0,_vector_{0}_fn j _vector_{0}_context nop .end _vect...
16.782609
35
0.642487
61
386
3.540984
0.47541
0.356481
0.125
0
0
0
0
0
0
0
0
0.05178
0.199482
386
22
36
17.545455
0.647249
0.093264
0
0
1
0
0.774566
0
0
0
0
0
0
1
0
false
0
0
0
0
0.066667
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
345ea33ffbb6fea11b6553aa914a02712c24fb98
6,518
py
Python
FSM.py
wzx19980321/CPO_lab4
c80701808e02df6042a98dd53da182f36b86b54b
[ "Apache-2.0" ]
null
null
null
FSM.py
wzx19980321/CPO_lab4
c80701808e02df6042a98dd53da182f36b86b54b
[ "Apache-2.0" ]
null
null
null
FSM.py
wzx19980321/CPO_lab4
c80701808e02df6042a98dd53da182f36b86b54b
[ "Apache-2.0" ]
null
null
null
import collections import time from functools import wraps from typing import Any, Callable, Tuple, Union, List class StateMachine(object): """ 'Design a representation of the finite state machine using decorators to specify state machine handlers.' """ def __init__(self, T: int, HALT: int...
37.676301
110
0.473305
748
6,518
4.02139
0.137701
0.072141
0.062168
0.047872
0.502327
0.461436
0.449468
0.441489
0.429189
0.429189
0
0.007928
0.419454
6,518
172
111
37.895349
0.786998
0.064284
0
0.484615
0
0
0.007406
0
0
0
0
0
0
1
0.107692
false
0
0.030769
0
0.207692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
345fb5b5178a9d7ea4cb8bfbcc908abb4b90eb1f
73
py
Python
iitgauth/__init__.py
shubhamvishnoi3288/django-iitg-auth
4113368445fef8014657c54534c02e9d3b860673
[ "BSD-3-Clause" ]
6
2017-03-23T16:35:37.000Z
2018-02-13T14:03:59.000Z
iitgauth/__init__.py
shubhamvishnoi3288/django-iitg-auth
4113368445fef8014657c54534c02e9d3b860673
[ "BSD-3-Clause" ]
4
2017-07-02T11:43:50.000Z
2018-03-25T10:57:16.000Z
iitgauth/__init__.py
shubhamvishnoi3288/django-iitg-auth
4113368445fef8014657c54534c02e9d3b860673
[ "BSD-3-Clause" ]
1
2021-05-25T12:45:44.000Z
2021-05-25T12:45:44.000Z
VERSION = (0, 0, 4) default_app_config = 'iitgauth.apps.IitgauthConfig'
18.25
51
0.739726
10
73
5.2
0.9
0
0
0
0
0
0
0
0
0
0
0.046875
0.123288
73
3
52
24.333333
0.765625
0
0
0
0
0
0.383562
0.383562
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
346216230af3553a0fa4f41d0c6e2274efc3bb66
932
py
Python
dj_hybrid/expression_wrapper/wrap.py
cybojenix/django-hybrid-properties
ee52f3132a60b9443cd9c3d9145163c235afac80
[ "Apache-2.0" ]
9
2018-05-01T09:02:54.000Z
2020-07-15T08:58:04.000Z
dj_hybrid/expression_wrapper/wrap.py
antdking/django-hybrid
ee52f3132a60b9443cd9c3d9145163c235afac80
[ "Apache-2.0" ]
1
2018-05-08T18:45:29.000Z
2018-05-08T18:45:29.000Z
dj_hybrid/expression_wrapper/wrap.py
antdking/django-hybrid
ee52f3132a60b9443cd9c3d9145163c235afac80
[ "Apache-2.0" ]
1
2018-05-08T18:39:45.000Z
2018-05-08T18:39:45.000Z
from typing import Type, Union from dj_hybrid.types import SupportsPython from .registry import registry from .types import TypeWrapperOrProxy, Wrapable def wrap(expression: Wrapable) -> SupportsPython: """Wrap an expression so we can control how each one works within python Django essentially builds a cha...
30.064516
84
0.743562
117
932
5.897436
0.504274
0.069565
0.02029
0
0
0
0
0
0
0
0
0
0.196352
932
30
85
31.066667
0.921228
0.36588
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.307692
0
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
3463ccde590294a9dfa01bffd2ce811e289e9672
3,470
py
Python
deployment.py
MaRaSu/openstreetmap-tile-server
346d8a68076048c50b0c5dc4cbac30b7664b5379
[ "Apache-2.0" ]
1
2021-04-05T15:07:02.000Z
2021-04-05T15:07:02.000Z
deployment.py
MaRaSu/openstreetmap-tile-server
346d8a68076048c50b0c5dc4cbac30b7664b5379
[ "Apache-2.0" ]
null
null
null
deployment.py
MaRaSu/openstreetmap-tile-server
346d8a68076048c50b0c5dc4cbac30b7664b5379
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # ----------------------------------------------------------------- # Canary deployment of Tileserver # ----------------------------------------------------------------- import time import subprocess from datetime import date import urllib2 import socket import time PG_VOLUME_NAME = 'mtb-tileserver-...
38.131868
191
0.657637
477
3,470
4.568134
0.268344
0.055071
0.060578
0.070216
0.328132
0.328132
0.275815
0.248279
0.219826
0.183112
0
0.025939
0.15562
3,470
90
192
38.555556
0.717747
0.247262
0
0.190476
0
0
0.272797
0.080416
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.174603
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3465e4df532d410ea7946841819bd922c9700557
1,369
py
Python
das/notification.py
davidcast95/das
245b96e1316e99fa30862622755cd68fce0ff979
[ "MIT" ]
null
null
null
das/notification.py
davidcast95/das
245b96e1316e99fa30862622755cd68fce0ff979
[ "MIT" ]
null
null
null
das/notification.py
davidcast95/das
245b96e1316e99fa30862622755cd68fce0ff979
[ "MIT" ]
null
null
null
import frappe from frappe.utils import get_request_session import json def send_notification(auth_key,data): try: s = get_request_session() url = "https://fcm.googleapis.com/fcm/send" header = {"Authorization": "key={}".format(auth_key),"Content-Type": "application/json"} content = { "to":"/topics/all", ...
25.830189
91
0.681519
188
1,369
4.819149
0.255319
0.046358
0.075055
0.046358
0.754967
0.754967
0.754967
0.754967
0.754967
0.754967
0
0.001706
0.143901
1,369
52
92
26.326923
0.771331
0
0
0.659091
0
0
0.229365
0
0
0
0
0
0
1
0.068182
false
0
0.068182
0
0.25
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
34667ea2a0199932f4434af4adeeb01ec3d10c7f
1,183
py
Python
test/unit/python/MetadataTest.py
dmarklein/WordCloud
e67b8906622abe628b2825e58bc224b522ec5fcb
[ "Apache-2.0" ]
1
2016-12-23T09:51:43.000Z
2016-12-23T09:51:43.000Z
test/unit/python/MetadataTest.py
dmarklein/WordCloud
e67b8906622abe628b2825e58bc224b522ec5fcb
[ "Apache-2.0" ]
21
2015-02-19T03:15:30.000Z
2015-07-27T19:56:45.000Z
test/unit/python/MetadataTest.py
dmarklein/WordCloud
e67b8906622abe628b2825e58bc224b522ec5fcb
[ "Apache-2.0" ]
null
null
null
''' Test Cases for Metadata Class for Word Cloud Project Daniel Klein Computer-Based Honors Program The University of Alabama 9.12.2013 ''' import unittest from src.core.python.Metadata import Metadata class MetadataTest(unittest.TestCase): def setUp(self): self.test_metadata = Metadata() def tea...
26.288889
70
0.634827
131
1,183
5.473282
0.442748
0.055788
0.111576
0.117155
0.164575
0.114365
0
0
0
0
0
0.017045
0.256128
1,183
45
71
26.288889
0.797727
0.148774
0
0
0
0
0.219
0.085
0
0
0
0
0.043478
1
0.217391
false
0
0.086957
0
0.347826
0.304348
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3466cbc335869bc6367a832c3ad0d9c63e1f079e
426
py
Python
backend/algorithm/controllers/path_planning/graph.py
SpaceGliderr/fyp-sim-react
20ad9baac200a8beedbd5a86cd749e5cdb63daca
[ "MIT" ]
null
null
null
backend/algorithm/controllers/path_planning/graph.py
SpaceGliderr/fyp-sim-react
20ad9baac200a8beedbd5a86cd749e5cdb63daca
[ "MIT" ]
null
null
null
backend/algorithm/controllers/path_planning/graph.py
SpaceGliderr/fyp-sim-react
20ad9baac200a8beedbd5a86cd749e5cdb63daca
[ "MIT" ]
null
null
null
import numpy as np class Graph: def __init__(self, size: int): self.size = size self.matrix = np.zeros((size, size), dtype=np.uint8) def add_edge(self, node1: int, node2: int) -> None: self.matrix[node1][node2] = 1 self.matrix[node2][node1] = 1 def remove_edge(self, nod...
23.666667
60
0.593897
61
426
4.04918
0.393443
0.202429
0.105263
0.153846
0.194332
0
0
0
0
0
0
0.05414
0.262911
426
17
61
25.058824
0.732484
0
0
0
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0
0.454545
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
34674ac68d2e81a558c7f01008b5526756544441
3,467
py
Python
py/faint/image.py
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
10
2016-12-28T22:06:31.000Z
2021-05-24T13:42:30.000Z
py/faint/image.py
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
4
2015-10-09T23:55:10.000Z
2020-04-04T08:09:22.000Z
py/faint/image.py
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
null
null
null
import ifaint class FakeGrid: anchor = 0, 0 color = 255, 255, 255 dashed = False enabled = False spacing = 40 class Pimage: """Experimental Image implementation in Python. If this works out, I'll rename it as Image, and remove the C++-implementation py-image.cpp. "...
23.268456
63
0.564177
436
3,467
4.350917
0.224771
0.075382
0.047443
0.075909
0.383764
0.268846
0.204533
0.204533
0.079072
0.042172
0
0.013333
0.329391
3,467
148
64
23.425676
0.802581
0.083646
0
0.277228
0
0
0
0
0
0
0
0.006757
0
1
0.306931
false
0.009901
0.009901
0.118812
0.653465
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
34676472975149b91d7f84d84ea4b4caf330a0c3
5,514
py
Python
django_cache_dependencies/__init__.py
imposeren/cache-dependencies
aab7b4f0bda6776ea184d99eeaa26d1c9ac8e4b2
[ "BSD-3-Clause" ]
null
null
null
django_cache_dependencies/__init__.py
imposeren/cache-dependencies
aab7b4f0bda6776ea184d99eeaa26d1c9ac8e4b2
[ "BSD-3-Clause" ]
null
null
null
django_cache_dependencies/__init__.py
imposeren/cache-dependencies
aab7b4f0bda6776ea184d99eeaa26d1c9ac8e4b2
[ "BSD-3-Clause" ]
2
2020-03-05T14:36:44.000Z
2021-05-04T03:55:42.000Z
from __future__ import absolute_import, unicode_literals import sys import hashlib from threading import local import django.core.cache from django.conf import settings from django.core import signals as core_signals from django.core.cache import DEFAULT_CACHE_ALIAS from django.db.models import signals as model_signal...
30.804469
100
0.662677
618
5,514
5.684466
0.313916
0.037005
0.038713
0.039283
0.099915
0.076288
0.059209
0.059209
0.034728
0.034728
0
0.00288
0.244469
5,514
178
101
30.977528
0.840374
0.11226
0
0.109244
0
0
0.022799
0
0
0
0
0
0
1
0.142857
false
0
0.168067
0.07563
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
34677864834974b9a397731f965ed9f1bea99403
172
py
Python
python/ql/test/3/query-tests/Classes/inconsistent-mro/inconsistent_mro.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
4,036
2020-04-29T00:09:57.000Z
2022-03-31T14:16:38.000Z
python/ql/test/3/query-tests/Classes/inconsistent-mro/inconsistent_mro.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
2,970
2020-04-28T17:24:18.000Z
2022-03-31T22:40:46.000Z
python/ql/test/3/query-tests/Classes/inconsistent-mro/inconsistent_mro.py
ScriptBox99/github-codeql
2ecf0d3264db8fb4904b2056964da469372a235c
[ "MIT" ]
794
2020-04-29T00:28:25.000Z
2022-03-30T08:21:46.000Z
#Inconsistent MRO class X(object): pass class Y(X): pass class Z(X, Y): pass class O: pass #This is OK in Python 2 class N(object, O): pass
10.117647
23
0.569767
29
172
3.37931
0.551724
0.27551
0
0
0
0
0
0
0
0
0
0.008696
0.331395
172
17
24
10.117647
0.843478
0.22093
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
346c3a44b5316fb717678c261d0a73998057d413
4,265
py
Python
gammapy/astro/darkmatter/utils.py
mealworm/gammapy
a838b2ca347dd6321f8da4e4097a33150d7b9be6
[ "BSD-3-Clause" ]
null
null
null
gammapy/astro/darkmatter/utils.py
mealworm/gammapy
a838b2ca347dd6321f8da4e4097a33150d7b9be6
[ "BSD-3-Clause" ]
null
null
null
gammapy/astro/darkmatter/utils.py
mealworm/gammapy
a838b2ca347dd6321f8da4e4097a33150d7b9be6
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Utilities to compute J-factor maps """ from __future__ import absolute_import, division, print_function, unicode_literals from ...cube import make_separation_map from ...maps import WcsNDMap import astropy.units as u import numpy as np import copy __...
29.825175
82
0.6068
528
4,265
4.744318
0.337121
0.027944
0.021956
0.017964
0.019162
0.019162
0.019162
0
0
0
0
0.009364
0.273857
4,265
142
83
30.035211
0.799483
0.405862
0
0.098361
0
0
0.018617
0
0
0
0
0.007042
0
1
0.131148
false
0
0.098361
0
0.295082
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
346c986b22a404321ea50b505eb5fc91f610d540
2,427
py
Python
Events/events.py
DerKeksTV/Keks-Bot
de07281c5bb15e0d578d27a564420a8ba61f6db4
[ "MIT" ]
3
2020-11-25T20:35:17.000Z
2021-02-09T16:28:58.000Z
Events/events.py
DerKeksTV/Keks-Bot
de07281c5bb15e0d578d27a564420a8ba61f6db4
[ "MIT" ]
null
null
null
Events/events.py
DerKeksTV/Keks-Bot
de07281c5bb15e0d578d27a564420a8ba61f6db4
[ "MIT" ]
null
null
null
import discord from config import log from config import config import Webhook.log_send as ch_log from Moderating.Perms import role as perms def message_events(bot): @bot.event async def on_ready(): log.ready(bot) await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.w...
28.552941
142
0.668315
324
2,427
4.814815
0.20679
0.071795
0.116667
0.14359
0.428846
0.38141
0.177564
0.098718
0.051282
0
0
0
0.236918
2,427
84
143
28.892857
0.842333
0
0
0.25
0
0
0.022662
0
0
0
0
0
0
1
0.014706
false
0
0.073529
0
0.132353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
346cfe4c3d3044bc5050dc5d28596facaf4673fd
740
py
Python
fme_server_lib/FileLogger/Logger.py
bcgov/fme
0564363c59ccd06fe79459ec08ff3b7c5bf7e061
[ "Apache-2.0" ]
null
null
null
fme_server_lib/FileLogger/Logger.py
bcgov/fme
0564363c59ccd06fe79459ec08ff3b7c5bf7e061
[ "Apache-2.0" ]
2
2021-07-26T20:33:16.000Z
2021-07-26T20:33:19.000Z
fme_server_lib/FileLogger/Logger.py
bcgov/fme
0564363c59ccd06fe79459ec08ff3b7c5bf7e061
[ "Apache-2.0" ]
null
null
null
import os class AppLogger: def __init__(self, name, save_file=True, clear=False): self.file_name = name self.save_file = save_file if self.save_file and clear: if os.path.exists(name): os.remove(name) def write_line(self, obj): # text = None ...
26.428571
58
0.502703
95
740
3.747368
0.421053
0.11236
0.101124
0.078652
0
0
0
0
0
0
0
0
0.378378
740
27
59
27.407407
0.773913
0.117568
0
0
0
0
0.010819
0
0
0
0
0
0
1
0.111111
false
0
0.055556
0
0.222222
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
346e9682a26aef94c565d285e5b76492fd9e4ea0
395
py
Python
web/impact/impact/permissions/allocate_applications_permissions.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
5
2017-10-19T15:11:52.000Z
2020-03-08T07:16:21.000Z
web/impact/impact/permissions/allocate_applications_permissions.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
182
2017-06-21T19:32:13.000Z
2021-03-22T13:38:16.000Z
web/impact/impact/permissions/allocate_applications_permissions.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
1
2018-06-23T11:53:18.000Z
2018-06-23T11:53:18.000Z
from rest_framework.permissions import BasePermission class AllocateApplicationsPermissions(BasePermission): authenticated_users_only = True def has_permission(self, request, view): request_judge_id = int(request.parser_context['kwargs']['judge_id']) if request.user.id == request_judge_id: ...
32.916667
76
0.734177
44
395
6.340909
0.636364
0.075269
0.100358
0
0
0
0
0
0
0
0
0
0.182278
395
11
77
35.909091
0.863777
0
0
0
0
0
0.035443
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
346ed50bb3dcfc85f8134663cc902a2f1607219f
84
py
Python
examples/team-fullmetal/dockerComp/src/client/app/wsgi.py
connectthefuture/docker-hacks
d7ea13522188233d5e8a97179d2b0a872239f58d
[ "MIT" ]
null
null
null
examples/team-fullmetal/dockerComp/src/client/app/wsgi.py
connectthefuture/docker-hacks
d7ea13522188233d5e8a97179d2b0a872239f58d
[ "MIT" ]
1
2021-03-20T04:49:20.000Z
2021-03-20T04:49:20.000Z
examples/team-fullmetal/dockerComp/src/client/app/wsgi.py
connectthefuture/docker-hacks
d7ea13522188233d5e8a97179d2b0a872239f58d
[ "MIT" ]
null
null
null
# if gunicorn is used from run import app if __name__ == "__main__": app.run()
14
26
0.666667
13
84
3.692308
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.22619
84
5
27
16.8
0.738462
0.22619
0
0
0
0
0.126984
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
346f2ad7b27dc11410aa8b7a9e1b78989914849c
3,162
py
Python
compatibility-verifier/sample-test-suite/config/dataGenerator.py
WangCHX/pinot
ae02ecefa4b4367fc3547fa5bfb718d63b45b477
[ "Apache-2.0" ]
2,144
2015-06-10T16:02:11.000Z
2018-11-08T07:59:13.000Z
compatibility-verifier/sample-test-suite/config/dataGenerator.py
PrachiKhobragade/pinot
f200ec515630442f95f6fc55f568b00f7cb04f4f
[ "Apache-2.0" ]
1,894
2015-06-11T05:17:48.000Z
2018-11-09T19:22:27.000Z
compatibility-verifier/sample-test-suite/config/dataGenerator.py
PrachiKhobragade/pinot
f200ec515630442f95f6fc55f568b00f7cb04f4f
[ "Apache-2.0" ]
418
2015-06-10T15:53:06.000Z
2018-11-09T00:05:06.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
33.638298
98
0.684377
400
3,162
5.2025
0.425
0.052859
0.028832
0.046132
0.265738
0.195099
0.172994
0.139356
0.139356
0.139356
0
0.041989
0.224225
3,162
93
99
34
0.80636
0.310879
0
0.146341
0
0
0.05726
0.027607
0
0
0
0
0
1
0.073171
false
0
0.073171
0
0.243902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
346f5766c7d34d7d2a361557c6ee59f18fb84c1f
2,969
py
Python
lib/datasets/factory.py
amitfishy/py_faster_rcnn
75c340f134ccb1d0efad68d12b6c86c1d6ae7593
[ "BSD-2-Clause" ]
null
null
null
lib/datasets/factory.py
amitfishy/py_faster_rcnn
75c340f134ccb1d0efad68d12b6c86c1d6ae7593
[ "BSD-2-Clause" ]
null
null
null
lib/datasets/factory.py
amitfishy/py_faster_rcnn
75c340f134ccb1d0efad68d12b6c86c1d6ae7593
[ "BSD-2-Clause" ]
null
null
null
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Factory method for easily getting imdbs by name.""" from pascal_voc...
39.586667
127
0.655776
383
2,969
4.869452
0.315927
0.048257
0.062735
0.071314
0.382306
0.292761
0.261662
0.238606
0.202145
0.202145
0
0.017756
0.165376
2,969
74
128
40.121622
0.734867
0.676659
0
0.190476
0
0
0.023464
0
0
0
0
0
0
1
0.142857
false
0
0.190476
0
0.47619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
346ff732f27704ee6121d33b77e42e3601c9c09f
4,668
py
Python
src/gitlab/Gitlab.py
arrnorets/pylibs
191c75150b23b5a55b713d152b49c8e0e52a0f24
[ "Apache-2.0" ]
null
null
null
src/gitlab/Gitlab.py
arrnorets/pylibs
191c75150b23b5a55b713d152b49c8e0e52a0f24
[ "Apache-2.0" ]
null
null
null
src/gitlab/Gitlab.py
arrnorets/pylibs
191c75150b23b5a55b713d152b49c8e0e52a0f24
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # An object that stores information about project in Gitlab. It uses API v4. from configparser import ConfigParser import json import requests import shutil import sys import urllib.parse import zipfile class GitlabProjectMeta(): def __init__(self, *args, **kwargs)...
40.591304
178
0.588903
490
4,668
5.557143
0.3
0.026441
0.092912
0.099155
0.482556
0.463092
0.399192
0.358061
0.358061
0.329049
0
0.00908
0.292202
4,668
114
179
40.947368
0.815073
0.1009
0
0.345679
0
0.074074
0.332935
0.200191
0
0
0
0
0
1
0.074074
false
0
0.08642
0.012346
0.283951
0.185185
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
347053f4c65de4c7e2c7c13a8144cc85060f99be
2,367
py
Python
statsneighborhoods/price.py
joehand/statistics-neighborhoods
5a9cbbfd46da2d3dc5b715c2a9dec3276cee3fe8
[ "MIT" ]
1
2018-05-06T19:19:32.000Z
2018-05-06T19:19:32.000Z
statsneighborhoods/price.py
joehand/statistics-neighborhoods
5a9cbbfd46da2d3dc5b715c2a9dec3276cee3fe8
[ "MIT" ]
null
null
null
statsneighborhoods/price.py
joehand/statistics-neighborhoods
5a9cbbfd46da2d3dc5b715c2a9dec3276cee3fe8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ price calculations ~~~~~~~~~ WARNING: This is specific to US income data. If this needs to be changed, you will need to update the BINS values and some of the regex expressions. :copyright: (c) 2015 by Joe Hand, Santa Fe Institute. :license: MIT """ import numpy...
36.415385
118
0.621462
342
2,367
4.070175
0.359649
0.116379
0.094828
0.028736
0.357759
0.317529
0.232759
0.152299
0.109195
0.071839
0
0.101816
0.232362
2,367
64
119
36.984375
0.664282
0.114068
0
0.15
0
0
0.138768
0
0
0
0
0
0
1
0.1
false
0
0.075
0
0.275
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
34709103517f1e3b70cf5ad2dd28c6bb65951e42
5,945
py
Python
2018/day4/guard.py
sthilaid/AdventOfCode
f4a6006167debeb717843db41e7089d10d323d21
[ "MIT" ]
null
null
null
2018/day4/guard.py
sthilaid/AdventOfCode
f4a6006167debeb717843db41e7089d10d323d21
[ "MIT" ]
null
null
null
2018/day4/guard.py
sthilaid/AdventOfCode
f4a6006167debeb717843db41e7089d10d323d21
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import array import datetime import functools import io import sys class Guard(): def __init__(self, id): self.id = id self.shifts = [] self.sleepIntervals = [] def registerShift(self, shift): self.shifts += [shift.date] self.sle...
31.62234
103
0.514382
606
5,945
5
0.232673
0.053465
0.021782
0.011221
0.066667
0.026403
0.012541
0.012541
0
0
0
0.013477
0.375946
5,945
187
104
31.791444
0.803235
0.009756
0
0.161074
0
0
0.057158
0
0
0
0
0
0
1
0.134228
false
0
0.033557
0.033557
0.342282
0.020134
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
34719799e364b3eadd684c0a5fd67038a3ba1a9b
408
py
Python
apps/gsuite/mail_syncer/tests/test_utils.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
32
2017-02-22T13:38:38.000Z
2022-03-31T23:29:54.000Z
apps/gsuite/mail_syncer/tests/test_utils.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
694
2017-02-15T23:09:52.000Z
2022-03-31T23:16:07.000Z
apps/gsuite/mail_syncer/tests/test_utils.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
35
2017-09-02T21:13:09.000Z
2022-02-21T11:30:30.000Z
from googleapiclient.errors import HttpError from httplib2 import Response def create_http_response(status, reason): resp = Response({"status": status}) resp.reason = reason return resp def create_http_error(status, reason, error): return HttpError( resp=create_http_response(status, reason),...
25.5
80
0.683824
48
408
5.6875
0.458333
0.10989
0.095238
0.175824
0.21978
0
0
0
0
0
0
0.005988
0.181373
408
15
81
27.2
0.811377
0
0
0
0
0
0.095588
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0.090909
0.545455
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
3472110f997eb86fec5734bbdab064fe7075504b
10,492
py
Python
helpdesk/views/api/index.py
dispensable/helpdesk
f1dff07d5f051ea739a5995dbe06fef8a690e4b4
[ "BSD-3-Clause" ]
null
null
null
helpdesk/views/api/index.py
dispensable/helpdesk
f1dff07d5f051ea739a5995dbe06fef8a690e4b4
[ "BSD-3-Clause" ]
null
null
null
helpdesk/views/api/index.py
dispensable/helpdesk
f1dff07d5f051ea739a5995dbe06fef8a690e4b4
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import logging from typing import Optional from authlib.jose import jwt, errors as jwterrors from starlette.responses import RedirectResponse # NOQA from starlette.authentication import requires, has_required_scope # NOQA from fastapi import Query, HTTPException, Depends, Request from helpdesk impo...
38.432234
122
0.681186
1,371
10,492
4.990518
0.15682
0.038585
0.073663
0.08594
0.401198
0.345951
0.270535
0.224203
0.199649
0.182695
0
0.008404
0.217499
10,492
272
123
38.573529
0.82497
0.018014
0
0.226852
0
0
0.108964
0.028933
0
0
0
0
0.013889
1
0.009259
false
0
0.074074
0
0.157407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3473c35810fc9fdef155de2c949fd1aa125f0b24
512
py
Python
ivy_3dprint_site/assets.py
hellwen/ivy_3dprint_site
118969e7c6b81994343b615385ac4a2c469c8602
[ "BSD-2-Clause" ]
null
null
null
ivy_3dprint_site/assets.py
hellwen/ivy_3dprint_site
118969e7c6b81994343b615385ac4a2c469c8602
[ "BSD-2-Clause" ]
null
null
null
ivy_3dprint_site/assets.py
hellwen/ivy_3dprint_site
118969e7c6b81994343b615385ac4a2c469c8602
[ "BSD-2-Clause" ]
null
null
null
from flask_assets import Bundle common_css = Bundle( # bootstrap Bundle('css/vendor/bootstrap.css', 'css/vendor/bootstrap-theme.css'), 'css/vendor/typelate.css', 'css/vendor/helper.css', 'css/main.css', filters='cssmin', output='public/css/common.css' ) common_js = Bundle( 'js/...
22.26087
42
0.638672
69
512
4.695652
0.333333
0.111111
0.111111
0.080247
0
0
0
0
0
0
0
0
0.183594
512
22
43
23.272727
0.77512
0.017578
0
0
0
0
0.528942
0.42515
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3476a86dc9e0ac6fd8216803840ae80b2e93eb7b
3,785
py
Python
musicSpide.py
Brucechen13/converweb
75e53960e0340a3c3a762bfe0b6087e3e7ac8ea0
[ "MIT" ]
null
null
null
musicSpide.py
Brucechen13/converweb
75e53960e0340a3c3a762bfe0b6087e3e7ac8ea0
[ "MIT" ]
null
null
null
musicSpide.py
Brucechen13/converweb
75e53960e0340a3c3a762bfe0b6087e3e7ac8ea0
[ "MIT" ]
null
null
null
import requests import json,os import base64 from Crypto.Cipher import AES import codecs import binascii from lxml import etree musicUrl = ['http://music.163.com/discover/toplist?id=3779629'] basicUrl = 'http://music.163.com' def getMusic(): return get_html(musicUrl[0]) def get_html(url): headers = { ...
39.427083
274
0.614795
448
3,785
5.147321
0.419643
0.020815
0.028621
0.032524
0.06418
0.01301
0
0
0
0
0
0.105724
0.215324
3,785
96
275
39.427083
0.670707
0.025363
0
0.04878
0
0.012195
0.288931
0.097396
0
0
0
0
0
1
0.073171
false
0.036585
0.085366
0.02439
0.231707
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3477643ed6a1e9f2e57cd610eb10b9c823a21e5d
2,891
py
Python
package/src/snobedo/modis/__main__.py
UofU-Cryosphere/isnoda
147742a8e589e472f73f9926cef27c2a1fe1d8d5
[ "MIT" ]
3
2021-12-02T01:55:08.000Z
2022-01-05T21:40:55.000Z
package/src/snobedo/modis/__main__.py
UofU-Cryosphere/isnoda
147742a8e589e472f73f9926cef27c2a1fe1d8d5
[ "MIT" ]
12
2020-09-24T22:32:48.000Z
2022-02-17T20:29:54.000Z
package/src/snobedo/modis/__main__.py
UofU-Cryosphere/isnoda
147742a8e589e472f73f9926cef27c2a1fe1d8d5
[ "MIT" ]
1
2020-08-26T19:45:32.000Z
2020-08-26T19:45:32.000Z
import argparse from datetime import datetime, timedelta from pathlib import Path from typing import NamedTuple import dask import numpy as np from snobedo.lib import ModisGeoTiff from snobedo.lib.command_line_helpers import add_dask_options, \ add_water_year_option from snobedo.lib.dask_utils import run_with_cli...
26.045045
79
0.675199
368
2,891
5.078804
0.315217
0.043339
0.048154
0.019262
0
0
0
0
0
0
0
0.011834
0.240055
2,891
110
80
26.281818
0.838871
0
0
0.08046
0
0
0.158423
0.029747
0
0
0
0
0
1
0.057471
false
0
0.126437
0
0.287356
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3477dcb657d5c2ddc0c119b91b421d868e92f3de
2,114
py
Python
repos/system_upgrade/el8toel9/actors/sssdcheck/actor.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
null
null
null
repos/system_upgrade/el8toel9/actors/sssdcheck/actor.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
1
2022-03-07T15:34:11.000Z
2022-03-07T15:35:15.000Z
repos/system_upgrade/el8toel9/actors/sssdcheck/actor.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
null
null
null
from leapp.actors import Actor from leapp.models import SSSDConfig8to9 from leapp import reporting from leapp.reporting import Report, create_report from leapp.tags import IPUWorkflowTag, ChecksPhaseTag COMMON_REPORT_TAGS = [reporting.Tags.AUTHENTICATION, reporting.Tags.SECURITY] related = [ reporting.RelatedRes...
34.655738
86
0.668401
241
2,114
5.784232
0.410788
0.094692
0.054519
0.027977
0.06241
0.045911
0.045911
0
0
0
0
0.007079
0.264901
2,114
60
87
35.233333
0.889961
0.25071
0
0.108108
0
0
0.207097
0.016774
0
0
0
0
0
1
0.027027
false
0
0.135135
0
0.405405
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3478bed71b27fbe54d8a0036b43d502dea8a018c
11,308
py
Python
karborclient/common/base.py
thuylt2/karborclient
884d685c3cd1c1075e895791d7027b56c30dd328
[ "Apache-2.0" ]
null
null
null
karborclient/common/base.py
thuylt2/karborclient
884d685c3cd1c1075e895791d7027b56c30dd328
[ "Apache-2.0" ]
null
null
null
karborclient/common/base.py
thuylt2/karborclient
884d685c3cd1c1075e895791d7027b56c30dd328
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
32.776812
79
0.57508
1,406
11,308
4.438834
0.216216
0.035892
0.027239
0.020189
0.255248
0.236661
0.229931
0.216952
0.189232
0.189232
0
0.0037
0.330828
11,308
344
80
32.872093
0.821065
0.221348
0
0.257919
0
0
0.046193
0.003274
0
0
0
0
0
1
0.113122
false
0.004525
0.027149
0.013575
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3478c3f0864fb6087e6bd877632d57facc873d5f
1,640
py
Python
src/py_wizard/console_wiz_iface/ConsoleCurrencyQuestion.py
shearern/PyWizard
fac7f859707bc7fe36737caa794c159a66ea0789
[ "MIT" ]
null
null
null
src/py_wizard/console_wiz_iface/ConsoleCurrencyQuestion.py
shearern/PyWizard
fac7f859707bc7fe36737caa794c159a66ea0789
[ "MIT" ]
null
null
null
src/py_wizard/console_wiz_iface/ConsoleCurrencyQuestion.py
shearern/PyWizard
fac7f859707bc7fe36737caa794c159a66ea0789
[ "MIT" ]
null
null
null
''' Created on Sep 20, 2013 @author: nshearer ''' from ConsoleSimpleQuestion import ConsoleSimpleQuestion from ConsoleSimpleQuestion import UserAnswerValidationError class ConsoleCurrencyQuestion(ConsoleSimpleQuestion): def __init__(self, question): super(ConsoleCurrencyQuestion, self)._...
32.156863
83
0.568293
166
1,640
5.475904
0.445783
0.044004
0.033003
0.030803
0.044004
0.044004
0
0
0
0
0
0.031716
0.346341
1,640
50
84
32.8
0.816231
0.175
0
0.076923
0
0
0.063913
0
0
0
0
0
0
1
0.115385
false
0
0.076923
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3478fc67a95347f25251e8ec26bfb095d3803bf3
269
py
Python
rasplivestation/__init__.py
Krounet/RaspLiveStation
cd2fe9274197fa0da1cafe62738b4ffdf1ff3c96
[ "WTFPL" ]
null
null
null
rasplivestation/__init__.py
Krounet/RaspLiveStation
cd2fe9274197fa0da1cafe62738b4ffdf1ff3c96
[ "WTFPL" ]
null
null
null
rasplivestation/__init__.py
Krounet/RaspLiveStation
cd2fe9274197fa0da1cafe62738b4ffdf1ff3c96
[ "WTFPL" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Dec 19 14:48:39 2016 @author: Krounet e-mail : krounet@gmail.com """ __version__="0.0.1" from rasplivestation.livestreamerLaunching import livestreamerLaunching from rasplivestation.clienttoRasp import clienttoRasp
24.454545
72
0.743494
33
269
5.939394
0.787879
0.193878
0
0
0
0
0
0
0
0
0
0.069565
0.144981
269
11
73
24.454545
0.782609
0.3829
0
0
0
0
0.033557
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
34791ea44dea16eb3c5f6adbe45ec3f5e3a3b266
21,113
py
Python
peersockets.py
kaykurokawa/pushtx
8155665e17f494a22f65f32ec75002da846e5135
[ "MIT" ]
7
2015-07-28T20:35:05.000Z
2021-03-13T03:30:16.000Z
peersockets.py
kaykurokawa/pushtx
8155665e17f494a22f65f32ec75002da846e5135
[ "MIT" ]
1
2015-08-07T05:08:58.000Z
2015-08-13T16:32:13.000Z
peersockets.py
kaykurokawa/pushtx
8155665e17f494a22f65f32ec75002da846e5135
[ "MIT" ]
4
2015-11-08T10:30:58.000Z
2020-10-31T21:55:40.000Z
import logging import struct import socket import select import time from hashlib import sha256 import protocol import cryptoconfig USER_AGENT='/Satoshi:0.10.0/' #BIP 14 TCP_RECV_PACKET_SIZE=4096 SOCKET_BLOCK_SECONDS=0 # None means blocking calls, 0 means non blocking calls ADDRESS_TO_GET_IP='google.com' #connect t...
39.911153
115
0.614929
2,704
21,113
4.576553
0.150518
0.02101
0.033778
0.039919
0.344242
0.257212
0.165414
0.133495
0.089455
0.089455
0
0.01314
0.289916
21,113
528
116
39.986742
0.8123
0.119642
0
0.260241
0
0
0.051756
0
0
0
0
0
0.00241
1
0.084337
false
0.043373
0.019277
0.009639
0.178313
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3479528b4dfe049877b66a81c47c90223d199db2
2,330
py
Python
code/models/textcnn.py
hiyouga/Toxic_Detection
7545f71ebf8f65043db8e8fb0f5a8072b8b346cf
[ "MIT" ]
2
2022-01-01T06:37:41.000Z
2022-02-14T05:30:44.000Z
code/models/textcnn.py
hiyouga/Toxic_Detection
7545f71ebf8f65043db8e8fb0f5a8072b8b346cf
[ "MIT" ]
null
null
null
code/models/textcnn.py
hiyouga/Toxic_Detection
7545f71ebf8f65043db8e8fb0f5a8072b8b346cf
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from .env import multienv class TextCNN(nn.Module): def __init__(self, kernel_num, kernel_sizes, configs): super(TextCNN, self).__init__() WN, WD = configs['embedding_matrix'].shape KN = kernel_num KS = kernel_sizes C = configs['num_cla...
38.196721
112
0.626609
323
2,330
4.343653
0.321981
0.039914
0.035638
0.025659
0.085531
0.085531
0.051319
0.035638
0
0
0
0.010619
0.272532
2,330
60
113
38.833333
0.817109
0
0
0
0
0
0.11073
0
0
0
0
0
0
1
0.06
false
0
0.06
0.02
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
347a1384407b1b23219df7d5991b067d20546576
493
py
Python
app/views/index.py
HyperBCS/RedditNotify
11a67b41ef46d002a0a2de03b303a4d9118470f9
[ "MIT" ]
null
null
null
app/views/index.py
HyperBCS/RedditNotify
11a67b41ef46d002a0a2de03b303a4d9118470f9
[ "MIT" ]
null
null
null
app/views/index.py
HyperBCS/RedditNotify
11a67b41ef46d002a0a2de03b303a4d9118470f9
[ "MIT" ]
1
2020-10-06T10:33:30.000Z
2020-10-06T10:33:30.000Z
from flask import Blueprint, render_template, abort from jinja2 import TemplateNotFound from app.auth import require_role import config page = Blueprint('index', __name__, template_folder='templates') @page.route('/') @require_role('user') def show(*args, **kwargs): '''Render Homepage''' user = kwargs['user']...
30.8125
115
0.732252
62
493
5.596774
0.612903
0.080692
0.086455
0
0
0
0
0
0
0
0
0.009524
0.148073
493
16
116
30.8125
0.816667
0.030426
0
0
0
0
0.069767
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.461538
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
347aba8fa5e854a8f3da7d0aac119eb2c5bd06c8
2,534
py
Python
eopf-notebooks/eopf_product_data_structure/EOProductDataStructure.py
CSC-DPR/notebooks
6e1034ca5402a7abb11f428bd68ba03cf47a5e9f
[ "Apache-2.0" ]
null
null
null
eopf-notebooks/eopf_product_data_structure/EOProductDataStructure.py
CSC-DPR/notebooks
6e1034ca5402a7abb11f428bd68ba03cf47a5e9f
[ "Apache-2.0" ]
null
null
null
eopf-notebooks/eopf_product_data_structure/EOProductDataStructure.py
CSC-DPR/notebooks
6e1034ca5402a7abb11f428bd68ba03cf47a5e9f
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from dataclasses import dataclass, field from eopf.product.core import EOVariable, EOGroup, EOProduct, MetaData from typing import Any, Optional, Union import xarray as xr import numpy as np from utils import create_data class Builder(ABC): @abstractmethod def compute(sel...
36.2
135
0.700868
323
2,534
5.430341
0.260062
0.061574
0.097491
0.078677
0.436716
0.383124
0.366021
0.312999
0.312999
0.312999
0
0.001937
0.185083
2,534
69
136
36.724638
0.847458
0
0
0.454545
0
0
0.045527
0
0
0
0
0
0
1
0.072727
false
0
0.127273
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
347adf97af54d63546ef5ec7a08e7789395b81c9
12,026
py
Python
bsuite_exp/option_critic/option_critic.py
DavidSlayback/rlpyt
445adbd3917842caae0cae0d06e4b2866c8f1258
[ "MIT" ]
null
null
null
bsuite_exp/option_critic/option_critic.py
DavidSlayback/rlpyt
445adbd3917842caae0cae0d06e4b2866c8f1258
[ "MIT" ]
null
null
null
bsuite_exp/option_critic/option_critic.py
DavidSlayback/rlpyt
445adbd3917842caae0cae0d06e4b2866c8f1258
[ "MIT" ]
null
null
null
# python3 # pylint: disable=g-bad-file-header # Copyright 2019 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org...
37.347826
110
0.657492
1,547
12,026
4.908209
0.201034
0.011853
0.024628
0.018965
0.353747
0.310022
0.285263
0.285263
0.272224
0.239431
0
0.006953
0.234575
12,026
321
111
37.464174
0.817925
0.206885
0
0.294372
0
0
0.012443
0
0
0
0
0
0
1
0.069264
false
0
0.064935
0
0.281385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
347bdf3e4ec485ca7399c31e32fb019b8d475476
1,041
py
Python
__estimators__/decorator.py
dmitrydavydov96/quantmodels
609b453fec32d7def4d4aed40b8d25969ba8b702
[ "MIT" ]
null
null
null
__estimators__/decorator.py
dmitrydavydov96/quantmodels
609b453fec32d7def4d4aed40b8d25969ba8b702
[ "MIT" ]
null
null
null
__estimators__/decorator.py
dmitrydavydov96/quantmodels
609b453fec32d7def4d4aed40b8d25969ba8b702
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class __LinearModel(ABC): @abstractmethod def _sample_split(self): pass @abstractmethod def _fit(self): pass @abstractmethod def _predict(self): pass @abstractmethod def _metrics(self): pass ...
20.019231
49
0.555235
96
1,041
5.729167
0.21875
0.130909
0.152727
0.207273
0.105455
0.105455
0
0
0
0
0
0
0.322767
1,041
52
50
20.019231
0.780142
0.045149
0
0.742857
0
0
0
0
0
0
0
0
0
1
0.371429
false
0.171429
0.028571
0.171429
0.628571
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
0
0
0
5
347c5bc64ff65cc737eacd82e9e3755436605323
22,430
py
Python
sopel_modules/SpiceBot/Users.py
deathbybandaid/Sopel-SpiceBotSERV
816dddc88943b9194f3f0aa6558759eedd585343
[ "EFL-2.0" ]
2
2018-07-24T14:04:36.000Z
2019-01-11T21:41:50.000Z
sopel_modules/SpiceBot/Users.py
deathbybandaid/Sopel-SpiceBotSERV
816dddc88943b9194f3f0aa6558759eedd585343
[ "EFL-2.0" ]
947
2018-07-24T01:50:29.000Z
2019-04-14T22:40:57.000Z
sopel_modules/SpiceBot/Users.py
deathbybandaid/Sopel-SpiceBotSERV
816dddc88943b9194f3f0aa6558759eedd585343
[ "EFL-2.0" ]
6
2019-04-12T17:09:07.000Z
2019-09-30T05:56:15.000Z
# coding=utf8 from __future__ import unicode_literals, absolute_import, division, print_function """A way to track users""" import sopel from sopel.tools import Identifier from .Database import db as botdb from .Tools import is_number, inlist, similar, array_arrangesort, bot_privs, channel_privs from sopel_modules.s...
39.144852
181
0.575881
2,800
22,430
4.458929
0.096786
0.076892
0.028114
0.026912
0.607048
0.569243
0.529996
0.465278
0.429876
0.390629
0
0.001702
0.319126
22,430
572
182
39.213287
0.815807
0.127864
0
0.428571
0
0
0.07228
0
0
0
0
0.001748
0
1
0.086735
false
0.028061
0.022959
0.002551
0.204082
0.002551
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
347c6d0817ffa67e0ca371af20acaf843bc16260
444
py
Python
Lesson-1/uniqueOut.py
dhingratul/Data-Analysis
8aa9695375b143fbbcb1355e9ade7a57ab68592d
[ "MIT" ]
null
null
null
Lesson-1/uniqueOut.py
dhingratul/Data-Analysis
8aa9695375b143fbbcb1355e9ade7a57ab68592d
[ "MIT" ]
null
null
null
Lesson-1/uniqueOut.py
dhingratul/Data-Analysis
8aa9695375b143fbbcb1355e9ade7a57ab68592d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 8 13:48:29 2017 @author: dhingratul Input: Filename, columnName Output : Unique number of a column of data """ import pandas as pd def uniqueOut(filename, columnName): file = pd.read_csv(filename) return len(file[columnName].unique()) fi...
21.142857
62
0.722973
62
444
5.129032
0.758065
0.113208
0
0
0
0
0
0
0
0
0
0.034121
0.141892
444
20
63
22.2
0.800525
0.385135
0
0
0
0
0.015152
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
347cc706db977bf1fd2615b3c38710ac5e37e797
241
py
Python
packs/openstack/actions/keystone.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
5
2016-10-11T11:52:53.000Z
2017-06-15T05:21:05.000Z
packs/openstack/actions/keystone.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
25
2016-07-28T17:50:35.000Z
2017-09-25T09:26:18.000Z
packs/openstack/actions/keystone.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
2
2015-09-09T11:46:25.000Z
2020-11-21T10:10:49.000Z
#!/usr/bin/python import sys from lib import openstack from keystoneclient.v3.client import Client ostack = openstack.OpenStack('config.yaml') sess = ostack.getSession() client = Client(session=sess) print(ostack.run(client, sys.argv))
17.214286
43
0.767635
33
241
5.606061
0.606061
0
0
0
0
0
0
0
0
0
0
0.004673
0.112033
241
13
44
18.538462
0.859813
0.06639
0
0
0
0
0.049107
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
347e3514263a9fbe7cad08b6c30cdb4bb852249c
567
py
Python
LoadDataAndPrepare/Category_to_subcat_mappings/grooming_subcategories_yelp.py
ngrover2/Automatic_Lexicon_Induction
b58a1d55f294293161dc23ab2e6d669c1c5e90d8
[ "MIT" ]
null
null
null
LoadDataAndPrepare/Category_to_subcat_mappings/grooming_subcategories_yelp.py
ngrover2/Automatic_Lexicon_Induction
b58a1d55f294293161dc23ab2e6d669c1c5e90d8
[ "MIT" ]
null
null
null
LoadDataAndPrepare/Category_to_subcat_mappings/grooming_subcategories_yelp.py
ngrover2/Automatic_Lexicon_Induction
b58a1d55f294293161dc23ab2e6d669c1c5e90d8
[ "MIT" ]
null
null
null
grooming_categories = [ 'Beauty & Spas', 'Barbers', 'Hair Salons', 'Skin Care', 'Hair Extensions', 'Medical Spas', 'Waxing', 'Nail Salons', 'Eyelash Service', 'Hair Removal', 'Blow Dry/Out Services', 'Hair Stylists', 'Day Spas', 'Massage', 'Massage Therapy', 'Eyebrow Services', 'Tattoo Removal', 'Kids Hair Salons', 'Sa...
16.2
24
0.687831
69
567
5.637681
0.724638
0.077121
0
0
0
0
0
0
0
0
0
0
0.123457
567
35
25
16.2
0.782696
0
0
0
0
0
0.697183
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3480169d44a71f7ec54dde6653589dc344e1247c
10,063
py
Python
oss2/select_response.py
xkdcc/aliyun-oss-python-sdk
c34c10c830b3a0f884af4bd2a1b501b3d4e52038
[ "MIT" ]
840
2015-12-07T04:00:04.000Z
2022-03-25T15:04:53.000Z
oss2/select_response.py
xkdcc/aliyun-oss-python-sdk
c34c10c830b3a0f884af4bd2a1b501b3d4e52038
[ "MIT" ]
270
2016-01-11T01:55:46.000Z
2022-03-30T10:27:49.000Z
oss2/select_response.py
xkdcc/aliyun-oss-python-sdk
c34c10c830b3a0f884af4bd2a1b501b3d4e52038
[ "MIT" ]
424
2015-12-05T12:26:04.000Z
2022-03-23T10:57:16.000Z
import platform import struct import requests from .compat import to_bytes from .exceptions import RequestError from .exceptions import SelectOperationFailed from .exceptions import SelectOperationClientError from .exceptions import InconsistentError from . import utils import logging logger = logging.getLogger(__nam...
41.929167
164
0.617311
1,221
10,063
4.773956
0.141687
0.060216
0.031223
0.062275
0.499056
0.39029
0.349116
0.276548
0.219077
0.164179
0
0.027426
0.293451
10,063
239
165
42.104603
0.792405
0.018384
0
0.293194
0
0.005236
0.029078
0.002486
0
0
0
0
0
1
0.036649
false
0
0.052356
0.010471
0.167539
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3481af2e70769439b70e72f6601e14cbab1fe00b
10,622
py
Python
datagenerationpipeline.py
odeliss/wapetex
1ad6740f537724e3640175234ea5d120912a0c3c
[ "MIT" ]
null
null
null
datagenerationpipeline.py
odeliss/wapetex
1ad6740f537724e3640175234ea5d120912a0c3c
[ "MIT" ]
null
null
null
datagenerationpipeline.py
odeliss/wapetex
1ad6740f537724e3640175234ea5d120912a0c3c
[ "MIT" ]
null
null
null
import os import cv2 import imutils import random from skimage.transform import rotate #3 next ones used for the skewing from skimage.transform import warp from skimage import data from skimage.transform import ProjectiveTransform import numpy as np #this class will rotate, translate, crop, add noise, skew, flip verti...
40.234848
134
0.720015
1,341
10,622
5.683072
0.208054
0.015746
0.019682
0.028343
0.492193
0.392993
0.354809
0.334602
0.308883
0.308883
0
0.023799
0.165317
10,622
263
135
40.387833
0.835777
0.238185
0
0.323864
0
0
0.069408
0
0
0
0
0
0
1
0.045455
false
0
0.051136
0
0.107955
0.073864
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3481d1c2600c28f0691d9c43bd72bdf90e3ec7b3
3,381
py
Python
esheep_sdk/example/medusa/algorithm1/config.py
skygoo/esheep-sdk
b413bba8f703dbdd3752d0f7c5787bce030c0a67
[ "Apache-2.0" ]
3
2019-01-15T00:32:34.000Z
2019-05-14T09:04:38.000Z
esheep-sdk/example/medusa/algorithm1/config.py
seekloud/esheep-sdk
1c8978e2bf00f9f4838981a71a555c169a97fb21
[ "Apache-2.0" ]
null
null
null
esheep-sdk/example/medusa/algorithm1/config.py
seekloud/esheep-sdk
1c8978e2bf00f9f4838981a71a555c169a97fb21
[ "Apache-2.0" ]
3
2019-01-23T07:44:09.000Z
2019-03-24T15:11:16.000Z
# Author: Taoz # Date : 8/29/2018 # Time : 3:08 PM # FileName: config.py import time import sys import configparser import os def load_conf(conf_file): # 获取当前文件路径 current_path = os.path.abspath(__file__) # config.ini文件路径,获取当前目录的父目录的父目录与congig.ini拼接 default_conf_file = os.path.join(os.path.abspath(...
31.598131
117
0.736469
481
3,381
4.800416
0.274428
0.118233
0.101343
0.054569
0.12343
0.102209
0.080554
0.069294
0.043309
0.043309
0
0.010238
0.104407
3,381
106
118
31.896226
0.752312
0.091689
0
0.032258
0
0
0.231004
0.045455
0
0
0
0
0
1
0.016129
false
0
0.064516
0
0.096774
0.129032
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
caa12ce8ca3ac2e27dd3c56991cf44b0a7f75b35
523
py
Python
Kaspa/modules/extension_modules/time_module/timeModuleDe.py
karim-awad/kaspa
701d935dd215bfd9a4810a4430973b33fecec257
[ "MIT" ]
null
null
null
Kaspa/modules/extension_modules/time_module/timeModuleDe.py
karim-awad/kaspa
701d935dd215bfd9a4810a4430973b33fecec257
[ "MIT" ]
null
null
null
Kaspa/modules/extension_modules/time_module/timeModuleDe.py
karim-awad/kaspa
701d935dd215bfd9a4810a4430973b33fecec257
[ "MIT" ]
null
null
null
from Kaspa.modules.abstract_modules.abstractBriefingSubmodule import AbstractBriefingSubmodule class TimeModuleDe(AbstractBriefingSubmodule): module_name = "Time" language = "de" key_regexes = dict() def __init__(self): self.key_regexes = {'(?i).*?(?=wieviel)+.+?(?=uhr)+.': self.action} ...
26.15
94
0.674952
54
523
6.333333
0.574074
0.05848
0.087719
0
0
0
0
0
0
0
0
0
0.189293
523
20
95
26.15
0.806604
0
0
0
0
0
0.083969
0.05916
0
0
0
0
0
1
0.25
false
0
0.083333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
caa2a47d26942b262cea4bf3e3c7abe149fab5d2
659
py
Python
app/views.py
JN513/BEMOL
8be49825addb4680912c7a8cf3812ae835538909
[ "MIT" ]
1
2021-12-06T23:47:34.000Z
2021-12-06T23:47:34.000Z
app/views.py
JN513/BEMOL
8be49825addb4680912c7a8cf3812ae835538909
[ "MIT" ]
null
null
null
app/views.py
JN513/BEMOL
8be49825addb4680912c7a8cf3812ae835538909
[ "MIT" ]
1
2022-03-23T13:22:49.000Z
2022-03-23T13:22:49.000Z
from django.shortcuts import render, redirect from django.http import HttpResponse from app.forms import PersonForm # Create your views here. def home(request): return render(request, 'index.html') def cadastrados(request): return render(request, 'cadastrados.html') def form(request): data = {} data[...
27.458333
57
0.669196
77
659
5.714286
0.402597
0.109091
0.172727
0.118182
0.186364
0.186364
0.186364
0
0
0
0
0
0.201821
659
24
57
27.458333
0.836502
0.15478
0
0
0
0
0.090416
0
0
0
0
0
0
1
0.25
false
0
0.1875
0.125
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
caa368ee3f86b500c3851b882996cf49e1b7ed27
9,657
py
Python
sqlorm4es/sql.py
floatliang/sqlorm4es
343d8b350087e0d73784d70c4fa152febc0e0b14
[ "MIT" ]
6
2019-10-11T17:03:22.000Z
2019-10-14T02:11:02.000Z
sqlorm4es/sql.py
floatliang/sqlorm4es
343d8b350087e0d73784d70c4fa152febc0e0b14
[ "MIT" ]
1
2019-10-14T02:11:23.000Z
2019-10-14T12:41:25.000Z
sqlorm4es/sql.py
floatliang/sqlorm4es
343d8b350087e0d73784d70c4fa152febc0e0b14
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019/10/4 18:22 # @Author : floatsliang # @File : sql.py from typing import Union import re from copy import deepcopy from .epool import POOL from .compiler import QueryCompiler from .field import Expr, Field, OP_DICT, OP from .utils import result_wrapper, SearchResu...
33.53125
120
0.569224
1,203
9,657
4.334165
0.144638
0.025508
0.029919
0.01611
0.249521
0.181435
0.138282
0.125432
0.112006
0.094361
0
0.003582
0.306099
9,657
287
121
33.648084
0.774511
0.016051
0
0.247788
0
0.013274
0.114815
0.030065
0
0
0
0
0
1
0.154867
false
0.030973
0.030973
0.00885
0.331858
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
caa75e5d2bdfbfee786b817df8f19969fb19c54a
1,512
py
Python
klgists/misc/git.py
kokellab/klgists
e4028eda10789ee4eb61061b6ae8c4099715bf58
[ "Apache-2.0" ]
2
2019-09-15T01:53:46.000Z
2020-11-25T17:05:46.000Z
klgists/misc/git.py
kokellab/klgists
e4028eda10789ee4eb61061b6ae8c4099715bf58
[ "Apache-2.0" ]
16
2017-03-31T21:16:41.000Z
2020-04-05T00:41:25.000Z
klgists/misc/git.py
kokellab/klgists
e4028eda10789ee4eb61061b6ae8c4099715bf58
[ "Apache-2.0" ]
null
null
null
import re from klgists.common.exceptions import ExternalCommandFailed, ParsingFailedException from klgists.common import abcd @abcd.dataclass(frozen=True) class GitDescription: text: str tag: str commits: str hash: str is_dirty: bool is_broken: bool @staticmethod def parse(text: str): pat = re.compile('''(...
32.170213
113
0.707011
209
1,512
4.942584
0.464115
0.029042
0.048403
0.025169
0
0
0
0
0
0
0
0.035115
0.133598
1,512
46
114
32.869565
0.753435
0.101852
0
0.090909
0
0
0.15544
0.032568
0
0
0
0
0
1
0.151515
false
0
0.121212
0.060606
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
caa9a9876419f7cc024bc385bf5186f2f38087b3
118
py
Python
catkin_ws/src/my_package/scripts/service_client.py
SACHINKUMARHACKER/ROS
312daa76fbea288e5094684ad19ca52407fddbfa
[ "BSD-2-Clause" ]
null
null
null
catkin_ws/src/my_package/scripts/service_client.py
SACHINKUMARHACKER/ROS
312daa76fbea288e5094684ad19ca52407fddbfa
[ "BSD-2-Clause" ]
null
null
null
catkin_ws/src/my_package/scripts/service_client.py
SACHINKUMARHACKER/ROS
312daa76fbea288e5094684ad19ca52407fddbfa
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import String def main(): rospy.init_node('service_client')
16.857143
37
0.745763
19
118
4.473684
0.894737
0
0
0
0
0
0
0
0
0
0
0
0.135593
118
7
37
16.857143
0.833333
0.169492
0
0
0
0
0.142857
0
0
0
0
0
0
1
0.25
true
0
0.5
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
6
caaa92936e9bdaba1fb9ce03d01d0d8201e0f71d
702
py
Python
warp_stl.py
rcpedersen/stl-warper
2c838795f0527d1159907b477f09ca40ade6d121
[ "MIT" ]
3
2016-02-23T10:35:57.000Z
2017-09-11T00:14:03.000Z
warp_stl.py
rcpedersen/stl-warper
2c838795f0527d1159907b477f09ca40ade6d121
[ "MIT" ]
null
null
null
warp_stl.py
rcpedersen/stl-warper
2c838795f0527d1159907b477f09ca40ade6d121
[ "MIT" ]
null
null
null
from reader import read_stl_verticies from utils import split_triangles, push2d, top_wider, push3d from writer import Binary_STL_Writer if __name__ == '__main__': faces = [] triangles = read_stl_verticies("./input.stl") more_triangles = split_triangles(triangles,5) for triangle in more_triangles: ...
35.1
60
0.655271
95
702
4.6
0.515789
0.08238
0.073227
0
0
0
0
0
0
0
0
0.02439
0.240741
702
19
61
36.947368
0.795497
0.051282
0
0
0
0
0.046617
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
caaae961bfa85f149e075a0231d58bb0c94823f0
3,511
py
Python
dcms/news/tests.py
regiondavid/django-demo
4e1829c222d5f37ef222818b6f5afccc76a24f39
[ "MIT" ]
1
2019-08-31T16:54:28.000Z
2019-08-31T16:54:28.000Z
dcms/news/tests.py
regiondavid/django-demo
4e1829c222d5f37ef222818b6f5afccc76a24f39
[ "MIT" ]
9
2020-06-05T17:25:55.000Z
2022-01-13T00:39:47.000Z
dcms/news/tests.py
regiondavid/django-demo
4e1829c222d5f37ef222818b6f5afccc76a24f39
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime from django.utils import timezone from django.test import TestCase from django.urls import reverse from .models import Question # Create your tests here. class QuestionMethodTest(TestCase): def test_was_published_recently_with_future...
39.449438
94
0.679578
411
3,511
5.552311
0.216545
0.070114
0.070114
0.079755
0.703769
0.689746
0.640228
0.50745
0.457055
0.457055
0
0.009065
0.214469
3,511
89
95
39.449438
0.818347
0.104813
0
0.339286
0
0
0.130144
0
0
0
0
0
0.196429
1
0.160714
false
0
0.107143
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
caab037d5577b045c5e211a62efa05a95efb90b3
1,227
py
Python
sample/PutRowsWithDataFrame.py
nguyentientungduong/python_client
83e43e470f26291edb8ce09a99544c80e187f701
[ "Apache-2.0" ]
79
2018-03-28T14:13:24.000Z
2021-12-23T18:29:12.000Z
sample/PutRowsWithDataFrame.py
nguyentientungduong/python_client
83e43e470f26291edb8ce09a99544c80e187f701
[ "Apache-2.0" ]
20
2018-07-03T18:12:52.000Z
2022-01-06T03:11:11.000Z
sample/PutRowsWithDataFrame.py
nguyentientungduong/python_client
83e43e470f26291edb8ce09a99544c80e187f701
[ "Apache-2.0" ]
73
2018-08-11T09:45:25.000Z
2021-12-27T03:24:13.000Z
#!/usr/bin/python import griddb_python as griddb import sys import pandas factory = griddb.StoreFactory.get_instance() argv = sys.argv blob = bytearray([65, 66, 67, 68, 69, 70, 71, 72, 73, 74]) update = False containerName = "SamplePython_PutRows" try: # Get GridStore object gridstore = factory.get_store(h...
29.926829
124
0.620212
154
1,227
4.850649
0.532468
0.053548
0.028112
0.040161
0
0
0
0
0
0
0
0.033049
0.235534
1,227
40
125
30.675
0.763326
0.05216
0
0
0
0
0.091458
0
0
0
0
0
0
1
0
false
0.035714
0.107143
0
0.107143
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0