sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_download) function_name_download
(parameters
(identifier_url) identifier_url
(default_parameter
(identifier_proxies) identifier_proxies
(None) None
)default_parameter
)parameters
(block
(if_statement
(compariso... | Download a PDF or DJVU document from a url, eventually using proxies.
:params url: The URL to the PDF/DJVU document to fetch.
:params proxies: An optional list of proxies to use. Proxies will be \
used sequentially. Proxies should be a list of proxy strings. \
Do not forget to include `... |
(module
(function_definition
(function_name_selected) function_name_selected
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_interrupt) identifier_interrupt
(False) False
)default_parameter
)parameters
(block
(expression_statement
... | This object has been selected. |
(module
(function_definition
(function_name_vote_poll) function_name_vote_poll
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_chat_id) identifier_chat_id
(type
(generic_type
(identifier_Union) identifier_Union
(type_para... | Use this method to vote a poll.
Args:
chat_id (``int`` | ``str``):
Unique identifier (int) or username (str) of the target chat.
For your personal cloud (Saved Messages) you can simply use "me" or "self".
For a contact that exists in your Telegram add... |
(module
(function_definition
(function_name_is_after) function_name_is_after
(parameters
(identifier_self) identifier_self
(identifier_ts) identifier_ts
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
... | Compare this event's timestamp to a give timestamp. |
(module
(function_definition
(function_name_read_file) function_name_read_file
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identif... | return the contents of the file named filename or None if file not found |
(module
(function_definition
(function_name_frame_info) function_name_frame_info
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_self) identifier... | Return a string identifying the current frame. |
(module
(function_definition
(function_name__compare_columns) function_name__compare_columns
(parameters
(identifier_self) identifier_self
(identifier_new_columns) identifier_new_columns
(identifier_old_columns) identifier_old_columns
)parameters
(block
(expression_statement
... | a helper method for generating differences between column properties |
(module
(function_definition
(function_name___select_builder) function_name___select_builder
(parameters
(identifier_lxml_builder) identifier_lxml_builder
(identifier_libxml2_builder) identifier_libxml2_builder
(identifier_cmdline_builder) identifier_cmdline_builder
)parameters
(bloc... | Selects a builder, based on which Python modules are present. |
(module
(function_definition
(function_name__anchor_path) function_name__anchor_path
(parameters
(identifier_self) identifier_self
(identifier_anchor_id) identifier_anchor_id
)parameters
(block
(expression_statement
(string_"Absolute path to the data file for `anchor_id`.") s... | Absolute path to the data file for `anchor_id`. |
(module
(function_definition
(function_name_include_fields) function_name_include_fields
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(identifier_... | r"""
Include fields is the fields that you want to be returned when
searching. These are in addition to the fields that are always
included below.
:param args: items passed in will be turned into a list
:returns: :class:`Search`
>>> bugzilla.sear... |
(module
(function_definition
(function_name_reset_config) function_name_reset_config
(parameters
(identifier_ip) identifier_ip
(identifier_mac) identifier_mac
)parameters
(block
(expression_statement
(call
(attribute
(identifier_click) identifier_click
... | Reset the current configuration of a myStrom WiFi Button. |
(module
(function_definition
(function_name_is_base_datatype) function_name_is_base_datatype
(parameters
(identifier_datatype) identifier_datatype
(default_parameter
(identifier_version) identifier_version
(None) None
)default_parameter
)parameters
(block
(if_st... | Check if the given datatype is a base datatype of the specified version
:type datatype: ``str``
:param datatype: the datatype (e.g. ST)
:type version: ``str``
:param version: the HL7 version (e.g. 2.5)
:return: ``True`` if it is a base datatype, ``False`` otherwise
>>> is_base_datatype('ST')... |
(module
(function_definition
(function_name__add_parameters) function_name__add_parameters
(parameters
(identifier_self) identifier_self
(identifier_parameter_map) identifier_parameter_map
(identifier_parameter_list) identifier_parameter_list
)parameters
(block
(for_statement
... | Populates the given parameter map with the list of parameters provided, resolving any reference objects encountered.
Args:
parameter_map: mapping from parameter names to parameter objects
parameter_list: list of either parameter objects or reference objects |
(module
(function_definition
(function_name_comments) function_name_comments
(parameters
(identifier_accountable) identifier_accountable
)parameters
(block
(expression_statement
(assignment
(identifier_comments) identifier_comments
(call
(attribute
... | Lists all comments for a given issue key. |
(module
(function_definition
(function_name__on_split_requested) function_name__on_split_requested
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_orientation) identifier_orientation
(call
... | Emits the split requested signal with the desired orientation. |
(module
(function_definition
(function_name__get_ln_a_n_max) function_name__get_ln_a_n_max
(parameters
(identifier_self) identifier_self
(identifier_C) identifier_C
(identifier_n_sites) identifier_n_sites
(identifier_idx) identifier_idx
(identifier_rup) identifier_rup
)parame... | Defines the rock site amplification defined in equations 10a and 10b |
(module
(function_definition
(function_name_code_timer) function_name_code_timer
(parameters
(default_parameter
(identifier_reset) identifier_reset
(False) False
)default_parameter
)parameters
(block
(global_statement
(identifier_CODE_TIMER) identifier_CODE_TI... | Sets a global variable for tracking the timer accross multiple
files |
(module
(function_definition
(function_name_show_disk) function_name_show_disk
(parameters
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_kwargs) identifier_kwargs
(None) None
)default_p... | Show the details of an existing disk.
CLI Example:
.. code-block:: bash
salt-cloud -a show_disk myinstance disk_name=mydisk
salt-cloud -f show_disk gce disk_name=mydisk |
(module
(function_definition
(function_name_compose) function_name_compose
(parameters
(typed_parameter
(identifier_f) identifier_f
(type
(generic_type
(identifier_Callable) identifier_Callable
(type_parameter
(type
(list
... | r"""Monadic compose function.
Right-to-left Kleisli composition of two monadic functions.
(<=<) :: Monad m => (b -> m c) -> (a -> m b) -> a -> m c
f <=< g = \x -> g x >>= f |
(module
(function_definition
(function_name_tone_marks) function_name_tone_marks
(parameters
)parameters
(block
(return_statement
(attribute
(call
(identifier_RegexBuilder) identifier_RegexBuilder
(argument_list
(keyword_argument
... | Keep tone-modifying punctuation by matching following character.
Assumes the `tone_marks` pre-processor was run for cases where there might
not be any space after a tone-modifying punctuation mark. |
(module
(function_definition
(function_name_requires_lock) function_name_requires_lock
(parameters
(identifier_function) identifier_function
)parameters
(block
(function_definition
(function_name_new_lock_requiring_function) function_name_new_lock_requiring_function
(parame... | Decorator to check if the user owns the required lock.
The first argument must be the filename. |
(module
(function_definition
(function_name_close) function_name_close
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__mode) identifier__m... | Flush and close the file.
May be called more than once without error. Once the file is
closed, any other operation on it will raise a ValueError. |
(module
(function_definition
(function_name_libvlc_media_list_new) function_name_libvlc_media_list_new
(parameters
(identifier_p_instance) identifier_p_instance
)parameters
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(boolean_operator
... | Create an empty media list.
@param p_instance: libvlc instance.
@return: empty media list, or NULL on error. |
(module
(function_definition
(function_name_r2z) function_name_r2z
(parameters
(identifier_r) identifier_r
)parameters
(block
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_np) identifier_np
(... | Function that calculates the Fisher z-transformation
Parameters
----------
r : int or ndarray
Correlation value
Returns
----------
result : int or ndarray
Fishers z transformed correlation value |
(module
(function_definition
(function_name_detect_encoding) function_name_detect_encoding
(parameters
(identifier_fp) identifier_fp
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
)parameters
(block
(expression_statemen... | Detect the cahracter encoding of a file.
:param fp: Open Python file pointer.
:param default: Fallback encoding to use.
:returns: The detected encoding.
.. note:: The file pointer is returned at its original read position. |
(module
(function_definition
(function_name_friendships_create) function_name_friendships_create
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_user_id) identifier_user_id
(None) None
)default_parameter
(default_parameter
(identifie... | Allows the authenticating users to follow the specified user.
https://dev.twitter.com/docs/api/1.1/post/friendships/create
:param str user_id:
The screen name of the user for whom to befriend. Required if
``screen_name`` isn't given.
:param str screen_name:
... |
(module
(function_definition
(function_name_remove_option) function_name_remove_option
(parameters
(identifier_self) identifier_self
(identifier_section) identifier_section
(identifier_name) identifier_name
(default_parameter
(identifier_value) identifier_value
(None) N... | Remove an option from a unit
Args:
section (str): The section to remove from.
name (str): The item to remove.
value (str, optional): If specified, only the option matching this value will be removed
If not specified, all options with ``name... |
(module
(function_definition
(function_name_getAtomLinesForResidueInRosettaStructure) function_name_getAtomLinesForResidueInRosettaStructure
(parameters
(identifier_self) identifier_self
(identifier_resid) identifier_resid
)parameters
(block
(expression_statement
(assignment
... | We assume a Rosetta-generated structure where residues are uniquely identified by number. |
(module
(function_definition
(function_name_kabsch_rmsd) function_name_kabsch_rmsd
(parameters
(identifier_P) identifier_P
(identifier_Q) identifier_Q
(default_parameter
(identifier_translate) identifier_translate
(False) False
)default_parameter
)parameters
(bl... | Rotate matrix P unto Q using Kabsch algorithm and calculate the RMSD.
Parameters
----------
P : array
(N,D) matrix, where N is points and D is dimension.
Q : array
(N,D) matrix, where N is points and D is dimension.
translate : bool
Use centroids to translate vector P and Q ... |
(module
(function_definition
(function_name_hidden_cursor) function_name_hidden_cursor
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
... | Return a context manager that hides the cursor while inside it and
makes it visible on leaving. |
(module
(function_definition
(function_name_is_analyst_assignment_allowed) function_name_is_analyst_assignment_allowed
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
... | Check if the analyst can be assigned |
(module
(function_definition
(function_name_inserted_hs_indices) function_name_inserted_hs_indices
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(ide... | list of int index of each inserted subtotal for the dimension.
Each value represents the position of a subtotal in the interleaved
sequence of elements and subtotals items. |
(module
(function_definition
(function_name_get_branching_nodes) function_name_get_branching_nodes
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_nodes) identifier_nodes
(call
(identifie... | Returns all nodes that has an out degree >= 2 |
(module
(function_definition
(function_name_nodes_with_role) function_name_nodes_with_role
(parameters
(identifier_rolename) identifier_rolename
)parameters
(block
(expression_statement
(assignment
(identifier_nodes) identifier_nodes
(list_comprehension
... | Configures a list of nodes that have the given role in their run list |
(module
(function_definition
(function_name_get_all_parents) function_name_get_all_parents
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ownership) identifier_ownership
(call
(attribute... | Return all parents of this company. |
(module
(function_definition
(function_name__get_all_run_infos) function_name__get_all_run_infos
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_info_dir) identifier_info_dir
(attribute
(... | Find the RunInfos for all runs since the last clean-all. |
(module
(function_definition
(function_name_register_service) function_name_register_service
(parameters
(identifier_service) identifier_service
)parameters
(block
(expression_statement
(assignment
(identifier_frame) identifier_frame
(call
(attribute... | Register the ryu application specified by 'service' as
a provider of events defined in the calling module.
If an application being loaded consumes events (in the sense of
set_ev_cls) provided by the 'service' application, the latter
application will be automatically loaded.
This mechanism is used ... |
(module
(function_definition
(function_name__looks_like_numpy_function) function_name__looks_like_numpy_function
(parameters
(identifier_func_name) identifier_func_name
(identifier_numpy_module_name) identifier_numpy_module_name
(identifier_node) identifier_node
)parameters
(block
... | Return True if the current node correspond to the function inside
the numpy module in parameters
:param node: the current node
:type node: FunctionDef
:param func_name: name of the function
:type func_name: str
:param numpy_module_name: name of the numpy module
:type numpy_module_name: str
... |
(module
(function_definition
(function_name_size_in_bytes) function_name_size_in_bytes
(parameters
(identifier_self) identifier_self
(identifier_offset) identifier_offset
(identifier_timestamp) identifier_timestamp
(identifier_key) identifier_key
(identifier_value) identifier_val... | Actual size of message to add |
(module
(function_definition
(function_name_validate_callback) function_name_validate_callback
(parameters
(identifier_callback) identifier_callback
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(parenthesized_expression
(call
... | validates a callback's on_loop_start and on_loop_end methods
Parameters
----------
callback : Callback object
Returns
-------
validated callback |
(module
(function_definition
(function_name__looks_like_resource_file) function_name__looks_like_resource_file
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(if_statement
(parenthesized_expression
(call
... | Return true if the file has a keyword table but not a testcase table |
(module
(function_definition
(function_name_lstltc) function_name_lstltc
(parameters
(identifier_string) identifier_string
(identifier_n) identifier_n
(identifier_lenvals) identifier_lenvals
(identifier_array) identifier_array
)parameters
(block
(expression_statement
... | Given a character string and an ordered array of character
strings, find the index of the largest array element less than
the given string.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lstltc_c.html
:param string: Upper bound value to search against.
:type string: int
:param n: Numb... |
(module
(function_definition
(function_name__q_iteration) function_name__q_iteration
(parameters
(identifier_self) identifier_self
(identifier_Q) identifier_Q
(identifier_Bpp_solver) identifier_Bpp_solver
(identifier_Vm) identifier_Vm
(identifier_Va) identifier_Va
(identifi... | Performs a Q iteration, updates Vm. |
(module
(function_definition
(function_name_elapsed) function_name_elapsed
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_label) identifier_label
(None) None
)default_parameter
(default_parameter
(identifier_total) identifier_total
... | Get elapsed time since timer start.
Parameters
----------
label : string, optional (default None)
Specify the label of the timer for which the elapsed time is
required. If it is ``None``, the default timer with label
specified by the ``dfltlbl`` parameter of :meth... |
(module
(function_definition
(function_name_setup) function_name_setup
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_netwo... | Create the networks if they don't already exist. |
(module
(function_definition
(function_name_select_and_start_cluster) function_name_select_and_start_cluster
(parameters
(identifier_self) identifier_self
(identifier_platform) identifier_platform
)parameters
(block
(expression_statement
(assignment
(identifier_clus... | Choose a cluster and start a build on it |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_content) identifier_content
(dictionary
)dictionary
)assignment
... | Get a JSON-ready representation of this HtmlContent.
:returns: This HtmlContent, ready for use in a request body.
:rtype: dict |
(module
(function_definition
(function_name__index_entities) function_name__index_entities
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_all_ents) identifier_all_ents
(call
(attribute
... | Sets current instance's entities based on the existing index.
Note: Only entity key/value pairs common to all rows in all contained
Variables are returned. E.g., if a Collection contains Variables
extracted from runs 1, 2 and 3 from subject '01', the returned dict
will be {'... |
(module
(function_definition
(function_name_load_glove) function_name_load_glove
(parameters
(identifier_file) identifier_file
)parameters
(block
(expression_statement
(assignment
(identifier_model) identifier_model
(dictionary
)dictionary
)ass... | Loads GloVe vectors in numpy array.
Args:
file (str): a path to a glove file.
Return:
dict: a dict of numpy arrays. |
(module
(function_definition
(function_name_clear) function_name_clear
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_contours) identifier_contours
(True) True
)default_parameter
(default_parameter
(identifier_components) identifier... | Clear the glyph.
>>> glyph.clear()
This clears:
- contours
- components
- anchors
- guidelines
- image
It's possible to turn off the clearing of portions of
the glyph with the listed arguments.
>>> glyph.clear(guidelines=False) |
(module
(function_definition
(function_name__del_module) function_name__del_module
(parameters
(identifier_self) identifier_self
(identifier_lpBaseOfDll) identifier_lpBaseOfDll
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
... | Private method to remove a module object from the snapshot.
@type lpBaseOfDll: int
@param lpBaseOfDll: Module base address. |
(module
(function_definition
(function_name_asDictionary) function_name_asDictionary
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_template) identifier_template
(dictionary
(pair
... | returns the envelope as a dictionary |
(module
(function_definition
(function_name_start_recording) function_name_start_recording
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_file) identifier_file
(string_'mingus_dump.wav') string_'mingus_dump.wav'
)default_parameter
)parameters... | Initialize a new wave file for recording. |
(module
(function_definition
(function_name_paginator) function_name_paginator
(parameters
(identifier_context) identifier_context
(default_parameter
(identifier_adjacent_pages) identifier_adjacent_pages
(integer_2) integer_2
)default_parameter
)parameters
(block
... | To be used in conjunction with the object_list generic view.
Adds pagination context variables for use in displaying first, adjacent and
last page links in addition to those created by the object_list generic view. |
(module
(function_definition
(function_name_compute_We) function_name_compute_We
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_Eemin) identifier_Eemin
(None) None
)default_parameter
(default_parameter
(identifier_Eemax) identifier_... | Total energy in electrons between energies Eemin and Eemax
Parameters
----------
Eemin : :class:`~astropy.units.Quantity` float, optional
Minimum electron energy for energy content calculation.
Eemax : :class:`~astropy.units.Quantity` float, optional
Maximum ele... |
(module
(function_definition
(function_name_getChemicalPotential) function_name_getChemicalPotential
(parameters
(identifier_self) identifier_self
(identifier_solution) identifier_solution
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isi... | Call solver in order to calculate chemical potential. |
(module
(function_definition
(function_name_get_bug_report) function_name_get_bug_report
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_platform_info) identifier_platform_info
(call
(attribute
(identifier_BugRepo... | Generate information for a bug report
:return: information for bug report |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_redirect_uri) identifier_redirect_uri
(None) None
)default_parameter
)parameters
... | Create a new Device object.
Devices tie Users and Applications together. For your Application to
access and act on behalf of a User, the User must authorize a Device
created by your Application.
This function will return a `device_token` which you must store and use
after the D... |
(module
(function_definition
(function_name_add_arrow) function_name_add_arrow
(parameters
(identifier_self) identifier_self
(identifier_tipLoc) identifier_tipLoc
(default_parameter
(identifier_tail) identifier_tail
(None) None
)default_parameter
(default_paramete... | This method adds a straight arrow that points to
@var{TIPLOC}, which is a tuple of integers. @var{TAIL}
specifies the starting point of the arrow. It is either None
or a string consisting of the following letters: 'l', 'c',
'r', 't', 'm,', and 'b'. Letters 'l', 'c', or 'r' means to
... |
(module
(function_definition
(function_name_contains) function_name_contains
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
... | Checks if the specified item exists.
Args:
key: the key of the item to lookup.
Returns:
True if the item exists; False otherwise.
Raises:
Exception if there was an error requesting information about the item. |
(module
(function_definition
(function_name_set_spacing) function_name_set_spacing
(parameters
(identifier_self) identifier_self
(identifier_new_spacing) identifier_new_spacing
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) ... | Set image spacing
Arguments
---------
new_spacing : tuple or list
updated spacing for the image.
should have one value for each dimension
Returns
-------
None |
(module
(function_definition
(function_name_check_cmake_exists) function_name_check_cmake_exists
(parameters
(identifier_cmake_command) identifier_cmake_command
)parameters
(block
(import_from_statement
(dotted_name
(identifier_subprocess) identifier_subprocess
)d... | Check whether CMake is installed. If not, print
informative error message and quits. |
(module
(function_definition
(function_name_logs) function_name_logs
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_service_id) identifier_service_id
(type
(identifier_str) identifier_str
)type
)typed_parameter
(keyword_sepa... | Retrieve logs of the given service
Args:
details: show service context and extra details provided to logs
follow: return the logs as a stream.
stdout: return logs from stdout
stderr: return logs from stderr
since: return logs since this time, as a UNI... |
(module
(function_definition
(function_name_pad_sentences) function_name_pad_sentences
(parameters
(identifier_sentences) identifier_sentences
(default_parameter
(identifier_padding_word) identifier_padding_word
(string_"</s>") string_"</s>"
)default_parameter
)parameters... | Pads all sentences to the same length. The length is defined by the longest sentence.
Returns padded sentences. |
(module
(function_definition
(function_name_exists) function_name_exists
(parameters
(identifier_self) identifier_self
(identifier_digest) identifier_digest
)parameters
(block
(return_statement
(call
(attribute
(attribute
(attribute
... | Check if a blob exists
:param digest: Hex digest of the blob
:return: Boolean indicating existence of the blob |
(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
(expression_statement
(assignmen... | Update a resource in a remote Transifex server. |
(module
(function_definition
(function_name_get_record_value) function_name_get_record_value
(parameters
(identifier_request) identifier_request
(identifier_uid) identifier_uid
(identifier_keyword) identifier_keyword
(default_parameter
(identifier_default) identifier_default
... | Returns the value for the keyword and uid from the request |
(module
(function_definition
(function_name_abort) function_name_abort
(parameters
(identifier_status_code) identifier_status_code
(default_parameter
(identifier_message) identifier_message
(None) None
)default_parameter
)parameters
(block
(if_statement
... | Raise an exception based on SanicException. Returns the HTTP response
message appropriate for the given status code, unless provided.
:param status_code: The HTTP status code to return.
:param message: The HTTP response body. Defaults to the messages
in response.py for the given status ... |
(module
(function_definition
(function_name__prepare_resource_chunks) function_name__prepare_resource_chunks
(parameters
(identifier_self) identifier_self
(identifier_resources) identifier_resources
(default_parameter
(identifier_resource_delim) identifier_resource_delim
(str... | As in some VirusTotal API methods the call can be made for multiple
resources at once this method prepares a list of concatenated resources
according to the maximum number of resources per requests.
Args:
resources: a list of the resources.
resource_delim: a string used ... |
(module
(function_definition
(function_name_row) function_name_row
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(for_statement
(identifier_column) identifier_column
(attribute
(identifier_self) identifier... | Return a formatted row for the given data. |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_uuid) identifier_uuid
)parameters
(block
(if_statement
(identifier_uuid) identifier_uuid
(block
(try_statement
(block
... | Adds a key to the HyperLogLog |
(module
(function_definition
(function_name_update_buttons) function_name_update_buttons
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_current_scheme) identifier_current_scheme
(attribute
... | Updates the enable status of delete and reset buttons. |
(module
(function_definition
(function_name_split_arguments) function_name_split_arguments
(parameters
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_prev) identifier_prev
(False) False
)assignment
... | Split specified arguments to two list.
This is used to distinguish the options of the program and
execution command/arguments.
Parameters
----------
args : list
Command line arguments
Returns
-------
list : options, arguments
options indicate the optional arguments for... |
(module
(function_definition
(function_name_right) function_name_right
(parameters
(identifier_ctx) identifier_ctx
(identifier_text) identifier_text
(identifier_num_chars) identifier_num_chars
)parameters
(block
(expression_statement
(assignment
(identifier_nu... | Returns the last characters in a text string |
(module
(function_definition
(function_name_get_route) function_name_get_route
(parameters
(identifier_self) identifier_self
(identifier_route_id) identifier_route_id
)parameters
(block
(expression_statement
(assignment
(identifier_raw) identifier_raw
(cal... | Gets specified route.
Will be detail-level if owned by authenticated user; otherwise summary-level.
https://strava.github.io/api/v3/routes/#retreive
:param route_id: The ID of route to fetch.
:type route_id: int
:rtype: :class:`stravalib.model.Route` |
(module
(function_definition
(function_name_merge_dicts) function_name_merge_dicts
(parameters
(identifier_dict1) identifier_dict1
(identifier_dict2) identifier_dict2
(default_parameter
(identifier_deep_merge) identifier_deep_merge
(True) True
)default_parameter
)pa... | Merge dict2 into dict1. |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_close) identifier_close
... | Delete the file. |
(module
(function_definition
(function_name__overwrite) function_name__overwrite
(parameters
(identifier_self) identifier_self
(identifier_n) identifier_n
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_os) identifi... | Overwrite old file with new and keep file with suffix .old |
(module
(function_definition
(function_name_create_d1_dn_subject) function_name_create_d1_dn_subject
(parameters
(identifier_common_name_str) identifier_common_name_str
)parameters
(block
(return_statement
(call
(attribute
(attribute
(identifier_... | Create the DN Subject for certificate that will be used in a DataONE environment.
The DN is formatted into a DataONE subject, which is used in authentication,
authorization and event tracking.
Args:
common_name_str: str
DataONE uses simple DNs without physical location information, so ... |
(module
(function_definition
(function_name_events) function_name_events
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_events) identifier_events
)list_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
... | Sends multiple events in a single message
>>> client.events({'service': 'riemann-client', 'state': 'awesome'})
:param \*events: event dictionaries for :py:func:`create_event`
:returns: The response message from Riemann |
(module
(function_definition
(function_name_has_path) function_name_has_path
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_method) identifier_method
(None) None
)default_parameter
)parameters
(bloc... | Returns True if this Swagger has the given path and optional method
:param string path: Path name
:param string method: HTTP method
:return: True, if this path/method is present in the document |
(module
(function_definition
(function_name_set_category) function_name_set_category
(parameters
(identifier_self) identifier_self
(identifier_category) identifier_category
)parameters
(block
(expression_statement
(assignment
(identifier_pcategory) identifier_pcateg... | Set the policy's category.
Args:
category: A category object. |
(module
(function_definition
(function_name_append_tag) function_name_append_tag
(parameters
(identifier_self) identifier_self
(identifier_field_number) identifier_field_number
(identifier_wire_type) identifier_wire_type
)parameters
(block
(expression_statement
(call
... | Appends a tag containing field number and wire type information. |
(module
(function_definition
(function_name_delete_operation) function_name_delete_operation
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_retry) identifier_retry
(attribute
(attribute
(ide... | Deletes a long-running operation.
This method indicates that the client is no longer interested in the
operation result. It does not cancel the operation.
Example:
>>> from google.api_core import operations_v1
>>> api = operations_v1.OperationsClient()
>>> n... |
(module
(function_definition
(function_name_enable_digital_reporting) function_name_enable_digital_reporting
(parameters
(identifier_self) identifier_self
(identifier_command) identifier_command
)parameters
(block
(expression_statement
(assignment
(identifier_pin) i... | Enable Firmata reporting for a digital pin.
:param command: {"method": "enable_digital_reporting", "params": [PIN]}
:returns: {"method": "digital_message_reply", "params": [PIN, DIGITAL_DATA_VALUE]} |
(module
(function_definition
(function_name_rename) function_name_rename
(parameters
(identifier_name) identifier_name
)parameters
(block
(import_from_statement
(dotted_name
(identifier_peltak) identifier_peltak
(identifier_extra) identifier_extra
(ide... | Give the currently developed hotfix a new name. |
(module
(function_definition
(function_name__validate_sub) function_name__validate_sub
(parameters
(identifier_claims) identifier_claims
(default_parameter
(identifier_subject) identifier_subject
(None) None
)default_parameter
)parameters
(block
(if_statement
... | Validates that the 'sub' claim is valid.
The "sub" (subject) claim identifies the principal that is the
subject of the JWT. The claims in a JWT are normally statements
about the subject. The subject value MUST either be scoped to be
locally unique in the context of the issuer or be globally unique.
... |
(module
(function_definition
(function_name_get_days_off) function_name_get_days_off
(parameters
(identifier_transactions) identifier_transactions
)parameters
(block
(expression_statement
(assignment
(identifier_days_off) identifier_days_off
(list
)lis... | Return the dates for any 'take day off' transactions. |
(module
(function_definition
(function_name_rebin) function_name_rebin
(parameters
(identifier_self) identifier_self
(identifier_factor) identifier_factor
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
... | I robustly rebin your image by a given factor.
You simply specify a factor, and I will eventually take care of a crop to bring
the image to interger-multiple-of-your-factor dimensions.
Note that if you crop your image before, you must directly crop to compatible dimensions !
We update th... |
(module
(function_definition
(function_name__exec_cmd) function_name__exec_cmd
(parameters
(identifier_self) identifier_self
(identifier_args) identifier_args
(identifier_shell) identifier_shell
(identifier_timeout) identifier_timeout
(identifier_stderr) identifier_stderr
)pa... | Executes adb commands.
Args:
args: string or list of strings, program arguments.
See subprocess.Popen() documentation.
shell: bool, True to run this command through the system shell,
False to invoke it directly. See subprocess.Popen() docs.
ti... |
(module
(function_definition
(function_name_subscribers) function_name_subscribers
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_date) identifier_date
(string_"") string_""
)default_parameter
(default_parameter
(identifier_page) id... | Gets the active subscribers in this segment. |
(module
(function_definition
(function_name_dumps) function_name_dumps
(parameters
(identifier_obj) identifier_obj
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary... | Typeless dump an object to json string |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_user_id) identifier_user_id
(identifier_resource_policy) identifier_resource_policy
(identifier_admin) identifier_admin
(identifier_inactive) identifier_inactive
(identifier_rate_limit) ide... | Add a new keypair.
USER_ID: User ID of a new key pair.
RESOURCE_POLICY: resource policy for new key pair. |
(module
(function_definition
(function_name__reload_config) function_name__reload_config
(parameters
(identifier_self) identifier_self
(identifier_reload_original_config) identifier_reload_original_config
)parameters
(block
(if_statement
(identifier_reload_original_config) id... | This command will update the running config from the live device.
Args:
* reload_original_config:
* If ``True`` the original config will be loaded with the running config before reloading the\
original config.
* If ``False`` the original config will r... |
(module
(function_definition
(function_name_get_relative_to_remote) function_name_get_relative_to_remote
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_s) identifier_s
(subscript
(call
... | Return the number of commits we are relative to the remote. Negative
is behind, positive in front, zero means we are matched to remote. |
(module
(function_definition
(function_name__init) function_name__init
(parameters
)parameters
(block
(if_statement
(parenthesized_expression
(boolean_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(... | Initialize the furious context and registry.
NOTE: Do not directly run this method. |
(module
(function_definition
(function_name_process_response) function_name_process_response
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_response) identifier_response
)parameters
(block
(if_statement
(call
... | Shares config with the language cookie as they serve a similar purpose |
(module
(function_definition
(function_name_compute_qkv) function_name_compute_qkv
(parameters
(identifier_query_antecedent) identifier_query_antecedent
(identifier_memory_antecedent) identifier_memory_antecedent
(identifier_total_key_depth) identifier_total_key_depth
(identifier_total... | Computes query, key and value.
Args:
query_antecedent: a Tensor with shape [batch, length_q, channels]
memory_antecedent: a Tensor with shape [batch, length_m, channels]
total_key_depth: an integer
total_value_depth: an integer
q_filter_width: An integer specifying how wide you want the query to ... |
(module
(function_definition
(function_name_data) function_name_data
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_content) identifier_content
(dictionary
(pair
(string_'f... | This is the data object serialized to the js layer |
(module
(function_definition
(function_name_log) function_name_log
(parameters
(identifier_self) identifier_self
(identifier_time) identifier_time
(identifier_message) identifier_message
(default_parameter
(identifier_level) identifier_level
(None) None
)default_p... | Logs a message with attachment.
The attachment is a dict of:
name: name of attachment
data: file content
mime: content type for attachment |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.