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
988edc13ccae6c0801420ecb6d188c9b4a82c75b
1,052
py
Python
Lecture_notes/数据提取与验证码的识别(下)/code/多线程爬虫.py
littleturings/2021PythonWebCrawler
a9089a912affce4369cf50df3c22c55eb4ebf2d5
[ "MIT" ]
1
2021-02-03T08:28:16.000Z
2021-02-03T08:28:16.000Z
Lecture_notes/数据提取与验证码的识别(下)/code/多线程爬虫.py
littleturings/2021PythonWebCrawler
a9089a912affce4369cf50df3c22c55eb4ebf2d5
[ "MIT" ]
null
null
null
Lecture_notes/数据提取与验证码的识别(下)/code/多线程爬虫.py
littleturings/2021PythonWebCrawler
a9089a912affce4369cf50df3c22c55eb4ebf2d5
[ "MIT" ]
null
null
null
from threading import Thread import requests from lxml import etree from fake_useragent import UserAgent from queue import Queue class Spider(Thread): def __init__(self,url_queue): Thread.__init__(self) self.url_queue = url_queue def run(self): while not self.url_queue.empty(): ...
30.941176
101
0.586502
136
1,052
4.338235
0.5
0.108475
0.081356
0.044068
0
0
0
0
0
0
0
0.005298
0.282319
1,052
34
102
30.941176
0.776159
0
0
0
0
0
0.103514
0.021842
0
0
0
0
0
1
0.071429
false
0
0.178571
0
0.285714
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
988feb164822c678128261338e61810b6c4748b8
486
py
Python
__isVowel.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
__isVowel.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
__isVowel.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
''' A Python program to test whether a passed letter is a vowel ornot. ''' def isVowel (inputStr): vowelTuple = ('a', 'e', 'i', 'o', 'u') for vowel in vowelTuple: if inputStr == vowel: return True return False def main (): myStr = input ("Enter a letter") ...
20.25
66
0.524691
57
486
4.473684
0.596491
0.047059
0.101961
0.109804
0
0
0
0
0
0
0
0
0.364198
486
24
67
20.25
0.825243
0.135802
0
0
0
0
0.13835
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9890311c2c70976d1163fe80f05202d37c39505b
5,821
py
Python
scripts/cscap/harvest_soil_bd.py
isudatateam/datateam
eb8e1dad6c05cb1b236689862fe87c56b25ea6fc
[ "MIT" ]
5
2017-05-20T04:51:55.000Z
2022-03-07T18:55:27.000Z
scripts/cscap/harvest_soil_bd.py
isudatateam/datateam
eb8e1dad6c05cb1b236689862fe87c56b25ea6fc
[ "MIT" ]
275
2017-03-09T20:31:30.000Z
2022-03-30T22:43:47.000Z
scripts/cscap/harvest_soil_bd.py
isudatateam/datateam
eb8e1dad6c05cb1b236689862fe87c56b25ea6fc
[ "MIT" ]
3
2020-06-01T15:03:06.000Z
2021-02-01T13:46:58.000Z
"""Scrape out the Soil Bulk Density and Texture data from Google Drive""" from __future__ import print_function import sys import psycopg2 import pyiem.cscap_utils as util YEAR = sys.argv[1] config = util.get_config() pgconn = psycopg2.connect( database="sustainablecorn", host=config["database"]["host"] ) pcurs...
30.798942
78
0.49373
646
5,821
4.349845
0.252322
0.018505
0.096797
0.119573
0.254093
0.196441
0.078292
0.05694
0.029893
0
0
0.017208
0.381034
5,821
188
79
30.962766
0.762698
0.093455
0
0.154839
0
0.006452
0.133044
0.00807
0
0
0
0
0
1
0
false
0.006452
0.025806
0
0.025806
0.058065
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9891dd87fdf4f97e52addf857b05cd50067c4326
3,335
py
Python
app/training.py
m-triple-m/project_junky
e55d3eeae6e97f002ab3087245e9dbeb4ed3eafd
[ "MIT" ]
null
null
null
app/training.py
m-triple-m/project_junky
e55d3eeae6e97f002ab3087245e9dbeb4ed3eafd
[ "MIT" ]
null
null
null
app/training.py
m-triple-m/project_junky
e55d3eeae6e97f002ab3087245e9dbeb4ed3eafd
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import pickle import sklearn.ensemble as ske from sklearn import tree, linear_model from sklearn.model_selection import train_test_split from sklearn.feature_selection import SelectFromModel from sklearn.externals import joblib from sklearn.naive_bayes import GaussianNB from sklea...
38.333333
113
0.686657
445
3,335
4.986517
0.359551
0.024335
0.00676
0.016224
0.102298
0.102298
0.102298
0.102298
0.064443
0.064443
0
0.015323
0.178111
3,335
87
114
38.333333
0.794236
0.133733
0
0
0
0
0.153526
0.016325
0
0
0
0
0
1
0.033898
false
0
0.288136
0
0.322034
0.169492
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
989349744cc2dd1a6576576af6f0bfa7e5efaf0a
2,495
py
Python
python/roman-numerals/roman_numerals.py
KT12/Exercism
41d6bdf3e3550d5af45f3e4aa6e7da10b7161b0a
[ "MIT" ]
1
2016-09-08T21:35:57.000Z
2016-09-08T21:35:57.000Z
python/roman-numerals/roman_numerals.py
KT12/Exercism
41d6bdf3e3550d5af45f3e4aa6e7da10b7161b0a
[ "MIT" ]
null
null
null
python/roman-numerals/roman_numerals.py
KT12/Exercism
41d6bdf3e3550d5af45f3e4aa6e7da10b7161b0a
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Fri Jan 6 15:51:34 2017 @author: ktt """ #!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Fri Jan 6 14:28:01 2017 @author: ktt """ def numeral(arabic): # Returns Roman equivalent of arabic numeral # Assumes input is int ...
25.459184
54
0.322645
237
2,495
3.337553
0.417722
0.05689
0.06574
0.064475
0.221239
0.221239
0.187105
0.106195
0.106195
0.106195
0
0.058621
0.53507
2,495
98
55
25.459184
0.623276
0.091784
0
0.115942
0
0
0.045082
0
0
0
0
0
0
1
0.072464
false
0
0
0
0.202899
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
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
9894780acddb9d5e169d21af5bce8cf904e87b23
5,466
py
Python
examples/Forecasting/models/forecast.py
vophihungvn/h1st
d421995bb0b8de6a5a76788261efef5b26bc7c12
[ "Apache-2.0" ]
1
2021-12-31T08:51:11.000Z
2021-12-31T08:51:11.000Z
examples/Forecasting/models/forecast.py
vophihungvn/h1st
d421995bb0b8de6a5a76788261efef5b26bc7c12
[ "Apache-2.0" ]
null
null
null
examples/Forecasting/models/forecast.py
vophihungvn/h1st
d421995bb0b8de6a5a76788261efef5b26bc7c12
[ "Apache-2.0" ]
null
null
null
import h1st as h1 import pandas as pd import os import sklearn import sklearn.metrics import subprocess import pathlib from sklearn.ensemble import RandomForestRegressor from sklearn.pipeline import Pipeline from sklearn.compose import make_column_transformer from sklearn.preprocessing import OneHotEncoder from Forecas...
41.725191
163
0.595134
614
5,466
5.136808
0.337134
0.045656
0.027901
0.017755
0.125872
0.098605
0.087191
0.075777
0.064046
0.029803
0
0.046554
0.304427
5,466
130
164
42.046154
0.783009
0.208196
0
0.024691
0
0.012346
0.178044
0.017124
0
0
0
0
0
1
0.08642
false
0.012346
0.160494
0
0.296296
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
9894d7c37b8c896bda95bc509e864f5d49009ff3
1,231
py
Python
main.py
Tasty213/github-graph
b0c7e04ff80afbcf3d4d40089301eb97ad3cdaf6
[ "MIT" ]
null
null
null
main.py
Tasty213/github-graph
b0c7e04ff80afbcf3d4d40089301eb97ad3cdaf6
[ "MIT" ]
null
null
null
main.py
Tasty213/github-graph
b0c7e04ff80afbcf3d4d40089301eb97ad3cdaf6
[ "MIT" ]
null
null
null
from wrapper import rate_handler import utils import mappers.repos import mappers.commits import mappers.labels import mappers.pull_requests import mappers.milestones import mappers.issues import logging import os from github import Github if __name__ == "__main__": logging.config.fileConfig( fname='loggin...
31.564103
69
0.726239
159
1,231
5.345912
0.339623
0.065882
0.088235
0.051765
0
0
0
0
0
0
0
0.008955
0.183591
1,231
38
70
32.394737
0.836816
0
0
0
0
0
0.099919
0
0
0
0
0
0
1
0
false
0.058824
0.323529
0
0.323529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
9895e882158e28bf4c2b35edfa219a477694083b
5,267
py
Python
pysnmp-with-texts/RADLAN-BOOTP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/RADLAN-BOOTP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/RADLAN-BOOTP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module RADLAN-BOOTP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RADLAN-BOOTP-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:45:26 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
109.729167
477
0.792671
581
5,267
7.182444
0.363167
0.054637
0.095615
0.007668
0.278936
0.116223
0.116223
0.116223
0.113827
0.102085
0
0.043614
0.085817
5,267
47
478
112.06383
0.823053
0.061895
0
0
0
0.076923
0.315288
0.013179
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
989688c2724f16a6ea2d06900ed3f29271555bc8
13,063
py
Python
ceviche/fdtd.py
kwadwo00/ceviche
a1ee155304c4679b262e4fdf8c8a28bc4d060ec8
[ "MIT" ]
111
2019-11-14T13:55:15.000Z
2022-03-29T12:19:01.000Z
ceviche/fdtd.py
kwadwo00/ceviche
a1ee155304c4679b262e4fdf8c8a28bc4d060ec8
[ "MIT" ]
13
2019-11-22T05:49:07.000Z
2022-03-20T17:02:59.000Z
ceviche/fdtd.py
kwadwo00/ceviche
a1ee155304c4679b262e4fdf8c8a28bc4d060ec8
[ "MIT" ]
42
2019-11-13T19:29:06.000Z
2022-03-19T11:58:09.000Z
import numpy as np import autograd.numpy as npa from copy import copy, deepcopy from .constants import * from .utils import reshape_to_ND, grid_center_to_xyz, grid_xyz_to_center from .derivatives import curl_E, curl_H class fdtd(): def __init__(self, eps_r, dL, npml): """ Makes an FDTD object ...
41.208202
148
0.559672
1,976
13,063
3.586032
0.135628
0.057155
0.073384
0.081287
0.451454
0.367062
0.220294
0.195032
0.157776
0.157776
0
0.042901
0.302304
13,063
316
149
41.338608
0.734584
0.152339
0
0.015873
0
0
0.011915
0
0
0
0
0
0
1
0.074074
false
0
0.031746
0.010582
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
98973eb1d96331229e648363477aa310dbca7e97
1,392
py
Python
scrapyext/duplicate.py
zanachka/scrapyext
2dd5e0fc03f8e4b8793b808744d4dd6452e5d5b3
[ "BSD-3-Clause" ]
12
2016-01-14T16:15:56.000Z
2021-08-12T09:31:27.000Z
scrapyext/duplicate.py
zanachka/scrapyext
2dd5e0fc03f8e4b8793b808744d4dd6452e5d5b3
[ "BSD-3-Clause" ]
null
null
null
scrapyext/duplicate.py
zanachka/scrapyext
2dd5e0fc03f8e4b8793b808744d4dd6452e5d5b3
[ "BSD-3-Clause" ]
3
2017-06-09T21:57:23.000Z
2022-03-13T08:16:11.000Z
""" DuplicatesPipeline Uses a configurable unique key/item field to filter duplicates on. HashedDuplicatesPipeline Automatic (exact) duplicates finder, remembering items based on a hash, optionally using a hashset for every seen itemtype. """ from scrapy.exceptions import DropItem try: import cPickle as pickle ex...
24
78
0.729167
193
1,392
5.072539
0.440415
0.057201
0.089888
0.034729
0.116445
0.116445
0
0
0
0
0
0
0.165948
1,392
57
79
24.421053
0.843239
0.069684
0
0.411765
0
0
0.06979
0
0
0
0
0
0
0
null
null
0
0.117647
null
null
0
0
0
0
null
0
0
0
0
0
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
9897920e4b31c1105fd21257030e059f22b924ba
5,289
py
Python
examples/probabilistic_keypoint_estimation/processors.py
niqbal996/paz
f27205907367415d5b21f90e1a1d1d1ce598e889
[ "MIT" ]
300
2020-10-29T08:02:05.000Z
2022-03-30T21:47:32.000Z
examples/probabilistic_keypoint_estimation/processors.py
albertofernandezvillan/paz
9fbd50b993f37e1e807297a29c6044c09967c9cc
[ "MIT" ]
30
2020-10-29T12:40:32.000Z
2022-03-31T14:06:35.000Z
examples/probabilistic_keypoint_estimation/processors.py
albertofernandezvillan/paz
9fbd50b993f37e1e807297a29c6044c09967c9cc
[ "MIT" ]
62
2020-10-29T12:34:13.000Z
2022-03-29T05:21:45.000Z
from paz.backend.image import draw_circle from paz.backend.image.draw import GREEN from paz.backend.image import resize_image from paz import processors as pr from paz.abstract import Processor import numpy as np from paz.backend.image import lincolor import seaborn as sns from matplotlib.backends.backend_agg import Fi...
33.474684
81
0.682927
605
5,289
5.786777
0.257851
0.015995
0.021994
0.034276
0.259069
0.189089
0.161668
0.161668
0.114253
0.114253
0
0.008389
0.211193
5,289
157
82
33.687898
0.830777
0.076952
0
0.236842
0
0
0.014642
0
0
0
0
0
0
1
0.157895
false
0
0.114035
0.008772
0.429825
0.008772
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
989a6043392e3a00a96dc24ccaddbe9e043d1236
3,727
py
Python
lib/exabgp/configuration/experimental/__init__.py
dneiter/exabgp
cb54d527f476f967ebd6598f3178f4b9814945dd
[ "BSD-3-Clause" ]
3
2015-08-20T07:56:37.000Z
2020-02-03T13:15:36.000Z
lib/exabgp/configuration/experimental/__init__.py
dneiter/exabgp
cb54d527f476f967ebd6598f3178f4b9814945dd
[ "BSD-3-Clause" ]
1
2015-02-09T16:54:01.000Z
2015-02-09T16:54:01.000Z
lib/exabgp/configuration/experimental/__init__.py
dneiter/exabgp
cb54d527f476f967ebd6598f3178f4b9814945dd
[ "BSD-3-Clause" ]
1
2015-02-09T16:33:51.000Z
2015-02-09T16:33:51.000Z
# encoding: utf-8 """ registry.py Created by Thomas Mangin on 2014-06-22. Copyright (c) 2014-2015 Exa Networks. All rights reserved. """ from exabgp.configuration.experimental.engine.raised import Raised from exabgp.configuration.experimental.engine.section import Section from exabgp.configuration.experimental.engin...
27.607407
133
0.691441
487
3,727
5.217659
0.305955
0.028335
0.036206
0.055096
0.152696
0.088154
0.088154
0.088154
0.088154
0.088154
0
0.013717
0.178428
3,727
134
134
27.813433
0.816133
0.107593
0
0.223404
0
0
0.080675
0
0
0
0
0
0
0
null
null
0
0.085106
null
null
0.138298
0
0
0
null
0
0
0
0
0
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
989c00ae5a2652cb4f51a767565665fceecf4f71
105
py
Python
nmmis/contrib/place/admin.py
mgrsantox/nmmis
77f5bc0907c4fa7babe177a07ea144c2ac8b2eca
[ "BSD-2-Clause" ]
null
null
null
nmmis/contrib/place/admin.py
mgrsantox/nmmis
77f5bc0907c4fa7babe177a07ea144c2ac8b2eca
[ "BSD-2-Clause" ]
null
null
null
nmmis/contrib/place/admin.py
mgrsantox/nmmis
77f5bc0907c4fa7babe177a07ea144c2ac8b2eca
[ "BSD-2-Clause" ]
null
null
null
from django.contrib import admin from nmmis.contrib.place.models import Place admin.site.register(Place)
26.25
44
0.838095
16
105
5.5
0.625
0
0
0
0
0
0
0
0
0
0
0
0.085714
105
4
45
26.25
0.916667
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
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
989dc6b7e06440eaa1baf455b551c9b102c10503
2,993
py
Python
scripts/blueprint_graph_queries.py
azdolinski/apstra-api-python
2380bcdbd5be31e552d9259592249b13fa432286
[ "Apache-2.0" ]
1
2022-03-23T22:16:15.000Z
2022-03-23T22:16:15.000Z
scripts/blueprint_graph_queries.py
azdolinski/apstra-api-python
2380bcdbd5be31e552d9259592249b13fa432286
[ "Apache-2.0" ]
4
2022-03-26T15:12:50.000Z
2022-03-31T07:31:53.000Z
scripts/blueprint_graph_queries.py
azdolinski/apstra-api-python
2380bcdbd5be31e552d9259592249b13fa432286
[ "Apache-2.0" ]
2
2022-03-26T00:04:42.000Z
2022-03-26T14:23:20.000Z
# Copyright 2020-present, Apstra, Inc. All rights reserved. # # This source code is licensed under End User License Agreement found in the # LICENSE file at http://www.apstra.com/eula from aos.client import AosClient from scripts.utils import deserialize_fixture import urllib3 urllib3.disable_warnings(urllib3.exceptio...
33.629213
76
0.642833
406
2,993
4.576355
0.352217
0.058127
0.037675
0.048439
0.275027
0.224435
0.128095
0.100108
0.065662
0.044133
0
0.004685
0.215503
2,993
89
77
33.629213
0.786627
0.322753
0
0.117647
0
0
0.402993
0.134663
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
989f87f406c9d1817c123fea722d38ee2706a91d
3,405
py
Python
src/data_loading/base.py
I2Cvb/rethinopaty
1f3386b5f21d781da972151459e6ef5886b6d6d8
[ "MIT" ]
2
2019-05-10T04:08:06.000Z
2019-09-24T07:35:34.000Z
src/data_loading/base.py
I2Cvb/rethinopaty
1f3386b5f21d781da972151459e6ef5886b6d6d8
[ "MIT" ]
1
2015-11-08T00:08:15.000Z
2015-11-10T19:07:16.000Z
src/data_loading/base.py
I2Cvb/rethinopaty
1f3386b5f21d781da972151459e6ef5886b6d6d8
[ "MIT" ]
1
2018-11-19T02:02:37.000Z
2018-11-19T02:02:37.000Z
""" Base code for dataset conversion and management This code contains: - core functions - asserting definitions to ensure dataset's integrity TODO ---- #TODO: find the best way to define the global path #TODO: check tests #TODO: think if it should be a class in this manner 'dataset_name' etc.. ...
26.192308
87
0.674596
477
3,405
4.622642
0.337526
0.032653
0.038095
0.021769
0.078458
0.023583
0
0
0
0
0
0.001177
0.251689
3,405
129
88
26.395349
0.864207
0.067841
0
0.041667
0
0
0.046101
0
0
0
0
0.046512
0.104167
0
null
null
0
0.145833
null
null
0.041667
0
0
0
null
0
0
0
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
1
0
0
0
0
0
0
0
0
2
98a08f9c2482c0d99eb42cf5f396b2658fb698d8
490
py
Python
grade.py
pooja160699/fullstackprograms
60db5db8e49ba99a106188c6771a8163be3d18be
[ "bzip2-1.0.6" ]
null
null
null
grade.py
pooja160699/fullstackprograms
60db5db8e49ba99a106188c6771a8163be3d18be
[ "bzip2-1.0.6" ]
null
null
null
grade.py
pooja160699/fullstackprograms
60db5db8e49ba99a106188c6771a8163be3d18be
[ "bzip2-1.0.6" ]
null
null
null
#grade def grade(a): total=0 for i in a: total=total+i print(total) per=float(total/5) print(per) if per>80: print("a") elif per>70: print("b") elif per>60: print("c") elif per>50: print("d") elif per>40: ...
14
35
0.461224
71
490
3.183099
0.464789
0.123894
0.053097
0
0
0
0
0
0
0
0
0.050336
0.391837
490
34
36
14.411765
0.708054
0.010204
0
0
0
0
0.075556
0
0
0
0
0
0
1
0.038462
false
0
0
0
0.038462
0.384615
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98a54a0f98ef2d7111fbff0beed3ba90e0411134
1,233
py
Python
tasks/config.py
laruja/f-show
0ef15d25d230ffeb20e70fae5b4769daa9a10828
[ "MIT" ]
4
2021-07-27T09:14:44.000Z
2021-09-08T02:14:31.000Z
tasks/config.py
laruja/f-show
0ef15d25d230ffeb20e70fae5b4769daa9a10828
[ "MIT" ]
null
null
null
tasks/config.py
laruja/f-show
0ef15d25d230ffeb20e70fae5b4769daa9a10828
[ "MIT" ]
null
null
null
import util # 日志目录 global logfileDir logfileDir = './log' # 数据库配置 global db db = { 'host': '127.0.0.1', 'port': 27017 } global daliy daliy = 'daliy' global daliyxxx daliyxxx = 'daliy'+util.yesterday().strftime('%Y%m%d') # daliy20210622 global history history = 'histest' global fund fund = 'fund' # 基金类型字典 glo...
26.804348
84
0.633414
140
1,233
5.578571
0.471429
0.06146
0.03073
0.12548
0
0
0
0
0
0
0
0.121212
0.170316
1,233
45
85
27.4
0.642229
0.119221
0
0
0
0
0.395176
0.025974
0
0
0
0
0
1
0
false
0
0.027778
0
0.027778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98a5c9401ffa5bdac95b62746713c3eae81af041
6,172
py
Python
mindquantum/algorithm/nisq/chem/unitary_cc.py
Takishima/mindquantum
e90dfe474b759023d7ae18281b9a87cb8d223d04
[ "Apache-2.0" ]
null
null
null
mindquantum/algorithm/nisq/chem/unitary_cc.py
Takishima/mindquantum
e90dfe474b759023d7ae18281b9a87cb8d223d04
[ "Apache-2.0" ]
null
null
null
mindquantum/algorithm/nisq/chem/unitary_cc.py
Takishima/mindquantum
e90dfe474b759023d7ae18281b9a87cb8d223d04
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2021 Huawei Technologies Co., Ltd # # 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 app...
41.422819
119
0.599968
769
6,172
4.784135
0.312094
0.043762
0.034248
0.026094
0.227779
0.202772
0.113074
0.071215
0.026094
0.026094
0
0.012655
0.283053
6,172
148
120
41.702703
0.795706
0.410402
0
0.153846
0
0
0.024566
0
0
0
0
0
0
1
0.038462
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
98a5de6ff37a8157fd5acdb6ec1f751faeddd147
6,506
py
Python
Tax-Calculator-3.0.0/taxcalc/policy.py
grantseiter/Tax-Benefits-Of-Parenthood
5350e832e8b877b46c2a3cab070fc8262b914a52
[ "MIT" ]
null
null
null
Tax-Calculator-3.0.0/taxcalc/policy.py
grantseiter/Tax-Benefits-Of-Parenthood
5350e832e8b877b46c2a3cab070fc8262b914a52
[ "MIT" ]
null
null
null
Tax-Calculator-3.0.0/taxcalc/policy.py
grantseiter/Tax-Benefits-Of-Parenthood
5350e832e8b877b46c2a3cab070fc8262b914a52
[ "MIT" ]
null
null
null
""" Tax-Calculator federal tax policy Policy class. """ # CODING-STYLE CHECKS: # pycodestyle policy.py # pylint --disable=locally-disabled policy.py import os import json import numpy as np from taxcalc.parameters import Parameters from taxcalc.growfactors import GrowFactors class Policy(Parameters): ...
39.192771
80
0.632339
790
6,506
4.975949
0.331646
0.022895
0.012719
0.024167
0.191554
0.159501
0.092852
0.058255
0.039176
0.039176
0
0.01614
0.295266
6,506
165
81
39.430303
0.841221
0.316631
0
0.123711
0
0
0.244913
0.076734
0
0
0
0.006061
0
1
0.051546
false
0
0.051546
0
0.237113
0.020619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98a60c53249410258e27e16f17c6bf4773ac5726
2,550
py
Python
tests/test_ops/test_merge_cells.py
BIGWangYuDong/mmcv
c46deb0576edaff5cd5a7d384c617478c7a73a70
[ "Apache-2.0" ]
1
2022-03-18T02:41:11.000Z
2022-03-18T02:41:11.000Z
tests/test_ops/test_merge_cells.py
BIGWangYuDong/mmcv
c46deb0576edaff5cd5a7d384c617478c7a73a70
[ "Apache-2.0" ]
null
null
null
tests/test_ops/test_merge_cells.py
BIGWangYuDong/mmcv
c46deb0576edaff5cd5a7d384c617478c7a73a70
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. """ CommandLine: pytest tests/test_merge_cells.py """ import torch import torch.nn.functional as F from mmcv.ops.merge_cells import (BaseMergeCell, ConcatCell, GlobalPoolingCell, SumCell) def test_sum_cell(): inputs_x = torch.r...
38.059701
79
0.681569
385
2,550
4.202597
0.192208
0.116811
0.074784
0.084054
0.533375
0.533375
0.513597
0.513597
0.508035
0.508035
0
0.048745
0.187451
2,550
66
80
38.636364
0.732143
0.047451
0
0.34
0
0
0.006198
0
0
0
0
0
0.2
1
0.08
false
0
0.06
0
0.14
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98a6de571928281aacce4b2dc2d2f1e1d92b626c
459
py
Python
django_simple_coupons/migrations/0002_alter_coupon_created_field.py
Boober-Inc/django-simple-coupons
b5096a17a2517394d600236e370f2059f70896d7
[ "MIT" ]
null
null
null
django_simple_coupons/migrations/0002_alter_coupon_created_field.py
Boober-Inc/django-simple-coupons
b5096a17a2517394d600236e370f2059f70896d7
[ "MIT" ]
null
null
null
django_simple_coupons/migrations/0002_alter_coupon_created_field.py
Boober-Inc/django-simple-coupons
b5096a17a2517394d600236e370f2059f70896d7
[ "MIT" ]
1
2021-09-02T08:45:49.000Z
2021-09-02T08:45:49.000Z
# Generated by Django 3.0.8 on 2020-07-31 10:00 from django.db import migrations, models import django_simple_coupons.helpers class Migration(migrations.Migration): dependencies = [ ('django_simple_coupons', '0001_initial'), ] operations = [ migrations.AlterField( model_name...
22.95
82
0.64488
51
459
5.627451
0.745098
0.083624
0.132404
0
0
0
0
0
0
0
0
0.055072
0.248366
459
19
83
24.157895
0.776812
0.098039
0
0
1
0
0.128641
0.050971
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
98a754ea36c6f75e3a944d4f376a736140a55916
6,337
py
Python
bot.py
der-test/3dp_helpbot
db379d7738231d0b1879f1ef8a70f7fdfc6b2d47
[ "MIT" ]
null
null
null
bot.py
der-test/3dp_helpbot
db379d7738231d0b1879f1ef8a70f7fdfc6b2d47
[ "MIT" ]
null
null
null
bot.py
der-test/3dp_helpbot
db379d7738231d0b1879f1ef8a70f7fdfc6b2d47
[ "MIT" ]
null
null
null
""" /r/3DPrinting Help Bot V2 Tries to help users by replying to them with helpful links :author: Tim Estermann, @der-test :original author: Connor Henley, @thatging3rkid """ import os import sys import time import pickle import praw import praw.models import datetime import traceback import subprocess import config ...
38.406061
135
0.576456
789
6,337
4.52218
0.340938
0.03083
0.019619
0.033632
0.222253
0.17741
0.141536
0.124159
0.11491
0.066704
0
0.012145
0.311346
6,337
164
136
38.640244
0.805454
0.230551
0
0.11828
0
0.032258
0.325907
0.012519
0
0
0
0
0
1
0.086022
false
0.032258
0.107527
0.053763
0.258065
0.107527
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98a77d126b8fadb75bc96ccc3906c0ff62219f1a
37,989
py
Python
pytorch_nlu/pytorch_sequencelabeling/slLayer.py
dumpmemory/Pytorch-NLU
864fb9acc7751fc51abd3d05d24b5a9a7eab7110
[ "Apache-2.0" ]
115
2021-08-29T04:28:40.000Z
2022-03-29T22:57:48.000Z
pytorch_nlu/pytorch_sequencelabeling/slLayer.py
dumpmemory/Pytorch-NLU
864fb9acc7751fc51abd3d05d24b5a9a7eab7110
[ "Apache-2.0" ]
2
2022-01-14T01:52:07.000Z
2022-03-04T11:40:10.000Z
pytorch_nlu/pytorch_sequencelabeling/slLayer.py
dumpmemory/Pytorch-NLU
864fb9acc7751fc51abd3d05d24b5a9a7eab7110
[ "Apache-2.0" ]
18
2021-09-23T06:41:10.000Z
2022-03-22T04:37:05.000Z
# !/usr/bin/python # -*- coding: utf-8 -*- # @time : 2021/7/24 21:45 # @author : Mo # @function: Layer and Loss from torch import nn import torch import numpy as np __all__ = ["PriorMultiLabelSoftMarginLoss", "LabelSmoothingCrossEntropyV1", "LabelSmoothingCrossEntropy", "MultiL...
45.117577
144
0.587565
4,744
37,989
4.564713
0.113828
0.036574
0.021335
0.021427
0.605449
0.562641
0.525791
0.484784
0.455599
0.448303
0
0.019169
0.295533
37,989
841
145
45.171225
0.789926
0.358867
0
0.416476
0
0
0.030048
0.003641
0
0
0
0
0
1
0.080092
false
0
0.006865
0.004577
0.171625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98a8fc03a807d08d5235921bcc1fa702022d4814
2,075
py
Python
WebServer/possible/Context/Cache.py
yvanlvA/Possible_Web_Server_Frame
2992e2cf512d34efac8bd976b67fbbd46aa8a996
[ "MIT" ]
1
2019-12-16T07:55:55.000Z
2019-12-16T07:55:55.000Z
WebServer/possible/Context/Cache.py
yvanlvA/Possible_Web_Server_Frame
2992e2cf512d34efac8bd976b67fbbd46aa8a996
[ "MIT" ]
null
null
null
WebServer/possible/Context/Cache.py
yvanlvA/Possible_Web_Server_Frame
2992e2cf512d34efac8bd976b67fbbd46aa8a996
[ "MIT" ]
null
null
null
#_*_ coding:utf-8 _*_ import redis class Cache(object): def __init__(self): pool = redis.ConnectionPool(host='127.0.0.1', port=6379, db=1) self.sr = redis.Redis(connection_pool=pool) def Set(self, key, value): '''设置 key 值''' return self.sr.set(key, value) def ...
22.311828
72
0.551325
271
2,075
4.154982
0.306273
0.069272
0.127886
0.024867
0.069272
0
0
0
0
0
0
0.026756
0.279518
2,075
93
73
22.311828
0.726421
0.100241
0
0
0
0
0.038783
0
0
0
0
0
0
1
0.326087
false
0
0.021739
0
0.630435
0.26087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
98a9ddb77716f5ad2a2d263d27421845bd0aff98
1,528
py
Python
models/lossfuns.py
zekunhao1995/DualSDF
177a102b315949bfa59a6ae1c47de52ddbea6eaa
[ "MIT" ]
107
2020-04-07T01:15:14.000Z
2022-03-17T09:32:46.000Z
models/lossfuns.py
zekunhao1995/DualSDF
177a102b315949bfa59a6ae1c47de52ddbea6eaa
[ "MIT" ]
6
2020-05-16T00:41:28.000Z
2021-04-27T16:04:21.000Z
models/lossfuns.py
zekunhao1995/DualSDF
177a102b315949bfa59a6ae1c47de52ddbea6eaa
[ "MIT" ]
17
2020-04-14T10:50:24.000Z
2022-01-20T09:43:08.000Z
import numpy as np # PyTorch import torch import torch.nn as nn import torch.nn.functional as F # Original DeepSDF loss def clamped_l1(pred_dist, gt_dist, trunc=0.1): pred_dist_trunc = torch.clamp(pred_dist, -trunc, trunc) gt_dist_trunc = torch.clamp(gt_dist, -trunc, trunc) loss = torch.abs(pred_dist_trunc...
40.210526
109
0.697644
252
1,528
3.940476
0.206349
0.128902
0.077543
0.056395
0.317221
0.197382
0.058409
0.058409
0.058409
0
0
0.022979
0.174084
1,528
37
110
41.297297
0.763867
0.055628
0
0.107143
0
0
0
0
0
0
0
0
0
1
0.107143
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98aa1c3ed547c9ca4fbd19509bd3c22693bda976
389
py
Python
Section4/appcode/security.py
ntnshrm87/FlaskDevTest
f5af6c57280950eb56b735476ab38953d1c25033
[ "MIT" ]
null
null
null
Section4/appcode/security.py
ntnshrm87/FlaskDevTest
f5af6c57280950eb56b735476ab38953d1c25033
[ "MIT" ]
null
null
null
Section4/appcode/security.py
ntnshrm87/FlaskDevTest
f5af6c57280950eb56b735476ab38953d1c25033
[ "MIT" ]
null
null
null
from werkzeug.security import safe_str_cmp from appcode.models.user import UserModel # Function to authenticate the user def authenticate(username, password): user = UserModel.find_by_username(username) if user and safe_str_cmp(UserModel.password, password): return user def identity(payload): us...
25.933333
59
0.768638
53
389
5.45283
0.490566
0.048443
0.069204
0
0
0
0
0
0
0
0
0
0.159383
389
14
60
27.785714
0.883792
0.084833
0
0
0
0
0.022599
0
0
0
0
0
0
1
0.222222
false
0.222222
0.222222
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
98ab4c8c271cda0de6cc40da611003519c199dfe
5,184
py
Python
rmot/generate_stim/run.py
DrugowitschLab/motion-structure-used-in-perception
d4f0115e154d5e529094383963c8cdaa1386720b
[ "MIT" ]
4
2020-04-03T09:34:29.000Z
2020-10-22T20:36:40.000Z
rmot/generate_stim/run.py
DrugowitschLab/motion-structure-used-in-perception
d4f0115e154d5e529094383963c8cdaa1386720b
[ "MIT" ]
null
null
null
rmot/generate_stim/run.py
DrugowitschLab/motion-structure-used-in-perception
d4f0115e154d5e529094383963c8cdaa1386720b
[ "MIT" ]
1
2020-09-17T09:48:27.000Z
2020-09-17T09:48:27.000Z
import numpy as np import pylab as pl from time import time import logging from motionstruct.functions import init_logging, asciiL, recursive_dict_update from motionstruct.classes import PhiWorld import scipy.io as sio import os # Help string and argument parsing from argparse import ArgumentParser, RawTextHelpFormatt...
35.751724
129
0.637924
715
5,184
4.566434
0.316084
0.030628
0.013476
0.017152
0.077795
0.020214
0.020214
0
0
0
0
0.008706
0.202353
5,184
144
130
36
0.780895
0.167824
0
0.113402
0
0.010309
0.279075
0
0
0
0
0
0
1
0
false
0
0.14433
0
0.14433
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98abff31f9453308cacf5d060c6d452b0b11b3d1
812
py
Python
send_mail.py
cnpopeye/getcode4sis001
4b63e29dd95ae3c85973ede4f7ac75df72d7994e
[ "MIT" ]
6
2017-02-23T01:45:49.000Z
2020-07-07T10:40:57.000Z
send_mail.py
cnpopeye/getcode4sis001
4b63e29dd95ae3c85973ede4f7ac75df72d7994e
[ "MIT" ]
null
null
null
send_mail.py
cnpopeye/getcode4sis001
4b63e29dd95ae3c85973ede4f7ac75df72d7994e
[ "MIT" ]
4
2017-02-23T01:46:09.000Z
2019-11-22T10:59:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys, string, socket import smtplib #导入smtplib和MIMEText import smtplib from email.mime.text import MIMEText from config import mailto_list, mail_host, mail_user, mail_pass, mail_postfix def send_mail(sub,content): me=mail_user+"<"+mail_user+"@"+mail_postfix...
23.882353
77
0.623153
109
812
4.422018
0.53211
0.06639
0.099585
0.06639
0
0
0
0
0
0
0
0.001618
0.238916
812
33
78
24.606061
0.778317
0.073892
0
0.076923
0
0
0.06275
0
0
0
0
0
0
0
null
null
0.076923
0.192308
null
null
0.115385
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
0
2
98acf47b5de02fab44c2cbbf5152e7f879ad95fc
598
py
Python
Interview_Questions/Tencent_20190310/3_card.py
sintocos/CS_Roaming
c85d2c95337a00079160f7f5a8a1b0e31eb5fcb3
[ "BSD-3-Clause" ]
null
null
null
Interview_Questions/Tencent_20190310/3_card.py
sintocos/CS_Roaming
c85d2c95337a00079160f7f5a8a1b0e31eb5fcb3
[ "BSD-3-Clause" ]
null
null
null
Interview_Questions/Tencent_20190310/3_card.py
sintocos/CS_Roaming
c85d2c95337a00079160f7f5a8a1b0e31eb5fcb3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- # description: 小Q有一叠纸牌,一共有n张,从上往下依次编号为1到n。现在小Q要对这叠纸牌反复做以下操作: # 把当前位于顶端的牌扔掉,然后把新的顶端的牌放到新叠牌的底部。 # 小Q会一直操作到只剩下一张牌为止。小Q想知道每次丢掉的牌的编号。 # example: input:7 (输入为一行,只有一个数字n, 1<=n<=1e6) # # output:1 3 5 7 4 2 6 (输出n个用空格间隔的整数,表示每次丢掉的牌的编号) """ @para...
22.148148
66
0.583612
71
598
4.915493
0.71831
0.045845
0.051576
0
0
0
0
0
0
0
0
0.041096
0.267559
598
26
67
23
0.755708
0.571906
0
0
0
0
0.004132
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
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
0
0
0
0
0
0
0
0
1
0
98ae3f1be8211f99c7d8b22fd98d93670a9d293c
10,626
py
Python
scripts/gis_append.py
mwb249/connect-dispatch
c6f17c088bce639daaa9fd1ab04f3edd15dc1887
[ "MIT" ]
null
null
null
scripts/gis_append.py
mwb249/connect-dispatch
c6f17c088bce639daaa9fd1ab04f3edd15dc1887
[ "MIT" ]
null
null
null
scripts/gis_append.py
mwb249/connect-dispatch
c6f17c088bce639daaa9fd1ab04f3edd15dc1887
[ "MIT" ]
null
null
null
""" Connect|DISPATCH: Connecting Computer-Aided Dispatch (CAD) Systems to ArcGIS. The gis_append script is activated when incident_push.p is modified in the watch directory. """ from connectdispatch import fire_ops import logging import os import yaml import pickle import csv import mgrs from datetime import datetime...
48.081448
112
0.616413
1,175
10,626
5.348936
0.233191
0.070008
0.035163
0.025617
0.147335
0.105807
0.078759
0.014638
0.014638
0.014638
0
0.010733
0.272257
10,626
220
113
48.3
0.802017
0.105308
0
0.080745
0
0
0.182577
0.005385
0
0
0
0
0
1
0
false
0.031056
0.080745
0
0.080745
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98ae7cc0bf9eb0897447c4658aa679311159c417
13,723
py
Python
mpitest/test_par_doe.py
naylor-b/OpenMDAO1
49d82f6601b33db9bdcf7d146d030d55e3b62ef4
[ "Apache-2.0" ]
17
2018-01-11T20:13:59.000Z
2022-03-22T03:46:05.000Z
mpitest/test_par_doe.py
naylor-b/OpenMDAO1
49d82f6601b33db9bdcf7d146d030d55e3b62ef4
[ "Apache-2.0" ]
6
2017-10-19T23:14:14.000Z
2020-11-22T17:30:57.000Z
mpitest/test_par_doe.py
naylor-b/OpenMDAO1
49d82f6601b33db9bdcf7d146d030d55e3b62ef4
[ "Apache-2.0" ]
10
2018-04-12T22:13:33.000Z
2020-05-07T10:02:59.000Z
#!/usr/bin/env python """ Running DOE experiments (in parallel)""" from __future__ import print_function import sys import time import traceback import numpy as np import unittest from openmdao.api import IndepVarComp, Component, Group, Problem, \ FullFactorialDriver, AnalysisError from open...
34.221945
103
0.55345
1,627
13,723
4.510756
0.133989
0.047827
0.025753
0.020984
0.762638
0.7298
0.708543
0.701322
0.685925
0.680338
0
0.017133
0.340742
13,723
400
104
34.3075
0.794075
0.060264
0
0.800654
0
0
0.078316
0
0
0
0
0.0025
0.107843
1
0.022876
false
0
0.042484
0
0.084967
0.003268
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
98aecf2b93283481f3008296cbf813e753bfc1b2
453
gyp
Python
binding.gyp
rguiliani/node-roboticscape
39f589574a8a776e55440a2a5276b4d26ab73c4a
[ "MIT" ]
null
null
null
binding.gyp
rguiliani/node-roboticscape
39f589574a8a776e55440a2a5276b4d26ab73c4a
[ "MIT" ]
null
null
null
binding.gyp
rguiliani/node-roboticscape
39f589574a8a776e55440a2a5276b4d26ab73c4a
[ "MIT" ]
null
null
null
{ "targets": [ { "target_name": "roboticscape", "sources": [ "rc-node-bindings.cc" ], "cflags": [ "-Wall", "-g", "-std=c++1y" ], "cflags_cc!": [ "-fno-rtti", "-std=c++14" ], "libraries": [ "-lm", "-lrt", "-lpthread", "-lroboticscape" ], ...
28.3125
74
0.362031
35
453
4.6
0.828571
0.049689
0
0
0
0
0
0
0
0
0
0.010909
0.392936
453
15
75
30.2
0.574545
0
0
0
0
0
0.415011
0
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
98b13a41184605b434409c1a6321ec30bf1c9205
133
py
Python
review_request/admin.py
Portfolio-APPS/web-app
57dc3243fc17d1429f30b9337e2633197505671c
[ "MIT" ]
4
2019-10-09T19:12:46.000Z
2021-07-10T10:59:33.000Z
review_request/admin.py
Portfolio-APPS/web-app
57dc3243fc17d1429f30b9337e2633197505671c
[ "MIT" ]
7
2020-06-05T18:11:24.000Z
2022-03-11T23:20:15.000Z
review_request/admin.py
Portfolio-APPS/web-app
57dc3243fc17d1429f30b9337e2633197505671c
[ "MIT" ]
1
2018-11-19T17:07:38.000Z
2018-11-19T17:07:38.000Z
from django.contrib import admin from .models import ReviewRequest # Register your models here. admin.site.register(ReviewRequest)
19
34
0.819549
17
133
6.411765
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.120301
133
6
35
22.166667
0.931624
0.195489
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
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
98b2b467fe732e9f25c6541b5a2df8198a18a396
1,959
py
Python
api_reflector/api.py
backwardspy/api-reflector
5feacf7d7d549418b31acbf9407602a7659e431d
[ "MIT" ]
4
2021-09-24T13:58:37.000Z
2022-03-01T22:19:41.000Z
api_reflector/api.py
backwardspy/api-reflector
5feacf7d7d549418b31acbf9407602a7659e431d
[ "MIT" ]
10
2021-09-21T16:28:06.000Z
2022-03-25T16:48:36.000Z
api_reflector/api.py
backwardspy/api-reflector
5feacf7d7d549418b31acbf9407602a7659e431d
[ "MIT" ]
2
2021-09-13T13:00:33.000Z
2022-02-24T14:55:46.000Z
""" Provides the top level flask application configuration. """ import sentry_sdk from flask import Flask from flask_dance.contrib.azure import make_azure_blueprint from sentry_sdk.integrations.flask import FlaskIntegration from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration from werkzeug.middleware.p...
28.391304
71
0.721797
234
1,959
5.764957
0.388889
0.033358
0.059303
0.037064
0.035582
0
0
0
0
0
0
0
0.200613
1,959
68
72
28.808824
0.86143
0.088821
0
0
0
0
0.053947
0
0
0
0
0
0
1
0.020833
false
0
0.25
0
0.291667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98b4ddc8a925b89655f9356aeabab166b6a518d9
113
py
Python
erpnext_biotrack/__init__.py
webonyx/erpnext_biotrack
eb2384a6c3fda84a91c81c959f095a5386a89665
[ "MIT" ]
11
2017-05-29T23:35:21.000Z
2022-03-12T04:29:21.000Z
erpnext_biotrack/__init__.py
webonyx/erpnext_biotrack
eb2384a6c3fda84a91c81c959f095a5386a89665
[ "MIT" ]
1
2016-12-11T16:58:36.000Z
2016-12-11T16:58:36.000Z
erpnext_biotrack/__init__.py
webonyx/erpnext_biotrack
eb2384a6c3fda84a91c81c959f095a5386a89665
[ "MIT" ]
14
2016-12-17T11:01:03.000Z
2021-11-01T10:21:45.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals __version__ = "0.0.1" __title__ = "Traceability"
22.6
39
0.716814
14
113
4.857143
0.928571
0
0
0
0
0
0
0
0
0
0
0.040816
0.132743
113
5
40
22.6
0.653061
0.185841
0
0
0
0
0.186813
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
98b4ea7878ad705aedb7d3edb6e3d8b9abcf6219
612
py
Python
fora/models/user.py
WayStudios/fora
1dea5fadeb0e8245a48c547d0c5b260e888583e5
[ "BSD-3-Clause" ]
null
null
null
fora/models/user.py
WayStudios/fora
1dea5fadeb0e8245a48c547d0c5b260e888583e5
[ "BSD-3-Clause" ]
null
null
null
fora/models/user.py
WayStudios/fora
1dea5fadeb0e8245a48c547d0c5b260e888583e5
[ "BSD-3-Clause" ]
null
null
null
# fora # class UserModel # Xu [xw901103@gmail.com] Copyright 2015 from fora.core.model import Model from sqlalchemy import ( Column, Integer, Boolean, String, DateTime ) class UserModel(Model): __tablename__ = 'users' id = Column(Integer, primary_key = True, autoincrement = True) uuid ...
24.48
66
0.687908
71
612
5.788732
0.535211
0.116788
0.131387
0.160584
0
0
0
0
0
0
0
0.020877
0.21732
612
24
67
25.5
0.837161
0.096405
0
0
0
0
0.009107
0
0
0
0
0
0
1
0
false
0.052632
0.105263
0
0.684211
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
1
0
0
1
0
0
3
98b51bf927ecb8711b46f44c5fe353e2b5cb0870
16,590
py
Python
app_common/apptools/io/deserializer.py
KBIbiopharma/app_common
bd913e24741fb070aad058a0f90cbb2c64d8b106
[ "MIT" ]
2
2020-02-12T17:51:13.000Z
2021-05-03T05:36:15.000Z
app_common/apptools/io/deserializer.py
KBIbiopharma/app_common
bd913e24741fb070aad058a0f90cbb2c64d8b106
[ "MIT" ]
30
2020-02-04T21:38:58.000Z
2021-05-25T20:55:01.000Z
app_common/apptools/io/deserializer.py
KBIbiopharma/app_common
bd913e24741fb070aad058a0f90cbb2c64d8b106
[ "MIT" ]
null
null
null
""" Module containing the deserializer api function and supporting classes. The deserializers are versioned and the ones in this module correspond to the latest protocol. Old versions of deserializers that were updated are stored in the legacy_deserializers dict. """ import logging from six import string_types from t...
34.347826
79
0.662929
1,810
16,590
5.91326
0.190608
0.064468
0.022237
0.025227
0.317481
0.279174
0.20555
0.161263
0.139307
0.139307
0
0.000819
0.264436
16,590
482
80
34.419087
0.87626
0.267752
0
0.326923
0
0
0.07387
0
0
0
0
0.002075
0
1
0.103846
false
0.026923
0.05
0.003846
0.403846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98b56a5b7675ee876b08c64bf15a49e2ad1f944e
1,162
py
Python
index.py
garlfin/RPC-Client-Server
d13dc9988e5582ce8ccb396a5aa1db21fc1041c5
[ "MIT" ]
null
null
null
index.py
garlfin/RPC-Client-Server
d13dc9988e5582ce8ccb396a5aa1db21fc1041c5
[ "MIT" ]
null
null
null
index.py
garlfin/RPC-Client-Server
d13dc9988e5582ce8ccb396a5aa1db21fc1041c5
[ "MIT" ]
null
null
null
import res.server.server as server import res.client as client import threading import os import res.server.keyboardlistener address = ("localhost", 8000) dataPath = os.getcwd()+"/res/database/clients/db.json" def startServer(): Server = server.RpcServer(dataPath) Server.initialize(address) KeyboardListe...
33.2
118
0.744406
121
1,162
7.099174
0.429752
0.069849
0.097788
0.074505
0.172293
0
0
0
0
0
0
0.01809
0.143718
1,162
34
119
34.176471
0.845226
0
0
0.076923
0
0
0.08864
0.024957
0
0
0
0
0
1
0.076923
false
0
0.192308
0
0.269231
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
98b5f376bd47906407f7bf31c750c092f24b315d
3,235
py
Python
src/bitwardentools/common.py
mavensk/bitwardentools
b000a8941ef8d07fbe1a5eb191896638d29bf1b6
[ "BSD-3-Clause" ]
9
2021-03-08T20:36:19.000Z
2022-03-07T21:52:48.000Z
src/bitwardentools/common.py
mavensk/bitwardentools
b000a8941ef8d07fbe1a5eb191896638d29bf1b6
[ "BSD-3-Clause" ]
10
2021-04-16T13:27:17.000Z
2022-02-17T11:54:58.000Z
src/bitwardentools/common.py
mavensk/bitwardentools
b000a8941ef8d07fbe1a5eb191896638d29bf1b6
[ "BSD-3-Clause" ]
6
2021-04-18T15:01:48.000Z
2022-03-06T20:12:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import datetime import enum import logging import os import re import smtplib from email.mime.text import MIMEText from http.client import HTTPConnection class VAULTIER_SECRET(enum.IntEnum): secret = 20...
22.943262
83
0.642658
421
3,235
4.821853
0.413302
0.022167
0.029557
0.035468
0.047291
0
0
0
0
0
0
0.00873
0.22102
3,235
140
84
23.107143
0.796825
0.021638
0
0.072727
0
0
0.228653
0.007906
0
0
0
0
0
1
0.045455
false
0.063636
0.081818
0.009091
0.209091
0.009091
0
0
0
null
0
0
0
0
0
0
0
0
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
98b770f8e0999760f77965903c3fef662ce6f394
88
py
Python
example_snippets/multimenus_snippets/Snippets/SciPy/Integration and ODE solvers/Integrate given fixed samples/Trapezoidal rule to compute integral from samples.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Integration and ODE solvers/Integrate given fixed samples/Trapezoidal rule to compute integral from samples.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Integration and ODE solvers/Integrate given fixed samples/Trapezoidal rule to compute integral from samples.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
1
2021-02-04T04:51:48.000Z
2021-02-04T04:51:48.000Z
x = np.linspace(1, 5, num=100) y = 3*x**2 + 1 integrate.trapz(y, x) # Exact value is 128
29.333333
42
0.625
20
88
2.75
0.8
0
0
0
0
0
0
0
0
0
0
0.152778
0.181818
88
3
42
29.333333
0.611111
0.204545
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
98b84f2d00e3ba83b7f11923d13f3649921ba036
632
py
Python
generated-libraries/python/netapp/net/device_capability.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/net/device_capability.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/net/device_capability.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
class DeviceCapability(basestring): """ router|trans-bridge|source-route-bridge|switch|host|igmp|repeater|phone Possible values: <ul> <li> "router" - Router, <li> "trans_bridge" - Trans Bridge, <li> "source_route_bridge" - Source Route Bridge, <li> "switch...
30.095238
75
0.474684
56
632
5.267857
0.446429
0.111864
0.172881
0.155932
0
0
0
0
0
0
0
0
0.400316
632
20
76
31.6
0.778364
0.699367
0
0
0
0
0.130769
0
0
0
0
0
0
1
0.25
true
0
0
0.25
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
1
1
0
0
4
98b885f1b9eb2153dd880f99bd878e13ddc4ca0e
81
py
Python
naeval/norm/datasets/__init__.py
sdspieg/naeval
52c4a508bf212b95d4e610cfe1b5e23b8ca94d2f
[ "MIT" ]
36
2020-03-22T09:37:10.000Z
2022-01-17T14:49:30.000Z
naeval/norm/datasets/__init__.py
sdspieg/naeval
52c4a508bf212b95d4e610cfe1b5e23b8ca94d2f
[ "MIT" ]
11
2020-03-25T09:39:45.000Z
2020-08-16T05:37:02.000Z
naeval/norm/datasets/__init__.py
sdspieg/naeval
52c4a508bf212b95d4e610cfe1b5e23b8ca94d2f
[ "MIT" ]
6
2020-05-16T05:52:04.000Z
2022-01-16T06:45:29.000Z
from .bsnlp import load_bsnlp # noqa from .persons import load_persons # noqa
20.25
41
0.765432
12
81
5
0.5
0.333333
0
0
0
0
0
0
0
0
0
0
0.185185
81
3
42
27
0.909091
0.111111
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
98b9762881728e3e8b8e279e7a738fdda5199b56
19,776
py
Python
seaice/pretty.py
cjpatton/seaice
103f069679415be104a08f3b11b1b6415a440659
[ "BSD-3-Clause" ]
null
null
null
seaice/pretty.py
cjpatton/seaice
103f069679415be104a08f3b11b1b6415a440659
[ "BSD-3-Clause" ]
null
null
null
seaice/pretty.py
cjpatton/seaice
103f069679415be104a08f3b11b1b6415a440659
[ "BSD-3-Clause" ]
null
null
null
# pretty.py - Pretty formatting for db table rows. There are routines defined # here for use in a terminal as well as on the web. # # Copyright (c) 2013, Christopher Patton, all rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the foll...
39.238095
143
0.621106
2,635
19,776
4.60038
0.196584
0.021036
0.009074
0.010889
0.456525
0.409586
0.388302
0.342353
0.31546
0.305973
0
0.012363
0.206513
19,776
503
144
39.316103
0.760133
0.102043
0
0.299639
0
0.032491
0.483645
0.153323
0
0
0
0.001988
0
0
null
null
0.00361
0.01083
null
null
0.072202
0
0
0
null
0
0
0
0
0
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
98b9e22db3260d4dd56031107290c4fa484ebf3e
5,016
py
Python
tools/uavcan_ip_interface.py
greck2908/robot-software
2e1e8177148a089e8883967375dde7f8ed3d878b
[ "MIT" ]
40
2016-10-04T19:59:22.000Z
2020-12-25T18:11:35.000Z
tools/uavcan_ip_interface.py
greck2908/robot-software
2e1e8177148a089e8883967375dde7f8ed3d878b
[ "MIT" ]
209
2016-09-21T21:54:28.000Z
2022-01-26T07:42:37.000Z
tools/uavcan_ip_interface.py
greck2908/robot-software
2e1e8177148a089e8883967375dde7f8ed3d878b
[ "MIT" ]
21
2016-11-07T14:40:16.000Z
2021-11-02T09:53:37.000Z
#!/usr/bin/env python3 """ UAVCAN to TUN network adapter. """ import argparse import os import struct import sys import fcntl import uavcan import subprocess import time import logging from queue import Queue, Empty import threading DSDL_DIR = os.path.join(os.path.dirname(__file__), "../uavcan_data_types/cvra") def...
26.125
87
0.621212
681
5,016
4.397944
0.372981
0.015025
0.028381
0.02404
0.100167
0.05409
0.044741
0.016694
0.016694
0
0
0.018443
0.264952
5,016
191
88
26.26178
0.79387
0.111842
0
0.099237
0
0
0.129018
0.005659
0
0
0.004301
0
0.007634
1
0.068702
false
0.007634
0.083969
0
0.198473
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
98ba753b081a3ea187c35cbd90efdcf17178d65c
840
py
Python
gpx_builder.py
jvicu2001/GGeoTrace
7796daaa505586cf7b867e321aa528f5dd64a8c6
[ "MIT" ]
null
null
null
gpx_builder.py
jvicu2001/GGeoTrace
7796daaa505586cf7b867e321aa528f5dd64a8c6
[ "MIT" ]
null
null
null
gpx_builder.py
jvicu2001/GGeoTrace
7796daaa505586cf7b867e321aa528f5dd64a8c6
[ "MIT" ]
null
null
null
from xml.etree import ElementTree def gpx_builder(data): gpx = ElementTree.Element('gpx') tree = ElementTree.ElementTree(gpx) gpx.set('version', '1.0') gpxname = ElementTree.SubElement(gpx, 'name') gpxname.text = 'PLACEHOLDER' rte = ElementTree.SubElement(gpx, 'rte') for routepoint in ran...
33.6
113
0.653571
97
840
5.587629
0.43299
0.193727
0.088561
0
0
0
0
0
0
0
0
0.002954
0.194048
840
24
114
35
0.79616
0
0
0
0
0
0.132143
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f250990d797b7976e2e10bec45f242af50a0328
5,050
py
Python
statefun-examples/statefun-python-walkthrough-example/run-example.py
authuir/flink-statefun
ca16055de31737a8a0073b8f9083268fc24b9828
[ "Apache-2.0" ]
1
2020-05-27T03:38:36.000Z
2020-05-27T03:38:36.000Z
statefun-examples/statefun-python-walkthrough-example/run-example.py
authuir/flink-statefun
ca16055de31737a8a0073b8f9083268fc24b9828
[ "Apache-2.0" ]
null
null
null
statefun-examples/statefun-python-walkthrough-example/run-example.py
authuir/flink-statefun
ca16055de31737a8a0073b8f9083268fc24b9828
[ "Apache-2.0" ]
null
null
null
################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this...
28.531073
116
0.631881
565
5,050
5.530973
0.309735
0.03872
0.0736
0.0416
0.17248
0.17248
0.09728
0.09728
0.09728
0.09728
0
0.004919
0.194851
5,050
176
117
28.693182
0.76365
0.204356
0
0.165138
0
0
0.099087
0.040417
0
0
0
0
0
1
0.201835
false
0
0.06422
0.018349
0.348624
0.027523
0
0
0
null
0
0
0
0
0
0
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
7f268c8fd92f2096679b4eb0bada219d945e28f0
1,428
py
Python
python/recognize.py
qcumba0/voicekit-examples
43eaf1800674ac82d7211dfea1ca0fb85affd6d1
[ "Apache-2.0" ]
null
null
null
python/recognize.py
qcumba0/voicekit-examples
43eaf1800674ac82d7211dfea1ca0fb85affd6d1
[ "Apache-2.0" ]
null
null
null
python/recognize.py
qcumba0/voicekit-examples
43eaf1800674ac82d7211dfea1ca0fb85affd6d1
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 from tinkoff.cloud.stt.v1 import stt_pb2_grpc from auth import authorization_metadata from audio import audio_open_read from common import build_recognition_request, make_channel, print_recognition_response, BaseRecognitionParser from google.protobuf.json_format import MessageToDict from tinkof...
42
117
0.72619
176
1,428
5.636364
0.522727
0.024194
0.045363
0.038306
0.066532
0.066532
0.066532
0.066532
0
0
0
0.006891
0.186975
1,428
33
118
43.272727
0.847545
0.059524
0
0
0
0
0.076923
0
0
0
0
0
0
1
0.041667
false
0
0.25
0
0.291667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f27580713d4e95daa65183a504423139e12ff45
33,823
py
Python
tests/integration/test_web.py
raiden-network/raiden-wizard
faea0f3075b748b6a1e204518e84b0fd1950d5b5
[ "MIT" ]
9
2020-05-27T12:19:29.000Z
2022-03-20T05:55:36.000Z
tests/integration/test_web.py
raiden-network/raiden-wizard
faea0f3075b748b6a1e204518e84b0fd1950d5b5
[ "MIT" ]
178
2020-02-26T17:03:22.000Z
2021-12-28T14:21:00.000Z
tests/integration/test_web.py
raiden-network/raiden-wizard
faea0f3075b748b6a1e204518e84b0fd1950d5b5
[ "MIT" ]
9
2020-03-30T13:35:28.000Z
2022-03-01T17:24:20.000Z
import asyncio import json import os from unittest.mock import patch import pytest from eth_utils import encode_hex, to_canonical_address, to_checksum_address from tornado.httpclient import HTTPRequest from tornado.websocket import websocket_connect from raiden_installer import load_settings from raiden_installer.acc...
36.644637
98
0.635958
3,772
33,823
5.379109
0.072375
0.032331
0.031543
0.0414
0.767866
0.737753
0.714736
0.683144
0.6483
0.6207
0
0.011831
0.265293
33,823
922
99
36.684382
0.804668
0.00139
0
0.6326
0
0
0.138928
0.077429
0
0
0
0
0.15912
1
0.071151
false
0.020699
0.029754
0.01423
0.121604
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
7f281eff9319b1d52f1e904c4e69206d883b8adc
3,872
py
Python
coral/reglib.py
kdberends/coral
637b1a4756f09841b71da7520754fc15d7fac72c
[ "MIT" ]
null
null
null
coral/reglib.py
kdberends/coral
637b1a4756f09841b71da7520754fc15d7fac72c
[ "MIT" ]
1
2019-04-15T09:52:59.000Z
2019-04-15T09:52:59.000Z
coral/reglib.py
kdberends/coral
637b1a4756f09841b71da7520754fc15d7fac72c
[ "MIT" ]
1
2019-08-17T13:36:02.000Z
2019-08-17T13:36:02.000Z
""" Regression library """ # ============================================================================= # Imports # ============================================================================= import theano import numpy as np import pymc3 as pm import random from coral.statsfunc import get_empirical_cdf, empirica...
33.669565
112
0.557593
473
3,872
4.448203
0.340381
0.022814
0.039924
0.022814
0.157795
0.13308
0.064639
0
0
0
0
0.024573
0.243285
3,872
114
113
33.964912
0.693515
0.26188
0
0.036364
0
0
0.042929
0
0
0
0
0.008772
0
1
0.054545
false
0
0.109091
0
0.218182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f2837056134a8675c72391b0e3336ba0c0c4211
26,367
py
Python
pysit/optimization/optimization.py
zfang-slim/PysitForPython3
dc60537b26018e28d92b7a956a2cf96775f0bdf9
[ "BSD-3-Clause" ]
null
null
null
pysit/optimization/optimization.py
zfang-slim/PysitForPython3
dc60537b26018e28d92b7a956a2cf96775f0bdf9
[ "BSD-3-Clause" ]
null
null
null
pysit/optimization/optimization.py
zfang-slim/PysitForPython3
dc60537b26018e28d92b7a956a2cf96775f0bdf9
[ "BSD-3-Clause" ]
1
2020-06-13T07:13:07.000Z
2020-06-13T07:13:07.000Z
import sys import time import copy import numpy as np import scipy.io as sio __all__=['OptimizationBase'] __docformat__ = "restructuredtext en" class OptimizationBase(object): """ Base class for descent-like optimization routines. These are stateful algorithms. The current step, as well as the step inde...
39.120178
222
0.592938
3,046
26,367
4.980302
0.172685
0.009229
0.014568
0.00969
0.403032
0.350956
0.326632
0.294199
0.284047
0.265326
0
0.010399
0.325255
26,367
673
223
39.178306
0.84228
0.360906
0
0.402556
0
0.003195
0.073472
0
0
0
0
0
0
1
0.054313
false
0.01278
0.015974
0
0.115016
0.041534
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f289f79fa5cf6d1164d782245286d6f16f90388
7,091
py
Python
dashboard.py
fschw/dashoard
6583d8bdfd1f14d40607df121832c5ceb6cbaa81
[ "Apache-2.0" ]
null
null
null
dashboard.py
fschw/dashoard
6583d8bdfd1f14d40607df121832c5ceb6cbaa81
[ "Apache-2.0" ]
null
null
null
dashboard.py
fschw/dashoard
6583d8bdfd1f14d40607df121832c5ceb6cbaa81
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- import os import sys import logging import ccs811LIBRARY logging.basicConfig(format='%(asctime)s %(levelname)-8s %(message)s', level=logging.DEBUG, datefmt='%Y-%m-%d %H:%M:%S') picdir = os.path.join(os.path.join(os.path.join(os.path.join(os.path.dirname(os.path.realpath(__fil...
37.718085
206
0.626287
940
7,091
4.655319
0.311702
0.070384
0.025137
0.027422
0.280165
0.249543
0.227377
0.1883
0.1883
0.1883
0
0.05788
0.217882
7,091
187
207
37.919786
0.730436
0.052038
0
0.113208
0
0.009434
0.198966
0.027719
0
0
0.002114
0
0
1
0.018868
false
0
0.150943
0
0.198113
0.028302
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f28a7ab38e9b7eef62b3b54becbde2c0fcfdf3c
7,025
py
Python
polyply/src/polyply_parser.py
jan-stevens/polyply_1.0
17578a0ea546584164722129f0d718a5c9533a1a
[ "Apache-2.0" ]
34
2020-07-23T14:50:22.000Z
2022-03-17T02:03:41.000Z
polyply/src/polyply_parser.py
jan-stevens/polyply_1.0
17578a0ea546584164722129f0d718a5c9533a1a
[ "Apache-2.0" ]
136
2020-06-12T15:06:18.000Z
2022-03-31T11:31:09.000Z
polyply/src/polyply_parser.py
jan-stevens/polyply_1.0
17578a0ea546584164722129f0d718a5c9533a1a
[ "Apache-2.0" ]
7
2020-07-30T10:53:47.000Z
2022-03-11T19:27:57.000Z
# Copyright 2020 University of Groningen # # 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 i...
39.24581
95
0.601423
831
7,025
4.932611
0.277978
0.026836
0.020493
0.015614
0.120273
0.083923
0.070749
0.057087
0
0
0
0.004791
0.316584
7,025
178
96
39.466292
0.84899
0.186904
0
0.110169
0
0
0.059826
0
0
0
0
0
0
1
0.084746
false
0
0.059322
0
0.186441
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f28c2e82480941f199ea350974100507d9d1569
8,138
py
Python
timeflux/nodes/query.py
jonathanjfshaw/timeflux
a17100bce754bd6d85d2c9c65a95bfcc0e7fe219
[ "MIT" ]
null
null
null
timeflux/nodes/query.py
jonathanjfshaw/timeflux
a17100bce754bd6d85d2c9c65a95bfcc0e7fe219
[ "MIT" ]
null
null
null
timeflux/nodes/query.py
jonathanjfshaw/timeflux
a17100bce754bd6d85d2c9c65a95bfcc0e7fe219
[ "MIT" ]
null
null
null
import numpy as np from timeflux.core.exceptions import WorkerInterrupt from timeflux.core.node import Node class SelectRange(Node): """Select a subset of the given data along vertical (index) or horizontal (columns) axis. Attributes: i (Port): default data input, expects DataFrame with eventually ...
35.229437
188
0.52986
1,087
8,138
3.912604
0.185833
0.024453
0.024453
0.030567
0.628968
0.597461
0.568775
0.536798
0.51352
0.485775
0
0.166347
0.359548
8,138
230
189
35.382609
0.649655
0.635291
0
0.613333
0
0
0
0
0
0
0
0
0
1
0.12
false
0
0.04
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
7f2a45cc54e29cb7e353983ef17c8b140cf637fe
2,205
py
Python
tools/report-converter/codechecker_report_converter/analyzers/tslint/analyzer_result.py
hyker/codechecker
8ddb9bd1aa037d4499a2be8d35e9c1d470163baf
[ "Apache-2.0" ]
1
2021-04-08T16:51:45.000Z
2021-04-08T16:51:45.000Z
tools/report-converter/codechecker_report_converter/analyzers/tslint/analyzer_result.py
hyker/codechecker
8ddb9bd1aa037d4499a2be8d35e9c1d470163baf
[ "Apache-2.0" ]
1
2021-11-30T10:43:49.000Z
2021-11-30T10:43:49.000Z
tools/report-converter/codechecker_report_converter/analyzers/tslint/analyzer_result.py
hyker/codechecker
8ddb9bd1aa037d4499a2be8d35e9c1d470163baf
[ "Apache-2.0" ]
null
null
null
# ------------------------------------------------------------------------- # # Part of the CodeChecker project, under the Apache License v2.0 with # LLVM Exceptions. See LICENSE for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # # ---------------------------------------------------...
32.426471
79
0.565079
249
2,205
4.86747
0.437751
0.066007
0.069307
0.024752
0.117162
0
0
0
0
0
0
0.004367
0.273016
2,205
67
80
32.910448
0.751716
0.187755
0
0.073171
0
0
0.156321
0
0
0
0
0
0
1
0.02439
false
0
0.146341
0
0.341463
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f2adbf9ea8e7eead366ec2e27cc570cfa8e157e
364
py
Python
executaveis/01-desconto.py
pro-pedropaulo/estudo_python
715a63c72d8b4ea2449e74617400f2bf37b19951
[ "MIT" ]
null
null
null
executaveis/01-desconto.py
pro-pedropaulo/estudo_python
715a63c72d8b4ea2449e74617400f2bf37b19951
[ "MIT" ]
null
null
null
executaveis/01-desconto.py
pro-pedropaulo/estudo_python
715a63c72d8b4ea2449e74617400f2bf37b19951
[ "MIT" ]
null
null
null
nome = input('Digite o nome da pessoa: ') salario = float(input('Digite o Salario da pessoa: ')) desconto = float(input('Digite a porcertagem de desconto do salario: ')) salario_final = salario - (salario / desconto) print('{}, tem o Salário de R${:.2f}, mas houve desconto de {}%, o salario final do mes foi R${:.2f}'....
60.666667
146
0.708791
55
364
4.654545
0.436364
0.128906
0.09375
0
0
0
0
0
0
0
0
0.00639
0.14011
364
6
146
60.666667
0.811502
0
0
0
0
0.2
0.523288
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7f2b5175127736ab4e0d2ce18a1b4d34dfabbaf8
5,040
py
Python
FetchPatents.py
tymrail/PatentFPO
530f73148a8249cdc146ca2c3cedef1995df998e
[ "MIT" ]
null
null
null
FetchPatents.py
tymrail/PatentFPO
530f73148a8249cdc146ca2c3cedef1995df998e
[ "MIT" ]
null
null
null
FetchPatents.py
tymrail/PatentFPO
530f73148a8249cdc146ca2c3cedef1995df998e
[ "MIT" ]
1
2020-05-21T11:42:02.000Z
2020-05-21T11:42:02.000Z
import requests from bs4 import BeautifulSoup import sqlite3 import re from OperateDatabase import * import socket import random import time socket.setdefaulttimeout(1000) base_url = 'http://www.freepatentsonline.com' additional_url = ['/result.html?p=', '&sort=relevance&srch=top&query_txt=AN%2F%22...
38.769231
131
0.591667
735
5,040
3.944218
0.278912
0.008969
0.037254
0.044153
0.393929
0.328389
0.307347
0.28803
0.279407
0.266989
0
0.087909
0.248413
5,040
129
132
39.069767
0.677402
0.07004
0
0.204082
0
0.142857
0.393713
0.009196
0
0
0
0
0
1
0.040816
false
0
0.081633
0.010204
0.132653
0.040816
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f2bb676e5135ebdf8b615c0ce9ba1c6a5bc6581
4,505
py
Python
test/observer/test_observer.py
a1trl9/MQBench
279c5a9e6e48778fe2913ba708b53ab9c2b0520c
[ "Apache-2.0" ]
51
2021-08-20T01:28:50.000Z
2021-09-22T05:34:39.000Z
test/observer/test_observer.py
a1trl9/MQBench
279c5a9e6e48778fe2913ba708b53ab9c2b0520c
[ "Apache-2.0" ]
7
2021-08-24T09:46:31.000Z
2021-09-22T05:43:06.000Z
test/observer/test_observer.py
a1trl9/MQBench
279c5a9e6e48778fe2913ba708b53ab9c2b0520c
[ "Apache-2.0" ]
6
2021-08-20T09:18:48.000Z
2021-09-19T04:35:13.000Z
import torch import unittest from mqbench.prepare_by_platform import prepare_by_platform, BackendType from mqbench.convert_deploy import convert_deploy from mqbench.utils.state import enable_calibration, enable_quantization class TestObserver(unittest.TestCase): def test_quantile_observer(self): model_to...
45.969388
113
0.685905
480
4,505
6.04375
0.139583
0.11203
0.077559
0.079283
0.869355
0.869355
0.869355
0.869355
0.869355
0.869355
0
0.014205
0.218646
4,505
98
114
45.969388
0.809943
0
0
0.747253
0
0
0.170661
0
0
0
0
0
0
1
0.054945
false
0
0.054945
0
0.120879
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
7f2bf725dc4bfa7321dd8446ecf83336132ad3f8
3,005
py
Python
ib_trading_calendars/status.py
alexanu/ib-trading-calendars
5a92770d106542968e856aa54ae48d48b306d7f3
[ "Apache-2.0" ]
9
2019-02-04T19:42:12.000Z
2021-08-04T18:36:43.000Z
ib_trading_calendars/status.py
alexanu/ib-trading-calendars
5a92770d106542968e856aa54ae48d48b306d7f3
[ "Apache-2.0" ]
1
2020-03-12T17:32:38.000Z
2020-03-12T17:32:38.000Z
ib_trading_calendars/status.py
alexanu/ib-trading-calendars
5a92770d106542968e856aa54ae48d48b306d7f3
[ "Apache-2.0" ]
8
2019-02-04T21:08:38.000Z
2021-08-04T18:36:45.000Z
#!/usr/bin/env python # Copyright 2019 QuantRocket LLC - 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 req...
36.646341
85
0.706156
429
3,005
4.815851
0.39627
0.063892
0.040658
0.055663
0.184414
0.150532
0.113262
0.07938
0.07938
0.040658
0
0.011642
0.199667
3,005
81
86
37.098765
0.847401
0.349418
0
0.045455
0
0
0.091241
0
0
0
0
0
0
1
0.045455
false
0
0.113636
0
0.181818
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f2c6071c31a2ed0bd4232d7ae1073c3257e303e
8,520
py
Python
src/data_preparation/data_prep.py
christianhilscher/dynasim
881cfd3bd9d4b9291d289d703ec7da4a617a479a
[ "MIT" ]
null
null
null
src/data_preparation/data_prep.py
christianhilscher/dynasim
881cfd3bd9d4b9291d289d703ec7da4a617a479a
[ "MIT" ]
2
2020-08-06T10:01:59.000Z
2021-05-17T12:14:44.000Z
src/data_preparation/data_prep.py
christianhilscher/dynasim
881cfd3bd9d4b9291d289d703ec7da4a617a479a
[ "MIT" ]
2
2020-08-19T06:52:09.000Z
2021-12-10T08:57:54.000Z
import numpy as np import pandas as pd def SOEP_to_df_old(dataf): """ This function takes the SOEP data as a dataframe and returns the the harmonized data such that the rest of the code can work with it. It also renames the columns etc """ dataf = dataf.copy() # Checking whether some adjustments ...
32.643678
169
0.617019
1,067
8,520
4.761949
0.206186
0.098406
0.061405
0.056091
0.301122
0.194844
0.096635
0.030703
0
0
0
0.013176
0.21608
8,520
261
170
32.643678
0.747567
0.061737
0
0.179191
0
0
0.202815
0.002639
0
0
0
0
0
1
0.104046
false
0
0.011561
0
0.219653
0.00578
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f2cd64976be46ed25ddd2ae11ac7035e1a5d54f
1,404
py
Python
Tracker_LoRa/test_sdb_sof/main.py
pbaron2/tracker-lora
e713ae090748c4416c4c689b1c2a2dcc7cc44a11
[ "MIT" ]
null
null
null
Tracker_LoRa/test_sdb_sof/main.py
pbaron2/tracker-lora
e713ae090748c4416c4c689b1c2a2dcc7cc44a11
[ "MIT" ]
null
null
null
Tracker_LoRa/test_sdb_sof/main.py
pbaron2/tracker-lora
e713ae090748c4416c4c689b1c2a2dcc7cc44a11
[ "MIT" ]
null
null
null
from network import LoRa import socket import time modes=[LoRa.LORA] coding=[LoRa.CODING_4_5,LoRa.CODING_4_6,LoRa.CODING_4_7,LoRa.CODING_4_8] pub=[True,False] for k in modes: for i in range(0,16): for j in range(0,6): for l in coding: for p in pub: #LoRa ...
28.653061
123
0.421652
156
1,404
3.711538
0.435897
0.086356
0.075993
0.02418
0
0
0
0
0
0
0
0.05984
0.464387
1,404
48
124
29.25
0.710106
0.075499
0
0
0
0
0.048799
0
0
0
0
0
0
1
0
false
0
0.107143
0
0.107143
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f2d05b6fae820e8bd03cf3afe4d2c069a1af0b6
731
py
Python
ansible/filter_plugins/decrypt.py
10sr/junks
638f75a2b592e60460f1bb680de1de8ef6a99519
[ "CC0-1.0" ]
null
null
null
ansible/filter_plugins/decrypt.py
10sr/junks
638f75a2b592e60460f1bb680de1de8ef6a99519
[ "CC0-1.0" ]
24
2016-07-19T04:59:00.000Z
2021-09-30T02:10:06.000Z
ansible/filter_plugins/decrypt.py
10sr/junks
638f75a2b592e60460f1bb680de1de8ef6a99519
[ "CC0-1.0" ]
1
2018-05-21T06:35:00.000Z
2018-05-21T06:35:00.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import base64 from cryptography.fernet import Fernet import hashlib def _enc(data, key): key_32 = base64.urlsafe_b64encode(hashlib.sha512(key).digest()[:32]) f = Fernet(key_32) return f.encrypt(data) def _dec(b, key): key_32 = base64.urlsafe_b64encode(...
20.885714
74
0.645691
104
731
4.346154
0.423077
0.044248
0.066372
0.061947
0.323009
0.323009
0.323009
0.323009
0.323009
0.323009
0
0.060914
0.191518
731
34
75
21.5
0.703892
0.058824
0
0.190476
0
0
0.05102
0
0
0
0
0
0
1
0.190476
false
0
0.190476
0.095238
0.619048
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7f2e724ea35fff6427fd9fe2bf26c971384b0524
1,268
py
Python
setup.py
lnknguyen/niimpy
2aebd1d59b0b7562103128d5eaff90f20091f6fd
[ "MIT" ]
null
null
null
setup.py
lnknguyen/niimpy
2aebd1d59b0b7562103128d5eaff90f20091f6fd
[ "MIT" ]
null
null
null
setup.py
lnknguyen/niimpy
2aebd1d59b0b7562103128d5eaff90f20091f6fd
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages from os.path import join, dirname with open("README.md", "r") as fh: long_description = fh.read() version_ns = { } exec(open('niimpy/_version.py').read(), version_ns) version = version_ns['__version__'] del version_ns requirementstxt = join(dirna...
32.512821
86
0.67429
141
1,268
5.87234
0.602837
0.072464
0.031401
0.072464
0
0
0
0
0
0
0
0.004798
0.178233
1,268
38
87
33.368421
0.789827
0.064669
0
0
0
0
0.309122
0.018581
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f30a1684896d53f541a481dace286d253b53f59
329
py
Python
core/interface/action.py
caostorm/smng
f1cff4010a0645ae8e1182cd3c961d97cecf4a6e
[ "MIT" ]
null
null
null
core/interface/action.py
caostorm/smng
f1cff4010a0645ae8e1182cd3c961d97cecf4a6e
[ "MIT" ]
null
null
null
core/interface/action.py
caostorm/smng
f1cff4010a0645ae8e1182cd3c961d97cecf4a6e
[ "MIT" ]
1
2019-06-26T13:05:45.000Z
2019-06-26T13:05:45.000Z
#coding=utf-8 from abc import ABCMeta, abstractmethod class server_action(object): __metaclass__ = ABCMeta def __init__(self): pass @abstractmethod def description(self): pass @abstractmethod def parse_parameters(self): pass @abstractmethod def run(self): ...
16.45
39
0.644377
34
329
5.941176
0.617647
0.158416
0.326733
0.371287
0
0
0
0
0
0
0
0.004255
0.285714
329
20
40
16.45
0.855319
0.036474
0
0.5
0
0
0
0
0
0
0
0
0
1
0.285714
false
0.285714
0.071429
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
4
7f311571dd0bf0894a02e05b6fff48b29b3ac83a
430
py
Python
generator/model.py
AntonyMoes/cyberhelper
125805b19190250968bf6deef836a600e8b25af6
[ "MIT" ]
1
2019-08-19T18:48:52.000Z
2019-08-19T18:48:52.000Z
generator/model.py
AntonyMoes/cyberkotsenko
125805b19190250968bf6deef836a600e8b25af6
[ "MIT" ]
18
2019-08-18T14:56:58.000Z
2019-08-30T18:07:06.000Z
generator/model.py
AntonyMoes/cyberhelper
125805b19190250968bf6deef836a600e8b25af6
[ "MIT" ]
1
2019-08-19T19:45:36.000Z
2019-08-19T19:45:36.000Z
from keras.models import Sequential from keras.layers import Dense from keras.layers import LSTM from keras.optimizers import RMSprop def get_model(maxlen, chars_num): model = Sequential() model.add(LSTM(128, input_shape=(maxlen, chars_num))) model.add(Dense(chars_num, activation='softmax')) optimize...
28.666667
71
0.75814
58
430
5.517241
0.534483
0.1125
0.09375
0.13125
0
0
0
0
0
0
0
0.01626
0.14186
430
14
72
30.714286
0.850949
0
0
0
0
0
0.072093
0.055814
0
0
0
0
0
1
0.090909
false
0
0.363636
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
1
0
1
0
0
2
7f3143b48ee084919d22e8532883574dc131cbba
4,374
py
Python
robovat/io/hdf5_utils.py
leobxpan/robovat
0d360c34c677cf018c4daab0b8e758943ae1d2c1
[ "MIT" ]
62
2020-04-08T11:26:24.000Z
2021-09-06T02:45:53.000Z
robovat/io/hdf5_utils.py
leobxpan/robovat
0d360c34c677cf018c4daab0b8e758943ae1d2c1
[ "MIT" ]
7
2020-04-12T13:10:10.000Z
2022-03-12T00:15:03.000Z
robovat/io/hdf5_utils.py
leobxpan/robovat
0d360c34c677cf018c4daab0b8e758943ae1d2c1
[ "MIT" ]
17
2020-04-12T17:37:01.000Z
2021-09-07T01:51:46.000Z
"""File IO utilities using HDF5. The data element saved in HDF5 should be a dictionary. The types of each value should be in HDF5_DATA_TYPES. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import h5py import numpy as np import uuid import traceback d...
30.587413
79
0.518747
521
4,374
4.214971
0.241843
0.021858
0.032787
0.03643
0.17623
0.119308
0.052823
0.052823
0
0
0
0.012263
0.384774
4,374
142
80
30.802817
0.80379
0.238455
0
0.166667
0
0
0.060309
0
0
0
0
0
0.025641
1
0.076923
false
0
0.089744
0
0.192308
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f33ed65f4ac4089a0724c48004c99fbc453b64f
344
py
Python
tests/python/test_sparse_basics.py
ericjang/taichi
0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2
[ "MIT" ]
null
null
null
tests/python/test_sparse_basics.py
ericjang/taichi
0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2
[ "MIT" ]
null
null
null
tests/python/test_sparse_basics.py
ericjang/taichi
0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2
[ "MIT" ]
null
null
null
import taichi as ti @ti.program_test def test_while(): x = ti.var(ti.f32) s = ti.var(ti.i32) n = 128 @ti.layout def place(): ti.root.dense(ti.i, n).bitmasked().dense(ti.i, n).place(x) ti.root.place(s) @ti.kernel def func(): for i in x: ti.atomic_add(s[None], 1) x[0] = 1 func() ...
14.333333
62
0.572674
65
344
2.984615
0.476923
0.046392
0.072165
0.092784
0
0
0
0
0
0
0
0.05
0.244186
344
23
63
14.956522
0.696154
0
0
0
0
0
0
0
0
0
0
0
0.058824
1
0.176471
false
0
0.058824
0
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
7f34018b23497a72c128d5bbb73251d18c61b077
2,752
py
Python
idea.py
szandala/autoencoder
3e9e41fa3f0f69a9e12acfa661e0de05bf190aeb
[ "MIT" ]
null
null
null
idea.py
szandala/autoencoder
3e9e41fa3f0f69a9e12acfa661e0de05bf190aeb
[ "MIT" ]
null
null
null
idea.py
szandala/autoencoder
3e9e41fa3f0f69a9e12acfa661e0de05bf190aeb
[ "MIT" ]
null
null
null
from keras.models import Sequential from keras.layers import Dense, Conv2D, Flatten, MaxPooling2D from sklearn.neighbors import NearestNeighbors from keras.datasets import cifar10 import numpy as np from keras import backend as K ################################################################ # input image dimension...
28.371134
93
0.65189
426
2,752
4.051643
0.316901
0.05562
0.04635
0.06489
0.178447
0.161066
0.151796
0.117034
0.117034
0.048667
0
0.075777
0.146439
2,752
96
94
28.666667
0.659004
0.24782
0
0
0
0
0.074346
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f343eb3682ac8f3b2f2549023501deaa06faf0e
2,291
py
Python
setup.py
copernicusmarine/cmemsapi
b2b2f8e9c80d989fe1aa1374d8174a30c819847e
[ "MIT" ]
null
null
null
setup.py
copernicusmarine/cmemsapi
b2b2f8e9c80d989fe1aa1374d8174a30c819847e
[ "MIT" ]
null
null
null
setup.py
copernicusmarine/cmemsapi
b2b2f8e9c80d989fe1aa1374d8174a30c819847e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2020 E.U. Copernicus Marine Service Information import sys from pathlib import Path # noqa E402 from setuptools import find_packages, setup assert sys.version_info >= (3, 6, 0), "cmtb requires Python 3.6+" CURRENT_DIR = Path(__file__).parent sys.path.in...
33.202899
139
0.67787
278
2,291
5.446043
0.568345
0.005284
0.049538
0.051519
0.076618
0.047556
0
0
0
0
0
0.021299
0.180271
2,291
68
140
33.691176
0.784878
0.226102
0
0
0
0.023256
0.473265
0.047782
0
0
0
0
0.023256
1
0
false
0
0.069767
0
0.069767
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f34aa81b3070681377031f89c73e262ce096a91
1,520
py
Python
application/services/tag_service.py
Praveen-0208/developer-cheatsheet
0fe494c2b01e320891c4048172569eacd15c73a4
[ "Apache-2.0" ]
null
null
null
application/services/tag_service.py
Praveen-0208/developer-cheatsheet
0fe494c2b01e320891c4048172569eacd15c73a4
[ "Apache-2.0" ]
null
null
null
application/services/tag_service.py
Praveen-0208/developer-cheatsheet
0fe494c2b01e320891c4048172569eacd15c73a4
[ "Apache-2.0" ]
null
null
null
from application.models.Tag import Tag from application.app import db from flask import jsonify import traceback class TagService: def create_tag(self, params): try: tag_object = Tag(tag_name = params["tag_name"]) db.session.add(tag_object) db.session.commit() return {"Message": "Tag created successfull...
38
171
0.709868
215
1,520
4.87907
0.265116
0.086749
0.068637
0.076263
0.602479
0.602479
0.522402
0.522402
0.464252
0.464252
0
0.018547
0.148684
1,520
40
172
38
0.792117
0
0
0.472222
0
0
0.207101
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.472222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f3641e14ab8c811d8f476458187baa315cf5ceb
207
py
Python
otx_weblink/serializers.py
NYULibraries/dlts-enm-tct-backend
07455a660fb2cb8bc91a54f7f12d150923678157
[ "Apache-2.0" ]
null
null
null
otx_weblink/serializers.py
NYULibraries/dlts-enm-tct-backend
07455a660fb2cb8bc91a54f7f12d150923678157
[ "Apache-2.0" ]
2
2017-10-30T21:19:07.000Z
2017-10-31T18:06:30.000Z
otx_weblink/serializers.py
NYULibraries/dlts-enm-tct-backend
07455a660fb2cb8bc91a54f7f12d150923678157
[ "Apache-2.0" ]
null
null
null
from rest_framework import serializers from .models import Weblink class WeblinkSerializer(serializers.ModelSerializer): class Meta: model = Weblink fields = ('id', 'content', 'url')
20.7
53
0.700483
21
207
6.857143
0.761905
0
0
0
0
0
0
0
0
0
0
0
0.21256
207
9
54
23
0.883436
0
0
0
0
0
0.057971
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
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
1
0
0
4
7f38e58a4f42e68862f6e882856a02eb76e3e7d3
479
py
Python
fopp/Chapter 12. Functions/num_test.py
H2u-Hwng/EVC
c650fe7356a333011514cf9025dfd97bf71b1de3
[ "MIT" ]
null
null
null
fopp/Chapter 12. Functions/num_test.py
H2u-Hwng/EVC
c650fe7356a333011514cf9025dfd97bf71b1de3
[ "MIT" ]
null
null
null
fopp/Chapter 12. Functions/num_test.py
H2u-Hwng/EVC
c650fe7356a333011514cf9025dfd97bf71b1de3
[ "MIT" ]
null
null
null
# Check number and return result def num_test(num): # Check number if num > 10: return 'Greater than 10.' elif num < 10: return 'Less than 10.' else: return 'Equal to 10.' # Define main function def main(): # Prompt user for a number number = float(input('Ente...
17.740741
45
0.586639
62
479
4.467742
0.483871
0.198556
0.079422
0
0
0
0
0
0
0
0
0.03096
0.325679
479
26
46
18.423077
0.826625
0.283925
0
0
0
0
0.170149
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.416667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f3a094e7fb2b39dd5e7562105bdd163aaecdbef
243
py
Python
day04/day4_a.py
AdamKinnell/AdventOfCode2017
28f506a39245198489d3da9535b190e6f98e92d1
[ "MIT" ]
null
null
null
day04/day4_a.py
AdamKinnell/AdventOfCode2017
28f506a39245198489d3da9535b190e6f98e92d1
[ "MIT" ]
null
null
null
day04/day4_a.py
AdamKinnell/AdventOfCode2017
28f506a39245198489d3da9535b190e6f98e92d1
[ "MIT" ]
null
null
null
def is_valid(phrase): words = phrase.split() return len(set(words)) == len(words) passphrases = open("day4.txt").readlines() valid_phrases = list(filter(is_valid, passphrases)) print('Valid Passphrases:', len(valid_phrases)) # = 337
27
55
0.703704
32
243
5.21875
0.59375
0.083832
0
0
0
0
0
0
0
0
0
0.018957
0.131687
243
8
56
30.375
0.772512
0.020576
0
0
0
0
0.110169
0
0
0
0
0
0
1
0.166667
false
0.5
0
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
7f3ad5bc86994d1ef1598c06b036251dd5fb414d
5,926
py
Python
nozbe_to_org_mode.py
abloomston/nozbe-to-org-mode
b0a28afdd175dbd33a476b4959314bb564fd327d
[ "MIT" ]
null
null
null
nozbe_to_org_mode.py
abloomston/nozbe-to-org-mode
b0a28afdd175dbd33a476b4959314bb564fd327d
[ "MIT" ]
null
null
null
nozbe_to_org_mode.py
abloomston/nozbe-to-org-mode
b0a28afdd175dbd33a476b4959314bb564fd327d
[ "MIT" ]
null
null
null
import datetime import json # import os.path import re import click from PyOrgMode import PyOrgMode def get_valid_filename(s): """ Return the given string converted to a string that can be used for a clean filename. Remove leading and trailing spaces; convert other spaces to underscores; and remove a...
37.506329
113
0.663348
782
5,926
4.904092
0.338875
0.032855
0.016428
0.014602
0.098566
0.08605
0.084485
0.054237
0.054237
0.035463
0
0.009832
0.244853
5,926
157
114
37.745223
0.847151
0.467938
0
0
0
0
0.082992
0
0
0
0
0.012739
0
1
0.081081
false
0
0.067568
0
0.216216
0
0
0
0
null
0
0
0
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
7f3cd41b054297245f18b16ccddc7438085c5131
8,754
py
Python
src/annalist_root/annalist/models/collectiontypecache.py
gklyne/annalist
82e7ef2d56a400325e7618fa9e590072ee8a71d3
[ "MIT" ]
18
2015-02-20T23:09:13.000Z
2020-11-13T06:06:43.000Z
src/annalist_root/annalist/models/collectiontypecache.py
gklyne/annalist
82e7ef2d56a400325e7618fa9e590072ee8a71d3
[ "MIT" ]
30
2015-01-03T09:56:28.000Z
2021-06-10T20:58:55.000Z
src/annalist_root/annalist/models/collectiontypecache.py
gklyne/annalist
82e7ef2d56a400325e7618fa9e590072ee8a71d3
[ "MIT" ]
5
2015-02-02T09:01:23.000Z
2018-06-14T20:05:28.000Z
from __future__ import unicode_literals from __future__ import absolute_import, division, print_function """ This module is used to cache per-collection type information. """ __author__ = "Graham Klyne (GK@ACM.ORG)" __copyright__ = "Copyright 2017, G. Klyne" __license__ = "MIT (http://opensource.org/licens...
36.024691
103
0.633082
1,058
8,754
4.965028
0.162571
0.066629
0.026651
0.032362
0.465448
0.411003
0.359223
0.321531
0.294498
0.281934
0
0.00062
0.262509
8,754
242
104
36.173554
0.813042
0.33756
0
0.237113
0
0
0.018638
0
0
0
0
0
0
1
0.206186
false
0
0.092784
0.010309
0.525773
0.010309
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
7f3cda38afd2ff0962b2ae79ebdaa829c5bed6a1
556
py
Python
example/nn-andor.py
Sean-Mabli/aiinpy
827e4f85861436c0332046fa8aa84e24153513d6
[ "MIT" ]
2
2021-04-19T21:49:34.000Z
2021-05-17T21:03:08.000Z
example/nn-andor.py
Sean-Mabli/aiinpy
827e4f85861436c0332046fa8aa84e24153513d6
[ "MIT" ]
null
null
null
example/nn-andor.py
Sean-Mabli/aiinpy
827e4f85861436c0332046fa8aa84e24153513d6
[ "MIT" ]
null
null
null
import aiinpy as ai import numpy as np # Create Dataset inTrainData = np.random.choice(([0, 1]), (2, 100)) outTrainData = np.zeros((2, 100)) for i in range(100): outTrainData[:, i] = [1, 0] if sum(inTrainData[:, i]) == 1 else [0, 1] # NN model model = ai.model(2, 2, [ ai.nn(outshape=16, activation=ai.relu(), lear...
30.888889
72
0.681655
87
556
4.356322
0.402299
0.026385
0.094987
0.073879
0.263852
0.263852
0.263852
0.263852
0.263852
0.263852
0
0.070103
0.127698
556
18
73
30.888889
0.71134
0.041367
0
0.153846
0
0
0
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f3e415b02824042a222510b85f1f06332620f82
10,212
py
Python
evaluation.py
twankim/svdped
afe67b5c4636bca03a6d68b7a9cf89485a4dabec
[ "Apache-2.0" ]
1
2020-01-02T03:01:28.000Z
2020-01-02T03:01:28.000Z
evaluation.py
twankim/svdped
afe67b5c4636bca03a6d68b7a9cf89485a4dabec
[ "Apache-2.0" ]
null
null
null
evaluation.py
twankim/svdped
afe67b5c4636bca03a6d68b7a9cf89485a4dabec
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Tensorflow. All Rights Reserved. # Modifications copyright 2018 UT Austin/Saharsh Oza & Taewan Kim # We follow the object detection API of Tensorflow # # 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...
42.198347
134
0.658637
1,311
10,212
4.864226
0.234935
0.034499
0.028226
0.033872
0.295907
0.251372
0.205112
0.18504
0.162772
0.137055
0
0.006812
0.238151
10,212
241
135
42.373444
0.812853
0.122405
0
0.185792
0
0
0.144828
0.071909
0
0
0
0
0
1
0.032787
false
0
0.087432
0
0.153005
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f3e63c1fb6018a2c9b775eebf7066a5b9766177
80
py
Python
2017-03-07-Introduction-to-Python/examples/11-dict.py
s3rvac/talks
469ea5d2d3d90527f77863b85746bbc2d7236cb1
[ "BSD-3-Clause" ]
2
2019-05-15T06:42:32.000Z
2020-08-01T11:48:40.000Z
2017-03-07-Introduction-to-Python/examples/11-dict.py
s3rvac/talks
469ea5d2d3d90527f77863b85746bbc2d7236cb1
[ "BSD-3-Clause" ]
null
null
null
2017-03-07-Introduction-to-Python/examples/11-dict.py
s3rvac/talks
469ea5d2d3d90527f77863b85746bbc2d7236cb1
[ "BSD-3-Clause" ]
1
2017-03-28T21:14:37.000Z
2017-03-28T21:14:37.000Z
d = { 'John': 2.5, 'Paul': 1.5, 'Laura': 1 } print(d['John']) # 2.5
11.428571
22
0.3875
14
80
2.214286
0.571429
0.322581
0.387097
0.451613
0
0
0
0
0
0
0
0.127273
0.3125
80
6
23
13.333333
0.436364
0.0375
0
0
0
0
0.226667
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
7f403fa488a1d08f93bce6c80d03c36e605c922e
3,863
py
Python
code/chap12/average_monoid_use_groupbykey.py
AnanthaVamshi/PySpark_Tutorials
fd94f9af0517f0bffca26d4c7b751333d42b8f3d
[ "Apache-2.0" ]
60
2019-07-09T10:34:48.000Z
2022-03-17T00:04:43.000Z
code/chap12/average_monoid_use_groupbykey.py
AnanthaVamshi/PySpark_Tutorials
fd94f9af0517f0bffca26d4c7b751333d42b8f3d
[ "Apache-2.0" ]
2
2022-02-14T00:11:51.000Z
2022-02-14T00:25:13.000Z
code/chap12/average_monoid_use_groupbykey.py
AnanthaVamshi/PySpark_Tutorials
fd94f9af0517f0bffca26d4c7b751333d42b8f3d
[ "Apache-2.0" ]
34
2019-07-03T13:24:45.000Z
2022-02-14T00:11:45.000Z
from __future__ import print_function import sys from pyspark.sql import SparkSession #<1> Import the print() function #<2> Import System-specific parameters and functions #<3> Import SparkSession from the pyspark.sql module #========================================== # NOTE: # # In general, avoid using groupByKey(...
35.118182
145
0.63241
513
3,863
4.654971
0.350877
0.037688
0.050251
0.028476
0.073283
0.073283
0.041876
0.041876
0.041876
0
0
0.020089
0.188196
3,863
109
146
35.440367
0.74139
0.547243
0
0
0
0
0.194905
0.078199
0
0
0
0
0
1
0.054054
false
0
0.081081
0
0.189189
0.405405
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
7f4141e43c9e441e29f89f0d2f45c5877b88a586
3,513
py
Python
python/black-jack/black_jack.py
heymajor/exercism
5cbe035abfdcd420e4b74ed24d7cb4d9fc38ddfd
[ "MIT" ]
null
null
null
python/black-jack/black_jack.py
heymajor/exercism
5cbe035abfdcd420e4b74ed24d7cb4d9fc38ddfd
[ "MIT" ]
null
null
null
python/black-jack/black_jack.py
heymajor/exercism
5cbe035abfdcd420e4b74ed24d7cb4d9fc38ddfd
[ "MIT" ]
null
null
null
"""Functions to help play and score a game of blackjack. How to play blackjack: https://bicyclecards.com/how-to-play/blackjack/ "Standard" playing cards: https://en.wikipedia.org/wiki/Standard_52-card_deck """ def is_ten(card): tens = ["K", "J", "Q", "10"] return card in tens def is_ace(card): retur...
28.104
126
0.642755
575
3,513
3.707826
0.177391
0.078799
0.067073
0.085366
0.350844
0.310038
0.266417
0.212477
0.197467
0.172139
0
0.02219
0.217478
3,513
124
127
28.330645
0.753365
0.559636
0
0.255814
0
0
0.007057
0
0
0
0
0
0
1
0.209302
false
0
0
0.023256
0.55814
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
7f416087cddccd8f2f43da2aae4ed7a5d932a824
2,246
py
Python
Tweet_Parser.py
berkehanozen/481project
e1f8f98871ad47bfc7ac2363824b86eca3ef80e3
[ "MIT" ]
1
2019-04-03T20:04:10.000Z
2019-04-03T20:04:10.000Z
Tweet_Parser.py
berkehanozen/481project
e1f8f98871ad47bfc7ac2363824b86eca3ef80e3
[ "MIT" ]
8
2019-03-17T20:03:15.000Z
2019-04-26T23:36:50.000Z
Tweet_Parser.py
berkehanozen/481project
e1f8f98871ad47bfc7ac2363824b86eca3ef80e3
[ "MIT" ]
null
null
null
import tweepy CONSUMER_KEY = 'EQxFiVurRxZRKZzH4tJ2PtsX8' CONSUMER_SECRET = '59WSgueMvx7VUbuYywwC6rqwdlLUkc0yufiTnITvgmPJAN9RzE' ACCESS_TOKEN = "349586645-4e7WmYpjvzKUmsKh3C9pNyv0QzlbVB80nlvR4q02" ACCESS_TOKEN_SECRET = "qblYvvigttmP5elDFMsIJacO7gOknN794ubMThlyV0pfj" auth = tweepy.OAuthHandler('EQxFiVurRxZRKZzH4tJ2PtsX8'...
43.192308
124
0.670971
209
2,246
7.090909
0.38756
0.08502
0.020243
0.036437
0.039136
0.039136
0
0
0
0
0
0.042665
0.238201
2,246
51
125
44.039216
0.823495
0.062778
0
0.083333
0
0
0.204383
0.161982
0
0
0
0
0
1
0.020833
false
0
0.020833
0
0.104167
0.020833
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f44280736c208e946be3d520a3b9b00087db672
1,363
py
Python
uskimage_demo/morphology/tests/test_morphology_diplib.py
grlee77/uskimage-demo
6e9deaddfd8f9b1b6ba8321f5df4bfc938efb07f
[ "MIT" ]
null
null
null
uskimage_demo/morphology/tests/test_morphology_diplib.py
grlee77/uskimage-demo
6e9deaddfd8f9b1b6ba8321f5df4bfc938efb07f
[ "MIT" ]
null
null
null
uskimage_demo/morphology/tests/test_morphology_diplib.py
grlee77/uskimage-demo
6e9deaddfd8f9b1b6ba8321f5df4bfc938efb07f
[ "MIT" ]
null
null
null
import dask.array as da import numpy as np import pytest from skimage import data, morphology, set_backend from uskimage_demo import diplib_backend from skimage.morphology import footprints modes = ['wrap', 'reflect', 'nearest', 'constant', 'mirror'] # note: 'reflect' unspported by diplib, falls back to ski...
36.837838
71
0.653705
171
1,363
5.046784
0.432749
0.090382
0.073001
0.04635
0.17613
0.17613
0.08343
0.08343
0.08343
0
0
0.022684
0.223771
1,363
36
72
37.861111
0.793006
0.044021
0
0.137931
0
0
0.064566
0
0
0
0
0
0.068966
1
0.034483
false
0
0.206897
0
0.241379
0.448276
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
7f4660d2d5b241b7b958d1504ba624955cb4fcbe
797
py
Python
modulo 1/aulas/2.0 - Variaveis, etc.py
GabrielBrotas/Python
9441b6b86ff3cb7fa5921b508c484075adac08b3
[ "MIT" ]
null
null
null
modulo 1/aulas/2.0 - Variaveis, etc.py
GabrielBrotas/Python
9441b6b86ff3cb7fa5921b508c484075adac08b3
[ "MIT" ]
null
null
null
modulo 1/aulas/2.0 - Variaveis, etc.py
GabrielBrotas/Python
9441b6b86ff3cb7fa5921b508c484075adac08b3
[ "MIT" ]
null
null
null
n = input('Digite algo: ') numero = int(input("digite um numero: ")) num1 = float(input("digite um numero decimal: ")) nome = str(input("digite algum nome: ")) print(type(n)) # mostrar o tipo de 'n', se é int, float, bool, str... print(n.isnumeric()) # vai dizer se n é numerico ou nao, imprimindo true or fal...
61.307692
112
0.696361
133
797
4.172932
0.368421
0.064865
0.108108
0.227027
0.457658
0.436036
0.288288
0.288288
0
0
0
0.001555
0.193225
797
13
113
61.307692
0.861586
0.578419
0
0
0
0
0.231003
0
0
0
0
0
0
1
0
false
0
0
0
0
0.636364
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
7f46b90f3067b61d30032bd525bb3fa292e333d3
7,265
py
Python
models/networks.py
face3d0725/weak_UV
8ce5259644fd153113ca2f0ae306e5b7bae1b6b5
[ "MIT" ]
14
2021-09-15T12:53:44.000Z
2022-03-29T08:45:04.000Z
models/networks.py
face3d0725/weak_UV
8ce5259644fd153113ca2f0ae306e5b7bae1b6b5
[ "MIT" ]
3
2021-09-17T01:43:48.000Z
2021-11-26T11:54:57.000Z
models/networks.py
face3d0725/weak_UV
8ce5259644fd153113ca2f0ae306e5b7bae1b6b5
[ "MIT" ]
1
2021-10-12T01:07:44.000Z
2021-10-12T01:07:44.000Z
from torch import nn import torch.nn.functional as F import torch import math import numpy as np # https://github.com/caojiezhang/MWGAN class ResidualBlock(nn.Module): """ Residual Block with instance normalization. """ def __init__(self, dim_in, dim_out): super(ResidualBlock, self).__init__...
32.433036
120
0.605368
1,012
7,265
4.104743
0.126482
0.040443
0.054165
0.068609
0.745546
0.709437
0.689937
0.682715
0.616755
0.574386
0
0.027674
0.263868
7,265
223
121
32.578475
0.749065
0.056022
0
0.483871
0
0
0.003535
0
0
0
0
0
0
1
0.129032
false
0
0.032258
0.012903
0.290323
0.006452
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7f482aee1ac3fa8273f5cc77f82ac708531977d2
3,115
py
Python
src/main/python/apache/thermos/cli/commands/run.py
jeremyvdw/aurora
fa9d83a7ef3a96c522884089a471bbb0bef74c48
[ "Apache-2.0" ]
479
2015-03-27T22:59:49.000Z
2022-03-09T08:40:49.000Z
src/main/python/apache/thermos/cli/commands/run.py
jeremyvdw/aurora
fa9d83a7ef3a96c522884089a471bbb0bef74c48
[ "Apache-2.0" ]
69
2015-05-26T20:06:29.000Z
2020-01-13T19:18:59.000Z
src/main/python/apache/thermos/cli/commands/run.py
jeremyvdw/aurora
fa9d83a7ef3a96c522884089a471bbb0bef74c48
[ "Apache-2.0" ]
226
2015-03-27T20:02:59.000Z
2022-03-09T08:40:53.000Z
# # 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 # distributed under ...
47.923077
100
0.660353
402
3,115
5.007463
0.380597
0.049677
0.071535
0.034277
0.084948
0.071535
0.040735
0.040735
0
0
0
0.002481
0.223756
3,115
64
101
48.671875
0.830025
0.185875
0
0
0
0
0.336121
0.009558
0
0
0
0
0
1
0.025
false
0.05
0.125
0
0.15
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f48681294588a03fc4aad0737c8a3c34dabc142
280
py
Python
gallery/random_color.py
Commander07/Enviroment
bdf05dca42a14a5f061c8dda64c3ec6b085e4db3
[ "MIT" ]
null
null
null
gallery/random_color.py
Commander07/Enviroment
bdf05dca42a14a5f061c8dda64c3ec6b085e4db3
[ "MIT" ]
null
null
null
gallery/random_color.py
Commander07/Enviroment
bdf05dca42a14a5f061c8dda64c3ec6b085e4db3
[ "MIT" ]
null
null
null
import random import time from enviroment import Enviroment ENV = Enviroment("") def random_color(): return random.randint(0, 256) while True: ENV.console.print( "[color({color})]COLOR SUPPORT[/color({color})]".format(color=random_color())) time.sleep(1)
17.5
86
0.685714
36
280
5.277778
0.555556
0.157895
0
0
0
0
0
0
0
0
0
0.021459
0.167857
280
15
87
18.666667
0.793991
0
0
0
0
0
0.164286
0.160714
0
0
0
0
0
1
0.1
false
0
0.3
0.1
0.5
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f494b88262e2106d77b9c0a20561febf55c8994
5,933
py
Python
radiation/python/encoding.py
dfridovi/exploration
5e66115178988bd264a920041dfeab6d3539caec
[ "BSD-3-Clause" ]
5
2018-07-08T08:32:49.000Z
2022-03-13T10:17:09.000Z
radiation/python/encoding.py
dfridovi/exploration
5e66115178988bd264a920041dfeab6d3539caec
[ "BSD-3-Clause" ]
5
2016-11-30T02:52:58.000Z
2018-05-24T04:46:49.000Z
radiation/python/encoding.py
dfridovi/exploration
5e66115178988bd264a920041dfeab6d3539caec
[ "BSD-3-Clause" ]
2
2016-12-01T04:06:40.000Z
2019-06-19T16:32:28.000Z
""" Copyright (c) 2015, The Regents of the University of California (Regents). All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright ...
35.106509
79
0.68178
819
5,933
4.781441
0.279609
0.038815
0.022983
0.023238
0.222676
0.18335
0.111338
0.091931
0.091931
0.08427
0
0.00995
0.220799
5,933
168
80
35.315476
0.837119
0.432328
0
0.157895
0
0
0
0
0
0
0
0
0.026316
1
0.078947
false
0
0.078947
0
0.236842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f49f6fa3ef035698bb0c0bf44b54064ea2d62dc
504
py
Python
Cogs/game.py
k-rite/mirai-kuriyama-discord.py
2974e2a544fe2d12491eae83e3ff16f5b776294c
[ "Apache-2.0" ]
1
2021-12-02T00:22:08.000Z
2021-12-02T00:22:08.000Z
Cogs/game.py
k-rite/mirai-kuriyama-discord.py
2974e2a544fe2d12491eae83e3ff16f5b776294c
[ "Apache-2.0" ]
null
null
null
Cogs/game.py
k-rite/mirai-kuriyama-discord.py
2974e2a544fe2d12491eae83e3ff16f5b776294c
[ "Apache-2.0" ]
null
null
null
import discord from discord.ext import commands from discord import Game class game(commands.Cog): def __init__(self, Bot): self.bot = Bot #jus a comfy seperate cog to change game status, will add versions setup nd other backend codes here @commands.Cog.listener() async def on_ready(self): await self.bot....
33.6
124
0.757937
78
504
4.807692
0.589744
0.056
0
0
0
0
0
0
0
0
0
0.004651
0.146825
504
15
125
33.6
0.867442
0.196429
0
0
0
0
0.098765
0
0
0
0
0
0
1
0.166667
false
0
0.25
0
0.5
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f4bd9faf0fca90d18ad0d946a965dc643b9af58
7,119
py
Python
infosystem/subsystem/user/controller.py
objetorelacional/infosystem
07140b88db0edee2d5f66db4f13e7285a4f28bfa
[ "Apache-2.0" ]
2
2020-06-25T16:53:28.000Z
2020-10-07T18:11:05.000Z
infosystem/subsystem/user/controller.py
objetorelacional/infosystem
07140b88db0edee2d5f66db4f13e7285a4f28bfa
[ "Apache-2.0" ]
67
2020-05-18T13:16:34.000Z
2021-11-27T12:32:11.000Z
infosystem/subsystem/user/controller.py
objetorelacional/infosystem
07140b88db0edee2d5f66db4f13e7285a4f28bfa
[ "Apache-2.0" ]
null
null
null
import flask import json from infosystem.common import utils from infosystem.common.subsystem import controller from infosystem.common import exception from infosystem.subsystem.user.email import TypeEmail class Controller(controller.Controller): def __init__(self, manager, resource_wrap, collection_wrap): ...
36.507692
74
0.573255
735
7,119
5.414966
0.121088
0.05804
0.095477
0.135678
0.638442
0.579146
0.539447
0.518593
0.509045
0.509045
0
0.005724
0.337407
7,119
194
75
36.695876
0.838033
0
0
0.562092
0
0
0.035117
0
0
0
0
0
0
1
0.091503
false
0.052288
0.039216
0.019608
0.300654
0
0
0
0
null
0
0
0
0
0
0
0
0
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
7f4caadc8cb6f4e82da5982e34a205614c81d65e
1,475
py
Python
myapp/Entry.py
abars/illustbook
3e790a688c19205b7384cc5815ca76c23b88f09a
[ "MIT" ]
3
2016-06-16T20:11:45.000Z
2022-01-27T04:23:09.000Z
myapp/Entry.py
abars/illustbook
3e790a688c19205b7384cc5815ca76c23b88f09a
[ "MIT" ]
1
2017-10-23T00:23:13.000Z
2017-10-23T00:23:13.000Z
myapp/Entry.py
abars/illustbook
3e790a688c19205b7384cc5815ca76c23b88f09a
[ "MIT" ]
null
null
null
#!-*- coding:utf-8 -*- #!/usr/bin/env python #--------------------------------------------------- #コメント構造体 #copyright 2010-2012 ABARS all rights reserved. #--------------------------------------------------- from google.appengine.ext import db from google.appengine.api import users from myapp.Bbs import Bbs from mya...
34.302326
92
0.728814
168
1,475
6.255952
0.494048
0.137012
0.062797
0
0
0
0
0
0
0
0
0.006823
0.105763
1,475
42
93
35.119048
0.789992
0.185763
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.1875
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f4f0f91b52a69b3291519a8f616241c25617cb7
65
py
Python
yc183/646.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc183/646.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc183/646.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
N = int(input()) for i in range(N): print(str(N) * (N - i))
13
27
0.492308
13
65
2.461538
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.261538
65
4
28
16.25
0.666667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7f502c3c57ac68a95acd7fa11569b57d01be3919
1,284
py
Python
ee134/scripts/pyfindactuators.py
wwerst/EE134
ca558e4e6dc874a7b91885a786fd5eae8492afca
[ "MIT" ]
null
null
null
ee134/scripts/pyfindactuators.py
wwerst/EE134
ca558e4e6dc874a7b91885a786fd5eae8492afca
[ "MIT" ]
null
null
null
ee134/scripts/pyfindactuators.py
wwerst/EE134
ca558e4e6dc874a7b91885a786fd5eae8492afca
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # pyfindactuators.py # # Simply call the hebiros_node to find the list of actuators. import sys import rospy from hebiros.srv import EntryListSrv if __name__ == "__main__": # Initialize the basic ROS node. rospy.init_node('pyfindactuators') # You can choose to wait until the...
31.317073
70
0.639408
167
1,284
4.790419
0.48503
0.07875
0.065
0.0425
0.0525
0
0
0
0
0
0
0.001043
0.253115
1,284
40
71
32.1
0.83316
0.4081
0
0
0
0
0.189008
0.029491
0
0
0
0
0
0
null
null
0
0.176471
null
null
0
0
0
0
null
0
0
0
0
0
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
7f50fd424f4a7fff6675e48331bbf784d65fa589
397
py
Python
logdweb/forms.py
hiidef/logdweb
c80d47f4c5759cadeb3088b9f7fa093c30e11696
[ "MIT" ]
1
2015-08-30T02:36:13.000Z
2015-08-30T02:36:13.000Z
logdweb/forms.py
hiidef/logdweb
c80d47f4c5759cadeb3088b9f7fa093c30e11696
[ "MIT" ]
null
null
null
logdweb/forms.py
hiidef/logdweb
c80d47f4c5759cadeb3088b9f7fa093c30e11696
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """logdweb forms""" from django.forms import * class CreatePageForm(Form): name = CharField(max_length=50) class ColorNameForm(Form): stat = CharField(max_length=30) color = CharField(max_length=10) class ColorStatsForm(Form): name = CharField(max_lengt...
18.045455
36
0.692695
51
397
5.294118
0.54902
0.222222
0.333333
0.222222
0.444444
0.318519
0.318519
0.318519
0
0
0
0.033435
0.171285
397
21
37
18.904762
0.787234
0.141058
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.090909
0.090909
0
0.909091
0
0
0
0
null
1
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
1
0
0
1
0
0
5
7f53b321819c0bfc40c5ab85b02bbe5ae5205ad3
5,386
py
Python
src/kegnet/utils/tucker.py
videoturingtest/KegNet
fe5d1eb5ab5453be70c4be473fd3da71afe4b06c
[ "Apache-2.0" ]
42
2019-10-01T02:14:34.000Z
2022-03-07T06:57:58.000Z
src/kegnet/utils/tucker.py
videoturingtest/KegNet
fe5d1eb5ab5453be70c4be473fd3da71afe4b06c
[ "Apache-2.0" ]
5
2019-12-18T16:44:52.000Z
2021-10-02T15:45:37.000Z
src/kegnet/utils/tucker.py
videoturingtest/KegNet
fe5d1eb5ab5453be70c4be473fd3da71afe4b06c
[ "Apache-2.0" ]
13
2019-10-04T02:55:51.000Z
2021-08-13T09:10:17.000Z
""" Knowledge Extraction with No Observable Data (NeurIPS 2019) Authors: - Jaemin Yoo (jaeminyoo@snu.ac.kr), Seoul National University - Minyong Cho (chominyong@gmail.com), Seoul National University - Taebum Kim (k.taebum@snu.ac.kr), Seoul National University - U Kang (ukang@snu.ac.kr), Seoul National University This...
30.954023
76
0.59469
655
5,386
4.670229
0.207634
0.046747
0.053939
0.037267
0.518143
0.423668
0.239294
0.198758
0.165414
0.165414
0
0.010442
0.306535
5,386
173
77
31.132948
0.808568
0.123468
0
0.279279
0
0
0.005061
0
0
0
0
0
0
1
0.054054
false
0
0.054054
0
0.162162
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f55f44736b5a3a98c59af3781f85f9e15bf8728
1,740
py
Python
2020/05/code.py
tut-tuuut/advent-of-code-shiny-giggle
281a646b84f58f4b3ca2a9875dd57268beefc62d
[ "MIT" ]
5
2018-12-11T17:46:54.000Z
2021-12-02T10:11:53.000Z
2020/05/code.py
tut-tuuut/advent-of-code-shiny-giggle
281a646b84f58f4b3ca2a9875dd57268beefc62d
[ "MIT" ]
null
null
null
2020/05/code.py
tut-tuuut/advent-of-code-shiny-giggle
281a646b84f58f4b3ca2a9875dd57268beefc62d
[ "MIT" ]
null
null
null
import utils as u with open(__file__ + ".input.txt", "r+") as file: raw_input = file.read() # part 1 -'*'-.,__,.-'*'-.,__,.-'*'-.,__,.-'*'-.,__,.-'*'-.,__,.-'*'-.,__,.-'*'-.,_ def get_place_coordinates(boarding_pass): row_instructions = boarding_pass[:-3] col_instructions = boarding_pass[-3:] # hey ...
30.526316
83
0.642529
272
1,740
3.720588
0.305147
0.079051
0.096838
0.094862
0.389328
0.293478
0.152174
0.086957
0.086957
0.086957
0
0.038567
0.165517
1,740
56
84
31.071429
0.658402
0.182759
0
0.171429
0
0
0.035311
0
0
0
0
0
0.171429
1
0.057143
false
0.142857
0.028571
0.028571
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
1
0
0
0
0
0
1
7f56a46d74e7ecd5b432e74c3c2222b210440061
21,615
py
Python
source/tpJointOrient/jointorient.py
tpoveda/tpJointOrient
deeebf847403c2938518c75a2b1a22d61e46f74a
[ "MIT" ]
9
2017-08-21T01:04:22.000Z
2020-08-28T02:54:54.000Z
source/tpJointOrient/jointorient.py
tpoveda/tpJointOrient
deeebf847403c2938518c75a2b1a22d61e46f74a
[ "MIT" ]
1
2019-11-06T18:02:41.000Z
2019-11-06T18:02:41.000Z
source/tpJointOrient/jointorient.py
tpoveda/tpJointOrient
deeebf847403c2938518c75a2b1a22d61e46f74a
[ "MIT" ]
3
2018-04-03T00:14:50.000Z
2020-11-04T00:33:45.000Z
from functools import partial from Qt.QtCore import * from Qt.QtWidgets import * import tpDccLib as tp import tpMayaLib as maya from tpQtLib.core import window from tpQtLib.widgets import splitters from tpMayaLib.core import decorators class JointOrient(window.MainWindow, object): def __init__(self): su...
41.567308
134
0.670275
2,799
21,615
4.802429
0.102179
0.052968
0.078113
0.040173
0.584958
0.424937
0.338119
0.261122
0.169841
0.137554
0
0.012814
0.230997
21,615
519
135
41.647399
0.795873
0.035623
0
0.127937
0
0
0.038484
0.002357
0
0
0
0
0
1
0.039164
false
0
0.020888
0
0.067885
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f58bef75ba0ec877afcf1b719c8b7a1c29e9cfb
2,584
py
Python
run.py
tobias-fyi/print-fiction
b0befb9906fea85bf1a553fb4bc4d229b8ed957b
[ "MIT" ]
null
null
null
run.py
tobias-fyi/print-fiction
b0befb9906fea85bf1a553fb4bc4d229b8ed957b
[ "MIT" ]
null
null
null
run.py
tobias-fyi/print-fiction
b0befb9906fea85bf1a553fb4bc4d229b8ed957b
[ "MIT" ]
null
null
null
import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from app import app, server from pages import index # ====== Navigation ====== # # nav = html.Ul( # [ # html.Li(html.A("print(fiction)", ...
29.033708
87
0.417957
230
2,584
4.626087
0.369565
0.039474
0.065789
0.072368
0.214286
0.180451
0.158835
0.084586
0.084586
0
0
0.003453
0.439628
2,584
88
88
29.363636
0.731354
0.151703
0
0.296875
0
0
0.154236
0
0
0
0
0
0
1
0.015625
false
0
0.109375
0
0.15625
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7f5ad4cc35db29d1020478aa8cc7a13f5b570c56
323
py
Python
client/views/back.py
tcmal/ah-project
64c5859ed39645c1c2971e193c6b59f35d72d2a7
[ "MIT" ]
null
null
null
client/views/back.py
tcmal/ah-project
64c5859ed39645c1c2971e193c6b59f35d72d2a7
[ "MIT" ]
null
null
null
client/views/back.py
tcmal/ah-project
64c5859ed39645c1c2971e193c6b59f35d72d2a7
[ "MIT" ]
null
null
null
from tkinter.ttk import Button # Convenience mixin to add back button to view class ViewHasBackButton: def add_back_button(self, *args, **kwargs): Button(self.frame, text="Back", command=self.back_home).grid(*args, **kwargs) def back_home(self): from views import HomeView self.app.replace_view(HomeVi...
32.3
80
0.743034
47
323
5
0.553191
0.059574
0.110638
0
0
0
0
0
0
0
0
0
0.148607
323
10
81
32.3
0.854545
0.136223
0
0
0
0
0.01487
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
7f5b76a3577f86fe28ed46f2364b13beeed8f550
402
py
Python
test.py
activerankextension/methodology
8ae182d420163dae8433a0003c50618798a0f46f
[ "MIT" ]
null
null
null
test.py
activerankextension/methodology
8ae182d420163dae8433a0003c50618798a0f46f
[ "MIT" ]
null
null
null
test.py
activerankextension/methodology
8ae182d420163dae8433a0003c50618798a0f46f
[ "MIT" ]
null
null
null
import unittest from feminist_api import * class FeministAPI(unittest.TestCase): def test_ranking(self): self.assertNotEqual((None, None, None, None), get_ranking_for_company('zara')) self.assertNotEqual((None, None, None, None), get_ranking_for_company('facebook')) self.assertNotEqual((None, None, None, None),...
36.545455
84
0.758706
52
402
5.5
0.442308
0.251748
0.251748
0.272727
0.566434
0.566434
0.566434
0.566434
0.566434
0.566434
0
0
0.104478
402
11
85
36.545455
0.794444
0
0
0
0
0
0.062035
0
0
0
0
0
0.333333
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
1
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
3
7f5d78371ccbb929342eff4154124e08e308dc40
3,408
py
Python
example-v4.py
Laukei/pyanc350
fbace7485dda4c3b9aad38c323130011a13bca9f
[ "MIT" ]
8
2019-11-27T09:31:23.000Z
2022-02-16T02:23:55.000Z
example-v4.py
Laukei/attocube-ANC350-Python-library
fbace7485dda4c3b9aad38c323130011a13bca9f
[ "MIT" ]
null
null
null
example-v4.py
Laukei/attocube-ANC350-Python-library
fbace7485dda4c3b9aad38c323130011a13bca9f
[ "MIT" ]
4
2016-06-29T20:46:19.000Z
2019-02-15T11:59:42.000Z
# # PyANC350v4 example file # by Brian Schaefer, adapted from pyanc-example.py by Rob Heath # from pyanc350.v4 import Positioner import time ax = {'x':0,'y':1,'z':2} #define a dict of axes to make things simpler anc = Positioner() #instantiate positioner as anc print('----------------------------------------------...
33.742574
114
0.610915
437
3,408
4.764302
0.304348
0.034582
0.053794
0.051873
0.378482
0.304995
0.292027
0.274736
0.274736
0.274736
0
0.029801
0.11385
3,408
100
115
34.08
0.659603
0.147887
0
0.333333
0
0
0.276758
0.105646
0
0
0
0
0
1
0
false
0
0.026667
0
0.026667
0.413333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
7f5eb990fc9bad4f6475bb538b62266b6b5e7f41
7,978
py
Python
legacy/examples/distribute_graphsage/model.py
zbmain/PGL
dbded6a1543248b0a33c05eb476ddc513401a774
[ "Apache-2.0" ]
1,389
2019-06-11T03:29:20.000Z
2022-03-29T18:25:43.000Z
legacy/examples/distribute_graphsage/model.py
zbmain/PGL
dbded6a1543248b0a33c05eb476ddc513401a774
[ "Apache-2.0" ]
232
2019-06-21T06:52:10.000Z
2022-03-29T08:20:31.000Z
legacy/examples/distribute_graphsage/model.py
zbmain/PGL
dbded6a1543248b0a33c05eb476ddc513401a774
[ "Apache-2.0" ]
229
2019-06-20T12:13:58.000Z
2022-03-25T12:04:48.000Z
# Copyright (c) 2019 PaddlePaddle Authors. 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 applic...
35.145374
81
0.564051
888
7,978
4.82545
0.217342
0.089848
0.057643
0.074679
0.529755
0.512019
0.472812
0.439907
0.41797
0.385531
0
0.009218
0.34733
7,978
226
82
35.300885
0.813712
0.084232
0
0.50289
0
0
0.044505
0.002885
0
0
0
0
0
1
0.069364
false
0
0.063584
0.023121
0.202312
0.00578
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0