sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_colorize) function_name_colorize (parameters (identifier_txt) identifier_txt (default_parameter (identifier_fg) identifier_fg (None) None )default_parameter (default_parameter (identifier_bg) identifier_bg (Non...
Print escape codes to set the terminal color. fg and bg are indices into the color palette for the foreground and background colors.
(module (function_definition (function_name_detect_response_encoding) function_name_detect_response_encoding (parameters (identifier_response) identifier_response (default_parameter (identifier_is_html) identifier_is_html (False) False )default_parameter (default_parame...
Return the likely encoding of the response document. Args: response (Response): An instance of :class:`.http.Response`. is_html (bool): See :func:`.util.detect_encoding`. peek (int): The maximum number of bytes of the document to be analyzed. Returns: ``str``, ``None``: The cod...
(module (function_definition (function_name_has_unclosed_brackets) function_name_has_unclosed_brackets (parameters (identifier_text) identifier_text )parameters (block (expression_statement (assignment (identifier_stack) identifier_stack (list )list ...
Starting at the end of the string. If we find an opening bracket for which we didn't had a closing one yet, return True.
(module (function_definition (function_name__processing_limit) function_name__processing_limit (parameters (identifier_self) identifier_self (identifier_spec) identifier_spec )parameters (block (expression_statement (assignment (identifier_processing_rate) identifie...
Get the limit on the number of map calls allowed by this slice. Args: spec: a Mapreduce spec. Returns: The limit as a positive int if specified by user. -1 otherwise.
(module (function_definition (function_name_system_requirements) function_name_system_requirements (parameters )parameters (block (expression_statement (call (identifier_command_exists) identifier_command_exists (argument_list (string_"systemd-nspawn") str...
Check if all necessary packages are installed on system :return: None or raise exception if some tooling is missing
(module (function_definition (function_name_build_license_file) function_name_build_license_file (parameters (identifier_directory) identifier_directory (identifier_spec) identifier_spec )parameters (block (expression_statement (assignment (pattern_list ...
Creates a License.rtf file with the content of "X_MSI_LICENSE_TEXT" in the given directory
(module (function_definition (function_name_do_find) function_name_do_find (parameters (identifier_self) identifier_self (identifier_params) identifier_params )parameters (block (for_statement (identifier_path) identifier_path (call (attribute (a...
\x1b[1mNAME\x1b[0m find - Find znodes whose path matches a given text \x1b[1mSYNOPSIS\x1b[0m find [path] [match] \x1b[1mOPTIONS\x1b[0m * path: the path (default: cwd) * match: the string to match in the paths (default: '') \x1b[1mEXAMPLES\x1b[0m > find / foo /foo2 ...
(module (function_definition (function_name_launch_processes) function_name_launch_processes (parameters (identifier_tests) identifier_tests (identifier_run_module) identifier_run_module (default_parameter (identifier_group) identifier_group (True) True )default_paramet...
Helper method to launch processes and sync output
(module (function_definition (function_name_add_text) function_name_add_text (parameters (identifier_self) identifier_self (identifier_value) identifier_value )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_li...
Adds text corresponding to `value` into `self.pieces`.
(module (function_definition (function_name_on_finish) function_name_on_finish (parameters (identifier_func) identifier_func (identifier_handler) identifier_handler (identifier_args) identifier_args (identifier_kwargs) identifier_kwargs )parameters (block (expression_stat...
Wrap the handler ``on_finish`` method to finish the Span for the given request, if available.
(module (function_definition (function_name_reseed_random) function_name_reseed_random (parameters (identifier_seed) identifier_seed )parameters (block (expression_statement (assignment (identifier_r) identifier_r (call (attribute (iden...
Reseed factory.fuzzy's random generator.
(module (function_definition (function_name_topil) function_name_topil (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (if_statement (call (attri...
Get PIL Image. :return: :py:class:`PIL.Image`, or `None` if the composed image is not available.
(module (function_definition (function_name_get_bank_ids_by_item) function_name_get_bank_ids_by_item (parameters (identifier_self) identifier_self (identifier_item_id) identifier_item_id )parameters (block (expression_statement (assignment (identifier_mgr) identifie...
Gets the list of ``Bank`` ``Ids`` mapped to an ``Item``. arg: item_id (osid.id.Id): ``Id`` of an ``Item`` return: (osid.id.IdList) - list of bank ``Ids`` raise: NotFound - ``item_id`` is not found raise: NullArgument - ``item_id`` is ``null`` raise: OperationFailed - unab...
(module (function_definition (function_name___dict_to_BetterDict) function_name___dict_to_BetterDict (parameters (identifier_self) identifier_self (identifier_attr) identifier_attr )parameters (block (if_statement (comparison_operator (call (identifier_t...
Convert the passed attr to a BetterDict if the value is a dict Returns: The new value of the passed attribute.
(module (function_definition (function_name__parse_binary) function_name__parse_binary (parameters (identifier_v) identifier_v (identifier_header_d) identifier_header_d )parameters (block (expression_statement (assignment (identifier_v) identifier_v (call ...
Parses binary string. Note: <str> for py2 and <binary> for py3.
(module (function_definition (function_name_get_usb_controller_count_by_type) function_name_get_usb_controller_count_by_type (parameters (identifier_self) identifier_self (identifier_type_p) identifier_type_p )parameters (block (if_statement (not_operator (call ...
Returns the number of USB controllers of the given type attached to the VM. in type_p of type :class:`USBControllerType` return controllers of type int
(module (function_definition (function_name_remove) function_name_remove (parameters (identifier_self) identifier_self (identifier_dist) identifier_dist )parameters (block (while_statement (comparison_operator (attribute (identifier_dist) identifier_dist...
Remove `dist` from the distribution map
(module (function_definition (function_name_get_indicators) function_name_get_indicators (parameters (identifier_self) identifier_self (default_parameter (identifier_from_time) identifier_from_time (None) None )default_parameter (default_parameter (identifier_to...
Creates a generator from the |get_indicators_page| method that returns each successive indicator as an |Indicator| object containing values for the 'value' and 'type' attributes only; all other |Indicator| object attributes will contain Null values. :param int from_time: start of time window in...
(module (function_definition (function_name_copy2) function_name_copy2 (parameters (identifier_src) identifier_src (identifier_dst) identifier_dst (default_parameter (identifier_metadata) identifier_metadata (None) None )default_parameter (default_parameter ...
Copy the file content from src to dst. Args: src: /bucket/filename dst: /bucket/filename metadata: a dict of metadata for this copy. If None, old metadata is copied. For example, {'x-goog-meta-foo': 'bar'}. retry_params: An api_utils.RetryParams for this call to GCS. If None, the default ...
(module (function_definition (function_name__get_config) function_name__get_config (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_filename) identifier_filename (call (attribute ...
Reads the config file from disk or creates a new one.
(module (function_definition (function_name_init_prior) function_name_init_prior (parameters (identifier_self) identifier_self (identifier_R) identifier_R )parameters (block (expression_statement (assignment (pattern_list (identifier_centers) identifier_...
initialize prior for the subject Returns ------- TFA Returns the instance itself.
(module (function_definition (function_name_sg_transpose) function_name_sg_transpose (parameters (identifier_tensor) identifier_tensor (identifier_opt) identifier_opt )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (asser...
r"""Permutes the dimensions according to `opt.perm`. See `tf.transpose()` in tensorflow. Args: tensor: A `Tensor` (automatically given by chain). opt: perm: A permutation of the dimensions of `tensor`. The target shape. name: If provided, replace current tensor's name. Returns...
(module (function_definition (function_name_download_to_file) function_name_download_to_file (parameters (identifier_self) identifier_self (identifier_file) identifier_file )parameters (block (expression_statement (assignment (identifier_con) identifier_con ...
Download and store the file of the sample. :param file: A file-like object to store the file.
(module (function_definition (function_name_array) function_name_array (parameters (identifier_self) identifier_self (default_parameter (identifier_dimensions) identifier_dimensions (None) None )default_parameter )parameters (block (if_statement (compari...
Convert dimension values to columnar array. Args: dimensions: List of dimensions to return Returns: Array of columns corresponding to each dimension
(module (function_definition (function_name_make) function_name_make (parameters (identifier_self) identifier_self (identifier_cmd_args) identifier_cmd_args (identifier_db_args) identifier_db_args )parameters (block (with_statement (with_clause (with_item ...
Runs bcp FORMAT command to create a format file that will assist in creating the bulk data file
(module (function_definition (function_name_find_suitable_period) function_name_find_suitable_period (parameters )parameters (block (expression_statement (assignment (identifier_highest_acceptable_factor) identifier_highest_acceptable_factor (call (identif...
Automatically find a suitable period to use. Factors are best, because they will have 1 left over when dividing SIZE+1. This only needs to be run once, on import.
(module (function_definition (function_name_report_build_messages) function_name_report_build_messages (parameters (identifier_self) identifier_self )parameters (block (if_statement (call (attribute (identifier_os) identifier_os (identifier_getenv)...
Checks environment variables to see whether pepper8 is run under a build agent such as TeamCity and performs the adequate actions to report statistics. Will not perform any action if HTML output is written to OUTPUT_FILE and not stdout. Currently only supports TeamCity. :return: A list...
(module (function_definition (function_name_get_next_ip) function_name_get_next_ip (parameters (identifier_self) identifier_self (identifier_tenant_id) identifier_tenant_id (identifier_direc) identifier_direc )parameters (block (if_statement (comparison_operator ...
Retrieve the next available subnet. Given a tenant, it returns the service subnet values assigned to it based on direction.
(module (function_definition (function_name_OnTimerToggle) function_name_OnTimerToggle (parameters (identifier_self) identifier_self (identifier_event) identifier_event )parameters (block (if_statement (attribute (attribute (identifier_self) identifier_s...
Toggles the timer for updating frozen cells
(module (function_definition (function_name_handle_presentation) function_name_handle_presentation (parameters (identifier_msg) identifier_msg )parameters (block (if_statement (comparison_operator (attribute (identifier_msg) identifier_msg (identif...
Process a presentation message.
(module (function_definition (function_name__combine_lines) function_name__combine_lines (parameters (identifier_self) identifier_self (identifier_lines) identifier_lines )parameters (block (expression_statement (assignment (identifier_lines) identifier_lines ...
Combines a list of JSON objects into one JSON object.
(module (function_definition (function_name_create) function_name_create (parameters (identifier_self) identifier_self (identifier_ip_dest) identifier_ip_dest (identifier_next_hop) identifier_next_hop (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictio...
Create a static route Args: ip_dest (string): The ip address of the destination in the form of A.B.C.D/E next_hop (string): The next hop interface or ip address **kwargs['next_hop_ip'] (string): The next hop address on destination interface ...
(module (function_definition (function_name_addReward) function_name_addReward (parameters (identifier_self) identifier_self (default_parameter (identifier_r) identifier_r (None) None )default_parameter )parameters (block (expression_statement (assignmen...
A filtered mapping towards performAction of the underlying environment.
(module (function_definition (function_name_phase_from_polarizations) function_name_phase_from_polarizations (parameters (identifier_h_plus) identifier_h_plus (identifier_h_cross) identifier_h_cross (default_parameter (identifier_remove_start_phase) identifier_remove_start_phase ...
Return gravitational wave phase Return the gravitation-wave phase from the h_plus and h_cross polarizations of the waveform. The returned phase is always positive and increasing with an initial phase of 0. Parameters ---------- h_plus : TimeSeries An PyCBC TmeSeries vector that contain...
(module (function_definition (function_name__get_interval) function_name__get_interval (parameters (identifier_variant_regions) identifier_variant_regions (identifier_region) identifier_region (identifier_out_file) identifier_out_file (identifier_items) identifier_items )parameters...
Retrieve interval to run analysis in. Handles no targets, BED and regions region can be a single region or list of multiple regions for multicore calling.
(module (function_definition (function_name_save_encoder) function_name_save_encoder (parameters (identifier_self) identifier_self (typed_parameter (identifier_name) identifier_name (type (identifier_str) identifier_str )type )typed_parameter )parameters...
Save the encoder to `name` inside the model directory.
(module (function_definition (function_name_terminate) function_name_terminate (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (expression_statement (call (attribute (attribute ...
Delete all files created by this index, invalidating `self`. Use with care.
(module (function_definition (function_name_closed) function_name_closed (parameters (identifier_lower_value) identifier_lower_value (identifier_upper_value) identifier_upper_value )parameters (block (return_statement (call (identifier_Interval) identifier_Interval ...
Helper function to construct an interval object with closed lower and upper. For example: >>> closed(100.2, 800.9) [100.2, 800.9]
(module (function_definition (function_name_draw) function_name_draw (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_cell_background_renderer) identifier_cell_background_renderer (call (i...
Draws cell to context
(module (function_definition (function_name__parse_info) function_name__parse_info (parameters (identifier_self) identifier_self (identifier_info_str) identifier_info_str (identifier_num_alts) identifier_num_alts )parameters (block (expression_statement (assignment ...
Parse INFO column from string
(module (function_definition (function_name_currentText) function_name_currentText (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_lineEdit) identifier_lineEdit (call (attribute ...
Returns the current text for this combobox, including the hint option \ if no text is set.
(module (function_definition (function_name_add_native_name) function_name_add_native_name (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (expression_statement (call (attribute (identifier_self) identif...
Add native name. Args: :param name: native name for the current author. :type name: string
(module (function_definition (function_name__runPopUp) function_name__runPopUp (parameters (identifier_workbench) identifier_workbench (identifier_popUp) identifier_popUp )parameters (block (expression_statement (call (attribute (identifier_workbench) id...
Displays the pop-up on the workbench and gets a completion notification deferred. When that fires, undisplay the pop-up and return the result of the notification deferred verbatim.
(module (function_definition (function_name__name_helper) function_name__name_helper (parameters (typed_parameter (identifier_name) identifier_name (type (identifier_str) identifier_str )type )typed_parameter )parameters (block (expression_statement ...
default to returning a name with `.service`
(module (function_definition (function_name_light) function_name_light (parameters (identifier_obj) identifier_obj (identifier_sun) identifier_sun )parameters (block (expression_statement (assignment (identifier_dist) identifier_dist (call (att...
Returns if an object is augmenting or diminishing light.
(module (function_definition (function_name_gauss_box_model_deriv) function_name_gauss_box_model_deriv (parameters (identifier_x) identifier_x (default_parameter (identifier_amplitude) identifier_amplitude (float_1.0) float_1.0 )default_parameter (default_parameter ...
Derivative of the integral of a Gaussian profile.
(module (function_definition (function_name_difference) function_name_difference (parameters (identifier_self) identifier_self (identifier_second_iterable) identifier_second_iterable (default_parameter (identifier_selector) identifier_selector (identifier_identity) identifier...
Returns those elements which are in the source sequence which are not in the second_iterable. This method is equivalent to the Except() LINQ operator, renamed to a valid Python identifier. Note: This method uses deferred execution, but as soon as execution commences the ent...
(module (function_definition (function_name_create_from_remote_file) function_name_create_from_remote_file (parameters (identifier_self) identifier_self (identifier_group) identifier_group (default_parameter (identifier_snapshot) identifier_snapshot (True) True )default...
Creates from remote GAF
(module (function_definition (function_name_emit) function_name_emit (parameters (identifier_events) identifier_events (default_parameter (identifier_stream) identifier_stream (None) None )default_parameter (default_parameter (identifier_Dumper) identifier_Dumpe...
Emit YAML parsing events into a stream. If stream is None, return the produced string instead.
(module (function_definition (function_name_invoice_pdf) function_name_invoice_pdf (parameters (identifier_self) identifier_self (identifier_invoice_id) identifier_invoice_id )parameters (block (return_statement (call (attribute (identifier_self) identif...
Opens a pdf of an invoice :param invoice_id: the invoice id :return: dict
(module (function_definition (function_name_has_tag) function_name_has_tag (parameters (identifier_self) identifier_self (identifier_p_key) identifier_p_key (default_parameter (identifier_p_value) identifier_p_value (string_"") string_"" )default_parameter )paramete...
Returns true when there is at least one tag with the given key. If a value is passed, it will only return true when there exists a tag with the given key-value combination.
(module (function_definition (function_name_smooth) function_name_smooth (parameters (identifier_sig) identifier_sig (identifier_window_size) identifier_window_size )parameters (block (expression_statement (assignment (identifier_box) identifier_box (binar...
Apply a uniform moving average filter to a signal Parameters ---------- sig : numpy array The signal to smooth. window_size : int The width of the moving average filter.
(module (function_definition (function_name_dump) function_name_dump (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_dumpfile) identifier_dumpfile (attribute (attribute (ide...
Dump the database using the postgres custom format
(module (function_definition (function_name_mask_xdata) function_name_mask_xdata (parameters (identifier_self) identifier_self )parameters (type (attribute (identifier_DataAndMetadata) identifier_DataAndMetadata (identifier_DataAndMetadata) identifier_DataAndMetadata ...
Return the mask by combining any mask graphics on this data item as extended data. .. versionadded:: 1.0 Scriptable: Yes
(module (function_definition (function_name_write) function_name_write (parameters (identifier_self) identifier_self (identifier_string) identifier_string )parameters (block (expression_statement (assignment (pattern_list (identifier_x) identifier_x ...
This method mimics basic file-like behaviour. Because of this method you can replace sys.stdout or sys.stderr with a :any:`Console` or :any:`Window` instance. This is a convoluted process and behaviour seen now can be excepted to change on later versions. Args: str...
(module (function_definition (function_name_do_callback) function_name_do_callback (parameters (identifier_self) identifier_self (identifier_pkt) identifier_pkt )parameters (block (expression_statement (assignment (pattern_list (identifier_callback) iden...
Add the callback to the event loop, we use call soon because we just want it to be called at some point, but don't care when particularly.
(module (function_definition (function_name__find_all_simple) function_name__find_all_simple (parameters (identifier_path) identifier_path )parameters (block (expression_statement (assignment (identifier_results) identifier_results (generator_expression ...
Find all files under 'path'
(module (function_definition (function_name__generate_upload_key) function_name__generate_upload_key (parameters (identifier_self) identifier_self (default_parameter (identifier_allow_timeout) identifier_allow_timeout (False) False )default_parameter )parameters (bloc...
Generates a new upload key
(module (function_definition (function_name_get_currencies) function_name_get_currencies (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (expression_statement (assignment (identifier_resp) identifier_resp ...
Downloads xml currency data or if not available tries to use cached file copy
(module (function_definition (function_name_require_auth) function_name_require_auth (parameters (identifier_function) identifier_function )parameters (block (decorated_definition (decorator (call (attribute (identifier_functools) identifier_func...
A decorator that wraps the passed in function and raises exception if access token is missing
(module (function_definition (function_name__from_dict) function_name__from_dict (parameters (identifier_cls) identifier_cls (identifier__dict) identifier__dict )parameters (block (expression_statement (assignment (identifier_args) identifier_args (diction...
Initialize a MessageRequest object from a json dictionary.
(module (function_definition (function_name_sinter) function_name_sinter (parameters (identifier_self) identifier_self (identifier_keys) identifier_keys (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern )parameters (block (expression_statem...
Emulate sinter.
(module (function_definition (function_name_optimal_mapping) function_name_optimal_mapping (parameters (identifier_self) identifier_self (identifier_reference) identifier_reference (identifier_hypothesis) identifier_hypothesis (default_parameter (identifier_uem) identifier_uem ...
Optimal label mapping Parameters ---------- reference : Annotation hypothesis : Annotation Reference and hypothesis diarization uem : Timeline Evaluation map Returns ------- mapping : dict Mapping between hypothesis (k...
(module (function_definition (function_name__nth) function_name__nth (parameters (identifier_arr) identifier_arr (identifier_n) identifier_n )parameters (block (try_statement (block (return_statement (subscript (attribute (i...
Return the nth value of array If it is missing return NaN
(module (function_definition (function_name__download_file_from_drive) function_name__download_file_from_drive (parameters (identifier_filename) identifier_filename (identifier_url) identifier_url )parameters (block (expression_statement (assignment (identifier_conf...
Download filename from google drive unless it's already in directory. Args: filename (str): Name of the file to download to (do nothing if it already exists). url (str): URL to download from.
(module (function_definition (function_name_create_collection) function_name_create_collection (parameters (identifier_self) identifier_self (default_parameter (identifier_name) identifier_name (string_"collection") string_"collection" )default_parameter (default_parame...
Create a new child colleciton. Parameters ---------- name : string Unique identifier. position : integer (optional) Location to insert. Default is None (append). kwargs Additional arguments to child collection instantiation. Returns ...
(module (function_definition (function_name__add_to_to_ordered_dict) function_name__add_to_to_ordered_dict (parameters (identifier_self) identifier_self (identifier_d) identifier_d (identifier_dataset_index) identifier_dataset_index (default_parameter (identifier_recommended_on...
Save a session to an ordered dictionary. In some cases, a single session may include a final session, as well as other BMDS executions where doses were dropped. This will include all sessions.
(module (function_definition (function_name_bulk_launch) function_name_bulk_launch (parameters (identifier_self) identifier_self (default_parameter (identifier_jobs) identifier_jobs (None) None )default_parameter (default_parameter (identifier_filter) identifier...
Bulk launch a set of jobs. :param jobs: :class:`jobs.Job <jobs.Job>` list :param filter: (optional) Filters to apply as a string list. :param all: (optional) Apply to all if bool `True`.
(module (function_definition (function_name_get_backend) function_name_get_backend (parameters (identifier_name) identifier_name )parameters (block (for_statement (identifier_backend) identifier_backend (identifier__BACKENDS) identifier__BACKENDS (block (i...
Returns the backend by name or raises KeyError
(module (function_definition (function_name_DeleteGRRTempFile) function_name_DeleteGRRTempFile (parameters (identifier_path) identifier_path )parameters (block (expression_statement (call (attribute (identifier_precondition) identifier_precondition ...
Delete a GRR temp file. To limit possible damage the path must be absolute and either the file must be within any of the Client.tempdir_roots or the file name must begin with Client.tempfile_prefix. Args: path: path string to file to be deleted. Raises: OSError: Permission denied, or file not found...
(module (function_definition (function_name_list_vlans) function_name_list_vlans (parameters (identifier_self) identifier_self (default_parameter (identifier_datacenter) identifier_datacenter (None) None )default_parameter (default_parameter (identifier_vlan_num...
Display a list of all VLANs on the account. This provides a quick overview of all VLANs including information about data center residence and the number of devices attached. :param string datacenter: If specified, the list will only contain VLANs in the spec...
(module (function_definition (function_name_cbpdnmsk_class_label_lookup) function_name_cbpdnmsk_class_label_lookup (parameters (identifier_label) identifier_label )parameters (block (expression_statement (assignment (identifier_clsmod) identifier_clsmod (diction...
Get a ConvBPDNMask class from a label string.
(module (function_definition (function_name_completed_task) function_name_completed_task (parameters (identifier_self) identifier_self )parameters (block (if_statement (boolean_operator (attribute (identifier_self) identifier_self (identifier_remot...
Handle wrapping up a completed task, local or remote
(module (function_definition (function_name_locate_bar_r) function_name_locate_bar_r (parameters (identifier_icut) identifier_icut (identifier_epos) identifier_epos )parameters (block (expression_statement (assignment (identifier_sm) identifier_sm (call ...
Fine position of the right CSU bar
(module (function_definition (function_name_get_child_for_path) function_name_get_child_for_path (parameters (identifier_self) identifier_self (identifier_path) identifier_path )parameters (block (expression_statement (assignment (identifier_path) identifier_path ...
Get a child for a given path. Rather than repeated calls to get_child, children can be found by a derivation path. Paths look like: m/0/1'/10 Which is the same as self.get_child(0).get_child(-1).get_child(10) Or, in other words, the 10th publicly derived chil...
(module (function_definition (function_name__args_checks_gen) function_name__args_checks_gen (parameters (identifier_self) identifier_self (identifier_decorated_function) identifier_decorated_function (identifier_function_spec) identifier_function_spec (identifier_arg_specs) identifier...
Generate checks for positional argument testing :param decorated_function: function decorator :param function_spec: function inspect information :param arg_specs: argument specification (same as arg_specs in :meth:`.Verifier.decorate`) :return: internal structure, that is used by :meth:`.Verifier._args_checks...
(module (function_definition (function_name__extract_ocsp_certs) function_name__extract_ocsp_certs (parameters (identifier_self) identifier_self (identifier_ocsp_response) identifier_ocsp_response )parameters (block (expression_statement (assignment (identifier_stat...
Extracts any certificates included with an OCSP response and adds them to the certificate registry :param ocsp_response: An asn1crypto.ocsp.OCSPResponse object to look for certs inside of
(module (function_definition (function_name_get_required_config) function_name_get_required_config (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_required_config) identifier_required_config (call ...
because of the exsistance of subparsers, the configman options that correspond with argparse arguments are not a constant. We need to produce a copy of the namespace rather than the actual embedded namespace.
(module (function_definition (function_name_filter_significant_motifs) function_name_filter_significant_motifs (parameters (identifier_fname) identifier_fname (identifier_result) identifier_result (identifier_bg) identifier_bg (default_parameter (identifier_metrics) identifier_...
Filter significant motifs based on several statistics. Parameters ---------- fname : str Filename of output file were significant motifs will be saved. result : PredictionResult instance Contains motifs and associated statistics. bg : str Name of background type to use. ...
(module (function_definition (function_name_collect_tokens_until) function_name_collect_tokens_until (parameters (identifier_self) identifier_self (identifier_token_type) identifier_token_type )parameters (block (expression_statement (call (attribute (id...
Yield the item tokens in a comma-separated tag collection.
(module (function_definition (function_name_source_filename) function_name_source_filename (parameters (identifier_self) identifier_self (typed_parameter (identifier_docname) identifier_docname (type (identifier_str) identifier_str )type )typed_parameter ...
Get the full filename to referenced image
(module (function_definition (function_name_tile_to_path) function_name_tile_to_path (parameters (identifier_self) identifier_self (identifier_tile) identifier_tile )parameters (block (return_statement (call (attribute (attribute (identifie...
return full path to a tile
(module (function_definition (function_name_calculate_sampling_decision) function_name_calculate_sampling_decision (parameters (identifier_trace_header) identifier_trace_header (identifier_recorder) identifier_recorder (identifier_sampling_req) identifier_sampling_req )parameters (bl...
Return 1 or the matched rule name if should sample and 0 if should not. The sampling decision coming from ``trace_header`` always has the highest precedence. If the ``trace_header`` doesn't contain sampling decision then it checks if sampling is enabled or not in the recorder. If not enbaled it returns ...
(module (function_definition (function_name_set_all_tiers) function_name_set_all_tiers (parameters (identifier_key) identifier_key (identifier_value) identifier_value (default_parameter (identifier_django_cache_timeout) identifier_django_cache_timeout (identifier_DEFAULT_TIME...
Caches the value for the provided key in both the request cache and the django cache. Args: key (string) value (object) django_cache_timeout (int): (Optional) Timeout used to determine if and for how long to cache in the django cache. A timeout of ...
(module (function_definition (function_name_create_traj_ranges) function_name_create_traj_ranges (parameters (identifier_start) identifier_start (identifier_stop) identifier_stop (identifier_N) identifier_N )parameters (block (expression_statement (assignment ...
Fills in the trajectory range. # Adapted from https://stackoverflow.com/a/40624614
(module (function_definition (function_name_tokenize) function_name_tokenize (parameters (identifier_self) identifier_self (identifier_string) identifier_string )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier...
Tokenize incoming string.
(module (function_definition (function_name_isAuthorized) function_name_isAuthorized (parameters (identifier_self) identifier_self (identifier_pid) identifier_pid (identifier_action) identifier_action (default_parameter (identifier_vendorSpecific) identifier_vendorSpecific ...
Return True if user is allowed to perform ``action`` on ``pid``, else False.
(module (function_definition (function_name_is_zipfile) function_name_is_zipfile (parameters (identifier_filename) identifier_filename )parameters (block (expression_statement (assignment (identifier_result) identifier_result (False) False )assignment ...
Quickly see if a file is a ZIP file by checking the magic number. The filename argument may be a file or file-like object too.
(module (function_definition (function_name_complete_func) function_name_complete_func (parameters (identifier_self) identifier_self (identifier_findstart) identifier_findstart (identifier_base) identifier_base )parameters (block (expression_statement (call (a...
Handle omni completion.
(module (function_definition (function_name_orders_after_any) function_name_orders_after_any (parameters (identifier_self) identifier_self (identifier_other) identifier_other (keyword_separator )keyword_separator (default_parameter (identifier_visited) identifier_visited ...
Return whether `self` orders after any of the services in the set `other`. :param other: Another service. :type other: A :class:`set` of :class:`aioxmpp.service.Service` instances .. versionadded:: 0.11
(module (function_definition (function_name__tuple_from_str) function_name__tuple_from_str (parameters (identifier_bbox) identifier_bbox )parameters (block (return_statement (call (identifier_tuple) identifier_tuple (argument_list (list_comprehension...
Parses a string of numbers separated by any combination of commas and spaces :param bbox: e.g. str of the form `min_x ,min_y max_x, max_y` :return: tuple (min_x,min_y,max_x,max_y)
(module (function_definition (function_name_get_prep_value) function_name_get_prep_value (parameters (identifier_self) identifier_self (identifier_value) identifier_value )parameters (block (expression_statement (assignment (identifier_value) identifier_value ...
Before encryption, need to prepare values.
(module (function_definition (function_name_namespace) function_name_namespace (parameters (default_parameter (identifier_sharing) identifier_sharing (None) None )default_parameter (default_parameter (identifier_owner) identifier_owner (None) None )defau...
This function constructs a Splunk namespace. Every Splunk resource belongs to a namespace. The namespace is specified by the pair of values ``owner`` and ``app`` and is governed by a ``sharing`` mode. The possible values for ``sharing`` are: "user", "app", "global" and "system", which map to the follow...
(module (function_definition (function_name__get_config) function_name__get_config (parameters )parameters (block (expression_statement (assignment (identifier_cfg) identifier_cfg (call (attribute (attribute (identifier_os) id...
Get user docker configuration Return: dict
(module (function_definition (function_name_annualization_factor) function_name_annualization_factor (parameters (identifier_period) identifier_period (identifier_annualization) identifier_annualization )parameters (block (if_statement (comparison_operator (identifi...
Return annualization factor from period entered or if a custom value is passed in. Parameters ---------- period : str, optional Defines the periodicity of the 'returns' data for purposes of annualizing. Value ignored if `annualization` parameter is specified. Defaults are:: ...
(module (function_definition (function_name_AllBalancesZeroOrLess) function_name_AllBalancesZeroOrLess (parameters (identifier_self) identifier_self )parameters (block (for_statement (pattern_list (identifier_key) identifier_key (identifier_fixed8) identifier_fi...
Flag indicating if all balances are 0 or less. Returns: bool: True if all balances are <= 0. False, otherwise.
(module (function_definition (function_name_gather_details) function_name_gather_details (parameters )parameters (block (try_statement (block (expression_statement (assignment (identifier_data) identifier_data (dictionary ...
Get details about the host that is executing habu.
(module (function_definition (function_name_xslt) function_name_xslt (parameters (identifier_request) identifier_request )parameters (block (expression_statement (assignment (identifier_foos) identifier_foos (call (attribute (attribute ...
Shows xml output transformed with standard xslt
(module (function_definition (function_name_AddDateTimeRange) function_name_AddDateTimeRange (parameters (identifier_self) identifier_self (identifier_time_value) identifier_time_value (default_parameter (identifier_start_time_string) identifier_start_time_string (None) None ...
Adds a date time filter range. The time strings are formatted as: YYYY-MM-DD hh:mm:ss.######[+-]##:## Where # are numeric digits ranging from 0 to 9 and the seconds fraction can be either 3 or 6 digits. The time of day, seconds fraction and timezone offset are optional. The default timezone is UTC....
(module (function_definition (function_name_write_data) function_name_write_data (parameters (identifier_fo) identifier_fo (identifier_datum) identifier_datum (identifier_schema) identifier_schema )parameters (block (expression_statement (assignment (identifie...
Write a datum of data to output stream. Paramaters ---------- fo: file-like Output file datum: object Data to write schema: dict Schemda to use