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
1da397e0591c728c6537a980b2913040a5c13544
1,096
py
Python
avanzapy/fund.py
alrevuelta/avanzapy
5a723607a3e1b5028172239372bb51ad6ac9978e
[ "MIT" ]
2
2021-04-15T13:34:52.000Z
2021-08-24T17:32:26.000Z
avanzapy/fund.py
alrevuelta/avanzapy
5a723607a3e1b5028172239372bb51ad6ac9978e
[ "MIT" ]
null
null
null
avanzapy/fund.py
alrevuelta/avanzapy
5a723607a3e1b5028172239372bb51ad6ac9978e
[ "MIT" ]
1
2022-02-03T08:30:44.000Z
2022-02-03T08:30:44.000Z
from avanzapy.instrument import Instrument from avanzapy.constants import InstrumentType class Fund(Instrument): def __init__(self, raw_data, historical_data=[]): super().__init__(InstrumentType.FUND, raw_data, historical_data) @property def price(self): # not sure if this is the price return self.get('NAV') @property def country(self): # TODO. This is the name in Swedish i.e. Sverige # In the rest of instruments im using the code, i.e. SE, US,... return self.get('domicile') @property def currency(self): return self.get('tradingCurrency') @property def last_updated(self): return self.get('NAVLastUpdated') @property def change_percent_1d(self): return self.get('changeSinceOneDay') @property def change_percent_1w(self): return self.get('changeSinceOneWeek') @property def change_percent_1m(self): return self.get('changeSinceOneMonth') @property def change_percent_1y(self): return self.get('changeSinceOneYear')
24.909091
72
0.662409
131
1,096
5.381679
0.442748
0.124823
0.147518
0.144681
0
0
0
0
0
0
0
0.004802
0.239964
1,096
43
73
25.488372
0.841537
0.125912
0
0.275862
0
0
0.117524
0
0
0
0
0.023256
0
1
0.310345
false
0
0.068966
0.275862
0.689655
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
1
1
0
0
4
1da72f71fdaf04274266d1f9bcb3e5fe401dc123
175
py
Python
typhoon/examples/extension/module/__init__.py
typhoon-data-org/typhoon-orchestrator
f24c4807b0e1ee38713ba1468db761119724dcf2
[ "Apache-2.0" ]
21
2021-04-10T20:57:49.000Z
2022-03-24T06:45:30.000Z
typhoon/examples/extension/module/__init__.py
typhoon-data-org/typhoon-orchestrator
f24c4807b0e1ee38713ba1468db761119724dcf2
[ "Apache-2.0" ]
7
2021-11-06T16:10:41.000Z
2021-12-12T11:41:32.000Z
typhoon/examples/extension/module/__init__.py
typhoon-data-org/typhoon-orchestrator
f24c4807b0e1ee38713ba1468db761119724dcf2
[ "Apache-2.0" ]
1
2022-03-08T21:22:33.000Z
2022-03-08T21:22:33.000Z
import sys SUPPORTED_VERSIONS = [(3, 6), (3, 7), (3, 8)] python_major_version = sys.version_info[0] python_minor_version = sys.version_info[1] __typhoon_extension__ = True
19.444444
45
0.742857
27
175
4.37037
0.666667
0.169492
0.288136
0.355932
0
0
0
0
0
0
0
0.052288
0.125714
175
8
46
21.875
0.718954
0
0
0
0
0
0
0
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
1da92e4670257f8c325a62c585f3b2838592c79f
942
py
Python
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/SGIX/blend_alpha_minmax.py
temelkirci/Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
1
2022-03-02T17:07:20.000Z
2022-03-02T17:07:20.000Z
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/SGIX/blend_alpha_minmax.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/SGIX/blend_alpha_minmax.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
'''OpenGL extension SGIX.blend_alpha_minmax This module customises the behaviour of the OpenGL.raw.GL.SGIX.blend_alpha_minmax to provide a more Python-friendly API Overview (from the spec) Two additional blending equations are specified using the interface defined by EXT_blend_minmax. These equations are similar to the MIN_EXT and MAX_EXT blending equations, but the outcome for all four color components is determined by a comparison of just the alpha component's source and destination values. These equations are useful in image processing and advanced shading algorithms. The official definition of this extension is available here: http://www.opengl.org/registry/specs/SGIX/blend_alpha_minmax.txt ''' from OpenGL import platform, constants, constant, arrays from OpenGL import extensions, wrapper from OpenGL.GL import glget import ctypes from OpenGL.raw.GL.SGIX.blend_alpha_minmax import * ### END AUTOGENERATED SECTION
39.25
71
0.818471
143
942
5.307692
0.594406
0.047431
0.073781
0.105402
0.081686
0.081686
0.081686
0
0
0
0
0
0.135881
942
24
72
39.25
0.932432
0.839703
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
d51f51e46f5c94b57c858244240f1665dfa6c417
83
py
Python
nix_update/errors.py
yu-re-ka/nix-update
52582817e8c6474c23b2855aa4bed2b53e708741
[ "MIT" ]
99
2020-03-07T13:14:30.000Z
2022-03-24T06:04:30.000Z
nix_update/errors.py
yu-re-ka/nix-update
52582817e8c6474c23b2855aa4bed2b53e708741
[ "MIT" ]
47
2020-04-19T01:20:07.000Z
2022-03-18T16:40:55.000Z
nix_update/errors.py
yu-re-ka/nix-update
52582817e8c6474c23b2855aa4bed2b53e708741
[ "MIT" ]
10
2020-04-04T18:34:11.000Z
2021-10-08T19:17:19.000Z
class UpdateError(Exception): pass class VersionError(UpdateError): pass
11.857143
32
0.73494
8
83
7.625
0.625
0
0
0
0
0
0
0
0
0
0
0
0.192771
83
6
33
13.833333
0.910448
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
d5215ed11da04dffeac11bb2ae67225e8a2fdcf2
176
py
Python
examples/bokeh/bokeh_plot_kde_2d.py
Ban-zee/arviz
2b31d7318da063cc26f0e41b0f86830d80df0558
[ "Apache-2.0" ]
null
null
null
examples/bokeh/bokeh_plot_kde_2d.py
Ban-zee/arviz
2b31d7318da063cc26f0e41b0f86830d80df0558
[ "Apache-2.0" ]
null
null
null
examples/bokeh/bokeh_plot_kde_2d.py
Ban-zee/arviz
2b31d7318da063cc26f0e41b0f86830d80df0558
[ "Apache-2.0" ]
null
null
null
""" 2d KDE Bokeh ============ _thumb: .1, .8 """ import arviz as az import numpy as np ax = az.plot_kde(np.random.rand(100), np.random.rand(100), backend="bokeh", show=True)
16
86
0.625
30
176
3.6
0.666667
0.148148
0.222222
0.277778
0
0
0
0
0
0
0
0.059603
0.142045
176
10
87
17.6
0.655629
0.232955
0
0
0
0
0.03937
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
d52f13966fe91d19301447149962c05ea331af1c
651
py
Python
survae/transforms/bijections/functional/mixtures/utils_logistic.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
262
2020-07-05T20:57:44.000Z
2022-03-28T02:24:43.000Z
survae/transforms/bijections/functional/mixtures/utils_logistic.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
17
2020-08-15T05:43:34.000Z
2022-01-31T12:24:21.000Z
survae/transforms/bijections/functional/mixtures/utils_logistic.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
35
2020-08-24T06:55:37.000Z
2022-02-11T05:17:58.000Z
import torch import torch.nn.functional as F def logistic_log_cdf(x, means, log_scales): return F.logsigmoid(torch.exp(-log_scales) * (x - means)) def logistic_log_one_minus_cdf(x, means, log_scales): ''' Uses that: `log(1-sigmoid(x)) = - softplus(x)` ''' return -F.softplus(torch.exp(-log_scales) * (x - means)) def logistic_log_pdf(x, means, log_scales): ''' Uses that: pdf(x) = dcdf(x)/dx = dsigmoid((x-m)/s)/dx = 1/s * sigmoid((x-m)/s) * (1-sigmoid((x-m)/s)) ''' return - log_scales + logistic_log_cdf(x, means, log_scales) + logistic_log_one_minus_cdf(x, means, log_scales)
26.04
115
0.623656
102
651
3.764706
0.284314
0.1875
0.117188
0.195313
0.588542
0.588542
0.507813
0.356771
0.356771
0
0
0.005825
0.208909
651
24
116
27.125
0.739806
0.248848
0
0
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0.25
0.125
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
d54e6bcc8d4fd244a02a43e67b87e9ea29059428
2,804
py
Python
Contents/Libraries/Shared/rebulk/test/test_loose.py
jippo015/Sub-Zero.bundle
734e0f7128c05c0f639e11e7dfc77daa1014064b
[ "MIT" ]
1,553
2015-11-09T02:17:06.000Z
2022-03-31T20:24:52.000Z
Contents/Libraries/Shared/rebulk/test/test_loose.py
saiterlz/Sub-Zero.bundle
1a0bb9c3e4be84be35d46672907783363fe5a87b
[ "MIT" ]
691
2015-11-05T21:32:26.000Z
2022-03-17T10:52:45.000Z
Contents/Libraries/Shared/rebulk/test/test_loose.py
saiterlz/Sub-Zero.bundle
1a0bb9c3e4be84be35d46672907783363fe5a87b
[ "MIT" ]
162
2015-11-06T19:38:55.000Z
2022-03-16T02:42:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: disable=no-self-use, pointless-statement, missing-docstring, invalid-name, len-as-condition from ..loose import call def test_loose_function(): def func(v1, v2, v3=3, v4=4): return v1 + v2 + v3 + v4 assert call(func, 1, 2) == func(1, 2) assert call(func, 1, 2, 3, 5) == func(1, 2, 3, 5) assert call(func, 1, 2, v3=4, v4=5) == func(1, 2, v3=4, v4=5) assert call(func, 1, 2, 3, 4, 5) == func(1, 2, 3, 4) assert call(func, 1, 2, 3, 4, more=5) == func(1, 2, 3, 4) def test_loose_varargs_function(): def func(v1, v2, *args): return v1 + v2 + args[0] if len(args) > 0 else 3 + args[1] if len(args) > 1 else 4 assert call(func, 1, 2) == func(1, 2) assert call(func, 1, 2, 3, 5) == func(1, 2, 3, 5) assert call(func, 1, 2, 3, 4, 5) == func(1, 2, 3, 4) def test_loose_kwargs_function(): def func(v1, v2, **kwargs): return v1 + v2 + kwargs.get('v3', 3) + kwargs.get('v4', 4) assert call(func, v1=1, v2=2) == func(v1=1, v2=2) assert call(func, v1=1, v2=2, v3=3, v4=5) == func(v1=1, v2=2, v3=3, v4=5) def test_loose_class(): class Dummy(object): def __init__(self, v1, v2, v3=3, v4=4): self.v1 = v1 self.v2 = v2 self.v3 = v3 self.v4 = v4 def call(self): return self.v1 + self.v2 + self.v3 + self.v4 assert call(Dummy, 1, 2).call() == Dummy(1, 2).call() assert call(Dummy, 1, 2, 3, 5).call() == Dummy(1, 2, 3, 5).call() assert call(Dummy, 1, 2, v3=4, v4=5).call() == Dummy(1, 2, v3=4, v4=5).call() assert call(Dummy, 1, 2, 3, 4, 5).call() == Dummy(1, 2, 3, 4).call() assert call(Dummy, 1, 2, 3, 4, more=5).call() == Dummy(1, 2, 3, 4).call() def test_loose_varargs_class(): class Dummy(object): def __init__(self, v1, v2, *args): self.v1 = v1 self.v2 = v2 self.v3 = args[0] if len(args) > 0 else 3 self.v4 = args[1] if len(args) > 1 else 4 def call(self): return self.v1 + self.v2 + self.v3 + self.v4 assert call(Dummy, 1, 2).call() == Dummy(1, 2).call() assert call(Dummy, 1, 2, 3, 5).call() == Dummy(1, 2, 3, 5).call() assert call(Dummy, 1, 2, 3, 4, 5).call() == Dummy(1, 2, 3, 4).call() def test_loose_kwargs_class(): class Dummy(object): def __init__(self, v1, v2, **kwargs): self.v1 = v1 self.v2 = v2 self.v3 = kwargs.get('v3', 3) self.v4 = kwargs.get('v4', 4) def call(self): return self.v1 + self.v2 + self.v3 + self.v4 assert call(Dummy, v1=1, v2=2).call() == Dummy(v1=1, v2=2).call() assert call(Dummy, v1=1, v2=2, v3=3, v4=5).call() == Dummy(v1=1, v2=2, v3=3, v4=5).call()
33.380952
101
0.533167
504
2,804
2.910714
0.103175
0.043626
0.0409
0.119973
0.796864
0.75392
0.73756
0.67212
0.560327
0.427403
0
0.125
0.272468
2,804
83
102
33.783133
0.594118
0.050642
0
0.473684
0
0
0.003009
0
0
0
0
0
0.350877
1
0.263158
false
0
0.017544
0.105263
0.438596
0
0
0
0
null
0
0
0
0
1
1
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
0
0
0
4
d55f0cab76f5be0436fb6c8eba72de7f387a1362
356
py
Python
tests/test_dti_recon.py
alex-reardon/ANTsPyMM
ecedca733bac15f0200649070fc0412b16f82ed6
[ "Apache-2.0" ]
null
null
null
tests/test_dti_recon.py
alex-reardon/ANTsPyMM
ecedca733bac15f0200649070fc0412b16f82ed6
[ "Apache-2.0" ]
null
null
null
tests/test_dti_recon.py
alex-reardon/ANTsPyMM
ecedca733bac15f0200649070fc0412b16f82ed6
[ "Apache-2.0" ]
1
2021-11-05T18:02:53.000Z
2021-11-05T18:02:53.000Z
import ants import antspymm img1 = ants.image_read( antspymm.get_data( "I1499279_Anon_20210819142214_5", target_extension=".nii.gz") ) bvec = antspymm.get_data( "I1499279_Anon_20210819142214_5", target_extension=".bvec") bval = antspymm.get_data( "I1499279_Anon_20210819142214_5", target_extension=".bval") dd = antspymm.dipy_dti_recon( img1, bval, bvec )
50.857143
106
0.800562
49
356
5.44898
0.44898
0.123596
0.168539
0.258427
0.640449
0.640449
0.640449
0.640449
0.640449
0
0
0.207317
0.078652
356
6
107
59.333333
0.606707
0
0
0
0
0
0.300562
0.252809
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
d55fad37c31cce0592621efaa0a124962c11d22f
768
py
Python
mak/libs/pyxx/cxx/grammar/expression/primary/id/unqualified.py
bugengine/BugEngine
1b3831d494ee06b0bd74a8227c939dd774b91226
[ "BSD-3-Clause" ]
4
2015-05-13T16:28:36.000Z
2017-05-24T15:34:14.000Z
mak/libs/pyxx/cxx/grammar/expression/primary/id/unqualified.py
bugengine/BugEngine
1b3831d494ee06b0bd74a8227c939dd774b91226
[ "BSD-3-Clause" ]
null
null
null
mak/libs/pyxx/cxx/grammar/expression/primary/id/unqualified.py
bugengine/BugEngine
1b3831d494ee06b0bd74a8227c939dd774b91226
[ "BSD-3-Clause" ]
1
2017-03-21T08:28:07.000Z
2017-03-21T08:28:07.000Z
""" unqualified-id: identifier operator-function-id conversion-function-id literal-operator-id ~ type-name ~ decltype-specifier template-id """ import glrp from .....parser import cxx98 from be_typing import TYPE_CHECKING @glrp.rule('unqualified-id[split] : "identifier"') @glrp.rule('unqualified-id[split] : operator-function-id') @glrp.rule('unqualified-id : conversion-function-id') @glrp.rule('unqualified-id[split] : literal-operator-id') @glrp.rule('unqualified-id : "~" type-name') @glrp.rule('unqualified-id : "~" decltype-specifier') @glrp.rule('unqualified-id : template-id') @cxx98 def unqualified_id(self, p): # type: (CxxParser, glrp.Production) -> None pass if TYPE_CHECKING: from .....parser import CxxParser
24.774194
58
0.703125
96
768
5.583333
0.3125
0.218284
0.248134
0.274254
0.264925
0.115672
0
0
0
0
0
0.006042
0.138021
768
31
59
24.774194
0.803625
0.269531
0
0
0
0
0.467509
0.15343
0
0
0
0
0
1
0.066667
false
0.066667
0.266667
0
0.333333
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
1
0
0
0
0
0
4
6341f06eb12b4dfbba5f2b40f77210e0d25838d2
2,618
py
Python
code/python/Signals/v2/fds/sdk/Signals/models/__init__.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/Signals/v2/fds/sdk/Signals/models/__init__.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/Signals/v2/fds/sdk/Signals/models/__init__.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
# flake8: noqa # import all models into this package # if you have many models here with many references from one model to another this may # raise a RecursionError # to avoid this, import only the models that you directly need like: # from from fds.sdk.Signals.model.pet import Pet # or import this package, but before doing it, use: # import sys # sys.setrecursionlimit(n) from fds.sdk.Signals.model.contract import Contract from fds.sdk.Signals.model.contract_fields import ContractFields from fds.sdk.Signals.model.contract_fields_event_date import ContractFieldsEventDate from fds.sdk.Signals.model.contract_fields_summary import ContractFieldsSummary from fds.sdk.Signals.model.contract_property import ContractProperty from fds.sdk.Signals.model.contract_property_items import ContractPropertyItems from fds.sdk.Signals.model.date_time_interval import DateTimeInterval from fds.sdk.Signals.model.error_item import ErrorItem from fds.sdk.Signals.model.error_item_source import ErrorItemSource from fds.sdk.Signals.model.error_response import ErrorResponse from fds.sdk.Signals.model.event_adaptive_card import EventAdaptiveCard from fds.sdk.Signals.model.event_adaptive_cards import EventAdaptiveCards from fds.sdk.Signals.model.event_adaptive_data_item import EventAdaptiveDataItem from fds.sdk.Signals.model.event_detail import EventDetail from fds.sdk.Signals.model.event_detail_data_item import EventDetailDataItem from fds.sdk.Signals.model.event_detail_data_item_all_of import EventDetailDataItemAllOf from fds.sdk.Signals.model.event_details import EventDetails from fds.sdk.Signals.model.event_headline_data_item import EventHeadlineDataItem from fds.sdk.Signals.model.event_headlines import EventHeadlines from fds.sdk.Signals.model.event_meta import EventMeta from fds.sdk.Signals.model.event_request_body import EventRequestBody from fds.sdk.Signals.model.events_entities import EventsEntities from fds.sdk.Signals.model.events_meta import EventsMeta from fds.sdk.Signals.model.events_meta_date_range import EventsMetaDateRange from fds.sdk.Signals.model.events_meta_pagination import EventsMetaPagination from fds.sdk.Signals.model.id_resolutions_meta import IdResolutionsMeta from fds.sdk.Signals.model.relevance_score_range import RelevanceScoreRange from fds.sdk.Signals.model.screen_meta import ScreenMeta from fds.sdk.Signals.model.signal_definition import SignalDefinition from fds.sdk.Signals.model.signal_definition_data import SignalDefinitionData from fds.sdk.Signals.model.signal_meta_data import SignalMetaData from fds.sdk.Signals.model.signal_meta_data_data import SignalMetaDataData
59.5
88
0.86822
377
2,618
5.872679
0.29443
0.104336
0.149051
0.253388
0.469738
0.420054
0.320687
0.069557
0.037037
0
0
0.000413
0.074484
2,618
43
89
60.883721
0.913331
0.135982
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
63483fcbe7398d686511f1ba27963ca10862d90a
758
py
Python
questions/partitioning-into-minimum-number-of-deci-binary-numbers/Solution.py
achow113/LeetCode
604d3f25d513df4045e9a3712a5034704a6043a1
[ "MIT" ]
141
2017-12-12T21:45:53.000Z
2022-03-25T07:03:39.000Z
questions/partitioning-into-minimum-number-of-deci-binary-numbers/Solution.py
mithunonline/leetcode-solutions
604d3f25d513df4045e9a3712a5034704a6043a1
[ "MIT" ]
32
2015-10-05T14:09:52.000Z
2021-05-30T10:28:41.000Z
questions/partitioning-into-minimum-number-of-deci-binary-numbers/Solution.py
mithunonline/leetcode-solutions
604d3f25d513df4045e9a3712a5034704a6043a1
[ "MIT" ]
56
2015-09-30T05:23:28.000Z
2022-03-08T07:57:11.000Z
""" A decimal number is called deci-binary if each of its digits is either 0 or 1 without any leading zeros. For example, 101 and 1100 are deci-binary, while 112 and 3001 are not. Given a string n that represents a positive decimal integer, return the minimum number of positive deci-binary numbers needed so that they sum up to n.   Example 1: Input: n = "32" Output: 3 Explanation: 10 + 11 + 11 = 32 Example 2: Input: n = "82734" Output: 8 Example 3: Input: n = "27346209830709182346" Output: 9   Constraints: 1 <= n.length <= 105 n consists of only digits. n does not contain any leading zeros and represents a positive integer. """ class Solution: def minPartitions(self, n: str) -> int: return max([ord(c) - ord('0') for c in n])
21.657143
175
0.705805
128
758
4.179688
0.601563
0.056075
0.056075
0
0
0
0
0
0
0
0
0.103506
0.209763
758
35
176
21.657143
0.789649
0.836412
0
0
0
0
0.008772
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
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
1
0
0
0
1
1
0
0
4
63603867008ea3a9f5b548f275da69db44f8c331
153
py
Python
backend/users/admin.py
LastAeon77/ProjectMoonDatabase
11e58637e2b762a045efd0df1b19df75d7e56030
[ "MIT" ]
null
null
null
backend/users/admin.py
LastAeon77/ProjectMoonDatabase
11e58637e2b762a045efd0df1b19df75d7e56030
[ "MIT" ]
null
null
null
backend/users/admin.py
LastAeon77/ProjectMoonDatabase
11e58637e2b762a045efd0df1b19df75d7e56030
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Nugget class Manager(admin.ModelAdmin): model = Nugget admin.site.register(Nugget, Manager)
15.3
36
0.771242
20
153
5.9
0.65
0
0
0
0
0
0
0
0
0
0
0
0.150327
153
9
37
17
0.907692
0
0
0
0
0
0
0
0
0
0
0
0
1
0
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
636af6439dbee5658301ebd817ecffd8216b273a
3,593
py
Python
tests/test_io.py
deppen8/leiap
1270704a2fd348545d96f984fc6ad56a18de38b0
[ "Apache-2.0" ]
2
2019-07-26T15:25:07.000Z
2020-12-20T18:11:00.000Z
tests/test_io.py
deppen8/leiap
1270704a2fd348545d96f984fc6ad56a18de38b0
[ "Apache-2.0" ]
1
2019-03-20T23:18:33.000Z
2019-03-20T23:21:59.000Z
tests/test_io.py
deppen8/leiap
1270704a2fd348545d96f984fc6ad56a18de38b0
[ "Apache-2.0" ]
null
null
null
####################################################################### import leiap import pandas as pd ####################################################################### def test_connect2db_is_Connection(): import pyodbc c = leiap.connect2db() assert isinstance(c, pyodbc.Connection) ####################################################################### def test_db_query_return_df(): df = leiap.db_query("SELECT * FROM Sherd") assert isinstance(df, pd.DataFrame) ####################################################################### def test_load_points_simple_return_df(): df = leiap.get_points_simple() assert isinstance(df, pd.DataFrame) def test_load_points_simple_length(): """Row length should be greater than 0""" df = leiap.get_points_simple() assert df.shape[0] > 0 ####################################################################### def test_load_points_by_year_return_df(): years = ['2014','2015','2016','2017','2018'] for year in years: df = leiap.get_points_by_year([year]) assert isinstance(df, pd.DataFrame) def test_load_points_by_year_length(): """Row length should be greater than 0""" years = ['2014','2015','2016','2017','2018'] for year in years: df = leiap.get_points_by_year([year]) assert df.shape[0] > 0 ####################################################################### def test_load_artifacts_simple_return_df(): df = leiap.get_artifacts_simple() assert isinstance(df, pd.DataFrame) def test_load_artifacts_simple_length(): """Row length should be greater than 0""" df = leiap.get_artifacts_simple() assert df.shape[0] > 0 ####################################################################### def test_load_artifacts_by_year_return_df(): years = ['2015','2016','2017','2018'] for year in years: df = leiap.get_artifacts_by_year([year]) assert isinstance(df, pd.DataFrame) def test_load_artifacts_by_year_length(): """Row length should be greater than 0""" years = ['2015','2016','2017','2018'] for year in years: df = leiap.get_artifacts_by_year([year]) assert df.shape[0] > 0 ####################################################################### def test_load_productions_simple_return_df(): df = leiap.get_productions_simple() assert isinstance(df, pd.DataFrame) def test_load_productions_simple_length(): """Row length should be greater than 0""" df = leiap.get_productions_simple() assert df.shape[0] > 0 ####################################################################### def test_load_production_cts_wts_return_df(): df = leiap.get_production_cts_wts() assert isinstance(df, pd.DataFrame) def test_load_production_cts_wts_length(): """Row length should be greater than 0""" df = leiap.get_production_cts_wts() assert df.shape[0] > 0 ####################################################################### def test_load_points_times_return_df(): df = leiap.get_points_times(warn='disable') assert isinstance(df, pd.DataFrame) def test_load_points_times_length(): """Row length should be greater than 0""" df = leiap.get_points_times(warn='disable') assert df.shape[0] > 0 def test_load_points_times_columns(): """Must have 'search_time' and 'dist' columns""" cols = leiap.get_points_times(warn='disable').columns.tolist() assert 'search_time' in cols assert 'dist' in cols #######################################################################
32.663636
71
0.540774
408
3,593
4.470588
0.14951
0.065241
0.090461
0.087719
0.85636
0.828399
0.722039
0.699013
0.650768
0.492873
0
0.031117
0.150292
3,593
110
72
32.663636
0.566328
0.081826
0
0.587302
0
0
0.051251
0
0
0
0
0
0.285714
1
0.269841
false
0
0.047619
0
0.31746
0
0
0
0
null
0
0
0
1
1
1
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
639bddcb2b42fbff2096568deac55942bc681451
606
py
Python
challenge/tissuenet-submit-classif-e2e/assets/sldc/__init__.py
waliens/weakseg
dbd02d2729ae998d89bce0e5585a8144351f1feb
[ "MIT" ]
1
2020-12-25T07:36:28.000Z
2020-12-25T07:36:28.000Z
challenge/tissuenet-submit-classif-e2e/assets/sldc/__init__.py
waliens/weakseg
dbd02d2729ae998d89bce0e5585a8144351f1feb
[ "MIT" ]
null
null
null
challenge/tissuenet-submit-classif-e2e/assets/sldc/__init__.py
waliens/weakseg
dbd02d2729ae998d89bce0e5585a8144351f1feb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .errors import ImageExtractionException, TileExtractionException, MissingComponentException, InvalidBuildingException from .image import Image, Tile, TileBuilder, TileTopologyIterator, TileTopology, ImageWindow, DefaultTileBuilder from .util import batch_split, alpha_rasterize, has_alpha_channel __all__ = [ "ImageExtractionException", "TileExtractionException", "MissingComponentException", "Image", "Tile", "TileBuilder", "batch_split", "alpha_rasterize", "has_alpha_channel", "TileTopologyIterator", "TileTopology", "ImageWindow", "DefaultTileBuilder" ]
43.285714
122
0.788779
48
606
9.708333
0.520833
0.201717
0.309013
0.261803
0.167382
0.167382
0.167382
0
0
0
0
0.001845
0.105611
606
13
123
46.615385
0.857934
0.034653
0
0
0
0
0.336192
0.123499
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
4
639dc66a245e1d2218643ffa2363a464945f24cd
198
py
Python
fuzzy_grassmann_numbers/fuzzy_grassmann_number.py
ly3xqhl8g9/fuzzy-grassmann-numbers
d12798df8d633fd1a7b250804334b388b0aa35d7
[ "MIT" ]
null
null
null
fuzzy_grassmann_numbers/fuzzy_grassmann_number.py
ly3xqhl8g9/fuzzy-grassmann-numbers
d12798df8d633fd1a7b250804334b388b0aa35d7
[ "MIT" ]
null
null
null
fuzzy_grassmann_numbers/fuzzy_grassmann_number.py
ly3xqhl8g9/fuzzy-grassmann-numbers
d12798df8d633fd1a7b250804334b388b0aa35d7
[ "MIT" ]
null
null
null
class FGN(): """Fuzzy Grassmann Number """ def __init__(self, *args): self.args = args print(args) def add(self, first_number, second_number): return True
16.5
47
0.570707
23
198
4.652174
0.652174
0.149533
0
0
0
0
0
0
0
0
0
0
0.313131
198
11
48
18
0.786765
0.111111
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.166667
0.666667
0.166667
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
63a0354de68a82b531a40b62ade5172ae8a385f3
97
py
Python
cep_price_console/__main__.py
zanebclark/cep_price_console
2f0e0a487a02a1eeceab9bc326d4cef153bd6781
[ "MIT" ]
null
null
null
cep_price_console/__main__.py
zanebclark/cep_price_console
2f0e0a487a02a1eeceab9bc326d4cef153bd6781
[ "MIT" ]
5
2021-03-31T19:27:48.000Z
2022-01-13T01:57:46.000Z
cep_price_console/__main__.py
zanebclark/cep_price_console
2f0e0a487a02a1eeceab9bc326d4cef153bd6781
[ "MIT" ]
null
null
null
if __name__ == "__main__": from cep_price_console.dashboard import Dashboard Dashboard()
24.25
53
0.742268
11
97
5.636364
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.175258
97
3
54
32.333333
0.775
0
0
0
0
0
0.082474
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
63c2f2d87dfb4d9ed7e0019e80c1bca5485c7b8d
328
py
Python
hiven/types/default_permission_override.py
Iapetus-11/hiven.py
15f4fdca222bd8b8d93f99b842363f107a618186
[ "MIT" ]
3
2021-08-25T01:41:03.000Z
2021-08-30T17:53:05.000Z
hiven/types/default_permission_override.py
Iapetus-11/hiven.py
15f4fdca222bd8b8d93f99b842363f107a618186
[ "MIT" ]
1
2021-08-30T15:35:57.000Z
2021-08-30T18:02:13.000Z
hiven/types/default_permission_override.py
Iapetus-11/hiven.py
15f4fdca222bd8b8d93f99b842363f107a618186
[ "MIT" ]
4
2021-08-25T16:37:44.000Z
2021-09-10T11:31:14.000Z
class DefaultPermissionOverrideSchema: allow: int deny: int class DefaultPermissionOverride: def __init__(self, default_permission_override: DefaultPermissionOverrideSchema, client): self.allow = default_permission_override.get("allow") self.deny = default_permission_override.get("deny")
32.8
94
0.75
30
328
7.866667
0.466667
0.216102
0.317797
0.237288
0
0
0
0
0
0
0
0
0.176829
328
9
95
36.444444
0.874074
0
0
0
0
0
0.028213
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.714286
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
63c86451ba5748e3dd6bd96e894e45d2ed51fe86
535
py
Python
SpaBootstrap/webapp.py
davinbutler/SpaProject
d43052c341e22a99bd4e9414332a7cdead18b7ba
[ "MIT", "Unlicense" ]
null
null
null
SpaBootstrap/webapp.py
davinbutler/SpaProject
d43052c341e22a99bd4e9414332a7cdead18b7ba
[ "MIT", "Unlicense" ]
null
null
null
SpaBootstrap/webapp.py
davinbutler/SpaProject
d43052c341e22a99bd4e9414332a7cdead18b7ba
[ "MIT", "Unlicense" ]
null
null
null
from flask import Flask, request, render_template app = Flask(__name__) @app.route("/") def root(): return app.send_static_file('index.html') @app.route("/about") @app.route('/about/<name>') def about(name=None): return render_template('about.html', name = name) @app.route("/gallery/") def gallery(name=None): return render_template('gallery.html', name = name) @app.route("/contact/") def poll(name=None): return render_template('contact.html', name = name) if __name__ == "__main__": app.run()
17.833333
55
0.669159
72
535
4.722222
0.347222
0.117647
0.105882
0.176471
0.364706
0
0
0
0
0
0
0
0.153271
535
29
56
18.448276
0.750552
0
0
0
0
0
0.169173
0
0
0
0
0
0
1
0.235294
false
0
0.058824
0.235294
0.529412
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
63cf83884fd3dfd283a69bbab15f850f9648992d
303
py
Python
EstruturaSequencial/Exercicio10.py
claudiopmaia/DataScience
0cae311edc178121d80a15110e16334e31f7c4f4
[ "MIT" ]
2
2019-01-02T15:56:28.000Z
2019-01-02T18:54:03.000Z
EstruturaSequencial/Exercicio10.py
claudiopmaia/DataScience
0cae311edc178121d80a15110e16334e31f7c4f4
[ "MIT" ]
null
null
null
EstruturaSequencial/Exercicio10.py
claudiopmaia/DataScience
0cae311edc178121d80a15110e16334e31f7c4f4
[ "MIT" ]
null
null
null
# Faça um Programa que peça a temperatura em graus Farenheit, transforme e mostre a temperatura em graus Celsius. tempCelius= input("Qual a temperatura em Farenheit:") tempCelius = int(tempCelius) tempFarenheit = (tempCelius * 1,8) + 32 print("A temperatura em Celsius é {:.4f} " .format(tempCelius))
37.875
113
0.755776
42
303
5.452381
0.619048
0.209607
0.244541
0.165939
0
0
0
0
0
0
0
0.01938
0.148515
303
8
114
37.875
0.868217
0.366337
0
0
0
0
0.34555
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
8943da540b821c517d67c345201ec28d04f68680
276
py
Python
project/hijri_calendar_project/hijri_calendar_app/managers.py
bilgrami/hijri-calendar
bfa1ec46c69e407a325405e1f007ae239ee9ab60
[ "MIT" ]
1
2019-06-16T08:42:10.000Z
2019-06-16T08:42:10.000Z
project/hijri_calendar_project/hijri_calendar_app/managers.py
bilgrami/hijri-calendar
bfa1ec46c69e407a325405e1f007ae239ee9ab60
[ "MIT" ]
null
null
null
project/hijri_calendar_project/hijri_calendar_app/managers.py
bilgrami/hijri-calendar
bfa1ec46c69e407a325405e1f007ae239ee9ab60
[ "MIT" ]
null
null
null
from django.db import models # from .models import HijriCalendar, HolidayCalendar class HolidayCalendarManager(models.Manager): def get_queryset(self): return super(HolidayCalendarManager, self).get_queryset()\ .filter(is_holiday=True)
30.666667
66
0.710145
28
276
6.892857
0.714286
0.11399
0
0
0
0
0
0
0
0
0
0
0.210145
276
8
67
34.5
0.885321
0.181159
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
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
0
1
1
0
0
4
894688ab0331fe17db2f2dbc479ef2f788eaac81
151
py
Python
Project Files/wsgi.py
s3llsw0rd/demo_ajax_db_search
00a7e470f094f2941733abc529994d0be575c749
[ "Unlicense" ]
null
null
null
Project Files/wsgi.py
s3llsw0rd/demo_ajax_db_search
00a7e470f094f2941733abc529994d0be575c749
[ "Unlicense" ]
null
null
null
Project Files/wsgi.py
s3llsw0rd/demo_ajax_db_search
00a7e470f094f2941733abc529994d0be575c749
[ "Unlicense" ]
null
null
null
from system.init import initialize_app import subprocess application = initialize_app() if __name__ == "__main__": application.run(host='127.0.0.1')
21.571429
38
0.774834
21
151
5.095238
0.761905
0.242991
0
0
0
0
0
0
0
0
0
0.044444
0.10596
151
6
39
25.166667
0.748148
0
0
0
0
0
0.112583
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
896a25421d7eb0702183c3de4d6decda20fa7e24
706
py
Python
python/tests/blackbox/test_continuations.py
eno-lang/enolib
4175f7c1e8246493b6758c29bddc80d20eaf15f7
[ "MIT" ]
17
2019-04-15T21:03:37.000Z
2022-01-24T11:03:34.000Z
python/tests/blackbox/test_continuations.py
eno-lang/enolib
4175f7c1e8246493b6758c29bddc80d20eaf15f7
[ "MIT" ]
20
2019-03-13T23:23:40.000Z
2022-03-29T13:40:57.000Z
python/tests/blackbox/test_continuations.py
eno-lang/enolib
4175f7c1e8246493b6758c29bddc80d20eaf15f7
[ "MIT" ]
4
2019-04-15T21:18:03.000Z
2019-09-21T16:18:10.000Z
import enolib from tests.util import snapshot input = """ Field: Value \\ Spaced line continuation | Direct line continuation Fieldset: Entry = Value \\ Spaced line continuation | Direct line continuation List: - Value \\ Spaced line continuation | Direct line continuation Empty field: \\ Spaced line continuation | Direct line continuation Fieldset with empty entry: Empty entry = \\ Spaced line continuation | Direct line continuation List with empty item: - \\ Spaced line continuation | Direct line continuation """.strip() def test_blackbox_test_continuations(): result = enolib.parse(input).raw() assert result == snapshot(result, 'tests/blackbox/snapshots/continuations.snap.json')
18.578947
89
0.76204
84
706
6.369048
0.369048
0.358879
0.246729
0.314019
0.566355
0.566355
0.484112
0
0
0
0
0
0.151558
706
37
90
19.081081
0.893155
0
0
0.413793
0
0
0.726629
0.067989
0
0
0
0
0.034483
1
0.034483
false
0
0.068966
0
0.103448
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
896dfec1dfac64f50468ef01ca019f1ced3c5975
136
py
Python
polybius/utils/__init__.py
TStalnaker44/python_jeopardy
7044d9512d51c04e22a6d2cbfa9e9a82a384de85
[ "MIT" ]
null
null
null
polybius/utils/__init__.py
TStalnaker44/python_jeopardy
7044d9512d51c04e22a6d2cbfa9e9a82a384de85
[ "MIT" ]
null
null
null
polybius/utils/__init__.py
TStalnaker44/python_jeopardy
7044d9512d51c04e22a6d2cbfa9e9a82a384de85
[ "MIT" ]
null
null
null
from .eventwrapper import EventWrapper from .fsm import FSM from .vector2D import Vector2 __all__ = ["EventWrapper", "FSM", "Vector2"]
22.666667
44
0.764706
16
136
6.25
0.4375
0
0
0
0
0
0
0
0
0
0
0.025424
0.132353
136
5
45
27.2
0.822034
0
0
0
0
0
0.161765
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
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
89747f2c8627c0ab4c1f9db74e0177018f8b71bb
77
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractPajamaDays.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractPajamaDays.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractPajamaDays.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractPajamaDays(item): """ Parser for 'Pajama Days' """ return None
15.4
28
0.688312
9
77
5.888889
1
0
0
0
0
0
0
0
0
0
0
0
0.168831
77
5
29
15.4
0.828125
0.311688
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
899590ee1c1a732eb4b92ce35f2feb4f523c3e9d
977
py
Python
stubs.min/Autodesk/Revit/DB/__init___parts/UVGridlineType.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/Autodesk/Revit/DB/__init___parts/UVGridlineType.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/Autodesk/Revit/DB/__init___parts/UVGridlineType.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class UVGridlineType(Enum,IComparable,IFormattable,IConvertible): """ A choice between U-gridlines or V-gridlines of a divided surface U Gridlines V Gridlines enum UVGridlineType,values: U (0),V (1) """ def __eq__(self,*args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """ pass def __format__(self,*args): """ __format__(formattable: IFormattable,format: str) -> str """ pass def __ge__(self,*args): pass def __gt__(self,*args): pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __le__(self,*args): pass def __lt__(self,*args): pass def __ne__(self,*args): pass def __reduce_ex__(self,*args): pass def __str__(self,*args): pass U=None V=None value__=None
27.138889
215
0.653019
133
977
4.082707
0.345865
0.14733
0.154696
0.165746
0.237569
0.237569
0.237569
0.208103
0.208103
0.208103
0
0.002528
0.190379
977
35
216
27.914286
0.683944
0.477994
0
0.416667
0
0
0
0
0
0
0
0
0
1
0.416667
false
0.416667
0
0
0.583333
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
9861dd5008893e4503f31c4810f1f114c42f358e
1,238
py
Python
tests/test_reduce.py
aefalcon/iterable_collections
8e3b4ea84083a100413f23af30ea27dfd4b838ff
[ "MIT" ]
4
2018-06-05T14:07:56.000Z
2021-04-17T12:09:23.000Z
tests/test_reduce.py
aefalcon/iterable_collections
8e3b4ea84083a100413f23af30ea27dfd4b838ff
[ "MIT" ]
1
2018-07-10T19:53:54.000Z
2018-07-10T19:58:38.000Z
tests/test_reduce.py
aefalcon/iterable_collections
8e3b4ea84083a100413f23af30ea27dfd4b838ff
[ "MIT" ]
2
2020-01-29T10:51:11.000Z
2021-11-11T21:37:24.000Z
import unittest from functools import reduce from iterable_collections import collect class TestReduce(unittest.TestCase): def test_list(self): c = collect(list(range(10))) self.assertEqual(c.reduce(lambda c_, x: x + c_, 0), reduce(lambda c_, x: x + c_, list(range(10)), 0)) def test_set(self): c = collect(set(range(10))) self.assertEqual(c.reduce(lambda c_, x: x + c_, 0), reduce(lambda c_, x: x + c_, list(range(10)), 0)) def test_tuple(self): c = collect(tuple(range(10))) self.assertEqual(c.reduce(lambda c_, x: x + c_, 0), reduce(lambda c_, x: x + c_, list(range(10)), 0)) def test_iterator(self): c = collect(iter(range(10))) self.assertEqual(c.reduce(lambda c_, x: x + c_, 0), reduce(lambda c_, x: x + c_, list(range(10)), 0)) def test_dict(self): c = collect({'a': 1, 'b': 2}) self.assertEqual(c.reduce(lambda c_, x: x + c_, 'z'), reduce(lambda c_, x: x + c_, {'a': 1, 'b': 2}, 'z')) def test_dict_items(self): c = collect({'a': 1, 'b': 2}.items()) self.assertEqual( c.reduce(lambda c_, x: x[1] + c_, 0), reduce(lambda c_, x: x[1] + c_, {'a': 1, 'b': 2}.items(), 0) )
35.371429
114
0.566236
198
1,238
3.378788
0.166667
0.215247
0.233184
0.251121
0.671151
0.644245
0.620329
0.542601
0.496263
0.44843
0
0.038668
0.247981
1,238
34
115
36.411765
0.679914
0
0
0.16
0
0
0.008078
0
0
0
0
0
0.24
1
0.24
false
0
0.12
0
0.4
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
98638ef2acef6842f34b9c0eee3223be78ebfa4c
1,751
py
Python
Linked List/025. Reverse Nodes in k-Group.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
138
2020-02-08T05:25:26.000Z
2021-11-04T11:59:28.000Z
Linked List/025. Reverse Nodes in k-Group.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
null
null
null
Linked List/025. Reverse Nodes in k-Group.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
24
2021-01-02T07:18:43.000Z
2022-03-20T08:17:54.000Z
""" 25. Reverse Nodes in k-Group Given this linked list: 1->2->3->4->5 For k = 2, you should return: 2->1->4->3->5 For k = 3, you should return: 3->2->1->4->5 """ # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None #提取下一个 class Solution: def reverseKGroup(self, head, k): """ :type head: ListNode :type k: int :rtype: ListNode """ cur = dummy = ListNode(0) dummy.next = head while head: length = 0 end = head while end and length<k: end, length = end.next, length+1 if length<k: break while head.next!= end: temp = head.next head.next = head.next.next temp.next = cur.next cur.next = temp cur = head #等于这个循环后的最后一个值 head = head.next #head是这个循环最后一个值 return dummy.next class Solution: def reverseKGroup(self, head, k): """ :type head: ListNode :type k: int :rtype: ListNode """ cur = dummy = ListNode(0) dummy.next = head while head: length = 0 end = head while end and length<k: end, length = end.next, length+1 if length<k: break while head.next!= end: temp = cur.next cur.next = head.next head.next = head.next.next cur.next.next = temp cur = head #等于这个循环后的最后一个值 head = head.next #head是这个循环最后一个值 return dummy.next
26.530303
49
0.467162
200
1,751
4.07
0.245
0.09828
0.07371
0.078624
0.742015
0.737101
0.737101
0.668305
0.668305
0.668305
0
0.025278
0.43518
1,751
66
50
26.530303
0.797776
0.253569
0
0.833333
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.166667
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
9885fa8afa96a6887c05db9a38400060d0a173d4
147
py
Python
nsd1802/python/day03/mtable2.py
MrWangwf/nsd1806
069e993b0bb64cb21adc2a25aa56f6da674453bc
[ "Apache-2.0" ]
null
null
null
nsd1802/python/day03/mtable2.py
MrWangwf/nsd1806
069e993b0bb64cb21adc2a25aa56f6da674453bc
[ "Apache-2.0" ]
null
null
null
nsd1802/python/day03/mtable2.py
MrWangwf/nsd1806
069e993b0bb64cb21adc2a25aa56f6da674453bc
[ "Apache-2.0" ]
null
null
null
n = int(input('number: ')) for i in range(1, n + 1): for j in range(1, i + 1): print('%s*%s=%s' % (j, i, i * j), end=' ') print()
21
50
0.428571
28
147
2.25
0.464286
0.222222
0.253968
0
0
0
0
0
0
0
0
0.039216
0.306122
147
6
51
24.5
0.578431
0
0
0
0
0
0.115646
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
98a4c82da6d41748b2f3052e8454f786c05c0b3e
35
py
Python
env/lib/python3.6/site-packages/dal_gm2m/__init__.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
1,368
2015-01-03T09:52:33.000Z
2022-03-27T09:06:00.000Z
env/lib/python3.6/site-packages/dal_gm2m/__init__.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
919
2015-01-01T05:17:48.000Z
2022-03-25T22:41:14.000Z
env/lib/python3.6/site-packages/dal_gm2m/__init__.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
469
2015-01-19T21:40:30.000Z
2022-03-26T17:27:40.000Z
"""django-gm2m support for DAL."""
17.5
34
0.657143
5
35
4.6
1
0
0
0
0
0
0
0
0
0
0
0.032258
0.114286
35
1
35
35
0.709677
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
7f37fd5b562a7850a5b5b6db6c50f08d54d46aab
97
py
Python
lewis_emulators/edwardstic/interfaces/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
2
2020-10-20T16:49:13.000Z
2021-02-19T10:41:44.000Z
lewis_emulators/edwardstic/interfaces/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
9
2019-03-22T15:35:15.000Z
2021-07-28T11:05:43.000Z
lewis_emulators/edwardstic/interfaces/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
1
2020-10-21T17:02:44.000Z
2020-10-21T17:02:44.000Z
from .stream_interface import EdwardsTICStreamInterface __all__ = ['EdwardsTICStreamInterface']
24.25
55
0.85567
7
97
11.142857
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.082474
97
3
56
32.333333
0.876404
0
0
0
0
0
0.257732
0.257732
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
7f4706fdbd9b386a070b4abc8ce648824a0af2f2
155
py
Python
cvpack/torch_modeling/engine/__init__.py
Lizhuoling/RSN
3635e3f1eb4bc21db0ce9cbdc4aa87f164b0a6de
[ "MIT" ]
357
2020-03-10T04:12:27.000Z
2022-03-31T08:34:28.000Z
cvpack/torch_modeling/engine/__init__.py
qiaoyu113/RSN
d649d017ef4d73b5800225e56ee2f8879d0b870b
[ "MIT" ]
50
2020-08-26T12:27:39.000Z
2022-03-28T08:43:17.000Z
cvpack/torch_modeling/engine/__init__.py
qiaoyu113/RSN
d649d017ef4d73b5800225e56ee2f8879d0b870b
[ "MIT" ]
76
2020-03-10T04:59:27.000Z
2022-03-31T08:30:23.000Z
# encoding: utf-8 # Engine: contain most of the operations to manage the training process: # such as: training env, checkpoints, lr scheduler, and so on
38.75
73
0.748387
24
155
4.833333
0.916667
0
0
0
0
0
0
0
0
0
0
0.007874
0.180645
155
3
74
51.666667
0.905512
0.954839
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
7f9c7c5c513040d207d7ddac9e03ce84216f7043
168
py
Python
novice/01-03/latihan/latihan.py
blackjokie/praxis-academy
594d24fcf18cea4f76c9889030eba4aa3f834b7a
[ "MIT" ]
2
2019-08-11T16:58:04.000Z
2019-08-27T17:01:40.000Z
novice/01-03/latihan/latihan.py
blackjokie/praxis-academy
594d24fcf18cea4f76c9889030eba4aa3f834b7a
[ "MIT" ]
null
null
null
novice/01-03/latihan/latihan.py
blackjokie/praxis-academy
594d24fcf18cea4f76c9889030eba4aa3f834b7a
[ "MIT" ]
null
null
null
class Person: def __init__(self, name): self.name = name def say_hi(self): print('Hello, my name is', self.name) p = Person('Ibnu') p.say_hi()
18.666667
45
0.589286
26
168
3.576923
0.538462
0.258065
0
0
0
0
0
0
0
0
0
0
0.261905
168
9
46
18.666667
0.75
0
0
0
0
0
0.12426
0
0
0
0
0
0
1
0.285714
false
0
0
0
0.428571
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
0
1
0
0
0
0
0
0
0
4
7fa51c13336c0ae1140919f6ef8f8edf72c8ce43
227
py
Python
bedrock/tagger/tagger.py
openmednlp/bedrock
fdacbad92d59f27650eab1753fa694f90863b43e
[ "MIT" ]
2
2019-04-28T23:14:31.000Z
2019-05-19T08:00:28.000Z
bedrock/tagger/tagger.py
openmednlp/bedrock
fdacbad92d59f27650eab1753fa694f90863b43e
[ "MIT" ]
5
2019-02-11T14:50:59.000Z
2021-09-29T17:28:23.000Z
bedrock/tagger/tagger.py
openmednlp/bedrock
fdacbad92d59f27650eab1753fa694f90863b43e
[ "MIT" ]
1
2020-04-18T08:48:32.000Z
2020-04-18T08:48:32.000Z
from abc import ABC, abstractmethod from bedrock.doc.doc import Doc import pandas as pd class Tagger(ABC): @abstractmethod def get_tags(self, doc: Doc) -> (pd.DataFrame, pd.DataFrame, pd.DataFrame): pass
15.133333
79
0.696035
32
227
4.90625
0.53125
0.210191
0.165605
0.280255
0
0
0
0
0
0
0
0
0.211454
227
14
80
16.214286
0.877095
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0.142857
0.428571
0
0.714286
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
0
0
1
1
0
0
0
0
4
7fa63553fab43518d96cd2c4a96925c896fd4b0b
1,761
gyp
Python
binding.gyp
vuptt/symbology
96f4c553668ccfb69e209df5beed4c19eca17bef
[ "MIT" ]
null
null
null
binding.gyp
vuptt/symbology
96f4c553668ccfb69e209df5beed4c19eca17bef
[ "MIT" ]
null
null
null
binding.gyp
vuptt/symbology
96f4c553668ccfb69e209df5beed4c19eca17bef
[ "MIT" ]
null
null
null
{ # NOTE: 'module_name' and 'module_path' come from the 'binary' property in package.json # node-pre-gyp handles passing them down to node-gyp when you build from source "targets": [ { "target_name": "<(module_name)", "sources": [ "src/lib/zint/2of5.c", "src/lib/zint/auspost.c", "src/lib/zint/aztec.c", "src/lib/zint/code.c", "src/lib/zint/code1.c", "src/lib/zint/code16k.c", "src/lib/zint/code49.c", "src/lib/zint/code128.c", "src/lib/zint/common.c", "src/lib/zint/composite.c", "src/lib/zint/dmatrix.c", "src/lib/zint/gridmtx.c", "src/lib/zint/gs1.c", "src/lib/zint/imail.c", "src/lib/zint/large.c", "src/lib/zint/library.c", "src/lib/zint/maxicode.c", "src/lib/zint/medical.c", "src/lib/zint/pdf417.c", "src/lib/zint/plessey.c", "src/lib/zint/png.c", "src/lib/zint/postal.c", "src/lib/zint/ps.c", "src/lib/zint/qr.c", "src/lib/zint/reedsol.c", "src/lib/zint/render.c", "src/lib/zint/rss.c", "src/lib/zint/svg.c", "src/lib/zint/telepen.c", "src/lib/zint/upcean.c", "src/lib/binding.cpp" ], "include_dirs": [ "<!(node -e \"require('nan')\")" ], "msvs_settings": { "VCCLCompilerTool": { "AdditionalOptions": [ "/w" ] } } }, { "target_name": "action_after_build", "type": "none", "dependencies": [ "<(module_name)" ], "copies": [ { "files": [ "<(PRODUCT_DIR)/<(module_name).node" ], "destination": "<(module_path)" } ] } ] }
27.515625
89
0.495173
220
1,761
3.904545
0.381818
0.216531
0.349243
0.371362
0
0
0
0
0
0
0
0.011475
0.307212
1,761
63
90
27.952381
0.692623
0.092561
0
0.032787
0
0
0.554232
0.267712
0
0
0
0
0
1
0
true
0
0
0
0
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
7fbfc8c11adc749cc56a51b2e4dd2fee6feb1955
132
py
Python
user/models.py
igorkf/trink
e95119e9bc7e8f6d22bd792330df1b953df7becb
[ "MIT" ]
null
null
null
user/models.py
igorkf/trink
e95119e9bc7e8f6d22bd792330df1b953df7becb
[ "MIT" ]
null
null
null
user/models.py
igorkf/trink
e95119e9bc7e8f6d22bd792330df1b953df7becb
[ "MIT" ]
null
null
null
from django.contrib.auth.models import AbstractUser class CustomUser(AbstractUser): class Meta: db_table = 'auth_user'
22
51
0.742424
16
132
6
0.8125
0.354167
0
0
0
0
0
0
0
0
0
0
0.181818
132
6
52
22
0.888889
0
0
0
0
0
0.067669
0
0
0
0
0
0
1
0
false
0
0.25
0
0.75
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
0
0
1
0
0
4
f6c454d13e7974d2ccc7c174e66ff14f70a713b8
476
py
Python
taco/aws_wrappers/dynamodb_wrapper/condition.py
Intsights/taco
f9a912d146d74a6539d31c33ec289eff3fbfca8f
[ "Apache-2.0" ]
18
2019-09-05T07:53:26.000Z
2021-02-15T18:23:45.000Z
taco/aws_wrappers/dynamodb_wrapper/condition.py
Intsights/taco
f9a912d146d74a6539d31c33ec289eff3fbfca8f
[ "Apache-2.0" ]
null
null
null
taco/aws_wrappers/dynamodb_wrapper/condition.py
Intsights/taco
f9a912d146d74a6539d31c33ec289eff3fbfca8f
[ "Apache-2.0" ]
null
null
null
import boto3.dynamodb.conditions as boto_conditions class Condition(object): @staticmethod def is_equal(attribute_name, tester_data): return boto_conditions.Attr(attribute_name).eq(tester_data) @staticmethod def not_exists(attribute_name): return boto_conditions.Attr(attribute_name).not_exists() @staticmethod def number_lower_than(attribute_name, tester_data): return boto_conditions.Attr(attribute_name).lt(tester_data)
28
67
0.762605
59
476
5.830508
0.440678
0.226744
0.174419
0.209302
0.456395
0.456395
0.348837
0.348837
0.348837
0.348837
0
0.0025
0.159664
476
16
68
29.75
0.8575
0
0
0.272727
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0.272727
0.727273
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
1
0
0
0
4
63ebcc118d7b2f6d4dfde7a7da570c00be472111
246
py
Python
gsw/gibbs/geostrophic.py
ocefpaf/python-gsw
884fb02c7d7e0b6273e7abd24ef5951632a2653d
[ "MIT" ]
35
2015-02-21T02:25:03.000Z
2021-11-04T05:06:14.000Z
gsw/gibbs/geostrophic.py
ocefpaf/python-gsw
884fb02c7d7e0b6273e7abd24ef5951632a2653d
[ "MIT" ]
28
2015-01-05T16:09:35.000Z
2021-09-23T17:12:05.000Z
gsw/gibbs/geostrophic.py
ocefpaf/python-gsw
884fb02c7d7e0b6273e7abd24ef5951632a2653d
[ "MIT" ]
20
2015-02-21T01:37:33.000Z
2021-11-19T20:26:51.000Z
# -*- coding: utf-8 -*- from __future__ import division import numpy as np __all__ = [] #__all__ = ['geostrophic_velocity'] # TODO #def geostrophic_velocity(): # pass if __name__ == '__main__': import doctest doctest.testmod()
13.666667
43
0.662602
27
246
5.222222
0.777778
0.269504
0
0
0
0
0
0
0
0
0
0.005128
0.207317
246
17
44
14.470588
0.717949
0.394309
0
0
0
0
0.055944
0
0
0
0
0.058824
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
4
123f2228da5d70fb7f79c51b714d2c4a6bd0a52d
281
py
Python
ir_sim/env/env_obs_poly.py
hanruihua/intelligent-robot-simulator
f77cc3878543f3ff2226408c3369f82771a6f6f9
[ "MIT" ]
11
2021-12-10T03:05:01.000Z
2022-03-27T12:30:20.000Z
ir_sim/env/env_obs_poly.py
hanruihua/intelligent-robot-simulator
f77cc3878543f3ff2226408c3369f82771a6f6f9
[ "MIT" ]
null
null
null
ir_sim/env/env_obs_poly.py
hanruihua/intelligent-robot-simulator
f77cc3878543f3ff2226408c3369f82771a6f6f9
[ "MIT" ]
5
2021-11-24T13:13:17.000Z
2022-03-26T09:46:43.000Z
import numpy as np from ir_sim.world import obs_polygon class env_obs_poly: def __init__(self, obs_poly_class=obs_polygon, vertex_list=[], obs_poly_num=1, **kwargs): self.obs_poly_list = [ obs_poly_class(vertex=v, **kwargs) for v in vertex_list[0:obs_poly_num]]
35.125
104
0.740214
49
281
3.816327
0.510204
0.224599
0.117647
0
0
0
0
0
0
0
0
0.008439
0.156584
281
8
105
35.125
0.780591
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
1261d789e0b887fdbe25e2825bfbf088b8c638a4
572
py
Python
core/test/http/test_http_client.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
3
2021-06-20T02:24:10.000Z
2022-01-26T23:55:33.000Z
core/test/http/test_http_client.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
core/test/http/test_http_client.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from recc.http.http_client import normalize_url_path class HttpClientTestCase(unittest.TestCase): def test_normalize_url_path(self): self.assertEqual("/", normalize_url_path("")) self.assertEqual("/", normalize_url_path("/")) self.assertEqual("/a", normalize_url_path("a")) self.assertEqual("/a", normalize_url_path("/a")) self.assertEqual("/aaa", normalize_url_path("aaa")) self.assertEqual("/aaa", normalize_url_path("/aaa")) if __name__ == "__main__": unittest.main()
30.105263
60
0.671329
67
572
5.343284
0.358209
0.268156
0.357542
0.167598
0.564246
0.564246
0.564246
0.226257
0.226257
0
0
0.002088
0.162587
572
18
61
31.777778
0.745303
0.036713
0
0
0
0
0.060109
0
0
0
0
0
0.5
1
0.083333
false
0
0.166667
0
0.333333
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
d60bc914613b5f40f8c39d972167c6c98afa97c5
7,176
py
Python
tests/unit/cmor/test_fix.py
yifatdzigan/ESMValTool
83320b0e0b24ddde965599961bb80428e180a731
[ "Apache-2.0" ]
null
null
null
tests/unit/cmor/test_fix.py
yifatdzigan/ESMValTool
83320b0e0b24ddde965599961bb80428e180a731
[ "Apache-2.0" ]
null
null
null
tests/unit/cmor/test_fix.py
yifatdzigan/ESMValTool
83320b0e0b24ddde965599961bb80428e180a731
[ "Apache-2.0" ]
null
null
null
"""Unit tests for the variable_info module.""" import unittest from esmvaltool.cmor.fix import fix_file, fix_data, fix_metadata, Fix import mock class TestFixFile(unittest.TestCase): """Fix file tests""" def setUp(self): """Prepare for testing""" self.filename = 'filename' self.mock_fix = mock.Mock() self.mock_fix.fix_file.return_value = 'new_filename' def test_fix(self): """Check that the returned fix is applied""" with mock.patch('esmvaltool.cmor._fixes.fix.Fix.get_fixes', return_value=[self.mock_fix]): file_returned = fix_file('filename', 'short_name', 'project', 'model', 'output_dir') self.assertNotEqual(file_returned, self.filename) self.assertEqual(file_returned, 'new_filename') def test_nofix(self): """Check that the same file is returned if no fix is available""" with mock.patch('esmvaltool.cmor._fixes.fix.Fix.get_fixes', return_value=[]): file_returned = fix_file('filename', 'short_name', 'project', 'model', 'output_dir') self.assertEqual(file_returned, self.filename) class TestGetCube(unittest.TestCase): """Test get cube by var_name method""" def setUp(self): """Prepare for testing""" self.cube_1 = mock.Mock() self.cube_1.var_name = 'cube1' self.cube_2 = mock.Mock() self.cube_2.var_name = 'cube2' self.cubes = [self.cube_1, self.cube_2] self.fix = Fix() def test_get_first_cube(self): """Test selecting first cube""" self.assertIs( self.cube_1, self.fix.get_cube_from_list(self.cubes, "cube1") ) def test_get_second_cube(self): """Test selecting second cube.""" self.assertIs( self.cube_2, self.fix.get_cube_from_list(self.cubes, "cube2") ) def test_get_default_raises(self): """Check that the default raises (Fix is not a cube).""" with self.assertRaises(Exception): self.fix.get_cube_from_list(self.cubes) def test_get_default(self): """Check that the default raises (Fix is a cube).""" self.cube_1.var_name = 'Fix' self.assertIs( self.cube_1, self.fix.get_cube_from_list(self.cubes) ) class TestFixMetadata(unittest.TestCase): """Fix metadata tests.""" def setUp(self): """Prepare for testing.""" self.cube = mock.Mock() self.cube.attributes = {'source_file': 'source_file'} self.fixed_cube = mock.Mock() self.fixed_cube.attributes = {'source_file': 'source_file'} self.mock_fix = mock.Mock() self.mock_fix.fix_metadata.return_value = [self.fixed_cube] def test_fix(self): """Check that the returned fix is applied.""" with mock.patch('esmvaltool.cmor._fixes.fix.Fix.get_fixes', return_value=[self.mock_fix]): cube_returned = fix_metadata([self.cube], 'short_name', 'project', 'model')[0] self.assertTrue(cube_returned is not self.cube) self.assertTrue(cube_returned is self.fixed_cube) def test_nofix(self): """Check that the same cube is returned if no fix is available.""" with mock.patch('esmvaltool.cmor._fixes.fix.Fix.get_fixes', return_value=[]): cube_returned = fix_metadata([self.cube], 'short_name', 'project', 'model')[0] self.assertTrue(cube_returned is self.cube) self.assertTrue(cube_returned is not self.fixed_cube) def test_cmor_checker_called(self): """Check that the cmor check is done.""" checker = mock.Mock() checker.return_value = mock.Mock() with mock.patch('esmvaltool.cmor._fixes.fix.Fix.get_fixes', return_value=[]): with mock.patch('esmvaltool.cmor.fix._get_cmor_checker', return_value=checker) as get_mock: fix_metadata([self.cube], 'short_name', 'project', 'model', 'cmor_table', 'mip', 'frequency') get_mock.assert_called_once_with(automatic_fixes=True, fail_on_error=False, frequency='frequency', mip='mip', short_name='short_name', table='cmor_table') checker.assert_called_once_with(self.cube) checker.return_value.check_metadata.assert_called_once_with() class TestFixData(unittest.TestCase): """Fix data tests.""" def setUp(self): """Prepare for testing.""" self.cube = mock.Mock() self.fixed_cube = mock.Mock() self.mock_fix = mock.Mock() self.mock_fix.fix_data.return_value = self.fixed_cube def test_fix(self): """Check that the returned fix is applied.""" with mock.patch('esmvaltool.cmor._fixes.fix.Fix.get_fixes', return_value=[self.mock_fix]): cube_returned = fix_data(self.cube, 'short_name', 'project', 'model') self.assertTrue(cube_returned is not self.cube) self.assertTrue(cube_returned is self.fixed_cube) def test_nofix(self): """Check that the same cube is returned if no fix is available.""" with mock.patch('esmvaltool.cmor._fixes.fix.Fix.get_fixes', return_value=[]): cube_returned = fix_data(self.cube, 'short_name', 'project', 'model') self.assertTrue(cube_returned is self.cube) self.assertTrue(cube_returned is not self.fixed_cube) def test_cmor_checker_called(self): """Check that the cmor check is done""" checker = mock.Mock() checker.return_value = mock.Mock() with mock.patch('esmvaltool.cmor._fixes.fix.Fix.get_fixes', return_value=[]): with mock.patch('esmvaltool.cmor.fix._get_cmor_checker', return_value=checker) as get_mock: fix_data(self.cube, 'short_name', 'project', 'model', 'cmor_table', 'mip', 'frequency') get_mock.assert_called_once_with(automatic_fixes=True, fail_on_error=False, frequency='frequency', mip='mip', short_name='short_name', table='cmor_table') checker.assert_called_once_with(self.cube) checker.return_value.check_data.assert_called_once_with()
41.72093
78
0.554208
809
7,176
4.678616
0.117429
0.05284
0.034346
0.042272
0.797094
0.77675
0.76539
0.746367
0.680581
0.654425
0
0.003363
0.336957
7,176
171
79
41.964912
0.79214
0.101449
0
0.693548
0
0
0.128193
0.062126
0
0
0
0
0.169355
1
0.129032
false
0
0.024194
0
0.185484
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
d61e7d526f8617900ff4744206d17d1cf2da4e7e
66
py
Python
lib/daze/__init__.py
eonu/daze
af1a0cc37bf5519bd5f03245e32df9dd2be0c030
[ "MIT" ]
null
null
null
lib/daze/__init__.py
eonu/daze
af1a0cc37bf5519bd5f03245e32df9dd2be0c030
[ "MIT" ]
2
2021-01-20T07:17:51.000Z
2021-03-01T10:53:36.000Z
lib/daze/__init__.py
eonu/daze
af1a0cc37bf5519bd5f03245e32df9dd2be0c030
[ "MIT" ]
null
null
null
__version__ = '0.1.1' from .measures import * from .daze import *
16.5
23
0.69697
10
66
4.2
0.7
0
0
0
0
0
0
0
0
0
0
0.054545
0.166667
66
4
24
16.5
0.709091
0
0
0
0
0
0.074627
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
d62f855310aab13357c76428f93c611afe794092
216
py
Python
instapost/admin.py
Kat42272/capstone-instagram
40a529310b8ddb8c5292dfc7c0768401a947c58a
[ "MIT" ]
null
null
null
instapost/admin.py
Kat42272/capstone-instagram
40a529310b8ddb8c5292dfc7c0768401a947c58a
[ "MIT" ]
null
null
null
instapost/admin.py
Kat42272/capstone-instagram
40a529310b8ddb8c5292dfc7c0768401a947c58a
[ "MIT" ]
3
2020-10-05T19:07:18.000Z
2020-10-06T17:46:51.000Z
from django.contrib import admin from .models import PostModel class InstaPostAdmin(admin.ModelAdmin): list_display = ('id', 'caption') # Register your models here. admin.site.register(PostModel, InstaPostAdmin)
30.857143
46
0.787037
26
216
6.5
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.115741
216
7
46
30.857143
0.884817
0.12037
0
0
0
0
0.047619
0
0
0
0
0
0
1
0
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
d64ceda642e6ac1f42861079f502e2b2e60300b4
118
py
Python
Exercicios/ex30.py
GuilhermeRocha19/PycharmProjects
ac13ca1e1f2b9eb1f3c8f9001b6e309c14f08ef0
[ "MIT" ]
null
null
null
Exercicios/ex30.py
GuilhermeRocha19/PycharmProjects
ac13ca1e1f2b9eb1f3c8f9001b6e309c14f08ef0
[ "MIT" ]
null
null
null
Exercicios/ex30.py
GuilhermeRocha19/PycharmProjects
ac13ca1e1f2b9eb1f3c8f9001b6e309c14f08ef0
[ "MIT" ]
null
null
null
x=int(input('Me diga um n° qualquer:')) v= x%2 if v== 0: print(f'{x} é PAR!') else: print(f'{x} é ÍMPAR!')
11.8
39
0.516949
26
118
2.384615
0.730769
0.193548
0.225806
0.258065
0
0
0
0
0
0
0
0.022222
0.237288
118
9
40
13.111111
0.655556
0
0
0
0
0
0.391304
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
c3acc486fd120331d69a56e6af38f364f42a3987
89
py
Python
src/pywfs/__init__.py
matthewwincott/pywfs
d8146c7a4882eb94d5b64c09ebd5f3525d24cd1b
[ "MIT" ]
3
2020-01-31T14:58:16.000Z
2021-01-25T01:18:15.000Z
src/pywfs/__init__.py
matthewwincott/pywfs
d8146c7a4882eb94d5b64c09ebd5f3525d24cd1b
[ "MIT" ]
1
2021-06-15T22:17:50.000Z
2021-06-15T22:17:50.000Z
src/pywfs/__init__.py
matthewwincott/pywfs
d8146c7a4882eb94d5b64c09ebd5f3525d24cd1b
[ "MIT" ]
1
2022-02-14T12:05:14.000Z
2022-02-14T12:05:14.000Z
""" pywfs Python bindings for Thorlabs Shack-Hartmann sensors using the windows dll """
14.833333
73
0.764045
12
89
5.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.157303
89
5
74
17.8
0.906667
0.898876
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
c3bb45835b8ff70e14bb68ffa57b2718140789f3
75
py
Python
2-5-importing-spss-data.py
JVerstry/Revoscalepy-code-examples
c3f6196bb910b37394c4f5342b158a85a77fa966
[ "MIT" ]
4
2019-05-21T00:38:44.000Z
2020-09-15T16:37:15.000Z
2-5-importing-spss-data.py
JVerstry/Revoscalepy-code-examples
c3f6196bb910b37394c4f5342b158a85a77fa966
[ "MIT" ]
null
null
null
2-5-importing-spss-data.py
JVerstry/Revoscalepy-code-examples
c3f6196bb910b37394c4f5342b158a85a77fa966
[ "MIT" ]
null
null
null
# 2.5 Importing SPSS Data ## RevoscalePy does not support .sav files yet
15
46
0.733333
12
75
4.583333
1
0
0
0
0
0
0
0
0
0
0
0.033333
0.2
75
4
47
18.75
0.883333
0.893333
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
c3bfcfb1803e296ee57a85b097db2c7179b231f8
7,212
py
Python
quadpy/triangle/_zhang_cui_liu.py
whzup/quadpy
ca8bd2f9c5a4ae30dc85d8fb79217602bd42525e
[ "MIT" ]
null
null
null
quadpy/triangle/_zhang_cui_liu.py
whzup/quadpy
ca8bd2f9c5a4ae30dc85d8fb79217602bd42525e
[ "MIT" ]
null
null
null
quadpy/triangle/_zhang_cui_liu.py
whzup/quadpy
ca8bd2f9c5a4ae30dc85d8fb79217602bd42525e
[ "MIT" ]
null
null
null
from mpmath import mp from ..helpers import article from ._helpers import TriangleScheme, concat, s1, s2, s3 citation = article( authors=["Linbo Zhang", "Tao Cui", "Hui Liu"], title="A set of symmetric quadrature rules on triangles and tetrahedra", journal="Journal of Computational Mathematics", volume="27", number="1", month="jan", year="2009", pages="89-96", url="https://www.jstor.org/stable/43693493", ) def zhang_cui_liu_1(mpmath=False): flt = mp.mpf if mpmath else float mp.dps = 35 weights, points = concat( s3(flt("0.1443156076777871682510911104890646")), s2( [ flt("0.1032173705347182502817915502921290"), flt("0.1705693077517602066222935014914645"), ], [ flt("0.0324584976231980803109259283417806"), flt("0.0505472283170309754584235505965989"), ], [ flt("0.0950916342672846247938961043885843"), flt("0.4592925882927231560288155144941693"), ], ), s1( [ flt("0.0272303141744349942648446900739089"), flt("0.2631128296346381134217857862846436"), flt("0.0083947774099576053372138345392944"), ] ), ) return TriangleScheme("Zhang-Cui-Liu 1", weights, points, 8, citation) def zhang_cui_liu_2(mpmath=False): flt = mp.mpf if mpmath else float mp.dps = 35 weights, points = concat( s3(flt("0.0585962852260285941278938063477560")), s2( [ flt("0.0017351512297252675680618638808094"), flt("0.0099797608064584324152935295820524"), ], [ flt("0.0261637825586145217778288591819783"), flt("0.4799778935211883898105528650883899"), ], [ flt("0.0039197292424018290965208275701454"), flt("0.1538119591769669000000000000000000"), ], [ flt("0.0122473597569408660972869899262505"), flt("0.0740234771169878100000000000000000"), ], [ flt("0.0281996285032579601073663071515657"), flt("0.1303546825033300000000000000000000"), ], [ flt("0.0508870871859594852960348275454540"), flt("0.2306172260266531342996053700983831"), ], [ flt("0.0504534399016035991910208971341189"), flt("0.4223320834191478241144087137913939"), ], ), s1( [ flt("0.0170636442122334512900253993849472"), flt("0.7862373859346610033296221140330900"), flt("0.1906163600319009042461432828653034"), ], [ flt("0.0096834664255066004075209630934194"), flt("0.6305521436606074416224090755688129"), flt("0.3623231377435471446183267343597729"), ], [ flt("0.0363857559284850056220113277642717"), flt("0.6265773298563063142335123137534265"), flt("0.2907712058836674150248168174816732"), ], [ flt("0.0069646633735184124253997225042413"), flt("0.9142099849296254122399670993850469"), flt("0.0711657108777507625475924502924336"), ], ), ) return TriangleScheme("Zhang-Cui-Liu 2", weights, points, 14, citation) def zhang_cui_liu_3(mpmath=False): flt = mp.mpf if mpmath else float mp.dps = 35 weights, points = concat( s3(flt("0.0125376079944966565735856367723948")), s2( [ flt("0.0274718698764242137484535496073598"), flt("0.2158743059329919731902545438401828"), ], [ flt("0.0097652722770514230413646914294237"), flt("0.0753767665297472780972854309459163"), ], [ flt("0.0013984195353918235239233631597867"), flt("0.0103008281372217921136862160096969"), ], [ flt("0.0092921026251851826304282034030330"), flt("0.4936022112987001655119208321450536"), ], [ flt("0.0165778760323669253260236250351840"), flt("0.4615509381069252967410487102915180"), ], ), s1( [ flt("0.0206677623486650769614219700129729"), flt(".3286214064242369933034974609509133"), flt(".4293405702582103752139588004663984"), ], [ flt("0.0208222355211545073068785561993297"), flt(".2604803617865687564195930170811535"), flt(".1015775342809694461687550061961797"), ], [ flt("0.0095686384198490606888758450458320"), flt(".1370742358464553000000000000000000"), flt(".7100659730011301599879040745464079"), ], [ flt("0.0244527709689724638856439207024089"), flt(".1467269458722997843041609884874530"), flt(".4985454776784148493896226967076119"), ], [ flt("0.0031557306306305340038264003207296"), flt(".0269989777425532900000000000000000"), flt(".0491867226725820016197037125775872"), ], [ flt("0.0121367963653212969370133090807574"), flt(".0618717859336170268417124700122339"), flt(".7796601465405693953603506190768108"), ], [ flt("0.0149664801438864490365249118515707"), flt(".0477243674276219962083526801042934"), flt(".3704915391495476369201496202567388"), ], [ flt("0.0063275933217777395693240327504398"), flt(".1206005151863643799672337870400794"), flt(".8633469487547526484979879960925217"), ], [ flt("0.0013425603120636958849798512981433"), flt(".0026971477967097876716489145012827"), flt(".0561949381877455029878923019865887"), ], [ flt("0.0027760769163475540677293561558015"), flt(".0030156332779423626572762598234710"), flt(".2086750067484213509575944630613577"), ], [ flt("0.0107398444741849415551734474479517"), flt(".0299053757884570188069287738643386"), flt(".7211512409120340910281041502050941"), ], [ flt("0.0053678057381874532052474100212697"), flt(".0067566542224609885399458175192278"), flt(".6400554419405418899040536682721647"), ], ), ) return TriangleScheme("Zhang-Cui-Liu 3", weights, points, 20, citation)
35.352941
76
0.539656
386
7,212
10.056995
0.396373
0.061824
0.017002
0.010819
0.087841
0.05255
0.05255
0.05255
0.05255
0.05255
0
0.63838
0.356212
7,212
203
77
35.527094
0.197717
0
0
0.270833
0
0
0.446617
0.415973
0
0
0
0
0
1
0.015625
false
0
0.015625
0
0.046875
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c3c89f2f192e9fbbd1fc9046837ba1bc854401e5
1,267
py
Python
tools/wptrunner/wptrunner/tests/test_stability.py
Ms2ger/web-platform-tests
645c0e8a5c028a613e7ad1732834100dbe946fc7
[ "BSD-3-Clause" ]
9
2019-04-01T10:57:10.000Z
2021-12-02T11:12:06.000Z
tools/wptrunner/wptrunner/tests/test_stability.py
Ms2ger/web-platform-tests
645c0e8a5c028a613e7ad1732834100dbe946fc7
[ "BSD-3-Clause" ]
33
2018-07-11T22:04:44.000Z
2019-03-18T15:38:51.000Z
tools/wptrunner/wptrunner/tests/test_stability.py
Ms2ger/web-platform-tests
645c0e8a5c028a613e7ad1732834100dbe946fc7
[ "BSD-3-Clause" ]
7
2019-04-24T10:51:15.000Z
2021-12-17T16:53:01.000Z
import sys from os.path import dirname, join sys.path.insert(0, join(dirname(__file__), "..", "..")) from wptrunner import stability def test_is_inconsistent(): assert stability.is_inconsistent({"PASS": 10}, 10) is False assert stability.is_inconsistent({"PASS": 9}, 10) is True assert stability.is_inconsistent({"PASS": 9, "FAIL": 1}, 10) is True assert stability.is_inconsistent({"PASS": 8, "FAIL": 1}, 10) is True def test_find_slow_status(): assert stability.find_slow_status({ "longest_duration": {"TIMEOUT": 10}, "timeout": 10}) is None assert stability.find_slow_status({ "longest_duration": {"CRASH": 10}, "timeout": 10}) is None assert stability.find_slow_status({ "longest_duration": {"ERROR": 10}, "timeout": 10}) is None assert stability.find_slow_status({ "longest_duration": {"PASS": 1}, "timeout": 10}) is None assert stability.find_slow_status({ "longest_duration": {"PASS": 81}, "timeout": 100}) == "PASS" assert stability.find_slow_status({ "longest_duration": {"TIMEOUT": 10, "FAIL": 81}, "timeout": 100}) == "FAIL" assert stability.find_slow_status({ "longest_duration": {"SKIP": 0}}) is None
34.243243
72
0.635359
157
1,267
4.910828
0.235669
0.214008
0.145266
0.20882
0.734112
0.667964
0.622568
0.565499
0.459144
0.324254
0
0.043868
0.208366
1,267
36
73
35.194444
0.724826
0
0
0.366667
0
0
0.181531
0
0
0
0
0
0.366667
1
0.066667
true
0.233333
0.1
0
0.166667
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
0
1
1
0
0
0
0
0
4
c3cb834e1f64812871d79423c6b252af6bcafd9d
306
py
Python
fedlearner/data_join/key_mapper/impl/default.py
Hsy-Intel/fedlearner
d5d0bb5549e115eaf0dec5a00a78dcb21ac0909d
[ "Apache-2.0" ]
772
2020-01-21T13:59:42.000Z
2022-03-30T08:20:16.000Z
fedlearner/data_join/key_mapper/impl/default.py
Hsy-Intel/fedlearner
d5d0bb5549e115eaf0dec5a00a78dcb21ac0909d
[ "Apache-2.0" ]
126
2020-03-03T07:54:39.000Z
2022-03-08T23:24:03.000Z
fedlearner/data_join/key_mapper/impl/default.py
Hsy-Intel/fedlearner
d5d0bb5549e115eaf0dec5a00a78dcb21ac0909d
[ "Apache-2.0" ]
198
2020-01-22T02:16:17.000Z
2022-03-31T01:13:05.000Z
from fedlearner.data_join.key_mapper.key_mapping import BaseKeyMapper class DefaultKeyMapper(BaseKeyMapper): def leader_mapping(self, item) -> dict: return dict() def follower_mapping(self, item) -> dict: return dict() @classmethod def name(cls): return "DEFAULT"
25.5
69
0.689542
35
306
5.885714
0.628571
0.106796
0.145631
0.184466
0.281553
0.281553
0
0
0
0
0
0
0.218954
306
11
70
27.818182
0.861925
0
0
0.222222
0
0
0.022876
0
0
0
0
0
0
1
0.333333
false
0
0.111111
0.333333
0.888889
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
7f1a673306a6dabdfa39108d1dbf1d4db6bf671f
86
py
Python
ctapipe/instrument/tests/__init__.py
orelgueta/ctapipe
ee28440e83cc283ccd57428d5fdad764a1e786f0
[ "BSD-3-Clause" ]
1
2020-05-18T12:41:51.000Z
2020-05-18T12:41:51.000Z
ctapipe/instrument/tests/__init__.py
orelgueta/ctapipe
ee28440e83cc283ccd57428d5fdad764a1e786f0
[ "BSD-3-Clause" ]
null
null
null
ctapipe/instrument/tests/__init__.py
orelgueta/ctapipe
ee28440e83cc283ccd57428d5fdad764a1e786f0
[ "BSD-3-Clause" ]
1
2021-07-08T16:15:13.000Z
2021-07-08T16:15:13.000Z
# -*- coding: utf-8 -*- """ Created on Wed Nov 18 18:32:25 2015 @author: zornju """
10.75
35
0.569767
14
86
3.5
0.928571
0
0
0
0
0
0
0
0
0
0
0.191176
0.209302
86
7
36
12.285714
0.529412
0.872093
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
6170b3315567593e340bb7b251ad2911bcdea0f0
389
py
Python
enso/contrib/scriptotron/__init__.py
tartakynov/enso
3f5f7a3dcd15253889d40dc6414a24ad690ce74c
[ "BSD-3-Clause" ]
6
2016-01-26T23:21:42.000Z
2022-01-30T04:20:04.000Z
enso/contrib/scriptotron/__init__.py
tartakynov/enso
3f5f7a3dcd15253889d40dc6414a24ad690ce74c
[ "BSD-3-Clause" ]
null
null
null
enso/contrib/scriptotron/__init__.py
tartakynov/enso
3f5f7a3dcd15253889d40dc6414a24ad690ce74c
[ "BSD-3-Clause" ]
4
2017-04-28T04:51:57.000Z
2020-04-01T14:14:33.000Z
from enso.events import EventManager from enso.commands import CommandManager from enso.contrib.scriptotron.tracker import ScriptTracker def load(): import sys from enso.contrib.scriptotron.ensoapi import EnsoApi sys.path.append(EnsoApi().get_enso_commands_folder()) ScriptTracker.install( EventManager.get(), CommandManager.get() )
32.416667
59
0.714653
42
389
6.547619
0.47619
0.116364
0.109091
0.189091
0
0
0
0
0
0
0
0
0.208226
389
11
60
35.363636
0.892857
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
true
0
0.555556
0
0.666667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
61764d159ca4c90257f4cb4c05d72adcc765dd05
683
py
Python
mlcomp/parallelm/model/metadata.py
lisapm/mlpiper
74ad5ae343d364682cc2f8aaa007f2e8a1d84929
[ "Apache-2.0" ]
7
2019-04-08T02:31:55.000Z
2021-11-15T14:40:49.000Z
mlcomp/parallelm/model/metadata.py
lisapm/mlpiper
74ad5ae343d364682cc2f8aaa007f2e8a1d84929
[ "Apache-2.0" ]
31
2019-02-22T22:23:26.000Z
2021-08-02T17:17:06.000Z
mlcomp/parallelm/model/metadata.py
lisapm/mlpiper
74ad5ae343d364682cc2f8aaa007f2e8a1d84929
[ "Apache-2.0" ]
8
2019-03-15T23:46:08.000Z
2020-02-06T09:16:02.000Z
import json class Metadata(object): FILEPATH_KEY_NAME = "model" def __init__(self, model_filepath=None): self._model_filepath = model_filepath @property def model_filepath(self): return self._model_filepath def save(self, metadata_filepath): with open(metadata_filepath, 'w') as f: json.dump(self._serialize(), f) def load(self, metadata_filepath): with open(metadata_filepath, 'r') as f: content = json.load(f) self._model_filepath = content[Metadata.FILEPATH_KEY_NAME] return self def _serialize(self): return {Metadata.FILEPATH_KEY_NAME: self._model_filepath}
25.296296
70
0.661786
83
683
5.120482
0.313253
0.214118
0.2
0.112941
0.207059
0.207059
0.207059
0
0
0
0
0
0.247438
683
26
71
26.269231
0.826848
0
0
0
0
0
0.010264
0
0
0
0
0
0
1
0.277778
false
0
0.055556
0.111111
0.611111
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
6194f9ce7ab4fd7633867e71fd51c9f1c5e1a10a
58
py
Python
flask_manage/project_template/app/instance/config.py
colinlogue/flask-manage
14145e13c190f3428d822253b056458a5e480a87
[ "MIT" ]
null
null
null
flask_manage/project_template/app/instance/config.py
colinlogue/flask-manage
14145e13c190f3428d822253b056458a5e480a87
[ "MIT" ]
null
null
null
flask_manage/project_template/app/instance/config.py
colinlogue/flask-manage
14145e13c190f3428d822253b056458a5e480a87
[ "MIT" ]
null
null
null
# This file is for configuraing instance-specific settings
58
58
0.844828
8
58
6.125
1
0
0
0
0
0
0
0
0
0
0
0
0.12069
58
1
58
58
0.960784
0.965517
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
619c8cb7920a18195577addb697c9799ddd81c3b
440
py
Python
tests/test_traitlets.py
droctothorpe/dask-gateway
2f02d73d59b0f4968a179e8460f6505a381c804d
[ "BSD-3-Clause" ]
null
null
null
tests/test_traitlets.py
droctothorpe/dask-gateway
2f02d73d59b0f4968a179e8460f6505a381c804d
[ "BSD-3-Clause" ]
null
null
null
tests/test_traitlets.py
droctothorpe/dask-gateway
2f02d73d59b0f4968a179e8460f6505a381c804d
[ "BSD-3-Clause" ]
null
null
null
import pytest from traitlets import HasTraits, TraitError from dask_gateway_server.traitlets import Type def test_Type_traitlet(): class Foo(HasTraits): typ = Type(klass="dask_gateway_server.auth.Authenticator") with pytest.raises(TraitError) as exc: Foo(typ="dask_gateway_server.auth.not_a_real_path") assert "Failed to import" in str(exc.value) Foo(typ="dask_gateway_server.auth.SimpleAuthenticator")
27.5
66
0.759091
60
440
5.35
0.566667
0.137072
0.211838
0.196262
0.168224
0.168224
0
0
0
0
0
0
0.152273
440
15
67
29.333333
0.86059
0
0
0
0
0
0.313636
0.277273
0
0
0
0
0.1
1
0.1
false
0
0.4
0
0.7
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
61bad7a754278af7e9942e01560dd08507fb96d8
75
py
Python
snakeplane/constants.py
cpitts1/snakeplane
1b69a6b5695049f91272a1dd3389a6bcf0496b73
[ "Apache-2.0" ]
27
2019-03-14T15:58:00.000Z
2022-01-10T12:11:12.000Z
snakeplane/constants.py
cpitts1/snakeplane
1b69a6b5695049f91272a1dd3389a6bcf0496b73
[ "Apache-2.0" ]
13
2019-04-04T17:57:19.000Z
2021-05-11T03:43:14.000Z
snakeplane/constants.py
cpitts1/snakeplane
1b69a6b5695049f91272a1dd3389a6bcf0496b73
[ "Apache-2.0" ]
16
2019-03-15T03:40:07.000Z
2022-02-19T10:30:32.000Z
SNAKEPLANE_NULL_VALUE_PLACEHOLDER = "0c2856d0-f631-445a-a112-33fa282cb5de"
37.5
74
0.866667
9
75
6.888889
1
0
0
0
0
0
0
0
0
0
0
0.291667
0.04
75
1
75
75
0.569444
0
0
0
0
0
0.48
0.48
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
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
f60bde6143e92bd58bee67494feb86b57f48d9c8
502
py
Python
Project/proj_spec/dv.py
suryaavala/17s1-cs9318
fdfa84a5f3330d189af213d670479c65d6c60a28
[ "MIT" ]
null
null
null
Project/proj_spec/dv.py
suryaavala/17s1-cs9318
fdfa84a5f3330d189af213d670479c65d6c60a28
[ "MIT" ]
null
null
null
Project/proj_spec/dv.py
suryaavala/17s1-cs9318
fdfa84a5f3330d189af213d670479c65d6c60a28
[ "MIT" ]
2
2018-04-04T10:36:55.000Z
2019-08-23T05:53:55.000Z
from sklearn.base import TransformerMixin from sklearn.pipeline import make_pipeline from sklearn.feature_extraction import DictVectorizer class RowIterator(TransformerMixin): """ Prepare dataframe for DictVectorizer """ def fit(self, X, y=None): return self def transform(self, X): return (row for _, row in X.iterrows()) vectorizer = make_pipeline(RowIterator(), DictVectorizer()) # now you can use vectorizer as you might expect, e.g. #vectorizer.fit_transform(df)
26.421053
59
0.741036
63
502
5.825397
0.587302
0.089918
0
0
0
0
0
0
0
0
0
0
0.171315
502
18
60
27.888889
0.882212
0.237052
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.333333
0.222222
0.888889
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
f627b4010ba801c97c68eb75fe1d69f2c0e1e0ba
150
py
Python
pyrobolearn/envs/__init__.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
2
2021-01-21T21:08:30.000Z
2022-03-29T16:45:49.000Z
pyrobolearn/envs/__init__.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
null
null
null
pyrobolearn/envs/__init__.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
1
2020-09-29T21:25:39.000Z
2020-09-29T21:25:39.000Z
# -*- coding: utf-8 -*- # import from envs from .env import Env, BasicEnv # define wrapper for the gym environment from . import gym_wrapper as gym
18.75
40
0.713333
23
150
4.608696
0.652174
0
0
0
0
0
0
0
0
0
0
0.008264
0.193333
150
7
41
21.428571
0.867769
0.513333
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
f653b52de73b90a4ff74a6083b18544a6e19149d
145
py
Python
contact_us/urls.py
poya-kob/BiaBegard
b7387d4253dbae0650e61c686752dba342b0342e
[ "MIT" ]
null
null
null
contact_us/urls.py
poya-kob/BiaBegard
b7387d4253dbae0650e61c686752dba342b0342e
[ "MIT" ]
null
null
null
contact_us/urls.py
poya-kob/BiaBegard
b7387d4253dbae0650e61c686752dba342b0342e
[ "MIT" ]
1
2021-11-07T15:56:04.000Z
2021-11-07T15:56:04.000Z
from django.urls import path, include from .views import contact_us urlpatterns = [ path('contact-us/', contact_us, name="contact-us"), ]
16.111111
55
0.710345
20
145
5.05
0.55
0.356436
0
0
0
0
0
0
0
0
0
0
0.158621
145
8
56
18.125
0.827869
0
0
0
0
0
0.144828
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
f6654177d148cac4a9cee9961c525347e7641026
207
py
Python
plugins/mongo/core/connector.py
OMKE/polyinf
2f7a537d019edcf6f65dd065b9e0f8b832901995
[ "MIT" ]
null
null
null
plugins/mongo/core/connector.py
OMKE/polyinf
2f7a537d019edcf6f65dd065b9e0f8b832901995
[ "MIT" ]
1
2021-04-27T13:10:10.000Z
2021-04-27T13:10:10.000Z
plugins/mongo/core/connector.py
OMKE/polyinf
2f7a537d019edcf6f65dd065b9e0f8b832901995
[ "MIT" ]
null
null
null
from abc import ABC class Connector(ABC): def __init__(self): super(Connector, self).__init__() def connection(self): raise NotImplementedError('Must be implemeted by a subclass')
20.7
69
0.68599
25
207
5.36
0.72
0
0
0
0
0
0
0
0
0
0
0
0.222222
207
9
70
23
0.832298
0
0
0
0
0
0.154589
0
0
0
0
0
0
1
0.333333
false
0
0.166667
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
0
0
1
0
0
4
9cc6913bdcdaffbec1a8dbd42a3956711e768934
3,218
py
Python
SIP/src/peer/client/client.py
trishantpahwa/Session-Initiation-Protocol
5b770dbb9533fbe3a8ff31fc583576cc107e5ba8
[ "MIT" ]
3
2019-06-18T18:21:05.000Z
2021-07-15T06:28:25.000Z
SIP/src/peer/client/client.py
trishantpahwa/Session-Initiation-Protocol
5b770dbb9533fbe3a8ff31fc583576cc107e5ba8
[ "MIT" ]
4
2019-01-30T11:31:13.000Z
2019-03-06T12:36:54.000Z
SIP/src/peer/client/client.py
trishantpahwa/Session-Initiation-Protocol
5b770dbb9533fbe3a8ff31fc583576cc107e5ba8
[ "MIT" ]
1
2019-08-12T11:31:23.000Z
2019-08-12T11:31:23.000Z
from SIP.src.peer.peer import peer from SIP.src.packet.request.request import request class client: __peer_ = None __client_socket_ = None __client_address = () __username = '' __password = '' __client_name = '' __domain = '' __port = '' __protocol = '' __client_network_name = '' __content_type = '' __content_sub_type = '' def __init__(self, username, password, client_name, domain, protocol, port, client_network_name, content_type, content_sub_type): self.__peer_ = peer(protocol, int(port)) self.__set_username(username) self.__set_password(password) self.__set_client_name(client_name) self.__set_domain(domain) self.__set_port(port) self.__set_protocol(protocol) self.__set_client_network_name(client_network_name) self.__set_content_type(content_type) self.__set_content_sub_type(content_sub_type) def connect_to_server(self, server_address): self.__peer_.socket_connect(server_address) def disconnect_from_server(self): self.__peer_.socket_close() def send_message(self, message, address=None): if address: self.__peer_.client_send_message(message, address=address) else: self.__peer_.client_send_message(message) def receive_message(self): protocol = self.get_protocol() if protocol == 'TCP': message = self.__peer_.client_receive_message(protocol) return message if protocol == 'UDP': (message, addr) = self.__peer_.client_receive_message(protocol) return message, addr def __set_username(self, username): self.__username = username def get_username(self): return self.__username def __set_password(self, password): self.__password = password def get_password(self): return self.__password def __set_client_address(self): self.__client_address = self.__peer_._get_s_address() # Check get_s_address def get_client_addr(self): return self.__client_address def __set_client_name(self, client_name): self.__client_name = client_name def get_client_name(self): return self.__client_name def __set_domain(self, domain): self.__domain = domain def get_domain(self): return self.__domain def __set_port(self, port): self.__port = port def get_port(self): return self.__port def __set_client_network_name(self, client_network_name): self.__client_network_name = client_network_name def get_client_network_name(self): return self.__client_network_name def __set_content_type(self, content_type): self.__content_type = content_type def get_content_type(self): return self.__content_type def __set_content_sub_type(self, content_sub_type): self.__content_sub_type = content_sub_type def get_content_sub_type(self): return self.__content_sub_type def __set_protocol(self, protocol): self.__protocol = protocol def get_protocol(self): return self.__protocol
28.22807
84
0.679615
388
3,218
4.989691
0.113402
0.051653
0.08781
0.03719
0.360537
0.234504
0.175103
0.094008
0
0
0
0
0.241454
3,218
113
85
28.477876
0.793118
0.005904
0
0
0
0
0.001877
0
0
0
0
0
0
1
0.297619
false
0.083333
0.02381
0.119048
0.619048
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
9ce21029eec8ebf73b2664b8b66ac600c245b05c
429
py
Python
src/data/words.py
MikkelGroenning/deep_learning_project_with_corti
eacdf470f16cb6402a163d9fb38c8005690a3b4a
[ "MIT" ]
null
null
null
src/data/words.py
MikkelGroenning/deep_learning_project_with_corti
eacdf470f16cb6402a163d9fb38c8005690a3b4a
[ "MIT" ]
null
null
null
src/data/words.py
MikkelGroenning/deep_learning_project_with_corti
eacdf470f16cb6402a163d9fb38c8005690a3b4a
[ "MIT" ]
null
null
null
import torch from torch.nn.utils.rnn import pack_sequence class TwitterDataWords(torch.utils.data.Dataset): def __init__(self, embedded_tweets): self.embedded_tweets = embedded_tweets def __len__(self): return len(self.embedded_tweets) def __getitem__(self, indices): values = [self.embedded_tweets[i] for i in indices] return pack_sequence(sorted(values, key=lambda x: -len(x)))
26.8125
67
0.713287
57
429
5.035088
0.508772
0.243902
0.250871
0
0
0
0
0
0
0
0
0
0.191142
429
15
68
28.6
0.827089
0
0
0
0
0
0
0
0
0
0
0
0
1
0.3
false
0
0.2
0.1
0.8
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
9cea677dec6676338b03fc1e5d0862713de6e88c
124
py
Python
script_repo/asana_api/date/date_asana.py
mashup-unipd/src_bdsm_app_client
086d99d43923cf34eff620fed7e3ed26ea2f394f
[ "Apache-2.0" ]
null
null
null
script_repo/asana_api/date/date_asana.py
mashup-unipd/src_bdsm_app_client
086d99d43923cf34eff620fed7e3ed26ea2f394f
[ "Apache-2.0" ]
null
null
null
script_repo/asana_api/date/date_asana.py
mashup-unipd/src_bdsm_app_client
086d99d43923cf34eff620fed7e3ed26ea2f394f
[ "Apache-2.0" ]
null
null
null
__author__ = 'ptesser' from date import Date class DateAsana(Date): def __init__(self): Date.__init__(self)
12.4
27
0.677419
15
124
4.8
0.666667
0.222222
0
0
0
0
0
0
0
0
0
0
0.225806
124
9
28
13.777778
0.75
0
0
0
0
0
0.056911
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
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
0
0
1
0
0
4
9cf1290aca8936e4a4a7d484b8487a28041305ab
719
py
Python
cryptodock_suite/actions/order_type_ratio_over_time/data.py
the-launch-tech/cryptodock-suite
360d90c3531322b43df8df5e64ebbffc3241fe07
[ "MIT" ]
null
null
null
cryptodock_suite/actions/order_type_ratio_over_time/data.py
the-launch-tech/cryptodock-suite
360d90c3531322b43df8df5e64ebbffc3241fe07
[ "MIT" ]
null
null
null
cryptodock_suite/actions/order_type_ratio_over_time/data.py
the-launch-tech/cryptodock-suite
360d90c3531322b43df8df5e64ebbffc3241fe07
[ "MIT" ]
null
null
null
import random def data() : return [ {'margin': 0, 'limit': 0, 'market': 0}, {'margin': 0, 'limit': 0, 'market': 1}, {'margin': 0, 'limit': 0, 'market': 2}, {'margin': 0, 'limit': 0, 'market': 3}, {'margin': 0, 'limit': 1, 'market': 3}, {'margin': 1, 'limit': 1, 'market': 3}, {'margin': 1, 'limit': 2, 'market': 3}, {'margin': 1, 'limit': 3, 'market': 3}, {'margin': 1, 'limit': 4, 'market': 3}, {'margin': 1, 'limit': 5, 'market': 3}, {'margin': 1, 'limit': 5, 'market': 4}, {'margin': 2, 'limit': 5, 'market': 4}, {'margin': 3, 'limit': 5, 'market': 4}, {'margin': 3, 'limit': 6, 'market': 4}, ]
35.95
47
0.4242
89
719
3.426966
0.168539
0.160656
0.298361
0.27541
0.842623
0.445902
0.445902
0
0
0
0
0.083004
0.296245
719
19
48
37.842105
0.519763
0
0
0
0
0
0.331015
0
0
0
0
0
0
1
0.055556
true
0
0.055556
0.055556
0.166667
0
0
0
0
null
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
143f0ad9526083299d4deaf877b318304959e263
1,555
py
Python
tests/test_parse.py
cqkh42/aocr
7294ff828d12d53313f396477e851b3520db2a83
[ "MIT" ]
null
null
null
tests/test_parse.py
cqkh42/aocr
7294ff828d12d53313f396477e851b3520db2a83
[ "MIT" ]
null
null
null
tests/test_parse.py
cqkh42/aocr
7294ff828d12d53313f396477e851b3520db2a83
[ "MIT" ]
null
null
null
import pytest from aocr import parse @pytest.mark.parametrize('text', [ [[1, 1, 1, 1, 0], [1, 0, 0, 0, 0], [1, 1, 1, 0, 0], [1, 0, 0, 0, 0], [1, 0, 0, 0, 0], [1, 1, 1, 1, 0]] ]) def test_letter(text): assert parse.letter(text) == 'E' @pytest.mark.parametrize('rows', [ [ 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0], [ 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, '\n', 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, '\n', 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, '\n', 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, '\n', 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, '\n', 1, 1, 1, 1, 0, 1, 0, 0, 0, 0 ], '111101111010000100001110011100100001000010000100001111010000', '1111011110\n1000010000\n1110011100\n1000010000\n1000010000\n1111010000' ]) def test_word_multiple_letters(rows): assert parse.word(rows) == 'EF' @pytest.mark.parametrize('rows', [ [ 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0], [ 1, 1, 1, 1, 0, '\n', 1, 0, 0, 0, 0, '\n', 1, 1, 1, 0, 0, '\n', 1, 0, 0, 0, 0, '\n', 1, 0, 0, 0, 0, '\n', 1, 1, 1, 1, 0, ], '111101000011100100001000011110', '11110\n10000\n11100\n10000\n10000\n11110' ]) def test_word_single_letter(rows): assert parse.word(rows) == 'E'
25.080645
76
0.424437
283
1,555
2.30742
0.113074
0.232772
0.211332
0.140888
0.48392
0.413476
0.413476
0.413476
0.413476
0.413476
0
0.385375
0.349196
1,555
61
77
25.491803
0.259881
0
0
0.444444
0
0
0.151768
0.128617
0
0
0
0
0.055556
1
0.055556
false
0
0.037037
0
0.092593
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
145bc011b2f425f30d076345aae516a47258db89
557
py
Python
utils/py27/Lib/site-packages/pygubudesigner/widgets/__init__.py
xahmol/8bit-Unity
b4f3bee00e012ca1755afba550a5270dce0a1054
[ "BSD-2-Clause" ]
42
2018-12-12T01:00:59.000Z
2022-03-27T07:32:29.000Z
utils/py27/Lib/site-packages/pygubudesigner/widgets/__init__.py
xahmol/8bit-Unity
b4f3bee00e012ca1755afba550a5270dce0a1054
[ "BSD-2-Clause" ]
13
2020-11-06T13:50:45.000Z
2022-01-25T07:17:37.000Z
utils/py27/Lib/site-packages/pygubudesigner/widgets/__init__.py
xahmol/8bit-Unity
b4f3bee00e012ca1755afba550a5270dce0a1054
[ "BSD-2-Clause" ]
8
2020-11-14T04:30:26.000Z
2021-01-16T17:55:19.000Z
from .colorentry import ColorPropertyEditor from .tkvarentry import TkVarPropertyEditor from .imageentry import ImagePropertyEditor from .propertyeditor import EntryPropertyEditor, SpinboxPropertyEditor from .propertyeditor import TextPropertyEditor, ChoicePropertyEditor from .propertyeditor import CheckbuttonPropertyEditor from .whentry import WHPropertyEditor from .dynamicpropeditor import DynamicPropertyEditor from .fontentry import FontPropertyEditor from .stickyentry import StickyPropertyEditor from .dimensionentry import DimensionPropertyEditor
46.416667
70
0.894075
46
557
10.826087
0.521739
0.108434
0.144578
0
0
0
0
0
0
0
0
0
0.082585
557
11
71
50.636364
0.97456
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
1468321eccf2fd08dbe6cf2b0d7b40fba0196c31
267
py
Python
setup.py
laurence-kobold/1576
f069c05c0fd30cb69bccfd544d94e397ae117de3
[ "WTFPL" ]
null
null
null
setup.py
laurence-kobold/1576
f069c05c0fd30cb69bccfd544d94e397ae117de3
[ "WTFPL" ]
null
null
null
setup.py
laurence-kobold/1576
f069c05c0fd30cb69bccfd544d94e397ae117de3
[ "WTFPL" ]
null
null
null
from distutils.core import setup setup( name='testing_editable_dots', install_requires=["ruamel-yaml"], entry_points={ "console_scripts": [ "test-with-editable-dots=testing_editable_dots.main:main", ], }, )
24.272727
74
0.599251
27
267
5.666667
0.740741
0.235294
0.248366
0
0
0
0
0
0
0
0
0
0.277154
267
11
75
24.272727
0.792746
0
0
0
0
0
0.380597
0.283582
0
0
0
0
0
1
0
true
0
0.1
0
0.1
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
1
0
0
0
0
0
0
4
148062e1543d07d9051386e35aea7dd4e4b6695e
205
py
Python
api/idea_party/ideas/admin.py
nilq/idea-party
08895399b72a6e735a2a6518feb205619c592ffe
[ "MIT" ]
null
null
null
api/idea_party/ideas/admin.py
nilq/idea-party
08895399b72a6e735a2a6518feb205619c592ffe
[ "MIT" ]
null
null
null
api/idea_party/ideas/admin.py
nilq/idea-party
08895399b72a6e735a2a6518feb205619c592ffe
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models class IdeaAdmin(admin.ModelAdmin): list_display = ['title', 'pitch', 'votes', 'id', 'creation_date'] admin.site.register(models.Idea, IdeaAdmin)
25.625
69
0.736585
26
205
5.730769
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.121951
205
8
70
25.625
0.827778
0
0
0
0
0
0.145631
0
0
0
0
0
0
1
0
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
1488be8c30a76d9c0903885ef9fd381ecdf0b6c3
153
py
Python
run.py
trdarr/ugproxy
242c1a31fd31ecfb6c91dd3651f1a9e97234a3a6
[ "Apache-2.0" ]
null
null
null
run.py
trdarr/ugproxy
242c1a31fd31ecfb6c91dd3651f1a9e97234a3a6
[ "Apache-2.0" ]
null
null
null
run.py
trdarr/ugproxy
242c1a31fd31ecfb6c91dd3651f1a9e97234a3a6
[ "Apache-2.0" ]
null
null
null
from ugproxy.ultimateguitar import get_tab from ugproxy.server import create_server address = ('0.0.0.0', 8000) create_server(address).serve_forever()
21.857143
42
0.797386
23
153
5.130435
0.565217
0.050847
0.322034
0
0
0
0
0
0
0
0
0.057971
0.098039
153
6
43
25.5
0.797101
0
0
0
0
0
0.045752
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
14911f39513da25c9f002cc1d04d175d7ce066fd
139
py
Python
tmlib/datasets/__init__.py
hncuong/topicmodel-lib
a14b065838c5ea996cc13b6454b8c051a2a87c9b
[ "MIT" ]
3
2020-06-09T04:47:46.000Z
2020-07-24T08:18:58.000Z
tmlib/datasets/__init__.py
hncuong/topicmodel-lib
a14b065838c5ea996cc13b6454b8c051a2a87c9b
[ "MIT" ]
null
null
null
tmlib/datasets/__init__.py
hncuong/topicmodel-lib
a14b065838c5ea996cc13b6454b8c051a2a87c9b
[ "MIT" ]
1
2021-03-08T10:54:33.000Z
2021-03-08T10:54:33.000Z
from .dataset import DataSet from .utilizies import Corpus, DataFormat __all__ = ['DataSet', 'Corpus', 'DataFormat']
23.166667
41
0.640288
13
139
6.538462
0.538462
0.376471
0
0
0
0
0
0
0
0
0
0
0.258993
139
6
42
23.166667
0.825243
0
0
0
0
0
0.164286
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
14bed3c6a5e7321ef2ecfda3ae5b2090aca60667
153
py
Python
LemonGraph/hooks.py
d4tocchini/lg
7cbdf874c9ac7ee27020f274063b806f793de4dc
[ "Apache-2.0" ]
1,124
2016-08-02T13:28:33.000Z
2022-03-04T15:30:09.000Z
LemonGraph/hooks.py
d4tocchini/lg
7cbdf874c9ac7ee27020f274063b806f793de4dc
[ "Apache-2.0" ]
13
2017-06-19T13:19:21.000Z
2020-02-13T18:19:28.000Z
LemonGraph/hooks.py
d4tocchini/lg
7cbdf874c9ac7ee27020f274063b806f793de4dc
[ "Apache-2.0" ]
153
2017-01-24T23:02:40.000Z
2022-01-21T14:09:03.000Z
class Hooks(object): def opened(self, g): pass def updated(self, g, nextID, updates): pass def deleted(self): pass
15.3
42
0.54902
19
153
4.421053
0.631579
0.119048
0
0
0
0
0
0
0
0
0
0
0.346405
153
9
43
17
0.84
0
0
0.428571
0
0
0
0
0
0
0
0
0
1
0.428571
false
0.428571
0
0
0.571429
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
4
14bfea3f641d051dc957166310bfd305227612f4
926
py
Python
WEEKS/CD_Sata-Structures/_MISC/misc-examples/test_climbing_stairs.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/test_climbing_stairs.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/test_climbing_stairs.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
import unittest from climbing_stairs import climbing_stairs class Test(unittest.TestCase): def test_climbing_stairs_small_n(self): self.assertEqual(climbing_stairs(0), 1) self.assertEqual(climbing_stairs(1), 1) self.assertEqual(climbing_stairs(2), 2) self.assertEqual(climbing_stairs(5), 13) self.assertEqual(climbing_stairs(10), 274) def test_climbing_stairs_large_n(self): self.assertEqual(climbing_stairs(50, [0 for i in range(51)]), 10562230626642) self.assertEqual( climbing_stairs(100, [0 for i in range(101)]), 180396380815100901214157639 ) self.assertEqual( climbing_stairs(500, [0 for i in range(501)]), 1306186569702186634983475450062372018715120191391192207156664343051610913971927959744519676992404852130396504615663042713312314219527, ) if __name__ == "__main__": unittest.main()
35.615385
146
0.711663
97
926
6.525773
0.381443
0.265403
0.290679
0.366509
0.259084
0.107425
0
0
0
0
0
0.279352
0.199784
926
25
147
37.04
0.574899
0
0
0.1
0
0
0.008639
0
0
0
0
0
0.4
1
0.1
false
0
0.1
0
0.25
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
1af0dc389db8ae20578fad703e418ccd1e5b9e3a
235
py
Python
neuralnetwork/cost_functions.py
prateekbhat91/Neural-Network
1bbda82027bf7227a7dbec2062deb43ac03de13f
[ "BSD-3-Clause" ]
6
2016-11-23T03:01:42.000Z
2019-04-05T14:58:08.000Z
neuralnetwork/cost_functions.py
prateekbhat91/Neural-Network
1bbda82027bf7227a7dbec2062deb43ac03de13f
[ "BSD-3-Clause" ]
1
2021-11-14T09:00:33.000Z
2021-11-14T09:09:34.000Z
neuralnetwork/cost_functions.py
prateekbhat91/Neural-Network
1bbda82027bf7227a7dbec2062deb43ac03de13f
[ "BSD-3-Clause" ]
3
2016-11-06T23:54:47.000Z
2021-05-22T16:17:24.000Z
from __future__ import division ''' This file contains implementation of derivatives of loss functions. ''' def SSE(true, pred): return pred - true def cross_entropy(true, pred): return (pred - true) / (pred * (1 - pred))
16.785714
67
0.685106
31
235
5.032258
0.645161
0.153846
0.179487
0.230769
0.282051
0
0
0
0
0
0
0.005348
0.204255
235
13
68
18.076923
0.828877
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.2
0.4
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
1af277690b783bd1d3dc410feaf02e719314e930
285
py
Python
pdfto/core/exceptions/temb64.py
senavs/pdfto
cce27e0ab62fb66698106f27f5efd1d6741462d5
[ "MIT" ]
1
2020-02-09T17:12:47.000Z
2020-02-09T17:12:47.000Z
pdfto/core/exceptions/temb64.py
senavs/pdfto
cce27e0ab62fb66698106f27f5efd1d6741462d5
[ "MIT" ]
null
null
null
pdfto/core/exceptions/temb64.py
senavs/pdfto
cce27e0ab62fb66698106f27f5efd1d6741462d5
[ "MIT" ]
null
null
null
class Temb64Exception(Exception): def __init__(self): self.message = f'{self.__class__} base exception' def __str__(self): return self.message class BrokenBase64(Temb64Exception): def __init__(self): self.message = 'Base64 may has been broken'
20.357143
57
0.677193
32
285
5.53125
0.53125
0.186441
0.124294
0.169492
0.248588
0
0
0
0
0
0
0.036364
0.22807
285
13
58
21.923077
0.768182
0
0
0.25
0
0
0.2
0
0
0
0
0
0
1
0.375
false
0
0
0.125
0.75
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
2109da9ca5343f26a05c5f40a1e16c4c214d1af0
13,803
py
Python
analysis/Graham/scripts/.ipynb_checkpoints/project_functions-checkpoint.py
data301-2020-winter1/course-project-group_6008
ce3b5ccc48afe6775d831da49defcd0e4fd78c07
[ "MIT" ]
null
null
null
analysis/Graham/scripts/.ipynb_checkpoints/project_functions-checkpoint.py
data301-2020-winter1/course-project-group_6008
ce3b5ccc48afe6775d831da49defcd0e4fd78c07
[ "MIT" ]
1
2020-12-06T00:15:53.000Z
2020-12-06T00:15:53.000Z
analysis/Graham/scripts/.ipynb_checkpoints/project_functions-checkpoint.py
data301-2020-winter1/course-project-group_6008
ce3b5ccc48afe6775d831da49defcd0e4fd78c07
[ "MIT" ]
null
null
null
{ "cells": [ { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<div>\n", "<style scoped>\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "</style>\n", "<table border=\"1\" class=\"dataframe\">\n", " <thead>\n", " <tr style=\"text-align: right;\">\n", " <th></th>\n", " <th>Name</th>\n", " <th>Games Played</th>\n", " <th>MIN</th>\n", " <th>PTS</th>\n", " <th>FGM</th>\n", " <th>FGA</th>\n", " <th>FG%</th>\n", " <th>3PM</th>\n", " <th>3PA</th>\n", " <th>3P%</th>\n", " <th>...</th>\n", " <th>BLK</th>\n", " <th>TOV</th>\n", " <th>PF</th>\n", " <th>EFF</th>\n", " <th>AST/TOV</th>\n", " <th>STL/TOV</th>\n", " <th>Collage</th>\n", " <th>Experience</th>\n", " <th>Height</th>\n", " <th>Pos</th>\n", " </tr>\n", " </thead>\n", " <tbody>\n", " <tr>\n", " <th>457</th>\n", " <td>Toure' Murry</td>\n", " <td>5</td>\n", " <td>18</td>\n", " <td>6</td>\n", " <td>2</td>\n", " <td>5</td>\n", " <td>40.0</td>\n", " <td>0</td>\n", " <td>0</td>\n", " <td>0.0</td>\n", " <td>...</td>\n", " <td>0</td>\n", " <td>4</td>\n", " <td>2</td>\n", " <td>2</td>\n", " <td>0.25</td>\n", " <td>0.25</td>\n", " <td>Wichita State University</td>\n", " <td>1</td>\n", " <td>192.5</td>\n", " <td>SG</td>\n", " </tr>\n", " <tr>\n", " <th>378</th>\n", " <td>Phil Pressey</td>\n", " <td>50</td>\n", " <td>600</td>\n", " <td>177</td>\n", " <td>64</td>\n", " <td>174</td>\n", " <td>36.8</td>\n", " <td>16</td>\n", " <td>65</td>\n", " <td>24.6</td>\n", " <td>...</td>\n", " <td>6</td>\n", " <td>41</td>\n", " <td>54</td>\n", " <td>243</td>\n", " <td>2.85</td>\n", " <td>0.73</td>\n", " <td>University of Missouri</td>\n", " <td>1</td>\n", " <td>177.5</td>\n", " <td>PG</td>\n", " </tr>\n", " <tr>\n", " <th>223</th>\n", " <td>Jerome Jordan</td>\n", " <td>44</td>\n", " <td>383</td>\n", " <td>138</td>\n", " <td>50</td>\n", " <td>94</td>\n", " <td>53.2</td>\n", " <td>0</td>\n", " <td>0</td>\n", " <td>0.0</td>\n", " <td>...</td>\n", " <td>15</td>\n", " <td>22</td>\n", " <td>58</td>\n", " <td>207</td>\n", " <td>0.59</td>\n", " <td>0.36</td>\n", " <td>University of Tulsa</td>\n", " <td>1</td>\n", " <td>210.0</td>\n", " <td>C</td>\n", " </tr>\n", " <tr>\n", " <th>329</th>\n", " <td>Matthew Dellavedova</td>\n", " <td>67</td>\n", " <td>1380</td>\n", " <td>319</td>\n", " <td>111</td>\n", " <td>307</td>\n", " <td>36.2</td>\n", " <td>68</td>\n", " <td>167</td>\n", " <td>40.7</td>\n", " <td>...</td>\n", " <td>2</td>\n", " <td>61</td>\n", " <td>152</td>\n", " <td>409</td>\n", " <td>3.34</td>\n", " <td>0.39</td>\n", " <td>Saint Mary's College of California</td>\n", " <td>1</td>\n", " <td>190.0</td>\n", " <td>SG</td>\n", " </tr>\n", " <tr>\n", " <th>40</th>\n", " <td>Ben McLemore</td>\n", " <td>82</td>\n", " <td>2670</td>\n", " <td>996</td>\n", " <td>363</td>\n", " <td>831</td>\n", " <td>43.7</td>\n", " <td>140</td>\n", " <td>391</td>\n", " <td>35.8</td>\n", " <td>...</td>\n", " <td>19</td>\n", " <td>138</td>\n", " <td>219</td>\n", " <td>837</td>\n", " <td>1.01</td>\n", " <td>0.56</td>\n", " <td>University of Kansas</td>\n", " <td>1</td>\n", " <td>192.5</td>\n", " <td>SG</td>\n", " </tr>\n", " <tr>\n", " <th>...</th>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " <td>...</td>\n", " </tr>\n", " <tr>\n", " <th>249</th>\n", " <td>Jordan Clarkson</td>\n", " <td>59</td>\n", " <td>1476</td>\n", " <td>703</td>\n", " <td>267</td>\n", " <td>596</td>\n", " <td>44.8</td>\n", " <td>38</td>\n", " <td>121</td>\n", " <td>31.4</td>\n", " <td>...</td>\n", " <td>12</td>\n", " <td>96</td>\n", " <td>109</td>\n", " <td>711</td>\n", " <td>2.15</td>\n", " <td>0.53</td>\n", " <td>University of Missouri</td>\n", " <td>R</td>\n", " <td>192.5</td>\n", " <td>PG</td>\n", " </tr>\n", " <tr>\n", " <th>297</th>\n", " <td>Larry Drew II</td>\n", " <td>12</td>\n", " <td>219</td>\n", " <td>46</td>\n", " <td>20</td>\n", " <td>58</td>\n", " <td>34.5</td>\n", " <td>4</td>\n", " <td>26</td>\n", " <td>15.4</td>\n", " <td>...</td>\n", " <td>0</td>\n", " <td>25</td>\n", " <td>13</td>\n", " <td>48</td>\n", " <td>1.80</td>\n", " <td>0.24</td>\n", " <td>University of California, Los Angeles</td>\n", " <td>R</td>\n", " <td>185.0</td>\n", " <td>PG</td>\n", " </tr>\n", " <tr>\n", " <th>86</th>\n", " <td>Cory Jefferson</td>\n", " <td>50</td>\n", " <td>531</td>\n", " <td>183</td>\n", " <td>75</td>\n", " <td>167</td>\n", " <td>44.9</td>\n", " <td>2</td>\n", " <td>15</td>\n", " <td>13.3</td>\n", " <td>...</td>\n", " <td>21</td>\n", " <td>20</td>\n", " <td>61</td>\n", " <td>240</td>\n", " <td>0.80</td>\n", " <td>0.50</td>\n", " <td>Baylor University</td>\n", " <td>R</td>\n", " <td>202.5</td>\n", " <td>PF</td>\n", " </tr>\n", " <tr>\n", " <th>232</th>\n", " <td>Joe Harris</td>\n", " <td>51</td>\n", " <td>493</td>\n", " <td>136</td>\n", " <td>48</td>\n", " <td>120</td>\n", " <td>40.0</td>\n", " <td>31</td>\n", " <td>84</td>\n", " <td>36.9</td>\n", " <td>...</td>\n", " <td>2</td>\n", " <td>27</td>\n", " <td>62</td>\n", " <td>107</td>\n", " <td>0.96</td>\n", " <td>0.26</td>\n", " <td>University of Virginia</td>\n", " <td>R</td>\n", " <td>195.0</td>\n", " <td>SG</td>\n", " </tr>\n", " <tr>\n", " <th>486</th>\n", " <td>Zach LaVine</td>\n", " <td>77</td>\n", " <td>1902</td>\n", " <td>778</td>\n", " <td>286</td>\n", " <td>677</td>\n", " <td>42.2</td>\n", " <td>57</td>\n", " <td>167</td>\n", " <td>34.1</td>\n", " <td>...</td>\n", " <td>10</td>\n", " <td>193</td>\n", " <td>158</td>\n", " <td>720</td>\n", " <td>1.43</td>\n", " <td>0.28</td>\n", " <td>University of California, Los Angeles</td>\n", " <td>R</td>\n", " <td>192.5</td>\n", " <td>PG</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", "<p>350 rows × 28 columns</p>\n", "</div>" ], "text/plain": [ " Name Games Played MIN PTS FGM FGA FG% 3PM 3PA \\\n", "457 Toure' Murry 5 18 6 2 5 40.0 0 0 \n", "378 Phil Pressey 50 600 177 64 174 36.8 16 65 \n", "223 Jerome Jordan 44 383 138 50 94 53.2 0 0 \n", "329 Matthew Dellavedova 67 1380 319 111 307 36.2 68 167 \n", "40 Ben McLemore 82 2670 996 363 831 43.7 140 391 \n", ".. ... ... ... ... ... ... ... ... ... \n", "249 Jordan Clarkson 59 1476 703 267 596 44.8 38 121 \n", "297 Larry Drew II 12 219 46 20 58 34.5 4 26 \n", "86 Cory Jefferson 50 531 183 75 167 44.9 2 15 \n", "232 Joe Harris 51 493 136 48 120 40.0 31 84 \n", "486 Zach LaVine 77 1902 778 286 677 42.2 57 167 \n", "\n", " 3P% ... BLK TOV PF EFF AST/TOV STL/TOV \\\n", "457 0.0 ... 0 4 2 2 0.25 0.25 \n", "378 24.6 ... 6 41 54 243 2.85 0.73 \n", "223 0.0 ... 15 22 58 207 0.59 0.36 \n", "329 40.7 ... 2 61 152 409 3.34 0.39 \n", "40 35.8 ... 19 138 219 837 1.01 0.56 \n", ".. ... ... ... ... ... ... ... ... \n", "249 31.4 ... 12 96 109 711 2.15 0.53 \n", "297 15.4 ... 0 25 13 48 1.80 0.24 \n", "86 13.3 ... 21 20 61 240 0.80 0.50 \n", "232 36.9 ... 2 27 62 107 0.96 0.26 \n", "486 34.1 ... 10 193 158 720 1.43 0.28 \n", "\n", " Collage Experience Height Pos \n", "457 Wichita State University 1 192.5 SG \n", "378 University of Missouri 1 177.5 PG \n", "223 University of Tulsa 1 210.0 C \n", "329 Saint Mary's College of California 1 190.0 SG \n", "40 University of Kansas 1 192.5 SG \n", ".. ... ... ... ... \n", "249 University of Missouri R 192.5 PG \n", "297 University of California, Los Angeles R 185.0 PG \n", "86 Baylor University R 202.5 PF \n", "232 University of Virginia R 195.0 SG \n", "486 University of California, Los Angeles R 192.5 PG \n", "\n", "[350 rows x 28 columns]" ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import pandas as pd\n", "def load_and_process(url_or_path_to_csv_file):\n", "\n", " df = (pd.read_csv(url_or_path_to_csv_file)\n", " .drop(columns = ['BMI','Weight','Team','Birth_Place','Birthdate','Age'])\n", " .dropna()\n", " .sort_values('Experience', ascending = True)\n", " )\n", " return df\n", "load_and_process('../../../data/raw/players_stats.csv')" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.3" } }, "nbformat": 4, "nbformat_minor": 4 }
33.997537
91
0.300007
1,737
13,803
2.3673
0.158319
0.168531
0.26751
0.045233
0.327091
0.289883
0.251216
0.146401
0.13643
0.122811
0
0.128581
0.451206
13,803
405
92
34.081481
0.414125
0
0
0.355556
0
0
0.685286
0.017605
0
0
0
0
0
1
0
true
0
0.002469
0
0.002469
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
210bbdb09d5719c060304212b3294915a13b6fbb
72
py
Python
Lib/lib2to3/__main__.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Lib/lib2to3/__main__.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Lib/lib2to3/__main__.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
zaimportuj sys z .main zaimportuj main sys.exit(main("lib2to3.fixes"))
14.4
31
0.763889
11
72
5
0.636364
0
0
0
0
0
0
0
0
0
0
0.03125
0.111111
72
4
32
18
0.828125
0
0
0
0
0
0.180556
0
0
0
0
0
0
0
null
null
0
0.666667
null
null
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
1
0
0
0
1
0
0
0
0
4
212d02f9156bff3055c15c98dcd616eb026a9927
316
py
Python
news_board/serializers.py
renmarin/News-Board-API
827383a8047bb310eaafeefff2a924dad16d5d47
[ "MIT" ]
null
null
null
news_board/serializers.py
renmarin/News-Board-API
827383a8047bb310eaafeefff2a924dad16d5d47
[ "MIT" ]
null
null
null
news_board/serializers.py
renmarin/News-Board-API
827383a8047bb310eaafeefff2a924dad16d5d47
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import News, Comments class NewsSerializer(serializers.ModelSerializer): class Meta: model = News fields = "__all__" class CommentsSerializer(serializers.ModelSerializer): class Meta: model = Comments fields = "__all__"
21.066667
54
0.705696
30
316
7.133333
0.533333
0.242991
0.28972
0.327103
0.373832
0
0
0
0
0
0
0
0.231013
316
14
55
22.571429
0.880658
0
0
0.4
0
0
0.044304
0
0
0
0
0
0
1
0
false
0
0.2
0
0.6
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
213371bb45c4a7419022a1d054a6b89396b30106
72
py
Python
config/nvim/skel/skeleton.py
zen0bit/dotfiles
f8609eaecd07b4808b3bacc43029f5d4aa344275
[ "WTFPL" ]
1
2020-08-15T18:07:17.000Z
2020-08-15T18:07:17.000Z
config/nvim/skel/skeleton.py
zen0bit/dotfiles
f8609eaecd07b4808b3bacc43029f5d4aa344275
[ "WTFPL" ]
null
null
null
config/nvim/skel/skeleton.py
zen0bit/dotfiles
f8609eaecd07b4808b3bacc43029f5d4aa344275
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python def main(): print('Hello, World!') main()
8
26
0.569444
10
72
4.1
0.9
0
0
0
0
0
0
0
0
0
0
0
0.208333
72
8
27
9
0.719298
0.277778
0
0
0
0
0.254902
0
0
0
0
0
0
1
0.333333
true
0
0
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
4
213b88a24652eb6ae9c220a29e5fdc45cf3dd851
93
py
Python
src/_init_.py
Jules2014/Time-Series
8be40d9191ee0bf66da34d65e13b05b558dfb71f
[ "MIT" ]
null
null
null
src/_init_.py
Jules2014/Time-Series
8be40d9191ee0bf66da34d65e13b05b558dfb71f
[ "MIT" ]
null
null
null
src/_init_.py
Jules2014/Time-Series
8be40d9191ee0bf66da34d65e13b05b558dfb71f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Aug 12 17:57:12 2020 @author: Juan Julio """
15.5
36
0.55914
15
93
3.466667
0.933333
0
0
0
0
0
0
0
0
0
0
0.183099
0.236559
93
6
37
15.5
0.549296
0.849462
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
21558868bf56d70b80fb9a2bdcf6fa99d6cb2fb5
107
py
Python
confu/arm/isa.py
tiny-dnn/confu
8f74d9fc0c04efe8cd1b92ae5f43a5d9b686500e
[ "MIT" ]
null
null
null
confu/arm/isa.py
tiny-dnn/confu
8f74d9fc0c04efe8cd1b92ae5f43a5d9b686500e
[ "MIT" ]
null
null
null
confu/arm/isa.py
tiny-dnn/confu
8f74d9fc0c04efe8cd1b92ae5f43a5d9b686500e
[ "MIT" ]
1
2020-11-16T18:06:25.000Z
2020-11-16T18:06:25.000Z
from confu.isa import InstructionSet neon = InstructionSet("neon", gnu_flags="-march=armv7-a -mfpu=neon")
26.75
68
0.766355
15
107
5.4
0.8
0.444444
0
0
0
0
0
0
0
0
0
0.010309
0.093458
107
3
69
35.666667
0.824742
0
0
0
0
0
0.271028
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
215d872a7279288cac44c1a24059e2d1fac0bd95
247
py
Python
nanonispy/constants.py
underchemist/nanonispy
129f38a932d0d146ce14582a0552fe94cb918619
[ "MIT" ]
14
2016-09-14T16:49:27.000Z
2021-09-01T07:36:06.000Z
nanonispy/constants.py
BaiTiaoWen/nanonispy
129f38a932d0d146ce14582a0552fe94cb918619
[ "MIT" ]
15
2016-09-11T19:34:42.000Z
2021-09-16T21:40:18.000Z
nanonispy/constants.py
BaiTiaoWen/nanonispy
129f38a932d0d146ce14582a0552fe94cb918619
[ "MIT" ]
15
2016-09-23T19:53:57.000Z
2022-01-11T06:56:39.000Z
nanonis_format_dict = { 'big endian float 32': '>f4', 'little endian float 32': '<f4', 'big endian float 64': '>f8', 'little endian float 64': '<f8', } nanonis_end_tags = dict(grid=':HEADER_END:', scan='SCANIT_END', spec='[DATA]')
30.875
78
0.619433
35
247
4.2
0.542857
0.29932
0.190476
0.204082
0
0
0
0
0
0
0
0.059406
0.182186
247
8
78
30.875
0.668317
0
0
0
0
0
0.491935
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
dcbf7a205d8dbbf059220270ed1d4c521dc9ffab
65
py
Python
__classes__/__init__.py
Ahuge/NukeParser
97a37883f5ccf030da319d21c5f80cfd6113df49
[ "MIT" ]
24
2016-06-26T01:29:04.000Z
2021-04-30T16:20:13.000Z
__classes__/__init__.py
Ahuge/NukeParser
97a37883f5ccf030da319d21c5f80cfd6113df49
[ "MIT" ]
2
2021-10-13T23:12:06.000Z
2022-01-17T21:30:00.000Z
__classes__/__init__.py
Ahuge/NukeParser
97a37883f5ccf030da319d21c5f80cfd6113df49
[ "MIT" ]
2
2019-10-29T17:23:59.000Z
2020-06-24T18:47:14.000Z
__author__ = 'Alex' from node import Node from knob import Knob
13
21
0.769231
10
65
4.6
0.6
0
0
0
0
0
0
0
0
0
0
0
0.184615
65
4
22
16.25
0.867925
0
0
0
0
0
0.061538
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
0d49d1ac58a0437dd771bc44d6885c8c30a9044f
90
py
Python
tests/test_file_communicators/module_for_tsting_cmd_dispatcher.py
wbkdef/AHK_Python_Communication_Via_Files
e32c762df6f0b7ad2b774a5fed26bac2f72a22a3
[ "MIT" ]
null
null
null
tests/test_file_communicators/module_for_tsting_cmd_dispatcher.py
wbkdef/AHK_Python_Communication_Via_Files
e32c762df6f0b7ad2b774a5fed26bac2f72a22a3
[ "MIT" ]
null
null
null
tests/test_file_communicators/module_for_tsting_cmd_dispatcher.py
wbkdef/AHK_Python_Communication_Via_Files
e32c762df6f0b7ad2b774a5fed26bac2f72a22a3
[ "MIT" ]
null
null
null
def fcn1(): return "in fcn1" def fcn2(x): return "in fcn2: x is %s" % x
6
33
0.488889
15
90
2.933333
0.533333
0.363636
0
0
0
0
0
0
0
0
0
0.070175
0.366667
90
14
34
6.428571
0.701754
0
0
0
0
0
0.280488
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
b499dd887686e10a515f30e84c4fd85542f772ec
137
py
Python
3rdparty/wsgi_intercept/urllib2_intercept/__init__.py
arda2525/fixofx
1792d94697af682ca1d4a75cfefe98465d95a288
[ "Apache-2.0" ]
50
2015-01-01T00:14:04.000Z
2020-11-26T04:44:30.000Z
3rdparty/wsgi_intercept/urllib2_intercept/__init__.py
arda2525/fixofx
1792d94697af682ca1d4a75cfefe98465d95a288
[ "Apache-2.0" ]
3
2016-01-31T17:14:41.000Z
2017-03-01T13:36:17.000Z
3rdparty/wsgi_intercept/urllib2_intercept/__init__.py
arda2525/fixofx
1792d94697af682ca1d4a75cfefe98465d95a288
[ "Apache-2.0" ]
15
2015-10-29T09:04:21.000Z
2022-01-19T17:33:25.000Z
"""intercept http requests made using the urllib2 module. (see wsgi_intercept/__init__.py for examples) """ from wsgi_urllib2 import *
19.571429
57
0.773723
19
137
5.263158
0.842105
0
0
0
0
0
0
0
0
0
0
0.016949
0.138686
137
7
58
19.571429
0.830508
0.737226
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
b4adec0b766dcdc05191683311c580d9f9d493f6
8,726
py
Python
ov2640_constants.py
FunPythonEC/OV2640_uPy
2c2e4bf006e3cdcc4eed4ff105404205463a8c3c
[ "MIT" ]
6
2019-05-13T13:48:18.000Z
2021-12-28T19:08:34.000Z
ov2640_constants.py
FunPythonEC/OV2640_uPy
2c2e4bf006e3cdcc4eed4ff105404205463a8c3c
[ "MIT" ]
1
2019-07-13T08:51:08.000Z
2020-05-26T01:54:36.000Z
ov2640_constants.py
FunPythonEC/OV2640_uPy
2c2e4bf006e3cdcc4eed4ff105404205463a8c3c
[ "MIT" ]
4
2019-05-04T07:51:47.000Z
2021-01-21T21:46:45.000Z
OV2640_JPEG_INIT = [ [ 0xff, b'\x00' ], [ 0x2c, b'\xff' ], [ 0x2e, b'\xdf' ], [ 0xff, b'\x01' ], [ 0x3c, b'\x32' ], [ 0x11, b'\x04' ], [ 0x09, b'\x02' ], [ 0x04, b'\x28' ], [ 0x13, b'\xe5' ], [ 0x14, b'\x48' ], [ 0x2c, b'\x0c' ], [ 0x33, b'\x78' ], [ 0x3a, b'\x33' ], [ 0x3b, b'\xfB' ], [ 0x3e, b'\x00' ], [ 0x43, b'\x11' ], [ 0x16, b'\x10' ], [ 0x39, b'\x92' ], [ 0x35, b'\xda' ], [ 0x22, b'\x1a' ], [ 0x37, b'\xc3' ], [ 0x23, b'\x00' ], [ 0x34, b'\xc0' ], [ 0x36, b'\x1a' ], [ 0x06, b'\x88' ], [ 0x07, b'\xc0' ], [ 0x0d, b'\x87' ], [ 0x0e, b'\x41' ], [ 0x4c, b'\x00' ], [ 0x48, b'\x00' ], [ 0x5B, b'\x00' ], [ 0x42, b'\x03' ], [ 0x4a, b'\x81' ], [ 0x21, b'\x99' ], [ 0x24, b'\x40' ], [ 0x25, b'\x38' ], [ 0x26, b'\x82' ], [ 0x5c, b'\x00' ], [ 0x63, b'\x00' ], [ 0x61, b'\x70' ], [ 0x62, b'\x80' ], [ 0x7c, b'\x05' ], [ 0x20, b'\x80' ], [ 0x28, b'\x30' ], [ 0x6c, b'\x00' ], [ 0x6d, b'\x80' ], [ 0x6e, b'\x00' ], [ 0x70, b'\x02' ], [ 0x71, b'\x94' ], [ 0x73, b'\xc1' ], [ 0x12, b'\x40' ], [ 0x17, b'\x11' ], [ 0x18, b'\x43' ], [ 0x19, b'\x00' ], [ 0x1a, b'\x4b' ], [ 0x32, b'\x09' ], [ 0x37, b'\xc0' ], [ 0x4f, b'\x60' ], [ 0x50, b'\xa8' ], [ 0x6d, b'\x00' ], [ 0x3d, b'\x38' ], [ 0x46, b'\x3f' ], [ 0x4f, b'\x60' ], [ 0x0c, b'\x3c' ], [ 0xff, b'\x00' ], [ 0xe5, b'\x7f' ], [ 0xf9, b'\xc0' ], [ 0x41, b'\x24' ], [ 0xe0, b'\x14' ], [ 0x76, b'\xff' ], [ 0x33, b'\xa0' ], [ 0x42, b'\x20' ], [ 0x43, b'\x18' ], [ 0x4c, b'\x00' ], [ 0x87, b'\xd5' ], [ 0x88, b'\x3f' ], [ 0xd7, b'\x03' ], [ 0xd9, b'\x10' ], [ 0xd3, b'\x82' ], [ 0xc8, b'\x08' ], [ 0xc9, b'\x80' ], [ 0x7c, b'\x00' ], [ 0x7d, b'\x00' ], [ 0x7c, b'\x03' ], [ 0x7d, b'\x48' ], [ 0x7d, b'\x48' ], [ 0x7c, b'\x08' ], [ 0x7d, b'\x20' ], [ 0x7d, b'\x10' ], [ 0x7d, b'\x0e' ], [ 0x90, b'\x00' ], [ 0x91, b'\x0e' ], [ 0x91, b'\x1a' ], [ 0x91, b'\x31' ], [ 0x91, b'\x5a' ], [ 0x91, b'\x69' ], [ 0x91, b'\x75' ], [ 0x91, b'\x7e' ], [ 0x91, b'\x88' ], [ 0x91, b'\x8f' ], [ 0x91, b'\x96' ], [ 0x91, b'\xa3' ], [ 0x91, b'\xaf' ], [ 0x91, b'\xc4' ], [ 0x91, b'\xd7' ], [ 0x91, b'\xe8' ], [ 0x91, b'\x20' ], [ 0x92, b'\x00' ], [ 0x93, b'\x06' ], [ 0x93, b'\xe3' ], [ 0x93, b'\x05' ], [ 0x93, b'\x05' ], [ 0x93, b'\x00' ], [ 0x93, b'\x04' ], [ 0x93, b'\x00' ], [ 0x93, b'\x00' ], [ 0x93, b'\x00' ], [ 0x93, b'\x00' ], [ 0x93, b'\x00' ], [ 0x93, b'\x00' ], [ 0x93, b'\x00' ], [ 0x96, b'\x00' ], [ 0x97, b'\x08' ], [ 0x97, b'\x19' ], [ 0x97, b'\x02' ], [ 0x97, b'\x0c' ], [ 0x97, b'\x24' ], [ 0x97, b'\x30' ], [ 0x97, b'\x28' ], [ 0x97, b'\x26' ], [ 0x97, b'\x02' ], [ 0x97, b'\x98' ], [ 0x97, b'\x80' ], [ 0x97, b'\x00' ], [ 0x97, b'\x00' ], [ 0xc3, b'\xed' ], [ 0xa4, b'\x00' ], [ 0xa8, b'\x00' ], [ 0xc5, b'\x11' ], [ 0xc6, b'\x51' ], [ 0xbf, b'\x80' ], [ 0xc7, b'\x10' ], [ 0xb6, b'\x66' ], [ 0xb8, b'\xA5' ], [ 0xb7, b'\x64' ], [ 0xb9, b'\x7C' ], [ 0xb3, b'\xaf' ], [ 0xb4, b'\x97' ], [ 0xb5, b'\xFF' ], [ 0xb0, b'\xC5' ], [ 0xb1, b'\x94' ], [ 0xb2, b'\x0f' ], [ 0xc4, b'\x5c' ], [ 0xc0, b'\x64' ], [ 0xc1, b'\x4B' ], [ 0x8c, b'\x00' ], [ 0x86, b'\x3D' ], [ 0x50, b'\x00' ], [ 0x51, b'\xC8' ], [ 0x52, b'\x96' ], [ 0x53, b'\x00' ], [ 0x54, b'\x00' ], [ 0x55, b'\x00' ], [ 0x5a, b'\xC8' ], [ 0x5b, b'\x96' ], [ 0x5c, b'\x00' ], [ 0xd3, b'\x00' ], [ 0xc3, b'\xed' ], [ 0x7f, b'\x00' ], [ 0xda, b'\x00' ], [ 0xe5, b'\x1f' ], [ 0xe1, b'\x67' ], [ 0xe0, b'\x00' ], [ 0xdd, b'\x7f' ], [ 0x05, b'\x00' ], [ 0x12, b'\x40' ], [ 0xd3, b'\x04' ], [ 0xc0, b'\x16' ], [ 0xC1, b'\x12' ], [ 0x8c, b'\x00' ], [ 0x86, b'\x3d' ], [ 0x50, b'\x00' ], [ 0x51, b'\x2C' ], [ 0x52, b'\x24' ], [ 0x53, b'\x00' ], [ 0x54, b'\x00' ], [ 0x55, b'\x00' ], [ 0x5A, b'\x2c' ], [ 0x5b, b'\x24' ], [ 0x5c, b'\x00' ], [ 0xff, b'\xff' ] ] OV2640_QVGA = [ [ 0xFF, b'\x00' ], [ 0x2c, b'\xff' ], [ 0x2e, b'\xdf' ], [ 0xFF, b'\x01' ], [ 0x3c, b'\x32' ], [ 0x11, b'\x00' ], [ 0x09, b'\x02' ], [ 0x04, b'\xa8' ], [ 0x13, b'\xe5' ], [ 0x14, b'\x48' ], [ 0x2c, b'\x0c' ], [ 0x33, b'\x78' ], [ 0x3a, b'\x33' ], [ 0x3b, b'\xfb' ], [ 0x3e, b'\x00' ], [ 0x43, b'\x11' ], [ 0x16, b'\x10' ], [ 0x39, b'\x02' ], [ 0x35, b'\x88' ], [ 0x22, b'\x0a' ], [ 0x37, b'\x40' ], [ 0x23, b'\x00' ], [ 0x34, b'\xa0' ], [ 0x06, b'\x02' ], [ 0x06, b'\x88' ], [ 0x07, b'\xc0' ], [ 0x0d, b'\xb7' ], [ 0x0e, b'\x01' ], [ 0x4c, b'\x00' ], [ 0x4a, b'\x81' ], [ 0x21, b'\x99' ], [ 0x24, b'\x40' ], [ 0x25, b'\x38' ], [ 0x26, b'\x82' ], [ 0x5c, b'\x00' ], [ 0x63, b'\x00' ], [ 0x46, b'\x22' ], [ 0x0c, b'\x3a' ], [ 0x5d, b'\x55' ], [ 0x5e, b'\x7d' ], [ 0x5f, b'\x7d' ], [ 0x60, b'\x55' ], [ 0x61, b'\x70' ], [ 0x62, b'\x80' ], [ 0x7c, b'\x05' ], [ 0x20, b'\x80' ], [ 0x28, b'\x30' ], [ 0x6c, b'\x00' ], [ 0x6d, b'\x80' ], [ 0x6e, b'\x00' ], [ 0x70, b'\x02' ], [ 0x71, b'\x94' ], [ 0x73, b'\xc1' ], [ 0x3d, b'\x34' ], [ 0x12, b'\x04' ], [ 0x5a, b'\x57' ], [ 0x4f, b'\xbb' ], [ 0x50, b'\x9c' ], [ 0xFF, b'\x00' ], [ 0xe5, b'\x7f' ], [ 0xf9, b'\xc0' ], [ 0x41, b'\x24' ], [ 0xe0, b'\x14' ], [ 0x76, b'\xff' ], [ 0x33, b'\xa0' ], [ 0x42, b'\x20' ], [ 0x43, b'\x18' ], [ 0x4c, b'\x00' ], [ 0x87, b'\xd0' ], [ 0x88, b'\x3f' ], [ 0xd7, b'\x03' ], [ 0xd9, b'\x10' ], [ 0xd3, b'\x82' ], [ 0xc8, b'\x08' ], [ 0xc9, b'\x80' ], [ 0x7c, b'\x00' ], [ 0x7d, b'\x00' ], [ 0x7c, b'\x03' ], [ 0x7d, b'\x48' ], [ 0x7d, b'\x48' ], [ 0x7c, b'\x08' ], [ 0x7d, b'\x20' ], [ 0x7d, b'\x10' ], [ 0x7d, b'\x0e' ], [ 0x90, b'\x00' ], [ 0x91, b'\x0e' ], [ 0x91, b'\x1a' ], [ 0x91, b'\x31' ], [ 0x91, b'\x5a' ], [ 0x91, b'\x69' ], [ 0x91, b'\x75' ], [ 0x91, b'\x7e' ], [ 0x91, b'\x88' ], [ 0x91, b'\x8f' ], [ 0x91, b'\x96' ], [ 0x91, b'\xa3' ], [ 0x91, b'\xaf' ], [ 0x91, b'\xc4' ], [ 0x91, b'\xd7' ], [ 0x91, b'\xe8' ], [ 0x91, b'\x20' ], [ 0x92, b'\x00' ], [ 0x93, b'\x60' ], [ 0x93, b'\xe3' ], [ 0x93, b'\x03' ], [ 0x93, b'\x03' ], [ 0x93, b'\x00' ], [ 0x93, b'\x02' ], [ 0x93, b'\x00' ], [ 0x93, b'\x00' ], [ 0x93, b'\x00' ], [ 0x93, b'\x00' ], [ 0x93, b'\x00' ], [ 0x93, b'\x00' ], [ 0x93, b'\x00' ], [ 0x96, b'\x00' ], [ 0x97, b'\x08' ], [ 0x97, b'\x19' ], [ 0x97, b'\x02' ], [ 0x97, b'\x0c' ], [ 0x97, b'\x24' ], [ 0x97, b'\x30' ], [ 0x97, b'\x28' ], [ 0x97, b'\x26' ], [ 0x97, b'\x02' ], [ 0x97, b'\x98' ], [ 0x97, b'\x80' ], [ 0x97, b'\x00' ], [ 0x97, b'\x00' ], [ 0xa4, b'\x00' ], [ 0xa8, b'\x00' ], [ 0xc5, b'\x11' ], [ 0xc6, b'\x51' ], [ 0xbf, b'\x80' ], [ 0xc7, b'\x10' ], [ 0xb6, b'\x66' ], [ 0xb8, b'\xa5' ], [ 0xb7, b'\x64' ], [ 0xb9, b'\x7c' ], [ 0xb3, b'\xaf' ], [ 0xb4, b'\x97' ], [ 0xb5, b'\xff' ], [ 0xb0, b'\xc5' ], [ 0xb1, b'\x94' ], [ 0xb2, b'\x0f' ], [ 0xc4, b'\x5c' ], [ 0xa6, b'\x00' ], [ 0xa7, b'\x20' ], [ 0xa7, b'\xd8' ], [ 0xa7, b'\x1b' ], [ 0xa7, b'\x31' ], [ 0xa7, b'\x00' ], [ 0xa7, b'\x18' ], [ 0xa7, b'\x20' ], [ 0xa7, b'\xd8' ], [ 0xa7, b'\x19' ], [ 0xa7, b'\x31' ], [ 0xa7, b'\x00' ], [ 0xa7, b'\x18' ], [ 0xa7, b'\x20' ], [ 0xa7, b'\xd8' ], [ 0xa7, b'\x19' ], [ 0xa7, b'\x31' ], [ 0xa7, b'\x00' ], [ 0xa7, b'\x18' ], [ 0x7f, b'\x00' ], [ 0xe5, b'\x1f' ], [ 0xe1, b'\x77' ], [ 0xdd, b'\x7f' ], [ 0xc2, b'\x0e' ], [ 0xFF, b'\x00' ], [ 0xe0, b'\x04' ], [ 0xc0, b'\xc8' ], [ 0xc1, b'\x96' ], [ 0x86, b'\x3d' ], [ 0x51, b'\x90' ], [ 0x52, b'\x2c' ], [ 0x53, b'\x00' ], [ 0x54, b'\x00' ], [ 0x55, b'\x88' ], [ 0x57, b'\x00' ], [ 0x50, b'\x92' ], [ 0x5a, b'\x50' ], [ 0x5b, b'\x3c' ], [ 0x5c, b'\x00' ], [ 0xd3, b'\x04' ], [ 0xe0, b'\x00' ], [ 0xFF, b'\x00' ], [ 0x05, b'\x00' ], [ 0xda, b'\x08' ], [ 0xd7, b'\x03' ], [ 0xe0, b'\x00' ], [ 0x05, b'\x00' ] ] OV2640_YUV422 = [ [ 0xFF, b'\x00' ], [ 0x05, b'\x00' ], [ 0xDA, b'\x10' ], [ 0xD7, b'\x03' ], [ 0xDF, b'\x00' ], [ 0x33, b'\x80' ], [ 0x3C, b'\x40' ], [ 0xe1, b'\x77' ], [ 0x00, b'\x00' ], [ 0xff, b'\xff' ] ] OV2640_RGB565 = [ [ 0xFF, b'\x00' ], [ 0x05, b'\x00' ], [ 0xDA, b'\x08' ], [ 0x98, b'\x00' ], [ 0x99, b'\x00' ], [ 0x00, b'\x00' ] ] OV2640_JPEG = [ [ 0xe0, b'\x14' ], [ 0xe1, b'\x77' ], [ 0xe5, b'\x1f' ], [ 0xd7, b'\x03' ], [ 0xda, b'\x10' ], [ 0xe0, b'\x00' ], [ 0xFF, b'\x01' ], [ 0x04, b'\x08' ], [ 0xff, b'\xff' ] ] SENSORADDR = 0x30 PICBUFSIZE = 128
20.435597
21
0.3854
1,242
8,726
2.702899
0.190016
0.120346
0.038129
0.042895
0.747989
0.687221
0.676497
0.666369
0.635091
0.620792
0
0.27605
0.285125
8,726
427
22
20.435597
0.262103
0
0
0.72209
0
0
0.187486
0
0
0
0.187944
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
1
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
b4d0a31fdc960b8f05af896c5e0a1d4e0fd28ae2
124
py
Python
converter.py
5hyn3/JPNStoRegex
9d54cf6444c61f03db773b9ad45d76d21323cadc
[ "MIT" ]
1
2017-12-16T12:11:11.000Z
2017-12-16T12:11:11.000Z
converter.py
5hyn3/JPNStoRegex
9d54cf6444c61f03db773b9ad45d76d21323cadc
[ "MIT" ]
null
null
null
converter.py
5hyn3/JPNStoRegex
9d54cf6444c61f03db773b9ad45d76d21323cadc
[ "MIT" ]
null
null
null
import sys import jpns_to_regex args = sys.argv jregex = jpns_to_regex.JPNStoRegex(sys.argv[1]) print(jregex.get_regex())
15.5
47
0.782258
21
124
4.380952
0.571429
0.130435
0.23913
0
0
0
0
0
0
0
0
0.009009
0.104839
124
7
48
17.714286
0.81982
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.2
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
b4fb5017d5044337c286cb70fe07fc20401ff375
152
py
Python
training_utils/__init__.py
ibrahimgh25/EL-GAN-Implementation
bff0766e682a6441bb27b3a3aa5cf136202564b5
[ "MIT" ]
4
2021-09-07T10:03:48.000Z
2022-03-11T19:11:00.000Z
training_utils/__init__.py
ibrahimgh25/EL-GAN-Implementation
bff0766e682a6441bb27b3a3aa5cf136202564b5
[ "MIT" ]
null
null
null
training_utils/__init__.py
ibrahimgh25/EL-GAN-Implementation
bff0766e682a6441bb27b3a3aa5cf136202564b5
[ "MIT" ]
null
null
null
from .utils import ( gen_criterion, embedding_loss, process_gen_output ) from .trainer_class import Trainer from .dataset import LaneDataSet
21.714286
34
0.776316
19
152
5.947368
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.177632
152
7
35
21.714286
0.904
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.428571
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
37184d8fd03d566c55093fec2d5873cf1a30bd6f
33
py
Python
sale.py
Go-Go-Zeppeli/Gomework
ac79b7b2ecb7fa891f32f75899375ed8a8d0f059
[ "MIT" ]
null
null
null
sale.py
Go-Go-Zeppeli/Gomework
ac79b7b2ecb7fa891f32f75899375ed8a8d0f059
[ "MIT" ]
null
null
null
sale.py
Go-Go-Zeppeli/Gomework
ac79b7b2ecb7fa891f32f75899375ed8a8d0f059
[ "MIT" ]
null
null
null
create sale.py in branch feature
16.5
32
0.818182
6
33
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.151515
33
1
33
33
0.964286
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
2c0623ac0ace379d08cd489e1aafddd5d6080a04
167
py
Python
test.py
lengqie/SimilarCNColor
8d5bdfcf1085268eb15fb637d77331a30a37e869
[ "MIT" ]
6
2022-01-08T13:36:35.000Z
2022-02-25T14:53:57.000Z
test.py
lengqie/SimilarCNColor
8d5bdfcf1085268eb15fb637d77331a30a37e869
[ "MIT" ]
null
null
null
test.py
lengqie/SimilarCNColor
8d5bdfcf1085268eb15fb637d77331a30a37e869
[ "MIT" ]
1
2022-01-10T05:51:45.000Z
2022-01-10T05:51:45.000Z
# import json # # with open("color.json", "r", encoding='utf-8') as file: # color = json.load(file) # # print(type(file)) import sys print(sys.argv)
16.7
58
0.580838
24
167
4.041667
0.666667
0.185567
0
0
0
0
0
0
0
0
0
0.007813
0.233533
167
10
59
16.7
0.75
0.700599
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
4
2c1ef94fea31e281b3ecc57cf520c40a444da282
154
py
Python
phylopandas/treeio/__init__.py
harmsm/phylopandas
eb1e5efbbfe68f96b497816c923bc333489c4838
[ "BSD-3-Clause" ]
57
2017-10-31T20:20:11.000Z
2022-03-09T14:27:12.000Z
phylopandas/treeio/__init__.py
harmsm/phylopandas
eb1e5efbbfe68f96b497816c923bc333489c4838
[ "BSD-3-Clause" ]
19
2017-10-29T18:15:43.000Z
2021-09-24T12:59:00.000Z
phylopandas/treeio/__init__.py
harmsm/phylopandas
eb1e5efbbfe68f96b497816c923bc333489c4838
[ "BSD-3-Clause" ]
22
2017-10-27T22:35:39.000Z
2022-02-18T07:50:24.000Z
from .read import (read_nexml, read_nexus_tree, read_newick, read_dendropy) from . import write
22
35
0.506494
15
154
4.866667
0.6
0
0
0
0
0
0
0
0
0
0
0
0.448052
154
6
36
25.666667
0.858824
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
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
257fbcf824de8701e26cadff4cbe224bc51f3cd8
160
py
Python
examples/binary/client.py
datawire/quark
df0058a148b077c0aff535eb6ee382605c556273
[ "Apache-2.0" ]
112
2015-10-02T19:51:51.000Z
2022-03-07T06:29:44.000Z
examples/binary/client.py
datawire/quark
df0058a148b077c0aff535eb6ee382605c556273
[ "Apache-2.0" ]
181
2015-10-01T20:23:38.000Z
2016-12-07T17:21:26.000Z
examples/binary/client.py
datawire/quark
df0058a148b077c0aff535eb6ee382605c556273
[ "Apache-2.0" ]
31
2015-10-13T22:10:00.000Z
2020-08-03T02:50:12.000Z
from binary import BinaryClient from quark.concurrent import Context runtime = Context.runtime() client = BinaryClient(runtime, "ws://127.0.0.1:8910/binary")
22.857143
60
0.775
22
160
5.636364
0.636364
0.225806
0
0
0
0
0
0
0
0
0
0.06993
0.10625
160
6
61
26.666667
0.797203
0
0
0
0
0
0.1625
0.1625
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
2594f081b720ddd124787b7f275a33f13245b28b
153
py
Python
api/interestr/strings/strings.py
bounswe/bounswe2017group5
64454748f4485b7016282b98e85f48ec44e6e283
[ "MIT" ]
8
2017-02-10T21:15:46.000Z
2018-03-02T14:05:12.000Z
api/interestr/strings/strings.py
bounswe/bounswe2017group5
64454748f4485b7016282b98e85f48ec44e6e283
[ "MIT" ]
183
2017-02-12T21:36:16.000Z
2022-03-11T23:15:35.000Z
api/interestr/strings/strings.py
bounswe/bounswe2017group5
64454748f4485b7016282b98e85f48ec44e6e283
[ "MIT" ]
5
2017-05-31T10:56:08.000Z
2018-06-26T15:15:14.000Z
LANG_TR = { 'token_auth_error' : "Invalid Login", } # TODO: Dynamically determine this later LOCALE = LANG_TR def get(key): return LOCALE[key]
15.3
41
0.686275
21
153
4.809524
0.809524
0.118812
0
0
0
0
0
0
0
0
0
0
0.202614
153
9
42
17
0.827869
0.248366
0
0
0
0
0.256637
0
0
0
0
0.111111
0
1
0.166667
false
0
0
0.166667
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
1
0
0
0
0
0
0
1
0
0
0
4
259531e0e0d234828eff9c058f25ddfba7a35f89
286
py
Python
evalml/data_checks/utils.py
BlockchainClimateInstitute/price_microservice
11d1cff8965fe1befc997e9da3dc09efceed4579
[ "BSD-3-Clause" ]
1
2021-07-28T14:20:35.000Z
2021-07-28T14:20:35.000Z
evalml/data_checks/utils.py
ObinnaObeleagu/evalml
3b5bf62b08a5a5bc6485ba5387a08c32e1857473
[ "BSD-3-Clause" ]
13
2021-03-04T19:29:09.000Z
2022-03-07T01:00:43.000Z
evalml/data_checks/utils.py
RG4421/evalml
33c62abe6d107d1da2f54e9e44a90f18aaf916a9
[ "BSD-3-Clause" ]
null
null
null
from .data_checks import DataChecks class EmptyDataChecks(DataChecks): def __init__(self, data_checks=None): """ An empty collection of data checks. Arguments: data_checks (list (DataCheck)): Ignored. """ self.data_checks = []
22
52
0.611888
29
286
5.758621
0.655172
0.299401
0.167665
0
0
0
0
0
0
0
0
0
0.293706
286
12
53
23.833333
0.826733
0.321678
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
259bd9f02d11dac208fda53b1992e74cb5a7cf9d
110
py
Python
ipipeline/utils/__init__.py
novaenext/ipipeline
c43e017ee8ab7464b946e871b6ee3b28cae6f2a9
[ "BSD-3-Clause" ]
null
null
null
ipipeline/utils/__init__.py
novaenext/ipipeline
c43e017ee8ab7464b946e871b6ee3b28cae6f2a9
[ "BSD-3-Clause" ]
9
2021-11-08T15:39:28.000Z
2022-02-04T18:45:31.000Z
ipipeline/utils/__init__.py
novaenext/ipipeline
c43e017ee8ab7464b946e871b6ee3b28cae6f2a9
[ "BSD-3-Clause" ]
null
null
null
"""Package initialization procedures. The utils package provides components to use in different modules. """
22
66
0.790909
13
110
6.692308
0.923077
0
0
0
0
0
0
0
0
0
0
0
0.136364
110
4
67
27.5
0.915789
0.927273
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
25cd4f20f53aa6f2e1864d8ca226db1ac36ab42f
812
py
Python
tests/test_generate_solutions.py
baclang/pybac
ab2ed6561ab895d4ed73d0cafcfd16f7f501cb4a
[ "MIT" ]
1
2019-08-23T00:20:48.000Z
2019-08-23T00:20:48.000Z
tests/test_generate_solutions.py
baclang/pybac
ab2ed6561ab895d4ed73d0cafcfd16f7f501cb4a
[ "MIT" ]
2
2019-08-19T06:26:30.000Z
2019-08-19T06:27:30.000Z
tests/test_generate_solutions.py
baconlang/python
ab2ed6561ab895d4ed73d0cafcfd16f7f501cb4a
[ "MIT" ]
null
null
null
from . base import compare_lists from baconlang import generate_solutions def test_basic(): assert compare_lists( generate_solutions('["a"]'), [ [], ["a"], ], ) def test_medium(): assert compare_lists( generate_solutions('["a", "b"]'), [ [], ["a"], ["b"], ], ) assert compare_lists( generate_solutions('[["a", "b"]]'), [ [], ["a", "b"], ], ) def test_advanced(): assert compare_lists( generate_solutions( '["a", [["b", ["c", [["d", "e"]], "d"] ]] ]' ), [ [], ["a"], ["b", "c"], ["b", "d", "e"], ["b", "e"], ], )
16.916667
56
0.343596
63
812
4.222222
0.301587
0.045113
0.270677
0.390977
0.567669
0.567669
0.432331
0.293233
0.293233
0
0
0
0.45197
812
47
57
17.276596
0.597753
0
0
0.384615
1
0
0.10111
0
0
0
0
0
0.102564
1
0.076923
true
0
0.051282
0
0.128205
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
1
0
0
0
0
0
0
4
25cf0ee8962607eb0ea433ba5fee5fa7353aafc6
119
py
Python
slice_test.py
chvcks/RNN-AI-Programmer
1303edbaffd3ae37cc33442ae974e7bd909a6229
[ "Apache-2.0" ]
null
null
null
slice_test.py
chvcks/RNN-AI-Programmer
1303edbaffd3ae37cc33442ae974e7bd909a6229
[ "Apache-2.0" ]
null
null
null
slice_test.py
chvcks/RNN-AI-Programmer
1303edbaffd3ae37cc33442ae974e7bd909a6229
[ "Apache-2.0" ]
null
null
null
from numpy import array a = array([[1,2,3],[3,4,5],[4,5,6]]) print(a) print(a[1:]) print(a[:-1]) b = a[:-1] print(b)
11.9
36
0.537815
28
119
2.285714
0.464286
0.28125
0.21875
0
0
0
0
0
0
0
0
0.116505
0.134454
119
10
37
11.9
0.504854
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.571429
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
0
0
0
0
1
0
4
25dfc7f0240d3f77d598d94a74cabce29261338c
42,232
py
Python
yandex/cloud/compute/v1/disk_service_pb2.py
korsar182/python-sdk
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
[ "MIT" ]
36
2018-12-23T13:51:50.000Z
2022-03-25T07:48:24.000Z
yandex/cloud/compute/v1/disk_service_pb2.py
korsar182/python-sdk
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
[ "MIT" ]
15
2019-02-28T04:55:09.000Z
2022-03-06T23:17:24.000Z
yandex/cloud/compute/v1/disk_service_pb2.py
korsar182/python-sdk
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
[ "MIT" ]
18
2019-02-23T07:10:57.000Z
2022-03-28T14:41:08.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: yandex/cloud/compute/v1/disk_service.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2 from yandex.cloud.compute.v1 import disk_pb2 as yandex_dot_cloud_dot_compute_dot_v1_dot_disk__pb2 from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2 from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='yandex/cloud/compute/v1/disk_service.proto', package='yandex.cloud.compute.v1', syntax='proto3', serialized_options=b'\n\033yandex.cloud.api.compute.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;compute', create_key=_descriptor._internal_create_key, serialized_pb=b'\n*yandex/cloud/compute/v1/disk_service.proto\x12\x17yandex.cloud.compute.v1\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a yandex/cloud/api/operation.proto\x1a\"yandex/cloud/compute/v1/disk.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\"/\n\x0eGetDiskRequest\x12\x1d\n\x07\x64isk_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"\x8d\x01\n\x10ListDisksRequest\x12\x1f\n\tfolder_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x1d\n\tpage_size\x18\x02 \x01(\x03\x42\n\xfa\xc7\x31\x06<=1000\x12\x1d\n\npage_token\x18\x03 \x01(\tB\t\x8a\xc8\x31\x05<=100\x12\x1a\n\x06\x66ilter\x18\x04 \x01(\tB\n\x8a\xc8\x31\x06<=1000\"Z\n\x11ListDisksResponse\x12,\n\x05\x64isks\x18\x01 \x03(\x0b\x32\x1d.yandex.cloud.compute.v1.Disk\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xdb\x04\n\x11\x43reateDiskRequest\x12\x1f\n\tfolder_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x32\n\x04name\x18\x02 \x01(\tB$\xf2\xc7\x31 |[a-z]([-a-z0-9]{0,61}[a-z0-9])?\x12\x1e\n\x0b\x64\x65scription\x18\x03 \x01(\tB\t\x8a\xc8\x31\x05<=256\x12\x8f\x01\n\x06labels\x18\x04 \x03(\x0b\x32\x36.yandex.cloud.compute.v1.CreateDiskRequest.LabelsEntryBG\x82\xc8\x31\x04<=64\x8a\xc8\x31\x04<=63\xf2\xc7\x31\x0f[-_./\\@0-9a-z]*\xb2\xc8\x31\x06\x1a\x04\x31-63\xb2\xc8\x31\x16\x12\x14[a-z][-_./\\@0-9a-z]*\x12\x19\n\x07type_id\x18\x05 \x01(\tB\x08\x8a\xc8\x31\x04<=50\x12\x1d\n\x07zone_id\x18\x06 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12,\n\x04size\x18\x07 \x01(\x03\x42\x1e\xe8\xc7\x31\x01\xfa\xc7\x31\x16\x34\x31\x39\x34\x33\x30\x34-28587302322176\x12\x1c\n\x08image_id\x18\x08 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x1f\n\x0bsnapshot_id\x18\t \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x12\n\nblock_size\x18\n \x01(\x03\x12K\n\x15\x64isk_placement_policy\x18\x0b \x01(\x0b\x32,.yandex.cloud.compute.v1.DiskPlacementPolicy\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06source\"%\n\x12\x43reateDiskMetadata\x12\x0f\n\x07\x64isk_id\x18\x01 \x01(\t\"\xee\x03\n\x11UpdateDiskRequest\x12\x1d\n\x07\x64isk_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x32\n\x04name\x18\x03 \x01(\tB$\xf2\xc7\x31 |[a-z]([-a-z0-9]{0,61}[a-z0-9])?\x12\x1e\n\x0b\x64\x65scription\x18\x04 \x01(\tB\t\x8a\xc8\x31\x05<=256\x12\x8f\x01\n\x06labels\x18\x05 \x03(\x0b\x32\x36.yandex.cloud.compute.v1.UpdateDiskRequest.LabelsEntryBG\x82\xc8\x31\x04<=64\x8a\xc8\x31\x04<=63\xf2\xc7\x31\x0f[-_./\\@0-9a-z]*\xb2\xc8\x31\x06\x1a\x04\x31-63\xb2\xc8\x31\x16\x12\x14[a-z][-_./\\@0-9a-z]*\x12\'\n\x04size\x18\x06 \x01(\x03\x42\x19\xfa\xc7\x31\x15\x34\x31\x39\x34\x33\x30\x34-4398046511104\x12K\n\x15\x64isk_placement_policy\x18\x07 \x01(\x0b\x32,.yandex.cloud.compute.v1.DiskPlacementPolicy\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"%\n\x12UpdateDiskMetadata\x12\x0f\n\x07\x64isk_id\x18\x01 \x01(\t\"2\n\x11\x44\x65leteDiskRequest\x12\x1d\n\x07\x64isk_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\"%\n\x12\x44\x65leteDiskMetadata\x12\x0f\n\x07\x64isk_id\x18\x01 \x01(\t\"x\n\x19ListDiskOperationsRequest\x12\x1d\n\x07\x64isk_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12\x1d\n\tpage_size\x18\x02 \x01(\x03\x42\n\xfa\xc7\x31\x06<=1000\x12\x1d\n\npage_token\x18\x03 \x01(\tB\t\x8a\xc8\x31\x05<=100\"l\n\x1aListDiskOperationsResponse\x12\x35\n\noperations\x18\x01 \x03(\x0b\x32!.yandex.cloud.operation.Operation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x8b\x07\n\x0b\x44iskService\x12r\n\x03Get\x12\'.yandex.cloud.compute.v1.GetDiskRequest\x1a\x1d.yandex.cloud.compute.v1.Disk\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/compute/v1/disks/{disk_id}\x12x\n\x04List\x12).yandex.cloud.compute.v1.ListDisksRequest\x1a*.yandex.cloud.compute.v1.ListDisksResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/compute/v1/disks\x12\x93\x01\n\x06\x43reate\x12*.yandex.cloud.compute.v1.CreateDiskRequest\x1a!.yandex.cloud.operation.Operation\":\x82\xd3\xe4\x93\x02\x16\"\x11/compute/v1/disks:\x01*\xb2\xd2*\x1a\n\x12\x43reateDiskMetadata\x12\x04\x44isk\x12\x9d\x01\n\x06Update\x12*.yandex.cloud.compute.v1.UpdateDiskRequest\x1a!.yandex.cloud.operation.Operation\"D\x82\xd3\xe4\x93\x02 2\x1b/compute/v1/disks/{disk_id}:\x01*\xb2\xd2*\x1a\n\x12UpdateDiskMetadata\x12\x04\x44isk\x12\xab\x01\n\x06\x44\x65lete\x12*.yandex.cloud.compute.v1.DeleteDiskRequest\x1a!.yandex.cloud.operation.Operation\"R\x82\xd3\xe4\x93\x02\x1d*\x1b/compute/v1/disks/{disk_id}\xb2\xd2*+\n\x12\x44\x65leteDiskMetadata\x12\x15google.protobuf.Empty\x12\xa9\x01\n\x0eListOperations\x12\x32.yandex.cloud.compute.v1.ListDiskOperationsRequest\x1a\x33.yandex.cloud.compute.v1.ListDiskOperationsResponse\".\x82\xd3\xe4\x93\x02(\x12&/compute/v1/disks/{disk_id}/operationsBb\n\x1byandex.cloud.api.compute.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;computeb\x06proto3' , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,yandex_dot_cloud_dot_api_dot_operation__pb2.DESCRIPTOR,yandex_dot_cloud_dot_compute_dot_v1_dot_disk__pb2.DESCRIPTOR,yandex_dot_cloud_dot_operation_dot_operation__pb2.DESCRIPTOR,yandex_dot_cloud_dot_validation__pb2.DESCRIPTOR,]) _GETDISKREQUEST = _descriptor.Descriptor( name='GetDiskRequest', full_name='yandex.cloud.compute.v1.GetDiskRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='disk_id', full_name='yandex.cloud.compute.v1.GetDiskRequest.disk_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\350\3071\001\212\3101\004<=50', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=276, serialized_end=323, ) _LISTDISKSREQUEST = _descriptor.Descriptor( name='ListDisksRequest', full_name='yandex.cloud.compute.v1.ListDisksRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='folder_id', full_name='yandex.cloud.compute.v1.ListDisksRequest.folder_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\350\3071\001\212\3101\004<=50', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='page_size', full_name='yandex.cloud.compute.v1.ListDisksRequest.page_size', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\372\3071\006<=1000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='page_token', full_name='yandex.cloud.compute.v1.ListDisksRequest.page_token', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\212\3101\005<=100', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='filter', full_name='yandex.cloud.compute.v1.ListDisksRequest.filter', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\212\3101\006<=1000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=326, serialized_end=467, ) _LISTDISKSRESPONSE = _descriptor.Descriptor( name='ListDisksResponse', full_name='yandex.cloud.compute.v1.ListDisksResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='disks', full_name='yandex.cloud.compute.v1.ListDisksResponse.disks', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='next_page_token', full_name='yandex.cloud.compute.v1.ListDisksResponse.next_page_token', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=469, serialized_end=559, ) _CREATEDISKREQUEST_LABELSENTRY = _descriptor.Descriptor( name='LabelsEntry', full_name='yandex.cloud.compute.v1.CreateDiskRequest.LabelsEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='yandex.cloud.compute.v1.CreateDiskRequest.LabelsEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='yandex.cloud.compute.v1.CreateDiskRequest.LabelsEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1110, serialized_end=1155, ) _CREATEDISKREQUEST = _descriptor.Descriptor( name='CreateDiskRequest', full_name='yandex.cloud.compute.v1.CreateDiskRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='folder_id', full_name='yandex.cloud.compute.v1.CreateDiskRequest.folder_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\350\3071\001\212\3101\004<=50', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='name', full_name='yandex.cloud.compute.v1.CreateDiskRequest.name', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\362\3071 |[a-z]([-a-z0-9]{0,61}[a-z0-9])?', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='description', full_name='yandex.cloud.compute.v1.CreateDiskRequest.description', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\212\3101\005<=256', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='labels', full_name='yandex.cloud.compute.v1.CreateDiskRequest.labels', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\202\3101\004<=64\212\3101\004<=63\362\3071\017[-_./\\@0-9a-z]*\262\3101\006\032\0041-63\262\3101\026\022\024[a-z][-_./\\@0-9a-z]*', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='type_id', full_name='yandex.cloud.compute.v1.CreateDiskRequest.type_id', index=4, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\212\3101\004<=50', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='zone_id', full_name='yandex.cloud.compute.v1.CreateDiskRequest.zone_id', index=5, number=6, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\350\3071\001\212\3101\004<=50', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='size', full_name='yandex.cloud.compute.v1.CreateDiskRequest.size', index=6, number=7, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\350\3071\001\372\3071\0264194304-28587302322176', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='image_id', full_name='yandex.cloud.compute.v1.CreateDiskRequest.image_id', index=7, number=8, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\212\3101\004<=50', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='snapshot_id', full_name='yandex.cloud.compute.v1.CreateDiskRequest.snapshot_id', index=8, number=9, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\212\3101\004<=50', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='block_size', full_name='yandex.cloud.compute.v1.CreateDiskRequest.block_size', index=9, number=10, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disk_placement_policy', full_name='yandex.cloud.compute.v1.CreateDiskRequest.disk_placement_policy', index=10, number=11, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_CREATEDISKREQUEST_LABELSENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='source', full_name='yandex.cloud.compute.v1.CreateDiskRequest.source', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), ], serialized_start=562, serialized_end=1165, ) _CREATEDISKMETADATA = _descriptor.Descriptor( name='CreateDiskMetadata', full_name='yandex.cloud.compute.v1.CreateDiskMetadata', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='disk_id', full_name='yandex.cloud.compute.v1.CreateDiskMetadata.disk_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1167, serialized_end=1204, ) _UPDATEDISKREQUEST_LABELSENTRY = _descriptor.Descriptor( name='LabelsEntry', full_name='yandex.cloud.compute.v1.UpdateDiskRequest.LabelsEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='key', full_name='yandex.cloud.compute.v1.UpdateDiskRequest.LabelsEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='value', full_name='yandex.cloud.compute.v1.UpdateDiskRequest.LabelsEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1110, serialized_end=1155, ) _UPDATEDISKREQUEST = _descriptor.Descriptor( name='UpdateDiskRequest', full_name='yandex.cloud.compute.v1.UpdateDiskRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='disk_id', full_name='yandex.cloud.compute.v1.UpdateDiskRequest.disk_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\350\3071\001\212\3101\004<=50', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='update_mask', full_name='yandex.cloud.compute.v1.UpdateDiskRequest.update_mask', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='name', full_name='yandex.cloud.compute.v1.UpdateDiskRequest.name', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\362\3071 |[a-z]([-a-z0-9]{0,61}[a-z0-9])?', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='description', full_name='yandex.cloud.compute.v1.UpdateDiskRequest.description', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\212\3101\005<=256', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='labels', full_name='yandex.cloud.compute.v1.UpdateDiskRequest.labels', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\202\3101\004<=64\212\3101\004<=63\362\3071\017[-_./\\@0-9a-z]*\262\3101\006\032\0041-63\262\3101\026\022\024[a-z][-_./\\@0-9a-z]*', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='size', full_name='yandex.cloud.compute.v1.UpdateDiskRequest.size', index=5, number=6, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\372\3071\0254194304-4398046511104', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='disk_placement_policy', full_name='yandex.cloud.compute.v1.UpdateDiskRequest.disk_placement_policy', index=6, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_UPDATEDISKREQUEST_LABELSENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1207, serialized_end=1701, ) _UPDATEDISKMETADATA = _descriptor.Descriptor( name='UpdateDiskMetadata', full_name='yandex.cloud.compute.v1.UpdateDiskMetadata', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='disk_id', full_name='yandex.cloud.compute.v1.UpdateDiskMetadata.disk_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1703, serialized_end=1740, ) _DELETEDISKREQUEST = _descriptor.Descriptor( name='DeleteDiskRequest', full_name='yandex.cloud.compute.v1.DeleteDiskRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='disk_id', full_name='yandex.cloud.compute.v1.DeleteDiskRequest.disk_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\350\3071\001\212\3101\004<=50', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1742, serialized_end=1792, ) _DELETEDISKMETADATA = _descriptor.Descriptor( name='DeleteDiskMetadata', full_name='yandex.cloud.compute.v1.DeleteDiskMetadata', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='disk_id', full_name='yandex.cloud.compute.v1.DeleteDiskMetadata.disk_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1794, serialized_end=1831, ) _LISTDISKOPERATIONSREQUEST = _descriptor.Descriptor( name='ListDiskOperationsRequest', full_name='yandex.cloud.compute.v1.ListDiskOperationsRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='disk_id', full_name='yandex.cloud.compute.v1.ListDiskOperationsRequest.disk_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\350\3071\001\212\3101\004<=50', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='page_size', full_name='yandex.cloud.compute.v1.ListDiskOperationsRequest.page_size', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\372\3071\006<=1000', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='page_token', full_name='yandex.cloud.compute.v1.ListDiskOperationsRequest.page_token', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=b'\212\3101\005<=100', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1833, serialized_end=1953, ) _LISTDISKOPERATIONSRESPONSE = _descriptor.Descriptor( name='ListDiskOperationsResponse', full_name='yandex.cloud.compute.v1.ListDiskOperationsResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='operations', full_name='yandex.cloud.compute.v1.ListDiskOperationsResponse.operations', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='next_page_token', full_name='yandex.cloud.compute.v1.ListDiskOperationsResponse.next_page_token', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1955, serialized_end=2063, ) _LISTDISKSRESPONSE.fields_by_name['disks'].message_type = yandex_dot_cloud_dot_compute_dot_v1_dot_disk__pb2._DISK _CREATEDISKREQUEST_LABELSENTRY.containing_type = _CREATEDISKREQUEST _CREATEDISKREQUEST.fields_by_name['labels'].message_type = _CREATEDISKREQUEST_LABELSENTRY _CREATEDISKREQUEST.fields_by_name['disk_placement_policy'].message_type = yandex_dot_cloud_dot_compute_dot_v1_dot_disk__pb2._DISKPLACEMENTPOLICY _CREATEDISKREQUEST.oneofs_by_name['source'].fields.append( _CREATEDISKREQUEST.fields_by_name['image_id']) _CREATEDISKREQUEST.fields_by_name['image_id'].containing_oneof = _CREATEDISKREQUEST.oneofs_by_name['source'] _CREATEDISKREQUEST.oneofs_by_name['source'].fields.append( _CREATEDISKREQUEST.fields_by_name['snapshot_id']) _CREATEDISKREQUEST.fields_by_name['snapshot_id'].containing_oneof = _CREATEDISKREQUEST.oneofs_by_name['source'] _UPDATEDISKREQUEST_LABELSENTRY.containing_type = _UPDATEDISKREQUEST _UPDATEDISKREQUEST.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK _UPDATEDISKREQUEST.fields_by_name['labels'].message_type = _UPDATEDISKREQUEST_LABELSENTRY _UPDATEDISKREQUEST.fields_by_name['disk_placement_policy'].message_type = yandex_dot_cloud_dot_compute_dot_v1_dot_disk__pb2._DISKPLACEMENTPOLICY _LISTDISKOPERATIONSRESPONSE.fields_by_name['operations'].message_type = yandex_dot_cloud_dot_operation_dot_operation__pb2._OPERATION DESCRIPTOR.message_types_by_name['GetDiskRequest'] = _GETDISKREQUEST DESCRIPTOR.message_types_by_name['ListDisksRequest'] = _LISTDISKSREQUEST DESCRIPTOR.message_types_by_name['ListDisksResponse'] = _LISTDISKSRESPONSE DESCRIPTOR.message_types_by_name['CreateDiskRequest'] = _CREATEDISKREQUEST DESCRIPTOR.message_types_by_name['CreateDiskMetadata'] = _CREATEDISKMETADATA DESCRIPTOR.message_types_by_name['UpdateDiskRequest'] = _UPDATEDISKREQUEST DESCRIPTOR.message_types_by_name['UpdateDiskMetadata'] = _UPDATEDISKMETADATA DESCRIPTOR.message_types_by_name['DeleteDiskRequest'] = _DELETEDISKREQUEST DESCRIPTOR.message_types_by_name['DeleteDiskMetadata'] = _DELETEDISKMETADATA DESCRIPTOR.message_types_by_name['ListDiskOperationsRequest'] = _LISTDISKOPERATIONSREQUEST DESCRIPTOR.message_types_by_name['ListDiskOperationsResponse'] = _LISTDISKOPERATIONSRESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) GetDiskRequest = _reflection.GeneratedProtocolMessageType('GetDiskRequest', (_message.Message,), { 'DESCRIPTOR' : _GETDISKREQUEST, '__module__' : 'yandex.cloud.compute.v1.disk_service_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.GetDiskRequest) }) _sym_db.RegisterMessage(GetDiskRequest) ListDisksRequest = _reflection.GeneratedProtocolMessageType('ListDisksRequest', (_message.Message,), { 'DESCRIPTOR' : _LISTDISKSREQUEST, '__module__' : 'yandex.cloud.compute.v1.disk_service_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListDisksRequest) }) _sym_db.RegisterMessage(ListDisksRequest) ListDisksResponse = _reflection.GeneratedProtocolMessageType('ListDisksResponse', (_message.Message,), { 'DESCRIPTOR' : _LISTDISKSRESPONSE, '__module__' : 'yandex.cloud.compute.v1.disk_service_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListDisksResponse) }) _sym_db.RegisterMessage(ListDisksResponse) CreateDiskRequest = _reflection.GeneratedProtocolMessageType('CreateDiskRequest', (_message.Message,), { 'LabelsEntry' : _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), { 'DESCRIPTOR' : _CREATEDISKREQUEST_LABELSENTRY, '__module__' : 'yandex.cloud.compute.v1.disk_service_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.CreateDiskRequest.LabelsEntry) }) , 'DESCRIPTOR' : _CREATEDISKREQUEST, '__module__' : 'yandex.cloud.compute.v1.disk_service_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.CreateDiskRequest) }) _sym_db.RegisterMessage(CreateDiskRequest) _sym_db.RegisterMessage(CreateDiskRequest.LabelsEntry) CreateDiskMetadata = _reflection.GeneratedProtocolMessageType('CreateDiskMetadata', (_message.Message,), { 'DESCRIPTOR' : _CREATEDISKMETADATA, '__module__' : 'yandex.cloud.compute.v1.disk_service_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.CreateDiskMetadata) }) _sym_db.RegisterMessage(CreateDiskMetadata) UpdateDiskRequest = _reflection.GeneratedProtocolMessageType('UpdateDiskRequest', (_message.Message,), { 'LabelsEntry' : _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), { 'DESCRIPTOR' : _UPDATEDISKREQUEST_LABELSENTRY, '__module__' : 'yandex.cloud.compute.v1.disk_service_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateDiskRequest.LabelsEntry) }) , 'DESCRIPTOR' : _UPDATEDISKREQUEST, '__module__' : 'yandex.cloud.compute.v1.disk_service_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateDiskRequest) }) _sym_db.RegisterMessage(UpdateDiskRequest) _sym_db.RegisterMessage(UpdateDiskRequest.LabelsEntry) UpdateDiskMetadata = _reflection.GeneratedProtocolMessageType('UpdateDiskMetadata', (_message.Message,), { 'DESCRIPTOR' : _UPDATEDISKMETADATA, '__module__' : 'yandex.cloud.compute.v1.disk_service_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateDiskMetadata) }) _sym_db.RegisterMessage(UpdateDiskMetadata) DeleteDiskRequest = _reflection.GeneratedProtocolMessageType('DeleteDiskRequest', (_message.Message,), { 'DESCRIPTOR' : _DELETEDISKREQUEST, '__module__' : 'yandex.cloud.compute.v1.disk_service_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DeleteDiskRequest) }) _sym_db.RegisterMessage(DeleteDiskRequest) DeleteDiskMetadata = _reflection.GeneratedProtocolMessageType('DeleteDiskMetadata', (_message.Message,), { 'DESCRIPTOR' : _DELETEDISKMETADATA, '__module__' : 'yandex.cloud.compute.v1.disk_service_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DeleteDiskMetadata) }) _sym_db.RegisterMessage(DeleteDiskMetadata) ListDiskOperationsRequest = _reflection.GeneratedProtocolMessageType('ListDiskOperationsRequest', (_message.Message,), { 'DESCRIPTOR' : _LISTDISKOPERATIONSREQUEST, '__module__' : 'yandex.cloud.compute.v1.disk_service_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListDiskOperationsRequest) }) _sym_db.RegisterMessage(ListDiskOperationsRequest) ListDiskOperationsResponse = _reflection.GeneratedProtocolMessageType('ListDiskOperationsResponse', (_message.Message,), { 'DESCRIPTOR' : _LISTDISKOPERATIONSRESPONSE, '__module__' : 'yandex.cloud.compute.v1.disk_service_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListDiskOperationsResponse) }) _sym_db.RegisterMessage(ListDiskOperationsResponse) DESCRIPTOR._options = None _GETDISKREQUEST.fields_by_name['disk_id']._options = None _LISTDISKSREQUEST.fields_by_name['folder_id']._options = None _LISTDISKSREQUEST.fields_by_name['page_size']._options = None _LISTDISKSREQUEST.fields_by_name['page_token']._options = None _LISTDISKSREQUEST.fields_by_name['filter']._options = None _CREATEDISKREQUEST_LABELSENTRY._options = None _CREATEDISKREQUEST.fields_by_name['folder_id']._options = None _CREATEDISKREQUEST.fields_by_name['name']._options = None _CREATEDISKREQUEST.fields_by_name['description']._options = None _CREATEDISKREQUEST.fields_by_name['labels']._options = None _CREATEDISKREQUEST.fields_by_name['type_id']._options = None _CREATEDISKREQUEST.fields_by_name['zone_id']._options = None _CREATEDISKREQUEST.fields_by_name['size']._options = None _CREATEDISKREQUEST.fields_by_name['image_id']._options = None _CREATEDISKREQUEST.fields_by_name['snapshot_id']._options = None _UPDATEDISKREQUEST_LABELSENTRY._options = None _UPDATEDISKREQUEST.fields_by_name['disk_id']._options = None _UPDATEDISKREQUEST.fields_by_name['name']._options = None _UPDATEDISKREQUEST.fields_by_name['description']._options = None _UPDATEDISKREQUEST.fields_by_name['labels']._options = None _UPDATEDISKREQUEST.fields_by_name['size']._options = None _DELETEDISKREQUEST.fields_by_name['disk_id']._options = None _LISTDISKOPERATIONSREQUEST.fields_by_name['disk_id']._options = None _LISTDISKOPERATIONSREQUEST.fields_by_name['page_size']._options = None _LISTDISKOPERATIONSREQUEST.fields_by_name['page_token']._options = None _DISKSERVICE = _descriptor.ServiceDescriptor( name='DiskService', full_name='yandex.cloud.compute.v1.DiskService', file=DESCRIPTOR, index=0, serialized_options=None, create_key=_descriptor._internal_create_key, serialized_start=2066, serialized_end=2973, methods=[ _descriptor.MethodDescriptor( name='Get', full_name='yandex.cloud.compute.v1.DiskService.Get', index=0, containing_service=None, input_type=_GETDISKREQUEST, output_type=yandex_dot_cloud_dot_compute_dot_v1_dot_disk__pb2._DISK, serialized_options=b'\202\323\344\223\002\035\022\033/compute/v1/disks/{disk_id}', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='List', full_name='yandex.cloud.compute.v1.DiskService.List', index=1, containing_service=None, input_type=_LISTDISKSREQUEST, output_type=_LISTDISKSRESPONSE, serialized_options=b'\202\323\344\223\002\023\022\021/compute/v1/disks', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='Create', full_name='yandex.cloud.compute.v1.DiskService.Create', index=2, containing_service=None, input_type=_CREATEDISKREQUEST, output_type=yandex_dot_cloud_dot_operation_dot_operation__pb2._OPERATION, serialized_options=b'\202\323\344\223\002\026\"\021/compute/v1/disks:\001*\262\322*\032\n\022CreateDiskMetadata\022\004Disk', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='Update', full_name='yandex.cloud.compute.v1.DiskService.Update', index=3, containing_service=None, input_type=_UPDATEDISKREQUEST, output_type=yandex_dot_cloud_dot_operation_dot_operation__pb2._OPERATION, serialized_options=b'\202\323\344\223\002 2\033/compute/v1/disks/{disk_id}:\001*\262\322*\032\n\022UpdateDiskMetadata\022\004Disk', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='Delete', full_name='yandex.cloud.compute.v1.DiskService.Delete', index=4, containing_service=None, input_type=_DELETEDISKREQUEST, output_type=yandex_dot_cloud_dot_operation_dot_operation__pb2._OPERATION, serialized_options=b'\202\323\344\223\002\035*\033/compute/v1/disks/{disk_id}\262\322*+\n\022DeleteDiskMetadata\022\025google.protobuf.Empty', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='ListOperations', full_name='yandex.cloud.compute.v1.DiskService.ListOperations', index=5, containing_service=None, input_type=_LISTDISKOPERATIONSREQUEST, output_type=_LISTDISKOPERATIONSRESPONSE, serialized_options=b'\202\323\344\223\002(\022&/compute/v1/disks/{disk_id}/operations', create_key=_descriptor._internal_create_key, ), ]) _sym_db.RegisterServiceDescriptor(_DISKSERVICE) DESCRIPTOR.services_by_name['DiskService'] = _DISKSERVICE # @@protoc_insertion_point(module_scope)
49.509965
5,043
0.768754
5,535
42,232
5.560434
0.063053
0.033272
0.049128
0.069532
0.791695
0.734802
0.70127
0.627806
0.596062
0.579816
0
0.062575
0.098267
42,232
852
5,044
49.568075
0.745602
0.031138
0
0.642401
1
0.011494
0.257471
0.21118
0
0
0
0
0
1
0
false
0
0.012771
0
0.012771
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d32d6877e7771f3a3a8bbc08d8f7e7e8a377b6c9
1,116
py
Python
bigfastapi/models/bank_models.py
Smyja/bigfastapi
b05beede7bb8e853ce0494b495379037ccf27e8d
[ "MIT" ]
null
null
null
bigfastapi/models/bank_models.py
Smyja/bigfastapi
b05beede7bb8e853ce0494b495379037ccf27e8d
[ "MIT" ]
null
null
null
bigfastapi/models/bank_models.py
Smyja/bigfastapi
b05beede7bb8e853ce0494b495379037ccf27e8d
[ "MIT" ]
null
null
null
from markupsafe import string from sqlalchemy import func, ForeignKey import bigfastapi.db.database as database from sqlalchemy.schema import Column from sqlalchemy.types import String, Integer, DateTime from uuid import uuid4 from bigfastapi.db import database class BankModels(database.Base): __tablename__ = "bank_models" id = Column(String(255), primary_key=True, index=True, default=uuid4().hex) organisation_id = Column(String, index=True) creator_id = Column(String) account_number= Column(Integer, unique=True, index=True) bank_name = Column(String) account_name = Column(String, index=True, default=None) country = Column(String, index=True) sort_code = Column(String, index=True, default=None) swift_code= Column(String, index=True, default=None) address= Column(String, index=True, default=None) bank_type= Column(String, index=True, default=None) aba_routing_number = Column(String, index=True, default=None) iban= Column(String, index=True, default=None) date_created = Column(DateTime(timezone=True), server_default=func.now())
41.333333
79
0.748208
147
1,116
5.557823
0.360544
0.176255
0.187271
0.231334
0.283966
0.283966
0.088127
0
0
0
0
0.00528
0.151434
1,116
26
80
42.923077
0.857445
0
0
0
0
0
0.009857
0
0
0
0
0
0
1
0
false
0
0.304348
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
d34eb8daa7292e2fd5e1bcae443922619f71dbdd
235
py
Python
dashboard/modules/node/node_consts.py
mkucijan/ray
ea2bea7e309cd60457aa0e027321be5f10fa0fe5
[ "Apache-2.0" ]
1
2021-09-20T15:49:58.000Z
2021-09-20T15:49:58.000Z
dashboard/modules/node/node_consts.py
mkucijan/ray
ea2bea7e309cd60457aa0e027321be5f10fa0fe5
[ "Apache-2.0" ]
99
2021-01-23T08:03:01.000Z
2022-03-26T07:08:24.000Z
dashboard/modules/node/node_consts.py
cc13ny/ray
48ecb1f88a89c3894e2a92d66d89d3965c179ecd
[ "Apache-2.0" ]
1
2022-02-07T03:08:10.000Z
2022-02-07T03:08:10.000Z
NODE_STATS_UPDATE_INTERVAL_SECONDS = 1 ERROR_INFO_UPDATE_INTERVAL_SECONDS = 5 LOG_INFO_UPDATE_INTERVAL_SECONDS = 5 UPDATE_NODES_INTERVAL_SECONDS = 5 MAX_COUNT_OF_GCS_RPC_ERROR = 10 MAX_LOGS_TO_CACHE = 10000 LOG_PRUNE_THREASHOLD = 1.25
29.375
38
0.876596
40
235
4.525
0.6
0.331492
0.348066
0.276243
0.287293
0
0
0
0
0
0
0.065421
0.089362
235
7
39
33.571429
0.780374
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d35f27c1fac0644f16998d19e4256bf5a2b2df70
356
py
Python
Providers/nxOMSAutomationWorker/automationworker/3.x/scripts/__init__.py
chsamala2/PowerShell-DSC-for-Linux
5cac971f1877dd545c71be50b0ffd29199ac1acc
[ "MIT" ]
154
2015-11-25T13:30:23.000Z
2019-04-30T17:12:24.000Z
Providers/nxOMSAutomationWorker/automationworker/3.x/scripts/__init__.py
chsamala2/PowerShell-DSC-for-Linux
5cac971f1877dd545c71be50b0ffd29199ac1acc
[ "MIT" ]
317
2015-12-04T17:19:49.000Z
2019-04-19T15:26:34.000Z
Providers/nxOMSAutomationWorker/automationworker/3.x/scripts/__init__.py
chsamala2/PowerShell-DSC-for-Linux
5cac971f1877dd545c71be50b0ffd29199ac1acc
[ "MIT" ]
72
2015-11-23T03:02:15.000Z
2019-04-17T14:45:39.000Z
#!/usr/bin/env python3 # ==================================== # Copyright (c) Microsoft Corporation. All rights reserved. # ==================================== # this init file exists for unit tests for the unlock_node method from scripts import require_runbook_signature from scripts.require_runbook_signature import set_signature_enforcement_policy
32.363636
78
0.651685
39
356
5.74359
0.794872
0.098214
0.205357
0
0
0
0
0
0
0
0
0.003145
0.106742
356
10
79
35.6
0.701258
0.61236
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
d392f6af7c14ce021c5d8e21b68f4d827b5e5cb1
7,815
py
Python
vkbottle/bot/events/events.py
lujo777/vkbottle
3fd2ffa0b0db644b9e8faa9fee3a3f886ab61a7b
[ "MIT" ]
null
null
null
vkbottle/bot/events/events.py
lujo777/vkbottle
3fd2ffa0b0db644b9e8faa9fee3a3f886ab61a7b
[ "MIT" ]
null
null
null
vkbottle/bot/events/events.py
lujo777/vkbottle
3fd2ffa0b0db644b9e8faa9fee3a3f886ab61a7b
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2019 Arseniy Timonik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ from ...utils import make_priority_path import re def regex_message(text, formatted_pattern='{}'): escape = {ord(x): '\\' + x for x in r'\.*+?()[]|^$'} pattern = re.sub(r'(<.*?>)', r'(?P\1.*)', text.translate(escape)) return re.compile(formatted_pattern.format(pattern)) class OnMessage(object): """ OnMessage decorator wrapper. Needed for regex processing and advanced features support todo RU - покрасить забор """ def __init__(self, events): self.processor = events.processor_message_regex def __call__(self, text: str, priority: int = 0): """ Simple on.message(text) decorator. Support regex keys in text :param text: text (match case) :param priority: priority of checkup processor """ def decorator(func): self.processor = make_priority_path(self.processor, *[priority, regex_message(text)], func) return func return decorator def startswith(self, text: str, priority: int = 0): """ Startswith regex message processor For example: @bot.on.message.startswith(text) :param text: text which message should start :param priority: priority of checkup processor """ def decorator(func): pattern = regex_message(text, formatted_pattern='{}.*?') self.processor = make_priority_path( self.processor, *[priority, pattern], func ) return func return decorator def regex(self, pattern: str, priority: int = 0): """ Regex message compiler :param pattern: Regex string :param priority: priority of checkup processor """ def decorator(func): self.processor = make_priority_path(self.processor, *[priority, re.compile(pattern)], func) return func return decorator class OnMessageChat(object): """ OnMessage in chat decorator wrapper. Needed for regex processing and advanced features support """ def __init__(self, events): self.processor = events.processor_message_chat_regex def __call__(self, text: str, priority: int = 0): """ Simple on.message_chat(text) decorator. Support regex keys in text :param text: text (match case) :param priority: priority of checkup processor """ def decorator(func): self.processor = make_priority_path(self.processor, *[priority, regex_message(text)], func) return func return decorator def startswith(self, text: str, priority: int = 0): """ Startswith regex message processor For example: @bot.on.message_chat.startswith(text) :param text: text which message should start :param priority: priority of checkup processor """ def decorator(func): pattern = regex_message(text, formatted_pattern='{}.*?') self.processor = make_priority_path(self.processor, *[priority, pattern], func) return func return decorator def regex(self, pattern: str, priority: int = 0): """ Regex message compiler :param pattern: Regex string :param priority: priority of checkup processor """ def decorator(func): self.processor = make_priority_path(self.processor, *[priority, re.compile(pattern)], func) return func return decorator class OnMessageBoth(object): """ On private and in chat message decorator wrapper. Needed for regex processing and advanced features support """ def __init__(self, events): self.processor_message = events.processor_message_regex self.processor_chat = events.processor_message_regex def __call__(self, text, priority: int = 0): """ Simple on.message_both(text) decorator. Support regex keys in text :param text: text (match case) :param priority: priority of checkup processor """ def decorator(func): self.processor_message = make_priority_path(self.processor_message, *[priority, regex_message(text)], func) self.processor_chat = make_priority_path(self.processor_chat, *[priority, regex_message(text)], func) return func return decorator def startswith(self, text, priority: int = 0): """ Startswith regex message processor For example: @bot.on.message_both.startswith(text) :param text: text which message should start :param priority: priority of checkup processor """ def decorator(func): pattern = regex_message(text, formatted_pattern='{}.*?') self.processor_message = make_priority_path(self.processor_message, *[priority, pattern], func) self.processor_chat = make_priority_path(self.processor_chat, *[priority, pattern], func) return func return decorator def regex(self, pattern, priority: int = 0): """ Regex message compiler :param pattern: Regex string :param priority: priority of checkup processor """ def decorator(func): self.processor_message = make_priority_path(self.processor_message, *[priority, re.compile(pattern)], func) self.processor_chat = make_priority_path(self.processor_chat, *[priority, re.compile(pattern)], func) return func return decorator
37.392344
111
0.557134
777
7,815
5.487773
0.209781
0.085366
0.04878
0.056285
0.71834
0.704972
0.69864
0.69864
0.68879
0.660882
0
0.002839
0.368906
7,815
208
112
37.572115
0.861719
0.338964
0
0.784946
0
0
0.009802
0
0
0
0
0.004808
0
1
0.236559
false
0
0.021505
0
0.494624
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
d399fe5abc421216a7bb14c25c426f0e9596ac34
16,908
py
Python
pysnmp-with-texts/CISCO-ST-TC.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-ST-TC.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-ST-TC.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-ST-TC (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-ST-TC # Produced by pysmi-0.3.4 at Wed May 1 11:53:43 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint") ciscoModules, = mibBuilder.importSymbols("CISCO-SMI", "ciscoModules") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Gauge32, MibIdentifier, Integer32, Bits, ObjectIdentity, IpAddress, Counter64, NotificationType, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, Counter32, iso, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "MibIdentifier", "Integer32", "Bits", "ObjectIdentity", "IpAddress", "Counter64", "NotificationType", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "Counter32", "iso", "TimeTicks") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") storageTextualConventions = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 12, 4)) storageTextualConventions.setRevisions(('2012-08-08 00:00', '2011-07-26 00:00', '2010-12-24 00:00', '2008-05-16 00:00', '2005-12-17 00:00', '2004-05-18 00:00', '2003-09-26 00:00', '2003-08-07 00:00', '2002-10-04 00:00', '2002-09-24 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: storageTextualConventions.setRevisionsDescriptions(('Added sixteenG and automaxSixteenG in fcIfSpeed', '-Added following enum to FcIfSpeed: autoMaxEightG.', '-Added following enums to FcIfSpeed: autoMax4G, eightG and tenG.', '-Added following enums to FcPortTypes TEXTUAL CONVENTION npPort, tfPort, tnpPort -Added following enums to InterfaceOperMode TEXTUAL CONVENTION. npPort, tfPort, tnpPort -Added following enums to FcPortModuleTypes TEXTUAL CONVENTION sfpDwdm, qsfp, x2Dwdm - Updated the description of the following objects: FcPortTxTypes, FcNameId.', '- Added following TCs FcIfSfpDiagLevelType FcIfServiceStateType - Added following enums in FcPortModuleTypes xfp, x2Short, x2Medium, x2Tall, xpakShort, xpakMedium, xpakTall and xenpak. - Added following enums in FcPortTxTypes. tenGigBaseSr, tenGigBaseLr, tenGigBaseEr, tenGigBaseLx4, tenGigBaseSw, tenGigBaseLw, tenGigBaseEw. - Added following enums in FcIfSpeed fourG and autoMaxTwoG.', "Added new textual convention 'InterfaceOperMode'.", 'Obtained the OID for this MIB.', 'Added stPort(15) to FcPortTypes.', 'Added fvPort and portOperDown to FcPortTypes. Added FcAddress and FcAddressType.', 'Initial version of this MIB module.',)) if mibBuilder.loadTexts: storageTextualConventions.setLastUpdated('201208080000Z') if mibBuilder.loadTexts: storageTextualConventions.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: storageTextualConventions.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553 -NETS E-mail: cs-san@cisco.com') if mibBuilder.loadTexts: storageTextualConventions.setDescription('This module defines textual conventions used in Storage Area Network technology specific mibs.') class VsanIndex(TextualConvention, Integer32): description = 'The VSAN id of a VSAN which uniquely identifies a VSAN within a fabric. VSAN id is 12-bit wide; so theoretically, 4096 VSANs can be defined in a fabric and this device can be part of. However, VSAN numbers 0 , 4094 and 4095 are reserved.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 4094) class DomainId(TextualConvention, Integer32): description = 'The Domain Id of the switch. This is assigned dynamically if the Domain Manager is enabled on the switch or could be configured statically by the user.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 239) class DomainIdOrZero(TextualConvention, Integer32): description = "The Textual convention is an extension to textual convetion 'DomainId'. It includes the value '0'in addition the range 1-239. Value '0' indicates that Domain Id has been neither configured nor assigned." status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 239) class FcAddressId(TextualConvention, OctetString): description = 'Represents Fibre Channel Address ID, a 24-bit value unique within the address space of a Fabric.' status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(3, 3) fixedLength = 3 class FcNameId(TextualConvention, OctetString): reference = 'Fibre Channel Framing and Signaling (FC-FS) Rev 1.70 - Section 14 Name_Indentifier Formats.' description = 'Represents the World Wide Name (WWN) associated with a Fibre Channel (FC) entity. A WWN is a 64 bit address to uniquely identify each entity within a Fibre Channel fabric.' status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 8) fixedLength = 8 class FcNameIdOrZero(TextualConvention, OctetString): description = 'The World Wide Name (WWN) associated with a Fibre Channel (FC) entity. WWNs were initially defined as 64-bits in length. The latest definition (for future use) is 128-bits long. The zero-length string value is used in circumstances where the WWN is unassigned/unknown.' status = 'current' subtypeSpec = OctetString.subtypeSpec + ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(8, 8), ValueSizeConstraint(16, 16), ) class FcClassOfServices(TextualConvention, Bits): description = 'Represents the class of service capability of an NxPort or FxPort.' status = 'current' namedValues = NamedValues(("classF", 0), ("class1", 1), ("class2", 2), ("class3", 3), ("class4", 4), ("class5", 5), ("class6", 6)) class FcPortTypes(TextualConvention, Integer32): description = "Represents fibre channel port types: auto (1) - Mode is determined by port initialization scheme. fPort (2) - Fibre channel fabric port. flPort (3) - Fibre channel arbitrated loop port. ePort (4) - Fabric Expansion port. bPort (5) - Bridging port. fxPort (6) - This port can only be f_port or fl_port. sdPort (7) - SPAN destination port. SD_ports transmit traffic copied from one or more source ports for monitoring purposes. tlPort (8) - Translation loop port. nPort (9) - Fibre channel N port. nlPort (10) - Fibre channel NL port. nxPort (11) - This port can only be n_port or nl_port. -- read only port types. tePort (12) - Trunking e_port. Note: A port which is administratively set to 'ePort', will operationally have type 'tePort' if fcIfOperTrunkMode has the value 'trunk'. fvPort (13) - Virtual Port. portOperDown (14) - port operationally down If a port is operationally down, the port mode is unknown. In such cases the operational port mode is shown as 'portOperDown'. stPort (15) - SPAN Tunnel destination port. npPort (16) - N Proxy port mode applicable only to N-port Virtualizer (NPV) tfPort (17) - Trunking fibre channel fabric port. tnpPort (18) - Trunking N Proxy port mode applicable only to N-port Virtualizer (NPV)." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)) namedValues = NamedValues(("auto", 1), ("fPort", 2), ("flPort", 3), ("ePort", 4), ("bPort", 5), ("fxPort", 6), ("sdPort", 7), ("tlPort", 8), ("nPort", 9), ("nlPort", 10), ("nxPort", 11), ("tePort", 12), ("fvPort", 13), ("portOperDown", 14), ("stPort", 15), ("npPort", 16), ("tfPort", 17), ("tnpPort", 18)) class FcPortTxTypes(TextualConvention, Integer32): reference = 'IEEE Std 802.3-2005 carrier sense multiple access with collision detection (CSMA/CD) access method and physical layer specification.' description = 'Represents port transciever technology types. unknown (1) - unknown longWaveLaser (2) - 1550nm laser shortWaveLaser (3) - 850nm laser longWaveLaserCostReduced (4) - 1310nm laser electrical (5) - electrical tenGigBaseSr (6) - 10GBASE-SR 850nm laser tenGigBaseLr (7) - 10GBASE-LR 1310nm laser tenGigBaseEr (8) - 10GBASE-ER 1550nm laser tenGigBaseLx4 (9) - 10GBASE-LX4 WWDM 1300nm laser tenGigBaseSw (10) - 850nm laser tenGigBaseLw (11) - 1310nm laser tenGigBaseEw (12) - 1550nm laser .' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)) namedValues = NamedValues(("unknown", 1), ("longWaveLaser", 2), ("shortWaveLaser", 3), ("longWaveLaserCostReduced", 4), ("electrical", 5), ("tenGigBaseSr", 6), ("tenGigBaseLr", 7), ("tenGigBaseEr", 8), ("tenGigBaseLx4", 9), ("tenGigBaseSw", 10), ("tenGigBaseLw", 11), ("tenGigBaseEw", 12)) class FcPortModuleTypes(TextualConvention, Integer32): description = 'Represents module type of the port connector. This object refers to the hardware implementation of the port. The enums are defined as per FC-GS-4 standard. unknown (1) - unknown other (2) - other gbic (3) - gbic (gigabit interface card) embedded (4) - gbic is part of the line card and is unremovable glm (5) - if its a gigabit link module (GLM). A GLM has a different form factor than GBIC. GLM is not supported by our switch. gbicWithSerialID (6) - If GBIC serial id can be read gbicWithoutSerialID (7) - If GBIC serial id cannot be read sfpWithSerialID (8) - If small form factor (SFP) pluggable GBICs serial id can be read sfpWithoutSerialID (9) - If small form factor (SFP) pluggable GBICs serial id cannot be read The following enums are module types for 10 gigabit small form factor pluggable sfp port connectors. xfp (10) - xfp x2Short (11) - x2 short x2Medium (12) - x2 medium x2Tall (13) - x2 tall xpakShort (14) - xpak short xpakMedium (15) - xpak medium xpakTall (16) - xpak tall xenpak (17) - xenpak sfpDwdm (18) - DWDM SFP type qsfp (19) - Quad small form-factor (QSFP) pluggable type x2Dwdm (20) - x2 DWDM .' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)) namedValues = NamedValues(("unknown", 1), ("other", 2), ("gbic", 3), ("embedded", 4), ("glm", 5), ("gbicWithSerialID", 6), ("gbicWithoutSerialID", 7), ("sfpWithSerialID", 8), ("sfpWithoutSerialID", 9), ("xfp", 10), ("x2Short", 11), ("x2Medium", 12), ("x2Tall", 13), ("xpakShort", 14), ("xpakMedium", 15), ("xpakTall", 16), ("xenpak", 17), ("sfpDwdm", 18), ("qsfp", 19), ("x2Dwdm", 20)) class FcIfSpeed(TextualConvention, Integer32): description = 'Represents the speed of a fibre channel port. Following are the meanings of the enumerated values: auto (1) - Negotiate to determine the speed automatically. oneG (2) - 1Gbit twoG (3) - 2Gbit fourG (4) - 4Gbit autoMaxTwoG (5) - Negotiate to determine the speed automatically upto a maximum of 2Gbit. eightG (6) - 8Gbit autoMaxFourG (7) - Negotiate to determine the speed automatically upto a maximum of 4Gbit. tenG (8) - 10GBit. autoMaxEightG (9) - Negotiate to determine the speed automatically upto a maximum of 8Gbit. sixteenG (10) - 16GBit. autoMaxSixteenG (11) - Negotiate to determine the speed automatically upto a maximum of 16Gbit.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)) namedValues = NamedValues(("auto", 1), ("oneG", 2), ("twoG", 3), ("fourG", 4), ("autoMaxTwoG", 5), ("eightG", 6), ("autoMaxFourG", 7), ("tenG", 8), ("autoMaxEightG", 9), ("sixteenG", 10), ("autoMaxSixteenG", 11)) class PortMemberList(TextualConvention, OctetString): description = "A list of ifIndex's of the ports that are members of this list. The value of this object is a concatenation of zero or more 4-octet strings, where each 4-octet string contains a 32-bit ifIndex value in network byte order. A zero length string value means this list has no members." status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 64) class FcAddress(TextualConvention, OctetString): description = 'Represents either the Fibre Channel Address ID or the World Wide Name associated with a Fibre Channel (FC) Entity.' status = 'current' subtypeSpec = OctetString.subtypeSpec + ConstraintsUnion(ValueSizeConstraint(3, 3), ValueSizeConstraint(8, 8), ) class FcAddressType(TextualConvention, Integer32): description = 'Denotes if a Fibre Channel Address is a World Wide Name (WWN) or a Fibre Channel Address ID (FCID). wwn(1) - address is WWN. fcid(2) - address is FCID.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("wwn", 1), ("fcid", 2)) class InterfaceOperMode(TextualConvention, Integer32): description = "Represents the operational mode of an interface auto (1) - Mode is determined by port initialization scheme. fPort (2) - Fibre channel fabric port. flPort (3) - Fibre channel arbitrated loop port. ePort (4) - Fabric Expansion port. bPort (5) - Bridging port. fxPort (6) - This port can only be f_port or fl_port. sdPort (7) - SPAN destination port. SD_ports transmit traffic copied from one or more source ports for monitoring purposes. tlPort (8) - Translation loop port. nPort (9) - Fibre channel N port. nlPort (10) - Fibre channel NL port. nxPort (11) - This port can only be n_port or nl_port. -- read only port types. tePort (12) - Trunking e_port. Note: A port which is administratively set to 'ePort', will operationally have type 'tePort' if fcIfOperTrunkMode has the value 'trunk'. fvPort (13) - Virtual Port. portOperDown (14) - port operationally down If a port is operationally down, the port mode is unknown. In such cases the operational port mode is shown as 'portOperDown'. stPort (15) - SPAN Tunnel destination port. mgmtPort(16) - Mgmt Port. ipsPort(17) - Ethernet Port. evPort(18) - FCIP tunnels on Ethernet ports. npPort (19) - N Proxy port mode applicable only to N-port Virtualizer (NPV). tfPort (20) - Trunking fibre channel fabric port. tnpPort (21) - Trunking N Proxy port mode applicable only to N-port Virtualizer (NPV)." status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)) namedValues = NamedValues(("auto", 1), ("fPort", 2), ("flPort", 3), ("ePort", 4), ("bPort", 5), ("fxPort", 6), ("sdPort", 7), ("tlPort", 8), ("nPort", 9), ("nlPort", 10), ("nxPort", 11), ("tePort", 12), ("fvPort", 13), ("portOperDown", 14), ("stPort", 15), ("mgmtPort", 16), ("ipsPort", 17), ("evPort", 18), ("npPort", 19), ("tfPort", 20), ("tnpPort", 21)) class FcIfServiceStateType(TextualConvention, Integer32): description = 'Represents the service state of a Fibre Channel interface. Following are the meanings of the enumerated values: inService (1) - interface is in service and is allowed to become operational. outOfService (2) - interface is removed from service and is not allowed to become operational.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("inService", 1), ("outOfService", 2)) class FcIfSfpDiagLevelType(TextualConvention, Integer32): description = 'Represents the severity level of the SFP diagnostic information of an interface for temperature, voltage, current, optical transmit and receive power.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("unknown", 1), ("normal", 2), ("lowWarning", 3), ("lowAlarm", 4), ("highWarning", 5), ("highAlarm", 6)) mibBuilder.exportSymbols("CISCO-ST-TC", FcPortModuleTypes=FcPortModuleTypes, FcIfSpeed=FcIfSpeed, FcClassOfServices=FcClassOfServices, PYSNMP_MODULE_ID=storageTextualConventions, FcNameId=FcNameId, FcNameIdOrZero=FcNameIdOrZero, DomainIdOrZero=DomainIdOrZero, FcAddressType=FcAddressType, FcAddress=FcAddress, DomainId=DomainId, FcPortTypes=FcPortTypes, PortMemberList=PortMemberList, FcIfServiceStateType=FcIfServiceStateType, FcAddressId=FcAddressId, FcPortTxTypes=FcPortTxTypes, storageTextualConventions=storageTextualConventions, FcIfSfpDiagLevelType=FcIfSfpDiagLevelType, VsanIndex=VsanIndex, InterfaceOperMode=InterfaceOperMode)
140.9
1,368
0.744204
2,163
16,908
5.810448
0.245492
0.021006
0.030554
0.028883
0.390038
0.353756
0.334341
0.297024
0.290022
0.274268
0
0.05743
0.141117
16,908
119
1,369
142.084034
0.808015
0.018689
0
0.197917
0
0.197917
0.609238
0.005548
0
0
0
0
0
1
0
false
0
0.072917
0
0.90625
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
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4