sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_remaining_quota) function_name_remaining_quota
(parameters
(identifier_self) identifier_self
(identifier_remaining_quota) identifier_remaining_quota
)parameters
(block
(if_statement
(comparison_operator
(identifier_remaini... | Sets the remaining_quota of this ServicePackageMetadata.
Current available service package quota.
:param remaining_quota: The remaining_quota of this ServicePackageMetadata.
:type: int |
(module
(function_definition
(function_name_get_resource_solvers) function_name_get_resource_solvers
(parameters
(identifier_self) identifier_self
(identifier_resource) identifier_resource
)parameters
(block
(expression_statement
(assignment
(identifier_solvers_clas... | Returns the resource solvers that can solve the given resource.
Arguments
---------
resource : dataql.resources.Resource
An instance of a subclass of ``Resource`` for which we want to get the solver
classes that can solve it.
Returns
-------
list... |
(module
(function_definition
(function_name_calc_Cmin) function_name_calc_Cmin
(parameters
(identifier_mh) identifier_mh
(identifier_mc) identifier_mc
(identifier_Cph) identifier_Cph
(identifier_Cpc) identifier_Cpc
)parameters
(block
(expression_statement
(identif... | r'''Returns the heat capacity rate for the minimum stream
having flows `mh` and `mc`, with averaged heat capacities `Cph` and `Cpc`.
.. math::
C_c = m_cC_{p,c}
C_h = m_h C_{p,h}
C_{min} = \min(C_c, C_h)
Parameters
----------
mh : float
Mass flow rate of hot stream... |
(module
(function_definition
(function_name_bucket_ops) function_name_bucket_ops
(parameters
(identifier_bid) identifier_bid
(default_parameter
(identifier_api) identifier_api
(string_"") string_""
)default_parameter
)parameters
(block
(try_statement
(bl... | Context manager for dealing with s3 errors in one place
bid: bucket_id in form of account_name:bucket_name |
(module
(function_definition
(function_name_renew_secret) function_name_renew_secret
(parameters
(identifier_client) identifier_client
(identifier_creds) identifier_creds
(identifier_opt) identifier_opt
)parameters
(block
(if_statement
(attribute
(identifier_o... | Renews a secret. This will occur unless the user has
specified on the command line that it is not neccesary |
(module
(function_definition
(function_name_colors_to_materials) function_name_colors_to_materials
(parameters
(identifier_colors) identifier_colors
(default_parameter
(identifier_count) identifier_count
(None) None
)default_parameter
)parameters
(block
(express... | Convert a list of colors into a list of unique materials
and material indexes.
Parameters
-----------
colors : (n, 3) or (n, 4) float
RGB or RGBA colors
count : int
Number of entities to apply color to
Returns
-----------
diffuse : (m, 4) int
Colors
index : (count... |
(module
(function_definition
(function_name_label) function_name_label
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_value) identifier_value
(default_parameter
(identifier_cluster_ids) identifier_cluster_ids
(None) None
... | Assign a label to clusters.
Example: `quality 3` |
(module
(function_definition
(function_name_create_virtualenv) function_name_create_virtualenv
(parameters
(identifier_venv_dir) identifier_venv_dir
(default_parameter
(identifier_use_venv_module) identifier_use_venv_module
(True) True
)default_parameter
)parameters
(... | creates a new virtualenv in venv_dir
By default, the built-in venv module is used.
On older versions of python, you may set use_venv_module to False to use virtualenv |
(module
(function_definition
(function_name_to_parfiles) function_name_to_parfiles
(parameters
(identifier_self) identifier_self
(identifier_prefix) identifier_prefix
)parameters
(block
(if_statement
(call
(attribute
(attribute
(call
... | write the parameter ensemble to PEST-style parameter files
Parameters
----------
prefix: str
file prefix for par files
Note
----
this function back-transforms inplace with respect to
log10 before writing |
(module
(function_definition
(function_name_print_long) function_name_print_long
(parameters
(identifier_filename) identifier_filename
(identifier_stat) identifier_stat
(identifier_print_func) identifier_print_func
)parameters
(block
(expression_statement
(assignment
... | Prints detailed information about the file passed in. |
(module
(function_definition
(function_name_and_raises) function_name_and_raises
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_errors) identifier_errors
)list_splat_pattern
)parameters
(block
(expression_statement
(string_"Expects... | Expects an error or more to be raised from the given expectation. |
(module
(function_definition
(function_name_set_join_rule) function_name_set_join_rule
(parameters
(identifier_self) identifier_self
(identifier_room_id) identifier_room_id
(identifier_join_rule) identifier_join_rule
)parameters
(block
(expression_statement
(assignment
... | Set the rule for users wishing to join the room.
Args:
room_id(str): The room to set the rules for.
join_rule(str): The chosen rule. One of: ["public", "knock",
"invite", "private"] |
(module
(function_definition
(function_name__correctIsotopeImpurities) function_name__correctIsotopeImpurities
(parameters
(identifier_matrix) identifier_matrix
(identifier_intensities) identifier_intensities
)parameters
(block
(expression_statement
(assignment
(pat... | Corrects observed reporter ion intensities for isotope impurities.
:params matrix: a matrix (2d nested list) containing numbers, each isobaric
channel must be present as a COLUMN. Use maspy.isobar._transposeMatrix()
if channels are written in rows.
:param intensities: numpy array of observed re... |
(module
(function_definition
(function_name__get_stddevs) function_name__get_stddevs
(parameters
(identifier_self) identifier_self
(identifier_C) identifier_C
(identifier_stddev_types) identifier_stddev_types
(identifier_mag) identifier_mag
(identifier_num_sites) identifier_num_s... | Return total standard deviation as for equation 35, page 1021. |
(module
(function_definition
(function_name_add_device_callback) function_name_add_device_callback
(parameters
(identifier_self) identifier_self
(identifier_devices) identifier_devices
(identifier_callback) identifier_callback
)parameters
(block
(if_statement
(not_opera... | Register a device callback. |
(module
(function_definition
(function_name_putnotify) function_name_putnotify
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_... | Puts data into queue and alerts listeners |
(module
(function_definition
(function_name_get_user) function_name_get_user
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_users) identifier_users
(subscript... | Get user from kubeconfig. |
(module
(function_definition
(function_name_alterar) function_name_alterar
(parameters
(identifier_self) identifier_self
(identifier_id_script_type) identifier_id_script_type
(identifier_type) identifier_type
(identifier_description) identifier_description
)parameters
(block
... | Change Script Type from by the identifier.
:param id_script_type: Identifier of the Script Type. Integer value and greater than zero.
:param type: Script Type type. String with a minimum 3 and maximum of 40 characters
:param description: Script Type description. String with a minimum 3 and maxi... |
(module
(function_definition
(function_name_save_performance) function_name_save_performance
(parameters
(identifier_db) identifier_db
(identifier_job_id) identifier_job_id
(identifier_records) identifier_records
)parameters
(block
(expression_statement
(assignment
... | Save in the database the performance information about the given job.
:param db: a :class:`openquake.server.dbapi.Db` instance
:param job_id: a job ID
:param records: a list of performance records |
(module
(function_definition
(function_name_map) function_name_map
(parameters
(identifier_self) identifier_self
(identifier_map_fn) identifier_map_fn
(default_parameter
(identifier_desc) identifier_desc
(None) None
)default_parameter
)parameters
(block
(i... | Return a copy of this query, with the values mapped through `map_fn`.
Args:
map_fn (callable): A callable that takes a single argument and returns a new value.
Keyword Args:
desc (str): A description of the mapping transform, for use in log message.
Defaults to ... |
(module
(function_definition
(function_name_pyxwriter) function_name_pyxwriter
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_model) identifier_model
(call
(attribute
(iden... | Update the pyx file. |
(module
(function_definition
(function_name_exponential_backoff) function_name_exponential_backoff
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_last_service_switch) identifier_last_service_switch
... | A function that keeps waiting longer and longer the more rapidly it is called.
It can be used to increasingly slow down service starts when they keep failing. |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_cls) identifier_cls
(identifier_data) identifier_data
(default_parameter
(identifier_id_) identifier_id_
(None) None
)default_parameter
(dictionary_splat_pattern
... | r"""Create a new record instance and store it in the database.
#. Send a signal :data:`invenio_records.signals.before_record_insert`
with the new record as parameter.
#. Validate the new record data.
#. Add the new record in the database.
#. Send a signal :data:`invenio_re... |
(module
(function_definition
(function_name_authenticate) function_name_authenticate
(parameters
(identifier_self) identifier_self
(identifier_transport) identifier_transport
(identifier_account_name) identifier_account_name
(identifier_password) identifier_password
)parameters
... | Authenticates account, if no password given tries to pre-authenticate.
@param transport: transport to use for method calls
@param account_name: account name
@param password: account password
@return: AuthToken if authentication succeeded
@raise AuthException: if authentication fa... |
(module
(function_definition
(function_name_generate_page) function_name_generate_page
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_template) identifier_template
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
... | Generate the HTML for a single page. You usually don't need to call this
method manually, it is used by a lot of other, more end-user friendly
methods.
Args:
path (str): Where to place the page relative to the root URL. Usually
something like "index", "about-me", "projects/example", etc.
template (... |
(module
(function_definition
(function_name_hist) function_name_hist
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_by) identifier_by
(None) None
)default_parameter
(default_parameter
(identifier_bins) identifier_bins
(integ... | Draw one histogram of the DataFrame's columns.
A histogram is a representation of the distribution of data.
This function groups the values of all given Series in the DataFrame
into bins and draws all bins in one :class:`matplotlib.axes.Axes`.
This is useful when the DataFrame's Series ... |
(module
(function_definition
(function_name_undisplayable_info) function_name_undisplayable_info
(parameters
(identifier_obj) identifier_obj
(default_parameter
(identifier_html) identifier_html
(False) False
)default_parameter
)parameters
(block
(expression_stat... | Generate helpful message regarding an undisplayable object |
(module
(function_definition
(function_name_lookup_url) function_name_lookup_url
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
... | Look up specified URL in Safe Browsing threat lists. |
(module
(function_definition
(function_name__memory_profile) function_name__memory_profile
(parameters
(default_parameter
(identifier_with_gc) identifier_with_gc
(False) False
)default_parameter
)parameters
(block
(import_statement
(aliased_import
(d... | Helper for memory debugging. Mostly just a namespace where I experiment with
guppy and heapy.
References:
http://stackoverflow.com/questions/2629680/deciding-between-subprocess-multiprocessing-and-thread-in-python
Reset Numpy Memory::
%reset out
%reset array |
(module
(function_definition
(function_name_list_bindings_for_vhost) function_name_list_bindings_for_vhost
(parameters
(identifier_self) identifier_self
(identifier_vhost) identifier_vhost
)parameters
(block
(return_statement
(call
(attribute
(identifier... | A list of all bindings in a given virtual host.
:param vhost: The vhost name
:type vhost: str |
(module
(function_definition
(function_name_get_field_errors) function_name_get_field_errors
(parameters
(identifier_self) identifier_self
(identifier_field) identifier_field
)parameters
(block
(expression_statement
(assignment
(identifier_identifier) identifier_ide... | Return server side errors. Shall be overridden by derived forms to add their
extra errors for AngularJS. |
(module
(function_definition
(function_name_forw_dfs) function_name_forw_dfs
(parameters
(identifier_self) identifier_self
(identifier_start) identifier_start
(default_parameter
(identifier_end) identifier_end
(None) None
)default_parameter
)parameters
(block
... | Returns a list of nodes in some forward DFS order.
Starting with the start node the depth first search proceeds along
outgoing edges. |
(module
(function_definition
(function_name_add_device_not_active_callback) function_name_add_device_not_active_callback
(parameters
(identifier_self) identifier_self
(identifier_callback) identifier_callback
)parameters
(block
(expression_statement
(call
(attribute... | Register callback to be invoked when a device is not responding. |
(module
(function_definition
(function_name_children) function_name_children
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
(default_parameter
(identifier_relations) identifier_relations
(None) None
)default_parameter
)parameters
... | Return all direct children of specified node.
Wraps networkx by default.
Arguments
---------
node: string
identifier for node in ontology
relations: list of strings
list of relation (object property) IDs used to filter |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_states) identifier_states
(call
(attribute
(call
... | For each state in states file build url and download file |
(module
(function_definition
(function_name__scalar_operations) function_name__scalar_operations
(parameters
(identifier_self) identifier_self
(identifier_axis) identifier_axis
(identifier_scalar) identifier_scalar
(identifier_func) identifier_func
)parameters
(block
(if_... | Handler for mapping scalar operations across a Manager.
Args:
axis: The axis index object to execute the function on.
scalar: The scalar value to map.
func: The function to use on the Manager with the scalar.
Returns:
A new QueryCompiler with updated dat... |
(module
(function_definition
(function_name_repo_name) function_name_repo_name
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ds) identifier_ds
(list_comprehension
(list
(a... | Returns a DataFrame of the repo names present in this project directory
:return: DataFrame |
(module
(function_definition
(function_name__load_from_file) function_name__load_from_file
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)parameters
(block
(if_statement
(not_operator
(call
(attribute
... | Load from a vocab file. |
(module
(function_definition
(function_name__do_add_floating_ip_asr1k) function_name__do_add_floating_ip_asr1k
(parameters
(identifier_self) identifier_self
(identifier_floating_ip) identifier_floating_ip
(identifier_fixed_ip) identifier_fixed_ip
(identifier_vrf) identifier_vrf
(... | To implement a floating ip, an ip static nat is configured in the
underlying router ex_gw_port contains data to derive the vlan
associated with related subnet for the fixed ip. The vlan in turn
is applied to the redundancy parameter for setting the IP NAT. |
(module
(function_definition
(function_name_autodiscover) function_name_autodiscover
(parameters
)parameters
(block
(import_statement
(dotted_name
(identifier_copy) identifier_copy
)dotted_name
)import_statement
(import_from_statement
(dotted_name
... | Auto-discover INSTALLED_APPS admin.py modules and fail silently when
not present. This forces an import on them to register any admin bits they
may want. |
(module
(function_definition
(function_name_length_curve) function_name_length_curve
(parameters
(identifier_obj) identifier_obj
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
... | Computes the approximate length of the parametric curve.
Uses the following equation to compute the approximate length:
.. math::
\\sum_{i=0}^{n-1} \\sqrt{P_{i + 1}^2-P_{i}^2}
where :math:`n` is number of evaluated curve points and :math:`P` is the n-dimensional point.
:param obj: input cur... |
(module
(function_definition
(function_name_umount) function_name_umount
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_forced) identifier_forced
(True) True
)default_parameter
)parameters
(block
(for_statement
(identifier_c... | Umount all mountable distribution points.
Defaults to using forced method. |
(module
(function_definition
(function_name_get_nmr_prize_pool) function_name_get_nmr_prize_pool
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_round_num) identifier_round_num
(integer_0) integer_0
)default_parameter
(default_parameter
... | Get NMR prize pool for the given round and tournament.
Args:
round_num (int, optional): The round you are interested in,
defaults to current round.
tournament (int, optional): ID of the tournament, defaults to 1
Returns:
decimal.Decimal: prize pool i... |
(module
(function_definition
(function_name_remove_behaviour) function_name_remove_behaviour
(parameters
(identifier_self) identifier_self
(identifier_behaviour) identifier_behaviour
)parameters
(block
(if_statement
(not_operator
(call
(attribute
... | Removes a behaviour from the agent.
The behaviour is first killed.
Args:
behaviour (spade.behaviour.CyclicBehaviour): the behaviour instance to be removed |
(module
(function_definition
(function_name_simple_state_machine) function_name_simple_state_machine
(parameters
)parameters
(block
(import_from_statement
(dotted_name
(identifier_random) identifier_random
)dotted_name
(dotted_name
(identifier_random) ... | Pick a number, if it is more than some cuttoff continue the chain. |
(module
(function_definition
(function_name_listEverything) function_name_listEverything
(parameters
(default_parameter
(identifier_matching) identifier_matching
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(i... | Prints every page in the project to the console.
Args:
matching (str, optional): if given, only return names with this string in it |
(module
(function_definition
(function_name__generate_examples) function_name__generate_examples
(parameters
(identifier_self) identifier_self
(identifier_images_dir_path) identifier_images_dir_path
(default_parameter
(identifier_csv_path) identifier_csv_path
(None) None
... | Yields Example instances from given CSV.
Args:
images_dir_path: path to dir in which images are stored.
csv_path: optional, path to csv file with two columns: name of image and
label. If not provided, just scan image directory, don't set labels.
csv_usage: optional, subset of examples fro... |
(module
(function_definition
(function_name__deregister_config_file) function_name__deregister_config_file
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(expression_statement
(assignment
(identifier_state) identifie... | Deregister a previously registered config file. The caller should
ensure that it was previously registered. |
(module
(function_definition
(function_name_solve) function_name_solve
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_solver) identifier_solver
(None) None
)default_parameter
(default_parameter
(identifier_solverparameters) identifi... | Call a solver on the SDP relaxation. Upon successful solution, it
returns the primal and dual objective values along with the solution
matrices. It also sets these values in the `sdpRelaxation` object,
along with some status information.
:param sdpRelaxation: The SDP relaxation to be so... |
(module
(function_definition
(function_name_nan_empty) function_name_nan_empty
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_col) identifier_col
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(bl... | Fill empty values with NaN values
:param col: name of the colum
:type col: str
:example: ``ds.nan_empty("mycol")`` |
(module
(function_definition
(function_name_set_size) function_name_set_size
(parameters
(identifier_self) identifier_self
(identifier_w) identifier_w
(identifier_h) identifier_h
)parameters
(block
(expression_statement
(assignment
(subscript
(attr... | Sets the rectangle size.
Args:
w (int): width of the rectangle
h (int): height of the rectangle |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier... | return list of open 311 services |
(module
(function_definition
(function_name_list_servers) function_name_list_servers
(parameters
(identifier_backend) identifier_backend
(default_parameter
(identifier_socket) identifier_socket
(identifier_DEFAULT_SOCKET_URL) identifier_DEFAULT_SOCKET_URL
)default_parameter
... | List servers in haproxy backend.
backend
haproxy backend
socket
haproxy stats socket, default ``/var/run/haproxy.sock``
CLI Example:
.. code-block:: bash
salt '*' haproxy.list_servers mysql |
(module
(function_definition
(function_name_trim_seqs) function_name_trim_seqs
(parameters
(identifier_input_seqs) identifier_input_seqs
(identifier_trim_len) identifier_trim_len
(identifier_left_trim_len) identifier_left_trim_len
)parameters
(block
(expression_statement
... | Trim FASTA sequences to specified length.
Parameters
----------
input_seqs : iterable of (str, str)
The list of input sequences in (label, sequence) format
trim_len : int
Sequence trimming length. Specify a value of -1 to disable trimming.
left_trim_len : int
Sequence trimmi... |
(module
(function_definition
(function_name_getPagePixmap) function_name_getPagePixmap
(parameters
(identifier_doc) identifier_doc
(identifier_pno) identifier_pno
(default_parameter
(identifier_matrix) identifier_matrix
(None) None
)default_parameter
(default_para... | Create pixmap of document page by page number.
Notes:
Convenience function calling page.getPixmap.
Args:
pno: (int) page number
matrix: Matrix for transformation (default: Identity).
colorspace: (str/Colorspace) rgb, rgb, gray - case ignored, default csRGB.
clip: (irect-... |
(module
(function_definition
(function_name_varexp) function_name_varexp
(parameters
(identifier_line) identifier_line
)parameters
(block
(expression_statement
(assignment
(identifier_ip) identifier_ip
(call
(identifier_get_ipython) identifier_get_ip... | Spyder's variable explorer magic
Used to generate plots, histograms and images of the variables displayed
on it. |
(module
(function_definition
(function_name_write_attribute_adj_list) function_name_write_attribute_adj_list
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_att_mappings... | Write the bipartite attribute graph to a file.
:param str path: Path to the output file. |
(module
(function_definition
(function_name_tab_insert) function_name_tab_insert
(parameters
(identifier_self) identifier_self
(identifier_e) identifier_e
)parameters
(block
(expression_statement
(identifier_u) identifier_u
)expression_statement
(expression_statem... | u'''Insert a tab character. |
(module
(function_definition
(function_name_time_segments_aggregate) function_name_time_segments_aggregate
(parameters
(identifier_X) identifier_X
(identifier_interval) identifier_interval
(identifier_time_column) identifier_time_column
(default_parameter
(identifier_method) id... | Aggregate values over fixed length time segments. |
(module
(function_definition
(function_name_fabrics) function_name_fabrics
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier___fabrics) identifier__... | Gets the Fabrics API client.
Returns:
Fabrics: |
(module
(function_definition
(function_name_real) function_name_real
(parameters
(default_parameter
(identifier_prompt) identifier_prompt
(None) None
)default_parameter
(default_parameter
(identifier_empty) identifier_empty
(False) False
)default_paramet... | Prompt a real number.
Parameters
----------
prompt : str, optional
Use an alternative prompt.
empty : bool, optional
Allow an empty response.
Returns
-------
float or None
A float if the user entered a valid real number.
None if the user pressed only Enter a... |
(module
(function_definition
(function_name_form_valid) function_name_form_valid
(parameters
(identifier_self) identifier_self
(identifier_form) identifier_form
)parameters
(block
(expression_statement
(assignment
(identifier_instance) identifier_instance
... | This is what's called when the form is valid. |
(module
(function_definition
(function_name_is_same_as) function_name_is_same_as
(parameters
(identifier_df) identifier_df
(identifier_df_to_compare) identifier_df_to_compare
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)paramete... | Assert that two pandas dataframes are the equal
Parameters
==========
df : pandas DataFrame
df_to_compare : pandas DataFrame
**kwargs : dict
keyword arguments passed through to panda's ``assert_frame_equal``
Returns
=======
df : DataFrame |
(module
(function_definition
(function_name__get_default_retry_params) function_name__get_default_retry_params
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_default) identifier_default
(call
(identifier_getattr) identifier_ge... | Get default RetryParams for current request and current thread.
Returns:
A new instance of the default RetryParams. |
(module
(function_definition
(function_name_normalize) function_name_normalize
(parameters
(identifier_text) identifier_text
(default_parameter
(identifier_lowercase) identifier_lowercase
(True) True
)default_parameter
(default_parameter
(identifier_collapse) id... | The main normalization function for text.
This will take a string and apply a set of transformations to it so
that it can be processed more easily afterwards. Arguments:
* ``lowercase``: not very mysterious.
* ``collapse``: replace multiple whitespace-like characters with a
single whitespace. Th... |
(module
(function_definition
(function_name_decode) function_name_decode
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(a... | Given a bucket key, compute the parameters used to compute
that key.
Note: Deprecated. Use BucketKey.decode() instead.
:param key: The bucket key. Note that the UUID must match the
UUID of this limit; a ValueError will be raised if
this is not the case... |
(module
(function_definition
(function_name_preloop) function_name_preloop
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_parser) identifier_pars... | if the parser is not already set, loads the parser. |
(module
(function_definition
(function_name_install_requirements) function_name_install_requirements
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_index) identifier_index
(None) None
)default_parameter
... | Install packages from a requirements.txt file.
Args:
path (str): The path to the requirements file.
index (str): The URL for a pypi index to use. |
(module
(function_definition
(function_name_get_entry_compact_text_repr) function_name_get_entry_compact_text_repr
(parameters
(identifier_entry) identifier_entry
(identifier_entries) identifier_entries
)parameters
(block
(expression_statement
(assignment
(identifie... | If the entry has a text value, return that.
If the entry has a source_from value, return the text value of the source.
Otherwise, return None. |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(call
(identifier__complain_ifclosed) identifier__complain_ifclosed
... | Write ``data`` to the file.
:type data: bytes
:param data: the data to be written to the file
:rtype: int
:return: the number of bytes written |
(module
(function_definition
(function_name_clean) function_name_clean
(parameters
(identifier_cls) identifier_cls
(identifier_path) identifier_path
)parameters
(block
(for_statement
(identifier_pth) identifier_pth
(call
(attribute
(identifier_os... | Clean up all the files in a provided path |
(module
(function_definition
(function_name_match) function_name_match
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(if_statement
(call
(attribute
(parenthesized_expression
(binary_opera... | Compare an argument string to the task name. |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(attribute
(identifier_self) identifier_self
(identi... | Begin serving. Returns the bound port, or 0 for domain socket. |
(module
(function_definition
(function_name_alterar) function_name_alterar
(parameters
(identifier_self) identifier_self
(identifier_id_divisiondc) identifier_id_divisiondc
(identifier_name) identifier_name
)parameters
(block
(if_statement
(not_operator
(call
... | Change Division Dc from by the identifier.
:param id_divisiondc: Identifier of the Division Dc. Integer value and greater than zero.
:param name: Division Dc name. String with a minimum 2 and maximum of 80 characters
:return: None
:raise InvalidParameterError: The identifier of Divisi... |
(module
(function_definition
(function_name__connect_lxd) function_name__connect_lxd
(parameters
(identifier_spec) identifier_spec
)parameters
(block
(return_statement
(dictionary
(pair
(string_'method') string_'method'
(string_'lxd') string_'lxd'
... | Return ContextService arguments for an LXD container connection. |
(module
(function_definition
(function_name_parse_lint_result) function_name_parse_lint_result
(parameters
(identifier_lint_result_path) identifier_lint_result_path
(identifier_manifest_path) identifier_manifest_path
)parameters
(block
(expression_statement
(assignment
... | Parse lint-result.xml and create Issue for every problem found except unused strings referenced in AndroidManifest |
(module
(function_definition
(function_name_add_authorizers) function_name_add_authorizers
(parameters
(identifier_self) identifier_self
(identifier_authorizers) identifier_authorizers
)parameters
(block
(expression_statement
(assignment
(attribute
(iden... | Add Authorizer definitions to the securityDefinitions part of Swagger.
:param list authorizers: List of Authorizer configurations which get translated to securityDefinitions. |
(module
(function_definition
(function_name_delete_dcnm_out_nwk) function_name_delete_dcnm_out_nwk
(parameters
(identifier_self) identifier_self
(identifier_tenant_id) identifier_tenant_id
(identifier_fw_dict) identifier_fw_dict
(default_parameter
(identifier_is_fw_virt) identi... | Delete the DCNM OUT network and update the result. |
(module
(function_definition
(function_name_reportDeprecatedWorkerNameUsage) function_name_reportDeprecatedWorkerNameUsage
(parameters
(identifier_message) identifier_message
(default_parameter
(identifier_stacklevel) identifier_stacklevel
(None) None
)default_parameter
... | Hook that is ran when old API name is used.
:param stacklevel: stack level relative to the caller's frame.
Defaults to caller of the caller of this function. |
(module
(function_definition
(function_name_copy_attr) function_name_copy_attr
(parameters
(identifier_f1) identifier_f1
(identifier_f2) identifier_f2
)parameters
(block
(expression_statement
(assignment
(identifier_copyit) identifier_copyit
(lambda
... | copies the special packaging file attributes from f1 to f2. |
(module
(function_definition
(function_name_elliconstraint) function_name_elliconstraint
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
(default_parameter
(identifier_cfac) identifier_cfac
(float_1e8) float_1e8
)default_parameter
(defaul... | ellipsoid test objective function with "constraints" |
(module
(function_definition
(function_name_skull_strip) function_name_skull_strip
(parameters
(identifier_dset) identifier_dset
(default_parameter
(identifier_suffix) identifier_suffix
(string_'_ns') string_'_ns'
)default_parameter
(default_parameter
(identifie... | use bet to strip skull from given anatomy |
(module
(function_definition
(function_name_new_reply) function_name_new_reply
(parameters
(identifier_cls) identifier_cls
(identifier_thread) identifier_thread
(identifier_user) identifier_user
(identifier_content) identifier_content
)parameters
(block
(expression_statem... | Create a new reply for an existing Thread.
Mark thread as unread for all other participants, and
mark thread as read by replier. |
(module
(function_definition
(function_name__guess_cmd_name) function_name__guess_cmd_name
(parameters
(identifier_self) identifier_self
(identifier_cmd) identifier_cmd
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(subscript
... | Manually guess some known command names, where we can
do a better job than the automatic parsing. |
(module
(function_definition
(function_name_oneImageNLF) function_name_oneImageNLF
(parameters
(identifier_img) identifier_img
(default_parameter
(identifier_img2) identifier_img2
(None) None
)default_parameter
(default_parameter
(identifier_signal) identifier_s... | Estimate the NLF from one or two images of the same kind |
(module
(function_definition
(function_name__is_simple_type) function_name__is_simple_type
(parameters
(identifier_value) identifier_value
)parameters
(block
(return_statement
(boolean_operator
(boolean_operator
(boolean_operator
(call
... | Returns True, if the given parameter value is an instance of either
int, str, float or bool. |
(module
(function_definition
(function_name_qnm_freq_decay) function_name_qnm_freq_decay
(parameters
(identifier_f_0) identifier_f_0
(identifier_tau) identifier_tau
(identifier_decay) identifier_decay
)parameters
(block
(expression_statement
(assignment
(ident... | Return the frequency at which the amplitude of the
ringdown falls to decay of the peak amplitude.
Parameters
----------
f_0 : float
The ringdown-frequency, which gives the peak amplitude.
tau : float
The damping time of the sinusoid.
decay: float
The fraction of the peak... |
(module
(function_definition
(function_name__maximization) function_name__maximization
(parameters
(identifier_self) identifier_self
(identifier_X) identifier_X
)parameters
(block
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier... | Update the parameters and priors |
(module
(function_definition
(function_name_get_info) function_name_get_info
(parameters
(identifier_self) identifier_self
(identifier_symbol) identifier_symbol
)parameters
(block
(expression_statement
(assignment
(identifier_sym) identifier_sym
(call
... | Returns information about the symbol, in a dictionary
Parameters
----------
symbol: str
the symbol for the given item in the DB
Returns
-------
dictionary |
(module
(function_definition
(function_name__DownloadScript) function_name__DownloadScript
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
(identifier_dest_dir) identifier_dest_dir
)parameters
(block
(if_statement
(call
(attribute... | Download the contents of the URL to the destination.
Args:
url: string, the URL to download.
dest_dir: string, the path to a directory for storing metadata scripts.
Returns:
string, the path to the file storing the metadata script. |
(module
(function_definition
(function_name_GetSqlValuesTuple) function_name_GetSqlValuesTuple
(parameters
(identifier_self) identifier_self
(identifier_trip_id) identifier_trip_id
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_r... | Return a tuple that outputs a row of _FIELD_NAMES to be written to a
SQLite database.
Arguments:
trip_id: The trip_id of the trip to which this StopTime corresponds.
It must be provided, as it is not stored in StopTime. |
(module
(function_definition
(function_name_flush) function_name_flush
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_using) identifier_using
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kw... | Preforms a flush operation on the index.
Any additional keyword arguments will be passed to
``Elasticsearch.indices.flush`` unchanged. |
(module
(function_definition
(function_name_device_info) function_name_device_info
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(dictionary
(pair
(string_'family') string_'family'
(attribute
(iden... | Return device info dict. |
(module
(function_definition
(function_name_save_snapshot) function_name_save_snapshot
(parameters
(identifier_self) identifier_self
(identifier_si) identifier_si
(identifier_logger) identifier_logger
(identifier_vm_uuid) identifier_vm_uuid
(identifier_snapshot_name) identifier_s... | Creates a snapshot of the current state of the virtual machine
:param vim.ServiceInstance si: py_vmomi service instance
:type si: vim.ServiceInstance
:param logger: Logger
:type logger: cloudshell.core.logger.qs_logger.get_qs_logger
:param vm_uuid: UUID of the virtual machine
... |
(module
(function_definition
(function_name_render_pep440) function_name_render_pep440
(parameters
(identifier_vcs) identifier_vcs
)parameters
(block
(if_statement
(comparison_operator
(identifier_vcs) identifier_vcs
(None) None
)comparison_operator
... | Convert git release tag into a form that is PEP440 compliant. |
(module
(function_definition
(function_name_plan_scripts) function_name_plan_scripts
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier___plan_script... | Gets the Plan Scripts API client.
Returns:
PlanScripts: |
(module
(function_definition
(function_name_method) function_name_method
(parameters
(identifier_self) identifier_self
(identifier_returns) identifier_returns
(dictionary_splat_pattern
(identifier_parameter_types) identifier_parameter_types
)dictionary_splat_pattern
)parame... | Syntactic sugar for registering a method
Example:
>>> registry = Registry()
>>> @registry.method(returns=int, x=int, y=int)
... def add(x, y):
... return x + y
:param returns: The method's return type
:type returns: type
:param param... |
(module
(function_definition
(function_name_write_sources_file) function_name_write_sources_file
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_file_content) identifier_file_content
(parenthesized_expression
(concatenated_stri... | Write a sources.yaml file to current working dir. |
(module
(function_definition
(function_name_serialize) function_name_serialize
(parameters
(identifier_node) identifier_node
(default_parameter
(identifier_stream) identifier_stream
(None) None
)default_parameter
(default_parameter
(identifier_Dumper) identifier... | Serialize a representation tree into a YAML stream.
If stream is None, return the produced string instead. |
(module
(function_definition
(function_name_resolve_variables) function_name_resolve_variables
(parameters
(identifier_variables) identifier_variables
(identifier_context) identifier_context
(identifier_provider) identifier_provider
)parameters
(block
(for_statement
(id... | Given a list of variables, resolve all of them.
Args:
variables (list of :class:`stacker.variables.Variable`): list of
variables
context (:class:`stacker.context.Context`): stacker context
provider (:class:`stacker.provider.base.BaseProvider`): subclass of the
base p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.