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
7c5e0af3e6fbbe4ea83ab673bc82739437ec8f74
453
py
Python
python/day5-1.py
Aerdan/adventcode-2020
83120aa8c7fc9d1f2d34780610401e3c6d4f583b
[ "BSD-1-Clause" ]
null
null
null
python/day5-1.py
Aerdan/adventcode-2020
83120aa8c7fc9d1f2d34780610401e3c6d4f583b
[ "BSD-1-Clause" ]
null
null
null
python/day5-1.py
Aerdan/adventcode-2020
83120aa8c7fc9d1f2d34780610401e3c6d4f583b
[ "BSD-1-Clause" ]
null
null
null
#!/usr/bin/env python3 def binary(code, max, bits): ret = [] for i in range(max): ret.append(bits[code[i]]) return int(''.join(ret), base=2) mid = 0 with open('input5.txt') as f: for line in f.readlines(): line = line[:-1] row = binary(line[:7], 7, {'F': '0', 'B': '1'}) ...
19.695652
55
0.487859
73
453
3.027397
0.589041
0.090498
0.099548
0
0
0
0
0
0
0
0
0.044025
0.298013
453
22
56
20.590909
0.650943
0.046358
0
0
0
0
0.04186
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.142857
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c5e5eb731f86fd4dc537483a440f05753a38fab
600
py
Python
custom_stocks_py/base.py
baramsalem/Custom-stocks-py
5beeb7b6f93755ec7c00c25763accf6a52f8bbaf
[ "Unlicense" ]
null
null
null
custom_stocks_py/base.py
baramsalem/Custom-stocks-py
5beeb7b6f93755ec7c00c25763accf6a52f8bbaf
[ "Unlicense" ]
null
null
null
custom_stocks_py/base.py
baramsalem/Custom-stocks-py
5beeb7b6f93755ec7c00c25763accf6a52f8bbaf
[ "Unlicense" ]
null
null
null
""" custom_stocks_py base module. This is the principal module of the custom_stocks_py project. here you put your main classes and objects. Be creative! do whatever you want! If you want to replace this with a Flask application run: $ make init and then choose `flask` as template. """ class BaseClass: de...
18.181818
61
0.646667
81
600
4.654321
0.604938
0.079576
0.074271
0
0
0
0
0
0
0
0
0
0.265
600
32
62
18.75
0.854875
0.523333
0
0
0
0
0.183333
0
0
0
0
0
0
1
0.428571
false
0
0
0.142857
1
0
0
0
0
null
0
0
0
0
0
0
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
7c5fa2ddc156126b4dccbe0c281c6059666eccf4
501
py
Python
dummy_server.py
dpmkl/heimdall
184f169f0be9f6b6b708364725f5db8b1f249d9c
[ "MIT" ]
null
null
null
dummy_server.py
dpmkl/heimdall
184f169f0be9f6b6b708364725f5db8b1f249d9c
[ "MIT" ]
null
null
null
dummy_server.py
dpmkl/heimdall
184f169f0be9f6b6b708364725f5db8b1f249d9c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import SimpleHTTPServer import SocketServer import logging PORT = 8000 class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_GET(self): self.send_response(200) self.send_header('Content-type','text/html') self.end_headers() self.wfile.write("Hel...
25.05
64
0.682635
59
501
5.711864
0.745763
0.047478
0
0
0
0
0
0
0
0
0
0.019802
0.193613
501
20
65
25.05
0.814356
0.03992
0
0
0
0
0.081081
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c5ff08483bb708102f0397eb8e76c57f5a75cff
59
py
Python
cimsparql/__init__.py
nalu-svk/cimsparql
e69b0799a2bbd70027e2c8bb9970574991597ca5
[ "MIT" ]
null
null
null
cimsparql/__init__.py
nalu-svk/cimsparql
e69b0799a2bbd70027e2c8bb9970574991597ca5
[ "MIT" ]
null
null
null
cimsparql/__init__.py
nalu-svk/cimsparql
e69b0799a2bbd70027e2c8bb9970574991597ca5
[ "MIT" ]
null
null
null
"""Library for CIM sparql queries""" __version__ = "1.9.0"
19.666667
36
0.677966
9
59
4
1
0
0
0
0
0
0
0
0
0
0
0.058824
0.135593
59
2
37
29.5
0.647059
0.508475
0
0
0
0
0.217391
0
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
7c605332955c4b043be9f4d88d8eb7ca6bb505c8
934
py
Python
scripts/49-cat-logs.py
jmviz/xd
f905e5c61b2835073b19cc3fa0d6917432fa7ece
[ "MIT" ]
179
2016-03-05T03:14:56.000Z
2022-02-12T22:48:55.000Z
scripts/49-cat-logs.py
jmviz/xd
f905e5c61b2835073b19cc3fa0d6917432fa7ece
[ "MIT" ]
24
2016-02-14T07:43:42.000Z
2021-12-14T01:09:54.000Z
scripts/49-cat-logs.py
jmviz/xd
f905e5c61b2835073b19cc3fa0d6917432fa7ece
[ "MIT" ]
25
2016-02-19T20:35:03.000Z
2022-01-31T09:15:44.000Z
#!/usr/bin/env python3 # Usage: # $0 -o log.txt products/ # # concatenates .log files (even those in subdirs or .zip) and combines into a single combined.log from xdfile.utils import find_files_with_time, open_output, get_args import boto3 # from boto.s3.connection import S3Connection import os def main(): a...
29.1875
121
0.671306
140
934
4.371429
0.578571
0.058824
0.042484
0.055556
0
0
0
0
0
0
0
0.019894
0.192719
934
31
122
30.129032
0.791777
0.275161
0
0
0
0
0.113772
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.266667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c606dd98dcd0e38522a604061eae8d10c8862e6
1,844
py
Python
manuscript/link_checker.py
wuyang1002431655/tango_with_django_19
42d5878e4a12037daf04d785826357cd4351a16d
[ "Apache-2.0" ]
244
2016-04-12T15:39:47.000Z
2021-09-10T07:43:55.000Z
manuscript/link_checker.py
wuyang1002431655/tango_with_django_19
42d5878e4a12037daf04d785826357cd4351a16d
[ "Apache-2.0" ]
57
2016-03-29T22:12:09.000Z
2019-08-26T07:50:11.000Z
manuscript/link_checker.py
wuyang1002431655/tango_with_django_19
42d5878e4a12037daf04d785826357cd4351a16d
[ "Apache-2.0" ]
311
2016-04-27T04:41:02.000Z
2021-09-19T14:03:35.000Z
# Checks for broken links in the book chapters, printing the status of each link found to stdout. # The Python package 'requests' must be installed and available for this simple module to work. # Author: David Maxwell # Date: 2017-02-14 import re import requests def main(chapters_list_filename, hide_success=True): ""...
28.369231
103
0.645879
256
1,844
4.496094
0.441406
0.069505
0.034752
0.03649
0
0
0
0
0
0
0
0.023571
0.240781
1,844
65
104
28.369231
0.798571
0.170824
0
0.125
0
0
0.13836
0.096633
0
0
0
0
0
0
null
null
0
0.05
null
null
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7c607c9719bd98d3bde94fd9eadb9fd81b05f7b7
116
py
Python
service/__init__.py
2890841438/fast-index.py
fa59f38ed009b4bdf5dbf27d8619d31f8b681118
[ "MIT" ]
4
2020-09-05T03:18:44.000Z
2020-09-15T05:56:54.000Z
utils/__init__.py
2890841438/fast-index.py
fa59f38ed009b4bdf5dbf27d8619d31f8b681118
[ "MIT" ]
null
null
null
utils/__init__.py
2890841438/fast-index.py
fa59f38ed009b4bdf5dbf27d8619d31f8b681118
[ "MIT" ]
null
null
null
# -*- coding = utf-8 -*- # @Time: 2020/9/4 18:52 # @Author: dimples_yj # @File: __init__.py.py # @Software: PyCharm
19.333333
24
0.612069
18
116
3.666667
0.944444
0
0
0
0
0
0
0
0
0
0
0.113402
0.163793
116
5
25
23.2
0.56701
0.905172
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
7c62e1ba59e97f238e09a86895f6c890c24d960e
5,819
py
Python
CLIP-ViL-Direct/vqa/pythia_clip_grid_feature.py
HermannLiang/CLIP-ViL
49c28bc5ece1aacfcbfd9c8810db70663ca0516a
[ "MIT" ]
null
null
null
CLIP-ViL-Direct/vqa/pythia_clip_grid_feature.py
HermannLiang/CLIP-ViL
49c28bc5ece1aacfcbfd9c8810db70663ca0516a
[ "MIT" ]
null
null
null
CLIP-ViL-Direct/vqa/pythia_clip_grid_feature.py
HermannLiang/CLIP-ViL
49c28bc5ece1aacfcbfd9c8810db70663ca0516a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Grid features extraction script. """ import argparse import os import torch import tqdm from fvcore.common.file_io import PathManager from detectron2.checkpoint import DetectionCheckpointer from detectron2.config import get_cfg from detectron2.engine import default_setup from detectron2.eva...
40.978873
131
0.687231
781
5,819
4.8758
0.318822
0.036765
0.031513
0.044118
0.265756
0.221901
0.19354
0.128414
0.120273
0.120273
0
0.048473
0.195223
5,819
141
132
41.269504
0.764681
0.129232
0
0.117647
0
0
0.114138
0.018095
0
0
0
0
0
1
0.058824
false
0
0.147059
0
0.22549
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c6577b07dcade6abb36fc14d4e83aa262bb9bef
2,514
py
Python
src/node.py
aerendon/blockchain-basics
e3168afd097b26d23a09fd30e74e07b695e577d1
[ "MIT" ]
6
2018-08-09T14:36:35.000Z
2021-03-23T06:53:01.000Z
src/node.py
aerendon/blockchain-basics
e3168afd097b26d23a09fd30e74e07b695e577d1
[ "MIT" ]
null
null
null
src/node.py
aerendon/blockchain-basics
e3168afd097b26d23a09fd30e74e07b695e577d1
[ "MIT" ]
null
null
null
from flask import Flask, request import time import requests import json from blockchain import Blockchain from block import Block app = Flask(__name__) blockchain = Blockchain() peers = set() @app.route('/add_nodes', methods=['POST']) def register_new_peers(): nodes = request.get_json() if not nodes: ...
25.917526
120
0.668258
323
2,514
5.003096
0.278638
0.029703
0.02599
0.024752
0
0
0
0
0
0
0
0.011022
0.206046
2,514
96
121
26.1875
0.798597
0
0
0
0
0
0.138027
0
0
0
0
0
0
1
0.112676
false
0
0.084507
0.014085
0.366197
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c67194eb5ab82333266efd8ffcbf64d199afeff
637
py
Python
Luke 02/02.py
Nilzone-/Knowit-Julekalender-2017
66ef8a651277e0fef7d9278f3f129410b5b98ee0
[ "MIT" ]
null
null
null
Luke 02/02.py
Nilzone-/Knowit-Julekalender-2017
66ef8a651277e0fef7d9278f3f129410b5b98ee0
[ "MIT" ]
null
null
null
Luke 02/02.py
Nilzone-/Knowit-Julekalender-2017
66ef8a651277e0fef7d9278f3f129410b5b98ee0
[ "MIT" ]
null
null
null
import numpy as np size = 1000 def create_wall(x, y): return "{0:b}".format(x**3 + 12*x*y + 5*x*y**2).count("1") & 1 def build_grid(): return np.array([create_wall(j+1, i+1) for i in range(size) for j in range(size)]).reshape(size, size) def visit(grid, x=0, y=0): if grid[x][y]: return grid[x][y] = 1 ...
20.548387
104
0.620094
133
637
2.932331
0.308271
0.035897
0.128205
0.053846
0.187179
0.071795
0
0
0
0
0
0.050193
0.186813
637
31
105
20.548387
0.702703
0
0
0.095238
0
0
0.106583
0
0
0
0
0
0
0
null
null
0
0.047619
null
null
0.238095
0
0
0
null
0
0
0
0
0
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
7c67a7fccb58ad0744513e429cedf4044452005e
311
py
Python
databases/music.py
danielicapui/programa-o-avancada
d0e5b876b951ae04a46ffcda0dc0143e3f7114d9
[ "MIT" ]
null
null
null
databases/music.py
danielicapui/programa-o-avancada
d0e5b876b951ae04a46ffcda0dc0143e3f7114d9
[ "MIT" ]
null
null
null
databases/music.py
danielicapui/programa-o-avancada
d0e5b876b951ae04a46ffcda0dc0143e3f7114d9
[ "MIT" ]
null
null
null
from utills import * conn,cur=start('music') criarTabela("tracks","title text,plays integer") music=[('trunder',20), ('my way',15)] insertInto("tracks","title,plays",music) #cur.executemany("insert into tracks (title,plays) values (?,?)",music) buscaTabela("tracks","title") conn.commit() conn.close()
25.916667
71
0.691318
40
311
5.375
0.65
0.204651
0.148837
0
0
0
0
0
0
0
0
0.014235
0.096463
311
11
72
28.272727
0.75089
0.22508
0
0
0
0
0.316667
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
0
0
0
0
0
0
0
0
1
7c684d5c56bbbdacbeb8612a9b08130a83635f9a
13,250
py
Python
video_analysis/code/scene_postprocess.py
pdxcycling/carv.io
cce0f91a76d3ceed714b3625d415131fd9540899
[ "MIT" ]
null
null
null
video_analysis/code/scene_postprocess.py
pdxcycling/carv.io
cce0f91a76d3ceed714b3625d415131fd9540899
[ "MIT" ]
null
null
null
video_analysis/code/scene_postprocess.py
pdxcycling/carv.io
cce0f91a76d3ceed714b3625d415131fd9540899
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import re from collections import Counter from flow_preprocess import FlowPreprocess class ScenePostprocess(object): """ Heavy-lifting macro-feature class """ def __init__(self, flow_df, quality_df, remove_transitions=False): """ Default construct...
35.05291
128
0.60234
1,702
13,250
4.480024
0.174501
0.029508
0.035803
0.016787
0.309115
0.268459
0.229246
0.183475
0.153311
0.132852
0
0.006762
0.31917
13,250
377
129
35.145889
0.838488
0.367774
0
0.109489
0
0
0.066629
0.003146
0
0
0
0.013263
0
1
0.138686
false
0.007299
0.036496
0
0.313869
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7c6a104628420af03301492fef43b77ba98e1a64
6,840
py
Python
examples/pytorch/mnist/plot.py
ThomasRot/rational_activations
1fa26d1ee5f3c916eda00c899afa96eccb960143
[ "MIT" ]
null
null
null
examples/pytorch/mnist/plot.py
ThomasRot/rational_activations
1fa26d1ee5f3c916eda00c899afa96eccb960143
[ "MIT" ]
null
null
null
examples/pytorch/mnist/plot.py
ThomasRot/rational_activations
1fa26d1ee5f3c916eda00c899afa96eccb960143
[ "MIT" ]
null
null
null
import torch import numpy as np import pickle torch.manual_seed(17) torch.backends.cudnn.deterministic = True torch.backends.cudnn.benchmark = False np.random.seed(17) import argparse import torch.nn as nn import torch.nn.functional as F import matplotlib import os from rational.torch import Rational, RecurrentRationa...
45.90604
134
0.55424
739
6,840
4.987821
0.339648
0.053717
0.032284
0.016278
0.254205
0.197504
0.197504
0.156267
0.156267
0.133478
0
0.018986
0.322368
6,840
148
135
46.216216
0.776268
0.066374
0
0.178862
0
0.00813
0.12553
0.018202
0
0
0
0
0
1
0.01626
false
0
0.105691
0
0.130081
0.065041
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c6a234a8099f1c0f0c886e2b520d9f41e36c635
7,093
py
Python
fts/fluxrss.py
AetherBlack/Veille-Informatique
e80451c5eb21f43ac1a9baac3342ad0d4102d18b
[ "Linux-OpenIB" ]
null
null
null
fts/fluxrss.py
AetherBlack/Veille-Informatique
e80451c5eb21f43ac1a9baac3342ad0d4102d18b
[ "Linux-OpenIB" ]
null
null
null
fts/fluxrss.py
AetherBlack/Veille-Informatique
e80451c5eb21f43ac1a9baac3342ad0d4102d18b
[ "Linux-OpenIB" ]
null
null
null
#!/usr/bin/python3 from urllib.parse import urlparse import feedparser import requests import asyncio import discord import hashlib import os from const import CHANNEL_RSS, WAIT_UNTIL_NEW_CHECK, \ SQLITE_FOLDER_NAME, SQLITE_FILE_NAME from fts.database import Database from fts.cleandatabase import CleanDatabase ...
36.188776
123
0.537572
814
7,093
4.603194
0.219902
0.024019
0.020817
0.022418
0.151855
0.127035
0.083267
0.083267
0.083267
0.064585
0
0.005692
0.380798
7,093
195
124
36.374359
0.84745
0.302552
0
0.08
0
0
0.029224
0
0
0
0.001758
0
0
1
0.053333
false
0
0.133333
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c6a29fe050821e14428d8ec0b7f5f5436d84fcb
11,691
py
Python
src/poke_env/player/player_network_interface.py
kiyohiro8/poke-env
7a1a4b155e8a73bd712d44e70c4192f8032d7e6f
[ "MIT" ]
null
null
null
src/poke_env/player/player_network_interface.py
kiyohiro8/poke-env
7a1a4b155e8a73bd712d44e70c4192f8032d7e6f
[ "MIT" ]
null
null
null
src/poke_env/player/player_network_interface.py
kiyohiro8/poke-env
7a1a4b155e8a73bd712d44e70c4192f8032d7e6f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """This module defines a base class for communicating with showdown servers. """ import json import logging import requests import websockets # pyre-ignore from abc import ABC from abc import abstractmethod from asyncio import CancelledError from asyncio import ensure_future from asyncio impo...
36.307453
88
0.610042
1,295
11,691
5.34749
0.214672
0.039856
0.015018
0.017329
0.134874
0.061083
0.042455
0.034079
0.022527
0.01704
0
0.003677
0.302113
11,691
321
89
36.420561
0.845079
0.146694
0
0.112903
0
0
0.09367
0.008747
0
0
0
0
0.037634
1
0.032258
false
0.026882
0.096774
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c6b5cb13f50ba4f535dc82987b58898ad693a5f
5,966
py
Python
data/external/repositories/42139/KDDCup13Track2-master/blocking.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories/42139/KDDCup13Track2-master/blocking.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories/42139/KDDCup13Track2-master/blocking.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
#!/usr/bin/env python from common import * import csv import argparse from unidecode import unidecode from nameparser import constants as npc from collections import defaultdict import cPickle as pickle import re stopwords_custom = set(['document', 'preparation', 'system', 'consortium', 'committee', 'international', '...
29.979899
703
0.632417
936
5,966
3.930556
0.192308
0.014134
0.030443
0.074205
0.563468
0.555858
0.555858
0.537374
0.537374
0.522153
0
0.029124
0.177003
5,966
199
704
29.9799
0.720163
0.016929
0
0.58642
0
0
0.15714
0.005289
0
0
0
0
0
0
null
null
0
0.049383
null
null
0.092593
0
0
0
null
0
0
0
0
0
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
7c6be61ef0d7cd7c0ad0f76e6b1f86ee30283323
1,180
py
Python
resources/dot_PyCharm/system/python_stubs/-762174762/PySide/QtCore/QAbstractFileEngineIterator.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
1
2020-04-20T02:27:20.000Z
2020-04-20T02:27:20.000Z
resources/dot_PyCharm/system/python_stubs/cache/16012662ddca113c1f50140f9e0d3bd290a511015767475cf362e5267760f062/PySide/QtCore/QAbstractFileEngineIterator.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
resources/dot_PyCharm/system/python_stubs/cache/16012662ddca113c1f50140f9e0d3bd290a511015767475cf362e5267760f062/PySide/QtCore/QAbstractFileEngineIterator.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
# encoding: utf-8 # module PySide.QtCore # from C:\Python27\lib\site-packages\PySide\QtCore.pyd # by generator 1.147 # no doc # imports import Shiboken as __Shiboken class QAbstractFileEngineIterator(__Shiboken.Object): # no doc def currentFileInfo(self, *args, **kwargs): # real signature unknown pas...
25.652174
77
0.644915
142
1,180
5.190141
0.394366
0.176391
0.27137
0.21981
0.496608
0.496608
0.496608
0.445047
0
0
0
0.007865
0.245763
1,180
45
78
26.222222
0.820225
0.397458
0
0.434783
0
0
0
0
0
0
0
0
0
1
0.434783
false
0.434783
0.043478
0
0.521739
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
1
0
1
0
0
1
0
0
5
7c6cbf4764a2e4e9b78da1978c82aa4f5d7862ce
3,637
py
Python
tests/conftest.py
priyatharsan/beyond
1061b870407d316d43e4d1351a7ec026629685ae
[ "MIT" ]
null
null
null
tests/conftest.py
priyatharsan/beyond
1061b870407d316d43e4d1351a7ec026629685ae
[ "MIT" ]
null
null
null
tests/conftest.py
priyatharsan/beyond
1061b870407d316d43e4d1351a7ec026629685ae
[ "MIT" ]
null
null
null
import numpy as np from pytest import fixture, mark, skip from unittest.mock import patch from pathlib import Path from beyond.config import config from beyond.dates.eop import Eop from beyond.frames.stations import create_station from beyond.io.tle import Tle from beyond.propagators.keplernum import KeplerNum from be...
27.141791
89
0.653011
495
3,637
4.678788
0.452525
0.030225
0.020725
0.028497
0.208981
0.145078
0.11399
0.11399
0.11399
0.079447
0
0.150788
0.232334
3,637
133
90
27.345865
0.678725
0.119054
0
0.2
0
0
0.182193
0.008555
0
0
0
0
0
1
0.122222
false
0.011111
0.144444
0.033333
0.377778
0.011111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c6cc14ec8ce3c7dc9875cccdf742d57d079973d
10,181
py
Python
diofant/tests/integrals/test_heurisch.py
Electric-tric/diofant
92c4bf0ef301e5d6f0cfab545b036e1cb7de3c0a
[ "BSD-3-Clause" ]
1
2021-08-22T09:34:15.000Z
2021-08-22T09:34:15.000Z
diofant/tests/integrals/test_heurisch.py
Electric-tric/diofant
92c4bf0ef301e5d6f0cfab545b036e1cb7de3c0a
[ "BSD-3-Clause" ]
null
null
null
diofant/tests/integrals/test_heurisch.py
Electric-tric/diofant
92c4bf0ef301e5d6f0cfab545b036e1cb7de3c0a
[ "BSD-3-Clause" ]
null
null
null
import pytest from diofant import (Add, Derivative, Ei, Eq, Function, I, Integral, LambertW, Piecewise, Rational, Sum, Symbol, acos, asin, asinh, besselj, cos, cosh, diff, erf, exp, li, log, pi, ratsimp, root, simplify, sin, sinh, sqrt, symbols, tan) from ...
34.511864
112
0.534722
1,869
10,181
2.87801
0.107009
0.030117
0.072504
0.023796
0.466072
0.342443
0.232757
0.204313
0.189812
0.138873
0
0.047576
0.232001
10,181
294
113
34.629252
0.640363
0.122778
0
0.086957
0
0
0.00146
0
0
0
0
0.003401
0.467391
1
0.141304
false
0
0.016304
0.005435
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
7c6d185f736a9be6f5e0a171cd9fc68f8a4ce031
12,105
py
Python
kornia/color/adjust.py
carlosb1/kornia
a2b34d497314e7ed65f114401efdd3cc9ba2077c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/color/adjust.py
carlosb1/kornia
a2b34d497314e7ed65f114401efdd3cc9ba2077c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/color/adjust.py
carlosb1/kornia
a2b34d497314e7ed65f114401efdd3cc9ba2077c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from typing import Union import torch import torch.nn as nn from kornia.color.hsv import rgb_to_hsv, hsv_to_rgb from kornia.constants import pi def adjust_saturation_raw(input: torch.Tensor, saturation_factor: Union[float, torch.Tensor]) -> torch.Tensor: r"""Adjust color saturation of an image. Expecting input ...
34.884726
110
0.671871
1,695
12,105
4.694985
0.107965
0.131314
0.056296
0.058055
0.677934
0.656446
0.613471
0.541468
0.439055
0.396708
0
0.006588
0.222553
12,105
346
111
34.985549
0.839018
0.316563
0
0.255034
0
0
0.12825
0.009215
0
0
0
0
0
1
0.114094
false
0
0.033557
0.033557
0.261745
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c6ea33d579371cc05a40f107c83af6d179fcd7a
1,418
py
Python
pommerman/__init__.py
rmccann01/playground
354041cd1d9b70ffe82c18fb5b4035fab721eb92
[ "Apache-2.0" ]
725
2018-02-14T09:48:18.000Z
2022-03-29T03:04:28.000Z
pommerman/__init__.py
rmccann01/playground
354041cd1d9b70ffe82c18fb5b4035fab721eb92
[ "Apache-2.0" ]
214
2018-02-16T22:00:41.000Z
2022-03-11T23:26:20.000Z
pommerman/__init__.py
rmccann01/playground
354041cd1d9b70ffe82c18fb5b4035fab721eb92
[ "Apache-2.0" ]
265
2018-02-15T05:33:46.000Z
2022-03-11T03:04:17.000Z
'''Entry point into the pommerman module''' import gym import inspect from . import agents from . import configs from . import constants from . import forward_model from . import helpers from . import utility from . import network gym.logger.set_level(40) REGISTRY = None def _register(): global REGISTRY REGI...
26.754717
76
0.682652
185
1,418
5.043243
0.437838
0.085745
0.02358
0
0
0
0
0
0
0
0
0.001805
0.218618
1,418
52
77
27.269231
0.840253
0.131171
0
0
0
0
0.083607
0
0
0
0
0
0.054054
1
0.054054
false
0
0.27027
0
0.351351
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c7069a54d49756f83e36923521eba70ab74f6c7
139
py
Python
demo/demo/accounts/urls.py
caravancoop/rest-auth-toolkit
425bf293987f7128d9538f27a5eca7e47ba84217
[ "MIT" ]
1
2019-12-23T21:51:06.000Z
2019-12-23T21:51:06.000Z
demo/demo/accounts/urls.py
caravancoop/rest-framework-auth-toolkit
425bf293987f7128d9538f27a5eca7e47ba84217
[ "MIT" ]
127
2017-10-27T15:20:01.000Z
2022-03-07T04:09:15.000Z
demo/demo/accounts/urls.py
caravancoop/rest-auth-toolkit
425bf293987f7128d9538f27a5eca7e47ba84217
[ "MIT" ]
2
2018-01-03T16:22:51.000Z
2019-12-23T21:51:54.000Z
from django.urls import path from .views import ProfileView urlpatterns = [ path('', ProfileView.as_view(), name='user-profile'), ]
15.444444
57
0.705036
17
139
5.705882
0.764706
0
0
0
0
0
0
0
0
0
0
0
0.158273
139
8
58
17.375
0.82906
0
0
0
0
0
0.086331
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
1
0
0
0
0
3
7c70c6e774d6a8ca53417d3cc9999e257be28aad
1,093
py
Python
test/test_pipeline/components/classification/test_passive_aggressive.py
vardaan-raj/auto-sklearn
4597152e3a60cd6f6e32719a3bef26e13951b102
[ "BSD-3-Clause" ]
1
2021-02-21T16:44:44.000Z
2021-02-21T16:44:44.000Z
test/test_pipeline/components/classification/test_passive_aggressive.py
vardaan-raj/auto-sklearn
4597152e3a60cd6f6e32719a3bef26e13951b102
[ "BSD-3-Clause" ]
9
2021-02-12T17:52:34.000Z
2021-06-26T11:37:41.000Z
test/test_pipeline/components/classification/test_passive_aggressive.py
vardaan-raj/auto-sklearn
4597152e3a60cd6f6e32719a3bef26e13951b102
[ "BSD-3-Clause" ]
1
2021-07-06T23:02:42.000Z
2021-07-06T23:02:42.000Z
import sklearn.linear_model from autosklearn.pipeline.components.classification.passive_aggressive import \ PassiveAggressive from .test_base import BaseClassificationComponentTest class PassiveAggressiveComponentTest(BaseClassificationComponentTest): __test__ = True res = dict() res["default_iris...
30.361111
79
0.725526
123
1,093
6.105691
0.447154
0.11984
0.106525
0.026631
0
0
0
0
0
0
0
0.10989
0.167429
1,093
35
80
31.228571
0.715385
0
0
0
0
0
0.26624
0.15279
0
0
0
0
0
1
0
false
0.185185
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7c71eb8f52ad23f62b8d9e0d27dc37cf322f70c3
3,148
py
Python
tensorflow_datasets/structured/dart/dart_test.py
harsh020/datasets
b4ad3617b279ec65356e696c4c860458621976f6
[ "Apache-2.0" ]
1
2020-12-10T06:37:27.000Z
2020-12-10T06:37:27.000Z
tensorflow_datasets/structured/dart/dart_test.py
Jinwook-shim/datasets
815037e87150e3c8a557d91a68b07e8ffb6a2a86
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/structured/dart/dart_test.py
Jinwook-shim/datasets
815037e87150e3c8a557d91a68b07e8ffb6a2a86
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
28.880734
80
0.493011
294
3,148
5.132653
0.482993
0.042412
0.039761
0.055666
0.2167
0.155732
0.132538
0.132538
0.132538
0.063618
0
0.018568
0.401207
3,148
108
81
29.148148
0.781963
0.19155
0
0.211765
0
0
0.38361
0.017419
0
0
0
0
0.011765
1
0.011765
false
0
0.058824
0
0.105882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c72f8f31e7cf39a7edd3dbce8585cf8da069b38
9,085
py
Python
exp/exp_informer_dad.py
AdamLohSg/GTA
bf6a745a6e28e365466e76360a15ca10ce61e009
[ "Apache-2.0" ]
8
2022-01-19T20:47:36.000Z
2022-03-20T05:11:04.000Z
exp/exp_informer_dad.py
AdamLohSg/GTA
bf6a745a6e28e365466e76360a15ca10ce61e009
[ "Apache-2.0" ]
2
2022-02-17T06:14:25.000Z
2022-02-17T08:43:57.000Z
exp/exp_informer_dad.py
AdamLohSg/GTA
bf6a745a6e28e365466e76360a15ca10ce61e009
[ "Apache-2.0" ]
5
2022-02-15T04:16:27.000Z
2022-03-29T01:21:41.000Z
from data.data_loader_dad import ( NASA_Anomaly, WADI ) from exp.exp_basic import Exp_Basic from models.model import Informer from utils.tools import EarlyStopping, adjust_learning_rate from utils.metrics import metric from sklearn.metrics import classification_report import numpy as np import torch import t...
36.051587
113
0.557292
1,115
9,085
4.295067
0.165022
0.060138
0.037586
0.045103
0.349551
0.314053
0.30403
0.289831
0.275632
0.26018
0
0.006192
0.324491
9,085
252
114
36.051587
0.774157
0.013979
0
0.188482
0
0.005236
0.038217
0
0
0
0
0
0
1
0.041885
false
0
0.073298
0
0.157068
0.041885
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c73ce1a389f347a8681ff6c30c8fe84612d252e
9,270
py
Python
tests/components/mysensors/conftest.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/mysensors/conftest.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
tests/components/mysensors/conftest.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Provide common mysensors fixtures.""" from __future__ import annotations from collections.abc import AsyncGenerator, Callable, Generator import json from typing import Any from unittest.mock import AsyncMock, MagicMock, patch from mysensors import BaseSyncGateway from mysensors.persistence import MySensorsJSONDeco...
31.530612
87
0.73247
1,147
9,270
5.681779
0.145597
0.060764
0.041737
0.030382
0.369649
0.268835
0.144852
0.070278
0.058616
0.044192
0
0.002317
0.161812
9,270
293
88
31.638225
0.836422
0.114132
0
0.163043
0
0
0.095554
0.063957
0
0
0
0
0
1
0.146739
false
0
0.086957
0
0.36413
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c7633cae0980db6c9c40b9c34972bdb7f5c0282
7,139
py
Python
Detect.py
SymenYang/Vanish-Point-Detect
0e83e2b2a86e9523ed4a86f592f3a8dee594d691
[ "MIT" ]
2
2017-10-17T10:08:25.000Z
2017-10-17T11:17:39.000Z
Detect.py
SymenYang/Vanish-Point-Detect
0e83e2b2a86e9523ed4a86f592f3a8dee594d691
[ "MIT" ]
null
null
null
Detect.py
SymenYang/Vanish-Point-Detect
0e83e2b2a86e9523ed4a86f592f3a8dee594d691
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np import copy import math import Edges import INTPoint eps = 1e-7 votes = {} Groups = [] VPoints = [] Centers = [] Cluster = [] voters = {} def getEdges(image): #moved to Edges.py return Edges.getEdges(image) def getLines(edges): #moved to Edges.py return Edges.getLin...
26.838346
157
0.559462
979
7,139
4.078652
0.162411
0.030053
0.033058
0.038567
0.314801
0.261207
0.184323
0.118708
0.089657
0.089657
0
0.049771
0.2964
7,139
266
158
26.838346
0.745172
0.057851
0
0.237209
0
0
0.011481
0
0
0
0
0
0
0
null
null
0
0.027907
null
null
0.004651
0
0
0
null
0
0
0
0
0
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
7c7664cf829c84ce53f7c105e72a7861e60af5ad
1,971
py
Python
test/test_files.py
wanasit/labelling-notebook
c9e7f6895cd4672e3b5af603bdddf08246d35094
[ "MIT" ]
null
null
null
test/test_files.py
wanasit/labelling-notebook
c9e7f6895cd4672e3b5af603bdddf08246d35094
[ "MIT" ]
null
null
null
test/test_files.py
wanasit/labelling-notebook
c9e7f6895cd4672e3b5af603bdddf08246d35094
[ "MIT" ]
null
null
null
def test_list_example_directory(client): response = client.get("/api/files") assert response.status_code == 200 file_list = response.get_json() assert len(file_list) == 5 assert file_list[0]['key'] == 'image_annotated.jpg' assert file_list[1]['key'] == 'image.jpg' assert file_list[2]['key']...
31.285714
70
0.67377
279
1,971
4.562724
0.168459
0.069128
0.157109
0.188531
0.860958
0.731343
0.606441
0.571877
0.564808
0.564808
0
0.033784
0.174023
1,971
62
71
31.790323
0.748157
0
0
0.466667
0
0
0.23034
0.139523
0
0
0
0
0.511111
1
0.111111
false
0
0
0
0.111111
0
0
0
0
null
0
0
1
1
1
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
4
7c76c121d957b364e4b6f2fa9125b58b9c909aee
4,086
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/course_groups/migrations/0001_initial.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/course_groups/migrations/0001_initial.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/course_groups/migrations/0001_initial.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
from django.db import migrations, models from django.conf import settings from opaque_keys.edx.django.models import CourseKeyField class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( ...
49.829268
159
0.618698
405
4,086
6.041975
0.259259
0.022885
0.051083
0.046996
0.437679
0.383327
0.341643
0.308132
0.308132
0.308132
0
0.00526
0.255507
4,086
81
160
50.444444
0.799145
0
0
0.506494
0
0
0.21953
0.0465
0
0
0
0
0
1
0
false
0
0.038961
0
0.077922
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c76d6a2f8e354238a96f859815250852db8cda1
738
py
Python
kafka-rockset-integration/generate_customers_data.py
farkaskid/recipes
8eef799cda899ea266f2849d485917f9b0d83190
[ "Apache-2.0" ]
21
2019-02-27T22:30:28.000Z
2021-07-18T17:26:56.000Z
kafka-rockset-integration/generate_customers_data.py
farkaskid/recipes
8eef799cda899ea266f2849d485917f9b0d83190
[ "Apache-2.0" ]
16
2019-07-03T22:04:21.000Z
2022-02-26T18:34:05.000Z
kafka-rockset-integration/generate_customers_data.py
farkaskid/recipes
8eef799cda899ea266f2849d485917f9b0d83190
[ "Apache-2.0" ]
11
2019-03-13T08:55:31.000Z
2022-02-07T08:35:16.000Z
"""Generate Customer Data""" import csv import random from config import MIN_CUSTOMER_ID, MAX_CUSTOMER_ID ACQUISITION_SOURCES = [ 'OrganicSearch', 'PaidSearch', 'Email', 'SocialMedia', 'Display', 'Affiliate' 'Referral' ] def main(): with open('customers.csv', 'w') as fout: w...
22.363636
85
0.617886
73
738
5.972603
0.616438
0.137615
0.059633
0.073395
0.119266
0.119266
0
0
0
0
0
0.001832
0.260163
738
32
86
23.0625
0.796703
0.02981
0
0
1
0
0.195775
0
0
0
0
0
0
1
0.041667
false
0
0.125
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7c77100c5bc822f15ee0cc031b607fff7a7b2f70
899
py
Python
parsl/tests/test_error_handling/test_resource_spec.py
MatthewBM/parsl
f11417a0255ed290fd0d78ffa1bc52cfe7a06301
[ "Apache-2.0" ]
null
null
null
parsl/tests/test_error_handling/test_resource_spec.py
MatthewBM/parsl
f11417a0255ed290fd0d78ffa1bc52cfe7a06301
[ "Apache-2.0" ]
null
null
null
parsl/tests/test_error_handling/test_resource_spec.py
MatthewBM/parsl
f11417a0255ed290fd0d78ffa1bc52cfe7a06301
[ "Apache-2.0" ]
null
null
null
import parsl from parsl.app.app import python_app from parsl.tests.configs.local_threads import config from parsl.executors.errors import UnsupportedFeatureError from parsl.executors import WorkQueueExecutor @python_app def double(x, parsl_resource_specification={}): return x * 2 def test_resource(n=2): spe...
26.441176
58
0.676307
104
899
5.653846
0.480769
0.061224
0.061224
0
0
0
0
0
0
0
0
0.007299
0.238042
899
33
59
27.242424
0.851095
0
0
0
0
0
0.038932
0
0
0
0
0
0.074074
1
0.074074
false
0
0.185185
0.037037
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c78f1b09da753afd4fbe81d818781bc202c7f29
9,565
py
Python
cincan/file_tool.py
cincanproject/cincan-command
b8cde81931b1c8583ac7daa1327520fb9f06856e
[ "MIT" ]
1
2022-03-11T02:37:42.000Z
2022-03-11T02:37:42.000Z
cincan/file_tool.py
cincanproject/cincan-command
b8cde81931b1c8583ac7daa1327520fb9f06856e
[ "MIT" ]
null
null
null
cincan/file_tool.py
cincanproject/cincan-command
b8cde81931b1c8583ac7daa1327520fb9f06856e
[ "MIT" ]
null
null
null
import pathlib import re from typing import List, Optional, Dict, Set, Tuple, Iterable import shlex class FileMatcher: """Match files based on a pattern""" def __init__(self, match_string: str, include: bool): self.match_string = match_string self.exact = '*' not in match_string self.ab...
41.228448
119
0.576477
1,240
9,565
4.258065
0.187903
0.0375
0.019697
0.011364
0.082955
0.0375
0.019697
0.019697
0
0
0
0.002198
0.334135
9,565
231
120
41.406926
0.826817
0.205332
0
0.235294
0
0
0.00362
0
0
0
0
0
0
1
0.076471
false
0
0.023529
0
0.205882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c7958cdc1aac4d3672c25246775beb5da7fc72d
997
py
Python
aws_interface/cloud/auth/set_me.py
hubaimaster/aws-interface
162dd056546d58b6eb29afcae1c3c2d78e4309b2
[ "Apache-2.0" ]
53
2018-10-02T05:58:54.000Z
2020-09-15T08:58:26.000Z
aws_interface/cloud/auth/set_me.py
hubaimaster/aws-interface
162dd056546d58b6eb29afcae1c3c2d78e4309b2
[ "Apache-2.0" ]
52
2018-09-26T05:16:09.000Z
2022-03-11T23:51:14.000Z
aws_interface/cloud/auth/set_me.py
hubaimaster/aws-interface
162dd056546d58b6eb29afcae1c3c2d78e4309b2
[ "Apache-2.0" ]
10
2019-03-11T16:35:14.000Z
2019-10-23T08:03:54.000Z
from cloud.permission import Permission, NeedPermission from cloud.message import error # Define the input output format of the function. # This information is used when creating the *SDK*. info = { 'input_format': { 'session_id': 'str', 'field': 'str', 'value?': 'str', }, 'output_...
24.317073
83
0.608826
121
997
4.876033
0.495868
0.071186
0.050847
0.040678
0
0
0
0
0
0
0
0
0.250752
997
40
84
24.925
0.789826
0.110331
0
0.066667
0
0
0.193878
0
0
0
0
0
0
1
0.033333
false
0.033333
0.066667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c79d2fe84aae88ef213fa559ea2499797887d57
959
py
Python
doc/gallery-src/analysis/run_blockMcnpMaterialCard.py
celikten/armi
4e100dd514a59caa9c502bd5a0967fd77fdaf00e
[ "Apache-2.0" ]
1
2021-05-29T16:02:31.000Z
2021-05-29T16:02:31.000Z
doc/gallery-src/analysis/run_blockMcnpMaterialCard.py
celikten/armi
4e100dd514a59caa9c502bd5a0967fd77fdaf00e
[ "Apache-2.0" ]
null
null
null
doc/gallery-src/analysis/run_blockMcnpMaterialCard.py
celikten/armi
4e100dd514a59caa9c502bd5a0967fd77fdaf00e
[ "Apache-2.0" ]
null
null
null
""" Write MCNP Material Cards ========================= Here we load a test reactor and write each component of one fuel block out as MCNP material cards. Normally, code-specific utility code would belong in a code-specific ARMI plugin. But in this case, the need for MCNP materials cards is so pervasive that it made ...
31.966667
79
0.755996
136
959
5.308824
0.610294
0.055402
0.047091
0
0
0
0
0
0
0
0
0.002436
0.1439
959
29
80
33.068966
0.876979
0.402503
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.416667
0
0.416667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7c79e12b0a22b9ba1c999ecbf405c389b15998f7
6,612
py
Python
life_line_chart/_autogenerate_data.py
mustaqimM/life_line_chart
a9bbbbdeb5568aa0cc3b3b585337a3d655f4b2d6
[ "MIT" ]
null
null
null
life_line_chart/_autogenerate_data.py
mustaqimM/life_line_chart
a9bbbbdeb5568aa0cc3b3b585337a3d655f4b2d6
[ "MIT" ]
null
null
null
life_line_chart/_autogenerate_data.py
mustaqimM/life_line_chart
a9bbbbdeb5568aa0cc3b3b585337a3d655f4b2d6
[ "MIT" ]
null
null
null
import names import os import datetime from random import random def generate_gedcom_file(): """generate some gedcom file""" db = {} db['n_individuals'] = 0 db['max_individuals'] = 8000 db['n_families'] = 0 db['yougest'] = None gedcom_content = """ 0 HEAD 1 SOUR Gramps 2 VERS 3.3.0 2 N...
35.548387
130
0.545977
850
6,612
4.035294
0.196471
0.041691
0.02449
0.020408
0.223032
0.18484
0.159767
0.146939
0.146939
0.11312
0
0.029804
0.320024
6,612
185
131
35.740541
0.733096
0.007411
0
0.096386
1
0
0.148849
0.006558
0
0
0
0
0
1
0.042169
false
0
0.03012
0
0.096386
0.012048
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7c79e8c0feadf546c1f7ffb56f2c6aded823808d
4,647
py
Python
arcade/examples/sprite_bullets_enemy_aims.py
LiorAvrahami/arcade
fce254a9eb89629de1f99d57a63759a2953184e9
[ "MIT" ]
1
2020-01-18T04:48:38.000Z
2020-01-18T04:48:38.000Z
arcade/examples/sprite_bullets_enemy_aims.py
LiorAvrahami/arcade
fce254a9eb89629de1f99d57a63759a2953184e9
[ "MIT" ]
1
2019-08-11T18:47:27.000Z
2019-08-12T03:02:11.000Z
arcade/examples/sprite_bullets_enemy_aims.py
LiorAvrahami/arcade
fce254a9eb89629de1f99d57a63759a2953184e9
[ "MIT" ]
null
null
null
""" Show how to have enemies shoot bullets aimed at the player. If Python and Arcade are installed, this example can be run from the command line with: python -m arcade.examples.sprite_bullets_enemy_aims """ import arcade import math import os SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 SCREEN_TITLE = "Sprites and Bullet...
32.957447
98
0.624919
631
4,647
4.434231
0.304279
0.039314
0.027877
0.038599
0.163331
0.163331
0.132952
0.115082
0.115082
0.115082
0
0.012515
0.295029
4,647
140
99
33.192857
0.841575
0.306004
0
0.112676
0
0
0.079861
0.065341
0
0
0
0
0
1
0.084507
false
0
0.042254
0
0.140845
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c7a936052804b42678eb433f6f64454107e4317
450
py
Python
app1.py
FreakX23/EBook_Training
de445b0a9e56a1f1ffc51ae3c5e10ebe8297e9b6
[ "MIT" ]
null
null
null
app1.py
FreakX23/EBook_Training
de445b0a9e56a1f1ffc51ae3c5e10ebe8297e9b6
[ "MIT" ]
null
null
null
app1.py
FreakX23/EBook_Training
de445b0a9e56a1f1ffc51ae3c5e10ebe8297e9b6
[ "MIT" ]
null
null
null
# This Part will gather Infos and demonstrate the use of Variables. usrName = input("What is your Name?") usrAge = int(input("What is your Age?")) usrGPA = float(input("What is your GPA?")) print () #cheap way to get a new line print ("Hello, %s" % (usrName)) print ("Did you know that in two years you will be %d years ...
45
98
0.682222
79
450
3.886076
0.696203
0.087948
0.107492
0.14658
0
0
0
0
0
0
0
0.008197
0.186667
450
9
99
50
0.830601
0.204444
0
0.25
0
0
0.532394
0
0
0
0
0
0
1
0
false
0
0
0
0
0.625
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
0
0
0
1
0
2
7c7af573be1400de8cf6ff87c171a26f3cda1e1f
96
py
Python
borze.py
AmitHasanShuvo/Programming
f47ecc626e518a0bf5f9f749afd15ce67bbe737b
[ "MIT" ]
8
2019-05-26T19:24:13.000Z
2021-03-24T17:36:14.000Z
borze.py
AmitHasanShuvo/Programming
f47ecc626e518a0bf5f9f749afd15ce67bbe737b
[ "MIT" ]
null
null
null
borze.py
AmitHasanShuvo/Programming
f47ecc626e518a0bf5f9f749afd15ce67bbe737b
[ "MIT" ]
1
2020-04-19T04:59:54.000Z
2020-04-19T04:59:54.000Z
a = input() a = a.replace('--', '2') a = a.replace('-.', '1') a = a.replace('.', '0') print(a)  
16
24
0.4375
16
96
2.625
0.4375
0.142857
0.642857
0
0
0
0
0
0
0
0
0.037975
0.177083
96
6
25
16
0.493671
0
0
0
0
0
0.082474
0
0
0
0
0
0
0
null
null
0
0
null
null
0.2
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
7c7ce13176c091aaa43308e8a58ace22a4dd604d
684
py
Python
distalg/message.py
charlesemurray/DistributedProgramming
f7b5001a6acb0583cd6b7bb611f27893b830c296
[ "MIT" ]
null
null
null
distalg/message.py
charlesemurray/DistributedProgramming
f7b5001a6acb0583cd6b7bb611f27893b830c296
[ "MIT" ]
null
null
null
distalg/message.py
charlesemurray/DistributedProgramming
f7b5001a6acb0583cd6b7bb611f27893b830c296
[ "MIT" ]
null
null
null
class Message: def __init__(self, from_channel=None, **kwargs): self._channel = from_channel if kwargs is not None: for key, value in kwargs.items(): setattr(self, key, value) @property def carrier(self): return self._channel def sender(self): ...
23.586207
64
0.630117
81
684
5
0.395062
0.108642
0.103704
0.155556
0
0
0
0
0
0
0
0
0.266082
684
28
65
24.428571
0.806773
0
0
0
0
0
0.017544
0
0
0
0
0
0.1
1
0.25
false
0
0
0.15
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
7c7d98835e8aa5d863003dad874d15530ea2ef72
7,799
py
Python
myenv/lib/python3.5/site-packages/tests/handlers/logging/logging_tests.py
rupeshparab/techscan
ce2558602ddad31873d7129f25b1cc61895b9939
[ "MIT" ]
1
2019-11-01T11:45:22.000Z
2019-11-01T11:45:22.000Z
myenv/lib/python3.5/site-packages/tests/handlers/logging/logging_tests.py
rupeshparab/techscan
ce2558602ddad31873d7129f25b1cc61895b9939
[ "MIT" ]
3
2020-02-11T23:03:45.000Z
2021-06-10T18:05:11.000Z
myenv/lib/python3.5/site-packages/tests/handlers/logging/logging_tests.py
rupeshparab/techscan
ce2558602ddad31873d7129f25b1cc61895b9939
[ "MIT" ]
1
2019-11-01T11:38:54.000Z
2019-11-01T11:38:54.000Z
import logging from opbeat.handlers.logging import OpbeatHandler from opbeat.utils.stacks import iter_stack_frames from tests.helpers import get_tempstoreclient from tests.utils.compat import TestCase class LoggingIntegrationTest(TestCase): def setUp(self): self.client = get_tempstoreclient(include_paths...
43.569832
103
0.647391
952
7,799
5.216387
0.09979
0.164317
0.042288
0.066452
0.809505
0.793798
0.781514
0.731575
0.700967
0.659283
0
0.003624
0.221567
7,799
178
104
43.814607
0.814363
0.020131
0
0.562092
0
0
0.216418
0.014402
0
0
0
0
0.522876
1
0.091503
false
0
0.03268
0
0.137255
0
0
0
0
null
0
0
0
1
1
1
1
1
1
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
7
7c7e4ec9d240f0bbb6bcb11b797135aad6a43254
1,342
py
Python
amnesia/modules/mime/model.py
silenius/amnesia
ba5e3ac79a89da599c22206ad1fd17541855f74c
[ "BSD-2-Clause" ]
4
2015-05-08T10:57:56.000Z
2021-05-17T04:32:11.000Z
amnesia/modules/mime/model.py
silenius/amnesia
ba5e3ac79a89da599c22206ad1fd17541855f74c
[ "BSD-2-Clause" ]
6
2019-12-26T16:43:41.000Z
2022-02-28T11:07:54.000Z
amnesia/modules/mime/model.py
silenius/amnesia
ba5e3ac79a89da599c22206ad1fd17541855f74c
[ "BSD-2-Clause" ]
1
2019-09-23T14:08:11.000Z
2019-09-23T14:08:11.000Z
# -*- coding: utf-8 -*- # pylint: disable=E1101 from sqlalchemy import sql from sqlalchemy import orm from sqlalchemy.orm.exc import NoResultFound from .. import Base # http://www.iana.org/assignments/media-types/media-types.xhtml class MimeMajor(Base): """Mime major""" def __init__(self, name): ...
21.645161
63
0.568554
150
1,342
4.92
0.42
0.054201
0.065041
0.04065
0.056911
0
0
0
0
0
0
0.007361
0.291356
1,342
61
64
22
0.768665
0.093145
0
0.108108
0
0
0.007601
0
0
0
0
0
0
1
0.135135
false
0
0.108108
0.027027
0.378378
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c7e5ef5e8a7277261b9729c9f251391fd2d29dc
1,415
py
Python
apps/goods/views_base.py
sunwei19910119/DjangoShop
188102dc8ef9f4751f4eeeb7574e95c8cc270484
[ "MIT" ]
3
2018-08-22T02:41:55.000Z
2022-03-03T08:49:38.000Z
apps/goods/views_base.py
sunwei19910119/DjangoShop
188102dc8ef9f4751f4eeeb7574e95c8cc270484
[ "MIT" ]
null
null
null
apps/goods/views_base.py
sunwei19910119/DjangoShop
188102dc8ef9f4751f4eeeb7574e95c8cc270484
[ "MIT" ]
1
2019-10-23T12:24:08.000Z
2019-10-23T12:24:08.000Z
# encoding: utf-8 from goods.models import Goods from django.views.generic.base import View class GoodsListView(View): def get(self, request): """ 通过django的view实现商品列表页 """ json_list = [] goods = Goods.objects.all()[:10] # for good in goods: # json_dict ...
32.159091
85
0.633922
159
1,415
5.45283
0.352201
0.073818
0.076125
0.089965
0.320646
0.129181
0
0
0
0
0
0.002913
0.272085
1,415
43
86
32.906977
0.838835
0.424735
0
0
0
0
0.005175
0
0
0
0
0
0
1
0.0625
false
0
0.375
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7c7ea1a87be56599bff87dd5b87938ba5b672c0b
14,385
py
Python
launcher/src/main/scripts/bin/launcher.py
iyersathya/airlift
27e981a50cee655ff4e1e13801ba5a55991f93ce
[ "Apache-2.0" ]
null
null
null
launcher/src/main/scripts/bin/launcher.py
iyersathya/airlift
27e981a50cee655ff4e1e13801ba5a55991f93ce
[ "Apache-2.0" ]
35
2019-09-27T23:27:54.000Z
2021-10-06T14:57:28.000Z
launcher/src/main/scripts/bin/launcher.py
iyersathya/airlift
27e981a50cee655ff4e1e13801ba5a55991f93ce
[ "Apache-2.0" ]
21
2019-09-21T06:13:58.000Z
2021-08-10T20:05:09.000Z
#!/usr/bin/env python import errno import os import platform import sys import traceback from fcntl import flock, LOCK_EX, LOCK_NB from optparse import OptionParser from os import O_RDWR, O_CREAT, O_WRONLY, O_APPEND from os.path import basename, dirname, exists, realpath from os.path import join as pathjoin from sign...
31.136364
135
0.639694
1,929
14,385
4.646449
0.161223
0.01562
0.021756
0.020529
0.241883
0.190115
0.146491
0.127747
0.07531
0.038157
0
0.003436
0.231213
14,385
461
136
31.203905
0.807035
0.066597
0
0.230303
0
0
0.165118
0.01604
0.00303
0
0
0
0.009091
1
0.090909
false
0.00303
0.039394
0
0.193939
0.048485
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c7f557e50cc992f1ad5414b88efb2c8bf4f59f5
1,213
py
Python
code/sim/test.py
vectorcrumb/Ballbot_IEE2913
5ab54825b2bfadae251e2c6bfaaa7f8fcdae77a0
[ "MIT" ]
null
null
null
code/sim/test.py
vectorcrumb/Ballbot_IEE2913
5ab54825b2bfadae251e2c6bfaaa7f8fcdae77a0
[ "MIT" ]
null
null
null
code/sim/test.py
vectorcrumb/Ballbot_IEE2913
5ab54825b2bfadae251e2c6bfaaa7f8fcdae77a0
[ "MIT" ]
null
null
null
from direct.showbase.ShowBase import ShowBase from direct.task import Task from direct.actor.Actor import Actor import numpy as np class MyApp(ShowBase): def __init__(self): ShowBase.__init__(self) # Load environment model self.scene = self.loader.loadModel("models/environment") # ...
32.783784
85
0.649629
157
1,213
4.968153
0.401274
0.046154
0.035897
0.015385
0
0
0
0
0
0
0
0.043103
0.234955
1,213
37
86
32.783784
0.797414
0.135202
0
0
0
0
0.072867
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c80c3cc37ddb266e34cc1676cdc4a68cdabc9ff
32
py
Python
run_locally.py
nationalarchives/tdr-service-unavailable
fcb5930f57459b1e4e6d2d14244ebeecee2f6907
[ "MIT" ]
null
null
null
run_locally.py
nationalarchives/tdr-service-unavailable
fcb5930f57459b1e4e6d2d14244ebeecee2f6907
[ "MIT" ]
null
null
null
run_locally.py
nationalarchives/tdr-service-unavailable
fcb5930f57459b1e4e6d2d14244ebeecee2f6907
[ "MIT" ]
null
null
null
from app import app app.run()
8
20
0.6875
6
32
3.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.21875
32
3
21
10.666667
0.88
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
1
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
5
7c80d22f73704982f5f02b4193bf4d13e0699eda
5,914
py
Python
src/pandas_profiling/model/describe.py
briangrahamww/pandas-profiling
62f8e3fd81720d444041069191c4aacd03d79ad5
[ "MIT" ]
null
null
null
src/pandas_profiling/model/describe.py
briangrahamww/pandas-profiling
62f8e3fd81720d444041069191c4aacd03d79ad5
[ "MIT" ]
4
2021-11-01T15:17:07.000Z
2022-01-26T15:22:15.000Z
src/pandas_profiling/model/describe.py
briangrahamww/pandas-profiling
62f8e3fd81720d444041069191c4aacd03d79ad5
[ "MIT" ]
null
null
null
"""Organize the calculation of statistics for each series in this DataFrame.""" import warnings from datetime import datetime from typing import Optional import pandas as pd from tqdm.auto import tqdm from visions import VisionsTypeset from pandas_profiling.config import Settings from pandas_profiling.model.correlati...
30.328205
88
0.615996
599
5,914
5.894825
0.248748
0.019824
0.039649
0.048145
0.097706
0.068536
0.053243
0.031719
0.031719
0.031719
0
0.000243
0.305208
5,914
194
89
30.484536
0.85909
0.148461
0
0.067669
0
0
0.11443
0.009485
0
0
0
0
0
1
0.007519
false
0
0.097744
0
0.112782
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c813b2cc84c9caa5444e2c87441c4626db990da
1,114
py
Python
maxOfferNum.py
Ruanxingzhi/King-of-Pigeon
38d6191c93c2d485b2e5cf163f06b9f2a5dacbec
[ "MIT" ]
null
null
null
maxOfferNum.py
Ruanxingzhi/King-of-Pigeon
38d6191c93c2d485b2e5cf163f06b9f2a5dacbec
[ "MIT" ]
null
null
null
maxOfferNum.py
Ruanxingzhi/King-of-Pigeon
38d6191c93c2d485b2e5cf163f06b9f2a5dacbec
[ "MIT" ]
null
null
null
import operator class Std(object): def __init__(self): self.name = '' self.offerNum = 0 self.offers = [] stds = [] stdsDict = {} index = 0 def readStd(name,camper): global stds global stdsDict global index if name not in stdsDict: newStd = Std() newStd.name...
26.52381
68
0.56553
140
1,114
4.385714
0.378571
0.078176
0.078176
0.071661
0
0
0
0
0
0
0
0.007614
0.292639
1,114
42
69
26.52381
0.771574
0
0
0
0
0
0.109417
0
0
0
0
0
0
1
0.055556
false
0
0.027778
0
0.111111
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c81a099c1328ddb836ac7f6bc808bcec8ce85e6
5,525
py
Python
tabnine-vim/third_party/ycmd/third_party/python-future/setup.py
MrMonk3y/vimrc
950230fb3fd7991d1234c2ab516ec03245945677
[ "MIT" ]
2
2018-04-16T03:08:42.000Z
2021-01-06T10:21:49.000Z
tabnine-vim/third_party/ycmd/third_party/python-future/setup.py
MrMonk3y/vimrc
950230fb3fd7991d1234c2ab516ec03245945677
[ "MIT" ]
null
null
null
tabnine-vim/third_party/ycmd/third_party/python-future/setup.py
MrMonk3y/vimrc
950230fb3fd7991d1234c2ab516ec03245945677
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import, print_function import os import os.path import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() NAME = "futur...
29.864865
95
0.523439
531
5,525
5.344633
0.40113
0.042283
0.052854
0.016913
0.10148
0.054968
0.054968
0.054968
0.054968
0.054968
0
0.011638
0.362353
5,525
184
96
30.027174
0.793926
0.131041
0
0.013333
0
0
0.343508
0.051432
0
0
0
0
0
1
0
false
0.006667
0.06
0
0.06
0.013333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c81cc51df1ab53c03a469cdc7c5c3c8cd7e2980
508
py
Python
url_shortener/src/__init__.py
Andrelpoj/hire.me
79428e2094a6b56e762a7f958e1b75f395f59cef
[ "Apache-2.0" ]
null
null
null
url_shortener/src/__init__.py
Andrelpoj/hire.me
79428e2094a6b56e762a7f958e1b75f395f59cef
[ "Apache-2.0" ]
null
null
null
url_shortener/src/__init__.py
Andrelpoj/hire.me
79428e2094a6b56e762a7f958e1b75f395f59cef
[ "Apache-2.0" ]
null
null
null
from flask import Flask from .extensions import db from .routes import short from . import config def create_app(): """ Creates Flask App, connect to Database and register Blueprint of routes""" app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = config.DATABASE_CONNECTION_URI app.co...
28.222222
83
0.690945
64
508
5.25
0.484375
0.10119
0.113095
0
0
0
0
0
0
0
0
0
0.222441
508
18
84
28.222222
0.850633
0.139764
0
0
0
0
0.128019
0.128019
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.461538
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7c82276d6def1d1d6f137aa1788b787b2da8110f
3,009
py
Python
python-百度翻译调用/Baidu_translate/com/translate/baidu/stackoverflow_question_handler.py
wangchuanli001/Project-experience
b563c5c3afc07c913c2e1fd25dff41c70533f8de
[ "Apache-2.0" ]
12
2019-12-07T01:44:55.000Z
2022-01-27T14:13:30.000Z
python-百度翻译调用/Baidu_translate/com/translate/baidu/stackoverflow_question_handler.py
hujiese/Project-experience
b563c5c3afc07c913c2e1fd25dff41c70533f8de
[ "Apache-2.0" ]
23
2020-05-23T03:56:33.000Z
2022-02-28T07:54:45.000Z
python-百度翻译调用/Baidu_translate/com/translate/baidu/stackoverflow_question_handler.py
hujiese/Project-experience
b563c5c3afc07c913c2e1fd25dff41c70533f8de
[ "Apache-2.0" ]
7
2019-12-20T04:48:56.000Z
2021-11-19T02:23:45.000Z
import requests from bs4 import BeautifulSoup import urllib.request import os import random import time def html(url): user_agents = [ 'Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11', 'Opera/9.25 (Windows NT 5.1; U; en)', 'Mozilla/4.0 (compatible...
42.985714
164
0.623463
453
3,009
4.024283
0.373068
0.043884
0.024685
0.018102
0
0
0
0
0
0
0
0.074802
0.204719
3,009
69
165
43.608696
0.687004
0.03988
0
0
0
0.131148
0.427235
0.065489
0
0
0
0
0
1
0.032787
false
0.016393
0.098361
0
0.131148
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
7c82c0f597ec23a15334ec51934c9484615b1b1f
2,541
py
Python
Research/data_loader.py
ALEXKIRNAS/Kaggle-C-CORE-Iceberg-Classifier-Challenge
d8b06969c9393cfce6d9ac96b58c9d365ff4369d
[ "MIT" ]
null
null
null
Research/data_loader.py
ALEXKIRNAS/Kaggle-C-CORE-Iceberg-Classifier-Challenge
d8b06969c9393cfce6d9ac96b58c9d365ff4369d
[ "MIT" ]
null
null
null
Research/data_loader.py
ALEXKIRNAS/Kaggle-C-CORE-Iceberg-Classifier-Challenge
d8b06969c9393cfce6d9ac96b58c9d365ff4369d
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd from keras.utils import to_categorical from sklearn.model_selection import KFold, train_test_split def load_data(path): train = pd.read_json(os.path.join(path, "./train.json")) test = pd.read_json(os.path.join(path, "./test.json")) return (train, test) ...
34.337838
92
0.562377
354
2,541
3.776836
0.268362
0.044877
0.017951
0.026926
0.34555
0.293194
0.293194
0.231862
0.231862
0.231862
0
0.063673
0.307753
2,541
73
93
34.808219
0.696418
0
0
0.156863
0
0
0.025974
0
0
0
0.00551
0
0
1
0.078431
false
0
0.098039
0
0.254902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c82fafc5019f5e066e5d9af9ec1a1742645a993
27,180
py
Python
polyaxon_cli/cli/experiment.py
tiagopms/polyaxon-cli
eb13e3b8389ccf069a421a4dabc87aaa506ab61c
[ "MIT" ]
null
null
null
polyaxon_cli/cli/experiment.py
tiagopms/polyaxon-cli
eb13e3b8389ccf069a421a4dabc87aaa506ab61c
[ "MIT" ]
null
null
null
polyaxon_cli/cli/experiment.py
tiagopms/polyaxon-cli
eb13e3b8389ccf069a421a4dabc87aaa506ab61c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import sys import click import rhea from polyaxon_cli.cli.getters.experiment import ( get_experiment_job_or_local, get_project_experiment_or_local ) from polyaxon_cli.cli.upload import upload from polyaxon_cli.client imp...
33.84807
99
0.606659
2,827
27,180
5.659356
0.089848
0.048753
0.040378
0.051566
0.768986
0.705607
0.636852
0.606163
0.585349
0.570286
0
0.003379
0.281347
27,180
802
100
33.890274
0.815697
0.134106
0
0.587473
0
0
0.14221
0
0
0
0
0
0
1
0.049676
false
0.030238
0.034557
0
0.088553
0.146868
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
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
7c839f4dc74ac86e89c284ecfbdaf987fd07d858
554
py
Python
Problem_09.py
Habbo3/Project-Euler
1a01d67f72b9cfb606d13df91af89159b588216e
[ "MIT" ]
null
null
null
Problem_09.py
Habbo3/Project-Euler
1a01d67f72b9cfb606d13df91af89159b588216e
[ "MIT" ]
null
null
null
Problem_09.py
Habbo3/Project-Euler
1a01d67f72b9cfb606d13df91af89159b588216e
[ "MIT" ]
null
null
null
""" A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a2 + b2 = c2 For example, 32 + 42 = 9 + 16 = 25 = 52. There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product abc. """ solved = False for a in range(1, 1000): for b in range(1, 1000): for c in range(...
24.086957
78
0.601083
101
554
3.29703
0.435644
0.03003
0.045045
0.108108
0.09009
0
0
0
0
0
0
0.099751
0.276173
554
23
79
24.086957
0.730673
0.409747
0
0.333333
0
0
0.1375
0
0
0
0
0
0
1
0
false
0
0
0
0
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c83aa67c0a65ae58c0709d1dc148cd1d75e4a56
2,862
py
Python
fanscribed/apps/transcripts/tests/test_transcripts.py
fanscribed/fanscribed
89b14496459f81a152df38ed5098fba2b087a1d7
[ "MIT" ]
8
2015-01-05T07:04:02.000Z
2016-07-19T17:56:46.000Z
fanscribed/apps/transcripts/tests/test_transcripts.py
fanscribed/fanscribed
89b14496459f81a152df38ed5098fba2b087a1d7
[ "MIT" ]
32
2015-03-18T18:51:00.000Z
2021-06-10T20:37:33.000Z
fanscribed/apps/transcripts/tests/test_transcripts.py
fanscribed/fanscribed
89b14496459f81a152df38ed5098fba2b087a1d7
[ "MIT" ]
5
2015-02-10T21:15:32.000Z
2016-06-02T17:26:14.000Z
from decimal import Decimal import os from django.test import TestCase from unipath import Path from ....utils import refresh from ...media import tests from ..models import Transcript, TranscriptMedia MEDIA_TESTDATA_PATH = Path(tests.__file__).parent.child('testdata') RAW_MEDIA_PATH = MEDIA_TESTDATA_PATH.child('r...
33.27907
90
0.628931
347
2,862
5.051873
0.299712
0.162578
0.067884
0.079863
0.351398
0.351398
0.292641
0.292641
0.233314
0.208785
0
0.042416
0.242138
2,862
85
91
33.670588
0.765791
0.015024
0
0.15873
0
0
0.065364
0.020604
0
0
0
0
0.31746
1
0.047619
false
0
0.126984
0
0.206349
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c83fd89c702ba9d9dcb725c78535f9419ea8d70
2,771
py
Python
buildAncestryFeats.py
BurcinSayin/pf2
bcd362dc0a750b8ee59cd19ecff9cf5be4f34b19
[ "MIT" ]
null
null
null
buildAncestryFeats.py
BurcinSayin/pf2
bcd362dc0a750b8ee59cd19ecff9cf5be4f34b19
[ "MIT" ]
null
null
null
buildAncestryFeats.py
BurcinSayin/pf2
bcd362dc0a750b8ee59cd19ecff9cf5be4f34b19
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests import json import datetime import codecs import re featHolder = {} featHolder['name'] = 'Pathfinder 2.0 Ancestry feat list' featHolder['date'] = datetime.date.today().strftime("%B %d, %Y") def get_details(link): res = requests.get(link) res.raise_for_status() ...
34.209877
155
0.572717
347
2,771
4.518732
0.432277
0.013393
0.022959
0.030612
0.110969
0.110969
0.080357
0.080357
0.080357
0.080357
0
0.011846
0.268856
2,771
80
156
34.6375
0.762093
0.16817
0
0.103448
0
0
0.128272
0.023124
0
0
0
0
0
1
0.034483
false
0
0.103448
0
0.172414
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c84005ad03ff1fb7961f46195db1060fc63cb16
861
py
Python
Random_item_selector_module.py
Jahronimo/public_question_book_framework
812bd11b104de013e930536713b8134d046642d5
[ "MIT" ]
null
null
null
Random_item_selector_module.py
Jahronimo/public_question_book_framework
812bd11b104de013e930536713b8134d046642d5
[ "MIT" ]
null
null
null
Random_item_selector_module.py
Jahronimo/public_question_book_framework
812bd11b104de013e930536713b8134d046642d5
[ "MIT" ]
1
2020-03-07T10:53:30.000Z
2020-03-07T10:53:30.000Z
import random def Randomise(questions_lists): import random import secrets secure_random = secrets.SystemRandom()# creates a secure random object. group_of_items = questions_lists num_qustion_t_select = num_question_to_display list_of_random_item...
47.833333
86
0.682927
111
861
4.81982
0.522523
0.11215
0.061682
0.095327
0
0
0
0
0
0
0
0.004594
0.24158
861
17
87
50.647059
0.814701
0.283391
0
0.166667
0
0
0.047463
0.037643
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.333333
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
7c8421979f69cbc7cf5cd9ec5a87a153ab3efc74
1,228
py
Python
python_scrape/test_functions.py
jose-marquez89/tech-job-landscape
0b509536e7ba22885f50c82da8cf990b65373090
[ "MIT" ]
null
null
null
python_scrape/test_functions.py
jose-marquez89/tech-job-landscape
0b509536e7ba22885f50c82da8cf990b65373090
[ "MIT" ]
null
null
null
python_scrape/test_functions.py
jose-marquez89/tech-job-landscape
0b509536e7ba22885f50c82da8cf990b65373090
[ "MIT" ]
null
null
null
import unittest import scrape class TestScrapeFunctions(unittest.TestCase): def test_build_url(self): url = scrape.build_url("indeed", "/jobs?q=Data+Scientist&l=Texas&start=10", join_next=True) expected = ("https://www.indeed.com/" ...
34.111111
78
0.556189
135
1,228
4.881481
0.355556
0.084977
0.054628
0.081942
0.30349
0.30349
0.206373
0.141123
0
0
0
0.020238
0.315961
1,228
35
79
35.085714
0.764286
0
0
0.071429
0
0
0.220684
0.112378
0
0
0
0
0.214286
1
0.071429
false
0
0.071429
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c84e9b3f92ddbf93482eff72a312c6afff49d17
173
py
Python
Level1_Input_Output/10172.py
jaeheeLee17/BOJ_Algorithms
c14641693d7ef0f5bba0a6637166c7ceadb2a0be
[ "MIT" ]
null
null
null
Level1_Input_Output/10172.py
jaeheeLee17/BOJ_Algorithms
c14641693d7ef0f5bba0a6637166c7ceadb2a0be
[ "MIT" ]
null
null
null
Level1_Input_Output/10172.py
jaeheeLee17/BOJ_Algorithms
c14641693d7ef0f5bba0a6637166c7ceadb2a0be
[ "MIT" ]
null
null
null
def main(): print("|\_/|") print("|q p| /}") print("( 0 )\"\"\"\\") print("|\"^\"` |") print("||_/=\\\\__|") if __name__ == "__main__": main()
17.3
26
0.352601
14
173
3.5
0.571429
0.408163
0
0
0
0
0
0
0
0
0
0.007937
0.271676
173
9
27
19.222222
0.380952
0
0
0
0
0
0.289017
0
0
0
0
0
0
1
0.125
true
0
0
0
0.125
0.625
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
6
7c85f2097ce6518402e3aa24b38cc365cc5ffeaa
4,981
py
Python
Whats Cooking/KaggleCookingComparison.py
rupakc/Kaggle-Compendium
61634ba742f9a0239f2d1e45973c4bb477ac6306
[ "MIT" ]
17
2018-01-11T05:49:06.000Z
2021-08-22T16:50:10.000Z
Whats Cooking/KaggleCookingComparison.py
Tuanlase02874/Machine-Learning-Kaggle
c31651acd8f2407d8b60774e843a2527ce19b013
[ "MIT" ]
null
null
null
Whats Cooking/KaggleCookingComparison.py
Tuanlase02874/Machine-Learning-Kaggle
c31651acd8f2407d8b60774e843a2527ce19b013
[ "MIT" ]
8
2017-11-27T06:58:50.000Z
2021-08-22T16:50:13.000Z
# -*- coding: utf-8 -*- """ Created on Sat Dec 26 13:20:45 2015 Code for Kaggle What's Cooking Competition It uses the following classifiers with tf-idf,hashvectors and bag_of_words approach 1. Adaboost 2. Extratrees 3. Bagging 4. Random Forests @author: Rupak Chakraborty """ import numpy as np import time import json...
32.344156
90
0.739611
635
4,981
5.607874
0.233071
0.019657
0.038753
0.028082
0.251896
0.155013
0.074136
0.038192
0
0
0
0.012103
0.153985
4,981
153
91
32.555556
0.832938
0.024493
0
0.183486
0
0
0.171447
0.009778
0
0
0
0
0
0
null
null
0
0.110092
null
null
0.174312
0
0
0
null
0
0
0
0
0
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
7c85f5102089b2dbe1aa3c33bc6b5354992888f4
466
py
Python
pybook/ch10/DeckOfCards.py
YanhaoXu/python-learning
856687a71635a2ca67dab49d396c238f128e5ec0
[ "MIT" ]
2
2021-12-06T13:29:48.000Z
2022-01-20T11:39:45.000Z
pybook/ch10/DeckOfCards.py
YanhaoXu/python-learning
856687a71635a2ca67dab49d396c238f128e5ec0
[ "MIT" ]
null
null
null
pybook/ch10/DeckOfCards.py
YanhaoXu/python-learning
856687a71635a2ca67dab49d396c238f128e5ec0
[ "MIT" ]
null
null
null
import random # Create a deck of cards deck = [x for x in range(52)] # Create suits and ranks lists suits = ["Spades", "Hearts", "Diamonds", "Clubs"] ranks = ["Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"] # Shuffle the cards random.shuffle(deck) # Display the first four card...
24.526316
61
0.575107
74
466
3.621622
0.621622
0.05597
0.052239
0
0
0
0
0
0
0
0
0.046448
0.214592
466
18
62
25.888889
0.685792
0.2103
0
0
0
0
0.192837
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c8673116b02c8c1dd21b123ad5da8653dbefe4c
3,410
py
Python
nlpgnn/gnn/RGCNConv.py
ojipadeson/NLPGNN
7c43d2f0cb2b16c046c930037fd505c5c4f36db4
[ "MIT" ]
263
2020-05-19T10:40:26.000Z
2022-03-25T05:22:49.000Z
nlpgnn/gnn/RGCNConv.py
Kuan-Louis/NLPGNN
b9ecec2c6df1b3e40a54511366dcb6085cf90c34
[ "MIT" ]
7
2020-05-18T23:02:55.000Z
2021-04-29T18:27:43.000Z
nlpgnn/gnn/RGCNConv.py
Kuan-Louis/NLPGNN
b9ecec2c6df1b3e40a54511366dcb6085cf90c34
[ "MIT" ]
56
2020-05-19T05:59:36.000Z
2022-03-14T06:21:33.000Z
#! usr/bin/env python3 # -*- coding:utf-8 -*- """ @Author:Kaiyin Zhou Usage: node_embeddings = tf.random.normal(shape=(5, 3)) adjacency_lists = [ tf.constant([[0, 1], [2, 4], [2, 4]], dtype=tf.int32), tf.constant([[0, 1], [2, 4], [2, 4]], dtype=tf.int32) ] layer...
35.894737
97
0.575367
378
3,410
4.880952
0.325397
0.039024
0.04065
0.034688
0.211924
0.159892
0.115989
0.115989
0.115989
0.115989
0
0.013089
0.327859
3,410
94
98
36.276596
0.791885
0.172141
0
0.060606
0
0
0.010909
0
0
0
0
0
0
1
0.060606
false
0.030303
0.030303
0
0.136364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c872854a67dcbee173ef18681a5116e43865d52
53,677
py
Python
automl/google/cloud/automl_v1beta1/gapic/auto_ml_client.py
erikwebb/google-cloud-python
288a878e9a07239015c78a193eca1cc15e926127
[ "Apache-2.0" ]
1
2019-04-16T08:13:06.000Z
2019-04-16T08:13:06.000Z
automl/google/cloud/automl_v1beta1/gapic/auto_ml_client.py
erikwebb/google-cloud-python
288a878e9a07239015c78a193eca1cc15e926127
[ "Apache-2.0" ]
null
null
null
automl/google/cloud/automl_v1beta1/gapic/auto_ml_client.py
erikwebb/google-cloud-python
288a878e9a07239015c78a193eca1cc15e926127
[ "Apache-2.0" ]
1
2020-11-15T11:44:36.000Z
2020-11-15T11:44:36.000Z
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
42.198899
128
0.596512
5,778
53,677
5.388543
0.079439
0.03093
0.044676
0.02775
0.772571
0.754039
0.702425
0.681516
0.67005
0.623671
0
0.006476
0.321031
53,677
1,271
129
42.232101
0.847825
0.53535
0
0.488518
0
0
0.076699
0.018372
0
0
0
0.003147
0
1
0.041754
false
0
0.075157
0
0.164927
0
0
0
0
null
0
0
0
0
1
1
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
3
7c87af0c38dbd1633d14f5192f2da57d1ebe0d89
73,923
py
Python
addons/project/models/project.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/project/models/project.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/project/models/project.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import ast from datetime import timedelta, datetime from random import randint from odoo import api, fields, models, tools, SUPERUSER_ID, _ from odoo.exceptions import UserError, AccessError, ValidationError, RedirectWa...
51.550209
249
0.645577
9,265
73,923
4.905343
0.07728
0.024358
0.006337
0.008009
0.40235
0.326351
0.266656
0.198513
0.167642
0.147597
0
0.002246
0.229009
73,923
1,433
250
51.586183
0.795171
0.069424
0
0.193772
0
0.013841
0.219468
0.037133
0
0
0
0.000698
0
1
0.086505
false
0
0.007785
0.00692
0.281142
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c8849369fcbb1dad3eb48e7b50645532c6e90e9
1,670
py
Python
app/config.py
Maethorin/pivocram
f1709f5ee76d0280601efa87f3af8e89c2968f43
[ "MIT" ]
5
2016-04-02T15:07:03.000Z
2021-06-25T14:48:55.000Z
app/config.py
Maethorin/pivocram
f1709f5ee76d0280601efa87f3af8e89c2968f43
[ "MIT" ]
2
2016-04-28T20:14:04.000Z
2016-05-01T18:37:05.000Z
app/config.py
Maethorin/pivocram
f1709f5ee76d0280601efa87f3af8e89c2968f43
[ "MIT" ]
1
2018-07-27T10:52:04.000Z
2018-07-27T10:52:04.000Z
# -*- coding: utf-8 -*- """ Config File for enviroment variables """ import os from importlib import import_module class Config(object): """ Base class for all config variables """ DEBUG = False TESTING = False DEVELOPMENT = False CSRF_ENABLED = True SQLALCHEMY_DATABASE_URI = os.envi...
23.521127
115
0.671856
199
1,670
5.502513
0.472362
0.080365
0.021918
0.054795
0
0
0
0
0
0
0
0.002317
0.224551
1,670
71
116
23.521127
0.843243
0.322156
0
0.137931
0
0
0.092885
0
0
0
0
0
0
1
0.034483
false
0.034483
0.172414
0
0.862069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c88b8dca0946deb62b53070c85ee8a8bd47974e
845
py
Python
initial_load.py
hongyuanChrisLi/RealEstateDBConvert
0fd04f5213ff3fd3548db3f322828bd80cf41791
[ "Apache-2.0" ]
null
null
null
initial_load.py
hongyuanChrisLi/RealEstateDBConvert
0fd04f5213ff3fd3548db3f322828bd80cf41791
[ "Apache-2.0" ]
null
null
null
initial_load.py
hongyuanChrisLi/RealEstateDBConvert
0fd04f5213ff3fd3548db3f322828bd80cf41791
[ "Apache-2.0" ]
null
null
null
from mysql_dao.select_dao import SelectDao as MysqlSelectDao from postgres_dao.ddl_dao import DdlDao from postgres_dao.dml_dao import DmlDao as PsqlDmlDao psql_ddl_dao = DdlDao() mysql_select_dao = MysqlSelectDao() psql_dml_dao = PsqlDmlDao() psql_ddl_dao.create_tables() county_data = mysql_select_dao.select_all_cou...
28.166667
60
0.857988
141
845
4.602837
0.241135
0.09245
0.138675
0.16641
0.365177
0.291217
0.098613
0
0
0
0
0
0.068639
845
29
61
29.137931
0.824651
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
0
0
0
1
7c88cdba00ccf459ff19909681f6bd97e0741c61
6,306
py
Python
pytests/docs/docs.py
ramalingam-cb/testrunner
81cea7a5a493cf0c67fca7f97c667cd3c6ad2142
[ "Apache-2.0" ]
null
null
null
pytests/docs/docs.py
ramalingam-cb/testrunner
81cea7a5a493cf0c67fca7f97c667cd3c6ad2142
[ "Apache-2.0" ]
null
null
null
pytests/docs/docs.py
ramalingam-cb/testrunner
81cea7a5a493cf0c67fca7f97c667cd3c6ad2142
[ "Apache-2.0" ]
null
null
null
import time import logger from basetestcase import BaseTestCase from couchbase_helper.documentgenerator import DocumentGenerator from membase.api.rest_client import RestConnection from couchbase_helper.documentgenerator import BlobGenerator class DocsTests(BaseTestCase): def setUp(self): super(DocsTests, ...
55.80531
121
0.579607
775
6,306
4.512258
0.234839
0.034315
0.04461
0.050043
0.498713
0.441807
0.391192
0.391192
0.391192
0.263655
0
0.025547
0.310974
6,306
112
122
56.303571
0.779287
0.018395
0
0.129032
0
0
0.098779
0
0
0
0
0
0
1
0.043011
false
0
0.064516
0
0.11828
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c898d721c85859465a77ce43f10791adda1d063
1,890
py
Python
lichthi.py
truongaxin123/lichthidtu
77ba75974769ab1fdd1281b6088a1734dc0a3a83
[ "MIT" ]
null
null
null
lichthi.py
truongaxin123/lichthidtu
77ba75974769ab1fdd1281b6088a1734dc0a3a83
[ "MIT" ]
null
null
null
lichthi.py
truongaxin123/lichthidtu
77ba75974769ab1fdd1281b6088a1734dc0a3a83
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests from urllib.request import urlretrieve ROOT = 'http://pdaotao.duytan.edu.vn' def get_url_sub(sub, id_, page): all_td_tag = [] for i in range(1, page+1): print('http://pdaotao.duytan.edu.vn/EXAM_LIST/?page={}&lang=VN'.format(i)) r = requests.get('ht...
35
93
0.595767
282
1,890
3.787234
0.319149
0.060861
0.044944
0.050562
0.364232
0.291199
0.235019
0.161985
0.161985
0.161985
0
0.014199
0.21746
1,890
53
94
35.660377
0.707911
0.044444
0
0.046512
0
0
0.199002
0.012749
0
0
0
0
0
1
0.069767
false
0
0.069767
0
0.209302
0.186047
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c8a2cc8e8cd0ae17cdb81c0889eb3b2e10339c2
10,998
py
Python
appengine/uploader/main.py
isabella232/feedloader
c0417480804d406a83d1aedcb7e7d719058fdbfd
[ "Apache-2.0" ]
5
2021-02-15T12:49:12.000Z
2022-01-12T06:28:41.000Z
appengine/uploader/main.py
google/feedloader
f6a25569bc3d7d4ee326961fd3b01e45fc3858e4
[ "Apache-2.0" ]
1
2021-06-18T15:30:16.000Z
2021-06-18T15:30:16.000Z
appengine/uploader/main.py
isabella232/feedloader
c0417480804d406a83d1aedcb7e7d719058fdbfd
[ "Apache-2.0" ]
4
2021-02-16T17:28:00.000Z
2021-06-18T15:27:52.000Z
# coding=utf-8 # Copyright 2021 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
38.055363
148
0.738498
1,489
10,998
5.247817
0.209537
0.023036
0.019196
0.012798
0.316995
0.256207
0.206808
0.182109
0.171871
0.1441
0
0.002681
0.185943
10,998
288
149
38.1875
0.870099
0.307965
0
0.164557
0
0.025316
0.130639
0.017991
0
0
0
0
0
1
0.050633
false
0
0.113924
0
0.259494
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c8a6aee7b7a77f1d1c85df07a12dedc044587d5
17,730
py
Python
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/transforms.py
BadDevCode/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/transforms.py
olivier-be/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/transforms.py
olivier-be/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
""" Implement transformation on Numba IR """ from __future__ import absolute_import, print_function from collections import namedtuple, defaultdict import logging from numba.analysis import compute_cfg_from_blocks, find_top_level_loops from numba import ir, errors, ir_utils from numba.analysis import compute_use_def...
33.579545
84
0.60846
2,184
17,730
4.779762
0.184982
0.013794
0.022991
0.01389
0.164096
0.110547
0.059584
0.039659
0.031804
0.031804
0
0.002125
0.310039
17,730
527
85
33.643264
0.851222
0.182121
0
0.120235
0
0
0.06584
0.002592
0
0
0
0
0.008798
1
0.085044
false
0
0.026393
0.005865
0.196481
0.002933
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c8a815c2ee01b343fc690c138951a4c479fece7
6,453
py
Python
tests/test_masked_inference_wsi_dataset.py
HabibMrad/MONAI
1314701c15623422574b0153d746666dc6004454
[ "Apache-2.0" ]
1
2022-01-04T21:38:23.000Z
2022-01-04T21:38:23.000Z
tests/test_masked_inference_wsi_dataset.py
HabibMrad/MONAI
1314701c15623422574b0153d746666dc6004454
[ "Apache-2.0" ]
null
null
null
tests/test_masked_inference_wsi_dataset.py
HabibMrad/MONAI
1314701c15623422574b0153d746666dc6004454
[ "Apache-2.0" ]
null
null
null
import os import unittest from unittest import skipUnless import numpy as np from numpy.testing import assert_array_equal from parameterized import parameterized from monai.apps.pathology.datasets import MaskedInferenceWSIDataset from monai.apps.utils import download_url from monai.utils import optional_import from t...
27
95
0.501937
681
6,453
4.53304
0.152717
0.071914
0.067055
0.068027
0.580175
0.56495
0.556527
0.537739
0.526401
0.514091
0
0.08339
0.314272
6,453
238
96
27.113445
0.614237
0
0
0.399061
0
0.004695
0.158841
0.004959
0
0
0
0
0.023474
1
0.023474
false
0
0.056338
0
0.084507
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c8d38953001878c9a523157e3f09b0df0983623
913
py
Python
manga_py/providers/doujins_com.py
paulolimac/manga-py
3d180846750a4e770b5024eb8cd15629362875b1
[ "MIT" ]
1
2020-11-19T00:40:49.000Z
2020-11-19T00:40:49.000Z
manga_py/providers/doujins_com.py
paulolimac/manga-py
3d180846750a4e770b5024eb8cd15629362875b1
[ "MIT" ]
null
null
null
manga_py/providers/doujins_com.py
paulolimac/manga-py
3d180846750a4e770b5024eb8cd15629362875b1
[ "MIT" ]
null
null
null
from manga_py.provider import Provider from .helpers.std import Std class DoujinsCom(Provider, Std): img_selector = '#image-container img.doujin' def get_archive_name(self) -> str: return 'archive' def get_chapter_index(self) -> str: return '0' def get_main_content(self): re...
23.410256
73
0.634173
120
913
4.6
0.4
0.076087
0.094203
0.061594
0
0
0
0
0
0
0
0.001435
0.236583
913
38
74
24.026316
0.790531
0.009858
0
0
0
0
0.087583
0
0
0
0
0.026316
0
1
0.375
false
0.041667
0.083333
0.291667
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
1
0
0
1
0
0
0
1
1
0
0
4
7c8e9965cc893f149c68d0938c7cdd288fb5e3a7
980
py
Python
src/urh/ui/delegates/CheckBoxDelegate.py
awesome-archive/urh
c8c3aabc9d637ca660d8c72c3d8372055e0f3ec7
[ "Apache-2.0" ]
1
2017-06-21T02:37:16.000Z
2017-06-21T02:37:16.000Z
src/urh/ui/delegates/CheckBoxDelegate.py
dspmandavid/urh
30643c1a68634b1c97eb9989485a4e96a3b038ae
[ "Apache-2.0" ]
null
null
null
src/urh/ui/delegates/CheckBoxDelegate.py
dspmandavid/urh
30643c1a68634b1c97eb9989485a4e96a3b038ae
[ "Apache-2.0" ]
null
null
null
from PyQt5.QtCore import QModelIndex, QAbstractItemModel, Qt, pyqtSlot from PyQt5.QtWidgets import QItemDelegate, QWidget, QStyleOptionViewItem, QCheckBox class CheckBoxDelegate(QItemDelegate): def __init__(self, parent=None): super().__init__(parent) self.enabled = True def createEditor(self...
37.692308
94
0.715306
97
980
7.14433
0.443299
0.069264
0.063492
0
0
0
0
0
0
0
0
0.002503
0.184694
980
26
95
37.692308
0.864831
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.1
0
0.45
0
0
0
0
null
0
0
0
0
0
0
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
7c8eb61b685c469f781463c9f7be05e90e8308c7
1,408
py
Python
neural_network/backup_casestudy/denbigh/tf_RNN.py
acceleratedmaterials/AMDworkshop_demo
e7c2b931e023fc00ff7494b8acb2181f5c75bc4e
[ "MIT" ]
5
2019-04-02T03:20:43.000Z
2021-07-13T18:23:26.000Z
neural_network/backup_casestudy/denbigh/tf_RNN.py
NUS-SSE/AMDworkshop_demo
edbd6c60957dd0d83c3ef43c7e9e28ef1fef3bd9
[ "MIT" ]
null
null
null
neural_network/backup_casestudy/denbigh/tf_RNN.py
NUS-SSE/AMDworkshop_demo
edbd6c60957dd0d83c3ef43c7e9e28ef1fef3bd9
[ "MIT" ]
5
2019-05-12T17:41:58.000Z
2021-06-08T04:38:35.000Z
# -*- coding: utf-8 -*- ''' Framework: Tensorflow Training samples: 1600 Validation samples: 400 RNN with 128 units Optimizer: Adam Epoch: 100 Loss: Cross Entropy Activation function: Relu for network and Soft-max for regression Regularization: Drop-out, keep_prob = 0.8 Accuracy of Validation set: 95% ''' from __future...
37.052632
76
0.769176
214
1,408
4.897196
0.490654
0.04771
0.017176
0.028626
0
0
0
0
0
0
0
0.039216
0.130682
1,408
38
77
37.052632
0.816993
0.371449
0
0
0
0
0.052874
0.027586
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c8eba30a07960e7e0f748300f8823eed9acd88c
5,569
py
Python
code/tests/test_tile_tf.py
Nocty-chan/cs224n-squad
0c0b342621e038aba8e20ff411da13dfa173351d
[ "Apache-2.0" ]
2
2018-04-15T06:13:41.000Z
2019-07-25T20:22:34.000Z
code/tests/test_tile_tf.py
Nocty-chan/cs224n-squad
0c0b342621e038aba8e20ff411da13dfa173351d
[ "Apache-2.0" ]
1
2020-11-10T04:51:36.000Z
2020-11-10T04:51:36.000Z
code/tests/test_tile_tf.py
Nocty-chan/cs224n-squad
0c0b342621e038aba8e20ff411da13dfa173351d
[ "Apache-2.0" ]
3
2018-08-08T08:48:04.000Z
2020-02-10T09:52:41.000Z
import numpy as np import tensorflow as tf H = 2 N = 2 M = 3 BS = 10 def my_softmax(arr): max_elements = np.reshape(np.max(arr, axis = 2), (BS, N, 1)) arr = arr - max_elements exp_array = np.exp(arr) print (exp_array) sum_array = np.reshape(np.sum(exp_array, axis=2), (BS, N, 1)) return exp_arra...
41.87218
99
0.625606
978
5,569
3.40593
0.160532
0.019814
0.018013
0.018013
0.208646
0.104773
0.059442
0.02882
0
0
0
0.050568
0.225893
5,569
132
100
42.189394
0.722106
0.223379
0
0
0
0
0.039499
0
0
0
0
0
0.042553
1
0.074468
false
0
0.021277
0
0.170213
0.042553
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c8edd5a1cedfd0895ce2bb9c6148ce0241c7af7
7,174
py
Python
specutils/tests/test_smoothing.py
hamogu/specutils
b873f2ac9b3c207c9e670246d102f46a9606d6ed
[ "BSD-3-Clause" ]
null
null
null
specutils/tests/test_smoothing.py
hamogu/specutils
b873f2ac9b3c207c9e670246d102f46a9606d6ed
[ "BSD-3-Clause" ]
null
null
null
specutils/tests/test_smoothing.py
hamogu/specutils
b873f2ac9b3c207c9e670246d102f46a9606d6ed
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pytest from astropy import convolution from scipy.signal import medfilt import astropy.units as u from ..spectra.spectrum1d import Spectrum1D from ..tests.spectral_examples import simulated_spectra from ..manipulation.smoothing import (convolution_smooth, box_smooth, ...
32.609091
98
0.730694
940
7,174
5.393617
0.156383
0.059961
0.037475
0.051479
0.63787
0.608679
0.594675
0.531558
0.509467
0.509467
0
0.023034
0.195149
7,174
219
99
32.757991
0.85504
0.340117
0
0.432099
0
0
0.01071
0
0
0
0
0
0.123457
1
0.123457
false
0
0.098765
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c909452f19de7c50d60c569038b33d1b55f15c0
909
py
Python
modules/interpolator.py
buulikduong/1d_sgl_solver
03ce0b362d45acbbd3bb35e7b604ba97982eea92
[ "BSD-2-Clause" ]
null
null
null
modules/interpolator.py
buulikduong/1d_sgl_solver
03ce0b362d45acbbd3bb35e7b604ba97982eea92
[ "BSD-2-Clause" ]
null
null
null
modules/interpolator.py
buulikduong/1d_sgl_solver
03ce0b362d45acbbd3bb35e7b604ba97982eea92
[ "BSD-2-Clause" ]
2
2020-09-01T13:02:49.000Z
2021-08-15T09:10:17.000Z
"""Module interpolating mathematical functions out of support points""" from scipy.interpolate import interp1d, lagrange, CubicSpline def interpolator(x_sup, y_sup, method): """Interpolates a mathematical function from a given set of points using either linear, polynomial or cubic spline for the interpol...
29.322581
71
0.672167
113
909
5.309735
0.495575
0.033333
0.033333
0.053333
0
0
0
0
0
0
0
0.002933
0.249725
909
30
72
30.3
0.876833
0.454345
0
0.25
0
0
0.080357
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c9109fd0312f441ea7db6be13582d7563d361c0
196
py
Python
frappe/patches/v13_0/remove_web_view.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
3,755
2015-01-06T07:47:43.000Z
2022-03-31T20:54:23.000Z
frappe/patches/v13_0/remove_web_view.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
7,369
2015-01-01T19:59:41.000Z
2022-03-31T23:02:05.000Z
frappe/patches/v13_0/remove_web_view.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
2,685
2015-01-07T17:51:03.000Z
2022-03-31T23:16:24.000Z
import frappe def execute(): frappe.delete_doc_if_exists("DocType", "Web View") frappe.delete_doc_if_exists("DocType", "Web View Component") frappe.delete_doc_if_exists("DocType", "CSS Class")
32.666667
61
0.77551
29
196
4.931034
0.482759
0.251748
0.314685
0.356643
0.727273
0.727273
0.517483
0.517483
0
0
0
0
0.086735
196
6
62
32.666667
0.798883
0
0
0
0
0
0.284264
0
0
0
0
0
0
1
0.2
true
0
0.2
0
0.4
0
1
0
0
null
1
1
1
0
1
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
0
0
0
0
0
7
7c9227a3cbdbdfda32f8e1f7af19e23d5f84fca1
946
py
Python
games.py
cpratim/DSA-Research-Paper
ebb856ef62f8a04aa72380e39afdde958eed529a
[ "MIT" ]
null
null
null
games.py
cpratim/DSA-Research-Paper
ebb856ef62f8a04aa72380e39afdde958eed529a
[ "MIT" ]
null
null
null
games.py
cpratim/DSA-Research-Paper
ebb856ef62f8a04aa72380e39afdde958eed529a
[ "MIT" ]
null
null
null
import json import matplotlib.pyplot as plt from pprint import pprint import numpy as np from scipy.stats import linregress from util.stats import * with open('data/game_stats.json', 'r') as f: df = json.load(f) X, y = [], [] for match, stats in df.items(): home, away = stats['home'], stats['away'] if home['mp'] !...
22
51
0.64482
167
946
3.60479
0.443114
0.016611
0.039867
0
0
0
0
0
0
0
0
0.010152
0.167019
946
43
52
22
0.753807
0
0
0
0
0
0.119324
0
0
0
0
0
0
1
0
false
0
0.171429
0
0.171429
0.085714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c924b0af1eb750ce0d3f38bab21b79619b4ba48
6,255
py
Python
src/generate_data.py
gycggd/leaf-classification
b37dd4a6a262562c454038218c1472329e54128b
[ "MIT" ]
null
null
null
src/generate_data.py
gycggd/leaf-classification
b37dd4a6a262562c454038218c1472329e54128b
[ "MIT" ]
null
null
null
src/generate_data.py
gycggd/leaf-classification
b37dd4a6a262562c454038218c1472329e54128b
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd import tensorflow as tf from keras.preprocessing.image import ImageDataGenerator from keras.preprocessing.image import img_to_array, load_img from keras.utils.np_utils import to_categorical from sklearn.model_selection import StratifiedShuffleSplit from sklearn.preproces...
36.794118
116
0.672422
976
6,255
4.036885
0.17623
0.016244
0.007614
0.013959
0.371574
0.313706
0.232995
0.218782
0.218782
0.196447
0
0.014229
0.191047
6,255
169
117
37.011834
0.764427
0.040608
0
0.125984
0
0
0.078552
0.011341
0
0
0
0
0
1
0.086614
false
0
0.070866
0.023622
0.228346
0.125984
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c9293b09122efb5181f7494471359a909feb339
201
py
Python
2650-construindo-muralhas.py
ErickSimoes/URI-Online-Judge
7e6f141db2647b1d0d69951b064bd95b0ce4ba1a
[ "MIT" ]
null
null
null
2650-construindo-muralhas.py
ErickSimoes/URI-Online-Judge
7e6f141db2647b1d0d69951b064bd95b0ce4ba1a
[ "MIT" ]
null
null
null
2650-construindo-muralhas.py
ErickSimoes/URI-Online-Judge
7e6f141db2647b1d0d69951b064bd95b0ce4ba1a
[ "MIT" ]
1
2019-10-29T16:51:29.000Z
2019-10-29T16:51:29.000Z
# -*- coding: utf-8 -*- n, w = map(int, input().split()) for _ in range(n): entrada = input() last_space = entrada.rfind(' ') if int(entrada[last_space:]) > w: print(entrada[:last_space])
20.1
36
0.59204
29
201
3.965517
0.62069
0.234783
0.278261
0
0
0
0
0
0
0
0
0.006173
0.19403
201
9
37
22.333333
0.703704
0.104478
0
0
0
0
0.005618
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
1
0
0
null
1
1
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
4
7c938029fd9d5d4852f7e0ef36d2f9a92b855733
2,962
py
Python
tests/assemblers/test_ensemble.py
yarix/m2cgen
f1aa01e4c70a6d1a8893e27bfbe3c36fcb1e8546
[ "MIT" ]
1
2021-05-28T06:59:21.000Z
2021-05-28T06:59:21.000Z
tests/assemblers/test_ensemble.py
yarix/m2cgen
f1aa01e4c70a6d1a8893e27bfbe3c36fcb1e8546
[ "MIT" ]
null
null
null
tests/assemblers/test_ensemble.py
yarix/m2cgen
f1aa01e4c70a6d1a8893e27bfbe3c36fcb1e8546
[ "MIT" ]
null
null
null
from sklearn import ensemble from m2cgen import assemblers, ast from tests import utils def test_single_condition(): estimator = ensemble.RandomForestRegressor(n_estimators=2, random_state=1) estimator.fit([[1], [2]], [1, 2]) assembler = assemblers.RandomForestModelAssembler(estimator) actual = ass...
29.326733
79
0.502701
296
2,962
4.97973
0.175676
0.140434
0.081411
0.052239
0.852103
0.843962
0.839891
0.839891
0.772727
0.713026
0
0.041237
0.377785
2,962
100
80
29.62
0.758546
0
0
0.740741
0
0
0
0
0
0
0
0
0.037037
1
0.037037
false
0
0.037037
0
0.074074
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
7c93f115e357ee6abe4ee6a425a0e90b87246382
1,834
py
Python
setup.py
Parquery/pynumenc
f14abab40b7d08c55824bf1da5b2a7026c0a7282
[ "MIT" ]
1
2018-11-09T16:16:08.000Z
2018-11-09T16:16:08.000Z
setup.py
Parquery/numenc-py
f14abab40b7d08c55824bf1da5b2a7026c0a7282
[ "MIT" ]
2
2018-11-09T12:51:40.000Z
2018-11-09T12:53:55.000Z
setup.py
Parquery/pynumenc
f14abab40b7d08c55824bf1da5b2a7026c0a7282
[ "MIT" ]
2
2019-02-26T12:40:11.000Z
2019-06-17T07:42:35.000Z
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ import os from setuptools import setup, find_packages, Extension import pynumenc_meta # pylint: disable=redefined-builtin here = os.path.abspath(os.path.dirname(__file__)) # ...
31.084746
81
0.630316
211
1,834
5.241706
0.563981
0.086799
0.036166
0.0434
0.050633
0
0
0
0
0
0
0.022933
0.215376
1,834
58
82
31.62069
0.745657
0.138495
0
0.046512
0
0
0.327597
0.01912
0
0
0
0
0
1
0
false
0
0.069767
0
0.069767
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c95786ebe742f8164fbbe85994a95220ade7338
3,074
py
Python
Models/License-Plate-Recognition-Nigerian-vehicles-master/License-Plate-Recognition-Nigerian-vehicles-master/ocr.py
nipunjain099/AutoGuard
8217cd03af7927590ef3a160ecb7d9bc9f50d101
[ "MIT" ]
147
2018-12-23T09:44:36.000Z
2022-03-03T15:38:33.000Z
Models/License-Plate-Recognition-Nigerian-vehicles-master/License-Plate-Recognition-Nigerian-vehicles-master/ocr.py
nipunjain099/AutoGuard
8217cd03af7927590ef3a160ecb7d9bc9f50d101
[ "MIT" ]
17
2018-12-25T16:04:34.000Z
2022-01-13T00:44:21.000Z
Models/License-Plate-Recognition-Nigerian-vehicles-master/License-Plate-Recognition-Nigerian-vehicles-master/ocr.py
nipunjain099/AutoGuard
8217cd03af7927590ef3a160ecb7d9bc9f50d101
[ "MIT" ]
77
2018-12-19T03:03:14.000Z
2022-03-13T17:00:38.000Z
import numpy as np from skimage.transform import resize from skimage import measure from skimage.measure import regionprops class OCROnObjects(): def __init__(self, license_plate): character_objects = self.identify_boundary_objects(license_plate) self.get_regions(character_objects, license_pla...
43.914286
155
0.59987
327
3,074
5.464832
0.311927
0.120873
0.094572
0.080582
0.266928
0.266928
0.201455
0.201455
0.158926
0.105204
0
0.026005
0.311971
3,074
70
156
43.914286
0.818913
0.130124
0
0.22449
0
0
0.011705
0
0
0
0
0
0
1
0.061224
false
0
0.081633
0
0.204082
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c9666a6d0704c6c5a1d15ed10e9ce79d7670676
3,215
py
Python
project/server/models.py
mvlima/flask-jwt-auth
6cb210b50888b1e9a41ea9e63a80eafcbe436560
[ "MIT" ]
null
null
null
project/server/models.py
mvlima/flask-jwt-auth
6cb210b50888b1e9a41ea9e63a80eafcbe436560
[ "MIT" ]
null
null
null
project/server/models.py
mvlima/flask-jwt-auth
6cb210b50888b1e9a41ea9e63a80eafcbe436560
[ "MIT" ]
null
null
null
# project/server/models.py import jwt import datetime from project.server import app, db, bcrypt class User(db.Model): """ User Model for storing user related details """ __tablename__ = "users" id = db.Column(db.Integer, primary_key=True, autoincrement=True) username = db.Column(db.String(255), uni...
32.806122
90
0.612753
368
3,215
5.211957
0.296196
0.050052
0.062565
0.04171
0.18561
0.163712
0.163712
0.095933
0.095933
0.052138
0
0.009961
0.281804
3,215
97
91
33.14433
0.820702
0.080871
0
0.115942
0
0
0.07058
0
0
0
0
0
0
1
0.086957
false
0.057971
0.043478
0.014493
0.492754
0
0
0
0
null
0
0
0
0
0
0
0
0
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
7c974ea9b476fd86b7ac61a4ae4dbd0512a02f64
1,711
py
Python
letsencrypt/setup.py
ccppuu/certbot
9fead41aaf93dde0d36d4aef6fded8dd306c1ddc
[ "Apache-2.0" ]
1
2017-12-20T20:06:11.000Z
2017-12-20T20:06:11.000Z
letsencrypt/setup.py
cpu/certbot
9fead41aaf93dde0d36d4aef6fded8dd306c1ddc
[ "Apache-2.0" ]
null
null
null
letsencrypt/setup.py
cpu/certbot
9fead41aaf93dde0d36d4aef6fded8dd306c1ddc
[ "Apache-2.0" ]
null
null
null
import codecs import os import sys from setuptools import setup from setuptools import find_packages def read_file(filename, encoding='utf8'): """Read unicode from given file.""" with codecs.open(filename, encoding=encoding) as fd: return fd.read() here = os.path.abspath(os.path.dirname(__file__)) ...
27.15873
61
0.630625
180
1,711
5.9
0.555556
0.071563
0.094162
0.073446
0
0
0
0
0
0
0
0.009946
0.236119
1,711
62
62
27.596774
0.802601
0.043834
0
0.041667
0
0
0.442331
0.015951
0
0
0
0
0
1
0.020833
false
0
0.104167
0
0.145833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c98495a22a6d3d8755497c989624d8a5c427192
60,943
py
Python
elastalert/alerts.py
dekhrekh/elastalert
0c1ce30302c575bd0be404582cd452f38c01c774
[ "Apache-2.0" ]
null
null
null
elastalert/alerts.py
dekhrekh/elastalert
0c1ce30302c575bd0be404582cd452f38c01c774
[ "Apache-2.0" ]
null
null
null
elastalert/alerts.py
dekhrekh/elastalert
0c1ce30302c575bd0be404582cd452f38c01c774
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import copy import datetime import json import logging import subprocess import sys import warnings from email.mime.text import MIMEText from email.utils import formatdate from smtplib import SMTP from smtplib import SMTP_SSL from smtplib import SMTPAuthenticationError from smtplib import SMTPEx...
44.289971
137
0.607814
7,440
60,943
4.771371
0.104301
0.05048
0.026959
0.006704
0.427646
0.314544
0.252373
0.207583
0.181695
0.173526
0
0.002861
0.283101
60,943
1,375
138
44.322182
0.809613
0.093514
0
0.245411
0
0.000966
0.15868
0.024326
0
0
0
0
0
0
null
null
0.011594
0.029952
null
null
0.002899
0
0
0
null
0
0
0
0
0
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
7c9ab847564a9551bd26274412cd272cd155cf72
69,601
py
Python
tests/unit/python/fledge/services/core/scheduler/test_scheduler.py
DDC-NDRS/fledge-iot_fledge
27a5e66a55daaab1aca14ce6e66f9f1e6efaef51
[ "Apache-2.0" ]
69
2019-12-03T17:54:33.000Z
2022-03-13T07:05:23.000Z
tests/unit/python/fledge/services/core/scheduler/test_scheduler.py
DDC-NDRS/fledge-iot_fledge
27a5e66a55daaab1aca14ce6e66f9f1e6efaef51
[ "Apache-2.0" ]
125
2020-02-13T15:11:28.000Z
2022-03-29T14:42:36.000Z
tests/unit/python/fledge/services/core/scheduler/test_scheduler.py
DDC-NDRS/fledge-iot_fledge
27a5e66a55daaab1aca14ce6e66f9f1e6efaef51
[ "Apache-2.0" ]
24
2019-12-27T07:48:45.000Z
2022-03-13T07:05:28.000Z
# -*- coding: utf-8 -*- # FLEDGE_BEGIN # See: http://fledge-iot.readthedocs.io/ # FLEDGE_END import asyncio import datetime import uuid import time import json from unittest.mock import MagicMock, call import sys import copy import pytest from fledge.services.core.scheduler.scheduler import Scheduler, AuditLogger, C...
42.621555
339
0.652936
8,013
69,601
5.407088
0.056658
0.030212
0.04316
0.058809
0.848224
0.807903
0.781337
0.760565
0.726637
0.695617
0
0.020023
0.252295
69,601
1,632
340
42.647672
0.812532
0.058232
0
0.64881
0
0.002551
0.114192
0.02399
0
0
0
0.000613
0.179422
1
0.006803
false
0.005102
0.011054
0.005102
0.034864
0
0
0
0
null
0
0
0
1
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
6
7c9af51ba1243be5af3bd0e724c771174bb964d2
1,007
py
Python
problem_solving/python/algorithms/greedy/marcs_cakewalk.py
kcc3/hackerrank-solutions
f862b44b840bd447d99dc148f6bb5e2f5bfb8a86
[ "MIT" ]
null
null
null
problem_solving/python/algorithms/greedy/marcs_cakewalk.py
kcc3/hackerrank-solutions
f862b44b840bd447d99dc148f6bb5e2f5bfb8a86
[ "MIT" ]
null
null
null
problem_solving/python/algorithms/greedy/marcs_cakewalk.py
kcc3/hackerrank-solutions
f862b44b840bd447d99dc148f6bb5e2f5bfb8a86
[ "MIT" ]
1
2020-06-04T09:23:19.000Z
2020-06-04T09:23:19.000Z
def marcs_cakewalk(calorie): """Hackerrank Problem: https://www.hackerrank.com/challenges/marcs-cakewalk/problem Marc loves cupcakes, but he also likes to stay fit. Each cupcake has a calorie count, and Marc can walk a distance to expend those calories. If Marc has eaten j cupcakes so far, after eating a c...
37.296296
118
0.683217
154
1,007
4.38961
0.590909
0.096154
0.08432
0.056213
0
0
0
0
0
0
0
0.026008
0.236346
1,007
26
119
38.730769
0.853056
0.631579
0
0
0
0
0.024691
0
0
0
0
0
0.333333
1
0.111111
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c9bc57e7e9891072399e9288ee87401c640bfb4
1,583
py
Python
coronaindiatracker/coronatracker/views.py
ankitgoswami23/CoronaIndiaTracker
b2e116a595b3c69ccefa93b60833c09aa07b5eed
[ "Unlicense" ]
2
2020-07-26T05:57:27.000Z
2020-07-26T07:12:15.000Z
coronaindiatracker/coronatracker/views.py
ankee23/CoronaIndiaTracker
b2e116a595b3c69ccefa93b60833c09aa07b5eed
[ "Unlicense" ]
null
null
null
coronaindiatracker/coronatracker/views.py
ankee23/CoronaIndiaTracker
b2e116a595b3c69ccefa93b60833c09aa07b5eed
[ "Unlicense" ]
1
2020-11-26T08:52:11.000Z
2020-11-26T08:52:11.000Z
from django.shortcuts import render import requests from bs4 import BeautifulSoup def corona_data(request): "Testaaaa" corona_html = requests.get("https://www.mygov.in/covid-19") soup = BeautifulSoup(corona_html.content, 'html.parser') state_wise_data = soup.find_all('div', class_='views-row') inf...
45.228571
113
0.642451
201
1,583
4.840796
0.323383
0.071942
0.051387
0.077081
0.274409
0.248715
0.057554
0
0
0
0
0.009112
0.168035
1,583
34
114
46.558824
0.729689
0.005054
0
0
0
0
0.245736
0.013266
0
0
0
0
0
1
0.034483
false
0
0.103448
0
0.172414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c9c1524555fded271e617bca48b5b1e6a1e9ace
6,082
py
Python
compare.py
geohackweek/ghw2019_wiggles
9b636db8d97986e038a301e36b808e820ccc525f
[ "BSD-3-Clause" ]
3
2019-10-09T19:42:12.000Z
2021-05-28T00:10:54.000Z
compare.py
geohackweek/ghw2019_wiggles
9b636db8d97986e038a301e36b808e820ccc525f
[ "BSD-3-Clause" ]
1
2019-09-11T16:37:59.000Z
2019-09-11T16:37:59.000Z
compare.py
geohackweek/ghw2019_wiggles
9b636db8d97986e038a301e36b808e820ccc525f
[ "BSD-3-Clause" ]
3
2019-09-10T20:41:59.000Z
2019-09-10T20:42:57.000Z
# Script tests GPD model using UW truth data # Test outputs: # - type of event tested [EQS, EQP, SUS, SUP, THS, THP, SNS, SNP, PXS, PXP] # - phase [P, S, N] Note: N - not detected # - model time offset (t_truth - t_model_pick) import numpy import math import string import datetime import sys import os im...
37.312883
132
0.561822
824
6,082
4.01335
0.231796
0.023284
0.012096
0.015119
0.180224
0.151799
0.125189
0.125189
0.112489
0.112489
0
0.014822
0.290036
6,082
162
133
37.54321
0.751042
0.162775
0
0.101563
0
0
0.06065
0
0
0
0
0
0
1
0.0625
false
0.007813
0.070313
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c9c7b65355934d322e4085f42e442dbe2ee0d7d
7,012
py
Python
ultitrackerapi/ultitrackerapi/extract_and_upload_video.py
atheheath/ultitracker-api
5d7ea7ae97c53faf02416f17baf11ed09fd55276
[ "MIT" ]
null
null
null
ultitrackerapi/ultitrackerapi/extract_and_upload_video.py
atheheath/ultitracker-api
5d7ea7ae97c53faf02416f17baf11ed09fd55276
[ "MIT" ]
7
2020-03-27T03:33:52.000Z
2020-03-30T02:33:04.000Z
ultitrackerapi/ultitrackerapi/extract_and_upload_video.py
atheheath/ultitracker-api
5d7ea7ae97c53faf02416f17baf11ed09fd55276
[ "MIT" ]
null
null
null
import argparse import boto3 import datetime import json import os import posixpath import re import shutil import tempfile import uuid from concurrent import futures from multiprocessing import Pool from ultitrackerapi import get_backend, get_logger, get_s3Client, video backend_instance = get_backend() logger = ...
33.711538
138
0.673987
829
7,012
5.359469
0.19421
0.049516
0.079226
0.103984
0.367995
0.345712
0.269187
0.160927
0.059194
0.022507
0
0.005557
0.230034
7,012
208
139
33.711538
0.817374
0.00328
0
0.143713
0
0
0.23941
0.085861
0
0
0
0
0
1
0.02994
false
0
0.077844
0
0.113772
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c9c87d15e24804e84e87528b8a9f5ba5b08422f
3,265
py
Python
Chapter03/scikit_soft_voting_2knn.py
PacktPublishing/Hands-On-Ensemble-Learning-with-Python
db9b90189dbebbc6ab5ebba0e2e173ba80197c35
[ "MIT" ]
31
2019-07-21T00:36:52.000Z
2022-02-25T15:38:21.000Z
Chapter03/scikit_soft_voting_2knn.py
tokiran/Hands-On-Ensemble-Learning-with-Python
739ecda33fb75dc1df1366abf4a79c34cc0c2026
[ "MIT" ]
null
null
null
Chapter03/scikit_soft_voting_2knn.py
tokiran/Hands-On-Ensemble-Learning-with-Python
739ecda33fb75dc1df1366abf4a79c34cc0c2026
[ "MIT" ]
30
2019-07-06T00:22:44.000Z
2022-02-04T02:44:17.000Z
# --- SECTION 1 --- # Import the required libraries from sklearn import datasets, naive_bayes, svm, neighbors from sklearn.ensemble import VotingClassifier from sklearn.metrics import accuracy_score # Load the dataset breast_cancer = datasets.load_breast_cancer() x, y = breast_cancer.data, breast_cancer.target ...
28.640351
92
0.67902
471
3,265
4.5138
0.26327
0.023518
0.016463
0.028222
0.182502
0.085607
0
0
0
0
0
0.032148
0.190199
3,265
113
93
28.893805
0.771936
0.266156
0
0
0
0
0.053452
0
0
0
0
0
0
1
0
false
0
0.087719
0
0.087719
0.087719
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7c9e60fb8b9a1847e8db908d6cfa14b5a53e1aaf
623
py
Python
API/migrations/0005_alter_news_date_time_alter_news_headline.py
kgarchie/ReSTful-Django-API
851c76eb75747042ceac0a6c164266409ca935d4
[ "MIT" ]
null
null
null
API/migrations/0005_alter_news_date_time_alter_news_headline.py
kgarchie/ReSTful-Django-API
851c76eb75747042ceac0a6c164266409ca935d4
[ "MIT" ]
null
null
null
API/migrations/0005_alter_news_date_time_alter_news_headline.py
kgarchie/ReSTful-Django-API
851c76eb75747042ceac0a6c164266409ca935d4
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-23 14:31 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('API', '0004_alter_news_date_time_alter_news_headline'), ] operations = [ migrations.AlterField( model_name='news...
24.92
98
0.603531
69
623
5.289855
0.594203
0.049315
0.136986
0.158904
0.20274
0.20274
0
0
0
0
0
0.089485
0.282504
623
24
99
25.958333
0.727069
0.072231
0
0.333333
1
0
0.126736
0.078125
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7ca170e48f979878209316e327d77080c8c15058
2,662
py
Python
qiskit/ml/datasets/iris.py
stefan-woerner/aqua
12e1b867e254977d9c5992612a7919d8fe016cb4
[ "Apache-2.0" ]
504
2018-12-15T16:34:03.000Z
2022-03-26T11:24:53.000Z
qiskit/ml/datasets/iris.py
stefan-woerner/aqua
12e1b867e254977d9c5992612a7919d8fe016cb4
[ "Apache-2.0" ]
746
2018-12-16T16:44:42.000Z
2021-07-10T16:59:43.000Z
qiskit/ml/datasets/iris.py
stefan-woerner/aqua
12e1b867e254977d9c5992612a7919d8fe016cb4
[ "Apache-2.0" ]
421
2018-12-22T14:49:00.000Z
2022-03-04T09:47:07.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
38.028571
78
0.696093
369
2,662
4.850949
0.403794
0.086034
0.06648
0.058659
0.157542
0.075978
0.036872
0.036872
0
0
0
0.011967
0.215252
2,662
69
79
38.57971
0.844902
0.258077
0
0.051282
0
0
0.026194
0
0
0
0
0
0
1
0.025641
false
0
0.205128
0
0.25641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7ca18b95086348a6dec0e89454f15ffded086574
16,864
py
Python
tests/h/views/api_auth_test.py
discodavey/h
7bff8478b3a5b936de82ac9fcd89b355f4afd3aa
[ "MIT" ]
null
null
null
tests/h/views/api_auth_test.py
discodavey/h
7bff8478b3a5b936de82ac9fcd89b355f4afd3aa
[ "MIT" ]
5
2017-12-26T14:22:20.000Z
2018-04-02T02:56:38.000Z
tests/h/views/api_auth_test.py
discodavey/h
7bff8478b3a5b936de82ac9fcd89b355f4afd3aa
[ "MIT" ]
1
2021-03-12T09:45:04.000Z
2021-03-12T09:45:04.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime import json import mock import pytest from oauthlib.oauth2 import InvalidRequestFatalError from oauthlib.common import Request as OAuthRequest from pyramid import httpexceptions from h._compat import urlparse from h.exceptions import O...
41.131707
147
0.694141
1,895
16,864
5.864908
0.111346
0.089437
0.027533
0.019435
0.684002
0.610041
0.560464
0.511337
0.474087
0.456271
0
0.007584
0.21027
16,864
409
148
41.232274
0.826926
0.001245
0
0.446254
0
0.003257
0.10801
0.013063
0
0
0
0
0.117264
1
0.153094
false
0
0.055375
0.009772
0.273616
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7ca1d5b32a32a25d088eb63410921b9a5e64742f
1,306
py
Python
tools/build/v2/test/conditionals.py
juslee/boost-svn
6d5a03c1f5ed3e2b23bd0f3ad98d13ff33d4dcbb
[ "BSL-1.0" ]
1
2018-12-15T19:55:56.000Z
2018-12-15T19:55:56.000Z
tools/build/v2/test/conditionals.py
smart-make/boost
46509a094f8a844eefd5bb8a0030b739a04d79e1
[ "BSL-1.0" ]
null
null
null
tools/build/v2/test/conditionals.py
smart-make/boost
46509a094f8a844eefd5bb8a0030b739a04d79e1
[ "BSL-1.0" ]
null
null
null
#!/usr/bin/python # Copyright 2003 Dave Abrahams # Copyright 2002, 2003, 2004 Vladimir Prus # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) # Test conditional properties. import BoostBuild t = BoostBuild.Tester(...
26.653061
78
0.712864
204
1,306
4.5
0.436275
0.098039
0.042484
0.052288
0.396514
0.305011
0.305011
0.305011
0.239651
0.239651
0
0.019147
0.120214
1,306
48
79
27.208333
0.779809
0.420368
0
0.5
0
0
0.560484
0.254032
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7ca33bba047d555eff412922059b6da8837f7980
270
py
Python
examples/setuptools-rust-starter/tests/test_setuptools_rust_starter.py
FriendRat/pyo3
5446fe2062cb3bf11bf61bd4a2c58a7ed8b408d2
[ "Apache-2.0" ]
1
2021-06-18T16:27:31.000Z
2021-06-18T16:27:31.000Z
examples/setuptools-rust-starter/tests/test_setuptools_rust_starter.py
FriendRat/pyo3
5446fe2062cb3bf11bf61bd4a2c58a7ed8b408d2
[ "Apache-2.0" ]
5
2021-11-08T22:05:41.000Z
2022-03-28T22:07:04.000Z
examples/setuptools-rust-starter/tests/test_setuptools_rust_starter.py
FriendRat/pyo3
5446fe2062cb3bf11bf61bd4a2c58a7ed8b408d2
[ "Apache-2.0" ]
null
null
null
from setuptools_rust_starter import PythonClass, ExampleClass def test_python_class() -> None: py_class = PythonClass(value=10) assert py_class.value == 10 def test_example_class() -> None: example = ExampleClass(value=11) assert example.value == 11
22.5
61
0.733333
35
270
5.428571
0.514286
0.073684
0
0
0
0
0
0
0
0
0
0.035874
0.174074
270
11
62
24.545455
0.816144
0
0
0
0
0
0
0
0
0
0
0
0.285714
1
0.285714
false
0
0.142857
0
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
1
0
0
0
0
0
0
0
1
7ca44058ba24c0424d8558e54e0f3abd230491fa
12,813
py
Python
spiders/juejin_spider.py
sunhailin-Leo/TeamLeoX_BlogsCrawler
389ff31e02bdff415c8bc470a3a48da1acb14c4c
[ "MIT" ]
null
null
null
spiders/juejin_spider.py
sunhailin-Leo/TeamLeoX_BlogsCrawler
389ff31e02bdff415c8bc470a3a48da1acb14c4c
[ "MIT" ]
null
null
null
spiders/juejin_spider.py
sunhailin-Leo/TeamLeoX_BlogsCrawler
389ff31e02bdff415c8bc470a3a48da1acb14c4c
[ "MIT" ]
null
null
null
import time from typing import Dict, List, Tuple, Optional from utils.logger_utils import LogManager from utils.str_utils import check_is_json from config import LOG_LEVEL, PROCESS_STATUS_FAIL from utils.time_utils import datetime_str_change_fmt from utils.exception_utils import LoginException, ParseDataException from...
42.287129
157
0.558807
1,371
12,813
4.873085
0.170678
0.048496
0.050292
0.019907
0.340668
0.256698
0.210148
0.161054
0.115552
0.094896
0
0.004866
0.342387
12,813
302
158
42.427152
0.788037
0.008039
0
0.172414
0
0
0.117652
0.039296
0
0
0
0.003311
0
1
0.030651
false
0.011494
0.034483
0
0.095785
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7ca486af10b1cca3904ea233b441a3077ec0bb6b
3,653
py
Python
NAS/PaddleSlim/train_supernet.py
naviocean/SimpleCVReproduction
61b43e3583977f42e6f91ef176ec5e1701e98d33
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
NAS/PaddleSlim/train_supernet.py
Twenty3hree/SimpleCVReproduction
9939f8340c54dbd69b0017cecad875dccf428f26
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
NAS/PaddleSlim/train_supernet.py
Twenty3hree/SimpleCVReproduction
9939f8340c54dbd69b0017cecad875dccf428f26
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
from paddle.vision.transforms import ( ToTensor, RandomHorizontalFlip, RandomResizedCrop, SaturationTransform, Compose, HueTransform, BrightnessTransform, ContrastTransform, RandomCrop, Normalize, RandomRotation ) from paddle.vision.datasets import Cifar100 from paddle.io import DataLoader from paddle.optimizer...
33.209091
108
0.680537
505
3,653
4.786139
0.306931
0.050062
0.056268
0.019859
0.274721
0.228382
0.201076
0.189905
0.189905
0.169632
0
0.112231
0.185327
3,653
109
109
33.513761
0.699933
0.163701
0
0.093023
0
0
0.040736
0.031866
0
0
0
0
0
1
0
false
0
0.116279
0
0.116279
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7ca4b5308f48cb161081920789f0cfaed577f79d
28,560
py
Python
slashtags/mixins/commands.py
Myst1c-a/phen-cogs
672f9022ddbbd9a84b0a05357347e99e64a776fc
[ "MIT" ]
null
null
null
slashtags/mixins/commands.py
Myst1c-a/phen-cogs
672f9022ddbbd9a84b0a05357347e99e64a776fc
[ "MIT" ]
null
null
null
slashtags/mixins/commands.py
Myst1c-a/phen-cogs
672f9022ddbbd9a84b0a05357347e99e64a776fc
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020-present phenom4n4n Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
37.777778
165
0.630882
3,365
28,560
5.211293
0.144131
0.021442
0.040203
0.058964
0.401175
0.324133
0.271499
0.229642
0.203923
0.152372
0
0.003117
0.269818
28,560
755
166
37.827815
0.837585
0.042647
0
0.305369
0
0.001678
0.129653
0.013486
0
0
0.000315
0
0
1
0.006711
false
0.003356
0.031879
0
0.072148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0