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
ebd46501665ef14804cad30e021bdfbf04c1e3ec
398
py
Python
examples/python_test/dmsg.py
deepguider/RoadGPS
7db4669a54da98a854886b89b6922fb8c7a60f33
[ "Apache-2.0", "BSD-3-Clause" ]
2
2019-05-22T12:47:34.000Z
2019-05-23T15:43:47.000Z
examples/python_test/dmsg.py
deepguider/RoadGPS
7db4669a54da98a854886b89b6922fb8c7a60f33
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
examples/python_test/dmsg.py
deepguider/RoadGPS
7db4669a54da98a854886b89b6922fb8c7a60f33
[ "Apache-2.0", "BSD-3-Clause" ]
1
2019-08-09T06:50:46.000Z
2019-08-09T06:50:46.000Z
def dmsg(text_s = '', verbose = False): # Usage : dmsg('any message') if verbose: return import inspect frame = inspect.currentframe() fname = str.split(str(frame.f_back.f_code),'"')[1] # <code object dmsg at 0x7f63ad0a08a0, file "./../src/vps/vps.py", line 47> line = str(frame.f_back.f_line...
39.8
130
0.600503
55
398
4.236364
0.6
0.042918
0.077253
0.111588
0.120172
0
0
0
0
0
0
0.035714
0.226131
398
9
131
44.222222
0.720779
0.253769
0
0.222222
0
0
0.05102
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.444444
0.111111
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
ebd4bf911384cf2ba6e265a4043cfe86f5eb76c5
803
py
Python
python/yaml/test_systemd.py
colin-zhou/mrfs
12b8ed1f06bb1a8ed0637a3ee78231c5f8eec6d1
[ "MIT" ]
8
2017-12-23T10:40:57.000Z
2021-05-04T06:56:03.000Z
python/yaml/test_systemd.py
colin-zhou/mrfs
12b8ed1f06bb1a8ed0637a3ee78231c5f8eec6d1
[ "MIT" ]
null
null
null
python/yaml/test_systemd.py
colin-zhou/mrfs
12b8ed1f06bb1a8ed0637a3ee78231c5f8eec6d1
[ "MIT" ]
1
2019-01-29T06:39:04.000Z
2019-01-29T06:39:04.000Z
# -*- coding: utf-8 -*- import os def booted(context): ''' Return True if the system was booted with systemd, False otherwise. Pass in the loader context "__context__", this function will set the systemd.sd_booted key to represent if systemd is running ''' # We can cache this for as long as th...
34.913043
77
0.64259
108
803
4.601852
0.564815
0.112676
0.150905
0.132797
0
0
0
0
0
0
0
0.001669
0.254047
803
23
78
34.913043
0.828047
0.246575
0
0
0
0
0.247396
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ebdcd7af3bcbc8b0152e93f3c7ee5d702fc1284a
3,787
py
Python
tests/test_Random.py
ChinonsoChima/IS_218_Stats_Calc
8f494b5ac288d4cdc55ffd2cb2eb1a1707889aee
[ "MIT" ]
null
null
null
tests/test_Random.py
ChinonsoChima/IS_218_Stats_Calc
8f494b5ac288d4cdc55ffd2cb2eb1a1707889aee
[ "MIT" ]
null
null
null
tests/test_Random.py
ChinonsoChima/IS_218_Stats_Calc
8f494b5ac288d4cdc55ffd2cb2eb1a1707889aee
[ "MIT" ]
null
null
null
import unittest from src.randomGenerator import RandomGenerators class MyTestCase(unittest.TestCase): def setUp(self): self.randGenerator = RandomGenerators() print('') print('setUp') # execute after every test case function run. def tearDown(self): # release the Calculato...
41.615385
118
0.658041
408
3,787
6.009804
0.178922
0.159462
0.037113
0.048532
0.650082
0.638254
0.582382
0.404976
0.204731
0.204731
0
0.031336
0.233166
3,787
91
119
41.615385
0.813017
0.042778
0
0.22973
0
0
0.132836
0
0
0
0
0
0.054054
1
0.121622
false
0
0.027027
0
0.162162
0.432432
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
ebe13018e70c4d7c260668825af8bdff206fb470
198
py
Python
pytags/static.py
veltzer/tagger
889f188874c053d4c99f6d8a5237ed715ed55299
[ "MIT" ]
5
2017-06-26T15:23:15.000Z
2022-02-11T20:14:10.000Z
pytags/static.py
veltzer/tagger
889f188874c053d4c99f6d8a5237ed715ed55299
[ "MIT" ]
null
null
null
pytags/static.py
veltzer/tagger
889f188874c053d4c99f6d8a5237ed715ed55299
[ "MIT" ]
1
2017-07-31T22:29:38.000Z
2017-07-31T22:29:38.000Z
""" version which can be consumed from within the module """ VERSION_STR = "0.0.11" DESCRIPTION = "module to help you tag interesting places in your code" APP_NAME = "pytags" LOGGER_NAME = "pytags"
33
70
0.737374
31
198
4.612903
0.83871
0.13986
0
0
0
0
0
0
0
0
0
0.024096
0.161616
198
5
71
39.6
0.837349
0.262626
0
0
0
0
0.521739
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
ebe28e8e8c033a528355e1a9e2552517646093e0
1,511
py
Python
{{cookiecutter.project_name}}/setup.py
node13h/cookiecutter-python3
3c0864497b52b0fa3b2dcb6f31b18a8cf02d80ee
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/setup.py
node13h/cookiecutter-python3
3c0864497b52b0fa3b2dcb6f31b18a8cf02d80ee
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/setup.py
node13h/cookiecutter-python3
3c0864497b52b0fa3b2dcb6f31b18a8cf02d80ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() with open(path.join(here, 'VERSION')) as f: version = f.read(...
26.982143
80
0.675711
173
1,511
5.722543
0.514451
0.09596
0.054545
0.032323
0.09697
0
0
0
0
0
0
0.008045
0.177366
1,511
55
81
27.472727
0.788415
0.093978
0
0.081081
0
0
0.376281
0.142021
0
0
0
0
0
0
null
null
0
0.081081
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
ebe6b83a42cf33f156e2d92621a7c6884e8bf866
1,335
py
Python
sandbox/m2crypto_session.py
pombredanne/https-hg.sschwarzer.net-ftputil
ca866c4d6f086f8fc5160cd36c128bf9df31cfcf
[ "AFL-2.1" ]
1
2021-08-28T08:27:11.000Z
2021-08-28T08:27:11.000Z
sandbox/m2crypto_session.py
pombredanne/https-hg.sschwarzer.net-ftputil
ca866c4d6f086f8fc5160cd36c128bf9df31cfcf
[ "AFL-2.1" ]
1
2021-08-28T16:54:13.000Z
2021-08-28T16:54:13.000Z
sandbox/m2crypto_session.py
pombredanne/https-hg.sschwarzer.net-ftputil
ca866c4d6f086f8fc5160cd36c128bf9df31cfcf
[ "AFL-2.1" ]
1
2021-08-28T08:29:07.000Z
2021-08-28T08:29:07.000Z
# Copyright (C) 2014-2018, Stefan Schwarzer """ Session factory class for use with M2Crypto. Different from Python's `ftplib.FTP_TLS`, `M2Crypto.ftpslib.FTP_TLS` uses a special socket object. This object's `sendall` method doesn't work as expected for unicode arguments. This module provides a workaround by wrapping ...
29.021739
68
0.677154
181
1,335
4.867403
0.502762
0.040863
0.081725
0.095346
0.047673
0
0
0
0
0
0
0.018664
0.237453
1,335
45
69
29.666667
0.846758
0.527341
0
0
0
0
0
0
0
0
0
0
0
1
0.1875
false
0.125
0.125
0
0.4375
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
ccdaaa7db17a24c2866e3942c5534c6fab1e6229
1,033
py
Python
freecodecamp/lambda.py
podishad/pythontutorial
50a7431064e15f26afcb6b0cd34226e228222813
[ "Apache-2.0" ]
null
null
null
freecodecamp/lambda.py
podishad/pythontutorial
50a7431064e15f26afcb6b0cd34226e228222813
[ "Apache-2.0" ]
null
null
null
freecodecamp/lambda.py
podishad/pythontutorial
50a7431064e15f26afcb6b0cd34226e228222813
[ "Apache-2.0" ]
null
null
null
add10 = lambda x: x+10 print(add10(20)) square_of_numbers = lambda x: x*x print(square_of_numbers(9)) add_3_num = lambda x,y,z: x+y+z print(add_3_num(10,50,100)) points2D = [(1, 9), (4, 1), (5, -3), (10, 2)] points2D_sorted = sorted(points2D) print(points2D_sorted) points2D_sorted = sorted(points2D, key = lambda x...
20.66
73
0.71152
192
1,033
3.682292
0.286458
0.02546
0.067893
0.118812
0.291372
0.070721
0
0
0
0
0
0.062571
0.14908
1,033
50
74
20.66
0.741752
0.131655
0
0.241379
0
0
0
0
0
0
0
0
0
1
0.034483
false
0
0.034483
0.034483
0.103448
0.413793
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
ccdb46866d5049197776beed5f0a9c82e1c6273b
3,208
py
Python
sniffer/httpsniff.py
robspassky/whelan
6f4860dd537a474cb9d35dd95cd73e013fcbf92b
[ "MIT" ]
null
null
null
sniffer/httpsniff.py
robspassky/whelan
6f4860dd537a474cb9d35dd95cd73e013fcbf92b
[ "MIT" ]
null
null
null
sniffer/httpsniff.py
robspassky/whelan
6f4860dd537a474cb9d35dd95cd73e013fcbf92b
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ This will listen for all http GET requests on the given interface. """ import sys import pcap import string import socket import struct protocols = { socket.IPPROTO_TCP: 'tcp', socket.IPPROTO_UDP: 'udp', socket.IPPROTO_ICMP: 'icmp' } def decode_ip_packet(s): d = {} d['...
30.846154
78
0.546135
503
3,208
3.413519
0.349901
0.022132
0.079208
0.107164
0.19802
0.188701
0.086779
0.03378
0.03378
0.03378
0
0.065386
0.237219
3,208
103
79
31.145631
0.636289
0.072319
0
0.051282
0
0
0.146805
0
0
0
0.019344
0
0
0
null
null
0
0.064103
null
null
0.102564
0
0
0
null
0
0
0
0
0
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
ccdf7217653af6867f17836ea8bf7dd52e0de0f3
3,080
py
Python
applications/c-toxcore/other/fun/make-funny-savefile.py
gaohangaohan/qkd-net
90f52104412b5c5c82668362dbd3e4791261f332
[ "MIT" ]
17
2019-04-21T14:10:57.000Z
2022-03-26T09:32:53.000Z
applications/c-toxcore/other/fun/make-funny-savefile.py
gaohangaohan/qkd-net
90f52104412b5c5c82668362dbd3e4791261f332
[ "MIT" ]
22
2019-01-11T19:13:44.000Z
2022-02-26T17:58:32.000Z
applications/c-toxcore/other/fun/make-funny-savefile.py
gaohangaohan/qkd-net
90f52104412b5c5c82668362dbd3e4791261f332
[ "MIT" ]
17
2019-03-06T17:29:29.000Z
2021-08-10T10:17:09.000Z
#!/usr/bin/python """ Generate a new (and empty) save file with predefined keys. Used to play with externally generated keys. (c) 2015 Alexandre Erwin Ittner Distributed under the GNU GPL v3 or later, WITHOUT ANY WARRANTY. See the file "LICENSE.md" for license information. Usage: ./make-funny-savefile.py <publi...
25.04065
177
0.710714
443
3,080
4.751693
0.397291
0.099762
0.094062
0.027078
0.12019
0.08361
0.08361
0.08361
0.051306
0.051306
0
0.051932
0.193506
3,080
122
178
25.245902
0.795491
0.352597
0
0.084746
1
0
0.114704
0
0
0
0.008085
0
0
1
0.033898
false
0
0.050847
0.016949
0.101695
0.016949
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
cce47cccd912277e00c7d7fdb147d2c41a24646e
605
py
Python
hivwholeseq/data/_secret.py
neherlab/hivwholeseq
978ce4060362e4973f92b122ed5340a5314d7844
[ "MIT" ]
3
2016-09-13T12:15:47.000Z
2021-07-03T01:28:56.000Z
hivwholeseq/data/_secret.py
iosonofabio/hivwholeseq
d504c63b446c3a0308aad6d6e484ea1666bbe6df
[ "MIT" ]
null
null
null
hivwholeseq/data/_secret.py
iosonofabio/hivwholeseq
d504c63b446c3a0308aad6d6e484ea1666bbe6df
[ "MIT" ]
3
2016-01-17T03:43:46.000Z
2020-03-25T07:00:11.000Z
# vim: fdm=indent ''' author: Fabio Zanini date: 31/08/15 content: Module that contains fast conversion factories between private and anonymyzed versions of data. Such a module is useful during research development, when consensus on anonymized patient/sample names has ...
35.588235
80
0.68595
82
605
5.04878
0.829268
0.033816
0
0
0
0
0
0
0
0
0
0.015556
0.256198
605
16
81
37.8125
0.904444
0.915702
0
0
0
0
0.243902
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ccf382e92ed8609b537c9768fe6a76289ffa6e61
459
py
Python
cpa/profiling/tests/test_preprocessing.py
oba14/CellProfiler-Analyst
7e194e72e8ce8440ce7c16196cb91c50052c2df1
[ "MIT" ]
1
2020-01-16T14:24:08.000Z
2020-01-16T14:24:08.000Z
cpa/profiling/tests/test_preprocessing.py
oba14/CellProfiler-Analyst
7e194e72e8ce8440ce7c16196cb91c50052c2df1
[ "MIT" ]
null
null
null
cpa/profiling/tests/test_preprocessing.py
oba14/CellProfiler-Analyst
7e194e72e8ce8440ce7c16196cb91c50052c2df1
[ "MIT" ]
null
null
null
from unittest import TestCase from cpa.profiling import preprocessing class NullPreprocessorTestCase(TestCase): def test_init(self): variables = ['foo', 'bar', 'baz'] p = preprocessing.NullPreprocessor(variables) assert isinstance(p, preprocessing.Preprocessor) assert p.variables ==...
30.6
56
0.673203
46
459
6.673913
0.543478
0.136808
0.19544
0
0
0
0
0
0
0
0
0
0.228758
459
14
57
32.785714
0.867232
0
0
0
0
0
0.019608
0
0
0
0
0
0.25
1
0.166667
false
0
0.166667
0
0.416667
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ccfbd045ff50cb902ccdf0435a0dfaaa5ea4d047
842
py
Python
Game/duckhunt/game/gun.py
nenad-misic/DuckHunt
5c4cb48d886b0fda73bd16ca87c42996531bbc59
[ "MIT" ]
null
null
null
Game/duckhunt/game/gun.py
nenad-misic/DuckHunt
5c4cb48d886b0fda73bd16ca87c42996531bbc59
[ "MIT" ]
11
2020-03-24T17:58:26.000Z
2022-03-12T00:09:57.000Z
Game/duckhunt/game/gun.py
nenad-misic/DuckHunt
5c4cb48d886b0fda73bd16ca87c42996531bbc59
[ "MIT" ]
null
null
null
import os, sys import pygame class Gun(object): def __init__(self, registry): self.registry = registry self.rounds = 3 self.mousePos = (0,0) # Starting postion self.mouseImg = pygame.image.load(os.path.join('media', 'crosshairs.png')) def render(self): surface = self.re...
27.16129
82
0.593824
102
842
4.843137
0.470588
0.101215
0.044534
0
0
0
0
0
0
0
0
0.013223
0.281473
842
30
83
28.066667
0.803306
0.068884
0
0.086957
0
0
0.055058
0
0
0
0
0
0
1
0.217391
false
0
0.086957
0
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
690094b1e2f0bd953fcf9ed2b442beef21a32730
1,563
py
Python
html2md/converter/Rules.py
IstvanOri/HTML2MD
f358a25135f9ca28266c774dafc4948cb8df33e6
[ "Beerware" ]
null
null
null
html2md/converter/Rules.py
IstvanOri/HTML2MD
f358a25135f9ca28266c774dafc4948cb8df33e6
[ "Beerware" ]
null
null
null
html2md/converter/Rules.py
IstvanOri/HTML2MD
f358a25135f9ca28266c774dafc4948cb8df33e6
[ "Beerware" ]
1
2021-11-08T01:53:55.000Z
2021-11-08T01:53:55.000Z
import os from html2md import LOCATIONS from html2md.converter.Rule import Rule # TODO: duplicate code, see Transformer.py def _get_class(kls): parts = kls.split('.') module = ".".join(parts[:-1]) m = __import__( module ) for comp in parts[1:]: m = getattr(m, comp) return m class Rules(...
34.733333
107
0.575176
181
1,563
4.712707
0.370166
0.103165
0.084408
0.053927
0
0
0
0
0
0
0
0.008212
0.298784
1,563
44
108
35.522727
0.770073
0.06398
0
0
0
0
0.038701
0
0
0
0
0.022727
0
1
0.090909
false
0
0.121212
0.030303
0.30303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
6905ee244da5b5e2781a3a650ba32436355f8092
570
py
Python
core/migrations/0009_piece_turn_destroyed.py
johnpooch/diplomacy
567db5c5cfefa99f176bacbfe469977474aa8a86
[ "MIT" ]
1
2020-07-21T18:10:29.000Z
2020-07-21T18:10:29.000Z
core/migrations/0009_piece_turn_destroyed.py
johnpooch/diplomacy
567db5c5cfefa99f176bacbfe469977474aa8a86
[ "MIT" ]
142
2020-04-07T17:36:34.000Z
2021-06-07T00:20:47.000Z
core/migrations/0009_piece_turn_destroyed.py
johnpooch/diplomacy
567db5c5cfefa99f176bacbfe469977474aa8a86
[ "MIT" ]
3
2018-08-30T08:58:27.000Z
2021-02-28T03:34:26.000Z
# Generated by Django 3.1.7 on 2021-04-29 15:19 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0008_auto_20210426_1518'), ] operations = [ migrations.AddField( model_name='piece', ...
28.5
199
0.657895
71
570
5.169014
0.690141
0.065395
0.076294
0.119891
0
0
0
0
0
0
0
0.069663
0.219298
570
19
200
30
0.755056
0.078947
0
0
1
0
0.196941
0.043977
0.076923
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
690ebd62500961ff963b3494e79057a4c27903f7
1,192
py
Python
Homework #4/homework #4.py
Vinciwayne/python-is-easy
f501b06ef2702e1a4360d9b8f6ae9c4747f95e17
[ "MIT" ]
null
null
null
Homework #4/homework #4.py
Vinciwayne/python-is-easy
f501b06ef2702e1a4360d9b8f6ae9c4747f95e17
[ "MIT" ]
null
null
null
Homework #4/homework #4.py
Vinciwayne/python-is-easy
f501b06ef2702e1a4360d9b8f6ae9c4747f95e17
[ "MIT" ]
null
null
null
""" lists """ myUniqueList = [] myLeftovers = [] def addToList(animal): if animal in myUniqueList: addToLeftovers(animal) return False else: myUniqueList.append(animal) return True def addToLeftovers(animal): myLeftovers.append(animal) # Test the addToList function p...
18.625
54
0.671141
132
1,192
6.060606
0.25
0.14875
0.15
0.14
0.60875
0.495
0.4425
0.2425
0.125
0
0
0
0.166946
1,192
64
55
18.625
0.805639
0.34396
0
0.566667
0
0
0.030899
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.133333
0.633333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
69109a25b018d85a5aeba0d8780e21b9dd43268a
10,716
py
Python
webapp/main/models.py
joepetrini/bike-counter
e22190d7225ee54e7327efe43861f85c49c0bbd7
[ "MIT" ]
5
2015-01-09T00:54:43.000Z
2021-06-16T20:46:45.000Z
webapp/main/models.py
joepetrini/bike-counter
e22190d7225ee54e7327efe43861f85c49c0bbd7
[ "MIT" ]
4
2015-06-30T12:04:22.000Z
2017-02-08T00:11:19.000Z
webapp/main/models.py
joepetrini/bike-counter
e22190d7225ee54e7327efe43861f85c49c0bbd7
[ "MIT" ]
2
2015-01-07T02:46:27.000Z
2015-07-01T19:43:03.000Z
#from django.utils.translation import ugettext as _ import datetime from django.db import models from django.db.models import Q from django.contrib.auth.models import User from model_utils.models import TimeStampedModel from django.utils.timezone import now from model_utils import Choices from django.utils import t...
33.176471
129
0.668906
1,288
10,716
5.40528
0.170807
0.031026
0.04108
0.05372
0.460787
0.367136
0.289859
0.281959
0.259695
0.184861
0
0.012867
0.223964
10,716
322
130
33.279503
0.824315
0.053845
0
0.271186
0
0
0.052907
0
0
0
0
0
0
1
0.105932
false
0.004237
0.033898
0.063559
0.665254
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6914079a65ece2d27d44a75ed0db7d18976c3157
1,332
py
Python
deliver/social/api/serializers.py
Untouchable17/social-web
cb14ae28adb7d887d32c675469d8aa5f605403c5
[ "MIT" ]
1
2021-06-15T16:39:26.000Z
2021-06-15T16:39:26.000Z
deliver/social/api/serializers.py
Untouchable17/social-web
cb14ae28adb7d887d32c675469d8aa5f605403c5
[ "MIT" ]
null
null
null
deliver/social/api/serializers.py
Untouchable17/social-web
cb14ae28adb7d887d32c675469d8aa5f605403c5
[ "MIT" ]
null
null
null
from rest_framework import serializers from social.models import Post, Comment, UserProfile class CommentSerializer(serializers.ModelSerializer): class Meta: model = Comment fields = '__all__' class PostSerializer(serializers.ModelSerializer): comments = CommentSerializer(many=True, requir...
31.714286
86
0.696697
127
1,332
7.23622
0.377953
0.104461
0.15234
0.174102
0
0
0
0
0
0
0
0
0.194444
1,332
42
87
31.714286
0.856477
0
0
0.16129
0
0
0.090023
0
0
0
0
0
0
1
0
false
0
0.064516
0
0.677419
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
691666eb70a3835d31d820e890f2485e57176700
336
py
Python
contacts/migrations/0002_auto_20181226_2115.py
ShahriyarR/Django-CRM
c948b3423ff73a674f3a0ffebc0ff425af2151b5
[ "MIT" ]
null
null
null
contacts/migrations/0002_auto_20181226_2115.py
ShahriyarR/Django-CRM
c948b3423ff73a674f3a0ffebc0ff425af2151b5
[ "MIT" ]
null
null
null
contacts/migrations/0002_auto_20181226_2115.py
ShahriyarR/Django-CRM
c948b3423ff73a674f3a0ffebc0ff425af2151b5
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2018-12-26 15:45 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('contacts', '0001_initial'), ] operations = [ migrations.AlterUniqueTogether( name='contact', unique_together={('email',)}, ...
18.666667
47
0.58631
33
336
5.909091
0.848485
0
0
0
0
0
0
0
0
0
0
0.079498
0.28869
336
17
48
19.764706
0.736402
0.133929
0
0
1
0
0.110727
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6923162309934b740d6e1b39e2a810571a66aae0
530
py
Python
blog/migrations/0004_auto_20211123_1508.py
vanessauab1/my-first-blog
54e0edb7d21e1328139dc58e1e3d181e08784e16
[ "MIT" ]
null
null
null
blog/migrations/0004_auto_20211123_1508.py
vanessauab1/my-first-blog
54e0edb7d21e1328139dc58e1e3d181e08784e16
[ "MIT" ]
null
null
null
blog/migrations/0004_auto_20211123_1508.py
vanessauab1/my-first-blog
54e0edb7d21e1328139dc58e1e3d181e08784e16
[ "MIT" ]
1
2021-11-17T23:54:51.000Z
2021-11-17T23:54:51.000Z
# Generated by Django 2.2.24 on 2021-11-23 18:08 from django.db import migrations import django_resized.forms class Migration(migrations.Migration): dependencies = [ ('blog', '0003_auto_20211119_2056'), ] operations = [ migrations.AlterField( model_name='post', n...
26.5
176
0.64717
64
530
5.21875
0.796875
0.077844
0.107784
0
0
0
0
0
0
0
0
0.097561
0.226415
530
19
177
27.894737
0.717073
0.086792
0
0
1
0
0.099585
0.047718
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
69282ed5fbeca270c5b30dd076184a56feb61e77
1,851
py
Python
scripts/commands/db_migration.py
stevekineeve88/doubloon
4c7c9163e96877ad23663c3dd9a73ef6ccde3e22
[ "MIT" ]
null
null
null
scripts/commands/db_migration.py
stevekineeve88/doubloon
4c7c9163e96877ad23663c3dd9a73ef6ccde3e22
[ "MIT" ]
8
2021-01-29T15:49:17.000Z
2021-10-14T01:03:27.000Z
scripts/commands/db_migration.py
stevekineeve88/doubloon
4c7c9163e96877ad23663c3dd9a73ef6ccde3e22
[ "MIT" ]
null
null
null
from argparse import ArgumentParser from environment import Environment from modules.migration.managers.migration_manager import MigrationManager """ Script for running database migrations """ def parse_args(): """Parses argument parameters """ parser = ArgumentParser() parser.add_argument( '...
27.220588
73
0.648838
187
1,851
6.213904
0.304813
0.038726
0.07315
0.086059
0.120482
0.095525
0
0
0
0
0
0
0.23933
1,851
67
74
27.626866
0.825284
0.014046
0
0.263158
0
0
0.178733
0
0
0
0
0
0
1
0.017544
false
0.070175
0.052632
0
0.087719
0.070175
0
0
0
null
0
0
0
0
0
0
0
0
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
692bb9fe2c98600057674624b0b0c0da98bcf0db
4,780
py
Python
src/cargoscan/views/ui_mainwindow.py
GunfighterJ/cargoscan
02252ba53cf2f22c8a85434b584fa72c3e52289e
[ "MIT" ]
4
2017-07-07T23:12:06.000Z
2018-06-03T15:08:09.000Z
src/cargoscan/views/ui_mainwindow.py
GunfighterJ/cargoscan
02252ba53cf2f22c8a85434b584fa72c3e52289e
[ "MIT" ]
1
2018-09-01T13:48:16.000Z
2018-09-01T13:48:16.000Z
src/cargoscan/views/ui_mainwindow.py
GunfighterJ/cargoscan
02252ba53cf2f22c8a85434b584fa72c3e52289e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'resources\ui\mainwindow.ui' # # Created: Sat Jul 15 12:57:34 2017 # by: pyside-uic 0.2.15 running on PySide 1.2.4 # # WARNING! All changes made in this file will be lost! from PySide import QtCore, QtGui class Ui_MainWindow(object): ...
50.851064
128
0.722176
488
4,780
7.016393
0.25
0.036799
0.031542
0.031542
0.29264
0.185748
0.13785
0.088201
0.037383
0.037383
0
0.028535
0.171548
4,780
93
129
51.397849
0.836111
0.05
0
0.1
1
0
0.037062
0
0
0
0
0
0
1
0.025
false
0
0.025
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
692bc10de2a01d91c44676b167d271f7386c19de
1,259
py
Python
app.py
kbiters/infram
dcba92670e10046126a7ac2f97e2ee8c8da9d255
[ "Apache-2.0" ]
19
2021-08-03T12:30:37.000Z
2021-08-30T14:00:16.000Z
app.py
kbiters/infram
dcba92670e10046126a7ac2f97e2ee8c8da9d255
[ "Apache-2.0" ]
null
null
null
app.py
kbiters/infram
dcba92670e10046126a7ac2f97e2ee8c8da9d255
[ "Apache-2.0" ]
1
2021-08-12T22:06:01.000Z
2021-08-12T22:06:01.000Z
from time import time, sleep import pyautogui from src.json import config from src.operations.mouse import find_image_click from src.operations.windows import start_brave from src.service.auto_update import latest_version_check from src.service.constants import Config, Image from src.service.main_window import show_m...
25.18
89
0.679905
169
1,259
4.781065
0.360947
0.07797
0.10396
0.05198
0.079208
0
0
0
0
0
0
0.017876
0.244639
1,259
49
90
25.693878
0.831756
0.046068
0
0
0
0
0.006672
0
0
0
0
0
0
1
0.029412
false
0
0.323529
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
693446191798cc8ce407b7442a89c558f34d1d5a
6,251
py
Python
emulator/manic_miner/py_zx/load.py
rola93/pgTK90
2111f1968a29979d9b850f840ab86a1ae0673180
[ "MIT" ]
null
null
null
emulator/manic_miner/py_zx/load.py
rola93/pgTK90
2111f1968a29979d9b850f840ab86a1ae0673180
[ "MIT" ]
null
null
null
emulator/manic_miner/py_zx/load.py
rola93/pgTK90
2111f1968a29979d9b850f840ab86a1ae0673180
[ "MIT" ]
null
null
null
import sys import Z80 def loadZ80(name): compressed = False; f = open( name, 'rb') header_str = f.read(30) header = [ord(b) for b in header_str] Z80.A( header[0] ); Z80.F( header[1] ); Z80.C( header[2] ); Z80.B( header[3] ); Z80.L( header[4] ); Z80.H( header[5] ); Z80.PC( header[6] | (he...
18.715569
85
0.509838
950
6,251
3.335789
0.182105
0.0284
0.022089
0.025245
0.392868
0.349006
0.339539
0.324077
0.299464
0.299464
0
0.119861
0.31131
6,251
333
86
18.771772
0.61626
0.05999
0
0.437262
0
0
0.24257
0
0
0
0.010308
0.003003
0
0
null
null
0
0.007605
null
null
0.053232
0
0
0
null
0
0
0
0
0
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
6939b5da6d9276e01081271999b144bc5833c089
1,044
py
Python
Problem Solving/codebasics problems/Codebasics Array.py
prathimacode-hub/PythonScripts
e80d472705315b55ae61205c4606c46dcbf62cfc
[ "MIT" ]
5
2020-11-24T12:32:11.000Z
2020-12-08T18:14:25.000Z
Problem Solving/codebasics problems/Codebasics Array.py
prathimacode-hub/PythonScripts
e80d472705315b55ae61205c4606c46dcbf62cfc
[ "MIT" ]
2
2021-06-23T13:01:34.000Z
2021-07-07T04:00:41.000Z
Problem Solving/codebasics problems/Codebasics Array.py
prathimacode-hub/PythonScripts
e80d472705315b55ae61205c4606c46dcbf62cfc
[ "MIT" ]
8
2020-11-24T09:48:02.000Z
2021-05-28T15:10:12.000Z
''' Let us say your expense for every month are listed below, January - 2200 February - 2350 March - 2600 April - 2130 May - 2190 Create a list to store these monthly expenses and using that find out, 1. In Feb, how many dollars you spent extra compare to January? 2. Find out your total expense in first quarter (first...
25.463415
102
0.727011
180
1,044
4.216667
0.527778
0.027668
0.047431
0
0
0
0
0
0
0
0
0.099644
0.192529
1,044
40
103
26.1
0.800712
0.675287
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.071429
0
0
0
0.357143
0
0
0
null
0
0
0
0
0
0
0
0
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
693e2367253db71ea28b061d8f705d8b4aa9ecf9
872
py
Python
dbdaora/data_sources/fallback/dict.py
dutradda/sqldataclass
5c87a3818e9d736bbf5e1438edc5929a2f5acd3f
[ "MIT" ]
21
2019-10-14T14:33:33.000Z
2022-02-11T04:43:07.000Z
dbdaora/data_sources/fallback/dict.py
dutradda/sqldataclass
5c87a3818e9d736bbf5e1438edc5929a2f5acd3f
[ "MIT" ]
null
null
null
dbdaora/data_sources/fallback/dict.py
dutradda/sqldataclass
5c87a3818e9d736bbf5e1438edc5929a2f5acd3f
[ "MIT" ]
1
2019-09-29T23:51:44.000Z
2019-09-29T23:51:44.000Z
import dataclasses from typing import Any, ClassVar, Dict, Iterable, Optional from dbdaora.data_sources.fallback import FallbackDataSource @dataclasses.dataclass class DictFallbackDataSource(FallbackDataSource[str]): db: Dict[Optional[str], Dict[str, Any]] = dataclasses.field( default_factory=dict ) ...
31.142857
79
0.663991
120
872
4.766667
0.358333
0.073427
0.06993
0.055944
0.076923
0.076923
0
0
0
0
0
0
0.202982
872
27
80
32.296296
0.823022
0
0
0
0
0
0.001147
0
0
0
0
0
0
1
0.052632
false
0
0.157895
0.052632
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
693ebba6527ee721006465cef2a3853bb4edb862
291
py
Python
src/CursoEmvideo/ex023.py
kessiarodrigues/Python-Course
2e6097af4475d826c2b242d4699aec72301060f7
[ "MIT" ]
null
null
null
src/CursoEmvideo/ex023.py
kessiarodrigues/Python-Course
2e6097af4475d826c2b242d4699aec72301060f7
[ "MIT" ]
null
null
null
src/CursoEmvideo/ex023.py
kessiarodrigues/Python-Course
2e6097af4475d826c2b242d4699aec72301060f7
[ "MIT" ]
null
null
null
num = int(input('Informe um número: ')).strip() u = num // 1 % 10 d = num // 10 % 10 c = num // 100 % 10 m = num // 1000 % 10 print('Analisando o número {}'.format(num)) print('minhar: {}'.format(m)) print('centena: {}'.format(c)) print('dezena: {}'.format(d)) print('unidade: {}'.format(u))
29.1
47
0.584192
45
291
3.777778
0.511111
0
0
0
0
0
0
0
0
0
0
0.073171
0.154639
291
10
48
29.1
0.617886
0
0
0
0
0
0.284247
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
694ca1f1bad6cf8e77fb14535e71b2ce66c4e186
960
py
Python
mpi/mpi_worker.py
RuiShu/nn-bayesian-optimization
e98dc326344d1dc3609de5fc3eb472e06d48d6af
[ "MIT" ]
56
2017-12-11T12:09:38.000Z
2022-02-25T12:14:19.000Z
mpi/mpi_worker.py
SiddarthKrishnamoorthy/nn-bayesian-optimization
87654c31c15ed9cd964e1d83f3277280272b7df1
[ "MIT" ]
2
2017-12-02T16:16:15.000Z
2019-08-19T02:28:40.000Z
mpi/mpi_worker.py
SiddarthKrishnamoorthy/nn-bayesian-optimization
87654c31c15ed9cd964e1d83f3277280272b7df1
[ "MIT" ]
20
2015-12-07T03:28:45.000Z
2017-11-06T15:09:36.000Z
""" @Author: Rui Shu @Date: 4/11/15 Worker -- compute the costly function. Returns function evaluation. """ from mpi_definitions import * def worker_process(rank): from learning_objective.hidden_function import evaluate, get_settings lim_domain = get_settings(lim_domain_only=True) while True: c...
29.090909
108
0.628125
127
960
4.614173
0.535433
0.027304
0.040956
0.068259
0
0
0
0
0
0
0
0.015759
0.272917
960
32
109
30
0.823782
0.148958
0
0
0
0
0.058321
0
0
0
0
0
0
0
null
null
0
0.133333
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
695116f68ec2ee6cba82f0a0639bf42b43d2f7b3
580
py
Python
backend/vsearch/migrations/0002_shalookup.py
vframeio/vcat
554e94a819818131ddf5ec3db9f0ca4d2795313e
[ "MIT" ]
5
2018-11-26T07:43:39.000Z
2020-03-09T08:01:39.000Z
backend/vsearch/migrations/0002_shalookup.py
vframeio/_vcat_archived
554e94a819818131ddf5ec3db9f0ca4d2795313e
[ "MIT" ]
null
null
null
backend/vsearch/migrations/0002_shalookup.py
vframeio/_vcat_archived
554e94a819818131ddf5ec3db9f0ca4d2795313e
[ "MIT" ]
1
2020-04-30T11:16:04.000Z
2020-04-30T11:16:04.000Z
# Generated by Django 2.0.1 on 2018-10-02 17:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('vsearch', '0001_initial'), ] operations = [ migrations.CreateModel( name='ShaLookup', fields=[ ('id'...
26.363636
114
0.574138
61
580
5.344262
0.754098
0.092025
0
0
0
0
0
0
0
0
0
0.065693
0.291379
580
21
115
27.619048
0.727494
0.077586
0
0
1
0
0.076923
0
0
0
0
0
0
1
0
false
0
0.066667
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6952b35c888437e63106ef54467eba23b01c0b36
10,717
py
Python
data_management/toolboxes/mdcs/scripts/SetMDProperties/SetMDProperties.py
jscott11/solutions-geoprocessing-toolbox
beafdfa8626eefc5c1e781edd96bfcdd42697c61
[ "Apache-2.0" ]
null
null
null
data_management/toolboxes/mdcs/scripts/SetMDProperties/SetMDProperties.py
jscott11/solutions-geoprocessing-toolbox
beafdfa8626eefc5c1e781edd96bfcdd42697c61
[ "Apache-2.0" ]
null
null
null
data_management/toolboxes/mdcs/scripts/SetMDProperties/SetMDProperties.py
jscott11/solutions-geoprocessing-toolbox
beafdfa8626eefc5c1e781edd96bfcdd42697c61
[ "Apache-2.0" ]
1
2018-10-25T15:52:41.000Z
2018-10-25T15:52:41.000Z
#------------------------------------------------------------------------------ # Copyright 2013 Esri # 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/LICENS...
46.799127
213
0.584772
955
10,717
6.293194
0.280628
0.151747
0.189684
0.019967
0.417804
0.300166
0.234942
0.216306
0.216306
0.200333
0
0.012925
0.321359
10,717
228
214
47.004386
0.81342
0.120649
0
0.463687
0
0
0.101278
0.036102
0
0
0
0
0
1
0.027933
false
0
0.01676
0.005587
0.089385
0.03352
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
69595bed2fcfd9993c4b0a0d4ae52dc13b3894ec
3,179
py
Python
openstackclient/compute/v2/floatingip.py
alvarosimon/python-openstackclient
2ab3396f19796935ddcb281b865d37839a4f84f7
[ "Apache-2.0" ]
1
2018-04-23T20:59:31.000Z
2018-04-23T20:59:31.000Z
openstackclient/compute/v2/floatingip.py
adgeese/python-openstackclient
06263bd5852aad9cd03a76f50140fbbb2d0751ba
[ "Apache-2.0" ]
null
null
null
openstackclient/compute/v2/floatingip.py
adgeese/python-openstackclient
06263bd5852aad9cd03a76f50140fbbb2d0751ba
[ "Apache-2.0" ]
1
2020-07-21T02:18:23.000Z
2020-07-21T02:18:23.000Z
# Copyright 2013 OpenStack Foundation # # 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 ...
32.438776
78
0.648946
386
3,179
5.217617
0.326425
0.053625
0.027805
0.015889
0.591857
0.591857
0.563059
0.563059
0.563059
0.517378
0
0.004286
0.266121
3,179
97
79
32.773196
0.85898
0.29978
0
0.576923
0
0
0.226715
0
0
0
0
0.010309
0
1
0.076923
false
0
0.076923
0
0.346154
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
695b3e96861cf838975bfa5414a0e453e54d0d33
2,006
py
Python
RPG_inventory.py
katepepper/RPG
2be102fa4946b9f0e9a3356e4f30fc914792d3f0
[ "Unlicense" ]
null
null
null
RPG_inventory.py
katepepper/RPG
2be102fa4946b9f0e9a3356e4f30fc914792d3f0
[ "Unlicense" ]
null
null
null
RPG_inventory.py
katepepper/RPG
2be102fa4946b9f0e9a3356e4f30fc914792d3f0
[ "Unlicense" ]
null
null
null
# Course: CS 30 # Period: 1 # Date created: 2020/02/12 # Date last modified: 2020/03/11 # Name: Kate Pepper # Desrcription: A set of lists for a Clue RPG """A list of all of the suspects of the murder""" # Original suspect list suspects = ['Evelyn Finch', 'George Brown', 'Madeline Brown', 'Stephen Turner'] p...
30.393939
80
0.691924
292
2,006
4.746575
0.373288
0.038961
0.049062
0.01443
0.054834
0.021645
0
0
0
0
0
0.012712
0.176471
2,006
65
81
30.861538
0.826271
0.307079
0
0.45
0
0
0.421495
0.020151
0
0
0
0
0
1
0
false
0
0
0
0
0.675
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
695b8e1a7b844ec4a0bdadc5f05a9e4686ddca44
12,527
py
Python
centinel/primitives/headless_browser.py
mikiec84/centinel
39fc263e71e85135fa3d65513e1d417ef76388ea
[ "MIT" ]
29
2015-02-12T22:39:27.000Z
2022-01-25T13:03:18.000Z
centinel/primitives/headless_browser.py
mikiec84/centinel
39fc263e71e85135fa3d65513e1d417ef76388ea
[ "MIT" ]
158
2015-01-03T02:29:58.000Z
2021-02-05T18:35:56.000Z
centinel/primitives/headless_browser.py
mikiec84/centinel
39fc263e71e85135fa3d65513e1d417ef76388ea
[ "MIT" ]
22
2015-02-11T05:08:49.000Z
2022-01-25T13:03:33.000Z
import shutil import csv import json import logging import os import sys import time from pyvirtualdisplay import Display from selenium import webdriver from selenium.webdriver.firefox.firefox_binary import FirefoxBinary import foctor_core.foctor_core as fc class HeadlessBrowser: def __init__(self): sel...
37.960606
118
0.548096
1,463
12,527
4.593301
0.226931
0.011607
0.03869
0.053571
0.176339
0.147768
0.079167
0.049405
0.025595
0.014881
0
0.009232
0.342859
12,527
329
119
38.075988
0.807094
0.079029
0
0.124378
0
0
0.124632
0.054738
0
0
0
0
0
0
null
null
0
0.054726
null
null
0.00995
0
0
0
null
0
0
0
0
0
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
695cf3d155f84280f62d31f497062957807bff12
414
py
Python
models/base.py
lalala223/flask-restful-project-structure
2c7145df0f9feea1ba00e104c859bb61ec0c1e7b
[ "MIT" ]
52
2019-06-09T13:13:29.000Z
2022-03-13T06:49:48.000Z
models/base.py
lalala223/flask-restful-project-structure
2c7145df0f9feea1ba00e104c859bb61ec0c1e7b
[ "MIT" ]
2
2019-11-10T10:19:35.000Z
2020-04-20T07:51:07.000Z
models/base.py
lalala223/flask-restful-project-structure
2c7145df0f9feea1ba00e104c859bb61ec0c1e7b
[ "MIT" ]
23
2019-06-13T08:36:17.000Z
2021-11-09T03:03:50.000Z
# -*- coding: utf-8 -*- import datetime from . import db class BaseModel(object): """ 数据基础类 """ id = db.Column(db.Integer, primary_key=True, autoincrement=True) is_delete = db.Column(db.BOOLEAN, default=False) create_time = db.Column(db.DATETIME(6), default=datetime.datetime.now) update_ti...
29.571429
106
0.698068
56
414
5.089286
0.517857
0.112281
0.140351
0.098246
0.34386
0.34386
0.34386
0.34386
0.34386
0.34386
0
0.008571
0.154589
414
13
107
31.846154
0.805714
0.067633
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.285714
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
1
0
0
1
69634220c9ea1844b56ea16870792563245dae43
532
py
Python
memos/python/ftp.py
Bingwen-Hu/hackaway
69727d76fd652390d9660e9ea4354ba5cc76dd5c
[ "BSD-2-Clause" ]
null
null
null
memos/python/ftp.py
Bingwen-Hu/hackaway
69727d76fd652390d9660e9ea4354ba5cc76dd5c
[ "BSD-2-Clause" ]
null
null
null
memos/python/ftp.py
Bingwen-Hu/hackaway
69727d76fd652390d9660e9ea4354ba5cc76dd5c
[ "BSD-2-Clause" ]
null
null
null
import ftplib import os.path host = 'localhost' username = 'mory' password = '2Foralfv' server = ftplib.FTP(host) server.login(username, password) def upload(server, filename, bufsize=1024): pwd = server.pwd() basename = os.path.basename(filename) ftp_path = os.path.join(pwd, f"ftp_{basename}") with...
25.333333
68
0.691729
74
532
4.905405
0.581081
0.049587
0
0
0
0
0
0
0
0
0
0.011312
0.169173
532
20
69
26.6
0.809955
0.067669
0
0
0
0
0.168016
0.078947
0
0
0
0
0
1
0.071429
false
0.142857
0.142857
0
0.214286
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
6963974d16dc1864ad2e890c8fa4a21cb25c79c4
454
py
Python
data.py
Cj-bc/pirka-ai
549f0458d11fd19ee2fc433e7659432efd4328ce
[ "RSA-MD" ]
26
2019-01-26T03:12:44.000Z
2020-06-02T07:18:47.000Z
data.py
pirka-ai/pirka-ai
f3406268b158e2903f1be73ae9fa2fbb2e5b244e
[ "RSA-MD" ]
2
2019-01-26T13:38:28.000Z
2019-02-02T09:18:42.000Z
data.py
Cj-bc/pirka-ai
549f0458d11fd19ee2fc433e7659432efd4328ce
[ "RSA-MD" ]
2
2019-01-27T01:52:47.000Z
2019-01-27T10:59:26.000Z
#!/usr/bin/python3 #kanto kor pirka nociw AI system #data.py:各種データやログなどを記録 #一度しかないこの人生で、自分の夢を追いかけないでいつ追いかけるのだろう。-孫正義 #©2019 Mamoru Itoi #会話ログ class Log: pass #入力応答用辞書「kanto」 class Kanto: #バージョン version = "α0.0" class Learn: #バージョン version = "α0.0" #感情変動用辞書「nociw」 class Nociw: #バージョン version = "α0.0" cl...
13.352941
54
0.69163
67
454
4.701493
0.522388
0.038095
0.133333
0.142857
0.292063
0.165079
0
0
0
0
0
0.040541
0.185022
454
33
55
13.757576
0.808108
0.381057
0
0.466667
0
0
0.225926
0
0
0
0
0
0
1
0
false
0.133333
0
0
0.866667
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
69696c88dc9acf5044fdfd9c3f790afc625ef25a
1,046
py
Python
azure-devops/azext_devops/devops_sdk/v6_0/pipelines_checks/__init__.py
dhilmathy/azure-devops-cli-extension
7146eb1135125bbba1649ab0529a50ffc8f4e172
[ "MIT" ]
248
2019-05-10T14:20:24.000Z
2022-03-29T12:17:27.000Z
azure-devops/azext_devops/devops_sdk/v6_0/pipelines_checks/__init__.py
dhilmathy/azure-devops-cli-extension
7146eb1135125bbba1649ab0529a50ffc8f4e172
[ "MIT" ]
147
2019-05-08T14:20:49.000Z
2022-03-28T19:36:21.000Z
azure-devops/azext_devops/devops_sdk/v6_0/pipelines_checks/__init__.py
dhilmathy/azure-devops-cli-extension
7146eb1135125bbba1649ab0529a50ffc8f4e172
[ "MIT" ]
121
2019-05-08T06:24:39.000Z
2022-03-01T12:58:02.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
33.741935
95
0.523901
69
1,046
7.869565
0.884058
0
0
0
0
0
0
0
0
0
0
0
0.142447
1,046
30
96
34.866667
0.604236
0.515296
0
0
0
0
0.52008
0.184739
0
0
0
0
0
0
null
null
0
0.095238
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
696a58646dd2b2acf82198f80d70e402b6cf710a
1,798
py
Python
test.py
jczic/MicroNN
bda5c68f4da9e0222a6e00edf8a4e685f466003c
[ "MIT" ]
13
2019-01-31T20:03:38.000Z
2021-01-08T17:20:15.000Z
test.py
jczic/MicroNN
bda5c68f4da9e0222a6e00edf8a4e685f466003c
[ "MIT" ]
null
null
null
test.py
jczic/MicroNN
bda5c68f4da9e0222a6e00edf8a4e685f466003c
[ "MIT" ]
null
null
null
 from microNN import MicroNN microNN = MicroNN() l1 = microNN.AddInputLayer ( dimensions = MicroNN.Init1D(2), shape = MicroNN.Shape.Bool ) l2 = microNN.AddLayer ( dimensions = MicroNN.Init1D(2), shape = MicroNN.Shape.Neuron, ...
37.458333
103
0.579533
165
1,798
6.321212
0.272727
0.053691
0.057526
0.046021
0.353787
0.189837
0.078619
0
0
0
0
0.010148
0.287542
1,798
47
104
38.255319
0.803279
0.044494
0
0.181818
0
0
0.104495
0
0
0
0
0
0
0
null
null
0
0.030303
null
null
0.393939
0
0
0
null
0
0
0
0
0
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
696f5cc5f268d6f5e06e3fd6ce7fdcd004234e8d
1,419
py
Python
lib/gan/utils.py
chawins/princeton_thesis
114b1f9bc36742827c2cb285249ca30dba0ae85c
[ "MIT" ]
null
null
null
lib/gan/utils.py
chawins/princeton_thesis
114b1f9bc36742827c2cb285249ca30dba0ae85c
[ "MIT" ]
null
null
null
lib/gan/utils.py
chawins/princeton_thesis
114b1f9bc36742827c2cb285249ca30dba0ae85c
[ "MIT" ]
null
null
null
import math import numpy as np from keras.datasets import mnist, cifar10 def combine_images(generated_images): num = generated_images.shape[0] width = int(math.sqrt(num)) height = int(math.ceil(float(num) / width)) shape = generated_images.shape[1:3] image = np.zeros((height * shape[0], width * s...
30.847826
62
0.610994
222
1,419
3.716216
0.247748
0.087273
0.033939
0.058182
0.513939
0.513939
0.513939
0.513939
0.513939
0.513939
0
0.057301
0.237491
1,419
45
63
31.533333
0.705176
0.085271
0
0.333333
1
0
0
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
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
6970f8caccd45034ec8417156e581ffc88206de7
618
py
Python
examples/blink.py
Adirockzz95/Piwho
27956d27d86dbf2db2f382c2240c9fe7e84f6205
[ "MIT" ]
52
2016-07-20T19:22:19.000Z
2021-04-07T00:41:50.000Z
examples/blink.py
TREE-Ind/Piwho
27956d27d86dbf2db2f382c2240c9fe7e84f6205
[ "MIT" ]
12
2016-07-29T14:38:06.000Z
2019-04-02T14:09:52.000Z
examples/blink.py
TREE-Ind/Piwho
27956d27d86dbf2db2f382c2240c9fe7e84f6205
[ "MIT" ]
18
2016-07-22T11:23:07.000Z
2021-11-05T23:42:43.000Z
import time import Rpi.GPIO as GPIO from piwho import recognition def blink(pin): GPIO.output(pin,GPIO.HIGH) time.sleep(1) GPIO.output(pin,GPIO.LOW) time.sleep(1) def identify(): recog = recognition.SpeakerRecognizer('./recordings/') friends = ['Abhishek', 'Ankit', 'Abhinav'] name = reco...
19.935484
58
0.613269
82
618
4.512195
0.52439
0.056757
0.07027
0.091892
0
0
0
0
0
0
0
0.030369
0.254045
618
30
59
20.6
0.772234
0
0
0.086957
0
0
0.066451
0
0
0
0
0
0
0
null
null
0
0.130435
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
15c730bb9eab17d503e84f1a598708d820d20b4f
5,875
py
Python
pyNetscan/pySockets.py
nmschorr/git11-pyNetscan
fa4dd84b23b8535a9d25910e8f77f31be548a999
[ "MIT" ]
null
null
null
pyNetscan/pySockets.py
nmschorr/git11-pyNetscan
fa4dd84b23b8535a9d25910e8f77f31be548a999
[ "MIT" ]
null
null
null
pyNetscan/pySockets.py
nmschorr/git11-pyNetscan
fa4dd84b23b8535a9d25910e8f77f31be548a999
[ "MIT" ]
null
null
null
''' Created on Dec 11, 2015 @author: Nancy Schorr ''' if __name__ == '__main__': pass import socket import netaddr import nmap import sys wdtvlive = '192.168.1.64' ## port 80, 139, 443 open uraniaAddy = '192.168.1.73' network = "192.168.1.250/24" deliaAddy = '192.168.1.65' userPC = '192.168.1.68' ################...
30.759162
90
0.540766
675
5,875
4.666667
0.293333
0.028571
0.034286
0.043175
0.205714
0.180317
0.167619
0.149841
0.124444
0.124444
0
0.033962
0.278298
5,875
190
91
30.921053
0.708962
0.10366
0
0.209677
0
0
0.19875
0
0
0
0
0
0
0
null
null
0.008065
0.032258
null
null
0.379032
0
0
0
null
0
0
0
0
0
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
15c952bfebceda5a501b93063a63ca3087770911
281
py
Python
test/test7.py
zhouyuanmin/MyDemo
664977a6243992c77931e58b98f5262745759d1a
[ "MIT" ]
null
null
null
test/test7.py
zhouyuanmin/MyDemo
664977a6243992c77931e58b98f5262745759d1a
[ "MIT" ]
null
null
null
test/test7.py
zhouyuanmin/MyDemo
664977a6243992c77931e58b98f5262745759d1a
[ "MIT" ]
null
null
null
"""7. 使用round(x, y)函数,可以将浮点数x保留y位小数。 使用键盘,输入两个非零数,求这两个数的商,结果保留两位小数。 输出的时候,请注意使用“➗”(十进制Unicode编码:10135)作为连接符表示除号。""" num1 = float(input("请输入第一个数:")) num2 = float(input("请输入第二个数:")) num3 = num1 / num2 num3 = round(num3, 2) print(str(num1) + chr(10135) + str(num2) + "=" + str(num3))
31.222222
59
0.672598
40
281
4.75
0.7
0.105263
0
0
0
0
0
0
0
0
0
0.087302
0.103203
281
8
60
35.125
0.662698
0.3879
0
0
0
0
0.10241
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
15cb7e5c9ee0df6c5847ce94be7c7af3f812aeb6
929
py
Python
tests/test_core.py
tahini-dev/yamljinja
8d1a85203051877ffe0ec600adb370d6a2a443b1
[ "Apache-2.0" ]
null
null
null
tests/test_core.py
tahini-dev/yamljinja
8d1a85203051877ffe0ec600adb370d6a2a443b1
[ "Apache-2.0" ]
null
null
null
tests/test_core.py
tahini-dev/yamljinja
8d1a85203051877ffe0ec600adb370d6a2a443b1
[ "Apache-2.0" ]
null
null
null
import pytest import yamljinja.core @pytest.mark.parametrize('args, kwargs', [ ([], dict()), ]) def test_NullUndefined_init(args, kwargs): assert isinstance(yamljinja.core.NullUndefined(*args, **kwargs), yamljinja.core.NullUndefined) @pytest.mark.parametrize('null_undefined, key, expected', [ # (yamlji...
23.225
98
0.602799
92
929
5.98913
0.304348
0.141561
0.188748
0.130672
0.297641
0
0
0
0
0
0
0.019364
0.221744
929
39
99
23.820513
0.742739
0.046286
0
0.107143
0
0
0.120482
0
0
0
0
0
0.107143
1
0.107143
false
0
0.071429
0
0.178571
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
15ccb97154a48c7084b272019f9392d5f8617d98
3,368
py
Python
tests/test_decorators.py
m-housh/flask_open_directory
4dc0440b1fb341b0adb01d2cd2c8d58913422fc5
[ "MIT" ]
null
null
null
tests/test_decorators.py
m-housh/flask_open_directory
4dc0440b1fb341b0adb01d2cd2c8d58913422fc5
[ "MIT" ]
null
null
null
tests/test_decorators.py
m-housh/flask_open_directory
4dc0440b1fb341b0adb01d2cd2c8d58913422fc5
[ "MIT" ]
null
null
null
import pytest from flask import Flask from flask_open_directory.decorators import requires_group, DecoratorContext, \ requires_all_groups, requires_any_group @pytest.fixture def flask_app(open_directory): app = Flask(__name__) open_directory.init_app(app) return app def test_DecoratorContext(): ...
31.185185
79
0.6538
387
3,368
5.423773
0.162791
0.076227
0.053359
0.064793
0.656027
0.62363
0.560267
0.560267
0.560267
0.505955
0
0.009404
0.24228
3,368
107
80
31.476636
0.813088
0.029691
0
0.561644
0
0
0.128488
0
0
0
0
0
0.205479
1
0.150685
false
0.109589
0.041096
0.054795
0.273973
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
15ce91b4a18777c8feb90d39a395f84385b2e72c
4,035
py
Python
boards/models.py
6ba/bbgo
dfa9b55b8d40c53940105333c2e03a3c6abddb88
[ "MIT" ]
22
2017-07-13T04:07:03.000Z
2021-06-10T05:39:29.000Z
boards/models.py
genonfire/bbgo
5f374f0b620f4dc3e106de5969f26f4585044605
[ "MIT" ]
7
2017-08-25T06:33:45.000Z
2019-10-14T05:49:32.000Z
boards/models.py
6ba/bbgo
dfa9b55b8d40c53940105333c2e03a3c6abddb88
[ "MIT" ]
9
2017-12-31T02:45:58.000Z
2021-01-22T03:09:02.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.contrib.auth.models import User from django.db import models from django.urls import reverse_lazy from django.utils.translation import ugettext as _ class Board(models.Model): """Board of boards""" B...
37.361111
85
0.667658
470
4,035
5.489362
0.259574
0.062791
0.087209
0.090698
0.481008
0.424419
0.337985
0.3
0.3
0.3
0
0.013614
0.199009
4,035
107
86
37.71028
0.784653
0.035192
0
0.289157
0
0
0.141485
0.01973
0
0
0
0
0
1
0.072289
false
0
0.072289
0
0.710843
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
15cf64e1ac26f97579c2f48e9ec74cdf51d1d1f2
848
py
Python
classification/ml/classification.py
daniele-canavese/fingerprinting
180cffd8e3edda0fe99fac003832027e1388687a
[ "Apache-2.0" ]
null
null
null
classification/ml/classification.py
daniele-canavese/fingerprinting
180cffd8e3edda0fe99fac003832027e1388687a
[ "Apache-2.0" ]
null
null
null
classification/ml/classification.py
daniele-canavese/fingerprinting
180cffd8e3edda0fe99fac003832027e1388687a
[ "Apache-2.0" ]
null
null
null
""" Classification functions. """ from typing import Any from typing import Dict from typing import Tuple from pandas import DataFrame from pandas import Series def classify(model: Dict[str, Any], x: DataFrame, classes: Dict[int, str]) -> Tuple[Series, DataFrame]: """ Classifies some data. :param model:...
24.941176
103
0.683962
113
848
5.123894
0.469027
0.051813
0.082902
0
0
0
0
0
0
0
0
0
0.209906
848
33
104
25.69697
0.864179
0.285377
0
0
0
0
0.054674
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
15d6d539f4a2c36ee5195360bd0dfb5145b0155b
865
py
Python
solutions/python3/59.py
sm2774us/amazon_interview_prep_2021
f580080e4a6b712b0b295bb429bf676eb15668de
[ "MIT" ]
42
2020-08-02T07:03:49.000Z
2022-03-26T07:50:15.000Z
solutions/python3/59.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
null
null
null
solutions/python3/59.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
40
2020-02-08T02:50:24.000Z
2022-03-26T15:38:10.000Z
class Solution: def generateMatrix(self, n): """ :type n: int :rtype: List[List[int]] """ def dirToIndex(x, y, d): if d == "r": return (x, y + 1, d) if y + 1 < n and matrix[x][y + 1] == 0 else (x + 1, y, "d") elif d == "d": return (x + 1, y, d) if x + ...
48.055556
107
0.410405
156
865
2.275641
0.211538
0.039437
0.050704
0.033803
0.383099
0.371831
0.371831
0.225352
0.225352
0.225352
0
0.057252
0.39422
865
18
108
48.055556
0.620229
0.041619
0
0
1
0
0.010025
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
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
15e280b22417a413dbf87b0e0460ce99769f6837
4,702
py
Python
tests/grammar/test_grammar.py
r-chaves/uml-sm
b72f99b308aba37620dbb6c2b72fbeb5547cad4b
[ "MIT" ]
null
null
null
tests/grammar/test_grammar.py
r-chaves/uml-sm
b72f99b308aba37620dbb6c2b72fbeb5547cad4b
[ "MIT" ]
2
2017-10-14T16:00:21.000Z
2017-10-15T13:44:47.000Z
tests/grammar/test_grammar.py
r-chaves/uml-sm
b72f99b308aba37620dbb6c2b72fbeb5547cad4b
[ "MIT" ]
null
null
null
""" Test application using Tatsu. This application uses Tatsu to compile an input grammer into a model and then parse a file that (hopefully) obeys that grammar. $URL$ """ ############################################################################## # __future__ Python imports (must be at start of file) ############...
33.585714
79
0.474266
497
4,702
4.249497
0.291751
0.060606
0.023674
0.06392
0.17661
0.169034
0.158617
0.158617
0.052557
0
0
0.030262
0.219906
4,702
139
80
33.827338
0.545529
0.061889
0
0
0
0
0.056384
0
0
0
0
0
0.040816
0
null
null
0
0.122449
null
null
0.020408
0
0
0
null
0
0
0
0
0
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
15e39a3202745e09335b2c17c71acc87b762385f
1,566
py
Python
preprocessing.py
deveshwaripujari/deep-instrument
3e332b0eb55bab660f69fdfb661f5a53ab23a87c
[ "MIT" ]
15
2017-02-10T12:08:08.000Z
2022-01-13T15:54:42.000Z
preprocessing.py
deveshwaripujari/deep-instrument
3e332b0eb55bab660f69fdfb661f5a53ab23a87c
[ "MIT" ]
3
2016-10-16T11:53:00.000Z
2020-12-19T21:55:09.000Z
preprocessing.py
deveshwaripujari/deep-instrument
3e332b0eb55bab660f69fdfb661f5a53ab23a87c
[ "MIT" ]
12
2017-03-05T17:37:36.000Z
2021-04-18T19:41:15.000Z
import numpy as np from sklearn.base import BaseEstimator, TransformerMixin import sys # TODO: package the chromagram script sys.path.append('tools/music-processing-experiments/') from analysis import split_to_blocks from spectrogram import create_window from reassignment import chromagram class ChromagramTransform...
34.043478
73
0.663474
206
1,566
4.805825
0.378641
0.050505
0.056566
0.032323
0.040404
0
0
0
0
0
0
0.028205
0.252874
1,566
45
74
34.8
0.817949
0.166667
0
0
0
0
0.02769
0.02769
0
0
0
0.022222
0
1
0.096774
false
0
0.193548
0.032258
0.387097
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
15e4457799b973459fcf0034829520da78b10f16
5,799
py
Python
Scripts/secure.py
Floplosion05/Shelly
9e96fc2206487e85cc2288413ccdee4116a2c48e
[ "MIT" ]
1
2020-10-21T14:33:06.000Z
2020-10-21T14:33:06.000Z
Scripts/secure.py
Floplosion05/Shelly
9e96fc2206487e85cc2288413ccdee4116a2c48e
[ "MIT" ]
null
null
null
Scripts/secure.py
Floplosion05/Shelly
9e96fc2206487e85cc2288413ccdee4116a2c48e
[ "MIT" ]
null
null
null
'''Published by @Floplosion05 under the MIT-License''' import requests from requests.auth import HTTPBasicAuth import sys import json from passlib.context import CryptContext import _io import os.path import re ips = ['192.168.xxx.xxx'] #add ips or mdns names of devices help_str = 'Please provide the information in t...
36.24375
259
0.679255
807
5,799
4.804213
0.231722
0.018571
0.028888
0.027083
0.42275
0.355687
0.289915
0.289915
0.2244
0.205571
0
0.011902
0.174168
5,799
160
260
36.24375
0.797661
0.025349
0
0.43662
0
0.007042
0.302622
0.038979
0
0
0
0
0
1
0.070423
false
0.176056
0.056338
0.014085
0.21831
0.133803
0
0
0
null
0
0
0
0
0
0
0
0
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
15e4bd9505e108fce8b968c36b4ce05159fbbcd5
5,103
py
Python
pycommon/__init__.py
chbrown/python-common
78880fb903a1f237388e3a124b969c185279a3d4
[ "MIT" ]
null
null
null
pycommon/__init__.py
chbrown/python-common
78880fb903a1f237388e3a124b969c185279a3d4
[ "MIT" ]
null
null
null
pycommon/__init__.py
chbrown/python-common
78880fb903a1f237388e3a124b969c185279a3d4
[ "MIT" ]
null
null
null
import itertools from functools import reduce import operator __version__ = '0.0.1' get0 = operator.itemgetter(0) get1 = operator.itemgetter(1) def lfind(xs, x): ''' Find the index of the first (leftmost) instance of `x` in `xs` (a list). Raises `ValueError` if `x` is not in `xs` ''' return xs...
26.857895
87
0.631197
747
5,103
4.283802
0.30656
0.004375
0.00375
0.013125
0.277813
0.265313
0.23
0.16875
0.16875
0.16875
0
0.010382
0.244954
5,103
189
88
27
0.82014
0.49853
0
0.1
0
0
0.002288
0
0
0
0
0
0
1
0.283333
false
0
0.05
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
15e7c89a9939a25a6c77dae179d862ae0120f08e
626
py
Python
properimage/__init__.py
BrunoSanchez/capsule_N1
a5ee3b74afc27de1a954ae2f9f96c278a4723226
[ "BSD-3-Clause" ]
12
2017-04-13T06:49:42.000Z
2019-11-19T09:27:43.000Z
properimage/__init__.py
BrunoSanchez/capsule_N1
a5ee3b74afc27de1a954ae2f9f96c278a4723226
[ "BSD-3-Clause" ]
56
2017-09-05T16:00:57.000Z
2020-11-20T18:02:58.000Z
properimage/__init__.py
BrunoSanchez/capsule_N1
a5ee3b74afc27de1a954ae2f9f96c278a4723226
[ "BSD-3-Clause" ]
5
2017-10-08T16:55:40.000Z
2020-09-22T14:04:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2020 Toros astro team # # This file is part of ProperImage (https://github.com/toros-astro/ProperImage) # License: BSD-3-Clause # Full Text: https://github.com/toros-astro/ProperImage/blob/master/LICENSE.txt # """Properimage is a package for astronomical ima...
26.083333
79
0.750799
85
626
5.423529
0.752941
0.065076
0.060738
0.08243
0.151844
0.151844
0
0
0
0
0
0.016575
0.132588
626
23
80
27.217391
0.832413
0.717252
0
0
0
0
0.179012
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
15ead9f1799073452750ff329d13d8555ae2f196
664
py
Python
test/dlc_tests/benchmark/bai/mxnet/training/test_performance_mxnet_training.py
Elizaaaaa/deep-learning-containers
6274ecb264645070d11b27e5c7e60d2e4110537d
[ "Apache-2.0" ]
383
2020-05-19T18:09:10.000Z
2022-03-29T22:41:05.000Z
test/dlc_tests/benchmark/bai/mxnet/training/test_performance_mxnet_training.py
Elizaaaaa/deep-learning-containers
6274ecb264645070d11b27e5c7e60d2e4110537d
[ "Apache-2.0" ]
551
2020-05-27T17:25:50.000Z
2022-03-31T18:00:35.000Z
test/dlc_tests/benchmark/bai/mxnet/training/test_performance_mxnet_training.py
Elizaaaaa/deep-learning-containers
6274ecb264645070d11b27e5c7e60d2e4110537d
[ "Apache-2.0" ]
263
2020-05-19T18:17:12.000Z
2022-03-29T22:41:10.000Z
import re import pytest from invoke.context import Context from test.test_utils.benchmark import execute_single_node_benchmark, get_py_version @pytest.mark.skip(reason="Temp skip due to timeout") @pytest.mark.model("resnet18_v2") @pytest.mark.integration("cifar10 dataset") def test_performance_mxnet_cpu(mxnet_traini...
39.058824
102
0.808735
94
664
5.361702
0.531915
0.059524
0.06746
0.103175
0
0
0
0
0
0
0
0.016722
0.099398
664
16
103
41.5
0.826087
0
0
0
0
0
0.254518
0.090361
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
15f03836f675c42735aaaf2c1d75e3ef037176f9
5,250
py
Python
datastats/embed_relativezps.py
jielaizhang/datavis
abaf8414ff6268dc338e6ce570edd560dc23fa43
[ "MIT" ]
3
2021-11-30T06:40:09.000Z
2022-03-08T01:14:17.000Z
datastats/embed_relativezps.py
jielaizhang/dataexplore
58769eeac5e8597bf252f543bb77d34a1e0c6072
[ "MIT" ]
null
null
null
datastats/embed_relativezps.py
jielaizhang/dataexplore
58769eeac5e8597bf252f543bb77d34a1e0c6072
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This script is not done, as it doesn't serve my purpose right now. Instead, I will write makeScript_modheadRelativeZPs.py """ embed_relativezps.py -- Input a reference fits file and a series of other fits files with significant FOV overlap, calculate the relative ZP of the other fits files. ...
38.321168
170
0.570286
582
5,250
4.984536
0.328179
0.024819
0.038607
0.055153
0.204757
0.166839
0.166839
0.119959
0.071699
0.036539
0
0.004452
0.229905
5,250
136
171
38.602941
0.713084
0.101524
0
0.263158
0
0
0.129908
0.007199
0
0
0
0
0
0
null
null
0
0.157895
null
null
0.197368
0
0
0
null
0
0
0
0
0
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
15f064d0fe7d3109f169f16d1b133c94bb94a4e5
4,859
py
Python
terroroftinytown/tracker/account.py
Flashfire42/terroroftinytown
c52be7ac0f7abc37f4c90955e5c96b91f935903a
[ "MIT" ]
59
2015-03-05T21:30:06.000Z
2022-01-31T05:50:34.000Z
terroroftinytown/tracker/account.py
Flashfire42/terroroftinytown
c52be7ac0f7abc37f4c90955e5c96b91f935903a
[ "MIT" ]
33
2015-01-10T02:27:08.000Z
2022-02-08T18:26:56.000Z
terroroftinytown/tracker/account.py
Flashfire42/terroroftinytown
c52be7ac0f7abc37f4c90955e5c96b91f935903a
[ "MIT" ]
16
2015-03-06T19:51:53.000Z
2021-11-16T03:50:52.000Z
# encoding=utf-8 import logging from sqlalchemy.exc import IntegrityError import tornado.gen from tornado.web import HTTPError import tornado.web from terroroftinytown.tracker.base import BaseHandler from terroroftinytown.tracker.form import (LoginForm, AddUserForm, ConfirmForm, ChangePasswordForm) from terroroft...
30.949045
84
0.616999
515
4,859
5.638835
0.213592
0.024105
0.034091
0.045455
0.397039
0.30854
0.181129
0.126033
0.099174
0.099174
0
0.003471
0.288537
4,859
156
85
31.147436
0.836563
0.002881
0
0.346774
0
0
0.083006
0.028495
0
0
0
0
0
1
0.080645
false
0.129032
0.072581
0
0.233871
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
15f18cdc739e27fab9ec5f2a9bd3486cf11d3804
844
py
Python
tests/mocks.py
dev-11/seagull-backend
bee70773e51d5bced5319815a6acb32d6e696810
[ "MIT" ]
null
null
null
tests/mocks.py
dev-11/seagull-backend
bee70773e51d5bced5319815a6acb32d6e696810
[ "MIT" ]
null
null
null
tests/mocks.py
dev-11/seagull-backend
bee70773e51d5bced5319815a6acb32d6e696810
[ "MIT" ]
null
null
null
from datetime import timedelta from unittest.mock import Mock from dom.mappers import AdmiraltyEventTypeMapper, TideType from repositories import EnvironmentRepository from services.adjust_time_service import ChiswickEyotTimeService def get_mocked_AdmiraltyEventTypeMapper(): mocked_mapper = AdmiraltyEventTypeMap...
30.142857
64
0.795024
102
844
6.284314
0.333333
0.074883
0.070203
0.053042
0
0
0
0
0
0
0
0.001372
0.136256
844
27
65
31.259259
0.877915
0
0
0
0
0
0.054502
0
0
0
0
0
0
1
0.15
false
0
0.25
0
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
15f4a9d032e5cc50f0c1867a59cb0eaae2717d20
274
py
Python
pandas/tests/tslibs/test_resolution.py
AdrianMastronardi/pandas
67045903306ac4a1cab108177e92df30d99912b4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2021-12-20T14:08:54.000Z
2021-12-20T14:08:54.000Z
pandas/tests/tslibs/test_resolution.py
AdrianMastronardi/pandas
67045903306ac4a1cab108177e92df30d99912b4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/tslibs/test_resolution.py
AdrianMastronardi/pandas
67045903306ac4a1cab108177e92df30d99912b4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import numpy as np from pandas._libs.tslibs import ( Resolution, get_resolution, ) def test_get_resolution_nano(): # don't return the fallback RESO_DAY arr = np.array([1], dtype=np.int64) res = get_resolution(arr) assert res == Resolution.RESO_NS
19.571429
40
0.69708
40
274
4.575
0.7
0.213115
0
0
0
0
0
0
0
0
0
0.013825
0.208029
274
13
41
21.076923
0.829493
0.124088
0
0
0
0
0
0
0
0
0
0
0.111111
1
0.111111
false
0
0.222222
0
0.333333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
15fd131281beee566307422677b49c1081c1349a
2,630
py
Python
diamond_miner/generators/database.py
dioptra-io/diamond-miner
fae066bef872f5c3eb4ef732dd90237c9cb5c003
[ "MIT" ]
5
2021-08-04T13:56:38.000Z
2022-03-17T01:20:14.000Z
diamond_miner/generators/database.py
dioptra-io/diamond-miner
fae066bef872f5c3eb4ef732dd90237c9cb5c003
[ "MIT" ]
28
2021-08-01T05:05:28.000Z
2022-03-01T05:06:27.000Z
diamond_miner/generators/database.py
dioptra-io/diamond-miner
fae066bef872f5c3eb4ef732dd90237c9cb5c003
[ "MIT" ]
null
null
null
from ipaddress import IPv6Address from typing import Iterable, Iterator, Optional from diamond_miner.defaults import ( DEFAULT_PREFIX_SIZE_V4, DEFAULT_PREFIX_SIZE_V6, DEFAULT_PROBE_DST_PORT, DEFAULT_PROBE_SRC_PORT, PROTOCOLS, UNIVERSE_SUBSET, ) from diamond_miner.logger import logger from diamo...
41.09375
91
0.681749
345
2,630
4.869565
0.318841
0.045833
0.066667
0.026786
0.148214
0
0
0
0
0
0
0.022838
0.21749
2,630
63
92
41.746032
0.793489
0.228517
0
0
0
0
0.044118
0
0
0
0
0.015873
0
1
0.022222
false
0
0.155556
0
0.177778
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
c600f7feaf17b5e7cc5f8804f2008a3e81c3cc0d
5,225
py
Python
openquake.hazardlib/openquake/hazardlib/gsim/gupta_2010.py
rainzhop/ConvNetQuake
a3e6de3f7992eac72f1b9883fec36b8c7fdefd48
[ "MIT" ]
null
null
null
openquake.hazardlib/openquake/hazardlib/gsim/gupta_2010.py
rainzhop/ConvNetQuake
a3e6de3f7992eac72f1b9883fec36b8c7fdefd48
[ "MIT" ]
null
null
null
openquake.hazardlib/openquake/hazardlib/gsim/gupta_2010.py
rainzhop/ConvNetQuake
a3e6de3f7992eac72f1b9883fec36b8c7fdefd48
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (C) 2012-2016 GEM Foundation # # OpenQuake is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the Licen...
46.651786
81
0.706029
827
5,225
4.431681
0.453446
0.024829
0.032469
0.015553
0.052387
0.048568
0.018554
0
0
0
0
0.123941
0.209378
5,225
111
82
47.072072
0.762769
0.690335
0
0
0
0.363636
0.487268
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c601cd070e61fd750b0a5c52b22d5baa8efe68ae
677
py
Python
text_util.py
liuzl/nlp4econ
84248afe0a7ef151313bfaad2499b7afd0696140
[ "MIT" ]
3
2016-01-24T13:37:40.000Z
2017-11-23T01:24:09.000Z
text_util.py
liuzl/nlp4econ
84248afe0a7ef151313bfaad2499b7afd0696140
[ "MIT" ]
null
null
null
text_util.py
liuzl/nlp4econ
84248afe0a7ef151313bfaad2499b7afd0696140
[ "MIT" ]
null
null
null
#encoding=utf-8 import re RE_SEN_SPLITER = u"(.+?(\r|\n|。|!|!|\?|?|;|;|……))" def get_sentences(text): if not isinstance(text, (unicode,)): return [] s = re.sub(RE_SEN_SPLITER, lambda x: x.group(0)+"\t", text) return [x.strip() for x in s.split('\t') if x.strip() != ''] if __name__ == "__main__": tex...
33.85
161
0.664697
89
677
4.966292
0.674157
0.022624
0.054299
0
0
0
0
0
0
0
0
0.045296
0.152142
677
19
162
35.631579
0.714286
0.020679
0
0
0
0.071429
0.433535
0.386707
0
0
0
0
0
0
null
null
0
0.071429
null
null
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
1
0
0
0
0
0
0
0
0
1
c604291ccb35ea2eefafed3f5c0dca2e25b8972a
5,939
py
Python
tests/test_validators.py
setivolkylany/PythonUtils
3e41be7f7cda24c1aa2dbf2f025b0bfb9c2746e6
[ "BSD-3-Clause" ]
null
null
null
tests/test_validators.py
setivolkylany/PythonUtils
3e41be7f7cda24c1aa2dbf2f025b0bfb9c2746e6
[ "BSD-3-Clause" ]
null
null
null
tests/test_validators.py
setivolkylany/PythonUtils
3e41be7f7cda24c1aa2dbf2f025b0bfb9c2746e6
[ "BSD-3-Clause" ]
null
null
null
"""Tests for validators.""" import unittest import pytest from utils.validators import uuid, slug, ipv4, ipv6, domain def test_domain(self): """Test validator of domain.""" assert domain('google.com') is True assert domain('google.com.ru') is True assert domain('icann.org') is True assert doma...
37.588608
99
0.676208
927
5,939
4.324703
0.318231
0.092791
0.173609
0.063856
0.440259
0.343727
0.291594
0.207782
0.024944
0.024944
0
0.18088
0.184543
5,939
157
100
37.828025
0.646913
0.018017
0
0.108527
0
0
0.326495
0.186864
0
0
0
0
0.844961
1
0.03876
false
0
0.031008
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
1
0
0
0
0
0
0
0
0
0
1
c604e7b1bc0ac22a4e1aa5dfde31ced0148ed7f9
8,725
py
Python
recipes/Python/277099_Rss_aggregator_with_twisted/recipe-277099.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/277099_Rss_aggregator_with_twisted/recipe-277099.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/277099_Rss_aggregator_with_twisted/recipe-277099.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
from twisted.internet import reactor, protocol, defer from twisted.web import client import feedparser, time, sys # You can get this file from http://xoomer.virgilio.it/dialtone/out.py # Since it's only a list of URLs made in this way: # out = [ ( 'URL', 'EXTRA_INFOS'), # ( 'URL', 'EXTRA_INFOS') # ....
38.100437
80
0.564814
1,093
8,725
4.439158
0.259835
0.018137
0.019786
0.028442
0.100165
0.075845
0.044106
0.030091
0.016488
0
0
0.006803
0.342923
8,725
228
81
38.267544
0.839526
0.348883
0
0.111111
0
0
0.050357
0
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.166667
0
0
0
null
0
0
0
0
0
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
c6085a111a8f3f9ff943d23c4037bcd6894d5779
385
py
Python
modules/transformations/redshift/test/integration/__init__.py
huq-industries/carto-spatial-extension
ddd7448995932535c2e1533309f4b4141c61af4b
[ "BSD-3-Clause" ]
68
2019-10-21T04:05:04.000Z
2021-02-04T08:27:36.000Z
modules/transformations/redshift/test/integration/__init__.py
huq-industries/carto-spatial-extension
ddd7448995932535c2e1533309f4b4141c61af4b
[ "BSD-3-Clause" ]
165
2021-02-12T06:44:26.000Z
2022-03-07T09:07:42.000Z
modules/transformations/redshift/test/integration/__init__.py
huq-industries/carto-spatial-extension
ddd7448995932535c2e1533309f4b4141c61af4b
[ "BSD-3-Clause" ]
25
2019-10-23T16:30:00.000Z
2021-02-04T15:48:31.000Z
import os import sys # Include this to allow importing lib from source code sys.path.insert( 1, os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..') ) sys.path.insert( 1, os.path.join( os.path.dirname(os.path.realpath(__file__)), '..', '..', '..', '....
18.333333
76
0.501299
43
385
4.302326
0.488372
0.194595
0.140541
0.151351
0.594595
0.594595
0.594595
0.594595
0.594595
0.594595
0
0.00738
0.296104
385
20
77
19.25
0.675277
0.135065
0
0.388889
0
0
0.084592
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
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
c608be1fd939d5c1d6ea79f87f2973e2ed2a9f15
34,820
py
Python
htmltree/htmltree.py
phorward/htmltree
96c16edf9f18e3610387f1dfbee6bbf8d10ab1a4
[ "MIT" ]
1
2020-05-19T08:38:21.000Z
2020-05-19T08:38:21.000Z
htmltree/htmltree.py
phorward/htmltree
96c16edf9f18e3610387f1dfbee6bbf8d10ab1a4
[ "MIT" ]
null
null
null
htmltree/htmltree.py
phorward/htmltree
96c16edf9f18e3610387f1dfbee6bbf8d10ab1a4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # __pragma__('kwargs') # __pragma__('xglobs') # __pragma__('tconv') # __pragma__('opov') """ Description: Provides a general html tree class, HtmlElement and wrapper functions for most standard non-obsolete HTML tags. This file is part of htmltree https://github.com/Michael-F-Ellis/htmltree ...
26.023916
95
0.485985
3,571
34,820
4.715486
0.16942
0.104044
0.074826
0.094067
0.077796
0.052616
0.04252
0.040204
0.040204
0.040204
0
0.005777
0.294084
34,820
1,337
96
26.043381
0.679292
0.377341
0
0.19863
0
0.009132
0.05548
0.004668
0
0
0
0.00374
0.002283
1
0.223744
false
0.002283
0.002283
0
0.454338
0.006849
0
0
0
null
0
0
0
0
0
0
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
c60b9f3d3d76021d7b07f1538cee76d598f94a29
867
py
Python
test_project/tst/models.py
babayko/django-fias
0673b6e465eb46e4239cd39be0debedadaf47513
[ "BSD-3-Clause" ]
108
2015-02-26T16:33:23.000Z
2022-01-05T22:47:59.000Z
test_project/tst/models.py
babayko/django-fias
0673b6e465eb46e4239cd39be0debedadaf47513
[ "BSD-3-Clause" ]
74
2015-01-26T11:15:08.000Z
2021-12-17T05:29:07.000Z
test_project/tst/models.py
babayko/django-fias
0673b6e465eb46e4239cd39be0debedadaf47513
[ "BSD-3-Clause" ]
81
2015-01-22T09:55:59.000Z
2022-03-23T04:53:05.000Z
from django.db import models # Create your models here. from fias.fields import AddressField, ChainedAreaField from fias.models import AddrObj, FIASAddress, FIASAddressWithArea, FIASHouse class Item(models.Model): title = models.CharField('title', max_length=100) location = AddressField() class Item...
21.675
106
0.746251
91
867
7.043956
0.461538
0.051482
0.074883
0.102964
0.318253
0.318253
0.318253
0.318253
0.318253
0.318253
0
0.012179
0.147636
867
39
107
22.230769
0.85521
0.376009
0
0.4
0
0
0.035917
0
0
0
0
0
0
1
0
false
0
0.3
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
1
0
0
1
c60cfc941bbbdcd3a00b1083e91afd6a4dd354fc
1,405
py
Python
reveries/common/maya_shader_export/ramp.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
reveries/common/maya_shader_export/ramp.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
reveries/common/maya_shader_export/ramp.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
BASIS_MAPPING = { 1: 'linear' } class RampSampler(object): def __init__(self, node_name): import maya.cmds as cmds import maya.api.OpenMaya as om self.key_number = None self.keys_list = [] self.color_list = [] self.basis_value = None self.basis_name = '...
30.543478
77
0.652669
169
1,405
5.153846
0.337278
0.051665
0.064294
0.045924
0
0
0
0
0
0
0
0.005666
0.246263
1,405
45
78
31.222222
0.816808
0.043416
0
0
0
0
0.026826
0
0
0
0
0
0
1
0.181818
false
0
0.060606
0.151515
0.424242
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
c6105b55c6397c305fd5bdc266c04f4a294cc44c
1,760
py
Python
Lab2KNN/Bank_Data_Enum.py
lpreuett/SER499_BayesianInfAndML
f8f6047c65f535eb9d4677462c5e94149d2a811e
[ "MIT" ]
null
null
null
Lab2KNN/Bank_Data_Enum.py
lpreuett/SER499_BayesianInfAndML
f8f6047c65f535eb9d4677462c5e94149d2a811e
[ "MIT" ]
null
null
null
Lab2KNN/Bank_Data_Enum.py
lpreuett/SER499_BayesianInfAndML
f8f6047c65f535eb9d4677462c5e94149d2a811e
[ "MIT" ]
1
2018-11-20T12:09:06.000Z
2018-11-20T12:09:06.000Z
from enum import Enum # bank client data: class Job(Enum): # job : type of job (categorical: "admin.","blue-collar","entrepreneur","housemaid","management", # "retired","self-employed","services","student","technician","unemployed","unknown") ADMIN = 0 BLUE_COLLAR = 1 ENTREPRENEUR = 2 HOUSEMAID...
22.278481
101
0.621023
216
1,760
5.023148
0.356481
0.058065
0.077419
0.105069
0.147465
0.147465
0.147465
0.147465
0.147465
0.147465
0
0.034743
0.247727
1,760
78
102
22.564103
0.784743
0.494886
0
0.217391
0
0
0
0
0
0
0
0
0
1
0
false
0
0.021739
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
1
0
0
1
c611efcadb4750caacb82a6c3b8c96dd2123da20
621
py
Python
classifier_subsystem/decision_tree.py
011000101101/VRAR_project
7b0be02517de3e3975c9a697e4d6353c3fd6225f
[ "MIT" ]
null
null
null
classifier_subsystem/decision_tree.py
011000101101/VRAR_project
7b0be02517de3e3975c9a697e4d6353c3fd6225f
[ "MIT" ]
null
null
null
classifier_subsystem/decision_tree.py
011000101101/VRAR_project
7b0be02517de3e3975c9a697e4d6353c3fd6225f
[ "MIT" ]
null
null
null
""" Decision Tree Model using scikit-learn implementation """ from sklearn import tree import classifier_subsystem.model import utils.classify_util as classify_utils if __name__ == "__main__": # load data X_train, X_val, y_train, y_val = classify_utils.load_train_data(clean=True) # define model mo...
24.84
84
0.732689
80
621
5.3875
0.5125
0.132251
0.167053
0
0
0
0
0
0
0
0
0
0.167472
621
24
85
25.875
0.833656
0.148148
0
0
0
0
0.108108
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
c616ff89a31b8bc1b27feaa623cd7b062eb806ff
4,075
py
Python
rc_car/rc_car/rc_car.py
msinkec/rpi-ip-car
72c88a72dcec061563c89d1c8681d78df2e9ddd4
[ "MIT" ]
null
null
null
rc_car/rc_car/rc_car.py
msinkec/rpi-ip-car
72c88a72dcec061563c89d1c8681d78df2e9ddd4
[ "MIT" ]
null
null
null
rc_car/rc_car/rc_car.py
msinkec/rpi-ip-car
72c88a72dcec061563c89d1c8681d78df2e9ddd4
[ "MIT" ]
null
null
null
import signal import sys import socket import optparse import video import controls import time import hashlib import controls class Main: def signal_handler(self, signal, frame): self.finish(); def finish(self): self.clear_session() self.sock.close() sys.exit(0); def aut...
36.711712
100
0.587239
453
4,075
5.16777
0.406181
0.023921
0.053823
0.017941
0.021358
0.021358
0
0
0
0
0
0.010584
0.327607
4,075
110
101
37.045455
0.843796
0.242945
0
0.161765
0
0
0.087198
0
0
0
0
0.009091
0
1
0.073529
false
0.058824
0.132353
0
0.25
0.044118
0
0
0
null
0
0
0
0
0
0
0
0
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
c619f22922d24dac0028d81df2eec931c7c1de9d
965
py
Python
eg/eg_exec.py
sbienkow/eg
96142a74f4416b4a7000c85032c070df713b849e
[ "MIT" ]
1,389
2015-03-05T03:59:20.000Z
2022-03-30T19:42:05.000Z
eg/eg_exec.py
sbienkow/eg
96142a74f4416b4a7000c85032c070df713b849e
[ "MIT" ]
78
2015-04-23T14:47:25.000Z
2022-03-21T02:31:05.000Z
eg/eg_exec.py
sbienkow/eg
96142a74f4416b4a7000c85032c070df713b849e
[ "MIT" ]
95
2015-03-05T02:18:39.000Z
2022-03-19T07:10:00.000Z
# In eg 0.0.x, this file could be used to invoke eg directly, without installing # via pip. Eg 0.1.x switched to also support python 3. This meant changing the # way imports were working, which meant this script had to move up a level to be # a sibling of the eg module directory. This file will exist for a time in orde...
34.464286
80
0.74715
179
965
4
0.553073
0.03352
0.03352
0.03352
0.039106
0
0
0
0
0
0
0.00894
0.188601
965
27
81
35.740741
0.905492
0.481865
0
0
0
0.166667
0.870183
0.166329
0
0
0
0
0
1
0
false
0
0
0
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c61d970ca34fb9a82e35c09016991909a99af595
847
py
Python
features/steps/translator_module_steps.py
RTXteam/translator-testing-framework
51eb9e333d923fe9a8895c67d94fbfaaac2817d3
[ "BSD-3-Clause" ]
null
null
null
features/steps/translator_module_steps.py
RTXteam/translator-testing-framework
51eb9e333d923fe9a8895c67d94fbfaaac2817d3
[ "BSD-3-Clause" ]
null
null
null
features/steps/translator_module_steps.py
RTXteam/translator-testing-framework
51eb9e333d923fe9a8895c67d94fbfaaac2817d3
[ "BSD-3-Clause" ]
1
2019-12-13T18:29:14.000Z
2019-12-13T18:29:14.000Z
# from ncats.translator.module.disease.gene import disease_associated_genes @given('a disease term {disease_identifier} for disease label {disease_label} in Translator Modules') def step_impl(context, disease_identifier, disease_label): context.disease = {"disease_identifier":disease_identifier, "disease_label":di...
40.333333
101
0.757969
111
847
5.585586
0.342342
0.096774
0.106452
0.087097
0
0
0
0
0
0
0
0
0.14876
847
20
102
42.35
0.859917
0.193625
0
0.166667
0
0
0.322533
0
0
0
0
0
0.083333
1
0.25
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
c61ee0628e10f61c83cb0c2546fd6ef77165150a
10,892
py
Python
partition_decode/dataset.py
rflperry/double_descent
94b852c862620e260da0cdab2e483a0055ecac23
[ "Apache-2.0" ]
null
null
null
partition_decode/dataset.py
rflperry/double_descent
94b852c862620e260da0cdab2e483a0055ecac23
[ "Apache-2.0" ]
null
null
null
partition_decode/dataset.py
rflperry/double_descent
94b852c862620e260da0cdab2e483a0055ecac23
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch from torch import nn import copy import random import os ## Distributions def generate_gaussian_parity( n_samples, means=None, cov_scale=1, angle_params=None, random_state=None, ): """ Generate 2-dimensional Gaussian XOR distribution, a mixture of four Ga...
29.045333
106
0.607694
1,528
10,892
4.150524
0.155105
0.064333
0.005676
0.006307
0.502681
0.468307
0.41848
0.379691
0.35667
0.322138
0
0.022827
0.288101
10,892
375
107
29.045333
0.795074
0.318399
0
0.297561
1
0
0.027335
0.003132
0
0
0
0
0
1
0.02439
false
0
0.043902
0
0.102439
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
c62003498a634227bba7d05982589c1c86f9af5c
2,270
py
Python
bites/bite251.py
ChidinmaKO/Chobe-bitesofpy
2f933e6c8877a37d1ce7ef54ea22169fc67417d3
[ "MIT" ]
null
null
null
bites/bite251.py
ChidinmaKO/Chobe-bitesofpy
2f933e6c8877a37d1ce7ef54ea22169fc67417d3
[ "MIT" ]
null
null
null
bites/bite251.py
ChidinmaKO/Chobe-bitesofpy
2f933e6c8877a37d1ce7ef54ea22169fc67417d3
[ "MIT" ]
1
2019-07-16T19:12:52.000Z
2019-07-16T19:12:52.000Z
import string import pandas as pd def basic_series() -> pd.Series: """Create a pandas Series containing the values 1, 2, 3, 4, 5 Don't worry about the indexes for now. The name of the series should be 'Fred' """ series = pd.Series(range(1,6), name="Fred") return series def float_series() ->...
27.682927
79
0.642731
371
2,270
3.862534
0.237197
0.066992
0.078158
0.055827
0.509421
0.461968
0.300768
0.273552
0.192603
0.062805
0
0.069279
0.224229
2,270
82
80
27.682927
0.744463
0.299119
0
0.372093
0
0
0.017869
0
0
0
0
0
0.418605
1
0.186047
false
0
0.116279
0
0.395349
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
c622b95df359b9b6f10a39e1f9e7caf029f903de
355
py
Python
nexoclom/utilities/tests/test_database_connect.py
mburger-stsci/nexoclom
af6b90501a6a13b098cb9a0bbb3cad2ad6cdc14f
[ "BSD-3-Clause" ]
null
null
null
nexoclom/utilities/tests/test_database_connect.py
mburger-stsci/nexoclom
af6b90501a6a13b098cb9a0bbb3cad2ad6cdc14f
[ "BSD-3-Clause" ]
null
null
null
nexoclom/utilities/tests/test_database_connect.py
mburger-stsci/nexoclom
af6b90501a6a13b098cb9a0bbb3cad2ad6cdc14f
[ "BSD-3-Clause" ]
1
2018-11-23T20:55:33.000Z
2018-11-23T20:55:33.000Z
from nexoclom.utilities.read_configfile import read_configfile from nexoclom.utilities import database_connect import pytest @pytest.mark.utilities def test_readconfigfile(): assert read_configfile() @pytest.mark.utilities def test_database_connect(): # Test database connection with database_connect() as...
25.357143
62
0.797183
43
355
6.395349
0.44186
0.152727
0.152727
0.16
0.189091
0
0
0
0
0
0
0
0.140845
355
14
63
25.357143
0.901639
0.067606
0
0.2
0
0
0
0
0
0
0
0
0.2
1
0.2
true
0
0.3
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
c628dabb94511d08870e1c7ea99e28adaee9301e
577
py
Python
PYTHON/ShipProject.py
abhinavmish96/LEARN_DATA_SCIENCE
c7a9dc2e646e510261f8397c68c25993d6c347b1
[ "MIT" ]
1
2020-05-17T12:45:50.000Z
2020-05-17T12:45:50.000Z
PYTHON/ShipProject.py
abhinavmish96/LEARN_DATA_SCIENCE
c7a9dc2e646e510261f8397c68c25993d6c347b1
[ "MIT" ]
null
null
null
PYTHON/ShipProject.py
abhinavmish96/LEARN_DATA_SCIENCE
c7a9dc2e646e510261f8397c68c25993d6c347b1
[ "MIT" ]
null
null
null
def ground_ship(weight): flat = 20 if weight <= 2: return weight*1.5 + flat elif weight > 2 and weight <= 6: return weight*3.0 + flat elif weight > 6 and weight <= 10: return weight*4.0 + flat else: return weight*4.75 + flat cost = ground_ship(8.4) print(cost) def drone_ship(weight): flat ...
21.37037
35
0.629116
98
577
3.663265
0.295918
0.267409
0.155989
0.083565
0.662953
0.428969
0.428969
0.428969
0.428969
0.428969
0
0.095128
0.253033
577
27
36
21.37037
0.737819
0
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.416667
0.083333
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c62eca0f6750a422e6bc2b9e6f5c9505d9942a53
4,374
py
Python
carpetReport/bazaar.py
sidchop/DiCER
82155e841a4c5fcdc4898ae904cc5b10b94ab1d8
[ "Apache-2.0" ]
18
2019-06-08T02:42:52.000Z
2021-10-05T22:53:53.000Z
carpetReport/bazaar.py
sidchop/DiCER
82155e841a4c5fcdc4898ae904cc5b10b94ab1d8
[ "Apache-2.0" ]
14
2019-07-11T23:43:46.000Z
2021-12-01T22:18:17.000Z
carpetReport/bazaar.py
sidchop/DiCER
82155e841a4c5fcdc4898ae904cc5b10b94ab1d8
[ "Apache-2.0" ]
3
2019-09-17T10:07:58.000Z
2021-08-31T09:08:05.000Z
# This script here to generate the general html report, make these inputs # Have to clean this up, might make a main function as well to make this a little more tidy from argparse import ArgumentParser parser = ArgumentParser(epilog="bazaar.py -- A function to take a bunch of carpet reports and join them up together. ...
45.5625
181
0.684728
649
4,374
4.533128
0.328197
0.098572
0.056084
0.014276
0.152617
0.116247
0.116247
0.057784
0.031271
0.031271
0
0.005627
0.106081
4,374
95
182
46.042105
0.746803
0.353452
0
0.142857
1
0.035714
0.402282
0.065621
0
0
0
0
0
1
0
false
0
0.017857
0
0.017857
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
c63862595119cd9dedb2638c502d194906271703
316
py
Python
oandapy/enums/primitives.py
gustavooferreira/oandaApi
3c22c088e090e726cccebd201efb4254503246a0
[ "MIT" ]
4
2016-07-17T15:39:50.000Z
2016-10-06T23:41:28.000Z
oandapy/enums/primitives.py
gustavooferreira/oandaApi
3c22c088e090e726cccebd201efb4254503246a0
[ "MIT" ]
1
2018-12-09T21:20:57.000Z
2018-12-09T21:20:57.000Z
oandapy/enums/primitives.py
gustavooferreira/oandaApi
3c22c088e090e726cccebd201efb4254503246a0
[ "MIT" ]
1
2018-12-06T18:39:36.000Z
2018-12-06T18:39:36.000Z
# -*- coding: utf-8 -*- # vim:fenc=utf-8 """ Primitives Definitions """ from enum import Enum class InstrumentType(Enum): """InstrumentType - The type of an Instrument CURRENCY Currency CFD Contract For Difference METAL Metal """ CURRENCY = 1 CFD = 2 METAL = 3
14.363636
49
0.591772
36
316
5.194444
0.722222
0.042781
0
0
0
0
0
0
0
0
0
0.022831
0.306962
316
21
50
15.047619
0.83105
0.566456
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
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
1
0
0
1
c6447e75eaf9d20af72098cc5b6476b8a1723c89
800
py
Python
python/zigzag_conversion.py
zhiyelee/leetcode
0952cc18ae2ad201d19debf6a7fdeffa75c711fc
[ "MIT" ]
15
2015-02-28T02:25:24.000Z
2021-07-24T05:04:41.000Z
python/zigzag_conversion.py
zhiyelee/leetcode
0952cc18ae2ad201d19debf6a7fdeffa75c711fc
[ "MIT" ]
5
2015-02-21T11:44:32.000Z
2016-09-21T23:20:11.000Z
python/zigzag_conversion.py
zhiyelee/leetcode
0952cc18ae2ad201d19debf6a7fdeffa75c711fc
[ "MIT" ]
3
2016-02-20T23:04:15.000Z
2018-11-02T22:54:24.000Z
class Solution: # @return a string def convert(self, s, nRows): if nRows == 1 or len(s) <= 2: return s # compute the length of the zigzag zigzagLen = 2*nRows - 2; lens = len(s) res = '' for i in range(nRows): idx = i while idx...
22.857143
49
0.45875
97
800
3.783505
0.412371
0.076294
0.152589
0.196185
0
0
0
0
0
0
0
0.16453
0.415
800
34
50
23.529412
0.619658
0.06125
0
0
0
0
0.088591
0
0
0
0
0
0.181818
1
0.045455
false
0
0
0
0.181818
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c652049b6a7c5eeba996e2add78555c78ac9e887
915
py
Python
ggpy/cruft/autocode/HumanNewMovesEvent.py
hobson/ggpy
4e6e6e876c3a4294cd711647051da2d9c1836b60
[ "MIT" ]
1
2015-01-26T19:07:45.000Z
2015-01-26T19:07:45.000Z
ggpy/cruft/autocode/HumanNewMovesEvent.py
hobson/ggpy
4e6e6e876c3a4294cd711647051da2d9c1836b60
[ "MIT" ]
null
null
null
ggpy/cruft/autocode/HumanNewMovesEvent.py
hobson/ggpy
4e6e6e876c3a4294cd711647051da2d9c1836b60
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ generated source for module HumanNewMovesEvent """ # package: org.ggp.base.player.gamer.statemachine.human.event import java.util.Collections import java.util.Comparator import java.util.List import org.ggp.base.util.observer.Event import org.ggp.base.util.statemachine.Move class HumanNew...
26.911765
61
0.69071
102
915
6.078431
0.372549
0.120968
0.145161
0.116129
0.154839
0
0
0
0
0
0
0
0.202186
915
33
62
27.727273
0.849315
0.320219
0
0
1
0
0
0
0
0
0
0
0
1
0.176471
false
0
0.294118
0
0.764706
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
c652146fcd14ab9f2d41763643cd077079fbe4fe
3,638
py
Python
raw_data_euzi.py
thiagolcmelo/benchmark
bc6697cde65700858ef948e05f8b1517bc33b045
[ "MIT" ]
null
null
null
raw_data_euzi.py
thiagolcmelo/benchmark
bc6697cde65700858ef948e05f8b1517bc33b045
[ "MIT" ]
null
null
null
raw_data_euzi.py
thiagolcmelo/benchmark
bc6697cde65700858ef948e05f8b1517bc33b045
[ "MIT" ]
null
null
null
# coding: utf-8 # In[37]: import pandas as pd import numpy as np import matplotlib.pyplot as plt from scipy.spatial.distance import cdist from sklearn.preprocessing import StandardScaler plt.rcParams['figure.figsize'] = 14, 8 # In[76]: n = 6 files = np.load('res_numeric_iter.npz') res_numeric_iter = files['arr_...
31.912281
125
0.673997
473
3,638
4.997886
0.183932
0.029611
0.015228
0.027919
0.751692
0.733926
0.691624
0.637056
0.593063
0.550761
0
0.013745
0.180044
3,638
113
126
32.19469
0.778746
0.072018
0
0.5375
0
0
0.237656
0.117192
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
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
c654fd9493d969b34bd8c13f8d5d633b9da441c9
810
py
Python
sdmxthon/testSuite/datasetsValidation/test_datasets_validation.py
Meaningful-Data/sdmxthon
d6c187bab1ddecf49a12bccb6bf737bc3f08ac72
[ "Apache-2.0" ]
1
2021-05-25T17:04:49.000Z
2021-05-25T17:04:49.000Z
sdmxthon/testSuite/datasetsValidation/test_datasets_validation.py
Meaningful-Data/sdmxthon
d6c187bab1ddecf49a12bccb6bf737bc3f08ac72
[ "Apache-2.0" ]
2
2021-06-23T11:32:40.000Z
2021-12-01T17:44:19.000Z
sdmxthon/testSuite/datasetsValidation/test_datasets_validation.py
Meaningful-Data/sdmxthon
d6c187bab1ddecf49a12bccb6bf737bc3f08ac72
[ "Apache-2.0" ]
null
null
null
""" Datasets Validation Tests """ import os import unittest from sdmxthon.testSuite import TestHelper class DatasetsValidation(TestHelper.TestHelper): path = os.path.dirname(__file__) pathToDB = os.path.join(os.path.join(path, "data"), "data_sample") pathToMetadata = os.path.join(os.path.join(path, "data...
27
75
0.681481
97
810
5.474227
0.391753
0.079096
0.112994
0.067797
0.286252
0.158192
0.158192
0.158192
0
0
0
0.006088
0.188889
810
29
76
27.931034
0.802131
0.030864
0
0.105263
0
0
0.14157
0
0
0
0
0
0
1
0.105263
false
0
0.157895
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d65d01e188f95a8e1009f5005094012267cf9306
878
py
Python
setup.py
chadsaun/django-clear-cache
9251fd3730afb8ab3deaf5c2619889438fc760c4
[ "Unlicense" ]
56
2015-04-07T09:05:28.000Z
2022-03-25T13:34:08.000Z
setup.py
chadsaun/django-clear-cache
9251fd3730afb8ab3deaf5c2619889438fc760c4
[ "Unlicense" ]
2
2019-06-13T16:19:38.000Z
2022-02-14T07:29:20.000Z
setup.py
chadsaun/django-clear-cache
9251fd3730afb8ab3deaf5c2619889438fc760c4
[ "Unlicense" ]
12
2015-06-30T05:44:46.000Z
2021-07-21T14:39:55.000Z
from os.path import abspath, dirname, join, normpath from setuptools import setup setup( # Basic package information: name = 'django-clear-cache', version = '0.3', packages = ( 'clear_cache', 'clear_cache.management', 'clear_cache.management.commands' ), # Packaging ...
25.085714
80
0.656036
97
878
5.804124
0.670103
0.08881
0.056838
0
0
0
0
0
0
0
0
0.005865
0.223235
878
34
81
25.823529
0.819648
0.09795
0
0
0
0
0.365947
0.067344
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
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
d65f3d917c5b1fe60b08e7697a7c340fffeef47c
618
py
Python
src/controller/controller.py
lmiguelvargasf/trajectory_tracking
90e59c66294105b963a6f9a6ebba1419d93f210b
[ "MIT" ]
54
2017-04-07T08:55:19.000Z
2022-03-23T01:29:12.000Z
src/controller/controller.py
sweetquiet/trajectory_tracking
90e59c66294105b963a6f9a6ebba1419d93f210b
[ "MIT" ]
2
2017-07-28T15:52:03.000Z
2018-12-14T02:02:44.000Z
src/controller/controller.py
lmiguelvargasf/trajectory_tracking
90e59c66294105b963a6f9a6ebba1419d93f210b
[ "MIT" ]
24
2017-09-15T11:56:51.000Z
2022-01-18T09:58:19.000Z
#!/usr/bin/env python from util.angle import get_euler_orientation class Controller: def __init__(self, trajectory, simulation_data): self.trajectory = trajectory self.simulation_time = simulation_data['time'] self.delta = simulation_data['delta'] def set_current_orientation(self, ori...
29.428571
60
0.699029
81
618
5.024691
0.382716
0.103194
0.095823
0
0
0
0
0
0
0
0
0.002049
0.210356
618
20
61
30.9
0.831967
0.032362
0
0
0
0
0.015075
0
0
0
0
0
0
1
0.285714
false
0
0.071429
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
d6619e9603d1680a752cb24152ae09bb42900d60
22,576
py
Python
google-cloud-sdk/lib/googlecloudsdk/command_lib/container/flags.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/googlecloudsdk/command_lib/container/flags.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/googlecloudsdk/command_lib/container/flags.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
3
2017-07-27T18:44:13.000Z
2020-07-25T17:48:53.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
32.483453
100
0.700124
3,111
22,576
5.011893
0.157506
0.030785
0.03489
0.015393
0.459723
0.410852
0.380644
0.330041
0.297589
0.259171
0
0.008656
0.19658
22,576
694
101
32.530259
0.850976
0.061127
0
0.438053
0
0.022124
0.528585
0.043663
0
0
0
0.005764
0
0
null
null
0
0.013274
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
d6693643a81157cff7ee421b7cfeba5e1d268d27
3,001
py
Python
tests/test_decorator.py
PRIV00/quikcsv
5467203506dcb18a6cfd5e50afbec7c1689212c8
[ "MIT" ]
null
null
null
tests/test_decorator.py
PRIV00/quikcsv
5467203506dcb18a6cfd5e50afbec7c1689212c8
[ "MIT" ]
null
null
null
tests/test_decorator.py
PRIV00/quikcsv
5467203506dcb18a6cfd5e50afbec7c1689212c8
[ "MIT" ]
null
null
null
import unittest import csv from quikcsv.decorator import QuikCSV class Test_QuikCSV(unittest.TestCase): def test_single_dataset_data_only(self): datasets = [dict( data=[ ['A', 'B', 'C'], ['1', '2', '3'] ] )] @QuikCSV(datasets) ...
26.557522
59
0.427524
305
3,001
4.078689
0.183607
0.016077
0.024116
0.106109
0.751608
0.692122
0.687299
0.687299
0.687299
0.687299
0
0.011669
0.428857
3,001
112
60
26.794643
0.714119
0
0
0.680412
0
0
0.031323
0
0
0
0
0
0.061856
1
0.113402
false
0
0.030928
0
0.154639
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d67b854053394c1b396b3d9ed43ff5cc7074f534
558
py
Python
run/file/rw.py
QPointNotebook/PythonSample
53c2a54da2bf9a61449ed1c7d2864c5c0eedc5e0
[ "MIT" ]
null
null
null
run/file/rw.py
QPointNotebook/PythonSample
53c2a54da2bf9a61449ed1c7d2864c5c0eedc5e0
[ "MIT" ]
null
null
null
run/file/rw.py
QPointNotebook/PythonSample
53c2a54da2bf9a61449ed1c7d2864c5c0eedc5e0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys sys.path.append( os.pardir ) from file.file import file, mode from file.txt import txt from file.txtencode import txtencode from file.txt2bin import txt2bin from file.excel import excel from argument.argfile import argfile if __name__ == '__main__': ...
20.666667
37
0.657706
77
558
4.571429
0.493506
0.113636
0
0
0
0
0
0
0
0
0
0.006961
0.227599
558
26
38
21.461538
0.809745
0.075269
0
0
0
0
0.015564
0
0
0
0
0
0
1
0
false
0
0.470588
0
0.470588
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d67e0acf125d2f7f4cc0d044ba840661a309ef17
10,383
py
Python
ipd_polen_exact.py
soumye/policy_encoding
0244416882c168e38fde8d7079efe7dcfabcd874
[ "MIT" ]
null
null
null
ipd_polen_exact.py
soumye/policy_encoding
0244416882c168e38fde8d7079efe7dcfabcd874
[ "MIT" ]
null
null
null
ipd_polen_exact.py
soumye/policy_encoding
0244416882c168e38fde8d7079efe7dcfabcd874
[ "MIT" ]
null
null
null
# coding: utf-8 import numpy as np import argparse import torch import os from shutil import rmtree import torch.nn as nn import torch.nn.functional as F from torch.distributions import Bernoulli from copy import deepcopy from envs import IPD # from torch.utils.tensorboard import SummaryWriter from tensorboardX import...
44.75431
377
0.608976
1,433
10,383
4.293091
0.212142
0.03381
0.046977
0.017068
0.261053
0.178479
0.105494
0.088589
0.068108
0.04145
0
0.037018
0.253299
10,383
231
378
44.948052
0.756481
0.130694
0
0.01227
0
0.018405
0.091021
0
0
0
0
0.012987
0
1
0.092025
false
0.006135
0.079755
0.006135
0.239264
0.018405
0
0
0
null
0
0
0
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
d68192d37d89a34f59ad742a7a1f4ffb7feb6bd2
3,427
py
Python
src/maze_test_plot_trajectories.py
Hiryugan/rl-demonstrations
fa8b22e2a5dcb44ae170d5e8480a297469373b2f
[ "MIT" ]
3
2018-12-23T17:08:05.000Z
2018-12-26T18:02:44.000Z
src/maze_test_plot_trajectories.py
gabriele-bani/rl-demonstrations
fa8b22e2a5dcb44ae170d5e8480a297469373b2f
[ "MIT" ]
13
2018-12-23T08:49:35.000Z
2018-12-23T08:49:36.000Z
src/maze_test_plot_trajectories.py
gabriele-bani/rl-demonstrations
fa8b22e2a5dcb44ae170d5e8480a297469373b2f
[ "MIT" ]
null
null
null
import random from replay import play_episodes, play_trajectory from backward_train_maze import backward_train_maze, train_maze import utils from utils import smooth import matplotlib.pyplot as plt import numpy as np import pickle env_name = "Maze_(15,15,42,1.0,1.0)" env = utils.create_env(env_name) seed = 34 # #...
40.797619
136
0.665305
511
3,427
4.299413
0.266145
0.08193
0.069185
0.040965
0.414201
0.349112
0.256259
0.256259
0.256259
0.216659
0
0.029824
0.187919
3,427
84
137
40.797619
0.759612
0.159615
0
0.050847
0
0
0.087835
0.008017
0
0
0
0.011905
0
1
0.050847
false
0
0.135593
0.016949
0.237288
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
d683593500a2a4847a8dd311950f0fd3e2c8d7a5
317
py
Python
Chapter 09/Chap09_Example9.26.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 09/Chap09_Example9.26.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 09/Chap09_Example9.26.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
try: myfile1=open("E:\\python_progs\\demochange\\mydir2\\pic1.jpg","rb") myfile2=open("E:\\python_progs\\demochange\\mydir2\\newpic1.jpg","wb") bytes=myfile1.read() myfile2.write(bytes) print("A new Image is available having name as: newpic1.jpg") finally: myfile1.close() myfile2.close()
31.7
74
0.678233
43
317
4.953488
0.651163
0.046948
0.103286
0.150235
0.300469
0.300469
0
0
0
0
0
0.040441
0.141956
317
9
75
35.222222
0.742647
0
0
0
0
0
0.476341
0.299685
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
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
d693047e2d090f4f9ab6e516542720912204d754
1,157
py
Python
tests/views_login_unittests.py
SideShowBoBGOT/EPAM-project
f96ce88c81a8c075daafc6f37b4df47186395320
[ "Unlicense" ]
1
2021-12-04T21:46:12.000Z
2021-12-04T21:46:12.000Z
tests/views_login_unittests.py
SideShowBoBGOT/EPAM-project
f96ce88c81a8c075daafc6f37b4df47186395320
[ "Unlicense" ]
null
null
null
tests/views_login_unittests.py
SideShowBoBGOT/EPAM-project
f96ce88c81a8c075daafc6f37b4df47186395320
[ "Unlicense" ]
null
null
null
import os import sys import unittest sys.path.append(os.path.abspath(os.path.join('..'))) from models.users import User from wsgi import app app.app_context().push() ADMIN_LOGIN = User.query.get(1).login ADMIN_PASSWORD = User.query.get(1).password class FlaskTestCases(unittest.TestCase): # Ensure that Flask w...
31.27027
90
0.681936
154
1,157
4.974026
0.454545
0.073107
0.06658
0.074413
0.314621
0.284595
0.203655
0.203655
0
0
0
0.005388
0.197926
1,157
36
91
32.138889
0.820043
0.083838
0
0.08
0
0
0.084201
0
0
0
0
0
0.16
1
0.08
false
0.08
0.2
0
0.32
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
d69581ea0e1255849361bde28bf51a678df46ec8
2,942
py
Python
packstack/modules/ospluginutils.py
melroyr/havana-packstack
72cdb0e5e29df4cccb81844ec8b365dfededf4f7
[ "Apache-2.0" ]
1
2015-11-06T10:12:19.000Z
2015-11-06T10:12:19.000Z
packstack/modules/ospluginutils.py
melroyr/havana-packstack
72cdb0e5e29df4cccb81844ec8b365dfededf4f7
[ "Apache-2.0" ]
null
null
null
packstack/modules/ospluginutils.py
melroyr/havana-packstack
72cdb0e5e29df4cccb81844ec8b365dfededf4f7
[ "Apache-2.0" ]
null
null
null
import logging import os import re from packstack.installer import basedefs from packstack.installer.setup_controller import Controller from packstack.installer.exceptions import PackStackError controller = Controller() PUPPET_DIR = os.path.join(basedefs.DIR_PROJECT_DIR, "puppet") PUPPET_TEMPLATE_DIR = os.path.join...
30.329897
77
0.60877
366
2,942
4.789617
0.322404
0.017114
0.028523
0.027382
0.06389
0.039932
0.039932
0.039932
0
0
0
0.004737
0.282461
2,942
96
78
30.645833
0.825675
0.03535
0
0.060606
0
0
0.031685
0
0
0
0
0
0
0
null
null
0
0.090909
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
d6980f314d3968a5b76ad543be9f7763e18bd92c
227
py
Python
services/optima.py
studio-mad-tagic/b0mb3r
1aa708f9e60341ff1e90ac6b1412f642bea7df11
[ "MIT" ]
1
2021-06-07T15:37:58.000Z
2021-06-07T15:37:58.000Z
services/optima.py
studio-mad-tagic/b0mb3r
1aa708f9e60341ff1e90ac6b1412f642bea7df11
[ "MIT" ]
null
null
null
services/optima.py
studio-mad-tagic/b0mb3r
1aa708f9e60341ff1e90ac6b1412f642bea7df11
[ "MIT" ]
null
null
null
from service import Service class Optima(Service): def send_sms(self): if self.country_code == 'ua': self.session.post('https://online.optima.taxi/user/get-code', data={'phone': self.formatted_phone})
28.375
111
0.669604
31
227
4.806452
0.741935
0
0
0
0
0
0
0
0
0
0
0
0.180617
227
7
112
32.428571
0.801075
0
0
0
0
0
0.207048
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d69ac39a289e1010122a0b99bd72d101f253bf67
1,696
py
Python
User/migrations/0001_initial.py
asiLukas/Initter
d2ac53c487a182e63d96f99842dcce1d6df51b03
[ "Apache-2.0" ]
5
2020-09-24T08:44:12.000Z
2020-09-24T08:44:21.000Z
User/migrations/0001_initial.py
asiLukas/Initter
d2ac53c487a182e63d96f99842dcce1d6df51b03
[ "Apache-2.0" ]
1
2021-11-04T09:12:25.000Z
2021-11-04T09:12:25.000Z
User/migrations/0001_initial.py
asiLukas/Initter
d2ac53c487a182e63d96f99842dcce1d6df51b03
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1 on 2020-10-30 10:34 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
42.4
165
0.62559
180
1,696
5.722222
0.411111
0.038835
0.054369
0.085437
0.409709
0.282524
0.282524
0.246602
0.246602
0.153398
0
0.016266
0.238797
1,696
39
166
43.487179
0.781565
0.025354
0
0.3125
1
0
0.114476
0.01272
0
0
0
0
0
1
0
false
0
0.09375
0
0.21875
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
d69e75443154fe3995792e6fcff317558a283acf
1,015
py
Python
api/views/domain.py
0xb00d1e/ioc_fetch
7250a122d51de5fe3f16f679b99ec1b0879d235c
[ "MIT" ]
null
null
null
api/views/domain.py
0xb00d1e/ioc_fetch
7250a122d51de5fe3f16f679b99ec1b0879d235c
[ "MIT" ]
null
null
null
api/views/domain.py
0xb00d1e/ioc_fetch
7250a122d51de5fe3f16f679b99ec1b0879d235c
[ "MIT" ]
null
null
null
import requests import socket from flask import jsonify, request from ioc_fetch.api import api from ioc_fetch.api.lib.decorators.auth import require_roles from ioc_fetch.api.lib.responses import * from ioc_fetch.api.sources import all_sources from ioc_fetch.logger import get_logger logger = get_logger(__name__) @a...
26.025641
71
0.699507
132
1,015
5.136364
0.469697
0.051622
0.088496
0.088496
0.053097
0
0
0
0
0
0
0.001255
0.214778
1,015
38
72
26.710526
0.849435
0.062069
0
0
0
0
0.02529
0
0
0
0
0.026316
0
1
0.071429
false
0
0.285714
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d6a088d56872dd9beb4e6101c0da73358875f70a
1,642
py
Python
python/tests/plotting/plot_methods_test.py
g5t/scipp
d819c930a5e438fd65e42e2e4e737743b8d39d37
[ "BSD-3-Clause" ]
null
null
null
python/tests/plotting/plot_methods_test.py
g5t/scipp
d819c930a5e438fd65e42e2e4e737743b8d39d37
[ "BSD-3-Clause" ]
null
null
null
python/tests/plotting/plot_methods_test.py
g5t/scipp
d819c930a5e438fd65e42e2e4e737743b8d39d37
[ "BSD-3-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD-3-Clause # Copyright (c) 2021 Scipp contributors (https://github.com/scipp) # @file # @author Neil Vaytet import numpy as np import scipp as sc def test_plot_variable(): v = sc.Variable(['x'], values=np.arange(10.0), unit=sc.units.m) v.plot().close() def test_plot_data_array(...
33.510204
77
0.439708
190
1,642
3.736842
0.305263
0.126761
0.101408
0.167606
0.66338
0.622535
0.525352
0.4
0.3
0.3
0
0.024365
0.400122
1,642
48
78
34.208333
0.696447
0.077954
0
0.342857
0
0
0.015905
0
0
0
0
0
0
1
0.114286
false
0
0.057143
0
0.171429
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d6a0ec244d3002029e12d5e7c638b1efaf092433
1,835
py
Python
syn/util/constraint/b/tests/test_base.py
mbodenhamer/syn
aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258
[ "MIT" ]
1
2021-07-15T08:55:12.000Z
2021-07-15T08:55:12.000Z
syn/util/constraint/b/tests/test_base.py
mbodenhamer/syn
aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258
[ "MIT" ]
7
2021-01-07T23:51:57.000Z
2021-12-13T19:50:57.000Z
syn/util/constraint/b/tests/test_base.py
mbodenhamer/syn
aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258
[ "MIT" ]
2
2016-07-11T08:46:31.000Z
2017-12-13T13:30:51.000Z
import collections from nose.tools import assert_raises from syn.sets import SetWrapper, TypeWrapper from syn.util.constraint import Domain, Constraint, Problem #------------------------------------------------------------------------------- # Domain def test_domain(): d = Domain() d['a'] = [1] assert d['...
30.081967
80
0.481199
211
1,835
4.080569
0.303318
0.020906
0.065041
0.052265
0.193961
0
0
0
0
0
0
0.023066
0.19673
1,835
60
81
30.583333
0.561058
0.19564
0
0
0
0
0.060627
0
0
0
0
0
0.410256
1
0.076923
false
0
0.153846
0
0.230769
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
1
0
0
0
0
0
0
0
0
0
1
d6a97b1da9c64005fde95f29a281f9d026c8a916
591
py
Python
nurfweb/endpoints/data.py
benri/MyNurfApp
8f1aaa9894d18e166e76a540cb154f93846bb9b4
[ "MIT" ]
null
null
null
nurfweb/endpoints/data.py
benri/MyNurfApp
8f1aaa9894d18e166e76a540cb154f93846bb9b4
[ "MIT" ]
null
null
null
nurfweb/endpoints/data.py
benri/MyNurfApp
8f1aaa9894d18e166e76a540cb154f93846bb9b4
[ "MIT" ]
null
null
null
from pyramid.view import view_config import os import psycopg2 import urlparse @view_config(route_name='data', renderer='nurfweb.frontend:pages/data/data.mako') def render_data_page(request): return {'project': 'nurfweb'} @view_config(route_name='db', renderer="string") def db(request): urlparse.uses_netl...
21.888889
81
0.685279
75
591
5.28
0.56
0.075758
0.075758
0.09596
0
0
0
0
0
0
0
0.006211
0.182741
591
27
82
21.888889
0.813665
0
0
0
0
0
0.140203
0.0625
0
0
0
0
0
1
0.105263
false
0.052632
0.210526
0.052632
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d6c577e0e804d5855f1268c5d32af417c9fbb79c
2,410
py
Python
pysparc/scripts/test_hardware.py
CosmicLaserShow/CosmicLaserShow
8c00c84cb2ac78182c894e3cce074753a7fb4384
[ "MIT" ]
null
null
null
pysparc/scripts/test_hardware.py
CosmicLaserShow/CosmicLaserShow
8c00c84cb2ac78182c894e3cce074753a7fb4384
[ "MIT" ]
null
null
null
pysparc/scripts/test_hardware.py
CosmicLaserShow/CosmicLaserShow
8c00c84cb2ac78182c894e3cce074753a7fb4384
[ "MIT" ]
null
null
null
from __future__ import division import logging import time import os from ConfigParser import ConfigParser from pysparc.hardware import HiSPARCIII from pysparc.align_adcs import AlignADCs from pysparc import messages CONFIGFILE = 'config.ini' def average(values): return sum(values) / len(values) def main(): ...
30.897436
65
0.571784
283
2,410
4.681979
0.371025
0.013585
0.013585
0.012075
0.004528
0
0
0
0
0
0
0.031707
0.319502
2,410
77
66
31.298701
0.77622
0
0
0.079365
0
0
0.09751
0
0
0
0.00166
0
0
0
null
null
0
0.126984
null
null
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
1
0
0
0
0
0
0
0
0
1
d6c822c38643d68251f974cef59d1206b9136cea
763
py
Python
tests/test_detect.py
LeeJohnn/Visual-Recognition-HW2
b812ca0eaf1bc275caf7c522a87ff37075052206
[ "MIT" ]
1
2022-01-02T02:33:54.000Z
2022-01-02T02:33:54.000Z
tests/test_detect.py
shivaprasadm26/JerseyNumberDetectionTF20
64f8bd63fafb37c1bf2a6054ffba44670b44bb79
[ "MIT" ]
null
null
null
tests/test_detect.py
shivaprasadm26/JerseyNumberDetectionTF20
64f8bd63fafb37c1bf2a6054ffba44670b44bb79
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import cv2 import os from yolo.net.yolonet import Yolonet from yolo import COCO_ANCHORS, PROJECT_ROOT from yolo.frontend import YoloDetector def test_detect(setup_darknet_weights): darknet_weights = setup_darknet_weights image_path = os.path.join(PROJECT_ROOT, "tests", "sample...
21.8
80
0.688073
101
763
4.920792
0.544554
0.112676
0.076459
0
0
0
0
0
0
0
0
0.022727
0.192661
763
34
81
22.441176
0.784091
0.10616
0
0
0
0
0.051775
0
0
0
0
0
0.055556
1
0.055556
false
0
0.333333
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d6cf22f3c265b44add26e661983f88c41149f7ad
1,432
py
Python
main.py
jortvangorkum/Network-Science-Hierarchical-Dendrogram
c2558a45dc5dad627d6cec3b230ea8cba380ca90
[ "MIT" ]
null
null
null
main.py
jortvangorkum/Network-Science-Hierarchical-Dendrogram
c2558a45dc5dad627d6cec3b230ea8cba380ca90
[ "MIT" ]
null
null
null
main.py
jortvangorkum/Network-Science-Hierarchical-Dendrogram
c2558a45dc5dad627d6cec3b230ea8cba380ca90
[ "MIT" ]
null
null
null
from src.results.latex import generate_latex_information from src.comparison.testing import tost_test, ttest_paired from src.results.main import print_graph_information, print_hypothesis_testing from src.algorithms.main import execute_algorithms import matplotlib.pyplot as plt dpi = 96 plt.rcParams["figure.figsize"] ...
40.914286
115
0.730447
178
1,432
5.674157
0.359551
0.049505
0.10396
0.09901
0.136634
0.073267
0
0
0
0
0
0.016221
0.138966
1,432
35
116
40.914286
0.80292
0
0
0
1
0
0.311235
0.219819
0
0
0
0
0
1
0.037037
false
0
0.185185
0
0.222222
0.296296
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
d6d59cb3461e779b16bf98fc670e66ef4ab3d368
946
py
Python
backend/api/v1/endpoints/user.py
zy7y/watch-fastapi
f679c6694ac99c77352adee833416321ee3c3a9d
[ "MIT" ]
20
2021-11-08T01:37:00.000Z
2022-03-28T03:03:06.000Z
backend/api/v1/endpoints/user.py
ilfish/watch-fastapi
926f3eada2acde40cf0a43d386215a65548666f6
[ "MIT" ]
1
2022-03-26T08:24:26.000Z
2022-03-26T08:26:20.000Z
backend/api/v1/endpoints/user.py
ilfish/watch-fastapi
926f3eada2acde40cf0a43d386215a65548666f6
[ "MIT" ]
10
2021-11-07T04:02:12.000Z
2022-03-20T06:28:04.000Z
from fastapi import APIRouter, Depends, Body from core import deps from scheams import User_Pydantic, UserIn_Pydantic, Response200, Response400 from models import User user = APIRouter(tags=["用户相关"], dependencies=[Depends(deps.get_current_user)]) @user.get("/user", summary="当前用户") async def user_info(user_obj: Use...
30.516129
99
0.735729
128
946
5.21875
0.351563
0.073353
0.062874
0.094311
0.32485
0.287425
0.287425
0.287425
0.179641
0.179641
0
0.018541
0.14482
946
30
100
31.533333
0.807169
0
0
0.133333
0
0
0.030093
0
0
0
0
0
0
1
0
false
0.066667
0.266667
0
0.466667
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