text
stringlengths
78
104k
score
float64
0
0.18
def from_array(array): """ Deserialize a new Message from a given dictionary. :return: new Message instance. :rtype: Message """ if array is None or not array: return None # end if assert_type_or_raise(array, dict, parameter_name="array") ...
0.007269
def enable_pow_mining(chain_class: Type[BaseChain]) -> Type[BaseChain]: """ Inject on demand generation of the proof of work mining seal on newly mined blocks into each of the chain's vms. """ if not chain_class.vm_configuration: raise ValidationError("Chain class has no vm_configuration") ...
0.002179
def children(self): """ The list of child messages and actions sorted by task level, excluding the start and end messages. """ return pvector( sorted(self._children.values(), key=lambda m: m.task_level))
0.011765
def compare_bpdu_info(my_priority, my_times, rcv_priority, rcv_times): """ Check received BPDU is superior to currently held BPDU by the following comparison. - root bridge ID value - root path cost - designated bridge ID value - designated port I...
0.001248
def migrate1(): "Migrate from version 0 to 1" initial = [ "create table Chill (version integer);", "insert into Chill (version) values (1);", "alter table SelectSQL rename to Query;", "alter table Node add column template integer references Template (id) on delete set null;", "alter table N...
0.005652
def disable_plugin(self): """Disable ensime-vim, in the event of an error we can't usefully recover from. Todo: This is incomplete and unreliable, see: https://github.com/ensime/ensime-vim/issues/294 If used from a secondary thread, this may need to use thre...
0.003854
def radio_button(g, l, fn): """ Inheriting radio button of urwid """ w = urwid.RadioButton(g, l, False, on_state_change=fn) w = urwid.AttrWrap(w, 'button normal', 'button select') return w
0.009804
def write_indented_block(self, block): """print a line or lines of python which already contain indentation. The indentation of the total block of lines will be adjusted to that of the current indent level.""" self.in_indent_lines = False for l in re.split(r'\r?\n', block): ...
0.007712
def complementary(clr): """ Returns a list of complementary colors. The complement is the color 180 degrees across the artistic RYB color wheel. The list contains darker and softer contrasting and complementing colors. """ clr = color(clr) colors = colorlist(clr) # A contrastin...
0.000826
async def log( self, date: datetime.date = None, days: int = None, details: bool = False) -> list: """Get watering information for X days from Y date.""" endpoint = 'watering/log' if details: endpoint += '/details' if date and ...
0.003831
def set(self, section, option, value = None, title = None, validate = None, help = None, control = None, args = None, kwargs = None, include = None): """ set(self, section, option, value = None, title = None, validate = lambda value: None, help = '', control = None, args = [], kwargs = {}, include = True) Stor...
0.033077
def get_singularity_version(singularity_version=None): '''get_singularity_version will determine the singularity version for a build first, an environmental variable is looked at, followed by using the system version. Parameters ========== singularity_version: if not defined, lo...
0.008368
def _rc_sunionstore(self, dst, src, *args): """ Store the union of sets ``src``, ``args`` into a new set named ``dest``. Returns the number of keys in the new set. """ args = list_or_args(src, args) result = self.sunion(*args) if result is not set([]): ...
0.005319
def check_ttl_max_tries(tries, enqueued_at, max_tries, ttl): '''Check that the ttl for an item has not expired, and that the item has not exceeded it's maximum allotted tries''' if max_tries > 0 and tries >= max_tries: raise FSQMaxTriesError(errno.EINTR, u'Max tries exceded:'\ ...
0.005059
def command_patterns(self): """\ Actual messages listened for by the worker bot - note that worker-execute actually dispatches again by adding the command to the task queue, from which it is pulled then matched against self.task_patterns """ return ( ('!regist...
0.011782
def get_feats(self, doc): ''' Parameters ---------- doc, Spacy Doc Returns ------- Counter noun chunk -> count ''' ngram_counter = Counter() for sent in doc.sents: ngram_counter += _phrase_counts(sent) return ngram_counter
0.056452
def pgettext(msgctxt, message): """'Particular gettext' function. It works with 'msgctxt' .po modifiers and allow duplicate keys with different translations. Python 2 don't have support for this GNU gettext function, so we reimplement it. It works by joining msgctx and msgid by '4' byte.""" key ...
0.002198
def update_status(self): """Update status informations in tkinter window.""" try: # all this may fail if the connection to the fritzbox is down self.update_connection_status() self.max_stream_rate.set(self.get_stream_rate_str()) self.ip.set(self.status.ext...
0.001873
def __set_formulas(self, formulas): """ Sets formulas in this cell range from an iterable. Any cell values can be set using this method. Actual formulas must start with an equal sign. """ array = tuple((self._clean_formula(v),) for v in formulas) self._get_target...
0.005797
def save_to(self, destination, name=None, overwrite=False, delete_on_failure=True): """ To save the object in a local path :param destination: str - The directory to save the object to :param name: str - To rename the file name. Do not add extesion :param overwrite: :para...
0.003413
def select_Heavy(self, exclude_symmetry_related=False): """ Returns the indexes of all heavy atoms (Mass >= 2), optionally excluding symmetry-related heavy atoms. Parameters ---------- exclude_symmetry_related : boolean, default=False if True, exclude symmetr...
0.005105
async def encoder_read(self, command): """ This is a polling method to read the last cached FirmataPlus encoder value. Normally not used. See encoder config for the asynchronous report message format. :param command: {"method": "encoder_read", "params": [PIN_A]} :returns: {"meth...
0.010101
def solubility_eutectic(T, Tm, Hm, Cpl=0, Cps=0, gamma=1): r'''Returns the maximum solubility of a solute in a solvent. .. math:: \ln x_i^L \gamma_i^L = \frac{\Delta H_{m,i}}{RT}\left( 1 - \frac{T}{T_{m,i}}\right) - \frac{\Delta C_{p,i}(T_{m,i}-T)}{RT} + \frac{\Delta C_{p,i}}{R}\ln\frac...
0.001363
def plot_all(*args, **kwargs): ''' Read all the trial data and plot the result of applying a function on them. ''' dfs = do_all(*args, **kwargs) ps = [] for line in dfs: f, df, config = line df.plot(title=config['name']) ps.append(df) return ps
0.003378
def drawText(self, text, x=0, y=0, color=None, bg=colors.COLORS.Off, aa=False, font=font.default_font, font_scale=1): """ Draw a line of text starting at (x, y) in an RGB color. :param colorFunc: a function that takes an integer from x0 to x1 and re...
0.006369
def list_services(self): """List Services.""" content = self._fetch("/service") return map(lambda x: FastlyService(self, x), content)
0.035971
def update_domain(self, domain, **kwargs): """ Update an existing domain via PATCH /v1/domains/{domain} https://developer.godaddy.com/doc#!/_v1_domains/update currently it supports ( all optional ) locked = boolean nameServers = list renew...
0.005188
def norm(self, x): """Return the weighted norm of ``x``. Parameters ---------- x : `NumpyTensor` Tensor whose norm is calculated. Returns ------- norm : float The norm of the provided tensor. """ if self.exponent == 2.0: ...
0.0032
def order_limit_buy(self, timeInForce=TIME_IN_FORCE_GTC, **params): """Send in a new limit buy order Any order with an icebergQty MUST have timeInForce set to GTC. :param symbol: required :type symbol: str :param quantity: required :type quantity: decimal :param...
0.003385
def remove_tags(self, server, tags): """ Remove tags from a server. - server: Server object or UUID string - tags: list of Tag objects or strings """ uuid = str(server) tags = [str(tag) for tag in tags] url = '/server/{0}/untag/{1}'.format(uuid, ','.join...
0.005479
def stop(self, wait=1, shutdown=True, force_secondary_shutdown=False): """ Stops all secondaries. 'wait' specifies the time (in seconds) to wait before shutting down the manager or returning. If 'shutdown', shutdown the manager. If 'force_secondary_shutdown', shutdown the...
0.002198
def find_node_name(each_line,temp_func_list): """ Find the slave machine where a Jenkins job was executed on. It will save this information in g_failed_test_info_dict. In addition, it will delete this particular function handle off the temp_func_list as we do not need to perform this action again....
0.008065
def setFieldStats(self, fieldName, fieldStats): """ TODO: document """ #If the stats are not fully formed, ignore. if fieldStats[fieldName]['min'] == None or \ fieldStats[fieldName]['max'] == None: return self.minval = fieldStats[fieldName]['min'] self.maxval = fieldStats[field...
0.016787
def attr(*args, **kwargs): ''' Set attributes on the current active tag context ''' ctx = dom_tag._with_contexts[_get_thread_context()] if ctx and ctx[-1]: dicts = args + (kwargs,) for d in dicts: for attr, value in d.items(): ctx[-1].tag.set_attribute(*dom_tag.clean_pair(attr, value)) ...
0.016173
def summarise_pdfs(pdfs): """ Collate the first page from each of the PDFs provided into a single PDF. :param pdfs: The contents of several PDF files. :type pdfs: list of str :returns: The contents of single PDF, which can be written directly to disk. """ # Ignore...
0.001645
def get_authorization_url(self, acr_values=None, prompt=None, scope=None, custom_params=None): """Function to get the authorization url that can be opened in the browser for the user to provide authorization and authentication Parameters: * **acr_values...
0.004152
def create_dvportgroup(dvs_ref, spec): ''' Creates a distributed virtual portgroup on a distributed virtual switch (dvs) dvs_ref The dvs reference spec Portgroup spec (vim.DVPortgroupConfigSpec) ''' dvs_name = get_managed_object_name(dvs_ref) log.trace('Adding portgroup...
0.001022
def _get_installations(self): """ Get information about installations """ response = None for base_url in urls.BASE_URLS: urls.BASE_URL = base_url try: response = requests.get( urls.get_installations(self._username), ...
0.002026
def save(self, file_name, model_name='default', overwrite=False, save_streaming_chain=False): r""" saves the current state of this object to given file and name. Parameters ----------- file_name: str path to desired output file model_name: str, default='default' ...
0.004353
def sign(self, identity, blob): """Sign given blob and return the signature (as bytes).""" path = _expand_path(identity.get_bip32_address(ecdh=False)) if identity.identity_dict['proto'] == 'ssh': ins = '04' p1 = '00' else: ins = '08' p1 = '...
0.001433
def _filterRecord(filterList, record): """ Takes a record and returns true if record meets filter criteria, false otherwise """ for (fieldIdx, fp, params) in filterList: x = dict() x['value'] = record[fieldIdx] x['acceptValues'] = params['acceptValues'] x['min'] = params['min'] x['max'] = p...
0.013129
def GetClosestPoint(self, p): """ Returns (closest_p, closest_i), where closest_p is the closest point to p on the piecewise linear curve represented by the polyline, and closest_i is the index of the point on the polyline just before the polyline segment that contains closest_p. """ assert(...
0.005533
def get_full_history(self, force=None, last_update=None, flush=False): ''' Fields change depending on when you run activity_import, such as "last_updated" type fields which don't have activity being tracked, which means we'll always end up with different hash values, so we need t...
0.003656
def handle_json_GET_routes(self, params): """Return a list of all routes.""" schedule = self.server.schedule result = [] for r in schedule.GetRouteList(): result.append( (r.route_id, r.route_short_name, r.route_long_name) ) result.sort(key = lambda x: x[1:3]) return result
0.019802
def TRM(f,a,b): """ Calculate TRM using tanh relationship TRM(f)=a*math.tanh(b*f) """ m = float(a) * math.tanh(float(b) * float(f)) return float(m)
0.017241
def attrs( maybe_cls=None, type=None, context=None, translate=None, **attrs_kwargs ): """Wrap an attr enabled class.""" if isinstance(type, (list, tuple, set)): types = list(type) else: types = [type] if type is not None else [] context = context or {} translate = translate or {}...
0.000272
def _GetUtf8Contents(self, file_name): """Check for errors in file_name and return a string for csv reader.""" contents = self._FileContents(file_name) if not contents: # Missing file return # Check for errors that will prevent csv.reader from working if len(contents) >= 2 and contents[0:2] ...
0.010788
def _set_auth_arguments(self, basic_auth=True, token_auth=False): """Activate authentication arguments parsing""" group = self.parser.add_argument_group('authentication arguments') if basic_auth: group.add_argument('-u', '--backend-user', dest='user', ...
0.003106
def detect(self, stream, threshold, threshold_type, trig_int, plotvar, pre_processed=False, daylong=False, parallel_process=True, xcorr_func=None, concurrency=None, cores=None, ignore_length=False, overlap="calculate", debug=0, full_peaks=False): """ ...
0.001302
def receive_bytes(self, data): """Process bytes received from the network. Arguments: data (bytes): any length bytes received from a network connection to a kafka broker. Returns: responses (list of (correlation_id, response)): any/all completed ...
0.001812
def zoom(self, zoom, center=(0, 0, 0), mapped=True): """Update the transform such that its scale factor is changed, but the specified center point is left unchanged. Parameters ---------- zoom : array-like Values to multiply the transform's current scale ...
0.002144
def dotilt_V(indat): """ Does a tilt correction on an array with rows of dec,inc bedding dip direction and dip. Parameters ---------- input : declination, inclination, bedding dip direction and bedding dip nested array of [[dec1, inc1, bed_az1, bed_dip1],[dec2,inc2,bed_az2,bed_dip2]...] Re...
0.002171
def write(self, label, index): """ Saves a new label, index mapping to the cache. Raises a RuntimeError on a conflict. """ if label in self.cache: if self.cache[label] != index: error_message = 'cache_conflict on label: {} with index: {}\ncache dump: {...
0.006565
def run_question(self, question, input_func=_stdin_): """Run the given question.""" qi = '[%d/%d] ' % (self.qcount, self.qtotal) print('%s %s:' % (qi, question['label'])) while True: # ask for user input until we get a valid one ans = input_func('%s > ' % self.for...
0.008375
def join_state_collections( collection_a, collection_b): """ Warning: This is a very naive join. Only use it when measures and groups will remain entirely within each subcollection. For example: if each collection has states grouped by date and both include the same date, then the new collection w...
0.021362
def get_all_pictures_cursor(self, lat_min, lon_min, lat_max, lon_max, picture_size=None, set_=None, map_filter=None): """ Generator to get all available photos for a given bounding box :param lat_min: Minimum latitude of the bounding box :type...
0.004453
def get_healthcheck(value): """ Converts input into a :class:`HealthCheck` tuple. Input can be passed as string, tuple, list, or a dictionary. If set to ``None``, the health check will be set to ``NONE``, i.e. override an existing configuration from the image. :param value: Health check input. :typ...
0.00558
def _create_affine_siemens_mosaic(dicom_input): """ Function to create the affine matrix for a siemens mosaic dataset This will work for siemens dti and 4d if in mosaic format """ # read dicom series with pds dicom_header = dicom_input[0] # Create affine matrix (http://nipy.sourceforge.net/...
0.004367
def _install(self, name, version, repos): '''Check existence and version match of R library. cran and bioc packages are unique yet might overlap with github. Therefore if the input name is {repo}/{pkg} the package will be installed from github if not available, else from cran or bioc ...
0.002618
def validate(self, index): """Validate the conf for the given index :param index: the index of the model to validate :type index: QModelIndex :returns: True if passed and a False/True dict representing fail/pass. The structure follows the configobj. If the configobj does not have a conf...
0.005405
def create_api_stage(restApiId, stageName, deploymentId, description='', cacheClusterEnabled=False, cacheClusterSize='0.5', variables=None, region=None, key=None, keyid=None, profile=None): ''' Creates a new API stage for a given restApiId and deploymentId. CLI Exa...
0.005907
def get_component_types(topic_id, remoteci_id, db_conn=None): """Returns either the topic component types or the rconfigration's component types.""" db_conn = db_conn or flask.g.db_conn rconfiguration = remotecis.get_remoteci_configuration(topic_id, ...
0.001131
def _open(self, file_path=None): """ Opens the file specified by the given path. Raises ValueError if there is a problem with opening or reading the file. """ if file_path is None: file_path = self.file_path if not os.path.exists(file_path): raise ValueError('Could not find file: {}'.format(file_path...
0.031189
def list_blobs(call=None, kwargs=None): # pylint: disable=unused-argument ''' List blobs. ''' if kwargs is None: kwargs = {} if 'container' not in kwargs: raise SaltCloudSystemExit( 'A container must be specified' ) storageservice = _get_block_blob_service(...
0.003667
def strip_alias(data_type): """ Strip alias from a data_type chain - this function should be used *after* aliases are resolved (see resolve_aliases fn): Loops through given data type chain (unwraps types), replaces first alias with underlying type, and then terminates. Note: Stops on encounter...
0.001397
def _build_cache_key(request): """ Generated the key name used to cache responses :param request: request used to retrieve API response :return: formatted cache name """ str_hash = md5( (request.method + request.url + str(request.params) + str(request.data) + ...
0.00716
def resample(self, rule: Union[str, int] = "1s") -> "Flight": """Resamples a Flight at a one point per second rate.""" if isinstance(rule, str): data = ( self._handle_last_position() .data.assign(start=self.start, stop=self.stop) .set_index("t...
0.001974
def delete_api_model(restApiId, modelName, region=None, key=None, keyid=None, profile=None): ''' Delete a model identified by name in a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_model restApiId modelName ''' try: conn = _get_conn(reg...
0.003472
def _column(arr, indexes): """ Returns a column with given indexes from a deep array For example, if the array is a matrix and indexes is a single int, will return arr[:,indexes]. If the array is an order 3 tensor and indexes is a pair of ints, will return arr[:,indexes[0],indexes[1]], etc. """ ...
0.003407
def load(self, filename): """read configdata from file. Parameters ---------- filename : string the name of the YAML formatted config file. """ self.filename = filename with open(filename) as CFG: self.data = yaml.load(CFG.read()) ...
0.006006
def open(self, name, *mode): """ Return an open file object for a file in the reference package. """ return self.file_factory(self.file_path(name), *mode)
0.010753
def _process_book(link): """ Download and parse available informations about book from the publishers webpages. Args: link (str): URL of the book at the publishers webpages. Returns: obj: :class:`.Publication` instance with book details. """ # download and parse book info ...
0.000502
def submit(self, map): '''Envia a requisição HTTP de acordo com os parâmetros informados no construtor. :param map: Dicionário com os dados do corpo da requisição. :return: Retorna uma tupla contendo: (< código de resposta http >, < corpo da resposta >). :raise ConnectionE...
0.002997
def add(self, *args): """ This function adds strings to the keyboard, while not exceeding row_width. E.g. ReplyKeyboardMarkup#add("A", "B", "C") yields the json result {keyboard: [["A"], ["B"], ["C"]]} when row_width is set to 1. When row_width is set to 2, the following is the r...
0.006219
def fcoe_get_interface_output_fcoe_intf_list_fcoe_intf_time_since_last_change(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") fcoe_get_interface = ET.Element("fcoe_get_interface") config = fcoe_get_interface output = ET.SubElement(fcoe_get_interf...
0.006928
def send_binary(self, binary_message, callback=None): """ :return: None """ assert isinstance(binary_message, str) message = self.parser.parse(binary_message) if isinstance(message, velbus.Message): self.send(message, callback)
0.006969
def translate(self, vector): """Translates `Atom`. Parameters ---------- vector : 3D Vector (tuple, list, numpy.array) Vector used for translation. inc_alt_states : bool, optional If true, will rotate atoms in all states i.e. includes alternat...
0.003472
def multiget(client, keys, **options): """Executes a parallel-fetch across multiple threads. Returns a list containing :class:`~riak.riak_object.RiakObject` or :class:`~riak.datatypes.Datatype` instances, or 4-tuples of bucket-type, bucket, key, and the exception raised. If a ``pool`` option is inc...
0.0006
def delete_alias(self, alias_name): """Delete the alias.""" for aliases in self.key_to_aliases.values(): if alias_name in aliases: aliases.remove(alias_name)
0.00995
def list_bucket_inventory_configurations(client=None, **kwargs): """ Bucket='string' """ result = client.list_bucket_inventory_configurations(**kwargs) if not result.get("InventoryConfigurationList"): result.update({"InventoryConfigurationList": []}) return result
0.003367
def find_local_maximum(self, input_sample, N, num_params, k_choices, num_groups=None): """Find the most different trajectories in the input sample using a local approach An alternative by Ruano et al. (2012) for the brute force approach as originally proposed ...
0.001139
def cancel_queue(self): """ Cancel all requests in the queue so we can exit. """ q = list(self.queue) self.queue = [] log.debug("Canceling requests: {}".format(q)) for req in q: req.response = APIServerNotRunningErrorResponse() for req in q: ...
0.005848
def callback(self, filename, lines, **kwargs): """Sends log lines to redis servers""" self._logger.debug('Redis transport called') timestamp = self.get_timestamp(**kwargs) if kwargs.get('timestamp', False): del kwargs['timestamp'] namespaces = self._beaver_config.g...
0.00207
def check_block_parsing(self, name, path, contents): """Check if we were able to extract toplevel blocks from the given contents. Return True if extraction was successful (no exceptions), False if it fails. """ if not dbt.flags.TEST_NEW_PARSER: return True try...
0.004386
def json_response(func): """ @json_response decorator adds response header for content type, and json-dumps response object. Example usage: @json_response def test(request): return { "hello": "world" } """ @wraps(func) def wrapper(request, *args, **kwargs): ...
0.00211
def _main(): """Called when the module is executed""" def process_reports(reports_): output_str = "{0}\n".format(json.dumps(reports_, ensure_ascii=False, indent=2)) if not opts.silent: print...
0.000039
def set_keywords(self, keywords): """Changes the <meta> keywords tag.""" self.head.keywords.attr(content=", ".join(keywords)) return self
0.012422
def right_join(self, table, one=None, operator=None, two=None): """ Add a right join to the query :param table: The table to join with, can also be a JoinClause instance :type table: str or JoinClause :param one: The first column of the join condition :type one: str ...
0.002782
def export_metadata(self, fields=None, forms=None, format='json', df_kwargs=None): """ Export the project's metadata Parameters ---------- fields : list Limit exported metadata to these fields forms : list Limit exported metadata to th...
0.001996
def set_poolmember_state(self, id_pools, pools): """ Enable/Disable pool member by list """ data = dict() uri = "api/v3/pool/real/%s/member/status/" % ';'.join(id_pools) data["server_pools"] = pools return self.put(uri, data=data)
0.006897
def changed_get(self, start_time, nick=None, page_size=200, page_no=1): '''taobao.simba.creativeids.changed.get =================================== 获取修改的创意ID''' request = TOPRequest('taobao.simba.creativeids.changed.get') request['start_time'] = start_time request['page_s...
0.011538
def innerLoop(self): """ The main loop for processing jobs by the leader. """ self.timeSinceJobsLastRescued = time.time() while self.toilState.updatedJobs or \ self.getNumberOfJobsIssued() or \ self.serviceManager.jobsIssuedToServiceManager: ...
0.003256
def lookup(self, req, parent, name): """Look up a directory entry by name and get its attributes. Valid replies: reply_entry reply_err """ self.reply_err(req, errno.ENOENT)
0.008734
def get_delivery_stats(api_key=None, secure=None, test=None, **request_args): '''Get delivery stats for your Postmark account. :param api_key: Your Postmark API key. Required, if `test` is not `True`. :param secure: Use the https scheme for the Postmark API. Defaults to `True` :param test: Use ...
0.004666
def get_discrete_task_agent(generators, market, nStates, nOffer, markups, withholds, maxSteps, learner, Pd0=None, Pd_min=0.0): """ Returns a tuple of task and agent for the given learner. """ env = pyreto.discrete.MarketEnvironment(generators, market, numS...
0.002294
def view_directory(dname=None, fname=None, verbose=True): """ View a directory in the operating system file browser. Currently supports windows explorer, mac open, and linux nautlius. Args: dname (str): directory name fname (str): a filename to select in the directory (nautlius only) ...
0.000386
def readNamelist(namFilename, unique_glyphs=False, cache=None): """ Args: namFilename: The path to the Namelist file. unique_glyphs: Optional, whether to only include glyphs unique to subset. cache: Optional, a dict used to cache loaded Namelist files Returns: A dict with following keys: "fileNa...
0.004045
def check_cluster( cluster_config, data_path, java_home, check_replicas, batch_size, minutes, start_time, end_time, ): """Check the integrity of the Kafka log files in a cluster. start_time and end_time should be in the format specified by TIME_FORMAT_REGEX. :param data...
0.000988
def filter_stopwords(str): """ Stop word filter returns list """ STOPWORDS = ['a', 'able', 'about', 'across', 'after', 'all', 'almost', 'also', 'am', 'among', 'an', 'and', 'any', 'are', 'as', 'at', 'be', 'because', 'been', 'but', 'by', 'can', 'cannot', ...
0.000753
def option_parser(): """Option Parser to give various options.""" usage = ''' $ ./crawler -d5 <url> Here in this case it goes till depth of 5 and url is target URL to start crawling. ''' version = "2.0.0" parser = optparse.OptionParser(usage=usag...
0.002611