sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_touch_file) function_name_touch_file
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_path_to_file) identifier_path_to... | Touch a file in the directory |
(module
(function_definition
(function_name_writexlsx) function_name_writexlsx
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_sheetname) identifier_sheetname
(string_"default") string_"default"
)default_par... | Writes this table to an .xlsx file at the specified path.
If you'd like to specify a sheetname, you may do so.
If you'd like to write one workbook with different DataTables
for each sheet, import the `excel` function from acrylic. You
can see that code in `utils.py`.
Note that... |
(module
(function_definition
(function_name_job_delayed_message) function_name_job_delayed_message
(parameters
(identifier_self) identifier_self
(identifier_job) identifier_job
(identifier_queue) identifier_queue
)parameters
(block
(return_statement
(binary_operator
... | Return the message to log when a job was delayed just before or during
its execution |
(module
(function_definition
(function_name_to_dict) function_name_to_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(dictionary
(pair
(string_"all_set") string_"all_set"
(call
(attribute
... | This method is used in with connection to REST API. It basically
converts all important properties to dictionary, which may be used by
frontend.
Returns:
dict: ``{"all_set": bool, "progress": [int(done), int(how_many)], \
"values": {"property": [values], ..}}`` |
(module
(function_definition
(function_name_nodes) function_name_nodes
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_devi... | A |Nodes| collection of all required nodes.
>>> from hydpy import RiverBasinNumbers2Selection
>>> rbns2s = RiverBasinNumbers2Selection(
... (111, 113, 1129, 11269, 1125, 11261,
... 11262, 1123, 1124, 1122, 1121))
Note that ... |
(module
(function_definition
(function_name__valid_table_name) function_name__valid_table_name
(parameters
(identifier_name) identifier_name
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(subscript
(identifier_name) iden... | Verify if a given table name is valid for `rows`
Rules:
- Should start with a letter or '_'
- Letters can be capitalized or not
- Accepts letters, numbers and _ |
(module
(function_definition
(function_name_process_nxml) function_name_process_nxml
(parameters
(identifier_nxml_filename) identifier_nxml_filename
(default_parameter
(identifier_pmid) identifier_pmid
(None) None
)default_parameter
(default_parameter
(identifie... | Process an NXML file using the ISI reader
First converts NXML to plain text and preprocesses it, then runs the ISI
reader, and processes the output to extract INDRA Statements.
Parameters
----------
nxml_filename : str
nxml file to process
pmid : Optional[str]
pmid of this nxml... |
(module
(function_definition
(function_name_score_samples) function_name_score_samples
(parameters
(identifier_self) identifier_self
(identifier_X) identifier_X
)parameters
(block
(expression_statement
(call
(identifier_check_is_fitted) identifier_check_is_fitted
... | Return the per-sample likelihood of the data under the model.
Compute the log probability of X under the model and
return the posterior distribution (responsibilities) of each
mixture component for each element of X.
Parameters
----------
X: array_like, shape (n_samples... |
(module
(function_definition
(function_name_head_tail_middle) function_name_head_tail_middle
(parameters
(identifier_src) identifier_src
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
... | Returns a tuple consisting of the head of a enumerable, the middle
as a list and the tail of the enumerable. If the enumerable is 1 item, the
middle will be empty and the tail will be None.
>>> head_tail_middle([1, 2, 3, 4])
1, [2, 3], 4 |
(module
(function_definition
(function_name_append_dict_key_value) function_name_append_dict_key_value
(parameters
(identifier_in_dict) identifier_in_dict
(identifier_keys) identifier_keys
(identifier_value) identifier_value
(default_parameter
(identifier_delimiter) identifier_... | Ensures that in_dict contains the series of recursive keys defined in keys.
Also appends `value` to the list that is at the end of `in_dict` traversed
with `keys`.
:param dict in_dict: The dictionary to work with
:param str keys: The delimited string with one or more keys.
:param any value: The val... |
(module
(function_definition
(function_name__prompt_started_hook) function_name__prompt_started_hook
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifi... | Emit a signal when the prompt is ready. |
(module
(function_definition
(function_name_figure) function_name_figure
(parameters
(default_parameter
(identifier_bgcolor) identifier_bgcolor
(tuple
(integer_1) integer_1
(integer_1) integer_1
(integer_1) integer_1
)tuple
)default_parameter
... | Create a blank figure.
Parameters
----------
bgcolor : (3,) float
Color of the background with values in [0,1].
size : (2,) int
Width and height of the figure in pixels. |
(module
(function_definition
(function_name_bind) function_name_bind
(parameters
(identifier_self) identifier_self
(identifier_data_shapes) identifier_data_shapes
(default_parameter
(identifier_label_shapes) identifier_label_shapes
(None) None
)default_parameter
(... | Binds the symbols to construct executors for both two modules. This is necessary before one
can perform computation with the SVRGModule.
Parameters
----------
data_shapes : list of (str, tuple)
Typically is ``data_iter.provide_data``.
label_shapes : list of (str, tup... |
(module
(function_definition
(function_name_validate_unique_slug) function_name_validate_unique_slug
(parameters
(identifier_self) identifier_self
(identifier_cleaned_data) identifier_cleaned_data
)parameters
(block
(expression_statement
(assignment
(identifier_date... | Test whether the slug is unique within a given time period. |
(module
(function_definition
(function_name_iri) function_name_iri
(parameters
(identifier_uri_string) identifier_uri_string
)parameters
(block
(expression_statement
(assignment
(identifier_uri_string) identifier_uri_string
(call
(identifier_str) ide... | converts a string to an IRI or returns an IRI if already formated
Args:
uri_string: uri in string format
Returns:
formated uri with <> |
(module
(function_definition
(function_name_attempt_social_login) function_name_attempt_social_login
(parameters
(identifier_self) identifier_self
(identifier_provider) identifier_provider
(identifier_id) identifier_id
)parameters
(block
(if_statement
(boolean_operator
... | Attempt social login and return boolean result |
(module
(function_definition
(function_name_exit_proc) function_name_exit_proc
(parameters
(identifier_self) identifier_self
(identifier_lineno) identifier_lineno
)parameters
(block
(expression_statement
(call
(identifier___DEBUG__) identifier___DEBUG__
(a... | Exits current procedure. Local labels are transferred to global
scope unless they have been marked as local ones.
Raises an error if no current local context (stack underflow) |
(module
(function_definition
(function_name__check_request) function_name__check_request
(parameters
(identifier_self) identifier_self
(identifier_msg) identifier_msg
)parameters
(block
(if_statement
(comparison_operator
(string_"jsonrpc") string_"jsonrpc"
... | Checks that the request json is well-formed.
:param msg: The request's json data
:type msg: dict[str, object] |
(module
(function_definition
(function_name_export_datasource_schema) function_name_export_datasource_schema
(parameters
(identifier_back_references) identifier_back_references
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
... | Export datasource YAML schema to stdout |
(module
(function_definition
(function_name_get_system_info) function_name_get_system_info
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_x) identifier_x
(integer_255) integer_255
)default_parameter
(default_parameter
(identifier_y)... | Discover the integrity and resource availability of a whole
SpiNNaker system.
This command performs :py:meth:`.get_chip_info` on all working chips in
the system returning an enhanced :py:class:`dict`
(:py:class:`.SystemInfo`) containing a look-up from chip coordinate to
:py:clas... |
(module
(function_definition
(function_name_get_ticker) function_name_get_ticker
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__log) identifier_... | Return the latest ticker information.
:return: Latest ticker information.
:rtype: dict |
(module
(function_definition
(function_name_join_ext) function_name_join_ext
(parameters
(identifier_name) identifier_name
(identifier_extension) identifier_extension
)parameters
(block
(if_statement
(comparison_operator
(subscript
(identifier_extension)... | Joins a given name with an extension. If the extension doesn't have a '.'
it will add it for you |
(module
(function_definition
(function_name_move) function_name_move
(parameters
(identifier_self) identifier_self
(identifier_source) identifier_source
(identifier_destination) identifier_destination
)parameters
(block
(if_statement
(call
(attribute
... | the semantic should be like unix 'mv' command |
(module
(function_definition
(function_name_latency) function_name_latency
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identi... | Checks the connection latency. |
(module
(function_definition
(function_name_remove_collection) function_name_remove_collection
(parameters
(identifier_self) identifier_self
(identifier_first_arg) identifier_first_arg
(identifier_sec_arg) identifier_sec_arg
(identifier_third_arg) identifier_third_arg
(default_pa... | Remove a collection
Given a collection_id, branch and optionally an
author, remove a collection on the given branch
and attribute the commit to author.
Returns the SHA of the commit on branch. |
(module
(function_definition
(function_name_print_pole_mean) function_name_print_pole_mean
(parameters
(identifier_mean_dictionary) identifier_mean_dictionary
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
... | Does a pretty job printing a Fisher mean and associated statistics for
mean paleomagnetic poles.
Parameters
----------
mean_dictionary: output dictionary of pmag.fisher_mean
Examples
--------
Generate a Fisher mean using ``ipmag.fisher_mean`` and then print it nicely
using ``ipmag.prin... |
(module
(function_definition
(function_name_backup) function_name_backup
(parameters
(identifier_path) identifier_path
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
)parameters
(block
(import_from_statement
(dotted_n... | Start a Backup run |
(module
(function_definition
(function_name_search) function_name_search
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_id_key) identifier_id_key
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_parameters) ident... | Searches TVDb for movie metadata
TODO: Consider making parameters for episode ids |
(module
(function_definition
(function_name__CaptureExpression) function_name__CaptureExpression
(parameters
(identifier_self) identifier_self
(identifier_frame) identifier_frame
(identifier_expression) identifier_expression
)parameters
(block
(expression_statement
(ass... | Evalutes the expression and captures it into a Variable object.
Args:
frame: evaluation context.
expression: watched expression to compile and evaluate.
Returns:
Variable object (which will have error status if the expression fails
to evaluate). |
(module
(function_definition
(function_name_get_lang_dict) function_name_get_lang_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(iden... | gets supported langs as an dictionary |
(module
(function_definition
(function_name__get_host_ref) function_name__get_host_ref
(parameters
(identifier_service_instance) identifier_service_instance
(identifier_host) identifier_host
(default_parameter
(identifier_host_name) identifier_host_name
(None) None
)def... | Helper function that returns a host object either from the host location or the host_name.
If host_name is provided, that is the host_object that will be returned.
The function will first search for hosts by DNS Name. If no hosts are found, it will
try searching by IP Address. |
(module
(function_definition
(function_name_background_estimator) function_name_background_estimator
(parameters
(identifier_bdata) identifier_bdata
)parameters
(block
(expression_statement
(assignment
(identifier_crowded) identifier_crowded
(False) False
... | Estimate the background in a 2D array |
(module
(function_definition
(function_name_add_group_email_grant) function_name_add_group_email_grant
(parameters
(identifier_self) identifier_self
(identifier_permission) identifier_permission
(identifier_email_address) identifier_email_address
(default_parameter
(identifier_... | Convenience method that provides a quick way to add an email group
grant to a key. This method retrieves the current ACL, creates a new
grant based on the parameters passed in, adds that grant to the ACL and
then PUT's the new ACL back to GS.
:type permission: string
:param perm... |
(module
(function_definition
(function_name__get_pk) function_name__get_pk
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_pk) identifier_pk
(None) None
)assignment
)expression_statemen... | Return None if we don't have any filter on a pk, the pk if we have one,
or raise a ValueError if we have more than one.
For internal use only. |
(module
(function_definition
(function_name_maybe_convert_to_index_date_type) function_name_maybe_convert_to_index_date_type
(parameters
(identifier_index) identifier_index
(identifier_date) identifier_date
)parameters
(block
(if_statement
(call
(identifier_isinstan... | Convert a datetime-like object to the index's date type.
Datetime indexing in xarray can be done using either a pandas
DatetimeIndex or a CFTimeIndex. Both support partial-datetime string
indexing regardless of the calendar type of the underlying data;
therefore if a string is passed as a date, we ret... |
(module
(function_definition
(function_name_powerline) function_name_powerline
(parameters
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_bindings_dir) identifier_bindings_dir
(identifier_scripts_dir) identifier_scripts_di... | Install and set up powerline for vim, bash, tmux, and i3.
It uses pip (python2) and the most up to date powerline version (trunk) from
the github repository.
More infos:
https://github.com/powerline/powerline
https://powerline.readthedocs.io/en/latest/installation.html
https://github.com... |
(module
(function_definition
(function_name_change_password) function_name_change_password
(parameters
(identifier_self) identifier_self
(identifier_old_password) identifier_old_password
(identifier_new_password) identifier_new_password
)parameters
(block
(expression_statement
... | Update the user's password to a new one. |
(module
(function_definition
(function_name_message_throttled) function_name_message_throttled
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_message) identifier_message
(type
(attribute
(identifier_types) identifier_types
... | Notify user only on first exceed and notify about unlocking only on last exceed
:param message:
:param throttled: |
(module
(function_definition
(function_name__l_cv_weight_factor) function_name__l_cv_weight_factor
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_b) identifier_b
(binary_operator
(binary... | Return multiplier for L-CV weightings in case of enhanced single site analysis.
Methodology source: Science Report SC050050, eqn. 6.15a and 6.15b |
(module
(function_definition
(function_name__move_cursor_to_line) function_name__move_cursor_to_line
(parameters
(identifier_self) identifier_self
(identifier_line) identifier_line
)parameters
(block
(expression_statement
(assignment
(identifier_last_line) identifie... | Moves the cursor to the specified line, if possible. |
(module
(function_definition
(function_name_add_menu) function_name_add_menu
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_sel... | Add a menu with name `name` to the global menu bar.
Returns a menu widget. |
(module
(function_definition
(function_name__log) function_name__log
(parameters
(identifier_self) identifier_self
(identifier_priority) identifier_priority
(identifier_message) identifier_message
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
... | Generic log functions |
(module
(function_definition
(function_name__ignore_sql) function_name__ignore_sql
(parameters
(identifier_self) identifier_self
(identifier_query) identifier_query
)parameters
(block
(return_statement
(call
(identifier_any) identifier_any
(argument_list
... | Check to see if we should ignore the sql query. |
(module
(function_definition
(function_name__xxrange) function_name__xxrange
(parameters
(identifier_self) identifier_self
(identifier_start) identifier_start
(identifier_end) identifier_end
(identifier_step_count) identifier_step_count
)parameters
(block
(expression_stat... | Generate n values between start and end. |
(module
(function_definition
(function_name_display) function_name_display
(parameters
(identifier_self) identifier_self
(identifier_tool) identifier_tool
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self... | Displays the given tool above the current layer, and sets the
title to its name. |
(module
(function_definition
(function_name_cancel_all) function_name_cancel_all
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_product_id) identifier_product_id
(None) None
)default_parameter
)parameters
(block
(if_statement
... | With best effort, cancel all open orders.
Args:
product_id (Optional[str]): Only cancel orders for this
product_id
Returns:
list: A list of ids of the canceled orders. Example::
[
"144c6f8e-713f-4682-8435-5280fbe8b2b4",
... |
(module
(function_definition
(function_name_unregister_signals_oaiset) function_name_unregister_signals_oaiset
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotte... | Unregister signals oaiset. |
(module
(function_definition
(function_name_compute_num_true_positives) function_name_compute_num_true_positives
(parameters
(identifier_ref_freqs) identifier_ref_freqs
(identifier_est_freqs) identifier_est_freqs
(default_parameter
(identifier_window) identifier_window
(float... | Compute the number of true positives in an estimate given a reference.
A frequency is correct if it is within a quartertone of the
correct frequency.
Parameters
----------
ref_freqs : list of np.ndarray
reference frequencies (MIDI)
est_freqs : list of np.ndarray
estimated freque... |
(module
(function_definition
(function_name_do_set_workdir) function_name_do_set_workdir
(parameters
(identifier_self) identifier_self
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
... | Set the working directory.
The working directory is used to load and save known devices
to improve startup times. During startup the application
loads and saves a file `insteon_plm_device_info.dat`. This file
is saved in the working directory.
The working directory has no defau... |
(module
(function_definition
(function_name_sha1_hexdigest) function_name_sha1_hexdigest
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__s... | A SHA-1 digest of the whole object for easy differentiation.
.. versionadded:: 18.1.0 |
(module
(function_definition
(function_name_check_run) function_name_check_run
(parameters
(identifier_check) identifier_check
(identifier_env) identifier_env
(identifier_rate) identifier_rate
(identifier_times) identifier_times
(identifier_pause) identifier_pause
(identifi... | Run an Agent check. |
(module
(function_definition
(function_name_assigned_state) function_name_assigned_state
(parameters
(identifier_instance) identifier_instance
)parameters
(block
(expression_statement
(assignment
(identifier_analyses) identifier_analyses
(call
(attri... | Returns `assigned` or `unassigned` depending on the state of the
analyses the analysisrequest contains. Return `unassigned` if the Analysis
Request has at least one analysis in `unassigned` state.
Otherwise, returns `assigned` |
(module
(function_definition
(function_name_fetch_state) function_name_fetch_state
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_error_traps) identifier_error_tr... | Fetches data from a specific address in the validator's state tree.
Request:
query:
- head: The id of the block to use as the head of the chain
- address: The 70 character address of the data to be fetched
Response:
data: The base64 encoded binar... |
(module
(function_definition
(function_name_get_langids) function_name_get_langids
(parameters
(identifier_dev) identifier_dev
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(import_from_statement
(dotted_name
... | r"""Retrieve the list of supported Language IDs from the device.
Most client code should not call this function directly, but instead use
the langids property on the Device object, which will call this function as
needed and cache the result.
USB LANGIDs are 16-bit integers familiar to Windows develop... |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_indexes) identifier_indexes
(dictionary
)dictionary
)default_parameter
(... | Creates a KV Store Collection.
:param name: name of collection to create
:type name: ``string``
:param indexes: dictionary of index definitions
:type indexes: ``dict``
:param fields: dictionary of field definitions
:type fields: ``dict``
:param kwargs: a dictiona... |
(module
(function_definition
(function_name_move) function_name_move
(parameters
(identifier_self) identifier_self
(identifier_i) identifier_i
(identifier_lat) identifier_lat
(identifier_lng) identifier_lng
(default_parameter
(identifier_change_time) identifier_change_tim... | move a fence point |
(module
(function_definition
(function_name_idsKEGG) function_name_idsKEGG
(parameters
(identifier_organism) identifier_organism
)parameters
(block
(expression_statement
(assignment
(identifier_ORG) identifier_ORG
(call
(attribute
(call... | Uses KEGG to retrieve all ids for a given KEGG organism
:param organism: an organism as listed in organismsKEGG()
:returns: a Pandas dataframe of with 'gene_name' and 'KEGGid'. |
(module
(function_definition
(function_name_convert_magicc7_to_openscm_variables) function_name_convert_magicc7_to_openscm_variables
(parameters
(identifier_variables) identifier_variables
(default_parameter
(identifier_inverse) identifier_inverse
(False) False
)default_param... | Convert MAGICC7 variables to OpenSCM variables
Parameters
----------
variables : list_like, str
Variables to convert
inverse : bool
If True, convert the other way i.e. convert OpenSCM variables to MAGICC7
variables
Returns
-------
``type(variables)``
Set of... |
(module
(function_definition
(function_name_on_open) function_name_on_open
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___ensure_barrier) ident... | DingDongmaster the connection is open |
(module
(function_definition
(function_name_parse_fade_requirement) function_name_parse_fade_requirement
(parameters
(identifier_text) identifier_text
)parameters
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attri... | Return a requirement and repo from the given text, already parsed and converted. |
(module
(function_definition
(function_name_launch) function_name_launch
(parameters
(identifier_self) identifier_self
(identifier_image) identifier_image
(identifier_command) identifier_command
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_s... | Create a job on this engine
Args:
image (str): name of the docker image to launch
command (str): shell command to run |
(module
(function_definition
(function_name_name) function_name_name
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_pretty) identifier_pretty
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignm... | Return the name of the OS distribution, as a string.
For details, see :func:`distro.name`. |
(module
(function_definition
(function_name_dataframe) function_name_dataframe
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__dataframe) ... | Build and cache a dataframe from query results |
(module
(function_definition
(function_name__zadd) function_name__zadd
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_pk) identifier_pk
(default_parameter
(identifier_ts) identifier_ts
(None) None
)default_parameter
... | Redis lua func to add an event to the corresponding sorted set.
:param key: the key to be stored in redis server
:param pk: the primary key of event
:param ts: timestamp of the event, default to redis_server's
current timestamp
:param ttl: the expiration time of event since the... |
(module
(function_definition
(function_name_runtime_paths) function_name_runtime_paths
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_runtimepath) identifier_runtimepath
(subscript
(attr... | All the runtime paths of ensime-vim plugin files. |
(module
(function_definition
(function_name_to_glyphs_font_attributes) function_name_to_glyphs_font_attributes
(parameters
(identifier_self) identifier_self
(identifier_source) identifier_source
(identifier_master) identifier_master
(identifier_is_initial) identifier_is_initial
)pa... | Copy font attributes from `ufo` either to `self.font` or to `master`.
Arguments:
self -- The UFOBuilder
ufo -- The current UFO being read
master -- The current master being written
is_initial -- True iff this the first UFO that we process |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_path) identifier_... | Add a path to the overlay filesytem.
Any filesystem operation involving the this path or any sub-paths
of it will be transparently redirected to temporary root dir.
@path: An absolute path string. |
(module
(function_definition
(function_name_com_google_fonts_check_metadata_license) function_name_com_google_fonts_check_metadata_license
(parameters
(identifier_family_metadata) identifier_family_metadata
)parameters
(block
(expression_statement
(assignment
(identifier_... | METADATA.pb license is "APACHE2", "UFL" or "OFL"? |
(module
(function_definition
(function_name_print_diff) function_name_print_diff
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_ignore) identifier_ignore
(list
)list
)default_parameter
)parameters
(block
(expression_statemen... | Print the diff to the last time the state of objects was measured.
keyword arguments
ignore -- list of objects to ignore |
(module
(function_definition
(function_name_connection_made) function_name_connection_made
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_info) ide... | Protocols connection established handler |
(module
(function_definition
(function_name_get_completed_tasks) function_name_get_completed_tasks
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_sel... | Return a list of all completed tasks in this project.
:return: A list of all completed tasks in this project.
:rtype: list of :class:`pytodoist.todoist.Task`
>>> from pytodoist import todoist
>>> user = todoist.login('john.doe@gmail.com', 'password')
>>> project = user.get_proj... |
(module
(function_definition
(function_name_get_extra_element_count) function_name_get_extra_element_count
(parameters
(identifier_curr_count) identifier_curr_count
(identifier_opt_count) identifier_opt_count
(identifier_extra_allowed_cnt) identifier_extra_allowed_cnt
)parameters
(bl... | Evaluate and return extra same element count based on given values.
:key-term:
group: In here group can be any base where elements are place
i.e. replication-group while placing replicas (elements)
or brokers while placing partitions (elements).
element: Generic term for units wh... |
(module
(function_definition
(function_name_children_rest_names) function_name_children_rest_names
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_names) identifier_names
(list
)list
... | Gets the list of all possible children ReST names.
Returns:
list: list containing all possible rest names as string
Example:
>>> entity = NUEntity()
>>> entity.children_rest_names
["foo", "bar"] |
(module
(function_definition
(function_name_addCollector) function_name_addCollector
(parameters
(identifier_self) identifier_self
(identifier_collector) identifier_collector
)parameters
(block
(expression_statement
(call
(attribute
(identifier_collector... | Adds the inputted collector reference to this table schema.
:param collector | <orb.Collector> |
(module
(function_definition
(function_name_resize_hess) function_name_resize_hess
(parameters
(identifier_self) identifier_self
(identifier_func) identifier_func
)parameters
(block
(if_statement
(comparison_operator
(identifier_func) identifier_func
(None... | Removes values with identical indices to fixed parameters from the
output of func. func has to return the Hessian of a scalar function.
:param func: Hessian function to be wrapped. Is assumed to be the
Hessian of a scalar function.
:return: Hessian corresponding to free parameters o... |
(module
(function_definition
(function_name_build_output_partitions) function_name_build_output_partitions
(parameters
(identifier_cls) identifier_cls
(default_parameter
(identifier_name) identifier_name
(string_'inputTablePartitions') string_'inputTablePartitions'
)default_p... | Build an output table partition parameter
:param name: parameter name
:type name: str
:param output_name: bind input port name
:type output_name: str
:return: output description
:rtype: ParamDef |
(module
(function_definition
(function_name_determine_encoding) function_name_determine_encoding
(parameters
(identifier_path) identifier_path
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
)parameters
(block
(expressio... | Determines the encoding of a file based on byte order marks.
Arguments:
path (str): The path to the file.
default (str, optional): The encoding to return if the byte-order-mark
lookup does not return an answer.
Returns:
str: The encoding of the file. |
(module
(function_definition
(function_name_flush) function_name_flush
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_fsync) identifier_fsync
(False) False
)default_parameter
)parameters
(block
(if_statement
(comparison_oper... | Force all buffered modifications to be written to disk.
Parameters
----------
fsync : bool (default False)
call ``os.fsync()`` on the file handle to force writing to disk.
Notes
-----
Without ``fsync=True``, flushing may not guarantee that the OS writes
... |
(module
(function_definition
(function_name_register_classes) function_name_register_classes
(parameters
(typed_parameter
(identifier_yaml) identifier_yaml
(type
(attribute
(attribute
(identifier_ruamel) identifier_ruamel
(identifier_yaml... | Register externally defined classes. |
(module
(function_definition
(function_name_convertDatetime) function_name_convertDatetime
(parameters
(identifier_t) identifier_t
)parameters
(block
(expression_statement
(assignment
(identifier_epoch) identifier_epoch
(call
(attribute
... | Converts the specified datetime object into its appropriate protocol
value. This is the number of milliseconds from the epoch. |
(module
(function_definition
(function_name_ResolveMulti) function_name_ResolveMulti
(parameters
(identifier_self) identifier_self
(identifier_subject) identifier_subject
(identifier_attributes) identifier_attributes
(default_parameter
(identifier_timestamp) identifier_timestam... | Resolves multiple attributes at once for one subject. |
(module
(function_definition
(function_name_xmeans) function_name_xmeans
(parameters
(identifier_cls) identifier_cls
(default_parameter
(identifier_initial_centers) identifier_initial_centers
(None) None
)default_parameter
(default_parameter
(identifier_kmax) id... | Constructor of the x-means clustering.rst algorithm
:param initial_centers: Initial coordinates of centers of clusters that are represented by list: [center1, center2, ...]
Note: The dimensions of the initial centers should be same as of the dataset.
:param kmax: Maximum number of clusters that... |
(module
(function_definition
(function_name__validated) function_name__validated
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(for_statement
(identifier_sub) identifier_sub
(attribute
(identifier_self) id... | Validate data if all subschemas validate it. |
(module
(function_definition
(function_name_aggregate) function_name_aggregate
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_report) identifier_report
(attribute
(identifier_self) identifier_self
(identifier_... | Aggregate all reports of the same type into a master report |
(module
(function_definition
(function_name_print_locale_info) function_name_print_locale_info
(parameters
(default_parameter
(identifier_out) identifier_out
(identifier_stderr) identifier_stderr
)default_parameter
)parameters
(block
(for_statement
(identifier... | Print locale info. |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_table) identifier_table
(identifier_values) identifier_values
(default_parameter
(identifier_where) identifier_where
(tuple
)tuple
)default_parameter
(dictiona... | Convenience wrapper for database UPDATE. |
(module
(function_definition
(function_name_get_default_ssl_version) function_name_get_default_ssl_version
(parameters
)parameters
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_ssl) identifier_ssl
... | Get the highest support TLS version, if none is available, return None.
:rtype: bool|None |
(module
(function_definition
(function_name_weight_by_edge_odds_ratios) function_name_weight_by_edge_odds_ratios
(parameters
(identifier_self) identifier_self
(identifier_edges_expected_weight) identifier_edges_expected_weight
(identifier_flag_as_significant) identifier_flag_as_significant
... | Applied during the permutation test. Update the edges in the
network to be weighted by their odds ratios. The odds ratio measures
how unexpected the observed edge weight is based on the expected
weight.
Parameters
-----------
edges_expected_weight : list(tup(int, int), f... |
(module
(function_definition
(function_name_scrub) function_name_scrub
(parameters
(identifier_zpool) identifier_zpool
(default_parameter
(identifier_stop) identifier_stop
(False) False
)default_parameter
(default_parameter
(identifier_pause) identifier_pause
... | Scrub a storage pool
zpool : string
Name of storage pool
stop : boolean
If ``True``, cancel ongoing scrub
pause : boolean
If ``True``, pause ongoing scrub
.. versionadded:: 2018.3.0
.. note::
Pause is only available on recent versions of ZFS.
... |
(module
(function_definition
(function_name_concretize) function_name_concretize
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(ass... | Returns a list of the packets read or written as bytestrings. |
(module
(function_definition
(function_name_get_one) function_name_get_one
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(expression_statement
(assignment
(identifier_query) identifier_query
(call
... | method finds single record base on the given primary key and returns it to the caller |
(module
(function_definition
(function_name_dictionary) function_name_dictionary
(parameters
(identifier__object) identifier__object
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
... | Validates a given input is of type dictionary.
Example usage::
data = {'a' : {'b': 1}}
schema = ('a', dictionary)
You can also use this as a decorator, as a way to check for the
input before it even hits a validator you may be writing.
.. note::
If the argument is a callable,... |
(module
(function_definition
(function_name_qtiling) function_name_qtiling
(parameters
(identifier_fseries) identifier_fseries
(identifier_qrange) identifier_qrange
(identifier_frange) identifier_frange
(default_parameter
(identifier_mismatch) identifier_mismatch
(float... | Iterable constructor of QTile tuples
Parameters
----------
fseries: 'pycbc FrequencySeries'
frequency-series data set
qrange:
upper and lower bounds of q range
frange:
upper and lower bounds of frequency range
mismatch:
percentage of desired fractional mismatch
... |
(module
(function_definition
(function_name__construct_target) function_name__construct_target
(parameters
(identifier_self) identifier_self
(identifier_function) identifier_function
)parameters
(block
(expression_statement
(assignment
(identifier_target) identifier... | Constructs the Target property for the CloudWatch Events Rule.
:returns: the Target property
:rtype: dict |
(module
(function_definition
(function_name_array_keys) function_name_array_keys
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_key) identifier_key
(call
(identifier_sorted) identifier_sorted
(argument_list
... | Return an iterator over member names for arrays only.
Examples
--------
>>> import zarr
>>> g1 = zarr.group()
>>> g2 = g1.create_group('foo')
>>> g3 = g1.create_group('bar')
>>> d1 = g1.create_dataset('baz', shape=100, chunks=10)
>>> d2 = g1.create_datase... |
(module
(function_definition
(function_name__clean_dic) function_name__clean_dic
(parameters
(identifier_self) identifier_self
(identifier_dic) identifier_dic
)parameters
(block
(expression_statement
(assignment
(identifier_aux_dic) identifier_aux_dic
(cal... | Clean recursively all empty or None values inside a dict. |
(module
(function_definition
(function_name_setup_completion) function_name_setup_completion
(parameters
(identifier_shell) identifier_shell
)parameters
(block
(import_statement
(dotted_name
(identifier_glob) identifier_glob
)dotted_name
)import_statement
... | Setup readline to tab complete in a cross platform way. |
(module
(function_definition
(function_name_sinter) function_name_sinter
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_other_sets) identifier_other_sets
)list_splat_pattern
)parameters
(block
(return_statement
(call
(att... | Performs an intersection between Sets.
Returns a set of common members. Uses Redis.sinter. |
(module
(function_definition
(function_name_decode) function_name_decode
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_frame) identifier_frame
(type
(identifier_Frame) identifier_Frame
)type
)typed_parameter
(keyword_separa... | Decode an incoming frame. |
(module
(function_definition
(function_name_abstract) function_name_abstract
(parameters
(identifier_cls) identifier_cls
(identifier_predstr) identifier_predstr
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_lemma) identif... | Instantiate a Pred from its symbol string. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.