sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_start_compress) function_name_start_compress (parameters (identifier_codec) identifier_codec (identifier_image) identifier_image (identifier_stream) identifier_stream )parameters (block (expression_statement (assignment ...
Wraps openjp2 library function opj_start_compress. Start to compress the current image. Parameters ---------- codec : CODEC_TYPE Compressor handle. image : pointer to ImageType Input filled image. stream : STREAM_TYPE_P Input stream. Raises ------ RuntimeEr...
(module (function_definition (function_name_from_global_id) function_name_from_global_id (parameters (identifier_global_id) identifier_global_id )parameters (block (expression_statement (assignment (identifier_unbased_global_id) identifier_unbased_global_id (cal...
Takes the "global ID" created by toGlobalID, and retuns the type name and ID used to create it.
(module (function_definition (function_name_column_summary_data) function_name_column_summary_data (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_assembled_summary) identifier_assembled_summary (cal...
Returns a dictionary of column name -> value, for cluster-level results
(module (function_definition (function_name_update) function_name_update (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (for_statement (identifier_arg) id...
Update the settings according to the keyword arguments. Args: kwargs: The keyword arguments to set corresponding fields.
(module (function_definition (function_name_count_leases_by_owner) function_name_count_leases_by_owner (parameters (identifier_self) identifier_self (identifier_leases) identifier_leases )parameters (block (expression_statement (assignment (identifier_owners) identi...
Returns a dictionary of leases by current owner.
(module (function_definition (function_name_get_uri) function_name_get_uri (parameters (identifier_self) identifier_self (typed_parameter (identifier_ncname) identifier_ncname (type (identifier_str) identifier_str )type )typed_parameter )parameters (...
Get the URI associated with ncname @param ncname:
(module (function_definition (function_name_guessFormat) function_name_guessFormat (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_c) identifier_c (list_comprehension (call ...
return quality score format - might return several if ambiguous.
(module (function_definition (function_name_set_features) function_name_set_features (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (identifier_scores)...
Creates scorefiles for qvality's target and decoy distributions
(module (function_definition (function_name_gethash) function_name_gethash (parameters (identifier_compiled) identifier_compiled )parameters (block (expression_statement (assignment (identifier_lines) identifier_lines (call (attribute (...
Retrieve a hash from a header.
(module (function_definition (function_name_delete_job) function_name_delete_job (parameters (identifier_job_id) identifier_job_id (identifier_deployment_name) identifier_deployment_name (default_parameter (identifier_token_manager) identifier_token_manager (None) None ...
delete a job with a specific job id
(module (function_definition (function_name_plugins) function_name_plugins (parameters )parameters (block (expression_statement (assignment (identifier_plugins) identifier_plugins (subscript (attribute (identifier_current_app) identifier_curr...
Display some details about the local plugins
(module (function_definition (function_name__check_asset_node_def) function_name__check_asset_node_def (parameters (identifier_node_def) identifier_node_def )parameters (block (if_statement (comparison_operator (attribute (identifier_node_def) identifier_node_...
Raises TypeError if `node_def` does not match the expectations.
(module (function_definition (function_name_get_task_trackers) function_name_get_task_trackers (parameters (default_parameter (identifier_properties) identifier_properties (None) None )default_parameter (default_parameter (identifier_hadoop_conf_dir) identifier_hadoop...
Get the list of task trackers in the Hadoop cluster. Each element in the returned list is in the ``(host, port)`` format. All arguments are passed to :func:`run_class`. If ``offline`` is :obj:`True`, try getting the list of task trackers from the ``slaves`` file in Hadoop's configuration directory (no...
(module (function_definition (function_name_StringIO) function_name_StringIO (parameters (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters ...
StringIO constructor shim for the async wrapper.
(module (function_definition (function_name_setFixedHeight) function_name_setFixedHeight (parameters (identifier_self) identifier_self (identifier_height) identifier_height )parameters (block (expression_statement (call (attribute (call (id...
Sets the fixed height for this bar to the inputed height. :param height | <int>
(module (function_definition (function_name_getTempCortex) function_name_getTempCortex (parameters (default_parameter (identifier_mods) identifier_mods (None) None )default_parameter )parameters (block (with_statement (with_clause (with_item ...
Get a proxy to a cortex backed by a temporary directory. Args: mods (list): A list of modules which are loaded into the cortex. Notes: The cortex and temporary directory are town down on exit. This should only be called from synchronous code. Returns: Proxy to the cortex.
(module (function_definition (function_name__load_attributes) function_name__load_attributes (parameters (identifier_new_class) identifier_new_class )parameters (block (for_statement (pattern_list (identifier_field_name) identifier_field_name (identifier_field_o...
Load list of attributes from declared fields
(module (function_definition (function_name__init_threading) function_name__init_threading (parameters (identifier_self) identifier_self (identifier_function) identifier_function (default_parameter (identifier_params) identifier_params (dictionary )dictionary )d...
Initialize queue and threads :param function: :param params: :param num_threads: :return:
(module (function_definition (function_name_get_configuration) function_name_get_configuration (parameters (identifier_form) identifier_form (identifier_out) identifier_out )parameters (block (expression_statement (assignment (identifier_config) identifier_config ...
Initialize a CGI configuration.
(module (function_definition (function_name__filter_image) function_name__filter_image (parameters (identifier_self) identifier_self (identifier_url) identifier_url )parameters (block (expression_statement (string_"The param is the image URL, which is returned if it passes al...
The param is the image URL, which is returned if it passes all the filters.
(module (function_definition (function_name_inject_trace_header) function_name_inject_trace_header (parameters (identifier_headers) identifier_headers (identifier_entity) identifier_entity )parameters (block (if_statement (not_operator (identifier_entity) identifier...
Extract trace id, entity id and sampling decision from the input entity and inject these information to headers. :param dict headers: http headers to inject :param Entity entity: trace entity that the trace header value generated from.
(module (function_definition (function_name_remove_draft_child) function_name_remove_draft_child (parameters (identifier_self) identifier_self )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier_draft_child) identifier_draft...
Remove the draft child from versioning.
(module (function_definition (function_name_link_head) function_name_link_head (parameters (identifier_self) identifier_self (identifier_node) identifier_node )parameters (block (assert_statement (not_operator (attribute (identifier_node) identifier_node...
Add a node to the head.
(module (function_definition (function_name_close) function_name_close (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_gevent) identifier_gevent (identifier_killall) identifier_kil...
Terminate a bridge session
(module (function_definition (function_name_no_operation) function_name_no_operation (parameters (identifier_self) identifier_self (default_parameter (identifier_onerror) identifier_onerror (None) None )default_parameter )parameters (block (expression_statement ...
Do nothing but send a request to the server.
(module (function_definition (function_name_get_settings) function_name_get_settings (parameters (identifier_all) identifier_all (identifier_key) identifier_key )parameters (block (with_statement (with_clause (with_item (as_pattern (call ...
View Hitman internal settings. Use 'all' for all keys
(module (function_definition (function_name_create_dn_in_filter) function_name_create_dn_in_filter (parameters (identifier_filter_class) identifier_filter_class (identifier_filter_value) identifier_filter_value (identifier_helper) identifier_helper )parameters (block (expressio...
Creates filter object for given class name, and DN values.
(module (function_definition (function_name_control) function_name_control (parameters (identifier_self) identifier_self )parameters (type (generic_type (identifier_Optional) identifier_Optional (type_parameter (type (identifier_HTMLElement) identifier...
Return related HTMLElement object.
(module (function_definition (function_name_MakeUniformPmf) function_name_MakeUniformPmf (parameters (identifier_low) identifier_low (identifier_high) identifier_high (identifier_n) identifier_n )parameters (block (expression_statement (assignment (identifier_...
Make a uniform Pmf. low: lowest value (inclusive) high: highest value (inclusize) n: number of values
(module (function_definition (function_name_colorspace) function_name_colorspace (parameters (identifier_im) identifier_im (default_parameter (identifier_bw) identifier_bw (False) False )default_parameter (default_parameter (identifier_replace_alpha) identifier_...
Convert images to the correct color space. A passive option (i.e. always processed) of this method is that all images (unless grayscale) are converted to RGB colorspace. This processor should be listed before :func:`scale_and_crop` so palette is changed before the image is resized. bw Mak...
(module (function_definition (function_name_hexblock_byte) function_name_hexblock_byte (parameters (identifier_cls) identifier_cls (identifier_data) identifier_data (default_parameter (identifier_address) identifier_address (None) None )default_parameter (default_...
Dump a block of hexadecimal BYTEs from binary data. @type data: str @param data: Binary data. @type address: str @param address: Memory address where the data was read from. @type bits: int @param bits: (Optional) Number of bits of the target architectur...
(module (function_definition (function_name_get_dicts) function_name_get_dicts (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_reader) identifier_reader (call (attribute (id...
Gets dicts in file :return: (generator of) of dicts with data from .csv file
(module (function_definition (function_name_xdifference) function_name_xdifference (parameters (identifier_self) identifier_self (identifier_to) identifier_to )parameters (block (expression_statement (assignment (pattern_list (identifier_x) identifier_x ...
Generator Gives the difference of quadkeys between self and to Generator in case done on a low level Only works with quadkeys of same level
(module (function_definition (function_name_strip_filter) function_name_strip_filter (parameters (identifier_value) identifier_value )parameters (block (if_statement (call (identifier_isinstance) identifier_isinstance (argument_list (identifier_value...
Strips HTML tags from strings according to SANITIZER_ALLOWED_TAGS, SANITIZER_ALLOWED_ATTRIBUTES and SANITIZER_ALLOWED_STYLES variables in settings. Example usage: {% load sanitizer %} {{ post.content|strip_html }}
(module (function_definition (function_name_random) function_name_random (parameters (identifier_game) identifier_game )parameters (block (expression_statement (assignment (attribute (identifier_game) identifier_game (identifier_valid_moves) identi...
Prefers moves randomly. :param Game game: game to play :return: None
(module (function_definition (function_name_wait_for_browser_close) function_name_wait_for_browser_close (parameters (identifier_b) identifier_b )parameters (block (if_statement (identifier_b) identifier_b (block (if_statement (not_operator ...
Can be used to wait until a TBrowser is closed
(module (function_definition (function_name_log_startup_info) function_name_log_startup_info (parameters )parameters (block (expression_statement (call (attribute (identifier_LOG) identifier_LOG (identifier_always) identifier_always )attribute ...
Log info about the current environment.
(module (function_definition (function_name_format_terminal_row) function_name_format_terminal_row (parameters (identifier_headers) identifier_headers (identifier_example_row) identifier_example_row )parameters (block (function_definition (function_name_format_column) functio...
Uses headers and a row of example data to generate a format string for printing a single row of data. Args: headers (tuple of strings): The headers for each column of data example_row (tuple): A representative tuple of strings or ints Returns string: A format string with a size for...
(module (function_definition (function_name___content_type_matches) function_name___content_type_matches (parameters (identifier_self) identifier_self (identifier_content_type) identifier_content_type (identifier_available_content_types) identifier_available_content_types )parameters ...
Check if the given content type matches one of the available content types. Args: content_type (str): The given content type. available_content_types list(str): All the available content types. Returns: bool: True if a match was found, False otherwise.
(module (function_definition (function_name_get_root_repositories) function_name_get_root_repositories (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier_self ...
Gets the root repositories in the repository hierarchy. A node with no parents is an orphan. While all repository ``Ids`` are known to the hierarchy, an orphan does not appear in the hierarchy unless explicitly added as a root node or child of another node. return: (osid.reposi...
(module (function_definition (function_name_derive) function_name_derive (parameters (identifier_self) identifier_self (typed_default_parameter (identifier_new_version) identifier_new_version (type (generic_type (identifier_Union) identifier_Union ...
Inherit the new model from the current one - used for versioning. \ This operation is in-place. :param new_version: The version of the new model. :return: The derived model - self.
(module (function_definition (function_name_connect) function_name_connect (parameters (identifier_host) identifier_host (identifier_port) identifier_port (identifier_username) identifier_username (identifier_password) identifier_password )parameters (block (expression_st...
Connect and login to an FTP server and return ftplib.FTP object.
(module (function_definition (function_name__get_chart_info) function_name__get_chart_info (parameters (identifier_df) identifier_df (identifier_vtype) identifier_vtype (identifier_cat) identifier_cat (identifier_prep) identifier_prep (identifier_callers) identifier_callers )...
Retrieve values for a specific variant type, category and prep method.
(module (function_definition (function_name_list_after) function_name_list_after (parameters (identifier_self) identifier_self (identifier_message_id) identifier_message_id (default_parameter (identifier_limit) identifier_limit (None) None )default_parameter )parame...
Return a page of group messages created after a message. This is used to page forwards through messages. :param str message_id: the ID of a message :param int limit: maximum number of messages per page :return: group messages :rtype: :class:`~groupy.pagers.MessageList`
(module (function_definition (function_name__slice2rows) function_name__slice2rows (parameters (identifier_self) identifier_self (identifier_start) identifier_start (identifier_stop) identifier_stop (default_parameter (identifier_step) identifier_step (None) None ...
Convert a slice to an explicit array of rows
(module (function_definition (function_name__read_repos) function_name__read_repos (parameters (identifier_conf_file) identifier_conf_file (identifier_repos) identifier_repos (identifier_filename) identifier_filename (identifier_regex) identifier_regex )parameters (block ...
Read repos from configuration file
(module (function_definition (function_name__ToJsonName) function_name__ToJsonName (parameters (identifier_name) identifier_name )parameters (block (expression_statement (assignment (identifier_capitalize_next) identifier_capitalize_next (False) False )a...
Converts name to Json name and returns it.
(module (function_definition (function_name_install_time) function_name_install_time (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_time1970) identifier_time1970 (attribute (identifier_s...
Return the install time, or provide an estimate of install time. Installers or even self upgrading software must/should update the date held within InstallDate field when they change versions. Some installers do not set ``InstallDate`` at all so we use the last modified time on the regi...
(module (function_definition (function_name_query) function_name_query (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (attribute (identifier_self) identifier_self (identifier_b64_query) identifier_b64_q...
De-serialize, decode and return an ORM query stored in b64_query.
(module (function_definition (function_name_commit) function_name_commit (parameters (identifier_self) identifier_self (default_parameter (identifier_session) identifier_session (None) None )default_parameter )parameters (block (if_statement (attribute ...
Merge modified objects into parent transaction. Once commited a transaction object is not usable anymore :param:session: current sqlalchemy Session
(module (function_definition (function_name_configure) function_name_configure (parameters (identifier_self) identifier_self (identifier_transport) identifier_transport (identifier_auth) identifier_auth (identifier_address) identifier_address (identifier_port) identifier_port ...
Connect paramiko transport :type auth: :py:class`margaritashotgun.auth.AuthMethods` :param auth: authentication object :type address: str :param address: remote server ip or hostname :type port: int :param port: remote server port :type hostkey: :py:class:`parami...
(module (function_definition (function_name_get_workflow_actions) function_name_get_workflow_actions (parameters (identifier_obj) identifier_obj )parameters (block (function_definition (function_name_translate) function_name_translate (parameters (identifier_id) i...
Compile a list of possible workflow transitions for this object
(module (function_definition (function_name_home) function_name_home (parameters (identifier_self) identifier_self )parameters (type (string_'InstrumentContext') string_'InstrumentContext' )type (block (function_definition (function_name_home_dummy) function_name_home...
Home the robot. :returns: This instance.
(module (function_definition (function_name_combine_inputs) function_name_combine_inputs (parameters (identifier_self) identifier_self (identifier_args) identifier_args (identifier_kw) identifier_kw (identifier_ignore_args) identifier_ignore_args )parameters (block (expre...
Combines the args and kw in a unique way, such that ordering of kwargs does not lead to recompute
(module (function_definition (function_name__ParseIdentifierMappingsTable) function_name__ParseIdentifierMappingsTable (parameters (identifier_self) identifier_self (identifier_parser_mediator) identifier_parser_mediator (identifier_esedb_table) identifier_esedb_table )parameters (bl...
Extracts identifier mappings from the SruDbIdMapTable table. Args: parser_mediator (ParserMediator): mediates interactions between parsers and other components, such as storage and dfvfs. esedb_table (pyesedb.table): table. Returns: dict[int, str]: mapping of numeric identifiers to...
(module (function_definition (function_name_enqueue_data) function_name_enqueue_data (parameters (identifier_self) identifier_self (identifier_event_type) identifier_event_type (identifier_data) identifier_data )parameters (block (with_statement (with_clause (...
Enqueue a data item for specific event type
(module (function_definition (function_name__collapse_to_cwl_record_single) function_name__collapse_to_cwl_record_single (parameters (identifier_data) identifier_data (identifier_want_attrs) identifier_want_attrs (identifier_input_files) identifier_input_files )parameters (block ...
Convert a single sample into a CWL record.
(module (function_definition (function_name_set_string) function_name_set_string (parameters (identifier_self) identifier_self (identifier_option) identifier_option (identifier_value) identifier_value )parameters (block (if_statement (not_operator (call ...
Set a string option. Args: option (str): name of option. value (str): value of the option. Raises: TypeError: Value must be a string.
(module (function_definition (function_name_preprocess_topics) function_name_preprocess_topics (parameters (identifier_source_groupid) identifier_source_groupid (identifier_source_topics) identifier_source_topics (identifier_dest_groupid) identifier_dest_groupid (identifier_topics_dest...
Pre-process the topics in source and destination group for duplicates.
(module (function_definition (function_name_import_file) function_name_import_file (parameters (identifier_self) identifier_self (identifier_filepath) identifier_filepath (identifier_filterindex) identifier_filterindex )parameters (block (expression_statement (call ...
Imports external file Parameters ---------- filepath: String \tPath of import file filterindex: Integer \tIndex for type of file, 0: csv, 1: tab-delimited text file
(module (function_definition (function_name_init_default) function_name_init_default (parameters (identifier_self) identifier_self )parameters (block (import_statement (dotted_name (identifier_f311) identifier_f311 )dotted_name )import_statement (if_st...
Initializes object with its default values Tries to load self.default_filename from default data directory. For safety, filename is reset to None so that it doesn't point to the original file.
(module (function_definition (function_name_get_sequence_rules_by_genus_type) function_name_get_sequence_rules_by_genus_type (parameters (identifier_self) identifier_self (identifier_sequence_rule_genus_type) identifier_sequence_rule_genus_type )parameters (block (expression_statemen...
Gets a ``SequenceRuleList`` corresponding to the given sequence rule genus ``Type`` which does not include sequence rule of genus types derived from the specified ``Type``. arg: sequence_rule_genus_type (osid.type.Type): a sequence rule genus type return: (osid.assessment.authoring.S...
(module (function_definition (function_name_descendants) function_name_descendants (parameters (identifier_self) identifier_self )parameters (block (for_statement (identifier_i) identifier_i (attribute (attribute (identifier_self) identifier_self ...
Recursively return every dataset below current item.
(module (function_definition (function_name_check_type_of_nest_spec_keys_and_values) function_name_check_type_of_nest_spec_keys_and_values (parameters (identifier_nest_spec) identifier_nest_spec )parameters (block (try_statement (block (assert_statement (call ...
Ensures that the keys and values of `nest_spec` are strings and lists. Raises a helpful ValueError if they are. Parameters ---------- nest_spec : OrderedDict, or None, optional. Keys are strings that define the name of the nests. Values are lists of alternative ids, denoting which alter...
(module (function_definition (function_name__update_nonce_explicit) function_name__update_nonce_explicit (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_ne) identifier_ne (binary_operator ...
Increment the explicit nonce while avoiding any overflow.
(module (function_definition (function_name_prepare_destruction) function_name_prepare_destruction (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_self (iden...
Get rid of circular references
(module (function_definition (function_name__expand_to_beam_size) function_name__expand_to_beam_size (parameters (identifier_tensor) identifier_tensor (identifier_beam_size) identifier_beam_size )parameters (block (expression_statement (assignment (identifier_tensor...
Tiles a given tensor by beam_size. Args: tensor: tensor to tile [batch_size, ...] beam_size: How much to tile the tensor by. Returns: Tiled tensor [batch_size, beam_size, ...]
(module (function_definition (function_name_AddShowToTVLibrary) function_name_AddShowToTVLibrary (parameters (identifier_self) identifier_self (identifier_showName) identifier_showName )parameters (block (expression_statement (call (attribute (attribute ...
Add show to TVLibrary table. If the show already exists in the table a fatal error is raised. Parameters ---------- showName : string Show name to add to TV library table. Returns ---------- int Unique show id generated for show when it is added to the table. Used ...
(module (function_definition (function_name_is_step_visible) function_name_is_step_visible (parameters (identifier_self) identifier_self (identifier_step) identifier_step )parameters (block (return_statement (boolean_operator (call (attribute ...
Returns whether the given `step` should be included in the wizard; it is included if either the form is idempotent or not filled in before.
(module (function_definition (function_name_split_cmdline) function_name_split_cmdline (parameters (identifier_cmdline) identifier_cmdline )parameters (block (expression_statement (assignment (pattern_list (identifier_path) identifier_path (identif...
Return path, cmd and arguments for a process cmdline.
(module (function_definition (function_name__get_field_mapping) function_name__get_field_mapping (parameters (identifier_self) identifier_self (identifier_schema) identifier_schema )parameters (block (if_statement (comparison_operator (string_'mapping') string_'mapp...
Get mapping for single field schema. :param schema: field schema
(module (function_definition (function_name_rebuild) function_name_rebuild (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_plugins) identifier_plugins (identifier_init) identifier_...
Clears out all the child widgets from this widget and creates the widget that best matches the column properties for this edit.
(module (function_definition (function_name_load) function_name_load (parameters (identifier_self) identifier_self (identifier_infile) identifier_infile )parameters (block (expression_statement (assignment (identifier_model) identifier_model (call ...
Deserialize a model from a stored file. By default, unpickle an entire object. If `dump` is overridden to use a different storage format, `load` should be as well. :param file outfile: A file-like object from which to retrieve the serialized model.
(module (function_definition (function_name_setmem) function_name_setmem (parameters (identifier_vm_) identifier_vm_ (identifier_memory) identifier_memory (default_parameter (identifier_config) identifier_config (False) False )default_parameter (dictionary_splat_p...
Changes the amount of memory allocated to VM. The VM must be shutdown for this to work. :param vm_: name of the domain :param memory: memory amount to set in MB :param config: if True then libvirt will be asked to modify the config as well :param connection: libvirt connection URI, overriding defau...
(module (function_definition (function_name_in6_getLocalUniquePrefix) function_name_in6_getLocalUniquePrefix (parameters )parameters (block (expression_statement (assignment (identifier_tod) identifier_tod (call (attribute (identifier_time) i...
Returns a pseudo-randomly generated Local Unique prefix. Function follows recommendation of Section 3.2.2 of RFC 4193 for prefix generation.
(module (function_definition (function_name__get_token) function_name__get_token (parameters )parameters (block (expression_statement (assignment (identifier_username) identifier_username (call (attribute (call (attribute ...
Get an auth token
(module (function_definition (function_name_draw) function_name_draw (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (assignment ...
Renders the rfecv curve.
(module (function_definition (function_name_charm_dir) function_name_charm_dir (parameters )parameters (block (expression_statement (assignment (identifier_d) identifier_d (call (attribute (attribute (identifier_os) identifier...
Return the root directory of the current charm
(module (function_definition (function_name_gid_exists) function_name_gid_exists (parameters (identifier_gid) identifier_gid )parameters (block (try_statement (block (expression_statement (call (attribute (identifier_grp) identifi...
Check if a gid exists
(module (function_definition (function_name_create_changelog) function_name_create_changelog (parameters (default_parameter (identifier_project_dir) identifier_project_dir (attribute (identifier_os) identifier_os (identifier_curdir) identifier_curdir )attribut...
Creates the changelog file, if not in a package. :param project_dir: Path to the git repo of the project. :type project_dir: str :param bugtracker_url: Url to the bug tracker for the issues. :type bugtracker_url: str :param rpm_format: if set to True, will make the changelog rpm-compatible. :ty...
(module (function_definition (function_name_track) function_name_track (parameters (list_splat_pattern (identifier_fields) identifier_fields )list_splat_pattern )parameters (block (function_definition (function_name_inner) function_name_inner (parameters ...
Decorator used to track changes on Model's fields. :Example: >>> @track('name') ... class Human(models.Model): ... name = models.CharField(max_length=30)
(module (function_definition (function_name_master_pub) function_name_master_pub (parameters (identifier_self) identifier_self )parameters (block (return_statement (call (identifier__get_master_uri) identifier__get_master_uri (argument_list (subscrip...
Return the master publish port
(module (function_definition (function_name_get_all_current_trains) function_name_get_all_current_trains (parameters (identifier_self) identifier_self (default_parameter (identifier_train_type) identifier_train_type (None) None )default_parameter (default_parameter ...
Returns all trains that are due to start in the next 10 minutes @param train_type: ['mainline', 'suburban', 'dart']
(module (function_definition (function_name_safe_version) function_name_safe_version (parameters (identifier_version) identifier_version )parameters (block (try_statement (block (return_statement (call (identifier_str) identifier_str ...
Convert an arbitrary string to a standard version string
(module (function_definition (function_name_tiles_are_equal) function_name_tiles_are_equal (parameters (identifier_tile_data_1) identifier_tile_data_1 (identifier_tile_data_2) identifier_tile_data_2 (identifier_fmt) identifier_fmt )parameters (block (if_statement (boole...
Returns True if the tile data is equal in tile_data_1 and tile_data_2. For most formats, this is a simple byte-wise equality check. For zipped metatiles, we need to check the contents, as the zip format includes metadata such as timestamps and doesn't control file ordering.
(module (function_definition (function_name_where) function_name_where (parameters (identifier_self) identifier_self (identifier_predicate) identifier_predicate )parameters (block (if_statement (call (attribute (identifier_self) identifier_self ...
Filters elements according to whether they match a predicate. Note: This method uses deferred execution. Args: predicate: A unary function which is applied to each element in the source sequence. Source elements for which the predicate returns True will be p...
(module (function_definition (function_name_watch) function_name_watch (parameters (identifier_self) identifier_self (identifier_selector) identifier_selector (identifier_callback) identifier_callback )parameters (block (if_statement (comparison_operator (iden...
Call a function whenever a stream changes. Args: selector (DataStreamSelector): The selector to watch. If this is None, it is treated as a wildcard selector that matches every stream. callback (callable): The function to call when a new re...
(module (function_definition (function_name_sign_statement) function_name_sign_statement (parameters (identifier_self) identifier_self (identifier_statement) identifier_statement (identifier_node_name) identifier_node_name (default_parameter (identifier_key) identifier_key ...
Sign a SAML statement. :param statement: The statement to be signed :param node_name: string like 'urn:oasis:names:...:Assertion' :param key: The key to be used for the signing, either this or :param key_file: The file where the key can be found :param node_id: :param id...
(module (function_definition (function_name_load) function_name_load (parameters (identifier_self) identifier_self (identifier_data) identifier_data (default_parameter (identifier_many) identifier_many (None) None )default_parameter (default_parameter (ide...
Deserialize a data structure to an object.
(module (function_definition (function_name_post_build) function_name_post_build (parameters (identifier_self) identifier_self (identifier_pkt) identifier_pkt (identifier_pay) identifier_pay )parameters (block (if_statement (comparison_operator (attribute ...
This will set the ByteField 'length' to the correct value.
(module (function_definition (function_name_bar) function_name_bar (parameters (typed_parameter (identifier_h) identifier_h (type (identifier_Histogram2D) identifier_Histogram2D )type )typed_parameter (keyword_separator )keyword_separator (typed_...
Bar plot. Parameters ---------- alpha: Opacity (0.0 - 1.0) barmode : "overlay" | "group" | "stack"
(module (function_definition (function_name_mkdir) function_name_mkdir (parameters (identifier_self) identifier_self (identifier_pathobj) identifier_pathobj (identifier__) identifier__ )parameters (block (if_statement (boolean_operator (not_operator ...
Creates remote directory Note that this operation is not recursive
(module (function_definition (function_name__query_select_options) function_name__query_select_options (parameters (identifier_self) identifier_self (identifier_query) identifier_query (default_parameter (identifier_select_columns) identifier_select_columns (None) None ...
Add select load options to query. The goal is to only SQL select what is requested :param query: SQLAlchemy Query obj :param select_columns: (list) of columns :return: SQLAlchemy Query obj
(module (function_definition (function_name_put_cache) function_name_put_cache (parameters (identifier_self) identifier_self (identifier_minions) identifier_minions )parameters (block (expression_statement (call (attribute (attribute (ident...
published the given minions to the ConCache
(module (function_definition (function_name_coarse_grain) function_name_coarse_grain (parameters (identifier_G) identifier_G (identifier_ncg) identifier_ncg )parameters (block (if_statement (comparison_operator (identifier_ncg) identifier_ncg (integer_1) i...
Coarse-grain last index of array ``G``. Bin the last index of array ``G`` in bins of width ``ncg``, and replace each bin by its average. Return the binned results. Args: G: Array to be coarse-grained. ncg: Bin width for coarse-graining.
(module (function_definition (function_name_check_bidi) function_name_check_bidi (parameters (identifier_chars) identifier_chars )parameters (block (if_statement (not_operator (identifier_chars) identifier_chars )not_operator (block (return_state...
Check proper bidirectionality as per stringprep. Operates on a list of unicode characters provided in `chars`.
(module (function_definition (function_name__add_finder) function_name__add_finder (parameters (identifier_importer) identifier_importer (identifier_finder) identifier_finder )parameters (block (expression_statement (assignment (identifier_existing_finder) identifie...
Register a new pkg_resources path finder that does not replace the existing finder.
(module (function_definition (function_name_grid_reload_from_ids) function_name_grid_reload_from_ids (parameters (identifier_oargrid_jobids) identifier_oargrid_jobids )parameters (block (expression_statement (assignment (identifier_gk) identifier_gk (call ...
Reload all running or pending jobs of Grid'5000 from their ids Args: oargrid_jobids (list): list of ``(site, oar_jobid)`` identifying the jobs on each site Returns: The list of python-grid5000 jobs retrieved
(module (function_definition (function_name_list_files) function_name_list_files (parameters (identifier_start_path) identifier_start_path )parameters (block (expression_statement (assignment (identifier_s) identifier_s (string_u'\n') string_u'\n' )assig...
tree unix command replacement.
(module (function_definition (function_name_remove_gaps) function_name_remove_gaps (parameters (identifier_A) identifier_A (identifier_B) identifier_B )parameters (block (expression_statement (assignment (pattern_list (identifier_a_seq) identifier_a_seq ...
skip column if either is a gap