text
stringlengths
78
104k
score
float64
0
0.18
def hide_routemap_holder_route_map_content_set_ipv6_next_vrf_next_vrf_list_vrf(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") hide_routemap_holder = ET.SubElement(config, "hide-routemap-holder", xmlns="urn:brocade.com:mgmt:brocade-ip-policy") route_map ...
0.003226
def _encode(data): """Encode the given data using base-64 :param data: :return: base-64 encoded string """ if not isinstance(data, bytes_types): data = six.b(str(data)) return base64.b64encode(data).decode("utf-8")
0.004049
def resolve(checks, lazy, quiet): """Resolve transient dependencies for any number of checks. If you want to do this en masse, put `all`. """ root = get_root() if 'all' in checks: checks = os.listdir(root) for check_name in sorted(checks): pinned_reqs_file = os.path.join(root, c...
0.002828
def save(filepath=None, **kwargs): """ Saves a list of keyword arguments as environment variables to a file. If no filepath given will default to the default `.env` file. """ if filepath is None: filepath = os.path.join('.env') with open(filepath, 'wb') as file_handle: f...
0.002252
def settle_to_markers(self, frame_no=0, max_distance=0.05, max_iters=300, states=None): '''Settle the skeleton to our marker data at a specific frame. Parameters ---------- frame_no : int, optional Settle the skeleton to marker data at this frame. D...
0.002989
def _discover_sensitivity(self, seen) -> None: """ Doc on parent class :meth:`HdlStatement._discover_sensitivity` """ assert self._sensitivity is None, self ctx = self._sensitivity = SensitivityCtx() casual_sensitivity = set() self.switchOn._walk_sensitivity(casu...
0.003049
def _remove_init_all(r): """Remove any __all__ in __init__.py file.""" new_r = redbaron.NodeList() for n in r.node_list: if n.type == 'assignment' and n.target.value == '__all__': pass else: new_r.append(n) return new_r
0.003636
def fixed(self): """Returns a list of just the fixed source roots in the trie.""" for key, child in self._root.children.items(): if key == '^': return list(child.subpatterns()) return []
0.009434
def GetScriptHashesForVerifying(self): """ Get a list of script hashes for verifying transactions. Raises: Exception: if there are no valid assets in the transaction. Returns: list: of UInt160 type script hashes. """ if not self.References and le...
0.00155
def init_app(self, app): """Initialize from flask""" uri = app.config.get("MONGO_URI", None) db_name = app.config.get("MONGO_DBNAME", 'scout') try: client = get_connection( host = app.config.get("MONGO_HOST", 'localhost'), por...
0.013774
def list_metering_label_rules(self, retrieve_all=True, **_params): """Fetches a list of all metering label rules for a label.""" return self.list('metering_label_rules', self.metering_label_rules_path, retrieve_all, **_params)
0.006849
def _print_dict_files(self, case, target): """Prints the file names and available properties in the specified test case's 'target' dictionary. :arg case: the identifier of the test case to print contents for. :arg target: one of ['inputs', 'outputs', 'percent'] """ ...
0.005229
def path(self): "Returns the path up to the root for the current node." if self.parent: return '.'.join([self.parent.path, str(self.identifier)]) else: return self.identifier if self.identifier else self.__class__.__name__
0.011111
def emailUser(video, error=None): """Emails the author of the video that it has finished processing""" html = render_to_string('frog/video_email.html', { 'user': video.author, 'error': error, 'video': video, 'SITE_URL': FROG_SITE_URL, }) subject, from_email, to = 'Video P...
0.005263
def do_rewind(self, line): """ rewind """ self.print_response("Rewinding from frame %s to 0" % self.bot._frame) self.bot._frame = 0
0.011696
def verify_repository(self, repository, master_timeout = 10, timeout = 10, body = '', params = {}, callback = None, **kwargs ): """ Returns a list of nodes where repository was succ...
0.026137
def start_with(self, request): """Start the crawler using the given request. Args: request (:class:`nyawc.http.Request`): The startpoint for the crawler. """ HTTPRequestHelper.patch_with_options(request, self.__options) self.queue.add_request(request) self...
0.008876
def page_dumb(strng, start=0, screen_lines=25): """Very dumb 'pager' in Python, for when nothing else works. Only moves forward, same interface as page(), except for pager_cmd and mode.""" out_ln = strng.splitlines()[start:] screens = chop(out_ln,screen_lines-1) if len(screens) == 1: ...
0.003891
def _bstar_set(beta, alpha, yTBy, yTBX, yTBM, XTBX, XTBM, MTBM): """ Compute -2𝐲ᵀBEⱼ𝐛ⱼ + (𝐛ⱼEⱼ)ᵀBEⱼ𝐛ⱼ. For 𝐛ⱼ = [𝜷ⱼᵀ 𝜶ⱼᵀ]ᵀ. """ from numpy_sugar import epsilon r = yTBy r -= 2 * add.reduce([i @ beta for i in yTBX]) r -= 2 * add.reduce([i @ alpha for i in yTBM]) r += add.redu...
0.00198
def get_all_reserved_instances(self, reserved_instances_id=None, filters=None): """ Describes Reserved Instance offerings that are available for purchase. :type reserved_instance_ids: list :param reserved_instance_ids: A list of the reserved instance i...
0.001983
def _add_1(self, hydrogen_name, heavy_atom, bonds): """ Adds the missing proton to single protonated heavy_atoms. """ residue = heavy_atom.parent ffld = self.ffld[self.selection[residue]] bnd_len = self.bondfield.length anchor = bonds[0] ...
0.014828
def _findJobStoreForUrl(self, url, export=False): """ Returns the AbstractJobStore subclass that supports the given URL. :param urlparse.ParseResult url: The given URL :param bool export: The URL for :rtype: toil.jobStore.AbstractJobStore """ for jobStoreCls in s...
0.005085
def perform_create(self, serializer): """Create a resource.""" process = serializer.validated_data.get('process') if not process.is_active: raise exceptions.ParseError( 'Process retired (id: {}, slug: {}/{}).'.format(process.id, process.slug, process.version) ...
0.00326
def get_default_key_store(*args, config, **kwargs): """ This method returns the default **key** store that uses an SQLite database internally. :params str appname: The appname that is used internally to distinguish different SQLite files """ kwargs["appname"] = kwargs.get("appna...
0.002525
def epomeo_gpx(max_iters=200, optimize=True, plot=True): """ Perform Gaussian process regression on the latitude and longitude data from the Mount Epomeo runs. Requires gpxpy to be installed on your system to load in the data. """ try:import pods except ImportError: print('pods unava...
0.004645
def modules(self): """Iterates over the defined Modules.""" defmodule = lib.EnvGetNextDefmodule(self._env, ffi.NULL) while defmodule != ffi.NULL: yield Module(self._env, defmodule) defmodule = lib.EnvGetNextDefmodule(self._env, defmodule)
0.006944
async def postprocess_websocket( self, response: Optional[Response], websocket_context: Optional[WebsocketContext]=None, ) -> Response: """Postprocess the websocket acting on the response. Arguments: response: The response after the websocket is finalized. ...
0.006085
def padded_accuracy(predictions, labels, weights_fn=common_layers.weights_nonzero): """Percentage of times that predictions matches labels on non-0s.""" # If the last dimension is 1 then we're using L1/L2 loss. if common_layers.shape_list(predictions)[-1] == 1: return r...
0.006468
def tryOrder(self, commit: Commit): """ Try to order if the Commit message is ready to be ordered. """ canOrder, reason = self.canOrder(commit) if canOrder: self.logger.trace("{} returning request to node".format(self)) self.doOrder(commit) else: ...
0.006928
def _get_imsize(self, im_name): """ get image size info Returns: ---------- tuple of (height, width) """ img = cv2.imread(im_name) return (img.shape[0], img.shape[1])
0.008696
def getBuild(self, build_id, **kwargs): """ Load all information about a build and return a custom Build class. Calls "getBuild" XML-RPC. :param build_id: ``int``, for example 12345 :returns: deferred that when fired returns a Build (Munch, dict-like) object r...
0.0033
def colormesh(X, Y): """ Generates line paths for a quadmesh given 2D arrays of X and Y coordinates. """ X1 = X[0:-1, 0:-1].ravel() Y1 = Y[0:-1, 0:-1].ravel() X2 = X[1:, 0:-1].ravel() Y2 = Y[1:, 0:-1].ravel() X3 = X[1:, 1:].ravel() Y3 = Y[1:, 1:].ravel() X4 = X[0:-1, 1:].rave...
0.002169
def on_dt_changed(self, dt): """ Callback triggered by the simulation loop whenever the current dt changes. Any logic that should happen exactly once at the start of each datetime group should happen here. """ self.datetime = dt self.blotter.set_date(dt)
0.00627
def multiplicity(self): """ Returns the multiplicity of a defect site within the structure (needed for concentration analysis) """ sga = SpacegroupAnalyzer(self.bulk_structure) periodic_struc = sga.get_symmetrized_structure() poss_deflist = sorted( periodic_st...
0.008681
def vrrpe(self, **kwargs): """Enable or Disable Vrrpe. Args: ip_version (str): The IP version ('4' or '6') for which vrrpe should be enabled/disabled. Default: `4`. enable (bool): If vrrpe should be enabled or disabled. Default: ``True``. ...
0.000911
def set_pin_mode(self, pin_number, pin_state, callback=None, cb_type=None): """ This method sets the pin mode for the specified pin. :param pin_number: Arduino Pin Number :param pin_state: INPUT/OUTPUT/ANALOG/PWM/PULLUP - for SERVO use servo_config() ...
0.003851
def copy(self): """ Copies the current Map into a new one and returns it. """ m = Map(features=self._features, width=self._width, height=self._height, **self._attrs) m._folium_map = self._folium_map return m
0.010909
def unpack(self, buff, item_class, offset=0): """Unpack the elements of the list. Args: buff (bytes): The binary data to be unpacked. item_class (:obj:`type`): Class of the expected items on this list. offset (int): If we need to shift the beginning of the data. ...
0.003623
def p_statement_if(p): '''statement : IF LPAREN expr RPAREN statement elseif_list else_single | IF LPAREN expr RPAREN COLON inner_statement_list new_elseif_list new_else_single ENDIF SEMI''' if len(p) == 8: p[0] = ast.If(p[3], p[5], p[6], p[7], lineno=p.lineno(1)) else: p[0]...
0.004695
def tagmask(self, tags): """ :returns: a boolean array with True where the assets has tags """ mask = numpy.zeros(len(tags), bool) for t, tag in enumerate(tags): tagname, tagvalue = tag.split('=') mask[t] = self.tagvalue(tagname) == tagvalue return...
0.006154
def add_command_by_method_name(self, command, obj): """ Lookup method named command in obj and call that method when the command is received. Raises ValueError if obj doesn't have a method named command :param command: str: name of the comand to wait for :param obj: object: must ...
0.006734
def get_likes(self): """ https://vk.com/dev/likes.getList """ from .users import User return self._session.fetch_items('likes.getList', User._get_user, count=100, type='post', owner_id=self.from_id, item_id=self.id)
0.011765
def put_file(self, file, object_type, object_id, width, height, mimetype, reproducible): """Puts the ``file`` of the image. :param file: the image file to put :type file: file-like object, :class:`file` :param object_type: the object type of the image to put ...
0.001991
def handle_error(self, callback): """ Called when an error occurs in an event loop callback. By default, sets the error view. """ self.loop.log_error(callback) msg = "\n".join([ "Exception in callback %r"%callback, traceback.format_exc() ]...
0.010929
def save(self, cfg, filename, print_ir=False, format='dot', options=None): """Save basic block graph into a file. """ if options is None: options = {} try: dot_graph = Dot(**self.graph_format) # Add nodes. nodes = {} for bb in...
0.005124
def commit(self): """Commits the batch. This is called automatically upon exiting a with statement, however it can be called explicitly if you don't want to use a context manager. :raises: :class:`~exceptions.ValueError` if the batch is not in progress. ...
0.003704
def create_sqs_policy(self, topic_name, topic_arn, topic_subs): """ This method creates the SQS policy needed for an SNS subscription. It also takes the ARN of the SQS queue and converts it to the URL needed for the subscription, as that takes a URL rather than the ARN. """ ...
0.001797
def print_results(distributions, list_all_files): """ Print the informations from installed distributions found. """ results_printed = False for dist in distributions: results_printed = True logger.info("---") logger.info("Name: %s" % dist['name']) logger.info("Versio...
0.001287
def cmd_cammsg_old(self, args): '''cammsg_old''' print("Sent old DIGICAM_CONTROL") self.master.mav.digicam_control_send( self.settings.target_system, # target_system 0, # target_component 0, 0, 0, 0, 1, 0, 0, 0)
0.010989
def get_q_object(self): """ Build Q object to filter the queryset """ q_object = Q() for field in self.searchable_fields: value = self.request.GET.getlist(alias_field(self.model, field), None) mini_q = Q() for val in value: attr...
0.006768
def _get_b(self): """Return my Y-intercept. I probably don't really hit the left edge of the window, but this is where I would, if I were long enough. """ orig = self.origin dest = self.destination (ox, oy) = orig.pos (dx, dy) = dest.pos denomina...
0.004283
def _Henry(T, gas, liquid="H2O"): """Equation for the calculation of Henry's constant Parameters ---------- T : float Temperature, [K] gas : string Name of gas to calculate solubility liquid : string Name of liquid solvent, can be H20 (default) or D2O Returns --...
0.000269
def connect_patch_namespaced_service_proxy(self, name, namespace, **kwargs): # noqa: E501 """connect_patch_namespaced_service_proxy # noqa: E501 connect PATCH requests to proxy of Service # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HT...
0.001324
def cloud_percent(self): """Return percentage of cloud coverage.""" image_content_qi = self._metadata.findtext( ( """n1:Quality_Indicators_Info/Image_Content_QI/""" """CLOUDY_PIXEL_PERCENTAGE""" ), namespaces=self._nsmap) return...
0.005814
def fuzzy(self, key, limit=5): """Give suggestion from all instances.""" instances = [i[2] for i in self.container if i[2]] if not instances: return instances = sum(instances, []) from fuzzywuzzy import process maybe = process.extract(key, instances, limit=li...
0.005797
def select_one_song(songs): """Display the songs returned by search api. :params songs: API['result']['songs'] :return: a Song object. """ if len(songs) == 1: select_i = 0 else: table = PrettyTable(['Sequence', 'Song Name', 'Artist Name']) ...
0.002445
def reset(self, id=None): ''' Reset all routes (force plugins to be re-applied) and clear all caches. If an ID is given, only that specific route is affected. ''' if id is None: self.ccache.clear() else: self.ccache.pop(id, None) if DEBUG: for route in self.routes...
0.011186
def _call_lrem(self, command, count, value, *args, **kwargs): """ If count is 0, we remove all elements equal to value, so we know we have nothing to index, and this value to deindex. In other case, we don't know how much elements will remain in the list, so we have to do a full ...
0.0064
def WaitForVirtualMachineShutdown( self, vm_to_poll, timeout_seconds, sleep_period=5 ): """ Guest shutdown requests do not run a task we can wait for. So, we must poll and wait for status to be poweredOff. Returns True if shutdown, Fal...
0.003827
def register_segment_dcnm(self, cfg, seg_id_min, seg_id_max): """Register segmentation id pool with DCNM. """ orch_id = cfg.dcnm.orchestrator_id try: segid_range = self.dcnm_client.get_segmentid_range(orch_id) if segid_range is None: self.dcnm_client.set_...
0.001931
def save_img(data, filename, masker, header=None): """ Save a vectorized image to file. """ if not header: header = masker.get_header() header.set_data_dtype(data.dtype) # Avoids loss of precision # Update min/max -- this should happen on save, but doesn't seem to header['cal_max'] = data.m...
0.002208
def printJobLog(self): """Takes a list of jobs, finds their log files, and prints them to the terminal.""" for job in self.jobsToReport: if job.logJobStoreFileID is not None: msg = "LOG_FILE_OF_JOB:%s LOG: =======>\n" % job with job.getLogFileHandle(self.jobSt...
0.00578
def make_template_name(self, model_type, sourcekey): """ Make the name of a template file for particular component Parameters ---------- model_type : str Type of model to use for this component sourcekey : str Key to identify this component Retu...
0.002472
def dereference(self, session, ref, allow_none=False): """ Dereference an ObjectID to this field's underlying type """ ref = DBRef(id=ref, collection=self.type.type.get_collection_name(), database=self.db) ref.type = self.type.type return session.dereference(ref, allo...
0.005917
def _compiler_bridge_cache_dir(self): """A directory where we can store compiled copies of the `compiler-bridge`. The compiler-bridge is specific to each scala version. Currently we compile the `compiler-bridge` only once, while bootstrapping. Then, we store it in the working directory under .pants.d/z...
0.005348
def _prepare_servers(self): """ Prepare the variables that are exposed to the servers. Most attributes in the server config are used directly. However, due to variations in how cloud providers treat regions and availability zones, this method allows either the ``availability_zo...
0.000954
def pop_many(a_dict: Dict[str, Any], *args: str, **kwargs) -> Dict[str, Any]: """Pop multiple items from a dictionary. Parameters ---------- a_dict : Dictionary from which the items will popped args: Keys which will be popped (and not included if not present) kwargs: Keys + default value p...
0.004651
def save_rdd_as_pickle(rdd, path, batch_size=10, overwrite=False): """ Saves an rdd by grouping all the records of each partition as one pickle file :param rdd: rdd to save :param path: where to save :param batch_size: batch size to pass to spark saveAsPickleFile :param overwrite: if director...
0.005655
def getobjectsize(self, window_name, object_name=None): """ Get object size @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, ...
0.002762
def get_pic(self, playingsong, tempfile_path): '''获取专辑封面''' url = playingsong['picture'].replace('\\', '') for _ in range(3): try: urllib.urlretrieve(url, tempfile_path) logger.debug('Get cover art success!') return True exc...
0.004435
def _iterate_otu_table_rows(self, read_taxonomies): '''yield that which is required for an OTU table: taxonomy, and count of that taxonomy in each sample as an array Parameters --------- read_taxonomies: a list of hashes, where the position in the list corres...
0.007913
def sigma(self): """ Spot size of matched beam :math:`\\left( \\frac{2 E \\varepsilon_0 }{ n_p e^2 } \\right)^{1/4} \\sqrt{\\epsilon}` """ return _np.power(2*_sltr.GeV2joule(self.E)*_spc.epsilon_0 / (self.plasma.n_p * _np.power(_spc.elementary_charge, 2)) , 0.25) * _np.sqrt(self.emit)
0.015773
def connect(self, autospawn=False, wait=False): '''Connect to pulseaudio server. "autospawn" option will start new pulse daemon, if necessary. Specifying "wait" option will make function block until pulseaudio server appears.''' if self._loop_closed: raise PulseError('Eventloop object was already' ' de...
0.032338
def _write(self, s, s_length=None, flush=False, ignore_overflow=False, err_msg=None): """Write ``s`` :type s: str|unicode :param s: String to write :param s_length: Custom length of ``s`` :param flush: Set this to flush the terminal stream after writing :...
0.00291
def find_url_mismatches(a_url, b_url): """Given two URLs, return a list of any mismatches. If the list is empty, the URLs are equivalent. Implemented by parsing and comparing the elements. See RFC 1738 for details. """ diff_list = [] a_parts = urllib.parse.urlparse(a_url) b_parts = urllib....
0.002684
def reuse(context, block_list, **kwargs): ''' Allow reuse of a block within a template. {% reuse '_myblock' foo=bar %} If passed a list of block names, will use the first that matches: {% reuse list_of_block_names .... %} ''' try: block_context = context.render_context[BLOCK_CONTE...
0.001466
def _MakeArgs(amazon_collection_map, google_collection_map): """Build metadata requests list from collection maps.""" request_list = [] for url, label in iteritems(amazon_collection_map): request_list.append( CloudMetadataRequest( bios_version_regex=AMAZON_BIOS_REGEX, service_n...
0.007042
def chalresp(ctx, slot, key, totp, touch, force, generate): """ Program a challenge-response credential. If KEY is not given, an interactive prompt will ask for it. """ controller = ctx.obj['controller'] if key: if generate: ctx.fail('Invalid options: --generate conflicts w...
0.001275
def posix_commonpath(paths): """Given a sequence of POSIX path names, return the longest common sub-path.""" if not paths: raise ValueError('commonpath() arg is an empty sequence') check_arg_types('commonpath', *paths) if isinstance(paths[0], bytes): sep = b'/' curdir =...
0.001079
def expand(args): """ %prog expand bes.fasta reads.fastq Expand sequences using short reads. Useful, for example for getting BAC-end sequences. The template to use, in `bes.fasta` may just contain the junction sequences, then align the reads to get the 'flanks' for such sequences. """ impor...
0.002065
def get_login_password(site_name="github.com", netrc_file="~/.netrc", git_credential_file="~/.git-credentials"): """Read a .netrc file and return login/password for LWN.""" try: n = netrc.netrc(os.path.expanduser(netrc_file)) except OSError: pass...
0.001238
def serialize(self, items): """Does the inverse of config parsing by taking parsed values and converting them back to a string representing config file contents. """ r = StringIO() for key, value in items.items(): if isinstance(value, list): # handle s...
0.004211
def extract_time(match): """extract time from a time_re match.""" hour = int(match.group('hour')) minute = int(match.group('minute')) return dt.time(hour, minute)
0.005618
def _run( self, circuit: circuits.Circuit, param_resolver: study.ParamResolver, repetitions: int, ) -> Dict[str, List[np.ndarray]]: """See definition in `cirq.SimulatesSamples`.""" circuit = protocols.resolve_parameters(circuit, param_resolver) _verify_xmon_c...
0.005085
def weighted_sample_with_replacement(seq, weights, n): """Pick n samples from seq at random, with replacement, with the probability of each element in proportion to its corresponding weight.""" sample = weighted_sampler(seq, weights) return [sample() for s in range(n)]
0.00346
def name_from_path(self): """If catalog is named 'catalog' take name from parent directory""" name = os.path.splitext(os.path.basename(self.path))[0] if name == 'catalog': name = os.path.basename(os.path.dirname(self.path)) return name.replace('.', '_')
0.006734
def calendarDF(type='holiday', direction='next', last=1, startDate=None, token='', version=''): '''This call allows you to fetch a number of trade dates or holidays from a given date. For example, if you want the next trading day, you would call /ref-data/us/dates/trade/next/1. https://iexcloud.io/docs/api/#u-...
0.004914
def catalog_report(self, catalog, harvest='none', report=None, catalog_id=None, catalog_homepage=None, catalog_org=None): """Genera un reporte sobre los datasets de un único catálogo. Args: catalog (dict, str o unicode): Representación externa (...
0.002469
def readGlobalFile(self, fileStoreID, userPath=None, cache=True, mutable=False, symlink=False): """ Downloads a file described by fileStoreID from the file store to the local directory. The function first looks for the file in the cache and if found, it hardlinks to the cached copy inste...
0.007054
def request(self, method, path, headers=None, data=None, **kwargs): """ (Primarily) internal method for making all requests to the datacenter. :param method: HTTP verb :type method: :py:class:`str` :param path: path relative to `login` path :type path: :...
0.007799
def counts(self, catalogue, output_fh): """Returns `output_fh` populated with CSV results giving n-gram counts of the witnesses of the works in `catalogue`. :param catalogue: catalogue matching filenames to labels :type catalogue: `Catalogue` :param output_fh: object to output r...
0.002361
def get_blocks(self): """ Override this method for custom content, but then you are responsible for: - generating doc string (you can call self.process_triple_quoted_doc_string()) - generating "pass" on empty body """ self.process_triple_quoted_doc_string() num_...
0.006536
def submit(self, data, runtime_dir, argv): """Run process. For details, see :meth:`~resolwe.flow.managers.workload_connectors.base.BaseConnector.submit`. """ queue = 'ordinary' if data.process.scheduling_class == Process.SCHEDULING_CLASS_INTERACTIVE: queue = ...
0.005747
def logout(self): """ Log the user out. :return: The JSON response from the server """ result = self.users.logout_user() self.client.token = '' self.client.userid = '' self.client.username = '' self.client.cookies = None return result
0.047059
def nla_len(self, value): """Length setter.""" self.bytearray[self._get_slicers(0)] = bytearray(c_uint16(value or 0))
0.015038
def getRecord(self, n=None): """Returns the nth record""" if n is None: assert len(self.fields)>0 n = self.fields[0].numRecords-1 assert (all(field.numRecords>n for field in self.fields)) record = [field.values[n] for field in self.fields] return record
0.017301
def get_results(): """Parse all search result pages.""" # store info in a dictionary {name -> shortname} res = {} session = requests.Session() baseUrl = 'http://comicfury.com/search.php?search=1&webcomics=Search+for+webcomics&query=&worder=5&asc=1&incvi=1&incse=1&incnu=1&incla=1&all_ge=1&all_st=1&al...
0.004149
def wirevector_list(names, bitwidth=None, wvtype=WireVector): """ Allocate and return a list of WireVectors. :param names: Names for the WireVectors. Can be a list or single comma/space-separated string :param bitwidth: The desired bitwidth for the resulting WireVectors. :param WireVector wvtype: Which...
0.00432
def run_task(self, name): """Run a task.""" if name in self.tasks_run: yield events.skipping_task(name) else: yield events.finding_task(name) try: task = self.find_task(name) except NoSuchTaskError as e: yield even...
0.002829
def vpn_sites_configuration(self): """Instance depends on the API version: * 2018-04-01: :class:`VpnSitesConfigurationOperations<azure.mgmt.network.v2018_04_01.operations.VpnSitesConfigurationOperations>` """ api_version = self._get_api_version('vpn_sites_configuration') if a...
0.008596