sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_split_next_and_previous_event_columns) function_name_split_next_and_previous_event_columns
(parameters
(identifier_self) identifier_self
(identifier_requested_columns) identifier_requested_columns
)parameters
(block
(function_definition
... | Split requested columns into columns that should load the next known
value and columns that should load the previous known value.
Parameters
----------
requested_columns : iterable[BoundColumn]
Returns
-------
next_cols, previous_cols : iterable[BoundColumn], it... |
(module
(function_definition
(function_name_on_tape) function_name_on_tape
(parameters
(list_splat_pattern
(identifier_files) identifier_files
)list_splat_pattern
)parameters
(block
(for_statement
(identifier_path) identifier_path
(identifier_files) identifier... | Determine whether any of the given files are on tape
Parameters
----------
*files : `str`
one or more paths to GWF files
Returns
-------
True/False : `bool`
`True` if any of the files are determined to be on tape,
otherwise `False` |
(module
(function_definition
(function_name__add_default_entries) function_name__add_default_entries
(parameters
(identifier_input_dict) identifier_input_dict
(identifier_defaults_dict) identifier_defaults_dict
)parameters
(block
(for_statement
(pattern_list
(identi... | Add the entries in defaults dict into input_dict if they don't exist in input_dict
This is based on the accepted answer at
http://stackoverflow.com/questions/3232943/update-value-of-a-nested-dictionary-of-varying-depth
:param dict input_dict: The dict to be updated
:param dict defaults_dict: Dict cont... |
(module
(function_definition
(function_name_scan) function_name_scan
(parameters
(identifier_cls) identifier_cls
(default_parameter
(identifier_filter_builder) identifier_filter_builder
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_scan_fi... | High level scan API.
:param filter_builder: filter expression builder.
:type filter_builder: :class:`~bynamodb.filterexps.Operator` |
(module
(function_definition
(function_name_update_dict) function_name_update_dict
(parameters
(identifier_d) identifier_d
(identifier_u) identifier_u
)parameters
(block
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_val) identifi... | Recursively updates nested dict d from nested dict u |
(module
(function_definition
(function_name_handle_exception) function_name_handle_exception
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_etype) identifier_etype
(ident... | An exception occurred. Log it and set the cache flag. |
(module
(function_definition
(function_name_poll_results_check) function_name_poll_results_check
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_c... | Check the polling results by checking to see if the stats queue is
empty. If it is not, try and collect stats. If it is set a timer to
call ourselves in _POLL_RESULTS_INTERVAL. |
(module
(function_definition
(function_name_find_line_beginning) function_name_find_line_beginning
(parameters
(typed_parameter
(identifier_strings) identifier_strings
(type
(generic_type
(identifier_Sequence) identifier_Sequence
(type_parameter
... | Finds the index of the line in ``strings`` that begins with ``linestart``,
or ``-1`` if none is found.
If ``linestart is None``, match an empty line. |
(module
(function_definition
(function_name_turn_right) function_name_turn_right
(parameters
(identifier_self) identifier_self
(identifier_angle_degrees) identifier_angle_degrees
(default_parameter
(identifier_rate) identifier_rate
(identifier_RATE) identifier_RATE
)def... | Turn to the right, staying on the spot
:param angle_degrees: How far to turn (degrees)
:param rate: The trurning speed (degrees/second)
:return: |
(module
(function_definition
(function_name_find_files_cmd) function_name_find_files_cmd
(parameters
(identifier_data_path) identifier_data_path
(identifier_minutes) identifier_minutes
(identifier_start_time) identifier_start_time
(identifier_end_time) identifier_end_time
)paramete... | Find the log files depending on their modification time.
:param data_path: the path to the Kafka data directory
:type data_path: str
:param minutes: check the files modified in the last N minutes
:type minutes: int
:param start_time: check the files modified after start_time
:type start_time: s... |
(module
(function_definition
(function_name_queries) function_name_queries
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_query) identifier_query
(subscript
(attribute
(identifier_request) identifier_request
... | Store a new GEMINI query. |
(module
(function_definition
(function_name__pfp__set_value) function_name__pfp__set_value
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(iden... | Initialize the struct. Value should be an array of
fields, one each for each struct member.
:value: An array of fields to initialize the struct with
:returns: None |
(module
(function_definition
(function_name_apply_log) function_name_apply_log
(parameters
(typed_parameter
(identifier_a) identifier_a
(type
(identifier_tuple) identifier_tuple
)type
)typed_parameter
(typed_parameter
(identifier_func) identifier_fun... | Apply a function to a value with a log.
Helper function to apply a function to a value with a log tuple. |
(module
(function_definition
(function_name__request) function_name__request
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
(default_parameter
... | Send a request with parameters. |
(module
(function_definition
(function_name_parse_soap_enveloped_saml_thingy) function_name_parse_soap_enveloped_saml_thingy
(parameters
(identifier_text) identifier_text
(identifier_expected_tags) identifier_expected_tags
)parameters
(block
(expression_statement
(assignment
... | Parses a SOAP enveloped SAML thing and returns the thing as
a string.
:param text: The SOAP object as XML string
:param expected_tags: What the tag of the SAML thingy is expected to be.
:return: SAML thingy as a string |
(module
(function_definition
(function_name___stopOpenThread) function_name___stopOpenThread
(parameters
(identifier_self) identifier_self
)parameters
(block
(print_statement
(string_'call stopOpenThread') string_'call stopOpenThread'
)print_statement
(try_statement
... | stop OpenThread stack
Returns:
True: successful to stop OpenThread stack and thread interface down
False: fail to stop OpenThread stack |
(module
(function_definition
(function_name_wndifd) function_name_wndifd
(parameters
(identifier_a) identifier_a
(identifier_b) identifier_b
)parameters
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
... | Place the difference of two double precision windows into
a third window.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wndifd_c.html
:param a: Input window A.
:type a: spiceypy.utils.support_types.SpiceCell
:param b: Input window B.
:type b: spiceypy.utils.support_types.SpiceCell
... |
(module
(function_definition
(function_name_import_path) function_name_import_path
(parameters
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(i... | Imports any valid python module or attribute path as though it were a
module
:Example:
>>> from yamlconf import import_path
>>> from my_package.my_module.my_submodule import attribute
>>> attribute.sub_attribute == \
... import_path("y_package.my_module.my_submodule.attribut... |
(module
(function_definition
(function_name_get_entity_mm) function_name_get_entity_mm
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_type_builtins) identifier_type_builtins
(dictionary
(pair
(string_'integer') s... | Builds and returns a meta-model for Entity language. |
(module
(function_definition
(function_name_matrix_product) function_name_matrix_product
(parameters
(identifier_mat1) identifier_mat1
(identifier_mat2) identifier_mat2
)parameters
(block
(return_statement
(attribute
(call
(attribute
(ident... | Compute the product of two Fortran contiguous matrices.
This is to avoid the overhead of NumPy converting to C-contiguous
before computing a matrix product.
Does so via ``A B = (B^T A^T)^T`` since ``B^T`` and ``A^T`` will be
C-contiguous without a copy, then the product ``P = B^T A^T`` will
be C-c... |
(module
(function_definition
(function_name_extract_patch_images) function_name_extract_patch_images
(parameters
(identifier_f) identifier_f
(identifier_which_set) identifier_which_set
)parameters
(block
(if_statement
(comparison_operator
(identifier_which_set) iden... | Extracts a dict of the "patch images" for ILSVRC2010.
Parameters
----------
f : str or file-like object
The filename or file-handle to the patch images TAR file.
which_set : str
Which set of images to extract. One of 'train', 'valid', 'test'.
Returns
-------
dict
A ... |
(module
(function_definition
(function_name_to_dict) function_name_to_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_dict) identifier_dict
(argument_list
(dictionary
(pair
... | Create a dictionary from the song object
Used in save_lyrics to create json object
:return: Dictionary |
(module
(function_definition
(function_name_wishart_pfaffian) function_name_wishart_pfaffian
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(attribute
(call
(attribute
(identifier_np) iden... | ndarray of wishart pfaffian CDF, before normalization |
(module
(function_definition
(function_name_get_instance_id) function_name_get_instance_id
(parameters
(identifier_self) identifier_self
(identifier_instance) identifier_instance
)parameters
(block
(expression_statement
(string_" Returns instance pk even if multiple instances... | Returns instance pk even if multiple instances were passed to RichTextField. |
(module
(function_definition
(function_name_connection) function_name_connection
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__connections) identifier__connections
... | Get a steady, cached PostgreSQL connection from the pool. |
(module
(function_definition
(function_name_run_coroutine_threadsafe) function_name_run_coroutine_threadsafe
(parameters
(identifier_coro) identifier_coro
(identifier_loop) identifier_loop
)parameters
(block
(if_statement
(not_operator
(call
(attribute
... | Submit a coroutine object to a given event loop.
Return a concurrent.futures.Future to access the result. |
(module
(function_definition
(function_name_get_template) function_name_get_template
(parameters
(identifier_cls) identifier_cls
(identifier_message) identifier_message
(identifier_messenger) identifier_messenger
)parameters
(block
(expression_statement
(assignment
... | Get a template path to compile a message.
1. `tpl` field of message context;
2. `template` field of message class;
3. deduced from message, messenger data and `template_ext` message type field
(e.g. `sitemessage/messages/plain__smtp.txt` for `plain` message type).
:param Mes... |
(module
(function_definition
(function_name__return) function_name__return
(parameters
(identifier_self) identifier_self
(identifier_ary) identifier_ary
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
... | Wrap the ary to return an Array type |
(module
(function_definition
(function_name_addToService) function_name_addToService
(parameters
(identifier_self) identifier_self
(identifier_service) identifier_service
(default_parameter
(identifier_namespace) identifier_namespace
(None) None
)default_parameter
... | Add this Handler's exported methods to an RPC Service instance. |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_e) identifier_e
(attribute
(identifier_self) identifier_self
... | Back up current editor state. |
(module
(function_definition
(function_name_run_on) function_name_run_on
(parameters
(keyword_separator
)keyword_separator
(typed_parameter
(identifier_event) identifier_event
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters... | A decorator to store and link a callback to an event. |
(module
(function_definition
(function_name_get_xml_string_with_self_contained_assertion_within_encrypted_assertion) function_name_get_xml_string_with_self_contained_assertion_within_encrypted_assertion
(parameters
(identifier_self) identifier_self
(identifier_assertion_tag) identifier_assertion_t... | Makes a encrypted assertion only containing self contained
namespaces.
:param assertion_tag: Tag for the assertion to be transformed.
:return: A new samlp.Resonse in string representation. |
(module
(function_definition
(function_name_plot_degbandshalffill) function_name_plot_degbandshalffill
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_ulim) identifier_ulim
(list
(float_3.45) float_3.45
(float_5.15)... | Plot of Quasiparticle weight for degenerate
half-filled bands, showing the Mott transition |
(module
(function_definition
(function_name_deactivate) function_name_deactivate
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_lib) identifier_lib
(i... | Deactivate the Router. |
(module
(function_definition
(function_name_print_subprocess_output) function_name_print_subprocess_output
(parameters
(identifier_subp) identifier_subp
)parameters
(block
(if_statement
(identifier_subp) identifier_subp
(block
(if_statement
(comparison... | Prints the stdout and stderr output. |
(module
(function_definition
(function_name_parse_qs) function_name_parse_qs
(parameters
(identifier_self) identifier_self
(identifier_qs) identifier_qs
)parameters
(block
(expression_statement
(assignment
(identifier_qs_state) identifier_qs_state
(call
... | Parse query string, but enforce one instance of each variable.
Return a dict with the variables on success
Return None on parse error |
(module
(function_definition
(function_name_generate) function_name_generate
(parameters
(identifier_env) identifier_env
)parameters
(block
(expression_statement
(call
(attribute
(identifier_fortran) identifier_fortran
(identifier_generate) identif... | Add Builders and construction variables for compaq visual fortran to an Environment. |
(module
(function_definition
(function_name__get_instance_changes) function_name__get_instance_changes
(parameters
(identifier_current) identifier_current
(identifier_state) identifier_state
)parameters
(block
(expression_statement
(assignment
(identifier_current_ke... | get modified properties |
(module
(function_definition
(function_name_find) function_name_find
(parameters
(identifier_self) identifier_self
(identifier_oid) identifier_oid
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
... | Return list of extensions with given Oid |
(module
(function_definition
(function_name_set_working_directory) function_name_set_working_directory
(parameters
(identifier_self) identifier_self
(identifier_dirname) identifier_dirname
)parameters
(block
(if_statement
(identifier_dirname) identifier_dirname
(block... | Set current working directory.
In the workingdirectory and explorer plugins. |
(module
(function_definition
(function_name_off_policy_train_batch) function_name_off_policy_train_batch
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_batch_info) identifier_batch_info
(type
(identifier_BatchInfo) identifier_BatchInfo
... | Perform an 'off-policy' training step of sampling the replay buffer and gradient descent |
(module
(function_definition
(function_name_mock_server_receive_request) function_name_mock_server_receive_request
(parameters
(identifier_client) identifier_client
(identifier_server) identifier_server
)parameters
(block
(expression_statement
(assignment
(identifie... | Take a client socket and return a Request. |
(module
(function_definition
(function_name_get_factor_nodes) function_name_get_factor_nodes
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_check... | Returns factors nodes present in the graph.
Before calling this method make sure that all the factors are added
properly.
Examples
--------
>>> from pgmpy.models import FactorGraph
>>> from pgmpy.factors.discrete import DiscreteFactor
>>> G = FactorGraph()
... |
(module
(function_definition
(function_name_salience) function_name_salience
(parameters
(identifier_self) identifier_self
(identifier_salience) identifier_salience
)parameters
(block
(expression_statement
(call
(attribute
(identifier_lib) identifier_lib... | Activation salience value. |
(module
(function_definition
(function_name_define_from_header) function_name_define_from_header
(parameters
(identifier_cls) identifier_cls
(identifier_image_header) identifier_image_header
)parameters
(block
(expression_statement
(assignment
(identifier_self) iden... | Define class members directly from FITS header.
Parameters
----------
image_header : instance of hdulist.header
Header content from a FITS file. |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_config_dir) identifier_config_dir
(None) None
)default_parameter
(default_parameter
(identifier_config_name) ident... | writes config to config_dir using config_name |
(module
(function_definition
(function_name_fnames) function_name_fnames
(parameters
(identifier_self) identifier_self
(identifier_names) identifier_names
)parameters
(block
(expression_statement
(assignment
(identifier_names) identifier_names
(call
... | Ensure constant size of fnames |
(module
(function_definition
(function_name_waveform_image) function_name_waveform_image
(parameters
(identifier_mediafile) identifier_mediafile
(identifier_xy_size) identifier_xy_size
(default_parameter
(identifier_outdir) identifier_outdir
(None) None
)default_paramet... | Create waveform image from audio data.
Return path to created image file. |
(module
(function_definition
(function_name__listen_inbox_messages) function_name__listen_inbox_messages
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_inbox_queue) identifier_inbox_queue
(call
... | Start listening to messages, using a separate thread. |
(module
(function_definition
(function_name_serialize_dict) function_name_serialize_dict
(parameters
(identifier_self) identifier_self
(identifier_msg_dict) identifier_msg_dict
)parameters
(block
(expression_statement
(assignment
(identifier_serialized) identifier_s... | Serialize to JSON a message dictionary. |
(module
(function_definition
(function_name_path) function_name_path
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)parameters
(block
(if_statement
(not_operator
(attribute
(attribute
(identifier_se... | This returns the absolute path of a file uploaded to this set. It
doesn't actually check whether said file exists.
:param filename: The filename to return the path for.
:param folder: The subfolder within the upload set previously used
to save to.
:raises Operati... |
(module
(function_definition
(function_name_set_if_empty) function_name_set_if_empty
(parameters
(identifier_self) identifier_self
(identifier_param) identifier_param
(identifier_default) identifier_default
)parameters
(block
(if_statement
(not_operator
(call
... | Set the parameter to the default if it doesn't exist |
(module
(function_definition
(function_name_store) function_name_store
(parameters
(identifier_self) identifier_self
(identifier_database) identifier_database
(default_parameter
(identifier_validate) identifier_validate
(True) True
)default_parameter
(default_para... | Store the document in the given database.
:param database: the `Database` object source for storing the document.
:return: an updated instance of `Document` / self. |
(module
(function_definition
(function_name_is_valid_package_name) function_name_is_valid_package_name
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_raise_error) identifier_raise_error
(False) False
)default_parameter
)parameters
(block
... | Test the validity of a package name string.
Args:
name (str): Name to test.
raise_error (bool): If True, raise an exception on failure
Returns:
bool. |
(module
(function_definition
(function_name_num) function_name_num
(parameters
(identifier_value) identifier_value
)parameters
(block
(if_statement
(call
(attribute
(identifier_re_hex_num) identifier_re_hex_num
(identifier_match) identifier_match
... | Convert a value from one of several bases to an int. |
(module
(function_definition
(function_name_metadata_response) function_name_metadata_response
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_full_url) identifier_full_url
(identifier_headers) identifier_headers
)parameters
(bl... | Mock response for localhost metadata
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html |
(module
(function_definition
(function_name_prettify_json) function_name_prettify_json
(parameters
(identifier_json_string) identifier_json_string
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_data) identi... | Given a JSON string, it returns it as a
safe formatted HTML |
(module
(function_definition
(function_name_get_short_help_str) function_name_get_short_help_str
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_limit) identifier_limit
(integer_45) integer_45
)default_parameter
)parameters
(block
(r... | Gets short help for the command or makes it by shortening the long help string. |
(module
(function_definition
(function_name_list_controls) function_name_list_controls
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_limit) identifier_limit
(integer_500) integer_500
)default_parameter
(default_parameter
(identifie... | List `all` the controls on this Thing.
Returns QAPI list function payload
Raises [IOTException](./Exceptions.m.html#IoticAgent.IOT.Exceptions.IOTException)
containing the error if the infrastructure detects a problem
Raises [LinkException](../Core/AmqpLink.m.html#IoticAgent.Core.AmqpL... |
(module
(function_definition
(function_name_remove_empty_files) function_name_remove_empty_files
(parameters
(identifier_root_directory) identifier_root_directory
(default_parameter
(identifier_dry_run) identifier_dry_run
(False) False
)default_parameter
(default_parame... | Remove all empty files from a path. Returns list of the empty files removed.
:param root_directory: base directory to start at
:param dry_run: just return a list of what would be removed
:param ignore_errors: Permissions are a pain, just ignore if you blocked
:param enable_scandir: on python < 3.5 enab... |
(module
(function_definition
(function_name__is_second_run) function_name__is_second_run
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_tracker_path) identifier_tracker_path
(call
(identifier__get_not_configured_usage_tracker_... | Returns `True` when we know that `fuck` called second time. |
(module
(function_definition
(function_name_get_results) function_name_get_results
(parameters
(identifier_self) identifier_self
(keyword_separator
)keyword_separator
(default_parameter
(identifier_block) identifier_block
(False) False
)default_parameter
(de... | Get the results of each job in the group.
Parameters:
block(bool): Whether or not to block until the results are stored.
timeout(int): The maximum amount of time, in milliseconds,
to wait for results when block is True. Defaults to 10
seconds.
Raises:
... |
(module
(function_definition
(function_name_list) function_name_list
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_toa) identifier_toa
(None) None
)default_parameter
(default_parameter
(identifier_show_history) identifier_show_hist... | Return all revisions for this stack
:param int toa: The time of action as a UTC timestamp
:param bool show_history: Whether to show historical revisions |
(module
(function_definition
(function_name_set_field) function_name_set_field
(parameters
(identifier_self) identifier_self
(identifier_field_name) identifier_field_name
(default_parameter
(identifier_field_val) identifier_field_val
(None) None
)default_parameter
)... | set a field into .fields attribute
n insert/update queries, these are the fields that will be inserted/updated into the db |
(module
(function_definition
(function_name_get_formset) function_name_get_formset
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(default_parameter
(identifier_obj) identifier_obj
(None) None
)default_parameter
(dictionary_s... | Pre-populate formset with the initial placeholders to display. |
(module
(function_definition
(function_name_generic_combine) function_name_generic_combine
(parameters
(identifier_method) identifier_method
(identifier_arrays) identifier_arrays
(default_parameter
(identifier_masks) identifier_masks
(None) None
)default_parameter
... | Stack arrays using different methods.
:param method: the combination method
:type method: PyCObject
:param arrays: a list of arrays
:param masks: a list of mask arrays, True values are masked
:param dtype: data type of the output
:param zeros:
:param scales:
:param weights:
:return:... |
(module
(function_definition
(function_name__init_regs_random) function_name__init_regs_random
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_values) identifier_values
(call
(identifier_... | Initialize register with random values. |
(module
(function_definition
(function_name_set_knowledge_category) function_name_set_knowledge_category
(parameters
(identifier_self) identifier_self
(identifier_grade_id) identifier_grade_id
)parameters
(block
(if_statement
(call
(attribute
(call
... | Sets the knowledge category.
arg: grade_id (osid.id.Id): the new knowledge category
raise: InvalidArgument - ``grade_id`` is invalid
raise: NoAccess - ``grade_id`` cannot be modified
raise: NullArgument - ``grade_id`` is ``null``
*compliance: mandatory -- This method must ... |
(module
(function_definition
(function_name_get_report_raw) function_name_get_report_raw
(parameters
(identifier_year) identifier_year
(identifier_report_type) identifier_report_type
)parameters
(block
(if_statement
(not_operator
(call
(identifier_is_val... | Download and extract a CO-TRACER report.
Generate a URL for the given report, download the corresponding archive,
extract the CSV report, and interpret it using the standard CSV library.
@param year: The year for which data should be downloaded.
@type year: int
@param report_type: The type of repo... |
(module
(function_definition
(function_name_fetch_mood_station) function_name_fetch_mood_station
(parameters
(identifier_self) identifier_self
(identifier_station_id) identifier_station_id
(default_parameter
(identifier_terr) identifier_terr
(attribute
(identifier_K... | Fetches a mood station by given ID.
:param station_id: the station ID
:param terr: the current territory.
:return: API response.
:rtype: dict
See `https://docs-en.kkbox.codes/v1.1/reference#moodstations-station_id`. |
(module
(function_definition
(function_name_main) function_name_main
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_listname) identifier_listname
(subscript
(attribute
(identifier_sys) identifier_sys
... | This is the mainline.
It first invokes the pipermail archiver to add the message to the archive,
then calls the function above to do whatever with the archived message
after it's URL and path are known. |
(module
(function_definition
(function_name_first_order_score) function_name_first_order_score
(parameters
(identifier_y) identifier_y
(identifier_mean) identifier_mean
(identifier_scale) identifier_scale
(identifier_shape) identifier_shape
(identifier_skewness) identifier_skewne... | GAS Normal Update term using gradient only - native Python function
Parameters
----------
y : float
datapoint for the time series
mean : float
location parameter for the Normal distribution
scale : float
scale parameter for the Normal distri... |
(module
(function_definition
(function_name__preprocess_data) function_name__preprocess_data
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_original_type) identifier_or... | Converts a data array to the preferred 3D structure.
Parameters
----------
data : :obj:`numpy.ndarray`
The data to process.
Returns
-------
:obj:`numpy.ndarray`
The data re-formatted (if needed) as a 3D matrix
Raises
------
... |
(module
(function_definition
(function_name_DeregisterBlockchain) function_name_DeregisterBlockchain
(parameters
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_Blockchain) identifier_Blockchain
(identifier_SECONDS_PER_BLOCK) ... | Remove the default blockchain instance. |
(module
(function_definition
(function_name_remove_device) function_name_remove_device
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_devices) identifier_devices
... | Removes device specified by id |
(module
(function_definition
(function_name_Error) function_name_Error
(parameters
(identifier_self) identifier_self
(identifier_backtrace) identifier_backtrace
(default_parameter
(identifier_client_id) identifier_client_id
(None) None
)default_parameter
)parameters... | Logs an error for a client but does not terminate the hunt. |
(module
(function_definition
(function_name_git_version) function_name_git_version
(parameters
(typed_default_parameter
(identifier_short) identifier_short
(type
(string_'Get short hash') string_'Get short hash'
)type
(True) True
)typed_default_parameter
... | Get tag associated with HEAD; fall back to SHA1.
If HEAD is tagged, return the tag name; otherwise fall back to
HEAD's short SHA1 hash.
.. note:: Only annotated tags are considered.
.. note:: The output isn't shown by default. To show it, pass the
``--show`` flag. |
(module
(function_definition
(function_name_to_array) function_name_to_array
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_dt) identifier_dt
(call
(attribute
(identifier_n... | Convert the table to a structured NumPy array. |
(module
(function_definition
(function_name__load_id_or_insert) function_name__load_id_or_insert
(parameters
(identifier_self) identifier_self
(identifier_session) identifier_session
)parameters
(block
(if_statement
(comparison_operator
(attribute
(ident... | Load the id of the temporary context if it exists or return insert args.
As a side effect, this also inserts the Context object for the stableid.
:return: The record of the temporary context to insert.
:rtype: dict |
(module
(function_definition
(function_name_macro2micro) function_name_macro2micro
(parameters
(identifier_self) identifier_self
(identifier_macro_indices) identifier_macro_indices
)parameters
(block
(function_definition
(function_name_from_partition) function_name_from_parti... | Return all micro indices which compose the elements specified by
``macro_indices``. |
(module
(function_definition
(function_name_as_json) function_name_as_json
(parameters
(identifier_data) identifier_data
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operat... | Writes data as json.
:param dict data: data to convert to json
:param kwargs kwargs: kwargs for json dumps
:return: json string
:rtype: str |
(module
(function_definition
(function_name_list_subscribers) function_name_list_subscribers
(parameters
(identifier_self) identifier_self
(identifier_list_id) identifier_list_id
)parameters
(block
(return_statement
(list_comprehension
(call
(identifier_... | List subscribers of a list
:param list_id: list ID number
:return: :class:`~responsebot.models.User` object |
(module
(function_definition
(function_name_copy_script) function_name_copy_script
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
(default_parameter
(identifier_id_) identifier_id_
(unary_operator
(integer_1) integer_1
... | Copy a script to the distribution server.
Args:
filename: Full path to file to upload.
id_: ID of Script object to associate with, or -1 for new
Script (default). |
(module
(function_definition
(function_name_seal) function_name_seal
(parameters
(identifier_mock) identifier_mock
)parameters
(block
(expression_statement
(call
(identifier__frankeinstainize) identifier__frankeinstainize
(argument_list
(identifier_m... | Disable the automatic generation of "submocks"
Given an input Mock, seals it to ensure no further mocks will be generated
when accessing an attribute that was not already defined.
Submocks are defined as all mocks which were created DIRECTLY from the
parent. If a mock is assigned to an attribute of an... |
(module
(function_definition
(function_name__get_observer_fun) function_name__get_observer_fun
(parameters
(identifier_self) identifier_self
(identifier_prop_name) identifier_prop_name
)parameters
(block
(function_definition
(function_name__observer_fun) function_name__observ... | This is the code for an value change observer |
(module
(function_definition
(function_name__replace_token_range) function_name__replace_token_range
(parameters
(identifier_tokens) identifier_tokens
(identifier_start) identifier_start
(identifier_end) identifier_end
(identifier_replacement) identifier_replacement
)parameters
... | For a range indicated from start to end, replace with replacement. |
(module
(function_definition
(function_name_raises) function_name_raises
(parameters
(identifier_cls) identifier_cls
(identifier_sender) identifier_sender
(identifier_attrname) identifier_attrname
(identifier_error) identifier_error
(default_parameter
(identifier_args) id... | An alternative constructor which raises the given error |
(module
(function_definition
(function_name_consume) function_name_consume
(parameters
(identifier_self) identifier_self
(identifier_queue) identifier_queue
(identifier_consumer) identifier_consumer
(default_parameter
(identifier_consumer_tag) identifier_consumer_tag
(s... | Start a queue consumer. If `cb` is supplied, will be called when
broker confirms that consumer is registered. |
(module
(function_definition
(function_name_terminal) function_name_terminal
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_out) identifier_out
(None) None
)default_parameter
(default_parameter
(identifier_border) identifier_border
... | \
Serializes the sequence of QR Codes as ANSI escape code.
See :py:meth:`QRCode.terminal()` for details. |
(module
(function_definition
(function_name_init_repo) function_name_init_repo
(parameters
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(call
(identifier_sh) identifier_sh
(argument_list
(binary_operator
(s... | clone the gh-pages repo if we haven't already. |
(module
(function_definition
(function_name_read_data_types) function_name_read_data_types
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(dictionary
(pair
(string_'Binary') string_'Binary'
(attribute
... | Map of standard playbook variable types to read method. |
(module
(function_definition
(function_name_declareAsOntology) function_name_declareAsOntology
(parameters
(identifier_self) identifier_self
(identifier_graph) identifier_graph
)parameters
(block
(expression_statement
(assignment
(identifier_model) identifier_model
... | The file we output needs to be declared as an ontology,
including it's version information.
TEC: I am not convinced dipper reformating external data as RDF triples
makes an OWL ontology (nor that it should be considered a goal).
Proper ontologies are built by ontologists. Dipper reform... |
(module
(function_definition
(function_name_set_hex_color) function_name_set_hex_color
(parameters
(identifier_self) identifier_self
(identifier_color) identifier_color
(keyword_separator
)keyword_separator
(default_parameter
(identifier_index) identifier_index
(i... | Set hex color of the light. |
(module
(function_definition
(function_name_by_month) function_name_by_month
(parameters
(identifier_self) identifier_self
(identifier_chamber) identifier_chamber
(default_parameter
(identifier_year) identifier_year
(None) None
)default_parameter
(default_paramete... | Return votes for a single month, defaulting to the current month. |
(module
(function_definition
(function_name_centroids) function_name_centroids
(parameters
(identifier_self) identifier_self
(identifier_instrument) identifier_instrument
(default_parameter
(identifier_min_abundance) identifier_min_abundance
(float_1e-4) float_1e-4
)def... | Estimates centroided peaks for a given instrument model.
:param instrument: instrument model
:param min_abundance: minimum abundance for including a peak
:param points_per_fwhm: grid density used for envelope calculation
:returns: peaks visible with the instrument used
:rtype: T... |
(module
(function_definition
(function_name__parse_quoted_key) function_name__parse_quoted_key
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_quote_style) identifier_quote_style
(attribute
... | Parses a key enclosed in either single or double quotes. |
(module
(function_definition
(function_name_manage) function_name_manage
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_hookenv) identifier_hookenv
(identifier__run_atstart) ident... | Handle the current hook by doing The Right Thing with the registered services. |
(module
(function_definition
(function_name_get_profile_ports) function_name_get_profile_ports
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statemen... | Retrieves the port model associated with a server or server hardware type and enclosure group.
Args:
enclosureGroupUri (str):
The URI of the enclosure group associated with the resource.
serverHardwareTypeUri (str):
The URI of the server hardware type ass... |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_ctx) identifier_ctx
(identifier_alias) identifier_alias
(identifier_description) identifier_description
(identifier_f) identifier_f
)parameters
(block
(expression_statement
... | Use it when you start working on the given activity. This will add the
activity and the current time to your entries file. When you're finished,
use the stop command. |
(module
(function_definition
(function_name_update_assessment_taken) function_name_update_assessment_taken
(parameters
(identifier_self) identifier_self
(identifier_assessment_taken_form) identifier_assessment_taken_form
)parameters
(block
(expression_statement
(assignment
... | Updates an existing assessment taken.
arg: assessment_taken_form
(osid.assessment.AssessmentTakenForm): the form
containing the elements to be updated
raise: IllegalState - ``assessment_taken_form`` already used in
an update transaction
raise:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.