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
9281d39b347903a8a190faf60dc6841146943081
438
py
Python
src/genie/libs/parser/iosxe/tests/ShowIpv6Neighbors/cli/equal/golden_output3_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxe/tests/ShowIpv6Neighbors/cli/equal/golden_output3_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxe/tests/ShowIpv6Neighbors/cli/equal/golden_output3_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "interface": { "GigabitEthernet3.90": { "interface": "GigabitEthernet3.90", "neighbors": { "FE80::5C00:40FF:FEFF:209": { "age": "22", "ip": "FE80::5C00:40FF:FEFF:209", "link_layer_address": "5e00.40ff.0209", "neighbor_state": "STALE", } }, } } }
27.375
59
0.392694
31
438
5.419355
0.709677
0.297619
0.321429
0.190476
0.22619
0
0
0
0
0
0
0.154167
0.452055
438
15
60
29.2
0.545833
0
0
0
0
0
0.390411
0.109589
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
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
3
92883432b9224195c409d4078da881d119a331a3
319
py
Python
Chapter1/Statements.py
rabbitism/Beginning-Python-Practice
f34163291db621a38226841aeb59e71b68fae00c
[ "MIT" ]
null
null
null
Chapter1/Statements.py
rabbitism/Beginning-Python-Practice
f34163291db621a38226841aeb59e71b68fae00c
[ "MIT" ]
null
null
null
Chapter1/Statements.py
rabbitism/Beginning-Python-Practice
f34163291db621a38226841aeb59e71b68fae00c
[ "MIT" ]
null
null
null
print("Statements") print("Statement does something, while expression is something") 2*2 # this is an expression, it will not do anything if not using interactive interpreter. print(2*2) #this is an statement, it does print x=3 #this is also an statement, it has no values to print out, but x is already assigned.
35.444444
91
0.755486
55
319
4.381818
0.563636
0.074689
0.049793
0.06639
0.082988
0
0
0
0
0
0
0.018939
0.172414
319
8
92
39.875
0.893939
0.639498
0
0
0
0
0.601852
0
0
0
0
0
0
1
0
false
0
0
0
0
0.6
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
929915d0814aaa404e5699aac92b556df2351410
788
py
Python
qutebrowser/fkd/tiparoj-vulpo.py
ebzzry/dotfiles
0c775392a031c0e24ee7b165f2533a4254eedc78
[ "CC0-1.0" ]
30
2016-06-17T01:52:37.000Z
2021-08-20T11:39:30.000Z
qutebrowser/fkd/tiparoj-vulpo.py
ebzzry/dotfiles
0c775392a031c0e24ee7b165f2533a4254eedc78
[ "CC0-1.0" ]
null
null
null
qutebrowser/fkd/tiparoj-vulpo.py
ebzzry/dotfiles
0c775392a031c0e24ee7b165f2533a4254eedc78
[ "CC0-1.0" ]
3
2019-04-08T13:09:10.000Z
2019-11-04T12:20:43.000Z
#--------------------------------------------------------------------------------------------------- # Tiparoj #--------------------------------------------------------------------------------------------------- c.fonts.completion.category = "bold 8pt monospace" c.fonts.completion.entry = "8pt monospace" c.fonts.debug_console = "8pt monospace" c.fonts.downloads = "8pt monospace" c.fonts.hints = "bold 8pt monospace" c.fonts.keyhint = "8pt monospace" c.fonts.messages.error = "8pt monospace" c.fonts.messages.info = "8pt monospace" c.fonts.messages.warning = "8pt monospace" c.fonts.prompts = "8pt sans-serif" c.fonts.statusbar = "8pt monospace" c.fonts.tabs.selected = "8pt sans-serif" c.fonts.tabs.unselected = "8pt sans-serif" c.fonts.default_family = "Monospace, DejaVu Sans Mono"
41.473684
100
0.559645
87
788
5.045977
0.333333
0.191344
0.296128
0.410023
0.400911
0
0
0
0
0
0
0.017981
0.082487
788
18
101
43.777778
0.589212
0.261421
0
0
0
0
0.360967
0
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
929ba59dba2549bb8c4a8cfd84759bad83058500
249
py
Python
app/schema.py
totoro0104/fastapi-example
edb197fc0160a72c72f9bd071751fd3e4dae9193
[ "Apache-2.0" ]
2
2021-05-06T07:51:48.000Z
2022-01-25T05:50:22.000Z
app/schema.py
totoro0104/fastapi-example
edb197fc0160a72c72f9bd071751fd3e4dae9193
[ "Apache-2.0" ]
null
null
null
app/schema.py
totoro0104/fastapi-example
edb197fc0160a72c72f9bd071751fd3e4dae9193
[ "Apache-2.0" ]
null
null
null
from tortoise.contrib.pydantic import pydantic_model_creator, pydantic_queryset_creator from app.models.models import User # build `Pydantic Model` User_Pydantic = pydantic_model_creator(User) User_Pydantic_List = pydantic_queryset_creator(User)
27.666667
87
0.855422
33
249
6.121212
0.393939
0.193069
0.19802
0
0
0
0
0
0
0
0
0
0.088353
249
8
88
31.125
0.889868
0.088353
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
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
3
2b913f215c74ee5a10f25590ace6c988d54333ff
73,364
py
Python
src/__wallaby_local.py
tyngsboroughrobotics/botball-2019
d69e1dc75b5dc66f5bce4519f5db15ddbacb0911
[ "MIT" ]
1
2018-11-20T16:05:01.000Z
2018-11-20T16:05:01.000Z
src/__wallaby_local.py
tyngsboroughrobotics/botball-2019
d69e1dc75b5dc66f5bce4519f5db15ddbacb0911
[ "MIT" ]
null
null
null
src/__wallaby_local.py
tyngsboroughrobotics/botball-2019
d69e1dc75b5dc66f5bce4519f5db15ddbacb0911
[ "MIT" ]
1
2019-03-01T14:31:13.000Z
2019-03-01T14:31:13.000Z
###################################### # DO NOT USE ON WALLABY # # USE THE ONE IN /usr/lib/wallaby.py # # INSTEAD # ###################################### # This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.2 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_wallaby', [dirname(__file__)]) except ImportError: import _wallaby return _wallaby if fp is not None: try: _mod = imp.load_module('_wallaby', fp, pathname, description) finally: fp.close() return _mod _wallaby = swig_import_helper() del swig_import_helper else: import _wallaby del version_info try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError(name) def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: class _object : pass _newclass = 0 class IntSensor(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, IntSensor, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, IntSensor, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _wallaby.delete_IntSensor __del__ = lambda self : None; def value(self): return _wallaby.IntSensor_value(self) IntSensor_swigregister = _wallaby.IntSensor_swigregister IntSensor_swigregister(IntSensor) class ShortSensor(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ShortSensor, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ShortSensor, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _wallaby.delete_ShortSensor __del__ = lambda self : None; def value(self): return _wallaby.ShortSensor_value(self) ShortSensor_swigregister = _wallaby.ShortSensor_swigregister ShortSensor_swigregister(ShortSensor) class UnsignedShortSensor(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, UnsignedShortSensor, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, UnsignedShortSensor, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _wallaby.delete_UnsignedShortSensor __del__ = lambda self : None; def value(self): return _wallaby.UnsignedShortSensor_value(self) UnsignedShortSensor_swigregister = _wallaby.UnsignedShortSensor_swigregister UnsignedShortSensor_swigregister(UnsignedShortSensor) class BoolSensor(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, BoolSensor, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, BoolSensor, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _wallaby.delete_BoolSensor __del__ = lambda self : None; def value(self): return _wallaby.BoolSensor_value(self) BoolSensor_swigregister = _wallaby.BoolSensor_swigregister BoolSensor_swigregister(BoolSensor) class Motor(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Motor, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Motor, name) __repr__ = _swig_repr def __init__(self, *args): this = _wallaby.new_Motor(*args) try: self.this.append(this) except: self.this = this def clearPositionCounter(self): return _wallaby.Motor_clearPositionCounter(self) def moveAtVelocity(self, *args): return _wallaby.Motor_moveAtVelocity(self, *args) def moveToPosition(self, *args): return _wallaby.Motor_moveToPosition(self, *args) def moveRelativePosition(self, *args): return _wallaby.Motor_moveRelativePosition(self, *args) def freeze(self): return _wallaby.Motor_freeze(self) def isMotorDone(self): return _wallaby.Motor_isMotorDone(self) def blockMotorDone(self): return _wallaby.Motor_blockMotorDone(self) def forward(self): return _wallaby.Motor_forward(self) def backward(self): return _wallaby.Motor_backward(self) def motor(self, *args): return _wallaby.Motor_motor(self, *args) def motorPower(self, *args): return _wallaby.Motor_motorPower(self, *args) def off(self): return _wallaby.Motor_off(self) def port(self): return _wallaby.Motor_port(self) __swig_destroy__ = _wallaby.delete_Motor __del__ = lambda self : None; Motor_swigregister = _wallaby.Motor_swigregister Motor_swigregister(Motor) class BackEMF(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, BackEMF, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, BackEMF, name) __repr__ = _swig_repr def __init__(self, *args): this = _wallaby.new_BackEMF(*args) try: self.this.append(this) except: self.this = this def value(self): return _wallaby.BackEMF_value(self) def port(self): return _wallaby.BackEMF_port(self) __swig_destroy__ = _wallaby.delete_BackEMF __del__ = lambda self : None; BackEMF_swigregister = _wallaby.BackEMF_swigregister BackEMF_swigregister(BackEMF) class Servo(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Servo, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Servo, name) __repr__ = _swig_repr def __init__(self, *args): this = _wallaby.new_Servo(*args) try: self.this.append(this) except: self.this = this def setPosition(self, *args): return _wallaby.Servo_setPosition(self, *args) def position(self): return _wallaby.Servo_position(self) def disable(self): return _wallaby.Servo_disable(self) def enable(self): return _wallaby.Servo_enable(self) def setEnabled(self, *args): return _wallaby.Servo_setEnabled(self, *args) def isEnabled(self): return _wallaby.Servo_isEnabled(self) __swig_destroy__ = _wallaby.delete_Servo __del__ = lambda self : None; Servo_swigregister = _wallaby.Servo_swigregister Servo_swigregister(Servo) class Rgb(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Rgb, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Rgb, name) __repr__ = _swig_repr __swig_setmethods__["r"] = _wallaby.Rgb_r_set __swig_getmethods__["r"] = _wallaby.Rgb_r_get if _newclass:r = _swig_property(_wallaby.Rgb_r_get, _wallaby.Rgb_r_set) __swig_setmethods__["g"] = _wallaby.Rgb_g_set __swig_getmethods__["g"] = _wallaby.Rgb_g_get if _newclass:g = _swig_property(_wallaby.Rgb_g_get, _wallaby.Rgb_g_set) __swig_setmethods__["b"] = _wallaby.Rgb_b_set __swig_getmethods__["b"] = _wallaby.Rgb_b_get if _newclass:b = _swig_property(_wallaby.Rgb_b_get, _wallaby.Rgb_b_set) def __init__(self): this = _wallaby.new_Rgb() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_Rgb __del__ = lambda self : None; Rgb_swigregister = _wallaby.Rgb_swigregister Rgb_swigregister(Rgb) class Hsv(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Hsv, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Hsv, name) __repr__ = _swig_repr __swig_setmethods__["h"] = _wallaby.Hsv_h_set __swig_getmethods__["h"] = _wallaby.Hsv_h_get if _newclass:h = _swig_property(_wallaby.Hsv_h_get, _wallaby.Hsv_h_set) __swig_setmethods__["s"] = _wallaby.Hsv_s_set __swig_getmethods__["s"] = _wallaby.Hsv_s_get if _newclass:s = _swig_property(_wallaby.Hsv_s_get, _wallaby.Hsv_s_set) __swig_setmethods__["v"] = _wallaby.Hsv_v_set __swig_getmethods__["v"] = _wallaby.Hsv_v_get if _newclass:v = _swig_property(_wallaby.Hsv_v_get, _wallaby.Hsv_v_set) def __init__(self): this = _wallaby.new_Hsv() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_Hsv __del__ = lambda self : None; Hsv_swigregister = _wallaby.Hsv_swigregister Hsv_swigregister(Hsv) class Battery(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Battery, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Battery, name) __repr__ = _swig_repr __swig_getmethods__["isCharging"] = lambda x: _wallaby.Battery_isCharging if _newclass:isCharging = staticmethod(_wallaby.Battery_isCharging) __swig_getmethods__["powerLevel"] = lambda x: _wallaby.Battery_powerLevel if _newclass:powerLevel = staticmethod(_wallaby.Battery_powerLevel) __swig_getmethods__["rawPowerADC"] = lambda x: _wallaby.Battery_rawPowerADC if _newclass:rawPowerADC = staticmethod(_wallaby.Battery_rawPowerADC) def __init__(self): this = _wallaby.new_Battery() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_Battery __del__ = lambda self : None; Battery_swigregister = _wallaby.Battery_swigregister Battery_swigregister(Battery) def Battery_isCharging(): return _wallaby.Battery_isCharging() Battery_isCharging = _wallaby.Battery_isCharging def Battery_powerLevel(battery_type=0): return _wallaby.Battery_powerLevel(battery_type) Battery_powerLevel = _wallaby.Battery_powerLevel def Battery_rawPowerADC(): return _wallaby.Battery_rawPowerADC() Battery_rawPowerADC = _wallaby.Battery_rawPowerADC class Analog(UnsignedShortSensor): __swig_setmethods__ = {} for _s in [UnsignedShortSensor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, Analog, name, value) __swig_getmethods__ = {} for _s in [UnsignedShortSensor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, Analog, name) __repr__ = _swig_repr def __init__(self, *args): this = _wallaby.new_Analog(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_Analog __del__ = lambda self : None; def value(self): return _wallaby.Analog_value(self) def setPullup(self, *args): return _wallaby.Analog_setPullup(self, *args) def pullup(self): return _wallaby.Analog_pullup(self) def port(self): return _wallaby.Analog_port(self) Analog_swigregister = _wallaby.Analog_swigregister Analog_swigregister(Analog) class Analog8(Analog): __swig_setmethods__ = {} for _s in [Analog]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, Analog8, name, value) __swig_getmethods__ = {} for _s in [Analog]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, Analog8, name) __repr__ = _swig_repr def __init__(self, *args): this = _wallaby.new_Analog8(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_Analog8 __del__ = lambda self : None; def value(self): return _wallaby.Analog8_value(self) Analog8_swigregister = _wallaby.Analog8_swigregister Analog8_swigregister(Analog8) class Analog10(Analog): __swig_setmethods__ = {} for _s in [Analog]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, Analog10, name, value) __swig_getmethods__ = {} for _s in [Analog]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, Analog10, name) __repr__ = _swig_repr def __init__(self, *args): this = _wallaby.new_Analog10(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_Analog10 __del__ = lambda self : None; def value(self): return _wallaby.Analog10_value(self) Analog10_swigregister = _wallaby.Analog10_swigregister Analog10_swigregister(Analog10) class Acceleration(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Acceleration, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Acceleration, name) __repr__ = _swig_repr __swig_getmethods__["x"] = lambda x: _wallaby.Acceleration_x if _newclass:x = staticmethod(_wallaby.Acceleration_x) __swig_getmethods__["y"] = lambda x: _wallaby.Acceleration_y if _newclass:y = staticmethod(_wallaby.Acceleration_y) __swig_getmethods__["z"] = lambda x: _wallaby.Acceleration_z if _newclass:z = staticmethod(_wallaby.Acceleration_z) __swig_getmethods__["calibrate"] = lambda x: _wallaby.Acceleration_calibrate if _newclass:calibrate = staticmethod(_wallaby.Acceleration_calibrate) def __init__(self): this = _wallaby.new_Acceleration() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_Acceleration __del__ = lambda self : None; Acceleration_swigregister = _wallaby.Acceleration_swigregister Acceleration_swigregister(Acceleration) def Acceleration_x(): return _wallaby.Acceleration_x() Acceleration_x = _wallaby.Acceleration_x def Acceleration_y(): return _wallaby.Acceleration_y() Acceleration_y = _wallaby.Acceleration_y def Acceleration_z(): return _wallaby.Acceleration_z() Acceleration_z = _wallaby.Acceleration_z def Acceleration_calibrate(): return _wallaby.Acceleration_calibrate() Acceleration_calibrate = _wallaby.Acceleration_calibrate class AccelX(ShortSensor): __swig_setmethods__ = {} for _s in [ShortSensor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, AccelX, name, value) __swig_getmethods__ = {} for _s in [ShortSensor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, AccelX, name) __repr__ = _swig_repr def value(self): return _wallaby.AccelX_value(self) def __init__(self): this = _wallaby.new_AccelX() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_AccelX __del__ = lambda self : None; AccelX_swigregister = _wallaby.AccelX_swigregister AccelX_swigregister(AccelX) class AccelY(ShortSensor): __swig_setmethods__ = {} for _s in [ShortSensor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, AccelY, name, value) __swig_getmethods__ = {} for _s in [ShortSensor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, AccelY, name) __repr__ = _swig_repr def value(self): return _wallaby.AccelY_value(self) def __init__(self): this = _wallaby.new_AccelY() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_AccelY __del__ = lambda self : None; AccelY_swigregister = _wallaby.AccelY_swigregister AccelY_swigregister(AccelY) class AccelZ(ShortSensor): __swig_setmethods__ = {} for _s in [ShortSensor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, AccelZ, name, value) __swig_getmethods__ = {} for _s in [ShortSensor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, AccelZ, name) __repr__ = _swig_repr def value(self): return _wallaby.AccelZ_value(self) def __init__(self): this = _wallaby.new_AccelZ() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_AccelZ __del__ = lambda self : None; AccelZ_swigregister = _wallaby.AccelZ_swigregister AccelZ_swigregister(AccelZ) class Compass(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Compass, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Compass, name) __repr__ = _swig_repr def __init__(self): this = _wallaby.new_Compass() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_Compass __del__ = lambda self : None; __swig_getmethods__["calibrate"] = lambda x: _wallaby.Compass_calibrate if _newclass:calibrate = staticmethod(_wallaby.Compass_calibrate) __swig_getmethods__["setParams"] = lambda x: _wallaby.Compass_setParams if _newclass:setParams = staticmethod(_wallaby.Compass_setParams) __swig_getmethods__["getAngle"] = lambda x: _wallaby.Compass_getAngle if _newclass:getAngle = staticmethod(_wallaby.Compass_getAngle) Compass_swigregister = _wallaby.Compass_swigregister Compass_swigregister(Compass) def Compass_calibrate(): return _wallaby.Compass_calibrate() Compass_calibrate = _wallaby.Compass_calibrate def Compass_setParams(*args): return _wallaby.Compass_setParams(*args) Compass_setParams = _wallaby.Compass_setParams def Compass_getAngle(): return _wallaby.Compass_getAngle() Compass_getAngle = _wallaby.Compass_getAngle class Gyro(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Gyro, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Gyro, name) __repr__ = _swig_repr __swig_getmethods__["x"] = lambda x: _wallaby.Gyro_x if _newclass:x = staticmethod(_wallaby.Gyro_x) __swig_getmethods__["y"] = lambda x: _wallaby.Gyro_y if _newclass:y = staticmethod(_wallaby.Gyro_y) __swig_getmethods__["z"] = lambda x: _wallaby.Gyro_z if _newclass:z = staticmethod(_wallaby.Gyro_z) __swig_getmethods__["calibrate"] = lambda x: _wallaby.Gyro_calibrate if _newclass:calibrate = staticmethod(_wallaby.Gyro_calibrate) def __init__(self): this = _wallaby.new_Gyro() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_Gyro __del__ = lambda self : None; Gyro_swigregister = _wallaby.Gyro_swigregister Gyro_swigregister(Gyro) def Gyro_x(): return _wallaby.Gyro_x() Gyro_x = _wallaby.Gyro_x def Gyro_y(): return _wallaby.Gyro_y() Gyro_y = _wallaby.Gyro_y def Gyro_z(): return _wallaby.Gyro_z() Gyro_z = _wallaby.Gyro_z def Gyro_calibrate(): return _wallaby.Gyro_calibrate() Gyro_calibrate = _wallaby.Gyro_calibrate class GyroX(ShortSensor): __swig_setmethods__ = {} for _s in [ShortSensor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, GyroX, name, value) __swig_getmethods__ = {} for _s in [ShortSensor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, GyroX, name) __repr__ = _swig_repr def value(self): return _wallaby.GyroX_value(self) def __init__(self): this = _wallaby.new_GyroX() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_GyroX __del__ = lambda self : None; GyroX_swigregister = _wallaby.GyroX_swigregister GyroX_swigregister(GyroX) class GyroY(ShortSensor): __swig_setmethods__ = {} for _s in [ShortSensor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, GyroY, name, value) __swig_getmethods__ = {} for _s in [ShortSensor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, GyroY, name) __repr__ = _swig_repr def value(self): return _wallaby.GyroY_value(self) def __init__(self): this = _wallaby.new_GyroY() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_GyroY __del__ = lambda self : None; GyroY_swigregister = _wallaby.GyroY_swigregister GyroY_swigregister(GyroY) class GyroZ(ShortSensor): __swig_setmethods__ = {} for _s in [ShortSensor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, GyroZ, name, value) __swig_getmethods__ = {} for _s in [ShortSensor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, GyroZ, name) __repr__ = _swig_repr def value(self): return _wallaby.GyroZ_value(self) def __init__(self): this = _wallaby.new_GyroZ() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_GyroZ __del__ = lambda self : None; GyroZ_swigregister = _wallaby.GyroZ_swigregister GyroZ_swigregister(GyroZ) class Magneto(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Magneto, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Magneto, name) __repr__ = _swig_repr __swig_getmethods__["x"] = lambda x: _wallaby.Magneto_x if _newclass:x = staticmethod(_wallaby.Magneto_x) __swig_getmethods__["y"] = lambda x: _wallaby.Magneto_y if _newclass:y = staticmethod(_wallaby.Magneto_y) __swig_getmethods__["z"] = lambda x: _wallaby.Magneto_z if _newclass:z = staticmethod(_wallaby.Magneto_z) __swig_getmethods__["calibrate"] = lambda x: _wallaby.Magneto_calibrate if _newclass:calibrate = staticmethod(_wallaby.Magneto_calibrate) def __init__(self): this = _wallaby.new_Magneto() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_Magneto __del__ = lambda self : None; Magneto_swigregister = _wallaby.Magneto_swigregister Magneto_swigregister(Magneto) def Magneto_x(): return _wallaby.Magneto_x() Magneto_x = _wallaby.Magneto_x def Magneto_y(): return _wallaby.Magneto_y() Magneto_y = _wallaby.Magneto_y def Magneto_z(): return _wallaby.Magneto_z() Magneto_z = _wallaby.Magneto_z def Magneto_calibrate(): return _wallaby.Magneto_calibrate() Magneto_calibrate = _wallaby.Magneto_calibrate class MagnetoX(ShortSensor): __swig_setmethods__ = {} for _s in [ShortSensor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, MagnetoX, name, value) __swig_getmethods__ = {} for _s in [ShortSensor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, MagnetoX, name) __repr__ = _swig_repr def value(self): return _wallaby.MagnetoX_value(self) def __init__(self): this = _wallaby.new_MagnetoX() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_MagnetoX __del__ = lambda self : None; MagnetoX_swigregister = _wallaby.MagnetoX_swigregister MagnetoX_swigregister(MagnetoX) class MagnetoY(ShortSensor): __swig_setmethods__ = {} for _s in [ShortSensor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, MagnetoY, name, value) __swig_getmethods__ = {} for _s in [ShortSensor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, MagnetoY, name) __repr__ = _swig_repr def value(self): return _wallaby.MagnetoY_value(self) def __init__(self): this = _wallaby.new_MagnetoY() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_MagnetoY __del__ = lambda self : None; MagnetoY_swigregister = _wallaby.MagnetoY_swigregister MagnetoY_swigregister(MagnetoY) class MagnetoZ(ShortSensor): __swig_setmethods__ = {} for _s in [ShortSensor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, MagnetoZ, name, value) __swig_getmethods__ = {} for _s in [ShortSensor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, MagnetoZ, name) __repr__ = _swig_repr def value(self): return _wallaby.MagnetoZ_value(self) def __init__(self): this = _wallaby.new_MagnetoZ() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_MagnetoZ __del__ = lambda self : None; MagnetoZ_swigregister = _wallaby.MagnetoZ_swigregister MagnetoZ_swigregister(MagnetoZ) class AbstractButton(BoolSensor): __swig_setmethods__ = {} for _s in [BoolSensor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, AbstractButton, name, value) __swig_getmethods__ = {} for _s in [BoolSensor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, AbstractButton, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _wallaby.delete_AbstractButton __del__ = lambda self : None; def setPressed(self, *args): return _wallaby.AbstractButton_setPressed(self, *args) def isPressed(self): return _wallaby.AbstractButton_isPressed(self) def isNotPressed(self): return _wallaby.AbstractButton_isNotPressed(self) def isClicked(self): return _wallaby.AbstractButton_isClicked(self) def waitUntilReleased(self): return _wallaby.AbstractButton_waitUntilReleased(self) def waitUntilPressed(self): return _wallaby.AbstractButton_waitUntilPressed(self) def waitUntilClicked(self): return _wallaby.AbstractButton_waitUntilClicked(self) AbstractButton_swigregister = _wallaby.AbstractButton_swigregister AbstractButton_swigregister(AbstractButton) class AbstractTextButton(AbstractButton): __swig_setmethods__ = {} for _s in [AbstractButton]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, AbstractTextButton, name, value) __swig_getmethods__ = {} for _s in [AbstractButton]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, AbstractTextButton, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _wallaby.delete_AbstractTextButton __del__ = lambda self : None; def setText(self, *args): return _wallaby.AbstractTextButton_setText(self, *args) def text(self): return _wallaby.AbstractTextButton_text(self) def isTextDirty(self): return _wallaby.AbstractTextButton_isTextDirty(self) def resetText(self): return _wallaby.AbstractTextButton_resetText(self) AbstractTextButton_swigregister = _wallaby.AbstractTextButton_swigregister AbstractTextButton_swigregister(AbstractTextButton) class IdButton(AbstractTextButton): __swig_setmethods__ = {} for _s in [AbstractTextButton]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, IdButton, name, value) __swig_getmethods__ = {} for _s in [AbstractTextButton]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, IdButton, name) __repr__ = _swig_repr def __init__(self, *args): this = _wallaby.new_IdButton(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_IdButton __del__ = lambda self : None; def setText(self, *args): return _wallaby.IdButton_setText(self, *args) def text(self): return _wallaby.IdButton_text(self) def isTextDirty(self): return _wallaby.IdButton_isTextDirty(self) def setPressed(self, *args): return _wallaby.IdButton_setPressed(self, *args) def value(self): return _wallaby.IdButton_value(self) def resetText(self): return _wallaby.IdButton_resetText(self) IdButton_swigregister = _wallaby.IdButton_swigregister IdButton_swigregister(IdButton) class ExtraButtons(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ExtraButtons, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ExtraButtons, name) __repr__ = _swig_repr __swig_getmethods__["show"] = lambda x: _wallaby.ExtraButtons_show if _newclass:show = staticmethod(_wallaby.ExtraButtons_show) __swig_getmethods__["hide"] = lambda x: _wallaby.ExtraButtons_hide if _newclass:hide = staticmethod(_wallaby.ExtraButtons_hide) __swig_getmethods__["setShown"] = lambda x: _wallaby.ExtraButtons_setShown if _newclass:setShown = staticmethod(_wallaby.ExtraButtons_setShown) __swig_getmethods__["isShown"] = lambda x: _wallaby.ExtraButtons_isShown if _newclass:isShown = staticmethod(_wallaby.ExtraButtons_isShown) def __init__(self): this = _wallaby.new_ExtraButtons() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_ExtraButtons __del__ = lambda self : None; ExtraButtons_swigregister = _wallaby.ExtraButtons_swigregister ExtraButtons_swigregister(ExtraButtons) def ExtraButtons_show(): return _wallaby.ExtraButtons_show() ExtraButtons_show = _wallaby.ExtraButtons_show def ExtraButtons_hide(): return _wallaby.ExtraButtons_hide() ExtraButtons_hide = _wallaby.ExtraButtons_hide def ExtraButtons_setShown(*args): return _wallaby.ExtraButtons_setShown(*args) ExtraButtons_setShown = _wallaby.ExtraButtons_setShown def ExtraButtons_isShown(): return _wallaby.ExtraButtons_isShown() ExtraButtons_isShown = _wallaby.ExtraButtons_isShown class Config(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Config, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Config, name) __repr__ = _swig_repr def __init__(self, *args): this = _wallaby.new_Config(*args) try: self.this.append(this) except: self.this = this __swig_getmethods__["load"] = lambda x: _wallaby.Config_load if _newclass:load = staticmethod(_wallaby.Config_load) def save(self, *args): return _wallaby.Config_save(self, *args) def beginGroup(self, *args): return _wallaby.Config_beginGroup(self, *args) def endGroup(self): return _wallaby.Config_endGroup(self) def clearGroup(self): return _wallaby.Config_clearGroup(self) def clear(self): return _wallaby.Config_clear(self) def containsKey(self, *args): return _wallaby.Config_containsKey(self, *args) def boolValue(self, *args): return _wallaby.Config_boolValue(self, *args) def intValue(self, *args): return _wallaby.Config_intValue(self, *args) def doubleValue(self, *args): return _wallaby.Config_doubleValue(self, *args) def stringValue(self, *args): return _wallaby.Config_stringValue(self, *args) def setValue(self, *args): return _wallaby.Config_setValue(self, *args) def values(self): return _wallaby.Config_values(self) def addValues(self, *args): return _wallaby.Config_addValues(self, *args) __swig_destroy__ = _wallaby.delete_Config __del__ = lambda self : None; Config_swigregister = _wallaby.Config_swigregister Config_swigregister(Config) cvar = _wallaby.cvar all = cvar.all def Config_load(*args): return _wallaby.Config_load(*args) Config_load = _wallaby.Config_load class Digital(BoolSensor): __swig_setmethods__ = {} for _s in [BoolSensor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, Digital, name, value) __swig_getmethods__ = {} for _s in [BoolSensor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, Digital, name) __repr__ = _swig_repr def __init__(self, *args): this = _wallaby.new_Digital(*args) try: self.this.append(this) except: self.this = this def setValue(self, *args): return _wallaby.Digital_setValue(self, *args) def setOutput(self, *args): return _wallaby.Digital_setOutput(self, *args) def isOutput(self): return _wallaby.Digital_isOutput(self) def setPullup(self, *args): return _wallaby.Digital_setPullup(self, *args) def pullup(self): return _wallaby.Digital_pullup(self) def value(self): return _wallaby.Digital_value(self) __swig_destroy__ = _wallaby.delete_Digital __del__ = lambda self : None; Digital_swigregister = _wallaby.Digital_swigregister Digital_swigregister(Digital) def graphics_open(*args): return _wallaby.graphics_open(*args) graphics_open = _wallaby.graphics_open def graphics_close(): return _wallaby.graphics_close() graphics_close = _wallaby.graphics_close def graphics_update(): return _wallaby.graphics_update() graphics_update = _wallaby.graphics_update def graphics_clear(): return _wallaby.graphics_clear() graphics_clear = _wallaby.graphics_clear RGB = _wallaby.RGB BGR = _wallaby.BGR def graphics_blit(*args): return _wallaby.graphics_blit(*args) graphics_blit = _wallaby.graphics_blit def graphics_blit_region(*args): return _wallaby.graphics_blit_region(*args) graphics_blit_region = _wallaby.graphics_blit_region def graphics_blit_enc(*args): return _wallaby.graphics_blit_enc(*args) graphics_blit_enc = _wallaby.graphics_blit_enc def graphics_blit_region_enc(*args): return _wallaby.graphics_blit_region_enc(*args) graphics_blit_region_enc = _wallaby.graphics_blit_region_enc def graphics_fill(*args): return _wallaby.graphics_fill(*args) graphics_fill = _wallaby.graphics_fill def graphics_pixel(*args): return _wallaby.graphics_pixel(*args) graphics_pixel = _wallaby.graphics_pixel def graphics_line(*args): return _wallaby.graphics_line(*args) graphics_line = _wallaby.graphics_line def graphics_circle(*args): return _wallaby.graphics_circle(*args) graphics_circle = _wallaby.graphics_circle def graphics_circle_fill(*args): return _wallaby.graphics_circle_fill(*args) graphics_circle_fill = _wallaby.graphics_circle_fill def graphics_rectangle(*args): return _wallaby.graphics_rectangle(*args) graphics_rectangle = _wallaby.graphics_rectangle def graphics_rectangle_fill(*args): return _wallaby.graphics_rectangle_fill(*args) graphics_rectangle_fill = _wallaby.graphics_rectangle_fill def graphics_triangle(*args): return _wallaby.graphics_triangle(*args) graphics_triangle = _wallaby.graphics_triangle def graphics_triangle_fill(*args): return _wallaby.graphics_triangle_fill(*args) graphics_triangle_fill = _wallaby.graphics_triangle_fill def get_key_state(*args): return _wallaby.get_key_state(*args) get_key_state = _wallaby.get_key_state def get_mouse_position(*args): return _wallaby.get_mouse_position(*args) get_mouse_position = _wallaby.get_mouse_position def get_mouse_middle_button(): return _wallaby.get_mouse_middle_button() get_mouse_middle_button = _wallaby.get_mouse_middle_button def get_mouse_left_button(): return _wallaby.get_mouse_left_button() get_mouse_left_button = _wallaby.get_mouse_left_button def get_mouse_right_button(): return _wallaby.get_mouse_right_button() get_mouse_right_button = _wallaby.get_mouse_right_button class Mutex(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Mutex, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Mutex, name) __repr__ = _swig_repr def __init__(self): this = _wallaby.new_Mutex() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_Mutex __del__ = lambda self : None; def lock(self): return _wallaby.Mutex_lock(self) def tryLock(self): return _wallaby.Mutex_tryLock(self) def unlock(self): return _wallaby.Mutex_unlock(self) Mutex_swigregister = _wallaby.Mutex_swigregister Mutex_swigregister(Mutex) class Thread(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Thread, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Thread, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _wallaby.delete_Thread __del__ = lambda self : None; def start(self): return _wallaby.Thread_start(self) def join(self): return _wallaby.Thread_join(self) def run(self): return _wallaby.Thread_run(self) Thread_swigregister = _wallaby.Thread_swigregister Thread_swigregister(Thread) def get_motor_position_counter(*args): return _wallaby.get_motor_position_counter(*args) get_motor_position_counter = _wallaby.get_motor_position_counter def gmpc(*args): return _wallaby.gmpc(*args) gmpc = _wallaby.gmpc def clear_motor_position_counter(*args): return _wallaby.clear_motor_position_counter(*args) clear_motor_position_counter = _wallaby.clear_motor_position_counter def cmpc(*args): return _wallaby.cmpc(*args) cmpc = _wallaby.cmpc def move_at_velocity(*args): return _wallaby.move_at_velocity(*args) move_at_velocity = _wallaby.move_at_velocity def mav(*args): return _wallaby.mav(*args) mav = _wallaby.mav def move_to_position(*args): return _wallaby.move_to_position(*args) move_to_position = _wallaby.move_to_position def mtp(*args): return _wallaby.mtp(*args) mtp = _wallaby.mtp def move_relative_position(*args): return _wallaby.move_relative_position(*args) move_relative_position = _wallaby.move_relative_position def mrp(*args): return _wallaby.mrp(*args) mrp = _wallaby.mrp def set_pid_gains(*args): return _wallaby.set_pid_gains(*args) set_pid_gains = _wallaby.set_pid_gains def get_pid_gains(*args): return _wallaby.get_pid_gains(*args) get_pid_gains = _wallaby.get_pid_gains def freeze(*args): return _wallaby.freeze(*args) freeze = _wallaby.freeze def get_motor_done(*args): return _wallaby.get_motor_done(*args) get_motor_done = _wallaby.get_motor_done def block_motor_done(*args): return _wallaby.block_motor_done(*args) block_motor_done = _wallaby.block_motor_done def bmd(*args): return _wallaby.bmd(*args) bmd = _wallaby.bmd def setpwm(*args): return _wallaby.setpwm(*args) setpwm = _wallaby.setpwm def getpwm(*args): return _wallaby.getpwm(*args) getpwm = _wallaby.getpwm def fd(*args): return _wallaby.fd(*args) fd = _wallaby.fd def bk(*args): return _wallaby.bk(*args) bk = _wallaby.bk def motor(*args): return _wallaby.motor(*args) motor = _wallaby.motor def motor_power(*args): return _wallaby.motor_power(*args) motor_power = _wallaby.motor_power def off(*args): return _wallaby.off(*args) off = _wallaby.off def alloff(): return _wallaby.alloff() alloff = _wallaby.alloff def ao(): return _wallaby.ao() ao = _wallaby.ao class point2(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, point2, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, point2, name) __repr__ = _swig_repr __swig_setmethods__["x"] = _wallaby.point2_x_set __swig_getmethods__["x"] = _wallaby.point2_x_get if _newclass:x = _swig_property(_wallaby.point2_x_get, _wallaby.point2_x_set) __swig_setmethods__["y"] = _wallaby.point2_y_set __swig_getmethods__["y"] = _wallaby.point2_y_get if _newclass:y = _swig_property(_wallaby.point2_y_get, _wallaby.point2_y_set) def __init__(self): this = _wallaby.new_point2() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_point2 __del__ = lambda self : None; point2_swigregister = _wallaby.point2_swigregister point2_swigregister(point2) class point3(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, point3, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, point3, name) __repr__ = _swig_repr __swig_setmethods__["x"] = _wallaby.point3_x_set __swig_getmethods__["x"] = _wallaby.point3_x_get if _newclass:x = _swig_property(_wallaby.point3_x_get, _wallaby.point3_x_set) __swig_setmethods__["y"] = _wallaby.point3_y_set __swig_getmethods__["y"] = _wallaby.point3_y_get if _newclass:y = _swig_property(_wallaby.point3_y_get, _wallaby.point3_y_set) __swig_setmethods__["z"] = _wallaby.point3_z_set __swig_getmethods__["z"] = _wallaby.point3_z_get if _newclass:z = _swig_property(_wallaby.point3_z_get, _wallaby.point3_z_set) def __init__(self): this = _wallaby.new_point3() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_point3 __del__ = lambda self : None; point3_swigregister = _wallaby.point3_swigregister point3_swigregister(point3) class rectangle(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, rectangle, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, rectangle, name) __repr__ = _swig_repr __swig_setmethods__["ulx"] = _wallaby.rectangle_ulx_set __swig_getmethods__["ulx"] = _wallaby.rectangle_ulx_get if _newclass:ulx = _swig_property(_wallaby.rectangle_ulx_get, _wallaby.rectangle_ulx_set) __swig_setmethods__["uly"] = _wallaby.rectangle_uly_set __swig_getmethods__["uly"] = _wallaby.rectangle_uly_get if _newclass:uly = _swig_property(_wallaby.rectangle_uly_get, _wallaby.rectangle_uly_set) __swig_setmethods__["width"] = _wallaby.rectangle_width_set __swig_getmethods__["width"] = _wallaby.rectangle_width_get if _newclass:width = _swig_property(_wallaby.rectangle_width_get, _wallaby.rectangle_width_set) __swig_setmethods__["height"] = _wallaby.rectangle_height_set __swig_getmethods__["height"] = _wallaby.rectangle_height_get if _newclass:height = _swig_property(_wallaby.rectangle_height_get, _wallaby.rectangle_height_set) def __init__(self): this = _wallaby.new_rectangle() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_rectangle __del__ = lambda self : None; rectangle_swigregister = _wallaby.rectangle_swigregister rectangle_swigregister(rectangle) def create_point2(*args): return _wallaby.create_point2(*args) create_point2 = _wallaby.create_point2 def create_point3(*args): return _wallaby.create_point3(*args) create_point3 = _wallaby.create_point3 def create_rectangle(*args): return _wallaby.create_rectangle(*args) create_rectangle = _wallaby.create_rectangle def enable_servo(*args): return _wallaby.enable_servo(*args) enable_servo = _wallaby.enable_servo def disable_servo(*args): return _wallaby.disable_servo(*args) disable_servo = _wallaby.disable_servo def enable_servos(): return _wallaby.enable_servos() enable_servos = _wallaby.enable_servos def disable_servos(): return _wallaby.disable_servos() disable_servos = _wallaby.disable_servos def set_servo_enabled(*args): return _wallaby.set_servo_enabled(*args) set_servo_enabled = _wallaby.set_servo_enabled def get_servo_enabled(*args): return _wallaby.get_servo_enabled(*args) get_servo_enabled = _wallaby.get_servo_enabled def get_servo_position(*args): return _wallaby.get_servo_position(*args) get_servo_position = _wallaby.get_servo_position def set_servo_position(*args): return _wallaby.set_servo_position(*args) set_servo_position = _wallaby.set_servo_position def msleep(*args): return _wallaby.msleep(*args) msleep = _wallaby.msleep def systime(): return _wallaby.systime() systime = _wallaby.systime def seconds(): return _wallaby.seconds() seconds = _wallaby.seconds def create_connect(): return _wallaby.create_connect() create_connect = _wallaby.create_connect def create_connect_once(): return _wallaby.create_connect_once() create_connect_once = _wallaby.create_connect_once def create_disconnect(): return _wallaby.create_disconnect() create_disconnect = _wallaby.create_disconnect def create_start(): return _wallaby.create_start() create_start = _wallaby.create_start def create_passive(): return _wallaby.create_passive() create_passive = _wallaby.create_passive def create_safe(): return _wallaby.create_safe() create_safe = _wallaby.create_safe def create_full(): return _wallaby.create_full() create_full = _wallaby.create_full def create_spot(): return _wallaby.create_spot() create_spot = _wallaby.create_spot def create_cover(): return _wallaby.create_cover() create_cover = _wallaby.create_cover def create_demo(*args): return _wallaby.create_demo(*args) create_demo = _wallaby.create_demo def create_cover_dock(): return _wallaby.create_cover_dock() create_cover_dock = _wallaby.create_cover_dock def get_create_mode(): return _wallaby.get_create_mode() get_create_mode = _wallaby.get_create_mode def get_create_lbump(): return _wallaby.get_create_lbump() get_create_lbump = _wallaby.get_create_lbump def get_create_rbump(): return _wallaby.get_create_rbump() get_create_rbump = _wallaby.get_create_rbump def get_create_lwdrop(): return _wallaby.get_create_lwdrop() get_create_lwdrop = _wallaby.get_create_lwdrop def get_create_cwdrop(): return _wallaby.get_create_cwdrop() get_create_cwdrop = _wallaby.get_create_cwdrop def get_create_rwdrop(): return _wallaby.get_create_rwdrop() get_create_rwdrop = _wallaby.get_create_rwdrop def get_create_wall(): return _wallaby.get_create_wall() get_create_wall = _wallaby.get_create_wall def get_create_lcliff(): return _wallaby.get_create_lcliff() get_create_lcliff = _wallaby.get_create_lcliff def get_create_lfcliff(): return _wallaby.get_create_lfcliff() get_create_lfcliff = _wallaby.get_create_lfcliff def get_create_rfcliff(): return _wallaby.get_create_rfcliff() get_create_rfcliff = _wallaby.get_create_rfcliff def get_create_rcliff(): return _wallaby.get_create_rcliff() get_create_rcliff = _wallaby.get_create_rcliff def get_create_llightbump(): return _wallaby.get_create_llightbump() get_create_llightbump = _wallaby.get_create_llightbump def get_create_lflightbump(): return _wallaby.get_create_lflightbump() get_create_lflightbump = _wallaby.get_create_lflightbump def get_create_lclightbump(): return _wallaby.get_create_lclightbump() get_create_lclightbump = _wallaby.get_create_lclightbump def get_create_rclightbump(): return _wallaby.get_create_rclightbump() get_create_rclightbump = _wallaby.get_create_rclightbump def get_create_rflightbump(): return _wallaby.get_create_rflightbump() get_create_rflightbump = _wallaby.get_create_rflightbump def get_create_rlightbump(): return _wallaby.get_create_rlightbump() get_create_rlightbump = _wallaby.get_create_rlightbump def get_create_llightbump_amt(): return _wallaby.get_create_llightbump_amt() get_create_llightbump_amt = _wallaby.get_create_llightbump_amt def get_create_rlightbump_amt(): return _wallaby.get_create_rlightbump_amt() get_create_rlightbump_amt = _wallaby.get_create_rlightbump_amt def get_create_lflightbump_amt(): return _wallaby.get_create_lflightbump_amt() get_create_lflightbump_amt = _wallaby.get_create_lflightbump_amt def get_create_lclightbump_amt(): return _wallaby.get_create_lclightbump_amt() get_create_lclightbump_amt = _wallaby.get_create_lclightbump_amt def get_create_rclightbump_amt(): return _wallaby.get_create_rclightbump_amt() get_create_rclightbump_amt = _wallaby.get_create_rclightbump_amt def get_create_rflightbump_amt(): return _wallaby.get_create_rflightbump_amt() get_create_rflightbump_amt = _wallaby.get_create_rflightbump_amt def get_create_vwall(): return _wallaby.get_create_vwall() get_create_vwall = _wallaby.get_create_vwall def get_create_overcurrents(): return _wallaby.get_create_overcurrents() get_create_overcurrents = _wallaby.get_create_overcurrents def get_create_infrared(): return _wallaby.get_create_infrared() get_create_infrared = _wallaby.get_create_infrared def get_create_advance_button(): return _wallaby.get_create_advance_button() get_create_advance_button = _wallaby.get_create_advance_button def get_create_play_button(): return _wallaby.get_create_play_button() get_create_play_button = _wallaby.get_create_play_button def get_create_normalized_angle(): return _wallaby.get_create_normalized_angle() get_create_normalized_angle = _wallaby.get_create_normalized_angle def set_create_normalized_angle(*args): return _wallaby.set_create_normalized_angle(*args) set_create_normalized_angle = _wallaby.set_create_normalized_angle def get_create_total_angle(): return _wallaby.get_create_total_angle() get_create_total_angle = _wallaby.get_create_total_angle def set_create_total_angle(*args): return _wallaby.set_create_total_angle(*args) set_create_total_angle = _wallaby.set_create_total_angle def get_create_distance(): return _wallaby.get_create_distance() get_create_distance = _wallaby.get_create_distance def set_create_distance(*args): return _wallaby.set_create_distance(*args) set_create_distance = _wallaby.set_create_distance def get_create_battery_charging_state(): return _wallaby.get_create_battery_charging_state() get_create_battery_charging_state = _wallaby.get_create_battery_charging_state def get_create_battery_voltage(): return _wallaby.get_create_battery_voltage() get_create_battery_voltage = _wallaby.get_create_battery_voltage def get_create_battery_current(): return _wallaby.get_create_battery_current() get_create_battery_current = _wallaby.get_create_battery_current def get_create_battery_temp(): return _wallaby.get_create_battery_temp() get_create_battery_temp = _wallaby.get_create_battery_temp def get_create_battery_charge(): return _wallaby.get_create_battery_charge() get_create_battery_charge = _wallaby.get_create_battery_charge def get_create_battery_capacity(): return _wallaby.get_create_battery_capacity() get_create_battery_capacity = _wallaby.get_create_battery_capacity def get_create_wall_amt(): return _wallaby.get_create_wall_amt() get_create_wall_amt = _wallaby.get_create_wall_amt def get_create_lcliff_amt(): return _wallaby.get_create_lcliff_amt() get_create_lcliff_amt = _wallaby.get_create_lcliff_amt def get_create_lfcliff_amt(): return _wallaby.get_create_lfcliff_amt() get_create_lfcliff_amt = _wallaby.get_create_lfcliff_amt def get_create_rfcliff_amt(): return _wallaby.get_create_rfcliff_amt() get_create_rfcliff_amt = _wallaby.get_create_rfcliff_amt def get_create_rcliff_amt(): return _wallaby.get_create_rcliff_amt() get_create_rcliff_amt = _wallaby.get_create_rcliff_amt def get_create_bay_DI(): return _wallaby.get_create_bay_DI() get_create_bay_DI = _wallaby.get_create_bay_DI def get_create_bay_AI(): return _wallaby.get_create_bay_AI() get_create_bay_AI = _wallaby.get_create_bay_AI def get_create_song_number(): return _wallaby.get_create_song_number() get_create_song_number = _wallaby.get_create_song_number def get_create_song_playing(): return _wallaby.get_create_song_playing() get_create_song_playing = _wallaby.get_create_song_playing def get_create_number_of_stream_packets(): return _wallaby.get_create_number_of_stream_packets() get_create_number_of_stream_packets = _wallaby.get_create_number_of_stream_packets def get_create_requested_velocity(): return _wallaby.get_create_requested_velocity() get_create_requested_velocity = _wallaby.get_create_requested_velocity def get_create_requested_radius(): return _wallaby.get_create_requested_radius() get_create_requested_radius = _wallaby.get_create_requested_radius def get_create_requested_right_velocity(): return _wallaby.get_create_requested_right_velocity() get_create_requested_right_velocity = _wallaby.get_create_requested_right_velocity def get_create_requested_left_velocity(): return _wallaby.get_create_requested_left_velocity() get_create_requested_left_velocity = _wallaby.get_create_requested_left_velocity def create_stop(): return _wallaby.create_stop() create_stop = _wallaby.create_stop def create_drive(*args): return _wallaby.create_drive(*args) create_drive = _wallaby.create_drive def create_drive_straight(*args): return _wallaby.create_drive_straight(*args) create_drive_straight = _wallaby.create_drive_straight def create_spin_CW(*args): return _wallaby.create_spin_CW(*args) create_spin_CW = _wallaby.create_spin_CW def create_spin_CCW(*args): return _wallaby.create_spin_CCW(*args) create_spin_CCW = _wallaby.create_spin_CCW def create_drive_direct(*args): return _wallaby.create_drive_direct(*args) create_drive_direct = _wallaby.create_drive_direct def create_spin_block(*args): return _wallaby.create_spin_block(*args) create_spin_block = _wallaby.create_spin_block def _create_get_raw_encoders(*args): return _wallaby._create_get_raw_encoders(*args) _create_get_raw_encoders = _wallaby._create_get_raw_encoders def create_advance_led(*args): return _wallaby.create_advance_led(*args) create_advance_led = _wallaby.create_advance_led def create_play_led(*args): return _wallaby.create_play_led(*args) create_play_led = _wallaby.create_play_led def create_power_led(*args): return _wallaby.create_power_led(*args) create_power_led = _wallaby.create_power_led def create_digital_output(*args): return _wallaby.create_digital_output(*args) create_digital_output = _wallaby.create_digital_output def create_pwm_low_side_drivers(*args): return _wallaby.create_pwm_low_side_drivers(*args) create_pwm_low_side_drivers = _wallaby.create_pwm_low_side_drivers def create_low_side_drivers(*args): return _wallaby.create_low_side_drivers(*args) create_low_side_drivers = _wallaby.create_low_side_drivers def create_load_song(*args): return _wallaby.create_load_song(*args) create_load_song = _wallaby.create_load_song def create_play_song(*args): return _wallaby.create_play_song(*args) create_play_song = _wallaby.create_play_song def create_read_block(*args): return _wallaby.create_read_block(*args) create_read_block = _wallaby.create_read_block def create_write_byte(*args): return _wallaby.create_write_byte(*args) create_write_byte = _wallaby.create_write_byte def create_clear_serial_buffer(): return _wallaby.create_clear_serial_buffer() create_clear_serial_buffer = _wallaby.create_clear_serial_buffer Baud57600 = _wallaby.Baud57600 Baud115200 = _wallaby.Baud115200 def get_create_baud_rate(): return _wallaby.get_create_baud_rate() get_create_baud_rate = _wallaby.get_create_baud_rate def set_create_baud_rate(*args): return _wallaby.set_create_baud_rate(*args) set_create_baud_rate = _wallaby.set_create_baud_rate def battery_charging(): return _wallaby.battery_charging() battery_charging = _wallaby.battery_charging def power_level(): return _wallaby.power_level() power_level = _wallaby.power_level def power_level_nimh(): return _wallaby.power_level_nimh() power_level_nimh = _wallaby.power_level_nimh def power_level_lipo(): return _wallaby.power_level_lipo() power_level_lipo = _wallaby.power_level_lipo def power_level_life(): return _wallaby.power_level_life() power_level_life = _wallaby.power_level_life def analog(*args): return _wallaby.analog(*args) analog = _wallaby.analog def analog8(*args): return _wallaby.analog8(*args) analog8 = _wallaby.analog8 def analog10(*args): return _wallaby.analog10(*args) analog10 = _wallaby.analog10 def analog12(*args): return _wallaby.analog12(*args) analog12 = _wallaby.analog12 def analog_et(*args): return _wallaby.analog_et(*args) analog_et = _wallaby.analog_et def set_analog_pullup(*args): return _wallaby.set_analog_pullup(*args) set_analog_pullup = _wallaby.set_analog_pullup def get_analog_pullup(*args): return _wallaby.get_analog_pullup(*args) get_analog_pullup = _wallaby.get_analog_pullup def set_auto_publish(*args): return _wallaby.set_auto_publish(*args) set_auto_publish = _wallaby.set_auto_publish def publish(): return _wallaby.publish() publish = _wallaby.publish def halt(): return _wallaby.halt() halt = _wallaby.halt def freeze_halt(): return _wallaby.freeze_halt() freeze_halt = _wallaby.freeze_halt def accel_x(): return _wallaby.accel_x() accel_x = _wallaby.accel_x def accel_y(): return _wallaby.accel_y() accel_y = _wallaby.accel_y def accel_z(): return _wallaby.accel_z() accel_z = _wallaby.accel_z def accel_calibrate(): return _wallaby.accel_calibrate() accel_calibrate = _wallaby.accel_calibrate def calibrate_compass(): return _wallaby.calibrate_compass() calibrate_compass = _wallaby.calibrate_compass def set_compass_params(*args): return _wallaby.set_compass_params(*args) set_compass_params = _wallaby.set_compass_params def get_compass_angle(): return _wallaby.get_compass_angle() get_compass_angle = _wallaby.get_compass_angle def gyro_x(): return _wallaby.gyro_x() gyro_x = _wallaby.gyro_x def gyro_y(): return _wallaby.gyro_y() gyro_y = _wallaby.gyro_y def gyro_z(): return _wallaby.gyro_z() gyro_z = _wallaby.gyro_z def gyro_calibrate(): return _wallaby.gyro_calibrate() gyro_calibrate = _wallaby.gyro_calibrate def magneto_x(): return _wallaby.magneto_x() magneto_x = _wallaby.magneto_x def magneto_y(): return _wallaby.magneto_y() magneto_y = _wallaby.magneto_y def magneto_z(): return _wallaby.magneto_z() magneto_z = _wallaby.magneto_z def magneto_calibrate(): return _wallaby.magneto_calibrate() magneto_calibrate = _wallaby.magneto_calibrate class pixel(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, pixel, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pixel, name) __repr__ = _swig_repr __swig_setmethods__["r"] = _wallaby.pixel_r_set __swig_getmethods__["r"] = _wallaby.pixel_r_get if _newclass:r = _swig_property(_wallaby.pixel_r_get, _wallaby.pixel_r_set) __swig_setmethods__["g"] = _wallaby.pixel_g_set __swig_getmethods__["g"] = _wallaby.pixel_g_get if _newclass:g = _swig_property(_wallaby.pixel_g_get, _wallaby.pixel_g_set) __swig_setmethods__["b"] = _wallaby.pixel_b_set __swig_getmethods__["b"] = _wallaby.pixel_b_get if _newclass:b = _swig_property(_wallaby.pixel_b_get, _wallaby.pixel_b_set) def __init__(self): this = _wallaby.new_pixel() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_pixel __del__ = lambda self : None; pixel_swigregister = _wallaby.pixel_swigregister pixel_swigregister(pixel) LOW_RES = _wallaby.LOW_RES MED_RES = _wallaby.MED_RES HIGH_RES = _wallaby.HIGH_RES NATIVE_RES = _wallaby.NATIVE_RES WHITE_2016 = _wallaby.WHITE_2016 BLACK_2017 = _wallaby.BLACK_2017 def camera_open(): return _wallaby.camera_open() camera_open = _wallaby.camera_open def camera_open_black(): return _wallaby.camera_open_black() camera_open_black = _wallaby.camera_open_black def camera_open_at_res(*args): return _wallaby.camera_open_at_res(*args) camera_open_at_res = _wallaby.camera_open_at_res def camera_open_device(*args): return _wallaby.camera_open_device(*args) camera_open_device = _wallaby.camera_open_device def camera_open_device_model_at_res(*args): return _wallaby.camera_open_device_model_at_res(*args) camera_open_device_model_at_res = _wallaby.camera_open_device_model_at_res def camera_load_config(*args): return _wallaby.camera_load_config(*args) camera_load_config = _wallaby.camera_load_config def set_camera_width(*args): return _wallaby.set_camera_width(*args) set_camera_width = _wallaby.set_camera_width def set_camera_height(*args): return _wallaby.set_camera_height(*args) set_camera_height = _wallaby.set_camera_height def get_camera_width(): return _wallaby.get_camera_width() get_camera_width = _wallaby.get_camera_width def get_camera_height(): return _wallaby.get_camera_height() get_camera_height = _wallaby.get_camera_height def camera_update(): return _wallaby.camera_update() camera_update = _wallaby.camera_update def get_camera_pixel(*args): return _wallaby.get_camera_pixel(*args) get_camera_pixel = _wallaby.get_camera_pixel def get_channel_count(): return _wallaby.get_channel_count() get_channel_count = _wallaby.get_channel_count def get_object_count(*args): return _wallaby.get_object_count(*args) get_object_count = _wallaby.get_object_count def get_object_data(*args): return _wallaby.get_object_data(*args) get_object_data = _wallaby.get_object_data def get_code_num(*args): return _wallaby.get_code_num(*args) get_code_num = _wallaby.get_code_num def get_object_data_length(*args): return _wallaby.get_object_data_length(*args) get_object_data_length = _wallaby.get_object_data_length def get_object_confidence(*args): return _wallaby.get_object_confidence(*args) get_object_confidence = _wallaby.get_object_confidence def get_object_area(*args): return _wallaby.get_object_area(*args) get_object_area = _wallaby.get_object_area def get_object_bbox(*args): return _wallaby.get_object_bbox(*args) get_object_bbox = _wallaby.get_object_bbox def get_object_bbox_ulx(*args): return _wallaby.get_object_bbox_ulx(*args) get_object_bbox_ulx = _wallaby.get_object_bbox_ulx def get_object_bbox_uly(*args): return _wallaby.get_object_bbox_uly(*args) get_object_bbox_uly = _wallaby.get_object_bbox_uly def get_object_bbox_brx(*args): return _wallaby.get_object_bbox_brx(*args) get_object_bbox_brx = _wallaby.get_object_bbox_brx def get_object_bbox_bry(*args): return _wallaby.get_object_bbox_bry(*args) get_object_bbox_bry = _wallaby.get_object_bbox_bry def get_object_bbox_width(*args): return _wallaby.get_object_bbox_width(*args) get_object_bbox_width = _wallaby.get_object_bbox_width def get_object_bbox_height(*args): return _wallaby.get_object_bbox_height(*args) get_object_bbox_height = _wallaby.get_object_bbox_height def get_object_centroid(*args): return _wallaby.get_object_centroid(*args) get_object_centroid = _wallaby.get_object_centroid def get_object_centroid_column(*args): return _wallaby.get_object_centroid_column(*args) get_object_centroid_column = _wallaby.get_object_centroid_column def get_object_centroid_x(*args): return _wallaby.get_object_centroid_x(*args) get_object_centroid_x = _wallaby.get_object_centroid_x def get_object_centroid_row(*args): return _wallaby.get_object_centroid_row(*args) get_object_centroid_row = _wallaby.get_object_centroid_row def get_object_centroid_y(*args): return _wallaby.get_object_centroid_y(*args) get_object_centroid_y = _wallaby.get_object_centroid_y def get_object_center(*args): return _wallaby.get_object_center(*args) get_object_center = _wallaby.get_object_center def get_object_center_column(*args): return _wallaby.get_object_center_column(*args) get_object_center_column = _wallaby.get_object_center_column def get_object_center_x(*args): return _wallaby.get_object_center_x(*args) get_object_center_x = _wallaby.get_object_center_x def get_object_center_row(*args): return _wallaby.get_object_center_row(*args) get_object_center_row = _wallaby.get_object_center_row def get_object_center_y(*args): return _wallaby.get_object_center_y(*args) get_object_center_y = _wallaby.get_object_center_y def camera_close(): return _wallaby.camera_close() camera_close = _wallaby.camera_close def set_camera_config_base_path(*args): return _wallaby.set_camera_config_base_path(*args) set_camera_config_base_path = _wallaby.set_camera_config_base_path def get_camera_frame_row(*args): return _wallaby.get_camera_frame_row(*args) get_camera_frame_row = _wallaby.get_camera_frame_row def get_camera_frame(): return _wallaby.get_camera_frame() get_camera_frame = _wallaby.get_camera_frame def get_camera_element_size(): return _wallaby.get_camera_element_size() get_camera_element_size = _wallaby.get_camera_element_size def set_a_button_text(*args): return _wallaby.set_a_button_text(*args) set_a_button_text = _wallaby.set_a_button_text def set_b_button_text(*args): return _wallaby.set_b_button_text(*args) set_b_button_text = _wallaby.set_b_button_text def set_c_button_text(*args): return _wallaby.set_c_button_text(*args) set_c_button_text = _wallaby.set_c_button_text def set_x_button_text(*args): return _wallaby.set_x_button_text(*args) set_x_button_text = _wallaby.set_x_button_text def set_y_button_text(*args): return _wallaby.set_y_button_text(*args) set_y_button_text = _wallaby.set_y_button_text def set_z_button_text(*args): return _wallaby.set_z_button_text(*args) set_z_button_text = _wallaby.set_z_button_text def a_button(): return _wallaby.a_button() a_button = _wallaby.a_button def b_button(): return _wallaby.b_button() b_button = _wallaby.b_button def c_button(): return _wallaby.c_button() c_button = _wallaby.c_button def x_button(): return _wallaby.x_button() x_button = _wallaby.x_button def y_button(): return _wallaby.y_button() y_button = _wallaby.y_button def z_button(): return _wallaby.z_button() z_button = _wallaby.z_button def side_button(): return _wallaby.side_button() side_button = _wallaby.side_button def black_button(): return _wallaby.black_button() black_button = _wallaby.black_button def left_button(): return _wallaby.left_button() left_button = _wallaby.left_button def right_button(): return _wallaby.right_button() right_button = _wallaby.right_button def a_button_clicked(): return _wallaby.a_button_clicked() a_button_clicked = _wallaby.a_button_clicked def b_button_clicked(): return _wallaby.b_button_clicked() b_button_clicked = _wallaby.b_button_clicked def c_button_clicked(): return _wallaby.c_button_clicked() c_button_clicked = _wallaby.c_button_clicked def x_button_clicked(): return _wallaby.x_button_clicked() x_button_clicked = _wallaby.x_button_clicked def y_button_clicked(): return _wallaby.y_button_clicked() y_button_clicked = _wallaby.y_button_clicked def z_button_clicked(): return _wallaby.z_button_clicked() z_button_clicked = _wallaby.z_button_clicked def side_button_clicked(): return _wallaby.side_button_clicked() side_button_clicked = _wallaby.side_button_clicked def any_button(): return _wallaby.any_button() any_button = _wallaby.any_button def extra_buttons_show(): return _wallaby.extra_buttons_show() extra_buttons_show = _wallaby.extra_buttons_show def extra_buttons_hide(): return _wallaby.extra_buttons_hide() extra_buttons_hide = _wallaby.extra_buttons_hide def get_extra_buttons_visible(): return _wallaby.get_extra_buttons_visible() get_extra_buttons_visible = _wallaby.get_extra_buttons_visible def set_extra_buttons_visible(*args): return _wallaby.set_extra_buttons_visible(*args) set_extra_buttons_visible = _wallaby.set_extra_buttons_visible def shut_down_in(*args): return _wallaby.shut_down_in(*args) shut_down_in = _wallaby.shut_down_in def wait_for_light(*args): return _wallaby.wait_for_light(*args) wait_for_light = _wallaby.wait_for_light def console_clear(): return _wallaby.console_clear() console_clear = _wallaby.console_clear def beep(): return _wallaby.beep() beep = _wallaby.beep class mutex(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, mutex, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, mutex, name) __repr__ = _swig_repr __swig_setmethods__["data"] = _wallaby.mutex_data_set __swig_getmethods__["data"] = _wallaby.mutex_data_get if _newclass:data = _swig_property(_wallaby.mutex_data_get, _wallaby.mutex_data_set) def __init__(self): this = _wallaby.new_mutex() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_mutex __del__ = lambda self : None; mutex_swigregister = _wallaby.mutex_swigregister mutex_swigregister(mutex) class thread(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, thread, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, thread, name) __repr__ = _swig_repr __swig_setmethods__["data"] = _wallaby.thread_data_set __swig_getmethods__["data"] = _wallaby.thread_data_get if _newclass:data = _swig_property(_wallaby.thread_data_get, _wallaby.thread_data_set) def __init__(self): this = _wallaby.new_thread() try: self.this.append(this) except: self.this = this __swig_destroy__ = _wallaby.delete_thread __del__ = lambda self : None; thread_swigregister = _wallaby.thread_swigregister thread_swigregister(thread) def mutex_create(): return _wallaby.mutex_create() mutex_create = _wallaby.mutex_create def mutex_lock(*args): return _wallaby.mutex_lock(*args) mutex_lock = _wallaby.mutex_lock def mutex_trylock(*args): return _wallaby.mutex_trylock(*args) mutex_trylock = _wallaby.mutex_trylock def mutex_unlock(*args): return _wallaby.mutex_unlock(*args) mutex_unlock = _wallaby.mutex_unlock def mutex_destroy(*args): return _wallaby.mutex_destroy(*args) mutex_destroy = _wallaby.mutex_destroy def thread_create(*args): return _wallaby.thread_create(*args) thread_create = _wallaby.thread_create def thread_start(*args): return _wallaby.thread_start(*args) thread_start = _wallaby.thread_start def thread_wait(*args): return _wallaby.thread_wait(*args) thread_wait = _wallaby.thread_wait def thread_destroy(*args): return _wallaby.thread_destroy(*args) thread_destroy = _wallaby.thread_destroy def digital(*args): return _wallaby.digital(*args) digital = _wallaby.digital def set_digital_value(*args): return _wallaby.set_digital_value(*args) set_digital_value = _wallaby.set_digital_value def get_digital_value(*args): return _wallaby.get_digital_value(*args) get_digital_value = _wallaby.get_digital_value def set_digital_output(*args): return _wallaby.set_digital_output(*args) set_digital_output = _wallaby.set_digital_output def get_digital_output(*args): return _wallaby.get_digital_output(*args) get_digital_output = _wallaby.get_digital_output def get_digital_pullup(*args): return _wallaby.get_digital_pullup(*args) get_digital_pullup = _wallaby.get_digital_pullup def set_digital_pullup(*args): return _wallaby.set_digital_pullup(*args) set_digital_pullup = _wallaby.set_digital_pullup # This file is compatible with both classic and new-style classes.
35.752437
107
0.778079
9,463
73,364
5.397548
0.044066
0.094935
0.054251
0.022398
0.484308
0.345576
0.284903
0.263504
0.236936
0.220314
0
0.002307
0.131509
73,364
2,051
108
35.769868
0.799328
0.00548
0
0.178066
0
0
0.01644
0
0
0
0
0
0
1
0.245873
false
0.021226
0.005307
0.219929
0.614387
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
2bb80913e59ead10c845183c0a0f85a3b9652c94
128
py
Python
bridgekeeper/__init__.py
edly-io/bridgekeeper
ac2e57bb7716001e6816fc761315944311f8ea82
[ "MIT" ]
null
null
null
bridgekeeper/__init__.py
edly-io/bridgekeeper
ac2e57bb7716001e6816fc761315944311f8ea82
[ "MIT" ]
null
null
null
bridgekeeper/__init__.py
edly-io/bridgekeeper
ac2e57bb7716001e6816fc761315944311f8ea82
[ "MIT" ]
3
2021-03-19T10:01:06.000Z
2021-04-08T08:08:48.000Z
from .permission_map import PermissionMap default_app_config = 'bridgekeeper.apps.BridgekeeperConfig' perms = PermissionMap()
21.333333
59
0.835938
13
128
8
0.923077
0
0
0
0
0
0
0
0
0
0
0
0.09375
128
5
60
25.6
0.896552
0
0
0
0
0
0.28125
0.28125
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
2bec12d574b5d559de985da88e54eef05c85204d
633
py
Python
basic-calculator-ii/basic-calculator-ii.py
Dongfang1021/Leetcode
4ecdad3279300720e92eeac683962ebc52c98a12
[ "MIT" ]
1
2021-06-05T06:26:32.000Z
2021-06-05T06:26:32.000Z
basic-calculator-ii/basic-calculator-ii.py
Dongfang1021/Leetcode
4ecdad3279300720e92eeac683962ebc52c98a12
[ "MIT" ]
null
null
null
basic-calculator-ii/basic-calculator-ii.py
Dongfang1021/Leetcode
4ecdad3279300720e92eeac683962ebc52c98a12
[ "MIT" ]
null
null
null
class Solution: def calculate(self, s: str) -> int: inner, outer, result, opt = 0, 0, 0, '+' for c in s+'+': if c == ' ': continue if c.isdigit(): inner = 10*inner + int(c) continue if opt == '+': result += outer outer = inner elif opt == '-': result += outer outer = -inner elif opt == '*': outer = outer*inner elif opt == '/': outer = int(outer/inner) inner, opt = 0, c return result + outer
31.65
48
0.375987
61
633
3.901639
0.360656
0.168067
0.189076
0.239496
0.361345
0.361345
0.247899
0
0
0
0
0.018987
0.50079
633
20
49
31.65
0.734177
0
0
0.1
0
0
0.011041
0
0
0
0
0
0
1
0.05
false
0
0
0
0.15
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
1
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
3
2bf3d1929d66e669db35bc3af0f14a7b80758620
225
py
Python
g2p/evaluation/evaluate.py
kumatheworld/g2p
7f85ca1b7829c2129a38328db03fb3fe7ad84d5c
[ "MIT" ]
null
null
null
g2p/evaluation/evaluate.py
kumatheworld/g2p
7f85ca1b7829c2129a38328db03fb3fe7ad84d5c
[ "MIT" ]
null
null
null
g2p/evaluation/evaluate.py
kumatheworld/g2p
7f85ca1b7829c2129a38328db03fb3fe7ad84d5c
[ "MIT" ]
null
null
null
import numpy as np from g2p.data import DoubleBets def mean_score(eval_func, pred, label_seq): return np.mean([ eval_func(p, DoubleBets.arpabet.unwrap_iseq(l)) for p, l in zip(pred, label_seq.t()) ])
25
55
0.675556
37
225
3.945946
0.702703
0.109589
0.164384
0
0
0
0
0
0
0
0
0.00565
0.213333
225
8
56
28.125
0.819209
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0.142857
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
3
2bf5dc991a157d63f82fd54dda3da72c2b90cf85
676
py
Python
spark/spark_streaming/src/com/example/handler/kafka.py
jonathansantoscunha/data_engineering
f45c6238b27aca70f3ae25d8a377c790e656d5eb
[ "MIT" ]
null
null
null
spark/spark_streaming/src/com/example/handler/kafka.py
jonathansantoscunha/data_engineering
f45c6238b27aca70f3ae25d8a377c790e656d5eb
[ "MIT" ]
null
null
null
spark/spark_streaming/src/com/example/handler/kafka.py
jonathansantoscunha/data_engineering
f45c6238b27aca70f3ae25d8a377c790e656d5eb
[ "MIT" ]
null
null
null
from pyspark.streaming.kafka import KafkaUtils, KafkaDStream from com.example.settings.settings import Settings class KafkaConsumer: @staticmethod def get_consumer_properties(): return { "metadata.broker.list": Settings.kafka["consumer"]["brokers"] } @staticmethod def get_topics(): return Settings.kafka["consumer"]["topics"] @staticmethod def get_stream(ssc): return KafkaUtils.createDirectStream(ssc, KafkaConsumer.get_topics(), KafkaConsumer.get_consumer_properties()) @staticmethod def get_records(kstream: KafkaDStream): map_values_fn = lambda kv: (kv[1]) return kstream.map(map_values_fn, preservesPartitioning=True)
27.04
114
0.754438
75
676
6.64
0.48
0.120482
0.144578
0
0
0
0
0
0
0
0
0.001721
0.140533
676
24
115
28.166667
0.855422
0
0
0.222222
0
0
0.072485
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.166667
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
2bfd688dddce8b72f99dcb23688d845ba6aa77f7
347
py
Python
tests/grooves/test_circular_oval.py
pyroll-project/pyroll-core
f59094d58c2f7493ddc6345b3afc4700ca259681
[ "BSD-3-Clause" ]
null
null
null
tests/grooves/test_circular_oval.py
pyroll-project/pyroll-core
f59094d58c2f7493ddc6345b3afc4700ca259681
[ "BSD-3-Clause" ]
null
null
null
tests/grooves/test_circular_oval.py
pyroll-project/pyroll-core
f59094d58c2f7493ddc6345b3afc4700ca259681
[ "BSD-3-Clause" ]
null
null
null
from numpy import pi, isclose from pyroll.core import CircularOvalGroove def test_circular_oval(): g = CircularOvalGroove(depth=5.05, r1=7, r2=33) assert isclose(g.usable_width, 17.63799973 * 2) assert isclose(g.alpha1, 29.102618 / 180 * pi) assert isclose(g.alpha2, 29.102618 / 180 * pi) assert isclose(g.z1, 19.45501221)
26.692308
51
0.708934
53
347
4.584906
0.641509
0.213992
0.230453
0.106996
0.222222
0.222222
0.222222
0
0
0
0
0.189474
0.178674
347
12
52
28.916667
0.663158
0
0
0
0
0
0
0
0
0
0
0
0.5
1
0.125
false
0
0.25
0
0.375
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
1
0
0
0
0
0
0
0
0
0
3
a62d3065ac98529d8598a58fbf5c055e012eb16a
224
py
Python
jiracmd/cli/__init__.py
rfsantanna/jiracmd
0fe654c7d8599fb1e1d42f93e3d5cfcbf51e1150
[ "Apache-2.0" ]
null
null
null
jiracmd/cli/__init__.py
rfsantanna/jiracmd
0fe654c7d8599fb1e1d42f93e3d5cfcbf51e1150
[ "Apache-2.0" ]
null
null
null
jiracmd/cli/__init__.py
rfsantanna/jiracmd
0fe654c7d8599fb1e1d42f93e3d5cfcbf51e1150
[ "Apache-2.0" ]
null
null
null
import os import click from jiracmd.cli.worklog import worklog_cli from jiracmd.cli.issue import issue_cli @click.group() @click.version_option() def cli(): pass cli.add_command(worklog_cli) cli.add_command(issue_cli)
17.230769
43
0.794643
36
224
4.75
0.416667
0.128655
0.163743
0
0
0
0
0
0
0
0
0
0.111607
224
12
44
18.666667
0.859296
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
true
0.1
0.4
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
3
a64c545e1b1331dcdfe87370a372b47bfb0306d4
6,270
py
Python
pandarallel/dataframe.py
sagarkar10/pandarallel
48e14a3c9011e8a19440abe0a49192982d485b8e
[ "BSD-3-Clause" ]
null
null
null
pandarallel/dataframe.py
sagarkar10/pandarallel
48e14a3c9011e8a19440abe0a49192982d485b8e
[ "BSD-3-Clause" ]
null
null
null
pandarallel/dataframe.py
sagarkar10/pandarallel
48e14a3c9011e8a19440abe0a49192982d485b8e
[ "BSD-3-Clause" ]
null
null
null
from time import time from ctypes import c_double, c_uint64 from multiprocessing import Manager import pyarrow.plasma as plasma import pandas as pd from pathos.multiprocessing import ProcessingPool from .utils import (parallel, chunk, ProgressBarsConsole, ProgressBarsNotebookLab) REFRESH_PROGRESS_TIME = 0.25 # s class DataFrame: @staticmethod def worker_apply(worker_args): (plasma_store_name, object_id, axis_chunk, func, progress_bar, queue, index, args, kwargs) = worker_args client = plasma.connect(plasma_store_name) df = client.get(object_id) counter = c_uint64(0) last_push_time = c_double(time()) def with_progress(func): def decorator(*args, **kwargs): counter.value += 1 cur_time = time() if cur_time - last_push_time.value >= REFRESH_PROGRESS_TIME: queue.put_nowait((index, counter.value, False)) last_push_time.value = cur_time return func(*args, **kwargs) return decorator axis = kwargs.get("axis", 0) func_to_apply = with_progress(func) if progress_bar else func if axis == 1: res = df[axis_chunk].apply(func_to_apply, *args, **kwargs) else: chunk = slice(0, df.shape[0]), df.columns[axis_chunk] res = df.loc[chunk].apply(func_to_apply, *args, **kwargs) if progress_bar: queue.put((index, counter.value, True)) return client.put(res) @staticmethod def apply(plasma_store_name, nb_workers, plasma_client, display_progress_bar, in_notebook_lab): @parallel(plasma_client) def closure(df, func, *args, **kwargs): pool = ProcessingPool(nb_workers) manager = Manager() queue = manager.Queue() ProgressBars = (ProgressBarsNotebookLab if in_notebook_lab else ProgressBarsConsole) axis = kwargs.get("axis", 0) if axis == 'index': axis = 0 elif axis == 'columns': axis = 1 opposite_axis = 1 - axis chunks = chunk(df.shape[opposite_axis], nb_workers) maxs = [chunk.stop - chunk.start for chunk in chunks] values = [0] * nb_workers finished = [False] * nb_workers if display_progress_bar: progress_bar = ProgressBars(maxs) object_id = plasma_client.put(df) workers_args = [(plasma_store_name, object_id, chunk, func, display_progress_bar, queue, index, args, kwargs) for index, chunk in enumerate(chunks)] result_workers = pool.amap(DataFrame.worker_apply, workers_args) if display_progress_bar: while not all(finished): for _ in range(finished.count(False)): index, value, status = queue.get() values[index] = value finished[index] = status progress_bar.update(values) result = pd.concat([ plasma_client.get(result_worker) for result_worker in result_workers.get() ], copy=False) return result return closure @staticmethod def worker_applymap(worker_args): (plasma_store_name, object_id, axis_chunk, func, progress_bar, queue, index) = worker_args client = plasma.connect(plasma_store_name) df = client.get(object_id) nb_columns_1 = df.shape[1] + 1 counter = c_uint64(0) last_push_time = c_double(time()) def with_progress(func): def decorator(arg): counter.value += 1 cur_time = time() if(cur_time - last_push_time.value >= REFRESH_PROGRESS_TIME): if(counter.value % nb_columns_1 == 0): queue.put_nowait((index, counter.value // nb_columns_1, False)) last_push_time.value = cur_time return func(arg) return decorator func_to_apply = with_progress(func) if progress_bar else func res = df[axis_chunk].applymap(func_to_apply) if progress_bar: row_counter = counter.value // nb_columns_1 queue.put((index, row_counter, True)) return client.put(res) @staticmethod def applymap(plasma_store_name, nb_workers, plasma_client, display_progress_bar, in_notebook_lab): @parallel(plasma_client) def closure(df, func): pool = ProcessingPool(nb_workers) manager = Manager() queue = manager.Queue() ProgressBars = (ProgressBarsNotebookLab if in_notebook_lab else ProgressBarsConsole) chunks = chunk(df.shape[0], nb_workers) maxs = [chunk.stop - chunk.start for chunk in chunks] values = [0] * nb_workers finished = [False] * nb_workers if display_progress_bar: progress_bar = ProgressBars(maxs) object_id = plasma_client.put(df) worker_args = [(plasma_store_name, object_id, chunk, func, display_progress_bar, queue, index) for index, chunk in enumerate(chunks)] result_workers = pool.amap(DataFrame.worker_applymap, worker_args) if display_progress_bar: while not all(finished): for _ in range(finished.count(False)): index, value, status = queue.get() values[index] = value finished[index] = status progress_bar.update(values) result = pd.concat([ plasma_client.get(result_worker) for result_worker in result_workers.get() ], copy=False) return result return closure
33
78
0.558054
669
6,270
4.989537
0.150972
0.059317
0.03595
0.022768
0.775914
0.748951
0.724386
0.681845
0.681845
0.658478
0
0.007754
0.36236
6,270
189
79
33.174603
0.827164
0.000159
0
0.608696
0
0
0.003191
0
0
0
0
0
0
1
0.072464
false
0
0.050725
0
0.202899
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
a64eb4b6e954b250e7b4c1095e379e40909c688b
53
py
Python
ArkDiscordBot/__init__.py
Jackybeat/ArkDiscordBot
f902d024e6f90540e2d15dc3d1b3f220998ea182
[ "MIT" ]
1
2018-08-20T14:11:39.000Z
2018-08-20T14:11:39.000Z
ArkDiscordBot/__init__.py
Jackybeat/ArkDiscordBot
f902d024e6f90540e2d15dc3d1b3f220998ea182
[ "MIT" ]
1
2018-03-17T19:00:55.000Z
2018-06-03T14:38:45.000Z
ArkDiscordBot/__init__.py
Jackybeat/ArkDiscordBot
f902d024e6f90540e2d15dc3d1b3f220998ea182
[ "MIT" ]
1
2018-08-20T14:11:46.000Z
2018-08-20T14:11:46.000Z
default_app_config = 'ArkDiscordBot.apps.MyAppConfig'
53
53
0.867925
6
53
7.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.037736
53
1
53
53
0.862745
0
0
0
0
0
0.555556
0.555556
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
a65ea9139d71a0a8c8f82b4fb5f317b063bc3022
511
py
Python
fms/__init__.py
namtranhoai/lamdong
6027367fd27caccabc275bd56f871f08aecd7a6e
[ "BSD-3-Clause" ]
null
null
null
fms/__init__.py
namtranhoai/lamdong
6027367fd27caccabc275bd56f871f08aecd7a6e
[ "BSD-3-Clause" ]
4
2021-03-18T20:49:57.000Z
2022-03-11T23:26:45.000Z
fms/__init__.py
namtranhoai/lamdong
6027367fd27caccabc275bd56f871f08aecd7a6e
[ "BSD-3-Clause" ]
1
2018-08-20T08:12:58.000Z
2018-08-20T08:12:58.000Z
import os from flask_sqlalchemy import SQLAlchemy from flask import Flask _basedir = os.path.abspath(os.path.dirname(__file__)) app = Flask(__name__) app.config.from_object('fms.settings.local') from fms.apps.core.views import main_blueprint app.register_blueprint(main_blueprint) from fms.apps.users.views import user_blueprint app.register_blueprint(user_blueprint, url_prefix="/api/v1") from fms.apps.reports.views import report_blueprint app.register_blueprint(report_blueprint, url_prefix="/api/v1")
26.894737
62
0.823875
76
511
5.25
0.407895
0.052632
0.082707
0.218045
0.115288
0
0
0
0
0
0
0.004246
0.078278
511
18
63
28.388889
0.842887
0
0
0
0
0
0.062745
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.5
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
1
0
3
a6605dce95e16b49e3df125dba5e365441c86a2c
654
py
Python
config.py
jaehobang/cs7643_project
7ec3d1934fc462ba230bd0615c939e7de00dc10c
[ "Apache-2.0" ]
null
null
null
config.py
jaehobang/cs7643_project
7ec3d1934fc462ba230bd0615c939e7de00dc10c
[ "Apache-2.0" ]
null
null
null
config.py
jaehobang/cs7643_project
7ec3d1934fc462ba230bd0615c939e7de00dc10c
[ "Apache-2.0" ]
null
null
null
import os import torch eva_dir = os.path.dirname(os.path.abspath(__file__)) device_number = 0 # main gpu train_device = torch.device('cuda:0') eval_device = train_device """ >>>>>>> 67e8b0c4ba11976cd937d930ad7b49e20cabbf8c if torch.cuda.device_count() > 1: train_device = torch.device('cuda:0') eval_device = torch.device('cuda:1') elif torch.cuda.device_count() == 1: train_device = torch.device('cuda:0') eval_device = train_device else: train_device = torch.device('cpu') eval_device = torch.device('cpu') <<<<<<< HEAD """ #device = torch.cuda.device(device_number) if torch.cuda.is_available() else torch.device('cpu')
23.357143
96
0.706422
90
654
4.911111
0.3
0.174208
0.230769
0.199095
0.395928
0.395928
0.395928
0.395928
0.395928
0.395928
0
0.051418
0.137615
654
27
97
24.222222
0.73227
0.157492
0
0
0
0
0.035928
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
0
3
a665cb8e342f033bbace455ef2d7eb83d80eaf37
443
py
Python
backend/stock/migrations/0029_auto_20210310_0249.py
fengxia41103/stock
1bba08f77e9038ebdd3905fe734bb51e5fb1bdf1
[ "MIT" ]
1
2021-09-30T05:25:08.000Z
2021-09-30T05:25:08.000Z
backend/stock/migrations/0029_auto_20210310_0249.py
fengxia41103/stock
1bba08f77e9038ebdd3905fe734bb51e5fb1bdf1
[ "MIT" ]
8
2021-09-30T05:27:09.000Z
2021-12-03T23:02:24.000Z
backend/stock/migrations/0029_auto_20210310_0249.py
fengxia41103/stock
1bba08f77e9038ebdd3905fe734bb51e5fb1bdf1
[ "MIT" ]
3
2021-09-29T05:11:45.000Z
2021-10-31T07:26:31.000Z
# Generated by Django 3.1.7 on 2021-03-10 02:49 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('stock', '0028_balancesheet_share_issued'), ] operations = [ migrations.RemoveField( model_name='mysector', name='code', ), migrations.RemoveField( model_name='mysector', name='description', ), ]
20.136364
52
0.571106
42
443
5.904762
0.738095
0.169355
0.209677
0.241935
0.33871
0.33871
0
0
0
0
0
0.062914
0.318284
443
21
53
21.095238
0.758278
0.10158
0
0.4
1
0
0.166667
0.075758
0
0
0
0
0
1
0
false
0
0.066667
0
0.266667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
a6672ebda83d745db6842d373dcd12e428405c2c
459
py
Python
Python/oddgnome.py
JaredLGillespie/OpenKattis
71d26883cb5b8a4a1d63a072587de5575d7c29af
[ "MIT" ]
null
null
null
Python/oddgnome.py
JaredLGillespie/OpenKattis
71d26883cb5b8a4a1d63a072587de5575d7c29af
[ "MIT" ]
null
null
null
Python/oddgnome.py
JaredLGillespie/OpenKattis
71d26883cb5b8a4a1d63a072587de5575d7c29af
[ "MIT" ]
null
null
null
# https://open.kattis.com/problems/oddgnome n = int(input()) for _ in range(n): gnomes = list(map(int, input().split()))[1:] for i in range(1, len(gnomes) - 1): if gnomes[i + 1] > gnomes[i - 1]: if gnomes[i] < gnomes[i - 1] and gnomes[i] < gnomes[i + 1]: print(i + 1) break if gnomes[i] > gnomes[i - 1] and gnomes[i] > gnomes[i + 1]: print(i + 1) break
30.6
71
0.470588
67
459
3.208955
0.343284
0.325581
0.223256
0.260465
0.437209
0.437209
0.437209
0.437209
0.437209
0.437209
0
0.037543
0.361656
459
14
72
32.785714
0.696246
0.089325
0
0.363636
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.181818
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
0
0
0
3
a66f9013277d183a24351e724441cca520ae1078
1,240
py
Python
format-ci/display.py
nabijaczleweli/format-ci
779ff474d1f99dfd9997096ef6bf7ac98618c5e3
[ "MIT" ]
null
null
null
format-ci/display.py
nabijaczleweli/format-ci
779ff474d1f99dfd9997096ef6bf7ac98618c5e3
[ "MIT" ]
1
2016-03-19T21:28:08.000Z
2016-03-22T21:43:49.000Z
format-ci/display.py
nabijaczleweli/format-ci
779ff474d1f99dfd9997096ef6bf7ac98618c5e3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from flask import render_template import os import data def cook_projects_html(projects): return "".join(map(lambda pr: render_template("repo_box.html", repo_owner=pr[0], repo_name=pr[1], repo_passed=pr[2], repo_job_amount=pr[3], last_job_id=eval(pr[4])[-1]), projects)) def cook_job_log(job): if job is not None: return "<pre>" + job[0].replace("<", "&lt;").replace(">", "&gt;") + "</pre>" else: return "" def cook_repo(repo): return "".join(map(lambda id: _cook_job_in_repo(data.job(id), repo[0], repo[1]), reversed(eval(repo[2])))) def cook_user(repos): return "".join(map(lambda repo: _cook_repo_in_user(repo), repos)) def payload_url(): return os.getenv("PAYLOAD_URL") or os.getenv("OWN_URL") + "/github_callback" def _cook_job_in_repo(job, repo_owner, repo_name): return render_template("job_box.html", job_id=job[0], job_passed=job[1], job_commit_hash=job[5], repo_owner=repo_owner, repo_name=repo_name) def _cook_repo_in_user(repo): job_ids = eval(repo[3]) return render_template("user_repo_box.html", repo_owner=repo[0], repo_name=repo[1], repo_passed=repo[2], repo_job_amount=len(job_ids), last_job_id=job_ids[-1])
33.513514
141
0.684677
206
1,240
3.825243
0.291262
0.053299
0.06599
0.072335
0.096447
0
0
0
0
0
0
0.017958
0.146774
1,240
36
142
34.444444
0.726843
0.01371
0
0
0
0
0.080196
0
0
0
0
0
0
1
0.304348
false
0.130435
0.130435
0.217391
0.782609
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
0
0
0
3
a6988eceead95cd142b7950ef3cda7ccee9c2d6d
347
py
Python
pyDSlib/ML/NeuralNet/__init__.py
jlnerd/JLpy_Utilities
486fb0ae379d079596d290ba9fc65c9be4d44785
[ "MIT" ]
null
null
null
pyDSlib/ML/NeuralNet/__init__.py
jlnerd/JLpy_Utilities
486fb0ae379d079596d290ba9fc65c9be4d44785
[ "MIT" ]
null
null
null
pyDSlib/ML/NeuralNet/__init__.py
jlnerd/JLpy_Utilities
486fb0ae379d079596d290ba9fc65c9be4d44785
[ "MIT" ]
null
null
null
""" sub-modules/functions/classes for streamlining common neural-net architectures implemented in tensorflow/keras. """ from . import Conv2D from . import Conv2D_AutoEncoder from . import plot from . import DenseNet from . import utils from . import Bert from . import RCNN from ._search import GridSearchCV from ._search import cross_val_score
23.133333
111
0.798271
46
347
5.913043
0.608696
0.257353
0.117647
0
0
0
0
0
0
0
0
0.006711
0.14121
347
14
112
24.785714
0.90604
0.319885
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
a6a8a214d223738805183ebe46e71d44e2a60c7c
3,830
py
Python
tests/test_VcfFilter_GATK.py
igsr/igsr_analysis
4d9055c3bf4d08e6d089cd7470752fabad264e02
[ "Apache-2.0" ]
3
2018-04-20T15:04:34.000Z
2022-03-30T06:36:02.000Z
tests/test_VcfFilter_GATK.py
igsr/igsr_analysis
4d9055c3bf4d08e6d089cd7470752fabad264e02
[ "Apache-2.0" ]
7
2019-06-06T09:22:20.000Z
2021-11-23T17:41:52.000Z
tests/test_VcfFilter_GATK.py
igsr/igsr_analysis
4d9055c3bf4d08e6d089cd7470752fabad264e02
[ "Apache-2.0" ]
5
2017-11-02T11:17:35.000Z
2021-12-11T19:34:09.000Z
import os import glob import time import pytest from VCF.VCFfilter.GATK import GATK # test_VcfFilter_GATK.py @pytest.fixture def vcf_object(datadir, gatk_folder): """Returns a GATK object""" vcf_file = "{0}/test.vcf.gz".format(datadir) reference = "{0}/exampleFASTA.fasta".format(datadir) vcf_object = GATK(vcf=vcf_file, gatk_folder=gatk_folder, reference=reference) return vcf_object def test_run_variantrecalibrator(vcf_object, datadir, clean_tmp): """ Test method to run VariantRecalibrator. This test throw an error because the paths specified in data/resources_snps.json are fictitious """ #create timestamp for log file: timestr = time.strftime("%Y%m%d_%H%M%S") with pytest.raises(Exception): vcf_object.run_variantrecalibrator(outprefix="{0}/outdir/test".format(datadir), resources="{0}/resources_snps.json".format(datadir), mode='SNP', verbose=True, log_file="{0}/outdir/gatk_variantrecalibrator_{0}.log".format(datadir). format(timestr)) def test_applyrecalibration(vcf_object, datadir, clean_tmp): """ Test method to run ApplyRecalibration. This test throw an error because the 'recal_file' and 'tranches_file' files are fictitious """ #create timestamp for log file: timestr = time.strftime("%Y%m%d_%H%M%S") with pytest.raises(Exception): vcf_object.run_applyrecalibration(mode='SNP', recal_file="{0}/test.recal".format(datadir), tranches_file="{0}/test.tranches".format(datadir), outprefix="{0}/outdir/test".format(datadir), verbose=True, log_file="{0}/outdir/gatk_applyrecalibration_{0}.log".format(datadir). format(timestr)) def test_applyrecalibration_uncompressed(vcf_object, datadir, clean_tmp): """ Test method to run ApplyRecalibration in order to generate an uncompressed VCF. This test throw an error because the 'recal_file' and 'tranches_file' files are fictitious """ with pytest.raises(Exception): vcf_object.run_applyrecalibration(mode='SNP', recal_file="{0}/test.recal".format(datadir), tranches_file="{0}/test.tranches".format(datadir), outprefix="{0}/outdir/test".format(datadir), compress=False, verbose=True) def test_applyrecalibration_tmpdir(datadir, gatk_folder, clean_tmp): """ Test method to run ApplyRecalibration by setting the tmp_dir for Java. This test throw an error because the 'recal_file' and 'tranches_file' files are fictitious """ vcf_file = "{0}/test.vcf.gz".format(datadir) reference = "{0}/exampleFASTA.fasta".format(datadir) vcf_object = GATK(vcf=vcf_file, gatk_folder=gatk_folder, reference=reference, tmp_dir="{0}/tmp".format(datadir)) with pytest.raises(Exception): vcf_object.run_applyrecalibration(mode='SNP', recal_file="{0}/test.recal".format(datadir), tranches_file="{0}/test.tranches".format(datadir), outprefix="{0}/outdir/test".format(datadir), compress=False, verbose=True)
42.555556
114
0.56188
398
3,830
5.251256
0.20603
0.111962
0.03445
0.03445
0.763636
0.763636
0.747847
0.686124
0.686124
0.614833
0
0.007896
0.338642
3,830
89
115
43.033708
0.817213
0.183812
0
0.54902
0
0
0.124918
0.049967
0
0
0
0
0
1
0.098039
false
0
0.098039
0
0.215686
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
a6b94eaf00298797d3920d386a17e559f34d6931
25
py
Python
mymongolib/__init__.py
furuiyang0715/mymongo
99e610e36e2264552548b69acfd9de6fdff2739c
[ "Apache-2.0" ]
null
null
null
mymongolib/__init__.py
furuiyang0715/mymongo
99e610e36e2264552548b69acfd9de6fdff2739c
[ "Apache-2.0" ]
null
null
null
mymongolib/__init__.py
furuiyang0715/mymongo
99e610e36e2264552548b69acfd9de6fdff2739c
[ "Apache-2.0" ]
null
null
null
__author__ = 'furuiyang'
12.5
24
0.76
2
25
7.5
1
0
0
0
0
0
0
0
0
0
0
0
0.12
25
1
25
25
0.681818
0
0
0
0
0
0.36
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
a6eaf401ea010e1fd45ca4499bbea0dfd75b862c
373
py
Python
platformen/__init__.py
koaben/helpradar
a61857beda5c1c397fbd8f890217ad92b57f1676
[ "MIT" ]
null
null
null
platformen/__init__.py
koaben/helpradar
a61857beda5c1c397fbd8f890217ad92b57f1676
[ "MIT" ]
null
null
null
platformen/__init__.py
koaben/helpradar
a61857beda5c1c397fbd8f890217ad92b57f1676
[ "MIT" ]
null
null
null
from .heldnodig import HeldNodig from .nlvoorelkaar import NLvoorElkaar from .wijamsterdam import WijAmsterdam from .mensendiewillenhelpen import MensenDieWillenHelpen from .zorgheldenauto import Zorgheldenauto from .puurpapendrecht import PuurPapendrecht from .coronahelpers import CoronaHelpers from .nijmegenoost import NijmegenOost from .database import Initiative, Db
37.3
56
0.873995
37
373
8.810811
0.351351
0
0
0
0
0
0
0
0
0
0
0
0.099196
373
9
57
41.444444
0.970238
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
a6fe755a00a5783914d3d4b3b4016d56c85b4400
250
py
Python
tests/test_stats.py
kennethleungty/StatsAssume
c22dece0d5f4632f03670f0219ec5e985c8c00b2
[ "MIT" ]
3
2022-03-09T17:17:21.000Z
2022-03-15T10:31:55.000Z
tests/test_stats.py
kennethleungty/StatsAssume
c22dece0d5f4632f03670f0219ec5e985c8c00b2
[ "MIT" ]
null
null
null
tests/test_stats.py
kennethleungty/StatsAssume
c22dece0d5f4632f03670f0219ec5e985c8c00b2
[ "MIT" ]
null
null
null
import os import sys sys.path.insert(0, os.path.abspath("..")) # from checkassume.datasets import load_data # def test_stat_breuschpagan(): # var1 = 1 # var2 = 2 # var3 = 3 # assert (var1 + var2) == var3 # def test_stat_durbin()
15.625
44
0.636
35
250
4.4
0.685714
0.090909
0.142857
0
0
0
0
0
0
0
0
0.051813
0.228
250
15
45
16.666667
0.746114
0.668
0
0
0
0
0.026667
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
4728855a79bfce10d36521e9b8f72ce6b856ff90
277
py
Python
Python/leetcode/FindMinimumInRotatedSortedArray.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
2
2015-12-02T06:44:01.000Z
2016-05-04T21:40:54.000Z
Python/leetcode/FindMinimumInRotatedSortedArray.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
null
null
null
Python/leetcode/FindMinimumInRotatedSortedArray.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
null
null
null
''' Created on 1.12.2016 @author: Darren '''''' Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). Find the minimum element. You may assume no duplicate exists in the array." '''
19.785714
76
0.635379
51
277
3.45098
0.784314
0.022727
0.034091
0.045455
0
0
0
0
0
0
0
0.10396
0.270758
277
13
77
21.307692
0.767327
0.895307
0
0.333333
0
0.166667
0.968037
0
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
47289bd6c744dd7fccc3402945aabbba4a9bbc35
22,462
py
Python
examples/test/generated/oss.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
1
2015-10-26T10:38:32.000Z
2015-10-26T10:38:32.000Z
examples/test/generated/oss.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
null
null
null
examples/test/generated/oss.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
null
null
null
from mongoengine import * classes=[] class oss_comment(Document): comment = StringField(required=True) time = IntField(required=True,help_text='epoch') author = IntField(required=True,help_text=' who created comment') author_name = StringField(required=True,help_text=' who created comment') id = IntField(required=True,help_text='Auto generated id @optional') classes.append(oss_comment) class oss_componenttype(Document): type = StringField(required=True) description = StringField(required=True) supportremarks = StringField(required=True) id = IntField(required=True,help_text='Auto generated id @optional') classes.append(oss_componenttype) class oss_sprint(Document): id = IntField(required=True) name = StringField(required=True) description = StringField(required=True) start = IntField(required=True,help_text='epoch') stop = IntField(required=True,help_text='epoch') organizations = ListField(StringField(), default=list,help_text='organizations involved with this sprint') organizations_names = StringField(required=True,help_text='comma separated list of names of orgs') acl = ListField(field=StringField(), default=list,help_text='dict where key is name of group; value is R/W/E (E=Execute)') comments = ListField(StringField(), default=list,help_text='reference to comments') classes.append(oss_sprint) class oss_ticket(Document): id = IntField(required=True) name = StringField(required=True) description = StringField(required=True) priority = IntField(required=True,help_text='level 0-4 (4 is most urgent)') project = StringField(required=True,help_text='link to project') project_name = StringField(required=True) type = StringField(required=True) parent = StringField(required=True) parent_name = StringField(required=True) depends = ListField(StringField(), default=list,help_text='this task depends on') depends_names = ListField(StringField(), default=list,) deadline = IntField(required=True,help_text='epoch of when task needs to be done') duplicate = ListField(StringField(), default=list,help_text='list of duplicates to this issue') duplicate_names = ListField(StringField(), default=list,) taskowner = StringField(required=True,help_text='owner of task (user)') taskowner_name = StringField(required=True,help_text='owner of task (user)') source = StringField(required=True,help_text='owner of task (user)') source_name = StringField(required=True,help_text='name of user where request came from (can be email, username, ...)') sprint = StringField(required=True) sprint_name = StringField(required=True) organization = StringField(required=True,help_text=' link to organization if any') organization_name = StringField(required=True) nextstepdate = IntField(required=True,help_text='date for next day to continue with this ticket') workflow = StringField(required=True,help_text='current active workflow') job_status = StringField(required=True,help_text='values are:') jobs = ListField(StringField(), default=list,help_text='link to workflows') time_created = IntField(required=True) time_lastmessage = IntField(required=True) time_lastresponse = IntField(required=True) time_closed = IntField(required=True) messages = ListField(StringField(), default=list,help_text=' reference to message') comments = ListField(StringField(), default=list,help_text='reference to comments') datasources = ListField(StringField(), default=list,help_text='source(s) where data comes from (reference)') acl = ListField(field=StringField(), default=list,help_text='dict where key is name of group; value is R/W/E (E=Execute)') params = StringField(required=True,help_text='json representation of dict which has all arguments required for this ticket') classes.append(oss_ticket) class oss_group(Document): id = IntField(required=True) name = StringField(required=True) addresses = ListField(StringField(), default=list,help_text='reference to addr') members = ListField(StringField(), default=list,help_text='users in group (based on ids)') members_name = ListField(StringField(), default=list,) comments = ListField(StringField(), default=list,help_text='reference to comments') contactmethods = ListField(StringField(), default=list,help_text='reference to contactmethods') datasources = ListField(StringField(), default=list,help_text='source(s) where data comes from (reference)') acl = ListField(field=StringField(), default=list,help_text='dict where key is name of group; value is R/W/E (E=Execute)') classes.append(oss_group) class oss_service(Document): id = IntField(required=True) name = StringField(required=True) organization = StringField(required=True,help_text='id of organization which owns the service if any') organization_name = StringField(required=True) label = StringField(required=True) parent = IntField(required=True) parent_name = StringField(required=True) description = StringField(required=True) type = StringField(required=True) serviceports = ListField(StringField(), default=list,) depends = ListField(StringField(), default=list,help_text=' link to other services (what does it need to work)') depends_names = ListField(StringField(), default=list,) machinehost = IntField(required=True,help_text='who is machine hosting this service') memory = IntField(required=True,help_text='in GB') ssdcapacity = IntField(required=True,help_text='in GB') hdcapacity = IntField(required=True,help_text='in GB') cpumhz = IntField(required=True,help_text='in mhz') nrcores = IntField(required=True) nrcpu = IntField(required=True) admin_name = StringField(required=True,help_text='name of admin e.g. admin or root') admin_passwd = StringField(required=True,help_text='encrypted root passwd') acl = ListField(field=StringField(), default=list,help_text='dict where key is name of group; value is R/W/E (E=Execute)') comments = ListField(StringField(), default=list,help_text='reference to comments') classes.append(oss_service) class oss_serviceport(Document): id = IntField(required=True) serviceid = IntField(required=True) ipaddr = StringField(required=True,help_text=' e.g. 192.168.10.1/24') ipaddr6 = StringField(required=True) url = StringField(required=True) port = StringField(required=True) type = StringField(required=True) description = StringField(required=True) supportremarks = StringField(required=True) comments = ListField(StringField(), default=list,help_text='reference to comments') classes.append(oss_serviceport) class oss_machine(Document): id = IntField(required=True) name = StringField(required=True) organization = StringField(required=True,help_text='id of organization which owns the machine if any') organization_name = StringField(required=True) label = StringField(required=True) parent = IntField(required=True) parent_name = StringField(required=True) description = StringField(required=True) type = StringField(required=True) interfaces = ListField(StringField(), default=list,) depends = ListField(StringField(), default=list,help_text=' link to other machines (what does it need to work)') depends_names = ListField(StringField(), default=list,) assethost = IntField(required=True,help_text='who is asset hosting this machinehost') memory = IntField(required=True,help_text='in GB') ssdcapacity = IntField(required=True,help_text='in GB') hdcapacity = IntField(required=True,help_text='in GB') cpumhz = IntField(required=True,help_text='in mhz') nrcores = IntField(required=True) nrcpu = IntField(required=True) rootpasswd = StringField(required=True,help_text='encrypted root passwd') acl = ListField(field=StringField(), default=list,help_text='dict where key is name of group; value is R/W/E (E=Execute)') comments = ListField(StringField(), default=list,help_text='reference to comments') classes.append(oss_machine) class oss_workflowstep(Document): id = IntField(required=True) name = StringField(required=True) description = StringField(required=True) warningtime = IntField(required=True,help_text=' time that this step can take till warning (in sec)') criticaltime = IntField(required=True,help_text=' time that this step can take') nextsteps = ListField(field=StringField(), default=list,) nextsteps_error = ListField(field=StringField(), default=list,) jscript = StringField(required=True,help_text='this script will create jobsteps (like branches of a tree) and return all next jobsteps to execute') comments = ListField(StringField(), default=list,help_text='reference to comments') classes.append(oss_workflowstep) class oss_asset(Document): id = IntField(required=True) organization = StringField(required=True,help_text='id of organization which owns the asset if any') organization_names = StringField(required=True,help_text='comma separated list of name') label = StringField(required=True) parent = StringField(required=True) parent_name = StringField(required=True) description = StringField(required=True) type = StringField(required=True) brand = StringField(required=True) model = StringField(required=True) interfaces = ListField(StringField(), default=list,) components = ListField(StringField(), default=list,) depends = ListField(StringField(), default=list,help_text=' link to other assets (what does it need to work)') depends_names = ListField(StringField(), default=list,) rack = StringField(required=True) datacenter_name = StringField(required=True) pod_name = StringField(required=True) rack_name = StringField(required=True) datacenter_label = StringField(required=True) pod_label = StringField(required=True) rack_label = StringField(required=True) u = IntField(required=True,help_text='how many U taken') rackpos = IntField(required=True,help_text=' how many U starting from bottomn') acl = ListField(field=StringField(), default=list,help_text='dict where key is name of group; value is R/W/E (E=Execute)') comments = ListField(StringField(), default=list,help_text='reference to comments') classes.append(oss_asset) class oss_document(Document): id = IntField(required=True) parent = IntField(required=True,help_text='parent doc (where this document is a version of)') name = StringField(required=True) creationdate = IntField(required=True) moddate = IntField(required=True) type = StringField(required=True,help_text=' SPREADSHEET:DOC:TXT:CODE:...') ext = StringField(required=True,help_text=' e.g. docx;xls;...') contents = StringField(required=True,help_text='full text content') objstorid = StringField(required=True,help_text='reference on doc mgmt system (stored in sort of key value obj store)') description = StringField(required=True) acl = ListField(field=StringField(), default=list,help_text='dict where key is name of group; value is R/W/E (E=Execute)') comments = ListField(StringField(), default=list,help_text='reference to comments') classes.append(oss_document) class oss_assettype(Document): type = StringField(required=True) description = StringField(required=True) supportremarks = StringField(required=True) id = IntField(required=True,help_text='Auto generated id @optional') classes.append(oss_assettype) class oss_workflow(Document): id = IntField(required=True) name = StringField(required=True) tickettype = StringField(required=True) description = StringField(required=True) workflowsteps = ListField(StringField(), default=list,) acl = ListField(field=StringField(), default=list,help_text='dict where key is name of group; value is R/W/E (E=Execute)') comments = ListField(StringField(), default=list,help_text='reference to comments') classes.append(oss_workflow) class oss_component(Document): type = StringField(required=True) nr = IntField(required=True,help_text='amount of component e.g. 2 CPU') brand = StringField(required=True) model = StringField(required=True) description = StringField(required=True) supportremarks = StringField(required=True) comments = ListField(StringField(), default=list,help_text='reference to comments') id = IntField(required=True,help_text='Auto generated id @optional') classes.append(oss_component) class oss_job(Document): id = IntField(required=True) workflow = StringField(required=True) workflow_name = StringField(required=True) startdate = IntField(required=True,help_text='epoch') enddate = IntField(required=True,help_text='epoch') status = StringField(required=True,help_text='values are:') classes.append(oss_job) class oss_user(Document): id = IntField(required=True) organizations = ListField(StringField(), default=list,) organization_names = StringField(required=True) name = StringField(required=True) addresses = ListField(StringField(), default=list,help_text='reference to addr (guid)') comments = ListField(StringField(), default=list,help_text='reference to comments') userids = ListField(StringField(), default=list,) contactmethods = ListField(StringField(), default=list,help_text='reference to contactmethods') datasources = ListField(StringField(), default=list,help_text='source(s) where data comes from (reference)') acl = ListField(field=StringField(), default=list,help_text='dict where key is name of group; value is R/W/E (E=Execute)') classes.append(oss_user) class oss_address(Document): id = IntField(required=True) country = StringField(required=True) city = StringField(required=True) citycode = StringField(required=True) zone = StringField(required=True) region = StringField(required=True) street = StringField(required=True) nr = IntField(required=True) floor = IntField(required=True) classes.append(oss_address) class oss_interface(Document): type = StringField(required=True) macaddr = StringField(required=True) vlanid = StringField(required=True) vxlanid = StringField(required=True) organization = StringField(required=True,help_text='id of organization which owns the ipaddr if any') netaddr = ListField(StringField(), default=list,) connects = ListField(StringField(), default=list,help_text=' link to other interfaces') brand = StringField(required=True) model = StringField(required=True) description = StringField(required=True) supportremarks = StringField(required=True) comments = ListField(StringField(), default=list,help_text='reference to comments') id = IntField(required=True,help_text='Auto generated id @optional') classes.append(oss_interface) class oss_contactmethod(Document): id = IntField(required=True) type = StringField(required=True) value = StringField(required=True,help_text='e.g. tel nr') classes.append(oss_contactmethod) class oss_jobstep(Document): jobguid = StringField(required=True,help_text='reference to job') workflow = StringField(required=True) workflowstep = StringField(required=True,help_text='reference to workflowstep which started this jobsteps') workflowstep_name = StringField(required=True) description = StringField(required=True) order = IntField(required=True,help_text='order in which the steps where executed') params = StringField(required=True,help_text='json representation of dict which has all arguments') warningtime = IntField(required=True,help_text=' time that this step can take till warning (in sec)') criticaltime = IntField(required=True,help_text=' time that this step can take') startdate = IntField(required=True) enddate = IntField(required=True) jscript = StringField(required=True,help_text='script which was executed') status = StringField(required=True,help_text='values are:') nextsteps = ListField(StringField(), default=list,help_text='after resolving the script next steps which were triggered (so is after execution), is references to other jobsteps (guid)') logs = StringField(required=True) id = IntField(required=True,help_text='Auto generated id @optional') classes.append(oss_jobstep) class oss_brandtype(Document): type = StringField(required=True) description = StringField(required=True) supportremarks = StringField(required=True) id = IntField(required=True,help_text='Auto generated id @optional') classes.append(oss_brandtype) class oss_datacenter(Document): id = IntField(required=True) name = StringField(required=True) label = StringField(required=True) organization = StringField(required=True,help_text='id of organization which owns dc') organization_name = StringField(required=True) description = StringField(required=True) addresses = ListField(StringField(), default=list,help_text='reference to addr') acl = ListField(field=StringField(), default=list,help_text='dict where key is name of group; value is R/W/E (E=Execute)') comments = ListField(StringField(), default=list,help_text='reference to comments') classes.append(oss_datacenter) class oss_useridentification(Document): userid = IntField(required=True,help_text=' reference to user') type = StringField(required=True,help_text=' PASSPORT:ID:DRIVINGLICENSE') identificationnr = StringField(required=True,help_text='e.g. passport nr') registrationdate = IntField(required=True,help_text=' epoch') expirationdate = IntField(required=True,help_text=' epoch') description = StringField(required=True) status = StringField(required=True,help_text='VALID:EXPIRED:ERROR') id = IntField(required=True,help_text='Auto generated id @optional') classes.append(oss_useridentification) class oss_message(Document): subject = StringField(required=True) message = StringField(required=True) destination = ListField(StringField(), default=list,) time = IntField(required=True,help_text='epoch') type = StringField(required=True,help_text='types are: email;sms;gtalk;tel') format = StringField(required=True,help_text=' html;confl;md;text default is text') ticket = IntField(required=True) comments = ListField(StringField(), default=list,help_text='reference to comments') id = IntField(required=True,help_text='Auto generated id @optional') classes.append(oss_message) class oss_netaddr(Document): id = IntField(required=True) ipaddr = StringField(required=True,help_text=' e.g. 192.168.10.1/24') ipaddr6 = StringField(required=True) description = StringField(required=True) supportremarks = StringField(required=True) comments = ListField(StringField(), default=list,help_text='reference to comments') classes.append(oss_netaddr) class oss_project(Document): id = IntField(required=True) name = StringField(required=True) descr = StringField(required=True) organizations = ListField(StringField(), default=list,help_text='which organizations is proj linked to') organizations_names = StringField(required=True,help_text='comma separated list of names of orgs') deadline = IntField(required=True,help_text='epoch of when task needs to be done') acl = ListField(field=StringField(), default=list,help_text='dict where key is name of group; value is R/W/E (E=Execute)') comments = ListField(StringField(), default=list,help_text='reference to comments') classes.append(oss_project) class oss_interfacetype(Document): type = StringField(required=True) description = StringField(required=True) supportremarks = StringField(required=True) id = IntField(required=True,help_text='Auto generated id @optional') classes.append(oss_interfacetype) class oss_organization(Document): name = StringField(required=True,help_text='domain') id = IntField(required=True) description = StringField(required=True) companyname = StringField(required=True,help_text='optional name') parent = StringField(required=True,help_text='organization can belong to other organization') parent_name = StringField(required=True) addresses = ListField(StringField(), default=list,help_text='reference to addresses (guid)') contactmethods = ListField(StringField(), default=list,help_text='reference to contactmethod (guid)') vatnr = StringField(required=True) datasources = ListField(StringField(), default=list,help_text='source(s) where data comes from (reference)') acl = ListField(field=StringField(), default=list,help_text='dict where key is name of group; value is R/W/E (E=Execute)') comments = ListField(StringField(), default=list,help_text='reference to comments') classes.append(oss_organization) class oss_pod(Document): id = IntField(required=True) name = StringField(required=True) label = StringField(required=True) organization = StringField(required=True,help_text='id of organization which owns the pod if any') organization_name = StringField(required=True) datacenter = StringField(required=True) datacenter_name = StringField(required=True) description = StringField(required=True) acl = ListField(field=StringField(), default=list,help_text='dict where key is name of group; value is R/W/E (E=Execute)') comments = ListField(StringField(), default=list,help_text='reference to comments') classes.append(oss_pod) class oss_rack(Document): id = IntField(required=True) name = StringField(required=True) label = StringField(required=True) pod = StringField(required=True) pod_name = StringField(required=True) datacenter = StringField(required=True) datacenter_name = StringField(required=True) organization = StringField(required=True,help_text='id of organization which owns the rack if any') organization_name = StringField(required=True) description = StringField(required=True) acl = ListField(field=StringField(), default=list,help_text='dict where key is name of group; value is R/W/E (E=Execute)') comments = ListField(StringField(), default=list,help_text='reference to comments') classes.append(oss_rack)
54.125301
190
0.747885
2,787
22,462
5.937926
0.108719
0.179104
0.230709
0.106351
0.788265
0.745725
0.699438
0.638105
0.597559
0.576168
0
0.00145
0.140548
22,462
414
191
54.256039
0.855789
0
0
0.51436
0
0.002611
0.197899
0.002404
0
0
0
0
0
1
0
false
0.010444
0.002611
0
0.91906
0.013055
0
0
0
null
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
5b2fd4b5d6a59a4f2840f652cd831062001ae03b
142
py
Python
trailscraper/__init__.py
ocefpaf/trailscraper
1db91df5738f19d022760eda08ef310c73090b57
[ "Apache-2.0" ]
null
null
null
trailscraper/__init__.py
ocefpaf/trailscraper
1db91df5738f19d022760eda08ef310c73090b57
[ "Apache-2.0" ]
null
null
null
trailscraper/__init__.py
ocefpaf/trailscraper
1db91df5738f19d022760eda08ef310c73090b57
[ "Apache-2.0" ]
null
null
null
"""Top-level package for trailscraper.""" __author__ = """Florian Sellmayr""" __email__ = 'florian.sellmayr@gmail.com' __version__ = '0.6.5'
23.666667
41
0.711268
17
142
5.235294
0.882353
0.337079
0
0
0
0
0
0
0
0
0
0.023622
0.105634
142
5
42
28.4
0.677165
0.246479
0
0
0
0
0.465347
0.257426
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
5b56d68ac42334595e751524647ce916fe95300f
3,613
py
Python
ngcccbase/p2ptrade/tests/test_basic.py
petertodd/ngcccbase
9e346eebaf4461589e5fdce098c8d0c5793c9461
[ "MIT" ]
2
2021-10-31T19:08:48.000Z
2021-10-31T19:09:31.000Z
ngcccbase/p2ptrade/tests/test_basic.py
petertodd/ngcccbase
9e346eebaf4461589e5fdce098c8d0c5793c9461
[ "MIT" ]
null
null
null
ngcccbase/p2ptrade/tests/test_basic.py
petertodd/ngcccbase
9e346eebaf4461589e5fdce098c8d0c5793c9461
[ "MIT" ]
1
2021-10-31T19:10:02.000Z
2021-10-31T19:10:02.000Z
from ..ewctrl import EWalletController from ..protocol_objects import MyEOffer, EOffer from ..agent import EAgent from ..comm import CommBase from coloredcoinlib import (SimpleColorValue, OBColorDefinition, UNCOLORED_MARKER) import unittest class MockAddressRecord(object): def __init__(self, address): self.address = address def get_address(self): return self.address class MockWAM(object): def get_change_address(self, color_set): return MockAddressRecord('addr' + color_set.get_hash_string()) def get_some_address(self, color_set): return self.get_change_address(color_set) class MockUTXO(object): def __init__(self): self.value = 100 self.colorvalues = [SimpleColorValue(colordef=UNCOLORED_MARKER, value=300000)] def get_outpoint(self): return ('outp1', 1) class MockCoinQuery(object): def __init__(self, params): self.color_set = params['color_set'] def get_result(self): return [MockUTXO()] class MockColorMap(object): def find_color_desc(self, color_id): if color_id == 1: return 'xxx' elif color_id == 2: return 'yyy' else: return '' def resolve_color_desc(self, color_desc, auto_add=True): if color_desc == 'xxx': return 1 elif color_desc == 'yyy': return 2 else: return None class MockModel(object): def get_color_map(self): return MockColorMap() def make_coin_query(self, params): return MockCoinQuery(params) def get_address_manager(self): return MockWAM() class MockComm(CommBase): def __init__(self): super(MockComm, self).__init__() self.messages_sent = [] def poll_and_dispatch(self): pass def post_message(self, message): print (message) self.messages_sent.append(message) def get_messages(self): return self.messages_sent class TestMockP2PTrade(unittest.TestCase): def test_basic(self): model = MockModel() ewctrl = EWalletController(model, None) config = {"offer_expiry_interval": 30, "ep_expiry_interval": 30} comm = MockComm() agent = EAgent(ewctrl, config, comm) # At this point the agent should not have an active proposal self.assertFalse(agent.has_active_ep()) # no messages should have been sent to the network self.assertEqual(len(comm.get_messages()), 0) self.cd = OBColorDefinition(1, {'txhash': 'xxx', 'outindex': 0, 'height':0}) cv0 = SimpleColorValue(colordef=UNCOLORED_MARKER, value=100) cv1 = SimpleColorValue(colordef=self.cd, value=200) my_offer = MyEOffer(None, cv0, cv1) their_offer = EOffer('abcdef', cv1, cv0) agent.register_my_offer(my_offer) agent.register_their_offer(their_offer) agent.update() # Agent should have an active exchange proposal self.assertTrue(agent.has_active_ep()) # Exchange proposal should have been sent over comm # it should be the only message, as we should not resend our offer # if their is an active proposal to match it self.assertTrue(len(comm.get_messages()), 1) [proposal] = comm.get_messages() # The offer data should be in the proposal their_offer_data = their_offer.get_data() self.assertEquals(their_offer_data, proposal["offer"])
31.146552
74
0.633546
422
3,613
5.208531
0.324645
0.021838
0.020018
0.023203
0.062784
0
0
0
0
0
0
0.01416
0.276778
3,613
115
75
31.417391
0.827019
0.097426
0
0.046512
0
0
0.031663
0.006456
0
0
0
0
0.05814
1
0.209302
false
0.011628
0.069767
0.104651
0.546512
0.011628
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
5b89a0e4022f3436a4d11478d2c53fd02c40ba90
632
py
Python
test/mp_modbus_server.py
eydam-prototyping/mp_modbus
8007c41dd16e6f71bd27b587628f57f38f27a7e0
[ "MIT" ]
2
2022-01-06T02:21:16.000Z
2022-03-08T07:55:43.000Z
test/mp_modbus_server.py
eydam-prototyping/mp_modbus
8007c41dd16e6f71bd27b587628f57f38f27a7e0
[ "MIT" ]
2
2021-12-10T15:56:52.000Z
2022-02-19T23:45:24.000Z
test/mp_modbus_server.py
eydam-prototyping/mp_modbus
8007c41dd16e6f71bd27b587628f57f38f27a7e0
[ "MIT" ]
3
2021-07-30T11:16:55.000Z
2022-01-05T18:19:55.000Z
import sys sys.path.append(r"C:\Projekte\01_eydamPrototyping\mp_modbus") import mp_modbus srv = mp_modbus.modbus_tcp_server("127.0.0.1", 503, context={ "co":{"startAddr": 1000, "registers": bytearray([0xFF, 0x00, 0x00, 0x00]*5)}, "di":{"startAddr": 1000, "registers": bytearray([0xFF, 0x00, 0x00, 0x00]*5)}, "hr":{"startAddr": 1000, "registers": bytearray([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])}, "ir":{"startAddr": 1000, "registers": bytearray([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])} }) srv.run()
57.454545
151
0.664557
91
632
4.549451
0.505495
0.125604
0.21256
0.299517
0.690821
0.690821
0.690821
0.690821
0.690821
0.458937
0
0.240942
0.126582
632
11
152
57.454545
0.509058
0
0
0
0
0
0.205371
0.064771
0
0
0.252765
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
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
3
5b89af1533a75e75ed04165432fa9c13feb8e1c5
71
py
Python
test/output/064.py
EliRibble/pyfmt
e84a5531a7c06703eddd9dbc2072b0c8deae8c57
[ "MIT" ]
null
null
null
test/output/064.py
EliRibble/pyfmt
e84a5531a7c06703eddd9dbc2072b0c8deae8c57
[ "MIT" ]
null
null
null
test/output/064.py
EliRibble/pyfmt
e84a5531a7c06703eddd9dbc2072b0c8deae8c57
[ "MIT" ]
null
null
null
try: raise Exception() except Exception as e: print("hello", str(e))
14.2
23
0.690141
11
71
4.454545
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.15493
71
4
24
17.75
0.816667
0
0
0
0
0
0.070423
0
0
0
0
0
0
1
0
true
0
0
0
0
0.25
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
0
0
0
0
0
3
5ba53affe730c2eb8585463a3d48156ad33ebd1b
113
py
Python
lesson 1/p2-concatenation.py
hamburgcodingschool/L2C-1903
759c273edb4b2e1685c28f932694f7a5a1e2b0a1
[ "MIT" ]
null
null
null
lesson 1/p2-concatenation.py
hamburgcodingschool/L2C-1903
759c273edb4b2e1685c28f932694f7a5a1e2b0a1
[ "MIT" ]
null
null
null
lesson 1/p2-concatenation.py
hamburgcodingschool/L2C-1903
759c273edb4b2e1685c28f932694f7a5a1e2b0a1
[ "MIT" ]
null
null
null
# CONCATENATION firstName = "Helder" lastName = "Pereira" fullName = "Helder" + " " + lastName print(fullName)
14.125
36
0.690265
10
113
7.8
0.7
0.358974
0
0
0
0
0
0
0
0
0
0
0.168142
113
8
37
14.125
0.829787
0.115044
0
0
0
0
0.20202
0
0.25
0
0
0
0
1
0
false
0
0
0
0
0.25
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
0
0
0
3
5bb3bf3d46ab2ed878ab08c3842cf751836be8fd
4,953
py
Python
sim/tools/data_processor/data_format.py
DengBoCong/text-sim
2c6c323649aa259a7b3d5c6d3714bd1860114826
[ "MIT" ]
21
2021-12-24T16:03:57.000Z
2022-03-31T00:34:14.000Z
sim/tools/data_processor/data_format.py
DengBoCong/text-sim
2c6c323649aa259a7b3d5c6d3714bd1860114826
[ "MIT" ]
null
null
null
sim/tools/data_processor/data_format.py
DengBoCong/text-sim
2c6c323649aa259a7b3d5c6d3714bd1860114826
[ "MIT" ]
6
2022-03-04T14:19:53.000Z
2022-03-29T05:58:55.000Z
#! -*- coding: utf-8 -*- """ Data Format """ # Author: DengBoCong <bocongdeng@gmail.com> # # License: MIT License from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import sys from typing import Any from typing import NoReturn class ClassificationInputSample(object): """seq分类的输入样本""" def __init__(self, guid: Any, text_a: str, text_b: str = None, label: str = None) -> NoReturn: """构建ClassificationInputSample :param guid: 样本唯一ID :param text_a: 原始seq文本a :param text_b: 原始seq文本b,可选,针对文本对分类任务 :param label: 样本标签,提供给train/dev,test可选 """ self.guid = guid self.text_a = text_a self.text_b = text_b self.label = label class InputFeatures(object): """数据的feature集合""" def __init__(self, input_ids: list, input_mask: list, segment_ids: list, label_id: list) -> NoReturn: """构建InputFeatures :param input_ids: :param input_mask: :param segment_ids: :param label_id: """ self.input_ids = input_ids self.input_mask = input_mask self.segment_ids = segment_ids self.label_id = label_id class DataProcessor(object): """将数据转化为seq分类数据集的基类""" def get_train_samples(self, data_path: str) -> list: """获取训练集的ClassificationInputSample集合 :param data_path: 训练集文件路径 """ raise NotImplementedError("get_train_samples must be implemented") def get_dev_samples(self, data_path: str) -> list: """获取验证集的ClassificationInputSample集合 :param data_path: 验证集文件路径 """ raise NotImplementedError("get_dev_samples must be implemented") def get_test_samples(self, data_path: str) -> list: """获取验证集的ClassificationInputSample集合 :param data_path: 测试集文件路径 """ raise NotImplementedError("get_test_samples must be implemented") def get_labels(self) -> list: """获取当前数据集的labels list""" raise NotImplementedError("get_labels must be implemented") @classmethod def _read_file(cls, input_file: str, quote_char: str = None) -> list: """读取以\t分隔的文件 :param input_file: :param quote_char: 单字符,用于包住含有特殊字符的字段 """ with open(input_file, "r", encoding="utf-8") as file: reader = csv.reader(file, delimiter="\t", quotechar=quote_char) lines = [] for line in reader: if sys.version_info[0] == 2: line = str(line, "utf-8") lines.append(line) return lines class MRPCProcessor(DataProcessor): """MRPC数据集(GLUE版本)""" def get_train_samples(self, data_path: str) -> list: return self._create_samples(lines=self._read_file(data_path), set_type="train") def get_dev_samples(self, data_path: str) -> list: return self._create_samples(lines=self._read_file(data_path), set_type="dev") def get_test_samples(self, data_path: str) -> list: return self._create_samples(lines=self._read_file(data_path), set_type="test") def get_labels(self) -> list: return ["0", "1"] def _create_samples(self, lines: list, set_type: str) -> list: """创建ClassificationInputSample :param lines: 一行一个sample :param set_type: 数据集类型 :return: ClassificationInputSample list """ samples = [] for (i, line) in enumerate(lines): if i == 0: continue guid = f"{set_type}-{i}" text_a = line[3] text_b = line[4] label = line[0] samples.append(ClassificationInputSample(guid=guid, text_a=text_a, text_b=text_b, label=label)) return samples class LCQMCProcessor(DataProcessor): """LCQMC数据集""" def get_train_samples(self, data_path: str) -> list: return self._create_samples(lines=self._read_file(data_path), set_type="train") def get_dev_samples(self, data_path: str) -> list: return self._create_samples(lines=self._read_file(data_path), set_type="dev") def get_test_samples(self, data_path: str) -> list: return self._create_samples(lines=self._read_file(data_path), set_type="test") def get_labels(self) -> list: return ["0", "1"] def _create_samples(self, lines: list, set_type: str) -> list: """创建ClassificationInputSample :param lines: 一行一个sample :param set_type: 数据集类型 :return: ClassificationInputSample list """ samples = [] for (i, line) in enumerate(lines): if i == 0 and "label" in line: continue guid = f"{set_type}-{i}" text_a = line[0] text_b = line[1] label = line[2] samples.append(ClassificationInputSample(guid=guid, text_a=text_a, text_b=text_b, label=label)) return samples
31.547771
107
0.624874
586
4,953
5.020478
0.215017
0.048946
0.045887
0.058124
0.513256
0.508498
0.481985
0.481985
0.481985
0.442556
0
0.004672
0.265294
4,953
156
108
31.75
0.803792
0.182718
0
0.435897
0
0
0.056594
0
0
0
0
0
0
1
0.217949
false
0
0.089744
0.102564
0.512821
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
5bc72854ea6b6b537f637d3ca2cc0367edcfec97
156
py
Python
src/bot/face.py
achillesrasquinha/bot
d908892a1026af155c81572ef507c05239b2549a
[ "MIT" ]
null
null
null
src/bot/face.py
achillesrasquinha/bot
d908892a1026af155c81572ef507c05239b2549a
[ "MIT" ]
null
null
null
src/bot/face.py
achillesrasquinha/bot
d908892a1026af155c81572ef507c05239b2549a
[ "MIT" ]
null
null
null
from deepface import DeepFace from bot.base import Object class FaceRecognizer(Object): def recognize(self, array): DeepFace.detectFace(array)
22.285714
34
0.75641
19
156
6.210526
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.173077
156
7
34
22.285714
0.914729
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
5bc8978e23c2f7793e2de9bac638f9d3cadeab93
38
py
Python
icr2model/__init__.py
nooRok/icr2model
8cf395f8c6fd72524bac692e4e0d0696bda8aeb1
[ "MIT" ]
null
null
null
icr2model/__init__.py
nooRok/icr2model
8cf395f8c6fd72524bac692e4e0d0696bda8aeb1
[ "MIT" ]
null
null
null
icr2model/__init__.py
nooRok/icr2model
8cf395f8c6fd72524bac692e4e0d0696bda8aeb1
[ "MIT" ]
null
null
null
# coding: utf-8 __version__ = '0.3.5'
12.666667
21
0.631579
7
38
2.857143
1
0
0
0
0
0
0
0
0
0
0
0.125
0.157895
38
2
22
19
0.5
0.342105
0
0
0
0
0.217391
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
5bedf098082a98dd6017e7295970926280a97b37
545
py
Python
app/utils/FaceMaskDetection/run_detection.py
zhenyit/mask_detection
c381e262118ee06a5f6c3d48ce885972ccde217e
[ "MIT" ]
1
2021-02-21T12:07:04.000Z
2021-02-21T12:07:04.000Z
app/utils/FaceMaskDetection/run_detection.py
zhenyit/mask_detection
c381e262118ee06a5f6c3d48ce885972ccde217e
[ "MIT" ]
null
null
null
app/utils/FaceMaskDetection/run_detection.py
zhenyit/mask_detection
c381e262118ee06a5f6c3d48ce885972ccde217e
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import cv2, os from PIL import Image import numpy as np from .pytorch_infer import inference def start(img): # img = cv2.imread(img_path) # img = cv2.cvtColor(response, cv2.COLOR_BGR2RGB) nfaces, nmasks, flag, image_ori, image = inference(img, show_result=True, target_shape=(360, 360)) return nfaces, nmasks, flag, image_ori, image # nfaces, nmasks, flag, image_out = start(img_path='./myapp/FaceMaskDetection/test/test1.jpeg') # print(nfaces) # print(flag) # Image.fromarray(image_out).show()
25.952381
102
0.708257
78
545
4.820513
0.551282
0.095745
0.12766
0.167553
0.154255
0.154255
0
0
0
0
0
0.028322
0.157798
545
21
103
25.952381
0.79085
0.456881
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.571429
0
0.857143
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
5beed9f77330388b3d53293f45784281be048ff2
4,972
py
Python
test/test_pythoscope_generator_builder.py
h4ck3rm1k3/pythoscope
0cefb34b86e2e81e29c0b93d27e3d4657db79912
[ "MIT" ]
null
null
null
test/test_pythoscope_generator_builder.py
h4ck3rm1k3/pythoscope
0cefb34b86e2e81e29c0b93d27e3d4657db79912
[ "MIT" ]
null
null
null
test/test_pythoscope_generator_builder.py
h4ck3rm1k3/pythoscope
0cefb34b86e2e81e29c0b93d27e3d4657db79912
[ "MIT" ]
null
null
null
import unittest class TestTemplate(unittest.TestCase): def test_equal_assertion(self): # template = Template() # self.assertEqual(expected, template.equal_assertion(expected, actual)) assert False # TODO: implement your test here def test_raises_assertion(self): # template = Template() # self.assertEqual(expected, template.raises_assertion(exception, call)) assert False # TODO: implement your test here def test_skip_test(self): # template = Template() # self.assertEqual(expected, template.skip_test()) assert False # TODO: implement your test here class TestUnittestTemplate(unittest.TestCase): def test_equal_assertion(self): # unittest_template = UnittestTemplate() # self.assertEqual(expected, unittest_template.equal_assertion(expected, actual)) assert False # TODO: implement your test here def test_raises_assertion(self): # unittest_template = UnittestTemplate() # self.assertEqual(expected, unittest_template.raises_assertion(exception, call)) assert False # TODO: implement your test here def test_skip_test(self): # unittest_template = UnittestTemplate() # self.assertEqual(expected, unittest_template.skip_test()) assert False # TODO: implement your test here class TestNoseTemplate(unittest.TestCase): def test_equal_assertion(self): # nose_template = NoseTemplate() # self.assertEqual(expected, nose_template.equal_assertion(expected, actual)) assert False # TODO: implement your test here def test_raises_assertion(self): # nose_template = NoseTemplate() # self.assertEqual(expected, nose_template.raises_assertion(exception, call)) assert False # TODO: implement your test here def test_skip_test(self): # nose_template = NoseTemplate() # self.assertEqual(expected, nose_template.skip_test()) assert False # TODO: implement your test here class TestAddNewline(unittest.TestCase): def test_add_newline(self): # self.assertEqual(expected, add_newline(code_string)) assert False # TODO: implement your test here class TestMapTypes(unittest.TestCase): def test_map_types(self): # self.assertEqual(expected, map_types(string)) assert False # TODO: implement your test here class TestTypeOf(unittest.TestCase): def test_type_of(self): # self.assertEqual(expected, type_of(string)) assert False # TODO: implement your test here class TestInLambda(unittest.TestCase): def test_in_lambda(self): # self.assertEqual(expected, in_lambda(string)) assert False # TODO: implement your test here class TestImportFor(unittest.TestCase): def test_import_for(self): # self.assertEqual(expected, import_for(definition)) assert False # TODO: implement your test here class TestEqualAssertionOnValuesOrTypes(unittest.TestCase): def test_equal_assertion_on_values_or_types(self): # self.assertEqual(expected, equal_assertion_on_values_or_types(expected, actual, template)) assert False # TODO: implement your test here class TestCallName(unittest.TestCase): def test_call_name(self): # self.assertEqual(expected, call_name(call, assigned_names)) assert False # TODO: implement your test here class TestCallInTest(unittest.TestCase): def test_call_in_test(self): # self.assertEqual(expected, call_in_test(call, already_assigned_names)) assert False # TODO: implement your test here class TestGeneratorObjectYields(unittest.TestCase): def test_generator_object_yields(self): # self.assertEqual(expected, generator_object_yields(gobject)) assert False # TODO: implement your test here class TestCodeStringFromModuleVariableReference(unittest.TestCase): def test_code_string_from_module_variable_reference(self): # self.assertEqual(expected, code_string_from_module_variable_reference(ref)) assert False # TODO: implement your test here class TestCodeStringFromObjectAttributeReference(unittest.TestCase): def test_code_string_from_object_attribute_reference(self): # self.assertEqual(expected, code_string_from_object_attribute_reference(ref, assigned_names)) assert False # TODO: implement your test here class TestVariableAssignmentLine(unittest.TestCase): def test_variable_assignment_line(self): # self.assertEqual(expected, variable_assignment_line(left, right, already_assigned_names)) assert False # TODO: implement your test here class TestAttributeAssignmentLine(unittest.TestCase): def test_attribute_assignment_line(self): # self.assertEqual(expected, attribute_assignment_line(left, right, already_assigned_names)) assert False # TODO: implement your test here if __name__ == '__main__': unittest.main()
41.781513
102
0.731698
559
4,972
6.280859
0.137746
0.043862
0.144118
0.150385
0.738251
0.688408
0.620336
0.564227
0.463116
0.377101
0
0
0.188656
4,972
118
103
42.135593
0.870352
0.491754
0
0.492063
0
0
0.003235
0
0
0
0
0.008475
0.47619
1
0.349206
false
0
0.047619
0
0.650794
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
1
0
1
0
0
0
0
1
0
0
3
750352c0c4ec308176eafd4edfe7e5275a12da69
426
py
Python
tests/integrations/app/models/User.py
yubarajshrestha/masonite-permission
5807b80a50b94526efbc03f0933d3960087a7e54
[ "MIT" ]
4
2022-03-15T13:52:37.000Z
2022-03-17T05:26:54.000Z
tests/integrations/app/models/User.py
yubarajshrestha/masonite-permission
5807b80a50b94526efbc03f0933d3960087a7e54
[ "MIT" ]
2
2022-03-15T06:36:59.000Z
2022-03-15T09:41:47.000Z
tests/integrations/app/models/User.py
yubarajshrestha/masonite-permission
5807b80a50b94526efbc03f0933d3960087a7e54
[ "MIT" ]
null
null
null
"""User Model.""" from masoniteorm.models import Model from masoniteorm.scopes import SoftDeletesMixin from masonite.authentication import Authenticates from src.masonite_permission.mixins import HasPermissions, HasRoles class User(Model, SoftDeletesMixin, Authenticates, HasRoles, HasPermissions): """User Model.""" __fillable__ = ["name", "email", "password"] __hidden__ = ["password"] __auth__ = "email"
30.428571
77
0.758216
42
426
7.380952
0.547619
0.087097
0.129032
0
0
0
0
0
0
0
0
0
0.133803
426
13
78
32.769231
0.840108
0.053991
0
0
0
0
0.076531
0
0
0
0
0
0
1
0
false
0.25
0.5
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
3
752eeb87d8366695a0fc1c21d0ef062dead005bf
280
py
Python
autode/constants.py
Crossfoot/autodE
2c452c954a5268e6c9a80cd4efbbfe855e61f6bb
[ "MIT" ]
1
2021-02-17T02:50:33.000Z
2021-02-17T02:50:33.000Z
autode/constants.py
Crossfoot/autodE
2c452c954a5268e6c9a80cd4efbbfe855e61f6bb
[ "MIT" ]
4
2021-10-14T09:32:49.000Z
2022-01-22T09:07:19.000Z
autode/constants.py
t-young31/autodE
4f4e5792e6edf446ff939552a14d82965aaff8e0
[ "MIT" ]
null
null
null
class Constants: ha2kcalmol = 627.509 # Hartee^-1 kcal mol^-1 ha2kJmol = 2625.50 # Hartree^-1 kJ mol^-1 eV2ha = 0.0367493 # Hartree ev^-1 a02ang = 0.529177 # Å bohr^-1 ang2a0 = 1.0 / a02ang # bohr Å^-1 kcal2kJ = 4.184 # kJ kcal^-1
31.111111
50
0.546429
43
280
3.55814
0.604651
0.052288
0
0
0
0
0
0
0
0
0
0.269841
0.325
280
8
51
35
0.539683
0.310714
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
7540f4de2f6d1ca8012c3acc930eb5d680f5f94d
2,935
py
Python
core/recc/task/task_connection_pool.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
3
2021-06-20T02:24:10.000Z
2022-01-26T23:55:33.000Z
core/recc/task/task_connection_pool.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
core/recc/task/task_connection_pool.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import Optional, Dict, KeysView from recc.rpc.rpc_client import RpcClient from recc.task.task_key import TaskKey class TaskConnectionPool: _clients: Dict[TaskKey, RpcClient] _timeout: float def __init__(self, timeout: Optional[float] = None): self._clients = dict() self._timeout = timeout if timeout else 1.0 @property def clients(self) -> Dict[TaskKey, RpcClient]: return self._clients @property def timeout(self) -> float: return self._timeout @staticmethod def make_key(group: str, project: str, task: str) -> TaskKey: return TaskKey(group, project, task) @staticmethod def make_key_by_fullpath(fullpath: str) -> TaskKey: return TaskKey.from_fullname(fullpath) def keys(self) -> KeysView[TaskKey]: return self._clients.keys() def get(self, key: TaskKey) -> RpcClient: return self._clients[key] def get_by_fullpath(self, fullpath: str) -> RpcClient: return self.get(TaskKey.from_fullname(fullpath)) def get_by_category(self, group: str, project: str, task: str) -> RpcClient: return self.get(TaskKey(group, project, task)) def __getitem__(self, item): return self.get(item) def set(self, key: TaskKey, client: RpcClient) -> None: self._clients[key] = client def set_by_fullpath(self, fullpath: str, client: RpcClient) -> None: return self.set(TaskKey.from_fullname(fullpath), client) def set_by_category( self, group: str, project: str, task: str, client: RpcClient ) -> None: return self.set(TaskKey(group, project, task), client) def __setitem__(self, key, value): return self.set(key, value) def remove(self, key: TaskKey) -> None: del self._clients[key] def remove_by_fullpath(self, fullpath: str) -> None: self.remove(TaskKey.from_fullname(fullpath)) def remove_by_category(self, group: str, project: str, task: str) -> None: self.remove(TaskKey(group, project, task)) def __delitem__(self, key): return self.remove(key) def exist(self, key: TaskKey) -> bool: return key in self.keys() def exist_by_fullpath(self, fullpath: str) -> bool: return self.exist(TaskKey.from_fullname(fullpath)) def exist_by_category(self, group: str, project: str, task: str) -> bool: return self.exist(TaskKey(group, project, task)) def __contains__(self, item): return self.exist(item) def __len__(self): return len(self._clients) async def open(self) -> None: pass async def close(self) -> None: for key, client in self._clients.items(): if client.is_open(): await client.close() def create_task_connection_pool(timeout: Optional[float] = None) -> TaskConnectionPool: return TaskConnectionPool(timeout)
29.35
87
0.655877
368
2,935
5.048913
0.179348
0.07535
0.040366
0.048439
0.39451
0.203445
0.127557
0.127557
0.083961
0
0
0.001329
0.231005
2,935
99
88
29.646465
0.821887
0.007155
0
0.059701
0
0
0
0
0
0
0
0
0
1
0.358209
false
0.014925
0.044776
0.283582
0.731343
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
754d7b2c7ea36d5a3faacede524e972e88c2d5e3
1,196
py
Python
operators/app.py
treedbox/python-3-basic-exercises
631e86f8ad97bca7ab06e1f3ebd9d104fc5c43b8
[ "MIT" ]
null
null
null
operators/app.py
treedbox/python-3-basic-exercises
631e86f8ad97bca7ab06e1f3ebd9d104fc5c43b8
[ "MIT" ]
null
null
null
operators/app.py
treedbox/python-3-basic-exercises
631e86f8ad97bca7ab06e1f3ebd9d104fc5c43b8
[ "MIT" ]
null
null
null
import numpy as np a = 10 b = 3 c = 10 # Addition print(a + b) # 13 # Subtraction print(a - b) # 7 # Multiplication print(a * b) # 30 # Division print(a / b) # 3.3333333333333335 # Modulo print(a % b) # 1 # Exponentiation print(a ** b) # 1000 # Floor Division print(a // b) # 3 # Bitwise And print(a & b) # 2 # Bitwise Exclusive Or print(a ^ b) # 9 # Bitwise Inversion print(~a) # -11 # Bitwise Or print(a | b) # 11 # Identity print(a is b) # False print(a is c) # True # Identity print(a is not b) # True print(a is not c) # False # Left Shift print(a << b) # 80 # Right Shift print(a >> b) # 1 # Matrix Multiplication matrixA = np.matrix('4 2; 7 2') matrixB = np.matrix('8 3; 5 5') print(matrixA) """ [[4 2] [7 2]] """ print(matrixB) """ [[8 3] [5 5]] """ print(matrixA @ matrixB) """ [[42 22] [66 31]] """ # Negation print(-a) # -10 # Negation print(not a) # False # Positive print(+a) # 10 # String Formatting obj = {'bar': 42} print('foo' % obj) # foo # Ordering print(a > b) # True print(a >= b) # True print(a < b) # False print(a <= b) # False # Equality print(a == b) # False print(a == c) # True # Difference print(a != b) # True print(a != c) # False
8.859259
31
0.584448
199
1,196
3.512563
0.301508
0.23176
0.180258
0.062947
0.198856
0.153076
0.041488
0
0
0
0
0.078775
0.235786
1,196
134
32
8.925373
0.685996
0.34699
0
0
0
0
0.033435
0
0
0
0
0
0
1
0
false
0
0.025641
0
0.025641
0.820513
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
f330334ed400c444afaf4beadb73d5e60f834495
192
py
Python
7_Modules/E_from_Import_module.py
Oscar-Oliveira/Python3
fa791225a6810b75890d24407b73c5e1b514acbe
[ "MIT" ]
null
null
null
7_Modules/E_from_Import_module.py
Oscar-Oliveira/Python3
fa791225a6810b75890d24407b73c5e1b514acbe
[ "MIT" ]
null
null
null
7_Modules/E_from_Import_module.py
Oscar-Oliveira/Python3
fa791225a6810b75890d24407b73c5e1b514acbe
[ "MIT" ]
null
null
null
""" Import module example """ from C_my_module import my_sum, __version__, __sprint__, some_value print(my_sum(1.25, 3.2)) print(__version__) print(__sprint__) print(some_value)
16
68
0.723958
28
192
4.178571
0.571429
0.08547
0
0
0
0
0
0
0
0
0
0.031056
0.161458
192
11
69
17.454545
0.695652
0.109375
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.2
0
0.2
1
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
0
0
0
1
0
3
f373edc3fe704d220abb3201ea5fc7785937e32b
2,722
py
Python
git_sentry/handlers/git_org.py
git-sentry/git-sentry
4212ed19e91525656a40b73cb3fa12c30d7097bf
[ "MIT" ]
null
null
null
git_sentry/handlers/git_org.py
git-sentry/git-sentry
4212ed19e91525656a40b73cb3fa12c30d7097bf
[ "MIT" ]
1
2020-06-15T17:07:43.000Z
2020-06-15T18:18:33.000Z
git_sentry/handlers/git_org.py
git-sentry/git-sentry
4212ed19e91525656a40b73cb3fa12c30d7097bf
[ "MIT" ]
null
null
null
from github3.orgs import ShortOrganization from git_sentry.handlers.access_controlled_git_object import AccessControlledGitObject from git_sentry.handlers.git_repo import GitRepo from git_sentry.handlers.git_team import GitTeam from git_sentry.handlers.git_user import GitUser from git_sentry.parsing.org_config import OrgConfig from git_sentry.parsing.team_config import TeamConfig class GitOrg(AccessControlledGitObject): def __init__(self, git_org: ShortOrganization): super().__init__(git_org) def login(self): return self._git_object.login def grant_access(self, username, role='member'): current_permission = self.permission_for(username) if current_permission != 'admin': self._git_object.add_or_update_membership(username, role) def revoke_access(self, username): self._git_object.remove_membership(username) def as_dict(self): return self._git_object.as_dict() def configuration(self): members = [m.login() for m in self.members('member')] admins = [m.login() for m in self.members('admin')] current_teams = self.teams() current_team_configuration = {} for team in current_teams: team_members = [m.login() for m in team.members(role='member')] team_admins = [m.login() for m in team.members(role='maintainer')] repos = {repo.full_name(): repo.permission_for_team(team.login()) for repo in team.repositories()} current_team_configuration[team.login()] = TeamConfig(team_members, team_admins, repos) return OrgConfig(self.login(), members, admins, current_team_configuration) def members(self, role=None): return [GitUser(m) for m in self._git_object.members(role=role)] def permission_for(self, username): members = [m.login() for m in self.members(role='member')] admins = [m.login() for m in self.members(role='admin')] if username in admins: return 'admin' elif username in members: return 'member' else: return None def create_team(self, name, repos=None, permission='pull'): if not repos: repos = [] return GitTeam(self._git_object.create_team(name, repo_names=repos, permission=permission, privacy='closed')) def repositories(self): return [GitRepo(r) for r in self._git_object.repositories()] def teams(self): return [GitTeam(t) for t in self._git_object.teams()] def team(self, name): for t in self.teams(): if t.name() == name: return t return None def __repr__(self): return f'org::{self.login()}'
35.815789
117
0.669361
349
2,722
5.008596
0.206304
0.046339
0.059497
0.034325
0.184783
0.117277
0.10984
0.10984
0.040046
0
0
0.000475
0.226304
2,722
75
118
36.293333
0.829535
0
0
0.035088
0
0
0.032697
0
0
0
0
0
0
1
0.22807
false
0
0.122807
0.105263
0.596491
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
f377e6d25e1afce83de3ff397845ad0e408b0fdf
429
py
Python
utils/__init__.py
bearpelican/PSSR
551f477f4ca2c337f9a525d087c21fb83e3af346
[ "BSD-3-Clause" ]
69
2019-08-18T11:33:40.000Z
2022-03-28T17:47:40.000Z
utils/__init__.py
Photonics-Precision-Technologies/PSSR
a90b7d208d4369946500a70a6f31c44e3367e4c7
[ "BSD-3-Clause" ]
3
2021-03-02T05:48:47.000Z
2021-06-17T12:51:26.000Z
utils/__init__.py
Photonics-Precision-Technologies/PSSR
a90b7d208d4369946500a70a6f31c44e3367e4c7
[ "BSD-3-Clause" ]
24
2019-09-03T14:27:26.000Z
2022-03-15T13:47:12.000Z
"bpho utility functions and classes" from .czi import * from .synth import * from .metrics import * from .multi import * from .unet import * from .utils import * from .rrdb import * from .tile import * from .models import * # pylint: disable=undefined-variable __all__ = [ *czi.__all__, *synth.__all__, *metrics.__all__, *multi.__all__, *unet.__all__, *utils.__all__, *tile.__all__, *models.__all__, *rrdb.__all__ ]
23.833333
67
0.713287
55
429
4.836364
0.381818
0.300752
0
0
0
0
0
0
0
0
0
0
0.16317
429
17
68
25.235294
0.740947
0.16317
0
0
0
0
0.086514
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
f3825eca524795f4d9742873a773cd7749636e2a
299
py
Python
crabageprediction/venv/Lib/site-packages/numpy/typing/tests/data/pass/lib_version.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
20,453
2015-01-02T09:00:47.000Z
2022-03-31T23:35:56.000Z
crabageprediction/venv/Lib/site-packages/numpy/typing/tests/data/pass/lib_version.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
14,862
2015-01-01T01:28:34.000Z
2022-03-31T23:48:52.000Z
crabageprediction/venv/Lib/site-packages/numpy/typing/tests/data/pass/lib_version.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
9,362
2015-01-01T15:49:43.000Z
2022-03-31T21:26:51.000Z
from numpy.lib import NumpyVersion version = NumpyVersion("1.8.0") version.vstring version.version version.major version.minor version.bugfix version.pre_release version.is_devversion version == version version != version version < "1.8.0" version <= version version > version version >= "1.8.0"
15.736842
34
0.772575
42
299
5.452381
0.404762
0.611354
0.641921
0.489083
0.331878
0.331878
0.331878
0.331878
0
0
0
0.034091
0.117057
299
18
35
16.611111
0.833333
0
0
0
0
0
0.050167
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
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
0
0
0
3
f3ca4f18d4ca96b2cd072cc421b2a2ef58052327
314
py
Python
tests/test_env_creation.py
SwamyDev/gym-datums
1f4ebcf5855e3d0329638931c402d6e567f4d61c
[ "MIT" ]
1
2020-01-12T19:08:04.000Z
2020-01-12T19:08:04.000Z
tests/test_env_creation.py
SwamyDev/gym-datums
1f4ebcf5855e3d0329638931c402d6e567f4d61c
[ "MIT" ]
null
null
null
tests/test_env_creation.py
SwamyDev/gym-datums
1f4ebcf5855e3d0329638931c402d6e567f4d61c
[ "MIT" ]
null
null
null
import gym def test_creating_environment(datums): env = gym.make('gym_datums:portfolio-v0', datums=datums.get_list()) assert env def test_pass_configuration_to_environment(datums): env = gym.make('gym_datums:portfolio-v0', datums=datums.get_list(), window_size=10) assert env.window_size == 10
26.166667
87
0.751592
46
314
4.869565
0.434783
0.0625
0.178571
0.205357
0.589286
0.589286
0.589286
0.589286
0.589286
0.589286
0
0.021978
0.130573
314
11
88
28.545455
0.798535
0
0
0
0
0
0.146497
0.146497
0
0
0
0
0.285714
1
0.285714
false
0.142857
0.142857
0
0.428571
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
0
0
0
3
45f223724fb76f6f424c660714fbb9049c4b98c3
3,244
py
Python
package/kedro_viz/data_access/repositories/graph.py
deepyaman/kedro-viz
3aef612b6dd405baac0bde68ef37c1f39eb6fa34
[ "BSD-3-Clause-Clear", "Apache-2.0" ]
125
2022-01-10T14:18:32.000Z
2022-03-31T16:08:29.000Z
package/kedro_viz/data_access/repositories/graph.py
deepyaman/kedro-viz
3aef612b6dd405baac0bde68ef37c1f39eb6fa34
[ "BSD-3-Clause-Clear", "Apache-2.0" ]
81
2022-01-10T15:14:24.000Z
2022-03-31T16:20:59.000Z
package/kedro_viz/data_access/repositories/graph.py
admariner/kedro-viz
371f7f943ee1c9a69545ed6aa1cd468deafed7f0
[ "BSD-3-Clause-Clear", "Apache-2.0" ]
11
2022-01-12T14:57:54.000Z
2022-03-07T06:48:30.000Z
"""`kedro_viz.data_access.repositories.graph` defines interface to centralise access to graph objects.""" # pylint: disable=missing-class-docstring,missing-function-docstring from typing import Dict, Generator, List, Optional, Set from kedro_viz.models.graph import GraphEdge, GraphNode class GraphNodesRepository: def __init__(self): self.nodes_dict: Dict[str, GraphNode] = {} self.nodes_list: List[GraphNode] = [] def has_node(self, node: GraphNode) -> bool: return node.id in self.nodes_dict def add_node(self, node: GraphNode) -> GraphNode: if not self.has_node(node): self.nodes_dict[node.id] = node self.nodes_list.append(node) return self.nodes_dict[node.id] def get_node_by_id(self, node_id: str) -> Optional[GraphNode]: return self.nodes_dict.get(node_id, None) def as_list(self) -> List[GraphNode]: return self.nodes_list def as_dict(self) -> Dict[str, GraphNode]: return self.nodes_dict def get_nodes_by_ids(self, node_ids: Set[str]) -> List[GraphNode]: return [n for n in self.nodes_list if n.id in node_ids] class GraphEdgesRepository: """Repository for the set of edges in a registered pipeline.""" def __init__(self): self.edges_list: Set[GraphEdge] = set() def __iter__(self) -> Generator: for edge in self.edges_list: yield edge def remove_edge(self, edge: GraphEdge): """Remove an edge from this edge repository. Args: edge: The edge to remove. Example: >>> edges = GraphEdgesRepository() >>> edges.add_edge(GraphEdge(source="foo", target="bar")) >>> edges.remove_edge(GraphEdge(source="foo", target="bar")) >>> edges.as_list() [] """ self.edges_list.remove(edge) def add_edge(self, edge: GraphEdge): """Add an edge to this edge repository. Args: edge: The edge to add. Example: >>> edges = GraphEdgesRepository() >>> edges.add_edge(GraphEdge(source="foo", target="bar")) >>> edges.as_list() [GraphEdge(source='foo', target='bar')] """ self.edges_list.add(edge) def as_list(self) -> List[GraphEdge]: """Return all edges in the repository as a list.""" return list(self.edges_list) def get_edges_by_node_ids(self, node_ids: Set[str]) -> List[GraphEdge]: """Return all edges whose source and target are in a given set of node_ids. Args: node_ids: The set of node_ids to get edges for. Returns: List of edges whose source and target are in the given set of node_ids. Return an empty list if no such edge can be found. Example: >>> edges = GraphEdgesRepository() >>> edges.add_edge(GraphEdge(source="foo", target="bar")) >>> edges.get_edges_by_node_ids({"foo", "bar"}) [GraphEdge(source='foo', target='bar')] >>> edges.get_edges_by_node_ids({"doesnt exist"}) [] """ return [e for e in self.edges_list if {e.source, e.target}.issubset(node_ids)]
34.147368
86
0.612207
421
3,244
4.543943
0.206651
0.040251
0.040774
0.075274
0.399373
0.271824
0.271824
0.215369
0.178777
0.153685
0
0
0.270037
3,244
94
87
34.510638
0.807855
0.414612
0
0.057143
0
0
0
0
0
0
0
0
0
1
0.371429
false
0
0.057143
0.142857
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
45f5974c25b21ce59942b408619892ecadcb31bf
1,749
py
Python
api/tests/scheme/user_queries.py
mingrammer/pyconkr-api
3c9fc70ed26008a50d3b4c296a4da84a8f93babb
[ "Apache-2.0" ]
1
2021-01-06T21:22:31.000Z
2021-01-06T21:22:31.000Z
api/tests/scheme/user_queries.py
mingrammer/pyconkr-api
3c9fc70ed26008a50d3b4c296a4da84a8f93babb
[ "Apache-2.0" ]
null
null
null
api/tests/scheme/user_queries.py
mingrammer/pyconkr-api
3c9fc70ed26008a50d3b4c296a4da84a8f93babb
[ "Apache-2.0" ]
null
null
null
ME = ''' query getMe { me { username isStaff isSuperuser isAgreed profile { id oauthType name nameKo nameEn bio bioKo bioEn email phone organization nationality image avatarUrl } } } ''' UPDATE_PROFILE = ''' mutation UpdateProfile($data: ProfileInput!) { updateProfile(data: $data) { profile { id oauthType name nameKo nameEn bio bioKo bioEn email phone organization nationality image avatarUrl } } } ''' UPDATE_AGREEMENT = ''' mutation UpdateAgreement($isPrivacyPolicy: Boolean, $isTermsOfService: Boolean) { updateAgreement(isPrivacyPolicy: $isPrivacyPolicy, isTermsOfService: $isTermsOfService) { isAgreedAll user { username isStaff isSuperuser isAgreed profile { id oauthType name nameKo nameEn bio bioKo bioEn email phone organization nationality image avatarUrl } } } } ''' PATRONS = ''' query getPatrons { patrons { id name nameKo nameEn bio bioKo bioEn organization image avatarUrl } } '''
18.21875
93
0.399085
95
1,749
7.326316
0.378947
0.057471
0.091954
0.109195
0.561782
0.561782
0.520115
0.520115
0.520115
0.520115
0
0
0.558033
1,749
96
94
18.21875
0.900388
0
0
0.72043
0
0
0.953143
0.037143
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
45f68b8631cf87fd8dfe82e771c103745b8f315c
113
py
Python
ex4.py
FernandaMakiHirose/programas-jupyter
40ebfc820fefceb14293715104641ef184acfff4
[ "MIT" ]
null
null
null
ex4.py
FernandaMakiHirose/programas-jupyter
40ebfc820fefceb14293715104641ef184acfff4
[ "MIT" ]
null
null
null
ex4.py
FernandaMakiHirose/programas-jupyter
40ebfc820fefceb14293715104641ef184acfff4
[ "MIT" ]
1
2021-06-09T22:33:11.000Z
2021-06-09T22:33:11.000Z
# Saber se algo é numérico, não pode colocar o tipo primitivo. n = input('Digite algo: ') print(n.isnumeric())
18.833333
62
0.699115
18
113
4.388889
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.176991
113
5
63
22.6
0.849462
0.530973
0
0
0
0
0.26
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
45fde9aa791799f7d835682a1882fde4ca6c7d48
131
py
Python
dggbot/user.py
Fritz-02/dgg-bot
f8b023e9152006dd6baa66b9557a5bace025e07b
[ "MIT" ]
2
2022-01-30T14:17:44.000Z
2022-01-31T13:39:04.000Z
dggbot/user.py
Fritz-02/dgg-bot
f8b023e9152006dd6baa66b9557a5bace025e07b
[ "MIT" ]
null
null
null
dggbot/user.py
Fritz-02/dgg-bot
f8b023e9152006dd6baa66b9557a5bace025e07b
[ "MIT" ]
null
null
null
import dataclasses @dataclasses.dataclass class User: name: str features: list = dataclasses.field(default_factory=list)
16.375
60
0.763359
15
131
6.6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.160305
131
7
61
18.714286
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.2
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
1
0
0
0
0
0
0
3
34181c562b800818d3cdcf73d4ce090d08aaeb43
290
py
Python
opcsim/rc_style.py
drewmee/opcsim
c430d359196939e219a2bdd20cd277f3c3dcc548
[ "MIT" ]
3
2020-11-07T03:24:19.000Z
2022-03-30T17:45:04.000Z
opcsim/rc_style.py
drewmee/opcsim
c430d359196939e219a2bdd20cd277f3c3dcc548
[ "MIT" ]
61
2017-10-30T15:58:33.000Z
2020-11-26T12:32:10.000Z
opcsim/rc_style.py
drewmee/opcsim
c430d359196939e219a2bdd20cd277f3c3dcc548
[ "MIT" ]
2
2019-09-19T14:47:49.000Z
2020-11-07T03:06:42.000Z
"""Make changes to the default styling which seaborn doesn't support """ import matplotlib as mpl def set(**kwargs): mpl.rcParams['figure.autolayout'] = kwargs.pop('figure.autolayout', False) mpl.rcParams['mathtext.default'] = kwargs.pop('mathtext.default', 'regular') return
29
80
0.717241
37
290
5.621622
0.702703
0.105769
0
0
0
0
0
0
0
0
0
0
0.137931
290
9
81
32.222222
0.832
0.224138
0
0
0
0
0.334862
0
0
0
0
0
0
1
0.2
true
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
3
342283450fc2f69ba6e4ac9ac90965d0aee74af1
413
py
Python
association-backend/src/customers/tests/factories.py
pythonitalia/pycon
14e03b2158916f9437fdbde70e48e5bf5266997e
[ "MIT" ]
56
2018-01-20T17:18:40.000Z
2022-03-28T22:42:04.000Z
association-backend/src/customers/tests/factories.py
pythonitalia/pycon
14e03b2158916f9437fdbde70e48e5bf5266997e
[ "MIT" ]
2,029
2018-01-20T11:37:24.000Z
2022-03-31T04:10:51.000Z
association-backend/src/customers/tests/factories.py
pythonitalia/pycon
14e03b2158916f9437fdbde70e48e5bf5266997e
[ "MIT" ]
17
2018-03-17T09:44:28.000Z
2021-12-27T19:57:35.000Z
import factory from faker import Faker from src.association.tests.factories import ModelFactory from src.customers.domain.entities import Customer fake = Faker() class CustomerFactory(ModelFactory): class Meta: model = Customer user_id = factory.LazyAttribute(lambda _: fake.pyint(min_value=1, max_value=1000)) stripe_customer_id = factory.LazyAttribute(lambda obj: f"cus_{obj.user_id}")
25.8125
86
0.769976
54
413
5.740741
0.592593
0.045161
0.141935
0.180645
0
0
0
0
0
0
0
0.014164
0.145278
413
15
87
27.533333
0.864023
0
0
0
0
0
0.041162
0
0
0
0
0
0
1
0
false
0
0.4
0
0.8
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
34450ea5c3c40b7f5641207407865966e1c84ea4
43,300
py
Python
pysnmp-with-texts/Nortel-Magellan-Passport-DataCollectionMIB.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/Nortel-Magellan-Passport-DataCollectionMIB.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/Nortel-Magellan-Passport-DataCollectionMIB.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 Nortel-Magellan-Passport-DataCollectionMIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-Magellan-Passport-DataCollectionMIB # Produced by pysmi-0.3.4 at Wed May 1 14:26:47 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, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection") DisplayString, StorageType, RowStatus, Unsigned32, Integer32, Gauge32, Counter32 = mibBuilder.importSymbols("Nortel-Magellan-Passport-StandardTextualConventionsMIB", "DisplayString", "StorageType", "RowStatus", "Unsigned32", "Integer32", "Gauge32", "Counter32") NonReplicated, EnterpriseDateAndTime, AsciiString = mibBuilder.importSymbols("Nortel-Magellan-Passport-TextualConventionsMIB", "NonReplicated", "EnterpriseDateAndTime", "AsciiString") passportMIBs, components = mibBuilder.importSymbols("Nortel-Magellan-Passport-UsefulDefinitionsMIB", "passportMIBs", "components") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, Bits, TimeTicks, iso, Integer32, Unsigned32, IpAddress, Counter64, Gauge32, Counter32, ObjectIdentity, MibIdentifier, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "Bits", "TimeTicks", "iso", "Integer32", "Unsigned32", "IpAddress", "Counter64", "Gauge32", "Counter32", "ObjectIdentity", "MibIdentifier", "NotificationType") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") dataCollectionMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 14)) col = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21)) colRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 1), ) if mibBuilder.loadTexts: colRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: colRowStatusTable.setDescription('This entry controls the addition and deletion of col components.') colRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-DataCollectionMIB", "colIndex")) if mibBuilder.loadTexts: colRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: colRowStatusEntry.setDescription('A single entry in the table represents a single col component.') colRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: colRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: colRowStatus.setDescription('This variable is used as the basis for SNMP naming of col components. These components can be added.') colComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: colComponentName.setStatus('mandatory') if mibBuilder.loadTexts: colComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") colStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: colStorageType.setStatus('mandatory') if mibBuilder.loadTexts: colStorageType.setDescription('This variable represents the storage type value for the col tables.') colIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("accounting", 0), ("alarm", 1), ("log", 2), ("debug", 3), ("scn", 4), ("trap", 5), ("stats", 6)))) if mibBuilder.loadTexts: colIndex.setStatus('mandatory') if mibBuilder.loadTexts: colIndex.setDescription('This variable represents the index for the col tables.') colProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 10), ) if mibBuilder.loadTexts: colProvTable.setStatus('mandatory') if mibBuilder.loadTexts: colProvTable.setDescription('This group specifies all of the provisioning data for a DCS Collector.') colProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-DataCollectionMIB", "colIndex")) if mibBuilder.loadTexts: colProvEntry.setStatus('mandatory') if mibBuilder.loadTexts: colProvEntry.setDescription('An entry in the colProvTable.') colAgentQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(20, 10000), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: colAgentQueueSize.setStatus('obsolete') if mibBuilder.loadTexts: colAgentQueueSize.setDescription("This attribute has been replaced with the agentQueueSize attribute in the Lp Engineering DataStream Ov component. Upon migration, if the existing provisioned value of this attribute is the same as the system default for this type of data, no new components are added because the default is what the DataStream component already would be using. Otherwise, if the value is not the same as the system default, then for each Lp which is provisioned at the time of the migration, a DataStream is provisioned and the Ov's agentQueueSize is set to the non-default value.") colStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 11), ) if mibBuilder.loadTexts: colStatsTable.setStatus('mandatory') if mibBuilder.loadTexts: colStatsTable.setDescription('This group specifies the statistics operational attributes of the DCS Collector, Agent and Spooler components.') colStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 11, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-DataCollectionMIB", "colIndex")) if mibBuilder.loadTexts: colStatsEntry.setStatus('mandatory') if mibBuilder.loadTexts: colStatsEntry.setDescription('An entry in the colStatsTable.') colCurrentQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 11, 1, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: colCurrentQueueSize.setStatus('mandatory') if mibBuilder.loadTexts: colCurrentQueueSize.setDescription('This gauge contains the current number of records held by this DCS component.') colRecordsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 11, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: colRecordsRx.setStatus('mandatory') if mibBuilder.loadTexts: colRecordsRx.setDescription('This counter contains the cumulative number of records received by a DCS component, from applications which send data to it, since the processor last restarted. This counter wraps to 0 when the maximum value is exceeded.') colRecordsDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 11, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: colRecordsDiscarded.setStatus('mandatory') if mibBuilder.loadTexts: colRecordsDiscarded.setDescription('This is the cumulative number of records discarded by this DCS component since the processor last restarted. This counter wraps to 0 when the maximum value is exceeded.') colTimesTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 266), ) if mibBuilder.loadTexts: colTimesTable.setStatus('mandatory') if mibBuilder.loadTexts: colTimesTable.setDescription('This attribute specifies the scheduled times at which data should be collected. Only accounting applications need the capability to generate data in this way. Setting this attribute for other streams has no effect. The user can enter the times in any order and duplicates are prevented at data entry. There is a limit of 24 entries, which is imposed at semantic check time. The collection times are triggered in chronological order. A semantic check error is issued if any 2 entries are less than 1 hour apart or if any 2 entries are more than 12 hours apart (which implies that if any entries are provided, there must be at least 2 entries). Note that by default (that is, in the absence of a provisioned schedule), a Virtual Circuit (VC) starts its own 12-hour accounting timer. If any collection times are provisioned here, then the Time- Of-Day-Accounting (TODA) method is used in place of 12-hour accounting. This is applicable to both Switched VCs and Permanent VCs.') colTimesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 266, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-DataCollectionMIB", "colIndex"), (0, "Nortel-Magellan-Passport-DataCollectionMIB", "colTimesValue")) if mibBuilder.loadTexts: colTimesEntry.setStatus('mandatory') if mibBuilder.loadTexts: colTimesEntry.setDescription('An entry in the colTimesTable.') colTimesValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 266, 1, 1), EnterpriseDateAndTime().subtype(subtypeSpec=ValueSizeConstraint(5, 5)).setFixedLength(5)).setMaxAccess("readwrite") if mibBuilder.loadTexts: colTimesValue.setStatus('mandatory') if mibBuilder.loadTexts: colTimesValue.setDescription('This variable represents both the value and the index for the colTimesTable.') colTimesRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 266, 1, 2), RowStatus()).setMaxAccess("writeonly") if mibBuilder.loadTexts: colTimesRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: colTimesRowStatus.setDescription('This variable is used to control the addition and deletion of individual values of the colTimesTable.') colLastTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 275), ) if mibBuilder.loadTexts: colLastTable.setStatus('obsolete') if mibBuilder.loadTexts: colLastTable.setDescription('Note: This was made obsolete in R4.1 (BD0108A). This attribute is used for Collector/stats and Collector/account. For statistics, when collection is turned off, or prior to the very first probe, the value is the empty list. Otherwise, this is the network time at which the last probe was sent out (that is, the last time that statistics were collected from, or at least reset by, the applications providing them). For accounting, when no entries exist in collectionTimes, or prior to the very first collection time, the value is the empty list. Otherwise, this is the network time at which the last time-of-day changeover occurred.') colLastEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 275, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-DataCollectionMIB", "colIndex"), (0, "Nortel-Magellan-Passport-DataCollectionMIB", "colLastValue")) if mibBuilder.loadTexts: colLastEntry.setStatus('obsolete') if mibBuilder.loadTexts: colLastEntry.setDescription('An entry in the colLastTable.') colLastValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 275, 1, 1), EnterpriseDateAndTime().subtype(subtypeSpec=ValueSizeConstraint(19, 19)).setFixedLength(19)).setMaxAccess("readonly") if mibBuilder.loadTexts: colLastValue.setStatus('obsolete') if mibBuilder.loadTexts: colLastValue.setDescription('This variable represents both the value and the index for the colLastTable.') colPeakTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 279), ) if mibBuilder.loadTexts: colPeakTable.setStatus('mandatory') if mibBuilder.loadTexts: colPeakTable.setDescription('This attribute specifies the length of the accounting peak water mark interval. It is at least one minute and at most 15 minutes long. An accounting peak water mark within a given accounting interval is the accounting count which occured during a peak water mark interval with the highest traffic. Peak water marks are used to determine traffic bursts. If no value is provisioned for this attribute value of 5 minutes is assumed. Peak water mark is only measured if attribute collectionTimes in Collector/account is provisioned.') colPeakEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 279, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-DataCollectionMIB", "colIndex"), (0, "Nortel-Magellan-Passport-DataCollectionMIB", "colPeakValue")) if mibBuilder.loadTexts: colPeakEntry.setStatus('mandatory') if mibBuilder.loadTexts: colPeakEntry.setDescription('An entry in the colPeakTable.') colPeakValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 279, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: colPeakValue.setStatus('mandatory') if mibBuilder.loadTexts: colPeakValue.setDescription('This variable represents both the value and the index for the colPeakTable.') colPeakRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 279, 1, 2), RowStatus()).setMaxAccess("writeonly") if mibBuilder.loadTexts: colPeakRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: colPeakRowStatus.setDescription('This variable is used to control the addition and deletion of individual values of the colPeakTable.') colSp = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2)) colSpRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 1), ) if mibBuilder.loadTexts: colSpRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: colSpRowStatusTable.setDescription('This entry controls the addition and deletion of colSp components.') colSpRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-DataCollectionMIB", "colIndex"), (0, "Nortel-Magellan-Passport-DataCollectionMIB", "colSpIndex")) if mibBuilder.loadTexts: colSpRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: colSpRowStatusEntry.setDescription('A single entry in the table represents a single colSp component.') colSpRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: colSpRowStatus.setDescription('This variable is used as the basis for SNMP naming of colSp components. These components cannot be added nor deleted.') colSpComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpComponentName.setStatus('mandatory') if mibBuilder.loadTexts: colSpComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") colSpStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpStorageType.setStatus('mandatory') if mibBuilder.loadTexts: colSpStorageType.setDescription('This variable represents the storage type value for the colSp tables.') colSpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: colSpIndex.setStatus('mandatory') if mibBuilder.loadTexts: colSpIndex.setDescription('This variable represents the index for the colSp tables.') colSpProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 10), ) if mibBuilder.loadTexts: colSpProvTable.setStatus('mandatory') if mibBuilder.loadTexts: colSpProvTable.setDescription('This group specifies all of the provisioning data for a DCS Spooler.') colSpProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-DataCollectionMIB", "colIndex"), (0, "Nortel-Magellan-Passport-DataCollectionMIB", "colSpIndex")) if mibBuilder.loadTexts: colSpProvEntry.setStatus('mandatory') if mibBuilder.loadTexts: colSpProvEntry.setDescription('An entry in the colSpProvTable.') colSpSpooling = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 10, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("off", 0), ("on", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: colSpSpooling.setStatus('mandatory') if mibBuilder.loadTexts: colSpSpooling.setDescription('This attribute specifies whether or not this type of data is spooled to the disk. If set to off, it is roughly equivalent to Locking the Spooler (except this will survive processor restarts). The following defaults are used: - alarm: on - accounting: on - log: on - debug: off - scn: on - trap: off (see Note below) - stats: on Note that SNMP Traps cannot be spooled. A semantic check prevents the user from setting the value to on for the trap stream.') colSpMaximumNumberOfFiles = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite") if mibBuilder.loadTexts: colSpMaximumNumberOfFiles.setStatus('mandatory') if mibBuilder.loadTexts: colSpMaximumNumberOfFiles.setDescription("This attribute specifies the maximum number of files that should be kept on the disk in the directory containing the closed files of this type. The value 0 is defined to mean 'unlimited'. A different default for each type of Spooler is defined as follows: - alarm: 30 - accounting: 200 - debug: 2 - log: 10 - scn: 10 - trap: 2 (this value is meaningless and is ignored) - stats: 200") colSpStateTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 11), ) if mibBuilder.loadTexts: colSpStateTable.setStatus('mandatory') if mibBuilder.loadTexts: colSpStateTable.setDescription('This group contains the three OSI State attributes and the six OSI Status attributes. The descriptions generically indicate what each attribute implies about the component. Note that not all the values and state combinations described here are supported by every component which uses this group. For component-specific information and the valid state combinations, refer to NTP 241- 7001-150, Passport Operations and Maintenance Guide.') colSpStateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 11, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-DataCollectionMIB", "colIndex"), (0, "Nortel-Magellan-Passport-DataCollectionMIB", "colSpIndex")) if mibBuilder.loadTexts: colSpStateEntry.setStatus('mandatory') if mibBuilder.loadTexts: colSpStateEntry.setDescription('An entry in the colSpStateTable.') colSpAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("locked", 0), ("unlocked", 1), ("shuttingDown", 2))).clone('unlocked')).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpAdminState.setStatus('mandatory') if mibBuilder.loadTexts: colSpAdminState.setDescription('This attribute indicates the OSI Administrative State of the component. The value locked indicates that the component is administratively prohibited from providing services for its users. A Lock or Lock - force command has been previously issued for this component. When the value is locked, the value of usageState must be idle. The value shuttingDown indicates that the component is administratively permitted to provide service to its existing users only. A Lock command was issued against the component and it is in the process of shutting down. The value unlocked indicates that the component is administratively permitted to provide services for its users. To enter this state, issue an Unlock command to this component. The OSI Status attributes, if supported by the component, may provide more details, qualifying the state of the component.') colSpOperationalState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 11, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1))).clone('disabled')).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpOperationalState.setStatus('mandatory') if mibBuilder.loadTexts: colSpOperationalState.setDescription('This attribute indicates the OSI Operational State of the component. The value enabled indicates that the component is available for operation. Note that if adminState is locked, it would still not be providing service. The value disabled indicates that the component is not available for operation. For example, something is wrong with the component itself, or with another component on which this one depends. If the value is disabled, the usageState must be idle. The OSI Status attributes, if supported by the component, may provide more details, qualifying the state of the component.') colSpUsageState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 11, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("idle", 0), ("active", 1), ("busy", 2))).clone('idle')).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpUsageState.setStatus('mandatory') if mibBuilder.loadTexts: colSpUsageState.setDescription('This attribute indicates the OSI Usage State of the component. The value idle indicates that the component is not currently in use. The value active indicates that the component is in use and has spare capacity to provide for additional users. The value busy indicates that the component is in use and has no spare operating capacity for additional users at this time. The OSI Status attributes, if supported by the component, may provide more details, qualifying the state of the component.') colSpAvailabilityStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 11, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpAvailabilityStatus.setStatus('mandatory') if mibBuilder.loadTexts: colSpAvailabilityStatus.setDescription('If supported by the component, this attribute indicates the OSI Availability status of the component. Note that, even though it is defined as a multi-valued set, at most one value is shown to the user. When no values are in the set, this indicates that either the attribute is not supported or that none of the status conditions described below are present. The value inTest indicates that the resource is undergoing a test procedure. If adminState is locked or shuttingDown, the normal users are precluded from using the resource and controlStatus is reservedForTest. Tests that do not exclude additional users can be present in any operational or administrative state but the reservedForTest condition should not be present. The value failed indicates that the component has an internal fault that prevents it from operating. The operationalState is disabled. The value dependency indicates that the component cannot operate because some other resource on which it depends is unavailable. The operationalState is disabled. The value powerOff indicates the resource requires power to be applied and it is not powered on. The operationalState is disabled. The value offLine indicates the resource requires a routine operation (either manual, automatic, or both) to be performed to place it on-line and make it available for use. The operationalState is disabled. The value offDuty indicates the resource is inactive in accordance with a predetermined time schedule. In the absence of other disabling conditions, the operationalState is enabled or disabled. The value degraded indicates the service provided by the component is degraded in some way, such as in speed or operating capacity. However, the resource remains available for service. The operationalState is enabled. The value notInstalled indicates the resource is not present. The operationalState is disabled. The value logFull is not used. Description of bits: inTest(0) failed(1) powerOff(2) offLine(3) offDuty(4) dependency(5) degraded(6) notInstalled(7) logFull(8)') colSpProceduralStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 11, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpProceduralStatus.setStatus('mandatory') if mibBuilder.loadTexts: colSpProceduralStatus.setDescription("If supported by the component, this attribute indicates the OSI Procedural status of the component. Note that, even though it is defined as a multi-valued set, at most one value is shown to the user. When no values are in the set, this indicates that either the attribute is not supported or that none of the status conditions described below are present. The value initializationRequired indicates (for a resource which doesn't initialize autonomously) that initialization is required before it can perform its normal functions, and this procedure has not been initiated. The operationalState is disabled. The value notInitialized indicates (for a resource which does initialize autonomously) that initialization is required before it can perform its normal functions, and this procedure has not been initiated. The operationalState may be enabled or disabled. The value initializing indicates that initialization has been initiated but is not yet complete. The operationalState may be enabled or disabled. The value reporting indicates the resource has completed some processing operation and is notifying the results. The operationalState is enabled. The value terminating indicates the component is in a termination phase. If the resource doesn't reinitialize autonomously, operationalState is disabled; otherwise it is enabled or disabled. Description of bits: initializationRequired(0) notInitialized(1) initializing(2) reporting(3) terminating(4)") colSpControlStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 11, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpControlStatus.setStatus('mandatory') if mibBuilder.loadTexts: colSpControlStatus.setDescription('If supported by the component, this attribute indicates the OSI Control status of the component. Note that, even though it is defined as a multi-valued set, at most one value is shown to the user. When no values are in the set, this indicates that either the attribute is not supported or that none of the status conditions described below are present. The value subjectToTest indicates the resource is available but tests may be conducted simultaneously at unpredictable times, which may cause it to exhibit unusual characteristics. The value partOfServicesLocked indicates that part of the service is restricted from users of a resource. The adminState is unlocked. The value reservedForTest indicates that the component is administratively unavailable because it is undergoing a test procedure. The adminState is locked. The value suspended indicates that the service has been administratively suspended. Description of bits: subjectToTest(0) partOfServicesLocked(1) reservedForTest(2) suspended(3)') colSpAlarmStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 11, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpAlarmStatus.setStatus('mandatory') if mibBuilder.loadTexts: colSpAlarmStatus.setDescription('If supported by the component, this attribute indicates the OSI Alarm status of the component. Note that, even though it is defined as a multi-valued set, at most one value is shown to the user. When no values are in the set, this indicates that either the attribute is not supported or that none of the status conditions described below are present. The value underRepair indicates the component is currently being repaired. The operationalState is enabled or disabled. The value critical indicates one or more critical alarms are outstanding against the component. Other, less severe, alarms may also be outstanding. The operationalState is enabled or disabled. The value major indicates one or more major alarms are outstanding against the component. Other, less severe, alarms may also be outstanding. The operationalState is enabled or disabled. The value minor indicates one or more minor alarms are outstanding against the component. Other, less severe, alarms may also be outstanding. The operationalState is enabled or disabled. The value alarmOutstanding generically indicates that an alarm of some severity is outstanding against the component. Description of bits: underRepair(0) critical(1) major(2) minor(3) alarmOutstanding(4)') colSpStandbyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 11, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 15))).clone(namedValues=NamedValues(("hotStandby", 0), ("coldStandby", 1), ("providingService", 2), ("notSet", 15))).clone('notSet')).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpStandbyStatus.setStatus('mandatory') if mibBuilder.loadTexts: colSpStandbyStatus.setDescription('If supported by the component, this attribute indicates the OSI Standby status of the component. The value notSet indicates that either the attribute is not supported or that none of the status conditions described below are present. Note that this is a non-standard value, used because the original specification indicated this attribute was set-valued and thus, did not provide a value to indicate that none of the other three are applicable. The value hotStandby indicates that the resource is not providing service but will be immediately able to take over the role of the resource to be backed up, without initialization activity, and containing the same information as the resource to be backed up. The value coldStandby indicates the resource is a backup for another resource but will not be immediately able to take over the role of the backed up resource and will require some initialization activity. The value providingService indicates that this component, as a backup resource, is currently backing up another resource.') colSpUnknownStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 11, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("false", 0), ("true", 1))).clone('false')).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpUnknownStatus.setStatus('mandatory') if mibBuilder.loadTexts: colSpUnknownStatus.setDescription('This attribute indicates the OSI Unknown status of the component. The value false indicates that all of the other OSI State and Status attribute values can be considered accurate. The value true indicates that the actual state of the component is not known for sure.') colSpOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 12), ) if mibBuilder.loadTexts: colSpOperTable.setStatus('mandatory') if mibBuilder.loadTexts: colSpOperTable.setDescription('This group contains the operational attributes specific to a DCS Spooler.') colSpOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 12, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-DataCollectionMIB", "colIndex"), (0, "Nortel-Magellan-Passport-DataCollectionMIB", "colSpIndex")) if mibBuilder.loadTexts: colSpOperEntry.setStatus('mandatory') if mibBuilder.loadTexts: colSpOperEntry.setDescription('An entry in the colSpOperTable.') colSpSpoolingFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 12, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpSpoolingFileName.setStatus('mandatory') if mibBuilder.loadTexts: colSpSpoolingFileName.setDescription('When spooling is on, this attribute contains the name of the open file into which data is currently being spooled. When spooling is off, the value of this attribute is the empty string.') colSpStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 13), ) if mibBuilder.loadTexts: colSpStatsTable.setStatus('mandatory') if mibBuilder.loadTexts: colSpStatsTable.setDescription('This group specifies the statistics operational attributes of the DCS Collector, Agent and Spooler components.') colSpStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 13, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-DataCollectionMIB", "colIndex"), (0, "Nortel-Magellan-Passport-DataCollectionMIB", "colSpIndex")) if mibBuilder.loadTexts: colSpStatsEntry.setStatus('mandatory') if mibBuilder.loadTexts: colSpStatsEntry.setDescription('An entry in the colSpStatsTable.') colSpCurrentQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 13, 1, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpCurrentQueueSize.setStatus('mandatory') if mibBuilder.loadTexts: colSpCurrentQueueSize.setDescription('This gauge contains the current number of records held by this DCS component.') colSpRecordsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 13, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpRecordsRx.setStatus('mandatory') if mibBuilder.loadTexts: colSpRecordsRx.setDescription('This counter contains the cumulative number of records received by a DCS component, from applications which send data to it, since the processor last restarted. This counter wraps to 0 when the maximum value is exceeded.') colSpRecordsDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 2, 13, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: colSpRecordsDiscarded.setStatus('mandatory') if mibBuilder.loadTexts: colSpRecordsDiscarded.setDescription('This is the cumulative number of records discarded by this DCS component since the processor last restarted. This counter wraps to 0 when the maximum value is exceeded.') colAg = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 3)) colAgRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 3, 1), ) if mibBuilder.loadTexts: colAgRowStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: colAgRowStatusTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This entry controls the addition and deletion of colAg components.') colAgRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 3, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-DataCollectionMIB", "colIndex"), (0, "Nortel-Magellan-Passport-DataCollectionMIB", "colAgIndex")) if mibBuilder.loadTexts: colAgRowStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: colAgRowStatusEntry.setDescription('A single entry in the table represents a single colAg component.') colAgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 3, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: colAgRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: colAgRowStatus.setDescription('This variable is used as the basis for SNMP naming of colAg components. These components cannot be added nor deleted.') colAgComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: colAgComponentName.setStatus('mandatory') if mibBuilder.loadTexts: colAgComponentName.setDescription("This variable provides the component's string name for use with the ASCII Console Interface") colAgStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: colAgStorageType.setStatus('mandatory') if mibBuilder.loadTexts: colAgStorageType.setDescription('This variable represents the storage type value for the colAg tables.') colAgIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))) if mibBuilder.loadTexts: colAgIndex.setStatus('mandatory') if mibBuilder.loadTexts: colAgIndex.setDescription('This variable represents the index for the colAg tables.') colAgStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 3, 10), ) if mibBuilder.loadTexts: colAgStatsTable.setStatus('mandatory') if mibBuilder.loadTexts: colAgStatsTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This group specifies the statistics operational attributes of the DCS Collector, Agent and Spooler components.') colAgStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 3, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-DataCollectionMIB", "colIndex"), (0, "Nortel-Magellan-Passport-DataCollectionMIB", "colAgIndex")) if mibBuilder.loadTexts: colAgStatsEntry.setStatus('mandatory') if mibBuilder.loadTexts: colAgStatsEntry.setDescription('An entry in the colAgStatsTable.') colAgCurrentQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 3, 10, 1, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: colAgCurrentQueueSize.setStatus('mandatory') if mibBuilder.loadTexts: colAgCurrentQueueSize.setDescription('This gauge contains the current number of records held by this DCS component.') colAgRecordsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 3, 10, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: colAgRecordsRx.setStatus('mandatory') if mibBuilder.loadTexts: colAgRecordsRx.setDescription('This counter contains the cumulative number of records received by a DCS component, from applications which send data to it, since the processor last restarted. This counter wraps to 0 when the maximum value is exceeded.') colAgRecordsDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 3, 10, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: colAgRecordsDiscarded.setStatus('mandatory') if mibBuilder.loadTexts: colAgRecordsDiscarded.setDescription('This is the cumulative number of records discarded by this DCS component since the processor last restarted. This counter wraps to 0 when the maximum value is exceeded.') colAgAgentStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 3, 11), ) if mibBuilder.loadTexts: colAgAgentStatsTable.setStatus('mandatory') if mibBuilder.loadTexts: colAgAgentStatsTable.setDescription('*** THIS TABLE CURRENTLY NOT IMPLEMENTED *** This group contains the statistical attributes specific to the DCS Agent components.') colAgAgentStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 3, 11, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-DataCollectionMIB", "colIndex"), (0, "Nortel-Magellan-Passport-DataCollectionMIB", "colAgIndex")) if mibBuilder.loadTexts: colAgAgentStatsEntry.setStatus('mandatory') if mibBuilder.loadTexts: colAgAgentStatsEntry.setDescription('An entry in the colAgAgentStatsTable.') colAgRecordsNotGenerated = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 21, 3, 11, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: colAgRecordsNotGenerated.setStatus('mandatory') if mibBuilder.loadTexts: colAgRecordsNotGenerated.setDescription('This attribute counts the records of a particular event type on this Card which could not be generated by some application due to some problem such as insufficient resources. One cannot tell exactly which event could not be generated, nor which application instance tried to generate it, but when this count increases, it is an indicator that some re-engineering may be required and will provide some idea as to why a record is missing. This counter wraps to 0 when the maximum value is exceeded.') dataCollectionGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 14, 1)) dataCollectionGroupBE = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 14, 1, 5)) dataCollectionGroupBE00 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 14, 1, 5, 1)) dataCollectionGroupBE00A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 14, 1, 5, 1, 2)) dataCollectionCapabilities = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 14, 3)) dataCollectionCapabilitiesBE = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 14, 3, 5)) dataCollectionCapabilitiesBE00 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 14, 3, 5, 1)) dataCollectionCapabilitiesBE00A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 14, 3, 5, 1, 2)) mibBuilder.exportSymbols("Nortel-Magellan-Passport-DataCollectionMIB", colSpProvEntry=colSpProvEntry, dataCollectionCapabilitiesBE=dataCollectionCapabilitiesBE, colTimesEntry=colTimesEntry, colSpSpooling=colSpSpooling, colAgAgentStatsEntry=colAgAgentStatsEntry, colSpStorageType=colSpStorageType, colProvEntry=colProvEntry, colTimesTable=colTimesTable, colSp=colSp, colAgRowStatusTable=colAgRowStatusTable, colAgRecordsDiscarded=colAgRecordsDiscarded, colRowStatusEntry=colRowStatusEntry, colAgAgentStatsTable=colAgAgentStatsTable, colSpCurrentQueueSize=colSpCurrentQueueSize, colSpSpoolingFileName=colSpSpoolingFileName, colSpOperEntry=colSpOperEntry, dataCollectionMIB=dataCollectionMIB, colSpMaximumNumberOfFiles=colSpMaximumNumberOfFiles, colAg=colAg, colSpComponentName=colSpComponentName, dataCollectionCapabilitiesBE00A=dataCollectionCapabilitiesBE00A, dataCollectionGroup=dataCollectionGroup, colAgentQueueSize=colAgentQueueSize, dataCollectionCapabilities=dataCollectionCapabilities, colRowStatusTable=colRowStatusTable, colSpUsageState=colSpUsageState, colSpStandbyStatus=colSpStandbyStatus, colIndex=colIndex, colLastTable=colLastTable, colSpIndex=colSpIndex, colAgRecordsNotGenerated=colAgRecordsNotGenerated, colPeakRowStatus=colPeakRowStatus, colSpAlarmStatus=colSpAlarmStatus, colTimesRowStatus=colTimesRowStatus, colSpAvailabilityStatus=colSpAvailabilityStatus, colAgIndex=colAgIndex, colSpUnknownStatus=colSpUnknownStatus, colComponentName=colComponentName, colSpRowStatusTable=colSpRowStatusTable, colLastValue=colLastValue, colSpRowStatus=colSpRowStatus, colPeakTable=colPeakTable, colSpRowStatusEntry=colSpRowStatusEntry, colTimesValue=colTimesValue, colSpOperationalState=colSpOperationalState, colAgCurrentQueueSize=colAgCurrentQueueSize, colSpOperTable=colSpOperTable, colCurrentQueueSize=colCurrentQueueSize, dataCollectionGroupBE00A=dataCollectionGroupBE00A, colSpProceduralStatus=colSpProceduralStatus, colSpStateEntry=colSpStateEntry, col=col, colAgStatsEntry=colAgStatsEntry, colSpControlStatus=colSpControlStatus, colStatsTable=colStatsTable, colSpRecordsDiscarded=colSpRecordsDiscarded, colPeakValue=colPeakValue, colSpRecordsRx=colSpRecordsRx, colAgStatsTable=colAgStatsTable, colAgRecordsRx=colAgRecordsRx, colRowStatus=colRowStatus, colAgRowStatusEntry=colAgRowStatusEntry, colSpAdminState=colSpAdminState, colAgComponentName=colAgComponentName, colRecordsRx=colRecordsRx, colAgStorageType=colAgStorageType, colRecordsDiscarded=colRecordsDiscarded, colSpStatsTable=colSpStatsTable, colStatsEntry=colStatsEntry, colSpStatsEntry=colSpStatsEntry, colProvTable=colProvTable, dataCollectionCapabilitiesBE00=dataCollectionCapabilitiesBE00, colStorageType=colStorageType, colAgRowStatus=colAgRowStatus, colSpProvTable=colSpProvTable, colSpStateTable=colSpStateTable, colPeakEntry=colPeakEntry, dataCollectionGroupBE=dataCollectionGroupBE, colLastEntry=colLastEntry, dataCollectionGroupBE00=dataCollectionGroupBE00)
185.042735
2,940
0.787829
5,734
43,300
5.94925
0.122951
0.008853
0.083722
0.009381
0.535338
0.408525
0.376074
0.370738
0.340721
0.316829
0
0.046507
0.11261
43,300
233
2,941
185.83691
0.841297
0.00873
0
0
0
0.119469
0.489688
0.032461
0
0
0
0
0
1
0
false
0.084071
0.039823
0
0.039823
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
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
34535e54870006d4a3d5e43f4a2bdf26d9b6928d
138
py
Python
hacker/challenges/coding/bcd.py
Tenebrar/codebase
59c9a35289fb29afedad0e3edd0519b67372ef9f
[ "Unlicense" ]
1
2020-04-21T11:39:25.000Z
2020-04-21T11:39:25.000Z
hacker/challenges/coding/bcd.py
Tenebrar/codebase
59c9a35289fb29afedad0e3edd0519b67372ef9f
[ "Unlicense" ]
7
2020-02-12T01:08:01.000Z
2022-02-10T11:56:56.000Z
hacker/challenges/coding/bcd.py
Tenebrar/codebase
59c9a35289fb29afedad0e3edd0519b67372ef9f
[ "Unlicense" ]
null
null
null
from hacker.decoder import decode, int2 value = '0111 0011 1001 0011 1001 0001' result = decode(value.split(), int2, str) print(result)
19.714286
41
0.73913
21
138
4.857143
0.714286
0.156863
0
0
0
0
0
0
0
0
0
0.222222
0.152174
138
6
42
23
0.649573
0
0
0
0
0
0.210145
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
347fb44411535a64923256ce2f175757d9bebbb7
112
py
Python
OldCode/Old/draw.py
lovemybabyxuan/PythonLearning
38eedeec72bb80c8497ab70970c429945ccdeb31
[ "MulanPSL-1.0" ]
null
null
null
OldCode/Old/draw.py
lovemybabyxuan/PythonLearning
38eedeec72bb80c8497ab70970c429945ccdeb31
[ "MulanPSL-1.0" ]
null
null
null
OldCode/Old/draw.py
lovemybabyxuan/PythonLearning
38eedeec72bb80c8497ab70970c429945ccdeb31
[ "MulanPSL-1.0" ]
null
null
null
import turtle as t t.goto(100,0) for i in range(50): t.left(80) t.fd(100) t.left(135) t.fd(105)
16
20
0.571429
25
112
2.56
0.68
0.15625
0
0
0
0
0
0
0
0
0
0.204819
0.258929
112
7
21
16
0.566265
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
3482b58d2da27163116fe081a9abc1372530b434
891
py
Python
pynmodl/model_utils.py
tjbanks/pynmodl
b7d6bb378711ce19cd651561c08146e3571d986a
[ "MIT" ]
9
2017-06-03T19:33:46.000Z
2019-10-27T22:19:37.000Z
pynmodl/model_utils.py
tjbanks/pynmodl
b7d6bb378711ce19cd651561c08146e3571d986a
[ "MIT" ]
11
2017-10-13T16:09:10.000Z
2019-05-08T16:37:11.000Z
pynmodl/model_utils.py
tjbanks/pynmodl
b7d6bb378711ce19cd651561c08146e3571d986a
[ "MIT" ]
2
2017-08-29T14:29:45.000Z
2019-12-31T19:45:02.000Z
from textx.model import children_of_type, metamodel # should probably go into handcoded 'FuncDef' class def side_effects(funcdef): if funcdef.is_procedure: side_effs = [asgn.variable.name for asgn in children_of_type('Assignment', funcdef) if is_assignment(asgn) and not isinstance(asgn.variable, 'Local')] else: side_effs = [] return side_effs # should probably go into handcoded 'Expression' class def expr_t(node, type_name): return metamodel(node).namespaces['expressions'][type_name] def is_assignment(node): return all((getattr(node, 'variable', False), isinstance(node, expr_t(node, 'Assignment')))) def is_composite(node): return len(children_of_type('Negation', node)) > 1 def has_func_calls(node): return len(children_of_type('FuncCall', node)) > 0
27.84375
72
0.666667
113
891
5.061947
0.460177
0.06993
0.097902
0.06993
0.195804
0.094406
0
0
0
0
0
0.002915
0.230079
891
31
73
28.741935
0.830904
0.114478
0
0
0
0
0.076336
0
0
0
0
0
0
1
0.263158
false
0
0.052632
0.210526
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
caa2dc182ed6c5b1cef5d0340367dd85235354aa
723
py
Python
demo_numpy/numpy_11_single_array.py
caserwin/daily-learning-python
01fea4c5d4e86cbea2dbef8817146f018b5f1479
[ "Apache-2.0" ]
1
2019-05-04T07:27:18.000Z
2019-05-04T07:27:18.000Z
demo_numpy/numpy_11_single_array.py
caserwin/daily-learning-python
01fea4c5d4e86cbea2dbef8817146f018b5f1479
[ "Apache-2.0" ]
null
null
null
demo_numpy/numpy_11_single_array.py
caserwin/daily-learning-python
01fea4c5d4e86cbea2dbef8817146f018b5f1479
[ "Apache-2.0" ]
1
2018-09-20T01:49:36.000Z
2018-09-20T01:49:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019-04-17 15:58 # @Author : erwin import numpy as np from common.util_function import * np.set_printoptions(precision=3) arr = np.linspace(0, 100, 10).reshape((2, 5)) print_line("原始数据") print_br(arr) print_line("单个array操作") print_br(np.add(arr, 2)) print_br(np.subtract(arr, 2)) print_br(np.multiply(arr, 2)) print_br(np.divide(arr, 2)) print_br(np.power(arr, 2)) print_line("平方以及开方") print_br(np.power(arr, 2)) print_br(np.sqrt(arr)) print_line("sin/cos/log/abs") print_br(np.sin(arr)) print_br(np.cos(arr)) # print_br(np.log(arr1)) print_br(np.abs(arr)) print_line("向上取整/向下取整/四舍五入") print_br(np.ceil(arr)) print_br(np.floor(arr)) print_br(np.round(arr))
20.657143
45
0.705394
137
723
3.562044
0.423358
0.215164
0.258197
0.112705
0.190574
0.094262
0.094262
0
0
0
0
0.044275
0.094053
723
34
46
21.264706
0.700763
0.152144
0
0.086957
0
0
0.078947
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
0.869565
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
caba240cf2c604c3c43b635f1eed202578b98632
227
py
Python
py_backwards/conf.py
graingert/py-backwards
fd2d89ad972148024ee667eff5b9f19ac91d98ad
[ "MIT" ]
338
2017-04-27T15:03:46.000Z
2022-03-29T18:59:34.000Z
py_backwards/conf.py
graingert/py-backwards
fd2d89ad972148024ee667eff5b9f19ac91d98ad
[ "MIT" ]
43
2017-04-27T19:20:18.000Z
2021-10-11T10:39:35.000Z
py_backwards/conf.py
graingert/py-backwards
fd2d89ad972148024ee667eff5b9f19ac91d98ad
[ "MIT" ]
17
2017-04-28T00:36:14.000Z
2021-08-04T15:59:59.000Z
from argparse import Namespace class Settings: def __init__(self) -> None: self.debug = False settings = Settings() def init_settings(args: Namespace) -> None: if args.debug: settings.debug = True
15.133333
43
0.660793
27
227
5.37037
0.555556
0.151724
0.206897
0
0
0
0
0
0
0
0
0
0.246696
227
14
44
16.214286
0.847953
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.5
0
1
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
1
0
0
0
0
0
0
0
3
caea9da207896bbfe1f086ad49e463268ea1f6bc
797
py
Python
faculty/apps.py
bbengfort/webfolio
16a38c59d11a34f7fe32eee3ee46e1bdc788a9eb
[ "BSD-3-Clause" ]
1
2020-04-07T03:43:34.000Z
2020-04-07T03:43:34.000Z
faculty/apps.py
bbengfort/webfolio
16a38c59d11a34f7fe32eee3ee46e1bdc788a9eb
[ "BSD-3-Clause" ]
18
2020-01-02T16:35:58.000Z
2021-09-22T18:18:09.000Z
faculty/apps.py
bbengfort/webfolio
16a38c59d11a34f7fe32eee3ee46e1bdc788a9eb
[ "BSD-3-Clause" ]
1
2020-03-04T01:39:00.000Z
2020-03-04T01:39:00.000Z
# faculty.apps # Faculty apps and configuration. # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Thu Dec 26 16:06:48 2019 -0600 # # Copyright (C) 2019 Georgetown University # For license information, see LICENSE.txt # # ID: apps.py [] benjamin@bengfort.com $ """ Faculty apps and configuration. """ ########################################################################## ## Imports ########################################################################## from django.apps import AppConfig ########################################################################## ## AppConfig ########################################################################## class FacultyConfig(AppConfig): name = 'faculty' def ready(self): import faculty.signals # noqa
24.151515
74
0.437892
61
797
5.721311
0.672131
0.094556
0.080229
0.154728
0
0
0
0
0
0
0
0.028571
0.121706
797
32
75
24.90625
0.47
0.393977
0
0
0
0
0.042424
0
0
0
0
0
0
1
0.2
false
0
0.4
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
caf9ce60b8dcfa9dceb4bf7e18b1b1d67f4b1a9c
620
py
Python
core-python/Core_Python/regexpkg/Regex_Example5.py
theumang100/tutorials-1
497f54c2adb022c316530319a168fca1c007d4b1
[ "MIT" ]
9
2020-04-23T05:24:19.000Z
2022-02-17T16:37:51.000Z
core-python/Core_Python/regexpkg/Regex_Example5.py
theumang100/tutorials-1
497f54c2adb022c316530319a168fca1c007d4b1
[ "MIT" ]
5
2020-10-01T05:08:37.000Z
2020-10-12T03:18:10.000Z
core-python/Core_Python/regexpkg/Regex_Example5.py
theumang100/tutorials-1
497f54c2adb022c316530319a168fca1c007d4b1
[ "MIT" ]
9
2020-04-28T14:06:41.000Z
2021-10-19T18:32:28.000Z
''' Fill in the code to check if the text passed looks like a standard sentence, meaning that it starts with an uppercase letter, followed by at least some lowercase letters or a space, and ends with a period, question mark, or exclamation point. ''' import re def check_sentence(text): result = re.search(r"^[A-Z][a-z\s]*[\.\?\!]$", text) return result != None print(check_sentence("Is this is a sentence?")) # True print(check_sentence("is this is a sentence?")) # False print(check_sentence("Hello")) # False print(check_sentence("1-2-3-GO!")) # False print(check_sentence("A star is born.")) # True
41.333333
80
0.703226
101
620
4.257426
0.594059
0.181395
0.209302
0.160465
0.162791
0.162791
0.162791
0.162791
0
0
0
0.005769
0.16129
620
15
81
41.333333
0.821154
0.43871
0
0
0
0
0.294479
0.070552
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
0.555556
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
0
0
0
1
0
3
cafdc6421f11842d347ba8f8317a8946d5c38bee
180
py
Python
setup.py
abbec/niji
0f404fdfab22c2f75b8d076e48ac292ab44f7030
[ "BSD-2-Clause" ]
2
2015-02-20T15:10:30.000Z
2021-11-17T03:19:10.000Z
setup.py
abbec/niji
0f404fdfab22c2f75b8d076e48ac292ab44f7030
[ "BSD-2-Clause" ]
null
null
null
setup.py
abbec/niji
0f404fdfab22c2f75b8d076e48ac292ab44f7030
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup setup(name='niji', version='0.1-alpha`', packages=['niji'], install_requires=[ 'requests', ] )
20
29
0.488889
16
180
5.4375
0.875
0
0
0
0
0
0
0
0
0
0
0.017699
0.372222
180
8
30
22.5
0.752212
0
0
0
0
0
0.144444
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
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
0
0
0
0
0
3
1b04104e780e33078b438c2693001b5b0bb640b5
67
py
Python
CSES/Sorting_and_Searching/Distinct_Numbers.py
kancharlaraju21/Competitive_Programming
98dc9ff17ce42a5b884b0460c161b42bbb203f0e
[ "MIT" ]
null
null
null
CSES/Sorting_and_Searching/Distinct_Numbers.py
kancharlaraju21/Competitive_Programming
98dc9ff17ce42a5b884b0460c161b42bbb203f0e
[ "MIT" ]
null
null
null
CSES/Sorting_and_Searching/Distinct_Numbers.py
kancharlaraju21/Competitive_Programming
98dc9ff17ce42a5b884b0460c161b42bbb203f0e
[ "MIT" ]
null
null
null
n=int(input()) a=list(map(int,input().split())) print(len(set(a)))
16.75
32
0.626866
13
67
3.230769
0.769231
0.380952
0
0
0
0
0
0
0
0
0
0
0.044776
67
3
33
22.333333
0.65625
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
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
3
1b212ef43232ab5b27bd44324e68f158f280b2f8
123
py
Python
flinx/__init__.py
graingert/flinx
4abef5ccd78e598549830ab69d3c36b6b0080cbd
[ "MIT" ]
6
2018-06-12T02:18:05.000Z
2021-01-13T13:12:41.000Z
flinx/__init__.py
graingert/flinx
4abef5ccd78e598549830ab69d3c36b6b0080cbd
[ "MIT" ]
5
2018-12-28T15:31:08.000Z
2020-11-07T11:02:19.000Z
flinx/__init__.py
graingert/flinx
4abef5ccd78e598549830ab69d3c36b6b0080cbd
[ "MIT" ]
1
2020-09-03T21:37:19.000Z
2020-09-03T21:37:19.000Z
"""Configuration-free Python doc generation via Sphinx.""" __version__ = '0.2.0' from .commands import cli # noqa: F401
20.5
58
0.715447
17
123
4.941176
0.941176
0
0
0
0
0
0
0
0
0
0
0.057692
0.154472
123
5
59
24.6
0.75
0.520325
0
0
0
0
0.09434
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
1b2ee826c1f2cc5d33957c812f9dbd23d4ab9395
106
py
Python
colosseum/mdps/minigrid_rooms/episodic/__init__.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
colosseum/mdps/minigrid_rooms/episodic/__init__.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
colosseum/mdps/minigrid_rooms/episodic/__init__.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
from colosseum.mdps.minigrid_rooms.episodic.mdp import MiniGridRoomsEpisodic MDP = MiniGridRoomsEpisodic
26.5
76
0.877358
11
106
8.363636
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.075472
106
3
77
35.333333
0.938776
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
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
3
1b42ff92bd840d16cfba2122acf8887aed890be9
181
py
Python
tests/plugins/endpoints.py
vyahello/Blog
5e0dae383be2eedde221f31bc61d29bfc436a44a
[ "MIT" ]
4
2018-05-22T10:02:23.000Z
2018-06-04T19:58:46.000Z
tests/plugins/endpoints.py
vyahello/blog
5e0dae383be2eedde221f31bc61d29bfc436a44a
[ "MIT" ]
1
2020-09-28T21:01:05.000Z
2020-09-28T21:01:05.000Z
tests/plugins/endpoints.py
vyahello/blog
5e0dae383be2eedde221f31bc61d29bfc436a44a
[ "MIT" ]
1
2021-04-10T22:32:39.000Z
2021-04-10T22:32:39.000Z
import pytest _endpoint: str = "http://localhost:5000" @pytest.fixture(scope="module") def url_endpoint() -> str: """Represent default url endpoint.""" return _endpoint
16.454545
41
0.690608
21
181
5.809524
0.714286
0.180328
0
0
0
0
0
0
0
0
0
0.026316
0.160221
181
10
42
18.1
0.776316
0.171271
0
0
0
0
0.1875
0
0
0
0
0
0
1
0.2
true
0
0.2
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
3
1b63a05649ee32a6b509ae2cb4cbb731c868a181
838
py
Python
burplist/commands/prune.py
ngshiheng/burplist
87c4340e63fde476b25c3e7674b9486e8225f87f
[ "MIT" ]
7
2021-11-02T03:19:23.000Z
2022-01-27T08:05:51.000Z
burplist/commands/prune.py
ngshiheng/burplist
87c4340e63fde476b25c3e7674b9486e8225f87f
[ "MIT" ]
10
2021-11-10T08:20:50.000Z
2022-03-04T15:23:25.000Z
burplist/commands/prune.py
ngshiheng/burplist
87c4340e63fde476b25c3e7674b9486e8225f87f
[ "MIT" ]
2
2021-11-05T04:27:02.000Z
2022-01-27T08:05:53.000Z
from argparse import ArgumentParser from burplist.utils.misc import remove_stale_products_prices from scrapy.commands import ScrapyCommand class Command(ScrapyCommand): requires_project = False default_settings = {'LOG_ENABLED': True} def syntax(self) -> str: return '[options]' def short_desc(self) -> str: return 'Remove stale products and prices which are not updated for N number of days' def add_options(self, parser: ArgumentParser) -> None: ScrapyCommand.add_options(self, parser) parser.add_argument( '-d', '--days', dest='days', type=int, default=7, help='N number of days in integer where the products are not updated', ) def run(self, args, opts) -> None: del args # Unused remove_stale_products_prices(opts.days)
29.928571
92
0.675418
106
838
5.216981
0.575472
0.059675
0.103074
0.090416
0
0
0
0
0
0
0
0.00156
0.235084
838
27
93
31.037037
0.861154
0.00716
0
0
0
0
0.203614
0
0
0
0
0
0
1
0.210526
false
0
0.157895
0.105263
0.631579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
1b7bf65f4b83b6fc36a7dd5bbe2ce16ef215c7b1
481
py
Python
additional_code/utils_new.py
UCSD-ECE140/140A-lab-5
b43bf5c2456e9c78d4576a1d5c352c6b11b888d0
[ "MIT" ]
3
2020-02-29T01:27:32.000Z
2020-03-11T01:34:04.000Z
additional_code/utils_new.py
UCSD-ECE140/140A-lab-5
b43bf5c2456e9c78d4576a1d5c352c6b11b888d0
[ "MIT" ]
null
null
null
additional_code/utils_new.py
UCSD-ECE140/140A-lab-5
b43bf5c2456e9c78d4576a1d5c352c6b11b888d0
[ "MIT" ]
3
2020-03-04T21:06:40.000Z
2020-03-04T21:51:13.000Z
def euclidean_distance(x1, y1, x2, y2): """Compute euclidean distance between two points.""" def which_start_and_pitstop(pitstop_num, pitstop_coords, start_coords): """Computes the relevant pitstop and startpoint info. Extracts the pitstop coordinates, relevant startpoint number and startpoint coordinates and returns them.""" # Write your code here return my_pitstop_coord, my_start_coord, my_start_num # Feel free to add more utility functions
30.0625
71
0.756757
65
481
5.4
0.630769
0.096866
0.068376
0
0
0
0
0
0
0
0
0.010127
0.178794
481
16
72
30.0625
0.878481
0.553015
0
0
0
0
0
0
0
0
0
0.0625
0
1
0.666667
false
0
0
0
1
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
0
1
0
0
3
1b920314ed2fe742eb439c7d8ec7124af9025146
5,239
py
Python
sources/decks.py
andrewmelo/END
9982e3b9f127ffa1b7edfbb96d3222448decb33f
[ "MIT" ]
null
null
null
sources/decks.py
andrewmelo/END
9982e3b9f127ffa1b7edfbb96d3222448decb33f
[ "MIT" ]
null
null
null
sources/decks.py
andrewmelo/END
9982e3b9f127ffa1b7edfbb96d3222448decb33f
[ "MIT" ]
null
null
null
from discord_components import SelectOption DECKS = { 'Basic Playing Cards': { 'Ace of Spades': '', '2 of Spades': '', '3 of Spades': '', '4 of Spades': '', '5 of Spades': '', '6 of Spades': '', '7 of Spades': '', '8 of Spades': '', '9 of Spades': '', '10 of Spades': '', 'Jack of Spades': '', 'Queen of Spades': '', 'King of Spades': '', 'Ace of Hearts': '', '2 of Hearts': '', '3 of Hearts': '', '4 of Hearts': '', '5 of Hearts': '', '6 of Hearts': '', '7 of Hearts': '', '8 of Hearts': '', '9 of Hearts': '', '10 of Hearts': '', 'Jack of Hearts': '', 'Queen of Hearts': '', 'King of Hearts': '', 'Ace of Diamons': '', '2 of Diamonds': '', '3 of Diamonds': '', '4 of Diamonds': '', '5 of Diamonds': '', '6 of Diamonds': '', '7 of Diamonds': '', '8 of Diamonds': '', '9 of Diamonds': '', '10 of Diamonds': '', 'Jack of Diamonds': '', 'Queen of Diamonds': '', 'King of Diamonds': '', 'Ace of Clubs': '', '2 of Clubs': '', '3 of Clubs': '', '4 of Clubs': '', '5 of Clubs': '', '6 of Clubs': '', '7 of Clubs': '', '8 of Clubs': '', '9 of Clubs': '', '10 of Clubs': '', 'Jack of Clubs': '', 'Queen of Clubs': '', 'King of Clubs': '' }, 'Cyberpunk Tarot': { 'The Fool': 'https://static.wikia.nocookie.net/cyberpunk/images/b/b1/TarotCard_01_TheFool.png/revision/latest?cb=20210103215616', 'The Magician': 'https://static.wikia.nocookie.net/cyberpunk/images/d/d6/TarotCard_02_TheMagician.png/revision/latest?cb=20210103215747', 'The High Priestess': 'https://static.wikia.nocookie.net/cyberpunk/images/b/bf/TarotCard_03_TheHighPriestess.png/revision/latest?cb=20210103215846', 'The Empress': 'https://static.wikia.nocookie.net/cyberpunk/images/1/1d/TarotCard_04_TheEmpress.png/revision/latest?cb=20210103220157', 'The Emperor': 'https://static.wikia.nocookie.net/cyberpunk/images/d/df/TarotCard_05_TheEmperor.png/revision/latest?cb=20210103220447', 'The Hierophant': 'https://static.wikia.nocookie.net/cyberpunk/images/d/d2/TarotCard_06_TheHierophant.png/revision/latest?cb=20210103220542', 'The Lovers': 'https://static.wikia.nocookie.net/cyberpunk/images/f/f3/TarotCard_07_TheLovers.png/revision/latest?cb=20210103220610', 'The Chariot': 'https://static.wikia.nocookie.net/cyberpunk/images/c/cb/TarotCard_08_TheChariot.png/revision/latest?cb=20210103220714', 'Strength': 'https://static.wikia.nocookie.net/cyberpunk/images/8/88/TarotCard_09_Strength.png/revision/latest?cb=20210103220829', 'The Hermit': 'https://static.wikia.nocookie.net/cyberpunk/images/4/4f/TarotCard_10_TheHermit.png/revision/latest?cb=20210103220946', 'Wheel of Fortune': 'https://static.wikia.nocookie.net/cyberpunk/images/0/01/TarotCard_11_WheelOfFortune.png/revision/latest?cb=20210103221204', 'Justice': 'https://static.wikia.nocookie.net/cyberpunk/images/4/4f/TarotCard_12_Justice.png/revision/latest?cb=20210103221316', 'The Hanged Man': 'https://static.wikia.nocookie.net/cyberpunk/images/0/0e/TarotCard_13_TheHangedMan.png/revision/latest?cb=20210103221527', 'Death': 'https://static.wikia.nocookie.net/cyberpunk/images/8/8e/TarotCard_14_Death.png/revision/latest?cb=20210103221556', 'Temperance': 'https://static.wikia.nocookie.net/cyberpunk/images/2/21/TarotCard_15_Temperance.png/revision/latest?cb=20210103221722', 'The Devil': 'https://static.wikia.nocookie.net/cyberpunk/images/1/11/TarotCard_16_TheDevil.png/revision/latest?cb=20210103221749', 'The Tower': 'https://static.wikia.nocookie.net/cyberpunk/images/b/b6/TarotCard_17_TheTower.png/revision/latest?cb=20210103221813', 'The Star': 'https://static.wikia.nocookie.net/cyberpunk/images/5/59/TarotCard_18_TheStar.png/revision/latest?cb=20210103221837', 'The Moon': 'https://static.wikia.nocookie.net/cyberpunk/images/1/15/TarotCard_19_TheMoon.png/revision/latest?cb=20210103221900', 'The Sun': 'https://static.wikia.nocookie.net/cyberpunk/images/d/d1/TarotCard_20_TheSun.png/revision/latest?cb=20210103221943', 'Judgment': 'https://static.wikia.nocookie.net/cyberpunk/images/1/14/TarotCard_21_Judgement.png/revision/latest?cb=20210103222014', 'The World': 'https://static.wikia.nocookie.net/cyberpunk/images/a/ae/TarotCard_22_TheWorld.png/revision/latest?cb=20210103222034' }, 'Tarot': { 'Carta 1': '', 'Carta 2': '', 'Carta 3': '' }, 'Tarot Major Arcana': {}, 'Tarot Minor Arcana': {} } DECK_OPTIONS = [ SelectOption(label='Basic Playing Cards', value='Basic Playing Cards'), SelectOption(label='Tarot', value='Tarot'), SelectOption(label='Tarot Major Arcana', value='Tarot Major Arcana'), SelectOption(label='Tarot Minor Arcana', value='Tarot Minor Arcana'), SelectOption(label='Cyberpunk Tarot', value='Cyberpunk Tarot') ]
53.459184
156
0.635617
637
5,239
5.155416
0.248038
0.073691
0.107186
0.16078
0.29324
0.29324
0.29324
0.229294
0.032887
0.032887
0
0.102249
0.193548
5,239
97
157
54.010309
0.67503
0
0
0
0
0.231579
0.699179
0
0
0
0
0
0
1
0
false
0
0.010526
0
0.010526
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
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
1bc44711a82d89ff03a78f612f1268176c9e5b60
711
py
Python
test/integration/__init__.py
KernelErr/b2-sdk-python
5310ebdf29f073895f34ffe58893fc50ebdd8c83
[ "MIT" ]
128
2019-02-02T17:53:23.000Z
2022-03-28T09:28:35.000Z
test/integration/__init__.py
KernelErr/b2-sdk-python
5310ebdf29f073895f34ffe58893fc50ebdd8c83
[ "MIT" ]
168
2019-02-26T22:14:16.000Z
2022-03-27T06:25:28.000Z
test/integration/__init__.py
KernelErr/b2-sdk-python
5310ebdf29f073895f34ffe58893fc50ebdd8c83
[ "MIT" ]
52
2019-01-28T16:40:56.000Z
2022-03-14T19:55:05.000Z
###################################################################### # # File: test/integration/__init__.py # # Copyright 2020 Backblaze Inc. All Rights Reserved. # # License https://www.backblaze.com/using_b2_code.html # ###################################################################### import os def get_b2_auth_data(): application_key_id = os.environ.get('B2_TEST_APPLICATION_KEY_ID') if application_key_id is None: raise ValueError('B2_TEST_APPLICATION_KEY_ID is not set.') application_key = os.environ.get('B2_TEST_APPLICATION_KEY') if application_key is None: raise ValueError('B2_TEST_APPLICATION_KEY is not set.') return application_key_id, application_key
32.318182
70
0.606188
84
711
4.75
0.452381
0.350877
0.200501
0.200501
0.37594
0.365915
0.365915
0.205514
0
0
0
0.016103
0.126582
711
21
71
33.857143
0.626409
0.194093
0
0
0
0
0.287059
0.230588
0
0
0
0
0
1
0.111111
false
0
0.111111
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
0
0
0
0
0
3
1bc952161bbc8a492c919ba0838e8646c61b1256
161
py
Python
file_changed_command_runner/__init__.py
AtakamaLLC/plugin-runcmd-on-file-change
58ae97a2c5f84284f6351a635f75825a7df44abc
[ "BSD-3-Clause" ]
null
null
null
file_changed_command_runner/__init__.py
AtakamaLLC/plugin-runcmd-on-file-change
58ae97a2c5f84284f6351a635f75825a7df44abc
[ "BSD-3-Clause" ]
null
null
null
file_changed_command_runner/__init__.py
AtakamaLLC/plugin-runcmd-on-file-change
58ae97a2c5f84284f6351a635f75825a7df44abc
[ "BSD-3-Clause" ]
null
null
null
"""Atakama plugin: runs a command every time a file is modified""" from .plugin import FileChangedCommandRunner __version__ = "1.0.0" ATAKAMA_SDK_VERSION = 1
20.125
66
0.763975
23
161
5.086957
0.73913
0.136752
0
0
0
0
0
0
0
0
0
0.029197
0.149068
161
7
67
23
0.824818
0.372671
0
0
0
0
0.052632
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
1bcf9279157b4c95b94867753587cf2e228b9769
128
py
Python
src/main.py
8nhuman8/pyanitsa-simulation
1a595aa98d60985483a9f5df2015612dbc0f4396
[ "MIT" ]
null
null
null
src/main.py
8nhuman8/pyanitsa-simulation
1a595aa98d60985483a9f5df2015612dbc0f4396
[ "MIT" ]
null
null
null
src/main.py
8nhuman8/pyanitsa-simulation
1a595aa98d60985483a9f5df2015612dbc0f4396
[ "MIT" ]
null
null
null
from game import Game if __name__ == '__main__': PLAYERS_AMOUNT = 2 game = Game(PLAYERS_AMOUNT) game.main_loop()
14.222222
31
0.671875
17
128
4.411765
0.588235
0.346667
0
0
0
0
0
0
0
0
0
0.010204
0.234375
128
8
32
16
0.755102
0
0
0
0
0
0.0625
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
0
0
0
3
942805c8804b4fa0043c2ea20e710e86124d3b86
334
py
Python
OpenAttack/metric/selectors/semantic.py
e-tornike/OpenAttack
b19c53af2e01f096505f8ebb8f48a54388295003
[ "MIT" ]
444
2020-07-14T12:13:26.000Z
2022-03-28T02:46:30.000Z
OpenAttack/metric/selectors/semantic.py
e-tornike/OpenAttack
b19c53af2e01f096505f8ebb8f48a54388295003
[ "MIT" ]
50
2020-07-15T01:34:42.000Z
2022-01-24T12:19:19.000Z
OpenAttack/metric/selectors/semantic.py
e-tornike/OpenAttack
b19c53af2e01f096505f8ebb8f48a54388295003
[ "MIT" ]
86
2020-08-02T13:16:45.000Z
2022-03-27T06:22:04.000Z
from .base import MetricSelector class SemanticSimilarity(MetricSelector): """ :English: :py:class:`.UniversalSentenceEncoder` """ def _select(self, lang): if lang.name == "english": from ..algorithms.usencoder import UniversalSentenceEncoder return UniversalSentenceEncoder()
30.363636
71
0.661677
26
334
8.461538
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.239521
334
11
72
30.363636
0.866142
0.140719
0
0
0
0
0.025735
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
942efadc67b7770e499fd8fc5036bcedb5963ac5
250
py
Python
PP4E/Examples/PP4E/System/whereami.py
BeacherHou/Python-_Markdown-
015d79a02d32f49395b80ca10919b3a09b72c4df
[ "MIT" ]
null
null
null
PP4E/Examples/PP4E/System/whereami.py
BeacherHou/Python-_Markdown-
015d79a02d32f49395b80ca10919b3a09b72c4df
[ "MIT" ]
null
null
null
PP4E/Examples/PP4E/System/whereami.py
BeacherHou/Python-_Markdown-
015d79a02d32f49395b80ca10919b3a09b72c4df
[ "MIT" ]
null
null
null
import os, sys print('my os.getcwd =>', os.getcwd()) # show my cwd execution dir print('my sys.path =>', sys.path[:6]) # show first 6 import paths input() # wait for keypress if clicked
50
79
0.508
32
250
3.96875
0.625
0.110236
0
0
0
0
0
0
0
0
0
0.012821
0.376
250
4
80
62.5
0.801282
0.32
0
0
0
0
0.185185
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
3
9488f38cb88e91deeb4cb03c9b82f3eb2ae932e4
300
py
Python
Jarvan/checkers.py
jabezborja/Jarvan-AI
fe3b1ede98cbc2213fcedb886c282e5236e97bfa
[ "MIT" ]
1
2021-03-07T11:53:54.000Z
2021-03-07T11:53:54.000Z
Jarvan/checkers.py
jabezborja/Jarvan
fe3b1ede98cbc2213fcedb886c282e5236e97bfa
[ "MIT" ]
null
null
null
Jarvan/checkers.py
jabezborja/Jarvan
fe3b1ede98cbc2213fcedb886c282e5236e97bfa
[ "MIT" ]
2
2020-12-18T02:13:44.000Z
2021-05-04T00:00:20.000Z
class Checkers: def __init__(self): pass def is_operation(self, command): operations = ['+', '-', 'x', '*', '/', 'plus', 'minus', 'times', 'divide'] for operation in operations: if operation in command: return True
23.076923
57
0.476667
27
300
5.111111
0.740741
0.15942
0
0
0
0
0
0
0
0
0
0
0.38
300
12
58
25
0.741935
0
0
0
0
0
0.083612
0
0
0
0
0
0
1
0.222222
false
0.111111
0
0
0.444444
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
84684047c3182bc760a3079b8b85672e11b760ab
3,781
py
Python
copg_optim/utils.py
shatayu/copg
830b654c8db7ec74f84ee8584e2215200cf8a68d
[ "MIT" ]
16
2020-06-22T17:13:36.000Z
2022-01-29T10:46:20.000Z
copg_optim/utils.py
shatayu/copg
830b654c8db7ec74f84ee8584e2215200cf8a68d
[ "MIT" ]
2
2020-08-19T11:31:35.000Z
2020-11-12T16:11:15.000Z
copg_optim/utils.py
shatayu/copg
830b654c8db7ec74f84ee8584e2215200cf8a68d
[ "MIT" ]
7
2020-06-24T21:54:17.000Z
2021-08-30T03:58:32.000Z
import torch import torch.autograd as autograd def zero_grad(params): for p in params: if p.grad is not None: p.grad.detach() p.grad.zero_() def conjugate_gradient(grad_x, grad_y, tot_grad_x, tot_grad_y, x_params, y_params, b, x=None, nsteps=10, residual_tol=1e-18, lr=1e-3, device=torch.device('cpu')): # not able to parameters ''' :param grad_x: :param grad_y: :param x_params: :param y_params: :param b: vec :param nsteps: max number of steps :param residual_tol: :return: A ** -1 * b h_1 = D_yx * p h_2 = D_xy * D_yx * p A = I + lr ** 2 * D_xy * D_yx * p ''' if x is None: x = torch.zeros((b.shape[0],1), device=device) r = b.clone().detach() p = r.clone().detach() rdotr = torch.dot(r.view(-1), r.view(-1)) residual_tol = residual_tol * rdotr for itr in range(nsteps): # To compute Avp h_1 = autograd.grad(tot_grad_x, y_params, grad_outputs=p, retain_graph=True) # yx h_1 = torch.cat([g.contiguous().view(-1, 1) for g in h_1]) h_2 = autograd.grad(tot_grad_y, x_params, grad_outputs=h_1, retain_graph=True) h_2 = torch.cat([g.contiguous().view(-1, 1) for g in h_2]) Avp_ = p + lr * lr * h_2 alpha = rdotr / torch.dot(p.view(-1), Avp_.view(-1)) x.data.add_(alpha * p) r.data.add_(- alpha * Avp_) new_rdotr = torch.dot(r.view(-1), r.view(-1)) beta = new_rdotr / rdotr p = r + beta * p rdotr = new_rdotr #print(itr) if rdotr < residual_tol: break return x, itr + 1 def general_conjugate_gradient(grad_x, grad_y,tot_grad_x, tot_grad_y, x_params, y_params, b, lr_x, lr_y, x=None, nsteps=10, residual_tol=1e-16, device=torch.device('cpu')): ''' :param grad_x: :param grad_y: :param x_params: :param y_params: :param b: :param lr_x: :param lr_y: :param x: :param nsteps: :param residual_tol: :param device: :return: (I + sqrt(lr_x) * D_xy * lr_y * D_yx * sqrt(lr_x)) ** -1 * b ''' if x is None: x = torch.zeros((b.shape[0],1), device=device) if tot_grad_x.shape != b.shape: raise RuntimeError('CG: hessian vector product shape mismatch') lr_x = lr_x.sqrt() r = b.clone().detach() p = r.clone().detach() rdotr = torch.dot(r.view(-1), r.view(-1)) residual_tol = residual_tol * rdotr for i in range(nsteps): # To compute Avp # h_1 = Hvp_vec(grad_vec=grad_x, params=y_params, vec=lr_x * p, retain_graph=True) h_1 = autograd.grad(tot_grad_x, y_params, grad_outputs=lr_x*p, retain_graph=True) # yx h_1 = torch.cat([g.contiguous().view(-1, 1) for g in h_1]).mul_(lr_y) # h_1 = Hvp_vec(grad_vec=grad_x, params=y_params, vec=lr_x * p, retain_graph=True).mul_(lr_y) # h_1.mul_(lr_y) # lr_y * D_yx * b # h_2 = Hvp_vec(grad_vec=grad_y, params=x_params, vec=lr_y * h_1, retain_graph=True) # h_2 = Hvp_vec(grad_vec=grad_y, params=x_params, vec=h_1, retain_graph=True).mul_(lr_x) h_2 = autograd.grad(tot_grad_y, x_params, grad_outputs=h_1, retain_graph=True) h_2 = torch.cat([g.contiguous().view(-1, 1) for g in h_2]).mul_(lr_x) # h_2.mul_(lr_x) # lr_x * D_xy * lr_y * D_yx * b Avp_ = p + h_2 alpha = rdotr / torch.dot(p.view(-1), Avp_.view(-1)) x.data.add_(alpha * p) r.data.add_(- alpha * Avp_) new_rdotr = torch.dot(r.view(-1), r.view(-1)) beta = new_rdotr / rdotr p = r + beta * p rdotr = new_rdotr if rdotr < residual_tol: break return x, i + 1
35.336449
125
0.573922
641
3,781
3.134165
0.137285
0.039821
0.023892
0.017919
0.774017
0.741663
0.732205
0.667994
0.63116
0.63116
0
0.024806
0.285639
3,781
106
126
35.669811
0.718993
0.250198
0
0.542373
0
0
0.017375
0
0
0
0
0
0
1
0.050847
false
0
0.033898
0
0.118644
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
849da74d12d5dc48cca4538a54c44bd5465ec334
80
py
Python
.history/List of Capstone Projects/FibonacciSequence_20200516130117.py
EvanthiosPapadopoulos/Python3
ab773fd458e365c1510f98ecac65965234c881e8
[ "MIT" ]
1
2020-05-18T17:50:00.000Z
2020-05-18T17:50:00.000Z
.history/List of Capstone Projects/FibonacciSequence_20200516130117.py
EvanthiosPapadopoulos/Python3
ab773fd458e365c1510f98ecac65965234c881e8
[ "MIT" ]
null
null
null
.history/List of Capstone Projects/FibonacciSequence_20200516130117.py
EvanthiosPapadopoulos/Python3
ab773fd458e365c1510f98ecac65965234c881e8
[ "MIT" ]
null
null
null
''' Fibonacci Sequence ''' print("Enter a number for Fibonacci") f = input()
8.888889
37
0.65
10
80
5.2
0.9
0
0
0
0
0
0
0
0
0
0
0
0.1875
80
8
38
10
0.8
0.225
0
0
0
0
0.538462
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
84a3dca567d6d2d5fd4a68653e83c270525397d3
40
py
Python
pajbot/models/__init__.py
gigglearrows/anniesbot
fb9fb92b827c6c78efebb415f10d015216fb3ba2
[ "MIT" ]
null
null
null
pajbot/models/__init__.py
gigglearrows/anniesbot
fb9fb92b827c6c78efebb415f10d015216fb3ba2
[ "MIT" ]
1
2015-12-24T02:01:21.000Z
2018-02-19T01:08:16.000Z
pajbot/models/__init__.py
gigglearrows/anniesbot
fb9fb92b827c6c78efebb415f10d015216fb3ba2
[ "MIT" ]
null
null
null
__all__ = ['user', 'command', 'filter']
20
39
0.6
4
40
5
1
0
0
0
0
0
0
0
0
0
0
0
0.125
40
1
40
40
0.571429
0
0
0
0
0
0.425
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
84ba7808857610e17a671b961a093515538a298b
155
py
Python
transport/processing/config.py
zkdev/cc-utils
042c6632ca6f61a484bc0a71f85957aeba7f7278
[ "BSD-3-Clause" ]
15
2018-04-18T13:25:30.000Z
2022-03-04T09:25:41.000Z
transport/processing/config.py
zkdev/cc-utils
042c6632ca6f61a484bc0a71f85957aeba7f7278
[ "BSD-3-Clause" ]
221
2018-04-12T06:29:43.000Z
2022-03-27T03:01:40.000Z
transport/processing/config.py
zkdev/cc-utils
042c6632ca6f61a484bc0a71f85957aeba7f7278
[ "BSD-3-Clause" ]
29
2018-04-11T14:42:23.000Z
2021-11-09T16:26:32.000Z
import typing ACTIONS: typing.List[str] = list() PROCESSING_CFG = 'transport.yaml' RESOURCES_DIR = 'resources' TAR_FILE = 'resources.tar' DRY_RUN = False
19.375
34
0.754839
21
155
5.380952
0.761905
0.212389
0
0
0
0
0
0
0
0
0
0
0.122581
155
7
35
22.142857
0.830882
0
0
0
0
0
0.232258
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
0
0
0
3
84cb30176a5e50e38a6cce67f86d2ae064510aa3
1,128
py
Python
src/dg_calculations/duration.py
dazed-gerbil/dg_calculations
b1f678676a04a20778521e592c58e70b91a3e55c
[ "BSD-3-Clause" ]
null
null
null
src/dg_calculations/duration.py
dazed-gerbil/dg_calculations
b1f678676a04a20778521e592c58e70b91a3e55c
[ "BSD-3-Clause" ]
null
null
null
src/dg_calculations/duration.py
dazed-gerbil/dg_calculations
b1f678676a04a20778521e592c58e70b91a3e55c
[ "BSD-3-Clause" ]
null
null
null
class Duration: def __init__(self, hours: int = 0, minutes: int = 0, seconds: int = 0): # setup the class instance and convert any provided times to seconds self.total_duration: int = (hours * 60 * 60) + (minutes * 60) + seconds def __add__(self, other): new_total: int = self.total_duration + other.total_duration return Duration(seconds=new_total) def get_hours(self) -> int: # return only the hours return self.total_duration // (60 * 60) def get_minutes(self) -> int: # return only the minutes return (self.total_duration % (60 * 60)) // 60 def get_seconds(self) -> int: # return only the seconds return (self.total_duration % (60 * 60)) % 60 def get_all(self) -> tuple[int, int, int]: # return the total duration as hours, minutes & seconds individually return self.get_hours(), self.get_minutes(), self.get_minutes() def __str__(self) -> str: # quick and simple representation of the duration return f'{self.get_hours()}hrs {self.get_minutes()}mins {self.get_seconds()}secs'
37.6
89
0.635638
152
1,128
4.519737
0.263158
0.13246
0.123726
0.074236
0.22853
0.141194
0.101892
0.101892
0.101892
0
0
0.029691
0.253546
1,128
29
90
38.896552
0.786223
0.222518
0
0
0
0
0.081609
0.07931
0
0
0
0
0
1
0.4375
false
0
0
0.3125
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
84d444ce66261efff4a9f1dcd096ec85161d4859
152
py
Python
Chapter14/file_test.py
MJC-code/thinkpython
c92702b64a174e85294b17d8bed870977007842b
[ "Unlicense" ]
null
null
null
Chapter14/file_test.py
MJC-code/thinkpython
c92702b64a174e85294b17d8bed870977007842b
[ "Unlicense" ]
null
null
null
Chapter14/file_test.py
MJC-code/thinkpython
c92702b64a174e85294b17d8bed870977007842b
[ "Unlicense" ]
null
null
null
fout = open('output.txt', 'w') line1 = "This here's the wattle,\n" fout.write(line1) line2 = "the emblem of our land.\n" fout.write(line2) fout.close()
21.714286
35
0.677632
27
152
3.814815
0.703704
0.097087
0.194175
0
0
0
0
0
0
0
0
0.030303
0.131579
152
6
36
25.333333
0.75
0
0
0
0
0
0.401316
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
3
84e5e1c8fd0162798866f27859c934001656db2d
165
py
Python
Python/Unsorted/41a.py
LittleEndu/Codeforces
82c49b10702c58bc5ce062801d740a2f5f600062
[ "MIT" ]
null
null
null
Python/Unsorted/41a.py
LittleEndu/Codeforces
82c49b10702c58bc5ce062801d740a2f5f600062
[ "MIT" ]
null
null
null
Python/Unsorted/41a.py
LittleEndu/Codeforces
82c49b10702c58bc5ce062801d740a2f5f600062
[ "MIT" ]
null
null
null
# Smallest: r=input;print("YNEOS"[r()!=r()[::-1]::2]) # Because != and == are same size, but "NYOE S" and "YNEOS" are not i=input;print("NYOE S"[i()==i()[::-1]::2])
41.25
67
0.551515
30
165
3.033333
0.566667
0.21978
0
0
0
0
0
0
0
0
0
0.027586
0.121212
165
4
68
41.25
0.6
0.709091
0
0
0
0
0.130435
0
0
0
0
0
0
1
0
false
0
0
0
0
1
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
0
0
0
1
0
3
84f688d12ac0454e849a16fc344c9155930c39c5
239
py
Python
src/zzsn2021/systems/__init__.py
2021L-ZZSN/template
0cea7744701bb702d563acbf0cbd9ecf371f45bf
[ "MIT" ]
null
null
null
src/zzsn2021/systems/__init__.py
2021L-ZZSN/template
0cea7744701bb702d563acbf0cbd9ecf371f45bf
[ "MIT" ]
null
null
null
src/zzsn2021/systems/__init__.py
2021L-ZZSN/template
0cea7744701bb702d563acbf0cbd9ecf371f45bf
[ "MIT" ]
1
2021-05-09T21:27:39.000Z
2021-05-09T21:27:39.000Z
# Using redundant module aliases for public export # https://github.com/microsoft/pyright/blob/master/docs/typed-libraries.md#library-interface from __future__ import annotations from .classifier import ImageClassifier as ImageClassifier
39.833333
92
0.841004
30
239
6.566667
0.9
0
0
0
0
0
0
0
0
0
0
0
0.087866
239
5
93
47.8
0.90367
0.577406
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
17069e99d222a83b6d6cb9434374858de6da28de
451
py
Python
MACD/huobi_Python-1.0.3/example/restful/get24htradestatistics.py
yangdemin/dingpan
0b68c7f9b497c7becab6ec3e7a2b21b5c03a1dd9
[ "MIT" ]
null
null
null
MACD/huobi_Python-1.0.3/example/restful/get24htradestatistics.py
yangdemin/dingpan
0b68c7f9b497c7becab6ec3e7a2b21b5c03a1dd9
[ "MIT" ]
1
2020-12-05T11:41:35.000Z
2020-12-05T11:41:35.000Z
MACD/huobi_Python-1.0.3/example/restful/get24htradestatistics.py
yangdemin/dingpan
0b68c7f9b497c7becab6ec3e7a2b21b5c03a1dd9
[ "MIT" ]
null
null
null
from huobi import RequestClient request_client = RequestClient() trade_statistics = request_client.get_24h_trade_statistics("btcusdt") print("---- Statistics ----") print("Timestamp: " + str(trade_statistics.timestamp)) print("High: " + str(trade_statistics.high)) print("Low: " + str(trade_statistics.low)) print("Open: " + str(trade_statistics.open)) print("Close: " + str(trade_statistics.close)) print("Volume: " + str(trade_statistics.volume))
34.692308
69
0.747228
54
451
6.018519
0.351852
0.369231
0.332308
0
0
0
0
0
0
0
0
0.004854
0.086475
451
12
70
37.583333
0.783981
0
0
0
0
0
0.155211
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.7
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
ca1489331ad7dcecdbf65e9a9a5cb2ffc03ee713
109
py
Python
ciri/modules/checker.py
AmarnathCJD/Cirilla-Userbot
a580f2d3442ab7ebc4497aee7e381e6e220dbf93
[ "MIT" ]
null
null
null
ciri/modules/checker.py
AmarnathCJD/Cirilla-Userbot
a580f2d3442ab7ebc4497aee7e381e6e220dbf93
[ "MIT" ]
null
null
null
ciri/modules/checker.py
AmarnathCJD/Cirilla-Userbot
a580f2d3442ab7ebc4497aee7e381e6e220dbf93
[ "MIT" ]
2
2022-01-01T06:58:10.000Z
2022-01-12T15:59:38.000Z
from ciri.utils import ciri_cmd, eor @ciri_cmd(pattern="ck") async def chk(e): await eor(e, "rex gei")
15.571429
36
0.678899
20
109
3.6
0.75
0.194444
0
0
0
0
0
0
0
0
0
0
0.174312
109
6
37
18.166667
0.8
0
0
0
0
0
0.082569
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
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
0
0
0
0
0
3
ca234762f3e767d741149de9a100ca8971ea4a6b
111
py
Python
Chapter11/moviereviewsproject/news/urls.py
PacktPublishing/Django-4-for-the-Impatient
a7571124eb414fb0f8bcabe7ae23d64460a1a882
[ "MIT" ]
null
null
null
Chapter11/moviereviewsproject/news/urls.py
PacktPublishing/Django-4-for-the-Impatient
a7571124eb414fb0f8bcabe7ae23d64460a1a882
[ "MIT" ]
null
null
null
Chapter11/moviereviewsproject/news/urls.py
PacktPublishing/Django-4-for-the-Impatient
a7571124eb414fb0f8bcabe7ae23d64460a1a882
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.news, name='news'), ]
15.857143
38
0.63964
14
111
5.071429
0.642857
0
0
0
0
0
0
0
0
0
0
0
0.216216
111
6
39
18.5
0.816092
0
0
0
0
0
0.036036
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
ca42dd5c89d0bfd3b660dd32afbe04f69cd85bd9
487
py
Python
py_headless_daw/project/content/midi_note.py
hq9000/py-headless-daw
33e08727c25d3f00b2556adf5f25c9f7ff4d4304
[ "MIT" ]
22
2020-06-09T18:46:56.000Z
2021-09-28T02:11:42.000Z
py_headless_daw/project/content/midi_note.py
hq9000/py-headless-daw
33e08727c25d3f00b2556adf5f25c9f7ff4d4304
[ "MIT" ]
19
2020-06-03T06:34:57.000Z
2021-01-26T07:36:17.000Z
py_headless_daw/project/content/midi_note.py
hq9000/py-headless-daw
33e08727c25d3f00b2556adf5f25c9f7ff4d4304
[ "MIT" ]
1
2020-06-18T09:25:21.000Z
2020-06-18T09:25:21.000Z
from py_headless_daw.project.content.midi_clip import MidiClipEvent, MidiClip class MidiNote(MidiClipEvent): def __init__(self, clip, clip_time, note, velocity, length): # type: (MidiClip, float, int, int, float)->None super().__init__(clip, clip_time) self.note: int = note self.velocity: int = velocity self.length: float = length def get_absolute_end_time(self) -> float: return self.get_absolute_start_time() + self.length
32.466667
77
0.685832
62
487
5.080645
0.483871
0.07619
0.07619
0
0
0
0
0
0
0
0
0
0.211499
487
14
78
34.785714
0.820313
0.094456
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.111111
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
ca804c507c9eae6b891697c2866fc2ce9b5675be
3,903
py
Python
ao/ovh_group/models.py
ZuluPro/ao
00afffc044a7242401a7c4e216d65b2b11d8b0c0
[ "BSD-3-Clause" ]
null
null
null
ao/ovh_group/models.py
ZuluPro/ao
00afffc044a7242401a7c4e216d65b2b11d8b0c0
[ "BSD-3-Clause" ]
null
null
null
ao/ovh_group/models.py
ZuluPro/ao
00afffc044a7242401a7c4e216d65b2b11d8b0c0
[ "BSD-3-Clause" ]
null
null
null
import uuid from django.db import models FLAVOR_TYPES = ( ('ovh.ssd.eg', 'ovh.ssd.eg'), ('ovh.ssd.cpu', 'ovh.ssd.cpu'), ('ovh.ceph.eg', 'ovh.ceph.eg'), ('ovh.cpu', 'ovh.cpu'), ('ovh.ssd.ram', 'ovh.ssd.ram'), ('ovh.vps-ssd', 'ovh.vps-ssd'), ('ovh.ram', 'ovh.ram'), ) OS_TYPES = ( ('linux', 'linux'), ('windows', 'windows'), ) VISIBILITY = ( ('private', 'private'), ('public', 'public'), ) IMAGE_STATUS = ( ('active', 'active'), ) IP_TYPES = ( ('private', 'private'), ('public', 'public'), ) IP_STATUS = ( ('active', 'active'), ) INSTANCE_STATUS = ( ('active', 'active'), ) class Account(models.Model): username = models.CharField(max_length=30, primary_key=True) class Service(models.Model): id = models.CharField(max_length=32, primary_key=True) description = models.TextField(max_length=1000) creation_date = models.DateTimeField() class Region(models.Model): id = models.CharField(max_length=5, primary_key=True) continent_code = models.CharField(max_length=3) datacenter_location = models.CharField(max_length=3) name = models.CharField(max_length=20) volume = models.CharField(max_length=10, default='UP') image = models.CharField(max_length=10, default='UP') network = models.CharField(max_length=10, default='UP') instance = models.CharField(max_length=10, default='UP') class Flavor(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4) region = models.ForeignKey(Region) name = models.CharField(max_length=50) type = models.CharField(max_length=20, choices=FLAVOR_TYPES) os_type = models.CharField(max_length=20, choices=OS_TYPES) vcpus = models.PositiveSmallIntegerField() ram = models.PositiveSmallIntegerField() disk = models.PositiveSmallIntegerField() outbound_bandwidth = models.PositiveSmallIntegerField() inbound_bandwidth = models.PositiveSmallIntegerField() available = models.BooleanField(default=True) class Image(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4) user = models.CharField(max_length=20) name = models.CharField(max_length=64) type = models.CharField(max_length=20, choices=OS_TYPES) visibility = models.CharField(max_length=7, choices=VISIBILITY) flavor_type = models.CharField(max_length=20, choices=FLAVOR_TYPES, null=True, blank=True) status = models.CharField(max_length=15, choices=IMAGE_STATUS, default='active') region = models.ForeignKey(Region) plan_code = models.CharField(max_length=64, blank=True, null=True) min_disk = models.PositiveSmallIntegerField(default=0) min_ram = models.PositiveSmallIntegerField(default=0) size = models.FloatField() creation_date = models.DateTimeField() class SshKey(models.Model): id = models.CharField(max_length=24, primary_key=True) name = models.CharField(max_length=64) regions = models.ManyToManyField(Region) public = models.TextField(max_length=2000) class IpAddress(models.Model): id = models.CharField(max_length=24, primary_key=True) type = models.CharField(max_length=24, choices=IP_TYPES) status = models.CharField(max_length=24, choices=IP_STATUS) ip = models.GenericIPAddressField() class Instance(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4) name = models.CharField(max_length=64) region = models.ForeignKey(Region) flavor = models.ForeignKey(Flavor) image = models.ForeignKey(Image) plan_code = models.CharField(max_length=64, blank=True, null=True) status = models.CharField(max_length=20, choices=INSTANCE_STATUS) created = models.DateTimeField() ssh_key = models.ForeignKey(SshKey, null=True, blank=True) monthly_billing = models.BooleanField(default=False) ip_addresses = models.ManyToManyField(IpAddress, blank=True)
32.256198
94
0.71176
481
3,903
5.636175
0.203742
0.099594
0.185909
0.247879
0.462929
0.373663
0.313537
0.208779
0.208779
0.140907
0
0.019602
0.150397
3,903
120
95
32.525
0.797949
0
0
0.231579
0
0
0.067128
0
0
0
0
0
0
1
0
false
0
0.021053
0
0.684211
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
0
0
1
0
0
3
ca86f4ec11dafc2a3a273b2e1a0fce28e7dc4629
211
py
Python
src/model/charactors/warrior.py
Matimed/Barbarism
4892092f24f314bc6cfacc1c780436dc59fc90ac
[ "MIT" ]
null
null
null
src/model/charactors/warrior.py
Matimed/Barbarism
4892092f24f314bc6cfacc1c780436dc59fc90ac
[ "MIT" ]
null
null
null
src/model/charactors/warrior.py
Matimed/Barbarism
4892092f24f314bc6cfacc1c780436dc59fc90ac
[ "MIT" ]
null
null
null
from src.model.charactors import Aggressive class Warrior(Aggressive): """ An aggressive character that is able to fight. """ def __init__(self, nation): super().__init__(nation)
19.181818
54
0.654028
24
211
5.416667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.246446
211
11
55
19.181818
0.81761
0.218009
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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
ca8cb5cae2772c3b21c76272ec003afaac8e5836
3,218
py
Python
google/api/servicemanagement/v1/google-cloud-servicemanagement-v1-py/google/cloud/servicemanagement_v1/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/api/servicemanagement/v1/google-cloud-servicemanagement-v1-py/google/cloud/servicemanagement_v1/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/api/servicemanagement/v1/google-cloud-servicemanagement-v1-py/google/cloud/servicemanagement_v1/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from .services.service_manager import ServiceManagerClient from .services.service_manager import ServiceManagerAsyncClient from .types.resources import ChangeReport from .types.resources import ConfigFile from .types.resources import ConfigRef from .types.resources import ConfigSource from .types.resources import Diagnostic from .types.resources import ManagedService from .types.resources import OperationMetadata from .types.resources import Rollout from .types.servicemanager import CreateServiceConfigRequest from .types.servicemanager import CreateServiceRequest from .types.servicemanager import CreateServiceRolloutRequest from .types.servicemanager import DeleteServiceRequest from .types.servicemanager import DisableServiceRequest from .types.servicemanager import DisableServiceResponse from .types.servicemanager import EnableServiceRequest from .types.servicemanager import EnableServiceResponse from .types.servicemanager import GenerateConfigReportRequest from .types.servicemanager import GenerateConfigReportResponse from .types.servicemanager import GetServiceConfigRequest from .types.servicemanager import GetServiceRequest from .types.servicemanager import GetServiceRolloutRequest from .types.servicemanager import ListServiceConfigsRequest from .types.servicemanager import ListServiceConfigsResponse from .types.servicemanager import ListServiceRolloutsRequest from .types.servicemanager import ListServiceRolloutsResponse from .types.servicemanager import ListServicesRequest from .types.servicemanager import ListServicesResponse from .types.servicemanager import SubmitConfigSourceRequest from .types.servicemanager import SubmitConfigSourceResponse from .types.servicemanager import UndeleteServiceRequest from .types.servicemanager import UndeleteServiceResponse __all__ = ( 'ServiceManagerAsyncClient', 'ChangeReport', 'ConfigFile', 'ConfigRef', 'ConfigSource', 'CreateServiceConfigRequest', 'CreateServiceRequest', 'CreateServiceRolloutRequest', 'DeleteServiceRequest', 'Diagnostic', 'DisableServiceRequest', 'DisableServiceResponse', 'EnableServiceRequest', 'EnableServiceResponse', 'GenerateConfigReportRequest', 'GenerateConfigReportResponse', 'GetServiceConfigRequest', 'GetServiceRequest', 'GetServiceRolloutRequest', 'ListServiceConfigsRequest', 'ListServiceConfigsResponse', 'ListServiceRolloutsRequest', 'ListServiceRolloutsResponse', 'ListServicesRequest', 'ListServicesResponse', 'ManagedService', 'OperationMetadata', 'Rollout', 'ServiceManagerClient', 'SubmitConfigSourceRequest', 'SubmitConfigSourceResponse', 'UndeleteServiceRequest', 'UndeleteServiceResponse', )
36.988506
74
0.845867
294
3,218
9.238095
0.367347
0.102725
0.194772
0.245582
0.023564
0
0
0
0
0
0
0.003064
0.087321
3,218
86
75
37.418605
0.921689
0.176818
0
0
0
0
0.254842
0.168629
0
0
0
0
0
1
0
false
0
0.485294
0
0.485294
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
0
0
0
3
ca97ba10632a642d96a4ab8e4f7d2d42b7b5c677
897
py
Python
apps/portalbase/system/system__docgenerator/methodclass/system_docgenerator.gen.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
1
2015-10-26T10:38:13.000Z
2015-10-26T10:38:13.000Z
apps/portalbase/system/system__docgenerator/methodclass/system_docgenerator.gen.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
apps/portalbase/system/system__docgenerator/methodclass/system_docgenerator.gen.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
from JumpScale import j class system_docgenerator(j.code.classGetBase()): """ Initializes the swagger entry point for listing the available APIs """ def __init__(self): pass self._te={} self.actorname="docgenerator" self.appname="system" #system_docgenerator_osis.__init__(self) def getDocForActor(self, actorname, **kwargs): """ Gets the json doc of the given actor param:actorname name of the actor to get documentation for result dict """ #put your code here to implement this method raise NotImplementedError ("not implemented method getDocForActor") def prepareCatalog(self, **kwargs): """ result dict """ #put your code here to implement this method raise NotImplementedError ("not implemented method prepareCatalog")
28.935484
75
0.636566
96
897
5.822917
0.541667
0.064401
0.046512
0.060823
0.322004
0.322004
0.322004
0.322004
0.322004
0.322004
0
0
0.287625
897
30
76
29.9
0.874804
0.347826
0
0
0
0
0.182178
0
0
0
0
0.066667
0
1
0.272727
false
0.090909
0.090909
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
1
0
0
0
0
0
3
04635c853fd503731a8d62814118c480fbafb76f
85
py
Python
vmaig_blog/uwsgi-2.0.14/plugins/router_xmldir/uwsgiplugin.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
1
2018-11-24T16:10:49.000Z
2018-11-24T16:10:49.000Z
vmaig_blog/uwsgi-2.0.14/plugins/router_xmldir/uwsgiplugin.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
null
null
null
vmaig_blog/uwsgi-2.0.14/plugins/router_xmldir/uwsgiplugin.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
null
null
null
NAME='router_xmldir' CFLAGS = [] LDFLAGS = [] LIBS = [] GCC_LIST = ['router_xmldir']
14.166667
28
0.647059
10
85
5.2
0.8
0.461538
0
0
0
0
0
0
0
0
0
0
0.152941
85
5
29
17
0.722222
0
0
0
0
0
0.305882
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
04829b09961c36916721a20bc96b1e0fb992c3a4
165
py
Python
routes/__init__.py
kolybasov/ankor
0b1aac9d00adf55906293c46c6c2101a5b3f2da7
[ "MIT" ]
null
null
null
routes/__init__.py
kolybasov/ankor
0b1aac9d00adf55906293c46c6c2101a5b3f2da7
[ "MIT" ]
null
null
null
routes/__init__.py
kolybasov/ankor
0b1aac9d00adf55906293c46c6c2101a5b3f2da7
[ "MIT" ]
null
null
null
from .links import LinksRoute from .root import RootRoute from .settings import SettingsRoute __all__ = [ 'RootRoute', 'LinksRoute', 'SettingsRoute', ]
16.5
35
0.715152
16
165
7.125
0.5625
0
0
0
0
0
0
0
0
0
0
0
0.193939
165
9
36
18.333333
0.857143
0
0
0
0
0
0.193939
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
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
0
0
0
3
04ac419b066986c607fb10d9b1a2b367f2438a0c
458
py
Python
tests/api_workflow.py
Ramanth/analyticsapi-engines-python-sdk
93af954e3bd2107146d4914437feb8e27c159741
[ "Apache-2.0" ]
12
2019-12-01T10:34:50.000Z
2022-03-14T00:11:21.000Z
tests/api_workflow.py
Ramanth/analyticsapi-engines-python-sdk
93af954e3bd2107146d4914437feb8e27c159741
[ "Apache-2.0" ]
33
2019-12-01T12:14:01.000Z
2022-03-22T04:50:30.000Z
tests/api_workflow.py
Ramanth/analyticsapi-engines-python-sdk
93af954e3bd2107146d4914437feb8e27c159741
[ "Apache-2.0" ]
1
2019-12-01T10:34:52.000Z
2019-12-01T10:34:52.000Z
def run_api_workflow_with_assertions(workflow_specification, current_request, test_context): current_request_result = current_request(test_context) if current_request_result is not None and current_request_result["continue_workflow"]: run_api_workflow_with_assertions( workflow_specification, workflow_specification[current_request_result["next_request"]], current_request_result["test_context"] )
50.888889
92
0.768559
51
458
6.352941
0.372549
0.302469
0.308642
0.111111
0.302469
0.302469
0.302469
0
0
0
0
0
0.172489
458
8
93
57.25
0.854881
0
0
0
0
0
0.08952
0
0
0
0
0
0.25
1
0.125
false
0
0
0
0.125
0
0
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
3
04ad46b6e7521decb5097d7fef950d301003359e
4,820
py
Python
crawling_prac/recipeKR/recipeKR/pipelines.py
chunbo777/RECIPENLGforMC
144e4d5fe9d02a0dc644b018322268fa30af984e
[ "Apache-2.0" ]
1
2022-01-21T05:58:50.000Z
2022-01-21T05:58:50.000Z
crawling_prac/recipeKR/recipeKR/pipelines.py
chunbo777/RECIPENLGforMC
144e4d5fe9d02a0dc644b018322268fa30af984e
[ "Apache-2.0" ]
null
null
null
crawling_prac/recipeKR/recipeKR/pipelines.py
chunbo777/RECIPENLGforMC
144e4d5fe9d02a0dc644b018322268fa30af984e
[ "Apache-2.0" ]
null
null
null
# Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html ''' Scraped data -> Item Containers -> Json/CSV files Scraped data -> Item Containers -> Pipeline -> SQL/MongoDB ''' # useful for handling different item types with a single interface from itemadapter import ItemAdapter import os # import mysql.connector # import pymongo import json # class RecipekrWithMongoPipeline(object): # def __init__(self): # self.conn = pymongo.MongoClient( # host='localhost', port=27017 # ) # db = self.conn['myquotes'] # # self.collection = db['quotes_prac'] # self.collection = db['recipe_prac'] # def process_item(self, item, spider): # self.collection.insert(dict(item)) # return item # class RecipeWithMySqlPipeline: # def __init__(self): # self.create_connection() # self.create_table() # def create_connection(self): # nameserver = None # if os.sys.platform =='win32': # nameserver = 'localhost' # elif os.sys.platform == 'linux': # nameserver = '172.19.128.1'# /etc/resolv.conf # mydb = mysql.connector.connect( # charset='utf8' # , db='Recipe' # , host=nameserver # , user="dasomoh" # , password="1234" # ) # self.conn = mydb # self.curr = self.conn.cursor(buffered=True) # def create_table(self): # sql =''' # CREATE TABLE if not exists Recipe ( # Recipeid int NOT NULL AUTO_INCREMENT, # title varchar(255) NOT NULL, # link varchar(255), # PRIMARY KEY (Recipeid) # ); # ''' # self.curr.execute(sql) # sql =''' # CREATE TABLE if not exists Ingredients ( # IngrId int NOT NULL AUTO_INCREMENT, # Recipeid int NOT NULL, # ingredient varchar(255), # PRIMARY KEY (IngrId), # FOREIGN KEY (Recipeid) REFERENCES Recipe(Recipeid) # ); # ''' # self.curr.execute(sql) # sql =''' # CREATE TABLE if not exists Directions ( # Dirid int NOT NULL AUTO_INCREMENT, # Recipeid int NOT NULL, # direction varchar(1023), # PRIMARY KEY (Dirid), # FOREIGN KEY (Recipeid) REFERENCES Recipe(Recipeid) # ); # ''' # self.curr.execute(sql) # # self.curr.execute("""DROP TABLE IF EXISTS recipe_prac""") # # self.curr.execute("""create table recipe_prac( # # title text, author text, tag text # # )""") # def process_item(self, item, spider): # self.store_db(item) # return item # def store_db(self, item): # sql = f''' # INSERT INTO Recipe (title, link) # VALUES ( # "{item['title'][0].strip()}" # ,"{item['link']}" # ); # ''' # self.curr.execute(sql) # self.curr.execute('SELECT LAST_INSERT_ID()') # recipeid = str(self.curr.lastrowid) # for ingredient in item['ingredients']: # sql = f''' # INSERT INTO Ingredients (Recipeid, ingredient) # VALUES ( # "{recipeid.strip()}" # ,"{ingredient.strip()}" # ); # ''' # self.curr.execute(sql) # for direction in item['directions']: # sql = f''' # INSERT INTO directions (Recipeid, direction) # VALUES ( # "{recipeid.strip()}" # ,"{direction.strip()}" # ); # ''' # self.curr.execute(sql) # self.conn.commit() class RecipekrPipeline: def __init__(self): pass def process_item(self, item, spider): # with open('./data/wtablerecipe.json', 'a', encoding='utf8') as f: # with open('./data/haemukrecipe.json', 'a', encoding='utf8') as f: # with open('./data/ssgrecipe.json', 'a', encoding='utf8') as f: # with open('./data//manrecipe1.json', 'a', encoding='utf8') as f: # with open('./data/chungjungone.json', 'a', encoding='utf8') as f: # with open('./data/philips.json', 'a', encoding='utf8') as f: # with open('./data/cheiljedang.json', 'a', encoding='utf8') as f: # with open('./data/lampcook_north.json', 'a', encoding='utf8') as f: with open('./data/lampcook_north.json', 'a', encoding='utf8') as f: jsonData = json.dumps(item._values, ensure_ascii=False) f.write(jsonData) return item
30.125
77
0.527178
496
4,820
5.052419
0.322581
0.035116
0.053871
0.061053
0.326417
0.297287
0.276137
0.231445
0.231445
0.122107
0
0.013997
0.332988
4,820
159
78
30.314465
0.765474
0.848755
0
0
0
0
0.051325
0.043046
0
0
0
0
0
1
0.181818
false
0.090909
0.272727
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
04b307b716543b93f9977c29689d84449e7820bd
312
py
Python
oscomp/src/oscomp/fork_test.py
wei-huan/MyOS
0592dd73fd9768a9a69975f7d18c758999195774
[ "MIT" ]
2
2022-02-21T08:37:46.000Z
2022-03-03T06:01:47.000Z
oscomp/src/oscomp/fork_test.py
wei-huan/MyOS
0592dd73fd9768a9a69975f7d18c758999195774
[ "MIT" ]
null
null
null
oscomp/src/oscomp/fork_test.py
wei-huan/MyOS
0592dd73fd9768a9a69975f7d18c758999195774
[ "MIT" ]
null
null
null
from test_base import TestBase import re class fork_test(TestBase): def __init__(self): super().__init__("fork", 3) def test(self, data): self.assert_ge(len(data), 2) self.assert_in_str(" parent process\. wstatus:\d+", data) self.assert_in_str(" child process", data)
26
66
0.644231
44
312
4.227273
0.568182
0.16129
0.150538
0.16129
0
0
0
0
0
0
0
0.008264
0.224359
312
12
67
26
0.760331
0
0
0
0
0
0.15655
0
0
0
0
0
0.333333
1
0.222222
false
0
0.222222
0
0.555556
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
0
1
0
0
3
04d776ab689d0da73d992f53cab94ca3e0603adc
804
py
Python
bsidesns/api/__init__.py
Dervish13/bsidesns-backend
ba8173f2b81210a561b203973eb48d5c124870b1
[ "BSD-2-Clause" ]
1
2019-05-06T20:54:06.000Z
2019-05-06T20:54:06.000Z
bsidesns/api/__init__.py
Dervish13/bsidesns-backend
ba8173f2b81210a561b203973eb48d5c124870b1
[ "BSD-2-Clause" ]
null
null
null
bsidesns/api/__init__.py
Dervish13/bsidesns-backend
ba8173f2b81210a561b203973eb48d5c124870b1
[ "BSD-2-Clause" ]
3
2020-01-12T13:34:35.000Z
2021-11-01T17:50:21.000Z
from freenit.api import register_endpoints def create_api(app): from .blog import blueprint as blog from .cfp import blueprint as cfp from .cfs import blueprint as cfs from .email import blueprint as email from .event import blueprint as event from .gallery import blueprint as gallery from .hall import blueprint as hall from .landing import blueprint as landing from .talk import blueprint as talk from .ticket import blueprint as ticket register_endpoints( app, '/api/v0', [ blog, cfp, cfs, email, event, gallery, hall, landing, talk, ticket, ], ) from ..cli import register register(app)
22.971429
45
0.579602
91
804
5.087912
0.252747
0.323974
0.367171
0
0
0
0
0
0
0
0
0.00198
0.371891
804
34
46
23.647059
0.914851
0
0
0
0
0
0.008706
0
0
0
0
0
0
1
0.033333
false
0
0.4
0
0.433333
0.333333
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
04da9f5b3f0a1562d09fdc750f3512c5846f329f
1,288
py
Python
nativedroid/nativedroid/analyses/resolver/annotation/jfield_id_annotation.py
CherishAZ/Argus-SAF
06596c6bb03fe2560030b52bf2b47d17d1bd3068
[ "Apache-2.0" ]
152
2016-06-10T19:10:03.000Z
2022-02-26T12:43:00.000Z
nativedroid/nativedroid/analyses/resolver/annotation/jfield_id_annotation.py
CherishAZ/Argus-SAF
06596c6bb03fe2560030b52bf2b47d17d1bd3068
[ "Apache-2.0" ]
83
2016-07-08T16:49:37.000Z
2022-01-16T10:48:27.000Z
nativedroid/nativedroid/analyses/resolver/annotation/jfield_id_annotation.py
CherishAZ/Argus-SAF
06596c6bb03fe2560030b52bf2b47d17d1bd3068
[ "Apache-2.0" ]
47
2016-06-22T01:28:21.000Z
2022-03-06T14:18:08.000Z
from claripy import Annotation __author__ = "Xingwei Lin, Fengguo Wei" __copyright__ = "Copyright 2018, The Argus-SAF Project" __license__ = "Apache v2.0" class JfieldIDAnnotation(Annotation): """ This annotation is used to store jfieldID type information. """ def __init__(self, class_name=None, field_name=None, field_signature=None): """ :param class_name: :param field_name: :param field_signature: """ self._class_name = class_name self._field_name = field_name self._field_signature = field_signature @property def class_name(self): return self._class_name @class_name.setter def class_name(self, value): self._class_name = value @property def field_name(self): return self._field_name @field_name.setter def field_name(self, value): self._field_name = value @property def field_signature(self): return self._field_signature @field_signature.setter def field_signature(self, value): self._field_signature = value @property def eliminatable(self): return False @property def relocatable(self): return False def relocate(self, src, dst): return self
22.206897
79
0.65528
150
1,288
5.28
0.313333
0.102273
0.065657
0.045455
0.255051
0
0
0
0
0
0
0.006342
0.265528
1,288
57
80
22.596491
0.830867
0.093944
0
0.2
0
0
0.064806
0
0
0
0
0
0
1
0.285714
false
0
0.028571
0.171429
0.514286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
04dcff8e1dcd705817263defe7d2fdfa25281153
149
py
Python
BOJ2530.py
INYEONGKIM/BOJ
5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc
[ "MIT" ]
2
2019-03-05T15:42:46.000Z
2019-07-24T15:52:36.000Z
BOJ2530.py
INYEONGKIM/BOJ
5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc
[ "MIT" ]
null
null
null
BOJ2530.py
INYEONGKIM/BOJ
5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc
[ "MIT" ]
null
null
null
h,m,s = map(int, input().split()) s += (m*60 + h*3600 + int(input())) h = s//3600 m = (s%3600)//60 s = (s%3600)%60 if h>23: h %= 24 print(h,m,s)
16.555556
35
0.496644
34
149
2.176471
0.382353
0.081081
0.081081
0
0
0
0
0
0
0
0
0.218487
0.201342
149
8
36
18.625
0.403361
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
b6c39fa781b6df8a3f88b2972d39de4a20c64e4d
209
py
Python
acubed/src/server/acubed_svr/databaseConfig.py
AaronBerman/acubed
22f0471ea56ba8a793fcc22af7881479ade78cc2
[ "Apache-2.0" ]
null
null
null
acubed/src/server/acubed_svr/databaseConfig.py
AaronBerman/acubed
22f0471ea56ba8a793fcc22af7881479ade78cc2
[ "Apache-2.0" ]
null
null
null
acubed/src/server/acubed_svr/databaseConfig.py
AaronBerman/acubed
22f0471ea56ba8a793fcc22af7881479ade78cc2
[ "Apache-2.0" ]
null
null
null
import mysql.connector config = { 'user': 'root', 'password': 'rT1@4PlgTd', 'host': 'acubed_db', 'port': '3306' } connection = mysql.connector.connect(**config) cursor = connection.cursor()
19
47
0.626794
22
209
5.909091
0.772727
0.215385
0
0
0
0
0
0
0
0
0
0.035294
0.186603
209
11
48
19
0.729412
0
0
0
0
0
0.22381
0
0
0
0
0
0
1
0
false
0.111111
0.111111
0
0.111111
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
b6c491708f7c2dd222bf81695a2e379fa4ce9e01
182
py
Python
ksusta/admin.py
ayuba-hub/eExams
5c9920cf55b9cb258c7c732bffceb10e5e9188b5
[ "MIT" ]
null
null
null
ksusta/admin.py
ayuba-hub/eExams
5c9920cf55b9cb258c7c732bffceb10e5e9188b5
[ "MIT" ]
null
null
null
ksusta/admin.py
ayuba-hub/eExams
5c9920cf55b9cb258c7c732bffceb10e5e9188b5
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Facultie,Department,Program # Register your models here. my_list = [Department,Facultie,Program] admin.site.register(my_list)
20.222222
47
0.807692
25
182
5.8
0.6
0.082759
0
0
0
0
0
0
0
0
0
0
0.10989
182
8
48
22.75
0.895062
0.142857
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
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
3
b6cb6dd802ed8926890a8272606dae1d0103add4
3,416
py
Python
src/spark/internal/engine/core.py
jbalint/spark
caccf1cd9122dd4a7dc0f26a57ee4a649056aa6f
[ "CNRI-Jython" ]
1
2015-05-21T20:00:12.000Z
2015-05-21T20:00:12.000Z
src/spark/internal/engine/core.py
jbalint/spark
caccf1cd9122dd4a7dc0f26a57ee4a649056aa6f
[ "CNRI-Jython" ]
null
null
null
src/spark/internal/engine/core.py
jbalint/spark
caccf1cd9122dd4a7dc0f26a57ee4a649056aa6f
[ "CNRI-Jython" ]
null
null
null
#*****************************************************************************# #* Copyright (c) 2004-2008, SRI International. *# #* All rights reserved. *# #* *# #* Redistribution and use in source and binary forms, with or without *# #* modification, are permitted provided that the following conditions are *# #* met: *# #* * Redistributions of source code must retain the above copyright *# #* notice, this list of conditions and the following disclaimer. *# #* * Redistributions in binary form must reproduce the above copyright *# #* notice, this list of conditions and the following disclaimer in the *# #* documentation and/or other materials provided with the distribution. *# #* * Neither the name of SRI International nor the names of its *# #* contributors may be used to endorse or promote products derived from *# #* this software without specific prior written permission. *# #* *# #* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *# #* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT *# #* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR *# #* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT *# #* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, *# #* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT *# #* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, *# #* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY *# #* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *# #* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE *# #* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *# #*****************************************************************************# #* "$Revision:: 128 $" *# #* "$HeadURL:: https://svn.ai.sri.com/projects/spark/trunk/spark/src/spar#$" *# #*****************************************************************************# from spark.internal.version import * from spark.internal.parse.basicvalues import ConstructibleValue, installConstructor # # Core APIs for interacting with the SPARK engine/agent # # * The 'Internal' API allows for internal posting of action to be # performed within the agent executor loop (i.e. with the knowledge base locked) # # * The 'External' API allows for posting external requests to the agent, # such as goals # # * The 'Test' API allows for posting test requests to the agent # class Internal(object): """An internal influence on the agent.""" __slots__ = () def __init__(self): pass def perform(self, agent): pass class Test(ConstructibleValue): """A test requested from an external source.""" __slots__ = () class External(ConstructibleValue): """An external influence on the agent.""" __slots__ = ()
53.375
84
0.554742
347
3,416
5.414986
0.507205
0.021288
0.019159
0.024481
0.12347
0.072379
0.072379
0.072379
0.072379
0.072379
0
0.004599
0.299766
3,416
63
85
54.222222
0.780936
0.834602
0
0.416667
0
0
0
0
0
0
0
0
0
1
0.166667
false
0.166667
0.166667
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
b6de0bcbabe2fb0255ae79911d0c45a4168e20e2
189
py
Python
MVP - 2 [Deploying model on django portal]/Portal/base/urls.py
Dhaval-B-Patel/ENSE-885---spring-2021
7ec15060cbb6c12f61112e414b4b976c819ffa2c
[ "MIT" ]
null
null
null
MVP - 2 [Deploying model on django portal]/Portal/base/urls.py
Dhaval-B-Patel/ENSE-885---spring-2021
7ec15060cbb6c12f61112e414b4b976c819ffa2c
[ "MIT" ]
null
null
null
MVP - 2 [Deploying model on django portal]/Portal/base/urls.py
Dhaval-B-Patel/ENSE-885---spring-2021
7ec15060cbb6c12f61112e414b4b976c819ffa2c
[ "MIT" ]
1
2021-06-20T18:54:43.000Z
2021-06-20T18:54:43.000Z
from django.contrib import admin from django.urls import path from .views import home, result urlpatterns = [ path('', home, name='home'), path('result/', result, name='result') ]
21
42
0.687831
25
189
5.2
0.48
0.153846
0
0
0
0
0
0
0
0
0
0
0.169312
189
9
43
21
0.828025
0
0
0
0
0
0.089474
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3