code string | signature string | docstring string | loss_without_docstring float64 | loss_with_docstring float64 | factor float64 |
|---|---|---|---|---|---|
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
compact_flash = ET.SubElement(system_monitor, "compact-flash")
threshold = ET.SubElement(compact_flash, "threshold")
down_threshold... | def system_monitor_compact_flash_threshold_down_threshold(self, **kwargs) | Auto Generated Code | 1.258952 | 1.228459 | 1.024822 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
MM = ET.SubElement(system_monitor, "MM")
threshold = ET.SubElement(MM, "threshold")
marginal_threshold = ET.SubElement(threshold, "... | def system_monitor_MM_threshold_marginal_threshold(self, **kwargs) | Auto Generated Code | 1.280331 | 1.226118 | 1.044215 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
MM = ET.SubElement(system_monitor, "MM")
threshold = ET.SubElement(MM, "threshold")
down_threshold = ET.SubElement(threshold, "down... | def system_monitor_MM_threshold_down_threshold(self, **kwargs) | Auto Generated Code | 1.26399 | 1.229387 | 1.028146 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
LineCard = ET.SubElement(system_monitor, "LineCard")
threshold = ET.SubElement(LineCard, "threshold")
marginal_threshold = ET.SubEl... | def system_monitor_LineCard_threshold_marginal_threshold(self, **kwargs) | Auto Generated Code | 1.236943 | 1.199206 | 1.031468 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
LineCard = ET.SubElement(system_monitor, "LineCard")
threshold = ET.SubElement(LineCard, "threshold")
down_threshold = ET.SubElemen... | def system_monitor_LineCard_threshold_down_threshold(self, **kwargs) | Auto Generated Code | 1.252396 | 1.220902 | 1.025796 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
LineCard = ET.SubElement(system_monitor, "LineCard")
alert = ET.SubElement(LineCard, "alert")
state = ET.SubElement(alert, "state")... | def system_monitor_LineCard_alert_state(self, **kwargs) | Auto Generated Code | 1.280925 | 1.24929 | 1.025322 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
LineCard = ET.SubElement(system_monitor, "LineCard")
alert = ET.SubElement(LineCard, "alert")
action = ET.SubElement(alert, "action... | def system_monitor_LineCard_alert_action(self, **kwargs) | Auto Generated Code | 1.292303 | 1.234202 | 1.047076 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
SFM = ET.SubElement(system_monitor, "SFM")
threshold = ET.SubElement(SFM, "threshold")
marginal_threshold = ET.SubElement(threshold... | def system_monitor_SFM_threshold_marginal_threshold(self, **kwargs) | Auto Generated Code | 1.319479 | 1.258695 | 1.048291 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
SFM = ET.SubElement(system_monitor, "SFM")
threshold = ET.SubElement(SFM, "threshold")
down_threshold = ET.SubElement(threshold, "d... | def system_monitor_SFM_threshold_down_threshold(self, **kwargs) | Auto Generated Code | 1.296257 | 1.256513 | 1.03163 |
config = ET.Element("config")
system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
fru = ET.SubElement(system_monitor_mail, "fru")
enable = ET.SubElement(fru, "enable")
callback = kwargs.pop('callback', ... | def system_monitor_mail_fru_enable(self, **kwargs) | Auto Generated Code | 1.447976 | 1.354167 | 1.069275 |
config = ET.Element("config")
system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
fru = ET.SubElement(system_monitor_mail, "fru")
email_list = ET.SubElement(fru, "email-list")
email = ET.SubElement(email... | def system_monitor_mail_fru_email_list_email(self, **kwargs) | Auto Generated Code | 1.338685 | 1.302998 | 1.027388 |
config = ET.Element("config")
system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
sfp = ET.SubElement(system_monitor_mail, "sfp")
enable = ET.SubElement(sfp, "enable")
callback = kwargs.pop('callback', ... | def system_monitor_mail_sfp_enable(self, **kwargs) | Auto Generated Code | 1.418188 | 1.307882 | 1.08434 |
config = ET.Element("config")
system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
sfp = ET.SubElement(system_monitor_mail, "sfp")
email_list = ET.SubElement(sfp, "email-list")
email = ET.SubElement(email... | def system_monitor_mail_sfp_email_list_email(self, **kwargs) | Auto Generated Code | 1.329786 | 1.274766 | 1.04316 |
config = ET.Element("config")
system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
security = ET.SubElement(system_monitor_mail, "security")
enable = ET.SubElement(security, "enable")
callback = kwargs.p... | def system_monitor_mail_security_enable(self, **kwargs) | Auto Generated Code | 1.462653 | 1.370341 | 1.067364 |
config = ET.Element("config")
system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
security = ET.SubElement(system_monitor_mail, "security")
email_list = ET.SubElement(security, "email-list")
email = ET.S... | def system_monitor_mail_security_email_list_email(self, **kwargs) | Auto Generated Code | 1.345575 | 1.30372 | 1.032104 |
config = ET.Element("config")
system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
interface = ET.SubElement(system_monitor_mail, "interface")
enable = ET.SubElement(interface, "enable")
callback = kwarg... | def system_monitor_mail_interface_enable(self, **kwargs) | Auto Generated Code | 1.506334 | 1.397501 | 1.077877 |
config = ET.Element("config")
system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
interface = ET.SubElement(system_monitor_mail, "interface")
email_list = ET.SubElement(interface, "email-list")
email = E... | def system_monitor_mail_interface_email_list_email(self, **kwargs) | Auto Generated Code | 1.372467 | 1.3215 | 1.038567 |
config = ET.Element("config")
system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
relay = ET.SubElement(system_monitor_mail, "relay")
host_ip = ET.SubElement(relay, "host-ip")
host_ip.text = kwargs.pop('... | def system_monitor_mail_relay_host_ip(self, **kwargs) | Auto Generated Code | 1.410697 | 1.344061 | 1.049578 |
config = ET.Element("config")
system_monitor_mail = ET.SubElement(config, "system-monitor-mail", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
relay = ET.SubElement(system_monitor_mail, "relay")
host_ip_key = ET.SubElement(relay, "host-ip")
host_ip_key.text = kwar... | def system_monitor_mail_relay_domain_name(self, **kwargs) | Auto Generated Code | 1.481923 | 1.410339 | 1.050757 |
config = ET.Element("config")
logging = ET.SubElement(config, "logging", xmlns="urn:brocade.com:mgmt:brocade-ras")
syslog_server = ET.SubElement(logging, "syslog-server")
use_vrf_key = ET.SubElement(syslog_server, "use-vrf")
use_vrf_key.text = kwargs.pop('use_vrf')
... | def logging_syslog_server_syslogip(self, **kwargs) | Auto Generated Code | 1.622895 | 1.515062 | 1.071174 |
config = ET.Element("config")
logging = ET.SubElement(config, "logging", xmlns="urn:brocade.com:mgmt:brocade-ras")
syslog_server = ET.SubElement(logging, "syslog-server")
syslogip_key = ET.SubElement(syslog_server, "syslogip")
syslogip_key.text = kwargs.pop('syslogip')
... | def logging_syslog_server_use_vrf(self, **kwargs) | Auto Generated Code | 1.621161 | 1.486223 | 1.090792 |
config = ET.Element("config")
logging = ET.SubElement(config, "logging", xmlns="urn:brocade.com:mgmt:brocade-ras")
syslog_server = ET.SubElement(logging, "syslog-server")
syslogip_key = ET.SubElement(syslog_server, "syslogip")
syslogip_key.text = kwargs.pop('syslogip')
... | def logging_syslog_server_secure(self, **kwargs) | Auto Generated Code | 1.703844 | 1.577384 | 1.080171 |
config = ET.Element("config")
logging = ET.SubElement(config, "logging", xmlns="urn:brocade.com:mgmt:brocade-ras")
syslog_server = ET.SubElement(logging, "syslog-server")
syslogip_key = ET.SubElement(syslog_server, "syslogip")
syslogip_key.text = kwargs.pop('syslogip')
... | def logging_syslog_server_port(self, **kwargs) | Auto Generated Code | 1.583545 | 1.481961 | 1.068547 |
config = ET.Element("config")
logging = ET.SubElement(config, "logging", xmlns="urn:brocade.com:mgmt:brocade-ras")
auditlog = ET.SubElement(logging, "auditlog")
class_el = ET.SubElement(auditlog, "class")
class_el = ET.SubElement(class_el, "class")
class_el.text ... | def logging_auditlog_class_class(self, **kwargs) | Auto Generated Code | 1.774979 | 1.573999 | 1.127688 |
config = ET.Element("config")
diag = ET.SubElement(config, "diag", xmlns="urn:brocade.com:mgmt:brocade-diagnostics")
post = ET.SubElement(diag, "post")
rbridge_id = ET.SubElement(post, "rbridge-id")
rbridge_id_key = ET.SubElement(rbridge_id, "rbridge-id")
rbridge... | def diag_post_rbridge_id_enable(self, **kwargs) | Auto Generated Code | 1.348099 | 1.273677 | 1.058431 |
config = ET.Element("config")
diag = ET.SubElement(config, "diag", xmlns="urn:brocade.com:mgmt:brocade-diagnostics")
post = ET.SubElement(diag, "post")
rbridge_id = ET.SubElement(post, "rbridge-id")
rbridge_id = ET.SubElement(rbridge_id, "rbridge-id")
rbridge_id.... | def diag_post_rbridge_id_rbridge_id(self, **kwargs) | Auto Generated Code | 1.354165 | 1.250912 | 1.082542 |
config = ET.Element("config")
diag = ET.SubElement(config, "diag", xmlns="urn:brocade.com:mgmt:brocade-diagnostics")
post = ET.SubElement(diag, "post")
enable = ET.SubElement(post, "enable")
callback = kwargs.pop('callback', self._callback)
return callback(confi... | def diag_post_enable(self, **kwargs) | Auto Generated Code | 1.60907 | 1.382265 | 1.164082 |
config = ET.Element("config")
mac_address_table = ET.SubElement(config, "mac-address-table", xmlns="urn:brocade.com:mgmt:brocade-mac-address-table")
static = ET.SubElement(mac_address_table, "static")
forward_key = ET.SubElement(static, "forward")
forward_key.text = kwar... | def mac_address_table_static_mac_address(self, **kwargs) | Auto Generated Code | 1.35559 | 1.33738 | 1.013616 |
config = ET.Element("config")
mac_address_table = ET.SubElement(config, "mac-address-table", xmlns="urn:brocade.com:mgmt:brocade-mac-address-table")
static = ET.SubElement(mac_address_table, "static")
mac_address_key = ET.SubElement(static, "mac-address")
mac_address_key... | def mac_address_table_static_forward(self, **kwargs) | Auto Generated Code | 1.293924 | 1.282118 | 1.009208 |
config = ET.Element("config")
mac_address_table = ET.SubElement(config, "mac-address-table", xmlns="urn:brocade.com:mgmt:brocade-mac-address-table")
static = ET.SubElement(mac_address_table, "static")
mac_address_key = ET.SubElement(static, "mac-address")
mac_address_key... | def mac_address_table_static_interface_type(self, **kwargs) | Auto Generated Code | 1.34827 | 1.336809 | 1.008574 |
config = ET.Element("config")
mac_address_table = ET.SubElement(config, "mac-address-table", xmlns="urn:brocade.com:mgmt:brocade-mac-address-table")
static = ET.SubElement(mac_address_table, "static")
mac_address_key = ET.SubElement(static, "mac-address")
mac_address_key... | def mac_address_table_static_interface_name(self, **kwargs) | Auto Generated Code | 1.351439 | 1.338494 | 1.009672 |
config = ET.Element("config")
mac_address_table = ET.SubElement(config, "mac-address-table", xmlns="urn:brocade.com:mgmt:brocade-mac-address-table")
static = ET.SubElement(mac_address_table, "static")
mac_address_key = ET.SubElement(static, "mac-address")
mac_address_key... | def mac_address_table_static_vlan(self, **kwargs) | Auto Generated Code | 1.35443 | 1.339069 | 1.011471 |
config = ET.Element("config")
mac_address_table = ET.SubElement(config, "mac-address-table", xmlns="urn:brocade.com:mgmt:brocade-mac-address-table")
static = ET.SubElement(mac_address_table, "static")
mac_address_key = ET.SubElement(static, "mac-address")
mac_address_key... | def mac_address_table_static_vlanid(self, **kwargs) | Auto Generated Code | 1.346966 | 1.32992 | 1.012818 |
config = ET.Element("config")
mac_address_table = ET.SubElement(config, "mac-address-table", xmlns="urn:brocade.com:mgmt:brocade-mac-address-table")
learning_mode = ET.SubElement(mac_address_table, "learning-mode")
learning_mode.text = kwargs.pop('learning_mode')
callba... | def mac_address_table_learning_mode(self, **kwargs) | Auto Generated Code | 1.343257 | 1.269875 | 1.057787 |
config = ET.Element("config")
mac_address_table = ET.SubElement(config, "mac-address-table", xmlns="urn:brocade.com:mgmt:brocade-mac-address-table")
aging_time = ET.SubElement(mac_address_table, "aging-time")
conversational_time_out = ET.SubElement(aging_time, "conversational-ti... | def mac_address_table_aging_time_conversational_time_out(self, **kwargs) | Auto Generated Code | 1.244739 | 1.208798 | 1.029733 |
config = ET.Element("config")
mac_address_table = ET.SubElement(config, "mac-address-table", xmlns="urn:brocade.com:mgmt:brocade-mac-address-table")
aging_time = ET.SubElement(mac_address_table, "aging-time")
legacy_time_out = ET.SubElement(aging_time, "legacy-time-out")
... | def mac_address_table_aging_time_legacy_time_out(self, **kwargs) | Auto Generated Code | 1.27877 | 1.239965 | 1.031295 |
config = ET.Element("config")
mac_address_table = ET.SubElement(config, "mac-address-table", xmlns="urn:brocade.com:mgmt:brocade-mac-address-table")
mac_move = ET.SubElement(mac_address_table, "mac-move")
mac_move_detect_enable = ET.SubElement(mac_move, "mac-move-detect-enable")... | def mac_address_table_mac_move_mac_move_detect_enable(self, **kwargs) | Auto Generated Code | 1.340642 | 1.307359 | 1.025458 |
config = ET.Element("config")
mac_address_table = ET.SubElement(config, "mac-address-table", xmlns="urn:brocade.com:mgmt:brocade-mac-address-table")
mac_move = ET.SubElement(mac_address_table, "mac-move")
mac_move_limit = ET.SubElement(mac_move, "mac-move-limit")
mac_mov... | def mac_address_table_mac_move_mac_move_limit(self, **kwargs) | Auto Generated Code | 1.263612 | 1.229902 | 1.027408 |
config = ET.Element("config")
mac_address_table = ET.SubElement(config, "mac-address-table", xmlns="urn:brocade.com:mgmt:brocade-mac-address-table")
consistency_check = ET.SubElement(mac_address_table, "consistency-check")
mac_consistency_check_suppress = ET.SubElement(consisten... | def mac_address_table_consistency_check_mac_consistency_check_suppress(self, **kwargs) | Auto Generated Code | 1.343717 | 1.311014 | 1.024944 |
config = ET.Element("config")
mac_address_table = ET.SubElement(config, "mac-address-table", xmlns="urn:brocade.com:mgmt:brocade-mac-address-table")
consistency_check = ET.SubElement(mac_address_table, "consistency-check")
mac_consistency_check_interval = ET.SubElement(consisten... | def mac_address_table_consistency_check_mac_consistency_check_interval(self, **kwargs) | Auto Generated Code | 1.267823 | 1.23858 | 1.02361 |
config = ET.Element("config")
mac_group = ET.SubElement(config, "mac-group", xmlns="urn:brocade.com:mgmt:brocade-mac-address-table")
mac_group_id = ET.SubElement(mac_group, "mac-group-id")
mac_group_id.text = kwargs.pop('mac_group_id')
callback = kwargs.pop('callback', ... | def mac_group_mac_group_id(self, **kwargs) | Auto Generated Code | 1.334678 | 1.269635 | 1.051229 |
config = ET.Element("config")
mac_group = ET.SubElement(config, "mac-group", xmlns="urn:brocade.com:mgmt:brocade-mac-address-table")
mac_group_id_key = ET.SubElement(mac_group, "mac-group-id")
mac_group_id_key.text = kwargs.pop('mac_group_id')
mac_group_entry = ET.SubEle... | def mac_group_mac_group_entry_entry_address(self, **kwargs) | Auto Generated Code | 1.25455 | 1.222498 | 1.026218 |
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_request = ET.SubElement(request_... | def get_mac_address_table_input_request_type_get_request_mac_address(self, **kwargs) | Auto Generated Code | 1.241617 | 1.190585 | 1.042863 |
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_last_mac_address_details_last_mac_address(self, **kwargs) | Auto Generated Code | 1.19632 | 1.165634 | 1.026326 |
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_last_mac_address_details_last_vlan_id(self, **kwargs) | Auto Generated Code | 1.18831 | 1.155163 | 1.028695 |
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_last_mac_address_details_last_mac_type(self, **kwargs) | Auto Generated Code | 1.188138 | 1.156961 | 1.026947 |
config = ET.Element("config")
get_mac_address_table = ET.Element("get_mac_address_table")
config = get_mac_address_table
output = ET.SubElement(get_mac_address_table, "output")
mac_address_table = ET.SubElement(output, "mac-address-table")
mac_address_key = ET.Su... | def get_mac_address_table_output_mac_address_table_vlanid(self, **kwargs) | Auto Generated Code | 1.306403 | 1.266491 | 1.031514 |
config = ET.Element("config")
get_mac_address_table = ET.Element("get_mac_address_table")
config = get_mac_address_table
output = ET.SubElement(get_mac_address_table, "output")
mac_address_table = ET.SubElement(output, "mac-address-table")
vlanid_key = ET.SubElem... | def get_mac_address_table_output_mac_address_table_mac_address(self, **kwargs) | Auto Generated Code | 1.344617 | 1.301411 | 1.0332 |
config = ET.Element("config")
get_mac_address_table = ET.Element("get_mac_address_table")
config = get_mac_address_table
output = ET.SubElement(get_mac_address_table, "output")
mac_address_table = ET.SubElement(output, "mac-address-table")
vlanid_key = ET.SubElem... | def get_mac_address_table_output_mac_address_table_mac_type(self, **kwargs) | Auto Generated Code | 1.310073 | 1.262612 | 1.037589 |
config = ET.Element("config")
get_mac_address_table = ET.Element("get_mac_address_table")
config = get_mac_address_table
output = ET.SubElement(get_mac_address_table, "output")
mac_address_table = ET.SubElement(output, "mac-address-table")
vlanid_key = ET.SubElem... | def get_mac_address_table_output_mac_address_table_mac_state(self, **kwargs) | Auto Generated Code | 1.309014 | 1.255856 | 1.042328 |
config = ET.Element("config")
get_mac_address_table = ET.Element("get_mac_address_table")
config = get_mac_address_table
output = ET.SubElement(get_mac_address_table, "output")
mac_address_table = ET.SubElement(output, "mac-address-table")
vlanid_key = ET.SubElem... | def get_mac_address_table_output_mac_address_table_forwarding_interface_interface_type(self, **kwargs) | Auto Generated Code | 1.300332 | 1.258405 | 1.033318 |
config = ET.Element("config")
get_mac_address_table = ET.Element("get_mac_address_table")
config = get_mac_address_table
output = ET.SubElement(get_mac_address_table, "output")
has_more = ET.SubElement(output, "has-more")
has_more.text = kwargs.pop('has_more')
... | def get_mac_address_table_output_has_more(self, **kwargs) | Auto Generated Code | 1.329969 | 1.213307 | 1.096152 |
l = []
for w in _widget_cache.values():
if w.flagged:
l.append(w.get_node().get_value())
return l | def get_flagged_names() | Return a list of all filenames marked as flagged. | 7.596989 | 6.569577 | 1.156389 |
if name is '/':
return True
l = name.split(dir_sep())
if len(l) > len(_initial_cwd):
return False
if l != _initial_cwd[:len(l)]:
return False
return True | def starts_expanded(name) | Return True if directory is a parent of initial cwd. | 6.28325 | 4.585181 | 1.370338 |
# check whether we have unprintable characters
for ch in name:
if ord(ch) < 32:
# found one so use the ansi-c escaping
return escape_filename_sh_ansic(name)
# all printable characters, so return a double-quoted version
name.replace('\\','\\\\')
name.replace('"'... | def escape_filename_sh(name) | Return a hopefully safe shell-escaped version of a filename. | 4.708128 | 4.401738 | 1.069607 |
out =[]
# gather the escaped characters into a list
for ch in name:
if ord(ch) < 32:
out.append("\\x%02x"% ord(ch))
elif ch == '\\':
out.append('\\\\')
else:
out.append(ch)
# slap them back together in an ansi-c quote $'...'
return ... | def escape_filename_sh_ansic(name) | Return an ansi-c shell-escaped version of a filename. | 5.254838 | 4.509372 | 1.165315 |
key = self.__super.keypress(size, key)
if key:
key = self.unhandled_keys(size, key)
return key | def keypress(self, size, key) | allow subclasses to intercept keystrokes | 4.702174 | 4.138859 | 1.136104 |
if key == " ":
if not self.flagged:
self.display.new_files.append(self.get_node().get_value())
else:
self.display.new_files.remove(self.get_node().get_value())
self.flagged = not self.flagged
self.update_w()
sel... | def unhandled_keys(self, size, key) | Override this method to intercept keystrokes in subclasses.
Default behavior: Toggle flagged on space, ignore other keys. | 4.749903 | 4.008704 | 1.184897 |
if self.flagged:
self._w.attr = 'flagged'
self._w.focus_attr = 'flagged focus'
else:
self._w.attr = 'body'
self._w.focus_attr = 'focus' | def update_w(self) | Update the attributes of self.widget based on self.flagged. | 5.454937 | 3.470309 | 1.571888 |
index = self.get_child_index(key)
if key is None:
return EmptyNode(None)
else:
path = os.path.join(self.get_value(), key)
if index < self.dir_count:
return DirectoryNode(path, self.display, parent=self)
else:
... | def load_child_node(self, key) | Return either a FileNode or DirectoryNode | 3.277263 | 2.917345 | 1.123372 |
config = ET.Element("config")
ntp = ET.SubElement(config, "ntp", xmlns="urn:brocade.com:mgmt:brocade-ntp")
authentication_key = ET.SubElement(ntp, "authentication-key")
keyid_key = ET.SubElement(authentication_key, "keyid")
keyid_key.text = kwargs.pop('keyid')
md... | def ntp_authentication_key_md5(self, **kwargs) | Auto Generated Code | 1.416452 | 1.338316 | 1.058384 |
indent = self.__get_indent(mimetype)
encoding = mimetype.params.get('charset') or 'utf-8'
return json.dumps(data, indent=indent).encode(encoding) | def render(self, data, mimetype) | Serializes a Python object into a byte array containing a JSON document.
:param data: A Python object.
:param mimetype: The mimetype to render the data.
:return: A byte array containing a JSON document. | 4.383002 | 4.394356 | 0.997416 |
indent = max(int(mimetype.params.get('indent', '0')), 0)
if indent == 0:
return None
return indent | def __get_indent(self, mimetype) | Gets the indent parameter from the mimetype.
:param MimeType mimetype: The mimetype with parameters.
:return int: The indent if found, otherwise none. | 4.609272 | 5.197709 | 0.886789 |
config = ET.Element("config")
policy_map = ET.SubElement(config, "policy-map", xmlns="urn:brocade.com:mgmt:brocade-policer")
po_name_key = ET.SubElement(policy_map, "po-name")
po_name_key.text = kwargs.pop('po_name')
class_el = ET.SubElement(policy_map, "class_el")
... | def policy_map_class_cl_name(self, **kwargs) | Auto Generated Code | 1.669612 | 1.523687 | 1.095771 |
config = ET.Element("config")
policy_map = ET.SubElement(config, "policy-map", xmlns="urn:brocade.com:mgmt:brocade-policer")
po_name_key = ET.SubElement(policy_map, "po-name")
po_name_key.text = kwargs.pop('po_name')
class_el = ET.SubElement(policy_map, "class")
... | def policy_map_class_police_eir(self, **kwargs) | Auto Generated Code | 1.528071 | 1.381291 | 1.106263 |
config = ET.Element("config")
policy_map = ET.SubElement(config, "policy-map", xmlns="urn:brocade.com:mgmt:brocade-policer")
po_name_key = ET.SubElement(policy_map, "po-name")
po_name_key.text = kwargs.pop('po_name')
class_el = ET.SubElement(policy_map, "class")
... | def policy_map_class_scheduler_strict_priority_priority_number(self, **kwargs) | Auto Generated Code | 1.443317 | 1.378063 | 1.047352 |
config = ET.Element("config")
policy_map = ET.SubElement(config, "policy-map", xmlns="urn:brocade.com:mgmt:brocade-policer")
po_name_key = ET.SubElement(policy_map, "po-name")
po_name_key.text = kwargs.pop('po_name')
class_el = ET.SubElement(policy_map, "class")
... | def policy_map_class_set_set_cos_tc_traffic_class_el(self, **kwargs) | Auto Generated Code | 1.428894 | 1.383755 | 1.032621 |
user_pass = self.cleaned_data.get('password')
matches = Password.objects.filter(password=user_pass)
if not matches:
raise forms.ValidationError("Your password does not match.") | def clean_password(self) | Validates that the password is a current password | 3.774217 | 3.595136 | 1.049812 |
config = ET.Element("config")
igmp_snooping = ET.SubElement(config, "igmp-snooping", xmlns="urn:brocade.com:mgmt:brocade-igmp-snooping")
ip = ET.SubElement(igmp_snooping, "ip")
pim = ET.SubElement(ip, "pim")
snooping = ET.SubElement(pim, "snooping")
pimv4_enable ... | def igmp_snooping_ip_pim_snooping_pimv4_enable(self, **kwargs) | Auto Generated Code | 1.297814 | 1.244844 | 1.042552 |
config = ET.Element("config")
get_vnetwork_hosts = ET.Element("get_vnetwork_hosts")
config = get_vnetwork_hosts
input = ET.SubElement(get_vnetwork_hosts, "input")
vcenter = ET.SubElement(input, "vcenter")
vcenter.text = kwargs.pop('vcenter')
callback = k... | def get_vnetwork_hosts_input_vcenter(self, **kwargs) | Auto Generated Code | 1.467121 | 1.277722 | 1.148232 |
config = ET.Element("config")
get_vnetwork_hosts = ET.Element("get_vnetwork_hosts")
config = get_vnetwork_hosts
input = ET.SubElement(get_vnetwork_hosts, "input")
datacenter = ET.SubElement(input, "datacenter")
datacenter.text = kwargs.pop('datacenter')
... | def get_vnetwork_hosts_input_datacenter(self, **kwargs) | Auto Generated Code | 1.453219 | 1.304502 | 1.114003 |
config = ET.Element("config")
get_vnetwork_hosts = ET.Element("get_vnetwork_hosts")
config = get_vnetwork_hosts
input = ET.SubElement(get_vnetwork_hosts, "input")
name = ET.SubElement(input, "name")
name.text = kwargs.pop('name')
callback = kwargs.pop('c... | def get_vnetwork_hosts_input_name(self, **kwargs) | Auto Generated Code | 1.495837 | 1.335265 | 1.120255 |
config = ET.Element("config")
get_vnetwork_hosts = ET.Element("get_vnetwork_hosts")
config = get_vnetwork_hosts
input = ET.SubElement(get_vnetwork_hosts, "input")
last_rcvd_instance = ET.SubElement(input, "last-rcvd-instance")
last_rcvd_instance.text = kwargs.pop... | def get_vnetwork_hosts_input_last_rcvd_instance(self, **kwargs) | Auto Generated Code | 1.340801 | 1.214024 | 1.104427 |
config = ET.Element("config")
get_vnetwork_hosts = ET.Element("get_vnetwork_hosts")
config = get_vnetwork_hosts
output = ET.SubElement(get_vnetwork_hosts, "output")
vnetwork_hosts = ET.SubElement(output, "vnetwork-hosts")
name = ET.SubElement(vnetwork_hosts, "nam... | def get_vnetwork_hosts_output_vnetwork_hosts_name(self, **kwargs) | Auto Generated Code | 1.333886 | 1.228481 | 1.085801 |
config = ET.Element("config")
get_vnetwork_hosts = ET.Element("get_vnetwork_hosts")
config = get_vnetwork_hosts
output = ET.SubElement(get_vnetwork_hosts, "output")
vnetwork_hosts = ET.SubElement(output, "vnetwork-hosts")
vmnic = ET.SubElement(vnetwork_hosts, "vm... | def get_vnetwork_hosts_output_vnetwork_hosts_vmnic(self, **kwargs) | Auto Generated Code | 1.400402 | 1.282746 | 1.091722 |
config = ET.Element("config")
get_vnetwork_hosts = ET.Element("get_vnetwork_hosts")
config = get_vnetwork_hosts
output = ET.SubElement(get_vnetwork_hosts, "output")
vnetwork_hosts = ET.SubElement(output, "vnetwork-hosts")
datacenter = ET.SubElement(vnetwork_hosts... | def get_vnetwork_hosts_output_vnetwork_hosts_datacenter(self, **kwargs) | Auto Generated Code | 1.307322 | 1.222496 | 1.069388 |
config = ET.Element("config")
get_vnetwork_hosts = ET.Element("get_vnetwork_hosts")
config = get_vnetwork_hosts
output = ET.SubElement(get_vnetwork_hosts, "output")
vnetwork_hosts = ET.SubElement(output, "vnetwork-hosts")
mac = ET.SubElement(vnetwork_hosts, "mac"... | def get_vnetwork_hosts_output_vnetwork_hosts_mac(self, **kwargs) | Auto Generated Code | 1.338376 | 1.227686 | 1.090161 |
config = ET.Element("config")
get_vnetwork_hosts = ET.Element("get_vnetwork_hosts")
config = get_vnetwork_hosts
output = ET.SubElement(get_vnetwork_hosts, "output")
vnetwork_hosts = ET.SubElement(output, "vnetwork-hosts")
vswitch = ET.SubElement(vnetwork_hosts, "... | def get_vnetwork_hosts_output_vnetwork_hosts_vswitch(self, **kwargs) | Auto Generated Code | 1.319872 | 1.211038 | 1.089869 |
config = ET.Element("config")
get_vnetwork_hosts = ET.Element("get_vnetwork_hosts")
config = get_vnetwork_hosts
output = ET.SubElement(get_vnetwork_hosts, "output")
vnetwork_hosts = ET.SubElement(output, "vnetwork-hosts")
interface_type = ET.SubElement(vnetwork_h... | def get_vnetwork_hosts_output_vnetwork_hosts_interface_type(self, **kwargs) | Auto Generated Code | 1.295005 | 1.217062 | 1.064042 |
config = ET.Element("config")
get_vnetwork_hosts = ET.Element("get_vnetwork_hosts")
config = get_vnetwork_hosts
output = ET.SubElement(get_vnetwork_hosts, "output")
vnetwork_hosts = ET.SubElement(output, "vnetwork-hosts")
interface_name = ET.SubElement(vnetwork_h... | def get_vnetwork_hosts_output_vnetwork_hosts_interface_name(self, **kwargs) | Auto Generated Code | 1.289224 | 1.208034 | 1.067209 |
config = ET.Element("config")
get_vnetwork_hosts = ET.Element("get_vnetwork_hosts")
config = get_vnetwork_hosts
output = ET.SubElement(get_vnetwork_hosts, "output")
has_more = ET.SubElement(output, "has-more")
has_more.text = kwargs.pop('has_more')
callb... | def get_vnetwork_hosts_output_has_more(self, **kwargs) | Auto Generated Code | 1.408887 | 1.237725 | 1.138287 |
config = ET.Element("config")
get_vnetwork_hosts = ET.Element("get_vnetwork_hosts")
config = get_vnetwork_hosts
output = ET.SubElement(get_vnetwork_hosts, "output")
instance_id = ET.SubElement(output, "instance-id")
instance_id.text = kwargs.pop('instance_id')
... | def get_vnetwork_hosts_output_instance_id(self, **kwargs) | Auto Generated Code | 1.414863 | 1.253715 | 1.128536 |
config = ET.Element("config")
get_vnetwork_vms = ET.Element("get_vnetwork_vms")
config = get_vnetwork_vms
input = ET.SubElement(get_vnetwork_vms, "input")
name = ET.SubElement(input, "name")
name.text = kwargs.pop('name')
callback = kwargs.pop('callback'... | def get_vnetwork_vms_input_name(self, **kwargs) | Auto Generated Code | 1.504014 | 1.335457 | 1.126217 |
config = ET.Element("config")
get_vnetwork_vms = ET.Element("get_vnetwork_vms")
config = get_vnetwork_vms
input = ET.SubElement(get_vnetwork_vms, "input")
vcenter = ET.SubElement(input, "vcenter")
vcenter.text = kwargs.pop('vcenter')
callback = kwargs.po... | def get_vnetwork_vms_input_vcenter(self, **kwargs) | Auto Generated Code | 1.44804 | 1.283168 | 1.128488 |
config = ET.Element("config")
get_vnetwork_vms = ET.Element("get_vnetwork_vms")
config = get_vnetwork_vms
input = ET.SubElement(get_vnetwork_vms, "input")
datacenter = ET.SubElement(input, "datacenter")
datacenter.text = kwargs.pop('datacenter')
callback... | def get_vnetwork_vms_input_datacenter(self, **kwargs) | Auto Generated Code | 1.465753 | 1.321991 | 1.108746 |
config = ET.Element("config")
get_vnetwork_vms = ET.Element("get_vnetwork_vms")
config = get_vnetwork_vms
input = ET.SubElement(get_vnetwork_vms, "input")
last_rcvd_instance = ET.SubElement(input, "last-rcvd-instance")
last_rcvd_instance.text = kwargs.pop('last_r... | def get_vnetwork_vms_input_last_rcvd_instance(self, **kwargs) | Auto Generated Code | 1.340491 | 1.224545 | 1.094685 |
config = ET.Element("config")
get_vnetwork_vms = ET.Element("get_vnetwork_vms")
config = get_vnetwork_vms
output = ET.SubElement(get_vnetwork_vms, "output")
vnetwork_vms = ET.SubElement(output, "vnetwork-vms")
name = ET.SubElement(vnetwork_vms, "name")
na... | def get_vnetwork_vms_output_vnetwork_vms_name(self, **kwargs) | Auto Generated Code | 1.331387 | 1.238586 | 1.074924 |
config = ET.Element("config")
get_vnetwork_vms = ET.Element("get_vnetwork_vms")
config = get_vnetwork_vms
output = ET.SubElement(get_vnetwork_vms, "output")
vnetwork_vms = ET.SubElement(output, "vnetwork-vms")
mac = ET.SubElement(vnetwork_vms, "mac")
mac.... | def get_vnetwork_vms_output_vnetwork_vms_mac(self, **kwargs) | Auto Generated Code | 1.33793 | 1.235931 | 1.082528 |
config = ET.Element("config")
get_vnetwork_vms = ET.Element("get_vnetwork_vms")
config = get_vnetwork_vms
output = ET.SubElement(get_vnetwork_vms, "output")
vnetwork_vms = ET.SubElement(output, "vnetwork-vms")
datacenter = ET.SubElement(vnetwork_vms, "datacenter"... | def get_vnetwork_vms_output_vnetwork_vms_datacenter(self, **kwargs) | Auto Generated Code | 1.306858 | 1.231185 | 1.061463 |
config = ET.Element("config")
get_vnetwork_vms = ET.Element("get_vnetwork_vms")
config = get_vnetwork_vms
output = ET.SubElement(get_vnetwork_vms, "output")
vnetwork_vms = ET.SubElement(output, "vnetwork-vms")
ip = ET.SubElement(vnetwork_vms, "ip")
ip.tex... | def get_vnetwork_vms_output_vnetwork_vms_ip(self, **kwargs) | Auto Generated Code | 1.33206 | 1.232756 | 1.080555 |
config = ET.Element("config")
get_vnetwork_vms = ET.Element("get_vnetwork_vms")
config = get_vnetwork_vms
output = ET.SubElement(get_vnetwork_vms, "output")
vnetwork_vms = ET.SubElement(output, "vnetwork-vms")
host_nn = ET.SubElement(vnetwork_vms, "host-nn")
... | def get_vnetwork_vms_output_vnetwork_vms_host_nn(self, **kwargs) | Auto Generated Code | 1.292601 | 1.215877 | 1.063102 |
config = ET.Element("config")
get_vnetwork_vms = ET.Element("get_vnetwork_vms")
config = get_vnetwork_vms
output = ET.SubElement(get_vnetwork_vms, "output")
has_more = ET.SubElement(output, "has-more")
has_more.text = kwargs.pop('has_more')
callback = kw... | def get_vnetwork_vms_output_has_more(self, **kwargs) | Auto Generated Code | 1.393731 | 1.247837 | 1.116918 |
config = ET.Element("config")
get_vnetwork_vms = ET.Element("get_vnetwork_vms")
config = get_vnetwork_vms
output = ET.SubElement(get_vnetwork_vms, "output")
instance_id = ET.SubElement(output, "instance-id")
instance_id.text = kwargs.pop('instance_id')
c... | def get_vnetwork_vms_output_instance_id(self, **kwargs) | Auto Generated Code | 1.421031 | 1.266494 | 1.122019 |
config = ET.Element("config")
get_vnetwork_dvpgs = ET.Element("get_vnetwork_dvpgs")
config = get_vnetwork_dvpgs
input = ET.SubElement(get_vnetwork_dvpgs, "input")
name = ET.SubElement(input, "name")
name.text = kwargs.pop('name')
callback = kwargs.pop('c... | def get_vnetwork_dvpgs_input_name(self, **kwargs) | Auto Generated Code | 1.443944 | 1.312381 | 1.100248 |
config = ET.Element("config")
get_vnetwork_dvpgs = ET.Element("get_vnetwork_dvpgs")
config = get_vnetwork_dvpgs
input = ET.SubElement(get_vnetwork_dvpgs, "input")
vcenter = ET.SubElement(input, "vcenter")
vcenter.text = kwargs.pop('vcenter')
callback = k... | def get_vnetwork_dvpgs_input_vcenter(self, **kwargs) | Auto Generated Code | 1.422747 | 1.276573 | 1.114505 |
config = ET.Element("config")
get_vnetwork_dvpgs = ET.Element("get_vnetwork_dvpgs")
config = get_vnetwork_dvpgs
input = ET.SubElement(get_vnetwork_dvpgs, "input")
datacenter = ET.SubElement(input, "datacenter")
datacenter.text = kwargs.pop('datacenter')
... | def get_vnetwork_dvpgs_input_datacenter(self, **kwargs) | Auto Generated Code | 1.413774 | 1.28802 | 1.097634 |
config = ET.Element("config")
get_vnetwork_dvpgs = ET.Element("get_vnetwork_dvpgs")
config = get_vnetwork_dvpgs
input = ET.SubElement(get_vnetwork_dvpgs, "input")
last_rcvd_instance = ET.SubElement(input, "last-rcvd-instance")
last_rcvd_instance.text = kwargs.pop... | def get_vnetwork_dvpgs_input_last_rcvd_instance(self, **kwargs) | Auto Generated Code | 1.306115 | 1.205717 | 1.083268 |
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")
name = ET.SubElement(vnetwork_dvpgs, "nam... | def get_vnetwork_dvpgs_output_vnetwork_dvpgs_name(self, **kwargs) | Auto Generated Code | 1.304835 | 1.214024 | 1.074802 |
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")
datacenter = ET.SubElement(vnetwork_dvpgs... | def get_vnetwork_dvpgs_output_vnetwork_dvpgs_datacenter(self, **kwargs) | Auto Generated Code | 1.295375 | 1.213749 | 1.067251 |
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")
dvs_nn = ET.SubElement(vnetwork_dvpgs, "d... | def get_vnetwork_dvpgs_output_vnetwork_dvpgs_dvs_nn(self, **kwargs) | Auto Generated Code | 1.284194 | 1.20676 | 1.064168 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.