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/openflow_controller/__init__.py
openflow_controller._set_connection_address
def _set_connection_address(self, v, load=False): """ Setter method for connection_address, mapped from YANG variable /openflow_controller/connection_address (container) If this variable is read-only (config: false) in the source YANG file, then _set_connection_address is considered as a private met...
python
def _set_connection_address(self, v, load=False): """ Setter method for connection_address, mapped from YANG variable /openflow_controller/connection_address (container) If this variable is read-only (config: false) in the source YANG file, then _set_connection_address is considered as a private met...
[ "def", "_set_connection_address", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ","...
Setter method for connection_address, mapped from YANG variable /openflow_controller/connection_address (container) If this variable is read-only (config: false) in the source YANG file, then _set_connection_address is considered as a private method. Backends looking to populate this variable should do ...
[ "Setter", "method", "for", "connection_address", "mapped", "from", "YANG", "variable", "/", "openflow_controller", "/", "connection_address", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "t...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/openflow_controller/__init__.py#L139-L162
train
Sets the IP address of the order of the connection.
bkg/django-spillway
spillway/collections.py
as_feature
def as_feature(data): """Returns a Feature or FeatureCollection. Arguments: data -- Sequence or Mapping of Feature-like or FeatureCollection-like data """ if not isinstance(data, (Feature, FeatureCollection)): if is_featurelike(data): data = Feature(**data) elif has_feat...
python
def as_feature(data): """Returns a Feature or FeatureCollection. Arguments: data -- Sequence or Mapping of Feature-like or FeatureCollection-like data """ if not isinstance(data, (Feature, FeatureCollection)): if is_featurelike(data): data = Feature(**data) elif has_feat...
[ "def", "as_feature", "(", "data", ")", ":", "if", "not", "isinstance", "(", "data", ",", "(", "Feature", ",", "FeatureCollection", ")", ")", ":", "if", "is_featurelike", "(", "data", ")", ":", "data", "=", "Feature", "(", "*", "*", "data", ")", "elif...
Returns a Feature or FeatureCollection. Arguments: data -- Sequence or Mapping of Feature-like or FeatureCollection-like data
[ "Returns", "a", "Feature", "or", "FeatureCollection", "." ]
c488a62642430b005f1e0d4a19e160d8d5964b67
https://github.com/bkg/django-spillway/blob/c488a62642430b005f1e0d4a19e160d8d5964b67/spillway/collections.py#L9-L28
train
Returns a Feature or FeatureCollection object.
bkg/django-spillway
spillway/collections.py
has_layer
def has_layer(fcollection): """Returns true for a multi-layer dict of FeatureCollections.""" for val in six.viewvalues(fcollection): if has_features(val): return True return False
python
def has_layer(fcollection): """Returns true for a multi-layer dict of FeatureCollections.""" for val in six.viewvalues(fcollection): if has_features(val): return True return False
[ "def", "has_layer", "(", "fcollection", ")", ":", "for", "val", "in", "six", ".", "viewvalues", "(", "fcollection", ")", ":", "if", "has_features", "(", "val", ")", ":", "return", "True", "return", "False" ]
Returns true for a multi-layer dict of FeatureCollections.
[ "Returns", "true", "for", "a", "multi", "-", "layer", "dict", "of", "FeatureCollections", "." ]
c488a62642430b005f1e0d4a19e160d8d5964b67
https://github.com/bkg/django-spillway/blob/c488a62642430b005f1e0d4a19e160d8d5964b67/spillway/collections.py#L51-L56
train
Returns true if a multi - layer dict of FeatureCollections.
StackStorm/pybind
pybind/nos/v6_0_2f/no/__init__.py
no._set_nocrypto
def _set_nocrypto(self, v, load=False): """ Setter method for nocrypto, mapped from YANG variable /no/nocrypto (container) If this variable is read-only (config: false) in the source YANG file, then _set_nocrypto is considered as a private method. Backends looking to populate this variable should ...
python
def _set_nocrypto(self, v, load=False): """ Setter method for nocrypto, mapped from YANG variable /no/nocrypto (container) If this variable is read-only (config: false) in the source YANG file, then _set_nocrypto is considered as a private method. Backends looking to populate this variable should ...
[ "def", "_set_nocrypto", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for nocrypto, mapped from YANG variable /no/nocrypto (container) If this variable is read-only (config: false) in the source YANG file, then _set_nocrypto is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_nocrypto() directly...
[ "Setter", "method", "for", "nocrypto", "mapped", "from", "YANG", "variable", "/", "no", "/", "nocrypto", "(", "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/no/__init__.py#L94-L115
train
Set the nocrypto variable.
BD2KGenomics/protect
src/protect/expression_profiling/rsem.py
wrap_rsem
def wrap_rsem(job, star_bams, univ_options, rsem_options): """ A wrapper for run_rsem using the results from run_star as input. :param dict star_bams: dict of results from star :param dict univ_options: Dict of universal options used by almost all tools :param dict rsem_options: Options specific to...
python
def wrap_rsem(job, star_bams, univ_options, rsem_options): """ A wrapper for run_rsem using the results from run_star as input. :param dict star_bams: dict of results from star :param dict univ_options: Dict of universal options used by almost all tools :param dict rsem_options: Options specific to...
[ "def", "wrap_rsem", "(", "job", ",", "star_bams", ",", "univ_options", ",", "rsem_options", ")", ":", "rsem", "=", "job", ".", "addChildJobFn", "(", "run_rsem", ",", "star_bams", "[", "'rna_transcriptome.bam'", "]", ",", "univ_options", ",", "rsem_options", ",...
A wrapper for run_rsem using the results from run_star as input. :param dict star_bams: dict of results from star :param dict univ_options: Dict of universal options used by almost all tools :param dict rsem_options: Options specific to rsem :return: Dict of gene- and isoform-level expression calls ...
[ "A", "wrapper", "for", "run_rsem", "using", "the", "results", "from", "run_star", "as", "input", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/expression_profiling/rsem.py#L36-L54
train
A wrapper for run_rsem using the results from run_star as input.
BD2KGenomics/protect
src/protect/expression_profiling/rsem.py
run_rsem
def run_rsem(job, rna_bam, univ_options, rsem_options): """ Run rsem on the input RNA bam. ARGUMENTS :param toil.fileStore.FileID rna_bam: fsID of a transcriptome bam generated by STAR :param dict univ_options: Dict of universal options used by almost all tools :param dict rsem_options: Options...
python
def run_rsem(job, rna_bam, univ_options, rsem_options): """ Run rsem on the input RNA bam. ARGUMENTS :param toil.fileStore.FileID rna_bam: fsID of a transcriptome bam generated by STAR :param dict univ_options: Dict of universal options used by almost all tools :param dict rsem_options: Options...
[ "def", "run_rsem", "(", "job", ",", "rna_bam", ",", "univ_options", ",", "rsem_options", ")", ":", "work_dir", "=", "os", ".", "getcwd", "(", ")", "input_files", "=", "{", "'star_transcriptome.bam'", ":", "rna_bam", ",", "'rsem_index.tar.gz'", ":", "rsem_optio...
Run rsem on the input RNA bam. ARGUMENTS :param toil.fileStore.FileID rna_bam: fsID of a transcriptome bam generated by STAR :param dict univ_options: Dict of universal options used by almost all tools :param dict rsem_options: Options specific to rsem :return: Dict of gene- and isoform-level expre...
[ "Run", "rsem", "on", "the", "input", "RNA", "bam", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/expression_profiling/rsem.py#L57-L95
train
This module will run rsem on the input RNA bam and return the output as a dict of gene - and isoform - level expression calls.
StackStorm/pybind
pybind/nos/v7_2_0/rbridge_id/ipv6/__init__.py
ipv6._set_static_ag_ipv6_config
def _set_static_ag_ipv6_config(self, v, load=False): """ Setter method for static_ag_ipv6_config, mapped from YANG variable /rbridge_id/ipv6/static_ag_ipv6_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_static_ag_ipv6_config is considered as a private...
python
def _set_static_ag_ipv6_config(self, v, load=False): """ Setter method for static_ag_ipv6_config, mapped from YANG variable /rbridge_id/ipv6/static_ag_ipv6_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_static_ag_ipv6_config is considered as a private...
[ "def", "_set_static_ag_ipv6_config", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ...
Setter method for static_ag_ipv6_config, mapped from YANG variable /rbridge_id/ipv6/static_ag_ipv6_config (container) If this variable is read-only (config: false) in the source YANG file, then _set_static_ag_ipv6_config is considered as a private method. Backends looking to populate this variable should ...
[ "Setter", "method", "for", "static_ag_ipv6_config", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "ipv6", "/", "static_ag_ipv6_config", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/rbridge_id/ipv6/__init__.py#L147-L168
train
Sets the value of static_ag_ipv6_config in the top - level order of the tree.
StackStorm/pybind
pybind/slxos/v17r_1_01a/interface/port_channel/openflowPo/__init__.py
openflowPo._set_enablePoMode
def _set_enablePoMode(self, v, load=False): """ Setter method for enablePoMode, mapped from YANG variable /interface/port_channel/openflowPo/enablePoMode (container) If this variable is read-only (config: false) in the source YANG file, then _set_enablePoMode is considered as a private method. Backe...
python
def _set_enablePoMode(self, v, load=False): """ Setter method for enablePoMode, mapped from YANG variable /interface/port_channel/openflowPo/enablePoMode (container) If this variable is read-only (config: false) in the source YANG file, then _set_enablePoMode is considered as a private method. Backe...
[ "def", "_set_enablePoMode", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for enablePoMode, mapped from YANG variable /interface/port_channel/openflowPo/enablePoMode (container) If this variable is read-only (config: false) in the source YANG file, then _set_enablePoMode is considered as a private method. Backends looking to populate this variable should do so v...
[ "Setter", "method", "for", "enablePoMode", "mapped", "from", "YANG", "variable", "/", "interface", "/", "port_channel", "/", "openflowPo", "/", "enablePoMode", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "f...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/interface/port_channel/openflowPo/__init__.py#L92-L113
train
Sets the enable flag of the
StackStorm/pybind
pybind/slxos/v17r_1_01a/interface/port_channel/qos/random_detect/__init__.py
random_detect._set_traffic_class
def _set_traffic_class(self, v, load=False): """ Setter method for traffic_class, mapped from YANG variable /interface/port_channel/qos/random_detect/traffic_class (list) If this variable is read-only (config: false) in the source YANG file, then _set_traffic_class is considered as a private method....
python
def _set_traffic_class(self, v, load=False): """ Setter method for traffic_class, mapped from YANG variable /interface/port_channel/qos/random_detect/traffic_class (list) If this variable is read-only (config: false) in the source YANG file, then _set_traffic_class is considered as a private method....
[ "def", "_set_traffic_class", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for traffic_class, mapped from YANG variable /interface/port_channel/qos/random_detect/traffic_class (list) If this variable is read-only (config: false) in the source YANG file, then _set_traffic_class is considered as a private method. Backends looking to populate this variable should do...
[ "Setter", "method", "for", "traffic_class", "mapped", "from", "YANG", "variable", "/", "interface", "/", "port_channel", "/", "qos", "/", "random_detect", "/", "traffic_class", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "conf...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_1_01a/interface/port_channel/qos/random_detect/__init__.py#L92-L113
train
Sets the traffic class of the .
StackStorm/pybind
pybind/slxos/v17s_1_02/interface_vlan/vlan/ip/igmpVlan/snooping/igmps_mrouter/__init__.py
igmps_mrouter._set_igmps_interface
def _set_igmps_interface(self, v, load=False): """ Setter method for igmps_interface, mapped from YANG variable /interface_vlan/vlan/ip/igmpVlan/snooping/igmps_mrouter/igmps_interface (list) If this variable is read-only (config: false) in the source YANG file, then _set_igmps_interface is considered as...
python
def _set_igmps_interface(self, v, load=False): """ Setter method for igmps_interface, mapped from YANG variable /interface_vlan/vlan/ip/igmpVlan/snooping/igmps_mrouter/igmps_interface (list) If this variable is read-only (config: false) in the source YANG file, then _set_igmps_interface is considered as...
[ "def", "_set_igmps_interface", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for igmps_interface, mapped from YANG variable /interface_vlan/vlan/ip/igmpVlan/snooping/igmps_mrouter/igmps_interface (list) If this variable is read-only (config: false) in the source YANG file, then _set_igmps_interface is considered as a private method. Backends looking to populate this va...
[ "Setter", "method", "for", "igmps_interface", "mapped", "from", "YANG", "variable", "/", "interface_vlan", "/", "vlan", "/", "ip", "/", "igmpVlan", "/", "snooping", "/", "igmps_mrouter", "/", "igmps_interface", "(", "list", ")", "If", "this", "variable", "is",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/interface_vlan/vlan/ip/igmpVlan/snooping/igmps_mrouter/__init__.py#L92-L113
train
Set the value of igmps_interface mapped from YANG variable igmps_interface
StackStorm/pybind
pybind/nos/v6_0_2f/interface/fortygigabitethernet/rmon/__init__.py
rmon._set_collection
def _set_collection(self, v, load=False): """ Setter method for collection, mapped from YANG variable /interface/fortygigabitethernet/rmon/collection (container) If this variable is read-only (config: false) in the source YANG file, then _set_collection is considered as a private method. Backends lo...
python
def _set_collection(self, v, load=False): """ Setter method for collection, mapped from YANG variable /interface/fortygigabitethernet/rmon/collection (container) If this variable is read-only (config: false) in the source YANG file, then _set_collection is considered as a private method. Backends lo...
[ "def", "_set_collection", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for collection, mapped from YANG variable /interface/fortygigabitethernet/rmon/collection (container) If this variable is read-only (config: false) in the source YANG file, then _set_collection is considered as a private method. Backends looking to populate this variable should do so via c...
[ "Setter", "method", "for", "collection", "mapped", "from", "YANG", "variable", "/", "interface", "/", "fortygigabitethernet", "/", "rmon", "/", "collection", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "fal...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/fortygigabitethernet/rmon/__init__.py#L92-L113
train
Set the collection of the sequence.
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/__init__.py
update_source._set_sip_ipv4_address
def _set_sip_ipv4_address(self, v, load=False): """ Setter method for sip_ipv4_address, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/sip_ipv4_address (sip-ipv4-address) If this variable is read-only (config: false) in the ...
python
def _set_sip_ipv4_address(self, v, load=False): """ Setter method for sip_ipv4_address, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/sip_ipv4_address (sip-ipv4-address) If this variable is read-only (config: false) in the ...
[ "def", "_set_sip_ipv4_address", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for sip_ipv4_address, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/sip_ipv4_address (sip-ipv4-address) If this variable is read-only (config: false) in the source YANG file, then _set_sip_ipv4_address is considered ...
[ "Setter", "method", "for", "sip_ipv4_address", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "router", "/", "router_bgp", "/", "router_bgp_attributes", "/", "neighbor", "/", "neighbor_ips", "/", "neighbor_addr", "/", "update_source", "/", "sip_ipv4_a...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/__init__.py#L95-L116
train
Sets the sip - ipv4 address of the node.
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/__init__.py
update_source._set_ethernet_interface
def _set_ethernet_interface(self, v, load=False): """ Setter method for ethernet_interface, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/ethernet_interface (container) If this variable is read-only (config: false) in the ...
python
def _set_ethernet_interface(self, v, load=False): """ Setter method for ethernet_interface, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/ethernet_interface (container) If this variable is read-only (config: false) in the ...
[ "def", "_set_ethernet_interface", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ","...
Setter method for ethernet_interface, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/ethernet_interface (container) If this variable is read-only (config: false) in the source YANG file, then _set_ethernet_interface is considered a...
[ "Setter", "method", "for", "ethernet_interface", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "router", "/", "router_bgp", "/", "router_bgp_attributes", "/", "neighbor", "/", "neighbor_ips", "/", "neighbor_addr", "/", "update_source", "/", "ethernet...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/__init__.py#L128-L149
train
Set ethernet_interface.
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/__init__.py
update_source._set_loopback
def _set_loopback(self, v, load=False): """ Setter method for loopback, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/loopback (loopback-interface) If this variable is read-only (config: false) in the source YANG file, the...
python
def _set_loopback(self, v, load=False): """ Setter method for loopback, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/loopback (loopback-interface) If this variable is read-only (config: false) in the source YANG file, the...
[ "def", "_set_loopback", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for loopback, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/loopback (loopback-interface) If this variable is read-only (config: false) in the source YANG file, then _set_loopback is considered as a private metho...
[ "Setter", "method", "for", "loopback", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "router", "/", "router_bgp", "/", "router_bgp_attributes", "/", "neighbor", "/", "neighbor_ips", "/", "neighbor_addr", "/", "update_source", "/", "loopback", "(", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/__init__.py#L161-L182
train
Sets the loopback of the BGP neighbor.
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/__init__.py
update_source._set_ve_interface
def _set_ve_interface(self, v, load=False): """ Setter method for ve_interface, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/ve_interface (interface:ve-type) If this variable is read-only (config: false) in the source YAN...
python
def _set_ve_interface(self, v, load=False): """ Setter method for ve_interface, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/ve_interface (interface:ve-type) If this variable is read-only (config: false) in the source YAN...
[ "def", "_set_ve_interface", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for ve_interface, mapped from YANG variable /rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/ve_interface (interface:ve-type) If this variable is read-only (config: false) in the source YANG file, then _set_ve_interface is considered as a privat...
[ "Setter", "method", "for", "ve_interface", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "router", "/", "router_bgp", "/", "router_bgp_attributes", "/", "neighbor", "/", "neighbor_ips", "/", "neighbor_addr", "/", "update_source", "/", "ve_interface",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/router_bgp/router_bgp_attributes/neighbor/neighbor_ips/neighbor_addr/update_source/__init__.py#L194-L215
train
Sets the VE interface for the BGP neighbor.
idlesign/steampak
steampak/libsteam/resources/overlay.py
Overlay.activate
def activate(self, page=None): """Activates overlay with browser, optionally opened at a given page. :param str page: Overlay page alias (see OVERLAY_PAGE_*) or a custom URL. """ page = page or '' if '://' in page: self._iface.activate_overlay_url(page)...
python
def activate(self, page=None): """Activates overlay with browser, optionally opened at a given page. :param str page: Overlay page alias (see OVERLAY_PAGE_*) or a custom URL. """ page = page or '' if '://' in page: self._iface.activate_overlay_url(page)...
[ "def", "activate", "(", "self", ",", "page", "=", "None", ")", ":", "page", "=", "page", "or", "''", "if", "'://'", "in", "page", ":", "self", ".", "_iface", ".", "activate_overlay_url", "(", "page", ")", "else", ":", "self", ".", "_iface", ".", "a...
Activates overlay with browser, optionally opened at a given page. :param str page: Overlay page alias (see OVERLAY_PAGE_*) or a custom URL.
[ "Activates", "overlay", "with", "browser", "optionally", "opened", "at", "a", "given", "page", "." ]
cb3f2c737e272b0360802d947e388df7e34f50f3
https://github.com/idlesign/steampak/blob/cb3f2c737e272b0360802d947e388df7e34f50f3/steampak/libsteam/resources/overlay.py#L30-L43
train
Activates overlay with browser optionally opened at a given page.
drslump/pyshould
pyshould/dsl.py
any_of
def any_of(value, *args): """ At least one of the items in value should match """ if len(args): value = (value,) + args return ExpectationAny(value)
python
def any_of(value, *args): """ At least one of the items in value should match """ if len(args): value = (value,) + args return ExpectationAny(value)
[ "def", "any_of", "(", "value", ",", "*", "args", ")", ":", "if", "len", "(", "args", ")", ":", "value", "=", "(", "value", ",", ")", "+", "args", "return", "ExpectationAny", "(", "value", ")" ]
At least one of the items in value should match
[ "At", "least", "one", "of", "the", "items", "in", "value", "should", "match" ]
7210859d4c84cfbaa64f91b30c2a541aea788ddf
https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/dsl.py#L33-L39
train
Expectation that at least one of the items in value should match
drslump/pyshould
pyshould/dsl.py
all_of
def all_of(value, *args): """ All the items in value should match """ if len(args): value = (value,) + args return ExpectationAll(value)
python
def all_of(value, *args): """ All the items in value should match """ if len(args): value = (value,) + args return ExpectationAll(value)
[ "def", "all_of", "(", "value", ",", "*", "args", ")", ":", "if", "len", "(", "args", ")", ":", "value", "=", "(", "value", ",", ")", "+", "args", "return", "ExpectationAll", "(", "value", ")" ]
All the items in value should match
[ "All", "the", "items", "in", "value", "should", "match" ]
7210859d4c84cfbaa64f91b30c2a541aea788ddf
https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/dsl.py#L42-L48
train
All the items in value should match all the items in args
drslump/pyshould
pyshould/dsl.py
none_of
def none_of(value, *args): """ None of the items in value should match """ if len(args): value = (value,) + args return ExpectationNone(value)
python
def none_of(value, *args): """ None of the items in value should match """ if len(args): value = (value,) + args return ExpectationNone(value)
[ "def", "none_of", "(", "value", ",", "*", "args", ")", ":", "if", "len", "(", "args", ")", ":", "value", "=", "(", "value", ",", ")", "+", "args", "return", "ExpectationNone", "(", "value", ")" ]
None of the items in value should match
[ "None", "of", "the", "items", "in", "value", "should", "match" ]
7210859d4c84cfbaa64f91b30c2a541aea788ddf
https://github.com/drslump/pyshould/blob/7210859d4c84cfbaa64f91b30c2a541aea788ddf/pyshould/dsl.py#L51-L57
train
Expectation None of the items in value should match
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/system_monitor/__init__.py
system_monitor._set_sfp
def _set_sfp(self, v, load=False): """ Setter method for sfp, mapped from YANG variable /rbridge_id/system_monitor/sfp (container) If this variable is read-only (config: false) in the source YANG file, then _set_sfp is considered as a private method. Backends looking to populate this variable should...
python
def _set_sfp(self, v, load=False): """ Setter method for sfp, mapped from YANG variable /rbridge_id/system_monitor/sfp (container) If this variable is read-only (config: false) in the source YANG file, then _set_sfp is considered as a private method. Backends looking to populate this variable should...
[ "def", "_set_sfp", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", "...
Setter method for sfp, mapped from YANG variable /rbridge_id/system_monitor/sfp (container) If this variable is read-only (config: false) in the source YANG file, then _set_sfp is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_sfp() direc...
[ "Setter", "method", "for", "sfp", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "system_monitor", "/", "sfp", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "sour...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/system_monitor/__init__.py#L240-L261
train
Sets the value of the sfp property.
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/route_map/content/set_/ipv6/next_vrf/__init__.py
next_vrf._set_next_vrf_list
def _set_next_vrf_list(self, v, load=False): """ Setter method for next_vrf_list, mapped from YANG variable /rbridge_id/route_map/content/set/ipv6/next_vrf/next_vrf_list (list) If this variable is read-only (config: false) in the source YANG file, then _set_next_vrf_list is considered as a private m...
python
def _set_next_vrf_list(self, v, load=False): """ Setter method for next_vrf_list, mapped from YANG variable /rbridge_id/route_map/content/set/ipv6/next_vrf/next_vrf_list (list) If this variable is read-only (config: false) in the source YANG file, then _set_next_vrf_list is considered as a private m...
[ "def", "_set_next_vrf_list", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for next_vrf_list, mapped from YANG variable /rbridge_id/route_map/content/set/ipv6/next_vrf/next_vrf_list (list) If this variable is read-only (config: false) in the source YANG file, then _set_next_vrf_list is considered as a private method. Backends looking to populate this variable should ...
[ "Setter", "method", "for", "next_vrf_list", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "route_map", "/", "content", "/", "set", "/", "ipv6", "/", "next_vrf", "/", "next_vrf_list", "(", "list", ")", "If", "this", "variable", "is", "read", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/route_map/content/set_/ipv6/next_vrf/__init__.py#L92-L113
train
Set the value of next_vrf_list in the vrf list.
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_hardware_rpc/__init__.py
brocade_hardware._set_get_flexports
def _set_get_flexports(self, v, load=False): """ Setter method for get_flexports, mapped from YANG variable /brocade_hardware_rpc/get_flexports (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_flexports is considered as a private method. Backends looking to ...
python
def _set_get_flexports(self, v, load=False): """ Setter method for get_flexports, mapped from YANG variable /brocade_hardware_rpc/get_flexports (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_flexports is considered as a private method. Backends looking to ...
[ "def", "_set_get_flexports", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for get_flexports, mapped from YANG variable /brocade_hardware_rpc/get_flexports (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_get_flexports is considered as a private method. Backends looking to populate this variable should do so via calling thisO...
[ "Setter", "method", "for", "get_flexports", "mapped", "from", "YANG", "variable", "/", "brocade_hardware_rpc", "/", "get_flexports", "(", "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_hardware_rpc/__init__.py#L96-L117
train
Sets the get_flexports variable to v.
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_interface_ext_rpc/get_media_detail/output/interface/qsfpp/__init__.py
qsfpp._set_encoding
def _set_encoding(self, v, load=False): """ Setter method for encoding, mapped from YANG variable /brocade_interface_ext_rpc/get_media_detail/output/interface/qsfpp/encoding (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_encoding is considered as a private...
python
def _set_encoding(self, v, load=False): """ Setter method for encoding, mapped from YANG variable /brocade_interface_ext_rpc/get_media_detail/output/interface/qsfpp/encoding (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_encoding is considered as a private...
[ "def", "_set_encoding", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for encoding, mapped from YANG variable /brocade_interface_ext_rpc/get_media_detail/output/interface/qsfpp/encoding (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_encoding is considered as a private method. Backends looking to populate this varia...
[ "Setter", "method", "for", "encoding", "mapped", "from", "YANG", "variable", "/", "brocade_interface_ext_rpc", "/", "get_media_detail", "/", "output", "/", "interface", "/", "qsfpp", "/", "encoding", "(", "enumeration", ")", "If", "this", "variable", "is", "read...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_interface_ext_rpc/get_media_detail/output/interface/qsfpp/__init__.py#L186-L210
train
Sets the encoding of the
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_interface_ext_rpc/get_media_detail/output/interface/qsfpp/__init__.py
qsfpp._set_distance
def _set_distance(self, v, load=False): """ Setter method for distance, mapped from YANG variable /brocade_interface_ext_rpc/get_media_detail/output/interface/qsfpp/distance (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_distance is considered as a private...
python
def _set_distance(self, v, load=False): """ Setter method for distance, mapped from YANG variable /brocade_interface_ext_rpc/get_media_detail/output/interface/qsfpp/distance (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_distance is considered as a private...
[ "def", "_set_distance", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for distance, mapped from YANG variable /brocade_interface_ext_rpc/get_media_detail/output/interface/qsfpp/distance (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_distance is considered as a private method. Backends looking to populate this varia...
[ "Setter", "method", "for", "distance", "mapped", "from", "YANG", "variable", "/", "brocade_interface_ext_rpc", "/", "get_media_detail", "/", "output", "/", "interface", "/", "qsfpp", "/", "distance", "(", "enumeration", ")", "If", "this", "variable", "is", "read...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_interface_ext_rpc/get_media_detail/output/interface/qsfpp/__init__.py#L370-L391
train
Sets the distance of the
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_interface_ext_rpc/get_media_detail/output/interface/qsfpp/__init__.py
qsfpp._set_media_form_factor
def _set_media_form_factor(self, v, load=False): """ Setter method for media_form_factor, mapped from YANG variable /brocade_interface_ext_rpc/get_media_detail/output/interface/qsfpp/media_form_factor (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_media_fo...
python
def _set_media_form_factor(self, v, load=False): """ Setter method for media_form_factor, mapped from YANG variable /brocade_interface_ext_rpc/get_media_detail/output/interface/qsfpp/media_form_factor (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_media_fo...
[ "def", "_set_media_form_factor", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",",...
Setter method for media_form_factor, mapped from YANG variable /brocade_interface_ext_rpc/get_media_detail/output/interface/qsfpp/media_form_factor (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_media_form_factor is considered as a private method. Backends loo...
[ "Setter", "method", "for", "media_form_factor", "mapped", "from", "YANG", "variable", "/", "brocade_interface_ext_rpc", "/", "get_media_detail", "/", "output", "/", "interface", "/", "qsfpp", "/", "media_form_factor", "(", "enumeration", ")", "If", "this", "variable...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_interface_ext_rpc/get_media_detail/output/interface/qsfpp/__init__.py#L403-L424
train
Sets the media form factor for the order of the media.
StackStorm/pybind
pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/bfd/bfd_sub_cmds/__init__.py
bfd_sub_cmds._set_bfd_min_tx
def _set_bfd_min_tx(self, v, load=False): """ Setter method for bfd_min_tx, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/bfd/bfd_sub_cmds/bfd_min_tx (container) If this variable is read-only (config: false) in the source YANG file, then _set_bfd_min_tx is considered as a private ...
python
def _set_bfd_min_tx(self, v, load=False): """ Setter method for bfd_min_tx, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/bfd/bfd_sub_cmds/bfd_min_tx (container) If this variable is read-only (config: false) in the source YANG file, then _set_bfd_min_tx is considered as a private ...
[ "def", "_set_bfd_min_tx", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for bfd_min_tx, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/bfd/bfd_sub_cmds/bfd_min_tx (container) If this variable is read-only (config: false) in the source YANG file, then _set_bfd_min_tx is considered as a private method. Backends looking to populate this variable ...
[ "Setter", "method", "for", "bfd_min_tx", "mapped", "from", "YANG", "variable", "/", "mpls_config", "/", "router", "/", "mpls", "/", "mpls_cmds_holder", "/", "bfd", "/", "bfd_sub_cmds", "/", "bfd_min_tx", "(", "container", ")", "If", "this", "variable", "is", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/mpls_config/router/mpls/mpls_cmds_holder/bfd/bfd_sub_cmds/__init__.py#L92-L113
train
Sets the minimum TX rate for control packets.
StackStorm/pybind
pybind/slxos/v17r_2_00/keychain/key/__init__.py
key._set_key_algorithm
def _set_key_algorithm(self, v, load=False): """ Setter method for key_algorithm, mapped from YANG variable /keychain/key/key_algorithm (key_algo) If this variable is read-only (config: false) in the source YANG file, then _set_key_algorithm is considered as a private method. Backends looking to pop...
python
def _set_key_algorithm(self, v, load=False): """ Setter method for key_algorithm, mapped from YANG variable /keychain/key/key_algorithm (key_algo) If this variable is read-only (config: false) in the source YANG file, then _set_key_algorithm is considered as a private method. Backends looking to pop...
[ "def", "_set_key_algorithm", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for key_algorithm, mapped from YANG variable /keychain/key/key_algorithm (key_algo) If this variable is read-only (config: false) in the source YANG file, then _set_key_algorithm is considered as a private method. Backends looking to populate this variable should do so via calling thisObj....
[ "Setter", "method", "for", "key_algorithm", "mapped", "from", "YANG", "variable", "/", "keychain", "/", "key", "/", "key_algorithm", "(", "key_algo", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/keychain/key/__init__.py#L200-L221
train
Sets the key algorithm for the
StackStorm/pybind
pybind/nos/v6_0_2f/qos/map_/__init__.py
map_._set_dscp_mutation
def _set_dscp_mutation(self, v, load=False): """ Setter method for dscp_mutation, mapped from YANG variable /qos/map/dscp_mutation (list) If this variable is read-only (config: false) in the source YANG file, then _set_dscp_mutation is considered as a private method. Backends looking to populate thi...
python
def _set_dscp_mutation(self, v, load=False): """ Setter method for dscp_mutation, mapped from YANG variable /qos/map/dscp_mutation (list) If this variable is read-only (config: false) in the source YANG file, then _set_dscp_mutation is considered as a private method. Backends looking to populate thi...
[ "def", "_set_dscp_mutation", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for dscp_mutation, mapped from YANG variable /qos/map/dscp_mutation (list) If this variable is read-only (config: false) in the source YANG file, then _set_dscp_mutation is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_dscp...
[ "Setter", "method", "for", "dscp_mutation", "mapped", "from", "YANG", "variable", "/", "qos", "/", "map", "/", "dscp_mutation", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/qos/map_/__init__.py#L100-L121
train
Sets the value of the dscp_mutation variable.
StackStorm/pybind
pybind/nos/v6_0_2f/qos/map_/__init__.py
map_._set_dscp_cos
def _set_dscp_cos(self, v, load=False): """ Setter method for dscp_cos, mapped from YANG variable /qos/map/dscp_cos (list) If this variable is read-only (config: false) in the source YANG file, then _set_dscp_cos is considered as a private method. Backends looking to populate this variable should ...
python
def _set_dscp_cos(self, v, load=False): """ Setter method for dscp_cos, mapped from YANG variable /qos/map/dscp_cos (list) If this variable is read-only (config: false) in the source YANG file, then _set_dscp_cos is considered as a private method. Backends looking to populate this variable should ...
[ "def", "_set_dscp_cos", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for dscp_cos, mapped from YANG variable /qos/map/dscp_cos (list) If this variable is read-only (config: false) in the source YANG file, then _set_dscp_cos is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_dscp_cos() directly...
[ "Setter", "method", "for", "dscp_cos", "mapped", "from", "YANG", "variable", "/", "qos", "/", "map", "/", "dscp_cos", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/qos/map_/__init__.py#L166-L187
train
Sets the value of the DSCS_COS map property.
StackStorm/pybind
pybind/nos/v6_0_2f/firmware/download/__init__.py
download._set_logical_chassis
def _set_logical_chassis(self, v, load=False): """ Setter method for logical_chassis, mapped from YANG variable /firmware/download/logical_chassis (container) If this variable is read-only (config: false) in the source YANG file, then _set_logical_chassis is considered as a private method. Backends ...
python
def _set_logical_chassis(self, v, load=False): """ Setter method for logical_chassis, mapped from YANG variable /firmware/download/logical_chassis (container) If this variable is read-only (config: false) in the source YANG file, then _set_logical_chassis is considered as a private method. Backends ...
[ "def", "_set_logical_chassis", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for logical_chassis, mapped from YANG variable /firmware/download/logical_chassis (container) If this variable is read-only (config: false) in the source YANG file, then _set_logical_chassis is considered as a private method. Backends looking to populate this variable should do so via call...
[ "Setter", "method", "for", "logical_chassis", "mapped", "from", "YANG", "variable", "/", "firmware", "/", "download", "/", "logical_chassis", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/firmware/download/__init__.py#L92-L113
train
Sets the logical chassis.
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/fcoe_config/__init__.py
fcoe_config._set_fcoe_enode_fabric_map
def _set_fcoe_enode_fabric_map(self, v, load=False): """ Setter method for fcoe_enode_fabric_map, mapped from YANG variable /rbridge_id/fcoe_config/fcoe_enode_fabric_map (list) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe_enode_fabric_map is considered as a priva...
python
def _set_fcoe_enode_fabric_map(self, v, load=False): """ Setter method for fcoe_enode_fabric_map, mapped from YANG variable /rbridge_id/fcoe_config/fcoe_enode_fabric_map (list) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe_enode_fabric_map is considered as a priva...
[ "def", "_set_fcoe_enode_fabric_map", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ...
Setter method for fcoe_enode_fabric_map, mapped from YANG variable /rbridge_id/fcoe_config/fcoe_enode_fabric_map (list) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe_enode_fabric_map is considered as a private method. Backends looking to populate this variable should ...
[ "Setter", "method", "for", "fcoe_enode_fabric_map", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "fcoe_config", "/", "fcoe_enode_fabric_map", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/fcoe_config/__init__.py#L98-L121
train
Set the FCoE Fabric - map for the node.
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/fcoe_config/__init__.py
fcoe_config._set_fcoe_max_enode
def _set_fcoe_max_enode(self, v, load=False): """ Setter method for fcoe_max_enode, mapped from YANG variable /rbridge_id/fcoe_config/fcoe_max_enode (fcoe-max-enodes-per-rbridge-type) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe_max_enode is considered as a priva...
python
def _set_fcoe_max_enode(self, v, load=False): """ Setter method for fcoe_max_enode, mapped from YANG variable /rbridge_id/fcoe_config/fcoe_max_enode (fcoe-max-enodes-per-rbridge-type) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe_max_enode is considered as a priva...
[ "def", "_set_fcoe_max_enode", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for fcoe_max_enode, mapped from YANG variable /rbridge_id/fcoe_config/fcoe_max_enode (fcoe-max-enodes-per-rbridge-type) If this variable is read-only (config: false) in the source YANG file, then _set_fcoe_max_enode is considered as a private method. Backends looking to populate this variable ...
[ "Setter", "method", "for", "fcoe_max_enode", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "fcoe_config", "/", "fcoe_max_enode", "(", "fcoe", "-", "max", "-", "enodes", "-", "per", "-", "rbridge", "-", "type", ")", "If", "this", "variable", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/fcoe_config/__init__.py#L135-L158
train
Set the max enodes for the FCoE Fabric - map
StackStorm/pybind
pybind/nos/v6_0_2f/policy_map/class_/__init__.py
class_._set_police
def _set_police(self, v, load=False): """ Setter method for police, mapped from YANG variable /policy_map/class/police (container) If this variable is read-only (config: false) in the source YANG file, then _set_police is considered as a private method. Backends looking to populate this variable sho...
python
def _set_police(self, v, load=False): """ Setter method for police, mapped from YANG variable /policy_map/class/police (container) If this variable is read-only (config: false) in the source YANG file, then _set_police is considered as a private method. Backends looking to populate this variable sho...
[ "def", "_set_police", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for police, mapped from YANG variable /policy_map/class/police (container) If this variable is read-only (config: false) in the source YANG file, then _set_police is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_police() di...
[ "Setter", "method", "for", "police", "mapped", "from", "YANG", "variable", "/", "policy_map", "/", "class", "/", "police", "(", "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/policy_map/class_/__init__.py#L143-L164
train
Set the police property of the
StackStorm/pybind
pybind/nos/v6_0_2f/policy_map/class_/__init__.py
class_._set_shape
def _set_shape(self, v, load=False): """ Setter method for shape, mapped from YANG variable /policy_map/class/shape (container) If this variable is read-only (config: false) in the source YANG file, then _set_shape is considered as a private method. Backends looking to populate this variable should ...
python
def _set_shape(self, v, load=False): """ Setter method for shape, mapped from YANG variable /policy_map/class/shape (container) If this variable is read-only (config: false) in the source YANG file, then _set_shape is considered as a private method. Backends looking to populate this variable should ...
[ "def", "_set_shape", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for shape, mapped from YANG variable /policy_map/class/shape (container) If this variable is read-only (config: false) in the source YANG file, then _set_shape is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_shape() direct...
[ "Setter", "method", "for", "shape", "mapped", "from", "YANG", "variable", "/", "policy_map", "/", "class", "/", "shape", "(", "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/policy_map/class_/__init__.py#L279-L300
train
Sets the shape of the
StackStorm/pybind
pybind/nos/v6_0_2f/policy_map/class_/__init__.py
class_._set_scheduler
def _set_scheduler(self, v, load=False): """ Setter method for scheduler, mapped from YANG variable /policy_map/class/scheduler (container) If this variable is read-only (config: false) in the source YANG file, then _set_scheduler is considered as a private method. Backends looking to populate this ...
python
def _set_scheduler(self, v, load=False): """ Setter method for scheduler, mapped from YANG variable /policy_map/class/scheduler (container) If this variable is read-only (config: false) in the source YANG file, then _set_scheduler is considered as a private method. Backends looking to populate this ...
[ "def", "_set_scheduler", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base...
Setter method for scheduler, mapped from YANG variable /policy_map/class/scheduler (container) If this variable is read-only (config: false) in the source YANG file, then _set_scheduler is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_sc...
[ "Setter", "method", "for", "scheduler", "mapped", "from", "YANG", "variable", "/", "policy_map", "/", "class", "/", "scheduler", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "s...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/policy_map/class_/__init__.py#L312-L333
train
Set the scheduler for the
StackStorm/pybind
pybind/nos/v6_0_2f/policy_map/class_/__init__.py
class_._set_priority_mapping_table
def _set_priority_mapping_table(self, v, load=False): """ Setter method for priority_mapping_table, mapped from YANG variable /policy_map/class/priority_mapping_table (container) If this variable is read-only (config: false) in the source YANG file, then _set_priority_mapping_table is considered as a pr...
python
def _set_priority_mapping_table(self, v, load=False): """ Setter method for priority_mapping_table, mapped from YANG variable /policy_map/class/priority_mapping_table (container) If this variable is read-only (config: false) in the source YANG file, then _set_priority_mapping_table is considered as a pr...
[ "def", "_set_priority_mapping_table", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ...
Setter method for priority_mapping_table, mapped from YANG variable /policy_map/class/priority_mapping_table (container) If this variable is read-only (config: false) in the source YANG file, then _set_priority_mapping_table is considered as a private method. Backends looking to populate this variable shoul...
[ "Setter", "method", "for", "priority_mapping_table", "mapped", "from", "YANG", "variable", "/", "policy_map", "/", "class", "/", "priority_mapping_table", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/policy_map/class_/__init__.py#L345-L366
train
Sets the priority mapping table for the cluster.
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/secpolicy/__init__.py
secpolicy._set_defined_policy
def _set_defined_policy(self, v, load=False): """ Setter method for defined_policy, mapped from YANG variable /rbridge_id/secpolicy/defined_policy (container) If this variable is read-only (config: false) in the source YANG file, then _set_defined_policy is considered as a private method. Backends l...
python
def _set_defined_policy(self, v, load=False): """ Setter method for defined_policy, mapped from YANG variable /rbridge_id/secpolicy/defined_policy (container) If this variable is read-only (config: false) in the source YANG file, then _set_defined_policy is considered as a private method. Backends l...
[ "def", "_set_defined_policy", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for defined_policy, mapped from YANG variable /rbridge_id/secpolicy/defined_policy (container) If this variable is read-only (config: false) in the source YANG file, then _set_defined_policy is considered as a private method. Backends looking to populate this variable should do so via call...
[ "Setter", "method", "for", "defined_policy", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "secpolicy", "/", "defined_policy", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/secpolicy/__init__.py#L96-L119
train
Sets the defined policy for the
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/secpolicy/__init__.py
secpolicy._set_active_policy
def _set_active_policy(self, v, load=False): """ Setter method for active_policy, mapped from YANG variable /rbridge_id/secpolicy/active_policy (container) If this variable is read-only (config: false) in the source YANG file, then _set_active_policy is considered as a private method. Backends looki...
python
def _set_active_policy(self, v, load=False): """ Setter method for active_policy, mapped from YANG variable /rbridge_id/secpolicy/active_policy (container) If this variable is read-only (config: false) in the source YANG file, then _set_active_policy is considered as a private method. Backends looki...
[ "def", "_set_active_policy", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for active_policy, mapped from YANG variable /rbridge_id/secpolicy/active_policy (container) If this variable is read-only (config: false) in the source YANG file, then _set_active_policy is considered as a private method. Backends looking to populate this variable should do so via calling...
[ "Setter", "method", "for", "active_policy", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "secpolicy", "/", "active_policy", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/secpolicy/__init__.py#L133-L156
train
Sets the active policy for the
StackStorm/pybind
pybind/slxos/v17s_1_02/interface/ethernet/qos/rx_queue/multicast/__init__.py
multicast._set_queue_size
def _set_queue_size(self, v, load=False): """ Setter method for queue_size, mapped from YANG variable /interface/ethernet/qos/rx_queue/multicast/queue_size (list) If this variable is read-only (config: false) in the source YANG file, then _set_queue_size is considered as a private method. Backends l...
python
def _set_queue_size(self, v, load=False): """ Setter method for queue_size, mapped from YANG variable /interface/ethernet/qos/rx_queue/multicast/queue_size (list) If this variable is read-only (config: false) in the source YANG file, then _set_queue_size is considered as a private method. Backends l...
[ "def", "_set_queue_size", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for queue_size, mapped from YANG variable /interface/ethernet/qos/rx_queue/multicast/queue_size (list) If this variable is read-only (config: false) in the source YANG file, then _set_queue_size is considered as a private method. Backends looking to populate this variable should do so via ...
[ "Setter", "method", "for", "queue_size", "mapped", "from", "YANG", "variable", "/", "interface", "/", "ethernet", "/", "qos", "/", "rx_queue", "/", "multicast", "/", "queue_size", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/interface/ethernet/qos/rx_queue/multicast/__init__.py#L160-L181
train
Sets the queue size of the based on traffic class.
StackStorm/pybind
pybind/slxos/v17s_1_02/cpu_interface_state/__init__.py
cpu_interface_state._set_gos_stats
def _set_gos_stats(self, v, load=False): """ Setter method for gos_stats, mapped from YANG variable /cpu_interface_state/gos_stats (container) If this variable is read-only (config: false) in the source YANG file, then _set_gos_stats is considered as a private method. Backends looking to populate th...
python
def _set_gos_stats(self, v, load=False): """ Setter method for gos_stats, mapped from YANG variable /cpu_interface_state/gos_stats (container) If this variable is read-only (config: false) in the source YANG file, then _set_gos_stats is considered as a private method. Backends looking to populate th...
[ "def", "_set_gos_stats", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base...
Setter method for gos_stats, mapped from YANG variable /cpu_interface_state/gos_stats (container) If this variable is read-only (config: false) in the source YANG file, then _set_gos_stats is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set...
[ "Setter", "method", "for", "gos_stats", "mapped", "from", "YANG", "variable", "/", "cpu_interface_state", "/", "gos_stats", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/cpu_interface_state/__init__.py#L139-L160
train
Sets the values of the terms in the order they appear in the order they appear.
StackStorm/pybind
pybind/slxos/v17s_1_02/cpu_interface_state/__init__.py
cpu_interface_state._set_host_stats
def _set_host_stats(self, v, load=False): """ Setter method for host_stats, mapped from YANG variable /cpu_interface_state/host_stats (container) If this variable is read-only (config: false) in the source YANG file, then _set_host_stats is considered as a private method. Backends looking to populat...
python
def _set_host_stats(self, v, load=False): """ Setter method for host_stats, mapped from YANG variable /cpu_interface_state/host_stats (container) If this variable is read-only (config: false) in the source YANG file, then _set_host_stats is considered as a private method. Backends looking to populat...
[ "def", "_set_host_stats", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for host_stats, mapped from YANG variable /cpu_interface_state/host_stats (container) If this variable is read-only (config: false) in the source YANG file, then _set_host_stats is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._...
[ "Setter", "method", "for", "host_stats", "mapped", "from", "YANG", "variable", "/", "cpu_interface_state", "/", "host_stats", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/cpu_interface_state/__init__.py#L172-L193
train
Sets the value of the host_stats property in the
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/router/ospf/permit/__init__.py
permit._set_redistribute
def _set_redistribute(self, v, load=False): """ Setter method for redistribute, mapped from YANG variable /rbridge_id/router/ospf/permit/redistribute (list) If this variable is read-only (config: false) in the source YANG file, then _set_redistribute is considered as a private method. Backends looki...
python
def _set_redistribute(self, v, load=False): """ Setter method for redistribute, mapped from YANG variable /rbridge_id/router/ospf/permit/redistribute (list) If this variable is read-only (config: false) in the source YANG file, then _set_redistribute is considered as a private method. Backends looki...
[ "def", "_set_redistribute", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for redistribute, mapped from YANG variable /rbridge_id/router/ospf/permit/redistribute (list) If this variable is read-only (config: false) in the source YANG file, then _set_redistribute is considered as a private method. Backends looking to populate this variable should do so via callin...
[ "Setter", "method", "for", "redistribute", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "router", "/", "ospf", "/", "permit", "/", "redistribute", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/router/ospf/permit/__init__.py#L92-L113
train
Set the redistribute property of the
StackStorm/pybind
pybind/slxos/v17s_1_02/qos_mpls/map_apply/__init__.py
map_apply._set_apply_exp_traffic_class_map_name
def _set_apply_exp_traffic_class_map_name(self, v, load=False): """ Setter method for apply_exp_traffic_class_map_name, mapped from YANG variable /qos_mpls/map_apply/apply_exp_traffic_class_map_name (container) If this variable is read-only (config: false) in the source YANG file, then _set_apply_exp_tr...
python
def _set_apply_exp_traffic_class_map_name(self, v, load=False): """ Setter method for apply_exp_traffic_class_map_name, mapped from YANG variable /qos_mpls/map_apply/apply_exp_traffic_class_map_name (container) If this variable is read-only (config: false) in the source YANG file, then _set_apply_exp_tr...
[ "def", "_set_apply_exp_traffic_class_map_name", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "("...
Setter method for apply_exp_traffic_class_map_name, mapped from YANG variable /qos_mpls/map_apply/apply_exp_traffic_class_map_name (container) If this variable is read-only (config: false) in the source YANG file, then _set_apply_exp_traffic_class_map_name is considered as a private method. Backends looking...
[ "Setter", "method", "for", "apply_exp_traffic_class_map_name", "mapped", "from", "YANG", "variable", "/", "qos_mpls", "/", "map_apply", "/", "apply_exp_traffic_class_map_name", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos_mpls/map_apply/__init__.py#L100-L121
train
Sets the name of the exp - traffic class map.
StackStorm/pybind
pybind/slxos/v17s_1_02/qos_mpls/map_apply/__init__.py
map_apply._set_apply_traffic_class_exp_map_name
def _set_apply_traffic_class_exp_map_name(self, v, load=False): """ Setter method for apply_traffic_class_exp_map_name, mapped from YANG variable /qos_mpls/map_apply/apply_traffic_class_exp_map_name (container) If this variable is read-only (config: false) in the source YANG file, then _set_apply_traffi...
python
def _set_apply_traffic_class_exp_map_name(self, v, load=False): """ Setter method for apply_traffic_class_exp_map_name, mapped from YANG variable /qos_mpls/map_apply/apply_traffic_class_exp_map_name (container) If this variable is read-only (config: false) in the source YANG file, then _set_apply_traffi...
[ "def", "_set_apply_traffic_class_exp_map_name", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "("...
Setter method for apply_traffic_class_exp_map_name, mapped from YANG variable /qos_mpls/map_apply/apply_traffic_class_exp_map_name (container) If this variable is read-only (config: false) in the source YANG file, then _set_apply_traffic_class_exp_map_name is considered as a private method. Backends looking...
[ "Setter", "method", "for", "apply_traffic_class_exp_map_name", "mapped", "from", "YANG", "variable", "/", "qos_mpls", "/", "map_apply", "/", "apply_traffic_class_exp_map_name", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos_mpls/map_apply/__init__.py#L133-L154
train
Sets the name of the traffic class exp map.
StackStorm/pybind
pybind/slxos/v17s_1_02/qos_mpls/map_apply/__init__.py
map_apply._set_apply_dscp_exp_map_name
def _set_apply_dscp_exp_map_name(self, v, load=False): """ Setter method for apply_dscp_exp_map_name, mapped from YANG variable /qos_mpls/map_apply/apply_dscp_exp_map_name (container) If this variable is read-only (config: false) in the source YANG file, then _set_apply_dscp_exp_map_name is considered a...
python
def _set_apply_dscp_exp_map_name(self, v, load=False): """ Setter method for apply_dscp_exp_map_name, mapped from YANG variable /qos_mpls/map_apply/apply_dscp_exp_map_name (container) If this variable is read-only (config: false) in the source YANG file, then _set_apply_dscp_exp_map_name is considered a...
[ "def", "_set_apply_dscp_exp_map_name", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ...
Setter method for apply_dscp_exp_map_name, mapped from YANG variable /qos_mpls/map_apply/apply_dscp_exp_map_name (container) If this variable is read-only (config: false) in the source YANG file, then _set_apply_dscp_exp_map_name is considered as a private method. Backends looking to populate this variable ...
[ "Setter", "method", "for", "apply_dscp_exp_map_name", "mapped", "from", "YANG", "variable", "/", "qos_mpls", "/", "map_apply", "/", "apply_dscp_exp_map_name", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos_mpls/map_apply/__init__.py#L166-L187
train
Sets the name of the dscp exp map.
StackStorm/pybind
pybind/slxos/v17s_1_02/qos_mpls/map_apply/__init__.py
map_apply._set_apply_exp_dscp_map_name
def _set_apply_exp_dscp_map_name(self, v, load=False): """ Setter method for apply_exp_dscp_map_name, mapped from YANG variable /qos_mpls/map_apply/apply_exp_dscp_map_name (container) If this variable is read-only (config: false) in the source YANG file, then _set_apply_exp_dscp_map_name is considered a...
python
def _set_apply_exp_dscp_map_name(self, v, load=False): """ Setter method for apply_exp_dscp_map_name, mapped from YANG variable /qos_mpls/map_apply/apply_exp_dscp_map_name (container) If this variable is read-only (config: false) in the source YANG file, then _set_apply_exp_dscp_map_name is considered a...
[ "def", "_set_apply_exp_dscp_map_name", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ...
Setter method for apply_exp_dscp_map_name, mapped from YANG variable /qos_mpls/map_apply/apply_exp_dscp_map_name (container) If this variable is read-only (config: false) in the source YANG file, then _set_apply_exp_dscp_map_name is considered as a private method. Backends looking to populate this variable ...
[ "Setter", "method", "for", "apply_exp_dscp_map_name", "mapped", "from", "YANG", "variable", "/", "qos_mpls", "/", "map_apply", "/", "apply_exp_dscp_map_name", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos_mpls/map_apply/__init__.py#L199-L220
train
Sets the name of the exp - dscp map.
StackStorm/pybind
pybind/slxos/v17s_1_02/qos_mpls/map_apply/__init__.py
map_apply._set_apply_inexp_outexp_map_name
def _set_apply_inexp_outexp_map_name(self, v, load=False): """ Setter method for apply_inexp_outexp_map_name, mapped from YANG variable /qos_mpls/map_apply/apply_inexp_outexp_map_name (container) If this variable is read-only (config: false) in the source YANG file, then _set_apply_inexp_outexp_map_name...
python
def _set_apply_inexp_outexp_map_name(self, v, load=False): """ Setter method for apply_inexp_outexp_map_name, mapped from YANG variable /qos_mpls/map_apply/apply_inexp_outexp_map_name (container) If this variable is read-only (config: false) in the source YANG file, then _set_apply_inexp_outexp_map_name...
[ "def", "_set_apply_inexp_outexp_map_name", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "...
Setter method for apply_inexp_outexp_map_name, mapped from YANG variable /qos_mpls/map_apply/apply_inexp_outexp_map_name (container) If this variable is read-only (config: false) in the source YANG file, then _set_apply_inexp_outexp_map_name is considered as a private method. Backends looking to populate th...
[ "Setter", "method", "for", "apply_inexp_outexp_map_name", "mapped", "from", "YANG", "variable", "/", "qos_mpls", "/", "map_apply", "/", "apply_inexp_outexp_map_name", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/qos_mpls/map_apply/__init__.py#L232-L253
train
Sets the name of the apply - inexp - outexp map.
BD2KGenomics/protect
src/protect/qc/rna.py
run_cutadapt
def run_cutadapt(job, fastqs, univ_options, cutadapt_options): """ Runs cutadapt on the input RNA fastq files. :param list fastqs: List of fsIDs for input an RNA-Seq fastq pair :param dict univ_options: Dict of universal options used by almost all tools :param dict cutadapt_options: Options specifi...
python
def run_cutadapt(job, fastqs, univ_options, cutadapt_options): """ Runs cutadapt on the input RNA fastq files. :param list fastqs: List of fsIDs for input an RNA-Seq fastq pair :param dict univ_options: Dict of universal options used by almost all tools :param dict cutadapt_options: Options specifi...
[ "def", "run_cutadapt", "(", "job", ",", "fastqs", ",", "univ_options", ",", "cutadapt_options", ")", ":", "work_dir", "=", "os", ".", "getcwd", "(", ")", "input_files", "=", "{", "'rna_1.fastq'", ":", "fastqs", "[", "0", "]", ",", "'rna_2.fastq'", ":", "...
Runs cutadapt on the input RNA fastq files. :param list fastqs: List of fsIDs for input an RNA-Seq fastq pair :param dict univ_options: Dict of universal options used by almost all tools :param dict cutadapt_options: Options specific to cutadapt :return: List of fsIDs of cutadapted fastqs :rtype: l...
[ "Runs", "cutadapt", "on", "the", "input", "RNA", "fastq", "files", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/qc/rna.py#L29-L64
train
This function will run cutadapt on the input RNA - Seq fastq files.
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_firmware_rpc/dad_status/output/__init__.py
output._set_dad_last_state
def _set_dad_last_state(self, v, load=False): """ Setter method for dad_last_state, mapped from YANG variable /brocade_firmware_rpc/dad_status/output/dad_last_state (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_dad_last_state is considered as a private ...
python
def _set_dad_last_state(self, v, load=False): """ Setter method for dad_last_state, mapped from YANG variable /brocade_firmware_rpc/dad_status/output/dad_last_state (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_dad_last_state is considered as a private ...
[ "def", "_set_dad_last_state", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for dad_last_state, mapped from YANG variable /brocade_firmware_rpc/dad_status/output/dad_last_state (enumeration) If this variable is read-only (config: false) in the source YANG file, then _set_dad_last_state is considered as a private method. Backends looking to populate this variable shoul...
[ "Setter", "method", "for", "dad_last_state", "mapped", "from", "YANG", "variable", "/", "brocade_firmware_rpc", "/", "dad_status", "/", "output", "/", "dad_last_state", "(", "enumeration", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_firmware_rpc/dad_status/output/__init__.py#L93-L114
train
Sets the last state of the DADs in the current node.
StackStorm/pybind
pybind/nos/v7_2_0/interface/port_channel/ip/pim_intf_po_cont/pim_int_cmd/pim/__init__.py
pim._set_multinet
def _set_multinet(self, v, load=False): """ Setter method for multinet, mapped from YANG variable /interface/port_channel/ip/pim_intf_po_cont/pim_int_cmd/pim/multinet (container) If this variable is read-only (config: false) in the source YANG file, then _set_multinet is considered as a private meth...
python
def _set_multinet(self, v, load=False): """ Setter method for multinet, mapped from YANG variable /interface/port_channel/ip/pim_intf_po_cont/pim_int_cmd/pim/multinet (container) If this variable is read-only (config: false) in the source YANG file, then _set_multinet is considered as a private meth...
[ "def", "_set_multinet", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for multinet, mapped from YANG variable /interface/port_channel/ip/pim_intf_po_cont/pim_int_cmd/pim/multinet (container) If this variable is read-only (config: false) in the source YANG file, then _set_multinet is considered as a private method. Backends looking to populate this variable shoul...
[ "Setter", "method", "for", "multinet", "mapped", "from", "YANG", "variable", "/", "interface", "/", "port_channel", "/", "ip", "/", "pim_intf_po_cont", "/", "pim_int_cmd", "/", "pim", "/", "multinet", "(", "container", ")", "If", "this", "variable", "is", "r...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/interface/port_channel/ip/pim_intf_po_cont/pim_int_cmd/pim/__init__.py#L160-L181
train
Set the multinet value of the
StackStorm/pybind
pybind/nos/v6_0_2f/interface/fc_port/__init__.py
fc_port._set_fc_speed_cfg
def _set_fc_speed_cfg(self, v, load=False): """ Setter method for fc_speed_cfg, mapped from YANG variable /interface/fc_port/fc_speed_cfg (fc-speed-cfg-type) If this variable is read-only (config: false) in the source YANG file, then _set_fc_speed_cfg is considered as a private method. Backends look...
python
def _set_fc_speed_cfg(self, v, load=False): """ Setter method for fc_speed_cfg, mapped from YANG variable /interface/fc_port/fc_speed_cfg (fc-speed-cfg-type) If this variable is read-only (config: false) in the source YANG file, then _set_fc_speed_cfg is considered as a private method. Backends look...
[ "def", "_set_fc_speed_cfg", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for fc_speed_cfg, mapped from YANG variable /interface/fc_port/fc_speed_cfg (fc-speed-cfg-type) If this variable is read-only (config: false) in the source YANG file, then _set_fc_speed_cfg is considered as a private method. Backends looking to populate this variable should do so via calli...
[ "Setter", "method", "for", "fc_speed_cfg", "mapped", "from", "YANG", "variable", "/", "interface", "/", "fc_port", "/", "fc_speed_cfg", "(", "fc", "-", "speed", "-", "cfg", "-", "type", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "conf...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/fc_port/__init__.py#L149-L170
train
Sets the speed of the based on the fc - speed - cfg - type.
StackStorm/pybind
pybind/nos/v6_0_2f/interface/fc_port/__init__.py
fc_port._set_fill_word
def _set_fill_word(self, v, load=False): """ Setter method for fill_word, mapped from YANG variable /interface/fc_port/fill_word (fc-fillword-cfg-type) If this variable is read-only (config: false) in the source YANG file, then _set_fill_word is considered as a private method. Backends looking to po...
python
def _set_fill_word(self, v, load=False): """ Setter method for fill_word, mapped from YANG variable /interface/fc_port/fill_word (fc-fillword-cfg-type) If this variable is read-only (config: false) in the source YANG file, then _set_fill_word is considered as a private method. Backends looking to po...
[ "def", "_set_fill_word", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base...
Setter method for fill_word, mapped from YANG variable /interface/fc_port/fill_word (fc-fillword-cfg-type) If this variable is read-only (config: false) in the source YANG file, then _set_fill_word is considered as a private method. Backends looking to populate this variable should do so via calling thi...
[ "Setter", "method", "for", "fill_word", "mapped", "from", "YANG", "variable", "/", "interface", "/", "fc_port", "/", "fill_word", "(", "fc", "-", "fillword", "-", "cfg", "-", "type", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/fc_port/__init__.py#L182-L203
train
Sets the fill - word of the
StackStorm/pybind
pybind/nos/v6_0_2f/interface/fc_port/__init__.py
fc_port._set_long_distance
def _set_long_distance(self, v, load=False): """ Setter method for long_distance, mapped from YANG variable /interface/fc_port/long_distance (fc-long-distance-cfg-type) If this variable is read-only (config: false) in the source YANG file, then _set_long_distance is considered as a private method. B...
python
def _set_long_distance(self, v, load=False): """ Setter method for long_distance, mapped from YANG variable /interface/fc_port/long_distance (fc-long-distance-cfg-type) If this variable is read-only (config: false) in the source YANG file, then _set_long_distance is considered as a private method. B...
[ "def", "_set_long_distance", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for long_distance, mapped from YANG variable /interface/fc_port/long_distance (fc-long-distance-cfg-type) If this variable is read-only (config: false) in the source YANG file, then _set_long_distance is considered as a private method. Backends looking to populate this variable should do s...
[ "Setter", "method", "for", "long_distance", "mapped", "from", "YANG", "variable", "/", "interface", "/", "fc_port", "/", "long_distance", "(", "fc", "-", "long", "-", "distance", "-", "cfg", "-", "type", ")", "If", "this", "variable", "is", "read", "-", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/fc_port/__init__.py#L215-L236
train
Sets the long distance of the node.
StackStorm/pybind
pybind/nos/v6_0_2f/interface/fc_port/__init__.py
fc_port._set_vc_link_init
def _set_vc_link_init(self, v, load=False): """ Setter method for vc_link_init, mapped from YANG variable /interface/fc_port/vc_link_init (fc-vc-link-init-cfg-type) If this variable is read-only (config: false) in the source YANG file, then _set_vc_link_init is considered as a private method. Backen...
python
def _set_vc_link_init(self, v, load=False): """ Setter method for vc_link_init, mapped from YANG variable /interface/fc_port/vc_link_init (fc-vc-link-init-cfg-type) If this variable is read-only (config: false) in the source YANG file, then _set_vc_link_init is considered as a private method. Backen...
[ "def", "_set_vc_link_init", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for vc_link_init, mapped from YANG variable /interface/fc_port/vc_link_init (fc-vc-link-init-cfg-type) If this variable is read-only (config: false) in the source YANG file, then _set_vc_link_init is considered as a private method. Backends looking to populate this variable should do so vi...
[ "Setter", "method", "for", "vc_link_init", "mapped", "from", "YANG", "variable", "/", "interface", "/", "fc_port", "/", "vc_link_init", "(", "fc", "-", "vc", "-", "link", "-", "init", "-", "cfg", "-", "type", ")", "If", "this", "variable", "is", "read", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/fc_port/__init__.py#L248-L269
train
Sets the value of the VC Link Init field in the base node.
StackStorm/pybind
pybind/nos/v6_0_2f/interface/fc_port/__init__.py
fc_port._set_desire_distance
def _set_desire_distance(self, v, load=False): """ Setter method for desire_distance, mapped from YANG variable /interface/fc_port/desire_distance (desire-distance-type) If this variable is read-only (config: false) in the source YANG file, then _set_desire_distance is considered as a private method...
python
def _set_desire_distance(self, v, load=False): """ Setter method for desire_distance, mapped from YANG variable /interface/fc_port/desire_distance (desire-distance-type) If this variable is read-only (config: false) in the source YANG file, then _set_desire_distance is considered as a private method...
[ "def", "_set_desire_distance", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for desire_distance, mapped from YANG variable /interface/fc_port/desire_distance (desire-distance-type) If this variable is read-only (config: false) in the source YANG file, then _set_desire_distance is considered as a private method. Backends looking to populate this variable should do ...
[ "Setter", "method", "for", "desire_distance", "mapped", "from", "YANG", "variable", "/", "interface", "/", "fc_port", "/", "desire_distance", "(", "desire", "-", "distance", "-", "type", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/fc_port/__init__.py#L281-L302
train
Sets the desire distance of the node.
StackStorm/pybind
pybind/nos/v6_0_2f/interface/fc_port/__init__.py
fc_port._set_config_mode
def _set_config_mode(self, v, load=False): """ Setter method for config_mode, mapped from YANG variable /interface/fc_port/config_mode (interface-fc-config-mode-type) If this variable is read-only (config: false) in the source YANG file, then _set_config_mode is considered as a private method. Backe...
python
def _set_config_mode(self, v, load=False): """ Setter method for config_mode, mapped from YANG variable /interface/fc_port/config_mode (interface-fc-config-mode-type) If this variable is read-only (config: false) in the source YANG file, then _set_config_mode is considered as a private method. Backe...
[ "def", "_set_config_mode", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "ba...
Setter method for config_mode, mapped from YANG variable /interface/fc_port/config_mode (interface-fc-config-mode-type) If this variable is read-only (config: false) in the source YANG file, then _set_config_mode is considered as a private method. Backends looking to populate this variable should do so ...
[ "Setter", "method", "for", "config_mode", "mapped", "from", "YANG", "variable", "/", "interface", "/", "fc_port", "/", "config_mode", "(", "interface", "-", "fc", "-", "config", "-", "mode", "-", "type", ")", "If", "this", "variable", "is", "read", "-", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/interface/fc_port/__init__.py#L415-L438
train
Sets the port mode of the
StackStorm/pybind
pybind/slxos/v17r_2_00/routing_system/interface/ve/ipv6/__init__.py
ipv6._set_vrrpv3e
def _set_vrrpv3e(self, v, load=False): """ Setter method for vrrpv3e, mapped from YANG variable /routing_system/interface/ve/ipv6/vrrpv3e (list) If this variable is read-only (config: false) in the source YANG file, then _set_vrrpv3e is considered as a private method. Backends looking to populate th...
python
def _set_vrrpv3e(self, v, load=False): """ Setter method for vrrpv3e, mapped from YANG variable /routing_system/interface/ve/ipv6/vrrpv3e (list) If this variable is read-only (config: false) in the source YANG file, then _set_vrrpv3e is considered as a private method. Backends looking to populate th...
[ "def", "_set_vrrpv3e", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base",...
Setter method for vrrpv3e, mapped from YANG variable /routing_system/interface/ve/ipv6/vrrpv3e (list) If this variable is read-only (config: false) in the source YANG file, then _set_vrrpv3e is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._s...
[ "Setter", "method", "for", "vrrpv3e", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "ipv6", "/", "vrrpv3e", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17r_2_00/routing_system/interface/ve/ipv6/__init__.py#L559-L580
train
Set the value of the vrrpv3e field in the virtual network.
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_xstp_ext_rpc/get_stp_brief_info/output/spanning_tree_info/pvstp/__init__.py
pvstp._set_bridge
def _set_bridge(self, v, load=False): """ Setter method for bridge, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_brief_info/output/spanning_tree_info/pvstp/bridge (container) If this variable is read-only (config: false) in the source YANG file, then _set_bridge is considered as a private ...
python
def _set_bridge(self, v, load=False): """ Setter method for bridge, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_brief_info/output/spanning_tree_info/pvstp/bridge (container) If this variable is read-only (config: false) in the source YANG file, then _set_bridge is considered as a private ...
[ "def", "_set_bridge", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for bridge, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_brief_info/output/spanning_tree_info/pvstp/bridge (container) If this variable is read-only (config: false) in the source YANG file, then _set_bridge is considered as a private method. Backends looking to populate this variabl...
[ "Setter", "method", "for", "bridge", "mapped", "from", "YANG", "variable", "/", "brocade_xstp_ext_rpc", "/", "get_stp_brief_info", "/", "output", "/", "spanning_tree_info", "/", "pvstp", "/", "bridge", "(", "container", ")", "If", "this", "variable", "is", "read...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_xstp_ext_rpc/get_stp_brief_info/output/spanning_tree_info/pvstp/__init__.py#L172-L193
train
Sets the value of _bridge
StackStorm/pybind
pybind/nos/v7_2_0/brocade_isns_ext_rpc/__init__.py
brocade_isns_ext._set_isns_get_discovery_domain
def _set_isns_get_discovery_domain(self, v, load=False): """ Setter method for isns_get_discovery_domain, mapped from YANG variable /brocade_isns_ext_rpc/isns_get_discovery_domain (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_isns_get_discovery_domain is consider...
python
def _set_isns_get_discovery_domain(self, v, load=False): """ Setter method for isns_get_discovery_domain, mapped from YANG variable /brocade_isns_ext_rpc/isns_get_discovery_domain (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_isns_get_discovery_domain is consider...
[ "def", "_set_isns_get_discovery_domain", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v"...
Setter method for isns_get_discovery_domain, mapped from YANG variable /brocade_isns_ext_rpc/isns_get_discovery_domain (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_isns_get_discovery_domain is considered as a private method. Backends looking to populate this variabl...
[ "Setter", "method", "for", "isns_get_discovery_domain", "mapped", "from", "YANG", "variable", "/", "brocade_isns_ext_rpc", "/", "isns_get_discovery_domain", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v7_2_0/brocade_isns_ext_rpc/__init__.py#L157-L181
train
Sets the isns - get - discovery - domain of the isns - get - node.
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_system_monitor_ext_rpc/__init__.py
brocade_system_monitor_ext._set_show_system_monitor
def _set_show_system_monitor(self, v, load=False): """ Setter method for show_system_monitor, mapped from YANG variable /brocade_system_monitor_ext_rpc/show_system_monitor (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_system_monitor is considered as a privat...
python
def _set_show_system_monitor(self, v, load=False): """ Setter method for show_system_monitor, mapped from YANG variable /brocade_system_monitor_ext_rpc/show_system_monitor (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_system_monitor is considered as a privat...
[ "def", "_set_show_system_monitor", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",...
Setter method for show_system_monitor, mapped from YANG variable /brocade_system_monitor_ext_rpc/show_system_monitor (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_system_monitor is considered as a private method. Backends looking to populate this variable should...
[ "Setter", "method", "for", "show_system_monitor", "mapped", "from", "YANG", "variable", "/", "brocade_system_monitor_ext_rpc", "/", "show_system_monitor", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_system_monitor_ext_rpc/__init__.py#L96-L117
train
Sets the show_system_monitor field of the .
StackStorm/pybind
pybind/nos/v6_0_2f/rbridge_id/hardware_profile/route_table/predefined/__init__.py
predefined._set_routing_profiletype
def _set_routing_profiletype(self, v, load=False): """ Setter method for routing_profiletype, mapped from YANG variable /rbridge_id/hardware_profile/route_table/predefined/routing_profiletype (routing-profile-subtype) If this variable is read-only (config: false) in the source YANG file, then _set_routi...
python
def _set_routing_profiletype(self, v, load=False): """ Setter method for routing_profiletype, mapped from YANG variable /rbridge_id/hardware_profile/route_table/predefined/routing_profiletype (routing-profile-subtype) If this variable is read-only (config: false) in the source YANG file, then _set_routi...
[ "def", "_set_routing_profiletype", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",...
Setter method for routing_profiletype, mapped from YANG variable /rbridge_id/hardware_profile/route_table/predefined/routing_profiletype (routing-profile-subtype) If this variable is read-only (config: false) in the source YANG file, then _set_routing_profiletype is considered as a private method. Backends ...
[ "Setter", "method", "for", "routing_profiletype", "mapped", "from", "YANG", "variable", "/", "rbridge_id", "/", "hardware_profile", "/", "route_table", "/", "predefined", "/", "routing_profiletype", "(", "routing", "-", "profile", "-", "subtype", ")", "If", "this"...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/rbridge_id/hardware_profile/route_table/predefined/__init__.py#L93-L114
train
Sets the routing profiletype of the
inveniosoftware/invenio-access
examples/app.py
index
def index(): """Basic test view.""" identity = g.identity actions = {} for action in access.actions.values(): actions[action.value] = DynamicPermission(action).allows(identity) if current_user.is_anonymous: return render_template("invenio_access/open.html", ...
python
def index(): """Basic test view.""" identity = g.identity actions = {} for action in access.actions.values(): actions[action.value] = DynamicPermission(action).allows(identity) if current_user.is_anonymous: return render_template("invenio_access/open.html", ...
[ "def", "index", "(", ")", ":", "identity", "=", "g", ".", "identity", "actions", "=", "{", "}", "for", "action", "in", "access", ".", "actions", ".", "values", "(", ")", ":", "actions", "[", "action", ".", "value", "]", "=", "DynamicPermission", "(",...
Basic test view.
[ "Basic", "test", "view", "." ]
3b033a4bdc110eb2f7e9f08f0744a780884bfc80
https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/examples/app.py#L109-L124
train
Basic test view.
inveniosoftware/invenio-access
examples/app.py
role_admin
def role_admin(): """View only allowed to admin role.""" identity = g.identity actions = {} for action in access.actions.values(): actions[action.value] = DynamicPermission(action).allows(identity) message = 'You are opening a page requiring the "admin-access" permission' return render_...
python
def role_admin(): """View only allowed to admin role.""" identity = g.identity actions = {} for action in access.actions.values(): actions[action.value] = DynamicPermission(action).allows(identity) message = 'You are opening a page requiring the "admin-access" permission' return render_...
[ "def", "role_admin", "(", ")", ":", "identity", "=", "g", ".", "identity", "actions", "=", "{", "}", "for", "action", "in", "access", ".", "actions", ".", "values", "(", ")", ":", "actions", "[", "action", ".", "value", "]", "=", "DynamicPermission", ...
View only allowed to admin role.
[ "View", "only", "allowed", "to", "admin", "role", "." ]
3b033a4bdc110eb2f7e9f08f0744a780884bfc80
https://github.com/inveniosoftware/invenio-access/blob/3b033a4bdc110eb2f7e9f08f0744a780884bfc80/examples/app.py#L134-L145
train
View only allowed to admin role.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/route_map/content/__init__.py
content._set_precedence
def _set_precedence(self, v, load=False): """ Setter method for precedence, mapped from YANG variable /routing_system/route_map/content/precedence (list) If this variable is read-only (config: false) in the source YANG file, then _set_precedence is considered as a private method. Backends looking to...
python
def _set_precedence(self, v, load=False): """ Setter method for precedence, mapped from YANG variable /routing_system/route_map/content/precedence (list) If this variable is read-only (config: false) in the source YANG file, then _set_precedence is considered as a private method. Backends looking to...
[ "def", "_set_precedence", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for precedence, mapped from YANG variable /routing_system/route_map/content/precedence (list) If this variable is read-only (config: false) in the source YANG file, then _set_precedence is considered as a private method. Backends looking to populate this variable should do so via calling t...
[ "Setter", "method", "for", "precedence", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "route_map", "/", "content", "/", "precedence", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/route_map/content/__init__.py#L207-L230
train
Set the precedence of the .
StackStorm/pybind
pybind/nos/v6_0_2f/logging/__init__.py
logging._set_raslog
def _set_raslog(self, v, load=False): """ Setter method for raslog, mapped from YANG variable /logging/raslog (container) If this variable is read-only (config: false) in the source YANG file, then _set_raslog is considered as a private method. Backends looking to populate this variable should d...
python
def _set_raslog(self, v, load=False): """ Setter method for raslog, mapped from YANG variable /logging/raslog (container) If this variable is read-only (config: false) in the source YANG file, then _set_raslog is considered as a private method. Backends looking to populate this variable should d...
[ "def", "_set_raslog", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for raslog, mapped from YANG variable /logging/raslog (container) If this variable is read-only (config: false) in the source YANG file, then _set_raslog is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_raslog() directly.
[ "Setter", "method", "for", "raslog", "mapped", "from", "YANG", "variable", "/", "logging", "/", "raslog", "(", "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/logging/__init__.py#L100-L121
train
Sets the raslog variable.
StackStorm/pybind
pybind/nos/v6_0_2f/logging/__init__.py
logging._set_syslog_server
def _set_syslog_server(self, v, load=False): """ Setter method for syslog_server, mapped from YANG variable /logging/syslog_server (list) If this variable is read-only (config: false) in the source YANG file, then _set_syslog_server is considered as a private method. Backends looking to populate thi...
python
def _set_syslog_server(self, v, load=False): """ Setter method for syslog_server, mapped from YANG variable /logging/syslog_server (list) If this variable is read-only (config: false) in the source YANG file, then _set_syslog_server is considered as a private method. Backends looking to populate thi...
[ "def", "_set_syslog_server", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for syslog_server, mapped from YANG variable /logging/syslog_server (list) If this variable is read-only (config: false) in the source YANG file, then _set_syslog_server is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_sysl...
[ "Setter", "method", "for", "syslog_server", "mapped", "from", "YANG", "variable", "/", "logging", "/", "syslog_server", "(", "list", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/logging/__init__.py#L133-L154
train
Sets the value of syslog_server mapped from YANG variable syslog_server.
StackStorm/pybind
pybind/nos/v6_0_2f/logging/__init__.py
logging._set_auditlog
def _set_auditlog(self, v, load=False): """ Setter method for auditlog, mapped from YANG variable /logging/auditlog (container) If this variable is read-only (config: false) in the source YANG file, then _set_auditlog is considered as a private method. Backends looking to populate this variable shou...
python
def _set_auditlog(self, v, load=False): """ Setter method for auditlog, mapped from YANG variable /logging/auditlog (container) If this variable is read-only (config: false) in the source YANG file, then _set_auditlog is considered as a private method. Backends looking to populate this variable shou...
[ "def", "_set_auditlog", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for auditlog, mapped from YANG variable /logging/auditlog (container) If this variable is read-only (config: false) in the source YANG file, then _set_auditlog is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_auditlog() dir...
[ "Setter", "method", "for", "auditlog", "mapped", "from", "YANG", "variable", "/", "logging", "/", "auditlog", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG", "fi...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/logging/__init__.py#L166-L187
train
Sets the auditlog of the
StackStorm/pybind
pybind/nos/v6_0_2f/logging/__init__.py
logging._set_syslog_client
def _set_syslog_client(self, v, load=False): """ Setter method for syslog_client, mapped from YANG variable /logging/syslog_client (container) If this variable is read-only (config: false) in the source YANG file, then _set_syslog_client is considered as a private method. Backends looking to populat...
python
def _set_syslog_client(self, v, load=False): """ Setter method for syslog_client, mapped from YANG variable /logging/syslog_client (container) If this variable is read-only (config: false) in the source YANG file, then _set_syslog_client is considered as a private method. Backends looking to populat...
[ "def", "_set_syslog_client", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for syslog_client, mapped from YANG variable /logging/syslog_client (container) If this variable is read-only (config: false) in the source YANG file, then _set_syslog_client is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set...
[ "Setter", "method", "for", "syslog_client", "mapped", "from", "YANG", "variable", "/", "logging", "/", "syslog_client", "(", "container", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YA...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/logging/__init__.py#L232-L253
train
Sets the syslog client of the
StackStorm/pybind
pybind/slxos/v17s_1_02/openflow_state/group/group_info_list/__init__.py
group_info_list._set_group_type
def _set_group_type(self, v, load=False): """ Setter method for group_type, mapped from YANG variable /openflow_state/group/group_info_list/group_type (group-type) If this variable is read-only (config: false) in the source YANG file, then _set_group_type is considered as a private method. Backends ...
python
def _set_group_type(self, v, load=False): """ Setter method for group_type, mapped from YANG variable /openflow_state/group/group_info_list/group_type (group-type) If this variable is read-only (config: false) in the source YANG file, then _set_group_type is considered as a private method. Backends ...
[ "def", "_set_group_type", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for group_type, mapped from YANG variable /openflow_state/group/group_info_list/group_type (group-type) If this variable is read-only (config: false) in the source YANG file, then _set_group_type is considered as a private method. Backends looking to populate this variable should do so via...
[ "Setter", "method", "for", "group_type", "mapped", "from", "YANG", "variable", "/", "openflow_state", "/", "group", "/", "group_info_list", "/", "group_type", "(", "group", "-", "type", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/openflow_state/group/group_info_list/__init__.py#L180-L203
train
Sets the group type of the
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/__init__.py
default_vrf._set_next_hop_mpls
def _set_next_hop_mpls(self, v, load=False): """ Setter method for next_hop_mpls, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/next_hop_mpls (container) If this variable is read-only (config: false) in the source YANG file, then _set_next_hop_m...
python
def _set_next_hop_mpls(self, v, load=False): """ Setter method for next_hop_mpls, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/next_hop_mpls (container) If this variable is read-only (config: false) in the source YANG file, then _set_next_hop_m...
[ "def", "_set_next_hop_mpls", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for next_hop_mpls, mapped from YANG variable /routing_system/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/next_hop_mpls (container) If this variable is read-only (config: false) in the source YANG file, then _set_next_hop_mpls is considered as a private method. Backends looki...
[ "Setter", "method", "for", "next_hop_mpls", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "router", "/", "router_bgp", "/", "address_family", "/", "ipv4", "/", "ipv4_unicast", "/", "default_vrf", "/", "next_hop_mpls", "(", "container", ")", "...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/__init__.py#L370-L391
train
Sets the value of next_hop_mpls in the virtual node.
BD2KGenomics/protect
src/protect/binding_prediction/common.py
spawn_antigen_predictors
def spawn_antigen_predictors(job, transgened_files, phlat_files, univ_options, mhc_options): """ Spawn a job to predict MHCI:peptide and MHCII:peptide binding on the input peptide file for each allele in in the input haplotype (phlat) files. :param dict transgened_files: Dict of tumor and normal peptid...
python
def spawn_antigen_predictors(job, transgened_files, phlat_files, univ_options, mhc_options): """ Spawn a job to predict MHCI:peptide and MHCII:peptide binding on the input peptide file for each allele in in the input haplotype (phlat) files. :param dict transgened_files: Dict of tumor and normal peptid...
[ "def", "spawn_antigen_predictors", "(", "job", ",", "transgened_files", ",", "phlat_files", ",", "univ_options", ",", "mhc_options", ")", ":", "work_dir", "=", "os", ".", "getcwd", "(", ")", "mhci_options", ",", "mhcii_options", "=", "mhc_options", "pept_files", ...
Spawn a job to predict MHCI:peptide and MHCII:peptide binding on the input peptide file for each allele in in the input haplotype (phlat) files. :param dict transgened_files: Dict of tumor and normal peptide fsIDs and the tumor .map fsIDs :param dict phlat_files: Dict of MHCI and MHCII haplotypes :para...
[ "Spawn", "a", "job", "to", "predict", "MHCI", ":", "peptide", "and", "MHCII", ":", "peptide", "binding", "on", "the", "input", "peptide", "file", "for", "each", "allele", "in", "in", "the", "input", "haplotype", "(", "phlat", ")", "files", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/binding_prediction/common.py#L29-L137
train
Spawn a job to predict MHCI - peptide and MHCII - peptide binding on the input peptide files for each allele in the input haplotype.
BD2KGenomics/protect
src/protect/binding_prediction/common.py
read_fastas
def read_fastas(input_files): """ Read the tumor and normal fastas into a joint dict. :param dict input_files: A dict containing filename: filepath for T_ and N_ transgened files. :return: The read fastas in a dictionary of tuples :rtype: dict """ tumor_file = [y for x, y in input_files.ite...
python
def read_fastas(input_files): """ Read the tumor and normal fastas into a joint dict. :param dict input_files: A dict containing filename: filepath for T_ and N_ transgened files. :return: The read fastas in a dictionary of tuples :rtype: dict """ tumor_file = [y for x, y in input_files.ite...
[ "def", "read_fastas", "(", "input_files", ")", ":", "tumor_file", "=", "[", "y", "for", "x", ",", "y", "in", "input_files", ".", "items", "(", ")", "if", "x", ".", "startswith", "(", "'T'", ")", "]", "[", "0", "]", "normal_file", "=", "[", "y", "...
Read the tumor and normal fastas into a joint dict. :param dict input_files: A dict containing filename: filepath for T_ and N_ transgened files. :return: The read fastas in a dictionary of tuples :rtype: dict
[ "Read", "the", "tumor", "and", "normal", "fastas", "into", "a", "joint", "dict", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/binding_prediction/common.py#L140-L155
train
Read the tumor and normal fastas into a joint dictionary.
BD2KGenomics/protect
src/protect/binding_prediction/common.py
_read_fasta
def _read_fasta(fasta_file, output_dict): """ Read the peptide fasta into an existing dict. :param str fasta_file: The peptide file :param dict output_dict: The dict to appends results to. :return: output_dict :rtype: dict """ read_name = None with open(fasta_file, 'r') as f: ...
python
def _read_fasta(fasta_file, output_dict): """ Read the peptide fasta into an existing dict. :param str fasta_file: The peptide file :param dict output_dict: The dict to appends results to. :return: output_dict :rtype: dict """ read_name = None with open(fasta_file, 'r') as f: ...
[ "def", "_read_fasta", "(", "fasta_file", ",", "output_dict", ")", ":", "read_name", "=", "None", "with", "open", "(", "fasta_file", ",", "'r'", ")", "as", "f", ":", "for", "line", "in", "f", ":", "line", "=", "line", ".", "strip", "(", ")", "if", "...
Read the peptide fasta into an existing dict. :param str fasta_file: The peptide file :param dict output_dict: The dict to appends results to. :return: output_dict :rtype: dict
[ "Read", "the", "peptide", "fasta", "into", "an", "existing", "dict", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/binding_prediction/common.py#L158-L178
train
Read the peptide file into a dictionary.
BD2KGenomics/protect
src/protect/binding_prediction/common.py
_process_consensus_mhcii
def _process_consensus_mhcii(mhc_file, normal=False): """ Process the results from running IEDB MHCII binding predictions using the consensus method into a pandas dataframe. :param str mhc_file: Output file containing consensus mhcii:peptide binding predictions :param bool normal: Is this processin...
python
def _process_consensus_mhcii(mhc_file, normal=False): """ Process the results from running IEDB MHCII binding predictions using the consensus method into a pandas dataframe. :param str mhc_file: Output file containing consensus mhcii:peptide binding predictions :param bool normal: Is this processin...
[ "def", "_process_consensus_mhcii", "(", "mhc_file", ",", "normal", "=", "False", ")", ":", "core_col", "=", "None", "# Variable to hold the column number with the core", "results", "=", "pandas", ".", "DataFrame", "(", "columns", "=", "[", "'allele'", ",", "'pept'",...
Process the results from running IEDB MHCII binding predictions using the consensus method into a pandas dataframe. :param str mhc_file: Output file containing consensus mhcii:peptide binding predictions :param bool normal: Is this processing the results of a normal? :return: Results in a tabular forma...
[ "Process", "the", "results", "from", "running", "IEDB", "MHCII", "binding", "predictions", "using", "the", "consensus", "method", "into", "a", "pandas", "dataframe", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/binding_prediction/common.py#L181-L221
train
Process the results from running IEDB MHCII binding predictions using the consensus method into a pandas dataframe.
BD2KGenomics/protect
src/protect/binding_prediction/common.py
_process_net_mhcii
def _process_net_mhcii(mhc_file, normal=False): """ Process the results from running NetMHCIIpan binding predictions into a pandas dataframe. :param str mhc_file: Output file containing netmhciipan mhcii:peptide binding predictions :param bool normal: Is this processing the results of a normal? :re...
python
def _process_net_mhcii(mhc_file, normal=False): """ Process the results from running NetMHCIIpan binding predictions into a pandas dataframe. :param str mhc_file: Output file containing netmhciipan mhcii:peptide binding predictions :param bool normal: Is this processing the results of a normal? :re...
[ "def", "_process_net_mhcii", "(", "mhc_file", ",", "normal", "=", "False", ")", ":", "results", "=", "pandas", ".", "DataFrame", "(", "columns", "=", "[", "'allele'", ",", "'pept'", ",", "'tumor_pred'", ",", "'core'", ",", "'peptide_name'", "]", ")", "with...
Process the results from running NetMHCIIpan binding predictions into a pandas dataframe. :param str mhc_file: Output file containing netmhciipan mhcii:peptide binding predictions :param bool normal: Is this processing the results of a normal? :return: Results in a tabular format :rtype: pandas.DataFra...
[ "Process", "the", "results", "from", "running", "NetMHCIIpan", "binding", "predictions", "into", "a", "pandas", "dataframe", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/binding_prediction/common.py#L253-L278
train
Process the results from running NetMHCIIpan binding predictions into a pandas dataframe.
BD2KGenomics/protect
src/protect/binding_prediction/common.py
_process_mhci
def _process_mhci(mhc_file, normal=False): """ Process the results from running IEDB MHCI binding predictions into a pandas dataframe. :param str mhc_file: Output file containing netmhciipan mhci:peptide binding predictions :param bool normal: Is this processing the results of a normal? :return: Re...
python
def _process_mhci(mhc_file, normal=False): """ Process the results from running IEDB MHCI binding predictions into a pandas dataframe. :param str mhc_file: Output file containing netmhciipan mhci:peptide binding predictions :param bool normal: Is this processing the results of a normal? :return: Re...
[ "def", "_process_mhci", "(", "mhc_file", ",", "normal", "=", "False", ")", ":", "results", "=", "pandas", ".", "DataFrame", "(", "columns", "=", "[", "'allele'", ",", "'pept'", ",", "'tumor_pred'", ",", "'core'", "]", ")", "with", "open", "(", "mhc_file"...
Process the results from running IEDB MHCI binding predictions into a pandas dataframe. :param str mhc_file: Output file containing netmhciipan mhci:peptide binding predictions :param bool normal: Is this processing the results of a normal? :return: Results in a tabular format :rtype: pandas.DataFrame
[ "Process", "the", "results", "from", "running", "IEDB", "MHCI", "binding", "predictions", "into", "a", "pandas", "dataframe", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/binding_prediction/common.py#L281-L305
train
Process the results from running IEDB MHCI binding predictions into a pandas dataframe.
BD2KGenomics/protect
src/protect/binding_prediction/common.py
pept_diff
def pept_diff(p1, p2): """ Return the number of differences betweeen 2 peptides :param str p1: Peptide 1 :param str p2: Peptide 2 :return: The number of differences between the pepetides :rtype: int >>> pept_diff('ABCDE', 'ABCDF') 1 >>> pept_diff('ABCDE', 'ABDFE') 2 >>> pep...
python
def pept_diff(p1, p2): """ Return the number of differences betweeen 2 peptides :param str p1: Peptide 1 :param str p2: Peptide 2 :return: The number of differences between the pepetides :rtype: int >>> pept_diff('ABCDE', 'ABCDF') 1 >>> pept_diff('ABCDE', 'ABDFE') 2 >>> pep...
[ "def", "pept_diff", "(", "p1", ",", "p2", ")", ":", "if", "len", "(", "p1", ")", "!=", "len", "(", "p2", ")", ":", "return", "-", "1", "else", ":", "return", "sum", "(", "[", "p1", "[", "i", "]", "!=", "p2", "[", "i", "]", "for", "i", "in...
Return the number of differences betweeen 2 peptides :param str p1: Peptide 1 :param str p2: Peptide 2 :return: The number of differences between the pepetides :rtype: int >>> pept_diff('ABCDE', 'ABCDF') 1 >>> pept_diff('ABCDE', 'ABDFE') 2 >>> pept_diff('ABCDE', 'EDCBA') 4 ...
[ "Return", "the", "number", "of", "differences", "betweeen", "2", "peptides" ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/binding_prediction/common.py#L308-L329
train
Returns the number of differences between two peptides.
BD2KGenomics/protect
src/protect/binding_prediction/common.py
_get_normal_peptides
def _get_normal_peptides(job, mhc_df, iars, peplen): """ Get the corresponding normal peptides for the tumor peptides that have already been subjected to mhc:peptide binding prediction. :param pandas.DataFrame mhc_df: The dataframe of mhc:peptide binding results :param dict iars: The dict of lists ...
python
def _get_normal_peptides(job, mhc_df, iars, peplen): """ Get the corresponding normal peptides for the tumor peptides that have already been subjected to mhc:peptide binding prediction. :param pandas.DataFrame mhc_df: The dataframe of mhc:peptide binding results :param dict iars: The dict of lists ...
[ "def", "_get_normal_peptides", "(", "job", ",", "mhc_df", ",", "iars", ",", "peplen", ")", ":", "peplen", "=", "int", "(", "peplen", ")", "normal_peptides", "=", "[", "]", "for", "pred", "in", "mhc_df", ".", "itertuples", "(", ")", ":", "containing_iars"...
Get the corresponding normal peptides for the tumor peptides that have already been subjected to mhc:peptide binding prediction. :param pandas.DataFrame mhc_df: The dataframe of mhc:peptide binding results :param dict iars: The dict of lists of tumor and normal peptide iar sequences :param str peplen: ...
[ "Get", "the", "corresponding", "normal", "peptides", "for", "the", "tumor", "peptides", "that", "have", "already", "been", "subjected", "to", "mhc", ":", "peptide", "binding", "prediction", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/binding_prediction/common.py#L332-L386
train
Get the corresponding normal peptides for the tumor peptides that have already been subjected to mhc_df.
BD2KGenomics/protect
src/protect/binding_prediction/common.py
predict_normal_binding
def predict_normal_binding(job, binding_result, transgened_files, allele, peplen, univ_options, mhc_options): """ Predict the binding score for the normal counterparts of the peptides in mhc_dict and then return the results in a properly formatted structure. :param str bindin...
python
def predict_normal_binding(job, binding_result, transgened_files, allele, peplen, univ_options, mhc_options): """ Predict the binding score for the normal counterparts of the peptides in mhc_dict and then return the results in a properly formatted structure. :param str bindin...
[ "def", "predict_normal_binding", "(", "job", ",", "binding_result", ",", "transgened_files", ",", "allele", ",", "peplen", ",", "univ_options", ",", "mhc_options", ")", ":", "work_dir", "=", "os", ".", "getcwd", "(", ")", "results", "=", "pandas", ".", "Data...
Predict the binding score for the normal counterparts of the peptides in mhc_dict and then return the results in a properly formatted structure. :param str binding_result: The results from running predict_mhci_binding or predict_mhcii_binding on a single allele :param dict transgened_files: A di...
[ "Predict", "the", "binding", "score", "for", "the", "normal", "counterparts", "of", "the", "peptides", "in", "mhc_dict", "and", "then", "return", "the", "results", "in", "a", "properly", "formatted", "structure", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/binding_prediction/common.py#L389-L484
train
Predict the binding score for the normal counterparts of the peptides in the mhc_dict and then .
BD2KGenomics/protect
src/protect/binding_prediction/common.py
merge_mhc_peptide_calls
def merge_mhc_peptide_calls(job, antigen_predictions, transgened_files, univ_options): """ Merge all the calls generated by spawn_antigen_predictors. :param dict antigen_predictions: The return value from running :meth:`spawn_antigen_predictors` :param dict transgened_files: The transgened peptide file...
python
def merge_mhc_peptide_calls(job, antigen_predictions, transgened_files, univ_options): """ Merge all the calls generated by spawn_antigen_predictors. :param dict antigen_predictions: The return value from running :meth:`spawn_antigen_predictors` :param dict transgened_files: The transgened peptide file...
[ "def", "merge_mhc_peptide_calls", "(", "job", ",", "antigen_predictions", ",", "transgened_files", ",", "univ_options", ")", ":", "job", ".", "fileStore", ".", "logToMaster", "(", "'Merging MHC calls'", ")", "work_dir", "=", "os", ".", "getcwd", "(", ")", "pept_...
Merge all the calls generated by spawn_antigen_predictors. :param dict antigen_predictions: The return value from running :meth:`spawn_antigen_predictors` :param dict transgened_files: The transgened peptide files :param dict univ_options: Universal options for ProTECT :return: merged binding predictio...
[ "Merge", "all", "the", "calls", "generated", "by", "spawn_antigen_predictors", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/binding_prediction/common.py#L487-L578
train
This function merges all the MHC calls generated by spawn_antigen_predictors and returns the merged binding predictions.
BD2KGenomics/protect
src/protect/binding_prediction/common.py
print_mhc_peptide
def print_mhc_peptide(neoepitope_info, peptides, pepmap, outfile, netmhc=False): """ Accept data about one neoepitope from merge_mhc_peptide_calls and print it to outfile. This is a generic module to reduce code redundancy. :param pandas.core.frame neoepitope_info: object containing with allele, pept,...
python
def print_mhc_peptide(neoepitope_info, peptides, pepmap, outfile, netmhc=False): """ Accept data about one neoepitope from merge_mhc_peptide_calls and print it to outfile. This is a generic module to reduce code redundancy. :param pandas.core.frame neoepitope_info: object containing with allele, pept,...
[ "def", "print_mhc_peptide", "(", "neoepitope_info", ",", "peptides", ",", "pepmap", ",", "outfile", ",", "netmhc", "=", "False", ")", ":", "if", "netmhc", ":", "peptide_names", "=", "[", "neoepitope_info", ".", "peptide_name", "]", "else", ":", "peptide_names"...
Accept data about one neoepitope from merge_mhc_peptide_calls and print it to outfile. This is a generic module to reduce code redundancy. :param pandas.core.frame neoepitope_info: object containing with allele, pept, pred, core, normal_pept, normal_pred :param dict peptides: Dict of pepname: p...
[ "Accept", "data", "about", "one", "neoepitope", "from", "merge_mhc_peptide_calls", "and", "print", "it", "to", "outfile", ".", "This", "is", "a", "generic", "module", "to", "reduce", "code", "redundancy", "." ]
06310682c50dcf8917b912c8e551299ff7ee41ce
https://github.com/BD2KGenomics/protect/blob/06310682c50dcf8917b912c8e551299ff7ee41ce/src/protect/binding_prediction/common.py#L581-L615
train
This function takes a neoepitope_info dict and prints it to outfile.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/__init__.py
ipsec_auth_key_config._set_spi
def _set_spi(self, v, load=False): """ Setter method for spi, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/spi (spi-value-type) If this variable is read-only (config: false) in the source YANG file, then _set_spi is considered as ...
python
def _set_spi(self, v, load=False): """ Setter method for spi, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/spi (spi-value-type) If this variable is read-only (config: false) in the source YANG file, then _set_spi is considered as ...
[ "def", "_set_spi", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", "...
Setter method for spi, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/spi (spi-value-type) If this variable is read-only (config: false) in the source YANG file, then _set_spi is considered as a private method. Backends looking to popul...
[ "Setter", "method", "for", "spi", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "ipv6", "/", "interface_ospfv3_conf", "/", "authentication", "/", "ipsec_auth_key_config", "/", "spi", "(", "spi", "-", "value", "-...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/__init__.py#L102-L125
train
Sets the SPI value for the Available Sequential IP Security Association.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/__init__.py
ipsec_auth_key_config._set_ah_no_encrypt
def _set_ah_no_encrypt(self, v, load=False): """ Setter method for ah_no_encrypt, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/ah_no_encrypt (empty) If this variable is read-only (config: false) in the source YANG file, then _set_...
python
def _set_ah_no_encrypt(self, v, load=False): """ Setter method for ah_no_encrypt, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/ah_no_encrypt (empty) If this variable is read-only (config: false) in the source YANG file, then _set_...
[ "def", "_set_ah_no_encrypt", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "...
Setter method for ah_no_encrypt, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/ah_no_encrypt (empty) If this variable is read-only (config: false) in the source YANG file, then _set_ah_no_encrypt is considered as a private method. Back...
[ "Setter", "method", "for", "ah_no_encrypt", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "ipv6", "/", "interface_ospfv3_conf", "/", "authentication", "/", "ipsec_auth_key_config", "/", "ah_no_encrypt", "(", "empty", ...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/__init__.py#L176-L199
train
Set the no - encrypt flag of the key in the order they are used.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/__init__.py
ipsec_auth_key_config._set_ah_key
def _set_ah_key(self, v, load=False): """ Setter method for ah_key, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/ah_key (ipsec-authentication-hexkey-string) If this variable is read-only (config: false) in the source YANG file, th...
python
def _set_ah_key(self, v, load=False): """ Setter method for ah_key, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/ah_key (ipsec-authentication-hexkey-string) If this variable is read-only (config: false) in the source YANG file, th...
[ "def", "_set_ah_key", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", ...
Setter method for ah_key, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/ah_key (ipsec-authentication-hexkey-string) If this variable is read-only (config: false) in the source YANG file, then _set_ah_key is considered as a private meth...
[ "Setter", "method", "for", "ah_key", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "ipv6", "/", "interface_ospfv3_conf", "/", "authentication", "/", "ipsec_auth_key_config", "/", "ah_key", "(", "ipsec", "-", "auth...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/__init__.py#L213-L236
train
Set the key used for ah
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/__init__.py
ipsec_auth_key_config._set_esp
def _set_esp(self, v, load=False): """ Setter method for esp, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/esp (algorithm-type-esp) If this variable is read-only (config: false) in the source YANG file, then _set_esp is considered...
python
def _set_esp(self, v, load=False): """ Setter method for esp, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/esp (algorithm-type-esp) If this variable is read-only (config: false) in the source YANG file, then _set_esp is considered...
[ "def", "_set_esp", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base", "...
Setter method for esp, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/esp (algorithm-type-esp) If this variable is read-only (config: false) in the source YANG file, then _set_esp is considered as a private method. Backends looking to p...
[ "Setter", "method", "for", "esp", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "ipv6", "/", "interface_ospfv3_conf", "/", "authentication", "/", "ipsec_auth_key_config", "/", "esp", "(", "algorithm", "-", "type",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/__init__.py#L250-L273
train
Set the esp field of the
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/__init__.py
ipsec_auth_key_config._set_esp_key
def _set_esp_key(self, v, load=False): """ Setter method for esp_key, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/esp_key (ipsec-authentication-hexkey-string) If this variable is read-only (config: false) in the source YANG file,...
python
def _set_esp_key(self, v, load=False): """ Setter method for esp_key, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/esp_key (ipsec-authentication-hexkey-string) If this variable is read-only (config: false) in the source YANG file,...
[ "def", "_set_esp_key", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base",...
Setter method for esp_key, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/esp_key (ipsec-authentication-hexkey-string) If this variable is read-only (config: false) in the source YANG file, then _set_esp_key is considered as a private m...
[ "Setter", "method", "for", "esp_key", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "ipv6", "/", "interface_ospfv3_conf", "/", "authentication", "/", "ipsec_auth_key_config", "/", "esp_key", "(", "ipsec", "-", "au...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/__init__.py#L324-L347
train
Set the key for the NICs in the order of ESP.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/__init__.py
ipsec_auth_key_config._set_esp_auth
def _set_esp_auth(self, v, load=False): """ Setter method for esp_auth, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/esp_auth (algorithm-type-ah) If this variable is read-only (config: false) in the source YANG file, then _set_esp...
python
def _set_esp_auth(self, v, load=False): """ Setter method for esp_auth, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/esp_auth (algorithm-type-ah) If this variable is read-only (config: false) in the source YANG file, then _set_esp...
[ "def", "_set_esp_auth", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "base"...
Setter method for esp_auth, mapped from YANG variable /routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/esp_auth (algorithm-type-ah) If this variable is read-only (config: false) in the source YANG file, then _set_esp_auth is considered as a private method. Backend...
[ "Setter", "method", "for", "esp_auth", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "interface", "/", "ve", "/", "ipv6", "/", "interface_ospfv3_conf", "/", "authentication", "/", "ipsec_auth_key_config", "/", "esp_auth", "(", "algorithm", "-",...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/interface/ve/ipv6/interface_ospfv3_conf/authentication/ipsec_auth_key_config/__init__.py#L359-L380
train
Set the value of esp_auth for the ISP encryption key
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/__init__.py
ospf._set_ospf_route_map
def _set_ospf_route_map(self, v, load=False): """ Setter method for ospf_route_map, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/ospf_route_map (rmap-type) If this variable is read-...
python
def _set_ospf_route_map(self, v, load=False): """ Setter method for ospf_route_map, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/ospf_route_map (rmap-type) If this variable is read-...
[ "def", "_set_ospf_route_map", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", ...
Setter method for ospf_route_map, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/ospf_route_map (rmap-type) If this variable is read-only (config: false) in the source YANG file, then _se...
[ "Setter", "method", "for", "ospf_route_map", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "router", "/", "isis", "/", "router_isis_cmds_holder", "/", "address_family", "/", "ipv6", "/", "af_ipv6_unicast", "/", "af_ipv6_attributes", "/", "af_comm...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/__init__.py#L164-L185
train
Sets the route map for the OSPF route - map
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/__init__.py
ospf._set_ospf_level1
def _set_ospf_level1(self, v, load=False): """ Setter method for ospf_level1, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/ospf_level1 (empty) If this variable is read-only (config:...
python
def _set_ospf_level1(self, v, load=False): """ Setter method for ospf_level1, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/ospf_level1 (empty) If this variable is read-only (config:...
[ "def", "_set_ospf_level1", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "ba...
Setter method for ospf_level1, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/ospf_level1 (empty) If this variable is read-only (config: false) in the source YANG file, then _set_ospf_lev...
[ "Setter", "method", "for", "ospf_level1", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "router", "/", "isis", "/", "router_isis_cmds_holder", "/", "address_family", "/", "ipv6", "/", "af_ipv6_unicast", "/", "af_ipv6_attributes", "/", "af_common_...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/__init__.py#L197-L218
train
Set the level - 1 of the OSPF.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/__init__.py
ospf._set_ospf_level2
def _set_ospf_level2(self, v, load=False): """ Setter method for ospf_level2, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/ospf_level2 (empty) If this variable is read-only (config:...
python
def _set_ospf_level2(self, v, load=False): """ Setter method for ospf_level2, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/ospf_level2 (empty) If this variable is read-only (config:...
[ "def", "_set_ospf_level2", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "ba...
Setter method for ospf_level2, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/ospf_level2 (empty) If this variable is read-only (config: false) in the source YANG file, then _set_ospf_lev...
[ "Setter", "method", "for", "ospf_level2", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "router", "/", "isis", "/", "router_isis_cmds_holder", "/", "address_family", "/", "ipv6", "/", "af_ipv6_unicast", "/", "af_ipv6_attributes", "/", "af_common_...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/__init__.py#L230-L251
train
Set the level - 2 of the OSPF header.
StackStorm/pybind
pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/__init__.py
ospf._set_ospf_level12
def _set_ospf_level12(self, v, load=False): """ Setter method for ospf_level12, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/ospf_level12 (empty) If this variable is read-only (conf...
python
def _set_ospf_level12(self, v, load=False): """ Setter method for ospf_level12, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/ospf_level12 (empty) If this variable is read-only (conf...
[ "def", "_set_ospf_level12", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "b...
Setter method for ospf_level12, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/ospf_level12 (empty) If this variable is read-only (config: false) in the source YANG file, then _set_ospf_l...
[ "Setter", "method", "for", "ospf_level12", "mapped", "from", "YANG", "variable", "/", "routing_system", "/", "router", "/", "isis", "/", "router_isis_cmds_holder", "/", "address_family", "/", "ipv6", "/", "af_ipv6_unicast", "/", "af_ipv6_attributes", "/", "af_common...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/slxos/v17s_1_02/routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/ospf/__init__.py#L263-L284
train
Set the level of OSPF to 12.
StackStorm/pybind
pybind/nos/v6_0_2f/brocade_clock_rpc/__init__.py
brocade_clock._set_show_clock
def _set_show_clock(self, v, load=False): """ Setter method for show_clock, mapped from YANG variable /brocade_clock_rpc/show_clock (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_clock is considered as a private method. Backends looking to populate this v...
python
def _set_show_clock(self, v, load=False): """ Setter method for show_clock, mapped from YANG variable /brocade_clock_rpc/show_clock (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_clock is considered as a private method. Backends looking to populate this v...
[ "def", "_set_show_clock", "(", "self", ",", "v", ",", "load", "=", "False", ")", ":", "if", "hasattr", "(", "v", ",", "\"_utype\"", ")", ":", "v", "=", "v", ".", "_utype", "(", "v", ")", "try", ":", "t", "=", "YANGDynClass", "(", "v", ",", "bas...
Setter method for show_clock, mapped from YANG variable /brocade_clock_rpc/show_clock (rpc) If this variable is read-only (config: false) in the source YANG file, then _set_show_clock is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_show...
[ "Setter", "method", "for", "show_clock", "mapped", "from", "YANG", "variable", "/", "brocade_clock_rpc", "/", "show_clock", "(", "rpc", ")", "If", "this", "variable", "is", "read", "-", "only", "(", "config", ":", "false", ")", "in", "the", "source", "YANG...
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
https://github.com/StackStorm/pybind/blob/44c467e71b2b425be63867aba6e6fa28b2cfe7fb/pybind/nos/v6_0_2f/brocade_clock_rpc/__init__.py#L96-L119
train
Set the show_clock field of the .
rs/domcheck
domcheck/__init__.py
check
def check(domain, prefix, code, strategies='*'): """ Check the ownership of a domain by going thru a serie of strategies. If at least one strategy succeed, the domain is considered verified, and this methods returns true. The prefix is a fixed DNS safe string like "yourservice-domain-verification" ...
python
def check(domain, prefix, code, strategies='*'): """ Check the ownership of a domain by going thru a serie of strategies. If at least one strategy succeed, the domain is considered verified, and this methods returns true. The prefix is a fixed DNS safe string like "yourservice-domain-verification" ...
[ "def", "check", "(", "domain", ",", "prefix", ",", "code", ",", "strategies", "=", "'*'", ")", ":", "if", "strategies", "==", "'*'", "or", "'dns_txt'", "in", "strategies", ":", "if", "check_dns_txt", "(", "domain", ",", "prefix", ",", "code", ")", ":",...
Check the ownership of a domain by going thru a serie of strategies. If at least one strategy succeed, the domain is considered verified, and this methods returns true. The prefix is a fixed DNS safe string like "yourservice-domain-verification" and the code is a random value associated to this domain....
[ "Check", "the", "ownership", "of", "a", "domain", "by", "going", "thru", "a", "serie", "of", "strategies", ".", "If", "at", "least", "one", "strategy", "succeed", "the", "domain", "is", "considered", "verified", "and", "this", "methods", "returns", "true", ...
43e10c345320564a1236778e8577e2b8ef825925
https://github.com/rs/domcheck/blob/43e10c345320564a1236778e8577e2b8ef825925/domcheck/__init__.py#L6-L34
train
Checks if ownership of a domain is verified by checking the given strategies.
daxlab/Flask-Cache-Buster
flask_cache_buster/__init__.py
CacheBuster.__is_file_to_be_busted
def __is_file_to_be_busted(self, filepath): """ :param filepath: :return: True or False """ if not self.extensions: return True return Path(filepath).suffix in self.extensions if filepath else False
python
def __is_file_to_be_busted(self, filepath): """ :param filepath: :return: True or False """ if not self.extensions: return True return Path(filepath).suffix in self.extensions if filepath else False
[ "def", "__is_file_to_be_busted", "(", "self", ",", "filepath", ")", ":", "if", "not", "self", ".", "extensions", ":", "return", "True", "return", "Path", "(", "filepath", ")", ".", "suffix", "in", "self", ".", "extensions", "if", "filepath", "else", "False...
:param filepath: :return: True or False
[ ":", "param", "filepath", ":", ":", "return", ":", "True", "or", "False" ]
4c10bed9ab46020904df565a9c0014a7f2e4f6b3
https://github.com/daxlab/Flask-Cache-Buster/blob/4c10bed9ab46020904df565a9c0014a7f2e4f6b3/flask_cache_buster/__init__.py#L20-L27
train
Check if the file is to be busted.
daxlab/Flask-Cache-Buster
flask_cache_buster/__init__.py
CacheBuster.register_cache_buster
def register_cache_buster(self, app, config=None): """ Register `app` in cache buster so that `url_for` adds a unique prefix to URLs generated for the `'static'` endpoint. Also make the app able to serve cache-busted static files. This allows setting long cache expiration values...
python
def register_cache_buster(self, app, config=None): """ Register `app` in cache buster so that `url_for` adds a unique prefix to URLs generated for the `'static'` endpoint. Also make the app able to serve cache-busted static files. This allows setting long cache expiration values...
[ "def", "register_cache_buster", "(", "self", ",", "app", ",", "config", "=", "None", ")", ":", "if", "not", "(", "config", "is", "None", "or", "isinstance", "(", "config", ",", "dict", ")", ")", ":", "raise", "ValueError", "(", "\"`config` must be an insta...
Register `app` in cache buster so that `url_for` adds a unique prefix to URLs generated for the `'static'` endpoint. Also make the app able to serve cache-busted static files. This allows setting long cache expiration values on static resources because whenever the resource changes, so ...
[ "Register", "app", "in", "cache", "buster", "so", "that", "url_for", "adds", "a", "unique", "prefix", "to", "URLs", "generated", "for", "the", "static", "endpoint", ".", "Also", "make", "the", "app", "able", "to", "serve", "cache", "-", "busted", "static",...
4c10bed9ab46020904df565a9c0014a7f2e4f6b3
https://github.com/daxlab/Flask-Cache-Buster/blob/4c10bed9ab46020904df565a9c0014a7f2e4f6b3/flask_cache_buster/__init__.py#L29-L93
train
Register app in cache buster so that url_for adds a unique prefix for the static files generated for the app able .
theherk/figgypy
figgypy/utils.py
env_or_default
def env_or_default(var, default=None): """Get environment variable or provide default. Args: var (str): environment variable to search for default (optional(str)): default to return """ if var in os.environ: return os.environ[var] return default
python
def env_or_default(var, default=None): """Get environment variable or provide default. Args: var (str): environment variable to search for default (optional(str)): default to return """ if var in os.environ: return os.environ[var] return default
[ "def", "env_or_default", "(", "var", ",", "default", "=", "None", ")", ":", "if", "var", "in", "os", ".", "environ", ":", "return", "os", ".", "environ", "[", "var", "]", "return", "default" ]
Get environment variable or provide default. Args: var (str): environment variable to search for default (optional(str)): default to return
[ "Get", "environment", "variable", "or", "provide", "default", "." ]
324d1b281a8df20a26b92f42bf7fda0cca892116
https://github.com/theherk/figgypy/blob/324d1b281a8df20a26b92f42bf7fda0cca892116/figgypy/utils.py#L11-L20
train
Get environment variable or provide default.
theherk/figgypy
figgypy/utils.py
kms_encrypt
def kms_encrypt(value, key, aws_config=None): """Encrypt and value with KMS key. Args: value (str): value to encrypt key (str): key id or alias aws_config (optional[dict]): aws credentials dict of arguments passed into boto3 session example: aws_c...
python
def kms_encrypt(value, key, aws_config=None): """Encrypt and value with KMS key. Args: value (str): value to encrypt key (str): key id or alias aws_config (optional[dict]): aws credentials dict of arguments passed into boto3 session example: aws_c...
[ "def", "kms_encrypt", "(", "value", ",", "key", ",", "aws_config", "=", "None", ")", ":", "aws_config", "=", "aws_config", "or", "{", "}", "aws", "=", "boto3", ".", "session", ".", "Session", "(", "*", "*", "aws_config", ")", "client", "=", "aws", "....
Encrypt and value with KMS key. Args: value (str): value to encrypt key (str): key id or alias aws_config (optional[dict]): aws credentials dict of arguments passed into boto3 session example: aws_creds = {'aws_access_key_id': aws_access_key_id, ...
[ "Encrypt", "and", "value", "with", "KMS", "key", "." ]
324d1b281a8df20a26b92f42bf7fda0cca892116
https://github.com/theherk/figgypy/blob/324d1b281a8df20a26b92f42bf7fda0cca892116/figgypy/utils.py#L23-L44
train
Encrypt and value with KMS key.
theherk/figgypy
figgypy/__init__.py
get_value
def get_value(*args, **kwargs): """Get from config object by exposing Config.get_value method. dict.get() method on Config.values """ global _config if _config is None: raise ValueError('configuration not set; must run figgypy.set_config first') return _config.get_value(*args, **kwargs)
python
def get_value(*args, **kwargs): """Get from config object by exposing Config.get_value method. dict.get() method on Config.values """ global _config if _config is None: raise ValueError('configuration not set; must run figgypy.set_config first') return _config.get_value(*args, **kwargs)
[ "def", "get_value", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "global", "_config", "if", "_config", "is", "None", ":", "raise", "ValueError", "(", "'configuration not set; must run figgypy.set_config first'", ")", "return", "_config", ".", "get_value", ...
Get from config object by exposing Config.get_value method. dict.get() method on Config.values
[ "Get", "from", "config", "object", "by", "exposing", "Config", ".", "get_value", "method", "." ]
324d1b281a8df20a26b92f42bf7fda0cca892116
https://github.com/theherk/figgypy/blob/324d1b281a8df20a26b92f42bf7fda0cca892116/figgypy/__init__.py#L27-L35
train
Get from config object by exposing Config. get_value method on Config. values
theherk/figgypy
figgypy/__init__.py
set_value
def set_value(*args, **kwargs): """Set value in the global Config object.""" global _config if _config is None: raise ValueError('configuration not set; must run figgypy.set_config first') return _config.set_value(*args, **kwargs)
python
def set_value(*args, **kwargs): """Set value in the global Config object.""" global _config if _config is None: raise ValueError('configuration not set; must run figgypy.set_config first') return _config.set_value(*args, **kwargs)
[ "def", "set_value", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "global", "_config", "if", "_config", "is", "None", ":", "raise", "ValueError", "(", "'configuration not set; must run figgypy.set_config first'", ")", "return", "_config", ".", "set_value", ...
Set value in the global Config object.
[ "Set", "value", "in", "the", "global", "Config", "object", "." ]
324d1b281a8df20a26b92f42bf7fda0cca892116
https://github.com/theherk/figgypy/blob/324d1b281a8df20a26b92f42bf7fda0cca892116/figgypy/__init__.py#L73-L78
train
Set value in the global Config object.
rhjdjong/SlipLib
sliplib/slip.py
encode
def encode(msg): """encode(msg) -> SLIP-encoded message. Encodes a message (a byte sequence) into a SLIP-encoded packet. :param bytes msg: The message that must be encoded :return: The SLIP-encoded message :rtype: bytes """ msg = bytes(msg) return END + msg.replace(ESC, ...
python
def encode(msg): """encode(msg) -> SLIP-encoded message. Encodes a message (a byte sequence) into a SLIP-encoded packet. :param bytes msg: The message that must be encoded :return: The SLIP-encoded message :rtype: bytes """ msg = bytes(msg) return END + msg.replace(ESC, ...
[ "def", "encode", "(", "msg", ")", ":", "msg", "=", "bytes", "(", "msg", ")", "return", "END", "+", "msg", ".", "replace", "(", "ESC", ",", "ESC", "+", "ESC_ESC", ")", ".", "replace", "(", "END", ",", "ESC", "+", "ESC_END", ")", "+", "END" ]
encode(msg) -> SLIP-encoded message. Encodes a message (a byte sequence) into a SLIP-encoded packet. :param bytes msg: The message that must be encoded :return: The SLIP-encoded message :rtype: bytes
[ "encode", "(", "msg", ")", "-", ">", "SLIP", "-", "encoded", "message", ".", "Encodes", "a", "message", "(", "a", "byte", "sequence", ")", "into", "a", "SLIP", "-", "encoded", "packet", ".", ":", "param", "bytes", "msg", ":", "The", "message", "that"...
8300dba3e512bca282380f234be34d75f4a73ce1
https://github.com/rhjdjong/SlipLib/blob/8300dba3e512bca282380f234be34d75f4a73ce1/sliplib/slip.py#L29-L40
train
Encodes a message into a message.