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
54e39ead405a5c45763c7eed5692ae77d805146b
309
py
Python
ranker/rank_adjuster_interface.py
awesome-archive/city_visit_planner
20befca3d70db61bc83356eedd490a298b27f96f
[ "MIT" ]
1
2019-11-14T22:08:59.000Z
2019-11-14T22:08:59.000Z
ranker/rank_adjuster_interface.py
sandoche/city_visit_planner
20befca3d70db61bc83356eedd490a298b27f96f
[ "MIT" ]
null
null
null
ranker/rank_adjuster_interface.py
sandoche/city_visit_planner
20befca3d70db61bc83356eedd490a298b27f96f
[ "MIT" ]
null
null
null
from collections import namedtuple ScorePoint = namedtuple('ScorePoint', 'Score Point') class RankAdjusterInterface(object): """Abstract class which adjusts rank of points.""" def AdjustRank(self, score_points, city_visit_parameters): """Adjusts scores of points.""" raise NotImplemented()
23.769231
60
0.744337
33
309
6.878788
0.757576
0.176211
0
0
0
0
0
0
0
0
0
0
0.152104
309
12
61
25.75
0.866412
0.226537
0
0
0
0
0.092105
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
54e66c3efe15cd13e88d1e62b1853fbe9568d5bc
5,815
py
Python
tests/oas_types/test_secondary_objects.py
endafarrell/openapi-sanic3e
cfb4bcb7e983693e5abb781c23dba3931a1caadd
[ "MIT" ]
7
2021-01-14T19:28:48.000Z
2021-09-19T07:39:02.000Z
tests/oas_types/test_secondary_objects.py
endafarrell/sanic-openapi3e
cfb4bcb7e983693e5abb781c23dba3931a1caadd
[ "MIT" ]
24
2019-03-04T09:18:27.000Z
2021-01-20T10:17:04.000Z
tests/oas_types/test_secondary_objects.py
endafarrell/sanic-openapi3e
cfb4bcb7e983693e5abb781c23dba3931a1caadd
[ "MIT" ]
null
null
null
import pytest from sanic_openapi3e.oas_types import ( XML, Contact, Discriminator, Encoding, Example, Header, Link, MediaType, OAuthFlow, OAuthFlows, SecurityScheme, ServerVariable, ) ######################################################################################...
35.674847
120
0.407739
358
5,815
6.469274
0.27933
0.03886
0.062176
0.07772
0.295769
0.243955
0.205095
0.102763
0.102763
0.049223
0
0.002237
0.154428
5,815
162
121
35.895062
0.468782
0.029407
0
0.189474
0
0
0.226832
0
0
0
0
0
0.189474
1
0.084211
false
0
0.021053
0
0.105263
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
54ec6d7ce1cfc7daee4d029aa607d50e337b7e46
841
py
Python
scripts/redact_cli_py/redact/types/pre_processing_bundle.py
ScriptBox21/OCR-Form-Tools
2b130424f76cab5d1391a7c90674a9accf2890c3
[ "MIT" ]
1
2022-01-21T07:02:02.000Z
2022-01-21T07:02:02.000Z
scripts/redact_cli_py/redact/types/pre_processing_bundle.py
ScriptBox21/OCR-Form-Tools
2b130424f76cab5d1391a7c90674a9accf2890c3
[ "MIT" ]
1
2022-02-16T16:24:36.000Z
2022-02-16T16:24:36.000Z
scripts/redact_cli_py/redact/types/pre_processing_bundle.py
ScriptBox21/OCR-Form-Tools
2b130424f76cab5d1391a7c90674a9accf2890c3
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project # root for license information. from dataclasses import dataclass from typing import Any from redact.types.file_bundle import FileBundle @dataclass class PdfPreProcessingBundle: rendered_f...
35.041667
81
0.747919
101
841
5.920792
0.435644
0.140468
0.107023
0.12709
0.076923
0
0
0
0
0
0
0
0.198573
841
23
82
36.565217
0.88724
0.178359
0
0
0
0
0.046579
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
54ed56583529245d731b674c78186e6cd79a55df
1,066
py
Python
malon_lp/malon_lp/admin/json_encoder.py
pucarasec/Build-C2-RedTeam-Course
d1d6e1651580b1ce2461921fccb2a604d2f083b6
[ "BSD-3-Clause" ]
9
2021-11-25T08:24:32.000Z
2022-01-31T13:16:15.000Z
malon_lp/malon_lp/admin/json_encoder.py
pucarasec/Build-C2-RedTeam-Course
d1d6e1651580b1ce2461921fccb2a604d2f083b6
[ "BSD-3-Clause" ]
null
null
null
malon_lp/malon_lp/admin/json_encoder.py
pucarasec/Build-C2-RedTeam-Course
d1d6e1651580b1ce2461921fccb2a604d2f083b6
[ "BSD-3-Clause" ]
null
null
null
import json from datetime import datetime from base64 import b64encode from sqlalchemy.ext.declarative import DeclarativeMeta def to_camel_case(s: str) -> str: return ''.join(map(str.capitalize, s.split('_'))) class BaseEncoder(json.JSONEncoder): def default(self, obj): if type(obj) == datetime: ...
28.810811
59
0.579737
109
1,066
5.495413
0.504587
0.040067
0.046745
0.056761
0.146912
0
0
0
0
0
0
0.009722
0.324578
1,066
36
60
29.611111
0.822222
0
0
0.206897
0
0
0.005629
0
0
0
0
0
0
1
0.103448
false
0
0.137931
0.034483
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
54f7970178b1edacfd6d77f37463bdde6324cc74
1,590
py
Python
2021/python/08.py
Zonotora/adventofcode
5784ca69b8a2b5c611680cd3b87ae177c966c4ff
[ "MIT" ]
null
null
null
2021/python/08.py
Zonotora/adventofcode
5784ca69b8a2b5c611680cd3b87ae177c966c4ff
[ "MIT" ]
null
null
null
2021/python/08.py
Zonotora/adventofcode
5784ca69b8a2b5c611680cd3b87ae177c966c4ff
[ "MIT" ]
null
null
null
# flake8: noqa from python import * aoc = AdventOfCode("2021", "08", "Seven Segment Search", new) @aoc.part(1) def part1(items): cnt = 0 for line in items: out = line.split("|")[1].split() for w in out: n = len(w) if n == 2 or n == 4 or n == 7 or n == 3: ...
22.394366
72
0.338994
215
1,590
2.469767
0.274419
0.037665
0.022599
0.073446
0.320151
0.320151
0.320151
0.233522
0.233522
0.233522
0
0.077748
0.530818
1,590
70
73
22.714286
0.634048
0.012579
0
0.285714
0
0
0.02425
0
0
0
0
0
0
1
0.035714
false
0
0.017857
0
0.089286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
54fbfc1c617cfab26779d34945878da8335b69b9
4,568
py
Python
numba/np/ufunc/gufunc.py
avdul-q101/numba
199798e2c849b5e63eeef36972566fda7b84625c
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
numba/np/ufunc/gufunc.py
avdul-q101/numba
199798e2c849b5e63eeef36972566fda7b84625c
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
numba/np/ufunc/gufunc.py
avdul-q101/numba
199798e2c849b5e63eeef36972566fda7b84625c
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
from numba import typeof from numba.core import types from numba.np.ufunc.ufuncbuilder import GUFuncBuilder from numba.np.ufunc.sigparse import parse_signature from numba.np.numpy_support import ufunc_find_matching_loop class GUFunc(object): """ Dynamic generalized universal function (GUFunc) intended to ...
31.722222
95
0.614054
579
4,568
4.654577
0.305699
0.043414
0.046753
0.049351
0.058627
0.042301
0.042301
0.042301
0.042301
0.042301
0
0.011516
0.296629
4,568
143
96
31.944056
0.827264
0.212785
0
0.16129
0
0
0.059257
0
0
0
0
0
0.010753
1
0.193548
false
0
0.053763
0.107527
0.430108
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
54fe306e47a62b0dfe496928ed75b122082b9073
41,421
py
Python
czsc/signals.py
yanding/czsc
258bcda4d6002b5f9ae07564cd2c07a9766de7af
[ "MIT" ]
null
null
null
czsc/signals.py
yanding/czsc
258bcda4d6002b5f9ae07564cd2c07a9766de7af
[ "MIT" ]
null
null
null
czsc/signals.py
yanding/czsc
258bcda4d6002b5f9ae07564cd2c07a9766de7af
[ "MIT" ]
null
null
null
# coding: utf-8 import numpy as np from typing import List, Union from collections import OrderedDict from datetime import datetime from .objects import Direction, BI, FakeBI, Signal from .enum import Freq from .utils.ta import MACD, SMA, KDJ from .cobra.utils import kdj_gold_cross from . import analyze def check_th...
38.035813
120
0.530649
6,678
41,421
3.235999
0.066936
0.060342
0.052938
0.05664
0.786441
0.743637
0.694863
0.650671
0.605831
0.574132
0
0.077245
0.285218
41,421
1,088
121
38.070772
0.65265
0.059366
0
0.393056
0
0
0.058515
0.000727
0
0
0
0
0.015278
1
0.026389
false
0
0.0125
0
0.183333
0.002778
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
54ff865bb3eed1597f8e72da1fa38537805e96b3
521
py
Python
dedupe/__init__.py
dwillis/dedupe
d85833a5f5c2de5671df51e828ba1609de7b8f05
[ "MIT" ]
1
2021-01-13T12:10:49.000Z
2021-01-13T12:10:49.000Z
dedupe/__init__.py
dwillis/dedupe
d85833a5f5c2de5671df51e828ba1609de7b8f05
[ "MIT" ]
null
null
null
dedupe/__init__.py
dwillis/dedupe
d85833a5f5c2de5671df51e828ba1609de7b8f05
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- __all__ = ['affinegap', 'blocking', 'clustering', 'core', 'lr', 'predicates', 'training_sample', 'crossvalidation', 'dedupe', ] import affinegap import blocking import clustering...
20.038462
34
0.627639
49
521
6.571429
0.489796
0.062112
0.130435
0
0
0
0
0
0
0
0
0.002695
0.287908
521
25
35
20.84
0.865229
0.072937
0
0
0
0
0.164241
0
0
0
0
0
0
1
0
false
0
0.545455
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0705d0e25c17be621b6165355bd3b7cb879b7a33
3,238
py
Python
recipes/Python/498110_Memoize_decorator_O1_lengthlimited_LRU_cache/recipe-498110.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/498110_Memoize_decorator_O1_lengthlimited_LRU_cache/recipe-498110.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/498110_Memoize_decorator_O1_lengthlimited_LRU_cache/recipe-498110.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
import cPickle __all__ = ['memoize'] # This would usually be defined elsewhere class decoratorargs(object): def __new__(typ, *attr_args, **attr_kwargs): def decorator(orig_func): self = object.__new__(typ) self.__init__(orig_func, *attr_args, **attr_kwargs) return self return decorator class memoi...
24.907692
99
0.657505
505
3,238
4.140594
0.279208
0.060258
0.028694
0.021521
0.104256
0.104256
0.082257
0.056432
0.056432
0.056432
0
0.059921
0.221742
3,238
129
100
25.100775
0.769841
0.313465
0
0.223684
0
0
0.01596
0
0
0
0
0
0
0
null
null
0
0.013158
null
null
0.013158
0
0
0
null
0
0
0
0
0
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
070fc930159cd58a489661b7af3fdef175ea1487
1,426
py
Python
tests/test_trapd_http_session.py
onap/dcaegen2-services-heartbeat
09e4bcc329b50dd2ec5a9e2daf868e93558db301
[ "Apache-2.0", "CC-BY-4.0" ]
1
2021-10-15T15:02:12.000Z
2021-10-15T15:02:12.000Z
tests/test_trapd_http_session.py
onap/dcaegen2-services-heartbeat
09e4bcc329b50dd2ec5a9e2daf868e93558db301
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
tests/test_trapd_http_session.py
onap/dcaegen2-services-heartbeat
09e4bcc329b50dd2ec5a9e2daf868e93558db301
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# ============LICENSE_START======================================================= # Copyright (c) 2017-2021 AT&T Intellectual Property. All rights reserved. # Copyright (c) 2019 Pantheon.tech. All rights reserved. # Copyright (c) 2021 Fujitsu Ltd. # =====================================================================...
40.742857
82
0.622721
172
1,426
5.063953
0.622093
0.068886
0.04822
0.059701
0.061998
0
0
0
0
0
0
0.016694
0.159888
1,426
34
83
41.941176
0.710351
0.707574
0
0
0
0
0.099448
0.071823
0
0
0
0
0.142857
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0711add8bffa798252c1a0d676df1d40801f19de
2,536
py
Python
main.py
riz4d/PWDgenBot
1857421728ba766272140cba7d9be195919f50ba
[ "Apache-2.0" ]
2
2021-11-22T10:21:39.000Z
2021-12-15T08:35:20.000Z
main.py
riz4d/PWDgenBot
1857421728ba766272140cba7d9be195919f50ba
[ "Apache-2.0" ]
null
null
null
main.py
riz4d/PWDgenBot
1857421728ba766272140cba7d9be195919f50ba
[ "Apache-2.0" ]
null
null
null
from pyrogram import Client, filters from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton import random,os Ek = Client( "Password Generator Bot", bot_token = os.environ["BOT_TOKEN"], api_id = int(os.environ["API_ID"]), api_hash = os.environ["API_HASH"] ) @Ek.on_message(filters.priv...
39.625
282
0.679811
333
2,536
5.084084
0.372372
0.008269
0.025989
0.042528
0.337862
0.3101
0.3101
0.242174
0.242174
0.242174
0
0.020763
0.18336
2,536
63
283
40.253968
0.795268
0
0
0.173077
0
0.076923
0.382886
0.033123
0
0
0
0
0
1
0
false
0.192308
0.057692
0
0.057692
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
07164d577a93e3f5de979a0dcaaf589dda72aa94
1,441
py
Python
filebrowser/models.py
wgenesis/GenesisFileBrowser
946a883202189f822689149d697da4925b120f31
[ "MIT" ]
null
null
null
filebrowser/models.py
wgenesis/GenesisFileBrowser
946a883202189f822689149d697da4925b120f31
[ "MIT" ]
null
null
null
filebrowser/models.py
wgenesis/GenesisFileBrowser
946a883202189f822689149d697da4925b120f31
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from user.models import Member # Create your models here. class Organization(models.Model): Organization_name = models.CharField(max_length=20, unique=True) def __str__(self): return self.Organization_name class Folder(models.Model): ...
30.659574
83
0.751561
183
1,441
5.704918
0.289617
0.086207
0.103448
0.137931
0.476054
0.430077
0.322797
0.210728
0
0
0
0.013776
0.14365
1,441
46
84
31.326087
0.832253
0.139486
0
0.1
0
0
0.017872
0
0
0
0
0
0
1
0.1
false
0
0.1
0.1
0.866667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
071698839377a37052b89b5ce76649ecb61665ed
1,999
py
Python
vocabs/tests/test_import_export.py
csae8092/vocabseditor
de94161424dcaee6f9e8f41936a5910493cfe3c2
[ "MIT" ]
9
2019-04-24T10:10:11.000Z
2021-10-21T13:52:02.000Z
vocabs/tests/test_import_export.py
csae8092/vocabseditor
de94161424dcaee6f9e8f41936a5910493cfe3c2
[ "MIT" ]
21
2020-02-07T10:38:04.000Z
2022-02-04T11:42:55.000Z
vocabs/tests/test_import_export.py
csae8092/vocabseditor
de94161424dcaee6f9e8f41936a5910493cfe3c2
[ "MIT" ]
4
2020-07-03T21:24:43.000Z
2021-12-26T19:34:52.000Z
import os from django.test import TestCase from django.contrib.auth.models import User from rdflib import Graph from .constants import USER from ..models import SkosConceptScheme, SkosCollection, SkosConcept from ..skos_import import SkosImporter from ..rdf_utils import graph_construct_qs EXAMPLE_SKOS_IMPORT = os.p...
39.196078
119
0.721861
255
1,999
5.447059
0.305882
0.097192
0.085673
0.056156
0.4982
0.439165
0.387329
0.332613
0.332613
0.277898
0
0.004132
0.152576
1,999
50
120
39.98
0.815821
0.043022
0
0.228571
0
0
0.084255
0.024223
0
0
0
0
0.257143
1
0.142857
false
0
0.342857
0
0.542857
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
07175e3fadc0905d26bd8460fcd879fe327a5601
717
py
Python
1201-1300/1202-IPO/1202-IPO.py
jiadaizhao/LintCode
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
77
2017-12-30T13:33:37.000Z
2022-01-16T23:47:08.000Z
1201-1300/1202-IPO/1202-IPO.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
1
2018-05-14T14:15:40.000Z
2018-05-14T14:15:40.000Z
1201-1300/1202-IPO/1202-IPO.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
39
2017-12-07T14:36:25.000Z
2022-03-10T23:05:37.000Z
import heapq class Solution: """ @param k: an integer @param W: an integer @param Profits: an array @param Capital: an array @return: final maximized capital """ def findMaximizedCapital(self, k, W, Profits, Capital): # Write your code here cappq = [(cap, i) for i, cap in...
28.68
59
0.524407
79
717
4.746835
0.506329
0.048
0.074667
0
0
0
0
0
0
0
0
0.004494
0.379358
717
24
60
29.875
0.838202
0.203626
0
0
0
0
0
0
0
0
0
0.041667
0
1
0.066667
false
0
0.066667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0717b496887e4096f9cc1842d8e5ca9c2959ab88
771
py
Python
Experimental/SolveEquationForVal.py
CAP1Sup/SieskoPythonLabs
3a0525b4feb88ad865db3f0bc30ce4e3290358f7
[ "MIT" ]
null
null
null
Experimental/SolveEquationForVal.py
CAP1Sup/SieskoPythonLabs
3a0525b4feb88ad865db3f0bc30ce4e3290358f7
[ "MIT" ]
null
null
null
Experimental/SolveEquationForVal.py
CAP1Sup/SieskoPythonLabs
3a0525b4feb88ad865db3f0bc30ce4e3290358f7
[ "MIT" ]
null
null
null
# Christian Piper # 11/11/19 # This will accept algebra equations on the input and solve for the variable def main(): equation = input("Input your equation: ") variable = input("Input the variable to be solved for: ") solveAlgebraEquation(equation, variable) def solveAlgebraEquation(equation, variable): ...
28.555556
128
0.575875
88
771
5.045455
0.454545
0.094595
0.157658
0.162162
0.103604
0.103604
0.103604
0.103604
0.103604
0.103604
0
0.016071
0.273671
771
27
129
28.555556
0.776786
0.128405
0
0
0
0
0.12855
0
0.0625
0
0
0
0
1
0.125
false
0
0
0
0.125
0.125
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
071af927b64d714b352ddbc10aa270db9f4d8c79
1,955
py
Python
tcp_exploit.py
sandlib/pythonpentest
63203f939b3e62b960a36cf8d5499e444212d56a
[ "BSD-3-Clause" ]
174
2015-07-14T19:34:09.000Z
2021-06-12T09:29:10.000Z
tcp_exploit.py
sandlib/pythonpentest
63203f939b3e62b960a36cf8d5499e444212d56a
[ "BSD-3-Clause" ]
8
2016-12-13T14:54:51.000Z
2021-09-30T19:13:49.000Z
tcp_exploit.py
sandlib/pythonpentest
63203f939b3e62b960a36cf8d5499e444212d56a
[ "BSD-3-Clause" ]
138
2015-09-11T23:26:20.000Z
2021-01-24T22:12:42.000Z
#!/us/bin/env python ''' Author: Chris Duffy Date: May 2015 Name: tcp_exploit.py Purpose: An sample exploit for testing TCP services Copyright (c) 2015, Christopher Duffy All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following co...
45.465116
89
0.777494
287
1,955
5.278746
0.567944
0.023762
0.022442
0.030363
0.121452
0.089769
0.089769
0.089769
0.089769
0.089769
0
0.006687
0.158568
1,955
42
90
46.547619
0.914286
0
0
0
0
0
0.024055
0
0
0
0
0
0
0
null
null
0
0.083333
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
071c385a2756a7f8b3345d80cf6cfef469226fdc
9,141
py
Python
notebooks/Earthquake Physics/rupturedynamics_1D/interfacedata.py
krischer/seismo_live_build
e4e8e59d9bf1b020e13ac91c0707eb907b05b34f
[ "CC-BY-3.0" ]
3
2020-07-11T10:01:39.000Z
2020-12-16T14:26:03.000Z
notebooks/Earthquake Physics/rupturedynamics_1D/interfacedata.py
krischer/seismo_live_build
e4e8e59d9bf1b020e13ac91c0707eb907b05b34f
[ "CC-BY-3.0" ]
null
null
null
notebooks/Earthquake Physics/rupturedynamics_1D/interfacedata.py
krischer/seismo_live_build
e4e8e59d9bf1b020e13ac91c0707eb907b05b34f
[ "CC-BY-3.0" ]
3
2020-11-11T05:05:41.000Z
2022-03-12T09:36:24.000Z
def interface_condition(v_m,t_m,v_p,t_p,rho_m,mu_m,rho_p,mu_p): # # generate interface data for a locked interface import numpy as np # local wave speeds and impedances cs_m = np.sqrt(mu_m/rho_m) # left block Zs_m = rho_m * cs_m # left block cs_p = np.sqrt(mu_p...
36.27381
148
0.450717
1,281
9,141
2.984387
0.13427
0.011509
0.010201
0.006278
0.601622
0.56814
0.549307
0.527335
0.477112
0.46351
0
0.031326
0.458703
9,141
251
149
36.418327
0.74131
0.370966
0
0.450382
1
0
0.02726
0
0
0
0
0
0
1
0.045802
false
0
0.038168
0
0.160305
0.007634
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
0722fd8b275fb1d37cb48d115d553daa5b19a6af
1,794
py
Python
tests/template_tests/syntax_tests/test_filter_tag.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
16
2019-08-10T12:24:06.000Z
2020-05-21T09:11:14.000Z
tests/template_tests/syntax_tests/test_filter_tag.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
12
2019-08-10T11:55:29.000Z
2020-05-21T04:46:30.000Z
tests/template_tests/syntax_tests/test_filter_tag.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
3
2019-08-20T13:29:34.000Z
2020-01-30T22:05:10.000Z
from django.template import TemplateSyntaxError from django.test import SimpleTestCase from ..utils import setup class FilterTagTests(SimpleTestCase): @setup({"filter01": "{% filter upper %}{% endfilter %}"}) def test_filter01(self): output = self.engine.render_to_string("filter01") self.asse...
38.170213
77
0.656076
181
1,794
6.392265
0.226519
0.082973
0.110631
0.069144
0.508211
0.338807
0.338807
0.221262
0.221262
0
0
0.032967
0.188406
1,794
46
78
39
0.761676
0
0
0.166667
0
0
0.274805
0
0
0
0
0
0.222222
1
0.222222
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
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0723f7d942291bc87979c6520266357df36ba676
13,732
py
Python
lunavl/sdk/image_utils/image.py
ddc67cd/lunasdk
93915256c56059847ed0a75f0a81791c0261f5af
[ "MIT" ]
2
2021-06-23T09:53:56.000Z
2021-10-03T10:54:45.000Z
lunavl/sdk/image_utils/image.py
VisionLabs/lunasdk
540ea29cc5aeb46ca185e6412a8b9d59804f8b39
[ "MIT" ]
null
null
null
lunavl/sdk/image_utils/image.py
VisionLabs/lunasdk
540ea29cc5aeb46ca185e6412a8b9d59804f8b39
[ "MIT" ]
null
null
null
""" Module realize VLImage - structure for storing image in special format. """ from enum import Enum from pathlib import Path from typing import Optional, Union import requests from FaceEngine import FormatType, Image as CoreImage # pylint: disable=E0611,E0401 import numpy as np from PIL.Image import Image as PilImag...
28.970464
119
0.583455
1,432
13,732
5.582402
0.202514
0.037403
0.026145
0.010508
0.332499
0.225044
0.182887
0.182887
0.163373
0.163373
0
0.019807
0.327192
13,732
473
120
29.031712
0.845438
0.355811
0
0.236264
0
0
0.031547
0
0
0
0
0.010571
0
1
0.126374
false
0.010989
0.06044
0
0.456044
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
072535d4246eae5ae7929ff0a804c56519199c99
4,758
py
Python
NDATools/clientscripts/downloadcmd.py
jacob-lee/nda-tools
e9a4e676c69e4eb228a958d2c90f6c146b2ec811
[ "MIT" ]
null
null
null
NDATools/clientscripts/downloadcmd.py
jacob-lee/nda-tools
e9a4e676c69e4eb228a958d2c90f6c146b2ec811
[ "MIT" ]
null
null
null
NDATools/clientscripts/downloadcmd.py
jacob-lee/nda-tools
e9a4e676c69e4eb228a958d2c90f6c146b2ec811
[ "MIT" ]
null
null
null
from __future__ import with_statement from __future__ import absolute_import import sys if sys.version_info[0] < 3: input = raw_input import argparse from NDATools.Download import Download from NDATools.Configuration import * import NDATools import logging def parse_args(): parser = argparse.ArgumentParser( ...
41.017241
121
0.641026
595
4,758
5.042017
0.321008
0.036
0.068
0.039667
0.232667
0.212333
0.203667
0.203667
0.168
0.112667
0
0.006645
0.240858
4,758
115
122
41.373913
0.82392
0.120008
0
0.037975
0
0
0.322874
0.018443
0
0
0
0.008696
0
1
0.037975
false
0.075949
0.101266
0
0.177215
0.025316
0
0
0
null
0
0
0
0
0
0
0
0
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
07261326be9744fd64c2a02d97af31a217354c47
6,320
py
Python
scripts/filesPermsUtilities.py
meramsey/python-scripts-collection
bb7aefb6f97909e9d807753541107293eec37dd7
[ "MIT" ]
2
2022-03-05T18:02:13.000Z
2022-03-06T14:34:10.000Z
scripts/filesPermsUtilities.py
meramsey/python-scripts-collection
bb7aefb6f97909e9d807753541107293eec37dd7
[ "MIT" ]
null
null
null
scripts/filesPermsUtilities.py
meramsey/python-scripts-collection
bb7aefb6f97909e9d807753541107293eec37dd7
[ "MIT" ]
1
2022-03-10T05:02:34.000Z
2022-03-10T05:02:34.000Z
import os import shutil import pathlib import stat def mkdir_p(path, exist_ok=True): """ Creates the directory and paths leading up to it like unix mkdir -p . Defaults to exist_ok so if it exists were not throwing fatal errors https://docs.python.org/3.7/library/os.html#os.makedirs """ if not ...
33.089005
118
0.596835
859
6,320
4.32596
0.277066
0.014532
0.017492
0.014532
0.137513
0.080732
0.076426
0.05436
0.05436
0.034446
0
0.018079
0.273576
6,320
190
119
33.263158
0.791331
0.344146
0
0.231481
0
0
0.088257
0
0
0
0
0
0
1
0.138889
false
0.074074
0.037037
0
0.240741
0.092593
0
0
0
null
0
0
0
0
0
0
0
0
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
07279639bd776c141728fab3c3412a60c9c81af3
461
py
Python
Python/Permutations.py
Jspsun/LEETCodePractice
9dba8c0441201a188b93e4d39a0a9b7602857a5f
[ "MIT" ]
3
2017-10-14T19:49:28.000Z
2019-01-12T21:51:11.000Z
Python/Permutations.py
Jspsun/LEETCodePractice
9dba8c0441201a188b93e4d39a0a9b7602857a5f
[ "MIT" ]
null
null
null
Python/Permutations.py
Jspsun/LEETCodePractice
9dba8c0441201a188b93e4d39a0a9b7602857a5f
[ "MIT" ]
5
2017-02-06T19:10:23.000Z
2020-12-19T01:58:10.000Z
class Solution(object): def permute(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ perms = [[]] for n in nums: new_perms = [] for perm in perms: for i in xrange(len(perm) + 1): new_perms....
23.05
75
0.453362
56
461
3.678571
0.482143
0.116505
0
0
0
0
0
0
0
0
0
0.014652
0.407809
461
19
76
24.263158
0.739927
0.017354
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
072a2143d058eecaddbf3552f531deac11687c5b
4,283
py
Python
contrib/IECoreAppleseed/test/IECoreAppleseed/PrimitiveConverterTest.py
goddardl/cortex
323a160fd831569591cde1504f415a638f8b85bc
[ "BSD-3-Clause" ]
null
null
null
contrib/IECoreAppleseed/test/IECoreAppleseed/PrimitiveConverterTest.py
goddardl/cortex
323a160fd831569591cde1504f415a638f8b85bc
[ "BSD-3-Clause" ]
null
null
null
contrib/IECoreAppleseed/test/IECoreAppleseed/PrimitiveConverterTest.py
goddardl/cortex
323a160fd831569591cde1504f415a638f8b85bc
[ "BSD-3-Clause" ]
1
2020-09-26T01:15:37.000Z
2020-09-26T01:15:37.000Z
########################################################################## # # Copyright (c) 2014, Esteban Tovagliari. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions...
32.44697
92
0.68877
521
4,283
5.610365
0.368522
0.031132
0.027369
0.073897
0.482381
0.435511
0.422169
0.422169
0.422169
0.362641
0
0.017664
0.180481
4,283
131
93
32.694656
0.8151
0.391781
0
0.703125
0
0
0.038398
0.009496
0
0
0
0
0
1
0.0625
false
0
0.078125
0
0.15625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
072ae08fd2d9605337d08bc1561e2a34abc673f2
1,662
py
Python
bin/whisper-create.py
jssjr/whisper
06afbcd7423dc84454b3c01df913819bd889b7db
[ "Apache-2.0" ]
2
2021-11-12T23:52:39.000Z
2021-11-12T23:52:41.000Z
bin/whisper-create.py
jssjr/whisper
06afbcd7423dc84454b3c01df913819bd889b7db
[ "Apache-2.0" ]
null
null
null
bin/whisper-create.py
jssjr/whisper
06afbcd7423dc84454b3c01df913819bd889b7db
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys import signal import optparse try: import whisper except ImportError: raise SystemExit('[ERROR] Please make sure whisper is installed properly') # Ignore SIGPIPE signal.signal(signal.SIGPIPE, signal.SIG_DFL) option_parser = optparse.OptionParser( usage='''%prog pat...
31.358491
112
0.735259
220
1,662
5.490909
0.527273
0.059603
0.037252
0.052152
0
0
0
0
0
0
0
0.025514
0.151023
1,662
52
113
31.961538
0.830617
0.021059
0
0.052632
0
0
0.387692
0.031385
0
0
0
0
0
0
null
null
0
0.157895
null
null
0.078947
0
0
0
null
0
0
0
0
0
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
07367b8fddcbac0aebdfff956b735bd4a6bdd05e
55,640
py
Python
src/vendor/geniv3rpc/ext/geni/pgch.py
GENI-NSF/geni-soil
e3dcec0bd5f31db2d69a3db652da15eb0baf774f
[ "BSD-3-Clause" ]
null
null
null
src/vendor/geniv3rpc/ext/geni/pgch.py
GENI-NSF/geni-soil
e3dcec0bd5f31db2d69a3db652da15eb0baf774f
[ "BSD-3-Clause" ]
null
null
null
src/vendor/geniv3rpc/ext/geni/pgch.py
GENI-NSF/geni-soil
e3dcec0bd5f31db2d69a3db652da15eb0baf774f
[ "BSD-3-Clause" ]
2
2017-08-07T15:24:05.000Z
2018-10-11T10:53:23.000Z
#---------------------------------------------------------------------- # Copyright (c) 2011 Raytheon BBN Technologies # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and/or hardware specification (the "Work") to # deal in the Work without restriction, including witho...
43.502737
208
0.568728
6,706
55,640
4.615419
0.092604
0.04394
0.030047
0.00714
0.597364
0.54974
0.52638
0.507835
0.494104
0.479435
0
0.00242
0.338983
55,640
1,278
209
43.536776
0.83912
0.189019
0
0.617143
0
0.002286
0.158356
0.003836
0
0
0
0.000782
0
0
null
null
0
0.016
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
073b4962a3ad6804a8c71856394df9e1dfabd059
1,705
py
Python
Latest/venv/Lib/site-packages/apptools/sweet_pickle/tests/state_function_classes.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-01-09T20:04:31.000Z
2022-01-09T20:04:31.000Z
Latest/venv/Lib/site-packages/apptools/sweet_pickle/tests/state_function_classes.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-02-15T12:01:57.000Z
2022-03-24T19:48:47.000Z
Latest/venv/Lib/site-packages/apptools/sweet_pickle/tests/state_function_classes.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
null
null
null
#----------------------------------------------------------------------------- # # Copyright (c) 2006 by Enthought, Inc. # All rights reserved. # # Author: Dave Peterson <dpeterson@enthought.com> # #----------------------------------------------------------------------------- # Standard library imports import loggi...
29.396552
78
0.477419
171
1,705
4.538012
0.48538
0.096649
0.141753
0.119845
0.203608
0
0
0
0
0
0
0.025735
0.202346
1,705
57
79
29.912281
0.544853
0.205865
0
0
0
0
0.078167
0.044924
0
0
0
0
0
1
0.030303
false
0
0.121212
0
0.69697
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
073c31c8ef42b22dbfb87b7ced952c7c6a5fde88
1,959
py
Python
pyMiddleServer/script/open_friends.py
ChouBetter/stf
6b5bc6df6f97b245d1e74e53f9aafa89214223f6
[ "Apache-2.0" ]
null
null
null
pyMiddleServer/script/open_friends.py
ChouBetter/stf
6b5bc6df6f97b245d1e74e53f9aafa89214223f6
[ "Apache-2.0" ]
null
null
null
pyMiddleServer/script/open_friends.py
ChouBetter/stf
6b5bc6df6f97b245d1e74e53f9aafa89214223f6
[ "Apache-2.0" ]
null
null
null
from appium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By import time import sys print str(sys.argv[1]) deviceName = sys.argv[1] PLATFORM='Android' app_package='com.tencent.mm' app_a...
36.962264
112
0.688106
248
1,959
5.254032
0.362903
0.042978
0.039908
0.046048
0.366078
0.361474
0.32924
0.27782
0.216424
0.216424
0
0.01374
0.145482
1,959
52
113
37.673077
0.764636
0.030628
0
0
0
0
0.210164
0.089995
0
0
0
0
0
0
null
null
0
0.139535
null
null
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
0
0
1
0
0
0
0
0
0
0
0
1
073efd07e25dbc4d2518058e84e250e5ade8ccbe
12,797
py
Python
emgapianns/management/lib/sanity_check.py
EBI-Metagenomics/ebi-metagenomics-api
1f028902fe493583c5c8191dd5dae92cca9e15a9
[ "Apache-2.0" ]
null
null
null
emgapianns/management/lib/sanity_check.py
EBI-Metagenomics/ebi-metagenomics-api
1f028902fe493583c5c8191dd5dae92cca9e15a9
[ "Apache-2.0" ]
null
null
null
emgapianns/management/lib/sanity_check.py
EBI-Metagenomics/ebi-metagenomics-api
1f028902fe493583c5c8191dd5dae92cca9e15a9
[ "Apache-2.0" ]
null
null
null
import glob import os from subprocess import check_output, CalledProcessError import mysql.connector import logging from emgapianns.management.lib.uploader_exceptions import NoAnnotationsFoundException, \ UnexpectedLibraryStrategyException, QCNotPassedException, CoverageCheckException from emgapianns.management.l...
43.825342
111
0.614988
1,479
12,797
5.121028
0.167681
0.053208
0.0169
0.014259
0.457222
0.416821
0.388302
0.34658
0.324927
0.292184
0
0.002782
0.297882
12,797
291
112
43.975945
0.840178
0.154411
0
0.309524
0
0
0.15803
0.009543
0
0
0
0
0
1
0.071429
false
0.052381
0.038095
0
0.204762
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
0742c9e62716530f3fb50a8490d7dd6ee8ff1da6
512
py
Python
web/index/migrations/0003_auto_20200407_1756.py
laozhudetui/LSpider
2c3d1bd5ef740aa49c2e13054d79877edb00a83f
[ "MIT" ]
311
2021-01-20T08:47:37.000Z
2022-03-30T16:28:04.000Z
web/index/migrations/0003_auto_20200407_1756.py
hoatrangnv/LSpider-P
6544b842012eb5bbb8d35d5eafa6175d9fdf76e0
[ "MIT" ]
15
2021-01-21T02:36:23.000Z
2021-11-30T03:00:04.000Z
web/index/migrations/0003_auto_20200407_1756.py
hoatrangnv/LSpider-P
6544b842012eb5bbb8d35d5eafa6175d9fdf76e0
[ "MIT" ]
49
2021-01-25T02:48:59.000Z
2022-03-31T03:56:46.000Z
# Generated by Django 3.0.1 on 2020-04-07 09:56 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('index', '0002_scantask_last_scan_time'), ] operations = [ migrations.AlterField( ...
24.380952
109
0.646484
62
512
5.225806
0.693548
0.061728
0.074074
0
0
0
0
0
0
0
0
0.092784
0.242188
512
20
110
25.6
0.742268
0.087891
0
0
1
0
0.11828
0.060215
0
0
0
0
0
1
0
false
0
0.214286
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
074e5316296ca8db993b2e0685195ff56e8c553f
11,067
py
Python
tests/test_extract.py
ufo2011/quantiphy
2c48bca778de36b5c956ceb19023886b9a6a1f07
[ "MIT" ]
38
2017-10-23T21:43:07.000Z
2022-01-12T13:38:57.000Z
tests/test_extract.py
KenKundert/quantiphy
325a0763cf42680d4a7a230d2f32bcce1ffd58b0
[ "MIT" ]
23
2017-11-07T08:21:15.000Z
2021-12-15T09:06:46.000Z
tests/test_extract.py
ufo2011/quantiphy
2c48bca778de36b5c956ceb19023886b9a6a1f07
[ "MIT" ]
5
2019-12-02T12:55:28.000Z
2021-08-28T14:15:41.000Z
# encoding: utf8 import math from math import pi from textwrap import dedent import pytest from quantiphy import Quantity, add_constant def test_workout(): Quantity.reset_prefs() qs = Quantity.extract( r""" Fclk = 50MHz -- clock frequency This is an arbitrary line of te...
29.75
100
0.577754
1,590
11,067
3.850943
0.134591
0.082313
0.048996
0.062061
0.688388
0.634166
0.600196
0.538298
0.498122
0.474767
0
0.041893
0.283907
11,067
371
101
29.830189
0.730221
0.013644
0
0.490975
0
0.00361
0.105307
0.007291
0
0
0
0
0.483755
1
0.072202
false
0
0.018051
0
0.090253
0.01083
0
0
0
null
0
0
0
0
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
0750c02ead122b19ce6c0e7380a68f55bd7386fc
966
py
Python
daf/tests/actions/basic.py
jayvdb/django-action-framework
b3858f45c2608bc8a1ad8a03ab70012f82632ee4
[ "BSD-3-Clause" ]
16
2020-06-25T14:28:59.000Z
2022-02-07T12:15:24.000Z
daf/tests/actions/basic.py
jayvdb/django-action-framework
b3858f45c2608bc8a1ad8a03ab70012f82632ee4
[ "BSD-3-Clause" ]
11
2020-07-21T00:18:19.000Z
2022-02-07T12:10:29.000Z
daf/tests/actions/basic.py
jayvdb/django-action-framework
b3858f45c2608bc8a1ad8a03ab70012f82632ee4
[ "BSD-3-Clause" ]
1
2020-06-29T01:53:39.000Z
2020-06-29T01:53:39.000Z
""" Tests basic actions that dont use any of the ObjectAction or ObjectsAction interfaces. """ import arg from django import forms from django.core import exceptions import daf.actions import daf.rest_framework import daf.views def list_error(username): """Helps test strange error messages that are raised in the...
20.553191
77
0.697723
123
966
5.414634
0.520325
0.054054
0
0
0
0
0
0
0
0
0
0
0.188406
966
46
78
21
0.84949
0.191511
0
0
0
0
0.070856
0
0
0
0
0
0
1
0.08
false
0
0.24
0
0.76
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
07511f09c04165e1fa837fafdec78f1dae363a31
17,630
py
Python
old/MapTest.py
Faralaks/the-game
cd08f1f0222eee71916763a11f99ea631dbad578
[ "MIT" ]
null
null
null
old/MapTest.py
Faralaks/the-game
cd08f1f0222eee71916763a11f99ea631dbad578
[ "MIT" ]
null
null
null
old/MapTest.py
Faralaks/the-game
cd08f1f0222eee71916763a11f99ea631dbad578
[ "MIT" ]
null
null
null
#UTF-8 # загрузка библиотек import pygame, webbrowser, random from pygame import * from cryptography.fernet import Fernet from modules import stoper, objects_data # функция отвечающая за колизию объектов # инициализация pygame.init() # инициализация библиотеки hero = pygame.image.load('data/pictures_old/hero.png') # з...
46.394737
394
0.564946
2,397
17,630
3.998331
0.157697
0.105593
0.134391
0.163189
0.619679
0.591298
0.468593
0.444491
0.424875
0.390547
0
0.069399
0.301191
17,630
379
395
46.51715
0.708523
0.073851
0
0.346774
0
0
0.084838
0.061863
0.004032
0
0
0
0
1
0
false
0
0.016129
0
0.016129
0.004032
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
07514c01e79007bd741d893222156f38ae78e2fe
2,821
py
Python
tests/parsers/asl.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
1
2019-09-26T08:16:30.000Z
2019-09-26T08:16:30.000Z
tests/parsers/asl.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
null
null
null
tests/parsers/asl.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for Apple System Log file parser.""" import unittest from plaso.formatters import asl as _ # pylint: disable=unused-import from plaso.lib import timelib from plaso.parsers import asl from tests.parsers import test_lib class ASLParserTest(test_lib.ParserTestCase):...
33.583333
79
0.709677
359
2,821
5.392758
0.4039
0.090909
0.144628
0.188017
0.210227
0.125
0.076446
0.043388
0
0
0
0.049088
0.183977
2,821
83
80
33.987952
0.79192
0.111663
0
0.036364
0
0
0.24345
0.023378
0
0
0.007658
0
0.272727
1
0.036364
false
0
0.090909
0
0.145455
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
075286b5e51a3dac3c8572d175d586112a29fe25
212
py
Python
Python/ECT/01_GRID/04.py
KwanHoo/Data-Structure__Algorithm
b985f8b41a366b9c028da711ea43a643151268e2
[ "MIT" ]
null
null
null
Python/ECT/01_GRID/04.py
KwanHoo/Data-Structure__Algorithm
b985f8b41a366b9c028da711ea43a643151268e2
[ "MIT" ]
null
null
null
Python/ECT/01_GRID/04.py
KwanHoo/Data-Structure__Algorithm
b985f8b41a366b9c028da711ea43a643151268e2
[ "MIT" ]
null
null
null
# 1이 될 때까지 # 하 # 그리드 N, K = map(int, input().split()) result = 0 while N >= K: while N % K != 0: N -= 1 result += 1 N //= K result += 1 while N > 1: result += 1 print(result)
10.6
32
0.438679
35
212
2.657143
0.457143
0.086022
0.150538
0.193548
0
0
0
0
0
0
0
0.062016
0.391509
212
20
33
10.6
0.658915
0.066038
0
0.272727
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.090909
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
07558b89903451dad13648779d964d4ca8422c60
521
py
Python
account/models.py
KimSoungRyoul/drf_unitteset_study_project
9a0d824bdc6343eeba6209299c077a6e9d280516
[ "MIT" ]
null
null
null
account/models.py
KimSoungRyoul/drf_unitteset_study_project
9a0d824bdc6343eeba6209299c077a6e9d280516
[ "MIT" ]
null
null
null
account/models.py
KimSoungRyoul/drf_unitteset_study_project
9a0d824bdc6343eeba6209299c077a6e9d280516
[ "MIT" ]
null
null
null
# Create your models here. from django.contrib.auth import models as auth_models from django.db import models class Customer(auth_models.User): nickname = models.CharField(help_text='회원 닉네임', null=False, max_length=50) phone_num = models.CharField(null=False, max_length=50) mileage = models.PositiveInte...
28.944444
80
0.775432
73
521
5.369863
0.547945
0.153061
0.071429
0.091837
0.239796
0
0
0
0
0
0
0.024229
0.128599
521
17
81
30.647059
0.839207
0.046065
0
0
0
0
0.012121
0
0
0
0
0
0
1
0
false
0
0.222222
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
075abab2381622cdaaca0579baf2980aab3f7890
5,541
py
Python
sdk/python/pulumi_aws_native/ecr/get_public_repository.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/ecr/get_public_repository.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/ecr/get_public_repository.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
50.372727
490
0.72532
688
5,541
5.643895
0.255814
0.03966
0.066959
0.027041
0.415143
0.393768
0.349987
0.328354
0.311872
0.311872
0
0.000223
0.189496
5,541
109
491
50.834862
0.864395
0.370511
0
0.085714
1
0
0.162866
0.108972
0
0
0
0
0
1
0.114286
false
0
0.085714
0.014286
0.314286
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
075c45a5a96cdbcf417ef6d54761159491c34ec9
1,152
py
Python
mainsite/migrations/0009_auto_20171110_0914.py
sighill/orchid
e91e51b408f89b96c38da3c97e8ba8c04d0148aa
[ "MIT" ]
null
null
null
mainsite/migrations/0009_auto_20171110_0914.py
sighill/orchid
e91e51b408f89b96c38da3c97e8ba8c04d0148aa
[ "MIT" ]
null
null
null
mainsite/migrations/0009_auto_20171110_0914.py
sighill/orchid
e91e51b408f89b96c38da3c97e8ba8c04d0148aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-10 13:14 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mainsite', '0008_blogtag_postblog'), ] operations = [ migrations.RenameFiel...
28.097561
120
0.56684
116
1,152
5.456897
0.612069
0.07109
0.080569
0.094787
0.14218
0.14218
0.14218
0
0
0
0
0.029262
0.317708
1,152
40
121
28.8
0.776081
0.059028
0
0.424242
1
0
0.181314
0.019426
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
075d44355c93ec865050513eeb133c8d78918400
3,044
py
Python
autovpn.py
loftwah/autovpn
39249479e40880db00b7458342f0a523dc1f86ca
[ "MIT" ]
5
2021-07-23T22:59:31.000Z
2021-11-08T15:30:12.000Z
autovpn.py
loftwah/autovpn
39249479e40880db00b7458342f0a523dc1f86ca
[ "MIT" ]
null
null
null
autovpn.py
loftwah/autovpn
39249479e40880db00b7458342f0a523dc1f86ca
[ "MIT" ]
1
2021-08-05T00:06:15.000Z
2021-08-05T00:06:15.000Z
import os import click from subprocess import Popen, PIPE from sortedcontainers import SortedSet import toml def parse_config_file(path): """Parse TOML config file and return dictionary""" try: with open(path, 'r') as f: return toml.loads(f.read()) except: open(path,'a').close()...
38.05
192
0.658673
396
3,044
5.022727
0.267677
0.044243
0.048265
0.042232
0.498743
0.41629
0.41629
0.401207
0.401207
0.401207
0
0
0.17477
3,044
80
193
38.05
0.791799
0.051577
0
0.453125
0
0
0.258651
0.069207
0
0
0
0.0125
0
1
0.109375
false
0.046875
0.078125
0.015625
0.28125
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
075dd5cdc967d4217ecd1fc8072901b1c99548cf
2,034
py
Python
lsh/minhash/minhash.py
singhj/locality-sensitive-hashing
99baa87d3b532ba5aa03fd80ed967275eb98d422
[ "MIT" ]
19
2015-02-22T15:47:33.000Z
2020-10-19T12:29:24.000Z
lsh/minhash/minhash.py
singhj/locality-sensitive-hashing
99baa87d3b532ba5aa03fd80ed967275eb98d422
[ "MIT" ]
7
2015-02-10T10:52:06.000Z
2019-04-01T15:27:00.000Z
lsh/minhash/minhash.py
singhj/locality-sensitive-hashing
99baa87d3b532ba5aa03fd80ed967275eb98d422
[ "MIT" ]
7
2015-02-23T19:22:11.000Z
2022-02-04T10:27:15.000Z
from operator import xor import heapq from lsh.utils.similarity import compute_positive_hash from lsh.utils.random_number_generator import RNG DEFAULT_NUM_RANDOM_NUMS = 200 #TODO should create a config to set this DEFAULT_BITS = 32 #TODO should create a config to set this # we want to use the same random numbers acr...
38.377358
95
0.676991
290
2,034
4.603448
0.403448
0.036704
0.035955
0.044944
0.133333
0.133333
0.133333
0.133333
0.085393
0.085393
0
0.006707
0.266962
2,034
53
96
38.377358
0.888665
0.453786
0
0
0
0
0
0
0
0
0
0.037736
0
1
0.115385
false
0
0.153846
0.076923
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
076626e681a44aff68a6b9353071d2dec6508837
892
py
Python
examples/5_custom_auth.py
jsdelivrbot/canister
1858ba837f0c57b101fc517e75655a2f1fc76797
[ "MIT" ]
35
2016-07-23T13:41:25.000Z
2022-02-18T02:23:56.000Z
examples/5_custom_auth.py
jsdelivrbot/canister
1858ba837f0c57b101fc517e75655a2f1fc76797
[ "MIT" ]
13
2017-04-07T20:59:48.000Z
2021-03-19T09:01:40.000Z
examples/5_custom_auth.py
jsdelivrbot/canister
1858ba837f0c57b101fc517e75655a2f1fc76797
[ "MIT" ]
12
2017-04-21T16:24:29.000Z
2021-05-16T22:42:22.000Z
#!/usr/bin/env python3 # ab -n 1000 -c 10 http://localhost:8080/hello/world # ab -n 2 -c 2 http://127.0.0.1:8080/hello/world import sys sys.path.insert(0, '..') import canister import time import bottle from canister import session app = bottle.Bottle() app.install(canister.Canister()) @app.get('/') def index(): ...
23.473684
96
0.599776
132
892
4.05303
0.44697
0.102804
0.052336
0.063551
0.04486
0
0
0
0
0
0
0.03966
0.20852
892
38
97
23.473684
0.71813
0.133408
0
0
0
0.074074
0.434501
0.032425
0
0
0
0
0
1
0.111111
false
0.074074
0.185185
0.037037
0.407407
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
07670693d74cd70de265eeda911528acf1f5058f
3,109
py
Python
paho.mqtt.c/test/python/test_offline.py
stratixx/MQTT_Client
a182e564d45a60042efcd3d14532d2cf11766828
[ "MIT" ]
null
null
null
paho.mqtt.c/test/python/test_offline.py
stratixx/MQTT_Client
a182e564d45a60042efcd3d14532d2cf11766828
[ "MIT" ]
null
null
null
paho.mqtt.c/test/python/test_offline.py
stratixx/MQTT_Client
a182e564d45a60042efcd3d14532d2cf11766828
[ "MIT" ]
null
null
null
import paho_mqtt3a as mqttv3, time, random import contextlib print dir(mqttv3) hostname = "localhost" clientid = "myclientid" topic = "test2_topic" def deliveryComplete(context, msgid): print "deliveryComplete", msgid def connectionLost(context, cause): print "connectionLost", cause client = contex...
37.011905
167
0.702477
370
3,109
5.894595
0.22973
0.066025
0.050436
0.068776
0.309033
0.233838
0.210912
0.089409
0.089409
0.061898
0
0.020674
0.159858
3,109
83
168
37.457831
0.814319
0.026697
0
0.096774
0
0
0.29772
0.007145
0
0
0
0
0
0
null
null
0
0.032258
null
null
0.33871
0
0
0
null
0
0
0
0
0
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
0768da93d400be73d31c41cdef938d708c454975
271
py
Python
scripts/testing.py
abhirooptalasila/Reddit-Flair-Detector
a195641d17a558951a0c4cb9a3c75ea204c4051b
[ "MIT" ]
4
2020-04-20T14:52:05.000Z
2021-12-13T06:01:44.000Z
scripts/testing.py
abhirooptalasila/Reddit-Flair-Detector
a195641d17a558951a0c4cb9a3c75ea204c4051b
[ "MIT" ]
2
2020-09-26T00:57:49.000Z
2020-11-13T18:45:32.000Z
scripts/testing.py
abhirooptalasila/Reddit-Flair-Detector
a195641d17a558951a0c4cb9a3c75ea204c4051b
[ "MIT" ]
null
null
null
import requests import os import json import string url = 'http://localhost:5000/automated_testing' fin = open('sample.txt', 'r') files = {'file': fin} try: r = requests.post(url, files=files) print("Returned Values:\n"+str(r.json())) finally: fin.close()
16.9375
47
0.671587
39
271
4.641026
0.692308
0
0
0
0
0
0
0
0
0
0
0.017544
0.158672
271
15
48
18.066667
0.776316
0
0
0
0
0
0.265683
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0769520d4a56bc2c6370b1ce5c6159c9358cd413
1,939
py
Python
samtranslator/translator/arn_generator.py
sliedig/serverless-application-model
ee7e6cd84cea349d7698b2a8d6695f554b5aa302
[ "Apache-2.0" ]
2
2020-06-07T13:00:43.000Z
2021-11-29T22:29:52.000Z
samtranslator/translator/arn_generator.py
davfaulk/serverless-application-model
6c963549c279868b6241e2abed907df74cb3d2b2
[ "Apache-2.0" ]
null
null
null
samtranslator/translator/arn_generator.py
davfaulk/serverless-application-model
6c963549c279868b6241e2abed907df74cb3d2b2
[ "Apache-2.0" ]
null
null
null
import boto3 class ArnGenerator(object): @classmethod def generate_arn(cls, partition, service, resource, include_account_id=True): if not service or not resource: raise RuntimeError("Could not construct ARN for resource.") arn = 'arn:{0}:{1}:${{AWS::Region}}:' if include...
34.017544
110
0.619907
240
1,939
4.916667
0.391667
0.021186
0.030508
0.022034
0
0
0
0
0
0
0
0.010917
0.291387
1,939
56
111
34.625
0.847889
0.372357
0
0.115385
1
0
0.128507
0.048869
0
0
0
0
0
1
0.115385
false
0
0.038462
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
4ad04e625e4c0f80206c97a686d3659a9206a2c5
332
py
Python
p2p/p2p_status.py
crioto/guardian
386f3f7959e7abf73fddfc62907abb8b308f6ce6
[ "Apache-2.0" ]
null
null
null
p2p/p2p_status.py
crioto/guardian
386f3f7959e7abf73fddfc62907abb8b308f6ce6
[ "Apache-2.0" ]
null
null
null
p2p/p2p_status.py
crioto/guardian
386f3f7959e7abf73fddfc62907abb8b308f6ce6
[ "Apache-2.0" ]
null
null
null
from guardlib import check as t def Executor(t): return t.ExecuteCommand("p2p status") def ResultHandler(t, result): if result[0] == 0: t.MarkAsSucceed() else: t.MarkAsFailed() def Check(): c = t.Check(0, "p2p", "status") c.SetExecutor(Executor) c.SetHandler(ResultHandler) ...
17.473684
41
0.626506
43
332
4.837209
0.511628
0.086538
0
0
0
0
0
0
0
0
0
0.01992
0.243976
332
19
42
17.473684
0.808765
0
0
0
0
0
0.057057
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0.076923
0.461538
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
4ad0eeda3d1c9ba18e53d9a8666fbf52b7f96c4c
13,544
py
Python
bionetgen/modelapi/utils.py
cjarmstrong97/PyBioNetGen
5febfbba0da20b61771474e0de6c0a5988d6467e
[ "MIT" ]
5
2021-02-24T01:50:33.000Z
2022-03-11T20:27:09.000Z
bionetgen/modelapi/utils.py
cjarmstrong97/PyBioNetGen
5febfbba0da20b61771474e0de6c0a5988d6467e
[ "MIT" ]
30
2021-06-07T22:41:40.000Z
2022-03-28T19:50:25.000Z
bionetgen/modelapi/utils.py
cjarmstrong97/PyBioNetGen
5febfbba0da20b61771474e0de6c0a5988d6467e
[ "MIT" ]
2
2021-02-23T20:14:32.000Z
2022-03-04T20:56:27.000Z
import os from re import sub import subprocess from distutils import spawn class ActionList: def __init__(self): self.normal_types = [ "generate_network", "generate_hybrid_model", "simulate", "simulate_ode", "simulate_ssa", "simulate_...
27.584521
98
0.44684
1,128
13,544
5.106383
0.249113
0.055903
0.085938
0.039583
0.452778
0.375694
0.360069
0.351563
0.33941
0.33941
0
0.002489
0.436356
13,544
490
99
27.640816
0.75203
0.081955
0
0.569161
1
0
0.285656
0.003406
0
0
0
0.004082
0
1
0.011338
false
0.002268
0.00907
0
0.040816
0.0839
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
4ada5998c9d71c90b162364875f3849f11d0e022
12,296
py
Python
script/array.py
karttur/geoimagine02-grass
09c207707ddd0dae04a871e006e184409aa87d99
[ "BSD-3-Clause" ]
null
null
null
script/array.py
karttur/geoimagine02-grass
09c207707ddd0dae04a871e006e184409aa87d99
[ "BSD-3-Clause" ]
null
null
null
script/array.py
karttur/geoimagine02-grass
09c207707ddd0dae04a871e006e184409aa87d99
[ "BSD-3-Clause" ]
null
null
null
""" Functions to use GRASS 2D and 3D rasters with NumPy. Usage: >>> from __future__ import print_function >>> import grass.script as gscript >>> from grass.script import array as garray >>> >>> # We create a temporary region that is only valid in this python session ... gscript.use_temp_region() >>> gscript.run_comma...
28.796253
91
0.494307
1,539
12,296
3.883691
0.147498
0.012715
0.012046
0.012046
0.730801
0.686632
0.663042
0.627907
0.591267
0.547432
0
0.048134
0.361337
12,296
426
92
28.86385
0.712976
0.365647
0
0.800926
0
0
0.088008
0.006632
0
0
0
0
0
1
0.037037
false
0.009259
0.027778
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4ada6f6932b976f1086fde99b2633304ce520d24
331
py
Python
tasks/app/__init__.py
DurandA/pokemon-battle-api
ba8c695356b2338b152161372e047423f708e3f4
[ "MIT" ]
2
2018-09-20T20:50:01.000Z
2019-11-13T03:13:49.000Z
tasks/app/__init__.py
DurandA/pokemon-battle-api
ba8c695356b2338b152161372e047423f708e3f4
[ "MIT" ]
null
null
null
tasks/app/__init__.py
DurandA/pokemon-battle-api
ba8c695356b2338b152161372e047423f708e3f4
[ "MIT" ]
null
null
null
# encoding: utf-8 """ Application related tasks for Invoke. """ from invoke import Collection from . import dependencies, env, db, run from config import BaseConfig namespace = Collection( dependencies, env, db, run, ) namespace.configure({ 'app': { 'static_root': BaseConfig.STATIC_ROOT...
13.791667
46
0.65861
36
331
6
0.611111
0.138889
0.157407
0.185185
0
0
0
0
0
0
0
0.003937
0.232628
331
23
47
14.391304
0.846457
0.163142
0
0
0
0
0.052045
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
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
4adc9dc69b5805ab5d89f814e3b33524dd140667
2,079
py
Python
nipype/interfaces/workbench/base.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
nipype/interfaces/workbench/base.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
nipype/interfaces/workbench/base.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
1
2020-07-17T12:49:49.000Z
2020-07-17T12:49:49.000Z
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ The workbench module provides classes for interfacing with `connectome workbench <https://www.humanconnectome.org/software/connectome-workbench>`_ tools. `Connectome Workbench i...
29.7
80
0.632997
251
2,079
5.167331
0.537849
0.043948
0.024672
0
0
0
0
0
0
0
0
0.003919
0.263588
2,079
69
81
30.130435
0.84324
0.445406
0
0
0
0
0.093532
0
0
0
0
0
0
1
0.111111
false
0
0.259259
0.037037
0.592593
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
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
4ade93ab8ee5ad9f865267471a475726fda931e9
1,576
py
Python
stage_imagenet.py
BryanPlummer/SSN
4bd5d5c8e6a2db9427e9fc5b2b93c78c494f6b79
[ "MIT" ]
null
null
null
stage_imagenet.py
BryanPlummer/SSN
4bd5d5c8e6a2db9427e9fc5b2b93c78c494f6b79
[ "MIT" ]
null
null
null
stage_imagenet.py
BryanPlummer/SSN
4bd5d5c8e6a2db9427e9fc5b2b93c78c494f6b79
[ "MIT" ]
null
null
null
"""Stage ImageNet data onto local SSDs.""" import argparse import os import os.path import subprocess import time parser = argparse.ArgumentParser( description='Stage ImageNet to SSDs.') parser.add_argument( 'basedir', type=str, help='Base directory containing {train,val}.tar') def get_num_nodes(): ...
27.172414
53
0.59835
203
1,576
4.44335
0.453202
0.033259
0.044346
0.043237
0.236142
0.181818
0.121951
0.121951
0.121951
0.121951
0
0.004191
0.24302
1,576
57
54
27.649123
0.751886
0.095178
0
0.27907
0
0
0.231534
0
0
0
0
0.017544
0
1
0.046512
false
0
0.116279
0
0.186047
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
4adfb1d8954d29a1e5de0fc28a82b872ee7faaa7
445
py
Python
scripts/inspector/panels/panel_base.py
tm8r/MayaInspector
00fbbf4313ca76ed6b189433688bc36ca0ff9c79
[ "MIT" ]
null
null
null
scripts/inspector/panels/panel_base.py
tm8r/MayaInspector
00fbbf4313ca76ed6b189433688bc36ca0ff9c79
[ "MIT" ]
null
null
null
scripts/inspector/panels/panel_base.py
tm8r/MayaInspector
00fbbf4313ca76ed6b189433688bc36ca0ff9c79
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from inspector.vendor.Qt import QtCore from inspector.vendor.Qt import QtWidgets class PanelBase(QtWidgets.QFrame): inner_selection_changed = QtCore.Signal(list) def __init__(self, node_info, parent=None): super...
26.176471
64
0.732584
57
445
5.350877
0.614035
0.078689
0.12459
0.137705
0.177049
0
0
0
0
0
0
0.002725
0.175281
445
16
65
27.8125
0.828338
0.047191
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.3
0.1
0.8
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4ae902ff34b9bbce131382da9a35806829bd0c1f
3,922
py
Python
RecoEgamma/EgammaPhotonProducers/python/allConversions_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoEgamma/EgammaPhotonProducers/python/allConversions_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoEgamma/EgammaPhotonProducers/python/allConversions_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms allConversions = cms.EDProducer('ConversionProducer', AlgorithmName = cms.string('mixed'), #src = cms.VInputTag(cms.InputTag("generalTracks")), src = cms.InputTag("gsfGeneralInOutOutInConversionTrackMerger"), convertedPhotonCollection = cms.string(''), ## or emp...
56.84058
116
0.73075
457
3,922
6.256018
0.428884
0.075551
0.027982
0.034977
0.147254
0.098636
0.056663
0.029381
0.029381
0.029381
0
0.024908
0.170831
3,922
68
117
57.676471
0.854244
0.324834
0
0
0
0
0.148375
0.139579
0
0
0
0
0
1
0
false
0.071429
0.053571
0
0.053571
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
4aea8f14380bd24c06d59dc254b953cf6d1b9172
2,788
py
Python
test/test_auth.py
aqche/flaskedd
04edbf2e22c7a63c944cca91176df9119983eab2
[ "MIT" ]
1
2019-03-23T03:21:35.000Z
2019-03-23T03:21:35.000Z
test/test_auth.py
aqche/flaskedd
04edbf2e22c7a63c944cca91176df9119983eab2
[ "MIT" ]
null
null
null
test/test_auth.py
aqche/flaskedd
04edbf2e22c7a63c944cca91176df9119983eab2
[ "MIT" ]
null
null
null
from test import helpers from passlib.hash import bcrypt from flaskeddit import db from flaskeddit.models import AppUser class TestAuth: def test_get_register(self, test_client): """ Tests GET request to the /register route to assert the registration page is returned. """ ...
31.681818
87
0.620875
316
2,788
5.351266
0.186709
0.06505
0.041396
0.047309
0.695446
0.66647
0.651685
0.567711
0.402129
0.402129
0
0.01379
0.297704
2,788
87
88
32.045977
0.849847
0.149928
0
0.45283
0
0
0.120612
0
0
0
0
0
0.283019
1
0.09434
false
0.207547
0.075472
0
0.188679
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
4aec4fab7abccff3f69fabebb9a6461188b744cd
419
py
Python
vulnerable_people_form/form_pages/nhs_login_link.py
uk-gov-mirror/alphagov.govuk-shielded-vulnerable-people-service
5b191980dec554155e9d431a514a945072032e7c
[ "MIT" ]
3
2020-08-16T19:36:26.000Z
2020-10-29T14:35:01.000Z
vulnerable_people_form/form_pages/nhs_login_link.py
uk-gov-mirror/alphagov.govuk-shielded-vulnerable-people-service
5b191980dec554155e9d431a514a945072032e7c
[ "MIT" ]
101
2020-09-03T11:10:00.000Z
2021-10-01T03:03:46.000Z
vulnerable_people_form/form_pages/nhs_login_link.py
alphagov-mirror/govuk-shielded-vulnerable-people-service
f9cb4ae9046fc402f0878503733a23d42546cc53
[ "MIT" ]
6
2020-07-28T09:03:20.000Z
2021-04-10T18:04:56.000Z
from flask import current_app from vulnerable_people_form.form_pages.shared.render import render_template_with_title from .blueprint import form @form.route("/nhs-login-link", methods=["GET"]) def get_nhs_login_link(): return render_template_with_title( "nhs-login-link.html", nhs_login_href=curre...
29.928571
86
0.76611
58
419
5.172414
0.551724
0.106667
0.12
0.153333
0
0
0
0
0
0
0
0
0.136038
419
13
87
32.230769
0.828729
0
0
0
0
0
0.138425
0.050119
0
0
0
0
0
1
0.1
true
0
0.3
0.1
0.5
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
4aee30d2ac89af2be487bf896b981e71632a6c47
4,719
py
Python
start.py
ruc98/Inter-IIT-Tech-Meet-2018-Project
8405acd3d650b4f41b669e9cfc59cd27f0fee1a5
[ "MIT" ]
null
null
null
start.py
ruc98/Inter-IIT-Tech-Meet-2018-Project
8405acd3d650b4f41b669e9cfc59cd27f0fee1a5
[ "MIT" ]
null
null
null
start.py
ruc98/Inter-IIT-Tech-Meet-2018-Project
8405acd3d650b4f41b669e9cfc59cd27f0fee1a5
[ "MIT" ]
null
null
null
''' Author : Siddharth Nayak email:ee16b073@smail.iitm.ac.in ''' import serial, os, signals, sys from sklearn.externals import joblib #Serial parameters SERIAL_PORT = "/dev/cu.usbmodem1421" BAUD_RATE = 38400 TIMEOUT = 100 #Recording parameters target_sign = "a" current_batch = "0" target_directory = "data" current_...
28.089286
126
0.685739
672
4,719
4.6875
0.294643
0.025397
0.030476
0.02381
0.059683
0.047619
0.027302
0.027302
0.027302
0.027302
0
0.008857
0.210426
4,719
168
127
28.089286
0.836554
0.326552
0
0.175258
0
0
0.146294
0.011053
0
0
0
0
0
0
null
null
0
0.030928
null
null
0.164948
0
0
0
null
0
0
0
0
0
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
4af47eb3f1447eb4631d89f10641fde3b88ce25a
5,552
py
Python
info/modules/passport/views.py
auhjin/FlaskNewsWEB
2313f3627a88d416cfa8b8cd291041894c70e864
[ "MIT" ]
null
null
null
info/modules/passport/views.py
auhjin/FlaskNewsWEB
2313f3627a88d416cfa8b8cd291041894c70e864
[ "MIT" ]
null
null
null
info/modules/passport/views.py
auhjin/FlaskNewsWEB
2313f3627a88d416cfa8b8cd291041894c70e864
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- """ @author: auhjin @file:views.py @time:2021/06/17 """ import json import random import re from datetime import datetime from flask import request, current_app, make_response, jsonify, session from info import redis_store, constants, db from info.constants import IMAGE_CODE_REDIS_EXPIRES # fro...
31.367232
87
0.67237
752
5,552
4.808511
0.25
0.079093
0.104535
0.121958
0.396294
0.355918
0.288717
0.195243
0.177544
0.166482
0
0.010753
0.195965
5,552
177
88
31.367232
0.799283
0.159222
0
0.221239
0
0
0.097788
0
0
0
0
0
0
1
0.044248
false
0.106195
0.097345
0
0.345133
0.026549
0
0
0
null
0
0
0
0
0
0
0
0
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
4af4b1893818565366f20f599ead2cedd9f07c95
3,653
py
Python
pman/C_stringCore.py
umohnani8/pman
eaea44586453fabdddfc954af6335dbbd9ac0ad0
[ "MIT" ]
null
null
null
pman/C_stringCore.py
umohnani8/pman
eaea44586453fabdddfc954af6335dbbd9ac0ad0
[ "MIT" ]
null
null
null
pman/C_stringCore.py
umohnani8/pman
eaea44586453fabdddfc954af6335dbbd9ac0ad0
[ "MIT" ]
2
2018-07-03T14:24:07.000Z
2018-08-03T17:43:36.000Z
#!/usr/bin/env python """ NAME C_stringCore DESCRIPTION 'C_stringCore' is a wrapper about a python cStringIO class. It provides a thins wrapper abstracting some simple methods to write/read to and from a StringIO object. NOTES HISTORY 06 Feb...
33.209091
85
0.431974
336
3,653
4.571429
0.377976
0.046875
0.007813
0.018229
0.044271
0
0
0
0
0
0
0.012075
0.501232
3,653
109
86
33.513761
0.830955
0.281686
0
0.045455
0
0
0.06449
0
0
0
0
0
0
1
0.159091
false
0
0.159091
0.045455
0.431818
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4af7009ad010e793cf0ab617a4835a39725c533b
18,689
py
Python
tests/cases/py_client/cli_test.py
Erotemic/girder
50efadbaef2976a38eded1dc55a10a1839337ffb
[ "Apache-2.0" ]
null
null
null
tests/cases/py_client/cli_test.py
Erotemic/girder
50efadbaef2976a38eded1dc55a10a1839337ffb
[ "Apache-2.0" ]
null
null
null
tests/cases/py_client/cli_test.py
Erotemic/girder
50efadbaef2976a38eded1dc55a10a1839337ffb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import contextlib import girder_client.cli import io import logging import mock import os import requests import shutil import sys import six import httmock from girder import config from girder.models.api_key import ApiKey from girder.models.folder import Folder from girder.models.item import ...
40.365011
100
0.577666
1,925
18,689
5.557403
0.174545
0.050477
0.026734
0.058422
0.524584
0.473827
0.432698
0.388484
0.376706
0.369789
0
0.010707
0.275349
18,689
462
101
40.452381
0.779222
0.068222
0
0.345404
0
0
0.2035
0.016637
0
0
0
0
0.189415
1
0.050139
false
0.086351
0.052925
0
0.111421
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
4af7545fb7ca224944319754b6bc09b36a039956
4,170
py
Python
src-python/convert_registrations_into_csv.py
DevParapalli/ca-adhyaaya-svelte
9a987b04c9c4dbcd9f30f92fa136eaed426fe356
[ "MIT" ]
null
null
null
src-python/convert_registrations_into_csv.py
DevParapalli/ca-adhyaaya-svelte
9a987b04c9c4dbcd9f30f92fa136eaed426fe356
[ "MIT" ]
1
2022-02-27T17:34:16.000Z
2022-02-27T19:00:33.000Z
src-python/convert_registrations_into_csv.py
DevParapalli/ca-adhyaaya-svelte
9a987b04c9c4dbcd9f30f92fa136eaed426fe356
[ "MIT" ]
1
2022-02-27T15:12:09.000Z
2022-02-27T15:12:09.000Z
DATA = """ { "DU1ZrX0rAncEYwLyWlwqgdEfjqA2": { "COV": { "event_code": "COV", "name": "Devansh Parapalli", "course": "FY", "registration_id": "DU1ZrX0rAncEYwLyWlwqgdEfjqA2-COV-1645969638818", "team": "", "transaction_status": "PAID", ...
33.902439
253
0.544365
372
4,170
5.978495
0.405914
0.028327
0.026978
0.031025
0.197392
0.185701
0.185701
0.185701
0.144335
0.144335
0
0.0205
0.309832
4,170
123
254
33.902439
0.752259
0.031175
0
0.171429
0
0.019048
0.84705
0.23054
0
0
0
0
0
1
0
false
0
0.019048
0
0.019048
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
4afd8c333d9a95fcd4aa20da82c708c859505177
5,169
py
Python
learn_transfer.py
cschubiner/chessboard-image-to-fen
04a1b5781b5b675eb6479fd21eaec4c4151f892d
[ "MIT" ]
null
null
null
learn_transfer.py
cschubiner/chessboard-image-to-fen
04a1b5781b5b675eb6479fd21eaec4c4151f892d
[ "MIT" ]
null
null
null
learn_transfer.py
cschubiner/chessboard-image-to-fen
04a1b5781b5b675eb6479fd21eaec4c4151f892d
[ "MIT" ]
null
null
null
from keras.applications.resnet50 import ResNet50, preprocess_input import matplotlib.pyplot as plt from keras.callbacks import ModelCheckpoint, EarlyStopping import math from generate_plot_pics import generate_plot_pics from keras.layers.normalization import BatchNormalization HEIGHT = 150 WIDTH = 150 class_list = ['...
36.401408
166
0.689689
654
5,169
5.24159
0.32263
0.026254
0.021879
0.021879
0.23133
0.174154
0.156651
0.156651
0.156651
0.087223
0
0.023592
0.196363
5,169
141
167
36.659574
0.801637
0.168891
0
0.046512
1
0
0.081967
0.027166
0.011628
0
0
0
0
1
0.034884
false
0
0.127907
0
0.174419
0.011628
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
ab02d9f68b4f8b765f1221f94ae45abf7b17cb59
1,482
py
Python
utils/tokens.py
lenileiro/grpc-example
12cc37cecceeb1f6519d6aef918db5132a12e130
[ "MIT" ]
null
null
null
utils/tokens.py
lenileiro/grpc-example
12cc37cecceeb1f6519d6aef918db5132a12e130
[ "MIT" ]
2
2020-04-04T16:40:59.000Z
2021-05-08T08:11:03.000Z
utils/tokens.py
lenileiro/grpc-example
12cc37cecceeb1f6519d6aef918db5132a12e130
[ "MIT" ]
null
null
null
import os import jwt from datetime import datetime, timedelta class Token: @staticmethod def generate_token(**kwargs): payload = { 'exp': datetime.utcnow()+ timedelta(minutes=30), 'iat': datetime.utcnow()} for key, val in kwargs.items(): payload[key...
32.933333
98
0.574224
148
1,482
5.601351
0.317568
0.130277
0.050663
0.026538
0.038601
0
0
0
0
0
0
0.012287
0.2861
1,482
45
99
32.933333
0.771267
0.002024
0
0.157895
1
0
0.108328
0
0
0
0
0
0
1
0.105263
false
0
0.078947
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ab08fcd0704d35bc386eab10436f4c2f9150f445
575
py
Python
libraries/RabbitMQ/connect.py
fabiano-teichmann/robot_guide
e5e9521ebddec22c082a9da227cdef7d54591ab5
[ "Apache-1.1" ]
null
null
null
libraries/RabbitMQ/connect.py
fabiano-teichmann/robot_guide
e5e9521ebddec22c082a9da227cdef7d54591ab5
[ "Apache-1.1" ]
null
null
null
libraries/RabbitMQ/connect.py
fabiano-teichmann/robot_guide
e5e9521ebddec22c082a9da227cdef7d54591ab5
[ "Apache-1.1" ]
null
null
null
import os def connect(func): def auth(**kwargs): user = kwargs['user'] if kwargs.get('user') else os.environ.get('RBMQ_USER') password = kwargs['pass'] if kwargs.get('pass') else os.environ.get('RBMQ_PASS') host = kwargs['host'] if kwargs.get('host') else os.environ.get('RBMQ_HOST') ...
38.333333
88
0.603478
78
575
4.410256
0.333333
0.093023
0.127907
0.139535
0.174419
0
0
0
0
0
0
0.01559
0.21913
575
14
89
41.071429
0.750557
0
0
0
0
0
0.18087
0
0
0
0
0
0
1
0.166667
false
0.166667
0.083333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ab0d614a1aca28b9f58d06dfbd67f39c497f21f3
879
py
Python
main/appengine_config.py
sidharta/hansel-app
536d8bfd61160f7f19dade0bd872791f502820e0
[ "MIT" ]
58
2015-04-07T21:24:46.000Z
2017-12-25T10:00:30.000Z
main/appengine_config.py
sidharta/hansel-app
536d8bfd61160f7f19dade0bd872791f502820e0
[ "MIT" ]
11
2015-04-11T09:59:41.000Z
2019-03-24T13:10:30.000Z
main/appengine_config.py
sidharta/hansel-app
536d8bfd61160f7f19dade0bd872791f502820e0
[ "MIT" ]
26
2015-06-19T02:56:18.000Z
2021-02-28T23:46:02.000Z
# coding: utf-8 """ This module inserts third party libraries into Google's python PATHs In production we import this from lib.zip file, whereas in development from main/lib folder """ import os import sys if os.environ.get('SERVER_SOFTWARE', '').startswith('Google App Engine'): sys.path.insert(0, 'lib.zip') else...
36.625
104
0.726962
130
879
4.830769
0.546154
0.082803
0.062102
0.066879
0.130573
0
0
0
0
0
0
0.006775
0.16041
879
23
105
38.217391
0.844173
0.498294
0
0
0
0
0.126464
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ab10426e1ae3be870c751e5f95914566c049604e
1,557
py
Python
data_cube_ui/celery_app.py
lefkats94/dc
c0105ce78482957f0c32ed57548fb299dd800e51
[ "Apache-2.0" ]
null
null
null
data_cube_ui/celery_app.py
lefkats94/dc
c0105ce78482957f0c32ed57548fb299dd800e51
[ "Apache-2.0" ]
null
null
null
data_cube_ui/celery_app.py
lefkats94/dc
c0105ce78482957f0c32ed57548fb299dd800e51
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 United States Government as represented by the Administrator # of the National Aeronautics and Space Administration. All Rights Reserved. # # Portion of this code is Copyright Geoscience Australia, Licensed under the # Apache License, Version 2.0 (the "License"); you may not use this file # except in c...
44.485714
78
0.773282
236
1,557
5.042373
0.495763
0.07563
0.043697
0.053782
0.27563
0.27563
0.27563
0.27563
0.27563
0.27563
0
0.009901
0.156712
1,557
35
79
44.485714
0.89642
0.719332
0
0
0
0
0.195652
0.103865
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ab1053ffbb432b9d2a8b303ff37ea8b9d188ba0f
3,677
py
Python
Supported Languages/Python/tests/controllers/test_user_management.py
SMASH-INC/API
d0679f199f786aa24f0510df078b4318c27dcc0f
[ "MIT" ]
null
null
null
Supported Languages/Python/tests/controllers/test_user_management.py
SMASH-INC/API
d0679f199f786aa24f0510df078b4318c27dcc0f
[ "MIT" ]
null
null
null
Supported Languages/Python/tests/controllers/test_user_management.py
SMASH-INC/API
d0679f199f786aa24f0510df078b4318c27dcc0f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ tests.controllers.test_user_management This file was automatically generated for SMASH by SMASH v2.0 ( https://smashlabs.io ). """ import jsonpickle import dateutil.parser from .controller_test_base import ControllerTestBase from ..test_helper import TestHelper from smash.api_help...
47.753247
930
0.653794
478
3,677
4.924686
0.286611
0.011895
0.025489
0.068819
0.459218
0.459218
0.430756
0.415463
0.36661
0.36661
0
0.005676
0.233342
3,677
76
931
48.381579
0.829372
0.190917
0
0.25
1
0.09375
0.457327
0
0
0
0
0
0.28125
1
0.125
false
0
0.15625
0
0.3125
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
ab115a84ceaaa49c2b72cc198c36545eef264fee
2,331
py
Python
zentral/contrib/inventory/migrations/0059_auto_20211210_0940.py
janheise/zentral
cd809483573301e7d1aa5d3fc2da2c74a62405ab
[ "Apache-2.0" ]
null
null
null
zentral/contrib/inventory/migrations/0059_auto_20211210_0940.py
janheise/zentral
cd809483573301e7d1aa5d3fc2da2c74a62405ab
[ "Apache-2.0" ]
null
null
null
zentral/contrib/inventory/migrations/0059_auto_20211210_0940.py
janheise/zentral
cd809483573301e7d1aa5d3fc2da2c74a62405ab
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.24 on 2021-12-10 09:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('inventory', '0058_machine_snapshot_disks_on_delete_cascade'), ] operations = [ migrations.CreateModel( name='Payload', ...
42.381818
114
0.561133
221
2,331
5.782805
0.352941
0.077465
0.111894
0.146322
0.593114
0.593114
0.488263
0.488263
0.488263
0.488263
0
0.014643
0.296868
2,331
54
115
43.166667
0.765101
0.019734
0
0.520833
1
0
0.142357
0.019711
0
0
0
0
0
1
0
false
0
0.020833
0
0.083333
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
ab153eb6bd9f834b827863cee35a0e46f841697d
3,219
py
Python
metabench/models/problem.py
ComeBertrand/metabench
e5eaa32b94239b8fa475eda940b8086eec178cfe
[ "MIT" ]
null
null
null
metabench/models/problem.py
ComeBertrand/metabench
e5eaa32b94239b8fa475eda940b8086eec178cfe
[ "MIT" ]
15
2018-03-07T21:47:56.000Z
2018-05-12T08:45:20.000Z
metabench/models/problem.py
ComeBertrand/metabench
e5eaa32b94239b8fa475eda940b8086eec178cfe
[ "MIT" ]
null
null
null
""" File: abstract.py Author: Come Bertrand Email: bertrand.cosme@gmail.com Github: https://github.com/ComeBertrand Description: A problem describe a function or an instance that needs to be optimized. """ from ..common.solution import Solution class Problem(object): """Problem to be solved by a Metaheuristic. ...
33.884211
79
0.643368
372
3,219
5.521505
0.327957
0.058423
0.020448
0.029211
0.210321
0.210321
0.210321
0.210321
0.210321
0.210321
0
0.001766
0.296365
3,219
94
80
34.244681
0.905077
0.614787
0
0
0
0
0.060381
0
0
0
0
0
0
1
0.238095
false
0
0.047619
0.047619
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ab17c9031557cf6dcd4753bf28104c5edd5ebca2
363
py
Python
postreview/forms.py
mrunal2504/unicode-website
a8151c3e6cad594a6518e9529c501aff3165efbb
[ "MIT" ]
6
2018-01-02T13:01:44.000Z
2020-05-08T11:46:39.000Z
postreview/forms.py
mrunal2504/unicode-website
a8151c3e6cad594a6518e9529c501aff3165efbb
[ "MIT" ]
22
2018-12-24T19:10:44.000Z
2022-02-10T10:58:26.000Z
postreview/forms.py
mrunal2504/unicode-website
a8151c3e6cad594a6518e9529c501aff3165efbb
[ "MIT" ]
22
2018-12-26T02:52:57.000Z
2020-10-01T19:09:56.000Z
from django import forms from .models import Review class reviewForm(forms.ModelForm): text = forms.CharField() class Meta: model = Review fields = [ "first_name", "last_name", "photograph", "designation", "company", "dep...
19.105263
34
0.498623
29
363
6.172414
0.758621
0
0
0
0
0
0
0
0
0
0
0
0.407714
363
18
35
20.166667
0.832558
0
0
0
0
0
0.179063
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ab1e0cd54e5905fe43755ceb4d23a7dc88b7d603
3,049
py
Python
src/events/handler.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/events/handler.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/events/handler.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
from django.utils import timezone from datetime import timedelta from ircbot.utils import add_irc_message import logging logger = logging.getLogger("bornhack.%s" % __name__) def handle_team_event(eventtype, irc_message=None, irc_timeout=60, email_template=None, email_formatdict=None): """ This method is our b...
37.182927
111
0.711381
405
3,049
5.209877
0.274074
0.056872
0.036019
0.03128
0.229384
0.121327
0.075829
0
0
0
0
0.002518
0.218432
3,049
81
112
37.641975
0.882921
0.29977
0
0.142857
0
0
0.120581
0.010654
0
0
0
0.024691
0
1
0.071429
false
0
0.119048
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
1
0
0
0
0
0
0
0
0
0
0
1
ab20f535225b9bca74a846c882bd79f89b634ab9
223
py
Python
data_to_tfrecord_partprocess.py
ljq2278/models
cdb509af2de4d5f7d0cc9bd3c562bb660c17163a
[ "Apache-2.0" ]
null
null
null
data_to_tfrecord_partprocess.py
ljq2278/models
cdb509af2de4d5f7d0cc9bd3c562bb660c17163a
[ "Apache-2.0" ]
null
null
null
data_to_tfrecord_partprocess.py
ljq2278/models
cdb509af2de4d5f7d0cc9bd3c562bb660c17163a
[ "Apache-2.0" ]
null
null
null
import tensorflow_datasets as tfds import sys print('sub process start') data_dir = sys.argv[1] ds = tfds.builder('my_hy_dataset_multi_process',data_dir=data_dir) ds.download_and_prepare() print('sub process over')
13.9375
66
0.775785
36
223
4.527778
0.666667
0.128834
0.184049
0
0
0
0
0
0
0
0
0.005102
0.121076
223
15
67
14.866667
0.826531
0
0
0
0
0
0.272727
0.122727
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.285714
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
ab241c4e5c98b79f9d6858ed211e0273668b5b38
3,306
py
Python
pymsteams/__init__.py
iliassjabali/pymsteams
a56dfcdef0c0657b5351111f10dfdfc714ece23b
[ "Apache-2.0" ]
null
null
null
pymsteams/__init__.py
iliassjabali/pymsteams
a56dfcdef0c0657b5351111f10dfdfc714ece23b
[ "Apache-2.0" ]
null
null
null
pymsteams/__init__.py
iliassjabali/pymsteams
a56dfcdef0c0657b5351111f10dfdfc714ece23b
[ "Apache-2.0" ]
1
2020-04-24T23:05:58.000Z
2020-04-24T23:05:58.000Z
#!/usr/bin/env python # https://github.com/rveachkc/pymsteams/ # reference: https://dev.outlook.com/connectors/reference import requests class cardsection: def title(self, stitle): # title of the section self.payload["title"] = stitle def activityTitle(self, sactivityTitle): # Title of the event or action....
24.671642
93
0.68663
400
3,306
5.6525
0.345
0.145953
0.015922
0.028306
0.143742
0.124281
0.124281
0.083149
0.055728
0.055728
0
0.002552
0.170296
3,306
133
94
24.857143
0.821728
0.160012
0
0.133333
0
0
0.148536
0
0
0
0
0
0
1
0.255556
false
0
0.011111
0.011111
0.333333
0.044444
0
0
0
null
0
0
0
0
0
0
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
ab2665104c707f1473ebc2ede2294ab9ed7e8887
702
py
Python
pysda/mst.py
wenlab501/pysda
5bdc173791f8086108a337af42d65474b244453f
[ "MIT" ]
4
2018-11-13T09:37:10.000Z
2020-05-21T08:24:31.000Z
pysda/mst.py
wenlab501/pysda
5bdc173791f8086108a337af42d65474b244453f
[ "MIT" ]
null
null
null
pysda/mst.py
wenlab501/pysda
5bdc173791f8086108a337af42d65474b244453f
[ "MIT" ]
1
2021-01-28T11:00:33.000Z
2021-01-28T11:00:33.000Z
# -*- encoding: utf-8 -*- import os from .util import check_dir, zip_shp import pandas as pd import geopandas as gpd from mstdbscan import MSTdbscan from . import mstResult class MSTDBSCAN(MSTdbscan): def __init__(self, pysdaData): self.dateIndex = pysdaData.dateIndex super().__init__(pysdaData...
26
96
0.655271
70
702
6.171429
0.471429
0.150463
0.087963
0
0
0
0
0
0
0
0
0.001692
0.15812
702
26
97
27
0.729272
0.032764
0
0
0
0
0.039867
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.642857
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
ab2a5629a76e092c979528a2951ad1dae9f6a5a6
1,072
py
Python
src/rogerthat/to/service_map.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/to/service_map.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/to/service_map.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
34.580645
76
0.734142
149
1,072
5.201342
0.630872
0.077419
0.033548
0.04129
0
0
0
0
0
0
0
0.0213
0.16791
1,072
30
77
35.733333
0.847534
0.565299
0
0
0
0
0.017817
0
0
0
0
0
0
1
0
false
0
0.090909
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ab2af8b84fed8b708e40bd7a372a4306f5dd07ec
6,169
py
Python
audioroutines.py
jmcmellen/sameeas
c048a29f40a4a18bafd770069b5dacca40e731b3
[ "Unlicense", "MIT" ]
17
2015-11-04T20:23:16.000Z
2022-03-19T21:24:06.000Z
audioroutines.py
EQ4/sameeas
c048a29f40a4a18bafd770069b5dacca40e731b3
[ "Unlicense", "MIT" ]
2
2017-01-18T00:24:48.000Z
2018-06-15T01:28:02.000Z
audioroutines.py
EQ4/sameeas
c048a29f40a4a18bafd770069b5dacca40e731b3
[ "Unlicense", "MIT" ]
13
2015-05-11T05:02:19.000Z
2020-11-06T00:36:39.000Z
import math, struct, random, array pi = math.pi def getFIRrectFilterCoeff(fc, sampRate, filterLen=20): 'Calculate FIR lowpass filter weights using hamming window' 'y(n) = w0 * x(n) + w1 * x(n-1) + ...' ft = float(fc) / sampRate #print ft m = float(filterLen - 1) weights = [] ...
30.240196
100
0.563787
900
6,169
3.837778
0.223333
0.039375
0.010423
0.011581
0.415171
0.387666
0.366242
0.350029
0.350029
0.318761
0
0.131489
0.284973
6,169
203
101
30.389163
0.651553
0.033231
0
0.282051
0
0.00641
0.041335
0
0
0
0
0
0
0
null
null
0.012821
0.012821
null
null
0.00641
0
0
0
null
0
0
0
0
0
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
ab3758b832c766693b04f1be1d5e8bea8b5f2218
719
py
Python
examples/synthetic/park1_constrained/park1_constrained.py
hase1128/dragonfly
4be7e4c539d3edccc4d243ab9f972b1ffb0d9a5c
[ "MIT" ]
675
2018-08-23T17:30:46.000Z
2022-03-30T18:37:23.000Z
examples/synthetic/park1_constrained/park1_constrained.py
hase1128/dragonfly
4be7e4c539d3edccc4d243ab9f972b1ffb0d9a5c
[ "MIT" ]
62
2018-11-30T23:40:19.000Z
2022-03-10T19:47:27.000Z
examples/synthetic/park1_constrained/park1_constrained.py
hase1128/dragonfly
4be7e4c539d3edccc4d243ab9f972b1ffb0d9a5c
[ "MIT" ]
349
2018-09-10T19:04:34.000Z
2022-03-31T13:10:45.000Z
""" Park1 function with three domains. -- kandasamy@cs.cmu.edu """ # pylint: disable=invalid-name import numpy as np def park1_constrained(x): """ Computes the park1 function. """ return park1_constrained_z_x([1.0, 1.0, 1.0], x) def park1_constrained_z_x(z, x): """ Computes the park1 function. """ x1 = ...
24.793103
60
0.585535
132
719
3.128788
0.371212
0.072639
0.067797
0.082324
0.121065
0
0
0
0
0
0
0.103627
0.194715
719
28
61
25.678571
0.609672
0.276773
0
0
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0
0.538462
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
ab379b7c783e7b1fe9d6966c2e0b7c462eff59cc
4,390
py
Python
drum/links/models.py
interrogator/drum
7a25c574941f9da8b89b0ae162b205f0e3fd5eba
[ "BSD-2-Clause" ]
null
null
null
drum/links/models.py
interrogator/drum
7a25c574941f9da8b89b0ae162b205f0e3fd5eba
[ "BSD-2-Clause" ]
null
null
null
drum/links/models.py
interrogator/drum
7a25c574941f9da8b89b0ae162b205f0e3fd5eba
[ "BSD-2-Clause" ]
null
null
null
from operator import ior from functools import reduce from decimal import Decimal from urllib.parse import urlparse from django.conf import settings from django.urls import reverse from django.db import models from django.db.models import Q from django.db.models.signals import post_save, pre_delete from django.dispat...
36.890756
92
0.699772
580
4,390
5.17069
0.360345
0.023341
0.033344
0.034678
0.102034
0.082694
0.056686
0.032678
0
0
0
0.008603
0.205695
4,390
118
93
37.20339
0.851448
0.149431
0
0.025316
0
0
0.041311
0.006885
0
0
0
0
0
1
0.101266
false
0
0.227848
0.025316
0.64557
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
ab3e0a99a3b46c58e45eee1b8c1a9af6cda07372
5,545
py
Python
python/PyAlembic/Tests/testNurbs.py
ryu-sw/alembic
395450bad88f9d5ed6d20612e9201aac93a5eb54
[ "MIT" ]
7
2019-11-23T16:29:26.000Z
2020-06-30T20:24:15.000Z
python/PyAlembic/Tests/testNurbs.py
ryu-sw/alembic
395450bad88f9d5ed6d20612e9201aac93a5eb54
[ "MIT" ]
null
null
null
python/PyAlembic/Tests/testNurbs.py
ryu-sw/alembic
395450bad88f9d5ed6d20612e9201aac93a5eb54
[ "MIT" ]
1
2022-01-30T04:16:01.000Z
2022-01-30T04:16:01.000Z
#-****************************************************************************** # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # mo...
34.228395
80
0.637331
616
5,545
5.704545
0.362013
0.051224
0.007684
0.035857
0.446784
0.388731
0.340353
0.340353
0.340353
0.340353
0
0.017266
0.227051
5,545
161
81
34.440994
0.802613
0.337421
0
0.493671
0
0
0.059286
0
0
0
0
0
0.227848
0
null
null
0.012658
0.063291
null
null
0.050633
0
0
0
null
0
0
0
0
0
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
ab3e129661cb063ec8767fbf455899101528a53e
209
py
Python
backend/api/models/model_year_report_statuses.py
kuanfan99/zeva
57b506a108fe57438506569d5503c90c52216b2f
[ "Apache-2.0" ]
null
null
null
backend/api/models/model_year_report_statuses.py
kuanfan99/zeva
57b506a108fe57438506569d5503c90c52216b2f
[ "Apache-2.0" ]
null
null
null
backend/api/models/model_year_report_statuses.py
kuanfan99/zeva
57b506a108fe57438506569d5503c90c52216b2f
[ "Apache-2.0" ]
null
null
null
from enum import Enum, unique @unique class ModelYearReportStatuses(Enum): DRAFT = 'DRAFT' SUBMITTED = 'SUBMITTED' RECOMMENDED = 'RECOMMENDED' RETURNED = 'RETURNED' ASSESSED = 'ASSESSED'
19
36
0.688995
19
209
7.578947
0.578947
0
0
0
0
0
0
0
0
0
0
0
0.215311
209
10
37
20.9
0.878049
0
0
0
0
0
0.196172
0
0
0
0
0
0
1
0
false
0
0.125
0
0.875
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
ab42c6618fa51f1380143aceaddc02e475041310
775
py
Python
example/pyctp2/trader/ports_info.py
mmmaaaggg/pyctp_lovelylain
4ee3275c53ffdac72c49f54d32ee3baed6148161
[ "MIT" ]
358
2015-01-05T02:17:16.000Z
2022-03-20T13:49:05.000Z
data/train/python/ab42c6618fa51f1380143aceaddc02e475041310ports_info.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
43
2015-01-01T04:26:42.000Z
2019-07-14T17:15:27.000Z
data/train/python/ab42c6618fa51f1380143aceaddc02e475041310ports_info.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
231
2015-01-01T18:08:25.000Z
2022-02-28T18:22:00.000Z
# -*- coding: utf-8 -*- import getpass class PortsInfo(object): def __init__(self, name, ports, broker, investor=""): """ CTP连接信息, ports为port列表, 其元素为 "tcp://aaa.bbb.ccc.ddd:ppppp"形式 MDUser不需要输入investor """ self.name = name self.ports = ports ...
23.484848
62
0.557419
77
775
5.480519
0.454545
0.056872
0.061611
0.080569
0.137441
0.137441
0
0
0
0
0
0.001887
0.316129
775
32
63
24.21875
0.79434
0.131613
0
0.2
0
0
0.077419
0
0
0
0
0
0
1
0.2
false
0.25
0.05
0
0.35
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
ab50baf42813af6f2f097107564cae697fd93c77
2,008
py
Python
enhancedserial.py
vkorobov/bp250log
bb46fbe7aea13948717b2f2e293a9e013d46a07c
[ "Apache-2.0" ]
null
null
null
enhancedserial.py
vkorobov/bp250log
bb46fbe7aea13948717b2f2e293a9e013d46a07c
[ "Apache-2.0" ]
null
null
null
enhancedserial.py
vkorobov/bp250log
bb46fbe7aea13948717b2f2e293a9e013d46a07c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Enhanced Serial Port class part of pyserial (http://pyserial.sf.net) (C)2002 cliechti@gmx.net another implementation of the readline and readlines method. this one should be more efficient because a bunch of characters are read on each access, but the drawback is that a timeout must be specif...
28.685714
94
0.682769
320
2,008
4.21875
0.471875
0.041481
0.024444
0.026667
0.026667
0
0
0
0
0
0
0.025593
0.202191
2,008
70
95
28.685714
0.817104
0.139442
0
0.136364
0
0
0.042125
0
0
0
0
0
0
0
null
null
0
0.022727
null
null
0.068182
0
0
0
null
0
0
0
0
0
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
ab5754ee2552712a407adedf6ff2e7af9c40bab3
316
py
Python
setup.py
gmaher/GenericML
510140e298b9cd8a2e0499b0e460ef0b4f3489cd
[ "MIT" ]
null
null
null
setup.py
gmaher/GenericML
510140e298b9cd8a2e0499b0e460ef0b4f3489cd
[ "MIT" ]
null
null
null
setup.py
gmaher/GenericML
510140e298b9cd8a2e0499b0e460ef0b4f3489cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup(name='GenericML', version='1.0', description='Generic Machine Learning', author='Gabriel Maher', author_email='', url='', packages=['GenericML', 'GenericML.dataset', 'GenericML.model', 'GenericML.rl'], )
22.571429
68
0.613924
33
316
5.848485
0.818182
0
0
0
0
0
0
0
0
0
0
0.008163
0.224684
316
13
69
24.307692
0.779592
0.063291
0
0
0
0
0.345763
0
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
ab5b88e2daca65cbf13edb830a9236dccc3033c0
5,371
py
Python
pyrevolve/spec/msgs/robot_states_pb2.py
MRebolle/Battery-Robot
1b97e8c77cf7eff7d5cc7e417b4e5ec97e4011e7
[ "Apache-1.1" ]
null
null
null
pyrevolve/spec/msgs/robot_states_pb2.py
MRebolle/Battery-Robot
1b97e8c77cf7eff7d5cc7e417b4e5ec97e4011e7
[ "Apache-1.1" ]
null
null
null
pyrevolve/spec/msgs/robot_states_pb2.py
MRebolle/Battery-Robot
1b97e8c77cf7eff7d5cc7e417b4e5ec97e4011e7
[ "Apache-1.1" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: robot_states.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _...
35.806667
493
0.743065
714
5,371
5.315126
0.212885
0.048485
0.035573
0.045059
0.553096
0.449802
0.40448
0.40448
0.364427
0.364427
0
0.039795
0.129771
5,371
149
494
36.04698
0.772144
0.052318
0
0.531746
1
0.007937
0.186307
0.142436
0
0
0
0
0
1
0
false
0
0.063492
0
0.063492
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
ab5f753b4e4f50ab8ba2a9224e69fe32a2ad9c76
458
py
Python
admin_email_sender/admin.py
stasfilin/django-admin-email-sender
8abb82f45ffebf47e4abcc1a2eda8225e3448668
[ "Apache-2.0" ]
8
2018-01-22T00:48:40.000Z
2020-05-24T11:40:22.000Z
admin_email_sender/admin.py
stasfilin/django-admin-email-sender
8abb82f45ffebf47e4abcc1a2eda8225e3448668
[ "Apache-2.0" ]
6
2018-01-20T19:18:49.000Z
2020-06-27T11:38:59.000Z
admin_email_sender/admin.py
stasfilin/django-admin-email-sender
8abb82f45ffebf47e4abcc1a2eda8225e3448668
[ "Apache-2.0" ]
2
2018-09-14T19:27:30.000Z
2020-05-24T11:40:28.000Z
from django.contrib import admin from admin_email_sender.models import SendEmail, Template @admin.register(SendEmail) class SendEmailLogin(admin.ModelAdmin): filter_horizontal = ('users',) list_display = ('subject', 'template', 'created_at', 'total_emails', 'status',) def total_emails(self, obj): ...
24.105263
83
0.727074
53
458
6.113208
0.603774
0.080247
0
0
0
0
0
0
0
0
0
0
0.141921
458
18
84
25.444444
0.824427
0
0
0
0
0
0.135371
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0.090909
0.818182
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
db3e02b71f2f07f32bc5e41beacf5f9b42f74a19
5,192
py
Python
40_Gomoko/python/Gomoko.py
uMetalooper/basic-computer-games
b31c624703e5d4476a39a215183b667df348ac2e
[ "Unlicense" ]
1
2022-03-24T17:56:31.000Z
2022-03-24T17:56:31.000Z
40_Gomoko/python/Gomoko.py
uMetalooper/basic-computer-games
b31c624703e5d4476a39a215183b667df348ac2e
[ "Unlicense" ]
1
2022-03-24T20:16:26.000Z
2022-03-24T20:16:26.000Z
40_Gomoko/python/Gomoko.py
uMetalooper/basic-computer-games
b31c624703e5d4476a39a215183b667df348ac2e
[ "Unlicense" ]
1
2022-03-11T14:14:06.000Z
2022-03-11T14:14:06.000Z
import random from typing import Any, List, Tuple def print_n_whitespaces(n: int) -> None: print(" " * n, end="") def print_board(A: List[List[Any]], n: int) -> None: """PRINT THE BOARD""" for i in range(n): print(" ", end="") for j in range(n): print(A[i][j], end="") ...
33.282051
76
0.382897
571
5,192
3.385289
0.246935
0.010347
0.032592
0.037248
0.19193
0.167098
0.145887
0.145887
0.131402
0.131402
0
0.028309
0.516949
5,192
155
77
33.496774
0.742424
0.016179
0
0.427481
0
0
0.154963
0
0
0
0
0
0
1
0.061069
false
0
0.015267
0
0.114504
0.328244
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
db43e981e3d6a7bbf8c1ce4ec6d1852ee587c27b
2,388
py
Python
var/spack/repos/builtin/packages/herwigpp/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/herwigpp/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/herwigpp/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * from spack.pkg.builtin.boost import Boost class Herwigpp(AutotoolsPackage): """Herwig is...
37.904762
120
0.636097
280
2,388
5.342857
0.453571
0.037433
0.010027
0.050802
0.195187
0.161765
0.128342
0.128342
0.128342
0.065508
0
0.044062
0.220687
2,388
62
121
38.516129
0.759807
0.195142
0
0.205128
0
0.025641
0.319496
0.106148
0
0
0
0.016129
0
1
0.102564
false
0
0.051282
0
0.282051
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
db47ab021a7cb6a5fe32046c2279f1c4334cb4e1
1,668
py
Python
Ui_ItemWidget.py
Ingener74/Mist-Tooth
61bc67aecac7ecb2f3115562e428995d5999026e
[ "MIT" ]
null
null
null
Ui_ItemWidget.py
Ingener74/Mist-Tooth
61bc67aecac7ecb2f3115562e428995d5999026e
[ "MIT" ]
null
null
null
Ui_ItemWidget.py
Ingener74/Mist-Tooth
61bc67aecac7ecb2f3115562e428995d5999026e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'res/ItemWidget.ui', # licensing of 'res/ItemWidget.ui' applies. # # Created: Wed Jul 24 14:22:57 2019 # by: pyside2-uic running on PySide2 5.13.0 # # WARNING! All changes made in this file will be lost! from PySide2 import QtCore, QtG...
40.682927
99
0.720624
162
1,668
7.41358
0.462963
0.074938
0.024979
0.048293
0
0
0
0
0
0
0
0.021091
0.175659
1,668
40
100
41.7
0.852364
0.161871
0
0
1
0
0.067723
0
0
0
0
0
0
1
0.076923
false
0
0.038462
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
db52ce74756e486baef36810fd7c261a2df19a89
498
py
Python
tmscc/sampler.py
tarohi24/tmscc
5e0f30fd009fe827ac2263f369c099a5bbc91a48
[ "MIT" ]
null
null
null
tmscc/sampler.py
tarohi24/tmscc
5e0f30fd009fe827ac2263f369c099a5bbc91a48
[ "MIT" ]
2
2018-03-20T06:21:35.000Z
2019-10-03T02:26:25.000Z
tmscc/sampler.py
tarohi24/tmscc
5e0f30fd009fe827ac2263f369c099a5bbc91a48
[ "MIT" ]
null
null
null
""" Sampler metadata """ class Sampler(object): method_name = None def __init__(self): pass class GibbsSampler(Sampler): method_name = 'gibbs' def __init__(self, n_iter=1000, n_burnin=100, n_thread=1): # super(GibbsSampler, self).__init__() self.n_iter = n_iter self...
17.785714
69
0.648594
65
498
4.584615
0.4
0.134228
0.073826
0.087248
0
0
0
0
0
0
0
0.021053
0.236948
498
27
70
18.444444
0.763158
0.108434
0
0
0
0
0.025229
0
0
0
0
0
0
1
0.153846
false
0.076923
0
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
db594b90375e476ceaac17143e1cb61ae10d03fd
630
py
Python
utlts/parse_data.py
proteins247/proteomevis_scripts
33d864f02787659a5d75103baad556fb48b3bd1e
[ "MIT" ]
1
2020-11-11T06:14:10.000Z
2020-11-11T06:14:10.000Z
utlts/parse_data.py
proteins247/proteomevis_scripts
33d864f02787659a5d75103baad556fb48b3bd1e
[ "MIT" ]
null
null
null
utlts/parse_data.py
proteins247/proteomevis_scripts
33d864f02787659a5d75103baad556fb48b3bd1e
[ "MIT" ]
1
2019-05-28T19:13:24.000Z
2019-05-28T19:13:24.000Z
import os, sys #call module 'organism_setup?' organism_list = ['yeast','ecoli']#, 'protherm']#,'yeast_ecoli' append when wanted #need to figure out a better way cwd = os.getcwd() organism = os.path.basename(cwd) def initialize_dict(dtype): #not sure if this belongs in this module d = {} for organism in organism_...
19.090909
114
0.647619
93
630
4.333333
0.548387
0.052109
0.049628
0
0
0
0
0
0
0
0
0.027668
0.196825
630
32
115
19.6875
0.768775
0.231746
0
0.24
0
0
0.152401
0
0
0
0
0
0
0
null
null
0
0.04
null
null
0.04
0
0
0
null
0
0
0
0
0
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
db5aceb686e88cbb9703748c031a2ee5c1032640
11,535
py
Python
pythonlib/SequenceBasics.py
jason-weirather/IDP
a79ac178317dcfa6eaec0cb0d8d9e65c827a79a2
[ "Apache-2.0" ]
5
2017-09-18T18:21:26.000Z
2020-05-01T23:29:26.000Z
pythonlib/SequenceBasics.py
jason-weirather/IDP
a79ac178317dcfa6eaec0cb0d8d9e65c827a79a2
[ "Apache-2.0" ]
3
2018-11-26T16:35:12.000Z
2021-11-22T07:16:51.000Z
pythonlib/SequenceBasics.py
jason-weirather/IDP
a79ac178317dcfa6eaec0cb0d8d9e65c827a79a2
[ "Apache-2.0" ]
4
2018-01-02T13:06:39.000Z
2020-04-14T13:20:52.000Z
import re, sys, hashlib import GenePredBasics from FileBasics import GenericFileReader class GenericFastqFileReader: def __init__(self,filename): self.filename = filename self.gfr = GenericFileReader(self.filename) self.previous_name = None def close(self): self.gfr.close() def read_entry(self...
29.88342
128
0.569831
1,606
11,535
4.021171
0.156289
0.013936
0.014091
0.019511
0.557603
0.493651
0.441003
0.432332
0.411118
0.376432
0
0.009408
0.281231
11,535
385
129
29.961039
0.769509
0.163416
0
0.53871
0
0
0.091335
0
0
0
0
0
0
0
null
null
0
0.009677
null
null
0.003226
0
0
0
null
0
0
0
0
0
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
db66cf5345740e3f2417f3306b1a07d29e5ed260
1,120
py
Python
sasoptpy/abstract/shadow.py
jld23/sasoptpy
f96911f04d6c0c01fce902f1f995935583df69a8
[ "Apache-2.0" ]
20
2017-12-22T18:29:55.000Z
2021-09-12T15:04:39.000Z
sasoptpy/abstract/shadow.py
jld23/sasoptpy
f96911f04d6c0c01fce902f1f995935583df69a8
[ "Apache-2.0" ]
9
2019-01-24T14:52:33.000Z
2022-03-16T14:14:35.000Z
sasoptpy/abstract/shadow.py
jld23/sasoptpy
f96911f04d6c0c01fce902f1f995935583df69a8
[ "Apache-2.0" ]
12
2017-12-22T19:37:16.000Z
2021-07-30T21:04:03.000Z
import sasoptpy from sasoptpy.core import Variable, Constraint from abc import ABC, abstractmethod class Shadow(ABC): def __init__(self): self._abstract = True self._shadow = True @abstractmethod def _expr(self): pass class ShadowVariable(Shadow, Variable): def __init__(se...
24.347826
72
0.642857
134
1,120
5
0.380597
0.059701
0.049254
0
0
0
0
0
0
0
0
0.00119
0.25
1,120
45
73
24.888889
0.796429
0
0
0.15625
0
0
0.007149
0
0
0
0
0
0
1
0.25
false
0.03125
0.09375
0.03125
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
db69c4ebece6765e29854f82ed4e50e666807a1c
490
py
Python
Chapter04/B13346_04_22-fiona.py
shahidnawazkhan/geog786course
e2d425875d183af3f0d5d54bb7c01033f5b2926f
[ "MIT" ]
97
2019-06-21T21:59:23.000Z
2022-03-30T17:00:46.000Z
Chapter04/B13346_04_22-fiona.py
Fall-in-love-with-Kikyo/Learning-Geospatial-Analysis-with-Python-Third-Edition
5f4961837d762cffbf67338e0237313ea89dbb48
[ "MIT" ]
3
2021-10-19T02:31:15.000Z
2022-01-18T04:45:07.000Z
Chapter04/B13346_04_22-fiona.py
Fall-in-love-with-Kikyo/Learning-Geospatial-Analysis-with-Python-Third-Edition
5f4961837d762cffbf67338e0237313ea89dbb48
[ "MIT" ]
61
2019-04-07T22:53:30.000Z
2022-03-28T03:01:11.000Z
# Examine Data with Fiona # https://github.com/GeospatialPython/Learning/raw/master/GIS_CensusTract.zip import fiona from pprint import pprint # Open a shapefile f = fiona.open("GIS_CensusTract_poly.shp") # Check the type of driver print(f.driver) # Get the crs print(f.crs) # Get the boudning box print...
20.416667
78
0.722449
77
490
4.558442
0.623377
0.051282
0
0
0
0
0
0
0
0
0
0.0025
0.183673
490
24
79
20.416667
0.875
0.553061
0
0
0
0
0.128342
0.128342
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.777778
0
0
0
null
0
0
0
0
0
0
0
0
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
db6db15e61a0da19e93feb51de1698a7106190fd
8,145
py
Python
gpMgmt/bin/src/gpfdist.py
wapache-org/greenplum-gpdb
79e2bd251c1d27054846f630acd52e7903854829
[ "PostgreSQL", "Apache-2.0" ]
9
2018-04-20T03:31:01.000Z
2020-05-13T14:10:53.000Z
gpMgmt/bin/src/gpfdist.py
wapache-org/greenplum-gpdb
79e2bd251c1d27054846f630acd52e7903854829
[ "PostgreSQL", "Apache-2.0" ]
36
2017-09-21T09:12:27.000Z
2020-06-17T16:40:48.000Z
gpMgmt/bin/src/gpfdist.py
wapache-org/greenplum-gpdb
79e2bd251c1d27054846f630acd52e7903854829
[ "PostgreSQL", "Apache-2.0" ]
32
2017-08-31T12:50:52.000Z
2022-03-01T07:34:53.000Z
#!/usr/bin/env python ''' gpfdist -- file distribution web server Usage: gpfdist [-?v] [-p port] [-d dir] [-q qchar] [-x xchar] [-h] [-l logfile] -? : print this help screen -v : verbose mode -p port : which port to serve HTTP. Default to 8080 -d dir : serv...
26.970199
97
0.588582
1,139
8,145
4.13345
0.23266
0.049915
0.035684
0.019541
0.147621
0.09898
0.088785
0.071793
0.024214
0.024214
0
0.019035
0.277594
8,145
301
98
27.059801
0.781101
0.041375
0
0.230415
0
0
0.116689
0
0
0
0
0
0
0
null
null
0
0.004608
null
null
0.046083
0
0
0
null
0
0
0
0
0
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
db6dbd1b9f9e573657d2776f52662182d42b14ab
838
py
Python
Competitive Programming/Array/Cyclically rotate an array by one.py
shreejitverma/GeeksforGeeks
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-18T05:14:28.000Z
2022-03-08T07:00:08.000Z
Competitive Programming/Array/Cyclically rotate an array by one.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
6
2022-01-13T04:31:04.000Z
2022-03-12T01:06:16.000Z
Competitive Programming/Array/Cyclically rotate an array by one.py
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-14T19:53:53.000Z
2022-02-18T05:14:30.000Z
'''https://practice.geeksforgeeks.org/problems/cyclically-rotate-an-array-by-one2614/1 Cyclically rotate an array by one Basic Accuracy: 64.05% Submissions: 66795 Points: 1 Given an array, rotate the array by one position in clock-wise direction. Example 1: Input: N = 5 A[] = {1, 2, 3, 4, 5} Output: 5 1 2 3 4 E...
17.102041
167
0.628878
158
838
3.335443
0.487342
0.039848
0.068311
0.087287
0.121442
0.026565
0.026565
0
0
0
0
0.094637
0.243437
838
48
168
17.458333
0.736593
0.817422
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
db6ffcf92f2ef2e4c17d778a7fd4b6bb51aa0538
25,920
py
Python
regress/fvregress.py
fp7-ofelia/VeRTIGO
11f39f819196c8352611852435dea17bc6a2292f
[ "BSD-3-Clause" ]
2
2016-10-12T08:20:00.000Z
2017-05-09T13:13:18.000Z
regress/fvregress.py
fp7-ofelia/VeRTIGO
11f39f819196c8352611852435dea17bc6a2292f
[ "BSD-3-Clause" ]
null
null
null
regress/fvregress.py
fp7-ofelia/VeRTIGO
11f39f819196c8352611852435dea17bc6a2292f
[ "BSD-3-Clause" ]
1
2020-10-01T07:57:34.000Z
2020-10-01T07:57:34.000Z
#!/usr/bin/python """@package fv_regress Regression framework for testing flowvisor """ from threading import Thread,Lock,Condition import socket import sys import binascii # for hexlify() and unhexlify() import os import time import select import signal import string import subprocess import traceback import ...
40.883281
147
0.544174
2,977
25,920
4.66913
0.162244
0.014388
0.020288
0.025899
0.311367
0.266259
0.230504
0.188201
0.178489
0.13741
0
0.022534
0.32716
25,920
633
148
40.947867
0.774484
0.044715
0
0.329806
0
0
0.159831
0.001507
0
0
0
0
0
0
null
null
0.001764
0.024691
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
db7142a93660069f7ece3119616712a0be1f26e1
360
py
Python
examples/max_min.py
csunny/algorithm
51ac81377c8baec0183976a387281e78b7f2192d
[ "MIT" ]
21
2018-08-15T14:09:03.000Z
2022-01-10T02:03:55.000Z
examples/max_min.py
Valuebai/algorithm
51ac81377c8baec0183976a387281e78b7f2192d
[ "MIT" ]
1
2019-05-29T08:33:14.000Z
2019-05-29T08:33:14.000Z
examples/max_min.py
Valuebai/algorithm
51ac81377c8baec0183976a387281e78b7f2192d
[ "MIT" ]
7
2018-11-13T06:01:34.000Z
2021-01-25T06:50:47.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- def max_min(v): m_min, m_max = min(v[0], v[-1]), max(v[0], v[-1]) for i in v[1:len(v)-1]: if i<m_min: m_min = i elif i > m_max: m_max = i return m_min, m_max if __name__ == '__main__': m_min, m_max = max_min([9, ...
21.176471
53
0.486111
72
360
2.125
0.402778
0.156863
0.163399
0.20915
0
0
0
0
0
0
0
0.053279
0.322222
360
16
54
22.5
0.57377
0.113889
0
0
0
0
0.025237
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.181818
0.090909
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
db748f547d923be813750cccc08baa19078ca6e1
767
py
Python
var/spack/repos/builtin/packages/damageproto/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/damageproto/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/damageproto/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Damageproto(AutotoolsPackage): """X Damage Extension. This package contains header fi...
34.863636
95
0.745763
95
767
6
0.747368
0.024561
0.05614
0
0
0
0
0
0
0
0
0.088415
0.14472
767
21
96
36.52381
0.780488
0.444589
0
0
0
0.142857
0.533007
0.156479
0
0
0
0
0
1
0
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
db752632034b9a9ea0f7c190cc3779f81422de6f
1,268
py
Python
bootstrapvz/common/tasks/partitioning.py
null0000/bootstrap-vz
003cdd9808bac90383b4c46738507bd7e1daa268
[ "Apache-2.0" ]
null
null
null
bootstrapvz/common/tasks/partitioning.py
null0000/bootstrap-vz
003cdd9808bac90383b4c46738507bd7e1daa268
[ "Apache-2.0" ]
null
null
null
bootstrapvz/common/tasks/partitioning.py
null0000/bootstrap-vz
003cdd9808bac90383b4c46738507bd7e1daa268
[ "Apache-2.0" ]
null
null
null
from bootstrapvz.base import Task from bootstrapvz.common import phases import filesystem import host import volume class AddRequiredCommands(Task): description = 'Adding commands required for partitioning the volume' phase = phases.preparation successors = [host.CheckExternalCommands] @classmethod def run(cls,...
25.36
69
0.7847
145
1,268
6.8
0.365517
0.070994
0.068966
0.081136
0.229209
0.139959
0.139959
0.139959
0.139959
0
0
0
0.123028
1,268
49
70
25.877551
0.886691
0
0
0.27027
0
0
0.124606
0
0
0
0
0
0
1
0.108108
false
0
0.162162
0
0.72973
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
db754fd368facd36583a78d3bae80b87f5c3b87a
3,872
py
Python
lc0705_design_hashset.py
bowen0701/python-algorithms-data-structures
e625f59a9fc59e4728825078d4434a7968a724e5
[ "BSD-2-Clause" ]
8
2019-03-18T06:37:24.000Z
2022-01-30T07:50:58.000Z
lc0705_design_hashset.py
bowen0701/python-algorithms-data-structures
e625f59a9fc59e4728825078d4434a7968a724e5
[ "BSD-2-Clause" ]
null
null
null
lc0705_design_hashset.py
bowen0701/python-algorithms-data-structures
e625f59a9fc59e4728825078d4434a7968a724e5
[ "BSD-2-Clause" ]
null
null
null
"""Leetcode 705. Design HashSet Easy URL: https://leetcode.com/problems/design-hashset/ Design a HashSet without using any built-in hash table libraries. To be specific, your design should include these functions: - add(value): Insert a value into the HashSet. - contains(value) : Return whether the value exists in...
27.267606
74
0.528667
487
3,872
4.13347
0.277207
0.048684
0.035768
0.023845
0.262295
0.240934
0.181321
0.091903
0.046696
0.046696
0
0.02
0.367252
3,872
141
75
27.460993
0.801633
0.099948
0
0.35
0
0
0.003837
0
0
0
0
0
0
0
null
null
0
0
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
db75f952e504fbfb7acab4156f8f35124b3ce581
5,735
py
Python
microquake/plugin/site/core.py
jeanphilippemercier/microquake
0b9d07be11eddd64619e46939c320487531602a3
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
microquake/plugin/site/core.py
jeanphilippemercier/microquake
0b9d07be11eddd64619e46939c320487531602a3
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
microquake/plugin/site/core.py
jeanphilippemercier/microquake
0b9d07be11eddd64619e46939c320487531602a3
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------ # Filename: core.py # Purpose: plugin for reading and writing Site object into various format # Author: microquake development team # Email: devs@microquake.org # # Copyright (C) 2016 microquake development team # -------...
33.150289
87
0.585179
721
5,735
4.628294
0.263523
0.03596
0.021576
0.037459
0.339527
0.321546
0.321546
0.280791
0.271801
0.271801
0
0.01194
0.299041
5,735
172
88
33.343023
0.818159
0.498169
0
0.149254
0
0
0.035701
0.010749
0
0
0
0.011628
0
1
0.074627
false
0.029851
0.074627
0
0.208955
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
db766bd66fd9ddc7dc2f3ef76d6516cfc94a8013
1,255
py
Python
web/main.py
kingwarluo/xmind2testlink
3cf92689da6ced68c84d2cd27754bdfc57ca839d
[ "MIT" ]
null
null
null
web/main.py
kingwarluo/xmind2testlink
3cf92689da6ced68c84d2cd27754bdfc57ca839d
[ "MIT" ]
null
null
null
web/main.py
kingwarluo/xmind2testlink
3cf92689da6ced68c84d2cd27754bdfc57ca839d
[ "MIT" ]
null
null
null
""" A tool to parse xmind file into testlink xml file, which will help you generate a testlink recognized xml file, then you can import it into testlink as test suites. Usage: xmind2testlink [path_to_xmind_file] [-json] Example: xmind2testlink C:\\tests\\testcase.xmind => output xml xmind2testlink C:\\tests\...
24.134615
67
0.67251
188
1,255
4.223404
0.351064
0.079345
0.056675
0.070529
0.130982
0
0
0
0
0
0
0.012097
0.209562
1,255
52
68
24.134615
0.788306
0.277291
0
0.076923
1
0
0.051397
0
0
0
0
0
0
1
0.115385
false
0
0.153846
0
0.346154
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
db776118166496e4e3b469f4a3a4469b03d62a5e
13,101
py
Python
pySRUP/Python/tests/syndicated_c2_request_test.py
AJPoulter-Soton/srup
cf11354ae3c7606d3ce163048d12eaf829bc593f
[ "MIT" ]
7
2017-12-15T13:34:36.000Z
2021-07-23T11:29:28.000Z
pySRUP/Python/tests/syndicated_c2_request_test.py
AJPoulter-Soton/srup
cf11354ae3c7606d3ce163048d12eaf829bc593f
[ "MIT" ]
2
2019-02-22T15:03:36.000Z
2021-03-03T11:30:24.000Z
pySRUP/Python/tests/syndicated_c2_request_test.py
AJPoulter-Soton/srup
cf11354ae3c7606d3ce163048d12eaf829bc593f
[ "MIT" ]
8
2016-07-07T15:43:01.000Z
2021-08-04T07:21:22.000Z
import sys sys.path.append('../../../') import pytest import pySRUPLib keyfile = "private_key.pem" pubkeyfile = "public_key.pem" # The main test script for pySRUPLib's SRUP_Syndicated_C2_Request() class... def test_c2_req_type(): x = pySRUPLib.SRUP_Syndicated_C2_Request() assert x.msg_type == pySRUPLib.__s...
23.478495
115
0.68178
1,881
13,101
4.471026
0.074429
0.056599
0.070392
0.082045
0.814744
0.629132
0.589655
0.49132
0.423068
0.346968
0
0.071969
0.233188
13,101
557
116
23.520646
0.76518
0.005648
0
0.477273
0
0
0.02833
0.006449
0
0
0.054203
0
0.247475
1
0.065657
false
0
0.007576
0
0.073232
0
0
0
0
null
0
0
0
1
0
0
0
0
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