sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_add_to_document) function_name_add_to_document (parameters (identifier_self) identifier_self (identifier_parent) identifier_parent )parameters (block (expression_statement (assignment (identifier_arg) identifier_arg ...
Adds an ``Argument`` object to this ElementTree document. Adds an <arg> subelement to the parent element, typically <args> and sets up its subelements with their respective text. :param parent: An ``ET.Element`` to be the parent of a new <arg> subelement :returns: An ``ET.Element`` obj...
(module (function_definition (function_name_root) function_name_root (parameters (identifier_self) identifier_self )parameters (block (with_statement (with_clause (with_item (attribute (identifier_self) identifier_self (identifier__...
The root node of the tree this node is in.
(module (function_definition (function_name_registration_backend) function_name_registration_backend (parameters (default_parameter (identifier_backend) identifier_backend (None) None )default_parameter (default_parameter (identifier_namespace) identifier_namespace ...
Returns a specified registration backend Args: backend: dotted path to the registration backend class namespace: URL namespace to use Returns: an instance of an RegistrationBackend
(module (function_definition (function_name_RunInstaller) function_name_RunInstaller (parameters )parameters (block (try_statement (block (expression_statement (call (attribute (identifier_os) identifier_os (identifier_m...
Run all registered installers. Run all the current installers and then exit the process.
(module (function_definition (function_name_connection_ok) function_name_connection_ok (parameters )parameters (block (try_statement (block (expression_statement (call (identifier_urlopen) identifier_urlopen (argument_list ...
Check web connection. Returns True if web connection is OK, False otherwise.
(module (function_definition (function_name__get_values) function_name__get_values (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (pattern_list (tuple_pattern (identifier_gi) identifier_gi ...
Get unique index value for each bar
(module (function_definition (function_name_sendSignal) function_name_sendSignal (parameters (identifier_self) identifier_self (identifier_p) identifier_p (identifier_member) identifier_member (default_parameter (identifier_signature) identifier_signature (None) None ...
Sends a signal to a specific connection @type p: L{BusProtocol} @param p: L{BusProtocol} instance to send a signal to @type member: C{string} @param member: Name of the signal to send @type path: C{string} @param path: Path of the object emitting the signal. Defaults t...
(module (function_definition (function_name__pidgin_status) function_name__pidgin_status (parameters (identifier_status) identifier_status (identifier_message) identifier_message )parameters (block (try_statement (block (expression_statement (assignment ...
Updates status and message for Pidgin IM application. `status` Status type. `message` Status message.
(module (function_definition (function_name_extract_message_info) function_name_extract_message_info (parameters )parameters (block (expression_statement (assignment (identifier_base_path) identifier_base_path (call (attribute (identifier_BAS...
Get information about all messages of interest.
(module (function_definition (function_name_check_usrmove) function_name_check_usrmove (parameters (identifier_self) identifier_self (identifier_pkgs) identifier_pkgs )parameters (block (if_statement (comparison_operator (string_'filesystem') string_'filesystem' ...
Test whether the running system implements UsrMove. If the 'filesystem' package is present, it will check that the version is greater than 3. If the package is not present the '/bin' and '/sbin' paths are checked and UsrMove is assumed if both are symbolic links. ...
(module (function_definition (function_name_simultaneous_listen) function_name_simultaneous_listen (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (ide...
This function is called by passive simultaneous nodes who wish to establish themself as such. It sets up a connection to the Rendezvous Server to monitor for new hole punching requests.
(module (function_definition (function_name__set_object_view) function_name__set_object_view (parameters (identifier_self) identifier_self (identifier_session) identifier_session )parameters (block (for_statement (identifier_obj_name) identifier_obj_name (attribute ...
Sets the underlying object views to match current view
(module (function_definition (function_name_uint32_to_uint8) function_name_uint32_to_uint8 (parameters (identifier_cls) identifier_cls (identifier_img) identifier_img )parameters (block (return_statement (call (attribute (identifier_np) identifier_np ...
Cast uint32 RGB image to 4 uint8 channels.
(module (function_definition (function_name_get_endpoint_for_did) function_name_get_endpoint_for_did (parameters (typed_parameter (identifier_wallet_handle) identifier_wallet_handle (type (identifier_int) identifier_int )type )typed_parameter (typed_paramete...
Returns endpoint information for the given DID. :param wallet_handle: Wallet handle (created by open_wallet). :param pool_handle: Pool handle (created by open_pool). :param did: The DID to resolve endpoint. :return: (endpoint, transport_vk)
(module (function_definition (function_name_upgrade) function_name_upgrade (parameters (identifier_self) identifier_self (identifier_conn) identifier_conn (default_parameter (identifier_skip_versions) identifier_skip_versions (tuple )tuple )default_parameter ...
Upgrade the database from the current version to the maximum version in the upgrade scripts. :param conn: a DBAPI 2 connection :param skip_versions: the versions to skip
(module (function_definition (function_name_tparse) function_name_tparse (parameters (identifier_instring) identifier_instring (default_parameter (identifier_lenout) identifier_lenout (identifier__default_len_out) identifier__default_len_out )default_parameter )parameters...
Parse a time string and return seconds past the J2000 epoch on a formal calendar. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/tparse_c.html :param instring: Input time string, UTC. :type instring: str :param lenout: Available space in output error message string. :type lenout: int ...
(module (function_definition (function_name_guess_mode) function_name_guess_mode (parameters (identifier_self) identifier_self (identifier_data) identifier_data )parameters (block (if_statement (comparison_operator (attribute (identifier_data) identifier...
Guess what type of image the np.array is representing
(module (function_definition (function_name_create_endpoint) function_name_create_endpoint (parameters (typed_parameter (identifier_service_name) identifier_service_name (type (identifier_str) identifier_str )type )typed_parameter (keyword_separator )k...
Factory function to create Endpoint object.
(module (function_definition (function_name_validate_card_issue_modes) function_name_validate_card_issue_modes (parameters (typed_parameter (identifier_issue_mode) identifier_issue_mode (type (identifier_int) identifier_int )type )typed_parameter (typed_para...
validate cards against deck_issue modes
(module (function_definition (function_name_update) function_name_update (parameters (identifier_self) identifier_self (default_parameter (identifier_attributes) identifier_attributes (None) None )default_parameter )parameters (block (if_statement (compa...
Updates the resource with attributes.
(module (function_definition (function_name_compat_py2_py3) function_name_compat_py2_py3 (parameters )parameters (block (if_statement (parenthesized_expression (comparison_operator (attribute (identifier_sys) identifier_sys (identifier_ve...
For Python 2, 3 compatibility.
(module (function_definition (function_name_read_meminfo) function_name_read_meminfo (parameters )parameters (block (expression_statement (assignment (identifier_data) identifier_data (dictionary )dictionary )assignment )expression_statement ...
Returns system memory usage information. :returns: The system memory usage. :rtype: dict
(module (function_definition (function_name_cookie_to_state) function_name_cookie_to_state (parameters (identifier_cookie_str) identifier_cookie_str (identifier_name) identifier_name (identifier_encryption_key) identifier_encryption_key )parameters (block (try_statement ...
Loads a state from a cookie :type cookie_str: str :type name: str :type encryption_key: str :rtype: satosa.state.State :param cookie_str: string representation of cookie/s :param name: Name identifier of the cookie :param encryption_key: Key to encrypt the state information :return: A ...
(module (function_definition (function_name_register_archive_format) function_name_register_archive_format (parameters (identifier_name) identifier_name (identifier_function) identifier_function (default_parameter (identifier_extra_args) identifier_extra_args (None) None ...
Registers an archive format. name is the name of the format. function is the callable that will be used to create archives. If provided, extra_args is a sequence of (name, value) tuples that will be passed as arguments to the callable. description can be provided to describe the format, and will be ret...
(module (function_definition (function_name_gen_sites) function_name_gen_sites (parameters (identifier_path) identifier_path )parameters (block (expression_statement (string_" Seek sites by path. ") string_" Seek sites by path. " )expression_statement (for_statement ...
Seek sites by path.
(module (function_definition (function_name_dictionize) function_name_dictionize (parameters (typed_parameter (identifier_fields) identifier_fields (type (identifier_Sequence) identifier_Sequence )type )typed_parameter (typed_parameter (identifier_re...
Create dictionaries mapping fields to record data.
(module (function_definition (function_name_rate) function_name_rate (parameters (identifier_self) identifier_self (identifier_currency) identifier_currency )parameters (block (if_statement (not_operator (attribute (identifier_self) identifier_self ...
Return quotation between the base and another currency
(module (function_definition (function_name_subjects) function_name_subjects (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_subj) identifier_subj (list_comprehension (subscript ...
Return identifiers for all the subjects that are in the cache. :return: list of subject identifiers
(module (function_definition (function_name_delete_auto_scaling_group) function_name_delete_auto_scaling_group (parameters (identifier_self) identifier_self (identifier_name) identifier_name (default_parameter (identifier_force_delete) identifier_force_delete (False) False ...
Deletes the specified auto scaling group if the group has no instances and no scaling activities in progress.
(module (function_definition (function_name_set_size) function_name_set_size (parameters (identifier_self) identifier_self (identifier_size) identifier_size )parameters (block (expression_statement (assignment (identifier_buffer_size) identifier_buffer_size ...
Set the size of the map in pixels This is an expensive operation, do only when absolutely needed. :param size: (width, height) pixel size of camera/view of the group
(module (function_definition (function_name_cleanup_tail) function_name_cleanup_tail (parameters (identifier_options) identifier_options )parameters (block (if_statement (comparison_operator (subscript (attribute (identifier_options) identifier_o...
cleanup the tail of a recovery
(module (function_definition (function_name_get_profile) function_name_get_profile (parameters (identifier_session) identifier_session )parameters (block (try_statement (block (expression_statement (assignment (identifier_profile) identifier_prof...
Get complete profile.
(module (function_definition (function_name_hset) function_name_hset (parameters (identifier_self) identifier_self (identifier_name) identifier_name (identifier_key) identifier_key (identifier_value) identifier_value )parameters (block (return_statement (await ...
Set ``key`` to ``value`` within hash ``name`` Returns 1 if HSET created a new field, otherwise 0
(module (function_definition (function_name_add_module_plugin_filters) function_name_add_module_plugin_filters (parameters (identifier_self) identifier_self (identifier_module_plugin_filters) identifier_module_plugin_filters )parameters (block (expression_statement (assignmen...
Adds `module_plugin_filters` to the internal module filters. May be a single object or an iterable. Every module filters must be a callable and take in a list of plugins and their associated names.
(module (function_definition (function_name_normalize_arxiv_category) function_name_normalize_arxiv_category (parameters (identifier_category) identifier_category )parameters (block (expression_statement (assignment (identifier_category) identifier_category (cal...
Normalize arXiv category to be schema compliant. This properly capitalizes the category and replaces the dash by a dot if needed. If the category is obsolete, it also gets converted it to its current equivalent. Example: >>> from inspire_schemas.utils import normalize_arxiv_category >>...
(module (function_definition (function_name_kitchen_delete) function_name_kitchen_delete (parameters (identifier_backend) identifier_backend (identifier_kitchen) identifier_kitchen )parameters (block (expression_statement (call (attribute (identifier_cli...
Provide the name of the kitchen to delete
(module (function_definition (function_name_verify) function_name_verify (parameters (identifier_self) identifier_self )parameters (block (for_statement (identifier_row) identifier_row (call (identifier_range) identifier_range (argument_list ...
Checks all parameters for invalidating conditions :returns: str -- message if error, 0 otherwise
(module (function_definition (function_name_default_value) function_name_default_value (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_name...
Get the default value of the field.
(module (function_definition (function_name_init_chain) function_name_init_chain (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier__hasinit) identif...
Autodetect the devices attached to the Controller, and initialize a JTAGDevice for each. This is a required call before device specific Primitives can be used.
(module (function_definition (function_name_genes_with_peak) function_name_genes_with_peak (parameters (identifier_self) identifier_self (identifier_peaks) identifier_peaks (default_parameter (identifier_transform_func) identifier_transform_func (None) None )default_par...
Returns a boolean index of genes that have a peak nearby. Parameters ---------- peaks : string or pybedtools.BedTool If string, then assume it's a filename to a BED/GFF/GTF file of intervals; otherwise use the pybedtools.BedTool object directly. transform_func :...
(module (function_definition (function_name__get_state) function_name__get_state (parameters )parameters (block (try_statement (block (return_statement (call (attribute (call (attribute (identifier_...
Returns the state of connman
(module (function_definition (function_name_remove_tag) function_name_remove_tag (parameters (identifier_self) identifier_self (identifier_task) identifier_task (default_parameter (identifier_params) identifier_params (dictionary )dictionary )default_parameter ...
Removes a tag from the task. Returns an empty data block. Parameters ---------- task : {Id} The task to remove a tag from. [data] : {Object} Data for the request - tag : {Id} The tag to remove from the task.
(module (function_definition (function_name_set_number) function_name_set_number (parameters (identifier_self) identifier_self (identifier_key) identifier_key (identifier_value) identifier_value )parameters (block (expression_statement (assignment (identifier_...
set a key's value
(module (function_definition (function_name_on_load) function_name_on_load (parameters (typed_parameter (identifier_target) identifier_target (type (string_"EncryptableMixin") string_"EncryptableMixin" )type )typed_parameter (identifier_context) identifier_c...
Intercept SQLAlchemy's instance load event.
(module (function_definition (function_name_removeCallback) function_name_removeCallback (parameters (identifier_cls) identifier_cls (identifier_eventType) identifier_eventType (identifier_func) identifier_func (default_parameter (identifier_record) identifier_record (N...
Removes a callback from the model's event callbacks. :param eventType: <str> :param func: <callable>
(module (function_definition (function_name_describe_api_stages) function_name_describe_api_stages (parameters (identifier_restApiId) identifier_restApiId (identifier_deploymentId) identifier_deploymentId (default_parameter (identifier_region) identifier_region (None) None ...
Get all API stages for a given apiID and deploymentID CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_stages restApiId deploymentId
(module (function_definition (function_name_log_parameter_and_gradient_statistics) function_name_log_parameter_and_gradient_statistics (parameters (identifier_self) identifier_self (typed_parameter (identifier_model) identifier_model (type (identifier_Model) identifier_Mo...
Send the mean and std of all parameters and gradients to tensorboard, as well as logging the average gradient norm.
(module (function_definition (function_name_has_isotropic_cells) function_name_has_isotropic_cells (parameters (identifier_self) identifier_self )parameters (block (return_statement (boolean_operator (attribute (identifier_self) identifier_self (id...
``True`` if `grid` is uniform and `cell_sides` are all equal. Always ``True`` for 1D partitions. Examples -------- >>> part = uniform_partition([0, -1], [1, 1], (5, 10)) >>> part.has_isotropic_cells True >>> part = uniform_partition([0, -1], [1, 1], (5, 5)) ...
(module (function_definition (function_name__set_proxy_filter) function_name__set_proxy_filter (parameters (identifier_warningstuple) identifier_warningstuple )parameters (block (if_statement (comparison_operator (call (identifier_len) identifier_len ...
set up a proxy that store too long warnings in a separate map
(module (function_definition (function_name_matches_pattern) function_name_matches_pattern (parameters (identifier_self) identifier_self (identifier_other) identifier_other )parameters (block (if_statement (call (identifier_hasattr) identifier_hasattr (arg...
Test if current message match a patterns or template.
(module (function_definition (function_name_Execute) function_name_Execute (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_params) identifier_params )list_splat_pattern (dictionary_splat_pattern (identifier_kw) identifier_kw )dictiona...
Synchronously execute the specified GP task. Parameters are passed in either in order or as keywords.
(module (function_definition (function_name_add_bond) function_name_add_bond (parameters (identifier_self) identifier_self (identifier_name) identifier_name (identifier_ifaces) identifier_ifaces (default_parameter (identifier_bond_mode) identifier_bond_mode (None) None ...
Creates a bonded port. :param name: Port name to be created :param ifaces: List of interfaces containing at least 2 interfaces :param bond_mode: Bonding mode (active-backup, balance-tcp or balance-slb) :param lacp: LACP mode (active, passive or off)
(module (function_definition (function_name__build_install_args) function_name__build_install_args (parameters (identifier_options) identifier_options )parameters (block (expression_statement (assignment (identifier_install_args) identifier_install_args (list ...
Build the arguments to 'python setup.py install' on the setuptools package
(module (function_definition (function_name_delete_content) function_name_delete_content (parameters (identifier_self) identifier_self (default_parameter (identifier_max_chars) identifier_max_chars (integer_100) integer_100 )default_parameter )parameters (block ...
Deletes content in the input field by repeatedly typing HOME, then DELETE @rtype: WebElementWrapper @return: Returns itself
(module (function_definition (function_name_async_from_options) function_name_async_from_options (parameters (identifier_options) identifier_options )parameters (block (expression_statement (assignment (identifier__type) identifier__type (call (attri...
Deserialize an Async or Async subclass from an options dict.
(module (function_definition (function_name_chunks) function_name_chunks (parameters (identifier_iterable) identifier_iterable (default_parameter (identifier_size) identifier_size (integer_100) integer_100 )default_parameter )parameters (block (expression_statem...
Turns the given iterable into chunks of the specified size, which is 100 by default since that's what Telegram uses the most.
(module (function_definition (function_name_write) function_name_write (parameters (identifier_self) identifier_self (identifier_p_todos) identifier_p_todos )parameters (block (expression_statement (assignment (identifier_todofile) identifier_todofile (cal...
Writes all the todo items to the todo.txt file. p_todos can be a list of todo items, or a string that is just written to the file.
(module (function_definition (function_name_createSuperimposedSensorySDRs) function_name_createSuperimposedSensorySDRs (parameters (identifier_sequenceSensations) identifier_sequenceSensations (identifier_objectSensations) identifier_objectSensations )parameters (block (assert_statem...
Given two lists of sensations, create a new list where the sensory SDRs are union of the individual sensory SDRs. Keep the location SDRs from the object. A list of sensations has the following format: [ { 0: (set([1, 5, 10]), set([6, 12, 52]), # location, feature for CC0 }, { 0: (set([5,...
(module (function_definition (function_name_regions) function_name_regions (parameters )parameters (block (return_statement (list (call (identifier_RDSRegionInfo) identifier_RDSRegionInfo (argument_list (keyword_argument (id...
Get all available regions for the RDS service. :rtype: list :return: A list of :class:`boto.rds.regioninfo.RDSRegionInfo`
(module (function_definition (function_name_render) function_name_render (parameters (identifier_self) identifier_self (identifier_namespace) identifier_namespace )parameters (block (return_statement (conditional_expression (call (attribute ...
Render template lines. Note: we only need to parse the namespace if we used variables in this part of the template.
(module (function_definition (function_name_isoformat) function_name_isoformat (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_text) identifier_text (list (call (attribute ...
Generate an ISO 8601 formatted time stamp. Returns: str: `ISO 8601`_ formatted time stamp .. _ISO 8601: http://www.cl.cam.ac.uk/~mgk25/iso-time.html
(module (function_definition (function_name_delete_room) function_name_delete_room (parameters (identifier_room) identifier_room (default_parameter (identifier_reason) identifier_reason (string_'') string_'' )default_parameter )parameters (block (if_statement ...
Deletes a MUC room from the XMPP server.
(module (function_definition (function_name_get_files) function_name_get_files (parameters (identifier_dirname) identifier_dirname )parameters (block (for_statement (identifier_entry) identifier_entry (call (attribute (identifier_os) identifier_os ...
Get iterator of entries in directory. Only allows regular files and directories, no symlinks.
(module (function_definition (function_name__getLayer) function_name__getLayer (parameters (identifier_self) identifier_self (identifier_name) identifier_name (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block ...
name will be a string, but there may not be a layer with a name matching the string. If not, a ``ValueError`` must be raised. Subclasses may override this method.
(module (function_definition (function_name__checkResponseNumberOfRegisters) function_name__checkResponseNumberOfRegisters (parameters (identifier_payload) identifier_payload (identifier_numberOfRegisters) identifier_numberOfRegisters )parameters (block (expression_statement ...
Check that the number of written registers as given in the response is correct. The bytes 2 and 3 (zero based counting) in the payload holds the value. Args: * payload (string): The payload * numberOfRegisters (int): Number of registers that have been written Raises: TypeError, Va...
(module (function_definition (function_name_fetch) function_name_fetch (parameters (identifier_url) identifier_url (identifier_dest) identifier_dest (default_parameter (identifier_force) identifier_force (False) False )default_parameter )parameters (block ...
Retrieve data from an url and store it into dest. Parameters ---------- url: str Link to the remote data dest: str Path where the file must be stored force: bool (default=False) Overwrite if the file exists Returns ------- cached: bool True if the file a...
(module (function_definition (function_name_on_connection_open) function_name_on_connection_open (parameters (identifier_self) identifier_self (identifier_connection) identifier_connection )parameters (block (expression_statement (call (attribute (identi...
This method is called by pika once the connection to RabbitMQ has been established. :type connection: pika.TornadoConnection
(module (function_definition (function_name__call) function_name__call (parameters (identifier_self) identifier_self (identifier_x) identifier_x )parameters (block (expression_statement (assignment (identifier_out) identifier_out (subscript (ca...
Return values at indices, possibly weighted.
(module (function_definition (function_name__next) function_name__next (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment ...
Get the next item in any particular category
(module (function_definition (function_name__connect) function_name__connect (parameters (identifier_self) identifier_self (identifier_hostname) identifier_hostname (identifier_port) identifier_port (default_parameter (identifier_reconnect) identifier_reconnect (False) ...
Connect to IRC host.
(module (function_definition (function_name_add_patchs_to_build_without_pkg_config) function_name_add_patchs_to_build_without_pkg_config (parameters (identifier_self) identifier_self (identifier_lib_dir) identifier_lib_dir (identifier_include_dir) identifier_include_dir )parameters (...
Add patches to remove pkg-config command and rpm.pc part. Replace with given library_path: lib_dir and include_path: include_dir without rpm.pc file.
(module (function_definition (function_name__join_results) function_name__join_results (parameters (identifier_self) identifier_self (identifier_results) identifier_results (identifier_coarse) identifier_coarse (identifier_join) identifier_join )parameters (block (express...
Join a list of results. Supports both get and series.
(module (function_definition (function_name_apply_groups) function_name_apply_groups (parameters (identifier_cls) identifier_cls (identifier_obj) identifier_obj (default_parameter (identifier_options) identifier_options (None) None )default_parameter (default_para...
Applies nested options definition grouped by type. Applies options on an object or nested group of objects, returning a new object with the options applied. This method accepts the separate option namespaces explicitly (i.e 'plot', 'style' and 'norm'). If the options are to be ...
(module (function_definition (function_name_flags) function_name_flags (parameters (identifier_flags) identifier_flags )parameters (block (expression_statement (assignment (identifier_names) identifier_names (call (identifier_sorted) identifier_sorte...
Returns the names of the class description flags found in the given integer :param flags: A class description flag entry :return: The flags names as a single string
(module (function_definition (function_name_log_warn) function_name_log_warn (parameters (identifier_message) identifier_message (identifier_args) identifier_args )parameters (block (expression_statement (call (attribute (call (identifier_g...
Logs a warning message using the default logger.
(module (function_definition (function_name_delete_database) function_name_delete_database (parameters (identifier_client) identifier_client (identifier_db_name) identifier_db_name (default_parameter (identifier_username) identifier_username (None) None )default_paramet...
Delete Arangodb database
(module (function_definition (function_name_addCmdClass) function_name_addCmdClass (parameters (identifier_self) identifier_self (identifier_ctor) identifier_ctor (dictionary_splat_pattern (identifier_opts) identifier_opts )dictionary_splat_pattern )parameters (block ...
Add a Cmd subclass to this cli.
(module (function_definition (function_name_to_python) function_name_to_python (parameters (identifier_value) identifier_value (default_parameter (identifier_seen) identifier_seen (None) None )default_parameter )parameters (block (expression_statement (a...
Reify values to their Python equivalents. Does recursion detection, failing when that happens.
(module (function_definition (function_name_rvs) function_name_rvs (parameters (identifier_df) identifier_df (identifier_gamma) identifier_gamma (identifier_n) identifier_n )parameters (block (if_statement (comparison_operator (call (identifier_typ...
Generates random variables from a Skew t distribution Parameters ---------- df : float degrees of freedom parameter gamma : float skewness parameter n : int or list Number of simulations to perform; if list input, produces array
(module (function_definition (function_name_unload_by_path) function_name_unload_by_path (parameters (identifier_self) identifier_self (identifier_path) identifier_path )parameters (block (expression_statement (assignment (pattern_list (identifier_p) ide...
Unload a module by full path. Dependencies are automatically unloaded if they are marked to be services.
(module (function_definition (function_name__parse_text) function_name__parse_text (parameters (identifier_self) identifier_self (identifier_element_name) identifier_element_name (default_parameter (identifier_namespace) identifier_namespace (string_'') string_'' )defau...
Returns the text, as a string, of the specified element in the specified namespace of the RSS feed. Takes element_name and namespace as strings.
(module (function_definition (function_name_ensure_namespace) function_name_ensure_namespace (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (if_statement (comparison_operator (identifier_name) identifier_name ...
Only creates a namespace if it hasn't yet been defined. :param str name: Name of the namespace. :return ApiNamespace:
(module (function_definition (function_name_reorder_distance) function_name_reorder_distance (parameters (identifier_p_atoms) identifier_p_atoms (identifier_q_atoms) identifier_q_atoms (identifier_p_coord) identifier_p_coord (identifier_q_coord) identifier_q_coord )parameters (...
Re-orders the input atom list and xyz coordinates by atom type and then by distance of each atom from the centroid. Parameters ---------- atoms : array (N,1) matrix, where N is points holding the atoms' names coord : array (N,D) matrix, where N is points and D is dimension Retu...
(module (function_definition (function_name_by_phone) function_name_by_phone (parameters (identifier_self) identifier_self (identifier_phone) identifier_phone (default_parameter (identifier_cc) identifier_cc (None) None )default_parameter )parameters (block ...
Perform a Yelp Phone API Search based on phone number given. Args: phone - Phone number to search by cc - ISO 3166-1 alpha-2 country code. (Optional)
(module (function_definition (function_name_reload) function_name_reload (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (expression_statement (assignment (identifier_data) identifier_data (cal...
Refreshes the file with the data from the server.
(module (function_definition (function_name_save) function_name_save (parameters (identifier_self) identifier_self (identifier_path) identifier_path (default_parameter (identifier_group) identifier_group (None) None )default_parameter )parameters (block (e...
Save array to a Numpy .npy, hdf, or text file. When saving a complex array as text, the real and imaginary parts are saved as the first and second column respectively. When using hdf format, the data is stored as a single vector, along with relevant attributes. Parameters ------...
(module (function_definition (function_name_missed_statements) function_name_missed_statements (parameters (identifier_self) identifier_self (identifier_filename) identifier_filename )parameters (block (expression_statement (assignment (identifier_el) identifier_el ...
Return a list of uncovered line numbers for each of the missed statements found for the file `filename`.
(module (function_definition (function_name_identical) function_name_identical (parameters (identifier_self) identifier_self (identifier_a) identifier_a (identifier_b) identifier_b )parameters (block (return_statement (call (attribute (identifier_s...
This should return whether `a` is identical to `b`. Of course, this isn't always clear. True should mean that it is definitely identical. False eans that, conservatively, it might not be. :param a: an AST :param b: another AST
(module (function_definition (function_name__get_rev) function_name__get_rev (parameters (identifier_self) identifier_self (identifier_fpath) identifier_fpath )parameters (block (expression_statement (assignment (identifier_rev) identifier_rev (None) None ...
Get an SCM version number. Try svn and git.
(module (function_definition (function_name_get_path) function_name_get_path (parameters (identifier_self) identifier_self (identifier_path) identifier_path (default_parameter (identifier_query) identifier_query (None) None )default_parameter )parameters (block ...
Make a GET request, optionally including a query, to a relative path. The path of the request includes a path on top of the base URL assigned to the endpoint. Parameters ---------- path : str The path to request, relative to the endpoint query : DataQuery, o...
(module (function_definition (function_name_data) function_name_data (parameters (identifier_self) identifier_self (identifier_data) identifier_data (default_parameter (identifier_part) identifier_part (False) False )default_parameter (default_parameter (i...
Parse data and update links. Parameters ---------- data Data to parse. part : `bool`, optional True if data is partial (default: `False`). dataset : `str`, optional Dataset key prefix (default: '').
(module (function_definition (function_name_get_prebuilt_targets) function_name_get_prebuilt_targets (parameters (identifier_build_context) identifier_build_context )parameters (block (expression_statement (call (attribute (identifier_logger) identifier_logger...
Return set of target names that are contained within cached base images These targets may be considered "pre-built", and skipped during build.
(module (function_definition (function_name_runWizard) function_name_runWizard (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_plugin) identifier_plugin (call (attribute (id...
Runs the current wizard.
(module (function_definition (function_name_validate_session) function_name_validate_session (parameters (identifier_self) identifier_self (identifier_client) identifier_client (identifier_session) identifier_session )parameters (block (if_statement (identifier_session)...
Validate this session before use with client. Raises error if this session is logged in as a different user or the client is not the one that created the session.
(module (function_definition (function_name__amplitude_bounds) function_name__amplitude_bounds (parameters (identifier_counts) identifier_counts (identifier_bkg) identifier_bkg (identifier_model) identifier_model )parameters (block (if_statement (call (identif...
Compute bounds for the root of `_f_cash_root_cython`. Parameters ---------- counts : `~numpy.ndarray` Count map. bkg : `~numpy.ndarray` Background map. model : `~numpy.ndarray` Source template (multiplied with exposure).
(module (function_definition (function_name_backward) function_name_backward (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier_filt) identifier_filt...
Backward recursion. Upon completion, the following list of length T is available: * smth: marginal smoothing probabilities Note ---- Performs the forward step in case it has not been performed before.
(module (function_definition (function_name_returner) function_name_returner (parameters (identifier_ret) identifier_ret )parameters (block (expression_statement (assignment (identifier_setup) identifier_setup (call (identifier__get_options) identifi...
Check highstate return information and possibly fire off an email or save a file.
(module (function_definition (function_name__Dhcpcd) function_name__Dhcpcd (parameters (identifier_self) identifier_self (identifier_interfaces) identifier_interfaces (identifier_logger) identifier_logger )parameters (block (for_statement (identifier_interface) identifi...
Use dhcpcd to activate the interfaces. Args: interfaces: list of string, the output device names to enable. logger: logger object, used to write to SysLog and serial port.
(module (function_definition (function_name__decode_datetime) function_name__decode_datetime (parameters (identifier_obj) identifier_obj )parameters (block (if_statement (comparison_operator (string_'__datetime__') string_'__datetime__' (identifier_obj) identifi...
Decode a msgpack'ed datetime.
(module (function_definition (function_name__upd_unused) function_name__upd_unused (parameters (identifier_self) identifier_self (identifier_what) identifier_what )parameters (block (expression_statement (assignment (identifier_builder) identifier_builder ...
Make sure to have exactly one copy of every valid function in the "unused" pile on the right. Doesn't read from the database. :param what: a string, 'trigger', 'prereq', or 'action'