sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_token) function_name_token (parameters (identifier_name) identifier_name )parameters (block (function_definition (function_name_wrap) function_name_wrap (parameters (identifier_f) identifier_f )parameters ...
Marker for a token :param str name: Name of tokenizer
(module (function_definition (function_name_complement) function_name_complement (parameters (identifier_color) identifier_color )parameters (block (expression_statement (identifier_r) identifier_r )expression_statement (expression_statement (assignment ...
r"""Calculates polar opposite of color This isn't guaranteed to look good >_> (especially with brighter, higher intensity colors.) This will be replaced with a formula that produces better looking colors in the future. >>> complement('red') (0, 255, 76) >>> complement((0, 100, 175)) (175, ...
(module (function_definition (function_name_all) function_name_all (parameters (identifier_self) identifier_self (identifier_value) identifier_value (default_parameter (identifier_pos) identifier_pos (None) None )default_parameter )parameters (block (expre...
Return True if one or many bits are all set to value. value -- If value is True then checks for bits set to 1, otherwise checks for bits set to 0. pos -- An iterable of bit positions. Negative numbers are treated in the same way as slice indices. Defaults to the whole bi...
(module (function_definition (function_name_toggle_bit) function_name_toggle_bit (parameters (identifier_self) identifier_self (typed_parameter (identifier_position) identifier_position (type (identifier_int) identifier_int )type )typed_parameter )parame...
Toggles the value at position :param position: integer between 0 and 7, inclusive :return: None
(module (function_definition (function_name_get_tmp_file) function_name_get_tmp_file (parameters (default_parameter (identifier_dir) identifier_dir (None) None )default_parameter )parameters (block (expression_statement (string_"Create and return a tmp filenam...
Create and return a tmp filename, optionally at a specific path. `os.remove` when done with it.
(module (function_definition (function_name_create) function_name_create (parameters (identifier_cls) identifier_cls (identifier_zmq_context) identifier_zmq_context (identifier_endpoint) identifier_endpoint )parameters (block (expression_statement (assignment ...
Create new client transport. Instead of creating the socket yourself, you can call this function and merely pass the :py:class:`zmq.core.context.Context` instance. By passing a context imported from :py:mod:`zmq.green`, you can use green (gevent) 0mq sockets as well. :param zm...
(module (function_definition (function_name_wait_all) function_name_wait_all (parameters (identifier_jobs) identifier_jobs (default_parameter (identifier_timeout) identifier_timeout (None) None )default_parameter )parameters (block (return_statement (cal...
Return when at all of the specified jobs have completed or timeout expires. Args: jobs: a Job or list of Jobs to wait on. timeout: a timeout in seconds to wait for. None (the default) means no timeout. Returns: A list of the jobs that have now completed or None if there were no jobs.
(module (function_definition (function_name_cursor_async) function_name_cursor_async (parameters (identifier_self) identifier_self )parameters (block (expression_statement (await (call (attribute (identifier_self) identifier_self (i...
Acquire async cursor.
(module (function_definition (function_name_on_excepthandler) function_name_on_excepthandler (parameters (identifier_self) identifier_self (identifier_node) identifier_node )parameters (block (return_statement (tuple (call (attribute (ident...
Exception handler...
(module (function_definition (function_name_rename) function_name_rename (parameters (identifier_self) identifier_self (identifier_new_name) identifier_new_name (default_parameter (identifier_range) identifier_range (None) None )default_parameter )parameters (bl...
Request a rename to the server.
(module (function_definition (function_name__get_upserts_distinct) function_name__get_upserts_distinct (parameters (identifier_queryset) identifier_queryset (identifier_model_objs_updated) identifier_model_objs_updated (identifier_model_objs_created) identifier_model_objs_created (iden...
Given a list of model objects that were updated and model objects that were created, fetch the pks of the newly created models and return the two lists in a tuple
(module (function_definition (function_name__initialize_application) function_name__initialize_application (parameters )parameters (block (expression_statement (assignment (attribute (identifier_RuntimeGlobals) identifier_RuntimeGlobals (identifier_appli...
Initializes the Application.
(module (function_definition (function_name_delete) function_name_delete (parameters (identifier_self) identifier_self (identifier_port) identifier_port (default_parameter (identifier_qos_policy) identifier_qos_policy (None) None )default_parameter )parameters (...
Remove QoS rules from port. :param port: port object. :param qos_policy: the QoS policy to be removed from port.
(module (function_definition (function_name_get_attention) function_name_get_attention (parameters (typed_parameter (identifier_config) identifier_config (type (identifier_AttentionConfig) identifier_AttentionConfig )type )typed_parameter (typed_parameter ...
Returns an Attention instance based on attention_type. :param config: Attention configuration. :param max_seq_len: Maximum length of source sequences. :param prefix: Name prefix. :return: Instance of Attention.
(module (function_definition (function_name_imagedatadict_to_ndarray) function_name_imagedatadict_to_ndarray (parameters (identifier_imdict) identifier_imdict )parameters (block (expression_statement (assignment (identifier_arr) identifier_arr (subscript ...
Converts the ImageData dictionary, imdict, to an nd image.
(module (function_definition (function_name_read_feather) function_name_read_feather (parameters (identifier_path) identifier_path (default_parameter (identifier_columns) identifier_columns (None) None )default_parameter (default_parameter (identifier_use_thread...
Load a feather-format object from the file path .. versionadded 0.20.0 Parameters ---------- path : string file path, or file-like object columns : sequence, default None If not provided, all columns are read .. versionadded 0.24.0 nthreads : int, default 1 Number of C...
(module (function_definition (function_name__remove_data_dir_path) function_name__remove_data_dir_path (parameters (identifier_self) identifier_self (default_parameter (identifier_inp) identifier_inp (None) None )default_parameter )parameters (block (if_statemen...
Remove the data directory path from filenames
(module (function_definition (function_name_rand_block) function_name_rand_block (parameters (identifier_minimum) identifier_minimum (identifier_scale) identifier_scale (default_parameter (identifier_maximum) identifier_maximum (integer_1) integer_1 )default_parameter ...
block current thread at random pareto time ``minimum < block < 15`` and return the sleep time ``seconds`` :param minimum: :type minimum: :param scale: :type scale: :param slow_mode: a tuple e.g.(2, 5) :type slow_mode: tuple :return:
(module (function_definition (function_name_has_chosen) function_name_has_chosen (parameters (identifier_state) identifier_state (identifier_correct) identifier_correct (identifier_msgs) identifier_msgs )parameters (block (expression_statement (assignment (ide...
Verify exercises of the type MultipleChoiceExercise Args: state: State instance describing student and solution code. Can be omitted if used with Ex(). correct: index of correct option, where 1 is the first option. msgs : list of feedback messages corresponding to each option. ...
(module (function_definition (function_name_main) function_name_main (parameters )parameters (block (if_statement (boolean_operator (boolean_operator (comparison_operator (string_"--help") string_"--help" (attribute (ident...
Command line entry point for dcal.
(module (function_definition (function_name_from_taxtable) function_name_from_taxtable (parameters (identifier_cls) identifier_cls (identifier_taxtable_fp) identifier_taxtable_fp )parameters (block (expression_statement (assignment (identifier_r) identifier_r ...
Generate a node from an open handle to a taxtable, as generated by ``taxit taxtable``
(module (function_definition (function_name_save) function_name_save (parameters (identifier_self) identifier_self (default_parameter (identifier_db) identifier_db (None) None )default_parameter )parameters (block (expression_statement (assignment ...
If object has _id, then object will be created or fully rewritten. If not, object will be inserted and _id will be assigned.
(module (function_definition (function_name__do_help) function_name__do_help (parameters (identifier_self) identifier_self (identifier_cmd) identifier_cmd (identifier_args) identifier_args )parameters (block (expression_statement (call (identifier_print) ident...
Display doc strings of the shell and its commands.
(module (function_definition (function_name_order_target_value) function_name_order_target_value (parameters (identifier_self) identifier_self (identifier_asset) identifier_asset (identifier_target) identifier_target (default_parameter (identifier_limit_price) identifier_limit_...
Place an order to adjust a position to a target value. If the position doesn't already exist, this is equivalent to placing a new order. If the position does exist, this is equivalent to placing an order for the difference between the target value and the current value. If the As...
(module (function_definition (function_name_export_xlsx) function_name_export_xlsx (parameters (identifier_self) identifier_self (identifier_key) identifier_key )parameters (block (expression_statement (assignment (identifier_spreadsheet_file) identifier_spreadsheet...
Download xlsx version of spreadsheet.
(module (function_definition (function_name__get_ssh_config) function_name__get_ssh_config (parameters (default_parameter (identifier_config_path) identifier_config_path (string_'~/.ssh/config') string_'~/.ssh/config' )default_parameter )parameters (block (expression_...
Extract the configuration located at ``config_path``. Returns: paramiko.SSHConfig: the configuration instance.
(module (function_definition (function_name_load_gffutils_db) function_name_load_gffutils_db (parameters (identifier_f) identifier_f )parameters (block (import_statement (dotted_name (identifier_gffutils) identifier_gffutils )dotted_name )import_statement ...
Load database for gffutils. Parameters ---------- f : str Path to database. Returns ------- db : gffutils.FeatureDB gffutils feature database.
(module (function_definition (function_name_write) function_name_write (parameters (identifier_self) identifier_self (identifier_data) identifier_data )parameters (block (if_statement (comparison_operator (call (identifier_type) identifier_type ...
Writes a chunk of data to the streaming response. :param data: bytes-ish data to be written.
(module (function_definition (function_name_sanitize_html) function_name_sanitize_html (parameters (identifier_value) identifier_value (default_parameter (identifier_valid_tags) identifier_valid_tags (identifier_VALID_TAGS) identifier_VALID_TAGS )default_parameter (defa...
Strips unwanted markup out of HTML.
(module (function_definition (function_name_escape) function_name_escape (parameters (identifier_text) identifier_text (default_parameter (identifier_newline) identifier_newline (False) False )default_parameter )parameters (block (if_statement (call ...
Escape special html characters.
(module (function_definition (function_name_cancelled) function_name_cancelled (parameters (identifier_self) identifier_self )parameters (block (return_statement (boolean_operator (comparison_operator (attribute (identifier_self) identifier_self ...
Return whether this future was successfully cancelled.
(module (function_definition (function_name__padding) function_name__padding (parameters (identifier_self) identifier_self (identifier_image) identifier_image (identifier_geometry) identifier_geometry (identifier_options) identifier_options )parameters (block (expression_...
Pads the image
(module (function_definition (function_name___execute_bisz) function_name___execute_bisz (parameters (identifier_self) identifier_self (identifier_instr) identifier_instr )parameters (block (expression_statement (assignment (identifier_op0_val) identifier_op0_val ...
Execute BISZ instruction.
(module (function_definition (function_name_getJson) function_name_getJson (parameters (identifier_cls) identifier_cls (identifier_url) identifier_url (default_parameter (identifier_method) identifier_method (string_'GET') string_'GET' )default_parameter (default_...
Fetch a JSON result via HTTP
(module (function_definition (function_name_set_PLOS_2column_fig_style) function_name_set_PLOS_2column_fig_style (parameters (identifier_self) identifier_self (default_parameter (identifier_ratio) identifier_ratio (integer_1) integer_1 )default_parameter )parameters (...
figure size corresponding to Plos 2 columns
(module (function_definition (function_name_queue) function_name_queue (parameters (identifier_p_queue) identifier_p_queue (default_parameter (identifier_host) identifier_host (None) None )default_parameter )parameters (block (if_statement (comparison_op...
Construct a path to the queue dir for a queue
(module (function_definition (function_name___expr_str) function_name___expr_str (parameters (identifier_cls) identifier_cls (identifier_expr) identifier_expr (identifier_level) identifier_level )parameters (block (expression_statement (assignment (identifier_...
Returns string representing the expression.
(module (function_definition (function_name_next_frame_l2) function_name_next_frame_l2 (parameters )parameters (block (expression_statement (assignment (identifier_hparams) identifier_hparams (call (identifier_next_frame_basic_deterministic) identifier_nex...
Basic conv model with L2 modality.
(module (function_definition (function_name__dedup_index) function_name__dedup_index (parameters (identifier_self) identifier_self (identifier_df_a) identifier_df_a )parameters (block (expression_statement (assignment (identifier_pairs) identifier_pairs (c...
Build an index for deduplicating a dataset. Parameters ---------- df_a : (tuple of) pandas.Series The data of the DataFrame to build the index with. Returns ------- pandas.MultiIndex A pandas.MultiIndex with record pairs. Each record pair ...
(module (function_definition (function_name_join_sources) function_name_join_sources (parameters (typed_parameter (identifier_source_module) identifier_source_module (type (identifier_DeploymentModule) identifier_DeploymentModule )type )typed_parameter (type...
Use join-contracts.py to concatenate all imported Solidity files. Args: source_module: a module name to look up contracts_source_path() contract_name: 'TokenNetworkRegistry', 'SecretRegistry' etc.
(module (function_definition (function_name_debug) function_name_debug (parameters (identifier_method) identifier_method )parameters (block (function_definition (function_name_new_method) function_name_new_method (parameters (list_splat_pattern (identi...
Decorator to debug the given method
(module (function_definition (function_name_memoize) function_name_memoize (parameters (identifier_fun) identifier_fun )parameters (block (expression_statement (assignment (identifier_argspec) identifier_argspec (call (attribute (identi...
Memoizes return values of the decorated function. Similar to l0cache, but the cache persists for the duration of the process, unless clear_cache() is called on the function.
(module (function_definition (function_name_delete) function_name_delete (parameters (identifier_ids) identifier_ids (identifier_yes) identifier_yes )parameters (block (expression_statement (assignment (identifier_failures) identifier_failures (False) Fals...
Delete datasets.
(module (function_definition (function_name_extract_formats) function_name_extract_formats (parameters (identifier_config_handle) identifier_config_handle )parameters (block (expression_statement (assignment (identifier_configurations) identifier_configurations ...
Get application formats. See :class:`gogoutils.Formats` for available options. Args: config_handle (configparser.ConfigParser): Instance of configurations. Returns: dict: Formats in ``{$format_type: $format_pattern}``.
(module (function_definition (function_name_get) function_name_get (parameters (identifier_self) identifier_self (identifier_slug) identifier_slug )parameters (block (expression_statement (assignment (identifier_kb) identifier_kb (call (attribu...
Get KnwKB. Url parameters: - from: filter "mappings from" - to: filter "mappings to" - page - per_page - match_type: s=substring, e=exact, sw=startswith - sortby: 'from' or 'to'
(module (function_definition (function_name_create_shot) function_name_create_shot (parameters (identifier_self) identifier_self (identifier_sequence) identifier_sequence )parameters (block (expression_statement (assignment (identifier_dialog) identifier_dialog ...
Create and return a new shot :param sequence: the sequence for the shot :type sequence: :class:`jukeboxcore.djadapter.models.Sequence` :returns: The created shot or None :rtype: None | :class:`jukeboxcore.djadapter.models.Shot` :raises: None
(module (function_definition (function_name_from_charmm) function_name_from_charmm (parameters (identifier_cls) identifier_cls (identifier_path) identifier_path (default_parameter (identifier_positions) identifier_positions (None) None )default_parameter (default_...
Loads PSF Charmm structure from `path`. Requires `charmm_parameters`. Parameters ---------- path : str Path to PSF file forcefield : list of str Paths to Charmm parameters files, such as *.par or *.str. REQUIRED Returns ------- psf : Syst...
(module (function_definition (function_name_rawselect) function_name_rawselect (parameters (typed_parameter (identifier_message) identifier_message (type (identifier_Text) identifier_Text )type )typed_parameter (typed_parameter (identifier_choices) i...
Ask the user to select one item from a list of choices using shortcuts. The user can only select one option. Args: message: Question text choices: Items shown in the selection, this can contain `Choice` or or `Separator` objects or simple items as strings. Pass...
(module (function_definition (function_name_parse_date) function_name_parse_date (parameters (identifier_value) identifier_value )parameters (block (if_statement (not_operator (identifier_value) identifier_value )not_operator (block (return_state...
Attempts to parse `value` into an instance of ``datetime.date``. If `value` is ``None``, this function will return ``None``. Args: value: A timestamp. This can be a string, datetime.date, or datetime.datetime value.
(module (function_definition (function_name_configure_error_handlers) function_name_configure_error_handlers (parameters (identifier_app) identifier_app )parameters (block (function_definition (function_name_render_error) function_name_render_error (parameters (id...
Configure application error handlers
(module (function_definition (function_name_get_renderers) function_name_get_renderers (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_renderers) identifier_renderers (call (attribute ...
Optionally block Browsable API rendering.
(module (function_definition (function_name_create_account) function_name_create_account (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement ...
Create a new root account. :calls: `POST /api/v1/accounts \ <https://canvas.instructure.com/doc/api/accounts.html#method.accounts.create>`_ :rtype: :class:`canvasapi.account.Account`
(module (function_definition (function_name_pull) function_name_pull (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_repo_root) identifier_repo_root (attribute (identifier_settings) ident...
Pull from the origin.
(module (function_definition (function_name_check_smart_storage_config_ids) function_name_check_smart_storage_config_ids (parameters (identifier_self) identifier_self )parameters (block (if_statement (comparison_operator (attribute (identifier_self) identifier...
Check SmartStorageConfig controllers is there in hardware. :raises: IloError, on an error from iLO.
(module (function_definition (function_name_detect_interval) function_name_detect_interval (parameters (identifier_self) identifier_self (default_parameter (identifier_min_head_length) identifier_min_head_length (None) None )default_parameter (default_parameter ...
Detect the interval of the audio file containing the fragments in the text file. Return the audio interval as a tuple of two :class:`~aeneas.exacttiming.TimeValue` objects, representing the begin and end time, in seconds, with respect to the full wave duration. If one o...
(module (function_definition (function_name_login_required) function_name_login_required (parameters (identifier_func) identifier_func )parameters (block (decorated_definition (decorator (call (identifier_wraps) identifier_wraps (argument_list ...
When applied to a view function, any unauthenticated requests will be redirected to the view named in LDAP_LOGIN_VIEW. Authenticated requests do NOT require membership from a specific group. The login view is responsible for asking for credentials, checking them, and setting ``flask.g.u...
(module (function_definition (function_name_rsync_git) function_name_rsync_git (parameters (identifier_local_path) identifier_local_path (identifier_remote_path) identifier_remote_path (default_parameter (identifier_exclude) identifier_exclude (None) None )default_param...
Rsync deploy a git repo. Write and compare version.txt
(module (function_definition (function_name_wrap) function_name_wrap (parameters (identifier_tensor) identifier_tensor (default_parameter (identifier_books) identifier_books (None) None )default_parameter (default_parameter (identifier_tensor_shape) identifier_t...
Creates an input layer representing the given tensor. Args: tensor: The tensor. books: The bookkeeper; this is usually not required unless you are building multiple `tf.Graphs.` tensor_shape: An optional shape that will be set on the Tensor or verified to match the tensor. Returns: A la...
(module (function_definition (function_name__build_schema) function_name__build_schema (parameters (identifier_self) identifier_self (identifier_s) identifier_s )parameters (block (expression_statement (assignment (identifier_w) identifier_w (call ...
Recursive schema builder, called by `json_schema`.
(module (function_definition (function_name_make_python_name) function_name_make_python_name (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (for_statement (pattern_list (identifier_k) identifier_k (identi...
Transforms an USR into a valid python name.
(module (function_definition (function_name_zip_currentdir) function_name_zip_currentdir (parameters (identifier_self) identifier_self )parameters (type (None) None )type (block (with_statement (with_clause (with_item (as_pattern (c...
Pack the current working directory in a `zip` file. |FileManager| subclasses allow for manual packing and automatic unpacking of working directories. The only supported format is `zip`. To avoid possible inconsistencies, origin directories and zip files are removed after packing or unp...
(module (function_definition (function_name_parse_year_days) function_name_parse_year_days (parameters (identifier_year_info) identifier_year_info )parameters (block (expression_statement (assignment (pattern_list (identifier_leap_month) identifier_leap_month ...
Parse year days from a year info.
(module (function_definition (function_name_interactive_server) function_name_interactive_server (parameters (default_parameter (identifier_port) identifier_port (integer_27017) integer_27017 )default_parameter (default_parameter (identifier_verbose) identifier_verbos...
A `MockupDB` that the mongo shell can connect to. Call `~.MockupDB.run` on the returned server, and clean it up with `~.MockupDB.stop`. If ``all_ok`` is True, replies {ok: 1} to anything unmatched by a specific responder.
(module (function_definition (function_name_to_shcoeffs) function_name_to_shcoeffs (parameters (identifier_self) identifier_self (identifier_itaper) identifier_itaper (default_parameter (identifier_normalization) identifier_normalization (string_'4pi') string_'4pi' )def...
Return the spherical harmonic coefficients of taper i as a SHCoeffs class instance. Usage ----- clm = x.to_shcoeffs(itaper, [normalization, csphase]) Returns ------- clm : SHCoeffs class instance Parameters ---------- itaper : int ...
(module (function_definition (function_name_finish) function_name_finish (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_stylesheet) identifier_stylesheet (call (attribute (...
Parse the buffered response body, rewrite its URLs, write the result to the wrapped request, and finish the wrapped request.
(module (function_definition (function_name_send_confirmation_email) function_name_send_confirmation_email (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_context) identifier_context (dictionary ...
Sends an email to confirm the new email address. This method sends out two emails. One to the new email address that contains the ``email_confirmation_key`` which is used to verify this this email address with :func:`User.objects.confirm_email`. The other email is to the old email addr...
(module (function_definition (function_name_from_moment_relative_to_crystal_axes) function_name_from_moment_relative_to_crystal_axes (parameters (identifier_cls) identifier_cls (identifier_moment) identifier_moment (identifier_lattice) identifier_lattice )parameters (block (exp...
Obtaining a Magmom object from a magnetic moment provided relative to crystal axes. Used for obtaining moments from magCIF file. :param magmom: list of floats specifying vector magmom :param lattice: Lattice :return: Magmom
(module (function_definition (function_name_data_to_imagesurface) function_name_data_to_imagesurface (parameters (identifier_data) identifier_data (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (import_statem...
Turn arbitrary data values into a Cairo ImageSurface. The method and arguments are the same as data_to_argb32, except that the data array will be treated as 2D, and higher dimensionalities are not allowed. The return value is a Cairo ImageSurface object. Combined with the write_to_png() method on Imag...
(module (function_definition (function_name_blueprint) function_name_blueprint (parameters (identifier_self) identifier_self )parameters (type (generic_type (identifier_Optional) identifier_Optional (type_parameter (type (identifier_str) identifier_str...
Returns the blueprint the matched endpoint belongs to. This can be None if the request has not been matched or the endpoint is not in a blueprint.
(module (function_definition (function_name_is_third_friday) function_name_is_third_friday (parameters (default_parameter (identifier_day) identifier_day (None) None )default_parameter )parameters (block (expression_statement (assignment (identifier_...
check if day is month's 3rd friday
(module (function_definition (function_name_get_zorder) function_name_get_zorder (parameters (identifier_self) identifier_self (identifier_overlay) identifier_overlay (identifier_key) identifier_key (identifier_el) identifier_el )parameters (block (expression_statement ...
Computes the z-order of element in the NdOverlay taking into account possible batching of elements.
(module (function_definition (function_name_parseLines) function_name_parseLines (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_inAst) identifier_inAst (call (identifier_parse) identifie...
Form an AST for the code and produce a new version of the source.
(module (function_definition (function_name_truncated_normal_log_likelihood) function_name_truncated_normal_log_likelihood (parameters (identifier_params) identifier_params (identifier_low) identifier_low (identifier_high) identifier_high (identifier_data) identifier_data )paramete...
Calculate the log likelihood of the truncated normal distribution. Args: params: tuple with (mean, std), the parameters under which we evaluate the model low (float): the lower truncation bound high (float): the upper truncation bound data (ndarray): the one dime...
(module (function_definition (function_name__heartbeat_loop) function_name__heartbeat_loop (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self ...
A main run loop thread to do work
(module (function_definition (function_name__get_atomsection) function_name__get_atomsection (parameters (identifier_mol2_lst) identifier_mol2_lst )parameters (block (expression_statement (assignment (identifier_started) identifier_started (False) False ...
Returns atom section from mol2 provided as list of strings
(module (function_definition (function_name_partition_list) function_name_partition_list (parameters (identifier_pred) identifier_pred (identifier_iterable) identifier_iterable )parameters (block (expression_statement (assignment (pattern_list (identifie...
Partitions an iterable with a predicate into two lists, one with elements satisfying the predicate and one with elements that do not satisfy it. .. note: this just converts the results of partition_iter to a list for you so that you don't have to in most cases using `partition_iter` is a better option. ...
(module (function_definition (function_name_upload_file_and_send_file_offer) function_name_upload_file_and_send_file_offer (parameters (identifier_self) identifier_self (identifier_file_name) identifier_file_name (identifier_user_id) identifier_user_id (default_parameter (ident...
Upload a file of any type to store and return a FileId once file offer has been sent. No user authentication required
(module (function_definition (function_name_task_annotate) function_name_task_annotate (parameters (identifier_self) identifier_self (identifier_task) identifier_task (identifier_annotation) identifier_annotation )parameters (block (expression_statement (call ...
Annotates a task.
(module (function_definition (function_name_colors) function_name_colors (parameters (identifier_self) identifier_self (identifier_color_code) identifier_color_code )parameters (block (if_statement (comparison_operator (identifier_color_code) identifier_color_code ...
Change the foreground and background colors for subsequently printed characters. None resets colors to their original values (when class was instantiated). Since setting a color requires including both foreground and background codes (merged), setting just the foreground color resets the backg...
(module (function_definition (function_name_process_nxml_file) function_name_process_nxml_file (parameters (identifier_file_name) identifier_file_name (default_parameter (identifier_citation) identifier_citation (None) None )default_parameter (default_parameter ...
Return a ReachProcessor by processing the given NXML file. NXML is the format used by PubmedCentral for papers in the open access subset. Parameters ---------- file_name : str The name of the NXML file to be processed. citation : Optional[str] A PubMed ID passed to be used in t...
(module (function_definition (function_name_f1_score) function_name_f1_score (parameters (identifier_df) identifier_df (default_parameter (identifier_col_true) identifier_col_true (None) None )default_parameter (default_parameter (identifier_col_pred) identifier...
r""" Compute f-1 score of a predicted DataFrame. f-1 is defined as .. math:: \frac{2 \cdot precision \cdot recall}{precision + recall} :Parameters: - **df** - predicted data frame - **col_true** - column name of true label - **col_pred** - column name of predicted label, ...
(module (function_definition (function_name_pasa) function_name_pasa (parameters (identifier_args) identifier_args )parameters (block (expression_statement (assignment (identifier_p) identifier_p (call (identifier_OptionParser) identifier_OptionParse...
%prog pasa pasa_db fastafile Run EVM in TIGR-only mode.
(module (function_definition (function_name__show_stat) function_name__show_stat (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (identifier__show_stat_wrapper_multi_Progress) identifier__show_stat_wrapper_multi_Progress ...
convenient functions to call the static show_stat_wrapper_multi with the given class members
(module (function_definition (function_name_check_script) function_name_check_script (parameters (identifier_vouts) identifier_vouts )parameters (block (for_statement (identifier_vout) identifier_vout (list_comprehension (identifier_v) identifier_v (for_...
Looks into the vouts list of a transaction and returns the ``op_return`` if one exists. Args; vouts (list): List of outputs of a transaction. Returns: str: String representation of the ``op_return``. Raises: Exception: If no ``vout`` having a suppor...
(module (function_definition (function_name_if_sqlserver_disable_constraints_triggers) function_name_if_sqlserver_disable_constraints_triggers (parameters (typed_parameter (identifier_session) identifier_session (type (identifier_SqlASession) identifier_SqlASession )typ...
If we're running under SQL Server, disable triggers AND constraints for the specified table while the resource is held. Args: session: SQLAlchemy :class:`Session` tablename: table name
(module (function_definition (function_name_set) function_name_set (parameters (identifier_self) identifier_self (identifier_key) identifier_key (identifier_val) identifier_val (default_parameter (identifier_time) identifier_time (integer_0) integer_0 )default_par...
Unconditionally sets a key to a given value in the memcache. The C{key} can optionally be an tuple, with the first element being the server hash value and the second being the key. If you want to avoid making this module calculate a hash value. You may prefer, for example, to keep all o...
(module (function_definition (function_name__restore_backup) function_name__restore_backup (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (pattern_list (identifier_input_filename) identifier_input_filename ...
Restore the specified database.
(module (function_definition (function_name_email) function_name_email (parameters (identifier_anon) identifier_anon (identifier_obj) identifier_obj (identifier_field) identifier_field (identifier_val) identifier_val )parameters (block (return_statement (call ...
Generates a random email address.
(module (function_definition (function_name__parse_dav_element) function_name__parse_dav_element (parameters (identifier_self) identifier_self (identifier_dav_response) identifier_dav_response )parameters (block (expression_statement (assignment (identifier_href) id...
Parses a single DAV element :param dav_response: DAV response :returns :class:`FileInfo`
(module (function_definition (function_name_pelix_services) function_name_pelix_services (parameters (identifier_self) identifier_self )parameters (block (return_statement (dictionary_comprehension (pair (call (attribute (identifi...
List of registered services
(module (function_definition (function_name_gameloop) function_name_gameloop (parameters (identifier_self) identifier_self )parameters (block (try_statement (block (while_statement (True) True (block (expression_statement ...
A game loop that circles through the methods.
(module (function_definition (function_name__make_mask) function_name__make_mask (parameters (identifier_self) identifier_self (identifier_data) identifier_data (default_parameter (identifier_lon_str) identifier_lon_str (identifier_LON_STR) identifier_LON_STR )default_p...
Construct the mask that defines a region on a given data's grid.
(module (function_definition (function_name_get_database_configuration) function_name_get_database_configuration (parameters )parameters (block (expression_statement (assignment (identifier_db_config) identifier_db_config (call (identifier_get_database_con...
Get database configuration as dictionary.
(module (function_definition (function_name__construct) function_name__construct (parameters (identifier_self) identifier_self (identifier_context) identifier_context )parameters (block (with_statement (with_clause (with_item (call (attribu...
Constructs this by calling the deferred method. This assumes that all unbound_vars have been specified in context and if this layer has already been computed in this context, then the previously constructed value will be returned. Args: context: A dict of UnboundVariables/_DeferredLayers to thei...
(module (function_definition (function_name_get_qualification_type_by_name) function_name_get_qualification_type_by_name (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (expression_statement (assignment (identifier_...
Return a Qualification Type by name. If the provided name matches more than one Qualification, check to see if any of the results match the provided name exactly. If there's an exact match, return that Qualification. Otherwise, raise an exception.
(module (function_definition (function_name_get_list_w_id2nts) function_name_get_list_w_id2nts (parameters (identifier_ids) identifier_ids (identifier_id2nts) identifier_id2nts (identifier_flds) identifier_flds (default_parameter (identifier_dflt_null) identifier_dflt_null ...
Return a new list of namedtuples by combining "dicts" of namedtuples or objects.
(module (function_definition (function_name_get_pending_domain_join) function_name_get_pending_domain_join (parameters )parameters (block (expression_statement (assignment (identifier_base_key) identifier_base_key (string_r'SYSTEM\CurrentControlSet\Services\Netlogon')...
Determine whether there is a pending domain join action that requires a reboot. .. versionadded:: 2016.11.0 Returns: bool: ``True`` if there is a pending domain join action, otherwise ``False`` CLI Example: .. code-block:: bash salt '*' system.get_pending_domain_join
(module (function_definition (function_name_check_dupl_sources) function_name_check_dupl_sources (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_dd) identifier_dd (call (attribute ...
Extracts duplicated sources, i.e. sources with the same source_id in different source groups. Raise an exception if there are sources with the same ID which are not duplicated. :returns: a list of list of sources, ordered by source_id
(module (function_definition (function_name_write) function_name_write (parameters (identifier_self) identifier_self )parameters (block (with_statement (with_clause (with_item (as_pattern (call (identifier_open) identifier_open ...
Dump JSON to file
(module (function_definition (function_name_has_hlu) function_name_has_hlu (parameters (identifier_self) identifier_self (identifier_lun_or_snap) identifier_lun_or_snap (default_parameter (identifier_cg_member) identifier_cg_member (None) None )default_parameter )pa...
Returns True if `lun_or_snap` is attached to the host. :param lun_or_snap: can be lun, lun snap, cg snap or a member snap of cg snap. :param cg_member: the member lun of cg if `lun_or_snap` is cg snap. :return: True - if `lun_or_snap` is attached, otherwise False.