sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_download_api) function_name_download_api
(parameters
(default_parameter
(identifier_branch) identifier_branch
(None) None
)default_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expre... | download API documentation from _branch_ of Habitica\'s repo on Github |
(module
(function_definition
(function_name_all_host_infos) function_name_all_host_infos
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(list
)list
)assignment
)expression_statement
... | Summarize all host information. |
(module
(function_definition
(function_name_get_values) function_name_get_values
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
... | Convenience method that for simple single tag queries will
return just the values to be iterated on. |
(module
(function_definition
(function_name_check_dipole) function_name_check_dipole
(parameters
(identifier_inp) identifier_inp
(identifier_name) identifier_name
(identifier_verb) identifier_verb
)parameters
(block
(expression_statement
(identifier_r) identifier_r
... | r"""Check dipole parameters.
This check-function is called from one of the modelling routines in
:mod:`model`. Consult these modelling routines for a detailed description
of the input parameters.
Parameters
----------
inp : list of floats or arrays
Pole coordinates (m): [pole-x, pole-... |
(module
(function_definition
(function_name_has_extensions) function_name_has_extensions
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_exts) identifier_exts
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
... | Check if file has one of the extensions. |
(module
(function_definition
(function_name_search_people_by_bio) function_name_search_people_by_bio
(parameters
(identifier_query) identifier_query
(default_parameter
(identifier_limit_results) identifier_limit_results
(identifier_DEFAULT_LIMIT) identifier_DEFAULT_LIMIT
)def... | queries lucene index to find a nearest match, output is profile username |
(module
(function_definition
(function_name_set_pattern_step_setpoint) function_name_set_pattern_step_setpoint
(parameters
(identifier_self) identifier_self
(identifier_patternnumber) identifier_patternnumber
(identifier_stepnumber) identifier_stepnumber
(identifier_setpointvalue) iden... | Set the setpoint value for a step.
Args:
* patternnumber (integer): 0-7
* stepnumber (integer): 0-7
* setpointvalue (float): Setpoint value |
(module
(function_definition
(function_name_connection_class) function_name_connection_class
(parameters
(identifier_self) identifier_self
(identifier_adapter) identifier_adapter
)parameters
(block
(if_statement
(call
(attribute
(attribute
... | Get connection class by adapter |
(module
(function_definition
(function_name__have_pyspark) function_name__have_pyspark
(parameters
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier__have_pyspark) identifier__have_pyspark
(identifier_flag) identifier_flag
... | Check if we're running Pyspark |
(module
(function_definition
(function_name__filter_nonextensions) function_name__filter_nonextensions
(parameters
(identifier_cls) identifier_cls
(identifier_obj) identifier_obj
)parameters
(block
(if_statement
(boolean_operator
(call
(identifier_hasatt... | Remove all classes marked as not extensions.
This allows us to have a deeper hierarchy of classes than just
one base class that is filtered by _filter_subclasses. Any
class can define a class propery named:
__NO_EXTENSION__ = True
That class will never be returned as an exten... |
(module
(function_definition
(function_name__get_node_groups) function_name__get_node_groups
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_node_dict) identifier_node_dict
(dictionary_comprehension
... | Return a list of node id lists that are topologically identical.
First construct a node_dict which is keyed to the node id and
has a value which is a dict with keys 'sources' and 'targets'.
The 'sources' and 'targets' each contain a list of tuples
(i, polarity, source) edge of the node.... |
(module
(function_definition
(function_name__check_local_option) function_name__check_local_option
(parameters
(identifier_self) identifier_self
(identifier_option) identifier_option
)parameters
(block
(if_statement
(not_operator
(call
(attribute
... | Test the status of local negotiated Telnet options. |
(module
(function_definition
(function_name_raw) function_name_raw
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_query) identifier_query
(type
(identifier_Any) identifier_Any
)type
)typed_parameter
(typed_default_parameter
... | Run raw query on Repository.
For this stand-in repository, the query string is a json string that contains kwargs
criteria with straigh-forward equality checks. Individual criteria are always ANDed
and the result is always a subset of the full repository.
We will ignore the `data` para... |
(module
(function_definition
(function_name_ffn_expert_fn) function_name_ffn_expert_fn
(parameters
(identifier_input_size) identifier_input_size
(identifier_hidden_sizes) identifier_hidden_sizes
(identifier_output_size) identifier_output_size
(default_parameter
(identifier_hidd... | Returns a function that creates a feed-forward network.
Use this function to create the expert_fn argument to distributed_moe.
Args:
input_size: an integer
hidden_sizes: a list of integers
output_size: an integer
hidden_activation: a unary function.
Returns:
a unary function |
(module
(function_definition
(function_name__sidConversion) function_name__sidConversion
(parameters
(identifier_cls) identifier_cls
(identifier_val) identifier_val
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(bl... | converts a list of pysid objects to string representations |
(module
(function_definition
(function_name_rmtree) function_name_rmtree
(parameters
(identifier_path) identifier_path
)parameters
(block
(function_definition
(function_name_handle_remove_readonly) function_name_handle_remove_readonly
(parameters
(identifier_func)... | On windows, rmtree fails for readonly dirs. |
(module
(function_definition
(function_name_geo_length) function_name_geo_length
(parameters
(identifier_arg) identifier_arg
(default_parameter
(identifier_use_spheroid) identifier_use_spheroid
(None) None
)default_parameter
)parameters
(block
(expression_statem... | Compute length of a geo spatial data
Parameters
----------
arg : geometry or geography
use_spheroid : default None
Returns
-------
length : double scalar |
(module
(function_definition
(function_name__handle_resps) function_name__handle_resps
(parameters
(identifier_self) identifier_self
(identifier_root) identifier_root
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_resps) i... | Returns `root` with a resp list added to the TEI header and @resp
values changed to references. |
(module
(function_definition
(function_name_total) function_name_total
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__result_cache) identifier__result_cache
)attrib... | Return the total number of records |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_secret_id) identifier_secret_id
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
... | Get a secret.
Args:
secret_id (str): Secret ID.
Returns:
(:py:class:`Secret`): The secret.
Raises:
:py:class:`docker.errors.NotFound`
If the secret does not exist.
:py:class:`docker.errors.APIError`
If the server ... |
(module
(function_definition
(function_name_forward_remote) function_name_forward_remote
(parameters
(identifier_self) identifier_self
(identifier_remote_port) identifier_remote_port
(default_parameter
(identifier_local_port) identifier_local_port
(None) None
)default_p... | Open a tunnel connecting ``remote_port`` to the local environment.
For example, say you're running a daemon in development mode on your
workstation at port 8080, and want to funnel traffic to it from a
production or staging environment.
In most situations this isn't possible as your of... |
(module
(function_definition
(function_name_parse_rune_links) function_name_parse_rune_links
(parameters
(typed_parameter
(identifier_html) identifier_html
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_dic... | A function which parses the main Runeforge website into dict format.
Parameters
----------
html : str
The string representation of the html obtained via a GET request.
Returns
-------
dict
The nested rune_links champ rune pages from runeforge. |
(module
(function_definition
(function_name___expire_files) function_name___expire_files
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___f... | Because files are always unclean |
(module
(function_definition
(function_name_find_by_tooltip) function_name_find_by_tooltip
(parameters
(identifier_browser) identifier_browser
(identifier_tooltip) identifier_tooltip
)parameters
(block
(return_statement
(call
(identifier_ElementSelector) identifier_... | Find elements with the given tooltip.
:param browser: ``world.browser``
:param tooltip: Tooltip to search for
Returns: an :class:`ElementSelector` |
(module
(function_definition
(function_name_plot_dop) function_name_plot_dop
(parameters
(identifier_bands) identifier_bands
(identifier_int_max) identifier_int_max
(identifier_dop) identifier_dop
(identifier_hund_cu) identifier_hund_cu
(identifier_name) identifier_name
)para... | Plot of Quasiparticle weight for N degenerate bands
under selected doping shows transition only at half-fill
the rest are metallic states |
(module
(function_definition
(function_name_reset) function_name_reset
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_keep_state) identifier_keep_state
(False) False
)default_parameter
)parameters
(block
(if_statement
(not_o... | Reset the shared state and drain Django Channels.
:param keep_state: If ``True``, do not reset the shared manager
state (useful in tests, where the settings overrides need to
be kept). Defaults to ``False``. |
(module
(function_definition
(function_name_match) function_name_match
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(identifier_kwargs) id... | Traverse relationships with properties matching the given parameters.
e.g: `.match(price__lt=10)`
:param kwargs: see `NodeSet.filter()` for syntax
:return: self |
(module
(function_definition
(function_name_for_window) function_name_for_window
(parameters
(identifier_cls) identifier_cls
(identifier_window) identifier_window
)parameters
(block
(expression_statement
(assignment
(identifier_utcnow) identifier_utcnow
(c... | Given a timedelta window, return a timestamp representing
that time. |
(module
(function_definition
(function_name_color_split_position) function_name_color_split_position
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(binary_operator
(binary_operator
(call
(attribute
... | The SVG x position where the color split should occur. |
(module
(function_definition
(function_name_kick) function_name_kick
(parameters
(identifier_self) identifier_self
(identifier_channel) identifier_channel
(identifier_nick) identifier_nick
(default_parameter
(identifier_message) identifier_message
(None) None
)def... | Attempt to kick a user from a channel.
If a message is not provided, defaults to own nick. |
(module
(function_definition
(function_name_itervalues) function_name_itervalues
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_key_type) identifier_key_type
(None) None
)default_parameter
)parameters
(block
(if_statement
(p... | Returns an iterator over the dictionary's values.
@param key_type if specified, iterator will be returning only values pointed by keys of this type.
Otherwise (if not specified) all values in this dictinary will be generated. |
(module
(function_definition
(function_name_extract_mean_or_value) function_name_extract_mean_or_value
(parameters
(identifier_cls) identifier_cls
(identifier_obs_or_pred) identifier_obs_or_pred
(default_parameter
(identifier_key) identifier_key
(None) None
)default_par... | Extracts the mean, value, or user-provided key from an observation
or prediction dictionary. |
(module
(function_definition
(function_name_subprocess_manager) function_name_subprocess_manager
(parameters
(identifier_self) identifier_self
(identifier_exec_args) identifier_exec_args
)parameters
(block
(try_statement
(block
(expression_statement
(ass... | Bro subprocess manager |
(module
(function_definition
(function_name__whatsnd) function_name__whatsnd
(parameters
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_hdr) identifier_hdr
(subscript
(identifier_data) identifier_da... | Try to identify a sound file type.
sndhdr.what() has a pretty cruddy interface, unfortunately. This is why
we re-do it here. It would be easier to reverse engineer the Unix 'file'
command and use the standard 'magic' file, as shipped with a modern Unix. |
(module
(function_definition
(function_name___set_default_ui_state) function_name___set_default_ui_state
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
... | Sets the Widget default ui state.
:param \*args: Arguments.
:type \*args: \* |
(module
(function_definition
(function_name_describe) function_name_describe
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_desc) identifier_desc
(dictionary
(pair
(string_... | Information about this parameter |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
)parameters
(block
... | Gets the object for "name", or None if there's no such object. If
"default" is provided, return it if no object is found. |
(module
(function_definition
(function_name_get_instance) function_name_get_instance
(parameters
(identifier_page_to_crawl) identifier_page_to_crawl
)parameters
(block
(global_statement
(identifier__instances) identifier__instances
)global_statement
(if_statement
... | Return an instance of CrawlModel. |
(module
(function_definition
(function_name_clean) function_name_clean
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
... | Take a dirty value and clean it. |
(module
(function_definition
(function_name_CaptureVariablesList) function_name_CaptureVariablesList
(parameters
(identifier_self) identifier_self
(identifier_items) identifier_items
(identifier_depth) identifier_depth
(identifier_empty_message) identifier_empty_message
(identifi... | Captures list of named items.
Args:
items: iterable of (name, value) tuples.
depth: nested depth of dictionaries and vectors for items.
empty_message: info status message to set if items is empty.
limits: Per-object limits for capturing variable data.
Returns:
List of formatted v... |
(module
(function_definition
(function_name_parse_config) function_name_parse_config
(parameters
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_config_path) identifier_config_path
(call
(attribute
... | Try to load config, to load other journal locations
Otherwise, return default location
Returns journal location |
(module
(function_definition
(function_name__prune_hit) function_name__prune_hit
(parameters
(identifier_hit) identifier_hit
(identifier_model) identifier_model
)parameters
(block
(expression_statement
(assignment
(identifier_hit_id) identifier_hit_id
(sub... | Check whether a document should be pruned.
This method uses the SearchDocumentManagerMixin.in_search_queryset method
to determine whether a 'hit' (search document) should be pruned from an index,
and if so it returns the hit as a Django object(id=hit_id).
Args:
hit: dict object the represents ... |
(module
(function_definition
(function_name_delete_group) function_name_delete_group
(parameters
(identifier_self) identifier_self
(identifier_group_id) identifier_group_id
(default_parameter
(identifier_keep_non_orphans) identifier_keep_non_orphans
(False) False
)defau... | Delete a group trigger
:param group_id: ID of the group trigger to delete
:param keep_non_orphans: if True converts the non-orphan member triggers to standard triggers
:param keep_orphans: if True converts the orphan member triggers to standard triggers |
(module
(function_definition
(function_name_predicates_overlap) function_name_predicates_overlap
(parameters
(typed_parameter
(identifier_tags1) identifier_tags1
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
... | Tests whether the predicate in BIO tags1 overlap
with those of tags2. |
(module
(function_definition
(function_name_calibrate) function_name_calibrate
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier__driver) identi... | Calibration involves probing for top plate to get the plate height |
(module
(function_definition
(function_name_match_level) function_name_match_level
(parameters
(identifier_self) identifier_self
(identifier_overlay) identifier_overlay
)parameters
(block
(expression_statement
(assignment
(identifier_slice_width) identifier_slice_wi... | Given an overlay, return the match level and applicable slice
of the overall overlay. The level an integer if there is a
match or None if there is no match.
The level integer is the number of matching components. Higher
values indicate a stronger match. |
(module
(function_definition
(function_name_drop_nan) function_name_drop_nan
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_col) identifier_col
(type
(identifier_str) identifier_str
)type
(None) None
)typed_default... | Drop rows with NaN values from the main dataframe
:param col: name of the column, defaults to None. Drops in
a... |
(module
(function_definition
(function_name_load) function_name_load
(parameters
(identifier_self) identifier_self
(identifier_mdl_file) identifier_mdl_file
)parameters
(block
(import_statement
(aliased_import
(dotted_name
(identifier_dill) identifier_di... | load model from file. fv_type is not set with this function. It is expected to set it before. |
(module
(function_definition
(function_name_home_wins) function_name_home_wins
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(pattern_list
(identifier_wins... | Returns an ``int`` of the number of games the home team won after the
conclusion of the game. |
(module
(function_definition
(function_name_cli_opts) function_name_cli_opts
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(attribute
(identifier_argparse) identifier_argparse
... | Handle the command line options |
(module
(function_definition
(function_name_handle_triple) function_name_handle_triple
(parameters
(identifier_self) identifier_self
(identifier_lhs) identifier_lhs
(identifier_relation) identifier_relation
(identifier_rhs) identifier_rhs
)parameters
(block
(expression_st... | Process triples before they are added to the graph.
Note that *lhs* and *rhs* are as they originally appeared, and
may be inverted. Inversions are detected by
is_relation_inverted() and de-inverted by invert_relation().
By default, this function:
* removes initial colons on re... |
(module
(function_definition
(function_name_list_vrf) function_name_list_vrf
(parameters
(identifier_self) identifier_self
(identifier_auth) identifier_auth
(default_parameter
(identifier_spec) identifier_spec
(None) None
)default_parameter
)parameters
(block
... | Return a list of VRFs matching `spec`.
* `auth` [BaseAuth]
AAA options.
* `spec` [vrf_spec]
A VRF specification. If omitted, all VRFs are returned.
Returns a list of dicts.
This is the documentation of the internal backend function. It's... |
(module
(function_definition
(function_name__get_internal_field_by_name) function_name__get_internal_field_by_name
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_field)... | Gets the field by name, or None if not found. |
(module
(function_definition
(function_name__ProcessArtifactFilesSource) function_name__ProcessArtifactFilesSource
(parameters
(identifier_self) identifier_self
(identifier_source) identifier_source
)parameters
(block
(if_statement
(comparison_operator
(attribute
... | Get artifact responses, extract paths and send corresponding files. |
(module
(function_definition
(function_name__read_depth_images) function_name__read_depth_images
(parameters
(identifier_self) identifier_self
(identifier_num_images) identifier_num_images
)parameters
(block
(expression_statement
(assignment
(identifier_depth_images... | Reads depth images from the device |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_id_) identifier_id_
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
... | Need to customize, since Queues are not returned with normal response
bodies. |
(module
(function_definition
(function_name_get_text) function_name_get_text
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_sys) identifier_sys
... | Get value of entity
:param text: full text
:return: part of text |
(module
(function_definition
(function_name_graph_from_edges) function_name_graph_from_edges
(parameters
(identifier_edge_list) identifier_edge_list
(default_parameter
(identifier_node_prefix) identifier_node_prefix
(string_'') string_''
)default_parameter
(default_para... | Creates a basic graph out of an edge list.
The edge list has to be a list of tuples representing
the nodes connected by the edge.
The values can be anything: bool, int, float, str.
If the graph is undirected by default, it is only
calculated from one of the symmetric halves of the matrix. |
(module
(function_definition
(function_name_setServer) function_name_setServer
(parameters
(identifier_self) identifier_self
(identifier_server) identifier_server
)parameters
(block
(if_statement
(comparison_operator
(identifier_server) identifier_server
(... | Set server to interact with.
@param server (string) - 'live' for live server, 'dev' for test server, 'rc' for release candidate
@return (boolean) - Boolean indicating whether setServer succeeded |
(module
(function_definition
(function_name__GetNextPath) function_name__GetNextPath
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_paths) identifier_paths
(call
(identifier_sorted) iden... | Gets the next path to load from.
This function also does the checking for out-of-order writes as it iterates
through the paths.
Returns:
The next path to load events from, or None if there are no more paths. |
(module
(function_definition
(function_name_get_content) function_name_get_content
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGG... | Gets given content from the cache.
Usage::
>>> cache = Cache()
>>> cache.add_content(John="Doe", Luke="Skywalker")
True
>>> cache.get_content("Luke")
'Skywalker'
:param key: Content to retrieve.
:type key: object
:return: Con... |
(module
(function_definition
(function_name_construct_makeblastdb_cmd) function_name_construct_makeblastdb_cmd
(parameters
(identifier_filename) identifier_filename
(identifier_outdir) identifier_outdir
(default_parameter
(identifier_blastdb_exe) identifier_blastdb_exe
(attri... | Returns a single makeblastdb command.
- filename - input filename
- blastdb_exe - path to the makeblastdb executable |
(module
(function_definition
(function_name_initialize_from_sql_cursor) function_name_initialize_from_sql_cursor
(parameters
(identifier_self) identifier_self
(identifier_sqlcursor) identifier_sqlcursor
)parameters
(block
(expression_statement
(assignment
(identifie... | Initializes the TimeSeries's data from the given SQL cursor.
You need to set the time stamp format using :py:meth:`TimeSeries.set_timeformat`.
:param SQLCursor sqlcursor: Cursor that was holds the SQL result for any given
"SELECT timestamp, value, ... FROM ..." SQL query.
On... |
(module
(function_definition
(function_name_create_treeitem) function_name_create_treeitem
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(attribute
(... | Create a new treeitem for this reftrack instance.
.. Note:: Parent should be set, Parent should already have a treeitem.
If there is no parent, the root tree item is used as parent for the treeitem.
:returns: a new treeitem that contains a itemdata with the reftrack instanec.
... |
(module
(function_definition
(function_name__ior) function_name__ior
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
... | Set multiplicity of each element to the maximum of the two collections.
if isinstance(other, _basebag):
This runs in O(other.num_unique_elements())
else:
This runs in O(len(other)) |
(module
(function_definition
(function_name_histogram_voltage) function_name_histogram_voltage
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_timestep) identifier_timestep
(None) None
)default_parameter
(default_parameter
(identifie... | Plots histogram of voltages.
For more information see :func:`edisgo.tools.plots.histogram`.
Parameters
----------
timestep : :pandas:`pandas.Timestamp<timestamp>` or None, optional
Specifies time step histogram is plotted for. If timestep is None
all time steps ... |
(module
(function_definition
(function_name_next_sibling) function_name_next_sibling
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_parent... | The node immediately following the invocant in their parent's children
list. If the invocant does not have a next sibling, it is None |
(module
(function_definition
(function_name_create_move) function_name_create_move
(parameters
(identifier_project) identifier_project
(identifier_resource) identifier_resource
(default_parameter
(identifier_offset) identifier_offset
(None) None
)default_parameter
)... | A factory for creating Move objects
Based on `resource` and `offset`, return one of `MoveModule`,
`MoveGlobal` or `MoveMethod` for performing move refactoring. |
(module
(function_definition
(function_name__createJobStateFile) function_name__createJobStateFile
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_jobStateFile) identifier_jobStateFile
(call
... | Create the job state file for the current job and fill in the required
values.
:return: Path to the job state file
:rtype: str |
(module
(function_definition
(function_name_calc_et0_v1) function_name_calc_et0_v1
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_con) identifier_con
(attribute
(attribute
... | Calculate reference evapotranspiration after Turc-Wendling.
Required control parameters:
|NHRU|
|KE|
|KF|
|HNN|
Required input sequence:
|Glob|
Required flux sequence:
|TKor|
Calculated flux sequence:
|ET0|
Basic equation:
:math:`ET0 = KE \\cdot
... |
(module
(function_definition
(function_name_update_input) function_name_update_input
(parameters
(identifier_filelist) identifier_filelist
(default_parameter
(identifier_ivmlist) identifier_ivmlist
(None) None
)default_parameter
(default_parameter
(identifier_re... | Removes files flagged to be removed from the input filelist.
Removes the corresponding ivm files if present. |
(module
(function_definition
(function_name_seq_md5) function_name_seq_md5
(parameters
(identifier_seq) identifier_seq
(default_parameter
(identifier_normalize) identifier_normalize
(True) True
)default_parameter
)parameters
(block
(expression_statement
... | returns unicode md5 as hex digest for sequence `seq`.
>>> seq_md5('')
'd41d8cd98f00b204e9800998ecf8427e'
>>> seq_md5('ACGT')
'f1f8f4bf413b16ad135722aa4591043e'
>>> seq_md5('ACGT*')
'f1f8f4bf413b16ad135722aa4591043e'
>>> seq_md5(' A C G T ')
'f1f8f4bf413b16ad135722aa4591043e'
>>>... |
(module
(function_definition
(function_name_set_path) function_name_set_path
(parameters
(identifier_self) identifier_self
(identifier_file_path) identifier_file_path
)parameters
(block
(if_statement
(not_operator
(identifier_file_path) identifier_file_path
... | Set the path of the database.
Create the file if it does not exist. |
(module
(function_definition
(function_name_close) function_name_close
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_... | Closes the connection to the serial port and ensure no pending
operatoin are left |
(module
(function_definition
(function_name_get_hoisted) function_name_get_hoisted
(parameters
(identifier_dct) identifier_dct
(identifier_child_name) identifier_child_name
)parameters
(block
(expression_statement
(assignment
(identifier_child) identifier_child
... | Pulls all of a child's keys up to the parent, with the names unchanged. |
(module
(function_definition
(function_name_exec_func) function_name_exec_func
(parameters
(identifier_code) identifier_code
(identifier_glob_vars) identifier_glob_vars
(default_parameter
(identifier_loc_vars) identifier_loc_vars
(None) None
)default_parameter
)para... | Wrapper around exec. |
(module
(function_definition
(function_name_validate_root_vertex_directives) function_name_validate_root_vertex_directives
(parameters
(identifier_root_ast) identifier_root_ast
)parameters
(block
(expression_statement
(assignment
(identifier_directives_present_at_root) id... | Validate the directives that appear at the root vertex field. |
(module
(function_definition
(function_name__pretty_time_delta) function_name__pretty_time_delta
(parameters
(identifier_td) identifier_td
)parameters
(block
(expression_statement
(assignment
(identifier_seconds) identifier_seconds
(call
(attribute
... | Creates a string representation of a time delta.
Parameters
----------
td : :class:`datetime.timedelta`
Returns
-------
pretty_formatted_datetime : str |
(module
(function_definition
(function_name__FlushInput) function_name__FlushInput
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
... | Flush all read data until no more available. |
(module
(function_definition
(function_name_get_from_layer) function_name_get_from_layer
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_layer) identifier_layer
(None) None
)default_parameter
)parameters... | Get a configuration value from the named layer.
Parameters
----------
name : str
The name of the value to retrieve
layer: str
The name of the layer to retrieve the value from. If it is not supplied
then the outermost layer in which the key is defined ... |
(module
(function_definition
(function_name_stats_add_duration) function_name_stats_add_duration
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_duration) identifier_duration
)parameters
(block
(if_statement
(not_operator
... | Add a duration to the per-message measurements
.. versionadded:: 3.19.0
.. note:: If this method is called when there is not a message being
processed, a message will be logged at the ``warning`` level to
indicate the value is being dropped. To suppress these warnings,
... |
(module
(function_definition
(function_name_humanize_bytes) function_name_humanize_bytes
(parameters
(identifier_bytesize) identifier_bytesize
(default_parameter
(identifier_precision) identifier_precision
(integer_2) integer_2
)default_parameter
)parameters
(block
... | Humanize byte size figures
https://gist.github.com/moird/3684595 |
(module
(function_definition
(function_name_photos_search) function_name_photos_search
(parameters
(default_parameter
(identifier_user_id) identifier_user_id
(string_'') string_''
)default_parameter
(default_parameter
(identifier_auth) identifier_auth
(False) ... | Returns a list of Photo objects.
If auth=True then will auth the user. Can see private etc |
(module
(function_definition
(function_name_get_name) function_name_get_name
(parameters
(identifier_node) identifier_node
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_node) identifie... | Get the name of a variable.
Args:
node: A `Name`, `Subscript` or `Attribute` node.
Returns:
The name of the variable e.g. `'x'` for `x`, `x.i` and `x[i]`. |
(module
(function_definition
(function_name_download_artifact_bundle) function_name_download_artifact_bundle
(parameters
(identifier_self) identifier_self
(identifier_id_or_uri) identifier_id_or_uri
(identifier_file_path) identifier_file_path
)parameters
(block
(expression_stat... | Download the Artifact Bundle.
Args:
id_or_uri: ID or URI of the Artifact Bundle.
file_path(str): Destination file path.
Returns:
bool: Successfully downloaded. |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
... | Update info about network interface according to given dnet dictionary |
(module
(function_definition
(function_name_live_scores) function_name_live_scores
(parameters
(identifier_self) identifier_self
(identifier_live_scores) identifier_live_scores
)parameters
(block
(expression_statement
(assignment
(identifier_headers) identifier_head... | Store output of live scores to a CSV file |
(module
(function_definition
(function_name_allpathsX) function_name_allpathsX
(parameters
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(identifier_OptionParser) identifier_O... | %prog allpathsX folder tag
Run assembly on a folder of paired reads and apply tag (PE-200, PE-500).
Allow multiple tags separated by comma, e.g. PE-350,TT-1050 |
(module
(function_definition
(function_name_stop_gradient) function_name_stop_gradient
(parameters
(identifier_input_layer) identifier_input_layer
)parameters
(block
(if_statement
(call
(attribute
(identifier_input_layer) identifier_input_layer
(id... | Cuts off the gradient at this point.
This works on both sequence and regular Pretty Tensors.
Args:
input_layer: The input.
Returns:
A new Pretty Tensor of the same type with stop_gradient applied. |
(module
(function_definition
(function_name_gff) function_name_gff
(parameters
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(identifier_OptionParser) identifier_OptionParser
... | %prog gff seq.gbk
Convert Genbank file to GFF and FASTA file.
The Genbank file can contain multiple records. |
(module
(function_definition
(function_name_validate_output) function_name_validate_output
(parameters
(identifier_schema) identifier_schema
)parameters
(block
(expression_statement
(assignment
(identifier_location) identifier_location
(call
(identif... | Validate the body of a response from a flask view.
Like `validate_body`, this function compares a json document to a
jsonschema specification. However, this function applies the schema to the
view response.
Instead of the view returning a flask response object, it should instead
return a Python li... |
(module
(function_definition
(function_name__should_fuzz_node) function_name__should_fuzz_node
(parameters
(identifier_self) identifier_self
(identifier_fuzz_node) identifier_fuzz_node
(identifier_stage) identifier_stage
)parameters
(block
(if_statement
(comparison_oper... | The matching stage is either the name of the last node, or ClientFuzzer.STAGE_ANY.
:return: True if we are in the correct model node |
(module
(function_definition
(function_name_set_stop_chars) function_name_set_stop_chars
(parameters
(identifier_self) identifier_self
(identifier_stop_chars) identifier_stop_chars
)parameters
(block
(expression_statement
(call
(attribute
(identifier_war... | Set stop characters used when determining end of URL.
.. deprecated:: 0.7
Use :func:`set_stop_chars_left` or :func:`set_stop_chars_right`
instead.
:param list stop_chars: list of characters |
(module
(function_definition
(function_name_show) function_name_show
(parameters
(identifier_self) identifier_self
(identifier_frame) identifier_frame
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
... | Show an array of pixels on the window.
Args:
frame (numpy.ndarray): the frame to show on the window
Returns:
None |
(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
(if_statement
(comparison_operator... | Execute update table set field = field+1 like statement |
(module
(function_definition
(function_name_mkdir) function_name_mkdir
(parameters
(identifier_dir_path) identifier_dir_path
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(call
(attribute
(attribute
... | Make directory if not existed |
(module
(function_definition
(function_name__remove_last) function_name__remove_last
(parameters
(identifier_votes) identifier_votes
(identifier_fpl) identifier_fpl
(identifier_cl) identifier_cl
(identifier_ranking) identifier_ranking
)parameters
(block
(for_statement
... | Remove last candidate in IRV voting. |
(module
(function_definition
(function_name_calldata) function_name_calldata
(parameters
(identifier_vcf_fn) identifier_vcf_fn
(default_parameter
(identifier_region) identifier_region
(None) None
)default_parameter
(default_parameter
(identifier_samples) identif... | Load a numpy 1-dimensional structured array with data from the sample
columns of a VCF file.
Parameters
----------
vcf_fn: string or list
Name of the VCF file or list of file names.
region: string
Region to extract, e.g., 'chr1' or 'chr1:0-100000'.
fields: list or array-like
... |
(module
(function_definition
(function_name_flags) function_name_flags
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
)parameters
(block
(expression_statement
(assignment
(identifier_activeFlags) identifier_activeFlags
(p... | Return the active flags for the given index. Add editable
flag to items other than the first column. |
(module
(function_definition
(function_name__check_minions_directories) function_name__check_minions_directories
(parameters
(identifier_pki_dir) identifier_pki_dir
)parameters
(block
(expression_statement
(assignment
(identifier_minions_accepted) identifier_minions_accep... | Return the minion keys directory paths.
This function is a copy of salt.key.Key._check_minions_directories. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.