sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_view_contents) function_name_view_contents
(parameters
(identifier_token) identifier_token
(identifier_dstore) identifier_dstore
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
... | Returns the size of the contents of the datastore and its total size |
(module
(function_definition
(function_name_list_instance_profiles) function_name_list_instance_profiles
(parameters
(default_parameter
(identifier_path_prefix) identifier_path_prefix
(string_'/') string_'/'
)default_parameter
(default_parameter
(identifier_region) id... | List all IAM instance profiles, starting at the optional path.
.. versionadded:: 2016.11.0
CLI Example:
salt-call boto_iam.list_instance_profiles |
(module
(function_definition
(function_name_wait_for_responses) function_name_wait_for_responses
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
... | Block the thread and wait for the response to the given request to
arrive from the VI. If no matching response is received in
COMMAND_RESPONSE_TIMEOUT_S seconds, returns anyway. |
(module
(function_definition
(function_name__is_valid_string) function_name__is_valid_string
(parameters
(identifier_self) identifier_self
(identifier_inpt) identifier_inpt
(identifier_metadata) identifier_metadata
)parameters
(block
(if_statement
(not_operator
... | Checks if input is a valid string |
(module
(function_definition
(function_name_up_threshold) function_name_up_threshold
(parameters
(identifier_x) identifier_x
(identifier_s) identifier_s
(identifier_p) identifier_p
)parameters
(block
(if_statement
(comparison_operator
(binary_operator
... | function to decide if similarity is
below cutoff |
(module
(function_definition
(function_name_re_enqueue) function_name_re_enqueue
(parameters
(identifier_self) identifier_self
(identifier_item) identifier_item
)parameters
(block
(if_statement
(comparison_operator
(string_'retries') string_'retries'
(iden... | Re-enqueue till reach max retries. |
(module
(function_definition
(function_name_renames) function_name_renames
(parameters
(identifier_from_path) identifier_from_path
(identifier_to_path) identifier_to_path
(default_parameter
(identifier_user) identifier_user
(None) None
)default_parameter
)parameters... | Rename ``from_path`` to ``to_path``, creating parents as needed. |
(module
(function_definition
(function_name_prune_cached) function_name_prune_cached
(parameters
(identifier_values) identifier_values
)parameters
(block
(import_statement
(dotted_name
(identifier_os) identifier_os
)dotted_name
)import_statement
(expre... | Remove the items that have already been cached. |
(module
(function_definition
(function_name_msquared) function_name_msquared
(parameters
(identifier_self) identifier_self
(identifier_benchmark) identifier_benchmark
(default_parameter
(identifier_rf) identifier_rf
(float_0.02) float_0.02
)default_parameter
(defa... | M-squared, return scaled by relative total risk.
A measure of what a portfolio would have returned if it had
taken on the same *total* risk as the market index.
[Source: CFA Institute]
Parameters
----------
benchmark : {pd.Series, TSeries, 1d np.ndarray}
The... |
(module
(function_definition
(function_name_build_timeout_circuit) function_name_build_timeout_circuit
(parameters
(identifier_tor_state) identifier_tor_state
(identifier_reactor) identifier_reactor
(identifier_path) identifier_path
(identifier_timeout) identifier_timeout
(defaul... | Build a new circuit within a timeout.
CircuitBuildTimedOutError will be raised unless we receive a
circuit build result (success or failure) within the `timeout`
duration.
:returns: a Deferred which fires when the circuit build succeeds (or
fails to build). |
(module
(function_definition
(function_name__set_combobox) function_name__set_combobox
(parameters
(identifier_self) identifier_self
(identifier_attrname) identifier_attrname
(identifier_vals) identifier_vals
(default_parameter
(identifier_default) identifier_default
(i... | Populate combobox with given list. |
(module
(function_definition
(function_name_destroy) function_name_destroy
(parameters
(identifier_self) identifier_self
)parameters
(block
(while_statement
(True) True
(block
(try_statement
(block
(expression_statement
(a... | Disconnects all pooled client objects. |
(module
(function_definition
(function_name_shuffle) function_name_shuffle
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_overwrite) identifier_overwrite
(False) False
)default_parameter
)parameters
(block
(if_statement
(ide... | This method creates new shuffled file. |
(module
(function_definition
(function_name_get_templatetype) function_name_get_templatetype
(parameters
(identifier_type_id) identifier_type_id
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_stat... | Get a specific resource type by ID. |
(module
(function_definition
(function_name__unpack_episode_title) function_name__unpack_episode_title
(parameters
(typed_parameter
(identifier_element) identifier_element
(type
(attribute
(identifier_ET) identifier_ET
(identifier_Element) identifier_Ele... | Unpack EpisodeTitle from title XML element. |
(module
(function_definition
(function_name_read_ma_array) function_name_read_ma_array
(parameters
(identifier_self) identifier_self
(identifier_infile) identifier_infile
(identifier_var_name) identifier_var_name
)parameters
(block
(expression_statement
(assignment
... | Create a masked array based on cdf's FillValue |
(module
(function_definition
(function_name__find_files) function_name__find_files
(parameters
(typed_parameter
(identifier_dirpath) identifier_dirpath
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(string_'Iterable[s... | Find files recursively.
Returns a generator that yields paths in no particular order. |
(module
(function_definition
(function_name_date_to_jd) function_name_date_to_jd
(parameters
(identifier_year) identifier_year
(identifier_month) identifier_month
(identifier_day) identifier_day
)parameters
(block
(if_statement
(boolean_operator
(comparison_op... | Convert a date to Julian Day.
Algorithm from 'Practical Astronomy with your Calculator or Spreadsheet',
4th ed., Duffet-Smith and Zwart, 2011.
Parameters
----------
year : int
Year as integer. Years preceding 1 A.D. should be 0 or negative.
The year before 1 A.D. is 0, 10 B.C.... |
(module
(function_definition
(function_name_lex_document) function_name_lex_document
(parameters
(identifier_self) identifier_self
(identifier_document) identifier_document
)parameters
(block
(expression_statement
(assignment
(identifier_location) identifier_locatio... | Call the lexer and return a get_tokens_for_line function. |
(module
(function_definition
(function_name__assemble_regulate_amount) function_name__assemble_regulate_amount
(parameters
(identifier_stmt) identifier_stmt
)parameters
(block
(expression_statement
(assignment
(identifier_obj_str) identifier_obj_str
(call
... | Assemble RegulateAmount statements into text. |
(module
(function_definition
(function_name__read_hdf_columns) function_name__read_hdf_columns
(parameters
(identifier_path_or_buf) identifier_path_or_buf
(identifier_columns) identifier_columns
(identifier_num_splits) identifier_num_splits
(identifier_kwargs) identifier_kwargs
)pa... | Use a Ray task to read columns from HDF5 into a Pandas DataFrame.
Note: Ray functions are not detected by codecov (thus pragma: no cover)
Args:
path_or_buf: The path of the HDF5 file.
columns: The list of column names to read.
num_splits: The number of partitions to split the column in... |
(module
(function_definition
(function_name_move) function_name_move
(parameters
(identifier_self) identifier_self
(identifier_auth) identifier_auth
(identifier_resource) identifier_resource
(identifier_destinationresource) identifier_destinationresource
(default_parameter
... | Moves a resource from one parent client to another.
Args:
auth: <cik>
resource: Identifed resource to be moved.
destinationresource: resource of client resource is being moved to. |
(module
(function_definition
(function_name__len_lcs) function_name__len_lcs
(parameters
(identifier_x) identifier_x
(identifier_y) identifier_y
)parameters
(block
(expression_statement
(assignment
(identifier_table) identifier_table
(call
(ide... | Returns the length of the Longest Common Subsequence between two seqs.
Source: http://www.algorithmist.com/index.php/Longest_Common_Subsequence
Args:
x: sequence of words
y: sequence of words
Returns
integer: Length of LCS between x and y |
(module
(function_definition
(function_name_error) function_name_error
(parameters
(identifier_self) identifier_self
(identifier_id) identifier_id
(identifier_errorCode) identifier_errorCode
(identifier_errorString) identifier_errorString
)parameters
(block
(if_statement
... | Error during communication with TWS |
(module
(function_definition
(function_name_html) function_name_html
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(attribute
(identifier_self) identifier_self... | Gives an html representation of the assessment. |
(module
(function_definition
(function_name_pair_list) function_name_pair_list
(parameters
(identifier_args) identifier_args
)parameters
(block
(if_statement
(boolean_operator
(attribute
(identifier_args) identifier_args
(identifier_entity_type) id... | List pairs within a container. |
(module
(function_definition
(function_name_rank) function_name_rank
(parameters
(identifier_items) identifier_items
(default_parameter
(identifier_sequence) identifier_sequence
(attribute
(identifier_string) identifier_string
(identifier_ascii_lowercase) identi... | Rank items from sequence in colexicographical order.
>>> [rank(i) for i in ('', 'a', 'b', 'ab', 'c')]
[0, 1, 2, 3, 4]
>>> rank('spam')
299009 |
(module
(function_definition
(function_name__decode_image) function_name__decode_image
(parameters
(identifier_fobj) identifier_fobj
(identifier_session) identifier_session
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
... | Reads and decodes an image from a file object as a Numpy array.
The SUN dataset contains images in several formats (despite the fact that
all of them have .jpg extension). Some of them are:
- BMP (RGB)
- PNG (grayscale, RGBA, RGB interlaced)
- JPEG (RGB)
- GIF (1-frame RGB)
Since TFDS assumes tha... |
(module
(function_definition
(function_name_create_perm) function_name_create_perm
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_using) identifier_using
(None) None
)default_parameter
(list_splat_pattern
(identifier_args) identifie... | Creates a fake content type and permission
to be able to check for permissions |
(module
(function_definition
(function_name__match) function_name__match
(parameters
(identifier_self) identifier_self
(identifier_struct1) identifier_struct1
(identifier_struct2) identifier_struct2
(identifier_fu) identifier_fu
(default_parameter
(identifier_s1_supercell... | Matches one struct onto the other |
(module
(function_definition
(function_name_get_oldest_commit_date) function_name_get_oldest_commit_date
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_oldest_commit) identifier_oldest_commit
(call
... | Get datetime of oldest commit involving this file
:returns: Datetime of oldest commit |
(module
(function_definition
(function_name_generate_method_deprecation_message) function_name_generate_method_deprecation_message
(parameters
(identifier_to_be_removed_in_version) identifier_to_be_removed_in_version
(identifier_old_method_name) identifier_old_method_name
(default_parameter
... | Generate a message to be used when warning about the use of deprecated methods.
:param to_be_removed_in_version: Version of this module the deprecated method will be removed in.
:type to_be_removed_in_version: str
:param old_method_name: Deprecated method name.
:type old_method_name: str
:param me... |
(module
(function_definition
(function_name__assign_values_to_unbound_vars) function_name__assign_values_to_unbound_vars
(parameters
(identifier_unbound_vars) identifier_unbound_vars
(identifier_unbound_var_values) identifier_unbound_var_values
)parameters
(block
(expression_statemen... | Assigns values to the vars and raises ValueError if one is missing. |
(module
(function_definition
(function_name__load_config) function_name__load_config
(parameters
(identifier_configfile) identifier_configfile
(default_parameter
(identifier_section) identifier_section
(None) None
)default_parameter
)parameters
(block
(if_statem... | general function to load and return a configuration given a helper
name. This function is used for both the user config and global help me
config files. |
(module
(function_definition
(function_name_make_valid_string) function_name_make_valid_string
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_string) identifier_string
(string_'') string_''
)default_parameter
)parameters
(block
(if_... | Inputting a value for the first time |
(module
(function_definition
(function_name_unpack_types) function_name_unpack_types
(parameters
(identifier_types) identifier_types
(identifier_args) identifier_args
(identifier_argnames) identifier_argnames
(identifier_major) identifier_major
)parameters
(block
(if_stat... | Parse arguments according to types list.
Parameters
----------
types : list of kattypes
The types of the arguments (in order).
args : list of strings
The arguments to parse.
argnames : list of strings
The names of the arguments.
major : integer
Major version of K... |
(module
(function_definition
(function_name_get_match_details) function_name_get_match_details
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_match_id) identifier_match_id
(None) None
)default_parameter
(dictionary_splat_pattern
(id... | Returns a dictionary containing the details for a Dota 2 match
:param match_id: (int, optional)
:return: dictionary of matches, see :doc:`responses </responses>` |
(module
(function_definition
(function_name_get_client_ip) function_name_get_client_ip
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_client_ip) identifier_client_ip
... | Return the client IP from the environment. |
(module
(function_definition
(function_name_apply_child_computation) function_name_apply_child_computation
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_child_msg) identifier_child_msg
(type
(identifier_Message) identifier_Message
)typ... | Apply the vm message ``child_msg`` as a child computation. |
(module
(function_definition
(function_name_check) function_name_check
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_check_url) identifier_check_url
(None) None
)default_parameter
)parameters
(block
(if_statement
(compariso... | Checks whether a server is running.
:param str check_url:
URL where to check whether the server is running.
Default is ``"http://{self.host}:{self.port}"``. |
(module
(function_definition
(function_name_to_ufo_components) function_name_to_ufo_components
(parameters
(identifier_self) identifier_self
(identifier_ufo_glyph) identifier_ufo_glyph
(identifier_layer) identifier_layer
)parameters
(block
(expression_statement
(assignm... | Draw .glyphs components onto a pen, adding them to the parent glyph. |
(module
(function_definition
(function_name_lock) function_name_lock
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_atime) identifier_atime
(integer_30) integer_30
)default_parameter
(default_parameter
(identifier_ltime) identifier_... | Context manager to acquire the namespace global lock.
This is typically used for multi-step registry operations,
such as a read-modify-write sequence::
with registry.lock() as session:
d = session.get('dict', 'key')
del d['traceback']
session... |
(module
(function_definition
(function_name_projection_to_raster_coords) function_name_projection_to_raster_coords
(parameters
(identifier_self) identifier_self
(identifier_lat) identifier_lat
(identifier_lon) identifier_lon
)parameters
(block
(expression_statement
(ass... | Returns pixel centers.
See documentation for the GDAL function GetGeoTransform for details. |
(module
(function_definition
(function_name_get_api_docs) function_name_get_api_docs
(parameters
(identifier_routes) identifier_routes
)parameters
(block
(expression_statement
(assignment
(identifier_routes) identifier_routes
(call
(identifier_map) i... | Generates GitHub Markdown formatted API documentation using
provided schemas in RequestHandler methods and their docstrings.
:type routes: [(url, RequestHandler), ...]
:param routes: List of routes (this is ideally all possible routes of the
app)
:rtype: str
:returns: generated GFM-formatt... |
(module
(function_definition
(function_name_create_contact) function_name_create_contact
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_email) identifier_email
(None) None
)default_parameter
(default_parameter
(identifier_first_name... | Create a contant which is later passed to payment. |
(module
(function_definition
(function_name_error) function_name_error
(parameters
(identifier_self) identifier_self
(identifier_correlation_id) identifier_correlation_id
(identifier_error) identifier_error
(identifier_message) identifier_message
(list_splat_pattern
(iden... | Logs recoverable application error.
:param correlation_id: (optional) transaction id to trace execution through call chain.
:param error: an error object associated with this message.
:param message: a human-readable message to log.
:param args: arguments to parameterize the message.... |
(module
(function_definition
(function_name__check_db_exists) function_name__check_db_exists
(parameters
(identifier_self) identifier_self
(identifier_instance) identifier_instance
)parameters
(block
(expression_statement
(assignment
(pattern_list
(ident... | Check if the database we're targeting actually exists
If not then we won't do any checks
This allows the same config to be installed on many servers but fail gracefully |
(module
(function_definition
(function_name__flip_lr) function_name__flip_lr
(parameters
(identifier_x) identifier_x
)parameters
(block
(expression_statement
(string_"Flip `x` horizontally.") string_"Flip `x` horizontally."
)expression_statement
(if_statement
(c... | Flip `x` horizontally. |
(module
(function_definition
(function_name_CopyAttributesFromSessionCompletion) function_name_CopyAttributesFromSessionCompletion
(parameters
(identifier_self) identifier_self
(identifier_session_completion) identifier_session_completion
)parameters
(block
(if_statement
(com... | Copies attributes from a session completion.
Args:
session_completion (SessionCompletion): session completion attribute
container.
Raises:
ValueError: if the identifier of the session completion does not match
that of the session. |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_function) identifier_function
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_oper... | Get a setting.
`name` should be the name of the setting to look for. If the
optional argument `function` is passed, this will look for a
value local to the function before retrieving the global
value. |
(module
(function_definition
(function_name_identity) function_name_identity
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_dataset) ident... | Return this partition information as a PartitionId. |
(module
(function_definition
(function_name_list_registered_stateful_ops_without_inputs) function_name_list_registered_stateful_ops_without_inputs
(parameters
)parameters
(block
(return_statement
(call
(identifier_set) identifier_set
(argument_list
(list_c... | Returns set of registered stateful ops that do not expect inputs.
This list is used to identify the ops to be included in the state-graph and
that are subsequently fed into the apply-graphs.
Returns:
A set of strings. |
(module
(function_definition
(function_name_upgradeUpload) function_name_upgradeUpload
(parameters
(identifier_self) identifier_self
(identifier_file) identifier_file
)parameters
(block
(expression_statement
(assignment
(identifier_files) identifier_files
... | Upgrade the firmware of the miner. |
(module
(function_definition
(function_name_write_config) function_name_write_config
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_template) identifier_template
(call
(attribute
... | Writes the provisioner's config file to disk and returns None.
:return: None |
(module
(function_definition
(function_name_add_field_with_label) function_name_add_field_with_label
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_label_description) identifier_label_description
(identifier_field) identifier_field
)parame... | Adds a field to the dialog together with a descriptive label and a unique identifier.
Note: You can access to the fields content calling the function GenericDialog.get_field(key).
Args:
key (str): The unique identifier for the field.
label_description (str): The string content ... |
(module
(function_definition
(function_name_describe_api_integration) function_name_describe_api_integration
(parameters
(identifier_restApiId) identifier_restApiId
(identifier_resourcePath) identifier_resourcePath
(identifier_httpMethod) identifier_httpMethod
(default_parameter
... | Get an integration for a given method in a given API
CLI Example:
.. code-block:: bash
salt myminion boto_apigateway.describe_api_integration restApiId resourcePath httpMethod |
(module
(function_definition
(function_name_stop_tracing_process) function_name_stop_tracing_process
(parameters
(identifier_self) identifier_self
(identifier_pid) identifier_pid
)parameters
(block
(for_statement
(identifier_thread) identifier_thread
(call
(... | Stop tracing mode for all threads in the given process.
@type pid: int
@param pid: Global ID of process to stop tracing. |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(identifier_public_key) identifier_public_key
(default_parameter
(identifier_friendly_name) identifier_friendly_name
(attribute
(identifier_values)... | Create a new PublicKeyInstance
:param unicode public_key: A URL encoded representation of the public key
:param unicode friendly_name: A string to describe the resource
:param unicode account_sid: The Subaccount this Credential should be associated with.
:returns: Newly created PublicK... |
(module
(function_definition
(function_name_select_device_by_load) function_name_select_device_by_load
(parameters
(default_parameter
(identifier_wproc) identifier_wproc
(float_0.5) float_0.5
)default_parameter
(default_parameter
(identifier_wmem) identifier_wmem
... | Set the current device for cupy as the device with the lowest
weighted average of processor and memory load. |
(module
(function_definition
(function_name_render) function_name_render
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(string_"Re-render Jupyter cell for batch of images.") string_"Re-render Jupyter cell for batch of images."
)express... | Re-render Jupyter cell for batch of images. |
(module
(function_definition
(function_name_concatenate) function_name_concatenate
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
)parameters
(block
(expression_statement
(assignment
(identifier_other) identifier_other
(c... | Returns the concatenation of the dimension in `self` and `other`.
*N.B.* If either `self` or `other` is completely unknown,
concatenation will discard information about the other shape. In
future, we might support concatenation that preserves this
information for use with slicing.
... |
(module
(function_definition
(function_name_splitlines) function_name_splitlines
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_keepends) identifier_keepends
(False) False
)default_parameter
)parameters
(block
(expression_statement
... | Return a list of lines, split on newline characters,
include line boundaries, if keepends is true. |
(module
(function_definition
(function_name_output_files) function_name_output_files
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_outs) identifier_outs
(list_comprehension
(call
... | Returns list of output files from this rule, relative to buildroot.
In this case it's simple (for now) - the output files are enumerated in
the rule definition. |
(module
(function_definition
(function_name_check_complicance) function_name_check_complicance
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(boolean_o... | Check compliance with Media RSS Specification, Version 1.5.1.
see http://www.rssboard.org/media-rss
Raises AttributeError on error. |
(module
(function_definition
(function_name_user_remove) function_name_user_remove
(parameters
(identifier_user) identifier_user
(default_parameter
(identifier_host) identifier_host
(string_'localhost') string_'localhost'
)default_parameter
(dictionary_splat_pattern
... | Delete MySQL user
CLI Example:
.. code-block:: bash
salt '*' mysql.user_remove frank localhost |
(module
(function_definition
(function_name_time_to_seconds) function_name_time_to_seconds
(parameters
(identifier_x) identifier_x
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_x) iden... | Convert a time in a seconds sum |
(module
(function_definition
(function_name_process_prefix) function_name_process_prefix
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_prefix) identifier_prefix
(type
(identifier_str) identifier_str
)type
)typed_parameter
)pa... | Add namespace to graph if it has a local match
This allows qnames to be used without adding their respected namespaces if they are in
the common_namespaces local dict. This is is to save a butt-ton of time trying to see what
the ontology has as far as uris go.
Args: prefix: prefix of t... |
(module
(function_definition
(function_name_done) function_name_done
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(attri... | Returns True if the call was successfully cancelled or finished
running, False otherwise. This function updates the executionQueue
so it receives all the awaiting message. |
(module
(function_definition
(function_name_add_personalization) function_name_add_personalization
(parameters
(identifier_self) identifier_self
(identifier_personalization) identifier_personalization
(default_parameter
(identifier_index) identifier_index
(integer_0) integer_... | Add a Personaliztion object
:param personalizations: Add a Personalization object
:type personalizations: Personalization
:param index: The index where to add the Personalization
:type index: int |
(module
(function_definition
(function_name_generate_report) function_name_generate_report
(parameters
(identifier_book_url) identifier_book_url
)parameters
(block
(expression_statement
(assignment
(identifier_shares_no) identifier_shares_no
(None) None
... | Generates an HTML report content. |
(module
(function_definition
(function_name__all) function_name__all
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary... | Return all the summary of the particular system. |
(module
(function_definition
(function_name_build_from_yamlstr) function_name_build_from_yamlstr
(parameters
(identifier_cls) identifier_cls
(identifier_yamlstr) identifier_yamlstr
)parameters
(block
(expression_statement
(assignment
(identifier_top_dict) identifier... | Build a list of components from a yaml string |
(module
(function_definition
(function_name_beam_splitter) function_name_beam_splitter
(parameters
(identifier_ax) identifier_ax
(identifier_p0) identifier_p0
(default_parameter
(identifier_size) identifier_size
(float_2.54) float_2.54
)default_parameter
(default_... | r"""Draw a beam splitter. |
(module
(function_definition
(function_name_time_stats) function_name_time_stats
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_... | Get time stats for the object.
Args:
**kwargs: Extra options to send to the server (e.g. sudo)
Raises:
GitlabAuthenticationError: If authentication is not correct
GitlabTimeTrackingError: If the time tracking update cannot be done |
(module
(function_definition
(function_name_to_dict) function_name_to_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(dictionary
)dictionary
)assignment
... | Transform the date-range to a dict. |
(module
(function_definition
(function_name_from_file) function_name_from_file
(parameters
(identifier_cls) identifier_cls
(identifier_fp) identifier_fp
(default_parameter
(identifier_is_outlook) identifier_is_outlook
(False) False
)default_parameter
)parameters
... | Init a new object from a file path.
Args:
fp (string): file path of raw email
is_outlook (boolean): if True is an Outlook email
Returns:
Instance of MailParser |
(module
(function_definition
(function_name_query) function_name_query
(parameters
(identifier_self) identifier_self
(identifier_query) identifier_query
(default_parameter
(identifier_max_results) identifier_max_results
(None) None
)default_parameter
(default_para... | Submit a query to BigQuery.
Parameters
----------
query : str
BigQuery query string
max_results : int, optional
The maximum number of rows to return per page of results.
timeout : float, optional
How long to wait for the query to complete, in ... |
(module
(function_definition
(function_name_from_xml) function_name_from_xml
(parameters
(identifier_self) identifier_self
(identifier_doc) identifier_doc
)parameters
(block
(import_statement
(dotted_name
(identifier_xml) identifier_xml
(identifier_sax) id... | Load this domain based on an XML document |
(module
(function_definition
(function_name_download) function_name_download
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_page) identifie... | Downloads HTML from url. |
(module
(function_definition
(function_name_notimplemented) function_name_notimplemented
(parameters
(identifier_func) identifier_func
)parameters
(block
(function_definition
(function_name_newfunc) function_name_newfunc
(parameters
(list_splat_pattern
... | Raises a NotImplementedError if the function is called. |
(module
(function_definition
(function_name__read_routes_c_v1) function_name__read_routes_c_v1
(parameters
)parameters
(block
(function_definition
(function_name__extract_ip) function_name__extract_ip
(parameters
(identifier_obj) identifier_obj
)parameters
... | Retrieve Windows routes through a GetIpForwardTable call.
This is compatible with XP but won't get IPv6 routes. |
(module
(function_definition
(function_name_zincr) function_name_zincr
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_key) identifier_key
(default_parameter
(identifier_amount) identifier_amount
(integer_1) integer_1
)d... | Increase the score of ``key`` in zset ``name`` by ``amount``. If no key
exists, the value will be initialized as ``amount``
Like **Redis.ZINCR**
:param string name: the zset name
:param string key: the key name
:param int amount: increments
:return: the integer ... |
(module
(function_definition
(function_name_get_table) function_name_get_table
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_name) identifier_name
(string_'Meta') string_'Meta'
)default_parameter
(default_parameter
(identifier_h5lo... | Convert metadata to a KM3Pipe Table.
Returns `None` if there is no data.
Each column's dtype will be set to a fixed size string (numpy.string_)
with the length of the longest entry, since writing variable length
strings does not fit the current scheme. |
(module
(function_definition
(function_name_create_snmp_manager) function_name_create_snmp_manager
(parameters
(identifier_self) identifier_self
(identifier_manager) identifier_manager
(identifier_host) identifier_host
(dictionary_splat_pattern
(identifier_kwargs) identifier_kw... | Create an SNMP manager.
:param manager: Name of manager to be created.
:type manager: str
:param host: IP address or DNS name of SNMP server to be used.
:type host: str
:param \*\*kwargs: See the REST API Guide on your array for the
documentation on th... |
(module
(function_definition
(function_name_GetGroups) function_name_GetGroups
(parameters
(identifier_r) identifier_r
(default_parameter
(identifier_bulk) identifier_bulk
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_bulk... | Gets all node groups in the cluster.
@type bulk: bool
@param bulk: whether to return all information about the groups
@rtype: list of dict or str
@return: if bulk is true, a list of dictionaries with info about all node
groups in the cluster, else a list of names of those node groups |
(module
(function_definition
(function_name_fetch_identifier_component) function_name_fetch_identifier_component
(parameters
(identifier_self) identifier_self
(identifier_endpoint_name) identifier_endpoint_name
(identifier_identifier_data) identifier_identifier_data
(default_parameter
... | Common method for handling parameters before passing to api_client |
(module
(function_definition
(function_name_timethis) function_name_timethis
(parameters
(identifier_func) identifier_func
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_func_module) identifier_func_module
(identifie... | A wrapper use for timeit. |
(module
(function_definition
(function_name_find_needed_formatter) function_name_find_needed_formatter
(parameters
(identifier_input_format) identifier_input_format
(identifier_output_format) identifier_output_format
)parameters
(block
(expression_statement
(assignment
... | Find a data formatter given an input and output format
input_format - needed input format. see utils.input.dataformats
output_format - needed output format. see utils.input.dataformats |
(module
(function_definition
(function_name_check_with_pep8) function_name_check_with_pep8
(parameters
(identifier_source_code) identifier_source_code
(default_parameter
(identifier_filename) identifier_filename
(None) None
)default_parameter
)parameters
(block
... | Check source code with pycodestyle |
(module
(function_definition
(function_name_get_git_root) function_name_get_git_root
(parameters
(default_parameter
(identifier_index) identifier_index
(integer_3) integer_3
)default_parameter
)parameters
(block
(expression_statement
(assignment
(ide... | Get the path of the git root directory of the caller's file
Raises a RuntimeError if a git repository cannot be found |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(identifier_table_id) identifier_table_id
(identifier_schema) identifier_schema
)parameters
(block
(import_from_statement
(dotted_name
(ident... | Create a table in Google BigQuery given a table and schema
Parameters
----------
table : str
Name of table to be written
schema : str
Use the generate_bq_schema to generate your table schema from a
dataframe. |
(module
(function_definition
(function_name_print_details) function_name_print_details
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Title:") s... | Print torrent details |
(module
(function_definition
(function_name_undo) function_name_undo
(parameters
(identifier_self) identifier_self
(identifier_key_value) identifier_key_value
(identifier_modifier_mask) identifier_modifier_mask
)parameters
(block
(for_statement
(pattern_list
(... | Undo for selected state-machine if no state-source-editor is open and focused in states-editor-controller.
:return: True if a undo was performed, False if focus on source-editor.
:rtype: bool |
(module
(function_definition
(function_name_run_ps) function_name_run_ps
(parameters
(identifier_self) identifier_self
(identifier_script) identifier_script
)parameters
(block
(expression_statement
(assignment
(identifier_encoded_ps) identifier_encoded_ps
... | base64 encodes a Powershell script and executes the powershell
encoded script command |
(module
(function_definition
(function_name_exists) function_name_exists
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(Fal... | Check for the existence of a package or script.
Unlike other DistributionPoint types, JDS and CDP types have no
documented interface for checking whether the server and its
children have a complete copy of a file. The best we can do is
check for an object using the API /packages URL--JS... |
(module
(function_definition
(function_name_set_index) function_name_set_index
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
... | Set the current index to the row of the given index
:param index: the index to set the level to
:type index: QtCore.QModelIndex
:returns: None
:rtype: None
:raises: None |
(module
(function_definition
(function_name__load_type_counts) function_name__load_type_counts
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_rel_path) identifier_rel_path
(call
(attribu... | Load the table of frequency counts of word forms. |
(module
(function_definition
(function_name__vector_pattern_uniform_op_left) function_name__vector_pattern_uniform_op_left
(parameters
(identifier_func) identifier_func
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wra... | decorator for operator overloading when VectorPatternUniform is on
the left |
(module
(function_definition
(function_name_run_sls_remove) function_name_run_sls_remove
(parameters
(identifier_sls_cmd) identifier_sls_cmd
(identifier_env_vars) identifier_env_vars
)parameters
(block
(expression_statement
(assignment
(identifier_sls_process) ident... | Run sls remove command. |
(module
(function_definition
(function_name_list) function_name_list
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_full) identifier_full
(False) False
)default_parameter
)parameters
(block
(if_statement
(attribute
... | List all of the bundles in the remote |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.