code string | signature string | docstring string | loss_without_docstring float64 | loss_with_docstring float64 | factor float64 |
|---|---|---|---|---|---|
import dill
tmpmodelparams = self.modelparams.copy()
# fv_extern_src = None
fv_extern_name = None
# try:
# fv_extern_src = dill.source.getsource(tmpmodelparams['fv_extern'])
# tmpmodelparams.pop('fv_extern')
# except:
# pass
... | def save(self, filename) | Save model to pickle file. External feature function is not stored | 3.178276 | 3.069339 | 1.035492 |
import dill as pickle
mdl_file_e = op.expanduser(mdl_file)
sv = pickle.load(open(mdl_file_e, "rb"))
self.mdl = sv["mdl"]
# self.mdl[2] = self.mdl[0]
# try:
# eval(sv['fv_extern_src'])
# eval("fv_extern_temp_name = " + sv['fv_extern_src_... | def load(self, mdl_file) | load model from file. fv_type is not set with this function. It is expected to set it before. | 6.740036 | 6.457634 | 1.043731 |
fv_type = self.modelparams["fv_type"]
logger.debug("fv_type " + fv_type)
fv = []
if fv_type == "intensity":
fv = data.reshape(-1, 1)
if seeds is not None:
logger.debug("seeds: %s", scipy.stats.describe(seeds, axis=None))
... | def features_from_image(
self, data, voxelsize, seeds=None, unique_cls=None
): # , voxels=None) | Input data is 3d image
:param data: is 3d image
:param seeds: ndimage with same shape as data, nonzero values means seeds.
:param unique_cls: can select only fv for seeds from specific class.
f.e. unique_cls = [1, 2] ignores label 0
funcion is called twice in graph cut
... | 3.843986 | 3.086997 | 1.245219 |
logger.debug("clx " + str(clx[:10, :]))
logger.debug("clx type" + str(clx.dtype))
# name = 'clx' + str(cl) + '.npy'
# print name
# np.save(name, clx)
logger.debug("_fit()")
if self.modelparams["adaptation"] == "original_data":
if cl in self.m... | def _fit_one_class(self, clx, cl) | Train clas number cl with data clx.
Use trainFromImageAndSeeds() function if you want to use 3D image data
as an input.
clx: data, 2d matrix
cl: label, integer
label: gmmsame, gaussian_kde, dpgmm, stored | 5.558536 | 4.765489 | 1.166415 |
# sha = x.shape
# xr = x.reshape(-1, sha[-1])
# outsha = sha[:-1]
# from PyQt4.QtCore import pyqtRemoveInputHook
# pyqtRemoveInputHook()
logger.debug("likel " + str(x.shape))
if self.modelparams["type"] == "gmmsame":
px = self.mdl[cl].score_... | def likelihood(self, x, cl) | X = numpy.random.random([2,3,4])
# we have data 2x3 with fature vector with 4 fatures
Use likelihoodFromImage() function for 3d image input
m.likelihood(X,0) | 6.784451 | 6.987189 | 0.970984 |
# seed_indexes = np.nonzero(node_seed)
# selected_inds = msinds[seed_indexes]
# node_msindex = selected_inds[0]
node_neighbor_edges = get_neighborhood_edes(nlinks, node_msindex)
node_neighbor_seeds = np.zeros_like(msinds, dtype=np.int8)
for neighboor_ind in np.unique(node_neighbor_edges[:... | def inspect_node_neighborhood(nlinks, msinds, node_msindex) | Get information about one node in graph
:param nlinks: neighboorhood edges
:param msinds: indexes in 3d image
:param node_msindex: int, multiscale index of selected voxel
:return: node_neighboor_edges_and_weights, node_neighboor_seeds | 3.158488 | 2.784489 | 1.134315 |
node_unariesalt = unariesalt[node_msindex]
neigh_edges, neigh_seeds = inspect_node_neighborhood(nlinks, msinds, node_msindex)
return node_unariesalt, neigh_edges, neigh_seeds | def inspect_node(nlinks, unariesalt, msinds, node_msindex) | Get information about one node in graph
:param nlinks: neighboorhood edges
:param unariesalt: weights
:param msinds: indexes in 3d image
:param node_msindex: msindex of selected node. See get_node_msindex()
:return: node_unariesalt, node_neighboor_edges_and_weights, node_neighboor_seeds | 3.580603 | 2.672026 | 1.340033 |
if type(node_seed) == np.ndarray:
seed_indexes = np.nonzero(node_seed)
elif type(node_seed) == list:
seed_indexes = node_seed
else:
seed_indexes = [node_seed]
selected_nodes_msinds = msinds[seed_indexes]
node_msindex = selected_nodes_msinds[0]
return node_msindex | def get_node_msindex(msinds, node_seed) | Convert seeds-like selection of voxel to multiscale index.
:param msinds: ndarray with indexes
:param node_seed: ndarray with 1 where selected pixel is, or list of indexes in this array
:return: multiscale index of first found seed | 2.3028 | 2.530935 | 0.909861 |
palette, index = np.unique(data, return_inverse=True)
data = index.reshape(data.shape)
# realy slow solution
# unq = np.unique(data)
# actual_label = 0
# for lab in unq:
# data[data == lab] = actual_label
# actual_label += 1
# one anot... | def relabel_squeeze(data) | Makes relabeling of data if there are unused values. | 5.075429 | 5.070208 | 1.00103 |
self.modelparams["mdl_stored_file"] = filename
if fv_extern is not None:
self.modelparams["fv_extern"] = fv_extern
# segparams['modelparams'] = {
# 'mdl_stored_file': mdl_stored_file,
# # 'fv_extern': fv_function
# }
self.mdl = Model(... | def load(self, filename, fv_extern=None) | Read model stored in the file.
:param filename: Path to file with model
:param fv_extern: external feature vector function is passed here
:return: | 4.800447 | 4.609643 | 1.041392 |
maskz = zoom_to_shape(mask, orig_shape)
maskz_new = np.zeros(orig_shape, dtype=np.int16)
maskz_new[maskz == 0] = self._msgc_npenalty_table[0, axis]
maskz_new[maskz == 1] = self._msgc_npenalty_table[1, axis]
# import sed3
# ed = sed3.sed3(maskz_new)
# imp... | def __ms_npenalty_fcn(self, axis, mask, orig_shape) | :param axis: direction of edge
:param mask: 3d ndarray with ones where is fine resolution
Neighboorhood penalty between small pixels should be smaller then in
bigger tiles. This is the way how to set it. | 3.103301 | 3.235373 | 0.959179 |
import scipy
start = self._start_time
# ===== low resolution data processing
# default parameters
# TODO segparams_lo and segparams_hi je tam asi zbytecně
sparams_lo = {
"boundary_dilatation_distance": 2,
"block_size": 6,
"use... | def __msgc_step12_low_resolution_segmentation(self) | Get the segmentation and the
:return: | 4.815569 | 4.791037 | 1.00512 |
config = ET.Element("config")
show_clock = ET.Element("show_clock")
config = show_clock
output = ET.SubElement(show_clock, "output")
clock_time = ET.SubElement(output, "clock-time")
timezone = ET.SubElement(clock_time, "timezone")
timezone.text = kwargs.p... | def show_clock_output_clock_time_timezone(self, **kwargs) | Auto Generated Code | 1.501601 | 1.285415 | 1.168184 |
config = ET.Element("config")
get_system_uptime = ET.Element("get_system_uptime")
config = get_system_uptime
input = ET.SubElement(get_system_uptime, "input")
rbridge_id = ET.SubElement(input, "rbridge-id")
rbridge_id.text = kwargs.pop('rbridge_id')
call... | def get_system_uptime_input_rbridge_id(self, **kwargs) | Auto Generated Code | 1.38129 | 1.270511 | 1.087193 |
config = ET.Element("config")
get_system_uptime = ET.Element("get_system_uptime")
config = get_system_uptime
output = ET.SubElement(get_system_uptime, "output")
show_system_uptime = ET.SubElement(output, "show-system-uptime")
rbridge_id = ET.SubElement(show_syste... | def get_system_uptime_output_show_system_uptime_rbridge_id(self, **kwargs) | Auto Generated Code | 1.293551 | 1.218586 | 1.061519 |
config = ET.Element("config")
get_system_uptime = ET.Element("get_system_uptime")
config = get_system_uptime
output = ET.SubElement(get_system_uptime, "output")
show_system_uptime = ET.SubElement(output, "show-system-uptime")
rbridge_id_key = ET.SubElement(show_s... | def get_system_uptime_output_show_system_uptime_days(self, **kwargs) | Auto Generated Code | 1.374177 | 1.300192 | 1.056903 |
config = ET.Element("config")
get_system_uptime = ET.Element("get_system_uptime")
config = get_system_uptime
output = ET.SubElement(get_system_uptime, "output")
show_system_uptime = ET.SubElement(output, "show-system-uptime")
rbridge_id_key = ET.SubElement(show_s... | def get_system_uptime_output_show_system_uptime_hours(self, **kwargs) | Auto Generated Code | 1.391414 | 1.316221 | 1.057128 |
config = ET.Element("config")
get_system_uptime = ET.Element("get_system_uptime")
config = get_system_uptime
output = ET.SubElement(get_system_uptime, "output")
show_system_uptime = ET.SubElement(output, "show-system-uptime")
rbridge_id_key = ET.SubElement(show_s... | def get_system_uptime_output_show_system_uptime_minutes(self, **kwargs) | Auto Generated Code | 1.371556 | 1.311575 | 1.045732 |
config = ET.Element("config")
get_system_uptime = ET.Element("get_system_uptime")
config = get_system_uptime
output = ET.SubElement(get_system_uptime, "output")
show_system_uptime = ET.SubElement(output, "show-system-uptime")
rbridge_id_key = ET.SubElement(show_s... | def get_system_uptime_output_show_system_uptime_seconds(self, **kwargs) | Auto Generated Code | 1.369269 | 1.319309 | 1.037868 |
config = ET.Element("config")
get_system_uptime = ET.Element("get_system_uptime")
config = get_system_uptime
output = ET.SubElement(get_system_uptime, "output")
cmd_error = ET.SubElement(output, "cmd-error")
cmd_error.text = kwargs.pop('cmd_error')
callb... | def get_system_uptime_output_cmd_error(self, **kwargs) | Auto Generated Code | 1.590232 | 1.326929 | 1.19843 |
# Thanks to Micah Elliott (http://MicahElliott.com) for colortrans.py
rgb = rgb.lstrip('#') if rgb.startswith('#') else rgb
incs = (0x00, 0x5f, 0x87, 0xaf, 0xd7, 0xff)
# Break 6-char RGB code into 3 integer vals.
parts = [int(h, 16) for h in re.split(r'(..)(..)(..)', rgb)[1:4]]
res = []
... | def rgb_to_short(rgb, mapping) | Find the closest xterm-256 approximation to the given RGB value. | 3.986309 | 3.856622 | 1.033627 |
default = 'default'
palette = list(self.palette)
mapping = CONFIG['rgb_to_short']
for tok in self.style.styles.keys():
for t in tok.split()[::-1]:
st = self.style.styles[t]
if '#' in st:
break
if '#' not... | def register_palette(self) | Converts pygmets style to urwid palatte | 4.644822 | 4.451523 | 1.043423 |
config = ET.Element("config")
ntp = ET.SubElement(config, "ntp", xmlns="urn:brocade.com:mgmt:brocade-ntp")
server = ET.SubElement(ntp, "server")
use_vrf_key = ET.SubElement(server, "use-vrf")
use_vrf_key.text = kwargs.pop('use_vrf')
ip = ET.SubElement(server, "ip... | def ntp_server_ip(self, **kwargs) | Auto Generated Code | 1.553239 | 1.448483 | 1.072322 |
config = ET.Element("config")
ntp = ET.SubElement(config, "ntp", xmlns="urn:brocade.com:mgmt:brocade-ntp")
server = ET.SubElement(ntp, "server")
ip_key = ET.SubElement(server, "ip")
ip_key.text = kwargs.pop('ip')
use_vrf_key = ET.SubElement(server, "use-vrf")
... | def ntp_server_key(self, **kwargs) | Auto Generated Code | 1.469997 | 1.357866 | 1.082579 |
config = ET.Element("config")
ntp = ET.SubElement(config, "ntp", xmlns="urn:brocade.com:mgmt:brocade-ntp")
server = ET.SubElement(ntp, "server")
ip_key = ET.SubElement(server, "ip")
ip_key.text = kwargs.pop('ip')
use_vrf = ET.SubElement(server, "use-vrf")
... | def ntp_server_use_vrf(self, **kwargs) | Auto Generated Code | 1.458277 | 1.379864 | 1.056826 |
# Increment position from the deepest place of the tree first.
for index in reversed(range(self.depth)):
self.indexes[index] += 1
# We haven't reached the end of board, no need to adjust upper
# level.
if self.indexes[index] < self.range_size:
... | def increment(self) | Increment the last permutation we returned to the next. | 6.753023 | 6.729661 | 1.003472 |
for i in range(level + 1, self.depth):
self.indexes[i] = self.range_size - 1 | def skip_branch(self, level) | Abandon the branch at the provided level and skip to the next.
When we call out to skip to the next branch of the search space, we
push sublevel pieces to the maximum positions of the board. So that the
next time the permutation iterator is called, it can produce the vector
state of the... | 7.083743 | 7.058364 | 1.003596 |
# Create a new, empty board.
board = Board(self.length, self.height)
# Iterate through all combinations of positions.
permutations = Permutations(self.pieces, self.vector_size)
for positions in permutations:
# Reuse board but flush all pieces.
b... | def solve(self) | Solve all possible positions of pieces within the context.
Depth-first, tree-traversal of the product space. | 8.053254 | 7.692867 | 1.046847 |
config = ET.Element("config")
show_raslog = ET.Element("show_raslog")
config = show_raslog
input = ET.SubElement(show_raslog, "input")
rbridge_id = ET.SubElement(input, "rbridge-id")
rbridge_id.text = kwargs.pop('rbridge_id')
callback = kwargs.pop('callb... | def show_raslog_input_rbridge_id(self, **kwargs) | Auto Generated Code | 1.45661 | 1.29072 | 1.128525 |
config = ET.Element("config")
show_raslog = ET.Element("show_raslog")
config = show_raslog
output = ET.SubElement(show_raslog, "output")
show_all_raslog = ET.SubElement(output, "show-all-raslog")
rbridge_id = ET.SubElement(show_all_raslog, "rbridge-id")
r... | def show_raslog_output_show_all_raslog_rbridge_id(self, **kwargs) | Auto Generated Code | 1.36023 | 1.257519 | 1.081678 |
config = ET.Element("config")
show_raslog = ET.Element("show_raslog")
config = show_raslog
output = ET.SubElement(show_raslog, "output")
show_all_raslog = ET.SubElement(output, "show-all-raslog")
number_of_entries = ET.SubElement(show_all_raslog, "number-of-entri... | def show_raslog_output_show_all_raslog_number_of_entries(self, **kwargs) | Auto Generated Code | 1.423845 | 1.2361 | 1.151885 |
config = ET.Element("config")
show_raslog = ET.Element("show_raslog")
config = show_raslog
output = ET.SubElement(show_raslog, "output")
show_all_raslog = ET.SubElement(output, "show-all-raslog")
raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries")
... | def show_raslog_output_show_all_raslog_raslog_entries_index(self, **kwargs) | Auto Generated Code | 1.37815 | 1.222967 | 1.126891 |
config = ET.Element("config")
show_raslog = ET.Element("show_raslog")
config = show_raslog
output = ET.SubElement(show_raslog, "output")
show_all_raslog = ET.SubElement(output, "show-all-raslog")
raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries")
... | def show_raslog_output_show_all_raslog_raslog_entries_message_id(self, **kwargs) | Auto Generated Code | 1.323068 | 1.204669 | 1.098283 |
config = ET.Element("config")
show_raslog = ET.Element("show_raslog")
config = show_raslog
output = ET.SubElement(show_raslog, "output")
show_all_raslog = ET.SubElement(output, "show-all-raslog")
raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries")
... | def show_raslog_output_show_all_raslog_raslog_entries_date_and_time_info(self, **kwargs) | Auto Generated Code | 1.303994 | 1.190061 | 1.095737 |
config = ET.Element("config")
show_raslog = ET.Element("show_raslog")
config = show_raslog
output = ET.SubElement(show_raslog, "output")
show_all_raslog = ET.SubElement(output, "show-all-raslog")
raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries")
... | def show_raslog_output_show_all_raslog_raslog_entries_severity(self, **kwargs) | Auto Generated Code | 1.358315 | 1.227178 | 1.106861 |
config = ET.Element("config")
show_raslog = ET.Element("show_raslog")
config = show_raslog
output = ET.SubElement(show_raslog, "output")
show_all_raslog = ET.SubElement(output, "show-all-raslog")
raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries")
... | def show_raslog_output_show_all_raslog_raslog_entries_repeat_count(self, **kwargs) | Auto Generated Code | 1.307259 | 1.213005 | 1.077703 |
config = ET.Element("config")
show_raslog = ET.Element("show_raslog")
config = show_raslog
output = ET.SubElement(show_raslog, "output")
show_all_raslog = ET.SubElement(output, "show-all-raslog")
raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries")
... | def show_raslog_output_show_all_raslog_raslog_entries_message(self, **kwargs) | Auto Generated Code | 1.437312 | 1.228758 | 1.169728 |
config = ET.Element("config")
show_raslog = ET.Element("show_raslog")
config = show_raslog
output = ET.SubElement(show_raslog, "output")
show_all_raslog = ET.SubElement(output, "show-all-raslog")
raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries")
... | def show_raslog_output_show_all_raslog_raslog_entries_message_flag(self, **kwargs) | Auto Generated Code | 1.345546 | 1.221336 | 1.1017 |
config = ET.Element("config")
show_raslog = ET.Element("show_raslog")
config = show_raslog
output = ET.SubElement(show_raslog, "output")
show_all_raslog = ET.SubElement(output, "show-all-raslog")
raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries")
... | def show_raslog_output_show_all_raslog_raslog_entries_log_type(self, **kwargs) | Auto Generated Code | 1.334348 | 1.217261 | 1.096188 |
config = ET.Element("config")
show_raslog = ET.Element("show_raslog")
config = show_raslog
output = ET.SubElement(show_raslog, "output")
show_all_raslog = ET.SubElement(output, "show-all-raslog")
raslog_entries = ET.SubElement(show_all_raslog, "raslog-entries")
... | def show_raslog_output_show_all_raslog_raslog_entries_switch_or_chassis_name(self, **kwargs) | Auto Generated Code | 1.249448 | 1.183597 | 1.055637 |
config = ET.Element("config")
show_raslog = ET.Element("show_raslog")
config = show_raslog
output = ET.SubElement(show_raslog, "output")
cmd_status_error_msg = ET.SubElement(output, "cmd-status-error-msg")
cmd_status_error_msg.text = kwargs.pop('cmd_status_error_... | def show_raslog_output_cmd_status_error_msg(self, **kwargs) | Auto Generated Code | 1.63069 | 1.30146 | 1.25297 |
config = ET.Element("config")
show_support_save_status = ET.Element("show_support_save_status")
config = show_support_save_status
input = ET.SubElement(show_support_save_status, "input")
rbridge_id = ET.SubElement(input, "rbridge-id")
rbridge_id.text = kwargs.pop... | def show_support_save_status_input_rbridge_id(self, **kwargs) | Auto Generated Code | 1.351728 | 1.271058 | 1.063466 |
config = ET.Element("config")
show_support_save_status = ET.Element("show_support_save_status")
config = show_support_save_status
output = ET.SubElement(show_support_save_status, "output")
show_support_save_status = ET.SubElement(output, "show-support-save-status")
... | def show_support_save_status_output_show_support_save_status_rbridge_id(self, **kwargs) | Auto Generated Code | 1.296147 | 1.251925 | 1.035323 |
config = ET.Element("config")
show_support_save_status = ET.Element("show_support_save_status")
config = show_support_save_status
output = ET.SubElement(show_support_save_status, "output")
show_support_save_status = ET.SubElement(output, "show-support-save-status")
... | def show_support_save_status_output_show_support_save_status_status(self, **kwargs) | Auto Generated Code | 1.318531 | 1.261918 | 1.044863 |
config = ET.Element("config")
show_support_save_status = ET.Element("show_support_save_status")
config = show_support_save_status
output = ET.SubElement(show_support_save_status, "output")
show_support_save_status = ET.SubElement(output, "show-support-save-status")
... | def show_support_save_status_output_show_support_save_status_message(self, **kwargs) | Auto Generated Code | 1.352584 | 1.268272 | 1.066478 |
config = ET.Element("config")
show_support_save_status = ET.Element("show_support_save_status")
config = show_support_save_status
output = ET.SubElement(show_support_save_status, "output")
show_support_save_status = ET.SubElement(output, "show-support-save-status")
... | def show_support_save_status_output_show_support_save_status_percentage_of_completion(self, **kwargs) | Auto Generated Code | 1.280834 | 1.232214 | 1.039457 |
config = ET.Element("config")
show_system_info = ET.Element("show_system_info")
config = show_system_info
input = ET.SubElement(show_system_info, "input")
rbridge_id = ET.SubElement(input, "rbridge-id")
rbridge_id.text = kwargs.pop('rbridge_id')
callback... | def show_system_info_input_rbridge_id(self, **kwargs) | Auto Generated Code | 1.398275 | 1.293794 | 1.080756 |
config = ET.Element("config")
show_system_info = ET.Element("show_system_info")
config = show_system_info
output = ET.SubElement(show_system_info, "output")
show_system_info = ET.SubElement(output, "show-system-info")
rbridge_id = ET.SubElement(show_system_info, ... | def show_system_info_output_show_system_info_rbridge_id(self, **kwargs) | Auto Generated Code | 1.329274 | 1.268627 | 1.047805 |
config = ET.Element("config")
show_system_info = ET.Element("show_system_info")
config = show_system_info
output = ET.SubElement(show_system_info, "output")
show_system_info = ET.SubElement(output, "show-system-info")
stack_mac = ET.SubElement(show_system_info, "... | def show_system_info_output_show_system_info_stack_mac(self, **kwargs) | Auto Generated Code | 1.355018 | 1.261032 | 1.074531 |
xmlns = 'urn:brocade.com:mgmt:brocade-fabric-service'
get_links_info = ET.Element('show-linkinfo', xmlns=xmlns)
results = self._callback(get_links_info, handler='get')
result = []
for item in results.findall('{%s}show-link-info' % xmlns):
src_rbridge_id = ite... | def trill_links(self) | dict: trill link details | 2.200685 | 2.160394 | 1.01865 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
datastores = ET.SubElement(netconf_state, "datastores")
datastore = ET.SubElement(datastores, "datastore")
name = ET.SubEleme... | def netconf_state_datastores_datastore_name(self, **kwargs) | Auto Generated Code | 1.336554 | 1.307084 | 1.022546 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
datastores = ET.SubElement(netconf_state, "datastores")
datastore = ET.SubElement(datastores, "datastore")
name_key = ET.SubE... | def netconf_state_datastores_datastore_locks_lock_type_global_lock_global_lock_locked_time(self, **kwargs) | Auto Generated Code | 1.261891 | 1.244748 | 1.013773 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
datastores = ET.SubElement(netconf_state, "datastores")
datastore = ET.SubElement(datastores, "datastore")
name_key = ET.SubE... | def netconf_state_datastores_datastore_locks_lock_type_partial_lock_partial_lock_lock_id(self, **kwargs) | Auto Generated Code | 1.295308 | 1.271765 | 1.018512 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
datastores = ET.SubElement(netconf_state, "datastores")
datastore = ET.SubElement(datastores, "datastore")
name_key = ET.SubE... | def netconf_state_datastores_datastore_locks_lock_type_partial_lock_partial_lock_locked_by_session(self, **kwargs) | Auto Generated Code | 1.277919 | 1.261103 | 1.013335 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
datastores = ET.SubElement(netconf_state, "datastores")
datastore = ET.SubElement(datastores, "datastore")
name_key = ET.SubE... | def netconf_state_datastores_datastore_transaction_id(self, **kwargs) | Auto Generated Code | 1.36841 | 1.364519 | 1.002852 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
schemas = ET.SubElement(netconf_state, "schemas")
schema = ET.SubElement(schemas, "schema")
version_key = ET.SubElement(schem... | def netconf_state_schemas_schema_identifier(self, **kwargs) | Auto Generated Code | 1.443085 | 1.404957 | 1.027138 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
schemas = ET.SubElement(netconf_state, "schemas")
schema = ET.SubElement(schemas, "schema")
identifier_key = ET.SubElement(sc... | def netconf_state_schemas_schema_version(self, **kwargs) | Auto Generated Code | 1.448556 | 1.393753 | 1.03932 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
schemas = ET.SubElement(netconf_state, "schemas")
schema = ET.SubElement(schemas, "schema")
identifier_key = ET.SubElement(sc... | def netconf_state_schemas_schema_format(self, **kwargs) | Auto Generated Code | 1.435869 | 1.373561 | 1.045362 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
schemas = ET.SubElement(netconf_state, "schemas")
schema = ET.SubElement(schemas, "schema")
identifier_key = ET.SubElement(sc... | def netconf_state_schemas_schema_namespace(self, **kwargs) | Auto Generated Code | 1.403911 | 1.368443 | 1.025918 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
sessions = ET.SubElement(netconf_state, "sessions")
session = ET.SubElement(sessions, "session")
session_id = ET.SubElement(s... | def netconf_state_sessions_session_session_id(self, **kwargs) | Auto Generated Code | 1.292966 | 1.250139 | 1.034257 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
sessions = ET.SubElement(netconf_state, "sessions")
session = ET.SubElement(sessions, "session")
session_id_key = ET.SubEleme... | def netconf_state_sessions_session_transport(self, **kwargs) | Auto Generated Code | 1.310166 | 1.249333 | 1.048692 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
sessions = ET.SubElement(netconf_state, "sessions")
session = ET.SubElement(sessions, "session")
session_id_key = ET.SubEleme... | def netconf_state_sessions_session_username(self, **kwargs) | Auto Generated Code | 1.297774 | 1.239081 | 1.047368 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
sessions = ET.SubElement(netconf_state, "sessions")
session = ET.SubElement(sessions, "session")
session_id_key = ET.SubEleme... | def netconf_state_sessions_session_source_host(self, **kwargs) | Auto Generated Code | 1.277278 | 1.232432 | 1.036389 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
sessions = ET.SubElement(netconf_state, "sessions")
session = ET.SubElement(sessions, "session")
session_id_key = ET.SubEleme... | def netconf_state_sessions_session_login_time(self, **kwargs) | Auto Generated Code | 1.276147 | 1.225961 | 1.040936 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
sessions = ET.SubElement(netconf_state, "sessions")
session = ET.SubElement(sessions, "session")
session_id_key = ET.SubEleme... | def netconf_state_sessions_session_in_rpcs(self, **kwargs) | Auto Generated Code | 1.264819 | 1.220317 | 1.036467 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
sessions = ET.SubElement(netconf_state, "sessions")
session = ET.SubElement(sessions, "session")
session_id_key = ET.SubEleme... | def netconf_state_sessions_session_in_bad_rpcs(self, **kwargs) | Auto Generated Code | 1.243865 | 1.198944 | 1.037467 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
sessions = ET.SubElement(netconf_state, "sessions")
session = ET.SubElement(sessions, "session")
session_id_key = ET.SubEleme... | def netconf_state_sessions_session_out_rpc_errors(self, **kwargs) | Auto Generated Code | 1.244218 | 1.218881 | 1.020787 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
sessions = ET.SubElement(netconf_state, "sessions")
session = ET.SubElement(sessions, "session")
session_id_key = ET.SubEleme... | def netconf_state_sessions_session_out_notifications(self, **kwargs) | Auto Generated Code | 1.268992 | 1.222703 | 1.037858 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
statistics = ET.SubElement(netconf_state, "statistics")
netconf_start_time = ET.SubElement(statistics, "netconf-start-time")
... | def netconf_state_statistics_netconf_start_time(self, **kwargs) | Auto Generated Code | 1.330931 | 1.297106 | 1.026077 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
statistics = ET.SubElement(netconf_state, "statistics")
in_bad_hellos = ET.SubElement(statistics, "in-bad-hellos")
in_bad_hel... | def netconf_state_statistics_in_bad_hellos(self, **kwargs) | Auto Generated Code | 1.351957 | 1.28894 | 1.04889 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
statistics = ET.SubElement(netconf_state, "statistics")
in_sessions = ET.SubElement(statistics, "in-sessions")
in_sessions.te... | def netconf_state_statistics_in_sessions(self, **kwargs) | Auto Generated Code | 1.37209 | 1.322215 | 1.03772 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
statistics = ET.SubElement(netconf_state, "statistics")
dropped_sessions = ET.SubElement(statistics, "dropped-sessions")
drop... | def netconf_state_statistics_dropped_sessions(self, **kwargs) | Auto Generated Code | 1.363814 | 1.311891 | 1.039578 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
statistics = ET.SubElement(netconf_state, "statistics")
in_rpcs = ET.SubElement(statistics, "in-rpcs")
in_rpcs.text = kwargs.... | def netconf_state_statistics_in_rpcs(self, **kwargs) | Auto Generated Code | 1.350136 | 1.303437 | 1.035828 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
statistics = ET.SubElement(netconf_state, "statistics")
in_bad_rpcs = ET.SubElement(statistics, "in-bad-rpcs")
in_bad_rpcs.te... | def netconf_state_statistics_in_bad_rpcs(self, **kwargs) | Auto Generated Code | 1.327266 | 1.278845 | 1.037863 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
statistics = ET.SubElement(netconf_state, "statistics")
out_rpc_errors = ET.SubElement(statistics, "out-rpc-errors")
out_rpc_... | def netconf_state_statistics_out_rpc_errors(self, **kwargs) | Auto Generated Code | 1.329655 | 1.318308 | 1.008607 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
statistics = ET.SubElement(netconf_state, "statistics")
out_notifications = ET.SubElement(statistics, "out-notifications")
ou... | def netconf_state_statistics_out_notifications(self, **kwargs) | Auto Generated Code | 1.367737 | 1.343096 | 1.018346 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
files = ET.SubElement(netconf_state, "files", xmlns="http://tail-f.com/yang/netconf-monitoring")
file = ET.SubElement(files, "file")
... | def netconf_state_files_file_name(self, **kwargs) | Auto Generated Code | 1.52918 | 1.450226 | 1.054442 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
files = ET.SubElement(netconf_state, "files", xmlns="http://tail-f.com/yang/netconf-monitoring")
file = ET.SubElement(files, "file")
... | def netconf_state_files_file_creator(self, **kwargs) | Auto Generated Code | 1.580266 | 1.440606 | 1.096945 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
files = ET.SubElement(netconf_state, "files", xmlns="http://tail-f.com/yang/netconf-monitoring")
file = ET.SubElement(files, "file")
... | def netconf_state_files_file_created(self, **kwargs) | Auto Generated Code | 1.508821 | 1.413642 | 1.067329 |
config = ET.Element("config")
netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
files = ET.SubElement(netconf_state, "files", xmlns="http://tail-f.com/yang/netconf-monitoring")
file = ET.SubElement(files, "file")
... | def netconf_state_files_file_context(self, **kwargs) | Auto Generated Code | 1.476829 | 1.417042 | 1.042191 |
config = ET.Element("config")
get_schema = ET.Element("get_schema")
config = get_schema
input = ET.SubElement(get_schema, "input")
identifier = ET.SubElement(input, "identifier")
identifier.text = kwargs.pop('identifier')
callback = kwargs.pop('callback'... | def get_schema_input_identifier(self, **kwargs) | Auto Generated Code | 2.220699 | 1.423217 | 1.560338 |
config = ET.Element("config")
get_schema = ET.Element("get_schema")
config = get_schema
input = ET.SubElement(get_schema, "input")
version = ET.SubElement(input, "version")
version.text = kwargs.pop('version')
callback = kwargs.pop('callback', self._call... | def get_schema_input_version(self, **kwargs) | Auto Generated Code | 2.170968 | 1.378125 | 1.575306 |
config = ET.Element("config")
get_schema = ET.Element("get_schema")
config = get_schema
input = ET.SubElement(get_schema, "input")
format = ET.SubElement(input, "format")
format.text = kwargs.pop('format')
callback = kwargs.pop('callback', self._callback... | def get_schema_input_format(self, **kwargs) | Auto Generated Code | 2.626431 | 1.466358 | 1.791126 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
fan = ET.SubElement(system_monitor, "fan")
threshold = ET.SubElement(fan, "threshold")
marginal_threshold = ET.SubElement(threshold... | def system_monitor_fan_threshold_marginal_threshold(self, **kwargs) | Auto Generated Code | 1.283931 | 1.218927 | 1.053329 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
fan = ET.SubElement(system_monitor, "fan")
threshold = ET.SubElement(fan, "threshold")
down_threshold = ET.SubElement(threshold, "d... | def system_monitor_fan_threshold_down_threshold(self, **kwargs) | Auto Generated Code | 1.278807 | 1.225381 | 1.043599 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
fan = ET.SubElement(system_monitor, "fan")
alert = ET.SubElement(fan, "alert")
state = ET.SubElement(alert, "state")
state.... | def system_monitor_fan_alert_state(self, **kwargs) | Auto Generated Code | 1.324826 | 1.240564 | 1.067922 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
fan = ET.SubElement(system_monitor, "fan")
alert = ET.SubElement(fan, "alert")
action = ET.SubElement(alert, "action")
acti... | def system_monitor_fan_alert_action(self, **kwargs) | Auto Generated Code | 1.366467 | 1.240051 | 1.101944 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
power = ET.SubElement(system_monitor, "power")
threshold = ET.SubElement(power, "threshold")
marginal_threshold = ET.SubElement(thr... | def system_monitor_power_threshold_marginal_threshold(self, **kwargs) | Auto Generated Code | 1.288268 | 1.235041 | 1.043097 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
power = ET.SubElement(system_monitor, "power")
threshold = ET.SubElement(power, "threshold")
down_threshold = ET.SubElement(thresho... | def system_monitor_power_threshold_down_threshold(self, **kwargs) | Auto Generated Code | 1.282325 | 1.251337 | 1.024764 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
power = ET.SubElement(system_monitor, "power")
alert = ET.SubElement(power, "alert")
state = ET.SubElement(alert, "state")
... | def system_monitor_power_alert_state(self, **kwargs) | Auto Generated Code | 1.318533 | 1.249057 | 1.055623 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
power = ET.SubElement(system_monitor, "power")
alert = ET.SubElement(power, "alert")
action = ET.SubElement(alert, "action")
... | def system_monitor_power_alert_action(self, **kwargs) | Auto Generated Code | 1.374153 | 1.253948 | 1.095862 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
temp = ET.SubElement(system_monitor, "temp")
threshold = ET.SubElement(temp, "threshold")
marginal_threshold = ET.SubElement(thresh... | def system_monitor_temp_threshold_marginal_threshold(self, **kwargs) | Auto Generated Code | 1.295757 | 1.23672 | 1.047737 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
temp = ET.SubElement(system_monitor, "temp")
threshold = ET.SubElement(temp, "threshold")
down_threshold = ET.SubElement(threshold,... | def system_monitor_temp_threshold_down_threshold(self, **kwargs) | Auto Generated Code | 1.285317 | 1.242227 | 1.034687 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
cid_card = ET.SubElement(system_monitor, "cid-card")
threshold = ET.SubElement(cid_card, "threshold")
marginal_threshold = ET.SubEl... | def system_monitor_cid_card_threshold_marginal_threshold(self, **kwargs) | Auto Generated Code | 1.264268 | 1.227871 | 1.029642 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
cid_card = ET.SubElement(system_monitor, "cid-card")
threshold = ET.SubElement(cid_card, "threshold")
down_threshold = ET.SubElemen... | def system_monitor_cid_card_threshold_down_threshold(self, **kwargs) | Auto Generated Code | 1.273826 | 1.240321 | 1.027013 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
cid_card = ET.SubElement(system_monitor, "cid-card")
alert = ET.SubElement(cid_card, "alert")
state = ET.SubElement(alert, "state")... | def system_monitor_cid_card_alert_state(self, **kwargs) | Auto Generated Code | 1.312527 | 1.267476 | 1.035544 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
cid_card = ET.SubElement(system_monitor, "cid-card")
alert = ET.SubElement(cid_card, "alert")
action = ET.SubElement(alert, "action... | def system_monitor_cid_card_alert_action(self, **kwargs) | Auto Generated Code | 1.317729 | 1.257771 | 1.047669 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
sfp = ET.SubElement(system_monitor, "sfp")
alert = ET.SubElement(sfp, "alert")
state = ET.SubElement(alert, "state")
state.... | def system_monitor_sfp_alert_state(self, **kwargs) | Auto Generated Code | 1.290637 | 1.231711 | 1.047841 |
config = ET.Element("config")
system_monitor = ET.SubElement(config, "system-monitor", xmlns="urn:brocade.com:mgmt:brocade-system-monitor")
sfp = ET.SubElement(system_monitor, "sfp")
alert = ET.SubElement(sfp, "alert")
action = ET.SubElement(alert, "action")
acti... | def system_monitor_sfp_alert_action(self, **kwargs) | Auto Generated Code | 1.313987 | 1.221237 | 1.075947 |
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")
marginal_thres... | def system_monitor_compact_flash_threshold_marginal_threshold(self, **kwargs) | Auto Generated Code | 1.258385 | 1.222645 | 1.029232 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.