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
dcf12e78cd43b62ae889013cd4f3dacacb7cb0bc
410
py
Python
ants/utils/jsonextends.py
wcong/scale-crawl
52918d18c94a9a69c3b2495286e3384ba57ad6f8
[ "BSD-3-Clause" ]
18
2015-01-16T02:25:03.000Z
2018-11-18T03:47:07.000Z
ants/utils/jsonextends.py
wcong/ants
52918d18c94a9a69c3b2495286e3384ba57ad6f8
[ "BSD-3-Clause" ]
15
2015-01-12T02:28:23.000Z
2015-02-03T03:41:07.000Z
ants/utils/jsonextends.py
wcong/scale-crawl
52918d18c94a9a69c3b2495286e3384ba57ad6f8
[ "BSD-3-Clause" ]
5
2015-01-22T12:38:38.000Z
2019-06-07T14:35:07.000Z
__author__ = 'wcong' import json import datetime class JSON(json.JSONEncoder): def default(self, o): o_type = type(o) if o_type == datetime.datetime: return o.strftime('%Y-%m-%d %H:%M:%S') elif o_type == datetime.date: return o.strftime('%Y-%m-%d') elif has...
24.117647
50
0.543902
54
410
3.851852
0.481481
0.072115
0.125
0.153846
0.173077
0.173077
0
0
0
0
0
0
0.317073
410
17
51
24.117647
0.742857
0
0
0
0
0
0.092457
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
dcf154140d779be50df39ec625bcaf518e1e2022
2,234
py
Python
tests/V2/test_product_view.py
kmwangemi/Store-Manager-Challenge-3
baf37c9316acadfd630009424757ed15091aaf92
[ "MIT" ]
null
null
null
tests/V2/test_product_view.py
kmwangemi/Store-Manager-Challenge-3
baf37c9316acadfd630009424757ed15091aaf92
[ "MIT" ]
null
null
null
tests/V2/test_product_view.py
kmwangemi/Store-Manager-Challenge-3
baf37c9316acadfd630009424757ed15091aaf92
[ "MIT" ]
null
null
null
import unittest import json from run import app from app.api.V2.views.product_view import Product class ProductstestCase(unittest.TestCase): def setUp(self): """will be called before every test""" self.client = app.test_client self.product = { "product_name" : "pro...
39.892857
142
0.570278
229
2,234
5.436681
0.279476
0.02008
0.041767
0.054618
0.493173
0.37751
0.37751
0.341365
0.341365
0.341365
0
0.010947
0.304834
2,234
56
143
39.892857
0.790728
0.102059
0
0.121212
0
0
0.171951
0.015046
0
0
0
0
0.121212
1
0.151515
false
0
0.121212
0
0.30303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dcf1dfdabf48f9691feb1a7313770d2b7803e043
12,008
py
Python
examples/ServiceSchema.py
meGregV/blpapi-python
30b11686255665956538826cf035a76bba9d301c
[ "Unlicense" ]
1
2019-08-17T07:05:41.000Z
2019-08-17T07:05:41.000Z
examples/ServiceSchema.py
doomoolmori/blpapi-python
55cb3e20d7ab3e22cf4718660d2789b3608142fd
[ "Unlicense" ]
null
null
null
examples/ServiceSchema.py
doomoolmori/blpapi-python
55cb3e20d7ab3e22cf4718660d2789b3608142fd
[ "Unlicense" ]
null
null
null
# ServiceSchema.py from __future__ import print_function from __future__ import absolute_import import blpapi import time from optparse import OptionParser TOKEN_SUCCESS = blpapi.Name("TokenGenerationSuccess") TOKEN_FAILURE = blpapi.Name("TokenGenerationFailure") AUTHORIZATION_SUCCESS = blpapi.Name("AuthorizationSucc...
34.210826
76
0.615756
1,201
12,008
6.09159
0.288926
0.032531
0.009021
0.013669
0.052214
0.047977
0.038272
0.031711
0.012849
0.012849
0
0.008053
0.276149
12,008
350
77
34.308571
0.83364
0.088108
0
0.095785
0
0
0.238025
0.029765
0
0
0
0
0
1
0.034483
false
0.003831
0.019157
0.003831
0.084291
0.1341
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dcf48f93526d5328700677ce0de7b0962b47458b
15,931
py
Python
e0/e3_tests.py
daedalus/knob
51b0b42ab64e6608bd9a87940ac282a1d35a3506
[ "MIT" ]
151
2019-08-17T01:01:22.000Z
2022-02-26T20:01:14.000Z
e0/e3_tests.py
daedalus/knob
51b0b42ab64e6608bd9a87940ac282a1d35a3506
[ "MIT" ]
7
2019-09-05T14:49:32.000Z
2021-05-18T06:55:28.000Z
e0/e3_tests.py
daedalus/knob
51b0b42ab64e6608bd9a87940ac282a1d35a3506
[ "MIT" ]
38
2019-08-17T03:55:32.000Z
2021-12-08T18:06:05.000Z
#!/usr/bin/python2 """ e3_tests.py Test code for e3.py: pag 1639 e3 is used to generate Kc. The test cases assumes that COF = ACO and ACO aro provided. Ar and Ar_prime uses SAFER+ We use https://github.com/aer0s/python-mcrypt that is ONLY compatible with python2. """ from sys import exit from e3 import * log.setL...
42.596257
84
0.724813
1,623
15,931
7.05114
0.178681
0.178958
0.012496
0.005243
0.510661
0.484184
0.44993
0.44993
0.221863
0.062828
0
0.235046
0.151026
15,931
373
85
42.710456
0.611091
0.075011
0
0.415541
1
0.003378
0.317609
0.285227
0
0
0
0
0.388514
1
0.027027
false
0
0.006757
0
0.033784
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
2
dcf5d0348f75187b044a2672de3945039ccc0b71
16,033
py
Python
adaptiveStreamProducer.py
kurthorvath/adaptivestreamer
7c85a67017ccba41b81968caf34f3ea49f0330a5
[ "MIT" ]
null
null
null
adaptiveStreamProducer.py
kurthorvath/adaptivestreamer
7c85a67017ccba41b81968caf34f3ea49f0330a5
[ "MIT" ]
null
null
null
adaptiveStreamProducer.py
kurthorvath/adaptivestreamer
7c85a67017ccba41b81968caf34f3ea49f0330a5
[ "MIT" ]
null
null
null
import cv2,imutils, socket import time import threading import time import uuid import logging, os from functools import partial from numpy import double import requests import json import sys import configparser ####### CONFIG PARAMS #CONFIGSERVERIP = '127.0.0.1' #CONFIGSERVERPORT = 9997 #logging.basicConfig(filena...
34.553879
217
0.493357
1,597
16,033
4.909831
0.214152
0.067976
0.04553
0.014029
0.310165
0.270119
0.242061
0.15419
0.145262
0.145262
0
0.024722
0.371796
16,033
463
218
34.62851
0.753773
0.111769
0
0.371951
0
0
0.097696
0.004608
0
0
0.000567
0.00216
0
1
0.027439
false
0.003049
0.036585
0
0.073171
0.088415
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dcfa0625fe18bf5b31b3c41c119941952321fac4
71
py
Python
general/recording-and-playing-audio/audio_player_playsound.py
gizzmo25/pythoncode-tutorials
39a413fc1da232ad6de7e5f1e8955564dc65448e
[ "MIT" ]
null
null
null
general/recording-and-playing-audio/audio_player_playsound.py
gizzmo25/pythoncode-tutorials
39a413fc1da232ad6de7e5f1e8955564dc65448e
[ "MIT" ]
null
null
null
general/recording-and-playing-audio/audio_player_playsound.py
gizzmo25/pythoncode-tutorials
39a413fc1da232ad6de7e5f1e8955564dc65448e
[ "MIT" ]
null
null
null
from playsound import playsound import sys playsound(sys.argv[1])
14.2
32
0.760563
10
71
5.4
0.6
0.555556
0
0
0
0
0
0
0
0
0
0.016949
0.169014
71
4
33
17.75
0.898305
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
1
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
dcfb3f72e395046eb90ede6f87900476cf79be0a
43
py
Python
conftest.py
sergei-bondarenko/exchange-simulator
a5bba00c38016823a5d18471da01fd4e04319b8e
[ "Unlicense" ]
1
2021-03-16T06:04:12.000Z
2021-03-16T06:04:12.000Z
conftest.py
sergei-bondarenko/exchange-simulator
a5bba00c38016823a5d18471da01fd4e04319b8e
[ "Unlicense" ]
null
null
null
conftest.py
sergei-bondarenko/exchange-simulator
a5bba00c38016823a5d18471da01fd4e04319b8e
[ "Unlicense" ]
null
null
null
pytest_plugins = [ 'xchg.tests.data', ]
10.75
21
0.627907
5
43
5.2
1
0
0
0
0
0
0
0
0
0
0
0
0.186047
43
3
22
14.333333
0.742857
0
0
0
0
0
0.348837
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
0
0
3
dcfd579f248c6ae550fd05ab1865da2443b5ad26
2,303
py
Python
BioClients/chebi/Client.py
jeremyjyang/BioClients
b78ab2b948c79616fed080112e31d383346bec58
[ "CC0-1.0" ]
10
2020-05-26T07:29:14.000Z
2021-12-06T21:33:40.000Z
BioClients/chebi/Client.py
jeremyjyang/BioClients
b78ab2b948c79616fed080112e31d383346bec58
[ "CC0-1.0" ]
1
2021-10-05T12:25:30.000Z
2021-10-05T17:05:56.000Z
BioClients/chebi/Client.py
jeremyjyang/BioClients
b78ab2b948c79616fed080112e31d383346bec58
[ "CC0-1.0" ]
2
2021-03-16T03:20:24.000Z
2021-08-08T20:17:10.000Z
#!/usr/bin/env python3 """ Utility for ChEBI SOAP API. * https://www.ebi.ac.uk/chebi/webServices.do """ ### import sys,os,re,json,argparse,time,logging import pandas as pd # from .. import chebi # ############################################################################## if __name__=='__main__': epilog="Example ...
32.43662
116
0.659574
327
2,303
4.513761
0.382263
0.060976
0.115176
0.030488
0.060976
0.060976
0.060976
0.044715
0.044715
0
0
0.010537
0.134607
2,303
70
117
32.9
0.730055
0.061224
0
0
0
0
0.238164
0.012077
0
0
0
0
0
1
0
false
0
0.061224
0
0.061224
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dcfdd812b058711aa5ae957f61479006e6bfa153
9,793
py
Python
Coach.py
NetasDev/NetworkTraining
1683309f4638d69f2c4be60dfd12ba821be6d961
[ "MIT" ]
null
null
null
Coach.py
NetasDev/NetworkTraining
1683309f4638d69f2c4be60dfd12ba821be6d961
[ "MIT" ]
null
null
null
Coach.py
NetasDev/NetworkTraining
1683309f4638d69f2c4be60dfd12ba821be6d961
[ "MIT" ]
null
null
null
import logging import os import sys from collections import deque from pickle import Pickler, Unpickler from random import shuffle from time import perf_counter from othello.OthelloPlayers import * import wandb import numpy as np from tqdm import tqdm from Arena import Arena from MCTS import MCTS log = logging.getLo...
44.716895
133
0.632799
1,143
9,793
5.284339
0.230096
0.029139
0.01457
0.023841
0.248179
0.168377
0.097682
0.066225
0.049669
0.016887
0
0.007934
0.279281
9,793
219
134
44.716895
0.847832
0.184111
0
0.051095
0
0
0.094432
0.007313
0
0
0
0
0
1
0.043796
false
0
0.094891
0.007299
0.167883
0.007299
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dcfec011a1b81ce9c217c8eefeb848ef377b3c27
1,351
py
Python
tests/gold_tests/headers/via-observer.py
zhangzhongkui/http-over-http
18e27573e3338ee797648c44d7e01114e1d3321c
[ "Apache-2.0" ]
null
null
null
tests/gold_tests/headers/via-observer.py
zhangzhongkui/http-over-http
18e27573e3338ee797648c44d7e01114e1d3321c
[ "Apache-2.0" ]
null
null
null
tests/gold_tests/headers/via-observer.py
zhangzhongkui/http-over-http
18e27573e3338ee797648c44d7e01114e1d3321c
[ "Apache-2.0" ]
1
2020-06-17T11:31:22.000Z
2020-06-17T11:31:22.000Z
''' Extract the protocol information from the VIA headers and store it in a log file for later verification. ''' # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright o...
33.775
104
0.661732
194
1,351
4.608247
0.546392
0.01566
0.020134
0.022371
0.008949
0.008949
0.008949
0
0
0
0
0.005623
0.210215
1,351
39
105
34.641026
0.83224
0.645448
0
0.133333
0
0
0.236324
0.118162
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
dcff7d1a940e3714715c9d14f1f889fc1690f9b3
978
py
Python
cpa/profiling/accuracy.py
oba14/CellProfiler-Analyst
7e194e72e8ce8440ce7c16196cb91c50052c2df1
[ "MIT" ]
1
2020-01-16T14:24:08.000Z
2020-01-16T14:24:08.000Z
cpa/profiling/accuracy.py
oba14/CellProfiler-Analyst
7e194e72e8ce8440ce7c16196cb91c50052c2df1
[ "MIT" ]
null
null
null
cpa/profiling/accuracy.py
oba14/CellProfiler-Analyst
7e194e72e8ce8440ce7c16196cb91c50052c2df1
[ "MIT" ]
null
null
null
""" Compute the overall accuracy of a confusion matrix """ from __future__ import print_function import sys from optparse import OptionParser import numpy as np import cpa.util from cpa.profiling.confusion import confusion_matrix, load_confusion parser = OptionParser("usage: %prog [options] CONFUSION") parser.add_opt...
29.636364
96
0.743354
141
978
5
0.510638
0.06383
0.042553
0
0
0
0
0
0
0
0
0.008226
0.129857
978
32
97
30.5625
0.820212
0.051125
0
0
0
0
0.17519
0
0
0
0
0
0
1
0.043478
false
0
0.26087
0
0.304348
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d03e7daf00c1563b1b6fe2d0009cfcb5c0c684e
4,813
py
Python
vigir_flexbe_states/src/vigir_flexbe_states/goto_single_arm_joint_config_state.py
team-vigir/vigir_behaviors
6696e7b7aadb24bb5495475065cc7b10d80b7db4
[ "BSD-3-Clause" ]
5
2015-08-25T18:47:52.000Z
2019-12-04T21:40:28.000Z
vigir_flexbe_states/src/vigir_flexbe_states/goto_single_arm_joint_config_state.py
team-vigir/vigir_behaviors
6696e7b7aadb24bb5495475065cc7b10d80b7db4
[ "BSD-3-Clause" ]
2
2017-08-16T16:09:47.000Z
2020-08-18T17:25:22.000Z
vigir_flexbe_states/src/vigir_flexbe_states/goto_single_arm_joint_config_state.py
team-vigir/vigir_behaviors
6696e7b7aadb24bb5495475065cc7b10d80b7db4
[ "BSD-3-Clause" ]
5
2015-11-06T21:57:37.000Z
2022-03-30T10:15:57.000Z
#!/usr/bin/env python import rospy from flexbe_core import EventState, Logger from flexbe_core.proxy import ProxyActionClient from control_msgs.msg import * from trajectory_msgs.msg import * """ Created on 05/18/2015 @author: Spyros Maniatopoulos """ class GotoSingleArmJointConfigState(EventState): """ Directly...
31.457516
117
0.677748
606
4,813
5.112211
0.292079
0.038735
0.033893
0.02195
0.23725
0.178179
0.161394
0.109748
0.109748
0
0
0.01441
0.163723
4,813
152
118
31.664474
0.75528
0.206108
0
0.144578
0
0
0.244001
0.050957
0
0
0
0
0
1
0.048193
false
0
0.060241
0
0.216867
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d0559140c74316b4c9189d66f026718d182678f
4,008
py
Python
homeassistant/components/litterrobot/hub.py
kristianheljas/homeassistant-core
eb7220ff262fe81d53c929884107bcedc8af7850
[ "Apache-2.0" ]
null
null
null
homeassistant/components/litterrobot/hub.py
kristianheljas/homeassistant-core
eb7220ff262fe81d53c929884107bcedc8af7850
[ "Apache-2.0" ]
51
2020-10-14T01:19:07.000Z
2022-03-31T06:02:48.000Z
homeassistant/components/litterrobot/hub.py
kristianheljas/homeassistant-core
eb7220ff262fe81d53c929884107bcedc8af7850
[ "Apache-2.0" ]
1
2021-08-16T02:53:15.000Z
2021-08-16T02:53:15.000Z
"""A wrapper 'hub' for the Litter-Robot API and base entity for common attributes.""" from datetime import time, timedelta import logging from types import MethodType from typing import Any, Optional from pylitterbot import Account, Robot from pylitterbot.exceptions import LitterRobotException, LitterRobotLoginExcepti...
32.585366
94
0.645709
456
4,008
5.491228
0.309211
0.048323
0.019169
0.013578
0.019968
0
0
0
0
0
0
0.002043
0.267216
4,008
122
95
32.852459
0.850528
0.099551
0
0.078652
0
0
0.069281
0.011203
0
0
0
0
0
1
0.067416
false
0.022472
0.134831
0
0.303371
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d092644246b35d8dfc64fca71163cf2d39cf763
41,824
py
Python
python3/Ecc.py
sebastien-riou/EccToys
3ab5c88ef45282795c6aeb0bab0756287cb542cf
[ "Apache-2.0" ]
null
null
null
python3/Ecc.py
sebastien-riou/EccToys
3ab5c88ef45282795c6aeb0bab0756287cb542cf
[ "Apache-2.0" ]
null
null
null
python3/Ecc.py
sebastien-riou/EccToys
3ab5c88ef45282795c6aeb0bab0756287cb542cf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from hashlib import sha256 import hmac import binascii from collections import namedtuple Point = namedtuple("Point", "x y") #E : y 2 + a 1 xy + a 3 y = x 3 + a 2 x 2 + a 4 x + a 6 Curve = namedtuple("Curve", "a1 a3 a2 a4 a6") def CurveToString(curve): out = "y2" if curve.a1: i...
37.849774
199
0.638581
4,275
41,824
6.108772
0.117661
0.018265
0.010722
0.013211
0.289833
0.251733
0.229638
0.214742
0.201034
0.176412
0
0.269217
0.255045
41,824
1,104
200
37.884058
0.568476
0.071801
0
0.377926
0
0
0.016183
0
0
0
0.237753
0
0.054627
1
0.063545
false
0
0.004459
0.015608
0.143813
0.035674
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
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
0d0960ad1b06bca915068cdce59adb7d2b15f5f3
4,848
py
Python
dotfiles/spectrwm/purp/.config/sublime-text-3/Packages/LaTeXTools/biblatex_crossref_completions.py
jturne19/jordans_things
9d7abc850d009898ec69daf199a78f33795af4a1
[ "MIT" ]
null
null
null
dotfiles/spectrwm/purp/.config/sublime-text-3/Packages/LaTeXTools/biblatex_crossref_completions.py
jturne19/jordans_things
9d7abc850d009898ec69daf199a78f33795af4a1
[ "MIT" ]
null
null
null
dotfiles/spectrwm/purp/.config/sublime-text-3/Packages/LaTeXTools/biblatex_crossref_completions.py
jturne19/jordans_things
9d7abc850d009898ec69daf199a78f33795af4a1
[ "MIT" ]
null
null
null
from __future__ import print_function import sublime import sublime_plugin import re import sys try: from latextools_utils import is_bib_buffer, is_biblatex_buffer except ImportError: from .latextools_utils import is_bib_buffer, is_biblatex_buffer if sys.version_info > (3, 0): strbase = str else: st...
29.204819
92
0.626238
643
4,848
4.497667
0.251944
0.018672
0.033887
0.05083
0.345436
0.239281
0.181535
0.098548
0.06639
0.035961
0
0.005204
0.246906
4,848
166
93
29.204819
0.786908
0.124587
0
0.247934
0
0.008264
0.066415
0.036162
0
0
0
0.006024
0
1
0.099174
false
0
0.066116
0.049587
0.322314
0.008264
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d0969bbcbec21f2ea03d898592c045dca79690c
4,652
py
Python
stock/migrations/0005_auto_20200909_1547.py
zhou-en/turf_portal
2424ac15248c9f1c0fa4f65ca18fe0ea71d7ff4e
[ "MIT" ]
null
null
null
stock/migrations/0005_auto_20200909_1547.py
zhou-en/turf_portal
2424ac15248c9f1c0fa4f65ca18fe0ea71d7ff4e
[ "MIT" ]
47
2020-10-14T21:54:35.000Z
2022-02-25T05:21:39.000Z
stock/migrations/0005_auto_20200909_1547.py
zhou-en/turf_portal
2424ac15248c9f1c0fa4f65ca18fe0ea71d7ff4e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-09 15:47 from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields class Migration(migrations.Migration): dependencies = [ ('stock', '0004_auto_20200908_1407'), ] operations = [ migrations.CreateMo...
41.168142
158
0.576526
430
4,652
6.081395
0.213953
0.034417
0.04283
0.067304
0.615679
0.595794
0.458509
0.458509
0.458509
0.458509
0
0.01294
0.285684
4,652
112
159
41.535714
0.773999
0.009673
0
0.603774
1
0
0.128339
0.004995
0
0
0
0
0
1
0
false
0
0.028302
0
0.056604
0
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
0d096ee6b4123c7c0c3a2ec91a6b9b448d9095f1
131
py
Python
code/webhookhandler/urls/hooks.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
8
2017-03-13T16:34:28.000Z
2021-11-16T11:35:56.000Z
code/webhookhandler/urls/hooks.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
null
null
null
code/webhookhandler/urls/hooks.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
3
2017-03-28T09:26:40.000Z
2020-12-08T14:16:12.000Z
from django.conf.urls import url from webhookhandler import views urlpatterns = [ url(r'^$', views.webhook, name='webhook'), ]
21.833333
46
0.717557
17
131
5.529412
0.705882
0
0
0
0
0
0
0
0
0
0
0
0.145038
131
6
47
21.833333
0.839286
0
0
0
0
0
0.068182
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
0d09a1ab76fbcba8277780907ddb0e6fb6d99938
1,585
py
Python
tests/test_utils_transition_rec_levels.py
mila-iqia/COVI-AgentSim
7e4dea42ad9c5dd251aa8d7546c647ad4f173d28
[ "Apache-2.0" ]
13
2020-10-25T20:15:25.000Z
2022-03-14T06:34:32.000Z
tests/test_utils_transition_rec_levels.py
mila-iqia/COVI-AgentSim
7e4dea42ad9c5dd251aa8d7546c647ad4f173d28
[ "Apache-2.0" ]
6
2020-10-30T02:09:48.000Z
2022-03-09T12:48:22.000Z
tests/test_utils_transition_rec_levels.py
mila-iqia/COVI-AgentSim
7e4dea42ad9c5dd251aa8d7546c647ad4f173d28
[ "Apache-2.0" ]
6
2020-10-29T15:36:40.000Z
2021-12-05T18:06:45.000Z
import pytest import numpy as np from covid19sim.distribution_normalization.dist_utils import lp_solve_wasserstein, lp_solution_to_transport_plan,\ get_rec_level_transition_matrix def test_lp_solve_wasserstein(): dist_0 = np.array([0.8, 0.0, 0.0, 0.2]) dist_1 = np.array([0.4, 0.2, 0.3, 0.1]) expecte...
32.346939
114
0.596845
305
1,585
2.911475
0.144262
0.198198
0.266892
0.315315
0.570946
0.434685
0.36036
0.288288
0.288288
0.288288
0
0.145544
0.228391
1,585
48
115
33.020833
0.58054
0
0
0.285714
0
0
0
0
0
0
0
0
0.085714
1
0.085714
false
0
0.085714
0
0.171429
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0d09bc63d9c7eb8423e9b0e5da7103e3ef8feb8b
1,018
py
Python
problems/TLane_solutions/problem_005.py
tshralper/tabula-rasa_project-euler
3eb924ae4a38d877098f6b8f8e1118f8ae3514e2
[ "MIT" ]
null
null
null
problems/TLane_solutions/problem_005.py
tshralper/tabula-rasa_project-euler
3eb924ae4a38d877098f6b8f8e1118f8ae3514e2
[ "MIT" ]
null
null
null
problems/TLane_solutions/problem_005.py
tshralper/tabula-rasa_project-euler
3eb924ae4a38d877098f6b8f8e1118f8ae3514e2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tues Aug 21 11:42:00 2018 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. Problem: What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? Answer: 232792560 Program c...
24.829268
116
0.639489
169
1,018
3.846154
0.514793
0.023077
0.032308
0.078462
0.116923
0.058462
0
0
0
0
0
0.059701
0.276031
1,018
40
117
25.45
0.822252
0.570727
0
0
0
0
0.044041
0
0
0
0
0
0
1
0
false
0
0
0
0
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d09dad0cfe724b037426ed9ab2ab54f7c0bf42a
887
py
Python
src/masonite/js_routes/generator.py
girardinsamuel/masonite-js-routes
8918b874ff1ca64069745ca5fbb9d4b464ceaf74
[ "MIT" ]
4
2020-11-01T22:51:01.000Z
2021-09-23T23:12:53.000Z
src/masonite/js_routes/generator.py
girardinsamuel/masonite-js-routes
8918b874ff1ca64069745ca5fbb9d4b464ceaf74
[ "MIT" ]
17
2021-02-07T17:32:15.000Z
2022-03-21T22:08:31.000Z
src/masonite/js_routes/generator.py
girardinsamuel/masonite-js-routes
8918b874ff1ca64069745ca5fbb9d4b464ceaf74
[ "MIT" ]
null
null
null
from jinja2 import Markup from .routes import Routes class RoutesGenerator(object): def generate(self, group=None, nonce=""): payload = Routes(group).to_json() return self._generate_base_js(payload, nonce) def generate_for_file(self, group=None): """Generate method used by command to ...
32.851852
81
0.624577
106
887
5.056604
0.415094
0.089552
0.048507
0.074627
0.089552
0
0
0
0
0
0
0.007564
0.254791
887
26
82
34.115385
0.803328
0.080045
0
0.105263
1
0
0.133416
0.03616
0
0
0
0
0
1
0.210526
false
0
0.105263
0.052632
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0d0cd0cb05f33dc84ee05240b7d4e69a6891ad7c
3,710
py
Python
utils/coco_eval.py
jundeli/Scaled-YOLOv4-tensorflow2
dd2ce523258f9a5b851bd6f391a6c07a4999662e
[ "Apache-2.0" ]
30
2021-01-29T13:57:47.000Z
2022-02-09T13:17:57.000Z
utils/coco_eval.py
jundeli/Scaled-YOLOv4-tensorflow2
dd2ce523258f9a5b851bd6f391a6c07a4999662e
[ "Apache-2.0" ]
13
2021-04-16T06:30:27.000Z
2022-03-16T18:42:23.000Z
utils/coco_eval.py
jundeli/Scaled-YOLOv4-tensorflow2
dd2ce523258f9a5b851bd6f391a6c07a4999662e
[ "Apache-2.0" ]
16
2021-04-28T06:51:58.000Z
2022-03-23T23:47:52.000Z
import numpy as np from utils import coco_tools class CocoEvalidation(): def __init__(self, groundtruth_boxes,groundtruth_classes,groundtruth_valids,class_names): self.groundtruth_boxes = groundtruth_boxes self.groundtruth_classes = groundtruth_classes self.groundtruth_valids = groundtruth...
42.643678
185
0.643666
416
3,710
5.384615
0.197115
0.042857
0.052232
0.035714
0.409375
0.379911
0.327232
0.296875
0.15
0
0
0.008506
0.271159
3,710
86
186
43.139535
0.819896
0.013747
0
0.197183
0
0
0.058308
0
0
0
0
0
0
1
0.056338
false
0.014085
0.028169
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
0d0e8db9852fae9b33e4425c27943f5b3b25e471
847
py
Python
JsonDB/Models.py
Ajay1290/JsonDB
21213bc2cc826cec8f483eafeab00f9401492a0a
[ "MIT" ]
1
2021-01-03T17:58:54.000Z
2021-01-03T17:58:54.000Z
JsonDB/Models.py
Ajay1290/JsonDB
21213bc2cc826cec8f483eafeab00f9401492a0a
[ "MIT" ]
null
null
null
JsonDB/Models.py
Ajay1290/JsonDB
21213bc2cc826cec8f483eafeab00f9401492a0a
[ "MIT" ]
null
null
null
import inspect class Map: map = {} def __init_subclass__(cls, **kwargs): Map.map = cls.map @staticmethod def harvest_map(): return Map.map class Model: nodes = [] def __init_subclass__(cls, **kwargs): Model.nodes.append(Model.harvest_attr(cls)) ...
22.891892
78
0.524203
93
847
4.494624
0.397849
0.043062
0.07177
0.086124
0.114833
0
0
0
0
0
0
0.005525
0.358914
847
37
79
22.891892
0.764273
0
0
0.142857
0
0
0.010613
0
0
0
0
0
0
1
0.178571
false
0
0.035714
0.071429
0.464286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d10f65fce5aa6e29e98a4acac3f1d7aaad83f0b
337
py
Python
python_programs/calculator_without_if_else.py
abhayanigam/Learn_Python_Programming
801e3fff2b1fe35e4c93f4ced649516c519eb8f9
[ "MIT" ]
1
2021-08-28T15:10:26.000Z
2021-08-28T15:10:26.000Z
python_programs/calculator_without_if_else.py
abhayanigam/Learn_Python_Programming
801e3fff2b1fe35e4c93f4ced649516c519eb8f9
[ "MIT" ]
null
null
null
python_programs/calculator_without_if_else.py
abhayanigam/Learn_Python_Programming
801e3fff2b1fe35e4c93f4ced649516c519eb8f9
[ "MIT" ]
null
null
null
import operator action = { "+" : operator.add, "-" : operator.sub, "/" : operator.truediv, "*" : operator.mul, "**" : pow } num1 = int(input("Enter the num1 value : ")) num2 = int(input("Enter the num2 value : ")) operation = raw_input("Enter the operation : ") print("The ans is", (action[operat...
21.0625
51
0.593472
40
337
4.975
0.5
0.150754
0.19598
0.160804
0
0
0
0
0
0
0
0.022556
0.210682
337
16
51
21.0625
0.725564
0
0
0
0
0
0.248521
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.083333
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0d11b0c592e35dc9d299b946d4178c688fd0a1a7
19,324
py
Python
fgivenx/drivers.py
Stefan-Heimersheim/fgivenx
ef8b02f47eea24af4de1a17088c092ef9d523fec
[ "MIT" ]
11
2017-10-13T11:04:53.000Z
2021-03-26T15:54:12.000Z
fgivenx/drivers.py
Stefan-Heimersheim/fgivenx
ef8b02f47eea24af4de1a17088c092ef9d523fec
[ "MIT" ]
16
2018-08-01T09:25:08.000Z
2022-03-04T12:29:52.000Z
fgivenx/drivers.py
Stefan-Heimersheim/fgivenx
ef8b02f47eea24af4de1a17088c092ef9d523fec
[ "MIT" ]
12
2018-02-04T20:34:01.000Z
2021-12-10T10:58:20.000Z
r"""This module provides utilities for computing the grid for contours of a function reconstruction plot. Required ingredients: * sampled posterior probability distribution :math:`P(\theta)` * independent variable :math:`x` * dependent variable :math:`y` * functional form :math:`y = f(x;\th...
35.327239
79
0.620679
2,610
19,324
4.545977
0.101149
0.033375
0.017109
0.017615
0.804298
0.775727
0.758449
0.751791
0.733418
0.729372
0
0.003945
0.265421
19,324
546
80
35.391941
0.831913
0.630511
0
0.47482
0
0
0.065527
0
0
0
0
0
0
1
0.043165
false
0
0.05036
0
0.122302
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
0d1213b55876a1f2a9e42dbe712806a7f20ed144
4,711
py
Python
onboarding-common/src/test/resources/model_pb2.py
fabiojna02/on-boarding
92a03ba99da144177404b3cdb3f409dc63d87077
[ "Apache-2.0" ]
3
2018-05-02T05:15:47.000Z
2021-04-16T16:09:48.000Z
onboarding-common/src/test/resources/model_pb2.py
fabiojna02/on-boarding
92a03ba99da144177404b3cdb3f409dc63d87077
[ "Apache-2.0" ]
1
2021-06-15T10:45:35.000Z
2021-06-15T10:45:35.000Z
onboarding-common/src/test/resources/model_pb2.py
fabiojna02/on-boarding
92a03ba99da144177404b3cdb3f409dc63d87077
[ "Apache-2.0" ]
4
2018-05-30T23:33:32.000Z
2021-01-13T13:32:04.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: model_pb2.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _ref...
32.715278
427
0.727234
612
4,711
5.328431
0.222222
0.056424
0.049678
0.034345
0.543392
0.48942
0.48942
0.48942
0.48942
0.460595
0
0.042327
0.142433
4,711
143
428
32.944056
0.764851
0.053067
0
0.6
1
0.008333
0.157836
0.094297
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0
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
0d127119d73c7030ec7f9cc2898f2e3a301807d8
598
py
Python
prtsc.py
xulu199705/RT_Check
9f1ade3bca18cf720839c182bd0e772ce0dc6212
[ "MIT" ]
null
null
null
prtsc.py
xulu199705/RT_Check
9f1ade3bca18cf720839c182bd0e772ce0dc6212
[ "MIT" ]
null
null
null
prtsc.py
xulu199705/RT_Check
9f1ade3bca18cf720839c182bd0e772ce0dc6212
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QApplication from PyQt5.QtGui import * import win32gui import sys import json import get_hwnd import get_time f = open('setting.json', encoding='utf-8') setting_data = json.loads(f.read()) # 根据title截图 def prtsc(title): hwnd = win32gui.FindWindow(None, title) app = QApplication(sys...
23
82
0.732441
82
598
5.182927
0.512195
0.049412
0.065882
0
0
0
0
0
0
0
0
0.013619
0.140468
598
25
83
23.92
0.81323
0.048495
0
0
0
0
0.144876
0.114841
0
0
0
0
0
1
0.111111
false
0
0.388889
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
1
0
0
0
0
1
0d14dedaefe2f00be87040a1e016a739fed81d62
3,400
py
Python
vmware_nsxlib/tests/unit/v3/test_trust_management.py
salv-orlando/vmware-nsxlib
283eff2881b99c57b3908d03fb1c91da7dbdf46e
[ "Apache-2.0" ]
null
null
null
vmware_nsxlib/tests/unit/v3/test_trust_management.py
salv-orlando/vmware-nsxlib
283eff2881b99c57b3908d03fb1c91da7dbdf46e
[ "Apache-2.0" ]
null
null
null
vmware_nsxlib/tests/unit/v3/test_trust_management.py
salv-orlando/vmware-nsxlib
283eff2881b99c57b3908d03fb1c91da7dbdf46e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 VMware, Inc. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
38.636364
78
0.630294
420
3,400
4.845238
0.309524
0.04914
0.035381
0.044226
0.543489
0.533661
0.486486
0.390172
0.367076
0.367076
0
0.006107
0.277647
3,400
87
79
39.08046
0.822476
0.175588
0
0.365079
0
0
0.113025
0.034804
0
0
0
0
0.079365
1
0.079365
false
0
0.063492
0
0.15873
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d166b2da9d8e5e3174f2b578f39c39f0835046d
745
py
Python
app/pods/pods.py
veryWrong/kube
f3716e962c7db0594d230a701fb862059f0c9578
[ "Apache-2.0" ]
null
null
null
app/pods/pods.py
veryWrong/kube
f3716e962c7db0594d230a701fb862059f0c9578
[ "Apache-2.0" ]
null
null
null
app/pods/pods.py
veryWrong/kube
f3716e962c7db0594d230a701fb862059f0c9578
[ "Apache-2.0" ]
null
null
null
from flask import jsonify from flask_login import login_required from .podClass import Pod from . import pod @pod.route('/', methods=['GET', ]) @login_required def pod_count(): ret = Pod().all_list() online, offline = 0, 0 for i in ret.items: item = i.status.container_statuses[-1] if item....
24.032258
65
0.585235
97
745
4.42268
0.525773
0.090909
0.074592
0.09324
0.107226
0
0
0
0
0
0
0.01982
0.255034
745
30
66
24.833333
0.753153
0
0
0.076923
0
0
0.080537
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.307692
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d17348f8f1d18cb7ea86e8791e3c59ce2012a91
240
py
Python
kohtaaminen/__main__.py
sthagen/kohtaaminen
ce0784ccd8be109164d63f2b5dcea128bd6f4534
[ "MIT" ]
1
2021-11-13T10:57:55.000Z
2021-11-13T10:57:55.000Z
kohtaaminen/__main__.py
sthagen/kohtaaminen
ce0784ccd8be109164d63f2b5dcea128bd6f4534
[ "MIT" ]
4
2021-11-14T15:12:06.000Z
2021-11-30T13:54:47.000Z
kohtaaminen/__main__.py
sthagen/kohtaaminen
ce0784ccd8be109164d63f2b5dcea128bd6f4534
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=expression-not-assigned,line-too-long,missing-module-docstring import sys from kohtaaminen.cli import app if __name__ == '__main__': sys.exit(app(prog_name='kohtaaminen')) # pragma: no cover
26.666667
80
0.725
33
240
5
0.848485
0
0
0
0
0
0
0
0
0
0
0.004762
0.125
240
8
81
30
0.780952
0.4875
0
0
0
0
0.159664
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
0d17ef8038b1cc6628d9eda55dcc9584a7f4d287
1,058
py
Python
text-preprocessing/language-model-sentence-extraction.py
azagsam/cross-lingual-summarization
402871dcf7a385cda90914574de24aad7133acf9
[ "Unlicense" ]
null
null
null
text-preprocessing/language-model-sentence-extraction.py
azagsam/cross-lingual-summarization
402871dcf7a385cda90914574de24aad7133acf9
[ "Unlicense" ]
null
null
null
text-preprocessing/language-model-sentence-extraction.py
azagsam/cross-lingual-summarization
402871dcf7a385cda90914574de24aad7133acf9
[ "Unlicense" ]
null
null
null
import xml.etree.ElementTree as ET import os ns = "{http://www.tei-c.org/ns/1.0}" n = 0 for file in os.listdir('tei'): # traverse files if file.startswith('GF'): path = os.path.join('tei', file) # open file for doc in os.listdir(path): n += 1 print(n) # should ...
34.129032
73
0.482987
132
1,058
3.818182
0.484848
0.079365
0.043651
0.075397
0.09127
0
0
0
0
0
0
0.009419
0.397921
1,058
31
74
34.129032
0.78179
0.13327
0
0.090909
0
0
0.080132
0.030735
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
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
0d1c477919b18db1aa360b14fced79bbd1b06be3
3,173
py
Python
social_scrapper/spiders/mecenova_spider.py
Ptival/social_scrapper
62631f4c3c34f84990937fe8d917f512c958b41e
[ "BSD-2-Clause-FreeBSD" ]
1
2016-11-08T17:00:33.000Z
2016-11-08T17:00:33.000Z
social_scrapper/spiders/mecenova_spider.py
Ptival/social_scrapper
62631f4c3c34f84990937fe8d917f512c958b41e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
social_scrapper/spiders/mecenova_spider.py
Ptival/social_scrapper
62631f4c3c34f84990937fe8d917f512c958b41e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# coding=utf-8 from scrapy import log from scrapy.spider import BaseSpider from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor from scrapy.http import Request from scrapy.selector import HtmlXPathSelector from social_scrapper.items import OpportunityItem import re import string class MecenovaSpider(BaseS...
39.6625
79
0.600378
383
3,173
4.835509
0.29765
0.059395
0.041577
0.061555
0.288877
0.174406
0.143629
0.107991
0.107991
0.107991
0
0.009909
0.236685
3,173
79
80
40.164557
0.754748
0.035613
0
0.0625
0
0
0.215455
0.036018
0
0
0
0.012658
0
1
0.046875
false
0
0.125
0
0.28125
0
0
0
0
null
0
0
0
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
0d1d401c75cecb335ed3a64c63f335987af9024a
2,351
py
Python
python/examples/session_trees/session_trees.py
pushtechnology/diffusion-examples
06248aea8c632e935e3c648dc1732c7cb9ac9042
[ "Apache-2.0" ]
11
2016-01-24T00:33:27.000Z
2021-08-23T06:21:06.000Z
python/examples/session_trees/session_trees.py
pushtechnology/diffusion-examples
06248aea8c632e935e3c648dc1732c7cb9ac9042
[ "Apache-2.0" ]
5
2015-07-21T21:05:56.000Z
2020-09-02T13:03:01.000Z
python/examples/session_trees/session_trees.py
pushtechnology/diffusion-examples
06248aea8c632e935e3c648dc1732c7cb9ac9042
[ "Apache-2.0" ]
18
2016-03-20T19:29:10.000Z
2022-03-10T16:58:46.000Z
import asyncio import diffusion.datatypes from diffusion.features.control.session_trees.branch_mapping_table import ( BranchMappingTable, ) server_url = "ws://localhost:8080" principal = "control" credentials = diffusion.Credentials("password") path = "foo/bar" topic_type = diffusion.datatypes.STRING value = "bla...
33.112676
92
0.623139
257
2,351
5.478599
0.338521
0.129261
0.102273
0.051136
0.171165
0.095881
0.095881
0.095881
0.095881
0.06108
0
0.003599
0.29094
2,351
70
93
33.585714
0.841032
0.081242
0
0.148148
0
0
0.258005
0.057541
0
0
0
0
0
1
0
false
0.018519
0.055556
0
0.092593
0.12963
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d2008f8ed89f74206d38081357c68a4d36a753c
1,757
py
Python
src/chat.py
DanCh11/virtual-assistant
b6601f20bd851864f4a76dd4c73c8c5266a0014f
[ "MIT" ]
null
null
null
src/chat.py
DanCh11/virtual-assistant
b6601f20bd851864f4a76dd4c73c8c5266a0014f
[ "MIT" ]
null
null
null
src/chat.py
DanCh11/virtual-assistant
b6601f20bd851864f4a76dd4c73c8c5266a0014f
[ "MIT" ]
null
null
null
import random import json from numpy.lib.utils import source import torch import speech_recognition as sr r = sr.Recognizer() from .model import NeuralNetwork from .nltk_utils import bag_of_words, tokenize device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') with open('./src/data/data.json', 'r') ...
24.068493
82
0.599886
228
1,757
4.469298
0.403509
0.044161
0.019627
0.037291
0
0
0
0
0
0
0
0.006294
0.276608
1,757
72
83
24.402778
0.795437
0
0
0
0
0
0.132194
0.020513
0
0
0
0
0
1
0
false
0.020833
0.145833
0
0.145833
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d211cab8a1e4dc92883081ebdefc1ba4f0b85a9
407
py
Python
aoj/alds/alds1_11_c.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
aoj/alds/alds1_11_c.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
aoj/alds/alds1_11_c.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
from collections import deque V = int(input()) edge = [[] for _ in range(V)] for _ in range(V): u, _, *v = map(lambda x: int(x)-1, input().split()) edge[u] = v dist = [-1] * V dist[0] = 0 que = deque([0]) while len(que): v = que.popleft() for c in edge[v]: if dist[c] == -1: dist[c] ...
21.421053
55
0.511057
71
407
2.887324
0.422535
0.04878
0.097561
0.107317
0
0
0
0
0
0
0
0.027778
0.292383
407
18
56
22.611111
0.684028
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d21d1ee1ed65ea490436b216844a040ad4eba70
1,350
py
Python
lib/config.py
NHGmaniac/voctorec
96c088b6775214b9eeff312201a29f82ba0e4bb0
[ "MIT" ]
1
2019-04-14T12:05:49.000Z
2019-04-14T12:05:49.000Z
lib/config.py
zo-edv/voctorec
96c088b6775214b9eeff312201a29f82ba0e4bb0
[ "MIT" ]
null
null
null
lib/config.py
zo-edv/voctorec
96c088b6775214b9eeff312201a29f82ba0e4bb0
[ "MIT" ]
null
null
null
import os.path import logging from configparser import ConfigParser from lib.args import Args import lib.connection as Connection __all__ = ['Config'] def getlist(self, section, option): return [x.strip() for x in self.get(section, option).split(',')] def fetchServerConfig(self): log = logging.getLogger('C...
28.723404
77
0.687407
175
1,350
5.2
0.331429
0.072527
0.02967
0.026374
0.27033
0.27033
0.193407
0.193407
0.193407
0.193407
0
0
0.157037
1,350
46
78
29.347826
0.799649
0
0
0.058824
0
0
0.188889
0.057778
0
0
0
0
0
1
0.058824
false
0
0.147059
0.029412
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d22359b28f08f1148894802b045634a551dddd6
98
py
Python
python_3.8/random_examples/passing_reference_example.py
elLui/python_tools_and_practice_v3.8
13b3134dd4126547b5eea200a55c43127d9bd80e
[ "MIT" ]
1
2020-12-15T00:13:35.000Z
2020-12-15T00:13:35.000Z
python_3.8/random_examples/passing_reference_example.py
elLui/python_tools_and_practice_v3.8
13b3134dd4126547b5eea200a55c43127d9bd80e
[ "MIT" ]
null
null
null
python_3.8/random_examples/passing_reference_example.py
elLui/python_tools_and_practice_v3.8
13b3134dd4126547b5eea200a55c43127d9bd80e
[ "MIT" ]
null
null
null
def eggs(someParameter): someParameter.append('hello') spam = [1,2,3] eggs(spam) print(spam)
14
33
0.693878
14
98
4.857143
0.714286
0
0
0
0
0
0
0
0
0
0
0.035294
0.132653
98
6
34
16.333333
0.764706
0
0
0
0
0
0.05102
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0.2
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
0d2236c09fb61de0facb0db8ff5d2c14d3843c5c
608
py
Python
Virtualenv/Env/src/GoTravel/Home/models.py
Anoop01234/Go-Travel
aa91f1a4ce7e7ed78de8eadc55e6a25d1a73bdd8
[ "MIT" ]
null
null
null
Virtualenv/Env/src/GoTravel/Home/models.py
Anoop01234/Go-Travel
aa91f1a4ce7e7ed78de8eadc55e6a25d1a73bdd8
[ "MIT" ]
null
null
null
Virtualenv/Env/src/GoTravel/Home/models.py
Anoop01234/Go-Travel
aa91f1a4ce7e7ed78de8eadc55e6a25d1a73bdd8
[ "MIT" ]
1
2021-12-21T17:27:34.000Z
2021-12-21T17:27:34.000Z
from django.db import models class Chef(models.Model): name=models.CharField(max_length=50) position=models.CharField(max_length=50) description=models.TextField() photo=models.ImageField(upload_to='chef/') class Meta: verbose_name ='Chef' verbose_name_plural='Chefs' def __str...
23.384615
48
0.685855
76
608
5.236842
0.407895
0.110553
0.135678
0.180905
0.336683
0.271357
0
0
0
0
0
0.012422
0.205592
608
25
49
24.32
0.811594
0
0
0.421053
0
0
0.055921
0
0
0
0
0
0
1
0.105263
false
0
0.052632
0.105263
0.789474
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
1
1
0
0
3
0d226d1f6cfd99b44cb7009663d19a87f591f745
740
py
Python
setup.py
vishalbelsare/conjugate_prior
9b1c623643d74f2fca1b08ccc5aa9f82a5152afa
[ "MIT" ]
44
2017-09-27T13:02:23.000Z
2022-03-27T11:54:58.000Z
setup.py
vishalbelsare/conjugate_prior
9b1c623643d74f2fca1b08ccc5aa9f82a5152afa
[ "MIT" ]
5
2018-01-11T22:09:39.000Z
2022-03-02T18:41:41.000Z
setup.py
vishalbelsare/conjugate_prior
9b1c623643d74f2fca1b08ccc5aa9f82a5152afa
[ "MIT" ]
8
2017-11-16T22:16:10.000Z
2022-03-02T16:59:22.000Z
from distutils.core import setup setup( name="conjugate_prior", packages=["conjugate_prior"], install_requires=[ 'setuptools', 'scipy', 'numpy', 'matplotlib', ], long_description="https://github.com/urigoren/conjugate_prior/blob/master/README.md", long_descriptio...
32.173913
115
0.660811
73
740
6.561644
0.69863
0.146138
0.058455
0.091858
0.150313
0.150313
0
0
0
0
0
0.004975
0.185135
740
22
116
33.636364
0.789386
0
0
0
0
0
0.474324
0
0
0
0
0
0
1
0
true
0
0.047619
0
0.047619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0d25115d04e08b90aa66b7cfb606030c77fa82e9
1,674
py
Python
common_python/tests/util/test_dataframe.py
ScienceStacks/common_python
2732f928e13592f2089269731c8e2b04f856a77d
[ "MIT" ]
1
2019-05-01T00:22:32.000Z
2019-05-01T00:22:32.000Z
common_python/tests/util/test_dataframe.py
ScienceStacks/PythonCommon
2732f928e13592f2089269731c8e2b04f856a77d
[ "MIT" ]
1
2019-05-31T21:59:30.000Z
2019-05-31T21:59:30.000Z
common_python/tests/util/test_dataframe.py
ScienceStacks/PythonCommon
2732f928e13592f2089269731c8e2b04f856a77d
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import unittest import common_python.util.dataframe as dataframe IGNORE_TEST = False IS_PLOT = False COL_A = 'a' COL_B = 'b' COL_C = 'c' DF = pd.DataFrame({COL_A: range(3)}) DF[COL_B] = 10*DF[COL_A] SIZE = 3 DFS = [DF for _ in range(SIZE)] DF1 = pd.DataFrame({COL_A: range(SIZE),...
24.985075
75
0.646953
249
1,674
4.212851
0.297189
0.047664
0.045758
0.06101
0.213537
0.152526
0.051478
0
0
0
0
0.026596
0.213859
1,674
66
76
25.363636
0.770517
0
0
0.148148
0
0
0.006575
0
0
0
0
0
0.111111
1
0.092593
false
0
0.074074
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d25e78273bf0fb2530639adedc0b08ba41c54b5
7,412
py
Python
formation/migrations/0001_initial.py
ahemery/formation_usagers
eb50682db798922ec393050624c4cbd3bb23675a
[ "Apache-2.0" ]
null
null
null
formation/migrations/0001_initial.py
ahemery/formation_usagers
eb50682db798922ec393050624c4cbd3bb23675a
[ "Apache-2.0" ]
null
null
null
formation/migrations/0001_initial.py
ahemery/formation_usagers
eb50682db798922ec393050624c4cbd3bb23675a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-22 09:06 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Create...
38.806283
125
0.527253
632
7,412
6.061709
0.170886
0.074393
0.089272
0.119029
0.660924
0.60402
0.495693
0.480553
0.480553
0.427304
0
0.012556
0.333783
7,412
190
126
39.010526
0.763264
0.008904
0
0.543956
1
0
0.126379
0
0
0
0
0
0
1
0
false
0
0.016484
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0d2646ddaa7ba21f35f69ed1044171f259cfecec
1,327
py
Python
Walker_1.1.py
ey3lock3r/The-Nature-of-Code
cca3a0359a46570b1cf0b02315be8cee1728a01a
[ "MIT" ]
null
null
null
Walker_1.1.py
ey3lock3r/The-Nature-of-Code
cca3a0359a46570b1cf0b02315be8cee1728a01a
[ "MIT" ]
null
null
null
Walker_1.1.py
ey3lock3r/The-Nature-of-Code
cca3a0359a46570b1cf0b02315be8cee1728a01a
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.animation as animation import numpy as np import noise map = lambda n, start1, stop1, start2, stop2: ((n-start1)/(stop1-start1))*(stop2-start2)+start2 class PVector(): def __init__(self, _x, _y): self.x = _x self.y = _y def add(self, v): ...
31.595238
123
0.600603
204
1,327
3.808824
0.392157
0.030888
0.034749
0.043758
0
0
0
0
0
0
0
0.048467
0.238131
1,327
42
124
31.595238
0.720079
0
0
0
0
0
0.012048
0
0
0
0
0
0
1
0.147059
false
0
0.117647
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d2792d0fd44769568c671a62acca11f98fc94a4
305
py
Python
iotapp/Classes/httprequest.py
fcarbah/IOT
6b323c75844d0a6744df12059466d6c54bd0b242
[ "MIT" ]
null
null
null
iotapp/Classes/httprequest.py
fcarbah/IOT
6b323c75844d0a6744df12059466d6c54bd0b242
[ "MIT" ]
null
null
null
iotapp/Classes/httprequest.py
fcarbah/IOT
6b323c75844d0a6744df12059466d6c54bd0b242
[ "MIT" ]
null
null
null
import urllib3 class HttpRequest: __http=None def __init__(self): self.__http = urllib3.PoolManager() def post(self,url,data={},headers={}): self.__http.request('POST',url,data,headers) def get(self,url,headers={}): self.__http.request('get',url,{},headers)
17.941176
52
0.629508
37
305
4.864865
0.432432
0.133333
0.155556
0.244444
0
0
0
0
0
0
0
0.008264
0.206557
305
17
53
17.941176
0.735537
0
0
0
0
0
0.022876
0
0
0
0
0
0
1
0.333333
false
0
0.111111
0
0.666667
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
1
0
0
0
0
1
0
0
3
0d29d6a3791f034f1468053cbd3889c90964d234
6,421
py
Python
lib/bot.py
Simplicitus/YouTube-Comment-Bot
66e89f5f19d4dc815efb97e705d2fa8ed1795659
[ "MIT" ]
3
2019-12-06T21:19:01.000Z
2021-05-09T02:10:50.000Z
lib/bot.py
Simplicitus/YouTube-Comment-Bot
66e89f5f19d4dc815efb97e705d2fa8ed1795659
[ "MIT" ]
1
2020-06-24T03:59:46.000Z
2020-06-24T13:18:05.000Z
lib/bot.py
Simplicitus/YouTube-Comment-Bot
66e89f5f19d4dc815efb97e705d2fa8ed1795659
[ "MIT" ]
3
2021-03-01T06:40:48.000Z
2021-11-16T14:52:04.000Z
import time import random import selenium from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import NoSuchElementException def yout...
32.429293
252
0.633858
757
6,421
5.231176
0.30251
0.017172
0.051515
0.057576
0.213636
0.156313
0.143182
0.123485
0.123485
0.123485
0
0.012223
0.248248
6,421
197
253
32.593909
0.808162
0.114935
0
0.09322
0
0.016949
0.163247
0.034262
0
0
0
0
0.008475
1
0.076271
false
0.084746
0.067797
0
0.20339
0.076271
0
0
0
null
0
0
0
0
0
0
0
0
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
0d2a58865f6970d3204e6af6aaac5002cdd6877f
962
py
Python
make/photon/prepare/commands/gencerts.py
n-marton/harbor
2859cd8b6981d329d2ef6720b90bbb074d370708
[ "Apache-2.0" ]
1
2019-06-06T02:39:40.000Z
2019-06-06T02:39:40.000Z
make/photon/prepare/commands/gencerts.py
koulq/harbor
fdb82ae4fa1d5e8987caa076feb7a61f5baae902
[ "Apache-2.0" ]
null
null
null
make/photon/prepare/commands/gencerts.py
koulq/harbor
fdb82ae4fa1d5e8987caa076feb7a61f5baae902
[ "Apache-2.0" ]
null
null
null
import os import sys import click import pathlib from subprocess import check_call, PIPE, STDOUT from utils.cert import openssl_installed from utils.misc import get_realpath gen_tls_script = pathlib.Path(__file__).parent.parent.joinpath('scripts/gencert.sh').absolute() @click.command() @click.option('-p', '--path', ...
32.066667
95
0.697505
135
962
4.844444
0.474074
0.055046
0.036697
0.073395
0
0
0
0
0
0
0
0.006188
0.160083
962
29
96
33.172414
0.803218
0
0
0
0
0
0.205821
0.024948
0
0
0
0
0
1
0.041667
false
0
0.291667
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
0d2abaf7d4625450ee48b619ae33cd5c8bf035ab
369
py
Python
program3solution/kargsexample.py
dpocheng/Python-Data-Structure-of-Python
66b99fa41f831e8c3089e4e2fd664a7ef3268e5e
[ "Apache-2.0" ]
null
null
null
program3solution/kargsexample.py
dpocheng/Python-Data-Structure-of-Python
66b99fa41f831e8c3089e4e2fd664a7ef3268e5e
[ "Apache-2.0" ]
null
null
null
program3solution/kargsexample.py
dpocheng/Python-Data-Structure-of-Python
66b99fa41f831e8c3089e4e2fd664a7ef3268e5e
[ "Apache-2.0" ]
null
null
null
# kargs example print('Demonstrating how kargs works in functions') def f(**kargs): # prints dict print ('\nkargs =',kargs) # raises exception # equivalent to calling print(a=1,b=2) order of arguments based on dict d = dict(a=1,b=2) print (**d) #Call successfully (watch what i...
26.357143
76
0.612466
58
369
3.896552
0.62069
0.026549
0.039823
0.035398
0
0
0
0
0
0
0
0.017668
0.233062
369
14
77
26.357143
0.780919
0.414634
0
0
0
0
0.272727
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.166667
0.666667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0d2b31d40272b35f2023f3820d8bcc5908033214
1,795
py
Python
UnityEngine/MatchTargetWeightMask/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/MatchTargetWeightMask/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/MatchTargetWeightMask/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
from UdonPie import System from UdonPie import UnityEngine from UdonPie.Undefined import * class MatchTargetWeightMask: def __new__(cls, arg1=None): ''' :returns: MatchTargetWeightMask :rtype: UnityEngine.MatchTargetWeightMask ''' pass @staticmethod def ctor(arg1, ...
19.725275
49
0.528691
144
1,795
6.534722
0.256944
0.153029
0.181722
0.093518
0.327311
0.2678
0.2678
0.178533
0
0
0
0.023235
0.376602
1,795
90
50
19.944444
0.817694
0.359889
0
0.575758
0
0
0
0
0
0
0
0
0
1
0.30303
false
0.30303
0.090909
0
0.424242
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
0d2b6f960487325e486555e1a8e76de0fbf8d2ff
11,572
py
Python
discord/threads.py
lewistham9x/discord.py
9abe8eacef8ea318f464184bac47f1c37860b73b
[ "MIT" ]
null
null
null
discord/threads.py
lewistham9x/discord.py
9abe8eacef8ea318f464184bac47f1c37860b73b
[ "MIT" ]
null
null
null
discord/threads.py
lewistham9x/discord.py
9abe8eacef8ea318f464184bac47f1c37860b73b
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz 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, merg...
30.293194
108
0.616488
1,406
11,572
4.955903
0.202703
0.046498
0.014208
0.015499
0.339122
0.283439
0.239524
0.179535
0.120551
0.098881
0
0.003279
0.288541
11,572
381
109
30.372703
0.843071
0.338922
0
0.184
0
0
0.086697
0.01445
0
0
0
0
0
1
0.08
false
0.016
0.096
0
0.248
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d2c0268ef322fad9aa747f4d00280b173987f3e
3,222
py
Python
hardware/testbenches/common/drivers/axi4stream/init.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
6
2021-06-28T05:52:15.000Z
2022-03-27T20:45:28.000Z
hardware/testbenches/common/drivers/axi4stream/init.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
null
null
null
hardware/testbenches/common/drivers/axi4stream/init.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Peter Birch, mailto:peter@lightlogic.co.uk # # 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 l...
37.905882
79
0.625078
389
3,222
5.128535
0.437018
0.05213
0.033083
0.06015
0.026065
0
0
0
0
0
0
0.009267
0.29671
3,222
84
80
38.357143
0.871139
0.337678
0
0.102564
0
0
0.038037
0
0
0
0
0
0.025641
1
0.025641
false
0
0.076923
0
0.128205
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d2c686104229d82bd390d145a5a40d32cee5a5b
1,111
py
Python
src/samplemanager/util.py
cowanml/samplemanager
c802559d84b8470255edbe593996db58d86ec914
[ "BSD-3-Clause" ]
null
null
null
src/samplemanager/util.py
cowanml/samplemanager
c802559d84b8470255edbe593996db58d86ec914
[ "BSD-3-Clause" ]
2
2015-02-25T20:58:52.000Z
2015-02-25T20:59:31.000Z
src/samplemanager/util.py
cowanml/samplemanager
c802559d84b8470255edbe593996db58d86ec914
[ "BSD-3-Clause" ]
null
null
null
import uuid def new_uid(): """ Generate a new uid. """ return uuid.uuid4() def get_owner(): """ dummy stub for now, will eventually reliably/securely(?) determine the owner somehow. """ return "skinner" def run_on_empty(func, arg_list, arg_dict, key, **kwargs): """ Che...
22.22
81
0.59946
149
1,111
4.369128
0.389262
0.053763
0.067588
0.086022
0.196621
0.168971
0
0
0
0
0
0.001267
0.289829
1,111
49
82
22.673469
0.823828
0.406841
0
0.352941
1
0
0.070671
0
0
0
0
0
0
1
0.235294
false
0
0.058824
0
0.529412
0
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
1
0
0
0
0
0
0
0
2
0d2c7b5a5ceccd8409da7d4f14ad50c7fda7c2c7
67
py
Python
rising_threads/lib/__init__.py
RGood/rising_threads
c9c0986da04bfded5f1d21c74b18a71f76d8ffaa
[ "MIT" ]
2
2018-10-04T21:17:23.000Z
2019-08-05T23:32:36.000Z
rising_threads/lib/__init__.py
RGood/rising_threads
c9c0986da04bfded5f1d21c74b18a71f76d8ffaa
[ "MIT" ]
null
null
null
rising_threads/lib/__init__.py
RGood/rising_threads
c9c0986da04bfded5f1d21c74b18a71f76d8ffaa
[ "MIT" ]
null
null
null
from .new_reader import NewReader from .predictor import Predictor
33.5
34
0.850746
9
67
6.222222
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.119403
67
2
35
33.5
0.949153
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0d2c7e6cf904b313acc9aca26daeafb4a2b97695
107
py
Python
teagles_advent_2021/day_13/pt2.py
teagles/teagles-advent-2021
d49d842663d6382bd0d4d93198ccd66ab68e681b
[ "MIT" ]
null
null
null
teagles_advent_2021/day_13/pt2.py
teagles/teagles-advent-2021
d49d842663d6382bd0d4d93198ccd66ab68e681b
[ "MIT" ]
null
null
null
teagles_advent_2021/day_13/pt2.py
teagles/teagles-advent-2021
d49d842663d6382bd0d4d93198ccd66ab68e681b
[ "MIT" ]
null
null
null
import sys from .lib import parse_input def main(): print() if __name__ == '__main__': main()
8.916667
28
0.626168
14
107
4.142857
0.785714
0
0
0
0
0
0
0
0
0
0
0
0.252336
107
11
29
9.727273
0.725
0
0
0
0
0
0.074766
0
0
0
0
0
0
1
0.166667
true
0
0.333333
0
0.5
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
0d2ca382df7cba262c4e6017e9421c3abf0eb32c
8,871
py
Python
src/bsc/mace.py
bryant1410/arxiv2018-bayesian-ensembles
d97cf64270d34b2301903678e6fbfe170c4c2105
[ "Apache-2.0" ]
null
null
null
src/bsc/mace.py
bryant1410/arxiv2018-bayesian-ensembles
d97cf64270d34b2301903678e6fbfe170c4c2105
[ "Apache-2.0" ]
null
null
null
src/bsc/mace.py
bryant1410/arxiv2018-bayesian-ensembles
d97cf64270d34b2301903678e6fbfe170c4c2105
[ "Apache-2.0" ]
null
null
null
import numpy as np from scipy.special import logsumexp from scipy.special.basic import psi class MACEWorker(): # Worker model: MACE-like spammer model -------------------------------------------------------------------------------- # alpha[0,:] and alpha[1,:] are parameters for the spamming probability #...
36.356557
125
0.535791
1,210
8,871
3.790083
0.147934
0.022242
0.028783
0.018317
0.469472
0.424335
0.386611
0.386611
0.37898
0.357828
0
0.036464
0.307519
8,871
244
126
36.356557
0.710077
0.284748
0
0.366412
0
0
0
0
0
0
0
0
0
1
0.061069
false
0
0.022901
0
0.152672
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d2dd29aaf64d74ebb6ddf68f9ba97a38795078e
2,069
py
Python
worker intelligence/segment_path.py
hotpoor/XdHacks_201910_1920_automove
47ecfd3470d1586b07dc1c44422eb5253f3a6659
[ "MIT" ]
null
null
null
worker intelligence/segment_path.py
hotpoor/XdHacks_201910_1920_automove
47ecfd3470d1586b07dc1c44422eb5253f3a6659
[ "MIT" ]
null
null
null
worker intelligence/segment_path.py
hotpoor/XdHacks_201910_1920_automove
47ecfd3470d1586b07dc1c44422eb5253f3a6659
[ "MIT" ]
2
2019-11-13T06:11:25.000Z
2020-03-13T06:19:00.000Z
import numpy as np import argparse import imutils import time import cv2 from mss import mss COLORS = open("RoadSeg/seg-colors.txt").read().strip().split("\n") COLORS = [np.array(c.split(",")).astype("int") for c in COLORS] COLORS = np.array(COLORS, dtype="uint8") net = cv2.dnn.readNet("RoadSeg/seg-model.net") #读取配...
24.341176
137
0.632189
304
2,069
4.25
0.424342
0.074303
0.05805
0.024768
0.027864
0
0
0
0
0
0
0.071914
0.146448
2,069
85
138
24.341176
0.659683
0.049783
0
0.070175
0
0
0.064796
0.021939
0
0
0.004082
0
0
1
0
false
0
0.105263
0
0.105263
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d30310fe782f189939b1f87e316277289556088
6,229
py
Python
custom_components/sleepiq_custom/switch.py
brianlich/sleepiq-custom
2610f945c9037d7f63213190e3f6aebcf91f172f
[ "MIT" ]
null
null
null
custom_components/sleepiq_custom/switch.py
brianlich/sleepiq-custom
2610f945c9037d7f63213190e3f6aebcf91f172f
[ "MIT" ]
null
null
null
custom_components/sleepiq_custom/switch.py
brianlich/sleepiq-custom
2610f945c9037d7f63213190e3f6aebcf91f172f
[ "MIT" ]
null
null
null
import logging from homeassistant import config_entries from homeassistant.const import ATTR_ATTRIBUTION from homeassistant.components.switch import SwitchEntity, DEVICE_CLASS_SWITCH from . import SleepIQDataUpdateCoordinator, SleepIQDevice from .const import ATTRIBUTION_TEXT, DOMAIN _LOGGER = logging.getLogger(__nam...
36.215116
93
0.655964
662
6,229
5.912387
0.15861
0.122637
0.116505
0.096321
0.699796
0.593255
0.484926
0.458866
0.394481
0.394481
0
0.000212
0.241451
6,229
172
94
36.215116
0.828148
0.10997
0
0.444444
0
0
0.063862
0
0
0
0
0
0
1
0.102564
false
0
0.051282
0
0.282051
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d304089ceaf983f4579b7204f7deafcca5ebf04
9,711
py
Python
cdk/cdk/cdk_stack.py
yyolk/issue.cash
ba931032df833cf81065b6bdc33a7baf425c5a0d
[ "0BSD" ]
null
null
null
cdk/cdk/cdk_stack.py
yyolk/issue.cash
ba931032df833cf81065b6bdc33a7baf425c5a0d
[ "0BSD" ]
null
null
null
cdk/cdk/cdk_stack.py
yyolk/issue.cash
ba931032df833cf81065b6bdc33a7baf425c5a0d
[ "0BSD" ]
null
null
null
from aws_cdk import core as cdk # For consistency with other languages, `cdk` is the preferred import name for # the CDK's core module. The following line also imports it as `core` for use # with examples from the CDK Developer's Guide, which are in the process of # being updated to use `cdk`. You may delete this im...
36.923954
82
0.500463
780
9,711
5.951282
0.294872
0.036191
0.036191
0.024128
0.496984
0.417062
0.361482
0.331754
0.311073
0.311073
0
0.006719
0.417568
9,711
262
83
37.064886
0.814003
0.169293
0
0.342246
0
0.010695
0.144089
0.067358
0
0
0
0
0
1
0.005348
false
0
0.037433
0
0.048128
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d30ba0c9547dae71e9f9210ae262d6b86afc144
480
py
Python
intake/migrations/0031_add_view_app_stats_permission.py
cforlando/intake
a5233d5c0f862f28ee265b9b4831405aabeec7e2
[ "MIT" ]
51
2016-07-20T02:26:57.000Z
2021-07-07T14:45:06.000Z
intake/migrations/0031_add_view_app_stats_permission.py
enterstudio/intake
793a8935914fdc8356321ec46e54d9ae1eeeee04
[ "MIT" ]
1,091
2016-04-29T18:07:45.000Z
2021-04-19T18:39:39.000Z
intake/migrations/0031_add_view_app_stats_permission.py
enterstudio/intake
793a8935914fdc8356321ec46e54d9ae1eeeee04
[ "MIT" ]
24
2016-06-14T18:10:43.000Z
2021-11-14T20:26:39.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-12-04 00:00 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('intake', '0030_add_visitor_model'), ] operations = [ migrations.AlterModelOptions( ...
24
112
0.639583
52
480
5.711538
0.846154
0
0
0
0
0
0
0
0
0
0
0.057377
0.2375
480
19
113
25.263158
0.754098
0.141667
0
0
1
0
0.271394
0.05379
0
0
0
0
0
1
0
false
0
0.166667
0
0.416667
0
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
0d31952ea492f717453060dc4a8247a16873ad5a
2,356
py
Python
v2/liveread.py
jelson/aqi
96e3d9646130a8128aba9c190dcb85d7a7efba50
[ "MIT" ]
7
2021-08-25T08:00:22.000Z
2022-01-10T19:04:08.000Z
v2/liveread.py
jelson/aqi
96e3d9646130a8128aba9c190dcb85d7a7efba50
[ "MIT" ]
null
null
null
v2/liveread.py
jelson/aqi
96e3d9646130a8128aba9c190dcb85d7a7efba50
[ "MIT" ]
1
2021-11-03T04:20:05.000Z
2021-11-03T04:20:05.000Z
#!/usr/bin/env python3 # read PMS3001 data from the serial port. timestamp each line when it # arrives. batch into 30-record chunks and insert all records into the # database. also write json-formatted records to stdout. import aqi import argparse import datetime import json import psycopg2 import psycopg2.extras imp...
22.873786
85
0.58489
303
2,356
4.465347
0.419142
0.038433
0.017738
0.026608
0
0
0
0
0
0
0
0.018192
0.27674
2,356
102
86
23.098039
0.775822
0.090407
0
0.049383
0
0
0.141187
0
0
0
0
0
0
1
0.061728
false
0
0.08642
0
0.160494
0.049383
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d32f4ff6ee71312c513d4994af8ed77bd5fe5e9
165
py
Python
examples/simple.py
TassieBruce/mplot-pybind
fbed1a131d9fead0dae363b9988daa57ca018330
[ "MIT" ]
null
null
null
examples/simple.py
TassieBruce/mplot-pybind
fbed1a131d9fead0dae363b9988daa57ca018330
[ "MIT" ]
null
null
null
examples/simple.py
TassieBruce/mplot-pybind
fbed1a131d9fead0dae363b9988daa57ca018330
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import matplotlib.pyplot as plt x = [0, 1, 2, 3] y = [0, 1, 4, 9] fig, ax = plt.subplots() fig.suptitle("simple") ax.plot(x, y, "r") plt.show()
15
31
0.6
32
165
3.09375
0.75
0.040404
0
0
0
0
0
0
0
0
0
0.065693
0.169697
165
11
32
15
0.656934
0.10303
0
0
0
0
0.047297
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d3467136f870f9065110eb11da1c3f9d8589a35
2,804
py
Python
app/spiders/nowcoder_spider.py
Kyooooma/view-oj-backend
3b2fc9ed0b8b52029b45cd30f90e8dd925a09d35
[ "Apache-2.0" ]
6
2019-08-05T13:01:19.000Z
2021-07-16T09:59:45.000Z
app/spiders/nowcoder_spider.py
Kyooooma/view-oj-backend
3b2fc9ed0b8b52029b45cd30f90e8dd925a09d35
[ "Apache-2.0" ]
null
null
null
app/spiders/nowcoder_spider.py
Kyooooma/view-oj-backend
3b2fc9ed0b8b52029b45cd30f90e8dd925a09d35
[ "Apache-2.0" ]
6
2019-12-05T13:04:38.000Z
2020-07-05T15:05:40.000Z
import re from bs4 import BeautifulSoup from app.config.setting import DEFAULT_PROBLEM_RATING from app.libs.spider_http import SpiderHttp from app.spiders.base_spider import BaseSpider class NowcoderSpider(BaseSpider): def get_user_info(self, oj_username, accept_problems): username = oj_username.oj_user...
37.386667
98
0.548146
320
2,804
4.640625
0.353125
0.042424
0.040404
0.038384
0.220875
0.078114
0
0
0
0
0
0.019355
0.336662
2,804
74
99
37.891892
0.779032
0
0
0.104478
0
0
0.140514
0.032454
0
0
0
0
0
1
0.044776
false
0
0.074627
0
0.19403
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d34eb346bb9dfbe63517e654bace4e32c34725e
347
py
Python
vaccinate/core/migrations/0113_populate_last_imported_at.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
7
2021-06-28T17:33:47.000Z
2022-02-12T21:54:59.000Z
vaccinate/core/migrations/0113_populate_last_imported_at.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
104
2021-06-17T21:25:30.000Z
2022-03-28T14:21:57.000Z
vaccinate/core/migrations/0113_populate_last_imported_at.py
MoralCode/vial
cdaaab053a9cf1cef40104a2cdf480b7932d58f7
[ "MIT" ]
1
2021-06-25T17:52:23.000Z
2021-06-25T17:52:23.000Z
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("core", "0112_sourcelocation_last_imported_at"), ] operations = [ migrations.RunSQL( sql="update source_location set last_imported_at = created_at", reverse_sql=migrations.Ru...
21.6875
75
0.642651
34
347
6.294118
0.705882
0.11215
0.130841
0
0
0
0
0
0
0
0
0.015748
0.268012
347
15
76
23.133333
0.826772
0
0
0
0
0
0.276657
0.103746
0
0
0
0
0
1
0
false
0
0.272727
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0d352171e20c80fe211b08987f0ec929af6bf855
556
py
Python
datasets/bspline.py
jiafeng5513/relaynet_pytorch
aa533f7bb08ec640baf5c5bdd3d806a6ec76e4f7
[ "MIT" ]
null
null
null
datasets/bspline.py
jiafeng5513/relaynet_pytorch
aa533f7bb08ec640baf5c5bdd3d806a6ec76e4f7
[ "MIT" ]
null
null
null
datasets/bspline.py
jiafeng5513/relaynet_pytorch
aa533f7bb08ec640baf5c5bdd3d806a6ec76e4f7
[ "MIT" ]
null
null
null
import numpy as np import pylab as pl from scipy import interpolate import matplotlib.pyplot as plt x = np.linspace(0, 2*np.pi+np.pi/4, 10) y = np.sin(x) x_new = np.linspace(0, 2*np.pi+np.pi/4, 100) #f_linear = interpolate.interp1d(x, y) tck = interpolate.splrep(x, y) # 原始点(xi,yi) y_bspline = interpolate.splev(x_ne...
25.272727
72
0.697842
114
556
3.307018
0.447368
0.05305
0.06366
0.06366
0.111406
0.111406
0.111406
0.111406
0.111406
0
0
0.02449
0.118705
556
22
73
25.272727
0.744898
0.223022
0
0
0
0
0.053613
0
0
0
0
0
0
1
0
false
0
0.266667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d3675ca0a5f53791722399a192cdf57f9d7f538
2,539
py
Python
extra/fibfrog.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
extra/fibfrog.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
extra/fibfrog.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
""" A small frog wants to get to the other side of a river. The frog is initially located at one bank of the river (position −1) and wants to get to the other bank (position N). The frog can jump over any distance F(K), where F(K) is the K-th Fibonacci number. Luckily, there are many leaves on the river, and the frog c...
30.22619
396
0.64041
490
2,539
3.312245
0.310204
0.017252
0.036969
0.032039
0.261245
0.21565
0.14541
0.14541
0.14541
0.097351
0
0.047978
0.269397
2,539
83
397
30.590361
0.824259
0.833005
0
0.095238
0
0
0.019231
0
0
0
0
0
0
1
0.095238
false
0
0
0
0.095238
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0d37601c36fc07b6996503d8e3a5bf10dc917cf4
499
py
Python
src/olympia/hero/migrations/0012_auto_20200709_0316.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
843
2016-02-09T13:00:37.000Z
2022-03-20T19:17:06.000Z
src/olympia/hero/migrations/0012_auto_20200709_0316.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
10,187
2016-02-05T23:51:05.000Z
2022-03-31T15:24:44.000Z
src/olympia/hero/migrations/0012_auto_20200709_0316.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
551
2016-02-08T20:32:16.000Z
2022-03-15T16:49:24.000Z
# Generated by Django 2.2.14 on 2020-07-09 03:16 from django.db import migrations, models import olympia.hero.models class Migration(migrations.Migration): dependencies = [ ('hero', '0011_auto_20200624_1809'), ] operations = [ migrations.AlterField( model_name='primaryheroim...
24.95
122
0.661323
57
499
5.631579
0.684211
0.068536
0.105919
0
0
0
0
0
0
0
0
0.083551
0.232465
499
19
123
26.263158
0.754569
0.092184
0
0
1
0
0.159645
0.050998
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0d378d1920e988479dd11424edf919287eb9238f
5,512
py
Python
bindings/pydrake/__init__.py
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
2
2021-02-25T02:01:02.000Z
2021-03-17T04:52:04.000Z
bindings/pydrake/__init__.py
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
null
null
null
bindings/pydrake/__init__.py
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
1
2021-06-13T12:05:39.000Z
2021-06-13T12:05:39.000Z
""" Python bindings for `Drake: Model-Based Design and Verification for Robotics <https://drake.mit.edu/>`_. This Python API documentation is a work in progress. Most of it is generated automatically from the C++ API documentation, and thus may have some C++-specific artifacts. For general overview and API documentati...
39.654676
79
0.719884
782
5,512
4.863171
0.397698
0.031554
0.015777
0.012622
0.022614
0
0
0
0
0
0
0.018036
0.185232
5,512
138
80
39.942029
0.828769
0.427068
0
0.067568
1
0
0.252408
0.029223
0
0
0
0
0.013514
1
0.067568
false
0.027027
0.189189
0.013514
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0d38c4e32571e359cdb435e64dddbc4b00e04991
3,794
py
Python
meiduo_mall/apps/meiduo_admin/views/statistical.py
Wang-TaoTao/meiduo_project
f95f097c2a85f500d0fd264a58e2f0d92771fff6
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/views/statistical.py
Wang-TaoTao/meiduo_project
f95f097c2a85f500d0fd264a58e2f0d92771fff6
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/views/statistical.py
Wang-TaoTao/meiduo_project
f95f097c2a85f500d0fd264a58e2f0d92771fff6
[ "MIT" ]
null
null
null
from datetime import date, timedelta from rest_framework.permissions import IsAdminUser from rest_framework.response import Response from rest_framework.views import APIView from apps.goods.models import GoodsVisitCount from apps.meiduo_admin.serializers.statistical import GoodsVisitCountSerialzer from apps.orders.m...
22.317647
106
0.557986
390
3,794
5.294872
0.287179
0.050847
0.029056
0.049395
0.380145
0.359806
0.291525
0.275545
0.221308
0.221308
0
0.025516
0.349236
3,794
170
107
22.317647
0.810855
0.140749
0
0.571429
0
0
0.01398
0
0
0
0
0
0
1
0.071429
false
0
0.095238
0
0.392857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d38e3ab88ea80e866640d3de02dfdd15dddc370
5,732
py
Python
gdd-car-sales/explore.py
kgdunn/car-sales
3d17f5c6a2ddc4d740c4298f7f3ec832565f8882
[ "BSD-3-Clause" ]
null
null
null
gdd-car-sales/explore.py
kgdunn/car-sales
3d17f5c6a2ddc4d740c4298f7f3ec832565f8882
[ "BSD-3-Clause" ]
null
null
null
gdd-car-sales/explore.py
kgdunn/car-sales
3d17f5c6a2ddc4d740c4298f7f3ec832565f8882
[ "BSD-3-Clause" ]
null
null
null
""" https://towardsdatascience.com/custom-transformers-and-ml-data-pipelines-with-python-20ea2a7adb65 Download the dataset from Kaggle, https://www.kaggle.com/harlfoxem/housesalesprediction?select=kc_house_data.csv and place it in the 'data' directory of this repo. """ from sklearn.base import BaseEstimator, Trans...
30.328042
99
0.681089
735
5,732
5.159184
0.331973
0.023207
0.009494
0.015823
0.186709
0.108914
0.054325
0.054325
0.015295
0
0
0.006243
0.217551
5,732
188
100
30.489362
0.839242
0.315771
0
0.153061
0
0
0.123317
0.013203
0
0
0
0
0
1
0.132653
false
0
0.102041
0.071429
0.377551
0.010204
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d3af27a21b0e6ce8a4fec8e0d62653c2921601c
125
py
Python
py_models_parser/__init__.py
xnuinside/py-models-parser
c89f12f0c33e28dc86f74172246e4e4d9a7037a8
[ "MIT" ]
9
2021-05-06T06:19:27.000Z
2021-09-27T16:07:04.000Z
py_models_parser/__init__.py
xnuinside/py-models-parser
c89f12f0c33e28dc86f74172246e4e4d9a7037a8
[ "MIT" ]
1
2021-07-05T12:52:53.000Z
2021-07-06T11:53:54.000Z
py_models_parser/__init__.py
xnuinside/py-models-parser
c89f12f0c33e28dc86f74172246e4e4d9a7037a8
[ "MIT" ]
1
2021-05-06T14:17:14.000Z
2021-05-06T14:17:14.000Z
from py_models_parser.core import dump_result, parse, parse_from_file __all__ = ["parse", "parse_from_file", "dump_result"]
31.25
69
0.792
19
125
4.578947
0.578947
0.229885
0.321839
0.413793
0
0
0
0
0
0
0
0
0.096
125
3
70
41.666667
0.769912
0
0
0
0
0
0.248
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
1
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
6
0d3b796689fd089c3ff8084e44253e175cdfeb5a
5,965
py
Python
ir_axioms/modules/similarity.py
heinrichreimer/ir_axioms
f7349c4adde96cfa19c7247824a70a4662c07582
[ "MIT" ]
5
2022-03-11T15:28:04.000Z
2022-03-11T15:28:58.000Z
ir_axioms/modules/similarity.py
heinrichreimer/ir_axioms
f7349c4adde96cfa19c7247824a70a4662c07582
[ "MIT" ]
null
null
null
ir_axioms/modules/similarity.py
heinrichreimer/ir_axioms
f7349c4adde96cfa19c7247824a70a4662c07582
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from functools import lru_cache, cached_property from itertools import product, combinations from statistics import mean from typing import ( final, Final, Iterable, Dict, Collection, Optional, Tuple, Sequence ) from nltk.corpus import wordnet from pymagnitude import Magnitude ...
29.529703
79
0.599162
642
5,965
5.370717
0.180685
0.063805
0.026102
0.017401
0.362819
0.295534
0.263631
0.239269
0.226798
0.209397
0
0.019834
0.315339
5,965
201
80
29.676617
0.824437
0.015423
0
0.385542
0
0
0.067825
0.016701
0
0
0
0
0
1
0.084337
false
0.006024
0.054217
0.018072
0.295181
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d3ee9cc24210f010fd549b409d1c00016953241
590
py
Python
day03/vec_reg_linear_grad.py
elbourki1/Machine-Learning-bootcamp-42
cf6a987ede555d8d208aed5b915cafe8078dd848
[ "Apache-2.0" ]
null
null
null
day03/vec_reg_linear_grad.py
elbourki1/Machine-Learning-bootcamp-42
cf6a987ede555d8d208aed5b915cafe8078dd848
[ "Apache-2.0" ]
null
null
null
day03/vec_reg_linear_grad.py
elbourki1/Machine-Learning-bootcamp-42
cf6a987ede555d8d208aed5b915cafe8078dd848
[ "Apache-2.0" ]
null
null
null
import numpy as np def vec_reg_linear_grad(x, y,theta, lambda_): m = x.shape[0] x_t = x.transpose() error = x.dot(theta) - y nabela = x_t.dot(error) / m # print(nabela) nabela[1:] = nabela[1:] + theta[1:] * (lambda_ / m) return nabela if __name__ == "__main__": X = np.array([ ...
23.6
55
0.454237
97
590
2.57732
0.443299
0.084
0.096
0.128
0.144
0.144
0
0
0
0
0
0.11809
0.325424
590
25
56
23.6
0.51005
0.022034
0
0
0
0
0.013889
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d4039809a0d69d1289df06615122acf02856f92
12,032
py
Python
client/src/dolbyio_rest_apis/communications/monitor/models.py
dolbyio-samples/dolbyio-rest-apis-client-python
37354dc10f967c4656776f9e2651a2284a11f530
[ "MIT" ]
1
2021-12-23T17:55:06.000Z
2021-12-23T17:55:06.000Z
client/src/dolbyio_rest_apis/communications/monitor/models.py
dolbyio-samples/dolbyio-rest-apis-client-python
37354dc10f967c4656776f9e2651a2284a11f530
[ "MIT" ]
null
null
null
client/src/dolbyio_rest_apis/communications/monitor/models.py
dolbyio-samples/dolbyio-rest-apis-client-python
37354dc10f967c4656776f9e2651a2284a11f530
[ "MIT" ]
null
null
null
""" dolbyio_rest_apis.communications.monitor.models ~~~~~~~~~~~~~~~ This module contains the models used by the Dolby.io APIs. """ from dolbyio_rest_apis.core.helpers import get_value_or_default, in_and_not_none from typing import List class PagedResponse(dict): """Representation of a paged response.""" def...
38.688103
96
0.673953
1,430
12,032
5.313986
0.116084
0.069483
0.086854
0.147651
0.587051
0.487169
0.387946
0.364785
0.357679
0.357679
0
0.003786
0.209691
12,032
310
97
38.812903
0.795352
0.102144
0
0.429293
0
0
0.084909
0
0
0
0
0
0
1
0.111111
false
0
0.010101
0
0.232323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d412b3852785d25c5a8a4284b141fa51cb72aac
51,094
py
Python
coverlovin2/test/test_coverlovin2.py
salexan2001/coverlovin2
1fdaf572d1729326e8ccdd428840ab51b08c0aac
[ "Apache-2.0" ]
null
null
null
coverlovin2/test/test_coverlovin2.py
salexan2001/coverlovin2
1fdaf572d1729326e8ccdd428840ab51b08c0aac
[ "Apache-2.0" ]
null
null
null
coverlovin2/test/test_coverlovin2.py
salexan2001/coverlovin2
1fdaf572d1729326e8ccdd428840ab51b08c0aac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3.7 # -*- coding: utf-8 -*- """ Test the coverlovin2 project using pytest. Technique and recommendations taken from https://docs.pytest.org/en/latest/ Parts of this file follow breaks formatting conventions. Allowed since this is test code and since long lines of repetitive test cases deserve ex...
37.569118
151
0.55621
5,729
51,094
4.738349
0.111014
0.057541
0.017535
0.019487
0.498379
0.400243
0.328557
0.261843
0.235136
0.195314
0
0.018859
0.320233
51,094
1,359
152
37.596762
0.762035
0.100638
0
0.27406
0
0
0.166572
0.029467
0.000917
0
0
0.002943
0.056829
1
0.073327
false
0.003666
0.010082
0.004583
0.179652
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d41c887cb9f6706361db0802341cfc70a71a865
267
py
Python
Code/square.py
CompBiochBiophLab/IntroBioinfo
ddbfb45f6cbcede2e10b589e3d6dab840cccb484
[ "MIT" ]
null
null
null
Code/square.py
CompBiochBiophLab/IntroBioinfo
ddbfb45f6cbcede2e10b589e3d6dab840cccb484
[ "MIT" ]
null
null
null
Code/square.py
CompBiochBiophLab/IntroBioinfo
ddbfb45f6cbcede2e10b589e3d6dab840cccb484
[ "MIT" ]
null
null
null
#! /usr/bin/python """square.py -- Make some noise about a square. """ class Square: def __init__(self, length, width): self.length = length self.width = width def area(self): return self.length * self.width my_square = Square(5, 2) print my_square.area()
17.8
47
0.685393
41
267
4.317073
0.536585
0.169492
0.169492
0
0
0
0
0
0
0
0
0.00905
0.172285
267
14
48
19.071429
0.791855
0.06367
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0d44c925facd78aa51cb6104a890b5594d2404be
368
py
Python
tests/__init__.py
tunystom-rossum/rossum
a49c5e02bdfbae95fe54e7ee556439355e4c339d
[ "MIT" ]
5
2021-07-27T02:20:37.000Z
2022-03-30T07:53:30.000Z
tests/__init__.py
tunystom-rossum/rossum
a49c5e02bdfbae95fe54e7ee556439355e4c339d
[ "MIT" ]
31
2020-09-29T15:06:46.000Z
2022-02-17T09:51:16.000Z
tests/__init__.py
tunystom-rossum/rossum
a49c5e02bdfbae95fe54e7ee556439355e4c339d
[ "MIT" ]
6
2021-02-25T08:17:44.000Z
2022-02-16T17:09:35.000Z
from collections import UserDict class SuperDictOf(UserDict): def __eq__(self, other): if not isinstance(other, dict): return False for k, v in self.items(): if k not in other or v != other[k]: return False return True def __repr__(self): ...
21.647059
51
0.57337
45
368
4.422222
0.577778
0.110553
0
0
0
0
0
0
0
0
0
0
0.331522
368
16
52
23
0.808943
0
0
0.181818
0
0
0.089674
0.089674
0
0
0
0
0
1
0.181818
false
0
0.090909
0.090909
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0d44fefde3f6349cad5b1889e79b5643cbf2434d
7,740
py
Python
zmqpy/tests/pyzmq_tests/test_poller.py
felipecruz/zmqpy
91b55bf631c3b96e6f71fc3b26a3e435ae6289df
[ "BSD-2-Clause-FreeBSD" ]
2
2015-02-13T05:17:45.000Z
2017-12-19T17:16:35.000Z
zmqpy/tests/pyzmq_tests/test_poller.py
felipecruz/zmqpy
91b55bf631c3b96e6f71fc3b26a3e435ae6289df
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
zmqpy/tests/pyzmq_tests/test_poller.py
felipecruz/zmqpy
91b55bf631c3b96e6f71fc3b26a3e435ae6289df
[ "BSD-2-Clause-FreeBSD" ]
2
2017-06-15T09:02:21.000Z
2017-12-19T17:16:07.000Z
# # Copyright (c) 2010 Brian E. Granger # # This file is part of pyzmq. # # pyzmq is free software; you can redistribute it and/or modify it under # the terms of the Lesser GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option)...
32.658228
79
0.603488
970
7,740
4.774227
0.185567
0.054416
0.0393
0.057439
0.669834
0.622976
0.571583
0.530123
0.501188
0.481537
0
0.023337
0.25814
7,740
236
80
32.79661
0.783177
0.289922
0
0.647482
0
0
0.003676
0
0
0
0
0
0.230216
1
0.079137
false
0
0.043165
0
0.143885
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d4561c1593e781ac498d60ae3cfa527c1997b58
1,654
py
Python
chiscore/_data/_files.py
limix/skat
64884196a15a1ae3b576a37c86bdb8f32335d4f4
[ "MIT" ]
3
2019-10-03T15:58:20.000Z
2021-11-02T16:46:36.000Z
chiscore/_data/_files.py
limix/skat
64884196a15a1ae3b576a37c86bdb8f32335d4f4
[ "MIT" ]
1
2019-01-25T14:49:37.000Z
2019-05-13T16:45:32.000Z
chiscore/_data/_files.py
limix/skat
64884196a15a1ae3b576a37c86bdb8f32335d4f4
[ "MIT" ]
null
null
null
import shutil import tempfile import warnings from os.path import dirname, join, realpath _filenames = [ "davies_pvalue.npz", "optimal_davies_pvalue.npz", "danilo_nan.npz", "bound.npz", "inf.npz", ] class data_file(object): def __init__(self, filenames): global _filenames sel...
27.114754
80
0.541717
171
1,654
4.929825
0.497076
0.061684
0.035587
0
0
0
0
0
0
0
0
0.001892
0.360943
1,654
60
81
27.566667
0.795648
0
0
0
0
0
0.1052
0.015115
0
0
0
0
0
1
0.0625
false
0
0.104167
0
0.229167
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d46999df264f1cd3022334f4843567100fc4d39
1,738
py
Python
src/Domain/Entities/Game.py
Urbistondo/EventbriteShogi
0160d31080a0c69e843b64feab47d93d1f22a425
[ "MIT" ]
null
null
null
src/Domain/Entities/Game.py
Urbistondo/EventbriteShogi
0160d31080a0c69e843b64feab47d93d1f22a425
[ "MIT" ]
null
null
null
src/Domain/Entities/Game.py
Urbistondo/EventbriteShogi
0160d31080a0c69e843b64feab47d93d1f22a425
[ "MIT" ]
null
null
null
import datetime from Domain.Entities.Piece import Color class Game: board = None piece_factory = None start_date = None end_date = None pieces_white = None pieces_black = None captured_white = None captured_black = None finished = False winner = None turn = None curre...
25.940299
96
0.649597
219
1,738
4.940639
0.205479
0.110906
0.078558
0.060998
0.330869
0.232902
0.170055
0.170055
0.103512
0.103512
0
0.001572
0.268124
1,738
67
97
25.940299
0.849057
0
0
0.078431
0
0
0
0
0
0
0
0
0
1
0.215686
false
0
0.039216
0.078431
0.588235
0
0
0
0
null
0
0
0
0
0
0
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
0d46cd9844d76b97b0c12ebdd843bc1779a4f31f
2,630
py
Python
Scripts/Concept Whitening Classifier/Scripts/Make_Concept_Dataset.py
alen-smajic/OCR-for-customs-declarations-and-transport-documents
5a885ceacee614dcd2f5a8490857dc7d945dcf0d
[ "MIT" ]
null
null
null
Scripts/Concept Whitening Classifier/Scripts/Make_Concept_Dataset.py
alen-smajic/OCR-for-customs-declarations-and-transport-documents
5a885ceacee614dcd2f5a8490857dc7d945dcf0d
[ "MIT" ]
null
null
null
Scripts/Concept Whitening Classifier/Scripts/Make_Concept_Dataset.py
alen-smajic/OCR-for-customs-declarations-and-transport-documents
5a885ceacee614dcd2f5a8490857dc7d945dcf0d
[ "MIT" ]
null
null
null
import numpy as np import cv2 import random import os path = "./Concept_Dataset_script_generated/" def make_geometric_objects(path, number, geom): path = path + geom + "/" if not os.path.exists(path): os.makedirs(path) for i in range(number): image = np.ones((240,240,3), np.uint...
26.565657
100
0.58365
348
2,630
4.324713
0.298851
0.146844
0.130233
0.07907
0.304983
0.221262
0.221262
0.180066
0.078405
0.078405
0
0.07154
0.271863
2,630
98
101
26.836735
0.71436
0.101901
0
0.115385
1
0
0.059149
0.014894
0
0
0
0
0
1
0.038462
false
0
0.076923
0
0.115385
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0d472fbb58989d43f332a99c7e755fd8ece3e7b1
149
py
Python
monthly.py
akapila011/NSE-Stock-Price-Crawler
ca368c5ae9846d088bcd46eb2487dea5b06f4923
[ "MIT" ]
null
null
null
monthly.py
akapila011/NSE-Stock-Price-Crawler
ca368c5ae9846d088bcd46eb2487dea5b06f4923
[ "MIT" ]
2
2021-03-31T19:19:56.000Z
2021-12-13T20:01:54.000Z
monthly.py
cpegasusb/nsewhizz
8c0768f57280c36269c209891a22c614177f3507
[ "MIT" ]
1
2019-12-09T11:43:47.000Z
2019-12-09T11:43:47.000Z
from src import * inputPath = 'data/daily/' outputPath = 'data/monthly/' formatter = FormatData() formatter.getMonthlyData(inputPath, outputPath)
16.555556
47
0.758389
15
149
7.533333
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.120805
149
8
48
18.625
0.862595
0
0
0
0
0
0.162162
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
0d47b3c871b167725d4d584aad7ea2eef5991580
469
py
Python
src/models/rf_class.py
justinessert/feature-selection
86abef593746e27416f4901d2803bd9eb8b4051e
[ "MIT" ]
null
null
null
src/models/rf_class.py
justinessert/feature-selection
86abef593746e27416f4901d2803bd9eb8b4051e
[ "MIT" ]
null
null
null
src/models/rf_class.py
justinessert/feature-selection
86abef593746e27416f4901d2803bd9eb8b4051e
[ "MIT" ]
1
2019-05-15T00:20:08.000Z
2019-05-15T00:20:08.000Z
from sklearn.ensemble import RandomForestClassifier import pandas as pd from models.model import Model class RfClass(Model): def __init__(self, model_params): super().__init__(model_params,'RF Classifier') def build_model(self): max_depth = self.model_params['max_depth'] n_estimators =...
26.055556
83
0.716418
58
469
5.431034
0.431034
0.139683
0.142857
0.120635
0
0
0
0
0
0
0
0
0.202559
469
17
84
27.588235
0.842246
0
0
0
0
0
0.072495
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0d49718c4750f5419b254d35be2e7597bfe67a84
3,742
py
Python
old/p4diff.py
jtilander/p4scripts
0af2ed414deb7ed5c5d3e1890075fbd45fb42ba3
[ "MIT" ]
1
2016-06-28T11:08:54.000Z
2016-06-28T11:08:54.000Z
old/p4diff.py
jtilander/p4scripts
0af2ed414deb7ed5c5d3e1890075fbd45fb42ba3
[ "MIT" ]
null
null
null
old/p4diff.py
jtilander/p4scripts
0af2ed414deb7ed5c5d3e1890075fbd45fb42ba3
[ "MIT" ]
null
null
null
#!/usr/bin/python # (c) 2006 Jim Tilander import sys import os import string import re import base64 import zlib P4EXE = 'p4' NEWFILEPATTERN = re.compile( r'==== ([^#]+)#([\d]+) - (.+) ====(.*)$' ) MARKER = '================' USAGE = """Usage: p4diff <outputfile> [options] Produces input to p4patch O...
27.514706
143
0.546232
431
3,742
4.693736
0.354988
0.032131
0.020761
0.015818
0.083045
0.074147
0
0
0
0
0
0.017097
0.3279
3,742
135
144
27.718519
0.787276
0.046766
0
0.11
0
0.01
0.116991
0
0
0
0
0
0
0
null
null
0
0.06
null
null
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0d49b3c282c0d5aaafc4cee1e7dc907315c8b1b1
4,329
py
Python
app/tests/test_eventactions.py
twatchy/cito_engine
a62dce3c76567dd36b7efcaa70e03728b335f44e
[ "Apache-2.0" ]
null
null
null
app/tests/test_eventactions.py
twatchy/cito_engine
a62dce3c76567dd36b7efcaa70e03728b335f44e
[ "Apache-2.0" ]
null
null
null
app/tests/test_eventactions.py
twatchy/cito_engine
a62dce3c76567dd36b7efcaa70e03728b335f44e
[ "Apache-2.0" ]
null
null
null
"""Copyright 2014 Cyrus Dasadia Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
42.441176
131
0.682144
530
4,329
5.492453
0.315094
0.045345
0.032978
0.047406
0.493301
0.493301
0.493301
0.463071
0.434902
0.434902
0
0.017417
0.204204
4,329
102
132
42.441176
0.827576
0.275583
0
0.510204
0
0.122449
0.178327
0.057273
0
0
0
0.009804
0.346939
1
0.040816
false
0
0.122449
0
0.183673
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d49e9c5572e12815fd80216fbeda6ddc1dd1c90
756
py
Python
test/msvs/config_attrs/gyptest-config_attrs.py
Jet-Streaming/gyp
6488d24fc7bdd8bc563998d77d9a0950781bbaf5
[ "BSD-3-Clause" ]
null
null
null
test/msvs/config_attrs/gyptest-config_attrs.py
Jet-Streaming/gyp
6488d24fc7bdd8bc563998d77d9a0950781bbaf5
[ "BSD-3-Clause" ]
null
null
null
test/msvs/config_attrs/gyptest-config_attrs.py
Jet-Streaming/gyp
6488d24fc7bdd8bc563998d77d9a0950781bbaf5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies that msvs_configuration_attributes and msbuild_configuration_attributes are applied by using them to set the OutputDir...
23.625
76
0.723545
112
756
4.714286
0.625
0.051136
0.049242
0.056818
0.083333
0
0
0
0
0
0
0.023511
0.156085
756
31
77
24.387097
0.804075
0.403439
0
0
0
0
0.215159
0
0
0
0
0
0
1
0
false
0.090909
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0d4a9888ae820cac189843adcdb32cd2236a6d23
87
py
Python
rtxp/ripple/traits.py
johansten/rtxp-py
47380dca6f9f4b53b90aa297df3f773c44ad4423
[ "BSD-3-Clause" ]
1
2015-06-18T07:02:02.000Z
2015-06-18T07:02:02.000Z
rtxp/ripple/traits.py
johansten/rtxp-py
47380dca6f9f4b53b90aa297df3f773c44ad4423
[ "BSD-3-Clause" ]
null
null
null
rtxp/ripple/traits.py
johansten/rtxp-py
47380dca6f9f4b53b90aa297df3f773c44ad4423
[ "BSD-3-Clause" ]
null
null
null
NATIVE = 'XRP' ALPHABET = 'rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz'
29
71
0.862069
4
87
18.75
1
0
0
0
0
0
0
0
0
0
0
0.111111
0.068966
87
2
72
43.5
0.814815
0
0
0
0
0
0.701149
0.666667
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0d4c948f5a6b82f9e20993ba76cb0021d715d245
8,016
py
Python
code.py
dnkorte/skating_stopwatch
6cde91471782298a60d2a43f52470730bb94a3ae
[ "MIT" ]
null
null
null
code.py
dnkorte/skating_stopwatch
6cde91471782298a60d2a43f52470730bb94a3ae
[ "MIT" ]
null
null
null
code.py
dnkorte/skating_stopwatch
6cde91471782298a60d2a43f52470730bb94a3ae
[ "MIT" ]
null
null
null
""" # PyPortal referee stopwatch for figure skating competitions # Author(s): Don Korte # Module: code.py is mainline initialization and master loop # # github: https://github.com/dnkorte/skating_stopwatch.git # # MIT License # # Copyright (c) 2019 Don Korte # # Permission is hereby granted, free of charge, to any ...
45.288136
120
0.721806
1,091
8,016
5.112741
0.342805
0.025816
0.01972
0.027967
0.166009
0.134098
0.077447
0.065615
0.065615
0.065615
0
0.018185
0.190494
8,016
177
121
45.288136
0.841424
0.424651
0
0.207547
0
0
0.039983
0.025344
0
0
0
0
0
1
0
false
0
0.188679
0
0.188679
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d4ca2293273a6038abc8c6538534335292f79f2
2,746
py
Python
examples/h2co_mm_example_despotic.py
glangsto/pyspeckit
346b24fb828d1d33c7891cdde7609723e51af34c
[ "MIT" ]
79
2015-03-03T15:06:20.000Z
2022-03-27T21:29:47.000Z
examples/h2co_mm_example_despotic.py
glangsto/pyspeckit
346b24fb828d1d33c7891cdde7609723e51af34c
[ "MIT" ]
240
2015-01-04T02:59:12.000Z
2021-11-13T15:11:14.000Z
examples/h2co_mm_example_despotic.py
glangsto/pyspeckit
346b24fb828d1d33c7891cdde7609723e51af34c
[ "MIT" ]
68
2015-03-02T12:23:12.000Z
2022-02-28T10:26:36.000Z
import pyspeckit as psk from pyspeckit.spectrum import models from astropy.table import Table from spectral_cube import SpectralCube import numpy as np import matplotlib.pyplot as plt import despotic import pyspeckit.spectrum.readers.read_class import os import shutil if not os.path.exists('ph2cogrid.fits'): if n...
47.344828
95
0.531682
307
2,746
4.609121
0.482085
0.069258
0.062191
0.033922
0.100353
0.059364
0
0
0
0
0
0.064913
0.349235
2,746
57
96
48.175439
0.726917
0.110342
0
0
0
0
0.104766
0.064503
0
0
0
0
0
1
0
false
0
0.232558
0
0.232558
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d4cf207716d10d789ee993c688b562c50706913
730
py
Python
flask_app/app.py
DmytroKomisar/DevOpsTestTask
41391a3566da7bc619251bac73578e2c33ba6b10
[ "Apache-2.0", "MIT" ]
null
null
null
flask_app/app.py
DmytroKomisar/DevOpsTestTask
41391a3566da7bc619251bac73578e2c33ba6b10
[ "Apache-2.0", "MIT" ]
null
null
null
flask_app/app.py
DmytroKomisar/DevOpsTestTask
41391a3566da7bc619251bac73578e2c33ba6b10
[ "Apache-2.0", "MIT" ]
null
null
null
from flask import Flask, request, abort, jsonify app = Flask(__name__) @app.route('/', methods=['POST']) def upload(): if not request.is_json: abort(400) content = request.get_json() security_groups = set() for module in content['modules']: resources = module['resources'] sgs = [x...
26.071429
108
0.646575
105
730
4.314286
0.542857
0.092715
0.066225
0
0
0
0
0
0
0
0
0.011745
0.183562
730
27
109
27.037037
0.748322
0
0
0
0
0.055556
0.232877
0
0
0
0
0
0
1
0.111111
false
0
0.055556
0.055556
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d4d30b6e6303645af1e2596d61513feb8c14510
7,537
py
Python
neurosity/neurosity.py
neurosity/neurosity-python-sdk
1c8b6412c80711a23a4d677b00e00a0972da6278
[ "MIT" ]
3
2022-03-16T21:02:44.000Z
2022-03-24T20:22:21.000Z
neurosity/neurosity.py
neurosity/neurosity-python-sdk
1c8b6412c80711a23a4d677b00e00a0972da6278
[ "MIT" ]
1
2022-03-18T15:42:35.000Z
2022-03-18T15:42:35.000Z
neurosity/neurosity.py
neurosity/neurosity-python-sdk
1c8b6412c80711a23a4d677b00e00a0972da6278
[ "MIT" ]
null
null
null
import pyrebase import atexit from neurosity.config import PyRebase class neurosity_sdk: def __init__(self, options): if ("device_id" not in options): raise ValueError("Neurosity SDK: A device ID is required to use the SDK") options.setdefault("environment", "production") self....
34.732719
106
0.631949
852
7,537
5.388498
0.166667
0.045306
0.045306
0.062731
0.342845
0.262688
0.225441
0.181006
0.049662
0.02396
0
0.000179
0.25806
7,537
216
107
34.893519
0.820815
0.015789
0
0.10625
0
0
0.141759
0.042352
0
0
0
0.00463
0
1
0.2
false
0.0125
0.01875
0.1
0.36875
0.00625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d4e51a479e1c13cd74a1e9a830b7c2a69de31d5
2,624
py
Python
ChiantiPy/tools/sources.py
kdere/ChiantiPy
2d17585d64dd1ed5a92edc645d6c85176899c185
[ "0BSD", "MIT" ]
56
2016-01-14T15:34:50.000Z
2022-03-09T10:41:36.000Z
ChiantiPy/tools/sources.py
kdere/ChiantiPy
2d17585d64dd1ed5a92edc645d6c85176899c185
[ "0BSD", "MIT" ]
163
2015-11-12T16:01:22.000Z
2022-03-23T14:19:59.000Z
ChiantiPy/tools/sources.py
chianti-atomic/ChiantiPy
0d47cc1c5855ab0290d0c6bd43628722651a77c5
[ "0BSD", "MIT" ]
36
2015-11-12T16:03:47.000Z
2022-02-09T17:53:39.000Z
""" Blackbody temperature calculations """ import numpy as np import ChiantiPy.tools.constants as const class blackStar: """ Calculate blackbody radiation Parameters ---------- temperature : `~numpy.ndarray` Temperature in Kelvin radius : `~numpy.ndarray` Stellar radius in cm...
32.8
237
0.61814
299
2,624
5.411371
0.311037
0.059333
0.027194
0.032138
0.280593
0.211372
0.173053
0.173053
0.173053
0.095179
0
0.01161
0.245046
2,624
79
238
33.21519
0.805149
0.556402
0
0
0
0
0.082707
0
0
0
0
0
0
1
0.15
false
0
0.1
0
0.4
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d4e92239a42a1e07fc1974d6169fd9d61b14b1d
6,854
py
Python
plugins/module_utils/dnac_path_trace.py
takamitsu-iida/ansible_collections.iida.dnac
943c9e0b954087d82db934865605bf7eb7608659
[ "MIT" ]
null
null
null
plugins/module_utils/dnac_path_trace.py
takamitsu-iida/ansible_collections.iida.dnac
943c9e0b954087d82db934865605bf7eb7608659
[ "MIT" ]
null
null
null
plugins/module_utils/dnac_path_trace.py
takamitsu-iida/ansible_collections.iida.dnac
943c9e0b954087d82db934865605bf7eb7608659
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # pylint: disable=missing-module-docstring import json import logging import datetime try: HAS_TABULATE = True import tabulate except ImportError: HAS_TABULATE = False try: from dnac_rest_client import DnacRestClient except ImportError: from ansible_collection...
30.061404
136
0.678144
943
6,854
4.700954
0.246023
0.119783
0.049853
0.022107
0.291902
0.22152
0.189939
0.184525
0.13219
0.086172
0
0.023714
0.200175
6,854
227
137
30.193833
0.784933
0.25445
0
0.209091
0
0
0.212447
0.027164
0
0
0
0
0
1
0.063636
false
0
0.090909
0
0.236364
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d54823200e0f754f7348757b18b30672ceb3d3f
2,460
py
Python
src/main/python/khaiii/train/tagger.py
cjdans5545/khaiii
328d5a8af456a5941130383354c07d1cd0e47cf5
[ "Apache-2.0" ]
1,235
2018-11-30T01:35:13.000Z
2022-03-31T03:47:48.000Z
src/main/python/khaiii/train/tagger.py
cjdans5545/khaiii
328d5a8af456a5941130383354c07d1cd0e47cf5
[ "Apache-2.0" ]
91
2018-11-30T05:19:28.000Z
2022-03-14T12:38:44.000Z
src/main/python/khaiii/train/tagger.py
cjdans5545/khaiii
328d5a8af456a5941130383354c07d1cd0e47cf5
[ "Apache-2.0" ]
332
2018-11-30T00:49:04.000Z
2022-03-30T01:57:54.000Z
# -*- coding: utf-8 -*- """ part-of-speech tagger __author__ = 'Jamie (jamie.lim@kakaocorp.com)' __copyright__ = 'Copyright (C) 2019-, Kakao Corp. All rights reserved.' """ ########### # imports # ########### from argparse import Namespace import json import logging import re import torch.nn.functional as F from ...
33.69863
122
0.610976
319
2,460
4.526646
0.410658
0.048476
0.027701
0.036011
0.110803
0.110803
0.110803
0.110803
0.110803
0.110803
0
0.006504
0.25
2,460
72
123
34.166667
0.776152
0.187398
0
0
0
0
0.032698
0
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d55134a6274e95c13bfff3b7a7a64f396c1258d
2,614
py
Python
hot_coffee_brewers/queries.py
pr222/1dv503-pa2-hot-coffee-brewers
0f51363a0413391eee5720245625685709e4d21a
[ "MIT" ]
null
null
null
hot_coffee_brewers/queries.py
pr222/1dv503-pa2-hot-coffee-brewers
0f51363a0413391eee5720245625685709e4d21a
[ "MIT" ]
null
null
null
hot_coffee_brewers/queries.py
pr222/1dv503-pa2-hot-coffee-brewers
0f51363a0413391eee5720245625685709e4d21a
[ "MIT" ]
null
null
null
''' List number of reviews for all Coffee Shops. ''' def query_all_shop_reviews(cursor, cnx): query = "SELECT reviews.shopID, coffee_shops.name, COUNT(*)FROM reviews JOIN coffee_shops ON reviews.shopID = coffee_shops.id GROUP BY shopID;" cursor.execute(query) myresult = cursor.fetchall() for result ...
31.878049
147
0.628921
327
2,614
4.941896
0.235474
0.061262
0.068069
0.077351
0.438119
0.394802
0.394802
0.394802
0.394802
0.292079
0
0.006231
0.263198
2,614
82
148
31.878049
0.832814
0.016832
0
0.303571
0
0.017857
0.427189
0.032258
0
0
0
0
0
1
0.089286
false
0
0
0
0.089286
0.089286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d57187b1fe621fa44ec3e0138c833d459861dc4
41,128
py
Python
lib/eapeak/parse.py
InfamousSYN/eapeak
62f8989b23c723f952cab462b326d59c7f16faec
[ "BSD-3-Clause" ]
null
null
null
lib/eapeak/parse.py
InfamousSYN/eapeak
62f8989b23c723f952cab462b326d59c7f16faec
[ "BSD-3-Clause" ]
null
null
null
lib/eapeak/parse.py
InfamousSYN/eapeak
62f8989b23c723f952cab462b326d59c7f16faec
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # lib/eapeak/parse.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of...
37.905991
195
0.705335
5,791
41,128
4.840442
0.136419
0.02854
0.021833
0.018301
0.4322
0.367771
0.322108
0.292141
0.280547
0.26674
0
0.017524
0.179999
41,128
1,084
196
37.940959
0.81364
0.165605
0
0.379956
0
0
0.072758
0
0
0
0.003353
0
0
1
0.04185
false
0.006608
0.022026
0
0.104626
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0d578e27a40851cab52e76a2682cae56e7f828c8
50,422
py
Python
site.py
ahmetfurkaann/Firma-Website
6f4318f31a8c660de0e41c61929ea6d09c722600
[ "Apache-2.0" ]
null
null
null
site.py
ahmetfurkaann/Firma-Website
6f4318f31a8c660de0e41c61929ea6d09c722600
[ "Apache-2.0" ]
null
null
null
site.py
ahmetfurkaann/Firma-Website
6f4318f31a8c660de0e41c61929ea6d09c722600
[ "Apache-2.0" ]
null
null
null
from re import U from sys import unraisablehook from flask import Flask, g,render_template,flash,redirect,url_for,session,logging,request from flask_mysqldb import MySQL from wtforms import Form,StringField,TextAreaField,PasswordField,validators from passlib.hash import sha256_crypt from functools import wraps ...
42.948893
446
0.637618
6,240
50,422
5.073397
0.099679
0.01731
0.05373
0.048613
0.670857
0.604302
0.55114
0.509824
0.47015
0.404132
0
0.019878
0.240728
50,422
1,173
447
42.985507
0.805637
0.046805
0
0.520249
0
0.047767
0.328755
0.042101
0
0
0
0
0
1
0.057113
false
0.009346
0.007269
0.003115
0.187954
0.004154
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b48f48a86a480a643b98de1d8c4d0bbf244c1ccb
6,116
py
Python
20180107-Causality/chmp-app-causality/src/chmp/app/causality/dataset/customer.py
chmp/misc-exp
2edc2ed598eb59f4ccb426e7a5c1a23343a6974b
[ "MIT" ]
6
2017-10-31T20:54:37.000Z
2020-10-23T19:03:00.000Z
20180107-Causality/chmp-app-causality/src/chmp/app/causality/dataset/customer.py
chmp/misc-exp
2edc2ed598eb59f4ccb426e7a5c1a23343a6974b
[ "MIT" ]
7
2020-03-24T16:14:34.000Z
2021-03-18T20:51:37.000Z
20180107-Causality/chmp-app-causality/src/chmp/app/causality/dataset/customer.py
chmp/misc-exp
2edc2ed598eb59f4ccb426e7a5c1a23343a6974b
[ "MIT" ]
1
2019-07-29T07:55:49.000Z
2019-07-29T07:55:49.000Z
import argparse import logging import os.path import numpy as np import pandas as pd import patsy _logger = logging.getLogger(__name__) _basedir = os.path.abspath(os.path.dirname(__file__)) def create(data_path): target_fname = os.path.join(data_path, "customer.parquet") if os.path.exists(target_fname): ...
28.184332
88
0.630968
892
6,116
4.115471
0.206278
0.050123
0.04195
0.031054
0.315445
0.264233
0.236993
0.197766
0.165895
0.136747
0
0.040893
0.216318
6,116
216
89
28.314815
0.725016
0.009483
0
0.025478
0
0
0.071275
0
0
0
0
0
0
1
0.070064
false
0
0.038217
0.006369
0.178344
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b48f53faa5d22345fc859ae5353bddfdc3d64abb
1,745
py
Python
Data Collection/Apparatus/Air Pollution/air_pollution_multithreading.py
NathanDai5287/air-pollution-covid-19
dbf030bba7df22efc53d2262cea469309c884791
[ "MIT" ]
null
null
null
Data Collection/Apparatus/Air Pollution/air_pollution_multithreading.py
NathanDai5287/air-pollution-covid-19
dbf030bba7df22efc53d2262cea469309c884791
[ "MIT" ]
null
null
null
Data Collection/Apparatus/Air Pollution/air_pollution_multithreading.py
NathanDai5287/air-pollution-covid-19
dbf030bba7df22efc53d2262cea469309c884791
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import datetime from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor import pandas as pd from pollution import start_date, start_date_string, end_date, end_date_string, parameters from pollution import location_to_c...
37.934783
142
0.711748
246
1,745
4.792683
0.345528
0.067854
0.050891
0.045802
0.309584
0.155216
0.111959
0.040712
0
0
0
0.016416
0.162178
1,745
45
143
38.777778
0.790014
0.081375
0
0
0
0.034483
0.105691
0.061288
0
0
0
0
0
1
0.034483
false
0
0.275862
0
0.310345
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b4921f6ec217a9592cadd47f882fbef1d2caa7a8
1,015
py
Python
test/settings.py
movermeyer/django-response-timeout
38f7462ab71d967749efc3be914e2a7a2df80f33
[ "MIT" ]
1
2018-06-17T19:54:47.000Z
2018-06-17T19:54:47.000Z
test/settings.py
movermeyer/django-response-timeout
38f7462ab71d967749efc3be914e2a7a2df80f33
[ "MIT" ]
null
null
null
test/settings.py
movermeyer/django-response-timeout
38f7462ab71d967749efc3be914e2a7a2df80f33
[ "MIT" ]
1
2018-03-03T16:17:38.000Z
2018-03-03T16:17:38.000Z
import django from os import path SECRET_KEY = 'not secret' INSTALLED_APPS = ('response_timeout', 'test') TEMPLATE_DEBUG = DEBUG = True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'response_timeout.db', }, } ROOT_URLCONF = 'test.urls' # Testing if django.VERSIO...
24.756098
67
0.714286
106
1,015
6.566038
0.528302
0.086207
0.071839
0
0
0
0
0
0
0
0
0.007018
0.157635
1,015
40
68
25.375
0.807018
0.012808
0
0.0625
0
0
0.423423
0.288288
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b4955baf2c5dfc4e228d772814f138530642e06e
673
py
Python
api/gql/mutations/shopper.py
novanda1/sayurmax
82588735e2305b658ce5b668d3d29e413ea6f5d9
[ "Apache-2.0" ]
null
null
null
api/gql/mutations/shopper.py
novanda1/sayurmax
82588735e2305b658ce5b668d3d29e413ea6f5d9
[ "Apache-2.0" ]
1
2022-03-12T01:01:57.000Z
2022-03-12T01:01:57.000Z
api/gql/mutations/shopper.py
novanda1/sayurmax
82588735e2305b658ce5b668d3d29e413ea6f5d9
[ "Apache-2.0" ]
null
null
null
from strawberry import mutation from gql.services.shopper import ShopperServices from gql.utils.authentication.shopper import ShopperAuth from gql.types.order import OrderStatusCode from asgiref.sync import sync_to_async services = ShopperServices() class ShopperMutation: @mutation @sync_to_async def lo...
28.041667
68
0.762259
81
673
6.148148
0.419753
0.088353
0.066265
0.056225
0
0
0
0
0
0
0
0
0.170877
673
23
69
29.26087
0.892473
0
0
0.117647
0
0
0
0
0
0
0
0
0
1
0.117647
false
0.117647
0.294118
0
0.588235
0
0
0
0
null
0
0
0
0
0
0
0
0
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
b495d6846e8bc7d829b7b7db20d4bf0c49d9625c
4,648
py
Python
GUI/GtkGI/BaseFileDialogs.py
gcewing/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
9
2019-07-15T19:03:27.000Z
2021-11-24T19:50:02.000Z
GUI/GtkGI/BaseFileDialogs.py
mnabeelp/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
3
2019-09-11T13:22:10.000Z
2020-08-19T20:13:00.000Z
GUI/GtkGI/BaseFileDialogs.py
mnabeelp/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
4
2020-02-23T16:50:06.000Z
2022-02-10T07:15:35.000Z
# # Python GUI - File selection dialogs - Gtk # import os from gi.repository import Gtk from GUI.Files import FileRef from GUI.AlertFunctions import confirm from GUI.Applications import application #------------------------------------------------------------------ class _FileDialog(Gtk.FileChooserDialog): def _...
28.169697
73
0.657917
589
4,648
4.976231
0.185059
0.051859
0.033436
0.030024
0.534971
0.464688
0.454794
0.454794
0.432617
0.432617
0
0.002762
0.143072
4,648
164
74
28.341463
0.733116
0.406196
0
0.341176
0
0
0.034547
0
0
0
0
0
0
0
null
null
0
0.058824
null
null
0.011765
0
0
0
null
0
0
0
0
0
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
b49783e2412d9102b2e721666330558cc70ae777
318
py
Python
templates/chord_degree.py
diramazioni/blend-sonic
71f8782aea9e743383324f079dd1b49b31528f44
[ "RSA-MD" ]
2
2022-01-06T14:47:22.000Z
2022-02-02T01:55:49.000Z
templates/chord_degree.py
diramazioni/blend-sonic
71f8782aea9e743383324f079dd1b49b31528f44
[ "RSA-MD" ]
null
null
null
templates/chord_degree.py
diramazioni/blend-sonic
71f8782aea9e743383324f079dd1b49b31528f44
[ "RSA-MD" ]
null
null
null
{% extends "degree.py" %} {%- block checkArgs %} {%- if fn.alt_args %} {{ macro.argCheck(fn.alt_args) }} {% endif %} {%- if fn.args %} {{ macro.argCheck(fn.args) }} {% endif %} {%- if fn.opts %} {{ macro.optCheck() }} {% endif %} {%- endblock %}
24.461538
41
0.424528
30
318
4.433333
0.5
0.090226
0.135338
0.285714
0
0
0
0
0
0
0
0
0.355346
318
13
42
24.461538
0.64878
0
0
0.25
0
0
0.028213
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
2
b497d0fd6c1a1150af128d25074c2daff3c48910
73
py
Python
PyDSTool/PyCont/__init__.py
mdlama/pydstool
3d298e908ff55340cd3612078508be0c791f63a8
[ "Python-2.0", "OLDAP-2.7" ]
2
2021-02-04T15:01:31.000Z
2021-02-25T16:08:43.000Z
PyDSTool/PyCont/__init__.py
mdlama/pydstool
3d298e908ff55340cd3612078508be0c791f63a8
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
PyDSTool/PyCont/__init__.py
mdlama/pydstool
3d298e908ff55340cd3612078508be0c791f63a8
[ "Python-2.0", "OLDAP-2.7" ]
1
2021-02-25T14:43:36.000Z
2021-02-25T14:43:36.000Z
from __future__ import absolute_import from .ContClass import ContClass
18.25
38
0.863014
9
73
6.444444
0.555556
0
0
0
0
0
0
0
0
0
0
0
0.123288
73
3
39
24.333333
0.90625
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5