sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_Rx_matrix) function_name_Rx_matrix
(parameters
(identifier_theta) identifier_theta
)parameters
(block
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
... | Rotation matrix around the X axis |
(module
(function_definition
(function_name_getusers) function_name_getusers
(parameters
(identifier_self) identifier_self
(identifier_userlist) identifier_userlist
)parameters
(block
(expression_statement
(assignment
(identifier_userobjs) identifier_userobjs
... | Return a list of Users from .
:userlist: List of usernames to lookup
:returns: List of User records |
(module
(function_definition
(function_name_get_url) function_name_get_url
(parameters
(identifier_url) identifier_url
)parameters
(block
(expression_statement
(assignment
(identifier_sub) identifier_sub
(call
(attribute
(string_"{0}.sp... | Ranomdly generates a url for use in requests.
Generates a hostname with the port and the provided suffix url provided
:param url: A url fragment to use in the creation of the master url |
(module
(function_definition
(function_name_LoadData) function_name_LoadData
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_custom_properties) identifier_custom_properties
(None) None
)default_parameter
... | Loads new rows to the data table, clearing existing rows.
May also set the custom_properties for the added rows. The given custom
properties dictionary specifies the dictionary that will be used for *all*
given rows.
Args:
data: The rows that the table will contain.
custom_properties: A di... |
(module
(function_definition
(function_name_gen_jcc) function_name_gen_jcc
(parameters
(identifier_src) identifier_src
(identifier_dst) identifier_dst
)parameters
(block
(return_statement
(call
(attribute
(identifier_ReilBuilder) identifier_ReilBuilder
... | Return a JCC instruction. |
(module
(function_definition
(function_name_get_offset_with_default) function_name_get_offset_with_default
(parameters
(default_parameter
(identifier_cursor) identifier_cursor
(None) None
)default_parameter
(default_parameter
(identifier_default_offset) identifier_def... | Given an optional cursor and a default offset, returns the offset
to use; if the cursor contains a valid offset, that will be used,
otherwise it will be the default. |
(module
(function_definition
(function_name_balance) function_name_balance
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_check) identifier_check... | Check this transaction for correctness |
(module
(function_definition
(function_name_get_keys_to_action) function_name_get_keys_to_action
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_keyword_to_key) identifier_keyword_to_key
(dictionary
... | Get mapping from keyboard keys to actions.
Required by gym.utils.play in environment or top level wrapper.
Returns:
{
Unicode code point for keyboard key: action (formatted for step()),
...
} |
(module
(function_definition
(function_name_read) function_name_read
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_n) identifier_n
(integer_4096) integer_4096
)default_parameter
)parameters
(block
(expression_statement
(ass... | Read up to `n` bytes of data from the Stream, after demuxing.
Less than `n` bytes of data may be returned depending on the available
payload, but the number of bytes returned will never exceed `n`.
Because demuxing involves scanning 8-byte headers, the actual amount of
data read from t... |
(module
(function_definition
(function_name_AddLabels) function_name_AddLabels
(parameters
(identifier_self) identifier_self
(identifier_labels_names) identifier_labels_names
(default_parameter
(identifier_owner) identifier_owner
(None) None
)default_parameter
)para... | Add labels to the AFF4Object. |
(module
(function_definition
(function_name_init_db) function_name_init_db
(parameters
(identifier_db_path) identifier_db_path
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identif... | Build the sqlite database |
(module
(function_definition
(function_name_send) function_name_send
(parameters
(identifier_dest) identifier_dest
(identifier_msg) identifier_msg
(default_parameter
(identifier_transactionid) identifier_transactionid
(None) None
)default_parameter
)parameters
(... | STOMP send command.
dest:
This is the channel we wish to subscribe to
msg:
This is the message body to be sent.
transactionid:
This is an optional field and is not needed
by default. |
(module
(function_definition
(function_name_ways_callback) function_name_ways_callback
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(for_statement
(pattern_list
(identifier_way_id) identifier_way_id
(id... | Callback for all ways |
(module
(function_definition
(function_name_bm3_p) function_name_bm3_p
(parameters
(identifier_v) identifier_v
(identifier_v0) identifier_v0
(identifier_k0) identifier_k0
(identifier_k0p) identifier_k0p
(default_parameter
(identifier_p_ref) identifier_p_ref
(float... | calculate pressure from 3rd order Birch-Murnathan equation
:param v: volume at different pressures
:param v0: volume at reference conditions
:param k0: bulk modulus at reference conditions
:param k0p: pressure derivative of bulk modulus at different conditions
:param p_ref: reference pressure (defa... |
(module
(function_definition
(function_name_walk_paths) function_name_walk_paths
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_base) identifier_base
(type
(generic_type
(identifier_Optional) identifier_Optional
... | Recursively traverse all paths inside this entity, including the entity
itself.
:param base: The base path to prepend to the entity name.
:return: An iterator of paths. |
(module
(function_definition
(function_name__recursive_matches) function_name__recursive_matches
(parameters
(identifier_self) identifier_self
(identifier_nodes) identifier_nodes
(identifier_count) identifier_count
)parameters
(block
(assert_statement
(comparison_operat... | Helper to recursively yield the matches. |
(module
(function_definition
(function_name_recursive_copy) function_name_recursive_copy
(parameters
(identifier_source) identifier_source
(identifier_dest) identifier_dest
)parameters
(block
(for_statement
(pattern_list
(identifier_root) identifier_root
(... | Recursively copy the source directory to the destination,
leaving files with the source does not explicitly overwrite.
(identical to cp -r on a unix machine) |
(module
(function_definition
(function_name_describe) function_name_describe
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_lines) identifier_lines
(list
)list
)assignment
)e... | describes a Symbol, returns a string |
(module
(function_definition
(function_name_apply_fixes) function_name_apply_fixes
(parameters
(identifier_args) identifier_args
(identifier_tmpdir) identifier_tmpdir
)parameters
(block
(expression_statement
(assignment
(identifier_invocation) identifier_invocation
... | Calls clang-apply-fixes on a given directory. |
(module
(function_definition
(function_name_main) function_name_main
(parameters
)parameters
(block
(import_from_statement
(dotted_name
(identifier_six) identifier_six
)dotted_name
(dotted_name
(identifier_StringIO) identifier_StringIO
)dotted_... | the main routine |
(module
(function_definition
(function_name_unravel_staff) function_name_unravel_staff
(parameters
(identifier_staff_data) identifier_staff_data
)parameters
(block
(expression_statement
(assignment
(identifier_staff_list) identifier_staff_list
(list
)l... | Unravels staff role dictionary into flat list of staff
members with ``role`` set as an attribute.
Args:
staff_data(dict): Data return from py:method::get_staff
Returns:
list: Flat list of staff members with ``role`` set to
role type (i.e. course_admin, ... |
(module
(function_definition
(function_name_etd_ms_dict2xmlfile) function_name_etd_ms_dict2xmlfile
(parameters
(identifier_filename) identifier_filename
(identifier_metadata_dict) identifier_metadata_dict
)parameters
(block
(try_statement
(block
(expression_statemen... | Create an ETD MS XML file. |
(module
(function_definition
(function_name__get_uniparc_sequences_through_uniprot_ACs) function_name__get_uniparc_sequences_through_uniprot_ACs
(parameters
(identifier_self) identifier_self
(identifier_mapping_pdb_id) identifier_mapping_pdb_id
(identifier_uniprot_ACs) identifier_uniprot_ACs... | Get the UniParc sequences associated with the UniProt accession number. |
(module
(function_definition
(function_name_BLASTcheck) function_name_BLASTcheck
(parameters
(identifier_rid) identifier_rid
(default_parameter
(identifier_baseURL) identifier_baseURL
(string_"http://blast.ncbi.nlm.nih.gov") string_"http://blast.ncbi.nlm.nih.gov"
)default_par... | Checks the status of a query.
:param rid: BLAST search request identifier. Allowed values: The Request ID (RID) returned when the search was submitted
:param baseURL: server url. Default=http://blast.ncbi.nlm.nih.gov
:returns status: status for the query.
:returns therearehist: yes or no for existing ... |
(module
(function_definition
(function_name_on_source_directory_chooser_clicked) function_name_on_source_directory_chooser_clicked
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_title) identifier_title
... | Autoconnect slot activated when tbSourceDir is clicked. |
(module
(function_definition
(function_name_get_template_image) function_name_get_template_image
(parameters
(default_parameter
(identifier_kwargs) identifier_kwargs
(None) None
)default_parameter
(default_parameter
(identifier_call) identifier_call
(None) Non... | Returns a template's image from the given template name.
.. versionadded:: 2018.3.0
.. code-block:: bash
salt-cloud -f get_template_image opennebula name=my-template-name |
(module
(function_definition
(function_name_calculate_mean) function_name_calculate_mean
(parameters
(identifier_self) identifier_self
(identifier_pars_for_mean) identifier_pars_for_mean
(identifier_calculation_type) identifier_calculation_type
)parameters
(block
(if_statement
... | Uses pmag.dolnp or pmag.fisher_by_pol to do a fisher mean or fisher
mean by polarity on the list of dictionaries in pars for mean
Parameters
----------
pars_for_mean : list of dictionaries with all data to average
calculation_type : type of mean to take (options: Fisher,
... |
(module
(function_definition
(function_name_arrange) function_name_arrange
(parameters
(identifier_df) identifier_df
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictiona... | Calls `pandas.DataFrame.sort_values` to sort a DataFrame according to
criteria.
See:
http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.sort_values.html
For a list of specific keyword arguments for sort_values (which will be
the same in arrange).
Args:
*args: Symbo... |
(module
(function_definition
(function_name_max_cation_removal) function_name_max_cation_removal
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_oxid_pot) identifier_oxid_pot
(call
(ident... | Maximum number of cation A that can be removed while maintaining charge-balance.
Returns:
integer amount of cation. Depends on cell size (this is an 'extrinsic' function!) |
(module
(function_definition
(function_name_spine_to_terminal_wedge) function_name_spine_to_terminal_wedge
(parameters
(identifier_mol) identifier_mol
)parameters
(block
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_a) identifier_a
... | Arrange stereo wedge direction from spine to terminal atom |
(module
(function_definition
(function_name_copy) function_name_copy
(parameters
(identifier_self) identifier_self
(keyword_separator
)keyword_separator
(default_parameter
(identifier_frame) identifier_frame
(None) None
)default_parameter
(default_parameter
... | Provide a new instance of the same point in space-time
Keyword Args:
frame (str or Frame): Frame to convert the new instance into
form (str or Form): Form to convert the new instance into
Return:
Orbit:
Override :py:meth:`numpy.ndarray.copy()` to include add... |
(module
(function_definition
(function_name__mappingGetValueSet) function_name__mappingGetValueSet
(parameters
(identifier_mapping) identifier_mapping
(identifier_keys) identifier_keys
)parameters
(block
(expression_statement
(assignment
(identifier_setUnion) identi... | Return a combined set of values from the mapping.
:param mapping: dict, for each key contains a set of entries
returns a set of combined entries |
(module
(function_definition
(function_name_validate_token_age) function_name_validate_token_age
(parameters
(identifier_callback_token) identifier_callback_token
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identif... | Returns True if a given token is within the age expiration limit. |
(module
(function_definition
(function_name_connections) function_name_connections
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_session)... | Get list of connections. |
(module
(function_definition
(function_name_PLAY) function_name_PLAY
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(binary_operator
(binary_operator
... | RTSP session is ready to send data. |
(module
(function_definition
(function_name_add_option) function_name_add_option
(parameters
(identifier_self) identifier_self
(identifier_parser) identifier_parser
)parameters
(block
(expression_statement
(assignment
(identifier_group) identifier_group
(c... | Add option group and all children options. |
(module
(function_definition
(function_name_get_scenarios) function_name_get_scenarios
(parameters
(identifier_network_id) identifier_network_id
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_stat... | Get all the scenarios in a given network. |
(module
(function_definition
(function_name_delete_router_by_name) function_name_delete_router_by_name
(parameters
(identifier_self) identifier_self
(identifier_rtr_name) identifier_rtr_name
(identifier_tenant_id) identifier_tenant_id
)parameters
(block
(try_statement
(... | Delete the openstack router and its interfaces given its name.
The interfaces should be already removed prior to calling this
function. |
(module
(function_definition
(function_name_add_list_member) function_name_add_list_member
(parameters
(identifier_self) identifier_self
(identifier_list_id) identifier_list_id
(identifier_user_id) identifier_user_id
)parameters
(block
(return_statement
(call
... | Add a user to list
:param list_id: list ID number
:param user_id: user ID number
:return: :class:`~responsebot.models.List` object |
(module
(function_definition
(function_name_show_pypi_releases) function_name_show_pypi_releases
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_hours) identifie... | Show PyPI releases for the last number of `hours`
@returns: 0 = success or 1 if failed to retrieve from XML-RPC server |
(module
(function_definition
(function_name_throw_invalid_quad_params) function_name_throw_invalid_quad_params
(parameters
(identifier_quad) identifier_quad
(identifier_QUADS) identifier_QUADS
(identifier_nparams) identifier_nparams
)parameters
(block
(raise_statement
(... | Exception raised when an invalid number of params in the
quad code has been emmitted. |
(module
(function_definition
(function_name__generate_union_class_variant_creators) function_name__generate_union_class_variant_creators
(parameters
(identifier_self) identifier_self
(identifier_ns) identifier_ns
(identifier_data_type) identifier_data_type
)parameters
(block
(f... | Each non-symbol, non-any variant has a corresponding class method that
can be used to construct a union with that variant selected. |
(module
(function_definition
(function_name_urlsplit) function_name_urlsplit
(parameters
(identifier_url) identifier_url
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_proto) identifier_proto
(identifier_rest) identi... | Split an arbitrary url into protocol, host, rest
The standard urlsplit does not want to provide 'netloc' for arbitrary
protocols, this works around that.
:param url: The url to split into component parts |
(module
(function_definition
(function_name_config_field_type) function_name_config_field_type
(parameters
(identifier_field) identifier_field
(identifier_cls) identifier_cls
)parameters
(block
(return_statement
(call
(attribute
(identifier_defs) identif... | Validate a config field against a type.
Similar functionality to :func:`validate_field_matches_type` but returns :obj:`honeycomb.defs.ConfigField` |
(module
(function_definition
(function_name_handleFlaskPostRequest) function_name_handleFlaskPostRequest
(parameters
(identifier_flaskRequest) identifier_flaskRequest
(identifier_endpoint) identifier_endpoint
)parameters
(block
(if_statement
(comparison_operator
(at... | Handles the specified flask request for one of the POST URLS
Invokes the specified endpoint to generate a response. |
(module
(function_definition
(function_name_title_prefix) function_name_title_prefix
(parameters
(identifier_soup) identifier_soup
)parameters
(block
(expression_statement
(string_"titlePrefix for article JSON is only articles with certain display_channel values") string_"titlePref... | titlePrefix for article JSON is only articles with certain display_channel values |
(module
(function_definition
(function_name__delete_horizontal_space) function_name__delete_horizontal_space
(parameters
(identifier_text) identifier_text
(identifier_pos) identifier_pos
)parameters
(block
(while_statement
(boolean_operator
(comparison_operator
... | Delete all spaces and tabs around pos. |
(module
(function_definition
(function_name_error_response) function_name_error_response
(parameters
(identifier_self) identifier_self
(identifier_code) identifier_code
(default_parameter
(identifier_content) identifier_content
(string_'') string_''
)default_parameter
... | Construct and send error response. |
(module
(function_definition
(function_name_load_pickle) function_name_load_pickle
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(try_statement
(block
(if_statement
(identifier_pd) identifier_pd
(block
(retu... | Load a pickle file as a dictionary |
(module
(function_definition
(function_name__create_table_and_update_context) function_name__create_table_and_update_context
(parameters
(identifier_node) identifier_node
(identifier_context) identifier_context
)parameters
(block
(expression_statement
(assignment
(i... | Create an aliased table for a SqlNode.
Updates the relevant Selectable global context.
Args:
node: SqlNode, the current node.
context: CompilationContext, global compilation state and metadata.
Returns:
Table, the newly aliased SQLAlchemy table. |
(module
(function_definition
(function_name__restore_training_state) function_name__restore_training_state
(parameters
(identifier_self) identifier_self
(identifier_restore_state) identifier_restore_state
)parameters
(block
(expression_statement
(call
(attribute
... | Restores the model and optimizer states
This helper function restores the model's state to a given iteration so
that a user can resume training at any epoch.
Args:
restore_state: a state_dict dictionary |
(module
(function_definition
(function_name_get_and_check_project) function_name_get_and_check_project
(parameters
(identifier_valid_vcs_rules) identifier_valid_vcs_rules
(identifier_source_url) identifier_source_url
)parameters
(block
(expression_statement
(assignment
... | Given vcs rules and a source_url, return the project.
The project is in the path, but is the repo name.
`releases/mozilla-beta` is the path; `mozilla-beta` is the project.
Args:
valid_vcs_rules (tuple of frozendicts): the valid vcs rules, per
``match_url_regex``.
source_url (st... |
(module
(function_definition
(function_name_data_storage_shape) function_name_data_storage_shape
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(ident... | Shape tuple of the data as stored in the file.
If no header is available (i.e., before it has been initialized),
or any of the header entries ``'nx', 'ny', 'nz'`` is missing,
-1 is returned, which makes reshaping a no-op.
Otherwise, the returned shape is a permutation of `data_shape`,
... |
(module
(function_definition
(function_name___get_response) function_name___get_response
(parameters
(identifier_self) identifier_self
(identifier_uri) identifier_uri
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
(default_... | Creates a response object with the given params and option
Parameters
----------
url : string
The full URL to request.
params: dict
A list of parameters to send with the request. This
will be sent as data for methods that ... |
(module
(function_definition
(function_name_visit_continue) function_name_visit_continue
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
(identifier_parent) identifier_parent
)parameters
(block
(return_statement
(call
(attribute... | visit a Continue node by returning a fresh instance of it |
(module
(function_definition
(function_name__cwl_workflow_template) function_name__cwl_workflow_template
(parameters
(identifier_inputs) identifier_inputs
(default_parameter
(identifier_top_level) identifier_top_level
(False) False
)default_parameter
)parameters
(bloc... | Retrieve CWL inputs shared amongst different workflows. |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_cls) identifier_cls
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
... | Delete a webaccelerator |
(module
(function_definition
(function_name_contains) function_name_contains
(parameters
(identifier_cat) identifier_cat
(identifier_key) identifier_key
(identifier_container) identifier_container
)parameters
(block
(expression_statement
(call
(identifier_hash... | Helper for membership check for ``key`` in ``cat``.
This is a helper method for :method:`__contains__`
and :class:`CategoricalIndex.__contains__`.
Returns True if ``key`` is in ``cat.categories`` and the
location of ``key`` in ``categories`` is in ``container``.
Parameters
----------
cat ... |
(module
(function_definition
(function_name_get_client_info) function_name_get_client_info
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_iq) identifier_iq
(call
(attribute
... | A query is sent to the server to obtain the client's data stored at the
server.
:return: :class:`~aioxmpp.ibr.Query` |
(module
(function_definition
(function_name_assert_pks_uniqueness) function_name_assert_pks_uniqueness
(parameters
(identifier_self) identifier_self
(identifier_pks) identifier_pks
(identifier_exclude) identifier_exclude
(identifier_value) identifier_value
)parameters
(block
... | Check uniqueness of pks
Parameters
-----------
pks: iterable
The pks to check for uniqueness. If more than one different,
it will raise. If only one and different than `exclude`, it will
raise too.
exclude: str
The pk that we accept to be ... |
(module
(function_definition
(function_name_timestamps) function_name_timestamps
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_use_current) identifier_use_current
(True) True
)default_parameter
)parameters
(block
(if_statement
... | Create creation and update timestamps to the table.
:rtype: Fluent |
(module
(function_definition
(function_name_prepare_amazon_algorithm_estimator) function_name_prepare_amazon_algorithm_estimator
(parameters
(identifier_estimator) identifier_estimator
(identifier_inputs) identifier_inputs
(default_parameter
(identifier_mini_batch_size) identifier_mi... | Set up amazon algorithm estimator, adding the required `feature_dim` hyperparameter from training data.
Args:
estimator (sagemaker.amazon.amazon_estimator.AmazonAlgorithmEstimatorBase):
An estimator for a built-in Amazon algorithm to get information from and update.
inputs: The training... |
(module
(function_definition
(function_name_send_request) function_name_send_request
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
... | Intercept connection errors which suggest that a managed host has
crashed and raise an exception indicating the location of the log |
(module
(function_definition
(function_name__storage_list_keys) function_name__storage_list_keys
(parameters
(identifier_bucket) identifier_bucket
(identifier_pattern) identifier_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifi... | List all storage keys in a specified bucket that match a pattern. |
(module
(function_definition
(function_name_render) function_name_render
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictio... | Render the template using keyword arguments as local variables. |
(module
(function_definition
(function_name_rouge_2) function_name_rouge_2
(parameters
(identifier_hypotheses) identifier_hypotheses
(identifier_references) identifier_references
)parameters
(block
(expression_statement
(assignment
(identifier_rouge_2) identifier_ro... | Calculate ROUGE-2 F1, precision, recall scores |
(module
(function_definition
(function_name_register_module) function_name_register_module
(parameters
(identifier_self) identifier_self
(identifier_module) identifier_module
(identifier_url_prefix) identifier_url_prefix
)parameters
(block
(expression_statement
(assignm... | Registers a module with a plugin. Requires a url_prefix that
will then enable calls to url_for.
:param module: Should be an instance `xbmcswift2.Module`.
:param url_prefix: A url prefix to use for all module urls,
e.g. '/mymodule' |
(module
(function_definition
(function_name_tabModificationStateChanged) function_name_tabModificationStateChanged
(parameters
(identifier_self) identifier_self
(identifier_tab) identifier_tab
)parameters
(block
(if_statement
(comparison_operator
(identifier_tab) id... | Perform all UI state changes that need to be done when the
modification state of the current tab has changed. |
(module
(function_definition
(function_name_increment_title) function_name_increment_title
(parameters
(identifier_title) identifier_title
)parameters
(block
(expression_statement
(assignment
(identifier_count) identifier_count
(call
(attribute
... | Increments a string that ends in a number |
(module
(function_definition
(function_name__remove_unused_nodes) function_name__remove_unused_nodes
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_nodes) identifier_nodes
... | Removes unused function and sub-dispatcher nodes. |
(module
(function_definition
(function_name__create_clock) function_name__create_clock
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_trading_o_and_c) identifier_trading_o_and_c
(subscript
... | If the clock property is not set, then create one based on frequency. |
(module
(function_definition
(function_name__get_struct_clipactions) function_name__get_struct_clipactions
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(ident... | Get the several CLIPACTIONRECORDs. |
(module
(function_definition
(function_name_transform) function_name_transform
(parameters
(identifier_transform_func) identifier_transform_func
)parameters
(block
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(identifier_func)... | Apply a transformation to a functions return value |
(module
(function_definition
(function_name_translation_generator) function_name_translation_generator
(parameters
(identifier_variant_sequences) identifier_variant_sequences
(identifier_reference_contexts) identifier_reference_contexts
(identifier_min_transcript_prefix_length) identifier_mi... | Given all detected VariantSequence objects for a particular variant
and all the ReferenceContext objects for that locus, translate
multiple protein sequences, up to the number specified by the argument
max_protein_sequences_per_variant.
Parameters
----------
variant_sequences : list of VariantS... |
(module
(function_definition
(function_name__second_column) function_name__second_column
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(subscript
(attribute
(... | Right-low 2x2 matrix
Assume elements in first row and column are all zero except for A[0,0]. |
(module
(function_definition
(function_name_get_worker_build_info) function_name_get_worker_build_info
(parameters
(identifier_workflow) identifier_workflow
(identifier_platform) identifier_platform
)parameters
(block
(expression_statement
(assignment
(identifier_wo... | Obtain worker build information for a given platform |
(module
(function_definition
(function_name_entropy) function_name_entropy
(parameters
(identifier_data) identifier_data
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(ident... | Compute the Shannon entropy, a measure of uncertainty. |
(module
(function_definition
(function_name_set_value) function_name_set_value
(parameters
(identifier_self) identifier_self
(identifier_instance) identifier_instance
(identifier_value) identifier_value
(default_parameter
(identifier_parent) identifier_parent
(None) Non... | Set prop value
:param instance:
:param value:
:param parent:
:return: |
(module
(function_definition
(function_name_resolve_identifiers) function_name_resolve_identifiers
(parameters
(identifier_self) identifier_self
(identifier_subject_context) identifier_subject_context
)parameters
(block
(expression_statement
(assignment
(identifier_... | ensures that a subject_context has identifiers and if it doesn't will
attempt to locate them using heuristics |
(module
(function_definition
(function_name__specialize) function_name__specialize
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_reconfigure) identifier_reconfigure
(False) False
)default_parameter
)parameters
(block
(for_statement... | Add variables and specialize contexts |
(module
(function_definition
(function_name_set_var) function_name_set_var
(parameters
(identifier_self) identifier_self
(identifier_vardef) identifier_vardef
)parameters
(block
(if_statement
(not_operator
(parenthesized_expression
(boolean_operator
... | Set variable to global stylesheet context. |
(module
(function_definition
(function_name_rule_expand) function_name_rule_expand
(parameters
(identifier_component) identifier_component
(identifier_text) identifier_text
)parameters
(block
(global_statement
(identifier_rline_mpstate) identifier_rline_mpstate
)global_... | expand one rule component |
(module
(function_definition
(function_name_create_environment_vip) function_name_create_environment_vip
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_EnvironmentVIP) identifier_EnvironmentVIP
(argument_list... | Get an instance of environment_vip services facade. |
(module
(function_definition
(function_name_check_token) function_name_check_token
(parameters
(identifier_self) identifier_self
(identifier_respond) identifier_respond
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_respond)... | Check is the user's token is valid |
(module
(function_definition
(function_name_wrap_get_channel) function_name_wrap_get_channel
(parameters
(identifier_cls) identifier_cls
(identifier_response) identifier_response
)parameters
(block
(expression_statement
(assignment
(identifier_json) identifier_json
... | Wrap the response from getting a channel into an instance
and return it
:param response: The response from getting a channel
:type response: :class:`requests.Response`
:returns: the new channel instance
:rtype: :class:`list` of :class:`channel`
:raises: None |
(module
(function_definition
(function_name__preprocess_Y) function_name__preprocess_Y
(parameters
(identifier_self) identifier_self
(identifier_Y) identifier_Y
(identifier_k) identifier_k
)parameters
(block
(expression_statement
(assignment
(identifier_Y) ide... | Convert Y to prob labels if necessary |
(module
(function_definition
(function_name_SegmentProd) function_name_SegmentProd
(parameters
(identifier_a) identifier_a
(identifier_ids) identifier_ids
)parameters
(block
(expression_statement
(assignment
(identifier_func) identifier_func
(lambda
... | Segmented prod op. |
(module
(function_definition
(function_name_get_list_database) function_name_get_list_database
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(string_"db") string_"db"
)a... | Get the list of databases. |
(module
(function_definition
(function_name_normalize_path) function_name_normalize_path
(parameters
(identifier_path) identifier_path
(default_parameter
(identifier_filetype) identifier_filetype
(identifier_FILE) identifier_FILE
)default_parameter
)parameters
(block
... | Takes a path and a filetype, verifies existence and type, and
returns absolute path. |
(module
(function_definition
(function_name_remove_item_languages) function_name_remove_item_languages
(parameters
(identifier_self) identifier_self
(identifier_item) identifier_item
(identifier_languages) identifier_languages
)parameters
(block
(expression_statement
(a... | delete the selected languages from the TransItemLanguage model
:param item:
:param languages:
:return: |
(module
(function_definition
(function_name_queueStream) function_name_queueStream
(parameters
(identifier_self) identifier_self
(identifier_rdds) identifier_rdds
(default_parameter
(identifier_oneAtATime) identifier_oneAtATime
(True) True
)default_parameter
(defa... | Create an input stream from a queue of RDDs or list. In each batch,
it will process either one or all of the RDDs returned by the queue.
.. note:: Changes to the queue after the stream is created will not be recognized.
@param rdds: Queue of RDDs
@param oneAtATime: pick one rdd e... |
(module
(function_definition
(function_name_update) function_name_update
(parameters
)parameters
(block
(assert_statement
(comparison_operator
(attribute
(identifier_request) identifier_request
(identifier_method) identifier_method
)attribute
... | Called by XMLHTTPrequest function periodically to get new graph data.
Usage description:
This function queries the database and returns all the newly added values.
:return: JSON Object, passed on to the JS script. |
(module
(function_definition
(function_name_after_sample) function_name_after_sample
(parameters
(identifier_analysis_request) identifier_analysis_request
)parameters
(block
(expression_statement
(call
(attribute
(identifier_analysis_request) identifier_analys... | Method triggered after "sample" transition for the Analysis Request
passed in is performed |
(module
(function_definition
(function_name__data) function_name__data
(parameters
(identifier_self) identifier_self
(identifier_received_data) identifier_received_data
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
... | Sends data to listener, if False is returned; socket
is closed.
:param received_data: Decoded data received from socket. |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(identifier_ogpgs) identifier_ogpgs
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
... | Method to create object group permissions general
:param ogpgs: List containing vrf desired to be created on database
:return: None |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(identifier_f) identifier_f
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
... | Write namespace as INI file.
:param f: File object or path to file. |
(module
(function_definition
(function_name_radio_button) function_name_radio_button
(parameters
(identifier_g) identifier_g
(identifier_l) identifier_l
(identifier_fn) identifier_fn
)parameters
(block
(expression_statement
(assignment
(identifier_w) identifie... | Inheriting radio button of urwid |
(module
(function_definition
(function_name_enqueue_command) function_name_enqueue_command
(parameters
(identifier_self) identifier_self
(identifier_command) identifier_command
(identifier_data) identifier_data
)parameters
(block
(if_statement
(boolean_operator
... | Enqueue command into command queues |
(module
(function_definition
(function_name_delete_vpc_peering_connection) function_name_delete_vpc_peering_connection
(parameters
(default_parameter
(identifier_conn_id) identifier_conn_id
(None) None
)default_parameter
(default_parameter
(identifier_conn_name) ident... | Delete a VPC peering connection.
.. versionadded:: 2016.11.0
conn_id
The connection ID to check. Exclusive with conn_name.
conn_name
The connection name to check. Exclusive with conn_id.
region
Region to connect to.
key
Secret key to be used.
keyid
... |
(module
(function_definition
(function_name_get_context) function_name_get_context
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_retry) identifier_retry
(attribute
(attribute
(attribute
... | Retrieves the specified context.
Example:
>>> import dialogflow_v2
>>>
>>> client = dialogflow_v2.ContextsClient()
>>>
>>> name = client.context_path('[PROJECT]', '[SESSION]', '[CONTEXT]')
>>>
>>> response = client.get_context(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.