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
10f26663cd986d8604a6a972dc0eca5035e3b412
178
py
Python
chainlet_unittests/__init__.py
maxfischer2781/chainlet
4e17f9992b4780bd0d9309202e2847df640bffe8
[ "MIT" ]
1
2017-11-22T21:23:34.000Z
2017-11-22T21:23:34.000Z
chainlet_unittests/__init__.py
maxfischer2781/chainlet
4e17f9992b4780bd0d9309202e2847df640bffe8
[ "MIT" ]
10
2017-02-16T16:20:09.000Z
2018-03-12T16:57:38.000Z
test_include/__init__.py
maxfischer2781/include
d8b0404f4996b6abcd39fdebf282b31fad8bb6f5
[ "MIT" ]
null
null
null
# monkey patch unittest2 for old python versions try: import unittest2 as _unittest except ImportError: pass else: import sys sys.modules['unittest'] = _unittest
19.777778
48
0.730337
22
178
5.818182
0.772727
0
0
0
0
0
0
0
0
0
0
0.014286
0.213483
178
8
49
22.25
0.9
0.258427
0
0
0
0
0.061538
0
0
0
0
0
0
1
0
true
0.142857
0.428571
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
10fa4c9c8d64166b88e8b887da5b1eba567412ef
27
py
Python
src/data/__init__.py
0shimax/pytorch-EncNet
75f74bc1760a40e05cf6fbda5007a7364b4634ef
[ "MIT" ]
16
2018-06-02T05:04:50.000Z
2020-12-28T14:00:19.000Z
src/data/__init__.py
universebang/pytorch-EncNet
75f74bc1760a40e05cf6fbda5007a7364b4634ef
[ "MIT" ]
null
null
null
src/data/__init__.py
universebang/pytorch-EncNet
75f74bc1760a40e05cf6fbda5007a7364b4634ef
[ "MIT" ]
4
2018-09-12T08:03:38.000Z
2019-03-03T09:39:28.000Z
from . import data_loader
13.5
26
0.777778
4
27
5
1
0
0
0
0
0
0
0
0
0
0
0
0.185185
27
1
27
27
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
10fd684ce64bad36430d937587e708e42e013414
1,099
py
Python
translate/ir.py
kinke/autowrap
2f042df3f292aa39b1da0b9607fbe3424f56ff4a
[ "BSD-3-Clause" ]
47
2019-07-16T10:38:07.000Z
2022-03-30T16:34:24.000Z
translate/ir.py
kinke/autowrap
2f042df3f292aa39b1da0b9607fbe3424f56ff4a
[ "BSD-3-Clause" ]
199
2019-06-17T23:24:40.000Z
2021-06-16T16:41:36.000Z
translate/ir.py
kinke/autowrap
2f042df3f292aa39b1da0b9607fbe3424f56ff4a
[ "BSD-3-Clause" ]
7
2019-09-13T18:03:49.000Z
2022-01-17T03:53:00.000Z
from dataclasses import dataclass import typing @dataclass class AutowrapTest: name: str statements: typing.List[typing.Any] @dataclass class Assertion: lhs: typing.Any rhs: typing.Any @dataclass class Import: module: str importees: typing.List[str] @dataclass class FunctionCall: """ A function call. """ receiver: typing.Any args: typing.List[typing.Any] @dataclass class NumLiteral: value: int @dataclass class StringLiteral: value: str @dataclass class BytesLiteral: value: bytes @dataclass class Assignment: lhs: typing.Any rhs: typing.Any @dataclass class Sequence: value: typing.List[typing.Any] @dataclass class IfPython: block: typing.List[typing.Any] @dataclass class IfPyd: block: typing.List[typing.Any] @dataclass class IfPynih: block: typing.List[typing.Any] @dataclass class ShouldThrow: exception: str block: typing.List[typing.Any] @dataclass class Attribute: instance: typing.Any attribute: typing.Any @dataclass class Index: name: str index: int
12.348315
39
0.696087
130
1,099
5.884615
0.307692
0.27451
0.235294
0.300654
0.427451
0.427451
0.298039
0.099346
0
0
0
0
0.214741
1,099
88
40
12.488636
0.886443
0.014559
0
0.454545
0
0
0
0
0
0
0
0
0.018182
1
0
true
0
0.072727
0
0.763636
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
5
80149d6a34d187a315bcad5b917e91038ede1470
147
py
Python
vote/serializers/__init__.py
The-Politico/politico-civic-vote
49348f6c8137c07e4602da184aa500cbcc09affc
[ "MIT" ]
null
null
null
vote/serializers/__init__.py
The-Politico/politico-civic-vote
49348f6c8137c07e4602da184aa500cbcc09affc
[ "MIT" ]
4
2018-06-27T16:56:29.000Z
2021-06-10T20:41:56.000Z
vote/serializers/__init__.py
The-Politico/politico-civic-vote
49348f6c8137c07e4602da184aa500cbcc09affc
[ "MIT" ]
null
null
null
# flake8: noqa from .delegates import DelegatesSerializer from .electoral_votes import ElectoralVotesSerializer from .votes import VotesSerializer
29.4
53
0.863946
15
147
8.4
0.666667
0.174603
0
0
0
0
0
0
0
0
0
0.007576
0.102041
147
4
54
36.75
0.94697
0.081633
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
802dd5770bb56c1c94ef30f2dff06b3b30cee8bf
224
py
Python
content/utils.py
josemlp91/django-landingcms
9d9270204369e9663ff15eb0bd4c4093b3727c6c
[ "Apache-2.0" ]
null
null
null
content/utils.py
josemlp91/django-landingcms
9d9270204369e9663ff15eb0bd4c4093b3727c6c
[ "Apache-2.0" ]
null
null
null
content/utils.py
josemlp91/django-landingcms
9d9270204369e9663ff15eb0bd4c4093b3727c6c
[ "Apache-2.0" ]
null
null
null
from loremipsum import generate_paragraph from django.utils.text import Truncator def generate_loremipsum(len): sentences_count, words_count, paragraph = generate_paragraph() return Truncator(paragraph).chars(len)
28
66
0.8125
27
224
6.555556
0.592593
0.19209
0
0
0
0
0
0
0
0
0
0
0.120536
224
7
67
32
0.898477
0
0
0
1
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
8056e500027d4ef4a64a8f40f39dc5e3eb4e7c96
74
py
Python
freeorion/repositories/empire_repository.py
Rydra/freeorion-py
61d13dad4be5bafb0d3ee9e3c3704b0c3c1d6fc9
[ "MIT" ]
null
null
null
freeorion/repositories/empire_repository.py
Rydra/freeorion-py
61d13dad4be5bafb0d3ee9e3c3704b0c3c1d6fc9
[ "MIT" ]
null
null
null
freeorion/repositories/empire_repository.py
Rydra/freeorion-py
61d13dad4be5bafb0d3ee9e3c3704b0c3c1d6fc9
[ "MIT" ]
null
null
null
class EmpireRepository: def get_source(self, empire_id): pass
18.5
36
0.689189
9
74
5.444444
1
0
0
0
0
0
0
0
0
0
0
0
0.243243
74
3
37
24.666667
0.875
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
337db377a54446ea6d05a8b177c943ee4b2801aa
110
py
Python
doc/sphinxext/numpydoc/tests/test_phantom_import.py
ivanov/numpy
6d2665626e40f346bb5af8d780579f5a429ff9ba
[ "BSD-3-Clause" ]
null
null
null
doc/sphinxext/numpydoc/tests/test_phantom_import.py
ivanov/numpy
6d2665626e40f346bb5af8d780579f5a429ff9ba
[ "BSD-3-Clause" ]
null
null
null
doc/sphinxext/numpydoc/tests/test_phantom_import.py
ivanov/numpy
6d2665626e40f346bb5af8d780579f5a429ff9ba
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, absolute_import import numpydoc.phantom_import # No tests at the moment...
18.333333
48
0.809091
15
110
5.533333
0.8
0
0
0
0
0
0
0
0
0
0
0
0.136364
110
5
49
22
0.873684
0.227273
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
339523f2751b398bedc78259d5061878442b74be
171
py
Python
presidio-analyzer/tests/__init__.py
kant/presidio
af7d82bde7e978313a11a7281eac961697bbe164
[ "MIT" ]
null
null
null
presidio-analyzer/tests/__init__.py
kant/presidio
af7d82bde7e978313a11a7281eac961697bbe164
[ "MIT" ]
null
null
null
presidio-analyzer/tests/__init__.py
kant/presidio
af7d82bde7e978313a11a7281eac961697bbe164
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.path.dirname(os.path.dirname( os.path.abspath(__file__)))+"/analyzer") from analyzer import matcher match = matcher.Matcher()
21.375
48
0.754386
25
171
5
0.48
0.144
0.208
0.24
0.256
0
0
0
0
0
0
0
0.105263
171
7
49
24.428571
0.816993
0
0
0
0
0
0.052632
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
3396efc6aa5d3cd67bc7d4cbd49c49bd33c89cc9
86
py
Python
backend/meertime/settings/slack.py
gravitationalwavedc/meertime_dataportal
de06814d5b456c12ebd77d76eb38801458c97d26
[ "MIT" ]
1
2020-10-26T02:48:06.000Z
2020-10-26T02:48:06.000Z
backend/meertime/settings/slack.py
gravitationalwavedc/meertime_dataportal
de06814d5b456c12ebd77d76eb38801458c97d26
[ "MIT" ]
null
null
null
backend/meertime/settings/slack.py
gravitationalwavedc/meertime_dataportal
de06814d5b456c12ebd77d76eb38801458c97d26
[ "MIT" ]
null
null
null
from meertime.settings import env SLACK_WEBHOOK = env("SLACK_WEBHOOK", default=None)
21.5
50
0.802326
12
86
5.583333
0.75
0.238806
0.447761
0
0
0
0
0
0
0
0
0
0.104651
86
3
51
28.666667
0.87013
0
0
0
0
0
0.151163
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
33b0f0b6114793c81a4534171c55b51f83b62506
1,983
py
Python
counts/counts_to_excel.py
jasondraether/Aggies4Health
021d32bea1fb0b9aa426b760257bdf248b12e459
[ "MIT" ]
null
null
null
counts/counts_to_excel.py
jasondraether/Aggies4Health
021d32bea1fb0b9aa426b760257bdf248b12e459
[ "MIT" ]
null
null
null
counts/counts_to_excel.py
jasondraether/Aggies4Health
021d32bea1fb0b9aa426b760257bdf248b12e459
[ "MIT" ]
null
null
null
import os import pandas as pd # Just used to gather counts of file objects into a cohesive csv file path_to_files = '../../counts/' df_dict = { 'participant': [], 'file_name': [], 'source': [], 'count': [], 'type': [] } with open(os.path.join(path_to_files, 'fitbit_csv_counts.txt'), 'r') as f: for line in f.readlines(): _, count, fp_raw = line.split(' ') pt, src, fname = fp_raw.strip().split('/') df_dict['participant'].append(pt) df_dict['file_name'].append(fname) df_dict['source'].append(src) df_dict['count'].append(int(count)) df_dict['type'].append('.csv') with open(os.path.join(path_to_files, 'pmsys_csv_counts.txt'), 'r') as f: for line in f.readlines(): _, count, fp_raw = line.split(' ') pt, src, fname = fp_raw.strip().split('/') df_dict['participant'].append(pt) df_dict['file_name'].append(fname) df_dict['source'].append(src) df_dict['count'].append(int(count)) df_dict['type'].append('.csv') with open(os.path.join(path_to_files, 'json_counts_fitbit.txt'), 'r') as f: for line in f.readlines(): fp_raw, count = line.strip().split(': ') pt, src, fname = fp_raw.split('/') df_dict['participant'].append(pt) df_dict['file_name'].append(fname) df_dict['source'].append(src) df_dict['count'].append(int(count)) df_dict['type'].append('.csv') with open(os.path.join(path_to_files, 'reporting_counts.txt'), 'r') as f: for line in f.readlines(): count, fp_raw = line.strip().split(' ') _,_,_,_,_, pt, src, fname = fp_raw.split('/') df_dict['participant'].append(pt) df_dict['file_name'].append(fname) df_dict['source'].append(src) df_dict['count'].append(int(count)) df_dict['type'].append('.csv') df = pd.DataFrame(df_dict) df.to_excel('counts_formatted.xlsx', index=False, header=True)
30.045455
75
0.595058
281
1,983
3.982206
0.202847
0.117962
0.049151
0.050045
0.77748
0.77748
0.77748
0.77748
0.751564
0.728329
0
0
0.216843
1,983
65
76
30.507692
0.720541
0.033787
0
0.583333
0
0
0.167712
0.033438
0
0
0
0
0
1
0
false
0
0.041667
0
0.041667
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
33f5fc728aec149404f9a3b04b7c376f74b9fcb9
40
py
Python
my_classes/.history/ModulesPackages_PackageNamespaces/example3b/main_20210726185306.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/.history/ModulesPackages_PackageNamespaces/example3b/main_20210726185306.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/.history/ModulesPackages_PackageNamespaces/example3b/main_20210726185306.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
import sys import importer module1 =
6.666667
15
0.75
5
40
6
0.8
0
0
0
0
0
0
0
0
0
0
0.032258
0.225
40
5
16
8
0.935484
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.666667
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
5
d50c5e5d5b0fea4aaa825b3255a933692bdf894c
678
py
Python
server/models/vault_templates.py
GORDON17/py_rrfm_re
5a25211d0049b48d2b72c0cfdb2ce8b89c3764ee
[ "MIT" ]
null
null
null
server/models/vault_templates.py
GORDON17/py_rrfm_re
5a25211d0049b48d2b72c0cfdb2ce8b89c3764ee
[ "MIT" ]
null
null
null
server/models/vault_templates.py
GORDON17/py_rrfm_re
5a25211d0049b48d2b72c0cfdb2ce8b89c3764ee
[ "MIT" ]
null
null
null
def interest_template(isPlain, user_id, sim_percent): percent = int(sim_percent * 100) if isPlain: text = "Connect with {{user-%d}} as you have %d%% interests in common" \ % (user_id, percent) else: text = "<orange>Connect with {{user-%d}}</orange> as you have %d%% interests in common" \ % (user_id, percent) return text def mutual_template(isPlain, user_id, num_of_mutual_friends): if isPlain: text = "Connect with {{user-%d}} as you have %d mutual friends in common" % (user_id, num_of_mutual_friends) else: text = "<orange>Connect with {{user-%d}}</orange> as you have %d mutual friends in common" % (user_id, num_of_mutual_friends) return text
35.684211
127
0.696165
105
678
4.314286
0.266667
0.07947
0.13245
0.14128
0.759382
0.759382
0.706402
0.706402
0.706402
0.706402
0
0.005338
0.171091
678
19
128
35.684211
0.800712
0
0
0.533333
0
0.133333
0.418262
0
0
0
0
0
0
1
0.133333
false
0
0
0
0.266667
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
d51111d4bcf9134e0b9884bfdc4061c4b9e20f54
21
py
Python
akilib/raspberrypi/__init__.py
nonNoise/akilib
f111514f544ef765205faebd925d19c810121dad
[ "MIT" ]
29
2015-05-28T11:20:36.000Z
2018-09-07T07:35:08.000Z
examples/raspberrypi/akilib/raspberrypi/__init__.py
nonNoise/akilib
f111514f544ef765205faebd925d19c810121dad
[ "MIT" ]
null
null
null
examples/raspberrypi/akilib/raspberrypi/__init__.py
nonNoise/akilib
f111514f544ef765205faebd925d19c810121dad
[ "MIT" ]
4
2015-07-03T08:41:19.000Z
2018-09-07T07:35:51.000Z
#print "Hello API's"
10.5
20
0.666667
4
21
3.5
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
21
1
21
21
0.777778
0.904762
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
d51335fc3e28b68d11c8fa1d97460d67170fcedd
1,011
py
Python
packages/pyright-scip/snapshots/output/nameparts_import/nameparts.py
sourcegraph/pyright
f6a94a47f7e61172fd108ee9a4c62f748e1d24af
[ "MIT" ]
null
null
null
packages/pyright-scip/snapshots/output/nameparts_import/nameparts.py
sourcegraph/pyright
f6a94a47f7e61172fd108ee9a4c62f748e1d24af
[ "MIT" ]
19
2022-03-17T03:20:34.000Z
2022-03-31T02:53:12.000Z
packages/pyright-scip/snapshots/output/nameparts_import/nameparts.py
sourcegraph/pyright
f6a94a47f7e61172fd108ee9a4c62f748e1d24af
[ "MIT" ]
null
null
null
# < definition scip-python pypi snapshot-util 0.1 nameparts/__init__: #documentation (module) nameparts import importlib.resources # ^^^^^^^^^^^^^^^^^^^ reference python-stdlib 3.10 `importlib.resources`/__init__: importlib.resources.read_text('pre_commit.resources', 'filename') #^^^^^^^^^^^^^^^^^^ reference python-stdlib 3.10 `importlib.resources`/__init__: # ^^^^^^^^^ reference local 0 # documentation ```python # > def read_text( # > package: Package, # > resource: Resource, # > encoding: str = ..., # > errors: str = ... # > ) -> str: # > ``` importlib.resources.read_text('pre_commit.resources', 'filename') #^^^^^^^^^^^^^^^^^^ reference python-stdlib 3.10 `importlib.resources`/__init__: # ^^^^^^^^^ reference local 0
45.954545
88
0.473788
76
1,011
6.026316
0.407895
0.235808
0.137555
0.144105
0.593886
0.593886
0.593886
0.593886
0.49345
0.49345
0
0.02
0.357072
1,011
21
89
48.142857
0.684615
0.8091
0
0.666667
0
0
0.318182
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
1d572f99de0e67a081edd897572a41a81c33b10a
143
py
Python
data_augmentation/eda/image/models/__init__.py
simran-arora/emmental-tutorials
249a82a57be58e960408a45e2e0daa72980d210a
[ "MIT" ]
16
2019-06-20T08:54:53.000Z
2021-03-02T02:50:47.000Z
data_augmentation/eda/image/models/__init__.py
simran-arora/emmental-tutorials
249a82a57be58e960408a45e2e0daa72980d210a
[ "MIT" ]
1
2019-10-01T10:07:53.000Z
2019-10-08T20:15:45.000Z
data_augmentation/eda/image/models/__init__.py
simran-arora/emmental-tutorials
249a82a57be58e960408a45e2e0daa72980d210a
[ "MIT" ]
9
2019-06-28T17:33:36.000Z
2020-12-21T08:50:56.000Z
from eda.image.models.mlp import MLP from eda.image.models.wide_resnet import WideResNet ALL_MODELS = {"wide_resnet": WideResNet, "mlp": MLP}
28.6
52
0.783217
22
143
4.954545
0.454545
0.12844
0.220183
0.330275
0
0
0
0
0
0
0
0
0.104895
143
4
53
35.75
0.851563
0
0
0
0
0
0.097902
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
1d58bd849fb63b4611b00f68d6080d0ae94f416a
236
py
Python
magictranslator/detector/detector.py
c-rainbow/magictranslator
e3b1401be69aef283d682b6638552bd5ac186559
[ "MIT" ]
null
null
null
magictranslator/detector/detector.py
c-rainbow/magictranslator
e3b1401be69aef283d682b6638552bd5ac186559
[ "MIT" ]
null
null
null
magictranslator/detector/detector.py
c-rainbow/magictranslator
e3b1401be69aef283d682b6638552bd5ac186559
[ "MIT" ]
null
null
null
import langdetect class LanguageDetector(object): def __init__(self, storage): self.storage = storage def Detect(self, text): # TODO: Improve this return langdetect.detect(text)
13.111111
38
0.597458
23
236
5.956522
0.652174
0.160584
0
0
0
0
0
0
0
0
0
0
0.326271
236
18
39
13.111111
0.861635
0.076271
0
0
0
0
0
0
0
0
0
0.055556
0
1
0.333333
false
0
0.166667
0.166667
0.833333
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
1
0
0
1
0
0
0
1
1
0
0
5
1d5fa98ab325c48edb05ddde47eccd088f5fde3e
227
py
Python
ism/interfaces/action_interface.py
kaliklipper/python_state_machine
386eb10113c621fbbac6be8d7afbd1b384b4bf47
[ "MIT" ]
1
2021-07-13T23:23:32.000Z
2021-07-13T23:23:32.000Z
ism/interfaces/action_interface.py
kaliklipper/python_state_machine
386eb10113c621fbbac6be8d7afbd1b384b4bf47
[ "MIT" ]
9
2021-03-30T15:04:02.000Z
2021-04-08T18:28:38.000Z
ism/interfaces/action_interface.py
kaliklipper/python_state_machine
386eb10113c621fbbac6be8d7afbd1b384b4bf47
[ "MIT" ]
null
null
null
"""Interface defines required methods for an action class""" class ActionInterface: def execute(self): """Primary method of any action is to execute the code required to fulfil the action""" pass
22.7
74
0.669604
29
227
5.241379
0.758621
0
0
0
0
0
0
0
0
0
0
0
0.259912
227
9
75
25.222222
0.904762
0.599119
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
1d7e92c4822b14e9b9bbb8601247c07f57a4fefe
138
py
Python
datasift/__init__.py
j4mie/datasift-python
61053a66b2ccd3a6da411490a3725f6452d6c936
[ "MIT" ]
1
2015-11-05T11:46:12.000Z
2015-11-05T11:46:12.000Z
datasift/__init__.py
j4mie/datasift-python
61053a66b2ccd3a6da411490a3725f6452d6c936
[ "MIT" ]
null
null
null
datasift/__init__.py
j4mie/datasift-python
61053a66b2ccd3a6da411490a3725f6452d6c936
[ "MIT" ]
null
null
null
from user import DataSiftUser from definition import DataSiftDefinition from stream_consumer import DataSiftStream, DataSiftStreamListener
46
66
0.905797
14
138
8.857143
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.086957
138
3
66
46
0.984127
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
1d971b27fd4e5f7366bb33018cc02a10040bd43d
110
py
Python
Bunny Prisoner Locating/solution.py
sark-2110/Foobar-Google
51620fd3294c4fa24a4ba444534883a9eff5a7f9
[ "MIT" ]
1
2021-05-15T19:30:07.000Z
2021-05-15T19:30:07.000Z
Bunny Prisoner Locating/solution.py
sark-2110/Foobar-Google
51620fd3294c4fa24a4ba444534883a9eff5a7f9
[ "MIT" ]
null
null
null
Bunny Prisoner Locating/solution.py
sark-2110/Foobar-Google
51620fd3294c4fa24a4ba444534883a9eff5a7f9
[ "MIT" ]
3
2021-09-20T14:37:39.000Z
2022-02-09T21:47:07.000Z
#python3 code def solution(x, y): # Your code here res = ((x+y-1)*(x+y-2))/2 + x return str(res)
15.714286
33
0.536364
21
110
2.809524
0.619048
0.101695
0
0
0
0
0
0
0
0
0
0.049383
0.263636
110
6
34
18.333333
0.679012
0.245455
0
0
0
0
0
0
0
0
0
0.166667
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
1
0
0
5
d52a3c1b372d2fe4f81da5bf03406dc2b3e453d0
181
py
Python
tests/submit_test/inners/inner_file.py
mvxxx/cluster_utils
84fc4dcd78768eb5f8058d05f5e82192c0ce77a5
[ "MIT" ]
null
null
null
tests/submit_test/inners/inner_file.py
mvxxx/cluster_utils
84fc4dcd78768eb5f8058d05f5e82192c0ce77a5
[ "MIT" ]
null
null
null
tests/submit_test/inners/inner_file.py
mvxxx/cluster_utils
84fc4dcd78768eb5f8058d05f5e82192c0ce77a5
[ "MIT" ]
null
null
null
class InnerClass: def __init__(self, a, b, c): self.a = a self.b = b self.c = c def generate_stuff(self): return self.a+10*self.b+100*self.c
22.625
42
0.541436
30
181
3.1
0.433333
0.16129
0
0
0
0
0
0
0
0
0
0.041322
0.331492
181
8
42
22.625
0.727273
0
0
0
1
0
0
0
0
0
0
0
0
1
0.285714
false
0
0
0.142857
0.571429
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
1
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
d543b821f95645e2f121311ca66fb7c8ece00810
77
py
Python
musicreviews/formatter/__init__.py
theodcr/music-reviews
ae8921b2e4d91e282557d0e305e306bc90515109
[ "MIT" ]
null
null
null
musicreviews/formatter/__init__.py
theodcr/music-reviews
ae8921b2e4d91e282557d0e305e306bc90515109
[ "MIT" ]
null
null
null
musicreviews/formatter/__init__.py
theodcr/music-reviews
ae8921b2e4d91e282557d0e305e306bc90515109
[ "MIT" ]
null
null
null
from . import html, markdown, utils __all__ = ["html", "markdown", "utils"]
19.25
39
0.662338
9
77
5.222222
0.666667
0.510638
0.723404
0
0
0
0
0
0
0
0
0
0.155844
77
3
40
25.666667
0.723077
0
0
0
0
0
0.220779
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
634384e437aa9e325c3df57312aa6b4beb61fb70
40
py
Python
tests/unit/filestorage/__init__.py
cjolowicz/cutty
3a183fb06f5f521eaf1909514cb8c3d9e5b9c193
[ "MIT" ]
1
2021-11-15T20:27:59.000Z
2021-11-15T20:27:59.000Z
tests/unit/filestorage/__init__.py
cjolowicz/cutty
3a183fb06f5f521eaf1909514cb8c3d9e5b9c193
[ "MIT" ]
171
2020-07-24T07:30:20.000Z
2022-03-31T14:05:45.000Z
tests/unit/filestorage/__init__.py
cjolowicz/cutty
3a183fb06f5f521eaf1909514cb8c3d9e5b9c193
[ "MIT" ]
null
null
null
"""Unit tests for cutty.filestorage."""
20
39
0.7
5
40
5.6
1
0
0
0
0
0
0
0
0
0
0
0
0.1
40
1
40
40
0.777778
0.825
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
63593253e9bcf5b31d9e3daefa68e621adc80f76
1,935
py
Python
leetcode/python/easy/p819_mostCommonWord.py
kefirzhang/algorithms
549e68731d4c05002e35f0499d4f7744f5c63979
[ "Apache-2.0" ]
null
null
null
leetcode/python/easy/p819_mostCommonWord.py
kefirzhang/algorithms
549e68731d4c05002e35f0499d4f7744f5c63979
[ "Apache-2.0" ]
null
null
null
leetcode/python/easy/p819_mostCommonWord.py
kefirzhang/algorithms
549e68731d4c05002e35f0499d4f7744f5c63979
[ "Apache-2.0" ]
null
null
null
class Solution: def mostCommonWord(self, paragraph: str, banned) -> str: helper = {} tmp_word = "" for i in paragraph: if (ord('a') <= ord(i) <= ord('z') or ord('A') <= ord(i) <= ord('Z')) is False: if len(tmp_word) > 0: if helper.__contains__(tmp_word): helper[tmp_word] += 1 else: helper[tmp_word] = 1 tmp_word = "" else: tmp_word += i.lower() if len(tmp_word) > 0: if helper.__contains__(tmp_word): helper[tmp_word] += 1 else: helper[tmp_word] = 1 max_times = 0 max_word = "" print(helper) for word in helper: if helper[word] > max_times and word not in banned: max_times = helper[word] max_word = word return max_word slu = Solution() print(slu.mostCommonWord("Bob", ["hit"])) ''' "Bob hit a ball the hit BALL flew far after it was hit. Bob hit a ball the hit BALL flew far after it was hit. Bob hit a ball the hit BALL flew far after it was hit. Bob hit a ball the hit BALL flew far after it was hit. Bob hit a ball the hit BALL flew far after it was hit. Bob hit a ball the hit BALL flew far after it was hit. Bob hit a ball the hit BALL flew far after it was hit. Bob hit a ball the hit BALL flew far after it was hit. Bob hit a ball the hit BALL flew far after it was hit. Bob hit a ball the hit BALL flew far after it was hit. Bob hit a ball the hit BALL flew far after it was hit. Bob hit a ball the hit BALL flew far after it was hit. Bob hit a ball the hit BALL flew far after it was hit. Bob hit a ball the hit BALL flew far after it was hit. Bob hit a ball the hit BALL flew far after it was hit. " ["hit"] "Bob hit a ball, the hit BALL flew far after it was hit." ["hit"] '''
35.181818
91
0.581912
325
1,935
3.387692
0.132308
0.092643
0.13079
0.145322
0.749319
0.749319
0.72752
0.72752
0.72752
0.72752
0
0.005473
0.339018
1,935
55
92
35.181818
0.855356
0
0
0.448276
0
0
0.009747
0
0
0
0
0
0
1
0.034483
false
0
0
0
0.103448
0.068966
0
0
0
null
0
0
0
0
1
1
1
1
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
5
63802222ae79d996a5ab0a6465f17b167eb4f663
38
py
Python
hovor/__init__.py
IBM/contingent-plan-executor
177c5ec84070a4d0d83beb6622d99ec0fd772c12
[ "Apache-2.0" ]
3
2020-07-01T03:09:27.000Z
2021-03-20T03:27:24.000Z
hovor/__init__.py
IBM/contingent-plan-executor
177c5ec84070a4d0d83beb6622d99ec0fd772c12
[ "Apache-2.0" ]
1
2020-07-09T00:56:14.000Z
2020-07-09T00:56:14.000Z
hovor/__init__.py
IBM/contingent-plan-executor
177c5ec84070a4d0d83beb6622d99ec0fd772c12
[ "Apache-2.0" ]
1
2020-12-19T22:06:00.000Z
2020-12-19T22:06:00.000Z
def DEBUG(s): #pass print(s)
7.6
13
0.5
6
38
3.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.342105
38
4
14
9.5
0.76
0.105263
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
0.5
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
1
0
5
63d13875a57eb3b5cda28fc25e50d0e2ca92ddf7
160
py
Python
api/schemas/login.py
ElPapi42/test-api
d7a68e8fadb6cbb6bf48e993e1df4898bedc6372
[ "MIT" ]
null
null
null
api/schemas/login.py
ElPapi42/test-api
d7a68e8fadb6cbb6bf48e993e1df4898bedc6372
[ "MIT" ]
null
null
null
api/schemas/login.py
ElPapi42/test-api
d7a68e8fadb6cbb6bf48e993e1df4898bedc6372
[ "MIT" ]
null
null
null
from pydantic import BaseModel class LoginSchema(BaseModel): email: str password: str class TokenSchema(BaseModel): token: str token_type: str
17.777778
30
0.73125
19
160
6.105263
0.631579
0
0
0
0
0
0
0
0
0
0
0
0.20625
160
9
31
17.777778
0.913386
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.142857
0.142857
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
1
0
0
5
8954026e3e3c12bea17736c93643e50739bb314d
111
py
Python
HW4/YaRa1312/Pleshyvtseva PythonCore HW 4.2.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW4/YaRa1312/Pleshyvtseva PythonCore HW 4.2.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW4/YaRa1312/Pleshyvtseva PythonCore HW 4.2.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
6
2022-02-22T22:30:49.000Z
2022-03-28T12:51:19.000Z
#4.2 list_with_integers = [26, 3, 22, 5.9, 1337, 988, 69.544] for i in list_with_integers: print(float(i))
22.2
56
0.666667
23
111
3.043478
0.826087
0.228571
0.457143
0
0
0
0
0
0
0
0
0.228261
0.171171
111
5
57
22.2
0.532609
0.027027
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
1
1
0
0
0
0
0
0
0
0
1
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
5
896a4274086dcd3d55684a5fb5a9bc0e7a157a3d
211
py
Python
wetectron/utils/__init__.py
akobiisr/wetectron
b3f6d4f4d3c3d32863011a9fa5b34561f7d85940
[ "MIT" ]
332
2020-04-04T22:25:40.000Z
2022-03-29T07:49:05.000Z
wetectron/utils/__init__.py
Aestheticism1/wetectron
9973eb4f1716fbc5f46b41a7f93fb1f1c78bc8c7
[ "MIT" ]
76
2020-04-21T08:40:07.000Z
2022-03-23T23:23:33.000Z
wetectron/utils/__init__.py
Aestheticism1/wetectron
9973eb4f1716fbc5f46b41a7f93fb1f1c78bc8c7
[ "MIT" ]
43
2020-05-13T16:27:27.000Z
2022-03-15T07:01:27.000Z
# -------------------------------------------------------- # Copyright (C) 2020 NVIDIA Corporation. All rights reserved. # Nvidia Source Code License-NC # --------------------------------------------------------
52.75
61
0.345972
13
211
5.615385
0.923077
0
0
0
0
0
0
0
0
0
0
0.020619
0.080569
211
4
62
52.75
0.35567
0.962085
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
986e2ebf373d19f14614f7f0108234bdf7c27368
1,912
py
Python
tests/API1/testcalendardateparam.py
mcepl/param
34cfce4d5f1d16a192d30c6f6cdeb73d7335add3
[ "BSD-3-Clause" ]
null
null
null
tests/API1/testcalendardateparam.py
mcepl/param
34cfce4d5f1d16a192d30c6f6cdeb73d7335add3
[ "BSD-3-Clause" ]
null
null
null
tests/API1/testcalendardateparam.py
mcepl/param
34cfce4d5f1d16a192d30c6f6cdeb73d7335add3
[ "BSD-3-Clause" ]
null
null
null
""" Unit test for CalendarDate parameters. """ import datetime as dt import param from . import API1TestCase class TestDateTimeParameters(API1TestCase): def test_initialization_out_of_bounds(self): try: class Q(param.Parameterized): q = param.CalendarDate(dt.date(2017,2,27), bounds=(dt.date(2017,2,1), dt.date(2017,2,26))) except ValueError: pass else: raise AssertionError("No exception raised on out-of-bounds date") def test_set_out_of_bounds(self): class Q(param.Parameterized): q = param.CalendarDate(bounds=(dt.date(2017,2,1), dt.date(2017,2,26))) try: Q.q = dt.date(2017,2,27) except ValueError: pass else: raise AssertionError("No exception raised on out-of-bounds date") def test_set_exclusive_out_of_bounds(self): class Q(param.Parameterized): q = param.CalendarDate(bounds=(dt.date(2017,2,1), dt.date(2017,2,26)), inclusive_bounds=(True, False)) try: Q.q = dt.date(2017,2,26) except ValueError: pass else: raise AssertionError("No exception raised on out-of-bounds date") def test_get_soft_bounds(self): q = param.CalendarDate(dt.date(2017,2,25), bounds=(dt.date(2017,2,1), dt.date(2017,2,26)), softbounds=(dt.date(2017,2,1), dt.date(2017,2,25))) self.assertEqual(q.get_soft_bounds(), (dt.date(2017,2,1), dt.date(2017,2,25)))
34.763636
77
0.490586
213
1,912
4.314554
0.230047
0.104461
0.174102
0.191513
0.733406
0.726877
0.726877
0.614799
0.614799
0.614799
0
0.094903
0.404812
1,912
54
78
35.407407
0.712654
0.019874
0
0.651163
0
0
0.065916
0
0
0
0
0
0.093023
1
0.093023
false
0.069767
0.069767
0
0.255814
0
0
0
0
null
0
0
1
0
1
1
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
1
0
0
0
0
0
5
7f2a568136084c572744c00c77548b85a58ff03e
171
py
Python
bin/cubes/solid-pentominoes-tower-3.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/cubes/solid-pentominoes-tower-3.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/cubes/solid-pentominoes-tower-3.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
1
2022-01-02T16:54:14.000Z
2022-01-02T16:54:14.000Z
#!/usr/bin/env python # $Id$ """27 solutions""" import puzzler from puzzler.puzzles.solid_pentominoes import SolidPentominoesTower3 puzzler.run(SolidPentominoesTower3)
17.1
68
0.795322
19
171
7.105263
0.789474
0
0
0
0
0
0
0
0
0
0
0.025806
0.093567
171
9
69
19
0.845161
0.222222
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
7f90fa8ab0e7d57699d72149c7ed0fda0e3c0885
136
py
Python
examples/manysquares.py
gxavier38/pysnark
8a2a571bef430783adf8fe28cb8bb0b0bf8a7c94
[ "Cube" ]
94
2019-05-21T09:36:58.000Z
2022-03-25T12:27:54.000Z
examples/manysquares.py
gxavier38/pysnark
8a2a571bef430783adf8fe28cb8bb0b0bf8a7c94
[ "Cube" ]
32
2019-11-12T09:59:46.000Z
2021-12-04T17:53:14.000Z
examples/manysquares.py
gxavier38/pysnark
8a2a571bef430783adf8fe28cb8bb0b0bf8a7c94
[ "Cube" ]
13
2020-01-02T11:01:17.000Z
2021-10-02T11:07:11.000Z
import sys from pysnark.runtime import PrivVal val = int(sys.argv[2]) for i in range(int(sys.argv[1])): a = PrivVal(val) a*a
13.6
35
0.654412
25
136
3.56
0.64
0.224719
0.224719
0
0
0
0
0
0
0
0
0.018519
0.205882
136
9
36
15.111111
0.805556
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
7f9d5b2ba9b57f26069351ab286a9adef0bf3ea3
39
py
Python
tests/__init__.py
teresaupdyke/HFRadarPy
581e5b8dcd56138f5bdd8eb7e43cbe1de7163cb6
[ "MIT" ]
1
2022-03-15T13:58:00.000Z
2022-03-15T13:58:00.000Z
tests/__init__.py
teresaupdyke/HFRadarPy
581e5b8dcd56138f5bdd8eb7e43cbe1de7163cb6
[ "MIT" ]
1
2021-12-03T00:36:41.000Z
2021-12-03T00:36:41.000Z
tests/__init__.py
teresaupdyke/HFRadarPy
581e5b8dcd56138f5bdd8eb7e43cbe1de7163cb6
[ "MIT" ]
6
2018-10-03T19:09:08.000Z
2020-06-08T17:56:08.000Z
"""Unit test package for hfradarpy."""
19.5
38
0.692308
5
39
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.128205
39
1
39
39
0.794118
0.820513
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
7fb080f255fbefadf196b25ee6f761975a590861
132
py
Python
tests/__init__.py
iPolyomino/flask-server
6448d135a961cfe5ee3ab025beb006457d295afa
[ "MIT" ]
null
null
null
tests/__init__.py
iPolyomino/flask-server
6448d135a961cfe5ee3ab025beb006457d295afa
[ "MIT" ]
5
2018-01-02T03:49:58.000Z
2018-02-28T01:56:04.000Z
tests/__init__.py
iPolyomino/flask-server
6448d135a961cfe5ee3ab025beb006457d295afa
[ "MIT" ]
null
null
null
# coding: utf-8 import sys import os pardir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(pardir)
16.5
68
0.75
22
132
4.318182
0.545455
0.189474
0.273684
0.315789
0.336842
0
0
0
0
0
0
0.008403
0.098485
132
7
69
18.857143
0.789916
0.098485
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
f69873b4cfdb3c427543475bda1cec7de3c90c0e
620
py
Python
bingads/v13/bulk/bulk_operation_progress_info.py
pawelulita/BingAds-Python-SDK
e7b5a618e87a43d0a5e2c79d9aa4626e208797bd
[ "MIT" ]
86
2016-02-29T03:24:28.000Z
2022-03-29T09:30:21.000Z
bingads/v13/bulk/bulk_operation_progress_info.py
pawelulita/BingAds-Python-SDK
e7b5a618e87a43d0a5e2c79d9aa4626e208797bd
[ "MIT" ]
135
2016-04-12T13:31:28.000Z
2022-03-29T02:18:51.000Z
bingads/v13/bulk/bulk_operation_progress_info.py
pawelulita/BingAds-Python-SDK
e7b5a618e87a43d0a5e2c79d9aa4626e208797bd
[ "MIT" ]
154
2016-04-08T04:11:27.000Z
2022-03-29T21:21:07.000Z
class BulkOperationProgressInfo(object): """ Contains percent complete progress information for the bulk operation.""" def __init__(self, percent_complete=0): """ Initialize a new instance of this class. :param percent_complete: (optional) Percent complete progress information for the bulk operation. :type percent_complete: int """ self._percent_complete = percent_complete @property def percent_complete(self): """ Percent complete progress information for the bulk operation. :rtype: int """ return self._percent_complete
29.52381
105
0.682258
65
620
6.307692
0.446154
0.365854
0.185366
0.24878
0.387805
0.387805
0.387805
0.387805
0
0
0
0.002137
0.245161
620
20
106
31
0.873932
0.504839
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
f69d41d7f65f4bd24a40f04da888af78b21de717
5,950
py
Python
cogno.py
Ressnn/Cogno
494d90163042f43fd0f3243a443ac9f990a1098b
[ "MIT" ]
1
2021-08-09T19:40:08.000Z
2021-08-09T19:40:08.000Z
cogno.py
Ressnn/Cogno
494d90163042f43fd0f3243a443ac9f990a1098b
[ "MIT" ]
null
null
null
cogno.py
Ressnn/Cogno
494d90163042f43fd0f3243a443ac9f990a1098b
[ "MIT" ]
null
null
null
from Recognition import FacialIdentifier, AudioBuffer from multiprocessing import Process, Pipe from playsound import playsound import RPi.GPIO as GPIO import logging import time import uuid import cv2 import os class MainProcess(): def __init__(self,display = False, facebase_path = "./Data/facebase", audiobase_path ="./Data/audiobase", flip_image = False): """ Constructor for the MainProcess of cogno Parameters ---------- display : Boolean Display Frames for Debugging? facebase_path : String path to facebase to match audiobase_path : String path to audiobase with pronunciations Returns ------- NoneType None """ self.flip = flip_image self.Face = FacialIdentifier(dbpath=facebase_path) self.AudioProcess = AudioBuffer(dbpath=audiobase_path) self.display = display self.f_path = facebase_path self.a_path = audiobase_path self.vid = cv2.VideoCapture(0) def identify(self): """ Identifies ther person in the frame and repeats the name back in the user's ear Returns ------- Boolean True if face was discovered False if otherwise """ ret, frame = self.vid.read() if self.flip == True: frame = cv2.flip(frame,0) if self.display == True: cv2.imshow('frame', frame) try: id = self.Face.get_person(frame,prob_threshold=1) print(id) except: print("No Face in Frame") return False if id == -1: return False sounds = os.listdir(os.path.join(self.a_path,str(id))) playsound(os.path.join(os.path.join(self.a_path,str(id)),sounds[0])) return True def add_person(self,name = str(uuid.uuid4())): """ Adds a person to the audio and facebase Parameters ---------- name : String The name to store a person by in the databases Returns ------- NoneType None """ self.AudioProcess.save(name) ret, frame = self.vid.read() if self.flip == True: frame = cv2.flip(frame,0) frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) self.Face.add_face(frame,name) self.Face = FacialIdentifier(dbpath=self.f_path) class ServerProcess(): def __init__(self,display = False, facebase_path = "./Data/facebase", audiobase_path ="./Data/audiobase", flip_image = False): """ Constructor for the MainProcess of cogno Parameters ---------- display : Boolean Display Frames for Debugging? facebase_path : String path to facebase to match audiobase_path : String path to audiobase with pronunciations Returns ------- NoneType None """ self.flip = flip_image self.Face = FacialIdentifier(dbpath=facebase_path) self.AudioProcess = AudioBuffer(dbpath=audiobase_path) self.display = display self.f_path = facebase_path self.a_path = audiobase_path self.vid = cv2.VideoCapture(0) def identify(self): """ Identifies ther person in the frame and repeats the name back in the user's ear Returns ------- Boolean True if face was discovered False if otherwise """ ret, frame = self.vid.read() if self.flip == True: frame = cv2.flip(frame,0) if self.display == True: cv2.imshow('frame', frame) try: id = self.Face.get_person(frame,prob_threshold=1) print(id) except: print("No Face in Frame") return False if id == -1: return False sounds = os.listdir(os.path.join(self.a_path,str(id))) playsound(os.path.join(os.path.join(self.a_path,str(id)),sounds[0])) return True def add_person(self,name = str(uuid.uuid4())): """ Adds a person to the audio and facebase Parameters ---------- name : String The name to store a person by in the databases Returns ------- NoneType None """ self.AudioProcess.save(name) ret, frame = self.vid.read() if self.flip == True: frame = cv2.flip(frame,0) frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) self.Face.add_face(frame,name) self.Face = FacialIdentifier(dbpath=self.f_path) # Global variables used specifically for GPIO callback GPIO_action = None last_press = 0 def GPIO_callback(channel): global action, last_press press_time = round(time.time() * 1000) press_diff = press_time - last_press last_press = press_time action = 'double' if press_diff < 250 else 'single' if __name__ == '__main__': M = MainProcess(display=False,flip_image=True) # Set GPIO mode to BCM (not sure what it means but it works) GPIO.setmode(GPIO.BCM) # Setup pin 4 to accept GPIO input from touch sensor GPIO.setup(4, GPIO.IN, pull_up_down=GPIO.PUD_UP) # Add event listener for touch sensor GPIO pin GPIO.add_event_detect(4, GPIO.BOTH, GPIO_callback) # Throw main thread into action loop while True: ms_since_last_press = round(time.time() * 1000) - last_press if action and ms_since_last_press > 200: print(action + ' press.') if action == 'single': M.identify() elif action == 'double': M.add_person(str(uuid.uuid4())) action = None # if __name__ == "__main__": # M = MainProcess(display=True) # M.add_person("Zachary") # M.identify()
26.801802
130
0.578992
711
5,950
4.7173
0.219409
0.028623
0.0161
0.019082
0.733453
0.733453
0.71616
0.71616
0.71616
0.71616
0
0.011899
0.322017
5,950
221
131
26.923077
0.819534
0.255294
0
0.666667
0
0
0.036723
0
0
0
0
0
0
1
0.070707
false
0
0.090909
0
0.242424
0.050505
0
0
0
null
0
0
0
0
1
1
1
1
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
5
f69fc5606b960043501aa637d6cf6649e47db0d3
88
py
Python
py_tdlib/constructors/call_state_error.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
py_tdlib/constructors/call_state_error.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
py_tdlib/constructors/call_state_error.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
from ..factory import Type class callStateError(Type): error = None # type: "error"
14.666667
30
0.704545
11
88
5.636364
0.727273
0.290323
0
0
0
0
0
0
0
0
0
0
0.181818
88
5
31
17.6
0.861111
0.147727
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
f6a3e74174a8d49fbb98ba1d616e520e2920c83e
38
py
Python
tests/__init__.py
davewd/timeline
133c65d5edb31bc2cee39f337dd4f27acc4a2599
[ "MIT" ]
null
null
null
tests/__init__.py
davewd/timeline
133c65d5edb31bc2cee39f337dd4f27acc4a2599
[ "MIT" ]
null
null
null
tests/__init__.py
davewd/timeline
133c65d5edb31bc2cee39f337dd4f27acc4a2599
[ "MIT" ]
null
null
null
"""Unit test package for timeline."""
19
37
0.684211
5
38
5.2
1
0
0
0
0
0
0
0
0
0
0
0
0.131579
38
1
38
38
0.787879
0.815789
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
f6d3ec8497e48140a033928f37a05e9ad3a3e625
41
py
Python
two.py
noahgift/Coursera-DE-C2-Files-Directories-Permissions
484eeb324d7d713af57bd4dd84af46bbcef74d08
[ "CC0-1.0" ]
null
null
null
two.py
noahgift/Coursera-DE-C2-Files-Directories-Permissions
484eeb324d7d713af57bd4dd84af46bbcef74d08
[ "CC0-1.0" ]
null
null
null
two.py
noahgift/Coursera-DE-C2-Files-Directories-Permissions
484eeb324d7d713af57bd4dd84af46bbcef74d08
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python print("I am two")
10.25
21
0.634146
8
41
3.25
1
0
0
0
0
0
0
0
0
0
0
0
0.146341
41
3
22
13.666667
0.742857
0.487805
0
0
0
0
0.4
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
10038b9e2b05fe20bbf309cf613cb11e2b81e4e2
7,905
py
Python
tests/ut/python/dataset/test_slice_op.py
Xylonwang/mindspore
ea37dc76f0a8f0b10edd85c2ad545af44552af1e
[ "Apache-2.0" ]
1
2020-06-17T07:05:45.000Z
2020-06-17T07:05:45.000Z
tests/ut/python/dataset/test_slice_op.py
Xylonwang/mindspore
ea37dc76f0a8f0b10edd85c2ad545af44552af1e
[ "Apache-2.0" ]
null
null
null
tests/ut/python/dataset/test_slice_op.py
Xylonwang/mindspore
ea37dc76f0a8f0b10edd85c2ad545af44552af1e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== """ Testing TypeCast op in DE """ import numpy as np import pytest import mindspore.dataset as ds import mindspore.dataset.transforms.c_transforms as ops def slice_compare(array, indexing): data = ds.NumpySlicesDataset([array]) array = np.array(array) data = data.map(operations=ops.Slice(indexing)) for d in data: if indexing is None: array = array[:] else: array = array[indexing] np.testing.assert_array_equal(array, d[0]) def test_slice_all(): slice_compare([1, 2, 3, 4, 5], None) slice_compare([1, 2, 3, 4, 5], ...) def test_slice_single_index(): slice_compare([1, 2, 3, 4, 5], 0) slice_compare([1, 2, 3, 4, 5], 4) slice_compare([1, 2, 3, 4, 5], 2) slice_compare([1, 2, 3, 4, 5], -1) slice_compare([1, 2, 3, 4, 5], -5) slice_compare([1, 2, 3, 4, 5], -3) def test_slice_list_index(): slice_compare([1, 2, 3, 4, 5], [0, 1, 4]) slice_compare([1, 2, 3, 4, 5], [4, 1, 0]) slice_compare([1, 2, 3, 4, 5], [-1, 1, 0]) slice_compare([1, 2, 3, 4, 5], [-1, -4, -2]) slice_compare([1, 2, 3, 4, 5], [3, 3, 3]) slice_compare([1, 2, 3, 4, 5], [1, 1, 1, 1, 1]) def test_slice_slice_obj_2s(): slice_compare([1, 2, 3, 4, 5], slice(0, 2)) slice_compare([1, 2, 3, 4, 5], slice(2, 4)) slice_compare([1, 2, 3, 4, 5], slice(4, 10)) def test_slice_slice_obj_1s(): slice_compare([1, 2, 3, 4, 5], slice(1)) slice_compare([1, 2, 3, 4, 5], slice(4)) slice_compare([1, 2, 3, 4, 5], slice(10)) def test_slice_slice_obj_3s(): slice_compare([1, 2, 3, 4, 5], slice(0, 2, 1)) slice_compare([1, 2, 3, 4, 5], slice(0, 4, 1)) slice_compare([1, 2, 3, 4, 5], slice(0, 10, 1)) slice_compare([1, 2, 3, 4, 5], slice(0, 5, 2)) slice_compare([1, 2, 3, 4, 5], slice(0, 2, 2)) slice_compare([1, 2, 3, 4, 5], slice(0, 1, 2)) slice_compare([1, 2, 3, 4, 5], slice(4, 5, 1)) slice_compare([1, 2, 3, 4, 5], slice(2, 5, 3)) def test_slice_slice_obj_3s_double(): slice_compare([1., 2., 3., 4., 5.], slice(0, 2, 1)) slice_compare([1., 2., 3., 4., 5.], slice(0, 4, 1)) slice_compare([1., 2., 3., 4., 5.], slice(0, 10, 1)) slice_compare([1., 2., 3., 4., 5.], slice(0, 5, 2)) slice_compare([1., 2., 3., 4., 5.], slice(0, 2, 2)) slice_compare([1., 2., 3., 4., 5.], slice(0, 1, 2)) slice_compare([1., 2., 3., 4., 5.], slice(4, 5, 1)) slice_compare([1., 2., 3., 4., 5.], slice(2, 5, 3)) def test_slice_slice_obj_neg(): slice_compare([1, 2, 3, 4, 5], slice(-1, -5, -1)) slice_compare([1, 2, 3, 4, 5], slice(-1)) slice_compare([1, 2, 3, 4, 5], slice(-2)) slice_compare([1, 2, 3, 4, 5], slice(-1, -5, -2)) slice_compare([1, 2, 3, 4, 5], slice(-5, -1, 2)) slice_compare([1, 2, 3, 4, 5], slice(-5, -1)) def test_slice_exceptions(): with pytest.raises(RuntimeError) as info: slice_compare([1, 2, 3, 4, 5], 5) assert "Index 5 is out of bounds [0,5)" in str(info.value) with pytest.raises(RuntimeError) as info: slice_compare([1, 2, 3, 4, 5], slice(0)) assert "Indices are empty, generated tensor would be empty." in str(info.value) with pytest.raises(RuntimeError) as info: slice_compare([1, 2, 3, 4, 5], slice(5, 10, 1)) assert "Indices are empty, generated tensor would be empty." in str(info.value) with pytest.raises(RuntimeError) as info: slice_compare([1, 2, 3, 4, 5], slice(-1, -5, 1)) assert "Indices are empty, generated tensor would be empty." in str(info.value) def test_slice_all_str(): slice_compare([b"1", b"2", b"3", b"4", b"5"], None) slice_compare([b"1", b"2", b"3", b"4", b"5"], ...) def test_slice_single_index_str(): slice_compare([b"1", b"2", b"3", b"4", b"5"], 0) slice_compare([b"1", b"2", b"3", b"4", b"5"], 4) slice_compare([b"1", b"2", b"3", b"4", b"5"], 2) slice_compare([b"1", b"2", b"3", b"4", b"5"], -1) slice_compare([b"1", b"2", b"3", b"4", b"5"], -5) slice_compare([b"1", b"2", b"3", b"4", b"5"], -3) def test_slice_list_index_str(): slice_compare([b"1", b"2", b"3", b"4", b"5"], [0, 1, 4]) slice_compare([b"1", b"2", b"3", b"4", b"5"], [4, 1, 0]) slice_compare([b"1", b"2", b"3", b"4", b"5"], [-1, 1, 0]) slice_compare([b"1", b"2", b"3", b"4", b"5"], [-1, -4, -2]) slice_compare([b"1", b"2", b"3", b"4", b"5"], [3, 3, 3]) slice_compare([b"1", b"2", b"3", b"4", b"5"], [1, 1, 1, 1, 1]) def test_slice_slice_obj_2s_str(): slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(0, 2)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(2, 4)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(4, 10)) def test_slice_slice_obj_1s_str(): slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(1)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(4)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(10)) def test_slice_slice_obj_3s_str(): slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(0, 2, 1)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(0, 4, 1)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(0, 10, 1)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(0, 5, 2)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(0, 2, 2)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(0, 1, 2)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(4, 5, 1)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(2, 5, 3)) def test_slice_slice_obj_neg_str(): slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(-1, -5, -1)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(-1)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(-2)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(-1, -5, -2)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(-5, -1, 2)) slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(-5, -1)) def test_slice_exceptions_str(): with pytest.raises(RuntimeError) as info: slice_compare([b"1", b"2", b"3", b"4", b"5"], 5) assert "Index 5 is out of bounds [0,5)" in str(info.value) with pytest.raises(RuntimeError) as info: slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(0)) assert "Indices are empty, generated tensor would be empty." in str(info.value) with pytest.raises(RuntimeError) as info: slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(5, 10, 1)) assert "Indices are empty, generated tensor would be empty." in str(info.value) with pytest.raises(RuntimeError) as info: slice_compare([b"1", b"2", b"3", b"4", b"5"], slice(-1, -5, 1)) assert "Indices are empty, generated tensor would be empty." in str(info.value) if __name__ == "__main__": test_slice_all() test_slice_single_index() test_slice_list_index() test_slice_slice_obj_3s() test_slice_slice_obj_2s() test_slice_slice_obj_1s() test_slice_slice_obj_neg() test_slice_exceptions() test_slice_slice_obj_3s_double() test_slice_all_str() test_slice_single_index_str() test_slice_list_index_str() test_slice_slice_obj_3s_str() test_slice_slice_obj_2s_str() test_slice_slice_obj_1s_str() test_slice_slice_obj_neg_str() test_slice_exceptions_str()
37.287736
83
0.576724
1,512
7,905
2.865741
0.084656
0.235403
0.138011
0.148627
0.784907
0.756981
0.718671
0.702746
0.67159
0.627741
0
0.100848
0.194687
7,905
211
84
37.464455
0.579799
0.084377
0
0.107383
0
0
0.078149
0
0
0
0
0
0.060403
1
0.120805
false
0
0.026846
0
0.147651
0
0
0
0
null
1
0
0
0
1
1
1
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
5
63d84862232cc21ebfbafbbec262048684891f2d
92
py
Python
principal.py
lesliemoralesc1/areas_volumenes
98495c4424627b1a786b9b72a7ee080d6f68d97a
[ "MIT" ]
null
null
null
principal.py
lesliemoralesc1/areas_volumenes
98495c4424627b1a786b9b72a7ee080d6f68d97a
[ "MIT" ]
null
null
null
principal.py
lesliemoralesc1/areas_volumenes
98495c4424627b1a786b9b72a7ee080d6f68d97a
[ "MIT" ]
9
2021-09-13T18:43:05.000Z
2021-09-13T19:13:24.000Z
from funciones import * print(f"El area del cuadrado es {calcular_area_cuadrado(5)}")
18.4
62
0.728261
14
92
4.642857
0.857143
0
0
0
0
0
0
0
0
0
0
0.013158
0.173913
92
4
63
23
0.842105
0
0
0
0
0
0.579545
0.306818
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
122627282f01f299169f54d07c31eb843f2edd7a
118
py
Python
src/harrixpyssg/__init__.py
Harrix/harrix-pyssg
8b72052ca3b7da4de7f9717ac3597e3a4517d1de
[ "MIT" ]
null
null
null
src/harrixpyssg/__init__.py
Harrix/harrix-pyssg
8b72052ca3b7da4de7f9717ac3597e3a4517d1de
[ "MIT" ]
null
null
null
src/harrixpyssg/__init__.py
Harrix/harrix-pyssg
8b72052ca3b7da4de7f9717ac3597e3a4517d1de
[ "MIT" ]
null
null
null
from .settings import * from .article import * from .dir_md_to_dir_html import * from .static_site_generator import *
23.6
36
0.79661
18
118
4.888889
0.611111
0.340909
0
0
0
0
0
0
0
0
0
0
0.135593
118
4
37
29.5
0.862745
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
89dd5096104373d89a0c817cbfe1f50ba45b3986
636
py
Python
ivy_vision/__init__.py
ivy-dl/vision
ab7f188bee028af5880b4b5aa76761ea61e7ea4f
[ "Apache-2.0" ]
35
2021-01-23T01:49:27.000Z
2021-12-27T14:25:15.000Z
ivy_vision/__init__.py
ivy-dl/vision
ab7f188bee028af5880b4b5aa76761ea61e7ea4f
[ "Apache-2.0" ]
5
2022-03-11T03:46:18.000Z
2022-03-31T06:07:31.000Z
ivy_vision/__init__.py
ivy-dl/vision
ab7f188bee028af5880b4b5aa76761ea61e7ea4f
[ "Apache-2.0" ]
1
2021-05-18T17:11:58.000Z
2021-05-18T17:11:58.000Z
from . import containers from .containers import * from . import implicit from .implicit import * from . import mesh from .mesh import * from . import optical_flow from .optical_flow import * from . import padding from .padding import * from . import projective_geometry from .projective_geometry import * from . import quantization from .quantization import * from . import sdf from .sdf import * from . import single_view_geometry from .single_view_geometry import * from . import smoothing from .smoothing import * from . import two_view_geometry from .two_view_geometry import * from . import voxel_grids from .voxel_grids import *
25.44
35
0.792453
86
636
5.697674
0.209302
0.244898
0.359184
0.146939
0.114286
0
0
0
0
0
0
0
0.150943
636
24
36
26.5
0.907407
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
89e741620c13ebe11e464bf261b7b0d8e1e1b488
410
py
Python
pipeline/pipeline1a-long.py
orest-d/design-patterns-finance
5878912dfa5b34925b00c38da978e7b9e4735a14
[ "CC0-1.0" ]
null
null
null
pipeline/pipeline1a-long.py
orest-d/design-patterns-finance
5878912dfa5b34925b00c38da978e7b9e4735a14
[ "CC0-1.0" ]
null
null
null
pipeline/pipeline1a-long.py
orest-d/design-patterns-finance
5878912dfa5b34925b00c38da978e7b9e4735a14
[ "CC0-1.0" ]
null
null
null
def fetch_data1(): return "data1" def fetch_data2(): return "data2" def process_data1(): return fetch_data1().upper() def process_data2(): return fetch_data2().upper() def process_data3(): return process_data1() + "-" + process_data2() def show_report1(): print(process_data3()) def show_report2(): print(process_data1(), "<->", process_data2()) show_report1() show_report2()
17.826087
50
0.67561
50
410
5.22
0.24
0.114943
0.114943
0.183908
0
0
0
0
0
0
0
0.052632
0.165854
410
23
51
17.826087
0.710526
0
0
0
0
0
0.034063
0
0
0
0
0
0
1
0.4375
true
0
0
0.3125
0.75
0.125
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
1
1
0
0
5
d60d7f3220912703ec33dc9bef68955faadc692b
81
py
Python
causaldag/structure_learning/difference/__init__.py
jcai117/causaldag
94933db7086d21dad1f9d0ea64d538b0365c8add
[ "BSD-3-Clause" ]
3
2021-09-12T13:41:23.000Z
2022-03-24T14:44:04.000Z
causaldag/structure_learning/difference/__init__.py
jcai117/causaldag
94933db7086d21dad1f9d0ea64d538b0365c8add
[ "BSD-3-Clause" ]
null
null
null
causaldag/structure_learning/difference/__init__.py
jcai117/causaldag
94933db7086d21dad1f9d0ea64d538b0365c8add
[ "BSD-3-Clause" ]
2
2021-02-03T04:05:41.000Z
2021-09-12T13:41:26.000Z
from .difference_dag import * from .difference_ug import * from ._utils import *
20.25
29
0.777778
11
81
5.454545
0.545455
0.466667
0
0
0
0
0
0
0
0
0
0
0.148148
81
3
30
27
0.869565
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
d65270399798c69da8a54d5ef87b4009ddcb77e7
479
py
Python
hextiler/camera.py
RedFT/HexTiler
e31d27b37db100b2cabd25803489e53cf41b8b52
[ "MIT" ]
null
null
null
hextiler/camera.py
RedFT/HexTiler
e31d27b37db100b2cabd25803489e53cf41b8b52
[ "MIT" ]
null
null
null
hextiler/camera.py
RedFT/HexTiler
e31d27b37db100b2cabd25803489e53cf41b8b52
[ "MIT" ]
null
null
null
import numpy as np class Camera: def __init__(self, screen_size): self.position = np.array(screen_size[:2]) self.size = np.array(screen_size[2:4]) def move_camera(self, position): self.position += position def follow_camera(self, position): return position + self.position def set_position(self, position): self.position = np.array(position) def translate(self, position): return position - self.position
23.95
49
0.65762
61
479
5
0.327869
0.354098
0.327869
0.12459
0.367213
0.24918
0
0
0
0
0
0.008242
0.240084
479
19
50
25.210526
0.82967
0
0
0
0
0
0
0
0
0
0
0
0
1
0.384615
false
0
0.076923
0.153846
0.692308
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
c3abfc4331cbd9ef6ad2e9ebdf434ec0a9256ec0
135
py
Python
casepro/pods/__init__.py
lucianomc/casepro
04e37a5ac816b6c7207dc3eed7bd616257efe11f
[ "BSD-3-Clause" ]
null
null
null
casepro/pods/__init__.py
lucianomc/casepro
04e37a5ac816b6c7207dc3eed7bd616257efe11f
[ "BSD-3-Clause" ]
165
2015-11-13T13:50:11.000Z
2018-10-24T07:00:38.000Z
casepro/pods/__init__.py
lucianomc/casepro
04e37a5ac816b6c7207dc3eed7bd616257efe11f
[ "BSD-3-Clause" ]
5
2020-01-16T00:55:23.000Z
2020-02-06T17:21:12.000Z
from .base import Pod, PodConfig, PodPlugin __all__ = ["Pod", "PodConfig", "PodPlugin"] default_app_config = "casepro.pods.PodPlugin"
27
45
0.748148
16
135
5.9375
0.75
0.252632
0.442105
0
0
0
0
0
0
0
0
0
0.111111
135
4
46
33.75
0.791667
0
0
0
0
0
0.318519
0.162963
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
c3c72d0d6234a853bde268f761d5ca09c870ff89
63
py
Python
tests/api/v1/__init__.py
rogerokello/weConnect-api
e1fb136864842781063a60bae0764defb99e47c6
[ "MIT" ]
1
2019-04-18T19:56:31.000Z
2019-04-18T19:56:31.000Z
tests/api/v1/__init__.py
rogerokello/weconnect-practice
e1fb136864842781063a60bae0764defb99e47c6
[ "MIT" ]
6
2018-02-19T14:17:00.000Z
2018-07-08T08:38:02.000Z
tests/api/v1/__init__.py
rogerokello/weConnect-api
e1fb136864842781063a60bae0764defb99e47c6
[ "MIT" ]
1
2018-02-26T13:05:49.000Z
2018-02-26T13:05:49.000Z
from . import base_test BaseTestCase = base_test.BaseTestCase
15.75
37
0.825397
8
63
6.25
0.625
0.32
0.8
0
0
0
0
0
0
0
0
0
0.126984
63
3
38
21
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
c3cd00f540539a342a90ccd83275964d1cc15cfb
95
py
Python
promptly/exceptions.py
aventurella/promptly
6f757007ad8cc6fe46adc8e45ab3ac41e0fa94cc
[ "0BSD" ]
5
2015-07-21T13:56:28.000Z
2022-01-11T14:34:13.000Z
promptly/exceptions.py
aventurella/promptly
6f757007ad8cc6fe46adc8e45ab3ac41e0fa94cc
[ "0BSD" ]
null
null
null
promptly/exceptions.py
aventurella/promptly
6f757007ad8cc6fe46adc8e45ab3ac41e0fa94cc
[ "0BSD" ]
null
null
null
class ValidationException(Exception): pass class RepromptException(Exception): pass
11.875
37
0.757895
8
95
9
0.625
0.361111
0
0
0
0
0
0
0
0
0
0
0.178947
95
7
38
13.571429
0.923077
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
7f0b3825e278f80e4d83f824ad45011047e2820d
206
py
Python
sets/1/challenges/s1c3.py
aawc/cryptopals
2521cb2455ce3359551ed0d9198ea4c35ca84642
[ "MIT" ]
null
null
null
sets/1/challenges/s1c3.py
aawc/cryptopals
2521cb2455ce3359551ed0d9198ea4c35ca84642
[ "MIT" ]
null
null
null
sets/1/challenges/s1c3.py
aawc/cryptopals
2521cb2455ce3359551ed0d9198ea4c35ca84642
[ "MIT" ]
null
null
null
from common import score_and_decode def main(): s = "1b37373331363f78151b7f2b783431333d78397828372d363c78373e783a393b3736" print score_and_decode.ScoreAndDecode(s) if __name__ == "__main__": main()
22.888889
76
0.805825
20
206
7.7
0.7
0.103896
0.181818
0
0
0
0
0
0
0
0
0.313187
0.116505
206
8
77
25.75
0.532967
0
0
0
0
0
0.368932
0.330097
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.166667
1
0
0
null
0
1
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
7f2399ec32177ee77db00342a2880281fdb968de
85
py
Python
k/stdlib/json/__init__.py
Knewton/k.stdlib
9cf9757721480b845467e37cd6e20e266979412f
[ "Apache-2.0" ]
null
null
null
k/stdlib/json/__init__.py
Knewton/k.stdlib
9cf9757721480b845467e37cd6e20e266979412f
[ "Apache-2.0" ]
null
null
null
k/stdlib/json/__init__.py
Knewton/k.stdlib
9cf9757721480b845467e37cd6e20e266979412f
[ "Apache-2.0" ]
null
null
null
"""This module contains improvements to the json package.""" from .endecode import *
28.333333
60
0.752941
11
85
5.818182
1
0
0
0
0
0
0
0
0
0
0
0
0.141176
85
2
61
42.5
0.876712
0.635294
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
614fdf5a6385667685283adac5834dd8396f734e
253
py
Python
python_utils/__init__.py
xzabg/fast-adversarial
ceef377c4457365832f76df242f9f92cce4f2d0e
[ "BSD-2-Clause" ]
520
2017-04-11T04:55:42.000Z
2022-03-29T12:24:21.000Z
python_utils/__init__.py
xzabg/fast-adversarial
ceef377c4457365832f76df242f9f92cce4f2d0e
[ "BSD-2-Clause" ]
25
2017-04-17T08:13:17.000Z
2020-11-03T20:24:47.000Z
python_utils/__init__.py
xzabg/fast-adversarial
ceef377c4457365832f76df242f9f92cce4f2d0e
[ "BSD-2-Clause" ]
202
2017-04-11T05:35:13.000Z
2022-02-14T23:34:20.000Z
# -------------------------------------------------------- # Python Utils # Copyright (c) 2015 UC Berkeley # Licensed under The MIT License [see LICENSE for details] # Written by Saurabh Gupta # --------------------------------------------------------
36.142857
58
0.403162
20
253
5.1
0.95
0
0
0
0
0
0
0
0
0
0
0.017857
0.114625
253
6
59
42.166667
0.4375
0.948617
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
61a526770f8075cc8a125a7e5646cc68e1e96d7a
93
py
Python
vnegmas/backend/api/web/__init__.py
YueNing/vnegmas
e95adc56ee9aab8d6cd6f28cce04383e199dc2b8
[ "MIT" ]
3
2019-06-29T11:40:29.000Z
2019-09-07T02:15:09.000Z
vnegmas/backend/api/web/__init__.py
YueNing/vnegmas
e95adc56ee9aab8d6cd6f28cce04383e199dc2b8
[ "MIT" ]
null
null
null
vnegmas/backend/api/web/__init__.py
YueNing/vnegmas
e95adc56ee9aab8d6cd6f28cce04383e199dc2b8
[ "MIT" ]
null
null
null
from vnegmas.backend.api.web.web_api import get_web_config, run_negmas, get_real_time_config
46.5
92
0.870968
17
93
4.352941
0.705882
0
0
0
0
0
0
0
0
0
0
0
0.064516
93
1
93
93
0.850575
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
61a5d97f66019b97be0fe75b62c083c617c025b8
1,316
py
Python
python/easy/1450_Number_of_Students_Doing_Homework_at_a_Given_Time.py
JackWang0107/leetcode
c02932190b639ef87a8d0fcd07d9cd6ec7344a67
[ "MIT" ]
1
2021-05-22T03:27:33.000Z
2021-05-22T03:27:33.000Z
python/easy/1450_Number_of_Students_Doing_Homework_at_a_Given_Time.py
JackWang0107/leetcode
c02932190b639ef87a8d0fcd07d9cd6ec7344a67
[ "MIT" ]
null
null
null
python/easy/1450_Number_of_Students_Doing_Homework_at_a_Given_Time.py
JackWang0107/leetcode
c02932190b639ef87a8d0fcd07d9cd6ec7344a67
[ "MIT" ]
null
null
null
from typing import * class Solution: # 36 ms, faster than 69.51% of Python3 online submissions for Number of Students Doing Homework at a Given Time. # 14.1 MB, less than 80.68% of Python3 online submissions for Number of Students Doing Homework at a Given Time. def busyStudent(self, startTime: List[int], endTime: List[int], queryTime: int) -> int: num = 0 for start, end in zip(startTime, endTime): if start <= queryTime <= end: num +=1 return num # 36 ms, faster than 69.51% of Python3 online submissions for Number of Students Doing Homework at a Given Time. # 14.2 MB, less than 80.68% of Python3 online submissions for Number of Students Doing Homework at a Given Time. def busyStudent(self, startTime: List[int], endTime: List[int], queryTime: int) -> int: num = 0 for start, end in zip(startTime, endTime): num += start <= queryTime <= end return num def busyStudent(self, startTime: List[int], endTime: List[int], queryTime: int) -> int: return sum(start <= queryTime <= end for start, end in zip(startTime, endTime)) if __name__ == "__main__": so = Solution() print(so.busyStudent(startTime = [9,8,7,6,5,4,3,2,1], endTime = [10,10,10,10,10,10,10,10,10], queryTime = 5))
50.615385
116
0.651976
197
1,316
4.314721
0.304569
0.037647
0.049412
0.056471
0.78
0.78
0.78
0.78
0.716471
0.716471
0
0.061
0.240122
1,316
25
117
52.64
0.789
0.336626
0
0.5
0
0
0.009217
0
0
0
0
0
0
1
0.166667
false
0
0.055556
0.055556
0.444444
0.055556
0
0
0
null
0
0
0
0
1
1
1
1
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
5
4ede513d14ee2665e114ed4409a13d6ef7c9af8b
631
py
Python
case/translators.py
tombulled/case
befa226bdee6ca673fa2795ede85f6e27865adc1
[ "MIT" ]
null
null
null
case/translators.py
tombulled/case
befa226bdee6ca673fa2795ede85f6e27865adc1
[ "MIT" ]
1
2022-01-07T22:58:17.000Z
2022-03-24T23:13:33.000Z
case/translators.py
tombulled/case
befa226bdee6ca673fa2795ede85f6e27865adc1
[ "MIT" ]
null
null
null
import typing from . import models def translator(hook: typing.Callable, /) -> models.Translator: return models.Translator(hook) @translator def lower(_: int, string: str, /) -> str: return string.lower() @translator def upper(_: int, string: str, /) -> str: return string.upper() @translator def title(_: int, string: str, /) -> str: return string.title() @translator def capitalize(index: int, string: str, /) -> str: return string.title() if index == 0 else string.lower() @translator def dromedary(index: int, string: str, /) -> str: return string.lower() if index == 0 else string.title()
19.121212
62
0.664025
80
631
5.2
0.2625
0.15625
0.144231
0.180288
0.483173
0.396635
0.331731
0
0
0
0
0.003899
0.187005
631
32
63
19.71875
0.807018
0
0
0.263158
0
0
0
0
0
0
0
0
0
1
0.315789
true
0
0.105263
0.315789
0.736842
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
1
1
0
0
5
4ee7598c08d6eab94c73c373f7579442dc18c8ce
182
py
Python
networks/graph_cmr/utils/__init__.py
solomon-ma/PaMIR
010ba7686b52e62b46c123ca89717a921bbaa9d5
[ "Unlicense" ]
374
2019-05-09T01:49:49.000Z
2022-03-30T10:22:11.000Z
networks/graph_cmr/utils/__init__.py
solomon-ma/PaMIR
010ba7686b52e62b46c123ca89717a921bbaa9d5
[ "Unlicense" ]
45
2019-05-09T19:38:19.000Z
2022-03-31T06:17:39.000Z
networks/graph_cmr/utils/__init__.py
solomon-ma/PaMIR
010ba7686b52e62b46c123ca89717a921bbaa9d5
[ "Unlicense" ]
74
2019-05-09T02:21:40.000Z
2021-09-24T07:21:33.000Z
from .saver import CheckpointSaver from .data_loader import CheckpointDataLoader from .base_trainer import BaseTrainer from .train_options import TrainOptions from .mesh import Mesh
30.333333
45
0.862637
23
182
6.695652
0.608696
0
0
0
0
0
0
0
0
0
0
0
0.10989
182
5
46
36.4
0.950617
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
f610d4b967e8e41dc8db8f2954502946ea8829c0
165
py
Python
hedwig/learners/__init__.py
JanKralj/hedwig
a3c54fae253dca3234c880f92836cea73f1569b2
[ "MIT" ]
9
2015-01-18T14:00:13.000Z
2020-03-28T18:57:20.000Z
hedwig/learners/__init__.py
JanKralj/hedwig
a3c54fae253dca3234c880f92836cea73f1569b2
[ "MIT" ]
null
null
null
hedwig/learners/__init__.py
JanKralj/hedwig
a3c54fae253dca3234c880f92836cea73f1569b2
[ "MIT" ]
10
2015-01-28T10:31:46.000Z
2021-05-29T04:58:11.000Z
from hedwig.learners.learner import Learner as HeuristicLearner from hedwig.learners.optimal import OptimalLearner __all__ = ["HeuristicLearner", "OptimalLearner"]
33
63
0.836364
17
165
7.882353
0.588235
0.149254
0.268657
0
0
0
0
0
0
0
0
0
0.090909
165
4
64
41.25
0.893333
0
0
0
0
0
0.181818
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
f6263f67881ad2522a29a882ed6dd04dc748fa96
86
py
Python
Nobe/back_django/api/admin.py
ForFer/bachelor-thesis
50422d666f7a75b9e6e041acccfeb19a937e04e7
[ "Apache-2.0" ]
1
2020-05-01T12:24:52.000Z
2020-05-01T12:24:52.000Z
Nobe/back_django/api/admin.py
ForFer/bachelor-thesis
50422d666f7a75b9e6e041acccfeb19a937e04e7
[ "Apache-2.0" ]
10
2020-05-03T10:31:02.000Z
2022-03-12T00:26:51.000Z
Nobe/back_django/api/admin.py
ForFer/bachelor-thesis
50422d666f7a75b9e6e041acccfeb19a937e04e7
[ "Apache-2.0" ]
1
2020-05-03T10:11:32.000Z
2020-05-03T10:11:32.000Z
from django.contrib import admin from .models import Entry admin.site.register(Entry)
21.5
32
0.825581
13
86
5.461538
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.104651
86
4
33
21.5
0.922078
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
f62d9627bb9eed73b3e2bb498b234f3001b2ab7c
41
py
Python
Chapter 07/Chap07_Example7.85.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 07/Chap07_Example7.85.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 07/Chap07_Example7.85.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
s1 = {1,2,3,4} print(s1) print(type(s1))
10.25
15
0.585366
10
41
2.4
0.7
0
0
0
0
0
0
0
0
0
0
0.194444
0.121951
41
3
16
13.666667
0.472222
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
f62da7f397b88a3b9d42a2d948b9db9ca6ed2e49
165
py
Python
whisper_automatic_test/scenario.py
CoveoWhisper/WhisperAutomaticTest
7575d5958a4c10b8230c0440f67e40a19e85118a
[ "MIT" ]
null
null
null
whisper_automatic_test/scenario.py
CoveoWhisper/WhisperAutomaticTest
7575d5958a4c10b8230c0440f67e40a19e85118a
[ "MIT" ]
4
2018-04-11T18:11:22.000Z
2018-08-31T02:38:34.000Z
whisper_automatic_test/scenario.py
CoveoWhisper/WhisperAutomaticTest
7575d5958a4c10b8230c0440f67e40a19e85118a
[ "MIT" ]
null
null
null
class Scenario: _requests = None def __init__(self, requests): self._requests = requests def get_requests(self): return self._requests
18.333333
33
0.654545
18
165
5.555556
0.5
0.36
0
0
0
0
0
0
0
0
0
0
0.272727
165
8
34
20.625
0.833333
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.166667
0.833333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
5
f634b7e9636e3e72ca71604d947466d66b76563c
401
py
Python
ctaplot/tests/test_imports.py
vuillaut/CTAPLOT
3a7757f6e2487806ca87e41fcd123ccfbd4b964c
[ "MIT" ]
5
2018-07-03T16:13:29.000Z
2021-02-22T13:59:57.000Z
ctaplot/tests/test_imports.py
vuillaut/CTAPLOT
3a7757f6e2487806ca87e41fcd123ccfbd4b964c
[ "MIT" ]
39
2020-03-10T16:52:45.000Z
2022-01-26T14:13:40.000Z
ctaplot/tests/test_imports.py
vuillaut/CTAPLOT
3a7757f6e2487806ca87e41fcd123ccfbd4b964c
[ "MIT" ]
6
2019-11-22T10:01:23.000Z
2021-09-20T12:32:34.000Z
def test_import_plots(): try: from ctaplot import plots except: raise() def test_import_ana(): try: from ctaplot import ana except: raise () def test_import_dataset(): try: from ctaplot.io import dataset except: raise () def test_import_gammaboard(): try: from ctaplot import gammaboard except: raise()
17.434783
38
0.588529
45
401
5.066667
0.288889
0.122807
0.22807
0.263158
0.315789
0
0
0
0
0
0
0
0.339152
401
23
39
17.434783
0.860377
0
0
0.6
0
0
0
0
0
0
0
0
0
1
0.2
true
0
0.4
0
0.6
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
f63a2956e4577b7ad92bc8b315a0a8ad8f05091e
3,340
py
Python
api.py
blackyau/DazhouBus-Server
f1edded104fda5e7646a8519f43a226cafa9e5ea
[ "MIT" ]
1
2019-10-17T13:54:02.000Z
2019-10-17T13:54:02.000Z
api.py
blackyau/DazhouBus-Server
f1edded104fda5e7646a8519f43a226cafa9e5ea
[ "MIT" ]
null
null
null
api.py
blackyau/DazhouBus-Server
f1edded104fda5e7646a8519f43a226cafa9e5ea
[ "MIT" ]
1
2019-10-17T13:54:03.000Z
2019-10-17T13:54:03.000Z
# coding:utf-8 from flask import Flask from flask_restful import Resource, Api, request import requests import json headers = { 'User-Agent': 'okhttp/3.9.0', 'Accept-Encoding': 'gzip' } # 查询线路 def get_lines(line_no, up_or_down=1, city_code=6750): url = "http://ssgj.cecurs.com:32020/nextbusservice/stationlineinfo/getlineandstartendinfo" data = json.dumps({'lineNo': line_no, 'isUpDown': up_or_down, 'cityCode': city_code}) r = requests.post(url, headers=headers, data=data) if r.json()["status"] == "200": return r else: raise Warning("返回数据异常!以下是 API 返回信息\n" + r.text) # 获取线路信息(停靠站点) def get_line_info(line_no, up_or_down=1, city_code=6750): url = "http://ssgj.cecurs.com:32020/nextbusservice/stationlineinfo/getonelineandstartendinfo" data = json.dumps({'lineNo': line_no, 'isUpDown': up_or_down, 'cityCode': city_code}) r = requests.post(url, headers=headers, data=data) if r.json()["status"] == "200": return r else: raise Warning("返回数据异常!以下是 API 返回信息\n" + r.text) # 获取运行状态 def get_running_info(line_no, up_or_down, city_code=6750): url = "http://ssgj.cecurs.com:32020/nextbusservice/stationlineinfo/getrunningbusesbyline" data = json.dumps({'lineNo': line_no, 'isUpDown': up_or_down, 'cityCode': city_code}) r = requests.post(url, headers=headers, data=data) if r.json()["status"] == "200": return r else: raise Warning("返回数据异常!以下是 API 返回信息\n" + r.text) app = Flask(__name__) api = Api(app) class Findlineinfo(Resource): def post(self): data = request.get_json() if data is None: return {"message": "请求失败,远端服务器异常", "status": 400} try: if 'lineNo' not in data or 'isUpDown' not in data or 'cityCode' not in data: return {"message": "参数不完整", "status": 500} out = get_lines(data['lineNo'], data['isUpDown'], data['cityCode']) return out.json() except Warning: return {"message": "请求失败,本地异常", "status": 500} class Getlineinfo(Resource): def post(self): data = request.get_json() if data is None: return {"message": "请求失败,远端服务器异常", "status": 400} try: if 'lineNo' not in data or 'isUpDown' not in data or 'cityCode' not in data: return {"message": "参数不完整", "status": 500} out = get_line_info(data['lineNo'], data['isUpDown'], data['cityCode']) return out.json() except Warning: return {"message": "请求失败,本地异常", "status": 500} class Runninginfo(Resource): def post(self): data = request.get_json() if data is None: return {"message": "请求失败,远端服务器异常", "status": 400} try: if 'lineNo' not in data or 'isUpDown' not in data or 'cityCode' not in data: return {"message": "参数不完整", "status": 500} out = get_running_info(data['lineNo'], data['isUpDown'], data['cityCode']) return out.json() except Warning: return {"message": "请求失败,本地异常", "status": 500} api.add_resource(Findlineinfo, '/bus/findlineinfo') api.add_resource(Getlineinfo, '/bus/getlineinfo') api.add_resource(Runninginfo, '/bus/runninginfo') if __name__ == '__main__': app.run(host='0.0.0.0', port=8866)
34.081633
97
0.617964
431
3,340
4.665893
0.227378
0.05818
0.040278
0.032819
0.758329
0.758329
0.747389
0.747389
0.747389
0.747389
0
0.030102
0.234132
3,340
97
98
34.43299
0.756059
0.011078
0
0.64
0
0
0.253487
0
0
0
0
0
0
1
0.08
false
0
0.053333
0
0.373333
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
f63b66cbfe7159be69a74330676df9a044b9a0d2
1,708
py
Python
tests/test_search.py
dosart/sorting_and_searching
d910a670b540d96eca9aa27b1d8ba2eb25413b38
[ "MIT" ]
2
2021-03-29T07:55:54.000Z
2022-03-25T05:52:57.000Z
tests/test_search.py
dosart/sorting_and_searching
d910a670b540d96eca9aa27b1d8ba2eb25413b38
[ "MIT" ]
null
null
null
tests/test_search.py
dosart/sorting_and_searching
d910a670b540d96eca9aa27b1d8ba2eb25413b38
[ "MIT" ]
null
null
null
"""Tests of search algorithms.""" import pytest from algorithms.search.linear_search import linear_search from algorithms.search.binary_search import binary_search from algorithms.search.exponential_search import exponential_search @pytest.mark.parametrize("function", [linear_search, binary_search, exponential_search]) def test_element_is_not_found(function): items = [1,2,3,4,5] assert(function(items, 6) == -1) @pytest.mark.parametrize("function", [linear_search, binary_search, exponential_search]) def test_list_is_empty(function): assert(function([], 6) == -1) @pytest.mark.parametrize("function", [linear_search, binary_search, exponential_search]) def test_one_element(function): items = [1] assert(function(items, 1) == 0) @pytest.mark.parametrize("function", [linear_search, binary_search, exponential_search]) def test_positive_one(function): items = [1,1,2,3,4] assert(function(items, 1) == 0) @pytest.mark.parametrize("function", [linear_search, binary_search, exponential_search]) def test_positive_two(function): items = [1,1,2,3,4] assert(function(items, 4) == 4) @pytest.mark.parametrize("function", [linear_search, binary_search, exponential_search]) def test_positive_three(function): items = [1,1,2,3,4] assert(function(items, 2) == 2) @pytest.mark.parametrize("function", [linear_search, binary_search, exponential_search]) def test_positive_four(function): items = [1,2,3,4,5,6,7,8,9,10,11] assert(function(items, 6) == 5) @pytest.mark.parametrize("function", [linear_search, binary_search, exponential_search]) def test_positive_four(function): items = [0,1,1,1,1,1,1,1,1] assert(function(items, 0) == 0)
31.054545
88
0.738876
240
1,708
5.054167
0.166667
0.150041
0.133553
0.191261
0.708162
0.708162
0.708162
0.682605
0.682605
0.682605
0
0.039073
0.115925
1,708
54
89
31.62963
0.764238
0.015808
0
0.428571
0
0
0.038209
0
0
0
0
0
0.228571
1
0.228571
false
0
0.114286
0
0.342857
0
0
0
0
null
0
0
1
0
1
1
0
0
1
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
5
f664d73173f1ad7d00fade3d6b9327bb8cbde081
88
py
Python
custom_addons/bista_test/Python Tasks/b.py
MonwarAdeeb/Bista_Solutions
d261e31f21ff03b2cc82b0c26d680036dca6d799
[ "MIT" ]
null
null
null
custom_addons/bista_test/Python Tasks/b.py
MonwarAdeeb/Bista_Solutions
d261e31f21ff03b2cc82b0c26d680036dca6d799
[ "MIT" ]
null
null
null
custom_addons/bista_test/Python Tasks/b.py
MonwarAdeeb/Bista_Solutions
d261e31f21ff03b2cc82b0c26d680036dca6d799
[ "MIT" ]
null
null
null
my_list = [20, 39, 34, 20, 24, 20, 10, 11] my_set = sorted(set(my_list)) print(my_set)
17.6
42
0.636364
19
88
2.736842
0.578947
0.230769
0
0
0
0
0
0
0
0
0
0.219178
0.170455
88
4
43
22
0.493151
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
9cd37d0f49264acc103bdc4b2fc0c10e6ad12dec
108
py
Python
src/bikesharing/definitions.py
JonasReichenbach/bikesharing
ca9e7a36c5237ba141b0afa21bd5b26f0fefc701
[ "MIT" ]
null
null
null
src/bikesharing/definitions.py
JonasReichenbach/bikesharing
ca9e7a36c5237ba141b0afa21bd5b26f0fefc701
[ "MIT" ]
null
null
null
src/bikesharing/definitions.py
JonasReichenbach/bikesharing
ca9e7a36c5237ba141b0afa21bd5b26f0fefc701
[ "MIT" ]
null
null
null
import os ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", ".."))
27
96
0.675926
17
108
4
0.529412
0.352941
0.382353
0
0
0
0
0
0
0
0
0
0.074074
108
3
97
36
0.68
0
0
0
0
0
0.037037
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
1412ca268be6bedaede0f7a0d159e312b5e28147
122
py
Python
api/tacticalrmm/clients/admin.py
jeffreyvh/tacticalrmm
dcfb1732954c2c165e82e6b24686e27f9f909eb3
[ "MIT" ]
1
2020-08-14T20:42:31.000Z
2020-08-14T20:42:31.000Z
api/tacticalrmm/clients/admin.py
jeffreyvh/tacticalrmm
dcfb1732954c2c165e82e6b24686e27f9f909eb3
[ "MIT" ]
5
2021-04-08T19:44:31.000Z
2021-09-22T19:34:33.000Z
api/tacticalrmm/clients/admin.py
jeffreyvh/tacticalrmm
dcfb1732954c2c165e82e6b24686e27f9f909eb3
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Client, Site admin.site.register(Client) admin.site.register(Site)
17.428571
32
0.803279
18
122
5.444444
0.5
0.183673
0.346939
0
0
0
0
0
0
0
0
0
0.106557
122
6
33
20.333333
0.899083
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
14138811da26c4e6e810259442c25a7301edd14e
309
py
Python
mpl_format/axes/__init__.py
vahndi/mpl-format
b03f97c37968e55a35c7181d93616eb44fc55f05
[ "MIT" ]
null
null
null
mpl_format/axes/__init__.py
vahndi/mpl-format
b03f97c37968e55a35c7181d93616eb44fc55f05
[ "MIT" ]
51
2020-05-18T04:18:11.000Z
2022-02-01T02:35:59.000Z
mpl_format/axes/__init__.py
vahndi/mpl-format
b03f97c37968e55a35c7181d93616eb44fc55f05
[ "MIT" ]
null
null
null
from mpl_format.axes.axes_formatter import AxesFormatter from mpl_format.axes.axis_formatter import AxisFormatter from mpl_format.axes.axes_formatter_array import AxesFormatterArray from mpl_format.axes.axis_formatter_array import AxisFormatterArray from mpl_format.axes.ticks_formatter import TicksFormatter
51.5
67
0.902913
42
309
6.357143
0.333333
0.131086
0.243446
0.318352
0.449438
0.449438
0
0
0
0
0
0
0.064725
309
5
68
61.8
0.923875
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
1426bc46c7c31561471ef72168a0c893c5190f6f
94
py
Python
config.py
ICTGTMIT/flask_blog
f3ed49cffab4e43e43d66a698f7104927e3613fb
[ "Apache-2.0" ]
null
null
null
config.py
ICTGTMIT/flask_blog
f3ed49cffab4e43e43d66a698f7104927e3613fb
[ "Apache-2.0" ]
null
null
null
config.py
ICTGTMIT/flask_blog
f3ed49cffab4e43e43d66a698f7104927e3613fb
[ "Apache-2.0" ]
null
null
null
import os class Config: SECRET_KEY = os.environ.get('SECRET_KEY') or 'you will never guess'
18.8
68
0.744681
16
94
4.25
0.8125
0.264706
0
0
0
0
0
0
0
0
0
0
0.148936
94
4
69
23.5
0.85
0
0
0
0
0
0.322581
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
14370a37454d94864ec8aed458494e0f1c8d86e2
40
py
Python
code/abc162_a_03.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
3
2019-08-16T16:55:48.000Z
2021-04-11T10:21:40.000Z
code/abc162_a_03.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
code/abc162_a_03.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
print("Yes" if "7" in input() else "No")
40
40
0.6
8
40
3
1
0
0
0
0
0
0
0
0
0
0
0.029412
0.15
40
1
40
40
0.676471
0
0
0
0
0
0.146341
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
1439cd4b2db8a353a0c27393d2b8820e2ffc7cef
71
py
Python
app/models/__init__.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
5
2018-03-19T19:04:53.000Z
2021-02-19T16:44:04.000Z
app/models/__init__.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
6
2020-04-18T16:14:22.000Z
2021-08-14T09:23:16.000Z
app/models/__init__.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
1
2021-01-10T18:47:38.000Z
2021-01-10T18:47:38.000Z
from .bookmark import Bookmark from .last_location import LastLocation
35.5
39
0.859155
9
71
6.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.112676
71
2
39
35.5
0.952381
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
145aafd1b7b3a44575441c21354d9cdfe0865f2e
41
py
Python
test/__init__.py
rpmoseley/pydelivery
f119997993c4d7fbce937e7fe144f5c4f8b3c7c7
[ "MIT" ]
null
null
null
test/__init__.py
rpmoseley/pydelivery
f119997993c4d7fbce937e7fe144f5c4f8b3c7c7
[ "MIT" ]
null
null
null
test/__init__.py
rpmoseley/pydelivery
f119997993c4d7fbce937e7fe144f5c4f8b3c7c7
[ "MIT" ]
null
null
null
import sys sys.path.append('pydelivery')
13.666667
29
0.780488
6
41
5.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.073171
41
2
30
20.5
0.842105
0
0
0
0
0
0.243902
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
146a0727145222d7c90f0b5895703510d8cb4135
1,008
py
Python
setup.py
mhavrlent/routeros
63949f50881e0d8e154d45fcfc44027f199eeae3
[ "MIT" ]
null
null
null
setup.py
mhavrlent/routeros
63949f50881e0d8e154d45fcfc44027f199eeae3
[ "MIT" ]
null
null
null
setup.py
mhavrlent/routeros
63949f50881e0d8e154d45fcfc44027f199eeae3
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='routeros', packages=['routeros'], version='1.2', description='Implementation of Mikrotik API', license='MIT', author='Ramiro Tician', author_email='ramirotician@gmail.com', url='https://github.com/rtician/routeros', download_url='https://github.com/rtician/routeros/archive/v1.2.tar.gz', keywords=['mikrotik', 'routeros', 'api'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: MacOS', 'Operating System :: Microsoft :: Windows', 'Operating System :: Unix', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Topic :: Software Development :: Libraries' ], )
34.758621
73
0.638889
106
1,008
6.056604
0.566038
0.207165
0.272586
0.202492
0.183801
0.099688
0
0
0
0
0
0.020988
0.196429
1,008
28
74
36
0.771605
0
0
0
0
0
0.650794
0.021825
0
0
0
0
0
1
0
true
0
0.035714
0
0.035714
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
1475a16dbd9f880c9c57bdcac59be6670b146d3f
11,954
py
Python
geocms/migrations/0001_initial.py
JeffHeard/terrapyn
8d883b6c8a729e972c12d6f0c3b2a34ea86dcd88
[ "Apache-2.0" ]
1
2016-10-27T14:58:04.000Z
2016-10-27T14:58:04.000Z
geocms/migrations/0001_initial.py
JeffHeard/terrapyn
8d883b6c8a729e972c12d6f0c3b2a34ea86dcd88
[ "Apache-2.0" ]
null
null
null
geocms/migrations/0001_initial.py
JeffHeard/terrapyn
8d883b6c8a729e972c12d6f0c3b2a34ea86dcd88
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.contrib.gis.db.models.fields import timedelta.fields import django_hstore.fields class Migration(migrations.Migration): dependencies = [ ('sites', '0001_initial'), ('pages', '__first__'), ] operations = [ migrations.CreateModel( name='DataResource', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('keywords_string', models.CharField(max_length=500, editable=False, blank=True)), ('title', models.CharField(max_length=500, verbose_name='Title')), ('slug', models.CharField(help_text='Leave blank to have the URL auto-generated from the title.', max_length=2000, null=True, verbose_name='URL', blank=True)), ('_meta_title', models.CharField(help_text='Optional title to be used in the HTML title tag. If left blank, the main title field will be used.', max_length=500, null=True, verbose_name='Title', blank=True)), ('description', models.TextField(verbose_name='Description', blank=True)), ('gen_description', models.BooleanField(default=True, help_text='If checked, the description will be automatically generated from content. Uncheck if you want to manually set a custom description.', verbose_name='Generate description')), ('created', models.DateTimeField(null=True, editable=False)), ('updated', models.DateTimeField(null=True, editable=False)), ('status', models.IntegerField(default=2, help_text='With Draft chosen, will only be shown for admin users on the site.', verbose_name='Status', choices=[(1, 'Draft'), (2, 'Published')])), ('publish_date', models.DateTimeField(help_text="With Published chosen, won't be shown until this time", null=True, verbose_name='Published from', blank=True)), ('expiry_date', models.DateTimeField(help_text="With Published chosen, won't be shown after this time", null=True, verbose_name='Expires on', blank=True)), ('short_url', models.URLField(null=True, blank=True)), ('in_sitemap', models.BooleanField(default=True, verbose_name='Show in sitemap')), ('original_file', models.FileField(null=True, upload_to=b'geographica_resources', blank=True)), ('resource_file', models.FileField(null=True, upload_to=b'geographica_resources', blank=True)), ('resource_url', models.URLField(null=True, blank=True)), ('metadata_url', models.URLField(null=True, blank=True)), ('metadata_xml', models.TextField(null=True, blank=True)), ('driver_config', django_hstore.fields.DictionaryField(null=True, blank=True)), ('metadata_properties', django_hstore.fields.DictionaryField(null=True, blank=True)), ('last_change', models.DateTimeField(auto_now=True, null=True)), ('last_refresh', models.DateTimeField(null=True, blank=True)), ('next_refresh', models.DateTimeField(db_index=True, null=True, blank=True)), (b'refresh_every', timedelta.fields.TimedeltaField(max_value=None, min_value=None)), ('md5sum', models.CharField(max_length=64, null=True, blank=True)), ('bounding_box', django.contrib.gis.db.models.fields.PolygonField(srid=4326, null=True, blank=True)), ('import_log', models.TextField(null=True, blank=True)), ('driver', models.CharField(default=b'terrapyn.geocms.drivers.spatialite', max_length=255, choices=[(b'terrapyn.geocms.drivers.spatialite', b'Spatialite (universal vector)'), (b'terrapyn.geocms.drivers.shapefile', b'Shapefile'), (b'terrapyn.geocms.drivers.geotiff', b'GeoTIFF'), (b'terrapyn.geocms.drivers.postgis', b'PostGIS'), (b'terrapyn.geocms.drivers.kmz', b'Google Earth KMZ'), (b'terrapyn.geocms.drivers.ogr', b'OGR DataSource')])), ('big', models.BooleanField(default=False, help_text=b'Set this to be true if the dataset is more than 100MB')), ('site', models.ForeignKey(editable=False, to='sites.Site')), ], options={ 'abstract': False, }, bases=(models.Model,), ), migrations.CreateModel( name='DirectoryEntry', fields=[ ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='pages.Page')), ], options={ 'ordering': ['title'], }, bases=('pages.page',), ), migrations.CreateModel( name='Layer', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('keywords_string', models.CharField(max_length=500, editable=False, blank=True)), ('title', models.CharField(max_length=500, verbose_name='Title')), ('slug', models.CharField(help_text='Leave blank to have the URL auto-generated from the title.', max_length=2000, null=True, verbose_name='URL', blank=True)), ('_meta_title', models.CharField(help_text='Optional title to be used in the HTML title tag. If left blank, the main title field will be used.', max_length=500, null=True, verbose_name='Title', blank=True)), ('description', models.TextField(verbose_name='Description', blank=True)), ('gen_description', models.BooleanField(default=True, help_text='If checked, the description will be automatically generated from content. Uncheck if you want to manually set a custom description.', verbose_name='Generate description')), ('created', models.DateTimeField(null=True, editable=False)), ('updated', models.DateTimeField(null=True, editable=False)), ('status', models.IntegerField(default=2, help_text='With Draft chosen, will only be shown for admin users on the site.', verbose_name='Status', choices=[(1, 'Draft'), (2, 'Published')])), ('publish_date', models.DateTimeField(help_text="With Published chosen, won't be shown until this time", null=True, verbose_name='Published from', blank=True)), ('expiry_date', models.DateTimeField(help_text="With Published chosen, won't be shown after this time", null=True, verbose_name='Expires on', blank=True)), ('short_url', models.URLField(null=True, blank=True)), ('in_sitemap', models.BooleanField(default=True, verbose_name='Show in sitemap')), ('default_class', models.CharField(default=b'default', max_length=255)), ('data_resource', models.ForeignKey(to='geocms.DataResource')), ], options={ 'abstract': False, }, bases=(models.Model,), ), migrations.CreateModel( name='ResourceMetadata', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('table', models.TextField()), ('last_change', models.DateTimeField(auto_now=True, null=True)), ('native_bounding_box', django.contrib.gis.db.models.fields.PolygonField(srid=4326, null=True, blank=True)), ('bounding_box', django.contrib.gis.db.models.fields.PolygonField(srid=4326, null=True, blank=True)), ('three_d', models.BooleanField(default=False)), ('native_srs', models.TextField(null=True, blank=True)), ('resource', models.ForeignKey(related_name='metadata', to='geocms.DataResource')), ], options={ }, bases=(models.Model,), ), migrations.CreateModel( name='Style', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('keywords_string', models.CharField(max_length=500, editable=False, blank=True)), ('title', models.CharField(max_length=500, verbose_name='Title')), ('slug', models.CharField(help_text='Leave blank to have the URL auto-generated from the title.', max_length=2000, null=True, verbose_name='URL', blank=True)), ('_meta_title', models.CharField(help_text='Optional title to be used in the HTML title tag. If left blank, the main title field will be used.', max_length=500, null=True, verbose_name='Title', blank=True)), ('description', models.TextField(verbose_name='Description', blank=True)), ('gen_description', models.BooleanField(default=True, help_text='If checked, the description will be automatically generated from content. Uncheck if you want to manually set a custom description.', verbose_name='Generate description')), ('created', models.DateTimeField(null=True, editable=False)), ('updated', models.DateTimeField(null=True, editable=False)), ('status', models.IntegerField(default=2, help_text='With Draft chosen, will only be shown for admin users on the site.', verbose_name='Status', choices=[(1, 'Draft'), (2, 'Published')])), ('publish_date', models.DateTimeField(help_text="With Published chosen, won't be shown until this time", null=True, verbose_name='Published from', blank=True)), ('expiry_date', models.DateTimeField(help_text="With Published chosen, won't be shown after this time", null=True, verbose_name='Expires on', blank=True)), ('short_url', models.URLField(null=True, blank=True)), ('in_sitemap', models.BooleanField(default=True, verbose_name='Show in sitemap')), ('legend', models.ImageField(height_field=b'legend_height', width_field=b'legend_width', null=True, upload_to=b'terrapyn.styles.legends', blank=True)), ('legend_width', models.IntegerField(null=True, blank=True)), ('legend_height', models.IntegerField(null=True, blank=True)), ('stylesheet', models.TextField()), ('site', models.ForeignKey(editable=False, to='sites.Site')), ], options={ 'abstract': False, }, bases=(models.Model,), ), migrations.AddField( model_name='layer', name='default_style', field=models.ForeignKey(related_name='default_for_layer', to='geocms.Style'), preserve_default=True, ), migrations.AddField( model_name='layer', name='site', field=models.ForeignKey(editable=False, to='sites.Site'), preserve_default=True, ), migrations.AddField( model_name='layer', name='styles', field=models.ManyToManyField(to='geocms.Style', null=True, blank=True), preserve_default=True, ), migrations.AddField( model_name='directoryentry', name='layers', field=models.ManyToManyField(to='geocms.Layer', null=True, blank=True), preserve_default=True, ), migrations.AddField( model_name='directoryentry', name='resources', field=models.ManyToManyField(to='geocms.DataResource', null=True, blank=True), preserve_default=True, ), migrations.AddField( model_name='directoryentry', name='styles', field=models.ManyToManyField(to='geocms.Style', null=True, blank=True), preserve_default=True, ), ]
68.701149
455
0.625899
1,343
11,954
5.446016
0.153388
0.049221
0.039103
0.051135
0.794914
0.773448
0.742275
0.726415
0.701258
0.663249
0
0.008425
0.235402
11,954
173
456
69.098266
0.791794
0.001757
0
0.652695
0
0.035928
0.272819
0.023636
0
0
0
0
0
1
0
false
0
0.035928
0
0.053892
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
1492a4a21b5b2556be8a9568e8273714124acbc4
38
py
Python
tests/samples/__init__.py
MetaGenScope/metagenscope-server
609cd57c626c857c8efde8237a1f22f4d1e6065d
[ "MIT" ]
null
null
null
tests/samples/__init__.py
MetaGenScope/metagenscope-server
609cd57c626c857c8efde8237a1f22f4d1e6065d
[ "MIT" ]
35
2019-12-09T19:29:10.000Z
2020-02-02T19:06:53.000Z
tests/samples/__init__.py
MetaGenScope/metagenscope-server
609cd57c626c857c8efde8237a1f22f4d1e6065d
[ "MIT" ]
null
null
null
"""Test suites for Samples module."""
19
37
0.684211
5
38
5.2
1
0
0
0
0
0
0
0
0
0
0
0
0.131579
38
1
38
38
0.787879
0.815789
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
210870072501c95cff46336c0ea3d31b90b935b3
96
py
Python
venv/lib/python3.8/site-packages/past/__init__.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/past/__init__.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/past/__init__.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/c0/88/97/680bd7977b2f0e2f9fceecba1c30f456cb8256be1c9ea9c2afc5c83462
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.375
0
96
1
96
96
0.520833
0
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
5
210c3f315acd9a20ec3e184c249b0a4880779142
115
py
Python
src/ops/nn_distance/__init__.py
mauriceqch/pcc_attr_folding
2fc37de7fb146a724ebada2e39df51de272fa01a
[ "MIT" ]
11
2020-06-26T12:47:27.000Z
2021-12-03T08:33:53.000Z
src/ops/nn_distance/__init__.py
mauriceqch/pcc_attr_folding
2fc37de7fb146a724ebada2e39df51de272fa01a
[ "MIT" ]
2
2020-06-24T04:35:06.000Z
2021-11-12T06:32:16.000Z
src/ops/nn_distance/__init__.py
mauriceqch/pcc_attr_folding
2fc37de7fb146a724ebada2e39df51de272fa01a
[ "MIT" ]
2
2020-06-24T02:26:25.000Z
2021-07-20T04:51:42.000Z
from .nn_distance import nn_distance from .nn_distance2 import nn_distance2 __all__ = [nn_distance, nn_distance2]
23
38
0.834783
17
115
5.058824
0.352941
0.348837
0
0
0
0
0
0
0
0
0
0.029412
0.113043
115
4
39
28.75
0.813725
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
2129af445ef5aaea62c58df7f114ae673e9eb263
39
py
Python
src/agent/utils/replayBuffer.py
Lukeeeeee/AlphaDriver
93635f5c22f8d1c9d1fca41328565f2c1e2f98ab
[ "MIT" ]
null
null
null
src/agent/utils/replayBuffer.py
Lukeeeeee/AlphaDriver
93635f5c22f8d1c9d1fca41328565f2c1e2f98ab
[ "MIT" ]
null
null
null
src/agent/utils/replayBuffer.py
Lukeeeeee/AlphaDriver
93635f5c22f8d1c9d1fca41328565f2c1e2f98ab
[ "MIT" ]
null
null
null
class ReplayBuffer(object): pass
7.8
27
0.692308
4
39
6.75
1
0
0
0
0
0
0
0
0
0
0
0
0.230769
39
4
28
9.75
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
214536a4a13c0257659471daedd40aa89617749c
3,851
py
Python
impl/post_process/post_process.py
snucvpip/MopReM
4338bb0c4980b40d448967b48a5785be7d129b27
[ "MIT" ]
15
2021-12-09T02:56:32.000Z
2022-01-12T07:25:06.000Z
impl/post_process/post_process.py
snucvpip/MopReM
4338bb0c4980b40d448967b48a5785be7d129b27
[ "MIT" ]
2
2021-11-26T16:56:13.000Z
2021-12-02T15:52:28.000Z
impl/post_process/post_process.py
snucvpip/MopReM
4338bb0c4980b40d448967b48a5785be7d129b27
[ "MIT" ]
null
null
null
import numpy as np import os import cv2 def main(info, datadir, resultdir): level = len(info) img_width, img_height = info[0][1] filename = '0-1.png' filepath = os.path.join(datadir, filename) img_zero = cv2.imread(filepath, cv2.IMREAD_COLOR) result_name = 'clean0.png' result_path = os.path.join(resultdir, result_name) cv2.imwrite(result_path, img_zero) return for i in range(1, level): img_merge = np.empty(shape=(img_height, img_width, 3)) acc_array = np.empty(shape=(img_height, img_width, 3)) nx, ny = info[i][0] partial_width, partial_height = info[i][1] stride = info[i][2] num = 1 for y in range(ny): if y != ny - 1: for x in range(nx): filename = str(i)+'-'+str(num)+'.png' filepath = os.path.join(datadir, filename) partial_image = cv2.imread(filepath, cv2.IMREAD_COLOR) temp = np.empty(shape=(partial_width, partial_height)) if x == nx - 1: temp = img_merge[y * stride[1]: y * stride[1] + partial_height,\ img_width-1-partial_width:img_width-1] temp = (temp+partial_image) img_merge[y * stride[1]: y * stride[1] + partial_height,\ img_width-1-partial_width:img_width-1] = temp acc_array[y * stride[1]: y * stride[1] + partial_height,\ img_width-1-partial_width:img_width-1] += 1 else: temp = img_merge[y * stride[1]: y * stride[1] + partial_height,\ x * stride[0]: x * stride[0] + partial_width] temp = (temp+partial_image) img_merge[y * stride[1]: y * stride[1] + partial_height,\ x * stride[0]: x * stride[0] + partial_width] = temp acc_array[y * stride[1]: y * stride[1] + partial_height,\ x * stride[0]: x * stride[0] + partial_width] += 1 num += 1 else: for x in range(nx): filename = str(i)+'-'+str(num)+'.png' filepath = os.path.join(datadir, filename) partial_image = cv2.imread(filepath, cv2.IMREAD_COLOR) if x == nx - 1: temp = img_merge[img_height-1-partial_height:img_height-1,\ img_width-1-partial_width:img_width-1] temp = (temp+partial_image) img_merge[img_height-1-partial_height:img_height-1,\ img_width-1-partial_width:img_width-1] = temp acc_array[img_height-1-partial_height:img_height-1,\ img_width-1-partial_width:img_width-1] += 1 else: temp = img_merge[img_height-1-partial_height:img_height-1,\ x * stride[0]: x * stride[0] + partial_width] temp = (temp+partial_image) img_merge[img_height-1-partial_height:img_height-1,\ x * stride[0]: x * stride[0] + partial_width] = temp acc_array[img_height-1-partial_height:img_height-1,\ x * stride[0]: x * stride[0] + partial_width] += 1 num += 1 result_name = 'clean'+str(i)+'.png' result_path = os.path.join(resultdir, result_name) np.seterr(divide='ignore', invalid='ignore') cv2.imwrite(result_path, img_merge/acc_array)
51.346667
88
0.489743
458
3,851
3.914847
0.128821
0.080312
0.053542
0.085332
0.80145
0.775795
0.758505
0.731735
0.698271
0.651422
0
0.033708
0.399117
3,851
75
89
51.346667
0.741141
0
0
0.657143
0
0
0.012461
0
0
0
0
0
0
1
0.014286
false
0
0.042857
0
0.071429
0
0
0
0
null
0
0
0
1
1
1
1
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
5
216b4c3769953aa16cebae4c79ba0ee9977fe382
47,868
py
Python
alphausblue/iam/v1/iam_pb2_grpc.py
alphauslabs/blue-sdk-python
24120a60cd153a69080661a687938b417b32f947
[ "Apache-2.0" ]
null
null
null
alphausblue/iam/v1/iam_pb2_grpc.py
alphauslabs/blue-sdk-python
24120a60cd153a69080661a687938b417b32f947
[ "Apache-2.0" ]
null
null
null
alphausblue/iam/v1/iam_pb2_grpc.py
alphauslabs/blue-sdk-python
24120a60cd153a69080661a687938b417b32f947
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from alphausblue.api import apiclient_pb2 as api_dot_apiclient__pb2 from alphausblue.api import grouprootuser_pb2 as api_dot_grouprootuser__pb2 from alphausblue.api import rbac_pb2 as api_dot_rbac__pb2 from alphausblue.api import user_pb2 as api_dot_user__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from alphausblue.iam.v1 import iam_pb2 as iam_dot_v1_dot_iam__pb2 class IamStub(object): """IAM service definition. """ def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.WhoAmI = channel.unary_unary( '/blueapi.iam.v1.Iam/WhoAmI', request_serializer=iam_dot_v1_dot_iam__pb2.WhoAmIRequest.SerializeToString, response_deserializer=api_dot_user__pb2.User.FromString, ) self.ListUsers = channel.unary_stream( '/blueapi.iam.v1.Iam/ListUsers', request_serializer=iam_dot_v1_dot_iam__pb2.ListUsersRequest.SerializeToString, response_deserializer=api_dot_user__pb2.User.FromString, ) self.GetUser = channel.unary_unary( '/blueapi.iam.v1.Iam/GetUser', request_serializer=iam_dot_v1_dot_iam__pb2.GetUserRequest.SerializeToString, response_deserializer=api_dot_user__pb2.User.FromString, ) self.CreateUser = channel.unary_unary( '/blueapi.iam.v1.Iam/CreateUser', request_serializer=iam_dot_v1_dot_iam__pb2.CreateUserRequest.SerializeToString, response_deserializer=api_dot_user__pb2.User.FromString, ) self.DeleteUser = channel.unary_unary( '/blueapi.iam.v1.Iam/DeleteUser', request_serializer=iam_dot_v1_dot_iam__pb2.DeleteUserRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.CreateGroupRootUser = channel.unary_unary( '/blueapi.iam.v1.Iam/CreateGroupRootUser', request_serializer=iam_dot_v1_dot_iam__pb2.CreateGroupRootUserRequest.SerializeToString, response_deserializer=api_dot_grouprootuser__pb2.GroupRootUser.FromString, ) self.ListGroupRootUsers = channel.unary_stream( '/blueapi.iam.v1.Iam/ListGroupRootUsers', request_serializer=iam_dot_v1_dot_iam__pb2.ListGroupRootUsersRequest.SerializeToString, response_deserializer=api_dot_grouprootuser__pb2.GroupRootUser.FromString, ) self.GetGroupRootUser = channel.unary_unary( '/blueapi.iam.v1.Iam/GetGroupRootUser', request_serializer=iam_dot_v1_dot_iam__pb2.GetGroupRootRequest.SerializeToString, response_deserializer=api_dot_grouprootuser__pb2.GroupRootUser.FromString, ) self.DeleteGroupRootUser = channel.unary_unary( '/blueapi.iam.v1.Iam/DeleteGroupRootUser', request_serializer=iam_dot_v1_dot_iam__pb2.DeleteGroupRootUserRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.GetFeatureFlags = channel.unary_unary( '/blueapi.iam.v1.Iam/GetFeatureFlags', request_serializer=iam_dot_v1_dot_iam__pb2.GetFeatureFlagsRequest.SerializeToString, response_deserializer=api_dot_grouprootuser__pb2.FeatureFlags.FromString, ) self.UpdateFeatureFlags = channel.unary_unary( '/blueapi.iam.v1.Iam/UpdateFeatureFlags', request_serializer=iam_dot_v1_dot_iam__pb2.UpdateFeatureFlagsRequest.SerializeToString, response_deserializer=api_dot_grouprootuser__pb2.FeatureFlags.FromString, ) self.ListApiClients = channel.unary_stream( '/blueapi.iam.v1.Iam/ListApiClients', request_serializer=iam_dot_v1_dot_iam__pb2.ListApiClientsRequest.SerializeToString, response_deserializer=api_dot_apiclient__pb2.ApiClient.FromString, ) self.CreateApiClient = channel.unary_unary( '/blueapi.iam.v1.Iam/CreateApiClient', request_serializer=iam_dot_v1_dot_iam__pb2.CreateApiClientRequest.SerializeToString, response_deserializer=api_dot_apiclient__pb2.ApiClient.FromString, ) self.DeleteApiClient = channel.unary_unary( '/blueapi.iam.v1.Iam/DeleteApiClient', request_serializer=iam_dot_v1_dot_iam__pb2.DeleteApiClientRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.ListPermissions = channel.unary_unary( '/blueapi.iam.v1.Iam/ListPermissions', request_serializer=iam_dot_v1_dot_iam__pb2.ListPermissionsRequest.SerializeToString, response_deserializer=iam_dot_v1_dot_iam__pb2.ListPermissionsResponse.FromString, ) self.ListRoles = channel.unary_unary( '/blueapi.iam.v1.Iam/ListRoles', request_serializer=iam_dot_v1_dot_iam__pb2.ListRolesRequest.SerializeToString, response_deserializer=iam_dot_v1_dot_iam__pb2.ListRolesResponse.FromString, ) self.CreateRole = channel.unary_unary( '/blueapi.iam.v1.Iam/CreateRole', request_serializer=iam_dot_v1_dot_iam__pb2.CreateRoleRequest.SerializeToString, response_deserializer=api_dot_rbac__pb2.Role.FromString, ) self.UpdateRole = channel.unary_unary( '/blueapi.iam.v1.Iam/UpdateRole', request_serializer=iam_dot_v1_dot_iam__pb2.UpdateRoleRequest.SerializeToString, response_deserializer=api_dot_rbac__pb2.Role.FromString, ) self.DeleteRole = channel.unary_unary( '/blueapi.iam.v1.Iam/DeleteRole', request_serializer=iam_dot_v1_dot_iam__pb2.DeleteRoleRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.ListUserRoleMappings = channel.unary_unary( '/blueapi.iam.v1.Iam/ListUserRoleMappings', request_serializer=iam_dot_v1_dot_iam__pb2.ListUserRoleMappingsRequest.SerializeToString, response_deserializer=iam_dot_v1_dot_iam__pb2.ListUserRoleMappingsResponse.FromString, ) self.CreateUserRoleMapping = channel.unary_unary( '/blueapi.iam.v1.Iam/CreateUserRoleMapping', request_serializer=iam_dot_v1_dot_iam__pb2.CreateUserRoleMappingRequest.SerializeToString, response_deserializer=iam_dot_v1_dot_iam__pb2.CreateUserRoleMappingResponse.FromString, ) self.UpdateUserRoleMapping = channel.unary_unary( '/blueapi.iam.v1.Iam/UpdateUserRoleMapping', request_serializer=iam_dot_v1_dot_iam__pb2.UpdateUserRoleMappingRequest.SerializeToString, response_deserializer=iam_dot_v1_dot_iam__pb2.UpdateUserRoleMappingResponse.FromString, ) self.ListIdentityProviders = channel.unary_unary( '/blueapi.iam.v1.Iam/ListIdentityProviders', request_serializer=iam_dot_v1_dot_iam__pb2.ListIdentityProvidersRequest.SerializeToString, response_deserializer=iam_dot_v1_dot_iam__pb2.ListIdentityProvidersResponse.FromString, ) self.CreateIdentityProvider = channel.unary_unary( '/blueapi.iam.v1.Iam/CreateIdentityProvider', request_serializer=iam_dot_v1_dot_iam__pb2.CreateIdentityProviderRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.DeleteIdentityProvider = channel.unary_unary( '/blueapi.iam.v1.Iam/DeleteIdentityProvider', request_serializer=iam_dot_v1_dot_iam__pb2.DeleteIdentityProviderRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.ListIpFilters = channel.unary_stream( '/blueapi.iam.v1.Iam/ListIpFilters', request_serializer=iam_dot_v1_dot_iam__pb2.ListIpFiltersRequest.SerializeToString, response_deserializer=iam_dot_v1_dot_iam__pb2.IpFilter.FromString, ) self.CreateIpFilter = channel.unary_unary( '/blueapi.iam.v1.Iam/CreateIpFilter', request_serializer=iam_dot_v1_dot_iam__pb2.CreateIpFilterRequest.SerializeToString, response_deserializer=iam_dot_v1_dot_iam__pb2.IpFilter.FromString, ) self.DeleteIpFilter = channel.unary_unary( '/blueapi.iam.v1.Iam/DeleteIpFilter', request_serializer=iam_dot_v1_dot_iam__pb2.DeleteIpFilterRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) class IamServicer(object): """IAM service definition. """ def WhoAmI(self, request, context): """Gets user information about the caller. This call includes all of the user metadata. See [https://alphauslabs.github.io/blueapi/] for the list of supported attributes. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def ListUsers(self, request, context): """Lists all subusers. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def GetUser(self, request, context): """Gets subuser information. This call includes all of the subuser metadata. See [https://alphauslabs.github.io/blueapi/] for the list of supported attributes. If the `{name}` parameter is `me` or `-`, returns the caller information, which is equivalent to `WhoAmI()` or `GET:/iam/v*/whoami`. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def CreateUser(self, request, context): """Creates a subuser. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def DeleteUser(self, request, context): """Deletes a subuser. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def CreateGroupRootUser(self, request, context): """WORK IN PROGRESS: Creates a new root user for a billing group or access group. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def ListGroupRootUsers(self, request, context): """WORK IN PROGRESS Retrieves all the existing group root users asscoiated with the organization. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def GetGroupRootUser(self, request, context): """WORK IN PROGRESS: Retrieves an group root user. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def DeleteGroupRootUser(self, request, context): """WORK IN PROGRESS Deletes an existing group root user. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def GetFeatureFlags(self, request, context): """WORK IN PROGRESS: Retrieves the features available to a user on an Alphaus product. For a list of valid feature flags, see our documentation at https://alphauslabs.github.io/blueapi/apis/iam.html. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def UpdateFeatureFlags(self, request, context): """WORK IN PROGRESS: Updates the features available to a user on an Alphaus product. For a list of valid feature flags, see our documentation at https://alphauslabs.github.io/blueapi/apis/iam.html. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def ListApiClients(self, request, context): """Lists all API clients belonging to the caller. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def CreateApiClient(self, request, context): """Creates an API client for the caller. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def DeleteApiClient(self, request, context): """Deletes an API client belonging to the caller. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def ListPermissions(self, request, context): """Lists all permissions based on the input's scope. For reference, supported permissions can be found on [https://github.com/mobingi/rbac-permissions]. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def ListRoles(self, request, context): """Lists all available roles. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def CreateRole(self, request, context): """Creates a role. If your `permissions` list contains an `Admin` entry, all other entries will be discarded except `Admin`. Roles are root user-level. That means all roles created by the root user, or any subuser that has permissions to create roles, are available to all subusers. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def UpdateRole(self, request, context): """Updates a role. If role name is different, rename mapped role name. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def DeleteRole(self, request, context): """Deletes a role. Deleting a role will also remove all mappings. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def ListUserRoleMappings(self, request, context): """Lists roles attached to the caller or the input. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def CreateUserRoleMapping(self, request, context): """Maps roles to a subuser. You can only map (or attach) up to 5 roles to a user per namespace. There is no limit for filtering rules per user. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def UpdateUserRoleMapping(self, request, context): """Updates user-to-role mappings. You can only map (or attach) up to 5 roles to a user per namespace. There is no limit for filtering rules per user. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def ListIdentityProviders(self, request, context): """Lists all SSO Identity Providers (IdP). """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def CreateIdentityProvider(self, request, context): """Registers an SSO Identity Provider (IdP). """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def DeleteIdentityProvider(self, request, context): """Deletes an SSO Identity Provider (IdP). """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def ListIpFilters(self, request, context): """Lists all IP filters. At the moment, this API is only available to root users. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def CreateIpFilter(self, request, context): """Creates an IP filter item for IP blacklisting or whitelisting. At the moment, this API is only available to root users. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def DeleteIpFilter(self, request, context): """Deletes an IP filter item. At the moment, this API is only available to root users. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') def add_IamServicer_to_server(servicer, server): rpc_method_handlers = { 'WhoAmI': grpc.unary_unary_rpc_method_handler( servicer.WhoAmI, request_deserializer=iam_dot_v1_dot_iam__pb2.WhoAmIRequest.FromString, response_serializer=api_dot_user__pb2.User.SerializeToString, ), 'ListUsers': grpc.unary_stream_rpc_method_handler( servicer.ListUsers, request_deserializer=iam_dot_v1_dot_iam__pb2.ListUsersRequest.FromString, response_serializer=api_dot_user__pb2.User.SerializeToString, ), 'GetUser': grpc.unary_unary_rpc_method_handler( servicer.GetUser, request_deserializer=iam_dot_v1_dot_iam__pb2.GetUserRequest.FromString, response_serializer=api_dot_user__pb2.User.SerializeToString, ), 'CreateUser': grpc.unary_unary_rpc_method_handler( servicer.CreateUser, request_deserializer=iam_dot_v1_dot_iam__pb2.CreateUserRequest.FromString, response_serializer=api_dot_user__pb2.User.SerializeToString, ), 'DeleteUser': grpc.unary_unary_rpc_method_handler( servicer.DeleteUser, request_deserializer=iam_dot_v1_dot_iam__pb2.DeleteUserRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'CreateGroupRootUser': grpc.unary_unary_rpc_method_handler( servicer.CreateGroupRootUser, request_deserializer=iam_dot_v1_dot_iam__pb2.CreateGroupRootUserRequest.FromString, response_serializer=api_dot_grouprootuser__pb2.GroupRootUser.SerializeToString, ), 'ListGroupRootUsers': grpc.unary_stream_rpc_method_handler( servicer.ListGroupRootUsers, request_deserializer=iam_dot_v1_dot_iam__pb2.ListGroupRootUsersRequest.FromString, response_serializer=api_dot_grouprootuser__pb2.GroupRootUser.SerializeToString, ), 'GetGroupRootUser': grpc.unary_unary_rpc_method_handler( servicer.GetGroupRootUser, request_deserializer=iam_dot_v1_dot_iam__pb2.GetGroupRootRequest.FromString, response_serializer=api_dot_grouprootuser__pb2.GroupRootUser.SerializeToString, ), 'DeleteGroupRootUser': grpc.unary_unary_rpc_method_handler( servicer.DeleteGroupRootUser, request_deserializer=iam_dot_v1_dot_iam__pb2.DeleteGroupRootUserRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'GetFeatureFlags': grpc.unary_unary_rpc_method_handler( servicer.GetFeatureFlags, request_deserializer=iam_dot_v1_dot_iam__pb2.GetFeatureFlagsRequest.FromString, response_serializer=api_dot_grouprootuser__pb2.FeatureFlags.SerializeToString, ), 'UpdateFeatureFlags': grpc.unary_unary_rpc_method_handler( servicer.UpdateFeatureFlags, request_deserializer=iam_dot_v1_dot_iam__pb2.UpdateFeatureFlagsRequest.FromString, response_serializer=api_dot_grouprootuser__pb2.FeatureFlags.SerializeToString, ), 'ListApiClients': grpc.unary_stream_rpc_method_handler( servicer.ListApiClients, request_deserializer=iam_dot_v1_dot_iam__pb2.ListApiClientsRequest.FromString, response_serializer=api_dot_apiclient__pb2.ApiClient.SerializeToString, ), 'CreateApiClient': grpc.unary_unary_rpc_method_handler( servicer.CreateApiClient, request_deserializer=iam_dot_v1_dot_iam__pb2.CreateApiClientRequest.FromString, response_serializer=api_dot_apiclient__pb2.ApiClient.SerializeToString, ), 'DeleteApiClient': grpc.unary_unary_rpc_method_handler( servicer.DeleteApiClient, request_deserializer=iam_dot_v1_dot_iam__pb2.DeleteApiClientRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'ListPermissions': grpc.unary_unary_rpc_method_handler( servicer.ListPermissions, request_deserializer=iam_dot_v1_dot_iam__pb2.ListPermissionsRequest.FromString, response_serializer=iam_dot_v1_dot_iam__pb2.ListPermissionsResponse.SerializeToString, ), 'ListRoles': grpc.unary_unary_rpc_method_handler( servicer.ListRoles, request_deserializer=iam_dot_v1_dot_iam__pb2.ListRolesRequest.FromString, response_serializer=iam_dot_v1_dot_iam__pb2.ListRolesResponse.SerializeToString, ), 'CreateRole': grpc.unary_unary_rpc_method_handler( servicer.CreateRole, request_deserializer=iam_dot_v1_dot_iam__pb2.CreateRoleRequest.FromString, response_serializer=api_dot_rbac__pb2.Role.SerializeToString, ), 'UpdateRole': grpc.unary_unary_rpc_method_handler( servicer.UpdateRole, request_deserializer=iam_dot_v1_dot_iam__pb2.UpdateRoleRequest.FromString, response_serializer=api_dot_rbac__pb2.Role.SerializeToString, ), 'DeleteRole': grpc.unary_unary_rpc_method_handler( servicer.DeleteRole, request_deserializer=iam_dot_v1_dot_iam__pb2.DeleteRoleRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'ListUserRoleMappings': grpc.unary_unary_rpc_method_handler( servicer.ListUserRoleMappings, request_deserializer=iam_dot_v1_dot_iam__pb2.ListUserRoleMappingsRequest.FromString, response_serializer=iam_dot_v1_dot_iam__pb2.ListUserRoleMappingsResponse.SerializeToString, ), 'CreateUserRoleMapping': grpc.unary_unary_rpc_method_handler( servicer.CreateUserRoleMapping, request_deserializer=iam_dot_v1_dot_iam__pb2.CreateUserRoleMappingRequest.FromString, response_serializer=iam_dot_v1_dot_iam__pb2.CreateUserRoleMappingResponse.SerializeToString, ), 'UpdateUserRoleMapping': grpc.unary_unary_rpc_method_handler( servicer.UpdateUserRoleMapping, request_deserializer=iam_dot_v1_dot_iam__pb2.UpdateUserRoleMappingRequest.FromString, response_serializer=iam_dot_v1_dot_iam__pb2.UpdateUserRoleMappingResponse.SerializeToString, ), 'ListIdentityProviders': grpc.unary_unary_rpc_method_handler( servicer.ListIdentityProviders, request_deserializer=iam_dot_v1_dot_iam__pb2.ListIdentityProvidersRequest.FromString, response_serializer=iam_dot_v1_dot_iam__pb2.ListIdentityProvidersResponse.SerializeToString, ), 'CreateIdentityProvider': grpc.unary_unary_rpc_method_handler( servicer.CreateIdentityProvider, request_deserializer=iam_dot_v1_dot_iam__pb2.CreateIdentityProviderRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'DeleteIdentityProvider': grpc.unary_unary_rpc_method_handler( servicer.DeleteIdentityProvider, request_deserializer=iam_dot_v1_dot_iam__pb2.DeleteIdentityProviderRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'ListIpFilters': grpc.unary_stream_rpc_method_handler( servicer.ListIpFilters, request_deserializer=iam_dot_v1_dot_iam__pb2.ListIpFiltersRequest.FromString, response_serializer=iam_dot_v1_dot_iam__pb2.IpFilter.SerializeToString, ), 'CreateIpFilter': grpc.unary_unary_rpc_method_handler( servicer.CreateIpFilter, request_deserializer=iam_dot_v1_dot_iam__pb2.CreateIpFilterRequest.FromString, response_serializer=iam_dot_v1_dot_iam__pb2.IpFilter.SerializeToString, ), 'DeleteIpFilter': grpc.unary_unary_rpc_method_handler( servicer.DeleteIpFilter, request_deserializer=iam_dot_v1_dot_iam__pb2.DeleteIpFilterRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( 'blueapi.iam.v1.Iam', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) # This class is part of an EXPERIMENTAL API. class Iam(object): """IAM service definition. """ @staticmethod def WhoAmI(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/WhoAmI', iam_dot_v1_dot_iam__pb2.WhoAmIRequest.SerializeToString, api_dot_user__pb2.User.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def ListUsers(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_stream(request, target, '/blueapi.iam.v1.Iam/ListUsers', iam_dot_v1_dot_iam__pb2.ListUsersRequest.SerializeToString, api_dot_user__pb2.User.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def GetUser(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/GetUser', iam_dot_v1_dot_iam__pb2.GetUserRequest.SerializeToString, api_dot_user__pb2.User.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def CreateUser(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/CreateUser', iam_dot_v1_dot_iam__pb2.CreateUserRequest.SerializeToString, api_dot_user__pb2.User.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def DeleteUser(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/DeleteUser', iam_dot_v1_dot_iam__pb2.DeleteUserRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def CreateGroupRootUser(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/CreateGroupRootUser', iam_dot_v1_dot_iam__pb2.CreateGroupRootUserRequest.SerializeToString, api_dot_grouprootuser__pb2.GroupRootUser.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def ListGroupRootUsers(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_stream(request, target, '/blueapi.iam.v1.Iam/ListGroupRootUsers', iam_dot_v1_dot_iam__pb2.ListGroupRootUsersRequest.SerializeToString, api_dot_grouprootuser__pb2.GroupRootUser.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def GetGroupRootUser(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/GetGroupRootUser', iam_dot_v1_dot_iam__pb2.GetGroupRootRequest.SerializeToString, api_dot_grouprootuser__pb2.GroupRootUser.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def DeleteGroupRootUser(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/DeleteGroupRootUser', iam_dot_v1_dot_iam__pb2.DeleteGroupRootUserRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def GetFeatureFlags(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/GetFeatureFlags', iam_dot_v1_dot_iam__pb2.GetFeatureFlagsRequest.SerializeToString, api_dot_grouprootuser__pb2.FeatureFlags.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def UpdateFeatureFlags(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/UpdateFeatureFlags', iam_dot_v1_dot_iam__pb2.UpdateFeatureFlagsRequest.SerializeToString, api_dot_grouprootuser__pb2.FeatureFlags.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def ListApiClients(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_stream(request, target, '/blueapi.iam.v1.Iam/ListApiClients', iam_dot_v1_dot_iam__pb2.ListApiClientsRequest.SerializeToString, api_dot_apiclient__pb2.ApiClient.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def CreateApiClient(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/CreateApiClient', iam_dot_v1_dot_iam__pb2.CreateApiClientRequest.SerializeToString, api_dot_apiclient__pb2.ApiClient.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def DeleteApiClient(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/DeleteApiClient', iam_dot_v1_dot_iam__pb2.DeleteApiClientRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def ListPermissions(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/ListPermissions', iam_dot_v1_dot_iam__pb2.ListPermissionsRequest.SerializeToString, iam_dot_v1_dot_iam__pb2.ListPermissionsResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def ListRoles(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/ListRoles', iam_dot_v1_dot_iam__pb2.ListRolesRequest.SerializeToString, iam_dot_v1_dot_iam__pb2.ListRolesResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def CreateRole(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/CreateRole', iam_dot_v1_dot_iam__pb2.CreateRoleRequest.SerializeToString, api_dot_rbac__pb2.Role.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def UpdateRole(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/UpdateRole', iam_dot_v1_dot_iam__pb2.UpdateRoleRequest.SerializeToString, api_dot_rbac__pb2.Role.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def DeleteRole(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/DeleteRole', iam_dot_v1_dot_iam__pb2.DeleteRoleRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def ListUserRoleMappings(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/ListUserRoleMappings', iam_dot_v1_dot_iam__pb2.ListUserRoleMappingsRequest.SerializeToString, iam_dot_v1_dot_iam__pb2.ListUserRoleMappingsResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def CreateUserRoleMapping(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/CreateUserRoleMapping', iam_dot_v1_dot_iam__pb2.CreateUserRoleMappingRequest.SerializeToString, iam_dot_v1_dot_iam__pb2.CreateUserRoleMappingResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def UpdateUserRoleMapping(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/UpdateUserRoleMapping', iam_dot_v1_dot_iam__pb2.UpdateUserRoleMappingRequest.SerializeToString, iam_dot_v1_dot_iam__pb2.UpdateUserRoleMappingResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def ListIdentityProviders(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/ListIdentityProviders', iam_dot_v1_dot_iam__pb2.ListIdentityProvidersRequest.SerializeToString, iam_dot_v1_dot_iam__pb2.ListIdentityProvidersResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def CreateIdentityProvider(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/CreateIdentityProvider', iam_dot_v1_dot_iam__pb2.CreateIdentityProviderRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def DeleteIdentityProvider(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/DeleteIdentityProvider', iam_dot_v1_dot_iam__pb2.DeleteIdentityProviderRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def ListIpFilters(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_stream(request, target, '/blueapi.iam.v1.Iam/ListIpFilters', iam_dot_v1_dot_iam__pb2.ListIpFiltersRequest.SerializeToString, iam_dot_v1_dot_iam__pb2.IpFilter.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def CreateIpFilter(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/CreateIpFilter', iam_dot_v1_dot_iam__pb2.CreateIpFilterRequest.SerializeToString, iam_dot_v1_dot_iam__pb2.IpFilter.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def DeleteIpFilter(request, target, options=(), channel_credentials=None, call_credentials=None, insecure=False, compression=None, wait_for_ready=None, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/blueapi.iam.v1.Iam/DeleteIpFilter', iam_dot_v1_dot_iam__pb2.DeleteIpFilterRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
47.253702
112
0.662342
4,590
47,868
6.571242
0.061438
0.021882
0.028911
0.039752
0.870897
0.826039
0.819773
0.72525
0.585339
0.535342
0
0.009925
0.265438
47,868
1,012
113
47.300395
0.847876
0.06472
0
0.599767
1
0
0.082715
0.046334
0
0
0
0
0
1
0.067678
false
0
0.008168
0.032672
0.112019
0
0
0
0
null
0
0
0
1
1
1
1
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
5
dce4ba077f077b61a8e87f40e7a92a94a4cd9c06
2,698
py
Python
tests/test_service_log.py
waro163/sparrow_cloud
16560fb93e1ba618607acf0c7ea40440708938ed
[ "MIT" ]
15
2019-09-24T09:32:32.000Z
2021-12-30T08:07:41.000Z
tests/test_service_log.py
waro163/sparrow_cloud
16560fb93e1ba618607acf0c7ea40440708938ed
[ "MIT" ]
13
2019-09-06T03:20:02.000Z
2021-09-27T03:37:25.000Z
tests/test_service_log.py
waro163/sparrow_cloud
16560fb93e1ba618607acf0c7ea40440708938ed
[ "MIT" ]
17
2019-09-02T06:31:05.000Z
2021-10-08T04:23:23.000Z
import unittest from unittest import mock from sparrow_cloud.service_log.sender import send_log import os def mocked_requests(*args, **kwargs): class MockResponse: def __init__(self, json_data, status_code, content): self.json_data = json_data self.status_code = status_code self.content = content def json(self): return self.json_data return MockResponse(json_data=None, content=None, status_code=200) def mocked_requests1(*args, **kwargs): class MockResponse: def __init__(self, json_data, status_code, content): self.json_data = json_data self.status_code = status_code self.content = content def json(self): return self.json_data return MockResponse(json_data=None, content=None, status_code=500) class ServiceLogCase(unittest.TestCase): def setUp(self): os.environ["DJANGO_SETTINGS_MODULE"] = "tests.mock_settings" @mock.patch('requests.request', side_effect=mocked_requests) def test_send_log(self, mock_post): from django.conf import settings settings.SPARROW_SERVICE_LOG_CONF = { "SERVICE_LOG": "sparrow-log-svc:8001", "PATH": "/service_log/log/", } settings.SERVICE_CONF = { "NAME": "sparrow_cloud", } data = { "object_id": "test_object_id", "object_name": "test_object_name", "user_id": "888888889", "user_name": "tiger", "user_phone": "18700000401", "action": "跑路啦", "message": "enenenenenenenenene" } res = send_log(data) self.assertEqual(res, True) @mock.patch('requests.request', side_effect=mocked_requests1) def test_send_log_1(self, mock_post): from django.conf import settings settings.SERVICE_CONF = { "NAME": "sparrow_cloud", } data = { "object_id": "test_object_id", "object_name": "test_object_name", "user_id": "888888889", "user_name": "tiger", "user_phone": "18700000401", "action": "跑路啦", "message": "enenenenenenenenene" } res = send_log(data) self.assertEqual(res, False) @mock.patch('requests.request', side_effect=mocked_requests1) def test_send_log_key_error(self, mock_post): from django.conf import settings settings.SERVICE_CONF = { "NAME": "sparrow_cloud", } try: send_log("key_error") except Exception as ex: self.assertEqual(type(ex), TypeError)
31.011494
71
0.598592
296
2,698
5.168919
0.25
0.052288
0.047059
0.047059
0.74183
0.74183
0.74183
0.715686
0.715686
0.684314
0
0.028376
0.294663
2,698
86
72
31.372093
0.775617
0
0
0.589041
0
0
0.175315
0.008154
0
0
0
0
0.041096
1
0.136986
false
0
0.09589
0.027397
0.328767
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
0d026ebaaf48fd8b97fcbd58aec39d482ef41a17
114
py
Python
pylayers/mobility/ban/test/test_body.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
143
2015-01-09T07:50:20.000Z
2022-03-02T11:26:53.000Z
pylayers/mobility/ban/test/test_body.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
148
2015-01-13T04:19:34.000Z
2022-03-11T23:48:25.000Z
pylayers/mobility/ban/test/test_body.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
95
2015-05-01T13:22:42.000Z
2022-03-15T11:22:28.000Z
from pylayers.mobility.ban.body import * from pylayers.mobility.trajectory import * t = Trajectory() bc = Body()
19
42
0.754386
15
114
5.733333
0.6
0.27907
0.465116
0
0
0
0
0
0
0
0
0
0.131579
114
5
43
22.8
0.868687
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
0d03804e6cc93ebd7c8073dda24e8a1acdb0843b
39
py
Python
modules/2.79/bpy/types/NodeOutputFileSlotFile.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/NodeOutputFileSlotFile.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/NodeOutputFileSlotFile.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
NodeOutputFileSlotFile.format = None
9.75
36
0.820513
3
39
10.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.128205
39
3
37
13
0.941176
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
0d09eb642560375646639d0134ce2b322a7fdaba
303
py
Python
startup/09-machine_99.py
NSLS-II-FMX/profile_collection
8c1e977f7b0b0972c5e9a4a1c042a60933b234ef
[ "BSD-3-Clause" ]
1
2018-02-18T14:50:59.000Z
2018-02-18T14:50:59.000Z
startup/09-machine_99.py
NSLS-II-FMX/profile_collection
8c1e977f7b0b0972c5e9a4a1c042a60933b234ef
[ "BSD-3-Clause" ]
11
2017-05-09T15:44:42.000Z
2021-07-26T17:46:42.000Z
startup/09-machine_99.py
NSLS-II-FMX/profile_collection
8c1e977f7b0b0972c5e9a4a1c042a60933b234ef
[ "BSD-3-Clause" ]
1
2017-05-09T15:40:08.000Z
2017-05-09T15:40:08.000Z
from ophyd import EpicsSignal # Ugly, ugly hack (sorry) # Can't set the PV's precision, so I'll force it here class EpicsSignalPrec(EpicsSignal): @property def precision(self): return 4 class EpicsSignalROPrec(EpicsSignal): @property def precision(self): return 4
20.2
53
0.683168
39
303
5.307692
0.717949
0.183575
0.21256
0.299517
0.405797
0.405797
0.405797
0
0
0
0
0.008696
0.240924
303
14
54
21.642857
0.891304
0.247525
0
0.666667
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.222222
0.777778
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
0d3523a793a2e3d77110f07ca28466bd322ab155
173
py
Python
eNMRpy/__init__.py
FritzFart/eNMRpy
4d140e4de6e2b9703f75b050538d8808a83fa3f3
[ "BSD-3-Clause" ]
null
null
null
eNMRpy/__init__.py
FritzFart/eNMRpy
4d140e4de6e2b9703f75b050538d8808a83fa3f3
[ "BSD-3-Clause" ]
null
null
null
eNMRpy/__init__.py
FritzFart/eNMRpy
4d140e4de6e2b9703f75b050538d8808a83fa3f3
[ "BSD-3-Clause" ]
null
null
null
__all__ = ['SpecModel'] from .Phasefitting import SpecModel from .MOSY import MOSY from .Measurement import Pavel as Import_eNMR_Measurement print('%s imported'%__name__)
24.714286
58
0.797688
22
173
5.818182
0.636364
0.203125
0
0
0
0
0
0
0
0
0
0
0.121387
173
6
59
28.833333
0.842105
0
0
0
0
0
0.116279
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0.2
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
0d36996e87855d13a485f0f8d2a2335e04ab845d
38
py
Python
external-apis/src/orp_apps/orp_api/__init__.py
UKGovernmentBEIS/open-regulation-platform-alpha
c1170fc7d9563cbdeda094df87c606ad622bfcf2
[ "MIT" ]
null
null
null
external-apis/src/orp_apps/orp_api/__init__.py
UKGovernmentBEIS/open-regulation-platform-alpha
c1170fc7d9563cbdeda094df87c606ad622bfcf2
[ "MIT" ]
null
null
null
external-apis/src/orp_apps/orp_api/__init__.py
UKGovernmentBEIS/open-regulation-platform-alpha
c1170fc7d9563cbdeda094df87c606ad622bfcf2
[ "MIT" ]
null
null
null
"""Application module for orp_api."""
19
37
0.710526
5
38
5.2
1
0
0
0
0
0
0
0
0
0
0
0
0.105263
38
1
38
38
0.764706
0.815789
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
0d4baa1ce7e97ab933daf60a98d2433c05385e14
73
py
Python
Exareme-Docker/src/exareme/exareme-tools/madis/src/lib/setpath.py
tchamabe1979/exareme
462983e4feec7808e1fd447d02901502588a8879
[ "MIT" ]
null
null
null
Exareme-Docker/src/exareme/exareme-tools/madis/src/lib/setpath.py
tchamabe1979/exareme
462983e4feec7808e1fd447d02901502588a8879
[ "MIT" ]
null
null
null
Exareme-Docker/src/exareme/exareme-tools/madis/src/lib/setpath.py
tchamabe1979/exareme
462983e4feec7808e1fd447d02901502588a8879
[ "MIT" ]
null
null
null
import os import sys sys.path.append((os.path.join(sys.path[0], '..')))
14.6
50
0.657534
13
73
3.692308
0.538462
0.291667
0
0
0
0
0
0
0
0
0
0.015152
0.09589
73
4
51
18.25
0.712121
0
0
0
0
0
0.027397
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
0d4e74907c64aa4b2d7a5c8a499183d8878ab199
110
py
Python
__init__.py
andsunds/PseudoSpectral
9d4d95c3ed01fef95bc39ec8707397ccc108fcca
[ "BSD-3-Clause" ]
null
null
null
__init__.py
andsunds/PseudoSpectral
9d4d95c3ed01fef95bc39ec8707397ccc108fcca
[ "BSD-3-Clause" ]
null
null
null
__init__.py
andsunds/PseudoSpectral
9d4d95c3ed01fef95bc39ec8707397ccc108fcca
[ "BSD-3-Clause" ]
null
null
null
from .PseudoSpectral import PseudoSpectral from .useful_functions import * from .ReadSmilei import ReadSmilei
27.5
42
0.854545
12
110
7.75
0.5
0
0
0
0
0
0
0
0
0
0
0
0.109091
110
3
43
36.666667
0.94898
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0d5308b9ac6a89c783103c6fe1e859dcdac9ad83
468
py
Python
mymodule/main.py
James00001/mymodule
c6f508eac0ebe8166f4aecf2de57738010775453
[ "CNRI-Python" ]
null
null
null
mymodule/main.py
James00001/mymodule
c6f508eac0ebe8166f4aecf2de57738010775453
[ "CNRI-Python" ]
null
null
null
mymodule/main.py
James00001/mymodule
c6f508eac0ebe8166f4aecf2de57738010775453
[ "CNRI-Python" ]
null
null
null
# in main.py try: # An import that works if the current module is installed with pip from .otherfile import some_func print("The .otherfile import worked") except ImportError: # An import that works of I run ./main.py from my source code folder print("The .otherfile import failed") from otherfile import some_func print("The otherfile import worked") def run_me(): print("Hello", some_func()) if __name__ == "__main__": run_me()
27.529412
72
0.698718
69
468
4.550725
0.521739
0.238854
0.16242
0.219745
0.356688
0.356688
0.356688
0.356688
0.356688
0.356688
0
0
0.213675
468
16
73
29.25
0.853261
0.303419
0
0
0
0
0.298137
0
0
0
0
0
0
1
0.090909
true
0
0.545455
0
0.636364
0.363636
0
0
0
null
1
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
1
0
1
0
1
0
0
5
0d572eb89ee17f10e71f0ee6180a1638fa31788a
174
py
Python
savepointradio/core/admin.py
RecursiveGreen/spradio-django2
ef7c6e535fdf4bf096b0a1669005600fa8e5ac92
[ "MIT" ]
null
null
null
savepointradio/core/admin.py
RecursiveGreen/spradio-django2
ef7c6e535fdf4bf096b0a1669005600fa8e5ac92
[ "MIT" ]
null
null
null
savepointradio/core/admin.py
RecursiveGreen/spradio-django2
ef7c6e535fdf4bf096b0a1669005600fa8e5ac92
[ "MIT" ]
null
null
null
from django.contrib import admin from authtools.admin import UserAdmin from .models import RadioUser @admin.register(RadioUser) class RadioUserAdmin(UserAdmin): pass
15.818182
37
0.804598
21
174
6.666667
0.619048
0
0
0
0
0
0
0
0
0
0
0
0.137931
174
10
38
17.4
0.933333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.166667
0.5
0
0.666667
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
1
1
1
0
1
0
0
5
372da702d68b0d1ea76be8bbd37a467c5186bd24
946
py
Python
django_sso_app/apps.py
paiuolo/django-sso-app
75b96c669dc0b176dc77e08f018a3e97d259f636
[ "MIT" ]
1
2021-11-16T15:16:08.000Z
2021-11-16T15:16:08.000Z
django_sso_app/apps.py
paiuolo/django-sso-app
75b96c669dc0b176dc77e08f018a3e97d259f636
[ "MIT" ]
null
null
null
django_sso_app/apps.py
paiuolo/django-sso-app
75b96c669dc0b176dc77e08f018a3e97d259f636
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DjangoSsoAppConfig(AppConfig): name = 'django_sso_app' label = 'django_sso_app' def ready(self): try: import django_sso_app.core.apps.api_gateway.signals # noqa F401 import django_sso_app.core.apps.emails.signals # noqa F401 import django_sso_app.core.apps.devices.signals # noqa F401 import django_sso_app.core.apps.groups.signals # noqa F401 import django_sso_app.core.apps.passepartout.signals # noqa F401 import django_sso_app.core.apps.profiles.signals # noqa F401 import django_sso_app.core.apps.services.signals # noqa F401 import django_sso_app.core.apps.status.signals # noqa F401 import django_sso_app.core.apps.users.signals # noqa F401 import django_sso_app.core.apps.events.signals # noqa F401 except ImportError: pass
41.130435
77
0.675476
124
946
4.951613
0.266129
0.175896
0.234528
0.29316
0.643322
0.643322
0.600977
0.600977
0.600977
0
0
0.042614
0.255814
946
22
78
43
0.829545
0.104651
0
0
0
0
0.033493
0
0
0
0
0
0
1
0.055556
false
0.111111
0.666667
0
0.888889
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
5
372ff546e1f6c36d46afe6539c26ef59fdca9f4b
4,079
py
Python
ggplot/tests/test_colors.py
briandk/ggplot
179bc1bb61501bbfa8aaa7ef2d0a25150c8863dd
[ "BSD-2-Clause" ]
1
2016-07-12T18:53:58.000Z
2016-07-12T18:53:58.000Z
ggplot/tests/test_colors.py
briandk/ggplot
179bc1bb61501bbfa8aaa7ef2d0a25150c8863dd
[ "BSD-2-Clause" ]
null
null
null
ggplot/tests/test_colors.py
briandk/ggplot
179bc1bb61501bbfa8aaa7ef2d0a25150c8863dd
[ "BSD-2-Clause" ]
1
2020-11-14T13:31:11.000Z
2020-11-14T13:31:11.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np import pandas as pd from nose.tools import assert_true from ggplot import * from ggplot.components.colors import assign_continuous_colors, \ assign_discrete_colors from ggplot.tests import cleanup @cleanup def test_assign_colors(): """ Test how colors are assigned to different column types. """ df = pd.DataFrame({"values": np.arange(10), "int_col": np.arange(10), "num_col": np.arange(10) / 2, "bool_col": np.random.randn(10) > 0, "char_col": ["a", "b"] * 5}) color_mapping_col = ':::color_mapping:::' fill_mapping_col = ':::fill_mapping:::' # test integer column color_col = "int_col" gg_int = ggplot(df, aes(x="values", y="values", color="int_col")) gg_int += geom_point() gg_int.draw() new_data, _ = assign_continuous_colors(df, gg_int, 'color', color_col) expected_cols = new_data[color_mapping_col] actual_cols = gg_int.data[color_mapping_col] assert_true((actual_cols == expected_cols).all()) # test numeric column color_col = "num_col" gg_num = ggplot(df, aes(x="values", y="values", color="num_col")) gg_num += geom_point() gg_num.draw() new_data, _ = assign_continuous_colors(df, gg_int, 'color', color_col) expected_cols = new_data[color_mapping_col] actual_cols = gg_num.data[color_mapping_col] assert_true((actual_cols == expected_cols).all()) # test bool column color_col = "bool_col" gg_bool = ggplot(df, aes(x="values", y="values", color="bool_col")) gg_bool += geom_point() gg_bool.draw() new_data, _ = assign_discrete_colors(df, gg_bool, 'color', color_col) expected_cols = new_data[color_mapping_col] actual_cols = gg_bool.data[color_mapping_col] assert_true((actual_cols == expected_cols).all()) # test char column color_col = "char_col" gg_char = ggplot(df, aes(x="values", y="values", color="char_col")) gg_char += geom_point() gg_char.draw() new_data, _ = assign_discrete_colors(df, gg_bool, 'color', color_col) expected_cols = new_data[color_mapping_col] actual_cols = gg_char.data[color_mapping_col] assert_true((actual_cols == expected_cols).all()) # Fill mapping # test integer column fill_col = "int_col" gg_int = ggplot(df, aes(x="values", y="values", fill="int_col")) gg_int += geom_point() gg_int.draw() new_data, _ = assign_continuous_colors(df, gg_int, 'fill', fill_col) expected_cols = new_data[fill_mapping_col] actual_cols = gg_int.data[fill_mapping_col] assert_true((actual_cols == expected_cols).all()) # test numeric column fill_col = "num_col" gg_num = ggplot(df, aes(x="values", y="values", fill="num_col")) gg_num += geom_point() gg_num.draw() new_data, _ = assign_continuous_colors(df, gg_int, 'fill', fill_col) expected_cols = new_data[fill_mapping_col] actual_cols = gg_num.data[fill_mapping_col] assert_true((actual_cols == expected_cols).all()) # test bool column fill_col = "bool_col" gg_bool = ggplot(df, aes(x="values", y="values", fill="bool_col")) gg_bool += geom_point() gg_bool.draw() new_data, _ = assign_discrete_colors(df, gg_bool, 'fill', fill_col) expected_cols = new_data[fill_mapping_col] actual_cols = gg_bool.data[fill_mapping_col] assert_true((actual_cols == expected_cols).all()) # test char column fill_col = "char_col" gg_char = ggplot(df, aes(x="values", y="values", fill="char_col")) gg_char += geom_point() gg_char.draw() new_data, _ = assign_discrete_colors(df, gg_bool, 'fill', fill_col) expected_cols = new_data[fill_mapping_col] actual_cols = gg_char.data[fill_mapping_col] assert_true((actual_cols == expected_cols).all())
34.567797
75
0.649669
571
4,079
4.262697
0.122592
0.073952
0.055464
0.039441
0.799507
0.7765
0.7765
0.764996
0.750205
0.750205
0
0.003477
0.22432
4,079
117
76
34.863248
0.765803
0.053199
0
0.487805
0
0
0.08788
0
0
0
0
0
0.109756
1
0.012195
false
0
0.085366
0
0.097561
0.012195
0
0
0
null
0
0
0
0
1
1
1
1
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
5
2e966ab381ca9dd58a017ae29195a2ba5c65847b
1,464
bzl
Python
third_party/com_fasterxml_jackson_core.bzl
wix/wix-oss-infra
b57ac2f0f66487cfdd08293a8fa389efe3d42c43
[ "MIT" ]
3
2020-01-14T12:57:31.000Z
2021-06-06T20:47:57.000Z
third_party/com_fasterxml_jackson_core.bzl
wix/wix-oss-infra
b57ac2f0f66487cfdd08293a8fa389efe3d42c43
[ "MIT" ]
20
2020-04-02T13:08:43.000Z
2020-11-05T11:27:40.000Z
third_party/com_fasterxml_jackson_core.bzl
wix/wix-oss-infra
b57ac2f0f66487cfdd08293a8fa389efe3d42c43
[ "MIT" ]
1
2021-04-02T09:32:35.000Z
2021-04-02T09:32:35.000Z
load("@wix_oss_infra//:import_external.bzl", import_external = "safe_wix_scala_maven_import_external") def dependencies(): import_external( name = "com_fasterxml_jackson_core_jackson_annotations", artifact = "com.fasterxml.jackson.core:jackson-annotations:2.9.0", artifact_sha256 = "45d32ac61ef8a744b464c54c2b3414be571016dd46bfc2bec226761cf7ae457a", srcjar_sha256 = "eb1e62bc83f4d8e1f0660c9cf2f06d6d196eefb20de265cfff96521015d87020", ) import_external( name = "com_fasterxml_jackson_core_jackson_core", artifact = "com.fasterxml.jackson.core:jackson-core:2.9.6", artifact_sha256 = "fab8746aedd6427788ee390ea04d438ec141bff7eb3476f8bdd5d9110fb2718a", srcjar_sha256 = "8aff614c41c49fb02ac7444dc1a9518f1f9fc5b7c744ada59825225858a0336d", ) import_external( name = "com_fasterxml_jackson_core_jackson_databind", artifact = "com.fasterxml.jackson.core:jackson-databind:2.9.6", artifact_sha256 = "657e3e979446d61f88432b9c50f0ccd9c1fe4f1c822d533f5572e4c0d172a125", srcjar_sha256 = "0f867b675f1f641d06517c2c2232b1fcc21bc6d81a5d09cb8fc6102b13d7e881", deps = [ "@com_fasterxml_jackson_core_jackson_annotations", "@com_fasterxml_jackson_core_jackson_core" ], # EXCLUDES *:mail # EXCLUDES *:jline # EXCLUDES *:jms # EXCLUDES *:jmxri # EXCLUDES *:jmxtools # EXCLUDES *:javax )
39.567568
102
0.728825
117
1,464
8.752137
0.34188
0.118164
0.148438
0.179688
0.40332
0.370117
0.140625
0.140625
0
0
0
0.223529
0.187158
1,464
36
103
40.666667
0.636975
0.068989
0
0.125
0
0
0.602507
0.602507
0
0
0
0
0
1
0.041667
true
0
0.166667
0
0.208333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
2eabdfbae7b192f37d7c442d7964fa55a1ec5c39
83
py
Python
__init__.py
SuLab/covid_who_clinical_trials
91dfda310a518de7d90cf89339eb1f696b09f31f
[ "MIT" ]
null
null
null
__init__.py
SuLab/covid_who_clinical_trials
91dfda310a518de7d90cf89339eb1f696b09f31f
[ "MIT" ]
null
null
null
__init__.py
SuLab/covid_who_clinical_trials
91dfda310a518de7d90cf89339eb1f696b09f31f
[ "MIT" ]
1
2020-10-20T22:05:03.000Z
2020-10-20T22:05:03.000Z
from .upload import ClinicalTrialUploaderWHO from .dump import ClinicalTrialDumper
27.666667
44
0.879518
8
83
9.125
0.75
0
0
0
0
0
0
0
0
0
0
0
0.096386
83
2
45
41.5
0.973333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2eb8aadfde0eb04610eee3b29fb0d9029d343c8b
240
py
Python
tests/admin_scripts/configured_settings_manage.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/admin_scripts/configured_settings_manage.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/admin_scripts/configured_settings_manage.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys from django.conf import settings from django.core.management import execute_from_command_line if __name__ == '__main__': settings.configure(DEBUG=True) execute_from_command_line(sys.argv)
24
61
0.7625
33
240
5.121212
0.666667
0.118343
0.213018
0.260355
0
0
0
0
0
0
0
0
0.154167
240
9
62
26.666667
0.832512
0.083333
0
0
0
0
0.038095
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
2ebdb3b4417f36e95bf31cdf8006a9a7d50fd73d
44
py
Python
exceptions.py
D-Sokol/denotarikon
bdd6aad3892703403cfc78b2e491b8464c11191c
[ "MIT" ]
null
null
null
exceptions.py
D-Sokol/denotarikon
bdd6aad3892703403cfc78b2e491b8464c11191c
[ "MIT" ]
null
null
null
exceptions.py
D-Sokol/denotarikon
bdd6aad3892703403cfc78b2e491b8464c11191c
[ "MIT" ]
null
null
null
class IncorrectInput(ValueError): pass
11
33
0.75
4
44
8.25
1
0
0
0
0
0
0
0
0
0
0
0
0.181818
44
3
34
14.666667
0.916667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
2c100158a1d3f910a593365b48ff0b2da1d3d1b5
216
py
Python
Code/BaselineAlgorithms/sumy/summarizers/__init__.py
tafseer-nayeem/BengaliSummarization
31334d12bd6bbd2db92f4b0ecc436e006cb96fd8
[ "MIT" ]
4
2021-07-11T05:08:12.000Z
2022-01-23T08:34:51.000Z
Code/BaselineAlgorithms/sumy/summarizers/__init__.py
tafseer-nayeem/BengaliSummarization
31334d12bd6bbd2db92f4b0ecc436e006cb96fd8
[ "MIT" ]
null
null
null
Code/BaselineAlgorithms/sumy/summarizers/__init__.py
tafseer-nayeem/BengaliSummarization
31334d12bd6bbd2db92f4b0ecc436e006cb96fd8
[ "MIT" ]
4
2021-03-07T12:32:58.000Z
2022-02-04T19:11:19.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division, print_function, unicode_literals from Python.baselineAlgorithm.sumy.summarizers._summarizer import AbstractSummarizer
30.857143
84
0.833333
24
216
7
0.75
0.119048
0.190476
0
0
0
0
0
0
0
0
0.005128
0.097222
216
6
85
36
0.85641
0.097222
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0.333333
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
25b605c9a3d06133b6a9655616a014eb3aac9778
66
py
Python
EduNLP/Tokenizer/__init__.py
karin0018/EduNLP
172c36a2cd2c41a1f1c5833d7b1abcbc5e3bbd5f
[ "Apache-2.0" ]
18
2021-02-15T13:10:42.000Z
2022-03-17T12:57:34.000Z
EduNLP/Tokenizer/__init__.py
karin0018/EduNLP
172c36a2cd2c41a1f1c5833d7b1abcbc5e3bbd5f
[ "Apache-2.0" ]
81
2021-06-02T07:45:20.000Z
2022-03-29T15:21:32.000Z
EduNLP/Tokenizer/__init__.py
karin0018/EduNLP
172c36a2cd2c41a1f1c5833d7b1abcbc5e3bbd5f
[ "Apache-2.0" ]
29
2021-05-18T08:34:58.000Z
2022-03-12T00:19:09.000Z
# coding: utf-8 # 2021/8/1 @ tongshiwei from .tokenizer import *
13.2
24
0.681818
10
66
4.5
0.9
0
0
0
0
0
0
0
0
0
0
0.12963
0.181818
66
4
25
16.5
0.703704
0.530303
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d33037002871cf51bd1803326396811953e912cc
183
py
Python
trackbox/__init__.py
zudi-lin/tracking_toolbox
f62a65e5a86400b494bb7152578bdf838a0dea90
[ "MIT" ]
1
2020-07-22T19:41:38.000Z
2020-07-22T19:41:38.000Z
trackbox/__init__.py
zudi-lin/tracking_toolbox
f62a65e5a86400b494bb7152578bdf838a0dea90
[ "MIT" ]
null
null
null
trackbox/__init__.py
zudi-lin/tracking_toolbox
f62a65e5a86400b494bb7152578bdf838a0dea90
[ "MIT" ]
1
2020-07-22T19:41:39.000Z
2020-07-22T19:41:39.000Z
from .tracking import find_valid_region, segment_image from .utils import show_rand_imgs, load_video, save_video, center2dist from .measure import interactive_measure, toggle_selector
61
70
0.868852
26
183
5.769231
0.769231
0
0
0
0
0
0
0
0
0
0
0.005988
0.087432
183
3
71
61
0.892216
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d34e235f7bddb89181d8226ee1094d9e1a15092a
123
py
Python
12_Nguyen_Lam_Manh_Tuyen/3.5.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
null
null
null
12_Nguyen_Lam_Manh_Tuyen/3.5.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
null
null
null
12_Nguyen_Lam_Manh_Tuyen/3.5.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
8
2020-07-10T14:13:54.000Z
2020-08-03T08:17:50.000Z
#Write a program that read the CSV and print to console as a table (row and column should be aligned, border using – and |)
123
123
0.756098
24
123
3.916667
0.875
0
0
0
0
0
0
0
0
0
0
0
0.195122
123
1
123
123
0.939394
0.99187
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
d34f0a1b8ea9850c7e23ddd54dc49e9a3363eb77
33
py
Python
vars.py
Koalacards/Doxcord
eff032bc1d09e1a6954355cbdbafc93807fb29bc
[ "MIT" ]
3
2022-02-17T19:15:01.000Z
2022-02-17T19:18:40.000Z
vars.py
Koalacards/Doxcord
eff032bc1d09e1a6954355cbdbafc93807fb29bc
[ "MIT" ]
null
null
null
vars.py
Koalacards/Doxcord
eff032bc1d09e1a6954355cbdbafc93807fb29bc
[ "MIT" ]
null
null
null
guild_ids=[752664024910397522]
8.25
30
0.818182
3
33
8.666667
1
0
0
0
0
0
0
0
0
0
0
0.6
0.090909
33
3
31
11
0.266667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
d39e87b0a6c08c44c2b5553f8da6dfb13373156c
117
py
Python
middle/maping.py
keys4words/oop
ddb80de06fcba8075632b6fdd620bb64056634d3
[ "Apache-2.0" ]
null
null
null
middle/maping.py
keys4words/oop
ddb80de06fcba8075632b6fdd620bb64056634d3
[ "Apache-2.0" ]
2
2021-06-09T07:03:54.000Z
2022-03-12T00:55:18.000Z
middle/maping.py
keys4words/oop
ddb80de06fcba8075632b6fdd620bb64056634d3
[ "Apache-2.0" ]
null
null
null
arr = list(range(8)) def func(x): return x*2 print(list(map(func, arr))) print(list(map(lambda x: x**3, arr)))
14.625
37
0.615385
23
117
3.130435
0.565217
0.25
0.333333
0
0
0
0
0
0
0
0
0.030612
0.162393
117
8
37
14.625
0.704082
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0.2
0.4
0.4
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
5
d39f4c3dfd1fecd8704af79d271f7a54bf60b236
98
py
Python
jabba/graphs/__init__.py
puppetlabs/jabba
71c1d008ab497020fba6ffa12a600721eb3f5ef7
[ "MIT" ]
1
2017-02-23T10:46:27.000Z
2017-02-23T10:46:27.000Z
jabba/graphs/__init__.py
OSLL/jenkins_job_builder_visualization
71c1d008ab497020fba6ffa12a600721eb3f5ef7
[ "MIT" ]
39
2017-02-23T10:29:13.000Z
2017-04-18T16:19:38.000Z
jabba/graphs/__init__.py
isabella232/jabba
71c1d008ab497020fba6ffa12a600721eb3f5ef7
[ "MIT" ]
1
2021-03-17T17:12:44.000Z
2021-03-17T17:12:44.000Z
from .call_graph import CallGraph from .include_graph import IncludeGraph from .edge import Edge
19.6
39
0.836735
14
98
5.714286
0.571429
0.275
0
0
0
0
0
0
0
0
0
0
0.132653
98
4
40
24.5
0.941176
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5