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
e468b2b5e8f04b80c414c4137b991f429ffae653
2,508
py
Python
kedro/extras/logging/color_logger.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
2,047
2022-01-10T15:22:12.000Z
2022-03-31T13:38:56.000Z
kedro/extras/logging/color_logger.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
170
2022-01-10T12:44:31.000Z
2022-03-31T17:01:24.000Z
kedro/extras/logging/color_logger.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
112
2022-01-10T19:15:24.000Z
2022-03-30T11:20:52.000Z
"""A logging handler class which produces coloured logs.""" import logging import click class ColorHandler(logging.StreamHandler): """A color log handler. You can use this handler by incorporating the example below into your logging configuration: ``conf/project/logging.yml``: :: for...
26.125
74
0.548644
261
2,508
5.226054
0.360153
0.043988
0.057185
0.032991
0.094575
0.059384
0
0
0
0
0
0
0.342903
2,508
95
75
26.4
0.82767
0.447767
0
0
0
0
0.093777
0
0
0
0
0
0
1
0.103448
false
0
0.068966
0
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e46b6c69ae3a4c3f1fee528d4d729291bff4cf8d
1,468
py
Python
qt_figure.py
liwenlongonly/LogAnalyzer
4981c0673cf0d1a52ad76e473ffc1c30bb6bf22b
[ "Apache-2.0" ]
null
null
null
qt_figure.py
liwenlongonly/LogAnalyzer
4981c0673cf0d1a52ad76e473ffc1c30bb6bf22b
[ "Apache-2.0" ]
null
null
null
qt_figure.py
liwenlongonly/LogAnalyzer
4981c0673cf0d1a52ad76e473ffc1c30bb6bf22b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from PyQt5 import QtCore import numpy as np from matplotlib.figure import Figure import time import matplotlib matplotlib.use("Qt5Agg") # 声明使用QT5 from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas class QtFigure(FigureCanvas): def __init__(self, width=5, he...
32.622222
83
0.636921
201
1,468
4.537313
0.462687
0.052632
0.078947
0.035088
0.149123
0.111842
0
0
0
0
0
0.038529
0.222071
1,468
44
84
33.363636
0.76007
0.11921
0
0.064516
0
0
0.015576
0
0
0
0
0
0
1
0.129032
false
0
0.193548
0.032258
0.387097
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e46c1072625294f177cc250fe85584da3ad9a985
124,267
py
Python
python/target_selection/cartons/bhm_spiders_agn.py
sdss/target_selection
7196bf1491c4e9c18140301c7001e503f391a8e1
[ "BSD-3-Clause" ]
3
2020-07-07T01:38:59.000Z
2020-11-24T21:46:58.000Z
python/target_selection/cartons/bhm_spiders_agn.py
sdss/target_selection
7196bf1491c4e9c18140301c7001e503f391a8e1
[ "BSD-3-Clause" ]
26
2020-05-28T07:18:54.000Z
2021-11-30T18:36:10.000Z
python/target_selection/cartons/bhm_spiders_agn.py
sdss/target_selection
7196bf1491c4e9c18140301c7001e503f391a8e1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # @Author: Tom Dwelly # @Date: 2020-03-03 # @Filename: bhm_spiders_agn.py # @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause) # derived from guide.py # ### flake8: noqa # isort: skip_file import peewee from peewee import JOIN from peewee import fn...
41.325906
388
0.500036
14,932
124,267
3.887557
0.057527
0.054747
0.0205
0.009923
0.858792
0.834106
0.804028
0.782959
0.761908
0.74873
0
0.057389
0.364514
124,267
3,006
389
41.339654
0.677688
0.192255
0
0.720848
0
0
0.081791
0.015609
0
0
0
0
0
1
0.003092
false
0
0.0053
0
0.033569
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e47016cbd72e7098c0941f4e47d79ce1b7c698d1
776
py
Python
back-end/erasmail/emails/migrations/0038_auto_20210422_0059.py
SamirM-BE/ErasMail
88602a039ae731ca8566c96c7c4d2635f82a07a5
[ "Apache-2.0" ]
7
2021-02-06T21:06:23.000Z
2022-01-31T09:33:26.000Z
back-end/erasmail/emails/migrations/0038_auto_20210422_0059.py
SamirM-BE/ErasMail
88602a039ae731ca8566c96c7c4d2635f82a07a5
[ "Apache-2.0" ]
null
null
null
back-end/erasmail/emails/migrations/0038_auto_20210422_0059.py
SamirM-BE/ErasMail
88602a039ae731ca8566c96c7c4d2635f82a07a5
[ "Apache-2.0" ]
5
2021-05-07T15:35:25.000Z
2022-03-21T09:11:24.000Z
# Generated by Django 3.1.6 on 2021-04-22 00:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('emails', '0037_remove_emailstats_connected_count'), ] operations = [ migrations.AddField( model_name='emailstats', n...
28.740741
117
0.619845
82
776
5.743902
0.585366
0.038217
0.080679
0.097665
0.305732
0.305732
0.305732
0.305732
0.305732
0.305732
0
0.037567
0.279639
776
26
118
29.846154
0.805009
0.05799
0
0.25
1
0
0.256516
0.052126
0
0
0
0
0
1
0
false
0
0.05
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e4705f3acb58336e0e7ad1a046d3910433815d04
1,488
py
Python
worldmap/src/worldmap/model/dtm.py
expertanalytics/fagkveld
96e16b9610e8b60d36425e7bc5435d266de1f8bf
[ "BSD-2-Clause" ]
null
null
null
worldmap/src/worldmap/model/dtm.py
expertanalytics/fagkveld
96e16b9610e8b60d36425e7bc5435d266de1f8bf
[ "BSD-2-Clause" ]
null
null
null
worldmap/src/worldmap/model/dtm.py
expertanalytics/fagkveld
96e16b9610e8b60d36425e7bc5435d266de1f8bf
[ "BSD-2-Clause" ]
null
null
null
""" Data terrain model (DTM). Examples:: >>> from worldmap import DTM >>> dtm = DTM() >>> print(dtm["NOR"]) Location('Norway') """ from typing import Dict, List, Tuple, Set, Optional from bokeh.models import Model from bokeh.models import ColumnDataSource, Patches, LabelSet import logging import num...
25.220339
74
0.638441
169
1,488
5.455621
0.39645
0.070499
0.073753
0.045553
0.101952
0.101952
0.101952
0.101952
0.101952
0
0
0
0.266801
1,488
58
75
25.655172
0.845096
0.174059
0
0.066667
0
0
0.042869
0
0
0
0
0
0
1
0.1
false
0
0.266667
0.033333
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4710ca29b9a5a6a2747143e02042c64942aa376
1,865
py
Python
src/blockchain/crypto_tools/__init__.py
ParisNeo/blockchain
8bc2768a3e89088e202ea89e5f301576f6f9d95c
[ "MIT" ]
null
null
null
src/blockchain/crypto_tools/__init__.py
ParisNeo/blockchain
8bc2768a3e89088e202ea89e5f301576f6f9d95c
[ "MIT" ]
null
null
null
src/blockchain/crypto_tools/__init__.py
ParisNeo/blockchain
8bc2768a3e89088e202ea89e5f301576f6f9d95c
[ "MIT" ]
null
null
null
""" """ from Crypto.PublicKey import RSA from Crypto.Hash import SHA256 from Crypto.Signature import PKCS1_v1_5 from base58 import b58encode, b58decode # ================= cryptography helpers ====================================== def hash(data): """Hash some data """ # Hash the stuff we need to hash ...
26.267606
92
0.642895
229
1,865
5.157205
0.292576
0.076207
0.020322
0.032176
0.201524
0.165961
0.108383
0.071126
0.071126
0
0
0.029696
0.223592
1,865
70
93
26.642857
0.785912
0.368901
0
0.2
0
0
0.005525
0
0
0
0
0
0
1
0.266667
false
0
0.2
0
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
1
0
0
0
0
1
0
0
2
e472ad25bd9133e0e1fe623219e0826f24f2f7ef
365
py
Python
Mandelbrot fractal/visualize.py
TTimerkhanov/parallel_computing
75c79a4e50ac2f5f9fab90cd79560cd8e848228e
[ "MIT" ]
8
2018-03-21T12:26:44.000Z
2019-10-05T08:46:20.000Z
Mandelbrot fractal/visualize.py
TTimerkhanov/parallel_computing
75c79a4e50ac2f5f9fab90cd79560cd8e848228e
[ "MIT" ]
null
null
null
Mandelbrot fractal/visualize.py
TTimerkhanov/parallel_computing
75c79a4e50ac2f5f9fab90cd79560cd8e848228e
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def mandelbrot(threshold, density): atlas = np.empty((density, density)) with open('set', 'r') as f: for line in f.readlines(): i, j, val = line.split(",") atlas[int(i), int(j)] = val plt.imshow(atlas.T, interpolation="ne...
22.8125
48
0.60274
51
365
4.313725
0.666667
0.036364
0
0
0
0
0
0
0
0
0
0.025455
0.246575
365
16
49
22.8125
0.774545
0
0
0
0
0
0.032787
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e472f3485c0e5680d2198a1ae932c5d7712b5057
19,303
py
Python
tools/unit_tests/test_config_transforms.py
dice-project/DICE-deployment-service
e209c6a061a78f170e81cfc03d2959af0283ed15
[ "Apache-2.0" ]
2
2018-04-03T20:45:26.000Z
2022-02-07T19:53:42.000Z
tools/unit_tests/test_config_transforms.py
dice-project/DICE-deployment-service
e209c6a061a78f170e81cfc03d2959af0283ed15
[ "Apache-2.0" ]
3
2016-11-15T10:41:43.000Z
2020-03-16T07:49:03.000Z
tools/unit_tests/test_config_transforms.py
dice-project/DICE-deployment-service
e209c6a061a78f170e81cfc03d2959af0283ed15
[ "Apache-2.0" ]
2
2018-07-04T11:37:12.000Z
2022-02-07T19:53:43.000Z
import unittest import copy import os import tempfile from config_tool.utils import * class TestConfigurationTransformation(unittest.TestCase): @classmethod def setUpClass(cls): base_path = os.path.dirname(os.path.realpath(__file__)) file_path = os.path.join(base_path, 'files') def f...
38.528942
80
0.600425
2,018
19,303
5.577304
0.11893
0.046202
0.043003
0.023456
0.751044
0.733363
0.703687
0.64016
0.619014
0.568014
0
0.018903
0.301145
19,303
500
81
38.606
0.815419
0.193649
0
0.540984
0
0
0.230759
0.114677
0
0
0
0
0.15082
1
0.059016
false
0
0.032787
0.003279
0.098361
0.216393
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
e47311462a03c6a7eb9b40addcc16befdf99f631
2,133
py
Python
code/venv/lib/python3.8/site-packages/datadog_api_client/v2/model/permission_attributes.py
Valisback/hiring-engineers
7196915dd5a429ae27c21fa43d527f0332e662ed
[ "Apache-2.0" ]
null
null
null
code/venv/lib/python3.8/site-packages/datadog_api_client/v2/model/permission_attributes.py
Valisback/hiring-engineers
7196915dd5a429ae27c21fa43d527f0332e662ed
[ "Apache-2.0" ]
null
null
null
code/venv/lib/python3.8/site-packages/datadog_api_client/v2/model/permission_attributes.py
Valisback/hiring-engineers
7196915dd5a429ae27c21fa43d527f0332e662ed
[ "Apache-2.0" ]
null
null
null
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from datadog_api_client.v2.model_utils import ( ModelNormal, cached_property, ...
30.042254
108
0.61369
225
2,133
5.635556
0.453333
0.033123
0.047319
0.031546
0.102524
0.102524
0.061514
0.061514
0
0
0
0.004516
0.273324
2,133
70
109
30.471429
0.813548
0.426629
0
0.055556
0
0
0.176944
0
0
0
0
0
0
1
0.083333
false
0
0.027778
0.027778
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4751dd89498b1da7109ee5f07994f5fbd04447a
95
py
Python
vulture/whitelists/logging_whitelist.py
kianmeng/vulture
b8cbc44dac89b2a96f6da7033424f52525d6f574
[ "MIT" ]
2,081
2017-03-06T14:45:21.000Z
2022-03-31T13:29:34.000Z
vulture/whitelists/logging_whitelist.py
kianmeng/vulture
b8cbc44dac89b2a96f6da7033424f52525d6f574
[ "MIT" ]
248
2017-03-06T12:13:37.000Z
2022-03-15T11:21:27.000Z
vulture/whitelists/logging_whitelist.py
kianmeng/vulture
b8cbc44dac89b2a96f6da7033424f52525d6f574
[ "MIT" ]
111
2017-03-06T20:48:04.000Z
2022-03-17T09:49:32.000Z
import logging logging.Filter.filter logging.getLogger().propagate logging.StreamHandler.emit
15.833333
29
0.852632
11
95
7.363636
0.636364
0
0
0
0
0
0
0
0
0
0
0
0.063158
95
5
30
19
0.910112
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
e479315b2fec6b1b30374526a8f3ec4a57556364
536
py
Python
tests/test_set_key.py
GustavoKatel/pushbullet-cli
e5102772752a97db539594b0d50b5effb36a22e2
[ "MIT" ]
176
2017-01-30T16:21:48.000Z
2022-02-10T05:32:57.000Z
tests/test_set_key.py
GustavoKatel/pushbullet-cli
e5102772752a97db539594b0d50b5effb36a22e2
[ "MIT" ]
49
2017-01-21T20:27:03.000Z
2022-01-16T02:57:51.000Z
tests/test_set_key.py
GustavoKatel/pushbullet-cli
e5102772752a97db539594b0d50b5effb36a22e2
[ "MIT" ]
21
2017-01-26T06:08:54.000Z
2022-01-04T19:53:25.000Z
import platform import pytest @pytest.mark.skipif( platform.system() == "Windows", reason="cannot test this on windows" ) def test_set_key(set_key, pb_api, mocker): import keyring import getpass import six prev_token = six.text_type(keyring.get_password("pushbullet", "cli")) try: moc...
25.52381
73
0.673507
67
536
5.208955
0.552239
0.051576
0.180516
0.160458
0.17765
0
0
0
0
0
0
0
0.197761
536
20
74
26.8
0.811628
0
0
0
0
0
0.160448
0
0
0
0
0
0.0625
1
0.0625
false
0.3125
0.3125
0
0.375
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
1
1
0
0
0
0
4
e4797fdc0550e8c83ce7e94b28483dfdbf77d5d3
344
py
Python
02. Programacion estructurada/05. datos tupla/e1.py
Cidryl/python-desde-cero
fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276
[ "MIT" ]
null
null
null
02. Programacion estructurada/05. datos tupla/e1.py
Cidryl/python-desde-cero
fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276
[ "MIT" ]
null
null
null
02. Programacion estructurada/05. datos tupla/e1.py
Cidryl/python-desde-cero
fade09d13ab0ed0cbb4f45a49a4ad9e3980f3276
[ "MIT" ]
null
null
null
def cargar_fecha(): dd=int(input("Ingrese numero de dia:")) mm=int(input("Ingrese numero de mes:")) aa=int(input("Ingrese numero de año:")) tupla = (dd,mm,aa) return tupla def imprimir_fecha(fecha): print(fecha[0],fecha[1],fecha[2],sep="/") # bloque principal fecha=cargar_fecha(...
22.933333
46
0.639535
50
344
4.32
0.48
0.111111
0.208333
0.291667
0.319444
0
0
0
0
0
0
0.01087
0.197674
344
15
47
22.933333
0.771739
0.046512
0
0
0
0
0.214058
0
0
0
0
0
0
1
0.2
false
0
0
0
0.3
0.1
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
e47c17dddcd00889d223b3d8fce4a9d9c3d285a3
356
py
Python
doingmathwithpython/ch03.py
andyliumathematics/mlnotes
7b7a1c37d7660bdf9144c59693719033080d654b
[ "Apache-2.0" ]
null
null
null
doingmathwithpython/ch03.py
andyliumathematics/mlnotes
7b7a1c37d7660bdf9144c59693719033080d654b
[ "Apache-2.0" ]
null
null
null
doingmathwithpython/ch03.py
andyliumathematics/mlnotes
7b7a1c37d7660bdf9144c59693719033080d654b
[ "Apache-2.0" ]
null
null
null
# %% l = [38,32,49,15,806,806] sum(l) # %% len(l) # %% sum(l)//len(l) # %% l.sort() # %% l # %% # %% l.most_common(1) # %% ''' 求众数:出现频率最高的数据 ''' from collections import Counter l = ['38','32','49','15','806','806'] c = Counter(l) print(c.most_common()[0][0]) print(c.most_common(1)) print(c.most_common(2)) # %% c.m...
11.483871
37
0.530899
60
356
3.066667
0.383333
0.271739
0.23913
0.26087
0.163043
0.163043
0.163043
0
0
0
0
0.119205
0.151685
356
30
38
11.866667
0.490066
0.089888
0
0
0
0
0.04878
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.266667
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
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
4
e4813380bf2daa72d111c3321e1a0890661d1b92
5,475
py
Python
CodedCaching/Network.py
qizhu8/CodedCachingSim
84e8f1e58e1c431ee4916525487d4b28f92e629b
[ "MIT" ]
null
null
null
CodedCaching/Network.py
qizhu8/CodedCachingSim
84e8f1e58e1c431ee4916525487d4b28f92e629b
[ "MIT" ]
null
null
null
CodedCaching/Network.py
qizhu8/CodedCachingSim
84e8f1e58e1c431ee4916525487d4b28f92e629b
[ "MIT" ]
null
null
null
""" Network class is in charge of: 1. Storing M - User Cache Size, N - Number of Files, K - Number of Users 2. Storing User instances, Server instance, and attacker instance """ import numpy as np from scipy import special import itertools from Server import Server from User import User from tabulate import tabulate ...
36.993243
140
0.592146
687
5,475
4.672489
0.213974
0.023364
0.027414
0.004984
0.14486
0.134579
0.120249
0.047352
0.034891
0.034891
0
0.01125
0.285662
5,475
147
141
37.244898
0.809512
0.156164
0
0.090909
0
0
0.03437
0.010442
0
0
0
0
0
1
0.070707
false
0
0.060606
0
0.181818
0.171717
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4832a86e7db8f21257aa59834d215a8144ccb1f
23
py
Python
protonets/data/__init__.py
sripathisridhar/prototypical-networks
02a1379dceea896e23ecf21384d4a6ee2393f38c
[ "MIT" ]
889
2017-11-12T22:04:25.000Z
2022-03-31T09:42:13.000Z
protonets/data/__init__.py
Harzva/prototypical-networks
c9bb4d258267c11cb6e23f0a19242d24ca98ad8a
[ "MIT" ]
24
2017-12-06T19:28:23.000Z
2021-11-27T11:35:53.000Z
protonets/data/__init__.py
Harzva/prototypical-networks
c9bb4d258267c11cb6e23f0a19242d24ca98ad8a
[ "MIT" ]
240
2017-11-12T22:04:28.000Z
2022-03-26T09:25:42.000Z
from . import omniglot
11.5
22
0.782609
3
23
6
1
0
0
0
0
0
0
0
0
0
0
0
0.173913
23
1
23
23
0.947368
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
e483e0a6252d9a8ff4f77f42bb3708e55acf3498
330
py
Python
flask/part3_templates/ex3-app/students2.py
macloo/python-beginners
1124922cd57d3f647eacafa0b82948587514d4bd
[ "MIT" ]
42
2018-03-25T22:41:57.000Z
2022-01-08T21:23:02.000Z
flask/part3_templates/ex3-app/students2.py
pavanpatil45/python-beginners
1124922cd57d3f647eacafa0b82948587514d4bd
[ "MIT" ]
null
null
null
flask/part3_templates/ex3-app/students2.py
pavanpatil45/python-beginners
1124922cd57d3f647eacafa0b82948587514d4bd
[ "MIT" ]
17
2018-03-20T00:56:57.000Z
2022-01-12T06:36:18.000Z
# two templates are used in this app from flask import Flask, render_template app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/student/<idnum>') def student(idnum): return render_template('student.html', id=idnum) if __name__ == '__main__': app.run(de...
20.625
52
0.70303
46
330
4.717391
0.565217
0.193548
0.184332
0
0
0
0
0
0
0
0
0
0.148485
330
15
53
22
0.772242
0.10303
0
0
0
0
0.16041
0
0
0
0
0
0
1
0.2
false
0
0.1
0.2
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
0
0
0
0
1
0
0
0
2
e4884423f1f3c28f1f01d03c9e676127547b57c0
250
py
Python
docs/autodoc_example.py
aio-libs/sphinxcontrib-asyncio
dbfa79e29980e73ad2dd9dec59f1238b1a8a7cd7
[ "Apache-2.0" ]
19
2016-02-21T13:27:43.000Z
2020-02-19T17:22:38.000Z
docs/autodoc_example.py
aio-libs/sphinxcontrib-asyncio
dbfa79e29980e73ad2dd9dec59f1238b1a8a7cd7
[ "Apache-2.0" ]
9
2016-04-15T08:43:39.000Z
2022-01-06T10:43:08.000Z
docs/autodoc_example.py
aio-libs/sphinxcontrib-asyncio
dbfa79e29980e73ad2dd9dec59f1238b1a8a7cd7
[ "Apache-2.0" ]
6
2016-04-11T07:32:41.000Z
2019-09-28T10:59:51.000Z
import asyncio class MyClass: def my_func(self): """ Normal function """ @asyncio.coroutine def my_coro(self): """ This is my coroutine """ @asyncio.coroutine def coro(param): """ Module level async function """
14.705882
39
0.608
29
250
5.172414
0.62069
0.066667
0.253333
0
0
0
0
0
0
0
0
0
0.264
250
16
40
15.625
0.815217
0.264
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.428571
false
0
0.142857
0
0.714286
0
1
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
1
0
0
4
e488e12d7b940dac3d9db3e9a5b2cb31258d0310
25,266
py
Python
test/recipe/test_edit_recipe.py
fredsonchaves07/foodfy
5bff04434749f369f982090b00590cca31fce186
[ "MIT" ]
null
null
null
test/recipe/test_edit_recipe.py
fredsonchaves07/foodfy
5bff04434749f369f982090b00590cca31fce186
[ "MIT" ]
141
2021-03-03T01:38:10.000Z
2022-01-16T15:42:02.000Z
test/recipe/test_edit_recipe.py
fredsonchaves07/foodfy
5bff04434749f369f982090b00590cca31fce186
[ "MIT" ]
null
null
null
import json from io import BytesIO from app.ext.api.exceptions import ( ChefNotFound, InvalidToken, MaximumImageCapacityError, OperationNotAllowed, RecipeWithoutIngredient, RecipeWithoutPreparationMode, ) from app.ext.api.services import token_services def test_edit_recipe(client, admin_user)...
28.48478
87
0.566097
2,667
25,266
5.192351
0.044619
0.038995
0.049105
0.058925
0.947429
0.936958
0.93537
0.926343
0.919555
0.909879
0
0.013804
0.283187
25,266
886
88
28.51693
0.750814
0
0
0.801913
0
0
0.280139
0.022322
0
0
0
0
0.04918
1
0.015027
false
0.019126
0.005464
0
0.020492
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e4892ccb409c7b541cbd948a9e9898c388a282c5
521
py
Python
survey/migrations/0018_auto_20161128_0936.py
watchdogpolska/ankieta-rodzic-po-ludzku-nfz
68b1d1ccac969ca51416761d1168678effb1e6c6
[ "MIT" ]
null
null
null
survey/migrations/0018_auto_20161128_0936.py
watchdogpolska/ankieta-rodzic-po-ludzku-nfz
68b1d1ccac969ca51416761d1168678effb1e6c6
[ "MIT" ]
null
null
null
survey/migrations/0018_auto_20161128_0936.py
watchdogpolska/ankieta-rodzic-po-ludzku-nfz
68b1d1ccac969ca51416761d1168678effb1e6c6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-28 09:36 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('survey', '0017_auto_20161128_0242'), ] operations = [ migrations.AlterField...
24.809524
122
0.610365
59
521
5.237288
0.779661
0
0
0
0
0
0
0
0
0
0
0.094388
0.247601
521
20
123
26.05
0.693878
0.130518
0
0
1
0
0.168889
0.051111
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e48a824fae829e3008efd9a9fbcb0f03d3adc45f
90
py
Python
tests/__init__.py
slinksoft/PathExactDelayPrototype
633576cfe031e8ee884daaa453a3e5d206eaeaa9
[ "MIT" ]
null
null
null
tests/__init__.py
slinksoft/PathExactDelayPrototype
633576cfe031e8ee884daaa453a3e5d206eaeaa9
[ "MIT" ]
null
null
null
tests/__init__.py
slinksoft/PathExactDelayPrototype
633576cfe031e8ee884daaa453a3e5d206eaeaa9
[ "MIT" ]
null
null
null
import os import sys from pathlib import Path sys.path.insert(0, 'exactdelaypathfinder')
15
42
0.8
13
90
5.538462
0.692308
0
0
0
0
0
0
0
0
0
0
0.012658
0.122222
90
5
43
18
0.898734
0
0
0
0
0
0.222222
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e48ba9fc67c09776260edc71cd67600e98eb63a9
1,885
py
Python
2017/day07/code.py
Fadi88/AoC
8b24f2f2cc7b4e1c63758e81e63d8670a261cc7c
[ "Unlicense" ]
12
2019-12-15T21:53:19.000Z
2021-12-24T17:03:41.000Z
2017/day07/code.py
Fadi88/adventofcode19
dd2456bdd163beb02dbfe9dcea2b021061c7671e
[ "Unlicense" ]
1
2021-12-15T20:40:51.000Z
2021-12-15T22:19:48.000Z
2017/day07/code.py
Fadi88/adventofcode19
dd2456bdd163beb02dbfe9dcea2b021061c7671e
[ "Unlicense" ]
5
2020-12-11T06:00:24.000Z
2021-12-20T21:37:46.000Z
import time from collections import defaultdict def profiler(method): def wrapper_method(*arg, **kw): t = time.time() method(*arg, **kw) print('Method ' + method.__name__ + ' took : ' + "{:2.5f}".format(time.time()-t) + ' sec') return wrapper_method @profiler def part1(...
22.176471
83
0.490716
241
1,885
3.767635
0.26556
0.052863
0.035242
0.061674
0.295154
0.295154
0.295154
0.295154
0.295154
0.295154
0
0.01642
0.353846
1,885
84
84
22.440476
0.729064
0
0
0.5
0
0
0.033952
0
0
0
0
0
0
1
0.075758
false
0
0.030303
0
0.151515
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e48e53ba04ff99bdd6227e182235f811ae1dc4ee
403
py
Python
src/microbit/spi-tof-master.py
romilly/multi-VL53L0X
80cf0d82d93ceae9c54acb967c24a1bf8deb5e3a
[ "MIT" ]
null
null
null
src/microbit/spi-tof-master.py
romilly/multi-VL53L0X
80cf0d82d93ceae9c54acb967c24a1bf8deb5e3a
[ "MIT" ]
null
null
null
src/microbit/spi-tof-master.py
romilly/multi-VL53L0X
80cf0d82d93ceae9c54acb967c24a1bf8deb5e3a
[ "MIT" ]
null
null
null
from microbit import * import struct from time import sleep SENSORS = 2 def spi_read(sensor): pin16.write_digital(0) # Chip select ibuffer = struct.pack('<B', sensor) spi.write(ibuffer) result = spi.read(1) pin16.write_digital(1) # Chip select off return result spi.init(baudrate=100000) whi...
21.210526
45
0.652605
62
403
4.177419
0.564516
0.081081
0.131274
0
0
0
0
0
0
0
0
0.058065
0.230769
403
19
46
21.210526
0.777419
0.066998
0
0
0
0
0.005348
0
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.3125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e48f98c85bda6baa0cc86d71b689b55e8122a390
16,653
py
Python
hasher-matcher-actioner/hmalib/models.py
isabella232/ThreatExchange
0d07a800bbf25d8541f40b828e2dfd377395af9b
[ "BSD-3-Clause" ]
null
null
null
hasher-matcher-actioner/hmalib/models.py
isabella232/ThreatExchange
0d07a800bbf25d8541f40b828e2dfd377395af9b
[ "BSD-3-Clause" ]
1
2021-04-19T10:20:43.000Z
2021-04-19T10:20:43.000Z
hasher-matcher-actioner/hmalib/models.py
isabella232/ThreatExchange
0d07a800bbf25d8541f40b828e2dfd377395af9b
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import datetime import typing as t import json from dataclasses import dataclass, field from mypy_boto3_dynamodb.service_resource import Table from boto3.dynamodb.conditions import Attr, Key """ Data transfer object classes to be used with dynamod...
32.273256
110
0.623311
1,984
16,653
5.020665
0.147177
0.030117
0.015661
0.008031
0.52314
0.477562
0.399157
0.384098
0.327377
0.300371
0
0.000912
0.275986
16,653
515
111
32.335922
0.825247
0.1461
0
0.527624
0
0
0.085471
0.018143
0
0
0
0.003884
0
1
0.107735
false
0
0.016575
0.049724
0.328729
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e48fad25c05c483e3b144a00ff76a128d96f4a18
89
py
Python
colossalai/utils/commons/__init__.py
mrriteshranjan/ColossalAI
0d057a1bae67b915a385be7edab7da83413cb645
[ "Apache-2.0" ]
null
null
null
colossalai/utils/commons/__init__.py
mrriteshranjan/ColossalAI
0d057a1bae67b915a385be7edab7da83413cb645
[ "Apache-2.0" ]
null
null
null
colossalai/utils/commons/__init__.py
mrriteshranjan/ColossalAI
0d057a1bae67b915a385be7edab7da83413cb645
[ "Apache-2.0" ]
null
null
null
from .bucket_tensor_copy import BucketizedTensorCopy __all__ = ['BucketizedTensorCopy']
22.25
52
0.842697
8
89
8.625
0.875
0
0
0
0
0
0
0
0
0
0
0
0.089888
89
3
53
29.666667
0.851852
0
0
0
0
0
0.224719
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
e49334330d41dc2dca73dcd98740a04934ce3d79
83
py
Python
DRF-React/appy/apps.py
Preet538-neitzen/LOC-Hackathon
e7bad458ef0069becdba42576f5fe1bfd736678b
[ "MIT" ]
null
null
null
DRF-React/appy/apps.py
Preet538-neitzen/LOC-Hackathon
e7bad458ef0069becdba42576f5fe1bfd736678b
[ "MIT" ]
8
2021-03-19T13:44:46.000Z
2022-03-12T00:55:03.000Z
DRF-React/appy/apps.py
Preet538-neitzen/LOC-Hackathon
e7bad458ef0069becdba42576f5fe1bfd736678b
[ "MIT" ]
1
2021-02-13T00:16:36.000Z
2021-02-13T00:16:36.000Z
from django.apps import AppConfig class AppyConfig(AppConfig): name = 'appy'
13.833333
33
0.73494
10
83
6.1
0.9
0
0
0
0
0
0
0
0
0
0
0
0.180723
83
5
34
16.6
0.897059
0
0
0
0
0
0.048193
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
e494747ad6589e1234241f26ac62dacfe6cecd8c
998
py
Python
test/test_truss.py
deeepeshthakur/ddtruss
86aa945d577c6efe752099eee579386762942289
[ "MIT" ]
1
2020-01-27T12:03:47.000Z
2020-01-27T12:03:47.000Z
test/test_truss.py
deeepeshthakur/ddtruss
86aa945d577c6efe752099eee579386762942289
[ "MIT" ]
null
null
null
test/test_truss.py
deeepeshthakur/ddtruss
86aa945d577c6efe752099eee579386762942289
[ "MIT" ]
null
null
null
import numpy as np import pytest from ddtruss import Truss, DataDrivenSolver points = np.array([[0, 0], [1, 0], [0.5, 0.5], [2, 1]]) lines = np.array([[0, 2], [1, 2], [1, 3], [2, 3]], dtype=int) truss = Truss(points, lines) E = 1.962e11 A = [2e-4, 2e-4, 1e-4, 1e-4] U_dict = {0: [0, 0], 1: [0, 0]} F_dict = {3: [0, -...
24.95
77
0.621242
185
998
3.194595
0.318919
0.027073
0.060914
0.030457
0.155668
0.138748
0.138748
0.138748
0.138748
0.138748
0
0.129743
0.181363
998
39
78
25.589744
0.593635
0
0
0
0
0
0.006012
0
0
0
0
0
0.071429
1
0.071429
false
0
0.107143
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e494dbf6ede35cd65a3c40c381a319f33cf3e78d
2,563
py
Python
app/models.py
MilanMathew/machine_test_focaloid
fa179e655c531825167e97aed4e2d6affea9c736
[ "MIT" ]
null
null
null
app/models.py
MilanMathew/machine_test_focaloid
fa179e655c531825167e97aed4e2d6affea9c736
[ "MIT" ]
null
null
null
app/models.py
MilanMathew/machine_test_focaloid
fa179e655c531825167e97aed4e2d6affea9c736
[ "MIT" ]
null
null
null
from datetime import datetime from app import db class City(db.Model): __tablename__ = 'Cities' __table_args__ = {'sqlite_autoincrement': True} id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), index=True) class Venue(db.Model): __tablename__ = 'Venues' __table_arg...
37.144928
71
0.684354
356
2,563
4.685393
0.182584
0.143885
0.179856
0.214029
0.70024
0.70024
0.63789
0.585132
0.38729
0.26259
0
0.011601
0.159188
2,563
69
72
37.144928
0.762413
0.049161
0
0.320755
0
0
0.111294
0
0
0
0
0
0
1
0.037736
false
0
0.037736
0.037736
1
0
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
1
0
0
3
e49516ca8ad700f85017d9325736d77d5ccd8a3d
2,326
py
Python
PTO-yelp/Modules/attention_classifier.py
LegendTianjin/Point-Then-Operate
a6b0818343bc34c468738ab91ecea89dd03a9535
[ "Apache-2.0" ]
50
2019-06-06T05:30:32.000Z
2021-11-18T07:24:36.000Z
PTO-yelp/Modules/attention_classifier.py
lancopku/Point-Then-Operate
1c04ec326b52fc65f97f5610a6f16f6e938d583e
[ "Apache-2.0" ]
2
2019-08-30T09:49:26.000Z
2020-01-17T04:20:53.000Z
PTO-yelp/Modules/attention_classifier.py
ChenWu98/Point-Then-Operate
a6b0818343bc34c468738ab91ecea89dd03a9535
[ "Apache-2.0" ]
7
2019-06-17T06:20:47.000Z
2020-10-26T03:19:44.000Z
import os import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from utils.utils import gpu_wrapper from Modules.subModules.attention import AttentionUnit from torch.nn.utils.rnn import pack_padded_sequence as pack from torch.nn.utils.rnn import pad_pa...
41.535714
136
0.564488
328
2,326
3.759146
0.256098
0.045418
0.045418
0.040552
0.148418
0.136253
0.060016
0.029197
0.029197
0.029197
0
0.014715
0.328031
2,326
55
137
42.290909
0.774152
0.141445
0
0
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0.238095
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4954716a9c58078b2bd1d9c30cda00cbdaf306f
122
py
Python
training/continueLearning.py
dwright37/generative-concatenative-image-captioner
2bb257d4791e362e42a30bf0e4ca32e84f80d942
[ "MIT" ]
null
null
null
training/continueLearning.py
dwright37/generative-concatenative-image-captioner
2bb257d4791e362e42a30bf0e4ca32e84f80d942
[ "MIT" ]
null
null
null
training/continueLearning.py
dwright37/generative-concatenative-image-captioner
2bb257d4791e362e42a30bf0e4ca32e84f80d942
[ "MIT" ]
null
null
null
def continueLearning(losses): improving = losses[0] < losses[1] or losses[1] < losses[2] return improving
30.5
66
0.647541
15
122
5.266667
0.6
0.177215
0
0
0
0
0
0
0
0
0
0.043011
0.237705
122
3
67
40.666667
0.806452
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
e4954d56f09841ccf54e7784967df8b418345b0e
569
py
Python
minion/parser.py
timofurrer/minion-ci
411d0ea6638fb37d7e170cc8c8c5815304cc9f5c
[ "MIT" ]
49
2016-03-07T06:42:40.000Z
2021-03-06T02:43:02.000Z
minion/parser.py
timofurrer/minion-ci
411d0ea6638fb37d7e170cc8c8c5815304cc9f5c
[ "MIT" ]
16
2016-03-08T07:20:52.000Z
2017-04-21T18:15:12.000Z
minion/parser.py
timofurrer/minion-ci
411d0ea6638fb37d7e170cc8c8c5815304cc9f5c
[ "MIT" ]
9
2016-03-29T22:08:52.000Z
2021-06-16T16:29:30.000Z
""" `minion-ci` is a minimalist, decentralized, flexible Continuous Integration Server for hackers. This module contains the parser to parse the `minion.yml` file. :copyright: (c) by Timo Furrer :license: MIT, see LICENSE for details """ import yaml from .errors import MinionError def parse(path):...
24.73913
99
0.681898
75
569
5.146667
0.693333
0.069948
0.067358
0
0
0
0
0
0
0
0
0
0.233743
569
22
100
25.863636
0.885321
0.462214
0
0
0
0
0.162455
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4966893077ea1b5b172e99b11516e9d34d31ec5
585
py
Python
Python/problem0852.py
1050669722/LeetCode-Answers
c8f4d1ccaac09cda63b60d75144335347b06dc81
[ "MIT" ]
null
null
null
Python/problem0852.py
1050669722/LeetCode-Answers
c8f4d1ccaac09cda63b60d75144335347b06dc81
[ "MIT" ]
null
null
null
Python/problem0852.py
1050669722/LeetCode-Answers
c8f4d1ccaac09cda63b60d75144335347b06dc81
[ "MIT" ]
null
null
null
class Solution: def peakIndexInMountainArray(self, A: List[int]) -> int: if not A: return None #前向差分 for k in range(1, len(A)-1): if A[k-1]<A[k] and A[k]>A[k+1]: return k return None #最大值 return A.index(max(A)) ...
20.892857
60
0.362393
88
585
2.409091
0.352273
0.09434
0.084906
0.056604
0.141509
0.117925
0.075472
0.075472
0
0
0
0.044521
0.500855
585
27
61
21.666667
0.681507
0.018803
0
0.210526
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e49a3917364c39b81a8dd470087dc69990edf5b7
1,431
py
Python
finace/utils/rong_city.py
pythonyhd/finace
614d98ad92e1bbaa6cf7dc1d6dfaba4f24431688
[ "Apache-2.0" ]
1
2020-08-18T01:55:14.000Z
2020-08-18T01:55:14.000Z
finace/utils/rong_city.py
pythonyhd/finace
614d98ad92e1bbaa6cf7dc1d6dfaba4f24431688
[ "Apache-2.0" ]
null
null
null
finace/utils/rong_city.py
pythonyhd/finace
614d98ad92e1bbaa6cf7dc1d6dfaba4f24431688
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from pymongo import MongoClient from finace import settings class SpiderCity(object): """获取所有城市列表""" def __init__(self, ip=settings.MONGODB_HOST, port=settings.MONGODB_PORT, db_name=settings.MONGO_DATA_BASE, user=settings.MONGO_USER, password=settings.MONGO_PWD): ...
26.018182
110
0.583508
163
1,431
4.92638
0.386503
0.029888
0.05604
0.070984
0.097136
0.097136
0
0
0
0
0
0.000993
0.296296
1,431
55
111
26.018182
0.796425
0.131377
0
0
0
0
0.013193
0
0
0
0
0
0
1
0.166667
false
0.066667
0.066667
0
0.4
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e49b044e4f3bdfef09e6426d0ff3c5f755aa63ae
1,464
py
Python
bufflog/bufflog.py
bufferapp/python-bufflog
12d218dfb917419789c720fb1851a35708909810
[ "MIT" ]
null
null
null
bufflog/bufflog.py
bufferapp/python-bufflog
12d218dfb917419789c720fb1851a35708909810
[ "MIT" ]
null
null
null
bufflog/bufflog.py
bufferapp/python-bufflog
12d218dfb917419789c720fb1851a35708909810
[ "MIT" ]
1
2021-02-08T12:53:43.000Z
2021-02-08T12:53:43.000Z
import structlog import logging import sys import os from structlog.processors import JSONRenderer from structlog.stdlib import filter_by_level from structlog.stdlib import add_log_level_number from .datadog import tracer_injection def rename_message_key(_, __, event_dict): event_dict["message"] = event_dict["e...
24.4
57
0.705601
165
1,464
5.945455
0.363636
0.091743
0.042813
0.050968
0
0
0
0
0
0
0
0.00258
0.205601
1,464
59
58
24.813559
0.840929
0
0
0.045455
0
0
0.047814
0
0
0
0
0
0
1
0.068182
false
0
0.181818
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e49cb572bd1c712b03397fca3826c3ed98801ce6
990
py
Python
templator.py
daren-thomas/template-system-example
248d2f78392be826f3223ee27e90c82feb70a17a
[ "MIT" ]
null
null
null
templator.py
daren-thomas/template-system-example
248d2f78392be826f3223ee27e90c82feb70a17a
[ "MIT" ]
null
null
null
templator.py
daren-thomas/template-system-example
248d2f78392be826f3223ee27e90c82feb70a17a
[ "MIT" ]
null
null
null
""" templator.py reads in an excel file and a template and outputs a file for each row in the excel file, by substituting the template variables with the values in the columns. This technique uses pandas to read the excel file into a DataFrame and the python format operator ``%``` to apply the values. """ import sys ...
34.137931
104
0.706061
150
990
4.486667
0.42
0.106984
0.053492
0.062407
0.166419
0.092125
0.092125
0.092125
0
0
0
0
0.19899
990
29
105
34.137931
0.848676
0.417172
0
0
0
0
0.075571
0
0
0
0
0
0
1
0.071429
false
0
0.214286
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4a25083351a643d4c8f2b90bb9ef5552f4ba55d
483
py
Python
src/stackoverflow/56339991/tests.py
mrdulin/python-codelab
3d960a14a96b3a673b7dc2277d202069b1f8e778
[ "MIT" ]
null
null
null
src/stackoverflow/56339991/tests.py
mrdulin/python-codelab
3d960a14a96b3a673b7dc2277d202069b1f8e778
[ "MIT" ]
null
null
null
src/stackoverflow/56339991/tests.py
mrdulin/python-codelab
3d960a14a96b3a673b7dc2277d202069b1f8e778
[ "MIT" ]
3
2020-02-19T08:02:04.000Z
2021-06-08T13:27:51.000Z
import unittest from test_base import TestBaseImporter from test_child import TestChildImporter if __name__ == '__main__': test_loader = unittest.TestLoader() test_classes_to_run = [TestBaseImporter, TestChildImporter] suites_list = [] for test_class in test_classes_to_run: suite = test_loader...
30.1875
63
0.766046
56
483
6.160714
0.482143
0.086957
0.075362
0.092754
0
0
0
0
0
0
0
0
0.163561
483
15
64
32.2
0.85396
0
0
0
0
0
0.016563
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
1
e4a318b6cae44face6ae5927fa38829adbecfa61
1,015
py
Python
src/mains/test_tf.py
JungleEngine/Intelligent_Frame_Skipping_Network
8178acfe06e112f5d33acbd17ad33239a6c4afc2
[ "MIT" ]
null
null
null
src/mains/test_tf.py
JungleEngine/Intelligent_Frame_Skipping_Network
8178acfe06e112f5d33acbd17ad33239a6c4afc2
[ "MIT" ]
null
null
null
src/mains/test_tf.py
JungleEngine/Intelligent_Frame_Skipping_Network
8178acfe06e112f5d33acbd17ad33239a6c4afc2
[ "MIT" ]
null
null
null
# import tensorflow as tf # print(tf.__version__) # # # with tf.name_scope('scalar_set_one') as scope: # tf_constant_one = tf.constant(10, name="ten") # tf_constant_two = tf.constant(20, name="twenty") # scalar_sum_one = tf.add(tf_constant_one, tf_constant_two, name="scalar_ten_plus_twenty") # # # # with tf...
27.432432
100
0.719212
151
1,015
4.496689
0.377483
0.17673
0.029455
0.044183
0.212077
0.070692
0
0
0
0
0
0.009174
0.140887
1,015
36
101
28.194444
0.769495
0.764532
0
0
0
0
0.118483
0.109005
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e4a3bd3abdfaed582c987ca4af954c061d659067
24,952
py
Python
src/menus/user/Menu.py
stregea/TransactionTrackr
c38b99d56816becaa47a21400fb20c615d3483ef
[ "MIT" ]
2
2021-07-02T19:49:24.000Z
2021-07-08T02:59:25.000Z
src/menus/user/Menu.py
stregea/TransactionTrackr
c38b99d56816becaa47a21400fb20c615d3483ef
[ "MIT" ]
null
null
null
src/menus/user/Menu.py
stregea/TransactionTrackr
c38b99d56816becaa47a21400fb20c615d3483ef
[ "MIT" ]
null
null
null
from objects.user.User import User from objects.interface.dbconn import DB from objects.user.Currency import get_currency_symbol from objects.threads.UploadThread import UploadThread import utils.globals as _globals from utils.print import print_message, print_error from utils.enums import Months, SettingsSelection, is...
42.726027
142
0.631412
3,134
24,952
4.835992
0.108807
0.020586
0.03299
0.008709
0.56763
0.512338
0.474927
0.442531
0.424584
0.402481
0
0.00406
0.299094
24,952
583
143
42.799314
0.862542
0.27084
0
0.431755
0
0
0.121734
0.036176
0
0
0
0.001715
0
1
0.050139
false
0
0.041783
0
0.178273
0.147632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4a69e3428e588c7d00739ddb17751edb51f6451
1,717
py
Python
website/CookieHelper.py
sousic/flask.huny.kr
53a8f5af1fa63b290a4e97278a86328758e97d43
[ "MIT" ]
null
null
null
website/CookieHelper.py
sousic/flask.huny.kr
53a8f5af1fa63b290a4e97278a86328758e97d43
[ "MIT" ]
null
null
null
website/CookieHelper.py
sousic/flask.huny.kr
53a8f5af1fa63b290a4e97278a86328758e97d43
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import base64 from functools import wraps import pyaes from flask import request from werkzeug.utils import redirect from website.domain.UserVO import UserVO class CookieHelper(object): def init_app(self, app): self.app = app self.app.cookie_helper = self def SetCook...
28.616667
90
0.594059
196
1,717
5.122449
0.367347
0.048805
0.051793
0.065737
0.241036
0.195219
0.195219
0.195219
0.093626
0
0
0.009362
0.315667
1,717
60
91
28.616667
0.845106
0.033197
0
0.23913
0
0
0.025966
0
0
0
0
0
0
1
0.152174
false
0
0.130435
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4a6e1bb797c7875ed388c77bf15d0c26b3189cb
3,652
py
Python
export_resized_ios_assets.py
Tubbebubbe/gimp-plugins
11221ded072d8d3001202f30fda266e0cccd3a36
[ "MIT" ]
4
2016-08-03T18:20:59.000Z
2020-05-24T04:38:47.000Z
export_resized_ios_assets.py
Tubbebubbe/gimp-plugins
11221ded072d8d3001202f30fda266e0cccd3a36
[ "MIT" ]
null
null
null
export_resized_ios_assets.py
Tubbebubbe/gimp-plugins
11221ded072d8d3001202f30fda266e0cccd3a36
[ "MIT" ]
2
2017-10-23T08:23:36.000Z
2020-05-24T04:38:57.000Z
#!/usr/bin/env python """ export_resized_ios_images Gimp plugin to export image to icon files usable on iOS. Author: ------- Tobias Blom, Techne Development AB <tobias.blom@techne-dev.se> Installation: ------------- Under Mac OS X, copy this file to ~/Library/Application Support/GIMP/x.x/plug-ins and make it exec...
33.504587
85
0.659639
529
3,652
4.478261
0.404537
0.020262
0.032081
0.030393
0.124947
0.124947
0.124947
0.065851
0.037991
0.037991
0
0.045833
0.211391
3,652
108
86
33.814815
0.776736
0.597207
0
0.057143
0
0.057143
0.235978
0.0171
0
0
0
0
0
1
0.085714
false
0
0.057143
0
0.171429
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4a86bcd74faf3a16d79362c4832a1d23917c50f
3,696
py
Python
SortingComparison.py
kogol99/MSiD
bbe0ee535f785476a3fe75f0654f496c185565e4
[ "MIT" ]
null
null
null
SortingComparison.py
kogol99/MSiD
bbe0ee535f785476a3fe75f0654f496c185565e4
[ "MIT" ]
10
2020-03-15T20:17:04.000Z
2020-06-05T01:58:35.000Z
SortingComparison.py
kogol99/MSiD
bbe0ee535f785476a3fe75f0654f496c185565e4
[ "MIT" ]
37
2020-03-15T17:30:40.000Z
2020-04-11T20:16:28.000Z
from timeit import default_timer as timer import random def insertion_sort(list_to_sort): for step in range(1, len(list_to_sort)): key = list_to_sort[step] j = step - 1 while j >= 0 and list_to_sort[j] > key: list_to_sort[j + 1] = list_to_sort[j] j -= 1 list...
33.297297
103
0.619048
551
3,696
3.798548
0.130672
0.143335
0.238892
0.060201
0.466794
0.327759
0.243669
0.176302
0.113235
0.113235
0
0.026257
0.27868
3,696
110
104
33.6
0.758815
0.008929
0
0.068966
0
0
0.023491
0
0
0
0
0
0
1
0.126437
false
0
0.022989
0
0.16092
0.057471
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e4a93421928eb84ea60e2492daf9f320c6c9d564
8,417
py
Python
site/office/compline.py
scottBowles/dailyoffice2019
ca750ac77316d247ca7a7a820e085f9968fbc8ff
[ "MIT" ]
19
2020-01-12T23:57:22.000Z
2022-03-30T16:35:17.000Z
site/office/compline.py
scottBowles/dailyoffice2019
ca750ac77316d247ca7a7a820e085f9968fbc8ff
[ "MIT" ]
59
2020-01-13T00:45:27.000Z
2022-02-20T04:10:05.000Z
site/office/compline.py
scottBowles/dailyoffice2019
ca750ac77316d247ca7a7a820e085f9968fbc8ff
[ "MIT" ]
7
2020-01-21T21:12:03.000Z
2021-10-24T01:15:50.000Z
import datetime from django.utils.functional import cached_property from django.utils.safestring import mark_safe from office.offices import Office, OfficeSection from psalter.utils import get_psalms class Compline(Office): name = "Compline" office = "compline" def __init__(self, *args, **kwargs): ...
43.386598
345
0.640489
1,088
8,417
4.89614
0.305147
0.046555
0.027032
0.028909
0.337526
0.327389
0.267881
0.171766
0.074338
0.047306
0
0.012604
0.255317
8,417
193
346
43.611399
0.837269
0.006653
0
0.271523
0
0.072848
0.412546
0.033042
0
0
0
0
0
1
0.092715
false
0
0.033113
0.072848
0.364238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4a98810c99783995caf35d9ff70ccf375552008
1,735
py
Python
src/tide_constituents/water_level_prediction.py
slawler/SI_2019_Coastal
4064d323bc62ce2f47a7af41b9a11ea5538ad181
[ "MIT" ]
1
2020-03-13T07:51:44.000Z
2020-03-13T07:51:44.000Z
src/tide_constituents/water_level_prediction.py
cheginit/SI_2019_Coastal
4064d323bc62ce2f47a7af41b9a11ea5538ad181
[ "MIT" ]
null
null
null
src/tide_constituents/water_level_prediction.py
cheginit/SI_2019_Coastal
4064d323bc62ce2f47a7af41b9a11ea5538ad181
[ "MIT" ]
1
2020-03-13T14:44:57.000Z
2020-03-13T14:44:57.000Z
import tide_constituents as tc from py_noaa import coops import pandas as pd import numpy as np import tappy start = '20180201' end = '20180228' interval = 1 start = pd.to_datetime(start) end = pd.to_datetime(end) d = start w, t, p, r = [], [], [], [] while d < end: start_ = d end_ = start_ + pd.DateOffs...
30.438596
93
0.663977
251
1,735
4.394422
0.386454
0.081596
0.035358
0.054397
0.107888
0.045331
0
0
0
0
0
0.037324
0.181556
1,735
57
94
30.438596
0.739437
0
0
0
0
0
0.077189
0
0
0
0
0
0
1
0.023256
false
0
0.116279
0.023256
0.162791
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4ab8e400d3a8428f396d10f517cf745bdb624df
24,862
py
Python
sdk/python/pulumi_azure/cosmosdb/cassandra_table.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
109
2018-06-18T00:19:44.000Z
2022-02-20T05:32:57.000Z
sdk/python/pulumi_azure/cosmosdb/cassandra_table.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
663
2018-06-18T21:08:46.000Z
2022-03-31T20:10:11.000Z
sdk/python/pulumi_azure/cosmosdb/cassandra_table.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
41
2018-07-19T22:37:38.000Z
2022-03-14T10:56:26.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
48.558594
238
0.662376
2,762
24,862
5.758146
0.083635
0.060174
0.068096
0.033451
0.880722
0.868398
0.855697
0.844567
0.831049
0.814198
0
0.006232
0.244831
24,862
511
239
48.65362
0.840852
0.401657
0
0.75
1
0
0.145344
0.078251
0
0
0
0
0
1
0.159091
false
0.003788
0.026515
0.022727
0.280303
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
e4ad4d1b1a19faa8dce0b003b788008a58802470
10,457
py
Python
HW10/b06502027_hw10.py
Pyrojewel-zard/ML
d8a11d893eed3e889b9af0d6aeb3ab08cd60d997
[ "MIT" ]
5
2021-11-26T10:05:03.000Z
2022-03-17T11:45:46.000Z
HW10/b06502027_hw10.py
Pyrojewel-zard/ML
d8a11d893eed3e889b9af0d6aeb3ab08cd60d997
[ "MIT" ]
null
null
null
HW10/b06502027_hw10.py
Pyrojewel-zard/ML
d8a11d893eed3e889b9af0d6aeb3ab08cd60d997
[ "MIT" ]
1
2022-01-09T02:17:19.000Z
2022-01-09T02:17:19.000Z
# -*- coding: utf-8 -*- """「hw10_adversarial_attack.ipynb」的副本 Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1yPa2ushzqw8FNobfonL79PHzudn0vjrN # **Homework 10 - Adversarial Attack** Slides: https://reurl.cc/v5kXkk Videos: TA: ntu-ml-2021spring-ta@g...
38.025455
286
0.67505
1,611
10,457
4.271881
0.247672
0.012787
0.007847
0.00959
0.221302
0.19907
0.194711
0.171607
0.161726
0.137169
0
0.024723
0.187721
10,457
275
287
38.025455
0.78373
0.155494
0
0.223881
1
0
0.08896
0.017367
0
0
0
0.010909
0
0
null
null
0
0.08209
null
null
0.029851
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
1
0
0
0
0
0
0
0
0
3
e4ae21080507e35b553b7b372118c5c586495e00
7,867
py
Python
main/make_gradsamplingbasedexact_mesh.py
tttor/nbwpg
271718362cf0cd810c7ea0cd9726e77276947e58
[ "MIT" ]
null
null
null
main/make_gradsamplingbasedexact_mesh.py
tttor/nbwpg
271718362cf0cd810c7ea0cd9726e77276947e58
[ "MIT" ]
null
null
null
main/make_gradsamplingbasedexact_mesh.py
tttor/nbwpg
271718362cf0cd810c7ea0cd9726e77276947e58
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse, os, sys, pickle import numpy as np, pathos.multiprocessing as mp, torch import gym_util.common_util as cou, polnet as pn, util_bwopt as u from collections import defaultdict from poleval_pytorch import get_rpi_s, get_Ppi_ss, get_ppisteady_s, get_Qsa def main(): arg = parse_a...
45.473988
109
0.645862
1,116
7,867
4.341398
0.253584
0.016512
0.01548
0.010733
0.175439
0.105263
0.096594
0.071827
0.063158
0.063158
0
0.002568
0.208084
7,867
172
110
45.738372
0.77512
0.096479
0
0.066176
0
0
0.097754
0.01568
0
0
0
0
0.029412
1
0.022059
false
0
0.036765
0
0.073529
0.044118
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4b424d5ad2b323394201895d8483eb6857e159f
3,158
py
Python
Python/tdw/FBOutput/StaticSpring.py
ricklentz/tdw
da40eec151acae20b28d6486defb4358d96adb0e
[ "BSD-2-Clause" ]
null
null
null
Python/tdw/FBOutput/StaticSpring.py
ricklentz/tdw
da40eec151acae20b28d6486defb4358d96adb0e
[ "BSD-2-Clause" ]
null
null
null
Python/tdw/FBOutput/StaticSpring.py
ricklentz/tdw
da40eec151acae20b28d6486defb4358d96adb0e
[ "BSD-2-Clause" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: FBOutput import tdw.flatbuffers class StaticSpring(object): __slots__ = ['_tab'] @classmethod def GetRootAsStaticSpring(cls, buf, offset): n = tdw.flatbuffers.encode.Get(tdw.flatbuffers.packer.uoffset, buf, offset)...
38.048193
129
0.679227
394
3,158
5.319797
0.22335
0.073473
0.133588
0.166985
0.449427
0.441317
0.432729
0.395038
0.395038
0.395038
0
0.027666
0.21026
3,158
82
130
38.512195
0.812751
0.060165
0
0.254237
1
0
0.001353
0
0
0
0
0
0
1
0.305085
false
0
0.033898
0.016949
0.627119
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
1
0
0
0
0
1
0
0
4
e4b481ea04167900e771c376b8996b0f7e02b22f
221
py
Python
models/locobuyticketresponse.py
jujinesy/Empier_PythonKakaoBot
80d2951955002b1a0b5d77b5c2830bc8def63ea3
[ "MIT" ]
3
2017-03-30T15:20:18.000Z
2018-01-04T12:46:05.000Z
models/locobuyticketresponse.py
skdltmxn/kakaobot
e738b4a8d994fc4125bbd471bd48378a11a8d371
[ "MIT" ]
1
2020-08-06T08:13:22.000Z
2020-08-06T08:13:22.000Z
models/locobuyticketresponse.py
skdltmxn/kakaobot
e738b4a8d994fc4125bbd471bd48378a11a8d371
[ "MIT" ]
5
2020-08-06T08:18:02.000Z
2021-02-28T03:59:45.000Z
# -*- coding: utf-8 -*- from locoresponse import LocoResponse class LocoBuyTicketResponse(LocoResponse): def host(self): return self._data["host"] def port(self): return self._data["port"]
18.416667
42
0.642534
24
221
5.833333
0.583333
0.142857
0.2
0.257143
0
0
0
0
0
0
0
0.005882
0.230769
221
11
43
20.090909
0.817647
0.095023
0
0
0
0
0.040404
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.333333
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
5
e4b4e1f9c8eb01d9ce9d5ca44f6c9f1bce4a4c9a
91
py
Python
travian4api/resources.py
ihoromi4/travian4api
1fa9023d62d8dfca00f5276eff13868ddc057811
[ "BSD-3-Clause" ]
2
2022-03-08T20:50:08.000Z
2022-03-08T20:50:13.000Z
travian4api/resources.py
ihoromi4/travian4api
1fa9023d62d8dfca00f5276eff13868ddc057811
[ "BSD-3-Clause" ]
null
null
null
travian4api/resources.py
ihoromi4/travian4api
1fa9023d62d8dfca00f5276eff13868ddc057811
[ "BSD-3-Clause" ]
2
2021-03-10T18:43:53.000Z
2021-12-18T13:31:22.000Z
RESOURCE_TYPES = ['lumber', 'clay', 'iron', 'crop'] LUMBER = 0 CLAY = 1 IRON = 2 CROP = 3
13
51
0.593407
14
91
3.785714
0.714286
0
0
0
0
0
0
0
0
0
0
0.055556
0.208791
91
6
52
15.166667
0.680556
0
0
0
0
0
0.2
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
e4b5033ef04e9a7be53412dd0c2573434a49130e
4,716
py
Python
pikapy/interpreter.py
DanyGLewin/pykachu
d9faeb3e938e8f8da3250e432a9dd70487291627
[ "MIT" ]
null
null
null
pikapy/interpreter.py
DanyGLewin/pykachu
d9faeb3e938e8f8da3250e432a9dd70487291627
[ "MIT" ]
null
null
null
pikapy/interpreter.py
DanyGLewin/pykachu
d9faeb3e938e8f8da3250e432a9dd70487291627
[ "MIT" ]
null
null
null
"""Check the syntax and execute Pikachu commands. Methods: run -- The main context for the pikachu vm. """ from pikapy.utils import pika_error, pika_print from pikapy.reader import PikaReader from pikapy.stack import PikaStack def run(file_name, args, debug): """ Run a specified Pikachu file in a virtual en...
37.133858
116
0.496395
491
4,716
4.623218
0.213849
0.046256
0.062996
0.06696
0.357269
0.326432
0.30793
0.30793
0.270925
0.270925
0
0.007335
0.392918
4,716
126
117
37.428571
0.78554
0
0
0.420561
0
0
0.090659
0
0
0
0
0
0
0
null
null
0.009346
0.028037
null
null
0.065421
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e4b53b56c59f025bc7d30fa6a90cb388b81c2484
1,865
py
Python
app/accounts/views/vendor_profile.py
phessabi/eshop
6a5352753a0c27f9c3f0eda6eec696f49ef4a8eb
[ "Apache-2.0" ]
1
2020-02-04T21:18:31.000Z
2020-02-04T21:18:31.000Z
app/accounts/views/vendor_profile.py
phessabi/eshop
6a5352753a0c27f9c3f0eda6eec696f49ef4a8eb
[ "Apache-2.0" ]
12
2020-01-01T11:46:33.000Z
2022-03-12T00:10:01.000Z
app/accounts/views/vendor_profile.py
phessabi/eshop
6a5352753a0c27f9c3f0eda6eec696f49ef4a8eb
[ "Apache-2.0" ]
1
2020-02-18T11:12:48.000Z
2020-02-18T11:12:48.000Z
from rest_framework import status from rest_framework.generics import ListAPIView, RetrieveAPIView, CreateAPIView, UpdateAPIView from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework.response import Response from rest_framework.viewsets import GenericViewSet from _helpers.permissions imp...
40.543478
95
0.790885
180
1,865
8.066667
0.35
0.027548
0.05854
0.049587
0.199036
0.199036
0.172176
0.172176
0.172176
0.172176
0
0.001868
0.138874
1,865
45
96
41.444444
0.902242
0
0
0.2
0
0
0.002146
0
0
0
0
0
0
1
0.057143
false
0
0.285714
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e4b72c3c2f5a5bbfee4b0bb9f47cf02969cbd82b
31,394
py
Python
plotoptix/tkoptix.py
robertsulej/plotoptix
628694351791c7fb8cd631a6efe6cc0fd7d9f4f8
[ "libtiff", "MIT" ]
307
2019-04-03T10:51:41.000Z
2022-03-28T05:35:09.000Z
plotoptix/tkoptix.py
robertsulej/plotoptix
628694351791c7fb8cd631a6efe6cc0fd7d9f4f8
[ "libtiff", "MIT" ]
27
2019-05-11T08:53:32.000Z
2022-02-07T22:43:21.000Z
plotoptix/tkoptix.py
robertsulej/plotoptix
628694351791c7fb8cd631a6efe6cc0fd7d9f4f8
[ "libtiff", "MIT" ]
21
2019-08-29T21:50:23.000Z
2022-03-03T05:21:15.000Z
""" Tkinter UI for PlotOptiX raytracer. https://github.com/rnd-team-dev/plotoptix/blob/master/LICENSE.txt Have a look at examples on GitHub: https://github.com/rnd-team-dev/plotoptix. """ import logging import numpy as np import tkinter as tk from PIL import Image, ImageTk from ctypes import byref, c_float, c_uint ...
46.099853
183
0.580334
4,036
31,394
4.198464
0.117939
0.048864
0.03051
0.035409
0.514724
0.47483
0.434287
0.399056
0.336205
0.316022
0
0.008039
0.306587
31,394
680
184
46.167647
0.770362
0.168949
0
0.385965
0
0.008772
0.075247
0
0
0
0.001204
0
0.008772
1
0.059211
false
0
0.019737
0
0.10307
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4b892cce045d4a84ff88607bc919a58e081ea7c
453
py
Python
tools/ckssh.py
luisxue/TreesShell
cd35826ca495264afa1e30f9b4f06eadd13ecb48
[ "MIT" ]
null
null
null
tools/ckssh.py
luisxue/TreesShell
cd35826ca495264afa1e30f9b4f06eadd13ecb48
[ "MIT" ]
null
null
null
tools/ckssh.py
luisxue/TreesShell
cd35826ca495264afa1e30f9b4f06eadd13ecb48
[ "MIT" ]
null
null
null
#!/usr/bin/python # Author: Luisxue <luisxue@gmail.com> # BLOG: https://luisxue.xcodn.com # # Notes: TreesShell for CentOS/RadHat 6+ Debian 7+ and Ubuntu 12+ # # Project home page: # http://trees.org.cn # https://github.com/luisxue/TreesShell import socket,sys sk = socket.socket(socket.AF_INET, socket.SO...
22.65
65
0.688742
69
453
4.492754
0.724638
0.077419
0
0
0
0
0
0
0
0
0
0.018088
0.145695
453
19
66
23.842105
0.782946
0.527594
0
0
0
0
0.019512
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e4ba683b1acdb8fa2966f9142fd6e41d884299cc
4,144
py
Python
app.py
apizzo1/Hindsight_2020
51a124c7363a80ebd00999a3812a91c0b27f62cd
[ "MIT" ]
null
null
null
app.py
apizzo1/Hindsight_2020
51a124c7363a80ebd00999a3812a91c0b27f62cd
[ "MIT" ]
null
null
null
app.py
apizzo1/Hindsight_2020
51a124c7363a80ebd00999a3812a91c0b27f62cd
[ "MIT" ]
1
2020-09-30T02:56:29.000Z
2020-09-30T02:56:29.000Z
import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func import os import requests import urllib.parse # API key introduction # API_KEY = os.environ.get('API_KEY', '') finnhub_API_Key = os.environ.get('finnhub_API_Key', '') from...
36.034783
341
0.707288
586
4,144
4.798635
0.290102
0.046942
0.027383
0.032361
0.455903
0.394737
0.354196
0.354196
0.354196
0.354196
0
0.009017
0.143581
4,144
114
342
36.350877
0.783319
0.127172
0
0.171429
0
0.014286
0.327586
0.042547
0
0
0
0
0
1
0.128571
false
0
0.114286
0.014286
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4ba6ef688aa37560a69eb7860a151045a256156
1,156
py
Python
Project.py
nishitde/Data-Dictionary
4da47de16739d3a255c36b1060244d7cb1df6bae
[ "MIT" ]
null
null
null
Project.py
nishitde/Data-Dictionary
4da47de16739d3a255c36b1060244d7cb1df6bae
[ "MIT" ]
null
null
null
Project.py
nishitde/Data-Dictionary
4da47de16739d3a255c36b1060244d7cb1df6bae
[ "MIT" ]
null
null
null
import json from difflib import get_close_matches data = json.load(open("data.json")) word = input("Enter a word: ") try: def translate(word): word = word.lower() if word in data: return data[word] elif word.title() in data: return data[word.title()] ...
28.195122
85
0.50519
135
1,156
4.296296
0.392593
0.068966
0.062069
0.082759
0.322414
0.218966
0.218966
0.218966
0.218966
0.151724
0
0.00137
0.368512
1,156
40
86
28.9
0.793151
0
0
0.151515
0
0
0.182796
0
0
0
0
0
0
1
0.030303
false
0
0.060606
0
0.272727
0.121212
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4bd27232f18521dba7be29751865723323f35e8
94
py
Python
rust/resources/api/resources.py
AsiaLi/rust
9954d2bd9c337376840d638c6ac5af6d9a32ed28
[ "Apache-2.0" ]
5
2018-02-08T04:31:52.000Z
2020-05-08T00:59:05.000Z
rust/resources/api/resources.py
AsiaLi/rust
9954d2bd9c337376840d638c6ac5af6d9a32ed28
[ "Apache-2.0" ]
2
2019-03-23T03:14:06.000Z
2019-04-19T07:51:55.000Z
rust/resources/api/resources.py
AsiaLi/rust
9954d2bd9c337376840d638c6ac5af6d9a32ed28
[ "Apache-2.0" ]
4
2019-02-20T04:35:33.000Z
2020-05-07T13:46:27.000Z
#coding: utf8 """ built-in资源采用按需加载策略, 无需在此引入. 如要启用对应的资源, 请在项目的settings文件中配置RUST_RESOURCES """
15.666667
43
0.787234
8
94
9.125
1
0
0
0
0
0
0
0
0
0
0
0.011628
0.085106
94
6
44
15.666667
0.837209
0.893617
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
e4be20e88f19e786bc1af90364e0539952a470e3
88
py
Python
django_mix_admin/__init__.py
longminxiang/django_mix_admin
375cca608b3128c7f96045628bb863e9b49a8b15
[ "MIT" ]
null
null
null
django_mix_admin/__init__.py
longminxiang/django_mix_admin
375cca608b3128c7f96045628bb863e9b49a8b15
[ "MIT" ]
null
null
null
django_mix_admin/__init__.py
longminxiang/django_mix_admin
375cca608b3128c7f96045628bb863e9b49a8b15
[ "MIT" ]
null
null
null
__version_info__ = (0, 1, 5) __version__ = '.'.join([str(v) for v in __version_info__])
29.333333
58
0.681818
14
88
3.285714
0.714286
0.478261
0
0
0
0
0
0
0
0
0
0.039474
0.136364
88
2
59
44
0.565789
0
0
0
0
0
0.011364
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e4c0d071d3b7e4c6ad479ab79343874462a2daf0
2,173
py
Python
tests/openwisp2/settings.py
MiHiR151203/django-x509
fed09c9948fb81ab79ab9e541590ce2e398dd81e
[ "BSD-3-Clause" ]
410
2016-07-18T20:07:34.000Z
2022-03-28T11:21:58.000Z
tests/openwisp2/settings.py
devkapilbansal/django-x509
fe67255028a5437ac8e918831e39698c7e6c661a
[ "BSD-3-Clause" ]
120
2016-09-13T10:36:10.000Z
2022-02-24T15:36:42.000Z
tests/openwisp2/settings.py
devkapilbansal/django-x509
fe67255028a5437ac8e918831e39698c7e6c661a
[ "BSD-3-Clause" ]
85
2016-09-05T21:36:12.000Z
2022-03-19T13:44:13.000Z
import os BASE_DIR = os.path.dirname(os.path.abspath(__file__)) DEBUG = True ALLOWED_HOSTS = [] DATABASES = { 'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'djangox509.db'} } SECRET_KEY = 'fn)t*+$)ugeyip6-#txyy$5wf2ervc0d2n#h)qb)y5@ly$t*@w' INSTALLED_APPS = [ 'django.contrib.auth', 'djan...
28.592105
81
0.678785
227
2,173
6.312775
0.537445
0.099791
0.03559
0.043266
0
0
0
0
0
0
0
0.022857
0.194662
2,173
75
82
28.973333
0.796
0.038656
0
0.032258
0
0.016129
0.529243
0.424257
0
0
0
0
0
1
0
false
0.016129
0.048387
0
0.048387
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e4c31aee7bfbc8595d53ad5906b60459c10165ee
3,472
py
Python
service/recv_setup.py
mikroncoin/mikron_restapi_py
79cd47c8f26615ccd27c9764c92299f8cebd578a
[ "BSD-2-Clause" ]
null
null
null
service/recv_setup.py
mikroncoin/mikron_restapi_py
79cd47c8f26615ccd27c9764c92299f8cebd578a
[ "BSD-2-Clause" ]
6
2018-09-27T07:12:28.000Z
2019-08-14T10:13:13.000Z
service/recv_setup.py
mikroncoin/mikron_restapi_py
79cd47c8f26615ccd27c9764c92299f8cebd578a
[ "BSD-2-Clause" ]
null
null
null
import config import recv_db import node_rpc_helper import threading from time import sleep, time setup_check_background_result = {"msg": "(uninitialized)"} config = config.readConfig() last_check_time = time() - 10000 def get_setup_check_background(): global setup_check_background_result return setup_check_...
32.754717
93
0.616647
497
3,472
4.036217
0.160966
0.053838
0.089731
0.103689
0.367398
0.199402
0.105683
0
0
0
0
0.005878
0.264977
3,472
105
94
33.066667
0.780172
0.140841
0
0.064103
0
0
0.154806
0.024283
0
0
0
0
0
1
0.051282
false
0
0.064103
0
0.141026
0.141026
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4c4cb3330bd82155cdbb03b29afb2dbeedea99b
23,602
py
Python
pysnmp-with-texts/NSCHippiSonet-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/NSCHippiSonet-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/NSCHippiSonet-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module NSCHippiSonet-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NSCHippiSonet-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:25:03 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
125.542553
3,243
0.800398
2,606
23,602
7.249041
0.150422
0.069875
0.12228
0.013128
0.401673
0.263829
0.190143
0.100259
0.094966
0.088825
0
0.047579
0.087238
23,602
187
3,244
126.213904
0.829318
0.013897
0
0
0
0.038889
0.222093
0.001891
0
0
0
0
0.005556
1
0
false
0
0.038889
0
0.038889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e4c4f544669d2e4b222ccb9bd7786787ddb72fee
784
py
Python
2015/day/2/solution.py
iangregson/advent-of-code
e2a2dde30dcaed027a5ba78f9270f8a1976577f1
[ "MIT" ]
null
null
null
2015/day/2/solution.py
iangregson/advent-of-code
e2a2dde30dcaed027a5ba78f9270f8a1976577f1
[ "MIT" ]
null
null
null
2015/day/2/solution.py
iangregson/advent-of-code
e2a2dde30dcaed027a5ba78f9270f8a1976577f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os dir_path = os.path.dirname(os.path.realpath(__file__)) file = open(dir_path + "/input.txt", "r") lines = file.readlines() lines = [line.strip() for line in lines] # lines = ["2x3x4", "1x1x10"] total = 0 for line in lines: l, w, h = [int(v) for v in line.split('x')] side1 = ...
21.777778
54
0.598214
134
784
3.425373
0.335821
0.017429
0.058824
0.091503
0.344227
0.344227
0.344227
0.20915
0.20915
0.20915
0
0.060201
0.237245
784
35
55
22.4
0.707358
0.0625
0
0.32
0
0
0.055935
0
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4c526448ad55197755fe945ed7cc9cdffa6ce97
1,522
py
Python
setup.py
camp-zju/HHypermap
f65133f2a45188ccc91dca48ea5a7f6d5afa1c18
[ "MIT" ]
6
2018-04-17T03:07:06.000Z
2022-01-11T00:14:42.000Z
setup.py
camp-zju/HHypermap
f65133f2a45188ccc91dca48ea5a7f6d5afa1c18
[ "MIT" ]
23
2018-05-14T21:13:58.000Z
2022-03-21T22:16:40.000Z
setup.py
camp-zju/HHypermap
f65133f2a45188ccc91dca48ea5a7f6d5afa1c18
[ "MIT" ]
2
2019-09-18T05:48:03.000Z
2020-03-19T07:06:29.000Z
import os from distutils.core import setup from distutils.command.install import INSTALL_SCHEMES from setuptools import find_packages from hypermap import __version__, __description__ def read(*rnames): with open(os.path.join(os.path.dirname(__file__), *rnames)) as ff: return ff.read() setup( name=_...
24.548387
70
0.581472
151
1,522
5.668874
0.635762
0.030374
0.03271
0.03972
0.084112
0.084112
0.084112
0
0
0
0
0.015371
0.273325
1,522
61
71
24.95082
0.75859
0
0
0
0
0
0.339685
0.02431
0
0
0
0
0
1
0.017544
true
0
0.087719
0
0.122807
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
e4c67370682280607f52d85bc867fcf1b22bcd29
2,611
py
Python
src/utils/__init__.py
ppolewicz/screeps-starter-python
dd2f5646a53c9353bf99e976e5f362e297715e96
[ "MIT" ]
null
null
null
src/utils/__init__.py
ppolewicz/screeps-starter-python
dd2f5646a53c9353bf99e976e5f362e297715e96
[ "MIT" ]
null
null
null
src/utils/__init__.py
ppolewicz/screeps-starter-python
dd2f5646a53c9353bf99e976e5f362e297715e96
[ "MIT" ]
null
null
null
from creeps.scheduled_action import ScheduledAction def part_count(creep, of_type): count = 0 for part in creep.body: if part['type'] == of_type: count += 1 return count def get_first_spawn(room): for s in room.find(FIND_MY_STRUCTURES): if s.structureType == STRUCTURE_SPAWN...
23.522523
91
0.550747
339
2,611
4.061947
0.289086
0.011619
0.015251
0.011619
0.156137
0.129267
0.076979
0.023239
0.023239
0.023239
0
0.029512
0.325163
2,611
110
92
23.736364
0.751986
0.044044
0
0.076923
0
0
0.004013
0
0
0
0
0.009091
0
1
0.10989
false
0
0.010989
0.010989
0.241758
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4c8185a2c9690234bd9c6872e272faa663e2d58
2,419
py
Python
src/sidecar/connection.py
aldanor/sidecar
5353bc4120a01460f6b1e51ea8e1fcafb0524782
[ "Apache-2.0" ]
null
null
null
src/sidecar/connection.py
aldanor/sidecar
5353bc4120a01460f6b1e51ea8e1fcafb0524782
[ "Apache-2.0" ]
null
null
null
src/sidecar/connection.py
aldanor/sidecar
5353bc4120a01460f6b1e51ea8e1fcafb0524782
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import json import logging import os from sockjs.tornado import SockJSRouter, SockJSConnection from tornado.web import RequestHandler, StaticFileHandler from tornado.web import Application from tornado.ioloop import IOLoop from sidecar.utils import log class WebHandler(RequestHandler): d...
26.582418
76
0.613477
285
2,419
5.126316
0.319298
0.032854
0.043806
0.028747
0.087611
0.032854
0
0
0
0
0
0.002795
0.260438
2,419
90
77
26.877778
0.813862
0.008681
0
0.121212
0
0
0.038815
0
0
0
0
0
0
1
0.181818
false
0
0.121212
0
0.393939
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4c821a03a137cb22747cf95a778dd8018d7963b
1,210
py
Python
1-100/31-40/31-nextPermutation/nextPermutation.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
1-100/31-40/31-nextPermutation/nextPermutation.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
1-100/31-40/31-nextPermutation/nextPermutation.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
class Solution(object): def nextPermutation(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ flag = False for i in range(len(nums)-2, -1, -1): if nums[i] < nums[i+1]: flag = True...
30.25
74
0.400826
145
1,210
3.344828
0.248276
0.134021
0.11134
0.049485
0.529897
0.470103
0.358763
0.243299
0.243299
0
0
0.029231
0.46281
1,210
40
75
30.25
0.716923
0.146281
0
0.307692
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4c9e7db24e7faa2d384c8fed0def5b98126bad5
4,584
py
Python
recognizer/sat_plan_recognizer.py
RukNdf/MA-Landmark
4038ebe7edc9e353e1987479f5f9edc528a4bd2a
[ "Unlicense" ]
null
null
null
recognizer/sat_plan_recognizer.py
RukNdf/MA-Landmark
4038ebe7edc9e353e1987479f5f9edc528a4bd2a
[ "Unlicense" ]
null
null
null
recognizer/sat_plan_recognizer.py
RukNdf/MA-Landmark
4038ebe7edc9e353e1987479f5f9edc528a4bd2a
[ "Unlicense" ]
null
null
null
import time from z3 import Solver, Implies, sat, Const, Function, IntSort, ForAll, DeclareSort from recognizer.pddl.pddl_planner import applicable from recognizer.pddl.sat_planner import SATPlanner from recognizer.plan_recognizer import PlanRecognizer class SATPlanRecognizer(PlanRecognizer): name = "sat" ...
43.245283
123
0.610384
556
4,584
4.899281
0.246403
0.04442
0.028634
0.044053
0.290015
0.210352
0.122981
0.098752
0.062775
0.062775
0
0.007207
0.27356
4,584
105
124
43.657143
0.810811
0.095113
0
0.101266
0
0
0.041818
0
0
0
0
0
0
1
0.063291
false
0
0.063291
0.012658
0.189873
0.075949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4cb77ef15c6281746b9224f3a653571c3753950
925
py
Python
USPTO-15K/scripts/coverage.py
wengong-jin/nips17-rexgen
fb7dea369b0721b88cd0133a7d66348d244f65d3
[ "MIT" ]
113
2017-09-22T19:42:50.000Z
2022-02-05T03:11:27.000Z
USPTO-15K/scripts/coverage.py
wibrow/nips17-rexgen
fb7dea369b0721b88cd0133a7d66348d244f65d3
[ "MIT" ]
6
2017-11-18T05:54:49.000Z
2021-03-04T08:28:46.000Z
USPTO-15K/scripts/coverage.py
wibrow/nips17-rexgen
fb7dea369b0721b88cd0133a7d66348d244f65d3
[ "MIT" ]
41
2017-12-13T02:32:10.000Z
2022-01-09T06:39:40.000Z
cand = open('lbp-bond/data.cbond') gold = open('data/connor_split.csv') tot,good = 0,0 for line in cand: cand_bonds = [] for v in line.split(): x,y = v.split('-') cand_bonds.append((int(x),int(y))) line = gold.readline() items = line.split() if items[1] != 'test': continue ...
25
46
0.484324
142
925
3.084507
0.28169
0.059361
0.079909
0.054795
0.246575
0.246575
0.246575
0.246575
0.246575
0.246575
0
0.019017
0.317838
925
36
47
25.694444
0.675119
0
0
0.258065
0
0
0.055135
0.022703
0
0
0
0
0
0
null
null
0
0
null
null
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e4cbdc38c4ab5669908483516a67bda51e21ba7f
1,431
py
Python
somato/06_dipole.py
larsoner/beamformer_simulation
ebc9cfc8bc73434ecd995c3b85560db962642307
[ "BSD-3-Clause" ]
2
2019-06-03T21:09:24.000Z
2020-05-29T20:53:22.000Z
somato/06_dipole.py
larsoner/beamformer_simulation
ebc9cfc8bc73434ecd995c3b85560db962642307
[ "BSD-3-Clause" ]
null
null
null
somato/06_dipole.py
larsoner/beamformer_simulation
ebc9cfc8bc73434ecd995c3b85560db962642307
[ "BSD-3-Clause" ]
4
2019-07-14T02:44:40.000Z
2020-05-28T18:05:26.000Z
import os.path as op import numpy as np import matplotlib.pyplot as plt import mne from nilearn.plotting import plot_anat from config import fname, subject_id, n_jobs report = mne.open_report(fname.report) epochs = mne.read_epochs(fname.epochs) noise_cov = mne.compute_covariance(epochs, tmin=-0.2, tmax=0, method='s...
36.692308
91
0.750524
240
1,431
4.283333
0.433333
0.026265
0.036965
0.044747
0.05642
0
0
0
0
0
0
0.018268
0.120196
1,431
38
92
37.657895
0.798253
0.061495
0
0
0
0
0.050746
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4cbe718ce99cfda8db68cebd8b2f70d40be2a56
299
py
Python
Exercicios/Resposta-EstruturaDeDecisao/Exerc_4.py
ThaisAlves7/Exercicios_PythonBrasil
3c55f56c44b4da9953a79398859e7c73a155dc0e
[ "MIT" ]
null
null
null
Exercicios/Resposta-EstruturaDeDecisao/Exerc_4.py
ThaisAlves7/Exercicios_PythonBrasil
3c55f56c44b4da9953a79398859e7c73a155dc0e
[ "MIT" ]
null
null
null
Exercicios/Resposta-EstruturaDeDecisao/Exerc_4.py
ThaisAlves7/Exercicios_PythonBrasil
3c55f56c44b4da9953a79398859e7c73a155dc0e
[ "MIT" ]
null
null
null
# Faça um programa que verifique se uma letra digitada é vogal ou consoante. vogais = ['A', 'E', 'I', 'O', 'U'] letra = input('Digite uma letra: ').strip() letra = letra.capitalize() if letra in vogais: print(f'A letra {letra} é uma vogal') else: print(f'A letra {letra} é uma consoante')
27.181818
76
0.655518
49
299
4
0.571429
0.153061
0.071429
0.122449
0.214286
0.214286
0.214286
0
0
0
0
0
0.190635
299
11
77
27.181818
0.809917
0.247492
0
0
0
0
0.361607
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4cc0d2e30cb90d31f4c75e015c940d7ee00182a
19,236
py
Python
extras/simpleperf/runtest/runtest.py
Keneral/asystem
df12381b72ef3d629c8efc61100cc8c714195320
[ "Unlicense" ]
null
null
null
extras/simpleperf/runtest/runtest.py
Keneral/asystem
df12381b72ef3d629c8efc61100cc8c714195320
[ "Unlicense" ]
null
null
null
extras/simpleperf/runtest/runtest.py
Keneral/asystem
df12381b72ef3d629c8efc61100cc8c714195320
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2015 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
32.548223
78
0.629289
2,423
19,236
4.775072
0.104829
0.05013
0.028522
0.038202
0.533189
0.447537
0.398271
0.322645
0.297321
0.297321
0
0.003199
0.268663
19,236
590
79
32.60339
0.819235
0.03821
0
0.428571
0
0
0.083944
0.019015
0
0
0
0
0.016563
0
null
null
0.00207
0.008282
null
null
0.020704
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e4cc48259575ae3ff337d2ba3e8068256382c270
21,443
py
Python
summarization_utils.py
allenai/advisor
6849755042c6dab1488f64cf21bde2322add3cc1
[ "Apache-2.0" ]
5
2021-12-13T18:21:35.000Z
2022-03-27T17:18:09.000Z
summarization_utils.py
allenai/advisor
6849755042c6dab1488f64cf21bde2322add3cc1
[ "Apache-2.0" ]
null
null
null
summarization_utils.py
allenai/advisor
6849755042c6dab1488f64cf21bde2322add3cc1
[ "Apache-2.0" ]
null
null
null
import ast import hashlib import json import os from collections import defaultdict from typing import Tuple, Sequence, Dict, Optional, Union, Any, Set import compress_pickle import matplotlib.pyplot as plt import numpy as np import pandas import pandas as pd from filelock import FileLock from allenact.utils.misc_uti...
36.221284
88
0.533834
2,539
21,443
4.157936
0.155179
0.018945
0.006062
0.024249
0.417732
0.345458
0.275173
0.220422
0.177039
0.162167
0
0.012613
0.375134
21,443
591
89
36.282572
0.775282
0.018934
0
0.19802
0
0
0.058644
0.017136
0
0
0
0
0.013861
1
0.015842
false
0
0.033663
0
0.065347
0.015842
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4d1a5ffa7594bfb272d1e801de25c346e704f41
159
py
Python
finished/edabit/very_easy/return_sum.py
UltiRequiem/daily-python-practice
31f72c45378be90b8fcadd30d7042819ee551a17
[ "MIT" ]
8
2021-05-29T23:30:12.000Z
2021-09-24T03:25:44.000Z
finished/edabit/very_easy/return_sum.py
UltiRequiem/daily-python-practice
31f72c45378be90b8fcadd30d7042819ee551a17
[ "MIT" ]
null
null
null
finished/edabit/very_easy/return_sum.py
UltiRequiem/daily-python-practice
31f72c45378be90b8fcadd30d7042819ee551a17
[ "MIT" ]
6
2021-06-02T14:20:24.000Z
2021-08-19T00:49:26.000Z
def addition(x: int, y: int) -> int: return x + y # addition_lambda = lambda x, y: x + y # Test: if __name__ == "__main__": print(addition(78, 98))
15.9
38
0.591195
25
159
3.4
0.56
0.070588
0
0
0
0
0
0
0
0
0
0.033333
0.245283
159
9
39
17.666667
0.675
0.264151
0
0
0
0
0.070175
0
0
0
0
0
0
1
0.25
false
0
0
0.25
0.5
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
1
0
0
0
1
0
0
0
4
e4d249940b5e4b94dccb108c35a99b6f1dfb8b25
899
py
Python
mylog.py
james-prior/python-asyncio-experiments
eeda9aafe855f2ef666c694cc6fa85ceef91cfe5
[ "MIT" ]
null
null
null
mylog.py
james-prior/python-asyncio-experiments
eeda9aafe855f2ef666c694cc6fa85ceef91cfe5
[ "MIT" ]
null
null
null
mylog.py
james-prior/python-asyncio-experiments
eeda9aafe855f2ef666c694cc6fa85ceef91cfe5
[ "MIT" ]
null
null
null
import datetime def format_time(t): return f'{t.seconds:2}.{t.microseconds:06}' def log(message): ''' prints a line with: elapsed time since this function was first called elapsed time since this function was previously called message Elapsed times are shown in seconds with mi...
24.972222
66
0.694105
124
899
4.717742
0.403226
0.082051
0.075214
0.102564
0.307692
0.191453
0
0
0
0
0
0.004464
0.252503
899
35
67
25.685714
0.866071
0.285873
0
0.1
0
0
0.054455
0.054455
0
0
0
0
0
1
0.1
false
0
0.05
0.05
0.2
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4d3a3a4b5231dc56cb563722643de1889b8ff1c
9,563
py
Python
scripts/lmpsizes.py
elor/lmputils
5fd38f7ef8fe50f580c530e2a7b457421c6525e5
[ "MIT" ]
1
2016-06-25T13:13:01.000Z
2016-06-25T13:13:01.000Z
scripts/lmpsizes.py
elor/lmputils
5fd38f7ef8fe50f580c530e2a7b457421c6525e5
[ "MIT" ]
null
null
null
scripts/lmpsizes.py
elor/lmputils
5fd38f7ef8fe50f580c530e2a7b457421c6525e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys, re # init def printHelp(): sys.stderr.write("""\ lmpsizes.py, a tool for adjusting the size of a .lmp file Syntax: lmpsizes.py <source.lmp> (operation)... lmpsizes.py -h|--help Description: This script reads the size limits from basis.lmp, alters them using any numbe...
24.583548
233
0.594165
1,366
9,563
4.15959
0.213031
0.030095
0.030975
0.036783
0.241464
0.197642
0.152235
0.12566
0.12566
0.12566
0
0.01839
0.249399
9,563
388
234
24.646907
0.773196
0.048729
0
0.268966
0
0.017241
0.365778
0.012002
0
0
0
0
0
0
null
null
0.013793
0.003448
null
null
0.048276
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e4d4b64f36bac32559212d9f09ad4caa0d9bfce2
286
py
Python
tests/superset_test_config.py
manueliglesiasgarcia/superset-api-client
268b36d3b9694895f0e4a9595af7b592ac7c5b77
[ "Apache-2.0" ]
11
2021-05-07T16:34:52.000Z
2022-03-17T07:54:56.000Z
tests/superset_test_config.py
manueliglesiasgarcia/superset-api-client
268b36d3b9694895f0e4a9595af7b592ac7c5b77
[ "Apache-2.0" ]
10
2021-10-08T20:03:59.000Z
2022-03-18T18:28:09.000Z
tests/superset_test_config.py
manueliglesiasgarcia/superset-api-client
268b36d3b9694895f0e4a9595af7b592ac7c5b77
[ "Apache-2.0" ]
6
2021-07-09T18:23:09.000Z
2022-03-19T09:23:19.000Z
"""Configuration for tests""" import tempfile DEBUG = True TESTING = True WTF_CSRF_ENABLED = False # APP CONFIG # Creating a tempfile SQLALCHEMY_DATABASE_URI = f"sqlite://{tempfile.mkdtemp()}/test.db" # WEBSERVER SUPERSET_WEBSERVER_ADDRESS = "0.0.0.0" SUPERSET_WEBSERVER_PORT = 8080
19.066667
66
0.765734
39
286
5.410256
0.769231
0.028436
0.028436
0
0
0
0
0
0
0
0
0.031873
0.122378
286
14
67
20.428571
0.808765
0.227273
0
0
0
0
0.206573
0.173709
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4d7188d1126cf74926c3e66a423812722a2540a
22,051
py
Python
special_k/tests/test_signing.py
namoopsoo/special_k
816ad200e8608d862e20971dc2bc4d2724aaf0bc
[ "Apache-2.0" ]
null
null
null
special_k/tests/test_signing.py
namoopsoo/special_k
816ad200e8608d862e20971dc2bc4d2724aaf0bc
[ "Apache-2.0" ]
null
null
null
special_k/tests/test_signing.py
namoopsoo/special_k
816ad200e8608d862e20971dc2bc4d2724aaf0bc
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-present Kensho Technologies, LLC. from datetime import datetime import glob import os import time from unittest.mock import Mock import funcy import gpg import pytest from . import _UNSAFE_KEY_PASSPHRASE, FAKE_KEYS_DIR, TESTING_ENVVAR, TRUSTED_DIR_ENVVAR from ..check_gpg_keys import ( _verify_tru...
42.984405
100
0.655072
2,576
22,051
5.320264
0.157997
0.027581
0.033564
0.027362
0.63174
0.586428
0.563809
0.539511
0.509814
0.495586
0
0.02523
0.275634
22,051
512
101
43.068359
0.83278
0.15378
0
0.584416
0
0
0.196385
0.103168
0
0
0
0.001953
0.101299
1
0.036364
false
0.049351
0.041558
0
0.090909
0.067532
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4d7579cdae9a7c92d24f6e21579f1d1d07cf7c1
4,054
py
Python
setup.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
20
2021-03-11T18:37:32.000Z
2022-03-23T19:38:07.000Z
setup.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
75
2021-02-12T02:37:33.000Z
2022-03-29T20:56:16.000Z
setup.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
5
2021-04-07T15:46:53.000Z
2021-09-18T16:55:00.000Z
import os import re from setuptools import find_packages, setup root = os.path.dirname(__file__) settingsf = open(os.path.join(root, 'qatrack', 'settings.py'), 'r') __version__ = re.findall(r"""VERSION\s+=\s+['"]+(.*)['"]""", settingsf.read())[0] setup( name='qatrackplus', version=__version__, packages...
37.192661
149
0.580168
546
4,054
4.254579
0.373626
0.007749
0.01808
0.021954
0.068016
0.055101
0.032716
0.032716
0
0
0
0.114827
0.218056
4,054
108
150
37.537037
0.617981
0.007893
0
0.058252
0
0.029126
0.624938
0.263813
0
0
0
0
0
1
0
false
0
0.029126
0
0.029126
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e4d7953efcb7408bce5180ef4d3341f1a6b7b1ad
4,603
py
Python
src/models/CORAL-LM/coral/interactive.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
null
null
null
src/models/CORAL-LM/coral/interactive.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
null
null
null
src/models/CORAL-LM/coral/interactive.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
1
2021-08-19T15:21:50.000Z
2021-08-19T15:21:50.000Z
import argparse from torch.utils.data import DataLoader from .model import BERT from .trainer import BERTTrainer from .dataset import DataReader, UnitedVocab, CORALDataset, my_collate, key_lib import pdb import os import json import torch class Session(): def __init__(self, dataset, mod...
38.358333
142
0.582663
543
4,603
4.637201
0.198895
0.030977
0.056791
0.035743
0.262907
0.245433
0.245433
0.235107
0.235107
0.235107
0
0.016999
0.335433
4,603
120
143
38.358333
0.806146
0.000652
0
0.021053
0
0
0.03893
0
0
0
0
0
0
1
0.021053
false
0.010526
0.094737
0
0.126316
0.115789
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4d9a9c56221ae7e0e31c377fd09796258aef2bc
532
py
Python
tutorials/conversational_search/Tutorial6_Binary_Passage_Retriever.py
giguru/converse
bfe5ccc0af50455074abf7926a31145ac96834a5
[ "Apache-2.0" ]
9
2020-10-23T14:39:45.000Z
2021-11-16T10:37:11.000Z
tutorials/conversational_search/Tutorial6_Binary_Passage_Retriever.py
giguru/converse
bfe5ccc0af50455074abf7926a31145ac96834a5
[ "Apache-2.0" ]
12
2020-10-07T08:07:51.000Z
2020-10-22T14:20:19.000Z
tutorials/conversational_search/Tutorial6_Binary_Passage_Retriever.py
giguru/converse
bfe5ccc0af50455074abf7926a31145ac96834a5
[ "Apache-2.0" ]
null
null
null
from haystack import Pipeline from haystack.retriever.anserini import DenseAnseriniRetriever # LOAD COMPONENTS retriever = DenseAnseriniRetriever(prebuilt_index_name="wikipedia-bpr-single-nq-hash", binary=True, query_encoder="castorini/bpr-nq-questi...
31.294118
86
0.682331
60
532
5.983333
0.666667
0.066852
0
0
0
0
0
0
0
0
0
0
0.208647
532
17
87
31.294118
0.852732
0.078947
0
0
0
0
0.221766
0.125257
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4da6f2e214530239d7254ffdc625a7c298a5b02
854
py
Python
ros_system_ws/src/vector79/scripts/voltage_monitor.py
DrClick/ARCRacing
4428a244c5a4627f4550eba066657b5a87ff0602
[ "MIT" ]
7
2016-12-15T22:24:04.000Z
2018-12-27T05:48:45.000Z
ros_system_ws/src/vector79/scripts/voltage_monitor.py
DrClick/ARCRacing
4428a244c5a4627f4550eba066657b5a87ff0602
[ "MIT" ]
null
null
null
ros_system_ws/src/vector79/scripts/voltage_monitor.py
DrClick/ARCRacing
4428a244c5a4627f4550eba066657b5a87ff0602
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import String, Float32 import time import subprocess def voltage_monitor(): rospy.init_node('voltage_monitor') info_pub = rospy.Publisher('bus_comm', String, queue_size=1) voltage_pub = rospy.Publisher('voltage', Float32, queue_size=1) while True:...
27.548387
124
0.661593
113
854
4.743363
0.557522
0.078358
0.063433
0.063433
0
0
0
0
0
0
0
0.033824
0.203747
854
30
125
28.466667
0.754412
0.023419
0
0.095238
0
0
0.148014
0.067389
0
0
0
0
0
1
0.047619
false
0
0.190476
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4db245f6a04cd11be89f16f10ad98de90bdf524
2,739
py
Python
spark_auto_mapper_fhir/value_sets/entity_name_use.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
1
2021-11-18T18:06:45.000Z
2021-11-18T18:06:45.000Z
spark_auto_mapper_fhir/value_sets/entity_name_use.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/value_sets/entity_name_use.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
36.52
86
0.717415
337
2,739
5.747774
0.406528
0.092927
0.10222
0.119257
0.382034
0.345379
0.328343
0.280847
0.280847
0.280847
0
0.01468
0.179263
2,739
74
87
37.013514
0.846975
0.172326
0
0
0
0
0.102299
0.025287
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.941176
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e4dde971f2e70ab06559858e0fab7f650c0ab505
94,984
py
Python
ktapp/models.py
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
5
2015-04-13T09:44:31.000Z
2017-10-19T01:07:58.000Z
ktapp/models.py
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
49
2015-02-15T07:12:05.000Z
2022-03-11T23:11:43.000Z
ktapp/models.py
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
null
null
null
import datetime import hashlib import json import os import random import string from PIL import Image from urlparse import urlparse from django.conf import settings from django.db import models, connection from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, UserManager from django.core.mail imp...
43.411335
186
0.685263
11,902
94,984
5.202655
0.059402
0.02881
0.022674
0.031847
0.64528
0.555457
0.481848
0.407367
0.344353
0.29282
0
0.008399
0.205256
94,984
2,187
187
43.431184
0.811891
0.012023
0
0.312234
0
0
0.069361
0.005701
0
0
0
0.000457
0
0
null
null
0.003723
0.01117
null
null
0.004787
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e4de17c6c2bcdd5dac773b36cd590020f73017b2
322
py
Python
ntsa/models/__init__.py
d3sm0/ntsa
cf5680c20fec3316eef90af86014f642b88bfbf2
[ "MIT" ]
15
2018-11-26T14:35:29.000Z
2021-06-07T04:48:42.000Z
ntsa/models/__init__.py
d3sm0/ntsa
cf5680c20fec3316eef90af86014f642b88bfbf2
[ "MIT" ]
10
2020-01-28T22:29:29.000Z
2021-12-13T19:52:10.000Z
ntsa/models/__init__.py
d3sm0/ntsa
cf5680c20fec3316eef90af86014f642b88bfbf2
[ "MIT" ]
4
2020-02-14T13:01:57.000Z
2021-01-01T19:06:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from .model import Base from .model import Dense from .model import SeriesNet from .model import NP from .model import CNP from .model import RNN from .model import Seq2Seq from .model import DARNN from .model import RGAN from .model import CRGAN from .model import CGAN...
16.947368
28
0.748447
51
322
4.72549
0.411765
0.410788
0.684647
0
0
0
0
0
0
0
0
0.007519
0.173913
322
18
29
17.888889
0.898496
0.130435
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
5
e4de733e5c0ae2e4678e9cda8d9bbc096dd360a5
594
py
Python
server/grpc/pyserver.py
Panthereum/DigitalBeing
7fda011f34dd62c03d1072035ae0ad2a129281a7
[ "MIT" ]
53
2021-07-20T04:01:57.000Z
2022-03-13T17:31:08.000Z
server/grpc/pyserver.py
Panthereum/DigitalBeing
7fda011f34dd62c03d1072035ae0ad2a129281a7
[ "MIT" ]
58
2021-08-20T02:22:16.000Z
2021-12-13T10:38:58.000Z
server/grpc/pyserver.py
Panthereum/DigitalBeing
7fda011f34dd62c03d1072035ae0ad2a129281a7
[ "MIT" ]
13
2021-08-23T20:16:14.000Z
2022-01-31T23:59:21.000Z
import logging import time # import the original example.py from handler import DigitalBeing as DB logger = logging.getLogger('server_logger') logger.setLevel(logging.DEBUG) # create file handler which logs even debug messages fh = logging.FileHandler('grpc_server.log') fh.setLevel(logging.DEBUG) logger.addHandler(f...
22.846154
61
0.754209
79
594
5.556962
0.632911
0.068337
0.091116
0
0
0
0
0
0
0
0
0.013972
0.156566
594
26
62
22.846154
0.862275
0.355219
0
0
0
0
0.074271
0
0
0
0
0
0
1
0.071429
false
0
0.214286
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4debd4280513f51ffae81a74e479547f07c0088
2,679
py
Python
app/tg/routes.py
EeOneDown/spbu4u
2ad01088fb167c80c53b757a0247fc5cde34c20f
[ "Apache-2.0" ]
30
2017-09-14T20:25:43.000Z
2022-03-12T09:55:35.000Z
app/tg/routes.py
EeOneDown/spbu4u
2ad01088fb167c80c53b757a0247fc5cde34c20f
[ "Apache-2.0" ]
59
2018-01-12T18:29:24.000Z
2019-03-08T21:08:40.000Z
app/tg/routes.py
EeOneDown/spbu4u
2ad01088fb167c80c53b757a0247fc5cde34c20f
[ "Apache-2.0" ]
8
2017-12-01T18:36:04.000Z
2020-11-22T00:36:15.000Z
import logging from json import loads from time import time from flask import request, abort from telebot.apihelper import ApiException from telebot.types import Update from app import db, new_functions as nf from app.constants import ( webhook_url_base, webhook_url_path, ids, other_error_answer ) from app.models...
28.806452
75
0.591639
333
2,679
4.564565
0.348348
0.051316
0.076974
0.0625
0.280921
0.176316
0.107895
0.107895
0.107895
0.107895
0
0.008588
0.304591
2,679
92
76
29.119565
0.8073
0.014184
0
0.2375
0
0
0.069723
0
0
0
0
0
0
1
0.05
false
0
0.1375
0
0.225
0.0125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4df95cc2cdc1f1463a8b2b8946b91a69dbe5207
7,391
py
Python
prysm/segmented.py
deisenroth/prysm
53a400ef89697041f67192e879e61ad28c451318
[ "MIT" ]
110
2017-09-28T05:24:22.000Z
2022-03-17T17:34:08.000Z
prysm/segmented.py
mjhoptics/prysm
5dea335e068d04d1006741d8eb02278181751f73
[ "MIT" ]
82
2018-01-03T03:52:42.000Z
2022-02-02T02:30:19.000Z
prysm/segmented.py
mjhoptics/prysm
5dea335e068d04d1006741d8eb02278181751f73
[ "MIT" ]
28
2017-12-28T02:47:55.000Z
2022-03-29T02:10:11.000Z
"""Tools for working with segmented systems.""" from collections import namedtuple import numpy as truenp from .geometry import regular_polygon from .mathops import np Hex = namedtuple('Hex', ['q', 'r', 's']) def add_hex(h1, h2): """Add two hex coordinates together.""" q = h1.q + h2.q r = h1.r + h2.r ...
32.134783
117
0.613043
1,115
7,391
3.912108
0.232287
0.022925
0.029803
0.017194
0.222834
0.146722
0.120816
0.107978
0.092847
0.092847
0
0.02385
0.279529
7,391
229
118
32.275109
0.795305
0.278717
0
0.022556
0
0
0.016116
0
0
0
0
0
0
1
0.082707
false
0
0.030075
0
0.195489
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4dfb95f04467bee0420411aa09bbdd150a3b575
1,156
py
Python
Projects/multiple_args_curvefit/python/src/model.py
basavyr/curve-fitting
0c7f93b7764d9ddc3e2860e5f20d21bf30256f58
[ "MIT" ]
null
null
null
Projects/multiple_args_curvefit/python/src/model.py
basavyr/curve-fitting
0c7f93b7764d9ddc3e2860e5f20d21bf30256f58
[ "MIT" ]
null
null
null
Projects/multiple_args_curvefit/python/src/model.py
basavyr/curve-fitting
0c7f93b7764d9ddc3e2860e5f20d21bf30256f58
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt from scipy.optimize import curve_fit import random as rd import plotter def model_function(X, a, b, c): """ - the analytical expression for the model that aims at describing the experimental data - the X argument is an array of tuples of the form X=...
23.12
91
0.624567
201
1,156
3.363184
0.393035
0.066568
0.057692
0.065089
0.053254
0
0
0
0
0
0
0.043628
0.24654
1,156
49
92
23.591837
0.732491
0.141003
0
0
0
0
0.008222
0
0
0
0
0
0
1
0.142857
false
0
0.178571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4e19e9928517728d0a9a1ccaaa4cb714b4df75b
197
py
Python
Python/count-negative-numbers-in-a-sorted-matrix.py
kuanhungchen/leetcode-practice
b75e773ada60b685da1576ae5f2234b70bc27842
[ "CNRI-Python" ]
1
2020-04-29T06:19:44.000Z
2020-04-29T06:19:44.000Z
Python/count-negative-numbers-in-a-sorted-matrix.py
kuanhungchen/leetcode-practice
b75e773ada60b685da1576ae5f2234b70bc27842
[ "CNRI-Python" ]
null
null
null
Python/count-negative-numbers-in-a-sorted-matrix.py
kuanhungchen/leetcode-practice
b75e773ada60b685da1576ae5f2234b70bc27842
[ "CNRI-Python" ]
null
null
null
class Solution: def countNegatives(self, grid): ans = 0 for row in grid: for ele in row: if ele < 0: ans += 1 return ans
21.888889
35
0.426396
23
197
3.652174
0.652174
0
0
0
0
0
0
0
0
0
0
0.03125
0.51269
197
8
36
24.625
0.84375
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e4e259912dc8fab0fc123e2bde02cc765fe32ec1
3,740
py
Python
src/text_computation/computeCorrs.py
levon003/wiki-ores-feedback
29e7f1a41b16a7c57448d5bbc5801653debbc115
[ "MIT" ]
2
2022-03-27T19:24:30.000Z
2022-03-29T16:15:31.000Z
src/text_computation/computeCorrs.py
levon003/wiki-ores-feedback
29e7f1a41b16a7c57448d5bbc5801653debbc115
[ "MIT" ]
1
2021-04-23T21:03:45.000Z
2021-04-23T21:03:45.000Z
src/text_computation/computeCorrs.py
levon003/wiki-ores-feedback
29e7f1a41b16a7c57448d5bbc5801653debbc115
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Simple script to compute correlations for inserted and removed tokens import numpy as np import pandas as pd from tqdm import tqdm import os import sqlite3 from datetime import datetime import scipy.stats import scipy.sparse def create_array(token_index, db, total=9584147): token_indicat...
46.17284
191
0.699465
542
3,740
4.51107
0.273063
0.055215
0.074438
0.02454
0.391411
0.343558
0.265849
0.222495
0.198773
0.198773
0
0.02053
0.192513
3,740
80
192
46.75
0.789073
0.024332
0
0
0
0
0.186729
0.094598
0
0
0
0
0
1
0.03125
false
0
0.125
0
0.171875
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4e47a927be1df6a8c7ab23bada3a5ee286f11b3
590
py
Python
bootstrapvz/plugins/insecure/tasks.py
null0000/bootstrap-vz
003cdd9808bac90383b4c46738507bd7e1daa268
[ "Apache-2.0" ]
null
null
null
bootstrapvz/plugins/insecure/tasks.py
null0000/bootstrap-vz
003cdd9808bac90383b4c46738507bd7e1daa268
[ "Apache-2.0" ]
null
null
null
bootstrapvz/plugins/insecure/tasks.py
null0000/bootstrap-vz
003cdd9808bac90383b4c46738507bd7e1daa268
[ "Apache-2.0" ]
null
null
null
from bootstrapvz.base import Task from bootstrapvz.common import phases import os import shutil class EnableInsecureAccess(Task): description = 'Enabling shell access via /dev/ttyS1' phase = phases.system_modification @classmethod def run(cls, info): # Append a line to /etc/inittab launching /bin/bash on # /...
31.052632
81
0.754237
83
590
5.228916
0.578313
0.110599
0.082949
0
0
0
0
0
0
0
0
0.005871
0.133898
590
18
82
32.777778
0.843444
0.108475
0
0
0
0
0.116635
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.615385
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
e4e647dd3b9fc6ab9ed936f939be2c4d02a9c3ed
446,260
py
Python
rl_agents/awac_agent_4_20_1_norm_v1-225_deterministic.py
IsaiahPressman/Kaggle_Santa_2020
ff5c6aa78dbe234cef338f4c721cc30d7dbc3df8
[ "MIT" ]
null
null
null
rl_agents/awac_agent_4_20_1_norm_v1-225_deterministic.py
IsaiahPressman/Kaggle_Santa_2020
ff5c6aa78dbe234cef338f4c721cc30d7dbc3df8
[ "MIT" ]
null
null
null
rl_agents/awac_agent_4_20_1_norm_v1-225_deterministic.py
IsaiahPressman/Kaggle_Santa_2020
ff5c6aa78dbe234cef338f4c721cc30d7dbc3df8
[ "MIT" ]
null
null
null
serialized_string = b'gAN9cQBYEAAAAG1vZGVsX3N0YXRlX2RpY3RxAWNjb2xsZWN0aW9ucwpPcmRlcmVkRGljdApxAilScQMoWCEAAABiYXNlLmxheWVycy4wLm1lc3NhZ2VfcGFzc2luZ19tYXRxBGN0b3JjaC5fdXRpbHMKX3JlYnVpbGRfdGVuc29yX3YyCnEFKGN0b3JjaC5zdG9yYWdlCl9sb2FkX2Zyb21fYnl0ZXMKcQZCPJ0AAIACigps/JxG+SBqqFAZLoACTekDLoACfXEAKFgQAAAAcHJvdG9jb2xfdmVyc2lvbn...
1,576.890459
434,799
0.935325
26,029
446,260
16.020554
0.062776
1.562162
2.268459
2.924899
0.848355
0.847467
0.846673
0.846314
0.846009
0.845333
0
0.175195
0.006835
446,260
282
434,800
1,582.48227
0.765666
0.001474
0
0.413636
0
0.004545
0.977073
0.976785
0
1
0
0.003546
0.004545
1
0.109091
false
0.036364
0.022727
0.004545
0.222727
0
0
0
1
null
1
1
1
1
1
1
1
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
15
e4e8ee9a0f629d72298e4d9e7b1a98a2e8e24f7f
368
py
Python
server/apps/gallery/models.py
arthamtrust/backend
d1981766297b1cf2888b37af927f69fde750a23e
[ "MIT" ]
null
null
null
server/apps/gallery/models.py
arthamtrust/backend
d1981766297b1cf2888b37af927f69fde750a23e
[ "MIT" ]
null
null
null
server/apps/gallery/models.py
arthamtrust/backend
d1981766297b1cf2888b37af927f69fde750a23e
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Gallery(models.Model): """ Model for gallery. Cards with title and thumbnail along with a link to google album """ title = models.CharField(max_length=200) thumbnail = models.CharField(max_length=100) url = models.URLField() ...
21.647059
53
0.682065
49
368
5
0.693878
0.122449
0.146939
0.195918
0
0
0
0
0
0
0
0.021201
0.230978
368
16
54
23
0.844523
0.296196
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
3
e4ea2ae722c04bf641f0c113ed3f17b5c66cdf13
1,687
py
Python
CandCPP/exp.py
Mem2019/MyCTFChallenges
cae1e7435739b9949610771cea7771014e896b18
[ "MIT" ]
6
2018-06-21T00:50:23.000Z
2021-07-06T06:21:04.000Z
CandCPP/exp.py
Mem2019/MyCTFChallenges
cae1e7435739b9949610771cea7771014e896b18
[ "MIT" ]
null
null
null
CandCPP/exp.py
Mem2019/MyCTFChallenges
cae1e7435739b9949610771cea7771014e896b18
[ "MIT" ]
3
2018-10-27T13:12:49.000Z
2021-06-02T05:37:12.000Z
from pwn import * g_local=False e=ELF('/lib/x86_64-linux-gnu/libc-2.23.so') context.log_level='debug' if g_local: sh = process('./candcpp')#, env={'LD_PRELOAD':'./libc-2.23.so'}) gdb.attach(sh) else: sh = remote('154.8.222.144', 9999) MAIN_FUNC = 0x4009A0 LEAK_FUNC = 0x400E10 NAME_BUF = 0x602328 def init_name(nam...
20.325301
65
0.665086
284
1,687
3.883803
0.338028
0.139619
0.054397
0.065277
0.248413
0.196736
0.196736
0.174071
0.174071
0.174071
0
0.079181
0.131595
1,687
82
66
20.573171
0.67372
0.031417
0
0.222222
0
0
0.135218
0.020897
0
0
0.0252
0
0
0
null
null
0
0.015873
null
null
0.015873
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e4ea6b87c9f84a19ddcae37e83769662706b405e
2,164
py
Python
test_interactions.py
testlnord/bomberman
15d52073f26df970a0548e07b79514061017c73e
[ "Apache-2.0" ]
null
null
null
test_interactions.py
testlnord/bomberman
15d52073f26df970a0548e07b79514061017c73e
[ "Apache-2.0" ]
null
null
null
test_interactions.py
testlnord/bomberman
15d52073f26df970a0548e07b79514061017c73e
[ "Apache-2.0" ]
null
null
null
def player_interaction(player, object): if object[0] == 'coin': old_objects.append(object) game_objects[player]['coins'] += 1 def wave_interaction(wave, object): if object[0] == 'player' or object[0] == 'soft_wall': old_objects.append(object) ################3 old_objects = [] ga...
26.390244
103
0.636322
243
2,164
5.514403
0.176955
0.104478
0.11194
0.125373
0.502985
0.376119
0.326866
0.287313
0.206716
0.206716
0
0.026776
0.154344
2,164
81
104
26.716049
0.705464
0.000462
0
0.385965
0
0
0.172575
0
0
0
0
0
0.210526
1
0.070175
false
0.122807
0
0
0.070175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e4eb75089052398010f0fca752c0fa03e64af7f4
206
py
Python
trade_system/users/admin.py
Artsiom-Shlapakou/trade-system
41c7bd6779b159d1c867968f5230d4ccbc37995a
[ "MIT" ]
null
null
null
trade_system/users/admin.py
Artsiom-Shlapakou/trade-system
41c7bd6779b159d1c867968f5230d4ccbc37995a
[ "MIT" ]
null
null
null
trade_system/users/admin.py
Artsiom-Shlapakou/trade-system
41c7bd6779b159d1c867968f5230d4ccbc37995a
[ "MIT" ]
null
null
null
from django.contrib import admin from trade_system.users.models import Wallet from django.contrib.auth import get_user_model User = get_user_model() admin.site.register(User) admin.site.register(Wallet)
20.6
46
0.825243
32
206
5.15625
0.5
0.121212
0.206061
0
0
0
0
0
0
0
0
0
0.097087
206
9
47
22.888889
0.887097
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
e4ec28c7bf7bd90f9b875de7df12fd87fba4eede
4,961
py
Python
atlas/foundations_contrib/src/test/models/test_queued_job.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
296
2020-03-16T19:55:00.000Z
2022-01-10T19:46:05.000Z
atlas/foundations_contrib/src/test/models/test_queued_job.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
57
2020-03-17T11:15:57.000Z
2021-07-10T14:42:27.000Z
atlas/foundations_contrib/src/test/models/test_queued_job.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
38
2020-03-17T21:06:05.000Z
2022-02-08T03:19:34.000Z
import unittest from mock import Mock from foundations_spec.helpers import let, let_patch_mock, let_patch_instance, set_up from foundations_spec.helpers.spec import Spec from foundations_contrib.models.queued_job import QueuedJob from fakeredis import FakeRedis class TestQueuedJob(Spec): mock_time = let_patc...
31.598726
97
0.702882
656
4,961
4.96189
0.126524
0.058372
0.043932
0.0553
0.621813
0.546237
0.531797
0.458065
0.423041
0.397849
0
0.00512
0.212659
4,961
156
98
31.801282
0.828213
0
0
0.37069
0
0
0.018952
0.009879
0
0
0
0
0.077586
1
0.215517
false
0
0.163793
0.051724
0.517241
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
e4efdb84b5f54430d099fe1b59a9b2291a76ef7a
1,400
py
Python
cidc_utils/caching/credential_cache.py
CIMAC-CIDC/cidc-utils
2f2cf82007a3a67971293752e1dc168a7aad10e3
[ "MIT" ]
null
null
null
cidc_utils/caching/credential_cache.py
CIMAC-CIDC/cidc-utils
2f2cf82007a3a67971293752e1dc168a7aad10e3
[ "MIT" ]
null
null
null
cidc_utils/caching/credential_cache.py
CIMAC-CIDC/cidc-utils
2f2cf82007a3a67971293752e1dc168a7aad10e3
[ "MIT" ]
null
null
null
""" Defines caching before for user preferences """ import jwt import time from cachetools import TTLCache from typing import Optional class CredentialCache(TTLCache): """ Subclass of TTLCache that temporarily stores and retreives user login credentials Arguments: TTLCache {TTLCache} -- A TTLCac...
27.45098
102
0.534286
146
1,400
5.054795
0.479452
0.134146
0.142276
0.054201
0
0
0
0
0
0
0
0
0.379286
1,400
50
103
28
0.849252
0.24
0
0.083333
0
0
0.212876
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.416667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e4f1e6378706bc71078bf3d61ef72f03d3aa0d3c
3,013
py
Python
tests/test_simple_polygon.py
CompMaterSci/python-geometry
403244252b9d8521cd4d001ec63cd768d75f5393
[ "BSD-3-Clause" ]
3
2016-07-12T13:22:53.000Z
2019-09-20T07:48:02.000Z
tests/test_simple_polygon.py
CompMaterSci/python-geometry
403244252b9d8521cd4d001ec63cd768d75f5393
[ "BSD-3-Clause" ]
3
2016-12-07T07:20:33.000Z
2017-02-08T09:14:58.000Z
tests/test_simple_polygon.py
CompMaterSci/python-geometry
403244252b9d8521cd4d001ec63cd768d75f5393
[ "BSD-3-Clause" ]
5
2016-07-13T10:40:29.000Z
2020-07-01T07:20:41.000Z
# -*- coding: utf-8 -*- from numpy import array from numpy.testing import assert_allclose from python_geometry.simple_polygon import SimplePolygon class TestEquality(object): def test_SelfPolygon_ReturnTrue(self): polygon = SimplePolygon( vertices=[ (0, 0, 0), ...
27.144144
71
0.419184
284
3,013
4.295775
0.133803
0.072131
0.071311
0.062295
0.62541
0.612295
0.553279
0.553279
0.455738
0.455738
0
0.09589
0.466976
3,013
110
72
27.390909
0.663761
0.00697
0
0.793814
0
0
0
0
0
0
0
0
0.082474
1
0.072165
false
0
0.030928
0
0.123711
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e4f26ad224253d8b9e159c457b1fb5ec0f23c562
3,432
py
Python
docs/api/model_selection/validation_curve.py
souravsingh/yellowbrick
a5941a6c47fbe5264f3622bc15276ba618bbe1d0
[ "Apache-2.0" ]
1
2019-01-02T20:18:17.000Z
2019-01-02T20:18:17.000Z
docs/api/model_selection/validation_curve.py
souravsingh/yellowbrick
a5941a6c47fbe5264f3622bc15276ba618bbe1d0
[ "Apache-2.0" ]
1
2018-12-26T19:50:41.000Z
2018-12-30T18:51:43.000Z
docs/api/model_selection/validation_curve.py
souravsingh/yellowbrick
a5941a6c47fbe5264f3622bc15276ba618bbe1d0
[ "Apache-2.0" ]
1
2021-08-19T02:29:43.000Z
2021-08-19T02:29:43.000Z
#!/usr/bin/env python3 # validation_curve.py """ Generates the validation curve visualizations for the documentation """ ########################################################################## ## Imports ########################################################################## import os import numpy as np import...
28.840336
89
0.595862
404
3,432
4.873762
0.269802
0.106653
0.076181
0.050787
0.486034
0.429152
0.387506
0.387506
0.387506
0.352463
0
0.010449
0.163462
3,432
118
90
29.084746
0.675374
0.050699
0
0.4
1
0
0.116512
0.057184
0
0
0
0
0
1
0.057143
false
0
0.142857
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e4f3f5b2d09517330825637d500809f9259e85f8
14,722
py
Python
eval/vqa_data_provider_layer.py
minsuu/vqa_mcb
cb04e7cd1ceba4e7508024e5dbdfe08d1575b007
[ "BSD-2-Clause" ]
214
2016-07-13T00:17:44.000Z
2022-01-28T07:06:07.000Z
eval/vqa_data_provider_layer.py
afcarl/vqa-mcb
172775b2ec927456eecbe1aa5878b673482f2a54
[ "BSD-2-Clause" ]
23
2016-07-14T07:45:59.000Z
2019-08-15T02:56:34.000Z
eval/vqa_data_provider_layer.py
afcarl/vqa-mcb
172775b2ec927456eecbe1aa5878b673482f2a54
[ "BSD-2-Clause" ]
87
2016-07-12T18:20:32.000Z
2021-10-30T16:44:33.000Z
import caffe import numpy as np import random import os import sys import re import json import spacy from operator import mul GLOVE_EMBEDDING_SIZE = 300 CURRENT_DATA_SHAPE = None SPATIAL_COORD = None GLOVE = None class LoadVQADataProvider: def __init__(self, ques_file_path, img_file_pre, vdict_path, adict_pat...
35.73301
111
0.53831
1,964
14,722
3.837576
0.139511
0.028659
0.030251
0.026005
0.392331
0.352262
0.299721
0.274778
0.232453
0.205519
0
0.013631
0.342209
14,722
411
112
35.819951
0.764663
0.046054
0
0.265574
0
0.039344
0.039639
0.001974
0
0
0
0
0.003279
0
null
null
0.013115
0.029508
null
null
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e4f43253efd72ee6f97db976bf7d874a78157c8f
347
py
Python
psim/packages/tictoc/__init__.py
bburns/psimPython
610321313a220bc413560daaf64ff2274ae05c02
[ "MIT" ]
null
null
null
psim/packages/tictoc/__init__.py
bburns/psimPython
610321313a220bc413560daaf64ff2274ae05c02
[ "MIT" ]
null
null
null
psim/packages/tictoc/__init__.py
bburns/psimPython
610321313a220bc413560daaf64ff2274ae05c02
[ "MIT" ]
null
null
null
""" tictoc matlab-like tic and toc functions see https://stackoverflow.com/questions/5849800/what-is-the-python-equivalent-of-matlabs-tic-and-toc-functions """ import time tics = [] def tic(): tics.append(time.process_time()) def toc(): if len(tics) == 0: return None else: return time.p...
17.35
110
0.665706
49
347
4.673469
0.673469
0.052402
0.078603
0.157205
0
0
0
0
0
0
0
0.028269
0.184438
347
19
111
18.263158
0.780919
0.435159
0
0
0
0
0
0
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