text
stringlengths
78
104k
score
float64
0
0.18
def unparse_headers(hdrs): """Parse a dictionary of headers to a string. Args: hdrs: A dictionary of headers. Returns: The headers as a string that can be used in an NNTP POST. """ return "".join([unparse_header(n, v) for n, v in hdrs.items()]) + "\r\n"
0.003436
def jinja_loader(self): """Search templates in custom app templates dir (default Flask behaviour), fallback on abilian templates.""" loaders = self._jinja_loaders del self._jinja_loaders loaders.append(Flask.jinja_loader.func(self)) loaders.reverse() return jinja2...
0.005848
def add_equipamento_remove(self, id, id_ip, ids_ips_vips): '''Adiciona um equipamento na lista de equipamentos para operação de remover um grupo virtual. :param id: Identificador do equipamento. :param id_ip: Identificador do IP do equipamento. :param ids_ips_vips: Lista com os identifi...
0.006042
def natural_sorted(l): """ sorts a sortable in human order (0 < 20 < 100) """ ll = copy(l) ll.sort(key=_natural_keys) return ll
0.013986
def build_play(self, pbp_row): """ Parses table row from RTSS. These are the rows tagged with ``<tr class='evenColor' ... >``. Result set contains :py:class:`nhlscrapi.games.playbyplay.Strength` and :py:class:`nhlscrapi.games.events.EventType` objects. Returned play data is in the form ...
0.011443
def start(name, quiet=False, path=None): ''' Start the named container. path path to the container parent default: /var/lib/lxc (system default) .. versionadded:: 2015.8.0 .. code-block:: bash salt-run lxc.start name ''' data = _do_names(name, 'start', path=pa...
0.002146
def import_from_dicts(data, samples=None, *args, **kwargs): """Import data from a iterable of dicts The algorithm will use the `samples` first `dict`s to determine the field names (if `samples` is `None` all `dict`s will be used). """ data = iter(data) cached_rows, headers = [], [] for in...
0.002418
def itertags(html, tag): """ Brute force regex based HTML tag parser. This is a rough-and-ready searcher to find HTML tags when standards compliance is not required. Will find tags that are commented out, or inside script tag etc. :param html: HTML page :param tag: tag name to find :return: gen...
0.006568
def display_timestamps_pair(time_m_2): """Takes a list of the following form: [(a1, b1), (a2, b2), ...] and returns a string (a_mean+/-a_error, b_mean+/-b_error). """ if len(time_m_2) == 0: return '(empty)' time_m_2 = np.array(time_m_2) return '({}, {})'.format( display_timestam...
0.002571
def send(self, message): """Sends a message, but does not return a response :returns: None - can't receive a response over UDP """ self.socket.sendto(message.SerializeToString(), self.address) return None
0.008163
def store_job_output(self, credentials, job_details, vm_instance_name): """ Store the output of a finished job. :param credentials: jobapi.Credentials: user's credentials used to upload resulting files :param job_details: object: details about job(id, name, created date, workflow version...
0.010152
def get_ns_commands(self, cmd_name): """ Retrieves the possible name spaces and commands associated to the given command name. :param cmd_name: The given command name :return: A list of 2-tuples (name space, command) :raise ValueError: Unknown command name """ ...
0.002356
def on_down(self, host, is_host_addition, expect_host_to_be_down=False): """ Intended for internal use only. """ if self.is_shutdown: return with host.lock: was_up = host.is_up # ignore down signals if we have open pools to the host ...
0.003631
def incoming_manipulators(self): """**DEPRECATED**: All incoming SON manipulators. .. versionchanged:: 3.5 Deprecated. .. versionadded:: 2.0 """ warnings.warn("Database.incoming_manipulators() is deprecated", DeprecationWarning, stacklevel=2) ...
0.004662
def output_interval_histogram(self, histogram, start_time_stamp_sec=0, end_time_stamp_sec=0, max_value_unit_ratio=1000000.0): '''Output an interval histogram, with the given ti...
0.004297
def projects(self): """ Returns a set of all projects in this list. """ result = set() for todo in self._todos: projects = todo.projects() result = result.union(projects) return result
0.008299
def plot(self): """Plot basis functions over full range of knots. Convenience function. Requires matplotlib. """ try: import matplotlib.pyplot as plt except ImportError: from sys import stderr print("ERROR: matplotlib.pyplot not found, matplo...
0.006173
def get_viscosity(medium="CellCarrier", channel_width=20.0, flow_rate=0.16, temperature=23.0): """Returns the viscosity for RT-DC-specific media Parameters ---------- medium: str The medium to compute the viscosity for. One of ["CellCarrier", "CellCarrier B", "water"]....
0.000455
def data_from_cluster_id(self, cluster_id, graph, data): """Returns the original data of each cluster member for a given cluster ID Parameters ---------- cluster_id : String ID of the cluster. graph : dict The resulting dictionary after applying map() ...
0.003922
def get_or_create_folder(self, folder_names): """ Gets or creates a Folder based the list of folder names in hierarchical order (like breadcrumbs). get_or_create_folder(['root', 'subfolder', 'subsub folder']) creates the folders with correct parent relations and returns the ...
0.004657
def draw_residual(x, y, yerr, xerr, show_errbars=True, ax=None, zero_line=True, grid=True, **kwargs): """Draw a residual plot on the axis. By default, if show_errbars if True, residuals are drawn as blue points with errorbars with no endcaps. If show_er...
0.00053
def parse_arguments(argv): """Parse command line arguments. Args: argv: list of command line arguments, includeing programe name. Returns: An argparse Namespace object. """ parser = argparse.ArgumentParser( description='Runs Preprocessing on structured CSV data.') parser.add_argument('--inpu...
0.01005
def clear_recovery_range(working_dir): """ Clear out our recovery hint """ recovery_range_path = os.path.join(working_dir, '.recovery') if os.path.exists(recovery_range_path): os.unlink(recovery_range_path)
0.004274
def kvstore(self): """Lazily load the underlying key-value store backing this registry.""" if self._kvstore is None: self._kvstore = self.BackingType(self.BackingFileName, respect_venv=True) return self._kvstore
0.012048
def run(program, *args, **kwargs): """Run 'program' with 'args'""" args = flattened(args, split=SHELL) full_path = which(program) logger = kwargs.pop("logger", LOG.debug) fatal = kwargs.pop("fatal", True) dryrun = kwargs.pop("dryrun", is_dryrun()) include_error = kwargs.pop("include_error",...
0.003067
def gts7(Input, flags, output): ''' /* Thermospheric portion of NRLMSISE-00 * See GTD7 for more extensive comments * alt > 72.5 km! */ ''' zn1 = [120.0, 110.0, 100.0, 90.0, 72.5] mn1 = 5 dgtr=1.74533E-2; dr=1.72142E-2; alpha = [-0.38, 0.0, 0.0, 0.0, 0.17, 0.0, -0.38, 0.0, 0.0] ...
0.055213
def _send_coroutine(): """ Creates a running coroutine to receive message instances and send them in a futures executor. """ with PoolExecutor() as executor: while True: msg = yield future = executor.submit(msg.send) future.add_done_callback(_exception_han...
0.003077
def exception_message(self) -> Union[str, None]: """ On Lavalink V3, if there was an exception during a load or get tracks call this property will be populated with the error message. If there was no error this property will be ``None``. """ if self.has_error: ...
0.006865
def visit_Scope(self, node: parsing.Capture) -> [ast.stmt] or ast.expr: """Generates python code for a scope. if not self.begin(): return False res = self.pt() if not self.end(): return False return res """ return ast.Name('scope_not_imple...
0.005319
def p_operation_list(p): """ operation_list : define_operation operation_list | define_operation """ if len(p) == 3: p[0] = p[1] + p[2] elif len(p) == 2: p[0] = p[1] else: raise RuntimeError("Invalid production rules 'p_operation_list'")
0.003289
def get_node(self, path): """ Returns node from within this particular ``DirNode``, so it is now allowed to fetch, i.e. node located at 'docs/api/index.rst' from node 'docs'. In order to access deeper nodes one must fetch nodes between them first - this would work:: d...
0.001161
def listen(self): """Start listening.""" _LOGGER.info('Creating Multicast Socket') self._mcastsocket = self._create_mcast_socket() self._listening = True thread = Thread(target=self._listen_to_msg, args=()) self._threads.append(thread) thread.daemon = True ...
0.005952
def get(self, rel_path, cb=None): '''Return the file path referenced but rel_path, or None if it can't be found. If an upstream is declared, it will try to get the file from the upstream before declaring failure. ''' import shutil global_logger.debug("FC {} get looking f...
0.005227
def show_table(args): "Output table on standard out." df = load_data(verbose=args.verbose) df = filter_data(df, filter_name=args.filter_name, verbose=args.verbose) stop = re.sub(' +', ' ', args.stop) if re.match('^\d+$', stop.decode('utf-8')): _id = stop name = df[df.stop_id==int(_...
0.006148
def fit(self, X, y=None, init=None): """ Computes the position of the points in the embedding space Parameters ---------- X : array, shape=[n_samples, n_features], or [n_samples, n_samples] \ if dissimilarity='precomputed' Input data. ...
0.005068
def check(self, instance): """ Parse until the end of each tailer associated with this instance. We match instance and tailers based on the path to the Nagios configuration file Special case: Compatibility with the old conf when no conf file is specified but the path to the even...
0.007742
def startElement(self, name, attrs): """ Initialize new node and store current node into stack. """ self.stack.append((self.current, self.chardata)) self.current = {} self.chardata = []
0.009217
def all_terms(self): """Iterate over all of the terms. The self.terms property has only root level terms. This iterator iterates over all terms""" for s_name, s in self.sections.items(): # Yield the section header if s.name != 'Root': yield s ...
0.006024
def _get_coord_cell_node_coord(self, coord, coords=None, nans=None, var=None): """ Get the boundaries of an unstructed coordinate Parameters ---------- coord: xr.Variable The coordinate whose bounds should be returned %(CFDe...
0.002227
def synonyms(self): """A ranked list of all the names associated with this Compound. Requires an extra request. Result is cached. """ if self.cid: results = get_json(self.cid, operation='synonyms') return results['InformationList']['Information'][0]['Synonym'] if...
0.008929
def to_ipv6(self, ip_type='6-to-4'): """ Convert (an IPv4) IP address to an IPv6 address. >>> ip = IP('192.0.2.42') >>> print(ip.to_ipv6()) 2002:c000:022a:0000:0000:0000:0000:0000 >>> print(ip.to_ipv6('compat')) 0000:0000:0000:0000:0000:0000:c000:022a >...
0.003513
def doc_dict(self): """Generate the documentation for this field.""" doc = { 'type': self.value_type, 'description': self.description, 'extended_description': self.details } return doc
0.007937
def re_evaluate(local_dict=None): """Re-evaluate the previous executed array expression without any check. This is meant for accelerating loops that are re-evaluating the same expression repeatedly without changing anything else than the operands. If unsure, use evaluate() which is safer. Paramete...
0.001261
def combine(self, other, func, fill_value=None): """ Combine the Series with a Series or scalar according to `func`. Combine the Series and `other` using `func` to perform elementwise selection for combined Series. `fill_value` is assumed when value is missing at some index ...
0.000511
def create_tar_archive(self): """ Create a tar archive of the main simulation outputs. """ #file filter EXCLUDE_FILES = glob.glob(os.path.join(self.savefolder, 'cells')) EXCLUDE_FILES += glob.glob(os.path.join(self.savefolder, 'popu...
0.004187
def register_task(self, input, deps=None, manager=None, task_class=None, append=False): """ Utility function that generates a `Work` made of a single task Args: input: :class:`AbinitInput` deps: List of :class:`Dependency` objects specifying the dependency of this node. ...
0.008368
def export_posterior_probability(self, filename, title="Posterior Probability"): """ Writes the posterior probability of read origin :param filename: File name for output :param title: The title of the posterior probability matrix :return: Nothing but the method writes a file in...
0.009615
def calibrate(filename): """ Append the calibration parameters as variables of the netcdf file. Keyword arguments: filename -- the name of a netcdf file. """ params = calibration_to(filename) with nc.loader(filename) as root: for key, value in params.items(): nc.getdim(r...
0.004552
def reset(self): """Reset the terminal to its initial state. * Scrolling margins are reset to screen boundaries. * Cursor is moved to home location -- ``(0, 0)`` and its attributes are set to defaults (see :attr:`default_char`). * Screen is cleared -- each character is reset t...
0.001493
def _remove_unlistened_nets(block): """ Removes all nets that are not connected to an output wirevector """ listened_nets = set() listened_wires = set() prev_listened_net_count = 0 def add_to_listened(net): listened_nets.add(net) listened_wires.update(net.args) for a_net i...
0.001192
def read(fname): ''' Read a file from the directory where setup.py resides ''' file_path = os.path.join(SETUP_DIRNAME, fname) with codecs.open(file_path, encoding='utf-8') as rfh: return rfh.read()
0.004444
def compile_cxxfile(module_name, cxxfile, output_binary=None, **kwargs): '''c++ file -> native module Return the filename of the produced shared library Raises CompileError on failure ''' builddir = mkdtemp() buildtmp = mkdtemp() extension_args = make_extension(python=True, **kwargs) ...
0.000485
def new_tracer(self, io_loop=None): """ Create a new Jaeger Tracer based on the passed `jaeger_client.Config`. Does not set `opentracing.tracer` global variable. """ channel = self._create_local_agent_channel(io_loop=io_loop) sampler = self.sampler if not sampler:...
0.001148
def color_prompt(self): ''' Construct psiTurk shell prompt ''' prompt = '[' + colorize('psiTurk', 'bold') server_string = '' server_status = self.server.is_server_running() if server_status == 'yes': server_string = colorize('on', 'green') elif server_status =...
0.002762
def _AddHeader(self, fp): """Create a file header in the config. Args: fp: int, a file pointer for writing the header. """ text = textwrap.wrap( textwrap.dedent(self.config_header), break_on_hyphens=False) fp.write('\n'.join(['# ' + line for line in text])) fp.write('\n\n')
0.003195
def asset_open_callback(self, *args, **kwargs): """Callback for the shot open button :returns: None :rtype: None :raises: None """ tf = self.browser.get_current_selection(0) if not tf: return if not os.path.exists(tf.path): msg = '...
0.003361
def _onNextBookmark(self): """Previous Bookmark action triggered. Move cursor """ for block in qutepart.iterateBlocksFrom(self._qpart.textCursor().block().next()): if self.isBlockMarked(block): self._qpart.setTextCursor(QTextCursor(block)) return
0.009554
def gen_def_json_scheme(self, req, method_fields=None): """ Generate the scheme for the json request. :param req: String representing the name of the method to call :param method_fields: A dictionary containing the method-specified fields :rtype : json object representing the met...
0.004225
def delaunay2D(plist, mode='xy', tol=None): """ Create a mesh from points in the XY plane. If `mode='fit'` then the filter computes a best fitting plane and projects the points onto it. .. hint:: |delaunay2d| |delaunay2d.py|_ """ pd = vtk.vtkPolyData() vpts = vtk.vtkPoints() vpts.Se...
0.00321
def deriv2(self, p): """ Second derivative of the Cauchy link function. Parameters ---------- p: array-like Probabilities Returns ------- g''(p) : array Value of the second derivative of Cauchy link function at `p` """ ...
0.004796
def mlinspace(a, b, nums, order='C'): ''' Constructs a regular cartesian grid Parameters ---------- a : array_like(ndim=1) lower bounds in each dimension b : array_like(ndim=1) upper bounds in each dimension nums : array_like(ndim=1) number of nodes along each dime...
0.00128
def _make_request_with_auth_fallback(self, url, headers=None, params=None): """ Generic request handler for OpenStack API requests Raises specialized Exceptions for commonly encountered error codes """ self.log.debug("Request URL and Params: %s, %s", url, params) try: ...
0.002453
def remove_query_param(url, key): """ Given a URL and a key/val pair, remove an item in the query parameters of the URL, and return the new URL. """ (scheme, netloc, path, query, fragment) = urlparse.urlsplit(url) query_dict = urlparse.parse_qs(query) query_dict.pop(key, None) query = u...
0.002198
def is_empty(value, msg=None, except_=None, inc_zeros=True): ''' is defined, but null or empty like value ''' if hasattr(value, 'empty'): # dataframes must check for .empty # since they don't define truth value attr # take the negative, since below we're # checking for ca...
0.001328
def _process_phenotype_hpoa(self, raw, limit): """ see info on format here: http://www.human-phenotype-ontology.org/contao/index.php/annotation-guide.html :param raw: :param limit: :return: """ src_key = 'hpoa' if self.test_mode: gra...
0.001406
def _process(self, metric): """ Decorator for processing handlers with a lock, catching exceptions """ if not self.enabled: return try: try: self.lock.acquire() self.process(metric) except Exception: ...
0.004444
def checkType(self, item_type, projectarea_id): """Check the validity of :class:`rtcclient.workitem.Workitem` type :param item_type: the type of the workitem (e.g. Story/Defect/Epic) :param projectarea_id: the :class:`rtcclient.project_area.ProjectArea` id :retur...
0.002436
def modify_agent_properties(self, agent_id, key_value_map={}): ''' modify_agent_properties(self, agent_id, key_value_map={}) Modify properties of an agent. If properties do not exists, they will be created :Parameters: * *agent_id* (`string`) -- Identifier of an existing agent ...
0.007566
def get_file_list(path, max_depth=1, cur_depth=0): """ Recursively returns a list of all files up to ``max_depth`` in a directory. """ if os.path.exists(path): for name in os.listdir(path): if name.startswith('.'): continue full_path = os....
0.004451
def make_call_with_cb(self, fun, *args): """Makes an API call with a callback to wait for""" cid, event = self.handler.register_callback() argscp = list(args) argscp.append(cid) self.make_call(fun, *argscp) return event
0.007463
def get_agent_metadata(self): """Gets the metadata for the agent. return: (osid.Metadata) - metadata for the agent *compliance: mandatory -- This method must be implemented.* """ # Implemented from template for osid.resource.ResourceForm.get_group_metadata_template meta...
0.006494
def _random_token(self, bits=128): """ Generates a random token, using the url-safe base64 alphabet. The "bits" argument specifies the bits of randomness to use. """ alphabet = string.ascii_letters + string.digits + '-_' # alphabet length is 64, so each letter provides lg...
0.004367
def find_pattern_on_line(lines, n, max_wrap_lines): """ Finds a forward/reply pattern within the given lines on text on the given line number and returns a tuple with the type ('reply' or 'forward') and line number of where the pattern ends. The returned line number may be different from the given l...
0.001183
def load(self): """Load the minimum needs. If the minimum needs defined in QSettings use it, if not, get the most relevant available minimum needs (based on QGIS locale). The last thing to do is to just use the default minimum needs. """ self.minimum_needs = self.setting...
0.00246
def rec(self): """Records a single snapshot""" try: self._snapshot() except Exception as e: self.log("Timer error: ", e, type(e), lvl=error)
0.010582
def clear(self): """Clears the state of the KNNClassifier.""" self._Memory = None self._numPatterns = 0 self._M = None self._categoryList = [] self._partitionIdList = [] self._partitionIdMap = {} self._finishedLearning = False self._iterationIdx = -1 # Fixed capacity KNN if ...
0.005637
def _iter_key_ranges(self): """Iterates over self._key_ranges, delegating to self._iter_key_range().""" while True: if self._current_key_range is None: if self._key_ranges: self._current_key_range = self._key_ranges.pop() # The most recently popped key_range may be None, so con...
0.013643
def routing(self, debug=False, anim=None): """ Performs routing on Load Area centres to build MV grid with ring topology. Args ---- debug: bool, defaults to False If True, information is printed while routing anim: type, defaults to None Descr #TODO ...
0.003302
def next (self): """Returns the next header and packet from this PCapStream. See read(). """ header, packet = self.read() if packet is None: raise StopIteration return header, packet
0.012295
def create_connector_c_pool(name, server=None, **kwargs): ''' Create a connection pool ''' defaults = { 'connectionDefinitionName': 'javax.jms.ConnectionFactory', 'resourceAdapterName': 'jmsra', 'associateWithThread': False, 'connectionCreationRetryAttempts': 0, '...
0.001283
def list_metering_labels(self, retrieve_all=True, **_params): """Fetches a list of all metering labels for a project.""" return self.list('metering_labels', self.metering_labels_path, retrieve_all, **_params)
0.008032
def AD(val): """Affiliation Undoing what the parser does then splitting at the semicolons and dropping newlines extra fitlering is required beacuse some AD's end with a semicolon""" retDict = {} for v in val: split = v.split(' : ') retDict[split[0]] = [s for s in' : '.join(split[1:]).rep...
0.010638
def clean_slug(self): """ Generate a valid slug, in case the given one is taken """ source = self.cleaned_data.get('slug', '') lang_choice = self.language_code if not source: source = slugify(self.cleaned_data.get('title', '')) qs = Post._default_manag...
0.005085
def sign_ssh_challenge(self, blob, identity): """Sign given blob using a private key on the device.""" msg = _parse_ssh_blob(blob) log.debug('%s: user %r via %r (%r)', msg['conn'], msg['user'], msg['auth'], msg['key_type']) log.debug('nonce: %r', msg['nonce']) f...
0.002762
def parse_name_myher(record): """Parse NAME structure assuming MYHERITAGE dialect. In MYHERITAGE dialect married name (if present) is saved as _MARNM sub-record. Maiden name is stored in SURN record. Few examples: No maiden name: 1 NAME John /Smith/ 2 GIVN John 2 SURN Smith ...
0.00093
def set_onscreen_message(self, text, redraw=True): """Called by a subclass to update the onscreen message. Parameters ---------- text : str The text to show in the display. """ width, height = self.get_window_size() font = self.t_.get('onscreen_font...
0.00128
def _set_event_handler(self, v, load=False): """ Setter method for event_handler, mapped from YANG variable /event_handler (container) If this variable is read-only (config: false) in the source YANG file, then _set_event_handler is considered as a private method. Backends looking to populate this v...
0.005938
def remove_user(uid): """ Removes a user from the DCOS Enterprise. :param uid: user id :type uid: str """ try: acl_url = urljoin(_acl_url(), 'users/{}'.format(uid)) r = http.delete(acl_url) assert r.status_code == 204 except DCOSHTTPException as e: # does...
0.002571
def set_bind(self): """ Sets key bindings -- we need this more than once """ RangedInt.set_bind(self) self.unbind('<Next>') self.unbind('<Prior>') self.bind('<Next>', lambda e: self.set(self._min())) self.bind('<Prior>', lambda e: self.set(self._max()))
0.006309
def truth(val, context): """ Convert truth value in "val" to a boolean. """ try: 0 + val except TypeError: lower_val = val.lower() if lower_val in TRUE: return True elif lower_val in FALSE: return False else: raise FilterError(...
0.004
def set_bounds(self, start, stop): """ Sets boundaries for all instruments in constellation """ for instrument in self.instruments: instrument.bounds = (start, stop)
0.009569
def covariance_matrix(self,localizer=None): """calculate the approximate covariance matrix implied by the ensemble using mean-differencing operation at the core of EnKF Parameters ---------- localizer : pyemu.Matrix covariance localizer to apply Retu...
0.006274
def update_registered_subject_from_model_on_post_save(sender, instance, raw, created, using, **kwargs): """Updates RegisteredSubject from models using UpdatesOrCreatesRegistrationModelMixin.""" if not raw and not kwargs.get('update_fields'): try: instance.registration_update_or_create() ...
0.00655
def _check_version(self, root): """Ensure the root element is a supported version. Args: root (etree.Element) Raises: UnsupportedVersionError """ version = self._get_version(root) supported = [StrictVersion(x) for x in self.s...
0.003145
def _actor_from_game_image(self, name, game_image): """Return an actor object matching the one in the game image. Note: Health and mana are based on measured percentage of a fixed maximum rather than the actual maximum in the game. Arguments: name: must be 'player' or '...
0.001126
def replace_refund_transaction_by_id(cls, refund_transaction_id, refund_transaction, **kwargs): """Replace RefundTransaction Replace all attributes of RefundTransaction This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True ...
0.006628
def _regexSearchRegPolData(search_string, policy_data): ''' helper function to do a search of Policy data from a registry.pol file returns True if the regex search_string is found, otherwise False ''' if policy_data: if search_string: match = re.search(search_string, policy_data,...
0.002488
def log_status(self, in_sync=True, incremental=False, audit=False, same=None, created=0, updated=0, deleted=0, to_delete=0): """Write log message regarding status in standard form. Split this off so all messages from baseline/audit/incremental are written in a consistent form...
0.002761
def parse(self): """Apply search template.""" self.verbose = bool(self.re_verbose) self.unicode = bool(self.re_unicode) self.global_flag_swap = { "unicode": ((self.re_unicode is not None) if not _util.PY37 else False), "verbose": False } self.temp...
0.003155
def store_image(self, http_client, link_hash, src, config): """\ Writes an image src http string to disk as a temporary file and returns the LocallyStoredImage object that has the info you should need on the image """ # check for a cache hit already on disk image ...
0.003044