sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_save_to) function_name_save_to
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
... | Save the cleaned data to an object. |
(module
(function_definition
(function_name_execute_script) function_name_execute_script
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_keys) identifier_keys
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pat... | Execute a script.
makes sure all required scripts are loaded. |
(module
(function_definition
(function_name_register_channel_post_handler) function_name_register_channel_post_handler
(parameters
(identifier_self) identifier_self
(identifier_callback) identifier_callback
(list_splat_pattern
(identifier_custom_filters) identifier_custom_filters
... | Register handler for channel post
:param callback:
:param commands: list of commands
:param regexp: REGEXP
:param content_types: List of content types.
:param state:
:param custom_filters: list of custom filters
:param run_task: run callback in task (no wait resu... |
(module
(function_definition
(function_name_disable_switchport) function_name_disable_switchport
(parameters
(identifier_self) identifier_self
(identifier_inter_type) identifier_inter_type
(identifier_inter) identifier_inter
)parameters
(block
(expression_statement
(ass... | Change an interface's operation to L3.
Args:
inter_type: The type of interface you want to configure. Ex.
tengigabitethernet, gigabitethernet, fortygigabitethernet.
inter: The ID for the interface you want to configure. Ex. 1/0/1
Returns:
True if com... |
(module
(function_definition
(function_name_write_intro) function_name_write_intro
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_comment) identi... | Write intro comments. |
(module
(function_definition
(function_name_get_field_info) function_name_get_field_info
(parameters
(identifier_self) identifier_self
(identifier_field) identifier_field
)parameters
(block
(expression_statement
(assignment
(identifier_field_info) identifier_field_i... | This method is basically a mirror from rest_framework==3.3.3
We are currently pinned to rest_framework==3.1.1. If we upgrade,
this can be refactored and simplified to rely more heavily on
rest_framework's built in logic. |
(module
(function_definition
(function_name_detect_traits) function_name_detect_traits
(parameters
(identifier_item) identifier_item
)parameters
(block
(return_statement
(call
(attribute
(identifier_traits) identifier_traits
(identifier_detect_trai... | Build traits list from attributes of the passed item. Currently,
"kind_51", "name" and "alias" are considered.
See pyrocore.util.traits:dectect_traits for more details. |
(module
(function_definition
(function_name_partition) function_name_partition
(parameters
(identifier_pred) identifier_pred
(identifier_iterable) identifier_iterable
)parameters
(block
(expression_statement
(assignment
(identifier_trues) identifier_trues
... | split the results of an iterable based on a predicate |
(module
(function_definition
(function_name__lint) function_name__lint
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_project_python_files) identifier_project_python_files
(list_comprehension
(identifier_filename) identifier_f... | Run lint and return an exit code. |
(module
(function_definition
(function_name_map_sections) function_name_map_sections
(parameters
(identifier_fun) identifier_fun
(identifier_neurites) identifier_neurites
(default_parameter
(identifier_neurite_type) identifier_neurite_type
(attribute
(identifier_Neu... | Map `fun` to all the sections in a collection of neurites |
(module
(function_definition
(function_name_bestfit_func) function_name_bestfit_func
(parameters
(identifier_self) identifier_self
(identifier_bestfit_x) identifier_bestfit_x
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) ide... | Returns y value |
(module
(function_definition
(function_name_ekifld) function_name_ekifld
(parameters
(identifier_handle) identifier_handle
(identifier_tabnam) identifier_tabnam
(identifier_ncols) identifier_ncols
(identifier_nrows) identifier_nrows
(identifier_cnmlen) identifier_cnmlen
(id... | Initialize a new E-kernel segment to allow fast writing.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekifld_c.html
:param handle: File handle.
:type handle: int
:param tabnam: Table name.
:type tabnam: str
:param ncols: Number of columns in the segment.
:type ncols: int
:pa... |
(module
(function_definition
(function_name_get_grid_data) function_name_get_grid_data
(parameters
(identifier_xall) identifier_xall
(identifier_yall) identifier_yall
(identifier_zall) identifier_zall
(default_parameter
(identifier_nbins) identifier_nbins
(integer_100) ... | Interpolate unstructured two-dimensional data.
Parameters
----------
xall : ndarray(T)
Sample x-coordinates.
yall : ndarray(T)
Sample y-coordinates.
zall : ndarray(T)
Sample z-coordinates.
nbins : int, optional, default=100
Number of histogram bins used in x/y-di... |
(module
(function_definition
(function_name__onEncoding) function_name__onEncoding
(parameters
(identifier_self) identifier_self
(identifier_encString) identifier_encString
(identifier_line) identifier_line
(identifier_pos) identifier_pos
(identifier_absPosition) identifier_absPo... | Memorizes module encoding |
(module
(function_definition
(function_name_wait_for_keys) function_name_wait_for_keys
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_keys) identifier_keys
)list_splat_pattern
(default_parameter
(identifier_timeout) identifier_timeout
... | Waits until one of the specified keys was pressed, and returns
which key was pressed.
:param keys: iterable of integers of pygame-keycodes, or simply
multiple keys passed via multiple arguments
:type keys: iterable
:param timeout: number of seconds to wait till the functio... |
(module
(function_definition
(function_name_tearpage_backend) function_name_tearpage_backend
(parameters
(identifier_filename) identifier_filename
(default_parameter
(identifier_teared_pages) identifier_teared_pages
(None) None
)default_parameter
)parameters
(block
... | Copy filename to a tempfile, write pages to filename except the teared one.
..note ::
Adapted from sciunto's code, https://github.com/sciunto/tear-pages
:param filename: PDF filepath
:param teared_pages: Numbers of the pages to tear. Default to first page \
only. |
(module
(function_definition
(function_name_is_canonical) function_name_is_canonical
(parameters
(identifier_version) identifier_version
(default_parameter
(identifier_loosedev) identifier_loosedev
(False) False
)default_parameter
)parameters
(block
(if_statemen... | Return whether or not the version string is canonical according to Pep 440 |
(module
(function_definition
(function_name___create_preview_object_base) function_name___create_preview_object_base
(parameters
(identifier_self) identifier_self
(identifier_dct) identifier_dct
)parameters
(block
(if_statement
(call
(attribute
(identifi... | The starting point for a preview of a future object.
This is the object which will have future revisions iterated and applied to.
:param dict dct: The starting object dictionary
:return: The preview object id
:rtype: str |
(module
(function_definition
(function_name_create_spooled_temporary_file) function_name_create_spooled_temporary_file
(parameters
(default_parameter
(identifier_filepath) identifier_filepath
(None) None
)default_parameter
(default_parameter
(identifier_fileobj) ident... | Create a spooled temporary file. if ``filepath`` or ``fileobj`` is
defined its content will be copied into temporary file.
:param filepath: Path of input file
:type filepath: str
:param fileobj: Input file object
:type fileobj: file
:returns: Spooled temporary file
:rtype: :class:`tempfil... |
(module
(function_definition
(function_name_padDigitalData) function_name_padDigitalData
(parameters
(identifier_self) identifier_self
(identifier_dig_data) identifier_dig_data
(identifier_n) identifier_n
)parameters
(block
(expression_statement
(assignment
(i... | Pad dig_data with its last element so that the new array is a
multiple of n. |
(module
(function_definition
(function_name_upvotes) function_name_upvotes
(parameters
(identifier_self) identifier_self
(identifier_option) identifier_option
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(call
... | Set whether to filter by a user's upvoted list. Options available are
user.ONLY, user.NOT, and None; default is None. |
(module
(function_definition
(function_name_where) function_name_where
(parameters
(identifier_self) identifier_self
(identifier_column_or_label) identifier_column_or_label
(default_parameter
(identifier_value_or_predicate) identifier_value_or_predicate
(None) None
)def... | Return a new ``Table`` containing rows where ``value_or_predicate``
returns True for values in ``column_or_label``.
Args:
``column_or_label``: A column of the ``Table`` either as a label
(``str``) or an index (``int``). Can also be an array of booleans;
only the rows... |
(module
(function_definition
(function_name_every) function_name_every
(parameters
(identifier_predicate) identifier_predicate
(list_splat_pattern
(identifier_iterables) identifier_iterables
)list_splat_pattern
)parameters
(block
(expression_statement
(identifie... | r"""Like `some`, but only returns `True` if all the elements of `iterables`
satisfy `predicate`.
Examples:
>>> every(bool, [])
True
>>> every(bool, [0])
False
>>> every(bool, [1,1])
True
>>> every(operator.eq, [1,2,3],[1,2])
True
>>> every(operator.eq, [1,2,3],[0,2])
Fal... |
(module
(function_definition
(function_name_for_category) function_name_for_category
(parameters
(identifier_self) identifier_self
(identifier_category) identifier_category
(default_parameter
(identifier_live_only) identifier_live_only
(False) False
)default_parameter
... | Returns queryset of EntryTag instances for specified category.
:param category: the Category instance.
:param live_only: flag to include only "live" entries.
:rtype: django.db.models.query.QuerySet. |
(module
(function_definition
(function_name__imagpart) function_name__imagpart
(parameters
(identifier_self) identifier_self
(identifier_f) identifier_f
)parameters
(block
(function_definition
(function_name_f_im) function_name_f_im
(parameters
(identifier_x... | Function returning the imaginary part of the result from ``f``. |
(module
(function_definition
(function_name_get_top_artists) function_name_get_top_artists
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_limit) identifier_limit
(None) None
)default_parameter
(default_parameter
(identifier_cacheabl... | Returns the most played artists as a sequence of TopItem objects. |
(module
(function_definition
(function_name_make_directory_if_not_exists) function_name_make_directory_if_not_exists
(parameters
(identifier_path) identifier_path
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
... | Create the specified path, making all intermediate-level directories
needed to contain the leaf directory. Ignore any error that would
occur if the leaf directory already exists.
@note: all the intermediate-level directories are created with the
default mode is 0777 (octal).
@param path: the ... |
(module
(function_definition
(function_name_bulk_record_workunits) function_name_bulk_record_workunits
(parameters
(identifier_self) identifier_self
(identifier_engine_workunits) identifier_engine_workunits
)parameters
(block
(for_statement
(identifier_workunit) identifier_wo... | A collection of workunits from v2 engine part |
(module
(function_definition
(function_name_build_single) function_name_build_single
(parameters
(identifier_mode) identifier_mode
)parameters
(block
(if_statement
(comparison_operator
(identifier_mode) identifier_mode
(string_'force') string_'force'
)co... | Build, in the single-user mode. |
(module
(function_definition
(function_name_get_assessments_offered_by_search) function_name_get_assessments_offered_by_search
(parameters
(identifier_self) identifier_self
(identifier_assessment_offered_query) identifier_assessment_offered_query
(identifier_assessment_offered_search) identi... | Pass through to provider AssessmentOfferedSearchSession.get_assessments_offered_by_search |
(module
(function_definition
(function_name_ToJSonResponse) function_name_ToJSonResponse
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_columns_order) identifier_columns_order
(None) None
)default_parameter
(default_parameter
(ident... | Writes a table as a JSON response that can be returned as-is to a client.
This method writes a JSON response to return to a client in response to a
Google Visualization API query. This string can be processed by the calling
page, and is used to deliver a data table to a visualization hosted on
a differ... |
(module
(function_definition
(function_name_to_one_hot) function_name_to_one_hot
(parameters
(identifier_dataY) identifier_dataY
)parameters
(block
(expression_statement
(assignment
(identifier_nc) identifier_nc
(binary_operator
(integer_1) integer_1... | Convert the vector of labels dataY into one-hot encoding.
:param dataY: vector of labels
:return: one-hot encoded labels |
(module
(function_definition
(function_name_execfile) function_name_execfile
(parameters
(identifier_fname) identifier_fname
(identifier_variables) identifier_variables
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
... | This is builtin in python2, but we have to roll our own on py3. |
(module
(function_definition
(function_name_SetEventTag) function_name_SetEventTag
(parameters
(identifier_self) identifier_self
(identifier_event_tag) identifier_event_tag
)parameters
(block
(expression_statement
(assignment
(identifier_event_identifier) identifier... | Sets an event tag in the index.
Args:
event_tag (EventTag): event tag. |
(module
(function_definition
(function_name_inherited_labels) function_name_inherited_labels
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(return_statement
(list_comprehension
(attribute
(identifier_scls) identifier_scls
(identifi... | Return list of labels from nodes class hierarchy.
:return: list |
(module
(function_definition
(function_name_translate) function_name_translate
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(call... | Gets the value in the current language, or
in the configured fallbck language. |
(module
(function_definition
(function_name_get_absl_log_prefix) function_name_get_absl_log_prefix
(parameters
(identifier_record) identifier_record
)parameters
(block
(expression_statement
(assignment
(identifier_created_tuple) identifier_created_tuple
(call
... | Returns the absl log prefix for the log record.
Args:
record: logging.LogRecord, the record to get prefix for. |
(module
(function_definition
(function_name_userinfo_json) function_name_userinfo_json
(parameters
(identifier_request) identifier_request
(identifier_user_id) identifier_user_id
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
... | Return the user's information in a json object |
(module
(function_definition
(function_name_option) function_name_option
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictio... | Registers a click.option which falls back to a configmanager Item
if user hasn't provided a value in the command line.
Item must be the last of ``args``.
Examples::
config = Config({'greeting': 'Hello'})
@click.command()
@config.click.option('--greeting', ... |
(module
(function_definition
(function_name_white_noise) function_name_white_noise
(parameters
(default_parameter
(identifier_dur) identifier_dur
(None) None
)default_parameter
(default_parameter
(identifier_low) identifier_low
(unary_operator
(float... | White noise stream generator.
Parameters
----------
dur :
Duration, in number of samples; endless if not given (or None).
low, high :
Lower and higher limits. Defaults to the [-1; 1] range.
Returns
-------
Stream yielding random numbers between -1 and 1. |
(module
(function_definition
(function_name_rmse) function_name_rmse
(parameters
(identifier_targets) identifier_targets
(identifier_predictions) identifier_predictions
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(exp... | r"""
Compute the root mean squared error between two SArrays.
Parameters
----------
targets : SArray[float or int]
An Sarray of ground truth target values.
predictions : SArray[float or int]
The prediction that corresponds to each target value.
This vector must have the sam... |
(module
(function_definition
(function_name_verify_edge_segments) function_name_verify_edge_segments
(parameters
(identifier_edge_infos) identifier_edge_infos
)parameters
(block
(if_statement
(comparison_operator
(identifier_edge_infos) identifier_edge_infos
(No... | Verify that the edge segments in an intersection are valid.
.. note::
This is a helper used only by :func:`generic_intersect`.
Args:
edge_infos (Optional[list]): List of "edge info" lists. Each list
represents a curved polygon and contains 3-tuples of edge index,
start ... |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_func) identifier_func
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
... | Run the app |
(module
(function_definition
(function_name_dataReceived) function_name_dataReceived
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_sel... | Called from Twisted whenever data is received. |
(module
(function_definition
(function_name_has_mixture_channel) function_name_has_mixture_channel
(parameters
(typed_parameter
(identifier_val) identifier_val
(type
(identifier_Any) identifier_Any
)type
)typed_parameter
)parameters
(type
(identifier... | Returns whether the value has a mixture channel representation.
In contrast to `has_mixture` this method falls back to checking whether
the value has a unitary representation via `has_channel`.
Returns:
If `val` has a `_has_mixture_` method and its result is not
NotImplemented, that result... |
(module
(function_definition
(function_name_get_compound_pd) function_name_get_compound_pd
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_entry1) identifier_entry1
(call
(identifier_PDEn... | Get the CompoundPhaseDiagram object, which can then be used for
plotting.
Returns:
(CompoundPhaseDiagram) |
(module
(function_definition
(function_name_subpnt) function_name_subpnt
(parameters
(identifier_method) identifier_method
(identifier_target) identifier_target
(identifier_et) identifier_et
(identifier_fixref) identifier_fixref
(identifier_abcorr) identifier_abcorr
(identi... | Compute the rectangular coordinates of the sub-observer point on
a target body at a specified epoch, optionally corrected for
light time and stellar aberration.
This routine supersedes :func:`subpt`.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/subpnt_c.html
:param method: Computation ... |
(module
(function_definition
(function_name_OnPrintPreview) function_name_OnPrintPreview
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(assignment
(identifier_print_area) identifier_print_a... | Print preview handler |
(module
(function_definition
(function_name_probe_async) function_name_probe_async
(parameters
(identifier_self) identifier_self
(identifier_callback) identifier_callback
)parameters
(block
(expression_statement
(assignment
(identifier_topics) identifier_topics
... | Probe for visible devices connected to this DeviceAdapter.
Args:
callback (callable): A callback for when the probe operation has completed.
callback should have signature callback(adapter_id, success, failure_reason) where:
success: bool
fail... |
(module
(function_definition
(function_name_proxy) function_name_proxy
(parameters
(default_parameter
(identifier_host) identifier_host
(string_'localhost') string_'localhost'
)default_parameter
(default_parameter
(identifier_port) identifier_port
(integer_430... | factory function that returns a proxy object for an owserver at
host, port. |
(module
(function_definition
(function_name_parse) function_name_parse
(parameters
(identifier_cls) identifier_cls
(identifier_uri) identifier_uri
)parameters
(block
(expression_statement
(assignment
(identifier_uri_components) identifier_uri_components
(c... | Parse URI-string and return WURI object
:param uri: string to parse
:return: WURI |
(module
(function_definition
(function_name__allow_custom_expire) function_name__allow_custom_expire
(parameters
(identifier_self) identifier_self
(identifier_load) identifier_load
)parameters
(block
(expression_statement
(assignment
(identifier_expire_override) ide... | Return bool if requesting user is allowed to set custom expire |
(module
(function_definition
(function_name_plural) function_name_plural
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
(default_parameter
(identifier_count) identifier_count
(None) None
)default_parameter
)parameters
(block
... | Return the plural of text.
If count supplied, then return text if count is one of:
1, a, an, one, each, every, this, that
otherwise return the plural.
Whitespace at the start and end is preserved. |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_s... | Get the next waiting message from the queue.
:returns: A :class:`Message` instance, or ``None`` if there is
no messages waiting. |
(module
(function_definition
(function_name_find) function_name_find
(parameters
(identifier_name) identifier_name
)parameters
(block
(if_statement
(call
(attribute
(identifier_op) identifier_op
(identifier_exists) identifier_exists
)attr... | Locate a filename into the shader library. |
(module
(function_definition
(function_name_ref) function_name_ref
(parameters
(identifier_self) identifier_self
(identifier_orm_classpath) identifier_orm_classpath
(default_parameter
(identifier_cls_pk) identifier_cls_pk
(None) None
)default_parameter
)parameters
... | takes a classpath to allow query-ing from another Orm class
the reason why it takes string paths is to avoid infinite recursion import
problems because an orm class from module A might have a ref from module B
and sometimes it is handy to have module B be able to get the objects from
m... |
(module
(function_definition
(function_name_get_planet) function_name_get_planet
(parameters
(identifier_planet_id) identifier_planet_id
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier__get... | Return a single planet |
(module
(function_definition
(function_name_close) function_name_close
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(ide... | Releasing hardware resources. |
(module
(function_definition
(function_name_set) function_name_set
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_value) identifier_value
(default_parameter
(identifier_overwrite) identifier_overwrite
(False) False
)def... | Sets a new value for a given configuration parameter.
If it already exists, an Exception is thrown.
To overwrite an existing value, set overwrite to True.
:param name: Unique name of the parameter
:param value: Value of the configuration parameter
:param overwrite: If true, an ... |
(module
(function_definition
(function_name_output) function_name_output
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
(default_parameter
(identifier_normal) identifier_normal
(False) False
)default_parameter
(default_parameter
... | Handles verbosity of this calls.
if priority is set to 1, the value is printed
if class instance verbose is True, the value is printed
:param value:
a string representing the message to be printed
:type value:
String
:param normal:
if set to ... |
(module
(function_definition
(function_name__set_status_data) function_name__set_status_data
(parameters
(identifier_self) identifier_self
(identifier_userdata) identifier_userdata
)parameters
(block
(expression_statement
(assignment
(attribute
(identifi... | Set status properties from userdata response.
Response values:
d3: On Mask
d4: Off Mask
d5: X10 House Code
d6: X10 Unit
d7: Ramp Rate
d8: On-Level
d9: LED Brightness
d10: Non-Toggle Mask
d11: LED ... |
(module
(function_definition
(function_name_calculate_manual_reading) function_name_calculate_manual_reading
(parameters
(typed_parameter
(identifier_basic_data) identifier_basic_data
(type
(identifier_BasicMeterData) identifier_BasicMeterData
)type
)typed_paramet... | Calculate the interval between two manual readings |
(module
(function_definition
(function_name_list_rocs_files) function_name_list_rocs_files
(parameters
(default_parameter
(identifier_url) identifier_url
(identifier_ROCS_URL) identifier_ROCS_URL
)default_parameter
)parameters
(block
(expression_statement
(ass... | Gets the contents of the given url. |
(module
(function_definition
(function_name__git_diff) function_name__git_diff
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__diff_dict) ... | Run `git diff` and returns a dict in which the keys
are changed file paths and the values are lists of
line numbers.
Guarantees that each line number within a file
is unique (no repeats) and in ascending order.
Returns a cached result if called multiple times.
Raises a... |
(module
(function_definition
(function_name_environ_setenv) function_name_environ_setenv
(parameters
(identifier_self) identifier_self
(identifier_tag) identifier_tag
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(ident... | Set the salt-minion main process environment according to
the data contained in the minion event data |
(module
(function_definition
(function_name__create_event) function_name__create_event
(parameters
(identifier_self) identifier_self
(identifier_event_state) identifier_event_state
(identifier_event_type) identifier_event_type
(identifier_event_value) identifier_event_value
(iden... | Add a new item in the log list.
Item is added only if the criticity (event_state) is WARNING or CRITICAL. |
(module
(function_definition
(function_name_patchURL) function_name_patchURL
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
(identifier_headers) identifier_headers
(identifier_body) identifier_body
)parameters
(block
(return_statement
... | Request a URL using the HTTP method PATCH. |
(module
(function_definition
(function_name_predict_is) function_name_predict_is
(parameters
(identifier_self) identifier_self
(identifier_h) identifier_h
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(attribute... | Outputs predictions for the Aggregate algorithm on the in-sample data
Parameters
----------
h : int
How many steps to run the aggregating algorithm on
Returns
----------
- pd.DataFrame of ensemble predictions |
(module
(function_definition
(function_name_start_tasks) function_name_start_tasks
(parameters
(identifier_self) identifier_self
)parameters
(block
(while_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_se... | Start however many tasks we can based on our limits and what we have left to finish. |
(module
(function_definition
(function_name_re_evaluate) function_name_re_evaluate
(parameters
(default_parameter
(identifier_local_dict) identifier_local_dict
(None) None
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statem... | Re-evaluate the previous executed array expression without any check.
This is meant for accelerating loops that are re-evaluating the same
expression repeatedly without changing anything else than the operands.
If unsure, use evaluate() which is safer.
Parameters
----------
local_dict : dicti... |
(module
(function_definition
(function_name_thread_pool) function_name_thread_pool
(parameters
(list_splat_pattern
(identifier_workers) identifier_workers
)list_splat_pattern
(default_parameter
(identifier_results) identifier_results
(None) None
)default_paramet... | Returns a |pull| object, call it ``r``, starting a thread for each given
worker. Each thread pulls from the source that ``r`` is connected to, and
the returned results are pushed to a |Queue|. ``r`` yields from the other
end of the same |Queue|.
The target function for each thread is |patch|, which c... |
(module
(function_definition
(function_name_get_value_as_list) function_name_get_value_as_list
(parameters
(identifier_self) identifier_self
(identifier_dictionary) identifier_dictionary
(identifier_key) identifier_key
)parameters
(block
(if_statement
(comparison_operat... | Helper function to check and convert a value to list.
Helper function to check and convert a value to json list.
This helps the ribcl data to be generalized across the servers.
:param dictionary: a dictionary to check in if key is present.
:param key: key to be checked if thats present... |
(module
(function_definition
(function_name__get_future_tasks) function_name__get_future_tasks
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifi... | Assemble a list of future alerts |
(module
(function_definition
(function_name_getAvg) function_name_getAvg
(parameters
(identifier_self) identifier_self
(identifier_varname) identifier_varname
(dictionary_splat_pattern
(identifier_kwds) identifier_kwds
)dictionary_splat_pattern
)parameters
(block
... | Calculates the average of an attribute of this instance. Returns NaN if no such attribute.
Parameters
----------
varname : string
The name of the attribute whose average is to be calculated. This attribute must be an
np.array or other class compatible with np.mean.
... |
(module
(function_definition
(function_name_parse_yaml) function_name_parse_yaml
(parameters
(identifier_self) identifier_self
(identifier_y) identifier_y
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
... | Parse a YAML speficication of a message sending object into this
object. |
(module
(function_definition
(function_name_create_prefix_dir) function_name_create_prefix_dir
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_fmt) identifier_fmt
)parameters
(block
(expression_statement
(call
(ident... | Create the prefix dir, if missing |
(module
(function_definition
(function_name_transform_cur_commands_interactive) function_name_transform_cur_commands_interactive
(parameters
(identifier__) identifier__
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(bloc... | Transform any aliases in current commands in interactive into their respective commands. |
(module
(function_definition
(function_name_alias_package) function_name_alias_package
(parameters
(identifier_package) identifier_package
(identifier_alias) identifier_alias
(default_parameter
(identifier_extra_modules) identifier_extra_modules
(dictionary
)dictionar... | Alias a python package properly.
It ensures that modules are not duplicated by trying
to import and alias all the submodules recursively. |
(module
(function_definition
(function_name__check) function_name__check
(parameters
(identifier_self) identifier_self
(identifier_args) identifier_args
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_sum) identifier_sum
... | Exit in case of multiple exclusive arguments. |
(module
(function_definition
(function_name_get_snapshots) function_name_get_snapshots
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
... | Returns a list of snapshots in a given repository. |
(module
(function_definition
(function_name_in_query) function_name_in_query
(parameters
(identifier_expression) identifier_expression
)parameters
(block
(function_definition
(function_name__in) function_name__in
(parameters
(identifier_index) identifier_index
... | Match any of the values that exist in an array specified in query. |
(module
(function_definition
(function_name_call) function_name_call
(parameters
(identifier_method) identifier_method
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictio... | Calls an arbitrary pyeapi method. |
(module
(function_definition
(function_name_resizeEvent) function_name_resizeEvent
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(assignment
(identifier_curr_item) identifier_curr_item
... | Overloads the resize event to control if we are still editing.
If we are resizing, then we are no longer editing. |
(module
(function_definition
(function_name_server_session) function_name_server_session
(parameters
(default_parameter
(identifier_model) identifier_model
(None) None
)default_parameter
(default_parameter
(identifier_session_id) identifier_session_id
(None) N... | Return a script tag that embeds content from a specific existing session on
a Bokeh server.
This function is typically only useful for serving from a a specific session
that was previously created using the ``bokeh.client`` API.
Bokeh apps embedded using these methods will NOT set the browser window t... |
(module
(function_definition
(function_name_string_asset) function_name_string_asset
(parameters
(typed_parameter
(identifier_class_obj) identifier_class_obj
(type
(identifier_type) identifier_type
)type
)typed_parameter
)parameters
(type
(identifier... | Decorator to annotate the StringAsset class. Registers the decorated class
as the StringAsset known type. |
(module
(function_definition
(function_name_from_custom_template) function_name_from_custom_template
(parameters
(identifier_cls) identifier_cls
(identifier_searchpath) identifier_searchpath
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(ass... | Factory function for creating a subclass of ``Styler``
with a custom template and Jinja environment.
Parameters
----------
searchpath : str or list
Path or paths of directories containing the templates
name : str
Name of your custom template to use for re... |
(module
(function_definition
(function_name_maybe_pause_consumer) function_name_maybe_pause_consumer
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(i... | Check the current load and pause the consumer if needed. |
(module
(function_definition
(function_name_unique) function_name_unique
(parameters
(identifier_iterable) identifier_iterable
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
)parameters
(block
(expression_statement
(cal... | Removes duplicates from given iterable, using given key as criterion.
:param key: Key function which returns a hashable,
uniquely identifying an object.
:return: Iterable with duplicates removed |
(module
(function_definition
(function_name__bsd_addif) function_name__bsd_addif
(parameters
(identifier_br) identifier_br
(identifier_iface) identifier_iface
)parameters
(block
(expression_statement
(assignment
(identifier_kernel) identifier_kernel
(subsc... | Internal, adds an interface to a bridge |
(module
(function_definition
(function_name_special_validate) function_name_special_validate
(parameters
(identifier_data) identifier_data
(identifier_schema) identifier_schema
)parameters
(block
(expression_statement
(call
(attribute
(identifier_jsonsch... | Custom validation function which inserts an special flag depending
on the cat's name |
(module
(function_definition
(function_name_resolve_response_data) function_name_resolve_response_data
(parameters
(identifier_head_key) identifier_head_key
(identifier_data_key) identifier_data_key
(identifier_data) identifier_data
)parameters
(block
(expression_statement
... | Resolves the responses you get from billomat
If you have done a get_one_element request then you will get a dictionary
If you have done a get_all_elements request then you will get a list with all elements in it
:param head_key: the head key e.g: CLIENTS
:param data_key: the data key e.... |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
(identifier_version) identifier_version
(default_parameter
(identifier_reason) identifier_reason
(None) None
)default_parameter
)parameters
(bl... | Modify the datamodel's manifest
:param version: New version of the manifest
:param reason: Optional reason of the update (i.g. "Update from x.y.z") |
(module
(function_definition
(function_name_get_project) function_name_get_project
(parameters
(identifier_self) identifier_self
(identifier_project_id) identifier_project_id
)parameters
(block
(try_statement
(block
(expression_statement
(call
... | Returns a Project instance.
:param project_id: Project identifier
:returns: Project instance |
(module
(function_definition
(function_name_getKeplerFov) function_name_getKeplerFov
(parameters
(identifier_fieldnum) identifier_fieldnum
)parameters
(block
(expression_statement
(assignment
(identifier_info) identifier_info
(call
(identifier_getFie... | Returns a `fov.KeplerFov` object for a given campaign.
Parameters
----------
fieldnum : int
K2 Campaign number.
Returns
-------
fovobj : `fov.KeplerFov` object
Details the footprint of the requested K2 campaign. |
(module
(function_definition
(function_name_make_parser) function_name_make_parser
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(identifier_ArgumentParser) identifier_ArgumentParser
... | Creates an argument parser configured with options to run a bot
from the command line.
:return: configured argument parser
:rtype: :class:`argparse.ArgumentParser` |
(module
(function_definition
(function_name_add_shellwidget) function_name_add_shellwidget
(parameters
(identifier_self) identifier_self
(identifier_shellwidget) identifier_shellwidget
)parameters
(block
(expression_statement
(assignment
(identifier_shellwidget_id) ... | Register shell with variable explorer.
This function opens a new NamespaceBrowser for browsing the variables
in the shell. |
(module
(function_definition
(function_name_chain_tasks) function_name_chain_tasks
(parameters
(identifier_tasks) identifier_tasks
)parameters
(block
(if_statement
(identifier_tasks) identifier_tasks
(block
(expression_statement
(assignment
... | Chain given tasks. Set each task to run after its previous task.
:param tasks: Tasks list.
:return: Given tasks list. |
(module
(function_definition
(function_name_dict) function_name_dict
(parameters
(identifier_self) identifier_self
(identifier_full) identifier_full
)parameters
(block
(expression_statement
(assignment
(identifier_node) identifier_node
(await
(... | Open a HiveDict at the given full path. |
(module
(function_definition
(function_name_write_metadata) function_name_write_metadata
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_values) identifier_values
)parameters
(block
(expression_statement
(assignment
(i... | write out a meta data array to the key as a fixed-format Series
Parameters
----------
key : string
values : ndarray |
(module
(function_definition
(function_name_cancel) function_name_cancel
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(iden... | Cancel the task associated with the specified status record.
Arguments:
request (Request): A POST including a task status record ID
Returns
-------
Response: A JSON response indicating whether the cancellation succeeded or not |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.