sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_get_package) function_name_get_package
(parameters
(identifier_repo_url) identifier_repo_url
(identifier_pkg_name) identifier_pkg_name
(default_parameter
(identifier_timeout) identifier_timeout
(integer_1) integer_1
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(binary_operator
(identifier_repo_url) identifier_repo_url
(string_"/packages/") string_"/packages/"
)binary_operator
(identifier_pkg_name) identifier_pkg_name
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(dictionary
(pair
(string_'accept') string_'accept'
(string_'application/json') string_'application/json'
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_resp) identifier_resp
(identifier_status_code) identifier_status_code
)attribute
(integer_404) integer_404
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_resp) identifier_resp
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieve package information from a Bower registry at repo_url.
Returns a dict of package data. |
(module
(function_definition
(function_name_basic_consume) function_name_basic_consume
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_queue) identifier_queue
(string_'') string_''
)default_parameter
(default_parameter
(identifier_consumer_tag) identifier_consumer_tag
(string_'') string_''
)default_parameter
(default_parameter
(identifier_no_local) identifier_no_local
(False) False
)default_parameter
(default_parameter
(identifier_no_ack) identifier_no_ack
(False) False
)default_parameter
(default_parameter
(identifier_exclusive) identifier_exclusive
(False) False
)default_parameter
(default_parameter
(identifier_nowait) identifier_nowait
(False) False
)default_parameter
(default_parameter
(identifier_callback) identifier_callback
(None) None
)default_parameter
(default_parameter
(identifier_ticket) identifier_ticket
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(identifier_AMQPWriter) identifier_AMQPWriter
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ticket) identifier_ticket
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_short) identifier_write_short
)attribute
(argument_list
(identifier_ticket) identifier_ticket
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_short) identifier_write_short
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_default_ticket) identifier_default_ticket
)attribute
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_shortstr) identifier_write_shortstr
)attribute
(argument_list
(identifier_queue) identifier_queue
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_shortstr) identifier_write_shortstr
)attribute
(argument_list
(identifier_consumer_tag) identifier_consumer_tag
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_bit) identifier_write_bit
)attribute
(argument_list
(identifier_no_local) identifier_no_local
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_bit) identifier_write_bit
)attribute
(argument_list
(identifier_no_ack) identifier_no_ack
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_bit) identifier_write_bit
)attribute
(argument_list
(identifier_exclusive) identifier_exclusive
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_write_bit) identifier_write_bit
)attribute
(argument_list
(identifier_nowait) identifier_nowait
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__send_method) identifier__send_method
)attribute
(argument_list
(tuple
(integer_60) integer_60
(integer_20) integer_20
)tuple
(identifier_args) identifier_args
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(identifier_nowait) identifier_nowait
)not_operator
(block
(expression_statement
(assignment
(identifier_consumer_tag) identifier_consumer_tag
(call
(attribute
(identifier_self) identifier_self
(identifier_wait) identifier_wait
)attribute
(argument_list
(keyword_argument
(identifier_allowed_methods) identifier_allowed_methods
(list
(tuple
(integer_60) integer_60
(integer_21) integer_21
)tuple
)list
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_callbacks) identifier_callbacks
)attribute
(identifier_consumer_tag) identifier_consumer_tag
)subscript
(identifier_callback) identifier_callback
)assignment
)expression_statement
(return_statement
(identifier_consumer_tag) identifier_consumer_tag
)return_statement
)block
)function_definition
)module | start a queue consumer
This method asks the server to start a "consumer", which is a
transient request for messages from a specific queue.
Consumers last as long as the channel they were created on, or
until the client cancels them.
RULE:
The server SHOULD support at least 16 consumers per queue,
unless the queue was declared as private, and ideally,
impose no limit except as defined by available resources.
PARAMETERS:
queue: shortstr
Specifies the name of the queue to consume from. If
the queue name is null, refers to the current queue
for the channel, which is the last declared queue.
RULE:
If the client did not previously declare a queue,
and the queue name in this method is empty, the
server MUST raise a connection exception with
reply code 530 (not allowed).
consumer_tag: shortstr
Specifies the identifier for the consumer. The
consumer tag is local to a connection, so two clients
can use the same consumer tags. If this field is empty
the server will generate a unique tag.
RULE:
The tag MUST NOT refer to an existing consumer. If
the client attempts to create two consumers with
the same non-empty tag the server MUST raise a
connection exception with reply code 530 (not
allowed).
no_local: boolean
do not deliver own messages
If the no-local field is set the server will not send
messages to the client that published them.
no_ack: boolean
no acknowledgement needed
If this field is set the server does not expect
acknowledgments for messages. That is, when a message
is delivered to the client the server automatically and
silently acknowledges it on behalf of the client. This
functionality increases performance but at the cost of
reliability. Messages can get lost if a client dies
before it can deliver them to the application.
exclusive: boolean
request exclusive access
Request exclusive consumer access, meaning only this
consumer can access the queue.
RULE:
If the server cannot grant exclusive access to the
queue when asked, - because there are other
consumers active - it MUST raise a channel
exception with return code 403 (access refused).
nowait: boolean
do not send a reply method
If set, the server will not respond to the method. The
client should not wait for a reply method. If the
server could not complete the method it will raise a
channel or connection exception.
callback: Python callable
function/method called with each delivered message
For each message delivered by the broker, the
callable will be called with a Message object
as the single argument. If no callable is specified,
messages are quietly discarded, no_ack should probably
be set to True in that case.
ticket: short
RULE:
The client MUST provide a valid access ticket
giving "read" access rights to the realm for the
queue. |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(dictionary
(pair
(string_'query') string_'query'
(call
(attribute
(identifier_self) identifier_self
(identifier_get_data) identifier_get_data
)attribute
(argument_list
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_data_type) identifier_data_type
)attribute
(string_"ip") string_"ip"
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'query_type') string_'query_type'
(string_'ip') string_'ip'
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_data_type) identifier_data_type
)attribute
(string_"network") string_"network"
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'query_type') string_'query_type'
(string_'network') string_'network'
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_data_type) identifier_data_type
)attribute
(string_'autonomous-system') string_'autonomous-system'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'query_type') string_'query_type'
(string_'asn') string_'asn'
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_data_type) identifier_data_type
)attribute
(string_'port') string_'port'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'query_type') string_'query_type'
(string_'port') string_'port'
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_notSupported) identifier_notSupported
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_service) identifier_service
)attribute
(string_'observations') string_'observations'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bs) identifier_bs
)attribute
(identifier_get_observations) identifier_get_observations
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_report) identifier_report
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_service) identifier_service
)attribute
(string_'enrichment') string_'enrichment'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_bs) identifier_bs
)attribute
(identifier_enrich) identifier_enrich
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_report) identifier_report
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_report) identifier_report
)attribute
(argument_list
(dictionary
(pair
(string_'error') string_'error'
(string_'Invalid service defined.') string_'Invalid service defined.'
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Run the process to get observation data from Backscatter.io. |
(module
(function_definition
(function_name_url) function_name_url
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
(default_parameter
(identifier_external) identifier_external
(False) False
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
(identifier_filename) identifier_filename
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_filename) identifier_filename
(subscript
(identifier_filename) identifier_filename
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_has_url) identifier_has_url
)attribute
(block
(return_statement
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_base_url) identifier_base_url
)attribute
(identifier_filename) identifier_filename
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_url_for) identifier_url_for
(argument_list
(string_'fs.get_file') string_'fs.get_file'
(keyword_argument
(identifier_fs) identifier_fs
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)keyword_argument
(keyword_argument
(identifier_filename) identifier_filename
(identifier_filename) identifier_filename
)keyword_argument
(keyword_argument
(identifier__external) identifier__external
(identifier_external) identifier_external
)keyword_argument
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | This function gets the URL a file uploaded to this set would be
accessed at. It doesn't check whether said file exists.
:param string filename: The filename to return the URL for.
:param bool external: If True, returns an absolute URL |
(module
(function_definition
(function_name__end_of_decade) function_name__end_of_decade
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_year) identifier_year
(binary_operator
(binary_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_year) identifier_year
)attribute
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_year) identifier_year
)attribute
(identifier_YEARS_PER_DECADE) identifier_YEARS_PER_DECADE
)binary_operator
)binary_operator
(identifier_YEARS_PER_DECADE) identifier_YEARS_PER_DECADE
)binary_operator
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set) identifier_set
)attribute
(argument_list
(identifier_year) identifier_year
(integer_12) integer_12
(integer_31) integer_31
)argument_list
)call
)return_statement
)block
)function_definition
)module | Reset the date to the last day of the decade.
:rtype: Date |
(module
(function_definition
(function_name_get_album) function_name_get_album
(parameters
(identifier_self) identifier_self
(identifier_id) identifier_id
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier__base_url) identifier__base_url
)attribute
(call
(attribute
(string_"/3/album/{0}") string_"/3/album/{0}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_id) identifier_id
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_json) identifier_json
(call
(attribute
(identifier_self) identifier_self
(identifier__send_request) identifier__send_request
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_Album) identifier_Album
(argument_list
(identifier_json) identifier_json
(identifier_self) identifier_self
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return information about this album. |
(module
(function_definition
(function_name_second_order_score) function_name_second_order_score
(parameters
(identifier_y) identifier_y
(identifier_mean) identifier_mean
(identifier_scale) identifier_scale
(identifier_shape) identifier_shape
(identifier_skewness) identifier_skewness
)parameters
(block
(return_statement
(binary_operator
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_shape) identifier_shape
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(identifier_shape) identifier_shape
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_y) identifier_y
(identifier_mean) identifier_mean
)binary_operator
)parenthesized_expression
)binary_operator
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_power) identifier_power
)attribute
(argument_list
(identifier_scale) identifier_scale
(integer_2) integer_2
)argument_list
)call
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_power) identifier_power
)attribute
(argument_list
(binary_operator
(identifier_y) identifier_y
(identifier_mean) identifier_mean
)binary_operator
(integer_2) integer_2
)argument_list
)call
(identifier_shape) identifier_shape
)binary_operator
)parenthesized_expression
)binary_operator
)parenthesized_expression
)binary_operator
(parenthesized_expression
(binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_shape) identifier_shape
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_power) identifier_power
)attribute
(argument_list
(identifier_scale) identifier_scale
(integer_2) integer_2
)argument_list
)call
(identifier_shape) identifier_shape
)binary_operator
)parenthesized_expression
(call
(attribute
(identifier_np) identifier_np
(identifier_power) identifier_power
)attribute
(argument_list
(binary_operator
(identifier_y) identifier_y
(identifier_mean) identifier_mean
)binary_operator
(integer_2) integer_2
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_power) identifier_power
)attribute
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_power) identifier_power
)attribute
(argument_list
(identifier_scale) identifier_scale
(integer_2) integer_2
)argument_list
)call
(identifier_shape) identifier_shape
)binary_operator
)parenthesized_expression
(call
(attribute
(identifier_np) identifier_np
(identifier_power) identifier_power
)attribute
(argument_list
(binary_operator
(identifier_y) identifier_y
(identifier_mean) identifier_mean
)binary_operator
(integer_2) integer_2
)argument_list
)call
)binary_operator
(integer_2) integer_2
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
)return_statement
)block
)function_definition
)module | GAS t Update term potentially using second-order information - native Python function
Parameters
----------
y : float
datapoint for the time series
mean : float
location parameter for the t distribution
scale : float
scale parameter for the t distribution
shape : float
tail thickness parameter for the t distribution
skewness : float
skewness parameter for the t distribution
Returns
----------
- Adjusted score of the t family |
(module
(function_definition
(function_name_join_field) function_name_join_field
(parameters
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(attribute
(string_".") string_"."
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(attribute
(identifier_f) identifier_f
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_".") string_"."
(string_"\\.") string_"\\."
)argument_list
)call
(for_in_clause
(identifier_f) identifier_f
(identifier_path) identifier_path
)for_in_clause
(if_clause
(comparison_operator
(identifier_f) identifier_f
(None) None
)comparison_operator
)if_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(return_statement
(conditional_expression
(identifier_output) identifier_output
(identifier_output) identifier_output
(string_".") string_"."
)conditional_expression
)return_statement
)block
)function_definition
)module | RETURN field SEQUENCE AS STRING |
(module
(function_definition
(function_name_populate_request_data) function_name_populate_request_data
(parameters
(identifier_self) identifier_self
(identifier_request_args) identifier_request_args
)parameters
(block
(expression_statement
(assignment
(subscript
(identifier_request_args) identifier_request_args
(string_'auth') string_'auth'
)subscript
(call
(identifier_HTTPBasicAuth) identifier_HTTPBasicAuth
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__username) identifier__username
)attribute
(attribute
(identifier_self) identifier_self
(identifier__password) identifier__password
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_request_args) identifier_request_args
)return_statement
)block
)function_definition
)module | Add the authentication info to the supplied dictionary.
We use the `requests.HTTPBasicAuth` class as the `auth` param.
Args:
`request_args`: The arguments that will be passed to the request.
Returns:
The updated arguments for the request. |
(module
(function_definition
(function_name_save_default_values) function_name_save_default_values
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_parameter_container) identifier_parameter_container
(attribute
(identifier_self) identifier_self
(identifier_default_value_parameter_containers) identifier_default_value_parameter_containers
)attribute
(block
(expression_statement
(assignment
(identifier_parameters) identifier_parameters
(call
(attribute
(identifier_parameter_container) identifier_parameter_container
(identifier_get_parameters) identifier_get_parameters
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_parameter) identifier_parameter
(identifier_parameters) identifier_parameters
(block
(expression_statement
(call
(identifier_set_inasafe_default_value_qsetting) identifier_set_inasafe_default_value_qsetting
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_settings) identifier_settings
)attribute
(identifier_GLOBAL) identifier_GLOBAL
(attribute
(identifier_parameter) identifier_parameter
(identifier_guid) identifier_guid
)attribute
(attribute
(identifier_parameter) identifier_parameter
(identifier_value) identifier_value
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Save InaSAFE default values. |
(module
(function_definition
(function_name_stop) function_name_stop
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Stopping playback") string_"Stopping playback"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_clock) identifier_clock
)attribute
(identifier_stop) identifier_stop
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_status) identifier_status
)attribute
(identifier_READY) identifier_READY
)assignment
)expression_statement
)block
)function_definition
)module | Stops the video stream and resets the clock. |
(module
(function_definition
(function_name_is_appendable_to) function_name_is_appendable_to
(parameters
(identifier_self) identifier_self
(identifier_group) identifier_group
)parameters
(block
(return_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(comparison_operator
(subscript
(attribute
(identifier_group) identifier_group
(identifier_attrs) identifier_attrs
)attribute
(string_'format') string_'format'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_dformat) identifier_dformat
)attribute
)comparison_operator
(comparison_operator
(attribute
(subscript
(identifier_group) identifier_group
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)subscript
(identifier_dtype) identifier_dtype
)attribute
(attribute
(identifier_self) identifier_self
(identifier_dtype) identifier_dtype
)attribute
)comparison_operator
)boolean_operator
(comparison_operator
(call
(attribute
(identifier_self) identifier_self
(identifier__group_dim) identifier__group_dim
)attribute
(argument_list
(identifier_group) identifier_group
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_dim) identifier_dim
)attribute
)comparison_operator
)boolean_operator
)parenthesized_expression
)return_statement
)block
)function_definition
)module | Return True if features are appendable to a HDF5 group |
(module
(function_definition
(function_name_average_loss) function_name_average_loss
(parameters
(identifier_lc) identifier_lc
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_losses) identifier_losses
(identifier_poes) identifier_poes
)pattern_list
(conditional_expression
(tuple
(subscript
(identifier_lc) identifier_lc
(string_'loss') string_'loss'
)subscript
(subscript
(identifier_lc) identifier_lc
(string_'poe') string_'poe'
)subscript
)tuple
(attribute
(attribute
(identifier_lc) identifier_lc
(identifier_dtype) identifier_dtype
)attribute
(identifier_names) identifier_names
)attribute
(identifier_lc) identifier_lc
)conditional_expression
)assignment
)expression_statement
(return_statement
(binary_operator
(unary_operator
(call
(identifier_pairwise_diff) identifier_pairwise_diff
(argument_list
(identifier_losses) identifier_losses
)argument_list
)call
)unary_operator
(call
(identifier_pairwise_mean) identifier_pairwise_mean
(argument_list
(identifier_poes) identifier_poes
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Given a loss curve array with `poe` and `loss` fields,
computes the average loss on a period of time.
:note: As the loss curve is supposed to be piecewise linear as it
is a result of a linear interpolation, we compute an exact
integral by using the trapeizodal rule with the width given by the
loss bin width. |
(module
(function_definition
(function_name__is_allowed_abbr) function_name__is_allowed_abbr
(parameters
(identifier_self) identifier_self
(identifier_tokens) identifier_tokens
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_tokens) identifier_tokens
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(assignment
(identifier_abbr_text) identifier_abbr_text
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_tokens) identifier_tokens
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_abbr_min) identifier_abbr_min
)attribute
(call
(identifier_len) identifier_len
(argument_list
(identifier_abbr_text) identifier_abbr_text
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_abbr_max) identifier_abbr_max
)attribute
)comparison_operator
(comparison_operator
(call
(identifier_bracket_level) identifier_bracket_level
(argument_list
(identifier_abbr_text) identifier_abbr_text
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(if_statement
(boolean_operator
(call
(attribute
(subscript
(identifier_abbr_text) identifier_abbr_text
(integer_0) integer_0
)subscript
(identifier_isalnum) identifier_isalnum
)attribute
(argument_list
)argument_list
)call
(call
(identifier_any) identifier_any
(generator_expression
(call
(attribute
(identifier_c) identifier_c
(identifier_isalpha) identifier_isalpha
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_c) identifier_c
(identifier_abbr_text) identifier_abbr_text
)for_in_clause
)generator_expression
)call
)boolean_operator
(block
(if_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_match) identifier_match
)attribute
(argument_list
(string_'^\d+(\.\d+)?(g|m[lL]|cm)$') string_'^\d+(\.\d+)?(g|m[lL]|cm)$'
(identifier_abbr_text) identifier_abbr_text
)argument_list
)call
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)if_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Return True if text is an allowed abbreviation. |
(module
(function_definition
(function_name__SetRow) function_name__SetRow
(parameters
(identifier_self) identifier_self
(identifier_new_values) identifier_new_values
(default_parameter
(identifier_row) identifier_row
(integer_0) integer_0
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_row) identifier_row
)not_operator
(block
(expression_statement
(assignment
(identifier_row) identifier_row
(attribute
(identifier_self) identifier_self
(identifier__row_index) identifier__row_index
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_row) identifier_row
(attribute
(identifier_self) identifier_self
(identifier_size) identifier_size
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_TableError) identifier_TableError
(argument_list
(binary_operator
(string_"Entry %s beyond table size %s.") string_"Entry %s beyond table size %s."
(tuple
(identifier_row) identifier_row
(attribute
(identifier_self) identifier_self
(identifier_size) identifier_size
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__table) identifier__table
)attribute
(identifier_row) identifier_row
)subscript
(identifier_values) identifier_values
)attribute
(identifier_new_values) identifier_new_values
)assignment
)expression_statement
)block
)function_definition
)module | Sets the current row to new list.
Args:
new_values: List|dict of new values to insert into row.
row: int, Row to insert values into.
Raises:
TableError: If number of new values is not equal to row size. |
(module
(function_definition
(function_name_console_set_char_foreground) function_name_console_set_char_foreground
(parameters
(typed_parameter
(identifier_con) identifier_con
(type
(attribute
(attribute
(identifier_tcod) identifier_tcod
(identifier_console) identifier_console
)attribute
(identifier_Console) identifier_Console
)attribute
)type
)typed_parameter
(typed_parameter
(identifier_x) identifier_x
(type
(identifier_int) identifier_int
)type
)typed_parameter
(typed_parameter
(identifier_y) identifier_y
(type
(identifier_int) identifier_int
)type
)typed_parameter
(typed_parameter
(identifier_col) identifier_col
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(identifier_int) identifier_int
)type
(type
(identifier_int) identifier_int
)type
(type
(identifier_int) identifier_int
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(call
(attribute
(identifier_lib) identifier_lib
(identifier_TCOD_console_set_char_foreground) identifier_TCOD_console_set_char_foreground
)attribute
(argument_list
(call
(identifier__console) identifier__console
(argument_list
(identifier_con) identifier_con
)argument_list
)call
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_col) identifier_col
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Change the foreground color of x,y to col.
Args:
con (Console): Any Console instance.
x (int): Character x position from the left.
y (int): Character y position from the top.
col (Union[Tuple[int, int, int], Sequence[int]]):
An (r, g, b) sequence or Color instance.
.. deprecated:: 8.4
Array access performs significantly faster than using this function.
See :any:`Console.fg`. |
(module
(function_definition
(function_name__get_pretty_string) function_name__get_pretty_string
(parameters
(identifier_obj) identifier_obj
)parameters
(block
(expression_statement
(assignment
(identifier_sio) identifier_sio
(call
(identifier_StringIO) identifier_StringIO
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_pprint) identifier_pprint
(identifier_pprint) identifier_pprint
)attribute
(argument_list
(identifier_obj) identifier_obj
(keyword_argument
(identifier_stream) identifier_stream
(identifier_sio) identifier_sio
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_sio) identifier_sio
(identifier_getvalue) identifier_getvalue
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a prettier version of obj
Parameters
----------
obj : object
Object to pretty print
Returns
-------
s : str
Pretty print object repr |
(module
(function_definition
(function_name_content_location) function_name_content_location
(parameters
(identifier_self) identifier_self
)parameters
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_UnstructuredHeader) identifier_UnstructuredHeader
)type
)type_parameter
)generic_type
)type
(block
(try_statement
(block
(return_statement
(call
(identifier_cast) identifier_cast
(argument_list
(identifier_UnstructuredHeader) identifier_UnstructuredHeader
(subscript
(subscript
(identifier_self) identifier_self
(string_b'content-location') string_b'content-location'
)subscript
(integer_0) integer_0
)subscript
)argument_list
)call
)return_statement
)block
(except_clause
(tuple
(identifier_KeyError) identifier_KeyError
(identifier_IndexError) identifier_IndexError
)tuple
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | The ``Content-Location`` header. |
(module
(function_definition
(function_name_get_empty_dirs) function_name_get_empty_dirs
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_empty_dirs) identifier_empty_dirs
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_child_path) identifier_child_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_i) identifier_i
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_i) identifier_i
(string_'.git') string_'.git'
)comparison_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_child_path) identifier_child_path
)argument_list
)call
)boolean_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_islink) identifier_islink
)attribute
(argument_list
(identifier_child_path) identifier_child_path
)argument_list
)call
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_path_only_contains_dirs) identifier_path_only_contains_dirs
)attribute
(argument_list
(identifier_child_path) identifier_child_path
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_empty_dirs) identifier_empty_dirs
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_empty_dirs) identifier_empty_dirs
)return_statement
)block
)function_definition
)module | Return a list of empty directories in path. |
(module
(function_definition
(function_name__purge) function_name__purge
(parameters
(identifier_dir) identifier_dir
(identifier_pattern) identifier_pattern
(default_parameter
(identifier_reason) identifier_reason
(string_'') string_''
)default_parameter
)parameters
(block
(for_statement
(identifier_f) identifier_f
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(identifier_dir) identifier_dir
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_search) identifier_search
)attribute
(argument_list
(identifier_pattern) identifier_pattern
(identifier_f) identifier_f
)argument_list
)call
(block
(print_statement
(call
(attribute
(string_"Purging file {0}. {1}") string_"Purging file {0}. {1}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_f) identifier_f
(identifier_reason) identifier_reason
)argument_list
)call
)print_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_remove) identifier_remove
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_dir) identifier_dir
(identifier_f) identifier_f
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | delete files in dir that match pattern |
(module
(function_definition
(function_name_add_wirevector) function_name_add_wirevector
(parameters
(identifier_self) identifier_self
(identifier_wirevector) identifier_wirevector
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_sanity_check_wirevector) identifier_sanity_check_wirevector
)attribute
(argument_list
(identifier_wirevector) identifier_wirevector
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_wirevector_set) identifier_wirevector_set
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_wirevector) identifier_wirevector
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_wirevector_by_name) identifier_wirevector_by_name
)attribute
(attribute
(identifier_wirevector) identifier_wirevector
(identifier_name) identifier_name
)attribute
)subscript
(identifier_wirevector) identifier_wirevector
)assignment
)expression_statement
)block
)function_definition
)module | Add a wirevector object to the block. |
(module
(function_definition
(function_name_run_vardict) function_name_run_vardict
(parameters
(identifier_align_bams) identifier_align_bams
(identifier_items) identifier_items
(identifier_ref_file) identifier_ref_file
(identifier_assoc_files) identifier_assoc_files
(default_parameter
(identifier_region) identifier_region
(None) None
)default_parameter
(default_parameter
(identifier_out_file) identifier_out_file
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_items) identifier_items
(call
(attribute
(identifier_shared) identifier_shared
(identifier_add_highdepth_genome_exclusion) identifier_add_highdepth_genome_exclusion
)attribute
(argument_list
(identifier_items) identifier_items
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_vcfutils) identifier_vcfutils
(identifier_is_paired_analysis) identifier_is_paired_analysis
)attribute
(argument_list
(identifier_align_bams) identifier_align_bams
(identifier_items) identifier_items
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_call_file) identifier_call_file
(call
(identifier__run_vardict_paired) identifier__run_vardict_paired
(argument_list
(identifier_align_bams) identifier_align_bams
(identifier_items) identifier_items
(identifier_ref_file) identifier_ref_file
(identifier_assoc_files) identifier_assoc_files
(identifier_region) identifier_region
(identifier_out_file) identifier_out_file
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_vcfutils) identifier_vcfutils
(identifier_check_paired_problems) identifier_check_paired_problems
)attribute
(argument_list
(identifier_items) identifier_items
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_call_file) identifier_call_file
(call
(identifier__run_vardict_caller) identifier__run_vardict_caller
(argument_list
(identifier_align_bams) identifier_align_bams
(identifier_items) identifier_items
(identifier_ref_file) identifier_ref_file
(identifier_assoc_files) identifier_assoc_files
(identifier_region) identifier_region
(identifier_out_file) identifier_out_file
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_call_file) identifier_call_file
)return_statement
)block
)function_definition
)module | Run VarDict variant calling. |
(module
(function_definition
(function_name_backup_file) function_name_backup_file
(parameters
(keyword_separator
)keyword_separator
(identifier_file) identifier_file
(identifier_host) identifier_host
)parameters
(block
(if_statement
(not_operator
(identifier__has_init) identifier__has_init
)not_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"This driver has not been properly initialised!") string_"This driver has not been properly initialised!"
)argument_list
)call
)raise_statement
)block
)if_statement
(try_statement
(block
(if_statement
(not_operator
(identifier__dry_run) identifier__dry_run
)not_operator
(block
(expression_statement
(assignment
(identifier_bucket) identifier_bucket
(call
(attribute
(identifier__boto_conn) identifier__boto_conn
(identifier_get_bucket) identifier_get_bucket
)attribute
(argument_list
(identifier__bucket_name) identifier__bucket_name
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
(except_clause
(attribute
(attribute
(identifier_boto) identifier_boto
(identifier_exception) identifier_exception
)attribute
(identifier_S3ResponseError) identifier_S3ResponseError
)attribute
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_msg_warn) identifier_msg_warn
)attribute
(argument_list
(call
(attribute
(string_"Bucket '{bucket_name}' does not exist!, creating it...") string_"Bucket '{bucket_name}' does not exist!, creating it..."
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_bucket_name) identifier_bucket_name
(identifier__bucket_name) identifier__bucket_name
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(identifier__dry_run) identifier__dry_run
)not_operator
(block
(expression_statement
(assignment
(identifier_bucket) identifier_bucket
(call
(attribute
(identifier__boto_conn) identifier__boto_conn
(identifier_create_bucket) identifier_create_bucket
)attribute
(argument_list
(identifier__bucket_name) identifier__bucket_name
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_msg) identifier_msg
)attribute
(argument_list
(call
(attribute
(string_"Created bucket '{bucket}'") string_"Created bucket '{bucket}'"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_bucket) identifier_bucket
(identifier__bucket_name) identifier__bucket_name
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_key_path) identifier_key_path
(call
(attribute
(string_"{key}/{file}") string_"{key}/{file}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_key) identifier_key
(identifier_host) identifier_host
)keyword_argument
(keyword_argument
(identifier_file) identifier_file
(call
(attribute
(identifier_ntpath) identifier_ntpath
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_file) identifier_file
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier__dry_run) identifier__dry_run
)not_operator
(block
(expression_statement
(assignment
(identifier_k) identifier_k
(call
(attribute
(attribute
(attribute
(identifier_boto) identifier_boto
(identifier_s3) identifier_s3
)attribute
(identifier_key) identifier_key
)attribute
(identifier_Key) identifier_Key
)attribute
(argument_list
(identifier_bucket) identifier_bucket
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_k) identifier_k
(identifier_key) identifier_key
)attribute
(identifier_key_path) identifier_key_path
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_msg) identifier_msg
)attribute
(argument_list
(call
(attribute
(string_"Uploading '{key_path}' to bucket '{bucket_name}' ...") string_"Uploading '{key_path}' to bucket '{bucket_name}' ..."
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_key_path) identifier_key_path
(identifier_key_path) identifier_key_path
)keyword_argument
(keyword_argument
(identifier_bucket_name) identifier_bucket_name
(identifier__bucket_name) identifier__bucket_name
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(identifier__dry_run) identifier__dry_run
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_k) identifier_k
(identifier_set_contents_from_filename) identifier_set_contents_from_filename
)attribute
(argument_list
(identifier_file) identifier_file
(keyword_argument
(identifier_encrypt_key) identifier_encrypt_key
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_msg) identifier_msg
)attribute
(argument_list
(call
(attribute
(string_"The file '{key_path}' has been successfully uploaded to S3!") string_"The file '{key_path}' has been successfully uploaded to S3!"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_key_path) identifier_key_path
(identifier_key_path) identifier_key_path
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Backup a file on S3
:param file: full path to the file to be backed up
:param host: this will be used to locate the file on S3
:raises TypeError: if an argument in kwargs does not have the type expected
:raises ValueError: if an argument within kwargs has an invalid value |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__is_verbose) identifier__is_verbose
)attribute
(block
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_writeln) identifier_writeln
)attribute
(argument_list
(string_'start') string_'start'
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__indent) identifier__indent
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Start a nested log. |
(module
(function_definition
(function_name_to_dict) function_name_to_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_host) identifier_host
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
)keyword_argument
(keyword_argument
(identifier_port) identifier_port
(attribute
(identifier_self) identifier_self
(identifier_port) identifier_port
)attribute
)keyword_argument
(keyword_argument
(identifier_database) identifier_database
(attribute
(identifier_self) identifier_self
(identifier_database) identifier_database
)attribute
)keyword_argument
(keyword_argument
(identifier_username) identifier_username
(attribute
(identifier_self) identifier_self
(identifier_username) identifier_username
)attribute
)keyword_argument
(keyword_argument
(identifier_password) identifier_password
(attribute
(identifier_self) identifier_self
(identifier_password) identifier_password
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convert credentials into a dict. |
(module
(function_definition
(function_name_get_child_book_ids) function_name_get_child_book_ids
(parameters
(identifier_self) identifier_self
(identifier_book_id) identifier_book_id
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__catalog_session) identifier__catalog_session
)attribute
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__catalog_session) identifier__catalog_session
)attribute
(identifier_get_child_catalog_ids) identifier_get_child_catalog_ids
)attribute
(argument_list
(keyword_argument
(identifier_catalog_id) identifier_catalog_id
(identifier_book_id) identifier_book_id
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__hierarchy_session) identifier__hierarchy_session
)attribute
(identifier_get_children) identifier_get_children
)attribute
(argument_list
(keyword_argument
(identifier_id_) identifier_id_
(identifier_book_id) identifier_book_id
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets the child ``Ids`` of the given book.
arg: book_id (osid.id.Id): the ``Id`` to query
return: (osid.id.IdList) - the children of the book
raise: NotFound - ``book_id`` is not found
raise: NullArgument - ``book_id`` is ``null``
raise: OperationFailed - unable to complete request
raise: PermissionDenied - authorization failure
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name__flush) function_name__flush
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)expression_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_io) identifier_io
(identifier_open) identifier_open
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
(string_'w') string_'w'
(keyword_argument
(identifier_encoding) identifier_encoding
(string_'utf8') string_'utf8'
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_yaml) identifier_yaml
(identifier_safe_dump) identifier_safe_dump
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
(identifier_f) identifier_f
(keyword_argument
(identifier_default_flow_style) identifier_default_flow_style
(False) False
)keyword_argument
(keyword_argument
(identifier_encoding) identifier_encoding
(None) None
)keyword_argument
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Save the contents of data to the file on disk. You should not need to call this manually. |
(module
(function_definition
(function_name_percent) function_name_percent
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(type
(string_'Gap') string_'Gap'
)type
(block
(expression_statement
(call
(identifier_raise_not_number) identifier_raise_not_number
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_gap) identifier_gap
)attribute
(call
(attribute
(string_'{}%') string_'{}%'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Set the margin as a percentage. |
(module
(function_definition
(function_name_build_row) function_name_build_row
(parameters
(identifier_row) identifier_row
(identifier_left) identifier_left
(identifier_center) identifier_center
(identifier_right) identifier_right
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(identifier_row) identifier_row
)not_operator
(not_operator
(subscript
(identifier_row) identifier_row
(integer_0) integer_0
)subscript
)not_operator
)boolean_operator
(block
(expression_statement
(yield
(call
(identifier_combine) identifier_combine
(argument_list
(tuple
)tuple
(identifier_left) identifier_left
(identifier_center) identifier_center
(identifier_right) identifier_right
)argument_list
)call
)yield
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(for_statement
(identifier_row_index) identifier_row_index
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_row) identifier_row
(integer_0) integer_0
)subscript
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(yield
(call
(identifier_combine) identifier_combine
(argument_list
(generator_expression
(subscript
(identifier_c) identifier_c
(identifier_row_index) identifier_row_index
)subscript
(for_in_clause
(identifier_c) identifier_c
(identifier_row) identifier_row
)for_in_clause
)generator_expression
(identifier_left) identifier_left
(identifier_center) identifier_center
(identifier_right) identifier_right
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Combine single or multi-lined cells into a single row of list of lists including borders.
Row must already be padded and extended so each cell has the same number of lines.
Example return value:
[
['>', 'Left ', '|', 'Center', '|', 'Right', '<'],
['>', 'Cell1', '|', 'Cell2 ', '|', 'Cell3', '<'],
]
:param iter row: List of cells for one row.
:param str left: Left border.
:param str center: Column separator.
:param str right: Right border.
:return: Yields other generators that yield strings.
:rtype: iter |
(module
(function_definition
(function_name__convert_bin_to_datelike_type) function_name__convert_bin_to_datelike_type
(parameters
(identifier_bins) identifier_bins
(identifier_dtype) identifier_dtype
)parameters
(block
(if_statement
(call
(identifier_is_datetime64tz_dtype) identifier_is_datetime64tz_dtype
(argument_list
(identifier_dtype) identifier_dtype
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_bins) identifier_bins
(call
(attribute
(call
(identifier_to_datetime) identifier_to_datetime
(argument_list
(call
(attribute
(identifier_bins) identifier_bins
(identifier_astype) identifier_astype
)attribute
(argument_list
(attribute
(identifier_np) identifier_np
(identifier_int64) identifier_int64
)attribute
)argument_list
)call
(keyword_argument
(identifier_utc) identifier_utc
(True) True
)keyword_argument
)argument_list
)call
(identifier_tz_convert) identifier_tz_convert
)attribute
(argument_list
(attribute
(identifier_dtype) identifier_dtype
(identifier_tz) identifier_tz
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_is_datetime_or_timedelta_dtype) identifier_is_datetime_or_timedelta_dtype
(argument_list
(identifier_dtype) identifier_dtype
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_bins) identifier_bins
(call
(identifier_Index) identifier_Index
(argument_list
(call
(attribute
(identifier_bins) identifier_bins
(identifier_astype) identifier_astype
)attribute
(argument_list
(attribute
(identifier_np) identifier_np
(identifier_int64) identifier_int64
)attribute
)argument_list
)call
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_dtype) identifier_dtype
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(return_statement
(identifier_bins) identifier_bins
)return_statement
)block
)function_definition
)module | Convert bins to a DatetimeIndex or TimedeltaIndex if the orginal dtype is
datelike
Parameters
----------
bins : list-like of bins
dtype : dtype of data
Returns
-------
bins : Array-like of bins, DatetimeIndex or TimedeltaIndex if dtype is
datelike |
(module
(function_definition
(function_name_ReadAllClientGraphSeries) function_name_ReadAllClientGraphSeries
(parameters
(identifier_self) identifier_self
(identifier_client_label) identifier_client_label
(identifier_report_type) identifier_report_type
(default_parameter
(identifier_time_range) identifier_time_range
(None) None
)default_parameter
(default_parameter
(identifier_cursor) identifier_cursor
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_query) identifier_query
(assignment
(identifier_args) identifier_args
(list
(identifier_client_label) identifier_client_label
(call
(attribute
(identifier_report_type) identifier_report_type
(identifier_SerializeToDataStore) identifier_SerializeToDataStore
)attribute
(argument_list
)argument_list
)call
)list
)assignment
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_time_range) identifier_time_range
(None) None
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_query) identifier_query
(string_"AND `timestamp` BETWEEN FROM_UNIXTIME(%s) AND FROM_UNIXTIME(%s)") string_"AND `timestamp` BETWEEN FROM_UNIXTIME(%s) AND FROM_UNIXTIME(%s)"
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_args) identifier_args
(list
(call
(attribute
(identifier_mysql_utils) identifier_mysql_utils
(identifier_RDFDatetimeToTimestamp) identifier_RDFDatetimeToTimestamp
)attribute
(argument_list
(attribute
(identifier_time_range) identifier_time_range
(identifier_start) identifier_start
)attribute
)argument_list
)call
(call
(attribute
(identifier_mysql_utils) identifier_mysql_utils
(identifier_RDFDatetimeToTimestamp) identifier_RDFDatetimeToTimestamp
)attribute
(argument_list
(attribute
(identifier_time_range) identifier_time_range
(identifier_end) identifier_end
)attribute
)argument_list
)call
)list
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_execute) identifier_execute
)attribute
(argument_list
(identifier_query) identifier_query
(identifier_args) identifier_args
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_timestamp) identifier_timestamp
(identifier_raw_series) identifier_raw_series
)pattern_list
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_fetchall) identifier_fetchall
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_timestamp) identifier_timestamp
(call
(identifier_cast) identifier_cast
(argument_list
(attribute
(identifier_rdfvalue) identifier_rdfvalue
(identifier_RDFDatetime) identifier_RDFDatetime
)attribute
(call
(attribute
(identifier_mysql_utils) identifier_mysql_utils
(identifier_TimestampToRDFDatetime) identifier_TimestampToRDFDatetime
)attribute
(argument_list
(identifier_timestamp) identifier_timestamp
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_series) identifier_series
(call
(attribute
(attribute
(identifier_rdf_stats) identifier_rdf_stats
(identifier_ClientGraphSeries) identifier_ClientGraphSeries
)attribute
(identifier_FromSerializedString) identifier_FromSerializedString
)attribute
(argument_list
(identifier_raw_series) identifier_raw_series
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_results) identifier_results
(identifier_timestamp) identifier_timestamp
)subscript
(identifier_series) identifier_series
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_results) identifier_results
)return_statement
)block
)function_definition
)module | Reads graph series for the given label and report-type from the DB. |
(module
(function_definition
(function_name_formatter_class) function_name_formatter_class
(parameters
(identifier_klass) identifier_klass
)parameters
(block
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(identifier_func) identifier_func
)parameters
(block
(expression_statement
(assignment
(identifier_adaptor) identifier_adaptor
(call
(attribute
(identifier_ScriptAdaptor) identifier_ScriptAdaptor
(identifier__get_adaptor) identifier__get_adaptor
)attribute
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_adaptor) identifier_adaptor
(identifier_formatter_class) identifier_formatter_class
)attribute
(identifier_klass) identifier_klass
)assignment
)expression_statement
(return_statement
(identifier_func) identifier_func
)return_statement
)block
)function_definition
(return_statement
(identifier_decorator) identifier_decorator
)return_statement
)block
)function_definition
)module | Decorator used to specify the formatter class for the console
script.
:param klass: The formatter class to use. |
(module
(function_definition
(function_name_add_neighbours) function_name_add_neighbours
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ipix) identifier_ipix
(call
(attribute
(identifier_self) identifier_self
(identifier__best_res_pixels) identifier__best_res_pixels
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hp) identifier_hp
(call
(identifier_HEALPix) identifier_HEALPix
(argument_list
(keyword_argument
(identifier_nside) identifier_nside
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(attribute
(identifier_self) identifier_self
(identifier_max_order) identifier_max_order
)attribute
)binary_operator
)parenthesized_expression
)keyword_argument
(keyword_argument
(identifier_order) identifier_order
(string_'nested') string_'nested'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_extend_ipix) identifier_extend_ipix
(call
(attribute
(identifier_AbstractMOC) identifier_AbstractMOC
(identifier__neighbour_pixels) identifier__neighbour_pixels
)attribute
(argument_list
(identifier_hp) identifier_hp
(identifier_ipix) identifier_ipix
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_neigh_ipix) identifier_neigh_ipix
(call
(attribute
(identifier_np) identifier_np
(identifier_setdiff1d) identifier_setdiff1d
)attribute
(argument_list
(identifier_extend_ipix) identifier_extend_ipix
(identifier_ipix) identifier_ipix
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_shift) identifier_shift
(binary_operator
(integer_2) integer_2
(parenthesized_expression
(binary_operator
(attribute
(identifier_AbstractMOC) identifier_AbstractMOC
(identifier_HPY_MAX_NORDER) identifier_HPY_MAX_NORDER
)attribute
(attribute
(identifier_self) identifier_self
(identifier_max_order) identifier_max_order
)attribute
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_neigh_itv) identifier_neigh_itv
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_vstack) identifier_vstack
)attribute
(argument_list
(tuple
(binary_operator
(identifier_neigh_ipix) identifier_neigh_ipix
(identifier_shift) identifier_shift
)binary_operator
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_neigh_ipix) identifier_neigh_ipix
(integer_1) integer_1
)binary_operator
)parenthesized_expression
(identifier_shift) identifier_shift
)binary_operator
)tuple
)argument_list
)call
(identifier_T) identifier_T
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__interval_set) identifier__interval_set
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__interval_set) identifier__interval_set
)attribute
(identifier_union) identifier_union
)attribute
(argument_list
(call
(identifier_IntervalSet) identifier_IntervalSet
(argument_list
(identifier_neigh_itv) identifier_neigh_itv
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Extends the MOC instance so that it includes the HEALPix cells touching its border.
The depth of the HEALPix cells added at the border is equal to the maximum depth of the MOC instance.
Returns
-------
moc : `~mocpy.moc.MOC`
self extended by one degree of neighbours. |
(module
(function_definition
(function_name_process) function_name_process
(parameters
(identifier_self) identifier_self
(identifier_user) identifier_user
(identifier_timestamp) identifier_timestamp
(default_parameter
(identifier_data) identifier_data
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_event) identifier_event
(call
(identifier_Event) identifier_Event
(argument_list
(identifier_user) identifier_user
(call
(attribute
(identifier_mwtypes) identifier_mwtypes
(identifier_Timestamp) identifier_Timestamp
)attribute
(argument_list
(identifier_timestamp) identifier_timestamp
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_event_i) identifier_event_i
)attribute
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_event_i) identifier_event_i
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
(for_statement
(pattern_list
(identifier_user) identifier_user
(identifier_events) identifier_events
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__clear_expired) identifier__clear_expired
)attribute
(argument_list
(attribute
(identifier_event) identifier_event
(identifier_timestamp) identifier_timestamp
)attribute
)argument_list
)call
(block
(expression_statement
(yield
(call
(identifier_Session) identifier_Session
(argument_list
(identifier_user) identifier_user
(call
(identifier_unpack_events) identifier_unpack_events
(argument_list
(identifier_events) identifier_events
)argument_list
)call
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
(if_statement
(comparison_operator
(attribute
(identifier_event) identifier_event
(identifier_user) identifier_user
)attribute
(attribute
(identifier_self) identifier_self
(identifier_active_users) identifier_active_users
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_events) identifier_events
(subscript
(attribute
(identifier_self) identifier_self
(identifier_active_users) identifier_active_users
)attribute
(attribute
(identifier_event) identifier_event
(identifier_user) identifier_user
)attribute
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_events) identifier_events
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_active_users) identifier_active_users
)attribute
(attribute
(identifier_event) identifier_event
(identifier_user) identifier_user
)attribute
)subscript
(identifier_events) identifier_events
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_active_session) identifier_active_session
(call
(identifier_ActiveSession) identifier_ActiveSession
(argument_list
(attribute
(identifier_event) identifier_event
(identifier_timestamp) identifier_timestamp
)attribute
(attribute
(identifier_event) identifier_event
(identifier_i) identifier_i
)attribute
(identifier_events) identifier_events
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_recently_active) identifier_recently_active
)attribute
(identifier_push) identifier_push
)attribute
(argument_list
(identifier_active_session) identifier_active_session
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_events) identifier_events
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_event) identifier_event
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Processes a user event.
:Parameters:
user : `hashable`
A hashable value to identify a user (`int` or `str` are OK)
timestamp : :class:`mwtypes.Timestamp`
The timestamp of the event
data : `mixed`
Event meta data
:Returns:
A generator of :class:`~mwsessions.Session` expired after
processing the user event. |
(module
(function_definition
(function_name_seek) function_name_seek
(parameters
(identifier_self) identifier_self
(identifier_pos) identifier_pos
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_debug) identifier_debug
)attribute
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_'seek: %r') string_'seek: %r'
(identifier_pos) identifier_pos
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_fp) identifier_fp
)attribute
(identifier_seek) identifier_seek
)attribute
(argument_list
(identifier_pos) identifier_pos
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_bufpos) identifier_bufpos
)attribute
(identifier_pos) identifier_pos
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_buf) identifier_buf
)attribute
(string_b'') string_b''
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_charpos) identifier_charpos
)attribute
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__parse1) identifier__parse1
)attribute
(attribute
(identifier_self) identifier_self
(identifier__parse_main) identifier__parse_main
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__curtoken) identifier__curtoken
)attribute
(string_b'') string_b''
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__curtokenpos) identifier__curtokenpos
)attribute
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__tokens) identifier__tokens
)attribute
(list
)list
)assignment
)expression_statement
(return_statement
)return_statement
)block
)function_definition
)module | Seeks the parser to the given position. |
(module
(function_definition
(function_name_get_shared_people) function_name_get_shared_people
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_people) identifier_people
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(attribute
(identifier_self) identifier_self
(identifier__get_data) identifier__get_data
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(identifier_output) identifier_output
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_shared_entries) identifier_shared_entries
(boolean_operator
(subscript
(identifier_output) identifier_output
(integer_0) integer_0
)subscript
(list
)list
)boolean_operator
)assignment
)expression_statement
(for_statement
(identifier_info) identifier_info
(identifier_shared_entries) identifier_shared_entries
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_people) identifier_people
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_Person) identifier_Person
(argument_list
(identifier_info) identifier_info
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_InvalidData) identifier_InvalidData
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Missing location or other info, dropping person with info: %s') string_'Missing location or other info, dropping person with info: %s'
(identifier_info) identifier_info
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(identifier_people) identifier_people
)return_statement
)block
)function_definition
)module | Retrieves all people that share their location with this account |
(module
(function_definition
(function_name_in_batches) function_name_in_batches
(parameters
(identifier_iterable) identifier_iterable
(identifier_batch_size) identifier_batch_size
)parameters
(block
(expression_statement
(assignment
(identifier_items) identifier_items
(call
(identifier_list) identifier_list
(argument_list
(identifier_iterable) identifier_iterable
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_size) identifier_size
(call
(identifier_len) identifier_len
(argument_list
(identifier_items) identifier_items
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_0) integer_0
(identifier_size) identifier_size
(identifier_batch_size) identifier_batch_size
)argument_list
)call
(block
(expression_statement
(yield
(subscript
(identifier_items) identifier_items
(slice
(identifier_i) identifier_i
(colon) colon
(call
(identifier_min) identifier_min
(argument_list
(binary_operator
(identifier_i) identifier_i
(identifier_batch_size) identifier_batch_size
)binary_operator
(identifier_size) identifier_size
)argument_list
)call
)slice
)subscript
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Split the given iterable into batches.
Args:
iterable (Iterable[Any]):
The iterable you want to split into batches.
batch_size (int):
The size of each bach. The last batch will be probably smaller (if
the number of elements cannot be equally divided.
Returns:
Generator[list[Any]]: Will yield all items in batches of **batch_size**
size.
Example:
>>> from peltak.core import util
>>>
>>> batches = util.in_batches([1, 2, 3, 4, 5, 6, 7], 3)
>>> batches = list(batches) # so we can query for lenght
>>> len(batches)
3
>>> batches
[[1, 2, 3], [4, 5, 6], [7]] |
(module
(function_definition
(function_name_options) function_name_options
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_urls) identifier_urls
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_overrides) identifier_overrides
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_urls) identifier_urls
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_overrides) identifier_overrides
(string_'urls') string_'urls'
)subscript
(identifier_urls) identifier_urls
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_where) identifier_where
)attribute
(argument_list
(keyword_argument
(identifier_accept) identifier_accept
(string_'OPTIONS') string_'OPTIONS'
)keyword_argument
(dictionary_splat
(identifier_overrides) identifier_overrides
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Sets the acceptable HTTP method to OPTIONS |
(module
(function_definition
(function_name_has_option) function_name_has_option
(parameters
(identifier_self) identifier_self
(identifier_section) identifier_section
(identifier_option) identifier_option
)parameters
(block
(if_statement
(comparison_operator
(identifier_section) identifier_section
(call
(attribute
(identifier_self) identifier_self
(identifier_sections) identifier_sections
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_option) identifier_option
(call
(attribute
(identifier_self) identifier_self
(identifier_optionxform) identifier_optionxform
)attribute
(argument_list
(identifier_option) identifier_option
)argument_list
)call
)assignment
)expression_statement
(return_statement
(comparison_operator
(identifier_option) identifier_option
(subscript
(identifier_self) identifier_self
(identifier_section) identifier_section
)subscript
)comparison_operator
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Checks for the existence of a given option in a given section.
Args:
section (str): name of section
option (str): name of option
Returns:
bool: whether the option exists in the given section |
(module
(function_definition
(function_name_resolve_aliases) function_name_resolve_aliases
(parameters
(identifier_self) identifier_self
(identifier_target) identifier_target
(default_parameter
(identifier_scope) identifier_scope
(None) None
)default_parameter
)parameters
(block
(for_statement
(identifier_declared) identifier_declared
(attribute
(identifier_target) identifier_target
(identifier_dependencies) identifier_dependencies
)attribute
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_scope) identifier_scope
(None) None
)comparison_operator
(comparison_operator
(attribute
(identifier_declared) identifier_declared
(identifier_scope) identifier_scope
)attribute
(identifier_scope) identifier_scope
)comparison_operator
)boolean_operator
(block
(continue_statement
)continue_statement
)block
(elif_clause
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_declared) identifier_declared
)argument_list
)call
(tuple
(identifier_AliasTarget) identifier_AliasTarget
(identifier_Target) identifier_Target
)tuple
)comparison_operator
(block
(for_statement
(pattern_list
(identifier_r) identifier_r
(identifier__) identifier__
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_resolve_aliases) identifier_resolve_aliases
)attribute
(argument_list
(identifier_declared) identifier_declared
(keyword_argument
(identifier_scope) identifier_scope
(identifier_scope) identifier_scope
)keyword_argument
)argument_list
)call
(block
(expression_statement
(yield
(expression_list
(identifier_r) identifier_r
(identifier_declared) identifier_declared
)expression_list
)yield
)expression_statement
)block
)for_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(yield
(expression_list
(identifier_declared) identifier_declared
(None) None
)expression_list
)yield
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module | Resolve aliases in the direct dependencies of the target.
:param target: The direct dependencies of this target are included.
:param scope: When specified, only deps with this scope are included. This is more
than a filter, because it prunes the subgraphs represented by aliases with
un-matched scopes.
:returns: An iterator of (resolved_dependency, resolved_from) tuples.
`resolved_from` is the top level target alias that depends on `resolved_dependency`,
and `None` if `resolved_dependency` is not a dependency of a target alias. |
(module
(function_definition
(function_name_tomof) function_name_tomof
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_maxline) identifier_maxline
(identifier_MAX_MOF_LINE) identifier_MAX_MOF_LINE
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_mof) identifier_mof
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_mof) identifier_mof
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier__qualifiers_tomof) identifier__qualifiers_tomof
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_qualifiers) identifier_qualifiers
)attribute
(identifier_MOF_INDENT) identifier_MOF_INDENT
(identifier_maxline) identifier_maxline
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_mof) identifier_mof
(identifier_append) identifier_append
)attribute
(argument_list
(string_u'class ') string_u'class '
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_mof) identifier_mof
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_classname) identifier_classname
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_mof) identifier_mof
(identifier_append) identifier_append
)attribute
(argument_list
(string_u' ') string_u' '
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_superclass) identifier_superclass
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_mof) identifier_mof
(identifier_append) identifier_append
)attribute
(argument_list
(string_u': ') string_u': '
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_mof) identifier_mof
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_superclass) identifier_superclass
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_mof) identifier_mof
(identifier_append) identifier_append
)attribute
(argument_list
(string_u' ') string_u' '
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_mof) identifier_mof
(identifier_append) identifier_append
)attribute
(argument_list
(string_u'{\n') string_u'{\n'
)argument_list
)call
)expression_statement
(for_statement
(identifier_p) identifier_p
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_properties) identifier_properties
)attribute
(identifier_itervalues) identifier_itervalues
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_mof) identifier_mof
(identifier_append) identifier_append
)attribute
(argument_list
(string_u'\n') string_u'\n'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_mof) identifier_mof
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_p) identifier_p
(identifier_tomof) identifier_tomof
)attribute
(argument_list
(False) False
(identifier_MOF_INDENT) identifier_MOF_INDENT
(identifier_maxline) identifier_maxline
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(for_statement
(identifier_m) identifier_m
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_methods) identifier_methods
)attribute
(identifier_itervalues) identifier_itervalues
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_mof) identifier_mof
(identifier_append) identifier_append
)attribute
(argument_list
(string_u'\n') string_u'\n'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_mof) identifier_mof
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_m) identifier_m
(identifier_tomof) identifier_tomof
)attribute
(argument_list
(identifier_MOF_INDENT) identifier_MOF_INDENT
(identifier_maxline) identifier_maxline
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_mof) identifier_mof
(identifier_append) identifier_append
)attribute
(argument_list
(string_u'\n};\n') string_u'\n};\n'
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(string_u'') string_u''
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_mof) identifier_mof
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a MOF string with the declaration of this CIM class.
The returned MOF string conforms to the ``classDeclaration``
ABNF rule defined in :term:`DSP0004`.
The order of properties, methods, parameters, and qualifiers is
preserved.
The :attr:`~pywbem.CIMClass.path` attribute of this object will not be
included in the returned MOF string.
Consistent with that, class path information is not included in the
returned MOF string.
Returns:
:term:`unicode string`: MOF string. |
(module
(function_definition
(function_name_check_bam) function_name_check_bam
(parameters
(identifier_bam) identifier_bam
(default_parameter
(identifier_samtype) identifier_samtype
(string_"bam") string_"bam"
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_ut) identifier_ut
(identifier_check_existance) identifier_check_existance
)attribute
(argument_list
(identifier_bam) identifier_bam
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_samfile) identifier_samfile
(call
(attribute
(identifier_pysam) identifier_pysam
(identifier_AlignmentFile) identifier_AlignmentFile
)attribute
(argument_list
(identifier_bam) identifier_bam
(string_"rb") string_"rb"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_samfile) identifier_samfile
(identifier_has_index) identifier_has_index
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_pysam) identifier_pysam
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_bam) identifier_bam
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_samfile) identifier_samfile
(call
(attribute
(identifier_pysam) identifier_pysam
(identifier_AlignmentFile) identifier_AlignmentFile
)attribute
(argument_list
(identifier_bam) identifier_bam
(string_"rb") string_"rb"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Nanoget: No index for bam file could be found, created index.") string_"Nanoget: No index for bam file could be found, created index."
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(comparison_operator
(subscript
(subscript
(attribute
(identifier_samfile) identifier_samfile
(identifier_header) identifier_header
)attribute
(string_'HD') string_'HD'
)subscript
(string_'SO') string_'SO'
)subscript
(string_'coordinate') string_'coordinate'
)comparison_operator
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_error) identifier_error
)attribute
(argument_list
(call
(attribute
(string_"Nanoget: Bam file {} not sorted by coordinate!.") string_"Nanoget: Bam file {} not sorted by coordinate!."
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_bam) identifier_bam
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(string_"Please use a bam file sorted by coordinate.") string_"Please use a bam file sorted by coordinate."
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_samtype) identifier_samtype
(string_"bam") string_"bam"
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_"Nanoget: Bam file {} contains {} mapped and {} unmapped reads.") string_"Nanoget: Bam file {} contains {} mapped and {} unmapped reads."
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_bam) identifier_bam
(attribute
(identifier_samfile) identifier_samfile
(identifier_mapped) identifier_mapped
)attribute
(attribute
(identifier_samfile) identifier_samfile
(identifier_unmapped) identifier_unmapped
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_samfile) identifier_samfile
(identifier_mapped) identifier_mapped
)attribute
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_error) identifier_error
)attribute
(argument_list
(call
(attribute
(string_"Nanoget: Bam file {} does not contain aligned reads.") string_"Nanoget: Bam file {} does not contain aligned reads."
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_bam) identifier_bam
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(call
(attribute
(string_"FATAL: not a single read was mapped in bam file {}") string_"FATAL: not a single read was mapped in bam file {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_bam) identifier_bam
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_samfile) identifier_samfile
)return_statement
)block
)function_definition
)module | Check if bam file is valid.
Bam file should:
- exists
- has an index (create if necessary)
- is sorted by coordinate
- has at least one mapped read |
(module
(function_definition
(function_name_get_basic_profile) function_name_get_basic_profile
(parameters
(identifier_self) identifier_self
(identifier_user_id) identifier_user_id
(default_parameter
(identifier_scope) identifier_scope
(string_'profile/public') string_'profile/public'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_profile) identifier_profile
(call
(identifier__get) identifier__get
(argument_list
(keyword_argument
(identifier_token) identifier_token
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_oauth) identifier_oauth
)attribute
(identifier_get_app_token) identifier_get_app_token
)attribute
(argument_list
(identifier_scope) identifier_scope
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_uri) identifier_uri
(binary_operator
(string_'/user/profile/') string_'/user/profile/'
(call
(attribute
(identifier_urllib) identifier_urllib
(identifier_quote) identifier_quote
)attribute
(argument_list
(identifier_user_id) identifier_user_id
)argument_list
)call
)binary_operator
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(return_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_profile) identifier_profile
)argument_list
)call
)return_statement
)block
(except_clause
(block
(raise_statement
(call
(identifier_MxitAPIException) identifier_MxitAPIException
(argument_list
(string_'Error parsing profile data') string_'Error parsing profile data'
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Retrieve the Mxit user's basic profile
No user authentication required |
(module
(function_definition
(function_name_last_midnight) function_name_last_midnight
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_now) identifier_now
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_now) identifier_now
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_datetime) identifier_datetime
(argument_list
(attribute
(identifier_now) identifier_now
(identifier_year) identifier_year
)attribute
(attribute
(identifier_now) identifier_now
(identifier_month) identifier_month
)attribute
(attribute
(identifier_now) identifier_now
(identifier_day) identifier_day
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | return a datetime of last mid-night |
(module
(function_definition
(function_name_check_list) function_name_check_list
(parameters
(identifier_self) identifier_self
(identifier_node_list) identifier_node_list
(identifier_pattern_list) identifier_pattern_list
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_node_list) identifier_node_list
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_pattern_list) identifier_pattern_list
)argument_list
)call
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_all) identifier_all
(generator_expression
(call
(attribute
(call
(identifier_Check) identifier_Check
(argument_list
(identifier_node_elt) identifier_node_elt
(attribute
(identifier_self) identifier_self
(identifier_placeholders) identifier_placeholders
)attribute
)argument_list
)call
(identifier_visit) identifier_visit
)attribute
(argument_list
(subscript
(identifier_pattern_list) identifier_pattern_list
(identifier_i) identifier_i
)subscript
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_i) identifier_i
(identifier_node_elt) identifier_node_elt
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_node_list) identifier_node_list
)argument_list
)call
)for_in_clause
)generator_expression
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Check if list of node are equal. |
(module
(function_definition
(function_name_build) function_name_build
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_is_built) identifier_is_built
)attribute
(argument_list
)argument_list
)call
(block
(return_statement
)return_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(call
(identifier__wait_signal) identifier__wait_signal
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_loadFinished) identifier_loadFinished
)attribute
(integer_20) integer_20
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_rebuild) identifier_rebuild
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__built) identifier__built
)attribute
(True) True
)assignment
)expression_statement
)block
)function_definition
)module | Build the full HTML source. |
(module
(function_definition
(function_name__determine_selected_stencil) function_name__determine_selected_stencil
(parameters
(identifier_stencil_set) identifier_stencil_set
(identifier_stencil_definition) identifier_stencil_definition
)parameters
(block
(if_statement
(comparison_operator
(string_'stencil') string_'stencil'
(identifier_stencil_definition) identifier_stencil_definition
)comparison_operator
(block
(expression_statement
(assignment
(identifier_selected_stencil_name) identifier_selected_stencil_name
(call
(attribute
(attribute
(identifier_stencil_set) identifier_stencil_set
(identifier_manifest) identifier_manifest
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'default_stencil') string_'default_stencil'
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_selected_stencil_name) identifier_selected_stencil_name
(call
(attribute
(identifier_stencil_definition) identifier_stencil_definition
(identifier_get) identifier_get
)attribute
(argument_list
(string_'stencil') string_'stencil'
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(not_operator
(identifier_selected_stencil_name) identifier_selected_stencil_name
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"No stencil name, within stencil set %s, specified.") string_"No stencil name, within stencil set %s, specified."
(subscript
(identifier_stencil_definition) identifier_stencil_definition
(string_'name') string_'name'
)subscript
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_selected_stencil_name) identifier_selected_stencil_name
)return_statement
)block
)function_definition
)module | Determine appropriate stencil name for stencil definition.
Given a fastfood.json stencil definition with a stencil set, figure out
what the name of the stencil within the set should be, or use the default |
(module
(function_definition
(function_name_set_execution_context) function_name_set_execution_context
(parameters
(identifier_self) identifier_self
(identifier_execution_context) identifier_execution_context
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__execution_context) identifier__execution_context
)attribute
(block
(raise_statement
(attribute
(identifier_errors) identifier_errors
(identifier_AlreadyInContextError) identifier_AlreadyInContextError
)attribute
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__execution_context) identifier__execution_context
)attribute
(identifier_execution_context) identifier_execution_context
)assignment
)expression_statement
)block
)function_definition
)module | Set the ExecutionContext this async is executing under. |
(module
(function_definition
(function_name_load_config_key) function_name_load_config_key
(parameters
)parameters
(block
(global_statement
(identifier_api_token) identifier_api_token
)global_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_api_token) identifier_api_token
(subscript
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(string_'SOCCER_CLI_API_TOKEN') string_'SOCCER_CLI_API_TOKEN'
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(assignment
(identifier_home) identifier_home
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_expanduser) identifier_expanduser
)attribute
(argument_list
(string_"~") string_"~"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_config) identifier_config
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_home) identifier_home
(string_".soccer-cli.ini") string_".soccer-cli.ini"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_config) identifier_config
)argument_list
)call
)not_operator
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_config) identifier_config
(string_"w") string_"w"
)argument_list
)call
(as_pattern_target
(identifier_cfile) identifier_cfile
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(identifier_get_input_key) identifier_get_input_key
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cfile) identifier_cfile
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)expression_statement
)block
)with_statement
)block
(else_clause
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_config) identifier_config
(string_"r") string_"r"
)argument_list
)call
(as_pattern_target
(identifier_cfile) identifier_cfile
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(attribute
(identifier_cfile) identifier_cfile
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
)block
)else_clause
)if_statement
(if_statement
(identifier_key) identifier_key
(block
(expression_statement
(assignment
(identifier_api_token) identifier_api_token
(identifier_key) identifier_key
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_config) identifier_config
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_secho) identifier_secho
)attribute
(argument_list
(call
(attribute
(concatenated_string
(string_'No API Token detected. ') string_'No API Token detected. '
(string_'Please visit {0} and get an API Token, ') string_'Please visit {0} and get an API Token, '
(string_'which will be used by Soccer CLI ') string_'which will be used by Soccer CLI '
(string_'to get access to the data.') string_'to get access to the data.'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_RequestHandler) identifier_RequestHandler
(identifier_BASE_URL) identifier_BASE_URL
)attribute
)argument_list
)call
(keyword_argument
(identifier_fg) identifier_fg
(string_"red") string_"red"
)keyword_argument
(keyword_argument
(identifier_bold) identifier_bold
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_api_token) identifier_api_token
)return_statement
)block
)function_definition
)module | Load API key from config file, write if needed |
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_self) identifier_self
(identifier_phase) identifier_phase
(identifier_stage) identifier_stage
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(identifier_ProgressSection) identifier_ProgressSection
(argument_list
(identifier_self) identifier_self
(attribute
(identifier_self) identifier_self
(identifier__session) identifier__session
)attribute
(identifier_phase) identifier_phase
(identifier_stage) identifier_stage
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Start a new routine, stage or phase |
(module
(function_definition
(function_name_plot) function_name_plot
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_height) identifier_height
(integer_1000) integer_1000
)default_parameter
(default_parameter
(identifier_render_large_data) identifier_render_large_data
(False) False
)default_parameter
)parameters
(block
(import_statement
(dotted_name
(identifier_IPython) identifier_IPython
)dotted_name
)import_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_data) identifier_data
(attribute
(identifier_pd) identifier_pd
(identifier_DataFrame) identifier_DataFrame
)attribute
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Expect a DataFrame.') string_'Expect a DataFrame.'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(parenthesized_expression
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(integer_10000) integer_10000
)comparison_operator
(not_operator
(identifier_render_large_data) identifier_render_large_data
)not_operator
)boolean_operator
)parenthesized_expression
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'Facets dive may not work well with more than 10000 rows. ') string_'Facets dive may not work well with more than 10000 rows. '
(string_'Reduce data or set "render_large_data" to True.') string_'Reduce data or set "render_large_data" to True.'
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_jsonstr) identifier_jsonstr
(call
(attribute
(identifier_data) identifier_data
(identifier_to_json) identifier_to_json
)attribute
(argument_list
(keyword_argument
(identifier_orient) identifier_orient
(string_'records') string_'records'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_html_id) identifier_html_id
(binary_operator
(string_'f') string_'f'
(call
(attribute
(attribute
(attribute
(attribute
(identifier_datalab) identifier_datalab
(identifier_utils) identifier_utils
)attribute
(identifier_commands) identifier_commands
)attribute
(identifier_Html) identifier_Html
)attribute
(identifier_next_id) identifier_next_id
)attribute
(argument_list
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_HTML_TEMPLATE) identifier_HTML_TEMPLATE
(assignment
(identifier_html) identifier_html
(call
(attribute
(identifier_HTML_TEMPLATE) identifier_HTML_TEMPLATE
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_html_id) identifier_html_id
(identifier_html_id) identifier_html_id
)keyword_argument
(keyword_argument
(identifier_jsonstr) identifier_jsonstr
(identifier_jsonstr) identifier_jsonstr
)keyword_argument
(keyword_argument
(identifier_height) identifier_height
(identifier_height) identifier_height
)keyword_argument
)argument_list
)call
)assignment
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_IPython) identifier_IPython
(identifier_core) identifier_core
)attribute
(identifier_display) identifier_display
)attribute
(identifier_HTML) identifier_HTML
)attribute
(argument_list
(identifier_html) identifier_html
)argument_list
)call
)return_statement
)block
)function_definition
)module | Plots a detail view of data.
Args:
data: a Pandas dataframe.
height: the height of the output. |
(module
(function_definition
(function_name_load_ply) function_name_load_ply
(parameters
(identifier_file_obj) identifier_file_obj
(default_parameter
(identifier_resolver) identifier_resolver
(None) None
)default_parameter
(default_parameter
(identifier_fix_texture) identifier_fix_texture
(True) True
)default_parameter
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_elements) identifier_elements
(identifier_is_ascii) identifier_is_ascii
(identifier_image_name) identifier_image_name
)pattern_list
(call
(identifier_parse_header) identifier_parse_header
(argument_list
(identifier_file_obj) identifier_file_obj
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_is_ascii) identifier_is_ascii
(block
(expression_statement
(call
(identifier_ply_ascii) identifier_ply_ascii
(argument_list
(identifier_elements) identifier_elements
(identifier_file_obj) identifier_file_obj
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_ply_binary) identifier_ply_binary
(argument_list
(identifier_elements) identifier_elements
(identifier_file_obj) identifier_file_obj
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_image) identifier_image
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_image_name) identifier_image_name
(None) None
)comparison_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_resolver) identifier_resolver
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_image_name) identifier_image_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_image) identifier_image
(call
(attribute
(attribute
(identifier_PIL) identifier_PIL
(identifier_Image) identifier_Image
)attribute
(identifier_open) identifier_open
)attribute
(argument_list
(call
(attribute
(identifier_util) identifier_util
(identifier_wrap_as_stream) identifier_wrap_as_stream
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_BaseException) identifier_BaseException
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_'unable to load image!') string_'unable to load image!'
(keyword_argument
(identifier_exc_info) identifier_exc_info
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(call
(identifier_elements_to_kwargs) identifier_elements_to_kwargs
(argument_list
(identifier_elements) identifier_elements
(keyword_argument
(identifier_fix_texture) identifier_fix_texture
(identifier_fix_texture) identifier_fix_texture
)keyword_argument
(keyword_argument
(identifier_image) identifier_image
(identifier_image) identifier_image
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_kwargs) identifier_kwargs
)return_statement
)block
)function_definition
)module | Load a PLY file from an open file object.
Parameters
---------
file_obj : an open file- like object
Source data, ASCII or binary PLY
resolver : trimesh.visual.resolvers.Resolver
Object which can resolve assets
fix_texture : bool
If True, will re- index vertices and faces
so vertices with different UV coordinates
are disconnected.
Returns
---------
mesh_kwargs : dict
Data which can be passed to
Trimesh constructor, eg: a = Trimesh(**mesh_kwargs) |
(module
(function_definition
(function_name_render_reverse) function_name_render_reverse
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_inst) identifier_inst
(None) None
)default_parameter
(default_parameter
(identifier_context) identifier_context
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_rendered) identifier_rendered
(call
(attribute
(identifier_self) identifier_self
(identifier_render) identifier_render
)attribute
(argument_list
(keyword_argument
(identifier_inst) identifier_inst
(identifier_inst) identifier_inst
)keyword_argument
(keyword_argument
(identifier_context) identifier_context
(identifier_context) identifier_context
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parts) identifier_parts
(call
(attribute
(identifier_rendered) identifier_rendered
(identifier_split) identifier_split
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_parts) identifier_parts
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(list
(string_'index.html') string_'index.html'
(string_'index.htm') string_'index.htm'
)list
)comparison_operator
(block
(return_statement
(binary_operator
(parenthesized_expression
(call
(attribute
(string_'/') string_'/'
(identifier_join) identifier_join
)attribute
(argument_list
(subscript
(identifier_parts) identifier_parts
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)argument_list
)call
)parenthesized_expression
(string_'/') string_'/'
)binary_operator
)return_statement
)block
)if_statement
(return_statement
(identifier_rendered) identifier_rendered
)return_statement
)block
)function_definition
)module | Renders the reverse URL for this path. |
(module
(function_definition
(function_name_get_errors) function_name_get_errors
(parameters
(identifier_error_string) identifier_error_string
)parameters
(block
(expression_statement
(assignment
(identifier_lines) identifier_lines
(call
(attribute
(identifier_error_string) identifier_error_string
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_error_lines) identifier_error_lines
(call
(identifier_tuple) identifier_tuple
(generator_expression
(identifier_line) identifier_line
(for_in_clause
(identifier_line) identifier_line
(identifier_lines) identifier_lines
)for_in_clause
(if_clause
(comparison_operator
(call
(attribute
(identifier_line) identifier_line
(identifier_find) identifier_find
)attribute
(argument_list
(string_'Error') string_'Error'
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)if_clause
)generator_expression
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_error_lines) identifier_error_lines
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(call
(attribute
(string_'\n') string_'\n'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_error_lines) identifier_error_lines
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_error_string) identifier_error_string
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | returns all lines in the error_string that start with the string "error" |
(module
(function_definition
(function_name_get_node) function_name_get_node
(parameters
(identifier_self) identifier_self
(identifier_element) identifier_element
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_ns) identifier_ns
(identifier_tag) identifier_tag
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_split_namespace) identifier_split_namespace
)attribute
(argument_list
(attribute
(identifier_element) identifier_element
(identifier_tag) identifier_tag
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(dictionary
(pair
(string_'tag') string_'tag'
(identifier_tag) identifier_tag
)pair
(pair
(string_'value') string_'value'
(call
(attribute
(parenthesized_expression
(boolean_operator
(attribute
(identifier_element) identifier_element
(identifier_text) identifier_text
)attribute
(string_'') string_''
)boolean_operator
)parenthesized_expression
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)pair
(pair
(string_'attr') string_'attr'
(attribute
(identifier_element) identifier_element
(identifier_attrib) identifier_attrib
)attribute
)pair
(pair
(string_'namespace') string_'namespace'
(identifier_ns) identifier_ns
)pair
)dictionary
)return_statement
)block
)function_definition
)module | r"""Get node info.
Parse element and get the element tag info. Include tag name, value, attribute, namespace.
:param element: an :class:`~xml.etree.ElementTree.Element` instance
:rtype: dict |
(module
(function_definition
(function_name__gather) function_name__gather
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_propagate) identifier_propagate
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'propagate') string_'propagate'
(True) True
)argument_list
)call
)assignment
)expression_statement
(return_statement
(generator_expression
(call
(attribute
(identifier_self) identifier_self
(identifier_to_python) identifier_to_python
)attribute
(argument_list
(identifier_reply) identifier_reply
(keyword_argument
(identifier_propagate) identifier_propagate
(identifier_propagate) identifier_propagate
)keyword_argument
)argument_list
)call
(for_in_clause
(identifier_reply) identifier_reply
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_actor) identifier_actor
)attribute
(identifier__collect_replies) identifier__collect_replies
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)for_in_clause
)generator_expression
)return_statement
)block
)function_definition
)module | Generator over the results |
(module
(function_definition
(function_name_etag) function_name_etag
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_option) identifier_option
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(block
(if_statement
(comparison_operator
(attribute
(identifier_option) identifier_option
(identifier_number) identifier_number
)attribute
(attribute
(attribute
(attribute
(identifier_defines) identifier_defines
(identifier_OptionRegistry) identifier_OptionRegistry
)attribute
(identifier_ETAG) identifier_ETAG
)attribute
(identifier_number) identifier_number
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_value) identifier_value
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_option) identifier_option
(identifier_value) identifier_value
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Get the ETag option of the message.
:rtype: list
:return: the ETag values or [] if not specified by the request |
(module
(function_definition
(function_name_Validate) function_name_Validate
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(identifier_ValidateMultiple) identifier_ValidateMultiple
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_probe) identifier_probe
)attribute
(string_"Method has invalid probes") string_"Method has invalid probes"
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_Validate) identifier_Validate
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_target) identifier_target
)attribute
(string_"Method has invalid target") string_"Method has invalid target"
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_Validate) identifier_Validate
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_hint) identifier_hint
)attribute
(string_"Method has invalid hint") string_"Method has invalid hint"
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Check the Method is well constructed. |
(module
(function_definition
(function_name_set_bit) function_name_set_bit
(parameters
(identifier_bitmask) identifier_bitmask
(identifier_bit) identifier_bit
(identifier_is_on) identifier_is_on
)parameters
(block
(expression_statement
(assignment
(identifier_bitshift) identifier_bitshift
(binary_operator
(identifier_bit) identifier_bit
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
(if_statement
(identifier_is_on) identifier_is_on
(block
(return_statement
(binary_operator
(identifier_bitmask) identifier_bitmask
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(identifier_bitshift) identifier_bitshift
)binary_operator
)parenthesized_expression
)binary_operator
)return_statement
)block
)if_statement
(return_statement
(binary_operator
(identifier_bitmask) identifier_bitmask
(parenthesized_expression
(binary_operator
(integer_0xff) integer_0xff
(unary_operator
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(identifier_bitshift) identifier_bitshift
)binary_operator
)parenthesized_expression
)unary_operator
)binary_operator
)parenthesized_expression
)binary_operator
)return_statement
)block
)function_definition
)module | Set the value of a bit in a bitmask on or off.
Uses the low bit is 1 and the high bit is 8. |
(module
(function_definition
(function_name_mkdir_p) function_name_mkdir_p
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(try_statement
(block
(return_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_mkdir) identifier_mkdir
)attribute
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(identifier_OSError) identifier_OSError
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(attribute
(identifier_exc) identifier_exc
(identifier_errno) identifier_errno
)attribute
(attribute
(identifier_errno) identifier_errno
(identifier_EEXIST) identifier_EEXIST
)attribute
)comparison_operator
(block
(raise_statement
)raise_statement
)block
)if_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Like `mkdir`, but does not raise an exception if the
directory already exists. |
(module
(function_definition
(function_name_set_bool) function_name_set_bool
(parameters
(identifier__bytearray) identifier__bytearray
(identifier_byte_index) identifier_byte_index
(identifier_bool_index) identifier_bool_index
(identifier_value) identifier_value
)parameters
(block
(assert_statement
(comparison_operator
(identifier_value) identifier_value
(list
(integer_0) integer_0
(integer_1) integer_1
(True) True
(False) False
)list
)comparison_operator
)assert_statement
(expression_statement
(assignment
(identifier_current_value) identifier_current_value
(call
(identifier_get_bool) identifier_get_bool
(argument_list
(identifier__bytearray) identifier__bytearray
(identifier_byte_index) identifier_byte_index
(identifier_bool_index) identifier_bool_index
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_index_value) identifier_index_value
(binary_operator
(integer_1) integer_1
(identifier_bool_index) identifier_bool_index
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_current_value) identifier_current_value
(identifier_value) identifier_value
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(identifier_value) identifier_value
(block
(expression_statement
(augmented_assignment
(subscript
(identifier__bytearray) identifier__bytearray
(identifier_byte_index) identifier_byte_index
)subscript
(identifier_index_value) identifier_index_value
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(subscript
(identifier__bytearray) identifier__bytearray
(identifier_byte_index) identifier_byte_index
)subscript
(identifier_index_value) identifier_index_value
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Set boolean value on location in bytearray |
(module
(function_definition
(function_name_get_components_for_species) function_name_get_components_for_species
(parameters
(identifier_alignment) identifier_alignment
(identifier_species) identifier_species
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_alignment) identifier_alignment
(identifier_components) identifier_components
)attribute
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_species) identifier_species
)argument_list
)call
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_index) identifier_index
(call
(identifier_dict) identifier_dict
(argument_list
(list_comprehension
(tuple
(subscript
(call
(attribute
(attribute
(identifier_c) identifier_c
(identifier_src) identifier_src
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
(integer_0) integer_0
)subscript
(identifier_c) identifier_c
)tuple
(for_in_clause
(identifier_c) identifier_c
(attribute
(identifier_alignment) identifier_alignment
(identifier_components) identifier_components
)attribute
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(return_statement
(list_comprehension
(subscript
(identifier_index) identifier_index
(identifier_s) identifier_s
)subscript
(for_in_clause
(identifier_s) identifier_s
(identifier_species) identifier_species
)for_in_clause
)list_comprehension
)return_statement
)block
(except_clause
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Return the component for each species in the list `species` or None |
(module
(function_definition
(function_name___traces_url) function_name___traces_url
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(binary_operator
(identifier_AGENT_TRACES_PATH) identifier_AGENT_TRACES_PATH
(attribute
(attribute
(identifier_self) identifier_self
(identifier_from_) identifier_from_
)attribute
(identifier_pid) identifier_pid
)attribute
)binary_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(string_"http://%s:%s/%s") string_"http://%s:%s/%s"
(tuple
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
(attribute
(identifier_self) identifier_self
(identifier_port) identifier_port
)attribute
(identifier_path) identifier_path
)tuple
)binary_operator
)return_statement
)block
)function_definition
)module | URL for posting traces to the host agent. Only valid when announced. |
(module
(function_definition
(function_name_build_type) function_name_build_type
(parameters
(identifier_field) identifier_field
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_field) identifier_field
(identifier_type_id) identifier_type_id
)attribute
(string_'string') string_'string'
)comparison_operator
(block
(if_statement
(comparison_operator
(string_'size') string_'size'
(attribute
(identifier_field) identifier_field
(identifier_options) identifier_options
)attribute
)comparison_operator
(block
(return_statement
(binary_operator
(string_"builder.putString(%s, %d)") string_"builder.putString(%s, %d)"
(tuple
(attribute
(identifier_field) identifier_field
(identifier_identifier) identifier_identifier
)attribute
(attribute
(subscript
(attribute
(identifier_field) identifier_field
(identifier_options) identifier_options
)attribute
(string_'size') string_'size'
)subscript
(identifier_value) identifier_value
)attribute
)tuple
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(binary_operator
(string_"builder.putString(%s)") string_"builder.putString(%s)"
(attribute
(identifier_field) identifier_field
(identifier_identifier) identifier_identifier
)attribute
)binary_operator
)return_statement
)block
)else_clause
)if_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_field) identifier_field
(identifier_type_id) identifier_type_id
)attribute
(identifier_JAVA_TYPE_MAP) identifier_JAVA_TYPE_MAP
)comparison_operator
(block
(return_statement
(binary_operator
(string_"builder.put%s(%s)") string_"builder.put%s(%s)"
(tuple
(call
(attribute
(attribute
(identifier_field) identifier_field
(identifier_type_id) identifier_type_id
)attribute
(identifier_capitalize) identifier_capitalize
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_field) identifier_field
(identifier_identifier) identifier_identifier
)attribute
)tuple
)binary_operator
)return_statement
)block
)elif_clause
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_field) identifier_field
(identifier_type_id) identifier_type_id
)attribute
(string_'array') string_'array'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(attribute
(subscript
(attribute
(identifier_field) identifier_field
(identifier_options) identifier_options
)attribute
(string_'fill') string_'fill'
)subscript
(identifier_value) identifier_value
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_t) identifier_t
(identifier_JAVA_TYPE_MAP) identifier_JAVA_TYPE_MAP
)comparison_operator
(block
(if_statement
(comparison_operator
(string_'size') string_'size'
(attribute
(identifier_field) identifier_field
(identifier_options) identifier_options
)attribute
)comparison_operator
(block
(return_statement
(binary_operator
(string_"builder.putArrayof%s(%s, %d)") string_"builder.putArrayof%s(%s, %d)"
(tuple
(call
(attribute
(identifier_t) identifier_t
(identifier_capitalize) identifier_capitalize
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_field) identifier_field
(identifier_identifier) identifier_identifier
)attribute
(attribute
(subscript
(attribute
(identifier_field) identifier_field
(identifier_options) identifier_options
)attribute
(string_'size') string_'size'
)subscript
(identifier_value) identifier_value
)attribute
)tuple
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(binary_operator
(string_"builder.putArrayof%s(%s)") string_"builder.putArrayof%s(%s)"
(tuple
(call
(attribute
(identifier_t) identifier_t
(identifier_capitalize) identifier_capitalize
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_field) identifier_field
(identifier_identifier) identifier_identifier
)attribute
)tuple
)binary_operator
)return_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(string_'size') string_'size'
(attribute
(identifier_field) identifier_field
(identifier_options) identifier_options
)attribute
)comparison_operator
(block
(return_statement
(binary_operator
(string_"builder.putArray(%s, %d)") string_"builder.putArray(%s, %d)"
(tuple
(attribute
(identifier_field) identifier_field
(identifier_identifier) identifier_identifier
)attribute
(attribute
(subscript
(attribute
(identifier_field) identifier_field
(identifier_options) identifier_options
)attribute
(string_'size') string_'size'
)subscript
(identifier_value) identifier_value
)attribute
)tuple
)binary_operator
)return_statement
)block
(else_clause
(block
(return_statement
(binary_operator
(string_"builder.putArray(%s)") string_"builder.putArray(%s)"
(attribute
(identifier_field) identifier_field
(identifier_identifier) identifier_identifier
)attribute
)binary_operator
)return_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(return_statement
(binary_operator
(string_"%s.build(builder)") string_"%s.build(builder)"
(attribute
(identifier_field) identifier_field
(identifier_identifier) identifier_identifier
)attribute
)binary_operator
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Function to pack a type into the binary payload. |
(module
(function_definition
(function_name_get_bounding_box) function_name_get_bounding_box
(parameters
(identifier_points) identifier_points
)parameters
(block
(assert_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_points) identifier_points
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(string_"At least one point has to be given.") string_"At least one point has to be given."
)assert_statement
(expression_statement
(assignment
(pattern_list
(identifier_min_x) identifier_min_x
(identifier_max_x) identifier_max_x
)pattern_list
(expression_list
(subscript
(subscript
(identifier_points) identifier_points
(integer_0) integer_0
)subscript
(string_'x') string_'x'
)subscript
(subscript
(subscript
(identifier_points) identifier_points
(integer_0) integer_0
)subscript
(string_'x') string_'x'
)subscript
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_min_y) identifier_min_y
(identifier_max_y) identifier_max_y
)pattern_list
(expression_list
(subscript
(subscript
(identifier_points) identifier_points
(integer_0) integer_0
)subscript
(string_'y') string_'y'
)subscript
(subscript
(subscript
(identifier_points) identifier_points
(integer_0) integer_0
)subscript
(string_'y') string_'y'
)subscript
)expression_list
)assignment
)expression_statement
(for_statement
(identifier_point) identifier_point
(identifier_points) identifier_points
(block
(expression_statement
(assignment
(pattern_list
(identifier_min_x) identifier_min_x
(identifier_max_x) identifier_max_x
)pattern_list
(expression_list
(call
(identifier_min) identifier_min
(argument_list
(identifier_min_x) identifier_min_x
(subscript
(identifier_point) identifier_point
(string_'x') string_'x'
)subscript
)argument_list
)call
(call
(identifier_max) identifier_max
(argument_list
(identifier_max_x) identifier_max_x
(subscript
(identifier_point) identifier_point
(string_'x') string_'x'
)subscript
)argument_list
)call
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_min_y) identifier_min_y
(identifier_max_y) identifier_max_y
)pattern_list
(expression_list
(call
(identifier_min) identifier_min
(argument_list
(identifier_min_y) identifier_min_y
(subscript
(identifier_point) identifier_point
(string_'y') string_'y'
)subscript
)argument_list
)call
(call
(identifier_max) identifier_max
(argument_list
(identifier_max_y) identifier_max_y
(subscript
(identifier_point) identifier_point
(string_'y') string_'y'
)subscript
)argument_list
)call
)expression_list
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_p1) identifier_p1
(call
(identifier_Point) identifier_Point
(argument_list
(identifier_min_x) identifier_min_x
(identifier_min_y) identifier_min_y
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_p2) identifier_p2
(call
(identifier_Point) identifier_Point
(argument_list
(identifier_max_x) identifier_max_x
(identifier_max_y) identifier_max_y
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_BoundingBox) identifier_BoundingBox
(argument_list
(identifier_p1) identifier_p1
(identifier_p2) identifier_p2
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get the bounding box of a list of points.
Parameters
----------
points : list of points
Returns
-------
BoundingBox |
(module
(function_definition
(function_name_do_copy) function_name_do_copy
(parameters
(identifier_self) identifier_self
(identifier_subcmd) identifier_subcmd
(identifier_opts) identifier_opts
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(print_statement
(binary_operator
(string_"'svn %s' opts: %s") string_"'svn %s' opts: %s"
(tuple
(identifier_subcmd) identifier_subcmd
(identifier_opts) identifier_opts
)tuple
)binary_operator
)print_statement
(print_statement
(binary_operator
(string_"'svn %s' args: %s") string_"'svn %s' args: %s"
(tuple
(identifier_subcmd) identifier_subcmd
(identifier_args) identifier_args
)tuple
)binary_operator
)print_statement
)block
)function_definition
)module | Duplicate something in working copy or repository, remembering history.
usage:
copy SRC DST
SRC and DST can each be either a working copy (WC) path or URL:
WC -> WC: copy and schedule for addition (with history)
WC -> URL: immediately commit a copy of WC to URL
URL -> WC: check out URL into WC, schedule for addition
URL -> URL: complete server-side copy; used to branch & tag
${cmd_option_list} |
(module
(function_definition
(function_name_max_width) function_name_max_width
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_value) identifier_value
(identifier_unit) identifier_unit
)pattern_list
(expression_list
(call
(identifier_float) identifier_float
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier__width_str) identifier__width_str
)attribute
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)argument_list
)call
(subscript
(attribute
(identifier_self) identifier_self
(identifier__width_str) identifier__width_str
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)expression_list
)assignment
)expression_statement
(expression_statement
(call
(identifier_ensure) identifier_ensure
(argument_list
(comparison_operator
(identifier_unit) identifier_unit
(list
(string_"c") string_"c"
(string_"%") string_"%"
)list
)comparison_operator
(identifier_ValueError) identifier_ValueError
(string_"Width unit must be either 'c' or '%'") string_"Width unit must be either 'c' or '%'"
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_unit) identifier_unit
(string_"c") string_"c"
)comparison_operator
(block
(expression_statement
(call
(identifier_ensure) identifier_ensure
(argument_list
(comparison_operator
(identifier_value) identifier_value
(attribute
(identifier_self) identifier_self
(identifier_columns) identifier_columns
)attribute
)comparison_operator
(identifier_ValueError) identifier_ValueError
(call
(attribute
(concatenated_string
(string_"Terminal only has {} columns, cannot draw ") string_"Terminal only has {} columns, cannot draw "
(string_"bar of size {}.") string_"bar of size {}."
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_columns) identifier_columns
)attribute
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_retval) identifier_retval
(identifier_value) identifier_value
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_ensure) identifier_ensure
(argument_list
(comparison_operator
(integer_0) integer_0
(identifier_value) identifier_value
(integer_100) integer_100
)comparison_operator
(identifier_ValueError) identifier_ValueError
(call
(attribute
(string_"value=={} does not satisfy 0 < value <= 100") string_"value=={} does not satisfy 0 < value <= 100"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_dec) identifier_dec
(binary_operator
(identifier_value) identifier_value
(integer_100) integer_100
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_retval) identifier_retval
(binary_operator
(identifier_dec) identifier_dec
(attribute
(identifier_self) identifier_self
(identifier_columns) identifier_columns
)attribute
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_floor) identifier_floor
(argument_list
(identifier_retval) identifier_retval
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get maximum width of progress bar
:rtype: int
:returns: Maximum column width of progress bar |
(module
(function_definition
(function_name_retrieve_records) function_name_retrieve_records
(parameters
(identifier_self) identifier_self
(identifier_timeperiod) identifier_timeperiod
(identifier_include_running) identifier_include_running
(identifier_include_processed) identifier_include_processed
(identifier_include_noop) identifier_include_noop
(identifier_include_failed) identifier_include_failed
(identifier_include_disabled) identifier_include_disabled
)parameters
(block
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_resp) identifier_resp
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__search_by_level) identifier__search_by_level
)attribute
(argument_list
(identifier_COLLECTION_JOB_HOURLY) identifier_COLLECTION_JOB_HOURLY
(identifier_timeperiod) identifier_timeperiod
(identifier_include_running) identifier_include_running
(identifier_include_processed) identifier_include_processed
(identifier_include_noop) identifier_include_noop
(identifier_include_failed) identifier_include_failed
(identifier_include_disabled) identifier_include_disabled
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_resp) identifier_resp
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__search_by_level) identifier__search_by_level
)attribute
(argument_list
(identifier_COLLECTION_JOB_DAILY) identifier_COLLECTION_JOB_DAILY
(identifier_timeperiod) identifier_timeperiod
(identifier_include_running) identifier_include_running
(identifier_include_processed) identifier_include_processed
(identifier_include_noop) identifier_include_noop
(identifier_include_failed) identifier_include_failed
(identifier_include_disabled) identifier_include_disabled
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_timeperiod) identifier_timeperiod
(call
(attribute
(identifier_time_helper) identifier_time_helper
(identifier_cast_to_time_qualifier) identifier_cast_to_time_qualifier
)attribute
(argument_list
(identifier_QUALIFIER_MONTHLY) identifier_QUALIFIER_MONTHLY
(identifier_timeperiod) identifier_timeperiod
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_resp) identifier_resp
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__search_by_level) identifier__search_by_level
)attribute
(argument_list
(identifier_COLLECTION_JOB_MONTHLY) identifier_COLLECTION_JOB_MONTHLY
(identifier_timeperiod) identifier_timeperiod
(identifier_include_running) identifier_include_running
(identifier_include_processed) identifier_include_processed
(identifier_include_noop) identifier_include_noop
(identifier_include_failed) identifier_include_failed
(identifier_include_disabled) identifier_include_disabled
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_timeperiod) identifier_timeperiod
(call
(attribute
(identifier_time_helper) identifier_time_helper
(identifier_cast_to_time_qualifier) identifier_cast_to_time_qualifier
)attribute
(argument_list
(identifier_QUALIFIER_YEARLY) identifier_QUALIFIER_YEARLY
(identifier_timeperiod) identifier_timeperiod
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_resp) identifier_resp
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__search_by_level) identifier__search_by_level
)attribute
(argument_list
(identifier_COLLECTION_JOB_YEARLY) identifier_COLLECTION_JOB_YEARLY
(identifier_timeperiod) identifier_timeperiod
(identifier_include_running) identifier_include_running
(identifier_include_processed) identifier_include_processed
(identifier_include_noop) identifier_include_noop
(identifier_include_failed) identifier_include_failed
(identifier_include_disabled) identifier_include_disabled
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_resp) identifier_resp
)return_statement
)block
)function_definition
)module | method looks for suitable job records in all Job collections and returns them as a dict |
(module
(function_definition
(function_name_delete_permission) function_name_delete_permission
(parameters
(identifier_self) identifier_self
(identifier_username) identifier_username
(identifier_virtual_host) identifier_virtual_host
)parameters
(block
(expression_statement
(assignment
(identifier_virtual_host) identifier_virtual_host
(call
(identifier_quote) identifier_quote
(argument_list
(identifier_virtual_host) identifier_virtual_host
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_http_client) identifier_http_client
)attribute
(identifier_delete) identifier_delete
)attribute
(argument_list
(binary_operator
(identifier_API_USER_VIRTUAL_HOST_PERMISSIONS) identifier_API_USER_VIRTUAL_HOST_PERMISSIONS
(tuple
(identifier_virtual_host) identifier_virtual_host
(identifier_username) identifier_username
)tuple
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Delete User permissions for the configured virtual host.
:param str username: Username
:param str virtual_host: Virtual host name
:raises ApiError: Raises if the remote server encountered an error.
:raises ApiConnectionError: Raises if there was a connectivity issue.
:rtype: dict |
(module
(function_definition
(function_name_get_raw_data) function_name_get_raw_data
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_times) identifier_times
(integer_5) integer_5
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__validate_measure_count) identifier__validate_measure_count
)attribute
(argument_list
(identifier_times) identifier_times
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_data_list) identifier_data_list
(list
)list
)assignment
)expression_statement
(while_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_data_list) identifier_data_list
)argument_list
)call
(identifier_times) identifier_times
)comparison_operator
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_self) identifier_self
(identifier__read) identifier__read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_data) identifier_data
(list
(False) False
(unary_operator
(integer_1) integer_1
)unary_operator
)list
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_data_list) identifier_data_list
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)while_statement
(return_statement
(identifier_data_list) identifier_data_list
)return_statement
)block
)function_definition
)module | do some readings and aggregate them using the defined statistics function
:param times: how many measures to aggregate
:type times: int
:return: the aggregate of the measured values
:rtype float |
(module
(function_definition
(function_name__cryptography_encrypt) function_name__cryptography_encrypt
(parameters
(identifier_cipher_factory) identifier_cipher_factory
(identifier_plaintext) identifier_plaintext
(identifier_key) identifier_key
(identifier_iv) identifier_iv
)parameters
(block
(expression_statement
(assignment
(identifier_encryptor) identifier_encryptor
(call
(attribute
(call
(identifier_cipher_factory) identifier_cipher_factory
(argument_list
(identifier_key) identifier_key
(identifier_iv) identifier_iv
)argument_list
)call
(identifier_encryptor) identifier_encryptor
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(call
(attribute
(identifier_encryptor) identifier_encryptor
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_plaintext) identifier_plaintext
)argument_list
)call
(call
(attribute
(identifier_encryptor) identifier_encryptor
(identifier_finalize) identifier_finalize
)attribute
(argument_list
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Use a cryptography cipher factory to encrypt data.
:param cipher_factory: Factory callable that builds a cryptography Cipher
instance based on the key and IV
:type cipher_factory: callable
:param bytes plaintext: Plaintext data to encrypt
:param bytes key: Encryption key
:param bytes IV: Initialization vector
:returns: Encrypted ciphertext
:rtype: bytes |
(module
(function_definition
(function_name_create_or_clear) function_name_create_or_clear
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(try_statement
(block
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_create) identifier_create
)attribute
(argument_list
(identifier_path) identifier_path
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)yield
)expression_statement
)block
(except_clause
(identifier_NodeExistsException) identifier_NodeExistsException
(block
(expression_statement
(assignment
(identifier_children) identifier_children
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_get_children) identifier_get_children
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)yield
)assignment
)expression_statement
(for_statement
(identifier_name) identifier_name
(identifier_children) identifier_children
(block
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_recursive_delete) identifier_recursive_delete
)attribute
(argument_list
(binary_operator
(binary_operator
(identifier_path) identifier_path
(string_"/") string_"/"
)binary_operator
(identifier_name) identifier_name
)binary_operator
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Create path and recursively clear contents. |
(module
(function_definition
(function_name__render) function_name__render
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_p_char) identifier_p_char
(string_'') string_''
)assignment
)expression_statement
(if_statement
(boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_done) identifier_done
)attribute
)not_operator
(attribute
(identifier_self) identifier_self
(identifier_remainder) identifier_remainder
)attribute
)boolean_operator
(block
(expression_statement
(assignment
(identifier_p_style) identifier_p_style
(attribute
(identifier_self) identifier_self
(identifier__comp_style) identifier__comp_style
)attribute
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_partial_char_extra_style) identifier_partial_char_extra_style
)attribute
(block
(if_statement
(comparison_operator
(identifier_p_style) identifier_p_style
(identifier_str) identifier_str
)comparison_operator
(block
(expression_statement
(assignment
(identifier_p_style) identifier_p_style
(attribute
(identifier_self) identifier_self
(identifier_partial_char_extra_style) identifier_partial_char_extra_style
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_p_style) identifier_p_style
(binary_operator
(identifier_p_style) identifier_p_style
(attribute
(identifier_self) identifier_self
(identifier_partial_char_extra_style) identifier_partial_char_extra_style
)attribute
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_p_char) identifier_p_char
(call
(identifier_p_style) identifier_p_style
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_partial_chars) identifier_partial_chars
)attribute
(attribute
(identifier_self) identifier_self
(identifier_remainder) identifier_remainder
)attribute
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier__num_empty_chars) identifier__num_empty_chars
)attribute
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cm_chars) identifier_cm_chars
(call
(attribute
(identifier_self) identifier_self
(identifier__comp_style) identifier__comp_style
)attribute
(argument_list
(binary_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_icons) identifier_icons
)attribute
(identifier__ic) identifier__ic
)subscript
(attribute
(identifier_self) identifier_self
(identifier__num_complete_chars) identifier__num_complete_chars
)attribute
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_em_chars) identifier_em_chars
(call
(attribute
(identifier_self) identifier_self
(identifier__empt_style) identifier__empt_style
)attribute
(argument_list
(binary_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_icons) identifier_icons
)attribute
(identifier__ie) identifier__ie
)subscript
(attribute
(identifier_self) identifier_self
(identifier__num_empty_chars) identifier__num_empty_chars
)attribute
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(string_f'{self._first}{cm_chars}{p_char}{em_chars}{self._last} {self._lbl}') string_f'{self._first}{cm_chars}{p_char}{em_chars}{self._last} {self._lbl}'
)return_statement
)block
)function_definition
)module | figure partial character |
(module
(function_definition
(function_name_lrem) function_name_lrem
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_value) identifier_value
(default_parameter
(identifier_num) identifier_num
(integer_1) integer_1
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(attribute
(identifier_self) identifier_self
(identifier_pipe) identifier_pipe
)attribute
(as_pattern_target
(identifier_pipe) identifier_pipe
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_valueparse) identifier_valueparse
)attribute
(identifier_encode) identifier_encode
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_pipe) identifier_pipe
(identifier_execute_command) identifier_execute_command
)attribute
(argument_list
(string_'LREM') string_'LREM'
(call
(attribute
(identifier_self) identifier_self
(identifier_redis_key) identifier_redis_key
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
(identifier_num) identifier_num
(identifier_value) identifier_value
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | Remove first occurrence of value.
Can't use redis-py interface. It's inconstistent between
redis.Redis and redis.StrictRedis in terms of the kwargs.
Better to use the underlying execute_command instead.
:param name: str the name of the redis key
:param num:
:param value:
:return: Future() |
(module
(function_definition
(function_name_filter_sequences) function_name_filter_sequences
(parameters
(identifier_self) identifier_self
(identifier_seq_type) identifier_seq_type
)parameters
(block
(return_statement
(call
(identifier_DictList) identifier_DictList
(generator_expression
(identifier_x) identifier_x
(for_in_clause
(identifier_x) identifier_x
(attribute
(identifier_self) identifier_self
(identifier_sequences) identifier_sequences
)attribute
)for_in_clause
(if_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_x) identifier_x
(identifier_seq_type) identifier_seq_type
)argument_list
)call
)if_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Return a DictList of only specified types in the sequences attribute.
Args:
seq_type (SeqProp): Object type
Returns:
DictList: A filtered DictList of specified object type only |
(module
(function_definition
(function_name_head_values) function_name_head_values
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_values) identifier_values
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_head) identifier_head
(attribute
(identifier_self) identifier_self
(identifier__heads) identifier__heads
)attribute
(block
(expression_statement
(call
(attribute
(identifier_values) identifier_values
(identifier_add) identifier_add
)attribute
(argument_list
(attribute
(identifier_head) identifier_head
(identifier_value) identifier_value
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_values) identifier_values
)return_statement
)block
)function_definition
)module | Return set of the head values |
(module
(function_definition
(function_name__interact) function_name__interact
(parameters
(identifier_self) identifier_self
(identifier_location) identifier_location
(identifier_error_info) identifier_error_info
(identifier_payload) identifier_payload
)parameters
(block
(if_statement
(parenthesized_expression
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__interaction_methods) identifier__interaction_methods
)attribute
(None) None
)comparison_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__interaction_methods) identifier__interaction_methods
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(raise_statement
(call
(identifier_InteractionError) identifier_InteractionError
(argument_list
(string_'interaction required but not possible') string_'interaction required but not possible'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(attribute
(identifier_error_info) identifier_error_info
(identifier_info) identifier_info
)attribute
(identifier_interaction_methods) identifier_interaction_methods
)attribute
(None) None
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(attribute
(attribute
(identifier_error_info) identifier_error_info
(identifier_info) identifier_info
)attribute
(identifier_visit_url) identifier_visit_url
)attribute
(None) None
)comparison_operator
)boolean_operator
(block
(return_statement
(expression_list
(None) None
(call
(attribute
(identifier_self) identifier_self
(identifier__legacy_interact) identifier__legacy_interact
)attribute
(argument_list
(identifier_location) identifier_location
(identifier_error_info) identifier_error_info
)argument_list
)call
)expression_list
)return_statement
)block
)if_statement
(for_statement
(identifier_interactor) identifier_interactor
(attribute
(identifier_self) identifier_self
(identifier__interaction_methods) identifier__interaction_methods
)attribute
(block
(expression_statement
(assignment
(identifier_found) identifier_found
(call
(attribute
(attribute
(attribute
(identifier_error_info) identifier_error_info
(identifier_info) identifier_info
)attribute
(identifier_interaction_methods) identifier_interaction_methods
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(call
(attribute
(identifier_interactor) identifier_interactor
(identifier_kind) identifier_kind
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_found) identifier_found
(None) None
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_token) identifier_token
(call
(attribute
(identifier_interactor) identifier_interactor
(identifier_interact) identifier_interact
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_location) identifier_location
(identifier_error_info) identifier_error_info
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_InteractionMethodNotFound) identifier_InteractionMethodNotFound
(block
(continue_statement
)continue_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(identifier_token) identifier_token
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_InteractionError) identifier_InteractionError
(argument_list
(concatenated_string
(string_'interaction method returned an empty ') string_'interaction method returned an empty '
(string_'token') string_'token'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_token) identifier_token
(None) None
)expression_list
)return_statement
)block
)for_statement
(raise_statement
(call
(identifier_InteractionError) identifier_InteractionError
(argument_list
(string_'no supported interaction method') string_'no supported interaction method'
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Gathers a macaroon by directing the user to interact with a
web page. The error_info argument holds the interaction-required
error response.
@return DischargeToken, bakery.Macaroon |
(module
(function_definition
(function_name_received) function_name_received
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'Data received: {}') string_'Data received: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_message_type) identifier_message_type
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'type') string_'type'
(identifier_data) identifier_data
)comparison_operator
(block
(expression_statement
(assignment
(identifier_message_type) identifier_message_type
(subscript
(identifier_data) identifier_data
(string_'type') string_'type'
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_message_type) identifier_message_type
(string_'confirm_subscription') string_'confirm_subscription'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__subscribed) identifier__subscribed
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_message_type) identifier_message_type
(string_'reject_subscription') string_'reject_subscription'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__rejected) identifier__rejected
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_receive_callback) identifier_receive_callback
)attribute
(None) None
)comparison_operator
(comparison_operator
(string_'message') string_'message'
(identifier_data) identifier_data
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_receive_callback) identifier_receive_callback
)attribute
(argument_list
(subscript
(identifier_data) identifier_data
(string_'message') string_'message'
)subscript
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_warning) identifier_warning
)attribute
(argument_list
(call
(attribute
(string_'Message type unknown. ({})') string_'Message type unknown. ({})'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_message_type) identifier_message_type
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | API for the connection to forward
information to this subscription instance.
:param data: The JSON data which was received.
:type data: Message |
(module
(function_definition
(function_name__as_dict) function_name__as_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_values) identifier_values
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier__dynamic_columns) identifier__dynamic_columns
)attribute
(dictionary
)dictionary
)boolean_operator
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_col) identifier_col
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__columns) identifier__columns
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_values) identifier_values
(identifier_name) identifier_name
)subscript
(call
(attribute
(identifier_col) identifier_col
(identifier_to_database) identifier_to_database
)attribute
(argument_list
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_name) identifier_name
(None) None
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_values) identifier_values
)return_statement
)block
)function_definition
)module | Returns a map of column names to cleaned values |
(module
(function_definition
(function_name_asset) function_name_asset
(parameters
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_commit) identifier_commit
(call
(attribute
(identifier_bitcaster) identifier_bitcaster
(identifier_get_full_version) identifier_get_full_version
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_mark_safe) identifier_mark_safe
(argument_list
(call
(attribute
(string_'{0}?{1}') string_'{0}?{1}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier__static) identifier__static
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(identifier_commit) identifier_commit
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Join the given path with the STATIC_URL setting.
Usage::
{% static path [as varname] %}
Examples::
{% static "myapp/css/base.css" %}
{% static variable_with_path %}
{% static "myapp/css/base.css" as admin_base_css %}
{% static variable_with_path as varname %} |
(module
(function_definition
(function_name_get_total_size) function_name_get_total_size
(parameters
(identifier_self) identifier_self
(identifier_entries) identifier_entries
)parameters
(block
(expression_statement
(assignment
(identifier_size) identifier_size
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_entry) identifier_entry
(identifier_entries) identifier_entries
(block
(if_statement
(comparison_operator
(subscript
(subscript
(identifier_entry) identifier_entry
(string_'response') string_'response'
)subscript
(string_'bodySize') string_'bodySize'
)subscript
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_size) identifier_size
(subscript
(subscript
(identifier_entry) identifier_entry
(string_'response') string_'response'
)subscript
(string_'bodySize') string_'bodySize'
)subscript
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_size) identifier_size
)return_statement
)block
)function_definition
)module | Returns the total size of a collection of entries.
:param entries: ``list`` of entries to calculate the total size of. |
(module
(function_definition
(function_name__to_desired_dates) function_name__to_desired_dates
(parameters
(identifier_self) identifier_self
(identifier_arr) identifier_arr
)parameters
(block
(expression_statement
(assignment
(identifier_times) identifier_times
(call
(attribute
(attribute
(identifier_utils) identifier_utils
(identifier_times) identifier_times
)attribute
(identifier_extract_months) identifier_extract_months
)attribute
(argument_list
(subscript
(identifier_arr) identifier_arr
(attribute
(identifier_internal_names) identifier_internal_names
(identifier_TIME_STR) identifier_TIME_STR
)attribute
)subscript
(attribute
(identifier_self) identifier_self
(identifier_months) identifier_months
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_arr) identifier_arr
(identifier_sel) identifier_sel
)attribute
(argument_list
(keyword_argument
(identifier_time) identifier_time
(identifier_times) identifier_times
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Restrict the xarray DataArray or Dataset to the desired months. |
(module
(function_definition
(function_name_nrefs) function_name_nrefs
(parameters
(identifier_self) identifier_self
(identifier_tag) identifier_tag
)parameters
(block
(expression_statement
(assignment
(identifier_n) identifier_n
(call
(attribute
(identifier__C) identifier__C
(identifier_Vnrefs) identifier_Vnrefs
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__id) identifier__id
)attribute
(identifier_tag) identifier_tag
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier__checkErr) identifier__checkErr
(argument_list
(string_'nrefs') string_'nrefs'
(identifier_n) identifier_n
(string_"bad arguments") string_"bad arguments"
)argument_list
)call
)expression_statement
(return_statement
(identifier_n) identifier_n
)return_statement
)block
)function_definition
)module | Determine the number of tags of a given type in a vgroup.
Args::
tag tag type to look for in the vgroup
Returns::
number of members identified by this tag type
C library equivalent : Vnrefs |
(module
(function_definition
(function_name_is_hosting_device_reachable) function_name_is_hosting_device_reachable
(parameters
(identifier_self) identifier_self
(identifier_hosting_device) identifier_hosting_device
)parameters
(block
(expression_statement
(assignment
(identifier_ret_val) identifier_ret_val
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hd) identifier_hd
(identifier_hosting_device) identifier_hosting_device
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hd_id) identifier_hd_id
(subscript
(identifier_hosting_device) identifier_hosting_device
(string_'id') string_'id'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hd_mgmt_ip) identifier_hd_mgmt_ip
(subscript
(identifier_hosting_device) identifier_hosting_device
(string_'management_ip_address') string_'management_ip_address'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dead_hd_list) identifier_dead_hd_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_dead_hosting_devices_info) identifier_get_dead_hosting_devices_info
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_hd_id) identifier_hd_id
(identifier_dead_hd_list) identifier_dead_hd_list
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(concatenated_string
(string_"Hosting device: %(hd_id)s@%(ip)s is already marked as") string_"Hosting device: %(hd_id)s@%(ip)s is already marked as"
(string_" Dead. It is assigned as non-reachable") string_" Dead. It is assigned as non-reachable"
)concatenated_string
(dictionary
(pair
(string_'hd_id') string_'hd_id'
(identifier_hd_id) identifier_hd_id
)pair
(pair
(string_'ip') string_'ip'
(identifier_hd_mgmt_ip) identifier_hd_mgmt_ip
)pair
)dictionary
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_hd) identifier_hd
(string_'created_at') string_'created_at'
)subscript
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(subscript
(identifier_hd) identifier_hd
(string_'created_at') string_'created_at'
)subscript
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_strptime) identifier_strptime
)attribute
(argument_list
(subscript
(identifier_hd) identifier_hd
(string_'created_at') string_'created_at'
)subscript
(string_'%Y-%m-%d %H:%M:%S') string_'%Y-%m-%d %H:%M:%S'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier__is_pingable) identifier__is_pingable
(argument_list
(identifier_hd_mgmt_ip) identifier_hd_mgmt_ip
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Hosting device: %(hd_id)s@%(ip)s is reachable.") string_"Hosting device: %(hd_id)s@%(ip)s is reachable."
(dictionary
(pair
(string_'hd_id') string_'hd_id'
(identifier_hd_id) identifier_hd_id
)pair
(pair
(string_'ip') string_'ip'
(identifier_hd_mgmt_ip) identifier_hd_mgmt_ip
)pair
)dictionary
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_hd) identifier_hd
(string_'hd_state') string_'hd_state'
)subscript
(attribute
(identifier_cc) identifier_cc
(identifier_HD_ACTIVE) identifier_HD_ACTIVE
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret_val) identifier_ret_val
(True) True
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Hosting device: %(hd_id)s@%(ip)s is NOT reachable.") string_"Hosting device: %(hd_id)s@%(ip)s is NOT reachable."
(dictionary
(pair
(string_'hd_id') string_'hd_id'
(identifier_hd_id) identifier_hd_id
)pair
(pair
(string_'ip') string_'ip'
(identifier_hd_mgmt_ip) identifier_hd_mgmt_ip
)pair
)dictionary
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_hd) identifier_hd
(string_'hd_state') string_'hd_state'
)subscript
(attribute
(identifier_cc) identifier_cc
(identifier_HD_NOT_RESPONDING) identifier_HD_NOT_RESPONDING
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret_val) identifier_ret_val
(False) False
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_enable_heartbeat) identifier_enable_heartbeat
)attribute
(True) True
)comparison_operator
(comparison_operator
(identifier_ret_val) identifier_ret_val
(False) False
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_backlog_hosting_device) identifier_backlog_hosting_device
)attribute
(argument_list
(identifier_hd) identifier_hd
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_ret_val) identifier_ret_val
)return_statement
)block
)function_definition
)module | Check the hosting device which hosts this resource is reachable.
If the resource is not reachable, it is added to the backlog.
* heartbeat revision
We want to enqueue all hosting-devices into the backlog for
monitoring purposes
adds key/value pairs to hd (aka hosting_device dictionary)
_is_pingable : if it returns true,
hd['hd_state']='Active'
_is_pingable : if it returns false,
hd['hd_state']='Unknown'
:param hosting_device : dict of the hosting device
:returns: True if device is reachable, else None |
(module
(function_definition
(function_name_random_word) function_name_random_word
(parameters
(identifier_self) identifier_self
(identifier_length) identifier_length
(default_parameter
(identifier_prefix) identifier_prefix
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_start) identifier_start
(False) False
)default_parameter
(default_parameter
(identifier_end) identifier_end
(False) False
)default_parameter
(default_parameter
(identifier_flatten) identifier_flatten
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_start) identifier_start
(block
(expression_statement
(assignment
(identifier_word) identifier_word
(string_">") string_">"
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_length) identifier_length
(integer_1) integer_1
)augmented_assignment
)expression_statement
(return_statement
(subscript
(call
(attribute
(identifier_self) identifier_self
(identifier__extend_word) identifier__extend_word
)attribute
(argument_list
(identifier_word) identifier_word
(identifier_length) identifier_length
(keyword_argument
(identifier_prefix) identifier_prefix
(identifier_prefix) identifier_prefix
)keyword_argument
(keyword_argument
(identifier_end) identifier_end
(identifier_end) identifier_end
)keyword_argument
(keyword_argument
(identifier_flatten) identifier_flatten
(identifier_flatten) identifier_flatten
)keyword_argument
)argument_list
)call
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_first_letters) identifier_first_letters
(call
(identifier_list) identifier_list
(generator_expression
(identifier_k) identifier_k
(for_in_clause
(identifier_k) identifier_k
(identifier_self) identifier_self
)for_in_clause
(if_clause
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_k) identifier_k
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(comparison_operator
(identifier_k) identifier_k
(string_">") string_">"
)comparison_operator
)boolean_operator
)if_clause
)generator_expression
)call
)assignment
)expression_statement
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_word) identifier_word
(call
(attribute
(identifier_random) identifier_random
(identifier_choice) identifier_choice
)attribute
(argument_list
(identifier_first_letters) identifier_first_letters
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_word) identifier_word
(call
(attribute
(identifier_self) identifier_self
(identifier__extend_word) identifier__extend_word
)attribute
(argument_list
(identifier_word) identifier_word
(identifier_length) identifier_length
(keyword_argument
(identifier_prefix) identifier_prefix
(identifier_prefix) identifier_prefix
)keyword_argument
(keyword_argument
(identifier_end) identifier_end
(identifier_end) identifier_end
)keyword_argument
(keyword_argument
(identifier_flatten) identifier_flatten
(identifier_flatten) identifier_flatten
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_word) identifier_word
)return_statement
)block
(except_clause
(identifier_GenerationError) identifier_GenerationError
(block
(expression_statement
(call
(attribute
(identifier_first_letters) identifier_first_letters
(identifier_remove) identifier_remove
)attribute
(argument_list
(subscript
(identifier_word) identifier_word
(integer_0) integer_0
)subscript
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)while_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Generate a random word of length from this table.
:param length: the length of the generated word; >= 1;
:param prefix: if greater than 0, the maximum length of the prefix to
consider to choose the next character;
:param start: if True, the generated word starts as a word of table;
:param end: if True, the generated word ends as a word of table;
:param flatten: whether or not consider the table as flattened;
:return: a random word of length generated from table.
:raises GenerationError: if no word of length can be generated. |
(module
(function_definition
(function_name__validate) function_name__validate
(parameters
(identifier_wdl_file) identifier_wdl_file
)parameters
(block
(expression_statement
(assignment
(identifier_start_dir) identifier_start_dir
(call
(attribute
(identifier_os) identifier_os
(identifier_getcwd) identifier_getcwd
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_wdl_file) identifier_wdl_file
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Validating") string_"Validating"
(identifier_wdl_file) identifier_wdl_file
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_call) identifier_check_call
)attribute
(argument_list
(list
(string_"wdltool") string_"wdltool"
(string_"validate") string_"validate"
(identifier_wdl_file) identifier_wdl_file
)list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(identifier_start_dir) identifier_start_dir
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Run validation on the generated WDL output using wdltool. |
(module
(function_definition
(function_name__new_from_cdata) function_name__new_from_cdata
(parameters
(identifier_cls) identifier_cls
(typed_parameter
(identifier_cdata) identifier_cdata
(type
(identifier_Any) identifier_Any
)type
)typed_parameter
)parameters
(type
(string_"Random") string_"Random"
)type
(block
(expression_statement
(assignment
(identifier_self) identifier_self
(call
(attribute
(identifier_object) identifier_object
(identifier___new__) identifier___new__
)attribute
(argument_list
(identifier_cls) identifier_cls
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_random_c) identifier_random_c
)attribute
(identifier_cdata) identifier_cdata
)assignment
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Return a new instance encapsulating this cdata. |
(module
(function_definition
(function_name_find_tags) function_name_find_tags
(parameters
(identifier_self) identifier_self
(identifier_tag_name) identifier_tag_name
(dictionary_splat_pattern
(identifier_attribute_filter) identifier_attribute_filter
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_all_tags) identifier_all_tags
(list_comprehension
(call
(attribute
(identifier_self) identifier_self
(identifier_find_tags_from_xml) identifier_find_tags_from_xml
)attribute
(argument_list
(identifier_i) identifier_i
(identifier_tag_name) identifier_tag_name
(dictionary_splat
(identifier_attribute_filter) identifier_attribute_filter
)dictionary_splat
)argument_list
)call
(for_in_clause
(identifier_i) identifier_i
(attribute
(identifier_self) identifier_self
(identifier_xml) identifier_xml
)attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(list_comprehension
(identifier_tag) identifier_tag
(for_in_clause
(identifier_tag_list) identifier_tag_list
(identifier_all_tags) identifier_all_tags
)for_in_clause
(for_in_clause
(identifier_tag) identifier_tag
(identifier_tag_list) identifier_tag_list
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Return a list of all the matched tags in all available xml
:param str tag: specify the tag name |
(module
(function_definition
(function_name_set_ssl_logging) function_name_set_ssl_logging
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_enable) identifier_enable
(False) False
)default_parameter
(default_parameter
(identifier_func) identifier_func
(identifier__ssl_logging_cb) identifier__ssl_logging_cb
)default_parameter
)parameters
(block
(expression_statement
(identifier_u) identifier_u
)expression_statement
(if_statement
(identifier_enable) identifier_enable
(block
(expression_statement
(call
(identifier_SSL_CTX_set_info_callback) identifier_SSL_CTX_set_info_callback
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__ctx) identifier__ctx
)attribute
(identifier_func) identifier_func
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_SSL_CTX_set_info_callback) identifier_SSL_CTX_set_info_callback
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__ctx) identifier__ctx
)attribute
(integer_0) integer_0
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | u''' Enable or disable SSL logging
:param True | False enable: Enable or disable SSL logging
:param func: Callback function for logging |
(module
(function_definition
(function_name_send) function_name_send
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_cumulative_counters) identifier_cumulative_counters
(None) None
)default_parameter
(default_parameter
(identifier_gauges) identifier_gauges
(None) None
)default_parameter
(default_parameter
(identifier_counters) identifier_counters
(None) None
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(boolean_operator
(not_operator
(identifier_gauges) identifier_gauges
)not_operator
(not_operator
(identifier_cumulative_counters) identifier_cumulative_counters
)not_operator
)boolean_operator
(not_operator
(identifier_counters) identifier_counters
)not_operator
)boolean_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'cumulative_counter') string_'cumulative_counter'
(identifier_cumulative_counters) identifier_cumulative_counters
)pair
(pair
(string_'gauge') string_'gauge'
(identifier_gauges) identifier_gauges
)pair
(pair
(string_'counter') string_'counter'
(identifier_counters) identifier_counters
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier__logger) identifier__logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Sending datapoints to SignalFx: %s') string_'Sending datapoints to SignalFx: %s'
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_metric_type) identifier_metric_type
(identifier_datapoints) identifier_datapoints
)pattern_list
(call
(attribute
(identifier_data) identifier_data
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(not_operator
(identifier_datapoints) identifier_datapoints
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_datapoints) identifier_datapoints
(identifier_list) identifier_list
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_'Datapoints not of type list %s') string_'Datapoints not of type list %s'
(identifier_datapoints) identifier_datapoints
)argument_list
)call
)raise_statement
)block
)if_statement
(for_statement
(identifier_datapoint) identifier_datapoint
(identifier_datapoints) identifier_datapoints
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__add_extra_dimensions) identifier__add_extra_dimensions
)attribute
(argument_list
(identifier_datapoint) identifier_datapoint
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__add_to_queue) identifier__add_to_queue
)attribute
(argument_list
(identifier_metric_type) identifier_metric_type
(identifier_datapoint) identifier_datapoint
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__start_thread) identifier__start_thread
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Send the given metrics to SignalFx.
Args:
cumulative_counters (list): a list of dictionaries representing the
cumulative counters to report.
gauges (list): a list of dictionaries representing the gauges to
report.
counters (list): a list of dictionaries representing the counters
to report. |
(module
(function_definition
(function_name_check_cache) function_name_check_cache
(parameters
(identifier_resource_type) identifier_resource_type
)parameters
(block
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(identifier_func) identifier_func
)parameters
(block
(decorated_definition
(decorator
(call
(attribute
(identifier_functools) identifier_functools
(identifier_wraps) identifier_wraps
)attribute
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)decorator
(function_definition
(function_name_wrapper) function_name_wrapper
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_adapter) identifier_adapter
(subscript
(identifier_args) identifier_args
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_key) identifier_key
(identifier_val) identifier_val
)pattern_list
(subscript
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_IndexError) identifier_IndexError
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"Couldn't generate full index key, skipping cache") string_"Couldn't generate full index key, skipping cache"
)argument_list
)call
)expression_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_index_key) identifier_index_key
(tuple
(identifier_resource_type) identifier_resource_type
(identifier_key) identifier_key
(identifier_val) identifier_val
)tuple
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_cached_record) identifier_cached_record
(subscript
(attribute
(attribute
(identifier_adapter) identifier_adapter
(identifier__swimlane) identifier__swimlane
)attribute
(identifier_resources_cache) identifier_resources_cache
)attribute
(identifier_index_key) identifier_index_key
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'Cache miss: `{!r}`') string_'Cache miss: `{!r}`'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_index_key) identifier_index_key
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'Cache hit: `{!r}`') string_'Cache hit: `{!r}`'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_cached_record) identifier_cached_record
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_cached_record) identifier_cached_record
)return_statement
)block
)else_clause
)try_statement
)block
)else_clause
)try_statement
(return_statement
(call
(identifier_func) identifier_func
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
(return_statement
(identifier_decorator) identifier_decorator
)return_statement
)block
)function_definition
)module | Decorator for adapter methods to check cache for resource before normally sending requests to retrieve data
Only works with single kwargs, almost always used with @one_of_keyword_only decorator
Args:
resource_type (type(APIResource)): Subclass of APIResource of cache to be checked when called |
(module
(function_definition
(function_name_get_account_details) function_name_get_account_details
(parameters
(identifier_self) identifier_self
(identifier_account) identifier_account
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_self) identifier_self
(identifier_get_user) identifier_get_user
)attribute
(argument_list
(attribute
(identifier_account) identifier_account
(identifier_username) identifier_username
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_result) identifier_result
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Get the account details |
(module
(function_definition
(function_name_outbox_folder) function_name_outbox_folder
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_folder_constructor) identifier_folder_constructor
)attribute
(argument_list
(keyword_argument
(identifier_parent) identifier_parent
(identifier_self) identifier_self
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(string_'Outbox') string_'Outbox'
)keyword_argument
(keyword_argument
(identifier_folder_id) identifier_folder_id
(attribute
(attribute
(identifier_OutlookWellKnowFolderNames) identifier_OutlookWellKnowFolderNames
(identifier_OUTBOX) identifier_OUTBOX
)attribute
(identifier_value) identifier_value
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Shortcut to get Outbox Folder instance
:rtype: mailbox.Folder |
(module
(function_definition
(function_name_removeRow) function_name_removeRow
(parameters
(identifier_self) identifier_self
(identifier_triggered) identifier_triggered
)parameters
(block
(if_statement
(identifier_triggered) identifier_triggered
(block
(expression_statement
(assignment
(identifier_model) identifier_model
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tableView) identifier_tableView
)attribute
(identifier_model) identifier_model
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_selection) identifier_selection
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tableView) identifier_tableView
)attribute
(identifier_selectedIndexes) identifier_selectedIndexes
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rows) identifier_rows
(list_comprehension
(call
(attribute
(identifier_index) identifier_index
(identifier_row) identifier_row
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_index) identifier_index
(identifier_selection) identifier_selection
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_model) identifier_model
(identifier_removeDataFrameRows) identifier_removeDataFrameRows
)attribute
(argument_list
(call
(identifier_set) identifier_set
(argument_list
(identifier_rows) identifier_rows
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_sender) identifier_sender
)attribute
(argument_list
)argument_list
)call
(identifier_setChecked) identifier_setChecked
)attribute
(argument_list
(False) False
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Removes a row to the model.
This method is also a slot.
Args:
triggered (bool): If the corresponding button was
activated, the selected row will be removed
from the model. |
(module
(function_definition
(function_name__get_other_names) function_name__get_other_names
(parameters
(identifier_self) identifier_self
(identifier_line) identifier_line
)parameters
(block
(expression_statement
(assignment
(identifier_m) identifier_m
(call
(attribute
(identifier_re) identifier_re
(identifier_search) identifier_search
)attribute
(argument_list
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_compound_regex) identifier_compound_regex
)attribute
(string_'other_names') string_'other_names'
)subscript
(integer_0) integer_0
)subscript
(identifier_line) identifier_line
(attribute
(identifier_re) identifier_re
(identifier_IGNORECASE) identifier_IGNORECASE
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_m) identifier_m
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_other_names) identifier_other_names
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(call
(attribute
(identifier_m) identifier_m
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Parse and extract any other names that might be recorded for the compound
Args:
line (str): line of the msp file |
(module
(function_definition
(function_name_exc_handle) function_name_exc_handle
(parameters
(identifier_url) identifier_url
(identifier_out) identifier_out
(identifier_testing) identifier_testing
)parameters
(block
(expression_statement
(assignment
(identifier_quiet_exceptions) identifier_quiet_exceptions
(list
(identifier_ConnectionError) identifier_ConnectionError
(identifier_ReadTimeout) identifier_ReadTimeout
(identifier_ConnectTimeout) identifier_ConnectTimeout
(identifier_TooManyRedirects) identifier_TooManyRedirects
)list
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_type) identifier_type
(identifier_value) identifier_value
(identifier__) identifier__
)pattern_list
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exc_info) identifier_exc_info
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_type) identifier_type
(identifier_quiet_exceptions) identifier_quiet_exceptions
)comparison_operator
(identifier_testing) identifier_testing
)boolean_operator
(block
(expression_statement
(assignment
(identifier_exc) identifier_exc
(call
(attribute
(identifier_traceback) identifier_traceback
(identifier_format_exc) identifier_format_exc
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_exc_string) identifier_exc_string
(binary_operator
(parenthesized_expression
(binary_operator
(string_"Line '%s' raised:\n") string_"Line '%s' raised:\n"
(identifier_url) identifier_url
)binary_operator
)parenthesized_expression
(identifier_exc) identifier_exc
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_warn) identifier_warn
)attribute
(argument_list
(identifier_exc_string) identifier_exc_string
(keyword_argument
(identifier_whitespace_strp) identifier_whitespace_strp
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
(if_statement
(identifier_testing) identifier_testing
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_exc) identifier_exc
)argument_list
)call
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_exc_string) identifier_exc_string
(binary_operator
(string_"Line %s '%s: %s'") string_"Line %s '%s: %s'"
(tuple
(identifier_url) identifier_url
(identifier_type) identifier_type
(identifier_value) identifier_value
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_warn) identifier_warn
)attribute
(argument_list
(identifier_exc_string) identifier_exc_string
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Handle exception. If of a determinate subset, it is stored into a file as a
single type. Otherwise, full stack is stored. Furthermore, if testing, stack
is always shown.
@param url: url which was being scanned when exception was thrown.
@param out: Output object, usually self.out.
@param testing: whether we are currently running unit tests. |
(module
(function_definition
(function_name_async_iter) function_name_async_iter
(parameters
(identifier_func) identifier_func
(identifier_args_iter) identifier_args_iter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_iter_count) identifier_iter_count
(call
(identifier_len) identifier_len
(argument_list
(identifier_args_iter) identifier_args_iter
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_iter_group) identifier_iter_group
(subscript
(call
(identifier_uuid) identifier_uuid
(argument_list
)argument_list
)call
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_options) identifier_options
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'q_options') string_'q_options'
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_options) identifier_options
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'hook') string_'hook'
(None) None
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_options) identifier_options
(string_'broker') string_'broker'
)subscript
(call
(attribute
(identifier_options) identifier_options
(identifier_get) identifier_get
)attribute
(argument_list
(string_'broker') string_'broker'
(call
(identifier_get_broker) identifier_get_broker
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_options) identifier_options
(string_'group') string_'group'
)subscript
(identifier_iter_group) identifier_iter_group
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_options) identifier_options
(string_'iter_count') string_'iter_count'
)subscript
(identifier_iter_count) identifier_iter_count
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_options) identifier_options
(identifier_get) identifier_get
)attribute
(argument_list
(string_'cached') string_'cached'
(None) None
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_options) identifier_options
(string_'iter_cached') string_'iter_cached'
)subscript
(subscript
(identifier_options) identifier_options
(string_'cached') string_'cached'
)subscript
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_options) identifier_options
(string_'cached') string_'cached'
)subscript
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_broker) identifier_broker
(subscript
(identifier_options) identifier_options
(string_'broker') string_'broker'
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_broker) identifier_broker
(identifier_cache) identifier_cache
)attribute
(identifier_set) identifier_set
)attribute
(argument_list
(call
(attribute
(string_'{}:{}:args') string_'{}:{}:args'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_broker) identifier_broker
(identifier_list_key) identifier_list_key
)attribute
(identifier_iter_group) identifier_iter_group
)argument_list
)call
(call
(attribute
(identifier_SignedPackage) identifier_SignedPackage
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_args_iter) identifier_args_iter
)argument_list
)call
)argument_list
)call
)expression_statement
(for_statement
(identifier_args) identifier_args
(identifier_args_iter) identifier_args_iter
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_args) identifier_args
(identifier_tuple) identifier_tuple
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(tuple
(identifier_args) identifier_args
)tuple
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_async_task) identifier_async_task
(argument_list
(identifier_func) identifier_func
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_options) identifier_options
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_iter_group) identifier_iter_group
)return_statement
)block
)function_definition
)module | enqueues a function with iterable arguments |
(module
(function_definition
(function_name_children_with_values) function_name_children_with_values
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_childs) identifier_childs
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_attribute) identifier_attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__get_all_c_children_with_order) identifier__get_all_c_children_with_order
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_member) identifier_member
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_attribute) identifier_attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_member) identifier_member
(None) None
)comparison_operator
(comparison_operator
(identifier_member) identifier_member
(list
)list
)comparison_operator
)boolean_operator
(block
(pass_statement
)pass_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_member) identifier_member
(identifier_list) identifier_list
)argument_list
)call
(block
(for_statement
(identifier_instance) identifier_instance
(identifier_member) identifier_member
(block
(expression_statement
(call
(attribute
(identifier_childs) identifier_childs
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_instance) identifier_instance
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_childs) identifier_childs
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_member) identifier_member
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_childs) identifier_childs
)return_statement
)block
)function_definition
)module | Returns all children that has values
:return: Possibly empty list of children. |
(module
(function_definition
(function_name_model_m2m_changed) function_name_model_m2m_changed
(parameters
(identifier_sender) identifier_sender
(identifier_instance) identifier_instance
(identifier_action) identifier_action
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_sender) identifier_sender
(identifier__meta) identifier__meta
)attribute
(identifier_app_label) identifier_app_label
)attribute
(string_'rest_framework_reactive') string_'rest_framework_reactive'
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(function_definition
(function_name_notify) function_name_notify
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_table) identifier_table
(attribute
(attribute
(identifier_sender) identifier_sender
(identifier__meta) identifier__meta
)attribute
(identifier_db_table) identifier_db_table
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_action) identifier_action
(string_'post_add') string_'post_add'
)comparison_operator
(block
(expression_statement
(call
(identifier_notify_observers) identifier_notify_observers
(argument_list
(identifier_table) identifier_table
(identifier_ORM_NOTIFY_KIND_CREATE) identifier_ORM_NOTIFY_KIND_CREATE
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_action) identifier_action
(tuple
(string_'post_remove') string_'post_remove'
(string_'post_clear') string_'post_clear'
)tuple
)comparison_operator
(block
(expression_statement
(call
(identifier_notify_observers) identifier_notify_observers
(argument_list
(identifier_table) identifier_table
(identifier_ORM_NOTIFY_KIND_DELETE) identifier_ORM_NOTIFY_KIND_DELETE
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)function_definition
(expression_statement
(call
(attribute
(identifier_transaction) identifier_transaction
(identifier_on_commit) identifier_on_commit
)attribute
(argument_list
(identifier_notify) identifier_notify
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Signal emitted after any M2M relation changes via Django ORM.
:param sender: M2M intermediate model
:param instance: The actual instance that was saved
:param action: M2M action |
(module
(function_definition
(function_name_url_ok) function_name_url_ok
(parameters
(typed_parameter
(identifier_match_tuple) identifier_match_tuple
(type
(identifier_MatchTuple) identifier_MatchTuple
)type
)typed_parameter
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_match_tuple) identifier_match_tuple
(identifier_link) identifier_link
)attribute
(keyword_argument
(identifier_timeout) identifier_timeout
(integer_5) integer_5
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(attribute
(identifier_result) identifier_result
(identifier_ok) identifier_ok
)attribute
)return_statement
)block
(except_clause
(tuple
(attribute
(identifier_requests) identifier_requests
(identifier_ConnectionError) identifier_ConnectionError
)attribute
(attribute
(identifier_requests) identifier_requests
(identifier_Timeout) identifier_Timeout
)attribute
)tuple
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Check if a URL is reachable. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.