sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_get_unique_connection_configs) function_name_get_unique_connection_configs (parameters (default_parameter (identifier_config) identifier_config (None) None )default_parameter )parameters (block (if_statement (compari...
Returns a list of unique Redis connections from config
(module (function_definition (function_name_DropTables) function_name_DropTables (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (pattern_list (identifier_rows) identifier_rows (identifier__) ident...
Drop all existing tables.
(module (function_definition (function_name_addFeedData) function_name_addFeedData (parameters (identifier_self) identifier_self (identifier_name) identifier_name (identifier_items) identifier_items (default_parameter (identifier_seqn) identifier_seqn (None) None ...
Add feed data to the cortex.
(module (function_definition (function_name_plot_wigner_seitz) function_name_plot_wigner_seitz (parameters (identifier_lattice) identifier_lattice (default_parameter (identifier_ax) identifier_ax (None) None )default_parameter (dictionary_splat_pattern (identifi...
Adds the skeleton of the Wigner-Seitz cell of the lattice to a matplotlib Axes Args: lattice: Lattice object ax: matplotlib :class:`Axes` or None if a new figure should be created. kwargs: kwargs passed to the matplotlib function 'plot'. Color defaults to black and linewidth to ...
(module (function_definition (function_name_start_all_linking) function_name_start_all_linking (parameters (identifier_self) identifier_self (identifier_mode) identifier_mode (identifier_group) identifier_group )parameters (block (expression_statement (assignment ...
Put the IM into All-Linking mode. Puts the IM into All-Linking mode for 4 minutes. Parameters: mode: 0 | 1 | 3 | 255 0 - PLM is responder 1 - PLM is controller 3 - Device that initiated All-Linking is Controller 255 = De...
(module (function_definition (function_name_check_output) function_name_check_output (parameters (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )para...
Compatibility wrapper for Python 2.6 missin g subprocess.check_output
(module (function_definition (function_name_update_state) function_name_update_state (parameters (identifier_url) identifier_url (identifier_state_obj) identifier_state_obj )parameters (block (try_statement (block (expression_statement (assignment ...
Update the state of a given model run. The state object is a Json representation of the state as created by the SCO-Server. Throws a ValueError if the resource is unknown or the update state request failed. Parameters ---------- url : string Url to POST mode...
(module (function_definition (function_name_perform) function_name_perform (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_last_value) identifier_last_value (None) None )assignment )exp...
Runs through all of the steps in the chain and runs each of them in sequence. :return: The value from the lat "do" step performed
(module (function_definition (function_name_create_page_from_template) function_name_create_page_from_template (parameters (identifier_template_file) identifier_template_file (identifier_output_path) identifier_output_path )parameters (block (expression_statement (call ...
Copy the correct html template file to the output directory
(module (function_definition (function_name__render_after) function_name__render_after (parameters (identifier_self) identifier_self (identifier_element) identifier_element )parameters (block (if_statement (attribute (identifier_element) identifier_element ...
Render closing tag
(module (function_definition (function_name_add_comes_from) function_name_add_comes_from (parameters (identifier_self) identifier_self (identifier_basic_block) identifier_basic_block )parameters (block (if_statement (comparison_operator (identifier_basic_block) iden...
This simulates a set. Adds the basic_block to the comes_from list if not done already.
(module (function_definition (function_name_get_backup_blocks) function_name_get_backup_blocks (parameters (identifier_cls) identifier_cls (identifier_impl) identifier_impl (identifier_working_dir) identifier_working_dir )parameters (block (expression_statement (assignm...
Get the set of block IDs that were backed up
(module (function_definition (function_name__finalize) function_name__finalize (parameters (identifier_self) identifier_self )parameters (block (expression_statement (string_"Computes _fobj, the completed hash.") string_"Computes _fobj, the completed hash." )expression_statem...
Computes _fobj, the completed hash.
(module (function_definition (function_name__get_shareinfo) function_name__get_shareinfo (parameters (identifier_self) identifier_self (identifier_data_el) identifier_data_el )parameters (block (if_statement (boolean_operator (parenthesized_expression (c...
Simple helper which returns instance of ShareInfo class :param data_el: 'data' element extracted from _make_ocs_request :returns: instance of ShareInfo class
(module (function_definition (function_name_extract) function_name_extract (parameters (identifier_self) identifier_self (identifier_item) identifier_item )parameters (block (expression_statement (assignment (identifier_doc) identifier_doc (call ...
Creates an readability document and returns an ArticleCandidate containing article title and text. :param item: A NewscrawlerItem to parse. :return: ArticleCandidate containing the recovered article data.
(module (function_definition (function_name_stats) function_name_stats (parameters (default_parameter (identifier_syslog_ng_sbin_dir) identifier_syslog_ng_sbin_dir (None) None )default_parameter )parameters (block (try_statement (block (expression_st...
Returns statistics from the running syslog-ng instance. If syslog_ng_sbin_dir is specified, it is added to the PATH during the execution of the command syslog-ng-ctl. CLI Example: .. code-block:: bash salt '*' syslog_ng.stats salt '*' syslog_ng.stats /home/user/install/syslog-ng/sbin
(module (function_definition (function_name___add_dependency) function_name___add_dependency (parameters (identifier_self) identifier_self (identifier_word_instance) identifier_word_instance (identifier_sent_id) identifier_sent_id )parameters (block (expression_statement ...
adds an ingoing dependency relation from the projected head of a token to the token itself.
(module (function_definition (function_name_copy) function_name_copy (parameters (identifier_self) identifier_self )parameters (block (return_statement (call (identifier_Poly) identifier_Poly (argument_list (call (attribute ...
Return a copy of the polynomial.
(module (function_definition (function_name_lower_camel) function_name_lower_camel (parameters (identifier_string) identifier_string (default_parameter (identifier_prefix) identifier_prefix (string_'') string_'' )default_parameter (default_parameter (identifier_...
Generate a camel-case identifier. Useful for unit test methods. Takes a string, prefix, and optional suffix. `prefix` can be set to `''`, though be careful - without a prefix, the function will throw `InvalidIdentifier` when your string starts with a number. Example: >>> lower_camel("...
(module (function_definition (function_name_item_related_name) function_name_item_related_name (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (call (identifier_hasattr) identifier_hasattr (argument_list...
The ManyToMany field on the item class pointing to this class. If there is more than one field, this value will be None.
(module (function_definition (function_name_facter_info) function_name_facter_info (parameters )parameters (block (with_statement (with_clause (with_item (call (identifier_suppress) identifier_suppress (argument_list (iden...
Returns data from facter.
(module (function_definition (function_name__regex_strings) function_name__regex_strings (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_domain) identifier_domain (integer_0) integer_0 )assig...
A property to link into IntentEngine's _regex_strings. Warning: this is only for backwards compatiblility and should not be used if you intend on using domains. Returns: the domains _regex_strings from its IntentEngine
(module (function_definition (function_name__linux_disks) function_name__linux_disks (parameters )parameters (block (expression_statement (assignment (identifier_ret) identifier_ret (dictionary (pair (string_'disks') string_'disks' ...
Return list of disk devices and work out if they are SSD or HDD.
(module (function_definition (function_name_describe_thing_type) function_name_describe_thing_type (parameters (identifier_thingTypeName) identifier_thingTypeName (default_parameter (identifier_region) identifier_region (None) None )default_parameter (default_parameter ...
Given a thing type name describe its properties. Returns a dictionary of interesting properties. .. versionadded:: 2016.11.0 CLI Example: .. code-block:: bash salt myminion boto_iot.describe_thing_type mythingtype
(module (function_definition (function_name_set) function_name_set (parameters (identifier_self) identifier_self (identifier_time) identifier_time )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self ...
Sets time in seconds since Epoch Args: time (:obj:`float`): time in seconds since Epoch (see time.time()) Returns: None
(module (function_definition (function_name_get_correctness) function_name_get_correctness (parameters (identifier_self) identifier_self (identifier_question_id) identifier_question_id )parameters (block (expression_statement (assignment (identifier_response) identi...
get measure of correctness for the question
(module (function_definition (function_name_set_windows_permissions) function_name_set_windows_permissions (parameters (identifier_filename) identifier_filename )parameters (block (if_statement (comparison_operator (attribute (identifier_os) identifier_os ...
At least on windows 7 if a file is created on an Admin account, Other users will not be given execute or full control. However if a user creates the file himself it will work... So just always change permissions after creating a file on windows Change the permissions for Allusers of the application ...
(module (function_definition (function_name__should_proxy) function_name__should_proxy (parameters (identifier_self) identifier_self (identifier_attr) identifier_attr )parameters (block (if_statement (comparison_operator (identifier_attr) identifier_attr (...
Determines whether `attr` should be looked up on the proxied object, or the proxy itself.
(module (function_definition (function_name_slugify) function_name_slugify (parameters (identifier_field_name) identifier_field_name (default_parameter (identifier_slug_field_name) identifier_slug_field_name (None) None )default_parameter (default_parameter (ide...
Class decorator to specify a field to slugify. Slugs are immutable by default unless mutable=True is passed. Usage:: @slugify('title') def Post(Model): title = Column(String(100)) slug = Column(String(100)) # pass a second argument to specify the slug attribute...
(module (function_definition (function_name_raw_incron) function_name_raw_incron (parameters (identifier_user) identifier_user )parameters (block (if_statement (comparison_operator (subscript (identifier___grains__) identifier___grains__ (string_'o...
Return the contents of the user's incrontab CLI Example: .. code-block:: bash salt '*' incron.raw_incron root
(module (function_definition (function_name_execute_callback) function_name_execute_callback (parameters (identifier_self) identifier_self (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_...
Executes a callback and returns the proper response. Refer to :meth:`sijax.Sijax.execute_callback` for more details.
(module (function_definition (function_name_from_xml) function_name_from_xml (parameters (identifier_cls) identifier_cls (identifier_xml_bytes) identifier_xml_bytes )parameters (block (expression_statement (assignment (identifier_root) identifier_root (cal...
Create an instance of this from XML bytes. @param xml_bytes: C{str} bytes of XML to parse @return: an instance of L{MultipartInitiationResponse}
(module (function_definition (function_name_mac_addresses) function_name_mac_addresses (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_mac_addresses) identifier_mac_addresses (list (call ...
Return a list of mac addresses for this device. Computers don't tell you which network device is which.
(module (function_definition (function_name_add) function_name_add (parameters (identifier_self) identifier_self (identifier_key) identifier_key (identifier_metric) identifier_metric (dictionary_splat_pattern (identifier_dims) identifier_dims )dictionary_splat_pattern ...
Adds custom metric instances to the registry with dimensions which are not created with their constructors default arguments
(module (function_definition (function_name_set_weights) function_name_set_weights (parameters (identifier_params) identifier_params (identifier_new_params) identifier_new_params )parameters (block (for_statement (pattern_list (identifier_param) identifier_param ...
Copies parameters from new_params to params :param params: dst parameters :param new_params: src parameters
(module (function_definition (function_name_run_toy_HMC) function_name_run_toy_HMC (parameters (default_parameter (identifier_gpu_id) identifier_gpu_id (None) None )default_parameter )parameters (block (expression_statement (assignment (pattern_list ...
Run HMC on toy dataset
(module (function_definition (function_name_mkdir) function_name_mkdir (parameters (identifier_self) identifier_self (identifier_target_folder) identifier_target_folder )parameters (block (expression_statement (call (attribute (identifier_self) identifie...
Create a folder on S3. Examples -------- >>> s3utils.mkdir("path/to/my_folder") Making directory: path/to/my_folder
(module (function_definition (function_name__hijack_target) function_name__hijack_target (parameters (identifier_self) identifier_self )parameters (block (if_statement (call (attribute (attribute (identifier_self) identifier_self (i...
Replaces the target method on the target object with the proxy method.
(module (function_definition (function_name_edges) function_name_edges (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_canonical_edges) identifier_canonical_edges (call (identifier_set) i...
Edges of this graph, in canonical order.
(module (function_definition (function_name_find_data_files) function_name_find_data_files (parameters (identifier_self) identifier_self (identifier_package) identifier_package (identifier_src_dir) identifier_src_dir )parameters (block (expression_statement (assignment ...
Return filenames for package's data files in 'src_dir
(module (function_definition (function_name_points) function_name_points (parameters (identifier_self) identifier_self (default_parameter (identifier_include_hidden) identifier_include_hidden (False) False )default_parameter )parameters (block (return_statement ...
Return the number of points awarded to this submission.
(module (function_definition (function_name_union) function_name_union (parameters (list_splat_pattern (identifier_sets) identifier_sets )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (bl...
all unique items which occur in any one of the sets Parameters ---------- sets : tuple of indexable objects Returns ------- union of all items in all sets
(module (function_definition (function_name_Forget) function_name_Forget (parameters (identifier_self) identifier_self (identifier_obj) identifier_obj )parameters (block (expression_statement (assignment (identifier_obj) identifier_obj (call (i...
Forget we've seen this object.
(module (function_definition (function_name_set_sleep) function_name_set_sleep (parameters (identifier_minutes) identifier_minutes )parameters (block (expression_statement (assignment (identifier_value) identifier_value (call (identifier__validate_sl...
Sets the amount of idle time until the machine sleeps. Sets the same value for Computer, Display, and Hard Disk. Pass "Never" or "Off" for computers that should never sleep. :param minutes: Can be an integer between 1 and 180 or "Never" or "Off" :ptype: int, str :return: True if successful, False ...
(module (function_definition (function_name_get_host) function_name_get_host (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_host) identifier_host (call (attribute (identifi...
Gets the host name or IP address. :return: the host name or IP address.
(module (function_definition (function_name_login) function_name_login (parameters (identifier_self) identifier_self )parameters (type (identifier_bool) identifier_bool )type (block (expression_statement (assignment (identifier_user_check) identifier_user_ch...
Return True if log in request succeeds
(module (function_definition (function_name__call) function_name__call (parameters (identifier_self) identifier_self (identifier_x) identifier_x (default_parameter (identifier_out) identifier_out (None) None )default_parameter )parameters (block (function_...
Create an interpolator from grid values ``x``. Parameters ---------- x : `Tensor` The array of values to be interpolated out : `FunctionSpaceElement`, optional Element in which to store the interpolator Returns ------- out : `FunctionSpac...
(module (function_definition (function_name_GetDecrypter) function_name_GetDecrypter (parameters (identifier_cls) identifier_cls (identifier_encryption_method) identifier_encryption_method (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern...
Retrieves the decrypter object for a specific encryption method. Args: encryption_method (str): encryption method identifier. kwargs (dict): keyword arguments depending on the decrypter. Returns: Decrypter: decrypter or None if the encryption method does not exists. Raises: Creden...
(module (function_definition (function_name_remove_each) function_name_remove_each (parameters (identifier_text) identifier_text (identifier_items) identifier_items (default_parameter (identifier_count) identifier_count (None) None )default_parameter (default_para...
Like ``remove``, where each occurrence in ``items`` is ``what`` to remove.
(module (function_definition (function_name_delete_library) function_name_delete_library (parameters (identifier_self) identifier_self (identifier_library) identifier_library )parameters (block (expression_statement (assignment (identifier_lib) identifier_lib ...
Delete an Arctic Library, and all associated collections in the MongoDB. Parameters ---------- library : `str` The name of the library. e.g. 'library' or 'user.library'
(module (function_definition (function_name_percent_chance) function_name_percent_chance (parameters (identifier_self) identifier_self (identifier_pct) identifier_pct )parameters (block (if_statement (comparison_operator (identifier_pct) identifier_pct (in...
Given a ``pct``% chance of something happening right now, decide at random whether it actually happens, and return ``True`` or ``False`` as appropriate. Values not between 0 and 100 are treated as though they were 0 or 100, whichever is nearer.
(module (function_definition (function_name_fix_multiclass_predict_proba) function_name_fix_multiclass_predict_proba (parameters (identifier_y_proba) identifier_y_proba (identifier_seen_classes) identifier_seen_classes (identifier_complete_classes) identifier_complete_classes )parameters...
Add missing columns to predict_proba result. When a multiclass classifier is fit on a dataset which only contains a subset of possible classes its predict_proba result only has columns corresponding to seen classes. This function adds missing columns.
(module (function_definition (function_name_admin_tools_render_menu) function_name_admin_tools_render_menu (parameters (identifier_context) identifier_context (default_parameter (identifier_menu) identifier_menu (None) None )default_parameter )parameters (block ...
Template tag that renders the menu, it takes an optional ``Menu`` instance as unique argument, if not given, the menu will be retrieved with the ``get_admin_menu`` function.
(module (function_definition (function_name___attr_index) function_name___attr_index (parameters (identifier_self) identifier_self (typed_parameter (identifier_attribute) identifier_attribute (type (identifier_str) identifier_str )type )typed_parameter )...
Finds an attribute's index in the yaml_node.value list.
(module (function_definition (function_name_get_proc_return_status) function_name_get_proc_return_status (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self ...
Last stored proc result
(module (function_definition (function_name_upload_log_data) function_name_upload_log_data (parameters (identifier_url) identifier_url (identifier_stream_or_file) identifier_stream_or_file (identifier_config) identifier_config )parameters (block (try_statement (block ...
Uploads log data to IOpipe. :param url: The signed URL :param stream_or_file: The log data stream or file :param config: The IOpipe config
(module (function_definition (function_name_simplify) function_name_simplify (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_node) identifier_node (call (attribute (attribut...
Return a simplified expression.
(module (function_definition (function_name_generate_nonce_timestamp) function_name_generate_nonce_timestamp (parameters )parameters (block (global_statement (identifier_count) identifier_count )global_statement (expression_statement (assignment (identifier_...
Generate unique nonce with counter, uuid and rng.
(module (function_definition (function_name__new_theme_part) function_name__new_theme_part (parameters (identifier_cls) identifier_cls (identifier_package) identifier_package )parameters (block (expression_statement (assignment (identifier_partname) identifier_partn...
Create and return a default theme part suitable for use with a notes master.
(module (function_definition (function_name_instance) function_name_instance (parameters )parameters (block (expression_statement (assignment (identifier_start_time) identifier_start_time (call (attribute (identifier_time) identifier_time ...
Creates an EC2 instance from an Ubuntu AMI and configures it as a Django server with nginx + gunicorn
(module (function_definition (function_name_treeWidgetChanged) function_name_treeWidgetChanged (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_ParameterItem) identifier_ParameterItem ...
Called when this item is added or removed from a tree.
(module (function_definition (function_name_remove_output_data_port) function_name_remove_output_data_port (parameters (identifier_self) identifier_self (identifier_data_port_id) identifier_data_port_id (default_parameter (identifier_force) identifier_force (False) False ...
Remove an output data port from the state :param int data_port_id: the id of the output data port to remove :raises exceptions.AttributeError: if the specified input data port does not exist
(module (function_definition (function_name_forward) function_name_forward (parameters (identifier_self) identifier_self (identifier_X) identifier_X )parameters (block (return_statement (binary_operator (call (attribute (call ...
Execute sparse linear layer Args: X: an [n, h] torch.LongTensor containing up to h indices of features whose weights should be looked up and used in a sparse linear multiplication.
(module (function_definition (function_name_create_consumer) function_name_create_consumer (parameters (identifier_self) identifier_self )parameters (block (with_statement (with_clause (with_item (as_pattern (call (attribute ...
Context manager that yields an instance of ``Consumer``.
(module (function_definition (function_name_verify_chain_of_trust) function_name_verify_chain_of_trust (parameters (identifier_chain) identifier_chain )parameters (block (expression_statement (assignment (identifier_log_path) identifier_log_path (call ...
Build and verify the chain of trust. Args: chain (ChainOfTrust): the chain we're operating on Raises: CoTError: on failure
(module (function_definition (function_name_add_route) function_name_add_route (parameters (identifier_self) identifier_self (identifier_handler) identifier_handler (identifier_uri) identifier_uri (default_parameter (identifier_methods) identifier_methods (call ...
A helper method to register class instance or functions as a handler to the application url routes. :param handler: function or class instance :param uri: path of the URL :param methods: list or tuple of methods allowed, these are overridden if using a HT...
(module (function_definition (function_name_confirm_user) function_name_confirm_user (parameters (identifier_query) identifier_query )parameters (block (expression_statement (assignment (identifier_user) identifier_user (call (identifier__query_to_us...
Confirm a user account.
(module (function_definition (function_name_parse_cl_args) function_name_parse_cl_args (parameters (identifier_arg_vector) identifier_arg_vector )parameters (block (expression_statement (assignment (identifier_parser) identifier_parser (call (attribu...
Parses the command line arguments
(module (function_definition (function_name_values_for_column) function_name_values_for_column (parameters (identifier_self) identifier_self (identifier_column_name) identifier_column_name (default_parameter (identifier_limit) identifier_limit (integer_10000) integer_10000 ...
Retrieve some values for the given column
(module (function_definition (function_name_write_register) function_name_write_register (parameters (identifier_self) identifier_self (identifier_address) identifier_address (identifier_value) identifier_value (default_parameter (identifier_skip_encode) identifier_skip_encode ...
Write a modbus register.
(module (function_definition (function_name_ParsePath) function_name_ParsePath (parameters (identifier_path) identifier_path (default_parameter (identifier_opts) identifier_opts (None) None )default_parameter )parameters (block (expression_statement (cal...
Parses given path into a stream of `PathComponent` instances. Args: path: A path to be parsed. opts: An `PathOpts` object. Yields: `PathComponent` instances corresponding to the components of the given path. Raises: ValueError: If path contains more than one recursive component.
(module (function_definition (function_name_VcardFieldsEqual) function_name_VcardFieldsEqual (parameters (identifier_field1) identifier_field1 (identifier_field2) identifier_field2 )parameters (block (expression_statement (assignment (identifier_field1_vals) identif...
Handle comparing vCard fields where inputs are lists of components. Handle parameters? Are any used aside from 'TYPE'? Note: force cast to string to compare sub-objects like Name and Address
(module (function_definition (function_name_unformat) function_name_unformat (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__data) identifi...
Unformat this block device.
(module (function_definition (function_name_register_prefix) function_name_register_prefix (parameters (identifier_self) identifier_self (identifier_path) identifier_path )parameters (block (if_statement (comparison_operator (identifier_path) identifier_path ...
Authorize a path and any subpaths for access by children. Repeat calls with the same path has no effect. :param str path: File path.
(module (function_definition (function_name_editor_example) function_name_editor_example (parameters )parameters (block (expression_statement (assignment (identifier_sensors) identifier_sensors (list (attribute (identifier_Sensors) identifier...
This editor example shows how to interact with holodeck worlds while they are being built in the Unreal Engine. Most people that use holodeck will not need this.
(module (function_definition (function_name_disconnect) function_name_disconnect (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self (identifier_sock) iden...
Disconnect from the Graphite server if connected.
(module (function_definition (function_name_set_up_log) function_name_set_up_log (parameters (identifier_filename) identifier_filename (default_parameter (identifier_verbose) identifier_verbose (True) True )default_parameter )parameters (block (expression_statem...
Set up log This method sets up a basic log. Parameters ---------- filename : str Log file name Returns ------- logging.Logger instance
(module (function_definition (function_name_generate_search_subparser) function_name_generate_search_subparser (parameters (identifier_subparsers) identifier_subparsers )parameters (block (expression_statement (assignment (identifier_parser) identifier_parser (c...
Adds a sub-command parser to `subparsers` to generate search results for a set of n-grams.
(module (function_definition (function_name_can_create_assets) function_name_can_create_assets (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_url_path) identifier_url_path (call (identif...
Tests if this user can create ``Assets``. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating an ``Asset`` will result in a ``PermissionDenied``. This is intended as a hint to an application that may opt not to offer create...
(module (function_definition (function_name_Parse) function_name_Parse (parameters (identifier_self) identifier_self (identifier_stat) identifier_stat (identifier_file_object) identifier_file_object (identifier_knowledge_base) identifier_knowledge_base )parameters (block ...
Parse a ntp config into rdf.
(module (function_definition (function_name_expected_part_size) function_name_expected_part_size (parameters (identifier_self) identifier_self (identifier_part_number) identifier_part_number )parameters (block (expression_statement (assignment (identifier_last_part)...
Get expected part size for a particular part number.
(module (function_definition (function_name__parse_odata_timestamp) function_name__parse_odata_timestamp (parameters (identifier_in_date) identifier_in_date )parameters (block (expression_statement (assignment (identifier_timestamp) identifier_timestamp (call ...
Convert the timestamp received from OData JSON API to a datetime object.
(module (function_definition (function_name__run_and_measure) function_name__run_and_measure (parameters (identifier_self) identifier_self (identifier_quil_program) identifier_quil_program (identifier_qubits) identifier_qubits (identifier_trials) identifier_trials (identifier_ran...
Run a Forest ``run_and_measure`` job. Users should use :py:func:`WavefunctionSimulator.run_and_measure` instead of calling this directly.
(module (function_definition (function_name_mount) function_name_mount (parameters (identifier_self) identifier_self (identifier_prefix) identifier_prefix (identifier_adapter) identifier_adapter )parameters (block (expression_statement (assignment (subscript ...
Registers a connection adapter to a prefix. Adapters are sorted in descending order by prefix length.
(module (function_definition (function_name_hincrbyfloat) function_name_hincrbyfloat (parameters (identifier_self) identifier_self (identifier_hashkey) identifier_hashkey (identifier_attribute) identifier_attribute (default_parameter (identifier_increment) identifier_increment ...
Emulate hincrbyfloat.
(module (function_definition (function_name_add_route) function_name_add_route (parameters (identifier_self) identifier_self (identifier_handler) identifier_handler (identifier_uri) identifier_uri (default_parameter (identifier_methods) identifier_methods (call ...
Create a blueprint route from a function. :param handler: function for handling uri requests. Accepts function, or class instance with a view_class method. :param uri: endpoint at which the route will be accessible. :param methods: list of acceptable HTTP methods. ...
(module (function_definition (function_name_check_perms) function_name_check_perms (parameters (identifier_perms) identifier_perms (identifier_user) identifier_user (identifier_slug) identifier_slug (default_parameter (identifier_raise_exception) identifier_raise_exception ...
a helper user to check if a user has the permissions for a given slug
(module (function_definition (function_name_set_permutation_symmetry) function_name_set_permutation_symmetry (parameters (identifier_force_constants) identifier_force_constants )parameters (block (expression_statement (assignment (identifier_fc_copy) identifier_fc_copy ...
Enforce permutation symmetry to force cosntants by Phi_ij_ab = Phi_ji_ba i, j: atom index a, b: Cartesian axis index This is not necessary for harmonic phonon calculation because this condition is imposed when making dynamical matrix Hermite in dynamical_matrix.py.
(module (function_definition (function_name_export_gpg_key) function_name_export_gpg_key (parameters (identifier_key) identifier_key )parameters (block (expression_statement (assignment (identifier_cmd) identifier_cmd (call (identifier_flatten) ident...
Exports a GPG key and returns it
(module (function_definition (function_name__check_dedup) function_name__check_dedup (parameters (identifier_data) identifier_data )parameters (block (if_statement (boolean_operator (comparison_operator (call (attribute (call ...
Check configuration for de-duplication. Defaults to no de-duplication for RNA-seq and small RNA, the back compatible default. Allow overwriting with explicit `mark_duplicates: true` setting. Also defaults to false for no alignment inputs.
(module (function_definition (function_name_taylor) function_name_taylor (parameters (identifier_fun) identifier_fun (default_parameter (identifier_z0) identifier_z0 (integer_0) integer_0 )default_parameter (default_parameter (identifier_n) identifier_n ...
Return Taylor coefficients of complex analytic function using FFT Parameters ---------- fun : callable function to differentiate z0 : real or complex scalar at which to evaluate the derivatives n : scalar integer, default 1 Number of taylor coefficents to compute. Maximum number is ...
(module (function_definition (function_name_cli) function_name_cli (parameters (identifier_env) identifier_env (identifier_identifier) identifier_identifier )parameters (block (expression_statement (assignment (identifier_mgr) identifier_mgr (call ...
Credential limits for this IBM Cloud Object Storage account.
(module (function_definition (function_name__chunks) function_name__chunks (parameters (identifier_iterable) identifier_iterable (identifier_n) identifier_n )parameters (block (expression_statement (assignment (identifier_iterable) identifier_iterable (cal...
Splits an iterable into chunks of size n.
(module (function_definition (function_name_transform) function_name_transform (parameters (identifier_self) identifier_self (identifier_trans) identifier_trans )parameters (block (expression_statement (assignment (identifier__data) identifier__data (call ...
Return a copy of this neuron with a 3D transformation applied
(module (function_definition (function_name_get_bar_data_from_undetermined) function_name_get_bar_data_from_undetermined (parameters (identifier_self) identifier_self (identifier_flowcells) identifier_flowcells )parameters (block (expression_statement (assignment (i...
Get data to plot for undetermined barcodes.
(module (function_definition (function_name__get_input_args) function_name__get_input_args (parameters (identifier_bam_file) identifier_bam_file (identifier_data) identifier_data (identifier_out_base) identifier_out_base (identifier_background) identifier_background )parameters ...
Retrieve input args, depending on genome build. VerifyBamID2 only handles GRCh37 (1, 2, 3) not hg19, so need to generate a pileup for hg19 and fix chromosome naming.
(module (function_definition (function_name_update_ostree_summary) function_name_update_ostree_summary (parameters (identifier_self) identifier_self (identifier_release) identifier_release )parameters (block (expression_statement (call (attribute (attrib...
Update the ostree summary file and return a path to it
(module (function_definition (function_name_reset) function_name_reset (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier__attempts) identifier...
Reset the attempt counter
(module (function_definition (function_name_value_from_person) function_name_value_from_person (parameters (identifier_self) identifier_self (identifier_array) identifier_array (identifier_role) identifier_role (default_parameter (identifier_default) identifier_default ...
Get the value of ``array`` for the person with the unique role ``role``. ``array`` must have the dimension of the number of persons in the simulation If such a person does not exist, return ``default`` instead The result is a vector which dimension is the number of entities
(module (function_definition (function_name_write_json) function_name_write_json (parameters (identifier_self) identifier_self (identifier_chunk) identifier_chunk (default_parameter (identifier_code) identifier_code (None) None )default_parameter (default_paramete...
A convenient method that binds `chunk`, `code`, `headers` together chunk could be any type of (str, dict, list)