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/brocade_lag_rpc/__init__.py | brocade_lag._set_get_port_channel_detail | def _set_get_port_channel_detail(self, v, load=False):
"""
Setter method for get_port_channel_detail, mapped from YANG variable /brocade_lag_rpc/get_port_channel_detail (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_port_channel_detail is considered as a priva... | python | def _set_get_port_channel_detail(self, v, load=False):
"""
Setter method for get_port_channel_detail, mapped from YANG variable /brocade_lag_rpc/get_port_channel_detail (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_port_channel_detail is considered as a priva... | [
"def",
"_set_get_port_channel_detail",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for get_port_channel_detail, mapped from YANG variable /brocade_lag_rpc/get_port_channel_detail (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_port_channel_detail is considered as a private
method. Backends looking to populate this variable should
... | [
"Setter",
"method",
"for",
"get_port_channel_detail",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_lag_rpc",
"/",
"get_port_channel_detail",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"t... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_lag_rpc/__init__.py#L106-L131 | train | Sets the get_port_channel_detail property of the
based on the rpc parameter |
StackStorm/pybind | pybind/nos/v6_0_2f/brocade_lag_rpc/__init__.py | brocade_lag._set_get_portchannel_info_by_intf | def _set_get_portchannel_info_by_intf(self, v, load=False):
"""
Setter method for get_portchannel_info_by_intf, mapped from YANG variable /brocade_lag_rpc/get_portchannel_info_by_intf (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_portchannel_info_by_intf is c... | python | def _set_get_portchannel_info_by_intf(self, v, load=False):
"""
Setter method for get_portchannel_info_by_intf, mapped from YANG variable /brocade_lag_rpc/get_portchannel_info_by_intf (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_portchannel_info_by_intf is c... | [
"def",
"_set_get_portchannel_info_by_intf",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
... | Setter method for get_portchannel_info_by_intf, mapped from YANG variable /brocade_lag_rpc/get_portchannel_info_by_intf (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_portchannel_info_by_intf is considered as a private
method. Backends looking to populate this var... | [
"Setter",
"method",
"for",
"get_portchannel_info_by_intf",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_lag_rpc",
"/",
"get_portchannel_info_by_intf",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_lag_rpc/__init__.py#L147-L172 | train | This method is used to set the value of get_portchannel_info_by_intf in the portchannel. |
StackStorm/pybind | pybind/nos/v6_0_2f/policy_map/class_/police/__init__.py | police._set_cir | def _set_cir(self, v, load=False):
"""
Setter method for cir, mapped from YANG variable /policy_map/class/police/cir (uint64)
If this variable is read-only (config: false) in the
source YANG file, then _set_cir is considered as a private
method. Backends looking to populate this variable should
... | python | def _set_cir(self, v, load=False):
"""
Setter method for cir, mapped from YANG variable /policy_map/class/police/cir (uint64)
If this variable is read-only (config: false) in the
source YANG file, then _set_cir is considered as a private
method. Backends looking to populate this variable should
... | [
"def",
"_set_cir",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"... | Setter method for cir, mapped from YANG variable /policy_map/class/police/cir (uint64)
If this variable is read-only (config: false) in the
source YANG file, then _set_cir is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_cir() directly. | [
"Setter",
"method",
"for",
"cir",
"mapped",
"from",
"YANG",
"variable",
"/",
"policy_map",
"/",
"class",
"/",
"police",
"/",
"cir",
"(",
"uint64",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/policy_map/class_/police/__init__.py#L101-L122 | train | Set the cir field of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/policy_map/class_/police/__init__.py | police._set_conform_set_dscp | def _set_conform_set_dscp(self, v, load=False):
"""
Setter method for conform_set_dscp, mapped from YANG variable /policy_map/class/police/conform_set_dscp (dscp-value)
If this variable is read-only (config: false) in the
source YANG file, then _set_conform_set_dscp is considered as a private
method... | python | def _set_conform_set_dscp(self, v, load=False):
"""
Setter method for conform_set_dscp, mapped from YANG variable /policy_map/class/police/conform_set_dscp (dscp-value)
If this variable is read-only (config: false) in the
source YANG file, then _set_conform_set_dscp is considered as a private
method... | [
"def",
"_set_conform_set_dscp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for conform_set_dscp, mapped from YANG variable /policy_map/class/police/conform_set_dscp (dscp-value)
If this variable is read-only (config: false) in the
source YANG file, then _set_conform_set_dscp is considered as a private
method. Backends looking to populate this variable should
do s... | [
"Setter",
"method",
"for",
"conform_set_dscp",
"mapped",
"from",
"YANG",
"variable",
"/",
"policy_map",
"/",
"class",
"/",
"police",
"/",
"conform_set_dscp",
"(",
"dscp",
"-",
"value",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/policy_map/class_/police/__init__.py#L266-L287 | train | Sets the value of the DSCP field in the order of the DSCP. |
StackStorm/pybind | pybind/slxos/v17r_2_00/interface/port_channel/__init__.py | port_channel._set_vlag | def _set_vlag(self, v, load=False):
"""
Setter method for vlag, mapped from YANG variable /interface/port_channel/vlag (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vlag is considered as a private
method. Backends looking to populate this variable shoul... | python | def _set_vlag(self, v, load=False):
"""
Setter method for vlag, mapped from YANG variable /interface/port_channel/vlag (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vlag is considered as a private
method. Backends looking to populate this variable shoul... | [
"def",
"_set_vlag",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for vlag, mapped from YANG variable /interface/port_channel/vlag (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vlag is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_vlag() dire... | [
"Setter",
"method",
"for",
"vlag",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"vlag",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"sourc... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/interface/port_channel/__init__.py#L193-L216 | train | Sets the vlag of the
|
StackStorm/pybind | pybind/slxos/v17r_2_00/interface/port_channel/__init__.py | port_channel._set_priority_tag_enable | def _set_priority_tag_enable(self, v, load=False):
"""
Setter method for priority_tag_enable, mapped from YANG variable /interface/port_channel/priority_tag_enable (empty)
If this variable is read-only (config: false) in the
source YANG file, then _set_priority_tag_enable is considered as a private
... | python | def _set_priority_tag_enable(self, v, load=False):
"""
Setter method for priority_tag_enable, mapped from YANG variable /interface/port_channel/priority_tag_enable (empty)
If this variable is read-only (config: false) in the
source YANG file, then _set_priority_tag_enable is considered as a private
... | [
"def",
"_set_priority_tag_enable",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",... | Setter method for priority_tag_enable, mapped from YANG variable /interface/port_channel/priority_tag_enable (empty)
If this variable is read-only (config: false) in the
source YANG file, then _set_priority_tag_enable is considered as a private
method. Backends looking to populate this variable should
d... | [
"Setter",
"method",
"for",
"priority_tag_enable",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"priority_tag_enable",
"(",
"empty",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/interface/port_channel/__init__.py#L812-L833 | train | Set priority tagging for the
|
StackStorm/pybind | pybind/slxos/v17r_2_00/interface/port_channel/__init__.py | port_channel._set_load_balance_type | def _set_load_balance_type(self, v, load=False):
"""
Setter method for load_balance_type, mapped from YANG variable /interface/port_channel/load_balance_type (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_load_balance_type is considered as a private
me... | python | def _set_load_balance_type(self, v, load=False):
"""
Setter method for load_balance_type, mapped from YANG variable /interface/port_channel/load_balance_type (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_load_balance_type is considered as a private
me... | [
"def",
"_set_load_balance_type",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",... | Setter method for load_balance_type, mapped from YANG variable /interface/port_channel/load_balance_type (enumeration)
If this variable is read-only (config: false) in the
source YANG file, then _set_load_balance_type is considered as a private
method. Backends looking to populate this variable should
d... | [
"Setter",
"method",
"for",
"load_balance_type",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"load_balance_type",
"(",
"enumeration",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/interface/port_channel/__init__.py#L878-L899 | train | Sets the load balance type for the node. |
StackStorm/pybind | pybind/slxos/v17r_2_00/interface/port_channel/__init__.py | port_channel._set_fcoeport | def _set_fcoeport(self, v, load=False):
"""
Setter method for fcoeport, mapped from YANG variable /interface/port_channel/fcoeport (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoeport is considered as a private
method. Backends looking to populate thi... | python | def _set_fcoeport(self, v, load=False):
"""
Setter method for fcoeport, mapped from YANG variable /interface/port_channel/fcoeport (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoeport is considered as a private
method. Backends looking to populate thi... | [
"def",
"_set_fcoeport",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for fcoeport, mapped from YANG variable /interface/port_channel/fcoeport (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoeport is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set... | [
"Setter",
"method",
"for",
"fcoeport",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"fcoeport",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/interface/port_channel/__init__.py#L1010-L1031 | train | Set the value of the FCoE port field in the sequence. |
StackStorm/pybind | pybind/slxos/v17r_2_00/interface/port_channel/__init__.py | port_channel._set_openflowPo | def _set_openflowPo(self, v, load=False):
"""
Setter method for openflowPo, mapped from YANG variable /interface/port_channel/openflowPo (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_openflowPo is considered as a private
method. Backends looking to popu... | python | def _set_openflowPo(self, v, load=False):
"""
Setter method for openflowPo, mapped from YANG variable /interface/port_channel/openflowPo (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_openflowPo is considered as a private
method. Backends looking to popu... | [
"def",
"_set_openflowPo",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"bas... | Setter method for openflowPo, mapped from YANG variable /interface/port_channel/openflowPo (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_openflowPo is considered as a private
method. Backends looking to populate this variable should
do so via calling thisOb... | [
"Setter",
"method",
"for",
"openflowPo",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"openflowPo",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"th... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/interface/port_channel/__init__.py#L1109-L1130 | train | Sets the openflow - po variable for the sequence of openflows. |
StackStorm/pybind | pybind/slxos/v17r_2_00/interface/port_channel/__init__.py | port_channel._set_port_profile_port | def _set_port_profile_port(self, v, load=False):
"""
Setter method for port_profile_port, mapped from YANG variable /interface/port_channel/port_profile_port (empty)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_profile_port is considered as a private
method. ... | python | def _set_port_profile_port(self, v, load=False):
"""
Setter method for port_profile_port, mapped from YANG variable /interface/port_channel/port_profile_port (empty)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_profile_port is considered as a private
method. ... | [
"def",
"_set_port_profile_port",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",... | Setter method for port_profile_port, mapped from YANG variable /interface/port_channel/port_profile_port (empty)
If this variable is read-only (config: false) in the
source YANG file, then _set_port_profile_port is considered as a private
method. Backends looking to populate this variable should
do so v... | [
"Setter",
"method",
"for",
"port_profile_port",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"port_profile_port",
"(",
"empty",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/interface/port_channel/__init__.py#L1151-L1181 | train | Sets the port - profile - port of the base node. |
StackStorm/pybind | pybind/slxos/v17r_2_00/interface/port_channel/__init__.py | port_channel._set_service_policy | def _set_service_policy(self, v, load=False):
"""
Setter method for service_policy, mapped from YANG variable /interface/port_channel/service_policy (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_service_policy is considered as a private
method. Backends... | python | def _set_service_policy(self, v, load=False):
"""
Setter method for service_policy, mapped from YANG variable /interface/port_channel/service_policy (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_service_policy is considered as a private
method. Backends... | [
"def",
"_set_service_policy",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for service_policy, mapped from YANG variable /interface/port_channel/service_policy (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_service_policy is considered as a private
method. Backends looking to populate this variable should
do so via ca... | [
"Setter",
"method",
"for",
"service_policy",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"service_policy",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/interface/port_channel/__init__.py#L1259-L1280 | train | Sets the service policy for the
|
StackStorm/pybind | pybind/slxos/v17r_2_00/interface/port_channel/__init__.py | port_channel._set_offsets | def _set_offsets(self, v, load=False):
"""
Setter method for offsets, mapped from YANG variable /interface/port_channel/offsets (uda-profile-name)
If this variable is read-only (config: false) in the
source YANG file, then _set_offsets is considered as a private
method. Backends looking to populate ... | python | def _set_offsets(self, v, load=False):
"""
Setter method for offsets, mapped from YANG variable /interface/port_channel/offsets (uda-profile-name)
If this variable is read-only (config: false) in the
source YANG file, then _set_offsets is considered as a private
method. Backends looking to populate ... | [
"def",
"_set_offsets",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for offsets, mapped from YANG variable /interface/port_channel/offsets (uda-profile-name)
If this variable is read-only (config: false) in the
source YANG file, then _set_offsets is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj.... | [
"Setter",
"method",
"for",
"offsets",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"offsets",
"(",
"uda",
"-",
"profile",
"-",
"name",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"fal... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/interface/port_channel/__init__.py#L1325-L1346 | train | Sets the offsets of the current node. |
BD2KGenomics/protect | src/protect/alignment/rna.py | align_rna | def align_rna(job, fastqs, univ_options, star_options):
"""
A wrapper for the entire rna alignment subgraph.
:param list fastqs: The input fastqs for alignment
:param dict univ_options: Dict of universal options used by almost all tools
:param dict star_options: Options specific to star
:return... | python | def align_rna(job, fastqs, univ_options, star_options):
"""
A wrapper for the entire rna alignment subgraph.
:param list fastqs: The input fastqs for alignment
:param dict univ_options: Dict of universal options used by almost all tools
:param dict star_options: Options specific to star
:return... | [
"def",
"align_rna",
"(",
"job",
",",
"fastqs",
",",
"univ_options",
",",
"star_options",
")",
":",
"star",
"=",
"job",
".",
"wrapJobFn",
"(",
"run_star",
",",
"fastqs",
",",
"univ_options",
",",
"star_options",
",",
"cores",
"=",
"star_options",
"[",
"'n'"... | A wrapper for the entire rna alignment subgraph.
:param list fastqs: The input fastqs for alignment
:param dict univ_options: Dict of universal options used by almost all tools
:param dict star_options: Options specific to star
:return: Dict containing input bam and the generated index (.bam.bai)
:... | [
"A",
"wrapper",
"for",
"the",
"entire",
"rna",
"alignment",
"subgraph",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/alignment/rna.py#L39-L58 | train | A wrapper for the entire rna alignment subgraph. |
BD2KGenomics/protect | src/protect/alignment/rna.py | run_star | def run_star(job, fastqs, univ_options, star_options):
"""
Align a pair of fastqs with STAR.
:param list fastqs: The input fastqs for alignment
:param dict univ_options: Dict of universal options used by almost all tools
:param dict star_options: Options specific to star
:return: Dict containin... | python | def run_star(job, fastqs, univ_options, star_options):
"""
Align a pair of fastqs with STAR.
:param list fastqs: The input fastqs for alignment
:param dict univ_options: Dict of universal options used by almost all tools
:param dict star_options: Options specific to star
:return: Dict containin... | [
"def",
"run_star",
"(",
"job",
",",
"fastqs",
",",
"univ_options",
",",
"star_options",
")",
":",
"assert",
"star_options",
"[",
"'type'",
"]",
"in",
"(",
"'star'",
",",
"'starlong'",
")",
"work_dir",
"=",
"os",
".",
"getcwd",
"(",
")",
"input_files",
"=... | Align a pair of fastqs with STAR.
:param list fastqs: The input fastqs for alignment
:param dict univ_options: Dict of universal options used by almost all tools
:param dict star_options: Options specific to star
:return: Dict containing output genome bam, genome bai, and transcriptome bam
... | [
"Align",
"a",
"pair",
"of",
"fastqs",
"with",
"STAR",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/alignment/rna.py#L61-L138 | train | This function will align a pair of fastqs with STAR and return the alignment and BAM. |
BD2KGenomics/protect | src/protect/alignment/rna.py | sort_and_index_star | def sort_and_index_star(job, star_bams, univ_options, star_options):
"""
A wrapper for sorting and indexing the genomic star bam generated by run_star. It is required
since run_star returns a dict of 2 bams
:param dict star_bams: The bams from run_star
:param dict univ_options: Dict of universal op... | python | def sort_and_index_star(job, star_bams, univ_options, star_options):
"""
A wrapper for sorting and indexing the genomic star bam generated by run_star. It is required
since run_star returns a dict of 2 bams
:param dict star_bams: The bams from run_star
:param dict univ_options: Dict of universal op... | [
"def",
"sort_and_index_star",
"(",
"job",
",",
"star_bams",
",",
"univ_options",
",",
"star_options",
")",
":",
"star_options",
"[",
"'samtools'",
"]",
"[",
"'n'",
"]",
"=",
"star_options",
"[",
"'n'",
"]",
"sort",
"=",
"job",
".",
"wrapJobFn",
"(",
"sort_... | A wrapper for sorting and indexing the genomic star bam generated by run_star. It is required
since run_star returns a dict of 2 bams
:param dict star_bams: The bams from run_star
:param dict univ_options: Dict of universal options used by almost all tools
:param dict star_options: Options specific to ... | [
"A",
"wrapper",
"for",
"sorting",
"and",
"indexing",
"the",
"genomic",
"star",
"bam",
"generated",
"by",
"run_star",
".",
"It",
"is",
"required",
"since",
"run_star",
"returns",
"a",
"dict",
"of",
"2",
"bams"
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/alignment/rna.py#L141-L169 | train | A wrapper for sorting and indexing the genomic star bams generated by run_star. |
StackStorm/pybind | pybind/nos/v6_0_2f/interface/port_channel/qos/flowcontrol/__init__.py | flowcontrol._set_pfc | def _set_pfc(self, v, load=False):
"""
Setter method for pfc, mapped from YANG variable /interface/port_channel/qos/flowcontrol/pfc (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_pfc is considered as a private
method. Backends looking to populate this variabl... | python | def _set_pfc(self, v, load=False):
"""
Setter method for pfc, mapped from YANG variable /interface/port_channel/qos/flowcontrol/pfc (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_pfc is considered as a private
method. Backends looking to populate this variabl... | [
"def",
"_set_pfc",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"... | Setter method for pfc, mapped from YANG variable /interface/port_channel/qos/flowcontrol/pfc (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_pfc is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_pfc... | [
"Setter",
"method",
"for",
"pfc",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"qos",
"/",
"flowcontrol",
"/",
"pfc",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/port_channel/qos/flowcontrol/__init__.py#L127-L148 | train | Set the pfc field of the
. |
StackStorm/pybind | pybind/nos/v6_0_2f/hardware/custom_profile/kap_custom_profile/__init__.py | kap_custom_profile._set_xstp | def _set_xstp(self, v, load=False):
"""
Setter method for xstp, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/xstp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_xstp is considered as a private
method. Backends looking to populate... | python | def _set_xstp(self, v, load=False):
"""
Setter method for xstp, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/xstp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_xstp is considered as a private
method. Backends looking to populate... | [
"def",
"_set_xstp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for xstp, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/xstp (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_xstp is considered as a private
method. Backends looking to populate this variable should
do so via calling this... | [
"Setter",
"method",
"for",
"xstp",
"mapped",
"from",
"YANG",
"variable",
"/",
"hardware",
"/",
"custom_profile",
"/",
"kap_custom_profile",
"/",
"xstp",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/hardware/custom_profile/kap_custom_profile/__init__.py#L176-L197 | train | Sets the xstp property of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/hardware/custom_profile/kap_custom_profile/__init__.py | kap_custom_profile._set_rpvst | def _set_rpvst(self, v, load=False):
"""
Setter method for rpvst, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/rpvst (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_rpvst is considered as a private
method. Backends looking to popu... | python | def _set_rpvst(self, v, load=False):
"""
Setter method for rpvst, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/rpvst (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_rpvst is considered as a private
method. Backends looking to popu... | [
"def",
"_set_rpvst",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for rpvst, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/rpvst (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_rpvst is considered as a private
method. Backends looking to populate this variable should
do so via calling t... | [
"Setter",
"method",
"for",
"rpvst",
"mapped",
"from",
"YANG",
"variable",
"/",
"hardware",
"/",
"custom_profile",
"/",
"kap_custom_profile",
"/",
"rpvst",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/hardware/custom_profile/kap_custom_profile/__init__.py#L209-L230 | train | Sets the value of the rpvst property in the base KAP object. |
StackStorm/pybind | pybind/nos/v6_0_2f/hardware/custom_profile/kap_custom_profile/__init__.py | kap_custom_profile._set_bfd_vxlan | def _set_bfd_vxlan(self, v, load=False):
"""
Setter method for bfd_vxlan, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/bfd_vxlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bfd_vxlan is considered as a private
method. Backends... | python | def _set_bfd_vxlan(self, v, load=False):
"""
Setter method for bfd_vxlan, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/bfd_vxlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bfd_vxlan is considered as a private
method. Backends... | [
"def",
"_set_bfd_vxlan",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base... | Setter method for bfd_vxlan, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/bfd_vxlan (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bfd_vxlan is considered as a private
method. Backends looking to populate this variable should
do so v... | [
"Setter",
"method",
"for",
"bfd_vxlan",
"mapped",
"from",
"YANG",
"variable",
"/",
"hardware",
"/",
"custom_profile",
"/",
"kap_custom_profile",
"/",
"bfd_vxlan",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/hardware/custom_profile/kap_custom_profile/__init__.py#L275-L296 | train | Sets the value of the bfd_vxlan property. |
StackStorm/pybind | pybind/nos/v6_0_2f/hardware/custom_profile/kap_custom_profile/__init__.py | kap_custom_profile._set_bfd_l3 | def _set_bfd_l3(self, v, load=False):
"""
Setter method for bfd_l3, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/bfd_l3 (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bfd_l3 is considered as a private
method. Backends looking to ... | python | def _set_bfd_l3(self, v, load=False):
"""
Setter method for bfd_l3, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/bfd_l3 (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bfd_l3 is considered as a private
method. Backends looking to ... | [
"def",
"_set_bfd_l3",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for bfd_l3, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/bfd_l3 (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_bfd_l3 is considered as a private
method. Backends looking to populate this variable should
do so via callin... | [
"Setter",
"method",
"for",
"bfd_l3",
"mapped",
"from",
"YANG",
"variable",
"/",
"hardware",
"/",
"custom_profile",
"/",
"kap_custom_profile",
"/",
"bfd_l3",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"fals... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/hardware/custom_profile/kap_custom_profile/__init__.py#L308-L329 | train | Sets the value of the bfd - l3 protocol KAP parameter. |
StackStorm/pybind | pybind/nos/v6_0_2f/hardware/custom_profile/kap_custom_profile/__init__.py | kap_custom_profile._set_fcoe | def _set_fcoe(self, v, load=False):
"""
Setter method for fcoe, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/fcoe (container)
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... | python | def _set_fcoe(self, v, load=False):
"""
Setter method for fcoe, mapped from YANG variable /hardware/custom_profile/kap_custom_profile/fcoe (container)
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... | [
"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 /hardware/custom_profile/kap_custom_profile/fcoe (container)
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 this... | [
"Setter",
"method",
"for",
"fcoe",
"mapped",
"from",
"YANG",
"variable",
"/",
"hardware",
"/",
"custom_profile",
"/",
"kap_custom_profile",
"/",
"fcoe",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/hardware/custom_profile/kap_custom_profile/__init__.py#L341-L362 | train | Set the FCOE protocol KAP parameters. |
StackStorm/pybind | pybind/nos/v6_0_2f/cee_map/__init__.py | cee_map._set_priority_table | def _set_priority_table(self, v, load=False):
"""
Setter method for priority_table, mapped from YANG variable /cee_map/priority_table (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_priority_table is considered as a private
method. Backends looking to pop... | python | def _set_priority_table(self, v, load=False):
"""
Setter method for priority_table, mapped from YANG variable /cee_map/priority_table (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_priority_table is considered as a private
method. Backends looking to pop... | [
"def",
"_set_priority_table",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for priority_table, mapped from YANG variable /cee_map/priority_table (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_priority_table is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._... | [
"Setter",
"method",
"for",
"priority_table",
"mapped",
"from",
"YANG",
"variable",
"/",
"cee_map",
"/",
"priority_table",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/cee_map/__init__.py#L208-L231 | train | Sets the priority table of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/cee_map/__init__.py | cee_map._set_remap | def _set_remap(self, v, load=False):
"""
Setter method for remap, mapped from YANG variable /cee_map/remap (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_remap is considered as a private
method. Backends looking to populate this variable should
do so... | python | def _set_remap(self, v, load=False):
"""
Setter method for remap, mapped from YANG variable /cee_map/remap (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_remap is considered as a private
method. Backends looking to populate this variable should
do so... | [
"def",
"_set_remap",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for remap, mapped from YANG variable /cee_map/remap (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_remap is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_remap() directly. | [
"Setter",
"method",
"for",
"remap",
"mapped",
"from",
"YANG",
"variable",
"/",
"cee_map",
"/",
"remap",
"(",
"container",
")",
"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/cee_map/__init__.py#L243-L264 | train | Sets remap property of the
|
drslump/pyshould | pyshould/expectation.py | Expectation.reset | def reset(self):
""" Resets the state of the expression """
self.expr = []
self.matcher = None
self.last_matcher = None
self.description = None | python | def reset(self):
""" Resets the state of the expression """
self.expr = []
self.matcher = None
self.last_matcher = None
self.description = None | [
"def",
"reset",
"(",
"self",
")",
":",
"self",
".",
"expr",
"=",
"[",
"]",
"self",
".",
"matcher",
"=",
"None",
"self",
".",
"last_matcher",
"=",
"None",
"self",
".",
"description",
"=",
"None"
] | Resets the state of the expression | [
"Resets",
"the",
"state",
"of",
"the",
"expression"
] | 7210859d4c84cfbaa64f91b30c2a541aea788ddf | https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/expectation.py#L44-L49 | train | Resets the state of the expression |
drslump/pyshould | pyshould/expectation.py | Expectation.clone | def clone(self):
""" Clone this expression """
from copy import copy
clone = copy(self)
clone.expr = copy(self.expr)
clone.factory = False
return clone | python | def clone(self):
""" Clone this expression """
from copy import copy
clone = copy(self)
clone.expr = copy(self.expr)
clone.factory = False
return clone | [
"def",
"clone",
"(",
"self",
")",
":",
"from",
"copy",
"import",
"copy",
"clone",
"=",
"copy",
"(",
"self",
")",
"clone",
".",
"expr",
"=",
"copy",
"(",
"self",
".",
"expr",
")",
"clone",
".",
"factory",
"=",
"False",
"return",
"clone"
] | Clone this expression | [
"Clone",
"this",
"expression"
] | 7210859d4c84cfbaa64f91b30c2a541aea788ddf | https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/expectation.py#L51-L57 | train | Clone this expression |
drslump/pyshould | pyshould/expectation.py | Expectation.resolve | def resolve(self, value=None):
""" Resolve the current expression against the supplied value """
# If we still have an uninitialized matcher init it now
if self.matcher:
self._init_matcher()
# Evaluate the current set of matchers forming the expression
matcher = sel... | python | def resolve(self, value=None):
""" Resolve the current expression against the supplied value """
# If we still have an uninitialized matcher init it now
if self.matcher:
self._init_matcher()
# Evaluate the current set of matchers forming the expression
matcher = sel... | [
"def",
"resolve",
"(",
"self",
",",
"value",
"=",
"None",
")",
":",
"# If we still have an uninitialized matcher init it now",
"if",
"self",
".",
"matcher",
":",
"self",
".",
"_init_matcher",
"(",
")",
"# Evaluate the current set of matchers forming the expression",
"matc... | Resolve the current expression against the supplied value | [
"Resolve",
"the",
"current",
"expression",
"against",
"the",
"supplied",
"value"
] | 7210859d4c84cfbaa64f91b30c2a541aea788ddf | https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/expectation.py#L81-L100 | train | Resolve the current expression against the supplied value |
drslump/pyshould | pyshould/expectation.py | Expectation._assertion | def _assertion(self, matcher, value):
""" Perform the actual assertion for the given matcher and value. Override
this method to apply a special configuration when performing the assertion.
If the assertion fails it should raise an AssertionError.
"""
# To support the synt... | python | def _assertion(self, matcher, value):
""" Perform the actual assertion for the given matcher and value. Override
this method to apply a special configuration when performing the assertion.
If the assertion fails it should raise an AssertionError.
"""
# To support the synt... | [
"def",
"_assertion",
"(",
"self",
",",
"matcher",
",",
"value",
")",
":",
"# To support the syntax `any_of(subject) | should ...` we check if the",
"# value to check is an Expectation object and if it is we use the descriptor",
"# protocol to bind the value's assertion logic to this expectat... | Perform the actual assertion for the given matcher and value. Override
this method to apply a special configuration when performing the assertion.
If the assertion fails it should raise an AssertionError. | [
"Perform",
"the",
"actual",
"assertion",
"for",
"the",
"given",
"matcher",
"and",
"value",
".",
"Override",
"this",
"method",
"to",
"apply",
"a",
"special",
"configuration",
"when",
"performing",
"the",
"assertion",
".",
"If",
"the",
"assertion",
"fails",
"it"... | 7210859d4c84cfbaa64f91b30c2a541aea788ddf | https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/expectation.py#L102-L114 | train | Perform the actual assertion for the given matcher and value. |
drslump/pyshould | pyshould/expectation.py | Expectation._transform | def _transform(self, value):
""" Applies any defined transformation to the given value
"""
if self.transform:
try:
value = self.transform(value)
except:
import sys
exc_type, exc_obj, exc_tb = sys.exc_info()
r... | python | def _transform(self, value):
""" Applies any defined transformation to the given value
"""
if self.transform:
try:
value = self.transform(value)
except:
import sys
exc_type, exc_obj, exc_tb = sys.exc_info()
r... | [
"def",
"_transform",
"(",
"self",
",",
"value",
")",
":",
"if",
"self",
".",
"transform",
":",
"try",
":",
"value",
"=",
"self",
".",
"transform",
"(",
"value",
")",
"except",
":",
"import",
"sys",
"exc_type",
",",
"exc_obj",
",",
"exc_tb",
"=",
"sys... | Applies any defined transformation to the given value | [
"Applies",
"any",
"defined",
"transformation",
"to",
"the",
"given",
"value"
] | 7210859d4c84cfbaa64f91b30c2a541aea788ddf | https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/expectation.py#L116-L128 | train | Applies any defined transformation to the given value |
drslump/pyshould | pyshould/expectation.py | Expectation.evaluate | def evaluate(self):
""" Converts the current expression into a single matcher, applying
coordination operators to operands according to their binding rules
"""
# Apply Shunting Yard algorithm to convert the infix expression
# into Reverse Polish Notation. Since we have a ver... | python | def evaluate(self):
""" Converts the current expression into a single matcher, applying
coordination operators to operands according to their binding rules
"""
# Apply Shunting Yard algorithm to convert the infix expression
# into Reverse Polish Notation. Since we have a ver... | [
"def",
"evaluate",
"(",
"self",
")",
":",
"# Apply Shunting Yard algorithm to convert the infix expression",
"# into Reverse Polish Notation. Since we have a very limited",
"# set of operators and binding rules, the implementation becomes",
"# really simple. The expression is formed of hamcrest ma... | Converts the current expression into a single matcher, applying
coordination operators to operands according to their binding rules | [
"Converts",
"the",
"current",
"expression",
"into",
"a",
"single",
"matcher",
"applying",
"coordination",
"operators",
"to",
"operands",
"according",
"to",
"their",
"binding",
"rules"
] | 7210859d4c84cfbaa64f91b30c2a541aea788ddf | https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/expectation.py#L130-L186 | train | Converts the current expression into a single matcher applying the infix expression to operands according to their binding rules
|
drslump/pyshould | pyshould/expectation.py | Expectation._find_matcher | def _find_matcher(self, alias):
""" Finds a matcher based on the given alias or raises an error if no
matcher could be found.
"""
matcher = lookup(alias)
if not matcher:
msg = 'Matcher "%s" not found' % alias
# Try to find similarly named matchers to ... | python | def _find_matcher(self, alias):
""" Finds a matcher based on the given alias or raises an error if no
matcher could be found.
"""
matcher = lookup(alias)
if not matcher:
msg = 'Matcher "%s" not found' % alias
# Try to find similarly named matchers to ... | [
"def",
"_find_matcher",
"(",
"self",
",",
"alias",
")",
":",
"matcher",
"=",
"lookup",
"(",
"alias",
")",
"if",
"not",
"matcher",
":",
"msg",
"=",
"'Matcher \"%s\" not found'",
"%",
"alias",
"# Try to find similarly named matchers to help the user",
"similar",
"=",
... | Finds a matcher based on the given alias or raises an error if no
matcher could be found. | [
"Finds",
"a",
"matcher",
"based",
"on",
"the",
"given",
"alias",
"or",
"raises",
"an",
"error",
"if",
"no",
"matcher",
"could",
"be",
"found",
"."
] | 7210859d4c84cfbaa64f91b30c2a541aea788ddf | https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/expectation.py#L188-L206 | train | Find a matcher based on the given alias or raises an error if no matcher could be found. |
drslump/pyshould | pyshould/expectation.py | Expectation._init_matcher | def _init_matcher(self, *args, **kwargs):
""" Executes the current matcher appending it to the expression """
# If subject-less expectation are provided as arguments convert them
# to plain Hamcrest matchers in order to allow complex compositions
fn = lambda x: x.evaluate() if isinstanc... | python | def _init_matcher(self, *args, **kwargs):
""" Executes the current matcher appending it to the expression """
# If subject-less expectation are provided as arguments convert them
# to plain Hamcrest matchers in order to allow complex compositions
fn = lambda x: x.evaluate() if isinstanc... | [
"def",
"_init_matcher",
"(",
"self",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"# If subject-less expectation are provided as arguments convert them",
"# to plain Hamcrest matchers in order to allow complex compositions",
"fn",
"=",
"lambda",
"x",
":",
"x",
".",
... | Executes the current matcher appending it to the expression | [
"Executes",
"the",
"current",
"matcher",
"appending",
"it",
"to",
"the",
"expression"
] | 7210859d4c84cfbaa64f91b30c2a541aea788ddf | https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/expectation.py#L208-L220 | train | Executes the current matcher appending it to the expression |
drslump/pyshould | pyshould/expectation.py | Expectation.described_as | def described_as(self, description, *args):
""" Specify a custom message for the matcher """
if len(args):
description = description.format(*args)
self.description = description
return self | python | def described_as(self, description, *args):
""" Specify a custom message for the matcher """
if len(args):
description = description.format(*args)
self.description = description
return self | [
"def",
"described_as",
"(",
"self",
",",
"description",
",",
"*",
"args",
")",
":",
"if",
"len",
"(",
"args",
")",
":",
"description",
"=",
"description",
".",
"format",
"(",
"*",
"args",
")",
"self",
".",
"description",
"=",
"description",
"return",
"... | Specify a custom message for the matcher | [
"Specify",
"a",
"custom",
"message",
"for",
"the",
"matcher"
] | 7210859d4c84cfbaa64f91b30c2a541aea788ddf | https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/expectation.py#L222-L227 | train | Specify a custom message for the matcher |
StackStorm/pybind | pybind/nos/v6_0_2f/brocade_firmware_rpc/__init__.py | brocade_firmware._set_fwdl_status | def _set_fwdl_status(self, v, load=False):
"""
Setter method for fwdl_status, mapped from YANG variable /brocade_firmware_rpc/fwdl_status (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_fwdl_status is considered as a private
method. Backends looking to populate... | python | def _set_fwdl_status(self, v, load=False):
"""
Setter method for fwdl_status, mapped from YANG variable /brocade_firmware_rpc/fwdl_status (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_fwdl_status is considered as a private
method. Backends looking to populate... | [
"def",
"_set_fwdl_status",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"ba... | Setter method for fwdl_status, mapped from YANG variable /brocade_firmware_rpc/fwdl_status (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_fwdl_status is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._se... | [
"Setter",
"method",
"for",
"fwdl_status",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_firmware_rpc",
"/",
"fwdl_status",
"(",
"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_firmware_rpc/__init__.py#L105-L126 | train | Sets the status of the fwdl node. |
StackStorm/pybind | pybind/nos/v6_0_2f/brocade_port_profile_ext_rpc/__init__.py | brocade_port_profile_ext._set_get_port_profile_status | def _set_get_port_profile_status(self, v, load=False):
"""
Setter method for get_port_profile_status, mapped from YANG variable /brocade_port_profile_ext_rpc/get_port_profile_status (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_port_profile_status is consider... | python | def _set_get_port_profile_status(self, v, load=False):
"""
Setter method for get_port_profile_status, mapped from YANG variable /brocade_port_profile_ext_rpc/get_port_profile_status (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_port_profile_status is consider... | [
"def",
"_set_get_port_profile_status",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for get_port_profile_status, mapped from YANG variable /brocade_port_profile_ext_rpc/get_port_profile_status (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_port_profile_status is considered as a private
method. Backends looking to populate this varia... | [
"Setter",
"method",
"for",
"get_port_profile_status",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_port_profile_ext_rpc",
"/",
"get_port_profile_status",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_port_profile_ext_rpc/__init__.py#L141-L165 | train | Sets the status of the port profile. |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/__init__.py | router_isis_attributes._set_fast_flood | def _set_fast_flood(self, v, load=False):
"""
Setter method for fast_flood, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/fast_flood (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fast_flood is considere... | python | def _set_fast_flood(self, v, load=False):
"""
Setter method for fast_flood, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/fast_flood (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fast_flood is considere... | [
"def",
"_set_fast_flood",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"bas... | Setter method for fast_flood, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/fast_flood (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fast_flood is considered as a private
method. Backends looking to populat... | [
"Setter",
"method",
"for",
"fast_flood",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"router",
"/",
"isis",
"/",
"router_isis_cmds_holder",
"/",
"router_isis_attributes",
"/",
"fast_flood",
"(",
"container",
")",
"If",
"this",
"variable",
"is... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/__init__.py#L393-L414 | train | Sets the fast_flood variable. |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/__init__.py | router_isis_attributes._set_set_overload_bit | def _set_set_overload_bit(self, v, load=False):
"""
Setter method for set_overload_bit, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_set_o... | python | def _set_set_overload_bit(self, v, load=False):
"""
Setter method for set_overload_bit, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_set_o... | [
"def",
"_set_set_overload_bit",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for set_overload_bit, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/set_overload_bit (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_set_overload_bit is considered as a private
method. Backends ... | [
"Setter",
"method",
"for",
"set_overload_bit",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"router",
"/",
"isis",
"/",
"router_isis_cmds_holder",
"/",
"router_isis_attributes",
"/",
"set_overload_bit",
"(",
"container",
")",
"If",
"this",
"vari... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/__init__.py#L859-L880 | train | Sets the overload bit of the ISIS resource. |
StackStorm/pybind | pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/__init__.py | router_isis_attributes._set_reverse_metric | def _set_reverse_metric(self, v, load=False):
"""
Setter method for reverse_metric, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/reverse_metric (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_reverse_met... | python | def _set_reverse_metric(self, v, load=False):
"""
Setter method for reverse_metric, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/reverse_metric (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_reverse_met... | [
"def",
"_set_reverse_metric",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for reverse_metric, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/reverse_metric (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_reverse_metric is considered as a private
method. Backends lookin... | [
"Setter",
"method",
"for",
"reverse_metric",
"mapped",
"from",
"YANG",
"variable",
"/",
"routing_system",
"/",
"router",
"/",
"isis",
"/",
"router_isis_cmds_holder",
"/",
"router_isis_attributes",
"/",
"reverse_metric",
"(",
"container",
")",
"If",
"this",
"variable... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/router_isis_attributes/__init__.py#L925-L946 | train | Sets the reverse metric of the node. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/openflow_global/openflow/mirror/destination/__init__.py | destination._set_mirror_interface | def _set_mirror_interface(self, v, load=False):
"""
Setter method for mirror_interface, mapped from YANG variable /openflow_global/openflow/mirror/destination/mirror_interface (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mirror_interface is considered as a priv... | python | def _set_mirror_interface(self, v, load=False):
"""
Setter method for mirror_interface, mapped from YANG variable /openflow_global/openflow/mirror/destination/mirror_interface (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mirror_interface is considered as a priv... | [
"def",
"_set_mirror_interface",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for mirror_interface, mapped from YANG variable /openflow_global/openflow/mirror/destination/mirror_interface (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mirror_interface is considered as a private
method. Backends looking to populate this variable s... | [
"Setter",
"method",
"for",
"mirror_interface",
"mapped",
"from",
"YANG",
"variable",
"/",
"openflow_global",
"/",
"openflow",
"/",
"mirror",
"/",
"destination",
"/",
"mirror_interface",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"("... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/openflow_global/openflow/mirror/destination/__init__.py#L92-L113 | train | Sets the mirror_interface property of the
. |
StackStorm/pybind | pybind/nos/v7_2_0/interface/port_channel/ip/__init__.py | ip._set_igmp_po_intf_cfg | def _set_igmp_po_intf_cfg(self, v, load=False):
"""
Setter method for igmp_po_intf_cfg, mapped from YANG variable /interface/port_channel/ip/igmp_po_intf_cfg (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmp_po_intf_cfg is considered as a private
metho... | python | def _set_igmp_po_intf_cfg(self, v, load=False):
"""
Setter method for igmp_po_intf_cfg, mapped from YANG variable /interface/port_channel/ip/igmp_po_intf_cfg (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmp_po_intf_cfg is considered as a private
metho... | [
"def",
"_set_igmp_po_intf_cfg",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for igmp_po_intf_cfg, mapped from YANG variable /interface/port_channel/ip/igmp_po_intf_cfg (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_igmp_po_intf_cfg is considered as a private
method. Backends looking to populate this variable should
do ... | [
"Setter",
"method",
"for",
"igmp_po_intf_cfg",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"ip",
"/",
"igmp_po_intf_cfg",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"f... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/interface/port_channel/ip/__init__.py#L238-L259 | train | Set the value of the igmp_po_intf_cfg variable. |
StackStorm/pybind | pybind/nos/v7_2_0/interface/port_channel/ip/__init__.py | ip._set_interface_PO_ospf_conf | def _set_interface_PO_ospf_conf(self, v, load=False):
"""
Setter method for interface_PO_ospf_conf, mapped from YANG variable /interface/port_channel/ip/interface_PO_ospf_conf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_PO_ospf_conf is considere... | python | def _set_interface_PO_ospf_conf(self, v, load=False):
"""
Setter method for interface_PO_ospf_conf, mapped from YANG variable /interface/port_channel/ip/interface_PO_ospf_conf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_PO_ospf_conf is considere... | [
"def",
"_set_interface_PO_ospf_conf",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for interface_PO_ospf_conf, mapped from YANG variable /interface/port_channel/ip/interface_PO_ospf_conf (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_PO_ospf_conf is considered as a private
method. Backends looking to populate this varia... | [
"Setter",
"method",
"for",
"interface_PO_ospf_conf",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"ip",
"/",
"interface_PO_ospf_conf",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/interface/port_channel/ip/__init__.py#L271-L292 | train | Sets the value of interface_PO_ospf_conf in the base tree. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/mpls_state/rsvp/interfaces/__init__.py | interfaces._set_interface_type | def _set_interface_type(self, v, load=False):
"""
Setter method for interface_type, mapped from YANG variable /mpls_state/rsvp/interfaces/interface_type (dcm-interface-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_type is considered as a private
met... | python | def _set_interface_type(self, v, load=False):
"""
Setter method for interface_type, mapped from YANG variable /mpls_state/rsvp/interfaces/interface_type (dcm-interface-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_type is considered as a private
met... | [
"def",
"_set_interface_type",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for interface_type, mapped from YANG variable /mpls_state/rsvp/interfaces/interface_type (dcm-interface-type)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_type is considered as a private
method. Backends looking to populate this variable should
... | [
"Setter",
"method",
"for",
"interface_type",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"rsvp",
"/",
"interfaces",
"/",
"interface_type",
"(",
"dcm",
"-",
"interface",
"-",
"type",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mpls_state/rsvp/interfaces/__init__.py#L168-L191 | train | Sets the interface type of the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/mpls_state/rsvp/interfaces/__init__.py | interfaces._set_hello_status | def _set_hello_status(self, v, load=False):
"""
Setter method for hello_status, mapped from YANG variable /mpls_state/rsvp/interfaces/hello_status (feature-config-status)
If this variable is read-only (config: false) in the
source YANG file, then _set_hello_status is considered as a private
method. ... | python | def _set_hello_status(self, v, load=False):
"""
Setter method for hello_status, mapped from YANG variable /mpls_state/rsvp/interfaces/hello_status (feature-config-status)
If this variable is read-only (config: false) in the
source YANG file, then _set_hello_status is considered as a private
method. ... | [
"def",
"_set_hello_status",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for hello_status, mapped from YANG variable /mpls_state/rsvp/interfaces/hello_status (feature-config-status)
If this variable is read-only (config: false) in the
source YANG file, then _set_hello_status is considered as a private
method. Backends looking to populate this variable should
do... | [
"Setter",
"method",
"for",
"hello_status",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"rsvp",
"/",
"interfaces",
"/",
"hello_status",
"(",
"feature",
"-",
"config",
"-",
"status",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mpls_state/rsvp/interfaces/__init__.py#L427-L450 | train | Sets the hello status of the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/mpls_state/rsvp/interfaces/__init__.py | interfaces._set_interface_flooding_up_threshold | def _set_interface_flooding_up_threshold(self, v, load=False):
"""
Setter method for interface_flooding_up_threshold, mapped from YANG variable /mpls_state/rsvp/interfaces/interface_flooding_up_threshold (feature-config-source)
If this variable is read-only (config: false) in the
source YANG file, then ... | python | def _set_interface_flooding_up_threshold(self, v, load=False):
"""
Setter method for interface_flooding_up_threshold, mapped from YANG variable /mpls_state/rsvp/interfaces/interface_flooding_up_threshold (feature-config-source)
If this variable is read-only (config: false) in the
source YANG file, then ... | [
"def",
"_set_interface_flooding_up_threshold",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",... | Setter method for interface_flooding_up_threshold, mapped from YANG variable /mpls_state/rsvp/interfaces/interface_flooding_up_threshold (feature-config-source)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_flooding_up_threshold is considered as a private
method.... | [
"Setter",
"method",
"for",
"interface_flooding_up_threshold",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"rsvp",
"/",
"interfaces",
"/",
"interface_flooding_up_threshold",
"(",
"feature",
"-",
"config",
"-",
"source",
")",
"If",
"this",
"variable"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mpls_state/rsvp/interfaces/__init__.py#L871-L894 | train | Sets the floodup threshold for the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/mpls_state/rsvp/interfaces/__init__.py | interfaces._set_error_counters | def _set_error_counters(self, v, load=False):
"""
Setter method for error_counters, mapped from YANG variable /mpls_state/rsvp/interfaces/error_counters (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_error_counters is considered as a private
method. Back... | python | def _set_error_counters(self, v, load=False):
"""
Setter method for error_counters, mapped from YANG variable /mpls_state/rsvp/interfaces/error_counters (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_error_counters is considered as a private
method. Back... | [
"def",
"_set_error_counters",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for error_counters, mapped from YANG variable /mpls_state/rsvp/interfaces/error_counters (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_error_counters is considered as a private
method. Backends looking to populate this variable should
do so vi... | [
"Setter",
"method",
"for",
"error_counters",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_state",
"/",
"rsvp",
"/",
"interfaces",
"/",
"error_counters",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"fals... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mpls_state/rsvp/interfaces/__init__.py#L1167-L1190 | train | Sets the error_counters property of the
. |
StackStorm/pybind | pybind/slxos/v17s_1_02/rbridge_id/threshold_monitor/__init__.py | threshold_monitor._set_Cpu | def _set_Cpu(self, v, load=False):
"""
Setter method for Cpu, mapped from YANG variable /rbridge_id/threshold_monitor/Cpu (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_Cpu is considered as a private
method. Backends looking to populate this variable sho... | python | def _set_Cpu(self, v, load=False):
"""
Setter method for Cpu, mapped from YANG variable /rbridge_id/threshold_monitor/Cpu (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_Cpu is considered as a private
method. Backends looking to populate this variable sho... | [
"def",
"_set_Cpu",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
"... | Setter method for Cpu, mapped from YANG variable /rbridge_id/threshold_monitor/Cpu (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_Cpu is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_Cpu() di... | [
"Setter",
"method",
"for",
"Cpu",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"threshold_monitor",
"/",
"Cpu",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"s... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/rbridge_id/threshold_monitor/__init__.py#L168-L189 | train | Sets the CPU setting for the
|
StackStorm/pybind | pybind/slxos/v17s_1_02/rbridge_id/threshold_monitor/__init__.py | threshold_monitor._set_Memory | def _set_Memory(self, v, load=False):
"""
Setter method for Memory, mapped from YANG variable /rbridge_id/threshold_monitor/Memory (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_Memory is considered as a private
method. Backends looking to populate this ... | python | def _set_Memory(self, v, load=False):
"""
Setter method for Memory, mapped from YANG variable /rbridge_id/threshold_monitor/Memory (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_Memory is considered as a private
method. Backends looking to populate this ... | [
"def",
"_set_Memory",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for Memory, mapped from YANG variable /rbridge_id/threshold_monitor/Memory (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_Memory is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set... | [
"Setter",
"method",
"for",
"Memory",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"threshold_monitor",
"/",
"Memory",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/rbridge_id/threshold_monitor/__init__.py#L201-L222 | train | Sets the Memory property of the
|
StackStorm/pybind | pybind/slxos/v17s_1_02/rbridge_id/threshold_monitor/__init__.py | threshold_monitor._set_Buffer | def _set_Buffer(self, v, load=False):
"""
Setter method for Buffer, mapped from YANG variable /rbridge_id/threshold_monitor/Buffer (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_Buffer is considered as a private
method. Backends looking to populate this ... | python | def _set_Buffer(self, v, load=False):
"""
Setter method for Buffer, mapped from YANG variable /rbridge_id/threshold_monitor/Buffer (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_Buffer is considered as a private
method. Backends looking to populate this ... | [
"def",
"_set_Buffer",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for Buffer, mapped from YANG variable /rbridge_id/threshold_monitor/Buffer (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_Buffer is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set... | [
"Setter",
"method",
"for",
"Buffer",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"threshold_monitor",
"/",
"Buffer",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/rbridge_id/threshold_monitor/__init__.py#L267-L288 | train | Sets the value of the Buffer property in the base node. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/mpls_config/router/mpls/mpls_cmds_holder/rsvp/__init__.py | rsvp._set_global_rsvp_hello_acknowledgements | def _set_global_rsvp_hello_acknowledgements(self, v, load=False):
"""
Setter method for global_rsvp_hello_acknowledgements, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/rsvp/global_rsvp_hello_acknowledgements (empty)
If this variable is read-only (config: false) in the
source YANG... | python | def _set_global_rsvp_hello_acknowledgements(self, v, load=False):
"""
Setter method for global_rsvp_hello_acknowledgements, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/rsvp/global_rsvp_hello_acknowledgements (empty)
If this variable is read-only (config: false) in the
source YANG... | [
"def",
"_set_global_rsvp_hello_acknowledgements",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"... | Setter method for global_rsvp_hello_acknowledgements, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/rsvp/global_rsvp_hello_acknowledgements (empty)
If this variable is read-only (config: false) in the
source YANG file, then _set_global_rsvp_hello_acknowledgements is considered as a private... | [
"Setter",
"method",
"for",
"global_rsvp_hello_acknowledgements",
"mapped",
"from",
"YANG",
"variable",
"/",
"mpls_config",
"/",
"router",
"/",
"mpls",
"/",
"mpls_cmds_holder",
"/",
"rsvp",
"/",
"global_rsvp_hello_acknowledgements",
"(",
"empty",
")",
"If",
"this",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/mpls_config/router/mpls/mpls_cmds_holder/rsvp/__init__.py#L267-L288 | train | Sets the global_rsvp_hello_acknowledgements variable in the rsvp container. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_interface_operational._set_interface_statistics_state | def _set_interface_statistics_state(self, v, load=False):
"""
Setter method for interface_statistics_state, mapped from YANG variable /interface_statistics_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_statistics_state is considered as a pri... | python | def _set_interface_statistics_state(self, v, load=False):
"""
Setter method for interface_statistics_state, mapped from YANG variable /interface_statistics_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_statistics_state is considered as a pri... | [
"def",
"_set_interface_statistics_state",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v... | Setter method for interface_statistics_state, mapped from YANG variable /interface_statistics_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_interface_statistics_state is considered as a private
method. Backends looking to populate this variable should
... | [
"Setter",
"method",
"for",
"interface_statistics_state",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface_statistics_state",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L588-L611 | train | Sets the state of the internal statistics tree. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_system_watermark._set_system_config | def _set_system_config(self, v, load=False):
"""
Setter method for system_config, mapped from YANG variable /system_config (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_system_config is considered as a private
method. Backends looking to populate this v... | python | def _set_system_config(self, v, load=False):
"""
Setter method for system_config, mapped from YANG variable /system_config (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_system_config is considered as a private
method. Backends looking to populate this v... | [
"def",
"_set_system_config",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"... | Setter method for system_config, mapped from YANG variable /system_config (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_system_config is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_system_... | [
"Setter",
"method",
"for",
"system_config",
"mapped",
"from",
"YANG",
"variable",
"/",
"system_config",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"th... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L2006-L2027 | train | Sets the system configuration for the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_ssm_operational._set_vxlan_acl_state | def _set_vxlan_acl_state(self, v, load=False):
"""
Setter method for vxlan_acl_state, mapped from YANG variable /vxlan_acl_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vxlan_acl_state is considered as a private
method. Backends looking to populat... | python | def _set_vxlan_acl_state(self, v, load=False):
"""
Setter method for vxlan_acl_state, mapped from YANG variable /vxlan_acl_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vxlan_acl_state is considered as a private
method. Backends looking to populat... | [
"def",
"_set_vxlan_acl_state",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for vxlan_acl_state, mapped from YANG variable /vxlan_acl_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vxlan_acl_state is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_v... | [
"Setter",
"method",
"for",
"vxlan_acl_state",
"mapped",
"from",
"YANG",
"variable",
"/",
"vxlan_acl_state",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L4405-L4428 | train | Sets the state of the VXLAN ACL. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_RAS_operational._set_cpu_state | def _set_cpu_state(self, v, load=False):
"""
Setter method for cpu_state, mapped from YANG variable /cpu_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cpu_state is considered as a private
method. Backends looking to populate this variable should
... | python | def _set_cpu_state(self, v, load=False):
"""
Setter method for cpu_state, mapped from YANG variable /cpu_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cpu_state is considered as a private
method. Backends looking to populate this variable should
... | [
"def",
"_set_cpu_state",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base... | Setter method for cpu_state, mapped from YANG variable /cpu_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cpu_state is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_cpu_state() directl... | [
"Setter",
"method",
"for",
"cpu_state",
"mapped",
"from",
"YANG",
"variable",
"/",
"cpu_state",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"then",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L5254-L5277 | train | Sets the CPU state of the
|
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_RAS_operational._set_mem_state | def _set_mem_state(self, v, load=False):
"""
Setter method for mem_state, mapped from YANG variable /mem_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mem_state is considered as a private
method. Backends looking to populate this variable should
... | python | def _set_mem_state(self, v, load=False):
"""
Setter method for mem_state, mapped from YANG variable /mem_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mem_state is considered as a private
method. Backends looking to populate this variable should
... | [
"def",
"_set_mem_state",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base... | Setter method for mem_state, mapped from YANG variable /mem_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mem_state is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_mem_state() directl... | [
"Setter",
"method",
"for",
"mem_state",
"mapped",
"from",
"YANG",
"variable",
"/",
"mem_state",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"then",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L5291-L5314 | train | Sets the state of the memory group. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_rbridge_lag._set_load_balance_lag | def _set_load_balance_lag(self, v, load=False):
"""
Setter method for load_balance_lag, mapped from YANG variable /load_balance_lag (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_load_balance_lag is considered as a private
method. Backends looking to pop... | python | def _set_load_balance_lag(self, v, load=False):
"""
Setter method for load_balance_lag, mapped from YANG variable /load_balance_lag (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_load_balance_lag is considered as a private
method. Backends looking to pop... | [
"def",
"_set_load_balance_lag",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for load_balance_lag, mapped from YANG variable /load_balance_lag (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_load_balance_lag is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._se... | [
"Setter",
"method",
"for",
"load_balance_lag",
"mapped",
"from",
"YANG",
"variable",
"/",
"load_balance_lag",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L5674-L5695 | train | Sets the load balance of a node. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_mac_address_table._set_mac_address_table | def _set_mac_address_table(self, v, load=False):
"""
Setter method for mac_address_table, mapped from YANG variable /mac_address_table (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_address_table is considered as a private
method. Backends looking to... | python | def _set_mac_address_table(self, v, load=False):
"""
Setter method for mac_address_table, mapped from YANG variable /mac_address_table (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_address_table is considered as a private
method. Backends looking to... | [
"def",
"_set_mac_address_table",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",... | Setter method for mac_address_table, mapped from YANG variable /mac_address_table (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_address_table is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj.... | [
"Setter",
"method",
"for",
"mac_address_table",
"mapped",
"from",
"YANG",
"variable",
"/",
"mac_address_table",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L5792-L5813 | train | Sets the value of the MAC address table in the order they are assigned. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_mac_address_table._set_mac_group | def _set_mac_group(self, v, load=False):
"""
Setter method for mac_group, mapped from YANG variable /mac_group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_group is considered as a private
method. Backends looking to populate this variable should
do... | python | def _set_mac_group(self, v, load=False):
"""
Setter method for mac_group, mapped from YANG variable /mac_group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_group is considered as a private
method. Backends looking to populate this variable should
do... | [
"def",
"_set_mac_group",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base... | Setter method for mac_group, mapped from YANG variable /mac_group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mac_group is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_mac_group() directly. | [
"Setter",
"method",
"for",
"mac_group",
"mapped",
"from",
"YANG",
"variable",
"/",
"mac_group",
"(",
"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/slxos/v17r_1_01a/__init__.py#L5825-L5846 | train | Set the value of the MAC group in the order they are assigned. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_linecard_management._set_latch_detection_config | def _set_latch_detection_config(self, v, load=False):
"""
Setter method for latch_detection_config, mapped from YANG variable /latch_detection_config (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_latch_detection_config is considered as a private
method.... | python | def _set_latch_detection_config(self, v, load=False):
"""
Setter method for latch_detection_config, mapped from YANG variable /latch_detection_config (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_latch_detection_config is considered as a private
method.... | [
"def",
"_set_latch_detection_config",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for latch_detection_config, mapped from YANG variable /latch_detection_config (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_latch_detection_config is considered as a private
method. Backends looking to populate this variable should
do so via c... | [
"Setter",
"method",
"for",
"latch_detection_config",
"mapped",
"from",
"YANG",
"variable",
"/",
"latch_detection_config",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L6505-L6526 | train | Sets the latch - detection configuration for a node. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_topology_group._set_topology_group | def _set_topology_group(self, v, load=False):
"""
Setter method for topology_group, mapped from YANG variable /topology_group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_topology_group is considered as a private
method. Backends looking to populate this va... | python | def _set_topology_group(self, v, load=False):
"""
Setter method for topology_group, mapped from YANG variable /topology_group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_topology_group is considered as a private
method. Backends looking to populate this va... | [
"def",
"_set_topology_group",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for topology_group, mapped from YANG variable /topology_group (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_topology_group is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_topology_... | [
"Setter",
"method",
"for",
"topology_group",
"mapped",
"from",
"YANG",
"variable",
"/",
"topology_group",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"then"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L7394-L7415 | train | Sets the topology group of the
. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_l2sys_operational._set_mct_l2ys_state | def _set_mct_l2ys_state(self, v, load=False):
"""
Setter method for mct_l2ys_state, mapped from YANG variable /mct_l2ys_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mct_l2ys_state is considered as a private
method. Backends looking to populate th... | python | def _set_mct_l2ys_state(self, v, load=False):
"""
Setter method for mct_l2ys_state, mapped from YANG variable /mct_l2ys_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mct_l2ys_state is considered as a private
method. Backends looking to populate th... | [
"def",
"_set_mct_l2ys_state",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for mct_l2ys_state, mapped from YANG variable /mct_l2ys_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_mct_l2ys_state is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_mct_... | [
"Setter",
"method",
"for",
"mct_l2ys_state",
"mapped",
"from",
"YANG",
"variable",
"/",
"mct_l2ys_state",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L7683-L7706 | train | Sets the state of the MCT L2SYS state. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_bridge_domain._set_bridge_domain | def _set_bridge_domain(self, v, load=False):
"""
Setter method for bridge_domain, mapped from YANG variable /bridge_domain (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_bridge_domain is considered as a private
method. Backends looking to populate this variab... | python | def _set_bridge_domain(self, v, load=False):
"""
Setter method for bridge_domain, mapped from YANG variable /bridge_domain (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_bridge_domain is considered as a private
method. Backends looking to populate this variab... | [
"def",
"_set_bridge_domain",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"... | Setter method for bridge_domain, mapped from YANG variable /bridge_domain (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_bridge_domain is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_bridge_domai... | [
"Setter",
"method",
"for",
"bridge_domain",
"mapped",
"from",
"YANG",
"variable",
"/",
"bridge_domain",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"then",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L8817-L8838 | train | Sets the value of the bridge_domain property in the base order. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_chassis._set_chassis | def _set_chassis(self, v, load=False):
"""
Setter method for chassis, mapped from YANG variable /chassis (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_chassis is considered as a private
method. Backends looking to populate this variable should
do so... | python | def _set_chassis(self, v, load=False):
"""
Setter method for chassis, mapped from YANG variable /chassis (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_chassis is considered as a private
method. Backends looking to populate this variable should
do so... | [
"def",
"_set_chassis",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for chassis, mapped from YANG variable /chassis (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_chassis is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_chassis() directly. | [
"Setter",
"method",
"for",
"chassis",
"mapped",
"from",
"YANG",
"variable",
"/",
"chassis",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"then",
"_set... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L11214-L11235 | train | Set the chassis property. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_tunnels._set_ovsdb_server | def _set_ovsdb_server(self, v, load=False):
"""
Setter method for ovsdb_server, mapped from YANG variable /ovsdb_server (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ovsdb_server is considered as a private
method. Backends looking to populate this variable s... | python | def _set_ovsdb_server(self, v, load=False):
"""
Setter method for ovsdb_server, mapped from YANG variable /ovsdb_server (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ovsdb_server is considered as a private
method. Backends looking to populate this variable s... | [
"def",
"_set_ovsdb_server",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for ovsdb_server, mapped from YANG variable /ovsdb_server (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_ovsdb_server is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_ovsdb_server() ... | [
"Setter",
"method",
"for",
"ovsdb_server",
"mapped",
"from",
"YANG",
"variable",
"/",
"ovsdb_server",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"then",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L12984-L13005 | train | Sets the value of ovsdb_server mapped from YANG variable name |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_dot1ag_operational._set_loam_state | def _set_loam_state(self, v, load=False):
"""
Setter method for loam_state, mapped from YANG variable /loam_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_loam_state is considered as a private
method. Backends looking to populate this variable shou... | python | def _set_loam_state(self, v, load=False):
"""
Setter method for loam_state, mapped from YANG variable /loam_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_loam_state is considered as a private
method. Backends looking to populate this variable shou... | [
"def",
"_set_loam_state",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"bas... | Setter method for loam_state, mapped from YANG variable /loam_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_loam_state is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_loam_state() dir... | [
"Setter",
"method",
"for",
"loam_state",
"mapped",
"from",
"YANG",
"variable",
"/",
"loam_state",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"then",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L13373-L13396 | train | Sets the loam state of the node. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_dot1ag_operational._set_loam_show_debug_state | def _set_loam_show_debug_state(self, v, load=False):
"""
Setter method for loam_show_debug_state, mapped from YANG variable /loam_show_debug_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_loam_show_debug_state is considered as a private
method. Bac... | python | def _set_loam_show_debug_state(self, v, load=False):
"""
Setter method for loam_show_debug_state, mapped from YANG variable /loam_show_debug_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_loam_show_debug_state is considered as a private
method. Bac... | [
"def",
"_set_loam_show_debug_state",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for loam_show_debug_state, mapped from YANG variable /loam_show_debug_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_loam_show_debug_state is considered as a private
method. Backends looking to populate this variable should
do so via call... | [
"Setter",
"method",
"for",
"loam_show_debug_state",
"mapped",
"from",
"YANG",
"variable",
"/",
"loam_show_debug_state",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L13410-L13433 | train | Sets the state of the LINK - OAM debug in the tree. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_vxlan_visibility._set_overlay_transit | def _set_overlay_transit(self, v, load=False):
"""
Setter method for overlay_transit, mapped from YANG variable /overlay_transit (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_overlay_transit is considered as a private
method. Backends looking to populate thi... | python | def _set_overlay_transit(self, v, load=False):
"""
Setter method for overlay_transit, mapped from YANG variable /overlay_transit (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_overlay_transit is considered as a private
method. Backends looking to populate thi... | [
"def",
"_set_overlay_transit",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for overlay_transit, mapped from YANG variable /overlay_transit (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_overlay_transit is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_overla... | [
"Setter",
"method",
"for",
"overlay_transit",
"mapped",
"from",
"YANG",
"variable",
"/",
"overlay_transit",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
"file",
"the... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L13685-L13706 | train | Set the overlay_transit variable. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_nsm_operational._set_vpn_statistics_state | def _set_vpn_statistics_state(self, v, load=False):
"""
Setter method for vpn_statistics_state, mapped from YANG variable /vpn_statistics_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vpn_statistics_state is considered as a private
method. Backend... | python | def _set_vpn_statistics_state(self, v, load=False):
"""
Setter method for vpn_statistics_state, mapped from YANG variable /vpn_statistics_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vpn_statistics_state is considered as a private
method. Backend... | [
"def",
"_set_vpn_statistics_state",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
"... | Setter method for vpn_statistics_state, mapped from YANG variable /vpn_statistics_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_vpn_statistics_state is considered as a private
method. Backends looking to populate this variable should
do so via calling... | [
"Setter",
"method",
"for",
"vpn_statistics_state",
"mapped",
"from",
"YANG",
"variable",
"/",
"vpn_statistics_state",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"YANG",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L14500-L14521 | train | Sets the state of the vpn_statistics_state of the node. |
StackStorm/pybind | pybind/slxos/v17r_1_01a/__init__.py | brocade_systemutilization_operational._set_system_utilization_state | def _set_system_utilization_state(self, v, load=False):
"""
Setter method for system_utilization_state, mapped from YANG variable /system_utilization_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_system_utilization_state is considered as a private
... | python | def _set_system_utilization_state(self, v, load=False):
"""
Setter method for system_utilization_state, mapped from YANG variable /system_utilization_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_system_utilization_state is considered as a private
... | [
"def",
"_set_system_utilization_state",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",... | Setter method for system_utilization_state, mapped from YANG variable /system_utilization_state (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_system_utilization_state is considered as a private
method. Backends looking to populate this variable should
do so... | [
"Setter",
"method",
"for",
"system_utilization_state",
"mapped",
"from",
"YANG",
"variable",
"/",
"system_utilization_state",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
"... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/__init__.py#L15145-L15168 | train | Sets the state of the system utilization group. |
StackStorm/pybind | pybind/slxos/v17s_1_02/brocade_dot1ag_rpc/__init__.py | brocade_dot1ag._set_get_show_cfm | def _set_get_show_cfm(self, v, load=False):
"""
Setter method for get_show_cfm, mapped from YANG variable /brocade_dot1ag_rpc/get_show_cfm (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_show_cfm is considered as a private
method. Backends looking to popula... | python | def _set_get_show_cfm(self, v, load=False):
"""
Setter method for get_show_cfm, mapped from YANG variable /brocade_dot1ag_rpc/get_show_cfm (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_show_cfm is considered as a private
method. Backends looking to popula... | [
"def",
"_set_get_show_cfm",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"b... | Setter method for get_show_cfm, mapped from YANG variable /brocade_dot1ag_rpc/get_show_cfm (rpc)
If this variable is read-only (config: false) in the
source YANG file, then _set_get_show_cfm is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._s... | [
"Setter",
"method",
"for",
"get_show_cfm",
"mapped",
"from",
"YANG",
"variable",
"/",
"brocade_dot1ag_rpc",
"/",
"get_show_cfm",
"(",
"rpc",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
"source",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/brocade_dot1ag_rpc/__init__.py#L95-L116 | train | Sets the variable to be read - only. |
bkg/django-spillway | spillway/carto.py | make_dbsource | def make_dbsource(**kwargs):
"""Returns a mapnik PostGIS or SQLite Datasource."""
if 'spatialite' in connection.settings_dict.get('ENGINE'):
kwargs.setdefault('file', connection.settings_dict['NAME'])
return mapnik.SQLite(wkb_format='spatialite', **kwargs)
names = (('dbname', 'NAME'), ('user... | python | def make_dbsource(**kwargs):
"""Returns a mapnik PostGIS or SQLite Datasource."""
if 'spatialite' in connection.settings_dict.get('ENGINE'):
kwargs.setdefault('file', connection.settings_dict['NAME'])
return mapnik.SQLite(wkb_format='spatialite', **kwargs)
names = (('dbname', 'NAME'), ('user... | [
"def",
"make_dbsource",
"(",
"*",
"*",
"kwargs",
")",
":",
"if",
"'spatialite'",
"in",
"connection",
".",
"settings_dict",
".",
"get",
"(",
"'ENGINE'",
")",
":",
"kwargs",
".",
"setdefault",
"(",
"'file'",
",",
"connection",
".",
"settings_dict",
"[",
"'NA... | Returns a mapnik PostGIS or SQLite Datasource. | [
"Returns",
"a",
"mapnik",
"PostGIS",
"or",
"SQLite",
"Datasource",
"."
] | c488a62642430b005f1e0d4a19e160d8d5964b67 | https://github.com/bkg/django-spillway/blob/c488a62642430b005f1e0d4a19e160d8d5964b67/spillway/carto.py#L10-L21 | train | Returns a mapnik PostGIS Datasource or SQLite Datasource. |
bkg/django-spillway | spillway/carto.py | Map.layer | def layer(self, queryset, stylename=None):
"""Returns a map Layer.
Arguments:
queryset -- QuerySet for Layer
Keyword args:
stylename -- str name of style to apply
"""
cls = RasterLayer if hasattr(queryset, 'image') else VectorLayer
layer = cls(queryset, s... | python | def layer(self, queryset, stylename=None):
"""Returns a map Layer.
Arguments:
queryset -- QuerySet for Layer
Keyword args:
stylename -- str name of style to apply
"""
cls = RasterLayer if hasattr(queryset, 'image') else VectorLayer
layer = cls(queryset, s... | [
"def",
"layer",
"(",
"self",
",",
"queryset",
",",
"stylename",
"=",
"None",
")",
":",
"cls",
"=",
"RasterLayer",
"if",
"hasattr",
"(",
"queryset",
",",
"'image'",
")",
"else",
"VectorLayer",
"layer",
"=",
"cls",
"(",
"queryset",
",",
"style",
"=",
"st... | Returns a map Layer.
Arguments:
queryset -- QuerySet for Layer
Keyword args:
stylename -- str name of style to apply | [
"Returns",
"a",
"map",
"Layer",
"."
] | c488a62642430b005f1e0d4a19e160d8d5964b67 | https://github.com/bkg/django-spillway/blob/c488a62642430b005f1e0d4a19e160d8d5964b67/spillway/carto.py#L56-L72 | train | Returns a new map Layer object with the specified queryset and style |
bkg/django-spillway | spillway/carto.py | Map.zoom_bbox | def zoom_bbox(self, bbox):
"""Zoom map to geometry extent.
Arguments:
bbox -- OGRGeometry polygon to zoom map extent
"""
try:
bbox.transform(self.map.srs)
except gdal.GDALException:
pass
else:
self.map.zoom_to_box(mapnik.Box2d(... | python | def zoom_bbox(self, bbox):
"""Zoom map to geometry extent.
Arguments:
bbox -- OGRGeometry polygon to zoom map extent
"""
try:
bbox.transform(self.map.srs)
except gdal.GDALException:
pass
else:
self.map.zoom_to_box(mapnik.Box2d(... | [
"def",
"zoom_bbox",
"(",
"self",
",",
"bbox",
")",
":",
"try",
":",
"bbox",
".",
"transform",
"(",
"self",
".",
"map",
".",
"srs",
")",
"except",
"gdal",
".",
"GDALException",
":",
"pass",
"else",
":",
"self",
".",
"map",
".",
"zoom_to_box",
"(",
"... | Zoom map to geometry extent.
Arguments:
bbox -- OGRGeometry polygon to zoom map extent | [
"Zoom",
"map",
"to",
"geometry",
"extent",
"."
] | c488a62642430b005f1e0d4a19e160d8d5964b67 | https://github.com/bkg/django-spillway/blob/c488a62642430b005f1e0d4a19e160d8d5964b67/spillway/carto.py#L79-L90 | train | Zoom map to bounding box. |
bkg/django-spillway | spillway/carto.py | Layer.style | def style(self):
"""Returns a default Style."""
style = mapnik.Style()
rule = mapnik.Rule()
self._symbolizer = self.symbolizer()
rule.symbols.append(self._symbolizer)
style.rules.append(rule)
return style | python | def style(self):
"""Returns a default Style."""
style = mapnik.Style()
rule = mapnik.Rule()
self._symbolizer = self.symbolizer()
rule.symbols.append(self._symbolizer)
style.rules.append(rule)
return style | [
"def",
"style",
"(",
"self",
")",
":",
"style",
"=",
"mapnik",
".",
"Style",
"(",
")",
"rule",
"=",
"mapnik",
".",
"Rule",
"(",
")",
"self",
".",
"_symbolizer",
"=",
"self",
".",
"symbolizer",
"(",
")",
"rule",
".",
"symbols",
".",
"append",
"(",
... | Returns a default Style. | [
"Returns",
"a",
"default",
"Style",
"."
] | c488a62642430b005f1e0d4a19e160d8d5964b67 | https://github.com/bkg/django-spillway/blob/c488a62642430b005f1e0d4a19e160d8d5964b67/spillway/carto.py#L99-L106 | train | Returns a default Style. |
StackStorm/pybind | pybind/slxos/v17s_1_02/qos/map_/__init__.py | map_._set_cos_traffic_class | def _set_cos_traffic_class(self, v, load=False):
"""
Setter method for cos_traffic_class, mapped from YANG variable /qos/map/cos_traffic_class (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cos_traffic_class is considered as a private
method. Backends looking... | python | def _set_cos_traffic_class(self, v, load=False):
"""
Setter method for cos_traffic_class, mapped from YANG variable /qos/map/cos_traffic_class (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cos_traffic_class is considered as a private
method. Backends looking... | [
"def",
"_set_cos_traffic_class",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",... | Setter method for cos_traffic_class, mapped from YANG variable /qos/map/cos_traffic_class (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cos_traffic_class is considered as a private
method. Backends looking to populate this variable should
do so via calling thisO... | [
"Setter",
"method",
"for",
"cos_traffic_class",
"mapped",
"from",
"YANG",
"variable",
"/",
"qos",
"/",
"map",
"/",
"cos_traffic_class",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos/map_/__init__.py#L141-L162 | train | Sets the cos_traffic_class of the current node. |
StackStorm/pybind | pybind/slxos/v17s_1_02/qos/map_/__init__.py | map_._set_cos_dscp | def _set_cos_dscp(self, v, load=False):
"""
Setter method for cos_dscp, mapped from YANG variable /qos/map/cos_dscp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cos_dscp is considered as a private
method. Backends looking to populate this variable should
... | python | def _set_cos_dscp(self, v, load=False):
"""
Setter method for cos_dscp, mapped from YANG variable /qos/map/cos_dscp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cos_dscp is considered as a private
method. Backends looking to populate this variable should
... | [
"def",
"_set_cos_dscp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base"... | Setter method for cos_dscp, mapped from YANG variable /qos/map/cos_dscp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_cos_dscp is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_cos_dscp() directly... | [
"Setter",
"method",
"for",
"cos_dscp",
"mapped",
"from",
"YANG",
"variable",
"/",
"qos",
"/",
"map",
"/",
"cos_dscp",
"(",
"list",
")",
"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/qos/map_/__init__.py#L174-L195 | train | Set the value of cos_dscp mapped from QoS map |
StackStorm/pybind | pybind/slxos/v17s_1_02/qos/map_/__init__.py | map_._set_traffic_class_cos | def _set_traffic_class_cos(self, v, load=False):
"""
Setter method for traffic_class_cos, mapped from YANG variable /qos/map/traffic_class_cos (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_class_cos is considered as a private
method. Backends looking... | python | def _set_traffic_class_cos(self, v, load=False):
"""
Setter method for traffic_class_cos, mapped from YANG variable /qos/map/traffic_class_cos (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_class_cos is considered as a private
method. Backends looking... | [
"def",
"_set_traffic_class_cos",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",... | Setter method for traffic_class_cos, mapped from YANG variable /qos/map/traffic_class_cos (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_class_cos is considered as a private
method. Backends looking to populate this variable should
do so via calling thisO... | [
"Setter",
"method",
"for",
"traffic_class_cos",
"mapped",
"from",
"YANG",
"variable",
"/",
"qos",
"/",
"map",
"/",
"traffic_class_cos",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos/map_/__init__.py#L207-L228 | train | Sets the value of the Traffic - Class - COS mapped variable. |
StackStorm/pybind | pybind/slxos/v17s_1_02/qos/map_/__init__.py | map_._set_traffic_class_mutation | def _set_traffic_class_mutation(self, v, load=False):
"""
Setter method for traffic_class_mutation, mapped from YANG variable /qos/map/traffic_class_mutation (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_class_mutation is considered as a private
meth... | python | def _set_traffic_class_mutation(self, v, load=False):
"""
Setter method for traffic_class_mutation, mapped from YANG variable /qos/map/traffic_class_mutation (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_class_mutation is considered as a private
meth... | [
"def",
"_set_traffic_class_mutation",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
... | Setter method for traffic_class_mutation, mapped from YANG variable /qos/map/traffic_class_mutation (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_class_mutation is considered as a private
method. Backends looking to populate this variable should
do so vi... | [
"Setter",
"method",
"for",
"traffic_class_mutation",
"mapped",
"from",
"YANG",
"variable",
"/",
"qos",
"/",
"map",
"/",
"traffic_class_mutation",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos/map_/__init__.py#L240-L261 | train | Sets the value of the Traffic - Class - Mutation variable in the tree. |
StackStorm/pybind | pybind/slxos/v17s_1_02/qos/map_/__init__.py | map_._set_traffic_class_dscp | def _set_traffic_class_dscp(self, v, load=False):
"""
Setter method for traffic_class_dscp, mapped from YANG variable /qos/map/traffic_class_dscp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_class_dscp is considered as a private
method. Backends loo... | python | def _set_traffic_class_dscp(self, v, load=False):
"""
Setter method for traffic_class_dscp, mapped from YANG variable /qos/map/traffic_class_dscp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_class_dscp is considered as a private
method. Backends loo... | [
"def",
"_set_traffic_class_dscp",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
","... | Setter method for traffic_class_dscp, mapped from YANG variable /qos/map/traffic_class_dscp (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_traffic_class_dscp is considered as a private
method. Backends looking to populate this variable should
do so via calling th... | [
"Setter",
"method",
"for",
"traffic_class_dscp",
"mapped",
"from",
"YANG",
"variable",
"/",
"qos",
"/",
"map",
"/",
"traffic_class_dscp",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos/map_/__init__.py#L273-L294 | train | Sets the value of the Traffic - Class - DSCP property in the base node. |
StackStorm/pybind | pybind/slxos/v17s_1_02/qos/map_/__init__.py | map_._set_dscp_traffic_class | def _set_dscp_traffic_class(self, v, load=False):
"""
Setter method for dscp_traffic_class, mapped from YANG variable /qos/map/dscp_traffic_class (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_dscp_traffic_class is considered as a private
method. Backends loo... | python | def _set_dscp_traffic_class(self, v, load=False):
"""
Setter method for dscp_traffic_class, mapped from YANG variable /qos/map/dscp_traffic_class (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_dscp_traffic_class is considered as a private
method. Backends loo... | [
"def",
"_set_dscp_traffic_class",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
","... | Setter method for dscp_traffic_class, mapped from YANG variable /qos/map/dscp_traffic_class (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_dscp_traffic_class is considered as a private
method. Backends looking to populate this variable should
do so via calling th... | [
"Setter",
"method",
"for",
"dscp_traffic_class",
"mapped",
"from",
"YANG",
"variable",
"/",
"qos",
"/",
"map",
"/",
"dscp_traffic_class",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos/map_/__init__.py#L339-L360 | train | Sets the DSCP Traffic Class map. |
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/ag/pg/__init__.py | pg._set_nport | def _set_nport(self, v, load=False):
"""
Setter method for nport, mapped from YANG variable /rbridge_id/ag/pg/nport (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_nport is considered as a private
method. Backends looking to populate this variable should
... | python | def _set_nport(self, v, load=False):
"""
Setter method for nport, mapped from YANG variable /rbridge_id/ag/pg/nport (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_nport is considered as a private
method. Backends looking to populate this variable should
... | [
"def",
"_set_nport",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for nport, mapped from YANG variable /rbridge_id/ag/pg/nport (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_nport is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_nport() direct... | [
"Setter",
"method",
"for",
"nport",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"ag",
"/",
"pg",
"/",
"nport",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/ag/pg/__init__.py#L133-L154 | train | Sets the nport property of the
|
StackStorm/pybind | pybind/nos/v6_0_2f/rbridge_id/ag/pg/__init__.py | pg._set_modes | def _set_modes(self, v, load=False):
"""
Setter method for modes, mapped from YANG variable /rbridge_id/ag/pg/modes (pg-policy-types)
If this variable is read-only (config: false) in the
source YANG file, then _set_modes is considered as a private
method. Backends looking to populate this variable s... | python | def _set_modes(self, v, load=False):
"""
Setter method for modes, mapped from YANG variable /rbridge_id/ag/pg/modes (pg-policy-types)
If this variable is read-only (config: false) in the
source YANG file, then _set_modes is considered as a private
method. Backends looking to populate this variable s... | [
"def",
"_set_modes",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",
... | Setter method for modes, mapped from YANG variable /rbridge_id/ag/pg/modes (pg-policy-types)
If this variable is read-only (config: false) in the
source YANG file, then _set_modes is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_modes() ... | [
"Setter",
"method",
"for",
"modes",
"mapped",
"from",
"YANG",
"variable",
"/",
"rbridge_id",
"/",
"ag",
"/",
"pg",
"/",
"modes",
"(",
"pg",
"-",
"policy",
"-",
"types",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"fa... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/ag/pg/__init__.py#L166-L187 | train | Sets the modes of the
|
StackStorm/pybind | pybind/slxos/v17s_1_02/system_qos/qos/__init__.py | qos._set_service_policy | def _set_service_policy(self, v, load=False):
"""
Setter method for service_policy, mapped from YANG variable /system_qos/qos/service_policy (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_service_policy is considered as a private
method. Backends looking to p... | python | def _set_service_policy(self, v, load=False):
"""
Setter method for service_policy, mapped from YANG variable /system_qos/qos/service_policy (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_service_policy is considered as a private
method. Backends looking to p... | [
"def",
"_set_service_policy",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
... | Setter method for service_policy, mapped from YANG variable /system_qos/qos/service_policy (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_service_policy is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj... | [
"Setter",
"method",
"for",
"service_policy",
"mapped",
"from",
"YANG",
"variable",
"/",
"system_qos",
"/",
"qos",
"/",
"service_policy",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
":",
"false",
")",
"in",
"the",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/system_qos/qos/__init__.py#L92-L113 | train | Sets the service policy for the
|
BD2KGenomics/protect | src/protect/mutation_calling/fusion.py | wrap_fusion | def wrap_fusion(job,
fastqs,
star_output,
univ_options,
star_fusion_options,
fusion_inspector_options):
"""
A wrapper for run_fusion using the results from cutadapt and star as input.
:param tuple fastqs: RNA-Seq FASTQ Filestor... | python | def wrap_fusion(job,
fastqs,
star_output,
univ_options,
star_fusion_options,
fusion_inspector_options):
"""
A wrapper for run_fusion using the results from cutadapt and star as input.
:param tuple fastqs: RNA-Seq FASTQ Filestor... | [
"def",
"wrap_fusion",
"(",
"job",
",",
"fastqs",
",",
"star_output",
",",
"univ_options",
",",
"star_fusion_options",
",",
"fusion_inspector_options",
")",
":",
"# Give user option to skip fusion calling",
"if",
"not",
"star_fusion_options",
"[",
"'run'",
"]",
":",
"j... | A wrapper for run_fusion using the results from cutadapt and star as input.
:param tuple fastqs: RNA-Seq FASTQ Filestore IDs
:param dict star_output: Dictionary containing STAR output files
:param dict univ_options: universal arguments used by almost all tools
:param dict star_fusion_options: STAR-Fusi... | [
"A",
"wrapper",
"for",
"run_fusion",
"using",
"the",
"results",
"from",
"cutadapt",
"and",
"star",
"as",
"input",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/fusion.py#L38-L70 | train | A wrapper for run_fusion using the results from cutadapt and star as input. |
BD2KGenomics/protect | src/protect/mutation_calling/fusion.py | run_fusion | def run_fusion(job,
fastqs,
junction_file,
univ_options,
star_fusion_options,
fusion_inspector_options):
"""
Runs STAR-Fusion and filters fusion calls using FusionInspector
:param tuple fastqs: RNA-Seq FASTQ Filestore IDs
:param... | python | def run_fusion(job,
fastqs,
junction_file,
univ_options,
star_fusion_options,
fusion_inspector_options):
"""
Runs STAR-Fusion and filters fusion calls using FusionInspector
:param tuple fastqs: RNA-Seq FASTQ Filestore IDs
:param... | [
"def",
"run_fusion",
"(",
"job",
",",
"fastqs",
",",
"junction_file",
",",
"univ_options",
",",
"star_fusion_options",
",",
"fusion_inspector_options",
")",
":",
"work_dir",
"=",
"job",
".",
"fileStore",
".",
"getLocalTempDir",
"(",
")",
"input_files",
"=",
"{",... | Runs STAR-Fusion and filters fusion calls using FusionInspector
:param tuple fastqs: RNA-Seq FASTQ Filestore IDs
:param toil.fileStore.FileID junction_file: Chimeric junction file
:param dict univ_options: universal arguments used by almost all tools
:param dict star_fusion_options: STAR-Fusion specifi... | [
"Runs",
"STAR",
"-",
"Fusion",
"and",
"filters",
"fusion",
"calls",
"using",
"FusionInspector"
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/fusion.py#L73-L232 | train | This function runs STAR - Fusion on the RNA - Seq FASTQ files and filters the Fusion calls using FusionInspector. |
BD2KGenomics/protect | src/protect/mutation_calling/fusion.py | parse_star_fusion | def parse_star_fusion(infile):
"""
Parses STAR-Fusion format and returns an Expando object with basic features
:param str infile: path to STAR-Fusion prediction file
:return: Fusion prediction attributes
:rtype: bd2k.util.expando.Expando
"""
reader = csv.reader(infile, delimiter='\t')
h... | python | def parse_star_fusion(infile):
"""
Parses STAR-Fusion format and returns an Expando object with basic features
:param str infile: path to STAR-Fusion prediction file
:return: Fusion prediction attributes
:rtype: bd2k.util.expando.Expando
"""
reader = csv.reader(infile, delimiter='\t')
h... | [
"def",
"parse_star_fusion",
"(",
"infile",
")",
":",
"reader",
"=",
"csv",
".",
"reader",
"(",
"infile",
",",
"delimiter",
"=",
"'\\t'",
")",
"header",
"=",
"reader",
".",
"next",
"(",
")",
"header",
"=",
"{",
"key",
":",
"index",
"for",
"index",
","... | Parses STAR-Fusion format and returns an Expando object with basic features
:param str infile: path to STAR-Fusion prediction file
:return: Fusion prediction attributes
:rtype: bd2k.util.expando.Expando | [
"Parses",
"STAR",
"-",
"Fusion",
"format",
"and",
"returns",
"an",
"Expando",
"object",
"with",
"basic",
"features"
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/fusion.py#L235-L252 | train | Parses STAR - Fusion prediction file and returns an Expando object with basic features and attributes. |
BD2KGenomics/protect | src/protect/mutation_calling/fusion.py | get_transcripts | def get_transcripts(transcript_file):
"""
Parses FusionInspector transcript file and returns dictionary of sequences
:param str transcript_file: path to transcript FASTA
:return: de novo assembled transcripts
:rtype: dict
"""
with open(transcript_file, 'r') as fa:
transcripts = {}
... | python | def get_transcripts(transcript_file):
"""
Parses FusionInspector transcript file and returns dictionary of sequences
:param str transcript_file: path to transcript FASTA
:return: de novo assembled transcripts
:rtype: dict
"""
with open(transcript_file, 'r') as fa:
transcripts = {}
... | [
"def",
"get_transcripts",
"(",
"transcript_file",
")",
":",
"with",
"open",
"(",
"transcript_file",
",",
"'r'",
")",
"as",
"fa",
":",
"transcripts",
"=",
"{",
"}",
"regex_s",
"=",
"r\"(?P<ID>TRINITY.*)\\s(?P<fusion>.*--.*):(?P<left_start>\\d+)-(?P<right_start>\\d+)\"",
... | Parses FusionInspector transcript file and returns dictionary of sequences
:param str transcript_file: path to transcript FASTA
:return: de novo assembled transcripts
:rtype: dict | [
"Parses",
"FusionInspector",
"transcript",
"file",
"and",
"returns",
"dictionary",
"of",
"sequences"
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/fusion.py#L255-L284 | train | Parses the FusionInspector transcript file and returns a dictionary of transcripts |
BD2KGenomics/protect | src/protect/mutation_calling/fusion.py | split_fusion_transcript | def split_fusion_transcript(annotation_path, transcripts):
"""
Finds the breakpoint in the fusion transcript and splits the 5' donor from the 3' acceptor
:param str annotation_path: Path to transcript annotation file
:param dict transcripts: Dictionary of fusion transcripts
:return: 5' donor sequen... | python | def split_fusion_transcript(annotation_path, transcripts):
"""
Finds the breakpoint in the fusion transcript and splits the 5' donor from the 3' acceptor
:param str annotation_path: Path to transcript annotation file
:param dict transcripts: Dictionary of fusion transcripts
:return: 5' donor sequen... | [
"def",
"split_fusion_transcript",
"(",
"annotation_path",
",",
"transcripts",
")",
":",
"annotation",
"=",
"collections",
".",
"defaultdict",
"(",
"dict",
")",
"forward",
"=",
"'ACGTN'",
"reverse",
"=",
"'TGCAN'",
"trans",
"=",
"string",
".",
"maketrans",
"(",
... | Finds the breakpoint in the fusion transcript and splits the 5' donor from the 3' acceptor
:param str annotation_path: Path to transcript annotation file
:param dict transcripts: Dictionary of fusion transcripts
:return: 5' donor sequences and 3' acceptor sequences
:rtype: tuple | [
"Finds",
"the",
"breakpoint",
"in",
"the",
"fusion",
"transcript",
"and",
"splits",
"the",
"5",
"donor",
"from",
"the",
"3",
"acceptor"
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/fusion.py#L287-L352 | train | Reads the annotation file and splits the 5 donor sequences and 3 acceptor sequences |
BD2KGenomics/protect | src/protect/mutation_calling/fusion.py | get_gene_ids | def get_gene_ids(fusion_bed):
"""
Parses FusionInspector bed file to ascertain the ENSEMBL gene ids
:param str fusion_bed: path to fusion annotation
:return: dict
"""
with open(fusion_bed, 'r') as f:
gene_to_id = {}
regex = re.compile(r'(?P<gene>ENSG\d*)')
for line in f:... | python | def get_gene_ids(fusion_bed):
"""
Parses FusionInspector bed file to ascertain the ENSEMBL gene ids
:param str fusion_bed: path to fusion annotation
:return: dict
"""
with open(fusion_bed, 'r') as f:
gene_to_id = {}
regex = re.compile(r'(?P<gene>ENSG\d*)')
for line in f:... | [
"def",
"get_gene_ids",
"(",
"fusion_bed",
")",
":",
"with",
"open",
"(",
"fusion_bed",
",",
"'r'",
")",
"as",
"f",
":",
"gene_to_id",
"=",
"{",
"}",
"regex",
"=",
"re",
".",
"compile",
"(",
"r'(?P<gene>ENSG\\d*)'",
")",
"for",
"line",
"in",
"f",
":",
... | Parses FusionInspector bed file to ascertain the ENSEMBL gene ids
:param str fusion_bed: path to fusion annotation
:return: dict | [
"Parses",
"FusionInspector",
"bed",
"file",
"to",
"ascertain",
"the",
"ENSEMBL",
"gene",
"ids"
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/fusion.py#L355-L371 | train | Parses the ENSEMBL gene ids from a FusionInspector bed file to ascertain the ENSEMBL gene ids |
BD2KGenomics/protect | src/protect/mutation_calling/fusion.py | reformat_star_fusion_output | def reformat_star_fusion_output(job,
fusion_annot,
fusion_file,
transcript_file,
transcript_gff_file,
univ_options):
"""
Writes STAR-Fusion results in T... | python | def reformat_star_fusion_output(job,
fusion_annot,
fusion_file,
transcript_file,
transcript_gff_file,
univ_options):
"""
Writes STAR-Fusion results in T... | [
"def",
"reformat_star_fusion_output",
"(",
"job",
",",
"fusion_annot",
",",
"fusion_file",
",",
"transcript_file",
",",
"transcript_gff_file",
",",
"univ_options",
")",
":",
"input_files",
"=",
"{",
"'results.tsv'",
":",
"fusion_file",
",",
"'fusion.bed'",
":",
"fus... | Writes STAR-Fusion results in Transgene BEDPE format
:param toil.fileStore.FileID fusion_annot: Fusion annotation
:param toil.fileStore.FileID fusion_file: STAR-fusion prediction file
:param toil.fileStore.FileID transcript_file: Fusion transcript FASTA file
:param toil.fileStore.FileID transcript_gff_... | [
"Writes",
"STAR",
"-",
"Fusion",
"results",
"in",
"Transgene",
"BEDPE",
"format"
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/mutation_calling/fusion.py#L374-L467 | train | This function reformats the STAR - Fusion output into a Transgene BEDPE file. |
StackStorm/pybind | pybind/nos/v6_0_2f/interface/port_channel/switchport/private_vlan/__init__.py | private_vlan._set_association | def _set_association(self, v, load=False):
"""
Setter method for association, mapped from YANG variable /interface/port_channel/switchport/private_vlan/association (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_association is considered as a private
meth... | python | def _set_association(self, v, load=False):
"""
Setter method for association, mapped from YANG variable /interface/port_channel/switchport/private_vlan/association (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_association is considered as a private
meth... | [
"def",
"_set_association",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"ba... | Setter method for association, mapped from YANG variable /interface/port_channel/switchport/private_vlan/association (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_association is considered as a private
method. Backends looking to populate this variable should
... | [
"Setter",
"method",
"for",
"association",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"switchport",
"/",
"private_vlan",
"/",
"association",
"(",
"container",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/port_channel/switchport/private_vlan/__init__.py#L176-L199 | train | Set association for the private
|
StackStorm/pybind | pybind/nos/v6_0_2f/interface/port_channel/switchport/private_vlan/__init__.py | private_vlan._set_mapping | def _set_mapping(self, v, load=False):
"""
Setter method for mapping, mapped from YANG variable /interface/port_channel/switchport/private_vlan/mapping (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mapping is considered as a private
method. Backends looking ... | python | def _set_mapping(self, v, load=False):
"""
Setter method for mapping, mapped from YANG variable /interface/port_channel/switchport/private_vlan/mapping (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mapping is considered as a private
method. Backends looking ... | [
"def",
"_set_mapping",
"(",
"self",
",",
"v",
",",
"load",
"=",
"False",
")",
":",
"if",
"hasattr",
"(",
"v",
",",
"\"_utype\"",
")",
":",
"v",
"=",
"v",
".",
"_utype",
"(",
"v",
")",
"try",
":",
"t",
"=",
"YANGDynClass",
"(",
"v",
",",
"base",... | Setter method for mapping, mapped from YANG variable /interface/port_channel/switchport/private_vlan/mapping (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_mapping is considered as a private
method. Backends looking to populate this variable should
do so via call... | [
"Setter",
"method",
"for",
"mapping",
"mapped",
"from",
"YANG",
"variable",
"/",
"interface",
"/",
"port_channel",
"/",
"switchport",
"/",
"private_vlan",
"/",
"mapping",
"(",
"list",
")",
"If",
"this",
"variable",
"is",
"read",
"-",
"only",
"(",
"config",
... | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/port_channel/switchport/private_vlan/__init__.py#L213-L236 | train | Sets the mapping of the private vrf. |
BD2KGenomics/protect | src/protect/pipeline/ProTECT.py | _ensure_set_contains | def _ensure_set_contains(test_object, required_object, test_set_name=None):
"""
Ensure that the required entries (set or keys of a dict) are present in the test set or keys
of the test dict.
:param set|dict test_object: The test set or dict
:param set|dict required_object: The entries that need to ... | python | def _ensure_set_contains(test_object, required_object, test_set_name=None):
"""
Ensure that the required entries (set or keys of a dict) are present in the test set or keys
of the test dict.
:param set|dict test_object: The test set or dict
:param set|dict required_object: The entries that need to ... | [
"def",
"_ensure_set_contains",
"(",
"test_object",
",",
"required_object",
",",
"test_set_name",
"=",
"None",
")",
":",
"assert",
"isinstance",
"(",
"test_object",
",",
"(",
"set",
",",
"dict",
")",
")",
",",
"'%s,%s'",
"%",
"(",
"test_object",
",",
"test_se... | Ensure that the required entries (set or keys of a dict) are present in the test set or keys
of the test dict.
:param set|dict test_object: The test set or dict
:param set|dict required_object: The entries that need to be present in the test set (keys of
input dict if input is dict)
:param ... | [
"Ensure",
"that",
"the",
"required",
"entries",
"(",
"set",
"or",
"keys",
"of",
"a",
"dict",
")",
"are",
"present",
"in",
"the",
"test",
"set",
"or",
"keys",
"of",
"the",
"test",
"dict",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/pipeline/ProTECT.py#L71-L91 | train | Ensures that the required entries of a dict are present in the set. |
BD2KGenomics/protect | src/protect/pipeline/ProTECT.py | _ensure_patient_group_is_ok | def _ensure_patient_group_is_ok(patient_object, patient_name=None):
"""
Ensure that the provided entries for the patient groups is formatted properly.
:param set|dict patient_object: The values passed to the samples patient group
:param str patient_name: Optional name for the set
:raises ParameterE... | python | def _ensure_patient_group_is_ok(patient_object, patient_name=None):
"""
Ensure that the provided entries for the patient groups is formatted properly.
:param set|dict patient_object: The values passed to the samples patient group
:param str patient_name: Optional name for the set
:raises ParameterE... | [
"def",
"_ensure_patient_group_is_ok",
"(",
"patient_object",
",",
"patient_name",
"=",
"None",
")",
":",
"from",
"protect",
".",
"addons",
".",
"common",
"import",
"TCGAToGTEx",
"assert",
"isinstance",
"(",
"patient_object",
",",
"(",
"set",
",",
"dict",
")",
... | Ensure that the provided entries for the patient groups is formatted properly.
:param set|dict patient_object: The values passed to the samples patient group
:param str patient_name: Optional name for the set
:raises ParameterError: If required entry doesnt exist | [
"Ensure",
"that",
"the",
"provided",
"entries",
"for",
"the",
"patient",
"groups",
"is",
"formatted",
"properly",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/pipeline/ProTECT.py#L94-L148 | train | Ensures that the provided entries for the patient group are valid. |
BD2KGenomics/protect | src/protect/pipeline/ProTECT.py | _add_default_entries | def _add_default_entries(input_dict, defaults_dict):
"""
Add the entries in defaults dict into input_dict if they don't exist in input_dict
This is based on the accepted answer at
http://stackoverflow.com/questions/3232943/update-value-of-a-nested-dictionary-of-varying-depth
:param dict input_dict... | python | def _add_default_entries(input_dict, defaults_dict):
"""
Add the entries in defaults dict into input_dict if they don't exist in input_dict
This is based on the accepted answer at
http://stackoverflow.com/questions/3232943/update-value-of-a-nested-dictionary-of-varying-depth
:param dict input_dict... | [
"def",
"_add_default_entries",
"(",
"input_dict",
",",
"defaults_dict",
")",
":",
"for",
"key",
",",
"value",
"in",
"defaults_dict",
".",
"iteritems",
"(",
")",
":",
"if",
"key",
"==",
"'patients'",
":",
"print",
"(",
"'Cannot default `patients`.'",
")",
"cont... | Add the entries in defaults dict into input_dict if they don't exist in input_dict
This is based on the accepted answer at
http://stackoverflow.com/questions/3232943/update-value-of-a-nested-dictionary-of-varying-depth
:param dict input_dict: The dict to be updated
:param dict defaults_dict: Dict cont... | [
"Add",
"the",
"entries",
"in",
"defaults",
"dict",
"into",
"input_dict",
"if",
"they",
"don",
"t",
"exist",
"in",
"input_dict"
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/pipeline/ProTECT.py#L151-L180 | train | Adds the entries in defaults dict into input_dict if they don t exist in input_dict |
BD2KGenomics/protect | src/protect/pipeline/ProTECT.py | _process_group | def _process_group(input_group, required_group, groupname, append_subgroups=None):
"""
Process one group from the input yaml. Ensure it has the required entries. If there is a
subgroup that should be processed and then appended to the rest of the subgroups in that group,
handle it accordingly.
:p... | python | def _process_group(input_group, required_group, groupname, append_subgroups=None):
"""
Process one group from the input yaml. Ensure it has the required entries. If there is a
subgroup that should be processed and then appended to the rest of the subgroups in that group,
handle it accordingly.
:p... | [
"def",
"_process_group",
"(",
"input_group",
",",
"required_group",
",",
"groupname",
",",
"append_subgroups",
"=",
"None",
")",
":",
"if",
"append_subgroups",
"is",
"None",
":",
"append_subgroups",
"=",
"[",
"]",
"tool_options",
"=",
"{",
"}",
"for",
"key",
... | Process one group from the input yaml. Ensure it has the required entries. If there is a
subgroup that should be processed and then appended to the rest of the subgroups in that group,
handle it accordingly.
:param dict input_group: The dict of values of the input group
:param dict required_group: Th... | [
"Process",
"one",
"group",
"from",
"the",
"input",
"yaml",
".",
"Ensure",
"it",
"has",
"the",
"required",
"entries",
".",
"If",
"there",
"is",
"a",
"subgroup",
"that",
"should",
"be",
"processed",
"and",
"then",
"appended",
"to",
"the",
"rest",
"of",
"th... | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/pipeline/ProTECT.py#L183-L211 | train | Process one group from the input yaml. |
BD2KGenomics/protect | src/protect/pipeline/ProTECT.py | get_fastq_2 | def get_fastq_2(job, patient_id, sample_type, fastq_1):
"""
For a path to a fastq_1 file, return a fastq_2 file with the same prefix and naming scheme.
:param str patient_id: The patient_id
:param str sample_type: The sample type of the file
:param str fastq_1: The path to the fastq_1 file
:ret... | python | def get_fastq_2(job, patient_id, sample_type, fastq_1):
"""
For a path to a fastq_1 file, return a fastq_2 file with the same prefix and naming scheme.
:param str patient_id: The patient_id
:param str sample_type: The sample type of the file
:param str fastq_1: The path to the fastq_1 file
:ret... | [
"def",
"get_fastq_2",
"(",
"job",
",",
"patient_id",
",",
"sample_type",
",",
"fastq_1",
")",
":",
"prefix",
",",
"extn",
"=",
"fastq_1",
",",
"'temp'",
"final_extn",
"=",
"''",
"while",
"extn",
":",
"prefix",
",",
"extn",
"=",
"os",
".",
"path",
".",
... | For a path to a fastq_1 file, return a fastq_2 file with the same prefix and naming scheme.
:param str patient_id: The patient_id
:param str sample_type: The sample type of the file
:param str fastq_1: The path to the fastq_1 file
:return: The path to the fastq_2 file
:rtype: str | [
"For",
"a",
"path",
"to",
"a",
"fastq_1",
"file",
"return",
"a",
"fastq_2",
"file",
"with",
"the",
"same",
"prefix",
"and",
"naming",
"scheme",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/pipeline/ProTECT.py#L214-L241 | train | Returns a path to a fastq_2 file with the same prefix and naming scheme. |
BD2KGenomics/protect | src/protect/pipeline/ProTECT.py | parse_patients | def parse_patients(job, patient_dict, skip_fusions=False):
"""
Parse a dict of patient entries to retain only the useful entries (The user may provide more
than we need and we don't want to download redundant things)
:param dict patient_dict: The dict of patient entries parsed from the input config
... | python | def parse_patients(job, patient_dict, skip_fusions=False):
"""
Parse a dict of patient entries to retain only the useful entries (The user may provide more
than we need and we don't want to download redundant things)
:param dict patient_dict: The dict of patient entries parsed from the input config
... | [
"def",
"parse_patients",
"(",
"job",
",",
"patient_dict",
",",
"skip_fusions",
"=",
"False",
")",
":",
"output_dict",
"=",
"{",
"'ssec_encrypted'",
":",
"patient_dict",
".",
"get",
"(",
"'ssec_encrypted'",
")",
"in",
"(",
"True",
",",
"'True'",
",",
"'true'"... | Parse a dict of patient entries to retain only the useful entries (The user may provide more
than we need and we don't want to download redundant things)
:param dict patient_dict: The dict of patient entries parsed from the input config
:param bool skip_fusions: A flag to identify if we're skipping fusions... | [
"Parse",
"a",
"dict",
"of",
"patient",
"entries",
"to",
"retain",
"only",
"the",
"useful",
"entries",
"(",
"The",
"user",
"may",
"provide",
"more",
"than",
"we",
"need",
"and",
"we",
"don",
"t",
"want",
"to",
"download",
"redundant",
"things",
")"
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/pipeline/ProTECT.py#L244-L309 | train | Parse a dictionary of patient entries to retain only the useful entries |
BD2KGenomics/protect | src/protect/pipeline/ProTECT.py | _parse_config_file | def _parse_config_file(job, config_file, max_cores=None):
"""
Parse the input yaml config file and download all tool inputs into the file store.
:param str config_file: Path to the input config file
:param int max_cores: The maximum cores to use for any single high-compute job.
:return: tuple of di... | python | def _parse_config_file(job, config_file, max_cores=None):
"""
Parse the input yaml config file and download all tool inputs into the file store.
:param str config_file: Path to the input config file
:param int max_cores: The maximum cores to use for any single high-compute job.
:return: tuple of di... | [
"def",
"_parse_config_file",
"(",
"job",
",",
"config_file",
",",
"max_cores",
"=",
"None",
")",
":",
"job",
".",
"fileStore",
".",
"logToMaster",
"(",
"'Parsing config file'",
")",
"config_file",
"=",
"os",
".",
"path",
".",
"abspath",
"(",
"config_file",
"... | Parse the input yaml config file and download all tool inputs into the file store.
:param str config_file: Path to the input config file
:param int max_cores: The maximum cores to use for any single high-compute job.
:return: tuple of dict of sample dicts, dict of universal options, dict of dicts of tool o... | [
"Parse",
"the",
"input",
"yaml",
"config",
"file",
"and",
"download",
"all",
"tool",
"inputs",
"into",
"the",
"file",
"store",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/pipeline/ProTECT.py#L312-L433 | train | Parse the input yaml config file and download all tool inputs into the file store. |
BD2KGenomics/protect | src/protect/pipeline/ProTECT.py | parse_config_file | def parse_config_file(job, config_file, max_cores=None):
"""
Parse the config file and spawn a ProTECT job for every input sample.
:param str config_file: Path to the input config file
:param int max_cores: The maximum cores to use for any single high-compute job.
"""
sample_set, univ_options, ... | python | def parse_config_file(job, config_file, max_cores=None):
"""
Parse the config file and spawn a ProTECT job for every input sample.
:param str config_file: Path to the input config file
:param int max_cores: The maximum cores to use for any single high-compute job.
"""
sample_set, univ_options, ... | [
"def",
"parse_config_file",
"(",
"job",
",",
"config_file",
",",
"max_cores",
"=",
"None",
")",
":",
"sample_set",
",",
"univ_options",
",",
"processed_tool_inputs",
"=",
"_parse_config_file",
"(",
"job",
",",
"config_file",
",",
"max_cores",
")",
"# Start a job f... | Parse the config file and spawn a ProTECT job for every input sample.
:param str config_file: Path to the input config file
:param int max_cores: The maximum cores to use for any single high-compute job. | [
"Parse",
"the",
"config",
"file",
"and",
"spawn",
"a",
"ProTECT",
"job",
"for",
"every",
"input",
"sample",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/pipeline/ProTECT.py#L436-L449 | train | Parse the config file and spawn a ProTECT job for every input sample. |
BD2KGenomics/protect | src/protect/pipeline/ProTECT.py | ascertain_cpu_share | def ascertain_cpu_share(max_cores=None):
"""
Ascertain the number of cpus allowed for each high-compte job instance (bwa, star, rsem, phlat).
:param max_cores: The user-specified max
:return: The number of cpus allowed for each high-compte job instance
:rtype: int
"""
# Ascertain the number... | python | def ascertain_cpu_share(max_cores=None):
"""
Ascertain the number of cpus allowed for each high-compte job instance (bwa, star, rsem, phlat).
:param max_cores: The user-specified max
:return: The number of cpus allowed for each high-compte job instance
:rtype: int
"""
# Ascertain the number... | [
"def",
"ascertain_cpu_share",
"(",
"max_cores",
"=",
"None",
")",
":",
"# Ascertain the number of available CPUs. Jobs will be given fractions of this value.",
"num_cores",
"=",
"cpu_count",
"(",
")",
"# The minimum number of cpus should be at least 6 if possible",
"min_cores",
"=",
... | Ascertain the number of cpus allowed for each high-compte job instance (bwa, star, rsem, phlat).
:param max_cores: The user-specified max
:return: The number of cpus allowed for each high-compte job instance
:rtype: int | [
"Ascertain",
"the",
"number",
"of",
"cpus",
"allowed",
"for",
"each",
"high",
"-",
"compte",
"job",
"instance",
"(",
"bwa",
"star",
"rsem",
"phlat",
")",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/pipeline/ProTECT.py#L452-L467 | train | Ascertain the number of cores allowed for each high - compte job instance. |
BD2KGenomics/protect | src/protect/pipeline/ProTECT.py | launch_protect | def launch_protect(job, patient_data, univ_options, tool_options):
"""
The launchpad for ProTECT. The DAG for ProTECT can be viewed in Flowchart.txt.
:param dict patient_data: Dict of information regarding the input sequences for the patient
:param dict univ_options: Dict of universal options used by a... | python | def launch_protect(job, patient_data, univ_options, tool_options):
"""
The launchpad for ProTECT. The DAG for ProTECT can be viewed in Flowchart.txt.
:param dict patient_data: Dict of information regarding the input sequences for the patient
:param dict univ_options: Dict of universal options used by a... | [
"def",
"launch_protect",
"(",
"job",
",",
"patient_data",
",",
"univ_options",
",",
"tool_options",
")",
":",
"# Add Patient id to univ_options as is is passed to every major node in the DAG and can be used",
"# as a prefix for the logfile.",
"univ_options",
"[",
"'patient'",
"]",
... | The launchpad for ProTECT. The DAG for ProTECT can be viewed in Flowchart.txt.
:param dict patient_data: Dict of information regarding the input sequences for the patient
:param dict univ_options: Dict of universal options used by almost all tools
:param dict tool_options: Options for the various tools | [
"The",
"launchpad",
"for",
"ProTECT",
".",
"The",
"DAG",
"for",
"ProTECT",
"can",
"be",
"viewed",
"in",
"Flowchart",
".",
"txt",
"."
] | 06310682c50dcf8917b912c8e551299ff7ee41ce | https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/pipeline/ProTECT.py#L470-L737 | train | This function is called by the ProTECT tools to launch the DAG for ProTECT. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.