text
stringlengths
78
104k
score
float64
0
0.18
def get_event_questions(self, id, **data): """ GET /events/:id/questions/ Eventbrite allows event organizers to add custom questions that attendees fill out upon registration. This endpoint can be helpful for determining what custom information is collected and available per even...
0.010661
def vflip(img): """Vertically flip the given PIL Image. Args: img (PIL Image): Image to be flipped. Returns: PIL Image: Vertically flipped image. """ if not _is_pil_image(img): raise TypeError('img should be PIL Image. Got {}'.format(type(img))) return img.transpose(I...
0.002933
def _load_tags(self,directory): """Loads tags from tag file and return as flickr api compatible string """ #FIXME: should check if DB tracking file before using it # --- Read tags out of file _tags='' try: fullfile=os.path.join(directory,TAG_FILE) ...
0.021382
def init_region_config(self, region): """ Initialize the region's configuration :param region: Name of the region """ self.regions[region] = self.region_config_class(region_name = region, resource_types = self.resource_types)
0.024735
def scale(self, image, geometry, upscale, crop): """ Given an image, scales the image down (or up, if ``upscale`` equates to a boolean ``True``). :param Image image: This is your engine's ``Image`` object. For PIL it's PIL.Image. :param tuple geometry: Geometry of th...
0.002257
def add_tasks_to_remote(self, pid, path='C:/TDDOWNLOAD/', task_list=[]): ''' post data: { "path":"C:/TDDOWNLOAD/", "tasks":[{ "url":"ed2k://|file|%E6%B0%B8%E6%81%92.Forever...", "name":"永恒.Forever.S01E02.中英字幕.WEB-HR.mkv", "g...
0.001456
def getSiblings(self, retracted=False): """ Returns the list of analyses of the Analysis Request to which this analysis belongs to, but with the current analysis excluded. :param retracted: If false, retracted/rejected siblings are dismissed :type retracted: bool :return:...
0.002006
def _init_axes(self, data, method='plot', xscale=None, sharex=False, sharey=False, geometry=None, separate=None, **kwargs): """Populate this figure with data, creating `Axes` as necessary """ if isinstance(sharex, bool): sharex = "all" if sharex ...
0.001265
def worker(work_unit): '''Expects a WorkUnit from coordinated, obtains a config, and runs traverse_extract_fetch ''' if 'config' not in work_unit.spec: raise coordinate.exceptions.ProgrammerError( 'could not run extraction without global config') web_conf = Config() unitcon...
0.003559
def start(self): ''' Starts the server. ''' self._app.run(host=self._host, port=self._port)
0.018692
def getScalars(self, inputData): """ Returns a numpy array containing the sub-field scalar value(s) for each sub-field of the ``inputData``. To get the associated field names for each of the scalar values, call :meth:`.getScalarNames()`. For a simple scalar encoder, the scalar value is simply the i...
0.004566
def insort_no_dup(lst, item): """ If item is not in lst, add item to list at its sorted position """ import bisect ix = bisect.bisect_left(lst, item) if lst[ix] != item: lst[ix:ix] = [item]
0.009009
def process_gauge(self, key, fields): """ Process a received gauge event :param key: Key of timer :param fields: Received fields """ try: self.gauges[key] = float(fields[0]) if self.stats_seen >= maxint: self.logger.info("hit maxin...
0.003322
def cmd_arp_poison(victim1, victim2, iface, verbose): """Send ARP 'is-at' packets to each victim, poisoning their ARP tables for send the traffic to your system. Note: If you want a full working Man In The Middle attack, you need to enable the packet forwarding on your operating system to act like a ...
0.002357
def create_signature(key_dict, data): """ <Purpose> Return a signature dictionary of the form: {'keyid': 'f30a0870d026980100c0573bd557394f8c1bbd6...', 'sig': '...'}. The signing process will use the private key in key_dict['keyval']['private'] and 'data' to generate the signature. The fol...
0.007681
def sam_send(sock, line_and_data): """Send a line to the SAM controller, but don't read it""" if isinstance(line_and_data, tuple): line, data = line_and_data else: line, data = line_and_data, b'' line = bytes(line, encoding='ascii') + b' \n' # print('-->', line, data) sock.senda...
0.002985
def writeMultiByte(self, value, charset): """ Writes a multibyte string to the datastream using the specified character set. @type value: C{str} @param value: The string value to be written. @type charset: C{str} @param charset: The string denoting the character ...
0.002825
def build_search(self): """ Construct the ``Search`` object. """ s = self.search() s = self.query(s, self._query) s = self.filter(s) if self.fields: s = self.highlight(s) s = self.sort(s) self.aggregate(s) return s
0.006536
def get_mean_and_stddevs(self, sites, rup, dists, imt, stddev_types): """ See :meth:`superclass method <.base.GroundShakingIntensityModel.get_mean_and_stddevs>` for spec of input and result values. """ assert all(stddev_type in self.DEFINED_FOR_STANDARD_DEVIATION_TYPES ...
0.001212
def _preprocess_format(self): """ Preprocess the format_string attribute. Splits the format string on each placeholder and returns a list of tuples containing substring, placeholder name, and function retrieving content for placeholder (getter). Relevant placeholder fun...
0.001818
def fetch_exemplars(keyword, outfile, n=50): """ Fetch top lists matching this keyword, then return Twitter screen names along with the number of different lists on which each appers.. """ list_urls = fetch_lists(keyword, n) print('found %d lists for %s' % (len(list_urls), keyword)) counts = Counter...
0.001639
def set_secondary_vehicle_position(self, m): '''store second vehicle position for filtering purposes''' if m.get_type() != 'GLOBAL_POSITION_INT': return (lat, lon, heading) = (m.lat*1.0e-7, m.lon*1.0e-7, m.hdg*0.01) if abs(lat) < 1.0e-3 and abs(lon) < 1.0e-3: retu...
0.005495
def execute_cmd(self, *args, **kwargs): """Execute a given hpssacli/ssacli command on the controller. This method executes a given command on the controller. :params args: a tuple consisting of sub-commands to be appended after specifying the controller in hpssacli/ssacli command. ...
0.003135
def generate_batch(cls, strategy, size, **kwargs): """Generate a batch of instances. The instances will be created with the given strategy (one of BUILD_STRATEGY, CREATE_STRATEGY, STUB_STRATEGY). Args: strategy (str): the strategy to use for generating the instance. ...
0.00463
def hosts_to_endpoints(hosts, port=2181): """ return a list of (host, port) tuples from a given host[:port],... str """ endpoints = [] for host in hosts.split(","): endpoints.append(tuple(host.rsplit(":", 1)) if ":" in host else (host, port)) return endpoints
0.006873
def bls_parallel_pfind( times, mags, errs, magsarefluxes=False, startp=0.1, # by default, search from 0.1 d to... endp=100.0, # ... 100.0 d -- don't search full timebase stepsize=1.0e-4, mintransitduration=0.01, # minimum transit length in phase maxtransitdurat...
0.004924
def can_subscribe_to_topic(self, topic, user): """ Given a topic, checks whether the user can add it to their subscription list. """ # A user can subscribe to topics if they are authenticated and if they have the permission # to read the related forum. Of course a user can subscribe only if they...
0.010327
def example_exc_handler(tries_remaining, exception, delay): """Example exception handler; prints a warning to stderr. tries_remaining: The number of tries remaining. exception: The exception instance which was raised. """ print >> stderr, "Caught '{0}', {1} tries remaining, \ sleeping for {2} ...
0.002703
def fileset(self, name, from_study=None, format=None): # @ReservedAssignment @IgnorePep8 """ Gets the fileset named 'name' produced by the Study named 'study' if provided. If a spec is passed instead of a str to the name argument, then the study will be set from the spec iff it is deriv...
0.001206
def start(st_reg_number): """Checks the number valiaty for the Alagoas state""" if len(st_reg_number) > 9: return False if len(st_reg_number) < 9: return False if st_reg_number[0:2] != "24": return False if st_reg_number[2] not in ['0', '3', '5', '7', '8']: return...
0.001493
def motion_detection_sensitivity(self): """Sensitivity level of Camera motion detection.""" if not self.triggers: return None for trigger in self.triggers: if trigger.get("type") != "pirMotionActive": continue sensitivity = trigger.get("sensi...
0.004684
def dumps(value): """ Dumps a data structure to TOML source code. The given value must be either a dict of dict values, a dict, or a TOML file constructed by this module. """ from contoml.file.file import TOMLFile if not isinstance(value, TOMLFile): raise RuntimeError("Can only dump a...
0.007614
def createJSON(g, full=True): """ Create JSON compatible dictionary from current settings Parameters ---------- g : hcam_drivers.globals.Container Container with globals """ data = dict() if 'gps_attached' not in g.cpars: data['gps_attached'] = 1 else: data['gps...
0.002174
def divide(elements, by, translate=False, sep=' '): """Divide lists `elements` and `by`. All elements are grouped into N bins, where N denotes the elements in `by` list. Parameters ---------- elements: list of dict Elements to be grouped into bins. by: list of dict Elements defi...
0.003958
def transform(self, y): """Transform labels to normalized encoding. Parameters ---------- y : ArrayRDD [n_samples] Target values. Returns ------- y : ArrayRDD [n_samples] """ mapper = super(SparkLabelEncoder, self).transform map...
0.005076
def fit_content(self, verbose=False): """ Zooms out the current view in order to display all of its elements. :param verbose: print more """ PARAMS={} response=api(url=self.__url+"/fit content", PARAMS=PARAMS, method="POST", verbose=verbose) return response
0.015873
def set_simulation_duration(self, simulation_duration): """ set the simulation_duration see: http://www.gsshawiki.com/Project_File:Required_Inputs """ self.project_manager.setCard('TOT_TIME', str(simulation_duration.total_seconds()/60.0)) super(EventMode, self).set_simula...
0.007335
def node_filters(self): """ Dict[str, NodeFilter]: Returns the node filters for this selector. """ return { name: filter for name, filter in iter(self.filters.items()) if isinstance(filter, NodeFilter)}
0.012346
def use_form(form_class, request=None, **top_kwargs): """ Validate request (query_params or request body with args from url) with serializer and pass validated data dict to the view function instead of request object. """ def validated_form(request, **kwargs): # import ipdb; ipdb.set_trace(...
0.002429
def publish_active_scene(self, scene_id): """publish changed active scene""" self.sequence_number += 1 self.publisher.send_multipart(msgs.MessageBuilder.scene_active(self.sequence_number, scene_id)) return self.sequence_number
0.011628
def _updateEmissionProbabilities(self): """Sample a new set of emission probabilites from the conditional distribution P(E | S, O) """ observations_by_state = [self.model.collect_observations_in_state(self.observations, state) for state in range(self.model.nstat...
0.010363
def delete(self, template_id, session): '''taobao.delivery.template.delete 删除运费模板 根据用户指定的模板ID删除指定的模板''' request = TOPRequest('taobao.delivery.template.delete') request['template_id'] = template_id self.create(self.execute(request, session), fields=['complete', ]) ...
0.008798
def generate_random_string(template_dict, key='start'): """Generates a random excuse from a simple template dict. Based off of drow's generator.js (public domain). Grok it here: http://donjon.bin.sh/code/random/generator.js Args: template_dict: Dict with template strings. key: String w...
0.00641
def _run(self): """Run method that can be profiled""" self.set_state(self.STATE_INITIALIZING) self.ioloop = ioloop.IOLoop.current() self.consumer_lock = locks.Lock() self.sentry_client = self.setup_sentry( self._kwargs['config'], self.consumer_name) try: ...
0.002717
def QA_SU_save_etf_list(client=DATABASE, ui_log=None, ui_progress=None): """save etf_list Keyword Arguments: client {[type]} -- [description] (default: {DATABASE}) """ try: QA_util_log_info( '##JOB16 Now Saving ETF_LIST ====', ui_log=ui_log, ui_progre...
0.000936
def consume_keys_asynchronous_threads(self): """ Work through the keys to look up asynchronously using multiple threads """ print("\nLooking up " + self.input_queue.qsize().__str__() + " keys from " + self.source_name + "\n") jobs = multiprocessing.cpu_count()*4 if (multiprocessi...
0.006932
def enumerate_keyword_args(tokens): """ Iterates over *tokens* and returns a dictionary with function names as the keys and lists of keyword arguments as the values. """ keyword_args = {} inside_function = False for index, tok in enumerate(tokens): token_type = tok[0] token_s...
0.002384
def create(cls, **kwargs): """Initializes a new instance, adds it to the db and commits the transaction. Args: **kwargs: The keyword arguments for the init constructor. Examples: >>> user = User.create(name="Vicky", email="vicky@h.com") >>> user.id...
0.006316
def avg_pool(arr, block_size, cval=0, preserve_dtype=True): """ Resize an array using average pooling. dtype support:: See :func:`imgaug.imgaug.pool`. Parameters ---------- arr : (H,W) ndarray or (H,W,C) ndarray Image-like array to pool. See :func:`imgaug.pool` for details. ...
0.004535
def psed(path, before, after, limit='', backup='.bak', flags='gMS', escape_all=False, multi=False): ''' .. deprecated:: 0.17.0 Use :py:func:`~salt.modules.file.replace` instead. Make a simple edit to a file (pure Python version) Equ...
0.00058
def enurlform_app(parser, cmd, args): # pragma: no cover """ encode a series of key=value pairs into a query string. """ parser.add_argument('values', help='the key=value pairs to URL encode', nargs='+') args = parser.parse_args(args) return enurlform(dict(v.split('=', 1) for v in args.values)...
0.006231
def list_subscription(self): '''**Description** List all subscriptions **Arguments** - None **Success Return Value** A JSON object representing the list of subscriptions. ''' url = self.url + "/api/scanning/v1/anchore/subscriptions" r...
0.003984
def dispatch(self): """Dispatch http request to registerd commands. Example:: slack = Slack(app) app.add_url_rule('/', view_func=slack.dispatch) """ from flask import request method = request.method data = request.args if method == 'POST...
0.002301
def get_webpack(request, name='DEFAULT'): """ Get the Webpack object for a given webpack config. Called at most once per request per config name. """ if not hasattr(request, '_webpack_map'): request._webpack_map = {} wp = request._webpack_map.get(name) if wp is None: wp = re...
0.002611
def do_init_cached_fields(self): """ Initialize each fields of the fields_desc dict, or use the cached fields information """ cls_name = self.__class__ # Build the fields information if Packet.class_default_fields.get(cls_name, None) is None: self.pr...
0.00223
def _epsilon_closure(self, state): """ Returns the \epsilon-closure for the state given as input. """ closure = set([state.stateid]) stack = [state] while True: if not stack: break s = stack.pop() for arc in s: ...
0.005217
def bind_to_uniform_block(self, binding=0, *, offset=0, size=-1) -> None: ''' Bind the buffer to a uniform block. Args: binding (int): The uniform block binding. Keyword Args: offset (int): The offset. size (int): The size. Va...
0.004796
def predecessors(self, node, exclude_compressed=True): """ Returns the list of predecessors of a given node Parameters ---------- node : str The target node exclude_compressed : boolean If true, compressed nodes are excluded from the predecessors...
0.004769
def neighbors(self) -> List['Node']: """ The list of neighbors of the node. """ self._load_neighbors() return [edge.source if edge.source != self else edge.target for edge in self._neighbors.values()]
0.007634
def go_to_py_cookie(go_cookie): '''Convert a Go-style JSON-unmarshaled cookie into a Python cookie''' expires = None if go_cookie.get('Expires') is not None: t = pyrfc3339.parse(go_cookie['Expires']) expires = t.timestamp() return cookiejar.Cookie( version=0, name=go_cook...
0.000866
def _add_to_checksum(self, checksum, value): """Add a byte to the checksum.""" checksum = self._byte_rot_left(checksum, 1) checksum = checksum + value if (checksum > 255): checksum = checksum - 255 self._debug(PROP_LOGLEVEL_TRACE, "C: " + str(checksum) + " V: " + str(...
0.008547
def list_files(dirname, extension=None): """ List all files in directory `dirname`, option to filter on file extension """ f = [] for (dirpath, dirnames, filenames) in os.walk(dirname): f.extend(filenames) break if extension is not None: # Filter on extension filt...
0.001866
def _remove_processed_data( self): """*remove processed data* """ self.log.info('starting the ``_remove_processed_data`` method') archivePath = self.settings["atlas archive path"] from fundamentals.mysql import readquery sqlQuery = u""" select mj...
0.003193
def delete_api_key(awsclient, api_key): """Remove API key. :param api_key: """ _sleep() client_api = awsclient.get_client('apigateway') print('delete api key: %s' % api_key) response = client_api.delete_api_key( apiKey=api_key ) print(json2table(response))
0.0033
def crps(self): """ Calculates the continuous ranked probability score. """ return np.sum(self.errors["F_2"].values - self.errors["F_O"].values * 2.0 + self.errors["O_2"].values) / \ (self.thresholds.size * self.num_forecasts)
0.011111
def add_filter(self, table, cols, condition): """ Add a filter. When reading *table*, rows in *table* will be filtered by filter_rows(). Args: table: The table the filter applies to. cols: The columns in *table* to filter on. condition: The filter fun...
0.002714
def _build_query(self, table, tree, visitor): """ Build a scan/query from a statement """ kwargs = {} index = None if tree.using: index_name = kwargs["index"] = tree.using[1] index = table.get_index(index_name) if tree.where: constraints = Cons...
0.001918
def is_permitted_collective(self, permission_s, logical_operator=all): """ :param permission_s: a List of authz_abcs.Permission objects :param logical_operator: indicates whether *all* or at least one permission check is true, *any* :type: any OR all ...
0.003953
def block_stats(x,y,z,ds,stat='median',bins=None): """Compute points on a regular grid (matching input GDAL Dataset) from scattered point data using specified statistic Wrapper for scipy.stats.binned_statistic_2d Note: this is very fast for mean, std, count, but bignificantly slower for median ""...
0.016055
def save_profile(self, userdata, data): """ Save user profile modifications """ result = userdata error = False # Check if updating username. if not userdata["username"] and "username" in data: if re.match(r"^[-_|~0-9A-Z]{4,}$", data["username"], re.IGNORECASE) is No...
0.004639
def Open(self, urn, aff4_type=None, mode="r", token=None, local_cache=None, age=NEWEST_TIME, follow_symlinks=True, transaction=None): """Opens the named object. This instantiates the object from the AFF4 data store. Not...
0.005447
def _get_renamed_diff(self, blueprint, command, column, schema): """ Get a new column instance with the new column name. :param blueprint: The blueprint :type blueprint: Blueprint :param command: The command :type command: Fluent :param column: The column ...
0.003221
def target_base(self): """ :API: public :returns: the source root path for this target. """ source_root = self._sources_field.source_root if not source_root: raise TargetDefinitionException(self, 'Not under any configured source root.') return source_root.path
0.010169
async def resetTriggerToken(self, *args, **kwargs): """ Reset a trigger token Reset the token for triggering a given hook. This invalidates token that may have been issued via getTriggerToken with a new token. This method gives output: ``v1/trigger-token-response.json#`` ...
0.00883
def get_clan_war(self, tag: crtag, timeout: int=None): """Get inforamtion about a clan's current clan war Parameters ---------- tag: str A valid tournament tag. Minimum length: 3 Valid characters: 0289PYLQGRJCUV timeout: Optional[int] = None C...
0.008247
def address(self): ''' Return the address of this "object", minus the scheme, hostname and port of the bridge ''' return self.API.replace( 'http://{}:{}'.format( self._bridge.hostname, self._bridge.port ), '' )
0.006369
def spec_var(model, ph): """Compute variance of ``p`` from Fourier coefficients ``ph``. Parameters ---------- model : pyqg.Model instance The model object from which `ph` originates ph : complex array The field on which to compute the variance Returns ------- var_dens :...
0.007005
def safe_import(self, name): """Helper utility for reimporting previously imported modules while inside the env""" module = None if name not in self._modules: self._modules[name] = importlib.import_module(name) module = self._modules[name] if not module: d...
0.004723
def _coeff4(N, a0, a1, a2, a3): """a common internal function to some window functions with 4 coeffs For the blackmna harris for instance, the results are identical to octave if N is odd but not for even values...if n =0 whatever N is, the w(0) must be equal to a0-a1+a2-a3, which is the case here, but...
0.007843
def _external2internal_func(bounds): """ Make a function which converts between external (constrained) and internal (unconstrained) parameters. """ ls = [_external2internal_lambda(b) for b in bounds] def convert_e2i(xe): xi = empty_like(xe) xi[:] = [l(p) for l, p in zip(ls, xe)]...
0.005525
def is_chief(task: backend.Task, run_name: str): """Returns True if task is chief task in the corresponding run""" global run_task_dict if run_name not in run_task_dict: return True task_list = run_task_dict[run_name] assert task in task_list, f"Task {task.name} doesn't belong to run {run_name}" return ...
0.023529
def durables(self): """ Dictionary of all keys and their values in Zookeeper. """ results = dict() for child in self.connection.retry(self.connection.get_children, self.keyspace): value, _ = self.connection.retry( self.connection.get, ...
0.006135
def update_stored_win32tz_map(): """Downloads the cldr win32 timezone map and stores it in win32tz_map.py.""" windows_zones_xml = download_cldr_win32tz_map_xml() source_hash = hashlib.md5(windows_zones_xml).hexdigest() if hasattr(windows_zones_xml, "decode"): windows_zones_xml = windows_zones_xml.decode("u...
0.015753
def generate_lines_for_vocab(tmp_dir, sources, file_byte_budget=1e6): """Generate lines for vocabulary generation.""" tf.logging.info("Generating vocab from: %s", str(sources)) for source in sources: url = source[0] filename = os.path.basename(url) compressed_file = maybe_download(tmp_dir, filename, u...
0.01083
def get_memberships_for_org(self, account_num, verbose=False): """ Retrieve all memberships associated with an organization, ordered by expiration date. """ if not self.client.session_id: self.client.request_session() query = "SELECT Objects() FROM Membership...
0.003945
def fmt_sz(intval): """ Format a byte sized value. """ try: return fmt.human_size(intval) except (ValueError, TypeError): return "N/A".rjust(len(fmt.human_size(0)))
0.005102
def hash_id(self): """获取作者的内部hash id(用不到就忽视吧~) :return: 用户hash id :rtype: str """ div = self.soup.find('div', class_='zm-profile-header-op-btns') if div is not None: return div.button['data-id'] else: ga = self.soup.find('script', attrs={'...
0.005063
def guess_initc(ts, f, rts=[]): """ ts - An AstonSeries that's being fitted with peaks f - The functional form of the peaks (e.g. gaussian) rts - peak maxima to fit; each number corresponds to one peak """ def find_side(y, loc=None): if loc is None: loc = y.argmax() d...
0.000619
def remove_instance(self, instance): """Request to cleanly remove the given instance. If instance is external also shutdown it cleanly :param instance: instance to remove :type instance: object :return: None """ # External instances need to be close before (proce...
0.004412
def list(self, link_type, product, identifierType=None): """ Retrieve list of linked products :param link_type: type of link, one of 'cross_sell', 'up_sell', 'related' or 'grouped' :param product: ID or SKU of product :param identifierType: Defines whether the pr...
0.003503
def parse_sidebar(self, manga_page): """Parses the DOM and returns manga attributes in the sidebar. :type manga_page: :class:`bs4.BeautifulSoup` :param manga_page: MAL manga page's DOM :rtype: dict :return: manga attributes :raises: :class:`.InvalidMangaError`, :class:`.MalformedMangaPageErro...
0.012835
def _set_static_network(self, v, load=False): """ Setter method for static_network, mapped from YANG variable /rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/default_vrf/static_network (list) If this variable is read-only (config: false) in the source YANG file, then _set_static_network i...
0.003532
def update_pr_main(): """Main method""" parser = argparse.ArgumentParser( description='Build package.', formatter_class=argparse.RawTextHelpFormatter) parser.add_argument('--pr-number', '-p', dest='pr_number', type=int, required=True, help='PR...
0.000873
def hierarchy(intervals_hier, labels_hier, levels=None, ax=None, **kwargs): '''Plot a hierarchical segmentation Parameters ---------- intervals_hier : list of np.ndarray A list of segmentation intervals. Each element should be an n-by-2 array of segment intervals, in the format returne...
0.000567
def run_somaticsniper_full(job, tumor_bam, normal_bam, univ_options, somaticsniper_options): """ Run SomaticSniper on the DNA bams. :param dict tumor_bam: Dict of bam and bai for tumor DNA-Seq :param dict normal_bam: Dict of bam and bai for normal DNA-Seq :param dict univ_options: Dict of universal...
0.003497
def post(self, url, data, headers=None): """ Perform an HTTP POST request for a given url. Returns the response object. """ return self._request('POST', url, data, headers=headers)
0.009091
def line_spacing(self): """ |float| or |Length| value specifying the space between baselines in successive lines of the paragraph. A value of |None| indicates line spacing is inherited from the style hierarchy. A float value, e.g. ``2.0`` or ``1.75``, indicates spacing is applied...
0.002571
def random_stochastic_matrix(n, k=None, sparse=False, format='csr', random_state=None): """ Return a randomly sampled n x n stochastic matrix with k nonzero entries for each row. Parameters ---------- n : scalar(int) Number of states. k : scalar(int), o...
0.000737
def _plot(self, xticks=[], yticks=[], minor_xticks=[], minor_yticks=[], xlabel='Longitude', ylabel='Latitude', ax=None, ax2=None, colorbar=None, cb_orientation=None, cb_label=None, grid=False, axes_labelsize=None, tick_labelsize=None, **kwargs): """Plot the raw data usi...
0.002637
def set_elements_text(parent_to_parse, element_path=None, text_values=None): """ Assigns an array of text values to each of the elements parsed from the parent. The text values are assigned in the same order they are provided. If there are less values then elements, the remaining elements are skipped; b...
0.008787