sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_interactive) function_name_interactive
(parameters
(identifier_outdir) identifier_outdir
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Building y... | Blends the generated files and outputs a HTML website on file change |
(module
(function_definition
(function_name__compile_and_collapse) function_name__compile_and_collapse
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(... | Actually compile the requested regex |
(module
(function_definition
(function_name_silent_execute) function_name_silent_execute
(parameters
(identifier_self) identifier_self
(identifier_code) identifier_code
)parameters
(block
(try_statement
(block
(expression_statement
(call
(a... | Execute code in the kernel without increasing the prompt |
(module
(function_definition
(function_name_stop) function_name_stop
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_distributed_logger) identifier_distributed_logger
(identifier_i... | Terminates the forked process.
Only valid if started as a fork, because... well you wouldn't get here otherwise.
:return: |
(module
(function_definition
(function_name_impute_knn) function_name_impute_knn
(parameters
(identifier_df) identifier_df
(default_parameter
(identifier_k) identifier_k
(integer_3) integer_3
)default_parameter
)parameters
(block
(expression_statement
(a... | Nearest neighbour imputations which weights samples using the mean squared difference on features for which two rows both have observed data.
:param df: The input dataframe that contains missing values
:param k: The number of neighbours
:return: the imputed dataframe |
(module
(function_definition
(function_name_vectorize) function_name_vectorize
(parameters
(identifier_fn) identifier_fn
)parameters
(block
(decorated_definition
(decorator
(call
(attribute
(identifier_functools) identifier_functools
... | Allows a method to accept a list argument, but internally deal only
with a single item of that list. |
(module
(function_definition
(function_name_list_nodes) function_name_list_nodes
(parameters
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_ret) ident... | Return basic data on nodes |
(module
(function_definition
(function_name_registration_function_for_optionable) function_name_registration_function_for_optionable
(parameters
(identifier_self) identifier_self
(identifier_optionable_class) identifier_optionable_class
)parameters
(block
(expression_statement
... | Returns a function for registering options on the given scope. |
(module
(function_definition
(function_name_clear_cache_delete_selected) function_name_clear_cache_delete_selected
(parameters
(identifier_modeladmin) identifier_modeladmin
(identifier_request) identifier_request
(identifier_queryset) identifier_queryset
)parameters
(block
(exp... | A delete action that will invalidate cache after being called. |
(module
(function_definition
(function_name__validate_all_tags_are_used) function_name__validate_all_tags_are_used
(parameters
(identifier_metadata) identifier_metadata
)parameters
(block
(expression_statement
(assignment
(identifier_tag_names) identifier_tag_names
... | Ensure all tags are used in some filter. |
(module
(function_definition
(function_name_sample) function_name_sample
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(identifier_interval) identifier_interval
)parameters
(block
(expression_statement
(assignment
(identifier_... | Sample a patch from the data object
Parameters
----------
data : dict
A data dict as produced by pumpp.Pump.transform
interval : slice
The time interval to sample
Returns
-------
data_slice : dict
`data` restricted to `interv... |
(module
(function_definition
(function_name_ilsr_pairwise_dense) function_name_ilsr_pairwise_dense
(parameters
(identifier_comp_mat) identifier_comp_mat
(default_parameter
(identifier_alpha) identifier_alpha
(float_0.0) float_0.0
)default_parameter
(default_parameter
... | Compute the ML estimate of model parameters given dense data.
This function computes the maximum-likelihood (ML) estimate of model
parameters given dense pairwise-comparison data.
The data is described by a pairwise-comparison matrix ``comp_mat`` such
that ``comp_mat[i,j]`` contains the number of time... |
(module
(function_definition
(function_name_sam_readline) function_name_sam_readline
(parameters
(identifier_sock) identifier_sock
(default_parameter
(identifier_partial) identifier_partial
(None) None
)default_parameter
)parameters
(block
(expression_statement
... | read a line from a sam control socket |
(module
(function_definition
(function_name__get_token_from_headers) function_name__get_token_from_headers
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_refresh_token) identifier_refresh_token
)parameters
(block
(expression_st... | Extract the token if present inside the headers of a request. |
(module
(function_definition
(function_name_content_types) function_name_content_types
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_EnvironmentContentTypesProxy) identifier_EnvironmentContentTypesProxy
(arg... | Provides access to content type management methods for content types of an environment.
API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/content-types
:return: :class:`EnvironmentContentTypesProxy <contentful_management.space_content_types_proxy.E... |
(module
(function_definition
(function_name_tag) function_name_tag
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
)parameters
(block
(expression_statement
(assignment
(identifier_matches) identifier_matches
(call
... | Retrieves list of regex_matches in text.
Parameters
----------
text: Text
The estnltk text object to search for events.
Returns
-------
list of matches |
(module
(function_definition
(function_name_register_error) function_name_register_error
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_code) identifier_code
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_er... | Update the exit code. |
(module
(function_definition
(function_name_update_default_iou_values) function_name_update_default_iou_values
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_ou... | Finds the default RAM and NVRAM values for the IOU image. |
(module
(function_definition
(function_name_reflect_well) function_name_reflect_well
(parameters
(identifier_value) identifier_value
(identifier_bounds) identifier_bounds
)parameters
(block
(while_statement
(comparison_operator
(identifier_value) identifier_value
... | Given some boundaries, reflects the value until it falls within both
boundaries. This is done iteratively, reflecting left off of the
`boundaries.max`, then right off of the `boundaries.min`, etc.
Parameters
----------
value : float
The value to apply the reflected boundaries to.
bounds... |
(module
(function_definition
(function_name_get_queryset) function_name_get_queryset
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_queryset) identifier_queryset
(call
(attribute
... | Returns queryset instance.
:rtype: django.db.models.query.QuerySet. |
(module
(function_definition
(function_name_get_tag_context) function_name_get_tag_context
(parameters
(identifier_name) identifier_name
(identifier_state) identifier_state
)parameters
(block
(expression_statement
(assignment
(identifier_new_contexts) identifier_new... | Given a tag name, return its associated value as defined in the current
context stack. |
(module
(function_definition
(function_name_sendACK) function_name_sendACK
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_blocknumber) identifier_blocknumber
(None) None
)default_parameter
)parameters
(block
(expression_statement
... | This method sends an ack packet to the block number specified. If
none is specified, it defaults to the next_block property in the
parent context. |
(module
(function_definition
(function_name_apply) function_name_apply
(parameters
(identifier_self) identifier_self
(identifier_im) identifier_im
)parameters
(block
(import_from_statement
(dotted_name
(identifier_scipy) identifier_scipy
(identifier_ndimag... | Apply axis-localized displacements.
Parameters
----------
im : ndarray
The image or volume to shift |
(module
(function_definition
(function_name_render_css) function_name_render_css
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_fn) identifier_fn
(None) None
)default_parameter
(default_parameter
(identifier_text) identifier_text
... | output css using the Sass processor |
(module
(function_definition
(function_name_load_spectrum) function_name_load_spectrum
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(import_statement
(dotted_name
(identifier_f311) identifier_f311
)dotted_name
)import_statement
... | Attempts to load spectrum as one of the supported types.
Returns:
a Spectrum, or None |
(module
(function_definition
(function_name_extract_bus_routine) function_name_extract_bus_routine
(parameters
(identifier_page) identifier_page
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(arg... | Extract bus routine information from page.
:param page: crawled page. |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_name) identifier_name
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
... | Loads the configuration provided onto the junos device.
.. code-block:: yaml
Install the mentioned config:
junos:
- load
- path: salt//configs/interface.set
.. code-block:: yaml
Install the mentioned config:
junos:
... |
(module
(function_definition
(function_name_validate) function_name_validate
(parameters
(identifier_self) identifier_self
(identifier_val) identifier_val
)parameters
(block
(if_statement
(comparison_operator
(identifier_val) identifier_val
(attribute
... | Validates that the val is in the list of values for this Enum.
Returns two element tuple: (bool, string)
- `bool` - True if valid, False if not
- `string` - Description of validation error, or None if valid
:Parameters:
val
Value to validate. Should be a string. |
(module
(function_definition
(function_name_fermi_dist) function_name_fermi_dist
(parameters
(identifier_energy) identifier_energy
(identifier_beta) identifier_beta
)parameters
(block
(expression_statement
(assignment
(identifier_exponent) identifier_exponent
... | Fermi Dirac distribution |
(module
(function_definition
(function_name___parse_drac) function_name___parse_drac
(parameters
(identifier_output) identifier_output
)parameters
(block
(expression_statement
(assignment
(identifier_drac) identifier_drac
(dictionary
)dictionary
... | Parse Dell DRAC output |
(module
(function_definition
(function_name_transform) function_name_transform
(parameters
(identifier_self) identifier_self
(identifier_context) identifier_context
(identifier_handler) identifier_handler
(identifier_result) identifier_result
)parameters
(block
(expressio... | Transform the value returned by the controller endpoint.
This extension transforms returned values if the endpoint has a return type annotation. |
(module
(function_definition
(function_name_to_node) function_name_to_node
(parameters
(identifier_value) identifier_value
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifi... | Expand to a literal node if a basic type otherwise just returns the node |
(module
(function_definition
(function_name_extract_fieldnames) function_name_extract_fieldnames
(parameters
(identifier_config) identifier_config
)parameters
(block
(expression_statement
(assignment
(identifier_fields) identifier_fields
(list
)list
... | Function to return a list of unique field names from the config file
:param config: The configuration file that contains the specification of the extractor
:return: A list of field names from the config file |
(module
(function_definition
(function_name_write_config) function_name_write_config
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_dump) identif... | Write the configuration to a local file.
:return: Boolean if successful |
(module
(function_definition
(function_name_list_records) function_name_list_records
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_file_const) identifier_file_const
(None) None
)default_parameter
)parameters
(block
(for_statement
... | Iterate through the file records |
(module
(function_definition
(function_name__validate_install) function_name__validate_install
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_pri... | a method to validate heroku is installed |
(module
(function_definition
(function_name_set_status) function_name_set_status
(parameters
(identifier_self) identifier_self
(identifier_enabled) identifier_enabled
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) ident... | Enable or disable the HVAC. |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_self) identifier_self
(identifier_config) identifier_config
)parameters
(block
(expression_statement
(assignment
(identifier_password_dict) identifier_password_dict
... | Load the password from the configuration file. |
(module
(function_definition
(function_name_kernels_push_cli) function_name_kernels_push_cli
(parameters
(identifier_self) identifier_self
(identifier_folder) identifier_folder
)parameters
(block
(expression_statement
(assignment
(identifier_folder) identifier_folde... | client wrapper for kernels_push, with same arguments. |
(module
(function_definition
(function_name_startAll) function_name_startAll
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(ident... | Start all registered Workers. |
(module
(function_definition
(function_name__read_channel) function_name__read_channel
(parameters
(identifier_channel) identifier_channel
(identifier_stream) identifier_stream
(identifier_start) identifier_start
(identifier_duration) identifier_duration
)parameters
(block
... | Get channel using lalframe |
(module
(function_definition
(function_name_any_validator) function_name_any_validator
(parameters
(identifier_obj) identifier_obj
(identifier_validators) identifier_validators
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parame... | Attempt multiple validators on an object.
- If any pass, then all validation passes.
- Otherwise, raise all of the errors. |
(module
(function_definition
(function_name_rotate) function_name_rotate
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__index) i... | Rotate the kill ring, then yank back the new top.
Returns
-------
A text string or None. |
(module
(function_definition
(function_name_export_gpx_file) function_name_export_gpx_file
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_gpx) identifier_gpx
(call
(identifier_create_ele... | Generate GPX element tree from ``Trackpoints``.
Returns:
etree.ElementTree: GPX element tree depicting ``Trackpoints``
objects |
(module
(function_definition
(function_name_privacy_options_view) function_name_privacy_options_view
(parameters
(identifier_request) identifier_request
)parameters
(block
(if_statement
(comparison_operator
(string_"user") string_"user"
(attribute
(i... | View and edit privacy options for a user. |
(module
(function_definition
(function_name_protect_pip_from_modification_on_windows) function_name_protect_pip_from_modification_on_windows
(parameters
(identifier_modifying_pip) identifier_modifying_pip
)parameters
(block
(expression_statement
(assignment
(identifier_pi... | Protection of pip.exe from modification on Windows
On Windows, any operation modifying pip should be run as:
python -m pip ... |
(module
(function_definition
(function_name_close) function_name_close
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__connection) identifier__connection
)attribute
... | Closes connection with the q service. |
(module
(function_definition
(function_name_knapsack_iterative) function_name_knapsack_iterative
(parameters
(identifier_items) identifier_items
(identifier_maxweight) identifier_maxweight
)parameters
(block
(expression_statement
(assignment
(identifier_weights) ide... | items = int_items
maxweight = int_maxweight |
(module
(function_definition
(function_name_get_stream_formats) function_name_get_stream_formats
(parameters
(identifier_self) identifier_self
(identifier_media_item) identifier_media_item
)parameters
(block
(expression_statement
(assignment
(identifier_scraper) ide... | Get the available media formats for a given media item
@param crunchyroll.models.Media
@return dict |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_qry) identifier_qry
(call
(attribute
(attribute
... | Change to a temp directory
Run bash script containing commands
Place results in specified output file
Clean up temp directory |
(module
(function_definition
(function_name_create_intent) function_name_create_intent
(parameters
(identifier_self) identifier_self
(identifier_parent) identifier_parent
(identifier_intent) identifier_intent
(default_parameter
(identifier_language_code) identifier_language_cod... | Creates an intent in the specified agent.
Example:
>>> import dialogflow_v2
>>>
>>> client = dialogflow_v2.IntentsClient()
>>>
>>> parent = client.project_agent_path('[PROJECT]')
>>>
>>> # TODO: Initialize ``intent``:
... |
(module
(function_definition
(function_name_preprocess_cell) function_name_preprocess_cell
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_cell) identifier_cell
(type
(string_"NotebookNode") string_"NotebookNode"
)type
)typed_param... | Preprocess cell.
Parameters
----------
cell : NotebookNode cell
Notebook cell being processed
resources : dictionary
Additional resources used in the conversion process. Allows
preprocessors to pass variables into the Jinja engine.
cell_index ... |
(module
(function_definition
(function_name__main) function_name__main
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_proctitle) identifier_s... | module "main" method. Only used by external modules.
:return: None |
(module
(function_definition
(function_name_import_mapping) function_name_import_mapping
(parameters
(identifier_connection_id) identifier_connection_id
(identifier_mapping) identifier_mapping
)parameters
(block
(expression_statement
(assignment
(identifier_url) ide... | Import Heroku Connection mapping for given connection.
Args:
connection_id (str): Heroku Connection connection ID.
mapping (dict): Heroku Connect mapping.
Raises:
requests.HTTPError: If an error occurs uploading the mapping.
ValueError: If the mapping is not JSON serializable. |
(module
(function_definition
(function_name_parse) function_name_parse
(parameters
(identifier_files) identifier_files
(default_parameter
(identifier_config) identifier_config
(None) None
)default_parameter
(default_parameter
(identifier_compilation_mode) identi... | Parse header files.
:param files: The header files that should be parsed
:type files: list of str
:param config: Configuration object or None
:type config: :class:`parser.xml_generator_configuration_t`
:param compilation_mode: Determines whether the files are parsed
ind... |
(module
(function_definition
(function_name_create_organization) function_name_create_organization
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) ... | To create an organization Jira administrator global permission or agent permission is required
depending on the settings
:param name: str
:return: Organization data |
(module
(function_definition
(function_name_show_settings) function_name_show_settings
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self)... | Open the Setting windows, after updating the values in GUI. |
(module
(function_definition
(function_name_decode) function_name_decode
(parameters
(identifier_vol) identifier_vol
(identifier_filename) identifier_filename
(identifier_content) identifier_content
)parameters
(block
(expression_statement
(assignment
(identif... | Decode content according to settings in a cloudvolume instance. |
(module
(function_definition
(function_name_select_fields) function_name_select_fields
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_fields) identifier_fields
)list_splat_pattern
)parameters
(block
(if_statement
(identifier_fields... | set multiple fields to be selected |
(module
(function_definition
(function_name_clean_value) function_name_clean_value
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
... | Populates json serialization ready data.
This is the method used to serialize and store the object data in to DB
Returns:
List of dicts. |
(module
(function_definition
(function_name_matches) function_name_matches
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_specs) identifier_specs
)list_splat_pattern
)parameters
(block
(for_statement
(identifier_spec) identifier_sp... | Check if this relation matches relationship specs.
Relation specs are strings that would be given to Juju to establish a
relation, and should be in the form ``<application>[:<endpoint_name>]``
where the ``:<endpoint_name>`` suffix is optional. If the suffix is
omitted, this relation wi... |
(module
(function_definition
(function_name_encode_numeric) function_name_encode_numeric
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
... | This method encodes the QR code's data if its mode is
numeric. It returns the data encoded as a binary string. |
(module
(function_definition
(function_name_get_chunk) function_name_get_chunk
(parameters
(identifier_self) identifier_self
(identifier_chunk_id) identifier_chunk_id
)parameters
(block
(if_statement
(comparison_operator
(identifier_chunk_id) identifier_chunk_id
... | Returns the chunk object for the supplied identifier
@type chunk_id: string
@param chunk_id: chunk identifier |
(module
(function_definition
(function_name_delete_table) function_name_delete_table
(parameters
(identifier_self) identifier_self
(identifier_table_name) identifier_table_name
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
... | Deletes the table and all of it's data. After this request
the table will be in the DELETING state until DynamoDB
completes the delete operation.
:type table_name: str
:param table_name: The name of the table to delete. |
(module
(function_definition
(function_name_colored) function_name_colored
(parameters
(identifier_text) identifier_text
(default_parameter
(identifier_color) identifier_color
(None) None
)default_parameter
(default_parameter
(identifier_on_color) identifier_on_... | Colorize text, while stripping nested ANSI color sequences.
Author: Konstantin Lepa <konstantin.lepa@gmail.com> / termcolor
Available text colors:
red, green, yellow, blue, magenta, cyan, white.
Available text highlights:
on_red, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white... |
(module
(function_definition
(function_name_list_passwords) function_name_list_passwords
(parameters
(default_parameter
(identifier_kwargs) identifier_kwargs
(None) None
)default_parameter
(default_parameter
(identifier_call) identifier_call
(None) None
... | List all password on the account
.. versionadded:: 2015.8.0 |
(module
(function_definition
(function_name_init_extension) function_name_init_extension
(parameters
(identifier_self) identifier_self
(identifier_app) identifier_app
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(ide... | Initialize cache instance. |
(module
(function_definition
(function_name_randomEarlyShared) function_name_randomEarlyShared
(parameters
(identifier_store) identifier_store
(identifier_role) identifier_role
)parameters
(block
(for_statement
(identifier_r) identifier_r
(call
(attribute
... | If there are no explicitly-published public index pages to display, find a
shared item to present to the user as first. |
(module
(function_definition
(function_name_TokenClient) function_name_TokenClient
(parameters
(identifier_domain) identifier_domain
(identifier_token) identifier_token
(default_parameter
(identifier_user_agent) identifier_user_agent
(None) None
)default_parameter
... | Creates a Freshbooks client for a freshbooks domain, using
token-based auth.
The optional request_encoder and response_decoder parameters can be
passed the logging_request_encoder and logging_response_decoder objects
from this module, or custom encoders, to aid debugging or change the
behaviour... |
(module
(function_definition
(function_name__removeTags) function_name__removeTags
(parameters
(identifier_tags) identifier_tags
(identifier_objects) identifier_objects
)parameters
(block
(for_statement
(identifier_t) identifier_t
(identifier_tags) identifier_tags
... | Removes tags from objects |
(module
(function_definition
(function_name_open_inbox_page) function_name_open_inbox_page
(parameters
(identifier_self) identifier_self
(identifier_content_type) identifier_content_type
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
... | Open an instance of the inbox page for the logged in user. |
(module
(function_definition
(function_name_aggregate) function_name_aggregate
(parameters
(identifier_self) identifier_self
(identifier_search) identifier_search
)parameters
(block
(for_statement
(pattern_list
(identifier_f) identifier_f
(identifier_facet... | Add aggregations representing the facets selected, including potential
filters. |
(module
(function_definition
(function_name_is_address_guard) function_name_is_address_guard
(parameters
(identifier_self) identifier_self
(identifier_address) identifier_address
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
... | Determines if an address belongs to a guard page.
@note: Returns always C{False} for kernel mode addresses.
@type address: int
@param address: Memory address to query.
@rtype: bool
@return: C{True} if the address belongs to a guard page.
@raise WindowsError: An exce... |
(module
(function_definition
(function_name_spheres_intersect) function_name_spheres_intersect
(parameters
(identifier_ar) identifier_ar
(identifier_aR) identifier_aR
(identifier_br) identifier_br
(identifier_bR) identifier_bR
)parameters
(block
(return_statement
... | Return whether or not two spheres intersect each other.
Parameters
----------
ar, br: array-like, shape (n,) in n dimensions
Coordinates of the centres of the spheres `a` and `b`.
aR, bR: float
Radiuses of the spheres `a` and `b`.
Returns
-------
intersecting: boolean
... |
(module
(function_definition
(function_name_check_internet_on) function_name_check_internet_on
(parameters
(identifier_secrets_file_path) identifier_secrets_file_path
)parameters
(block
(while_statement
(True) True
(block
(if_statement
(boolean_operato... | If internet on and USB unplugged, returns true. Else, continues to wait... |
(module
(function_definition
(function_name_load_modules) function_name_load_modules
(parameters
(identifier_self) identifier_self
(identifier_modules) identifier_modules
(identifier_config) identifier_config
)parameters
(block
(for_statement
(identifier_pluginclass) id... | Load plugin modules. |
(module
(function_definition
(function_name_get_pkg_version) function_name_get_pkg_version
(parameters
)parameters
(block
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
... | Get version string by parsing PKG-INFO. |
(module
(function_definition
(function_name_ip_to_int) function_name_ip_to_int
(parameters
(identifier_ip) identifier_ip
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(integer_0) integer_0
)assignment
)express... | Converts an IP address to an integer |
(module
(function_definition
(function_name_run_query_series) function_name_run_query_series
(parameters
(identifier_queries) identifier_queries
(identifier_conn) identifier_conn
)parameters
(block
(expression_statement
(assignment
(identifier_results) identifier_re... | Iterates through a list of queries and runs them through the connection
Args:
-----
queries: list of strings or tuples containing (query_string, kwargs)
conn: the triplestore connection to use |
(module
(function_definition
(function_name_changes_found) function_name_changes_found
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_dest... | Returns True if the target folder is older than the source folder. |
(module
(function_definition
(function_name__merge_colormaps) function_name__merge_colormaps
(parameters
(identifier_kwargs) identifier_kwargs
)parameters
(block
(import_from_statement
(dotted_name
(identifier_trollimage) identifier_trollimage
(identifier_colorm... | Merge colormaps listed in kwargs. |
(module
(function_definition
(function_name_visit_const) function_name_visit_const
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
(identifier_parent) identifier_parent
)parameters
(block
(return_statement
(call
(attribute
... | visit a Const node by returning a fresh instance of it |
(module
(function_definition
(function_name__process_article_phene_row) function_name__process_article_phene_row
(parameters
(identifier_self) identifier_self
(identifier_row) identifier_row
)parameters
(block
(expression_statement
(assignment
(identifier_phenotype_... | Linking articles to species-specific phenes.
:param row:
:return: |
(module
(function_definition
(function_name__extract_tls_session_ticket) function_name__extract_tls_session_ticket
(parameters
(typed_parameter
(identifier_ssl_session) identifier_ssl_session
(type
(attribute
(attribute
(identifier_nassl) identifier_na... | Extract the TLS session ticket from a SSL session object or raises IndexError if the ticket was not set. |
(module
(function_definition
(function_name_crop_resize_image) function_name_crop_resize_image
(parameters
(typed_parameter
(identifier_image) identifier_image
(type
(attribute
(identifier_np) identifier_np
(identifier_ndarray) identifier_ndarray
... | Resize the input image.
:param image: Original image which is a PIL object.
:param size: Tuple of height and width to resize the image to.
:return: Resized image which is a PIL object |
(module
(function_definition
(function_name_attach_remote_media) function_name_attach_remote_media
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
(default_parameter
(identifier_username) identifier_username
(None) None
)default_parameter
... | Attach remote media by url
Given a url, attach remote media (cd/usb image) to the target system.
:param url: URL to indicate where to find image (protocol support
varies by BMC)
:param username: Username for endpoint to use when accessing the URL.
... |
(module
(function_definition
(function_name__cost_method) function_name__cost_method
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
... | Calculate low-rank component of the cost
This method returns the nuclear norm error of the deconvolved data in
matrix form
Returns
-------
float low-rank cost component |
(module
(function_definition
(function_name_timex_starts) function_name_timex_starts
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(id... | The list of start positions of ``timexes`` layer elements. |
(module
(function_definition
(function_name_invert_projection) function_name_invert_projection
(parameters
(identifier_self) identifier_self
(identifier_X) identifier_X
(identifier_identities) identifier_identities
)parameters
(block
(expression_statement
(assignment
... | Calculate the inverted projection.
The inverted projectio of a SOM is created by association each weight
with the input which matches it the most, thus giving a good
approximation of the "influence" of each input item.
Works best for symbolic (instead of continuous) input data.
... |
(module
(function_definition
(function_name_visit_augassign) function_name_visit_augassign
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
(identifier_parent) identifier_parent
)parameters
(block
(expression_statement
(assignment
... | visit a AugAssign node by returning a fresh instance of it |
(module
(function_definition
(function_name_get_dict_for_mongodb_queries) function_name_get_dict_for_mongodb_queries
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(dictionary
... | This function returns a dictionary with the attributes that will be
put in the mongodb document to facilitate the query.
Subclasses may want to replace or extend the default behaviour. |
(module
(function_definition
(function_name__validate_planar_fault_geometry) function_name__validate_planar_fault_geometry
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
(identifier__float_re) identifier__float_re
)parameters
(block
(expression_... | Validares a node representation of a planar fault geometry |
(module
(function_definition
(function_name_backward_delete_char) function_name_backward_delete_char
(parameters
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(string_" Delete the character behind the cursor. ") string_" Delete the character behind th... | Delete the character behind the cursor. |
(module
(function_definition
(function_name_setduration) function_name_setduration
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_duration) identifier_duration
)dictionary_splat_pattern
)parameters
(block
(if_statement
(compa... | Set the caching duration which defines how long the
file will be cached.
@param duration: The cached file duration which defines how
long the file will be cached. A duration=0 means forever.
The duration may be: (months|weeks|days|hours|minutes|seconds).
@type duration: ... |
(module
(function_definition
(function_name_structure) function_name_structure
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(assignment
(identifier_downstream) identifier_downstream
(call
(attribute
... | Get the vector structure, as a DNA regex pattern.
Warning:
If overloading this method, the returned pattern must include 3
capture groups to capture the following features:
1. The downstream (3') overhang sequence
2. The vector placeholder sequence
3... |
(module
(function_definition
(function_name_wait_for_save) function_name_wait_for_save
(parameters
(identifier_filename) identifier_filename
(default_parameter
(identifier_timeout) identifier_timeout
(integer_5) integer_5
)default_parameter
)parameters
(block
(e... | Waits for FILENAME to update, waiting up to TIMEOUT seconds.
Returns True if a save was detected, and False otherwise. |
(module
(function_definition
(function_name_geolocate) function_name_geolocate
(parameters
(identifier_client) identifier_client
(default_parameter
(identifier_home_mobile_country_code) identifier_home_mobile_country_code
(None) None
)default_parameter
(default_paramete... | The Google Maps Geolocation API returns a location and accuracy
radius based on information about cell towers and WiFi nodes given.
See https://developers.google.com/maps/documentation/geolocation/intro
for more info, including more detail for each parameter below.
:param home_mobile_country_code: The... |
(module
(function_definition
(function_name_bitswap_unwant) function_name_bitswap_unwant
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(... | Remove a given block from wantlist.
Parameters
----------
key : str
Key to remove from wantlist. |
(module
(function_definition
(function_name_accepts_kwarg) function_name_accepts_kwarg
(parameters
(identifier_func) identifier_func
(identifier_kwarg) identifier_kwarg
)parameters
(block
(expression_statement
(assignment
(identifier_signature) identifier_signature
... | Determine whether the callable `func` has a signature that accepts the
keyword argument `kwarg` |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(typed_parameter
(identifier_stack_ref) identifier_stack_ref
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(i... | Delete Cloud Formation stacks |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.