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
7db0f59fda664af588205921b63a5673fed2e4e0
351
py
Python
water-bottles/water-bottles.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
1
2021-10-10T20:21:18.000Z
2021-10-10T20:21:18.000Z
water-bottles/water-bottles.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
null
null
null
water-bottles/water-bottles.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
null
null
null
class Solution: def numWaterBottles(self, numBottles: int, numExchange: int) -> int: ans = numBottles while numBottles >= numExchange: remaining = numBottles%numExchange numBottles = numBottles // numExchange ans += numBottles numBottles += remaining ...
35.1
72
0.595442
28
351
7.464286
0.428571
0.301435
0
0
0
0
0
0
0
0
0
0
0.333333
351
10
73
35.1
0.893162
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7db39977b05c1ef074982b334bb56d3e92ef985d
810
py
Python
airbus_cobot_gui/src/airbus_cobot_gui/dashboard/__init__.py
ipa320/airbus_coop
974564807ba5d24096e237a9991311608a390da1
[ "Apache-2.0" ]
4
2017-10-15T23:32:24.000Z
2019-12-26T12:31:53.000Z
airbus_cobot_gui/src/airbus_cobot_gui/dashboard/__init__.py
ipa320/airbus_coop
974564807ba5d24096e237a9991311608a390da1
[ "Apache-2.0" ]
6
2017-09-05T13:52:00.000Z
2017-12-01T14:18:27.000Z
airbus_cobot_gui/src/airbus_cobot_gui/dashboard/__init__.py
ipa320/airbus_coop
974564807ba5d24096e237a9991311608a390da1
[ "Apache-2.0" ]
4
2017-09-04T08:14:36.000Z
2017-09-18T07:22:21.000Z
from dashboard_provider import DashboardProvider from dashboard import Dashboard from wrapper_dashboard import DashboardPopup from roslib.packages import get_pkg_dir from python_qt_binding.QtGui import * from python_qt_binding.QtCore import * from airbus_cobot_gui.context import Context from xml.etree import ElementTr...
33.75
92
0.804938
96
810
6.520833
0.458333
0.108626
0.028754
0.060703
0
0
0
0
0
0
0
0
0.134568
810
23
93
35.217391
0.89301
0
0
0
0
0
0.035802
0.033333
0
0
0
0
0
1
0.066667
false
0
0.533333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
7dbacf7b7464287ad2512a2e89c4082dbc1fa796
4,402
py
Python
molecule/default/tests/test_default.py
darkwizard242/ansible-role-jenkinslts
49e7d25be47a4d1440792ee4f363c0e7e49e06cf
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
darkwizard242/ansible-role-jenkinslts
49e7d25be47a4d1440792ee4f363c0e7e49e06cf
[ "MIT" ]
7
2020-01-25T03:29:32.000Z
2022-02-08T17:45:59.000Z
molecule/default/tests/test_default.py
darkwizard242/ansible-role-jenkinslts
49e7d25be47a4d1440792ee4f363c0e7e49e06cf
[ "MIT" ]
null
null
null
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') PACKAGE = 'jenkins' PACKAGE_USER = 'jenkins' PACKAGE_GROUP = 'jenkins' PACKAGE_HOME = '/var/lib/jenkins' DEBIAN_REPO_FILE = '/etc/apt/sources.li...
26.047337
76
0.723308
588
4,402
5.161565
0.142857
0.046129
0.112026
0.112685
0.633278
0.469852
0.247117
0.113344
0.099506
0.099506
0
0
0.177419
4,402
168
77
26.202381
0.838166
0.224443
0
0
0
0
0.11725
0.061356
0
0
0
0
0.3125
1
0.3125
false
0.140625
0.03125
0
0.34375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
7dbbfe48b80521909995c4e595a76ee7f76b5612
446
py
Python
awssg/Regions_Parser.py
danilocgsilva/aws-sg
76e3b7325f01e75e1364901e156c392ccb097ac5
[ "MIT" ]
null
null
null
awssg/Regions_Parser.py
danilocgsilva/aws-sg
76e3b7325f01e75e1364901e156c392ccb097ac5
[ "MIT" ]
null
null
null
awssg/Regions_Parser.py
danilocgsilva/aws-sg
76e3b7325f01e75e1364901e156c392ccb097ac5
[ "MIT" ]
null
null
null
import json from awssg.Parser_Interface import Parser_Interface class Regions_Parser(Parser_Interface): def set_string_data(self, string_data: str): self.data = json.loads(string_data) def set_data(self, data: dict): self.data = data def get_list(self) -> list: region_list = []...
20.272727
51
0.661435
58
446
4.862069
0.431034
0.113475
0
0
0
0
0
0
0
0
0
0
0.244395
446
21
52
21.238095
0.836795
0
0
0
0
0
0.038202
0
0
0
0
0
0
1
0.25
false
0
0.166667
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
7dbdf6adfef8543783cbd28b7c2cd782532d8593
2,696
py
Python
src/awa/sources/sigar.py
tdanford/awa-scraper
ff7b998df0207f04a861edc0da7c5924610c7405
[ "MIT" ]
null
null
null
src/awa/sources/sigar.py
tdanford/awa-scraper
ff7b998df0207f04a861edc0da7c5924610c7405
[ "MIT" ]
null
null
null
src/awa/sources/sigar.py
tdanford/awa-scraper
ff7b998df0207f04a861edc0da7c5924610c7405
[ "MIT" ]
1
2021-08-24T00:28:52.000Z
2021-08-24T00:28:52.000Z
import logging from lxml import etree from awa.data_source import DataSource from awa.crawler import CrawlingQueue from awa.cached import Cached class SigarReports(DataSource): def __init__(self): DataSource.__init__( self, "SIGAR Reports", "https://www.sigar.mil/allreports/index.aspx?SSR=5"...
46.482759
101
0.620549
295
2,696
5.59322
0.369492
0.087273
0.141818
0.174545
0.321212
0.283636
0.157576
0.046061
0
0
0
0.001988
0.253709
2,696
57
102
47.298246
0.818091
0
0
0.057692
0
0
0.453635
0
0
0
0
0
0
1
0.038462
false
0.057692
0.096154
0
0.153846
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
7dc5513b382b1e2e6e7213895fb97bae1df47254
284
py
Python
threadPy.py
Ca2Patton/PythonStuff
9d13f340296bcea41dfca87a4b36e445821703de
[ "Apache-2.0" ]
null
null
null
threadPy.py
Ca2Patton/PythonStuff
9d13f340296bcea41dfca87a4b36e445821703de
[ "Apache-2.0" ]
null
null
null
threadPy.py
Ca2Patton/PythonStuff
9d13f340296bcea41dfca87a4b36e445821703de
[ "Apache-2.0" ]
null
null
null
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python import multiprocessing pass from multiprocessing import Process, Queue def f(q): q.put([42, None, 'hello']) if __name__ == '__main__': q = Queue() p = Process(target=f, args=(q,)) p.start() print q.get() p.join()
18.933333
62
0.693662
43
284
4.395349
0.72093
0
0
0
0
0
0
0
0
0
0
0.016194
0.130282
284
14
63
20.285714
0.748988
0.214789
0
0
0
0
0.058559
0
0
0
0
0
0
0
null
null
0.090909
0.181818
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
1
0
0
0
0
0
2
7dc885e1b2666c752540b43ad3506e5fde92716e
1,769
py
Python
client/socket_lib/__init__.py
PythonNut/omnomnom
588f9a93e535c4ba2c14530dc269d7ac0475db1e
[ "MIT" ]
null
null
null
client/socket_lib/__init__.py
PythonNut/omnomnom
588f9a93e535c4ba2c14530dc269d7ac0475db1e
[ "MIT" ]
null
null
null
client/socket_lib/__init__.py
PythonNut/omnomnom
588f9a93e535c4ba2c14530dc269d7ac0475db1e
[ "MIT" ]
1
2019-10-16T10:37:35.000Z
2019-10-16T10:37:35.000Z
import socket class ClientSocket: """ simple client socket for omnomnom game """ def __init__(self): """ creates a socket and starts a connection """ self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.PORT = 2222 # connect on construc...
26.80303
81
0.538157
213
1,769
4.41784
0.525822
0.102019
0.143464
0.178533
0.054198
0.054198
0.054198
0.054198
0.054198
0.054198
0
0.016556
0.317128
1,769
65
82
27.215385
0.762417
0.338609
0
0
0
0
0.057143
0
0
0
0
0
0
1
0.296296
false
0
0.037037
0
0.37037
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
7de000ea24976a4c4995ac25cce1678a6e3c5058
586
py
Python
tests/utils.py
Morloth1274/EVE-Online-POCO-manager
f35e6ac49c4451a16011a8c15115c5229b3ce887
[ "MIT" ]
1
2017-05-06T22:58:13.000Z
2017-05-06T22:58:13.000Z
tests/utils.py
Morloth1274/EVE-Online-POCO-manager
f35e6ac49c4451a16011a8c15115c5229b3ce887
[ "MIT" ]
null
null
null
tests/utils.py
Morloth1274/EVE-Online-POCO-manager
f35e6ac49c4451a16011a8c15115c5229b3ce887
[ "MIT" ]
1
2019-12-11T10:31:09.000Z
2019-12-11T10:31:09.000Z
import os import unittest from xml.etree import ElementTree import mock import evelink.api as evelink_api def make_api_result(xml_path): xml_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'xml') with open(os.path.join(xml_dir, xml_path)) as f: return evelink_api.APIResult(ElementTree...
25.478261
77
0.725256
88
586
4.613636
0.409091
0.098522
0.096059
0.064039
0.160099
0
0
0
0
0
0
0.020492
0.167235
586
22
78
26.636364
0.811475
0
0
0
0
0
0.005119
0
0
0
0
0
0
1
0.2
false
0
0.333333
0.066667
0.733333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
81498791fc5576e6400cb620b4634359b7f06a2a
194
py
Python
tests/test_input_dialog.py
usernamedt/multitext-client
ebb9376fce0f001c6a887550fc33ffc764afdc71
[ "MIT" ]
1
2021-01-16T03:00:48.000Z
2021-01-16T03:00:48.000Z
tests/test_input_dialog.py
usernamedt/multitext-client
ebb9376fce0f001c6a887550fc33ffc764afdc71
[ "MIT" ]
1
2021-01-16T03:16:47.000Z
2021-01-17T19:22:33.000Z
tests/test_input_dialog.py
usernamedt/multitext-client
ebb9376fce0f001c6a887550fc33ffc764afdc71
[ "MIT" ]
1
2021-01-16T03:00:55.000Z
2021-01-16T03:00:55.000Z
from input_dialog import InputDialog def test_input_dialog(): title = 'test title' inp_dialog = InputDialog(title, 'test text') assert inp_dialog.__pt_container__().title == title
24.25
55
0.737113
25
194
5.32
0.52
0.165414
0
0
0
0
0
0
0
0
0
0
0.170103
194
7
56
27.714286
0.826087
0
0
0
0
0
0.097938
0
0
0
0
0
0.2
1
0.2
false
0
0.2
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
81526b533f861fb36591f84dc4882a24c022bf48
660
py
Python
pesto-cli/pesto/ws/service/job_list.py
CS-SI/pesto
654a961d1064049578050d4c96e6f68f6a6dd770
[ "Apache-2.0" ]
25
2020-05-19T16:22:52.000Z
2022-01-06T13:31:19.000Z
pesto-cli/pesto/ws/service/job_list.py
CS-SI/pesto
654a961d1064049578050d4c96e6f68f6a6dd770
[ "Apache-2.0" ]
5
2020-10-12T09:30:20.000Z
2021-12-13T12:49:06.000Z
pesto-cli/pesto/ws/service/job_list.py
CS-SI/pesto
654a961d1064049578050d4c96e6f68f6a6dd770
[ "Apache-2.0" ]
5
2020-06-19T16:05:13.000Z
2021-03-11T11:51:19.000Z
import logging import os log = logging.getLogger(__name__) class JobListService(object): PESTO_WORKSPACE = '/tmp/.pesto/jobs' def __init__(self) -> None: self.PESTO_WORKSPACE = JobListService.PESTO_WORKSPACE def job_list(self, url_root: str) -> dict: log.info('job_list : url_root = {}'....
28.695652
94
0.637879
83
660
4.795181
0.46988
0.211055
0.180905
0
0
0
0
0
0
0
0
0.001957
0.225758
660
22
95
30
0.776908
0
0
0
0
0
0.133333
0.036364
0
0
0
0
0
1
0.133333
false
0
0.133333
0
0.466667
0
0
0
0
null
1
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
2
8162ae3a9b89bcfe0153b8c48567e19b7e87e475
5,400
py
Python
util/poly.py
crisperdue/holpy
fe88eb91a8db8386184329e3f51a80d11ecdb316
[ "BSD-3-Clause" ]
22
2021-06-15T00:01:27.000Z
2022-03-15T11:22:25.000Z
util/poly.py
crisperdue/holpy
fe88eb91a8db8386184329e3f51a80d11ecdb316
[ "BSD-3-Clause" ]
null
null
null
util/poly.py
crisperdue/holpy
fe88eb91a8db8386184329e3f51a80d11ecdb316
[ "BSD-3-Clause" ]
2
2021-11-30T08:56:03.000Z
2022-01-24T10:46:39.000Z
"""Polynomials over arbitrary terms.""" from fractions import Fraction from collections.abc import Iterable from functools import cmp_to_key from kernel.term import Term from kernel import term_ord def compare_fst(p1, p2): if isinstance(p1[0], Term): return term_ord.fast_compare(p1[0], p2[0]) else: ...
29.032258
97
0.572778
709
5,400
4.211566
0.188999
0.036169
0.035164
0.019089
0.202277
0.118888
0.072338
0.019424
0
0
0
0.019857
0.300556
5,400
185
98
29.189189
0.770718
0.106667
0
0.226563
0
0
0.014594
0
0
0
0
0
0.054688
1
0.226563
false
0
0.039063
0.125
0.570313
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
8162deb1882ccf180ee90574da7e14ebf5426be6
1,104
py
Python
pysuru/base.py
rcmachado/pysuru
4db98f7dc68282caeb776203df04fc62bf6dcc15
[ "MIT" ]
null
null
null
pysuru/base.py
rcmachado/pysuru
4db98f7dc68282caeb776203df04fc62bf6dcc15
[ "MIT" ]
null
null
null
pysuru/base.py
rcmachado/pysuru
4db98f7dc68282caeb776203df04fc62bf6dcc15
[ "MIT" ]
null
null
null
# coding: utf-8 class BaseAPI(object): """ Base class for API related classes Provides basic skeleton for API related classes """ def __init__(self, client, context=None): self.client = client self.context = context or {} def list(self, *args, **kwargs): raise NotImplem...
26.285714
63
0.631341
128
1,104
5.390625
0.40625
0.137681
0.181159
0.057971
0.095652
0
0
0
0
0
0
0.001241
0.269928
1,104
41
64
26.926829
0.854839
0.134058
0
0.083333
0
0
0.157722
0
0
0
0
0
0
1
0.333333
false
0
0
0.041667
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
817cc12fbcfaf8be1545619090aebcbe49b7cf51
372
py
Python
PyMOTW/source/imaplib/imaplib_fetch_raw.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2019-01-04T05:47:50.000Z
2019-01-04T05:47:50.000Z
PyMOTW/source/imaplib/imaplib_fetch_raw.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2020-07-18T03:52:03.000Z
2020-07-18T04:18:01.000Z
PyMOTW/source/imaplib/imaplib_fetch_raw.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
2
2021-03-06T04:28:32.000Z
2021-03-06T04:59:17.000Z
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """ """ #end_pymotw_header import imaplib import pprint import imaplib_connect imaplib.Debug = 4 with imaplib_connect.open_connection() as c: c.select('INBOX', readonly=True) typ, msg_data = c.fetch('1', '(BOD...
19.578947
61
0.712366
54
372
4.777778
0.740741
0.100775
0
0
0
0
0
0
0
0
0
0.025237
0.147849
372
18
62
20.666667
0.788644
0.290323
0
0
0
0
0.123506
0
0
0
0
0
0
1
0
true
0
0.375
0
0.375
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
817f217a6344e2bcb65d08a61705e9c73c56c4dc
1,484
py
Python
server/app/tests/meals/test_services.py
josenava/meal-calendar
d5182f9b9ee30c02efc8bd22e79bb7a53e778919
[ "MIT" ]
null
null
null
server/app/tests/meals/test_services.py
josenava/meal-calendar
d5182f9b9ee30c02efc8bd22e79bb7a53e778919
[ "MIT" ]
5
2020-07-24T14:45:31.000Z
2022-02-27T09:49:55.000Z
server/app/tests/meals/test_services.py
josenava/meal-calendar
d5182f9b9ee30c02efc8bd22e79bb7a53e778919
[ "MIT" ]
null
null
null
import pytest from unittest.mock import Mock from app.meals.exceptions import MealNotFound, ActionNotAllowed from app.meals.services import UpdateMealService, DeleteMealService @pytest.mark.unit class TestUpdateMealService: def test_meal_not_found_raises_exception(self): meal_repository = Mock() ...
32.26087
70
0.717655
177
1,484
5.723164
0.231638
0.165844
0.075025
0.086871
0.725568
0.712734
0.712734
0.631787
0.402764
0.402764
0
0.009354
0.207547
1,484
45
71
32.977778
0.852041
0
0
0.647059
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.117647
0
0.294118
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
818034b2441ef650676f0f384036c8bd7c26540d
66
py
Python
nbqa/__init__.py
bdice/nbQA
eef1f4859898206fb8bc70a31848240acf2c7263
[ "MIT" ]
null
null
null
nbqa/__init__.py
bdice/nbQA
eef1f4859898206fb8bc70a31848240acf2c7263
[ "MIT" ]
null
null
null
nbqa/__init__.py
bdice/nbQA
eef1f4859898206fb8bc70a31848240acf2c7263
[ "MIT" ]
null
null
null
"""Attributes used by docs / packaging.""" __version__ = "0.5.9"
16.5
42
0.651515
9
66
4.333333
1
0
0
0
0
0
0
0
0
0
0
0.053571
0.151515
66
3
43
22
0.642857
0.545455
0
0
0
0
0.208333
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
81810c3edf4e8cc2816e8676107b728ffc4a0c88
437
py
Python
code_snippets/api-embeds-get.py
directionless/datadog-documentation
3b5efd463f1c0e2ab9ef984d60798cba418b496e
[ "BSD-3-Clause" ]
null
null
null
code_snippets/api-embeds-get.py
directionless/datadog-documentation
3b5efd463f1c0e2ab9ef984d60798cba418b496e
[ "BSD-3-Clause" ]
null
null
null
code_snippets/api-embeds-get.py
directionless/datadog-documentation
3b5efd463f1c0e2ab9ef984d60798cba418b496e
[ "BSD-3-Clause" ]
null
null
null
from datadog import initialize, api # Intialize request parameters including API/APP key options = { 'api_key': '9775a026f1ca7d1c6c5af9d94d9595a4', 'app_key': '87ce4a24b5553d2e482ea8a8500e71b8ad4554ff' } initialize(**options) # Set Embed ID (token) embed_id = "5f585b01c81b12ecdf5f40df0382738d0919170639985d3d...
27.3125
77
0.784897
44
437
7.681818
0.659091
0.06213
0
0
0
0
0
0
0
0
0
0.232558
0.114416
437
15
78
29.133333
0.640827
0.217391
0
0
0
0
0.485207
0.402367
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
81813ba19afad875a7176ab3bfb64f2565b6812c
2,913
py
Python
kemiskinan/desa/bahan_bakar_masak.py
bowo-anakdesa/count-sidekem
8737d6cc788ba51ec6f919dbc2cedcced76ea139
[ "MIT" ]
1
2019-06-28T02:02:51.000Z
2019-06-28T02:02:51.000Z
kemiskinan/desa/bahan_bakar_masak.py
bowo-anakdesa/count-sidekem
8737d6cc788ba51ec6f919dbc2cedcced76ea139
[ "MIT" ]
1
2019-08-03T18:39:33.000Z
2019-08-03T18:39:33.000Z
kemiskinan/desa/bahan_bakar_masak.py
bowo-anakdesa/count-sidekem
8737d6cc788ba51ec6f919dbc2cedcced76ea139
[ "MIT" ]
null
null
null
import pymysql db = pymysql.connect(host="localhost",user="root",passwd="12345678", db="sidekem") cur = db.cursor() cur.execute("SELECT id FROM `villages` WHERE id LIKE '%3327%' ") desa=cur.fetchall() for a in desa: """Counting Bahan Bakar Masak""" """bahan_bakar_masak_listrik""" cur.execute("SELECT COUNT(*...
64.733333
137
0.708548
405
2,913
4.735802
0.162963
0.239833
0.35975
0.09854
0.673618
0.673618
0.673618
0.351929
0.351929
0.351929
0
0.025852
0.123584
2,913
44
138
66.204545
0.725421
0
0
0
0
0
0.472763
0.119844
0
0
0
0
0
1
0
false
0.032258
0.032258
0
0.032258
0
0
0
0
null
1
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
2
81846f688fef6d156001389216f43be64f5bf603
2,286
py
Python
py/server/deephaven/plot/axisformat.py
mattrunyon/deephaven-core
80e3567e4647ab76a81e483d0a8ab542f9aadace
[ "MIT" ]
null
null
null
py/server/deephaven/plot/axisformat.py
mattrunyon/deephaven-core
80e3567e4647ab76a81e483d0a8ab542f9aadace
[ "MIT" ]
null
null
null
py/server/deephaven/plot/axisformat.py
mattrunyon/deephaven-core
80e3567e4647ab76a81e483d0a8ab542f9aadace
[ "MIT" ]
null
null
null
# # Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending # """ This module implements the AxisFormat class that can be applied to format axis tick labels on a plot. """ import jpy from deephaven.time import TimeZone from deephaven._wrapper import JObjectWrapper _JAxisFormat = jpy.get_type("io.deephaven.p...
35.169231
118
0.714348
289
2,286
5.50173
0.397924
0.025157
0.055346
0.066038
0.244654
0.133962
0.133962
0.060377
0.060377
0.060377
0
0.005498
0.204287
2,286
64
119
35.71875
0.868609
0.481627
0
0
0
0
0.132643
0.132643
0
0
0
0
0
1
0.208333
false
0
0.125
0.041667
0.541667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
819fee4f1a29e3394193b98b775c282cf3e59c82
4,894
py
Python
nicos/services/poller/psession.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos/services/poller/psession.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
4
2019-11-08T10:18:16.000Z
2021-01-13T13:07:29.000Z
nicos/services/poller/psession.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
39.467742
79
0.673682
627
4,894
5.204147
0.408293
0.009194
0.011952
0.017469
0.032485
0.017162
0
0
0
0
0
0.006661
0.233143
4,894
123
80
39.788618
0.862776
0.545566
0
0.088889
0
0
0.018005
0
0
0
0
0
0
1
0.2
false
0.088889
0.111111
0
0.533333
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
1
0
0
2
81ae4b1ccc8d1ebd3faf9a00941bc796ca5f1668
1,168
py
Python
ecommerce/migrations/0004_auto_20210705_1943.py
BraianMG/JaguareteKaa
3884f3ac268e1284e3359ae752851db7bb87cee3
[ "MIT" ]
null
null
null
ecommerce/migrations/0004_auto_20210705_1943.py
BraianMG/JaguareteKaa
3884f3ac268e1284e3359ae752851db7bb87cee3
[ "MIT" ]
null
null
null
ecommerce/migrations/0004_auto_20210705_1943.py
BraianMG/JaguareteKaa
3884f3ac268e1284e3359ae752851db7bb87cee3
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-07-05 22:43 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('ecommerce', '0003_produc...
31.567568
150
0.628425
117
1,168
6.136752
0.478632
0.111421
0.139276
0.16156
0.233983
0.233983
0
0
0
0
0
0.025404
0.258562
1,168
36
151
32.444444
0.80254
0.038527
0
0.4
1
0
0.120428
0.019625
0
0
0
0
0
1
0
false
0
0.1
0
0.2
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
81b30980a1d1f6eaebd23d54a35b3e1341e5f453
380
py
Python
pinax-im-dist/apps/useractivity/context_processors.py
turian/django-instantmessage
08093c43f221ea18497c8615261b87de30c87cbb
[ "MIT" ]
3
2015-06-09T15:21:38.000Z
2019-06-19T05:21:38.000Z
pinax-im-dist/apps/useractivity/context_processors.py
turian/django-instantmessage
08093c43f221ea18497c8615261b87de30c87cbb
[ "MIT" ]
null
null
null
pinax-im-dist/apps/useractivity/context_processors.py
turian/django-instantmessage
08093c43f221ea18497c8615261b87de30c87cbb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from django.contrib.auth.models import User from django.core.cache import cache from useractivity.utils import get_online_users def online_users(request): """Returns context variable with a set of users online.""" if request.user.is_authenticated(): ...
29.230769
62
0.736842
52
380
5.25
0.596154
0.161172
0.102564
0
0
0
0
0
0
0
0
0.003135
0.160526
380
12
63
31.666667
0.852665
0.197368
0
0
0
0
0.040134
0
0
0
0
0
0
1
0.125
false
0
0.5
0
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
81b7e9a06d0344cc6c9c4e386c6da127a0554256
117
py
Python
object_detection.py
sayantanhore/object_detection
56a2e7ccc6503c1a84b6d17f124b76f80a3eaf36
[ "MIT" ]
null
null
null
object_detection.py
sayantanhore/object_detection
56a2e7ccc6503c1a84b6d17f124b76f80a3eaf36
[ "MIT" ]
null
null
null
object_detection.py
sayantanhore/object_detection
56a2e7ccc6503c1a84b6d17f124b76f80a3eaf36
[ "MIT" ]
null
null
null
from skimage import io, color, feature if __name__ == '__main__': image = "messi.jpeg" io.imshow(image) io.show()
19.5
38
0.700855
17
117
4.352941
0.823529
0
0
0
0
0
0
0
0
0
0
0
0.153846
117
6
39
19.5
0.747475
0
0
0
0
0
0.152542
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
81bbe935e741477b80a3830510b0619034562658
1,319
py
Python
tensorflow/contrib/metrics/python/ops/confusion_matrix_ops.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/contrib/metrics/python/ops/confusion_matrix_ops.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/metrics/python/ops/confusion_matrix_ops.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42.548387
80
0.695982
166
1,319
5.403614
0.578313
0.06689
0.053512
0.035674
0
0
0
0
0
0
0
0.009234
0.178923
1,319
30
81
43.966667
0.819021
0.561031
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.5
0
0.7
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
81ced32d01e659717c7cc2424bd43aa07562517c
4,317
py
Python
src/lib/resultGraph/__init__.py
sankhaMukherjee/RLalgos
80d19a39af29947db2fc73b0443b9c3bb66d6fc0
[ "MIT" ]
null
null
null
src/lib/resultGraph/__init__.py
sankhaMukherjee/RLalgos
80d19a39af29947db2fc73b0443b9c3bb66d6fc0
[ "MIT" ]
25
2019-03-30T00:31:07.000Z
2022-03-11T23:38:34.000Z
src/lib/resultGraph/__init__.py
sankhaMukherjee/RLalgos
80d19a39af29947db2fc73b0443b9c3bb66d6fc0
[ "MIT" ]
null
null
null
'''Utilities for generating graphs This provides a set of utilities that will allow us to geenrate a girected graph. This assumes that configuration files for all the modules are present in the ``config/modules/`` folder. The files should be JSON files with the folliwing specifications: .. code-block:: JSON { ...
35.097561
88
0.627751
517
4,317
5.230174
0.408124
0.035503
0.04216
0.049926
0.077663
0.031805
0.031805
0.031805
0.031805
0
0
0.002799
0.255038
4,317
123
89
35.097561
0.837998
0.997684
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
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
1
0
0
0
0
0
0
2
81d29c5123554996118cd273519f3e61ec0eed4f
14,421
py
Python
ShanHang/Spider_ShanH_demo.py
penetest/AirPCrawler
89a2a2f3f66d6693ba492fa79a47953057aaf888
[ "MIT" ]
3
2017-07-05T06:15:59.000Z
2020-04-07T13:07:05.000Z
ShanHang/Spider_ShanH_demo.py
penetest/AirPCrawler
89a2a2f3f66d6693ba492fa79a47953057aaf888
[ "MIT" ]
null
null
null
ShanHang/Spider_ShanH_demo.py
penetest/AirPCrawler
89a2a2f3f66d6693ba492fa79a47953057aaf888
[ "MIT" ]
3
2017-07-18T02:51:54.000Z
2020-05-03T16:53:21.000Z
#! coding:utf-8 import requests import sys from bs4 import BeautifulSoup import csv import json import time,datetime import re #from adsl import Adsl import codecs reload(sys) sys.setdefaultencoding('utf8') h1 = {'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Accept-Enc...
54.011236
1,409
0.580958
2,078
14,421
3.970164
0.516843
0.010182
0.014182
0.017333
0.302545
0.298545
0.272242
0.236606
0.220121
0.19297
0
0.063602
0.221552
14,421
267
1,410
54.011236
0.671299
0.17003
0
0.202899
0
0.038647
0.414681
0.283305
0
0
0
0
0
0
null
null
0.004831
0.038647
null
null
0.062802
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
81d451eb5a898e099ed77fec79cbac09c06871cd
1,489
py
Python
quantmod/datetools.py
EfimovIN/dash-technical-charting
79d48f2507e107761362c9fd7b4e19efcad01c8d
[ "MIT" ]
129
2017-07-08T06:49:46.000Z
2022-03-26T15:12:47.000Z
quantmod/datetools.py
EfimovIN/dash-technical-charting
79d48f2507e107761362c9fd7b4e19efcad01c8d
[ "MIT" ]
10
2018-07-11T17:09:55.000Z
2021-02-07T06:47:58.000Z
quantmod/datetools.py
EfimovIN/dash-technical-charting
79d48f2507e107761362c9fd7b4e19efcad01c8d
[ "MIT" ]
50
2017-08-13T19:35:05.000Z
2022-01-15T20:08:13.000Z
"""Date and time functions Refactored from Cufflinks' 'date_tools.py' module. Credits to @jorgesantos. """ import datetime as dt def get_date_from_today(delta, strfmt='%Y%m%d'): """ Returns a string that represents a date n numbers of days from today. Parameters ---------- delta : int ...
21.57971
77
0.594359
189
1,489
4.571429
0.31746
0.064815
0.027778
0.03125
0.236111
0.162037
0.12963
0
0
0
0
0.015052
0.286098
1,489
68
78
21.897059
0.797742
0.602418
0
0
0
0
0.042453
0
0
0
0
0
0
1
0.444444
false
0
0.111111
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
1
0
0
0
0
1
0
0
2
81e12cb98ff8c9f759d5153d2c386137de7bd180
1,680
py
Python
dc_interactions/response.py
merlinfuchs/discord-interactions
922f40e6294e6f86ee2bd38b5cc7594ba9e16a57
[ "MIT" ]
1
2021-01-08T18:22:59.000Z
2021-01-08T18:22:59.000Z
dc_interactions/response.py
merlinfuchs/discord-interactions
922f40e6294e6f86ee2bd38b5cc7594ba9e16a57
[ "MIT" ]
null
null
null
dc_interactions/response.py
merlinfuchs/discord-interactions
922f40e6294e6f86ee2bd38b5cc7594ba9e16a57
[ "MIT" ]
1
2021-03-22T01:41:57.000Z
2021-03-22T01:41:57.000Z
from enum import IntEnum __all__ = ( "InteractionResponseType", "InteractionResponse" ) class InteractionResponseType(IntEnum): PONG = 1 ACKNOWLEDGE = 2 CHANNEL_MESSAGE = 3 CHANNEL_MESSAGE_WITH_SOURCE = 4 ACKNOWLEDGE_WITH_SOURCE = 5 class InteractionResponse: def __init__(self, typ...
26.666667
111
0.674405
168
1,680
6.559524
0.25
0.08167
0.203267
0.158802
0.451906
0.348457
0.348457
0.239564
0.239564
0
0
0.005422
0.231548
1,680
62
112
27.096774
0.84818
0
0
0.234043
0
0
0.047619
0.01369
0
0
0
0
0
1
0.191489
false
0
0.021277
0.148936
0.553191
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
1
0
0
0
2
81e3fd7c3306bd0ab63a01aa3fb361fe3f7d3673
231
py
Python
molecule/default/tests/test_default.py
juanmancebo/ansible-openjdk
0f6887dbc803a86c78397344c0439255f4bd23f3
[ "Apache-2.0" ]
2
2019-07-04T09:58:28.000Z
2019-08-28T09:03:48.000Z
molecule/default/tests/test_default.py
juanmancebo/ansible-openjdk
0f6887dbc803a86c78397344c0439255f4bd23f3
[ "Apache-2.0" ]
5
2019-06-04T19:20:31.000Z
2021-11-05T12:27:53.000Z
molecule/default/tests/test_default.py
DevoInc/ansible-java
9c646e4890482213fecf75657bea1c91aeb83cd8
[ "Apache-2.0" ]
5
2020-11-13T13:15:13.000Z
2020-11-13T14:24:03.000Z
def test_java_version(host): ansible_vars = host.ansible.get_variables() java_version = ansible_vars.get('java__version') java_output = host.run('java -version') assert str(java_version) + '.' in java_output.stderr
38.5
56
0.731602
32
231
4.9375
0.46875
0.348101
0
0
0
0
0
0
0
0
0
0
0.147186
231
5
57
46.2
0.80203
0
0
0
0
0
0.116883
0
0
0
0
0
0.2
1
0.2
false
0
0
0
0.2
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c493740cf6e8f11501658c4257693ac4291ae259
759
py
Python
analyzer_project/morphological_analysis/filters.py
Dakhnovskiy/linguistic_analyzer_projects
36551d788f76be47b8892bce4073900e2cccec2f
[ "Apache-2.0" ]
null
null
null
analyzer_project/morphological_analysis/filters.py
Dakhnovskiy/linguistic_analyzer_projects
36551d788f76be47b8892bce4073900e2cccec2f
[ "Apache-2.0" ]
null
null
null
analyzer_project/morphological_analysis/filters.py
Dakhnovskiy/linguistic_analyzer_projects
36551d788f76be47b8892bce4073900e2cccec2f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'Dmitriy.Dakhnovskiy' from .noons import is_noon from .verbs import is_verb def filter_by_parts_of_speech(words, parts_of_speech): """ отфильтровать список слов по заданным частям речи :param words: список слов :param parts_of_speech: список частей речи """ ...
28.111111
94
0.656126
104
759
4.423077
0.451923
0.208696
0.282609
0.156522
0.095652
0
0
0
0
0
0
0.003484
0.243742
759
26
95
29.192308
0.797909
0.187088
0
0
0
0
0.109612
0
0
0
0
0
0.066667
1
0.066667
false
0
0.133333
0
0.2
0
0
0
0
null
1
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
2
c4962055d715d4f6c732ba0c5095009de58a2bb0
930
py
Python
users/management/commands/send_overdue_reminders.py
maverick-labs-pune/wikirumours
51651aae651fd88468b54d08abb8ec28a93e65fa
[ "MIT" ]
null
null
null
users/management/commands/send_overdue_reminders.py
maverick-labs-pune/wikirumours
51651aae651fd88468b54d08abb8ec28a93e65fa
[ "MIT" ]
null
null
null
users/management/commands/send_overdue_reminders.py
maverick-labs-pune/wikirumours
51651aae651fd88468b54d08abb8ec28a93e65fa
[ "MIT" ]
null
null
null
import csv import datetime import os from django.contrib.gis.geos import Point from django.core.management import BaseCommand, CommandError from django.db import transaction from geopy import Nominatim from countries.models import Country from report.models import Report, Sighting, ReportedViaChoice from users.emails...
29.0625
99
0.745161
120
930
5.625
0.525
0.071111
0.065185
0
0
0
0
0
0
0
0
0
0.183871
930
31
100
30
0.889328
0
0
0
0
0
0.065662
0
0
0
0
0
0
1
0.090909
false
0
0.5
0
0.681818
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
c499691b9930b9e407fdaa7598eb162caea6bdca
1,112
py
Python
intro-python/part1/hands_on_exercise.py
andresmeliann/dne-dna-code
e878ab79ef8e5ac13efd27ba08718b304c74c871
[ "MIT" ]
null
null
null
intro-python/part1/hands_on_exercise.py
andresmeliann/dne-dna-code
e878ab79ef8e5ac13efd27ba08718b304c74c871
[ "MIT" ]
null
null
null
intro-python/part1/hands_on_exercise.py
andresmeliann/dne-dna-code
e878ab79ef8e5ac13efd27ba08718b304c74c871
[ "MIT" ]
null
null
null
"""Intro to Python - Part 1 - Hands-On Exercise.""" import math import random # TODO: Write a print statement that displays both the type and value of `pi` pi = math.pi print("pi es un {} con un valor de {}".format(type(pi), pi)) # TODO: Write a conditional to print out if `i` is less than or greater than 50 i = ...
24.173913
79
0.680755
182
1,112
4.142857
0.467033
0.047745
0.05305
0.055703
0.029178
0
0
0
0
0
0
0.06159
0.196942
1,112
45
80
24.711111
0.782755
0.398381
0
0.08
0
0
0.255319
0
0
0
0
0.022222
0
1
0.04
false
0
0.08
0
0.16
0.44
0
0
0
null
0
0
0
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
1
0
2
c4adc93fa42f229f33a39762bf83214deb3c35d7
754
py
Python
tests/resources/mocks/secret_store_mock.py
ilyabukalov/squid-py
3b9c323089351c20bf4a4e8be1e47031bd01d4ea
[ "Apache-2.0" ]
null
null
null
tests/resources/mocks/secret_store_mock.py
ilyabukalov/squid-py
3b9c323089351c20bf4a4e8be1e47031bd01d4ea
[ "Apache-2.0" ]
null
null
null
tests/resources/mocks/secret_store_mock.py
ilyabukalov/squid-py
3b9c323089351c20bf4a4e8be1e47031bd01d4ea
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 class SecretStoreMock: args = None id_to_document = dict() def __init__(self, secret_store_url, keeper_url, account): self.args = (secret_store_url, keeper_url, account) def set_secret_store_url(self, url): ...
32.782609
68
0.701592
93
754
5.387097
0.397849
0.0998
0.071856
0.07984
0.243513
0.11976
0
0
0
0
0
0.011667
0.204244
754
22
69
34.272727
0.823333
0.102122
0
0
0
0
0.066865
0.066865
0
0
0
0
0.066667
1
0.266667
false
0
0
0.066667
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
c4b47f73b4d1003949778a0512b1339df9d8c0ac
943
py
Python
17_process_thread/47_ThreadLocal.py
hemuke/python
bc99f2b5aee997083ae31f59a2b33db48c8255f3
[ "Apache-2.0" ]
null
null
null
17_process_thread/47_ThreadLocal.py
hemuke/python
bc99f2b5aee997083ae31f59a2b33db48c8255f3
[ "Apache-2.0" ]
null
null
null
17_process_thread/47_ThreadLocal.py
hemuke/python
bc99f2b5aee997083ae31f59a2b33db48c8255f3
[ "Apache-2.0" ]
null
null
null
from threading import Thread, local, current_thread thread_local = local() def do_sth(arg1, arg2, arg3): thread_local.local_var1 = arg1 thread_local.local_var2 = arg2 thread_local.local_var3 = arg3 fun1() fun2() fun3() def fun1(): print( '%s: %s -- %s -- %s' % (current_...
19.645833
51
0.572641
122
943
4.163934
0.262295
0.30315
0.409449
0.15748
0.602362
0.519685
0.519685
0.519685
0.519685
0.519685
0
0.040936
0.274655
943
47
52
20.06383
0.701754
0
0
0.529412
0
0
0.063627
0
0
0
0
0
0
1
0.117647
false
0
0.029412
0
0.147059
0.088235
0
0
0
null
1
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
2
c4bf7d915c52ca3ad3fa77d5bd29229dc4cd7d01
313
py
Python
Uncategorized/hkccc08j1.py
crackersamdjam/DMOJ-Solutions
97992566595e2c7bf41b5da9217d8ef61bdd1d71
[ "MIT" ]
null
null
null
Uncategorized/hkccc08j1.py
crackersamdjam/DMOJ-Solutions
97992566595e2c7bf41b5da9217d8ef61bdd1d71
[ "MIT" ]
null
null
null
Uncategorized/hkccc08j1.py
crackersamdjam/DMOJ-Solutions
97992566595e2c7bf41b5da9217d8ef61bdd1d71
[ "MIT" ]
null
null
null
m1 = 0; m2 = 0; n = int(input()) while n: n -= 1 a, b = map(int, input().split()) m1 = max(m1, a*b) m = int(input()) while m: m -= 1 a, b = map(int, input().split()) m2 = max(m2, a*b) if m1 == m2: print("Tie") elif m1 > m2: print("Casper") else: print("Natalie")
19.5625
37
0.456869
53
313
2.698113
0.396226
0.223776
0.181818
0.083916
0.265734
0.265734
0.265734
0
0
0
0
0.066351
0.325879
313
16
38
19.5625
0.611374
0
0
0.125
0
0
0.053512
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1875
0
0
0
null
1
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
2
c4ca79a8a3c2b28d017d6baf0968a042e75828ac
11,159
py
Python
lorikeet/api_serializers.py
excitedleigh/lorikeet
fe99cf4557736891f2a0e951f0f748074d5e02d4
[ "MIT" ]
6
2020-02-15T19:22:30.000Z
2020-12-27T10:58:58.000Z
lorikeet/api_serializers.py
excitedleigh/lorikeet
fe99cf4557736891f2a0e951f0f748074d5e02d4
[ "MIT" ]
79
2019-12-29T22:13:51.000Z
2022-03-30T23:12:37.000Z
lorikeet/api_serializers.py
excitedleigh/lorikeet
fe99cf4557736891f2a0e951f0f748074d5e02d4
[ "MIT" ]
2
2019-12-29T22:06:19.000Z
2020-08-27T20:30:47.000Z
from itertools import chain from time import time from django.urls import reverse from rest_framework import fields, serializers from . import models class LineItemSerializerRegistry: """Registers serializers with their associated models. This is used instead of discovery or a metaclass-based registry as ...
33.917933
84
0.674254
1,158
11,159
6.272884
0.193437
0.021476
0.027258
0.027258
0.317731
0.260463
0.2394
0.196861
0.161068
0.161068
0
0.000703
0.234698
11,159
328
85
34.021341
0.849883
0.101264
0
0.242291
0
0
0.077412
0.009576
0
0
0
0.003049
0
1
0.167401
false
0
0.022026
0.110132
0.546256
0.004405
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
c4cf93fb11d0f295ae03218a1a47621a121c7523
242
py
Python
p7.py
SachinGarg47/alivenet-python-training
8b4a7f6ec21cfd1593be9362a41caaeeb6855334
[ "MIT" ]
null
null
null
p7.py
SachinGarg47/alivenet-python-training
8b4a7f6ec21cfd1593be9362a41caaeeb6855334
[ "MIT" ]
1
2018-07-17T17:09:38.000Z
2018-07-17T17:09:38.000Z
p7.py
SachinGarg47/alivenet-python-training
8b4a7f6ec21cfd1593be9362a41caaeeb6855334
[ "MIT" ]
9
2018-07-17T13:38:18.000Z
2018-08-01T10:36:22.000Z
# for i in range(1,10,-1): # print i names = ["Deepak","Narendra","Irshad","Suraj","Jitendra","Sachin","Rakesh","Mohit","Neyaz","Varun","Vinay"] for name in names: if name == "Suraj": break print "Welcome {}".format(name)
30.25
107
0.590909
33
242
4.333333
0.727273
0
0
0
0
0
0
0
0
0
0
0.020101
0.177686
242
7
108
34.571429
0.698492
0.14876
0
0
0
0
0.394089
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
2
c4dcae1943ccb2c7804354e9c93ac65e9e26f91f
494
py
Python
djspikeval_franke/config.py
pmeier82/django-spikeval-franke
670602b2cbaeba0ad0bf0b26ce6459a6059c3907
[ "BSD-3-Clause" ]
null
null
null
djspikeval_franke/config.py
pmeier82/django-spikeval-franke
670602b2cbaeba0ad0bf0b26ce6459a6059c3907
[ "BSD-3-Clause" ]
null
null
null
djspikeval_franke/config.py
pmeier82/django-spikeval-franke
670602b2cbaeba0ad0bf0b26ce6459a6059c3907
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ __author__ = "pmeier82" class DjSpikevalFrankeAppConfig(AppConfig): label = "djspikeval_franke" name = "djspikeval_franke" verbose_name = _("Django Sp...
22.454545
69
0.712551
59
494
5.576271
0.762712
0.06079
0
0
0
0
0
0
0
0
0
0.007653
0.206478
494
21
70
23.52381
0.831633
0.163968
0
0.166667
0
0
0.212195
0
0
0
0
0
0
1
0.083333
false
0.166667
0.25
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
c4dd0b89159ab16837f2efb238e32164411b6dc6
2,538
py
Python
layers.py
adaptive-kernel/adaptive-kernel
f1b69d5c160ffb0ed5fd35b29d8bc5777389262c
[ "MIT" ]
25
2018-06-23T22:02:29.000Z
2021-07-31T17:51:08.000Z
layers.py
adaptive-kernel/adaptive-kernel
f1b69d5c160ffb0ed5fd35b29d8bc5777389262c
[ "MIT" ]
null
null
null
layers.py
adaptive-kernel/adaptive-kernel
f1b69d5c160ffb0ed5fd35b29d8bc5777389262c
[ "MIT" ]
10
2018-06-30T18:44:20.000Z
2022-03-19T15:13:14.000Z
from keras import backend as K from keras.engine.topology import Layer import numpy as np from kernels import D2 import utils class KernelEmbedding(Layer): """ Generate kernel features. Arguments: kernel_f: kernel function k(x, y). centers: matrix of shape (n_center, n_feature). """ ...
31.333333
110
0.615445
346
2,538
4.361272
0.294798
0.053015
0.03446
0.027833
0.237243
0.217362
0.217362
0.217362
0.217362
0.164347
0
0.013348
0.262017
2,538
80
111
31.725
0.792312
0.220252
0
0.186047
1
0
0.033702
0
0
0
0
0
0
1
0.209302
false
0
0.116279
0.046512
0.488372
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
c4e6bf8cb8979790ca3460e436a8d783a632b4fe
285
py
Python
auth/password_hash.py
ivmfnal/dm_common
0f390d3da1c52191b017a5493bee47b0335eb6bd
[ "BSD-3-Clause" ]
null
null
null
auth/password_hash.py
ivmfnal/dm_common
0f390d3da1c52191b017a5493bee47b0335eb6bd
[ "BSD-3-Clause" ]
null
null
null
auth/password_hash.py
ivmfnal/dm_common
0f390d3da1c52191b017a5493bee47b0335eb6bd
[ "BSD-3-Clause" ]
null
null
null
import hashlib from ..util import to_bytes PasswordHashAlgorithm = "sha1" def password_hash(user, password): hashed = hashlib.new(PasswordHashAlgorithm) hashed.update(to_bytes(user)) hashed.update(b":") hashed.update(to_bytes(password)) return hashed.hexdigest()
23.75
47
0.740351
34
285
6.088235
0.529412
0.101449
0.135266
0.183575
0
0
0
0
0
0
0
0.004115
0.147368
285
11
48
25.909091
0.847737
0
0
0
0
0
0.017544
0
0
0
0
0
0
1
0.111111
false
0.444444
0.222222
0
0.444444
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
c4f410a1455612cf6d14b79e4b8a04d91d97b859
807
py
Python
spectator-server/client-bot.py
Vilsepi/sc2-spectator
5ad082de74272b054a7da343537d392a98c7a5ef
[ "MIT" ]
null
null
null
spectator-server/client-bot.py
Vilsepi/sc2-spectator
5ad082de74272b054a7da343537d392a98c7a5ef
[ "MIT" ]
null
null
null
spectator-server/client-bot.py
Vilsepi/sc2-spectator
5ad082de74272b054a7da343537d392a98c7a5ef
[ "MIT" ]
2
2019-07-27T21:27:54.000Z
2019-12-02T13:31:10.000Z
#!/usr/bin/env python import asyncio import websockets import datetime import random class SocketClient: def __init__(self): self.socket = websockets.connect('ws://localhost:9000') # asyncio.get_event_loop().run_until_complete() async def send(self, message): await self.socket.send(me...
26.9
72
0.67658
98
807
5.418367
0.510204
0.056497
0.084746
0.107345
0.293785
0.131827
0.131827
0
0
0
0
0.013804
0.192069
807
29
73
27.827586
0.800614
0.5886
0
0
0
0
0.068536
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
c4f4a40b7f0f8d2c610921fc18b9d7b0ef21a699
134
py
Python
learnPython/repeater.py
ClariNerd617/personalProjects
926b02c9998f9d17233f91d38a7250240c1b80dc
[ "CC0-1.0" ]
null
null
null
learnPython/repeater.py
ClariNerd617/personalProjects
926b02c9998f9d17233f91d38a7250240c1b80dc
[ "CC0-1.0" ]
null
null
null
learnPython/repeater.py
ClariNerd617/personalProjects
926b02c9998f9d17233f91d38a7250240c1b80dc
[ "CC0-1.0" ]
null
null
null
times = input("How many times do I have to tell you? ") times = int(times) for time in range(times): print("CLEAN UP YOUR ROOM")
22.333333
55
0.671642
24
134
3.75
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.208955
134
5
56
26.8
0.849057
0
0
0
0
0
0.41791
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c4ff5aabfed7c14636b17eb30d74b416d0cd1122
571
py
Python
src/lsd_lemon/func_preproc/normalize_timeseries.py
juhuntenburg/pipelines
9904065cccb8e316cece5451f595a24774f07bd5
[ "MIT" ]
13
2019-03-10T23:13:06.000Z
2022-02-08T08:49:28.000Z
src/lsd_lemon/func_preproc/normalize_timeseries.py
juhuntenburg/pipelines
9904065cccb8e316cece5451f595a24774f07bd5
[ "MIT" ]
1
2015-03-31T20:42:08.000Z
2015-04-03T23:58:58.000Z
src/lsd_lemon/func_preproc/normalize_timeseries.py
NeuroanatomyAndConnectivity/pipelines
9904065cccb8e316cece5451f595a24774f07bd5
[ "MIT" ]
18
2015-01-08T13:27:40.000Z
2021-06-22T03:35:45.000Z
def time_normalizer(in_file, tr): ''' Mean centering and variance normalizing a time series ''' import os import nitime.fmri.io as io import nibabel as nib from nipype.utils.filemanip import fname_presuffix T= io.time_series_from_file(in_file,normalize='zscore', TR=tr) normalize...
24.826087
77
0.686515
81
571
4.592593
0.555556
0.064516
0
0
0
0
0
0
0
0
0
0.002252
0.222417
571
23
78
24.826087
0.835586
0.09282
0
0
0
0
0.021869
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
f2008ad9044eb4cc94cc999f9f7cbb6cc75d913b
5,133
py
Python
release/stubs.min/Autodesk/Revit/DB/__init___parts/MultiReferenceAnnotationOptions.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Autodesk/Revit/DB/__init___parts/MultiReferenceAnnotationOptions.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Autodesk/Revit/DB/__init___parts/MultiReferenceAnnotationOptions.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class MultiReferenceAnnotationOptions(object, IDisposable): """ Options which control the creation of MultiReferenceAnnotations. MultiReferenceAnnotationOptions(multiReferenceAnnotationType: MultiReferenceAnnotationType) """ def Dispose(self): """ Dispose(self: MultiReferenceAnnotation...
26.188776
221
0.688097
440
5,133
7.856818
0.25
0.069424
0.041655
0.055539
0.230836
0.207984
0.207984
0.185421
0.160544
0.160544
0
0
0.224235
5,133
195
222
26.323077
0.868157
0.285408
0
0.395833
0
0
0
0
0
0
0
0
0
1
0.229167
false
0.229167
0
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
f20b5b9c04f106d1189cc649ac310036e6cf2909
250
py
Python
cca_zoo/utils/__init__.py
LegrandNico/cca_zoo
03497ef4d8434f847435b572bff92b2095fbc4fc
[ "MIT" ]
null
null
null
cca_zoo/utils/__init__.py
LegrandNico/cca_zoo
03497ef4d8434f847435b572bff92b2095fbc4fc
[ "MIT" ]
null
null
null
cca_zoo/utils/__init__.py
LegrandNico/cca_zoo
03497ef4d8434f847435b572bff92b2095fbc4fc
[ "MIT" ]
1
2021-06-28T18:31:45.000Z
2021-06-28T18:31:45.000Z
from .check_values import ( _check_views, _check_batch_size, _check_Parikh2014, _process_parameter, _check_parameter_number, _check_converged_weights, ) from .plotting import plot_latent_train_test, plot_latent_label, cv_plot
25
72
0.788
31
250
5.645161
0.645161
0.114286
0
0
0
0
0
0
0
0
0
0.019139
0.164
250
9
73
27.777778
0.818182
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
f220582b26a0c6510f24f47c86d11d38d66e5179
1,352
py
Python
data-structures/stack.py
acfromspace/infinitygauntlet
8d0d3c7229d6adabdfea6147a47ca5509c2946fd
[ "MIT" ]
3
2018-12-28T21:11:46.000Z
2021-04-03T05:19:56.000Z
data-structures/stack.py
acfromspace/infinitygauntlet
8d0d3c7229d6adabdfea6147a47ca5509c2946fd
[ "MIT" ]
4
2019-07-11T21:52:55.000Z
2020-07-21T20:18:51.000Z
data-structures/stack.py
acfromspace/infinitygauntlet
8d0d3c7229d6adabdfea6147a47ca5509c2946fd
[ "MIT" ]
null
null
null
""" @author: acfromspace """ class Stack: def __init__(self): self.items = [] def is_empty(self): return print("is_empty():", self.items == []) def push(self, item): print("push():", item) self.items.append(item) def pop(self): return print("pop():", self.ite...
16.9
62
0.596893
185
1,352
4.308108
0.156757
0.179423
0.225847
0.100376
0.271016
0.271016
0.160602
0
0
0
0
0.020591
0.173817
1,352
79
63
17.113924
0.692927
0.014793
0
0.435897
0
0
0.057906
0
0
0
0
0
0
1
0.179487
false
0
0
0.128205
0.333333
0.153846
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
1
0
0
0
2
f2220432f9943ed168f8d5f91de6a2bb174eee4a
471
py
Python
app/service/installation_notifier.py
globocom/enforcement
004ff545d6d61b95b555d9981525510496862b3e
[ "BSD-3-Clause" ]
7
2020-11-08T18:02:26.000Z
2021-10-15T21:40:35.000Z
app/service/installation_notifier.py
globocom/enforcement
004ff545d6d61b95b555d9981525510496862b3e
[ "BSD-3-Clause" ]
19
2020-11-19T20:57:20.000Z
2021-09-03T14:53:34.000Z
app/service/installation_notifier.py
globocom/enforcement-service
004ff545d6d61b95b555d9981525510496862b3e
[ "BSD-3-Clause" ]
3
2020-10-03T02:40:34.000Z
2020-10-19T10:17:06.000Z
from app.domain.triggers import TriggerService from app.domain.entities import TriggerConfig import requests from requests.exceptions import Timeout class InstallationNotifier(TriggerService): def send(self, trigger: TriggerConfig, payload: dict) -> bool: try: response = requests.post(trigger....
31.4
93
0.721868
51
471
6.647059
0.627451
0.041298
0.076696
0
0
0
0
0
0
0
0
0.016129
0.210191
471
14
94
33.642857
0.895161
0
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
48120b57d9d7384d969b832eedb15b6223c0d174
2,722
py
Python
selenium_crawler.py
Hackillinois2k18/Main-Repo
e998cc3283e0469b98a842220a30a72c5b105dad
[ "MIT" ]
5
2020-03-10T03:23:18.000Z
2021-11-12T17:06:51.000Z
selenium_crawler.py
Hackillinois2k18/FyveBot
e998cc3283e0469b98a842220a30a72c5b105dad
[ "MIT" ]
3
2018-02-24T05:25:28.000Z
2018-02-24T05:43:49.000Z
selenium_crawler.py
Hackillinois2k18/Main-Repo
e998cc3283e0469b98a842220a30a72c5b105dad
[ "MIT" ]
3
2019-01-20T14:50:11.000Z
2021-11-12T17:06:55.000Z
import unittest import sys from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.chrome.options import Options class SeleniumScrape: def run(self,...
69.794872
332
0.711242
420
2,722
4.547619
0.235714
0.052356
0.054974
0.046073
0.522513
0.474346
0.474346
0.474346
0.474346
0.474346
0
0.035845
0.09809
2,722
38
333
71.631579
0.742159
0.063189
0
0
0
0.25
0.485849
0.450865
0
0
0
0
0
1
0.041667
false
0
0.291667
0
0.375
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4821cfff178de95bcfdc8960544cc80357681ed7
622
py
Python
biobb_adapters/pycompss/biobb_model/model/mutate_pc.py
jfennick/biobb_adapters
a37c1c696476c93225e7d3c661b0d4393af9dfe1
[ "Apache-2.0" ]
null
null
null
biobb_adapters/pycompss/biobb_model/model/mutate_pc.py
jfennick/biobb_adapters
a37c1c696476c93225e7d3c661b0d4393af9dfe1
[ "Apache-2.0" ]
4
2019-03-04T15:22:06.000Z
2021-09-24T14:43:48.000Z
biobb_adapters/pycompss/biobb_model/model/mutate_pc.py
jfennick/biobb_adapters
a37c1c696476c93225e7d3c661b0d4393af9dfe1
[ "Apache-2.0" ]
2
2020-09-08T05:26:23.000Z
2022-03-28T07:09:20.000Z
import traceback from pycompss.api.task import task from pycompss.api.constraint import constraint from pycompss.api.parameter import FILE_IN, FILE_OUT from biobb_common.tools import file_utils as fu from biobb_model.model import mutate @task(input_pdb_path=FILE_IN, output_pdb_path=FILE_OUT, on_failure="IGNORE") def m...
41.466667
127
0.800643
94
622
4.978723
0.404255
0.134615
0.138889
0.102564
0.17735
0.17735
0
0
0
0
0
0
0.120579
622
14
128
44.428571
0.855576
0
0
0
0
0
0.009646
0
0
0
0
0
0
1
0.076923
false
0
0.461538
0
0.538462
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
482633ad1f66479aa35310e953d9eb2953d38151
692
py
Python
docs/resource/static.py
keotl/jivago
892dfb0cae773e36245083c3e56f0f8523145523
[ "MIT" ]
12
2018-03-19T20:57:44.000Z
2020-01-27T14:11:24.000Z
docs/resource/static.py
keotl/jivago
892dfb0cae773e36245083c3e56f0f8523145523
[ "MIT" ]
73
2018-04-20T22:26:00.000Z
2021-12-01T14:17:37.000Z
docs/resource/static.py
keotl/jivago
892dfb0cae773e36245083c3e56f0f8523145523
[ "MIT" ]
1
2019-02-28T13:33:45.000Z
2019-02-28T13:33:45.000Z
from jivago.config.production_jivago_context import ProductionJivagoContext from jivago.config.router.router_builder import RouterBuilder from jivago.lang.annotations import Override from jivago.wsgi.routing.routing_rule import RoutingRule from jivago.wsgi.routing.serving.static_file_routing_table import StaticFileRout...
46.133333
113
0.781792
72
692
7.319444
0.5
0.094877
0.060721
0.079696
0.174573
0.174573
0
0
0
0
0
0
0.115607
692
14
114
49.428571
0.861111
0
0
0
0
0
0.039017
0
0
0
0
0
0
1
0.090909
false
0
0.454545
0.090909
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
4834cb7943734929da48c9a753fad7df87609f46
195
py
Python
webapp/server.py
imthaghost/digift
6d7582204000190d7f11cbf22a4ecabfbd3c45c4
[ "MIT" ]
7
2020-02-19T23:17:59.000Z
2021-04-09T08:51:28.000Z
webapp/server.py
imthaghost/digift
6d7582204000190d7f11cbf22a4ecabfbd3c45c4
[ "MIT" ]
2
2021-03-31T20:04:31.000Z
2021-12-13T20:40:59.000Z
FinalProject/webapp/server.py
SamuelFolledo/SPD1.3
aa28fb738191f315b6627250049db029f8b62585
[ "MIT" ]
3
2020-01-28T17:00:59.000Z
2020-02-02T07:45:48.000Z
"""server""" __author__ = "Gary Frederick" __version__ = "1.0" from application import app import os import sys if __name__ == '__main__': app.run(host="127.0.0.1", port=5001, debug=True)
16.25
52
0.687179
29
195
4.068966
0.793103
0
0
0
0
0
0
0
0
0
0
0.072727
0.153846
195
11
53
17.727273
0.642424
0.030769
0
0
0
0
0.185792
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
4839729836a5a3183f0153c9eafa0e87278aa8fa
323
py
Python
tests/furrycorn/model/common/test_resource_identifier.py
odeumgg/furrycorn
1726bb4c7141317b3075be10305bf65293630c08
[ "MIT" ]
7
2017-12-22T20:56:47.000Z
2018-01-20T06:11:38.000Z
tests/furrycorn/model/common/test_resource_identifier.py
odeumgg/furrycorn
1726bb4c7141317b3075be10305bf65293630c08
[ "MIT" ]
null
null
null
tests/furrycorn/model/common/test_resource_identifier.py
odeumgg/furrycorn
1726bb4c7141317b3075be10305bf65293630c08
[ "MIT" ]
3
2017-12-25T21:25:34.000Z
2018-01-17T00:59:08.000Z
import pytest from furrycorn import config from furrycorn.model.common import resource_identifier def test_mk(mocker): obj = { 'type': 'foo', 'id': '1234' } # mock cfg = config.mk('https://api', 'ABCDEF') result = resource_identifier.mk(obj, cfg) assert type(result) is resource_identifier.ResourceI...
21.533333
57
0.702786
42
323
5.309524
0.642857
0.242152
0
0
0
0
0
0
0
0
0
0.014981
0.173375
323
14
58
23.071429
0.820225
0.012384
0
0
0
0
0.094937
0
0
0
0
0
0.125
1
0.125
false
0
0.375
0
0.5
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
1
0
0
0
0
2
484e16747198e0ee093be202277dd2429e5ec42d
9,217
py
Python
shop/shop/shopmodels/defaults/commodity.py
vahidrnaderi/django-shop
d239634d919b959110eb9b6c04dccce0a3536dbe
[ "BSD-3-Clause" ]
null
null
null
shop/shop/shopmodels/defaults/commodity.py
vahidrnaderi/django-shop
d239634d919b959110eb9b6c04dccce0a3536dbe
[ "BSD-3-Clause" ]
null
null
null
shop/shop/shopmodels/defaults/commodity.py
vahidrnaderi/django-shop
d239634d919b959110eb9b6c04dccce0a3536dbe
[ "BSD-3-Clause" ]
null
null
null
# """ # In django-SHOP, a Commodity product-model is considered a very basic product without any attributes, # which can be used on a generic CMS page to describe anything. # """ # # # from django.conf import settings # from django.core.validators import MinValueValidator # from django.db import models # # from django....
33.516364
117
0.588152
845
9,217
6.231953
0.227219
0.029244
0.013673
0.01937
0.678694
0.661033
0.651158
0.601975
0.587353
0.580137
0
0.005029
0.288055
9,217
274
118
33.638686
0.79747
0.917652
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
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
1
0
0
0
0
0
0
2
485629b1003a89508fee6fbd770fca568ef515aa
4,781
py
Python
socialdistribution/api/admin.py
CMPUT404-Project-Group/CMPUT404-Group-Project
e541cc609f260d7221fe0be8975c5b2444d74af0
[ "W3C-20150513" ]
null
null
null
socialdistribution/api/admin.py
CMPUT404-Project-Group/CMPUT404-Group-Project
e541cc609f260d7221fe0be8975c5b2444d74af0
[ "W3C-20150513" ]
44
2021-10-14T15:44:46.000Z
2021-12-05T00:57:23.000Z
socialdistribution/api/admin.py
CMPUT404-Project-Group/Social-Distribution-CMPUT404-Group-Project
e541cc609f260d7221fe0be8975c5b2444d74af0
[ "W3C-20150513" ]
1
2021-12-07T01:14:14.000Z
2021-12-07T01:14:14.000Z
from django import forms from django.contrib import admin from django.contrib.auth.models import Group from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.core.exceptions import ValidationError from .models import Post, Node, Site...
28.628743
101
0.639824
510
4,781
5.886275
0.24902
0.029314
0.02998
0.037975
0.379081
0.280813
0.20986
0.121253
0.091272
0.091272
0
0
0.231123
4,781
166
102
28.801205
0.816649
0.105417
0
0.315789
0
0
0.147592
0
0
0
0
0
0
1
0.035088
false
0.140351
0.061404
0
0.535088
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
1
0
0
2
48648bab742876e63e7556a8e0eb39e83204fa3d
538
py
Python
utils.py
fiddlesleet/DjangoBlog
3ee550b21e6fc66424e39bb10c89aec64c50d76a
[ "MIT" ]
null
null
null
utils.py
fiddlesleet/DjangoBlog
3ee550b21e6fc66424e39bb10c89aec64c50d76a
[ "MIT" ]
null
null
null
utils.py
fiddlesleet/DjangoBlog
3ee550b21e6fc66424e39bb10c89aec64c50d76a
[ "MIT" ]
null
null
null
import datetime import math import re # for regex from django.utils.html import strip_tags def count_words(html_string): word_string = strip_tags(html_string) count = len(re.findall(r'\w+', word_string)) return count def get_read_time(html_string): count = count_words(html_string) read_time_mi...
26.9
97
0.741636
83
538
4.53012
0.481928
0.148936
0.087766
0.106383
0
0
0
0
0
0
0
0.020179
0.171004
538
19
98
28.315789
0.82287
0.284387
0
0
0
0
0.007895
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
48687084c2bdb4976da585ec98a031bb0a9b8787
1,313
py
Python
generate_files.py
dsc-iiitdmk/Resume-Parser
be85d253f0959ea3ef0ed4564d889e4e54c12272
[ "MIT" ]
21
2019-11-19T09:57:04.000Z
2022-03-02T14:20:00.000Z
generate_files.py
dsc-iiitdmk/Resume-Parser
be85d253f0959ea3ef0ed4564d889e4e54c12272
[ "MIT" ]
null
null
null
generate_files.py
dsc-iiitdmk/Resume-Parser
be85d253f0959ea3ef0ed4564d889e4e54c12272
[ "MIT" ]
5
2020-06-03T19:38:03.000Z
2022-03-04T01:10:29.000Z
from pdf_to_png import * import spacy import io def generate_summary(base_path,resume_file,model_path,text_file_name,summary_file_name): generate_images_and_text_from_pdf(base_path+"/"+resume_file,base_path) nlp = spacy.load(model_path) f = io.open(base_path+"/"+text_file_name,"r",encoding="utf-8") text = f.read()...
23.035088
88
0.651181
238
1,313
3.369748
0.218487
0.099751
0.067332
0.069825
0.740648
0.703242
0.583541
0.528678
0.438903
0.438903
0
0.003487
0.126428
1,313
56
89
23.446429
0.695728
0.437928
0
0.090909
1
0
0.036313
0
0
0
0
0
0
1
0.045455
false
0
0.136364
0
0.181818
0
0
0
0
null
0
0
0
0
1
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
2
4869fe0cc85f4614941a85a1cedbc07b790894f1
608
py
Python
haproxy/constants.py
dblia/python-haproxy
ddf07535bb0fd67754f8205193359818e8dbe080
[ "MIT" ]
1
2021-11-19T15:24:23.000Z
2021-11-19T15:24:23.000Z
haproxy/constants.py
dblia/python-haproxy
ddf07535bb0fd67754f8205193359818e8dbe080
[ "MIT" ]
null
null
null
haproxy/constants.py
dblia/python-haproxy
ddf07535bb0fd67754f8205193359818e8dbe080
[ "MIT" ]
null
null
null
"""Constants and helper definitions.""" # pylint: disable=bad-whitespace import os def _env_get(name, default=None): """Get the value of the given env variable name.""" return os.environ.get("{}{}".format("HA_", name), default) def _set_bool(val): """Helper to convert the given value to boolean.""" ...
28.952381
66
0.671053
91
608
4.241758
0.571429
0.062176
0.051813
0
0
0
0
0
0
0
0
0.005882
0.161184
608
20
67
30.4
0.75098
0.258224
0
0
0
0
0.154023
0.052874
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
486dcdc85cae37a83decbe4d38f33a8c0ccbb249
1,148
py
Python
Coding/Competitive_Coding/CodeForces/0 - 1300/Hexadecimal's_theorem.py
Phantom586/My_Codes
900c4e5e95ab833e4f78f1594e3b25178a74f1a7
[ "MIT" ]
null
null
null
Coding/Competitive_Coding/CodeForces/0 - 1300/Hexadecimal's_theorem.py
Phantom586/My_Codes
900c4e5e95ab833e4f78f1594e3b25178a74f1a7
[ "MIT" ]
null
null
null
Coding/Competitive_Coding/CodeForces/0 - 1300/Hexadecimal's_theorem.py
Phantom586/My_Codes
900c4e5e95ab833e4f78f1594e3b25178a74f1a7
[ "MIT" ]
null
null
null
# Recently, a chaotic virus Hexadecimal advanced a new theorem which will shake the Universe. She thinks that each # Fibonacci number can be represented as sum of three not necessary different Fibonacci numbers. # Let's remember how Fibonacci numbers can be calculated. F0 = 0, F1 = 1, and all the next numbers are # Fi...
33.764706
120
0.714286
206
1,148
3.990291
0.548544
0.077859
0.041363
0.06326
0.10219
0.10219
0
0
0
0
0
0.03337
0.216899
1,148
33
121
34.787879
0.878754
0.924216
0
0
0
0
0
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
486f54636f6673ea14f37a86af0d8cd838f30214
563
py
Python
lifelib/tests/projects_script/test_solvency2.py
fumitoh/lifelib
01b6fec4453b309808c1c7ca6867c7dce50668dc
[ "MIT" ]
77
2018-03-02T05:21:43.000Z
2022-03-26T20:29:59.000Z
lifelib/tests/projects_script/test_solvency2.py
dayeoni-1376/lifelib
e65ba42843e8ae5f00ea795a8bb29ccd6e99ba54
[ "MIT" ]
10
2018-02-17T03:07:20.000Z
2021-11-15T13:40:15.000Z
lifelib/tests/projects_script/test_solvency2.py
dayeoni-1376/lifelib
e65ba42843e8ae5f00ea795a8bb29ccd6e99ba54
[ "MIT" ]
24
2018-03-12T20:01:06.000Z
2022-03-07T06:06:18.000Z
import sys import os.path import pickle import pathlib import pytest from lifelib.projects.solvency2.scripts import solvency2 from lifelib.tests.data.generate_testdata_solvency2 import generate_data if '' not in sys.path: sys.path.insert(0, '') datadir = pathlib.Path(__file__).parents[1].joinpath('data') testda...
20.107143
72
0.735346
76
563
5.289474
0.5
0.054726
0
0
0
0
0
0
0
0
0
0.016878
0.158082
563
27
73
20.851852
0.831224
0
0
0
1
0
0.035651
0
0
0
0
0
0.058824
1
0.058824
false
0
0.411765
0
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
487bc07790f0d09411daf6ab0f4ec09f3e6f37ab
2,173
py
Python
tests/test_rest_permissions.py
oarepo/flask-taxonomies
50d704adfc2d5c80d90b040e147abeb00fff3766
[ "MIT" ]
null
null
null
tests/test_rest_permissions.py
oarepo/flask-taxonomies
50d704adfc2d5c80d90b040e147abeb00fff3766
[ "MIT" ]
39
2019-06-17T08:01:29.000Z
2021-06-25T15:21:59.000Z
tests/test_rest_permissions.py
oarepo/flask-taxonomies
50d704adfc2d5c80d90b040e147abeb00fff3766
[ "MIT" ]
4
2019-08-16T09:55:28.000Z
2020-07-07T06:18:54.000Z
import pytest from flask_principal import Permission, UserNeed from sqlalchemy_utils.types.json import json @pytest.mark.parametrize('app', [ { 'FLASK_TAXONOMIES_PERMISSION_FACTORIES': { 'taxonomy_list': [Permission(UserNeed('admin'))] } } ], indirect=['app']) def taxonomy_list_tes...
28.973333
73
0.636447
242
2,173
5.561983
0.231405
0.023774
0.029718
0.089153
0.763001
0.725111
0.725111
0.615899
0.615899
0.566865
0
0.023256
0.208468
2,173
74
74
29.364865
0.759302
0
0
0.474576
0
0
0.248504
0.127013
0
0
0
0
0.135593
1
0.067797
false
0
0.050847
0
0.152542
0.016949
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4880eb988195f86f3509f791f841ff08f6292754
2,837
py
Python
nncf/tensorflow/utils/state.py
MaximProshin/nncf
2290d2f4cebcf6749e419dc76850e7bd8b7d8da1
[ "Apache-2.0" ]
136
2020-06-01T14:03:31.000Z
2020-10-28T06:10:50.000Z
nncf/tensorflow/utils/state.py
MaximProshin/nncf
2290d2f4cebcf6749e419dc76850e7bd8b7d8da1
[ "Apache-2.0" ]
133
2020-05-26T13:48:04.000Z
2020-10-28T05:25:55.000Z
nncf/tensorflow/utils/state.py
MaximProshin/nncf
2290d2f4cebcf6749e419dc76850e7bd8b7d8da1
[ "Apache-2.0" ]
36
2020-05-28T08:18:39.000Z
2020-10-27T14:46:58.000Z
""" Copyright (c) 2022 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
32.238636
91
0.686641
322
2,837
5.956522
0.372671
0.150156
0.089155
0.042231
0.217935
0.171533
0.140772
0.140772
0.140772
0.140772
0
0.003723
0.24251
2,837
87
92
32.609195
0.888785
0.476207
0
0.16
0
0
0.067891
0
0
0
0
0
0
1
0.28
false
0
0.16
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
6f7d533a34d28ae15ceaa654c7003e2eccad2974
863
py
Python
medium/python3/c0086_162_find-peak-element/00_leetcode_0086.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python3/c0086_162_find-peak-element/00_leetcode_0086.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python3/c0086_162_find-peak-element/00_leetcode_0086.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
3
2018-02-09T02:46:48.000Z
2021-02-20T08:32:03.000Z
# DRUNKWATER TEMPLATE(add description and prototypes) # Question Title and Description on leetcode.com # Function Declaration and Function Prototypes on leetcode.com #162. Find Peak Element #A peak element is an element that is greater than its neighbors. #Given an input array where num[i] ≠ num[i+1], find a peak eleme...
39.227273
108
0.710313
140
863
4.392857
0.6
0.071545
0.058537
0.04878
0
0
0
0
0
0
0
0.016012
0.20394
863
22
109
39.227273
0.876274
0.952491
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
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
1
0
0
0
0
0
0
2
6f8c3630fc7fa9406fe98311c2e31dfbb47dd30b
10,011
py
Python
COMET/ui_plugins/Settings_window.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
COMET/ui_plugins/Settings_window.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
COMET/ui_plugins/Settings_window.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
import logging from PyQt5.QtWidgets import * from .settings_widget import settings_widget class Settings_window(settings_widget): def __init__(self, GUI_classes, layout): super(Settings_window, self).__init__() self.variables = GUI_classes self.layout = layout self.measurements = ...
32.609121
191
0.592249
1,009
10,011
5.56888
0.13776
0.232782
0.096103
0.070475
0.711337
0.706353
0.686065
0.671472
0.575191
0.575191
0
0.001618
0.321047
10,011
306
192
32.715686
0.82507
0.084707
0
0.662393
0
0.004274
0.092896
0
0
0
0
0
0
1
0.017094
false
0
0.012821
0
0.034188
0
0
0
0
null
1
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
2
6fa48ce0709cb8a5401b714149a00e47eb5a1999
1,079
py
Python
w3r-basic-1-28.py
WLi-syd/python
e8bd743535a1eca3493ea7f74a7475d1fb49de98
[ "CNRI-Python" ]
null
null
null
w3r-basic-1-28.py
WLi-syd/python
e8bd743535a1eca3493ea7f74a7475d1fb49de98
[ "CNRI-Python" ]
null
null
null
w3r-basic-1-28.py
WLi-syd/python
e8bd743535a1eca3493ea7f74a7475d1fb49de98
[ "CNRI-Python" ]
null
null
null
# 28. Write a Python program to print all even numbers from a given numbers list in the same order and stop the printing if any numbers that come after 237 in the sequence. # Question: # Input: """ numbers = [ 386, 462, 47, 418, 907, 344, 236, 375, 823, 566, 597, 978, 328, 615, 953, 345, 399, 162, 758, 219, 918, 237,...
21.58
172
0.60519
181
1,079
3.607735
0.574586
0.015314
0.039816
0.045942
0.48392
0.48392
0.48392
0.48392
0.48392
0.48392
0
0.375297
0.219648
1,079
49
173
22.020408
0.400238
0.541242
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.071429
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6fc649c2bfda6a7543ec3729210e9d9e0bc10dc4
2,287
py
Python
api/visibility_class.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
null
null
null
api/visibility_class.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
null
null
null
api/visibility_class.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
null
null
null
from rest_framework import viewsets from deployments.models import Project from .models import VisibilityChoices, VisibilityCharChoices, UserCountry, Profile from .utils import is_user_ifrc # filter_visibility_by_auth (would be better) from django.db.models import Count, Sum, Q, F, Case, When from itertools import ch...
47.645833
355
0.732838
260
2,287
6.230769
0.315385
0.083333
0.111111
0.103704
0.322222
0.287654
0.245679
0.245679
0.245679
0.245679
0
0.00107
0.182772
2,287
47
356
48.659574
0.865704
0.134674
0
0.28125
0
0
0.015205
0
0
0
0
0.021277
0
1
0.09375
false
0
0.1875
0
0.625
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
1
0
0
2
6fd32c441e3c868c3d3b19c983f73381bc3e208d
26,813
py
Python
python/plot.py
factor-hmc/numerical-scratch
333c7847f2366e951ae0f4c1e8b4a3e38b7bea70
[ "BSD-3-Clause" ]
null
null
null
python/plot.py
factor-hmc/numerical-scratch
333c7847f2366e951ae0f4c1e8b4a3e38b7bea70
[ "BSD-3-Clause" ]
null
null
null
python/plot.py
factor-hmc/numerical-scratch
333c7847f2366e951ae0f4c1e8b4a3e38b7bea70
[ "BSD-3-Clause" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from scipy import optimize def autolabel(rects, yerr=[0, 0, 0]): """ Attach a text label above each bar in *rects*, displaying its height. Source: https://matplotlib.org/gallery/lines_bars_and_markers/barchart.html#sphx-glr-gallery-lines-bars-and-mark...
43.527597
123
0.62093
3,239
26,813
5.001235
0.301945
0.027224
0.013334
0.011112
0.623125
0.604482
0.589419
0.582073
0.577813
0.571332
0
0.432342
0.262447
26,813
615
124
43.598374
0.386782
0.030545
0
0.565032
0
0
0.051206
0
0
0
0
0
0
1
0.021322
false
0
0.006397
0.002132
0.029851
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6fd4d037a3459cafadb688f74ac925230e9700a6
986
py
Python
authentication/migrations/0002_auto_20210410_1511.py
Sammy-Barasa/work-record-manager
62652d7961d16f12ebb76a23f2078f1c4aa87df5
[ "MIT" ]
null
null
null
authentication/migrations/0002_auto_20210410_1511.py
Sammy-Barasa/work-record-manager
62652d7961d16f12ebb76a23f2078f1c4aa87df5
[ "MIT" ]
9
2021-03-19T12:56:42.000Z
2022-02-07T01:46:14.000Z
authentication/migrations/0002_auto_20210410_1511.py
Sammy-Barasa/work-record-manager
62652d7961d16f12ebb76a23f2078f1c4aa87df5
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-10 15:11 from django.db import migrations, models import phone_field.models class Migration(migrations.Migration): dependencies = [ ('authentication', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', ...
28.171429
109
0.589249
103
986
5.485437
0.475728
0.097345
0.162832
0.19115
0.626549
0.548673
0.486726
0.417699
0.417699
0.247788
0
0.033141
0.296146
986
34
110
29
0.78098
0.045639
0
0.5
1
0
0.124601
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.178571
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6fe20ffd18947e4850d3616df613a7d41d5f9b35
1,010
py
Python
su-blog/schemas.py
uncle-lv/su-blog
696a173d44e2beff72eba1d0cf63be1a9688e6d9
[ "MIT" ]
null
null
null
su-blog/schemas.py
uncle-lv/su-blog
696a173d44e2beff72eba1d0cf63be1a9688e6d9
[ "MIT" ]
null
null
null
su-blog/schemas.py
uncle-lv/su-blog
696a173d44e2beff72eba1d0cf63be1a9688e6d9
[ "MIT" ]
null
null
null
from typing import List, Optional from datetime import datetime from pydantic import BaseModel, EmailStr class UserBase(BaseModel): username: str class UserCreate(UserBase): password: str class UserOut(UserBase): email: EmailStr avatar_url: str github_url: str qq: str ...
15.30303
44
0.633663
106
1,010
5.95283
0.45283
0.088748
0.050713
0.057052
0.085578
0.085578
0
0
0
0
0
0
0.30297
1,010
66
45
15.30303
0.896307
0
0
0.236842
0
0
0
0
0
0
0
0
0
1
0
false
0.131579
0.078947
0
0.868421
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
1
0
0
2
6fee1f74596dcfd01cfc2f34adc9ef0a62b816e0
5,238
py
Python
RobotControlSoftware/RoBoeServer.py
garetWk/SeniorDesignProject
11e565b07a4db752bd825fedf8f10d2e1b3cfe29
[ "MIT" ]
null
null
null
RobotControlSoftware/RoBoeServer.py
garetWk/SeniorDesignProject
11e565b07a4db752bd825fedf8f10d2e1b3cfe29
[ "MIT" ]
null
null
null
RobotControlSoftware/RoBoeServer.py
garetWk/SeniorDesignProject
11e565b07a4db752bd825fedf8f10d2e1b3cfe29
[ "MIT" ]
null
null
null
from socket import * import ssl import pprint from time import gmtime import serial from os import system import struct import select serverIP = '10.88.217.112' serverPort = 50008 usbport = '/dev/tty.usbmodemfa131' ser = serial.Serial(usbport,115200,timeout=None) ''' from functools import wraps def sslwrap(fun...
32.333333
91
0.345552
453
5,238
3.940397
0.298013
0.170308
0.172549
0.10084
0.314286
0.314286
0.219048
0.179832
0.161345
0.131092
0
0.031224
0.547537
5,238
161
92
32.534161
0.721941
0.017946
0
0.41
0
0
0.043673
0.005194
0
0
0
0
0
0
null
null
0
0.08
null
null
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
6ff21c6d73b4a25ba332e629ea3733f7f7d6b61f
469
py
Python
Ecomm/products/serializers.py
team-mbm/django-Ecomm
4618d2b1a6d925ac82bf27a27ccea56d85ff1348
[ "MIT" ]
null
null
null
Ecomm/products/serializers.py
team-mbm/django-Ecomm
4618d2b1a6d925ac82bf27a27ccea56d85ff1348
[ "MIT" ]
null
null
null
Ecomm/products/serializers.py
team-mbm/django-Ecomm
4618d2b1a6d925ac82bf27a27ccea56d85ff1348
[ "MIT" ]
null
null
null
""" serializing our models so that it can be consumed as rest-api """ from products.models import Product from rest_framework import serializers class ProductSerializer(serializers.HyperlinkedModelSerializer): """ inherited from serializers.HyperlinkedModelSerializer to integrate with viewsets """ ...
27.588235
81
0.680171
48
469
6.604167
0.770833
0.233438
0
0
0
0
0
0
0
0
0
0
0.219616
469
16
82
29.3125
0.86612
0.302772
0
0
0
0
0.146667
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.571429
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
1
0
0
2
6ff76271d6b913c3d9738a7b4edd26d5d29e7194
2,567
py
Python
unittest/SimpleAttributeTestCase.py
Shironofenny/PyLiberty
205b57cad78c1b4517ace9204804006b92ad3d43
[ "Apache-2.0" ]
1
2019-06-21T17:24:56.000Z
2019-06-21T17:24:56.000Z
unittest/SimpleAttributeTestCase.py
Shironofenny/PyLiberty
205b57cad78c1b4517ace9204804006b92ad3d43
[ "Apache-2.0" ]
null
null
null
unittest/SimpleAttributeTestCase.py
Shironofenny/PyLiberty
205b57cad78c1b4517ace9204804006b92ad3d43
[ "Apache-2.0" ]
null
null
null
import unittest import os import sys sys.path.append(os.getcwd()) sys.path.append(os.path.dirname(os.getcwd())) from src import SimpleAttribute from src import InternalHelperUtilities as Utils class SimpleAttributeTestCase(unittest.TestCase): def setUp(self): pass def test_sa_parsing(self): ...
45.839286
110
0.677055
251
2,567
6.848606
0.294821
0.183246
0.372309
0.129145
0.223386
0.223386
0
0
0
0
0
0.014174
0.202961
2,567
56
111
45.839286
0.826002
0
0
0
0
0
0.100857
0
0
0
0
0
0.428571
1
0.040816
false
0.020408
0.102041
0
0.163265
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
1
0
0
0
0
0
0
0
0
0
2
6ff9fea625cb3bd506c2cc409ad549e6d5dc343a
589
py
Python
adafruit-circuitpython-bundle-py-20201107/examples/veml6070_simpletest.py
rantler/AdaFruit
9b0aa56ede9ac358b835162cad4c6531c09ba5b0
[ "CC0-1.0" ]
null
null
null
adafruit-circuitpython-bundle-py-20201107/examples/veml6070_simpletest.py
rantler/AdaFruit
9b0aa56ede9ac358b835162cad4c6531c09ba5b0
[ "CC0-1.0" ]
null
null
null
adafruit-circuitpython-bundle-py-20201107/examples/veml6070_simpletest.py
rantler/AdaFruit
9b0aa56ede9ac358b835162cad4c6531c09ba5b0
[ "CC0-1.0" ]
null
null
null
# VEML6070 Driver Example Code import time import busio import board import adafruit_veml6070 with busio.I2C(board.SCL, board.SDA) as i2c: uv = adafruit_veml6070.VEML6070(i2c) # Alternative constructors with parameters # uv = adafruit_veml6070.VEML6070(i2c, 'VEML6070_1_T') # uv = adafruit_v...
29.45
75
0.66893
82
589
4.621951
0.47561
0.168865
0.14248
0.205805
0.271768
0.195251
0
0
0
0
0
0.117257
0.232598
589
19
76
31
0.721239
0.341256
0
0
0
0
0.082645
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0.090909
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
1
0
0
0
0
2
b5076a799c2aff4accc4dee47e92b0d15b664c3d
1,047
py
Python
src/scenic/runCreateAbsScene.py
ArenBabikian/Scenic
5687d9a70c0e6588ee0cda81b4a4a6731bcd2d91
[ "BSD-3-Clause" ]
null
null
null
src/scenic/runCreateAbsScene.py
ArenBabikian/Scenic
5687d9a70c0e6588ee0cda81b4a4a6731bcd2d91
[ "BSD-3-Clause" ]
null
null
null
src/scenic/runCreateAbsScene.py
ArenBabikian/Scenic
5687d9a70c0e6588ee0cda81b4a4a6731bcd2d91
[ "BSD-3-Clause" ]
null
null
null
import subprocess import sys import os maps = ['zalaFullcrop'] configurations = ['7actors'] num_scenes = 15 verbosity = 0 timeout = 600 for config in configurations: for m in maps: command = ['scenic'] command.extend(['--count', str(num_scenes)]) command.extend(['-v', str(verbosity)]) ...
32.71875
89
0.593123
120
1,047
5.158333
0.4
0.210016
0.180937
0.087237
0.171244
0.171244
0.171244
0.171244
0.171244
0.171244
0
0.008505
0.213945
1,047
31
90
33.774194
0.743621
0.096466
0
0
0
0
0.215499
0.037155
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
1
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
2
b50bca1934c61690ac1dcc2df392e9e546db7b62
848
py
Python
holobot/discord/contexts/icontext_manager.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
1
2021-05-24T00:17:46.000Z
2021-05-24T00:17:46.000Z
holobot/discord/contexts/icontext_manager.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
41
2021-03-24T22:50:09.000Z
2021-12-17T12:15:13.000Z
holobot/discord/contexts/icontext_manager.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
null
null
null
from .itracked_context import ITrackedContext from discord.ext.commands import Context from discord_slash.context import ComponentContext, MenuContext, SlashContext from holobot.sdk.concurrency import IAsyncDisposable from typing import Union from uuid import UUID class IContextManager: async def get_context(self,...
42.4
145
0.791274
91
848
7.263736
0.362637
0.048412
0.108926
0.121029
0.462935
0.462935
0.462935
0.462935
0.462935
0.462935
0
0
0.148585
848
19
146
44.631579
0.915512
0
0
0.266667
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
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
1
0
1
0
0
0
0
2
b5115ca88ee75adec4e812cc0414e8b9a29a7371
2,748
py
Python
markdown_generator/github_update_pubs.py
cwatson/cwatson.github.io
2fc87dcfd1ab4e50a82ce5056dcd9b5ead59d683
[ "MIT" ]
null
null
null
markdown_generator/github_update_pubs.py
cwatson/cwatson.github.io
2fc87dcfd1ab4e50a82ce5056dcd9b5ead59d683
[ "MIT" ]
null
null
null
markdown_generator/github_update_pubs.py
cwatson/cwatson.github.io
2fc87dcfd1ab4e50a82ce5056dcd9b5ead59d683
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # coding: utf-8 # Generate a markdown file from Bibtex entries for "academicpages" import os import bibtexparser as bp from bibtexparser.bwriter import BibTexWriter from bibtexparser.bibdatabase import BibDatabase bibfile = open("/home/cwatson/texmf/bib/bib/personal.bib") bibdb = bp.load(bibfile) ...
33.925926
100
0.56623
335
2,748
4.602985
0.483582
0.057069
0.019455
0
0
0
0
0
0
0
0
0.001904
0.235444
2,748
80
101
34.35
0.732032
0.296943
0
0.058824
1
0
0.203248
0.020953
0
0
0
0.0125
0
1
0.019608
false
0
0.078431
0
0.117647
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
1
0
0
0
0
0
0
0
0
0
0
2
82efdfea4e8e5aea3cb26e43eab4881cb67daa38
341
py
Python
occiput_suite/occiput/DataSources/__init__.py
mscipio/occiput-suite
9b7dc59ad615d46d811eab965a86ec9efe292a7d
[ "BSD-2-Clause" ]
7
2018-02-22T13:50:21.000Z
2020-11-16T01:28:22.000Z
occiput_suite/occiput/DataSources/__init__.py
mscipio/occiput-suite
9b7dc59ad615d46d811eab965a86ec9efe292a7d
[ "BSD-2-Clause" ]
null
null
null
occiput_suite/occiput/DataSources/__init__.py
mscipio/occiput-suite
9b7dc59ad615d46d811eab965a86ec9efe292a7d
[ "BSD-2-Clause" ]
2
2018-02-22T13:50:31.000Z
2020-01-14T02:17:32.000Z
# occiput # Stefano Pedemonte # April 2014 # Harvard University, Martinos Center for Biomedical Imaging # Boston, MA, USA __all__ = ['FileSources', 'Synthetic'] from . import FileSources from . import Synthetic from .FileSources import * from .Synthetic import * __all__.extend(FileSources.__all__) __all__.exte...
21.3125
61
0.765396
38
341
6.342105
0.552632
0.107884
0
0
0
0
0
0
0
0
0
0.013746
0.146628
341
16
62
21.3125
0.814433
0.337243
0
0
0
0
0.090909
0
0
0
0
0
0
1
0
false
0
0.571429
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
82fbbe0869e75ad64d67fcf43af9a6e0f6fc171b
661
py
Python
users/forms.py
Sundaybrian/prodev
ed51fbd7c70941de36f7bc59c1940acfafaecf72
[ "MIT" ]
null
null
null
users/forms.py
Sundaybrian/prodev
ed51fbd7c70941de36f7bc59c1940acfafaecf72
[ "MIT" ]
7
2020-06-05T22:53:10.000Z
2022-02-10T08:29:14.000Z
users/forms.py
Sundaybrian/prodev
ed51fbd7c70941de36f7bc59c1940acfafaecf72
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django import forms from django.contrib.auth.forms import UserCreationForm from .models import Profile class UserRegistrationForm(UserCreationForm): email=forms.EmailField() class Meta: model=User fields=['username','email','password1','password...
20.030303
59
0.659607
67
661
6.492537
0.402985
0.068966
0.078161
0.096552
0.262069
0
0
0
0
0
0
0.003968
0.237519
661
32
60
20.65625
0.859127
0.037821
0
0.388889
0
0
0.099338
0
0
0
0
0
0
1
0
false
0.055556
0.222222
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
d207292758b6c96ddea51f6382ad6faa0413cee9
774
py
Python
LintCode/chapter 15/1179. Friend Circles/.ipynb_checkpoints/solution-checkpoint.py
vincent507cpu/Comprehensive-Algorithm-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
4
2020-06-26T00:45:53.000Z
2021-04-19T12:23:32.000Z
LintCode/chapter 15/1179. Friend Circles/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
LintCode/chapter 15/1179. Friend Circles/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
class Solution: """ @param M: a matrix @return: the total number of friend circles among all the students """ def findCircleNum(self, M): # Write your code here res, queue = 0, [] visited = [False for _ in range(len(M))] for i in range(len(M)): if...
30.96
70
0.391473
81
774
3.728395
0.530864
0.069536
0.099338
0.109272
0.086093
0
0
0
0
0
0
0.008108
0.521964
774
25
71
30.96
0.808108
0.138243
0
0
0
0
0
0
0
0
0
0.04
0
1
0.0625
false
0
0
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
2
d219082334961cda51c1bcbec9e557f2b3ee25de
884
py
Python
examples/uni_arviz_rhat.py
kushagragpt99/kanga
1f2343d15965148ae7c1dea95168c31a87b27c4f
[ "MIT" ]
1
2022-02-03T08:50:35.000Z
2022-02-03T08:50:35.000Z
examples/uni_arviz_rhat.py
kushagragpt99/kanga
1f2343d15965148ae7c1dea95168c31a87b27c4f
[ "MIT" ]
null
null
null
examples/uni_arviz_rhat.py
kushagragpt99/kanga
1f2343d15965148ae7c1dea95168c31a87b27c4f
[ "MIT" ]
null
null
null
# Compute potential scale reduction factor (Rhat) using rhat function of kanga, which is rhat of arviz # %% Load packages import arviz as az import numpy as np # %% Define function for computing univariate Rhat based on arviz # x is a numpy array of 3 dimensions, (chain, MC iteration, parameter) def uni_arviz_rhat(...
34
121
0.726244
146
884
4.335616
0.506849
0.037915
0.034755
0.047393
0.053712
0
0
0
0
0
0
0.006623
0.145928
884
25
122
35.36
0.831788
0.475113
0
0
0
0
0.10793
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0.142857
0.571429
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
d21966758555d4073d594160830fae0e82e206cb
160
py
Python
Exercicios_Resolvidos/Parte 1/Semana 3/Exercício2.py
EmersonAires/Introducao_a_ciencia_da_computacao_com_Python
152f95410a638d84adf97367be17ec67fdb8bf3c
[ "MIT" ]
null
null
null
Exercicios_Resolvidos/Parte 1/Semana 3/Exercício2.py
EmersonAires/Introducao_a_ciencia_da_computacao_com_Python
152f95410a638d84adf97367be17ec67fdb8bf3c
[ "MIT" ]
null
null
null
Exercicios_Resolvidos/Parte 1/Semana 3/Exercício2.py
EmersonAires/Introducao_a_ciencia_da_computacao_com_Python
152f95410a638d84adf97367be17ec67fdb8bf3c
[ "MIT" ]
null
null
null
NumeroEntrada = int(input("Digite um número inteiro: ")) RestoDivisao = NumeroEntrada % 3 if RestoDivisao == 0: print("Fizz") else: print(NumeroEntrada)
17.777778
56
0.7125
18
160
6.333333
0.777778
0
0
0
0
0
0
0
0
0
0
0.014925
0.1625
160
9
57
17.777778
0.835821
0
0
0
0
0
0.1875
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d22645e07cfe562a44eb3613ee1168e65a76d815
13,600
py
Python
rna_learn/model.py
srom/rna_learn
981ab4c341cac952b16f9c5694f0473c3931f06f
[ "MIT" ]
null
null
null
rna_learn/model.py
srom/rna_learn
981ab4c341cac952b16f9c5694f0473c3931f06f
[ "MIT" ]
3
2020-12-21T17:22:07.000Z
2022-02-10T00:35:51.000Z
rna_learn/model.py
srom/rna_learn
981ab4c341cac952b16f9c5694f0473c3931f06f
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow import keras import tensorflow_probability as tfp from tensorflow.python.keras.losses import mean_absolute_error from tensorflow.python.keras.metrics import MeanMetricWrapper def rnn_regression_model(alphabet_size, n_timesteps=None, n_hidden=100, dropout=0.5,...
28.392484
98
0.643897
1,772
13,600
4.707675
0.103273
0.05802
0.043155
0.023376
0.722608
0.708463
0.694917
0.657157
0.64409
0.602973
0
0.019801
0.246176
13,600
478
99
28.451883
0.793894
0
0
0.685333
0
0
0.062132
0.001765
0
0
0
0
0
1
0.042667
false
0
0.016
0
0.093333
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d2384d65b6fd409e7175bb3084bc1a6e54c4fd02
287
py
Python
logextractx/conftest.py
mrugacz95/logextractx
9e7a91a57fa412b0d14a8c1361d8d362ba85fc75
[ "Apache-2.0" ]
2
2021-04-25T06:21:28.000Z
2021-07-13T07:35:09.000Z
logextractx/conftest.py
mrugacz95/logextractx
9e7a91a57fa412b0d14a8c1361d8d362ba85fc75
[ "Apache-2.0" ]
2
2021-08-21T11:38:04.000Z
2021-10-16T15:27:38.000Z
logextractx/conftest.py
allegro/logextractx
1a9e57177112d96b04c1b12870c6164064ca28c5
[ "Apache-2.0" ]
null
null
null
""" useful fixtures for testing """ # pylint: disable=redefined-outer-name import logging import pytest @pytest.fixture def log_capture(caplog): """ if you use this fixture, logs will be captures in log_capture object """ caplog.set_level(logging.DEBUG) return caplog
20.5
54
0.724739
39
287
5.25641
0.794872
0.097561
0
0
0
0
0
0
0
0
0
0
0.181185
287
13
55
22.076923
0.87234
0.473868
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d240b79f84d1daea28908dcc7ebf9d152a981c48
5,826
py
Python
fjord/feedback/south_migrations/0044_auto__add_field_product_browser.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
null
null
null
fjord/feedback/south_migrations/0044_auto__add_field_product_browser.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
null
null
null
fjord/feedback/south_migrations/0044_auto__add_field_product_browser.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Product.browser' db.add_column(u'feedback_product', 'brow...
69.357143
153
0.555956
599
5,826
5.315526
0.188648
0.10804
0.184673
0.263819
0.670854
0.648869
0.644472
0.572864
0.529523
0.458543
0
0.013043
0.197219
5,826
84
154
69.357143
0.667736
0.01459
0
0.136986
0
0
0.541478
0.297142
0
0
0
0
0
1
0.027397
false
0
0.054795
0
0.123288
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d24589549876423767d9404ef5e86e09cb792960
417
py
Python
examples/docs_snippets/docs_snippets/deploying/dask_hello_world.py
emilyhawkins-drizly/dagster
bfb90e8b0b442f657e5256082d3116aefa8c330b
[ "Apache-2.0" ]
1
2021-07-03T09:05:58.000Z
2021-07-03T09:05:58.000Z
examples/docs_snippets/docs_snippets/deploying/dask_hello_world.py
emilyhawkins-drizly/dagster
bfb90e8b0b442f657e5256082d3116aefa8c330b
[ "Apache-2.0" ]
1
2021-06-21T18:30:02.000Z
2021-06-25T21:18:39.000Z
examples/docs_snippets/docs_snippets/deploying/dask_hello_world.py
emilyhawkins-drizly/dagster
bfb90e8b0b442f657e5256082d3116aefa8c330b
[ "Apache-2.0" ]
null
null
null
from dagster import ModeDefinition, default_executors, fs_io_manager, pipeline, solid from dagster_dask import dask_executor @solid def hello_world(): return "Hello, World!" @pipeline( mode_defs=[ ModeDefinition( resource_defs={"io_manager": fs_io_manager}, executor_defs=defa...
20.85
85
0.688249
47
417
5.765957
0.425532
0.099631
0.081181
0
0
0
0
0
0
0
0
0
0.223022
417
19
86
21.947368
0.83642
0
0
0
0
0
0.055156
0
0
0
0
0
0
1
0.133333
true
0
0.133333
0.133333
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
1
0
0
0
2
d24e1e87bfbffc234ee7a13898323ed93d8d8549
3,864
py
Python
2pick.py
sunset1995/ShadowverseTool
6a9efb791ca23bcd3c7bed7cca75fd8089d5436d
[ "MIT" ]
null
null
null
2pick.py
sunset1995/ShadowverseTool
6a9efb791ca23bcd3c7bed7cca75fd8089d5436d
[ "MIT" ]
null
null
null
2pick.py
sunset1995/ShadowverseTool
6a9efb791ca23bcd3c7bed7cca75fd8089d5436d
[ "MIT" ]
null
null
null
import os import cv2 import time import pyautogui import numpy as np import PIL.Image as Image import util # Create sceen reader (using another thread) screenshotter = util.ScreenShotter() ''' Main program ''' def go_arena(): arena_temp = util.read_template('templates', '2pick', 'arena.png') arena_in_temp ...
38.257426
84
0.718944
496
3,864
5.322581
0.137097
0.10303
0.104545
0.174242
0.725379
0.725379
0.562121
0.434091
0.386364
0.162879
0
0.011642
0.15528
3,864
100
85
38.64
0.797181
0.01087
0
0.243902
0
0
0.160263
0
0
0
0
0
0
1
0.134146
false
0
0.085366
0
0.243902
0.012195
0
0
0
null
0
0
1
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
2
d24fdb517804122b2da7ac12a073835360e56260
2,991
py
Python
tests/test_mime_generator.py
liamtimms/dicom_parser
963e9e344358c74afe699a25ea250a1baf91dbe0
[ "MIT" ]
null
null
null
tests/test_mime_generator.py
liamtimms/dicom_parser
963e9e344358c74afe699a25ea250a1baf91dbe0
[ "MIT" ]
null
null
null
tests/test_mime_generator.py
liamtimms/dicom_parser
963e9e344358c74afe699a25ea250a1baf91dbe0
[ "MIT" ]
null
null
null
""" Tests for the :func:`dicom_parser.utils.mime_generator.generate_by_mime` utility function. """ import importlib.util import platform from typing import Generator from unittest import TestCase import pytest from dicom_parser.utils.mime_generator import check_magic, generate_by_mime from tests.fixtures import TEST_...
29.613861
78
0.695754
360
2,991
5.622222
0.322222
0.02668
0.034585
0.035573
0.321146
0.29249
0.29249
0.270751
0.270751
0.270751
0
0.00043
0.222668
2,991
100
79
29.91
0.870108
0.34002
0
0.27027
1
0
0.058213
0
0
0
0
0.01
0.162162
1
0.189189
false
0
0.27027
0
0.540541
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
d26c09e048a95b44c9bd7cb06782e458a064b77c
312
py
Python
tests/test_about.py
andrsd/spotify-classical-qt
86c05240a01a067a3368ca47f08b7de97a96b4c6
[ "MIT" ]
1
2021-08-13T17:06:07.000Z
2021-08-13T17:06:07.000Z
tests/test_about.py
andrsd/concertista
1ed4f1a52a3d5472866d9ff0644f60c1cc8fef9b
[ "MIT" ]
11
2021-02-09T16:38:04.000Z
2022-03-21T22:25:54.000Z
tests/test_about.py
andrsd/spotify-classical-qt
86c05240a01a067a3368ca47f08b7de97a96b4c6
[ "MIT" ]
null
null
null
from PyQt5 import QtWidgets from concertista.AboutDialog import AboutDialog def test_about_dialog(main_window): about_dlg = AboutDialog(main_window) assert isinstance(about_dlg, AboutDialog) assert about_dlg.windowTitle() == 'About' assert isinstance(about_dlg._layout, QtWidgets.QVBoxLayout)
28.363636
63
0.794872
37
312
6.459459
0.486486
0.133891
0.158996
0.200837
0
0
0
0
0
0
0
0.003704
0.134615
312
10
64
31.2
0.881481
0
0
0
0
0
0.016026
0
0
0
0
0
0.428571
1
0.142857
false
0
0.285714
0
0.428571
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
1
0
0
0
0
0
0
0
0
0
2
d2715746009cc60694be427dfc533a921e86a361
823
py
Python
src/keybar/tests/factories/user.py
keybar/keybar
46bd0dee310ed4ac1d680f5fe75326aeb109aebc
[ "BSD-3-Clause" ]
4
2015-06-17T07:44:29.000Z
2021-03-06T01:29:17.000Z
src/keybar/tests/factories/user.py
keybar/keybar
46bd0dee310ed4ac1d680f5fe75326aeb109aebc
[ "BSD-3-Clause" ]
18
2015-01-12T20:57:26.000Z
2022-03-11T23:11:38.000Z
src/keybar/tests/factories/user.py
keybar/keybar
46bd0dee310ed4ac1d680f5fe75326aeb109aebc
[ "BSD-3-Clause" ]
1
2015-01-19T07:24:00.000Z
2015-01-19T07:24:00.000Z
import factory from django.contrib.auth.hashers import make_password from keybar.models.user import User class UserFactory(factory.DjangoModelFactory): email = factory.Sequence(lambda i: '{0}@none.none'.format(i)) is_active = True class Meta: model = User @classmethod def _prepare(cls, ...
28.37931
84
0.688943
98
823
5.683673
0.581633
0.078995
0
0
0
0
0
0
0
0
0
0.016717
0.200486
823
28
85
29.392857
0.829787
0.137303
0
0
0
0
0.121739
0
0
0
0
0
0
1
0.058824
false
0.294118
0.176471
0
0.705882
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
1
0
0
2
962e776d30dc2058513a75c3991cef196d2ff72d
224
py
Python
presets/urls.py
DarkArtek/ffxivitashadesite
a24c1f255d7fd4ab92cb235f63d7ce10a0b83420
[ "MIT" ]
null
null
null
presets/urls.py
DarkArtek/ffxivitashadesite
a24c1f255d7fd4ab92cb235f63d7ce10a0b83420
[ "MIT" ]
6
2021-04-08T22:11:23.000Z
2021-09-08T02:39:49.000Z
presets/urls.py
DarkArtek/ffxivitashadesite
a24c1f255d7fd4ab92cb235f63d7ce10a0b83420
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='presets'), path('search', views.search, name='search'), path('preset/<slug:slug>', views.preset, name='viewpreset') ]
24.888889
63
0.665179
28
224
5.321429
0.5
0
0
0
0
0
0
0
0
0
0
0
0.151786
224
9
64
24.888889
0.784211
0
0
0
0
0
0.208889
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
963dd269a4c676e8f3605e2be2e1f8d56b96d72a
405
py
Python
python/examples/test/test.py
willFederer/taichi
59b37adf83fba5a06583dcf6b9bf2a74a985fe3e
[ "MIT" ]
1
2021-02-04T13:59:59.000Z
2021-02-04T13:59:59.000Z
python/examples/test/test.py
willFederer/taichi
59b37adf83fba5a06583dcf6b9bf2a74a985fe3e
[ "MIT" ]
null
null
null
python/examples/test/test.py
willFederer/taichi
59b37adf83fba5a06583dcf6b9bf2a74a985fe3e
[ "MIT" ]
null
null
null
import time import taichi as tc from taichi.gui.image_viewer import show_image tc.core.print_all_units() tc.core.test() tex = tc.Texture('const', value=(0.1, 0.1, 0.1, 0.1)) tex = tex.flip(0) try: tc.core.test_raise_error() except Exception as e: print 'Exception:', e img = tc.util.imread(tc.get_asset_path(...
19.285714
61
0.711111
73
405
3.821918
0.547945
0.028674
0.032258
0.043011
0.028674
0.028674
0
0
0
0
0
0.028409
0.130864
405
20
62
20.25
0.764205
0
0
0
0
0
0.125926
0
0
0
0
0
0
0
null
null
0.066667
0.2
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
9645c4b96d32776f44522ff64125d8b8fd1a2102
662
py
Python
services/web/apps/fm/totaloutage/views.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
services/web/apps/fm/totaloutage/views.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
services/web/apps/fm/totaloutage/views.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # fm.totaloutage # --------------------------------------------------------------------- # Copyright (C) 2007-2016 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # NOC modules from...
34.842105
86
0.503021
58
662
5.655172
0.689655
0.064024
0
0
0
0
0
0
0
0
0
0.015306
0.111782
662
18
87
36.777778
0.542517
0.453172
0
0
0
0
0.19774
0.112994
0
0
0
0
0
1
0
false
0
0.375
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
1
0
1
0
0
2
96460180ed710e3d5bc9639c18ef4e0d1993f16f
168
py
Python
pylama/__init__.py
ilyalabun/pylama
ead7fafacf51800af4ffca9af48df0f3d4317e23
[ "MIT" ]
null
null
null
pylama/__init__.py
ilyalabun/pylama
ead7fafacf51800af4ffca9af48df0f3d4317e23
[ "MIT" ]
null
null
null
pylama/__init__.py
ilyalabun/pylama
ead7fafacf51800af4ffca9af48df0f3d4317e23
[ "MIT" ]
null
null
null
"""Code audit tool for python. :copyright: 2013 by Kirill Klenov. """ import logging __version__ = "8.3.3" LOGGER = logging.getLogger("pylama") # pylama:ignore=D
12
36
0.696429
23
168
4.913043
0.869565
0
0
0
0
0
0
0
0
0
0
0.049645
0.160714
168
13
37
12.923077
0.751773
0.47619
0
0
0
0
0.135802
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2
96483dee2a97b0169a6bd756558ad5e63ab945a5
183
py
Python
Algorithms/Sorting/CountingSort1.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Sorting/CountingSort1.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Sorting/CountingSort1.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 from collections import Counter n = int(raw_input()) counter = Counter(raw_input().split()) print ' '.join(map(str, [counter.get(str(i), '0') for i in xrange(100)]))
20.333333
73
0.677596
30
183
4.066667
0.766667
0.131148
0
0
0
0
0
0
0
0
0
0.03125
0.125683
183
8
74
22.875
0.73125
0.065574
0
0
0
0
0.011765
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.25
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
1
0
0
0
0
0
0
0
0
2
9650833bedf1b990f622763798ed182b1f3d0056
2,662
py
Python
segments/sysinfo.py
andradei/promptastic
0b68e49d45139a1e4b798d9f4a9a9edb34ec2368
[ "Apache-2.0" ]
null
null
null
segments/sysinfo.py
andradei/promptastic
0b68e49d45139a1e4b798d9f4a9a9edb34ec2368
[ "Apache-2.0" ]
null
null
null
segments/sysinfo.py
andradei/promptastic
0b68e49d45139a1e4b798d9f4a9a9edb34ec2368
[ "Apache-2.0" ]
null
null
null
import subprocess import os import re import time import getpass import socket from segments import Segment, theme from utils import colors, glyphs class Jobs(Segment): bg = colors.background(theme.JOBS_BG) fg = colors.foreground(theme.JOBS_FG) def init(self): pppid = subprocess.Popen(['ps', '-p...
31.317647
99
0.532307
297
2,662
4.673401
0.441077
0.032421
0.032421
0.054035
0.23415
0.038905
0.038905
0
0
0
0
0.007403
0.340346
2,662
84
100
31.690476
0.78303
0.4429
0
0.083333
0
0
0.034554
0
0
0
0
0
0
1
0.083333
false
0.055556
0.222222
0
0.555556
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
1
0
0
2
96546c27f1c007a36691eadbaf6d5d8c5cad8ec6
906
py
Python
RecoHI/HiEgammaAlgos/python/HiEgammaPostPF_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoHI/HiEgammaAlgos/python/HiEgammaPostPF_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoHI/HiEgammaAlgos/python/HiEgammaPostPF_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
from RecoEgamma.EgammaIsolationAlgos.interestingEgammaIsoDetIdsSequence_cff import * from RecoEgamma.PhotonIdentification.photonId_cff import * from RecoEgamma.ElectronIdentification.electronIdSequence_cff import * from RecoEgamma.EgammaHFProducers.hfEMClusteringSequence_cff import * from RecoEgamma.EgammaIsolationAlgo...
53.294118
145
0.890728
61
906
13.147541
0.540984
0.087282
0.064838
0.114713
0
0
0
0
0
0
0
0
0.051876
906
16
146
56.625
0.933644
0
0
0
0
0
0.10596
0
0
0
0
0
0
1
0
false
0
0.384615
0
0.384615
0
0
0
1
null
0
0
0
0
0
0
0
0
0
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
2
96687f9cea8adbcb3ca238211a2f9fa02c39d67c
918
py
Python
src/braket/device_schema/rigetti/__init__.py
kjacky/amazon-braket-schemas-python
42bfd211747d2bc26831085df17e295c65a04f6a
[ "Apache-2.0" ]
17
2020-09-10T00:40:35.000Z
2022-03-02T23:22:50.000Z
src/braket/device_schema/rigetti/__init__.py
kjacky/amazon-braket-schemas-python
42bfd211747d2bc26831085df17e295c65a04f6a
[ "Apache-2.0" ]
60
2020-08-13T19:48:03.000Z
2022-03-31T19:28:33.000Z
src/braket/device_schema/rigetti/__init__.py
kjacky/amazon-braket-schemas-python
42bfd211747d2bc26831085df17e295c65a04f6a
[ "Apache-2.0" ]
20
2020-08-14T23:10:44.000Z
2022-01-31T07:32:48.000Z
# Copyright Amazon.com Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompany...
39.913043
87
0.777778
127
918
5.527559
0.590551
0.08547
0.068376
0.094017
0.17094
0.17094
0.119658
0
0
0
0
0.020566
0.152505
918
22
88
41.727273
0.881748
0.616558
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
966e73e6c4fc6004242fc0585b7cd18929d2967c
463
py
Python
User/tests/test_profile_model.py
LukaszHoszowski/Django_ProEstate
36c5cc25842f4e5afebd9ff6eaa83c9457fb7a3a
[ "MIT" ]
1
2022-02-15T13:36:29.000Z
2022-02-15T13:36:29.000Z
User/tests/test_profile_model.py
LukaszHoszowski/Django_ProEstate
36c5cc25842f4e5afebd9ff6eaa83c9457fb7a3a
[ "MIT" ]
null
null
null
User/tests/test_profile_model.py
LukaszHoszowski/Django_ProEstate
36c5cc25842f4e5afebd9ff6eaa83c9457fb7a3a
[ "MIT" ]
null
null
null
from profile import Profile from django.contrib.auth.models import User def test_should_create_user_a_profile(user_A: User, app_user_profile_factory: Profile) -> None: app_user_profile_factory(user_A, '793454606') assert user_A.profile.phone_number == '793454606' def test_should_update_user_a_profile(user_...
33.071429
95
0.792657
69
463
4.913043
0.318841
0.132743
0.212389
0.150442
0.415929
0.415929
0
0
0
0
0
0.088452
0.12095
463
13
96
35.615385
0.744472
0
0
0
0
0
0.077754
0
0
0
0
0
0.25
1
0.25
false
0
0.25
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
968442fb1e2241a2451e249cc316ff8b6794c37e
936
py
Python
onlinejudge_template_resources/template/generate.py
beet-aizu/template-generator
dd4d54356445ee0e01d1557e9715848eab5d553b
[ "MIT" ]
null
null
null
onlinejudge_template_resources/template/generate.py
beet-aizu/template-generator
dd4d54356445ee0e01d1557e9715848eab5d553b
[ "MIT" ]
null
null
null
onlinejudge_template_resources/template/generate.py
beet-aizu/template-generator
dd4d54356445ee0e01d1557e9715848eab5d553b
[ "MIT" ]
null
null
null
<%! import shutil from logging import getLogger import onlinejudge_template.generator.python as python import onlinejudge_template.generator.about as about import onlinejudge_template.generator.hook as hook %>\ <% logger = getLogger(__name__) if not shutil.which("yapf"): logger.warn...
30.193548
144
0.66453
114
936
5.245614
0.578947
0.085284
0.125418
0.170569
0
0
0
0
0
0
0
0.009358
0.200855
936
30
145
31.2
0.790107
0.138889
0
0.083333
0
0.041667
0.230386
0
0.041667
0
0
0
0
0
null
null
0
0.25
null
null
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
96877a8aff26bcb79a025b3d89749e60832acbe6
1,547
py
Python
fridge/test_suite/core_test.py
ryanstwrt/FRIDGE
6ab23da24cb16fb793b1a182276be2d2c5f74bb6
[ "MIT" ]
null
null
null
fridge/test_suite/core_test.py
ryanstwrt/FRIDGE
6ab23da24cb16fb793b1a182276be2d2c5f74bb6
[ "MIT" ]
4
2019-06-05T23:29:31.000Z
2019-10-15T03:22:37.000Z
fridge/test_suite/core_test.py
ryanstwrt/FRIDGE
6ab23da24cb16fb793b1a182276be2d2c5f74bb6
[ "MIT" ]
1
2019-06-05T13:14:37.000Z
2019-06-05T13:14:37.000Z
import fridge.Core.Core as Core import fridge.driver.global_variables as gb global_vars = gb.GlobalVariables() global_vars.read_input_file('Full_Core_Test') def test_baseCore(): core = Core.Core() assert core.name == '' assert core.assemblyList == [] assert core.coreCoolant is None assert core.re...
30.333333
99
0.712346
184
1,547
5.826087
0.288043
0.223881
0.05597
0.059701
0.19403
0.19403
0.19403
0.19403
0.19403
0.19403
0
0.018167
0.181642
1,547
50
100
30.94
0.828594
0
0
0.170732
0
0
0.042663
0
0
0
0
0
0.658537
1
0.073171
false
0
0.04878
0
0.121951
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
1
0
0
0
0
0
0
0
0
0
2
9690b6a5f554a74d7a65d22832567925e9193a27
243
py
Python
examples/example_modifier1.py
ipsod/psml
6bdc0c5cf5f24b0d28c6d2701356f32c063aa5a8
[ "BSL-1.0" ]
null
null
null
examples/example_modifier1.py
ipsod/psml
6bdc0c5cf5f24b0d28c6d2701356f32c063aa5a8
[ "BSL-1.0" ]
null
null
null
examples/example_modifier1.py
ipsod/psml
6bdc0c5cf5f24b0d28c6d2701356f32c063aa5a8
[ "BSL-1.0" ]
null
null
null
import sys sys.path.append( "../psml" ) from typeguard.importhook import install_import_hook install_import_hook('psml') from psml import * right10 = modifier( lambda s: s + vector( 0, 0, 10 ) ** s ) m = \ right10 ** sphere( 6 ) m.write()
17.357143
59
0.683128
36
243
4.5
0.583333
0.098765
0.209877
0
0
0
0
0
0
0
0
0.044776
0.17284
243
14
60
17.357143
0.761194
0
0
0
0
0
0.045082
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
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
1
0
0
0
0
2
969a0fa5f1e08f5bb8c64caf6fe278488b93814e
529
py
Python
backend/bin/main/combiners/packet_combiner.py
thezakpak/Traffic-Analyzer
4a85013659257db87d6b03add1d7489744d9842b
[ "MIT" ]
1
2019-10-03T01:49:59.000Z
2019-10-03T01:49:59.000Z
backend/bin/main/combiners/packet_combiner.py
thezakpak/Traffic-Analyzer
4a85013659257db87d6b03add1d7489744d9842b
[ "MIT" ]
null
null
null
backend/bin/main/combiners/packet_combiner.py
thezakpak/Traffic-Analyzer
4a85013659257db87d6b03add1d7489744d9842b
[ "MIT" ]
null
null
null
from typing import Dict def get_dst_src(packet) -> Dict[str, str]: ip_enumerate_character = "," packet["ip.dst"] = packet["ip.dst"].split(ip_enumerate_character)[0] packet["ip.src"] = packet["ip.src"].split(ip_enumerate_character)[0] packet["ipv6.dst"] = packet["ipv6.dst"].split(ip_enumerate_character...
35.266667
76
0.642722
74
529
4.432432
0.22973
0.146341
0.304878
0.304878
0.432927
0.432927
0.335366
0
0
0
0
0.022371
0.155009
529
14
77
37.785714
0.711409
0
0
0
0
0
0.172023
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2