code string | signature string | docstring string | loss_without_docstring float64 | loss_with_docstring float64 | factor float64 |
|---|---|---|---|---|---|
config = ET.Element("config")
get_vnetwork_dvpgs = ET.Element("get_vnetwork_dvpgs")
config = get_vnetwork_dvpgs
output = ET.SubElement(get_vnetwork_dvpgs, "output")
vnetwork_dvpgs = ET.SubElement(output, "vnetwork-dvpgs")
vlan = ET.SubElement(vnetwork_dvpgs, "vla... | def get_vnetwork_dvpgs_output_vnetwork_dvpgs_vlan(self, **kwargs) | Auto Generated Code | 1.290176 | 1.199574 | 1.075528 |
config = ET.Element("config")
get_vnetwork_dvpgs = ET.Element("get_vnetwork_dvpgs")
config = get_vnetwork_dvpgs
output = ET.SubElement(get_vnetwork_dvpgs, "output")
has_more = ET.SubElement(output, "has-more")
has_more.text = kwargs.pop('has_more')
callb... | def get_vnetwork_dvpgs_output_has_more(self, **kwargs) | Auto Generated Code | 1.334519 | 1.215767 | 1.097676 |
config = ET.Element("config")
get_vnetwork_dvpgs = ET.Element("get_vnetwork_dvpgs")
config = get_vnetwork_dvpgs
output = ET.SubElement(get_vnetwork_dvpgs, "output")
instance_id = ET.SubElement(output, "instance-id")
instance_id.text = kwargs.pop('instance_id')
... | def get_vnetwork_dvpgs_output_instance_id(self, **kwargs) | Auto Generated Code | 1.349833 | 1.226329 | 1.10071 |
config = ET.Element("config")
get_vnetwork_dvs = ET.Element("get_vnetwork_dvs")
config = get_vnetwork_dvs
input = ET.SubElement(get_vnetwork_dvs, "input")
name = ET.SubElement(input, "name")
name.text = kwargs.pop('name')
callback = kwargs.pop('callback'... | def get_vnetwork_dvs_input_name(self, **kwargs) | Auto Generated Code | 1.470289 | 1.316308 | 1.11698 |
config = ET.Element("config")
get_vnetwork_dvs = ET.Element("get_vnetwork_dvs")
config = get_vnetwork_dvs
input = ET.SubElement(get_vnetwork_dvs, "input")
vcenter = ET.SubElement(input, "vcenter")
vcenter.text = kwargs.pop('vcenter')
callback = kwargs.po... | def get_vnetwork_dvs_input_vcenter(self, **kwargs) | Auto Generated Code | 1.453457 | 1.273409 | 1.141391 |
config = ET.Element("config")
get_vnetwork_dvs = ET.Element("get_vnetwork_dvs")
config = get_vnetwork_dvs
input = ET.SubElement(get_vnetwork_dvs, "input")
datacenter = ET.SubElement(input, "datacenter")
datacenter.text = kwargs.pop('datacenter')
callback... | def get_vnetwork_dvs_input_datacenter(self, **kwargs) | Auto Generated Code | 1.452374 | 1.306497 | 1.111655 |
config = ET.Element("config")
get_vnetwork_dvs = ET.Element("get_vnetwork_dvs")
config = get_vnetwork_dvs
input = ET.SubElement(get_vnetwork_dvs, "input")
last_rcvd_instance = ET.SubElement(input, "last-rcvd-instance")
last_rcvd_instance.text = kwargs.pop('last_r... | def get_vnetwork_dvs_input_last_rcvd_instance(self, **kwargs) | Auto Generated Code | 1.347134 | 1.232314 | 1.093174 |
config = ET.Element("config")
get_vnetwork_dvs = ET.Element("get_vnetwork_dvs")
config = get_vnetwork_dvs
output = ET.SubElement(get_vnetwork_dvs, "output")
vnetwork_dvs = ET.SubElement(output, "vnetwork-dvs")
name = ET.SubElement(vnetwork_dvs, "name")
na... | def get_vnetwork_dvs_output_vnetwork_dvs_name(self, **kwargs) | Auto Generated Code | 1.329103 | 1.219049 | 1.090279 |
config = ET.Element("config")
get_vnetwork_dvs = ET.Element("get_vnetwork_dvs")
config = get_vnetwork_dvs
output = ET.SubElement(get_vnetwork_dvs, "output")
vnetwork_dvs = ET.SubElement(output, "vnetwork-dvs")
host = ET.SubElement(vnetwork_dvs, "host")
ho... | def get_vnetwork_dvs_output_vnetwork_dvs_host(self, **kwargs) | Auto Generated Code | 1.326099 | 1.217353 | 1.08933 |
config = ET.Element("config")
get_vnetwork_dvs = ET.Element("get_vnetwork_dvs")
config = get_vnetwork_dvs
output = ET.SubElement(get_vnetwork_dvs, "output")
vnetwork_dvs = ET.SubElement(output, "vnetwork-dvs")
datacenter = ET.SubElement(vnetwork_dvs, "datacenter"... | def get_vnetwork_dvs_output_vnetwork_dvs_datacenter(self, **kwargs) | Auto Generated Code | 1.305739 | 1.213969 | 1.075595 |
config = ET.Element("config")
get_vnetwork_dvs = ET.Element("get_vnetwork_dvs")
config = get_vnetwork_dvs
output = ET.SubElement(get_vnetwork_dvs, "output")
vnetwork_dvs = ET.SubElement(output, "vnetwork-dvs")
pnic = ET.SubElement(vnetwork_dvs, "pnic")
pn... | def get_vnetwork_dvs_output_vnetwork_dvs_pnic(self, **kwargs) | Auto Generated Code | 1.304852 | 1.204218 | 1.083567 |
config = ET.Element("config")
get_vnetwork_dvs = ET.Element("get_vnetwork_dvs")
config = get_vnetwork_dvs
output = ET.SubElement(get_vnetwork_dvs, "output")
vnetwork_dvs = ET.SubElement(output, "vnetwork-dvs")
interface_type = ET.SubElement(vnetwork_dvs, "interfa... | def get_vnetwork_dvs_output_vnetwork_dvs_interface_type(self, **kwargs) | Auto Generated Code | 1.293814 | 1.217312 | 1.062845 |
config = ET.Element("config")
get_vnetwork_dvs = ET.Element("get_vnetwork_dvs")
config = get_vnetwork_dvs
output = ET.SubElement(get_vnetwork_dvs, "output")
vnetwork_dvs = ET.SubElement(output, "vnetwork-dvs")
interface_name = ET.SubElement(vnetwork_dvs, "interfa... | def get_vnetwork_dvs_output_vnetwork_dvs_interface_name(self, **kwargs) | Auto Generated Code | 1.294074 | 1.212434 | 1.067336 |
config = ET.Element("config")
get_vnetwork_dvs = ET.Element("get_vnetwork_dvs")
config = get_vnetwork_dvs
output = ET.SubElement(get_vnetwork_dvs, "output")
has_more = ET.SubElement(output, "has-more")
has_more.text = kwargs.pop('has_more')
callback = kw... | def get_vnetwork_dvs_output_has_more(self, **kwargs) | Auto Generated Code | 1.37815 | 1.231626 | 1.118968 |
config = ET.Element("config")
get_vnetwork_dvs = ET.Element("get_vnetwork_dvs")
config = get_vnetwork_dvs
output = ET.SubElement(get_vnetwork_dvs, "output")
instance_id = ET.SubElement(output, "instance-id")
instance_id.text = kwargs.pop('instance_id')
c... | def get_vnetwork_dvs_output_instance_id(self, **kwargs) | Auto Generated Code | 1.402222 | 1.246081 | 1.125306 |
config = ET.Element("config")
get_vnetwork_vswitches = ET.Element("get_vnetwork_vswitches")
config = get_vnetwork_vswitches
input = ET.SubElement(get_vnetwork_vswitches, "input")
name = ET.SubElement(input, "name")
name.text = kwargs.pop('name')
callback... | def get_vnetwork_vswitches_input_name(self, **kwargs) | Auto Generated Code | 1.371302 | 1.291374 | 1.061894 |
config = ET.Element("config")
get_vnetwork_vswitches = ET.Element("get_vnetwork_vswitches")
config = get_vnetwork_vswitches
input = ET.SubElement(get_vnetwork_vswitches, "input")
vcenter = ET.SubElement(input, "vcenter")
vcenter.text = kwargs.pop('vcenter')
... | def get_vnetwork_vswitches_input_vcenter(self, **kwargs) | Auto Generated Code | 1.355708 | 1.254943 | 1.080294 |
config = ET.Element("config")
get_vnetwork_vswitches = ET.Element("get_vnetwork_vswitches")
config = get_vnetwork_vswitches
input = ET.SubElement(get_vnetwork_vswitches, "input")
datacenter = ET.SubElement(input, "datacenter")
datacenter.text = kwargs.pop('datace... | def get_vnetwork_vswitches_input_datacenter(self, **kwargs) | Auto Generated Code | 1.357912 | 1.301841 | 1.043071 |
config = ET.Element("config")
get_vnetwork_vswitches = ET.Element("get_vnetwork_vswitches")
config = get_vnetwork_vswitches
input = ET.SubElement(get_vnetwork_vswitches, "input")
last_rcvd_instance = ET.SubElement(input, "last-rcvd-instance")
last_rcvd_instance.t... | def get_vnetwork_vswitches_input_last_rcvd_instance(self, **kwargs) | Auto Generated Code | 1.286699 | 1.20609 | 1.066835 |
config = ET.Element("config")
get_vnetwork_vswitches = ET.Element("get_vnetwork_vswitches")
config = get_vnetwork_vswitches
output = ET.SubElement(get_vnetwork_vswitches, "output")
vnetwork_vswitches = ET.SubElement(output, "vnetwork-vswitches")
name = ET.SubElem... | def get_vnetwork_vswitches_output_vnetwork_vswitches_name(self, **kwargs) | Auto Generated Code | 1.301134 | 1.231963 | 1.056147 |
config = ET.Element("config")
get_vnetwork_vswitches = ET.Element("get_vnetwork_vswitches")
config = get_vnetwork_vswitches
output = ET.SubElement(get_vnetwork_vswitches, "output")
vnetwork_vswitches = ET.SubElement(output, "vnetwork-vswitches")
host = ET.SubElem... | def get_vnetwork_vswitches_output_vnetwork_vswitches_host(self, **kwargs) | Auto Generated Code | 1.300114 | 1.232629 | 1.054749 |
config = ET.Element("config")
get_vnetwork_vswitches = ET.Element("get_vnetwork_vswitches")
config = get_vnetwork_vswitches
output = ET.SubElement(get_vnetwork_vswitches, "output")
vnetwork_vswitches = ET.SubElement(output, "vnetwork-vswitches")
datacenter = ET.S... | def get_vnetwork_vswitches_output_vnetwork_vswitches_datacenter(self, **kwargs) | Auto Generated Code | 1.287509 | 1.237064 | 1.040778 |
config = ET.Element("config")
get_vnetwork_vswitches = ET.Element("get_vnetwork_vswitches")
config = get_vnetwork_vswitches
output = ET.SubElement(get_vnetwork_vswitches, "output")
vnetwork_vswitches = ET.SubElement(output, "vnetwork-vswitches")
pnic = ET.SubElem... | def get_vnetwork_vswitches_output_vnetwork_vswitches_pnic(self, **kwargs) | Auto Generated Code | 1.283572 | 1.224547 | 1.048201 |
config = ET.Element("config")
get_vnetwork_vswitches = ET.Element("get_vnetwork_vswitches")
config = get_vnetwork_vswitches
output = ET.SubElement(get_vnetwork_vswitches, "output")
vnetwork_vswitches = ET.SubElement(output, "vnetwork-vswitches")
interface_type = ... | def get_vnetwork_vswitches_output_vnetwork_vswitches_interface_type(self, **kwargs) | Auto Generated Code | 1.28475 | 1.225195 | 1.048609 |
config = ET.Element("config")
get_vnetwork_vswitches = ET.Element("get_vnetwork_vswitches")
config = get_vnetwork_vswitches
output = ET.SubElement(get_vnetwork_vswitches, "output")
vnetwork_vswitches = ET.SubElement(output, "vnetwork-vswitches")
interface_name = ... | def get_vnetwork_vswitches_output_vnetwork_vswitches_interface_name(self, **kwargs) | Auto Generated Code | 1.27801 | 1.220491 | 1.047128 |
config = ET.Element("config")
get_vnetwork_vswitches = ET.Element("get_vnetwork_vswitches")
config = get_vnetwork_vswitches
output = ET.SubElement(get_vnetwork_vswitches, "output")
has_more = ET.SubElement(output, "has-more")
has_more.text = kwargs.pop('has_more'... | def get_vnetwork_vswitches_output_has_more(self, **kwargs) | Auto Generated Code | 1.32753 | 1.215229 | 1.092411 |
config = ET.Element("config")
get_vnetwork_vswitches = ET.Element("get_vnetwork_vswitches")
config = get_vnetwork_vswitches
output = ET.SubElement(get_vnetwork_vswitches, "output")
instance_id = ET.SubElement(output, "instance-id")
instance_id.text = kwargs.pop('... | def get_vnetwork_vswitches_output_instance_id(self, **kwargs) | Auto Generated Code | 1.316363 | 1.233057 | 1.067561 |
config = ET.Element("config")
get_vnetwork_portgroups = ET.Element("get_vnetwork_portgroups")
config = get_vnetwork_portgroups
input = ET.SubElement(get_vnetwork_portgroups, "input")
name = ET.SubElement(input, "name")
name.text = kwargs.pop('name')
call... | def get_vnetwork_portgroups_input_name(self, **kwargs) | Auto Generated Code | 1.391917 | 1.293722 | 1.075902 |
config = ET.Element("config")
get_vnetwork_portgroups = ET.Element("get_vnetwork_portgroups")
config = get_vnetwork_portgroups
input = ET.SubElement(get_vnetwork_portgroups, "input")
vcenter = ET.SubElement(input, "vcenter")
vcenter.text = kwargs.pop('vcenter')
... | def get_vnetwork_portgroups_input_vcenter(self, **kwargs) | Auto Generated Code | 1.38245 | 1.261086 | 1.096238 |
config = ET.Element("config")
get_vnetwork_portgroups = ET.Element("get_vnetwork_portgroups")
config = get_vnetwork_portgroups
input = ET.SubElement(get_vnetwork_portgroups, "input")
datacenter = ET.SubElement(input, "datacenter")
datacenter.text = kwargs.pop('da... | def get_vnetwork_portgroups_input_datacenter(self, **kwargs) | Auto Generated Code | 1.374901 | 1.294276 | 1.062293 |
config = ET.Element("config")
get_vnetwork_portgroups = ET.Element("get_vnetwork_portgroups")
config = get_vnetwork_portgroups
input = ET.SubElement(get_vnetwork_portgroups, "input")
last_rcvd_instance = ET.SubElement(input, "last-rcvd-instance")
last_rcvd_instan... | def get_vnetwork_portgroups_input_last_rcvd_instance(self, **kwargs) | Auto Generated Code | 1.299037 | 1.214581 | 1.069535 |
config = ET.Element("config")
get_vnetwork_portgroups = ET.Element("get_vnetwork_portgroups")
config = get_vnetwork_portgroups
output = ET.SubElement(get_vnetwork_portgroups, "output")
vnetwork_pgs = ET.SubElement(output, "vnetwork-pgs")
name = ET.SubElement(vnet... | def get_vnetwork_portgroups_output_vnetwork_pgs_name(self, **kwargs) | Auto Generated Code | 1.299045 | 1.224195 | 1.061142 |
config = ET.Element("config")
get_vnetwork_portgroups = ET.Element("get_vnetwork_portgroups")
config = get_vnetwork_portgroups
output = ET.SubElement(get_vnetwork_portgroups, "output")
vnetwork_pgs = ET.SubElement(output, "vnetwork-pgs")
datacenter = ET.SubElemen... | def get_vnetwork_portgroups_output_vnetwork_pgs_datacenter(self, **kwargs) | Auto Generated Code | 1.2808 | 1.211872 | 1.056876 |
config = ET.Element("config")
get_vnetwork_portgroups = ET.Element("get_vnetwork_portgroups")
config = get_vnetwork_portgroups
output = ET.SubElement(get_vnetwork_portgroups, "output")
vnetwork_pgs = ET.SubElement(output, "vnetwork-pgs")
vs_nn = ET.SubElement(vne... | def get_vnetwork_portgroups_output_vnetwork_pgs_vs_nn(self, **kwargs) | Auto Generated Code | 1.263671 | 1.200656 | 1.052483 |
config = ET.Element("config")
get_vnetwork_portgroups = ET.Element("get_vnetwork_portgroups")
config = get_vnetwork_portgroups
output = ET.SubElement(get_vnetwork_portgroups, "output")
vnetwork_pgs = ET.SubElement(output, "vnetwork-pgs")
vlan = ET.SubElement(vnet... | def get_vnetwork_portgroups_output_vnetwork_pgs_vlan(self, **kwargs) | Auto Generated Code | 1.290202 | 1.212709 | 1.063901 |
config = ET.Element("config")
get_vnetwork_portgroups = ET.Element("get_vnetwork_portgroups")
config = get_vnetwork_portgroups
output = ET.SubElement(get_vnetwork_portgroups, "output")
vnetwork_pgs = ET.SubElement(output, "vnetwork-pgs")
host_nn = ET.SubElement(v... | def get_vnetwork_portgroups_output_vnetwork_pgs_host_nn(self, **kwargs) | Auto Generated Code | 1.268036 | 1.208483 | 1.049279 |
config = ET.Element("config")
get_vnetwork_portgroups = ET.Element("get_vnetwork_portgroups")
config = get_vnetwork_portgroups
output = ET.SubElement(get_vnetwork_portgroups, "output")
has_more = ET.SubElement(output, "has-more")
has_more.text = kwargs.pop('has_m... | def get_vnetwork_portgroups_output_has_more(self, **kwargs) | Auto Generated Code | 1.353127 | 1.228327 | 1.101601 |
config = ET.Element("config")
get_vnetwork_portgroups = ET.Element("get_vnetwork_portgroups")
config = get_vnetwork_portgroups
output = ET.SubElement(get_vnetwork_portgroups, "output")
instance_id = ET.SubElement(output, "instance-id")
instance_id.text = kwargs.p... | def get_vnetwork_portgroups_output_instance_id(self, **kwargs) | Auto Generated Code | 1.343124 | 1.241607 | 1.081763 |
config = ET.Element("config")
get_vmpolicy_macaddr = ET.Element("get_vmpolicy_macaddr")
config = get_vmpolicy_macaddr
input = ET.SubElement(get_vmpolicy_macaddr, "input")
mac = ET.SubElement(input, "mac")
mac.text = kwargs.pop('mac')
callback = kwargs.po... | def get_vmpolicy_macaddr_input_mac(self, **kwargs) | Auto Generated Code | 1.322517 | 1.243185 | 1.063814 |
config = ET.Element("config")
get_vmpolicy_macaddr = ET.Element("get_vmpolicy_macaddr")
config = get_vmpolicy_macaddr
input = ET.SubElement(get_vmpolicy_macaddr, "input")
vcenter = ET.SubElement(input, "vcenter")
vcenter.text = kwargs.pop('vcenter')
call... | def get_vmpolicy_macaddr_input_vcenter(self, **kwargs) | Auto Generated Code | 1.338864 | 1.232452 | 1.086342 |
config = ET.Element("config")
get_vmpolicy_macaddr = ET.Element("get_vmpolicy_macaddr")
config = get_vmpolicy_macaddr
input = ET.SubElement(get_vmpolicy_macaddr, "input")
datacenter = ET.SubElement(input, "datacenter")
datacenter.text = kwargs.pop('datacenter')
... | def get_vmpolicy_macaddr_input_datacenter(self, **kwargs) | Auto Generated Code | 1.31038 | 1.229267 | 1.065985 |
config = ET.Element("config")
get_vmpolicy_macaddr = ET.Element("get_vmpolicy_macaddr")
config = get_vmpolicy_macaddr
input = ET.SubElement(get_vmpolicy_macaddr, "input")
last_rcvd_instance = ET.SubElement(input, "last-rcvd-instance")
last_rcvd_instance.text = kw... | def get_vmpolicy_macaddr_input_last_rcvd_instance(self, **kwargs) | Auto Generated Code | 1.280348 | 1.213744 | 1.054875 |
config = ET.Element("config")
get_vmpolicy_macaddr = ET.Element("get_vmpolicy_macaddr")
config = get_vmpolicy_macaddr
output = ET.SubElement(get_vmpolicy_macaddr, "output")
vmpolicy_macaddr = ET.SubElement(output, "vmpolicy-macaddr")
mac = ET.SubElement(vmpolicy_... | def get_vmpolicy_macaddr_output_vmpolicy_macaddr_mac(self, **kwargs) | Auto Generated Code | 1.25787 | 1.192679 | 1.05466 |
config = ET.Element("config")
get_vmpolicy_macaddr = ET.Element("get_vmpolicy_macaddr")
config = get_vmpolicy_macaddr
output = ET.SubElement(get_vmpolicy_macaddr, "output")
vmpolicy_macaddr = ET.SubElement(output, "vmpolicy-macaddr")
name = ET.SubElement(vmpolicy... | def get_vmpolicy_macaddr_output_vmpolicy_macaddr_name(self, **kwargs) | Auto Generated Code | 1.255603 | 1.194453 | 1.051195 |
config = ET.Element("config")
get_vmpolicy_macaddr = ET.Element("get_vmpolicy_macaddr")
config = get_vmpolicy_macaddr
output = ET.SubElement(get_vmpolicy_macaddr, "output")
vmpolicy_macaddr = ET.SubElement(output, "vmpolicy-macaddr")
datacenter = ET.SubElement(vm... | def get_vmpolicy_macaddr_output_vmpolicy_macaddr_datacenter(self, **kwargs) | Auto Generated Code | 1.244688 | 1.186466 | 1.049071 |
config = ET.Element("config")
get_vmpolicy_macaddr = ET.Element("get_vmpolicy_macaddr")
config = get_vmpolicy_macaddr
output = ET.SubElement(get_vmpolicy_macaddr, "output")
vmpolicy_macaddr = ET.SubElement(output, "vmpolicy-macaddr")
dvpg_nn = ET.SubElement(vmpol... | def get_vmpolicy_macaddr_output_vmpolicy_macaddr_dvpg_nn(self, **kwargs) | Auto Generated Code | 1.262668 | 1.183462 | 1.066927 |
config = ET.Element("config")
get_vmpolicy_macaddr = ET.Element("get_vmpolicy_macaddr")
config = get_vmpolicy_macaddr
output = ET.SubElement(get_vmpolicy_macaddr, "output")
vmpolicy_macaddr = ET.SubElement(output, "vmpolicy-macaddr")
port_nn = ET.SubElement(vmpol... | def get_vmpolicy_macaddr_output_vmpolicy_macaddr_port_nn(self, **kwargs) | Auto Generated Code | 1.256923 | 1.192059 | 1.054413 |
config = ET.Element("config")
get_vmpolicy_macaddr = ET.Element("get_vmpolicy_macaddr")
config = get_vmpolicy_macaddr
output = ET.SubElement(get_vmpolicy_macaddr, "output")
vmpolicy_macaddr = ET.SubElement(output, "vmpolicy-macaddr")
port_prof = ET.SubElement(vmp... | def get_vmpolicy_macaddr_output_vmpolicy_macaddr_port_prof(self, **kwargs) | Auto Generated Code | 1.251206 | 1.201466 | 1.041399 |
config = ET.Element("config")
get_vmpolicy_macaddr = ET.Element("get_vmpolicy_macaddr")
config = get_vmpolicy_macaddr
output = ET.SubElement(get_vmpolicy_macaddr, "output")
has_more = ET.SubElement(output, "has-more")
has_more.text = kwargs.pop('has_more')
... | def get_vmpolicy_macaddr_output_has_more(self, **kwargs) | Auto Generated Code | 1.290797 | 1.198043 | 1.077421 |
config = ET.Element("config")
get_vmpolicy_macaddr = ET.Element("get_vmpolicy_macaddr")
config = get_vmpolicy_macaddr
output = ET.SubElement(get_vmpolicy_macaddr, "output")
instance_id = ET.SubElement(output, "instance-id")
instance_id.text = kwargs.pop('instance... | def get_vmpolicy_macaddr_output_instance_id(self, **kwargs) | Auto Generated Code | 1.286789 | 1.216999 | 1.057346 |
config = ET.Element("config")
vcenter = ET.SubElement(config, "vcenter", xmlns="urn:brocade.com:mgmt:brocade-vswitch")
id = ET.SubElement(vcenter, "id")
id.text = kwargs.pop('id')
callback = kwargs.pop('callback', self._callback)
return callback(config) | def vcenter_id(self, **kwargs) | Auto Generated Code | 1.799288 | 1.525371 | 1.179574 |
config = ET.Element("config")
vcenter = ET.SubElement(config, "vcenter", xmlns="urn:brocade.com:mgmt:brocade-vswitch")
id_key = ET.SubElement(vcenter, "id")
id_key.text = kwargs.pop('id')
credentials = ET.SubElement(vcenter, "credentials")
url = ET.SubElement(cre... | def vcenter_credentials_url(self, **kwargs) | Auto Generated Code | 1.813404 | 1.4595 | 1.242483 |
config = ET.Element("config")
vcenter = ET.SubElement(config, "vcenter", xmlns="urn:brocade.com:mgmt:brocade-vswitch")
id_key = ET.SubElement(vcenter, "id")
id_key.text = kwargs.pop('id')
credentials = ET.SubElement(vcenter, "credentials")
username = ET.SubElemen... | def vcenter_credentials_username(self, **kwargs) | Auto Generated Code | 1.717227 | 1.430305 | 1.200602 |
config = ET.Element("config")
vcenter = ET.SubElement(config, "vcenter", xmlns="urn:brocade.com:mgmt:brocade-vswitch")
id_key = ET.SubElement(vcenter, "id")
id_key.text = kwargs.pop('id')
credentials = ET.SubElement(vcenter, "credentials")
password = ET.SubElemen... | def vcenter_credentials_password(self, **kwargs) | Auto Generated Code | 1.700125 | 1.422501 | 1.195166 |
config = ET.Element("config")
vcenter = ET.SubElement(config, "vcenter", xmlns="urn:brocade.com:mgmt:brocade-vswitch")
id_key = ET.SubElement(vcenter, "id")
id_key.text = kwargs.pop('id')
credentials = ET.SubElement(vcenter, "credentials")
vrf_name = ET.SubElemen... | def vcenter_credentials_vrf_name(self, **kwargs) | Auto Generated Code | 1.535397 | 1.366537 | 1.123568 |
config = ET.Element("config")
vcenter = ET.SubElement(config, "vcenter", xmlns="urn:brocade.com:mgmt:brocade-vswitch")
id_key = ET.SubElement(vcenter, "id")
id_key.text = kwargs.pop('id')
activate = ET.SubElement(vcenter, "activate")
callback = kwargs.pop('callb... | def vcenter_activate(self, **kwargs) | Auto Generated Code | 1.797886 | 1.484941 | 1.210746 |
config = ET.Element("config")
vcenter = ET.SubElement(config, "vcenter", xmlns="urn:brocade.com:mgmt:brocade-vswitch")
id_key = ET.SubElement(vcenter, "id")
id_key.text = kwargs.pop('id')
interval = ET.SubElement(vcenter, "interval")
interval.text = kwargs.pop('i... | def vcenter_interval(self, **kwargs) | Auto Generated Code | 1.638335 | 1.420655 | 1.153225 |
config = ET.Element("config")
vcenter = ET.SubElement(config, "vcenter", xmlns="urn:brocade.com:mgmt:brocade-vswitch")
id_key = ET.SubElement(vcenter, "id")
id_key.text = kwargs.pop('id')
discovery = ET.SubElement(vcenter, "discovery")
ignore_delete_all_response ... | def vcenter_discovery_ignore_delete_all_response_ignore_value(self, **kwargs) | Auto Generated Code | 1.431325 | 1.318088 | 1.08591 |
config = ET.Element("config")
vcenter = ET.SubElement(config, "vcenter", xmlns="urn:brocade.com:mgmt:brocade-vswitch")
id_key = ET.SubElement(vcenter, "id")
id_key.text = kwargs.pop('id')
discovery = ET.SubElement(vcenter, "discovery")
ignore_delete_all_response ... | def vcenter_discovery_ignore_delete_all_response_always(self, **kwargs) | Auto Generated Code | 1.504845 | 1.354689 | 1.110842 |
config = ET.Element("config")
fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe")
fcoe_map = ET.SubElement(fcoe, "fcoe-map")
fcoe_map_name_key = ET.SubElement(fcoe_map, "fcoe-map-name")
fcoe_map_name_key.text = kwargs.pop('fcoe_map_name')
... | def fcoe_fcoe_map_fcoe_map_fabric_map_fcoe_map_fabric_map_name(self, **kwargs) | Auto Generated Code | 1.22532 | 1.171703 | 1.04576 |
config = ET.Element("config")
fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe")
fcoe_fcf_map = ET.SubElement(fcoe, "fcoe-fcf-map")
fcf_map_name = ET.SubElement(fcoe_fcf_map, "fcf-map-name")
fcf_map_name.text = kwargs.pop('fcf_map_name')
... | def fcoe_fcoe_fcf_map_fcf_map_name(self, **kwargs) | Auto Generated Code | 1.303713 | 1.228221 | 1.061465 |
config = ET.Element("config")
fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe")
fcoe_fcf_map = ET.SubElement(fcoe, "fcoe-fcf-map")
fcf_map_name_key = ET.SubElement(fcoe_fcf_map, "fcf-map-name")
fcf_map_name_key.text = kwargs.pop('fcf_map_nam... | def fcoe_fcoe_fcf_map_fcf_map_fcoe_map_fcf_map_fcoe_map_leaf(self, **kwargs) | Auto Generated Code | 1.281286 | 1.24725 | 1.027289 |
config = ET.Element("config")
fcoe = ET.SubElement(config, "fcoe", xmlns="urn:brocade.com:mgmt:brocade-fcoe")
fcoe_fcf_map = ET.SubElement(fcoe, "fcoe-fcf-map")
fcf_map_name_key = ET.SubElement(fcoe_fcf_map, "fcf-map-name")
fcf_map_name_key.text = kwargs.pop('fcf_map_nam... | def fcoe_fcoe_fcf_map_fcf_map_ag_rbid(self, **kwargs) | Auto Generated Code | 1.25456 | 1.200272 | 1.045229 |
extractions = {}
def extract_pre_block(matchobj):
match = matchobj.group(0)
hashed_match = hashlib.md5(match.encode('utf-8')).hexdigest()
extractions[hashed_match] = match
result = "{gfm-extraction-%s}" % hashed_match
return result
def escape_underscore(matchob... | def gfm(text) | Processes Markdown according to GitHub Flavored Markdown spec. | 3.073135 | 3.088904 | 0.994895 |
text = gfm(text)
text = markdown_lib.markdown(text)
return text | def markdown(text) | Processes GFM then converts it to HTML. | 5.64058 | 4.229089 | 1.333758 |
config = ET.Element("config")
get_port_channel_detail = ET.Element("get_port_channel_detail")
config = get_port_channel_detail
input = ET.SubElement(get_port_channel_detail, "input")
last_aggregator_id = ET.SubElement(input, "last-aggregator-id")
last_aggregator_... | def get_port_channel_detail_input_last_aggregator_id(self, **kwargs) | Auto Generated Code | 1.292129 | 1.207569 | 1.070025 |
config = ET.Element("config")
get_mac_address_table = ET.Element("get_mac_address_table")
config = get_mac_address_table
input = ET.SubElement(get_mac_address_table, "input")
request_type = ET.SubElement(input, "request-type")
get_interface_based_request = ET.Sub... | def get_mac_address_table_input_request_type_get_interface_based_request_forwarding_interface_interface_type(self, **kwargs) | Auto Generated Code | 1.216674 | 1.178434 | 1.03245 |
config = ET.Element("config")
get_mac_address_table = ET.Element("get_mac_address_table")
config = get_mac_address_table
input = ET.SubElement(get_mac_address_table, "input")
request_type = ET.SubElement(input, "request-type")
get_interface_based_request = ET.Sub... | def get_mac_address_table_input_request_type_get_interface_based_request_forwarding_interface_interface_name(self, **kwargs) | Auto Generated Code | 1.216419 | 1.175946 | 1.034418 |
config = ET.Element("config")
get_mac_address_table = ET.Element("get_mac_address_table")
config = get_mac_address_table
input = ET.SubElement(get_mac_address_table, "input")
request_type = ET.SubElement(input, "request-type")
get_interface_based_request = ET.Sub... | def get_mac_address_table_input_request_type_get_interface_based_request_mac_type(self, **kwargs) | Auto Generated Code | 1.240949 | 1.188653 | 1.043996 |
config = ET.Element("config")
get_mac_address_table = ET.Element("get_mac_address_table")
config = get_mac_address_table
input = ET.SubElement(get_mac_address_table, "input")
request_type = ET.SubElement(input, "request-type")
get_next_request = ET.SubElement(req... | def get_mac_address_table_input_request_type_get_next_request_forwarding_interface_type(self, **kwargs) | Auto Generated Code | 1.22192 | 1.189883 | 1.026924 |
config = ET.Element("config")
get_mac_address_table = ET.Element("get_mac_address_table")
config = get_mac_address_table
input = ET.SubElement(get_mac_address_table, "input")
request_type = ET.SubElement(input, "request-type")
get_next_request = ET.SubElement(req... | def get_mac_address_table_input_request_type_get_next_request_forwarding_interface_name(self, **kwargs) | Auto Generated Code | 1.219886 | 1.185933 | 1.028629 |
config = ET.Element("config")
get_mac_address_table = ET.Element("get_mac_address_table")
config = get_mac_address_table
input = ET.SubElement(get_mac_address_table, "input")
request_type = ET.SubElement(input, "request-type")
get_next_request = ET.SubElement(req... | def get_mac_address_table_input_request_type_get_next_request_mac_address_type(self, **kwargs) | Auto Generated Code | 1.239585 | 1.188107 | 1.043328 |
config = ET.Element("config")
mac = ET.SubElement(config, "mac", xmlns="urn:brocade.com:mgmt:brocade-mac-access-list")
access_list = ET.SubElement(mac, "access-list")
standard = ET.SubElement(access_list, "standard")
name = ET.SubElement(standard, "name")
name.te... | def mac_access_list_standard_name(self, **kwargs) | Auto Generated Code | 1.345757 | 1.265917 | 1.063069 |
config = ET.Element("config")
mac = ET.SubElement(config, "mac", xmlns="urn:brocade.com:mgmt:brocade-mac-access-list")
access_list = ET.SubElement(mac, "access-list")
standard = ET.SubElement(access_list, "standard")
name_key = ET.SubElement(standard, "name")
nam... | def mac_access_list_standard_hide_mac_acl_std_seq_seq_id(self, **kwargs) | Auto Generated Code | 1.272613 | 1.220302 | 1.042867 |
config = ET.Element("config")
mac = ET.SubElement(config, "mac", xmlns="urn:brocade.com:mgmt:brocade-mac-access-list")
access_list = ET.SubElement(mac, "access-list")
standard = ET.SubElement(access_list, "standard")
name_key = ET.SubElement(standard, "name")
nam... | def mac_access_list_standard_hide_mac_acl_std_seq_action(self, **kwargs) | Auto Generated Code | 1.304605 | 1.258977 | 1.036242 |
config = ET.Element("config")
mac = ET.SubElement(config, "mac", xmlns="urn:brocade.com:mgmt:brocade-mac-access-list")
access_list = ET.SubElement(mac, "access-list")
extended = ET.SubElement(access_list, "extended")
name = ET.SubElement(extended, "name")
name.te... | def mac_access_list_extended_name(self, **kwargs) | Auto Generated Code | 1.348112 | 1.266537 | 1.064407 |
config = ET.Element("config")
mac = ET.SubElement(config, "mac", xmlns="urn:brocade.com:mgmt:brocade-mac-access-list")
access_list = ET.SubElement(mac, "access-list")
extended = ET.SubElement(access_list, "extended")
name_key = ET.SubElement(extended, "name")
nam... | def mac_access_list_extended_hide_mac_acl_ext_seq_seq_id(self, **kwargs) | Auto Generated Code | 1.270228 | 1.207319 | 1.052107 |
config = ET.Element("config")
mac = ET.SubElement(config, "mac", xmlns="urn:brocade.com:mgmt:brocade-mac-access-list")
access_list = ET.SubElement(mac, "access-list")
extended = ET.SubElement(access_list, "extended")
name_key = ET.SubElement(extended, "name")
nam... | def mac_access_list_extended_hide_mac_acl_ext_seq_action(self, **kwargs) | Auto Generated Code | 1.304637 | 1.253235 | 1.041015 |
config = ET.Element("config")
get_mac_acl_for_intf = ET.Element("get_mac_acl_for_intf")
config = get_mac_acl_for_intf
input = ET.SubElement(get_mac_acl_for_intf, "input")
interface_type = ET.SubElement(input, "interface-type")
interface_type.text = kwargs.pop('in... | def get_mac_acl_for_intf_input_interface_type(self, **kwargs) | Auto Generated Code | 1.287369 | 1.233378 | 1.043775 |
config = ET.Element("config")
get_mac_acl_for_intf = ET.Element("get_mac_acl_for_intf")
config = get_mac_acl_for_intf
input = ET.SubElement(get_mac_acl_for_intf, "input")
interface_name = ET.SubElement(input, "interface-name")
interface_name.text = kwargs.pop('in... | def get_mac_acl_for_intf_input_interface_name(self, **kwargs) | Auto Generated Code | 1.281929 | 1.222559 | 1.048561 |
config = ET.Element("config")
get_mac_acl_for_intf = ET.Element("get_mac_acl_for_intf")
config = get_mac_acl_for_intf
input = ET.SubElement(get_mac_acl_for_intf, "input")
direction = ET.SubElement(input, "direction")
direction.text = kwargs.pop('direction')
... | def get_mac_acl_for_intf_input_direction(self, **kwargs) | Auto Generated Code | 1.310736 | 1.251348 | 1.047459 |
config = ET.Element("config")
get_mac_acl_for_intf = ET.Element("get_mac_acl_for_intf")
config = get_mac_acl_for_intf
output = ET.SubElement(get_mac_acl_for_intf, "output")
interface = ET.SubElement(output, "interface")
interface_name_key = ET.SubElement(interfac... | def get_mac_acl_for_intf_output_interface_interface_type(self, **kwargs) | Auto Generated Code | 1.22748 | 1.192432 | 1.029393 |
config = ET.Element("config")
get_mac_acl_for_intf = ET.Element("get_mac_acl_for_intf")
config = get_mac_acl_for_intf
output = ET.SubElement(get_mac_acl_for_intf, "output")
interface = ET.SubElement(output, "interface")
interface_type_key = ET.SubElement(interfac... | def get_mac_acl_for_intf_output_interface_interface_name(self, **kwargs) | Auto Generated Code | 1.256495 | 1.20394 | 1.043653 |
config = ET.Element("config")
get_mac_acl_for_intf = ET.Element("get_mac_acl_for_intf")
config = get_mac_acl_for_intf
output = ET.SubElement(get_mac_acl_for_intf, "output")
interface = ET.SubElement(output, "interface")
interface_type_key = ET.SubElement(interfac... | def get_mac_acl_for_intf_output_interface_ingress_policy_policy_name(self, **kwargs) | Auto Generated Code | 1.225997 | 1.170825 | 1.047122 |
if not verbose_func:
def verbose_func():
return log.config(verbose=True)
if not quiet_func:
def quiet_func():
return log.config(quiet=True)
self.option('-v, --verbose', 'show more logs', verbose_func)
self.option('-q, --... | def add_log_options(self, verbose_func=None, quiet_func=None) | A helper for setting up log options | 2.965486 | 2.824676 | 1.04985 |
is_get_config = kwargs.pop('get', False)
if not is_get_config:
local_as = kwargs.pop('local_as')
else:
local_as = ''
rbridge_id = kwargs.pop('rbridge_id', '1')
callback = kwargs.pop('callback', self._callback)
local_as_args = dict(local_as... | def local_asn(self, **kwargs) | Set BGP local ASN.
Args:
local_as (str): Local ASN of NOS deice.
rbridge_id (str): The rbridge ID of the device on which BGP will be
configured in a VCS fabric.
get (bool): Get config instead of editing config. (True, False)
callback (function): A... | 2.639793 | 2.705465 | 0.975726 |
enabled = kwargs.pop('enabled', True)
callback = kwargs.pop('callback', self._callback)
if not isinstance(enabled, bool):
raise ValueError('%s must be `True` or `False`.' % repr(enabled))
as4_capability_args = dict(vrf_name=kwargs.pop('vrf', 'default'),
... | def as4_capability(self, **kwargs) | Set Spanning Tree state.
Args:
enabled (bool): Is AS4 Capability enabled? (True, False)
callback (function): A function executed upon completion of the
method. The only parameter passed to `callback` will be the
``ElementTree`` `config`.
Returns... | 3.424869 | 3.401585 | 1.006845 |
rbridge_id = kwargs.pop('rbridge_id', '1')
callback = kwargs.pop('callback', self._callback)
disable_args = dict(rbridge_id=rbridge_id, local_as='65000')
config = getattr(self._rbridge,
'rbridge_id_router_router_bgp_router_bgp_'
... | def remove_bgp(self, **kwargs) | Remove BGP process completely.
Args:
vrf (str): The VRF for this BGP process.
rbridge_id (str): The rbridge ID of the device on which BGP will be
configured in a VCS fabric.
callback (function): A function executed upon completion of the
metho... | 4.116029 | 4.584219 | 0.897869 |
# This method is the same as the base method except for one place.
# The class doesn't inherit from the base class, though, so we have
# to duplicate.
source = kwargs.pop('source')
afi = kwargs.pop('afi', 'ipv4')
callback = kwargs.pop('callback', self._callback)
... | def redistribute(self, **kwargs) | Set BGP redistribute properties.
Args:
vrf (str): The VRF for this BGP process.
rbridge_id (str): The rbridge ID of the device on which BGP will be
configured in a VCS fabric.
source (str): Source for redistributing. (connected)
afi (str): Address... | 3.515563 | 3.023715 | 1.162664 |
if source == 'connected':
return getattr(self._rbridge,
'rbridge_id_router_router_bgp_address_family_{0}_'
'{0}_unicast_default_vrf_af_{0}_uc_and_vrf_cmds_'
'call_point_holder_redistribute_connected_'
... | def _redistribute_builder(self, afi='ipv4', source=None) | Build BGP redistribute method.
Do not use this method directly. You probably want ``redistribute``.
Args:
source (str): Source for redistributing. (connected)
afi (str): Address family to configure. (ipv4, ipv6)
Returns:
Method to redistribute desired sour... | 7.152537 | 7.196447 | 0.993898 |
afi = kwargs.pop('afi', 'ipv4')
callback = kwargs.pop('callback', self._callback)
if afi not in ['ipv4', 'ipv6']:
raise AttributeError('Invalid AFI.')
args = dict(rbridge_id=kwargs.pop('rbridge_id', '1'),
load_sharing_value=kwargs.pop('paths', '8'... | def max_paths(self, **kwargs) | Set BGP max paths property.
Args:
vrf (str): The VRF for this BGP process.
rbridge_id (str): The rbridge ID of the device on which BGP will be
configured in a VCS fabric.
paths (str): Number of paths for BGP ECMP (default: 8).
afi (str): Address f... | 3.570126 | 3.189453 | 1.119354 |
ip_addr = kwargs.pop('neighbor')
ip = str(ip_addr.ip)
rbr_ns = 'urn:brocade.com:mgmt:brocade-rbridge'
bgp_ns = 'urn:brocade.com:mgmt:brocade-bgp'
config = ET.Element('config')
ele = ET.SubElement(config, 'rbridge-id', xmlns=rbr_ns)
ET.SubElement(ele, 'rbr... | def _multihop_xml(self, **kwargs) | Build BGP multihop XML.
Do not use this method directly. You probably want ``multihop``.
Args:
rbridge_id (str): The rbridge ID of the device on which BGP will be
configured in a VCS fabric.
neighbor (ipaddress.ip_interface): `ip_interface` object containing
... | 1.90017 | 1.876326 | 1.012707 |
if isinstance(element_tree, ET.Element):
return element_tree
try:
return ET.fromstring(element_tree)
except TypeError:
raise TypeError('{} takes either {} or {} type.'
.format(repr(return_xml.__name__),
repr(str.__name__),
... | def return_xml(element_tree) | Return an XML Element.
Args:
element_tree (Element): XML Element to be returned. If sent as a
``str``, this function will attempt to convert it to an
``Element``.
Returns:
Element: An XML Element.
Raises:
TypeError: if `elem... | 3.608378 | 4.050382 | 0.890874 |
minimum_vlan_id = 1
maximum_vlan_id = 4095
if extended:
maximum_vlan_id = 8191
return minimum_vlan_id <= int(vlan_id) <= maximum_vlan_id | def valid_vlan_id(vlan_id, extended=True) | Validates a VLAN ID.
Args:
vlan_id (integer): VLAN ID to validate. If passed as ``str``, it will
be cast to ``int``.
extended (bool): If the VLAN ID range should be considered extended
for Virtual Fabrics.
Returns:
bool: ``True`` if it is a valid VLAN ID. ``Fa... | 2.239121 | 3.452635 | 0.648525 |
# Adapted from:
# http://stackoverflow.com/questions/27258013/merge-two-xml-files-python
# Maps each elements tag to the element from the first document
if isinstance(first_doc, lxml.etree._Element):
first_doc = ET.fromstring(lxml.etree.tostring(first_doc))
if isinstance(second_doc, lxm... | def merge_xml(first_doc, second_doc) | Merges two XML documents.
Args:
first_doc (str): First XML document. `second_doc` is merged into this
document.
second_doc (str): Second XML document. It is merged into the first.
Returns:
XML Document: The merged document.
Raises:
None
Example:
... | 2.567043 | 2.688464 | 0.954836 |
config = ET.Element("config")
terminal_cfg = ET.SubElement(config, "terminal-cfg", xmlns="urn:brocade.com:mgmt:brocade-terminal")
line = ET.SubElement(terminal_cfg, "line")
sessionid = ET.SubElement(line, "sessionid")
sessionid.text = kwargs.pop('sessionid')
cal... | def terminal_cfg_line_sessionid(self, **kwargs) | Auto Generated Code | 1.459333 | 1.30705 | 1.116509 |
config = ET.Element("config")
terminal_cfg = ET.SubElement(config, "terminal-cfg", xmlns="urn:brocade.com:mgmt:brocade-terminal")
line = ET.SubElement(terminal_cfg, "line")
sessionid_key = ET.SubElement(line, "sessionid")
sessionid_key.text = kwargs.pop('sessionid')
... | def terminal_cfg_line_exec_timeout(self, **kwargs) | Auto Generated Code | 1.508452 | 1.391747 | 1.083854 |
scss_files = []
for root, dirs, files in os.walk(self._source_path):
for filename in fnmatch.filter(files, "*.scss"):
if filename.startswith("_") and skip_partials:
continue
full_path = os.path.join(root, filename)
... | def get_scss_files(self, skip_partials=True, with_source_path=False) | Gets all SCSS files in the source directory.
:param bool skip_partials: If True, partials will be ignored. Otherwise,
all SCSS files, including ones that begin
with '_' will be returned.
:param boom with_source_path: If true, the `so... | 1.845279 | 1.990865 | 0.926873 |
from six import text_type
if isinstance(terms, (tuple, list)):
if len(terms) > 1:
return ' | '.join(text_type(t) for t in terms)
else:
return terms[0]
else:
return terms | def _or_join(self, terms) | Joins terms using OR operator.
Args:
terms (list): terms to join
Examples:
self._or_join(['term1', 'term2']) -> 'term1 | term2'
Returns:
str | 2.838686 | 2.996666 | 0.947281 |
query, query_params = self._make_query_from_terms(search_phrase, limit=limit)
self._parsed_query = (str(query), query_params)
assert isinstance(query, TextClause)
datasets = {}
def make_result(vid=None, b_score=0, p_score=0):
res = DatasetSearchResult()
... | def search(self, search_phrase, limit=None) | Finds datasets by search phrase.
Args:
search_phrase (str or unicode):
limit (int, optional): how many results to return. None means without limit.
Returns:
list of DatasetSearchResult instances. | 3.659254 | 3.669692 | 0.997156 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.