sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_remover) function_name_remover
(parameters
(identifier_self) identifier_self
(identifier_id_brand) identifier_id_brand
)parameters
(block
(if_statement
(not_operator
(call
(identifier_is_valid_int_param) identi... | Remove Brand from by the identifier.
:param id_brand: Identifier of the Brand. Integer value and greater than zero.
:return: None
:raise InvalidParameterError: The identifier of Brand is null and invalid.
:raise MarcaNaoExisteError: Brand not registered.
:raise MarcaError: The... |
(module
(function_definition
(function_name_unit) function_name_unit
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_name) identifier_name
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parame... | Get unit name.
:param name: Enum object UnitName.
:param symbol: Return only symbol
:return: Unit. |
(module
(function_definition
(function_name___read_byte_offset) function_name___read_byte_offset
(parameters
(identifier_decl) identifier_decl
(identifier_attrs) identifier_attrs
)parameters
(block
(expression_statement
(assignment
(identifier_offset) identifier_off... | Using duck typing to set the offset instead of in constructor |
(module
(function_definition
(function_name_add_table) function_name_add_table
(parameters
(identifier_self) identifier_self
(identifier_t) identifier_t
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
... | remember to call pop_element after done with table |
(module
(function_definition
(function_name_complex_median) function_name_complex_median
(parameters
(identifier_complex_list) identifier_complex_list
)parameters
(block
(expression_statement
(assignment
(identifier_median_real) identifier_median_real
(call
... | Get the median value of a list of complex numbers.
Parameters
----------
complex_list: list
List of complex numbers to calculate the median.
Returns
-------
a + 1.j*b: complex number
The median of the real and imaginary parts. |
(module
(function_definition
(function_name_remove_pos_arg_placeholders) function_name_remove_pos_arg_placeholders
(parameters
(identifier_alias_command) identifier_alias_command
)parameters
(block
(expression_statement
(assignment
(identifier_split_command) identifier_sp... | Remove positional argument placeholders from alias_command.
Args:
alias_command: The alias command to remove from.
Returns:
The alias command string without positional argument placeholder. |
(module
(function_definition
(function_name_altshuler_grun) function_name_altshuler_grun
(parameters
(identifier_v) identifier_v
(identifier_v0) identifier_v0
(identifier_gamma0) identifier_gamma0
(identifier_gamma_inf) identifier_gamma_inf
(identifier_beta) identifier_beta
)... | calculate Gruneisen parameter for Altshuler equation
:param v: unit-cell volume in A^3
:param v0: unit-cell volume in A^3 at 1 bar
:param gamma0: Gruneisen parameter at 1 bar
:param gamma_inf: Gruneisen parameter at infinite pressure
:param beta: volume dependence of Gruneisen parameter
:return... |
(module
(function_definition
(function_name_body_block_attribution) function_name_body_block_attribution
(parameters
(identifier_tag) identifier_tag
)parameters
(block
(expression_statement
(string_"extract the attribution content for figures, tables, videos") string_"extract the a... | extract the attribution content for figures, tables, videos |
(module
(function_definition
(function_name_area) function_name_area
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_area) identifier_area
(call
(identifier_abs) identifier_abs
... | The surface area of the primitive extrusion.
Calculated from polygon and height to avoid mesh creation.
Returns
----------
area: float, surface area of 3D extrusion |
(module
(function_definition
(function_name_create_a10_device_instance) function_name_create_a10_device_instance
(parameters
(identifier_self) identifier_self
(identifier_context) identifier_context
(identifier_a10_device_instance) identifier_a10_device_instance
)parameters
(block
... | Attempt to create instance using neutron context |
(module
(function_definition
(function_name_C00_) function_name_C00_
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_estimated) identifier_... | Instantaneous covariance matrix |
(module
(function_definition
(function_name_convertDate) function_name_convertDate
(parameters
(identifier_self) identifier_self
(identifier_date) identifier_date
(default_parameter
(identifier_prefix) identifier_prefix
(string_"") string_""
)default_parameter
(de... | Convert a datetime object representing into a human-ready
string that can be read, spoken aloud, etc. In effect, runs
both convertDay and convertTime on the input, merging the results.
Args:
date (datetime.date): A datetime object to be converted into text.
prefix (str):... |
(module
(function_definition
(function_name_find_author) function_name_find_author
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_Author) identifier_Author
(argument_list
(keyword_argument
... | Get the author information from the version control system. |
(module
(function_definition
(function_name__HasAccessToClient) function_name__HasAccessToClient
(parameters
(identifier_self) identifier_self
(identifier_subject) identifier_subject
(identifier_token) identifier_token
)parameters
(block
(expression_statement
(assignmen... | Checks if user has access to a client under given URN. |
(module
(function_definition
(function_name_getAnalysisServicesDisplayList) function_name_getAnalysisServicesDisplayList
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_bsc) identifier_bsc
(call
... | Returns a Display List with the active Analysis Services
available. The value is the keyword and the title is the
text to be displayed. |
(module
(function_definition
(function_name_FetchDiscoveryDoc) function_name_FetchDiscoveryDoc
(parameters
(identifier_discovery_url) identifier_discovery_url
(default_parameter
(identifier_retries) identifier_retries
(integer_5) integer_5
)default_parameter
)parameters
... | Fetch the discovery document at the given url. |
(module
(function_definition
(function_name_int_to_rgba) function_name_int_to_rgba
(parameters
(identifier_cls) identifier_cls
(identifier_rgba_int) identifier_rgba_int
)parameters
(block
(if_statement
(comparison_operator
(identifier_rgba_int) identifier_rgba_int
... | Converts a color Integer into r, g, b, a tuple. |
(module
(function_definition
(function_name_get_paginated_response) function_name_get_paginated_response
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(return_statement
(call
(identifier_Response) identifier_Respo... | Annotate the response with pagination information. |
(module
(function_definition
(function_name_copy) function_name_copy
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_RigidTransform) identifier_RigidTransform
(argument_list
(call
(at... | Returns a copy of the RigidTransform.
Returns
-------
:obj:`RigidTransform`
A deep copy of the RigidTransform. |
(module
(function_definition
(function_name_parse_coach_go) function_name_parse_coach_go
(parameters
(identifier_infile) identifier_infile
)parameters
(block
(expression_statement
(assignment
(identifier_go_list) identifier_go_list
(list
)list
... | Parse a GO output file from COACH and return a rank-ordered list of GO term predictions
The columns in all files are: GO terms, Confidence score, Name of GO terms. The files are:
- GO_MF.dat - GO terms in 'molecular function'
- GO_BP.dat - GO terms in 'biological process'
- GO_CC.d... |
(module
(function_definition
(function_name_main) function_name_main
(parameters
)parameters
(block
(expression_statement
(call
(attribute
(identifier_conf) identifier_conf
(identifier_init) identifier_init
)attribute
(argument_list
... | Entry point for stand-alone execution. |
(module
(function_definition
(function_name_get_simple_date) function_name_get_simple_date
(parameters
(identifier_datestring) identifier_datestring
)parameters
(block
(expression_statement
(assignment
(identifier_simple_date) identifier_simple_date
(call
... | Transforms a datestring into shorter date 7.9.2017 > 07.09
Expects the datestring to be format 07.09.2017. If this is not the
case, returns string "Failed".
Keyword arguments:
datestring -- a string
Returns:
String -- The date in format "dd.MM." or "Failed" |
(module
(function_definition
(function_name_add_lb_nodes) function_name_add_lb_nodes
(parameters
(identifier_self) identifier_self
(identifier_lb_id) identifier_lb_id
(identifier_nodes) identifier_nodes
)parameters
(block
(expression_statement
(call
(attribute... | Adds nodes to an existing LBaaS instance
:param string lb_id: Balancer id
:param list nodes: Nodes to add. {address, port, [condition]}
:rtype :class:`list` |
(module
(function_definition
(function_name_get_least_common_subsumer) function_name_get_least_common_subsumer
(parameters
(identifier_self) identifier_self
(identifier_from_tid) identifier_from_tid
(identifier_to_tid) identifier_to_tid
)parameters
(block
(expression_statement
... | Returns the deepest common subsumer among two terms
@type from_tid: string
@param from_tid: one term id
@type to_tid: string
@param to_tid: another term id
@rtype: string
@return: the term identifier of the common subsumer |
(module
(function_definition
(function_name_footer) function_name_footer
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(expression_list
(call
(attribute
(identifier_self) identifier_self
(identif... | Returns the axis instance where the footer will be printed |
(module
(function_definition
(function_name_perform) function_name_perform
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier__driver) identifier__drive... | Performs all stored actions. |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_self) identifier_self
(identifier_service) identifier_service
)parameters
(block
(try_statement
(block
(expression_statement
(call
(identifier_ma... | Start the service, catching and logging exceptions |
(module
(function_definition
(function_name_get_leads) function_name_get_leads
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_offset) identifier_offset
(None) None
)default_parameter
(default_parameter
(identifier_limit) identifier_... | Gives back all the leads saved in your account.
:param offset: Number of leads to skip.
:param limit: Maximum number of leads to return.
:param lead_list_id: Id of a lead list to query leads on.
:param first_name: First name to filter on.
:param last_name: Last name to filte... |
(module
(function_definition
(function_name_files) function_name_files
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ios_names) identifier_ios_names
(list_comprehension
(attribute
... | files that will be add to tar file later
should be tuple, list or generator that returns strings |
(module
(function_definition
(function_name_has_level_label) function_name_has_level_label
(parameters
(identifier_label_flags) identifier_label_flags
(identifier_vmin) identifier_vmin
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
... | Returns true if the ``label_flags`` indicate there is at least one label
for this level.
if the minimum view limit is not an exact integer, then the first tick
label won't be shown, so we must adjust for that. |
(module
(function_definition
(function_name_add_arguments) function_name_add_arguments
(parameters
(identifier_cls) identifier_cls
(identifier_parser) identifier_parser
(default_parameter
(identifier_sys_arg_list) identifier_sys_arg_list
(None) None
)default_parameter
... | Arguments for the configfile mode. |
(module
(function_definition
(function_name_reference_fasta) function_name_reference_fasta
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__db_location) identifier__db_locati... | Absolute path to the fasta file with EricScript reference data. |
(module
(function_definition
(function_name_getWord) function_name_getWord
(parameters
(identifier_self) identifier_self
(identifier_pattern) identifier_pattern
(default_parameter
(identifier_returnDiff) identifier_returnDiff
(integer_0) integer_0
)default_parameter
... | Returns the word associated with pattern.
Example: net.getWord([0, 0, 0, 1]) => "tom"
This method now returns the closest pattern based on distance. |
(module
(function_definition
(function_name_is_svn_page) function_name_is_svn_page
(parameters
(identifier_html) identifier_html
)parameters
(block
(return_statement
(parenthesized_expression
(boolean_operator
(call
(attribute
(id... | Returns true if the page appears to be the index page of an svn repository |
(module
(function_definition
(function_name__file_path) function_name__file_path
(parameters
(identifier_self) identifier_self
(identifier_dirname) identifier_dirname
(identifier_filename) identifier_filename
)parameters
(block
(if_statement
(not_operator
(cal... | Builds an absolute path and creates the directory and file if they don't already exist.
@dirname - Directory path.
@filename - File name.
Returns a full path of 'dirname/filename'. |
(module
(function_definition
(function_name_to_latex) function_name_to_latex
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_latex) identifier_latex
(string_r"[{} ") string_r"[{} "
)assignmen... | Returns a LaTeX representation of an attribute-value matrix |
(module
(function_definition
(function_name_as_a_dict) function_name_as_a_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_index_dict) identifier_index_dict
(dictionary
(pair
... | Displays the index as a dictionary. This includes the design document
id, index name, index type, and index definition.
:returns: Dictionary representation of the index as a dictionary |
(module
(function_definition
(function_name_render_authenticateLinks) function_name_render_authenticateLinks
(parameters
(identifier_self) identifier_self
(identifier_ctx) identifier_ctx
(identifier_data) identifier_data
)parameters
(block
(if_statement
(comparison_oper... | For unauthenticated users, add login and signup links to the given tag.
For authenticated users, remove the given tag from the output.
When necessary, the I{signup-link} pattern will be loaded from the tag.
Each copy of it will have I{prompt} and I{url} slots filled. The list
of copies... |
(module
(function_definition
(function_name_add_automation_link) function_name_add_automation_link
(parameters
(identifier_testcase) identifier_testcase
)parameters
(block
(expression_statement
(assignment
(identifier_automation_link) identifier_automation_link
... | Appends link to automation script to the test description. |
(module
(function_definition
(function_name_vcf2abook) function_name_vcf2abook
(parameters
)parameters
(block
(import_from_statement
(dotted_name
(identifier_argparse) identifier_argparse
)dotted_name
(dotted_name
(identifier_ArgumentParser) identifier... | Command line tool to convert from vCard to Abook |
(module
(function_definition
(function_name_get_gicon) function_name_get_gicon
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_icon_id) identifier_icon_id
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters... | Lookup Gio.Icon from udiskie-internal id. |
(module
(function_definition
(function_name_video) function_name_video
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__video) identifier__... | Access the Video Twilio Domain
:returns: Video Twilio Domain
:rtype: twilio.rest.video.Video |
(module
(function_definition
(function_name_call_actions_parallel) function_name_call_actions_parallel
(parameters
(identifier_self) identifier_self
(identifier_service_name) identifier_service_name
(identifier_actions) identifier_actions
(dictionary_splat_pattern
(identifier_k... | Build and send multiple job requests to one service, each job with one action, to be executed in parallel, and
return once all responses have been received.
Returns a list of action responses, one for each action in the same order as provided, or raises an exception
if any action response is an... |
(module
(function_definition
(function_name_load_json_fixture) function_name_load_json_fixture
(parameters
(typed_parameter
(identifier_fixture_path) identifier_fixture_path
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
... | Loads a fixture file, caching the most recent files it loaded. |
(module
(function_definition
(function_name_update_elements) function_name_update_elements
(parameters
(identifier_self) identifier_self
(identifier_line) identifier_line
(identifier_column) identifier_column
(identifier_charcount) identifier_charcount
(default_parameter
... | Updates all the element instances that are children of this module
to have new start and end charindex values based on an operation that
was performed on the module source code.
:arg line: the line number of the *start* of the operation.
:arg column: the column number of the start of th... |
(module
(function_definition
(function_name_set_env) function_name_set_env
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_cov_source) iden... | Put info about coverage into the env so that subprocesses can activate coverage. |
(module
(function_definition
(function_name_get_workspace_activities) function_name_get_workspace_activities
(parameters
(identifier_brain) identifier_brain
(default_parameter
(identifier_limit) identifier_limit
(integer_1) integer_1
)default_parameter
)parameters
(bl... | Return the workspace activities sorted by reverse chronological
order
Regarding the time value:
- the datetime value contains the time in international format
(machine readable)
- the title value contains the absolute date and time of the post |
(module
(function_definition
(function_name__check_jp2h_child_boxes) function_name__check_jp2h_child_boxes
(parameters
(identifier_self) identifier_self
(identifier_boxes) identifier_boxes
(identifier_parent_box_name) identifier_parent_box_name
)parameters
(block
(expression_st... | Certain boxes can only reside in the JP2 header. |
(module
(function_definition
(function_name_scale) function_name_scale
(parameters
(identifier_self) identifier_self
(identifier_by) identifier_by
)parameters
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self... | Scale the points in the Pattern.
Parameters
----------
by : float or np.ndarray, shape=(3,)
The factor to scale by. If a scalar, scale all directions isotropically.
If np.ndarray, scale each direction independently. |
(module
(function_definition
(function_name_install_PMK) function_name_install_PMK
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_pmk) iden... | Compute and install the PMK |
(module
(function_definition
(function_name__read) function_name__read
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_delta) identifier_delta
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_wrap) identifier_w... | Read the value at a relative point in the wikicode.
The value is read from :attr:`self._head <_head>` plus the value of
*delta* (which can be negative). If *wrap* is ``False``, we will not
allow attempts to read from the end of the string if ``self._head +
delta`` is negative. If *stric... |
(module
(function_definition
(function_name_pypy_json_encode) function_name_pypy_json_encode
(parameters
(identifier_value) identifier_value
(default_parameter
(identifier_pretty) identifier_pretty
(False) False
)default_parameter
)parameters
(block
(global_stat... | pypy DOES NOT OPTIMIZE GENERATOR CODE WELL |
(module
(function_definition
(function_name_keys_create) function_name_keys_create
(parameters
(identifier_gandi) identifier_gandi
(identifier_fqdn) identifier_fqdn
(identifier_flag) identifier_flag
)parameters
(block
(expression_statement
(assignment
(identif... | Create key for a domain. |
(module
(function_definition
(function_name_get_scene_suggestions) function_name_get_scene_suggestions
(parameters
(identifier_self) identifier_self
(identifier_current) identifier_current
)parameters
(block
(expression_statement
(assignment
(identifier_l) identifie... | Return a list with elements for reftracks for the current scene with this type.
For every element returned, the reftrack system will create a :class:`Reftrack` with the type
of this interface, if it is not already in the scene.
E.g. if you have a type that references whole scenes, you might su... |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_fitsname) identifier_fitsname
(None) None
)default_parameter
(default_parameter
(identifier_wcs) identifier_wcs
... | Write out the values of the WCS keywords to the
specified image.
If it is a GEIS image and 'fitsname' has been provided,
it will automatically make a multi-extension
FITS copy of the GEIS and update that file. Otherwise, it
throw an Exception if the user attempts to directly upd... |
(module
(function_definition
(function_name_clean_inconcs) function_name_clean_inconcs
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_item) identifier_item
(attribute
(identifier_self) identifier_self
(identif... | Check if there are any inconclusives or uknowns that were not subsequently retried.
:return: Boolean |
(module
(function_definition
(function_name__create_Z) function_name__create_Z
(parameters
(identifier_self) identifier_self
(identifier_Y) identifier_Y
)parameters
(block
(expression_statement
(assignment
(identifier_Z) identifier_Z
(call
(att... | Creates design matrix holding the lagged variables
Parameters
----------
Y : np.array
The dependent variables Y
Returns
----------
The design matrix Z |
(module
(function_definition
(function_name__callFunc) function_name__callFunc
(parameters
(identifier_session) identifier_session
(identifier_funcName) identifier_funcName
(identifier_password) identifier_password
(identifier_args) identifier_args
)parameters
(block
(exp... | Call custom cjdns admin function |
(module
(function_definition
(function_name_structureOutput) function_name_structureOutput
(parameters
(identifier_fileUrl) identifier_fileUrl
(identifier_fileName) identifier_fileName
(identifier_searchFiles) identifier_searchFiles
(default_parameter
(identifier_format) identi... | Formats the output of a list of packages |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_cls) identifier_cls
(identifier_key) identifier_key
(identifier_crt) identifier_crt
)parameters
(block
(expression_statement
(assignment
(identifier_options) ident... | Add a new crt in the hosted cert store. |
(module
(function_definition
(function_name_add_range) function_name_add_range
(parameters
(identifier_self) identifier_self
(identifier_start) identifier_start
(identifier_part_len) identifier_part_len
(identifier_total_len) identifier_total_len
)parameters
(block
(expre... | Add range headers indicating that this a partial response |
(module
(function_definition
(function_name_get_doc_id) function_name_get_doc_id
(parameters
(identifier_document_pb) identifier_document_pb
(identifier_expected_prefix) identifier_expected_prefix
)parameters
(block
(expression_statement
(assignment
(pattern_list
... | Parse a document ID from a document protobuf.
Args:
document_pb (google.cloud.proto.firestore.v1beta1.\
document_pb2.Document): A protobuf for a document that
was created in a ``CreateDocument`` RPC.
expected_prefix (str): The expected collection prefix for the
f... |
(module
(function_definition
(function_name__parse_example) function_name__parse_example
(parameters
(identifier_serialized_example) identifier_serialized_example
)parameters
(block
(expression_statement
(assignment
(identifier_data_fields) identifier_data_fields
... | Return inputs and targets Tensors from a serialized tf.Example. |
(module
(function_definition
(function_name___autoconnect_signals) function_name___autoconnect_signals
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_dic) identifier_dic
(dictionary
)dicti... | This is called during view registration, to autoconnect
signals in glade file with methods within the controller |
(module
(function_definition
(function_name__assign_zones) function_name__assign_zones
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_zone_id) identifier_zone_id
(call
(identifier_range) identifier_range
(argu... | Assign all RainCloudyFaucetZone managed by faucet. |
(module
(function_definition
(function_name_remember) function_name_remember
(parameters
(identifier_empowered) identifier_empowered
(identifier_powerupClass) identifier_powerupClass
(identifier_interface) identifier_interface
)parameters
(block
(expression_statement
(a... | Adds a powerup to ``empowered`` that will instantiate ``powerupClass``
with the empowered's store when adapted to the given interface.
:param empowered: The Empowered (Store or Item) to be powered up.
:type empowered: ``axiom.item.Empowered``
:param powerupClass: The class that will be powered up to.
... |
(module
(function_definition
(function_name_git_ls_remote) function_name_git_ls_remote
(parameters
(identifier_repo_dir) identifier_repo_dir
(default_parameter
(identifier_remote) identifier_remote
(string_'origin') string_'origin'
)default_parameter
(default_parameter
... | Run git ls-remote.
'remote' can be a remote ref in a local repo, e.g. origin,
or url of a remote repository.
Return format:
.. code-block:: python
{<ref1>: <commit_hash1>,
<ref2>: <commit_hash2>,
...,
<refN>: <commit_hashN>,
} |
(module
(function_definition
(function_name__startRelay) function_name__startRelay
(parameters
(identifier_self) identifier_self
(identifier_client) identifier_client
)parameters
(block
(expression_statement
(assignment
(identifier_process) identifier_process
... | Start relaying data between the process and the protocol.
This method is called when the protocol is connected. |
(module
(function_definition
(function_name_logpdf) function_name_logpdf
(parameters
(identifier_self) identifier_self
(identifier_mu) identifier_mu
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
... | Log PDF for Normal prior
Parameters
----------
mu : float
Latent variable for which the prior is being formed over
Returns
----------
- log(p(mu)) |
(module
(function_definition
(function_name_wquantiles) function_name_wquantiles
(parameters
(identifier_W) identifier_W
(identifier_x) identifier_x
(default_parameter
(identifier_alphas) identifier_alphas
(tuple
(float_0.25) float_0.25
(float_0.50) float_... | Quantiles for weighted data.
Parameters
----------
W: (N,) ndarray
normalised weights (weights are >=0 and sum to one)
x: (N,) or (N,d) ndarray
data
alphas: list-like of size k (default: (0.25, 0.50, 0.75))
probabilities (between 0. and 1.)
Returns
-------
a (k... |
(module
(function_definition
(function_name_write_response) function_name_write_response
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_status_code) identifier_status_code
(type
(generic_type
(identifier_Union) identifier_Union
... | Write a response to the client. |
(module
(function_definition
(function_name_hline) function_name_hline
(parameters
(identifier_level) identifier_level
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
... | Draws a horizontal line at the given level.
Parameters
----------
level: float
The level at which to draw the horizontal line.
preserve_domain: boolean (default: False)
If true, the line does not affect the domain of the 'y' scale. |
(module
(function_definition
(function_name_pool_set_autostart) function_name_pool_set_autostart
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_state) identifier_state
(string_'on') string_'on'
)default_parameter
(dictionary_splat_pattern
... | Set the autostart flag on a libvirt storage pool so that the storage pool
will start with the host system on reboot.
:param name: libvirt storage pool name
:param state: 'on' to auto start the pool, anything else to mark the
pool not to be started when the host boots
:param connection... |
(module
(function_definition
(function_name__release_command_buffer) function_name__release_command_buffer
(parameters
(identifier_self) identifier_self
(identifier_command_buffer) identifier_command_buffer
)parameters
(block
(if_statement
(attribute
(identifier_com... | This is called by the command buffer when it closes. |
(module
(function_definition
(function_name_detect_language) function_name_detect_language
(parameters
(identifier_lang) identifier_lang
(identifier_kernel_source) identifier_kernel_source
)parameters
(block
(if_statement
(comparison_operator
(identifier_lang) ident... | attempt to detect language from the kernel_string if not specified |
(module
(function_definition
(function_name_new) function_name_new
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_dir_path) identifier_dir_path
(call
(attribute
(attribute
(identifier_os) identifi... | Creates a new historical technology. |
(module
(function_definition
(function_name_generate_private_key) function_name_generate_private_key
(parameters
(identifier_key_type) identifier_key_type
)parameters
(block
(if_statement
(comparison_operator
(identifier_key_type) identifier_key_type
(string_u'r... | Generate a random private key using sensible parameters.
:param str key_type: The type of key to generate. One of: ``rsa``. |
(module
(function_definition
(function_name_get_request_headers) function_name_get_request_headers
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_request_headers) identifier_request_headers
(call
... | Return request headers that will be sent to upstream.
The header REMOTE_USER is set to the current user
if AuthenticationMiddleware is enabled and
the view's add_remote_user property is True.
.. versionadded:: 0.9.8 |
(module
(function_definition
(function_name_display_items) function_name_display_items
(parameters
(identifier_self) identifier_self
)parameters
(type
(subscript
(attribute
(identifier_typing) identifier_typing
(identifier_List) identifier_List
)attribut... | Return the list of display items.
:return: The list of :py:class:`nion.swift.Facade.Display` objects.
.. versionadded:: 1.0
Scriptable: Yes |
(module
(function_definition
(function_name_rename_annotations) function_name_rename_annotations
(parameters
(identifier_self) identifier_self
(identifier_sentence) identifier_sentence
)parameters
(block
(expression_statement
(assignment
(identifier_annotations) ide... | Function that renames and restructures clause information. |
(module
(function_definition
(function_name_dbpoolStats) function_name_dbpoolStats
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
... | Statistics on the Database client pool
This method is only for debugging the ec2-manager
This method is ``experimental`` |
(module
(function_definition
(function_name_untokenize) function_name_untokenize
(parameters
(identifier_words) identifier_words
)parameters
(block
(expression_statement
(assignment
(identifier_text) identifier_text
(call
(attribute
(st... | Untokenizing a text undoes the tokenizing operation, restoring
punctuation and spaces to the places that people expect them to be.
Ideally, `untokenize(tokenize(text))` should be identical to `text`,
except for line breaks. |
(module
(function_definition
(function_name_hash_trees) function_name_hash_trees
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(string_"hash ladderized tree topologies") string_"hash ladderized tree topologies"
)expression_statement
... | hash ladderized tree topologies |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__process) identifier_... | Create a background thread for httpd and serve 'forever |
(module
(function_definition
(function_name_setup) function_name_setup
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_target) identifier_target
(None) None
)default_parameter
(default_parameter
(identifier_strict) identifier_strict
... | Initializes parsing parameters. |
(module
(function_definition
(function_name_fields_to_dict) function_name_fields_to_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(dictionary
)dictionary
)ass... | Transform the object to a dict and return the dict. |
(module
(function_definition
(function_name_set_until) function_name_set_until
(parameters
(identifier_self) identifier_self
(identifier_frame) identifier_frame
(default_parameter
(identifier_lineno) identifier_lineno
(None) None
)default_parameter
)parameters
(... | Stop when the current line number in frame is greater than lineno or
when returning from frame. |
(module
(function_definition
(function_name_featured_games) function_name_featured_games
(parameters
(identifier_self) identifier_self
(identifier_region) identifier_region
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_ur... | Get list of featured games.
:param string region: The region to execute this request on
:returns: FeaturedGames |
(module
(function_definition
(function_name_snapshot_agent) function_name_snapshot_agent
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_protocols) identifier_protocols
(list_comprehension
... | Gives snapshot of everything related to the agent |
(module
(function_definition
(function_name_get_phi_variables) function_name_get_phi_variables
(parameters
(identifier_self) identifier_self
(identifier_block_addr) identifier_block_addr
)parameters
(block
(if_statement
(comparison_operator
(identifier_block_addr) i... | Get a dict of phi variables and their corresponding variables.
:param int block_addr: Address of the block.
:return: A dict of phi variables of an empty dict if there are no phi variables at the block.
:rtype: dict |
(module
(function_definition
(function_name_is_last_attempt) function_name_is_last_attempt
(parameters
(identifier_request) identifier_request
)parameters
(block
(expression_statement
(assignment
(identifier_environ) identifier_environ
(attribute
(id... | Return ``True`` if the request is on its last attempt, meaning that
``pyramid_retry`` will not be issuing any new attempts, regardless of
what happens when executing this request.
This will return ``True`` if ``pyramid_retry`` is inactive for the
request. |
(module
(function_definition
(function_name_get_default_attribute_value) function_name_get_default_attribute_value
(parameters
(identifier_cls) identifier_cls
(identifier_object_class) identifier_object_class
(identifier_property_name) identifier_property_name
(default_parameter
... | Gets the default value of a given property for a given object.
These properties can be set in a config INI file looking like
.. code-block:: ini
[NUEntity]
default_behavior = THIS
speed = 1000
[NUOtherEntity]
att... |
(module
(function_definition
(function_name_all) function_name_all
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
)dictionary
)assignment
)e... | Returns all the arguments passed with the request
Sample Usage
++++++++++++
.. code:: python
from bast import Controller
class MyController(Controller):
def index(self):
data = self.all()
Returns a dictionary of all the requ... |
(module
(function_definition
(function_name_noise) function_name_noise
(parameters
)parameters
(block
(import_from_statement
(dotted_name
(identifier_random) identifier_random
)dotted_name
(dotted_name
(identifier_gauss) identifier_gauss
)dotte... | a noise vector |
(module
(function_definition
(function_name_get_schema_path) function_name_get_schema_path
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(if_statement
(comparison_operator
(identifier_path) identifier_path
... | Compute the schema's absolute path from a schema relative path.
:param path: relative path of the schema.
:raises invenio_jsonschemas.errors.JSONSchemaNotFound: If no schema
was found in the specified path.
:returns: The absolute path. |
(module
(function_definition
(function_name_report_metric) function_name_report_metric
(parameters
(typed_parameter
(identifier_metric_name) identifier_metric_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identif... | Tries to report a metric, ignoring all errors |
(module
(function_definition
(function_name_NamedPlaceholders) function_name_NamedPlaceholders
(parameters
(identifier_iterable) identifier_iterable
)parameters
(block
(expression_statement
(assignment
(identifier_placeholders) identifier_placeholders
(call
... | Returns named placeholders from all elements of the given iterable.
Use this function for VALUES of MySQL INSERTs.
To account for Iterables with undefined order (dicts before Python 3.6),
this function sorts column names.
Examples:
>>> NamedPlaceholders({"password": "foo", "name": "bar"})
u'(%(name)s... |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_status) identifier_status
(attribute
(identifier_values) identifier_values
(identifier_unset) identifier_unset
... | Update the FaxInstance
:param FaxInstance.UpdateStatus status: The new status of the resource
:returns: Updated FaxInstance
:rtype: twilio.rest.fax.v1.fax.FaxInstance |
(module
(function_definition
(function_name_refreshTitles) function_name_refreshTitles
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_index) identifier_index
(call
(identifier_range) identifier_range
(argument... | Refreshes the titles for each view within this tab panel. |
(module
(function_definition
(function_name_complete) function_name_complete
(parameters
(identifier_self) identifier_self
(identifier_msg) identifier_msg
)parameters
(block
(if_statement
(identifier__debug) identifier__debug
(block
(expression_statement
... | Called to complete a transaction, usually when ProcessIO has
shipped the IOCB off to some other thread or function. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.