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
b5d4900360e40cd1acd6461d88b40e33b1aeb9c0
256
py
Python
src/anyconfig/ioinfo/constants.py
ssato/python-anyconfig
09af1950f3226759932f5168d52f5e06ab88815c
[ "MIT" ]
213
2015-01-14T22:09:20.000Z
2022-02-02T17:23:41.000Z
src/anyconfig/ioinfo/constants.py
ssato/python-anyconfig
09af1950f3226759932f5168d52f5e06ab88815c
[ "MIT" ]
120
2015-03-13T15:47:43.000Z
2022-03-31T01:55:34.000Z
src/anyconfig/ioinfo/constants.py
ssato/python-anyconfig
09af1950f3226759932f5168d52f5e06ab88815c
[ "MIT" ]
34
2015-01-12T05:03:30.000Z
2021-09-09T14:40:56.000Z
# # Copyright (C) 2018 - 2021 Satoru SATOH <satoru.satoh @ gmmail.com> # SPDX-License-Identifier: MIT # r"""ioinfo.constants to provide global constant variables. """ import os.path GLOB_MARKER: str = '*' PATH_SEP: str = os.path.sep # vim:sw=4:ts=4:et:
18.285714
68
0.695313
40
256
4.4
0.8
0.125
0
0
0
0
0
0
0
0
0
0.045872
0.148438
256
13
69
19.692308
0.761468
0.660156
0
0
0
0
0.013158
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
b5da8db87fce84547f58661153b2debbf9d4b1c0
446
py
Python
com/shbak/effective_python/_99_etc/_03_locals_globals/main.py
sanghyunbak/effective_python
e35d880c47e988607e4a11aa6eb6b62ae887688a
[ "Apache-2.0" ]
null
null
null
com/shbak/effective_python/_99_etc/_03_locals_globals/main.py
sanghyunbak/effective_python
e35d880c47e988607e4a11aa6eb6b62ae887688a
[ "Apache-2.0" ]
null
null
null
com/shbak/effective_python/_99_etc/_03_locals_globals/main.py
sanghyunbak/effective_python
e35d880c47e988607e4a11aa6eb6b62ae887688a
[ "Apache-2.0" ]
null
null
null
import timeit from termcolor import colored G_VAR = 1 G_VAR2 = 2 def global_test(): return 1 def benchmark_globals(): def sum_test(): return G_VAR + 3 result = timeit.timeit( setup='G_VAR2', stmt='global_test()', globals=globals(), number=3 ) # locals = ...
14.866667
44
0.589686
55
446
4.472727
0.563636
0.03252
0
0
0
0
0
0
0
0
0
0.021944
0.284753
446
30
45
14.866667
0.749216
0.065022
0
0
0
0
0.106024
0
0
0
0
0
0
1
0.166667
false
0
0.111111
0.111111
0.388889
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
b5e045553e2d5fe153f01456743d0c5e20ba7242
954
py
Python
apt.py
henworth/dotbot-apt
d24d1d1de2dd24239576ec818a7ecfe755a1d1fb
[ "Apache-2.0" ]
null
null
null
apt.py
henworth/dotbot-apt
d24d1d1de2dd24239576ec818a7ecfe755a1d1fb
[ "Apache-2.0" ]
null
null
null
apt.py
henworth/dotbot-apt
d24d1d1de2dd24239576ec818a7ecfe755a1d1fb
[ "Apache-2.0" ]
null
null
null
from subprocess import CalledProcessError, check_call, DEVNULL from typing import Any, List, Sequence import dotbot class Apt(dotbot.Plugin): def can_handle(self, directive: str) -> bool: return directive == "apt" def handle(self, directive: str, packages: List[str]) -> bool: success = self....
32.896552
94
0.596436
107
954
5.214953
0.495327
0.037634
0.0681
0.078853
0
0
0
0
0
0
0
0
0.283019
954
28
95
34.071429
0.815789
0
0
0
0
0
0.1174
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.047619
0.52381
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
b5e50e39e3f331b9ae6f0c940c6f25c996a9b8c2
177
py
Python
Python3/Exercises/UnluckyNumbers/unlucky_numbers.py
norbertosanchezdichi/TIL
2e9719ddd288022f53b094a42679e849bdbcc625
[ "MIT" ]
null
null
null
Python3/Exercises/UnluckyNumbers/unlucky_numbers.py
norbertosanchezdichi/TIL
2e9719ddd288022f53b094a42679e849bdbcc625
[ "MIT" ]
null
null
null
Python3/Exercises/UnluckyNumbers/unlucky_numbers.py
norbertosanchezdichi/TIL
2e9719ddd288022f53b094a42679e849bdbcc625
[ "MIT" ]
null
null
null
for number in range(1, 21): if number == 4 or number == 13: state = 'UNLUCKY' elif number % 2 == 0: state = 'EVEN' else: state = 'ODD' print(f'{number} is {state}!')
17.7
32
0.576271
28
177
3.642857
0.75
0
0
0
0
0
0
0
0
0
0
0.059701
0.242938
177
10
33
17.7
0.701493
0
0
0
0
0
0.191011
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
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
b5e6404dc021e5128989637f60b35665afcd9ad6
6,249
py
Python
xcube_hub/models/cubegen_config_cube_config.py
bcdev/xcube-hub
8eab0fccd340aa487560a41ae7c59dedb0cb08a8
[ "MIT" ]
3
2021-03-08T09:47:23.000Z
2021-09-13T04:53:42.000Z
xcube_hub/models/cubegen_config_cube_config.py
bcdev/xcube-hub
8eab0fccd340aa487560a41ae7c59dedb0cb08a8
[ "MIT" ]
9
2021-06-23T15:33:04.000Z
2022-03-30T08:30:17.000Z
xcube_hub/models/cubegen_config_cube_config.py
bcdev/xcube-hub
8eab0fccd340aa487560a41ae7c59dedb0cb08a8
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from xcube_hub.models.base_model_ import Model from xcube_hub import util class CubegenConfigCubeConfig(Model): """NOTE: This class is auto generated by OpenAPI G...
30.188406
132
0.632741
717
6,249
5.329149
0.11855
0.048678
0.235279
0.060455
0.606909
0.442031
0.300445
0.15755
0.121434
0
0
0.010945
0.283565
6,249
206
133
30.334951
0.842528
0.432389
0
0.225
0
0
0.157965
0.007649
0
0
0
0
0
1
0.175
false
0
0.0625
0
0.3375
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b5ee6e5a237c9f75bf583571d67cd493cc03a0ac
1,457
py
Python
tests/test_area.py
irahorecka/python-craigslist-meta
069b0b85971b20f8ea20a1e8868b4614c180ebce
[ "MIT" ]
1
2021-04-07T23:40:15.000Z
2021-04-07T23:40:15.000Z
tests/test_area.py
irahorecka/python-craigslist-meta
069b0b85971b20f8ea20a1e8868b4614c180ebce
[ "MIT" ]
1
2021-02-25T21:14:05.000Z
2021-02-26T08:53:50.000Z
tests/test_area.py
irahorecka/python-craigslist-meta
069b0b85971b20f8ea20a1e8868b4614c180ebce
[ "MIT" ]
null
null
null
import pytest from fixtures import get_title, get_url from craigslist_meta import Site selector = "area" # use a site key with areas site_key = "sfbay" @pytest.fixture def area(): """Get an instance of Area.""" area = next(iter(Site(site_key))) global area_key area_key = area.key yield area def...
26.490909
90
0.693205
204
1,457
4.784314
0.22549
0.050205
0.030738
0.070697
0.39959
0.293033
0.293033
0.293033
0.293033
0.293033
0
0
0.194235
1,457
54
91
26.981481
0.831346
0.231984
0
0
0
0
0.113573
0
0
0
0
0
0.096774
1
0.225806
false
0
0.096774
0
0.322581
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
b5f1aed4b2dcddb16b3e137b5ee86cf5e76186a9
778
py
Python
deploy/slice.py
lebedevdes/insightface
dcefb725d65d0e66686e556390839835987fe4f4
[ "MIT" ]
null
null
null
deploy/slice.py
lebedevdes/insightface
dcefb725d65d0e66686e556390839835987fe4f4
[ "MIT" ]
null
null
null
deploy/slice.py
lebedevdes/insightface
dcefb725d65d0e66686e556390839835987fe4f4
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys import os import argparse import numpy as np import mxnet as mx ctx = mx.cpu(0) image_size = (112, 112) prefix = "../models/resnet-50" epoch = 0 sym, arg_params, aux_params = mx.model.load_checkpoi...
24.3125
68
0.691517
116
778
4.387931
0.577586
0.070727
0.094303
0.051081
0.086444
0.086444
0
0
0
0
0
0.033228
0.187661
778
31
69
25.096774
0.772152
0
0
0
0
0
0.068123
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b5f66771b67e552c0a93bb46731376b2dfe39080
509
py
Python
mid_exam_preparation/counter_strike.py
PetkoAndreev/Python-fundamentals
dcf2ecb65d7a82a6688a7529a14eb8a331a83256
[ "MIT" ]
null
null
null
mid_exam_preparation/counter_strike.py
PetkoAndreev/Python-fundamentals
dcf2ecb65d7a82a6688a7529a14eb8a331a83256
[ "MIT" ]
null
null
null
mid_exam_preparation/counter_strike.py
PetkoAndreev/Python-fundamentals
dcf2ecb65d7a82a6688a7529a14eb8a331a83256
[ "MIT" ]
null
null
null
energy = int(input()) distance = input() won_battles = 0 while distance != 'End of battle': distance = int(distance) if energy >= distance: energy -= distance won_battles += 1 if won_battles % 3 == 0: energy += won_battles else: print(f'Not enough energy! Game en...
28.277778
97
0.611002
65
509
4.692308
0.384615
0.262295
0.085246
0.12459
0
0
0
0
0
0
0
0.010811
0.273084
509
18
98
28.277778
0.813514
0
0
0.125
0
0
0.301961
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b5f9485af914a984e5356f07ea7464062e20036e
737
py
Python
src/distance.py
haminhle192/face_recognition
e222b56f56e992031c02e05e6f02091937c2fbbe
[ "Apache-2.0" ]
null
null
null
src/distance.py
haminhle192/face_recognition
e222b56f56e992031c02e05e6f02091937c2fbbe
[ "Apache-2.0" ]
6
2020-01-28T22:40:14.000Z
2022-02-10T00:22:43.000Z
src/distance.py
haminhle192/face_recognition
e222b56f56e992031c02e05e6f02091937c2fbbe
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf class Distance: def __init__(self): self.graph = tf.Graph() self.sess = tf.Session(graph=self.graph) with self.graph.as_default(): self.b_tf = t...
33.5
126
0.668928
113
737
4.061947
0.39823
0.034858
0.104575
0.087146
0.196078
0.196078
0.196078
0.196078
0.196078
0.196078
0
0.020443
0.203528
737
21
127
35.095238
0.761499
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0.25
0.0625
0.5625
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b5fa987abf9c042394bd1c086d2568f00c6c0c9e
746
py
Python
tests/test_api.py
usc-isi-i2/WEDC
cf48355d8a5c6616fb34be9932520875e218d2c4
[ "Apache-2.0" ]
null
null
null
tests/test_api.py
usc-isi-i2/WEDC
cf48355d8a5c6616fb34be9932520875e218d2c4
[ "Apache-2.0" ]
null
null
null
tests/test_api.py
usc-isi-i2/WEDC
cf48355d8a5c6616fb34be9932520875e218d2c4
[ "Apache-2.0" ]
null
null
null
import sys import time import os import unittest sys.path.append(os.path.join(os.path.dirname(__file__), '..')) TEST_DATA_DIR = os.path.join(os.path.dirname(__file__), 'data') # text_ = os.path.expanduser(os.path.join(TEST_DATA_DIR, 'text')) from wedc.application.api import WEDC class TestPostVectorMethods(unittest...
20.722222
65
0.671582
94
746
5.053191
0.414894
0.075789
0.063158
0.050526
0.113684
0.113684
0.113684
0
0
0
0
0
0.19571
746
35
66
21.314286
0.791667
0.105898
0
0
0
0
0.049924
0
0
0
0
0
0
0
null
null
0.047619
0.238095
null
null
0.047619
0
0
0
null
0
0
0
0
0
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
bd019ce7f19268c861c3a33274de0ba42eb51848
7,909
py
Python
tool_sdk/api/basic/batch_get_tool_detail_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
tool_sdk/api/basic/batch_get_tool_detail_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
tool_sdk/api/basic/batch_get_tool_detail_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: batch_get_tool_detail.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 googl...
40.558974
659
0.766974
927
7,909
6.240561
0.162891
0.041487
0.047191
0.031115
0.562316
0.539844
0.494382
0.494382
0.488678
0.483146
0
0.035138
0.114806
7,909
194
660
40.768041
0.791173
0.051334
0
0.63253
1
0.006024
0.219776
0.194689
0
0
0
0
0
1
0
false
0
0.036145
0
0.036145
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
bd0505286b2cc0911af68a92d3cfcb9385176496
423
py
Python
tests/utils/requires.py
RealA10N/cptk
e500d948e91bb70661adc3c2539b149704c734a1
[ "Apache-2.0" ]
5
2021-12-25T01:49:45.000Z
2022-03-27T10:30:14.000Z
tests/utils/requires.py
RealA10N/cptk
e500d948e91bb70661adc3c2539b149704c734a1
[ "Apache-2.0" ]
39
2021-12-24T16:35:07.000Z
2022-03-18T23:15:14.000Z
tests/utils/requires.py
RealA10N/cptk
e500d948e91bb70661adc3c2539b149704c734a1
[ "Apache-2.0" ]
2
2022-01-12T19:13:20.000Z
2022-01-12T19:32:05.000Z
from __future__ import annotations from shutil import which import pytest def requires(name: str): """ A decorator for pytest tests that skips the test if a program with the given name is not found of the machine. """ def decorator(f): dec = pytest.mark.skipif( which(name) is None, ...
21.15
78
0.635934
58
423
4.568966
0.62069
0.045283
0
0
0
0
0
0
0
0
0
0
0.29078
423
19
79
22.263158
0.883333
0.260047
0
0
0
0
0.083056
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0
0.636364
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
bd13989a94e1f0e1ae8853c367b8b5c0caf71621
2,429
py
Python
Products_infos_Functions.py
AndreVinni89/MercadoLivre_WebScraping
cfe69dafe9ebea6a7d8a2c15384d28a0461b3629
[ "MIT" ]
null
null
null
Products_infos_Functions.py
AndreVinni89/MercadoLivre_WebScraping
cfe69dafe9ebea6a7d8a2c15384d28a0461b3629
[ "MIT" ]
1
2020-06-22T15:11:57.000Z
2020-06-22T15:11:57.000Z
Products_infos_Functions.py
AndreVinni89/MercadoLivre_WebScraping
cfe69dafe9ebea6a7d8a2c15384d28a0461b3629
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup as bs import re import mysql.connector class Products_Infos(): def __init__(self, products): self.products = products self.productInfos = [] def insertSpaces(self): for i in self.products: self.productInfos.append([]) def get_product_lin...
29.26506
106
0.523672
262
2,429
4.687023
0.263359
0.130293
0.130293
0.169381
0.299674
0.143322
0.143322
0.114821
0.076547
0
0
0.011905
0.377522
2,429
82
107
29.621951
0.800265
0
0
0.4375
0
0
0.079489
0
0
0
0
0
0
1
0.109375
false
0
0.046875
0
0.171875
0.046875
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
bd2d199435f1f92de72f6658c3b29b900f54928e
268
py
Python
lego/apps/tags/validators.py
HoboKristian/lego
2729dcef770ad1105f53e087c07ece3f9e9dbc67
[ "MIT" ]
null
null
null
lego/apps/tags/validators.py
HoboKristian/lego
2729dcef770ad1105f53e087c07ece3f9e9dbc67
[ "MIT" ]
2
2021-02-02T23:09:32.000Z
2021-06-10T23:43:39.000Z
lego/apps/tags/validators.py
HoboKristian/lego
2729dcef770ad1105f53e087c07ece3f9e9dbc67
[ "MIT" ]
null
null
null
from django.core.validators import RegexValidator, _lazy_re_compile slug_re = _lazy_re_compile(r"^[-a-z0-9æøå_.#%$&/]+\Z") validate_tag = RegexValidator( slug_re, "Enter a valid 'tag' consisting of letters, numbers, underscores or hyphens.", "invalid", )
29.777778
82
0.720149
36
268
5.083333
0.75
0.065574
0.142077
0
0
0
0
0
0
0
0
0.008696
0.141791
268
8
83
33.5
0.786957
0
0
0
0
0
0.391791
0.085821
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bd3450764332ff75e0380a79c97f71af3da09afc
1,495
py
Python
tests/unit/providers/traversal/test_selector_py3.py
YelloFam/python-dependency-injector
541131e33858ee1b8b5a7590d2bb9f929740ea1e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/providers/traversal/test_selector_py3.py
YelloFam/python-dependency-injector
541131e33858ee1b8b5a7590d2bb9f929740ea1e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/providers/traversal/test_selector_py3.py
YelloFam/python-dependency-injector
541131e33858ee1b8b5a7590d2bb9f929740ea1e
[ "BSD-3-Clause" ]
null
null
null
"""Selector provider traversal tests.""" from dependency_injector import providers def test_traverse(): switch = lambda: "provider1" provider1 = providers.Callable(list) provider2 = providers.Callable(dict) provider = providers.Selector( switch, provider1=provider1, provider2...
24.916667
76
0.705017
155
1,495
6.670968
0.180645
0.162476
0.108317
0.096712
0.726306
0.691489
0.691489
0.691489
0.633462
0.633462
0
0.028936
0.214047
1,495
59
77
25.338983
0.851064
0.022742
0
0.642857
0
0
0.024742
0
0
0
0
0
0.261905
1
0.071429
false
0
0.02381
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bd36a96c988b4c65d83569693498f4ff7768d9b0
1,014
py
Python
messaging/serializers.py
jpaul121/Banter
6b7c6dae6ac171605c91a58a65fccdd03dcdd295
[ "MIT" ]
null
null
null
messaging/serializers.py
jpaul121/Banter
6b7c6dae6ac171605c91a58a65fccdd03dcdd295
[ "MIT" ]
null
null
null
messaging/serializers.py
jpaul121/Banter
6b7c6dae6ac171605c91a58a65fccdd03dcdd295
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from rest_framework import serializers from .models import Message class MessageSerializer(serializers.ModelSerializer): message_id = serializers.SlugField(source='id', read_only=True, required=False) title = serializers.CharField(required=False) content = serializers...
31.6875
85
0.719921
109
1,014
6.587156
0.394495
0.090529
0.033426
0
0
0
0
0
0
0
0
0
0.157791
1,014
31
86
32.709677
0.840749
0
0
0
0
0
0.100592
0
0
0
0
0
0
1
0.04
false
0
0.12
0
0.52
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
bd378d0d247ab5a858b6748e6bdf842fb7bb85cf
3,276
py
Python
Tools/Scripts/webkitpy/tool/steps/promptforbugortitle.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/tool/steps/promptforbugortitle.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/tool/steps/promptforbugortitle.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2010 Google Inc. 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 of source code must retain the above copyright # notice, this list of conditions and the ...
43.105263
140
0.684982
447
3,276
4.964206
0.467562
0.01352
0.015322
0.02073
0.08292
0.061289
0.061289
0.061289
0.061289
0.061289
0
0.002846
0.249084
3,276
75
141
43.68
0.899187
0.532051
0
0.114286
0
0
0.126667
0
0
0
0
0.013333
0
1
0.057143
false
0.028571
0.171429
0.028571
0.342857
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
bd383b388adb52a1c9431371000f06387e777416
3,393
py
Python
Reservoirs/Task1bis_Non-Periodic-Delay/task1bis.py
grezesf/Research
10b7de860f9caf9275ac23c4b4fce51150af5f7f
[ "MIT" ]
1
2022-03-02T11:46:33.000Z
2022-03-02T11:46:33.000Z
Reservoirs/Task1bis_Non-Periodic-Delay/task1bis.py
grezesf/Research
10b7de860f9caf9275ac23c4b4fce51150af5f7f
[ "MIT" ]
null
null
null
Reservoirs/Task1bis_Non-Periodic-Delay/task1bis.py
grezesf/Research
10b7de860f9caf9275ac23c4b4fce51150af5f7f
[ "MIT" ]
null
null
null
import mdp import Oger import numpy import pylab import random import math ### README # the goal is to teach the reservoir to recreate the input signal with a certain delay def main(): ### Create/Load dataset set_size=200 data_length=100 delay=25 [x, y] = gen_random_data(set_size, data_length, d...
25.900763
99
0.638373
527
3,393
3.990512
0.240987
0.062767
0.073229
0.08369
0.326201
0.29339
0.291488
0.254398
0.200666
0.141702
0
0.029726
0.226643
3,393
131
100
25.900763
0.771723
0.378721
0
0.076923
0
0
0.017057
0
0
0
0
0
0
0
null
null
0
0.115385
null
null
0.096154
0
0
0
null
0
0
0
0
0
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
bd3f832a2302e9e9c22a91fb3eb92452feebe512
968
py
Python
fix_network.py
gauthamv529/Neurohex
5e2b2240d22457e7f3356f661e251a07973c0358
[ "MIT" ]
null
null
null
fix_network.py
gauthamv529/Neurohex
5e2b2240d22457e7f3356f661e251a07973c0358
[ "MIT" ]
null
null
null
fix_network.py
gauthamv529/Neurohex
5e2b2240d22457e7f3356f661e251a07973c0358
[ "MIT" ]
null
null
null
import cPickle import argparse from inputFormat import * from network import network from theano import tensor as T parser = argparse.ArgumentParser() parser.add_argument("source", type=str, help="Pickled network to steal params from.") parser.add_argument("dest", type=str, help="File to place new network in.") parse...
27.657143
85
0.734504
144
968
4.826389
0.465278
0.038849
0.073381
0.040288
0
0
0
0
0
0
0
0
0.129132
968
35
86
27.657143
0.824437
0
0
0.068966
0
0
0.198142
0
0
0
0
0
0
0
null
null
0
0.172414
null
null
0.103448
0
0
0
null
0
0
0
0
0
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
bd4a227e466fbbd2d79a0fc0e9949c7db2627faa
8,838
py
Python
sock.py
danielgweb/Developer-Test
d9b3a92905217f30f629f4fbbaf68ac519594617
[ "Unlicense" ]
null
null
null
sock.py
danielgweb/Developer-Test
d9b3a92905217f30f629f4fbbaf68ac519594617
[ "Unlicense" ]
null
null
null
sock.py
danielgweb/Developer-Test
d9b3a92905217f30f629f4fbbaf68ac519594617
[ "Unlicense" ]
null
null
null
#!/usr/bin/python # coding: utf-8 # imports import socket import sys import hashlib import binascii import collections # classes class SockClient(object): """SockClient for handling the connection to the server""" def __init__(self): # Creates a TCP/IP socket try: self.client = so...
34.523438
118
0.562344
1,029
8,838
4.707483
0.17104
0.040875
0.023534
0.029521
0.39678
0.3782
0.320396
0.258877
0.240091
0.232659
0
0.022574
0.313306
8,838
255
119
34.658824
0.775581
0.026929
0
0.33871
0
0.032258
0.132856
0
0
0
0.00129
0
0
0
null
null
0
0.026882
null
null
0.225806
0
0
0
null
0
0
0
0
0
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
bd4cad5dce6d73787a4385283f064aa06c0016ea
2,398
py
Python
subscriptions/models.py
Sukriva/open-city-profile
8c8df883457b9c79534dc9f7b57d556143362229
[ "MIT" ]
5
2020-03-17T15:56:17.000Z
2022-01-31T13:43:31.000Z
subscriptions/models.py
Sukriva/open-city-profile
8c8df883457b9c79534dc9f7b57d556143362229
[ "MIT" ]
337
2018-05-21T08:35:05.000Z
2022-03-14T07:38:15.000Z
subscriptions/models.py
Sukriva/open-city-profile
8c8df883457b9c79534dc9f7b57d556143362229
[ "MIT" ]
10
2019-08-05T08:16:06.000Z
2021-08-06T15:08:44.000Z
from adminsortable.models import SortableMixin from django.db import models from django.db.models import Max from parler.models import TranslatableModel, TranslatedFields from utils.models import SerializableMixin def get_next_subscription_type_category_order(): order_max = SubscriptionTypeCategory.objects.aggre...
33.305556
88
0.72769
270
2,398
6.207407
0.281481
0.076372
0.045346
0.054893
0.556086
0.5358
0.490453
0.436754
0.411695
0.411695
0
0.007046
0.171393
2,398
71
89
33.774648
0.836437
0
0
0.37037
0
0
0.091326
0.01251
0
0
0
0
0
1
0.092593
false
0
0.092593
0.055556
0.62963
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
bd552a65ea112a8d2ebcd93e84bf89ab8f2373b2
2,501
py
Python
RevitPyCVC/Fluides/fluide_creer.py
Nahouhak/pythoncvc.net
c860c8b656e94b5e9cbe45eda055e4b8a0414a84
[ "MIT" ]
6
2018-12-06T07:30:35.000Z
2020-11-19T13:16:29.000Z
RevitPyCVC/Fluides/fluide_creer.py
CyrilWaechter/pythoncvc.net
c860c8b656e94b5e9cbe45eda055e4b8a0414a84
[ "MIT" ]
2
2016-10-01T22:34:10.000Z
2017-03-11T10:08:46.000Z
RevitPyCVC/Fluides/fluide_creer.py
Nahouhak/pythoncvc.net
c860c8b656e94b5e9cbe45eda055e4b8a0414a84
[ "MIT" ]
9
2019-07-28T08:14:11.000Z
2022-01-24T22:20:37.000Z
from Autodesk.Revit.DB import * from Autodesk.Revit.DB.Architecture import * from Autodesk.Revit.DB.Analysis import * from Autodesk.Revit.DB.Plumbing import * from Autodesk.Revit.Exceptions import * from Autodesk.Revit.UI import TaskDialog from Autodesk.Revit.UI import TaskDialogCommonButtons from Autodesk.Revit.UI im...
42.389831
207
0.796481
333
2,501
5.876877
0.414414
0.049055
0.069494
0.058763
0.284108
0.20746
0.162494
0.162494
0.162494
0.031681
0
0.009901
0.111555
2,501
58
208
43.12069
0.870387
0.178729
0
0.26087
0
0
0.121212
0.026882
0
0
0
0
0
0
null
null
0.021739
0.195652
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
1f9abb887e301d2c824c0efceb3c2e103f823f41
1,146
py
Python
files.py
VergilTheHuragok/SciFi_Text_Adventure_Python
0eced7f2e76382e38e7c6f83dbabbcfac4e2b0f8
[ "MIT" ]
null
null
null
files.py
VergilTheHuragok/SciFi_Text_Adventure_Python
0eced7f2e76382e38e7c6f83dbabbcfac4e2b0f8
[ "MIT" ]
null
null
null
files.py
VergilTheHuragok/SciFi_Text_Adventure_Python
0eced7f2e76382e38e7c6f83dbabbcfac4e2b0f8
[ "MIT" ]
null
null
null
import base64 import jsonpickle from cryptography.fernet import Fernet key = b'\xdb3\x06ht\xd5_\x98\x0c\xee\x100{\xcf=\xe6\x07G|hl\x1bq\x15ah\xdf\ \xc1|5\xf4\xc0' key = base64.urlsafe_b64encode(key) def decrypt(bytes_message): """Takes an encrypted bytes object and returns a decrypted one""" cipher = Fern...
20.836364
75
0.673647
165
1,146
4.618182
0.4
0.035433
0.049869
0.057743
0.070866
0
0
0
0
0
0
0.029476
0.200698
1,146
54
76
21.222222
0.802402
0.233857
0
0.137931
0
0.034483
0.009445
0
0
0
0
0
0
1
0.206897
false
0
0.103448
0
0.482759
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
1fa931dad47eb59fce13292ea036ec94d73284dd
3,027
py
Python
nf_core/lint/actions_awsfulltest.py
aunderwo/tools
dbfc6d8a7afcd7577a021b80e84ed9567ed0a3da
[ "MIT" ]
null
null
null
nf_core/lint/actions_awsfulltest.py
aunderwo/tools
dbfc6d8a7afcd7577a021b80e84ed9567ed0a3da
[ "MIT" ]
null
null
null
nf_core/lint/actions_awsfulltest.py
aunderwo/tools
dbfc6d8a7afcd7577a021b80e84ed9567ed0a3da
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import yaml def actions_awsfulltest(self): """Checks the GitHub Actions awsfulltest is valid. In addition to small test datasets run on GitHub Actions, we provide the possibility of testing the pipeline on full size datasets on AWS. This should ensure that the pipeline ru...
47.296875
161
0.648827
397
3,027
4.90932
0.367758
0.050282
0.080041
0.089277
0.13648
0.09492
0
0
0
0
0
0
0.237529
3,027
63
162
48.047619
0.844454
0.481665
0
0.225806
0
0
0.331565
0.092838
0
0
0
0
0.225806
1
0.032258
false
0.129032
0.064516
0
0.16129
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
1fa9effc0eaab0b4a2af055c3be110f703bcff7a
2,505
py
Python
compiler_gym/util/commands.py
thecoblack/CompilerGym
ade54e2f1829cf41722decb0942a4d6fd3102c2c
[ "MIT" ]
null
null
null
compiler_gym/util/commands.py
thecoblack/CompilerGym
ade54e2f1829cf41722decb0942a4d6fd3102c2c
[ "MIT" ]
null
null
null
compiler_gym/util/commands.py
thecoblack/CompilerGym
ade54e2f1829cf41722decb0942a4d6fd3102c2c
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import subprocess import sys from contextlib import contextmanager from signal import Signals from subprocess import Popen as _Popen from typi...
34.791667
84
0.59002
276
2,505
5.333333
0.434783
0.048913
0.050951
0.043478
0.30231
0.267663
0.267663
0.267663
0.267663
0.267663
0
0.007105
0.325749
2,505
71
85
35.28169
0.864417
0.253493
0
0.372549
0
0
0.080671
0.017867
0
0
0
0
0
1
0.058824
false
0.058824
0.117647
0
0.215686
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
1fb6138a4965b46acc5dce5363722c67aa83de8a
1,838
py
Python
python101/Count_Extract_xml_attribute.py
geraudazangue/Python_Projects
8db1aec617c5ea7ece36c674cbf76674146afaa8
[ "MIT" ]
null
null
null
python101/Count_Extract_xml_attribute.py
geraudazangue/Python_Projects
8db1aec617c5ea7ece36c674cbf76674146afaa8
[ "MIT" ]
null
null
null
python101/Count_Extract_xml_attribute.py
geraudazangue/Python_Projects
8db1aec617c5ea7ece36c674cbf76674146afaa8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat May 18 23:47:15 2019 @author: Geraud AZANGUE """ import glob import os import os.path from pathlib import Path from lxml import etree import pandas as pd from datetime import datetime import logging import time start_time = time.time() logging.basicConfig(filename='app.log',...
32.245614
142
0.634385
272
1,838
4.165441
0.426471
0.028244
0.029126
0.042365
0.143866
0.143866
0.143866
0.143866
0.143866
0.111209
0
0.023569
0.192057
1,838
56
143
32.821429
0.739394
0.022307
0
0
0
0.02381
0.216875
0.03268
0
0
0
0
0
0
null
null
0
0.214286
null
null
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1fbabbebcba42f957b222b0a93947b7fcb13dcf2
1,730
py
Python
news/migrations/0006_auto_20201111_0809.py
giantmade/giant-news
39f2f46149901545d382617f772c7e63ea530904
[ "MIT" ]
2
2020-06-18T08:15:16.000Z
2020-11-17T09:54:55.000Z
news/migrations/0006_auto_20201111_0809.py
giantmade/giant-news
39f2f46149901545d382617f772c7e63ea530904
[ "MIT" ]
16
2020-07-20T14:09:51.000Z
2022-02-10T10:01:32.000Z
news/migrations/0006_auto_20201111_0809.py
giantmade/giant-news
39f2f46149901545d382617f772c7e63ea530904
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-11-11 08:09 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("news", "0005_relatedarticlecardplugin_relatedarticleplugin"), ] operations = [ migrations.AddField( ...
40.232558
266
0.568786
185
1,730
5.259459
0.475676
0.024666
0.089414
0.101747
0.195272
0.195272
0.090442
0.090442
0.090442
0.090442
0
0.016995
0.353757
1,730
42
267
41.190476
0.853309
0.024855
0
0.361111
1
0.083333
0.445697
0.029674
0
0
0
0
0
1
0
false
0
0.055556
0
0.138889
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
1fc0d429232bb2c86be80c8aa2d4b24701c1c34e
1,841
py
Python
src/utils/key_generator.py
oswagner/rsa-implementation
198e340f2650a1f4462e481c0f805b2f88c550d3
[ "MIT" ]
null
null
null
src/utils/key_generator.py
oswagner/rsa-implementation
198e340f2650a1f4462e481c0f805b2f88c550d3
[ "MIT" ]
null
null
null
src/utils/key_generator.py
oswagner/rsa-implementation
198e340f2650a1f4462e481c0f805b2f88c550d3
[ "MIT" ]
null
null
null
from base64 import b64decode from pyasn1.codec.der.encoder import encode from pyasn1.codec.der.decoder import decode from utils.private_key import AsnSchemaPrivateKey from utils.public_key import AsnSchemaPublicKey # # Utilizado como apoio para criação formatação das chaves # https://github.com/sybrenstuvel/python-rsa...
28.765625
59
0.761543
219
1,841
6.196347
0.324201
0.066323
0.194547
0.026529
0.355195
0.232867
0.232867
0.232867
0.082535
0
0
0.016688
0.153721
1,841
63
60
29.222222
0.8543
0.195546
0
0.125
0
0
0.071672
0
0
0
0
0
0
1
0.125
false
0
0.15625
0
0.40625
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1fc18817798a05b2289c302fe76edeb1a4d7abda
893
py
Python
tests/test_models.py
lydiah2015/news-highlight
7c14865199dbbc818e90b6bf1c4348b72ca76265
[ "MIT" ]
null
null
null
tests/test_models.py
lydiah2015/news-highlight
7c14865199dbbc818e90b6bf1c4348b72ca76265
[ "MIT" ]
null
null
null
tests/test_models.py
lydiah2015/news-highlight
7c14865199dbbc818e90b6bf1c4348b72ca76265
[ "MIT" ]
1
2019-04-22T21:51:10.000Z
2019-04-22T21:51:10.000Z
from app.models import Article,Source from unittest import TestCase class TestSource(TestCase): def setUp(self): self.source=Source("BuzzFeed","BuzzFeed is a cross-platform") def test_instance(self): self.assertIsInstance(self.source,Source) def test_create(self): self.assertEqual...
28.806452
69
0.661814
98
893
5.908163
0.326531
0.082902
0.131261
0.069085
0.438687
0.272884
0.272884
0
0
0
0
0
0.220605
893
31
70
28.806452
0.831897
0
0
0.230769
0
0
0.146532
0
0
0
0
0
0.230769
1
0.230769
false
0
0.076923
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1fc28a7fe64861b8c0ad0f85c72ec996304a8ff8
9,292
py
Python
Week6JamesNoonanAdv.py
WarpedDemon/Webtesting
75683b50038c6f8154aebdacbe353efa328a7191
[ "MIT" ]
null
null
null
Week6JamesNoonanAdv.py
WarpedDemon/Webtesting
75683b50038c6f8154aebdacbe353efa328a7191
[ "MIT" ]
null
null
null
Week6JamesNoonanAdv.py
WarpedDemon/Webtesting
75683b50038c6f8154aebdacbe353efa328a7191
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions from selenium.common.exceptions import NoSuchElementException import time, math class PageGetSet: def __init__(self): ...
40.933921
127
0.649483
959
9,292
6.172054
0.186653
0.072478
0.126711
0.197669
0.555668
0.428113
0.414935
0.399392
0.367461
0.29059
0
0.012306
0.204154
9,292
227
128
40.933921
0.7881
0
0
0.242105
0
0.015789
0.217368
0.096524
0
0
0
0
0
1
0.1
false
0
0.031579
0
0.157895
0.094737
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
1fc36feabb4a4bf2e6b95ae4a1c83099a73c1aef
922
py
Python
config.py
JamaSoftware/sync-status
868227f50181ec6e2d351de3feb9427ceb6d4197
[ "MIT" ]
null
null
null
config.py
JamaSoftware/sync-status
868227f50181ec6e2d351de3feb9427ceb6d4197
[ "MIT" ]
1
2021-06-02T00:12:54.000Z
2021-06-02T00:12:54.000Z
config.py
JamaSoftware/sync-status
868227f50181ec6e2d351de3feb9427ceb6d4197
[ "MIT" ]
null
null
null
# Connection Settings JAMA_CONNECT_URL = "https://instance.jamacloud.com" USERNAME = "USERNAME" PASSWORD = "PASSWORD" # If using oauth, set OAUTH = True, set USERNAME = "CLIENT_ID" and PASSWORD="CLIENT_SECRET" OAUTH = False # Input / Output settings filter_id = 165 # Project's to check sync status against. # This val...
28.8125
105
0.736443
146
922
4.534247
0.554795
0.031722
0.042296
0
0
0
0
0
0
0
0
0.011796
0.172451
922
31
106
29.741935
0.855832
0.655098
0
0
0
0
0.266447
0
0
0
0
0
0
1
0
false
0.090909
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1fd938ff92903ffd97ea82c57d726678d4d77a1a
1,503
py
Python
tests/contract/test_get_all_catalogs.py
Informasjonsforvaltning/organization-page-bffe
473dc9606649f864618f4f8bfc4a6a2a035f06d7
[ "Apache-2.0" ]
null
null
null
tests/contract/test_get_all_catalogs.py
Informasjonsforvaltning/organization-page-bffe
473dc9606649f864618f4f8bfc4a6a2a035f06d7
[ "Apache-2.0" ]
47
2020-05-14T07:54:48.000Z
2022-03-29T22:17:08.000Z
tests/contract/test_get_all_catalogs.py
Informasjonsforvaltning/organization-page-bffe
473dc9606649f864618f4f8bfc4a6a2a035f06d7
[ "Apache-2.0" ]
null
null
null
"""Contract test cases for cases for all organization catalogs.""" import json import pytest import requests from tests import responses @pytest.mark.contract @pytest.mark.docker def test_all_catalogs(docker_service: str) -> None: """Should return the all_catalogs response.""" url = f"{docker_service}/organ...
27.833333
73
0.727212
191
1,503
5.570681
0.26178
0.075188
0.067669
0.090226
0.744361
0.719925
0.593985
0.593985
0.512218
0.391917
0
0.012579
0.153693
1,503
53
74
28.358491
0.823899
0.125749
0
0.5
0
0
0.190217
0.14441
0
0
0
0
0.205882
1
0.117647
false
0
0.117647
0
0.235294
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1fde1c9a8b8b8d4b4bc9464e9621b394968e0b23
885
py
Python
forms/product_form.py
vankrajnova/selenium
e77ae2c0f6caf0a61eb34fdc1cf644c087403a0f
[ "Apache-2.0" ]
null
null
null
forms/product_form.py
vankrajnova/selenium
e77ae2c0f6caf0a61eb34fdc1cf644c087403a0f
[ "Apache-2.0" ]
null
null
null
forms/product_form.py
vankrajnova/selenium
e77ae2c0f6caf0a61eb34fdc1cf644c087403a0f
[ "Apache-2.0" ]
null
null
null
from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By class ProductForm: def __init__(self, app): self.app = app self._elements = Elements(app) def add_product_to_cart(self): quantity = self._elements.quantity().text self....
32.777778
129
0.663277
118
885
4.686441
0.372881
0.088608
0.075949
0.050633
0.332731
0.224231
0.224231
0.137432
0.137432
0
0
0.001406
0.19661
885
27
130
32.777778
0.776371
0
0
0.3
0
0
0.132054
0.079007
0
0
0
0
0
1
0.25
false
0
0.1
0
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1fe1ca09925a810d7e03b06e455fb41a85d994a1
67,487
py
Python
sympy/polys/densetools.py
matthew-brett/sympy
7b87b62144c28f2e734e9106897c72806b99d181
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/densetools.py
matthew-brett/sympy
7b87b62144c28f2e734e9106897c72806b99d181
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/densetools.py
matthew-brett/sympy
7b87b62144c28f2e734e9106897c72806b99d181
[ "BSD-3-Clause" ]
null
null
null
"""Advanced tools for dense recursive polynomials in `K[x]` or `K[X]`. """ from sympy.polys.densebasic import ( dup_strip, dmp_strip, dup_reverse, dup_convert, dmp_convert, dup_degree, dmp_degree, dmp_degree_in, dup_to_dict, dmp_to_dict, dup_from_dict, dmp_from_dict, dup_LC, dmp_LC, dmp_gro...
25.294978
105
0.519137
11,689
67,487
2.841475
0.044828
0.011321
0.0056
0.00566
0.673481
0.595201
0.526585
0.467122
0.414855
0.36858
0
0.022256
0.330893
67,487
2,667
106
25.304462
0.713283
0.001763
0
0.45072
0
0
0.017068
0
0
0
0
0
0
0
null
null
0.002305
0.004035
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
1febc52584277727abdf78e114e8192479a6c0e6
11,569
py
Python
src/PQWER_dex.py
jsleslie/PQWER
1572ad00d662c99f7539677ef321c60248c586dc
[ "Apache-2.0" ]
null
null
null
src/PQWER_dex.py
jsleslie/PQWER
1572ad00d662c99f7539677ef321c60248c586dc
[ "Apache-2.0" ]
null
null
null
src/PQWER_dex.py
jsleslie/PQWER
1572ad00d662c99f7539677ef321c60248c586dc
[ "Apache-2.0" ]
null
null
null
""" changes made: make widgets parent explicitly declared Use either with root window or Toplevel Bind Return key to selection method """ #from tkinter import * import tkinter as tk import re from PIL import ImageTk, Image import json from tkinter import ttk # Helper function extracting ability descript...
38.563333
175
0.610252
1,395
11,569
4.971326
0.290323
0.039654
0.023792
0.025379
0.332805
0.228551
0.185292
0.162942
0.131218
0.131218
0
0.011936
0.232345
11,569
300
176
38.563333
0.768945
0.128015
0
0.210256
0
0.005128
0.163982
0.018109
0
0
0
0
0
1
0.066667
false
0.051282
0.025641
0.005128
0.117949
0.005128
0
0
0
null
0
0
0
0
0
0
0
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
1ff8074923011c178ceecf399dd6ea7342a9eab7
669
py
Python
helper/make_url_secure.py
xei/image-server
b82ca9e8fd5ee025b48fc26c0a9d9ef892400144
[ "MIT" ]
null
null
null
helper/make_url_secure.py
xei/image-server
b82ca9e8fd5ee025b48fc26c0a9d9ef892400144
[ "MIT" ]
null
null
null
helper/make_url_secure.py
xei/image-server
b82ca9e8fd5ee025b48fc26c0a9d9ef892400144
[ "MIT" ]
null
null
null
import base64 import hashlib def generate_url_token(url, secret_key): md5_digest = hashlib.md5( ("%s %s" % (url, secret_key)).encode("utf-8") ).digest() base64_encoded = base64.b64encode(md5_digest).decode("utf-8") # Make the key look like Nginx expects. token = base64_encoded.replace('+', '-').replace('...
26.76
72
0.698057
98
669
4.510204
0.397959
0.142534
0.135747
0.085973
0.126697
0.126697
0
0
0
0
0
0.026042
0.139013
669
25
73
26.76
0.741319
0.055306
0
0
1
0
0.142631
0
0
0
0
0
0
1
0.166667
false
0
0.111111
0
0.388889
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1ffa8b05d0dc1f2f1f223e0ae2cb21804ce9f954
145
py
Python
python_demo_v4_cookbook/data_structure/expand_sequence_one_by_one.py
renhongl/python_demo
039d0e046885dd3890526ae91efa2d601f6f9b73
[ "MIT" ]
1
2019-11-29T02:47:19.000Z
2019-11-29T02:47:19.000Z
python_demo_v4_cookbook/data_structure/expand_sequence_one_by_one.py
renhongl/python_demo
039d0e046885dd3890526ae91efa2d601f6f9b73
[ "MIT" ]
null
null
null
python_demo_v4_cookbook/data_structure/expand_sequence_one_by_one.py
renhongl/python_demo
039d0e046885dd3890526ae91efa2d601f6f9b73
[ "MIT" ]
null
null
null
p = (4, 5) x, y = p print(x, y) data = ['ACMD', 50, 90.1, (2012, 11, 12)] name, shares, price, date = data print(name, shares, date)
7.631579
41
0.524138
26
145
2.923077
0.692308
0.052632
0
0
0
0
0
0
0
0
0
0.141509
0.268966
145
18
42
8.055556
0.575472
0
0
0
0
0
0.028986
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
1ffb975acfa8bb0531699a6184833c5bc796792b
333
py
Python
train_keras.py
gangeshwark/RareEntityPrediction
d836dcc9346d372856b6bdc257d0546e29c7d1ba
[ "MIT" ]
null
null
null
train_keras.py
gangeshwark/RareEntityPrediction
d836dcc9346d372856b6bdc257d0546e29c7d1ba
[ "MIT" ]
null
null
null
train_keras.py
gangeshwark/RareEntityPrediction
d836dcc9346d372856b6bdc257d0546e29c7d1ba
[ "MIT" ]
null
null
null
from model_new.config import Config from model_new.keras_model import KerasModel from model_new.utils import load_json config = Config() model = KerasModel(config) train_set = load_json('dataset/train.json') # dev_set = load_json('dataset/dev.json') # sub_set = dev_set[:config.batch_size * 50] model.train(train_set,...
25.615385
44
0.780781
53
333
4.660377
0.358491
0.109312
0.145749
0.145749
0
0
0
0
0
0
0
0.006757
0.111111
333
12
45
27.75
0.827703
0.246246
0
0
0
0
0.072581
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
950f36afc58a1f8583c0a8be693c686fabffd8e5
598
py
Python
resources/common_variables.py
enen92/script.retrogames
b322dd9cf5972b79d0d4459c940f36125b6f555d
[ "Unlicense" ]
3
2015-07-17T06:44:22.000Z
2017-11-12T08:42:31.000Z
resources/common_variables.py
enen92/script.retrogames
b322dd9cf5972b79d0d4459c940f36125b6f555d
[ "Unlicense" ]
1
2015-11-06T02:52:54.000Z
2015-11-09T20:28:56.000Z
resources/common_variables.py
enen92/script.retrogames
b322dd9cf5972b79d0d4459c940f36125b6f555d
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ Author: enen92 License: I don't care version 3.0 """ import xbmc,xbmcgui,xbmcaddon,os addon_id = 'script.retrogames' selfAddon = xbmcaddon.Addon(id=addon_id) datapath = xbmc.translatePath(selfAddon.getAddonInfo('profile')).decode('utf-8') addonfolder = xbmc.trans...
28.47619
80
0.732441
78
598
5.589744
0.641026
0.036697
0.119266
0.174312
0
0
0
0
0
0
0
0.014787
0.095318
598
20
81
29.9
0.791128
0.155518
0
0
0
0
0.134146
0
0
0
0
0
0
1
0.1
false
0
0.1
0.1
0.3
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
9514bd124e4c1d9fcbeaa9920fa1f32763f8c565
1,029
py
Python
superclasses/invetory.py
augusnunes/titanic-escape
0d856555a810870aff62c0d0378a26c2b4cf2fe1
[ "MIT" ]
null
null
null
superclasses/invetory.py
augusnunes/titanic-escape
0d856555a810870aff62c0d0378a26c2b4cf2fe1
[ "MIT" ]
null
null
null
superclasses/invetory.py
augusnunes/titanic-escape
0d856555a810870aff62c0d0378a26c2b4cf2fe1
[ "MIT" ]
null
null
null
# player inventory class Inventory: '''Classe que representa o inventário do jogador ''' def __init__(self): self.itens = [] self.nomes = [] ### implementar isso def add(self, item): if type(item) == list: for i in item: self.itens.append(i) ...
27.078947
63
0.512148
124
1,029
4.137097
0.41129
0.122807
0.035088
0
0
0
0
0
0
0
0
0
0.380952
1,029
38
64
27.078947
0.805338
0.137998
0
0
0
0
0.057211
0
0
0
0
0
0
1
0.208333
false
0
0
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
95179370191e2f817e5c1243d24a09428f9c051d
1,092
py
Python
manager.py
CipherWang/ckb-address-manager
3f42f5147e9c973ef037801bd69af27b83f00ff4
[ "MIT" ]
2
2021-10-04T02:04:29.000Z
2021-12-06T05:20:32.000Z
manager.py
CipherWang/ckb-address-manager
3f42f5147e9c973ef037801bd69af27b83f00ff4
[ "MIT" ]
null
null
null
manager.py
CipherWang/ckb-address-manager
3f42f5147e9c973ef037801bd69af27b83f00ff4
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from bip_utils import Bip39ChecksumError, Bip39Languages, Bip39MnemonicValidator from bip_utils import Bip39SeedGenerator from bip_utils.bip.bip44_base import Bip32 from address import generateShortAddress, CODE_INDEX_SECP256K1_SINGLE, ckbhash from hashlib import sha256 # load mnemonic & gener...
42
96
0.79304
151
1,092
5.543046
0.549669
0.038232
0.043011
0.043011
0.105137
0
0
0
0
0
0
0.070552
0.104396
1,092
26
97
42
0.785276
0.161172
0
0
0
0
0.165752
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
951a6b5e1dfde8c91d974ad1063c4fb0de28c838
2,842
py
Python
tests/test_palmetto.py
zojabutenko/palmetto-py
643240d2ca23d08e3687b6dd15e3a327d3210f72
[ "Apache-2.0" ]
23
2016-11-17T14:07:14.000Z
2019-07-26T10:06:41.000Z
tests/test_palmetto.py
zojabutenko/palmetto-py
643240d2ca23d08e3687b6dd15e3a327d3210f72
[ "Apache-2.0" ]
7
2017-12-05T16:57:33.000Z
2019-08-23T09:46:32.000Z
tests/test_palmetto.py
zojabutenko/palmetto-py
643240d2ca23d08e3687b6dd15e3a327d3210f72
[ "Apache-2.0" ]
5
2019-11-15T13:51:14.000Z
2022-03-21T01:39:28.000Z
"""Test Palmetto.""" import pytest from palmettopy.palmetto import Palmetto from palmettopy.exceptions import CoherenceTypeNotAvailable, EndpointDown, WrongContentType @pytest.fixture def words(): """Load test data fixture.""" words = ["cake", "apple", "banana", "cherry", "chocolate"] return words @py...
27.862745
136
0.705489
351
2,842
5.467236
0.239316
0.036477
0.087546
0.040646
0.562793
0.46222
0.34914
0.253257
0.15112
0.15112
0
0.017116
0.177692
2,842
101
137
28.138614
0.804022
0.093596
0
0.293103
0
0
0.08
0
0
0
0
0
0.086207
1
0.224138
false
0
0.051724
0
0.327586
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
1f0429fee8ca0f06d23898f0bcbfdc0ca0c2520f
1,984
py
Python
arko/parser.py
bfontaine/arkopy
eb9bf2674c4015057f9f74088f2b493e5ab902a8
[ "MIT" ]
null
null
null
arko/parser.py
bfontaine/arkopy
eb9bf2674c4015057f9f74088f2b493e5ab902a8
[ "MIT" ]
null
null
null
arko/parser.py
bfontaine/arkopy
eb9bf2674c4015057f9f74088f2b493e5ab902a8
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import ply.yacc from collections import OrderedDict from .lexer import tokens, lex # a:4:{s:4:"date";s:10:"2019-12-29";s:10:"type_fonds";s:11:"arko_seriel";s:4:"ref1";i:12;s:4:"ref2";i:4669;} from .models import Object start = 'expression' def p_expression(p): """expression : atom ...
19.076923
108
0.581653
294
1,984
3.785714
0.278912
0.050314
0.021563
0.017969
0.240791
0.08805
0
0
0
0
0
0.039057
0.251512
1,984
103
109
19.262136
0.710438
0.329637
0
0.065217
0
0
0.018676
0
0
0
0
0
0
1
0.347826
false
0
0.086957
0
0.456522
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
1f0aeec6e7d8ecb7494e72f1876eac906e4a8716
1,211
py
Python
aaTwitter.py
OpenLinkedSocialData/aa01
1d11cc6e0b2350c3004c8f5a2d9f138f779481a5
[ "Artistic-2.0" ]
null
null
null
aaTwitter.py
OpenLinkedSocialData/aa01
1d11cc6e0b2350c3004c8f5a2d9f138f779481a5
[ "Artistic-2.0" ]
null
null
null
aaTwitter.py
OpenLinkedSocialData/aa01
1d11cc6e0b2350c3004c8f5a2d9f138f779481a5
[ "Artistic-2.0" ]
1
2020-09-23T17:45:24.000Z
2020-09-23T17:45:24.000Z
#! /usr/bin/env python #-*- coding: utf8 -*- # put this on /usr/local/bin/ # without .py extension from twython import TwythonStreamer import datetime, pymongo class MyStreamer(TwythonStreamer): def on_success(self, data): if 'text' in data: now=datetime.datetime.now() nick=data['us...
37.84375
117
0.687861
127
1,211
6.488189
0.582677
0.07767
0.024272
0.036408
0.101942
0.101942
0
0
0
0
0
0.057436
0.19488
1,211
31
118
39.064516
0.787692
0.075145
0
0.08
0
0
0.278674
0.21595
0
0
0
0
0
0
null
null
0
0.08
null
null
0.12
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1f102d94a9d093c0c198f76768c0b87ec225fb63
532
py
Python
setup.py
Narcissist1/wechat-pay
0c4bf55e06c44d25abb94babe82777316e5c3789
[ "MIT" ]
9
2018-01-01T07:16:21.000Z
2022-02-27T12:22:06.000Z
setup.py
Narcissist1/wechat-pay
0c4bf55e06c44d25abb94babe82777316e5c3789
[ "MIT" ]
1
2020-01-16T10:48:51.000Z
2020-01-16T10:48:51.000Z
setup.py
Narcissist1/wechat-pay
0c4bf55e06c44d25abb94babe82777316e5c3789
[ "MIT" ]
2
2018-01-29T09:40:29.000Z
2018-03-18T14:28:49.000Z
from setuptools import setup setup( name='wechat-pay-sdk', packages=['wechatpay'], version='0.6.2', description='A sdk for wechat pay', author='Zack Ren', license='MIT', include_package_data=True, author_email='m6106918@gmail.com', url='https://github.com/Narcissist1/wechat-pay', ...
24.181818
80
0.642857
64
532
5.265625
0.71875
0.133531
0.083086
0.10089
0.219585
0.219585
0.219585
0
0
0
0
0.032258
0.184211
532
21
81
25.333333
0.74424
0
0
0
0
0.05
0.400376
0
0
0
0
0
0
1
0
true
0
0.05
0
0.05
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
1f1647dfba6b2cde7294b982130ba0f4cb724041
3,817
py
Python
pysnmp-with-texts/ASCEND-MIBATMNBASE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ASCEND-MIBATMNBASE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ASCEND-MIBATMNBASE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ASCEND-MIBATMNBASE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASCEND-MIBATMNBASE-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:26:30 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
109.057143
477
0.797223
403
3,817
7.488834
0.342432
0.039761
0.069583
0.007952
0.358516
0.261763
0.186216
0.149768
0.149768
0.145461
0
0.048629
0.073356
3,817
34
478
112.264706
0.804637
0.088551
0
0
0
0
0.25562
0.05245
0
0
0
0
0
1
0
false
0.038462
0.269231
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f18f11bc768fad6d8ce2321c2fea887bc7137cc
11,437
py
Python
uninas/training/metrics/abstract.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
18
2020-11-22T16:03:08.000Z
2022-03-15T12:11:46.000Z
uninas/training/metrics/abstract.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
2
2022-01-04T08:10:17.000Z
2022-01-05T08:13:14.000Z
uninas/training/metrics/abstract.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
6
2021-03-08T07:08:52.000Z
2022-02-24T12:00:43.000Z
import torch from collections import defaultdict from uninas.data.abstract import AbstractDataSet from uninas.models.networks.abstract import AbstractNetwork from uninas.training.result import ResultValue from uninas.utils.args import ArgsInterface, Namespace, Argument class AbstractMetric(ArgsInterface): """ ...
39.711806
122
0.617644
1,408
11,437
4.90696
0.159091
0.05254
0.023448
0.02779
0.540454
0.515415
0.498046
0.471559
0.45694
0.45694
0
0.003642
0.279794
11,437
287
123
39.850174
0.835134
0.326659
0
0.395522
0
0
0.013829
0
0
0
0
0
0
1
0.208955
false
0.022388
0.044776
0
0.402985
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
1f22c0eadac7f6054ff3ea73792836842548dfe2
853
py
Python
utils/bundle/client.py
gravitationalwavedc/gwcloud_job_client
d878669c8ce943e0826fa06536bd8ce89beb43ea
[ "MIT" ]
null
null
null
utils/bundle/client.py
gravitationalwavedc/gwcloud_job_client
d878669c8ce943e0826fa06536bd8ce89beb43ea
[ "MIT" ]
10
2020-06-06T11:30:59.000Z
2022-03-15T02:49:27.000Z
utils/bundle/client.py
gravitationalwavedc/gwcloud_job_client
d878669c8ce943e0826fa06536bd8ce89beb43ea
[ "MIT" ]
null
null
null
""" Adapted from https://gist.github.com/grantjenks/095de18c51fa8f118b68be80a624c45a """ import http.client import socket import xmlrpc.client class UnixStreamHTTPConnection(http.client.HTTPConnection): def connect(self): self.sock = socket.socket( socket.AF_UNIX, socket.SOCK_STREAM )...
25.848485
80
0.694021
86
853
6.616279
0.430233
0.070299
0.073814
0
0
0
0
0
0
0
0
0.029326
0.200469
853
32
81
26.65625
0.804985
0.093787
0
0
0
0
0.00915
0
0
0
0
0
0
1
0.190476
false
0
0.142857
0.047619
0.52381
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
1f23f333b29a44d3cb9699aa3a18a0b4cc72267e
520
py
Python
tests/test_utils.py
MarinFCM/rain_alert
e101a3c47d4d3b3e06df420bbe8a1ed4f28e54c2
[ "MIT" ]
1
2021-12-30T15:56:44.000Z
2021-12-30T15:56:44.000Z
tests/test_utils.py
MarinFCM/rain_alert
e101a3c47d4d3b3e06df420bbe8a1ed4f28e54c2
[ "MIT" ]
21
2021-05-21T10:16:54.000Z
2022-01-14T13:07:55.000Z
tests/test_utils.py
MarinFCM/rain_alert
e101a3c47d4d3b3e06df420bbe8a1ed4f28e54c2
[ "MIT" ]
3
2021-04-03T11:41:18.000Z
2021-11-08T11:19:43.000Z
from rain_alert.utils import RECEIVERS_FILE_PATH import unittest from .context import utils import os class TestGetReceivers(unittest.TestCase): def test_no_file(self): # set the path of the receivers to this folder because in tests folder # we dont have the receivers file utils.RECEIVE...
22.608696
80
0.717308
68
520
5.235294
0.558824
0.146067
0.143258
0.123596
0
0
0
0
0
0
0
0.002392
0.196154
520
22
81
23.636364
0.849282
0.194231
0
0
0
0
0.022472
0
0
0
0
0
0.1
1
0.1
false
0
0.4
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
1
0
0
0
0
1
1f2d1844b3eccb84918f80fdac47539a12562abf
950
py
Python
perfil/migrations/0002_auto_20211018_0921.py
Felipe-007/Ecommerce
f3003b3130709b12ae87b45867a8364f00fef2f1
[ "MIT" ]
null
null
null
perfil/migrations/0002_auto_20211018_0921.py
Felipe-007/Ecommerce
f3003b3130709b12ae87b45867a8364f00fef2f1
[ "MIT" ]
null
null
null
perfil/migrations/0002_auto_20211018_0921.py
Felipe-007/Ecommerce
f3003b3130709b12ae87b45867a8364f00fef2f1
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-18 12:21 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('perfil', '0001_initial')...
29.6875
137
0.629474
101
950
5.772277
0.504951
0.041166
0.128645
0.149228
0.300172
0.200686
0
0
0
0
0
0.031161
0.256842
950
31
138
30.645161
0.794618
0.047368
0
0.36
1
0
0.086379
0
0
0
0
0
0
1
0
false
0
0.12
0
0.24
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
1f3320a057467c0e79551203045f364518c57388
847
py
Python
opennmt/layers/common.py
dblandan/OpenNMT-tf
89714f3e79fbc9deb7ea5d2f42a88f0df6d84ae3
[ "MIT" ]
2
2018-09-28T14:44:59.000Z
2018-11-29T02:31:28.000Z
opennmt/layers/common.py
kadlaon/OpenNMT-tf
da89eb2a74fb45ac375de212c93069458ccfc63c
[ "MIT" ]
null
null
null
opennmt/layers/common.py
kadlaon/OpenNMT-tf
da89eb2a74fb45ac375de212c93069458ccfc63c
[ "MIT" ]
1
2019-06-17T21:36:56.000Z
2019-06-17T21:36:56.000Z
"""Defines common layers.""" import tensorflow as tf from tensorflow.python.framework import function @function.Defun( python_grad_func=lambda x, dy: tf.convert_to_tensor(dy), shape_func=lambda op: [op.inputs[0].get_shape()]) def convert_gradient_to_tensor(x): """Wraps :obj:`x` to convert its gradient to ...
27.322581
76
0.724911
125
847
4.792
0.504
0.040067
0.056761
0.076795
0
0
0
0
0
0
0
0.001408
0.161747
847
30
77
28.233333
0.842254
0.50059
0
0
0
0
0
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
1f3bc3d90c00003fe49eff1484d6dda8f965a411
307
py
Python
awsm/hooks/validators.py
jeevb/awsm
28149b6032adcd349014c3c273a9a030926a19b0
[ "MIT" ]
null
null
null
awsm/hooks/validators.py
jeevb/awsm
28149b6032adcd349014c3c273a9a030926a19b0
[ "MIT" ]
null
null
null
awsm/hooks/validators.py
jeevb/awsm
28149b6032adcd349014c3c273a9a030926a19b0
[ "MIT" ]
null
null
null
from awsm.validators import yaml_dict from voluptuous import All, Coerce, Schema HOOK_SCHEMA = Schema(All(Coerce(yaml_dict), { 'includes': [str], 'tasks': [dict] })) HOOK_VARS_SCHEMA = All(Coerce(yaml_dict), dict) HOOKS_CFG_SCHEMA = Schema({ 'vars': HOOK_VARS_SCHEMA, str: HOOK_SCHEMA })
20.466667
47
0.70684
42
307
4.904762
0.404762
0.116505
0.145631
0.184466
0.223301
0
0
0
0
0
0
0
0.162866
307
14
48
21.928571
0.801556
0
0
0
0
0
0.055375
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f4435a3c878506f56e0d2712e409d3a3ddc5123
390
py
Python
app/simulator/stamp.py
wbj218/microVisualization
7fa1b71a81fa77c7708fe44c32ad5bbf7864acfc
[ "MIT" ]
null
null
null
app/simulator/stamp.py
wbj218/microVisualization
7fa1b71a81fa77c7708fe44c32ad5bbf7864acfc
[ "MIT" ]
3
2021-05-11T15:11:29.000Z
2022-02-13T14:07:47.000Z
app/simulator/stamp.py
Wzz917/Microservices-Visualization
40ba4bf1ffee66915b98566b4ef4b815119b798a
[ "MIT" ]
null
null
null
class Stamp: def __init__(self): self.enqueue_time = -1 self.picked_time = -1 self.processed_time = -1 self.send_time = -1 self.cache_send_time = -1 self.cache_get_back_time = -1 self.final_time = -1 self.delta_time = -1 self.values = {} self.checked_cache = False self.cache_result = None self....
22.941176
31
0.694872
62
390
4.064516
0.387097
0.178571
0.285714
0.119048
0.142857
0
0
0
0
0
0
0.028481
0.189744
390
17
32
22.941176
0.768987
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0.0625
0.25
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f4747baaf33c9dbde6995629bcd71985d6d83c8
1,428
py
Python
ebay.py
zweed4u/Analytics
5d0bbce5720b11d4f11b8d0d462db79ffc679912
[ "MIT" ]
null
null
null
ebay.py
zweed4u/Analytics
5d0bbce5720b11d4f11b8d0d462db79ffc679912
[ "MIT" ]
null
null
null
ebay.py
zweed4u/Analytics
5d0bbce5720b11d4f11b8d0d462db79ffc679912
[ "MIT" ]
null
null
null
import requests, BeautifulSoup session=requests.session() headers={'User-Agent':'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.90 Safari/537.36'} styleCode='B39254'#'BB1826' r=session.get('http://www.ebay.com/sch/i.html?_nkw='+str(styleCode)+'&LH_Complete=1&LH_Sold=1',headers=h...
47.6
129
0.641457
198
1,428
4.606061
0.494949
0.039474
0.029605
0.032895
0.421053
0.421053
0.421053
0.359649
0.359649
0.359649
0
0.044905
0.189076
1,428
29
130
49.241379
0.74266
0.214986
0
0.363636
0
0.045455
0.251351
0.021622
0
0
0
0
0
0
null
null
0
0.045455
null
null
0.272727
0
0
0
null
0
0
0
0
0
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
1f4767eda1b5f2362110f4372dfd4bc957d3a64e
4,952
py
Python
job_applications/models.py
yhaojin/recruitment_pipeline
860f25185864a1b259d08e88f42aca86f8206a4e
[ "MIT" ]
null
null
null
job_applications/models.py
yhaojin/recruitment_pipeline
860f25185864a1b259d08e88f42aca86f8206a4e
[ "MIT" ]
null
null
null
job_applications/models.py
yhaojin/recruitment_pipeline
860f25185864a1b259d08e88f42aca86f8206a4e
[ "MIT" ]
null
null
null
from django.db import models from .utils import upload_to_file, generate_random_string from .validators import validate_file class CompanyManager(models.Manager): def get_or_none(self, **kwargs): try: return self.get(**kwargs) except Company.DoesNotExist: return None cl...
29.47619
120
0.633683
529
4,952
5.756144
0.270321
0.019704
0.04532
0.051232
0.471593
0.435468
0.413793
0.373727
0.298194
0.240394
0
0.007081
0.258481
4,952
167
121
29.652695
0.822168
0.014136
0
0.296
1
0.008
0.190152
0.009271
0
0
0
0
0
1
0.08
false
0
0.024
0.048
0.544
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
1f4c2b2b259228bad25a75d96ad3eba0c6f8d902
886
py
Python
search/forms.py
pkimber/search
f47b07185927dbb67f9a8f0ad967bb0e4ff89f9a
[ "Apache-2.0" ]
null
null
null
search/forms.py
pkimber/search
f47b07185927dbb67f9a8f0ad967bb0e4ff89f9a
[ "Apache-2.0" ]
null
null
null
search/forms.py
pkimber/search
f47b07185927dbb67f9a8f0ad967bb0e4ff89f9a
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- from django import forms from haystack.forms import SearchForm class MySearchForm(SearchForm): """ Search records (exclude 'deleted' records by default)... For form information... see 'Creating your own form': http://django-haystack.readthedocs.org/en/latest/views_and_forms...
27.6875
96
0.62754
104
886
5.288462
0.625
0.076364
0.076364
0.069091
0
0
0
0
0
0
0
0.00311
0.274266
886
31
97
28.580645
0.852255
0.422122
0
0
0
0
0.014493
0
0
0
0
0
0
1
0.071429
false
0.071429
0.142857
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1f51cc674e3116c990ff40758f1da2bf42e01d45
470
py
Python
Python/jadoo_and_dna_transcription.py
Rounak259/HackerEarth
fb6f950f0b68f1c4ffab0a0c17b2e693700c4cb0
[ "MIT" ]
null
null
null
Python/jadoo_and_dna_transcription.py
Rounak259/HackerEarth
fb6f950f0b68f1c4ffab0a0c17b2e693700c4cb0
[ "MIT" ]
null
null
null
Python/jadoo_and_dna_transcription.py
Rounak259/HackerEarth
fb6f950f0b68f1c4ffab0a0c17b2e693700c4cb0
[ "MIT" ]
null
null
null
'''dna_rna = str() nucleotides = {'A', 'C', 'G', 'T', 'U'} complement = {'G':'C', 'C':'G', 'T':'A', 'A':'U'} b = set(input()) if b.issubset(nucleotides): for i in b: if i in complement: dna_rna = dna_rna+complement[i] else: dna_rna = dna_rna+i print(dna_rna) el...
27.647059
50
0.495745
76
470
2.986842
0.315789
0.15859
0.039648
0.035242
0.079295
0.079295
0.079295
0.079295
0.079295
0
0
0
0.246809
470
17
51
27.647059
0.641243
0.714894
0
0
0
0
0.185841
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
1f5eed3bc8383bb46d290ed6931ccad9b4a1f883
9,346
py
Python
code/solverADMMmodel7.py
qingzheli/partial-correlation-based-contrast-pattern-mining
44026ba840581a68ff2249e88e99c0c1d05d4209
[ "BSD-2-Clause" ]
1
2021-02-02T01:29:50.000Z
2021-02-02T01:29:50.000Z
code/solverADMMmodel7.py
qingzheli/partial-correlation-based-contrast-pattern-mining
44026ba840581a68ff2249e88e99c0c1d05d4209
[ "BSD-2-Clause" ]
null
null
null
code/solverADMMmodel7.py
qingzheli/partial-correlation-based-contrast-pattern-mining
44026ba840581a68ff2249e88e99c0c1d05d4209
[ "BSD-2-Clause" ]
null
null
null
#For ICDM review only, please do not distribute #ALL RIGHTS RESERVED #ADMM solver for CPM-C model with parital correlation based translation function import numpy as np import copy import time class myADMMSolver: def __init__(self,lamb, nw, rho,x,hat_x,rho_update_func=None): self.rho = rho self.lam...
31.789116
167
0.539482
1,404
9,346
3.495727
0.14886
0.03586
0.025672
0.031377
0.267726
0.182559
0.139976
0.127139
0.105542
0.094947
0
0.013735
0.314466
9,346
293
168
31.897611
0.752302
0.058528
0
0.059701
0
0
0.026928
0.004125
0
0
0
0
0.029851
0
null
null
0
0.014925
null
null
0.034826
0
0
0
null
0
0
0
0
0
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
1f601da36f4fc62ab82440c4d5e4450d30c1ec65
1,325
py
Python
flikrWallpaper.py
DaemonF/Flikr-Wallpaper-Downloader
1bec5631982d13aac481b0e6f063591e02cf55de
[ "MIT" ]
null
null
null
flikrWallpaper.py
DaemonF/Flikr-Wallpaper-Downloader
1bec5631982d13aac481b0e6f063591e02cf55de
[ "MIT" ]
null
null
null
flikrWallpaper.py
DaemonF/Flikr-Wallpaper-Downloader
1bec5631982d13aac481b0e6f063591e02cf55de
[ "MIT" ]
null
null
null
import urllib, signal, os import simplejson # install with pip try: import config except: print ("You must configure config.py.template and rename\n" " it to config.py to use this tool.") exit() flikrApiUrl = "http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=2a5a2148ffc21588facb65536aa91b7...
36.805556
206
0.706415
184
1,325
5.054348
0.559783
0.023656
0.021505
0
0
0
0
0
0
0
0
0.02459
0.171321
1,325
35
207
37.857143
0.822404
0.012075
0
0.117647
0
0.029412
0.403213
0
0
0
0
0
0
0
null
null
0
0.088235
null
null
0.205882
0
0
0
null
0
0
0
0
0
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
1f60c83bebdec4afe8741cb1d60a0bf879adbb87
527
py
Python
hardhat/recipes/python/attrs.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/python/attrs.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/python/attrs.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
from .base import SetupPyRecipe class AttrsRecipe(SetupPyRecipe): def __init__(self, *args, **kwargs): super(AttrsRecipe, self).__init__(*args, **kwargs) self.sha256 = 'e0d0eb91441a3b53dab4d9b743eafc1a' \ 'c44476296a2053b6ca3af0b139faf87b' self.pythons = ['python3'] ...
40.538462
147
0.677419
49
527
7.122449
0.693878
0.057307
0.022923
0
0
0
0
0
0
0
0
0.204276
0.201139
527
12
148
43.916667
0.624703
0
0
0
0
0.1
0.394687
0.121442
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
1f674c98002303112713af0f9a2c531592498ab9
260
py
Python
dashboard/utils/browse/book.py
TheBoringDude/zeta
d9c380d4823a669c986050757b822e2aadcc7b01
[ "MIT" ]
null
null
null
dashboard/utils/browse/book.py
TheBoringDude/zeta
d9c380d4823a669c986050757b822e2aadcc7b01
[ "MIT" ]
8
2021-04-29T11:50:29.000Z
2022-03-12T00:51:14.000Z
dashboard/utils/browse/book.py
TheBoringDude/zeta
d9c380d4823a669c986050757b822e2aadcc7b01
[ "MIT" ]
null
null
null
from dashboard.utils.finder import Finder import requests class Book(Finder): def search_book(self, query): # search and get the response resp = requests.get(self.open_library.replace("[query]", query)).json()["docs"] return resp
26
87
0.680769
34
260
5.147059
0.676471
0.137143
0
0
0
0
0
0
0
0
0
0
0.203846
260
10
88
26
0.845411
0.103846
0
0
0
0
0.047414
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.833333
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
1f682c29cefa1302a8ff37d5ed250b2ba829af92
239
py
Python
monypy/__init__.py
ybibaev/monypy
f1ad4b9e67f48a8b73aa74eb05113f1fc01f3a04
[ "MIT" ]
6
2018-04-29T17:56:18.000Z
2019-03-18T20:05:19.000Z
monypy/__init__.py
ddstte/monypy
f1ad4b9e67f48a8b73aa74eb05113f1fc01f3a04
[ "MIT" ]
null
null
null
monypy/__init__.py
ddstte/monypy
f1ad4b9e67f48a8b73aa74eb05113f1fc01f3a04
[ "MIT" ]
2
2018-04-29T19:30:30.000Z
2018-04-30T07:28:41.000Z
from .doc import Doc from .exceptions import DocumentDoesNotExist, DocumentInitDataError from .manager import Manager __version__ = '2.0.1' __all__ = ( 'Doc', 'Manager', 'DocumentInitDataError', 'DocumentDoesNotExist', )
18.384615
67
0.723849
22
239
7.5
0.545455
0
0
0
0
0
0
0
0
0
0
0.015228
0.175732
239
12
68
19.916667
0.822335
0
0
0
0
0
0.23431
0.087866
0
0
0
0
0
1
0
false
0
0.3
0
0.3
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
1f71cdeb66e3af16f30d9fdf4193ed6d8e5c91c1
727
py
Python
SOMEChecker/some_finder.py
richard-clifford/Useful-Scripts
65c80b9355492c1fe0f6813d3241c2920e0cfd06
[ "MIT" ]
null
null
null
SOMEChecker/some_finder.py
richard-clifford/Useful-Scripts
65c80b9355492c1fe0f6813d3241c2920e0cfd06
[ "MIT" ]
null
null
null
SOMEChecker/some_finder.py
richard-clifford/Useful-Scripts
65c80b9355492c1fe0f6813d3241c2920e0cfd06
[ "MIT" ]
null
null
null
import requests import re import ssl targets = open("targets.txt", 'r').readlines() for target in targets: target = target.rstrip() headers = {'User-Agent': 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)'} response = requests.get(target.split('|')[0], headers=headers).text scanjs = re.findall(r'sr...
25.964286
80
0.627235
101
727
4.415842
0.49505
0.080717
0.080717
0
0
0
0
0
0
0
0
0.011905
0.191197
727
28
81
25.964286
0.746599
0
0
0
0
0
0.206044
0.031593
0
0
0
0
0
0
null
null
0
0.166667
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
1f7bf8309a5f250464d06aae960cb7b22581c0e4
3,949
py
Python
upload.py
hydrogen18/fairywren
2d99c9bd3a645bf7be1a8e14d4afce30513aceaa
[ "MIT" ]
39
2015-04-02T10:54:24.000Z
2021-12-17T04:01:37.000Z
upload.py
hydrogen18/fairywren
2d99c9bd3a645bf7be1a8e14d4afce30513aceaa
[ "MIT" ]
null
null
null
upload.py
hydrogen18/fairywren
2d99c9bd3a645bf7be1a8e14d4afce30513aceaa
[ "MIT" ]
21
2015-03-24T13:58:23.000Z
2021-06-08T11:26:24.000Z
import sys import json import os import math import subprocess import urllib import urllib2 import MultipartPostHandler import cookielib import hashlib import base64 import types import xml.dom.minidom def mktorrent(target,announce,pieceLength,private): cmd = ['/usr/bin/mktorrent'] cmd.append('--announce=' + announc...
24.079268
144
0.688276
510
3,949
5.298039
0.366667
0.016654
0.015544
0.016284
0.017024
0
0
0
0
0
0
0.009402
0.165105
3,949
163
145
24.226994
0.81013
0.097999
0
0.056604
0
0
0.114398
0
0
0
0
0
0
0
null
null
0.028302
0.122642
null
null
0.028302
0
0
0
null
0
0
0
0
0
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
1f7d79980f712cf5c7dd3218327a4f8950684fa8
2,843
py
Python
sciencebeam_judge/evaluation_config.py
elifesciences/sciencebeam-judge
357f1b4266674611b24371224468db268ed4574e
[ "MIT" ]
null
null
null
sciencebeam_judge/evaluation_config.py
elifesciences/sciencebeam-judge
357f1b4266674611b24371224468db268ed4574e
[ "MIT" ]
189
2018-01-11T17:14:18.000Z
2022-03-28T17:30:11.000Z
sciencebeam_judge/evaluation_config.py
elifesciences/sciencebeam-judge
357f1b4266674611b24371224468db268ed4574e
[ "MIT" ]
null
null
null
from typing import Dict, List, NamedTuple, Optional import yaml from sciencebeam_utils.utils.string import parse_list from .utils.string import parse_dict from .utils.config import parse_config_as_dict DEFAULT_EVALUATION_YAML_FILENAME = 'evaluation.yml' class CustomEvaluationFieldSourceConfig(NamedTuple): fi...
28.717172
83
0.69891
306
2,843
6.215686
0.196078
0.037855
0.044164
0.04837
0.188223
0.117245
0.096215
0.037855
0.037855
0
0
0
0.217728
2,843
98
84
29.010204
0.855216
0
0
0.15493
0
0
0.036933
0.007738
0
0
0
0
0
1
0.126761
false
0
0.070423
0.084507
0.521127
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
1f7f6cab7fb89efa7c9a19cc7b28378fd9ef7c81
5,056
py
Python
app.py
OPERANDOH2020/op-web-crawler
8bfa4b4ea56c8a6a978f4888963c6fa05abe8ac0
[ "MIT" ]
null
null
null
app.py
OPERANDOH2020/op-web-crawler
8bfa4b4ea56c8a6a978f4888963c6fa05abe8ac0
[ "MIT" ]
null
null
null
app.py
OPERANDOH2020/op-web-crawler
8bfa4b4ea56c8a6a978f4888963c6fa05abe8ac0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from time import sleep import ConfigParser from selenium import webdriver from selenium.webdriver.common.keys import Keys from flask import Flask import atexit import json from selenium.webdriver.common.desired_capabilities import DesiredCapabilities user_agent = ("Mozill...
32
152
0.697389
657
5,056
5.225266
0.25723
0.058258
0.099039
0.11069
0.375473
0.296242
0.25284
0.25284
0.217011
0.127294
0
0.010465
0.149525
5,056
157
153
32.203822
0.787907
0.048062
0
0.258621
0
0.008621
0.267333
0.076619
0
0
0
0
0
1
0.112069
false
0.12069
0.068966
0
0.275862
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
1f800e5f867be81ae07feb37a07422337010370f
793
py
Python
voxel_globe/download/forms.py
ngageoint/voxel-globe
91f386de652b704942165889c10468b2c4cf4eec
[ "MIT" ]
28
2015-07-27T23:57:24.000Z
2020-04-05T15:10:52.000Z
voxel_globe/download/forms.py
VisionSystemsInc/voxel_globe
6eb3fca5586726428e9d914f7b730ca164c64a52
[ "MIT" ]
50
2016-02-11T15:50:22.000Z
2016-10-27T22:38:27.000Z
voxel_globe/download/forms.py
ngageoint/voxel-globe
91f386de652b704942165889c10468b2c4cf4eec
[ "MIT" ]
8
2015-07-27T19:22:03.000Z
2021-01-04T09:44:48.000Z
from django import forms import voxel_globe.meta.models as models class TiePointForm(forms.Form): image_set = forms.ModelChoiceField(label="Image Set", queryset=models.ImageSet.objects.all().order_by('name')) class PointCloudForm(forms.Form): point_cloud = forms.ModelChoiceField(label="Point Cloud", ...
37.761905
64
0.745271
100
793
5.81
0.31
0.180723
0.223752
0.146299
0.457831
0.421687
0.32358
0.32358
0.32358
0.32358
0
0
0.112232
793
20
65
39.65
0.825284
0
0
0.25
0
0
0.080706
0
0
0
0
0
0
1
0
false
0
0.125
0
0.6875
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f88607e62916b611e81421bc377e95d4d82372e
8,254
py
Python
adminclass.py
desuraj/LMS
48d2983d4a35af86a55c8739a1bf23ee289604d4
[ "MIT" ]
1
2020-05-16T08:47:40.000Z
2020-05-16T08:47:40.000Z
adminclass.py
desuraj/LMS
48d2983d4a35af86a55c8739a1bf23ee289604d4
[ "MIT" ]
null
null
null
adminclass.py
desuraj/LMS
48d2983d4a35af86a55c8739a1bf23ee289604d4
[ "MIT" ]
null
null
null
import pickle from function import* ############################################################################### ################################################################### class Admin: sdist={} fdist={} bdist={} # def Main(self): ############## Admin Menu ##############...
30.014545
314
0.383329
687
8,254
4.289665
0.248908
0.026468
0.014252
0.01018
0.228029
0.228029
0.209026
0.196132
0.196132
0.185612
0
0.010687
0.285801
8,254
274
315
30.124088
0.489228
0.120669
0
0.283951
0
0.006173
0.221311
0.052993
0
0
0
0
0
1
0.166667
false
0
0.012346
0
0.203704
0.12963
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
1f88ac7902be1bb44699426d5b66d1433af7a198
796
py
Python
server/edd/campaign/urls.py
trussworks/edd
1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7
[ "BSD-3-Clause-LBNL" ]
13
2016-11-15T07:33:40.000Z
2021-09-22T12:19:13.000Z
server/edd/campaign/urls.py
trussworks/edd
1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7
[ "BSD-3-Clause-LBNL" ]
40
2017-04-04T15:20:14.000Z
2022-03-31T04:34:37.000Z
server/edd/campaign/urls.py
trussworks/edd
1183c6bb1f04de31d8c4c6ed7b97b051228f3bb7
[ "BSD-3-Clause-LBNL" ]
10
2017-09-21T07:27:01.000Z
2022-03-10T17:02:19.000Z
from django.contrib.auth.decorators import login_required from django.urls import path from . import views app_name = "edd.campaign" urlpatterns = [ path("campaign/", login_required(views.CampaignIndexView.as_view()), name="index"), path( "campaign/<int:page>/", login_required(views.Campaign...
24.875
87
0.619347
85
796
5.658824
0.364706
0.162162
0.18711
0.074844
0.453222
0.424116
0.424116
0.424116
0
0
0
0
0.223618
796
31
88
25.677419
0.778317
0
0
0.37037
0
0
0.190955
0.067839
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f8ac812f9c01f4a2fe98daefb88140477f6e31d
6,834
py
Python
tests/test_xkcd.py
MitalAshok/xxkcd
1db3e6819a3bff28eebffee13dc10be73d030945
[ "MIT" ]
1
2019-01-30T05:52:12.000Z
2019-01-30T05:52:12.000Z
tests/test_xkcd.py
MitalAshok/xxkcd
1db3e6819a3bff28eebffee13dc10be73d030945
[ "MIT" ]
null
null
null
tests/test_xkcd.py
MitalAshok/xxkcd
1db3e6819a3bff28eebffee13dc10be73d030945
[ "MIT" ]
null
null
null
# coding: utf-8 import unittest from xxkcd import xkcd expect = { '353_trans': u'[[ Guy 1 is talking to Guy 2, who is floating in the sky ]]\nGuy 1: You\'re flying! How?\nGuy 2: Python!\nGuy 2: I learned it last night! Everything is so simple!\nGuy 2: Hello world is just \'print "Hello, World!" \'\nGuy 1: I dunn...
96.253521
2,179
0.714369
1,068
6,834
4.530899
0.477528
0.040298
0.051044
0.023765
0.089688
0.061583
0.040504
0.028105
0.028105
0.028105
0
0.025093
0.171934
6,834
70
2,180
97.628571
0.829475
0.021071
0
0
0
0.14
0.453702
0.056395
0
0
0
0
0.28
1
0.14
false
0
0.06
0
0.22
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f8ff44ded19152cd1f19909cc2b72fdff75e886
9,050
py
Python
model.py
stanleefdz/Predict-Flight-Delays
fa6f5be104f128da642ffb500293cc82a2cf55ea
[ "Apache-2.0" ]
null
null
null
model.py
stanleefdz/Predict-Flight-Delays
fa6f5be104f128da642ffb500293cc82a2cf55ea
[ "Apache-2.0" ]
5
2020-11-13T18:45:40.000Z
2022-02-10T01:09:06.000Z
model.py
Siddharths8212376/Predict-Flight-Delays
fa6f5be104f128da642ffb500293cc82a2cf55ea
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Model.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1QPnK5YOh8kRYPOOue6txwrgUqwKOMS0I """ # # Use seaborn for pairplot # !pip install -q seaborn # !pip install tensorflow==2.0.0 # # Use some functions from tensorflow_...
32.092199
96
0.674144
1,161
9,050
5.070629
0.262705
0.030576
0.017836
0.01223
0.49414
0.484627
0.466282
0.439443
0.439443
0.439443
0
0.013483
0.205083
9,050
281
97
32.206406
0.804837
0.397569
0
0.15748
1
0
0.100993
0.003935
0
0
0
0
0
1
0.070866
false
0
0.188976
0.031496
0.330709
0.023622
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
1f9077abf6e0c6cc2f38e698f20dc4f43cdaeec7
2,322
py
Python
video/migrations/0001_initial.py
Sinchard/myvideo
3e2fe3dd6a54d2fcf10cb6995fbf79c6876acd06
[ "Apache-2.0" ]
null
null
null
video/migrations/0001_initial.py
Sinchard/myvideo
3e2fe3dd6a54d2fcf10cb6995fbf79c6876acd06
[ "Apache-2.0" ]
null
null
null
video/migrations/0001_initial.py
Sinchard/myvideo
3e2fe3dd6a54d2fcf10cb6995fbf79c6876acd06
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.3 on 2020-12-03 07:17 from django.db import migrations, models import django.db.models.deletion import modelcluster.fields import wagtail.core.fields class Migration(migrations.Migration): initial = True dependencies = [ ('wagtailcore', '0059_apply_collection_ordering'), ...
40.034483
191
0.586133
221
2,322
6.036199
0.380091
0.035982
0.052474
0.082459
0.466267
0.466267
0.442279
0.442279
0.442279
0.370315
0
0.017282
0.277347
2,322
57
192
40.736842
0.777712
0.01938
0
0.44
1
0
0.151209
0.022418
0
0
0
0
0
1
0
false
0
0.08
0
0.16
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
1f97180530b2ed04bb84d918328d60292a3f51d8
2,891
py
Python
bluedonkey.py
jadonk/BlueDonkey
8406289fec32f89079bcaa01249925fc9797eeb3
[ "MIT" ]
9
2018-06-23T04:23:35.000Z
2020-02-28T00:13:38.000Z
bluedonkey.py
jadonk/BlueDonkey2
8406289fec32f89079bcaa01249925fc9797eeb3
[ "MIT" ]
null
null
null
bluedonkey.py
jadonk/BlueDonkey2
8406289fec32f89079bcaa01249925fc9797eeb3
[ "MIT" ]
7
2018-08-05T21:43:13.000Z
2019-10-22T21:29:41.000Z
#!/usr/bin/env python3 import os, sys, subprocess, socket #import cgroups def start_mjpg_streamer(): print("Starting up mjpg_streamer.") # TODO: Add notification if either mjpg-streamer or # cvfilter_py.so aren't installed # TODO: Detect any error if process exits, # such as the uvcvid...
38.546667
122
0.620892
374
2,891
4.649733
0.470588
0.055204
0.029902
0
0
0
0
0
0
0
0
0.0103
0.261155
2,891
74
123
39.067568
0.803839
0.310273
0
0.042553
0
0.021277
0.180203
0.032995
0
0
0
0.013514
0
1
0.106383
false
0
0.06383
0
0.255319
0.06383
0
0
0
null
0
0
0
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
1f97ba6610ad325e9a71fdf6039d1c208a2ca6d3
6,601
py
Python
models/user.py
linkian209/PyBitWarden
bc686da04a362a99a30a66de1d484fd585300f74
[ "MIT" ]
null
null
null
models/user.py
linkian209/PyBitWarden
bc686da04a362a99a30a66de1d484fd585300f74
[ "MIT" ]
null
null
null
models/user.py
linkian209/PyBitWarden
bc686da04a362a99a30a66de1d484fd585300f74
[ "MIT" ]
null
null
null
"""models.user This Module contains the User Model """ import pyotp from app import db from models import funcs from lib.bitwarden import Bitwarden from sqlalchemy import sql class User(db.Model): """ This model is used to store users. Attributes: id (int): User ID name (str): User's Na...
31.583732
78
0.604757
782
6,601
5.017903
0.235294
0.028542
0.035678
0.03262
0.317533
0.258919
0.215851
0.179409
0.109072
0.109072
0
0.010246
0.305105
6,601
208
79
31.735577
0.845215
0.381609
0
0.129032
0
0
0.048433
0
0
0
0
0
0
1
0.075269
false
0.129032
0.053763
0
0.397849
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
1f98778bdd370067d7107b86c2d901a0d5e52e23
21,457
py
Python
dataProcessor.py
Synapt1x/PythonDataProcessor
49f222cc9bcb5d52738ea1c588054ffc1209a695
[ "MIT" ]
null
null
null
dataProcessor.py
Synapt1x/PythonDataProcessor
49f222cc9bcb5d52738ea1c588054ffc1209a695
[ "MIT" ]
null
null
null
dataProcessor.py
Synapt1x/PythonDataProcessor
49f222cc9bcb5d52738ea1c588054ffc1209a695
[ "MIT" ]
null
null
null
""" Data Processor ============================ Created by: Chris Cadonic For: Dr. Debbie Kelly lab ---------------------------- This program was developed to automatically format input excel data for statistical analysis in the statistical analysis software. """ from Tkinter import * from ttk import Frame,...
43.523327
110
0.586708
2,163
21,457
5.80675
0.253352
0.004379
0.015048
0.004777
0.13758
0.093869
0.08121
0.067357
0.034713
0.034713
0
0.009724
0.295428
21,457
492
111
43.611789
0.821074
0.15855
0
0.116208
0
0
0.1
0.00152
0
0
0
0
0
0
null
null
0
0.021407
null
null
0.033639
0
0
0
null
0
0
0
0
0
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
2f0e37e2412d6a551ccf5728510785e1772123bb
331
py
Python
examples/verilator/mainsim.py
splhack/mantle
42fe81df22f4556f891f77b9c9acfd7e8bbe648b
[ "MIT" ]
33
2018-06-11T22:58:23.000Z
2021-11-22T04:16:36.000Z
examples/verilator/mainsim.py
splhack/mantle
42fe81df22f4556f891f77b9c9acfd7e8bbe648b
[ "MIT" ]
90
2017-08-31T01:12:13.000Z
2021-09-17T04:07:07.000Z
examples/verilator/mainsim.py
splhack/mantle
42fe81df22f4556f891f77b9c9acfd7e8bbe648b
[ "MIT" ]
12
2017-09-01T03:25:36.000Z
2020-10-14T21:43:12.000Z
import os os.environ['MANTLE'] = 'lattice' from magma import * from mantle import And, XOr from simulator import testvectors main = DefineCircuit('main', "a", In(Bit), "b", In(Bit), "c", In(Bit), "d", Out(Bit), 'CLK', In(Bit)) t = And(2)(main.a,main.b) d = XOr(2)(t,main.c) wire(d,main.d) EndCircuit() print(testvecto...
20.6875
101
0.655589
57
331
3.807018
0.45614
0.092166
0
0
0
0
0
0
0
0
0
0.006969
0.132931
331
15
102
22.066667
0.749129
0
0
0
0
0
0.072727
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2f124cc230426b933e42c2bcfc2e6f146b86d29b
37,515
py
Python
onadata/apps/fsforms/models.py
awemulya/fieldsight-kobocat
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
38
2017-02-28T05:39:40.000Z
2019-01-16T04:39:04.000Z
onadata/apps/fsforms/models.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
20
2017-04-27T09:14:27.000Z
2019-01-17T06:35:52.000Z
onadata/apps/fsforms/models.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
5
2017-02-22T12:25:19.000Z
2019-01-15T11:16:40.000Z
from __future__ import unicode_literals import datetime import os import json import re from django.contrib.auth.models import User from django.contrib.contenttypes.fields import GenericRelation from django.contrib.postgres.fields import ArrayField from django.core.exceptions import ValidationError from django.core.ur...
42.010078
195
0.623031
4,350
37,515
5.170575
0.102069
0.012449
0.020007
0.012849
0.466166
0.403477
0.331051
0.287702
0.231149
0.201805
0
0.005188
0.265281
37,515
892
196
42.057175
0.810833
0.087218
0
0.337226
0
0
0.086547
0.021278
0
0
0
0
0
0
null
null
0.00292
0.043796
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
2f12fded422cd0bb550d4da4307709afbd20b8f4
267
py
Python
hardhat/recipes/python/pygit2.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/python/pygit2.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/python/pygit2.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
from .base import PipBaseRecipe class PyGit2Recipe(PipBaseRecipe): def __init__(self, *args, **kwargs): super(PyGit2Recipe, self).__init__(*args, **kwargs) self.depends = ['libgit2'] self.name = 'pygit2' self.version = '0.24.0'
24.272727
59
0.629213
29
267
5.517241
0.655172
0.125
0
0
0
0
0
0
0
0
0
0.038835
0.228464
267
10
60
26.7
0.737864
0
0
0
0
0
0.071161
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2f1a94848149d9852ba258a2caa47bc7cdb7d675
234
py
Python
WiFi/mp3/mp3/urls.py
jpan127/RJD-MP3
8659a12e46021882cce6202befa59d88afe4d7c2
[ "MIT" ]
null
null
null
WiFi/mp3/mp3/urls.py
jpan127/RJD-MP3
8659a12e46021882cce6202befa59d88afe4d7c2
[ "MIT" ]
null
null
null
WiFi/mp3/mp3/urls.py
jpan127/RJD-MP3
8659a12e46021882cce6202befa59d88afe4d7c2
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from django.contrib import admin from django.views.generic import TemplateView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^', include('server.urls'), name='server'), ]
21.272727
53
0.709402
32
234
5.1875
0.53125
0.180723
0
0
0
0
0
0
0
0
0
0
0.141026
234
10
54
23.4
0.825871
0
0
0
0
0
0.107296
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2f1ea0274f54cdd34988d3816e3262d424a5578b
2,189
py
Python
build/lib/dupecheck/chunks.py
spacerockzero/dupecheck-py
33b8ae324eb012ac3f13dfd572ca99ecc7c89f0f
[ "MIT" ]
null
null
null
build/lib/dupecheck/chunks.py
spacerockzero/dupecheck-py
33b8ae324eb012ac3f13dfd572ca99ecc7c89f0f
[ "MIT" ]
null
null
null
build/lib/dupecheck/chunks.py
spacerockzero/dupecheck-py
33b8ae324eb012ac3f13dfd572ca99ecc7c89f0f
[ "MIT" ]
null
null
null
# TODO: use sliding windows instead of chunking. # the chunking method fails when part of a dupe string # crosses the border between chunks import colorama from colorama import Fore from tqdm import trange, tqdm import os colorama.init(autoreset=True) DEFAULT_MIN = 5 DEFAULT_MAX = 10 def striplist(l): # clean ...
26.373494
88
0.617634
293
2,189
4.569966
0.40273
0.065721
0.013443
0
0
0
0
0
0
0
0
0.006361
0.281864
2,189
82
89
26.695122
0.84542
0.21471
0
0
0
0
0.008211
0
0
0
0
0.012195
0.037037
1
0.111111
false
0
0.074074
0.018519
0.277778
0.018519
0
0
0
null
0
0
0
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
2f2152997adf42d8e760a7de3787ec5fd5d33298
995
py
Python
agent/indy_catalyst_agent/messaging/connections/handlers/connection_response_handler.py
blhagadorn/indy-catalyst
c268dba024096d312f541fde40443a1757f21661
[ "Apache-2.0" ]
null
null
null
agent/indy_catalyst_agent/messaging/connections/handlers/connection_response_handler.py
blhagadorn/indy-catalyst
c268dba024096d312f541fde40443a1757f21661
[ "Apache-2.0" ]
null
null
null
agent/indy_catalyst_agent/messaging/connections/handlers/connection_response_handler.py
blhagadorn/indy-catalyst
c268dba024096d312f541fde40443a1757f21661
[ "Apache-2.0" ]
null
null
null
"""Connection response handler.""" from ...base_handler import BaseHandler, BaseResponder, RequestContext from ..messages.connection_response import ConnectionResponse from ..manager import ConnectionManager from ...trustping.messages.ping import Ping class ConnectionResponseHandler(BaseHandler): """Handler clas...
34.310345
86
0.716583
94
995
7.510638
0.478723
0.076487
0
0
0
0
0
0
0
0
0
0
0.203015
995
28
87
35.535714
0.89029
0.097487
0
0
0
0
0.074124
0.033693
0
0
0
0
0.083333
1
0
false
0
0.333333
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
0
1
0
0
0
0
1
2f21e10e61469bdee1efc3be184b4578a9ea7fae
7,462
py
Python
self_supervised/vision/dino.py
jwuphysics/self_supervised
57d168a2b076dab19dc6f3557357729abe7fb5a6
[ "Apache-2.0" ]
243
2020-09-15T20:31:59.000Z
2022-03-30T01:41:01.000Z
self_supervised/vision/dino.py
justopit/self_supervised
af20e89b35e687d669d58e4629101ad45b6e7407
[ "Apache-2.0" ]
51
2020-09-15T23:26:50.000Z
2022-03-30T05:51:06.000Z
self_supervised/vision/dino.py
justopit/self_supervised
af20e89b35e687d669d58e4629101ad45b6e7407
[ "Apache-2.0" ]
21
2020-09-21T02:43:47.000Z
2022-03-23T05:43:22.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/15 - dino.ipynb (unless otherwise specified). __all__ = ['DINOHead', 'get_dino_aug_pipelines', 'DINOModel', 'DINO'] # Cell from fastai.vision.all import * from ..augmentations import * from ..layers import * from ..models.vision_transformer import * # Cell class DINOHe...
41.226519
130
0.61324
1,039
7,462
4.218479
0.27719
0.028747
0.019165
0.014374
0.146247
0.098334
0.085786
0.085786
0.067077
0.067077
0
0.021515
0.271241
7,462
181
131
41.226519
0.78448
0.1974
0
0.065574
1
0
0.062088
0.010375
0
0
0
0.005525
0
1
0.122951
false
0
0.032787
0.008197
0.213115
0.032787
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
2f23a001c9ac149431bd7f0b9a0dc728a27e308c
468
py
Python
run.py
nbc-pet-task/functional.py
5380259ef7a4925c784e973b63304aa24c4f496d
[ "MIT" ]
2
2017-10-15T07:03:51.000Z
2017-10-16T04:59:24.000Z
run.py
nbc-pet-task/functional.py
5380259ef7a4925c784e973b63304aa24c4f496d
[ "MIT" ]
null
null
null
run.py
nbc-pet-task/functional.py
5380259ef7a4925c784e973b63304aa24c4f496d
[ "MIT" ]
1
2019-11-15T05:25:00.000Z
2019-11-15T05:25:00.000Z
"""test run """ def fun(*args): print(args) fun(1,2,3,4,5) def add(a,b,c): return a+b+c p = (1,2,3) q = (5,6,7) print(p+q) #print(type(*p)) print(add(*p)) print(add.__code__.co_argcount) def curry(func): len_func = func.__code__.co_argcount def func_a(*a): len_a = len(a) def func...
13.764706
40
0.557692
91
468
2.692308
0.318681
0.02449
0.134694
0.138776
0
0
0
0
0
0
0
0.058824
0.237179
468
34
41
13.764706
0.627451
0.051282
0
0
0
0
0
0
0
0
0
0
0
1
0.227273
false
0
0
0.090909
0.409091
0.272727
0
0
0
null
0
0
0
0
0
0
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
2f2d8c2df99fcaa97aba0e57b827321fea44d6a1
404
py
Python
archived/analysis/analyses/postgres-stats/process.py
HazyResearch/dd-genomics
3e3f272327d4c29daa53347b7ddb20ea1a9ae78a
[ "Apache-2.0" ]
13
2015-04-03T04:55:54.000Z
2021-11-08T06:19:09.000Z
archived/analysis/analyses/postgres-stats/process.py
HazyResearch/dd-genomics
3e3f272327d4c29daa53347b7ddb20ea1a9ae78a
[ "Apache-2.0" ]
85
2015-04-29T02:35:42.000Z
2015-08-03T18:37:41.000Z
archived/analysis/analyses/postgres-stats/process.py
HazyResearch/dd-genomics
3e3f272327d4c29daa53347b7ddb20ea1a9ae78a
[ "Apache-2.0" ]
7
2015-04-02T23:38:25.000Z
2022-02-18T12:22:44.000Z
#!/usr/bin/env python # A script for seeing basic statistics about the number and type of gene mentions extracted # Author: Alex Ratner <ajratner@stanford.edu> # Created: 2015-01-25 import sys from dd_analysis_utils import process_pg_statistics if __name__ == '__main__': if len(sys.argv) < 3: print "Process.py: ...
31.076923
91
0.752475
62
404
4.677419
0.806452
0.072414
0.131034
0
0
0
0
0
0
0
0
0.031977
0.148515
404
12
92
33.666667
0.811047
0.430693
0
0
0
0
0.185841
0
0
0
0
0
0
0
null
null
0
0.285714
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2f2dd2241eae710e54c8ba3861a2ddcdd3b517f0
400
py
Python
modules/finance_range.py
redahe/opportuner
b374913a511a6780e7d890f3e93476aa30593dfc
[ "Apache-2.0" ]
2
2017-01-06T23:28:18.000Z
2017-01-07T00:45:52.000Z
modules/finance_range.py
redahe/opportuner
b374913a511a6780e7d890f3e93476aa30593dfc
[ "Apache-2.0" ]
null
null
null
modules/finance_range.py
redahe/opportuner
b374913a511a6780e7d890f3e93476aa30593dfc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys import json for line in sys.stdin.readlines(): data = json.loads(line) symbol = data.pop('SYMBOL') try: pe = float(data['PE'] or 1000) except: pe = 1000 try: dy = float(data['DY'] or 0) except: dy = 0 score = 1.0/(pe)*10 + dy ...
18.181818
41
0.5325
59
400
3.610169
0.474576
0.084507
0
0
0
0
0
0
0
0
0
0.050909
0.3125
400
21
42
19.047619
0.723636
0.04
0
0.235294
0
0
0.036554
0
0
0
0
0
0
0
null
null
0
0.117647
null
null
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2f3c7ca726aba4f4067e645e01c1c0eae0e1ebb9
1,121
py
Python
setup.py
darkslab/Crawler
5d35c1583b5d48992eed0d593998bd84e37fc192
[ "MIT" ]
null
null
null
setup.py
darkslab/Crawler
5d35c1583b5d48992eed0d593998bd84e37fc192
[ "MIT" ]
null
null
null
setup.py
darkslab/Crawler
5d35c1583b5d48992eed0d593998bd84e37fc192
[ "MIT" ]
null
null
null
from pathlib import Path from setuptools import find_packages, setup long_description: str = (Path(__file__).parent.resolve() / "README.md").read_text( encoding="utf-8" ) setup( name="crawler", version="0.0.0", description="A Web Crawler", long_description=long_description, long_description_co...
28.025
82
0.603033
123
1,121
5.341463
0.634146
0.091324
0.057839
0.091324
0
0
0
0
0
0
0
0.023364
0.236396
1,121
39
83
28.74359
0.744159
0
0
0.081081
0
0
0.392507
0
0
0
0
0
0
1
0
true
0
0.054054
0
0.054054
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
2f3f9f6b6ae9f8fb6ab25ecd01a5ef36b71ce931
7,675
py
Python
xicam/gui/connections/__init__.py
JulReinhardt/Xi-cam
031970e7de4c34da3181a10e2d897b08df0b874f
[ "BSD-3-Clause-LBNL" ]
6
2020-04-26T19:09:09.000Z
2022-02-25T19:35:54.000Z
xicam/gui/connections/__init__.py
JulReinhardt/Xi-cam
031970e7de4c34da3181a10e2d897b08df0b874f
[ "BSD-3-Clause-LBNL" ]
81
2020-04-07T15:19:23.000Z
2022-02-03T19:22:37.000Z
xicam/gui/connections/__init__.py
JulReinhardt/Xi-cam
031970e7de4c34da3181a10e2d897b08df0b874f
[ "BSD-3-Clause-LBNL" ]
5
2020-06-18T19:24:58.000Z
2022-02-26T08:14:14.000Z
import requests from qtpy.QtCore import * from qtpy.QtGui import * from qtpy.QtWidgets import * from xicam.gui.static import path from xicam.gui.widgets.searchlineedit import SearchLineEdit from copy import deepcopy from xicam.plugins import SettingsPlugin, manager class ConnectionSettingsPlugin(SettingsPlugin): ...
36.899038
120
0.637394
720
7,675
6.731944
0.283333
0.041263
0.014029
0.010522
0.141531
0.118011
0.118011
0.100268
0.076336
0.076336
0
0.00157
0.25316
7,675
207
121
37.077295
0.844034
0.036352
0
0.136646
0
0
0.052826
0
0
0
0
0
0
1
0.080745
false
0.10559
0.049689
0.006211
0.173913
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
2f467df222f8f823437f38b18c3433e12a218294
1,752
py
Python
app/auth/login.py
ishiundu/bucketlist-cp2
fc3aa599632bcdc479262ad582c3542aa2a872af
[ "MIT" ]
3
2017-12-23T10:08:42.000Z
2018-12-14T11:10:53.000Z
app/auth/login.py
ishiundu/bucketlist-cp2
fc3aa599632bcdc479262ad582c3542aa2a872af
[ "MIT" ]
null
null
null
app/auth/login.py
ishiundu/bucketlist-cp2
fc3aa599632bcdc479262ad582c3542aa2a872af
[ "MIT" ]
null
null
null
import json import jwt from app.models.bucketlist_models import Users from config import Config from datetime import datetime, timedelta from flask import jsonify, request from flask_restful import abort, Resource class Index(Resource): def get(self): return({"message": "Welcome to the Bucketlist API" ...
30.736842
74
0.557648
195
1,752
4.969231
0.441026
0.033024
0.06192
0.043344
0.119711
0.047472
0
0
0
0
0
0.015734
0.347032
1,752
56
75
31.285714
0.831294
0
0
0.090909
0
0
0.215753
0
0
0
0
0
0
1
0.068182
false
0.113636
0.159091
0.045455
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2f4740ae739a4f351633d58dffee031bcd091ea9
1,012
py
Python
irop_hook.py
PLSysSec/pitchfork-angr
8a3d3253d465aa327f93075d6684d5ad03793283
[ "BSD-3-Clause" ]
5
2020-05-12T22:27:04.000Z
2022-03-18T03:56:42.000Z
irop_hook.py
PLSysSec/pitchfork-angr
8a3d3253d465aa327f93075d6684d5ad03793283
[ "BSD-3-Clause" ]
null
null
null
irop_hook.py
PLSysSec/pitchfork-angr
8a3d3253d465aa327f93075d6684d5ad03793283
[ "BSD-3-Clause" ]
null
null
null
import angr from taint import is_tainted, taintedUnconstrainedBits import logging l = logging.getLogger(__name__) class IROpHook(angr.SimStatePlugin): """ Allows hooking the computation of operations performed in the symbolic execution. (requires our fork of angr to actually respect the hook) """ ...
36.142857
98
0.682806
130
1,012
5.238462
0.623077
0.026432
0
0
0
0
0
0
0
0
0
0
0.240119
1,012
27
99
37.481481
0.885566
0.486166
0
0
0
0
0.013245
0
0
0
0
0
0
1
0.166667
false
0
0.25
0.083333
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2f4fb28085175014b43ebf8168d18e11e7bda40f
511
py
Python
setup.py
akaraspt/ms-gait-calibrate
60bbad5dc4718456796b7ad6f6683d8b73180b77
[ "Apache-2.0" ]
2
2019-07-31T02:18:47.000Z
2022-03-06T21:59:48.000Z
setup.py
akaraspt/ms-gait-calibrate
60bbad5dc4718456796b7ad6f6683d8b73180b77
[ "Apache-2.0" ]
null
null
null
setup.py
akaraspt/ms-gait-calibrate
60bbad5dc4718456796b7ad6f6683d8b73180b77
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages install_requires = [ 'numpy', 'pandas', 'scipy', 'matplotlib', 'scikit-learn', 'flask', 'flask-script', 'flask-bootstrap', 'werkzeug', 'bokeh', 'Jinja2', ] setup( name='gait-calibrate', version='1.1', description='A Py...
20.44
69
0.643836
53
511
6.09434
0.754717
0.139319
0.117647
0.167183
0
0
0
0
0
0
0
0.019901
0.213307
511
25
70
20.44
0.783582
0
0
0
0
0
0.375
0.042969
0
0
0
0
0
1
0
false
0
0.043478
0
0.043478
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
2f55aa8334cf0ef2c636701fc900f672fd3e6265
3,880
py
Python
Chapter_14/simulation_model.py
pauldevos/Mastering-Object-Oriented-Python-Second-Edition
71eab4406364365d902407d5e1774b1bf52e8430
[ "MIT" ]
108
2019-07-05T21:18:30.000Z
2022-03-05T23:40:24.000Z
Chapter_14/simulation_model.py
pauldevos/Mastering-Object-Oriented-Python-Second-Edition
71eab4406364365d902407d5e1774b1bf52e8430
[ "MIT" ]
1
2020-05-08T15:01:00.000Z
2020-07-21T21:15:09.000Z
Chapter_14/simulation_model.py
pauldevos/Mastering-Object-Oriented-Python-Second-Edition
71eab4406364365d902407d5e1774b1bf52e8430
[ "MIT" ]
85
2019-06-15T01:27:19.000Z
2022-03-20T22:14:10.000Z
#!/usr/bin/env python3.7 """ Mastering Object-Oriented Python 2e Code Examples for Mastering Object-Oriented Python 2nd Edition Chapter 14. Example 1 -- simulation model. """ from dataclasses import dataclass, astuple, asdict, field from typing import Tuple, Iterator from pathlib import Path import csv # Mock Objec...
20.972973
67
0.590464
462
3,880
4.787879
0.372294
0.036618
0.019892
0.025316
0.087251
0.087251
0.068264
0.068264
0.068264
0.052893
0
0.023179
0.299485
3,880
184
68
21.086957
0.790655
0.168299
0
0.23301
0
0
0.070659
0.034221
0
0
0
0
0
1
0.106796
false
0.126214
0.048544
0.038835
0.495146
0.009709
0
0
0
null
0
0
0
0
0
0
0
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
2f575c5254a945c6afc7862868f6104d22e56c90
450
py
Python
Medio 2/ex043.py
Gustavsantos/python1
5520f2d2ee591157942008fdcd6bd42eb521f1a6
[ "MIT" ]
null
null
null
Medio 2/ex043.py
Gustavsantos/python1
5520f2d2ee591157942008fdcd6bd42eb521f1a6
[ "MIT" ]
null
null
null
Medio 2/ex043.py
Gustavsantos/python1
5520f2d2ee591157942008fdcd6bd42eb521f1a6
[ "MIT" ]
null
null
null
peso = float(input('Qual é seu peso? (KG) ')) altura = float(input('Qual é sua altura? (M) ')) imc = peso / (altura * altura) print('Seu imc é de {:.1f}'.format(imc)) if imc <= 18.5: print('Você esta abaixo do peso!') elif imc <= 25: print('Seu peso é ideal!') elif imc <= 30: print('Você esta com sobrepeso...
30
55
0.624444
71
450
3.957746
0.478873
0.096085
0.13879
0.106762
0
0
0
0
0
0
0
0.027778
0.2
450
14
56
32.142857
0.752778
0
0
0
0
0
0.457778
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
2f5ee15908c8cdf5f8d195a0bf08d4dedf6d70b9
5,331
py
Python
fraud_poc/live/predict.py
leosmerling-hopeit/fraud-poc
cd4448d0a957e5fd5ebfadda46b8100db30aca90
[ "Apache-2.0" ]
2
2020-08-03T13:14:07.000Z
2021-05-20T19:43:09.000Z
fraud_poc/live/predict.py
leosmerling-hopeit/fraud-poc
cd4448d0a957e5fd5ebfadda46b8100db30aca90
[ "Apache-2.0" ]
1
2022-02-26T09:12:35.000Z
2022-02-26T09:12:35.000Z
fraud_poc/live/predict.py
leosmerling-hopeit/fraud-poc
cd4448d0a957e5fd5ebfadda46b8100db30aca90
[ "Apache-2.0" ]
3
2020-12-18T13:24:22.000Z
2021-05-20T19:43:10.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: 08_predict.ipynb (unless otherwise specified). __all__ = ['OrderInfo', '__steps__', '__api__', 'logger', 'model', 'db', 'features', '__init_event__', 'lookup_features', 'predict', '__postprocess__'] # Cell from typing import Dict, Optional from datetime import da...
33.955414
116
0.685237
748
5,331
4.570856
0.22861
0.07897
0.038608
0.026323
0.13308
0.056742
0.056742
0.056742
0.056742
0.056742
0
0.003744
0.198462
5,331
156
117
34.173077
0.796396
0.024011
0
0.064
1
0
0.267861
0.098787
0
0
0
0
0.008
1
0.032
false
0
0.144
0
0.312
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
2f668e52fc2da0077783cc76b0ca4f05c36541aa
7,534
py
Python
src/morphforgecontrib/indev/meshtools/core.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/morphforgecontrib/indev/meshtools/core.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/morphforgecontrib/indev/meshtools/core.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
34.718894
106
0.640297
913
7,534
5.106243
0.303395
0.030674
0.032175
0.014586
0.106821
0.087945
0.078936
0.078936
0.061776
0.061776
0
0.00324
0.262543
7,534
216
107
34.87963
0.835853
0.226175
0
0.047244
0
0
0.032815
0
0
0
0
0
0.055118
0
null
null
0.007874
0.070866
null
null
0.023622
0
0
0
null
0
0
0
0
0
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
2f683615ec49e72f78a11474c79106341815335d
419
py
Python
image_rw_matplot.py
lotlucky/opencv
b6229482b5e7e1c5967b5ba5f8c4c4882bbbdfd3
[ "MIT" ]
null
null
null
image_rw_matplot.py
lotlucky/opencv
b6229482b5e7e1c5967b5ba5f8c4c4882bbbdfd3
[ "MIT" ]
null
null
null
image_rw_matplot.py
lotlucky/opencv
b6229482b5e7e1c5967b5ba5f8c4c4882bbbdfd3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @File : image_rw_matplot.py # @Date : 2019-03-14 # @Author : wudan import cv2 import numpy as pd from matplotlib import pyplot as plt """ CV2处理图像使用的是BGR模式,而matplotlib使用的是RGB模式 """ img = cv2.imread('zhuzhu_1.jpeg',1) b,g,r = cv2.split(img) img2 = cv2.merge([r,g,b]...
18.217391
41
0.673031
67
419
4.164179
0.701493
0.071685
0
0
0
0
0
0
0
0
0
0.067416
0.150358
419
22
42
19.045455
0.716292
0.288783
0
0
0
0
0.053279
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
2f683a36d165b788e0af51185c0426c9653bdec2
908
py
Python
network-delay-time/network-delay-time.py
rams1996/Graphs
4107e0b8671e8ca32e8ac74b7b606e00f036ecef
[ "MIT" ]
null
null
null
network-delay-time/network-delay-time.py
rams1996/Graphs
4107e0b8671e8ca32e8ac74b7b606e00f036ecef
[ "MIT" ]
null
null
null
network-delay-time/network-delay-time.py
rams1996/Graphs
4107e0b8671e8ca32e8ac74b7b606e00f036ecef
[ "MIT" ]
null
null
null
class Solution:    def networkDelayTime(self, times: List[List[int]], N: int, K: int) -> int:        import heapq        from collections import defaultdict        createGraph=defaultdict(list)        for i in times:            createGraph[i[0]].append((i[2],i[1]))        heap=[]        heapq.heapify(heap)    ...
30.266667
78
0.511013
102
908
4.54902
0.411765
0.05819
0.038793
0.086207
0
0
0
0
0
0
0
0.019264
0.371145
908
29
79
31.310345
0.793345
0.01652
0
0
0
0
0.004489
0
0
0
0
0
0
0
null
null
0
0.08
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
2f70c6d5a41e6e53f94e0a5b3e18d1cb87ecb479
6,015
py
Python
source/run_tests.py
andrzejgorski/pascalis
bf2e64627bfa4be1d57a9f9d25dcabb2b11848c7
[ "BSD-3-Clause" ]
2
2016-05-06T09:24:55.000Z
2016-05-11T07:18:17.000Z
source/run_tests.py
andrzejgorski/pascalis
bf2e64627bfa4be1d57a9f9d25dcabb2b11848c7
[ "BSD-3-Clause" ]
null
null
null
source/run_tests.py
andrzejgorski/pascalis
bf2e64627bfa4be1d57a9f9d25dcabb2b11848c7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import subprocess import re tests_raw = subprocess.check_output(["ls", "tests"]) tests = re.sub("[^\w]", " ", tests_raw).split() OUTPUTS = { 'program': "1", 'test_if': "1", 'test_if_false': "", 'test_if_el': "1", 'test_if_el_false': "0", 'test_eq_int': "1", 'test_eq...
34.176136
114
0.646717
837
6,015
4.242533
0.273596
0.030977
0.033793
0.013517
0.159955
0.086173
0.049
0.015207
0
0
0
0.05146
0.185869
6,015
175
115
34.371429
0.673678
0.003325
0
0.062893
0
0.012579
0.532199
0.164164
0
0
0
0
0
0
null
null
0.012579
0.012579
null
null
0.09434
0
0
0
null
0
0
0
0
0
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
2f794e1ee912fae320377c5e9cf0381ca4341e98
5,888
py
Python
gridspectra.py
mahdiqezlou/vw_spectra
975b125a03b3f8505e01db7fd4b4c3c609271499
[ "MIT" ]
null
null
null
gridspectra.py
mahdiqezlou/vw_spectra
975b125a03b3f8505e01db7fd4b4c3c609271499
[ "MIT" ]
3
2019-12-09T20:49:57.000Z
2019-12-10T20:09:01.000Z
gridspectra.py
mahdiqezlou/vw_spectra
975b125a03b3f8505e01db7fd4b4c3c609271499
[ "MIT" ]
1
2019-12-03T02:05:29.000Z
2019-12-03T02:05:29.000Z
# -*- coding: utf-8 -*- """Class to generate spectra in the positions where there is a DLA, as known from the grid generation.""" from __future__ import print_function import numpy as np import hdfsim import h5py import vw_spectra import os.path as path class GridSpectra(vw_spectra.VWSpectra): """Generate metal l...
42.978102
166
0.62517
859
5,888
4.188591
0.223516
0.027793
0.023346
0.016676
0.638132
0.638132
0.601445
0.554753
0.535297
0.51751
0
0.020275
0.246094
5,888
136
167
43.294118
0.790268
0.256284
0
0.47191
1
0
0.053108
0.00974
0
0
0
0
0
1
0.078652
false
0
0.067416
0
0.213483
0.05618
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
2f80956f07b700969640fed00997da5621fd13e5
8,584
py
Python
p2ner/components/scheduler/spullclient/spullclient/core.py
schristakidis/p2ner
46694a41e8c1ebdc28f520b58c126da8785f3eed
[ "Apache-2.0" ]
2
2015-06-01T22:04:34.000Z
2017-07-06T09:35:00.000Z
p2ner/components/scheduler/spullclient/spullclient/core.py
schristakidis/p2ner
46694a41e8c1ebdc28f520b58c126da8785f3eed
[ "Apache-2.0" ]
null
null
null
p2ner/components/scheduler/spullclient/spullclient/core.py
schristakidis/p2ner
46694a41e8c1ebdc28f520b58c126da8785f3eed
[ "Apache-2.0" ]
1
2019-11-26T10:22:35.000Z
2019-11-26T10:22:35.000Z
# -*- coding: utf-8 -*- # Copyright 2012 Loris Corazza, Sakis Christakidis # # 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 # # U...
39.740741
155
0.601002
899
8,584
5.737486
0.254727
0.032959
0.030244
0.020357
0.098876
0.063591
0.025591
0.025591
0.025591
0.025591
0
0.006365
0.30452
8,584
215
156
39.925581
0.857621
0.159832
0
0.126667
0
0
0.037925
0
0
0
0
0
0
0
null
null
0.006667
0.073333
null
null
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2f81097a2dd1dba17013d55995724f205f4ef2ec
1,609
py
Python
test/m366_22_test.py
schwehr/ais-areanotice-py
4d09beba37533c7ddc3d2bb9260be74989d44ed2
[ "Apache-2.0" ]
7
2016-08-02T04:49:08.000Z
2021-03-10T05:16:49.000Z
test/m366_22_test.py
schwehr/ais-areanotice-py
4d09beba37533c7ddc3d2bb9260be74989d44ed2
[ "Apache-2.0" ]
4
2015-03-31T20:47:03.000Z
2015-04-23T20:48:49.000Z
test/m366_22_test.py
schwehr/ais-areanotice-py
4d09beba37533c7ddc3d2bb9260be74989d44ed2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Test USCG specific 8:367:22 area notice message Version 23 samples.""" import datetime import unittest from ais_area_notice import m366_22 # from m366_22 import AreaNotice # from m366_22 import AreaNoticeCircle # from m366_22 import AreaNoticeRectangle # from m366_22 import AreaNoticeSector ...
29.796296
73
0.734618
224
1,609
5.142857
0.410714
0.0625
0.118056
0.097222
0.043403
0.043403
0.043403
0
0
0
0
0.081081
0.149161
1,609
53
74
30.358491
0.760409
0.284649
0
0
0
0.033333
0.0837
0.048458
0
0
0
0.018868
0.4
1
0.1
false
0
0.1
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