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
57e128ea490ce4054b3b3e3217095daaedc9be46
2,386
py
Python
tests/test_url.py
upymake/uurl
d4fcb0a2bd177203b3f980c1ded3da60e912b51a
[ "MIT" ]
null
null
null
tests/test_url.py
upymake/uurl
d4fcb0a2bd177203b3f980c1ded3da60e912b51a
[ "MIT" ]
2
2020-08-16T21:18:25.000Z
2021-09-18T07:56:10.000Z
tests/test_url.py
upymake/uurl
d4fcb0a2bd177203b3f980c1ded3da60e912b51a
[ "MIT" ]
null
null
null
import pytest from uurl.host import Host from uurl.path import Path, UrlPath from uurl.protocol import HttpProtocol, Protocol from uurl.url import Address, Url _host: str = '9.9.9.9' _path: str = '/api/path' pytestmark = pytest.mark.unit @pytest.fixture(scope='module') def host() -> Host: yield Host('example.co...
28.404762
100
0.738055
330
2,386
5.00303
0.118182
0.167171
0.101757
0.138098
0.727438
0.623864
0.545124
0.434282
0.405815
0.350091
0
0.001944
0.137469
2,386
83
101
28.746988
0.800292
0
0
0.298246
0
0
0.106454
0.073764
0
0
0
0
0.105263
1
0.210526
false
0
0.087719
0
0.298246
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
57e2a4adce43a936efc68129fc66c26cd04cf0b8
6,140
py
Python
server/serve_demo.py
eugenius1/esys-cw1
9e36f5773162d41e2dc3c73df542315d094ccac0
[ "MIT" ]
1
2020-08-27T19:04:09.000Z
2020-08-27T19:04:09.000Z
server/serve_demo.py
eugenius1/esys-cw1
9e36f5773162d41e2dc3c73df542315d094ccac0
[ "MIT" ]
null
null
null
server/serve_demo.py
eugenius1/esys-cw1
9e36f5773162d41e2dc3c73df542315d094ccac0
[ "MIT" ]
null
null
null
import string import os import json import paho.mqtt.client as mqtt from bottle import route, run, template, static_file debug = True if debug: broker_ip = '127.0.0.1' else: broker_ip = '192.168.0.10' mqtt_topic = "esys/GreenRhino/geiger" # keys of Geiger JSON object with data data_keys = ['count_per_minut...
29.95122
208
0.62101
768
6,140
4.835938
0.377604
0.052773
0.019386
0.022617
0.07916
0.05035
0.05035
0.030156
0.030156
0.030156
0
0.029298
0.243974
6,140
204
209
30.098039
0.770788
0.100977
0
0.096774
0
0.03871
0.534617
0.14592
0
0
0
0
0
1
0.045161
false
0.090323
0.032258
0.006452
0.096774
0.058065
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
57eff897ff2ab08d58fc031972cc6cd02f2d936a
1,569
py
Python
mechanic/base_test_agent.py
oxrock/DisasterBot
36260e9ef8730edbae018ba87aa19aaad72c8814
[ "MIT" ]
11
2018-11-18T09:30:39.000Z
2021-08-24T18:47:48.000Z
mechanic/base_test_agent.py
oxrock/DisasterBot
36260e9ef8730edbae018ba87aa19aaad72c8814
[ "MIT" ]
6
2020-01-31T11:37:56.000Z
2020-05-01T19:13:54.000Z
mechanic/base_test_agent.py
oxrock/DisasterBot
36260e9ef8730edbae018ba87aa19aaad72c8814
[ "MIT" ]
7
2018-11-17T20:02:19.000Z
2020-05-01T15:07:13.000Z
import time from rlbot.agents.base_agent import SimpleControllerState from skeleton import SkeletonAgent from .base_mechanic import BaseMechanic class BaseTestAgent(SkeletonAgent): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.mechanic = self.create_mechanic() ...
32.020408
61
0.657106
156
1,569
6.416667
0.326923
0.083916
0.071928
0.065934
0.14985
0.14985
0.14985
0.14985
0
0
0
0.002575
0.257489
1,569
48
62
32.6875
0.856652
0
0
0.210526
0
0
0.017846
0
0
0
0
0
0
1
0.157895
false
0.052632
0.105263
0
0.342105
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
57f1fbae09aa660f26667a1aef32111eaa06bd8f
406
py
Python
describe_net.py
leocus/snps
31bbaf139903201b40600cc52516cbf12b66021a
[ "BSD-3-Clause" ]
null
null
null
describe_net.py
leocus/snps
31bbaf139903201b40600cc52516cbf12b66021a
[ "BSD-3-Clause" ]
null
null
null
describe_net.py
leocus/snps
31bbaf139903201b40600cc52516cbf12b66021a
[ "BSD-3-Clause" ]
null
null
null
import pickle import numpy as np w = pickle.load(open("winner.pkl", "rb")) nodes = w.nodes connections = w.connections for i, v in nodes.items(): print(f"Node {i}") print(f"\tc: {v.c1}") print(f"\tp: {v.p1}") print(f"\td: {v.d1}") print("\tCONNECTIONS") for j, cv in connections.items(): ...
20.3
53
0.55665
69
406
3.275362
0.536232
0.132743
0
0
0
0
0
0
0
0
0
0.016129
0.236453
406
19
54
21.368421
0.712903
0
0
0
0
0
0.238916
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
57f3df9abfea6c29a1522bf156216d70d1c1fec3
2,164
py
Python
stackmud/settings.py
whutch/stackmud
461bd17b833269d30a20e30dba79d75cec5c498c
[ "MIT" ]
1
2021-07-16T19:40:17.000Z
2021-07-16T19:40:17.000Z
stackmud/settings.py
whutch/stackmud
461bd17b833269d30a20e30dba79d75cec5c498c
[ "MIT" ]
null
null
null
stackmud/settings.py
whutch/stackmud
461bd17b833269d30a20e30dba79d75cec5c498c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Setting registration and management.""" # Part of StackMUD (https://github.com/whutch/stackmud) # :copyright: (c) 2022 Will Hutcheson # :license: MIT (https://github.com/whutch/stackmud/blob/master/LICENSE.txt) from .utils import Manager class Unset: """A sentinel value that we can dis...
25.458824
76
0.618299
258
2,164
4.965116
0.341085
0.063232
0.031226
0.049961
0.221702
0.082748
0.082748
0.082748
0.082748
0.082748
0
0.003209
0.280037
2,164
84
77
25.761905
0.818999
0.1622
0
0.2
0
0
0.041736
0
0
0
0
0
0
1
0.181818
false
0.054545
0.018182
0
0.454545
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
17a729129d0c5abff1aaee03fe6b0b5ff64da8a6
48,559
py
Python
autodoc.py
snaphat/angler_gnss_fixer
3026d387d5a67dbe5b8e1fc813717f174e179ede
[ "MIT" ]
4
2019-10-29T05:50:34.000Z
2020-01-19T06:39:32.000Z
autodoc.py
snaphat/auto-doc
19d30966002839aa6252274a9d78293ab5b0866b
[ "MIT" ]
1
2020-03-06T15:59:32.000Z
2020-03-06T15:59:32.000Z
autodoc.py
snaphat/auto-doc
19d30966002839aa6252274a9d78293ab5b0866b
[ "MIT" ]
null
null
null
import distutils.dir_util #for multiple file copy. import getpass #for username. import glob #for globbing paths. import os #fs stat and path check. import re #regex. import shutil #move and copy files. import string #for string replacal. ...
36.373783
229
0.442328
4,234
48,559
5.049362
0.151393
0.018523
0.004911
0.01277
0.32719
0.262688
0.208382
0.181767
0.163806
0.150989
0
0.005302
0.316337
48,559
1,334
230
36.401049
0.638683
0.350934
0
0.344768
0
0.015437
0.079966
0.002768
0
0
0.000651
0.00075
0
0
null
null
0.012007
0.027444
null
null
0.080618
0
0
0
null
0
0
0
0
0
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
17a7a844fdea991807237122b683bd4a9c3e0ed9
1,787
py
Python
cognigraph/helpers/matrix_functions.py
cognigraphtravis/cognigraph
cfed2a32a4b22b15687b13b40a52e54fdbed703a
[ "MIT" ]
3
2019-03-02T08:59:25.000Z
2019-06-16T20:20:07.000Z
cognigraph/helpers/matrix_functions.py
cognigraphtravis/cognigraph
cfed2a32a4b22b15687b13b40a52e54fdbed703a
[ "MIT" ]
24
2019-04-01T14:52:16.000Z
2019-11-12T18:10:37.000Z
cognigraph/helpers/matrix_functions.py
cognigraphtravis/cognigraph
cfed2a32a4b22b15687b13b40a52e54fdbed703a
[ "MIT" ]
6
2018-12-11T12:42:14.000Z
2019-10-01T14:03:25.000Z
import numpy as np from .. import TIME_AXIS, CHANNEL_AXIS def make_time_dimension_second(ndarray: np.ndarray): """ To different people chunks of data are either TIME x CHANNEL or CHANNEL x TIME. We don't want to impose our preference on users so this can be set with TIME_AXIS constant. But at times we do nee...
30.288136
115
0.679351
283
1,787
4.056537
0.371025
0.083624
0.043554
0.052265
0.229094
0.212544
0.137631
0.137631
0.137631
0.08885
0
0.010065
0.2216
1,787
58
116
30.810345
0.815241
0.26413
0
0.4
0
0
0.010786
0
0
0
0
0
0
1
0.171429
false
0
0.057143
0.028571
0.514286
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
17ab30c251ed7a3c106fa2ce6620bf912ef5783a
1,227
py
Python
server/zeta_basic/ERRORS/Error.py
bennaaym/Zeta-Basic
7fcc0acbb37146e7c5a5c05000af72a99d102b8f
[ "MIT" ]
3
2021-07-16T08:12:52.000Z
2022-03-20T11:30:53.000Z
server/zeta_basic/ERRORS/Error.py
bennaaym/zeta-basic
7fcc0acbb37146e7c5a5c05000af72a99d102b8f
[ "MIT" ]
null
null
null
server/zeta_basic/ERRORS/Error.py
bennaaym/zeta-basic
7fcc0acbb37146e7c5a5c05000af72a99d102b8f
[ "MIT" ]
null
null
null
class Error : def __init__(self,name,details,position): self.name = name self.details = details self.position = position def __str__(self): return f'Error : {self.name} -> {self.details} | line :{self.position.line} col : {self.position.col}' class IllegalCharError(Erro...
27.886364
136
0.631622
128
1,227
5.773438
0.195313
0.142084
0.064953
0.086604
0.320704
0.320704
0.278755
0.278755
0.170501
0.170501
0
0
0.246129
1,227
44
137
27.886364
0.798919
0
0
0.142857
0
0.071429
0.21987
0.034202
0
0
0
0
0
1
0.25
false
0
0
0.071429
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
17aca2aace28864962740c8dec0b80da97115b01
4,732
py
Python
main.py
codacy-badger/mayday-ticketing-bot
7cbb1d201ececd2eb879c047e2cf7588862eb89f
[ "MIT" ]
null
null
null
main.py
codacy-badger/mayday-ticketing-bot
7cbb1d201ececd2eb879c047e2cf7588862eb89f
[ "MIT" ]
null
null
null
main.py
codacy-badger/mayday-ticketing-bot
7cbb1d201ececd2eb879c047e2cf7588862eb89f
[ "MIT" ]
null
null
null
from telegram.ext import (CallbackQueryHandler, CommandHandler, ConversationHandler, Filters, MessageHandler, RegexHandler, Updater) import mayday from mayday import AppConfig, LogConfig from mayday.constants import stages from mayday.constants.replykeyboards import ReplyKeyboards from mayda...
40.793103
109
0.640744
495
4,732
5.808081
0.246465
0.086261
0.104348
0.13913
0.355826
0.331478
0.293217
0.202087
0.163826
0.163826
0
0.002632
0.277473
4,732
115
110
41.147826
0.838257
0.071217
0
0.222222
0
0
0.018717
0
0
0
0
0
0
1
0.011111
false
0.277778
0.066667
0
0.077778
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
17af74519f14bed3a1210254ba536b52fe6fc507
2,607
py
Python
auth.py
dan-danciu/tbos-auth
24b0c75f6f7b4f12e11c46fd39aab91997f40455
[ "MIT" ]
null
null
null
auth.py
dan-danciu/tbos-auth
24b0c75f6f7b4f12e11c46fd39aab91997f40455
[ "MIT" ]
1
2021-04-30T20:42:31.000Z
2021-04-30T20:42:31.000Z
auth.py
dan-danciu/tbos-auth
24b0c75f6f7b4f12e11c46fd39aab91997f40455
[ "MIT" ]
null
null
null
from __future__ import print_function from google.auth.transport import requests from google.oauth2 import id_token import boto3 def generatePolicy(principalId, userDetails, effect, methodArn): authResponse = {} authResponse['principalId'] = principalId if effect and methodArn: policyDoc...
36.71831
88
0.586114
213
2,607
7.084507
0.441315
0.013917
0.047714
0.019881
0.060968
0.060968
0.060968
0
0
0
0
0.026184
0.311469
2,607
70
89
37.242857
0.814485
0.198312
0
0.043478
1
0
0.181546
0.03591
0
0
0
0
0
1
0.043478
false
0
0.086957
0
0.217391
0.021739
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
17b9b469a76ba84d6da4cc2d4fcf4d82bbef0f34
5,752
py
Python
SimPEG/Utils/interputils.py
KyuboNoh/HY
8ba9815137c2cff2f1931a1940e1b762e8df0b02
[ "MIT" ]
1
2020-11-27T03:26:22.000Z
2020-11-27T03:26:22.000Z
SimPEG/Utils/interputils.py
KyuboNoh/HY
8ba9815137c2cff2f1931a1940e1b762e8df0b02
[ "MIT" ]
null
null
null
SimPEG/Utils/interputils.py
KyuboNoh/HY
8ba9815137c2cff2f1931a1940e1b762e8df0b02
[ "MIT" ]
null
null
null
import numpy as np import scipy.sparse as sp from matutils import mkvc, sub2ind, spzeros try: import interputils_cython as pyx _interp_point_1D = pyx._interp_point_1D _interpmat1D = pyx._interpmat1D _interpmat2D = pyx._interpmat2D _interpmat3D = pyx._interpmat3D _interpCython = True except Impo...
30.433862
88
0.513561
816
5,752
3.465686
0.210784
0.035361
0.036775
0.021216
0.450849
0.366337
0.320368
0.30198
0.289958
0.289958
0
0.054461
0.364743
5,752
188
89
30.595745
0.719486
0.006259
0
0.201681
0
0
0.031103
0
0
0
0
0
0
0
null
null
0
0.058824
null
null
0.008403
0
0
0
null
0
0
0
0
0
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
17bc505ea926cc10e0e41a37d46dd3dde813c0d4
21,388
py
Python
pipeline2.0/lib/python/DDplan2b.py
federatedcloud/transients_pipeline2
5a919e3141c4721454584159b5d74bd17c07e377
[ "BSD-3-Clause" ]
null
null
null
pipeline2.0/lib/python/DDplan2b.py
federatedcloud/transients_pipeline2
5a919e3141c4721454584159b5d74bd17c07e377
[ "BSD-3-Clause" ]
null
null
null
pipeline2.0/lib/python/DDplan2b.py
federatedcloud/transients_pipeline2
5a919e3141c4721454584159b5d74bd17c07e377
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import optparse import sys import numpy as np # Import matplotlib/pylab and set for non-interactive plots import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import psr_utils """ Given observation parameters and a acceptable time resolution generate a dedispersion plan. T...
44.190083
110
0.538059
2,602
21,388
4.33359
0.180246
0.022348
0.017293
0.011972
0.294697
0.234924
0.18934
0.144289
0.134356
0.106066
0
0.02532
0.350009
21,388
483
111
44.281574
0.785786
0.064896
0
0.139073
0
0.003311
0.133645
0.002705
0
0
0
0
0
0
null
null
0.003311
0.019868
null
null
0.043046
0
0
0
null
0
0
0
0
0
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
17bf821a794c80dab0f6aa38c3c8cf6f64a00df3
1,021
py
Python
src/clean.py
NZN/OpenGraph-Net
a64d5bb5c867aa53d6fb174c6101ff01bdd016ed
[ "Unlicense" ]
10
2015-03-12T19:11:22.000Z
2021-03-12T11:02:43.000Z
src/clean.py
NZN/OpenGraph-Net
a64d5bb5c867aa53d6fb174c6101ff01bdd016ed
[ "Unlicense" ]
null
null
null
src/clean.py
NZN/OpenGraph-Net
a64d5bb5c867aa53d6fb174c6101ff01bdd016ed
[ "Unlicense" ]
2
2018-01-15T00:36:25.000Z
2019-07-22T12:59:40.000Z
''' Created on Sep 19, 2011 @author: Geoff ''' import os import shutil def removeDir(path): print 'Removing {0}'.format(path) shutil.rmtree(path) def recurseDir(rootPath, item, action, depth=0, maxDepth = 0): dirs = [ d.lower() for d in os.listdir(rootPath) ] if item.lower() in dirs: pat...
30.029412
168
0.61998
141
1,021
4.432624
0.333333
0.0672
0.08
0.144
0.3136
0.3136
0.3136
0.3136
0.3136
0.2048
0
0.016753
0.239961
1,021
34
169
30.029412
0.78866
0
0
0.086957
0
0
0.026667
0
0
0
0
0
0
0
null
null
0
0.130435
null
null
0.043478
0
0
0
null
0
0
0
0
0
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
17c4ddf924188c412749fff26f1eda5f9989fb73
881
py
Python
ex075 - Análise de dados em uma tupla.py
marvincosmo/Python-Curso-em-Video
47ee3dd6423835e7bca159ffd7ee796423569176
[ "MIT" ]
null
null
null
ex075 - Análise de dados em uma tupla.py
marvincosmo/Python-Curso-em-Video
47ee3dd6423835e7bca159ffd7ee796423569176
[ "MIT" ]
null
null
null
ex075 - Análise de dados em uma tupla.py
marvincosmo/Python-Curso-em-Video
47ee3dd6423835e7bca159ffd7ee796423569176
[ "MIT" ]
null
null
null
""" 75 - Desenvolva um programa que leia quatro valores pelo teclado e guarde-os em uma tupla. No final, mostre: A) Quantas vezes apareceu o valor 9. B) Em que posição foi digitado o primeiro valor 3. C) Quais foram os números pares. """ n = (int(input('Digite um número: ')), int(input('Digite outro número: ')), ...
36.708333
112
0.656073
155
881
3.729032
0.43871
0.062284
0.048443
0.083045
0.179931
0
0
0
0
0
0
0.024251
0.204313
881
23
113
38.304348
0.800285
0.259932
0
0.111111
0
0
0.524845
0
0
0
0
0
0
1
0
false
0
0
0
0
0.444444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
17cd5976f7f8e7d56352933cbea74b1a6b5d2f88
2,132
py
Python
code/tmp_rtrip/curses/ascii.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/curses/ascii.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/curses/ascii.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
"""Constants and membership tests for ASCII characters""" NUL = 0 SOH = 1 STX = 2 ETX = 3 EOT = 4 ENQ = 5 ACK = 6 BEL = 7 BS = 8 TAB = 9 HT = 9 LF = 10 NL = 10 VT = 11 FF = 12 CR = 13 SO = 14 SI = 15 DLE = 16 DC1 = 17 DC2 = 18 DC3 = 19 DC4 = 20 NAK = 21 SYN = 22 ETB = 23 CAN = 24 EM = 25 SUB = 26 ESC = 27 FS = 28 GS = ...
14.909091
72
0.511726
350
2,132
3.054286
0.348571
0.1029
0.06174
0.029935
0.186155
0.117867
0.072965
0.072965
0.072965
0
0
0.11193
0.300188
2,132
142
73
15.014085
0.604558
0.023921
0
0.089109
0
0
0.042892
0
0
0
0
0
0
1
0.19802
false
0
0
0.148515
0.445545
0.019802
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
17cf4ae90af73ee1ae24bf91e691b0687089ffc5
382
py
Python
Exp_4/DFS.py
shivankarora/18CSC305J_AI_Lab
e6671ba3a48c4183f1cb861d744aa20997841c1c
[ "MIT" ]
null
null
null
Exp_4/DFS.py
shivankarora/18CSC305J_AI_Lab
e6671ba3a48c4183f1cb861d744aa20997841c1c
[ "MIT" ]
null
null
null
Exp_4/DFS.py
shivankarora/18CSC305J_AI_Lab
e6671ba3a48c4183f1cb861d744aa20997841c1c
[ "MIT" ]
null
null
null
graph = { '5' : ['3','7'], '3' : ['2', '4'], '7' : ['8'], '2' : [], '4' : ['8'], '8' : [] } visited = set() def dfs(visited, graph, node): if node not in visited: print (node) visited.add(node) for neighbour in graph[node]: dfs(visited, graph, neighbour) # Drive...
17.363636
42
0.481675
49
382
3.755102
0.489796
0.163043
0.244565
0
0
0
0
0
0
0
0
0.04797
0.290576
382
21
43
18.190476
0.630996
0.028796
0
0
0
0
0.089431
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.058824
0.117647
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
17cf96167628b4c170a077329854d1632c1f53db
2,860
py
Python
integration_tests/environment_loader.py
CanopySimulations/canopy-python
9ec37e674e65d6fbef0402ac0c612c163d55631e
[ "MIT" ]
null
null
null
integration_tests/environment_loader.py
CanopySimulations/canopy-python
9ec37e674e65d6fbef0402ac0c612c163d55631e
[ "MIT" ]
1
2022-01-31T10:18:08.000Z
2022-01-31T10:18:08.000Z
integration_tests/environment_loader.py
CanopySimulations/canopy-python
9ec37e674e65d6fbef0402ac0c612c163d55631e
[ "MIT" ]
null
null
null
from typing import Optional import os import canopy import integration_tests import uuid import logging logger = logging.getLogger(__name__) _python_data_version = '1' class EnvironmentLoader: _data: Optional[integration_tests.EnvironmentData] = None @staticmethod async def load() -> integration_tests...
37.142857
181
0.631119
273
2,860
6.406593
0.289377
0.04574
0.037736
0.078902
0.033162
0
0
0
0
0
0
0.002975
0.294755
2,860
76
182
37.631579
0.864155
0
0
0.067797
0
0.016949
0.123776
0.051748
0
0
0
0
0
1
0
false
0.135593
0.101695
0
0.169492
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
17cfdbbfa2f953e12075bfcc2e49a210ae1d09c1
319
py
Python
irsdb/irsdb/local_settings.py-example.py
mjalkio/990-xml-database
2b7dabda666306cc776070755e1396cf8e30cec8
[ "BSD-2-Clause" ]
1
2021-07-07T09:27:44.000Z
2021-07-07T09:27:44.000Z
irsdb/irsdb/local_settings.py-example.py
jamesdunham/990-xml-database
53e74777fa77fb109b65b4ef2abceada5d04765f
[ "BSD-2-Clause" ]
null
null
null
irsdb/irsdb/local_settings.py-example.py
jamesdunham/990-xml-database
53e74777fa77fb109b65b4ef2abceada5d04765f
[ "BSD-2-Clause" ]
null
null
null
import os # local variables read into settings.py. # variables set here will override whatever's in settings.py DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': '', 'USER': '', 'PASSWORD': '', 'HOST': '', 'PORT': '', } }
18.764706
60
0.532915
31
319
5.451613
0.903226
0.118343
0
0
0
0
0
0
0
0
0
0.004484
0.30094
319
16
61
19.9375
0.753363
0.30721
0
0
0
0
0.345622
0.175115
0
0
0
0
0
1
0
false
0.090909
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
17d048703e44fb2a0deb73ee5fd79ac287e5a141
22,268
py
Python
source/oleTypes.py
marlon-sousa/nvda
83738d7d9150fb379083eb3918e9c78c78610489
[ "bzip2-1.0.6" ]
1,592
2015-11-10T12:05:44.000Z
2022-03-31T11:50:40.000Z
source/oleTypes.py
marlon-sousa/nvda
83738d7d9150fb379083eb3918e9c78c78610489
[ "bzip2-1.0.6" ]
9,479
2015-11-10T20:56:48.000Z
2022-03-31T23:51:30.000Z
source/oleTypes.py
marlon-sousa/nvda
83738d7d9150fb379083eb3918e9c78c78610489
[ "bzip2-1.0.6" ]
682
2015-11-10T11:19:23.000Z
2022-03-31T07:51:29.000Z
# typelib <unable to determine filename> _lcid = 0 # change this if required from ctypes import * WSTRING = c_wchar_p from comtypes import IUnknown LONG_PTR = c_int from comtypes import GUID from comtypes import IUnknown from ctypes import HRESULT from comtypes import helpstring from comtypes import COMMETHOD...
38.261168
119
0.634678
2,072
22,268
6.431467
0.153958
0.07324
0.015609
0.016509
0.284256
0.233754
0.16314
0.115188
0.103632
0.093351
0
0.0439
0.208236
22,268
581
120
38.327022
0.711928
0.002784
0
0.25734
0
0
0.13292
0.020627
0
0
0
0
0.127807
1
0
false
0.06563
0.027634
0
0.160622
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
17d322d9426a1fbd2f3003c110cc4bbd2cc5a139
11,185
py
Python
ibllib/tests/fixtures/utils.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
38
2018-08-07T21:55:29.000Z
2022-03-21T14:49:03.000Z
ibllib/tests/fixtures/utils.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
207
2018-07-25T15:10:48.000Z
2022-03-08T13:23:08.000Z
ibllib/tests/fixtures/utils.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
35
2018-09-04T14:49:56.000Z
2022-01-06T21:17:51.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Author: Niccolò Bonacchi # @Date: Friday, October 9th 2020, 12:02:56 pm import json from pathlib import Path def create_fake_session_folder( root_data_path, lab="fakelab", mouse="fakemouse", date="1900-01-01", num="001", increment=True ): root_data_path = Path(r...
40.821168
98
0.657309
1,440
11,185
4.738889
0.154861
0.075762
0.064039
0.07078
0.617819
0.58177
0.48476
0.404015
0.360639
0.349648
0
0.028498
0.23764
11,185
273
99
40.970696
0.770846
0.170943
0
0.365979
0
0
0.331719
0.286029
0
0
0
0
0
1
0.046392
false
0.087629
0.010309
0
0.087629
0.005155
0
0
0
null
0
0
0
0
0
0
0
0
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
17d3b9c6d474da05e694646bfe3fe8d23f73263a
1,301
py
Python
python-serv/core/cache.py
plvhx/efishery-backend-test
091a51534bc5259993debea2cb55a4f4548f3d07
[ "BSD-3-Clause" ]
null
null
null
python-serv/core/cache.py
plvhx/efishery-backend-test
091a51534bc5259993debea2cb55a4f4548f3d07
[ "BSD-3-Clause" ]
null
null
null
python-serv/core/cache.py
plvhx/efishery-backend-test
091a51534bc5259993debea2cb55a4f4548f3d07
[ "BSD-3-Clause" ]
null
null
null
import json import os import core.util as util def cache_key_exists(file, key): handler = open(file, "rb") buf = handler.read(1024) data = json.loads(buf) handler.close() try: data["data"][key] except KeyError as e: return False return True def put_cache_file(file, key...
18.585714
57
0.651038
191
1,301
4.235602
0.219895
0.077874
0.074166
0.088999
0.735476
0.709518
0.657602
0.657602
0.53152
0.53152
0
0.017804
0.222905
1,301
69
58
18.855072
0.782394
0
0
0.533333
0
0
0.015373
0
0
0
0
0
0
1
0.155556
false
0
0.066667
0.066667
0.4
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
17ddc841455a5dca1b53b8bbb3bbe1581b46bcf4
5,349
py
Python
tests/conftest.py
opus49/py3odb
79a4abceacd124cd0c63441f65c40b41afb3216b
[ "MIT" ]
1
2019-12-12T04:42:06.000Z
2019-12-12T04:42:06.000Z
tests/conftest.py
opus49/py3odb
79a4abceacd124cd0c63441f65c40b41afb3216b
[ "MIT" ]
6
2019-09-26T20:48:10.000Z
2020-11-20T02:52:07.000Z
tests/conftest.py
opus49/py3odb
79a4abceacd124cd0c63441f65c40b41afb3216b
[ "MIT" ]
1
2019-10-09T20:19:13.000Z
2019-10-09T20:19:13.000Z
"""Used to share fixtures among tests.""" import pathlib import pytest from .context import py3odb from .context import main MOCK_CURSOR_DATA = { "SELECT * FROM <odb>": { "description": ( ('lat@hdr', 2, None, None, None, None, None), ('lon@hdr', 2, None, None, None, None, None), ...
31.464706
91
0.615442
634
5,349
5.015773
0.200315
0.050314
0.056604
0.050314
0.453459
0.356918
0.311635
0.273899
0.198113
0.143082
0
0.013093
0.243223
5,349
169
92
31.650888
0.77248
0.15573
0
0.184211
0
0
0.127693
0.010887
0
0
0
0
0
1
0.210526
false
0.008772
0.035088
0.017544
0.403509
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
17e0a4d24f2f3388bb1167b8be734b93b3fe1610
328
py
Python
setup.py
fathom-global/gdalutils
4f26ae3cc1b6d36b7fc7d7506594e79af90c880a
[ "BSD-3-Clause" ]
null
null
null
setup.py
fathom-global/gdalutils
4f26ae3cc1b6d36b7fc7d7506594e79af90c880a
[ "BSD-3-Clause" ]
null
null
null
setup.py
fathom-global/gdalutils
4f26ae3cc1b6d36b7fc7d7506594e79af90c880a
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup import numpy setup(name='gdalutils', version='0.1', description='GDAL utils', url='http://github.com/fathom-global/gdalutils', author='Jeison Sosa', author_email='sosa.jeison@gmail.com', license='MIT', packages=['gdalutils'], zip_safe=False, ...
23.428571
54
0.628049
38
328
5.368421
0.789474
0
0
0
0
0
0
0
0
0
0
0.007843
0.222561
328
13
55
25.230769
0.792157
0
0
0
0
0
0.32622
0.064024
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
17e3c6ef43c4d742c8caa38160ef603ab9463e70
463
py
Python
plataforma/migrations/0005_categoria_slug.py
SurielRuano/Orientador-Legal
a3be31d6019bcf254c3dcbbb26b4ffbbc85a9871
[ "MIT" ]
null
null
null
plataforma/migrations/0005_categoria_slug.py
SurielRuano/Orientador-Legal
a3be31d6019bcf254c3dcbbb26b4ffbbc85a9871
[ "MIT" ]
null
null
null
plataforma/migrations/0005_categoria_slug.py
SurielRuano/Orientador-Legal
a3be31d6019bcf254c3dcbbb26b4ffbbc85a9871
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-13 17:37 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('plataforma', '0004_auto_20160912_1647'), ] operations = [ migrations.AddField...
22.047619
62
0.62203
51
463
5.45098
0.843137
0
0
0
0
0
0
0
0
0
0
0.102339
0.261339
463
20
63
23.15
0.710526
0.142549
0
0
1
0
0.116751
0.058376
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
17e667e456870134405978c344f09573cfbf2c62
1,485
py
Python
community/migrations/0010_auto_20191107_1329.py
akarakoc/Communityverse
73ecf51eae3f96cca865e0d7cc526b92c8ad6b5e
[ "MIT" ]
null
null
null
community/migrations/0010_auto_20191107_1329.py
akarakoc/Communityverse
73ecf51eae3f96cca865e0d7cc526b92c8ad6b5e
[ "MIT" ]
22
2019-11-09T23:23:11.000Z
2019-12-23T09:38:29.000Z
community/migrations/0010_auto_20191107_1329.py
akarakoc/CommunityVerse
73ecf51eae3f96cca865e0d7cc526b92c8ad6b5e
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-11-07 13:29 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('community', '0009_auto_20191107_1323'), ] operations = [ migrations.AddField( model_name='posts...
37.125
154
0.641751
150
1,485
6.22
0.346667
0.051447
0.075027
0.117899
0.484459
0.484459
0.330118
0.330118
0.330118
0.330118
0
0.027385
0.23771
1,485
39
155
38.076923
0.79682
0.030303
0
0.393939
1
0
0.197497
0.079972
0
0
0
0
0
1
0
false
0
0.060606
0
0.151515
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
17e80fc06ce661150909c36e9102a1f37acfe35f
255
py
Python
sfymca/feed/urls.py
streeter/sf-ymca-pools
7f3ff7d561d51158ae27b8abba05f61f4966e862
[ "MIT" ]
null
null
null
sfymca/feed/urls.py
streeter/sf-ymca-pools
7f3ff7d561d51158ae27b8abba05f61f4966e862
[ "MIT" ]
3
2021-04-08T21:05:07.000Z
2022-02-10T10:05:39.000Z
sfymca/feed/urls.py
streeter/sf-ymca-pools
7f3ff7d561d51158ae27b8abba05f61f4966e862
[ "MIT" ]
null
null
null
from django.urls import path from sfymca.feed import views urlpatterns = [ path("", views.index, name="index"), path("<branch_name>.ics", views.branch_calendar, name="branch_calendar"), path("<branch_name>/", views.branch, name="branch"), ]
25.5
77
0.690196
33
255
5.212121
0.424242
0.174419
0.162791
0
0
0
0
0
0
0
0
0
0.137255
255
9
78
28.333333
0.781818
0
0
0
0
0
0.223529
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
17ef535ff0e769a20dc859fc35bc755970389a94
623
py
Python
2015/day01.py
ardavast/AdventOfCode
2c5062e182122a08c10491a5a149286b90ae8688
[ "MIT" ]
null
null
null
2015/day01.py
ardavast/AdventOfCode
2c5062e182122a08c10491a5a149286b90ae8688
[ "MIT" ]
null
null
null
2015/day01.py
ardavast/AdventOfCode
2c5062e182122a08c10491a5a149286b90ae8688
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def part1(filename): with open(filename) as f: line = f.readline() floor = 0 for c in line: if c == '(': floor += 1 elif c == ')': floor -= 1 print(floor) def part2(filename): with open(filename) as f: line = f.read...
16.837838
37
0.454254
76
623
3.618421
0.407895
0.109091
0.101818
0.174545
0.48
0.48
0.48
0.48
0.334545
0.334545
0
0.045455
0.399679
623
37
38
16.837838
0.68984
0.033708
0
0.538462
0
0
0.066445
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.076923
0.076923
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
17f03b15782a4a42ce12030377cabaa018a6e9e7
1,216
py
Python
mhp.py
pjwhitney84/MH_candy
c9fffe0a83ea9efc77f18f75dfdbe6e3561274b6
[ "Apache-2.0" ]
null
null
null
mhp.py
pjwhitney84/MH_candy
c9fffe0a83ea9efc77f18f75dfdbe6e3561274b6
[ "Apache-2.0" ]
null
null
null
mhp.py
pjwhitney84/MH_candy
c9fffe0a83ea9efc77f18f75dfdbe6e3561274b6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #### #### mhp.py -- A Monty Hall simulation. First runs through and has the #### contestant never change their guess after being shown a goat. Then runs #### again to show the results if the contestant always changes their choice. #### Theory states that changing to the other door is always ...
25.333333
78
0.671053
184
1,216
4.347826
0.521739
0.03
0.04
0
0
0
0
0
0
0
0
0.012513
0.211349
1,216
47
79
25.87234
0.821689
0.456414
0
0.090909
0
0
0.003322
0
0
0
0
0
0
1
0
false
0.181818
0.136364
0
0.136364
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
17f827469816b40f1cda2a1d7117390d4570785e
705
py
Python
Codes examples in the book/chs11-15_code/opts.py
almazkun/The-Quick-Python-Book-Third-Edition
d405e45b757d53e851843aed30118949b42c2ee6
[ "Apache-2.0" ]
2
2019-05-04T12:33:09.000Z
2020-02-28T20:06:27.000Z
Codes examples in the book/chs11-15_code/opts.py
almazkun/The-Quick-Python-Book-Third-Edition
d405e45b757d53e851843aed30118949b42c2ee6
[ "Apache-2.0" ]
null
null
null
Codes examples in the book/chs11-15_code/opts.py
almazkun/The-Quick-Python-Book-Third-Edition
d405e45b757d53e851843aed30118949b42c2ee6
[ "Apache-2.0" ]
1
2020-02-28T19:33:28.000Z
2020-02-28T19:33:28.000Z
from argparse import ArgumentParser def main(): parser = ArgumentParser() parser.add_argument("indent", type=int, help="indent for report") parser.add_argument("input_file", help="read data from this file") #1 parser.add_argument("-f", "--file", dest="filename", #2 help...
37.105263
74
0.6
84
705
4.940476
0.607143
0.108434
0.204819
0
0
0
0
0
0
0
0
0.005682
0.251064
705
18
75
39.166667
0.780303
0.004255
0
0
0
0
0.296137
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.133333
0.133333
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
17f86f2d5e493c4b92d3f91834c5483f94a4ba0b
6,133
py
Python
src/video2npz/visbeat3/visbeat3/SourceLocationParser.py
wzk1015/video-bgm-generation
cf46c1babbe8f127f2f7605878d9b0aa7850f16d
[ "MIT" ]
90
2021-10-21T09:52:47.000Z
2022-03-30T14:12:05.000Z
src/video2npz/visbeat3/visbeat3/SourceLocationParser.py
wzk1015/video-bgm-generation
cf46c1babbe8f127f2f7605878d9b0aa7850f16d
[ "MIT" ]
7
2021-11-08T05:53:12.000Z
2022-02-28T12:39:02.000Z
src/video2npz/visbeat3/build/lib/visbeat3/SourceLocationParser.py
wzk1015/video-bgm-generation
cf46c1babbe8f127f2f7605878d9b0aa7850f16d
[ "MIT" ]
14
2021-11-17T05:43:28.000Z
2022-03-22T14:47:40.000Z
""" This code was a last minute hack. It works fine enough for parsing youtube urls, but I would use it for any kind of reference. Based loosely on video backends from django embed video. """ import re import requests import os import sys if sys.version_info.major == 3: import urllib.parse as urlparse else: im...
25.554167
126
0.604598
707
6,133
5.096181
0.272984
0.06217
0.049958
0.029142
0.253677
0.174577
0.155148
0.155148
0.143769
0.143769
0
0.002705
0.2767
6,133
240
127
25.554167
0.809513
0.203815
0
0.256198
0
0
0.064562
0.033955
0
0
0
0
0
1
0.173554
false
0.033058
0.049587
0.041322
0.512397
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
17fd699fbd2c26c621a629a9a32b72c6197772e0
1,153
py
Python
orb_simulator/parser/lr0_item.py
dmguezjaviersnet/IA-Sim-Comp-Project
8165b9546efc45f98091a3774e2dae4f45942048
[ "MIT" ]
1
2022-01-19T22:49:09.000Z
2022-01-19T22:49:09.000Z
orb_simulator/parser/lr0_item.py
dmguezjaviersnet/IA-Sim-Comp-Project
8165b9546efc45f98091a3774e2dae4f45942048
[ "MIT" ]
15
2021-11-10T14:25:02.000Z
2022-02-12T19:17:11.000Z
orb_simulator/parser/lr0_item.py
dmguezjaviersnet/IA-Sim-Comp-Project
8165b9546efc45f98091a3774e2dae4f45942048
[ "MIT" ]
null
null
null
from typing import Tuple from parser.non_terminal import Non_terminal from parser.own_symbol import Symbol class Lr0_item: """docstring for Lr0_item.""" def __init__(self, head: Non_terminal, tail: Tuple[Symbol], dot: int): self.head: Non_terminal = head; self.tail: Tuple[Symbol] = tail; ...
28.825
117
0.584562
150
1,153
4.206667
0.32
0.063391
0.034865
0.060222
0
0
0
0
0
0
0
0.012594
0.311362
1,153
40
118
28.825
0.782116
0.049436
0
0.111111
0
0
0.04033
0.020165
0
0
0
0
0
1
0.185185
false
0
0.111111
0.074074
0.592593
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
aa0357dd7d6b5a7265a0066c55b3d7e8818914ac
2,628
py
Python
2015/day_08/solution_p1.py
rvaughan/AdventOfCode2017
fb9199282c0083cd0b3072c27e63ea83d866efc2
[ "MIT" ]
null
null
null
2015/day_08/solution_p1.py
rvaughan/AdventOfCode2017
fb9199282c0083cd0b3072c27e63ea83d866efc2
[ "MIT" ]
null
null
null
2015/day_08/solution_p1.py
rvaughan/AdventOfCode2017
fb9199282c0083cd0b3072c27e63ea83d866efc2
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ This code holds the solution for part 1 of day 8 of the Advent of Code for 2015. """ import hashlib import sys def process_line(line): count = 0 escape = False escape_count = 0 for x in line: if escape: if x == 'x': continue ...
25.514563
112
0.527397
352
2,628
3.832386
0.369318
0.098592
0.065234
0.080059
0.22387
0.081542
0.049666
0.049666
0.049666
0.049666
0
0.061081
0.296043
2,628
102
113
25.764706
0.668108
0.093227
0
0.264706
0
0
0.178344
0.049591
0
0
0
0
0.014706
0
null
null
0.014706
0.029412
null
null
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aa03b7e070177f20726c12909737bc6167cbbace
1,651
py
Python
esbo_etc/classes/optical_component/StrayLight.py
LukasK13/ESBO-ETC
d1db999f1670f2777c5227d79629d421f03e5393
[ "Apache-2.0" ]
null
null
null
esbo_etc/classes/optical_component/StrayLight.py
LukasK13/ESBO-ETC
d1db999f1670f2777c5227d79629d421f03e5393
[ "Apache-2.0" ]
null
null
null
esbo_etc/classes/optical_component/StrayLight.py
LukasK13/ESBO-ETC
d1db999f1670f2777c5227d79629d421f03e5393
[ "Apache-2.0" ]
null
null
null
from .AOpticalComponent import AOpticalComponent from ..IRadiant import IRadiant from ..SpectralQty import SpectralQty from ..Entry import Entry import astropy.units as u from typing import Union class StrayLight(AOpticalComponent): """ A class to model additional stray light sources e.g. zodiacal light "...
32.372549
93
0.603876
195
1,651
5.030769
0.466667
0.030581
0.03262
0
0
0
0
0
0
0
0
0.002655
0.315566
1,651
50
94
33.02
0.865487
0.445185
0
0
0
0
0.011034
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
aa0db9e08a3eb115e8b60932b1207f22e5ad922a
269
py
Python
insta_app/forms.py
DerrickOdhiambo/Instagram
ef3a27bdb8616bd786c6e7f6f10083c13d5dea1a
[ "MIT" ]
null
null
null
insta_app/forms.py
DerrickOdhiambo/Instagram
ef3a27bdb8616bd786c6e7f6f10083c13d5dea1a
[ "MIT" ]
null
null
null
insta_app/forms.py
DerrickOdhiambo/Instagram
ef3a27bdb8616bd786c6e7f6f10083c13d5dea1a
[ "MIT" ]
null
null
null
from django import forms from .models import Comment class CommentForm(forms.ModelForm): text = forms.CharField(widget=forms.Textarea( attrs={'class': 'input is-medium'}), required=False) class Meta: model = Comment fields = ['text']
22.416667
60
0.66171
31
269
5.741935
0.709677
0
0
0
0
0
0
0
0
0
0
0
0.223048
269
11
61
24.454545
0.851675
0
0
0
0
0
0.089219
0
0
0
0
0
0
1
0
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
aa129df1220811888132dbdb4d32e10f239871e2
767
py
Python
python3/datetime/dow1.py
jtraver/dev
c7cd2181594510a8fa27e7325566ed2d79371624
[ "MIT" ]
null
null
null
python3/datetime/dow1.py
jtraver/dev
c7cd2181594510a8fa27e7325566ed2d79371624
[ "MIT" ]
null
null
null
python3/datetime/dow1.py
jtraver/dev
c7cd2181594510a8fa27e7325566ed2d79371624
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #!/usr/bin/python # -*- coding: iso-8859-15 -*- import time import datetime now = datetime.datetime.now() print(("now = %s" % str(now))) print(now) today = datetime.datetime.today() print(("today = %s" % str(today))) print(today) dow = datetime.datetime.today().weekday() print(("dow = %s" % str...
24.741935
66
0.569752
111
767
3.936937
0.324324
0.064073
0.04119
0.05492
0.10984
0.10984
0.10984
0
0
0
0
0.098847
0.208605
767
30
67
25.566667
0.621087
0.108214
0
0.090909
0
0
0.082353
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.454545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
aa16ac73752fd1fee5d6db7f775b324f280e2301
3,636
py
Python
src/trainer/gaussianAE.py
liuweiping2020/pyml
0b9a7a307b93f9313d7e1bb92b33ae330d681c73
[ "Apache-2.0" ]
null
null
null
src/trainer/gaussianAE.py
liuweiping2020/pyml
0b9a7a307b93f9313d7e1bb92b33ae330d681c73
[ "Apache-2.0" ]
null
null
null
src/trainer/gaussianAE.py
liuweiping2020/pyml
0b9a7a307b93f9313d7e1bb92b33ae330d681c73
[ "Apache-2.0" ]
null
null
null
from tensorflow.examples.tutorials.mnist import input_data from modeler.gaussianAE import GaussianAutoencoderModel from trainer.tftrainer import TFTrainer import sklearn.preprocessing as prep import numpy as np class GaussianAETrainer(TFTrainer): def __init__(self): self.training_epochs = 20 self...
39.096774
95
0.59681
413
3,636
5.070218
0.249395
0.033429
0.0468
0.060172
0.284145
0.234957
0.186246
0.122732
0.122732
0.080707
0
0.007191
0.311606
3,636
92
96
39.521739
0.829405
0.013201
0
0.140845
0
0
0.013668
0
0
0
0
0
0
1
0.183099
false
0.056338
0.070423
0.070423
0.394366
0.028169
0
0
0
null
0
0
0
0
0
0
0
0
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
aa1d9a885e21ba93d19245c4cfcf3f9295b25943
448
py
Python
auth.example.py
lytedev/google_music_analytics
234ed11c47b46cc5dc889c515c88f061110bce6b
[ "MIT" ]
null
null
null
auth.example.py
lytedev/google_music_analytics
234ed11c47b46cc5dc889c515c88f061110bce6b
[ "MIT" ]
null
null
null
auth.example.py
lytedev/google_music_analytics
234ed11c47b46cc5dc889c515c88f061110bce6b
[ "MIT" ]
null
null
null
from gmusicapi import Mobileclient default_email = "your@gmail.com" default_password = "app specific password" # See https://security.google.com/settings/security/apppasswords def get_authed_api(username = "", password = ""): if username == "": username = default_email if password == "": passw...
24.888889
64
0.683036
50
448
6
0.56
0.08
0
0
0
0
0
0
0
0
0
0
0.212054
448
17
65
26.352941
0.849858
0.138393
0
0
0
0
0.091384
0
0
0
0
0
0
1
0.083333
false
0.416667
0.083333
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
1
0
0
0
0
0
1
aa227ce3d6352532a5a45ab1ed99fb3f81a9bd78
815
py
Python
learning/base-language/calling-python-scripts/args.py
gerryw1389/python
74fedaf2034769f2865659f14d332026b9aaede3
[ "MIT" ]
2
2020-12-01T17:29:09.000Z
2020-12-13T02:54:43.000Z
learning/base-language/calling-python-scripts/args.py
gerryw1389/python
74fedaf2034769f2865659f14d332026b9aaede3
[ "MIT" ]
4
2020-12-26T15:08:02.000Z
2021-05-16T13:19:33.000Z
learning/base-language/calling-python-scripts/args.py
gerryw1389/python
74fedaf2034769f2865659f14d332026b9aaede3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ################################################################ # Script Arguments # sys.argv is list of arguments passed to the script # sys.argv[0] is by default the path of script # and user defined arguments start with index 1 ################################################################...
30.185185
64
0.593865
115
815
4.208696
0.478261
0.115702
0.103306
0.11157
0.177686
0
0
0
0
0
0
0.019802
0.132515
815
26
65
31.346154
0.664781
0.409816
0
0
0
0
0.379009
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.75
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
aa2467dd623c826c0755be5df7ead9ae0390d816
12,183
py
Python
kingpin/config_utils/__init__.py
fakeNetflix/pinterest-repo-kingpin
baea08ae941a4e57edb9129658fe3e7d40e4d0c3
[ "Apache-2.0" ]
76
2016-01-27T21:16:53.000Z
2021-09-23T02:23:49.000Z
kingpin/config_utils/__init__.py
fakeNetflix/pinterest-repo-kingpin
baea08ae941a4e57edb9129658fe3e7d40e4d0c3
[ "Apache-2.0" ]
2
2016-02-26T02:37:46.000Z
2018-02-23T09:03:41.000Z
kingpin/config_utils/__init__.py
fakeNetflix/pinterest-repo-kingpin
baea08ae941a4e57edb9129658fe3e7d40e4d0c3
[ "Apache-2.0" ]
22
2016-01-27T21:16:58.000Z
2020-12-24T11:26:01.000Z
#!/usr/bin/python # # Copyright 2016 Pinterest, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
45.629213
141
0.66642
1,732
12,183
4.479215
0.196305
0.027069
0.027069
0.029389
0.304976
0.215262
0.189869
0.176592
0.156226
0.124001
0
0.01235
0.262251
12,183
266
142
45.800752
0.850801
0.101125
0
0.162162
0
0.009009
0.085025
0
0
0
0
0
0.009009
0
null
null
0
0.054054
null
null
0.009009
0
0
0
null
0
0
0
0
0
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
aa29fe0ae7a956f9593192280d917bbd66e6fba9
174
py
Python
algorithm_collection/search/linear_search_with_sentinel.py
nocotan/algorithm_collection
c55460416cb935998aac9e56108ed4fa5afa8880
[ "Apache-2.0" ]
2
2021-03-19T13:15:06.000Z
2021-06-15T12:18:12.000Z
algorithm_collection/search/linear_search_with_sentinel.py
nocotan/algorithm_collection
c55460416cb935998aac9e56108ed4fa5afa8880
[ "Apache-2.0" ]
4
2021-03-09T15:34:20.000Z
2021-03-16T12:33:44.000Z
algorithm_collection/search/linear_search_with_sentinel.py
nocotan/algorithm_collection_py
c55460416cb935998aac9e56108ed4fa5afa8880
[ "Apache-2.0" ]
null
null
null
def linear_search_with_sentinel(arr, key): i = 0 arr.append(key) while arr[i] != key: i += 1 if i == len(arr) - 1: return -1 return i
13.384615
42
0.505747
27
174
3.148148
0.555556
0.094118
0
0
0
0
0
0
0
0
0
0.036364
0.367816
174
12
43
14.5
0.736364
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
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
aa2eb78e951555f88d21572b1ea3a29b4ff6c75c
436
py
Python
22. Generate Parentheses.py
RayHHe/LeetCode
f1f522954f129d1fccb86a41c08ec387c4aaa2c9
[ "MIT" ]
null
null
null
22. Generate Parentheses.py
RayHHe/LeetCode
f1f522954f129d1fccb86a41c08ec387c4aaa2c9
[ "MIT" ]
null
null
null
22. Generate Parentheses.py
RayHHe/LeetCode
f1f522954f129d1fccb86a41c08ec387c4aaa2c9
[ "MIT" ]
null
null
null
# No.1/2019-06-10/68 ms/13.3 MB class Solution: def generateParenthesis(self, n: int) -> List[str]: l=['()'] if n==0: return [] for i in range(1,n): newl=[] for string in l: for index in range(len(string)//2+1): temp=string[:index]...
29.066667
59
0.465596
60
436
3.383333
0.583333
0.068966
0
0
0
0
0
0
0
0
0
0.067416
0.387615
436
14
60
31.142857
0.692884
0.066514
0
0
1
0
0.009877
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aa2f5b177b88f9c709759dcb9358c21ad2a4cce5
3,269
py
Python
task_lesson/api/authorization/test_get_session.py
LifeLaboratory/Task_platform_backend
5b2464c181f85db9a77da42c73634507f930c1d7
[ "MIT" ]
null
null
null
task_lesson/api/authorization/test_get_session.py
LifeLaboratory/Task_platform_backend
5b2464c181f85db9a77da42c73634507f930c1d7
[ "MIT" ]
null
null
null
task_lesson/api/authorization/test_get_session.py
LifeLaboratory/Task_platform_backend
5b2464c181f85db9a77da42c73634507f930c1d7
[ "MIT" ]
null
null
null
import json import unittest as ut import api.authorization.authorization as gt import api.helpers.names as names import requests # from django.test import TestCase class TestGetSession(ut.TestCase): def setUp(self): self.response = { names.ANSWER: None, names.SESSION: None, ...
28.675439
71
0.639339
368
3,269
5.475543
0.1875
0.096774
0.029777
0.053598
0.61737
0.558809
0.544913
0.455087
0.455087
0.455087
0
0.004632
0.273478
3,269
113
72
28.929204
0.843789
0.051392
0
0.439024
0
0
0.047188
0
0
0
0
0
0.04878
1
0.146341
false
0.073171
0.060976
0.036585
0.304878
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
aa33319018384f334589599af6017a166e833527
295
py
Python
python/sum_triangle.py
RitvizRanjan/data-structures-2021
c245c1428e46b9cdb263cc4615fa896320387204
[ "MIT" ]
7
2021-10-03T06:17:23.000Z
2021-10-04T16:33:20.000Z
python/sum_triangle.py
RitvizRanjan/data-structures-2021
c245c1428e46b9cdb263cc4615fa896320387204
[ "MIT" ]
8
2021-10-01T17:35:20.000Z
2021-10-22T04:42:16.000Z
python/sum_triangle.py
RitvizRanjan/data-structures-2021
c245c1428e46b9cdb263cc4615fa896320387204
[ "MIT" ]
20
2021-10-01T16:44:26.000Z
2021-10-31T12:30:09.000Z
#function start def sumtriangle(n): if n == 1: return 1 else: return n+(sumtriangle(n-1)) #recursive function #function end n = int(input("Enter number :")) while (n!= -1): #loop start print(sumtriangle(n)) n = int(input("Enter number :")) print("Finished")
16.388889
55
0.6
40
295
4.425
0.475
0.20339
0.101695
0.158192
0.225989
0
0
0
0
0
0
0.017857
0.240678
295
17
56
17.352941
0.772321
0.183051
0
0.2
0
0
0.151899
0
0
0
0
0
0
1
0.1
false
0
0
0
0.3
0.2
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aa33cb912234d3e8cd3d8e0ee57d934bc57c018f
2,047
py
Python
tests/test_classifier.py
UBC-MDS/simplefit
ba022b38a4479efe11261a292bacfa4bf441a5fa
[ "MIT" ]
null
null
null
tests/test_classifier.py
UBC-MDS/simplefit
ba022b38a4479efe11261a292bacfa4bf441a5fa
[ "MIT" ]
41
2022-01-13T05:36:48.000Z
2022-03-06T08:56:12.000Z
tests/test_classifier.py
UBC-MDS/simplefit
ba022b38a4479efe11261a292bacfa4bf441a5fa
[ "MIT" ]
3
2022-01-13T05:19:09.000Z
2022-03-07T03:20:38.000Z
from simplefit.classifier import classifier import pandas as pd import pytest from pytest import raises from sklearn.model_selection import train_test_split def test_classifier(): """Testing classifier function""" income_df = pd.read_csv("tests/data/adult.csv") train_df, test_df = train_test_split(income_...
49.926829
173
0.705423
268
2,047
5.190299
0.313433
0.034508
0.051761
0.071891
0.396837
0.396837
0.396837
0.367362
0.342919
0.294033
0
0.046346
0.177821
2,047
40
174
51.175
0.780154
0.023937
0
0.2
0
0
0.215903
0
0
0
0
0
0.233333
1
0.066667
false
0.1
0.166667
0
0.233333
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
aa42f5ef96b94596bdca473cf6ef3f7ff38e00e3
6,470
py
Python
colab_demo/copia_di_lasaft_with_gpocm_stella_jang_example.py
loretoparisi/Conditioned-Source-Separation-LaSAFT
366b92b601f324a5937fb902d3cd123a0980c9b8
[ "MIT" ]
3
2021-01-07T11:53:29.000Z
2021-04-29T23:43:46.000Z
colab_demo/copia_di_lasaft_with_gpocm_stella_jang_example.py
loretoparisi/Conditioned-Source-Separation-LaSAFT
366b92b601f324a5937fb902d3cd123a0980c9b8
[ "MIT" ]
null
null
null
colab_demo/copia_di_lasaft_with_gpocm_stella_jang_example.py
loretoparisi/Conditioned-Source-Separation-LaSAFT
366b92b601f324a5937fb902d3cd123a0980c9b8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Copia di LaSAFT with GPoCM - Stella Jang Example Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1uNpdkVqcMM3nLKnwahyb7xPNzBJtxmXP # LaSAFT: Latent Source Attentive Frequency Transformation for Conditioned Source Separation ...
28.253275
161
0.692427
889
6,470
4.922385
0.31946
0.015996
0.020567
0.021709
0.489031
0.489031
0.430073
0.430073
0.406764
0.406764
0
0.021864
0.137558
6,470
229
162
28.253275
0.762366
0.196445
0
0.427586
1
0.02069
0.322671
0.02479
0
0
0
0
0
1
0.013793
false
0
0.082759
0
0.096552
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aa46ec4bc236f25968a7fc875a0d10e96ffa369d
789
py
Python
0x0F-python-object_relational_mapping/13-model_state_delete_a.py
ricardo1470/holbertonschool-higher_level_programming
aab73c8efee665b0215958ee7b338871f13634bc
[ "CNRI-Python" ]
null
null
null
0x0F-python-object_relational_mapping/13-model_state_delete_a.py
ricardo1470/holbertonschool-higher_level_programming
aab73c8efee665b0215958ee7b338871f13634bc
[ "CNRI-Python" ]
null
null
null
0x0F-python-object_relational_mapping/13-model_state_delete_a.py
ricardo1470/holbertonschool-higher_level_programming
aab73c8efee665b0215958ee7b338871f13634bc
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/python3 """ script that deletes all State objects with a name containing the letter a from the database hbtn_0e_6_usa """ if __name__ == "__main__": from sys import argv from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from model_state import Base fro...
27.206897
63
0.642586
100
789
4.83
0.57
0.057971
0.057971
0.082816
0
0
0
0
0
0
0
0.010221
0.25602
789
28
64
28.178571
0.812606
0.157161
0
0
0
0
0.066154
0.052308
0
0
0
0
0
1
0
false
0.111111
0.277778
0
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
1
0
0
0
0
0
1
aa48da4f4f5f8f269f1b34d02bfb6d3344621c35
720
py
Python
models/appointments.py
mrfade/university-appointment-system-backend
63bb04af0d6b7575cead9bdc8c69c5ed298ad4f5
[ "MIT" ]
null
null
null
models/appointments.py
mrfade/university-appointment-system-backend
63bb04af0d6b7575cead9bdc8c69c5ed298ad4f5
[ "MIT" ]
null
null
null
models/appointments.py
mrfade/university-appointment-system-backend
63bb04af0d6b7575cead9bdc8c69c5ed298ad4f5
[ "MIT" ]
null
null
null
from app import db class Appointment(db.Model): __tablename__ = 'appointment' id = db.Column(db.Integer, primary_key=True) start = db.Column(db.DateTime, nullable=False) end = db.Column(db.DateTime, nullable=False) description = db.Column(db.String(1000, collation='utf8_general_ci'), ...
36
77
0.619444
86
720
5.023256
0.44186
0.12963
0.162037
0.083333
0.331019
0.287037
0.143519
0
0
0
0
0.009328
0.255556
720
19
78
37.894737
0.796642
0
0
0.133333
0
0
0.073611
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0.066667
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
a4ad7119d5377320572b67130f8e7254f69a2d00
27,918
py
Python
alignment.py
laserson/vdj
7ff5efa1e990cd6cc77a986849f4b32731b46a10
[ "Apache-2.0" ]
6
2015-02-13T06:50:09.000Z
2020-03-06T02:01:40.000Z
alignment.py
laserson/vdj
7ff5efa1e990cd6cc77a986849f4b32731b46a10
[ "Apache-2.0" ]
2
2015-02-25T08:53:12.000Z
2015-02-27T22:14:24.000Z
alignment.py
churchlab/vdj
7ff5efa1e990cd6cc77a986849f4b32731b46a10
[ "Apache-2.0" ]
5
2015-10-14T11:35:08.000Z
2020-03-06T02:03:24.000Z
# Copyright 2014 Uri Laserson # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
40.343931
202
0.60058
3,129
27,918
5.216043
0.170981
0.02941
0.014705
0.009926
0.379634
0.325532
0.265547
0.233258
0.231849
0.205257
0
0.021461
0.299019
27,918
691
203
40.402315
0.812519
0.139372
0
0.287736
0
0
0.043387
0.00189
0
0
0
0
0.002358
0
null
null
0.009434
0.023585
null
null
0.002358
0
0
0
null
0
0
0
0
0
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
a4b2acc29c58d00dd9a75b28992c43a3b1b49f06
730
py
Python
2015/day14.py
iKevinY/advent
d160fb711a0a4d671f53cbd61088117e7ff0276a
[ "MIT" ]
11
2019-12-03T06:32:37.000Z
2021-12-24T12:23:57.000Z
2015/day14.py
iKevinY/advent
d160fb711a0a4d671f53cbd61088117e7ff0276a
[ "MIT" ]
null
null
null
2015/day14.py
iKevinY/advent
d160fb711a0a4d671f53cbd61088117e7ff0276a
[ "MIT" ]
1
2019-12-07T06:21:31.000Z
2019-12-07T06:21:31.000Z
import fileinput import re def fly(time, speed, fly_for, rest_for): cycle = fly_for + rest_for return speed * ( ((time // cycle) * fly_for) + # flying time * full cycles completed min(fly_for, time % cycle) # remaining incomplete flying time ) TOTAL_TIME = 2503 reindeer = [[int(n) fo...
27.037037
85
0.630137
110
730
4.1
0.418182
0.053215
0.044346
0.05765
0.066519
0
0
0
0
0
0
0.01444
0.241096
730
26
86
28.076923
0.799639
0.093151
0
0
0
0
0.083587
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a4b42cbf1dc9d4406c45c43883763a38efd89ee0
3,567
py
Python
NetworkScanners/ExitAuthority/soatstats.py
isislovecruft/torflow
666689ad18d358d764a35d041a7b16adb8d3287c
[ "BSD-3-Clause" ]
null
null
null
NetworkScanners/ExitAuthority/soatstats.py
isislovecruft/torflow
666689ad18d358d764a35d041a7b16adb8d3287c
[ "BSD-3-Clause" ]
1
2018-12-18T15:58:40.000Z
2018-12-26T16:52:51.000Z
NetworkScanners/ExitAuthority/soatstats.py
isislovecruft/torflow
666689ad18d358d764a35d041a7b16adb8d3287c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # # 2008 Aleksei Gorny, mentored by Mike Perry import dircache import operator import os import pickle import sys import time if sys.version_info < (2, 5): from sets import Set as set import libsoat from libsoat import * sys.path.append("../../") try: from TorCtl.TorUtil import * except Im...
29
136
0.670592
487
3,567
4.691992
0.238193
0.042013
0.045952
0.02407
0.372429
0.286652
0.228446
0.164551
0.093654
0.093654
0
0.008042
0.198206
3,567
122
137
29.237705
0.790909
0.162882
0
0.047619
0
0
0.040713
0.008748
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.095238
0
0
0
null
0
0
0
0
0
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
a4b55c2a52ff79a1f2a3abdae64d2467cad8c730
6,754
py
Python
wicon/common.py
Wudan07/wIcon
9189b7029759a22371827426b5342b6dc976f1b2
[ "MIT" ]
null
null
null
wicon/common.py
Wudan07/wIcon
9189b7029759a22371827426b5342b6dc976f1b2
[ "MIT" ]
null
null
null
wicon/common.py
Wudan07/wIcon
9189b7029759a22371827426b5342b6dc976f1b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015 Brad Newbold (wudan07 [at] gmail.com) # See LICENSE for details. # common.py # """wIcon library: Common functions """ import math import random #import time from PIL import Image, PngImagePlugin, JpegImagePlugin #from selection import selection_get #from selection import S...
18.761111
80
0.660646
1,018
6,754
4.290766
0.168959
0.034341
0.029762
0.029304
0.375
0.306319
0.273581
0.247024
0.21543
0.21543
0
0.009311
0.204916
6,754
359
81
18.81337
0.804097
0.230678
0
0.359477
0
0
0.013673
0
0
0
0
0
0
0
null
null
0
0.019608
null
null
0.013072
0
0
0
null
0
0
0
0
0
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
a4bab1175d0b65483e08f54721cf396ef16b8852
1,029
py
Python
dojo/unittests/test_bugcrowd_parser.py
everable/django-DefectDojo
1548982c1f197f3f702162846d314b16bb687c78
[ "BSD-3-Clause" ]
3
2020-10-27T08:58:03.000Z
2021-04-28T14:20:16.000Z
dojo/unittests/test_bugcrowd_parser.py
everable/django-DefectDojo
1548982c1f197f3f702162846d314b16bb687c78
[ "BSD-3-Clause" ]
173
2020-12-17T20:29:09.000Z
2022-03-23T12:54:32.000Z
dojo/unittests/test_bugcrowd_parser.py
everable/django-DefectDojo
1548982c1f197f3f702162846d314b16bb687c78
[ "BSD-3-Clause" ]
2
2022-02-07T09:57:28.000Z
2022-03-11T08:42:59.000Z
from django.test import TestCase from dojo.tools.bugcrowd.parser import BugCrowdCSVParser from dojo.models import Test class TestBugCrowdParser(TestCase): def test_parse_without_file_has_no_findings(self): parser = BugCrowdCSVParser(None, Test()) self.assertEqual(0, len(parser.items)) def te...
39.576923
74
0.737609
129
1,029
5.651163
0.310078
0.038409
0.065844
0.069959
0.61454
0.61454
0.61454
0.422497
0.30727
0.148148
0
0.00463
0.16035
1,029
25
75
41.16
0.83912
0
0
0.263158
0
0
0.136054
0.136054
0
0
0
0
0.210526
1
0.210526
false
0
0.157895
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
a4bc55d76d4e61852dfc13821159ff32cca0b380
28,608
py
Python
renderSDK/CG/cg_houdini/HfsBase.py
xialialia/renderSDK
49067ce6c93ae9f5072fbb82b3d4301a34b1535d
[ "Apache-2.0" ]
2
2020-02-12T09:57:46.000Z
2020-04-03T07:40:07.000Z
renderSDK/CG/cg_houdini/HfsBase.py
xialialia/renderSDK
49067ce6c93ae9f5072fbb82b3d4301a34b1535d
[ "Apache-2.0" ]
null
null
null
renderSDK/CG/cg_houdini/HfsBase.py
xialialia/renderSDK
49067ce6c93ae9f5072fbb82b3d4301a34b1535d
[ "Apache-2.0" ]
1
2020-02-14T09:09:23.000Z
2020-02-14T09:09:23.000Z
#!/usr/bin/env python ## create by shen,2018.06.22 import os,sys,time import subprocess import argparse import HfsSql import re,json import hou class HfsBase(): runcode = True runend = False def __init__(self,args): self._args = args self._ext = [".py",".hda"] self.sequence_type_lis...
42.890555
148
0.473049
3,175
28,608
4.065197
0.108976
0.010847
0.015108
0.019757
0.442551
0.371194
0.310607
0.268459
0.244131
0.224142
0
0.019093
0.399504
28,608
667
149
42.890555
0.732231
0.056802
0
0.332746
0
0
0.074305
0
0.001761
0
0
0
0
0
null
null
0.010563
0.010563
null
null
0.091549
0
0
0
null
0
0
0
0
0
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
a4c0a4b3b8560c7a21a13824158904308bd4680c
532
py
Python
tests/home/test_non_unique_elements.py
roman-kachanovsky/checkio
3134cbc04ed56e92006d1e2f09d7365e900953db
[ "BSD-3-Clause" ]
1
2017-02-07T19:50:52.000Z
2017-02-07T19:50:52.000Z
tests/home/test_non_unique_elements.py
roman-kachanovsky/checkio-python
3134cbc04ed56e92006d1e2f09d7365e900953db
[ "BSD-3-Clause" ]
null
null
null
tests/home/test_non_unique_elements.py
roman-kachanovsky/checkio-python
3134cbc04ed56e92006d1e2f09d7365e900953db
[ "BSD-3-Clause" ]
null
null
null
import unittest from solutions.home.non_unique_elements import my_solution class TestSolution(unittest.TestCase): def test_solution(self): self.assertIsInstance(my_solution([1]), list) self.assertEqual(my_solution([1, 2, 3, 1, 3]), [1, 3, 1, 3]) self.assertEqual(my_solution([1, 2, 3, 4, ...
29.555556
80
0.62406
81
532
3.876543
0.37037
0.057325
0.076433
0.089172
0.442675
0.210191
0.210191
0.031847
0.031847
0
0
0.098824
0.201128
532
17
81
31.294118
0.64
0
0
0
0
0
0.016917
0
0
0
0
0
0.454545
1
0.090909
false
0
0.181818
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
a4c83143b71d1c5c21dabe9b36bd5aeb95f4c123
1,890
py
Python
expertise/questionnaire.py
spacelis/pygeoexpertise
a622a93e4eaea9b586ae5195f14ac322acc159e2
[ "MIT", "Unlicense" ]
null
null
null
expertise/questionnaire.py
spacelis/pygeoexpertise
a622a93e4eaea9b586ae5195f14ac322acc159e2
[ "MIT", "Unlicense" ]
null
null
null
expertise/questionnaire.py
spacelis/pygeoexpertise
a622a93e4eaea9b586ae5195f14ac322acc159e2
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ File: questionnaire.py Author: SpaceLis Email: Wen.Li@tudelft.nl Github: none Description: Make data for questionnaires """ import sys import json import logging import pandas as pd def merge_expertise(expertise_file, ranking_file): """ Merge estimated expert...
28.208955
84
0.613228
242
1,890
4.615702
0.446281
0.021486
0.019696
0.032229
0.137869
0.137869
0.137869
0.137869
0.137869
0.137869
0
0.004972
0.255026
1,890
66
85
28.636364
0.788352
0.267196
0
0
0
0
0.168992
0
0
0
0
0.030303
0
1
0.103448
false
0
0.137931
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a4d16983277e28236f3f5d2decef14054d58ded5
815
py
Python
masterserver/server_list_parser.py
TheAssassin/python-masterserver
8a6f5168bd5374ff047cb2a8c67299a2a1a4fc7b
[ "MIT" ]
null
null
null
masterserver/server_list_parser.py
TheAssassin/python-masterserver
8a6f5168bd5374ff047cb2a8c67299a2a1a4fc7b
[ "MIT" ]
null
null
null
masterserver/server_list_parser.py
TheAssassin/python-masterserver
8a6f5168bd5374ff047cb2a8c67299a2a1a4fc7b
[ "MIT" ]
1
2020-12-18T15:17:15.000Z
2020-12-18T15:17:15.000Z
import re from .red_eclipse_server import RedEclipseServer import typing if typing.TYPE_CHECKING: from .remote_master_server import RemoteMasterServer class ServerListParser: def __init__(self, remote_master_server: "RemoteMasterServer"): self._remote_master_server = remote_master_server def p...
27.166667
115
0.626994
92
815
5.315217
0.478261
0.147239
0.220859
0.134969
0
0
0
0
0
0
0
0.011147
0.229448
815
29
116
28.103448
0.767516
0
0
0
0
0
0.170552
0
0
0
0
0
0
1
0.105263
false
0
0.210526
0
0.473684
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a4d40a6ad6f881f8dd1450faccc1a84c3e90f24c
399
py
Python
ecommerce/migrations/0009_auto_20200909_1412.py
evanezcent/Django-Training
bc78210a49339903b1ef1d9b3bf8158321146273
[ "MIT" ]
1
2020-11-26T00:48:34.000Z
2020-11-26T00:48:34.000Z
ecommerce/migrations/0009_auto_20200909_1412.py
evanezcent/Django-Training
bc78210a49339903b1ef1d9b3bf8158321146273
[ "MIT" ]
null
null
null
ecommerce/migrations/0009_auto_20200909_1412.py
evanezcent/Django-Training
bc78210a49339903b1ef1d9b3bf8158321146273
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-09-09 07:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ecommerce', '0008_auto_20200908_1545'), ] operations = [ migrations.AlterField( model_name='user', name='img_url', ...
21
64
0.601504
44
399
5.318182
0.818182
0
0
0
0
0
0
0
0
0
0
0.10453
0.280702
399
18
65
22.166667
0.710801
0.107769
0
0
1
0
0.132768
0.064972
0
0
0
0
0
1
0
false
0
0.083333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a4d5be1abd6d71a42b9ccc116cec9ee4bf116ec8
1,887
py
Python
module/scene.py
rdcklinux/cocos2dx-console
5e26004c08be99426541cbe13ebab6b89d7681cd
[ "MIT" ]
null
null
null
module/scene.py
rdcklinux/cocos2dx-console
5e26004c08be99426541cbe13ebab6b89d7681cd
[ "MIT" ]
null
null
null
module/scene.py
rdcklinux/cocos2dx-console
5e26004c08be99426541cbe13ebab6b89d7681cd
[ "MIT" ]
null
null
null
__author__ = 'Roderick Lagunas' from interface.command import CommandInterface from common import command class Create(CommandInterface): name = None odir = '.' def __init__(self): pass def main(self, args): try: self.name = args['name'] except KeyError: ...
24.506494
94
0.529942
211
1,887
4.682464
0.402844
0.05668
0.080972
0.063765
0.054656
0
0
0
0
0
0
0.001584
0.330684
1,887
76
95
24.828947
0.780681
0
0
0.25
0
0
0.222104
0
0
0
0
0
0
0
null
null
0.038462
0.057692
null
null
0.057692
0
0
0
null
0
0
0
0
0
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
a4d8c51c17a2c19423340a1cc18b0e0bf5bdc483
1,385
py
Python
dataset/transform.py
beichendexiatian/InstanceFusion
cd48e3f477595a48d845ce01302f564b6b3fc6f6
[ "Apache-2.0" ]
null
null
null
dataset/transform.py
beichendexiatian/InstanceFusion
cd48e3f477595a48d845ce01302f564b6b3fc6f6
[ "Apache-2.0" ]
null
null
null
dataset/transform.py
beichendexiatian/InstanceFusion
cd48e3f477595a48d845ce01302f564b6b3fc6f6
[ "Apache-2.0" ]
null
null
null
import os import glob import shutil Path_to_Dataset = "/home/jun/Desktop/dataset/scene_09" images = glob.glob(os.path.join(Path_to_Dataset, "*.png")) # images类型是list,每一个元素都存储的是图片的完整路径 images.sort() picPath = images[0].split('/') picPath = picPath[:-1] folderPath = '' for s in picPath: folderPath = folderPath + s +...
30.108696
92
0.577617
182
1,385
4.269231
0.324176
0.084942
0.184041
0.07722
0.355212
0.355212
0.290862
0.223938
0.223938
0.223938
0
0.027933
0.224549
1,385
45
93
30.777778
0.695531
0.222383
0
0.114286
0
0
0.106942
0.031895
0
0
0
0
0
1
0
false
0
0.085714
0
0.085714
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a4db3e4c4b19bcdbc120752574ca34fc258a546a
924
py
Python
blog/controllers/web_funcs.py
tzakrajs/blog
b46c6c33f91daade670a2ba7250ac0b28a77daf2
[ "Apache-2.0" ]
1
2015-03-17T02:51:27.000Z
2015-03-17T02:51:27.000Z
blog/controllers/web_funcs.py
tzakrajs/blog
b46c6c33f91daade670a2ba7250ac0b28a77daf2
[ "Apache-2.0" ]
null
null
null
blog/controllers/web_funcs.py
tzakrajs/blog
b46c6c33f91daade670a2ba7250ac0b28a77daf2
[ "Apache-2.0" ]
null
null
null
from blog.models.auth import Auth from blog.models.feature import Feature from bottle import request, template import logging log = logging.getLogger('blog') def blog_template(template_file, **kwargs): auth = Auth() sid = request.get_cookie('SID') try: if sid: session_data = auth.get_s...
33
75
0.624459
110
924
5.163636
0.445455
0.052817
0.049296
0.091549
0
0
0
0
0
0
0
0
0.232684
924
27
76
34.222222
0.801128
0
0
0
0
0
0.106061
0
0
0
0
0
0
0
null
null
0
0.16
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a4db4d0788c530958eb928259e78db98d03af8a7
1,993
py
Python
features/data_cleaning.py
SunnyMarkLiu/Kaggle_NYC_Taxi_Trip_Duration
eca7f44bc3bf1af0690305b45858359adac617b4
[ "MIT" ]
1
2017-09-18T07:37:54.000Z
2017-09-18T07:37:54.000Z
features/data_cleaning.py
SunnyMarkLiu/Kaggle_NYC_Taxi_Trip_Duration
eca7f44bc3bf1af0690305b45858359adac617b4
[ "MIT" ]
null
null
null
features/data_cleaning.py
SunnyMarkLiu/Kaggle_NYC_Taxi_Trip_Duration
eca7f44bc3bf1af0690305b45858359adac617b4
[ "MIT" ]
null
null
null
#!/usr/local/miniconda2/bin/python # _*_ coding: utf-8 _*_ """ @author: MarkLiu @time : 17-8-10 上午11:21 """ import os import sys module_path = os.path.abspath(os.path.join('..')) sys.path.append(module_path) import numpy as np from utils import data_utils # remove warnings import warnings warnings.filterwarnings(...
34.362069
98
0.684395
269
1,993
4.847584
0.375465
0.06135
0.089724
0.124233
0.259202
0.167178
0.133436
0.133436
0.07362
0.07362
0
0.025044
0.138485
1,993
57
99
34.964912
0.734421
0.112393
0
0.058824
0
0
0.309982
0.04028
0
0
0
0
0
0
null
null
0.029412
0.176471
null
null
0.235294
0
0
0
null
0
0
0
0
0
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
a4e7f8a3ee3be995c771e072c31835a01a587fab
3,355
py
Python
bst.py
kentsommer/bst-amortized-analysis
4b3880c14f271dd6370752525e7ba31d7f4c7aa6
[ "MIT" ]
null
null
null
bst.py
kentsommer/bst-amortized-analysis
4b3880c14f271dd6370752525e7ba31d7f4c7aa6
[ "MIT" ]
null
null
null
bst.py
kentsommer/bst-amortized-analysis
4b3880c14f271dd6370752525e7ba31d7f4c7aa6
[ "MIT" ]
null
null
null
import random from tabulate import tabulate class Node: # Parent pointer used for easier in-order traversal function def __init__(self, value, parent=None): self.value = value self.left = None self.right = None self.parent = parent class BST: def __init__(self): s...
29.429825
98
0.592548
425
3,355
4.607059
0.275294
0.030644
0.024515
0.022472
0.026558
0
0
0
0
0
0
0.020732
0.324292
3,355
113
99
29.690265
0.842964
0.227124
0
0.219512
0
0
0.023283
0
0
0
0
0
0
0
null
null
0
0.02439
null
null
0.012195
0
0
0
null
0
0
0
0
0
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
a4ed64dd1f32f144f272141bb7cf7509f4daa0c4
1,579
py
Python
ooobuild/lo/graphic/graphic.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/graphic/graphic.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/graphic/graphic.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
36.72093
249
0.759341
231
1,579
5.034632
0.562771
0.051591
0.025795
0.043852
0.037833
0.037833
0
0
0
0
0
0.025191
0.170361
1,579
42
250
37.595238
0.862595
0.718809
0
0
0
0
0.159794
0.072165
0
0
0
0
0
1
0
false
0
0.285714
0
0.857143
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
a4ee0794c15e8a09ef2ffe7d9efa8572c4c0d16e
3,677
py
Python
web_messaging/blueprints/user/views.py
Pierre-Alexandre35/messaging-service-mousset
820b648a705810b6d67b3144c139ee6b0d0b8708
[ "MIT" ]
null
null
null
web_messaging/blueprints/user/views.py
Pierre-Alexandre35/messaging-service-mousset
820b648a705810b6d67b3144c139ee6b0d0b8708
[ "MIT" ]
null
null
null
web_messaging/blueprints/user/views.py
Pierre-Alexandre35/messaging-service-mousset
820b648a705810b6d67b3144c139ee6b0d0b8708
[ "MIT" ]
null
null
null
import sys from urllib.parse import urljoin, urlparse from flask import Blueprint, abort, redirect, render_template, request, url_for from flask_login import current_user, login_required, login_user, logout_user from config.settings import users_collection from web_messaging.blueprints.user.models import Anonymous, U...
32.539823
79
0.604841
451
3,677
4.762749
0.303769
0.061453
0.037244
0.023277
0.024209
0
0
0
0
0
0
0.002216
0.26353
3,677
112
80
32.830357
0.79099
0.087027
0
0.02381
0
0
0.112757
0
0
0
0
0
0
1
0.095238
false
0.095238
0.083333
0.011905
0.345238
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a4f31e4b26277948e1ae8d2e8aa2aa7143740c9c
401
py
Python
ClientePY.py
G2000G/webService-java
191f9285c162b5a801fad4eb5c923e96bd36f298
[ "Apache-2.0" ]
null
null
null
ClientePY.py
G2000G/webService-java
191f9285c162b5a801fad4eb5c923e96bd36f298
[ "Apache-2.0" ]
null
null
null
ClientePY.py
G2000G/webService-java
191f9285c162b5a801fad4eb5c923e96bd36f298
[ "Apache-2.0" ]
null
null
null
from suds.client import Client url = "http://localhost:13000/conversor?wsdl" client = Client(url) tipo = int(input("Bem-vindo ao Conversor de Temperaturas, digite: \n1 para converter de Celsius para Kelvin: \n2 para converter de Kelvin para Celsius:\n>>> ")) temp = int(input("Digite a temperatura que deseja conve...
44.555556
161
0.735661
57
401
5.175439
0.596491
0.061017
0.101695
0
0
0
0
0
0
0
0
0.020231
0.137157
401
8
162
50.125
0.83237
0
0
0
0
0.142857
0.569975
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a4fdd449339d9a6b4a83a00a07b71605731d79ce
11,872
py
Python
tool/file_logger/file_logger.py
MageWeiG/karonte
2ffe649557adccdd3c2c77c0ae0a5f27a385fdcb
[ "BSD-2-Clause" ]
1
2021-04-15T12:00:56.000Z
2021-04-15T12:00:56.000Z
tool/file_logger/file_logger.py
MageWeiG/karonte
2ffe649557adccdd3c2c77c0ae0a5f27a385fdcb
[ "BSD-2-Clause" ]
null
null
null
tool/file_logger/file_logger.py
MageWeiG/karonte
2ffe649557adccdd3c2c77c0ae0a5f27a385fdcb
[ "BSD-2-Clause" ]
1
2021-09-16T07:44:55.000Z
2021-09-16T07:44:55.000Z
import signal import time from binary_dependency_graph.bdp_enum import RoleInfo, Role from utils import * import json import copy import os class FileLogger: def __init__(self, fw, filename): self._fw = fw self._filename = filename + '.json' self._logged_paths = set() self._start_ti...
34.312139
121
0.520721
1,517
11,872
3.915623
0.15557
0.036532
0.053704
0.017677
0.338215
0.27138
0.232492
0.193771
0.158586
0.158586
0
0.002564
0.342992
11,872
345
122
34.411594
0.758974
0.002106
0
0.204762
0
0
0.165721
0.023921
0
0
0
0.002899
0
0
null
null
0.004762
0.033333
null
null
0.004762
0
0
0
null
0
0
0
0
0
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
3500fa79ade6cad32c123b48b017769fbbd3a1a9
1,726
py
Python
events/tests/models/test_event.py
pmatigakis/vedette
9990f8d787eace6008a37c733673959eddfdb9ac
[ "MIT" ]
null
null
null
events/tests/models/test_event.py
pmatigakis/vedette
9990f8d787eace6008a37c733673959eddfdb9ac
[ "MIT" ]
null
null
null
events/tests/models/test_event.py
pmatigakis/vedette
9990f8d787eace6008a37c733673959eddfdb9ac
[ "MIT" ]
null
null
null
from django.test import TestCase from events.models import Event, RawEvent class EventTestsRuntimeTagValueTests(TestCase): def test_runtime_tag_value(self): event = Event(runtime_name="runtime", runtime_version="0.1") self.assertEqual(event.runtime_tag_value(), "runtime-0.1") def test_runti...
31.381818
76
0.690614
213
1,726
5.276995
0.183099
0.113879
0.115658
0.088968
0.758007
0.637011
0.580071
0.468861
0.413701
0.395907
0
0.00567
0.182503
1,726
54
77
31.962963
0.790928
0
0
0.264706
0
0
0.063152
0
0
0
0
0
0.235294
1
0.235294
false
0
0.058824
0
0.382353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
35048b0a5c51ebf06f8a12f7cd8dc6e23f6e0040
2,596
py
Python
cp4s_sdk/sdk.py
Ryan-Gordon1/cp4s-sdk
289e806a50895b497ef0852cdda824f90c9c5bd2
[ "MIT" ]
4
2021-07-29T15:06:12.000Z
2021-08-19T16:16:42.000Z
cp4s_sdk/sdk.py
Ryan-Gordon1/cp4s-sdk
289e806a50895b497ef0852cdda824f90c9c5bd2
[ "MIT" ]
null
null
null
cp4s_sdk/sdk.py
Ryan-Gordon1/cp4s-sdk
289e806a50895b497ef0852cdda824f90c9c5bd2
[ "MIT" ]
1
2021-07-24T09:30:47.000Z
2021-07-24T09:30:47.000Z
# -*- coding: utf-8 -*- # (c) Copyright Ryan Gordon. 2021. All Rights Reserved. """ entrypoint for cp4s-sdk Python Module """ # Python std lib deps from cp4s_sdk.subparsers.soar_subparser import SoarSubParser from cp4s_sdk.subparsers.connector_subparser import ConnectorSubParser from cp4s_sdk.subparsers.appx_subparse...
36.56338
121
0.753852
344
2,596
5.520349
0.389535
0.036862
0.042127
0.047393
0.215377
0.215377
0.215377
0.097946
0.097946
0.097946
0
0.006977
0.171803
2,596
70
122
37.085714
0.876279
0.261556
0
0.069767
0
0
0.261603
0
0
0
0
0.014286
0
1
0.023256
false
0
0.116279
0
0.139535
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
3506a7dad55417b6ac7feb24a791bd22b1057ff9
4,898
py
Python
sif.py
killua4564/-
756b6373ddcd3ec7bd3670df1e719878df51e214
[ "MIT" ]
null
null
null
sif.py
killua4564/-
756b6373ddcd3ec7bd3670df1e719878df51e214
[ "MIT" ]
null
null
null
sif.py
killua4564/-
756b6373ddcd3ec7bd3670df1e719878df51e214
[ "MIT" ]
null
null
null
from add_score_compute import add_score_compute from Team import Team from Member import Member if __name__ == '__main__': us_smile = Team("µ's smile", [ Member('UR_Honoka', 5540, 4, 0, 'Grade'), Member('SSR_Honoka', 5860, 3, add_score_compute('note', 24, 0.31, 435), 'Grade...
62.794872
105
0.490813
630
4,898
3.606349
0.188889
0.134683
0.191461
0.084507
0.431338
0.290053
0.083627
0.047975
0.047975
0.047975
0
0.156959
0.334014
4,898
78
106
62.794872
0.539546
0
0
0.105263
0
0
0.175138
0
0
0
0
0
0
1
0
false
0
0.039474
0
0.039474
0.078947
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
350744a03c941498eb4047a41ff4893e395f1dda
6,828
py
Python
gain/gain_year_count_natrl_forest.py
elizabethgoldman/carbon-budget
e224467f554c603704ef31d8e42a99db8bd160a7
[ "Apache-2.0" ]
null
null
null
gain/gain_year_count_natrl_forest.py
elizabethgoldman/carbon-budget
e224467f554c603704ef31d8e42a99db8bd160a7
[ "Apache-2.0" ]
null
null
null
gain/gain_year_count_natrl_forest.py
elizabethgoldman/carbon-budget
e224467f554c603704ef31d8e42a99db8bd160a7
[ "Apache-2.0" ]
null
null
null
### Creates tiles in which each natural non-mangrove non-planted forest biomass pixel is the number of years that trees are believed to have been growing there between 2001 and 2015. ### It is based on the annual Hansen loss data and the 2000-2012 Hansen gain data (as well as the 2000 tree cover density data). ### Firs...
46.44898
182
0.722759
1,064
6,828
4.424812
0.169173
0.042056
0.03972
0.035047
0.610875
0.582201
0.517842
0.504885
0.483645
0.448811
0
0.012658
0.16696
6,828
147
183
46.44898
0.815049
0.340656
0
0.324324
0
0.013514
0.283116
0.107095
0
0
0
0
0
0
null
null
0
0.094595
null
null
0.135135
0
0
0
null
0
0
0
0
0
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
35079d232ba1f5d27c8975f8dddd7698eba2407e
1,065
py
Python
sample/collect/service_imp/flow/common/file_content.py
SelfDown/omnis-collect
1b865e0070fa4e639a7b757f8443aafb4f94ac34
[ "MIT" ]
null
null
null
sample/collect/service_imp/flow/common/file_content.py
SelfDown/omnis-collect
1b865e0070fa4e639a7b757f8443aafb4f94ac34
[ "MIT" ]
null
null
null
sample/collect/service_imp/flow/common/file_content.py
SelfDown/omnis-collect
1b865e0070fa4e639a7b757f8443aafb4f94ac34
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Time: 2021/9/2 14:54 @Author: zzhang zzhang@cenboomh.com @File: dir_tree.py @desc: """ from collect.service_imp.flow.omnis_ssh import OmnisSSHService from collect.utils.collect_utils import get_safe_data class FileContent(OmnisSSHService): fc_const = { "file_name": "file", ...
28.783784
81
0.660094
144
1,065
4.666667
0.465278
0.095238
0.049107
0.0625
0
0
0
0
0
0
0
0.013366
0.22723
1,065
36
82
29.583333
0.803159
0.099531
0
0
0
0
0.039958
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0.045455
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3508ff77d241e59a53ed1b15757ff3ba3dcfca51
10,413
py
Python
python/test.py
hasindu2008/slow5lib
3680e17360366c8cbffb66eb1e07426756665454
[ "MIT" ]
25
2021-06-25T10:47:53.000Z
2022-02-08T07:53:40.000Z
python/test.py
hasindu2008/slow5lib
3680e17360366c8cbffb66eb1e07426756665454
[ "MIT" ]
1
2021-07-01T04:05:09.000Z
2021-07-01T10:52:55.000Z
python/test.py
hasindu2008/slow5lib
3680e17360366c8cbffb66eb1e07426756665454
[ "MIT" ]
null
null
null
import unittest import pyslow5 as slow5 import time import numpy as np """ Run from root dir of repo after making pyslow5 python3 -m unittest -v python/test.py """ #globals debug = 0 #TODO: make this an argument with -v class TestBase(unittest.TestCase): def setUp(self): self.s5 = slow5.Open('e...
45.077922
181
0.617401
1,349
10,413
4.547072
0.20089
0.097815
0.068145
0.063743
0.666286
0.615422
0.583958
0.558037
0.54956
0.546951
0
0.098005
0.234707
10,413
230
182
45.273913
0.671728
0.021416
0
0.53886
0
0
0.227873
0.063177
0
0
0
0.004348
0.212435
1
0.227979
false
0
0.020725
0
0.284974
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
351785d8241b92cdcde355a90886cde61fab4767
18,046
py
Python
witness.py
jbzdarkid/Random
d0979ca28ecc408d1fa7f2fa7cca96c80ac57376
[ "Apache-2.0" ]
1
2017-11-01T10:22:53.000Z
2017-11-01T10:22:53.000Z
witness.py
jbzdarkid/Random
d0979ca28ecc408d1fa7f2fa7cca96c80ac57376
[ "Apache-2.0" ]
1
2018-03-16T17:50:23.000Z
2018-03-16T17:51:15.000Z
witness.py
jbzdarkid/Random
d0979ca28ecc408d1fa7f2fa7cca96c80ac57376
[ "Apache-2.0" ]
5
2015-07-02T17:09:32.000Z
2017-10-04T07:08:00.000Z
# Work isValidSolution() into stage 1 not stage 0... May not work because I need to know which blue_paths are a valid start -- which involves doing all the work anyways. from collections import deque from time import time class Path(): def __init__(self, path): if isinstance(path, list): self.path = path ...
36.903885
169
0.616702
2,788
18,046
3.876614
0.101865
0.03923
0.028868
0.033309
0.631754
0.582624
0.530996
0.483531
0.46336
0.438009
0
0.0325
0.239554
18,046
488
170
36.979508
0.755083
0.153607
0
0.544554
0
0
0.039489
0
0
0
0
0
0
0
null
null
0.019802
0.007426
null
null
0.017327
0
0
0
null
0
0
0
0
0
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
351b66c87ec87a6c272df9ec5c3c91d68e8ceeb1
8,229
py
Python
BEAT0/BEAT/ec2/utility.py
cjcchen/beat
cc50eb75c937f6b843aa79d074c463811f27adf5
[ "Apache-2.0" ]
2
2020-06-24T02:37:01.000Z
2021-12-17T14:24:22.000Z
BEAT0/BEAT/ec2/utility.py
cjcchen/beat
cc50eb75c937f6b843aa79d074c463811f27adf5
[ "Apache-2.0" ]
null
null
null
BEAT0/BEAT/ec2/utility.py
cjcchen/beat
cc50eb75c937f6b843aa79d074c463811f27adf5
[ "Apache-2.0" ]
4
2020-05-24T07:42:09.000Z
2021-12-05T15:31:24.000Z
import argparse import boto.ec2 import sys, os import time if not boto.config.has_section('ec2'): boto.config.add_section('ec2') boto.config.setbool('ec2','use-sigv4',True) #These are the parameters for the AWS account your_key_path = "" your_key_name = "" instancetype = 't2.medium' #secgroups are associate...
32.397638
123
0.612954
1,013
8,229
4.78381
0.272458
0.040858
0.021667
0.026001
0.381758
0.332852
0.332852
0.332852
0.332852
0.31428
0
0.024293
0.269656
8,229
253
124
32.525692
0.78203
0.04314
0
0.331731
0
0.004808
0.106487
0.017855
0
0
0
0
0
0
null
null
0
0.043269
null
null
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
35289561c72c9874cd5aa195f2aef014e1fe9035
10,094
py
Python
Python_MiniGame_Fighter/venv/Lib/site-packages/pygame/tests/cdrom_test.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
Python_MiniGame_Fighter/venv/Lib/site-packages/pygame/tests/cdrom_test.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
Python_MiniGame_Fighter/venv/Lib/site-packages/pygame/tests/cdrom_test.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
import unittest from pygame.tests.test_utils import question, prompt import pygame pygame.cdrom.init() # The number of CD drives available for testing. CD_DRIVE_COUNT = pygame.cdrom.get_count() pygame.cdrom.quit() class CDROMModuleTest(unittest.TestCase): def setUp(self): pygame.cdrom.ini...
31.347826
90
0.593323
1,360
10,094
4.259559
0.147794
0.062662
0.033661
0.024685
0.431037
0.355256
0.315208
0.26532
0.244778
0.207492
0
0.016271
0.311968
10,094
321
91
31.445483
0.817855
0.49792
0
0.557692
0
0
0.050323
0
0
0
0
0
0.125
1
0.307692
false
0
0.028846
0
0.355769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3530c3fd045d9cf7628ce1bb21cb34bef702cca7
3,626
py
Python
python/cohorte/monitor/fsm.py
isandlaTech/cohorte-runtime
686556cdde20beba77ae202de9969be46feed5e2
[ "Apache-2.0" ]
6
2015-04-28T16:51:08.000Z
2017-07-12T11:29:00.000Z
python/cohorte/monitor/fsm.py
isandlaTech/cohorte-runtime
686556cdde20beba77ae202de9969be46feed5e2
[ "Apache-2.0" ]
29
2015-02-24T11:11:26.000Z
2017-08-25T08:30:18.000Z
qualifier/deploy/cohorte-home/repo/cohorte/monitor/fsm.py
isandlaTech/cohorte-devtools
9ba9021369188d2f0ad5c845ef242fd5a7097b57
[ "Apache-2.0" ]
1
2015-08-24T13:23:43.000Z
2015-08-24T13:23:43.000Z
#!/usr/bin/env python # -- Content-Encoding: UTF-8 -- """ COHORTE Monitor: State machines definitions :author: Thomas Calmant :license: Apache Software License 2.0 .. Copyright 2014 isandlaTech Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance...
33.266055
80
0.680916
415
3,626
5.614458
0.296386
0.200858
0.08927
0.128326
0.374249
0.333906
0.311588
0.311588
0.218455
0.218455
0
0.004228
0.217319
3,626
108
81
33.574074
0.816772
0.333977
0
0.208333
0
0
0.037489
0
0
0
0
0
0
1
0.020833
false
0
0.041667
0
0.083333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
353b517a5e85e040b53df48a3fec65957c9c1e11
877
py
Python
tests/sorting/test_bubble_sort.py
src24/algos
b1ac1049be6adaafedaa0572f009668e2c8d3809
[ "MIT" ]
null
null
null
tests/sorting/test_bubble_sort.py
src24/algos
b1ac1049be6adaafedaa0572f009668e2c8d3809
[ "MIT" ]
null
null
null
tests/sorting/test_bubble_sort.py
src24/algos
b1ac1049be6adaafedaa0572f009668e2c8d3809
[ "MIT" ]
null
null
null
import unittest from typing import List from sorting import bubble_sort arr: List[int] = [10, 2, 1, 7, 5, 3, 4, 6, 8, 9] class TestInsertionSort(unittest.TestCase): def test_bubble_sort_asc(self): expected: List[int] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] bubble_sort.bubble_sort(arr) self.asse...
27.40625
61
0.631699
132
877
3.931818
0.272727
0.250482
0.125241
0.131021
0.485549
0.375723
0.323699
0.323699
0
0
0
0.055389
0.238312
877
31
62
28.290323
0.721557
0
0
0.173913
0
0
0.009122
0
0
0
0
0
0.173913
1
0.173913
false
0
0.130435
0
0.347826
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
353c1a6943c5ecf90ce4c025f3f1398df4578f4e
218
py
Python
Exercicios/desafio23_unidadedezena.py
lbarrosandre/Resolucao-Desafios-Python
d30897d9d5cb179579fd67a70f3d74af7a3293a1
[ "MIT" ]
null
null
null
Exercicios/desafio23_unidadedezena.py
lbarrosandre/Resolucao-Desafios-Python
d30897d9d5cb179579fd67a70f3d74af7a3293a1
[ "MIT" ]
null
null
null
Exercicios/desafio23_unidadedezena.py
lbarrosandre/Resolucao-Desafios-Python
d30897d9d5cb179579fd67a70f3d74af7a3293a1
[ "MIT" ]
null
null
null
numero = int(input('Digite um número entre 0 e 9999: ')) u = numero % 10 d = numero // 10 % 10 c = numero // 100 % 10 m = numero // 1000 % 10 print('Unidade: {}\nDezena: {}\nCentena: {}\nMilhar: {}'.format(u,d,c,m))
24.222222
73
0.587156
35
218
3.657143
0.657143
0.125
0
0
0
0
0
0
0
0
0
0.125714
0.197248
218
8
74
27.25
0.605714
0
0
0
0
0
0.375
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
353c6153f02add6d454ceded834e3459d403a01e
1,125
py
Python
Manejo_Ficheros.py
w2k31984/Selenium_WebDriver_Python
73e509813c6a5e508677920fa76c8cc56371134b
[ "MIT", "MIT-0" ]
null
null
null
Manejo_Ficheros.py
w2k31984/Selenium_WebDriver_Python
73e509813c6a5e508677920fa76c8cc56371134b
[ "MIT", "MIT-0" ]
null
null
null
Manejo_Ficheros.py
w2k31984/Selenium_WebDriver_Python
73e509813c6a5e508677920fa76c8cc56371134b
[ "MIT", "MIT-0" ]
null
null
null
#Los ficheros sirven para guardar datos .csv o bien importar datos, para diferentes situaciones. #Para consulta o guardar datos. #a adicionar Añadir elemento a un fichero. #w Modo de escritura de ficheros #r modo de lectura de ficheros #Agregar informacion nueva en un fichero nombre = input('Nombre :') #+ adicionar fu...
31.25
112
0.736889
162
1,125
5.117284
0.469136
0.053076
0.086852
0.101327
0.101327
0.101327
0.101327
0.101327
0
0
0
0
0.149333
1,125
35
113
32.142857
0.866249
0.729778
0
0.4
0
0
0.123675
0
0
0
0
0.028571
0
1
0
false
0
0
0
0
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
1
0
0
0
0
0
0
0
0
0
0
1
3540088278833f240e25e2349cb89b3f678b0770
2,868
py
Python
test/test_phones.py
Olga177/python_training2
2c608486a680a04cc1e0a1de10d6fe11b779e087
[ "Apache-2.0" ]
null
null
null
test/test_phones.py
Olga177/python_training2
2c608486a680a04cc1e0a1de10d6fe11b779e087
[ "Apache-2.0" ]
null
null
null
test/test_phones.py
Olga177/python_training2
2c608486a680a04cc1e0a1de10d6fe11b779e087
[ "Apache-2.0" ]
null
null
null
from random import randrange import re def test_phones_on_home_page(app): list_of_contacts_from_home_page = app.contact.get_contact_list() index = randrange(len(list_of_contacts_from_home_page)) contact_from_home_page = list_of_contacts_from_home_page[index] contact_from_edit_page = app.contact.get_con...
54.113208
118
0.715481
403
2,868
4.568238
0.136476
0.161325
0.123846
0.134166
0.798479
0.706681
0.562738
0.49484
0.49484
0.49484
0
0.002201
0.20781
2,868
52
119
55.153846
0.808099
0.185146
0
0.352941
0
0
0.004294
0
0
0
0
0
0.147059
1
0.176471
false
0
0.058824
0.088235
0.323529
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
354174160f07bd54eb7cb4c4c76ada3c37eee051
3,733
py
Python
lacli/t/test_login.py
longaccess/longaccess-client
710bab93e9b2b9264228769b3cb37808c97977ea
[ "Apache-2.0" ]
2
2015-01-04T01:15:36.000Z
2015-01-20T17:05:34.000Z
lacli/t/test_login.py
longaccess/longaccess-client
710bab93e9b2b9264228769b3cb37808c97977ea
[ "Apache-2.0" ]
1
2016-04-21T00:33:46.000Z
2016-05-05T09:23:50.000Z
lacli/t/test_login.py
longaccess/longaccess-client
710bab93e9b2b9264228769b3cb37808c97977ea
[ "Apache-2.0" ]
null
null
null
import os from testtools import TestCase from testtools.matchers import Contains from . import makeprefs from mock import Mock, patch from StringIO import StringIO from twisted.internet import defer class LoginCommandTest(TestCase): def setUp(self): super(LoginCommandTest, self).setUp() self.pref...
33.630631
72
0.623895
405
3,733
5.62963
0.182716
0.078947
0.039912
0.065789
0.695175
0.695175
0.663158
0.607895
0.607895
0.589474
0
0
0.256094
3,733
110
73
33.936364
0.82103
0
0
0.582418
0
0
0.090544
0
0
0
0
0
0.197802
1
0.120879
false
0.065934
0.087912
0
0.230769
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
35459340a7693b18c04d27a7fcf3629926b46270
551
py
Python
src/server/server.py
MShooshtari/python-socketio-cluster
6499d9941cc741013e2e154a95225026d4456eae
[ "MIT" ]
null
null
null
src/server/server.py
MShooshtari/python-socketio-cluster
6499d9941cc741013e2e154a95225026d4456eae
[ "MIT" ]
null
null
null
src/server/server.py
MShooshtari/python-socketio-cluster
6499d9941cc741013e2e154a95225026d4456eae
[ "MIT" ]
1
2019-11-18T06:34:20.000Z
2019-11-18T06:34:20.000Z
import eventlet import socketio import os import sys import sshtunnel import time sio = socketio.Server(async_mode='eventlet') app = socketio.Middleware(sio) #temp import apps.streetdownloader.server as srv srv_handle=srv.handler() node_thread_number =4 if __name__ == '__main__': port = 30021 ...
21.192308
59
0.676951
73
551
4.917808
0.616438
0.050139
0
0
0
0
0
0
0
0
0
0.020316
0.196007
551
25
60
22.04
0.790068
0.00726
0
0
0
0
0.096154
0
0
0
0
0
0
1
0
false
0
0.388889
0
0.388889
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
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
3548b1c543745c53a9c4c310d95f51f77e654b94
889
py
Python
setup.py
zeevro/cgi_utils
1951a684d922ea8c17f29e1326865303f10c9c0f
[ "Unlicense" ]
1
2020-11-27T21:17:55.000Z
2020-11-27T21:17:55.000Z
setup.py
zeevro/cgi_utils
1951a684d922ea8c17f29e1326865303f10c9c0f
[ "Unlicense" ]
null
null
null
setup.py
zeevro/cgi_utils
1951a684d922ea8c17f29e1326865303f10c9c0f
[ "Unlicense" ]
null
null
null
from setuptools import setup setup( name='cgi_utils', version='0.1.0', url='https://github.com/zeevro/cgi_utils', download_url='https://github.com/zeevro/cgi_utils/archive/master.zip', author='Zeev Rotshtein', author_email='zeevro@gmail.com', maintainer='Zeev Rotshtein', maintainer_ema...
26.939394
82
0.5973
95
889
5.494737
0.621053
0.061303
0.143678
0.065134
0.118774
0.118774
0.118774
0
0
0
0
0.009023
0.251969
889
32
83
27.78125
0.77594
0
0
0.1
0
0
0.51631
0
0
0
0
0
0
1
0
true
0
0.033333
0
0.033333
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
35497e5a14c5ccf44609e3577525b453fcbe9f5d
4,936
py
Python
cloudrail/knowledge/context/aws/ec2/vpc.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
cloudrail/knowledge/context/aws/ec2/vpc.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
cloudrail/knowledge/context/aws/ec2/vpc.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
from __future__ import annotations from dataclasses import dataclass from typing import List, Optional, Dict from cloudrail.knowledge.context.aws.ec2.internet_gateway import InternetGateway from cloudrail.knowledge.context.aws.ec2.subnet import Subnet from cloudrail.knowledge.context.aws.service_name import AwsServic...
38.263566
132
0.675446
647
4,936
4.874807
0.171561
0.047559
0.045656
0.073557
0.375079
0.296449
0.187064
0.106531
0.106531
0.106531
0
0.003929
0.226499
4,936
128
133
38.5625
0.822158
0
0
0.18
0
0
0.072934
0.035049
0
0
0
0
0
1
0.18
false
0.02
0.11
0.1
0.51
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
1020d3cf6c6085490fe42b1e3d002bd065fc301b
3,362
py
Python
data/test/python/1020d3cf6c6085490fe42b1e3d002bd065fc301bimport_from_old_db.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/test/python/1020d3cf6c6085490fe42b1e3d002bd065fc301bimport_from_old_db.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/test/python/1020d3cf6c6085490fe42b1e3d002bd065fc301bimport_from_old_db.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
from django.core.management.base import BaseCommand from scraper.models import Incident, IncidentType, \ Dispatch, Vehicle, VehicleType import csv import datetime import re from pytz import timezone class Command(BaseCommand): help = 'Imports data from legacy database csv' def add_arguments(self, parser)...
39.552941
79
0.531231
323
3,362
5.356037
0.340557
0.023121
0.026012
0.039884
0.247399
0.179191
0.179191
0.154913
0.116763
0.061272
0
0.012002
0.380428
3,362
84
80
40.02381
0.818531
0
0
0.189189
0
0
0.090422
0
0
0
0
0
0
0
null
null
0.013514
0.094595
null
null
0.081081
0
0
0
null
0
0
0
0
0
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
102942cf3f72f0ae2a71da610131392226802dd4
2,429
py
Python
net_models/models/interfaces/L2InterfaceModels.py
ashkalikava/net_models
1a99f6dc743665b47c4c4731bbca2a52176ded3f
[ "MIT" ]
null
null
null
net_models/models/interfaces/L2InterfaceModels.py
ashkalikava/net_models
1a99f6dc743665b47c4c4731bbca2a52176ded3f
[ "MIT" ]
null
null
null
net_models/models/interfaces/L2InterfaceModels.py
ashkalikava/net_models
1a99f6dc743665b47c4c4731bbca2a52176ded3f
[ "MIT" ]
null
null
null
# Standard Libraries # Third party packages from pydantic import validator, root_validator from pydantic.typing import Literal, List, Union, Optional # Local package from net_models.validators import * from net_models.fields import * from net_models.models import VendorIndependentBaseModel # Local module class Inter...
35.720588
191
0.7007
287
2,429
5.780488
0.449477
0.050633
0.023508
0.041591
0.12176
0.072333
0.045811
0
0
0
0
0.006539
0.181556
2,429
67
192
36.253731
0.827968
0.076163
0
0.058824
0
0.029412
0.204218
0.013873
0
0
0
0
0.029412
1
0.058824
false
0
0.147059
0
0.823529
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
102b51aee461c4f011634640694926de83eaaa62
1,143
py
Python
Paginas/tp3/Principal.py
GLautaro/TpSIM
6f869c07ab560365c7cb624e71bf220693f282a3
[ "MIT" ]
null
null
null
Paginas/tp3/Principal.py
GLautaro/TpSIM
6f869c07ab560365c7cb624e71bf220693f282a3
[ "MIT" ]
null
null
null
Paginas/tp3/Principal.py
GLautaro/TpSIM
6f869c07ab560365c7cb624e71bf220693f282a3
[ "MIT" ]
null
null
null
import streamlit as st ## The homepage is loaded using a combination of .write and .markdown. def LoadPage(): st.title('🔢Simulación con distribuciones probabilisticas continuas.🔢') st.markdown('Simulación - Trabajo Práctico de Laboratorio 3') st.write('Se desarrollo esta aplicación que permite generar s...
54.428571
142
0.716535
150
1,143
5.493333
0.573333
0.033981
0.04733
0.070388
0
0
0
0
0
0
0
0.002186
0.199475
1,143
21
143
54.428571
0.892896
0.058618
0
0
0
0
0.689944
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
102cbfd122d54e23aa13df58cfdc4942134fc5d0
1,213
py
Python
rascil/processing_components/calibration/rcal.py
SKA-ScienceDataProcessor/rascil
bd3b47f779e18e184781e2928ad1539d1fdc1c9b
[ "Apache-2.0" ]
7
2019-12-14T13:42:33.000Z
2022-01-28T03:31:45.000Z
rascil/processing_components/calibration/rcal.py
SKA-ScienceDataProcessor/rascil
bd3b47f779e18e184781e2928ad1539d1fdc1c9b
[ "Apache-2.0" ]
6
2020-01-08T09:40:08.000Z
2020-06-11T14:56:13.000Z
rascil/processing_components/calibration/rcal.py
SKA-ScienceDataProcessor/rascil
bd3b47f779e18e184781e2928ad1539d1fdc1c9b
[ "Apache-2.0" ]
3
2020-01-14T11:14:16.000Z
2020-09-15T05:21:06.000Z
""" Real time calibration pipeline """ __all__ = ['rcal'] import collections from rascil.data_models.memory_data_models import BlockVisibility, GainTable from rascil.processing_components.visibility.base import copy_visibility from rascil.processing_components.calibration.solvers import solve_gaintable from rascil....
34.657143
103
0.755977
137
1,213
6.562044
0.489051
0.044494
0.066741
0.100111
0.086763
0
0
0
0
0
0
0
0.173124
1,213
34
104
35.676471
0.896311
0.347898
0
0
0
0
0.005376
0
0
0
0
0
0
1
0.071429
false
0
0.357143
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
1
0
0
0
0
1
102dc0a406c2d9cb1f87691bb149e3955361c48e
842
py
Python
texion/models/core.py
AnjanaRita/texion
edb2eb581600af7507f7315dfc0ee92e567c6b47
[ "MIT" ]
1
2022-02-08T23:06:28.000Z
2022-02-08T23:06:28.000Z
texion/models/core.py
AnjanaRita/texion
edb2eb581600af7507f7315dfc0ee92e567c6b47
[ "MIT" ]
null
null
null
texion/models/core.py
AnjanaRita/texion
edb2eb581600af7507f7315dfc0ee92e567c6b47
[ "MIT" ]
null
null
null
from .sklearn.base_sklearn import BaseSklearn from .torch.base_torch import BaseTorch class Texion: def __new__(cls, mode, name, params=None): """ parameters: __________ mode: str configures Texion's Backend, choose either `Sklearn` or `Torch`. name: str ...
24.764706
79
0.597387
87
842
5.517241
0.563218
0.0625
0.066667
0.075
0.175
0.175
0.175
0.175
0.175
0
0
0
0.331354
842
33
80
25.515152
0.852575
0.369359
0
0.2
0
0
0.20283
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.6
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
102ee09bcc7103b2bffb1124afb43dd99b75ca8a
5,224
py
Python
MyNaiveBayes.py
hakimkt/SAIVS
c310bd7c9426f0d21efeea8866cf6b881b7e8530
[ "Apache-2.0" ]
40
2018-10-29T02:29:13.000Z
2021-11-23T13:14:50.000Z
MyNaiveBayes.py
5l1v3r1/SAIVS
aa62451665b6398ba329d68592bf4313be60a886
[ "Apache-2.0" ]
1
2021-02-23T12:27:28.000Z
2021-02-23T12:27:28.000Z
MyNaiveBayes.py
5l1v3r1/SAIVS
aa62451665b6398ba329d68592bf4313be60a886
[ "Apache-2.0" ]
29
2018-10-29T02:29:17.000Z
2022-03-17T06:31:35.000Z
#!/usr/bin/python #coding:utf-8 import os import sys import math import pickle # NaiveBayesで種々の分類を実行 class Classify(): def __init__(self): # 訓練済みデータを格納するpklファイルパスを定義 self.bin_nb_okng_body_path = os.path.join('.\\data', 'nb_okng_classify_body.pkl') self.bin_nb_page_type_bod...
33.487179
100
0.605475
603
5,224
4.912106
0.237148
0.032411
0.035111
0.035449
0.242404
0.204591
0.142134
0.082377
0.055368
0.055368
0
0.004184
0.313744
5,224
155
101
33.703226
0.821757
0.106815
0
0.096774
0
0
0.041741
0.020313
0
0
0
0
0
0
null
null
0
0.043011
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
102f598f4778700bb879fb2c9df1042899e6882b
1,165
py
Python
6.- DBSCAN and PCA/solution/2.pca.py
nik1168/data-representation-reduction-exercises
6b39940ae2c9f5a0eb5a3ce4ed57a32e1d2ac166
[ "Apache-2.0" ]
null
null
null
6.- DBSCAN and PCA/solution/2.pca.py
nik1168/data-representation-reduction-exercises
6b39940ae2c9f5a0eb5a3ce4ed57a32e1d2ac166
[ "Apache-2.0" ]
null
null
null
6.- DBSCAN and PCA/solution/2.pca.py
nik1168/data-representation-reduction-exercises
6b39940ae2c9f5a0eb5a3ce4ed57a32e1d2ac166
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, print_function, division from sklearn.datasets import load_digits import matplotlib.pyplot as plt from time import time import numpy as np from numpy import linalg as LA from sklearn.decomposition import PCA from sklearn.preprocessing import StandardScaler # Step 1: Load dataset...
26.477273
92
0.759657
199
1,165
4.306533
0.40201
0.077013
0.044341
0
0
0
0
0
0
0
0
0.008008
0.142489
1,165
43
93
27.093023
0.84985
0.321888
0
0.12
0
0
0.032051
0
0
0
0
0
0
1
0
false
0
0.32
0
0.32
0.12
0
0
0
null
0
0
0
0
0
0
0
0
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
103255cd19645e003748405e09f44b6314288620
3,720
py
Python
cloudify/models_states.py
michailj/cloudify-common
dfc83adbd9ec6f07539445ca5d7008fa733bed03
[ "Apache-2.0" ]
null
null
null
cloudify/models_states.py
michailj/cloudify-common
dfc83adbd9ec6f07539445ca5d7008fa733bed03
[ "Apache-2.0" ]
null
null
null
cloudify/models_states.py
michailj/cloudify-common
dfc83adbd9ec6f07539445ca5d7008fa733bed03
[ "Apache-2.0" ]
null
null
null
######## # Copyright (c) 2018 Cloudify Platform Ltd. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
29.76
79
0.696505
378
3,720
6.748677
0.37037
0.02352
0.0294
0.025872
0.114857
0.048608
0.032144
0
0
0
0
0.003064
0.210484
3,720
124
80
30
0.865509
0.183871
0
0.166667
0
0
0.176
0.010667
0
0
0
0
0
1
0
false
0
0
0
0.892857
0.011905
0
0
0
null
0
0
0
0
0
0
0
0
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
1034a913503170976819b1e13417d1fddc21ece8
6,484
py
Python
src/finmag/physics/physics.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
10
2018-03-24T07:43:17.000Z
2022-03-26T10:42:27.000Z
src/finmag/physics/physics.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
21
2018-03-26T15:08:53.000Z
2021-07-10T16:11:14.000Z
src/finmag/physics/physics.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
7
2018-04-09T11:50:48.000Z
2021-06-10T09:23:25.000Z
""" Derives physical quantities from the primary simulation state. """ import logging import numpy as np import dolfin as df import finmag.util.consts as consts from finmag.field import Field from effective_field import EffectiveField from equation import Equation logger = logging.getLogger(name="finmag") class Phy...
35.048649
195
0.615978
958
6,484
4.099165
0.273486
0.015279
0.013751
0.02139
0.211103
0.188439
0.125796
0.110517
0.085562
0.085562
0
0.004746
0.285163
6,484
184
196
35.23913
0.842503
0.494139
0
0.147059
0
0
0.016388
0.008194
0
0
0
0.016304
0.044118
1
0.147059
false
0
0.102941
0
0.397059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
104210c3255c17f689cfaec0a4b59907164b98ac
961
py
Python
Data Science With Python/09-manipulating-dataframes-with-pandas/05-putting-it-all-together/09-visualizing-usa-medal-counts-by-edition-line-plot.py
aimanahmedmoin1997/DataCamp
c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d
[ "MIT" ]
3
2019-05-12T04:49:24.000Z
2020-05-06T00:40:28.000Z
Data Science With Python/09-manipulating-dataframes-with-pandas/05-putting-it-all-together/09-visualizing-usa-medal-counts-by-edition-line-plot.py
aimanahmedmoin1997/DataCamp
c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d
[ "MIT" ]
null
null
null
Data Science With Python/09-manipulating-dataframes-with-pandas/05-putting-it-all-together/09-visualizing-usa-medal-counts-by-edition-line-plot.py
aimanahmedmoin1997/DataCamp
c6a6c4d59b83f14854bd76ed5c0c7f2dddd6de1d
[ "MIT" ]
7
2018-11-06T17:43:31.000Z
2020-11-07T21:08:16.000Z
''' Visualizing USA Medal Counts by Edition: Line Plot Your job in this exercise is to visualize the medal counts by 'Edition' for the USA. The DataFrame has been pre-loaded for you as medals. INSTRUCTIONS 100XP Create a DataFrame usa with data only for the USA. Group usa such that ['Edition', 'Medal'] is the index. ...
38.44
137
0.764828
159
961
4.471698
0.383648
0.113924
0.123769
0.168776
0.198312
0.139241
0.084388
0.084388
0
0
0
0.003641
0.14256
961
24
138
40.041667
0.859223
0.763788
0
0
0
0
0.125
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
104b1e2b71cafb9c345d866cbb4a1ef64091c927
542
py
Python
yggdrasil/communication/PickleFileComm.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
22
2019-02-05T15:20:07.000Z
2022-02-25T09:00:40.000Z
yggdrasil/communication/PickleFileComm.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
48
2019-02-15T20:41:24.000Z
2022-03-16T20:52:02.000Z
yggdrasil/communication/PickleFileComm.py
astro-friedel/yggdrasil
5ecbfd083240965c20c502b4795b6dc93d94b020
[ "BSD-3-Clause" ]
16
2019-04-27T03:36:40.000Z
2021-12-02T09:47:06.000Z
from yggdrasil.communication import FileComm class PickleFileComm(FileComm.FileComm): r"""Class for handling I/O from/to a pickled file on disk. Args: name (str): The environment variable where file path is stored. **kwargs: Additional keywords arguments are passed to parent class. """ ...
30.111111
75
0.662362
62
542
5.66129
0.806452
0
0
0
0
0
0
0
0
0
0
0
0.261993
542
17
76
31.882353
0.8775
0.370849
0
0
0
0
0.217666
0
0
0
0
0
0
1
0
false
0
0.125
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
104d26934f3226631a09b0224a69159d8d0e520b
6,073
py
Python
dcm-meta-xformer.py
dmoore247/pixels
cf78ab016530c42bc36538a9b812fe23107f87d7
[ "Apache-2.0" ]
2
2021-03-28T18:50:50.000Z
2021-08-09T02:06:15.000Z
dcm-meta-xformer.py
dmoore247/pixels
cf78ab016530c42bc36538a9b812fe23107f87d7
[ "Apache-2.0" ]
null
null
null
dcm-meta-xformer.py
dmoore247/pixels
cf78ab016530c42bc36538a9b812fe23107f87d7
[ "Apache-2.0" ]
null
null
null
# Databricks notebook source # MAGIC %pip install git+https://github.com/dmoore247/pixels.git@patcher # COMMAND ---------- from pyspark.ml import Pipeline from databricks.pixels import DicomFrames from databricks.pixels import DicomMetaExtractor # COMMAND ---------- path = 'dbfs:/FileStore/shared_uploads/douglas.mo...
28.378505
122
0.586037
698
6,073
4.889685
0.237822
0.02637
0.013185
0.030472
0.308819
0.26194
0.224436
0.224436
0.224436
0.177849
0
0.012048
0.275646
6,073
213
123
28.511737
0.76381
0.102585
0
0.285714
0
0
0.100628
0.012371
0
0
0
0.004695
0
0
null
null
0
0.105263
null
null
0.030075
0
0
0
null
0
0
0
0
0
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
104e906ccf0cc1a6a8390078dd020b890dd1cae5
1,027
py
Python
astronomy_datamodels/tags/subarray.py
spacetelescope/astronomy_datamodels
ca5db82d5982781ea763cef9851d4c982fd86328
[ "BSD-3-Clause" ]
1
2019-03-08T03:06:43.000Z
2019-03-08T03:06:43.000Z
astronomy_datamodels/tags/subarray.py
spacetelescope/astronomy_datamodels
ca5db82d5982781ea763cef9851d4c982fd86328
[ "BSD-3-Clause" ]
1
2020-10-29T19:54:28.000Z
2020-10-29T19:54:28.000Z
astronomy_datamodels/tags/subarray.py
spacetelescope/astronomy_datamodels
ca5db82d5982781ea763cef9851d4c982fd86328
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- from asdf import yamlutil from asdf.versioning import AsdfSpec from ..types import AstronomyDataModelType from ..subarray import Subarray class SubarrayType(AstronomyDataModelType): name = 'datamodel/subarray' version = '1....
27.756757
71
0.615385
123
1,027
5.097561
0.463415
0.038278
0.028708
0.031898
0
0
0
0
0
0
0
0.010738
0.274586
1,027
36
72
28.527778
0.830872
0.137293
0
0.103448
0
0
0.111364
0.043182
0
0
0
0
0.034483
1
0.103448
false
0.034483
0.137931
0
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
0
0
0
0
0
1
0
0
1
104ee0b4a0407cf3c5bf1c701a12b0113aae32a9
1,690
py
Python
tests/io/inputs/test_token_parser.py
Ivoz/cleo
8dc694ed5ed350403966f93d330654ecb447801b
[ "MIT" ]
859
2015-02-04T02:33:22.000Z
2022-03-31T10:41:06.000Z
tests/io/inputs/test_token_parser.py
Ivoz/cleo
8dc694ed5ed350403966f93d330654ecb447801b
[ "MIT" ]
66
2015-01-04T19:43:48.000Z
2022-03-30T02:33:13.000Z
tests/io/inputs/test_token_parser.py
Ivoz/cleo
8dc694ed5ed350403966f93d330654ecb447801b
[ "MIT" ]
64
2015-01-18T08:32:43.000Z
2022-03-02T10:43:58.000Z
import pytest from cleo.io.inputs.token_parser import TokenParser @pytest.mark.parametrize( "string, tokens", [ ("", []), ("foo", ["foo"]), (" foo bar ", ["foo", "bar"]), ('"quoted"', ["quoted"]), ("'quoted'", ["quoted"]), ("'a\rb\nc\td'", ["a\rb\nc\td"]), ...
39.302326
81
0.442012
177
1,690
4.20904
0.242938
0.136913
0.209396
0.150336
0.626846
0.566443
0.413423
0.413423
0.413423
0.347651
0
0
0.231953
1,690
42
82
40.238095
0.57396
0
0
0
0
0
0.479882
0
0
0
0
0
0.025641
1
0.025641
false
0
0.051282
0
0.076923
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
104ef278b7065e467b128760f4e55840a34dc2b7
2,641
py
Python
python/muse/data_structures/ArrayList.py
networkhermit/algorithm
5c7221b12fac2de947a7c75ee40ff4ff519b443f
[ "MIT" ]
null
null
null
python/muse/data_structures/ArrayList.py
networkhermit/algorithm
5c7221b12fac2de947a7c75ee40ff4ff519b443f
[ "MIT" ]
null
null
null
python/muse/data_structures/ArrayList.py
networkhermit/algorithm
5c7221b12fac2de947a7c75ee40ff4ff519b443f
[ "MIT" ]
null
null
null
class ArrayList: DEFAULT_CAPACITY = 64 def __init__(self, physicalSize: int = 0): self.data = None self.logicalSize = 0 self.physicalSize = self.DEFAULT_CAPACITY if physicalSize > 1: self.physicalSize = physicalSize self.data = [0] * self.physicalSize d...
27.510417
74
0.580462
302
2,641
5.049669
0.149007
0.196721
0.03541
0.04459
0.485902
0.403934
0.339672
0.308197
0.308197
0.308197
0
0.013661
0.307081
2,641
95
75
27.8
0.819672
0
0
0.234375
0
0
0.039379
0
0
0
0
0
0
1
0.234375
false
0
0
0.078125
0.359375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
105132707d95e266bf026a07a991b27eaa6b30a3
922
py
Python
terminalstyle.py
ChrisDavison/scripts
ebbe52626aac041f37a1143607dc0cc74515a198
[ "MIT" ]
null
null
null
terminalstyle.py
ChrisDavison/scripts
ebbe52626aac041f37a1143607dc0cc74515a198
[ "MIT" ]
null
null
null
terminalstyle.py
ChrisDavison/scripts
ebbe52626aac041f37a1143607dc0cc74515a198
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 class Style: """Shortcuts to terminal styling escape sequences""" BOLD = "\033[1m" END = "\033[0m" FG_Black = "\033[30m" FG_Red = "\033[31m" FG_Green = "\033[32m" FG_Yellow = "\033[33m" FG_Blue = "\033[34m" FG_Magenta = "\033[35m" FG_Cyan = "\033[36m" ...
23.641026
56
0.58026
129
922
4
0.372093
0.116279
0.100775
0.139535
0.284884
0
0
0
0
0
0
0.128427
0.248373
922
38
57
24.263158
0.616162
0.073753
0
0.129032
0
0
0.324292
0.15684
0
0
0
0
0
1
0.129032
false
0
0
0.129032
0.870968
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1