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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
66ea184657bcfd951042a2cee61f51a133bdd39c
| 124
|
py
|
Python
|
unlikely/example.py
|
Edderic/unlikely
|
75d748a169cbeb56425a7914c61fe33e0551033c
|
[
"MIT"
] | null | null | null |
unlikely/example.py
|
Edderic/unlikely
|
75d748a169cbeb56425a7914c61fe33e0551033c
|
[
"MIT"
] | null | null | null |
unlikely/example.py
|
Edderic/unlikely
|
75d748a169cbeb56425a7914c61fe33e0551033c
|
[
"MIT"
] | null | null | null |
import numpy as np
def add_one(number):
return number + 1
def random_sample():
return np.random.beta(1,1, 1000)
| 12.4
| 36
| 0.677419
| 21
| 124
| 3.904762
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072165
| 0.217742
| 124
| 9
| 37
| 13.777778
| 0.773196
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0.2
| 0.4
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
dd584e75dc0700ce8141e0f1454bfe28f6225e31
| 170
|
py
|
Python
|
mmdet3d/ops/iou3d/__init__.py
|
maskjp/mmdetection3d
|
98f332372b1a4c82bc2d57588a5d764f4176c869
|
[
"Apache-2.0"
] | 1
|
2022-03-04T19:29:42.000Z
|
2022-03-04T19:29:42.000Z
|
mmdet3d/ops/iou3d/__init__.py
|
maskjp/mmdetection3d
|
98f332372b1a4c82bc2d57588a5d764f4176c869
|
[
"Apache-2.0"
] | null | null | null |
mmdet3d/ops/iou3d/__init__.py
|
maskjp/mmdetection3d
|
98f332372b1a4c82bc2d57588a5d764f4176c869
|
[
"Apache-2.0"
] | null | null | null |
# Copyright (c) OpenMMLab. All rights reserved.
from .iou3d_utils import boxes_iou_bev, nms_gpu, nms_normal_gpu
__all__ = ['boxes_iou_bev', 'nms_gpu', 'nms_normal_gpu']
| 34
| 63
| 0.776471
| 27
| 170
| 4.333333
| 0.592593
| 0.136752
| 0.188034
| 0.239316
| 0.495727
| 0.495727
| 0.495727
| 0.495727
| 0
| 0
| 0
| 0.006623
| 0.111765
| 170
| 4
| 64
| 42.5
| 0.768212
| 0.264706
| 0
| 0
| 0
| 0
| 0.276423
| 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
|
dd730a855bfbaff221486a82d2111561690383f0
| 24
|
py
|
Python
|
nama/RdSuryaMP.py
|
Ghani280706/introducing-yourself
|
64a0931e147d115f08e0a50c882d7af3fc9cfe61
|
[
"Unlicense"
] | 6
|
2021-10-03T14:17:05.000Z
|
2021-11-22T07:12:39.000Z
|
nama/RdSuryaMP.py
|
Ghani280706/introducing-yourself
|
64a0931e147d115f08e0a50c882d7af3fc9cfe61
|
[
"Unlicense"
] | null | null | null |
nama/RdSuryaMP.py
|
Ghani280706/introducing-yourself
|
64a0931e147d115f08e0a50c882d7af3fc9cfe61
|
[
"Unlicense"
] | 34
|
2021-10-03T00:47:02.000Z
|
2021-11-22T07:07:32.000Z
|
print('Raden Surya M.P')
| 24
| 24
| 0.708333
| 5
| 24
| 3.4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 24
| 1
| 24
| 24
| 0.772727
| 0
| 0
| 0
| 0
| 0
| 0.6
| 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
|
dd8f9a8262cafb0657b8cd0e1209f05a7918e3f5
| 31
|
py
|
Python
|
tofu/dumpro/_draft.py
|
Louwrensth/tofu
|
df2841d24eaf223ae07d862ffaa33fdb2fc079d3
|
[
"MIT"
] | 56
|
2017-07-09T10:29:45.000Z
|
2022-03-31T02:44:50.000Z
|
tofu/dumpro/_draft.py
|
Louwrensth/tofu
|
df2841d24eaf223ae07d862ffaa33fdb2fc079d3
|
[
"MIT"
] | 522
|
2017-07-02T21:06:07.000Z
|
2022-03-02T08:07:57.000Z
|
tofu/dumpro/_draft.py
|
Didou09/tofu
|
4a4e1f058bab8e7556ed9d518f90807cec605476
|
[
"MIT"
] | 9
|
2017-07-02T20:38:53.000Z
|
2021-12-04T00:12:30.000Z
|
# testing ground for functions
| 15.5
| 30
| 0.806452
| 4
| 31
| 6.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16129
| 31
| 1
| 31
| 31
| 0.961538
| 0.903226
| 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
|
dd937c7f9ff3e497b183b3248f951a3c231d9d1b
| 80
|
py
|
Python
|
albionmarket_backend/__init__.py
|
akku123california/albionmarket-backend
|
4e56a4a670655579ed83d91352ac70fe49aca056
|
[
"MIT"
] | null | null | null |
albionmarket_backend/__init__.py
|
akku123california/albionmarket-backend
|
4e56a4a670655579ed83d91352ac70fe49aca056
|
[
"MIT"
] | null | null | null |
albionmarket_backend/__init__.py
|
akku123california/albionmarket-backend
|
4e56a4a670655579ed83d91352ac70fe49aca056
|
[
"MIT"
] | null | null | null |
from .app import create_app
from .extensions import db
from . import commands
| 13.333333
| 27
| 0.7875
| 12
| 80
| 5.166667
| 0.583333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.175
| 80
| 5
| 28
| 16
| 0.939394
| 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
|
06b967f676d7d412ac146f1e9958c5546d02d673
| 23
|
py
|
Python
|
gui/addItem/__init__.py
|
FRidh/Sea
|
b474e93a449570a9ba3b915c4d80f814feee2545
|
[
"BSD-3-Clause"
] | 2
|
2015-07-02T13:34:09.000Z
|
2015-09-28T09:07:52.000Z
|
gui/addItem/__init__.py
|
FRidh/Sea
|
b474e93a449570a9ba3b915c4d80f814feee2545
|
[
"BSD-3-Clause"
] | null | null | null |
gui/addItem/__init__.py
|
FRidh/Sea
|
b474e93a449570a9ba3b915c4d80f814feee2545
|
[
"BSD-3-Clause"
] | 1
|
2022-01-22T03:01:54.000Z
|
2022-01-22T03:01:54.000Z
|
from actions import *
| 7.666667
| 21
| 0.73913
| 3
| 23
| 5.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.217391
| 23
| 3
| 21
| 7.666667
| 0.944444
| 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
|
06ee35ed443bf599b8ee3303651359ee54dabda8
| 84
|
py
|
Python
|
add2nu.py
|
svpaah/siva
|
ce04e7d012d1c604b8234281b29206698133c989
|
[
"bzip2-1.0.6",
"Unlicense"
] | null | null | null |
add2nu.py
|
svpaah/siva
|
ce04e7d012d1c604b8234281b29206698133c989
|
[
"bzip2-1.0.6",
"Unlicense"
] | null | null | null |
add2nu.py
|
svpaah/siva
|
ce04e7d012d1c604b8234281b29206698133c989
|
[
"bzip2-1.0.6",
"Unlicense"
] | null | null | null |
a=int(input("enter the number1:"))
b=int(input("enter the number2:"))
print(a+b)
| 21
| 35
| 0.654762
| 15
| 84
| 3.666667
| 0.6
| 0.290909
| 0.472727
| 0.581818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.027027
| 0.119048
| 84
| 3
| 36
| 28
| 0.716216
| 0
| 0
| 0
| 0
| 0
| 0.444444
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0
| 0
| null | 1
| 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
| 0
| 0
| 0
| 0
|
0
| 5
|
663895a059cbd3c9bb88846569d1a07a7aaccafe
| 97
|
py
|
Python
|
scripts/pyog/__init__.py
|
chelazarcia/pyog
|
7841acbfe3374c6d9ee322a47c8bb85ee8acc236
|
[
"MIT"
] | 1
|
2019-06-03T14:35:00.000Z
|
2019-06-03T14:35:00.000Z
|
scripts/pyog/__init__.py
|
chelazarcia/pyog
|
7841acbfe3374c6d9ee322a47c8bb85ee8acc236
|
[
"MIT"
] | null | null | null |
scripts/pyog/__init__.py
|
chelazarcia/pyog
|
7841acbfe3374c6d9ee322a47c8bb85ee8acc236
|
[
"MIT"
] | null | null | null |
"""
__init__.py
"""
from pyog.dit import *
from pyog._wmii import x_wmi, signed_to_unsigned
| 8.818182
| 48
| 0.71134
| 15
| 97
| 4.066667
| 0.8
| 0.262295
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.175258
| 97
| 10
| 49
| 9.7
| 0.7625
| 0.113402
| 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
| 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
|
b0a45eefef17c0c2ce9b5b489c66b9b65ea9dacc
| 182
|
py
|
Python
|
Test/core/typing.py
|
Pashadark/untitled100
|
cf5a5ed17d2913eb99316ada44539b82e47cd3fd
|
[
"MIT"
] | null | null | null |
Test/core/typing.py
|
Pashadark/untitled100
|
cf5a5ed17d2913eb99316ada44539b82e47cd3fd
|
[
"MIT"
] | null | null | null |
Test/core/typing.py
|
Pashadark/untitled100
|
cf5a5ed17d2913eb99316ada44539b82e47cd3fd
|
[
"MIT"
] | null | null | null |
"""Typing helpers to use throughout project.
All totally optional, of course.
"""
from typing import Union
import datetime
DTType = Union[datetime.datetime, datetime.date]
| 20.222222
| 49
| 0.741758
| 23
| 182
| 5.869565
| 0.73913
| 0.237037
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.175824
| 182
| 8
| 50
| 22.75
| 0.9
| 0.406593
| 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
|
b0b991f65e5e069999ca3f55aab6cc33e535bea7
| 594
|
py
|
Python
|
bundles/backup_client/metadata.py
|
bborbe/bw
|
a89441855431f759b8466b1864c3679f86e522f5
|
[
"BSD-2-Clause"
] | 1
|
2020-02-01T17:22:55.000Z
|
2020-02-01T17:22:55.000Z
|
bundles/backup_client/metadata.py
|
bborbe/bw
|
a89441855431f759b8466b1864c3679f86e522f5
|
[
"BSD-2-Clause"
] | null | null | null |
bundles/backup_client/metadata.py
|
bborbe/bw
|
a89441855431f759b8466b1864c3679f86e522f5
|
[
"BSD-2-Clause"
] | null | null | null |
@metadata_reactor
def add_backup_key(metadata):
return {
'users': {
'root': {
'authorized_keys': {
'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDM70gDI1cuIKu15VAEYnlWMFi3zGPf6shtQCzrHBv1nOOkfPdXlXACC4H5+MiTV5foAIA8PUaqOV9gow1w639TnWDL2DwPJ5RsT+P5g4eWszW5xQPo0zAKuvlTMB9JkDXGx1OpOE4e9n3++71yuvF/wVlqYxJwxeWXCdHf2ayx6OrTMcSMUIi+zqD494YBhKt+QJAiRrXGNU82FczJeK3iRMTtd+LUeGtnEoskcDOwhGfOXGsUGt3BMWLiDhGXp4ZvKUhNSTz5Kr9OCQT/uWam3nXciZrx1a2kVFJhd1ur81LRqxxDMGQjS29z6Vpd2vxG/P8mP3w2r7fvoqE33hpv': {}
}
}
}
}
| 49.5
| 406
| 0.739057
| 24
| 594
| 18.125
| 0.958333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.128151
| 0.198653
| 594
| 11
| 407
| 54
| 0.785714
| 0
| 0
| 0
| 0
| 0.090909
| 0.680135
| 0.626263
| 0
| 1
| 0
| 0
| 0
| 1
| 0.090909
| false
| 0
| 0
| 0.090909
| 0.181818
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
b0ca84c6aabe2655e336779a8ebaf565efa08838
| 58
|
py
|
Python
|
CodeWars/7 Kyu/Beginner Series #5 Triangular Numbers.py
|
anubhab-code/Competitive-Programming
|
de28cb7d44044b9e7d8bdb475da61e37c018ac35
|
[
"MIT"
] | null | null | null |
CodeWars/7 Kyu/Beginner Series #5 Triangular Numbers.py
|
anubhab-code/Competitive-Programming
|
de28cb7d44044b9e7d8bdb475da61e37c018ac35
|
[
"MIT"
] | null | null | null |
CodeWars/7 Kyu/Beginner Series #5 Triangular Numbers.py
|
anubhab-code/Competitive-Programming
|
de28cb7d44044b9e7d8bdb475da61e37c018ac35
|
[
"MIT"
] | null | null | null |
def is_triangular(t):
return (8 * t + 1)**.5 % 1 == 0
| 19.333333
| 35
| 0.5
| 11
| 58
| 2.545455
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119048
| 0.275862
| 58
| 2
| 36
| 29
| 0.547619
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
b0d4d8938aee1255abe524b6659170e8b5dc038a
| 303
|
py
|
Python
|
editor/__main__.py
|
despiegk/remi
|
cf41c44c32f4efbdc6d34e6df318fc0fc5ebefe4
|
[
"Apache-2.0"
] | 6
|
2021-07-26T14:21:25.000Z
|
2021-07-26T14:32:01.000Z
|
venv/Lib/site-packages/editor/__main__.py
|
DoesArt-Studios/RamBrowse
|
a81da53e04d265d17e76855e7affc11130ee6120
|
[
"MIT"
] | 6
|
2020-04-05T04:58:15.000Z
|
2020-04-05T05:39:37.000Z
|
PySimpleGUI/PySimpleGUI/Lib/site-packages/editor/__main__.py
|
Advik-B/Learn-Python
|
66ac57259764e8f2c3c6513a8de6c106800d8abe
|
[
"MIT"
] | null | null | null |
from editor import prototypes
from editor import editor_widgets
try:
from editor import Editor
except:
from editor.editor import Editor
from remi import start
if __name__ == "__main__":
start(Editor, debug=False, address='0.0.0.0', port=8082, update_interval=0.01, multiple_instance=True)
| 25.25
| 106
| 0.762376
| 45
| 303
| 4.888889
| 0.533333
| 0.181818
| 0.218182
| 0.2
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.042802
| 0.151815
| 303
| 11
| 107
| 27.545455
| 0.81323
| 0
| 0
| 0
| 0
| 0
| 0.049505
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.555556
| 0
| 0.555556
| 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
|
b0db786006f354922c85a218537b484a04b7853e
| 189
|
py
|
Python
|
xfacereclib/paper/ne00021/features/__init__.py
|
nichelia/faceretrievalsystem
|
0503fe9cbd4e1dbb7d5dc02dc2a249a3cb1a7988
|
[
"MIT"
] | null | null | null |
xfacereclib/paper/ne00021/features/__init__.py
|
nichelia/faceretrievalsystem
|
0503fe9cbd4e1dbb7d5dc02dc2a249a3cb1a7988
|
[
"MIT"
] | null | null | null |
xfacereclib/paper/ne00021/features/__init__.py
|
nichelia/faceretrievalsystem
|
0503fe9cbd4e1dbb7d5dc02dc2a249a3cb1a7988
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# @author: Nicholas Elia
# @date: Thu May 27 16:00:00 BST 2014
"""Features for face recognition"""
from Extractor import Extractor
| 21
| 39
| 0.708995
| 29
| 189
| 4.62069
| 0.931034
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082278
| 0.164021
| 189
| 8
| 40
| 23.625
| 0.765823
| 0.746032
| 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
|
7c0409d1aac2b2f81795638fb879e3aab29f90d4
| 128
|
py
|
Python
|
Initialiser.py
|
BhasherBEL/DynamicNetwork
|
37d5aae8570a95e395327b74eb90e01b62aa8132
|
[
"MIT"
] | null | null | null |
Initialiser.py
|
BhasherBEL/DynamicNetwork
|
37d5aae8570a95e395327b74eb90e01b62aa8132
|
[
"MIT"
] | null | null | null |
Initialiser.py
|
BhasherBEL/DynamicNetwork
|
37d5aae8570a95e395327b74eb90e01b62aa8132
|
[
"MIT"
] | null | null | null |
import random as rd
def random():
return rd.random()
def zero():
return 0
def one():
return 1
def mid():
return 0.5
| 7.111111
| 19
| 0.625
| 22
| 128
| 3.636364
| 0.545455
| 0.175
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.041667
| 0.25
| 128
| 17
| 20
| 7.529412
| 0.791667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.444444
| true
| 0
| 0.111111
| 0.444444
| 1
| 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
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
b000c9bae10957168b2e3504dec2467cf0c28386
| 89
|
py
|
Python
|
server/utils/__init__.py
|
StahlFerro/Erlenmeyer
|
a337813eb18f1a688dfe7da8b194c7887aa89bdb
|
[
"MIT"
] | 1
|
2018-11-28T12:46:52.000Z
|
2018-11-28T12:46:52.000Z
|
server/utils/__init__.py
|
StahlFerro/IMVR
|
a337813eb18f1a688dfe7da8b194c7887aa89bdb
|
[
"MIT"
] | null | null | null |
server/utils/__init__.py
|
StahlFerro/IMVR
|
a337813eb18f1a688dfe7da8b194c7887aa89bdb
|
[
"MIT"
] | null | null | null |
from . import orm
from . import validator
from . import api_controller
from . import url
| 17.8
| 28
| 0.775281
| 13
| 89
| 5.230769
| 0.538462
| 0.588235
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.179775
| 89
| 4
| 29
| 22.25
| 0.931507
| 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
|
b0259104b4d037f9f458a0bafc4484cd090bf1fb
| 190
|
py
|
Python
|
common/redshift/test_unit_utils/__init__.py
|
mhconradt/analytics-toolbox-core
|
021e219e9c2bdb4cd4a0d59162ef4d677e1789aa
|
[
"BSD-3-Clause"
] | 7
|
2019-08-30T10:43:44.000Z
|
2019-10-17T07:53:24.000Z
|
common/redshift/test_unit_utils/__init__.py
|
mhconradt/analytics-toolbox-core
|
021e219e9c2bdb4cd4a0d59162ef4d677e1789aa
|
[
"BSD-3-Clause"
] | 10
|
2022-03-08T13:05:40.000Z
|
2022-03-18T18:56:09.000Z
|
common/redshift/test_unit_utils/__init__.py
|
mhconradt/analytics-toolbox-core
|
021e219e9c2bdb4cd4a0d59162ef4d677e1789aa
|
[
"BSD-3-Clause"
] | 1
|
2022-03-18T17:23:37.000Z
|
2022-03-18T17:23:37.000Z
|
from re import sub
def norm_sql(sql):
sql = sub('\s+', ' ', sql)
sql = sub('\s?,\s?', ',', sql)
sql = sub('\( ', '(', sql)
sql = sub(' \)', ')', sql)
return sql.strip()
| 21.111111
| 34
| 0.431579
| 26
| 190
| 3.115385
| 0.384615
| 0.37037
| 0.444444
| 0.246914
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.273684
| 190
| 8
| 35
| 23.75
| 0.586957
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0.142857
| 0
| 0.428571
| 0
| 1
| 0
| 0
| null | 1
| 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
| 0
| 0
| 0
| 0
|
0
| 5
|
b03a68d0d0f539fbe1165a986cc90b1e780b5e49
| 73
|
py
|
Python
|
data/util/__init__.py
|
wax911/anime-meta
|
5a707a75b277a9c0dc5b9d9447cea44a73d2f83c
|
[
"Apache-2.0"
] | 2
|
2021-04-08T19:55:02.000Z
|
2021-04-08T19:57:07.000Z
|
data/util/__init__.py
|
wax911/anime-meta
|
5a707a75b277a9c0dc5b9d9447cea44a73d2f83c
|
[
"Apache-2.0"
] | null | null | null |
data/util/__init__.py
|
wax911/anime-meta
|
5a707a75b277a9c0dc5b9d9447cea44a73d2f83c
|
[
"Apache-2.0"
] | null | null | null |
from .data_utils import DatabaseUtil, NetworkUtil, LoggingUtil, TimeUtil
| 36.5
| 72
| 0.849315
| 8
| 73
| 7.625
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09589
| 73
| 1
| 73
| 73
| 0.924242
| 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
|
b0592e8cc7daa61a378cf6e96f22d2640518525b
| 142
|
py
|
Python
|
parsec/commands/cmd_toolshed_tools.py
|
abretaud/parsec
|
8ebcafac34b5d6df45de4cecc882b129bb604170
|
[
"Apache-2.0"
] | null | null | null |
parsec/commands/cmd_toolshed_tools.py
|
abretaud/parsec
|
8ebcafac34b5d6df45de4cecc882b129bb604170
|
[
"Apache-2.0"
] | null | null | null |
parsec/commands/cmd_toolshed_tools.py
|
abretaud/parsec
|
8ebcafac34b5d6df45de4cecc882b129bb604170
|
[
"Apache-2.0"
] | null | null | null |
import click
from parsec.commands.toolshed_tools.search_tools import cli as func0
@click.group()
def cli():
pass
cli.add_command(func0)
| 15.777778
| 68
| 0.774648
| 22
| 142
| 4.863636
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01626
| 0.133803
| 142
| 8
| 69
| 17.75
| 0.853659
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| true
| 0.166667
| 0.333333
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 5
|
c67b188b17623301fbd9e1c8a0ff76a277320e4e
| 57
|
py
|
Python
|
blog/__init__.py
|
keitamoustapha913/Mongo-Neo4j-Flask
|
d69dc13d38be44a4474188732a346132eec24b55
|
[
"MIT"
] | null | null | null |
blog/__init__.py
|
keitamoustapha913/Mongo-Neo4j-Flask
|
d69dc13d38be44a4474188732a346132eec24b55
|
[
"MIT"
] | null | null | null |
blog/__init__.py
|
keitamoustapha913/Mongo-Neo4j-Flask
|
d69dc13d38be44a4474188732a346132eec24b55
|
[
"MIT"
] | null | null | null |
from .views import app
from .modele import graph
| 9.5
| 26
| 0.684211
| 8
| 57
| 4.875
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.280702
| 57
| 5
| 27
| 11.4
| 0.95122
| 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
|
c68cea2c9fc95b394eabfbb93c932949ef8d25fa
| 96
|
py
|
Python
|
venv/lib/python3.8/site-packages/pip/_vendor/progress/spinner.py
|
GiulianaPola/select_repeats
|
17a0d053d4f874e42cf654dd142168c2ec8fbd11
|
[
"MIT"
] | 2
|
2022-03-13T01:58:52.000Z
|
2022-03-31T06:07:54.000Z
|
venv/lib/python3.8/site-packages/pip/_vendor/progress/spinner.py
|
DesmoSearch/Desmobot
|
b70b45df3485351f471080deb5c785c4bc5c4beb
|
[
"MIT"
] | 19
|
2021-11-20T04:09:18.000Z
|
2022-03-23T15:05:55.000Z
|
venv/lib/python3.8/site-packages/pip/_vendor/progress/spinner.py
|
DesmoSearch/Desmobot
|
b70b45df3485351f471080deb5c785c4bc5c4beb
|
[
"MIT"
] | null | null | null |
/home/runner/.cache/pip/pool/93/c2/5b/0d6f784f4f965ee5dfc5920585da0d3d8a778df9e95ea0677d1bf97c6b
| 96
| 96
| 0.895833
| 9
| 96
| 9.555556
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.395833
| 0
| 96
| 1
| 96
| 96
| 0.5
| 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
|
c698f92018c4c47b71b5f8adc6681ca40b0acd00
| 118
|
py
|
Python
|
blasteroids/lib/__init__.py
|
smallarmyofnerds/blasteroids
|
082bc010ed6d2ec6098a8848edcbee433a5b6961
|
[
"MIT"
] | null | null | null |
blasteroids/lib/__init__.py
|
smallarmyofnerds/blasteroids
|
082bc010ed6d2ec6098a8848edcbee433a5b6961
|
[
"MIT"
] | 7
|
2021-09-04T18:49:13.000Z
|
2021-09-05T19:37:39.000Z
|
blasteroids/lib/__init__.py
|
smallarmyofnerds/blasteroids
|
082bc010ed6d2ec6098a8848edcbee433a5b6961
|
[
"MIT"
] | null | null | null |
from logging import getLogger
from .log import initialize_logging, get_logger
from .player_inputs import PlayerInputs
| 29.5
| 47
| 0.864407
| 16
| 118
| 6.1875
| 0.6875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.110169
| 118
| 3
| 48
| 39.333333
| 0.942857
| 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
|
c6c80e7b25afccb3002d500d079c0e33af8970f1
| 35
|
py
|
Python
|
configs/r3_cnn/r3_cnn-exp_5-row_2.py
|
IMPLabUniPr/mmdetection-groie
|
21b85c119c29a6e255caf0ff21baabe7d64aa9c5
|
[
"Apache-2.0"
] | 9
|
2020-04-29T02:00:19.000Z
|
2020-06-02T23:27:08.000Z
|
configs/r3_cnn/r3_cnn-exp_5-row_2.py
|
marcovalenti/mmdetection
|
215ea4174c1234ac4c3e23bf29020fc1cefc36ad
|
[
"Apache-2.0"
] | null | null | null |
configs/r3_cnn/r3_cnn-exp_5-row_2.py
|
marcovalenti/mmdetection
|
215ea4174c1234ac4c3e23bf29020fc1cefc36ad
|
[
"Apache-2.0"
] | 1
|
2021-09-16T13:53:58.000Z
|
2021-09-16T13:53:58.000Z
|
_base_ = './r3_cnn-exp_1-row_4.py'
| 17.5
| 34
| 0.685714
| 8
| 35
| 2.375
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09375
| 0.085714
| 35
| 1
| 35
| 35
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0.657143
| 0.657143
| 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
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
c6f619a65251841b5ef906ca90889c921219fead
| 186
|
py
|
Python
|
terra/api/__init__.py
|
jooddang/terra-py
|
c048ffd53dad13cdfb0c516ccef3d06b1b968cb2
|
[
"MIT"
] | null | null | null |
terra/api/__init__.py
|
jooddang/terra-py
|
c048ffd53dad13cdfb0c516ccef3d06b1b968cb2
|
[
"MIT"
] | null | null | null |
terra/api/__init__.py
|
jooddang/terra-py
|
c048ffd53dad13cdfb0c516ccef3d06b1b968cb2
|
[
"MIT"
] | null | null | null |
from enum import Enum
class ApiNetwork(Enum):
MAINNET = "https://lcd.terra.dev"
TESTNET__VODKA = "https://vodka-lcd.terra.dev"
TESTNET__SOJU = "https://soju-lcd.terra.dev"
| 23.25
| 50
| 0.688172
| 26
| 186
| 4.769231
| 0.5
| 0.193548
| 0.266129
| 0.290323
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155914
| 186
| 7
| 51
| 26.571429
| 0.789809
| 0
| 0
| 0
| 0
| 0
| 0.397849
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 1
| 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
| 0
| 0
| 1
| 0
|
0
| 5
|
05bdc92316087bb40bacc8461bec11c8f956db44
| 59
|
py
|
Python
|
api/vehicles/tests.py
|
jaconsta/soat_cnpx
|
3c5a05a334e44158b0aa9ab57c309771953b2950
|
[
"MIT"
] | null | null | null |
api/vehicles/tests.py
|
jaconsta/soat_cnpx
|
3c5a05a334e44158b0aa9ab57c309771953b2950
|
[
"MIT"
] | null | null | null |
api/vehicles/tests.py
|
jaconsta/soat_cnpx
|
3c5a05a334e44158b0aa9ab57c309771953b2950
|
[
"MIT"
] | null | null | null |
from django.test import TestCase
from .test_cases import *
| 19.666667
| 32
| 0.813559
| 9
| 59
| 5.222222
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135593
| 59
| 3
| 33
| 19.666667
| 0.921569
| 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
|
05c2c94f02a376dcd597225a1c68094c0abb291d
| 190
|
py
|
Python
|
exemplo de print justificado.py
|
RODRIGOKTK/Python-exercicios
|
f7985f2c277aae8b158bdeea4f2493febaaf06c5
|
[
"Unlicense"
] | null | null | null |
exemplo de print justificado.py
|
RODRIGOKTK/Python-exercicios
|
f7985f2c277aae8b158bdeea4f2493febaaf06c5
|
[
"Unlicense"
] | null | null | null |
exemplo de print justificado.py
|
RODRIGOKTK/Python-exercicios
|
f7985f2c277aae8b158bdeea4f2493febaaf06c5
|
[
"Unlicense"
] | null | null | null |
nome=str(input('Qual o seu nome? '))
#print('Prazer em te conhecer {:=^20}!'.format(nome)) ^centraliza,<alinha esquerda,>alinha direita
print('Prazer em te conhecer {:=^20}!'.format(nome))
| 63.333333
| 99
| 0.689474
| 28
| 190
| 4.678571
| 0.607143
| 0.167939
| 0.198473
| 0.229008
| 0.534351
| 0.534351
| 0.534351
| 0.534351
| 0
| 0
| 0
| 0.023392
| 0.1
| 190
| 3
| 100
| 63.333333
| 0.74269
| 0.510526
| 0
| 0
| 0
| 0
| 0.516484
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 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
| 0
| 0
| 0
| 1
|
0
| 5
|
05c46d635029e19b06ca61b87c528ac9fd456a54
| 232
|
py
|
Python
|
star_resty/payload/__init__.py
|
lazy-labs/star_resty
|
e7f37d63b740e77bf65d72f94b840efcb893cace
|
[
"BSD-3-Clause"
] | 3
|
2019-08-23T10:55:54.000Z
|
2021-02-24T18:55:34.000Z
|
star_resty/payload/__init__.py
|
slv0/star_resty
|
e7f37d63b740e77bf65d72f94b840efcb893cace
|
[
"BSD-3-Clause"
] | null | null | null |
star_resty/payload/__init__.py
|
slv0/star_resty
|
e7f37d63b740e77bf65d72f94b840efcb893cace
|
[
"BSD-3-Clause"
] | null | null | null |
from .form import form_payload, form_schema
from .header import header, header_schema
from .json import json_payload, json_schema
from .path import path, path_schema
from .query import query, query_schema
from .upload import upload
| 33.142857
| 43
| 0.827586
| 36
| 232
| 5.138889
| 0.277778
| 0.27027
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 232
| 6
| 44
| 38.666667
| 0.91133
| 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
| 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
|
af0980856752b8daa8bd78c4250999ad8777d15f
| 21
|
py
|
Python
|
ensembler/methods/Best.py
|
brandongk-ubco/ensembler
|
9d4ab1a07f686eee8b5a4e721a6acc44da3ef94d
|
[
"MIT"
] | null | null | null |
ensembler/methods/Best.py
|
brandongk-ubco/ensembler
|
9d4ab1a07f686eee8b5a4e721a6acc44da3ef94d
|
[
"MIT"
] | null | null | null |
ensembler/methods/Best.py
|
brandongk-ubco/ensembler
|
9d4ab1a07f686eee8b5a4e721a6acc44da3ef94d
|
[
"MIT"
] | null | null | null |
class Best:
pass
| 7
| 11
| 0.619048
| 3
| 21
| 4.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 21
| 2
| 12
| 10.5
| 0.928571
| 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
|
af597fb6156def465aada52384649292a2df2de6
| 325
|
py
|
Python
|
game/apps/core/signals.py
|
alviproject/birdstorm
|
439ff97ee40c3dd93b8fa8bfca557bdee9c036e1
|
[
"MIT"
] | null | null | null |
game/apps/core/signals.py
|
alviproject/birdstorm
|
439ff97ee40c3dd93b8fa8bfca557bdee9c036e1
|
[
"MIT"
] | null | null | null |
game/apps/core/signals.py
|
alviproject/birdstorm
|
439ff97ee40c3dd93b8fa8bfca557bdee9c036e1
|
[
"MIT"
] | null | null | null |
messages = 'game.apps.core.signals.messages.%s' # user.id
planet = 'game.apps.core.signals.planet_details.%s' # planetID_requestID
account_data = 'game.apps.core.signals.account_data.%s'
building = 'game.apps.core.signals.building.%s' # buildingID
task_updated = 'game.apps.core.signals.task_updated.%s' # user.id
| 46.428571
| 74
| 0.738462
| 47
| 325
| 4.978723
| 0.382979
| 0.17094
| 0.25641
| 0.405983
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104615
| 325
| 6
| 75
| 54.166667
| 0.804124
| 0.138462
| 0
| 0
| 0
| 0
| 0.686567
| 0.686567
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
af83019e20bc32da4b6879a9ce1ba1db67819344
| 72
|
py
|
Python
|
savecode/threeyears/idownclient/scout/plugin/sonar/__init__.py
|
Octoberr/swm0920
|
8f05a6b91fc205960edd57f9076facec04f49a1a
|
[
"Apache-2.0"
] | 2
|
2019-05-19T11:54:26.000Z
|
2019-05-19T12:03:49.000Z
|
savecode/threeyears/idownclient/scout/plugin/sonar/__init__.py
|
Octoberr/swm0920
|
8f05a6b91fc205960edd57f9076facec04f49a1a
|
[
"Apache-2.0"
] | 1
|
2020-11-27T07:55:15.000Z
|
2020-11-27T07:55:15.000Z
|
savecode/threeyears/idownclient/scout/plugin/sonar/__init__.py
|
Octoberr/swm0920
|
8f05a6b91fc205960edd57f9076facec04f49a1a
|
[
"Apache-2.0"
] | 2
|
2019-01-17T15:01:28.000Z
|
2019-09-20T09:32:17.000Z
|
"""sonar api"""
# -*- coding:utf-8 -*-
from .sonarapi import SonarApi
| 12
| 30
| 0.611111
| 9
| 72
| 4.888889
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016667
| 0.166667
| 72
| 5
| 31
| 14.4
| 0.716667
| 0.430556
| 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
|
af832200bb2483e1709998a83e831c8acf2b84bb
| 171
|
py
|
Python
|
multifile_reader/__init__.py
|
gncv/multifile-reader
|
2a5eb20d6f766436bab539f99cc408fade5f6c8c
|
[
"MIT"
] | 1
|
2020-03-16T16:02:23.000Z
|
2020-03-16T16:02:23.000Z
|
multifile_reader/__init__.py
|
altonotch/multifile-reader
|
2a5eb20d6f766436bab539f99cc408fade5f6c8c
|
[
"MIT"
] | 1
|
2020-04-10T06:56:46.000Z
|
2020-04-10T06:56:46.000Z
|
multifile_reader/__init__.py
|
gncv/multifile-reader
|
2a5eb20d6f766436bab539f99cc408fade5f6c8c
|
[
"MIT"
] | null | null | null |
"""MultiFileReader helper class.
Easily read content spread over multiple files as if they are one file.
"""
from .multifile_reader import MultiFileReader # noqa: F401
| 28.5
| 71
| 0.777778
| 23
| 171
| 5.73913
| 0.956522
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020833
| 0.157895
| 171
| 5
| 72
| 34.2
| 0.895833
| 0.672515
| 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
|
af8d714d5fa8fd9303a1a465efb2ea27983b0153
| 2,260
|
py
|
Python
|
static/views.py
|
lkmhaqer/gtools-python
|
cff6d80525b78a4fadfb686566489fbe1687d889
|
[
"MIT"
] | 5
|
2016-10-31T17:46:17.000Z
|
2022-02-02T00:40:49.000Z
|
static/views.py
|
lkmhaqer/gtools-python
|
cff6d80525b78a4fadfb686566489fbe1687d889
|
[
"MIT"
] | 33
|
2018-05-09T06:07:50.000Z
|
2021-09-22T17:39:56.000Z
|
static/views.py
|
lkmhaqer/gtools-python
|
cff6d80525b78a4fadfb686566489fbe1687d889
|
[
"MIT"
] | 1
|
2020-05-14T21:44:25.000Z
|
2020-05-14T21:44:25.000Z
|
# file: static/views.py
from django.shortcuts import get_object_or_404, render, redirect
from netdevice.models import router
from static.models import ipv6_static, ipv4_static
from static.forms import IPv6StaticForm, IPv4StaticForm
def ipv6_static_create(request, router_id):
router_obj = get_object_or_404(router, pk=router_id)
if request.method == "POST":
form = IPv6StaticForm(request.POST)
if form.is_valid():
ipv6_static_obj = form.save()
return redirect('netdevice:router_detail', router_id=ipv6_static_obj.router.pk)
else:
form = IPv6StaticForm(initial={'router': router_obj})
return render(request, 'op_webgui/generic_edit.html', {'form': form})
def ipv6_static_edit(request, ipv6_static_id):
ipv6_static_obj = get_object_or_404(ipv6_static, pk=ipv6_static_id)
if request.method == "POST":
form = IPv6StaticForm(request.POST, instance=ipv6_static_obj)
if form.is_valid():
ipv6_static_obj = form.save()
return redirect('netdevice:router_detail', router_id=ipv6_static_obj.router.pk)
else:
form = IPv6StaticForm(instance=ipv6_static_obj)
return render(request, 'op_webgui/generic_edit.html', {'form': form})
def ipv4_static_create(request, router_id):
router_obj = get_object_or_404(router, pk=router_id)
if request.method == "POST":
form = IPv4StaticForm(request.POST)
if form.is_valid():
ipv4_static_obj = form.save()
return redirect('netdevice:router_detail', router_id=ipv4_static_obj.router.pk)
else:
form = IPv4StaticForm(initial={'router': router_obj})
return render(request, 'op_webgui/generic_edit.html', {'form': form})
def ipv4_static_edit(request, ipv4_static_id):
ipv4_static_obj = get_object_or_404(ipv4_static, pk=ipv4_static_id)
if request.method == "POST":
form = IPv4StaticForm(request.POST, instance=ipv4_static_obj)
if form.is_valid():
ipv4_static_obj = form.save()
return redirect('netdevice:router_detail', router_id=ipv4_static_obj.router.pk)
else:
form = IPv4StaticForm(instance=ipv4_static_obj)
return render(request, 'op_webgui/generic_edit.html', {'form': form})
| 41.851852
| 91
| 0.709292
| 301
| 2,260
| 5.023256
| 0.149502
| 0.083333
| 0.060185
| 0.046296
| 0.773148
| 0.773148
| 0.73082
| 0.722884
| 0.722884
| 0.623677
| 0
| 0.027642
| 0.183628
| 2,260
| 53
| 92
| 42.641509
| 0.79187
| 0.009292
| 0
| 0.590909
| 0
| 0
| 0.109075
| 0.089405
| 0
| 0
| 0
| 0
| 0
| 1
| 0.090909
| false
| 0
| 0.090909
| 0
| 0.363636
| 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
|
af9803773eb69339b74d3cb6aa83a40f221c8b35
| 74
|
py
|
Python
|
savecode/threeyears/idownclient/automated/__init__.py
|
Octoberr/swm0920
|
8f05a6b91fc205960edd57f9076facec04f49a1a
|
[
"Apache-2.0"
] | 2
|
2019-05-19T11:54:26.000Z
|
2019-05-19T12:03:49.000Z
|
savecode/threeyears/idownclient/automated/__init__.py
|
Octoberr/swm0920
|
8f05a6b91fc205960edd57f9076facec04f49a1a
|
[
"Apache-2.0"
] | 1
|
2020-11-27T07:55:15.000Z
|
2020-11-27T07:55:15.000Z
|
savecode/threeyears/idownclient/automated/__init__.py
|
Octoberr/swm0920
|
8f05a6b91fc205960edd57f9076facec04f49a1a
|
[
"Apache-2.0"
] | 2
|
2019-01-17T15:01:28.000Z
|
2019-09-20T09:32:17.000Z
|
from .exploit.exploit import Exploit
from .geoname.geoname import GeoName
| 24.666667
| 36
| 0.837838
| 10
| 74
| 6.2
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108108
| 74
| 2
| 37
| 37
| 0.939394
| 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
|
bb719a1a784cf224ff2c3b07e76c6c435d28fde6
| 99
|
wsgi
|
Python
|
fotos/fotos.wsgi
|
len-ro/horusPhotos
|
5c220735c34156b0f43da55649c725f4a6d7c57a
|
[
"Apache-2.0"
] | null | null | null |
fotos/fotos.wsgi
|
len-ro/horusPhotos
|
5c220735c34156b0f43da55649c725f4a6d7c57a
|
[
"Apache-2.0"
] | null | null | null |
fotos/fotos.wsgi
|
len-ro/horusPhotos
|
5c220735c34156b0f43da55649c725f4a6d7c57a
|
[
"Apache-2.0"
] | null | null | null |
#import sys
#sys.path.insert(0, '/home/len/data/fotos.fotos')
from fotos import app as application
| 24.75
| 49
| 0.757576
| 17
| 99
| 4.411765
| 0.764706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011236
| 0.10101
| 99
| 4
| 50
| 24.75
| 0.831461
| 0.585859
| 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
|
bb7a7506260bbc9be6a16b7557d10f17cd6b25bd
| 126
|
py
|
Python
|
djangobin/mainapp/views.py
|
Buildfromzero/django-tutorial
|
d60026197784ca01abc58497effb86fc7355ea6e
|
[
"MIT"
] | null | null | null |
djangobin/mainapp/views.py
|
Buildfromzero/django-tutorial
|
d60026197784ca01abc58497effb86fc7355ea6e
|
[
"MIT"
] | null | null | null |
djangobin/mainapp/views.py
|
Buildfromzero/django-tutorial
|
d60026197784ca01abc58497effb86fc7355ea6e
|
[
"MIT"
] | null | null | null |
from django.shortcuts import render
# Create your views here.
def home_page(request):
return render(request,'base.html',{})
| 21
| 38
| 0.761905
| 18
| 126
| 5.277778
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119048
| 126
| 6
| 38
| 21
| 0.855856
| 0.18254
| 0
| 0
| 0
| 0
| 0.088235
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 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
| 1
| 0
| 0
| 1
| 1
| 0
| 0
|
0
| 5
|
bb806718c4070bfd5860b9c5b819908c82001d05
| 1,044
|
py
|
Python
|
cirq/contrib/qasm_import/qasm.py
|
kunalq/Cirq
|
e73c9bef672e83143ab04e7f169988149055d630
|
[
"Apache-2.0"
] | null | null | null |
cirq/contrib/qasm_import/qasm.py
|
kunalq/Cirq
|
e73c9bef672e83143ab04e7f169988149055d630
|
[
"Apache-2.0"
] | null | null | null |
cirq/contrib/qasm_import/qasm.py
|
kunalq/Cirq
|
e73c9bef672e83143ab04e7f169988149055d630
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2018 The Cirq Developers
#
# 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
#
# https://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.
from cirq import circuits
from cirq.contrib.qasm_import._parser import QasmParser
class QasmCircuitParser:
"""QasmCircuitParser is currently partially developed, not functional,
DO NOT USE.
TODO(https://github.com/quantumlib/Cirq/issues/1548)
It will serve as the entrypoint for parsing QASM files."""
def __init__(self):
pass
def parse(self, qasm: str) -> circuits.Circuit:
return QasmParser().parse(qasm).circuit
| 34.8
| 74
| 0.746169
| 149
| 1,044
| 5.187919
| 0.651007
| 0.07762
| 0.033635
| 0.041397
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014002
| 0.179119
| 1,044
| 29
| 75
| 36
| 0.887981
| 0.715517
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.034483
| 0
| 1
| 0.285714
| false
| 0.142857
| 0.285714
| 0.142857
| 0.857143
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 5
|
bb90a822076bf84cdfbe85ce29ac631003132e24
| 440
|
py
|
Python
|
tests/test_number_separator.py
|
rezashabrang/cleaner-utils
|
d0181ee1a131e877e66d943323018617aa488433
|
[
"MIT"
] | 4
|
2021-12-28T16:37:00.000Z
|
2022-02-17T12:02:02.000Z
|
tests/test_number_separator.py
|
rezashabrang/cleaner-utils
|
d0181ee1a131e877e66d943323018617aa488433
|
[
"MIT"
] | null | null | null |
tests/test_number_separator.py
|
rezashabrang/cleaner-utils
|
d0181ee1a131e877e66d943323018617aa488433
|
[
"MIT"
] | null | null | null |
"""Testing the number_separator function."""
# ------------------------ Import libraries and functions ---------------------
from cleaning_utils.number_separator import number_separator
# ---------------------------- function definition ----------------------------
def test_number_separator_pass():
"""Test passes for number_separator."""
input_text = "hello2 people"
assert number_separator(input_text) == "hello 2 people"
| 36.666667
| 79
| 0.588636
| 41
| 440
| 6.04878
| 0.609756
| 0.362903
| 0.185484
| 0.193548
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005141
| 0.115909
| 440
| 11
| 80
| 40
| 0.632391
| 0.520455
| 0
| 0
| 0
| 0
| 0.135678
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.25
| false
| 0.25
| 0.25
| 0
| 0.5
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
bb9ea8a7df394f7f7feac8684bceb872c0c34c8e
| 32
|
py
|
Python
|
src/models/config/__init__.py
|
kzajac97/frequency-neural-networks
|
39ddea64d0654559dfe976e974fa369480f75caf
|
[
"MIT"
] | null | null | null |
src/models/config/__init__.py
|
kzajac97/frequency-neural-networks
|
39ddea64d0654559dfe976e974fa369480f75caf
|
[
"MIT"
] | null | null | null |
src/models/config/__init__.py
|
kzajac97/frequency-neural-networks
|
39ddea64d0654559dfe976e974fa369480f75caf
|
[
"MIT"
] | null | null | null |
from .linear import LinearModel
| 16
| 31
| 0.84375
| 4
| 32
| 6.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 32
| 1
| 32
| 32
| 0.964286
| 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
|
bbe2fadb6b52d12cf52694deac958e5ded6fb5db
| 6,809
|
py
|
Python
|
test/test_api.py
|
Liamdoult/pigeon-cli
|
fff80e9eac18374e01f41aad8eb9a57b27ee7188
|
[
"MIT"
] | null | null | null |
test/test_api.py
|
Liamdoult/pigeon-cli
|
fff80e9eac18374e01f41aad8eb9a57b27ee7188
|
[
"MIT"
] | null | null | null |
test/test_api.py
|
Liamdoult/pigeon-cli
|
fff80e9eac18374e01f41aad8eb9a57b27ee7188
|
[
"MIT"
] | null | null | null |
""" Test for the API module. """
from unittest import mock
import pytest
from test.request_mock import mock_requests
from pigeon_cli import api, errors
TEST_EXTRACT_ID_PARAMS = [
("https://pigeon.ventures/a83hs1", "a83hs1"),
("ajf812", "ajf812"),
]
TEST_EXTRACT_ID_FAILS_PARAMS = [
"https://some.url/a83hs1",
"ajf81212sdaklf",
]
@pytest.mark.parametrize("input,expected", TEST_EXTRACT_ID_PARAMS)
def test_extract_id(input, expected):
assert api._extract_id(input) == expected
@pytest.mark.parametrize("input", TEST_EXTRACT_ID_FAILS_PARAMS)
def test_extract_id_fails(input):
with pytest.raises(errors.InvalidIDExcpetion):
api._extract_id(input)
def test_share(mock_requests):
file_id = "a1asd2"
signed_url = "https://test.signed.url/lol"
content = "this is a other test content"
content = content.encode('utf-8')
mock_requests.set_responses({
"post": {
f"{api.API_URL}": {
"status_code": 200,
"json": {
"id": file_id,
"signedUrl": [signed_url],
}
}
},
"put": {
signed_url: {
"status_code": 200,
},
},
})
open_mock = mock.mock_open(read_data=content)
with mock.patch('builtins.open', open_mock, create=False):
with open(file_id, 'rb') as f:
assert api.share(f) == f"https://pigeon.ventures/{file_id}"
open_mock.assert_called_once_with(file_id, 'rb')
def test_share_failed_gcp_cloud_function_query(mock_requests):
file_id = "a1asd2"
signed_url = "https://test.signed.url/lol"
content = "this is a other test content"
content = content.encode('utf-8')
mock_requests.set_responses({
"post": {
f"{api.API_URL}": {
"status_code": 404,
"json": {
"_content": "Example content error message"
}
}
},
"put": {
signed_url: {
"status_code": 200,
},
},
})
open_mock = mock.mock_open(read_data=content)
with mock.patch('builtins.open', open_mock, create=False):
with open(file_id, 'rb') as f:
with pytest.raises(errors.UploadException):
api.share(f)
open_mock.assert_called_once_with(file_id, 'rb')
def test_share_failed_upload_to_gcp_storage(mock_requests):
file_id = "a1asd2"
signed_url = "https://test.signed.url/lol"
content = "this is a other test content"
content = content.encode('utf-8')
mock_requests.set_responses({
"post": {
f"{api.API_URL}": {
"status_code": 200,
"json": {
"id": file_id,
"signedUrl": [signed_url],
}
}
},
"put": {
signed_url: {
"status_code": 404,
"json": {
"_content": "Example content error"
}
},
},
})
open_mock = mock.mock_open(read_data=content)
with mock.patch('builtins.open', open_mock, create=False):
with open(file_id, 'rb') as f:
with pytest.raises(errors.UploadException):
api.share(f)
open_mock.assert_called_once_with(file_id, 'rb')
# TODO: Add some varaiation in imputs and expectations
def test_get(mock_requests):
file_id = "a7ds6s"
signed_url = "https//test.signed.url/lol"
content = "this is some test content"
content = content.encode('utf-8')
mock_requests.set_responses({
"get": {
f"{api.API_URL}?id={file_id}": {
"status_code": 200,
"json": {
"signedUrl": [signed_url]
}
},
signed_url: {
"status_code": 200,
"json": {
"_content": content
},
},
},
})
open_mock = mock.mock_open()
with mock.patch('builtins.open', open_mock, create=False):
api.get(file_id)
open_mock.assert_called_once_with(file_id, 'wb')
open_mock().write.assert_called_once_with(content)
def test_get_failed_download_gcp_cloud_function_file_id_not_found(
mock_requests):
file_id = "a7ds6s"
signed_url = "https//test.signed.url/lol"
content = "this is some test content"
content = content.encode('utf-8')
mock_requests.set_responses({
"get": {
f"{api.API_URL}?id={file_id}": {
"status_code": 404,
"json": {
"error": "This is an example reasoning"
}
},
signed_url: {
"status_code": 404,
"json": {
"_content": content
},
},
},
})
open_mock = mock.mock_open()
with mock.patch('builtins.open', open_mock, create=False):
with pytest.raises(errors.DownloadNotFound):
api.get(file_id)
def test_get_failed_download_unexpected_gcp_cloud_function_exception(
mock_requests):
file_id = "a7ds6s"
signed_url = "https//test.signed.url/lol"
content = "this is some test content"
content = content.encode('utf-8')
mock_requests.set_responses({
"get": {
f"{api.API_URL}?id={file_id}": {
"status_code": 500,
"json": {
"_content": "This is an example of the error outpupt"
},
},
signed_url: {
"status_code": 404,
"json": {
"_content": content
},
},
},
})
open_mock = mock.mock_open()
with mock.patch('builtins.open', open_mock, create=False):
with pytest.raises(errors.DownloadException):
api.get(file_id)
def test_get_failed_download_from_gcp_storage(mock_requests):
file_id = "a7ds6s"
signed_url = "https//test.signed.url/lol"
content = "this is some test content"
content = content.encode('utf-8')
mock_requests.set_responses({
"get": {
f"{api.API_URL}?id={file_id}": {
"status_code": 200,
"json": {
"signedUrl": [signed_url]
}
},
signed_url: {
"status_code": 404,
"json": {
"_content": content
},
},
},
})
open_mock = mock.mock_open()
with mock.patch('builtins.open', open_mock, create=False):
with pytest.raises(errors.DownloadException):
api.get(file_id)
| 28.851695
| 73
| 0.531649
| 739
| 6,809
| 4.627876
| 0.142084
| 0.045614
| 0.038012
| 0.036842
| 0.781287
| 0.748246
| 0.742398
| 0.742398
| 0.742398
| 0.705556
| 0
| 0.018589
| 0.34425
| 6,809
| 235
| 74
| 28.974468
| 0.747368
| 0.011602
| 0
| 0.651961
| 0
| 0
| 0.190986
| 0.030939
| 0
| 0
| 0
| 0.004255
| 0.034314
| 1
| 0.044118
| false
| 0
| 0.019608
| 0
| 0.063725
| 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
|
bbe92a2ee468bff426e000e7e1347834e6284ba2
| 119
|
py
|
Python
|
API/quiz/admin.py
|
kasimbozdag/SWE_573
|
4bce24f98fe6980b1f2c83196b8454b56118186b
|
[
"MIT"
] | null | null | null |
API/quiz/admin.py
|
kasimbozdag/SWE_573
|
4bce24f98fe6980b1f2c83196b8454b56118186b
|
[
"MIT"
] | 52
|
2019-02-19T10:43:11.000Z
|
2022-02-10T10:36:37.000Z
|
API/quiz/admin.py
|
kasimbozdag/SWE_573
|
4bce24f98fe6980b1f2c83196b8454b56118186b
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
# Register your models here.
from quiz.models import Quiz
admin.site.register(Quiz)
| 17
| 32
| 0.798319
| 18
| 119
| 5.277778
| 0.611111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134454
| 119
| 6
| 33
| 19.833333
| 0.92233
| 0.218487
| 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
|
a54cea96af73322e8e401cecc43ef7a87d914c20
| 16,013
|
py
|
Python
|
count_and_plot_tweets.py
|
SinhaUddeshya/Webscience
|
fe867a25a7ca1538fdf7a3e294d7b45a42cc28ff
|
[
"MIT"
] | null | null | null |
count_and_plot_tweets.py
|
SinhaUddeshya/Webscience
|
fe867a25a7ca1538fdf7a3e294d7b45a42cc28ff
|
[
"MIT"
] | null | null | null |
count_and_plot_tweets.py
|
SinhaUddeshya/Webscience
|
fe867a25a7ca1538fdf7a3e294d7b45a42cc28ff
|
[
"MIT"
] | null | null | null |
from pymongo import MongoClient
import numpy as np
import matplotlib.pyplot as plt
from pymongo import MongoClient
MONGO_HOST= 'mongodb://localhost/twitter_db'
client = MongoClient(MONGO_HOST)
db = client.twitter_db
#Counting the tweets collected through different methods
print("Total amount of combined tweets collected through 1%, Keyword-based, user-based and location-based(Glasgow):")
print(db.twitter_search1.count()+db.twitter_search2.count()+db.twitter_search3.count()+db.twitter_search4.count())
print("Total amount of tweets collected through 1% streaming:")
print(db.twitter_search1.count())
print("Total amount of geo-tagged data collected through 1% streaming:")
print(db.twitter_search1.find({"user.geo_enabled":{"$eq":True}}).count())
print("Tweets collected from Glasgow through 1% streaming:")
print(db.twitter_search1.find( { "place.name" : { "$eq":"Glasgow" } } ).count())
print("Total amount of tweets collected through keyword-based streaming:")
print(db.twitter_search2.count())
print("Total amount of geo-tagged data collected through keyword-based streaming:")
#print(db.twitter_search2.find({"user.geo_enabled":{"$eq":True}}).count()) #Not always contain geo-information even if geo-enabled is true.
print(db.twitter_search2.find({"place":{"$ne":None}}).count())
print("Tweets collected from Glasgow through keyword-based streaming:")
print(db.twitter_search2.find( { "place.name" : { "$eq":"Glasgow" } } ).count())
print("Total amount of tweets collected through location-based search:")
print(db.twitter_search3.count())
print("Tweets collected from Glasgow through location-based streaming:")
print(db.twitter_search3.find( { "place.name" : { "$eq":"Glasgow" } } ).count())
print("Total amount of tweets collected through user-based REST API:")
print(db.twitter_search4.count())
print("Total amount of geo-tagged data collected through user-based streaming:")
print(db.twitter_search4.find({"place":{"$ne":None}}).count())
print("Tweets collected from Glasgow through user-based streaming:")
print(db.twitter_search4.find( { "place.name" : { "$eq":"Glasgow" } } ).count())
print("Number of retweets collected:")
r1 = db.twitter_search1.find({"retweeted_status":{"$exists":True}}).count()
r2 = db.twitter_search2.find({"retweeted_status":{"$exists":True}}).count()
r3 = db.twitter_search3.find({"retweeted_status":{"$exists":True}}).count()
r4 = db.twitter_search4.find({"retweeted_status":{"$exists":True}}).count()
print(r1+r2+r3+r4)
print("Number of quotes collected:")
q1 = db.twitter_search1.find({"is_quote_status":{"$eq":True}}).count()
q2 = db.twitter_search2.find({"is_quote_status":{"$eq":True}}).count()
q3 = db.twitter_search3.find({"is_quote_status":{"$eq":True}}).count()
q4 = db.twitter_search4.find({"is_quote_status":{"$eq":True}}).count()
print(q1+q2+q3+q4)
#querying the databases to count the number of tweets in 10 minute intervals from all the collections except for the user-based one
query1 =db.twitter_search1.find({"timestamp_ms":{"$lt":"1542319627000"}}).count()
query2 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$gt":"1542319627000"}},{"timestamp_ms":{"$lt":"1542320227000"}}]}).count()
query3 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$gt":"1542320227000"}},{"timestamp_ms":{"$lt":"1542320827000"}}]}).count()
query4 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$gt":"1542320827000"}},{"timestamp_ms":{"$lt":"1542321427000"}}]}).count()
query5 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$gt":"1542321427000"}},{"timestamp_ms":{"$lt":"1542322027000"}}]}).count()
query6 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$gt":"1542322027000"}},{"timestamp_ms":{"$lt":"1542322637000"}}]}).count()
query7 =db.twitter_search2.find({"timestamp_ms":{"$lt":"1542319627000"}}).count()
query8 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$gt":"1542319627000"}},{"timestamp_ms":{"$lt":"1542320227000"}}]}).count()
query9 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$gt":"1542320227000"}},{"timestamp_ms":{"$lt":"1542320827000"}}]}).count()
query10 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$gt":"1542320827000"}},{"timestamp_ms":{"$lt":"1542321427000"}}]}).count()
query11 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$gt":"1542321427000"}},{"timestamp_ms":{"$lt":"1542322027000"}}]}).count()
query12 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$gt":"1542322027000"}},{"timestamp_ms":{"$lt":"1542322637000"}}]}).count()
query13 =db.twitter_search3.find({"timestamp_ms":{"$lt":"1542323257000"}}).count()
query14=db.twitter_search3.find({"$and":[{"timestamp_ms":{"$gt":"1542323257000"}},{"timestamp_ms":{"$lt":"1542323857000"}}]}).count()
query15=db.twitter_search3.find({"$and":[{"timestamp_ms":{"$gt":"1542323857000"}},{"timestamp_ms":{"$lt":"1542324457000"}}]}).count()
query16 =db.twitter_search3.find({"$and":[{"timestamp_ms":{"$gt":"1542324457000"}},{"timestamp_ms":{"$lt":"1542325057000"}}]}).count()
query17 =db.twitter_search3.find({"$and":[{"timestamp_ms":{"$gt":"1542325057000"}},{"timestamp_ms":{"$lt":"1542325657000"}}]}).count()
query18 =db.twitter_search3.find({"$and":[{"timestamp_ms":{"$gt":"1542325657000"}},{"timestamp_ms":{"$lt":"1542326258000"}}]}).count()
#adding the count of data collected from 0 to 60 minutes
x = np.array([query1+query7+query13,query2+query8+query14,query3+query9+query15,query4+query10+query16,query5+query11+query17,query6+query12+query18])
y = np.array(["10","20","30","40","50","60"])
#Plotting the total amount of data collected vs time intervals of 10 minutes
fig=plt.figure()
ax=fig.add_subplot(1,1,1)
ax.set_title("10 minutes interval graph for the number of tweets collected")
ax.set_xlabel("Time in minutes")
ax.set_ylabel("Number of tweets collected")
plt.plot(y,x,marker="o",markersize=10)
plt.show()
#Plotting the total amount of geo-tagged data collected from Glasgow vs time intervals of 10 minutes
x1 = np.array([query13,query14,query15,query16,query17,query18])
y1 = np.array(["10","20","30","40","50","60"])
fig=plt.figure()
ax=fig.add_subplot(1,1,1)
ax.set_title("10 minutes interval graph for the number of tweets collected")
ax.set_xlabel("Time in minutes")
ax.set_ylabel("Number of tweets collected")
plt.plot(y1,x1,marker="o",markersize=10)
plt.show()
#querying the databases to count the number of retweets in 10 minute intervals from all the collections
rquery1 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$lt":"1542319627000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery2 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$gt":"1542319627000"}},{"timestamp_ms":{"$lt":"1542320227000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery3 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$gt":"1542320227000"}},{"timestamp_ms":{"$lt":"1542320827000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery4 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$gt":"1542320827000"}},{"timestamp_ms":{"$lt":"1542321427000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery5 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$gt":"1542321427000"}},{"timestamp_ms":{"$lt":"1542322027000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery6 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$gt":"1542322027000"}},{"timestamp_ms":{"$lt":"1542322637000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery7 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$lt":"1542319627000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery8 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$gt":"1542319627000"}},{"timestamp_ms":{"$lt":"1542320227000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery9 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$gt":"1542320227000"}},{"timestamp_ms":{"$lt":"1542320827000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery10 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$gt":"1542320827000"}},{"timestamp_ms":{"$lt":"1542321427000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery11 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$gt":"1542321427000"}},{"timestamp_ms":{"$lt":"1542322027000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery12 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$gt":"1542322027000"}},{"timestamp_ms":{"$lt":"1542322637000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery13 =db.twitter_search3.find({"$and":[{"timestamp_ms":{"$lt":"1542323257000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery14=db.twitter_search3.find({"$and":[{"timestamp_ms":{"$gt":"1542323257000"}},{"timestamp_ms":{"$lt":"1542323857000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery15=db.twitter_search3.find({"$and":[{"timestamp_ms":{"$gt":"1542323857000"}},{"timestamp_ms":{"$lt":"1542324457000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery16 =db.twitter_search3.find({"$and":[{"timestamp_ms":{"$gt":"1542324457000"}},{"timestamp_ms":{"$lt":"1542325057000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery17 =db.twitter_search3.find({"$and":[{"timestamp_ms":{"$gt":"1542325057000"}},{"timestamp_ms":{"$lt":"1542325657000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery18 =db.twitter_search3.find({"$and":[{"timestamp_ms":{"$gt":"1542325657000"}},{"timestamp_ms":{"$lt":"1542326258000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery19 =db.twitter_search4.find({"$and":[{"timestamp_ms":{"$lt":"1542323257000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery20=db.twitter_search4.find({"$and":[{"timestamp_ms":{"$gt":"1542323257000"}},{"timestamp_ms":{"$lt":"1542323857000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery21=db.twitter_search4.find({"$and":[{"timestamp_ms":{"$gt":"1542323857000"}},{"timestamp_ms":{"$lt":"1542324457000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery22 =db.twitter_search4.find({"$and":[{"timestamp_ms":{"$gt":"1542324457000"}},{"timestamp_ms":{"$lt":"1542325057000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery23 =db.twitter_search4.find({"$and":[{"timestamp_ms":{"$gt":"1542325057000"}},{"timestamp_ms":{"$lt":"1542325657000"}},{"retweeted_status":{"$exists":True}}]}).count()
rquery24 =db.twitter_search4.find({"$and":[{"timestamp_ms":{"$gt":"1542325657000"}},{"timestamp_ms":{"$lt":"1542326258000"}},{"retweeted_status":{"$exists":True}}]}).count()
#adding the count of retweets collected from 0 to 60 minutes
x2 = np.array([rquery1+rquery7+rquery13+rquery19,rquery2+rquery8+rquery14+rquery20,rquery3+rquery9+rquery15+rquery21,rquery4+rquery10+rquery16+rquery22,rquery5+rquery11+rquery17+rquery23,rquery6+rquery12+rquery18+rquery24])
y2 = np.array(["10","20","30","40","50","60"])
#Plotting the total amount of retweets collected vs time intervals of 10 minutes
fig=plt.figure()
ax=fig.add_subplot(1,1,1)
ax.set_title("10 minutes interval graph for the number of retweets collected")
ax.set_xlabel("Time in minutes")
ax.set_ylabel("Number of retweets collected")
plt.plot(y2,x2,marker="o",markersize=10)
plt.show()
#querying the databases to count the number of quotes in 10 minute intervals from all the collections
qquery1 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$lt":"1542319627000"}},{"is_quote_status":{"$exists":True}}]}).count()
qquery2 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$gt":"1542319627000"}},{"timestamp_ms":{"$lt":"1542320227000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery3 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$gt":"1542320227000"}},{"timestamp_ms":{"$lt":"1542320827000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery4 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$gt":"1542320827000"}},{"timestamp_ms":{"$lt":"1542321427000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery5 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$gt":"1542321427000"}},{"timestamp_ms":{"$lt":"1542322027000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery6 =db.twitter_search1.find({"$and":[{"timestamp_ms":{"$gt":"1542322027000"}},{"timestamp_ms":{"$lt":"1542322637000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery7 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$lt":"1542319627000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery8 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$gt":"1542319627000"}},{"timestamp_ms":{"$lt":"1542320227000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery9 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$gt":"1542320227000"}},{"timestamp_ms":{"$lt":"1542320827000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery10 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$gt":"1542320827000"}},{"timestamp_ms":{"$lt":"1542321427000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery11 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$gt":"1542321427000"}},{"timestamp_ms":{"$lt":"1542322027000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery12 =db.twitter_search2.find({"$and":[{"timestamp_ms":{"$gt":"1542322027000"}},{"timestamp_ms":{"$lt":"1542322637000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery13 =db.twitter_search3.find({"$and":[{"timestamp_ms":{"$lt":"1542323257000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery14=db.twitter_search3.find({"$and":[{"timestamp_ms":{"$gt":"1542323257000"}},{"timestamp_ms":{"$lt":"1542323857000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery15=db.twitter_search3.find({"$and":[{"timestamp_ms":{"$gt":"1542323857000"}},{"timestamp_ms":{"$lt":"1542324457000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery16 =db.twitter_search3.find({"$and":[{"timestamp_ms":{"$gt":"1542324457000"}},{"timestamp_ms":{"$lt":"1542325057000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery17 =db.twitter_search3.find({"$and":[{"timestamp_ms":{"$gt":"1542325057000"}},{"timestamp_ms":{"$lt":"1542325657000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery18 =db.twitter_search3.find({"$and":[{"timestamp_ms":{"$gt":"1542325657000"}},{"timestamp_ms":{"$lt":"1542326258000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery19 =db.twitter_search4.find({"$and":[{"timestamp_ms":{"$lt":"1542323257000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery20=db.twitter_search4.find({"$and":[{"timestamp_ms":{"$gt":"1542323257000"}},{"timestamp_ms":{"$lt":"1542323857000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery21=db.twitter_search4.find({"$and":[{"timestamp_ms":{"$gt":"1542323857000"}},{"timestamp_ms":{"$lt":"1542324457000"}},{"is_quote_status":{"$eq":True}}]}).count()
qquery22 =db.twitter_search4.find({"$and":[{"timestamp_ms":{"$gt":"1542324457000"}},{"timestamp_ms":{"$lt":"1542325057000"}},{"is_quote_status":{"$exists":True}}]}).count()
qquery23 =db.twitter_search4.find({"$and":[{"timestamp_ms":{"$gt":"1542325057000"}},{"timestamp_ms":{"$lt":"1542325657000"}},{"is_quote_status":{"$exists":True}}]}).count()
qquery24 =db.twitter_search4.find({"$and":[{"timestamp_ms":{"$gt":"1542325657000"}},{"timestamp_ms":{"$lt":"1542326258000"}},{"is_quote_status":{"$eq":True}}]}).count()
#adding the count of quotes collected from 0 to 60 minutes
x3 = np.array([qquery1+qquery7+qquery13+qquery19,qquery2+qquery8+qquery14+qquery20,qquery3+qquery9+qquery15+qquery21,qquery4+qquery10+qquery16+qquery22,qquery5+qquery11+qquery17+qquery23,qquery6+qquery12+qquery18+qquery24])
y3 = np.array(["10","20","30","40","50","60"])
#Plotting the total amount of quotes collected vs time intervals of 10 minutes
fig=plt.figure()
ax=fig.add_subplot(1,1,1)
ax.set_title("10 minutes interval graph for the number of quotes collected")
ax.set_xlabel("Time in minutes")
ax.set_ylabel("Number of quotes collected")
plt.plot(y3,x3,marker="o",markersize=10)
plt.show()
#Finding Redundant data
x0 = db.twitter_redundant.aggregate([{"$group": {"_id": {"id": "$id" },"dups": { "$addToSet": "$_id" },"count": { "$sum": 1 }}}])
print(x0)
| 91.502857
| 224
| 0.692125
| 2,026
| 16,013
| 5.312438
| 0.107108
| 0.123664
| 0.079718
| 0.105361
| 0.803215
| 0.795224
| 0.749698
| 0.722382
| 0.68912
| 0.656601
| 0
| 0.132733
| 0.050084
| 16,013
| 174
| 225
| 92.028736
| 0.574847
| 0.065384
| 0
| 0.14966
| 0
| 0.006803
| 0.426
| 0.003654
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.027211
| 0
| 0.027211
| 0.197279
| 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
|
3c0385ad0fe5050262a0c97f2dede74e076de6db
| 333
|
py
|
Python
|
skeleton/server/main/views.py
|
houhouhouzzz/docker-test
|
cf0ebc733fb06fe78474042a9dc7f81e6fd7ad7a
|
[
"MIT"
] | 30
|
2018-05-23T16:58:12.000Z
|
2021-10-18T21:25:01.000Z
|
skeleton/server/main/views.py
|
houhouhouzzz/docker-test
|
cf0ebc733fb06fe78474042a9dc7f81e6fd7ad7a
|
[
"MIT"
] | 2
|
2019-12-01T13:32:50.000Z
|
2019-12-01T13:32:53.000Z
|
skeleton/server/main/views.py
|
houhouhouzzz/docker-test
|
cf0ebc733fb06fe78474042a9dc7f81e6fd7ad7a
|
[
"MIT"
] | 136
|
2018-02-04T14:13:33.000Z
|
2022-03-09T08:26:07.000Z
|
# Copyright 2016 Cisco Systems, Inc.
# All rights reserved.
from flask import render_template, Blueprint
main_blueprint = Blueprint('main', __name__,)
@main_blueprint.route('/')
def home():
return render_template('main/home.html')
@main_blueprint.route("/about/")
def about():
return render_template("main/about.html")
| 19.588235
| 45
| 0.732733
| 42
| 333
| 5.571429
| 0.52381
| 0.179487
| 0.153846
| 0.205128
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013793
| 0.129129
| 333
| 16
| 46
| 20.8125
| 0.793103
| 0.165165
| 0
| 0
| 0
| 0
| 0.149091
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.125
| 0.25
| 0.625
| 0.5
| 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
| 0
| 0
| 0
| 1
| 1
| 1
|
0
| 5
|
3c10b436c32ea6d8d7042bd1f138b5328cc2199c
| 120
|
py
|
Python
|
companies/admin.py
|
MattYu/ConcordiaAce
|
35eff7614652eb548e532dcf00e3a7296855285c
|
[
"MIT"
] | 1
|
2021-06-14T06:54:16.000Z
|
2021-06-14T06:54:16.000Z
|
companies/admin.py
|
MattYu/ConcordiaAce
|
35eff7614652eb548e532dcf00e3a7296855285c
|
[
"MIT"
] | 34
|
2020-04-05T01:14:31.000Z
|
2022-03-12T00:23:02.000Z
|
dockerizing-django/web/companies/admin.py
|
MattYu/ConcordiaAce
|
35eff7614652eb548e532dcf00e3a7296855285c
|
[
"MIT"
] | 1
|
2020-10-29T03:09:08.000Z
|
2020-10-29T03:09:08.000Z
|
from django.contrib import admin
from .models import Company
# Register your models here.
admin.site.register(Company)
| 20
| 32
| 0.808333
| 17
| 120
| 5.705882
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 120
| 6
| 33
| 20
| 0.92381
| 0.216667
| 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
|
3c19d38e918ee4a24a319dfc9845fa698d00c530
| 154
|
py
|
Python
|
fluidlab/daq/__init__.py
|
fluiddyn/fluidlab
|
77e7ae3129788089814e38eba93802026a07fcf6
|
[
"CECILL-B"
] | 4
|
2020-01-19T04:12:12.000Z
|
2021-11-09T08:30:25.000Z
|
fluidlab/daq/__init__.py
|
fluiddyn/fluidlab
|
77e7ae3129788089814e38eba93802026a07fcf6
|
[
"CECILL-B"
] | null | null | null |
fluidlab/daq/__init__.py
|
fluiddyn/fluidlab
|
77e7ae3129788089814e38eba93802026a07fcf6
|
[
"CECILL-B"
] | null | null | null |
"""
Data acquisition boards
=======================
.. todo:: Data acquisition board drivers.
Provides:
.. autosummary::
:toctree:
daqmx
"""
| 9.058824
| 41
| 0.538961
| 12
| 154
| 6.916667
| 0.833333
| 0.361446
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.194805
| 154
| 16
| 42
| 9.625
| 0.669355
| 0.928571
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0.0625
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
3c60e66f8dc2a6378d9e412c0f04d86136c5193e
| 22
|
py
|
Python
|
admin_script/types/__init__.py
|
Admin-Script/AdminScript.py
|
09411e9921235117690cc25f8248a01a5b993a69
|
[
"MIT"
] | 1
|
2021-12-09T15:24:03.000Z
|
2021-12-09T15:24:03.000Z
|
admin_script/types/__init__.py
|
Admin-Script/AdminScript.py
|
09411e9921235117690cc25f8248a01a5b993a69
|
[
"MIT"
] | null | null | null |
admin_script/types/__init__.py
|
Admin-Script/AdminScript.py
|
09411e9921235117690cc25f8248a01a5b993a69
|
[
"MIT"
] | null | null | null |
from .time import time
| 22
| 22
| 0.818182
| 4
| 22
| 4.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136364
| 22
| 1
| 22
| 22
| 0.947368
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
b1c4fc33707f1db3727fb222b68da2ec24e5f131
| 114
|
py
|
Python
|
ui/menu/__init__.py
|
andrewwjensen/class_invoices
|
9d2b26ad00c0161ab67ff647ae4545a114066c9e
|
[
"CC-BY-3.0"
] | null | null | null |
ui/menu/__init__.py
|
andrewwjensen/class_invoices
|
9d2b26ad00c0161ab67ff647ae4545a114066c9e
|
[
"CC-BY-3.0"
] | null | null | null |
ui/menu/__init__.py
|
andrewwjensen/class_invoices
|
9d2b26ad00c0161ab67ff647ae4545a114066c9e
|
[
"CC-BY-3.0"
] | null | null | null |
from ui.menu.EditMenu import EditMenu
from ui.menu.FileMenu import FileMenu
from ui.menu.HelpMenu import HelpMenu
| 28.5
| 37
| 0.842105
| 18
| 114
| 5.333333
| 0.388889
| 0.1875
| 0.3125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 114
| 3
| 38
| 38
| 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 | 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
|
b1cc53c89f2abd0ecda18da8d010cd14601554bc
| 218
|
py
|
Python
|
RadioBox/RadioBox/main.py
|
pr3sto/RadioBox
|
bd3af9f250dc49a0872447b57493c69ba6dad09c
|
[
"MIT"
] | null | null | null |
RadioBox/RadioBox/main.py
|
pr3sto/RadioBox
|
bd3af9f250dc49a0872447b57493c69ba6dad09c
|
[
"MIT"
] | null | null | null |
RadioBox/RadioBox/main.py
|
pr3sto/RadioBox
|
bd3af9f250dc49a0872447b57493c69ba6dad09c
|
[
"MIT"
] | null | null | null |
import kivy
kivy.require('1.10.0')
from radiobox import HoverBehavior
kivy.factory.Factory.register('HoverBehavior', HoverBehavior)
from radiobox import RadioBoxApp
if __name__ == "__main__":
RadioBoxApp().run()
| 21.8
| 61
| 0.775229
| 26
| 218
| 6.192308
| 0.615385
| 0.149068
| 0.223602
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020619
| 0.110092
| 218
| 9
| 62
| 24.222222
| 0.809278
| 0
| 0
| 0
| 0
| 0
| 0.123853
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.428571
| 0
| 0.428571
| 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
|
b1d2f0c092ba0c73103cb27981d2b79306d31865
| 197
|
py
|
Python
|
user_system/models.py
|
mriduldhall/DroneNav
|
724718b96e37510c1d1bab942f05f46eec099175
|
[
"MIT"
] | null | null | null |
user_system/models.py
|
mriduldhall/DroneNav
|
724718b96e37510c1d1bab942f05f46eec099175
|
[
"MIT"
] | null | null | null |
user_system/models.py
|
mriduldhall/DroneNav
|
724718b96e37510c1d1bab942f05f46eec099175
|
[
"MIT"
] | null | null | null |
from django.db import models
# Create your models here.
class users(models.Model):
id = models.AutoField(primary_key=True)
username = models.TextField()
password = models.TextField()
| 21.888889
| 43
| 0.725888
| 25
| 197
| 5.68
| 0.76
| 0.211268
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172589
| 197
| 8
| 44
| 24.625
| 0.871166
| 0.121827
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.2
| 0.2
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
b1ec0b0fdc372d1a10bba0dff828ae386d3109d9
| 174
|
py
|
Python
|
tasks/__init__.py
|
atonkyra/liscain-ng
|
59ea11564e4ed616ec012452dec564e670f1fb46
|
[
"MIT"
] | null | null | null |
tasks/__init__.py
|
atonkyra/liscain-ng
|
59ea11564e4ed616ec012452dec564e670f1fb46
|
[
"MIT"
] | 1
|
2020-02-10T21:43:35.000Z
|
2020-03-21T16:09:19.000Z
|
tasks/__init__.py
|
atonkyra/liscain-ng
|
59ea11564e4ed616ec012452dec564e670f1fb46
|
[
"MIT"
] | null | null | null |
from tasks.devicetask import DeviceTask
from tasks.deviceinitializationtask import DeviceInitializationTask
from tasks.deviceconfigurationtask import DeviceConfigurationTask
| 43.5
| 67
| 0.913793
| 15
| 174
| 10.6
| 0.4
| 0.169811
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068966
| 174
| 3
| 68
| 58
| 0.981481
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
5914edfc5296b842054935b3b4f451650c2550f5
| 52
|
py
|
Python
|
piwifi/__init__.py
|
Robokishan/piwifi
|
3ec0555bf7e3269ee44f63ebfa91b8d499e9c21a
|
[
"MIT"
] | 3
|
2020-12-06T12:27:18.000Z
|
2022-01-24T00:29:19.000Z
|
piwifi/__init__.py
|
Robokishan/piwifi
|
3ec0555bf7e3269ee44f63ebfa91b8d499e9c21a
|
[
"MIT"
] | 1
|
2020-04-27T23:03:27.000Z
|
2021-02-18T12:46:12.000Z
|
piwifi/__init__.py
|
Robokishan/piwifi
|
3ec0555bf7e3269ee44f63ebfa91b8d499e9c21a
|
[
"MIT"
] | 3
|
2021-04-03T14:09:39.000Z
|
2021-10-31T16:48:41.000Z
|
from .piwifi import PiCommander, Scanner, WpaManager
| 52
| 52
| 0.846154
| 6
| 52
| 7.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096154
| 52
| 1
| 52
| 52
| 0.93617
| 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
|
3ca506ed0ec4301ac68ef54eab2f61ee7cfa8af4
| 55
|
py
|
Python
|
tests/roots/test-base/target/__init__.py
|
lilyminium/autodoc_pydantic
|
c9bc8430e5341863370f27b7d6cb1a2568e14b04
|
[
"MIT"
] | 46
|
2021-04-03T20:54:14.000Z
|
2022-03-21T22:56:27.000Z
|
tests/roots/test-base/target/__init__.py
|
lilyminium/autodoc_pydantic
|
c9bc8430e5341863370f27b7d6cb1a2568e14b04
|
[
"MIT"
] | 74
|
2021-04-05T22:18:02.000Z
|
2022-03-31T22:59:13.000Z
|
tests/roots/test-base/target/__init__.py
|
lilyminium/autodoc_pydantic
|
c9bc8430e5341863370f27b7d6cb1a2568e14b04
|
[
"MIT"
] | 6
|
2021-05-04T12:03:06.000Z
|
2022-03-30T13:25:51.000Z
|
from target.example_autosummary import AutoSummaryModel
| 55
| 55
| 0.927273
| 6
| 55
| 8.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054545
| 55
| 1
| 55
| 55
| 0.961538
| 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
|
3ccb10d6e83efd13078611677ae88632537b2768
| 84
|
py
|
Python
|
programming-language/cases/rust/examples/python-pickle/test_pickle.py
|
wdv4758h/notes
|
60fa483961245ec5bb264d3f28a885fb82a1c25e
|
[
"Unlicense"
] | 136
|
2015-06-15T13:26:40.000Z
|
2022-03-03T07:47:31.000Z
|
programming-language/cases/rust/examples/python-pickle/test_pickle.py
|
wdv4758h/notes
|
60fa483961245ec5bb264d3f28a885fb82a1c25e
|
[
"Unlicense"
] | 82
|
2017-01-06T06:32:55.000Z
|
2020-09-03T03:34:24.000Z
|
programming-language/cases/rust/examples/python-pickle/test_pickle.py
|
wdv4758h/notes
|
60fa483961245ec5bb264d3f28a885fb82a1c25e
|
[
"Unlicense"
] | 18
|
2015-12-04T04:02:44.000Z
|
2022-02-24T03:48:57.000Z
|
#!/usr/bin/env python
import pickle
print(pickle.load(open("tmp.pickle", "rb")))
| 12
| 44
| 0.678571
| 13
| 84
| 4.384615
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 84
| 6
| 45
| 14
| 0.76
| 0.238095
| 0
| 0
| 0
| 0
| 0.190476
| 0
| 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
|
3ce65fda0b1a3ae37844d05053271c89c9324627
| 31
|
py
|
Python
|
hoge/hoge/models/__init__.py
|
tyshgc/study_django
|
32d3b87daab2e50df875be65a03d36e26e222e71
|
[
"MIT"
] | null | null | null |
hoge/hoge/models/__init__.py
|
tyshgc/study_django
|
32d3b87daab2e50df875be65a03d36e26e222e71
|
[
"MIT"
] | null | null | null |
hoge/hoge/models/__init__.py
|
tyshgc/study_django
|
32d3b87daab2e50df875be65a03d36e26e222e71
|
[
"MIT"
] | null | null | null |
from hoge.models.foo import Foo
| 31
| 31
| 0.83871
| 6
| 31
| 4.333333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 31
| 1
| 31
| 31
| 0.928571
| 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
|
598211457b10012a326023f819da13545685d7a0
| 98
|
py
|
Python
|
libconform/__init__.py
|
jofas/conform
|
9f8dd3c7c607269529bf4d62a729ed2ca1880baa
|
[
"MIT"
] | 5
|
2020-02-10T13:30:06.000Z
|
2021-12-22T16:08:02.000Z
|
libconform/__init__.py
|
jofas/conform
|
9f8dd3c7c607269529bf4d62a729ed2ca1880baa
|
[
"MIT"
] | 1
|
2019-07-04T14:12:13.000Z
|
2020-06-16T16:05:02.000Z
|
libconform/__init__.py
|
jofas/conform
|
9f8dd3c7c607269529bf4d62a729ed2ca1880baa
|
[
"MIT"
] | null | null | null |
from .conform import CP, ICP
from .rrcm import RRCM
from .venn import Venn
from .meta import Meta
| 19.6
| 28
| 0.77551
| 17
| 98
| 4.470588
| 0.470588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.173469
| 98
| 4
| 29
| 24.5
| 0.938272
| 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
|
5999965739f5a59ee9556bafa7080e929228f704
| 93
|
py
|
Python
|
enthought/traits/has_dynamic_views.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 3
|
2016-12-09T06:05:18.000Z
|
2018-03-01T13:00:29.000Z
|
enthought/traits/has_dynamic_views.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 1
|
2020-12-02T00:51:32.000Z
|
2020-12-02T08:48:55.000Z
|
enthought/traits/has_dynamic_views.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | null | null | null |
# proxy module
from __future__ import absolute_import
from traits.has_dynamic_views import *
| 23.25
| 38
| 0.849462
| 13
| 93
| 5.538462
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.11828
| 93
| 3
| 39
| 31
| 0.878049
| 0.129032
| 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
|
59e1b5995691d1d8c44336315ce581680632070d
| 144
|
py
|
Python
|
src/passari/logger.py
|
finnish-heritage-agency/passari
|
17af68b07435a40eaabaacf8c34e54517edc9153
|
[
"MIT"
] | 1
|
2020-06-17T11:05:00.000Z
|
2020-06-17T11:05:00.000Z
|
src/passari/logger.py
|
finnish-heritage-agency/passari
|
17af68b07435a40eaabaacf8c34e54517edc9153
|
[
"MIT"
] | 2
|
2021-03-31T19:50:58.000Z
|
2021-05-17T20:52:03.000Z
|
src/passari/logger.py
|
finnish-heritage-agency/passari
|
17af68b07435a40eaabaacf8c34e54517edc9153
|
[
"MIT"
] | null | null | null |
import logging
from passari.config import CONFIG
logging.basicConfig(level=CONFIG["logging"]["level"])
logger = logging.getLogger("passari")
| 18
| 53
| 0.777778
| 17
| 144
| 6.588235
| 0.529412
| 0.232143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090278
| 144
| 7
| 54
| 20.571429
| 0.854962
| 0
| 0
| 0
| 0
| 0
| 0.131944
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.5
| 0.5
| 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
| 0
| 1
| 1
| 0
| 0
| 0
|
0
| 5
|
ab73e9beb4a1f33f73f224a7f88fc9d47438a668
| 52
|
py
|
Python
|
src/sensai/data_transformation/__init__.py
|
schroedk/sensAI
|
a2d6d7c6ab7bed9ccd5eac216dd988c49d69aec7
|
[
"MIT"
] | 10
|
2020-02-19T09:16:54.000Z
|
2022-02-04T16:19:33.000Z
|
src/sensai/data_transformation/__init__.py
|
schroedk/sensAI
|
a2d6d7c6ab7bed9ccd5eac216dd988c49d69aec7
|
[
"MIT"
] | 47
|
2020-03-11T16:26:51.000Z
|
2022-02-04T15:29:40.000Z
|
src/sensai/data_transformation/__init__.py
|
schroedk/sensAI
|
a2d6d7c6ab7bed9ccd5eac216dd988c49d69aec7
|
[
"MIT"
] | 5
|
2020-03-12T21:33:22.000Z
|
2020-12-21T14:43:04.000Z
|
from .dft import *
from . import sklearn_transformer
| 26
| 33
| 0.807692
| 7
| 52
| 5.857143
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134615
| 52
| 2
| 33
| 26
| 0.911111
| 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
|
abce14915bfe9091f9a74784bbd8147642ecf018
| 169
|
py
|
Python
|
openstack/cmd.py
|
Anydea/RePo
|
7d57ea7d227272700a6d2bd434b281d1c506d1d0
|
[
"Apache-2.0"
] | null | null | null |
openstack/cmd.py
|
Anydea/RePo
|
7d57ea7d227272700a6d2bd434b281d1c506d1d0
|
[
"Apache-2.0"
] | null | null | null |
openstack/cmd.py
|
Anydea/RePo
|
7d57ea7d227272700a6d2bd434b281d1c506d1d0
|
[
"Apache-2.0"
] | null | null | null |
nova keypair-add heat_key > heat_key.priv
heat stack-create teststack -f base.yaml -e env.yaml
heat stack-show teststack
heat stack-delete teststack
heat stack-list
| 18.777778
| 53
| 0.792899
| 29
| 169
| 4.551724
| 0.586207
| 0.272727
| 0.272727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142012
| 169
| 9
| 54
| 18.777778
| 0.910345
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
abe6cf3b8bd3e3ebce755288bb115d5686a8501d
| 2,217
|
py
|
Python
|
cltk/corpus/greek/tlg/index_lists.py
|
michiboo/cltk
|
f4ab93b836a995f88a007ed78246ea6db0bef377
|
[
"MIT"
] | 2
|
2018-11-08T12:48:27.000Z
|
2018-11-08T17:01:55.000Z
|
cltk/corpus/greek/tlg/index_lists.py
|
michiboo/cltk
|
f4ab93b836a995f88a007ed78246ea6db0bef377
|
[
"MIT"
] | 4
|
2021-02-02T23:07:04.000Z
|
2021-12-13T20:48:54.000Z
|
cltk/corpus/greek/tlg/index_lists.py
|
michiboo/cltk
|
f4ab93b836a995f88a007ed78246ea6db0bef377
|
[
"MIT"
] | 1
|
2019-06-16T06:41:47.000Z
|
2019-06-16T06:41:47.000Z
|
INDEX_LIST = {'Miscellaneous indices (works on CD)': {'AWNAMSCD.BIN': 'Names of authors and works', 'BIBINDCD.BIN': 'Index to author/work entries in bibliographical form of Canon', 'AUTHWKCD.BIN': 'Comprehensive list of authors and works on CD', 'DATINDCD.BIN': 'Index to author/work entries in database form of Canon', 'INDXWKCD.BIN': 'Index of authors and works on CD'}, 'Miscellaneous indices (works in canon)': {'DATINDCN.BIN': 'Index to author/work entries in database form of Canon', 'AUTHWKCN.BIN': 'Comprehensive list of authors and works in Canon', 'BIBINDCN.BIN': 'Index to author/work entries in bibliographical form of Canon', 'AWNAMSCN.BIN': 'Names of authors and works'}, 'Lists pertaining to all works in Canon (by TLG number)': {'LIST4DAT.BIN': 'Chronological classifications of authors', 'LIST3CLX.BIN': 'Literary classifications of works (with x-refs)', 'LIST3DAT.BIN': 'Chronological classifications of authors', 'LIST4EPI.BIN': 'Classifications of authors by epithet or genre', 'LIST4CLA.BIN': 'Literary classifications of works', 'LIST4CLX.BIN': 'Literary classifications of works (with x-refs)', 'LIST4GEO.BIN': 'Geographical classifications of authors (provisional)', 'LIST3FEM.BIN': 'Female writers', 'LIST3EPI.BIN': 'Classifications of authors by epithet or genre', 'LIST3GEO.BIN': 'Geographical classifications of authors (provisional)', 'LIST3CLA.BIN': 'Literary classifications of works', 'LIST4FEM.BIN': 'Female writers'}, 'Lists pertaining to all works in Canon (chronological)': {'LIST1CLX.BIN': 'Literary classifications of works (with x-refs)', 'LIST1CLA.BIN': 'Literary classifications of works', 'LIST1FEM.BIN': 'Female writers', 'LIST2CLX.BIN': 'Literary classifications of works (with x-refs)', 'LIST1DAT.BIN': 'Chronological classifications of authors', 'LIST2DAT.BIN': 'Chronological classifications of authors', 'LIST1GEO.BIN': 'Geographical classifications of authors (provisional)', 'LIST2EPI.BIN': 'Classifications of authors by epithet or genre', 'LIST2GEO.BIN': 'Geographical classifications of authors (provisional)', 'LIST2CLA.BIN': 'Literary classifications of works', 'LIST1EPI.BIN': 'Classifications of authors by epithet or genre', 'LIST2FEM.BIN': 'Female writers'}}
| 2,217
| 2,217
| 0.76184
| 285
| 2,217
| 5.922807
| 0.259649
| 0.201422
| 0.170616
| 0.132701
| 0.741114
| 0.568128
| 0.405213
| 0.32346
| 0.122038
| 0.122038
| 0
| 0.012158
| 0.109608
| 2,217
| 1
| 2,217
| 2,217
| 0.842958
| 0
| 0
| 0
| 0
| 0
| 0.863841
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
abf1e8602f8f701579385bacd2654a4da645b838
| 101
|
py
|
Python
|
djangocms_moderation/exceptions.py
|
adam-murray/djangocms-moderation
|
1fd928e806a3dd0bef62c0652408e8526838db9e
|
[
"BSD-3-Clause"
] | 2
|
2019-12-17T16:20:58.000Z
|
2020-05-12T02:34:55.000Z
|
djangocms_moderation/exceptions.py
|
adam-murray/djangocms-moderation
|
1fd928e806a3dd0bef62c0652408e8526838db9e
|
[
"BSD-3-Clause"
] | 15
|
2019-05-10T15:34:04.000Z
|
2020-04-06T06:44:42.000Z
|
djangocms_moderation/exceptions.py
|
adam-murray/djangocms-moderation
|
1fd928e806a3dd0bef62c0652408e8526838db9e
|
[
"BSD-3-Clause"
] | 5
|
2019-06-26T19:22:50.000Z
|
2020-10-09T16:18:36.000Z
|
class ObjectAlreadyInCollection(Exception):
pass
class CollectionIsLocked(Exception):
pass
| 14.428571
| 43
| 0.782178
| 8
| 101
| 9.875
| 0.625
| 0.329114
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.158416
| 101
| 6
| 44
| 16.833333
| 0.929412
| 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
|
e613217ab0aaf368f5db8c3070e8d80debb11efa
| 186
|
py
|
Python
|
newspaper/newspaper/news/urls.py
|
fernando-cardenas/newspaper
|
5cd636c37de102cf0e01ba91771521d9c56bee98
|
[
"Apache-2.0"
] | null | null | null |
newspaper/newspaper/news/urls.py
|
fernando-cardenas/newspaper
|
5cd636c37de102cf0e01ba91771521d9c56bee98
|
[
"Apache-2.0"
] | null | null | null |
newspaper/newspaper/news/urls.py
|
fernando-cardenas/newspaper
|
5cd636c37de102cf0e01ba91771521d9c56bee98
|
[
"Apache-2.0"
] | null | null | null |
from django.conf.urls import url
from newspaper.news.views import *
urlpatterns = [
url(r'^$', news_list, name='news_list'),
url(r'^news_list/', news_list, name='news_list')
]
| 20.666667
| 52
| 0.682796
| 28
| 186
| 4.357143
| 0.464286
| 0.327869
| 0.131148
| 0.196721
| 0.327869
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.150538
| 186
| 8
| 53
| 23.25
| 0.772152
| 0
| 0
| 0
| 0
| 0
| 0.167568
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 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
|
e62a52495987e36104196f3cdaea5351fc9fd731
| 239
|
py
|
Python
|
app/main/views.py
|
jsanz/flickr2cdb
|
0869fa7e297668da2af53bbb48a1574ed37ff9a0
|
[
"MIT"
] | null | null | null |
app/main/views.py
|
jsanz/flickr2cdb
|
0869fa7e297668da2af53bbb48a1574ed37ff9a0
|
[
"MIT"
] | null | null | null |
app/main/views.py
|
jsanz/flickr2cdb
|
0869fa7e297668da2af53bbb48a1574ed37ff9a0
|
[
"MIT"
] | null | null | null |
from flask import render_template, redirect, url_for, abort, flash, request,\
current_app, make_response
from . import main
@main.route('/', methods=['GET', 'POST'])
def index():
return render_template('index.html', test='a test')
| 34.142857
| 77
| 0.711297
| 33
| 239
| 5
| 0.787879
| 0.169697
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133891
| 239
| 7
| 78
| 34.142857
| 0.797101
| 0
| 0
| 0
| 0
| 0
| 0.1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| true
| 0
| 0.333333
| 0.166667
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 5
|
e6326e96fce1882caedb25b6e1f505bdd75f59c9
| 154
|
py
|
Python
|
pyluos/services/pipe.py
|
BHAY-3DiTex/Pyluos
|
c3285e5378860679236cb6b97981d66a24aeefa8
|
[
"MIT"
] | 16
|
2020-03-22T11:21:17.000Z
|
2022-01-04T08:45:20.000Z
|
pyluos/services/pipe.py
|
mariebidouille/Pyluos_Bidouille
|
4e25172a733bfde44b8a15eceddb1a3ab82929a1
|
[
"MIT"
] | 32
|
2020-03-20T17:06:55.000Z
|
2022-02-28T12:59:42.000Z
|
pyluos/services/pipe.py
|
Luos-io/pyluos
|
ff90e129159ae0569c0b82a49ee5c0de9914441f
|
[
"MIT"
] | 9
|
2020-06-07T09:52:13.000Z
|
2021-12-07T00:41:29.000Z
|
from .service import Service
class Pipe(Service):
def __init__(self, id, alias, device):
Service.__init__(self, 'Pipe', id, alias, device)
| 19.25
| 57
| 0.675325
| 20
| 154
| 4.8
| 0.55
| 0.166667
| 0.270833
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.201299
| 154
| 7
| 58
| 22
| 0.780488
| 0
| 0
| 0
| 0
| 0
| 0.025974
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
e64d05a0126248bb0cf72d67d407d01744c1bc13
| 203
|
py
|
Python
|
tests/testsender.py
|
MichaelDoyle/riemann-sumd
|
06f7599d4f93e16e0f37de29e3f9afad45c7f92d
|
[
"MIT"
] | 31
|
2015-02-04T07:17:24.000Z
|
2021-08-20T21:20:58.000Z
|
tests/testsender.py
|
MichaelDoyle/riemann-sumd
|
06f7599d4f93e16e0f37de29e3f9afad45c7f92d
|
[
"MIT"
] | 17
|
2015-03-08T14:33:14.000Z
|
2018-10-25T21:02:47.000Z
|
tests/testsender.py
|
MichaelDoyle/riemann-sumd
|
06f7599d4f93e16e0f37de29e3f9afad45c7f92d
|
[
"MIT"
] | 5
|
2015-06-29T11:06:47.000Z
|
2018-10-27T05:46:25.000Z
|
import sys
sys.path.append("lib")
import unittest
class TestSender(unittest.TestCase):
def setUp(self):
pass
def test_start(self):
pass
def test_send(self):
pass
| 12.6875
| 36
| 0.625616
| 26
| 203
| 4.807692
| 0.615385
| 0.192
| 0.176
| 0.24
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.280788
| 203
| 15
| 37
| 13.533333
| 0.856164
| 0
| 0
| 0.3
| 0
| 0
| 0.014778
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.3
| false
| 0.3
| 0.2
| 0
| 0.6
| 0
| 1
| 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
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
e657f206045c39dc11c880dcf7d76f3397cd7005
| 9,038
|
py
|
Python
|
build_tools/benchmarks/comparisons/mobilebert_fp32_commands.py
|
nithinsubbiah/iree
|
719856b9f45a5e3685a37bd87db62081a53cb4f9
|
[
"Apache-2.0"
] | null | null | null |
build_tools/benchmarks/comparisons/mobilebert_fp32_commands.py
|
nithinsubbiah/iree
|
719856b9f45a5e3685a37bd87db62081a53cb4f9
|
[
"Apache-2.0"
] | null | null | null |
build_tools/benchmarks/comparisons/mobilebert_fp32_commands.py
|
nithinsubbiah/iree
|
719856b9f45a5e3685a37bd87db62081a53cb4f9
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2022 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
import os
from typing import Optional
from common.benchmark_command import *
from common.benchmark_command_factory import BenchmarkCommandFactory
_DEFAULT_NUM_BENCHMARK_RUNS = 50
_DEFAULT_NUM_THREADS = 1
class TfliteMobilebertFP32(TFLiteBenchmarkCommand):
""" Specializes the benchmark command to use TFLite. """
def __init__(self,
benchmark_binary: str,
model_name: str,
model_path: str,
test_data_dir: str,
driver: str = "cpu",
num_threads: int = _DEFAULT_NUM_THREADS,
num_runs: int = _DEFAULT_NUM_BENCHMARK_RUNS,
taskset: Optional[str] = None):
super().__init__(benchmark_binary,
model_name,
model_path,
num_threads,
num_runs,
taskset=taskset)
self.driver = driver
self.args.append("--input_layer=input_ids,input_mask,segment_ids")
self.args.append("--input_layer_value_files=input_ids:" + test_data_dir +
"/input_word_id.bin,input_mask:" + test_data_dir +
"/input_mask.bin,segment_ids:" + test_data_dir +
"/input_type_id.bin")
self.args.append("--input_layer_shape=1,384:1,384:1,384")
class IreeMobilebertFP32(IreeBenchmarkCommand):
""" Specializes the benchmark command to use IREE. """
def __init__(self,
benchmark_binary: str,
model_name: str,
model_path: str,
driver: str = "local-task",
num_threads: int = _DEFAULT_NUM_THREADS,
num_runs: int = _DEFAULT_NUM_BENCHMARK_RUNS,
taskset: Optional[str] = None):
super().__init__(benchmark_binary,
model_name,
model_path,
num_threads,
num_runs,
taskset=taskset)
self.driver = driver
self.args.append("--entry_function=main")
self.args.append(
'--function_input="1x384xi32=101 2129 2116 19576 2015 2106 3854 4679 2486 1029 102 1996 14169 2165 2019 2220 2599 1999 3565 4605 2753 1998 2196 11145 1012 8446 2001 3132 2011 7573 1005 1055 3639 1010 2029 14159 2032 2698 2335 1998 3140 2032 2046 2093 20991 2015 1010 2164 1037 19576 2029 2027 6757 2005 1037 7921 1012 7573 15674 3854 4679 2001 2315 3565 4605 12041 1010 3405 2274 3948 10455 1010 1016 13714 14918 1010 1998 2048 3140 19576 2015 1012 102 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"'
)
self.args.append(
'--function_input="1x384xi32=0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"'
)
self.args.append(
'--function_input="1x384xi32=1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"'
)
class MobilebertFP32CommandFactory(BenchmarkCommandFactory):
""" Generates `BenchmarkCommand` objects specific to running MobileBert."""
def __init__(self, base_dir: str):
self._model_name = "mobilebert_float_384_gpu"
self._base_dir = base_dir
self._iree_benchmark_binary_path = os.path.join(base_dir,
"iree-benchmark-module")
self._tflite_benchmark_binary_path = os.path.join(base_dir,
"benchmark_model")
self._tflite_model_path = os.path.join(self._base_dir, "models", "tflite",
self._model_name + ".tflite")
self._tflite_test_data_dir = os.path.join(self._base_dir, "test_data",
"squad")
def generate_benchmark_commands(self, device: str,
driver: str) -> list[BenchmarkCommand]:
if device == "desktop" and driver == "cpu":
return self._generate_cpu(device)
elif device == "desktop" and driver == "gpu":
return self._generate_gpu("cuda")
elif device == "mobile" and driver == "cpu":
return self._generate_cpu(device)
elif device == "mobile" and driver == "gpu":
return self._generate_gpu("vulkan")
else:
print("Warning! Not a valid configuration.")
return []
def _generate_cpu(self, device: str):
# Generate TFLite benchmarks.
tflite_mobilebert = TfliteMobilebertFP32(self._tflite_benchmark_binary_path,
self._model_name,
self._tflite_model_path,
self._tflite_test_data_dir,
driver="cpu")
# Generate IREE benchmarks.
driver = "local-task"
iree_model_path = os.path.join(self._base_dir, "models", "iree", driver,
self._model_name + ".vmfb")
iree_mobilebert = IreeMobilebertFP32(self._iree_benchmark_binary_path,
self._model_name,
iree_model_path,
driver=driver)
commands = [tflite_mobilebert, iree_mobilebert]
# Test mmt4d only on mobile.
if device == "mobile":
model_mmt4d_name = self._model_name + "_mmt4d"
iree_mmt4d_model_path = os.path.join(self._base_dir, "models", "iree",
driver, model_mmt4d_name + ".vmfb")
iree_mmt4d_mobilebert = IreeMobilebertFP32(
self._iree_benchmark_binary_path,
model_mmt4d_name,
iree_mmt4d_model_path,
driver=driver)
commands.append(iree_mmt4d_mobilebert)
return commands
def _generate_gpu(self, driver: str):
tflite_mobilebert = TfliteMobilebertFP32(self._tflite_benchmark_binary_path,
self._model_name,
self._tflite_model_path,
self._tflite_test_data_dir,
driver="gpu")
tflite_mobilebert.args.append("--gpu_precision_loss_allowed=false")
tflite_mobilebert_fp16 = TfliteMobilebertFP32(
self._tflite_benchmark_binary_path,
self._model_name + "_fp16",
self._tflite_model_path,
self._tflite_test_data_dir,
driver="gpu")
tflite_mobilebert_fp16.args.append("--gpu_precision_loss_allowed=true")
iree_model_path = os.path.join(self._base_dir, "models", "iree", driver,
self._model_name + ".vmfb")
iree_mobilebert = IreeMobilebertFP32(self._iree_benchmark_binary_path,
self._model_name,
iree_model_path,
driver=driver)
return [tflite_mobilebert, tflite_mobilebert_fp16, iree_mobilebert]
| 57.202532
| 1,064
| 0.568378
| 1,803
| 9,038
| 2.707709
| 0.105935
| 0.372798
| 0.556739
| 0.739041
| 0.63601
| 0.596272
| 0.556739
| 0.531954
| 0.517206
| 0.497132
| 0
| 0.261412
| 0.369772
| 9,038
| 157
| 1,065
| 57.566879
| 0.595681
| 0.050343
| 0
| 0.460317
| 0
| 0.02381
| 0.373846
| 0.046628
| 0
| 0
| 0
| 0
| 0
| 1
| 0.047619
| false
| 0
| 0.031746
| 0
| 0.15873
| 0.007937
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
e665bfb9ce00ace72dcabf67921ea55288481ae7
| 41
|
py
|
Python
|
tests/__init__.py
|
drummerzzz/pypi_validate_rg
|
c8beaf5e986e7c6081ca2b69f7d1dc94146a4322
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
drummerzzz/pypi_validate_rg
|
c8beaf5e986e7c6081ca2b69f7d1dc94146a4322
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
drummerzzz/pypi_validate_rg
|
c8beaf5e986e7c6081ca2b69f7d1dc94146a4322
|
[
"MIT"
] | null | null | null |
"""Unit test package for validate_rg."""
| 20.5
| 40
| 0.707317
| 6
| 41
| 4.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121951
| 41
| 1
| 41
| 41
| 0.777778
| 0.829268
| 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
|
e66a48ed3cd287bd6564282389221bc75fd1bef0
| 50
|
py
|
Python
|
github-test.py
|
pooyaalamdari/git-test
|
9c27c8333b6a86416cf38222c460055bf9e8d1a1
|
[
"MIT"
] | null | null | null |
github-test.py
|
pooyaalamdari/git-test
|
9c27c8333b6a86416cf38222c460055bf9e8d1a1
|
[
"MIT"
] | null | null | null |
github-test.py
|
pooyaalamdari/git-test
|
9c27c8333b6a86416cf38222c460055bf9e8d1a1
|
[
"MIT"
] | null | null | null |
def hi():
print ('Hello world!')
print(hi())
| 10
| 26
| 0.54
| 7
| 50
| 3.857143
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.22
| 50
| 4
| 27
| 12.5
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0.24
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0
| 0
| 0.333333
| 0.666667
| 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
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
e66a714284ccd47e848b1b4c283da64c2c118ad3
| 40
|
py
|
Python
|
services/email/__init__.py
|
bycristhian/psp
|
019825e010386b6acc8c5466e7a6765218cb10d9
|
[
"MIT"
] | 2
|
2020-09-04T17:06:41.000Z
|
2020-10-05T01:46:20.000Z
|
services/email/__init__.py
|
bycristhian/psp
|
019825e010386b6acc8c5466e7a6765218cb10d9
|
[
"MIT"
] | null | null | null |
services/email/__init__.py
|
bycristhian/psp
|
019825e010386b6acc8c5466e7a6765218cb10d9
|
[
"MIT"
] | null | null | null |
from .email_service import EmailService
| 20
| 39
| 0.875
| 5
| 40
| 6.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 40
| 2
| 39
| 20
| 0.944444
| 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
|
c6fdd5cbec4300d6200ef3d6fd84bdcf0f01b79c
| 254
|
py
|
Python
|
gromozeka/primitives/__init__.py
|
moelius/gromozeka
|
6f7f684064ea0414c0bf346e9d3f8804ab4f399b
|
[
"MIT"
] | 1
|
2020-06-12T17:48:43.000Z
|
2020-06-12T17:48:43.000Z
|
gromozeka/primitives/__init__.py
|
moelius/gromozeka
|
6f7f684064ea0414c0bf346e9d3f8804ab4f399b
|
[
"MIT"
] | 2
|
2018-03-14T16:21:48.000Z
|
2018-06-08T14:41:17.000Z
|
gromozeka/primitives/__init__.py
|
moelius/gromozeka
|
6f7f684064ea0414c0bf346e9d3f8804ab4f399b
|
[
"MIT"
] | null | null | null |
from gromozeka.primitives.base import Task, RegistryTask, task
from gromozeka.primitives.task_pb2 import Task as ProtoTask, ReplyToBrokerPoint as ProtoReplyToBrokerPoint
__all__ = ['Task', 'RegistryTask', 'task', 'ProtoTask', 'ProtoReplyToBrokerPoint']
| 50.8
| 106
| 0.814961
| 26
| 254
| 7.769231
| 0.5
| 0.128713
| 0.227723
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004329
| 0.090551
| 254
| 4
| 107
| 63.5
| 0.87013
| 0
| 0
| 0
| 0
| 0
| 0.204724
| 0.090551
| 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
|
058f8db2f728116458e3c5a2a2782085515024c0
| 147
|
py
|
Python
|
trimesh/scene/__init__.py
|
hroncok/trimesh
|
85c6af12f8bfdf7d3e6c0b8fa553142a9d4219fe
|
[
"MIT"
] | null | null | null |
trimesh/scene/__init__.py
|
hroncok/trimesh
|
85c6af12f8bfdf7d3e6c0b8fa553142a9d4219fe
|
[
"MIT"
] | null | null | null |
trimesh/scene/__init__.py
|
hroncok/trimesh
|
85c6af12f8bfdf7d3e6c0b8fa553142a9d4219fe
|
[
"MIT"
] | null | null | null |
from .scene import Scene, split_scene
from .viewerJS import in_notebook
# add to __all__ as per pep8
__all__ = [Scene, split_scene, in_notebook]
| 21
| 43
| 0.782313
| 23
| 147
| 4.478261
| 0.565217
| 0.194175
| 0.291262
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008065
| 0.156463
| 147
| 6
| 44
| 24.5
| 0.822581
| 0.176871
| 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 | 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
|
55597d7027d546b7cf61a00dcde1c8dccc6baa8b
| 211
|
py
|
Python
|
src/projectList.py
|
LeonSo7/ScrumBot
|
517561623517a0210a470c9ef6ff23e0adcab9fb
|
[
"MIT"
] | 1
|
2021-02-01T14:29:11.000Z
|
2021-02-01T14:29:11.000Z
|
src/projectList.py
|
LeonSo7/ScrumBot
|
517561623517a0210a470c9ef6ff23e0adcab9fb
|
[
"MIT"
] | null | null | null |
src/projectList.py
|
LeonSo7/ScrumBot
|
517561623517a0210a470c9ef6ff23e0adcab9fb
|
[
"MIT"
] | 1
|
2021-01-27T01:50:24.000Z
|
2021-01-27T01:50:24.000Z
|
## @file projectList.py
# @author Arkin Modi, Leon So, Timothy Choy
# @brief Dict of Projects
# @date Mar 17, 2020
from dict import Dict
## @brief Dict of Projects
class ProjectList(Dict):
pass
| 21.1
| 45
| 0.672986
| 30
| 211
| 4.733333
| 0.733333
| 0.126761
| 0.15493
| 0.267606
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037267
| 0.236967
| 211
| 10
| 46
| 21.1
| 0.844721
| 0.625592
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
55654c37bbdd7d056a3c4bc5a093c5fc4eaeeb3c
| 83
|
py
|
Python
|
topnotchdev/files_widget/__init__.py
|
makeev/django-files-widget
|
7cb8b5fcb3e28310a3a237c417dbdef9e1f89570
|
[
"MIT"
] | null | null | null |
topnotchdev/files_widget/__init__.py
|
makeev/django-files-widget
|
7cb8b5fcb3e28310a3a237c417dbdef9e1f89570
|
[
"MIT"
] | null | null | null |
topnotchdev/files_widget/__init__.py
|
makeev/django-files-widget
|
7cb8b5fcb3e28310a3a237c417dbdef9e1f89570
|
[
"MIT"
] | 2
|
2020-01-21T17:22:12.000Z
|
2020-01-24T09:50:28.000Z
|
from __future__ import absolute_import
from .fields import FilesField, ImagesField
| 27.666667
| 43
| 0.86747
| 10
| 83
| 6.7
| 0.7
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108434
| 83
| 2
| 44
| 41.5
| 0.905405
| 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
|
e94c943500ebb1f48e8c86ce35765eb3340a0d43
| 127
|
py
|
Python
|
backend/eatandmeet/api/admin.py
|
lysnikolaou/eatandmeet
|
fd9857f61d6e2e9861a3f4d477089af320181687
|
[
"MIT"
] | 2
|
2019-07-05T09:00:19.000Z
|
2019-08-13T12:09:42.000Z
|
backend/eatandmeet/api/admin.py
|
lysnikolaou/eatandmeet
|
fd9857f61d6e2e9861a3f4d477089af320181687
|
[
"MIT"
] | 55
|
2019-05-20T16:24:39.000Z
|
2022-03-11T23:50:04.000Z
|
backend/eatandmeet/api/admin.py
|
lysnikolaou/eatandmeet
|
fd9857f61d6e2e9861a3f4d477089af320181687
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Event, Comment
admin.site.register(Event)
admin.site.register(Comment)
| 15.875
| 34
| 0.80315
| 18
| 127
| 5.666667
| 0.555556
| 0.176471
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.110236
| 127
| 7
| 35
| 18.142857
| 0.902655
| 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
|
7577514b6c53efcce3a06c1f9289c0d4d5e0db8b
| 40
|
py
|
Python
|
thonnycontrib/esp/esp8266_api_stubs/urllib/urequest.py
|
thonny/thonny-esp
|
a042c88bd20dc077d9b97673d55b3bbd2d79f60c
|
[
"MIT"
] | 6
|
2019-03-07T05:32:11.000Z
|
2022-03-21T08:14:12.000Z
|
thonnycontrib/m5stack/esp8266_api_stubs/urllib/urequest.py
|
thonny/thonny-m5stack
|
a502579ad5e264342ae0bc2c554c78527053693b
|
[
"MIT"
] | 1
|
2019-04-10T09:26:52.000Z
|
2019-04-10T09:26:52.000Z
|
thonnycontrib/m5stack/esp8266_api_stubs/urllib/urequest.py
|
thonny/thonny-m5stack
|
a502579ad5e264342ae0bc2c554c78527053693b
|
[
"MIT"
] | 5
|
2019-01-27T17:03:43.000Z
|
2022-03-21T08:14:13.000Z
|
def urlopen():
pass
usocket = None
| 8
| 14
| 0.625
| 5
| 40
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.275
| 40
| 4
| 15
| 10
| 0.862069
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.333333
| 0
| 0
| 0.333333
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
75a3e25119fca9d5f74db5e8bce046181973454e
| 4,896
|
py
|
Python
|
resources/dot_PyCharm/system/python_stubs/-762174762/PySide/QtGui/QStandardItemModel.py
|
basepipe/developer_onboarding
|
05b6a776f8974c89517868131b201f11c6c2a5ad
|
[
"MIT"
] | 1
|
2020-04-20T02:27:20.000Z
|
2020-04-20T02:27:20.000Z
|
resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QStandardItemModel.py
|
basepipe/developer_onboarding
|
05b6a776f8974c89517868131b201f11c6c2a5ad
|
[
"MIT"
] | null | null | null |
resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QStandardItemModel.py
|
basepipe/developer_onboarding
|
05b6a776f8974c89517868131b201f11c6c2a5ad
|
[
"MIT"
] | null | null | null |
# encoding: utf-8
# module PySide.QtGui
# from C:\Python27\lib\site-packages\PySide\QtGui.pyd
# by generator 1.147
# no doc
# imports
import PySide.QtCore as __PySide_QtCore
import Shiboken as __Shiboken
class QStandardItemModel(__PySide_QtCore.QAbstractItemModel):
# no doc
def appendColumn(self, *args, **kwargs): # real signature unknown
pass
def appendRow(self, *args, **kwargs): # real signature unknown
pass
def clear(self, *args, **kwargs): # real signature unknown
pass
def columnCount(self, *args, **kwargs): # real signature unknown
pass
def data(self, *args, **kwargs): # real signature unknown
pass
def dropMimeData(self, *args, **kwargs): # real signature unknown
pass
def findItems(self, *args, **kwargs): # real signature unknown
pass
def flags(self, *args, **kwargs): # real signature unknown
pass
def hasChildren(self, *args, **kwargs): # real signature unknown
pass
def headerData(self, *args, **kwargs): # real signature unknown
pass
def horizontalHeaderItem(self, *args, **kwargs): # real signature unknown
pass
def index(self, *args, **kwargs): # real signature unknown
pass
def indexFromItem(self, *args, **kwargs): # real signature unknown
pass
def insertColumn(self, *args, **kwargs): # real signature unknown
pass
def insertColumns(self, *args, **kwargs): # real signature unknown
pass
def insertRow(self, *args, **kwargs): # real signature unknown
pass
def insertRows(self, *args, **kwargs): # real signature unknown
pass
def invisibleRootItem(self, *args, **kwargs): # real signature unknown
pass
def item(self, *args, **kwargs): # real signature unknown
pass
def itemChanged(self, *args, **kwargs): # real signature unknown
""" Signal """
pass
def itemData(self, *args, **kwargs): # real signature unknown
pass
def itemFromIndex(self, *args, **kwargs): # real signature unknown
pass
def itemPrototype(self, *args, **kwargs): # real signature unknown
pass
def mimeData(self, *args, **kwargs): # real signature unknown
pass
def mimeTypes(self, *args, **kwargs): # real signature unknown
pass
def parent(self, *args, **kwargs): # real signature unknown
pass
def removeColumns(self, *args, **kwargs): # real signature unknown
pass
def removeRows(self, *args, **kwargs): # real signature unknown
pass
def rowCount(self, *args, **kwargs): # real signature unknown
pass
def setColumnCount(self, *args, **kwargs): # real signature unknown
pass
def setData(self, *args, **kwargs): # real signature unknown
pass
def setHeaderData(self, *args, **kwargs): # real signature unknown
pass
def setHorizontalHeaderItem(self, *args, **kwargs): # real signature unknown
pass
def setHorizontalHeaderLabels(self, *args, **kwargs): # real signature unknown
pass
def setItem(self, *args, **kwargs): # real signature unknown
pass
def setItemData(self, *args, **kwargs): # real signature unknown
pass
def setItemPrototype(self, *args, **kwargs): # real signature unknown
pass
def setRowCount(self, *args, **kwargs): # real signature unknown
pass
def setSortRole(self, *args, **kwargs): # real signature unknown
pass
def setVerticalHeaderItem(self, *args, **kwargs): # real signature unknown
pass
def setVerticalHeaderLabels(self, *args, **kwargs): # real signature unknown
pass
def sort(self, *args, **kwargs): # real signature unknown
pass
def sortRole(self, *args, **kwargs): # real signature unknown
pass
def supportedDropActions(self, *args, **kwargs): # real signature unknown
pass
def takeColumn(self, *args, **kwargs): # real signature unknown
pass
def takeHorizontalHeaderItem(self, *args, **kwargs): # real signature unknown
pass
def takeItem(self, *args, **kwargs): # real signature unknown
pass
def takeRow(self, *args, **kwargs): # real signature unknown
pass
def takeVerticalHeaderItem(self, *args, **kwargs): # real signature unknown
pass
def verticalHeaderItem(self, *args, **kwargs): # real signature unknown
pass
def __init__(self, *args, **kwargs): # real signature unknown
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
staticMetaObject = None # (!) real value is '<PySide.QtCore.QMetaObject object at 0x0000000004C2D348>'
| 27.818182
| 106
| 0.638276
| 539
| 4,896
| 5.745826
| 0.200371
| 0.218276
| 0.335809
| 0.296416
| 0.671941
| 0.671941
| 0.660962
| 0.648692
| 0
| 0
| 0
| 0.006027
| 0.254493
| 4,896
| 175
| 107
| 27.977143
| 0.842466
| 0.310049
| 0
| 0.477064
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.477064
| false
| 0.477064
| 0.018349
| 0
| 0.513761
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
75c766d962d1cd9ef1ea3d6069bce49c9a965e28
| 10,027
|
py
|
Python
|
citizen/migrations/0001_initial.py
|
adityamittl/CureHub
|
9b2a6d7271db521b11391c15d95bb8f5d8050cc7
|
[
"MIT"
] | null | null | null |
citizen/migrations/0001_initial.py
|
adityamittl/CureHub
|
9b2a6d7271db521b11391c15d95bb8f5d8050cc7
|
[
"MIT"
] | null | null | null |
citizen/migrations/0001_initial.py
|
adityamittl/CureHub
|
9b2a6d7271db521b11391c15d95bb8f5d8050cc7
|
[
"MIT"
] | null | null | null |
# Generated by Django 3.2.5 on 2022-02-05 21:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='bill',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('det', models.CharField(max_length=50)),
('ammount', models.IntegerField()),
('currency', models.CharField(max_length=50)),
],
),
migrations.CreateModel(
name='citizen_profile',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('First_name', models.CharField(max_length=50)),
('Last_name', models.CharField(max_length=50)),
('Email', models.EmailField(max_length=50)),
('Phone_number', models.CharField(max_length=50)),
('Address', models.CharField(max_length=100)),
('City', models.CharField(max_length=50)),
('State', models.CharField(max_length=50)),
('Zip_code', models.CharField(max_length=50)),
('Country', models.CharField(max_length=50)),
('Date_of_birth', models.DateField()),
('identity_type', models.CharField(max_length=50)),
('identity_number', models.CharField(max_length=50)),
('image', models.ImageField(blank=True, upload_to='profile_pics')),
],
),
migrations.CreateModel(
name='Diagnosis',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50)),
('description', models.CharField(max_length=100, null=True)),
('report', models.ImageField(blank=True, upload_to='report_pics')),
('remark', models.TextField()),
('price', models.IntegerField()),
],
),
migrations.CreateModel(
name='diagnosis_center',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100)),
('regno', models.CharField(max_length=50)),
('address', models.CharField(max_length=100)),
('city', models.CharField(max_length=50)),
('state', models.CharField(max_length=50)),
('zip_code', models.CharField(max_length=50)),
('country', models.CharField(max_length=50)),
('pathologist', models.CharField(max_length=50)),
],
),
migrations.CreateModel(
name='doctor',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('First_name', models.CharField(max_length=50)),
('Last_name', models.CharField(max_length=50)),
('domain', models.CharField(max_length=100)),
('Email', models.EmailField(max_length=50)),
('Phone_number', models.CharField(max_length=50)),
('Address', models.CharField(max_length=100)),
('City', models.CharField(max_length=50)),
('State', models.CharField(max_length=50)),
('Zip_code', models.CharField(max_length=50)),
('Country', models.CharField(max_length=50)),
('experience', models.IntegerField()),
('image', models.ImageField(blank=True, upload_to='profile_pics')),
],
),
migrations.CreateModel(
name='Hospital',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50)),
('regno', models.CharField(max_length=30)),
('address', models.CharField(max_length=100)),
('city', models.CharField(max_length=50)),
('state', models.CharField(max_length=50)),
('zip_code', models.CharField(max_length=50)),
('country', models.CharField(max_length=50)),
('diagnosisC', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, to='citizen.diagnosis_center')),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='Insurence',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50)),
('description', models.CharField(max_length=100)),
('price', models.IntegerField()),
('Insurence_number', models.CharField(max_length=50)),
],
),
migrations.CreateModel(
name='prescription',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50)),
('quantity', models.IntegerField()),
('taking_instructions', models.CharField(max_length=50)),
],
),
migrations.CreateModel(
name='tests',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=30)),
],
),
migrations.CreateModel(
name='Treatment',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('date_of_start', models.DateField(default=django.utils.timezone.now)),
('name', models.CharField(max_length=50, null=True)),
('description', models.CharField(max_length=100, null=True)),
('price', models.IntegerField(null=True)),
('need_diagnosis', models.BooleanField(default=False)),
('viewed_report', models.BooleanField(default=False)),
('meds_duration', models.CharField(max_length=50, null=True)),
('next_followup', models.DateField(null=True)),
('date_of_end', models.DateField(blank=True, null=True)),
('claimed_ammount', models.IntegerField(default=0)),
('Diagnosis_detail', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='citizen.diagnosis')),
('Treating_doctor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='citizen.doctor')),
('Treating_hospital', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='citizen.hospital')),
('bill_breakdown', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='citizen.bill')),
('meds', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='citizen.prescription')),
('patient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='citizen.citizen_profile')),
('required_tests', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='citizen.tests')),
],
),
migrations.CreateModel(
name='login_mode',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('type', models.CharField(max_length=50)),
('verified', models.BooleanField(default=False)),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.AddField(
model_name='doctor',
name='servicing',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='citizen.hospital'),
),
migrations.AddField(
model_name='doctor',
name='user',
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
migrations.AddField(
model_name='diagnosis_center',
name='available_tests',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='citizen.tests'),
),
migrations.AddField(
model_name='diagnosis_center',
name='user',
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
migrations.AddField(
model_name='diagnosis',
name='center',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='citizen.diagnosis_center'),
),
migrations.AddField(
model_name='citizen_profile',
name='insured',
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='citizen.insurence'),
),
migrations.AddField(
model_name='citizen_profile',
name='user',
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
]
| 50.641414
| 140
| 0.58143
| 988
| 10,027
| 5.731781
| 0.135628
| 0.079463
| 0.152569
| 0.203426
| 0.77715
| 0.760551
| 0.729119
| 0.694508
| 0.648949
| 0.647713
| 0
| 0.017201
| 0.275257
| 10,027
| 197
| 141
| 50.898477
| 0.762075
| 0.004488
| 0
| 0.636842
| 1
| 0
| 0.116733
| 0.007114
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.021053
| 0
| 0.042105
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
75cf29ffa9c59b744972a9e82fba7a506219e83b
| 142
|
py
|
Python
|
paddlex/ppcls/arch/backbone/variant_models/__init__.py
|
cheneyveron/PaddleX
|
86f73fc6a66b12c638f642524bfd1cf730e26c4b
|
[
"Apache-2.0"
] | 150
|
2021-11-02T05:31:51.000Z
|
2022-03-24T06:22:22.000Z
|
paddlex/ppcls/arch/backbone/variant_models/__init__.py
|
cheneyveron/PaddleX
|
86f73fc6a66b12c638f642524bfd1cf730e26c4b
|
[
"Apache-2.0"
] | 5
|
2022-03-15T12:13:33.000Z
|
2022-03-31T15:54:08.000Z
|
paddlex/ppcls/arch/backbone/variant_models/__init__.py
|
cheneyveron/PaddleX
|
86f73fc6a66b12c638f642524bfd1cf730e26c4b
|
[
"Apache-2.0"
] | 33
|
2021-11-03T00:29:41.000Z
|
2022-03-15T13:15:56.000Z
|
from .resnet_variant import ResNet50_last_stage_stride1
from .vgg_variant import VGG19Sigmoid
from .pp_lcnet_variant import PPLCNet_x2_5_Tanh
| 35.5
| 55
| 0.894366
| 22
| 142
| 5.318182
| 0.727273
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.053846
| 0.084507
| 142
| 3
| 56
| 47.333333
| 0.846154
| 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
|
f950722b5f048b182ad8c268f8635c5c75ce2f5e
| 116
|
py
|
Python
|
check.py
|
rahul9115/ms-identity-python-webapp-master
|
c0cbf610016ea131ee4e4c9c0dfc51b53e692fad
|
[
"MIT"
] | null | null | null |
check.py
|
rahul9115/ms-identity-python-webapp-master
|
c0cbf610016ea131ee4e4c9c0dfc51b53e692fad
|
[
"MIT"
] | null | null | null |
check.py
|
rahul9115/ms-identity-python-webapp-master
|
c0cbf610016ea131ee4e4c9c0dfc51b53e692fad
|
[
"MIT"
] | null | null | null |
import re
reg=r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b'
email="das"
print(re.fullmatch(reg,email))
| 23.2
| 59
| 0.551724
| 26
| 116
| 2.423077
| 0.576923
| 0.095238
| 0.15873
| 0.190476
| 0.206349
| 0
| 0
| 0
| 0
| 0
| 0
| 0.046729
| 0.077586
| 116
| 5
| 60
| 23.2
| 0.542056
| 0
| 0
| 0
| 0
| 0.25
| 0.477876
| 0.451327
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0.25
| 1
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f9706349988d3350e6f551f535fd6843a13ae638
| 22
|
py
|
Python
|
main_challence.py
|
Heijboer/Challence
|
44ab6e0362f885f0c0cc612e8c24b8833222cffd
|
[
"MIT"
] | null | null | null |
main_challence.py
|
Heijboer/Challence
|
44ab6e0362f885f0c0cc612e8c24b8833222cffd
|
[
"MIT"
] | null | null | null |
main_challence.py
|
Heijboer/Challence
|
44ab6e0362f885f0c0cc612e8c24b8833222cffd
|
[
"MIT"
] | null | null | null |
print ("Hallo wereld")
| 22
| 22
| 0.727273
| 3
| 22
| 5.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 22
| 1
| 22
| 22
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0.521739
| 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
|
f9884312e5b08766f415ed175d76f88fe21b22f9
| 461
|
py
|
Python
|
dexp/processing/color/_test/test_scale_bar.py
|
haesleinhuepf/dexp
|
2ea84f3db323724588fac565fae56f0d522bc5ca
|
[
"BSD-3-Clause"
] | 16
|
2021-04-21T14:09:19.000Z
|
2022-03-22T02:30:59.000Z
|
dexp/processing/color/_test/test_scale_bar.py
|
haesleinhuepf/dexp
|
2ea84f3db323724588fac565fae56f0d522bc5ca
|
[
"BSD-3-Clause"
] | 28
|
2021-04-15T17:43:08.000Z
|
2022-03-29T16:08:35.000Z
|
dexp/processing/color/_test/test_scale_bar.py
|
haesleinhuepf/dexp
|
2ea84f3db323724588fac565fae56f0d522bc5ca
|
[
"BSD-3-Clause"
] | 3
|
2022-02-08T17:41:30.000Z
|
2022-03-18T15:32:27.000Z
|
from dexp.processing.color.demo.demo_scale_bar import demo_scale_bar
from dexp.utils.backends import CupyBackend, NumpyBackend
def test_scale_bar_numpy():
with NumpyBackend():
_test_scale_bar()
def test_scale_bar_cupy():
try:
with CupyBackend():
_test_scale_bar()
except ModuleNotFoundError:
print("Cupy module not found! Test passes nevertheless!")
def _test_scale_bar():
demo_scale_bar(display=False)
| 23.05
| 68
| 0.724512
| 59
| 461
| 5.305085
| 0.474576
| 0.204473
| 0.191693
| 0.14377
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.195228
| 461
| 19
| 69
| 24.263158
| 0.843666
| 0
| 0
| 0.153846
| 0
| 0
| 0.104121
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.230769
| true
| 0.076923
| 0.153846
| 0
| 0.384615
| 0.076923
| 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
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
f9a6c25875143f25efa24f0b3f18a2e21c35862e
| 36
|
py
|
Python
|
api/app/controller/controller_votacao.py
|
foca-aqui/foca-dados
|
1b1f916af6aa3b58a30175730a218200e28dc8a6
|
[
"MIT"
] | 1
|
2019-11-06T13:16:13.000Z
|
2019-11-06T13:16:13.000Z
|
api/app/controller/controller_votacao.py
|
foca-aqui/foca-dados
|
1b1f916af6aa3b58a30175730a218200e28dc8a6
|
[
"MIT"
] | null | null | null |
api/app/controller/controller_votacao.py
|
foca-aqui/foca-dados
|
1b1f916af6aa3b58a30175730a218200e28dc8a6
|
[
"MIT"
] | null | null | null |
class ControllerVotacao():
pass
| 12
| 26
| 0.722222
| 3
| 36
| 8.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.194444
| 36
| 3
| 27
| 12
| 0.896552
| 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
|
f9caaf0b218d4de292b53fe9697e62045b4949a1
| 144
|
py
|
Python
|
charcoal/helpers.py
|
cknv/statsd
|
95148bfebeff5dc0995397c21cfbdc762730852e
|
[
"MIT"
] | null | null | null |
charcoal/helpers.py
|
cknv/statsd
|
95148bfebeff5dc0995397c21cfbdc762730852e
|
[
"MIT"
] | 1
|
2016-04-18T19:44:36.000Z
|
2016-04-18T19:44:36.000Z
|
charcoal/helpers.py
|
cknv/charcoal
|
95148bfebeff5dc0995397c21cfbdc762730852e
|
[
"MIT"
] | null | null | null |
"""Helper functions for small things done in many places."""
def dot_join(*args):
"""Join the args together."""
return '.'.join(args)
| 20.571429
| 60
| 0.645833
| 20
| 144
| 4.6
| 0.8
| 0.173913
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1875
| 144
| 6
| 61
| 24
| 0.786325
| 0.541667
| 0
| 0
| 0
| 0
| 0.018182
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 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
| 1
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
f9de58860b6acc9c8cbb97ce4dce5957f62c3b87
| 191
|
py
|
Python
|
kafka.stream/manager/tweet_service.py
|
burakhalefoglu/Sakarya_Universitesi_Bitirme_Projesi
|
b66308d465a08be8c94787cbc4ca5d6585ce4fc9
|
[
"MIT"
] | 1
|
2022-01-28T12:55:04.000Z
|
2022-01-28T12:55:04.000Z
|
kafka.stream/manager/tweet_service.py
|
burakhalefoglu/Sakarya_Universitesi_Bitirme_Projesi
|
b66308d465a08be8c94787cbc4ca5d6585ce4fc9
|
[
"MIT"
] | null | null | null |
kafka.stream/manager/tweet_service.py
|
burakhalefoglu/Sakarya_Universitesi_Bitirme_Projesi
|
b66308d465a08be8c94787cbc4ca5d6585ce4fc9
|
[
"MIT"
] | 1
|
2022-01-20T05:55:20.000Z
|
2022-01-20T05:55:20.000Z
|
import simplejson as json
from dataAccess.tweet_dal import TweetDal
class TweetService:
def AddTweet(dictObj: json):
tweetDal = TweetDal()
tweetDal.add(dictObj)
| 21.222222
| 41
| 0.691099
| 21
| 191
| 6.238095
| 0.714286
| 0.244275
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.246073
| 191
| 8
| 42
| 23.875
| 0.909722
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 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
|
fb0f502b095a11f314e88f88d46924f066f6cf88
| 110
|
py
|
Python
|
Examples/UsePythonFromAGK/media/module.py
|
adambiser/agk-python-plugin
|
62a39a8ca37a5ecf1aea18741ffcc7f7d7fb1536
|
[
"MIT"
] | 4
|
2017-11-21T15:22:56.000Z
|
2019-02-27T11:11:45.000Z
|
Examples/UsePythonFromAGK/media/module.py
|
adambiser/agk-python-plugin
|
62a39a8ca37a5ecf1aea18741ffcc7f7d7fb1536
|
[
"MIT"
] | null | null | null |
Examples/UsePythonFromAGK/media/module.py
|
adambiser/agk-python-plugin
|
62a39a8ca37a5ecf1aea18741ffcc7f7d7fb1536
|
[
"MIT"
] | 1
|
2018-10-15T17:08:04.000Z
|
2018-10-15T17:08:04.000Z
|
def test(name, age):
return "Here is the result of the function: name = {0}, age = {1}".format(name, age)
| 36.666667
| 88
| 0.636364
| 19
| 110
| 3.684211
| 0.736842
| 0.2
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022727
| 0.2
| 110
| 2
| 89
| 55
| 0.772727
| 0
| 0
| 0
| 0
| 0
| 0.518182
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
fb3bd4d5cdea64c72e581c933ac64b3de02416da
| 109
|
py
|
Python
|
models/__init__.py
|
atomicoo/Tacotron2-PyTorch
|
71eadf2abafa201648dc16cbfb742ab0032077c9
|
[
"MIT"
] | 9
|
2021-05-16T01:21:01.000Z
|
2021-12-20T13:57:49.000Z
|
models/__init__.py
|
atomicoo/Tacotron2-PyTorch
|
71eadf2abafa201648dc16cbfb742ab0032077c9
|
[
"MIT"
] | 1
|
2021-11-05T01:36:27.000Z
|
2021-11-05T01:36:27.000Z
|
models/__init__.py
|
atomicoo/Tacotron2-PyTorch
|
71eadf2abafa201648dc16cbfb742ab0032077c9
|
[
"MIT"
] | 2
|
2021-05-16T01:21:24.000Z
|
2021-09-04T02:41:06.000Z
|
from .tacotron import Tacotron2
# from .losses import Tacotron2Loss
# from .optims import Tacotron2Optimizer
| 27.25
| 40
| 0.825688
| 12
| 109
| 7.5
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.031579
| 0.12844
| 109
| 3
| 41
| 36.333333
| 0.915789
| 0.66055
| 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
|
34f1780dc7519e4ff1d03b9986d80400fa737000
| 43
|
py
|
Python
|
DjangoCrudApplication/DjangoCrudApplication/__init__.py
|
TanvirArjel/DjangoCrud
|
f91d0ef8a6ff51dddc8f3c3b251fd4001f68e424
|
[
"MIT"
] | 3
|
2018-10-21T14:01:01.000Z
|
2018-10-22T14:42:22.000Z
|
DjangoCrudApplication/DjangoCrudApplication/__init__.py
|
TanvirArjel/DjangoCrud
|
f91d0ef8a6ff51dddc8f3c3b251fd4001f68e424
|
[
"MIT"
] | null | null | null |
DjangoCrudApplication/DjangoCrudApplication/__init__.py
|
TanvirArjel/DjangoCrud
|
f91d0ef8a6ff51dddc8f3c3b251fd4001f68e424
|
[
"MIT"
] | 1
|
2021-06-11T03:53:03.000Z
|
2021-06-11T03:53:03.000Z
|
"""
Package for DjangoCrudApplication.
"""
| 10.75
| 34
| 0.72093
| 3
| 43
| 10.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.116279
| 43
| 3
| 35
| 14.333333
| 0.815789
| 0.790698
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 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
|
9b32c350800ac18a161ef693e7f08aabe1c30567
| 11,351
|
py
|
Python
|
swagger_client/models/get_characters_character_id_roles_ok.py
|
rseichter/bootini-star
|
a80258f01a05e4df38748b8cb47dfadabd42c20d
|
[
"MIT"
] | null | null | null |
swagger_client/models/get_characters_character_id_roles_ok.py
|
rseichter/bootini-star
|
a80258f01a05e4df38748b8cb47dfadabd42c20d
|
[
"MIT"
] | null | null | null |
swagger_client/models/get_characters_character_id_roles_ok.py
|
rseichter/bootini-star
|
a80258f01a05e4df38748b8cb47dfadabd42c20d
|
[
"MIT"
] | null | null | null |
# coding: utf-8
"""
EVE Swagger Interface
An OpenAPI for EVE Online # noqa: E501
OpenAPI spec version: 0.8.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class GetCharactersCharacterIdRolesOk(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'roles': 'list[str]',
'roles_at_hq': 'list[str]',
'roles_at_base': 'list[str]',
'roles_at_other': 'list[str]'
}
attribute_map = {
'roles': 'roles',
'roles_at_hq': 'roles_at_hq',
'roles_at_base': 'roles_at_base',
'roles_at_other': 'roles_at_other'
}
def __init__(self, roles=None, roles_at_hq=None, roles_at_base=None, roles_at_other=None): # noqa: E501
"""GetCharactersCharacterIdRolesOk - a model defined in Swagger""" # noqa: E501
self._roles = None
self._roles_at_hq = None
self._roles_at_base = None
self._roles_at_other = None
self.discriminator = None
if roles is not None:
self.roles = roles
if roles_at_hq is not None:
self.roles_at_hq = roles_at_hq
if roles_at_base is not None:
self.roles_at_base = roles_at_base
if roles_at_other is not None:
self.roles_at_other = roles_at_other
@property
def roles(self):
"""Gets the roles of this GetCharactersCharacterIdRolesOk. # noqa: E501
roles array # noqa: E501
:return: The roles of this GetCharactersCharacterIdRolesOk. # noqa: E501
:rtype: list[str]
"""
return self._roles
@roles.setter
def roles(self, roles):
"""Sets the roles of this GetCharactersCharacterIdRolesOk.
roles array # noqa: E501
:param roles: The roles of this GetCharactersCharacterIdRolesOk. # noqa: E501
:type: list[str]
"""
allowed_values = ["Account_Take_1", "Account_Take_2", "Account_Take_3", "Account_Take_4", "Account_Take_5", "Account_Take_6", "Account_Take_7", "Accountant", "Auditor", "Communications_Officer", "Config_Equipment", "Config_Starbase_Equipment", "Container_Take_1", "Container_Take_2", "Container_Take_3", "Container_Take_4", "Container_Take_5", "Container_Take_6", "Container_Take_7", "Contract_Manager", "Diplomat", "Director", "Factory_Manager", "Fitting_Manager", "Hangar_Query_1", "Hangar_Query_2", "Hangar_Query_3", "Hangar_Query_4", "Hangar_Query_5", "Hangar_Query_6", "Hangar_Query_7", "Hangar_Take_1", "Hangar_Take_2", "Hangar_Take_3", "Hangar_Take_4", "Hangar_Take_5", "Hangar_Take_6", "Hangar_Take_7", "Junior_Accountant", "Personnel_Manager", "Rent_Factory_Facility", "Rent_Office", "Rent_Research_Facility", "Security_Officer", "Starbase_Defense_Operator", "Starbase_Fuel_Technician", "Station_Manager", "Terrestrial_Combat_Officer", "Terrestrial_Logistics_Officer", "Trader"] # noqa: E501
if not set(roles).issubset(set(allowed_values)):
raise ValueError(
"Invalid values for `roles` [{0}], must be a subset of [{1}]" # noqa: E501
.format(", ".join(map(str, set(roles) - set(allowed_values))), # noqa: E501
", ".join(map(str, allowed_values)))
)
self._roles = roles
@property
def roles_at_hq(self):
"""Gets the roles_at_hq of this GetCharactersCharacterIdRolesOk. # noqa: E501
roles_at_hq array # noqa: E501
:return: The roles_at_hq of this GetCharactersCharacterIdRolesOk. # noqa: E501
:rtype: list[str]
"""
return self._roles_at_hq
@roles_at_hq.setter
def roles_at_hq(self, roles_at_hq):
"""Sets the roles_at_hq of this GetCharactersCharacterIdRolesOk.
roles_at_hq array # noqa: E501
:param roles_at_hq: The roles_at_hq of this GetCharactersCharacterIdRolesOk. # noqa: E501
:type: list[str]
"""
allowed_values = ["Account_Take_1", "Account_Take_2", "Account_Take_3", "Account_Take_4", "Account_Take_5", "Account_Take_6", "Account_Take_7", "Accountant", "Auditor", "Communications_Officer", "Config_Equipment", "Config_Starbase_Equipment", "Container_Take_1", "Container_Take_2", "Container_Take_3", "Container_Take_4", "Container_Take_5", "Container_Take_6", "Container_Take_7", "Contract_Manager", "Diplomat", "Director", "Factory_Manager", "Fitting_Manager", "Hangar_Query_1", "Hangar_Query_2", "Hangar_Query_3", "Hangar_Query_4", "Hangar_Query_5", "Hangar_Query_6", "Hangar_Query_7", "Hangar_Take_1", "Hangar_Take_2", "Hangar_Take_3", "Hangar_Take_4", "Hangar_Take_5", "Hangar_Take_6", "Hangar_Take_7", "Junior_Accountant", "Personnel_Manager", "Rent_Factory_Facility", "Rent_Office", "Rent_Research_Facility", "Security_Officer", "Starbase_Defense_Operator", "Starbase_Fuel_Technician", "Station_Manager", "Terrestrial_Combat_Officer", "Terrestrial_Logistics_Officer", "Trader"] # noqa: E501
if not set(roles_at_hq).issubset(set(allowed_values)):
raise ValueError(
"Invalid values for `roles_at_hq` [{0}], must be a subset of [{1}]" # noqa: E501
.format(", ".join(map(str, set(roles_at_hq) - set(allowed_values))), # noqa: E501
", ".join(map(str, allowed_values)))
)
self._roles_at_hq = roles_at_hq
@property
def roles_at_base(self):
"""Gets the roles_at_base of this GetCharactersCharacterIdRolesOk. # noqa: E501
roles_at_base array # noqa: E501
:return: The roles_at_base of this GetCharactersCharacterIdRolesOk. # noqa: E501
:rtype: list[str]
"""
return self._roles_at_base
@roles_at_base.setter
def roles_at_base(self, roles_at_base):
"""Sets the roles_at_base of this GetCharactersCharacterIdRolesOk.
roles_at_base array # noqa: E501
:param roles_at_base: The roles_at_base of this GetCharactersCharacterIdRolesOk. # noqa: E501
:type: list[str]
"""
allowed_values = ["Account_Take_1", "Account_Take_2", "Account_Take_3", "Account_Take_4", "Account_Take_5", "Account_Take_6", "Account_Take_7", "Accountant", "Auditor", "Communications_Officer", "Config_Equipment", "Config_Starbase_Equipment", "Container_Take_1", "Container_Take_2", "Container_Take_3", "Container_Take_4", "Container_Take_5", "Container_Take_6", "Container_Take_7", "Contract_Manager", "Diplomat", "Director", "Factory_Manager", "Fitting_Manager", "Hangar_Query_1", "Hangar_Query_2", "Hangar_Query_3", "Hangar_Query_4", "Hangar_Query_5", "Hangar_Query_6", "Hangar_Query_7", "Hangar_Take_1", "Hangar_Take_2", "Hangar_Take_3", "Hangar_Take_4", "Hangar_Take_5", "Hangar_Take_6", "Hangar_Take_7", "Junior_Accountant", "Personnel_Manager", "Rent_Factory_Facility", "Rent_Office", "Rent_Research_Facility", "Security_Officer", "Starbase_Defense_Operator", "Starbase_Fuel_Technician", "Station_Manager", "Terrestrial_Combat_Officer", "Terrestrial_Logistics_Officer", "Trader"] # noqa: E501
if not set(roles_at_base).issubset(set(allowed_values)):
raise ValueError(
"Invalid values for `roles_at_base` [{0}], must be a subset of [{1}]" # noqa: E501
.format(", ".join(map(str, set(roles_at_base) - set(allowed_values))), # noqa: E501
", ".join(map(str, allowed_values)))
)
self._roles_at_base = roles_at_base
@property
def roles_at_other(self):
"""Gets the roles_at_other of this GetCharactersCharacterIdRolesOk. # noqa: E501
roles_at_other array # noqa: E501
:return: The roles_at_other of this GetCharactersCharacterIdRolesOk. # noqa: E501
:rtype: list[str]
"""
return self._roles_at_other
@roles_at_other.setter
def roles_at_other(self, roles_at_other):
"""Sets the roles_at_other of this GetCharactersCharacterIdRolesOk.
roles_at_other array # noqa: E501
:param roles_at_other: The roles_at_other of this GetCharactersCharacterIdRolesOk. # noqa: E501
:type: list[str]
"""
allowed_values = ["Account_Take_1", "Account_Take_2", "Account_Take_3", "Account_Take_4", "Account_Take_5", "Account_Take_6", "Account_Take_7", "Accountant", "Auditor", "Communications_Officer", "Config_Equipment", "Config_Starbase_Equipment", "Container_Take_1", "Container_Take_2", "Container_Take_3", "Container_Take_4", "Container_Take_5", "Container_Take_6", "Container_Take_7", "Contract_Manager", "Diplomat", "Director", "Factory_Manager", "Fitting_Manager", "Hangar_Query_1", "Hangar_Query_2", "Hangar_Query_3", "Hangar_Query_4", "Hangar_Query_5", "Hangar_Query_6", "Hangar_Query_7", "Hangar_Take_1", "Hangar_Take_2", "Hangar_Take_3", "Hangar_Take_4", "Hangar_Take_5", "Hangar_Take_6", "Hangar_Take_7", "Junior_Accountant", "Personnel_Manager", "Rent_Factory_Facility", "Rent_Office", "Rent_Research_Facility", "Security_Officer", "Starbase_Defense_Operator", "Starbase_Fuel_Technician", "Station_Manager", "Terrestrial_Combat_Officer", "Terrestrial_Logistics_Officer", "Trader"] # noqa: E501
if not set(roles_at_other).issubset(set(allowed_values)):
raise ValueError(
"Invalid values for `roles_at_other` [{0}], must be a subset of [{1}]" # noqa: E501
.format(", ".join(map(str, set(roles_at_other) - set(allowed_values))), # noqa: E501
", ".join(map(str, allowed_values)))
)
self._roles_at_other = roles_at_other
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetCharactersCharacterIdRolesOk):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
| 50.004405
| 1,009
| 0.659237
| 1,421
| 11,351
| 4.887403
| 0.114708
| 0.075594
| 0.032397
| 0.070842
| 0.786753
| 0.749316
| 0.719222
| 0.648524
| 0.638157
| 0.601008
| 0
| 0.026617
| 0.222183
| 11,351
| 226
| 1,010
| 50.225664
| 0.759995
| 0.206061
| 0
| 0.160714
| 1
| 0
| 0.423767
| 0.092867
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0.026786
| 0
| 0.267857
| 0.017857
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
9b3acf65c599b7a17a3d810a0b309b07f726a9cd
| 42
|
py
|
Python
|
tests/components/hardware/__init__.py
|
liangleslie/core
|
cc807b4d597daaaadc92df4a93c6e30da4f570c6
|
[
"Apache-2.0"
] | 30,023
|
2016-04-13T10:17:53.000Z
|
2020-03-02T12:56:31.000Z
|
tests/components/hardware/__init__.py
|
liangleslie/core
|
cc807b4d597daaaadc92df4a93c6e30da4f570c6
|
[
"Apache-2.0"
] | 24,710
|
2016-04-13T08:27:26.000Z
|
2020-03-02T12:59:13.000Z
|
tests/components/hardware/__init__.py
|
liangleslie/core
|
cc807b4d597daaaadc92df4a93c6e30da4f570c6
|
[
"Apache-2.0"
] | 11,956
|
2016-04-13T18:42:31.000Z
|
2020-03-02T09:32:12.000Z
|
"""Tests for the Hardware integration."""
| 21
| 41
| 0.714286
| 5
| 42
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119048
| 42
| 1
| 42
| 42
| 0.810811
| 0.833333
| 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
|
9b800c999a79135bf96cd277a2ae807f1e465ba1
| 46
|
py
|
Python
|
demo.py
|
jennycs005/SecureNetwork
|
c8e88b7e44e8a5e38dc01f74f131ad83e488c5bc
|
[
"MIT"
] | null | null | null |
demo.py
|
jennycs005/SecureNetwork
|
c8e88b7e44e8a5e38dc01f74f131ad83e488c5bc
|
[
"MIT"
] | null | null | null |
demo.py
|
jennycs005/SecureNetwork
|
c8e88b7e44e8a5e38dc01f74f131ad83e488c5bc
|
[
"MIT"
] | null | null | null |
import sys
import time
print "aaa".upper()
| 6.571429
| 19
| 0.695652
| 7
| 46
| 4.571429
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.195652
| 46
| 6
| 20
| 7.666667
| 0.864865
| 0
| 0
| 0
| 0
| 0
| 0.068182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.666667
| null | null | 0.333333
| 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
|
9b94478bef5453b9fa13702734b6ab5d615ca8dc
| 49
|
py
|
Python
|
Task/Hello-world-Text/Python/hello-world-text-2.py
|
djgoku/RosettaCodeData
|
91df62d46142e921b3eacdb52b0316c39ee236bc
|
[
"Info-ZIP"
] | null | null | null |
Task/Hello-world-Text/Python/hello-world-text-2.py
|
djgoku/RosettaCodeData
|
91df62d46142e921b3eacdb52b0316c39ee236bc
|
[
"Info-ZIP"
] | null | null | null |
Task/Hello-world-Text/Python/hello-world-text-2.py
|
djgoku/RosettaCodeData
|
91df62d46142e921b3eacdb52b0316c39ee236bc
|
[
"Info-ZIP"
] | null | null | null |
import sys
sys.stdout.write("Goodbye, World!\n")
| 16.333333
| 37
| 0.734694
| 8
| 49
| 4.5
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081633
| 49
| 2
| 38
| 24.5
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0.346939
| 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
|
32cb04580d7b581647cb63dc755c2ce7f29a4392
| 64
|
py
|
Python
|
pypeman/tests/test_app_testing/settings.py
|
jrmi/pypeman
|
30097ae6f3200450b52959a4df1d3181976b6776
|
[
"Apache-2.0"
] | 1
|
2021-01-09T10:44:45.000Z
|
2021-01-09T10:44:45.000Z
|
pypeman/tests/test_app_testing/settings.py
|
jrmi/pypeman
|
30097ae6f3200450b52959a4df1d3181976b6776
|
[
"Apache-2.0"
] | null | null | null |
pypeman/tests/test_app_testing/settings.py
|
jrmi/pypeman
|
30097ae6f3200450b52959a4df1d3181976b6776
|
[
"Apache-2.0"
] | null | null | null |
from pypeman.default_settings import *
print("Setting loaded")
| 16
| 38
| 0.796875
| 8
| 64
| 6.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109375
| 64
| 3
| 39
| 21.333333
| 0.877193
| 0
| 0
| 0
| 0
| 0
| 0.21875
| 0
| 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
|
32cd13281094ec36e8e17e505ca7b96fb085fdea
| 378
|
py
|
Python
|
blasteroids/server/game_objects/armoury/cooldown.py
|
smallarmyofnerds/blasteroids
|
082bc010ed6d2ec6098a8848edcbee433a5b6961
|
[
"MIT"
] | null | null | null |
blasteroids/server/game_objects/armoury/cooldown.py
|
smallarmyofnerds/blasteroids
|
082bc010ed6d2ec6098a8848edcbee433a5b6961
|
[
"MIT"
] | 7
|
2021-09-04T18:49:13.000Z
|
2021-09-05T19:37:39.000Z
|
blasteroids/server/game_objects/armoury/cooldown.py
|
smallarmyofnerds/blasteroids
|
082bc010ed6d2ec6098a8848edcbee433a5b6961
|
[
"MIT"
] | null | null | null |
import pygame
class Cooldown:
def __init__(self, cooldown):
self.cooldown = cooldown
self.last_shot = 0
def set_cooldown(self, cooldown):
self.cooldown = cooldown
def can_shoot(self):
return pygame.time.get_ticks() - self.last_shot > self.cooldown
def update_last_shot(self):
self.last_shot = pygame.time.get_ticks()
| 22.235294
| 71
| 0.661376
| 49
| 378
| 4.836735
| 0.367347
| 0.253165
| 0.253165
| 0.202532
| 0.270042
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003509
| 0.246032
| 378
| 16
| 72
| 23.625
| 0.82807
| 0
| 0
| 0.181818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.363636
| false
| 0
| 0.090909
| 0.090909
| 0.636364
| 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
|
fd1ceb421dd46424f87f3c6c84bb6c256c75ae74
| 113
|
py
|
Python
|
labelmeutils/utils/__init__.py
|
narumiruna/labelme-utils
|
fd0c4e6344c01ed3bc5d040b580a4840334d2459
|
[
"MIT"
] | null | null | null |
labelmeutils/utils/__init__.py
|
narumiruna/labelme-utils
|
fd0c4e6344c01ed3bc5d040b580a4840334d2459
|
[
"MIT"
] | null | null | null |
labelmeutils/utils/__init__.py
|
narumiruna/labelme-utils
|
fd0c4e6344c01ed3bc5d040b580a4840334d2459
|
[
"MIT"
] | null | null | null |
from .io import load_image, load_json, save_json
from .record import bytes_feature, float_feature, int64_feature
| 37.666667
| 63
| 0.840708
| 18
| 113
| 4.944444
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019802
| 0.106195
| 113
| 2
| 64
| 56.5
| 0.861386
| 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
|
b5c90fb5c0bfd240823ea973f4211f01dbe0ace8
| 6,926
|
py
|
Python
|
qlazy/util.py
|
samn33/qlazy
|
b215febfec0a3b8192e57a20ec85f14576745a89
|
[
"Apache-2.0"
] | 15
|
2019-04-09T13:02:58.000Z
|
2022-01-13T12:57:08.000Z
|
qlazy/util.py
|
samn33/qlazy
|
b215febfec0a3b8192e57a20ec85f14576745a89
|
[
"Apache-2.0"
] | 3
|
2020-02-26T16:21:18.000Z
|
2022-03-31T00:46:53.000Z
|
qlazy/util.py
|
samn33/qlazy
|
b215febfec0a3b8192e57a20ec85f14576745a89
|
[
"Apache-2.0"
] | 3
|
2021-01-28T05:38:55.000Z
|
2021-10-30T12:19:19.000Z
|
# -*- coding: utf-8 -*-
import math
import numpy as np
from qlazy.error import *
from qlazy.config import *
def get_lib_ext():
import platform
if platform.system() == 'Darwin':
return 'dylib'
else:
return 'so'
def qstate_check_args(qs, kind=None, qid=None, shots=None, angle=None,
phase=None, phase1=None, phase2=None):
for q in qid:
if (q >= qs.qubit_num) or (q < 0):
raise QState_OutOfBound()
qnum = get_qgate_qubit_num(kind)
if qnum == 0: # any qubit number
# check qubit number
if len(qid) > qs.qubit_num:
raise QState_TooManyArguments()
elif len(qid) < 1:
raise QState_NeedMoreArguments()
else:
pass
# check same qubit number
if len(set(qid)) != len(qid):
raise QState_SameQubitID()
elif qnum == 1:
# check qubit number
if len(qid) > qnum:
raise QState_TooManyArguments()
elif len(qid) < qnum:
raise QState_NeedMoreArguments()
else:
return True
elif qnum == 2:
# check qubit number
if len(qid) > qnum:
raise QState_TooManyArguments()
elif len(qid) < qnum:
raise QState_NeedMoreArguments()
else:
pass
# check same qubit number
if (qid[0]==qid[1]):
raise QState_SameQubitID()
else:
return True
elif qnum == 3:
# check qubit number
if len(qid) > qnum:
raise QState_TooManyArguments()
elif len(qid) < qnum:
raise QState_NeedMoreArguments()
else:
pass
# check same qubit id
if (qid[0]==qid[1] or qid[1]==qid[2] or qid[2]==qid[0]):
raise QState_SameQubitID()
else:
return True
def densop_check_args(de, kind=None, qid=None, shots=None, angle=None,
phase=None, phase1=None, phase2=None):
qubit_num = int(math.log2(de.row))
for q in qid:
if (q >= qubit_num) or (q < 0):
raise QState_OutOfBound()
qnum = get_qgate_qubit_num(kind)
if qnum == 0: # any qubit number
# check qubit number
if len(qid) > qubit_num:
raise QState_TooManyArguments()
elif len(qid) < 1:
raise QState_NeedMoreArguments()
else:
pass
# check same qubit number
if len(set(qid)) != len(qid):
raise QState_SameQubitID()
elif qnum == 1:
# check qubit number
if len(qid) > qnum:
raise QState_TooManyArguments()
elif len(qid) < qnum:
raise QState_NeedMoreArguments()
else:
return True
elif qnum == 2:
# check qubit number
if len(qid) > qnum:
raise QState_TooManyArguments()
elif len(qid) < qnum:
raise QState_NeedMoreArguments()
else:
pass
# check same qubit number
if (qid[0]==qid[1]):
raise QState_SameQubitID()
else:
return True
elif qnum == 3:
# check qubit number
if len(qid) > qnum:
raise QState_TooManyArguments()
elif len(qid) < qnum:
raise QState_NeedMoreArguments()
else:
pass
# check same qubit id
if (qid[0]==qid[1] or qid[1]==qid[2] or qid[2]==qid[0]):
raise QState_SameQubitID()
else:
return True
def get_qgate_qubit_num(kind=None):
if (kind==SHOW or kind==MEASURE or
kind==MEASURE_X or kind==MEASURE_Y or kind==MEASURE_Z): # 0 if any number
return 0
elif (kind==BLOCH or kind==PAULI_X or kind==PAULI_Y or kind==PAULI_Z or
kind==ROOT_PAULI_X or kind==ROOT_PAULI_X_ or kind==HADAMARD or
kind==PHASE_SHIFT_S or kind==PHASE_SHIFT_S_ or
kind==PHASE_SHIFT_T or kind==PHASE_SHIFT_T_ or kind==PHASE_SHIFT or
kind==ROTATION_X or kind==ROTATION_Y or kind==ROTATION_Z or
kind==ROTATION_U1 or kind==ROTATION_U2 or kind==ROTATION_U3):
return 1
elif (kind==CONTROLLED_X or kind==CONTROLLED_Y or kind==CONTROLLED_Z or
kind==CONTROLLED_XR or kind==CONTROLLED_XR_ or kind==CONTROLLED_H or
kind==CONTROLLED_S or kind==CONTROLLED_S_ or kind==CONTROLLED_T or
kind==CONTROLLED_T_ or kind==SWAP_QUBITS or kind==CONTROLLED_P or
kind==CONTROLLED_RX or kind==CONTROLLED_RY or kind==CONTROLLED_RZ or
kind==CONTROLLED_U1 or kind==CONTROLLED_U2 or kind==CONTROLLED_U3 or
kind==MEASURE_BELL):
return 2
else:
raise QState_UnknownQgateKind()
def get_qgate_param_num(kind=None):
if (kind==SHOW or kind==BLOCH or
kind==MEASURE or kind==MEASURE_X or kind==MEASURE_Y or kind==MEASURE_Z or kind==MEASURE_BELL or
kind==PAULI_X or kind==PAULI_Y or kind==PAULI_Z or
kind==ROOT_PAULI_X or kind==ROOT_PAULI_X_ or kind==HADAMARD or
kind==PHASE_SHIFT_S or kind==PHASE_SHIFT_S_ or kind==PHASE_SHIFT_T or kind==PHASE_SHIFT_T_ or
kind==CONTROLLED_X or kind==CONTROLLED_Y or kind==CONTROLLED_Z or
kind==CONTROLLED_XR or kind==CONTROLLED_XR_ or kind==CONTROLLED_H or
kind==CONTROLLED_S or kind==CONTROLLED_S_ or kind==CONTROLLED_T or kind==CONTROLLED_T_ or kind==SWAP_QUBITS):
return 0
elif (kind==PHASE_SHIFT or
kind==ROTATION_X or kind==ROTATION_Y or kind==ROTATION_Z or
kind==ROTATION_U1 or kind==CONTROLLED_P or
kind==CONTROLLED_RX or kind==CONTROLLED_RY or kind==CONTROLLED_RZ or
kind==CONTROLLED_U1):
return 1
elif (kind==ROTATION_U2 or kind==CONTROLLED_U2):
return 2
elif (kind==ROTATION_U3 or kind==CONTROLLED_U3):
return 3
else:
raise QState_UnknownQgateKind()
def is_clifford_gate(kind):
if kind in (PAULI_X, PAULI_Y, PAULI_Z, HADAMARD,
PHASE_SHIFT_S, PHASE_SHIFT_S_,
CONTROLLED_X, CONTROLLED_Y, CONTROLLED_Z):
return True
else:
return False
def is_measurement_gate(kind):
if kind in (MEASURE, MEASURE_X, MEASURE_Y, MEASURE_Z, MEASURE_BELL):
return True
else:
return False
def reverse_bit_order(vec_in):
vec_out = [0] * len(vec_in)
digits = np.log2(len(vec_in))
if not digits.is_integer():
raise ValueError("length of vector must be power of two")
for idx, val in enumerate(vec_in):
idx_binstr = '{:0{digits}b}'.format(idx, digits=int(digits))
idx_binstr_rev = ''.join(reversed(list(idx_binstr)))
idx_rev = int(idx_binstr_rev, 2)
vec_out[idx_rev] = val
return vec_out
| 31.917051
| 117
| 0.585186
| 918
| 6,926
| 4.212418
| 0.137255
| 0.119472
| 0.13654
| 0.046548
| 0.777088
| 0.738557
| 0.717869
| 0.717869
| 0.705456
| 0.705456
| 0
| 0.012393
| 0.324285
| 6,926
| 216
| 118
| 32.064815
| 0.813889
| 0.051834
| 0
| 0.648485
| 0
| 0
| 0.009623
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.048485
| false
| 0.036364
| 0.030303
| 0
| 0.2
| 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
|
bd33c99056f291a3f494151d96ed0cd458da9a85
| 24,771
|
py
|
Python
|
src/parser/parsetab.py
|
zurdi15/navigation_bot
|
5ba80ee6f2764e99467ed54bf702cd6454e8555d
|
[
"MIT"
] | 4
|
2019-03-13T18:48:05.000Z
|
2022-01-04T23:23:25.000Z
|
src/parser/parsetab.py
|
zurdi15/navigation_bot
|
5ba80ee6f2764e99467ed54bf702cd6454e8555d
|
[
"MIT"
] | null | null | null |
src/parser/parsetab.py
|
zurdi15/navigation_bot
|
5ba80ee6f2764e99467ed54bf702cd6454e8555d
|
[
"MIT"
] | 1
|
2020-04-16T15:24:54.000Z
|
2020-04-16T15:24:54.000Z
|
# parsetab.py
# This file is automatically generated. Do not edit.
# pylint: disable=W,C,R
_tabversion = '3.10'
_lr_method = 'LALR'
_lr_signature = 'AND ASSIGN COMMA DEF DIFF DIVIDE ELIF ELSE EQ FALSE FLOAT FOR GET GT ID IF IN INTEGER LBRACE LBRACKET LET LPAREN LT MINUS MINUSMINUS MULTIPLY NOT OR PLUS PLUSPLUS RBRACE RBRACKET RPAREN SEMI STRING TRUE WHILEcode : code sent\n\t\t\t\t| sent\n\t\t\t\t| emptysent : statement\n\t\t\t\t| instruction SEMIinstruction : assign\n\t\t\t\t\t | functionstatement : function_definition\n\t\t\t\t\t | for_statement\n\t\t\t\t\t | if_statement\n\t\t\t\t\t | while_statementfor_statement : FOR LPAREN for_valid_expr COMMA for_valid_expr COMMA for_valid_iter RPAREN LBRACE code RBRACE\n\t\t\t\t\t \t | FOR LPAREN ID IN ID RPAREN LBRACE code RBRACEfor_valid_expr : expr_num\n\t\t\t\t\t\t | expr_arithmfor_valid_iter : PLUS\n\t\t\t\t\t\t | PLUSPLUS\n\t\t\t\t\t\t | MINUS\n\t\t\t\t\t\t | MINUSMINUSif_statement : IF LPAREN logic_list RPAREN LBRACE code RBRACE\n\t\t\t \t\t\t| IF LPAREN logic_list RPAREN LBRACE code RBRACE elif_sent\n\t\t\t \t\t\t| IF LPAREN logic_list RPAREN LBRACE code RBRACE ELSE LBRACE code RBRACE\n\t\t\t \t\t\t| IF LPAREN logic_list RPAREN LBRACE code RBRACE elif_sent ELSE LBRACE code RBRACEelif_sent : ELIF LPAREN logic_list RPAREN LBRACE code RBRACE elif_sent\n\t\t\t\t\t | emptywhile_statement : WHILE LPAREN logic_list RPAREN LBRACE code RBRACEfunction_definition : DEF ID LPAREN RPAREN LBRACE code RBRACEassign : ID ASSIGN expr_type\n\t\t\t\t | ID ASSIGN expr_arithm\n\t\t\t\t | ID ASSIGN logic_list\n\t\t\t\t | ID ASSIGN expr_listassign : ID ASSIGN functionfunction : ID LPAREN list RPARENlist : list COMMA ID\n\t\t\t\t| list COMMA function\n\t\t\t\t| function\n\t\t\t\t| IDlist : list COMMA expr_type\n\t\t\t\t| expr_type\n\t\t\t\t| emptylist : list COMMA expr_arithm\n\t\t\t\t| list COMMA logic_list\n\t\t\t\t| expr_arithm\n\t\t\t\t| logic_listlogic_list : LPAREN logic_list RPARENlogic_list : logic_list AND logic_list\n\t\t\t\t\t | logic_list OR logic_list\n\t\t\t\t\t | expr_boolexpr_bool : expr_bool EQ expr_bool\n\t\t\t\t\t | expr_bool LT expr_bool\n\t\t\t\t\t | expr_bool LET expr_bool\n\t\t\t\t\t | expr_bool GT expr_bool\n\t\t\t\t\t | expr_bool GET expr_bool\n\t\t\t\t\t | expr_bool DIFF expr_bool\n\t\t\t\t\t | NOT expr_boolexpr_bool : functionexpr_bool : expr_type\n\t\t\t\t\t | expr_arithmexpr_arithm : LPAREN expr_arithm RPARENexpr_arithm : expr_arithm PLUS expr_arithm\n\t\t\t\t\t | expr_arithm MINUS expr_arithm\n\t\t\t\t\t | expr_arithm MULTIPLY expr_arithm\n\t\t\t\t\t | expr_arithm DIVIDE expr_arithm\n\t\t\t\t\t | MINUS expr_arithmexpr_arithm : ID\n\t\t\t\t\t | functionexpr_arithm : expr_typefunction : sent_index_listsent_index_list : sent_index_list LBRACKET ID RBRACKET\n\t\t\t\t\t\t | ID LBRACKET ID RBRACKETsent_index_list : sent_index_list LBRACKET INTEGER RBRACKET\n\t\t\t\t\t\t | ID LBRACKET INTEGER RBRACKETexpr_list : LBRACKET expr_inside_list RBRACKETexpr_inside_list : expr_inside_list COMMA expr_type\n\t\t\t\t\t\t\t| expr_inside_list COMMA expr_bool\n\t\t\t\t\t\t\t| expr_type\n\t\t\t\t\t\t\t| expr_bool\n\t\t\t\t\t\t\t| emptyexpr_type : expr_num\n\t\t\t\t\t | expr_stringexpr_bool : TRUEexpr_bool : FALSEexpr_num : FLOAT\n\t\t\t\t\t| INTEGERexpr_string : STRINGempty :'
_lr_action_items = {'DEF':([0,1,2,3,4,6,7,8,9,18,19,106,130,131,132,137,138,139,145,146,147,149,150,153,154,155,157,159,160,161,163,164,165,167,168,169,170,171,],[12,12,-2,-3,-4,-8,-9,-10,-11,-1,-5,12,12,12,12,12,12,-27,12,-20,-26,12,-21,-25,12,-13,12,12,12,12,-12,12,-22,-23,12,12,-86,-24,]),'FOR':([0,1,2,3,4,6,7,8,9,18,19,106,130,131,132,137,138,139,145,146,147,149,150,153,154,155,157,159,160,161,163,164,165,167,168,169,170,171,],[14,14,-2,-3,-4,-8,-9,-10,-11,-1,-5,14,14,14,14,14,14,-27,14,-20,-26,14,-21,-25,14,-13,14,14,14,14,-12,14,-22,-23,14,14,-86,-24,]),'IF':([0,1,2,3,4,6,7,8,9,18,19,106,130,131,132,137,138,139,145,146,147,149,150,153,154,155,157,159,160,161,163,164,165,167,168,169,170,171,],[15,15,-2,-3,-4,-8,-9,-10,-11,-1,-5,15,15,15,15,15,15,-27,15,-20,-26,15,-21,-25,15,-13,15,15,15,15,-12,15,-22,-23,15,15,-86,-24,]),'WHILE':([0,1,2,3,4,6,7,8,9,18,19,106,130,131,132,137,138,139,145,146,147,149,150,153,154,155,157,159,160,161,163,164,165,167,168,169,170,171,],[16,16,-2,-3,-4,-8,-9,-10,-11,-1,-5,16,16,16,16,16,16,-27,16,-20,-26,16,-21,-25,16,-13,16,16,16,16,-12,16,-22,-23,16,16,-86,-24,]),'ID':([0,1,2,3,4,6,7,8,9,12,18,19,21,22,23,24,25,26,27,37,38,40,44,56,63,73,74,75,76,77,78,84,85,86,87,88,89,96,100,101,106,122,130,131,132,137,138,139,145,146,147,149,150,153,154,155,157,158,159,160,161,163,164,165,167,168,169,170,171,],[13,13,-2,-3,-4,-8,-9,-10,-11,20,-1,-5,29,47,54,58,68,68,70,29,29,68,68,29,29,29,29,29,29,68,68,68,68,68,68,68,68,123,29,129,13,68,13,13,13,13,13,-27,13,-20,-26,13,-21,-25,13,-13,13,68,13,13,13,-12,13,-22,-23,13,13,-86,-24,]),'$end':([0,1,2,3,4,6,7,8,9,18,19,139,146,147,150,153,155,163,165,167,170,171,],[-86,0,-2,-3,-4,-8,-9,-10,-11,-1,-5,-27,-20,-26,-21,-25,-13,-12,-22,-23,-86,-24,]),'RBRACE':([2,3,4,6,7,8,9,18,19,106,130,131,132,137,138,139,145,146,147,149,150,153,154,155,157,159,160,161,163,164,165,167,168,169,170,171,],[-2,-3,-4,-8,-9,-10,-11,-1,-5,-86,-86,-86,139,146,147,-27,-86,-20,-26,155,-21,-25,-86,-13,-86,163,-86,165,-12,167,-22,-23,-86,170,-86,-24,]),'SEMI':([5,10,11,17,29,30,31,32,33,34,35,36,39,41,42,43,45,46,61,62,65,66,67,68,83,94,95,97,98,104,105,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,],[19,-6,-7,-68,-65,-28,-29,-30,-31,-32,-79,-80,-48,-83,-84,-85,-81,-82,-66,-67,-56,-57,-58,-65,-64,-55,-33,-70,-72,-69,-71,-60,-61,-62,-63,-46,-47,-59,-45,-49,-50,-51,-52,-53,-54,-73,]),'ASSIGN':([13,],[21,]),'LPAREN':([13,14,15,16,20,21,22,24,25,26,29,37,38,40,44,47,56,58,63,68,73,74,75,76,77,78,84,85,86,87,88,89,96,100,122,123,152,158,],[22,24,25,26,28,37,37,56,63,63,22,37,56,56,56,22,56,22,63,22,56,56,56,56,63,63,56,56,56,56,56,56,37,56,56,22,158,63,]),'LBRACKET':([13,17,21,29,47,58,68,97,98,104,105,123,],[23,27,40,23,23,23,23,-70,-72,-69,-71,23,]),'PLUS':([17,29,30,31,34,35,36,41,42,43,47,49,50,52,58,59,60,61,62,65,66,67,68,79,81,82,83,91,95,97,98,99,104,105,107,108,109,110,113,123,124,125,126,133,135,],[-68,-65,-67,73,-66,-79,-80,-83,-84,-85,-65,-66,-67,73,-65,-79,73,-66,-67,-66,-67,73,-65,73,-66,-67,73,-67,-33,-70,-72,73,-69,-71,73,73,73,73,-59,-65,-66,-67,73,-67,141,]),'MINUS':([17,21,22,24,25,26,29,30,31,34,35,36,37,38,40,41,42,43,44,47,49,50,52,56,58,59,60,61,62,63,65,66,67,68,73,74,75,76,77,78,79,81,82,83,84,85,86,87,88,89,91,95,96,97,98,99,100,104,105,107,108,109,110,113,122,123,124,125,126,133,135,158,],[-68,38,38,38,38,38,-65,-67,74,-66,-79,-80,38,38,38,-83,-84,-85,38,-65,-66,-67,74,38,-65,-79,74,-66,-67,38,-66,-67,74,-65,38,38,38,38,38,38,74,-66,-67,74,38,38,38,38,38,38,-67,-33,38,-70,-72,74,38,-69,-71,74,74,74,74,-59,38,-65,-66,-67,74,-67,143,38,]),'MULTIPLY':([17,29,30,31,34,35,36,41,42,43,47,49,50,52,58,59,60,61,62,65,66,67,68,79,81,82,83,91,95,97,98,99,104,105,107,108,109,110,113,123,124,125,126,133,],[-68,-65,-67,75,-66,-79,-80,-83,-84,-85,-65,-66,-67,75,-65,-79,75,-66,-67,-66,-67,75,-65,75,-66,-67,75,-67,-33,-70,-72,75,-69,-71,75,75,75,75,-59,-65,-66,-67,75,-67,]),'DIVIDE':([17,29,30,31,34,35,36,41,42,43,47,49,50,52,58,59,60,61,62,65,66,67,68,79,81,82,83,91,95,97,98,99,104,105,107,108,109,110,113,123,124,125,126,133,],[-68,-65,-67,76,-66,-79,-80,-83,-84,-85,-65,-66,-67,76,-65,-79,76,-66,-67,-66,-67,76,-65,76,-66,-67,76,-67,-33,-70,-72,76,-69,-71,76,76,76,76,-59,-65,-66,-67,76,-67,]),'EQ':([17,29,30,31,34,35,36,39,41,42,43,45,46,47,49,50,52,61,62,65,66,67,68,79,81,82,83,91,92,94,95,97,98,104,105,107,108,109,110,113,115,116,117,118,119,120,123,124,125,126,133,134,],[-68,-65,-57,-58,-56,-79,-80,84,-83,-84,-85,-81,-82,-65,-56,-57,-58,-66,-67,-56,-57,-58,-65,-58,-56,-57,-64,-57,84,84,-33,-70,-72,-69,-71,-60,-61,-62,-63,-59,84,84,84,84,84,84,-65,-56,-57,-58,-57,84,]),'LT':([17,29,30,31,34,35,36,39,41,42,43,45,46,47,49,50,52,61,62,65,66,67,68,79,81,82,83,91,92,94,95,97,98,104,105,107,108,109,110,113,115,116,117,118,119,120,123,124,125,126,133,134,],[-68,-65,-57,-58,-56,-79,-80,85,-83,-84,-85,-81,-82,-65,-56,-57,-58,-66,-67,-56,-57,-58,-65,-58,-56,-57,-64,-57,85,85,-33,-70,-72,-69,-71,-60,-61,-62,-63,-59,85,85,85,85,85,85,-65,-56,-57,-58,-57,85,]),'LET':([17,29,30,31,34,35,36,39,41,42,43,45,46,47,49,50,52,61,62,65,66,67,68,79,81,82,83,91,92,94,95,97,98,104,105,107,108,109,110,113,115,116,117,118,119,120,123,124,125,126,133,134,],[-68,-65,-57,-58,-56,-79,-80,86,-83,-84,-85,-81,-82,-65,-56,-57,-58,-66,-67,-56,-57,-58,-65,-58,-56,-57,-64,-57,86,86,-33,-70,-72,-69,-71,-60,-61,-62,-63,-59,86,86,86,86,86,86,-65,-56,-57,-58,-57,86,]),'GT':([17,29,30,31,34,35,36,39,41,42,43,45,46,47,49,50,52,61,62,65,66,67,68,79,81,82,83,91,92,94,95,97,98,104,105,107,108,109,110,113,115,116,117,118,119,120,123,124,125,126,133,134,],[-68,-65,-57,-58,-56,-79,-80,87,-83,-84,-85,-81,-82,-65,-56,-57,-58,-66,-67,-56,-57,-58,-65,-58,-56,-57,-64,-57,87,87,-33,-70,-72,-69,-71,-60,-61,-62,-63,-59,87,87,87,87,87,87,-65,-56,-57,-58,-57,87,]),'GET':([17,29,30,31,34,35,36,39,41,42,43,45,46,47,49,50,52,61,62,65,66,67,68,79,81,82,83,91,92,94,95,97,98,104,105,107,108,109,110,113,115,116,117,118,119,120,123,124,125,126,133,134,],[-68,-65,-57,-58,-56,-79,-80,88,-83,-84,-85,-81,-82,-65,-56,-57,-58,-66,-67,-56,-57,-58,-65,-58,-56,-57,-64,-57,88,88,-33,-70,-72,-69,-71,-60,-61,-62,-63,-59,88,88,88,88,88,88,-65,-56,-57,-58,-57,88,]),'DIFF':([17,29,30,31,34,35,36,39,41,42,43,45,46,47,49,50,52,61,62,65,66,67,68,79,81,82,83,91,92,94,95,97,98,104,105,107,108,109,110,113,115,116,117,118,119,120,123,124,125,126,133,134,],[-68,-65,-57,-58,-56,-79,-80,89,-83,-84,-85,-81,-82,-65,-56,-57,-58,-66,-67,-56,-57,-58,-65,-58,-56,-57,-64,-57,89,89,-33,-70,-72,-69,-71,-60,-61,-62,-63,-59,89,89,89,89,89,89,-65,-56,-57,-58,-57,89,]),'AND':([17,29,30,31,32,34,35,36,39,41,42,43,45,46,47,49,50,52,53,61,62,64,65,66,67,68,69,79,80,81,82,83,94,95,97,98,104,105,107,108,109,110,111,112,113,114,115,116,117,118,119,120,123,124,125,126,127,162,],[-68,-65,-57,-58,77,-56,-79,-80,-48,-83,-84,-85,-81,-82,-65,-56,-57,-58,77,-66,-67,77,-56,-57,-58,-65,77,-58,77,-56,-57,-64,-55,-33,-70,-72,-69,-71,-60,-61,-62,-63,77,77,-59,-45,-49,-50,-51,-52,-53,-54,-65,-56,-57,-58,77,77,]),'OR':([17,29,30,31,32,34,35,36,39,41,42,43,45,46,47,49,50,52,53,61,62,64,65,66,67,68,69,79,80,81,82,83,94,95,97,98,104,105,107,108,109,110,111,112,113,114,115,116,117,118,119,120,123,124,125,126,127,162,],[-68,-65,-57,-58,78,-56,-79,-80,-48,-83,-84,-85,-81,-82,-65,-56,-57,-58,78,-66,-67,78,-56,-57,-58,-65,78,-58,78,-56,-57,-64,-55,-33,-70,-72,-69,-71,-60,-61,-62,-63,78,78,-59,-45,-49,-50,-51,-52,-53,-54,-65,-56,-57,-58,78,78,]),'RPAREN':([17,22,28,29,35,36,39,41,42,43,45,46,47,48,49,50,51,52,53,61,62,64,65,66,67,68,69,79,80,81,82,83,94,95,97,98,99,104,105,107,108,109,110,111,112,113,114,115,116,117,118,119,120,123,124,125,126,127,129,140,141,142,143,144,162,],[-68,-86,72,-65,-79,-80,-48,-83,-84,-85,-81,-82,-37,95,-36,-39,-40,-43,-44,-66,-67,102,-56,-57,-58,-65,103,113,114,-56,-57,-64,-55,-33,-70,-72,113,-69,-71,-60,-61,-62,-63,-46,-47,-59,-45,-49,-50,-51,-52,-53,-54,-34,-35,-38,-41,-42,136,148,-16,-17,-18,-19,166,]),'COMMA':([17,22,29,35,36,39,40,41,42,43,45,46,47,48,49,50,51,52,53,57,58,59,60,61,62,65,66,67,68,83,90,91,92,93,94,95,97,98,104,105,107,108,109,110,111,112,113,114,115,116,117,118,119,120,123,124,125,126,127,128,133,134,],[-68,-86,-65,-79,-80,-48,-86,-83,-84,-85,-81,-82,-37,96,-36,-39,-40,-43,-44,100,-65,-14,-15,-66,-67,-56,-57,-58,-65,-64,122,-57,-77,-78,-55,-33,-70,-72,-69,-71,-60,-61,-62,-63,-46,-47,-59,-45,-49,-50,-51,-52,-53,-54,-34,-35,-38,-41,-42,135,-57,-75,]),'RBRACKET':([17,29,35,36,40,41,42,43,45,46,54,55,61,62,65,66,67,68,70,71,83,90,91,92,93,94,95,97,98,104,105,107,108,109,110,113,115,116,117,118,119,120,133,134,],[-68,-65,-79,-80,-86,-83,-84,-85,-81,-82,97,98,-66,-67,-56,-57,-58,-65,104,105,-64,121,-57,-77,-78,-55,-33,-70,-72,-69,-71,-60,-61,-62,-63,-59,-49,-50,-51,-52,-53,-54,-57,-75,]),'FLOAT':([21,22,24,25,26,37,38,40,44,56,63,73,74,75,76,77,78,84,85,86,87,88,89,96,100,122,158,],[41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,]),'INTEGER':([21,22,23,24,25,26,27,37,38,40,44,56,63,73,74,75,76,77,78,84,85,86,87,88,89,96,100,122,158,],[42,42,55,42,42,42,71,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,]),'STRING':([21,22,24,25,26,37,38,40,44,56,63,73,74,75,76,77,78,84,85,86,87,88,89,96,100,122,158,],[43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,]),'NOT':([21,22,25,26,37,40,44,63,77,78,84,85,86,87,88,89,96,122,158,],[44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,]),'TRUE':([21,22,25,26,37,40,44,63,77,78,84,85,86,87,88,89,96,122,158,],[45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,]),'FALSE':([21,22,25,26,37,40,44,63,77,78,84,85,86,87,88,89,96,122,158,],[46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,]),'IN':([58,],[101,]),'LBRACE':([72,102,103,136,148,151,156,166,],[106,130,131,145,154,157,160,168,]),'PLUSPLUS':([135,],[142,]),'MINUSMINUS':([135,],[144,]),'ELSE':([146,150,153,170,171,],[151,156,-25,-86,-24,]),'ELIF':([146,170,],[152,152,]),}
_lr_action = {}
for _k, _v in _lr_action_items.items():
for _x,_y in zip(_v[0],_v[1]):
if not _x in _lr_action: _lr_action[_x] = {}
_lr_action[_x][_k] = _y
del _lr_action_items
_lr_goto_items = {'code':([0,106,130,131,145,154,157,160,168,],[1,132,137,138,149,159,161,164,169,]),'sent':([0,1,106,130,131,132,137,138,145,149,154,157,159,160,161,164,168,169,],[2,18,2,2,2,18,18,18,2,18,2,2,18,2,18,18,2,18,]),'empty':([0,22,40,106,130,131,145,146,154,157,160,168,170,],[3,51,93,3,3,3,3,153,3,3,3,3,153,]),'statement':([0,1,106,130,131,132,137,138,145,149,154,157,159,160,161,164,168,169,],[4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,]),'instruction':([0,1,106,130,131,132,137,138,145,149,154,157,159,160,161,164,168,169,],[5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,]),'function_definition':([0,1,106,130,131,132,137,138,145,149,154,157,159,160,161,164,168,169,],[6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,]),'for_statement':([0,1,106,130,131,132,137,138,145,149,154,157,159,160,161,164,168,169,],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,]),'if_statement':([0,1,106,130,131,132,137,138,145,149,154,157,159,160,161,164,168,169,],[8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,]),'while_statement':([0,1,106,130,131,132,137,138,145,149,154,157,159,160,161,164,168,169,],[9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,]),'assign':([0,1,106,130,131,132,137,138,145,149,154,157,159,160,161,164,168,169,],[10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,]),'function':([0,1,21,22,24,25,26,37,38,40,44,56,63,73,74,75,76,77,78,84,85,86,87,88,89,96,100,106,122,130,131,132,137,138,145,149,154,157,158,159,160,161,164,168,169,],[11,11,34,49,61,65,65,81,61,65,65,61,81,61,61,61,61,65,65,65,65,65,65,65,65,124,61,11,65,11,11,11,11,11,11,11,11,11,65,11,11,11,11,11,11,]),'sent_index_list':([0,1,21,22,24,25,26,37,38,40,44,56,63,73,74,75,76,77,78,84,85,86,87,88,89,96,100,106,122,130,131,132,137,138,145,149,154,157,158,159,160,161,164,168,169,],[17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,]),'expr_type':([21,22,24,25,26,37,38,40,44,56,63,73,74,75,76,77,78,84,85,86,87,88,89,96,100,122,158,],[30,50,62,66,66,82,62,91,66,62,82,62,62,62,62,66,66,66,66,66,66,66,66,125,62,133,66,]),'expr_arithm':([21,22,24,25,26,37,38,40,44,56,63,73,74,75,76,77,78,84,85,86,87,88,89,96,100,122,158,],[31,52,60,67,67,79,83,67,67,99,79,107,108,109,110,67,67,67,67,67,67,67,67,126,60,67,67,]),'logic_list':([21,22,25,26,37,63,77,78,96,158,],[32,53,64,69,80,80,111,112,127,162,]),'expr_list':([21,],[33,]),'expr_num':([21,22,24,25,26,37,38,40,44,56,63,73,74,75,76,77,78,84,85,86,87,88,89,96,100,122,158,],[35,35,59,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,59,35,35,]),'expr_string':([21,22,24,25,26,37,38,40,44,56,63,73,74,75,76,77,78,84,85,86,87,88,89,96,100,122,158,],[36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,]),'expr_bool':([21,22,25,26,37,40,44,63,77,78,84,85,86,87,88,89,96,122,158,],[39,39,39,39,39,92,94,39,39,39,115,116,117,118,119,120,39,134,39,]),'list':([22,],[48,]),'for_valid_expr':([24,100,],[57,128,]),'expr_inside_list':([40,],[90,]),'for_valid_iter':([135,],[140,]),'elif_sent':([146,170,],[150,171,]),}
_lr_goto = {}
for _k, _v in _lr_goto_items.items():
for _x, _y in zip(_v[0], _v[1]):
if not _x in _lr_goto: _lr_goto[_x] = {}
_lr_goto[_x][_k] = _y
del _lr_goto_items
_lr_productions = [
("S' -> code","S'",1,None,None,None),
('code -> code sent','code',2,'p_code','nbz_parser.py',41),
('code -> sent','code',1,'p_code','nbz_parser.py',42),
('code -> empty','code',1,'p_code','nbz_parser.py',43),
('sent -> statement','sent',1,'p_sent','nbz_parser.py',54),
('sent -> instruction SEMI','sent',2,'p_sent','nbz_parser.py',55),
('instruction -> assign','instruction',1,'p_instruction','nbz_parser.py',59),
('instruction -> function','instruction',1,'p_instruction','nbz_parser.py',60),
('statement -> function_definition','statement',1,'p_statement','nbz_parser.py',64),
('statement -> for_statement','statement',1,'p_statement','nbz_parser.py',65),
('statement -> if_statement','statement',1,'p_statement','nbz_parser.py',66),
('statement -> while_statement','statement',1,'p_statement','nbz_parser.py',67),
('for_statement -> FOR LPAREN for_valid_expr COMMA for_valid_expr COMMA for_valid_iter RPAREN LBRACE code RBRACE','for_statement',11,'p_sent_for_flow_int','nbz_parser.py',71),
('for_statement -> FOR LPAREN ID IN ID RPAREN LBRACE code RBRACE','for_statement',9,'p_sent_for_flow_int','nbz_parser.py',72),
('for_valid_expr -> expr_num','for_valid_expr',1,'p_for_valid_expressions_num','nbz_parser.py',85),
('for_valid_expr -> expr_arithm','for_valid_expr',1,'p_for_valid_expressions_num','nbz_parser.py',86),
('for_valid_iter -> PLUS','for_valid_iter',1,'p_for_valid_iterators','nbz_parser.py',90),
('for_valid_iter -> PLUSPLUS','for_valid_iter',1,'p_for_valid_iterators','nbz_parser.py',91),
('for_valid_iter -> MINUS','for_valid_iter',1,'p_for_valid_iterators','nbz_parser.py',92),
('for_valid_iter -> MINUSMINUS','for_valid_iter',1,'p_for_valid_iterators','nbz_parser.py',93),
('if_statement -> IF LPAREN logic_list RPAREN LBRACE code RBRACE','if_statement',7,'p_sent_if_flow','nbz_parser.py',97),
('if_statement -> IF LPAREN logic_list RPAREN LBRACE code RBRACE elif_sent','if_statement',8,'p_sent_if_flow','nbz_parser.py',98),
('if_statement -> IF LPAREN logic_list RPAREN LBRACE code RBRACE ELSE LBRACE code RBRACE','if_statement',11,'p_sent_if_flow','nbz_parser.py',99),
('if_statement -> IF LPAREN logic_list RPAREN LBRACE code RBRACE elif_sent ELSE LBRACE code RBRACE','if_statement',12,'p_sent_if_flow','nbz_parser.py',100),
('elif_sent -> ELIF LPAREN logic_list RPAREN LBRACE code RBRACE elif_sent','elif_sent',8,'p_sent_elif_flow','nbz_parser.py',130),
('elif_sent -> empty','elif_sent',1,'p_sent_elif_flow','nbz_parser.py',131),
('while_statement -> WHILE LPAREN logic_list RPAREN LBRACE code RBRACE','while_statement',7,'p_sent_while_flow','nbz_parser.py',141),
('function_definition -> DEF ID LPAREN RPAREN LBRACE code RBRACE','function_definition',7,'p_function_definition','nbz_parser.py',148),
('assign -> ID ASSIGN expr_type','assign',3,'p_assign_expr','nbz_parser.py',156),
('assign -> ID ASSIGN expr_arithm','assign',3,'p_assign_expr','nbz_parser.py',157),
('assign -> ID ASSIGN logic_list','assign',3,'p_assign_expr','nbz_parser.py',158),
('assign -> ID ASSIGN expr_list','assign',3,'p_assign_expr','nbz_parser.py',159),
('assign -> ID ASSIGN function','assign',3,'p_assign_func','nbz_parser.py',165),
('function -> ID LPAREN list RPAREN','function',4,'p_expr_funcs','nbz_parser.py',172),
('list -> list COMMA ID','list',3,'p_list_var','nbz_parser.py',182),
('list -> list COMMA function','list',3,'p_list_var','nbz_parser.py',183),
('list -> function','list',1,'p_list_var','nbz_parser.py',184),
('list -> ID','list',1,'p_list_var','nbz_parser.py',185),
('list -> list COMMA expr_type','list',3,'p_list_value','nbz_parser.py',224),
('list -> expr_type','list',1,'p_list_value','nbz_parser.py',225),
('list -> empty','list',1,'p_list_value','nbz_parser.py',226),
('list -> list COMMA expr_arithm','list',3,'p_list_expression','nbz_parser.py',237),
('list -> list COMMA logic_list','list',3,'p_list_expression','nbz_parser.py',238),
('list -> expr_arithm','list',1,'p_list_expression','nbz_parser.py',239),
('list -> logic_list','list',1,'p_list_expression','nbz_parser.py',240),
('logic_list -> LPAREN logic_list RPAREN','logic_list',3,'p_group_logic_list','nbz_parser.py',248),
('logic_list -> logic_list AND logic_list','logic_list',3,'p_logic_list','nbz_parser.py',252),
('logic_list -> logic_list OR logic_list','logic_list',3,'p_logic_list','nbz_parser.py',253),
('logic_list -> expr_bool','logic_list',1,'p_logic_list','nbz_parser.py',254),
('expr_bool -> expr_bool EQ expr_bool','expr_bool',3,'p_expr_logical','nbz_parser.py',264),
('expr_bool -> expr_bool LT expr_bool','expr_bool',3,'p_expr_logical','nbz_parser.py',265),
('expr_bool -> expr_bool LET expr_bool','expr_bool',3,'p_expr_logical','nbz_parser.py',266),
('expr_bool -> expr_bool GT expr_bool','expr_bool',3,'p_expr_logical','nbz_parser.py',267),
('expr_bool -> expr_bool GET expr_bool','expr_bool',3,'p_expr_logical','nbz_parser.py',268),
('expr_bool -> expr_bool DIFF expr_bool','expr_bool',3,'p_expr_logical','nbz_parser.py',269),
('expr_bool -> NOT expr_bool','expr_bool',2,'p_expr_logical','nbz_parser.py',270),
('expr_bool -> function','expr_bool',1,'p_logic_valid_var','nbz_parser.py',287),
('expr_bool -> expr_type','expr_bool',1,'p_logic_valid_type','nbz_parser.py',297),
('expr_bool -> expr_arithm','expr_bool',1,'p_logic_valid_type','nbz_parser.py',298),
('expr_arithm -> LPAREN expr_arithm RPAREN','expr_arithm',3,'p_group_expr_arithmethic','nbz_parser.py',302),
('expr_arithm -> expr_arithm PLUS expr_arithm','expr_arithm',3,'p_expr_aritmethic','nbz_parser.py',306),
('expr_arithm -> expr_arithm MINUS expr_arithm','expr_arithm',3,'p_expr_aritmethic','nbz_parser.py',307),
('expr_arithm -> expr_arithm MULTIPLY expr_arithm','expr_arithm',3,'p_expr_aritmethic','nbz_parser.py',308),
('expr_arithm -> expr_arithm DIVIDE expr_arithm','expr_arithm',3,'p_expr_aritmethic','nbz_parser.py',309),
('expr_arithm -> MINUS expr_arithm','expr_arithm',2,'p_expr_aritmethic','nbz_parser.py',310),
('expr_arithm -> ID','expr_arithm',1,'p_arithm_valid_var','nbz_parser.py',323),
('expr_arithm -> function','expr_arithm',1,'p_arithm_valid_var','nbz_parser.py',324),
('expr_arithm -> expr_type','expr_arithm',1,'p_arithm_valid_num','nbz_parser.py',343),
('function -> sent_index_list','function',1,'p_sent_index_list','nbz_parser.py',347),
('sent_index_list -> sent_index_list LBRACKET ID RBRACKET','sent_index_list',4,'p_index_list_var','nbz_parser.py',351),
('sent_index_list -> ID LBRACKET ID RBRACKET','sent_index_list',4,'p_index_list_var','nbz_parser.py',352),
('sent_index_list -> sent_index_list LBRACKET INTEGER RBRACKET','sent_index_list',4,'p_index_list_value','nbz_parser.py',378),
('sent_index_list -> ID LBRACKET INTEGER RBRACKET','sent_index_list',4,'p_index_list_value','nbz_parser.py',379),
('expr_list -> LBRACKET expr_inside_list RBRACKET','expr_list',3,'p_expr_list','nbz_parser.py',393),
('expr_inside_list -> expr_inside_list COMMA expr_type','expr_inside_list',3,'p_list_expr_inside_list','nbz_parser.py',397),
('expr_inside_list -> expr_inside_list COMMA expr_bool','expr_inside_list',3,'p_list_expr_inside_list','nbz_parser.py',398),
('expr_inside_list -> expr_type','expr_inside_list',1,'p_list_expr_inside_list','nbz_parser.py',399),
('expr_inside_list -> expr_bool','expr_inside_list',1,'p_list_expr_inside_list','nbz_parser.py',400),
('expr_inside_list -> empty','expr_inside_list',1,'p_list_expr_inside_list','nbz_parser.py',401),
('expr_type -> expr_num','expr_type',1,'p_expr_type','nbz_parser.py',412),
('expr_type -> expr_string','expr_type',1,'p_expr_type','nbz_parser.py',413),
('expr_bool -> TRUE','expr_bool',1,'p_expr_bool_true','nbz_parser.py',417),
('expr_bool -> FALSE','expr_bool',1,'p_expr_bool_false','nbz_parser.py',421),
('expr_num -> FLOAT','expr_num',1,'p_expr_number','nbz_parser.py',425),
('expr_num -> INTEGER','expr_num',1,'p_expr_number','nbz_parser.py',426),
('expr_string -> STRING','expr_string',1,'p_expr_string','nbz_parser.py',430),
('empty -> <empty>','empty',0,'p_empty','nbz_parser.py',435),
]
| 211.717949
| 9,913
| 0.669573
| 5,692
| 24,771
| 2.789705
| 0.064125
| 0.025191
| 0.028528
| 0.025694
| 0.69784
| 0.653631
| 0.612885
| 0.565275
| 0.493923
| 0.468228
| 0
| 0.329761
| 0.043276
| 24,771
| 116
| 9,914
| 213.543103
| 0.340268
| 0.003391
| 0
| 0.018868
| 1
| 0.009434
| 0.393647
| 0.047849
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
1fd337fe2cb37361caa4439288d10d80e484e1ad
| 1,622
|
py
|
Python
|
algo/test/test_interval_tree.py
|
ssavinash1/Algorithm_stanford
|
f2588b6bcac2b0858e78b819e6e8402109e80ee2
|
[
"MIT"
] | 24
|
2016-03-21T07:53:54.000Z
|
2020-06-29T12:16:36.000Z
|
algo/test/test_interval_tree.py
|
ssavinash1/Algorithm_stanford
|
f2588b6bcac2b0858e78b819e6e8402109e80ee2
|
[
"MIT"
] | 5
|
2015-09-29T17:12:36.000Z
|
2020-03-26T20:51:56.000Z
|
algo/test/test_interval_tree.py
|
ssavinash1/Algorithm_stanford
|
f2588b6bcac2b0858e78b819e6e8402109e80ee2
|
[
"MIT"
] | 12
|
2016-05-24T16:48:32.000Z
|
2020-10-02T12:22:09.000Z
|
# -*- coding: utf-8 -*-
import unittest
from src.interval_tree import IntervalTree
class TestIntervalTree(unittest.TestCase):
def test_insert(self):
tree = IntervalTree()
tree.insert((20, 36))
tree.insert((3, 41))
tree.insert((0, 1))
tree.insert((10, 15))
tree.insert((29, 99))
self.assertEqual(tree.root.key, 20, 'correct tree structure')
self.assertEqual(tree.root.end, 36, 'correct tree structure')
self.assertEqual(tree.root.high, 99, 'correct tree structure')
self.assertEqual(tree.root.left.key, 3, 'correct tree structure')
self.assertEqual(tree.root.left.end, 41, 'correct tree structure')
self.assertEqual(tree.root.left.high, 41, 'correct tree structure')
self.assertEqual(tree.root.left.left.key, 0, 'correct tree structure')
self.assertEqual(tree.root.left.left.end, 1, 'correct tree structure')
self.assertEqual(tree.root.left.left.high, 1, 'correct tree structure')
self.assertEqual(tree.root.left.right.key, 10, 'correct tree structure')
self.assertEqual(tree.root.left.right.end, 15, 'correct tree structure')
self.assertEqual(tree.root.left.right.high, 15, 'correct tree structure')
self.assertEqual(tree.root.right.key, 29, 'correct tree structure')
self.assertEqual(tree.root.right.end, 99, 'correct tree structure')
self.assertEqual(tree.root.right.high, 99, 'correct tree structure')
def test_delete(self):
pass
def test_lookup_value(self):
pass
def test_lookup_interval(self):
pass
| 37.72093
| 81
| 0.665845
| 211
| 1,622
| 5.085308
| 0.189573
| 0.209692
| 0.26561
| 0.321528
| 0.713886
| 0.646785
| 0.646785
| 0.566636
| 0.337372
| 0
| 0
| 0.034056
| 0.203453
| 1,622
| 42
| 82
| 38.619048
| 0.79644
| 0.012947
| 0
| 0.096774
| 0
| 0
| 0.206379
| 0
| 0
| 0
| 0
| 0
| 0.483871
| 1
| 0.129032
| false
| 0.096774
| 0.064516
| 0
| 0.225806
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
20f706af7b0f77b96ff9f0fa2171a681704796b2
| 30
|
py
|
Python
|
ncl/__init__.py
|
tachukao/ncl
|
92c2ba5e3f20c42dff3b9e2e7d93c8d6d49077a3
|
[
"MIT"
] | 1
|
2022-03-04T10:18:26.000Z
|
2022-03-04T10:18:26.000Z
|
ncl/__init__.py
|
tachukao/ncl
|
92c2ba5e3f20c42dff3b9e2e7d93c8d6d49077a3
|
[
"MIT"
] | null | null | null |
ncl/__init__.py
|
tachukao/ncl
|
92c2ba5e3f20c42dff3b9e2e7d93c8d6d49077a3
|
[
"MIT"
] | null | null | null |
from . import tasks, learners
| 15
| 29
| 0.766667
| 4
| 30
| 5.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 30
| 1
| 30
| 30
| 0.92
| 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
|
1f3a864bd5e64b3a18dd8d0b2996e11e26951b1e
| 162
|
py
|
Python
|
tests/python-reference/functions/non_tuple_starag.py
|
brownplt/lambda-py
|
c3ee39502c8953d36b886e5a203f2eb51d2f495b
|
[
"Apache-2.0"
] | 25
|
2015-04-16T04:31:49.000Z
|
2022-03-10T15:53:28.000Z
|
tests/python-reference/functions/non_tuple_starag.py
|
jpolitz/lambda-py
|
a2d1be7e017380414429a498435fb45975f546dd
|
[
"Apache-2.0"
] | 1
|
2018-11-21T22:40:02.000Z
|
2018-11-26T17:53:11.000Z
|
tests/python-reference/functions/non_tuple_starag.py
|
jpolitz/lambda-py
|
a2d1be7e017380414429a498435fb45975f546dd
|
[
"Apache-2.0"
] | 1
|
2021-03-26T03:36:19.000Z
|
2021-03-26T03:36:19.000Z
|
def f(a, b, c):
return (a, b, c)
___assertEqual(f(*[0, 1, 2]), (0, 1, 2))
___assertEqual(f(*"abc"), ('a', 'b', 'c'))
___assertEqual(f(*range(3)), (0, 1, 2))
| 23.142857
| 42
| 0.506173
| 30
| 162
| 2.433333
| 0.433333
| 0.082192
| 0.123288
| 0.383562
| 0.410959
| 0
| 0
| 0
| 0
| 0
| 0
| 0.074074
| 0.166667
| 162
| 6
| 43
| 27
| 0.466667
| 0
| 0
| 0
| 0
| 0
| 0.037037
| 0
| 0
| 0
| 0
| 0
| 0.6
| 1
| 0.2
| false
| 0
| 0
| 0.2
| 0.4
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
1f54ec16378c10af605db6b89c0390f6c31bf730
| 54
|
py
|
Python
|
nauci_service/config/settings/__init__.py
|
uilic/nauci-api
|
69c261d517c2c05632d78aaca3c02cfbf6ed8a82
|
[
"MIT"
] | null | null | null |
nauci_service/config/settings/__init__.py
|
uilic/nauci-api
|
69c261d517c2c05632d78aaca3c02cfbf6ed8a82
|
[
"MIT"
] | null | null | null |
nauci_service/config/settings/__init__.py
|
uilic/nauci-api
|
69c261d517c2c05632d78aaca3c02cfbf6ed8a82
|
[
"MIT"
] | null | null | null |
from .common_django import * # noqa: F401 isort:skip
| 27
| 53
| 0.740741
| 8
| 54
| 4.875
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 0.166667
| 54
| 1
| 54
| 54
| 0.8
| 0.388889
| 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
|
1f782e6a166a82188f04cacfe2401bbb3ec224bf
| 78
|
py
|
Python
|
__init__.py
|
DevmallyaK/Credit-Card-Fraud-Detection-Using-RL
|
cb5abb3c0a08dffb5d00244ebacddd9abcd6d77a
|
[
"MIT"
] | null | null | null |
__init__.py
|
DevmallyaK/Credit-Card-Fraud-Detection-Using-RL
|
cb5abb3c0a08dffb5d00244ebacddd9abcd6d77a
|
[
"MIT"
] | null | null | null |
__init__.py
|
DevmallyaK/Credit-Card-Fraud-Detection-Using-RL
|
cb5abb3c0a08dffb5d00244ebacddd9abcd6d77a
|
[
"MIT"
] | 1
|
2022-03-23T04:04:34.000Z
|
2022-03-23T04:04:34.000Z
|
"""Fraud Gym Enviornments."""
from gym_fraud.envs.fraud_env import FraudEnv
| 15.6
| 45
| 0.769231
| 11
| 78
| 5.272727
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 78
| 4
| 46
| 19.5
| 0.84058
| 0.294872
| 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
|
2f4fc9a7fc548e44b24a6f68c1de64570d794e25
| 100
|
py
|
Python
|
src/format_cef/__init__.py
|
slallum/format_cef
|
1827daa861267cd37bdbe5d7de2ce4e53933d3ba
|
[
"MIT"
] | 2
|
2020-04-28T19:26:19.000Z
|
2021-04-28T08:58:00.000Z
|
src/format_cef/__init__.py
|
slallum/format_cef
|
1827daa861267cd37bdbe5d7de2ce4e53933d3ba
|
[
"MIT"
] | 6
|
2017-11-17T14:30:35.000Z
|
2021-10-13T14:44:25.000Z
|
src/format_cef/__init__.py
|
slallum/format_cef
|
1827daa861267cd37bdbe5d7de2ce4e53933d3ba
|
[
"MIT"
] | 4
|
2019-02-07T17:27:07.000Z
|
2020-03-05T08:31:04.000Z
|
from __future__ import absolute_import
from ._cef.base import format_cef
__all__ = ["format_cef"]
| 16.666667
| 38
| 0.8
| 14
| 100
| 4.857143
| 0.571429
| 0.264706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.13
| 100
| 5
| 39
| 20
| 0.781609
| 0
| 0
| 0
| 0
| 0
| 0.1
| 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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.