sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name__update_version) function_name__update_version
(parameters
(identifier_connection) identifier_connection
(identifier_version) identifier_version
)parameters
(block
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_connection) identifier_connection
(identifier_engine) identifier_engine
)attribute
(identifier_name) identifier_name
)attribute
(string_'sqlite') string_'sqlite'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_connection) identifier_connection
(identifier_execute) identifier_execute
)attribute
(argument_list
(call
(attribute
(string_'PRAGMA user_version = {}') string_'PRAGMA user_version = {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_version) identifier_version
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(attribute
(identifier_connection) identifier_connection
(identifier_engine) identifier_engine
)attribute
(identifier_name) identifier_name
)attribute
(string_'postgresql') string_'postgresql'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_connection) identifier_connection
(identifier_execute) identifier_execute
)attribute
(argument_list
(call
(identifier_DDL) identifier_DDL
(argument_list
(call
(attribute
(string_'CREATE SCHEMA IF NOT EXISTS {};') string_'CREATE SCHEMA IF NOT EXISTS {};'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_POSTGRES_SCHEMA_NAME) identifier_POSTGRES_SCHEMA_NAME
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_connection) identifier_connection
(identifier_execute) identifier_execute
)attribute
(argument_list
(call
(identifier_DDL) identifier_DDL
(argument_list
(call
(attribute
(string_'CREATE SCHEMA IF NOT EXISTS {};') string_'CREATE SCHEMA IF NOT EXISTS {};'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_POSTGRES_PARTITION_SCHEMA_NAME) identifier_POSTGRES_PARTITION_SCHEMA_NAME
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_connection) identifier_connection
(identifier_execute) identifier_execute
)attribute
(argument_list
(call
(attribute
(string_'CREATE TABLE IF NOT EXISTS {}.user_version(version INTEGER NOT NULL);') string_'CREATE TABLE IF NOT EXISTS {}.user_version(version INTEGER NOT NULL);'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_POSTGRES_SCHEMA_NAME) identifier_POSTGRES_SCHEMA_NAME
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(call
(attribute
(call
(attribute
(identifier_connection) identifier_connection
(identifier_execute) identifier_execute
)attribute
(argument_list
(call
(attribute
(string_'SELECT * FROM {}.user_version;') string_'SELECT * FROM {}.user_version;'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_POSTGRES_SCHEMA_NAME) identifier_POSTGRES_SCHEMA_NAME
)argument_list
)call
)argument_list
)call
(identifier_fetchone) identifier_fetchone
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_connection) identifier_connection
(identifier_execute) identifier_execute
)attribute
(argument_list
(call
(attribute
(string_'UPDATE {}.user_version SET version = {};') string_'UPDATE {}.user_version SET version = {};'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_POSTGRES_SCHEMA_NAME) identifier_POSTGRES_SCHEMA_NAME
(identifier_version) identifier_version
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_connection) identifier_connection
(identifier_execute) identifier_execute
)attribute
(argument_list
(call
(attribute
(string_'INSERT INTO {}.user_version (version) VALUES ({})') string_'INSERT INTO {}.user_version (version) VALUES ({})'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_POSTGRES_SCHEMA_NAME) identifier_POSTGRES_SCHEMA_NAME
(identifier_version) identifier_version
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_DatabaseMissingError) identifier_DatabaseMissingError
(argument_list
(call
(attribute
(string_'Do not know how to migrate {} engine.') string_'Do not know how to migrate {} engine.'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(attribute
(identifier_connection) identifier_connection
(identifier_engine) identifier_engine
)attribute
(identifier_driver) identifier_driver
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Updates version in the db to the given version.
Args:
connection (sqlalchemy connection): sqlalchemy session where to update version.
version (int): version of the migration. |
(module
(function_definition
(function_name_create_criteria) function_name_create_criteria
(parameters
(identifier_cls) identifier_cls
(identifier_query) identifier_query
)parameters
(block
(expression_statement
(assignment
(identifier_criteria) identifier_criteria
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_query) identifier_query
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(identifier_list) identifier_list
)argument_list
)call
(block
(for_statement
(identifier_inner_value) identifier_inner_value
(identifier_value) identifier_value
(block
(expression_statement
(augmented_assignment
(identifier_criteria) identifier_criteria
(call
(attribute
(identifier_cls) identifier_cls
(identifier_create_criteria) identifier_create_criteria
)attribute
(argument_list
(dictionary
(pair
(identifier_name) identifier_name
(identifier_inner_value) identifier_inner_value
)pair
)dictionary
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_criteria) identifier_criteria
(identifier_append) identifier_append
)attribute
(argument_list
(dictionary
(pair
(string_'criteria') string_'criteria'
(dictionary
(pair
(string_'field') string_'field'
(identifier_name) identifier_name
)pair
(pair
(string_'value') string_'value'
(identifier_value) identifier_value
)pair
)dictionary
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(boolean_operator
(identifier_criteria) identifier_criteria
(None) None
)boolean_operator
)return_statement
)block
)function_definition
)module | Return a criteria from a dictionary containing a query.
Query should be a dictionary, keyed by field name. If the value is
a list, it will be divided into multiple criteria as required. |
(module
(function_definition
(function_name_score) function_name_score
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_periods) identifier_periods
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_periods) identifier_periods
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(identifier_periods) identifier_periods
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__score) identifier__score
)attribute
(argument_list
(call
(attribute
(identifier_periods) identifier_periods
(identifier_ravel) identifier_ravel
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(identifier_reshape) identifier_reshape
)attribute
(argument_list
(attribute
(identifier_periods) identifier_periods
(identifier_shape) identifier_shape
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Compute the periodogram for the given period or periods
Parameters
----------
periods : float or array_like
Array of periods at which to compute the periodogram.
Returns
-------
scores : np.ndarray
Array of normalized powers (between 0 and 1) for each period.
Shape of scores matches the shape of the provided periods. |
(module
(function_definition
(function_name_to_data_rows) function_name_to_data_rows
(parameters
(identifier_self) identifier_self
(identifier_brains) identifier_brains
)parameters
(block
(expression_statement
(assignment
(identifier_fields) identifier_fields
(call
(attribute
(identifier_self) identifier_self
(identifier_get_field_names) identifier_get_field_names
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_map) identifier_map
(argument_list
(lambda
(lambda_parameters
(identifier_brain) identifier_brain
)lambda_parameters
(call
(attribute
(identifier_self) identifier_self
(identifier_get_data_record) identifier_get_data_record
)attribute
(argument_list
(identifier_brain) identifier_brain
(identifier_fields) identifier_fields
)argument_list
)call
)lambda
(identifier_brains) identifier_brains
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a list of dictionaries representing the values of each brain |
(module
(function_definition
(function_name__most_restrictive) function_name__most_restrictive
(parameters
(identifier_date_elems) identifier_date_elems
)parameters
(block
(expression_statement
(assignment
(identifier_most_index) identifier_most_index
(call
(identifier_len) identifier_len
(argument_list
(identifier_DATE_ELEMENTS) identifier_DATE_ELEMENTS
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_date_elem) identifier_date_elem
(identifier_date_elems) identifier_date_elems
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_date_elem) identifier_date_elem
(identifier_DATE_ELEMENTS) identifier_DATE_ELEMENTS
)comparison_operator
(comparison_operator
(call
(attribute
(identifier_DATE_ELEMENTS) identifier_DATE_ELEMENTS
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_date_elem) identifier_date_elem
)argument_list
)call
(identifier_most_index) identifier_most_index
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_most_index) identifier_most_index
(call
(attribute
(identifier_DATE_ELEMENTS) identifier_DATE_ELEMENTS
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_date_elem) identifier_date_elem
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_most_index) identifier_most_index
(call
(identifier_len) identifier_len
(argument_list
(identifier_DATE_ELEMENTS) identifier_DATE_ELEMENTS
)argument_list
)call
)comparison_operator
(block
(return_statement
(subscript
(identifier_DATE_ELEMENTS) identifier_DATE_ELEMENTS
(identifier_most_index) identifier_most_index
)subscript
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_KeyError) identifier_KeyError
(argument_list
(string_'No least restrictive date element found') string_'No least restrictive date element found'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return the date_elem that has the most restrictive range from date_elems |
(module
(function_definition
(function_name_sensor) function_name_sensor
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_config) identifier_config
(None) None
)default_parameter
(default_parameter
(identifier_inactive_sensor_expiration_time_seconds) identifier_inactive_sensor_expiration_time_seconds
(attribute
(identifier_sys) identifier_sys
(identifier_maxsize) identifier_maxsize
)attribute
)default_parameter
(default_parameter
(identifier_parents) identifier_parents
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_sensor) identifier_sensor
(call
(attribute
(identifier_self) identifier_self
(identifier_get_sensor) identifier_get_sensor
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_sensor) identifier_sensor
(block
(return_statement
(identifier_sensor) identifier_sensor
)return_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier__lock) identifier__lock
)attribute
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_sensor) identifier_sensor
(call
(attribute
(identifier_self) identifier_self
(identifier_get_sensor) identifier_get_sensor
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_sensor) identifier_sensor
)not_operator
(block
(expression_statement
(assignment
(identifier_sensor) identifier_sensor
(call
(identifier_Sensor) identifier_Sensor
(argument_list
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_parents) identifier_parents
(boolean_operator
(identifier_config) identifier_config
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
)boolean_operator
(identifier_inactive_sensor_expiration_time_seconds) identifier_inactive_sensor_expiration_time_seconds
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__sensors) identifier__sensors
)attribute
(identifier_name) identifier_name
)subscript
(identifier_sensor) identifier_sensor
)assignment
)expression_statement
(if_statement
(identifier_parents) identifier_parents
(block
(for_statement
(identifier_parent) identifier_parent
(identifier_parents) identifier_parents
(block
(expression_statement
(assignment
(identifier_children) identifier_children
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__children_sensors) identifier__children_sensors
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_parent) identifier_parent
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_children) identifier_children
)not_operator
(block
(expression_statement
(assignment
(identifier_children) identifier_children
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__children_sensors) identifier__children_sensors
)attribute
(identifier_parent) identifier_parent
)subscript
(identifier_children) identifier_children
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_children) identifier_children
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_sensor) identifier_sensor
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Added sensor with name %s') string_'Added sensor with name %s'
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_sensor) identifier_sensor
)return_statement
)block
)with_statement
)block
)function_definition
)module | Get or create a sensor with the given unique name and zero or
more parent sensors. All parent sensors will receive every value
recorded with this sensor.
Arguments:
name (str): The name of the sensor
config (MetricConfig, optional): A default configuration to use
for this sensor for metrics that don't have their own config
inactive_sensor_expiration_time_seconds (int, optional):
If no value if recorded on the Sensor for this duration of
time, it is eligible for removal
parents (list of Sensor): The parent sensors
Returns:
Sensor: The sensor that is created |
(module
(function_definition
(function_name_polls_slug_get) function_name_polls_slug_get
(parameters
(identifier_self) identifier_self
(identifier_slug) identifier_slug
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'_return_http_data_only') string_'_return_http_data_only'
)subscript
(True) True
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'callback') string_'callback'
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_polls_slug_get_with_http_info) identifier_polls_slug_get_with_http_info
)attribute
(argument_list
(identifier_slug) identifier_slug
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(tuple_pattern
(identifier_data) identifier_data
)tuple_pattern
(call
(attribute
(identifier_self) identifier_self
(identifier_polls_slug_get_with_http_info) identifier_polls_slug_get_with_http_info
)attribute
(argument_list
(identifier_slug) identifier_slug
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Poll
A Poll on Pollster is a collection of questions and responses published by a reputable survey house. This endpoint provides raw data from the survey house, plus Pollster-provided metadata about each question. Pollster editors don't include every question when they enter Polls, and they don't necessarily enter every subpopulation for the responses they _do_ enter. They make editorial decisions about which questions belong in the database.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.polls_slug_get(slug, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str slug: Unique Poll identifier. For example: `gallup-26892`. (required)
:return: Poll
If the method is called asynchronously,
returns the request thread. |
(module
(function_definition
(function_name_encrypt) function_name_encrypt
(parameters
(identifier_self) identifier_self
(identifier_plaintext_data_key) identifier_plaintext_data_key
(identifier_encryption_context) identifier_encryption_context
)parameters
(block
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_wrapping_algorithm) identifier_wrapping_algorithm
)attribute
(identifier_encryption_type) identifier_encryption_type
)attribute
(attribute
(identifier_EncryptionType) identifier_EncryptionType
(identifier_ASYMMETRIC) identifier_ASYMMETRIC
)attribute
)comparison_operator
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_wrapping_key_type) identifier_wrapping_key_type
)attribute
(attribute
(identifier_EncryptionKeyType) identifier_EncryptionKeyType
(identifier_PRIVATE) identifier_PRIVATE
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_encrypted_key) identifier_encrypted_key
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__wrapping_key) identifier__wrapping_key
)attribute
(identifier_public_key) identifier_public_key
)attribute
(argument_list
)argument_list
)call
(identifier_encrypt) identifier_encrypt
)attribute
(argument_list
(keyword_argument
(identifier_plaintext) identifier_plaintext
(identifier_plaintext_data_key) identifier_plaintext_data_key
)keyword_argument
(keyword_argument
(identifier_padding) identifier_padding
(attribute
(attribute
(identifier_self) identifier_self
(identifier_wrapping_algorithm) identifier_wrapping_algorithm
)attribute
(identifier_padding) identifier_padding
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_encrypted_key) identifier_encrypted_key
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__wrapping_key) identifier__wrapping_key
)attribute
(identifier_encrypt) identifier_encrypt
)attribute
(argument_list
(keyword_argument
(identifier_plaintext) identifier_plaintext
(identifier_plaintext_data_key) identifier_plaintext_data_key
)keyword_argument
(keyword_argument
(identifier_padding) identifier_padding
(attribute
(attribute
(identifier_self) identifier_self
(identifier_wrapping_algorithm) identifier_wrapping_algorithm
)attribute
(identifier_padding) identifier_padding
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_EncryptedData) identifier_EncryptedData
(argument_list
(keyword_argument
(identifier_iv) identifier_iv
(None) None
)keyword_argument
(keyword_argument
(identifier_ciphertext) identifier_ciphertext
(identifier_encrypted_key) identifier_encrypted_key
)keyword_argument
(keyword_argument
(identifier_tag) identifier_tag
(None) None
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_serialized_encryption_context) identifier_serialized_encryption_context
(call
(identifier_serialize_encryption_context) identifier_serialize_encryption_context
(argument_list
(keyword_argument
(identifier_encryption_context) identifier_encryption_context
(identifier_encryption_context) identifier_encryption_context
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_iv) identifier_iv
(call
(attribute
(identifier_os) identifier_os
(identifier_urandom) identifier_urandom
)attribute
(argument_list
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_wrapping_algorithm) identifier_wrapping_algorithm
)attribute
(identifier_algorithm) identifier_algorithm
)attribute
(identifier_iv_len) identifier_iv_len
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_encrypt) identifier_encrypt
(argument_list
(keyword_argument
(identifier_algorithm) identifier_algorithm
(attribute
(attribute
(identifier_self) identifier_self
(identifier_wrapping_algorithm) identifier_wrapping_algorithm
)attribute
(identifier_algorithm) identifier_algorithm
)attribute
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(attribute
(identifier_self) identifier_self
(identifier__derived_wrapping_key) identifier__derived_wrapping_key
)attribute
)keyword_argument
(keyword_argument
(identifier_plaintext) identifier_plaintext
(identifier_plaintext_data_key) identifier_plaintext_data_key
)keyword_argument
(keyword_argument
(identifier_associated_data) identifier_associated_data
(identifier_serialized_encryption_context) identifier_serialized_encryption_context
)keyword_argument
(keyword_argument
(identifier_iv) identifier_iv
(identifier_iv) identifier_iv
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Encrypts a data key using a direct wrapping key.
:param bytes plaintext_data_key: Data key to encrypt
:param dict encryption_context: Encryption context to use in encryption
:returns: Deserialized object containing encrypted key
:rtype: aws_encryption_sdk.internal.structures.EncryptedData |
(module
(function_definition
(function_name_post) function_name_post
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(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
(attribute
(identifier_self) identifier_self
(identifier_object) identifier_object
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_object) identifier_get_object
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_object) identifier_object
)attribute
(identifier_content) identifier_content
)attribute
(subscript
(attribute
(identifier_request) identifier_request
(identifier_POST) identifier_POST
)attribute
(string_'content') string_'content'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_object) identifier_object
)attribute
(identifier_title) identifier_title
)attribute
(subscript
(attribute
(identifier_request) identifier_request
(identifier_POST) identifier_POST
)attribute
(string_'title') string_'title'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_object) identifier_object
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__mark_html_fields_as_safe) identifier__mark_html_fields_as_safe
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_object) identifier_object
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_context) identifier_context
(call
(attribute
(identifier_self) identifier_self
(identifier_get_context_data) identifier_get_context_data
)attribute
(argument_list
(keyword_argument
(identifier_object) identifier_object
(attribute
(identifier_self) identifier_self
(identifier_object) identifier_object
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_render_to_response) identifier_render_to_response
)attribute
(argument_list
(identifier_context) identifier_context
(keyword_argument
(identifier_content_type) identifier_content_type
(call
(attribute
(identifier_self) identifier_self
(identifier_get_mimetype) identifier_get_mimetype
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Accepts POST requests, and substitute the data in for the page's attributes. |
(module
(function_definition
(function_name_update_application_metadata) function_name_update_application_metadata
(parameters
(identifier_template) identifier_template
(identifier_application_id) identifier_application_id
(default_parameter
(identifier_sar_client) identifier_sar_client
(None) None
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(identifier_template) identifier_template
)not_operator
(not_operator
(identifier_application_id) identifier_application_id
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Require SAM template and application ID to update application metadata') string_'Require SAM template and application ID to update application metadata'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_sar_client) identifier_sar_client
)not_operator
(block
(expression_statement
(assignment
(identifier_sar_client) identifier_sar_client
(call
(attribute
(identifier_boto3) identifier_boto3
(identifier_client) identifier_client
)attribute
(argument_list
(string_'serverlessrepo') string_'serverlessrepo'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_template_dict) identifier_template_dict
(call
(identifier__get_template_dict) identifier__get_template_dict
(argument_list
(identifier_template) identifier_template
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_app_metadata) identifier_app_metadata
(call
(identifier_get_app_metadata) identifier_get_app_metadata
(argument_list
(identifier_template_dict) identifier_template_dict
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(identifier__update_application_request) identifier__update_application_request
(argument_list
(identifier_app_metadata) identifier_app_metadata
(identifier_application_id) identifier_application_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_sar_client) identifier_sar_client
(identifier_update_application) identifier_update_application
)attribute
(argument_list
(dictionary_splat
(identifier_request) identifier_request
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Update the application metadata.
:param template: Content of a packaged YAML or JSON SAM template
:type template: str_or_dict
:param application_id: The Amazon Resource Name (ARN) of the application
:type application_id: str
:param sar_client: The boto3 client used to access SAR
:type sar_client: boto3.client
:raises ValueError |
(module
(function_definition
(function_name__create_logger) function_name__create_logger
(parameters
(default_parameter
(identifier_name) identifier_name
(string_'did') string_'did'
)default_parameter
(default_parameter
(identifier_level) identifier_level
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_logger) identifier_logger
(call
(attribute
(identifier_logging) identifier_logging
(identifier_getLogger) identifier_getLogger
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_handler) identifier_handler
(call
(attribute
(identifier_logging) identifier_logging
(identifier_StreamHandler) identifier_StreamHandler
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_handler) identifier_handler
(identifier_setFormatter) identifier_setFormatter
)attribute
(argument_list
(call
(attribute
(identifier_Logging) identifier_Logging
(identifier_ColoredFormatter) identifier_ColoredFormatter
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_addHandler) identifier_addHandler
)attribute
(argument_list
(identifier_handler) identifier_handler
)argument_list
)call
)expression_statement
(for_statement
(identifier_level) identifier_level
(attribute
(identifier_Logging) identifier_Logging
(identifier_LEVELS) identifier_LEVELS
)attribute
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_logger) identifier_logger
(identifier_level) identifier_level
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_logging) identifier_logging
(identifier_level) identifier_level
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_logger) identifier_logger
(identifier_DATA) identifier_DATA
)attribute
(identifier_LOG_DATA) identifier_LOG_DATA
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_logger) identifier_logger
(identifier_DETAILS) identifier_DETAILS
)attribute
(identifier_LOG_DETAILS) identifier_LOG_DETAILS
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_logger) identifier_logger
(identifier_ALL) identifier_ALL
)attribute
(identifier_LOG_ALL) identifier_LOG_ALL
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_logger) identifier_logger
(identifier_details) identifier_details
)attribute
(lambda
(lambda_parameters
(identifier_message) identifier_message
)lambda_parameters
(call
(attribute
(identifier_logger) identifier_logger
(identifier_log) identifier_log
)attribute
(argument_list
(identifier_LOG_DETAILS) identifier_LOG_DETAILS
(identifier_message) identifier_message
)argument_list
)call
)lambda
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_logger) identifier_logger
(identifier_data) identifier_data
)attribute
(lambda
(lambda_parameters
(identifier_message) identifier_message
)lambda_parameters
(call
(attribute
(identifier_logger) identifier_logger
(identifier_log) identifier_log
)attribute
(argument_list
(identifier_LOG_DATA) identifier_LOG_DATA
(identifier_message) identifier_message
)argument_list
)call
)lambda
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_logger) identifier_logger
(identifier_all) identifier_all
)attribute
(lambda
(lambda_parameters
(identifier_message) identifier_message
)lambda_parameters
(call
(attribute
(identifier_logger) identifier_logger
(identifier_log) identifier_log
)attribute
(argument_list
(identifier_LOG_ALL) identifier_LOG_ALL
(identifier_message) identifier_message
)argument_list
)call
)lambda
)assignment
)expression_statement
(return_statement
(identifier_logger) identifier_logger
)return_statement
)block
)function_definition
)module | Create did logger |
(module
(function_definition
(function_name_by_user_and_perm) function_name_by_user_and_perm
(parameters
(identifier_cls) identifier_cls
(identifier_user_id) identifier_user_id
(identifier_perm_name) identifier_perm_name
(default_parameter
(identifier_db_session) identifier_db_session
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_db_session) identifier_db_session
(call
(identifier_get_db_session) identifier_get_db_session
(argument_list
(identifier_db_session) identifier_db_session
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_query) identifier_query
(call
(attribute
(call
(attribute
(identifier_db_session) identifier_db_session
(identifier_query) identifier_query
)attribute
(argument_list
(attribute
(identifier_cls) identifier_cls
(identifier_model) identifier_model
)attribute
)argument_list
)call
(identifier_filter) identifier_filter
)attribute
(argument_list
(comparison_operator
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier_model) identifier_model
)attribute
(identifier_user_id) identifier_user_id
)attribute
(identifier_user_id) identifier_user_id
)comparison_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_query) identifier_query
(call
(attribute
(identifier_query) identifier_query
(identifier_filter) identifier_filter
)attribute
(argument_list
(comparison_operator
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier_model) identifier_model
)attribute
(identifier_perm_name) identifier_perm_name
)attribute
(identifier_perm_name) identifier_perm_name
)comparison_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_query) identifier_query
(identifier_first) identifier_first
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | return by user and permission name
:param user_id:
:param perm_name:
:param db_session:
:return: |
(module
(function_definition
(function_name_ensure_header) function_name_ensure_header
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_header) identifier_header
(type
(identifier_BlockHeader) identifier_BlockHeader
)type
(None) None
)typed_default_parameter
)parameters
(type
(identifier_BlockHeader) identifier_BlockHeader
)type
(block
(if_statement
(comparison_operator
(identifier_header) identifier_header
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_head) identifier_head
(call
(attribute
(identifier_self) identifier_self
(identifier_get_canonical_head) identifier_get_canonical_head
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_create_header_from_parent) identifier_create_header_from_parent
)attribute
(argument_list
(identifier_head) identifier_head
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_header) identifier_header
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return ``header`` if it is not ``None``, otherwise return the header
of the canonical head. |
(module
(function_definition
(function_name_set_agent) function_name_set_agent
(parameters
(identifier_self) identifier_self
(identifier_agent) identifier_agent
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_agent) identifier_agent
)attribute
(identifier_agent) identifier_agent
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_queue) identifier_queue
)attribute
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_Queue) identifier_Queue
)attribute
(argument_list
(keyword_argument
(identifier_loop) identifier_loop
(attribute
(attribute
(identifier_self) identifier_self
(identifier_agent) identifier_agent
)attribute
(identifier_loop) identifier_loop
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_presence) identifier_presence
)attribute
(attribute
(identifier_agent) identifier_agent
(identifier_presence) identifier_presence
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_web) identifier_web
)attribute
(attribute
(identifier_agent) identifier_agent
(identifier_web) identifier_web
)attribute
)assignment
)expression_statement
)block
)function_definition
)module | Links behaviour with its owner agent
Args:
agent (spade.agent.Agent): the agent who owns the behaviour |
(module
(function_definition
(function_name_change_db_user_password) function_name_change_db_user_password
(parameters
(identifier_username) identifier_username
(identifier_password) identifier_password
)parameters
(block
(expression_statement
(assignment
(identifier_sql) identifier_sql
(binary_operator
(string_"ALTER USER %s WITH PASSWORD '%s'") string_"ALTER USER %s WITH PASSWORD '%s'"
(tuple
(identifier_username) identifier_username
(identifier_password) identifier_password
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(identifier_excute_query) identifier_excute_query
(argument_list
(identifier_sql) identifier_sql
(keyword_argument
(identifier_use_sudo) identifier_use_sudo
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Change a db user's password. |
(module
(function_definition
(function_name_project_dev_requirements) function_name_project_dev_requirements
(parameters
)parameters
(block
(import_from_statement
(dotted_name
(identifier_peltak) identifier_peltak
(identifier_core) identifier_core
)dotted_name
(dotted_name
(identifier_conf) identifier_conf
)dotted_name
)import_from_statement
(import_from_statement
(dotted_name
(identifier_peltak) identifier_peltak
(identifier_core) identifier_core
)dotted_name
(dotted_name
(identifier_shell) identifier_shell
)dotted_name
)import_from_statement
(for_statement
(identifier_dep) identifier_dep
(call
(identifier_sorted) identifier_sorted
(argument_list
(attribute
(identifier_conf) identifier_conf
(identifier_requirements) identifier_requirements
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_shell) identifier_shell
(identifier_cprint) identifier_cprint
)attribute
(argument_list
(identifier_dep) identifier_dep
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | List requirements for peltak commands configured for the project.
This list is dynamic and depends on the commands you have configured in
your project's pelconf.yaml. This will be the combined list of packages
needed to be installed in order for all the configured commands to work. |
(module
(function_definition
(function_name_setup_function) function_name_setup_function
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_log) identifier_log
(identifier_options) identifier_options
)attribute
(identifier_LogOptions) identifier_LogOptions
)attribute
(identifier_set_stderr_log_level) identifier_set_stderr_log_level
)attribute
(argument_list
(string_'google:INFO') string_'google:INFO'
)argument_list
)call
)expression_statement
(if_statement
(attribute
(call
(attribute
(identifier_app) identifier_app
(identifier_get_options) identifier_get_options
)attribute
(argument_list
)argument_list
)call
(identifier_debug) identifier_debug
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_log) identifier_log
(identifier_options) identifier_options
)attribute
(identifier_LogOptions) identifier_LogOptions
)attribute
(identifier_set_stderr_log_level) identifier_set_stderr_log_level
)attribute
(argument_list
(string_'google:DEBUG') string_'google:DEBUG'
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(attribute
(call
(attribute
(identifier_app) identifier_app
(identifier_get_options) identifier_get_options
)attribute
(argument_list
)argument_list
)call
(identifier_build_root) identifier_build_root
)attribute
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_app) identifier_app
(identifier_set_option) identifier_set_option
)attribute
(argument_list
(string_'build_root') string_'build_root'
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(call
(attribute
(identifier_app) identifier_app
(identifier_get_options) identifier_get_options
)attribute
(argument_list
)argument_list
)call
(identifier_butcher_basedir) identifier_butcher_basedir
)attribute
(string_'build') string_'build'
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_buildroot) identifier_buildroot
)attribute
(attribute
(call
(attribute
(identifier_app) identifier_app
(identifier_get_options) identifier_get_options
)attribute
(argument_list
)argument_list
)call
(identifier_build_root) identifier_build_root
)attribute
)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
(attribute
(identifier_self) identifier_self
(identifier_buildroot) identifier_buildroot
)attribute
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_buildroot) identifier_buildroot
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(attribute
(call
(attribute
(identifier_app) identifier_app
(identifier_get_options) identifier_get_options
)attribute
(argument_list
)argument_list
)call
(identifier_disable_cache_fetch) identifier_disable_cache_fetch
)attribute
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(string_'cache_fetch') string_'cache_fetch'
)subscript
(False) False
)assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(call
(attribute
(identifier_app) identifier_app
(identifier_get_options) identifier_get_options
)attribute
(argument_list
)argument_list
)call
(identifier_disable_hardlinks) identifier_disable_hardlinks
)attribute
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_base) identifier_base
(identifier_BaseBuilder) identifier_BaseBuilder
)attribute
(identifier_linkfiles) identifier_linkfiles
)attribute
(False) False
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Runs prior to the global main function. |
(module
(function_definition
(function_name_fwd_chunk) function_name_fwd_chunk
(parameters
(identifier_self) identifier_self
)parameters
(block
(raise_statement
(call
(identifier_NotImplementedError) identifier_NotImplementedError
(argument_list
(binary_operator
(string_"%s not implemented for %s") string_"%s not implemented for %s"
(tuple
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_fwd_chunk) identifier_fwd_chunk
)attribute
(identifier___func__) identifier___func__
)attribute
(identifier___name__) identifier___name__
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Returns the chunk following this chunk in the list of free chunks. |
(module
(function_definition
(function_name_relabel) function_name_relabel
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_qubits) identifier_qubits
(type
(identifier_Qubits) identifier_Qubits
)type
)typed_parameter
)parameters
(type
(string_'Channel') string_'Channel'
)type
(block
(expression_statement
(assignment
(identifier_chan) identifier_chan
(call
(identifier_copy) identifier_copy
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_chan) identifier_chan
(identifier_vec) identifier_vec
)attribute
(call
(attribute
(attribute
(identifier_chan) identifier_chan
(identifier_vec) identifier_vec
)attribute
(identifier_relabel) identifier_relabel
)attribute
(argument_list
(identifier_qubits) identifier_qubits
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_chan) identifier_chan
)return_statement
)block
)function_definition
)module | Return a copy of this channel with new qubits |
(module
(function_definition
(function_name__filter_headers) function_name__filter_headers
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_headers) identifier_headers
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_user) identifier_user
(attribute
(identifier_self) identifier_self
(identifier_usernames) identifier_usernames
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_headers) identifier_headers
(call
(attribute
(string_"fedora_messaging_user_{}") string_"fedora_messaging_user_{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_user) identifier_user
)argument_list
)call
)subscript
(True) True
)assignment
)expression_statement
)block
)for_statement
(for_statement
(identifier_package) identifier_package
(attribute
(identifier_self) identifier_self
(identifier_packages) identifier_packages
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_headers) identifier_headers
(call
(attribute
(string_"fedora_messaging_rpm_{}") string_"fedora_messaging_rpm_{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_package) identifier_package
)argument_list
)call
)subscript
(True) True
)assignment
)expression_statement
)block
)for_statement
(for_statement
(identifier_container) identifier_container
(attribute
(identifier_self) identifier_self
(identifier_containers) identifier_containers
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_headers) identifier_headers
(call
(attribute
(string_"fedora_messaging_container_{}") string_"fedora_messaging_container_{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_container) identifier_container
)argument_list
)call
)subscript
(True) True
)assignment
)expression_statement
)block
)for_statement
(for_statement
(identifier_module) identifier_module
(attribute
(identifier_self) identifier_self
(identifier_modules) identifier_modules
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_headers) identifier_headers
(call
(attribute
(string_"fedora_messaging_module_{}") string_"fedora_messaging_module_{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_module) identifier_module
)argument_list
)call
)subscript
(True) True
)assignment
)expression_statement
)block
)for_statement
(for_statement
(identifier_flatpak) identifier_flatpak
(attribute
(identifier_self) identifier_self
(identifier_flatpaks) identifier_flatpaks
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_headers) identifier_headers
(call
(attribute
(string_"fedora_messaging_flatpak_{}") string_"fedora_messaging_flatpak_{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_flatpak) identifier_flatpak
)argument_list
)call
)subscript
(True) True
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_headers) identifier_headers
)return_statement
)block
)function_definition
)module | Add headers designed for filtering messages based on objects.
Returns:
dict: Filter-related headers to be combined with the existing headers |
(module
(function_definition
(function_name_getShape3D) function_name_getShape3D
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_includeJunctions) identifier_includeJunctions
(False) False
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(identifier_includeJunctions) identifier_includeJunctions
(not_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__edge) identifier__edge
)attribute
(identifier_isSpecial) identifier_isSpecial
)attribute
(argument_list
)argument_list
)call
)not_operator
)boolean_operator
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__shapeWithJunctions3D) identifier__shapeWithJunctions3D
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__shapeWithJunctions3D) identifier__shapeWithJunctions3D
)attribute
(call
(identifier_addJunctionPos) identifier_addJunctionPos
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__shape3D) identifier__shape3D
)attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__edge) identifier__edge
)attribute
(identifier_getFromNode) identifier_getFromNode
)attribute
(argument_list
)argument_list
)call
(identifier_getCoord3D) identifier_getCoord3D
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__edge) identifier__edge
)attribute
(identifier_getToNode) identifier_getToNode
)attribute
(argument_list
)argument_list
)call
(identifier_getCoord3D) identifier_getCoord3D
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__shapeWithJunctions3D) identifier__shapeWithJunctions3D
)attribute
)return_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__shape3D) identifier__shape3D
)attribute
)return_statement
)block
)function_definition
)module | Returns the shape of the lane in 3d.
This function returns the shape of the lane, as defined in the net.xml
file. The returned shape is a list containing numerical
3-tuples representing the x,y,z coordinates of the shape points
where z defaults to zero.
For includeJunction=True the returned list will contain
additionally the coords (x,y,z) of the fromNode of the
corresponding edge as first element and the coords (x,y,z)
of the toNode as last element.
For internal lanes, includeJunctions is ignored and the unaltered
shape of the lane is returned. |
(module
(function_definition
(function_name_offline) function_name_offline
(parameters
(identifier_f) identifier_f
)parameters
(block
(decorated_definition
(decorator
(attribute
(identifier_click) identifier_click
(identifier_pass_context) identifier_pass_context
)attribute
)decorator
(decorator
(identifier_verbose) identifier_verbose
)decorator
(function_definition
(function_name_new_func) function_name_new_func
(parameters
(identifier_ctx) identifier_ctx
(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
(subscript
(attribute
(identifier_ctx) identifier_ctx
(identifier_obj) identifier_obj
)attribute
(string_"offline") string_"offline"
)subscript
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_ctx) identifier_ctx
(identifier_bitshares) identifier_bitshares
)attribute
(call
(identifier_BitShares) identifier_BitShares
(argument_list
(dictionary_splat
(attribute
(identifier_ctx) identifier_ctx
(identifier_obj) identifier_obj
)attribute
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_ctx) identifier_ctx
(identifier_blockchain) identifier_blockchain
)attribute
(attribute
(identifier_ctx) identifier_ctx
(identifier_bitshares) identifier_bitshares
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_ctx) identifier_ctx
(identifier_bitshares) identifier_bitshares
)attribute
(identifier_set_shared_instance) identifier_set_shared_instance
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_invoke) identifier_invoke
)attribute
(argument_list
(identifier_f) identifier_f
(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
(call
(identifier_update_wrapper) identifier_update_wrapper
(argument_list
(identifier_new_func) identifier_new_func
(identifier_f) identifier_f
)argument_list
)call
)return_statement
)block
)function_definition
)module | This decorator allows you to access ``ctx.bitshares`` which is
an instance of BitShares with ``offline=True``. |
(module
(function_definition
(function_name_managepy) function_name_managepy
(parameters
(identifier_cmd) identifier_cmd
(default_parameter
(identifier_extra) identifier_extra
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_extra) identifier_extra
(conditional_expression
(call
(attribute
(identifier_extra) identifier_extra
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
(identifier_extra) identifier_extra
(list
)list
)conditional_expression
)assignment
)expression_statement
(expression_statement
(call
(identifier_run_django_cli) identifier_run_django_cli
(argument_list
(binary_operator
(list
(string_'invoke') string_'invoke'
(identifier_cmd) identifier_cmd
)list
(identifier_extra) identifier_extra
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Run manage.py using this component's specific Django settings |
(module
(function_definition
(function_name__format_extname) function_name__format_extname
(parameters
(identifier_self) identifier_self
(identifier_ext) identifier_ext
)parameters
(block
(if_statement
(comparison_operator
(identifier_ext) identifier_ext
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_outs) identifier_outs
(identifier_ext) identifier_ext
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_outs) identifier_outs
(call
(attribute
(string_'{0},{1}') string_'{0},{1}'
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(identifier_ext) identifier_ext
(integer_0) integer_0
)subscript
(subscript
(identifier_ext) identifier_ext
(integer_1) integer_1
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_outs) identifier_outs
)return_statement
)block
)function_definition
)module | Pretty print given extension name and number tuple. |
(module
(function_definition
(function_name_main) function_name_main
(parameters
(identifier_argv) identifier_argv
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier_black_model) identifier_black_model
(identifier_white_model) identifier_white_model
)pattern_list
(identifier_argv) identifier_argv
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_utils) identifier_utils
(identifier_ensure_dir_exists) identifier_ensure_dir_exists
)attribute
(argument_list
(attribute
(identifier_FLAGS) identifier_FLAGS
(identifier_eval_sgf_dir) identifier_eval_sgf_dir
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_play_match) identifier_play_match
(argument_list
(identifier_black_model) identifier_black_model
(identifier_white_model) identifier_white_model
(attribute
(identifier_FLAGS) identifier_FLAGS
(identifier_num_evaluation_games) identifier_num_evaluation_games
)attribute
(attribute
(identifier_FLAGS) identifier_FLAGS
(identifier_eval_sgf_dir) identifier_eval_sgf_dir
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Play matches between two neural nets. |
(module
(function_definition
(function_name_from_blob) function_name_from_blob
(parameters
(identifier_cls) identifier_cls
(identifier_s) identifier_s
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_atom_str) identifier_atom_str
(identifier_edge_str) identifier_edge_str
)pattern_list
(call
(attribute
(identifier_s) identifier_s
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_numbers) identifier_numbers
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(list_comprehension
(call
(identifier_int) identifier_int
(argument_list
(identifier_s) identifier_s
)argument_list
)call
(for_in_clause
(identifier_s) identifier_s
(call
(attribute
(identifier_atom_str) identifier_atom_str
(identifier_split) identifier_split
)attribute
(argument_list
(string_",") string_","
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_edges) identifier_edges
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_orders) identifier_orders
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_s) identifier_s
(call
(attribute
(identifier_edge_str) identifier_edge_str
(identifier_split) identifier_split
)attribute
(argument_list
(string_",") string_","
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_i) identifier_i
(identifier_j) identifier_j
(identifier_o) identifier_o
)pattern_list
(generator_expression
(call
(identifier_int) identifier_int
(argument_list
(identifier_w) identifier_w
)argument_list
)call
(for_in_clause
(identifier_w) identifier_w
(call
(attribute
(identifier_s) identifier_s
(identifier_split) identifier_split
)attribute
(argument_list
(string_"_") string_"_"
)argument_list
)call
)for_in_clause
)generator_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_edges) identifier_edges
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_i) identifier_i
(identifier_j) identifier_j
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_orders) identifier_orders
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_o) identifier_o
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(identifier_edges) identifier_edges
(identifier_numbers) identifier_numbers
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_orders) identifier_orders
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Construct a molecular graph from the blob representation |
(module
(function_definition
(function_name__can_be_double) function_name__can_be_double
(parameters
(identifier_x) identifier_x
)parameters
(block
(return_statement
(parenthesized_expression
(boolean_operator
(parenthesized_expression
(boolean_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_issubdtype) identifier_issubdtype
)attribute
(argument_list
(attribute
(identifier_x) identifier_x
(identifier_dtype) identifier_dtype
)attribute
(attribute
(identifier_np) identifier_np
(identifier_floating) identifier_floating
)attribute
)argument_list
)call
(comparison_operator
(attribute
(attribute
(identifier_x) identifier_x
(identifier_dtype) identifier_dtype
)attribute
(identifier_itemsize) identifier_itemsize
)attribute
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_dtype) identifier_dtype
)attribute
(argument_list
(identifier_float) identifier_float
)argument_list
)call
(identifier_itemsize) identifier_itemsize
)attribute
)comparison_operator
)boolean_operator
)parenthesized_expression
(parenthesized_expression
(boolean_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_issubdtype) identifier_issubdtype
)attribute
(argument_list
(attribute
(identifier_x) identifier_x
(identifier_dtype) identifier_dtype
)attribute
(attribute
(identifier_np) identifier_np
(identifier_signedinteger) identifier_signedinteger
)attribute
)argument_list
)call
(call
(attribute
(identifier_np) identifier_np
(identifier_can_cast) identifier_can_cast
)attribute
(argument_list
(identifier_x) identifier_x
(identifier_float) identifier_float
)argument_list
)call
)boolean_operator
)parenthesized_expression
)boolean_operator
)parenthesized_expression
)return_statement
)block
)function_definition
)module | Return if the array can be safely converted to double.
That happens when the dtype is a float with the same size of
a double or narrower, or when is an integer that can be safely
converted to double (if the roundtrip conversion works). |
(module
(function_definition
(function_name__collect_layer_output_min_max) function_name__collect_layer_output_min_max
(parameters
(identifier_mod) identifier_mod
(identifier_data) identifier_data
(default_parameter
(identifier_include_layer) identifier_include_layer
(None) None
)default_parameter
(default_parameter
(identifier_max_num_examples) identifier_max_num_examples
(None) None
)default_parameter
(default_parameter
(identifier_logger) identifier_logger
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_collector) identifier_collector
(call
(identifier__LayerOutputMinMaxCollector) identifier__LayerOutputMinMaxCollector
(argument_list
(keyword_argument
(identifier_include_layer) identifier_include_layer
(identifier_include_layer) identifier_include_layer
)keyword_argument
(keyword_argument
(identifier_logger) identifier_logger
(identifier_logger) identifier_logger
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_num_examples) identifier_num_examples
(call
(identifier__collect_layer_statistics) identifier__collect_layer_statistics
(argument_list
(identifier_mod) identifier_mod
(identifier_data) identifier_data
(identifier_collector) identifier_collector
(identifier_max_num_examples) identifier_max_num_examples
(identifier_logger) identifier_logger
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(attribute
(identifier_collector) identifier_collector
(identifier_min_max_dict) identifier_min_max_dict
)attribute
(identifier_num_examples) identifier_num_examples
)expression_list
)return_statement
)block
)function_definition
)module | Collect min and max values from layer outputs and save them in
a dictionary mapped by layer names. |
(module
(function_definition
(function_name_cors) function_name_cors
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(function_definition
(function_name_decorator) function_name_decorator
(parameters
(identifier_fn) identifier_fn
)parameters
(block
(expression_statement
(assignment
(identifier_cors_fn) identifier_cors_fn
(call
(attribute
(identifier_flask_cors) identifier_flask_cors
(identifier_cross_origin) identifier_cross_origin
)attribute
(argument_list
(keyword_argument
(identifier_automatic_options) identifier_automatic_options
(False) False
)keyword_argument
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_isclass) identifier_isclass
)attribute
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
(block
(expression_statement
(call
(identifier_apply_function_to_members) identifier_apply_function_to_members
(argument_list
(identifier_fn) identifier_fn
(identifier_cors_fn) identifier_cors_fn
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_cors_fn) identifier_cors_fn
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_fn) identifier_fn
)return_statement
)block
)function_definition
(return_statement
(identifier_decorator) identifier_decorator
)return_statement
)block
)function_definition
)module | A wrapper around flask-cors cross_origin, to also act on classes
**An extra note about cors, a response must be available before the
cors is applied. Dynamic return is applied after the fact, so use the
decorators, json, xml, or return self.render() for txt/html
ie:
@cors()
class Index(Mocha):
def index(self):
return self.render()
@json
def json(self):
return {}
class Index2(Mocha):
def index(self):
return self.render()
@cors()
@json
def json(self):
return {}
:return: |
(module
(function_definition
(function_name__file_local_or_remote) function_name__file_local_or_remote
(parameters
(identifier_f) identifier_f
(identifier_get_retriever) identifier_get_retriever
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
(block
(return_statement
(identifier_f) identifier_f
)return_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_integration) identifier_integration
(identifier_config) identifier_config
)pattern_list
(call
(attribute
(identifier_get_retriever) identifier_get_retriever
(identifier_integration_and_config) identifier_integration_and_config
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_integration) identifier_integration
(block
(return_statement
(call
(attribute
(identifier_integration) identifier_integration
(identifier_file_exists) identifier_file_exists
)attribute
(argument_list
(identifier_f) identifier_f
(identifier_config) identifier_config
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Check for presence of a local or remote file. |
(module
(function_definition
(function_name_convert_to_shape) function_name_convert_to_shape
(parameters
(identifier_x) identifier_x
)parameters
(block
(if_statement
(comparison_operator
(identifier_x) identifier_x
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_x) identifier_x
(identifier_Shape) identifier_Shape
)argument_list
)call
(block
(return_statement
(identifier_x) identifier_x
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_x) identifier_x
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(call
(identifier__parse_string_to_list_of_pairs) identifier__parse_string_to_list_of_pairs
(argument_list
(identifier_x) identifier_x
(keyword_argument
(identifier_seconds_to_int) identifier_seconds_to_int
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_Shape) identifier_Shape
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)return_statement
)block
)function_definition
)module | Converts input to a Shape.
Args:
x: Shape, str, or None.
Returns:
Shape or None.
Raises:
ValueError: If x cannot be converted to a Shape. |
(module
(function_definition
(function_name_recov_date) function_name_recov_date
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_return_date) identifier_return_date
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_dd) identifier_dd
(call
(attribute
(identifier_self) identifier_self
(identifier_drawdown_idx) identifier_drawdown_idx
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mask) identifier_mask
(call
(attribute
(call
(identifier_nancumprod) identifier_nancumprod
(argument_list
(comparison_operator
(identifier_dd) identifier_dd
(call
(identifier_nanmin) identifier_nanmin
(argument_list
(identifier_dd) identifier_dd
)argument_list
)call
)comparison_operator
)argument_list
)call
(identifier_astype) identifier_astype
)attribute
(argument_list
(identifier_bool) identifier_bool
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(comparison_operator
(call
(attribute
(identifier_dd) identifier_dd
(identifier_mask) identifier_mask
)attribute
(argument_list
(identifier_mask) identifier_mask
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_res) identifier_res
(identifier_any) identifier_any
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_recov) identifier_recov
(attribute
(identifier_pd) identifier_pd
(identifier_NaT) identifier_NaT
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_recov) identifier_recov
(call
(attribute
(identifier_res) identifier_res
(identifier_idxmax) identifier_idxmax
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(identifier_return_date) identifier_return_date
(block
(return_statement
(call
(attribute
(identifier_recov) identifier_recov
(identifier_date) identifier_date
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_recov) identifier_recov
)return_statement
)block
)function_definition
)module | Drawdown recovery date.
Date at which `self` recovered to previous high-water mark.
Parameters
----------
return_date : bool, default False
If True, return a `datetime.date` object.
If False, return a Pandas Timestamp object.
Returns
-------
{datetime.date, pandas._libs.tslib.Timestamp, pd.NaT}
Returns NaT if recovery has not occured. |
(module
(function_definition
(function_name_from_tushare) function_name_from_tushare
(parameters
(identifier_dataframe) identifier_dataframe
(default_parameter
(identifier_dtype) identifier_dtype
(string_'day') string_'day'
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_dtype) identifier_dtype
(list
(string_'day') string_'day'
)list
)comparison_operator
(block
(return_statement
(call
(identifier_QA_DataStruct_Stock_day) identifier_QA_DataStruct_Stock_day
(argument_list
(call
(attribute
(call
(attribute
(identifier_dataframe) identifier_dataframe
(identifier_assign) identifier_assign
)attribute
(argument_list
(keyword_argument
(identifier_date) identifier_date
(call
(attribute
(identifier_pd) identifier_pd
(identifier_to_datetime) identifier_to_datetime
)attribute
(argument_list
(attribute
(identifier_dataframe) identifier_dataframe
(identifier_date) identifier_date
)attribute
)argument_list
)call
)keyword_argument
)argument_list
)call
(identifier_set_index) identifier_set_index
)attribute
(argument_list
(list
(string_'date') string_'date'
(string_'code') string_'code'
)list
(keyword_argument
(identifier_drop) identifier_drop
(False) False
)keyword_argument
)argument_list
)call
(keyword_argument
(identifier_dtype) identifier_dtype
(string_'stock_day') string_'stock_day'
)keyword_argument
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_dtype) identifier_dtype
(list
(string_'min') string_'min'
)list
)comparison_operator
(block
(return_statement
(call
(identifier_QA_DataStruct_Stock_min) identifier_QA_DataStruct_Stock_min
(argument_list
(call
(attribute
(call
(attribute
(identifier_dataframe) identifier_dataframe
(identifier_assign) identifier_assign
)attribute
(argument_list
(keyword_argument
(identifier_datetime) identifier_datetime
(call
(attribute
(identifier_pd) identifier_pd
(identifier_to_datetime) identifier_to_datetime
)attribute
(argument_list
(attribute
(identifier_dataframe) identifier_dataframe
(identifier_datetime) identifier_datetime
)attribute
)argument_list
)call
)keyword_argument
)argument_list
)call
(identifier_set_index) identifier_set_index
)attribute
(argument_list
(list
(string_'datetime') string_'datetime'
(string_'code') string_'code'
)list
(keyword_argument
(identifier_drop) identifier_drop
(False) False
)keyword_argument
)argument_list
)call
(keyword_argument
(identifier_dtype) identifier_dtype
(string_'stock_min') string_'stock_min'
)keyword_argument
)argument_list
)call
)return_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | dataframe from tushare
Arguments:
dataframe {[type]} -- [description]
Returns:
[type] -- [description] |
(module
(function_definition
(function_name_translate_connect_args) function_name_translate_connect_args
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_names) identifier_names
(list
)list
)default_parameter
(dictionary_splat_pattern
(identifier_kw) identifier_kw
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_translated) identifier_translated
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_attribute_names) identifier_attribute_names
(list
(string_"host") string_"host"
(string_"database") string_"database"
(string_"username") string_"username"
(string_"password") string_"password"
(string_"port") string_"port"
)list
)assignment
)expression_statement
(for_statement
(identifier_sname) identifier_sname
(identifier_attribute_names) identifier_attribute_names
(block
(if_statement
(identifier_names) identifier_names
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(identifier_names) identifier_names
(identifier_pop) identifier_pop
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_sname) identifier_sname
(identifier_kw) identifier_kw
)comparison_operator
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(subscript
(identifier_kw) identifier_kw
(identifier_sname) identifier_sname
)subscript
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(identifier_sname) identifier_sname
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_name) identifier_name
(None) None
)comparison_operator
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_sname) identifier_sname
(False) False
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_translated) identifier_translated
(identifier_name) identifier_name
)subscript
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_sname) identifier_sname
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_translated) identifier_translated
)return_statement
)block
)function_definition
)module | Translate url attributes into a dictionary of connection arguments.
Returns attributes of this url (`host`, `database`, `username`,
`password`, `port`) as a plain dictionary. The attribute names are
used as the keys by default. Unset or false attributes are omitted
from the final dictionary.
:param \**kw: Optional, alternate key names for url attributes.
:param names: Deprecated. Same purpose as the keyword-based alternate
names, but correlates the name to the original positionally. |
(module
(function_definition
(function_name__init_user_stub) function_name__init_user_stub
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_stub_kwargs) identifier_stub_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_task_args) identifier_task_args
(call
(attribute
(identifier_stub_kwargs) identifier_stub_kwargs
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_testbed) identifier_testbed
)attribute
(identifier_setup_env) identifier_setup_env
)attribute
(argument_list
(keyword_argument
(identifier_overwrite) identifier_overwrite
(True) True
)keyword_argument
(keyword_argument
(identifier_USER_ID) identifier_USER_ID
(call
(attribute
(identifier_task_args) identifier_task_args
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'USER_ID') string_'USER_ID'
(string_'testuser') string_'testuser'
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_USER_EMAIL) identifier_USER_EMAIL
(call
(attribute
(identifier_task_args) identifier_task_args
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'USER_EMAIL') string_'USER_EMAIL'
(string_'testuser@example.org') string_'testuser@example.org'
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_USER_IS_ADMIN) identifier_USER_IS_ADMIN
(call
(attribute
(identifier_task_args) identifier_task_args
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'USER_IS_ADMIN') string_'USER_IS_ADMIN'
(string_'1') string_'1'
)argument_list
)call
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_testbed) identifier_testbed
)attribute
(identifier_init_user_stub) identifier_init_user_stub
)attribute
(argument_list
(dictionary_splat
(identifier_task_args) identifier_task_args
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Initializes the user stub using nosegae config magic |
(module
(function_definition
(function_name_cast) function_name_cast
(parameters
(identifier_self) identifier_self
(identifier_dtype) identifier_dtype
)parameters
(block
(for_statement
(identifier_child) identifier_child
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__children) identifier__children
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_child) identifier_child
(identifier_cast) identifier_cast
)attribute
(argument_list
(identifier_dtype) identifier_dtype
)argument_list
)call
)expression_statement
)block
)for_statement
(for_statement
(pattern_list
(identifier__) identifier__
(identifier_param) identifier_param
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_params) identifier_params
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_param) identifier_param
(identifier_cast) identifier_cast
)attribute
(argument_list
(identifier_dtype) identifier_dtype
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Cast this Block to use another data type.
Parameters
----------
dtype : str or numpy.dtype
The new data type. |
(module
(function_definition
(function_name_update_cluster) function_name_update_cluster
(parameters
(identifier_cluster_ref) identifier_cluster_ref
(identifier_cluster_spec) identifier_cluster_spec
)parameters
(block
(expression_statement
(assignment
(identifier_cluster_name) identifier_cluster_name
(call
(identifier_get_managed_object_name) identifier_get_managed_object_name
(argument_list
(identifier_cluster_ref) identifier_cluster_ref
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_trace) identifier_trace
)attribute
(argument_list
(string_'Updating cluster \'%s\'') string_'Updating cluster \'%s\''
(identifier_cluster_name) identifier_cluster_name
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_task) identifier_task
(call
(attribute
(identifier_cluster_ref) identifier_cluster_ref
(identifier_ReconfigureComputeResource_Task) identifier_ReconfigureComputeResource_Task
)attribute
(argument_list
(identifier_cluster_spec) identifier_cluster_spec
(keyword_argument
(identifier_modify) identifier_modify
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(attribute
(identifier_vim) identifier_vim
(identifier_fault) identifier_fault
)attribute
(identifier_NoPermission) identifier_NoPermission
)attribute
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_exception) identifier_exception
)attribute
(argument_list
(identifier_exc) identifier_exc
)argument_list
)call
)expression_statement
(raise_statement
(call
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_exceptions) identifier_exceptions
)attribute
(identifier_VMwareApiError) identifier_VMwareApiError
)attribute
(argument_list
(call
(attribute
(concatenated_string
(string_'Not enough permissions. Required privilege: ') string_'Not enough permissions. Required privilege: '
(string_'{}') string_'{}'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_exc) identifier_exc
(identifier_privilegeId) identifier_privilegeId
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
(except_clause
(as_pattern
(attribute
(attribute
(identifier_vim) identifier_vim
(identifier_fault) identifier_fault
)attribute
(identifier_VimFault) identifier_VimFault
)attribute
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_exception) identifier_exception
)attribute
(argument_list
(identifier_exc) identifier_exc
)argument_list
)call
)expression_statement
(raise_statement
(call
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_exceptions) identifier_exceptions
)attribute
(identifier_VMwareApiError) identifier_VMwareApiError
)attribute
(argument_list
(attribute
(identifier_exc) identifier_exc
(identifier_msg) identifier_msg
)attribute
)argument_list
)call
)raise_statement
)block
)except_clause
(except_clause
(as_pattern
(attribute
(identifier_vmodl) identifier_vmodl
(identifier_RuntimeFault) identifier_RuntimeFault
)attribute
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_exception) identifier_exception
)attribute
(argument_list
(identifier_exc) identifier_exc
)argument_list
)call
)expression_statement
(raise_statement
(call
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_exceptions) identifier_exceptions
)attribute
(identifier_VMwareRuntimeError) identifier_VMwareRuntimeError
)attribute
(argument_list
(attribute
(identifier_exc) identifier_exc
(identifier_msg) identifier_msg
)attribute
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(identifier_wait_for_task) identifier_wait_for_task
(argument_list
(identifier_task) identifier_task
(identifier_cluster_name) identifier_cluster_name
(string_'ClusterUpdateTask') string_'ClusterUpdateTask'
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Updates a cluster in a datacenter.
cluster_ref
The cluster reference.
cluster_spec
The cluster spec (vim.ClusterConfigSpecEx).
Defaults to None. |
(module
(function_definition
(function_name_parse_yaml) function_name_parse_yaml
(parameters
(identifier_self) identifier_self
(identifier_y) identifier_y
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_Preceding) identifier_Preceding
(identifier_self) identifier_self
)argument_list
)call
(identifier_parse_yaml) identifier_parse_yaml
)attribute
(argument_list
(identifier_y) identifier_y
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_c) identifier_c
(subscript
(subscript
(identifier_y) identifier_y
(string_'condition') string_'condition'
)subscript
(string_'preceding') string_'preceding'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'timeout') string_'timeout'
(identifier_c) identifier_c
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_timeout) identifier_timeout
)attribute
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_c) identifier_c
(string_'timeout') string_'timeout'
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_timeout) identifier_timeout
)attribute
(integer_0) integer_0
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(string_'sendingTiming') string_'sendingTiming'
(identifier_c) identifier_c
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_sending_timing) identifier_sending_timing
)attribute
(subscript
(identifier_c) identifier_c
(string_'sendingTiming') string_'sendingTiming'
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_sending_timing) identifier_sending_timing
)attribute
(string_'ASYNC') string_'ASYNC'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__preceding_components) identifier__preceding_components
)attribute
(list
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'precedingComponents') string_'precedingComponents'
(identifier_c) identifier_c
)comparison_operator
(block
(for_statement
(identifier_p) identifier_p
(call
(attribute
(identifier_c) identifier_c
(identifier_get) identifier_get
)attribute
(argument_list
(string_'precedingComponents') string_'precedingComponents'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__preceding_components) identifier__preceding_components
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(call
(identifier_TargetExecutionContext) identifier_TargetExecutionContext
(argument_list
)argument_list
)call
(identifier_parse_yaml) identifier_parse_yaml
)attribute
(argument_list
(identifier_p) identifier_p
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Parse a YAML specification of a preceding condition into this
object. |
(module
(function_definition
(function_name_cli) function_name_cli
(parameters
(identifier_env) identifier_env
(identifier_billing_id) identifier_billing_id
(identifier_datacenter) identifier_datacenter
)parameters
(block
(expression_statement
(assignment
(identifier_mgr) identifier_mgr
(call
(attribute
(identifier_SoftLayer) identifier_SoftLayer
(identifier_LoadBalancerManager) identifier_LoadBalancerManager
)attribute
(argument_list
(attribute
(identifier_env) identifier_env
(identifier_client) identifier_client
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_formatting) identifier_formatting
(identifier_confirm) identifier_confirm
)attribute
(argument_list
(concatenated_string
(string_"This action will incur charges on your ") string_"This action will incur charges on your "
(string_"account. Continue?") string_"account. Continue?"
)concatenated_string
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_CLIAbort) identifier_CLIAbort
)attribute
(argument_list
(string_'Aborted.') string_'Aborted.'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_mgr) identifier_mgr
(identifier_add_local_lb) identifier_add_local_lb
)attribute
(argument_list
(identifier_billing_id) identifier_billing_id
(keyword_argument
(identifier_datacenter) identifier_datacenter
(identifier_datacenter) identifier_datacenter
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_env) identifier_env
(identifier_fout) identifier_fout
)attribute
(argument_list
(string_"Load balancer is being created!") string_"Load balancer is being created!"
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Adds a load balancer given the id returned from create-options. |
(module
(function_definition
(function_name__make_postfixes_1) function_name__make_postfixes_1
(parameters
(identifier_analysis) identifier_analysis
)parameters
(block
(assert_statement
(comparison_operator
(identifier_FORM) identifier_FORM
(identifier_analysis) identifier_analysis
)comparison_operator
(binary_operator
(binary_operator
(string_'(!) The input analysis does not contain "') string_'(!) The input analysis does not contain "'
(identifier_FORM) identifier_FORM
)binary_operator
(string_'" key.') string_'" key.'
)binary_operator
)assert_statement
(if_statement
(comparison_operator
(string_'neg') string_'neg'
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_'^\s*neg ([^,]*)$') string_'^\s*neg ([^,]*)$'
(string_'\\1 Neg') string_'\\1 Neg'
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_' Neg Neg$') string_' Neg Neg$'
(string_' Neg') string_' Neg'
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_' Aff Neg$') string_' Aff Neg$'
(string_' Neg') string_' Neg'
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_'neg') string_'neg'
(string_'Neg') string_'Neg'
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
(call
(attribute
(call
(attribute
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
)argument_list
)call
(identifier_lstrip) identifier_lstrip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(string_'neg') string_'neg'
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
)comparison_operator
(string_'(!) The label "neg" should be removed by now.') string_'(!) The label "neg" should be removed by now.'
)assert_statement
(assert_statement
(boolean_operator
(comparison_operator
(string_'Neg') string_'Neg'
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
)comparison_operator
(parenthesized_expression
(boolean_operator
(comparison_operator
(string_'Neg') string_'Neg'
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
)comparison_operator
(call
(attribute
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'Neg') string_'Neg'
)argument_list
)call
)boolean_operator
)parenthesized_expression
)boolean_operator
(binary_operator
(string_'(!) The label "Neg" should end the analysis line: ') string_'(!) The label "Neg" should end the analysis line: '
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_analysis) identifier_analysis
(identifier_FORM) identifier_FORM
)subscript
)argument_list
)call
)binary_operator
)assert_statement
(return_statement
(identifier_analysis) identifier_analysis
)return_statement
)block
)function_definition
)module | Provides some post-fixes. |
(module
(function_definition
(function_name_setTxPower) function_name_setTxPower
(parameters
(identifier_self) identifier_self
(identifier_tx_power) identifier_tx_power
(default_parameter
(identifier_peername) identifier_peername
(None) None
)default_parameter
)parameters
(block
(if_statement
(identifier_peername) identifier_peername
(block
(expression_statement
(assignment
(identifier_protocols) identifier_protocols
(list_comprehension
(identifier_p) identifier_p
(for_in_clause
(identifier_p) identifier_p
(attribute
(identifier_self) identifier_self
(identifier_protocols) identifier_protocols
)attribute
)for_in_clause
(if_clause
(comparison_operator
(subscript
(attribute
(identifier_p) identifier_p
(identifier_peername) identifier_peername
)attribute
(integer_0) integer_0
)subscript
(identifier_peername) identifier_peername
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_protocols) identifier_protocols
(attribute
(identifier_self) identifier_self
(identifier_protocols) identifier_protocols
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(for_statement
(identifier_proto) identifier_proto
(identifier_protocols) identifier_protocols
(block
(expression_statement
(call
(attribute
(identifier_proto) identifier_proto
(identifier_setTxPower) identifier_setTxPower
)attribute
(argument_list
(identifier_tx_power) identifier_tx_power
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Set the transmit power on one or all readers
If peername is None, set the transmit power for all readers.
Otherwise, set it for that specific reader. |
(module
(function_definition
(function_name___auth_descriptor) function_name___auth_descriptor
(parameters
(identifier_self) identifier_self
(identifier_api_info) identifier_api_info
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_api_info) identifier_api_info
(identifier_auth) identifier_auth
)attribute
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_auth_descriptor) identifier_auth_descriptor
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_api_info) identifier_api_info
(identifier_auth) identifier_auth
)attribute
(identifier_allow_cookie_auth) identifier_allow_cookie_auth
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_auth_descriptor) identifier_auth_descriptor
(string_'allowCookieAuth') string_'allowCookieAuth'
)subscript
(attribute
(attribute
(identifier_api_info) identifier_api_info
(identifier_auth) identifier_auth
)attribute
(identifier_allow_cookie_auth) identifier_allow_cookie_auth
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(attribute
(identifier_api_info) identifier_api_info
(identifier_auth) identifier_auth
)attribute
(identifier_blocked_regions) identifier_blocked_regions
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_auth_descriptor) identifier_auth_descriptor
(string_'blockedRegions') string_'blockedRegions'
)subscript
(attribute
(attribute
(identifier_api_info) identifier_api_info
(identifier_auth) identifier_auth
)attribute
(identifier_blocked_regions) identifier_blocked_regions
)attribute
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_auth_descriptor) identifier_auth_descriptor
)return_statement
)block
)function_definition
)module | Builds an auth descriptor from API info.
Args:
api_info: An _ApiInfo object.
Returns:
A dictionary with 'allowCookieAuth' and/or 'blockedRegions' keys. |
(module
(function_definition
(function_name_addService) function_name_addService
(parameters
(identifier_self) identifier_self
(identifier_service) identifier_service
(default_parameter
(identifier_parentService) identifier_parentService
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_parentService) identifier_parentService
(None) None
)comparison_operator
(block
(function_definition
(function_name_check) function_name_check
(parameters
(identifier_services) identifier_services
)parameters
(block
(for_statement
(identifier_jS) identifier_jS
(identifier_services) identifier_services
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_jS) identifier_jS
(identifier_service) identifier_service
)attribute
(identifier_parentService) identifier_parentService
)comparison_operator
(call
(identifier_check) identifier_check
(argument_list
(attribute
(attribute
(identifier_jS) identifier_jS
(identifier_service) identifier_service
)attribute
(identifier__childServices) identifier__childServices
)attribute
)argument_list
)call
)boolean_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
(if_statement
(not_operator
(call
(identifier_check) identifier_check
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__services) identifier__services
)attribute
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_JobException) identifier_JobException
(argument_list
(string_"Parent service is not a service of the given job") string_"Parent service is not a service of the given job"
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_parentService) identifier_parentService
(identifier__addChild) identifier__addChild
)attribute
(argument_list
(identifier_service) identifier_service
)argument_list
)call
)return_statement
)block
(else_clause
(block
(if_statement
(attribute
(identifier_service) identifier_service
(identifier__hasParent) identifier__hasParent
)attribute
(block
(raise_statement
(call
(identifier_JobException) identifier_JobException
(argument_list
(string_"The service already has a parent service") string_"The service already has a parent service"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_service) identifier_service
(identifier__hasParent) identifier__hasParent
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_jobService) identifier_jobService
(call
(identifier_ServiceJob) identifier_ServiceJob
(argument_list
(identifier_service) identifier_service
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__services) identifier__services
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_jobService) identifier_jobService
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_jobService) identifier_jobService
(identifier_rv) identifier_rv
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Add a service.
The :func:`toil.job.Job.Service.start` method of the service will be called
after the run method has completed but before any successors are run.
The service's :func:`toil.job.Job.Service.stop` method will be called once
the successors of the job have been run.
Services allow things like databases and servers to be started and accessed
by jobs in a workflow.
:raises toil.job.JobException: If service has already been made the child of a job or another service.
:param toil.job.Job.Service service: Service to add.
:param toil.job.Job.Service parentService: Service that will be started before 'service' is
started. Allows trees of services to be established. parentService must be a service
of this job.
:return: a promise that will be replaced with the return value from
:func:`toil.job.Job.Service.start` of service in any successor of the job.
:rtype: toil.job.Promise |
(module
(function_definition
(function_name_valueRepr) function_name_valueRepr
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_v) identifier_v
(attribute
(identifier_self) identifier_self
(identifier_value) identifier_value
)attribute
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_behavior) identifier_behavior
)attribute
(block
(expression_statement
(assignment
(identifier_v) identifier_v
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_behavior) identifier_behavior
)attribute
(identifier_valueRepr) identifier_valueRepr
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_v) identifier_v
)return_statement
)block
)function_definition
)module | Transform the representation of the value
according to the behavior, if any. |
(module
(function_definition
(function_name__CheckPacketSize) function_name__CheckPacketSize
(parameters
(identifier_cursor) identifier_cursor
)parameters
(block
(expression_statement
(assignment
(identifier_cur_packet_size) identifier_cur_packet_size
(call
(identifier_int) identifier_int
(argument_list
(call
(identifier__ReadVariable) identifier__ReadVariable
(argument_list
(string_"max_allowed_packet") string_"max_allowed_packet"
(identifier_cursor) identifier_cursor
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_cur_packet_size) identifier_cur_packet_size
(identifier_MAX_PACKET_SIZE) identifier_MAX_PACKET_SIZE
)comparison_operator
(block
(raise_statement
(call
(identifier_Error) identifier_Error
(argument_list
(call
(attribute
(concatenated_string
(string_"MySQL max_allowed_packet of {0} is required, got {1}. ") string_"MySQL max_allowed_packet of {0} is required, got {1}. "
(string_"Please set max_allowed_packet={0} in your MySQL config.") string_"Please set max_allowed_packet={0} in your MySQL config."
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_MAX_PACKET_SIZE) identifier_MAX_PACKET_SIZE
(identifier_cur_packet_size) identifier_cur_packet_size
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Checks that MySQL packet size is big enough for expected query size. |
(module
(function_definition
(function_name_remove) function_name_remove
(parameters
(identifier_self) identifier_self
(identifier_label) identifier_label
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_label) identifier_label
(identifier_id) identifier_id
)attribute
(attribute
(identifier_self) identifier_self
(identifier__labels) identifier__labels
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__labels) identifier__labels
)attribute
(attribute
(identifier_label) identifier_label
(identifier_id) identifier_id
)attribute
)subscript
(None) None
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__dirty) identifier__dirty
)attribute
(True) True
)assignment
)expression_statement
)block
)function_definition
)module | Remove a label.
Args:
label (gkeepapi.node.Label): The Label object. |
(module
(function_definition
(function_name_predict_encoding) function_name_predict_encoding
(parameters
(identifier_file_path) identifier_file_path
(default_parameter
(identifier_n_lines) identifier_n_lines
(integer_20) integer_20
)default_parameter
)parameters
(block
(import_statement
(dotted_name
(identifier_chardet) identifier_chardet
)dotted_name
)import_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_file_path) identifier_file_path
(string_'rb') string_'rb'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_rawdata) identifier_rawdata
(call
(attribute
(string_b'') string_b''
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(attribute
(identifier_f) identifier_f
(identifier_readline) identifier_readline
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier__) identifier__
(call
(identifier_range) identifier_range
(argument_list
(identifier_n_lines) identifier_n_lines
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(return_statement
(subscript
(call
(attribute
(identifier_chardet) identifier_chardet
(identifier_detect) identifier_detect
)attribute
(argument_list
(identifier_rawdata) identifier_rawdata
)argument_list
)call
(string_'encoding') string_'encoding'
)subscript
)return_statement
)block
)function_definition
)module | Get file encoding of a text file |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
(default_parameter
(identifier_storage_options) identifier_storage_options
(None) None
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_dask) identifier_dask
(identifier_bytes) identifier_bytes
)dotted_name
(dotted_name
(identifier_open_files) identifier_open_files
)dotted_name
)import_from_statement
(with_statement
(with_clause
(with_item
(as_pattern
(subscript
(call
(identifier_open_files) identifier_open_files
(argument_list
(list
(identifier_url) identifier_url
)list
(dictionary_splat
(parenthesized_expression
(boolean_operator
(identifier_storage_options) identifier_storage_options
(dictionary
)dictionary
)boolean_operator
)parenthesized_expression
)dictionary_splat
(keyword_argument
(identifier_mode) identifier_mode
(string_'wt') string_'wt'
)keyword_argument
)argument_list
)call
(integer_0) integer_0
)subscript
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_serialize) identifier_serialize
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Output this catalog to a file as YAML
Parameters
----------
url : str
Location to save to, perhaps remote
storage_options : dict
Extra arguments for the file-system |
(module
(function_definition
(function_name_add_section) function_name_add_section
(parameters
(identifier_self) identifier_self
(identifier_id_) identifier_id_
(identifier_parent_id) identifier_parent_id
(identifier_section_type) identifier_section_type
(identifier_points) identifier_points
)parameters
(block
(assert_statement
(comparison_operator
(identifier_id_) identifier_id_
(attribute
(identifier_self) identifier_self
(identifier_sections) identifier_sections
)attribute
)comparison_operator
(binary_operator
(string_'id %s already exists in sections') string_'id %s already exists in sections'
(identifier_id_) identifier_id_
)binary_operator
)assert_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_sections) identifier_sections
)attribute
(identifier_id_) identifier_id_
)subscript
(call
(attribute
(identifier_BlockNeuronBuilder) identifier_BlockNeuronBuilder
(identifier_BlockSection) identifier_BlockSection
)attribute
(argument_list
(identifier_parent_id) identifier_parent_id
(identifier_section_type) identifier_section_type
(identifier_points) identifier_points
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | add a section
Args:
id_(int): identifying number of the section
parent_id(int): identifying number of the parent of this section
section_type(int): the section type as defined by POINT_TYPE
points is an array of [X, Y, Z, R] |
(module
(function_definition
(function_name_get_value) function_name_get_value
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_value) identifier_value
)attribute
(identifier_not_computed) identifier_not_computed
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_value) identifier_value
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_value_provider) identifier_value_provider
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_value) identifier_value
)attribute
(identifier_not_computed) identifier_not_computed
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_value) identifier_value
)attribute
)return_statement
)block
)function_definition
)module | Returns the value of the constant. |
(module
(function_definition
(function_name_sentinels) function_name_sentinels
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_fut) identifier_fut
(call
(attribute
(identifier_self) identifier_self
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_b'SENTINELS') string_b'SENTINELS'
(identifier_name) identifier_name
(keyword_argument
(identifier_encoding) identifier_encoding
(string_'utf-8') string_'utf-8'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_wait_convert) identifier_wait_convert
(argument_list
(identifier_fut) identifier_fut
(identifier_parse_sentinel_slaves_and_sentinels) identifier_parse_sentinel_slaves_and_sentinels
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a list of sentinels for ``name``. |
(module
(function_definition
(function_name__exclude_ipv4_networks) function_name__exclude_ipv4_networks
(parameters
(identifier_self) identifier_self
(identifier_networks) identifier_networks
(identifier_networks_to_exclude) identifier_networks_to_exclude
)parameters
(block
(for_statement
(identifier_network_to_exclude) identifier_network_to_exclude
(identifier_networks_to_exclude) identifier_networks_to_exclude
(block
(function_definition
(function_name__exclude_ipv4_network) function_name__exclude_ipv4_network
(parameters
(identifier_network) identifier_network
)parameters
(block
(try_statement
(block
(return_statement
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_network) identifier_network
(identifier_address_exclude) identifier_address_exclude
)attribute
(argument_list
(identifier_network_to_exclude) identifier_network_to_exclude
)argument_list
)call
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(if_statement
(call
(attribute
(identifier_network) identifier_network
(identifier_overlaps) identifier_overlaps
)attribute
(argument_list
(identifier_network_to_exclude) identifier_network_to_exclude
)argument_list
)call
(block
(return_statement
(list
)list
)return_statement
)block
(else_clause
(block
(return_statement
(list
(identifier_network) identifier_network
)list
)return_statement
)block
)else_clause
)if_statement
)block
)except_clause
)try_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_networks) identifier_networks
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(identifier__exclude_ipv4_network) identifier__exclude_ipv4_network
(identifier_networks) identifier_networks
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_networks) identifier_networks
(list_comprehension
(identifier_item) identifier_item
(for_in_clause
(identifier_nested) identifier_nested
(identifier_networks) identifier_networks
)for_in_clause
(for_in_clause
(identifier_item) identifier_item
(identifier_nested) identifier_nested
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_networks) identifier_networks
)return_statement
)block
)function_definition
)module | Exclude the list of networks from another list of networks
and return a flat list of new networks.
:param networks: List of IPv4 networks to exclude from
:param networks_to_exclude: List of IPv4 networks to exclude
:returns: Flat list of IPv4 networks |
(module
(function_definition
(function_name_start_cmd) function_name_start_cmd
(parameters
(identifier_cmd) identifier_cmd
(identifier_descr) identifier_descr
(identifier_data) identifier_data
)parameters
(block
(if_statement
(boolean_operator
(identifier_data) identifier_data
(comparison_operator
(string_"provenance") string_"provenance"
(identifier_data) identifier_data
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_entity_id) identifier_entity_id
(call
(attribute
(identifier_tz) identifier_tz
(identifier_get_in) identifier_get_in
)attribute
(argument_list
(list
(string_"provenance") string_"provenance"
(string_"entity") string_"entity"
)list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Retain details about starting a command, returning a command identifier. |
(module
(function_definition
(function_name__start) function_name__start
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_last_call) identifier_last_call
(integer_42) integer_42
)assignment
)expression_statement
(while_statement
(attribute
(identifier_self) identifier_self
(identifier__focus) identifier__focus
)attribute
(block
(expression_statement
(call
(identifier_sleep) identifier_sleep
(argument_list
(binary_operator
(integer_1) integer_1
(integer_100) integer_100
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_mouse) identifier_mouse
(call
(attribute
(attribute
(identifier_pygame) identifier_pygame
(identifier_mouse) identifier_mouse
)attribute
(identifier_get_pos) identifier_get_pos
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_last_value) identifier_last_value
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_value_px) identifier_value_px
)attribute
(subscript
(identifier_mouse) identifier_mouse
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
)argument_list
)call
(identifier_last_value) identifier_last_value
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(comparison_operator
(binary_operator
(identifier_last_call) identifier_last_call
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_interval) identifier_interval
)attribute
(integer_1000) integer_1000
)binary_operator
)binary_operator
(call
(identifier_time) identifier_time
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_last_call) identifier_last_call
(call
(identifier_time) identifier_time
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_func) identifier_func
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)while_statement
)block
)function_definition
)module | Starts checking if the SB is shifted |
(module
(function_definition
(function_name__eval_variables) function_name__eval_variables
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(identifier_listitems) identifier_listitems
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__variables) identifier__variables
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__variables) identifier__variables
)attribute
(identifier_k) identifier_k
)subscript
(conditional_expression
(call
(identifier_v) identifier_v
(argument_list
)argument_list
)call
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_v) identifier_v
(string_'__call__') string_'__call__'
)argument_list
)call
(identifier_v) identifier_v
)conditional_expression
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | evaluates callable _variables |
(module
(function_definition
(function_name_post_ticket) function_name_post_ticket
(parameters
(identifier_self) identifier_self
(identifier_title) identifier_title
(identifier_body) identifier_body
)parameters
(block
(expression_statement
(assignment
(identifier_ticket) identifier_ticket
(dictionary
(pair
(string_'subject') string_'subject'
(identifier_title) identifier_title
)pair
(pair
(string_'message') string_'message'
(identifier_body) identifier_body
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(subscript
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_post) identifier_post
)attribute
(argument_list
(string_"/api/v1/tickets.json") string_"/api/v1/tickets.json"
(dictionary
(pair
(string_'email') string_'email'
(attribute
(identifier_self) identifier_self
(identifier_email) identifier_email
)attribute
)pair
(pair
(string_'ticket') string_'ticket'
(identifier_ticket) identifier_ticket
)pair
)dictionary
)argument_list
)call
(string_'ticket') string_'ticket'
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_bot) identifier_bot
(identifier_info) identifier_info
)attribute
(argument_list
(subscript
(identifier_response) identifier_response
(string_'url') string_'url'
)subscript
)argument_list
)call
)expression_statement
)block
)function_definition
)module | post_ticket will post a ticket to the uservoice helpdesk
Parameters
==========
title: the title (subject) of the issue
body: the message to send |
(module
(function_definition
(function_name_enable) function_name_enable
(parameters
(identifier_self) identifier_self
(identifier_size) identifier_size
(default_parameter
(identifier_block_size) identifier_block_size
(None) None
)default_parameter
(default_parameter
(identifier_store) identifier_store
(None) None
)default_parameter
(default_parameter
(identifier_store_sync_interval) identifier_store_sync_interval
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__set) identifier__set
)attribute
(argument_list
(string_'queue') string_'queue'
(identifier_size) identifier_size
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__set) identifier__set
)attribute
(argument_list
(string_'queue-blocksize') string_'queue-blocksize'
(identifier_block_size) identifier_block_size
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__set) identifier__set
)attribute
(argument_list
(string_'queue-store') string_'queue-store'
(identifier_store) identifier_store
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__set) identifier__set
)attribute
(argument_list
(string_'queue-store-sync') string_'queue-store-sync'
(identifier_store_sync_interval) identifier_store_sync_interval
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__section) identifier__section
)attribute
)return_statement
)block
)function_definition
)module | Enables shared queue of the given size.
:param int size: Queue size.
:param int block_size: Block size in bytes. Default: 8 KiB.
:param str|unicode store: Persist the queue into file.
:param int store_sync_interval: Store sync interval in master cycles (usually seconds). |
(module
(function_definition
(function_name_cross_variance) function_name_cross_variance
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
(identifier_z) identifier_z
(identifier_sigmas_f) identifier_sigmas_f
(identifier_sigmas_h) identifier_sigmas_h
)parameters
(block
(expression_statement
(assignment
(identifier_Pxz) identifier_Pxz
(call
(identifier_zeros) identifier_zeros
(argument_list
(tuple
(subscript
(attribute
(identifier_sigmas_f) identifier_sigmas_f
(identifier_shape) identifier_shape
)attribute
(integer_1) integer_1
)subscript
(subscript
(attribute
(identifier_sigmas_h) identifier_sigmas_h
(identifier_shape) identifier_shape
)attribute
(integer_1) integer_1
)subscript
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_N) identifier_N
(subscript
(attribute
(identifier_sigmas_f) identifier_sigmas_f
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(identifier_N) identifier_N
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_dx) identifier_dx
(call
(attribute
(identifier_self) identifier_self
(identifier_residual_x) identifier_residual_x
)attribute
(argument_list
(subscript
(identifier_sigmas_f) identifier_sigmas_f
(identifier_i) identifier_i
)subscript
(identifier_x) identifier_x
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dz) identifier_dz
(call
(attribute
(identifier_self) identifier_self
(identifier_residual_z) identifier_residual_z
)attribute
(argument_list
(subscript
(identifier_sigmas_h) identifier_sigmas_h
(identifier_i) identifier_i
)subscript
(identifier_z) identifier_z
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_Pxz) identifier_Pxz
(binary_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_Wc) identifier_Wc
)attribute
(identifier_i) identifier_i
)subscript
(call
(identifier_outer) identifier_outer
(argument_list
(identifier_dx) identifier_dx
(identifier_dz) identifier_dz
)argument_list
)call
)binary_operator
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_Pxz) identifier_Pxz
)return_statement
)block
)function_definition
)module | Compute cross variance of the state `x` and measurement `z`. |
(module
(function_definition
(function_name_rot13_app) function_name_rot13_app
(parameters
(identifier_parser) identifier_parser
(identifier_cmd) identifier_cmd
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'value') string_'value'
(keyword_argument
(identifier_help) identifier_help
(string_'the value to rot13, read from stdin if omitted') string_'the value to rot13, read from stdin if omitted'
)keyword_argument
(keyword_argument
(identifier_nargs) identifier_nargs
(string_'?') string_'?'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(attribute
(identifier_parser) identifier_parser
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_rot13) identifier_rot13
(argument_list
(call
(attribute
(attribute
(identifier_pwnypack) identifier_pwnypack
(identifier_main) identifier_main
)attribute
(identifier_string_value_or_stdin) identifier_string_value_or_stdin
)attribute
(argument_list
(attribute
(identifier_args) identifier_args
(identifier_value) identifier_value
)attribute
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | rot13 encrypt a value. |
(module
(function_definition
(function_name_authorize_client_credentials) function_name_authorize_client_credentials
(parameters
(identifier_self) identifier_self
(identifier_client_id) identifier_client_id
(default_parameter
(identifier_client_secret) identifier_client_secret
(None) None
)default_parameter
(default_parameter
(identifier_scope) identifier_scope
(string_"private_agent") string_"private_agent"
)default_parameter
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_auth_data) identifier_auth_data
)attribute
(dictionary
(pair
(string_"grant_type") string_"grant_type"
(string_"client_credentials") string_"client_credentials"
)pair
(pair
(string_"scope") string_"scope"
(list
(identifier_scope) identifier_scope
)list
)pair
(pair
(string_"client_id") string_"client_id"
(identifier_client_id) identifier_client_id
)pair
(pair
(string_"client_secret") string_"client_secret"
(identifier_client_secret) identifier_client_secret
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__do_authorize) identifier__do_authorize
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Authorize to platform with client credentials
This should be used if you posses client_id/client_secret pair
generated by platform. |
(module
(function_definition
(function_name__findLocation) function_name__findLocation
(parameters
(identifier_self) identifier_self
(identifier_reference_name) identifier_reference_name
(identifier_start) identifier_start
(identifier_end) identifier_end
)parameters
(block
(try_statement
(block
(return_statement
(subscript
(subscript
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier__locationMap) identifier__locationMap
)attribute
(string_'hg19') string_'hg19'
)subscript
(identifier_reference_name) identifier_reference_name
)subscript
(identifier_start) identifier_start
)subscript
(identifier_end) identifier_end
)subscript
)return_statement
)block
(except_clause
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | return a location key form the locationMap |
(module
(function_definition
(function_name_fermion_avg) function_name_fermion_avg
(parameters
(identifier_efermi) identifier_efermi
(identifier_norm_hopping) identifier_norm_hopping
(identifier_func) identifier_func
)parameters
(block
(if_statement
(comparison_operator
(identifier_func) identifier_func
(string_'ekin') string_'ekin'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_func) identifier_func
(identifier_bethe_ekin_zeroT) identifier_bethe_ekin_zeroT
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_func) identifier_func
(string_'ocupation') string_'ocupation'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_func) identifier_func
(identifier_bethe_filling_zeroT) identifier_bethe_filling_zeroT
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(list_comprehension
(call
(identifier_func) identifier_func
(argument_list
(identifier_ef) identifier_ef
(identifier_tz) identifier_tz
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_ef) identifier_ef
(identifier_tz) identifier_tz
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_efermi) identifier_efermi
(identifier_norm_hopping) identifier_norm_hopping
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | calcules for every slave it's average over the desired observable |
(module
(function_definition
(function_name_connect) function_name_connect
(parameters
(identifier_uri) identifier_uri
(default_parameter
(identifier_factory) identifier_factory
(attribute
(identifier_pymongo) identifier_pymongo
(identifier_MongoClient) identifier_MongoClient
)attribute
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(string_"do not use. Just call MongoClient directly.") string_"do not use. Just call MongoClient directly."
(identifier_DeprecationWarning) identifier_DeprecationWarning
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_factory) identifier_factory
(argument_list
(identifier_uri) identifier_uri
)argument_list
)call
)return_statement
)block
)function_definition
)module | Use the factory to establish a connection to uri. |
(module
(function_definition
(function_name_bandwidth) function_name_bandwidth
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_abs) identifier_abs
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_diff) identifier_diff
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_pairs) identifier_pairs
)attribute
(argument_list
)argument_list
)call
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)argument_list
)call
(identifier_max) identifier_max
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Computes the 'bandwidth' of a graph. |
(module
(function_definition
(function_name_getFileName) function_name_getFileName
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_suffix) identifier_suffix
(None) None
)default_parameter
(default_parameter
(identifier_extension) identifier_extension
(string_"jar") string_"jar"
)default_parameter
)parameters
(block
(assert_statement
(parenthesized_expression
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__artifactId) identifier__artifactId
)attribute
(None) None
)comparison_operator
)parenthesized_expression
)assert_statement
(assert_statement
(parenthesized_expression
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__version) identifier__version
)attribute
(None) None
)comparison_operator
)parenthesized_expression
)assert_statement
(return_statement
(call
(attribute
(string_"{0}-{1}{2}{3}") string_"{0}-{1}{2}{3}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__artifactId) identifier__artifactId
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__version) identifier__version
)attribute
(identifier_getRawString) identifier_getRawString
)attribute
(argument_list
)argument_list
)call
(conditional_expression
(binary_operator
(string_"-") string_"-"
(call
(attribute
(identifier_suffix) identifier_suffix
(identifier_lstrip) identifier_lstrip
)attribute
(argument_list
(string_"-") string_"-"
)argument_list
)call
)binary_operator
(comparison_operator
(identifier_suffix) identifier_suffix
(None) None
)comparison_operator
(string_"") string_""
)conditional_expression
(conditional_expression
(binary_operator
(string_".") string_"."
(call
(attribute
(identifier_extension) identifier_extension
(identifier_lstrip) identifier_lstrip
)attribute
(argument_list
(string_".") string_"."
)argument_list
)call
)binary_operator
(comparison_operator
(identifier_extension) identifier_extension
(None) None
)comparison_operator
(string_"") string_""
)conditional_expression
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the basename of the artifact's file, using Maven's conventions.
In particular, it will be:
<artifactId>-<version>[-<suffix>][.<extension>] |
(module
(function_definition
(function_name_responderForName) function_name_responderForName
(parameters
(identifier_self) identifier_self
(identifier_instance) identifier_instance
(identifier_commandName) identifier_commandName
)parameters
(block
(expression_statement
(assignment
(identifier_method) identifier_method
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier__AMPExposer) identifier__AMPExposer
(identifier_self) identifier_self
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_instance) identifier_instance
(identifier_commandName) identifier_commandName
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_method) identifier_method
)return_statement
)block
)function_definition
)module | When resolving a command to a method from the wire, the information
available is the command's name; look up a command.
@param instance: an instance of a class who has methods exposed via
this exposer's L{_AMPExposer.expose} method.
@param commandName: the C{commandName} attribute of a L{Command}
exposed on the given instance.
@return: a bound method with a C{command} attribute. |
(module
(function_definition
(function_name__one_diagonal_capture_square) function_name__one_diagonal_capture_square
(parameters
(identifier_self) identifier_self
(identifier_capture_square) identifier_capture_square
(identifier_position) identifier_position
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_contains_opposite_color_piece) identifier_contains_opposite_color_piece
)attribute
(argument_list
(identifier_capture_square) identifier_capture_square
(identifier_position) identifier_position
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_would_move_be_promotion) identifier_would_move_be_promotion
)attribute
(argument_list
)argument_list
)call
(block
(for_statement
(identifier_move) identifier_move
(call
(attribute
(identifier_self) identifier_self
(identifier_create_promotion_moves) identifier_create_promotion_moves
)attribute
(argument_list
(keyword_argument
(identifier_status) identifier_status
(attribute
(identifier_notation_const) identifier_notation_const
(identifier_CAPTURE_AND_PROMOTE) identifier_CAPTURE_AND_PROMOTE
)attribute
)keyword_argument
(keyword_argument
(identifier_location) identifier_location
(identifier_capture_square) identifier_capture_square
)keyword_argument
)argument_list
)call
(block
(expression_statement
(yield
(identifier_move) identifier_move
)yield
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier_create_move) identifier_create_move
)attribute
(argument_list
(keyword_argument
(identifier_end_loc) identifier_end_loc
(identifier_capture_square) identifier_capture_square
)keyword_argument
(keyword_argument
(identifier_status) identifier_status
(attribute
(identifier_notation_const) identifier_notation_const
(identifier_CAPTURE) identifier_CAPTURE
)attribute
)keyword_argument
)argument_list
)call
)yield
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)function_definition
)module | Adds specified diagonal as a capture move if it is one |
(module
(function_definition
(function_name_acgt_match) function_name_acgt_match
(parameters
(identifier_string) identifier_string
)parameters
(block
(expression_statement
(assignment
(identifier_search) identifier_search
(attribute
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(string_r'[^ACGT]') string_r'[^ACGT]'
)argument_list
)call
(identifier_search) identifier_search
)attribute
)assignment
)expression_statement
(return_statement
(not_operator
(call
(identifier_bool) identifier_bool
(argument_list
(call
(identifier_search) identifier_search
(argument_list
(identifier_string) identifier_string
)argument_list
)call
)argument_list
)call
)not_operator
)return_statement
)block
)function_definition
)module | returns True if sting consist of only "A "C" "G" "T" |
(module
(function_definition
(function_name_delete_organization) function_name_delete_organization
(parameters
(identifier_session) identifier_session
(identifier_organization) identifier_organization
)parameters
(block
(expression_statement
(assignment
(identifier_last_modified) identifier_last_modified
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_utcnow) identifier_utcnow
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_enrollment) identifier_enrollment
(attribute
(identifier_organization) identifier_organization
(identifier_enrollments) identifier_enrollments
)attribute
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_enrollment) identifier_enrollment
(identifier_uidentity) identifier_uidentity
)attribute
(identifier_last_modified) identifier_last_modified
)attribute
(identifier_last_modified) identifier_last_modified
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_delete) identifier_delete
)attribute
(argument_list
(identifier_organization) identifier_organization
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Remove an organization from the session.
Function that removes from the session the organization
given in `organization`. Data related such as domains
or enrollments are also removed.
:param session: database session
:param organization: organization to remove |
(module
(function_definition
(function_name_classify_single_recording) function_name_classify_single_recording
(parameters
(identifier_raw_data_json) identifier_raw_data_json
(identifier_model_folder) identifier_model_folder
(default_parameter
(identifier_verbose) identifier_verbose
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_evaluation_file) identifier_evaluation_file
(call
(identifier_evaluate_model) identifier_evaluate_model
(argument_list
(identifier_raw_data_json) identifier_raw_data_json
(identifier_model_folder) identifier_model_folder
(identifier_verbose) identifier_verbose
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_model_folder) identifier_model_folder
(string_"info.yml") string_"info.yml"
)argument_list
)call
)argument_list
)call
(as_pattern_target
(identifier_ymlfile) identifier_ymlfile
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_model_description) identifier_model_description
(call
(attribute
(identifier_yaml) identifier_yaml
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_ymlfile) identifier_ymlfile
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_index2latex) identifier_index2latex
(call
(identifier_get_index2latex) identifier_get_index2latex
(argument_list
(identifier_model_description) identifier_model_description
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_evaluation_file) identifier_evaluation_file
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_probabilities) identifier_probabilities
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_probabilities) identifier_probabilities
(call
(identifier_map) identifier_map
(argument_list
(identifier_float) identifier_float
(call
(attribute
(identifier_probabilities) identifier_probabilities
(identifier_split) identifier_split
)attribute
(argument_list
(string_" ") string_" "
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_index) identifier_index
(identifier_probability) identifier_probability
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_probabilities) identifier_probabilities
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_results) identifier_results
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(subscript
(identifier_index2latex) identifier_index2latex
(identifier_index) identifier_index
)subscript
(identifier_probability) identifier_probability
)tuple
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_results) identifier_results
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_n) identifier_n
)lambda_parameters
(subscript
(identifier_n) identifier_n
(integer_1) integer_1
)subscript
)lambda
)keyword_argument
(keyword_argument
(identifier_reverse) identifier_reverse
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_results) identifier_results
)return_statement
)block
)function_definition
)module | Get the classification as a list of tuples. The first value is the LaTeX
code, the second value is the probability. |
(module
(function_definition
(function_name_getScriptLocation) function_name_getScriptLocation
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_location) identifier_location
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(string_"./") string_"./"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier___file__) identifier___file__
(identifier_rfind) identifier_rfind
)attribute
(argument_list
(string_"/") string_"/"
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(expression_statement
(assignment
(identifier_location) identifier_location
(subscript
(identifier___file__) identifier___file__
(slice
(colon) colon
(call
(attribute
(identifier___file__) identifier___file__
(identifier_rfind) identifier_rfind
)attribute
(argument_list
(string_"/") string_"/"
)argument_list
)call
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_location) identifier_location
)return_statement
)block
)function_definition
)module | Helper function to get the location of a Python file. |
(module
(function_definition
(function_name_combine_keys) function_name_combine_keys
(parameters
(typed_parameter
(identifier_pks) identifier_pks
(type
(generic_type
(identifier_Iterable) identifier_Iterable
(type_parameter
(type
(identifier_Ed25519PublicPoint) identifier_Ed25519PublicPoint
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(identifier_Ed25519PublicPoint) identifier_Ed25519PublicPoint
)type
(block
(expression_statement
(assignment
(identifier_P) identifier_P
(list_comprehension
(call
(attribute
(identifier__ed25519) identifier__ed25519
(identifier_decodepoint) identifier_decodepoint
)attribute
(argument_list
(identifier_pk) identifier_pk
)argument_list
)call
(for_in_clause
(identifier_pk) identifier_pk
(identifier_pks) identifier_pks
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_combine) identifier_combine
(call
(identifier_reduce) identifier_reduce
(argument_list
(attribute
(identifier__ed25519) identifier__ed25519
(identifier_edwards_add) identifier_edwards_add
)attribute
(identifier_P) identifier_P
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_Ed25519PublicPoint) identifier_Ed25519PublicPoint
(argument_list
(call
(attribute
(identifier__ed25519) identifier__ed25519
(identifier_encodepoint) identifier_encodepoint
)attribute
(argument_list
(identifier_combine) identifier_combine
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Combine a list of Ed25519 points into a "global" CoSi key. |
(module
(function_definition
(function_name_write_path) function_name_write_path
(parameters
(identifier_self) identifier_self
(identifier_path_value) identifier_path_value
)parameters
(block
(expression_statement
(assignment
(identifier_parent_dir) identifier_parent_dir
(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
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(identifier_parent_dir) identifier_parent_dir
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_OSError) identifier_OSError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
(string_"w") string_"w"
)argument_list
)call
(as_pattern_target
(identifier_fph) identifier_fph
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_fph) identifier_fph
(identifier_write) identifier_write
)attribute
(argument_list
(attribute
(identifier_path_value) identifier_path_value
(identifier_value) identifier_value
)attribute
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | this will overwrite dst path - be careful |
(module
(function_definition
(function_name_get_environ) function_name_get_environ
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
(default_parameter
(identifier_cast) identifier_cast
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(attribute
(identifier_key) identifier_key
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
(identifier_default) identifier_default
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_data) identifier_data
(block
(if_statement
(comparison_operator
(identifier_cast) identifier_cast
(identifier_converters) identifier_converters
)comparison_operator
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(call
(attribute
(identifier_converters) identifier_converters
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_cast) identifier_cast
)argument_list
)call
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_cast) identifier_cast
(True) True
)comparison_operator
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(identifier_parse_conf_data) identifier_parse_conf_data
(argument_list
(identifier_data) identifier_data
(keyword_argument
(identifier_tomlfy) identifier_tomlfy
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)function_definition
)module | Get value from environment variable using os.environ.get
:param key: The name of the setting value, will always be upper case
:param default: In case of not found it will be returned
:param cast: Should cast in to @int, @float, @bool or @json ?
or cast must be true to use cast inference
:return: The value if found, default or None |
(module
(function_definition
(function_name__add_res) function_name__add_res
(parameters
(identifier_line) identifier_line
)parameters
(block
(global_statement
(identifier_resource) identifier_resource
)global_statement
(expression_statement
(assignment
(identifier_fields) identifier_fields
(call
(attribute
(call
(attribute
(identifier_line) identifier_line
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_resource) identifier_resource
(block
(expression_statement
(call
(attribute
(identifier_ret) identifier_ret
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_resource) identifier_resource
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_resource) identifier_resource
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_resource) identifier_resource
(string_"resource name") string_"resource name"
)subscript
(subscript
(identifier_fields) identifier_fields
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_resource) identifier_resource
(string_"local role") string_"local role"
)subscript
(subscript
(call
(attribute
(subscript
(identifier_fields) identifier_fields
(integer_1) integer_1
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
(string_":") string_":"
)argument_list
)call
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_resource) identifier_resource
(string_"local volumes") string_"local volumes"
)subscript
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_resource) identifier_resource
(string_"peer nodes") string_"peer nodes"
)subscript
(list
)list
)assignment
)expression_statement
)block
)function_definition
)module | Analyse the line of local resource of ``drbdadm status`` |
(module
(function_definition
(function_name_get_projected_fields) function_name_get_projected_fields
(parameters
(identifier_self) identifier_self
(identifier_req) identifier_req
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_req) identifier_req
(string_'args') string_'args'
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_',') string_','
(identifier_join) identifier_join
)attribute
(argument_list
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(call
(attribute
(identifier_args) identifier_args
(identifier_get) identifier_get
)attribute
(argument_list
(string_'projections') string_'projections'
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
(except_clause
(tuple
(identifier_AttributeError) identifier_AttributeError
(identifier_TypeError) identifier_TypeError
)tuple
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Returns the projected fields from request. |
(module
(function_definition
(function_name_decode_json) function_name_decode_json
(parameters
(identifier_cls) identifier_cls
(identifier_dct) identifier_dct
)parameters
(block
(if_statement
(not_operator
(parenthesized_expression
(boolean_operator
(comparison_operator
(string_'event_name') string_'event_name'
(identifier_dct) identifier_dct
)comparison_operator
(comparison_operator
(string_'event_values') string_'event_values'
(identifier_dct) identifier_dct
)comparison_operator
)boolean_operator
)parenthesized_expression
)not_operator
(block
(return_statement
(identifier_dct) identifier_dct
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_event_name) identifier_event_name
(subscript
(identifier_dct) identifier_dct
(string_'event_name') string_'event_name'
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_event_name) identifier_event_name
(identifier__CONCRETE_EVENT_CLASSES) identifier__CONCRETE_EVENT_CLASSES
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"Could not find appropriate Event class for event_name: %r") string_"Could not find appropriate Event class for event_name: %r"
(identifier_event_name) identifier_event_name
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_event_values) identifier_event_values
(subscript
(identifier_dct) identifier_dct
(string_'event_values') string_'event_values'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_model_id) identifier_model_id
(call
(attribute
(identifier_event_values) identifier_event_values
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'model_id') string_'model_id'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_event) identifier_event
(call
(subscript
(identifier__CONCRETE_EVENT_CLASSES) identifier__CONCRETE_EVENT_CLASSES
(identifier_event_name) identifier_event_name
)subscript
(argument_list
(keyword_argument
(identifier_model) identifier_model
(None) None
)keyword_argument
(dictionary_splat
(identifier_event_values) identifier_event_values
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_event) identifier_event
(identifier__model_id) identifier__model_id
)attribute
(identifier_model_id) identifier_model_id
)assignment
)expression_statement
(return_statement
(identifier_event) identifier_event
)return_statement
)block
)function_definition
)module | Custom JSON decoder for Events.
Can be used as the ``object_hook`` argument of ``json.load`` or
``json.loads``.
Args:
dct (dict) : a JSON dictionary to decode
The dictionary should have keys ``event_name`` and ``event_values``
Raises:
ValueError, if the event_name is unknown
Examples:
.. code-block:: python
>>> import json
>>> from bokeh.events import Event
>>> data = '{"event_name": "pan", "event_values" : {"model_id": 1, "x": 10, "y": 20, "sx": 200, "sy": 37}}'
>>> json.loads(data, object_hook=Event.decode_json)
<bokeh.events.Pan object at 0x1040f84a8> |
(module
(function_definition
(function_name__ordered_node_addrs) function_name__ordered_node_addrs
(parameters
(identifier_self) identifier_self
(identifier_function_address) identifier_function_address
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_function) identifier_function
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_kb) identifier_kb
)attribute
(identifier_functions) identifier_functions
)attribute
(identifier_function_address) identifier_function_address
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(return_statement
(list
)list
)return_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(identifier_function_address) identifier_function_address
(attribute
(identifier_self) identifier_self
(identifier__function_node_addrs) identifier__function_node_addrs
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_sorted_nodes) identifier_sorted_nodes
(call
(attribute
(identifier_CFGUtils) identifier_CFGUtils
(identifier_quasi_topological_sort_nodes) identifier_quasi_topological_sort_nodes
)attribute
(argument_list
(attribute
(identifier_function) identifier_function
(identifier_graph) identifier_graph
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__function_node_addrs) identifier__function_node_addrs
)attribute
(identifier_function_address) identifier_function_address
)subscript
(list_comprehension
(attribute
(identifier_n) identifier_n
(identifier_addr) identifier_addr
)attribute
(for_in_clause
(identifier_n) identifier_n
(identifier_sorted_nodes) identifier_sorted_nodes
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__function_node_addrs) identifier__function_node_addrs
)attribute
(identifier_function_address) identifier_function_address
)subscript
)return_statement
)block
)function_definition
)module | For a given function, return all nodes in an optimal traversal order. If the function does not exist, return an
empty list.
:param int function_address: Address of the function.
:return: A ordered list of the nodes.
:rtype: list |
(module
(function_definition
(function_name_payload_register) function_name_payload_register
(parameters
(identifier_ptype) identifier_ptype
(identifier_klass) identifier_klass
(identifier_pid) identifier_pid
)parameters
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(list
(string_'payload-register') string_'payload-register'
)list
)assignment
)expression_statement
(for_statement
(identifier_x) identifier_x
(list
(identifier_ptype) identifier_ptype
(identifier_klass) identifier_klass
(identifier_pid) identifier_pid
)list
(block
(expression_statement
(call
(attribute
(identifier_cmd) identifier_cmd
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_call) identifier_check_call
)attribute
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
)expression_statement
)block
)function_definition
)module | is used while a hook is running to let Juju know that a
payload has been started. |
(module
(function_definition
(function_name_format_response) function_name_format_response
(parameters
(identifier_self) identifier_self
(identifier_response) identifier_response
)parameters
(block
(expression_statement
(assignment
(identifier_conversion) identifier_conversion
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_shell_ctx) identifier_shell_ctx
)attribute
(identifier_config) identifier_config
)attribute
(identifier_BOOLEAN_STATES) identifier_BOOLEAN_STATES
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_response) identifier_response
(identifier_conversion) identifier_conversion
)comparison_operator
(block
(if_statement
(subscript
(identifier_conversion) identifier_conversion
(identifier_response) identifier_response
)subscript
(block
(return_statement
(string_'yes') string_'yes'
)return_statement
)block
)if_statement
(return_statement
(string_'no') string_'no'
)return_statement
)block
)if_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Invalid response: input should equate to true or false') string_'Invalid response: input should equate to true or false'
)argument_list
)call
)raise_statement
)block
)function_definition
)module | formats a response in a binary |
(module
(function_definition
(function_name_asyncStarCmap) function_name_asyncStarCmap
(parameters
(identifier_asyncCallable) identifier_asyncCallable
(identifier_iterable) identifier_iterable
)parameters
(block
(expression_statement
(assignment
(identifier_results) identifier_results
(list
)list
)assignment
)expression_statement
(expression_statement
(yield
(call
(identifier_coopStar) identifier_coopStar
(argument_list
(identifier_asyncCallable) identifier_asyncCallable
(attribute
(identifier_results) identifier_results
(identifier_append) identifier_append
)attribute
(identifier_iterable) identifier_iterable
)argument_list
)call
)yield
)expression_statement
(expression_statement
(call
(identifier_returnValue) identifier_returnValue
(argument_list
(identifier_results) identifier_results
)argument_list
)call
)expression_statement
)block
)function_definition
)module | itertools.starmap for deferred callables using cooperative multitasking |
(module
(function_definition
(function_name__Comparator) function_name__Comparator
(parameters
(identifier_self) identifier_self
(identifier_operator) identifier_operator
)parameters
(block
(if_statement
(comparison_operator
(identifier_operator) identifier_operator
(string_"=") string_"="
)comparison_operator
(block
(return_statement
(lambda
(lambda_parameters
(identifier_x) identifier_x
(identifier_y) identifier_y
)lambda_parameters
(comparison_operator
(identifier_x) identifier_x
(identifier_y) identifier_y
)comparison_operator
)lambda
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_operator) identifier_operator
(string_">=") string_">="
)comparison_operator
(block
(return_statement
(lambda
(lambda_parameters
(identifier_x) identifier_x
(identifier_y) identifier_y
)lambda_parameters
(comparison_operator
(identifier_x) identifier_x
(identifier_y) identifier_y
)comparison_operator
)lambda
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_operator) identifier_operator
(string_">") string_">"
)comparison_operator
(block
(return_statement
(lambda
(lambda_parameters
(identifier_x) identifier_x
(identifier_y) identifier_y
)lambda_parameters
(comparison_operator
(identifier_x) identifier_x
(identifier_y) identifier_y
)comparison_operator
)lambda
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_operator) identifier_operator
(string_"<=") string_"<="
)comparison_operator
(block
(return_statement
(lambda
(lambda_parameters
(identifier_x) identifier_x
(identifier_y) identifier_y
)lambda_parameters
(comparison_operator
(identifier_x) identifier_x
(identifier_y) identifier_y
)comparison_operator
)lambda
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_operator) identifier_operator
(string_"<") string_"<"
)comparison_operator
(block
(return_statement
(lambda
(lambda_parameters
(identifier_x) identifier_x
(identifier_y) identifier_y
)lambda_parameters
(comparison_operator
(identifier_x) identifier_x
(identifier_y) identifier_y
)comparison_operator
)lambda
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_operator) identifier_operator
(string_"!") string_"!"
)comparison_operator
(block
(return_statement
(lambda
(lambda_parameters
(identifier_x) identifier_x
(identifier_y) identifier_y
)lambda_parameters
(comparison_operator
(identifier_x) identifier_x
(identifier_y) identifier_y
)comparison_operator
)lambda
)return_statement
)block
)elif_clause
)if_statement
(raise_statement
(call
(identifier_DefinitionError) identifier_DefinitionError
(argument_list
(binary_operator
(string_"Invalid comparison operator %s") string_"Invalid comparison operator %s"
(identifier_operator) identifier_operator
)binary_operator
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Generate lambdas for uid and gid comparison. |
(module
(function_definition
(function_name_wr_xlsx) function_name_wr_xlsx
(parameters
(identifier_self) identifier_self
(identifier_fout_xlsx) identifier_fout_xlsx
(identifier_goea_results) identifier_goea_results
(dictionary_splat_pattern
(identifier_kws) identifier_kws
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_objprt) identifier_objprt
(call
(identifier_PrtFmt) identifier_PrtFmt
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prt_flds) identifier_prt_flds
(call
(attribute
(identifier_kws) identifier_kws
(identifier_get) identifier_get
)attribute
(argument_list
(string_'prt_flds') string_'prt_flds'
(call
(attribute
(identifier_self) identifier_self
(identifier_get_prtflds_default) identifier_get_prtflds_default
)attribute
(argument_list
(identifier_goea_results) identifier_goea_results
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_xlsx_data) identifier_xlsx_data
(call
(attribute
(call
(identifier_MgrNtGOEAs) identifier_MgrNtGOEAs
(argument_list
(identifier_goea_results) identifier_goea_results
)argument_list
)call
(identifier_get_goea_nts_prt) identifier_get_goea_nts_prt
)attribute
(argument_list
(identifier_prt_flds) identifier_prt_flds
(dictionary_splat
(identifier_kws) identifier_kws
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'fld2col_widths') string_'fld2col_widths'
(identifier_kws) identifier_kws
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_kws) identifier_kws
(string_'fld2col_widths') string_'fld2col_widths'
)subscript
(dictionary_comprehension
(pair
(identifier_f) identifier_f
(call
(attribute
(attribute
(identifier_objprt) identifier_objprt
(identifier_default_fld2col_widths) identifier_default_fld2col_widths
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_f) identifier_f
(integer_8) integer_8
)argument_list
)call
)pair
(for_in_clause
(identifier_f) identifier_f
(identifier_prt_flds) identifier_prt_flds
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_RPT) identifier_RPT
(identifier_wr_xlsx) identifier_wr_xlsx
)attribute
(argument_list
(identifier_fout_xlsx) identifier_fout_xlsx
(identifier_xlsx_data) identifier_xlsx_data
(dictionary_splat
(identifier_kws) identifier_kws
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Write a xlsx file. |
(module
(function_definition
(function_name__attach_fields) function_name__attach_fields
(parameters
(identifier_obj) identifier_obj
)parameters
(block
(for_statement
(identifier_attr) identifier_attr
(attribute
(identifier_base_fields) identifier_base_fields
(identifier___all__) identifier___all__
)attribute
(block
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_obj) identifier_obj
(identifier_attr) identifier_attr
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_obj) identifier_obj
(identifier_attr) identifier_attr
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_base_fields) identifier_base_fields
(identifier_attr) identifier_attr
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(for_statement
(identifier_attr) identifier_attr
(attribute
(identifier_fields) identifier_fields
(identifier___all__) identifier___all__
)attribute
(block
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_obj) identifier_obj
(identifier_attr) identifier_attr
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_fields) identifier_fields
(identifier_attr) identifier_attr
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Attach all the marshmallow fields classes to ``obj``, including
Flask-Marshmallow's custom fields. |
(module
(function_definition
(function_name_cipher) function_name_cipher
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_cipher) identifier_cipher
(call
(identifier_Cipher) identifier_Cipher
(argument_list
(list_splat
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_mode) identifier_mode
)attribute
(argument_list
)argument_list
)call
(identifier_aes_args) identifier_aes_args
)attribute
(argument_list
)argument_list
)call
)list_splat
(dictionary_splat
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_mode) identifier_mode
)attribute
(argument_list
)argument_list
)call
(identifier_aes_kwargs) identifier_aes_kwargs
)attribute
(argument_list
)argument_list
)call
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_WAES) identifier_WAES
(identifier_WAESCipher) identifier_WAESCipher
)attribute
(argument_list
(identifier_cipher) identifier_cipher
)argument_list
)call
)return_statement
)block
)function_definition
)module | Generate AES-cipher
:return: Crypto.Cipher.AES.AESCipher |
(module
(function_definition
(function_name_get_object_or_none) function_name_get_object_or_none
(parameters
(identifier_model) identifier_model
(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
(attribute
(identifier_model) identifier_model
(identifier__default_manager) identifier__default_manager
)attribute
(identifier_get) identifier_get
)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
(attribute
(identifier_model) identifier_model
(identifier_DoesNotExist) identifier_DoesNotExist
)attribute
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Like get_object_or_404, but doesn't throw an exception.
Allows querying for an object that might not exist without triggering
an exception. |
(module
(function_definition
(function_name_date) function_name_date
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_year) identifier_year
(type
(identifier_Number) identifier_Number
)type
)typed_parameter
(typed_parameter
(identifier_month) identifier_month
(type
(identifier_Number) identifier_Number
)type
)typed_parameter
(typed_parameter
(identifier_day) identifier_day
(type
(identifier_Number) identifier_Number
)type
)typed_parameter
)parameters
(type
(identifier_Date) identifier_Date
)type
(block
(return_statement
(call
(identifier_Date) identifier_Date
(argument_list
(identifier_year) identifier_year
(identifier_month) identifier_month
(identifier_day) identifier_day
)argument_list
)call
)return_statement
)block
)function_definition
)module | Takes three numbers and returns a ``Date`` object whose year, month, and day are the three
numbers in that order. |
(module
(function_definition
(function_name_workflow_states_column) function_name_workflow_states_column
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(expression_statement
(assignment
(identifier_workflow_states) identifier_workflow_states
(call
(attribute
(attribute
(attribute
(identifier_models) identifier_models
(identifier_WorkflowState) identifier_WorkflowState
)attribute
(identifier_objects) identifier_objects
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(keyword_argument
(identifier_content_type) identifier_content_type
(call
(attribute
(identifier_self) identifier_self
(identifier__get_obj_ct) identifier__get_obj_ct
)attribute
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_object_id) identifier_object_id
(attribute
(identifier_obj) identifier_obj
(identifier_pk) identifier_pk
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_', ') string_', '
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(identifier_unicode) identifier_unicode
(argument_list
(identifier_wfs) identifier_wfs
)argument_list
)call
(for_in_clause
(identifier_wfs) identifier_wfs
(identifier_workflow_states) identifier_workflow_states
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return text description of workflow states assigned to object |
(module
(function_definition
(function_name_project_create) function_name_project_create
(parameters
(default_parameter
(identifier_auth) identifier_auth
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_cloud) identifier_cloud
(call
(identifier_get_openstack_cloud) identifier_get_openstack_cloud
(argument_list
(identifier_auth) identifier_auth
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(call
(identifier__clean_kwargs) identifier__clean_kwargs
(argument_list
(keyword_argument
(identifier_keep_name) identifier_keep_name
(True) True
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_cloud) identifier_cloud
(identifier_create_project) identifier_create_project
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a project
CLI Example:
.. code-block:: bash
salt '*' keystoneng.project_create name=project1
salt '*' keystoneng.project_create name=project2 domain_id=b62e76fbeeff4e8fb77073f591cf211e
salt '*' keystoneng.project_create name=project3 enabled=False description='my project3' |
(module
(function_definition
(function_name_is_symmetric) function_name_is_symmetric
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_symprec) identifier_symprec
(float_0.1) float_0.1
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_sg) identifier_sg
(call
(identifier_SpacegroupAnalyzer) identifier_SpacegroupAnalyzer
(argument_list
(identifier_self) identifier_self
(keyword_argument
(identifier_symprec) identifier_symprec
(identifier_symprec) identifier_symprec
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_sg) identifier_sg
(identifier_is_laue) identifier_is_laue
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Checks if slab is symmetric, i.e., contains inversion symmetry.
Args:
symprec (float): Symmetry precision used for SpaceGroup analyzer.
Returns:
(bool) Whether slab contains inversion symmetry. |
(module
(function_definition
(function_name_TimeField) function_name_TimeField
(parameters
(default_parameter
(identifier_formatter) identifier_formatter
(attribute
(identifier_types) identifier_types
(identifier_DEFAULT_TIME_FORMAT) identifier_DEFAULT_TIME_FORMAT
)attribute
)default_parameter
(default_parameter
(identifier_default) identifier_default
(identifier_NOTHING) identifier_NOTHING
)default_parameter
(default_parameter
(identifier_required) identifier_required
(True) True
)default_parameter
(default_parameter
(identifier_repr) identifier_repr
(True) True
)default_parameter
(default_parameter
(identifier_cmp) identifier_cmp
(True) True
)default_parameter
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_default) identifier_default
(call
(attribute
(identifier__init_fields) identifier__init_fields
(identifier_init_default) identifier_init_default
)attribute
(argument_list
(identifier_required) identifier_required
(identifier_default) identifier_default
(None) None
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_validator) identifier_validator
(call
(attribute
(identifier__init_fields) identifier__init_fields
(identifier_init_validator) identifier_init_validator
)attribute
(argument_list
(identifier_required) identifier_required
(identifier_time) identifier_time
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_converter) identifier_converter
(call
(attribute
(identifier_converters) identifier_converters
(identifier_to_time_field) identifier_to_time_field
)attribute
(argument_list
(identifier_formatter) identifier_formatter
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_attrib) identifier_attrib
(argument_list
(keyword_argument
(identifier_default) identifier_default
(identifier_default) identifier_default
)keyword_argument
(keyword_argument
(identifier_converter) identifier_converter
(identifier_converter) identifier_converter
)keyword_argument
(keyword_argument
(identifier_validator) identifier_validator
(identifier_validator) identifier_validator
)keyword_argument
(keyword_argument
(identifier_repr) identifier_repr
(identifier_repr) identifier_repr
)keyword_argument
(keyword_argument
(identifier_cmp) identifier_cmp
(identifier_cmp) identifier_cmp
)keyword_argument
(keyword_argument
(identifier_metadata) identifier_metadata
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_formatter) identifier_formatter
(identifier_formatter) identifier_formatter
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create new time field on a model.
:param formatter: time formatter string (default: "%H:%M:%S")
:param default: any time or string that can be converted to a time value
:param bool required: whether or not the object is invalid if not provided.
:param bool repr: include this field should appear in object's repr.
:param bool cmp: include this field in generated comparison.
:param string key: override name of the value when converted to dict. |
(module
(function_definition
(function_name_rename) function_name_rename
(parameters
(identifier_self) identifier_self
(identifier_new_name) identifier_new_name
(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_new) identifier_new
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_reddit_session) identifier_reddit_session
)attribute
(identifier_rename_multireddit) identifier_rename_multireddit
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_new_name) identifier_new_name
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___dict__) identifier___dict__
)attribute
(attribute
(identifier_new) identifier_new
(identifier___dict__) identifier___dict__
)attribute
)assignment
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Rename this multireddit.
This function is a handy shortcut to
:meth:`rename_multireddit` of the reddit_session. |
(module
(function_definition
(function_name_parse_authority) function_name_parse_authority
(parameters
(identifier_cls) identifier_cls
(identifier_authority) identifier_authority
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_userinfo) identifier_userinfo
(identifier_sep) identifier_sep
(identifier_host) identifier_host
)pattern_list
(call
(attribute
(identifier_authority) identifier_authority
(identifier_partition) identifier_partition
)attribute
(argument_list
(string_'@') string_'@'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_sep) identifier_sep
)not_operator
(block
(return_statement
(expression_list
(string_'') string_''
(identifier_userinfo) identifier_userinfo
)expression_list
)return_statement
)block
(else_clause
(block
(return_statement
(expression_list
(identifier_userinfo) identifier_userinfo
(identifier_host) identifier_host
)expression_list
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Parse the authority part and return userinfo and host. |
(module
(function_definition
(function_name_set_seat_logical_name) function_name_set_seat_logical_name
(parameters
(identifier_self) identifier_self
(identifier_seat) identifier_seat
)parameters
(block
(expression_statement
(assignment
(identifier_rc) identifier_rc
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__libinput) identifier__libinput
)attribute
(identifier_libinput_device_set_seat_logical_name) identifier_libinput_device_set_seat_logical_name
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__handle) identifier__handle
)attribute
(call
(attribute
(identifier_seat) identifier_seat
(identifier_encode) identifier_encode
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(identifier_rc) identifier_rc
(integer_0) integer_0
)comparison_operator
(call
(attribute
(string_'Cannot assign device to {}') string_'Cannot assign device to {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_seat) identifier_seat
)argument_list
)call
)assert_statement
)block
)function_definition
)module | Change the logical seat associated with this device by removing
the device and adding it to the new seat.
This command is identical to physically unplugging the device, then
re-plugging it as a member of the new seat. libinput will generate
a :attr:`~libinput.constant.EventType.DEVICE_REMOVED` event and this
:class:`Device` is considered removed from the context; it will not
generate further events.
A :attr:`~libinput.constant.EventType.DEVICE_ADDED` event is
generated with a new :class:`Device`. It is the caller's
responsibility to update references to the new device accordingly.
If the logical seat name already exists in the device's physical seat,
the device is added to this seat. Otherwise, a new seat is created.
Note:
This change applies to this device until removal or
:meth:`~libinput.LibInput.suspend`, whichever happens earlier.
Args:
seat (str): The new logical seat name.
Raises:
AssertionError |
(module
(function_definition
(function_name_kwds) function_name_kwds
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier__kwds) identifier__kwds
(argument_list
(keyword_argument
(identifier_base) identifier_base
(attribute
(identifier_self) identifier_self
(identifier_base) identifier_base
)attribute
)keyword_argument
(keyword_argument
(identifier_item) identifier_item
(attribute
(identifier_self) identifier_self
(identifier_item) identifier_item
)attribute
)keyword_argument
(keyword_argument
(identifier_leng) identifier_leng
(attribute
(identifier_self) identifier_self
(identifier_leng) identifier_leng
)attribute
)keyword_argument
(keyword_argument
(identifier_refs) identifier_refs
(attribute
(identifier_self) identifier_self
(identifier_refs) identifier_refs
)attribute
)keyword_argument
(keyword_argument
(identifier_both) identifier_both
(attribute
(identifier_self) identifier_self
(identifier_both) identifier_both
)attribute
)keyword_argument
(keyword_argument
(identifier_kind) identifier_kind
(attribute
(identifier_self) identifier_self
(identifier_kind) identifier_kind
)attribute
)keyword_argument
(keyword_argument
(identifier_type) identifier_type
(attribute
(identifier_self) identifier_self
(identifier_type) identifier_type
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return all attributes as keywords dict. |
(module
(function_definition
(function_name__downloaded_filename) function_name__downloaded_filename
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_link) identifier_link
(boolean_operator
(call
(attribute
(identifier_self) identifier_self
(identifier__link) identifier__link
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__finder) identifier__finder
)attribute
(identifier_find_requirement) identifier_find_requirement
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__req) identifier__req
)attribute
(keyword_argument
(identifier_upgrade) identifier_upgrade
(False) False
)keyword_argument
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(if_statement
(identifier_link) identifier_link
(block
(expression_statement
(assignment
(identifier_lower_scheme) identifier_lower_scheme
(call
(attribute
(attribute
(identifier_link) identifier_link
(identifier_scheme) identifier_scheme
)attribute
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_lower_scheme) identifier_lower_scheme
(string_'http') string_'http'
)comparison_operator
(comparison_operator
(identifier_lower_scheme) identifier_lower_scheme
(string_'https') string_'https'
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_file_path) identifier_file_path
(call
(attribute
(identifier_self) identifier_self
(identifier__download) identifier__download
)attribute
(argument_list
(identifier_link) identifier_link
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_basename) identifier_basename
(argument_list
(identifier_file_path) identifier_file_path
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_lower_scheme) identifier_lower_scheme
(string_'file') string_'file'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_link_path) identifier_link_path
(call
(identifier_url_to_path) identifier_url_to_path
(argument_list
(attribute
(identifier_link) identifier_link
(identifier_url_without_fragment) identifier_url_without_fragment
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isdir) identifier_isdir
(argument_list
(identifier_link_path) identifier_link_path
)argument_list
)call
(block
(raise_statement
(call
(identifier_UnsupportedRequirementError) identifier_UnsupportedRequirementError
(argument_list
(binary_operator
(concatenated_string
(string_"%s: %s is a directory. So that it can compute ") string_"%s: %s is a directory. So that it can compute "
(string_"a hash, peep supports only filesystem paths which ") string_"a hash, peep supports only filesystem paths which "
(string_"point to files") string_"point to files"
)concatenated_string
(tuple
(attribute
(identifier_self) identifier_self
(identifier__req) identifier__req
)attribute
(attribute
(identifier_link) identifier_link
(identifier_url_without_fragment) identifier_url_without_fragment
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_copy) identifier_copy
(argument_list
(identifier_link_path) identifier_link_path
(attribute
(identifier_self) identifier_self
(identifier__temp_path) identifier__temp_path
)attribute
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_basename) identifier_basename
(argument_list
(identifier_link_path) identifier_link_path
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_UnsupportedRequirementError) identifier_UnsupportedRequirementError
(argument_list
(binary_operator
(concatenated_string
(string_"%s: The download link, %s, would not result in a file ") string_"%s: The download link, %s, would not result in a file "
(string_"that can be hashed. Peep supports only == requirements, ") string_"that can be hashed. Peep supports only == requirements, "
(string_"file:// URLs pointing to files (not folders), and ") string_"file:// URLs pointing to files (not folders), and "
(string_"http:// and https:// URLs pointing to tarballs, zips, ") string_"http:// and https:// URLs pointing to tarballs, zips, "
(string_"etc.") string_"etc."
)concatenated_string
(tuple
(attribute
(identifier_self) identifier_self
(identifier__req) identifier__req
)attribute
(attribute
(identifier_link) identifier_link
(identifier_url) identifier_url
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_UnsupportedRequirementError) identifier_UnsupportedRequirementError
(argument_list
(binary_operator
(string_"%s: couldn't determine where to download this requirement from.") string_"%s: couldn't determine where to download this requirement from."
(tuple
(attribute
(identifier_self) identifier_self
(identifier__req) identifier__req
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Download the package's archive if necessary, and return its
filename.
--no-deps is implied, as we have reimplemented the bits that would
ordinarily do dependency resolution. |
(module
(function_definition
(function_name_rndbytes) function_name_rndbytes
(parameters
(default_parameter
(identifier_size) identifier_size
(integer_16) integer_16
)default_parameter
(default_parameter
(identifier_alphabet) identifier_alphabet
(string_"") string_""
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(call
(identifier_rndstr) identifier_rndstr
(argument_list
(identifier_size) identifier_size
(identifier_alphabet) identifier_alphabet
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_x) identifier_x
(attribute
(identifier_six) identifier_six
(identifier_string_types) identifier_string_types
)attribute
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_x) identifier_x
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_x) identifier_x
)return_statement
)block
)function_definition
)module | Returns rndstr always as a binary type |
(module
(function_definition
(function_name__on_login) function_name__on_login
(parameters
(identifier_self) identifier_self
(identifier_user) identifier_user
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__bot) identifier__bot
)attribute
(call
(identifier_bool) identifier_bool
(argument_list
(attribute
(identifier_user) identifier_user
(identifier_bot) identifier_bot
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__self_input_peer) identifier__self_input_peer
)attribute
(call
(attribute
(identifier_utils) identifier_utils
(identifier_get_input_peer) identifier_get_input_peer
)attribute
(argument_list
(identifier_user) identifier_user
(keyword_argument
(identifier_allow_self) identifier_allow_self
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__authorized) identifier__authorized
)attribute
(True) True
)assignment
)expression_statement
(return_statement
(identifier_user) identifier_user
)return_statement
)block
)function_definition
)module | Callback called whenever the login or sign up process completes.
Returns the input user parameter. |
(module
(function_definition
(function_name_collect_github_config) function_name_collect_github_config
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_github_config) identifier_github_config
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_field) identifier_field
(list
(string_"user") string_"user"
(string_"token") string_"token"
)list
(block
(try_statement
(block
(expression_statement
(assignment
(subscript
(identifier_github_config) identifier_github_config
(identifier_field) identifier_field
)subscript
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_output) identifier_check_output
)attribute
(argument_list
(list
(string_"git") string_"git"
(string_"config") string_"config"
(call
(attribute
(string_"github.{}") string_"github.{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_field) identifier_field
)argument_list
)call
)list
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(tuple
(identifier_OSError) identifier_OSError
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_CalledProcessError) identifier_CalledProcessError
)attribute
)tuple
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(identifier_github_config) identifier_github_config
)return_statement
)block
)function_definition
)module | Try load Github configuration such as usernames from the local or global git config |
(module
(function_definition
(function_name_addPolylineAnnot) function_name_addPolylineAnnot
(parameters
(identifier_self) identifier_self
(identifier_points) identifier_points
)parameters
(block
(expression_statement
(call
(identifier_CheckParent) identifier_CheckParent
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_val) identifier_val
(call
(attribute
(identifier__fitz) identifier__fitz
(identifier_Page_addPolylineAnnot) identifier_Page_addPolylineAnnot
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_points) identifier_points
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_val) identifier_val
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_val) identifier_val
(identifier_thisown) identifier_thisown
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_val) identifier_val
(identifier_parent) identifier_parent
)attribute
(call
(attribute
(identifier_weakref) identifier_weakref
(identifier_proxy) identifier_proxy
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__annot_refs) identifier__annot_refs
)attribute
(call
(identifier_id) identifier_id
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)subscript
(identifier_val) identifier_val
)assignment
)expression_statement
(return_statement
(identifier_val) identifier_val
)return_statement
)block
)function_definition
)module | Add a 'Polyline' annotation for a sequence of points. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.