function
stringlengths
11
56k
repo_name
stringlengths
5
60
features
list
def strip_comment_marker(text): """ Strip # markers at the front of a block of comment text. """ lines = [] for line in text.splitlines(): lines.append(line.lstrip('#')) text = textwrap.dedent('\n'.join(lines)) return text
nguy/artview
[ 40, 19, 40, 33, 1411768406 ]
def _setup(self): from admin_sso import default_settings self._wrapped = Settings(default_settings)
frog32/django-admin-sso
[ 33, 20, 33, 2, 1329420183 ]
def __init__(self, settings_module): for setting in dir(settings_module): if setting == setting.upper(): setattr(self, setting, getattr(settings_module, setting))
frog32/django-admin-sso
[ 33, 20, 33, 2, 1329420183 ]
def format_template(template, **kw): return jinja2.Template(template).render(**kw)
Solid-Mechanics/matplotlib-4-abaqus
[ 34, 25, 34, 3, 1426720624 ]
def format_template(template, **kw): return jinja.from_string(template, **kw)
Solid-Mechanics/matplotlib-4-abaqus
[ 34, 25, 34, 3, 1426720624 ]
def relpath(path, start=os.path.curdir): """Return a relative version of a path""" from os.path import sep, curdir, join, abspath, commonprefix, \ pardir if not path: raise ValueError("no path specified") start_list = abspath(start).spli...
Solid-Mechanics/matplotlib-4-abaqus
[ 34, 25, 34, 3, 1426720624 ]
def relpath(path, start=os.path.curdir): """Return a relative version of a path""" from os.path import sep, curdir, join, abspath, commonprefix, \ pardir, splitunc if not path: raise ValueError("no path specified") start_list = abspath(st...
Solid-Mechanics/matplotlib-4-abaqus
[ 34, 25, 34, 3, 1426720624 ]
def plot_directive(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine): return run(arguments, content, options, state_machine, state, lineno)
Solid-Mechanics/matplotlib-4-abaqus
[ 34, 25, 34, 3, 1426720624 ]
def _option_boolean(arg): if not arg or not arg.strip(): # no argument given, assume used as a flag return True elif arg.strip().lower() in ('no', '0', 'false'): return False elif arg.strip().lower() in ('yes', '1', 'true'): return True else: raise ValueError('"%s...
Solid-Mechanics/matplotlib-4-abaqus
[ 34, 25, 34, 3, 1426720624 ]
def _option_align(arg): return directives.choice(arg, ("top", "middle", "bottom", "left", "center", "right"))
Solid-Mechanics/matplotlib-4-abaqus
[ 34, 25, 34, 3, 1426720624 ]
def setup(app): setup.app = app setup.config = app.config setup.confdir = app.confdir options = {'alt': directives.unchanged, 'height': directives.length_or_unitless, 'width': directives.length_or_percentage_or_unitless, 'scale': directives.nonnegative_int, ...
Solid-Mechanics/matplotlib-4-abaqus
[ 34, 25, 34, 3, 1426720624 ]
def contains_doctest(text): try: # check if it's valid Python as-is compile(text, '<string>', 'exec') return False except SyntaxError: pass r = re.compile(r'^\s*>>>', re.M) m = r.search(text) return bool(m)
Solid-Mechanics/matplotlib-4-abaqus
[ 34, 25, 34, 3, 1426720624 ]
def split_code_at_show(text): """ Split code at plt.show() """ parts = [] is_doctest = contains_doctest(text) part = [] for line in text.split("\n"): if (not is_doctest and line.strip() == 'plt.show()') or \ (is_doctest and line.strip() == '>>> plt.show()'): ...
Solid-Mechanics/matplotlib-4-abaqus
[ 34, 25, 34, 3, 1426720624 ]
def __init__(self, basename, dirname): self.basename = basename self.dirname = dirname self.formats = []
Solid-Mechanics/matplotlib-4-abaqus
[ 34, 25, 34, 3, 1426720624 ]
def filenames(self): return [self.filename(fmt) for fmt in self.formats]
Solid-Mechanics/matplotlib-4-abaqus
[ 34, 25, 34, 3, 1426720624 ]
def run_code(code, code_path, ns=None, function_name=None): """ Import a Python module from a path, and run the function given by name, if function_name is not None. """ # Change the working directory to the directory of the example, so # it can get at its data files, if any. Add its path to s...
Solid-Mechanics/matplotlib-4-abaqus
[ 34, 25, 34, 3, 1426720624 ]
def render_figures(code, code_path, output_dir, output_base, context, function_name, config): """ Run a pyplot script and save the low and high res PNGs and a PDF in outdir. Save the images under *output_dir* with file names derived from *output_base* """ # -- Parse forma...
Solid-Mechanics/matplotlib-4-abaqus
[ 34, 25, 34, 3, 1426720624 ]
def getCraftedText( fileName, text, repository = None ): "Home a gcode linear move file or text." return getCraftedTextFromText(archive.getTextIfEmpty(fileName, text), repository)
makerbot/ReplicatorG
[ 396, 234, 396, 37, 1255371319 ]
def getNewRepository(): 'Get new repository.' return HomeRepository()
makerbot/ReplicatorG
[ 396, 234, 396, 37, 1255371319 ]
def __init__(self): "Set the default settings, execute title & settings fileName." skeinforge_profile.addListsToCraftTypeRepository('skeinforge_application.skeinforge_plugins.craft_plugins.home.html', self) self.fileNameInput = settings.FileNameInput().getFromFileName( fabmetheus_interpret.getGNUTranslatorGcodeFi...
makerbot/ReplicatorG
[ 396, 234, 396, 37, 1255371319 ]
def __init__(self): self.distanceFeedRate = gcodec.DistanceFeedRate() self.extruderActive = False self.highestZ = None self.homeLines = [] self.layerCount = settings.LayerCount() self.lineIndex = 0 self.lines = None self.oldLocation = None self.shouldHome = False self.travelFeedRateMinute = 957.0
makerbot/ReplicatorG
[ 396, 234, 396, 37, 1255371319 ]
def addHomeTravel( self, splitLine ): "Add the home travel gcode." location = gcodec.getLocationFromSplitLine(self.oldLocation, splitLine) self.highestZ = max( self.highestZ, location.z ) if not self.shouldHome: return self.shouldHome = False if self.oldLocation == None: return if self.extruderActiv...
makerbot/ReplicatorG
[ 396, 234, 396, 37, 1255371319 ]
def getCraftedGcode( self, gcodeText, repository ): "Parse gcode text and store the home gcode." self.repository = repository self.homeLines = settings.getAlterationFileLines(repository.nameOfHomeFile.value) if len(self.homeLines) < 1: return gcodeText self.lines = archive.getTextLines(gcodeText) self.pa...
makerbot/ReplicatorG
[ 396, 234, 396, 37, 1255371319 ]
def parseLine(self, line): "Parse a gcode line and add it to the bevel gcode." splitLine = gcodec.getSplitLineBeforeBracketSemicolon(line) if len(splitLine) < 1: return firstWord = splitLine[0] if firstWord == 'G1': self.addHomeTravel(splitLine) self.oldLocation = gcodec.getLocationFromSplitLine(self...
makerbot/ReplicatorG
[ 396, 234, 396, 37, 1255371319 ]
def build_args(self, spec, prefix): args = { 'PREFIX': prefix, 'APR': spec['apr'].prefix, 'APU': spec['apr-util'].prefix, 'OPENSSL': spec['openssl'].prefix, 'ZLIB': spec['zlib'].prefix, 'DEBUG': 'yes' if '+debug' in spec else 'no', ...
LLNL/spack
[ 3244, 1839, 3244, 2847, 1389172932 ]
def test_stmt_simplify(): ib = tvm.tir.ir_builder.create() A = ib.pointer("float32", name="A") C = ib.pointer("float32", name="C") n = te.size_var("n") with ib.for_range(0, n, name="i") as i: with ib.if_scope(i < 12): A[i] = C[i] body = tvm.tir.LetStmt(n, 10, ib.get()) m...
dmlc/tvm
[ 9142, 2938, 9142, 595, 1476310828 ]
def test_if_likely(): ib = tvm.tir.ir_builder.create() A = ib.pointer("float32", name="A") C = ib.pointer("float32", name="C") n = te.size_var("n") tx = te.thread_axis("threadIdx.x") ty = te.thread_axis("threadIdx.y") ib.scope_attr(tx, "thread_extent", 32) ib.scope_attr(ty, "thread_exten...
dmlc/tvm
[ 9142, 2938, 9142, 595, 1476310828 ]
def f(i): start = W[i] extent = W[i + 1] - W[i] rv = te.reduce_axis((0, extent)) return te.sum(X[rv + start], axis=rv)
dmlc/tvm
[ 9142, 2938, 9142, 595, 1476310828 ]
def test_complex_likely_elimination(): def cumsum(X): """ Y[i] = sum(X[:i]) """ (m,) = X.shape s_state = te.placeholder((m + 1,), dtype="int32", name="state") s_init = te.compute((1,), lambda _: tvm.tir.const(0, "int32")) s_update = te.compute((m + 1,), lambda...
dmlc/tvm
[ 9142, 2938, 9142, 595, 1476310828 ]
def to_return(self): result = {} for returnable in self.returnables: result[returnable] = getattr(self, returnable) result = self._filter_params(result) return result
mcgonagle/ansible_f5
[ 10, 27, 10, 1, 1478300759 ]
def name(self): if self._values['name'] is None: return None name = str(self._values['name']).strip() if name == '': raise F5ModuleError( "You must specify a name for this module" ) return name
mcgonagle/ansible_f5
[ 10, 27, 10, 1, 1478300759 ]
def __init__(self, client): self.client = client self.have = None self.want = Parameters(self.client.module.params) self.changes = Parameters()
mcgonagle/ansible_f5
[ 10, 27, 10, 1, 1478300759 ]
def _update_changed_options(self): changed = {} for key in Parameters.updatables: if getattr(self.want, key) is not None: attr1 = getattr(self.want, key) attr2 = getattr(self.have, key) if attr1 != attr2: changed[key] = attr...
mcgonagle/ansible_f5
[ 10, 27, 10, 1, 1478300759 ]
def _pool_is_unlicensed_eula_unaccepted(self, current): if current.state != 'LICENSED' and not self.want.accept_eula: return True return False
mcgonagle/ansible_f5
[ 10, 27, 10, 1, 1478300759 ]
def exists(self): collection = self.client.api.cm.shared.licensing.pools_s.get_collection( requests_params=dict( params="$filter=name+eq+'{0}'".format(self.want.name) ) ) if len(collection) == 1: return True elif len(collection) == 0: ...
mcgonagle/ansible_f5
[ 10, 27, 10, 1, 1478300759 ]
def should_update(self): if self._pool_is_licensed(): return False if self._pool_is_unlicensed_eula_unaccepted(): return False return True
mcgonagle/ansible_f5
[ 10, 27, 10, 1, 1478300759 ]
def update_on_device(self): collection = self.client.api.cm.shared.licensing.pools_s.get_collection( requests_params=dict( params="$filter=name+eq+'{0}'".format(self.want.name) ) ) resource = collection.pop() resource.modify( state='REL...
mcgonagle/ansible_f5
[ 10, 27, 10, 1, 1478300759 ]
def read_current_from_device(self): collection = self.client.api.cm.shared.licensing.pools_s.get_collection( requests_params=dict( params="$filter=name+eq+'{0}'".format(self.want.name) ) ) resource = collection.pop() result = resource.attrs ...
mcgonagle/ansible_f5
[ 10, 27, 10, 1, 1478300759 ]
def _wait_for_license_pool_state_to_activate(self, pool): error_values = ['EXPIRED', 'FAILED'] # Wait no more than 5 minutes for x in range(1, 30): pool.refresh() if pool.state == 'LICENSED': return True elif pool.state == 'WAITING_FOR_EULA_ACC...
mcgonagle/ansible_f5
[ 10, 27, 10, 1, 1478300759 ]
def remove(self): if self.client.check_mode: return True self.remove_from_device() if self.exists(): raise F5ModuleError("Failed to delete the license pool") return True
mcgonagle/ansible_f5
[ 10, 27, 10, 1, 1478300759 ]
def __init__(self): self.supports_check_mode = True self.argument_spec = dict( accept_eula=dict( type='bool', default='no', choices=BOOLEANS ), base_key=dict( required=False, no_log=True ...
mcgonagle/ansible_f5
[ 10, 27, 10, 1, 1478300759 ]
def wrap_matcher(x): """Wraps argument in a matcher, if necessary. :returns: the argument as-is if it is already a matcher, otherwise wrapped in an :py:func:`~hamcrest.core.core.isequal.equal_to` matcher. """ if isinstance(x, Matcher): return x else: return equal_to(x)
axbaretto/beam
[ 9, 2, 9, 74, 1474583398 ]
def __init__(self): TestBase.__init__(self, 'abc', """
namhyung/uftrace
[ 2338, 351, 2338, 337, 1392115490 ]
def __init__( self, from_address, to_address, host, username, password, subject="catchy title", port=465, use_ssl=1, kwargs=None
klahnakoski/Bugzilla-ETL
[ 5, 8, 5, 8, 1375457640 ]
def __enter__(self): if self.server is not None: Log.error("Got a problem") if self.settings.use_ssl: self.server = smtplib.SMTP_SSL(self.settings.host, self.settings.port) else: self.server = smtplib.SMTP(self.settings.host, self.settings.port) if s...
klahnakoski/Bugzilla-ETL
[ 5, 8, 5, 8, 1375457640 ]
def send_email(self, from_address=None, to_address=None, subject=None, text_data=None, html_data=None
klahnakoski/Bugzilla-ETL
[ 5, 8, 5, 8, 1375457640 ]
def _get_socket_fixed(self, host, port, timeout): if self.debuglevel > 0: print>> sys.stderr, 'connect:', (host, port) new_socket = socket.create_connection((host, port), timeout) new_socket = ssl.wrap_socket(new_socket, self.keyfile, self.certfile) self.file = smtplib.SSLFak...
klahnakoski/Bugzilla-ETL
[ 5, 8, 5, 8, 1375457640 ]
def _maybe_name(obj): """Returns object name if it has one, or a message otherwise. This is useful for names that apper in error messages. Args: obj: Object to get the name of. Returns: name, "None", or a "no name" message. """ if obj is None: return "None" elif hasattr(obj, "name"): retu...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def __init__(self, local_init_op=None, ready_op=None, ready_for_local_init_op=None, graph=None, recovery_wait_secs=30, local_init_run_options=None, local_init_feed_dict=None): """Creates a SessionManager. T...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def prepare_session(self, master, init_op=None, saver=None, checkpoint_dir=None, checkpoint_filename_with_path=None, wait_for_checkpoint=False, max_wait_secs=7200, ...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def wait_for_session(self, master, config=None, max_wait_secs=float("Inf")): """Creates a new `Session` and waits for model to be ready. Creates a new `Session` on 'master'. Waits for the model to be initialized or recovered from a checkpoint. It's expected that another thread or process will make th...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def _model_ready(self, sess): """Checks if the model is ready or not. Args: sess: A `Session`. Returns: A tuple (is_ready, msg), where is_ready is True if ready and False otherwise, and msg is `None` if the model is ready, a `String` with the reason why it is not ready otherwise. ...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def _try_run_local_init_op(self, sess): """Tries to run _local_init_op, if not None, and is ready for local init. Args: sess: A `Session`. Returns: A tuple (is_successful, msg), where is_successful is True if _local_init_op is None, or we ran _local_init_op, and False otherwise; an...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def __init__(self, duration_secs): self._start_time_secs = time.time() self._duration_secs = duration_secs
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def testResidualWrapper(self): wrapper_type = rnn_cell_wrapper_v2.ResidualWrapper x = ops.convert_to_tensor_v2_with_dispatch( np.array([[1., 1., 1.]]), dtype="float32") m = ops.convert_to_tensor_v2_with_dispatch( np.array([[0.1, 0.1, 0.1]]), dtype="float32") base_cell = rnn_cell_impl.GRU...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def residual_with_slice_fn(inp, out): inp_sliced = array_ops.slice(inp, [0, 0], [-1, 3]) return inp_sliced + out
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def testDeviceWrapper(self): wrapper_type = rnn_cell_wrapper_v2.DeviceWrapper x = array_ops.zeros([1, 3]) m = array_ops.zeros([1, 3]) cell = rnn_cell_impl.GRUCell(3) wrapped_cell = wrapper_type(cell, "/cpu:0") children = wrapped_cell._trackable_children() wrapped_cell.get_config() # Should ...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def testWrapperKerasStyle(self, wrapper, wrapper_v2): """Tests if wrapper cell is instantiated in keras style scope.""" wrapped_cell_v2 = wrapper_v2(rnn_cell_impl.BasicRNNCell(1)) self.assertIsNone(getattr(wrapped_cell_v2, "_keras_style", None)) wrapped_cell = wrapper(rnn_cell_impl.BasicRNNCell(1)) ...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def testWrapperWeights(self, wrapper): """Tests that wrapper weights contain wrapped cells weights.""" base_cell = layers.SimpleRNNCell(1, name="basic_rnn_cell") rnn_cell = wrapper(base_cell) rnn_layer = layers.RNN(rnn_cell) inputs = ops.convert_to_tensor_v2_with_dispatch([[[1]]], ...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def testWrapperV2Caller(self, wrapper): """Tests that wrapper V2 is using the LayerRNNCell's caller.""" with legacy_base_layer.keras_style_scope(): base_cell = rnn_cell_impl.MultiRNNCell( [rnn_cell_impl.BasicRNNCell(1) for _ in range(2)]) rnn_cell = wrapper(base_cell) inputs = ops.conve...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def testWrapperV2Build(self, wrapper): cell = rnn_cell_impl.LSTMCell(10) wrapper = wrapper(cell) wrapper.build((1,)) self.assertTrue(cell.built)
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def testResidualWrapperSerialization(self): wrapper_cls = rnn_cell_wrapper_v2.ResidualWrapper cell = layers.LSTMCell(10) wrapper = wrapper_cls(cell) config = wrapper.get_config() reconstructed_wrapper = wrapper_cls.from_config(config) self.assertDictEqual(config, reconstructed_wrapper.get_confi...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def dropout_state_filter_visitor(unused_state): return False
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def testDropoutWrapperWithKerasLSTMCell(self): wrapper_cls = rnn_cell_wrapper_v2.DropoutWrapper cell = layers.LSTMCell(10) with self.assertRaisesRegex(ValueError, "does not work with "): wrapper_cls(cell) cell = layers.LSTMCellV2(10) with self.assertRaisesRegex(ValueError, "does not work wit...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def __init__(self, browser_type, target_os, supports_tab_control): super(PossibleBrowser, self).__init__(app_type=browser_type, target_os=target_os) self._supports_tab_control = supports_tab_control self._credentials_path = None
catapult-project/catapult-csm
[ 1, 7, 1, 3, 1494852048 ]
def browser_type(self): return self.app_type
catapult-project/catapult-csm
[ 1, 7, 1, 3, 1494852048 ]
def supports_tab_control(self): return self._supports_tab_control
catapult-project/catapult-csm
[ 1, 7, 1, 3, 1494852048 ]
def Create(self, finder_options): raise NotImplementedError()
catapult-project/catapult-csm
[ 1, 7, 1, 3, 1494852048 ]
def IsRemote(self): return False
catapult-project/catapult-csm
[ 1, 7, 1, 3, 1494852048 ]
def UpdateExecutableIfNeeded(self): pass
catapult-project/catapult-csm
[ 1, 7, 1, 3, 1494852048 ]
def implementor(rpc_code, blocking=False): """ RPC implementation function. """ return partial(_add_implementor, rpc_code, blocking)
golismero/golismero
[ 814, 275, 814, 29, 1375181550 ]
def rpc_bulk(orchestrator, audit_name, rpc_code, *arguments): # Get the implementor for the RPC code. # Raise NotImplementedError if it's not defined. try: method, blocking = rpcMap[rpc_code] except KeyError: raise NotImplementedError("RPC code not implemented: %r" % rpc_code) # Th...
golismero/golismero
[ 814, 275, 814, 29, 1375181550 ]
def rpc_send_message(orchestrator, audit_name, message): # Enqueue the ACK message. orchestrator.enqueue_msg(message)
golismero/golismero
[ 814, 275, 814, 29, 1375181550 ]
def __init__(self, orchestrator): """ :param orchestrator: Orchestrator instance. :type orchestrator: Orchestrator """ # Keep a reference to the Orchestrator. self.__orchestrator = orchestrator # Keep a reference to the global RPC map (it's faster this way). ...
golismero/golismero
[ 814, 275, 814, 29, 1375181550 ]
def orchestrator(self): """ :returns: Orchestrator instance. :rtype: Orchestrator """ return self.__orchestrator
golismero/golismero
[ 814, 275, 814, 29, 1375181550 ]
def execute_rpc(self, audit_name, rpc_code, response_queue, args, kwargs): """ Honor a remote procedure call request from a plugin. :param audit_name: Name of the audit requesting the call. :type audit_name: str :param rpc_code: RPC code. :type rpc_code: int :p...
golismero/golismero
[ 814, 275, 814, 29, 1375181550 ]
def _execute_rpc_implementor_background(self, context, audit_name, target, response_queue, args, kwargs): """ Honor a remote procedure call request from a plugin, from a background thread. Must only be used as the entry point for said background...
golismero/golismero
[ 814, 275, 814, 29, 1375181550 ]
def execute_rpc_implementor(self, audit_name, target, response_queue, args, kwargs): """ Honor a remote procedure call request from a plugin. :param audit_name: Name of the audit requesting the call. :type audit_name: str :param target: RPC imple...
golismero/golismero
[ 814, 275, 814, 29, 1375181550 ]
def __init__(self, **kwargs): self._callback = kwargs.pop('callback')
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_standard_name(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") access_list = ET.SubElement(ip,...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_standard_hide_ip_acl_std_seq_seq_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") access_li...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_standard_hide_ip_acl_std_seq_action(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") access_li...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_standard_hide_ip_acl_std_seq_src_host_any_sip(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") ...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_standard_hide_ip_acl_std_seq_src_host_ip(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") acce...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_standard_hide_ip_acl_std_seq_src_mask(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") access_...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_standard_hide_ip_acl_std_seq_count(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") access_lis...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_standard_hide_ip_acl_std_seq_log(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") access_list ...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_extended_name(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") access_list = ET.SubElement(ip,...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_extended_hide_ip_acl_ext_seq_seq_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") access_li...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_extended_hide_ip_acl_ext_seq_action(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") access_li...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_extended_hide_ip_acl_ext_seq_protocol_type(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") ac...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_extended_hide_ip_acl_ext_seq_src_host_any_sip(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") ...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_extended_hide_ip_acl_ext_seq_src_host_ip(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") acce...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_extended_hide_ip_acl_ext_seq_src_mask(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") access_...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_extended_hide_ip_acl_ext_seq_sport(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") access_lis...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_extended_hide_ip_acl_ext_seq_sport_number_eq_neq_tcp(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") ...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_extended_hide_ip_acl_ext_seq_sport_number_lt_tcp(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") ...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_extended_hide_ip_acl_ext_seq_sport_number_gt_tcp(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") ...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_extended_hide_ip_acl_ext_seq_sport_number_eq_neq_udp(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") ...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]
def ip_acl_ip_access_list_extended_hide_ip_acl_ext_seq_sport_number_lt_udp(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") ...
BRCDcomm/pynos
[ 16, 8, 16, 2, 1437520628 ]