sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_from_config) function_name_from_config
(parameters
(identifier_cls) identifier_cls
(identifier_cp) identifier_cp
(identifier_variable_params) identifier_variable_params
)parameters
(block
(if_statement
(not_operator
... | Gets sampling transforms specified in a config file.
Sampling parameters and the parameters they replace are read from the
``sampling_params`` section, if it exists. Sampling transforms are
read from the ``sampling_transforms`` section(s), using
``transforms.read_transforms_from_config`... |
(module
(function_definition
(function_name_close) function_name_close
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier... | Disconnect and error-out all requests. |
(module
(function_definition
(function_name_open_bare_resource) function_name_open_bare_resource
(parameters
(identifier_self) identifier_self
(identifier_resource_name) identifier_resource_name
(default_parameter
(identifier_access_mode) identifier_access_mode
(attribute
... | Open the specified resource without wrapping into a class
:param resource_name: name or alias of the resource to open.
:param access_mode: access mode.
:type access_mode: :class:`pyvisa.constants.AccessModes`
:param open_timeout: time out to open.
:return: Unique logical identi... |
(module
(function_definition
(function_name_do_cprofile) function_name_do_cprofile
(parameters
(identifier_func) identifier_func
)parameters
(block
(function_definition
(function_name_profiled_func) function_name_profiled_func
(parameters
(list_splat_pattern
... | Decorator to profile a function
It gives good numbers on various function calls but it omits a vital piece
of information: what is it about a function that makes it so slow?
However, it is a great start to basic profiling. Sometimes it can even
point you to the solution with very little fuss. I often ... |
(module
(function_definition
(function_name_infile_path) function_name_infile_path
(parameters
(identifier_self) identifier_self
)parameters
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_PurePath) ident... | Read-only property.
:return: A ``pathlib.PurePath`` object or ``None``. |
(module
(function_definition
(function_name_GetVersionNamespace) function_name_GetVersionNamespace
(parameters
(identifier_version) identifier_version
)parameters
(block
(expression_statement
(assignment
(identifier_ns) identifier_ns
(subscript
(iden... | Get version namespace from version |
(module
(function_definition
(function_name_write_text) function_name_write_text
(parameters
(identifier__command) identifier__command
(identifier_txt_file) identifier_txt_file
)parameters
(block
(expression_statement
(assignment
(identifier_command) identifier_comm... | Dump SQL command to a text file. |
(module
(function_definition
(function_name_expand_matrix_in_orthogonal_basis) function_name_expand_matrix_in_orthogonal_basis
(parameters
(typed_parameter
(identifier_m) identifier_m
(type
(attribute
(identifier_np) identifier_np
(identifier_ndarray) id... | Computes coefficients of expansion of m in basis.
We require that basis be orthogonal w.r.t. the Hilbert-Schmidt inner
product. We do not require that basis be orthonormal. Note that Pauli
basis (I, X, Y, Z) is orthogonal, but not orthonormal. |
(module
(function_definition
(function_name_fetch_single_representation) function_name_fetch_single_representation
(parameters
(identifier_self) identifier_self
(identifier_item_xlink_href) identifier_item_xlink_href
)parameters
(block
(expression_statement
(assignment
... | This function will render a formatted URL for accessing the PLoS' server
SingleRepresentation of an object. |
(module
(function_definition
(function_name_freefn) function_name_freefn
(parameters
(identifier_self) identifier_self
(identifier_item) identifier_item
(identifier_fn) identifier_fn
(identifier_at_tail) identifier_at_tail
)parameters
(block
(return_statement
(cal... | Set a free function for the specified list item. When the item is
destroyed, the free function, if any, is called on that item.
Use this when list items are dynamically allocated, to ensure that
you don't have memory leaks. You can pass 'free' or NULL as a free_fn.
Returns the item, or NULL if there is no such item. |
(module
(function_definition
(function_name_animate) function_name_animate
(parameters
(identifier_self) identifier_self
(identifier_images) identifier_images
(default_parameter
(identifier_delay) identifier_delay
(float_.25) float_.25
)default_parameter
)parameters... | Displays each of the input images in order, pausing for "delay"
seconds after each image.
Keyword arguments:
image -- An iterable collection of Image objects.
delay -- How many seconds to wait after displaying an image before
displaying the next one. (Default = .25) |
(module
(function_definition
(function_name_protract) function_name_protract
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
... | Protract each of the `active` `Segments` by ``x`` seconds.
This method subtracts ``x`` from each segment's lower bound,
and adds ``x`` to the upper bound, while maintaining that each
`Segment` stays within the `known` bounds.
The :attr:`~DataQualityFlag.active` `SegmentList` is modifie... |
(module
(function_definition
(function_name_find) function_name_find
(parameters
(identifier_self) identifier_self
(identifier_id) identifier_id
)parameters
(block
(for_statement
(identifier_sprite) identifier_sprite
(attribute
(identifier_self) identifier_s... | breadth-first sprite search by ID |
(module
(function_definition
(function_name_get_elastic_page_numbers) function_name_get_elastic_page_numbers
(parameters
(identifier_current_page) identifier_current_page
(identifier_num_pages) identifier_num_pages
)parameters
(block
(if_statement
(comparison_operator
... | Alternative callable for page listing.
Produce an adaptive pagination, useful for big numbers of pages, by
splitting the num_pages ranges in two parts at current_page. Each part
will have its own S-curve. |
(module
(function_definition
(function_name_search_function) function_name_search_function
(parameters
(identifier_cls) identifier_cls
(identifier_encoding) identifier_encoding
)parameters
(block
(if_statement
(comparison_operator
(identifier_encoding) identifier_en... | Search function to find 'rotunicode' codec. |
(module
(function_definition
(function_name_setup_package) function_name_setup_package
(parameters
)parameters
(block
(import_statement
(dotted_name
(identifier_json) identifier_json
)dotted_name
)import_statement
(import_from_statement
(dotted_name
... | Setup procedure. |
(module
(function_definition
(function_name_to_json_serializable) function_name_to_json_serializable
(parameters
(identifier_obj) identifier_obj
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(iden... | Transforms obj into a json serializable object.
:param obj: entity or any json serializable object
:return: serializable object |
(module
(function_definition
(function_name_render_to_response) function_name_render_to_response
(parameters
(identifier_self) identifier_self
(identifier_context) identifier_context
)parameters
(block
(expression_statement
(call
(attribute
(identifier_s... | Add django-crispy form helper and draw the template
Returns the ``TemplateResponse`` ready to be displayed |
(module
(function_definition
(function_name_AddAttribute) function_name_AddAttribute
(parameters
(identifier_self) identifier_self
(identifier_attribute) identifier_attribute
(default_parameter
(identifier_value) identifier_value
(None) None
)default_parameter
(de... | Add an additional attribute to this object.
If value is None, attribute is expected to be already initialized with a
value. For example:
fd.AddAttribute(fd.Schema.CONTAINS("some data"))
Args:
attribute: The attribute name or an RDFValue derived from the attribute.
value: The value the a... |
(module
(function_definition
(function_name_listar_por_equipamento) function_name_listar_por_equipamento
(parameters
(identifier_self) identifier_self
(identifier_id_equipamento) identifier_id_equipamento
)parameters
(block
(if_statement
(not_operator
(call
... | List all interfaces of an equipment.
:param id_equipamento: Equipment identifier.
:return: Dictionary with the following:
::
{'interface':
[{'protegida': < protegida >,
'nome': < nome >,
'id_ligacao_front': < id_ligacao_front >,
'id... |
(module
(function_definition
(function_name_convert_svhn) function_name_convert_svhn
(parameters
(identifier_which_format) identifier_which_format
(identifier_directory) identifier_directory
(identifier_output_directory) identifier_output_directory
(default_parameter
(identifie... | Converts the SVHN dataset to HDF5.
Converts the SVHN dataset [SVHN] to an HDF5 dataset compatible
with :class:`fuel.datasets.SVHN`. The converted dataset is
saved as 'svhn_format_1.hdf5' or 'svhn_format_2.hdf5', depending
on the `which_format` argument.
.. [SVHN] Yuval Netzer, Tao Wang, Adam Coate... |
(module
(function_definition
(function_name_get_issuer_keys) function_name_get_issuer_keys
(parameters
(identifier_self) identifier_self
(identifier_issuer) identifier_issuer
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
... | Get all the keys that belong to an entity.
:param issuer: The entity ID
:return: A possibly empty list of keys |
(module
(function_definition
(function_name_update_config) function_name_update_config
(parameters
(identifier_self) identifier_self
(identifier_config) identifier_config
(default_parameter
(identifier_timeout) identifier_timeout
(unary_operator
(integer_1) integer_... | Updates the remote server configuration and the automatic backup schedule for backup.
Args:
config (dict): Object to update.
timeout:
Timeout in seconds. Wait for task completion by default. The timeout does not abort the operation
in OneView, just stop w... |
(module
(function_definition
(function_name_path) function_name_path
(parameters
(identifier_args) identifier_args
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_query) iden... | Returns a list of fully formed paths or stems given some file id |
(module
(function_definition
(function_name__bse_cli_get_basis) function_name__bse_cli_get_basis
(parameters
(identifier_args) identifier_args
)parameters
(block
(return_statement
(call
(attribute
(identifier_api) identifier_api
(identifier_get_bas... | Handles the get-basis subcommand |
(module
(function_definition
(function_name_feature_passthrough) function_name_feature_passthrough
(parameters
(identifier_early_feat) identifier_early_feat
(identifier_late_feat) identifier_late_feat
(identifier_filters) identifier_filters
(identifier_name) identifier_name
(defa... | A feature passthrough layer inspired by yolo9000 and the inverse tiling layer.
It can be proven, that this layer does the same as conv(concat(inverse_tile(early_feat), late_feat)).
This layer has no activation function.
:param early_feat: The early feature layer of shape [batch_size, h * s_x, w * s_y, _].... |
(module
(function_definition
(function_name_handle_endtag) function_name_handle_endtag
(parameters
(identifier_self) identifier_self
(identifier_tagName) identifier_tagName
)parameters
(block
(expression_statement
(assignment
(identifier_inTag) identifier_inTag
... | handle_endtag - Internal for parsing |
(module
(function_definition
(function_name_encode_timeseries_put) function_name_encode_timeseries_put
(parameters
(identifier_self) identifier_self
(identifier_tsobj) identifier_tsobj
)parameters
(block
(if_statement
(attribute
(identifier_tsobj) identifier_tsobj
... | Returns an Erlang-TTB encoded tuple with the appropriate data and
metadata from a TsObject.
:param tsobj: a TsObject
:type tsobj: TsObject
:rtype: term-to-binary encoded object |
(module
(function_definition
(function_name_normalize_name) function_name_normalize_name
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_overrides) identifier_overrides
(None) None
)default_parameter
)parameters
(block
(expression_st... | Normalize the key name to title case.
For example, ``normalize_name('content-id')`` will become ``Content-Id``
Args:
name (str): The name to normalize.
overrides (set, sequence): A set or sequence containing keys that
should be cased to themselves. For example, passing
... |
(module
(function_definition
(function_name_compute_bbox_with_margins) function_name_compute_bbox_with_margins
(parameters
(identifier_margin) identifier_margin
(identifier_x) identifier_x
(identifier_y) identifier_y
)parameters
(block
(expression_statement
(string_'Hel... | Helper function to compute bounding box for the plot |
(module
(function_definition
(function_name_set_value) function_name_set_value
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
)parameters
(... | Set the value.
:param String|Integer value: The value to set. Must be in the enum list.
:param Boolean force: Set the value without checking it
:raises ValueError: If value name given but it isn't available
:raises TypeError: If value is not String or Integer |
(module
(function_definition
(function_name_verify) function_name_verify
(parameters
(identifier_self) identifier_self
(identifier_payload) identifier_payload
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
... | Verify payload authenticity via the supplied authenticator |
(module
(function_definition
(function_name_maybe_create_placement_group) function_name_maybe_create_placement_group
(parameters
(default_parameter
(identifier_name) identifier_name
(string_'') string_''
)default_parameter
(default_parameter
(identifier_max_retries) i... | Creates placement_group group or reuses existing one. Crash if unable to create
placement_group group. If name is empty, ignores request. |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
(identifier_photo_id) identifier_photo_id
(default_parameter
(identifier_album_id) identifier_album_id
(integer_0) integer_0
)default_parameter
)pa... | Delete a photo from the logged in users account.
:param photo_id: The okcupid id of the photo to delete.
:param album_id: The album from which to delete the photo. |
(module
(function_definition
(function_name_certify) function_name_certify
(parameters
(typed_parameter
(identifier_client) identifier_client
(type
(identifier_Client) identifier_Client
)type
)typed_parameter
(typed_parameter
(identifier_certificatio... | POST certification raw document
:param client: Client to connect to the api
:param certification_signed_raw: Certification raw document
:return: |
(module
(function_definition
(function_name__build_date_time_time_zone) function_name__build_date_time_time_zone
(parameters
(identifier_self) identifier_self
(identifier_date_time) identifier_date_time
)parameters
(block
(expression_statement
(assignment
(identifie... | Converts a datetime to a dateTimeTimeZone resource |
(module
(function_definition
(function_name_serialize_to_normalized_pretty_json) function_name_serialize_to_normalized_pretty_json
(parameters
(identifier_py_obj) identifier_py_obj
)parameters
(block
(return_statement
(call
(attribute
(identifier_json) identif... | Serialize a native object to normalized, pretty printed JSON.
The JSON string is normalized by sorting any dictionary keys.
Args:
py_obj: object
Any object that can be represented in JSON. Some types, such as datetimes are
automatically converted to strings.
Returns:
str: norm... |
(module
(function_definition
(function_name_from_dict) function_name_from_dict
(parameters
(identifier_cls) identifier_cls
(identifier_d) identifier_d
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
... | Like Identity.from_dict, but will cast the class type based on the
format. i.e. if the format is hdf, return an HdfPartitionIdentity.
:param d:
:return: |
(module
(function_definition
(function_name_load_image) function_name_load_image
(parameters
(identifier_filename) identifier_filename
(default_parameter
(identifier_timeout) identifier_timeout
(integer_120) integer_120
)default_parameter
)parameters
(block
(exp... | Uploads an image from a local file to a Docker remote. Note that this temporarily has to extend the service timeout
period.
:param filename: Local file name.
:type filename: unicode
:param timeout: Timeout in seconds to set temporarily for the upload.
:type timeout: int |
(module
(function_definition
(function_name_create_app) function_name_create_app
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_utils) identifier_utils
(identifier_banner) identif... | Create the spinnaker application. |
(module
(function_definition
(function_name__diff_bounds) function_name__diff_bounds
(parameters
(identifier_bounds) identifier_bounds
(identifier_coord) identifier_coord
)parameters
(block
(try_statement
(block
(return_statement
(binary_operator
... | Get grid spacing by subtracting upper and lower bounds. |
(module
(function_definition
(function_name_get_fba_flux) function_name_get_fba_flux
(parameters
(identifier_self) identifier_self
(identifier_objective) identifier_objective
)parameters
(block
(expression_statement
(assignment
(identifier_flux_result) identifier_fl... | Return a dictionary of all the fluxes solved by FBA.
Dictionary of fluxes is used in :meth:`.lin_moma` and :meth:`.moma`
to minimize changes in the flux distributions following model
perturbation.
Args:
objective: The objective reaction that is maximized.
Returns:
... |
(module
(function_definition
(function_name_current_bed_temp) function_name_current_bed_temp
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_bedtemps) identifier... | Return current bed temperature for in-progress session. |
(module
(function_definition
(function_name_length) function_name_length
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(attribute
(call
(attribute
(identifier_np) identifier_np
... | Array of vector lengths |
(module
(function_definition
(function_name_defaults) function_name_defaults
(parameters
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
)parameters
(block
(function_definition
(function_name__f) function_name__f
... | Catches any exception thrown by the wrapped function and returns `default`
instead.
Parameters
----------
default : object
The default value to return if the wrapped function throws an exception |
(module
(function_definition
(function_name_serialise) function_name_serialise
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_element) identifier_element
(type
(identifier_Element) identifier_Element
)type
)typed_parameter
)pa... | Serialises the given element into Compact JSON.
>>> CompactJSONSerialiser().serialise(String(content='Hello'))
'["string", null, null, "Hello"]' |
(module
(function_definition
(function_name__enforceDataType) function_name__enforceDataType
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_idx) identifier_idx
... | Converts to int so that this CTI always stores that type.
The data be set to a negative value, e.g. use -1 to select the last item
by default. However, it will be converted to a positive by this method. |
(module
(function_definition
(function_name_send) function_name_send
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
)parameters
(block
(if_statement
(identifier_text) identifier_text
(block
(expression_statement
(... | Send raw text to the distant end. |
(module
(function_definition
(function_name_replace) function_name_replace
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_value) identifier_value
(default_parameter
(identifier_expire) identifier_expire
(integer_0) integer_0
... | The memcached "replace" command.
Args:
key: str, see class docs for details.
value: str, see class docs for details.
expire: optional int, number of seconds until the item is expired
from the cache, or zero for no expiry (the default).
noreply: optional... |
(module
(function_definition
(function_name_prep_directory) function_name_prep_directory
(parameters
(identifier_self) identifier_self
(identifier_target_dir) identifier_target_dir
)parameters
(block
(expression_statement
(assignment
(identifier_dirname) identifier_... | Prepares a new directory to store the file at the provided path, if needed. |
(module
(function_definition
(function_name_build) function_name_build
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_markdown_html) identifier_markdown_html
(call
(attribute
... | convert Markdown text as html. return the html file as string |
(module
(function_definition
(function_name_package_locations) function_name_package_locations
(parameters
(identifier_self) identifier_self
(identifier_package_keyname) identifier_package_keyname
)parameters
(block
(expression_statement
(assignment
(identifier_mask... | List datacenter locations for a package keyname
:param str package_keyname: The package for which to get the items.
:returns: List of locations a package is orderable in |
(module
(function_definition
(function_name_search_form) function_name_search_form
(parameters
(identifier_context) identifier_context
(default_parameter
(identifier_search_model_names) identifier_search_model_names
(None) None
)default_parameter
)parameters
(block
... | Includes the search form with a list of models to use as choices
for filtering the search by. Models should be a string with models
in the format ``app_label.model_name`` separated by spaces. The
string ``all`` can also be used, in which case the models defined
by the ``SEARCH_MODEL_CHOICES`` setting wi... |
(module
(function_definition
(function_name_merge_elisions) function_name_merge_elisions
(parameters
(typed_parameter
(identifier_elided) identifier_elided
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
... | Given a list of strings with different space swapping elisions applied, merge the elisions,
taking the most without compounding the omissions.
:param elided:
:return:
>>> merge_elisions([
... "ignavae agua multum hiatus", "ignav agua multum hiatus" ,"ignavae agua mult hiatus"])
'ignav ag... |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_old_tags) identifier_old_tags
(call
(identifier_list) identifier_list
... | Save this block device. |
(module
(function_definition
(function_name_nice_size) function_name_nice_size
(parameters
(identifier_size) identifier_size
)parameters
(block
(expression_statement
(assignment
(identifier_unit) identifier_unit
(string_'B') string_'B'
)assignment
... | Nice size.
:param size: the size.
:type size: int
:return: a nicely printed size.
:rtype: string |
(module
(function_definition
(function_name_vinet_p) function_name_vinet_p
(parameters
(identifier_v) identifier_v
(identifier_v0) identifier_v0
(identifier_k0) identifier_k0
(identifier_k0p) identifier_k0p
)parameters
(block
(return_statement
(call
(ide... | calculate pressure from vinet equation
:param v: unit-cell volume in A^3
:param v0: unit-cell volume in A^3 at 1 bar
:param k0: bulk modulus at reference conditions
:param k0p: pressure derivative of bulk modulus at reference conditions
:return: pressure in GPa |
(module
(function_definition
(function_name_copy) function_name_copy
(parameters
(identifier_self) identifier_self
(identifier_old_name) identifier_old_name
(identifier_new_name) identifier_new_name
(default_parameter
(identifier_index) identifier_index
(None) None
... | Copies an old sheet with the old_name to a new sheet with new_name.
If an optional index argument is not provided then the created
sheet is appended at the end. Returns the new sheet. |
(module
(function_definition
(function_name_get_build_scanner_path) function_name_get_build_scanner_path
(parameters
(identifier_self) identifier_self
(identifier_scanner) identifier_scanner
)parameters
(block
(expression_statement
(assignment
(identifier_env) ident... | Fetch the scanner path for this executor's targets and sources. |
(module
(function_definition
(function_name_get_variable_grammar) function_name_get_variable_grammar
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_word_expr) identifier_word_expr
(call
... | A method that returns variable grammar |
(module
(function_definition
(function_name_process_sparser_output) function_name_process_sparser_output
(parameters
(identifier_output_fname) identifier_output_fname
(default_parameter
(identifier_output_fmt) identifier_output_fmt
(string_'json') string_'json'
)default_param... | Return a processor with Statements extracted from Sparser XML or JSON
Parameters
----------
output_fname : str
The path to the Sparser output file to be processed. The file can
either be JSON or XML output from Sparser, with the output_fmt
parameter defining what format is assumed t... |
(module
(function_definition
(function_name_init_live_reload) function_name_init_live_reload
(parameters
(identifier_run) identifier_run
)parameters
(block
(import_from_statement
(dotted_name
(identifier_asyncio) identifier_asyncio
)dotted_name
(dotted_nam... | Start the live reload task
:param run: run the task inside of this function or just create it |
(module
(function_definition
(function_name_check) function_name_check
(parameters
(identifier_cls) identifier_cls
(identifier_dap) identifier_dap
(default_parameter
(identifier_network) identifier_network
(False) False
)default_parameter
(default_parameter
... | Checks if the dap is valid, reports problems
Parameters:
network -- whether to run checks that requires network connection
output -- where to write() problems, might be None
raises -- whether to raise an exception immediately after problem is detected |
(module
(function_definition
(function_name_update_cors_configuration) function_name_update_cors_configuration
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_enable_cors) identifier_enable_cors
(True) True
)default_parameter
(default_parame... | Merges existing CORS configuration with updated values.
:param bool enable_cors: Enables/disables CORS. Defaults to True.
:param bool allow_credentials: Allows authentication credentials.
Defaults to True.
:param list origins: List of allowed CORS origin(s). Special cases are
... |
(module
(function_definition
(function_name_get_instance) function_name_get_instance
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_resources) identifier_resources
(list
)list
)assignment
)expression_statement
... | Get a resource based on the application environment.
Returns a `Resource` configured for the current environment, or None if the
environment is unknown or unsupported.
:rtype: :class:`opencensus.common.resource.Resource` or None
:return: A `Resource` configured for the current environment. |
(module
(function_definition
(function_name_group_channels) function_name_group_channels
(parameters
(identifier_self) identifier_self
(identifier_group) identifier_group
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
... | Returns a list of channel objects for the given group
:param group: Name of the group to get channels for.
:rtype: List of :class:`TdmsObject` objects. |
(module
(function_definition
(function_name_tokenize) function_name_tokenize
(parameters
(identifier_s) identifier_s
)parameters
(block
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(identifier_re) ident... | A simple tokneizer |
(module
(function_definition
(function_name_ls) function_name_ls
(parameters
(typed_parameter
(identifier_manager) identifier_manager
(type
(identifier_Manager) identifier_Manager
)type
)typed_parameter
(typed_parameter
(identifier_offset) identifier... | List edges. |
(module
(function_definition
(function_name_register_phone_view) function_name_register_phone_view
(parameters
(identifier_request) identifier_request
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_request) identifier_request
... | Register a phone. |
(module
(function_definition
(function_name_evaluate) function_name_evaluate
(parameters
(identifier_self) identifier_self
(identifier_dataset) identifier_dataset
(default_parameter
(identifier_metric) identifier_metric
(string_'auto') string_'auto'
)default_parameter
... | r"""Evaluate the model by making target value predictions and comparing
to actual values.
Two metrics are used to evaluate linear regression models. The first
is root-mean-squared error (RMSE) while the second is the absolute
value of the maximum error between the actual and predicted ... |
(module
(function_definition
(function_name_remove_custom_field_setting) function_name_remove_custom_field_setting
(parameters
(identifier_self) identifier_self
(identifier_project) identifier_project
(default_parameter
(identifier_params) identifier_params
(dictionary
... | Remove a custom field setting on the project.
Parameters
----------
project : {Id} The project to associate the custom field with
[data] : {Object} Data for the request
- [custom_field] : {Id} The id of the custom field to remove from this project. |
(module
(function_definition
(function_name_setup_app) function_name_setup_app
(parameters
(identifier_command) identifier_command
(identifier_conf) identifier_conf
(identifier_vars) identifier_vars
)parameters
(block
(if_statement
(not_operator
(attribute
... | Place any commands to setup nipapwww here |
(module
(function_definition
(function_name_get_current_scene_node) function_name_get_current_scene_node
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_c) identifier_c
(call
(attribute
(identifier_cmds) identifie... | Return the name of the jb_sceneNode, that describes the current scene or None if there is no scene node.
:returns: the full name of the node or none, if there is no scene node
:rtype: str | None
:raises: None |
(module
(function_definition
(function_name__find_statistics) function_name__find_statistics
(parameters
(identifier_X) identifier_X
(identifier_y) identifier_y
(identifier_variogram_function) identifier_variogram_function
(identifier_variogram_model_parameters) identifier_variogram_mo... | Calculates variogram fit statistics.
Returns the delta, sigma, and epsilon values for the variogram fit.
These arrays are used for statistics calculations.
Parameters
----------
X: ndarray
float array [n_samples, n_dim], the input array of coordinates
y: ndarray
float array [n_s... |
(module
(function_definition
(function_name_query_decl) function_name_query_decl
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
... | Query declarations. |
(module
(function_definition
(function_name_variant) function_name_variant
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_variant) identifier_variant
(subscript
(attribute
... | Get the current theme variant |
(module
(function_definition
(function_name__get_value) function_name__get_value
(parameters
(identifier_obj) identifier_obj
(identifier_key) identifier_key
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list... | Get a value for 'key' from 'obj', if possible |
(module
(function_definition
(function_name__arg) function_name__arg
(parameters
(identifier___decorated__) identifier___decorated__
(dictionary_splat_pattern
(identifier_Config) identifier_Config
)dictionary_splat_pattern
)parameters
(block
(expression_statement
... | r"""The worker for the arg decorator. |
(module
(function_definition
(function_name_ListGrrBinaries) function_name_ListGrrBinaries
(parameters
(default_parameter
(identifier_context) identifier_context
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(ide... | Lists all registered Grr binaries. |
(module
(function_definition
(function_name__ListTags) function_name__ListTags
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_all_tags) identifier_all_tags
(list
)list
)assignment
... | Query database for unique tag types. |
(module
(function_definition
(function_name_hover) function_name_hover
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_target) identifier_target
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_oper... | Moves the cursor to the target location |
(module
(function_definition
(function_name_wrap_resource) function_name_wrap_resource
(parameters
(identifier_self) identifier_self
(identifier_pool) identifier_pool
(identifier_resource_wrapper) identifier_resource_wrapper
)parameters
(block
(expression_statement
(ass... | Return a resource wrapped in ``resource_wrapper``.
:param pool: A pool instance.
:type pool: :class:`CuttlePool`
:param resource_wrapper: A wrapper class for the resource.
:type resource_wrapper: :class:`Resource`
:return: A wrapped resource.
:rtype: :class:`Resource` |
(module
(function_definition
(function_name_get_nodes) function_name_get_nodes
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_resolve_missing) identifier_resolve_missing
(False) False
)default_parameter
)parameters
(block
(expressio... | Get the nodes defining the geometry of the way
:param resolve_missing: Try to resolve missing nodes.
:type resolve_missing: Boolean
:return: List of nodes
:rtype: List of overpy.Node
:raises overpy.exception.DataIncomplete: At least one referenced node is not available in the re... |
(module
(function_definition
(function_name_return_single_convert_numpy_base) function_name_return_single_convert_numpy_base
(parameters
(identifier_dbpath) identifier_dbpath
(identifier_folder_path) identifier_folder_path
(identifier_set_object) identifier_set_object
(identifier_objec... | Generic function which converts an object specified by the object_id into a numpy array and returns the array,
the conversion is done by the 'converter' function
Parameters
----------
dbpath : string, path to SQLite database file
folder_path : string, path to folder where the files are stored
s... |
(module
(function_definition
(function_name_serializable_value) function_name_serializable_value
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
... | Produce the value as it should be serialized.
Sometimes it is desirable for the serialized value to differ from
the ``__get__`` in order for the ``__get__`` value to appear simpler
for user or developer convenience.
Args:
obj (HasProps) : the object to get the serialized at... |
(module
(function_definition
(function_name_create_option_from_value) function_name_create_option_from_value
(parameters
(identifier_tag) identifier_tag
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(call
(attribute
(identi... | Set DHCP option with human friendly value |
(module
(function_definition
(function_name_inspect_task) function_name_inspect_task
(parameters
(identifier_self) identifier_self
(identifier_task) identifier_task
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
... | Retrieve information about a task.
Args:
task (str): Task ID
Returns:
(dict): Information about the task.
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error. |
(module
(function_definition
(function_name__remove_pre_formatting) function_name__remove_pre_formatting
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_preformatted_wrappers) identifier_preformatted_wrappers
... | Removes formatting tags added to pre elements. |
(module
(function_definition
(function_name_get_filename) function_name_get_filename
(parameters
(identifier_request) identifier_request
(identifier_date) identifier_date
(identifier_size_x) identifier_size_x
(identifier_size_y) identifier_size_y
)parameters
(block
(expre... | Get filename location
Returns the filename's location on disk where data is or is going to be stored.
The files are stored in the folder specified by the user when initialising OGC-type
of request. The name of the file has the following structure:
{service_type}_{layer}_{crs}_{bbox}_{t... |
(module
(function_definition
(function_name__counts2radiance) function_name__counts2radiance
(parameters
(identifier_self) identifier_self
(identifier_counts) identifier_counts
(identifier_coefs) identifier_coefs
(identifier_channel) identifier_channel
)parameters
(block
... | Convert raw detector counts to radiance |
(module
(function_definition
(function_name_upload_entities_tsv) function_name_upload_entities_tsv
(parameters
(identifier_namespace) identifier_namespace
(identifier_workspace) identifier_workspace
(identifier_entities_tsv) identifier_entities_tsv
)parameters
(block
(if_statem... | Upload entities from a tsv loadfile.
File-based wrapper for api.upload_entities().
A loadfile is a tab-separated text file with a header row
describing entity type and attribute names, followed by
rows of entities and their attribute values.
Ex:
entity:participant_id age alive
... |
(module
(function_definition
(function_name___output_unpaired_vals) function_name___output_unpaired_vals
(parameters
(identifier_d_vals) identifier_d_vals
(identifier_used_ff_keys) identifier_used_ff_keys
(identifier_f_f_header) identifier_f_f_header
(identifier_sf_d) identifier_sf_d
... | Use an output handler to output keys that could not be paired.
Go over the keys in d_vals and for any that were not used (i.e. not in
used_ff_keys), build an output line using the values from d_vals,
populated the missing columns with missing_val, and output these using the
provided output hander. |
(module
(function_definition
(function_name_display_completions_like_readline) function_name_display_completions_like_readline
(parameters
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(assignment
(identifier_b) identifier_b
(attri... | Key binding handler for readline-style tab completion.
This is meant to be as similar as possible to the way how readline displays
completions.
Generate the completions immediately (blocking) and display them above the
prompt in columns.
Usage::
# Call this handler when 'Tab' has been pre... |
(module
(function_definition
(function_name_close) function_name_close
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_endpoint) identifier_endpoint
(call
(attribute
(attrib... | End the report. |
(module
(function_definition
(function_name__trim_dictionary_parameters) function_name__trim_dictionary_parameters
(parameters
(identifier_self) identifier_self
(identifier_dict_param) identifier_dict_param
)parameters
(block
(expression_statement
(assignment
(ident... | Return a dict that only has matching entries in the msgid. |
(module
(function_definition
(function_name_resumption_token) function_name_resumption_token
(parameters
(identifier_parent) identifier_parent
(identifier_pagination) identifier_pagination
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern... | Attach resumption token element to a parent. |
(module
(function_definition
(function_name_rulefiles) function_name_rulefiles
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_acc) identifier_acc
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assig... | Return a list of rulefiles for the given account.
Returns an empty list if none specified. |
(module
(function_definition
(function_name_get_parler_languages_from_django_cms) function_name_get_parler_languages_from_django_cms
(parameters
(default_parameter
(identifier_cms_languages) identifier_cms_languages
(None) None
)default_parameter
)parameters
(block
(e... | Converts django CMS' setting CMS_LANGUAGES into PARLER_LANGUAGES. Since
CMS_LANGUAGES is a strict superset of PARLER_LANGUAGES, we do a bit of
cleansing to remove irrelevant items. |
(module
(function_definition
(function_name_mapping_of) function_name_mapping_of
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(function_definition
(function_name_mapper) function_name_mapper
(parameters
(identifier_data) identifier_data
)... | Expects a mapping from some key to data for `cls` instances. |
(module
(function_definition
(function_name_usufyToGmlExport) function_name_usufyToGmlExport
(parameters
(identifier_d) identifier_d
(identifier_fPath) identifier_fPath
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
... | Workaround to export data to a .gml file.
Args:
-----
d: Data to export.
fPath: File path for the output file. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.