repo stringlengths 7 55 | path stringlengths 4 223 | func_name stringlengths 1 134 | original_string stringlengths 75 104k | language stringclasses 1
value | code stringlengths 75 104k | code_tokens listlengths 19 28.4k | docstring stringlengths 1 46.9k | docstring_tokens listlengths 1 1.97k | sha stringlengths 40 40 | url stringlengths 87 315 | partition stringclasses 3
values | summary stringlengths 4 350 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
StackStorm/pybind | pybind/nos/v6_0_2f/interface/__init__.py | interface._set_tengigabitethernet | def _set_tengigabitethernet(self, v, load=False):
"""
Setter method for tengigabitethernet, mapped from YANG variable /interface/tengigabitethernet (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_tengigabitethernet is considered as a private
method. Backends l... | python | def _set_tengigabitethernet(self, v, load=False):
"""
Setter method for tengigabitethernet, mapped from YANG variable /interface/tengigabitethernet (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_tengigabitethernet is considered as a private
method. Backends l... | [
"def",
"_set_tengigabitethernet",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
","... | Setter method for tengigabitethernet, mapped from YANG variable /interface/tengigabitethernet (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_tengigabitethernet is considered as a private
method. Backends looking to populate this variable should
do so via calling ... | [
"Setter",
"method",
"for",
"tengigabitethernet",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"tengigabitethernet",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/__init__.py#L169-L199 | train | Sets the value of the tengigabitethernet variable. |
StackStorm/pybind | pybind/nos/v6_0_2f/interface/__init__.py | interface._set_fortygigabitethernet | def _set_fortygigabitethernet(self, v, load=False):
"""
Setter method for fortygigabitethernet, mapped from YANG variable /interface/fortygigabitethernet (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_fortygigabitethernet is considered as a private
method. Ba... | python | def _set_fortygigabitethernet(self, v, load=False):
"""
Setter method for fortygigabitethernet, mapped from YANG variable /interface/fortygigabitethernet (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_fortygigabitethernet is considered as a private
method. Ba... | [
"def",
"_set_fortygigabitethernet",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
"... | Setter method for fortygigabitethernet, mapped from YANG variable /interface/fortygigabitethernet (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_fortygigabitethernet is considered as a private
method. Backends looking to populate this variable should
do so via ca... | [
"Setter",
"method",
"for",
"fortygigabitethernet",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"fortygigabitethernet",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"sou... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/__init__.py#L220-L250 | train | Set the value of fortygigabitethernet mapped from YANG variable name to ethernet interfaces. |
StackStorm/pybind | pybind/nos/v6_0_2f/interface/__init__.py | interface._set_hundredgigabitethernet | def _set_hundredgigabitethernet(self, v, load=False):
"""
Setter method for hundredgigabitethernet, mapped from YANG variable /interface/hundredgigabitethernet (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_hundredgigabitethernet is considered as a private
me... | python | def _set_hundredgigabitethernet(self, v, load=False):
"""
Setter method for hundredgigabitethernet, mapped from YANG variable /interface/hundredgigabitethernet (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_hundredgigabitethernet is considered as a private
me... | [
"def",
"_set_hundredgigabitethernet",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for hundredgigabitethernet, mapped from YANG variable /interface/hundredgigabitethernet (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_hundredgigabitethernet is considered as a private
method. Backends looking to populate this variable should
do so ... | [
"Setter",
"method",
"for",
"hundredgigabitethernet",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"hundredgigabitethernet",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/__init__.py#L271-L301 | train | Sets the value of HundredGigabitethernet in the base for the HundredGigabitethernet interface. |
StackStorm/pybind | pybind/nos/v6_0_2f/interface/__init__.py | interface._set_port_channel | def _set_port_channel(self, v, load=False):
"""
Setter method for port_channel, mapped from YANG variable /interface/port_channel (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_channel is considered as a private
method. Backends looking to populate this ... | python | def _set_port_channel(self, v, load=False):
"""
Setter method for port_channel, mapped from YANG variable /interface/port_channel (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_channel is considered as a private
method. Backends looking to populate this ... | [
"def",
"_set_port_channel",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for port_channel, mapped from YANG variable /interface/port_channel (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_channel is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_port_... | [
"Setter",
"method",
"for",
"port_channel",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/__init__.py#L316-L340 | train | Sets the port - channel of the
. |
StackStorm/pybind | pybind/nos/v6_0_2f/interface/__init__.py | interface._set_management | def _set_management(self, v, load=False):
"""
Setter method for management, mapped from YANG variable /interface/management (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_management is considered as a private
method. Backends looking to populate this variable... | python | def _set_management(self, v, load=False):
"""
Setter method for management, mapped from YANG variable /interface/management (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_management is considered as a private
method. Backends looking to populate this variable... | [
"def",
"_set_management",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"bas... | Setter method for management, mapped from YANG variable /interface/management (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_management is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_management(... | [
"Setter",
"method",
"for",
"management",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"management",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"f... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/__init__.py#L355-L379 | train | Sets the value of management in the base
|
StackStorm/pybind | pybind/nos/v6_0_2f/interface/__init__.py | interface._set_fc_port | def _set_fc_port(self, v, load=False):
"""
Setter method for fc_port, mapped from YANG variable /interface/fc_port (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_fc_port is considered as a private
method. Backends looking to populate this variable should
... | python | def _set_fc_port(self, v, load=False):
"""
Setter method for fc_port, mapped from YANG variable /interface/fc_port (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_fc_port is considered as a private
method. Backends looking to populate this variable should
... | [
"def",
"_set_fc_port",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for fc_port, mapped from YANG variable /interface/fc_port (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_fc_port is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_fc_port() directly.
... | [
"Setter",
"method",
"for",
"fc_port",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"fc_port",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/__init__.py#L396-L422 | train | Sets the fc_port property of the managed
. |
StackStorm/pybind | pybind/nos/v6_0_2f/interface/__init__.py | interface._set_fcoe | def _set_fcoe(self, v, load=False):
"""
Setter method for fcoe, mapped from YANG variable /interface/fcoe (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe is considered as a private
method. Backends looking to populate this variable should
do so via ca... | python | def _set_fcoe(self, v, load=False):
"""
Setter method for fcoe, mapped from YANG variable /interface/fcoe (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe is considered as a private
method. Backends looking to populate this variable should
do so via ca... | [
"def",
"_set_fcoe",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for fcoe, mapped from YANG variable /interface/fcoe (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_fcoe() directly.
YANG De... | [
"Setter",
"method",
"for",
"fcoe",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"fcoe",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"the... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/__init__.py#L437-L461 | train | Set the value of the FCoE Logical interfaces in the order they appear. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/interface/port_channel/switchport/port_security/__init__.py | port_security._set_port_security_mac_address | def _set_port_security_mac_address(self, v, load=False):
"""
Setter method for port_security_mac_address, mapped from YANG variable /interface/port_channel/switchport/port_security/port_security_mac_address (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_secu... | python | def _set_port_security_mac_address(self, v, load=False):
"""
Setter method for port_security_mac_address, mapped from YANG variable /interface/port_channel/switchport/port_security/port_security_mac_address (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_secu... | [
"def",
"_set_port_security_mac_address",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v"... | Setter method for port_security_mac_address, mapped from YANG variable /interface/port_channel/switchport/port_security/port_security_mac_address (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_security_mac_address is considered as a private
method. Backends look... | [
"Setter",
"method",
"for",
"port_security_mac_address",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"switchport",
"/",
"port_security",
"/",
"port_security_mac_address",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/interface/port_channel/switchport/port_security/__init__.py#L175-L198 | train | Sets the port - security - mac - address of the non - vlan port |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/__init__.py | rbridge_id._set_filter_change_update_delay | def _set_filter_change_update_delay(self, v, load=False):
"""
Setter method for filter_change_update_delay, mapped from YANG variable /rbridge_id/filter_change_update_delay (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_filter_change_update_delay is considered as... | python | def _set_filter_change_update_delay(self, v, load=False):
"""
Setter method for filter_change_update_delay, mapped from YANG variable /rbridge_id/filter_change_update_delay (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_filter_change_update_delay is considered as... | [
"def",
"_set_filter_change_update_delay",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v... | Setter method for filter_change_update_delay, mapped from YANG variable /rbridge_id/filter_change_update_delay (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_filter_change_update_delay is considered as a private
method. Backends looking to populate this variable shou... | [
"Setter",
"method",
"for",
"filter_change_update_delay",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"filter_change_update_delay",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/__init__.py#L1176-L1199 | train | Sets the value of filter_change_update_delay in the
|
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/ssh/server/ssh_vrf_cont/__init__.py | ssh_vrf_cont._set_use_vrf | def _set_use_vrf(self, v, load=False):
"""
Setter method for use_vrf, mapped from YANG variable /rbridge_id/ssh/server/ssh_vrf_cont/use_vrf (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_use_vrf is considered as a private
method. Backends looking to populate ... | python | def _set_use_vrf(self, v, load=False):
"""
Setter method for use_vrf, mapped from YANG variable /rbridge_id/ssh/server/ssh_vrf_cont/use_vrf (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_use_vrf is considered as a private
method. Backends looking to populate ... | [
"def",
"_set_use_vrf",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for use_vrf, mapped from YANG variable /rbridge_id/ssh/server/ssh_vrf_cont/use_vrf (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_use_vrf is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj.... | [
"Setter",
"method",
"for",
"use_vrf",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"ssh",
"/",
"server",
"/",
"ssh_vrf_cont",
"/",
"use_vrf",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"fal... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/ssh/server/ssh_vrf_cont/__init__.py#L92-L113 | train | Set the use_vrf field of the
. |
BD2KGenomics/protect | src/protect/common.py | get_files_from_filestore | def get_files_from_filestore(job, files, work_dir, docker=False):
"""
Download a dict of files to the given directory and modify the path to a docker-friendly one if
requested.
:param dict files: A dictionary of filenames: fsIDs
:param str work_dir: The destination directory
:param bool docker:... | python | def get_files_from_filestore(job, files, work_dir, docker=False):
"""
Download a dict of files to the given directory and modify the path to a docker-friendly one if
requested.
:param dict files: A dictionary of filenames: fsIDs
:param str work_dir: The destination directory
:param bool docker:... | [
"def",
"get_files_from_filestore",
"(",
"job",
",",
"files",
",",
"work_dir",
",",
"docker",
"=",
"False",
")",
":",
"for",
"name",
"in",
"files",
".",
"keys",
"(",
")",
":",
"outfile",
"=",
"job",
".",
"fileStore",
".",
"readGlobalFile",
"(",
"files",
... | Download a dict of files to the given directory and modify the path to a docker-friendly one if
requested.
:param dict files: A dictionary of filenames: fsIDs
:param str work_dir: The destination directory
:param bool docker: Should the file path be converted to our standard docker '/data/filename'?
... | [
"Download",
"a",
"dict",
"of",
"files",
"to",
"the",
"given",
"directory",
"and",
"modify",
"the",
"path",
"to",
"a",
"docker",
"-",
"friendly",
"one",
"if",
"requested",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L45-L64 | train | Download a dict of files to the given directory and modify the path to a docker - friendly one |
BD2KGenomics/protect | src/protect/common.py | docker_path | def docker_path(filepath, work_dir=None):
"""
Given a path, return that files path inside the docker mount directory (/data).
:param str filepath: The path to a file
:param str work_dir: The part of the path to replace with /data
:return: The docker-friendly path for `filepath`
:rtype: str
... | python | def docker_path(filepath, work_dir=None):
"""
Given a path, return that files path inside the docker mount directory (/data).
:param str filepath: The path to a file
:param str work_dir: The part of the path to replace with /data
:return: The docker-friendly path for `filepath`
:rtype: str
... | [
"def",
"docker_path",
"(",
"filepath",
",",
"work_dir",
"=",
"None",
")",
":",
"if",
"work_dir",
":",
"return",
"re",
".",
"sub",
"(",
"work_dir",
",",
"'/data'",
",",
"filepath",
")",
"else",
":",
"return",
"os",
".",
"path",
".",
"join",
"(",
"'/da... | Given a path, return that files path inside the docker mount directory (/data).
:param str filepath: The path to a file
:param str work_dir: The part of the path to replace with /data
:return: The docker-friendly path for `filepath`
:rtype: str | [
"Given",
"a",
"path",
"return",
"that",
"files",
"path",
"inside",
"the",
"docker",
"mount",
"directory",
"(",
"/",
"data",
")",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L67-L80 | train | Given a path return that files path inside the docker mount directory. |
BD2KGenomics/protect | src/protect/common.py | gunzip | def gunzip(input_gzip_file, block_size=1024):
"""
Gunzips the input file to the same directory
:param input_gzip_file: File to be gunzipped
:return: path to the gunzipped file
:rtype: str
"""
assert os.path.splitext(input_gzip_file)[1] == '.gz'
assert is_gzipfile(input_gzip_file)
wi... | python | def gunzip(input_gzip_file, block_size=1024):
"""
Gunzips the input file to the same directory
:param input_gzip_file: File to be gunzipped
:return: path to the gunzipped file
:rtype: str
"""
assert os.path.splitext(input_gzip_file)[1] == '.gz'
assert is_gzipfile(input_gzip_file)
wi... | [
"def",
"gunzip",
"(",
"input_gzip_file",
",",
"block_size",
"=",
"1024",
")",
":",
"assert",
"os",
".",
"path",
".",
"splitext",
"(",
"input_gzip_file",
")",
"[",
"1",
"]",
"==",
"'.gz'",
"assert",
"is_gzipfile",
"(",
"input_gzip_file",
")",
"with",
"gzip"... | Gunzips the input file to the same directory
:param input_gzip_file: File to be gunzipped
:return: path to the gunzipped file
:rtype: str | [
"Gunzips",
"the",
"input",
"file",
"to",
"the",
"same",
"directory"
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L163-L181 | train | Gunzips the input file to the same directory as the gunzipped file. |
BD2KGenomics/protect | src/protect/common.py | is_gzipfile | def is_gzipfile(filename):
"""
Attempt to ascertain the gzip status of a file based on the "magic signatures" of the file.
This was taken from the stack overflow post
http://stackoverflow.com/questions/13044562/python-mechanism-to-identify-compressed-file-type\
-and-uncompress
:param str f... | python | def is_gzipfile(filename):
"""
Attempt to ascertain the gzip status of a file based on the "magic signatures" of the file.
This was taken from the stack overflow post
http://stackoverflow.com/questions/13044562/python-mechanism-to-identify-compressed-file-type\
-and-uncompress
:param str f... | [
"def",
"is_gzipfile",
"(",
"filename",
")",
":",
"assert",
"os",
".",
"path",
".",
"exists",
"(",
"filename",
")",
",",
"'Input {} does not '",
".",
"format",
"(",
"filename",
")",
"+",
"'point to a file.'",
"with",
"open",
"(",
"filename",
",",
"'rb'",
")... | Attempt to ascertain the gzip status of a file based on the "magic signatures" of the file.
This was taken from the stack overflow post
http://stackoverflow.com/questions/13044562/python-mechanism-to-identify-compressed-file-type\
-and-uncompress
:param str filename: A path to a file
:return: ... | [
"Attempt",
"to",
"ascertain",
"the",
"gzip",
"status",
"of",
"a",
"file",
"based",
"on",
"the",
"magic",
"signatures",
"of",
"the",
"file",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L184-L203 | train | Checks if a file is gzipped and returns True if it is otherwise False. |
BD2KGenomics/protect | src/protect/common.py | get_file_from_gdc | def get_file_from_gdc(job, gdc_url, gdc_download_token, write_to_jobstore=True):
"""
Download a supplied "URL" that points to a file in the NCBI GDC database. The path to the gdc
download token must be provided. The file is downloaded and written to the jobstore if
requested.
:param str gdc_url: ... | python | def get_file_from_gdc(job, gdc_url, gdc_download_token, write_to_jobstore=True):
"""
Download a supplied "URL" that points to a file in the NCBI GDC database. The path to the gdc
download token must be provided. The file is downloaded and written to the jobstore if
requested.
:param str gdc_url: ... | [
"def",
"get_file_from_gdc",
"(",
"job",
",",
"gdc_url",
",",
"gdc_download_token",
",",
"write_to_jobstore",
"=",
"True",
")",
":",
"work_dir",
"=",
"job",
".",
"fileStore",
".",
"getLocalTempDir",
"(",
")",
"parsed_url",
"=",
"urlparse",
"(",
"gdc_url",
")",
... | Download a supplied "URL" that points to a file in the NCBI GDC database. The path to the gdc
download token must be provided. The file is downloaded and written to the jobstore if
requested.
:param str gdc_url: URL for the file (in the form of gdc://<UUID>)
:param str gdc_download_token: Path to the... | [
"Download",
"a",
"supplied",
"URL",
"that",
"points",
"to",
"a",
"file",
"in",
"the",
"NCBI",
"GDC",
"database",
".",
"The",
"path",
"to",
"the",
"gdc",
"download",
"token",
"must",
"be",
"provided",
".",
"The",
"file",
"is",
"downloaded",
"and",
"writte... | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L206-L248 | train | Download a supplied URL that points to a file in the NCBI GDC database and return the path to that file. |
BD2KGenomics/protect | src/protect/common.py | get_file_from_s3 | def get_file_from_s3(job, s3_url, encryption_key=None, per_file_encryption=True,
write_to_jobstore=True):
"""
Download a supplied URL that points to a file on Amazon S3. If the file is encrypted using
sse-c (with the user-provided key or with a hash of the usesr provided master key) th... | python | def get_file_from_s3(job, s3_url, encryption_key=None, per_file_encryption=True,
write_to_jobstore=True):
"""
Download a supplied URL that points to a file on Amazon S3. If the file is encrypted using
sse-c (with the user-provided key or with a hash of the usesr provided master key) th... | [
"def",
"get_file_from_s3",
"(",
"job",
",",
"s3_url",
",",
"encryption_key",
"=",
"None",
",",
"per_file_encryption",
"=",
"True",
",",
"write_to_jobstore",
"=",
"True",
")",
":",
"work_dir",
"=",
"job",
".",
"fileStore",
".",
"getLocalTempDir",
"(",
")",
"p... | Download a supplied URL that points to a file on Amazon S3. If the file is encrypted using
sse-c (with the user-provided key or with a hash of the usesr provided master key) then the
encryption keys will be used when downloading. The file is downloaded and written to the
jobstore if requested.
:param... | [
"Download",
"a",
"supplied",
"URL",
"that",
"points",
"to",
"a",
"file",
"on",
"Amazon",
"S3",
".",
"If",
"the",
"file",
"is",
"encrypted",
"using",
"sse",
"-",
"c",
"(",
"with",
"the",
"user",
"-",
"provided",
"key",
"or",
"with",
"a",
"hash",
"of",... | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L251-L334 | train | Download a file from an Amazon S3 URL and return the path to the file. |
BD2KGenomics/protect | src/protect/common.py | get_file_from_url | def get_file_from_url(job, any_url, encryption_key=None, per_file_encryption=True,
write_to_jobstore=True):
"""
Download a supplied URL that points to a file on an http, https or ftp server. If the file is
found to be an https s3 link then the file is downloaded using `get_file_from_s... | python | def get_file_from_url(job, any_url, encryption_key=None, per_file_encryption=True,
write_to_jobstore=True):
"""
Download a supplied URL that points to a file on an http, https or ftp server. If the file is
found to be an https s3 link then the file is downloaded using `get_file_from_s... | [
"def",
"get_file_from_url",
"(",
"job",
",",
"any_url",
",",
"encryption_key",
"=",
"None",
",",
"per_file_encryption",
"=",
"True",
",",
"write_to_jobstore",
"=",
"True",
")",
":",
"work_dir",
"=",
"job",
".",
"fileStore",
".",
"getLocalTempDir",
"(",
")",
... | Download a supplied URL that points to a file on an http, https or ftp server. If the file is
found to be an https s3 link then the file is downloaded using `get_file_from_s3`. The file is
downloaded and written to the jobstore if requested.
Encryption arguments are for passing to `get_file_from_s3` if req... | [
"Download",
"a",
"supplied",
"URL",
"that",
"points",
"to",
"a",
"file",
"on",
"an",
"http",
"https",
"or",
"ftp",
"server",
".",
"If",
"the",
"file",
"is",
"found",
"to",
"be",
"an",
"https",
"s3",
"link",
"then",
"the",
"file",
"is",
"downloaded",
... | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L337-L373 | train | Download a supplied URL that points to a file on an http or ftp server. |
BD2KGenomics/protect | src/protect/common.py | bam2fastq | def bam2fastq(bamfile, univ_options, picard_options):
"""
Split an input bam to paired fastqs.
:param str bamfile: Path to a bam file
:param dict univ_options: Dict of universal options used by almost all tools
:param dict picard_options: Dict of options specific to Picard
:return: Path to the ... | python | def bam2fastq(bamfile, univ_options, picard_options):
"""
Split an input bam to paired fastqs.
:param str bamfile: Path to a bam file
:param dict univ_options: Dict of universal options used by almost all tools
:param dict picard_options: Dict of options specific to Picard
:return: Path to the ... | [
"def",
"bam2fastq",
"(",
"bamfile",
",",
"univ_options",
",",
"picard_options",
")",
":",
"work_dir",
"=",
"os",
".",
"path",
".",
"split",
"(",
"bamfile",
")",
"[",
"0",
"]",
"base_name",
"=",
"os",
".",
"path",
".",
"split",
"(",
"os",
".",
"path",... | Split an input bam to paired fastqs.
:param str bamfile: Path to a bam file
:param dict univ_options: Dict of universal options used by almost all tools
:param dict picard_options: Dict of options specific to Picard
:return: Path to the _1.fastq file
:rtype: str | [
"Split",
"an",
"input",
"bam",
"to",
"paired",
"fastqs",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L376-L398 | train | Split an input bam to paired fastqs. |
BD2KGenomics/protect | src/protect/common.py | export_results | def export_results(job, fsid, file_name, univ_options, subfolder=None):
"""
Write out a file to a given location. The location can be either a directory on the local
machine, or a folder with a bucket on AWS.
:param str fsid: The file store id for the file to be exported
:param str file_name: The n... | python | def export_results(job, fsid, file_name, univ_options, subfolder=None):
"""
Write out a file to a given location. The location can be either a directory on the local
machine, or a folder with a bucket on AWS.
:param str fsid: The file store id for the file to be exported
:param str file_name: The n... | [
"def",
"export_results",
"(",
"job",
",",
"fsid",
",",
"file_name",
",",
"univ_options",
",",
"subfolder",
"=",
"None",
")",
":",
"job",
".",
"fileStore",
".",
"logToMaster",
"(",
"'Exporting %s to output location'",
"%",
"fsid",
")",
"file_name",
"=",
"os",
... | Write out a file to a given location. The location can be either a directory on the local
machine, or a folder with a bucket on AWS.
:param str fsid: The file store id for the file to be exported
:param str file_name: The name of the file that neeeds to be exported (path to file is also
acceptab... | [
"Write",
"out",
"a",
"file",
"to",
"a",
"given",
"location",
".",
"The",
"location",
"can",
"be",
"either",
"a",
"directory",
"on",
"the",
"local",
"machine",
"or",
"a",
"folder",
"with",
"a",
"bucket",
"on",
"AWS",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L401-L448 | train | This function is called by the exported_files method in the file store to export the results of the current state of the file store. |
BD2KGenomics/protect | src/protect/common.py | delete_fastqs | def delete_fastqs(job, patient_dict):
"""
Delete the fastqs from the job Store once their purpose has been achieved (i.e. after all
mapping steps)
:param dict patient_dict: Dict of list of input fastqs
"""
for key in patient_dict.keys():
if 'fastq' not in key:
continue
... | python | def delete_fastqs(job, patient_dict):
"""
Delete the fastqs from the job Store once their purpose has been achieved (i.e. after all
mapping steps)
:param dict patient_dict: Dict of list of input fastqs
"""
for key in patient_dict.keys():
if 'fastq' not in key:
continue
... | [
"def",
"delete_fastqs",
"(",
"job",
",",
"patient_dict",
")",
":",
"for",
"key",
"in",
"patient_dict",
".",
"keys",
"(",
")",
":",
"if",
"'fastq'",
"not",
"in",
"key",
":",
"continue",
"job",
".",
"fileStore",
".",
"logToMaster",
"(",
"'Deleting \"%s:%s\" ... | Delete the fastqs from the job Store once their purpose has been achieved (i.e. after all
mapping steps)
:param dict patient_dict: Dict of list of input fastqs | [
"Delete",
"the",
"fastqs",
"from",
"the",
"job",
"Store",
"once",
"their",
"purpose",
"has",
"been",
"achieved",
"(",
"i",
".",
"e",
".",
"after",
"all",
"mapping",
"steps",
")"
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L451-L464 | train | Delete the fastqs from the job Store. |
BD2KGenomics/protect | src/protect/common.py | delete_bams | def delete_bams(job, bams, patient_id):
"""
Delete the bams from the job Store once their purpose has been achieved (i.e. after all
mutation calling steps). Will also delete the chimeric junction file from Star.
:param dict bams: Dict of bam and bai files
:param str patient_id: The ID of the patien... | python | def delete_bams(job, bams, patient_id):
"""
Delete the bams from the job Store once their purpose has been achieved (i.e. after all
mutation calling steps). Will also delete the chimeric junction file from Star.
:param dict bams: Dict of bam and bai files
:param str patient_id: The ID of the patien... | [
"def",
"delete_bams",
"(",
"job",
",",
"bams",
",",
"patient_id",
")",
":",
"bams",
"=",
"{",
"b",
":",
"v",
"for",
"b",
",",
"v",
"in",
"bams",
".",
"items",
"(",
")",
"if",
"(",
"b",
".",
"endswith",
"(",
"'.bam'",
")",
"or",
"b",
".",
"end... | Delete the bams from the job Store once their purpose has been achieved (i.e. after all
mutation calling steps). Will also delete the chimeric junction file from Star.
:param dict bams: Dict of bam and bai files
:param str patient_id: The ID of the patient for logging purposes. | [
"Delete",
"the",
"bams",
"from",
"the",
"job",
"Store",
"once",
"their",
"purpose",
"has",
"been",
"achieved",
"(",
"i",
".",
"e",
".",
"after",
"all",
"mutation",
"calling",
"steps",
")",
".",
"Will",
"also",
"delete",
"the",
"chimeric",
"junction",
"fi... | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L467-L490 | train | Delete bams from the job Store. |
BD2KGenomics/protect | src/protect/common.py | read_peptide_file | def read_peptide_file(in_peptfile):
"""
Reads an input peptide fasta file into memory in the form of a dict of fasta record: sequence
:param str in_peptfile: Path to a peptide fasta
:return: Dict of fasta record: sequence
:rtype: dict
"""
peptides = defaultdict()
pept = None
with op... | python | def read_peptide_file(in_peptfile):
"""
Reads an input peptide fasta file into memory in the form of a dict of fasta record: sequence
:param str in_peptfile: Path to a peptide fasta
:return: Dict of fasta record: sequence
:rtype: dict
"""
peptides = defaultdict()
pept = None
with op... | [
"def",
"read_peptide_file",
"(",
"in_peptfile",
")",
":",
"peptides",
"=",
"defaultdict",
"(",
")",
"pept",
"=",
"None",
"with",
"open",
"(",
"in_peptfile",
",",
"'r'",
")",
"as",
"peptfile",
":",
"for",
"line",
"in",
"peptfile",
":",
"if",
"line",
".",
... | Reads an input peptide fasta file into memory in the form of a dict of fasta record: sequence
:param str in_peptfile: Path to a peptide fasta
:return: Dict of fasta record: sequence
:rtype: dict | [
"Reads",
"an",
"input",
"peptide",
"fasta",
"file",
"into",
"memory",
"in",
"the",
"form",
"of",
"a",
"dict",
"of",
"fasta",
"record",
":",
"sequence"
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L501-L518 | train | Reads an input peptide fasta file into memory in the form of a dict of fasta record. |
BD2KGenomics/protect | src/protect/common.py | parse_chromosome_string | def parse_chromosome_string(job, chromosome_string):
"""
Parse a chromosome string into a list.
:param chromosome_string: Input chromosome string
:return: list of chromosomes to handle
:rtype: list
"""
if chromosome_string is None:
return []
else:
assert isinstance(chrom... | python | def parse_chromosome_string(job, chromosome_string):
"""
Parse a chromosome string into a list.
:param chromosome_string: Input chromosome string
:return: list of chromosomes to handle
:rtype: list
"""
if chromosome_string is None:
return []
else:
assert isinstance(chrom... | [
"def",
"parse_chromosome_string",
"(",
"job",
",",
"chromosome_string",
")",
":",
"if",
"chromosome_string",
"is",
"None",
":",
"return",
"[",
"]",
"else",
":",
"assert",
"isinstance",
"(",
"chromosome_string",
",",
"str",
")",
"chroms",
"=",
"[",
"c",
".",
... | Parse a chromosome string into a list.
:param chromosome_string: Input chromosome string
:return: list of chromosomes to handle
:rtype: list | [
"Parse",
"a",
"chromosome",
"string",
"into",
"a",
"list",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L521-L554 | train | Parse a string into a list of chromosomes. |
BD2KGenomics/protect | src/protect/common.py | chrom_sorted | def chrom_sorted(in_chroms):
"""
Sort a list of chromosomes in the order 1..22, X, Y, M, <others in alphabetical order>.
:param list in_chroms: Input chromosomes
:return: Sorted chromosomes
:rtype: list[str]
"""
in_chroms.sort()
canonicals = [str(c) for c in range(1, 23)] + ['X', 'Y', '... | python | def chrom_sorted(in_chroms):
"""
Sort a list of chromosomes in the order 1..22, X, Y, M, <others in alphabetical order>.
:param list in_chroms: Input chromosomes
:return: Sorted chromosomes
:rtype: list[str]
"""
in_chroms.sort()
canonicals = [str(c) for c in range(1, 23)] + ['X', 'Y', '... | [
"def",
"chrom_sorted",
"(",
"in_chroms",
")",
":",
"in_chroms",
".",
"sort",
"(",
")",
"canonicals",
"=",
"[",
"str",
"(",
"c",
")",
"for",
"c",
"in",
"range",
"(",
"1",
",",
"23",
")",
"]",
"+",
"[",
"'X'",
",",
"'Y'",
",",
"'M'",
",",
"'MT'",... | Sort a list of chromosomes in the order 1..22, X, Y, M, <others in alphabetical order>.
:param list in_chroms: Input chromosomes
:return: Sorted chromosomes
:rtype: list[str] | [
"Sort",
"a",
"list",
"of",
"chromosomes",
"in",
"the",
"order",
"1",
"..",
"22",
"X",
"Y",
"M",
"<others",
"in",
"alphabetical",
"order",
">",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L557-L582 | train | Sort a list of chromosomes in the alphabetical order. |
BD2KGenomics/protect | src/protect/common.py | canonical_chrom_sorted | def canonical_chrom_sorted(in_chroms):
"""
Sort a list of chromosomes in the order 1..22, X, Y, M/MT
:param list in_chroms: Input chromosomes
:return: Sorted chromosomes
:rtype: list[str]
"""
if len(in_chroms) == 0:
return []
chr_prefix = False
mt = False
if in_chroms[0]... | python | def canonical_chrom_sorted(in_chroms):
"""
Sort a list of chromosomes in the order 1..22, X, Y, M/MT
:param list in_chroms: Input chromosomes
:return: Sorted chromosomes
:rtype: list[str]
"""
if len(in_chroms) == 0:
return []
chr_prefix = False
mt = False
if in_chroms[0]... | [
"def",
"canonical_chrom_sorted",
"(",
"in_chroms",
")",
":",
"if",
"len",
"(",
"in_chroms",
")",
"==",
"0",
":",
"return",
"[",
"]",
"chr_prefix",
"=",
"False",
"mt",
"=",
"False",
"if",
"in_chroms",
"[",
"0",
"]",
".",
"startswith",
"(",
"'chr'",
")",... | Sort a list of chromosomes in the order 1..22, X, Y, M/MT
:param list in_chroms: Input chromosomes
:return: Sorted chromosomes
:rtype: list[str] | [
"Sort",
"a",
"list",
"of",
"chromosomes",
"in",
"the",
"order",
"1",
"..",
"22",
"X",
"Y",
"M",
"/",
"MT"
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L585-L616 | train | Sort a list of chromosomes in the order 1.. 22 X Y M is sorted by M M |
BD2KGenomics/protect | src/protect/common.py | email_report | def email_report(job, univ_options):
"""
Send an email to the user when the run finishes.
:param dict univ_options: Dict of universal options used by almost all tools
"""
fromadd = "results@protect.cgl.genomics.ucsc.edu"
msg = MIMEMultipart()
msg['From'] = fromadd
if univ_options['mail... | python | def email_report(job, univ_options):
"""
Send an email to the user when the run finishes.
:param dict univ_options: Dict of universal options used by almost all tools
"""
fromadd = "results@protect.cgl.genomics.ucsc.edu"
msg = MIMEMultipart()
msg['From'] = fromadd
if univ_options['mail... | [
"def",
"email_report",
"(",
"job",
",",
"univ_options",
")",
":",
"fromadd",
"=",
"\"results@protect.cgl.genomics.ucsc.edu\"",
"msg",
"=",
"MIMEMultipart",
"(",
")",
"msg",
"[",
"'From'",
"]",
"=",
"fromadd",
"if",
"univ_options",
"[",
"'mail_to'",
"]",
"is",
... | Send an email to the user when the run finishes.
:param dict univ_options: Dict of universal options used by almost all tools | [
"Send",
"an",
"email",
"to",
"the",
"user",
"when",
"the",
"run",
"finishes",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/common.py#L619-L649 | train | Send an email to the user when the run finishes. |
StackStorm/pybind | pybind/nos/v6_0_2f/aaa_config/aaa/accounting/commands/__init__.py | commands._set_defaultacc | def _set_defaultacc(self, v, load=False):
"""
Setter method for defaultacc, mapped from YANG variable /aaa_config/aaa/accounting/commands/defaultacc (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_defaultacc is considered as a private
method. Backends loo... | python | def _set_defaultacc(self, v, load=False):
"""
Setter method for defaultacc, mapped from YANG variable /aaa_config/aaa/accounting/commands/defaultacc (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_defaultacc is considered as a private
method. Backends loo... | [
"def",
"_set_defaultacc",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"bas... | Setter method for defaultacc, mapped from YANG variable /aaa_config/aaa/accounting/commands/defaultacc (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_defaultacc is considered as a private
method. Backends looking to populate this variable should
do so via ca... | [
"Setter",
"method",
"for",
"defaultacc",
"mapped",
"from",
"YANG",
"variable",
"/",
"aaa_config",
"/",
"aaa",
"/",
"accounting",
"/",
"commands",
"/",
"defaultacc",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/aaa_config/aaa/accounting/commands/__init__.py#L92-L113 | train | Set the default acc in the base language |
StackStorm/pybind | pybind/slxos/v17r_2_00/interface/ethernet/__init__.py | ethernet._set_loopback | def _set_loopback(self, v, load=False):
"""
Setter method for loopback, mapped from YANG variable /interface/ethernet/loopback (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_loopback is considered as a private
method. Backends looking to populate this ... | python | def _set_loopback(self, v, load=False):
"""
Setter method for loopback, mapped from YANG variable /interface/ethernet/loopback (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_loopback is considered as a private
method. Backends looking to populate this ... | [
"def",
"_set_loopback",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for loopback, mapped from YANG variable /interface/ethernet/loopback (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_loopback is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_l... | [
"Setter",
"method",
"for",
"loopback",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"ethernet",
"/",
"loopback",
"(",
"enumeration",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/interface/ethernet/__init__.py#L270-L294 | train | Sets the loopback mode of the non - virtual network. |
StackStorm/pybind | pybind/slxos/v17r_2_00/interface/ethernet/__init__.py | ethernet._set_strip_header | def _set_strip_header(self, v, load=False):
"""
Setter method for strip_header, mapped from YANG variable /interface/ethernet/strip_header (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_strip_header is considered as a private
method. Backends looking t... | python | def _set_strip_header(self, v, load=False):
"""
Setter method for strip_header, mapped from YANG variable /interface/ethernet/strip_header (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_strip_header is considered as a private
method. Backends looking t... | [
"def",
"_set_strip_header",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for strip_header, mapped from YANG variable /interface/ethernet/strip_header (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_strip_header is considered as a private
method. Backends looking to populate this variable should
do so via calling th... | [
"Setter",
"method",
"for",
"strip_header",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"ethernet",
"/",
"strip_header",
"(",
"enumeration",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/interface/ethernet/__init__.py#L1020-L1043 | train | Sets the strip header of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/brocade_port_profile_ext_rpc/get_port_profile_status/input/__init__.py | input._set_port_profile_status | def _set_port_profile_status(self, v, load=False):
"""
Setter method for port_profile_status, mapped from YANG variable /brocade_port_profile_ext_rpc/get_port_profile_status/input/port_profile_status (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_prof... | python | def _set_port_profile_status(self, v, load=False):
"""
Setter method for port_profile_status, mapped from YANG variable /brocade_port_profile_ext_rpc/get_port_profile_status/input/port_profile_status (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_prof... | [
"def",
"_set_port_profile_status",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",... | Setter method for port_profile_status, mapped from YANG variable /brocade_port_profile_ext_rpc/get_port_profile_status/input/port_profile_status (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_profile_status is considered as a private
method. Backends look... | [
"Setter",
"method",
"for",
"port_profile_status",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_port_profile_ext_rpc",
"/",
"get_port_profile_status",
"/",
"input",
"/",
"port_profile_status",
"(",
"enumeration",
")",
"If",
"this",
"variable",
"is",
"read",
"-",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_port_profile_ext_rpc/get_port_profile_status/input/__init__.py#L181-L206 | train | Sets the status of the port profile. |
0k/kids.cache | src/kids/cache/__init__.py | make_key_hippie | def make_key_hippie(obj, typed=True):
"""Return hashable structure from non-hashable structure using hippie means
dict and set are sorted and their content subjected to same hippie means.
Note that the key identifies the current content of the structure.
"""
ftype = type if typed else lambda o: N... | python | def make_key_hippie(obj, typed=True):
"""Return hashable structure from non-hashable structure using hippie means
dict and set are sorted and their content subjected to same hippie means.
Note that the key identifies the current content of the structure.
"""
ftype = type if typed else lambda o: N... | [
"def",
"make_key_hippie",
"(",
"obj",
",",
"typed",
"=",
"True",
")",
":",
"ftype",
"=",
"type",
"if",
"typed",
"else",
"lambda",
"o",
":",
"None",
"if",
"is_hashable",
"(",
"obj",
")",
":",
"## DO NOT RETURN hash(obj), as hash collision would generate bad",
"##... | Return hashable structure from non-hashable structure using hippie means
dict and set are sorted and their content subjected to same hippie means.
Note that the key identifies the current content of the structure. | [
"Return",
"hashable",
"structure",
"from",
"non",
"-",
"hashable",
"structure",
"using",
"hippie",
"means"
] | 668f3b966877c4a0855d60e05cc3706cf37e4570 | https://github.com/0k/kids.cache/blob/668f3b966877c4a0855d60e05cc3706cf37e4570/src/kids/cache/__init__.py#L29-L54 | train | Return a key for the given object using hippie means
dict and set are sorted and their content subjected to same hippie means. |
0k/kids.cache | src/kids/cache/__init__.py | hashing | def hashing(typed=True, strict=False):
"""Returns a typed and/or strict key callable.
A strict key callable will fail on traditionaly non-hashable object,
while a strict=False hashing will use hippie hashing that can hash
mutable object.
A typed key callable will use type of each object in the has... | python | def hashing(typed=True, strict=False):
"""Returns a typed and/or strict key callable.
A strict key callable will fail on traditionaly non-hashable object,
while a strict=False hashing will use hippie hashing that can hash
mutable object.
A typed key callable will use type of each object in the has... | [
"def",
"hashing",
"(",
"typed",
"=",
"True",
",",
"strict",
"=",
"False",
")",
":",
"hashable_struct_producer",
"=",
"make_key",
"if",
"strict",
"else",
"make_key_hippie",
"def",
"_make_key",
"(",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"## use a l... | Returns a typed and/or strict key callable.
A strict key callable will fail on traditionaly non-hashable object,
while a strict=False hashing will use hippie hashing that can hash
mutable object.
A typed key callable will use type of each object in the hash and will
distinguish with same hash but ... | [
"Returns",
"a",
"typed",
"and",
"/",
"or",
"strict",
"key",
"callable",
"."
] | 668f3b966877c4a0855d60e05cc3706cf37e4570 | https://github.com/0k/kids.cache/blob/668f3b966877c4a0855d60e05cc3706cf37e4570/src/kids/cache/__init__.py#L57-L73 | train | Returns a typed and strict key callable that can hash mutable objects. |
0k/kids.cache | src/kids/cache/__init__.py | undecorate | def undecorate(func):
"""Returns the decorator and the undecorated function of given object."""
orig_call_wrapper = lambda x: x
for call_wrapper, unwrap in SUPPORTED_DECORATOR.items():
if isinstance(func, call_wrapper):
func = unwrap(func)
orig_call_wrapper = call_wrapper
... | python | def undecorate(func):
"""Returns the decorator and the undecorated function of given object."""
orig_call_wrapper = lambda x: x
for call_wrapper, unwrap in SUPPORTED_DECORATOR.items():
if isinstance(func, call_wrapper):
func = unwrap(func)
orig_call_wrapper = call_wrapper
... | [
"def",
"undecorate",
"(",
"func",
")",
":",
"orig_call_wrapper",
"=",
"lambda",
"x",
":",
"x",
"for",
"call_wrapper",
",",
"unwrap",
"in",
"SUPPORTED_DECORATOR",
".",
"items",
"(",
")",
":",
"if",
"isinstance",
"(",
"func",
",",
"call_wrapper",
")",
":",
... | Returns the decorator and the undecorated function of given object. | [
"Returns",
"the",
"decorator",
"and",
"the",
"undecorated",
"function",
"of",
"given",
"object",
"."
] | 668f3b966877c4a0855d60e05cc3706cf37e4570 | https://github.com/0k/kids.cache/blob/668f3b966877c4a0855d60e05cc3706cf37e4570/src/kids/cache/__init__.py#L82-L90 | train | Returns the decorator and the undecorated function of given object. |
0k/kids.cache | src/kids/cache/__init__.py | cache | def cache(*args, **kwargs):
"""The @cache decorator
Compatility with using ``@cache()`` and ``@cache`` is managed in
the current function.
"""
## only one argument ?
if len(args) == 1 and len(kwargs) == 0 and \
(callable(args[0]) or \
isinstance(args[0], tuple(SUPPORTED_... | python | def cache(*args, **kwargs):
"""The @cache decorator
Compatility with using ``@cache()`` and ``@cache`` is managed in
the current function.
"""
## only one argument ?
if len(args) == 1 and len(kwargs) == 0 and \
(callable(args[0]) or \
isinstance(args[0], tuple(SUPPORTED_... | [
"def",
"cache",
"(",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"## only one argument ?",
"if",
"len",
"(",
"args",
")",
"==",
"1",
"and",
"len",
"(",
"kwargs",
")",
"==",
"0",
"and",
"(",
"callable",
"(",
"args",
"[",
"0",
"]",
")",
"or",
... | The @cache decorator
Compatility with using ``@cache()`` and ``@cache`` is managed in
the current function. | [
"The",
"@cache",
"decorator"
] | 668f3b966877c4a0855d60e05cc3706cf37e4570 | https://github.com/0k/kids.cache/blob/668f3b966877c4a0855d60e05cc3706cf37e4570/src/kids/cache/__init__.py#L143-L155 | train | Decorator for caching the current function. |
StackStorm/pybind | pybind/nos/v7_2_0/rbridge_id/router/router_bgp/router_bgp_attributes/graceful_shutdown/__init__.py | graceful_shutdown._set_gshut_route_map | def _set_gshut_route_map(self, v, load=False):
"""
Setter method for gshut_route_map, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/graceful_shutdown/gshut_route_map (rmap-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_gshut_route_m... | python | def _set_gshut_route_map(self, v, load=False):
"""
Setter method for gshut_route_map, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/graceful_shutdown/gshut_route_map (rmap-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_gshut_route_m... | [
"def",
"_set_gshut_route_map",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for gshut_route_map, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/graceful_shutdown/gshut_route_map (rmap-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_gshut_route_map is considered as a private
method. Backends looking ... | [
"Setter",
"method",
"for",
"gshut_route_map",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"router_bgp",
"/",
"router_bgp_attributes",
"/",
"graceful_shutdown",
"/",
"gshut_route_map",
"(",
"rmap",
"-",
"type",
")",
"If",
"this",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/rbridge_id/router/router_bgp/router_bgp_attributes/graceful_shutdown/__init__.py#L127-L148 | train | Sets the route map for the GSSHA graceful shutdown attributes. |
StackStorm/pybind | pybind/nos/v7_2_0/rbridge_id/router/router_bgp/router_bgp_attributes/graceful_shutdown/__init__.py | graceful_shutdown._set_gshut_timer_attributes | def _set_gshut_timer_attributes(self, v, load=False):
"""
Setter method for gshut_timer_attributes, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/graceful_shutdown/gshut_timer_attributes (container)
If this variable is read-only (config: false) in the
source YANG file, th... | python | def _set_gshut_timer_attributes(self, v, load=False):
"""
Setter method for gshut_timer_attributes, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/graceful_shutdown/gshut_timer_attributes (container)
If this variable is read-only (config: false) in the
source YANG file, th... | [
"def",
"_set_gshut_timer_attributes",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for gshut_timer_attributes, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/graceful_shutdown/gshut_timer_attributes (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_gshut_timer_attributes is considered as a private
meth... | [
"Setter",
"method",
"for",
"gshut_timer_attributes",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"router_bgp",
"/",
"router_bgp_attributes",
"/",
"graceful_shutdown",
"/",
"gshut_timer_attributes",
"(",
"container",
")",
"If",
"this",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/rbridge_id/router/router_bgp/router_bgp_attributes/graceful_shutdown/__init__.py#L160-L181 | train | Sets the values of the gshut_timer_attributes property in the virtual node. |
idlesign/steampak | steampak/cli.py | item | def item(ctx, appid, title):
"""Market-related commands."""
ctx.obj['appid'] = appid
ctx.obj['title'] = title | python | def item(ctx, appid, title):
"""Market-related commands."""
ctx.obj['appid'] = appid
ctx.obj['title'] = title | [
"def",
"item",
"(",
"ctx",
",",
"appid",
",",
"title",
")",
":",
"ctx",
".",
"obj",
"[",
"'appid'",
"]",
"=",
"appid",
"ctx",
".",
"obj",
"[",
"'title'",
"]",
"=",
"title"
] | Market-related commands. | [
"Market",
"-",
"related",
"commands",
"."
] | cb3f2c737e272b0360802d947e388df7e34f50f3 | https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/cli.py#L111-L114 | train | Market - related commands. |
idlesign/steampak | steampak/cli.py | get_price | def get_price(ctx, currency):
"""Prints out market item price."""
appid = ctx.obj['appid']
title = ctx.obj['title']
item_ = Item(appid, title)
item_.get_price_data(currency)
click.secho('Lowest price: %s %s' % (item_.price_lowest, item_.price_currency), fg='green') | python | def get_price(ctx, currency):
"""Prints out market item price."""
appid = ctx.obj['appid']
title = ctx.obj['title']
item_ = Item(appid, title)
item_.get_price_data(currency)
click.secho('Lowest price: %s %s' % (item_.price_lowest, item_.price_currency), fg='green') | [
"def",
"get_price",
"(",
"ctx",
",",
"currency",
")",
":",
"appid",
"=",
"ctx",
".",
"obj",
"[",
"'appid'",
"]",
"title",
"=",
"ctx",
".",
"obj",
"[",
"'title'",
"]",
"item_",
"=",
"Item",
"(",
"appid",
",",
"title",
")",
"item_",
".",
"get_price_d... | Prints out market item price. | [
"Prints",
"out",
"market",
"item",
"price",
"."
] | cb3f2c737e272b0360802d947e388df7e34f50f3 | https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/cli.py#L120-L128 | train | Prints out market item price. |
idlesign/steampak | steampak/cli.py | get_cards | def get_cards(ctx):
"""Prints out cards available for application."""
appid = ctx.obj['appid']
app = Application(appid)
click.secho('Cards for `%s` [appid: %s]' % (app.title, appid), fg='green')
if not app.has_cards:
click.secho('This app has no cards.', fg='red', err=True)
return... | python | def get_cards(ctx):
"""Prints out cards available for application."""
appid = ctx.obj['appid']
app = Application(appid)
click.secho('Cards for `%s` [appid: %s]' % (app.title, appid), fg='green')
if not app.has_cards:
click.secho('This app has no cards.', fg='red', err=True)
return... | [
"def",
"get_cards",
"(",
"ctx",
")",
":",
"appid",
"=",
"ctx",
".",
"obj",
"[",
"'appid'",
"]",
"app",
"=",
"Application",
"(",
"appid",
")",
"click",
".",
"secho",
"(",
"'Cards for `%s` [appid: %s]'",
"%",
"(",
"app",
".",
"title",
",",
"appid",
")",
... | Prints out cards available for application. | [
"Prints",
"out",
"cards",
"available",
"for",
"application",
"."
] | cb3f2c737e272b0360802d947e388df7e34f50f3 | https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/cli.py#L141-L164 | train | Prints out cards available for application. |
idlesign/steampak | steampak/cli.py | get_card_prices | def get_card_prices(ctx, currency):
"""Prints out lowest card prices for an application.
Comma-separated list of application IDs is supported.
"""
appid = ctx.obj['appid']
detailed = True
appids = [appid]
if ',' in appid:
appids = [appid.strip() for appid in appid.split(',')]
... | python | def get_card_prices(ctx, currency):
"""Prints out lowest card prices for an application.
Comma-separated list of application IDs is supported.
"""
appid = ctx.obj['appid']
detailed = True
appids = [appid]
if ',' in appid:
appids = [appid.strip() for appid in appid.split(',')]
... | [
"def",
"get_card_prices",
"(",
"ctx",
",",
"currency",
")",
":",
"appid",
"=",
"ctx",
".",
"obj",
"[",
"'appid'",
"]",
"detailed",
"=",
"True",
"appids",
"=",
"[",
"appid",
"]",
"if",
"','",
"in",
"appid",
":",
"appids",
"=",
"[",
"appid",
".",
"st... | Prints out lowest card prices for an application.
Comma-separated list of application IDs is supported. | [
"Prints",
"out",
"lowest",
"card",
"prices",
"for",
"an",
"application",
".",
"Comma",
"-",
"separated",
"list",
"of",
"application",
"IDs",
"is",
"supported",
"."
] | cb3f2c737e272b0360802d947e388df7e34f50f3 | https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/cli.py#L170-L186 | train | Prints out lowest card prices for an application. |
idlesign/steampak | steampak/cli.py | get_gems | def get_gems(ctx):
"""Prints out total gems count for a Steam user."""
username = ctx.obj['username']
click.secho(
'Total gems owned by `%s`: %d' % (username, User(username).gems_total),
fg='green') | python | def get_gems(ctx):
"""Prints out total gems count for a Steam user."""
username = ctx.obj['username']
click.secho(
'Total gems owned by `%s`: %d' % (username, User(username).gems_total),
fg='green') | [
"def",
"get_gems",
"(",
"ctx",
")",
":",
"username",
"=",
"ctx",
".",
"obj",
"[",
"'username'",
"]",
"click",
".",
"secho",
"(",
"'Total gems owned by `%s`: %d'",
"%",
"(",
"username",
",",
"User",
"(",
"username",
")",
".",
"gems_total",
")",
",",
"fg",... | Prints out total gems count for a Steam user. | [
"Prints",
"out",
"total",
"gems",
"count",
"for",
"a",
"Steam",
"user",
"."
] | cb3f2c737e272b0360802d947e388df7e34f50f3 | https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/cli.py#L199-L205 | train | Prints out total gems count for a Steam user. |
idlesign/steampak | steampak/cli.py | get_games | def get_games(ctx):
"""Prints out games owned by a Steam user."""
username = ctx.obj['username']
games = User(username).get_games_owned()
for game in sorted(games.values(), key=itemgetter('title')):
click.echo('%s [appid: %s]' % (game['title'], game['appid']))
click.secho('Total gems owne... | python | def get_games(ctx):
"""Prints out games owned by a Steam user."""
username = ctx.obj['username']
games = User(username).get_games_owned()
for game in sorted(games.values(), key=itemgetter('title')):
click.echo('%s [appid: %s]' % (game['title'], game['appid']))
click.secho('Total gems owne... | [
"def",
"get_games",
"(",
"ctx",
")",
":",
"username",
"=",
"ctx",
".",
"obj",
"[",
"'username'",
"]",
"games",
"=",
"User",
"(",
"username",
")",
".",
"get_games_owned",
"(",
")",
"for",
"game",
"in",
"sorted",
"(",
"games",
".",
"values",
"(",
")",
... | Prints out games owned by a Steam user. | [
"Prints",
"out",
"games",
"owned",
"by",
"a",
"Steam",
"user",
"."
] | cb3f2c737e272b0360802d947e388df7e34f50f3 | https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/cli.py#L210-L219 | train | Prints out games owned by a Steam user. |
idlesign/steampak | steampak/cli.py | get_booster_stats | def get_booster_stats(ctx, currency):
"""Prints out price stats for booster packs available in Steam user inventory."""
username = ctx.obj['username']
inventory = User(username)._get_inventory_raw()
boosters = {}
for item in inventory['rgDescriptions'].values():
is_booster = False
... | python | def get_booster_stats(ctx, currency):
"""Prints out price stats for booster packs available in Steam user inventory."""
username = ctx.obj['username']
inventory = User(username)._get_inventory_raw()
boosters = {}
for item in inventory['rgDescriptions'].values():
is_booster = False
... | [
"def",
"get_booster_stats",
"(",
"ctx",
",",
"currency",
")",
":",
"username",
"=",
"ctx",
".",
"obj",
"[",
"'username'",
"]",
"inventory",
"=",
"User",
"(",
"username",
")",
".",
"_get_inventory_raw",
"(",
")",
"boosters",
"=",
"{",
"}",
"for",
"item",
... | Prints out price stats for booster packs available in Steam user inventory. | [
"Prints",
"out",
"price",
"stats",
"for",
"booster",
"packs",
"available",
"in",
"Steam",
"user",
"inventory",
"."
] | cb3f2c737e272b0360802d947e388df7e34f50f3 | https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/cli.py#L225-L255 | train | Prints out price stats for booster packs available in Steam user inventory. |
idlesign/steampak | steampak/cli.py | get_cards_stats | def get_cards_stats(ctx, currency, skip_owned, appid, foil):
"""Prints out price stats for cards available in Steam user inventory."""
username = ctx.obj['username']
cards_by_app = defaultdict(list)
inventory = User(username).traverse_inventory(item_filter=TAG_ITEM_CLASS_CARD)
for item in inventor... | python | def get_cards_stats(ctx, currency, skip_owned, appid, foil):
"""Prints out price stats for cards available in Steam user inventory."""
username = ctx.obj['username']
cards_by_app = defaultdict(list)
inventory = User(username).traverse_inventory(item_filter=TAG_ITEM_CLASS_CARD)
for item in inventor... | [
"def",
"get_cards_stats",
"(",
"ctx",
",",
"currency",
",",
"skip_owned",
",",
"appid",
",",
"foil",
")",
":",
"username",
"=",
"ctx",
".",
"obj",
"[",
"'username'",
"]",
"cards_by_app",
"=",
"defaultdict",
"(",
"list",
")",
"inventory",
"=",
"User",
"("... | Prints out price stats for cards available in Steam user inventory. | [
"Prints",
"out",
"price",
"stats",
"for",
"cards",
"available",
"in",
"Steam",
"user",
"inventory",
"."
] | cb3f2c737e272b0360802d947e388df7e34f50f3 | https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/cli.py#L264-L287 | train | Prints out price stats for cards available in Steam user inventory. |
StackStorm/pybind | pybind/slxos/v17r_2_00/uda_key/profile/__init__.py | profile._set_uda_profile_offsets | def _set_uda_profile_offsets(self, v, load=False):
"""
Setter method for uda_profile_offsets, mapped from YANG variable /uda_key/profile/uda_profile_offsets (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_uda_profile_offsets is considered as a private
met... | python | def _set_uda_profile_offsets(self, v, load=False):
"""
Setter method for uda_profile_offsets, mapped from YANG variable /uda_key/profile/uda_profile_offsets (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_uda_profile_offsets is considered as a private
met... | [
"def",
"_set_uda_profile_offsets",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",... | Setter method for uda_profile_offsets, mapped from YANG variable /uda_key/profile/uda_profile_offsets (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_uda_profile_offsets is considered as a private
method. Backends looking to populate this variable should
do s... | [
"Setter",
"method",
"for",
"uda_profile_offsets",
"mapped",
"from",
"YANG",
"variable",
"/",
"uda_key",
"/",
"profile",
"/",
"uda_profile_offsets",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/uda_key/profile/__init__.py#L131-L152 | train | Sets the uda - profile - offsets for the uda - tree |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/interface/ve/__init__.py | ve._set_vrf | def _set_vrf(self, v, load=False):
"""
Setter method for vrf, mapped from YANG variable /routing_system/interface/ve/vrf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vrf is considered as a private
method. Backends looking to populate this variable shou... | python | def _set_vrf(self, v, load=False):
"""
Setter method for vrf, mapped from YANG variable /routing_system/interface/ve/vrf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vrf is considered as a private
method. Backends looking to populate this variable shou... | [
"def",
"_set_vrf",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"... | Setter method for vrf, mapped from YANG variable /routing_system/interface/ve/vrf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vrf is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_vrf() dir... | [
"Setter",
"method",
"for",
"vrf",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"interface",
"/",
"ve",
"/",
"vrf",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/__init__.py#L189-L210 | train | Set the vrf of the
|
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/interface/ve/__init__.py | ve._set_intf_isis | def _set_intf_isis(self, v, load=False):
"""
Setter method for intf_isis, mapped from YANG variable /routing_system/interface/ve/intf_isis (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_intf_isis is considered as a private
method. Backends looking to pop... | python | def _set_intf_isis(self, v, load=False):
"""
Setter method for intf_isis, mapped from YANG variable /routing_system/interface/ve/intf_isis (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_intf_isis is considered as a private
method. Backends looking to pop... | [
"def",
"_set_intf_isis",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base... | Setter method for intf_isis, mapped from YANG variable /routing_system/interface/ve/intf_isis (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_intf_isis is considered as a private
method. Backends looking to populate this variable should
do so via calling this... | [
"Setter",
"method",
"for",
"intf_isis",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"interface",
"/",
"ve",
"/",
"intf_isis",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/__init__.py#L453-L474 | train | Set the value of the intf_isis variable. |
StackStorm/pybind | pybind/nos/v6_0_2f/brocade_trilloam_rpc/__init__.py | brocade_trilloam._set_l2traceroute | def _set_l2traceroute(self, v, load=False):
"""
Setter method for l2traceroute, mapped from YANG variable /brocade_trilloam_rpc/l2traceroute (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_l2traceroute is considered as a private
method. Backends looking to popu... | python | def _set_l2traceroute(self, v, load=False):
"""
Setter method for l2traceroute, mapped from YANG variable /brocade_trilloam_rpc/l2traceroute (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_l2traceroute is considered as a private
method. Backends looking to popu... | [
"def",
"_set_l2traceroute",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for l2traceroute, mapped from YANG variable /brocade_trilloam_rpc/l2traceroute (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_l2traceroute is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj.... | [
"Setter",
"method",
"for",
"l2traceroute",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_trilloam_rpc",
"/",
"l2traceroute",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_trilloam_rpc/__init__.py#L99-L122 | train | Set the value of the l2traceroute variable. |
StackStorm/pybind | pybind/nos/v6_0_2f/interface/fortygigabitethernet/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/prefix/lifetime/preferred/__init__.py | preferred._set_preferred_lifetime | def _set_preferred_lifetime(self, v, load=False):
"""
Setter method for preferred_lifetime, mapped from YANG variable /interface/fortygigabitethernet/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/prefix/lifetime/preferred/preferred_lifetime (common-def:time-interval-sec)
If this variable is read-only (config: false) in... | python | def _set_preferred_lifetime(self, v, load=False):
"""
Setter method for preferred_lifetime, mapped from YANG variable /interface/fortygigabitethernet/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/prefix/lifetime/preferred/preferred_lifetime (common-def:time-interval-sec)
If this variable is read-only (config: false) in... | [
"def",
"_set_preferred_lifetime",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
","... | Setter method for preferred_lifetime, mapped from YANG variable /interface/fortygigabitethernet/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/prefix/lifetime/preferred/preferred_lifetime (common-def:time-interval-sec)
If this variable is read-only (config: false) in the
source YANG file, then _set_preferred_lifetime is con... | [
"Setter",
"method",
"for",
"preferred_lifetime",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"fortygigabitethernet",
"/",
"ipv6",
"/",
"ipv6_nd_ra",
"/",
"ipv6_intf_cmds",
"/",
"nd",
"/",
"prefix",
"/",
"lifetime",
"/",
"preferred",
"/",
"prefer... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/fortygigabitethernet/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/prefix/lifetime/preferred/__init__.py#L94-L115 | train | Sets the preferred lifetime of the node. |
StackStorm/pybind | pybind/nos/v6_0_2f/interface/fortygigabitethernet/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/prefix/lifetime/preferred/__init__.py | preferred._set_preferred_infinite | def _set_preferred_infinite(self, v, load=False):
"""
Setter method for preferred_infinite, mapped from YANG variable /interface/fortygigabitethernet/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/prefix/lifetime/preferred/preferred_infinite (empty)
If this variable is read-only (config: false) in the
source YANG fi... | python | def _set_preferred_infinite(self, v, load=False):
"""
Setter method for preferred_infinite, mapped from YANG variable /interface/fortygigabitethernet/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/prefix/lifetime/preferred/preferred_infinite (empty)
If this variable is read-only (config: false) in the
source YANG fi... | [
"def",
"_set_preferred_infinite",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
","... | Setter method for preferred_infinite, mapped from YANG variable /interface/fortygigabitethernet/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/prefix/lifetime/preferred/preferred_infinite (empty)
If this variable is read-only (config: false) in the
source YANG file, then _set_preferred_infinite is considered as a private
... | [
"Setter",
"method",
"for",
"preferred_infinite",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"fortygigabitethernet",
"/",
"ipv6",
"/",
"ipv6_nd_ra",
"/",
"ipv6_intf_cmds",
"/",
"nd",
"/",
"prefix",
"/",
"lifetime",
"/",
"preferred",
"/",
"prefer... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/fortygigabitethernet/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/prefix/lifetime/preferred/__init__.py#L127-L148 | train | Set the preferred_infinite variable. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/vrf/address_family/ipv6/unicast/ipv6/route/__init__.py | route._set_static_route_nh | def _set_static_route_nh(self, v, load=False):
"""
Setter method for static_route_nh, mapped from YANG variable /rbridge_id/vrf/address_family/ipv6/unicast/ipv6/route/static_route_nh (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_static_route_nh is considered as ... | python | def _set_static_route_nh(self, v, load=False):
"""
Setter method for static_route_nh, mapped from YANG variable /rbridge_id/vrf/address_family/ipv6/unicast/ipv6/route/static_route_nh (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_static_route_nh is considered as ... | [
"def",
"_set_static_route_nh",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for static_route_nh, mapped from YANG variable /rbridge_id/vrf/address_family/ipv6/unicast/ipv6/route/static_route_nh (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_static_route_nh is considered as a private
method. Backends looking to populate this var... | [
"Setter",
"method",
"for",
"static_route_nh",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"vrf",
"/",
"address_family",
"/",
"ipv6",
"/",
"unicast",
"/",
"ipv6",
"/",
"route",
"/",
"static_route_nh",
"(",
"list",
")",
"If",
"this",
"variabl... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/vrf/address_family/ipv6/unicast/ipv6/route/__init__.py#L104-L125 | train | Sets the value of static_route_nh in the virtual network. |
StackStorm/pybind | pybind/nos/v7_2_0/rbridge_id/router/ospf/area/__init__.py | area._set_range | def _set_range(self, v, load=False):
"""
Setter method for range, mapped from YANG variable /rbridge_id/router/ospf/area/range (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_range is considered as a private
method. Backends looking to populate this variable s... | python | def _set_range(self, v, load=False):
"""
Setter method for range, mapped from YANG variable /rbridge_id/router/ospf/area/range (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_range is considered as a private
method. Backends looking to populate this variable s... | [
"def",
"_set_range",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for range, mapped from YANG variable /rbridge_id/router/ospf/area/range (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_range is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_range() ... | [
"Setter",
"method",
"for",
"range",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"ospf",
"/",
"area",
"/",
"range",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/rbridge_id/router/ospf/area/__init__.py#L206-L227 | train | Set the range of the current node. |
StackStorm/pybind | pybind/nos/v7_2_0/rbridge_id/router/ospf/area/__init__.py | area._set_virtual_link | def _set_virtual_link(self, v, load=False):
"""
Setter method for virtual_link, mapped from YANG variable /rbridge_id/router/ospf/area/virtual_link (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_virtual_link is considered as a private
method. Backends looking... | python | def _set_virtual_link(self, v, load=False):
"""
Setter method for virtual_link, mapped from YANG variable /rbridge_id/router/ospf/area/virtual_link (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_virtual_link is considered as a private
method. Backends looking... | [
"def",
"_set_virtual_link",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for virtual_link, mapped from YANG variable /rbridge_id/router/ospf/area/virtual_link (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_virtual_link is considered as a private
method. Backends looking to populate this variable should
do so via calling ... | [
"Setter",
"method",
"for",
"virtual_link",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"ospf",
"/",
"area",
"/",
"virtual_link",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/rbridge_id/router/ospf/area/__init__.py#L309-L330 | train | Sets the virtual link of the
based on the given list of neighbors. |
StackStorm/pybind | pybind/slxos/v17s_1_02/policy_map/class_/__init__.py | class_._set_span | def _set_span(self, v, load=False):
"""
Setter method for span, mapped from YANG variable /policy_map/class/span (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_span is considered as a private
method. Backends looking to populate this variable should
... | python | def _set_span(self, v, load=False):
"""
Setter method for span, mapped from YANG variable /policy_map/class/span (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_span is considered as a private
method. Backends looking to populate this variable should
... | [
"def",
"_set_span",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for span, mapped from YANG variable /policy_map/class/span (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_span is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_span() directly.
... | [
"Setter",
"method",
"for",
"span",
"mapped",
"from",
"YANG",
"variable",
"/",
"policy_map",
"/",
"class",
"/",
"span",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/policy_map/class_/__init__.py#L212-L235 | train | Sets the span of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/fcoe/fcoe_map/__init__.py | fcoe_map._set_fcoe_map_fabric_map | def _set_fcoe_map_fabric_map(self, v, load=False):
"""
Setter method for fcoe_map_fabric_map, mapped from YANG variable /fcoe/fcoe_map/fcoe_map_fabric_map (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_map_fabric_map is considered as a private
metho... | python | def _set_fcoe_map_fabric_map(self, v, load=False):
"""
Setter method for fcoe_map_fabric_map, mapped from YANG variable /fcoe/fcoe_map/fcoe_map_fabric_map (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_map_fabric_map is considered as a private
metho... | [
"def",
"_set_fcoe_map_fabric_map",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",... | Setter method for fcoe_map_fabric_map, mapped from YANG variable /fcoe/fcoe_map/fcoe_map_fabric_map (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_map_fabric_map is considered as a private
method. Backends looking to populate this variable should
do so ... | [
"Setter",
"method",
"for",
"fcoe_map_fabric_map",
"mapped",
"from",
"YANG",
"variable",
"/",
"fcoe",
"/",
"fcoe_map",
"/",
"fcoe_map_fabric_map",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"i... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/fcoe/fcoe_map/__init__.py#L143-L167 | train | Set the value of the FCoE Fabric Map in the FW map. |
StackStorm/pybind | pybind/nos/v6_0_2f/fcoe/fcoe_map/__init__.py | fcoe_map._set_fcoe_map_cee_map | def _set_fcoe_map_cee_map(self, v, load=False):
"""
Setter method for fcoe_map_cee_map, mapped from YANG variable /fcoe/fcoe_map/fcoe_map_cee_map (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_map_cee_map is considered as a private
method. Backends ... | python | def _set_fcoe_map_cee_map(self, v, load=False):
"""
Setter method for fcoe_map_cee_map, mapped from YANG variable /fcoe/fcoe_map/fcoe_map_cee_map (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_map_cee_map is considered as a private
method. Backends ... | [
"def",
"_set_fcoe_map_cee_map",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for fcoe_map_cee_map, mapped from YANG variable /fcoe/fcoe_map/fcoe_map_cee_map (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe_map_cee_map is considered as a private
method. Backends looking to populate this variable should
do so via calli... | [
"Setter",
"method",
"for",
"fcoe_map_cee_map",
"mapped",
"from",
"YANG",
"variable",
"/",
"fcoe",
"/",
"fcoe_map",
"/",
"fcoe_map_cee_map",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/fcoe/fcoe_map/__init__.py#L182-L206 | train | Set the value of the CEE - map property. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/vrf/address_family/ipv6/unicast/ipv6/route/link_local_static_route_nh/__init__.py | link_local_static_route_nh._set_link_local_route_oif_type | def _set_link_local_route_oif_type(self, v, load=False):
"""
Setter method for link_local_route_oif_type, mapped from YANG variable /rbridge_id/vrf/address_family/ipv6/unicast/ipv6/route/link_local_static_route_nh/link_local_route_oif_type (enumeration)
If this variable is read-only (config: false) in the
... | python | def _set_link_local_route_oif_type(self, v, load=False):
"""
Setter method for link_local_route_oif_type, mapped from YANG variable /rbridge_id/vrf/address_family/ipv6/unicast/ipv6/route/link_local_static_route_nh/link_local_route_oif_type (enumeration)
If this variable is read-only (config: false) in the
... | [
"def",
"_set_link_local_route_oif_type",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"parent",
"=",
"getattr",
"(",
"self",
",",
"\"_parent\"",
",",
"None",
")",
"if",
"parent",
"is",
"not",
"None",
"and",
"load",
"is",
"False",
":",
"r... | Setter method for link_local_route_oif_type, mapped from YANG variable /rbridge_id/vrf/address_family/ipv6/unicast/ipv6/route/link_local_static_route_nh/link_local_route_oif_type (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_link_local_route_oif_type is considere... | [
"Setter",
"method",
"for",
"link_local_route_oif_type",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"vrf",
"/",
"address_family",
"/",
"ipv6",
"/",
"unicast",
"/",
"ipv6",
"/",
"route",
"/",
"link_local_static_route_nh",
"/",
"link_local_route_oif_... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/vrf/address_family/ipv6/unicast/ipv6/route/link_local_static_route_nh/__init__.py#L172-L198 | train | Sets the link local route OIF type. |
StackStorm/pybind | pybind/slxos/v17s_1_02/telemetry/__init__.py | telemetry._set_collector | def _set_collector(self, v, load=False):
"""
Setter method for collector, mapped from YANG variable /telemetry/collector (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_collector is considered as a private
method. Backends looking to populate this variable sho... | python | def _set_collector(self, v, load=False):
"""
Setter method for collector, mapped from YANG variable /telemetry/collector (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_collector is considered as a private
method. Backends looking to populate this variable sho... | [
"def",
"_set_collector",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base... | Setter method for collector, mapped from YANG variable /telemetry/collector (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_collector is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_collector() di... | [
"Setter",
"method",
"for",
"collector",
"mapped",
"from",
"YANG",
"variable",
"/",
"telemetry",
"/",
"collector",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"fil... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/telemetry/__init__.py#L96-L117 | train | Set the collector variable. |
StackStorm/pybind | pybind/slxos/v17s_1_02/telemetry/__init__.py | telemetry._set_server | def _set_server(self, v, load=False):
"""
Setter method for server, mapped from YANG variable /telemetry/server (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_server is considered as a private
method. Backends looking to populate this variable should
do s... | python | def _set_server(self, v, load=False):
"""
Setter method for server, mapped from YANG variable /telemetry/server (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_server is considered as a private
method. Backends looking to populate this variable should
do s... | [
"def",
"_set_server",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for server, mapped from YANG variable /telemetry/server (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_server is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_server() directly. | [
"Setter",
"method",
"for",
"server",
"mapped",
"from",
"YANG",
"variable",
"/",
"telemetry",
"/",
"server",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/telemetry/__init__.py#L129-L150 | train | Sets the server field of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/brocade_trilloam_rpc/l2traceroute/input/__init__.py | input._set_l4protocol | def _set_l4protocol(self, v, load=False):
"""
Setter method for l4protocol, mapped from YANG variable /brocade_trilloam_rpc/l2traceroute/input/l4protocol (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_l4protocol is considered as a private
method. Backe... | python | def _set_l4protocol(self, v, load=False):
"""
Setter method for l4protocol, mapped from YANG variable /brocade_trilloam_rpc/l2traceroute/input/l4protocol (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_l4protocol is considered as a private
method. Backe... | [
"def",
"_set_l4protocol",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"bas... | Setter method for l4protocol, mapped from YANG variable /brocade_trilloam_rpc/l2traceroute/input/l4protocol (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_l4protocol is considered as a private
method. Backends looking to populate this variable should
do so... | [
"Setter",
"method",
"for",
"l4protocol",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_trilloam_rpc",
"/",
"l2traceroute",
"/",
"input",
"/",
"l4protocol",
"(",
"enumeration",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_trilloam_rpc/l2traceroute/input/__init__.py#L323-L346 | train | Sets the l4protocol of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/brocade_mac_access_list_rpc/__init__.py | brocade_mac_access_list._set_get_mac_acl_for_intf | def _set_get_mac_acl_for_intf(self, v, load=False):
"""
Setter method for get_mac_acl_for_intf, mapped from YANG variable /brocade_mac_access_list_rpc/get_mac_acl_for_intf (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_mac_acl_for_intf is considered as a priva... | python | def _set_get_mac_acl_for_intf(self, v, load=False):
"""
Setter method for get_mac_acl_for_intf, mapped from YANG variable /brocade_mac_access_list_rpc/get_mac_acl_for_intf (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_mac_acl_for_intf is considered as a priva... | [
"def",
"_set_get_mac_acl_for_intf",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
"... | Setter method for get_mac_acl_for_intf, mapped from YANG variable /brocade_mac_access_list_rpc/get_mac_acl_for_intf (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_mac_acl_for_intf is considered as a private
method. Backends looking to populate this variable should... | [
"Setter",
"method",
"for",
"get_mac_acl_for_intf",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_mac_access_list_rpc",
"/",
"get_mac_acl_for_intf",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_mac_access_list_rpc/__init__.py#L98-L122 | train | Sets the value of get_mac_acl_for_intf mapped from the MAC ACL applied on the MAC interface. |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/router/isis/__init__.py | isis._set_router_isis_cmds_holder | def _set_router_isis_cmds_holder(self, v, load=False):
"""
Setter method for router_isis_cmds_holder, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_router_isis_cmds_holder is cons... | python | def _set_router_isis_cmds_holder(self, v, load=False):
"""
Setter method for router_isis_cmds_holder, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_router_isis_cmds_holder is cons... | [
"def",
"_set_router_isis_cmds_holder",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for router_isis_cmds_holder, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_router_isis_cmds_holder is considered as a private
method. Backends looking to populate this v... | [
"Setter",
"method",
"for",
"router_isis_cmds_holder",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"router",
"/",
"isis",
"/",
"router_isis_cmds_holder",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"confi... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/router/isis/__init__.py#L92-L113 | train | Sets the value of the router_isis_cmds_holder variable. |
StackStorm/pybind | pybind/nos/v6_0_2f/brocade_preprovision_rpc/__init__.py | brocade_preprovision._set_show_bare_metal_state | def _set_show_bare_metal_state(self, v, load=False):
"""
Setter method for show_bare_metal_state, mapped from YANG variable /brocade_preprovision_rpc/show_bare_metal_state (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_bare_metal_state is considered as a priv... | python | def _set_show_bare_metal_state(self, v, load=False):
"""
Setter method for show_bare_metal_state, mapped from YANG variable /brocade_preprovision_rpc/show_bare_metal_state (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_bare_metal_state is considered as a priv... | [
"def",
"_set_show_bare_metal_state",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for show_bare_metal_state, mapped from YANG variable /brocade_preprovision_rpc/show_bare_metal_state (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_bare_metal_state is considered as a private
method. Backends looking to populate this variable should... | [
"Setter",
"method",
"for",
"show_bare_metal_state",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_preprovision_rpc",
"/",
"show_bare_metal_state",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_preprovision_rpc/__init__.py#L95-L116 | train | Sets the show_bare_metal_state of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/brocade_interface_ext_rpc/get_vlan_brief/output/vlan/interface/__init__.py | interface._set_tag | def _set_tag(self, v, load=False):
"""
Setter method for tag, mapped from YANG variable /brocade_interface_ext_rpc/get_vlan_brief/output/vlan/interface/tag (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_tag is considered as a private
method. Backends l... | python | def _set_tag(self, v, load=False):
"""
Setter method for tag, mapped from YANG variable /brocade_interface_ext_rpc/get_vlan_brief/output/vlan/interface/tag (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_tag is considered as a private
method. Backends l... | [
"def",
"_set_tag",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"... | Setter method for tag, mapped from YANG variable /brocade_interface_ext_rpc/get_vlan_brief/output/vlan/interface/tag (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_tag is considered as a private
method. Backends looking to populate this variable should
do ... | [
"Setter",
"method",
"for",
"tag",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_interface_ext_rpc",
"/",
"get_vlan_brief",
"/",
"output",
"/",
"vlan",
"/",
"interface",
"/",
"tag",
"(",
"enumeration",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_interface_ext_rpc/get_vlan_brief/output/vlan/interface/__init__.py#L222-L243 | train | Sets the tag of the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/hardware/profile/__init__.py | profile._set_route_table | def _set_route_table(self, v, load=False):
"""
Setter method for route_table, mapped from YANG variable /hardware/profile/route_table (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_route_table is considered as a private
method. Backends looking to popula... | python | def _set_route_table(self, v, load=False):
"""
Setter method for route_table, mapped from YANG variable /hardware/profile/route_table (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_route_table is considered as a private
method. Backends looking to popula... | [
"def",
"_set_route_table",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"ba... | Setter method for route_table, mapped from YANG variable /hardware/profile/route_table (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_route_table is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._... | [
"Setter",
"method",
"for",
"route_table",
"mapped",
"from",
"YANG",
"variable",
"/",
"hardware",
"/",
"profile",
"/",
"route_table",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/hardware/profile/__init__.py#L135-L156 | train | Sets the route table of the
|
StackStorm/pybind | pybind/slxos/v17s_1_02/mgmt_cluster/__init__.py | mgmt_cluster._set_cluster | def _set_cluster(self, v, load=False):
"""
Setter method for cluster, mapped from YANG variable /mgmt_cluster/cluster (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cluster is considered as a private
method. Backends looking to populate this variable sho... | python | def _set_cluster(self, v, load=False):
"""
Setter method for cluster, mapped from YANG variable /mgmt_cluster/cluster (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cluster is considered as a private
method. Backends looking to populate this variable sho... | [
"def",
"_set_cluster",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for cluster, mapped from YANG variable /mgmt_cluster/cluster (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cluster is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_cluster() di... | [
"Setter",
"method",
"for",
"cluster",
"mapped",
"from",
"YANG",
"variable",
"/",
"mgmt_cluster",
"/",
"cluster",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mgmt_cluster/__init__.py#L95-L116 | train | Set the cluster property. |
budacom/trading-bots | trading_bots/contrib/money.py | Money.loads | def loads(cls, s: str) -> 'Money':
"""Parse from a string representation (repr)"""
try:
currency, amount = s.strip().split()
return cls(amount, currency)
except ValueError as err:
raise ValueError("failed to parse string "
" '{}': ... | python | def loads(cls, s: str) -> 'Money':
"""Parse from a string representation (repr)"""
try:
currency, amount = s.strip().split()
return cls(amount, currency)
except ValueError as err:
raise ValueError("failed to parse string "
" '{}': ... | [
"def",
"loads",
"(",
"cls",
",",
"s",
":",
"str",
")",
"->",
"'Money'",
":",
"try",
":",
"currency",
",",
"amount",
"=",
"s",
".",
"strip",
"(",
")",
".",
"split",
"(",
")",
"return",
"cls",
"(",
"amount",
",",
"currency",
")",
"except",
"ValueEr... | Parse from a string representation (repr) | [
"Parse",
"from",
"a",
"string",
"representation",
"(",
"repr",
")"
] | 8cb68bb8d0b5f822108db1cc5dae336e3d3c3452 | https://github.com/budacom/trading-bots/blob/8cb68bb8d0b5f822108db1cc5dae336e3d3c3452/trading_bots/contrib/money.py#L202-L209 | train | Parse a string representation of a money object. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/show/show_firmware_dummy/show_firmware_option/__init__.py | show_firmware_option._set_peripheral_show_option | def _set_peripheral_show_option(self, v, load=False):
"""
Setter method for peripheral_show_option, mapped from YANG variable /show/show_firmware_dummy/show_firmware_option/peripheral_show_option (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_peripheral_show... | python | def _set_peripheral_show_option(self, v, load=False):
"""
Setter method for peripheral_show_option, mapped from YANG variable /show/show_firmware_dummy/show_firmware_option/peripheral_show_option (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_peripheral_show... | [
"def",
"_set_peripheral_show_option",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for peripheral_show_option, mapped from YANG variable /show/show_firmware_dummy/show_firmware_option/peripheral_show_option (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_peripheral_show_option is considered as a private
method. Backends looking to... | [
"Setter",
"method",
"for",
"peripheral_show_option",
"mapped",
"from",
"YANG",
"variable",
"/",
"show",
"/",
"show_firmware_dummy",
"/",
"show_firmware_option",
"/",
"peripheral_show_option",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/show/show_firmware_dummy/show_firmware_option/__init__.py#L92-L113 | train | Set the show firmware peripheral. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/openflow/logical_instance/__init__.py | logical_instance._set_version | def _set_version(self, v, load=False):
"""
Setter method for version, mapped from YANG variable /rbridge_id/openflow/logical_instance/version (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_version is considered as a private
method. Backends looking to populat... | python | def _set_version(self, v, load=False):
"""
Setter method for version, mapped from YANG variable /rbridge_id/openflow/logical_instance/version (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_version is considered as a private
method. Backends looking to populat... | [
"def",
"_set_version",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for version, mapped from YANG variable /rbridge_id/openflow/logical_instance/version (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_version is considered as a private
method. Backends looking to populate this variable should
do so via calling thisOb... | [
"Setter",
"method",
"for",
"version",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"openflow",
"/",
"logical_instance",
"/",
"version",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/openflow/logical_instance/__init__.py#L146-L169 | train | Sets the version of the
based on version_name |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/openflow/logical_instance/__init__.py | logical_instance._set_passive | def _set_passive(self, v, load=False):
"""
Setter method for passive, mapped from YANG variable /rbridge_id/openflow/logical_instance/passive (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_passive is considered as a private
method. Backends looking to po... | python | def _set_passive(self, v, load=False):
"""
Setter method for passive, mapped from YANG variable /rbridge_id/openflow/logical_instance/passive (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_passive is considered as a private
method. Backends looking to po... | [
"def",
"_set_passive",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for passive, mapped from YANG variable /rbridge_id/openflow/logical_instance/passive (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_passive is considered as a private
method. Backends looking to populate this variable should
do so via calling t... | [
"Setter",
"method",
"for",
"passive",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"openflow",
"/",
"logical_instance",
"/",
"passive",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/openflow/logical_instance/__init__.py#L220-L243 | train | Set the passive variable. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/openflow/logical_instance/__init__.py | logical_instance._set_default_forwarding_action | def _set_default_forwarding_action(self, v, load=False):
"""
Setter method for default_forwarding_action, mapped from YANG variable /rbridge_id/openflow/logical_instance/default_forwarding_action (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_default_forwa... | python | def _set_default_forwarding_action(self, v, load=False):
"""
Setter method for default_forwarding_action, mapped from YANG variable /rbridge_id/openflow/logical_instance/default_forwarding_action (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_default_forwa... | [
"def",
"_set_default_forwarding_action",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v"... | Setter method for default_forwarding_action, mapped from YANG variable /rbridge_id/openflow/logical_instance/default_forwarding_action (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_default_forwarding_action is considered as a private
method. Backends looking ... | [
"Setter",
"method",
"for",
"default_forwarding_action",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"openflow",
"/",
"logical_instance",
"/",
"default_forwarding_action",
"(",
"enumeration",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/openflow/logical_instance/__init__.py#L257-L280 | train | Sets the default forwarding action for the node. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/neighbor/af_ipv6_vrf_neighbor_address_holder/af_ipv6_neighbor_addr/neighbor_route_map/neighbor_route_map_direction_out/__init__.py | neighbor_route_map_direction_out._set_neighbor_route_map_name_direction_out | def _set_neighbor_route_map_name_direction_out(self, v, load=False):
"""
Setter method for neighbor_route_map_name_direction_out, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/neighbor/af_ipv6_vrf_neighbor_address_holder/af_ipv6_neighbor_addr/neighbor_route... | python | def _set_neighbor_route_map_name_direction_out(self, v, load=False):
"""
Setter method for neighbor_route_map_name_direction_out, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/neighbor/af_ipv6_vrf_neighbor_address_holder/af_ipv6_neighbor_addr/neighbor_route... | [
"def",
"_set_neighbor_route_map_name_direction_out",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
... | Setter method for neighbor_route_map_name_direction_out, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/neighbor/af_ipv6_vrf_neighbor_address_holder/af_ipv6_neighbor_addr/neighbor_route_map/neighbor_route_map_direction_out/neighbor_route_map_name_direction_out (comm... | [
"Setter",
"method",
"for",
"neighbor_route_map_name_direction_out",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"router_bgp",
"/",
"address_family",
"/",
"ipv6",
"/",
"ipv6_unicast",
"/",
"af_ipv6_vrf",
"/",
"neighbor",
"/",
"af_ipv6... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/neighbor/af_ipv6_vrf_neighbor_address_holder/af_ipv6_neighbor_addr/neighbor_route_map/neighbor_route_map_direction_out/__init__.py#L91-L112 | train | Sets the direction of the neighbor route map. |
StackStorm/pybind | pybind/nos/v7_2_0/interface_vlan/interface/vlan/ipv6/__init__.py | ipv6._set_mldVlan | def _set_mldVlan(self, v, load=False):
"""
Setter method for mldVlan, mapped from YANG variable /interface_vlan/interface/vlan/ipv6/mldVlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mldVlan is considered as a private
method. Backends looking to popu... | python | def _set_mldVlan(self, v, load=False):
"""
Setter method for mldVlan, mapped from YANG variable /interface_vlan/interface/vlan/ipv6/mldVlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mldVlan is considered as a private
method. Backends looking to popu... | [
"def",
"_set_mldVlan",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for mldVlan, mapped from YANG variable /interface_vlan/interface/vlan/ipv6/mldVlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mldVlan is considered as a private
method. Backends looking to populate this variable should
do so via calling thi... | [
"Setter",
"method",
"for",
"mldVlan",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface_vlan",
"/",
"interface",
"/",
"vlan",
"/",
"ipv6",
"/",
"mldVlan",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/interface_vlan/interface/vlan/ipv6/__init__.py#L129-L150 | train | Set the value of the mld vlan field. |
StackStorm/pybind | pybind/nos/v6_0_2f/interface/fortygigabitethernet/switchport/access/__init__.py | access._set_rspan_access | def _set_rspan_access(self, v, load=False):
"""
Setter method for rspan_access, mapped from YANG variable /interface/fortygigabitethernet/switchport/access/rspan_access (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_rspan_access is considered as a private
... | python | def _set_rspan_access(self, v, load=False):
"""
Setter method for rspan_access, mapped from YANG variable /interface/fortygigabitethernet/switchport/access/rspan_access (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_rspan_access is considered as a private
... | [
"def",
"_set_rspan_access",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for rspan_access, mapped from YANG variable /interface/fortygigabitethernet/switchport/access/rspan_access (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_rspan_access is considered as a private
method. Backends looking to populate this variable sho... | [
"Setter",
"method",
"for",
"rspan_access",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"fortygigabitethernet",
"/",
"switchport",
"/",
"access",
"/",
"rspan_access",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/fortygigabitethernet/switchport/access/__init__.py#L138-L162 | train | Set the access layer characteristics of this ethernet interface. |
StackStorm/pybind | pybind/nos/v7_2_0/__init__.py | brocade_lag._set_port_channel_redundancy_group | def _set_port_channel_redundancy_group(self, v, load=False):
"""
Setter method for port_channel_redundancy_group, mapped from YANG variable /port_channel_redundancy_group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_channel_redundancy_group is considered a... | python | def _set_port_channel_redundancy_group(self, v, load=False):
"""
Setter method for port_channel_redundancy_group, mapped from YANG variable /port_channel_redundancy_group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_channel_redundancy_group is considered a... | [
"def",
"_set_port_channel_redundancy_group",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
... | Setter method for port_channel_redundancy_group, mapped from YANG variable /port_channel_redundancy_group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_channel_redundancy_group is considered as a private
method. Backends looking to populate this variable should... | [
"Setter",
"method",
"for",
"port_channel_redundancy_group",
"mapped",
"from",
"YANG",
"variable",
"/",
"port_channel_redundancy_group",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/__init__.py#L1421-L1445 | train | Sets the port - channel - redundancy group. |
StackStorm/pybind | pybind/nos/v7_2_0/__init__.py | brocade_lacp._set_vlag_commit_mode | def _set_vlag_commit_mode(self, v, load=False):
"""
Setter method for vlag_commit_mode, mapped from YANG variable /vlag_commit_mode (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vlag_commit_mode is considered as a private
method. Backends looking to pop... | python | def _set_vlag_commit_mode(self, v, load=False):
"""
Setter method for vlag_commit_mode, mapped from YANG variable /vlag_commit_mode (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vlag_commit_mode is considered as a private
method. Backends looking to pop... | [
"def",
"_set_vlag_commit_mode",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for vlag_commit_mode, mapped from YANG variable /vlag_commit_mode (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vlag_commit_mode is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._se... | [
"Setter",
"method",
"for",
"vlag_commit_mode",
"mapped",
"from",
"YANG",
"variable",
"/",
"vlag_commit_mode",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/__init__.py#L1646-L1667 | train | Sets the vlag commit mode of the sequence. |
StackStorm/pybind | pybind/nos/v7_2_0/__init__.py | brocade_isns._set_isns | def _set_isns(self, v, load=False):
"""
Setter method for isns, mapped from YANG variable /isns (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_isns is considered as a private
method. Backends looking to populate this variable should
do so via calling... | python | def _set_isns(self, v, load=False):
"""
Setter method for isns, mapped from YANG variable /isns (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_isns is considered as a private
method. Backends looking to populate this variable should
do so via calling... | [
"def",
"_set_isns",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for isns, mapped from YANG variable /isns (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_isns is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_isns() directly.
YANG Descrip... | [
"Setter",
"method",
"for",
"isns",
"mapped",
"from",
"YANG",
"variable",
"/",
"isns",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"then",
"_set_isns"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/__init__.py#L2954-L2977 | train | Set the isns property of the
|
StackStorm/pybind | pybind/nos/v7_2_0/__init__.py | brocade_vswitch._set_vcenter | def _set_vcenter(self, v, load=False):
"""
Setter method for vcenter, mapped from YANG variable /vcenter (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_vcenter is considered as a private
method. Backends looking to populate this variable should
do so via ... | python | def _set_vcenter(self, v, load=False):
"""
Setter method for vcenter, mapped from YANG variable /vcenter (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_vcenter is considered as a private
method. Backends looking to populate this variable should
do so via ... | [
"def",
"_set_vcenter",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for vcenter, mapped from YANG variable /vcenter (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_vcenter is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_vcenter() directly.
YANG ... | [
"Setter",
"method",
"for",
"vcenter",
"mapped",
"from",
"YANG",
"variable",
"/",
"vcenter",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"then",
"_set_vcen... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/__init__.py#L4868-L4891 | train | Set the value of vcenter |
StackStorm/pybind | pybind/nos/v7_2_0/__init__.py | brocade_interface._set_uplink_switch | def _set_uplink_switch(self, v, load=False):
"""
Setter method for uplink_switch, mapped from YANG variable /uplink_switch (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_uplink_switch is considered as a private
method. Backends looking to populate this v... | python | def _set_uplink_switch(self, v, load=False):
"""
Setter method for uplink_switch, mapped from YANG variable /uplink_switch (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_uplink_switch is considered as a private
method. Backends looking to populate this v... | [
"def",
"_set_uplink_switch",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"... | Setter method for uplink_switch, mapped from YANG variable /uplink_switch (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_uplink_switch is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_uplink_... | [
"Setter",
"method",
"for",
"uplink_switch",
"mapped",
"from",
"YANG",
"variable",
"/",
"uplink_switch",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"th... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/__init__.py#L6034-L6055 | train | Set the uplink_switch property. |
StackStorm/pybind | pybind/nos/v7_2_0/__init__.py | brocade_policer._set_police_priority_map | def _set_police_priority_map(self, v, load=False):
"""
Setter method for police_priority_map, mapped from YANG variable /police_priority_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_police_priority_map is considered as a private
method. Backends looking... | python | def _set_police_priority_map(self, v, load=False):
"""
Setter method for police_priority_map, mapped from YANG variable /police_priority_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_police_priority_map is considered as a private
method. Backends looking... | [
"def",
"_set_police_priority_map",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",... | Setter method for police_priority_map, mapped from YANG variable /police_priority_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_police_priority_map is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj... | [
"Setter",
"method",
"for",
"police_priority_map",
"mapped",
"from",
"YANG",
"variable",
"/",
"police_priority_map",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/__init__.py#L9506-L9527 | train | Sets the police priority map for the given list of police - priority mappings. |
StackStorm/pybind | pybind/nos/v7_2_0/__init__.py | brocade_policer._set_class_map | def _set_class_map(self, v, load=False):
"""
Setter method for class_map, mapped from YANG variable /class_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_class_map is considered as a private
method. Backends looking to populate this variable should
do... | python | def _set_class_map(self, v, load=False):
"""
Setter method for class_map, mapped from YANG variable /class_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_class_map is considered as a private
method. Backends looking to populate this variable should
do... | [
"def",
"_set_class_map",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base... | Setter method for class_map, mapped from YANG variable /class_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_class_map is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_class_map() directly. | [
"Setter",
"method",
"for",
"class_map",
"mapped",
"from",
"YANG",
"variable",
"/",
"class_map",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"then",
"_set_... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/__init__.py#L9539-L9560 | train | Set the class map of the order of the order of the order in which the class is defined. |
StackStorm/pybind | pybind/nos/v7_2_0/__init__.py | brocade_policer._set_policy_map | def _set_policy_map(self, v, load=False):
"""
Setter method for policy_map, mapped from YANG variable /policy_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_policy_map is considered as a private
method. Backends looking to populate this variable should
... | python | def _set_policy_map(self, v, load=False):
"""
Setter method for policy_map, mapped from YANG variable /policy_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_policy_map is considered as a private
method. Backends looking to populate this variable should
... | [
"def",
"_set_policy_map",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"bas... | Setter method for policy_map, mapped from YANG variable /policy_map (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_policy_map is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_policy_map() directly... | [
"Setter",
"method",
"for",
"policy_map",
"mapped",
"from",
"YANG",
"variable",
"/",
"policy_map",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"then",
"_se... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/__init__.py#L9572-L9593 | train | Sets the policy_map variable for the
|
StackStorm/pybind | pybind/nos/v7_2_0/__init__.py | brocade_policer._set_system_qos | def _set_system_qos(self, v, load=False):
"""
Setter method for system_qos, mapped from YANG variable /system_qos (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_system_qos is considered as a private
method. Backends looking to populate this variable shou... | python | def _set_system_qos(self, v, load=False):
"""
Setter method for system_qos, mapped from YANG variable /system_qos (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_system_qos is considered as a private
method. Backends looking to populate this variable shou... | [
"def",
"_set_system_qos",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"bas... | Setter method for system_qos, mapped from YANG variable /system_qos (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_system_qos is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_system_qos() dir... | [
"Setter",
"method",
"for",
"system_qos",
"mapped",
"from",
"YANG",
"variable",
"/",
"system_qos",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"then",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/__init__.py#L9605-L9626 | train | Sets the system QoS of the
. |
StackStorm/pybind | pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/policy/traffic_engineering/__init__.py | traffic_engineering._set_traffic_eng_ospf | def _set_traffic_eng_ospf(self, v, load=False):
"""
Setter method for traffic_eng_ospf, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/policy/traffic_engineering/traffic_eng_ospf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_eng... | python | def _set_traffic_eng_ospf(self, v, load=False):
"""
Setter method for traffic_eng_ospf, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/policy/traffic_engineering/traffic_eng_ospf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_eng... | [
"def",
"_set_traffic_eng_ospf",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for traffic_eng_ospf, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/policy/traffic_engineering/traffic_eng_ospf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_eng_ospf is considered as a private
method. Backends lookin... | [
"Setter",
"method",
"for",
"traffic_eng_ospf",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_config",
"/",
"router",
"/",
"mpls",
"/",
"mpls_cmds_holder",
"/",
"policy",
"/",
"traffic_engineering",
"/",
"traffic_eng_ospf",
"(",
"container",
")",
"If",
"this",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/policy/traffic_engineering/__init__.py#L126-L147 | train | Sets the value of the traffic - eng - oSPF variable. |
StackStorm/pybind | pybind/nos/v6_0_2f/ipv6_acl/ipv6/__init__.py | ipv6._set_access_list | def _set_access_list(self, v, load=False):
"""
Setter method for access_list, mapped from YANG variable /ipv6_acl/ipv6/access_list (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_access_list is considered as a private
method. Backends looking to populate ... | python | def _set_access_list(self, v, load=False):
"""
Setter method for access_list, mapped from YANG variable /ipv6_acl/ipv6/access_list (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_access_list is considered as a private
method. Backends looking to populate ... | [
"def",
"_set_access_list",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"ba... | Setter method for access_list, mapped from YANG variable /ipv6_acl/ipv6/access_list (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_access_list is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set... | [
"Setter",
"method",
"for",
"access_list",
"mapped",
"from",
"YANG",
"variable",
"/",
"ipv6_acl",
"/",
"ipv6",
"/",
"access_list",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/ipv6_acl/ipv6/__init__.py#L92-L113 | train | Sets the access list of the
|
StackStorm/pybind | pybind/nos/v7_2_0/rbridge_id/evpn_instance/__init__.py | evpn_instance._set_route_distinguisher | def _set_route_distinguisher(self, v, load=False):
"""
Setter method for route_distinguisher, mapped from YANG variable /rbridge_id/evpn_instance/route_distinguisher (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_route_distinguisher is considered as a privat... | python | def _set_route_distinguisher(self, v, load=False):
"""
Setter method for route_distinguisher, mapped from YANG variable /rbridge_id/evpn_instance/route_distinguisher (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_route_distinguisher is considered as a privat... | [
"def",
"_set_route_distinguisher",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",... | Setter method for route_distinguisher, mapped from YANG variable /rbridge_id/evpn_instance/route_distinguisher (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_route_distinguisher is considered as a private
method. Backends looking to populate this variable should... | [
"Setter",
"method",
"for",
"route_distinguisher",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"evpn_instance",
"/",
"route_distinguisher",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/rbridge_id/evpn_instance/__init__.py#L173-L194 | train | Set the route_distinguisher variable. |
StackStorm/pybind | pybind/slxos/v17s_1_02/ip/icmp/__init__.py | icmp._set_echo | def _set_echo(self, v, load=False):
"""
Setter method for echo, mapped from YANG variable /ip/icmp/echo (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_echo is considered as a private
method. Backends looking to populate this variable should
do so via... | python | def _set_echo(self, v, load=False):
"""
Setter method for echo, mapped from YANG variable /ip/icmp/echo (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_echo is considered as a private
method. Backends looking to populate this variable should
do so via... | [
"def",
"_set_echo",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for echo, mapped from YANG variable /ip/icmp/echo (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_echo is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_echo() directly. | [
"Setter",
"method",
"for",
"echo",
"mapped",
"from",
"YANG",
"variable",
"/",
"ip",
"/",
"icmp",
"/",
"echo",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/ip/icmp/__init__.py#L92-L113 | train | Set the echo value of the
|
StackStorm/pybind | pybind/nos/v7_2_0/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/af_vrf/__init__.py | af_vrf._set_listen_range | def _set_listen_range(self, v, load=False):
"""
Setter method for listen_range, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/af_vrf/listen_range (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_listen_range is considered ... | python | def _set_listen_range(self, v, load=False):
"""
Setter method for listen_range, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/af_vrf/listen_range (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_listen_range is considered ... | [
"def",
"_set_listen_range",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for listen_range, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/af_vrf/listen_range (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_listen_range is considered as a private
method. Backends looking to populate th... | [
"Setter",
"method",
"for",
"listen_range",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"router",
"/",
"router_bgp",
"/",
"address_family",
"/",
"ipv4",
"/",
"ipv4_unicast",
"/",
"af_vrf",
"/",
"listen_range",
"(",
"list",
")",
"If",
"this",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/af_vrf/__init__.py#L425-L446 | train | Sets the listen range of the BGP vrf. |
BD2KGenomics/protect | src/protect/mutation_calling/radia.py | run_radia_with_merge | def run_radia_with_merge(job, rna_bam, tumor_bam, normal_bam, univ_options, radia_options):
"""
A wrapper for the the entire RADIA sub-graph.
:param dict rna_bam: Dict dicts of bam and bai for tumor RNA-Seq obtained by running STAR within
ProTECT.
:param dict tumor_bam: Dict of bam and bai f... | python | def run_radia_with_merge(job, rna_bam, tumor_bam, normal_bam, univ_options, radia_options):
"""
A wrapper for the the entire RADIA sub-graph.
:param dict rna_bam: Dict dicts of bam and bai for tumor RNA-Seq obtained by running STAR within
ProTECT.
:param dict tumor_bam: Dict of bam and bai f... | [
"def",
"run_radia_with_merge",
"(",
"job",
",",
"rna_bam",
",",
"tumor_bam",
",",
"normal_bam",
",",
"univ_options",
",",
"radia_options",
")",
":",
"spawn",
"=",
"job",
".",
"wrapJobFn",
"(",
"run_radia",
",",
"rna_bam",
"[",
"'rna_genome'",
"]",
",",
"tumo... | A wrapper for the the entire RADIA sub-graph.
:param dict rna_bam: Dict dicts of bam and bai for tumor RNA-Seq obtained by running STAR within
ProTECT.
:param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq
:param dict normal_bam: Dict of bam and bai for normal DNA-Seq
:param dict univ... | [
"A",
"wrapper",
"for",
"the",
"the",
"entire",
"RADIA",
"sub",
"-",
"graph",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/radia.py#L40-L59 | train | A wrapper for the entire RADIA sub - graph with a merge function. |
BD2KGenomics/protect | src/protect/mutation_calling/radia.py | run_radia | def run_radia(job, rna_bam, tumor_bam, normal_bam, univ_options, radia_options):
"""
Spawn a RADIA job for each chromosome on the input bam trios.
:param dict rna_bam: Dict of bam and bai for tumor DNA-Seq. It can be one of two formats
rna_bam: # Just the genomic bam and bai
|... | python | def run_radia(job, rna_bam, tumor_bam, normal_bam, univ_options, radia_options):
"""
Spawn a RADIA job for each chromosome on the input bam trios.
:param dict rna_bam: Dict of bam and bai for tumor DNA-Seq. It can be one of two formats
rna_bam: # Just the genomic bam and bai
|... | [
"def",
"run_radia",
"(",
"job",
",",
"rna_bam",
",",
"tumor_bam",
",",
"normal_bam",
",",
"univ_options",
",",
"radia_options",
")",
":",
"if",
"'rna_genome'",
"in",
"rna_bam",
".",
"keys",
"(",
")",
":",
"rna_bam",
"=",
"rna_bam",
"[",
"'rna_genome'",
"]"... | Spawn a RADIA job for each chromosome on the input bam trios.
:param dict rna_bam: Dict of bam and bai for tumor DNA-Seq. It can be one of two formats
rna_bam: # Just the genomic bam and bai
|- 'rna_genome_sorted.bam': fsID
+- 'rna_genome_sorted.bam.bai': fsID
... | [
"Spawn",
"a",
"RADIA",
"job",
"for",
"each",
"chromosome",
"on",
"the",
"input",
"bam",
"trios",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/radia.py#L62-L126 | train | This function will run the RADIA on the input bam trios and return the results. |
BD2KGenomics/protect | src/protect/mutation_calling/radia.py | run_radia_perchrom | def run_radia_perchrom(job, bams, univ_options, radia_options, chrom):
"""
Run RADIA call on a single chromosome in the input bams.
:param dict bams: Dict of bam and bai for tumor DNA-Seq, normal DNA-Seq and tumor RNA-Seq
:param dict univ_options: Dict of universal options used by almost all tools
... | python | def run_radia_perchrom(job, bams, univ_options, radia_options, chrom):
"""
Run RADIA call on a single chromosome in the input bams.
:param dict bams: Dict of bam and bai for tumor DNA-Seq, normal DNA-Seq and tumor RNA-Seq
:param dict univ_options: Dict of universal options used by almost all tools
... | [
"def",
"run_radia_perchrom",
"(",
"job",
",",
"bams",
",",
"univ_options",
",",
"radia_options",
",",
"chrom",
")",
":",
"work_dir",
"=",
"os",
".",
"getcwd",
"(",
")",
"input_files",
"=",
"{",
"'rna.bam'",
":",
"bams",
"[",
"'tumor_rna'",
"]",
",",
"'rn... | Run RADIA call on a single chromosome in the input bams.
:param dict bams: Dict of bam and bai for tumor DNA-Seq, normal DNA-Seq and tumor RNA-Seq
:param dict univ_options: Dict of universal options used by almost all tools
:param dict radia_options: Options specific to RADIA
:param str chrom: Chromoso... | [
"Run",
"RADIA",
"call",
"on",
"a",
"single",
"chromosome",
"in",
"the",
"input",
"bams",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/radia.py#L129-L178 | train | This function will run RADIA on a single chromosome in the input bams. |
BD2KGenomics/protect | src/protect/mutation_calling/radia.py | run_filter_radia | def run_filter_radia(job, bams, radia_file, univ_options, radia_options, chrom):
"""
Run filterradia on the RADIA output.
:param dict bams: Dict of bam and bai for tumor DNA-Seq, normal DNA-Seq and tumor RNA-Seq
:param toil.fileStore.FileID radia_file: The vcf from runnning RADIA
:param dict univ_o... | python | def run_filter_radia(job, bams, radia_file, univ_options, radia_options, chrom):
"""
Run filterradia on the RADIA output.
:param dict bams: Dict of bam and bai for tumor DNA-Seq, normal DNA-Seq and tumor RNA-Seq
:param toil.fileStore.FileID radia_file: The vcf from runnning RADIA
:param dict univ_o... | [
"def",
"run_filter_radia",
"(",
"job",
",",
"bams",
",",
"radia_file",
",",
"univ_options",
",",
"radia_options",
",",
"chrom",
")",
":",
"work_dir",
"=",
"os",
".",
"getcwd",
"(",
")",
"input_files",
"=",
"{",
"'rna.bam'",
":",
"bams",
"[",
"'tumor_rna'",... | Run filterradia on the RADIA output.
:param dict bams: Dict of bam and bai for tumor DNA-Seq, normal DNA-Seq and tumor RNA-Seq
:param toil.fileStore.FileID radia_file: The vcf from runnning RADIA
:param dict univ_options: Dict of universal options used by almost all tools
:param dict radia_options: Opt... | [
"Run",
"filterradia",
"on",
"the",
"RADIA",
"output",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/radia.py#L181-L246 | train | This function will run the filterradia on the RADIA output. |
BD2KGenomics/protect | src/protect/mutation_calling/radia.py | process_radia_vcf | def process_radia_vcf(job, radia_vcf, work_dir, univ_options):
"""
Process the RADIA vcf to for passing calls and additionally sites having multiple alt alleles
to pick out on the most likely ones.
:param toil.fileStore.FileID radia_vcf: fsID for a RADIA generated chromosome vcf
:param str work_dir... | python | def process_radia_vcf(job, radia_vcf, work_dir, univ_options):
"""
Process the RADIA vcf to for passing calls and additionally sites having multiple alt alleles
to pick out on the most likely ones.
:param toil.fileStore.FileID radia_vcf: fsID for a RADIA generated chromosome vcf
:param str work_dir... | [
"def",
"process_radia_vcf",
"(",
"job",
",",
"radia_vcf",
",",
"work_dir",
",",
"univ_options",
")",
":",
"radia_vcf",
"=",
"job",
".",
"fileStore",
".",
"readGlobalFile",
"(",
"radia_vcf",
")",
"with",
"open",
"(",
"radia_vcf",
",",
"'r'",
")",
"as",
"inf... | Process the RADIA vcf to for passing calls and additionally sites having multiple alt alleles
to pick out on the most likely ones.
:param toil.fileStore.FileID radia_vcf: fsID for a RADIA generated chromosome vcf
:param str work_dir: Working directory
:param dict univ_options: Dict of universal options... | [
"Process",
"the",
"RADIA",
"vcf",
"to",
"for",
"passing",
"calls",
"and",
"additionally",
"sites",
"having",
"multiple",
"alt",
"alleles",
"to",
"pick",
"out",
"on",
"the",
"most",
"likely",
"ones",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/radia.py#L249-L371 | train | This function processes the RADIA vcf to for passing calls and additionally sites having multiple alt alleles
. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py | brocade_mpls._set_show_mpls_statistics_ldp_tunnel | def _set_show_mpls_statistics_ldp_tunnel(self, v, load=False):
"""
Setter method for show_mpls_statistics_ldp_tunnel, mapped from YANG variable /brocade_mpls_rpc/show_mpls_statistics_ldp_tunnel (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_statistics_ld... | python | def _set_show_mpls_statistics_ldp_tunnel(self, v, load=False):
"""
Setter method for show_mpls_statistics_ldp_tunnel, mapped from YANG variable /brocade_mpls_rpc/show_mpls_statistics_ldp_tunnel (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_statistics_ld... | [
"def",
"_set_show_mpls_statistics_ldp_tunnel",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",... | Setter method for show_mpls_statistics_ldp_tunnel, mapped from YANG variable /brocade_mpls_rpc/show_mpls_statistics_ldp_tunnel (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_statistics_ldp_tunnel is considered as a private
method. Backends looking to populat... | [
"Setter",
"method",
"for",
"show_mpls_statistics_ldp_tunnel",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_mpls_rpc",
"/",
"show_mpls_statistics_ldp_tunnel",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py#L354-L375 | train | Set the show - mpls - statistics - ldp tunnel. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py | brocade_mpls._set_show_mpls_ldp_path | def _set_show_mpls_ldp_path(self, v, load=False):
"""
Setter method for show_mpls_ldp_path, mapped from YANG variable /brocade_mpls_rpc/show_mpls_ldp_path (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_ldp_path is considered as a private
method. Back... | python | def _set_show_mpls_ldp_path(self, v, load=False):
"""
Setter method for show_mpls_ldp_path, mapped from YANG variable /brocade_mpls_rpc/show_mpls_ldp_path (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_ldp_path is considered as a private
method. Back... | [
"def",
"_set_show_mpls_ldp_path",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
","... | Setter method for show_mpls_ldp_path, mapped from YANG variable /brocade_mpls_rpc/show_mpls_ldp_path (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_ldp_path is considered as a private
method. Backends looking to populate this variable should
do so via ca... | [
"Setter",
"method",
"for",
"show_mpls_ldp_path",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_mpls_rpc",
"/",
"show_mpls_ldp_path",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"s... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py#L387-L408 | train | Set the show - mpls - ldp - path property. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py | brocade_mpls._set_show_mpls_ldp_fec | def _set_show_mpls_ldp_fec(self, v, load=False):
"""
Setter method for show_mpls_ldp_fec, mapped from YANG variable /brocade_mpls_rpc/show_mpls_ldp_fec (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_ldp_fec is considered as a private
method. Backends... | python | def _set_show_mpls_ldp_fec(self, v, load=False):
"""
Setter method for show_mpls_ldp_fec, mapped from YANG variable /brocade_mpls_rpc/show_mpls_ldp_fec (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_ldp_fec is considered as a private
method. Backends... | [
"def",
"_set_show_mpls_ldp_fec",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",... | Setter method for show_mpls_ldp_fec, mapped from YANG variable /brocade_mpls_rpc/show_mpls_ldp_fec (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_ldp_fec is considered as a private
method. Backends looking to populate this variable should
do so via calli... | [
"Setter",
"method",
"for",
"show_mpls_ldp_fec",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_mpls_rpc",
"/",
"show_mpls_ldp_fec",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"sou... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py#L519-L540 | train | Set show - mpls - ldp - fec based on show_mpls_ldp_fec. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py | brocade_mpls._set_show_mpls_policy | def _set_show_mpls_policy(self, v, load=False):
"""
Setter method for show_mpls_policy, mapped from YANG variable /brocade_mpls_rpc/show_mpls_policy (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_policy is considered as a private
method. Backends loo... | python | def _set_show_mpls_policy(self, v, load=False):
"""
Setter method for show_mpls_policy, mapped from YANG variable /brocade_mpls_rpc/show_mpls_policy (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_policy is considered as a private
method. Backends loo... | [
"def",
"_set_show_mpls_policy",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for show_mpls_policy, mapped from YANG variable /brocade_mpls_rpc/show_mpls_policy (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_policy is considered as a private
method. Backends looking to populate this variable should
do so via calling ... | [
"Setter",
"method",
"for",
"show_mpls_policy",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_mpls_rpc",
"/",
"show_mpls_policy",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"sourc... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py#L915-L936 | train | Sets the show - mpls - policy for the cluster. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py | brocade_mpls._set_show_mpls_rsvp | def _set_show_mpls_rsvp(self, v, load=False):
"""
Setter method for show_mpls_rsvp, mapped from YANG variable /brocade_mpls_rpc/show_mpls_rsvp (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_rsvp is considered as a private
method. Backends looking to ... | python | def _set_show_mpls_rsvp(self, v, load=False):
"""
Setter method for show_mpls_rsvp, mapped from YANG variable /brocade_mpls_rpc/show_mpls_rsvp (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_rsvp is considered as a private
method. Backends looking to ... | [
"def",
"_set_show_mpls_rsvp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for show_mpls_rsvp, mapped from YANG variable /brocade_mpls_rpc/show_mpls_rsvp (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_rsvp is considered as a private
method. Backends looking to populate this variable should
do so via calling thisOb... | [
"Setter",
"method",
"for",
"show_mpls_rsvp",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_mpls_rpc",
"/",
"show_mpls_rsvp",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py#L1047-L1068 | train | Set the show - mpls - rsvp variable. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py | brocade_mpls._set_show_mpls_rsvp_interface | def _set_show_mpls_rsvp_interface(self, v, load=False):
"""
Setter method for show_mpls_rsvp_interface, mapped from YANG variable /brocade_mpls_rpc/show_mpls_rsvp_interface (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_rsvp_interface is considered as a ... | python | def _set_show_mpls_rsvp_interface(self, v, load=False):
"""
Setter method for show_mpls_rsvp_interface, mapped from YANG variable /brocade_mpls_rpc/show_mpls_rsvp_interface (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_rsvp_interface is considered as a ... | [
"def",
"_set_show_mpls_rsvp_interface",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",... | Setter method for show_mpls_rsvp_interface, mapped from YANG variable /brocade_mpls_rpc/show_mpls_rsvp_interface (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_rsvp_interface is considered as a private
method. Backends looking to populate this variable shoul... | [
"Setter",
"method",
"for",
"show_mpls_rsvp_interface",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_mpls_rpc",
"/",
"show_mpls_rsvp_interface",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py#L1146-L1167 | train | Set the show - mpls - rsvp - interface for the cluster. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py | brocade_mpls._set_show_mpls_rsvp_neighbor | def _set_show_mpls_rsvp_neighbor(self, v, load=False):
"""
Setter method for show_mpls_rsvp_neighbor, mapped from YANG variable /brocade_mpls_rpc/show_mpls_rsvp_neighbor (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_rsvp_neighbor is considered as a priv... | python | def _set_show_mpls_rsvp_neighbor(self, v, load=False):
"""
Setter method for show_mpls_rsvp_neighbor, mapped from YANG variable /brocade_mpls_rpc/show_mpls_rsvp_neighbor (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_rsvp_neighbor is considered as a priv... | [
"def",
"_set_show_mpls_rsvp_neighbor",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for show_mpls_rsvp_neighbor, mapped from YANG variable /brocade_mpls_rpc/show_mpls_rsvp_neighbor (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_show_mpls_rsvp_neighbor is considered as a private
method. Backends looking to populate this variable should
... | [
"Setter",
"method",
"for",
"show_mpls_rsvp_neighbor",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_mpls_rpc",
"/",
"show_mpls_rsvp_neighbor",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/brocade_mpls_rpc/__init__.py#L1245-L1266 | train | Set the show - mpls - rsvp - neighbor property. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.