sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_usn_v4_record) function_name_usn_v4_record
(parameters
(identifier_header) identifier_header
(identifier_record) identifier_record
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_... | Extracts USN V4 record information. |
(module
(function_definition
(function_name_urlencode) function_name_urlencode
(parameters
(identifier_txt) identifier_txt
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_txt) identifier... | Url encode a path. |
(module
(function_definition
(function_name_saveComicStrip) function_name_saveComicStrip
(parameters
(identifier_self) identifier_self
(identifier_strip) identifier_strip
)parameters
(block
(expression_statement
(assignment
(identifier_allskipped) identifier_allskip... | Save a comic strip which can consist of multiple images. |
(module
(function_definition
(function_name__get_ssl_sock) function_name__get_ssl_sock
(parameters
(identifier_self) identifier_self
)parameters
(block
(assert_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_... | Get raw SSL socket. |
(module
(function_definition
(function_name__get_formatting_template) function_name__get_formatting_template
(parameters
(identifier_self) identifier_self
(identifier_number_pattern) identifier_number_pattern
(identifier_number_format) identifier_number_format
)parameters
(block
... | Gets a formatting template which can be used to efficiently
format a partial number where digits are added one by one. |
(module
(function_definition
(function_name__build_zmat) function_name__build_zmat
(parameters
(identifier_self) identifier_self
(identifier_construction_table) identifier_construction_table
)parameters
(block
(expression_statement
(assignment
(identifier_c_table) i... | Create the Zmatrix from a construction table.
Args:
Construction table (pd.DataFrame):
Returns:
Zmat: A new instance of :class:`Zmat`. |
(module
(function_definition
(function_name_cached_property) function_name_cached_property
(parameters
(identifier_func) identifier_func
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(attribute
(identifier_fun... | Special property decorator that caches the computed
property value in the object's instance dict the first
time it is accessed. |
(module
(function_definition
(function_name_ints) function_name_ints
(parameters
(identifier_l) identifier_l
(default_parameter
(identifier_ifilter) identifier_ifilter
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
... | Parses a comma-separated list of ints. |
(module
(function_definition
(function_name_triangle_plots) function_name_triangle_plots
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_basename) identifier_basename
(None) None
)default_parameter
(default_parameter
(identifier_form... | Returns two triangle plots, one with physical params, one observational
:param basename:
If basename is provided, then plots will be saved as
"[basename]_physical.[format]" and "[basename]_observed.[format]"
:param format:
Format in which to save figures (e.g., 'png... |
(module
(function_definition
(function_name_get_descendants) function_name_get_descendants
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_include_self) identifier_include_self
(False) False
)default_parameter
(default_parameter
(ide... | Return all the descendants of this object. |
(module
(function_definition
(function_name__handle_wikilink_separator) function_name__handle_wikilink_separator
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifie... | Handle the separator between a wikilink's title and its text. |
(module
(function_definition
(function_name_on_binlog) function_name_on_binlog
(parameters
(identifier_event) identifier_event
(identifier_stream) identifier_stream
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_rows) iden... | Process on a binlog event
1. Convert event instance into a dict
2. Send corresponding schema/table/signals
Args:
event (pymysqlreplication.row_event.RowsEvent): the event |
(module
(function_definition
(function_name_exception) function_name_exception
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_exceptions) identifier_exceptions
)list_splat_pattern
)parameters
(block
(function_definition
(function_n... | Decorate a function to be registered as a handler for exceptions
:param exceptions: exceptions
:return: decorated function |
(module
(function_definition
(function_name_dump) function_name_dump
(parameters
(identifier_obj) identifier_obj
(identifier_file_path) identifier_file_path
(default_parameter
(identifier_prettify) identifier_prettify
(False) False
)default_parameter
)parameters
... | Dumps a data structure to the filesystem as TOML.
The given value must be either a dict of dict values, a dict, or a TOML file constructed by this module. |
(module
(function_definition
(function_name_detect_stream_mode) function_name_detect_stream_mode
(parameters
(identifier_stream) identifier_stream
)parameters
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifi... | detect_stream_mode - Detect the mode on a given stream
@param stream <object> - A stream object
If "mode" is present, that will be used.
@return <type> - "Bytes" type or "str" type |
(module
(function_definition
(function_name_counts) function_name_counts
(parameters
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(identifier_OptionParser) identifier_OptionP... | %prog counts vcffile
Collect allele counts from RO and AO fields. |
(module
(function_definition
(function_name_endpoint_get) function_name_endpoint_get
(parameters
(default_parameter
(identifier_auth) identifier_auth
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat... | Get a single endpoint
CLI Example:
.. code-block:: bash
salt '*' keystoneng.endpoint_get id=02cffaa173b2460f98e40eda3748dae5 |
(module
(function_definition
(function_name_set_time) function_name_set_time
(parameters
(identifier_time) identifier_time
)parameters
(block
(expression_statement
(assignment
(identifier_time_format) identifier_time_format
(call
(identifier__get_dat... | Sets the current time. Must be in 24 hour format.
:param str time: The time to set in 24 hour format. The value must be
double quoted. ie: '"17:46"'
:return: True if successful, False if not
:rtype: bool
:raises: SaltInvocationError on Invalid Time format
:raises: CommandExecutionError o... |
(module
(function_definition
(function_name_user_delete) function_name_user_delete
(parameters
(identifier_users) identifier_users
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
... | Delete zabbix users.
.. versionadded:: 2016.3.0
:param users: array of users (userids) to delete
:param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring)
:param _connection_password: Optional - zabbix password (can also be set in opts or pillar, see m... |
(module
(function_definition
(function_name_zip_namedtuple) function_name_zip_namedtuple
(parameters
(identifier_nt_list) identifier_nt_list
)parameters
(block
(if_statement
(not_operator
(identifier_nt_list) identifier_nt_list
)not_operator
(block
... | accept list of namedtuple, return a dict of zipped fields |
(module
(function_definition
(function_name_get_context_data) function_name_get_context_data
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_... | Inject is_plans_plural and customer into context_data. |
(module
(function_definition
(function_name_rotate_scale) function_name_rotate_scale
(parameters
(identifier_im) identifier_im
(identifier_angle) identifier_angle
(identifier_scale) identifier_scale
(default_parameter
(identifier_borderValue) identifier_borderValue
(int... | Rotates and scales the image
Parameters
----------
im: 2d array
The image
angle: number
The angle, in radians, to rotate
scale: positive number
The scale factor
borderValue: number, default 0
The value for the pixels outside the border (default 0)
Returns
... |
(module
(function_definition
(function_name_removeByIndex) function_name_removeByIndex
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_i... | removes a user from the invitation list by position |
(module
(function_definition
(function_name_vars_to_array) function_name_vars_to_array
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warn) i... | Convert `self.vars` to a numpy array
Returns
-------
numpy.array |
(module
(function_definition
(function_name_get_channels_by_sln_year_quarter) function_name_get_channels_by_sln_year_quarter
(parameters
(identifier_self) identifier_self
(identifier_channel_type) identifier_channel_type
(identifier_sln) identifier_sln
(identifier_year) identifier_year... | Search for all channels by sln, year and quarter |
(module
(function_definition
(function_name_queryone) function_name_queryone
(parameters
(identifier_self) identifier_self
(identifier_stmt) identifier_stmt
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_st... | Query for exactly one result.
Raises NoResultError if there are no results, or ValueError if
there are more than one. |
(module
(function_definition
(function_name_get_all_guild_roles) function_name_get_all_guild_roles
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_guild_id) identifier_guild_id
(type
(identifier_int) identifier_int
)type
)typed_par... | Gets all the roles for the specified guild
Args:
guild_id: snowflake id of the guild
Returns:
List of dictionary objects of roles in the guild.
Example:
[
{
"id": "41771983423143936",
... |
(module
(function_definition
(function_name_block_icmp) function_name_block_icmp
(parameters
(identifier_zone) identifier_zone
(identifier_icmp) identifier_icmp
(default_parameter
(identifier_permanent) identifier_permanent
(True) True
)default_parameter
)parameters... | Block a specific ICMP type on a zone
.. versionadded:: 2015.8.0
CLI Example:
.. code-block:: bash
salt '*' firewalld.block_icmp zone echo-reply |
(module
(function_definition
(function_name_update_single_grading_period) function_name_update_single_grading_period
(parameters
(identifier_self) identifier_self
(identifier_id) identifier_id
(identifier_course_id) identifier_course_id
(identifier_grading_periods_end_date) identifier_... | Update a single grading period.
Update an existing grading period. |
(module
(function_definition
(function_name__get_key_file_path) function_name__get_key_file_path
(parameters
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(call
(attribute
(identifier_os) identifier_os
... | Return the key file path. |
(module
(function_definition
(function_name_print_time) function_name_print_time
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_message) identifier_message
(string_"Time is now: ") string_"Time is now: "
)default_parameter
(default_paramete... | Print the current elapsed time.
Kwargs:
message (str) : Message to prefix the time stamp.
print_frame_info (bool) : Add frame info to the print message. |
(module
(function_definition
(function_name_create_event) function_name_create_event
(parameters
(default_parameter
(identifier_service_key) identifier_service_key
(None) None
)default_parameter
(default_parameter
(identifier_description) identifier_description
... | Create an event in PagerDuty. Designed for use in states.
CLI Example:
.. code-block:: yaml
salt myminion pagerduty.create_event <service_key> <description> <details> \
profile=my-pagerduty-account
The following parameters are required:
service_key
This key can be found by u... |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_error) identifier_error
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifie... | Add an error to the tree.
:param error: :class:`~cerberus.errors.ValidationError` |
(module
(function_definition
(function_name_command_load) function_name_command_load
(parameters
(identifier_ctx) identifier_ctx
(identifier_config) identifier_config
(identifier_socket_name) identifier_socket_name
(identifier_socket_path) identifier_socket_path
(identifier_answe... | Load a tmux workspace from each CONFIG.
CONFIG is a specifier for a configuration file.
If CONFIG is a path to a directory, tmuxp will search it for
".tmuxp.{yaml,yml,json}".
If CONFIG is has no directory component and only a filename, e.g.
"myconfig.yaml", tmuxp will search the users's config di... |
(module
(function_definition
(function_name_make_dataset) function_name_make_dataset
(parameters
(identifier_self) identifier_self
(identifier_dataset) identifier_dataset
(default_parameter
(identifier_raise_if_exists) identifier_raise_if_exists
(False) False
)default_p... | Creates a new dataset with the default permissions.
:param dataset:
:type dataset: BQDataset
:param raise_if_exists: whether to raise an exception if the dataset already exists.
:raises luigi.target.FileAlreadyExists: if raise_if_exists=True and the dataset exists |
(module
(function_definition
(function_name_legal_edge_coords) function_name_legal_edge_coords
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_edges) identifier_edges
(call
(identifier_set) identifier_set
(argument_... | Return all legal edge coordinates on the grid. |
(module
(function_definition
(function_name_get_data) function_name_get_data
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(string_"Get SNMP values from host") string_"Get SNMP values from host"
)expression_statement
(expression_... | Get SNMP values from host |
(module
(function_definition
(function_name_run_per_switch_cmds) function_name_run_per_switch_cmds
(parameters
(identifier_self) identifier_self
(identifier_switch_cmds) identifier_switch_cmds
)parameters
(block
(for_statement
(pattern_list
(identifier_switch_ip) id... | Applies cmds to appropriate switches
This takes in a switch->cmds mapping and runs only the set of cmds
specified for a switch on that switch. This helper is used for
applying/removing ACLs to/from interfaces as this config will vary
from switch to switch. |
(module
(function_definition
(function_name_recover_all_handler) function_name_recover_all_handler
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_handler) identifier_handler
(attribute
(identifier_self) identifier_self
... | Relink the file handler association you just removed. |
(module
(function_definition
(function_name_location) function_name_location
(parameters
(identifier_hexgrid_type) identifier_hexgrid_type
(identifier_coord) identifier_coord
)parameters
(block
(if_statement
(comparison_operator
(identifier_hexgrid_type) identifier_... | Returns a formatted string representing the coordinate. The format depends on the
coordinate type.
Tiles look like: 1, 12
Nodes look like: (1 NW), (12 S)
Edges look like: (1 NW), (12 SE)
:param hexgrid_type: hexgrid.TILE, hexgrid.NODE, hexgrid.EDGE
:param coord: integer coordinate in this modu... |
(module
(function_definition
(function_name_GetArtifactParserDependencies) function_name_GetArtifactParserDependencies
(parameters
(identifier_rdf_artifact) identifier_rdf_artifact
)parameters
(block
(expression_statement
(assignment
(identifier_deps) identifier_deps
... | Return the set of knowledgebase path dependencies required by the parser.
Args:
rdf_artifact: RDF artifact object.
Returns:
A set of strings for the required kb objects e.g.
["users.appdata", "systemroot"] |
(module
(function_definition
(function_name_get_scenenode) function_name_get_scenenode
(parameters
(identifier_self) identifier_self
(identifier_nodes) identifier_nodes
)parameters
(block
(expression_statement
(assignment
(identifier_scenenodes) identifier_scenenode... | Get the scenenode in the given nodes
There should only be one scenenode in nodes!
:param nodes:
:type nodes:
:returns: None
:rtype: None
:raises: AssertionError |
(module
(function_definition
(function_name__can_connect) function_name__can_connect
(parameters
(identifier_ip) identifier_ip
(identifier_port) identifier_port
)parameters
(block
(expression_statement
(assignment
(identifier_cs) identifier_cs
(call
... | Checks if a TCP port at IP address is possible to connect to |
(module
(function_definition
(function_name_raise_figure_window) function_name_raise_figure_window
(parameters
(default_parameter
(identifier_f) identifier_f
(integer_0) integer_0
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
... | Raises the supplied figure number or figure window. |
(module
(function_definition
(function_name_experiments_predictions_update_state_success) function_name_experiments_predictions_update_state_success
(parameters
(identifier_self) identifier_self
(identifier_experiment_id) identifier_experiment_id
(identifier_run_id) identifier_run_id
(... | Update state of given prediction to success. Create a function data
resource for the given result file and associate it with the model run.
Parameters
----------
experiment_id : string
Unique experiment identifier
run_id : string
Unique model run identifi... |
(module
(function_definition
(function_name__build_deployments_object) function_name__build_deployments_object
(parameters
(typed_parameter
(identifier_contract_type) identifier_contract_type
(type
(identifier_str) identifier_str
)type
)typed_parameter
(type... | Returns a dict with properly formatted deployment data. |
(module
(function_definition
(function_name_serialize) function_name_serialize
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_expects) identifier_expects
(list_comprehension
(call
... | Serializes the CaseWrapper object for collection.
Warning, this will only grab the available information.
It is strongly that you only call this once all specs and
tests have completed. |
(module
(function_definition
(function_name_docker) function_name_docker
(parameters
(identifier_gandi) identifier_gandi
(identifier_vm) identifier_vm
(identifier_args) identifier_args
)parameters
(block
(if_statement
(not_operator
(list_comprehension
... | Manage docker instance |
(module
(function_definition
(function_name_set_element_dt) function_name_set_element_dt
(parameters
(identifier_self) identifier_self
(identifier_el_name) identifier_el_name
(identifier_dt) identifier_dt
(default_parameter
(identifier_tz) identifier_tz
(None) None
... | Set the text of the selected element to an ISO8601 formatted datetime.
Args:
el_name : str
Name of element to update.
dt : datetime.datetime
Date and time to set
tz : datetime.tzinfo
Timezone to set
- Without a timezone, other con... |
(module
(function_definition
(function_name_generate_age) function_name_generate_age
(parameters
(identifier_issue_time) identifier_issue_time
)parameters
(block
(expression_statement
(assignment
(identifier_td) identifier_td
(binary_operator
(call
... | Generate a age parameter for MAC authentication draft 00. |
(module
(function_definition
(function_name_generate) function_name_generate
(parameters
(identifier_basename) identifier_basename
(identifier_xml_list) identifier_xml_list
)parameters
(block
(expression_statement
(call
(identifier_generate_shared) identifier_genera... | generate complete MAVLink Objective-C implemenation |
(module
(function_definition
(function_name___CheckAndUnifyQueryFormat) function_name___CheckAndUnifyQueryFormat
(parameters
(identifier_self) identifier_self
(identifier_query_body) identifier_query_body
)parameters
(block
(if_statement
(parenthesized_expression
(b... | Checks and unifies the format of the query body.
:raises TypeError: If query_body is not of expected type (depending on the query compatibility mode).
:raises ValueError: If query_body is a dict but doesn\'t have valid query text.
:raises SystemError: If the query compatibility mode is undefine... |
(module
(function_definition
(function_name__fracRoiSparse) function_name__fracRoiSparse
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_fra... | Calculate an approximate pixel coverage fraction from the two masks.
We have no way to know a priori how much the coverage of the
two masks overlap in a give pixel. For example, masks that each
have frac = 0.5 could have a combined frac = [0.0 to 0.5].
The limits will be:
ma... |
(module
(function_definition
(function_name_solve) function_name_solve
(parameters
(identifier_graph) identifier_graph
(default_parameter
(identifier_debug) identifier_debug
(False) False
)default_parameter
(default_parameter
(identifier_anim) identifier_anim
... | Do MV routing for given nodes in `graph`.
Translate data from node objects to appropriate format before.
Args
----
graph: :networkx:`NetworkX Graph Obj< >`
NetworkX graph object with nodes
debug: bool, defaults to False
If True, information is printed while routing
anim: An... |
(module
(function_definition
(function_name_softmax_cross_entropy_one_hot) function_name_softmax_cross_entropy_one_hot
(parameters
(identifier_logits) identifier_logits
(identifier_labels) identifier_labels
(default_parameter
(identifier_weights_fn) identifier_weights_fn
(Non... | Calculate softmax cross entropy given one-hot labels and logits.
Args:
logits: Tensor of size [batch-size, o=1, p=1, num-classes]
labels: Tensor of size [batch-size, o=1, p=1, num-classes]
weights_fn: Function that takes in labels and weighs examples (unused)
Returns:
cross-entropy (scalar), weight... |
(module
(function_definition
(function_name_cleanup) function_name_cleanup
(parameters
(identifier_first_I) identifier_first_I
(identifier_first_Z) identifier_first_Z
)parameters
(block
(expression_statement
(assignment
(identifier_cont) identifier_cont
(i... | cleans up unbalanced steps
failure can be from unbalanced final step, or from missing steps,
this takes care of missing steps |
(module
(function_definition
(function_name_coerce_to_list) function_name_coerce_to_list
(parameters
(identifier_val) identifier_val
)parameters
(block
(if_statement
(identifier_val) identifier_val
(block
(if_statement
(not_operator
(call... | For parameters that can take either a single string or a list of strings,
this function will ensure that the result is a list containing the passed
values. |
(module
(function_definition
(function_name_deletegitlabciservice) function_name_deletegitlabciservice
(parameters
(identifier_self) identifier_self
(identifier_project_id) identifier_project_id
(identifier_token) identifier_token
(identifier_project_url) identifier_project_url
)pa... | Delete GitLab CI service settings
:param project_id: Project ID
:param token: Token
:param project_url: Project URL
:return: true if success, false if not |
(module
(function_definition
(function_name__get_socket) function_name__get_socket
(parameters
(identifier_self) identifier_self
(identifier_sid) identifier_sid
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(ide... | Return the socket object for a given session. |
(module
(function_definition
(function_name_get_class) function_name_get_class
(parameters
(identifier_classname) identifier_classname
)parameters
(block
(expression_statement
(assignment
(identifier_parts) identifier_parts
(call
(attribute
... | Returns the class object associated with the dot-notation classname.
Taken from here: http://stackoverflow.com/a/452981
:param classname: the classname
:type classname: str
:return: the class object
:rtype: object |
(module
(function_definition
(function_name_from_soup) function_name_from_soup
(parameters
(identifier_self) identifier_self
(identifier_soup) identifier_soup
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_soup) ident... | Factory Pattern. Fetches author data from given soup and builds the object |
(module
(function_definition
(function_name_minimum) function_name_minimum
(parameters
(identifier_attrs) identifier_attrs
(identifier_inputs) identifier_inputs
(identifier_proto_obj) identifier_proto_obj
)parameters
(block
(if_statement
(comparison_operator
(... | Elementwise minimum of arrays. |
(module
(function_definition
(function_name_cliques) function_name_cliques
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_reordered) identifier_reordered
(True) True
)default_parameter
)parameters
(block
(if_statement
(ident... | Returns a list of cliques |
(module
(function_definition
(function_name_overlap) function_name_overlap
(parameters
(identifier_listA) identifier_listA
(identifier_listB) identifier_listB
)parameters
(block
(if_statement
(boolean_operator
(parenthesized_expression
(comparison_operat... | Return list of objects shared by listA, listB. |
(module
(function_definition
(function_name_cursor_to_line) function_name_cursor_to_line
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_line) identifier_line
(None) None
)default_parameter
)parameters
(block
(expression_statement
... | Move cursor to a specific line in the current column.
:param int line: line number to move the cursor to. |
(module
(function_definition
(function_name_create_notification_channel) function_name_create_notification_channel
(parameters
(identifier_self) identifier_self
(identifier_callback_url) identifier_callback_url
(default_parameter
(identifier_calendar_ids) identifier_calendar_ids
... | Create a new channel for receiving push notifications.
:param string callback_url: The url that will receive push notifications.
Must not be longer than 128 characters and should be HTTPS.
:param tuple calendar_ids: List of calendar ids to create notification channels for. (Optional. Default em... |
(module
(function_definition
(function_name_execute_r) function_name_execute_r
(parameters
(identifier_prog) identifier_prog
(identifier_quiet) identifier_quiet
)parameters
(block
(expression_statement
(assignment
(identifier_FNULL) identifier_FNULL
(condi... | Run the R code prog an R subprocess
@raises ValueError if the subprocess exits with non-zero status |
(module
(function_definition
(function_name_bin_number) function_name_bin_number
(parameters
(identifier_datapoint) identifier_datapoint
(identifier_intervals) identifier_intervals
)parameters
(block
(expression_statement
(assignment
(identifier_index) identifier_in... | Given a datapoint and intervals representing bins, returns the number
represented in binned form, where the bin including the value is
set to 1 and all others are 0. |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
... | Save the current configuration to disk. |
(module
(function_definition
(function_name_get_intercom_data) function_name_get_intercom_data
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(dictionary
(pair
(string_"user_id") string_"user_id"
(attribute
... | Specify the user data sent to Intercom API |
(module
(function_definition
(function_name_search_phenotype) function_name_search_phenotype
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_phenotype_association_set_id) identifier_phenotype_association_set_id
(None) None
)default_parameter
... | Returns an iterator over the Phenotypes from the server |
(module
(function_definition
(function_name_texture_map_to_plane) function_name_texture_map_to_plane
(parameters
(identifier_dataset) identifier_dataset
(default_parameter
(identifier_origin) identifier_origin
(None) None
)default_parameter
(default_parameter
(i... | Texture map this dataset to a user defined plane. This is often used
to define a plane to texture map an image to this dataset. The plane
defines the spatial reference and extent of that image.
Parameters
----------
origin : tuple(float)
Length 3 iterable of floats d... |
(module
(function_definition
(function_name_construct_parameter_pattern) function_name_construct_parameter_pattern
(parameters
(identifier_parameter) identifier_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(sub... | Given a parameter definition returns a regex pattern that will match that
part of the path. |
(module
(function_definition
(function_name_moothedata) function_name_moothedata
(parameters
(identifier_data) identifier_data
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operato... | Return an amusing picture containing an item from a dict.
Parameters
----------
data: mapping
A mapping, such as a raster dataset's ``meta`` or ``profile``
property.
key:
A key of the ``data`` mapping. |
(module
(function_definition
(function_name_get_logging_tensor_hook) function_name_get_logging_tensor_hook
(parameters
(default_parameter
(identifier_every_n_iter) identifier_every_n_iter
(integer_100) integer_100
)default_parameter
(default_parameter
(identifier_tens... | Function to get LoggingTensorHook.
Args:
every_n_iter: `int`, print the values of `tensors` once every N local
steps taken on the current worker.
tensors_to_log: List of tensor names or dictionary mapping labels to tensor
names. If not set, log _TENSORS_TO_LOG by default.
**kwargs: a dictiona... |
(module
(function_definition
(function_name_textContent) function_name_textContent
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_text) identifier_text
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
... | Set textContent both on this node and related browser node. |
(module
(function_definition
(function_name_update_module_file) function_name_update_module_file
(parameters
(identifier_redbaron_tree) identifier_redbaron_tree
(identifier_module_path) identifier_module_path
(default_parameter
(identifier_show_diff) identifier_show_diff
(Fal... | Set show_diff to False to overwrite module_path with a new file generated from
``redbaron_tree``.
Returns True if tree is different from source. |
(module
(function_definition
(function_name_intervals_to_samples) function_name_intervals_to_samples
(parameters
(identifier_intervals) identifier_intervals
(identifier_labels) identifier_labels
(default_parameter
(identifier_offset) identifier_offset
(integer_0) integer_0
... | Convert an array of labeled time intervals to annotated samples.
Parameters
----------
intervals : np.ndarray, shape=(n, d)
An array of time intervals, as returned by
:func:`mir_eval.io.load_intervals()` or
:func:`mir_eval.io.load_labeled_intervals()`.
The ``i`` th interval ... |
(module
(function_definition
(function_name_option) function_name_option
(parameters
(identifier_self) identifier_self
(identifier_opt) identifier_opt
)parameters
(block
(if_statement
(comparison_operator
(string_'config.merge') string_'config.merge'
(attr... | Return options merged from config and pillar |
(module
(function_definition
(function_name_extensionResponse) function_name_extensionResponse
(parameters
(identifier_self) identifier_self
(identifier_namespace_uri) identifier_namespace_uri
(identifier_require_signed) identifier_require_signed
)parameters
(block
(if_statemen... | Return response arguments in the specified namespace.
@param namespace_uri: The namespace URI of the arguments to be
returned.
@param require_signed: True if the arguments should be among
those signed in the response, False if you don't care.
If require_signed is True and the ... |
(module
(function_definition
(function_name__render_with_context) function_name__render_with_context
(parameters
(identifier_self) identifier_self
(identifier_parsed_node) identifier_parsed_node
(identifier_config) identifier_config
)parameters
(block
(expression_statement
... | Given the parsed node and a SourceConfig to use during parsing,
render the node's sql wtih macro capture enabled.
Note: this mutates the config object when config() calls are rendered. |
(module
(function_definition
(function_name_submit) function_name_submit
(parameters
(identifier_cls) identifier_cls
(identifier_job_config) identifier_job_config
(default_parameter
(identifier_in_xg_transaction) identifier_in_xg_transaction
(False) False
)default_param... | Submit the job to run.
Args:
job_config: an instance of map_job.MapJobConfig.
in_xg_transaction: controls what transaction scope to use to start this MR
job. If True, there has to be an already opened cross-group transaction
scope. MR will use one entity group from it.
If False,... |
(module
(function_definition
(function_name_reverse_reference) function_name_reverse_reference
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifi... | Changes the coordinates as if the reference sequence has been reverse complemented |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_arcname) identifier_arcname
(None) None
)default_parameter
(dictionary_splat_pattern
... | Add a file or directory to the context tarball.
:param name: File or directory path.
:type name: unicode | str
:param args: Additional args for :meth:`tarfile.TarFile.add`.
:param kwargs: Additional kwargs for :meth:`tarfile.TarFile.add`. |
(module
(function_definition
(function_name_CallMethod) function_name_CallMethod
(parameters
(identifier_self) identifier_self
(identifier_method) identifier_method
(identifier_controller) identifier_controller
(identifier_request) identifier_request
(identifier_response_class) i... | Call the RPC method. The naming doesn't confirm PEP8, since it's
a method called by protobuf |
(module
(function_definition
(function_name_apply_to) function_name_apply_to
(parameters
(identifier_self) identifier_self
(identifier_A) identifier_A
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_A) identifier_A
... | Apply the coordinate transformation to points in A. |
(module
(function_definition
(function_name_unlock_area) function_name_unlock_area
(parameters
(identifier_self) identifier_self
(identifier_code) identifier_code
(identifier_index) identifier_index
)parameters
(block
(expression_statement
(call
(attribute
... | Unlocks a previously locked shared memory area. |
(module
(function_definition
(function_name_get_authors) function_name_get_authors
(parameters
(identifier_repo_path) identifier_repo_path
(identifier_from_commit) identifier_from_commit
)parameters
(block
(expression_statement
(assignment
(identifier_repo) identifi... | Given a repo and optionally a base revision to start from, will return
the list of authors. |
(module
(function_definition
(function_name_identify) function_name_identify
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_duration_s) identifier_duration_s
(type
(identifier_int) identifier_int
)type
(integer_5) intege... | Blink the button light to identify the robot.
:param int duration_s: The duration to blink for, in seconds. |
(module
(function_definition
(function_name__needs_base64_encoding) function_name__needs_base64_encoding
(parameters
(identifier_self) identifier_self
(identifier_attr_type) identifier_attr_type
(identifier_attr_value) identifier_attr_value
)parameters
(block
(return_statement
... | Return True if attr_value has to be base-64 encoded.
This is the case because of special chars or because attr_type is in
self._base64_attrs |
(module
(function_definition
(function_name_zeroed_observation) function_name_zeroed_observation
(parameters
(identifier_observation) identifier_observation
)parameters
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
... | Return an array of zeros with same shape as given observation
# Argument
observation (list): List of observation
# Return
A np.ndarray of zeros with observation.shape |
(module
(function_definition
(function_name_EXTRA_LOGGING) function_name_EXTRA_LOGGING
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_input_text) identifier_input_text
(call
(identifier_... | lista modulos con los distintos niveles a logear y su
nivel de debug
Por ejemplo:
[Logs]
EXTRA_LOGGING = oscar.paypal:DEBUG, django.db:INFO |
(module
(function_definition
(function_name__add_single_session_to_to_ordered_dict) function_name__add_single_session_to_to_ordered_dict
(parameters
(identifier_self) identifier_self
(identifier_d) identifier_d
(identifier_dataset_index) identifier_dataset_index
(identifier_recommended... | Save a single session to an ordered dictionary. |
(module
(function_definition
(function_name_merge) function_name_merge
(parameters
(identifier_file) identifier_file
(identifier_feature_layers) identifier_feature_layers
)parameters
(block
(expression_statement
(assignment
(identifier_tile) identifier_tile
... | Retrieve a list of OSciMap4 tile responses and merge them into one.
get_tiles() retrieves data and performs basic integrity checks. |
(module
(function_definition
(function_name_format_name) function_name_format_name
(parameters
(identifier_subject) identifier_subject
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_sub... | Convert a subject into the canonical form for distinguished names.
This function does not take care of sorting the subject in any meaningful order.
Examples::
>>> format_name([('CN', 'example.com'), ])
'/CN=example.com'
>>> format_name([('CN', 'example.com'), ('O', "My Organization"),... |
(module
(function_definition
(function_name_draw) function_name_draw
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_visible) identifier_visible
... | Draws the current text in the window |
(module
(function_definition
(function_name__parse_args) function_name__parse_args
(parameters
(identifier_func) identifier_func
(identifier_variables) identifier_variables
(default_parameter
(identifier_annotations) identifier_annotations
(None) None
)default_parameter... | Return a list of arguments with the variable it reads.
NOTE: Multiple arguments may read the same variable. |
(module
(function_definition
(function_name_fix_reference_url) function_name_fix_reference_url
(parameters
(identifier_url) identifier_url
)parameters
(block
(expression_statement
(assignment
(identifier_new_url) identifier_new_url
(identifier_url) identifier_ur... | Used to parse an incorect url to try to fix it with the most common ocurrences for errors.
If the fixed url is still incorrect, it returns ``None``.
Returns:
String containing the fixed url or the original one if it could not be fixed. |
(module
(function_definition
(function_name_proxy) function_name_proxy
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_original_target_route) identifier_original_target_route
(identifier_presenter_name) identifier_presenter_name
(... | Execute the given presenter as a target for the given client request
:param request: original client request
:param original_target_route: previous target route
:param presenter_name: target presenter name
:param kwargs: presenter arguments
:return: WWebResponseProto |
(module
(function_definition
(function_name_get_list_columns) function_name_get_list_columns
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
... | Returns the sharepoint list columns |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.