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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b953812809c13031070133a7849795278b13dea4
| 111
|
py
|
Python
|
sim/dynamicobject.py
|
rseed42/labyrinth
|
1cd4dc74c67b1b76972e1e048a7fce0c13955e7d
|
[
"Apache-2.0"
] | null | null | null |
sim/dynamicobject.py
|
rseed42/labyrinth
|
1cd4dc74c67b1b76972e1e048a7fce0c13955e7d
|
[
"Apache-2.0"
] | null | null | null |
sim/dynamicobject.py
|
rseed42/labyrinth
|
1cd4dc74c67b1b76972e1e048a7fce0c13955e7d
|
[
"Apache-2.0"
] | null | null | null |
class DynamicObject(object):
def __init__(self, name, id_):
self.name = name
self.id = id_
| 22.2
| 34
| 0.603604
| 14
| 111
| 4.357143
| 0.571429
| 0.262295
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.288288
| 111
| 4
| 35
| 27.75
| 0.772152
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b95cfef2234f9a61adbaa0afe2564f0d012dea38
| 38
|
py
|
Python
|
settings/debug_members.py
|
akorzunin/telegram_auction_bot
|
d4d5042614ea11f8085815d8f9fb8b6fbebcfab0
|
[
"Apache-2.0"
] | null | null | null |
settings/debug_members.py
|
akorzunin/telegram_auction_bot
|
d4d5042614ea11f8085815d8f9fb8b6fbebcfab0
|
[
"Apache-2.0"
] | null | null | null |
settings/debug_members.py
|
akorzunin/telegram_auction_bot
|
d4d5042614ea11f8085815d8f9fb8b6fbebcfab0
|
[
"Apache-2.0"
] | null | null | null |
DEBUG_MEMBER_LIST = [
503131177,
]
| 12.666667
| 21
| 0.684211
| 4
| 38
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.3
| 0.210526
| 38
| 3
| 22
| 12.666667
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b9750e636d7a3d49a65558af431533fc2e745edb
| 187
|
py
|
Python
|
src/jobs/forms.py
|
arc198/DJANGO-JOB-SITE
|
d9547c4ee85751677ba6458380b609973c3b4a8d
|
[
"MIT"
] | 20
|
2018-05-04T18:42:35.000Z
|
2021-03-18T07:15:12.000Z
|
src/jobs/forms.py
|
fleepgeek/django-jobsite
|
d9547c4ee85751677ba6458380b609973c3b4a8d
|
[
"MIT"
] | 5
|
2020-02-11T22:22:33.000Z
|
2021-06-10T20:18:05.000Z
|
src/jobs/forms.py
|
arc198/DJANGO-JOB-SITE
|
d9547c4ee85751677ba6458380b609973c3b4a8d
|
[
"MIT"
] | 8
|
2018-05-04T19:03:23.000Z
|
2020-09-23T00:24:46.000Z
|
from django import forms
from .models import Application
class ApplicationForm(forms.ModelForm):
class Meta:
model = Application
fields = ('resume', 'cover_letter',)
| 23.375
| 44
| 0.700535
| 20
| 187
| 6.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.213904
| 187
| 8
| 44
| 23.375
| 0.884354
| 0
| 0
| 0
| 0
| 0
| 0.095745
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
b9814171798d1f2ddf5247c67182a7e7e032132e
| 105
|
py
|
Python
|
src/git/cmd.py
|
danihodovic/dht
|
636f54d70f8c6ca60ab48f2815b3e9e1a336d78f
|
[
"MIT"
] | 2
|
2021-01-21T15:04:32.000Z
|
2021-01-21T16:23:32.000Z
|
src/git/cmd.py
|
danihodovic/dht
|
636f54d70f8c6ca60ab48f2815b3e9e1a336d78f
|
[
"MIT"
] | 2
|
2020-12-30T20:34:51.000Z
|
2021-01-17T20:02:02.000Z
|
src/git/cmd.py
|
danihodovic/dht
|
636f54d70f8c6ca60ab48f2815b3e9e1a336d78f
|
[
"MIT"
] | null | null | null |
import os
import click
os.environ["GIT_PYTHON_REFRESH"] = "quiet"
@click.group()
def git():
pass
| 9.545455
| 42
| 0.67619
| 15
| 105
| 4.6
| 0.733333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.180952
| 105
| 10
| 43
| 10.5
| 0.802326
| 0
| 0
| 0
| 0
| 0
| 0.219048
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| true
| 0.166667
| 0.333333
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 4
|
b99f21827c3ba7ccbcab4806c878cdacfa139e20
| 317
|
py
|
Python
|
app/logger_example/main.py
|
khanh-nguyen-code/my-collection
|
31581ef0b1dae67aafb1f4e64b9973a38cc01edf
|
[
"MIT"
] | null | null | null |
app/logger_example/main.py
|
khanh-nguyen-code/my-collection
|
31581ef0b1dae67aafb1f4e64b9973a38cc01edf
|
[
"MIT"
] | null | null | null |
app/logger_example/main.py
|
khanh-nguyen-code/my-collection
|
31581ef0b1dae67aafb1f4e64b9973a38cc01edf
|
[
"MIT"
] | null | null | null |
from my_collection import logger
if __name__ == "__main__":
logger.now().debug("debug1")
logger.now().debug("debug2")
logger.now().info("hello1")
logger.now().info("hello2")
logger.now().with_field("key", "val").error("with field1")
logger.now().with_field("key", "val").error("with field2")
| 31.7
| 62
| 0.646688
| 42
| 317
| 4.619048
| 0.52381
| 0.278351
| 0.14433
| 0.185567
| 0.340206
| 0.340206
| 0.340206
| 0.340206
| 0
| 0
| 0
| 0.021898
| 0.135647
| 317
| 9
| 63
| 35.222222
| 0.686131
| 0
| 0
| 0
| 0
| 0
| 0.208202
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.125
| 0
| 0.125
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b9a4cbf5401cd86949e3f94c13bc464c4725fcee
| 192,704
|
py
|
Python
|
rpc/gen/core_pb2.py
|
jasonjoo2010/core
|
7c05ddbdac2e05a3d96db28f8bdfacf661907b82
|
[
"MIT"
] | null | null | null |
rpc/gen/core_pb2.py
|
jasonjoo2010/core
|
7c05ddbdac2e05a3d96db28f8bdfacf661907b82
|
[
"MIT"
] | null | null | null |
rpc/gen/core_pb2.py
|
jasonjoo2010/core
|
7c05ddbdac2e05a3d96db28f8bdfacf661907b82
|
[
"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\"\xb4\x01\n\x15ListContainersOptions\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\x12\x35\n\x06labels\x18\x04 \x03(\x0b\x32%.pb.ListContainersOptions.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"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\"0\n\x03Pod\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x65sc\x18\x02 \x01(\t\x12\r\n\x05\x66\x61vor\x18\x03 \x01(\t\"\x1d\n\x04Pods\x12\x15\n\x04pods\x18\x01 \x03(\x0b\x32\x07.pb.Pod\"\xfc\x02\n\x0bPodResource\x12\x0c\n\x04name\x18\x01 \x01(\t\x12%\n\x03\x63pu\x18\x02 \x03(\x0b\x32\x18.pb.PodResource.CpuEntry\x12+\n\x06memory\x18\x03 \x03(\x0b\x32\x1b.pb.PodResource.MemoryEntry\x12\'\n\x04\x64iff\x18\x04 \x03(\x0b\x32\x19.pb.PodResource.DiffEntry\x12+\n\x06\x64\x65tail\x18\x05 \x03(\x0b\x32\x1b.pb.PodResource.DetailEntry\x1a*\n\x08\x43puEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01:\x02\x38\x01\x1a-\n\x0bMemoryEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01:\x02\x38\x01\x1a+\n\tDiffEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x08:\x02\x38\x01\x1a-\n\x0b\x44\x65tailEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"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\"\x9e\x03\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\x10\n\x08\x63pu_used\x18\x05 \x01(\x01\x12\x0e\n\x06memory\x18\x06 \x01(\x03\x12\x13\n\x0bmemory_used\x18\x07 \x01(\x03\x12\x11\n\tavailable\x18\x08 \x01(\x08\x12$\n\x06labels\x18\t \x03(\x0b\x32\x14.pb.Node.LabelsEntry\x12\x13\n\x0binit_memory\x18\n \x01(\x03\x12\'\n\x08init_cpu\x18\x0b \x03(\x0b\x32\x15.pb.Node.InitCpuEntry\x12\x0c\n\x04info\x18\x0c \x01(\t\x1a*\n\x08\x43puEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\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.\n\x0cInitCpuEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\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\"\xb8\x03\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#\n\x03\x63pu\x18\x05 \x03(\x0b\x32\x16.pb.Container.CpuEntry\x12\r\n\x05quota\x18\x06 \x01(\x01\x12\x0e\n\x06memory\x18\x07 \x01(\x03\x12\x12\n\nprivileged\x18\x08 \x01(\x08\x12)\n\x06labels\x18\t \x03(\x0b\x32\x19.pb.Container.LabelsEntry\x12+\n\x07publish\x18\n \x03(\x0b\x32\x1a.pb.Container.PublishEntry\x12\r\n\x05image\x18\x0b \x01(\t\x12\x0f\n\x07inspect\x18\x0c \x01(\x0c\x12\x13\n\x0bstatus_data\x18\r \x01(\x0c\x1a*\n\x08\x43puEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\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.\n\x0cPublishEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"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(\x05\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\"\x8e\x04\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\x11\n\tsubmodule\x18\x05 \x01(\x08\x12\x10\n\x08\x63ommands\x18\x06 \x03(\t\x12!\n\x04\x65nvs\x18\x07 \x03(\x0b\x32\x13.pb.Build.EnvsEntry\x12!\n\x04\x61rgs\x18\x08 \x03(\x0b\x32\x13.pb.Build.ArgsEntry\x12%\n\x06labels\x18\t \x03(\x0b\x32\x15.pb.Build.LabelsEntry\x12+\n\tartifacts\x18\n \x03(\x0b\x32\x18.pb.Build.ArtifactsEntry\x12#\n\x05\x63\x61\x63he\x18\x0b \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\"s\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\x0c\n\x04tags\x18\x04 \x03(\t\x12\x1a\n\x06\x62uilds\x18\x05 \x01(\x0b\x32\n.pb.Builds\x12\x0b\n\x03tar\x18\x06 \x01(\x0c\"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\"u\n\nLogOptions\x12\x0c\n\x04type\x18\x01 \x01(\t\x12*\n\x06\x63onfig\x18\x02 \x03(\x0b\x32\x1a.pb.LogOptions.ConfigEntry\x1a-\n\x0b\x43onfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xca\x02\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\x1b\n\x03log\x18\x05 \x01(\x0b\x32\x0e.pb.LogOptions\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\x12\x33\n\x07sysctls\x18\n \x03(\x0b\x32\".pb.EntrypointOptions.SysctlsEntry\x1a.\n\x0cSysctlsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x88\x06\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\x06labels\x18\x13 \x03(\x0b\x32\x1d.pb.DeployOptions.LabelsEntry\x12\x35\n\nnodelabels\x18\x14 \x03(\x0b\x32!.pb.DeployOptions.NodelabelsEntry\x12\x15\n\rdeploy_method\x18\x15 \x01(\t\x12)\n\x04\x64\x61ta\x18\x16 \x03(\x0b\x32\x1b.pb.DeployOptions.DataEntry\x12\x11\n\tsoftlimit\x18\x17 \x01(\x08\x12\x13\n\x0bnodes_limit\x18\x18 \x01(\x05\x1a/\n\rNetworksEntry\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\x31\n\x0fNodelabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"\xb5\x02\n\x0eReplaceOptions\x12$\n\tdeployOpt\x18\x01 \x01(\x0b\x32\x11.pb.DeployOptions\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x12;\n\rfilter_labels\x18\x03 \x03(\x0b\x32$.pb.ReplaceOptions.FilterLabelsEntry\x12*\n\x04\x63opy\x18\x04 \x03(\x0b\x32\x1c.pb.ReplaceOptions.CopyEntry\x12\x0b\n\x03ids\x18\x05 \x03(\t\x12\x16\n\x0enetworkinherit\x18\x06 \x01(\x08\x1a\x33\n\x11\x46ilterLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a+\n\tCopyEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"T\n\x11\x43\x61\x63heImageOptions\x12\x0f\n\x07podname\x18\x01 \x01(\t\x12\x10\n\x08nodename\x18\x02 \x01(\t\x12\x0e\n\x06images\x18\x03 \x03(\t\x12\x0c\n\x04step\x18\x04 \x01(\x05\"d\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\x12\x0c\n\x04step\x18\x04 \x01(\x05\x12\r\n\x05prune\x18\x05 \x01(\x08\"\x1a\n\tCopyPaths\x12\r\n\x05paths\x18\x01 \x03(\t\"{\n\x0b\x43opyOptions\x12-\n\x07targets\x18\x01 \x03(\x0b\x32\x1c.pb.CopyOptions.TargetsEntry\x1a=\n\x0cTargetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1c\n\x05value\x18\x02 \x01(\x0b\x32\r.pb.CopyPaths:\x02\x38\x01\",\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(\x05:\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\"\x80\x01\n\x17ReplaceContainerMessage\x12*\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x1a.pb.CreateContainerMessage\x12*\n\x06remove\x18\x02 \x01(\x0b\x32\x1a.pb.RemoveContainerMessage\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"7\n\x11RunAndWaitMessage\x12\x14\n\x0c\x63ontainer_id\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"V\n\x11\x43\x61\x63heImageMessage\x12\r\n\x05image\x18\x01 \x01(\t\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12\x10\n\x08nodename\x18\x03 \x01(\t\x12\x0f\n\x07message\x18\x04 \x01(\t\"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\"C\n\x16RemoveContainerMessage\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12\x0c\n\x04hook\x18\x03 \x01(\t\"5\n\x16ReallocResourceMessage\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07success\x18\x02 \x01(\x08\"b\n\x0b\x43opyMessage\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06status\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x0c\n\x04path\x18\x04 \x01(\t\x12\r\n\x05\x65rror\x18\x05 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x06 \x01(\x0c\"J\n\x11RunAndWaitOptions\x12(\n\rDeployOptions\x18\x01 \x01(\x0b\x32\x11.pb.DeployOptions\x12\x0b\n\x03\x43md\x18\x02 \x01(\x0c\"4\n\x17\x43ontrolContainerOptions\x12\x0b\n\x03ids\x18\x01 \x03(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\"B\n\x17\x43ontrolContainerMessage\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12\x0c\n\x04hook\x18\x03 \x01(\x0c\x32\xcb\x0c\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\x36\n\x0eGetPodResource\x12\x11.pb.GetPodOptions\x1a\x0f.pb.PodResource\"\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\x31\n\x10SetNodeAvailable\x12\x11.pb.NodeAvailable\x1a\x08.pb.Node\"\x00\x12)\n\x07GetNode\x12\x12.pb.GetNodeOptions\x1a\x08.pb.Node\"\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/\n\rGetNodeByName\x12\x12.pb.GetNodeOptions\x1a\x08.pb.Node\"\x00\x12\x31\n\x0cListPodNodes\x12\x14.pb.ListNodesOptions\x1a\t.pb.Nodes\"\x00\x12\x36\n\x0cListNetworks\x12\x16.pb.ListNetworkOptions\x1a\x0c.pb.Networks\"\x00\x12=\n\x0eListContainers\x12\x19.pb.ListContainersOptions\x1a\x0e.pb.Containers\"\x00\x12:\n\x12ListNodeContainers\x12\x12.pb.GetNodeOptions\x1a\x0e.pb.Containers\"\x00\x12>\n\x11\x43ontainerDeployed\x12\x1c.pb.ContainerDeployedOptions\x1a\t.pb.Empty\"\x00\x12,\n\x04\x43opy\x12\x0f.pb.CopyOptions\x1a\x0f.pb.CopyMessage\"\x00\x30\x01\x12>\n\nBuildImage\x12\x15.pb.BuildImageOptions\x1a\x15.pb.BuildImageMessage\"\x00\x30\x01\x12>\n\nCacheImage\x12\x15.pb.CacheImageOptions\x1a\x15.pb.CacheImageMessage\"\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\x12G\n\x10ReplaceContainer\x12\x12.pb.ReplaceOptions\x1a\x1b.pb.ReplaceContainerMessage\"\x00\x30\x01\x12M\n\x0fRemoveContainer\x12\x1a.pb.RemoveContainerOptions\x1a\x1a.pb.RemoveContainerMessage\"\x00\x30\x01\x12P\n\x10\x43ontrolContainer\x12\x1b.pb.ControlContainerOptions\x1a\x1b.pb.ControlContainerMessage\"\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,
)
_LISTCONTAINERSOPTIONS_LABELSENTRY = _descriptor.Descriptor(
name='LabelsEntry',
full_name='pb.ListContainersOptions.LabelsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.ListContainersOptions.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.ListContainersOptions.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=163,
serialized_end=208,
)
_LISTCONTAINERSOPTIONS = _descriptor.Descriptor(
name='ListContainersOptions',
full_name='pb.ListContainersOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='appname', full_name='pb.ListContainersOptions.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.ListContainersOptions.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.ListContainersOptions.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='labels', full_name='pb.ListContainersOptions.labels', index=3,
number=4, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_LISTCONTAINERSOPTIONS_LABELSENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=28,
serialized_end=208,
)
_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=210,
serialized_end=286,
)
_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=288,
serialized_end=406,
)
_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),
_descriptor.FieldDescriptor(
name='favor', full_name='pb.Pod.favor', 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=408,
serialized_end=456,
)
_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=458,
serialized_end=487,
)
_PODRESOURCE_CPUENTRY = _descriptor.Descriptor(
name='CpuEntry',
full_name='pb.PodResource.CpuEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.PodResource.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.PodResource.CpuEntry.value', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=689,
serialized_end=731,
)
_PODRESOURCE_MEMORYENTRY = _descriptor.Descriptor(
name='MemoryEntry',
full_name='pb.PodResource.MemoryEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.PodResource.MemoryEntry.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.PodResource.MemoryEntry.value', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=733,
serialized_end=778,
)
_PODRESOURCE_DIFFENTRY = _descriptor.Descriptor(
name='DiffEntry',
full_name='pb.PodResource.DiffEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.PodResource.DiffEntry.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.PodResource.DiffEntry.value', 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=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=780,
serialized_end=823,
)
_PODRESOURCE_DETAILENTRY = _descriptor.Descriptor(
name='DetailEntry',
full_name='pb.PodResource.DetailEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.PodResource.DetailEntry.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.PodResource.DetailEntry.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=825,
serialized_end=870,
)
_PODRESOURCE = _descriptor.Descriptor(
name='PodResource',
full_name='pb.PodResource',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='pb.PodResource.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='cpu', full_name='pb.PodResource.cpu', 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),
_descriptor.FieldDescriptor(
name='memory', full_name='pb.PodResource.memory', index=2,
number=3, 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='diff', full_name='pb.PodResource.diff', 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='detail', full_name='pb.PodResource.detail', index=4,
number=5, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_PODRESOURCE_CPUENTRY, _PODRESOURCE_MEMORYENTRY, _PODRESOURCE_DIFFENTRY, _PODRESOURCE_DETAILENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=490,
serialized_end=870,
)
_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=872,
serialized_end=925,
)
_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=927,
serialized_end=967,
)
_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=969,
serialized_end=1010,
)
_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=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=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1290,
serialized_end=1332,
)
_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=163,
serialized_end=208,
)
_NODE_INITCPUENTRY = _descriptor.Descriptor(
name='InitCpuEntry',
full_name='pb.Node.InitCpuEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.Node.InitCpuEntry.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.InitCpuEntry.value', index=1,
number=2, 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=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1381,
serialized_end=1427,
)
_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='cpu_used', full_name='pb.Node.cpu_used', index=4,
number=5, 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.Node.memory', index=5,
number=6, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='memory_used', full_name='pb.Node.memory_used', index=6,
number=7, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='available', full_name='pb.Node.available', index=7,
number=8, 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=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='init_memory', full_name='pb.Node.init_memory', index=9,
number=10, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='init_cpu', full_name='pb.Node.init_cpu', index=10,
number=11, 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='info', full_name='pb.Node.info', index=11,
number=12, 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=[_NODE_CPUENTRY, _NODE_LABELSENTRY, _NODE_INITCPUENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1013,
serialized_end=1427,
)
_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=1429,
serialized_end=1461,
)
_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=1463,
serialized_end=1532,
)
_CONTAINER_CPUENTRY = _descriptor.Descriptor(
name='CpuEntry',
full_name='pb.Container.CpuEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.Container.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.Container.CpuEntry.value', index=1,
number=2, 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=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1290,
serialized_end=1332,
)
_CONTAINER_LABELSENTRY = _descriptor.Descriptor(
name='LabelsEntry',
full_name='pb.Container.LabelsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.Container.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.Container.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=163,
serialized_end=208,
)
_CONTAINER_PUBLISHENTRY = _descriptor.Descriptor(
name='PublishEntry',
full_name='pb.Container.PublishEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.Container.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.Container.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=1929,
serialized_end=1975,
)
_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='cpu', full_name='pb.Container.cpu', index=4,
number=5, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='quota', full_name='pb.Container.quota', index=5,
number=6, 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.Container.memory', index=6,
number=7, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='privileged', full_name='pb.Container.privileged', index=7,
number=8, 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.Container.labels', 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='publish', full_name='pb.Container.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='image', full_name='pb.Container.image', index=10,
number=11, 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='inspect', full_name='pb.Container.inspect', index=11,
number=12, 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),
_descriptor.FieldDescriptor(
name='status_data', full_name='pb.Container.status_data', index=12,
number=13, 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=[_CONTAINER_CPUENTRY, _CONTAINER_LABELSENTRY, _CONTAINER_PUBLISHENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1535,
serialized_end=1975,
)
_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=1977,
serialized_end=2084,
)
_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=2086,
serialized_end=2133,
)
_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=2135,
serialized_end=2160,
)
_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=2162,
serialized_end=2189,
)
_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=2191,
serialized_end=2243,
)
_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=2245,
serialized_end=2300,
)
_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=2302,
serialized_end=2360,
)
_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=2362,
serialized_end=2394,
)
_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=2396,
serialized_end=2425,
)
_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=163,
serialized_end=208,
)
_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=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='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=2428,
serialized_end=2675,
)
_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=2677,
serialized_end=2731,
)
_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=2733,
serialized_end=2784,
)
_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=2786,
serialized_end=2834,
)
_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=3132,
serialized_end=3175,
)
_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=3177,
serialized_end=3220,
)
_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=163,
serialized_end=208,
)
_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=3269,
serialized_end=3317,
)
_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=3319,
serialized_end=3363,
)
_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='submodule', full_name='pb.Build.submodule', index=4,
number=5, 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='commands', full_name='pb.Build.commands', 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='envs', full_name='pb.Build.envs', 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='args', full_name='pb.Build.args', 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='labels', full_name='pb.Build.labels', 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='artifacts', full_name='pb.Build.artifacts', 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='cache', full_name='pb.Build.cache', index=10,
number=11, 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=2837,
serialized_end=3363,
)
_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=3431,
serialized_end=3487,
)
_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=3365,
serialized_end=3487,
)
_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='tags', full_name='pb.BuildImageOptions.tags', index=3,
number=4, 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.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),
_descriptor.FieldDescriptor(
name='tar', full_name='pb.BuildImageOptions.tar', 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=3489,
serialized_end=3604,
)
_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=3606,
serialized_end=3676,
)
_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=3678,
serialized_end=3763,
)
_LOGOPTIONS_CONFIGENTRY = _descriptor.Descriptor(
name='ConfigEntry',
full_name='pb.LogOptions.ConfigEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.LogOptions.ConfigEntry.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.LogOptions.ConfigEntry.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=3837,
serialized_end=3882,
)
_LOGOPTIONS = _descriptor.Descriptor(
name='LogOptions',
full_name='pb.LogOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='type', full_name='pb.LogOptions.type', 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='config', full_name='pb.LogOptions.config', 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=[_LOGOPTIONS_CONFIGENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3765,
serialized_end=3882,
)
_ENTRYPOINTOPTIONS_SYSCTLSENTRY = _descriptor.Descriptor(
name='SysctlsEntry',
full_name='pb.EntrypointOptions.SysctlsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.EntrypointOptions.SysctlsEntry.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.EntrypointOptions.SysctlsEntry.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=4169,
serialized_end=4215,
)
_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', full_name='pb.EntrypointOptions.log', 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),
_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),
_descriptor.FieldDescriptor(
name='sysctls', full_name='pb.EntrypointOptions.sysctls', 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=[_ENTRYPOINTOPTIONS_SYSCTLSENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=3885,
serialized_end=4215,
)
_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=4804,
serialized_end=4851,
)
_DEPLOYOPTIONS_LABELSENTRY = _descriptor.Descriptor(
name='LabelsEntry',
full_name='pb.DeployOptions.LabelsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.DeployOptions.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.DeployOptions.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=163,
serialized_end=208,
)
_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=4900,
serialized_end=4949,
)
_DEPLOYOPTIONS_DATAENTRY = _descriptor.Descriptor(
name='DataEntry',
full_name='pb.DeployOptions.DataEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.DeployOptions.DataEntry.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.DataEntry.value', 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=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=4951,
serialized_end=4994,
)
_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='labels', full_name='pb.DeployOptions.labels', 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='deploy_method', full_name='pb.DeployOptions.deploy_method', index=20,
number=21, 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.DeployOptions.data', index=21,
number=22, 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='softlimit', full_name='pb.DeployOptions.softlimit', index=22,
number=23, 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='nodes_limit', full_name='pb.DeployOptions.nodes_limit', index=23,
number=24, 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=[_DEPLOYOPTIONS_NETWORKSENTRY, _DEPLOYOPTIONS_LABELSENTRY, _DEPLOYOPTIONS_NODELABELSENTRY, _DEPLOYOPTIONS_DATAENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=4218,
serialized_end=4994,
)
_REPLACEOPTIONS_FILTERLABELSENTRY = _descriptor.Descriptor(
name='FilterLabelsEntry',
full_name='pb.ReplaceOptions.FilterLabelsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.ReplaceOptions.FilterLabelsEntry.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.ReplaceOptions.FilterLabelsEntry.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=5210,
serialized_end=5261,
)
_REPLACEOPTIONS_COPYENTRY = _descriptor.Descriptor(
name='CopyEntry',
full_name='pb.ReplaceOptions.CopyEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.ReplaceOptions.CopyEntry.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.ReplaceOptions.CopyEntry.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=5263,
serialized_end=5306,
)
_REPLACEOPTIONS = _descriptor.Descriptor(
name='ReplaceOptions',
full_name='pb.ReplaceOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='deployOpt', full_name='pb.ReplaceOptions.deployOpt', 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='force', full_name='pb.ReplaceOptions.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),
_descriptor.FieldDescriptor(
name='filter_labels', full_name='pb.ReplaceOptions.filter_labels', index=2,
number=3, 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='copy', full_name='pb.ReplaceOptions.copy', 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='ids', full_name='pb.ReplaceOptions.ids', 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='networkinherit', full_name='pb.ReplaceOptions.networkinherit', 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),
],
extensions=[
],
nested_types=[_REPLACEOPTIONS_FILTERLABELSENTRY, _REPLACEOPTIONS_COPYENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=4997,
serialized_end=5306,
)
_CACHEIMAGEOPTIONS = _descriptor.Descriptor(
name='CacheImageOptions',
full_name='pb.CacheImageOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='podname', full_name='pb.CacheImageOptions.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.CacheImageOptions.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.CacheImageOptions.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),
_descriptor.FieldDescriptor(
name='step', full_name='pb.CacheImageOptions.step', 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=5308,
serialized_end=5392,
)
_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),
_descriptor.FieldDescriptor(
name='step', full_name='pb.RemoveImageOptions.step', 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),
_descriptor.FieldDescriptor(
name='prune', full_name='pb.RemoveImageOptions.prune', index=4,
number=5, 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=5394,
serialized_end=5494,
)
_COPYPATHS = _descriptor.Descriptor(
name='CopyPaths',
full_name='pb.CopyPaths',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='paths', full_name='pb.CopyPaths.paths', 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=5496,
serialized_end=5522,
)
_COPYOPTIONS_TARGETSENTRY = _descriptor.Descriptor(
name='TargetsEntry',
full_name='pb.CopyOptions.TargetsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='pb.CopyOptions.TargetsEntry.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.CopyOptions.TargetsEntry.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=5586,
serialized_end=5647,
)
_COPYOPTIONS = _descriptor.Descriptor(
name='CopyOptions',
full_name='pb.CopyOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='targets', full_name='pb.CopyOptions.targets', 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=[_COPYOPTIONS_TARGETSENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=5524,
serialized_end=5647,
)
_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=5649,
serialized_end=5693,
)
_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=5696,
serialized_end=5831,
)
_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=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=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1290,
serialized_end=1332,
)
_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=1929,
serialized_end=1975,
)
_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=5834,
serialized_end=6196,
)
_REPLACECONTAINERMESSAGE = _descriptor.Descriptor(
name='ReplaceContainerMessage',
full_name='pb.ReplaceContainerMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='create', full_name='pb.ReplaceContainerMessage.create', 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='remove', full_name='pb.ReplaceContainerMessage.remove', 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='error', full_name='pb.ReplaceContainerMessage.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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=6199,
serialized_end=6327,
)
_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=6329,
serialized_end=6384,
)
_CACHEIMAGEMESSAGE = _descriptor.Descriptor(
name='CacheImageMessage',
full_name='pb.CacheImageMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='image', full_name='pb.CacheImageMessage.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.CacheImageMessage.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='nodename', full_name='pb.CacheImageMessage.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='message', full_name='pb.CacheImageMessage.message', 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=6386,
serialized_end=6472,
)
_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=6474,
serialized_end=6544,
)
_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='hook', full_name='pb.RemoveContainerMessage.hook', 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=6546,
serialized_end=6613,
)
_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=6615,
serialized_end=6668,
)
_COPYMESSAGE = _descriptor.Descriptor(
name='CopyMessage',
full_name='pb.CopyMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='pb.CopyMessage.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.CopyMessage.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='name', full_name='pb.CopyMessage.name', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='path', full_name='pb.CopyMessage.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),
_descriptor.FieldDescriptor(
name='error', full_name='pb.CopyMessage.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='data', full_name='pb.CopyMessage.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=6670,
serialized_end=6768,
)
_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=6770,
serialized_end=6844,
)
_CONTROLCONTAINEROPTIONS = _descriptor.Descriptor(
name='ControlContainerOptions',
full_name='pb.ControlContainerOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='ids', full_name='pb.ControlContainerOptions.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='type', full_name='pb.ControlContainerOptions.type', 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=6846,
serialized_end=6898,
)
_CONTROLCONTAINERMESSAGE = _descriptor.Descriptor(
name='ControlContainerMessage',
full_name='pb.ControlContainerMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='pb.ControlContainerMessage.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='error', full_name='pb.ControlContainerMessage.error', 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='hook', full_name='pb.ControlContainerMessage.hook', index=2,
number=3, 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=6900,
serialized_end=6966,
)
_LISTCONTAINERSOPTIONS_LABELSENTRY.containing_type = _LISTCONTAINERSOPTIONS
_LISTCONTAINERSOPTIONS.fields_by_name['labels'].message_type = _LISTCONTAINERSOPTIONS_LABELSENTRY
_PODS.fields_by_name['pods'].message_type = _POD
_PODRESOURCE_CPUENTRY.containing_type = _PODRESOURCE
_PODRESOURCE_MEMORYENTRY.containing_type = _PODRESOURCE
_PODRESOURCE_DIFFENTRY.containing_type = _PODRESOURCE
_PODRESOURCE_DETAILENTRY.containing_type = _PODRESOURCE
_PODRESOURCE.fields_by_name['cpu'].message_type = _PODRESOURCE_CPUENTRY
_PODRESOURCE.fields_by_name['memory'].message_type = _PODRESOURCE_MEMORYENTRY
_PODRESOURCE.fields_by_name['diff'].message_type = _PODRESOURCE_DIFFENTRY
_PODRESOURCE.fields_by_name['detail'].message_type = _PODRESOURCE_DETAILENTRY
_NETWORKS.fields_by_name['networks'].message_type = _NETWORK
_NODE_CPUENTRY.containing_type = _NODE
_NODE_LABELSENTRY.containing_type = _NODE
_NODE_INITCPUENTRY.containing_type = _NODE
_NODE.fields_by_name['cpu'].message_type = _NODE_CPUENTRY
_NODE.fields_by_name['labels'].message_type = _NODE_LABELSENTRY
_NODE.fields_by_name['init_cpu'].message_type = _NODE_INITCPUENTRY
_NODES.fields_by_name['nodes'].message_type = _NODE
_CONTAINER_CPUENTRY.containing_type = _CONTAINER
_CONTAINER_LABELSENTRY.containing_type = _CONTAINER
_CONTAINER_PUBLISHENTRY.containing_type = _CONTAINER
_CONTAINER.fields_by_name['cpu'].message_type = _CONTAINER_CPUENTRY
_CONTAINER.fields_by_name['labels'].message_type = _CONTAINER_LABELSENTRY
_CONTAINER.fields_by_name['publish'].message_type = _CONTAINER_PUBLISHENTRY
_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
_LOGOPTIONS_CONFIGENTRY.containing_type = _LOGOPTIONS
_LOGOPTIONS.fields_by_name['config'].message_type = _LOGOPTIONS_CONFIGENTRY
_ENTRYPOINTOPTIONS_SYSCTLSENTRY.containing_type = _ENTRYPOINTOPTIONS
_ENTRYPOINTOPTIONS.fields_by_name['log'].message_type = _LOGOPTIONS
_ENTRYPOINTOPTIONS.fields_by_name['healthcheck'].message_type = _HEALTHCHECKOPTIONS
_ENTRYPOINTOPTIONS.fields_by_name['hook'].message_type = _HOOKOPTIONS
_ENTRYPOINTOPTIONS.fields_by_name['sysctls'].message_type = _ENTRYPOINTOPTIONS_SYSCTLSENTRY
_DEPLOYOPTIONS_NETWORKSENTRY.containing_type = _DEPLOYOPTIONS
_DEPLOYOPTIONS_LABELSENTRY.containing_type = _DEPLOYOPTIONS
_DEPLOYOPTIONS_NODELABELSENTRY.containing_type = _DEPLOYOPTIONS
_DEPLOYOPTIONS_DATAENTRY.containing_type = _DEPLOYOPTIONS
_DEPLOYOPTIONS.fields_by_name['entrypoint'].message_type = _ENTRYPOINTOPTIONS
_DEPLOYOPTIONS.fields_by_name['networks'].message_type = _DEPLOYOPTIONS_NETWORKSENTRY
_DEPLOYOPTIONS.fields_by_name['labels'].message_type = _DEPLOYOPTIONS_LABELSENTRY
_DEPLOYOPTIONS.fields_by_name['nodelabels'].message_type = _DEPLOYOPTIONS_NODELABELSENTRY
_DEPLOYOPTIONS.fields_by_name['data'].message_type = _DEPLOYOPTIONS_DATAENTRY
_REPLACEOPTIONS_FILTERLABELSENTRY.containing_type = _REPLACEOPTIONS
_REPLACEOPTIONS_COPYENTRY.containing_type = _REPLACEOPTIONS
_REPLACEOPTIONS.fields_by_name['deployOpt'].message_type = _DEPLOYOPTIONS
_REPLACEOPTIONS.fields_by_name['filter_labels'].message_type = _REPLACEOPTIONS_FILTERLABELSENTRY
_REPLACEOPTIONS.fields_by_name['copy'].message_type = _REPLACEOPTIONS_COPYENTRY
_COPYOPTIONS_TARGETSENTRY.fields_by_name['value'].message_type = _COPYPATHS
_COPYOPTIONS_TARGETSENTRY.containing_type = _COPYOPTIONS
_COPYOPTIONS.fields_by_name['targets'].message_type = _COPYOPTIONS_TARGETSENTRY
_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
_REPLACECONTAINERMESSAGE.fields_by_name['create'].message_type = _CREATECONTAINERMESSAGE
_REPLACECONTAINERMESSAGE.fields_by_name['remove'].message_type = _REMOVECONTAINERMESSAGE
_RUNANDWAITOPTIONS.fields_by_name['DeployOptions'].message_type = _DEPLOYOPTIONS
DESCRIPTOR.message_types_by_name['Empty'] = _EMPTY
DESCRIPTOR.message_types_by_name['ListContainersOptions'] = _LISTCONTAINERSOPTIONS
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['PodResource'] = _PODRESOURCE
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['LogOptions'] = _LOGOPTIONS
DESCRIPTOR.message_types_by_name['EntrypointOptions'] = _ENTRYPOINTOPTIONS
DESCRIPTOR.message_types_by_name['DeployOptions'] = _DEPLOYOPTIONS
DESCRIPTOR.message_types_by_name['ReplaceOptions'] = _REPLACEOPTIONS
DESCRIPTOR.message_types_by_name['CacheImageOptions'] = _CACHEIMAGEOPTIONS
DESCRIPTOR.message_types_by_name['RemoveImageOptions'] = _REMOVEIMAGEOPTIONS
DESCRIPTOR.message_types_by_name['CopyPaths'] = _COPYPATHS
DESCRIPTOR.message_types_by_name['CopyOptions'] = _COPYOPTIONS
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['ReplaceContainerMessage'] = _REPLACECONTAINERMESSAGE
DESCRIPTOR.message_types_by_name['RunAndWaitMessage'] = _RUNANDWAITMESSAGE
DESCRIPTOR.message_types_by_name['CacheImageMessage'] = _CACHEIMAGEMESSAGE
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['CopyMessage'] = _COPYMESSAGE
DESCRIPTOR.message_types_by_name['RunAndWaitOptions'] = _RUNANDWAITOPTIONS
DESCRIPTOR.message_types_by_name['ControlContainerOptions'] = _CONTROLCONTAINEROPTIONS
DESCRIPTOR.message_types_by_name['ControlContainerMessage'] = _CONTROLCONTAINERMESSAGE
_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)
ListContainersOptions = _reflection.GeneratedProtocolMessageType('ListContainersOptions', (_message.Message,), dict(
LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict(
DESCRIPTOR = _LISTCONTAINERSOPTIONS_LABELSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ListContainersOptions.LabelsEntry)
))
,
DESCRIPTOR = _LISTCONTAINERSOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ListContainersOptions)
))
_sym_db.RegisterMessage(ListContainersOptions)
_sym_db.RegisterMessage(ListContainersOptions.LabelsEntry)
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)
PodResource = _reflection.GeneratedProtocolMessageType('PodResource', (_message.Message,), dict(
CpuEntry = _reflection.GeneratedProtocolMessageType('CpuEntry', (_message.Message,), dict(
DESCRIPTOR = _PODRESOURCE_CPUENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.PodResource.CpuEntry)
))
,
MemoryEntry = _reflection.GeneratedProtocolMessageType('MemoryEntry', (_message.Message,), dict(
DESCRIPTOR = _PODRESOURCE_MEMORYENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.PodResource.MemoryEntry)
))
,
DiffEntry = _reflection.GeneratedProtocolMessageType('DiffEntry', (_message.Message,), dict(
DESCRIPTOR = _PODRESOURCE_DIFFENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.PodResource.DiffEntry)
))
,
DetailEntry = _reflection.GeneratedProtocolMessageType('DetailEntry', (_message.Message,), dict(
DESCRIPTOR = _PODRESOURCE_DETAILENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.PodResource.DetailEntry)
))
,
DESCRIPTOR = _PODRESOURCE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.PodResource)
))
_sym_db.RegisterMessage(PodResource)
_sym_db.RegisterMessage(PodResource.CpuEntry)
_sym_db.RegisterMessage(PodResource.MemoryEntry)
_sym_db.RegisterMessage(PodResource.DiffEntry)
_sym_db.RegisterMessage(PodResource.DetailEntry)
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)
))
,
InitCpuEntry = _reflection.GeneratedProtocolMessageType('InitCpuEntry', (_message.Message,), dict(
DESCRIPTOR = _NODE_INITCPUENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Node.InitCpuEntry)
))
,
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)
_sym_db.RegisterMessage(Node.InitCpuEntry)
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(
CpuEntry = _reflection.GeneratedProtocolMessageType('CpuEntry', (_message.Message,), dict(
DESCRIPTOR = _CONTAINER_CPUENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Container.CpuEntry)
))
,
LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict(
DESCRIPTOR = _CONTAINER_LABELSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Container.LabelsEntry)
))
,
PublishEntry = _reflection.GeneratedProtocolMessageType('PublishEntry', (_message.Message,), dict(
DESCRIPTOR = _CONTAINER_PUBLISHENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Container.PublishEntry)
))
,
DESCRIPTOR = _CONTAINER,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.Container)
))
_sym_db.RegisterMessage(Container)
_sym_db.RegisterMessage(Container.CpuEntry)
_sym_db.RegisterMessage(Container.LabelsEntry)
_sym_db.RegisterMessage(Container.PublishEntry)
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)
LogOptions = _reflection.GeneratedProtocolMessageType('LogOptions', (_message.Message,), dict(
ConfigEntry = _reflection.GeneratedProtocolMessageType('ConfigEntry', (_message.Message,), dict(
DESCRIPTOR = _LOGOPTIONS_CONFIGENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.LogOptions.ConfigEntry)
))
,
DESCRIPTOR = _LOGOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.LogOptions)
))
_sym_db.RegisterMessage(LogOptions)
_sym_db.RegisterMessage(LogOptions.ConfigEntry)
EntrypointOptions = _reflection.GeneratedProtocolMessageType('EntrypointOptions', (_message.Message,), dict(
SysctlsEntry = _reflection.GeneratedProtocolMessageType('SysctlsEntry', (_message.Message,), dict(
DESCRIPTOR = _ENTRYPOINTOPTIONS_SYSCTLSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.EntrypointOptions.SysctlsEntry)
))
,
DESCRIPTOR = _ENTRYPOINTOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.EntrypointOptions)
))
_sym_db.RegisterMessage(EntrypointOptions)
_sym_db.RegisterMessage(EntrypointOptions.SysctlsEntry)
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)
))
,
LabelsEntry = _reflection.GeneratedProtocolMessageType('LabelsEntry', (_message.Message,), dict(
DESCRIPTOR = _DEPLOYOPTIONS_LABELSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.DeployOptions.LabelsEntry)
))
,
NodelabelsEntry = _reflection.GeneratedProtocolMessageType('NodelabelsEntry', (_message.Message,), dict(
DESCRIPTOR = _DEPLOYOPTIONS_NODELABELSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.DeployOptions.NodelabelsEntry)
))
,
DataEntry = _reflection.GeneratedProtocolMessageType('DataEntry', (_message.Message,), dict(
DESCRIPTOR = _DEPLOYOPTIONS_DATAENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.DeployOptions.DataEntry)
))
,
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.LabelsEntry)
_sym_db.RegisterMessage(DeployOptions.NodelabelsEntry)
_sym_db.RegisterMessage(DeployOptions.DataEntry)
ReplaceOptions = _reflection.GeneratedProtocolMessageType('ReplaceOptions', (_message.Message,), dict(
FilterLabelsEntry = _reflection.GeneratedProtocolMessageType('FilterLabelsEntry', (_message.Message,), dict(
DESCRIPTOR = _REPLACEOPTIONS_FILTERLABELSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ReplaceOptions.FilterLabelsEntry)
))
,
CopyEntry = _reflection.GeneratedProtocolMessageType('CopyEntry', (_message.Message,), dict(
DESCRIPTOR = _REPLACEOPTIONS_COPYENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ReplaceOptions.CopyEntry)
))
,
DESCRIPTOR = _REPLACEOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ReplaceOptions)
))
_sym_db.RegisterMessage(ReplaceOptions)
_sym_db.RegisterMessage(ReplaceOptions.FilterLabelsEntry)
_sym_db.RegisterMessage(ReplaceOptions.CopyEntry)
CacheImageOptions = _reflection.GeneratedProtocolMessageType('CacheImageOptions', (_message.Message,), dict(
DESCRIPTOR = _CACHEIMAGEOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.CacheImageOptions)
))
_sym_db.RegisterMessage(CacheImageOptions)
RemoveImageOptions = _reflection.GeneratedProtocolMessageType('RemoveImageOptions', (_message.Message,), dict(
DESCRIPTOR = _REMOVEIMAGEOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.RemoveImageOptions)
))
_sym_db.RegisterMessage(RemoveImageOptions)
CopyPaths = _reflection.GeneratedProtocolMessageType('CopyPaths', (_message.Message,), dict(
DESCRIPTOR = _COPYPATHS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.CopyPaths)
))
_sym_db.RegisterMessage(CopyPaths)
CopyOptions = _reflection.GeneratedProtocolMessageType('CopyOptions', (_message.Message,), dict(
TargetsEntry = _reflection.GeneratedProtocolMessageType('TargetsEntry', (_message.Message,), dict(
DESCRIPTOR = _COPYOPTIONS_TARGETSENTRY,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.CopyOptions.TargetsEntry)
))
,
DESCRIPTOR = _COPYOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.CopyOptions)
))
_sym_db.RegisterMessage(CopyOptions)
_sym_db.RegisterMessage(CopyOptions.TargetsEntry)
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)
ReplaceContainerMessage = _reflection.GeneratedProtocolMessageType('ReplaceContainerMessage', (_message.Message,), dict(
DESCRIPTOR = _REPLACECONTAINERMESSAGE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ReplaceContainerMessage)
))
_sym_db.RegisterMessage(ReplaceContainerMessage)
RunAndWaitMessage = _reflection.GeneratedProtocolMessageType('RunAndWaitMessage', (_message.Message,), dict(
DESCRIPTOR = _RUNANDWAITMESSAGE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.RunAndWaitMessage)
))
_sym_db.RegisterMessage(RunAndWaitMessage)
CacheImageMessage = _reflection.GeneratedProtocolMessageType('CacheImageMessage', (_message.Message,), dict(
DESCRIPTOR = _CACHEIMAGEMESSAGE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.CacheImageMessage)
))
_sym_db.RegisterMessage(CacheImageMessage)
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)
CopyMessage = _reflection.GeneratedProtocolMessageType('CopyMessage', (_message.Message,), dict(
DESCRIPTOR = _COPYMESSAGE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.CopyMessage)
))
_sym_db.RegisterMessage(CopyMessage)
RunAndWaitOptions = _reflection.GeneratedProtocolMessageType('RunAndWaitOptions', (_message.Message,), dict(
DESCRIPTOR = _RUNANDWAITOPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.RunAndWaitOptions)
))
_sym_db.RegisterMessage(RunAndWaitOptions)
ControlContainerOptions = _reflection.GeneratedProtocolMessageType('ControlContainerOptions', (_message.Message,), dict(
DESCRIPTOR = _CONTROLCONTAINEROPTIONS,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ControlContainerOptions)
))
_sym_db.RegisterMessage(ControlContainerOptions)
ControlContainerMessage = _reflection.GeneratedProtocolMessageType('ControlContainerMessage', (_message.Message,), dict(
DESCRIPTOR = _CONTROLCONTAINERMESSAGE,
__module__ = 'core_pb2'
# @@protoc_insertion_point(class_scope:pb.ControlContainerMessage)
))
_sym_db.RegisterMessage(ControlContainerMessage)
_LISTCONTAINERSOPTIONS_LABELSENTRY.has_options = True
_LISTCONTAINERSOPTIONS_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_PODRESOURCE_CPUENTRY.has_options = True
_PODRESOURCE_CPUENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_PODRESOURCE_MEMORYENTRY.has_options = True
_PODRESOURCE_MEMORYENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_PODRESOURCE_DIFFENTRY.has_options = True
_PODRESOURCE_DIFFENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_PODRESOURCE_DETAILENTRY.has_options = True
_PODRESOURCE_DETAILENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_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'))
_NODE_INITCPUENTRY.has_options = True
_NODE_INITCPUENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_CONTAINER_CPUENTRY.has_options = True
_CONTAINER_CPUENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_CONTAINER_LABELSENTRY.has_options = True
_CONTAINER_LABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_CONTAINER_PUBLISHENTRY.has_options = True
_CONTAINER_PUBLISHENTRY._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'))
_LOGOPTIONS_CONFIGENTRY.has_options = True
_LOGOPTIONS_CONFIGENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_ENTRYPOINTOPTIONS_SYSCTLSENTRY.has_options = True
_ENTRYPOINTOPTIONS_SYSCTLSENTRY._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_LABELSENTRY.has_options = True
_DEPLOYOPTIONS_LABELSENTRY._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'))
_DEPLOYOPTIONS_DATAENTRY.has_options = True
_DEPLOYOPTIONS_DATAENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_REPLACEOPTIONS_FILTERLABELSENTRY.has_options = True
_REPLACEOPTIONS_FILTERLABELSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_REPLACEOPTIONS_COPYENTRY.has_options = True
_REPLACEOPTIONS_COPYENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
_COPYOPTIONS_TARGETSENTRY.has_options = True
_COPYOPTIONS_TARGETSENTRY._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=6969,
serialized_end=8580,
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='GetPodResource',
full_name='pb.CoreRPC.GetPodResource',
index=4,
containing_service=None,
input_type=_GETPODOPTIONS,
output_type=_PODRESOURCE,
options=None,
),
_descriptor.MethodDescriptor(
name='AddNode',
full_name='pb.CoreRPC.AddNode',
index=5,
containing_service=None,
input_type=_ADDNODEOPTIONS,
output_type=_NODE,
options=None,
),
_descriptor.MethodDescriptor(
name='RemoveNode',
full_name='pb.CoreRPC.RemoveNode',
index=6,
containing_service=None,
input_type=_REMOVENODEOPTIONS,
output_type=_POD,
options=None,
),
_descriptor.MethodDescriptor(
name='SetNodeAvailable',
full_name='pb.CoreRPC.SetNodeAvailable',
index=7,
containing_service=None,
input_type=_NODEAVAILABLE,
output_type=_NODE,
options=None,
),
_descriptor.MethodDescriptor(
name='GetNode',
full_name='pb.CoreRPC.GetNode',
index=8,
containing_service=None,
input_type=_GETNODEOPTIONS,
output_type=_NODE,
options=None,
),
_descriptor.MethodDescriptor(
name='GetContainer',
full_name='pb.CoreRPC.GetContainer',
index=9,
containing_service=None,
input_type=_CONTAINERID,
output_type=_CONTAINER,
options=None,
),
_descriptor.MethodDescriptor(
name='GetContainers',
full_name='pb.CoreRPC.GetContainers',
index=10,
containing_service=None,
input_type=_CONTAINERIDS,
output_type=_CONTAINERS,
options=None,
),
_descriptor.MethodDescriptor(
name='GetNodeByName',
full_name='pb.CoreRPC.GetNodeByName',
index=11,
containing_service=None,
input_type=_GETNODEOPTIONS,
output_type=_NODE,
options=None,
),
_descriptor.MethodDescriptor(
name='ListPodNodes',
full_name='pb.CoreRPC.ListPodNodes',
index=12,
containing_service=None,
input_type=_LISTNODESOPTIONS,
output_type=_NODES,
options=None,
),
_descriptor.MethodDescriptor(
name='ListNetworks',
full_name='pb.CoreRPC.ListNetworks',
index=13,
containing_service=None,
input_type=_LISTNETWORKOPTIONS,
output_type=_NETWORKS,
options=None,
),
_descriptor.MethodDescriptor(
name='ListContainers',
full_name='pb.CoreRPC.ListContainers',
index=14,
containing_service=None,
input_type=_LISTCONTAINERSOPTIONS,
output_type=_CONTAINERS,
options=None,
),
_descriptor.MethodDescriptor(
name='ListNodeContainers',
full_name='pb.CoreRPC.ListNodeContainers',
index=15,
containing_service=None,
input_type=_GETNODEOPTIONS,
output_type=_CONTAINERS,
options=None,
),
_descriptor.MethodDescriptor(
name='ContainerDeployed',
full_name='pb.CoreRPC.ContainerDeployed',
index=16,
containing_service=None,
input_type=_CONTAINERDEPLOYEDOPTIONS,
output_type=_EMPTY,
options=None,
),
_descriptor.MethodDescriptor(
name='Copy',
full_name='pb.CoreRPC.Copy',
index=17,
containing_service=None,
input_type=_COPYOPTIONS,
output_type=_COPYMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='BuildImage',
full_name='pb.CoreRPC.BuildImage',
index=18,
containing_service=None,
input_type=_BUILDIMAGEOPTIONS,
output_type=_BUILDIMAGEMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='CacheImage',
full_name='pb.CoreRPC.CacheImage',
index=19,
containing_service=None,
input_type=_CACHEIMAGEOPTIONS,
output_type=_CACHEIMAGEMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='RemoveImage',
full_name='pb.CoreRPC.RemoveImage',
index=20,
containing_service=None,
input_type=_REMOVEIMAGEOPTIONS,
output_type=_REMOVEIMAGEMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='DeployStatus',
full_name='pb.CoreRPC.DeployStatus',
index=21,
containing_service=None,
input_type=_DEPLOYSTATUSOPTIONS,
output_type=_DEPLOYSTATUSMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='RunAndWait',
full_name='pb.CoreRPC.RunAndWait',
index=22,
containing_service=None,
input_type=_RUNANDWAITOPTIONS,
output_type=_RUNANDWAITMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='CreateContainer',
full_name='pb.CoreRPC.CreateContainer',
index=23,
containing_service=None,
input_type=_DEPLOYOPTIONS,
output_type=_CREATECONTAINERMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='ReplaceContainer',
full_name='pb.CoreRPC.ReplaceContainer',
index=24,
containing_service=None,
input_type=_REPLACEOPTIONS,
output_type=_REPLACECONTAINERMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='RemoveContainer',
full_name='pb.CoreRPC.RemoveContainer',
index=25,
containing_service=None,
input_type=_REMOVECONTAINEROPTIONS,
output_type=_REMOVECONTAINERMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='ControlContainer',
full_name='pb.CoreRPC.ControlContainer',
index=26,
containing_service=None,
input_type=_CONTROLCONTAINEROPTIONS,
output_type=_CONTROLCONTAINERMESSAGE,
options=None,
),
_descriptor.MethodDescriptor(
name='ReallocResource',
full_name='pb.CoreRPC.ReallocResource',
index=27,
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.875126
| 16,249
| 0.731339
| 23,978
| 192,704
| 5.607432
| 0.030945
| 0.054145
| 0.028783
| 0.041055
| 0.727664
| 0.674858
| 0.665732
| 0.659648
| 0.644736
| 0.623495
| 0
| 0.042309
| 0.133101
| 192,704
| 4,956
| 16,250
| 38.88297
| 0.762545
| 0.025941
| 0
| 0.706402
| 1
| 0.004958
| 0.158013
| 0.110848
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.001293
| 0
| 0.001293
| 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
|
b9ae95988166d56c353c46926e3d21a79d84f88c
| 769
|
py
|
Python
|
layers/layer1_python3/0300_acquisition/acquisition/__init__.py
|
moas/mfdata
|
ca9460c3783ddfd6ad022c96a0a8bf0e65fa36b2
|
[
"BSD-3-Clause"
] | null | null | null |
layers/layer1_python3/0300_acquisition/acquisition/__init__.py
|
moas/mfdata
|
ca9460c3783ddfd6ad022c96a0a8bf0e65fa36b2
|
[
"BSD-3-Clause"
] | null | null | null |
layers/layer1_python3/0300_acquisition/acquisition/__init__.py
|
moas/mfdata
|
ca9460c3783ddfd6ad022c96a0a8bf0e65fa36b2
|
[
"BSD-3-Clause"
] | null | null | null |
from acquisition.step import AcquisitionStep
from acquisition.stats import AcquisitionStatsDClient
from acquisition.move_step import AcquisitionMoveStep
from acquisition.delete_step import AcquisitionDeleteStep
from acquisition.batch_step import AcquisitionBatchStep
from acquisition.reinject_step import AcquisitionReinjectStep
from acquisition.fork_step import AcquisitionForkStep
from acquisition.archive_step import AcquisitionArchiveStep
from acquisition.listener import AcquisitionListener
__all__ = ['AcquisitionStep', 'AcquisitionBatchStep',
'AcquisitionMoveStep', 'AcquisitionDeleteStep',
'AcquisitionReinjectStep', 'AcquisitionForkStep',
'AcquisitionArchiveStep', 'AcquisitionStatsDClient',
'AcquisitionListener']
| 48.0625
| 63
| 0.830949
| 61
| 769
| 10.311475
| 0.360656
| 0.214626
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119636
| 769
| 15
| 64
| 51.266667
| 0.929099
| 0
| 0
| 0
| 0
| 0
| 0.235371
| 0.115735
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.642857
| 0
| 0.642857
| 0
| 0
| 0
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
b9d60ecc3068b2d42bc6110555d94274b9cac29c
| 930
|
py
|
Python
|
tools/py/heatmap.py
|
sriramreddyM/pLitter
|
e506777af0b8bbae411b474f5eacee91e8efea59
|
[
"MIT"
] | 5
|
2021-11-09T10:25:35.000Z
|
2022-03-30T03:57:46.000Z
|
tools/py/heatmap.py
|
sriramreddyM/pLitter
|
e506777af0b8bbae411b474f5eacee91e8efea59
|
[
"MIT"
] | null | null | null |
tools/py/heatmap.py
|
sriramreddyM/pLitter
|
e506777af0b8bbae411b474f5eacee91e8efea59
|
[
"MIT"
] | 1
|
2021-09-09T08:04:46.000Z
|
2021-09-09T08:04:46.000Z
|
'''
converts video to frames and saves images by different interval, or overlap, etc
'''
import folium
from folium import plugins
from folium.plugins import HeatMap
import csv
# class plitterMap():
# def __int__(self, file_path):
# self.data = file_path
# df = []
# with open(self.data) as f:
# reader = csv.reader(f)
# for row in reader:
# df_row = []
# df_row.append(row[0])
# df_row.append(row[0])
# df_row.append(row[0])
# df.append(row)
# self.tooltip = df[0][0]
# def loadMap():
# self.map = folium.Map(location=[float(row[1]), float(row[2])], zoom_start = 18)
# def loadGpsLoc():
# folium.Marker([float(row[1]), float(row[2])], popup="<i>"+row[0]+"</i>", tooltip=tooltip, icon=icon_circle).add_to(rangsit_map)
# rangsit_map
| 30
| 133
| 0.53871
| 119
| 930
| 4.084034
| 0.470588
| 0.041152
| 0.067901
| 0.08642
| 0.170782
| 0.170782
| 0.096708
| 0.096708
| 0.096708
| 0.096708
| 0
| 0.018838
| 0.315054
| 930
| 31
| 134
| 30
| 0.744113
| 0.84086
| 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
|
6a00f01d33da6c470fd1f865044516a818d9c018
| 88
|
py
|
Python
|
smmips/__init__.py
|
oicr-gsi/pysmmips
|
ccf209b13862a5533a11fbe02e80d3265ccef313
|
[
"MIT"
] | null | null | null |
smmips/__init__.py
|
oicr-gsi/pysmmips
|
ccf209b13862a5533a11fbe02e80d3265ccef313
|
[
"MIT"
] | null | null | null |
smmips/__init__.py
|
oicr-gsi/pysmmips
|
ccf209b13862a5533a11fbe02e80d3265ccef313
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 20 16:04:52 2020
@author: rjovelin
"""
| 11
| 35
| 0.579545
| 14
| 88
| 3.642857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.185714
| 0.204545
| 88
| 7
| 36
| 12.571429
| 0.542857
| 0.875
| 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
|
6a046c97530ca1a780b9dd23d59ddcc8df166fa3
| 263
|
py
|
Python
|
red_dwarf/entrypoints/project_management.py
|
JesseMaitland/red-dwarf
|
f606ada43f4be72c5cab61049182b58c0c348602
|
[
"MIT"
] | null | null | null |
red_dwarf/entrypoints/project_management.py
|
JesseMaitland/red-dwarf
|
f606ada43f4be72c5cab61049182b58c0c348602
|
[
"MIT"
] | null | null | null |
red_dwarf/entrypoints/project_management.py
|
JesseMaitland/red-dwarf
|
f606ada43f4be72c5cab61049182b58c0c348602
|
[
"MIT"
] | null | null | null |
from rsterm import EntryPoint
from red_dwarf.project import provide_project_context, ProjectContext
class InitProject(EntryPoint):
@provide_project_context
def run(self, project_context: ProjectContext) -> None:
project_context.init_project()
| 23.909091
| 69
| 0.790875
| 30
| 263
| 6.666667
| 0.566667
| 0.28
| 0.21
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148289
| 263
| 10
| 70
| 26.3
| 0.892857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
6a0fb21e21040834df2f296f7650980a669e7a30
| 374
|
py
|
Python
|
apps/gamedoc/models.py
|
mehrbodjavadi79/AIC21-Backend
|
9f4342781f0722804a2eb704b43b52984c81b40a
|
[
"MIT"
] | 3
|
2021-03-12T18:32:39.000Z
|
2021-11-08T10:21:04.000Z
|
apps/gamedoc/models.py
|
mehrbodjavadi79/AIC21-Backend
|
9f4342781f0722804a2eb704b43b52984c81b40a
|
[
"MIT"
] | null | null | null |
apps/gamedoc/models.py
|
mehrbodjavadi79/AIC21-Backend
|
9f4342781f0722804a2eb704b43b52984c81b40a
|
[
"MIT"
] | 2
|
2021-01-29T14:52:53.000Z
|
2022-03-05T10:24:24.000Z
|
from django.db import models
# Create your models here.
class Gamedoc(models.Model):
link = models.URLField(max_length=500)
title = models.CharField(max_length=500)
repo_name = models.CharField(max_length=512, blank=True, null=True)
user_name = models.CharField(max_length=512, blank=True, null=True)
def __str__(self):
return f'{self.title}'
| 28.769231
| 71
| 0.719251
| 54
| 374
| 4.796296
| 0.555556
| 0.138996
| 0.208494
| 0.277992
| 0.370656
| 0.370656
| 0.370656
| 0.370656
| 0.370656
| 0.370656
| 0
| 0.038462
| 0.165775
| 374
| 12
| 72
| 31.166667
| 0.791667
| 0.064171
| 0
| 0
| 0
| 0
| 0.034483
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0.125
| 0.125
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
6a10bfc3e38883e78cd876111e7b6300fd43d471
| 529
|
py
|
Python
|
python/Word/demo_doc.py
|
davidgjy/arch-lib
|
b4402b96d2540995a848e6c5f600b2d99847ded6
|
[
"Apache-2.0"
] | null | null | null |
python/Word/demo_doc.py
|
davidgjy/arch-lib
|
b4402b96d2540995a848e6c5f600b2d99847ded6
|
[
"Apache-2.0"
] | null | null | null |
python/Word/demo_doc.py
|
davidgjy/arch-lib
|
b4402b96d2540995a848e6c5f600b2d99847ded6
|
[
"Apache-2.0"
] | null | null | null |
import docx
doc = docx.Document('demo.docx')
print('paragraphs number: %s' % len(doc.paragraphs))
print('1st paragraph: %s' % doc.paragraphs[0].text)
print('2nd paragraph: %s' % doc.paragraphs[1].text)
print('paragraphs runs: %s' % len(doc.paragraphs[1].runs))
print('1st paragraph run: %s' % doc.paragraphs[1].runs[0].text)
print('2nd paragraph run: %s' % doc.paragraphs[1].runs[1].text)
print('3rd paragraph run: %s' % doc.paragraphs[1].runs[2].text)
print('4th paragraph run: %s' % doc.paragraphs[1].runs[3].text)
| 44.083333
| 64
| 0.680529
| 83
| 529
| 4.337349
| 0.26506
| 0.288889
| 0.233333
| 0.208333
| 0.441667
| 0.344444
| 0.344444
| 0
| 0
| 0
| 0
| 0.036325
| 0.115312
| 529
| 11
| 65
| 48.090909
| 0.732906
| 0
| 0
| 0
| 0
| 0
| 0.322394
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.1
| 0
| 0.1
| 0.8
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
6a27987a8cba79e77e7ec06fe0349b417f6ae225
| 44
|
py
|
Python
|
exposing/_version.py
|
w4k2/exposing
|
6abbced18aa567ed45426ba915f3b56e7aeca028
|
[
"BSD-3-Clause"
] | null | null | null |
exposing/_version.py
|
w4k2/exposing
|
6abbced18aa567ed45426ba915f3b56e7aeca028
|
[
"BSD-3-Clause"
] | 1
|
2018-05-28T10:35:02.000Z
|
2018-05-28T10:35:02.000Z
|
exposing/_version.py
|
w4k2/exposing
|
6abbced18aa567ed45426ba915f3b56e7aeca028
|
[
"BSD-3-Clause"
] | null | null | null |
"""
``exposing``
"""
__version__ = '0.2.2'
| 7.333333
| 21
| 0.5
| 5
| 44
| 3.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081081
| 0.159091
| 44
| 5
| 22
| 8.8
| 0.405405
| 0.272727
| 0
| 0
| 0
| 0
| 0.208333
| 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
|
6a296c2965af2f5264f62e16fe377851c022b76e
| 44
|
py
|
Python
|
scpp_base/scpp_base/src/db/__init__.py
|
scorelab/social-currency
|
f539893104bdfe098cfa58c8d9fabcbb00874c52
|
[
"Apache-2.0"
] | 4
|
2018-10-02T06:31:18.000Z
|
2019-11-16T15:21:34.000Z
|
scpp_base/scpp_base/src/db/__init__.py
|
horizon00/social-currency
|
f539893104bdfe098cfa58c8d9fabcbb00874c52
|
[
"Apache-2.0"
] | 2
|
2017-12-06T11:54:14.000Z
|
2019-11-11T11:34:06.000Z
|
scpp_base/scpp_base/src/db/__init__.py
|
horizon00/social-currency
|
f539893104bdfe098cfa58c8d9fabcbb00874c52
|
[
"Apache-2.0"
] | 5
|
2017-02-27T10:10:41.000Z
|
2019-11-11T11:45:37.000Z
|
_all__ = ["db_handler","coin_value_handler"]
| 44
| 44
| 0.772727
| 6
| 44
| 4.666667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.045455
| 44
| 1
| 44
| 44
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0.622222
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
dbde179232e6a3f834cec05a67d959715c486849
| 715
|
py
|
Python
|
neural-networks.py
|
PacktPublishing/Python-Deep-Learning-for-Beginners-
|
90f110158cbf0ce02fd4d5d09e3b2034428d9992
|
[
"MIT"
] | 7
|
2019-02-16T02:52:12.000Z
|
2021-11-08T13:10:46.000Z
|
neural-networks.py
|
PacktPublishing/Python-Deep-Learning-for-Beginners-
|
90f110158cbf0ce02fd4d5d09e3b2034428d9992
|
[
"MIT"
] | null | null | null |
neural-networks.py
|
PacktPublishing/Python-Deep-Learning-for-Beginners-
|
90f110158cbf0ce02fd4d5d09e3b2034428d9992
|
[
"MIT"
] | 14
|
2018-11-18T04:33:38.000Z
|
2021-08-14T03:29:18.000Z
|
import numpy as np
# Perceptron
def predict_perceptron(inputs, weights):
if np.dot(inputs, weights) > 0:
return 1
else:
return 0
def predict_perceptron_proper(inputs, weights):
def step_function(input):
return 1 if input > 0 else 0
def linear_model(inputs, weights):
return np.dot(inputs, weights)
return step_function(linear_model(inputs, weights))
def neuron(inputs, weights):
def sigmoid_function(input):
return 1 / (1 + np.exp(-1 * input))
def linear_model(inputs, weights):
return np.dot(inputs, weights)
return sigmoid_function(linear_model(inputs, weights))
neural_network = neuron(neuron(inputs, weights1), weights2)
| 23.064516
| 59
| 0.682517
| 94
| 715
| 5.06383
| 0.297872
| 0.273109
| 0.142857
| 0.201681
| 0.37395
| 0.239496
| 0.239496
| 0.239496
| 0.239496
| 0.239496
| 0
| 0.019749
| 0.220979
| 715
| 30
| 60
| 23.833333
| 0.834829
| 0.013986
| 0
| 0.210526
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.368421
| false
| 0
| 0.052632
| 0.210526
| 0.842105
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
e016b94fa3454d62f7b448ca14631899dd78dc4c
| 299
|
py
|
Python
|
gravur/common/amountinput.py
|
F483/gravur
|
575c268d9ac28aa0ba00f1e5109bd74c3b7b69a5
|
[
"MIT"
] | 3
|
2015-07-20T17:56:21.000Z
|
2017-10-22T05:52:13.000Z
|
gravur/common/amountinput.py
|
F483/gravur
|
575c268d9ac28aa0ba00f1e5109bd74c3b7b69a5
|
[
"MIT"
] | null | null | null |
gravur/common/amountinput.py
|
F483/gravur
|
575c268d9ac28aa0ba00f1e5109bd74c3b7b69a5
|
[
"MIT"
] | null | null | null |
# coding: utf-8
# Copyright (c) 2015 Fabian Barkhau <[email protected]>
# License: MIT (see LICENSE file)
from kivy.uix.boxlayout import BoxLayout
from gravur.common.labelbox import LabelBox # NOQA
from gravur.utils import load_widget
@load_widget
class AmountInput(BoxLayout):
pass
| 21.357143
| 62
| 0.772575
| 42
| 299
| 5.452381
| 0.690476
| 0.113537
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019531
| 0.143813
| 299
| 13
| 63
| 23
| 0.875
| 0.371237
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.166667
| 0.5
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
e04c1f351c8c0376a0ea90e165d6e346051fee43
| 7,612
|
py
|
Python
|
migrations/versions/2018_04_20_data_src_refactor.py
|
AlexKouzy/ethnicity-facts-and-figures-publisher
|
18ab2495a8633f585e18e607c7f75daa564a053d
|
[
"MIT"
] | null | null | null |
migrations/versions/2018_04_20_data_src_refactor.py
|
AlexKouzy/ethnicity-facts-and-figures-publisher
|
18ab2495a8633f585e18e607c7f75daa564a053d
|
[
"MIT"
] | null | null | null |
migrations/versions/2018_04_20_data_src_refactor.py
|
AlexKouzy/ethnicity-facts-and-figures-publisher
|
18ab2495a8633f585e18e607c7f75daa564a053d
|
[
"MIT"
] | null | null | null |
"""empty message
Revision ID: 2018_04_20_data_src_refactor
Revises: 2018_04_11_add_sandbox_topic
Create Date: 2018-04-20 13:03:32.478880
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
from sqlalchemy.dialects.postgresql import ARRAY
revision = '2018_04_20_data_src_refactor'
down_revision = '2018_04_11_add_sandbox_topic'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
type_of_data_types = sa.Enum('ADMINISTRATIVE', 'SURVEY', name='type_of_data_types')
op.add_column('page', sa.Column('secondary_source_1_type_of_data', ARRAY(type_of_data_types), nullable=True))
op.add_column('page', sa.Column('suppression_and_disclosure', sa.TEXT(), nullable=True))
op.add_column('page', sa.Column('note_on_corrections_or_updates', sa.TEXT(), nullable=True))
op.add_column('page', sa.Column('secondary_source_1_note_on_corrections_or_updates', sa.TEXT(), nullable=True))
op.add_column('page', sa.Column('secondary_source_1_data_source_purpose', sa.TEXT(), nullable=True))
op.get_bind()
op.execute('''
UPDATE page SET suppression_and_disclosure = suppression_rules
WHERE disclosure_control is null;
''')
op.execute('''
UPDATE page SET suppression_and_disclosure = disclosure_control
WHERE suppression_rules is null;
''')
op.execute('''
UPDATE page SET suppression_and_disclosure = trim(suppression_rules || ' ' || disclosure_control)
WHERE suppression_rules is not null
AND disclosure_control is not null;
''')
op.drop_constraint('organisation_secondary_source_2_fkey', 'page', type_='foreignkey')
op.drop_constraint('frequency_secondary_source_2_fkey', 'page', type_='foreignkey')
op.drop_constraint('secondary_source_2_type_of_statistic_fkey', 'page', type_='foreignkey')
op.drop_column('page', 'secondary_source_1_date_next_update')
op.drop_column('page', 'secondary_source_1_date_updated')
op.drop_column('page', 'secondary_source_1_suppression_rules')
op.drop_column('page', 'secondary_source_1_disclosure_control')
op.drop_column('page', 'secondary_source_2_frequency')
op.drop_column('page', 'secondary_source_2_contact_2_name')
op.drop_column('page', 'secondary_source_2_contact_2_phone')
op.drop_column('page', 'secondary_source_2_url')
op.drop_column('page', 'secondary_source_2_date_next_update')
op.drop_column('page', 'secondary_source_2_contact_1_name')
op.drop_column('page', 'last_update_date')
op.drop_column('page', 'secondary_source_2_contact_1_phone')
op.drop_column('page', 'secondary_source_2_publisher_text')
op.drop_column('page', 'secondary_source_2_disclosure_control')
op.drop_column('page', 'secondary_source_2_type_of_statistic_id')
op.drop_column('page', 'secondary_source_2_suppression_rules')
op.drop_column('page', 'secondary_source_2_frequency_other')
op.drop_column('page', 'secondary_source_2_publisher_id')
op.drop_column('page', 'secondary_source_2_title')
op.drop_column('page', 'secondary_source_2_date')
op.drop_column('page', 'next_update_date')
op.drop_column('page', 'secondary_source_2_date_updated')
op.drop_column('page', 'secondary_source_2_statistic_type')
op.drop_column('page', 'secondary_source_2_frequency_id')
op.drop_column('page', 'secondary_source_2_contact_2_email')
op.drop_column('page', 'secondary_source_2_contact_1_email')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('page', sa.Column('secondary_source_2_contact_1_email', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_contact_2_email', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_frequency_id', sa.INTEGER(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_statistic_type', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_date_updated', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_date', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_title', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_publisher_id', sa.VARCHAR(length=255), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_frequency_other', sa.VARCHAR(length=255), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_suppression_rules', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_type_of_statistic_id', sa.INTEGER(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_disclosure_control', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_publisher_text', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_contact_1_phone', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_contact_1_name', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_date_next_update', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_url', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_contact_2_phone', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_contact_2_name', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_2_frequency', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('last_update_date', sa.VARCHAR(length=255), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('next_update_date', sa.VARCHAR(length=255), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_1_date_next_update', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_1_date_updated', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_1_disclosure_control', sa.TEXT(), autoincrement=False, nullable=True))
op.add_column('page', sa.Column('secondary_source_1_suppression_rules', sa.TEXT(), autoincrement=False, nullable=True))
op.create_foreign_key('secondary_source_2_type_of_statistic_fkey', 'page', 'type_of_statistic', ['secondary_source_2_type_of_statistic_id'], ['id'])
op.create_foreign_key('frequency_secondary_source_2_fkey', 'page', 'frequency_of_release', ['secondary_source_2_frequency_id'], ['id'])
op.create_foreign_key('organisation_secondary_source_2_fkey', 'page', 'organisation', ['secondary_source_2_publisher_id'], ['id'])
op.drop_column('page', 'secondary_source_1_type_of_data')
op.drop_column('page', 'suppression_and_disclosure')
op.drop_column('page', 'note_on_corrections_or_updates')
op.drop_column('page', 'secondary_source_1_note_on_corrections_or_updates')
op.drop_column('page', 'secondary_source_1_data_source_purpose')
# ### end Alembic commands ###
| 62.909091
| 152
| 0.759721
| 1,072
| 7,612
| 4.998134
| 0.103545
| 0.176372
| 0.146323
| 0.086786
| 0.879433
| 0.851437
| 0.779769
| 0.739455
| 0.62486
| 0.504666
| 0
| 0.020339
| 0.102207
| 7,612
| 120
| 153
| 63.433333
| 0.763682
| 0.042958
| 0
| 0.065217
| 0
| 0
| 0.440121
| 0.328504
| 0
| 0
| 0
| 0
| 0
| 1
| 0.021739
| false
| 0
| 0.032609
| 0
| 0.054348
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0eb4945ca1e15b4e7d0b451aa87077b0cebf76c6
| 10,595
|
py
|
Python
|
src/hub/dataload/sources/drugcentral/drugcentral_upload.py
|
veleritas/mychem.info
|
bb22357d4cbbc3c4865da224bf998f2cbc59f8f2
|
[
"Apache-2.0"
] | 1
|
2021-05-09T04:51:28.000Z
|
2021-05-09T04:51:28.000Z
|
src/hub/dataload/sources/drugcentral/drugcentral_upload.py
|
veleritas/mychem.info
|
bb22357d4cbbc3c4865da224bf998f2cbc59f8f2
|
[
"Apache-2.0"
] | null | null | null |
src/hub/dataload/sources/drugcentral/drugcentral_upload.py
|
veleritas/mychem.info
|
bb22357d4cbbc3c4865da224bf998f2cbc59f8f2
|
[
"Apache-2.0"
] | null | null | null |
import biothings.hub.dataload.uploader as uploader
class DrugCentralUploader(uploader.DummySourceUploader):
name = "drugcentral"
__metadata__ = {
"src_meta" : {
"url" : "http://drugcentral.org/",
"license_url" : "http://drugcentral.org/privacy",
"license_url_short" : "https://goo.gl/QDNyNe",
"license" : "CC BY-SA 4.0",
}
}
@classmethod
def get_mapping(klass):
mapping = {
"drugcentral": {
"properties": {
"approval": {
"properties": {
"applicant": {
"type": "string"
},
"date": {
"analyzer": "string_lowercase",
"type": "string"
},
"type": {
"type": "string"
}
}
},
"bioactivity": {
"properties": {
"act_comment": {
"type": "string"
},
"act_source": {
"type": "string"
},
"act_type": {
"analyzer": "string_lowercase",
"type": "string"
},
"act_value": {
"analyzer": "string_lowercase",
"type": "string"
},
"action_type": {
"type": "string"
},
"gene_name": {
"type": "string"
},
"moa": {
"analyzer": "string_lowercase",
"type": "string"
},
"moa_source": {
"type": "string"
},
"swissprot": {
"analyzer": "string_lowercase",
"type": "string"
},
"target": {
"type": "string"
},
"target_class": {
"type": "string"
},
"uniprot_id": {
"analyzer": "string_lowercase",
"type": "string"
}
}
},
"drug_dosage": {
"properties": {
"atc_code": {
"analyzer": "string_lowercase",
"type": "string"
},
"dose": {
"analyzer": "string_lowercase",
"type": "string"
},
"route": {
"analyzer": "string_lowercase",
"type": "string"
},
"unit": {
"analyzer": "string_lowercase",
"type": "string"
}
}
},
"drug_use": {
"properties": {
"relation": {
"type": "string"
},
"snomed_id": {
"analyzer": "string_lowercase",
"type": "string"
},
"snomed_name": {
"type": "string"
}
}
},
"pharmacology_action": {
"properties": {
"class_code": {
"analyzer": "string_lowercase",
"type": "string"
},
"name": {
"type": "string"
},
"source": {
"analyzer": "string_lowercase",
"type": "string"
},
"type": {
"type": "string"
}
}
},
"struct_id": {
"analyzer": "string_lowercase",
"type": "string"
},
"structures": {
"properties": {
"cas_rn": {
"analyzer": "string_lowercase",
"type": "string"
},
"inchi": {
"analyzer": "string_lowercase",
"type": "string"
},
"inchikey": {
"analyzer": "string_lowercase",
"type": "string"
},
"inn": {
"analyzer": "string_lowercase",
"type": "string"
},
"smiles": {
"analyzer": "string_lowercase",
"type": "string"
}
}
},
"synonyms": {
"type": "string"
},
"xref": {
"properties": {
"chebi": {
"analyzer": "string_lowercase",
"type": "string"
},
"chembl_id": {
"analyzer": "string_lowercase",
"type": "string"
},
"drugbank_id": {
"analyzer": "string_lowercase",
"type": "string"
},
"inn_id": {
"analyzer": "string_lowercase",
"type": "string"
},
"iuphar_ligand_id": {
"analyzer": "string_lowercase",
"type": "string"
},
"kegg_drug": {
"analyzer": "string_lowercase",
"type": "string"
},
"mesh_descriptor_ui": {
"analyzer": "string_lowercase",
"type": "string"
},
"mesh_supplemental_record_ui": {
"analyzer": "string_lowercase",
"type": "string"
},
"mmsl": {
"analyzer": "string_lowercase",
"type": "string"
},
"nddf": {
"analyzer": "string_lowercase",
"type": "string"
},
"ndfrt": {
"analyzer": "string_lowercase",
"type": "string"
},
"nui": {
"analyzer": "string_lowercase",
"type": "string"
},
"pdb_chem_id": {
"analyzer": "string_lowercase",
"type": "string"
},
"pubchem_cid": {
"analyzer": "string_lowercase",
"type": "string"
},
"rxnorm": {
"analyzer": "string_lowercase",
"type": "string"
},
"secondary_cas_rn": {
"analyzer": "string_lowercase",
"type": "string"
},
"snomedct_us": {
"analyzer": "string_lowercase",
"type": "string"
},
"umlscui": {
"analyzer": "string_lowercase",
"type": "string"
},
"unii": {
"analyzer": "string_lowercase",
"type": "string"
},
"vandf": {
"analyzer": "string_lowercase",
"type": "string"
},
"vuid": {
"analyzer": "string_lowercase",
"type": "string"
}
}
}
}
}
}
return mapping
| 41.54902
| 65
| 0.224823
| 380
| 10,595
| 6.047368
| 0.271053
| 0.234987
| 0.400348
| 0.469974
| 0.612707
| 0.31114
| 0.073977
| 0.040905
| 0
| 0
| 0
| 0.000595
| 0.682775
| 10,595
| 254
| 66
| 41.712598
| 0.68313
| 0
| 0
| 0.416
| 0
| 0
| 0.21142
| 0.002548
| 0
| 0
| 0
| 0
| 0
| 1
| 0.004
| false
| 0
| 0.004
| 0
| 0.024
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0ed0e5f6ef98dbca0fc996f3f87ca29e7cb4b7a2
| 1,054
|
py
|
Python
|
tests/test_functions/test_trig.py
|
jackromo/mathLibPy
|
b80badd293b93da85aaf122c3d3da022f6dab361
|
[
"MIT"
] | 1
|
2020-06-09T05:43:33.000Z
|
2020-06-09T05:43:33.000Z
|
tests/test_functions/test_trig.py
|
jackromo/mathLibPy
|
b80badd293b93da85aaf122c3d3da022f6dab361
|
[
"MIT"
] | 15
|
2016-03-06T17:10:40.000Z
|
2016-05-28T14:06:16.000Z
|
tests/test_functions/test_trig.py
|
jackromo/mathLibPy
|
b80badd293b93da85aaf122c3d3da022f6dab361
|
[
"MIT"
] | null | null | null |
from mathlibpy.functions import *
import unittest
class SinTester(unittest.TestCase):
def setUp(self):
self.sin = Sin()
def test_call(self):
self.assertEqual(self.sin(0), 0)
def test_eq(self):
self.assertEqual(self.sin, Sin())
def test_get_derivative_call(self):
self.assertEqual(self.sin.get_derivative()(0), 1)
class CosTester(unittest.TestCase):
def setUp(self):
self.cos = Cos()
def test_call(self):
self.assertEqual(self.cos(0), 1)
def test_eq(self):
self.assertEqual(self.cos, Cos())
def test_get_derivative_call(self):
self.assertEqual(self.cos.get_derivative()(math.pi/2), -1)
class TanTester(unittest.TestCase):
def setUp(self):
self.tan = Tan()
def test_call(self):
self.assertEqual(self.tan(0), 0)
def test_eq(self):
self.assertEqual(self.tan, Tan())
def test_get_derivative(self):
self.assertEqual(self.tan.get_derivative()(0), 1)
if __name__ == "__main__":
unittest.main()
| 20.269231
| 66
| 0.63852
| 141
| 1,054
| 4.595745
| 0.212766
| 0.148148
| 0.263889
| 0.319444
| 0.734568
| 0.623457
| 0.45679
| 0.25
| 0.25
| 0
| 0
| 0.01467
| 0.223909
| 1,054
| 51
| 67
| 20.666667
| 0.777506
| 0
| 0
| 0.354839
| 0
| 0
| 0.00759
| 0
| 0
| 0
| 0
| 0
| 0.290323
| 1
| 0.387097
| false
| 0
| 0.064516
| 0
| 0.548387
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
0ee558decdd72d80756553cbdc2a73e521956143
| 134
|
py
|
Python
|
cio/plugins/txt.py
|
beshrkayali/content-io
|
ae44aa4c4eba2234f940ca9d7a4bb310e25075b3
|
[
"BSD-3-Clause"
] | 6
|
2015-02-12T20:23:42.000Z
|
2020-01-10T09:42:32.000Z
|
cio/plugins/txt.py
|
beshrkayali/content-io
|
ae44aa4c4eba2234f940ca9d7a4bb310e25075b3
|
[
"BSD-3-Clause"
] | 5
|
2015-09-08T08:54:39.000Z
|
2020-01-10T12:13:21.000Z
|
cio/plugins/txt.py
|
beshrkayali/content-io
|
ae44aa4c4eba2234f940ca9d7a4bb310e25075b3
|
[
"BSD-3-Clause"
] | 4
|
2015-06-29T15:21:41.000Z
|
2019-12-06T09:29:30.000Z
|
# coding=utf-8
from __future__ import unicode_literals
from .base import BasePlugin
class TextPlugin(BasePlugin):
ext = 'txt'
| 13.4
| 39
| 0.753731
| 17
| 134
| 5.647059
| 0.823529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009009
| 0.171642
| 134
| 9
| 40
| 14.888889
| 0.855856
| 0.089552
| 0
| 0
| 0
| 0
| 0.025
| 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
|
160d55ef119cabea32b158df2e672f5773e80b28
| 217
|
py
|
Python
|
backend/app/projectx/routing.py
|
emmawoollett/projectx
|
c061df01d581456884f46c2b8e3b478626501dec
|
[
"MIT"
] | null | null | null |
backend/app/projectx/routing.py
|
emmawoollett/projectx
|
c061df01d581456884f46c2b8e3b478626501dec
|
[
"MIT"
] | null | null | null |
backend/app/projectx/routing.py
|
emmawoollett/projectx
|
c061df01d581456884f46c2b8e3b478626501dec
|
[
"MIT"
] | null | null | null |
from django.urls import re_path
from projectx.consumers import UserWebSocketConsumer
from .consumers import UserWebSocketConsumer
websocket_urlpatterns = [
re_path(r"^ws/$", UserWebSocketConsumer.as_asgi()),
]
| 21.7
| 55
| 0.801843
| 24
| 217
| 7.083333
| 0.625
| 0.070588
| 0.423529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115207
| 217
| 9
| 56
| 24.111111
| 0.885417
| 0
| 0
| 0
| 0
| 0
| 0.023041
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
16329b70c55c3c7cf597931457db274fe5d63821
| 327
|
py
|
Python
|
pypad/active_skill/interfaces/orb_generator_asi.py
|
candyninja001/pypad
|
82bfc104c2524ca54cc415d37d2c21fec471838f
|
[
"MIT"
] | null | null | null |
pypad/active_skill/interfaces/orb_generator_asi.py
|
candyninja001/pypad
|
82bfc104c2524ca54cc415d37d2c21fec471838f
|
[
"MIT"
] | null | null | null |
pypad/active_skill/interfaces/orb_generator_asi.py
|
candyninja001/pypad
|
82bfc104c2524ca54cc415d37d2c21fec471838f
|
[
"MIT"
] | null | null | null |
import abc
from ...orb_attribute import OrbAttribute
# Interface for active skills that create specific orb types (whether board change, orb change, orb spawn, etc)
class OrbGeneratorASI(abc.ABC):
@abc.abstractmethod
def does_orb_generator_create_orb_attribute(self, orb_attribute: OrbAttribute) -> bool:
pass
| 36.333333
| 111
| 0.776758
| 43
| 327
| 5.744186
| 0.651163
| 0.145749
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155963
| 327
| 9
| 112
| 36.333333
| 0.894928
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0.166667
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
16666943ca1f78d9acd45c2909883bd0b65b734d
| 934
|
py
|
Python
|
src/lib/sd2/test_addresses.py
|
zachkont/sd2
|
92d8c55a8c7ac51c00ba514be01955aa7162e4ef
|
[
"Apache-2.0"
] | null | null | null |
src/lib/sd2/test_addresses.py
|
zachkont/sd2
|
92d8c55a8c7ac51c00ba514be01955aa7162e4ef
|
[
"Apache-2.0"
] | null | null | null |
src/lib/sd2/test_addresses.py
|
zachkont/sd2
|
92d8c55a8c7ac51c00ba514be01955aa7162e4ef
|
[
"Apache-2.0"
] | null | null | null |
#############################################################################
# Copyright (c) 2017 SiteWare Corp. All right reserved
#############################################################################
import logging
import pytest
from . import addresses
def test_pytest():
assert True
def test_object_exists():
assert addresses.cidr_db
def test_new_address():
address = addresses.cidr_db.get_address_for_host('test_test_foo')
assert address
assert address >= addresses.cidr_db.first_address()
assert address <= addresses.cidr_db.last_address()
addresses.cidr_db.reload()
assert addresses.cidr_db.get_address_for_host('test_test_foo') == address
assert addresses.cidr_db.has('test_test_foo')
addresses.cidr_db.forget('test_test_foo')
assert not addresses.cidr_db.has('test_test_foo')
addresses.cidr_db.reload()
assert not addresses.cidr_db.has('test_test_foo')
| 30.129032
| 77
| 0.626338
| 112
| 934
| 4.901786
| 0.294643
| 0.260474
| 0.300546
| 0.160291
| 0.590164
| 0.530055
| 0.40255
| 0.40255
| 0.40255
| 0.31694
| 0
| 0.00492
| 0.12955
| 934
| 30
| 78
| 31.133333
| 0.670357
| 0.055675
| 0
| 0.210526
| 0
| 0
| 0.107438
| 0
| 0
| 0
| 0
| 0
| 0.473684
| 1
| 0.157895
| false
| 0
| 0.157895
| 0
| 0.315789
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1696d983057a2d937827a5a96f9b5500cb3c490c
| 478
|
py
|
Python
|
scripts/matrix_operations.py
|
h3ct0r/gas_mapping_example
|
57bd8333b4832281fbb89019df440374e2b50b9b
|
[
"Unlicense"
] | 1
|
2022-02-28T21:55:23.000Z
|
2022-02-28T21:55:23.000Z
|
scripts/matrix_operations.py
|
ArghyaChatterjee/gas_mapping_kerneldm
|
57bd8333b4832281fbb89019df440374e2b50b9b
|
[
"Unlicense"
] | null | null | null |
scripts/matrix_operations.py
|
ArghyaChatterjee/gas_mapping_kerneldm
|
57bd8333b4832281fbb89019df440374e2b50b9b
|
[
"Unlicense"
] | 2
|
2021-12-14T05:15:18.000Z
|
2022-02-28T21:55:10.000Z
|
import numpy as np
def get_position_of_minimum(matrix):
return np.unravel_index(np.nanargmin(matrix), matrix.shape)
def get_position_of_maximum(matrix):
return np.unravel_index(np.nanargmax(matrix), matrix.shape)
def get_distance_matrix(cell_grid_x, cell_grid_y, x, y):
return np.sqrt((x - cell_grid_x) ** 2 + (y - cell_grid_y) ** 2)
def get_distance_matrix_squared(cell_grid_x, cell_grid_y, x, y):
return (x - cell_grid_x) ** 2 + (y - cell_grid_y) ** 2
| 26.555556
| 67
| 0.725941
| 83
| 478
| 3.831325
| 0.301205
| 0.201258
| 0.113208
| 0.100629
| 0.622642
| 0.477987
| 0.301887
| 0.301887
| 0.301887
| 0.138365
| 0
| 0.009852
| 0.150628
| 478
| 17
| 68
| 28.117647
| 0.773399
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.444444
| false
| 0
| 0.111111
| 0.444444
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
16988b5f9f77ebb40b1eb37bef67f48bd826786d
| 121
|
py
|
Python
|
ShanghaiPower/build_up.py
|
biljiang/pyprojects
|
10095c6b8f2f32831e8a36e122d1799f135dc5df
|
[
"MIT"
] | null | null | null |
ShanghaiPower/build_up.py
|
biljiang/pyprojects
|
10095c6b8f2f32831e8a36e122d1799f135dc5df
|
[
"MIT"
] | null | null | null |
ShanghaiPower/build_up.py
|
biljiang/pyprojects
|
10095c6b8f2f32831e8a36e122d1799f135dc5df
|
[
"MIT"
] | null | null | null |
from distutils.core import setup
from Cython.Build import cythonize
setup(ext_modules = cythonize(["license_chk.py"]))
| 20.166667
| 50
| 0.793388
| 17
| 121
| 5.529412
| 0.764706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107438
| 121
| 5
| 51
| 24.2
| 0.87037
| 0
| 0
| 0
| 0
| 0
| 0.116667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
169b6898f6bda824a9456c155bd29a6f84fdb9e8
| 251
|
py
|
Python
|
easyneuron/math/__init__.py
|
TrendingTechnology/easyneuron
|
b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a
|
[
"Apache-2.0"
] | 1
|
2021-12-14T19:21:44.000Z
|
2021-12-14T19:21:44.000Z
|
easyneuron/math/__init__.py
|
TrendingTechnology/easyneuron
|
b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a
|
[
"Apache-2.0"
] | null | null | null |
easyneuron/math/__init__.py
|
TrendingTechnology/easyneuron
|
b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a
|
[
"Apache-2.0"
] | null | null | null |
"""easyneuron.math contains all of the maths tools that you'd ever need for your AI projects, when used alongside Numpy.
To suggest more to be added, please add an issue on the GitHub repo.
"""
from easyneuron.math.distance import euclidean_distance
| 41.833333
| 120
| 0.788845
| 42
| 251
| 4.690476
| 0.880952
| 0.142132
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155378
| 251
| 6
| 121
| 41.833333
| 0.929245
| 0.74502
| 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
|
16a25b6b94677a9d90afcb9439df38171a1429af
| 25,083
|
py
|
Python
|
trove/tests/unittests/quota/test_quota.py
|
citrix-openstack-build/trove
|
52506396dd7bd095d1623d40cf2e67f2b478dc1d
|
[
"Apache-2.0"
] | null | null | null |
trove/tests/unittests/quota/test_quota.py
|
citrix-openstack-build/trove
|
52506396dd7bd095d1623d40cf2e67f2b478dc1d
|
[
"Apache-2.0"
] | null | null | null |
trove/tests/unittests/quota/test_quota.py
|
citrix-openstack-build/trove
|
52506396dd7bd095d1623d40cf2e67f2b478dc1d
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import testtools
from mockito import mock, when, unstub, any, verify, never, times
from mock import Mock
from trove.quota.quota import DbQuotaDriver
from trove.quota.models import Resource
from trove.quota.models import Quota
from trove.quota.models import QuotaUsage
from trove.quota.models import Reservation
from trove.db.models import DatabaseModelBase
from trove.extensions.mgmt.quota.service import QuotaController
from trove.common import exception
from trove.common import cfg
from trove.quota.quota import run_with_quotas
from trove.quota.quota import QUOTAS
"""
Unit tests for the classes and functions in DbQuotaDriver.py.
"""
CONF = cfg.CONF
resources = {
Resource.INSTANCES: Resource(Resource.INSTANCES, 'max_instances_per_user'),
Resource.VOLUMES: Resource(Resource.VOLUMES, 'max_volumes_per_user'),
}
FAKE_TENANT1 = "123456"
FAKE_TENANT2 = "654321"
class Run_with_quotasTest(testtools.TestCase):
def setUp(self):
super(Run_with_quotasTest, self).setUp()
self.quota_reserve_orig = QUOTAS.reserve
self.quota_rollback_orig = QUOTAS.rollback
self.quota_commit_orig = QUOTAS.commit
QUOTAS.reserve = Mock()
QUOTAS.rollback = Mock()
QUOTAS.commit = Mock()
def tearDown(self):
super(Run_with_quotasTest, self).tearDown()
QUOTAS.reserve = self.quota_reserve_orig
QUOTAS.rollback = self.quota_rollback_orig
QUOTAS.commit = self.quota_commit_orig
def test_run_with_quotas(self):
f = Mock()
run_with_quotas(FAKE_TENANT1, {'instances': 1, 'volumes': 5}, f)
self.assertTrue(QUOTAS.reserve.called)
self.assertTrue(QUOTAS.commit.called)
self.assertFalse(QUOTAS.rollback.called)
self.assertTrue(f.called)
def test_run_with_quotas_error(self):
f = Mock(side_effect=Exception())
self.assertRaises(Exception, run_with_quotas, FAKE_TENANT1,
{'instances': 1, 'volumes': 5}, f)
self.assertTrue(QUOTAS.reserve.called)
self.assertTrue(QUOTAS.rollback.called)
self.assertFalse(QUOTAS.commit.called)
self.assertTrue(f.called)
class QuotaControllerTest(testtools.TestCase):
def setUp(self):
super(QuotaControllerTest, self).setUp()
context = mock()
context.is_admin = True
req = mock()
req.environ = mock()
when(req.environ).get(any()).thenReturn(context)
self.req = req
self.controller = QuotaController()
def tearDown(self):
super(QuotaControllerTest, self).tearDown()
unstub()
def test_update_unknown_resource(self):
body = {'quotas': {'unknown_resource': 5}}
self.assertRaises(exception.QuotaResourceUnknown,
self.controller.update, self.req, body,
FAKE_TENANT1, FAKE_TENANT2)
def test_update_resource_no_value(self):
quota = mock(Quota)
when(DatabaseModelBase).find_by(tenant_id=FAKE_TENANT2,
resource='instances').thenReturn(quota)
body = {'quotas': {'instances': None}}
result = self.controller.update(self.req, body, FAKE_TENANT1,
FAKE_TENANT2)
verify(quota, never).save()
self.assertEquals(200, result.status)
def test_update_resource_instance(self):
instance_quota = mock(Quota)
when(DatabaseModelBase).find_by(
tenant_id=FAKE_TENANT2,
resource='instances').thenReturn(instance_quota)
body = {'quotas': {'instances': 2}}
result = self.controller.update(self.req, body, FAKE_TENANT1,
FAKE_TENANT2)
verify(instance_quota, times=1).save()
self.assertTrue('instances' in result._data['quotas'])
self.assertEquals(200, result.status)
self.assertEquals(2, result._data['quotas']['instances'])
@testtools.skipIf(not CONF.trove_volume_support,
'Volume support is not enabled')
def test_update_resource_volume(self):
instance_quota = mock(Quota)
when(DatabaseModelBase).find_by(
tenant_id=FAKE_TENANT2,
resource='instances').thenReturn(instance_quota)
volume_quota = mock(Quota)
when(DatabaseModelBase).find_by(
tenant_id=FAKE_TENANT2,
resource='volumes').thenReturn(volume_quota)
body = {'quotas': {'instances': None, 'volumes': 10}}
result = self.controller.update(self.req, body, FAKE_TENANT1,
FAKE_TENANT2)
verify(instance_quota, never).save()
self.assertFalse('instances' in result._data['quotas'])
verify(volume_quota, times=1).save()
self.assertEquals(200, result.status)
self.assertEquals(10, result._data['quotas']['volumes'])
class DbQuotaDriverTest(testtools.TestCase):
def setUp(self):
super(DbQuotaDriverTest, self).setUp()
self.driver = DbQuotaDriver(resources)
self.orig_Quota_find_all = Quota.find_all
self.orig_QuotaUsage_find_all = QuotaUsage.find_all
self.orig_QuotaUsage_find_by = QuotaUsage.find_by
self.orig_Reservation_create = Reservation.create
self.orig_QuotaUsage_create = QuotaUsage.create
self.orig_QuotaUsage_save = QuotaUsage.save
self.orig_Reservation_save = Reservation.save
self.mock_quota_result = Mock()
self.mock_usage_result = Mock()
Quota.find_all = Mock(return_value=self.mock_quota_result)
QuotaUsage.find_all = Mock(return_value=self.mock_usage_result)
def tearDown(self):
super(DbQuotaDriverTest, self).tearDown()
Quota.find_all = self.orig_Quota_find_all
QuotaUsage.find_all = self.orig_QuotaUsage_find_all
QuotaUsage.find_by = self.orig_QuotaUsage_find_by
Reservation.create = self.orig_Reservation_create
QuotaUsage.create = self.orig_QuotaUsage_create
QuotaUsage.save = self.orig_QuotaUsage_save
Reservation.save = self.orig_Reservation_save
def test_get_defaults(self):
defaults = self.driver.get_defaults(resources)
self.assertEqual(CONF.max_instances_per_user,
defaults[Resource.INSTANCES])
self.assertEqual(CONF.max_volumes_per_user,
defaults[Resource.VOLUMES])
def test_get_quota_by_tenant(self):
FAKE_QUOTAS = [Quota(tenant_id=FAKE_TENANT1,
resource=Resource.INSTANCES,
hard_limit=12)]
self.mock_quota_result.all = Mock(return_value=FAKE_QUOTAS)
quota = self.driver.get_quota_by_tenant(FAKE_TENANT1,
Resource.VOLUMES)
self.assertEquals(FAKE_TENANT1, quota.tenant_id)
self.assertEquals(Resource.INSTANCES, quota.resource)
self.assertEquals(12, quota.hard_limit)
def test_get_quota_by_tenant_default(self):
self.mock_quota_result.all = Mock(return_value=[])
quota = self.driver.get_quota_by_tenant(FAKE_TENANT1,
Resource.VOLUMES)
self.assertEquals(FAKE_TENANT1, quota.tenant_id)
self.assertEquals(Resource.VOLUMES, quota.resource)
self.assertEquals(CONF.max_volumes_per_user, quota.hard_limit)
def test_get_all_quotas_by_tenant(self):
FAKE_QUOTAS = [Quota(tenant_id=FAKE_TENANT1,
resource=Resource.INSTANCES,
hard_limit=22),
Quota(tenant_id=FAKE_TENANT1,
resource=Resource.VOLUMES,
hard_limit=15)]
self.mock_quota_result.all = Mock(return_value=FAKE_QUOTAS)
quotas = self.driver.get_all_quotas_by_tenant(FAKE_TENANT1,
resources.keys())
self.assertEquals(FAKE_TENANT1, quotas[Resource.INSTANCES].tenant_id)
self.assertEquals(Resource.INSTANCES,
quotas[Resource.INSTANCES].resource)
self.assertEquals(22, quotas[Resource.INSTANCES].hard_limit)
self.assertEquals(FAKE_TENANT1, quotas[Resource.VOLUMES].tenant_id)
self.assertEquals(Resource.VOLUMES, quotas[Resource.VOLUMES].resource)
self.assertEquals(15, quotas[Resource.VOLUMES].hard_limit)
def test_get_all_quotas_by_tenant_with_all_default(self):
self.mock_quota_result.all = Mock(return_value=[])
quotas = self.driver.get_all_quotas_by_tenant(FAKE_TENANT1,
resources.keys())
self.assertEquals(FAKE_TENANT1, quotas[Resource.INSTANCES].tenant_id)
self.assertEquals(Resource.INSTANCES,
quotas[Resource.INSTANCES].resource)
self.assertEquals(CONF.max_instances_per_user,
quotas[Resource.INSTANCES].hard_limit)
self.assertEquals(FAKE_TENANT1, quotas[Resource.VOLUMES].tenant_id)
self.assertEquals(Resource.VOLUMES, quotas[Resource.VOLUMES].resource)
self.assertEquals(CONF.max_volumes_per_user,
quotas[Resource.VOLUMES].hard_limit)
def test_get_all_quotas_by_tenant_with_one_default(self):
FAKE_QUOTAS = [Quota(tenant_id=FAKE_TENANT1,
resource=Resource.INSTANCES,
hard_limit=22)]
self.mock_quota_result.all = Mock(return_value=FAKE_QUOTAS)
quotas = self.driver.get_all_quotas_by_tenant(FAKE_TENANT1,
resources.keys())
self.assertEquals(FAKE_TENANT1, quotas[Resource.INSTANCES].tenant_id)
self.assertEquals(Resource.INSTANCES,
quotas[Resource.INSTANCES].resource)
self.assertEquals(22, quotas[Resource.INSTANCES].hard_limit)
self.assertEquals(FAKE_TENANT1, quotas[Resource.VOLUMES].tenant_id)
self.assertEquals(Resource.VOLUMES, quotas[Resource.VOLUMES].resource)
self.assertEquals(CONF.max_volumes_per_user,
quotas[Resource.VOLUMES].hard_limit)
def test_get_quota_usage_by_tenant(self):
FAKE_QUOTAS = [QuotaUsage(tenant_id=FAKE_TENANT1,
resource=Resource.VOLUMES,
in_use=3,
reserved=1)]
self.mock_usage_result.all = Mock(return_value=FAKE_QUOTAS)
usage = self.driver.get_quota_usage_by_tenant(FAKE_TENANT1,
Resource.VOLUMES)
self.assertEquals(FAKE_TENANT1, usage.tenant_id)
self.assertEquals(Resource.VOLUMES, usage.resource)
self.assertEquals(3, usage.in_use)
self.assertEquals(1, usage.reserved)
def test_get_quota_usage_by_tenant_default(self):
FAKE_QUOTA = QuotaUsage(tenant_id=FAKE_TENANT1,
resource=Resource.VOLUMES,
in_use=0,
reserved=0)
self.mock_usage_result.all = Mock(return_value=[])
QuotaUsage.create = Mock(return_value=FAKE_QUOTA)
usage = self.driver.get_quota_usage_by_tenant(FAKE_TENANT1,
Resource.VOLUMES)
self.assertEquals(FAKE_TENANT1, usage.tenant_id)
self.assertEquals(Resource.VOLUMES, usage.resource)
self.assertEquals(0, usage.in_use)
self.assertEquals(0, usage.reserved)
def test_get_all_quota_usages_by_tenant(self):
FAKE_QUOTAS = [QuotaUsage(tenant_id=FAKE_TENANT1,
resource=Resource.INSTANCES,
in_use=2,
reserved=1),
QuotaUsage(tenant_id=FAKE_TENANT1,
resource=Resource.VOLUMES,
in_use=1,
reserved=1)]
self.mock_usage_result.all = Mock(return_value=FAKE_QUOTAS)
usages = self.driver.get_all_quota_usages_by_tenant(FAKE_TENANT1,
resources.keys())
self.assertEquals(FAKE_TENANT1, usages[Resource.INSTANCES].tenant_id)
self.assertEquals(Resource.INSTANCES,
usages[Resource.INSTANCES].resource)
self.assertEquals(2, usages[Resource.INSTANCES].in_use)
self.assertEquals(1, usages[Resource.INSTANCES].reserved)
self.assertEquals(FAKE_TENANT1, usages[Resource.VOLUMES].tenant_id)
self.assertEquals(Resource.VOLUMES, usages[Resource.VOLUMES].resource)
self.assertEquals(1, usages[Resource.VOLUMES].in_use)
self.assertEquals(1, usages[Resource.VOLUMES].reserved)
def test_get_all_quota_usages_by_tenant_with_all_default(self):
FAKE_QUOTAS = [QuotaUsage(tenant_id=FAKE_TENANT1,
resource=Resource.INSTANCES,
in_use=0,
reserved=0),
QuotaUsage(tenant_id=FAKE_TENANT1,
resource=Resource.VOLUMES,
in_use=0,
reserved=0)]
self.mock_usage_result.all = Mock(return_value=[])
QuotaUsage.create = Mock(side_effect=FAKE_QUOTAS)
usages = self.driver.get_all_quota_usages_by_tenant(FAKE_TENANT1,
resources.keys())
self.assertEquals(FAKE_TENANT1, usages[Resource.INSTANCES].tenant_id)
self.assertEquals(Resource.INSTANCES,
usages[Resource.INSTANCES].resource)
self.assertEquals(0, usages[Resource.INSTANCES].in_use)
self.assertEquals(0, usages[Resource.INSTANCES].reserved)
self.assertEquals(FAKE_TENANT1, usages[Resource.VOLUMES].tenant_id)
self.assertEquals(Resource.VOLUMES, usages[Resource.VOLUMES].resource)
self.assertEquals(0, usages[Resource.VOLUMES].in_use)
self.assertEquals(0, usages[Resource.VOLUMES].reserved)
def test_get_all_quota_usages_by_tenant_with_one_default(self):
FAKE_QUOTAS = [QuotaUsage(tenant_id=FAKE_TENANT1,
resource=Resource.INSTANCES,
in_use=0,
reserved=0)]
NEW_FAKE_QUOTA = QuotaUsage(tenant_id=FAKE_TENANT1,
resource=Resource.VOLUMES,
in_use=0,
reserved=0)
self.mock_usage_result.all = Mock(return_value=FAKE_QUOTAS)
QuotaUsage.create = Mock(return_value=NEW_FAKE_QUOTA)
usages = self.driver.get_all_quota_usages_by_tenant(FAKE_TENANT1,
resources.keys())
self.assertEquals(FAKE_TENANT1, usages[Resource.INSTANCES].tenant_id)
self.assertEquals(Resource.INSTANCES,
usages[Resource.INSTANCES].resource)
self.assertEquals(0, usages[Resource.INSTANCES].in_use)
self.assertEquals(0, usages[Resource.INSTANCES].reserved)
self.assertEquals(FAKE_TENANT1, usages[Resource.VOLUMES].tenant_id)
self.assertEquals(Resource.VOLUMES, usages[Resource.VOLUMES].resource)
self.assertEquals(0, usages[Resource.VOLUMES].in_use)
self.assertEquals(0, usages[Resource.VOLUMES].reserved)
def test_reserve(self):
FAKE_QUOTAS = [QuotaUsage(id=1,
tenant_id=FAKE_TENANT1,
resource=Resource.INSTANCES,
in_use=1,
reserved=2),
QuotaUsage(id=2,
tenant_id=FAKE_TENANT1,
resource=Resource.VOLUMES,
in_use=1,
reserved=1)]
self.mock_quota_result.all = Mock(return_value=[])
self.mock_usage_result.all = Mock(return_value=FAKE_QUOTAS)
QuotaUsage.save = Mock()
Reservation.create = Mock()
delta = {'instances': 2, 'volumes': 3}
self.driver.reserve(FAKE_TENANT1, resources, delta)
_, kw = Reservation.create.call_args_list[0]
self.assertEquals(1, kw['usage_id'])
self.assertEquals(2, kw['delta'])
self.assertEquals(Reservation.Statuses.RESERVED, kw['status'])
_, kw = Reservation.create.call_args_list[1]
self.assertEquals(2, kw['usage_id'])
self.assertEquals(3, kw['delta'])
self.assertEquals(Reservation.Statuses.RESERVED, kw['status'])
def test_reserve_resource_unknown(self):
delta = {'instances': 10, 'volumes': 2000, 'Fake_resource': 123}
self.assertRaises(exception.QuotaResourceUnknown,
self.driver.reserve,
FAKE_TENANT1,
resources,
delta)
def test_reserve_over_quota(self):
FAKE_QUOTAS = [QuotaUsage(id=1,
tenant_id=FAKE_TENANT1,
resource=Resource.INSTANCES,
in_use=0,
reserved=0),
QuotaUsage(id=2,
tenant_id=FAKE_TENANT1,
resource=Resource.VOLUMES,
in_use=0,
reserved=0)]
self.mock_quota_result.all = Mock(return_value=[])
self.mock_usage_result.all = Mock(return_value=FAKE_QUOTAS)
delta = {'instances': 1, 'volumes': CONF.max_volumes_per_user + 1}
self.assertRaises(exception.QuotaExceeded,
self.driver.reserve,
FAKE_TENANT1,
resources,
delta)
def test_reserve_over_quota_with_usage(self):
FAKE_QUOTAS = [QuotaUsage(id=1,
tenant_id=FAKE_TENANT1,
resource=Resource.INSTANCES,
in_use=1,
reserved=0),
QuotaUsage(id=2,
tenant_id=FAKE_TENANT1,
resource=Resource.VOLUMES,
in_use=0,
reserved=0)]
self.mock_quota_result.all = Mock(return_value=[])
self.mock_usage_result.all = Mock(return_value=FAKE_QUOTAS)
delta = {'instances': 5, 'volumes': 3}
self.assertRaises(exception.QuotaExceeded,
self.driver.reserve,
FAKE_TENANT1,
resources,
delta)
def test_reserve_over_quota_with_reserved(self):
FAKE_QUOTAS = [QuotaUsage(id=1,
tenant_id=FAKE_TENANT1,
resource=Resource.INSTANCES,
in_use=1,
reserved=2),
QuotaUsage(id=2,
tenant_id=FAKE_TENANT1,
resource=Resource.VOLUMES,
in_use=0,
reserved=0)]
self.mock_quota_result.all = Mock(return_value=[])
self.mock_usage_result.all = Mock(return_value=FAKE_QUOTAS)
delta = {'instances': 4, 'volumes': 2}
self.assertRaises(exception.QuotaExceeded,
self.driver.reserve,
FAKE_TENANT1,
resources,
delta)
def test_reserve_over_quota_but_can_apply_negative_deltas(self):
FAKE_QUOTAS = [QuotaUsage(id=1,
tenant_id=FAKE_TENANT1,
resource=Resource.INSTANCES,
in_use=10,
reserved=0),
QuotaUsage(id=2,
tenant_id=FAKE_TENANT1,
resource=Resource.VOLUMES,
in_use=50,
reserved=0)]
self.mock_quota_result.all = Mock(return_value=[])
self.mock_usage_result.all = Mock(return_value=FAKE_QUOTAS)
QuotaUsage.save = Mock()
Reservation.create = Mock()
delta = {'instances': -1, 'volumes': -3}
self.driver.reserve(FAKE_TENANT1, resources, delta)
_, kw = Reservation.create.call_args_list[0]
self.assertEquals(1, kw['usage_id'])
self.assertEquals(-1, kw['delta'])
self.assertEquals(Reservation.Statuses.RESERVED, kw['status'])
_, kw = Reservation.create.call_args_list[1]
self.assertEquals(2, kw['usage_id'])
self.assertEquals(-3, kw['delta'])
self.assertEquals(Reservation.Statuses.RESERVED, kw['status'])
def test_commit(self):
Reservation.save = Mock()
QuotaUsage.save = Mock()
FAKE_QUOTAS = [QuotaUsage(id=1,
tenant_id=FAKE_TENANT1,
resource=Resource.INSTANCES,
in_use=5,
reserved=2),
QuotaUsage(id=2,
tenant_id=FAKE_TENANT1,
resource=Resource.VOLUMES,
in_use=1,
reserved=2)]
FAKE_RESERVATIONS = [Reservation(usage_id=1,
delta=1,
status=Reservation.Statuses.RESERVED),
Reservation(usage_id=2,
delta=2,
status=Reservation.Statuses.RESERVED)]
QuotaUsage.find_by = Mock(side_effect=FAKE_QUOTAS)
self.driver.commit(FAKE_RESERVATIONS)
self.assertEqual(6, FAKE_QUOTAS[0].in_use)
self.assertEqual(1, FAKE_QUOTAS[0].reserved)
self.assertEqual(Reservation.Statuses.COMMITTED,
FAKE_RESERVATIONS[0].status)
self.assertEqual(3, FAKE_QUOTAS[1].in_use)
self.assertEqual(0, FAKE_QUOTAS[1].reserved)
self.assertEqual(Reservation.Statuses.COMMITTED,
FAKE_RESERVATIONS[1].status)
def test_rollback(self):
Reservation.save = Mock()
QuotaUsage.save = Mock()
FAKE_QUOTAS = [QuotaUsage(id=1,
tenant_id=FAKE_TENANT1,
resource=Resource.INSTANCES,
in_use=5,
reserved=2),
QuotaUsage(id=2,
tenant_id=FAKE_TENANT1,
resource=Resource.VOLUMES,
in_use=1,
reserved=2)]
FAKE_RESERVATIONS = [Reservation(usage_id=1,
delta=1,
status=Reservation.Statuses.RESERVED),
Reservation(usage_id=2,
delta=2,
status=Reservation.Statuses.RESERVED)]
QuotaUsage.find_by = Mock(side_effect=FAKE_QUOTAS)
self.driver.rollback(FAKE_RESERVATIONS)
self.assertEqual(5, FAKE_QUOTAS[0].in_use)
self.assertEqual(1, FAKE_QUOTAS[0].reserved)
self.assertEqual(Reservation.Statuses.ROLLEDBACK,
FAKE_RESERVATIONS[0].status)
self.assertEqual(1, FAKE_QUOTAS[1].in_use)
self.assertEqual(0, FAKE_QUOTAS[1].reserved)
self.assertEqual(Reservation.Statuses.ROLLEDBACK,
FAKE_RESERVATIONS[1].status)
| 42.513559
| 79
| 0.574812
| 2,509
| 25,083
| 5.513352
| 0.080909
| 0.084436
| 0.026025
| 0.035712
| 0.803152
| 0.731728
| 0.70021
| 0.67845
| 0.664209
| 0.650184
| 0
| 0.016121
| 0.339712
| 25,083
| 589
| 80
| 42.585739
| 0.819104
| 0.023323
| 0
| 0.627706
| 0
| 0
| 0.019089
| 0.000901
| 0
| 0
| 0
| 0
| 0.222944
| 1
| 0.0671
| false
| 0
| 0.030303
| 0
| 0.103896
| 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
|
16d47d0537155255ce27cd3c3479b098ca6ecf13
| 665
|
py
|
Python
|
ast_version/src/binop.py
|
lucassa3/CCompiler
|
ad788f692dc2863da9111b4a42f54277ac29d5ae
|
[
"MIT"
] | 1
|
2020-04-29T21:30:11.000Z
|
2020-04-29T21:30:11.000Z
|
ast_version/src/binop.py
|
lucassa3/CCompiler
|
ad788f692dc2863da9111b4a42f54277ac29d5ae
|
[
"MIT"
] | 10
|
2018-08-20T18:10:56.000Z
|
2019-04-05T14:45:11.000Z
|
ast_version/src/binop.py
|
lucassa3/CCompiler
|
ad788f692dc2863da9111b4a42f54277ac29d5ae
|
[
"MIT"
] | null | null | null |
from node import Node
class BinOp(Node):
def eval(self, st):
a = self.children[0].eval(st)
b = self.children[1].eval(st)
if self.value == "MINUS":
return a - b
elif self.value == "PLUS":
return a + b
elif self.value == "MULT":
return a * b
elif self.value == "DIV":
return a // b
elif self.value == "GREATER":
return a > b
elif self.value == "LESS":
return a < b
elif self.value == "GE":
return a >= b
elif self.value == "LE":
return a <= b
elif self.value == "EQUALS":
return a == b
elif self.value == "AND":
return a and b
elif self.value == "OR":
return a or b
| 19.558824
| 32
| 0.542857
| 102
| 665
| 3.539216
| 0.284314
| 0.274238
| 0.249307
| 0.387812
| 0.523546
| 0.523546
| 0
| 0
| 0
| 0
| 0
| 0.004338
| 0.306767
| 665
| 33
| 33
| 20.151515
| 0.778742
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.037037
| false
| 0
| 0.037037
| 0
| 0.518519
| 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
|
16d935b63ca1c52fcdad82da9c168df67d096ff5
| 527
|
py
|
Python
|
src/brisk.py
|
chaoer/brisk-descriptor
|
140b08539768b8038680fd86d7fda9688dd5b908
|
[
"BSD-3-Clause"
] | 18
|
2015-02-05T00:44:24.000Z
|
2018-11-30T03:20:51.000Z
|
src/brisk.py
|
chaoer/brisk-descriptor
|
140b08539768b8038680fd86d7fda9688dd5b908
|
[
"BSD-3-Clause"
] | 4
|
2016-06-25T20:04:59.000Z
|
2019-01-29T19:34:24.000Z
|
src/brisk.py
|
chaoer/brisk-descriptor
|
140b08539768b8038680fd86d7fda9688dd5b908
|
[
"BSD-3-Clause"
] | 14
|
2015-11-15T05:20:28.000Z
|
2019-01-02T12:50:44.000Z
|
import pybrisk
class Brisk:
def __init__(self, thresh=60, octaves=4):
self.thresh = thresh
self.octaves = octaves
self.descriptor_extractor = pybrisk.create()
def __del__(self):
pybrisk.destroy(self.descriptor_extractor)
def detect(self, img):
return pybrisk.detect(self.descriptor_extractor,
img, self.thresh, self.octaves)
def compute(self, img, keypoints):
return pybrisk.compute(self.descriptor_extractor,
img, keypoints)
| 26.35
| 57
| 0.648956
| 58
| 527
| 5.689655
| 0.362069
| 0.169697
| 0.278788
| 0.157576
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007692
| 0.259962
| 527
| 19
| 58
| 27.736842
| 0.838462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.071429
| 0.142857
| 0.571429
| 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
|
bc6acbe604cb779e768957863e598871559e6e15
| 3,966
|
py
|
Python
|
tests/test_models/test_backbones/test_encoder_decoders/test_deepfill_encoder.py
|
Jian137/mmediting-1
|
e1ac6c93441ec96696d0b530f040b91b809015b6
|
[
"Apache-2.0"
] | 1,884
|
2020-07-09T18:53:43.000Z
|
2022-03-31T12:06:18.000Z
|
tests/test_models/test_backbones/test_encoder_decoders/test_deepfill_encoder.py
|
Jian137/mmediting-1
|
e1ac6c93441ec96696d0b530f040b91b809015b6
|
[
"Apache-2.0"
] | 622
|
2020-07-09T18:52:27.000Z
|
2022-03-31T14:41:09.000Z
|
tests/test_models/test_backbones/test_encoder_decoders/test_deepfill_encoder.py
|
Jian137/mmediting-1
|
e1ac6c93441ec96696d0b530f040b91b809015b6
|
[
"Apache-2.0"
] | 361
|
2020-07-09T19:21:47.000Z
|
2022-03-31T09:58:27.000Z
|
# Copyright (c) OpenMMLab. All rights reserved.
import torch
from mmedit.models.backbones import ContextualAttentionNeck, DeepFillEncoder
from mmedit.models.common import SimpleGatedConvModule
def test_deepfill_enc():
encoder = DeepFillEncoder()
x = torch.randn((2, 5, 256, 256))
outputs = encoder(x)
assert isinstance(outputs, dict)
assert 'out' in outputs
res = outputs['out']
assert res.shape == (2, 128, 64, 64)
assert encoder.enc2.stride == (2, 2)
assert encoder.enc2.out_channels == 64
encoder = DeepFillEncoder(encoder_type='stage2_conv')
x = torch.randn((2, 5, 256, 256))
outputs = encoder(x)
assert isinstance(outputs, dict)
assert 'out' in outputs
res = outputs['out']
assert res.shape == (2, 128, 64, 64)
assert encoder.enc2.out_channels == 32
assert encoder.enc3.out_channels == 64
assert encoder.enc4.out_channels == 64
encoder = DeepFillEncoder(encoder_type='stage2_attention')
x = torch.randn((2, 5, 256, 256))
outputs = encoder(x)
assert isinstance(outputs, dict)
assert 'out' in outputs
res = outputs['out']
assert res.shape == (2, 128, 64, 64)
assert encoder.enc2.out_channels == 32
assert encoder.enc3.out_channels == 64
assert encoder.enc4.out_channels == 128
if torch.cuda.is_available():
encoder = DeepFillEncoder().cuda()
x = torch.randn((2, 5, 256, 256)).cuda()
outputs = encoder(x)
assert isinstance(outputs, dict)
assert 'out' in outputs
res = outputs['out']
assert res.shape == (2, 128, 64, 64)
assert encoder.enc2.stride == (2, 2)
assert encoder.enc2.out_channels == 64
encoder = DeepFillEncoder(encoder_type='stage2_conv').cuda()
x = torch.randn((2, 5, 256, 256)).cuda()
outputs = encoder(x)
assert isinstance(outputs, dict)
assert 'out' in outputs
res = outputs['out']
assert res.shape == (2, 128, 64, 64)
assert encoder.enc2.out_channels == 32
assert encoder.enc3.out_channels == 64
assert encoder.enc4.out_channels == 64
encoder = DeepFillEncoder(encoder_type='stage2_attention').cuda()
x = torch.randn((2, 5, 256, 256)).cuda()
outputs = encoder(x)
assert isinstance(outputs, dict)
assert 'out' in outputs
res = outputs['out']
assert res.shape == (2, 128, 64, 64)
assert encoder.enc2.out_channels == 32
assert encoder.enc3.out_channels == 64
assert encoder.enc4.out_channels == 128
encoder = DeepFillEncoder(
conv_type='gated_conv', channel_factor=0.75).cuda()
x = torch.randn((2, 5, 256, 256)).cuda()
outputs = encoder(x)
assert isinstance(outputs, dict)
assert 'out' in outputs
res = outputs['out']
assert res.shape == (2, 96, 64, 64)
assert isinstance(encoder.enc2, SimpleGatedConvModule)
assert encoder.enc2.conv.stride == (2, 2)
assert encoder.enc2.conv.out_channels == 48 * 2
def test_deepfill_contextual_attention_neck():
# TODO: add unittest for contextual attention module
neck = ContextualAttentionNeck(in_channels=128)
x = torch.rand((2, 128, 64, 64))
mask = torch.zeros((2, 1, 64, 64))
mask[..., 20:100, 23:90] = 1.
res, offset = neck(x, mask)
assert res.shape == (2, 128, 64, 64)
assert offset.shape == (2, 32, 32, 32, 32)
if torch.cuda.is_available():
neck.cuda()
res, offset = neck(x.cuda(), mask.cuda())
assert res.shape == (2, 128, 64, 64)
assert offset.shape == (2, 32, 32, 32, 32)
neck = ContextualAttentionNeck(
in_channels=128, conv_type='gated_conv').cuda()
res, offset = neck(x.cuda(), mask.cuda())
assert res.shape == (2, 128, 64, 64)
assert offset.shape == (2, 32, 32, 32, 32)
assert isinstance(neck.conv1, SimpleGatedConvModule)
| 35.72973
| 76
| 0.620524
| 512
| 3,966
| 4.732422
| 0.144531
| 0.096574
| 0.05778
| 0.061907
| 0.755262
| 0.704086
| 0.693768
| 0.693768
| 0.693768
| 0.693768
| 0
| 0.086606
| 0.248865
| 3,966
| 110
| 77
| 36.054545
| 0.726754
| 0.024206
| 0
| 0.72043
| 0
| 0
| 0.029997
| 0
| 0
| 0
| 0
| 0.009091
| 0.505376
| 1
| 0.021505
| false
| 0
| 0.032258
| 0
| 0.053763
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
bc90147c820b8957a1562bdb12623216308ec658
| 308
|
py
|
Python
|
dedupe/_init.py
|
neozhangthe1/dedupe
|
aff99e6bd027291eecfb78eae08aa73877f4fff0
|
[
"MIT"
] | null | null | null |
dedupe/_init.py
|
neozhangthe1/dedupe
|
aff99e6bd027291eecfb78eae08aa73877f4fff0
|
[
"MIT"
] | null | null | null |
dedupe/_init.py
|
neozhangthe1/dedupe
|
aff99e6bd027291eecfb78eae08aa73877f4fff0
|
[
"MIT"
] | null | null | null |
from dedupe.api import StaticDedupe, Dedupe
from dedupe.api import StaticRecordLink, RecordLink
from dedupe.api import StaticGazetteer, Gazetteer
from dedupe.core import randomPairs, randomPairsMatch, frozendict
from dedupe.convenience import consoleLabel, trainingDataDedupe, trainingDataLink, canonicalize
| 51.333333
| 95
| 0.866883
| 33
| 308
| 8.090909
| 0.545455
| 0.187266
| 0.146067
| 0.213483
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 308
| 5
| 96
| 61.6
| 0.953571
| 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
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
bca5cc541dfab73d45981c6f120eb783e0579f49
| 131
|
py
|
Python
|
jwt_auth/admin.py
|
alaraayan/todo-backend
|
37e46b6789012c2d64a39f6d2429b1ae893dba37
|
[
"CC-BY-3.0"
] | null | null | null |
jwt_auth/admin.py
|
alaraayan/todo-backend
|
37e46b6789012c2d64a39f6d2429b1ae893dba37
|
[
"CC-BY-3.0"
] | null | null | null |
jwt_auth/admin.py
|
alaraayan/todo-backend
|
37e46b6789012c2d64a39f6d2429b1ae893dba37
|
[
"CC-BY-3.0"
] | null | null | null |
from django.contrib import admin
from django.contrib.auth import get_user_model
User = get_user_model()
admin.site.register(User)
| 21.833333
| 46
| 0.824427
| 21
| 131
| 4.952381
| 0.52381
| 0.192308
| 0.326923
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.099237
| 131
| 5
| 47
| 26.2
| 0.881356
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 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
|
bccea585927cd051fb0a3ed4b33c0aada5c1d9b8
| 456
|
py
|
Python
|
sample_project/exam/exam.py
|
pcse/gitlab_tools
|
2896b636b0f8955bdb5f2236e257cc5d3efd54d7
|
[
"BSD-3-Clause"
] | null | null | null |
sample_project/exam/exam.py
|
pcse/gitlab_tools
|
2896b636b0f8955bdb5f2236e257cc5d3efd54d7
|
[
"BSD-3-Clause"
] | null | null | null |
sample_project/exam/exam.py
|
pcse/gitlab_tools
|
2896b636b0f8955bdb5f2236e257cc5d3efd54d7
|
[
"BSD-3-Clause"
] | 1
|
2022-03-17T16:51:08.000Z
|
2022-03-17T16:51:08.000Z
|
"""
These methods can be called inside WebCAT to determine which tests are loaded
for a given section/exam pair. This allows a common WebCAT submission site to
support different project tests
"""
def section():
# Instructor section (instructor to change before distribution)
#return 8527
#return 8528
return 8529
def exam():
# A or B exam (instructor to change to match specific project distribution
return "A"
#return "B"
| 25.333333
| 78
| 0.723684
| 64
| 456
| 5.15625
| 0.625
| 0.10303
| 0.109091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.033708
| 0.219298
| 456
| 17
| 79
| 26.823529
| 0.893258
| 0.782895
| 0
| 0
| 0
| 0
| 0.011494
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
bcdf1f594847bcd658c78df9bc4bf018e0d729b0
| 201
|
py
|
Python
|
tests/test_util.py
|
danqing/dqpy
|
f296341adb0dbbfb361eaf8b815b0ffd189ebf58
|
[
"MIT"
] | null | null | null |
tests/test_util.py
|
danqing/dqpy
|
f296341adb0dbbfb361eaf8b815b0ffd189ebf58
|
[
"MIT"
] | 25
|
2018-05-22T15:59:37.000Z
|
2020-02-14T08:08:24.000Z
|
tests/test_util.py
|
danqing/dqpy
|
f296341adb0dbbfb361eaf8b815b0ffd189ebf58
|
[
"MIT"
] | null | null | null |
import unittest
from dq import util
class TestUtil(unittest.TestCase):
def test_safe_cast(self):
assert util.safe_cast('1', int) == 1
assert util.safe_cast('meow', int, 2) == 2
| 18.272727
| 50
| 0.656716
| 30
| 201
| 4.266667
| 0.6
| 0.1875
| 0.21875
| 0.28125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025641
| 0.223881
| 201
| 10
| 51
| 20.1
| 0.794872
| 0
| 0
| 0
| 0
| 0
| 0.024876
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.166667
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
bcf316f9ca83440854d986b21a72745912b71d9f
| 656
|
py
|
Python
|
materials/migrations/0072_auto_20190422_1708.py
|
mgovoni-devel/MatD3
|
5b68d147f886bce427f92bb560159e62cec2d4e7
|
[
"BSD-2-Clause-FreeBSD"
] | 7
|
2019-09-14T07:24:09.000Z
|
2021-06-15T16:15:05.000Z
|
materials/migrations/0072_auto_20190422_1708.py
|
mgovoni-devel/MatD3
|
5b68d147f886bce427f92bb560159e62cec2d4e7
|
[
"BSD-2-Clause-FreeBSD"
] | 14
|
2019-12-05T01:49:19.000Z
|
2021-06-23T18:34:51.000Z
|
materials/migrations/0072_auto_20190422_1708.py
|
mgovoni-devel/MatD3
|
5b68d147f886bce427f92bb560159e62cec2d4e7
|
[
"BSD-2-Clause-FreeBSD"
] | 2
|
2019-11-06T21:16:57.000Z
|
2019-11-30T10:51:44.000Z
|
# Generated by Django 2.1.7 on 2019-04-22 21:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('materials', '0071_auto_20190416_1557'),
]
operations = [
migrations.RemoveField(
model_name='atomicpositions',
name='idinfo_ptr',
),
migrations.RemoveField(
model_name='atomicpositions',
name='synthesis_method',
),
migrations.RemoveField(
model_name='atomicpositions',
name='system',
),
migrations.DeleteModel(
name='AtomicPositions',
),
]
| 22.62069
| 49
| 0.565549
| 55
| 656
| 6.6
| 0.636364
| 0.209366
| 0.214876
| 0.247934
| 0.404959
| 0.404959
| 0
| 0
| 0
| 0
| 0
| 0.070455
| 0.329268
| 656
| 28
| 50
| 23.428571
| 0.754545
| 0.068598
| 0
| 0.454545
| 1
| 0
| 0.203612
| 0.037767
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.045455
| 0
| 0.181818
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4c2449756d626addb11627279707eb2913ce92ba
| 490
|
py
|
Python
|
tests/test_wrapped_driver.py
|
balexander85/wrapped_driver
|
2b5d5f13a8cbf52a3ed5fc4b21bf9ea282d3b7a1
|
[
"MIT"
] | null | null | null |
tests/test_wrapped_driver.py
|
balexander85/wrapped_driver
|
2b5d5f13a8cbf52a3ed5fc4b21bf9ea282d3b7a1
|
[
"MIT"
] | null | null | null |
tests/test_wrapped_driver.py
|
balexander85/wrapped_driver
|
2b5d5f13a8cbf52a3ed5fc4b21bf9ea282d3b7a1
|
[
"MIT"
] | null | null | null |
import pytest
from selenium.common.exceptions import WebDriverException
from wrapped_driver import WrappedDriver
def test_empty_chromedriver_path():
"""Assert error is raised if no chromedriver path is used"""
with pytest.raises(WebDriverException):
WrappedDriver(executable_path="", headless=True)
def test_no_chromedriver_path():
"""Assert error is raised if no chromedriver path is used"""
with pytest.raises(TypeError):
WrappedDriver(headless=True)
| 28.823529
| 64
| 0.763265
| 59
| 490
| 6.20339
| 0.474576
| 0.174863
| 0.147541
| 0.147541
| 0.420765
| 0.420765
| 0.420765
| 0.420765
| 0.420765
| 0.420765
| 0
| 0
| 0.159184
| 490
| 16
| 65
| 30.625
| 0.88835
| 0.222449
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| true
| 0
| 0.333333
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4c2951c766fe0cde976ee8004540518c1924599a
| 113
|
py
|
Python
|
SmartAPI/rdf/LinkedList.py
|
Kreastr/SmartAPI-HEILA
|
97dbe9e6e27267c60a4f94f60692d5f391e2ef7f
|
[
"BSD-2-Clause"
] | null | null | null |
SmartAPI/rdf/LinkedList.py
|
Kreastr/SmartAPI-HEILA
|
97dbe9e6e27267c60a4f94f60692d5f391e2ef7f
|
[
"BSD-2-Clause"
] | null | null | null |
SmartAPI/rdf/LinkedList.py
|
Kreastr/SmartAPI-HEILA
|
97dbe9e6e27267c60a4f94f60692d5f391e2ef7f
|
[
"BSD-2-Clause"
] | null | null | null |
from SmartAPI.rdf.List import List
class LinkedList(List):
def __init__(self):
List.__init__(self)
| 16.142857
| 34
| 0.699115
| 15
| 113
| 4.733333
| 0.666667
| 0.225352
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.20354
| 113
| 6
| 35
| 18.833333
| 0.788889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
4c31cf7c510d884081297346de14530206f0c46f
| 24
|
py
|
Python
|
runway/core/providers/__init__.py
|
troyready/runway
|
4fd299961a4b73df39e14f4f19a7236f7be17dd8
|
[
"Apache-2.0"
] | 134
|
2018-02-26T21:35:23.000Z
|
2022-03-03T00:30:27.000Z
|
runway/core/providers/__init__.py
|
asksmruti/runway
|
8aca76df9372e3d13eb35e12f81758f618e89e74
|
[
"Apache-2.0"
] | 937
|
2018-03-08T22:04:35.000Z
|
2022-03-30T12:21:47.000Z
|
runway/core/providers/__init__.py
|
asksmruti/runway
|
8aca76df9372e3d13eb35e12f81758f618e89e74
|
[
"Apache-2.0"
] | 70
|
2018-02-26T23:48:11.000Z
|
2022-03-02T18:44:30.000Z
|
"""Runway providers."""
| 12
| 23
| 0.625
| 2
| 24
| 7.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 24
| 1
| 24
| 24
| 0.681818
| 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
|
4c66dd7c5bb758efe86e3099648aa0be4405bfa6
| 75
|
py
|
Python
|
genegenie/admin/__init__.py
|
genegeniebio/genegenie-admin
|
93e9253febc14b17d17a5fbc2eb0e22f1c974083
|
[
"MIT"
] | null | null | null |
genegenie/admin/__init__.py
|
genegeniebio/genegenie-admin
|
93e9253febc14b17d17a5fbc2eb0e22f1c974083
|
[
"MIT"
] | null | null | null |
genegenie/admin/__init__.py
|
genegeniebio/genegenie-admin
|
93e9253febc14b17d17a5fbc2eb0e22f1c974083
|
[
"MIT"
] | null | null | null |
'''
DNA++ (c) DNA++ 2017
All rights reserved.
@author: neilswainston
'''
| 9.375
| 22
| 0.626667
| 9
| 75
| 5.222222
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.064516
| 0.173333
| 75
| 7
| 23
| 10.714286
| 0.693548
| 0.88
| 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
|
d5edbea518993ed30402ca6ed7151f569ce035ff
| 42
|
py
|
Python
|
main.py
|
reflective21/iportfolio
|
39db626a9754c1df44ac698f3d8988fdc4e7c6d5
|
[
"MIT"
] | null | null | null |
main.py
|
reflective21/iportfolio
|
39db626a9754c1df44ac698f3d8988fdc4e7c6d5
|
[
"MIT"
] | null | null | null |
main.py
|
reflective21/iportfolio
|
39db626a9754c1df44ac698f3d8988fdc4e7c6d5
|
[
"MIT"
] | null | null | null |
name = "David Asiru Adetomiwa"
print(name)
| 21
| 30
| 0.761905
| 6
| 42
| 5.333333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119048
| 42
| 2
| 31
| 21
| 0.864865
| 0
| 0
| 0
| 0
| 0
| 0.488372
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
91179c358fa25c39a2ad4c7490688913f5e6e658
| 24
|
py
|
Python
|
src/reversion/version.py
|
maraujop/django-reversion
|
c9e7788ca858d3c75b617a7277ffcd177a19d414
|
[
"BSD-3-Clause"
] | null | null | null |
src/reversion/version.py
|
maraujop/django-reversion
|
c9e7788ca858d3c75b617a7277ffcd177a19d414
|
[
"BSD-3-Clause"
] | null | null | null |
src/reversion/version.py
|
maraujop/django-reversion
|
c9e7788ca858d3c75b617a7277ffcd177a19d414
|
[
"BSD-3-Clause"
] | null | null | null |
__version__ = (1, 8, 5)
| 12
| 23
| 0.583333
| 4
| 24
| 2.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 0.208333
| 24
| 1
| 24
| 24
| 0.368421
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
9123424991c5403f506995b73c11800e6232bbeb
| 274
|
py
|
Python
|
zilean/system/zilean_migrator.py
|
A-Hilaly/zilean
|
2b2e87969a0d8064e8b92b07c346a4006f93c795
|
[
"Apache-2.0"
] | null | null | null |
zilean/system/zilean_migrator.py
|
A-Hilaly/zilean
|
2b2e87969a0d8064e8b92b07c346a4006f93c795
|
[
"Apache-2.0"
] | null | null | null |
zilean/system/zilean_migrator.py
|
A-Hilaly/zilean
|
2b2e87969a0d8064e8b92b07c346a4006f93c795
|
[
"Apache-2.0"
] | null | null | null |
from .utils.migrations import (migrate_database_from,
migrate_machine_from,
zilean_rollback_database_backup,
zilean_rollback_machine_backup)
class ZileanMigrator(object):
pass
| 34.25
| 63
| 0.569343
| 22
| 274
| 6.636364
| 0.636364
| 0.191781
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.394161
| 274
| 7
| 64
| 39.142857
| 0.879518
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.166667
| 0.166667
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
9131fc3d32e64957b9b0364448ce5a53a40a4303
| 110
|
py
|
Python
|
app.py
|
19857625778/watchlist
|
284e3f814394d0fda6e262ab84177a493027c19e
|
[
"MIT"
] | null | null | null |
app.py
|
19857625778/watchlist
|
284e3f814394d0fda6e262ab84177a493027c19e
|
[
"MIT"
] | null | null | null |
app.py
|
19857625778/watchlist
|
284e3f814394d0fda6e262ab84177a493027c19e
|
[
"MIT"
] | null | null | null |
from flask import Flask
app = Flask(_name_)
@app.route('/')
def hello():
return 'welcome to my watchlist'
| 18.333333
| 36
| 0.690909
| 16
| 110
| 4.625
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172727
| 110
| 6
| 36
| 18.333333
| 0.813187
| 0
| 0
| 0
| 0
| 0
| 0.216216
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.6
| 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
|
913583ff296aa5d8ee63fb484726346d1b7a2c13
| 151
|
py
|
Python
|
src/zmbrelev/config.py
|
Zumbi-ML/zmbRELEV
|
e6a6f789804d7230415f390da905e94ae2ab27f5
|
[
"BSD-2-Clause"
] | null | null | null |
src/zmbrelev/config.py
|
Zumbi-ML/zmbRELEV
|
e6a6f789804d7230415f390da905e94ae2ab27f5
|
[
"BSD-2-Clause"
] | null | null | null |
src/zmbrelev/config.py
|
Zumbi-ML/zmbRELEV
|
e6a6f789804d7230415f390da905e94ae2ab27f5
|
[
"BSD-2-Clause"
] | null | null | null |
# -*- coding: UTF-8 -*-
import os
this_file_path = os.path.dirname(os.path.realpath(__file__))
MODELS_DIR = os.path.join(this_file_path, "models/")
| 18.875
| 60
| 0.708609
| 24
| 151
| 4.083333
| 0.541667
| 0.183673
| 0.244898
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007463
| 0.112583
| 151
| 7
| 61
| 21.571429
| 0.723881
| 0.139073
| 0
| 0
| 0
| 0
| 0.054688
| 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
|
e691c0247838523436befe1e1ccaf96b1e1135db
| 374
|
py
|
Python
|
src/minisaml/internal/constants.py
|
HENNGE/minisaml
|
d96aa5d294eee60521ad3c7084e8659b25935cee
|
[
"Apache-2.0"
] | 2
|
2020-09-13T15:55:50.000Z
|
2021-01-07T07:40:24.000Z
|
src/minisaml/internal/constants.py
|
HENNGE/minisaml
|
d96aa5d294eee60521ad3c7084e8659b25935cee
|
[
"Apache-2.0"
] | 11
|
2020-08-26T12:27:39.000Z
|
2021-11-17T16:10:00.000Z
|
src/minisaml/internal/constants.py
|
HENNGE/minisaml
|
d96aa5d294eee60521ad3c7084e8659b25935cee
|
[
"Apache-2.0"
] | 1
|
2021-10-07T11:49:28.000Z
|
2021-10-07T11:49:28.000Z
|
NAMES_SAML2_PROTOCOL = "urn:oasis:names:tc:SAML:2.0:protocol"
NAMES_SAML2_ASSERTION = "urn:oasis:names:tc:SAML:2.0:assertion"
NAMEID_FORMAT_UNSPECIFIED = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
BINDINGS_HTTP_POST = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
DATE_TIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
DATE_TIME_FORMAT_FRACTIONAL = "%Y-%m-%dT%H:%M:%S.%fZ"
| 53.428571
| 83
| 0.759358
| 68
| 374
| 3.985294
| 0.397059
| 0.118081
| 0.191882
| 0.221402
| 0.346863
| 0.232472
| 0.232472
| 0
| 0
| 0
| 0
| 0.02809
| 0.048128
| 374
| 6
| 84
| 62.333333
| 0.733146
| 0
| 0
| 0
| 0
| 0
| 0.564171
| 0.516043
| 0
| 0
| 0
| 0
| 0.166667
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e6973c5ea944d5bc8b7dc232052cd5073acf79bf
| 253
|
py
|
Python
|
concat_col_app/factories.py
|
thinkAmi-sandbox/django-datatables-view-sample
|
ac3df721089489e61c09ac75d320be3704c72105
|
[
"Unlicense"
] | null | null | null |
concat_col_app/factories.py
|
thinkAmi-sandbox/django-datatables-view-sample
|
ac3df721089489e61c09ac75d320be3704c72105
|
[
"Unlicense"
] | null | null | null |
concat_col_app/factories.py
|
thinkAmi-sandbox/django-datatables-view-sample
|
ac3df721089489e61c09ac75d320be3704c72105
|
[
"Unlicense"
] | null | null | null |
import factory
from concat_col_app.models import Color, Apple
class ColorFactory(factory.django.DjangoModelFactory):
class Meta:
model = Color
class AppleFactory(factory.django.DjangoModelFactory):
class Meta:
model = Apple
| 18.071429
| 54
| 0.73913
| 28
| 253
| 6.607143
| 0.571429
| 0.140541
| 0.335135
| 0.389189
| 0.486486
| 0.486486
| 0
| 0
| 0
| 0
| 0
| 0
| 0.197628
| 253
| 13
| 55
| 19.461538
| 0.91133
| 0
| 0
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
e6bc053f9c92b2bf8e29c294b8627f9ea57a47fd
| 29
|
py
|
Python
|
rses/__init__.py
|
iScrE4m/RSES
|
88299f105ded8838243eab8b25ab1626c97d1179
|
[
"MIT"
] | 1
|
2022-02-16T15:06:22.000Z
|
2022-02-16T15:06:22.000Z
|
rses/__init__.py
|
djetelina/RSES
|
88299f105ded8838243eab8b25ab1626c97d1179
|
[
"MIT"
] | null | null | null |
rses/__init__.py
|
djetelina/RSES
|
88299f105ded8838243eab8b25ab1626c97d1179
|
[
"MIT"
] | null | null | null |
# coding=utf-8
"""RSES :)"""
| 9.666667
| 14
| 0.482759
| 4
| 29
| 3.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.04
| 0.137931
| 29
| 2
| 15
| 14.5
| 0.52
| 0.724138
| 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
|
e6bf66183d1220ed94fa05bc46a4ec69c5cf4ba5
| 130
|
py
|
Python
|
learning_python/org/allnix/util.py
|
ykyang/org.allnix.python
|
f9d74db2db026b20e925ac40dbca7d21b3ac0b0f
|
[
"Apache-2.0"
] | null | null | null |
learning_python/org/allnix/util.py
|
ykyang/org.allnix.python
|
f9d74db2db026b20e925ac40dbca7d21b3ac0b0f
|
[
"Apache-2.0"
] | null | null | null |
learning_python/org/allnix/util.py
|
ykyang/org.allnix.python
|
f9d74db2db026b20e925ac40dbca7d21b3ac0b0f
|
[
"Apache-2.0"
] | null | null | null |
def write(message: str):
print("org.allnix", message)
def read() -> str:
"""Returns a string"""
return "org.allnix"
| 16.25
| 32
| 0.6
| 17
| 130
| 4.588235
| 0.705882
| 0.230769
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.215385
| 130
| 7
| 33
| 18.571429
| 0.764706
| 0.123077
| 0
| 0
| 0
| 0
| 0.185185
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0
| 0.75
| 0.25
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e6c28ea190ebaccb28d1869f9e2a7ef2b94d001d
| 2,079
|
py
|
Python
|
tetrisanim3.py
|
daniel-chuang/tetris
|
518bd7b1fd80babc34a1da323b2f50d88c31ed4a
|
[
"MIT"
] | null | null | null |
tetrisanim3.py
|
daniel-chuang/tetris
|
518bd7b1fd80babc34a1da323b2f50d88c31ed4a
|
[
"MIT"
] | null | null | null |
tetrisanim3.py
|
daniel-chuang/tetris
|
518bd7b1fd80babc34a1da323b2f50d88c31ed4a
|
[
"MIT"
] | null | null | null |
# animation for medium article
from termcolor import colored
import time
import imageio
import pyautogui
pyautogui.FAILSAFE = True
matrix = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 2, 2, 2, 0, 0, 0],
[0, 0, 0, 0, 0, 2, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[1, 0, 1, 1, 1, 1, 1, 1, 1, 0],
[1, 0, 1, 0, 0, 0, 0, 1, 0, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[0, 1, 0, 1, 0, 1, 0, 0, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]
lst = set()
for i in range(21):
for z in range(10):
for row in range(len(matrix)):
if 0 not in matrix[row]:
lst.add(row)
if (i == 20 or i > row) and row in lst:
print(colored("1 " * 10, "green"))
else:
for element in range(len(matrix[row])):
if i == row and z == element:
print(colored(matrix[row][element], "green"), end=" ", flush=False)
elif matrix[row][element] == 1:
print(colored(matrix[row][element], "red"), end=" ", flush=False)
elif matrix[row][element] == 2:
print(colored(matrix[row][element], "blue"), end=" ", flush=False)
else:
print(matrix[row][element], end=" ", flush=False)
print("")
print("")
# takes a screenshot
pyautogui.moveTo(338, 580, duration = 0)
pyautogui.hotkey('command', 'shift', '4')
pyautogui.dragTo(547, 1000, duration = 0, button = 'left')
| 37.8
| 91
| 0.398268
| 343
| 2,079
| 2.413994
| 0.172012
| 0.355072
| 0.514493
| 0.666667
| 0.421498
| 0.320048
| 0.320048
| 0.237923
| 0.237923
| 0.224638
| 0
| 0.184466
| 0.405483
| 2,079
| 54
| 92
| 38.5
| 0.485437
| 0.022607
| 0
| 0.333333
| 0
| 0
| 0.019714
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.083333
| 0
| 0.083333
| 0.145833
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e6c4f83ee3a07eb68063b52c122a3a5c692004c3
| 276
|
py
|
Python
|
hierarchical_app/views.py
|
stephken/Hierarchical_assessment
|
537219903357d97d1354a8f262badba9729fb5e0
|
[
"MIT"
] | null | null | null |
hierarchical_app/views.py
|
stephken/Hierarchical_assessment
|
537219903357d97d1354a8f262badba9729fb5e0
|
[
"MIT"
] | null | null | null |
hierarchical_app/views.py
|
stephken/Hierarchical_assessment
|
537219903357d97d1354a8f262badba9729fb5e0
|
[
"MIT"
] | null | null | null |
from django.shortcuts import render
from hierarchical_app.models import Folder
# Create your views here.
def index_view(request):
return render(request, 'index.html', {'welcome': "Welcome to Kens Hierarchical Data and You assessment", 'folders': Folder.objects.all()})
| 30.666667
| 142
| 0.764493
| 37
| 276
| 5.648649
| 0.783784
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 276
| 8
| 143
| 34.5
| 0.870833
| 0.083333
| 0
| 0
| 0
| 0
| 0.304
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.5
| 0.25
| 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
| 1
| 0
| 0
| 1
| 1
| 0
| 0
|
0
| 4
|
e6de80977f40faa2f17ffea735e4529c245402b4
| 320
|
py
|
Python
|
app/helpers/__init__.py
|
Hacker-1202/Selfium
|
7e798c23c9f24aacab6f6a485d6355f1045bc65c
|
[
"MIT"
] | 14
|
2021-11-05T11:27:25.000Z
|
2022-02-28T02:04:32.000Z
|
app/helpers/__init__.py
|
CssHammer/Selfium
|
7e798c23c9f24aacab6f6a485d6355f1045bc65c
|
[
"MIT"
] | 2
|
2022-01-24T22:00:44.000Z
|
2022-01-31T13:13:27.000Z
|
app/helpers/__init__.py
|
CssHammer/Selfium
|
7e798c23c9f24aacab6f6a485d6355f1045bc65c
|
[
"MIT"
] | 5
|
2022-01-02T13:33:17.000Z
|
2022-02-26T13:09:50.000Z
|
"""
Selfium Helper Files
~~~~~~~~~~~~~~~~~~~
All Helper Files used in Selfium project;
:copyright: (c) 2021 - Caillou and ZeusHay;
:license: MIT, see LICENSE for more details.
"""
from .getUser import *
from .getGuild import *
from .params import *
from .notify import *
from .sendEmbed import *
from .isStaff import *
| 21.333333
| 44
| 0.6875
| 41
| 320
| 5.365854
| 0.658537
| 0.227273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014925
| 0.1625
| 320
| 15
| 45
| 21.333333
| 0.80597
| 0.534375
| 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
|
e6f7da2b0c80534457eb53c6aaa04a6eb69ac541
| 2,562
|
py
|
Python
|
tests/test_try.py
|
threecifanggen/python-functional-programming
|
bd17281e5f24db826266f509bc54b25362c0d2a1
|
[
"MIT"
] | 3
|
2021-10-05T09:12:36.000Z
|
2021-11-30T07:11:58.000Z
|
tests/test_try.py
|
threecifanggen/python-functional-programming
|
bd17281e5f24db826266f509bc54b25362c0d2a1
|
[
"MIT"
] | 14
|
2021-10-11T05:31:15.000Z
|
2021-12-16T12:52:47.000Z
|
tests/test_try.py
|
threecifanggen/python-functional-programming
|
bd17281e5f24db826266f509bc54b25362c0d2a1
|
[
"MIT"
] | null | null | null |
'''
Author: huangbaochen<[email protected]>
Date: 2021-12-11 20:04:19
LastEditTime: 2021-12-11 21:46:16
LastEditors: huangbaochen<[email protected]>
Description: 测试Try单子
No MERCY
'''
import pytest
from fppy.try_monad import Try, Success, Fail
from fppy.option import Just, Nothing
@pytest.mark.try_monad
def test_try_apply():
assert Try.apply(1) == Success(1)
assert Try(1) == Success(1)
@pytest.mark.try_monad
def test_try_unapply():
assert Success.unapply(Success(1)) == Just(1)
assert Fail.unapply(Fail(TypeError(), 1)) == Nothing()
with pytest.raises(TypeError):
Fail.unapply(1)
with pytest.raises(TypeError):
Fail.unapply(Success(1))
with pytest.raises(TypeError):
Success.unapply(1)
with pytest.raises(TypeError):
Success.unapply(Fail(Exception(), 1))
def test_try_monad_map():
assert Success(1).map(lambda x: x + 1) == Success(2)
assert Success(1).map(lambda x: x / 0) ==\
Fail(ZeroDivisionError('division by zero'), 1)
assert Fail(ZeroDivisionError('division by zero'), 1)\
.map(lambda x: x + 1) ==\
Fail(ZeroDivisionError('division by zero'), 1)
@pytest.mark.try_monad
def test_try_monad_flat_map():
assert Success(1).flat_map(lambda x: Success(2)) == Success(2)
assert Fail(ZeroDivisionError('division by zero'), 1)\
.flat_map(lambda x: Success(1)) ==\
Fail(ZeroDivisionError('division by zero'), 1)
with pytest.raises(TypeError):
Success(1).flat_map(lambda x: x + 1)
@pytest.mark.try_monad
def test_try_monad_eq():
assert Fail(ZeroDivisionError('division by zero'), 1) ==\
Fail(ZeroDivisionError('division by zero'), 1)
assert Fail(ZeroDivisionError('division by'), 1) !=\
Fail(ZeroDivisionError('division by zero'), 1)
assert Fail(ZeroDivisionError('division by zero'), 0) !=\
Fail(ZeroDivisionError('division by zero'), 1)
@pytest.mark.try_monad
def test_try_monad_get():
assert Fail(ZeroDivisionError('division by zero'), 1)\
.get().args ==\
ZeroDivisionError('division by zero').args
assert Success(1).get() == 1
# pylint: disable=no-member
assert Try("s").get() == "s"
@pytest.mark.try_monad
def test_try_monad_get_or_else():
assert Fail(ZeroDivisionError('division by zero'), 1)\
.get_or_else(2) == 2
assert Success(1).get_or_else(2) == 1
@pytest.mark.try_monad
def test_try_monad_get_error_input():
assert Fail(ZeroDivisionError('division by zero'), 1)\
.get_error_input() == 1
| 29.790698
| 66
| 0.673692
| 352
| 2,562
| 4.778409
| 0.181818
| 0.222949
| 0.240785
| 0.258026
| 0.668252
| 0.656956
| 0.548751
| 0.381094
| 0.283591
| 0.241974
| 0
| 0.034828
| 0.181889
| 2,562
| 85
| 67
| 30.141176
| 0.767653
| 0.083138
| 0
| 0.396552
| 0
| 0
| 0.101239
| 0
| 0
| 0
| 0
| 0
| 0.310345
| 1
| 0.137931
| true
| 0
| 0.051724
| 0
| 0.189655
| 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
|
e6fa166658f7b4a5f652c93e09a1ac34583195f0
| 123
|
py
|
Python
|
src/789A.py
|
viing937/codeforces
|
d694eb6967cd56af02963c3a662066048cb78d07
|
[
"MIT"
] | 2
|
2016-08-19T09:47:03.000Z
|
2016-10-01T10:15:03.000Z
|
src/789A.py
|
viing937/codeforces
|
d694eb6967cd56af02963c3a662066048cb78d07
|
[
"MIT"
] | null | null | null |
src/789A.py
|
viing937/codeforces
|
d694eb6967cd56af02963c3a662066048cb78d07
|
[
"MIT"
] | 1
|
2015-07-01T23:57:32.000Z
|
2015-07-01T23:57:32.000Z
|
n, k = map(int, input().split())
w = list(map(int, input().split()))
r = sum(map(lambda x: (x+k-1)//k, w))
print((r+1)//2)
| 24.6
| 37
| 0.536585
| 26
| 123
| 2.538462
| 0.576923
| 0.181818
| 0.333333
| 0.484848
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028037
| 0.130081
| 123
| 4
| 38
| 30.75
| 0.588785
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.25
| 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
|
fc01125ff8253bbaef2b133518f03e3663e85d73
| 216
|
py
|
Python
|
main/models.py
|
yejun1060/SbjctSclctn
|
eca6a9d09cf81fce262ea58ca90e69ee5735ab16
|
[
"MIT"
] | null | null | null |
main/models.py
|
yejun1060/SbjctSclctn
|
eca6a9d09cf81fce262ea58ca90e69ee5735ab16
|
[
"MIT"
] | null | null | null |
main/models.py
|
yejun1060/SbjctSclctn
|
eca6a9d09cf81fce262ea58ca90e69ee5735ab16
|
[
"MIT"
] | 1
|
2021-06-08T17:41:42.000Z
|
2021-06-08T17:41:42.000Z
|
from django.db import models
class Account(models.Model):
clsNb = models.IntegerField()
Name = models.CharField(max_length=10)
pw = models.IntegerField()
def __str__(self):
return self.Name
| 21.6
| 42
| 0.689815
| 27
| 216
| 5.333333
| 0.740741
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011696
| 0.208333
| 216
| 10
| 43
| 21.6
| 0.830409
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0.142857
| 0.142857
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
fc165549752f98bd300323b664ce1555196f65d8
| 661
|
py
|
Python
|
pyblazing/__init__.py
|
Mattlk13/pyBlazing
|
5c3042c510ab17e9f9d1647e1873d3d04313d900
|
[
"Apache-2.0"
] | null | null | null |
pyblazing/__init__.py
|
Mattlk13/pyBlazing
|
5c3042c510ab17e9f9d1647e1873d3d04313d900
|
[
"Apache-2.0"
] | null | null | null |
pyblazing/__init__.py
|
Mattlk13/pyBlazing
|
5c3042c510ab17e9f9d1647e1873d3d04313d900
|
[
"Apache-2.0"
] | null | null | null |
from .api import run_query_get_token
from .api import convert_to_dask
from .api import run_query_get_results
from .api import run_query_get_concat_results
from .api import register_file_system
from .api import deregister_file_system
from .api import FileSystemType, DriverType, EncryptionType
from .api import SchemaFrom
from .api import create_table
from .api import ResultSetHandle
from .api import _get_client
from .api import gdf_dtype
from .api import get_dtype_values
from .api import get_np_dtype_to_gdf_dtype
from .api import SetupOrchestratorConnection
from .apiv2.context import make_default_orc_arg
from .apiv2.context import make_default_csv_arg
| 33.05
| 60
| 0.857791
| 104
| 661
| 5.134615
| 0.346154
| 0.196629
| 0.365169
| 0.089888
| 0.423221
| 0.258427
| 0
| 0
| 0
| 0
| 0
| 0.003401
| 0.110439
| 661
| 19
| 61
| 34.789474
| 0.904762
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
fc23560a0050cb2a7fdf80d872323f5e40124603
| 118
|
py
|
Python
|
myapp.py
|
dataholiks/flask_heroku_scheduler
|
d2b4c2c8fdee066aea729c1566bfbaf52c068557
|
[
"MIT"
] | 7
|
2019-03-20T01:48:42.000Z
|
2021-07-02T15:51:36.000Z
|
myapp.py
|
dataholiks/flask_heroku_scheduler
|
d2b4c2c8fdee066aea729c1566bfbaf52c068557
|
[
"MIT"
] | null | null | null |
myapp.py
|
dataholiks/flask_heroku_scheduler
|
d2b4c2c8fdee066aea729c1566bfbaf52c068557
|
[
"MIT"
] | 1
|
2020-09-17T06:36:24.000Z
|
2020-09-17T06:36:24.000Z
|
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'This is the app index page.'
| 14.75
| 40
| 0.669492
| 18
| 118
| 4.166667
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.194915
| 118
| 7
| 41
| 16.857143
| 0.789474
| 0
| 0
| 0
| 0
| 0
| 0.237288
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.6
| 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
|
fc3233cb1459781c899740baf647a5f25ec92581
| 541
|
py
|
Python
|
transformers/string/strlen_transformer.py
|
ucds-sg/h2oai
|
7042860767dc25d1a7d7122103bbd5016d02df53
|
[
"Apache-2.0"
] | null | null | null |
transformers/string/strlen_transformer.py
|
ucds-sg/h2oai
|
7042860767dc25d1a7d7122103bbd5016d02df53
|
[
"Apache-2.0"
] | null | null | null |
transformers/string/strlen_transformer.py
|
ucds-sg/h2oai
|
7042860767dc25d1a7d7122103bbd5016d02df53
|
[
"Apache-2.0"
] | null | null | null |
"""Returns the string length of categorical values"""
from h2oaicore.transformer_utils import CustomTransformer
import datatable as dt
import numpy as np
class MyStrLenEncoderTransformer(CustomTransformer):
@staticmethod
def get_default_properties():
return dict(col_type="any", min_cols=1, max_cols=1, relative_importance=1)
def fit_transform(self, X: dt.Frame, y: np.array = None):
return self.transform(X)
def transform(self, X: dt.Frame):
return X.to_pandas().astype(str).iloc[:, 0].str.len()
| 31.823529
| 82
| 0.724584
| 74
| 541
| 5.175676
| 0.689189
| 0.02611
| 0.073107
| 0.083551
| 0.109661
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011086
| 0.166359
| 541
| 16
| 83
| 33.8125
| 0.838137
| 0.086876
| 0
| 0
| 0
| 0
| 0.006148
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.272727
| false
| 0
| 0.363636
| 0.272727
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
fc34bcbcfb8ac1f6bc09817c52d24607717e7ad1
| 235
|
py
|
Python
|
geometry/eolearn/geometry/__init__.py
|
eerzin/eo-learn
|
53c5cc229de13b98b5778aeb1d45950c25bf2f95
|
[
"MIT"
] | 1
|
2019-04-12T09:03:52.000Z
|
2019-04-12T09:03:52.000Z
|
geometry/eolearn/geometry/__init__.py
|
eerzin/eo-learn
|
53c5cc229de13b98b5778aeb1d45950c25bf2f95
|
[
"MIT"
] | null | null | null |
geometry/eolearn/geometry/__init__.py
|
eerzin/eo-learn
|
53c5cc229de13b98b5778aeb1d45950c25bf2f95
|
[
"MIT"
] | 3
|
2019-05-03T09:43:57.000Z
|
2019-09-10T17:29:39.000Z
|
"""
Subpackage containing EOTasks for geometrical transformations
"""
from .utilities import ErosionTask, VectorToRaster, RasterToVector
from .sampling import PointSamplingTask, PointSampler, PointRasterSampler
__version__ = '0.4.2'
| 26.111111
| 73
| 0.821277
| 22
| 235
| 8.590909
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014286
| 0.106383
| 235
| 8
| 74
| 29.375
| 0.885714
| 0.259574
| 0
| 0
| 0
| 0
| 0.03012
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
fc82e467705d5e2af949a070febf617a72de9774
| 152
|
py
|
Python
|
setup.py
|
mvduin/py-uio
|
1ad5eb6e1cfeae722535fd6ed7e485a0afd84683
|
[
"MIT"
] | 38
|
2016-04-23T06:43:00.000Z
|
2022-03-17T17:06:59.000Z
|
setup.py
|
mvduin/py-uio
|
1ad5eb6e1cfeae722535fd6ed7e485a0afd84683
|
[
"MIT"
] | 6
|
2016-05-13T04:42:38.000Z
|
2020-10-16T13:16:02.000Z
|
setup.py
|
mvduin/py-uio
|
1ad5eb6e1cfeae722535fd6ed7e485a0afd84683
|
[
"MIT"
] | 8
|
2016-05-11T16:56:07.000Z
|
2019-09-11T09:54:22.000Z
|
#!/usr/bin/python3
from setuptools import setup, find_packages
setup(
package_dir = { '': 'src' },
packages = find_packages( where='src' ),
)
| 16.888889
| 44
| 0.651316
| 18
| 152
| 5.333333
| 0.722222
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00813
| 0.190789
| 152
| 8
| 45
| 19
| 0.772358
| 0.111842
| 0
| 0
| 0
| 0
| 0.044776
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.2
| 0
| 0.2
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fc9015f57ef9e7d95a77ff43b17dddea2b3da5aa
| 698
|
py
|
Python
|
tavi/test/unit/base/document_no_fields_test.py
|
verdammelt/tavi
|
3bb39a6e6ab936f6e9511a4058817697e3df098b
|
[
"MIT"
] | null | null | null |
tavi/test/unit/base/document_no_fields_test.py
|
verdammelt/tavi
|
3bb39a6e6ab936f6e9511a4058817697e3df098b
|
[
"MIT"
] | null | null | null |
tavi/test/unit/base/document_no_fields_test.py
|
verdammelt/tavi
|
3bb39a6e6ab936f6e9511a4058817697e3df098b
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import unittest
from tavi.base.documents import BaseDocument
class BaseDocumentNoFieldsTest(unittest.TestCase):
class NoFieldsSample(BaseDocument):
pass
def setUp(self):
super(BaseDocumentNoFieldsTest, self).setUp()
self.no_fields_sample = self.NoFieldsSample()
def test_get_fields(self):
self.assertEqual([], self.no_fields_sample.fields)
def test_get_errors(self):
self.assertEqual(0, self.no_fields_sample.errors.count)
def test_valid(self):
self.assertEqual(True, self.no_fields_sample.valid)
def test_get_field_values(self):
self.assertEqual({}, self.no_fields_sample.field_values)
| 27.92
| 64
| 0.7149
| 84
| 698
| 5.714286
| 0.380952
| 0.0625
| 0.125
| 0.1875
| 0.154167
| 0.154167
| 0.154167
| 0
| 0
| 0
| 0
| 0.003497
| 0.180516
| 698
| 24
| 65
| 29.083333
| 0.835664
| 0.030086
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.3125
| false
| 0.0625
| 0.125
| 0
| 0.5625
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
fc9f46c8893676c05776e06d3412234d7de6b4e4
| 311
|
py
|
Python
|
shared/templates/coreos_kernel_option/template.py
|
deperrone/content
|
caaff27f01a1d6c15da461f9fafe26090e8fdd18
|
[
"BSD-3-Clause"
] | 1,138
|
2018-09-05T06:31:44.000Z
|
2022-03-31T03:38:24.000Z
|
shared/templates/coreos_kernel_option/template.py
|
deperrone/content
|
caaff27f01a1d6c15da461f9fafe26090e8fdd18
|
[
"BSD-3-Clause"
] | 4,743
|
2018-09-04T15:14:04.000Z
|
2022-03-31T23:17:57.000Z
|
shared/templates/coreos_kernel_option/template.py
|
deperrone/content
|
caaff27f01a1d6c15da461f9fafe26090e8fdd18
|
[
"BSD-3-Clause"
] | 400
|
2018-09-08T20:08:49.000Z
|
2022-03-30T20:54:32.000Z
|
from ssg.utils import parse_template_boolean_value
def preprocess(data, lang):
data["arg_negate"] = parse_template_boolean_value(data, parameter="arg_negate", default_value=False)
data["arg_is_regex"] = parse_template_boolean_value(data, parameter="arg_is_regex", default_value=False)
return data
| 38.875
| 108
| 0.794212
| 44
| 311
| 5.227273
| 0.454545
| 0.169565
| 0.26087
| 0.326087
| 0.356522
| 0.356522
| 0.356522
| 0
| 0
| 0
| 0
| 0
| 0.106109
| 311
| 7
| 109
| 44.428571
| 0.827338
| 0
| 0
| 0
| 0
| 0
| 0.141479
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0
| 0.6
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
fca1f7c596dc848fb292eeb62a44200456a36f90
| 596
|
py
|
Python
|
bdbc/lib/python3.5/site-packages/bigchaindb_driver/crypto.py
|
entropyx/fiduchain-blockchain-interface
|
07336a5eebfaa9cddb148edb94461a8fd57562b1
|
[
"MIT"
] | null | null | null |
bdbc/lib/python3.5/site-packages/bigchaindb_driver/crypto.py
|
entropyx/fiduchain-blockchain-interface
|
07336a5eebfaa9cddb148edb94461a8fd57562b1
|
[
"MIT"
] | null | null | null |
bdbc/lib/python3.5/site-packages/bigchaindb_driver/crypto.py
|
entropyx/fiduchain-blockchain-interface
|
07336a5eebfaa9cddb148edb94461a8fd57562b1
|
[
"MIT"
] | null | null | null |
from collections import namedtuple
from cryptoconditions import crypto
CryptoKeypair = namedtuple('CryptoKeypair', ('signing_key', 'verifying_key'))
def generate_keypair():
"""Generates a cryptographic key pair.
Returns:
:class:`~bigchaindb_driver.crypto.CryptoKeypair`: A
:obj:`collections.namedtuple` with named fields
:attr:`~bigchaindb_driver.crypto.CryptoKeypair.signing_key` and
:attr:`~bigchaindb_driver.crypto.CryptoKeypair.verifying_key`.
"""
return CryptoKeypair(
*(k.decode() for k in crypto.ed25519_generate_key_pair()))
| 28.380952
| 77
| 0.721477
| 63
| 596
| 6.650794
| 0.52381
| 0.181384
| 0.157518
| 0.250597
| 0.186158
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010101
| 0.169463
| 596
| 20
| 78
| 29.8
| 0.836364
| 0.483221
| 0
| 0
| 1
| 0
| 0.134058
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
5d84d543ecd3e19e8c3f8af82dd1e6cc5ea16443
| 88
|
py
|
Python
|
meeting.py
|
zoni/ulauncher-meet
|
1b76627c69dfc539645acd27e30c9b8fd8fe08ae
|
[
"MIT"
] | 4
|
2021-04-30T21:39:03.000Z
|
2021-08-30T11:38:21.000Z
|
meeting.py
|
zoni/ulauncher-meet
|
1b76627c69dfc539645acd27e30c9b8fd8fe08ae
|
[
"MIT"
] | 1
|
2021-05-31T11:05:37.000Z
|
2021-05-31T11:05:37.000Z
|
meeting.py
|
zoni/ulauncher-meet
|
1b76627c69dfc539645acd27e30c9b8fd8fe08ae
|
[
"MIT"
] | 2
|
2021-05-07T09:47:20.000Z
|
2021-08-25T16:27:24.000Z
|
from dataclasses import dataclass
@dataclass
class Meeting:
name: str
id: str
| 11
| 33
| 0.715909
| 11
| 88
| 5.727273
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.238636
| 88
| 7
| 34
| 12.571429
| 0.940299
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.2
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
5d8ca67bf97053442519e2fbb8cf359ecbb33654
| 228
|
py
|
Python
|
djangomail/backends/dummy.py
|
somenzz/djangomail
|
7d4f833cd71289a51eb935757d8b628e9c9f8aa1
|
[
"MIT"
] | 1
|
2021-06-01T07:51:18.000Z
|
2021-06-01T07:51:18.000Z
|
djangomail/backends/dummy.py
|
somenzz/djangomail
|
7d4f833cd71289a51eb935757d8b628e9c9f8aa1
|
[
"MIT"
] | null | null | null |
djangomail/backends/dummy.py
|
somenzz/djangomail
|
7d4f833cd71289a51eb935757d8b628e9c9f8aa1
|
[
"MIT"
] | 1
|
2022-01-24T13:38:14.000Z
|
2022-01-24T13:38:14.000Z
|
"""
Dummy email backend that does nothing.
"""
from djangomail.backends.base import BaseEmailBackend
class EmailBackend(BaseEmailBackend):
def send_messages(self, email_messages):
return len(list(email_messages))
| 20.727273
| 53
| 0.763158
| 26
| 228
| 6.576923
| 0.807692
| 0.152047
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.149123
| 228
| 10
| 54
| 22.8
| 0.881443
| 0.166667
| 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
| 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
|
5d8e73966f8c10521ed6c383e9307e6cc3d33a3d
| 612
|
py
|
Python
|
Applications/FlaskApp/errorpages.py
|
cemac-ccs/FlaskMWE
|
e8ce3cbca0d402bd9fdb1feb10290f2e7b11907b
|
[
"MIT"
] | null | null | null |
Applications/FlaskApp/errorpages.py
|
cemac-ccs/FlaskMWE
|
e8ce3cbca0d402bd9fdb1feb10290f2e7b11907b
|
[
"MIT"
] | null | null | null |
Applications/FlaskApp/errorpages.py
|
cemac-ccs/FlaskMWE
|
e8ce3cbca0d402bd9fdb1feb10290f2e7b11907b
|
[
"MIT"
] | null | null | null |
from flask import render_template
# Error Pages ----------------------------------------------------------------
def page_not_found(e):
# note that we set the 404 status explicitly
return render_template('404.html.j2'), 404
def page_not_allowed(e):
# note that we set the 403 status explicitly
return render_template('403.html.j2'), 403
def internal_error(error):
app.logger.error('Server Error: %s', (error))
return render_template('500.html.j2'), 500
def unhandled_exception(e):
app.logger.error('Unhandled Exception: %s', (e))
return render_template('500.html.j2'), 501
| 27.818182
| 78
| 0.637255
| 83
| 612
| 4.566265
| 0.409639
| 0.184697
| 0.211082
| 0.058047
| 0.432718
| 0.242744
| 0
| 0
| 0
| 0
| 0
| 0.065511
| 0.151961
| 612
| 21
| 79
| 29.142857
| 0.66474
| 0.264706
| 0
| 0
| 0
| 0
| 0.186099
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.363636
| false
| 0
| 0.090909
| 0.181818
| 0.818182
| 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
|
5db477aeb7079f4d5d6c834082c575659d075877
| 161
|
py
|
Python
|
groups/admin.py
|
caktus/rapidsms-groups
|
eda6f30cdc60cf57833f1d37ba08e59454da8987
|
[
"BSD-3-Clause"
] | 1
|
2016-06-19T07:34:19.000Z
|
2016-06-19T07:34:19.000Z
|
groups/admin.py
|
caktus/rapidsms-groups
|
eda6f30cdc60cf57833f1d37ba08e59454da8987
|
[
"BSD-3-Clause"
] | null | null | null |
groups/admin.py
|
caktus/rapidsms-groups
|
eda6f30cdc60cf57833f1d37ba08e59454da8987
|
[
"BSD-3-Clause"
] | 1
|
2016-08-31T05:02:03.000Z
|
2016-08-31T05:02:03.000Z
|
#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8
from django.contrib import admin
from groups.models import Group
admin.site.register(Group)
| 17.888889
| 43
| 0.751553
| 30
| 161
| 4.033333
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028777
| 0.136646
| 161
| 8
| 44
| 20.125
| 0.841727
| 0.385093
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
5db982ba2f19c2538b3617256ac0549d6c262bb1
| 84
|
py
|
Python
|
icfs/filesystem/exceptions.py
|
bhanupratapjain/icfs
|
44a2d5baadbc31bfebb931d713b426d22aabd969
|
[
"MIT"
] | null | null | null |
icfs/filesystem/exceptions.py
|
bhanupratapjain/icfs
|
44a2d5baadbc31bfebb931d713b426d22aabd969
|
[
"MIT"
] | null | null | null |
icfs/filesystem/exceptions.py
|
bhanupratapjain/icfs
|
44a2d5baadbc31bfebb931d713b426d22aabd969
|
[
"MIT"
] | null | null | null |
class ICFSError(IOError):
"""Error while making any filesystem API requests."""
| 28
| 57
| 0.72619
| 10
| 84
| 6.1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.154762
| 84
| 2
| 58
| 42
| 0.859155
| 0.559524
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
5de5717649c5fb1c3b234920122bfea85236921f
| 1,068
|
py
|
Python
|
tasks/migrations/0005_auto_20200616_0123.py
|
tschelbs18/fruitful
|
66635cd521ffc0990275e32298419bfc2167b90b
|
[
"MIT"
] | null | null | null |
tasks/migrations/0005_auto_20200616_0123.py
|
tschelbs18/fruitful
|
66635cd521ffc0990275e32298419bfc2167b90b
|
[
"MIT"
] | 4
|
2020-06-04T14:20:33.000Z
|
2021-09-22T19:09:22.000Z
|
tasks/migrations/0005_auto_20200616_0123.py
|
tschelbs18/fruitful
|
66635cd521ffc0990275e32298419bfc2167b90b
|
[
"MIT"
] | null | null | null |
# Generated by Django 3.0.7 on 2020-06-16 05:23
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('tasks', '0004_auto_20200616_0116'),
]
operations = [
migrations.AddField(
model_name='userreward',
name='created_dt',
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
preserve_default=False,
),
migrations.AddField(
model_name='userreward',
name='last_updated_dt',
field=models.DateTimeField(auto_now=True),
),
migrations.AddField(
model_name='usertask',
name='created_dt',
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
preserve_default=False,
),
migrations.AddField(
model_name='usertask',
name='last_updated_dt',
field=models.DateTimeField(auto_now=True),
),
]
| 28.864865
| 93
| 0.601124
| 109
| 1,068
| 5.697248
| 0.412844
| 0.115942
| 0.148148
| 0.173913
| 0.721417
| 0.721417
| 0.57649
| 0.57649
| 0.57649
| 0.57649
| 0
| 0.041005
| 0.292135
| 1,068
| 36
| 94
| 29.666667
| 0.780423
| 0.042135
| 0
| 0.733333
| 1
| 0
| 0.111655
| 0.022527
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.066667
| 0
| 0.166667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b90a40f6dda56faee8a822969d3d8c8da41382ab
| 99
|
py
|
Python
|
stlearn/__init__.py
|
mrahim/stacked-learn
|
b04b49f65f06de7f5b59ba4139b0f78f8d66d94a
|
[
"BSD-3-Clause"
] | 2
|
2017-05-23T18:06:53.000Z
|
2017-08-18T19:03:04.000Z
|
stlearn/__init__.py
|
mrahim/stacked-learn
|
b04b49f65f06de7f5b59ba4139b0f78f8d66d94a
|
[
"BSD-3-Clause"
] | 7
|
2017-03-14T15:56:20.000Z
|
2017-05-18T08:28:44.000Z
|
stlearn/__init__.py
|
mrahim/stacked-learn
|
b04b49f65f06de7f5b59ba4139b0f78f8d66d94a
|
[
"BSD-3-Clause"
] | 1
|
2018-10-05T08:07:44.000Z
|
2018-10-05T08:07:44.000Z
|
from .stacking import StackingClassifier, stack_features
from .multitask import MultiTaskEstimator
| 33
| 56
| 0.878788
| 10
| 99
| 8.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 99
| 2
| 57
| 49.5
| 0.955556
| 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
|
f8ed824436e6201a95f5e3c52f9d1d1dd87092b2
| 24
|
py
|
Python
|
data/studio21_generated/interview/1657/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/interview/1657/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/interview/1657/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
def string_func(s, n):
| 12
| 22
| 0.666667
| 5
| 24
| 3
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 24
| 2
| 23
| 12
| 0.75
| 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
|
f8ff164c7b99d263ef5622eb983cd4b6a79fdda1
| 863
|
py
|
Python
|
firefly_flask/app/models.py
|
Haehnchen/trivago-firefly
|
ee92450fda42059f1865971849dc234a42dc9027
|
[
"MIT"
] | null | null | null |
firefly_flask/app/models.py
|
Haehnchen/trivago-firefly
|
ee92450fda42059f1865971849dc234a42dc9027
|
[
"MIT"
] | null | null | null |
firefly_flask/app/models.py
|
Haehnchen/trivago-firefly
|
ee92450fda42059f1865971849dc234a42dc9027
|
[
"MIT"
] | null | null | null |
from . import db
from sqlalchemy.dialects.mysql import LONGTEXT
class Search(db.Model):
__tablename__ = 'spots'
id = db.Column(db.Integer, primary_key=True)
search_string = db.Column(db.Text)
lat = db.Column(db.Float)
lon = db.Column(db.Float)
location_name = db.Column(db.Text)
json_result = db.Column(LONGTEXT)
class Photo(db.Model):
__tablename__ = 'photos'
id = db.Column(db.Integer, primary_key=True)
spotname = db.Column(db.Text)
source_id = db.Column(db.Text)
latitude = db.Column(db.Float)
longitude = db.Column(db.Float)
tags = db.Column(db.Text)
views = db.Column(db.Integer)
favourites = db.Column(db.Integer)
comments = db.Column(db.Integer)
username = db.Column(db.Text)
photo_url = db.Column(db.Text)
search_id = db.Column(db.ForeignKey(Search.id),nullable=False)
| 28.766667
| 66
| 0.682503
| 126
| 863
| 4.547619
| 0.333333
| 0.251309
| 0.296684
| 0.17103
| 0.115183
| 0.115183
| 0.115183
| 0.115183
| 0
| 0
| 0
| 0
| 0.184241
| 863
| 29
| 67
| 29.758621
| 0.81392
| 0
| 0
| 0.083333
| 0
| 0
| 0.012791
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.083333
| 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
|
5d0806edbac94be1802c588fc12c4cc3d74c7198
| 1,673
|
py
|
Python
|
source/188-Lista_celulares.py
|
FelixLuciano/DesSoft-2020.2
|
a44063d63778329f1e1266881f20f7954ecb528b
|
[
"MIT"
] | null | null | null |
source/188-Lista_celulares.py
|
FelixLuciano/DesSoft-2020.2
|
a44063d63778329f1e1266881f20f7954ecb528b
|
[
"MIT"
] | null | null | null |
source/188-Lista_celulares.py
|
FelixLuciano/DesSoft-2020.2
|
a44063d63778329f1e1266881f20f7954ecb528b
|
[
"MIT"
] | null | null | null |
# Lista celulares
# O departamento de marketing da sua empresa está interessado em obter apenas os números de telefone celular, separando-os dos telefones fixos. Para simplificar esta operação serão considerados números de celular apenas aqueles que, após o código de área, iniciarem com o dígito adicional 9.
# Você recebeu a tarefa de obter uma lista com os números de celular, sem o código de área. Entretanto, o cadastro de telefones do departamento de marketing não está padronizado e existem números seguindo 3 formatos distintos:
# 1. Números completos (13 ou 14 caracteres), incluindo o código do país (+55) e o código de área (ex: 11). Exemplos: '+5511912345678' ou '+551133334444' (note que ambos começam com o caractere '+');
# 2. Número contendo apenas o código de área (10 ou 11 caracteres). Exemplos: '11987654321' ou '1155556666';
# 3. Número sem código de área (8 ou 9 caracteres). Exemplos: '918273645' ou '77778888'.
# Note que em todos os casos, o primeiro exemplo é um número de celular e o segundo não.
# Faça uma função que recebe uma lista de números de telefone e devolve uma lista contendo apenas os telefones celulares. Cada telefone da lista de entrada (recebida como argumento da sua função) pode estar em qualquer um dos 3 formatos acima. Os telefones da lista de saída (retornada pela sua função) devem conter apenas os dígitos do telefone, removendo o código do país e código de área se for necessário.
# Exemplo: a chamada lista_celulares(['+5511912345678', '1155556666', '77778888', '+551133334444', '918273645', '11987654321']) deve retornar a lista ['912345678', '918273645', '987654321']
# O nome da sua função deve ser lista_celulares.
| 152.090909
| 409
| 0.775254
| 260
| 1,673
| 4.980769
| 0.457692
| 0.032432
| 0.055598
| 0.040154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123044
| 0.159594
| 1,673
| 10
| 410
| 167.3
| 0.798009
| 0.987448
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0.1
| null | 1
| null | true
| 0
| 0
| null | null | null | 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5d12b1edae2081b00e12d5653d2750d5567eb062
| 211
|
py
|
Python
|
users/apps.py
|
srinidhibhat/booknotes
|
666f92fac309b97c13b79e91f5493220f934cab3
|
[
"MIT"
] | null | null | null |
users/apps.py
|
srinidhibhat/booknotes
|
666f92fac309b97c13b79e91f5493220f934cab3
|
[
"MIT"
] | 2
|
2020-08-11T07:23:21.000Z
|
2020-08-11T07:26:41.000Z
|
users/apps.py
|
srinidhibhat/booknotes-DjangoProject
|
666f92fac309b97c13b79e91f5493220f934cab3
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'users'
# below piece of code is needed for automatic profile creation for user
def ready(self):
import users.signals
| 23.444444
| 75
| 0.71564
| 28
| 211
| 5.392857
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.227488
| 211
| 8
| 76
| 26.375
| 0.92638
| 0.327014
| 0
| 0
| 0
| 0
| 0.035714
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 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
|
5d190891c7c8c6ae88bd8b11a4958d94ac97d775
| 129
|
py
|
Python
|
easyquant/login/__init__.py
|
CharlieZhao95/easy-quant
|
9df126433e27d92eced9b087e581b5fd66c5a400
|
[
"Apache-2.0"
] | null | null | null |
easyquant/login/__init__.py
|
CharlieZhao95/easy-quant
|
9df126433e27d92eced9b087e581b5fd66c5a400
|
[
"Apache-2.0"
] | 2
|
2022-01-26T15:50:37.000Z
|
2022-03-30T14:08:36.000Z
|
easyquant/login/__init__.py
|
CharlieZhao95/easy-quant
|
9df126433e27d92eced9b087e581b5fd66c5a400
|
[
"Apache-2.0"
] | null | null | null |
# @Time : 2022/1/26 23:07
# @Author : zhaoyu
# @Site :
# @File : __init__.py.py
# @Software: PyCharm
# @Note : xx
| 21.5
| 29
| 0.527132
| 17
| 129
| 3.764706
| 0.941176
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.120879
| 0.294574
| 129
| 6
| 30
| 21.5
| 0.582418
| 0.906977
| 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
|
5d356088cb332b6a1cde85497c82874f1681387b
| 20
|
py
|
Python
|
sitetree/__init__.py
|
sitkatech/django-sitetree
|
5d7e9d503f97ff021c5c04855e04e098b3d2488c
|
[
"BSD-3-Clause"
] | 3
|
2019-02-12T01:58:42.000Z
|
2019-06-08T10:50:33.000Z
|
sitetree/__init__.py
|
sitkatech/django-sitetree
|
5d7e9d503f97ff021c5c04855e04e098b3d2488c
|
[
"BSD-3-Clause"
] | null | null | null |
sitetree/__init__.py
|
sitkatech/django-sitetree
|
5d7e9d503f97ff021c5c04855e04e098b3d2488c
|
[
"BSD-3-Clause"
] | null | null | null |
VERSION = (0, 9, 5)
| 10
| 19
| 0.5
| 4
| 20
| 2.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0.25
| 20
| 1
| 20
| 20
| 0.466667
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
5d3a6779a16e847e6ab8367c806b8cd0393b9b7c
| 160
|
py
|
Python
|
__temp/examples/rhino/mesh-stanford-dragon.py
|
robin-gdwl/examples_topop-desc
|
3a10dfc891c3e6998029c7baf8a5a7a501870fe2
|
[
"MIT"
] | null | null | null |
__temp/examples/rhino/mesh-stanford-dragon.py
|
robin-gdwl/examples_topop-desc
|
3a10dfc891c3e6998029c7baf8a5a7a501870fe2
|
[
"MIT"
] | null | null | null |
__temp/examples/rhino/mesh-stanford-dragon.py
|
robin-gdwl/examples_topop-desc
|
3a10dfc891c3e6998029c7baf8a5a7a501870fe2
|
[
"MIT"
] | 1
|
2022-01-16T02:32:43.000Z
|
2022-01-16T02:32:43.000Z
|
import compas
import compas_rhino
from compas.datastructures import Mesh
mesh = Mesh.from_ply(compas.get('stanford_dragon.ply'))
compas_rhino.mesh_draw(mesh)
| 20
| 55
| 0.825
| 24
| 160
| 5.291667
| 0.458333
| 0.188976
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0875
| 160
| 7
| 56
| 22.857143
| 0.869863
| 0
| 0
| 0
| 0
| 0
| 0.11875
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.6
| 0
| 0.6
| 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
|
53a95c744ad18d63a19b3fc856fe6442690ea1c8
| 54
|
py
|
Python
|
Numpy/tempCodeRunnerFile.py
|
zharmedia386/Data-Science-Stuff
|
40183c329e3b30c582c545c260ca7916f29e2f09
|
[
"MIT"
] | null | null | null |
Numpy/tempCodeRunnerFile.py
|
zharmedia386/Data-Science-Stuff
|
40183c329e3b30c582c545c260ca7916f29e2f09
|
[
"MIT"
] | null | null | null |
Numpy/tempCodeRunnerFile.py
|
zharmedia386/Data-Science-Stuff
|
40183c329e3b30c582c545c260ca7916f29e2f09
|
[
"MIT"
] | null | null | null |
print(b)
print(c)
print(d)
print(e)
print(f)
print(g)
| 7.714286
| 8
| 0.666667
| 12
| 54
| 3
| 0.583333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 54
| 7
| 9
| 7.714286
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
53d609582a8fdb847888342336e2fc62ce309ea0
| 159
|
py
|
Python
|
150-Challenges/Challenges 80 - 87/Challenge 84.py
|
DGrifferty/Python
|
d725301664db2cbcfd5c4f5974745b4d81c8e28a
|
[
"Apache-2.0"
] | null | null | null |
150-Challenges/Challenges 80 - 87/Challenge 84.py
|
DGrifferty/Python
|
d725301664db2cbcfd5c4f5974745b4d81c8e28a
|
[
"Apache-2.0"
] | null | null | null |
150-Challenges/Challenges 80 - 87/Challenge 84.py
|
DGrifferty/Python
|
d725301664db2cbcfd5c4f5974745b4d81c8e28a
|
[
"Apache-2.0"
] | null | null | null |
# 084
# Ask the user to type in their postcode.Display the first two
# letters in uppercase.
# very simple
print(input('Enter your postcode: ')[0:2].upper())
| 22.714286
| 62
| 0.716981
| 26
| 159
| 4.384615
| 0.884615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037594
| 0.163522
| 159
| 7
| 63
| 22.714286
| 0.819549
| 0.616352
| 0
| 0
| 0
| 0
| 0.368421
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
99096743e56d22ad0a53c9983c2e48c412dd1c0f
| 890
|
py
|
Python
|
test/tests/import_test.py
|
jmgc/pyston
|
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
|
[
"BSD-2-Clause",
"Apache-2.0"
] | 1
|
2020-02-06T14:28:45.000Z
|
2020-02-06T14:28:45.000Z
|
test/tests/import_test.py
|
jmgc/pyston
|
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
|
[
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null |
test/tests/import_test.py
|
jmgc/pyston
|
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
|
[
"BSD-2-Clause",
"Apache-2.0"
] | 1
|
2020-02-06T14:29:00.000Z
|
2020-02-06T14:29:00.000Z
|
import import_target
print import_target.x
import import_target
import_target.foo()
c = import_target.C()
print import_target.import_nested_target.y
import_target.import_nested_target.bar()
d = import_target.import_nested_target.D()
print "testing importfrom:"
from import_target import x as z
print z
import_nested_target = 15
from import_nested_target import y
print "This should still be 15:",import_nested_target
import import_nested_target
print import_nested_target.__name__
print import_nested_target.y
import_target.import_nested_target.y = import_nested_target.y + 1
print import_nested_target.y
print z
print y
print __name__
print __import__("import_target") is import_target
import sys
import _multiprocessing
del _multiprocessing
del sys.modules["_multiprocessing"]
import _multiprocessing
import time
del time
del sys.modules["time"]
import time
print time.sleep(0)
| 20.227273
| 65
| 0.837079
| 137
| 890
| 5.058394
| 0.218978
| 0.207792
| 0.311688
| 0.137085
| 0.253968
| 0.168831
| 0.168831
| 0.141414
| 0.141414
| 0
| 0
| 0.007528
| 0.104494
| 890
| 43
| 66
| 20.697674
| 0.861982
| 0
| 0
| 0.30303
| 0
| 0
| 0.085393
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.727273
| null | null | 0.393939
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
54ca6e875f242dc42891ee212f00bf7ca42878a5
| 182
|
py
|
Python
|
rdmo/options/apps.py
|
Raspeanut/rdmo
|
9f785010a499c372a2f8368ccf76d2ea4150adcb
|
[
"Apache-2.0"
] | 1
|
2021-12-13T16:32:25.000Z
|
2021-12-13T16:32:25.000Z
|
rdmo/options/apps.py
|
Raspeanut/rdmo
|
9f785010a499c372a2f8368ccf76d2ea4150adcb
|
[
"Apache-2.0"
] | null | null | null |
rdmo/options/apps.py
|
Raspeanut/rdmo
|
9f785010a499c372a2f8368ccf76d2ea4150adcb
|
[
"Apache-2.0"
] | 1
|
2021-05-20T09:31:49.000Z
|
2021-05-20T09:31:49.000Z
|
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class OptionsConfig(AppConfig):
name = 'rdmo.options'
verbose_name = _('Options')
| 22.75
| 55
| 0.763736
| 22
| 182
| 6.136364
| 0.727273
| 0.148148
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 182
| 7
| 56
| 26
| 0.876623
| 0
| 0
| 0
| 0
| 0
| 0.104396
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 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
|
0713544bf0325f76443f346f91d5551b3d2799f3
| 393
|
py
|
Python
|
chue/utils.py
|
naren-m/chue
|
6f77ad990c911353524c5c99bcf6e30155edaf97
|
[
"MIT"
] | null | null | null |
chue/utils.py
|
naren-m/chue
|
6f77ad990c911353524c5c99bcf6e30155edaf97
|
[
"MIT"
] | null | null | null |
chue/utils.py
|
naren-m/chue
|
6f77ad990c911353524c5c99bcf6e30155edaf97
|
[
"MIT"
] | null | null | null |
import json
from pygments import highlight
from pygments.lexers import JsonLexer
from pygments.formatters import TerminalFormatter
def print_json_obj(json_object):
json_str = json.dumps(json_object, indent=4, sort_keys=True)
print(highlight(json_str, JsonLexer(), TerminalFormatter()))
def print_json_str(json_str):
print(highlight(json_str, JsonLexer(), TerminalFormatter()))
| 28.071429
| 64
| 0.793893
| 51
| 393
| 5.901961
| 0.392157
| 0.116279
| 0.166113
| 0.192691
| 0.312292
| 0.312292
| 0
| 0
| 0
| 0
| 0
| 0.002874
| 0.114504
| 393
| 13
| 65
| 30.230769
| 0.862069
| 0
| 0
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.444444
| 0
| 0.666667
| 0.444444
| 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
| 1
| 0
| 0
| 1
|
0
| 4
|
071a7e610b94fdc4f5c933fd228639d190c83b96
| 3,650
|
py
|
Python
|
build/lib/dataaccess/TransactionRepository.py
|
athanikos/cryptodataaccess
|
6189a44c65a9b03c02822a534e865740ab488809
|
[
"MIT"
] | null | null | null |
build/lib/dataaccess/TransactionRepository.py
|
athanikos/cryptodataaccess
|
6189a44c65a9b03c02822a534e865740ab488809
|
[
"MIT"
] | null | null | null |
build/lib/dataaccess/TransactionRepository.py
|
athanikos/cryptodataaccess
|
6189a44c65a9b03c02822a534e865740ab488809
|
[
"MIT"
] | null | null | null |
from cryptomodel.cryptostore import user_notification, user_channel, user_transaction, operation_type
from mongoengine import Q
from cryptodataaccess import helpers
from cryptodataaccess.helpers import if_none_raise, if_none_raise_with_id
class TransactionRepository:
def __init__(self, config, log_error):
self.configuration = config
self.log_error = log_error
def fetch_transaction(self, id):
return helpers.server_time_out_wrapper(self, self.do_fetch_transaction, id)
def fetch_transactions(self, user_id):
return helpers.server_time_out_wrapper(self, self.do_fetch_transactions, user_id)
def fetch_transactions(self, user_id):
return helpers.server_time_out_wrapper(self, self.do_fetch_transactions, user_id)
def insert_transaction(self, user_id, volume, symbol, value, price, currency, date, source, source_id, operation):
return helpers.server_time_out_wrapper(self, self.do_insert_transaction, user_id, volume, symbol,
value, price, currency, date, source, source_id, operation)
def update_transaction(self, id, user_id, volume, symbol, value, price, currency, date, source, source_id,
operation):
return helpers.server_time_out_wrapper(self, self.do_update_transaction, id,
user_id, volume, symbol, value, price, currency, date, source, source_id,
operation)
def delete_transaction(self, id, throw_if_does_not_exist=True):
helpers.server_time_out_wrapper(self, self.do_delete_transaction, id, throw_if_does_not_exist)
def do_delete_transaction(self, id, throw_if_does_not_exist=True):
helpers.do_local_connect(self.configuration)
trans = user_transaction.objects(id=id).first()
if throw_if_does_not_exist:
if_none_raise_with_id(id, trans)
if trans is not None:
trans.delete()
def do_update_transaction(self, id, user_id, volume, symbol, value, price, currency, date, source, source_id,
operation):
helpers.do_local_connect(self.configuration)
trans = user_transaction.objects(id=id).first()
if_none_raise_with_id(id, trans)
trans.user_id = user_id
trans.volume = volume
trans.symbol = symbol
trans.value = value
trans.price = price
trans.date = date
trans.source = source
trans.currency = currency
trans.source_id = source_id
trans.operation = operation
trans.save()
return user_transaction.objects(id=id).first()
def do_insert_transaction(self, user_id, volume, symbol, value, price, currency, date, source, source_id,
operation):
helpers.do_local_connect(self.configuration)
trans = user_transaction()
trans.user_id = user_id
trans.volume = volume
trans.symbol = symbol
trans.value = value
trans.price = price
trans.date = date
trans.currency = currency
trans.source = source
trans.source_id = source_id
trans.operation = operation
trans.save()
return user_transaction.objects(id=trans.id).first()
def do_fetch_transactions(self, user_id ):
helpers.do_local_connect(self.configuration)
return user_transaction.objects(Q(user_id=user_id))
def do_fetch_transaction(self, id ):
helpers.do_local_connect(self.configuration)
return user_transaction.objects(Q(id=id))[0]
| 42.44186
| 120
| 0.670137
| 448
| 3,650
| 5.167411
| 0.131696
| 0.04406
| 0.04406
| 0.051836
| 0.790929
| 0.743844
| 0.731749
| 0.711879
| 0.69892
| 0.69892
| 0
| 0.000366
| 0.252329
| 3,650
| 85
| 121
| 42.941176
| 0.84793
| 0
| 0
| 0.542857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.171429
| false
| 0
| 0.057143
| 0.071429
| 0.371429
| 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
|
072580ae43bbd8ecd21160183d85274cfcb19e54
| 87
|
py
|
Python
|
musica/apps.py
|
webnowone/albumMusical
|
b9532ff0ef47b610f0f2b565f0dd77e54d638772
|
[
"Apache-2.0"
] | 1
|
2021-02-02T03:58:48.000Z
|
2021-02-02T03:58:48.000Z
|
musica/apps.py
|
webnowone/albumMusical
|
b9532ff0ef47b610f0f2b565f0dd77e54d638772
|
[
"Apache-2.0"
] | 52
|
2020-02-25T09:56:54.000Z
|
2021-09-22T18:40:50.000Z
|
musica/apps.py
|
webnowone/albumMusical
|
b9532ff0ef47b610f0f2b565f0dd77e54d638772
|
[
"Apache-2.0"
] | null | null | null |
from django.apps import AppConfig
class MusicaConfig(AppConfig):
name = 'musica'
| 14.5
| 33
| 0.747126
| 10
| 87
| 6.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172414
| 87
| 5
| 34
| 17.4
| 0.902778
| 0
| 0
| 0
| 0
| 0
| 0.068966
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
072ca26b4d1e4960c6363441b38a038bbb510a99
| 107
|
py
|
Python
|
test_hello.py
|
skvel/pynet_testx
|
46566e059e076cb763f8a10ed7f6ff9eac5b63b1
|
[
"Apache-2.0"
] | null | null | null |
test_hello.py
|
skvel/pynet_testx
|
46566e059e076cb763f8a10ed7f6ff9eac5b63b1
|
[
"Apache-2.0"
] | null | null | null |
test_hello.py
|
skvel/pynet_testx
|
46566e059e076cb763f8a10ed7f6ff9eac5b63b1
|
[
"Apache-2.0"
] | null | null | null |
print "Hello World!"
print "Trying my hand at Git!"
print "Something else"
for i in range(10):
print i
| 17.833333
| 30
| 0.691589
| 19
| 107
| 3.894737
| 0.789474
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.023529
| 0.205607
| 107
| 5
| 31
| 21.4
| 0.847059
| 0
| 0
| 0
| 0
| 0
| 0.448598
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.8
| 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
|
07301aa37090337e8a2394da6cc20cd279418591
| 34
|
py
|
Python
|
Python/Python Evaluation/solution.py
|
arpitran/HackerRank_solutions
|
a3a77c858edd3955ea38530916db9051b1aa93f9
|
[
"MIT"
] | null | null | null |
Python/Python Evaluation/solution.py
|
arpitran/HackerRank_solutions
|
a3a77c858edd3955ea38530916db9051b1aa93f9
|
[
"MIT"
] | null | null | null |
Python/Python Evaluation/solution.py
|
arpitran/HackerRank_solutions
|
a3a77c858edd3955ea38530916db9051b1aa93f9
|
[
"MIT"
] | null | null | null |
eval(input("Enter a expression "))
| 34
| 34
| 0.735294
| 5
| 34
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088235
| 34
| 1
| 34
| 34
| 0.806452
| 0
| 0
| 0
| 0
| 0
| 0.542857
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
07315bfc850bee7d8e4dccfb243802584bf7ccf6
| 38
|
py
|
Python
|
python/testData/editing/enterInIncompleteTupleLiteral.after.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/editing/enterInIncompleteTupleLiteral.after.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/editing/enterInIncompleteTupleLiteral.after.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
xs = ('foo', 'bar',
'baz'<caret>
| 19
| 19
| 0.421053
| 5
| 38
| 3.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.263158
| 38
| 2
| 20
| 19
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0.230769
| 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
|
0740aa099c767617a2ec263fb4853c2833c7342f
| 79
|
py
|
Python
|
LanguageBasics/functions/import_eg.py
|
Vamsi-TM/jubilant-train
|
a3ca0216e161ead4f59d923a36587098790beb5d
|
[
"MIT"
] | null | null | null |
LanguageBasics/functions/import_eg.py
|
Vamsi-TM/jubilant-train
|
a3ca0216e161ead4f59d923a36587098790beb5d
|
[
"MIT"
] | null | null | null |
LanguageBasics/functions/import_eg.py
|
Vamsi-TM/jubilant-train
|
a3ca0216e161ead4f59d923a36587098790beb5d
|
[
"MIT"
] | null | null | null |
import function_exercise_01 as st
st.sandwich_toppings('meatballs', 'salad')
| 15.8
| 42
| 0.797468
| 11
| 79
| 5.454545
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028169
| 0.101266
| 79
| 4
| 43
| 19.75
| 0.816901
| 0
| 0
| 0
| 0
| 0
| 0.179487
| 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
|
0744b878366a1f07bc8ae64bebfadf9106c8ad3a
| 303
|
py
|
Python
|
hexrd/distortion/distortionabc.py
|
glemaitre/hexrd
|
b68b1ba72e0f480d29bdaae2adbd6c6e2380cc7c
|
[
"BSD-3-Clause"
] | 27
|
2020-02-18T12:15:08.000Z
|
2022-03-24T17:53:46.000Z
|
hexrd/distortion/distortionabc.py
|
glemaitre/hexrd
|
b68b1ba72e0f480d29bdaae2adbd6c6e2380cc7c
|
[
"BSD-3-Clause"
] | 259
|
2020-02-02T22:18:29.000Z
|
2022-03-30T19:59:58.000Z
|
hexrd/distortion/distortionabc.py
|
glemaitre/hexrd
|
b68b1ba72e0f480d29bdaae2adbd6c6e2380cc7c
|
[
"BSD-3-Clause"
] | 11
|
2020-02-18T12:14:44.000Z
|
2022-03-04T16:19:11.000Z
|
import abc
class DistortionABC(metaclass=abc.ABCMeta):
maptype = None
@abc.abstractmethod
def apply(self, xy_in):
"""Apply distortion mapping"""
pass
@abc.abstractmethod
def apply_inverse(self, xy_in):
"""Apply inverse distortion mapping"""
pass
| 17.823529
| 46
| 0.633663
| 33
| 303
| 5.727273
| 0.545455
| 0.179894
| 0.21164
| 0.26455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.267327
| 303
| 16
| 47
| 18.9375
| 0.851351
| 0.188119
| 0
| 0.444444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0.222222
| 0.111111
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
074c987bce7bacca56810d03a725dd7cdf352776
| 4,911
|
py
|
Python
|
src/dataset.py
|
HeegyuKim/CurseFilter
|
dc4a64aebd997706553c24e919a88e19a3c92dd3
|
[
"MIT"
] | null | null | null |
src/dataset.py
|
HeegyuKim/CurseFilter
|
dc4a64aebd997706553c24e919a88e19a3c92dd3
|
[
"MIT"
] | null | null | null |
src/dataset.py
|
HeegyuKim/CurseFilter
|
dc4a64aebd997706553c24e919a88e19a3c92dd3
|
[
"MIT"
] | null | null | null |
from cProfile import label
from matplotlib.pyplot import text
import pandas as pd
import numpy as np
from tokenizers import Tokenizer
import torch
from torch.utils.data import Dataset, DataLoader
from typing import Dict, Any, Tuple
from datasets import load_dataset
class DataFrameDataset(Dataset):
def __init__(self,
tokenizer: Tokenizer,
df: pd.DataFrame,
text_column: str,
label_column: str,
max_length: int = 256,
padding: str = "max_length") -> None:
super().__init__()
inputs = tokenizer(df[text_column].to_list(), padding=padding, max_length=max_length, truncation=True, return_tensors="pt")
self.input_ids = inputs["input_ids"]
self.attention_masks = inputs["attention_mask"]
dtype = np.int64 if len(df[label_column].unique()) > 2 else np.float32
self.labels = torch.from_numpy(df[label_column].values.astype(dtype))
def __len__(self):
return self.input_ids.shape[0]
def __getitem__(self, index: Any) -> Dict:
return self.input_ids[index], self.attention_masks[index], self.labels[index]
def dataloader(self, **kwargs) -> DataLoader:
return DataLoader(self, **kwargs)
class DataFrameStudentDataset(DataFrameDataset):
def __init__(self,
teacher_model: torch.nn.Module,
teacher_tokenizer: Tokenizer,
student_tokenizer: Tokenizer,
df: pd.DataFrame,
text_column: str,
label_column: str,
max_length: int = 256,
padding: str = "max_length",
device: str = 'cuda') -> None:
super().__init__(student_tokenizer, df, text_column, label_column, max_length, padding)
teacher_ds = DataFrameDataset(
teacher_tokenizer,
df,
text_column,
label_column,
max_length,
padding
)
teacher_model = teacher_model.to(device)
with torch.no_grad():
soft_labels = [self._get_soft_label(teacher_model, teacher_ds, i, device)
for i in range(len(self))]
self.soft_labels = torch.stack(soft_labels)
def __getitem__(self, index: Any) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor, torch.Tensor]:
return *super().__getitem__(index), self.soft_labels[index]
def _get_soft_label(self, model, teacher_ds, index, device):
ids, mask, _ = teacher_ds[index]
ids = ids.unsqueeze(0).to(device)
mask = mask.unsqueeze(0).to(device)
return model(ids, mask).cpu().squeeze(0)
class ApeachDataset(Dataset):
def __init__(self,
split: str,
tokenizer: Tokenizer,
max_length: int = 256,
padding: str = "max_length") -> None:
super().__init__()
dataset = load_dataset("jason9693/APEACH")
texts = dataset[split]['text']
inputs = tokenizer(texts, padding=padding, max_length=max_length, truncation=True, return_tensors="pt")
self.input_ids = inputs["input_ids"]
self.attention_masks = inputs["attention_mask"]
labels = dataset[split]['class']
self.labels = torch.tensor(labels, dtype=torch.float32)
def __len__(self):
return self.input_ids.shape[0]
def __getitem__(self, index: Any) -> Dict:
return self.input_ids[index], self.attention_masks[index], self.labels[index]
def dataloader(self, **kwargs) -> DataLoader:
return DataLoader(self, **kwargs)
class ApeachStudentDataset(ApeachDataset):
def __init__(self,
teacher_model: torch.nn.Module,
split: str,
teacher_tokenizer: Tokenizer,
student_tokenizer: Tokenizer,
max_length: int = 256,
padding: str = "max_length",
device: str="cuda") -> None:
super().__init__(split, student_tokenizer, max_length, padding)
teacher_ds = ApeachDataset(split, teacher_tokenizer, max_length, padding)
teacher_model = teacher_model.to(device)
with torch.no_grad():
soft_labels = [self._get_soft_label(teacher_model, teacher_ds, i, device)
for i in range(len(self))]
self.soft_labels = torch.stack(soft_labels)
def __getitem__(self, index: Any) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor, torch.Tensor]:
return *super().__getitem__(index), self.soft_labels[index]
def _get_soft_label(self, model, teacher_ds, index, device):
ids, mask, _ = teacher_ds[index]
ids = ids.unsqueeze(0).to(device)
mask = mask.unsqueeze(0).to(device)
return model(ids, mask).cpu().squeeze(0)
| 38.069767
| 131
| 0.609448
| 556
| 4,911
| 5.097122
| 0.178058
| 0.050812
| 0.025406
| 0.046577
| 0.742414
| 0.726535
| 0.703952
| 0.703952
| 0.678546
| 0.678546
| 0
| 0.008837
| 0.285685
| 4,911
| 129
| 132
| 38.069767
| 0.799031
| 0
| 0
| 0.673077
| 0
| 0
| 0.025041
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.134615
| false
| 0
| 0.086538
| 0.076923
| 0.355769
| 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
|
07579f83aea9f0c480c258cdf19ac53f9ebbfd10
| 160
|
py
|
Python
|
run.py
|
jakewright/home-automation-device-registry
|
b073966b1dc259a6997c47f8d369f51dee9cbbf3
|
[
"MIT"
] | 15
|
2018-01-09T21:57:09.000Z
|
2021-05-08T10:23:01.000Z
|
run.py
|
jakewright/home-automation-device-registry
|
b073966b1dc259a6997c47f8d369f51dee9cbbf3
|
[
"MIT"
] | null | null | null |
run.py
|
jakewright/home-automation-device-registry
|
b073966b1dc259a6997c47f8d369f51dee9cbbf3
|
[
"MIT"
] | 10
|
2018-09-23T20:30:24.000Z
|
2021-05-08T10:23:02.000Z
|
# Import the application
from device_registry import app
# Run the application in debug mode
app.run(host='0.0.0.0', port=int(app.config['PORT']), debug=True)
| 26.666667
| 65
| 0.74375
| 28
| 160
| 4.214286
| 0.607143
| 0.050847
| 0.050847
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028369
| 0.11875
| 160
| 5
| 66
| 32
| 0.808511
| 0.35
| 0
| 0
| 0
| 0
| 0.108911
| 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
|
4ad430bf0f736b3775616810d3e0ff10960723c4
| 124
|
py
|
Python
|
src/model/exception/emote_fetch_error.py
|
konrad2508/kokomi-discord-bot
|
5a9d459e92d552fa24ba3ada5188db19d93f0aaa
|
[
"MIT"
] | 2
|
2022-03-02T15:56:41.000Z
|
2022-03-10T16:30:41.000Z
|
src/model/exception/emote_fetch_error.py
|
konrad2508/kokomi-discord-bot
|
5a9d459e92d552fa24ba3ada5188db19d93f0aaa
|
[
"MIT"
] | 2
|
2022-03-10T16:30:20.000Z
|
2022-03-16T14:33:59.000Z
|
src/model/exception/emote_fetch_error.py
|
konrad2508/kokomi-discord-bot
|
5a9d459e92d552fa24ba3ada5188db19d93f0aaa
|
[
"MIT"
] | null | null | null |
class EmoteFetchError(Exception):
'''Exception stating that there was a problem while fetching emotes from a source.'''
| 41.333333
| 89
| 0.766129
| 16
| 124
| 5.9375
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153226
| 124
| 2
| 90
| 62
| 0.904762
| 0.637097
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
ab058609cdca528f1ad9cfbfcbc124dc3d65d20b
| 180
|
py
|
Python
|
core/sample_fuzzer/data_generators/base.py
|
ShreyasTheOne/Super-Duper-Fuzzer
|
b667e2dca3e49a370634ad4b0bd826aca06136b7
|
[
"MIT"
] | null | null | null |
core/sample_fuzzer/data_generators/base.py
|
ShreyasTheOne/Super-Duper-Fuzzer
|
b667e2dca3e49a370634ad4b0bd826aca06136b7
|
[
"MIT"
] | null | null | null |
core/sample_fuzzer/data_generators/base.py
|
ShreyasTheOne/Super-Duper-Fuzzer
|
b667e2dca3e49a370634ad4b0bd826aca06136b7
|
[
"MIT"
] | null | null | null |
from abc import ABC, abstractmethod
class BaseDataGenerator(ABC):
def __init__(self):
pass
@staticmethod
@abstractmethod
def generate(cls):
pass
| 15
| 35
| 0.655556
| 18
| 180
| 6.333333
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.277778
| 180
| 11
| 36
| 16.363636
| 0.876923
| 0
| 0
| 0.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.125
| 0
| 0.5
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
ab15b741f60036ff0c954f49e3dc89246a1bf5bf
| 46,930
|
py
|
Python
|
tools/fileinfo/features/certificates-info/test.py
|
HoundThe/retdec-regression-tests
|
760639deb1ee52e88a14523b4a908d3e69d6fcd3
|
[
"MIT"
] | null | null | null |
tools/fileinfo/features/certificates-info/test.py
|
HoundThe/retdec-regression-tests
|
760639deb1ee52e88a14523b4a908d3e69d6fcd3
|
[
"MIT"
] | null | null | null |
tools/fileinfo/features/certificates-info/test.py
|
HoundThe/retdec-regression-tests
|
760639deb1ee52e88a14523b4a908d3e69d6fcd3
|
[
"MIT"
] | null | null | null |
from regression_tests import *
class Test1(Test):
settings = TestSettings(
tool='fileinfo',
input='8b280f2b7788520de214fa8d6ea32a30ebb2a51038381448939530fd0f7dfc16',
args='--json --verbose'
)
def test_certificates(self):
assert self.fileinfo.succeeded
assert self.fileinfo.output['digitalSignatures']['numberOfSignatures'] == 2
first_sig = self.fileinfo.output['digitalSignatures']['signatures'][0]
assert len(first_sig['allCertificates']) == 5
assert first_sig['signatureVerified'] == True
assert len(first_sig['warnings']) == 0
assert first_sig['digestAlgorithm'] == 'sha1'
assert first_sig['fileDigest'] == 'F6B86E97AEB3E567F58901F799E18FC6F89CC92E'
assert first_sig['signedDigest'] == 'F6B86E97AEB3E567F58901F799E18FC6F89CC92E'
assert first_sig['programName'] == "Broadband Download, Thunder in a Flash!"
assert first_sig['allCertificates'][0]['subject'] == "CN=Symantec Time Stamping Services CA - G2,O=Symantec Corporation,C=US"
assert first_sig['allCertificates'][0]['issuer'] == "CN=Thawte Timestamping CA,OU=Thawte Certification,O=Thawte,L=Durbanville,ST=Western Cape,C=ZA"
assert first_sig['allCertificates'][0]['subjectOneline'] == "/C=US/O=Symantec Corporation/CN=Symantec Time Stamping Services CA - G2"
assert first_sig['allCertificates'][0]['issuerOneline'] == "/C=ZA/ST=Western Cape/L=Durbanville/O=Thawte/OU=Thawte Certification/CN=Thawte Timestamping CA"
assert first_sig['allCertificates'][0]['serialNumber'] == "7e:93:eb:fb:7c:c6:4e:59:ea:4b:9a:77:d4:06:fc:3b"
assert first_sig['allCertificates'][0]['publicKeyAlgorithm'] == "rsaEncryption"
assert first_sig['allCertificates'][0]['signatureAlgorithm'] == "sha1WithRSAEncryption"
assert first_sig['allCertificates'][0]['validSince'] == "Dec 21 00:00:00 2012 GMT"
assert first_sig['allCertificates'][0]['validUntil'] == "Dec 30 23:59:59 2020 GMT"
assert first_sig['allCertificates'][0]['sha1'] == "6C07453FFDDA08B83707C09B82FB3D15F35336B1"
assert first_sig['allCertificates'][0]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
assert first_sig['allCertificates'][0]['publicKey'] == (
'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsayzSVRLl'
'xwSCtgleZEiVypv3LgmxENza8K/LlBa+xTCdo5DASVDtKHiRfTot3vDdMwi17SUAAL3Te2/tLdEJGvNX0U70UTOQxJzF4KLabQry5kerHIbJk'
'1xH7Ex3ftRYQJTpqr1SSwFeEWlL4nO55nn/oziVz89xpLcSvh7M+R5CvvwdYhBnP/FA1GZqtdsn5Nph2Upg4XCYBTEyMk7FNrAgfAfDXTekiK'
'ryvf7dHwn5vdKG3+nw54trorqpuaqJxZ9YfeYcRG84lChS+Vd+uUOpyyfqmUg09iW6Mh8pU5IRP8Z4kQHkgvXaISAXWp4ZEXNYEZ+VMETfMV58cnBcQIDAQAB')
attributes = first_sig['allCertificates'][0]['attributes']
assert attributes['subject']['country'] == "US"
assert attributes['subject']['organization'] == "Symantec Corporation"
assert attributes['subject']['commonName'] == "Symantec Time Stamping Services CA - G2"
assert attributes['issuer']['country'] == "ZA"
assert attributes['issuer']['organization'] == "Thawte"
assert attributes['issuer']['organizationalUnit'] == "Thawte Certification"
assert attributes['issuer']['state'] == "Western Cape"
assert attributes['issuer']['commonName'] == "Thawte Timestamping CA"
assert attributes['issuer']['locality'] == "Durbanville"
assert first_sig['allCertificates'][1]['sha256'] == "0374881C9B74D31F28DC580B0F2B9D2B14A97CE31CBEC2A05AEB377DCDDCC2B0"
assert first_sig['allCertificates'][2]['sha256'] == "8420DFBE376F414BF4C0A81E6936D24CCC03F304835B86C7A39142FCA723A689"
assert first_sig['allCertificates'][3]['sha256'] == "8FB47562286677514075BC38D1CFD2B73481D93CB3F9C23F9AC3E6414EF34A6F"
assert first_sig['allCertificates'][4]['sha256'] == "582DC1D97A790EF04FE2567B1EC88C26B03BF6E99937CAE6A0B50397AD20BBF8"
first_sig_signer = first_sig['signer']
assert first_sig_signer['digest'] == "96D052BD1B13E983FC6FE41911F6B49CEB5961B9"
assert first_sig_signer['digestAlgorithm'] == 'sha1'
assert len(first_sig_signer['chain']) == 3
assert first_sig_signer['chain'][0]['sha256'] == "8FB47562286677514075BC38D1CFD2B73481D93CB3F9C23F9AC3E6414EF34A6F"
assert first_sig_signer['chain'][1]['sha256'] == "582DC1D97A790EF04FE2567B1EC88C26B03BF6E99937CAE6A0B50397AD20BBF8"
assert first_sig_signer['chain'][2]['sha256'] == "8420DFBE376F414BF4C0A81E6936D24CCC03F304835B86C7A39142FCA723A689"
first_sig_countersig = first_sig_signer['counterSigners'][0]
assert len(first_sig_countersig['warnings']) == 0
assert first_sig_countersig['signTime'] == "Jun 25 14:19:05 2016 GMT"
assert first_sig_countersig['digest'] == '8F22E222461E03492E8D67948463100465B1B9D0'
assert first_sig_countersig['digestAlgorithm'] == 'sha1'
assert len(first_sig_countersig['chain']) == 2
assert first_sig_countersig['chain'][0]['sha256'] == "0374881C9B74D31F28DC580B0F2B9D2B14A97CE31CBEC2A05AEB377DCDDCC2B0"
assert first_sig_countersig['chain'][1]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
second_sig = self.fileinfo.output['digitalSignatures']['signatures'][1]
assert second_sig['signatureVerified'] == True
assert len(second_sig['warnings']) == 0
assert second_sig['digestAlgorithm'] == 'sha256'
assert second_sig['fileDigest'] == '9FC3902927BFEDA2A3F61D650B0D2CBEC6D84597989EA6244D4EF954C67CA0B3'
assert second_sig['signedDigest'] == '9FC3902927BFEDA2A3F61D650B0D2CBEC6D84597989EA6244D4EF954C67CA0B3'
assert second_sig['programName'] == "Broadband Download, Thunder in a Flash!"
assert len(second_sig['allCertificates']) == 6
assert second_sig['allCertificates'][0]['sha256'] == "8420DFBE376F414BF4C0A81E6936D24CCC03F304835B86C7A39142FCA723A689"
assert second_sig['allCertificates'][1]['sha256'] == "8FB47562286677514075BC38D1CFD2B73481D93CB3F9C23F9AC3E6414EF34A6F"
assert second_sig['allCertificates'][2]['sha256'] == "582DC1D97A790EF04FE2567B1EC88C26B03BF6E99937CAE6A0B50397AD20BBF8"
assert second_sig['allCertificates'][3]['sha256'] == "43CE166BC567F9887D650A2E624473BE7A43A6F378ABE03CB32FA63F7ABB1E45"
assert second_sig['allCertificates'][4]['sha256'] == "6B6C1E01F590F5AFC5FCF85CD0B9396884048659FC2C6D1170D68B045216C3FD"
assert second_sig['allCertificates'][5]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
second_sig_signer = second_sig['signer']
assert second_sig_signer['digest'] == "E421C1A7625B9CD410B64A0EBEA7D991EA1DBAC65A3404A227235E1C0AB781F1"
assert second_sig_signer['digestAlgorithm'] == 'sha256'
assert len(second_sig_signer['chain']) == 3
assert second_sig_signer['chain'][0]['sha256'] == "8FB47562286677514075BC38D1CFD2B73481D93CB3F9C23F9AC3E6414EF34A6F"
assert second_sig_signer['chain'][1]['sha256'] == "582DC1D97A790EF04FE2567B1EC88C26B03BF6E99937CAE6A0B50397AD20BBF8"
assert second_sig_signer['chain'][2]['sha256'] == "8420DFBE376F414BF4C0A81E6936D24CCC03F304835B86C7A39142FCA723A689"
second_sig_countersig = second_sig_signer['counterSigners'][0]
assert len(second_sig_countersig['warnings']) == 0
assert second_sig_countersig['signTime'] == "Jun 25 14:19:29 2016 GMT"
assert second_sig_countersig['digest'] == 'B36785DD22C1E070DB8A198A16C81BD93FB87F4D5B6301ACB2656C23E4EF80F5'
assert second_sig_countersig['digestAlgorithm'] == 'sha256'
assert len(second_sig_countersig['chain']) == 3
assert second_sig_countersig['chain'][0]['sha256'] == "43CE166BC567F9887D650A2E624473BE7A43A6F378ABE03CB32FA63F7ABB1E45"
assert second_sig_countersig['chain'][1]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
assert second_sig_countersig['chain'][2]['sha256'] == "6B6C1E01F590F5AFC5FCF85CD0B9396884048659FC2C6D1170D68B045216C3FD"
class Test2(Test):
settings = TestSettings(
tool='fileinfo',
input='avgcfgex.ex',
args='--json --verbose'
)
def test_certificates(self):
assert self.fileinfo.succeeded
assert self.fileinfo.output['digitalSignatures']['numberOfSignatures'] == 2
first_sig = self.fileinfo.output['digitalSignatures']['signatures'][0]
assert len(first_sig['allCertificates']) == 5
assert first_sig['signatureVerified'] == True
assert len(first_sig['warnings']) == 0
assert first_sig['digestAlgorithm'] == 'sha1'
assert first_sig['fileDigest'] == '3E7B33AB316770BD369BFADF5FB5354730C89991'
assert first_sig['signedDigest'] == '3E7B33AB316770BD369BFADF5FB5354730C89991'
assert first_sig['allCertificates'][0]['subject'] == "CN=Symantec Time Stamping Services CA - G2,O=Symantec Corporation,C=US"
assert first_sig['allCertificates'][0]['issuer'] == "CN=Thawte Timestamping CA,OU=Thawte Certification,O=Thawte,L=Durbanville,ST=Western Cape,C=ZA"
assert first_sig['allCertificates'][0]['serialNumber'] == "7e:93:eb:fb:7c:c6:4e:59:ea:4b:9a:77:d4:06:fc:3b"
assert first_sig['allCertificates'][0]['publicKeyAlgorithm'] == "rsaEncryption"
assert first_sig['allCertificates'][0]['signatureAlgorithm'] == "sha1WithRSAEncryption"
assert first_sig['allCertificates'][0]['validSince'] == "Dec 21 00:00:00 2012 GMT"
assert first_sig['allCertificates'][0]['validUntil'] == "Dec 30 23:59:59 2020 GMT"
assert first_sig['allCertificates'][0]['sha1'] == "6C07453FFDDA08B83707C09B82FB3D15F35336B1"
assert first_sig['allCertificates'][0]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
assert first_sig['allCertificates'][0]['publicKey'] == (
'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsayzSVRLl'
'xwSCtgleZEiVypv3LgmxENza8K/LlBa+xTCdo5DASVDtKHiRfTot3vDdMwi17SUAAL3Te2/tLdEJGvNX0U70UTOQxJzF4KLabQry5kerHIbJk'
'1xH7Ex3ftRYQJTpqr1SSwFeEWlL4nO55nn/oziVz89xpLcSvh7M+R5CvvwdYhBnP/FA1GZqtdsn5Nph2Upg4XCYBTEyMk7FNrAgfAfDXTekiK'
'ryvf7dHwn5vdKG3+nw54trorqpuaqJxZ9YfeYcRG84lChS+Vd+uUOpyyfqmUg09iW6Mh8pU5IRP8Z4kQHkgvXaISAXWp4ZEXNYEZ+VMETfMV58cnBcQIDAQAB')
attributes = first_sig['allCertificates'][0]['attributes']
assert attributes['subject']['country'] == "US"
assert attributes['subject']['organization'] == "Symantec Corporation"
assert attributes['subject']['commonName'] == "Symantec Time Stamping Services CA - G2"
assert attributes['issuer']['country'] == "ZA"
assert attributes['issuer']['organization'] == "Thawte"
assert attributes['issuer']['organizationalUnit'] == "Thawte Certification"
assert attributes['issuer']['state'] == "Western Cape"
assert attributes['issuer']['commonName'] == "Thawte Timestamping CA"
assert attributes['issuer']['locality'] == "Durbanville"
assert first_sig['allCertificates'][1]['sha256'] == "0374881C9B74D31F28DC580B0F2B9D2B14A97CE31CBEC2A05AEB377DCDDCC2B0"
assert first_sig['allCertificates'][2]['sha256'] == "8420DFBE376F414BF4C0A81E6936D24CCC03F304835B86C7A39142FCA723A689"
assert first_sig['allCertificates'][3]['sha256'] == "3B0ABE047D7E84F3BBD12B5E399BED55E4D7E9FCC3F629B8953A8C060EF6D746"
assert first_sig['allCertificates'][4]['sha256'] == "0CFC19DB681B014BFE3F23CB3A78B67208B4E3D8D7B6A7B1807F7CD6ECB2A54E"
first_sig_signer = first_sig['signer']
assert first_sig_signer['digest'] == "229A2D7B4C8F2E8EC5B6943D0F0E53B9F59E33B5"
assert first_sig_signer['digestAlgorithm'] == 'sha1'
assert len(first_sig_signer['chain']) == 3
assert first_sig_signer['chain'][0]['sha256'] == "3B0ABE047D7E84F3BBD12B5E399BED55E4D7E9FCC3F629B8953A8C060EF6D746"
assert first_sig_signer['chain'][1]['sha256'] == "0CFC19DB681B014BFE3F23CB3A78B67208B4E3D8D7B6A7B1807F7CD6ECB2A54E"
assert first_sig_signer['chain'][2]['sha256'] == "8420DFBE376F414BF4C0A81E6936D24CCC03F304835B86C7A39142FCA723A689"
first_sig_countersig = first_sig_signer['counterSigners'][0]
assert len(first_sig_countersig['warnings']) == 0
assert first_sig_countersig['signTime'] == "Feb 1 14:02:52 2016 GMT"
assert first_sig_countersig['digest'] == '0DAAC35A77C75EAEA723AE13E61C927F676080A2'
assert first_sig_countersig['digestAlgorithm'] == 'sha1'
assert len(first_sig_countersig['chain']) == 2
assert first_sig_countersig['chain'][0]['sha256'] == "0374881C9B74D31F28DC580B0F2B9D2B14A97CE31CBEC2A05AEB377DCDDCC2B0"
assert first_sig_countersig['chain'][1]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
second_sig = self.fileinfo.output['digitalSignatures']['signatures'][1]
assert second_sig['signatureVerified'] == True
assert len(second_sig['warnings']) == 0
assert second_sig['digestAlgorithm'] == 'sha256'
assert second_sig['fileDigest'] == '6BE0FA5AB9336DDCC6ACE35ED2BC9744860E80088F35E5D77AF254F246228CDE'
assert second_sig['signedDigest'] == '6BE0FA5AB9336DDCC6ACE35ED2BC9744860E80088F35E5D77AF254F246228CDE'
assert len(second_sig['allCertificates']) == 6
assert second_sig['allCertificates'][0]['sha256'] == "8420DFBE376F414BF4C0A81E6936D24CCC03F304835B86C7A39142FCA723A689"
assert second_sig['allCertificates'][1]['sha256'] == "3A0682AB7FB478BA82FD11CE4DB9B0ADEA55DA05558A0CF737453D51572163D0"
assert second_sig['allCertificates'][2]['sha256'] == "0CFC19DB681B014BFE3F23CB3A78B67208B4E3D8D7B6A7B1807F7CD6ECB2A54E"
assert second_sig['allCertificates'][3]['sha256'] == "43CE166BC567F9887D650A2E624473BE7A43A6F378ABE03CB32FA63F7ABB1E45"
assert second_sig['allCertificates'][4]['sha256'] == "6B6C1E01F590F5AFC5FCF85CD0B9396884048659FC2C6D1170D68B045216C3FD"
assert second_sig['allCertificates'][5]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
second_sig_signer = second_sig['signer']
assert second_sig_signer['digest'] == "0183B70327A59E8006B666E908D798CCD309BC4C2FFFD10E551E040B9B1DC449"
assert second_sig_signer['digestAlgorithm'] == 'sha256'
assert len(second_sig_signer['chain']) == 3
assert second_sig_signer['chain'][0]['sha256'] == "3A0682AB7FB478BA82FD11CE4DB9B0ADEA55DA05558A0CF737453D51572163D0"
assert second_sig_signer['chain'][1]['sha256'] == "0CFC19DB681B014BFE3F23CB3A78B67208B4E3D8D7B6A7B1807F7CD6ECB2A54E"
assert second_sig_signer['chain'][2]['sha256'] == "8420DFBE376F414BF4C0A81E6936D24CCC03F304835B86C7A39142FCA723A689"
second_sig_countersig = second_sig_signer['counterSigners'][0]
assert len(second_sig_countersig['warnings']) == 0
assert second_sig_countersig['signTime'] == "Feb 1 14:02:54 2016 GMT"
assert second_sig_countersig['digest'] == '1C5206936E053F3D79A046D0E359FB32926AA9D8C269812A80A188AE04DC3E34'
assert second_sig_countersig['digestAlgorithm'] == 'sha256'
assert len(second_sig_countersig['chain']) == 3
assert second_sig_countersig['chain'][0]['sha256'] == "43CE166BC567F9887D650A2E624473BE7A43A6F378ABE03CB32FA63F7ABB1E45"
assert second_sig_countersig['chain'][1]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
assert second_sig_countersig['chain'][2]['sha256'] == "6B6C1E01F590F5AFC5FCF85CD0B9396884048659FC2C6D1170D68B045216C3FD"
class Test3(Test):
settings = TestSettings(
tool='fileinfo',
input='c339b87d932b3f86c298b1745db1a28b1214fb7635ba3805851ef8699290f9b8',
args='--json --verbose'
)
def test_certificates(self):
assert self.fileinfo.succeeded
assert self.fileinfo.output['digitalSignatures']['numberOfSignatures'] == 2
first_sig = self.fileinfo.output['digitalSignatures']['signatures'][0]
assert first_sig['signatureVerified'] == True
assert len(first_sig['warnings']) == 0
assert first_sig['digestAlgorithm'] == 'sha1'
assert first_sig['fileDigest'] == '0C13D3C2B3C6F48FA3485B36E08AC822C579C1E0'
assert first_sig['signedDigest'] == '0C13D3C2B3C6F48FA3485B36E08AC822C579C1E0'
# 2 certificates are there indeed stored twice, confirmed with LIEF
assert len(first_sig['allCertificates']) == 7
assert first_sig['allCertificates'][0]['sha256'] == "FCB433D6D1AFBEC9E8F5447C2C0FA4AE7553986D5C2703BE82524BE608F35F61"
assert first_sig['allCertificates'][1]['sha256'] == "53793CFC1B2B5096CC4EDBEC527ABC5CBC20470C788162D9E54C370D51625F4A"
assert first_sig['allCertificates'][2]['sha256'] == "C766A9BEF2D4071C863A31AA4920E813B2D198608CB7B7CFE21143B836DF09EA"
assert first_sig['allCertificates'][3]['sha256'] == "53793CFC1B2B5096CC4EDBEC527ABC5CBC20470C788162D9E54C370D51625F4A"
assert first_sig['allCertificates'][4]['sha256'] == "C766A9BEF2D4071C863A31AA4920E813B2D198608CB7B7CFE21143B836DF09EA"
assert first_sig['allCertificates'][5]['sha256'] == "0374881C9B74D31F28DC580B0F2B9D2B14A97CE31CBEC2A05AEB377DCDDCC2B0"
assert first_sig['allCertificates'][6]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
first_sig_signer = first_sig['signer']
assert first_sig_signer['digest'] == "AC1E29C0611678FA7E5B98A11106A1F9D69B224F"
assert first_sig_signer['digestAlgorithm'] == 'sha1'
assert len(first_sig_signer['chain']) == 3
assert first_sig_signer['chain'][0]['sha256'] == "FCB433D6D1AFBEC9E8F5447C2C0FA4AE7553986D5C2703BE82524BE608F35F61"
assert first_sig_signer['chain'][1]['sha256'] == "53793CFC1B2B5096CC4EDBEC527ABC5CBC20470C788162D9E54C370D51625F4A"
assert first_sig_signer['chain'][2]['sha256'] == "C766A9BEF2D4071C863A31AA4920E813B2D198608CB7B7CFE21143B836DF09EA"
first_sig_countersig = first_sig_signer['counterSigners'][0]
assert len(first_sig_countersig['warnings']) == 0
assert first_sig_countersig['signTime'] == "Feb 1 15:47:14 2016 GMT"
assert first_sig_countersig['digest'] == 'DE8E927CEC0175F4544CAFBBAC55D584DAE15C20'
assert first_sig_countersig['digestAlgorithm'] == 'sha1'
assert len(first_sig_countersig['chain']) == 2
assert first_sig_countersig['chain'][0]['sha256'] == "0374881C9B74D31F28DC580B0F2B9D2B14A97CE31CBEC2A05AEB377DCDDCC2B0"
assert first_sig_countersig['chain'][1]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
second_sig = self.fileinfo.output['digitalSignatures']['signatures'][1]
assert second_sig['signatureVerified'] == True
assert len(second_sig['warnings']) == 0
assert second_sig['digestAlgorithm'] == 'sha256'
assert second_sig['fileDigest'] == '838379A390118A6562F3E06BE818F5A6407FD7F4FEA9ADF4C36A8B6952B1336B'
assert second_sig['signedDigest'] == '838379A390118A6562F3E06BE818F5A6407FD7F4FEA9ADF4C36A8B6952B1336B'
assert len(second_sig['allCertificates']) == 8
assert second_sig['allCertificates'][0]['sha256'] == "D09EDDF7DA800BCC3AC114852614124706D94EA473A98DB19BC4F4CB6AEE16A4"
assert second_sig['allCertificates'][1]['sha256'] == "5E6D2F88F617DC8B809AEE712445A41B3CDE26AF874A221A9DC98EA1DC68E3D5"
assert second_sig['allCertificates'][2]['sha256'] == "4F32D5DC00F715250ABCC486511E37F501A899DEB3BF7EA8ADBBD3AEF1C412DA"
assert second_sig['allCertificates'][3]['sha256'] == "687FA451382278FFF0C8B11F8D43D576671C6EB2BCEAB413FB83D965D06D2FF2"
assert second_sig['allCertificates'][4]['sha256'] == "52F0E1C4E58EC629291B60317F074671B85D7EA80D5B07273463534B32B40234"
assert second_sig['allCertificates'][5]['sha256'] == "5E6D2F88F617DC8B809AEE712445A41B3CDE26AF874A221A9DC98EA1DC68E3D5"
assert second_sig['allCertificates'][6]['sha256'] == "0374881C9B74D31F28DC580B0F2B9D2B14A97CE31CBEC2A05AEB377DCDDCC2B0"
assert second_sig['allCertificates'][7]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
second_sig_signer = second_sig['signer']
assert second_sig_signer['digest'] == "FB26A5FA064C2789EEE8560B4F8A82B7FE968B0D776CE02F52AA3BA11D8CB22C"
assert second_sig_signer['digestAlgorithm'] == 'sha256'
assert len(second_sig_signer['chain']) == 3
assert second_sig_signer['chain'][0]['sha256'] == "D09EDDF7DA800BCC3AC114852614124706D94EA473A98DB19BC4F4CB6AEE16A4"
assert second_sig_signer['chain'][1]['sha256'] == "5E6D2F88F617DC8B809AEE712445A41B3CDE26AF874A221A9DC98EA1DC68E3D5"
assert second_sig_signer['chain'][2]['sha256'] == "52F0E1C4E58EC629291B60317F074671B85D7EA80D5B07273463534B32B40234"
second_sig_countersig = second_sig_signer['counterSigners'][0]
assert len(second_sig_countersig['warnings']) == 0
assert second_sig_countersig['signTime'] == "Feb 1 15:47:15 2016 GMT"
assert second_sig_countersig['digest'] == 'C361F36F13601CEAF01F3480C58F98660205981A'
assert second_sig_countersig['digestAlgorithm'] == 'sha1'
assert len(second_sig_countersig['chain']) == 2
assert second_sig_countersig['chain'][0]['sha256'] == "0374881C9B74D31F28DC580B0F2B9D2B14A97CE31CBEC2A05AEB377DCDDCC2B0"
assert second_sig_countersig['chain'][1]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
class Test4(Test):
settings = TestSettings(
tool='fileinfo',
input='c58e6118bbe12d2c56b2db014c4eb0d3fd32cde7bca1f32a2da8169be1301e23',
args='--json --verbose'
)
def test_certificates(self):
assert self.fileinfo.succeeded
assert self.fileinfo.output['digitalSignatures']['numberOfSignatures'] == 1
first_sig = self.fileinfo.output['digitalSignatures']['signatures'][0]
assert first_sig['signatureVerified'] == True
assert len(first_sig['warnings']) == 0
assert first_sig['digestAlgorithm'] == 'sha1'
assert first_sig['fileDigest'] == 'F9D74771FD4A1A2233D266F1F73B53464328EE1E'
assert first_sig['signedDigest'] == 'F9D74771FD4A1A2233D266F1F73B53464328EE1E'
assert first_sig['programName'] == 'Alveo'
assert len(first_sig['allCertificates']) == 5
assert first_sig['allCertificates'][0]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
assert first_sig['allCertificates'][1]['sha256'] == "3A2FBE92891E57FE05D57087F48E730F17E5A5F53EF403D618E5B74D7A7E6ECB"
assert first_sig['allCertificates'][2]['sha256'] == "0374881C9B74D31F28DC580B0F2B9D2B14A97CE31CBEC2A05AEB377DCDDCC2B0"
assert first_sig['allCertificates'][3]['sha256'] == "973A41276FFD01E027A2AAD49E34C37846D3E976FF6A620B6712E33832041AA6"
assert first_sig['allCertificates'][4]['sha256'] == "E2DBA399BE32992B74DF8A86CFD9886C2304CCC19DA8A9BE2B87809DA006379E"
first_sig_signer = first_sig['signer']
assert first_sig_signer['digest'] == "C2072238EB76B1C42F366FD72B85304A88AE5037"
assert first_sig_signer['digestAlgorithm'] == 'sha1'
assert len(first_sig_signer['chain']) == 3
assert first_sig_signer['chain'][0]['sha256'] == "E2DBA399BE32992B74DF8A86CFD9886C2304CCC19DA8A9BE2B87809DA006379E"
assert first_sig_signer['chain'][1]['sha256'] == "973A41276FFD01E027A2AAD49E34C37846D3E976FF6A620B6712E33832041AA6"
assert first_sig_signer['chain'][2]['sha256'] == "3A2FBE92891E57FE05D57087F48E730F17E5A5F53EF403D618E5B74D7A7E6ECB"
first_sig_countersig = first_sig_signer['counterSigners'][0]
assert len(first_sig_countersig['warnings']) == 0
assert first_sig_countersig['signTime'] == "Jul 1 20:02:53 2016 GMT"
assert first_sig_countersig['digest'] == 'BFFD2E4E2707EE7BF5EB9B1381F100771CCCCD45'
assert first_sig_countersig['digestAlgorithm'] == 'sha1'
assert len(first_sig_countersig['chain']) == 2
assert first_sig_countersig['chain'][0]['sha256'] == "0374881C9B74D31F28DC580B0F2B9D2B14A97CE31CBEC2A05AEB377DCDDCC2B0"
assert first_sig_countersig['chain'][1]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
class Test5(Test):
settings = TestSettings(
tool='fileinfo',
input='crashreporter.ex',
args='--json --verbose'
)
def test_certificates(self):
assert self.fileinfo.succeeded
assert self.fileinfo.output['digitalSignatures']['numberOfSignatures'] == 1
first_sig = self.fileinfo.output['digitalSignatures']['signatures'][0]
assert first_sig['signatureVerified'] == True
assert len(first_sig['warnings']) == 0
assert first_sig['digestAlgorithm'] == 'sha1'
assert first_sig['fileDigest'] == '65901089C84EF122BE9397F508580A3EFC674D1D'
assert first_sig['signedDigest'] == '65901089C84EF122BE9397F508580A3EFC674D1D'
assert len(first_sig['allCertificates']) == 5
assert first_sig['allCertificates'][0]['sha1'] == "0563B8630D62D75ABBC8AB1E4BDFB5A899B24D43"
assert first_sig['allCertificates'][1]['sha1'] == "92C1588E85AF2201CE7915E8538B492F605B80C6"
assert first_sig['allCertificates'][2]['sha1'] == "50600FD631998451C8F75EF3F618E31FC74D1585"
assert first_sig['allCertificates'][3]['sha1'] == "65439929B67973EB192D6FF243E6767ADF0834E4"
assert first_sig['allCertificates'][4]['sha1'] == "6C07453FFDDA08B83707C09B82FB3D15F35336B1"
first_sig_signer = first_sig['signer']
assert first_sig_signer['digest'] == "21C4C8CCB2A4B1A878D8347D5F07B8BE4A44693E"
assert first_sig_signer['digestAlgorithm'] == 'sha1'
assert len(first_sig_signer['chain']) == 3
assert first_sig_signer['chain'][0]['sha256'] == "1A73BF16814D061CF5930634FBBD8A55E53DF2A556469C48FDF2623DFEEEE8A8"
assert first_sig_signer['chain'][1]['sha256'] == "51044706BD237B91B89B781337E6D62656C69F0FCFFBE8E43741367948127862"
assert first_sig_signer['chain'][2]['sha256'] == "3E9099B5015E8F486C00BCEA9D111EE721FABA355A89BCF1DF69561E3DC6325C"
first_sig_countersig = first_sig_signer['counterSigners'][0]
assert len(first_sig_countersig['warnings']) == 0
assert first_sig_countersig['signTime'] == "Jan 24 02:14:31 2016 GMT"
assert first_sig_countersig['digest'] == 'F5D8409366948F3B1185F0D7032759C5A1E2FAF5'
assert first_sig_countersig['digestAlgorithm'] == 'sha1'
assert len(first_sig_countersig['chain']) == 2
assert first_sig_countersig['chain'][0]['sha256'] == "0374881C9B74D31F28DC580B0F2B9D2B14A97CE31CBEC2A05AEB377DCDDCC2B0"
assert first_sig_countersig['chain'][1]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
class Test6(Test):
settings = TestSettings(
tool='fileinfo',
input='f77acb4e1523b882f5307864345e5f7d20a657a7f40863bd7ae41d2521703fec',
args='--json --verbose'
)
def test_certificates(self):
assert self.fileinfo.succeeded
assert self.fileinfo.output['digitalSignatures']['numberOfSignatures'] == 2
first_sig = self.fileinfo.output['digitalSignatures']['signatures'][0]
assert first_sig['digestAlgorithm'] == 'sha1'
assert first_sig['fileDigest'] == 'A6BE6C062A26427A722571FD634838DD2FE3743D'
assert first_sig['signedDigest'] == 'A6BE6C062A26427A722571FD634838DD2FE3743D'
assert first_sig['signatureVerified'] == True
assert len(first_sig['warnings']) == 0
assert len(first_sig['allCertificates']) == 7
first_sig_signer = first_sig['signer']
assert first_sig_signer['digest'] == "5370C469214E0A599238F7FA851BD86E633FB4E2"
assert first_sig_signer['digestAlgorithm'] == 'sha1'
assert len(first_sig_signer['chain']) == 3
first_sig_countersig = first_sig_signer['counterSigners'][0]
assert first_sig_countersig['signTime'] == "Feb 1 14:55:04 2016 GMT"
assert first_sig_countersig['digest'] == 'B49D4C25284D735D3DCD7B3BBCE6FDA6828F774E'
assert first_sig_countersig['digestAlgorithm'] == 'sha1'
assert len(first_sig_countersig['warnings']) == 0
assert len(first_sig_countersig['chain']) == 2
second_sig = self.fileinfo.output['digitalSignatures']['signatures'][1]
assert second_sig['signatureVerified'] == True
assert len(second_sig['warnings']) == 0
assert second_sig['digestAlgorithm'] == 'sha256'
assert second_sig['fileDigest'] == '54227373068BB3F2721F0E9B849142F3B68FDDD43571A9327C3F9CA44420EEA8'
assert second_sig['signedDigest'] == '54227373068BB3F2721F0E9B849142F3B68FDDD43571A9327C3F9CA44420EEA8'
assert len(second_sig['allCertificates']) == 8
assert second_sig['allCertificates'][0]['sha256'] == "D09EDDF7DA800BCC3AC114852614124706D94EA473A98DB19BC4F4CB6AEE16A4"
assert second_sig['allCertificates'][1]['sha256'] == "5E6D2F88F617DC8B809AEE712445A41B3CDE26AF874A221A9DC98EA1DC68E3D5"
assert second_sig['allCertificates'][2]['sha256'] == "4F32D5DC00F715250ABCC486511E37F501A899DEB3BF7EA8ADBBD3AEF1C412DA"
assert second_sig['allCertificates'][3]['sha256'] == "687FA451382278FFF0C8B11F8D43D576671C6EB2BCEAB413FB83D965D06D2FF2"
assert second_sig['allCertificates'][4]['sha256'] == "52F0E1C4E58EC629291B60317F074671B85D7EA80D5B07273463534B32B40234"
assert second_sig['allCertificates'][5]['sha256'] == "5E6D2F88F617DC8B809AEE712445A41B3CDE26AF874A221A9DC98EA1DC68E3D5"
assert second_sig['allCertificates'][6]['sha256'] == "0374881C9B74D31F28DC580B0F2B9D2B14A97CE31CBEC2A05AEB377DCDDCC2B0"
assert second_sig['allCertificates'][7]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
second_sig_signer = second_sig['signer']
assert second_sig_signer['digest'] == "400EAD9ABBA5A18062E513E78DB4E7535A81F2B250C9E35A50D158DFA82CFD45"
assert second_sig_signer['digestAlgorithm'] == 'sha256'
assert len(second_sig_signer['chain']) == 3
assert second_sig_signer['chain'][0]['sha256'] == "D09EDDF7DA800BCC3AC114852614124706D94EA473A98DB19BC4F4CB6AEE16A4"
assert second_sig_signer['chain'][1]['sha256'] == "5E6D2F88F617DC8B809AEE712445A41B3CDE26AF874A221A9DC98EA1DC68E3D5"
assert second_sig_signer['chain'][2]['sha256'] == "52F0E1C4E58EC629291B60317F074671B85D7EA80D5B07273463534B32B40234"
second_sig_countersig = second_sig_signer['counterSigners'][0]
assert len(second_sig_countersig['warnings']) == 0
assert second_sig_countersig['signTime'] == "Feb 1 14:55:06 2016 GMT"
assert second_sig_countersig['digest'] == '46A76769C69B78945E9B12594F638A943017F26E'
assert second_sig_countersig['digestAlgorithm'] == 'sha1'
assert len(second_sig_countersig['chain']) == 2
assert second_sig_countersig['chain'][0]['sha256'] == "0374881C9B74D31F28DC580B0F2B9D2B14A97CE31CBEC2A05AEB377DCDDCC2B0"
assert second_sig_countersig['chain'][1]['sha256'] == "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95"
class Test7(Test):
settings = TestSettings(
tool='fileinfo',
input='msenvmnu.dll',
args='--json --verbose'
)
def test_certificates(self):
assert self.fileinfo.succeeded
assert self.fileinfo.output['digitalSignatures']['numberOfSignatures'] == 2
first_sig = self.fileinfo.output['digitalSignatures']['signatures'][0]
assert first_sig['signatureVerified'] == True
assert len(first_sig['warnings']) == 0
assert first_sig['digestAlgorithm'] == 'sha1'
assert first_sig['fileDigest'] == '798D33E74F6F28A62A336C61CF81AE0277F47516'
assert first_sig['signedDigest'] == '798D33E74F6F28A62A336C61CF81AE0277F47516'
assert first_sig['programName'] == 'msenvmnu.dll'
assert len(first_sig['allCertificates']) == 4
first_sig_signer = first_sig['signer']
assert first_sig_signer['digest'] == "BC70A3256BE34E5FBB8874E3E6D58664F3F27BE5"
assert first_sig_signer['digestAlgorithm'] == 'sha1'
assert len(first_sig_signer['chain']) == 2
first_sig_countersig = first_sig_signer['counterSigners'][0]
assert first_sig_countersig['signTime'] == "Jul 7 07:30:56 2015 GMT"
assert first_sig_countersig['digest'] == '7F95DBB284EFE07428573201F47342592CA9E007'
assert first_sig_countersig['digestAlgorithm'] == 'sha1'
assert len(first_sig_countersig['warnings']) == 0
assert len(first_sig_countersig['chain']) == 2
second_sig = self.fileinfo.output['digitalSignatures']['signatures'][1]
assert second_sig['signatureVerified'] == True
assert len(second_sig['warnings']) == 0
assert second_sig['digestAlgorithm'] == 'sha256'
assert second_sig['fileDigest'] == '5BFB3AB09F359E11D76D95640BACB3A6CD65F2EF0D1763DC47D0B7F7203D22B7'
assert second_sig['signedDigest'] == '5BFB3AB09F359E11D76D95640BACB3A6CD65F2EF0D1763DC47D0B7F7203D22B7'
assert first_sig['programName'] == 'msenvmnu.dll'
assert len(second_sig['allCertificates']) == 2
assert second_sig['allCertificates'][0]['sha1'] == "76DAF3E30F95B244CA4D6107E0243BB97F7DF965"
assert second_sig['allCertificates'][1]['sha1'] == "F252E794FE438E35ACE6E53762C0A234A2C52135"
second_sig_signer = second_sig['signer']
assert second_sig_signer['digest'] == "2B80E8B619EDC847B62A8A58785C70830B10ACA6863FE30C590F5AE4034258E9"
assert second_sig_signer['digestAlgorithm'] == 'sha256'
assert len(second_sig_signer['chain']) == 2
second_sig_countersig = second_sig_signer['counterSigners'][0]
assert len(second_sig_countersig['warnings']) == 1
assert second_sig_countersig['warnings'][0] == "Couldn't parse signature"
class Test8(Test):
settings = TestSettings(
tool='fileinfo',
input='PdfConv_32.dll',
args='--json --verbose'
)
def test_certificates(self):
assert self.fileinfo.succeeded
assert self.fileinfo.output['digitalSignatures']['numberOfSignatures'] == 1
first_sig = self.fileinfo.output['digitalSignatures']['signatures'][0]
assert len(first_sig['warnings']) == 0
assert first_sig['digestAlgorithm'] == 'sha1'
assert first_sig['fileDigest'] == '714A802FB13B89160538890320E519F7A9260E84'
assert first_sig['signedDigest'] == '714A802FB13B89160538890320E519F7A9260E84'
assert len(first_sig['allCertificates']) == 4
assert first_sig['allCertificates'][0]['sha1'] == "DF946A5E503015777FD22F46B5624ECD27BEE376"
assert first_sig['allCertificates'][1]['sha1'] == "DF540F8FEDBA6454E039DD5E21B3B7C99E327B51"
assert first_sig['allCertificates'][2]['sha1'] == "F5AD0BCC1AD56CD150725B1C866C30AD92EF21B0"
assert first_sig['allCertificates'][3]['sha1'] == "B69E752BBE88B4458200A7C0F4F5B3CCE6F35B47"
first_sig_signer = first_sig['signer']
assert first_sig_signer['digest'] == "807D00A61C50095D308F33F29EDD644A06E5C514"
assert first_sig_signer['digestAlgorithm'] == 'sha1'
assert len(first_sig_signer['chain']) == 3
first_sig_countersig = first_sig_signer['counterSigners'][0]
assert len(first_sig_countersig['warnings']) == 0
assert first_sig_countersig['signTime'] == "Aug 14 07:58:15 2015 GMT"
assert first_sig_countersig['digest'] == 'FDD38655C08F04B887C4992656CD4F35DE6E6A07'
assert first_sig_countersig['digestAlgorithm'] == 'sha1'
assert len(first_sig_countersig['chain']) == 1
assert first_sig_countersig['chain'][0]['sha256'] == "12F0A1DDF83D265B205B4F3BCA43B3FA89A748E9834EC24004774FD2FDE34073"
class Test9(Test):
settings = TestSettings(
tool='fileinfo',
input='thunderbird.ex',
args='--json --verbose'
)
def test_certificates(self):
assert self.fileinfo.succeeded
assert self.fileinfo.output['digitalSignatures']['numberOfSignatures'] == 1
first_sig = self.fileinfo.output['digitalSignatures']['signatures'][0]
assert len(first_sig['warnings']) == 0
assert first_sig['digestAlgorithm'] == 'sha1'
assert first_sig['fileDigest'] == '0813562802948CCB60D288A84147671FBFC10CD4'
assert first_sig['signedDigest'] == '0813562802948CCB60D288A84147671FBFC10CD4'
assert len(first_sig['allCertificates']) == 5
first_sig_signer = first_sig['signer']
assert first_sig_signer['digest'] == "A6549FE9A61275AD574F53D2A299138E534780E6"
assert first_sig_signer['digestAlgorithm'] == 'sha1'
assert len(first_sig_signer['chain']) == 3
first_sig_countersig = first_sig_signer['counterSigners'][0]
assert len(first_sig_countersig['warnings']) == 0
assert first_sig_countersig['signTime'] == "Feb 11 22:09:49 2016 GMT"
assert first_sig_countersig['digest'] == 'BEFD25FA1E19A6D90B1918D4E06E465FE3BC57E3'
assert first_sig_countersig['digestAlgorithm'] == 'sha1'
assert len(first_sig_countersig['chain']) == 2
class Test10(Test):
settings = TestSettings(
tool='fileinfo',
input='VSTST-FileConverter.ex',
args='--json --verbose'
)
def test_certificates(self):
assert self.fileinfo.succeeded
assert self.fileinfo.output['digitalSignatures']['numberOfSignatures'] == 2
first_sig = self.fileinfo.output['digitalSignatures']['signatures'][0]
assert first_sig['digestAlgorithm'] == 'sha1'
assert first_sig['fileDigest'] == '427DC17A763807D2DEAD406DDFD3AAE93F5CE235'
assert first_sig['signedDigest'] == '427DC17A763807D2DEAD406DDFD3AAE93F5CE235'
assert first_sig['programName'] == 'VSTST-FileConverter.exe'
assert first_sig['signatureVerified'] == True
assert len(first_sig['warnings']) == 0
assert len(first_sig['allCertificates']) == 4
assert first_sig['allCertificates'][0]['sha256'] == "E43F82BC40029F17DBB516613D1E1A96EC2940CE76E0A9CD5F53BA50175A8766"
assert first_sig['allCertificates'][1]['sha256'] == "67C529AD57B2AEDD4D248993324270C7064D4F6BDAAF70044D772D05C56001A4"
assert first_sig['allCertificates'][2]['sha256'] == "9CBF22FAE0DD53A7395556CE6154AA14A0D03360AA8C51CFEA05D1FD8819E043"
assert first_sig['allCertificates'][3]['sha256'] == "4F987BBE4E0D1DCF48FCEFC9239AC6E62EE9DF38CAC2D32993B8533CD95C2E49"
first_sig_signer = first_sig['signer']
assert first_sig_signer['digest'] == "C66CA59AF0B63A5758EC97F74FA33C686DBD06D0"
assert first_sig_signer['digestAlgorithm'] == 'sha1'
assert len(first_sig_signer['chain']) == 2
first_sig_countersig = first_sig_signer['counterSigners'][0]
assert first_sig_countersig['signTime'] == "Jul 7 07:34:43 2015 GMT"
assert first_sig_countersig['digest'] == 'C29360ED776638FE506A2641A5F13A9975EA9945'
assert first_sig_countersig['digestAlgorithm'] == 'sha1'
assert len(first_sig_countersig['warnings']) == 0
assert len(first_sig_countersig['chain']) == 2
second_sig = self.fileinfo.output['digitalSignatures']['signatures'][1]
assert second_sig['signatureVerified'] == True
assert len(second_sig['warnings']) == 0
assert second_sig['digestAlgorithm'] == 'sha256'
assert second_sig['fileDigest'] == '7E6B06384FF2B27537F0AC76E311C116434D02DBC735FAF113B6EFD6D629F74C'
assert second_sig['signedDigest'] == '7E6B06384FF2B27537F0AC76E311C116434D02DBC735FAF113B6EFD6D629F74C'
assert first_sig['programName'] == 'VSTST-FileConverter.exe'
assert len(second_sig['allCertificates']) == 2
assert second_sig['allCertificates'][0]['sha256'] == "BD3FCED7A02EA9A18CEBC0628AF487A2925960BE8A88A35609666FA7901987AA"
assert second_sig['allCertificates'][1]['sha256'] == "56DA8722AFD94066FFE1E4595473A4854892B843A0827D53FB7D8F4AEED1E18B"
second_sig_signer = second_sig['signer']
assert second_sig_signer['digest'] == "61A1F261448BCD1CC8AB9F03DF0209951734455840B2B0C2CFB11FC1DB0C1A81"
assert second_sig_signer['digestAlgorithm'] == 'sha256'
assert len(second_sig_signer['chain']) == 2
second_sig_countersig = second_sig_signer['counterSigners'][0]
assert len(second_sig_countersig['warnings']) == 1
assert second_sig_countersig['warnings'][0] == "Couldn't parse signature"
class TestEscaping(Test):
settings = TestSettings(
tool='fileinfo',
input='3708882e564ba289416f65cb4cb2b4de',
args='--json --verbose'
)
def test_certificates(self):
assert self.fileinfo.succeeded
self.assertEqual(
len(self.fileinfo.output["digitalSignatures"]["signatures"][0]['allCertificates']), 4)
self.assertEqual(self.fileinfo.output["digitalSignatures"]['signatures'][0]['signer']['chain'][0]
["sha256"], "9D5DC543A16E3B97AA12ABB6A09C9393C1F6778E475D95C81607335D5D19AF8B")
self.assertEqual(self.fileinfo.output["digitalSignatures"]['signatures'][0]['signer']['chain'][1]
["sha256"], "0D34394100E961CE4318DBA9B8DD38EBC25BB07AEF78FDA3FFF632685549BA0F")
self.assertEqual(self.fileinfo.output["digitalSignatures"]['signatures'][0]['signer']['counterSigners'][0]['chain'][0]
["sha256"], "0374881C9B74D31F28DC580B0F2B9D2B14A97CE31CBEC2A05AEB377DCDDCC2B0")
self.assertEqual(self.fileinfo.output["digitalSignatures"]['signatures'][0]['signer']['counterSigners'][0]['chain'][1]
["sha256"], "0625FEE1A80D7B897A9712249C2F55FF391D6661DBD8B87F9BE6F252D88CED95")
self.assertEqual(self.fileinfo.output["digitalSignatures"]['signatures'][0]['signer']['chain'][0]
["attributes"]["subject"]["locality"], R"M\xfcnchen")
class Test11(Test):
settings = TestSettings(
tool='fileinfo',
args='--json --verbose',
input='x86-pe-ff6717faf307cdc5ba2d07e320cb8e33'
)
def test_certificates(self):
assert self.fileinfo.succeeded
assert self.fileinfo.output['digitalSignatures']['numberOfSignatures'] == 1
first_sig = self.fileinfo.output['digitalSignatures']['signatures'][0]
assert len(first_sig['warnings']) == 0
assert first_sig['digestAlgorithm'] == 'sha1'
assert first_sig['fileDigest'] == 'F48199821F5D51C334E00532FABB05E3F2D3D92C'
assert first_sig['signedDigest'] == 'F48199821F5D51C334E00532FABB05E3F2D3D92C'
assert len(first_sig['allCertificates']) == 3
assert first_sig['allCertificates'][0]['sha1'] == "C5DAAAEAA82AAF90C2963CE7432E934A8DE17D51"
assert first_sig['allCertificates'][1]['sha1'] == "7C4656C3061F7F4C0D67B319A855F60EBC11FC44"
assert first_sig['allCertificates'][2]['sha1'] == "2796BAE63F1801E277261BA0D77770028F20EEE4"
first_sig_signer = first_sig['signer']
assert first_sig_signer['digest'] == "9C6BCEE73B8C669764AEDB8046C064C71C5B6A27"
assert first_sig_signer['digestAlgorithm'] == 'sha1'
assert len(first_sig_signer['chain']) == 3
class Test12(Test):
settings = TestSettings(
tool='fileinfo',
input='002720d5ed0df9fe550d52145a44268d24b6368c61065be070e3319b9a67b082',
args='-j -v'
)
def test(self):
assert self.fileinfo.succeeded
assert self.fileinfo.output['digitalSignatures']['numberOfSignatures'] == 2
assert len(self.fileinfo.output['digitalSignatures']['signatures']) == 2
first_signature = self.fileinfo.output['digitalSignatures']['signatures'][0]
assert first_signature['signatureVerified'] == True
assert len(first_signature['warnings']) == 0
assert len(first_signature['allCertificates']) == 6
assert first_signature['fileDigest'] == 'D643405056A4A16042D47942A8C6A59524BDA64A'
assert first_signature['fileDigest'] == first_signature['signedDigest']
assert first_signature['digestAlgorithm'] == 'sha1'
signer = first_signature['signer']
assert len(signer['warnings']) == 0
assert signer['digest'] == '2C39C585984D98957CA03802F8C255EE4359D8EE'
assert signer['digestAlgorithm'] == 'sha1'
assert len(signer['chain']) == 4
assert len(signer['counterSigners']) == 1
counter_signer = signer['counterSigners'][0]
assert len(counter_signer['warnings']) == 0
assert len(counter_signer['chain']) == 2
assert counter_signer['signTime'] == 'Aug 21 14:53:13 2017 GMT'
assert counter_signer['digest'] == '1530CD732860961182222E7C955AEF70BD0BA570'
assert counter_signer['digestAlgorithm'] == 'sha1'
#######################################################################
second_signature = self.fileinfo.output['digitalSignatures']['signatures'][1]
assert second_signature['signatureVerified'] == True
assert len(second_signature['warnings']) == 0
assert len(first_signature['allCertificates']) == 6
assert second_signature['fileDigest'] == '75CACDF5BE7BAEECB89C70BC01343FB7C9E8FD000CC191F08D2A996359D617FE'
assert second_signature['fileDigest'] == second_signature['signedDigest']
assert second_signature['digestAlgorithm'] == 'sha256'
signer = second_signature['signer']
assert len(signer['warnings']) == 0
assert signer['digest'] == '018A36C7429C0058101D3F087E69E27824CC68FEC8A745B8AF59D5D225BBDB77'
assert signer['digestAlgorithm'] == 'sha256'
assert len(signer['chain']) == 4
assert len(signer['counterSigners']) == 1
counter_signer = signer['counterSigners'][0]
assert len(counter_signer['warnings']) == 0
assert len(counter_signer['chain']) == 2
assert counter_signer['signTime'] == 'Aug 21 14:53:39 2017 GMT'
assert counter_signer['digest'] == '32344850DE23CE4A6312A69CC355AC6D16968964'
assert counter_signer['digestAlgorithm'] == 'sha1'
class TestProgramName(Test):
settings = TestSettings(
tool='fileinfo',
input='0059fb3f225c5784789622eeccb97197d591972851b63d59f5bd107ddfdb7a21',
args='-j -v'
)
def test(self):
assert self.fileinfo.succeeded
assert self.fileinfo.output['digitalSignatures']['numberOfSignatures'] == 1
first_signature = self.fileinfo.output['digitalSignatures']['signatures'][0]
assert first_signature['programName'] == "GoTo Opener"
| 57.938272
| 163
| 0.721372
| 3,842
| 46,930
| 8.623634
| 0.085632
| 0.070264
| 0.077327
| 0.050767
| 0.782778
| 0.752535
| 0.681728
| 0.641253
| 0.634281
| 0.631263
| 0
| 0.207443
| 0.156574
| 46,930
| 809
| 164
| 58.009889
| 0.629604
| 0.001385
| 0
| 0.648562
| 0
| 0.007987
| 0.464161
| 0.267995
| 0
| 0
| 0
| 0
| 0.72524
| 1
| 0.022364
| false
| 0
| 0.001597
| 0
| 0.06869
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ab180e51c94b6c40621e5bfdc60ef7316f264c2c
| 111
|
py
|
Python
|
app/darn.py
|
AmitSrourDev/darn
|
c04b681881620ffed2e1e0788d9cd80da7f806c4
|
[
"BSD-2-Clause"
] | null | null | null |
app/darn.py
|
AmitSrourDev/darn
|
c04b681881620ffed2e1e0788d9cd80da7f806c4
|
[
"BSD-2-Clause"
] | null | null | null |
app/darn.py
|
AmitSrourDev/darn
|
c04b681881620ffed2e1e0788d9cd80da7f806c4
|
[
"BSD-2-Clause"
] | null | null | null |
import subprocess
def run(cmd):
subprocess.run(cmd.split(' '))
def ls():
subprocess.call(["ls", "-l"])
| 18.5
| 34
| 0.612613
| 15
| 111
| 4.533333
| 0.6
| 0.176471
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.162162
| 111
| 6
| 35
| 18.5
| 0.731183
| 0
| 0
| 0
| 0
| 0
| 0.044643
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0.2
| 0
| 0.6
| 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
|
ab24554d8fbfa3bde2693fe79ec073ac02c9f577
| 177
|
py
|
Python
|
src/profiles/forms.py
|
rahulroshan96/CloudVisual
|
aa33709d88442bcdbe3229234b4eb4f9abb4481e
|
[
"MIT",
"Unlicense"
] | null | null | null |
src/profiles/forms.py
|
rahulroshan96/CloudVisual
|
aa33709d88442bcdbe3229234b4eb4f9abb4481e
|
[
"MIT",
"Unlicense"
] | 4
|
2020-06-05T19:43:52.000Z
|
2021-06-01T23:15:44.000Z
|
src/profiles/forms.py
|
rahulroshan96/CloudVisual
|
aa33709d88442bcdbe3229234b4eb4f9abb4481e
|
[
"MIT",
"Unlicense"
] | null | null | null |
from django import forms
from models import UserInputModel
class UserInputForm(forms.ModelForm):
class Meta:
model = UserInputModel
fields = ['user_input']
| 22.125
| 37
| 0.717514
| 19
| 177
| 6.631579
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.220339
| 177
| 8
| 38
| 22.125
| 0.913043
| 0
| 0
| 0
| 0
| 0
| 0.05618
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
db4a75d192569c27cd0ea38a505083fba87c919d
| 67
|
py
|
Python
|
test/__init__.py
|
donbowman/rdflib
|
c1be731c8e6bbe997cc3f25890bbaf685499c517
|
[
"BSD-3-Clause"
] | 1,424
|
2015-01-04T13:10:22.000Z
|
2022-03-29T15:12:38.000Z
|
test/__init__.py
|
donbowman/rdflib
|
c1be731c8e6bbe997cc3f25890bbaf685499c517
|
[
"BSD-3-Clause"
] | 1,148
|
2015-01-01T18:26:18.000Z
|
2022-03-31T21:51:53.000Z
|
test/__init__.py
|
jjon/rdflib
|
4c2ab7b392b353bf3c6088017ec9351ce8ac3db6
|
[
"BSD-3-Clause"
] | 459
|
2015-01-03T14:41:34.000Z
|
2022-03-14T22:06:47.000Z
|
#
import os
TEST_DIR = os.path.abspath(os.path.dirname(__file__))
| 13.4
| 53
| 0.746269
| 11
| 67
| 4.090909
| 0.727273
| 0.266667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104478
| 67
| 4
| 54
| 16.75
| 0.75
| 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
|
db55b37705e1ee35cb592342b49dbe69963ce12a
| 105
|
py
|
Python
|
django_app/DataEntrySystem/apps.py
|
Hezepeng/Financial-Acquisition-And-Editing-System
|
0781101e596a31d90bcfa3d67622472c04c6149f
|
[
"MIT"
] | null | null | null |
django_app/DataEntrySystem/apps.py
|
Hezepeng/Financial-Acquisition-And-Editing-System
|
0781101e596a31d90bcfa3d67622472c04c6149f
|
[
"MIT"
] | null | null | null |
django_app/DataEntrySystem/apps.py
|
Hezepeng/Financial-Acquisition-And-Editing-System
|
0781101e596a31d90bcfa3d67622472c04c6149f
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class DataentrysystemConfig(AppConfig):
name = 'DataEntrySystem'
| 17.5
| 39
| 0.790476
| 10
| 105
| 8.3
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 105
| 5
| 40
| 21
| 0.922222
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 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
|
db847e24bb7a6401d0b23e464a5ea391ad69edb8
| 89
|
py
|
Python
|
taurex/data/profiles/__init__.py
|
rychallener/TauREx3_public
|
eb0eeeeca8f47e5e7d64d8d70b43a3af370b7677
|
[
"BSD-3-Clause"
] | 10
|
2019-12-18T09:19:16.000Z
|
2021-06-21T11:02:06.000Z
|
taurex/data/profiles/__init__.py
|
rychallener/TauREx3_public
|
eb0eeeeca8f47e5e7d64d8d70b43a3af370b7677
|
[
"BSD-3-Clause"
] | 10
|
2020-03-24T18:02:15.000Z
|
2021-08-23T20:32:09.000Z
|
taurex/data/profiles/__init__.py
|
rychallener/TauREx3_public
|
eb0eeeeca8f47e5e7d64d8d70b43a3af370b7677
|
[
"BSD-3-Clause"
] | 8
|
2020-03-26T14:16:42.000Z
|
2021-12-18T22:11:25.000Z
|
"""
These modules contain sub-modules related to defining various profiles in a model
"""
| 29.666667
| 81
| 0.775281
| 13
| 89
| 5.307692
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146067
| 89
| 3
| 82
| 29.666667
| 0.907895
| 0.910112
| 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
|
dbbd1a19c06924421a7c2e88261ac232f18c11f4
| 83
|
py
|
Python
|
unsorted/pythonsnippets_0013.py
|
fiddlerwoaroof/sandbox
|
652acaf710a8b60f005769bde317e7bbf548cc2b
|
[
"BSD-3-Clause"
] | null | null | null |
unsorted/pythonsnippets_0013.py
|
fiddlerwoaroof/sandbox
|
652acaf710a8b60f005769bde317e7bbf548cc2b
|
[
"BSD-3-Clause"
] | null | null | null |
unsorted/pythonsnippets_0013.py
|
fiddlerwoaroof/sandbox
|
652acaf710a8b60f005769bde317e7bbf548cc2b
|
[
"BSD-3-Clause"
] | null | null | null |
from twisted.internet import reactor
reactor.listenTCP(8789, factory)
reactor.run()
| 27.666667
| 36
| 0.831325
| 11
| 83
| 6.272727
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.051948
| 0.072289
| 83
| 3
| 37
| 27.666667
| 0.844156
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
dbd150b0b609e70f340c545eccce6da7fadb2eeb
| 86
|
py
|
Python
|
skorecard/metrics/__init__.py
|
orchardbirds/skorecard-1
|
0f5375a6c159bb35f4b62c5be75a742bf50885e2
|
[
"MIT"
] | null | null | null |
skorecard/metrics/__init__.py
|
orchardbirds/skorecard-1
|
0f5375a6c159bb35f4b62c5be75a742bf50885e2
|
[
"MIT"
] | null | null | null |
skorecard/metrics/__init__.py
|
orchardbirds/skorecard-1
|
0f5375a6c159bb35f4b62c5be75a742bf50885e2
|
[
"MIT"
] | null | null | null |
"""Import required Metric."""
from .metrics import IV_scorer
__all__ = ["IV_scorer"]
| 17.2
| 30
| 0.72093
| 11
| 86
| 5.090909
| 0.727273
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.127907
| 86
| 4
| 31
| 21.5
| 0.746667
| 0.267442
| 0
| 0
| 0
| 0
| 0.157895
| 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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.