sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_load_from_sens_file) function_name_load_from_sens_file
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_sens_data) identifier_sens_data
(call
(attribute
(identifier_np) identifier_np
(identifier_loadtxt) identifier_loadtxt
)attribute
(argument_list
(identifier_filename) identifier_filename
(keyword_argument
(identifier_skiprows) identifier_skiprows
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nid_re) identifier_nid_re
(call
(attribute
(identifier_self) identifier_self
(identifier_add_data) identifier_add_data
)attribute
(argument_list
(subscript
(identifier_sens_data) identifier_sens_data
(slice
(colon) colon
)slice
(integer_2) integer_2
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nid_im) identifier_nid_im
(call
(attribute
(identifier_self) identifier_self
(identifier_add_data) identifier_add_data
)attribute
(argument_list
(subscript
(identifier_sens_data) identifier_sens_data
(slice
(colon) colon
)slice
(integer_3) integer_3
)subscript
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_nid_re) identifier_nid_re
(identifier_nid_im) identifier_nid_im
)expression_list
)return_statement
)block
)function_definition
)module | Load real and imaginary parts from a sens.dat file generated by
CRMod
Parameters
----------
filename: string
filename of sensitivity file
Returns
-------
nid_re: int
ID of real part of sensitivities
nid_im: int
ID of imaginary part of sensitivities |
(module
(function_definition
(function_name_read_wave) function_name_read_wave
(parameters
(identifier_path) identifier_path
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_contextlib) identifier_contextlib
(identifier_closing) identifier_closing
)attribute
(argument_list
(call
(attribute
(identifier_wave) identifier_wave
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_path) identifier_path
(string_'rb') string_'rb'
)argument_list
)call
)argument_list
)call
(as_pattern_target
(identifier_wf) identifier_wf
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_num_channels) identifier_num_channels
(call
(attribute
(identifier_wf) identifier_wf
(identifier_getnchannels) identifier_getnchannels
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(identifier_num_channels) identifier_num_channels
(integer_1) integer_1
)comparison_operator
)assert_statement
(expression_statement
(assignment
(identifier_sample_width) identifier_sample_width
(call
(attribute
(identifier_wf) identifier_wf
(identifier_getsampwidth) identifier_getsampwidth
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(identifier_sample_width) identifier_sample_width
(integer_2) integer_2
)comparison_operator
)assert_statement
(expression_statement
(assignment
(identifier_sample_rate) identifier_sample_rate
(call
(attribute
(identifier_wf) identifier_wf
(identifier_getframerate) identifier_getframerate
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(identifier_sample_rate) identifier_sample_rate
(tuple
(integer_8000) integer_8000
(integer_16000) integer_16000
(integer_32000) integer_32000
)tuple
)comparison_operator
)assert_statement
(expression_statement
(assignment
(identifier_frames) identifier_frames
(call
(attribute
(identifier_wf) identifier_wf
(identifier_getnframes) identifier_getnframes
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pcm_data) identifier_pcm_data
(call
(attribute
(identifier_wf) identifier_wf
(identifier_readframes) identifier_readframes
)attribute
(argument_list
(identifier_frames) identifier_frames
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_duration) identifier_duration
(binary_operator
(identifier_frames) identifier_frames
(identifier_sample_rate) identifier_sample_rate
)binary_operator
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_pcm_data) identifier_pcm_data
(identifier_sample_rate) identifier_sample_rate
(identifier_duration) identifier_duration
)expression_list
)return_statement
)block
)with_statement
)block
)function_definition
)module | Reads a .wav file.
Takes the path, and returns (PCM audio data, sample rate). |
(module
(function_definition
(function_name__get_jar) function_name__get_jar
(parameters
(identifier_self) identifier_self
(identifier_command) identifier_command
(default_parameter
(identifier_alts) identifier_alts
(None) None
)default_parameter
(default_parameter
(identifier_allow_missing) identifier_allow_missing
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_dirs) identifier_dirs
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_bdir) identifier_bdir
(list
(attribute
(identifier_self) identifier_self
(identifier__gatk_dir) identifier__gatk_dir
)attribute
(attribute
(identifier_self) identifier_self
(identifier__picard_ref) identifier__picard_ref
)attribute
)list
(block
(expression_statement
(call
(attribute
(identifier_dirs) identifier_dirs
(identifier_extend) identifier_extend
)attribute
(argument_list
(list
(identifier_bdir) identifier_bdir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_bdir) identifier_bdir
(attribute
(identifier_os) identifier_os
(identifier_pardir) identifier_pardir
)attribute
(string_"gatk") string_"gatk"
)argument_list
)call
)list
)argument_list
)call
)expression_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_alts) identifier_alts
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_alts) identifier_alts
(list
)list
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_check_cmd) identifier_check_cmd
(binary_operator
(list
(identifier_command) identifier_command
)list
(identifier_alts) identifier_alts
)binary_operator
(block
(for_statement
(identifier_dir_check) identifier_dir_check
(identifier_dirs) identifier_dirs
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_check_file) identifier_check_file
(call
(attribute
(identifier_config_utils) identifier_config_utils
(identifier_get_jar) identifier_get_jar
)attribute
(argument_list
(identifier_check_cmd) identifier_check_cmd
(identifier_dir_check) identifier_dir_check
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_check_file) identifier_check_file
)return_statement
)block
(except_clause
(as_pattern
(identifier_ValueError) identifier_ValueError
(as_pattern_target
(identifier_msg) identifier_msg
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
(identifier_find) identifier_find
)attribute
(argument_list
(string_"multiple") string_"multiple"
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
)raise_statement
)block
(else_clause
(block
(pass_statement
)pass_statement
)block
)else_clause
)if_statement
)block
)except_clause
)try_statement
)block
)for_statement
)block
)for_statement
(if_statement
(identifier_allow_missing) identifier_allow_missing
(block
(return_statement
(None) None
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"Could not find jar %s in %s:%s") string_"Could not find jar %s in %s:%s"
(tuple
(identifier_command) identifier_command
(attribute
(identifier_self) identifier_self
(identifier__picard_ref) identifier__picard_ref
)attribute
(attribute
(identifier_self) identifier_self
(identifier__gatk_dir) identifier__gatk_dir
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Retrieve the jar for running the specified command. |
(module
(function_definition
(function_name__drop_schema) function_name__drop_schema
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force_drop) identifier_force_drop
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_connection) identifier_connection
(subscript
(identifier_connections) identifier_connections
(call
(identifier_get_tenant_database_alias) identifier_get_tenant_database_alias
(argument_list
)argument_list
)call
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_has_schema) identifier_has_schema
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_connection) identifier_connection
(string_'schema_name') string_'schema_name'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_has_schema) identifier_has_schema
(comparison_operator
(attribute
(identifier_connection) identifier_connection
(identifier_schema_name) identifier_schema_name
)attribute
(tuple
(attribute
(identifier_self) identifier_self
(identifier_schema_name) identifier_schema_name
)attribute
(call
(identifier_get_public_schema_name) identifier_get_public_schema_name
(argument_list
)argument_list
)call
)tuple
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(binary_operator
(concatenated_string
(string_"Can't delete tenant outside it's own schema or ") string_"Can't delete tenant outside it's own schema or "
(string_"the public schema. Current schema is %s.") string_"the public schema. Current schema is %s."
)concatenated_string
(attribute
(identifier_connection) identifier_connection
(identifier_schema_name) identifier_schema_name
)attribute
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(boolean_operator
(boolean_operator
(identifier_has_schema) identifier_has_schema
(call
(identifier_schema_exists) identifier_schema_exists
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_schema_name) identifier_schema_name
)attribute
)argument_list
)call
)boolean_operator
(parenthesized_expression
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_auto_drop_schema) identifier_auto_drop_schema
)attribute
(identifier_force_drop) identifier_force_drop
)boolean_operator
)parenthesized_expression
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_pre_drop) identifier_pre_drop
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_cursor) identifier_cursor
(call
(attribute
(identifier_connection) identifier_connection
(identifier_cursor) identifier_cursor
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_execute) identifier_execute
)attribute
(argument_list
(binary_operator
(string_'DROP SCHEMA %s CASCADE') string_'DROP SCHEMA %s CASCADE'
(attribute
(identifier_self) identifier_self
(identifier_schema_name) identifier_schema_name
)attribute
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Drops the schema |
(module
(function_definition
(function_name_MarginalBeta) function_name_MarginalBeta
(parameters
(identifier_self) identifier_self
(identifier_i) identifier_i
)parameters
(block
(expression_statement
(assignment
(identifier_alpha0) identifier_alpha0
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_params) identifier_params
)attribute
(identifier_sum) identifier_sum
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_alpha) identifier_alpha
(subscript
(attribute
(identifier_self) identifier_self
(identifier_params) identifier_params
)attribute
(identifier_i) identifier_i
)subscript
)assignment
)expression_statement
(return_statement
(call
(identifier_Beta) identifier_Beta
(argument_list
(identifier_alpha) identifier_alpha
(binary_operator
(identifier_alpha0) identifier_alpha0
(identifier_alpha) identifier_alpha
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Computes the marginal distribution of the ith element.
See http://en.wikipedia.org/wiki/Dirichlet_distribution
#Marginal_distributions
i: int
Returns: Beta object |
(module
(function_definition
(function_name_get_jpp_revision) function_name_get_jpp_revision
(parameters
(default_parameter
(identifier_via_command) identifier_via_command
(string_'JPrint') string_'JPrint'
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_output) identifier_check_output
)attribute
(argument_list
(list
(identifier_via_command) identifier_via_command
(string_'-v') string_'-v'
)list
(keyword_argument
(identifier_stderr) identifier_stderr
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_STDOUT) identifier_STDOUT
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_CalledProcessError) identifier_CalledProcessError
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(attribute
(identifier_e) identifier_e
(identifier_returncode) identifier_returncode
)attribute
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(attribute
(identifier_e) identifier_e
(identifier_output) identifier_output
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(return_statement
(None) None
)return_statement
)block
)else_clause
)if_statement
)block
)except_clause
(except_clause
(identifier_OSError) identifier_OSError
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_revision) identifier_revision
(call
(attribute
(subscript
(call
(attribute
(subscript
(call
(attribute
(call
(attribute
(identifier_output) identifier_output
(identifier_decode) identifier_decode
)attribute
(argument_list
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
(integer_0) integer_0
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
(integer_1) integer_1
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_revision) identifier_revision
)return_statement
)block
)function_definition
)module | Retrieves the Jpp revision number |
(module
(function_definition
(function_name_histogram) function_name_histogram
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_description) identifier_description
(default_parameter
(identifier_labels) identifier_labels
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__track) identifier__track
)attribute
(argument_list
(identifier_Histogram) identifier_Histogram
(lambda
(lambda_parameters
(identifier_metric) identifier_metric
(identifier_time) identifier_time
)lambda_parameters
(call
(attribute
(identifier_metric) identifier_metric
(identifier_observe) identifier_observe
)attribute
(argument_list
(identifier_time) identifier_time
)argument_list
)call
)lambda
(identifier_kwargs) identifier_kwargs
(identifier_name) identifier_name
(identifier_description) identifier_description
(identifier_labels) identifier_labels
(keyword_argument
(identifier_registry) identifier_registry
(attribute
(identifier_self) identifier_self
(identifier_registry) identifier_registry
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Use a Histogram to track the execution time and invocation count
of the method.
:param name: the name of the metric
:param description: the description of the metric
:param labels: a dictionary of `{labelname: callable_or_value}` for labels
:param kwargs: additional keyword arguments for creating the Histogram |
(module
(function_definition
(function_name__matches_location) function_name__matches_location
(parameters
(identifier_price) identifier_price
(identifier_location) identifier_location
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_price) identifier_price
(identifier_get) identifier_get
)attribute
(argument_list
(string_'locationGroupId') string_'locationGroupId'
)argument_list
)call
)not_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(for_statement
(identifier_group) identifier_group
(subscript
(subscript
(subscript
(identifier_location) identifier_location
(string_'location') string_'location'
)subscript
(string_'location') string_'location'
)subscript
(string_'priceGroups') string_'priceGroups'
)subscript
(block
(if_statement
(comparison_operator
(subscript
(identifier_group) identifier_group
(string_'id') string_'id'
)subscript
(subscript
(identifier_price) identifier_price
(string_'locationGroupId') string_'locationGroupId'
)subscript
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Return True if the price object matches the location. |
(module
(function_definition
(function_name_signup) function_name_signup
(parameters
(identifier_request) identifier_request
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_request) identifier_request
(identifier_method) identifier_method
)attribute
(string_'GET') string_'GET'
)comparison_operator
(block
(return_statement
(call
(identifier_render) identifier_render
(argument_list
(identifier_request) identifier_request
(string_'user_signup.html') string_'user_signup.html'
(dictionary
)dictionary
(keyword_argument
(identifier_help_text) identifier_help_text
(attribute
(identifier_signup) identifier_signup
(identifier___doc__) identifier___doc__
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_request) identifier_request
(identifier_method) identifier_method
)attribute
(string_'POST') string_'POST'
)comparison_operator
(block
(if_statement
(boolean_operator
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_user) identifier_user
)attribute
(identifier_is_authenticated) identifier_is_authenticated
)attribute
(argument_list
)argument_list
)call
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(attribute
(identifier_request) identifier_request
(identifier_user) identifier_user
)attribute
(string_"userprofile") string_"userprofile"
)argument_list
)call
)boolean_operator
(block
(return_statement
(call
(identifier_render_json) identifier_render_json
(argument_list
(identifier_request) identifier_request
(dictionary
(pair
(string_'error') string_'error'
(call
(identifier__) identifier__
(argument_list
(string_'User already logged in') string_'User already logged in'
)argument_list
)call
)pair
(pair
(string_'error_type') string_'error_type'
(string_'username_logged') string_'username_logged'
)pair
)dictionary
(keyword_argument
(identifier_template) identifier_template
(string_'user_json.html') string_'user_json.html'
)keyword_argument
(keyword_argument
(identifier_status) identifier_status
(integer_400) integer_400
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_credentials) identifier_credentials
(call
(identifier_json_body) identifier_json_body
(argument_list
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_body) identifier_body
)attribute
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_"utf-8") string_"utf-8"
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_error) identifier_error
(call
(identifier__save_user) identifier__save_user
(argument_list
(identifier_request) identifier_request
(identifier_credentials) identifier_credentials
(keyword_argument
(identifier_new) identifier_new
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_error) identifier_error
(None) None
)comparison_operator
(block
(return_statement
(call
(identifier_render_json) identifier_render_json
(argument_list
(identifier_request) identifier_request
(identifier_error) identifier_error
(keyword_argument
(identifier_template) identifier_template
(string_'user_json.html') string_'user_json.html'
)keyword_argument
(keyword_argument
(identifier_status) identifier_status
(integer_400) integer_400
)keyword_argument
)argument_list
)call
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_auth) identifier_auth
(identifier_login) identifier_login
)attribute
(argument_list
(identifier_request) identifier_request
(attribute
(identifier_request) identifier_request
(identifier_user) identifier_user
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_request) identifier_request
(identifier_method) identifier_method
)attribute
(string_"GET") string_"GET"
)assignment
)expression_statement
(return_statement
(call
(identifier_profile) identifier_profile
(argument_list
(identifier_request) identifier_request
(keyword_argument
(identifier_status) identifier_status
(integer_201) integer_201
)keyword_argument
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(call
(identifier_HttpResponseBadRequest) identifier_HttpResponseBadRequest
(argument_list
(call
(attribute
(string_"method %s is not allowed") string_"method %s is not allowed"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_request) identifier_request
(identifier_method) identifier_method
)attribute
)argument_list
)call
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Create a new user with the given credentials.
GET parameters:
html
turn on the HTML version of the API
POST parameters (JSON):
username:
user's name
email:
user's e-mail
password:
user's password
password_check:
user's password again to check it
first_name (optional):
user's first name
last_name (optional):
user's last name |
(module
(function_definition
(function_name_get_all_eip_addresses) function_name_get_all_eip_addresses
(parameters
(default_parameter
(identifier_addresses) identifier_addresses
(None) None
)default_parameter
(default_parameter
(identifier_allocation_ids) identifier_allocation_ids
(None) None
)default_parameter
(default_parameter
(identifier_region) identifier_region
(None) None
)default_parameter
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
(default_parameter
(identifier_keyid) identifier_keyid
(None) None
)default_parameter
(default_parameter
(identifier_profile) identifier_profile
(None) None
)default_parameter
)parameters
(block
(return_statement
(list_comprehension
(attribute
(identifier_x) identifier_x
(identifier_public_ip) identifier_public_ip
)attribute
(for_in_clause
(identifier_x) identifier_x
(call
(identifier__get_all_eip_addresses) identifier__get_all_eip_addresses
(argument_list
(identifier_addresses) identifier_addresses
(identifier_allocation_ids) identifier_allocation_ids
(identifier_region) identifier_region
(identifier_key) identifier_key
(identifier_keyid) identifier_keyid
(identifier_profile) identifier_profile
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Get public addresses of some, or all EIPs associated with the current account.
addresses
(list) - Optional list of addresses. If provided, only the addresses
associated with those in the list will be returned.
allocation_ids
(list) - Optional list of allocation IDs. If provided, only the
addresses associated with the given allocation IDs will be returned.
returns
(list) - A list of the requested EIP addresses
CLI Example:
.. code-block:: bash
salt-call boto_ec2.get_all_eip_addresses
.. versionadded:: 2016.3.0 |
(module
(function_definition
(function_name_identity_of) function_name_identity_of
(parameters
(typed_parameter
(identifier_client) identifier_client
(type
(identifier_Client) identifier_Client
)type
)typed_parameter
(typed_parameter
(identifier_search) identifier_search
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_dict) identifier_dict
)type
(block
(return_statement
(await
(call
(attribute
(identifier_client) identifier_client
(identifier_get) identifier_get
)attribute
(argument_list
(binary_operator
(identifier_MODULE) identifier_MODULE
(binary_operator
(string_'/identity-of/%s') string_'/identity-of/%s'
(identifier_search) identifier_search
)binary_operator
)binary_operator
(keyword_argument
(identifier_schema) identifier_schema
(identifier_IDENTITY_OF_SCHEMA) identifier_IDENTITY_OF_SCHEMA
)keyword_argument
)argument_list
)call
)await
)return_statement
)block
)function_definition
)module | GET Identity data written in the blockchain
:param client: Client to connect to the api
:param search: UID or public key
:return: |
(module
(function_definition
(function_name_list_databases) function_name_list_databases
(parameters
(identifier_self) identifier_self
(identifier_instance) identifier_instance
(default_parameter
(identifier_limit) identifier_limit
(None) None
)default_parameter
(default_parameter
(identifier_marker) identifier_marker
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_instance) identifier_instance
(identifier_list_databases) identifier_list_databases
)attribute
(argument_list
(keyword_argument
(identifier_limit) identifier_limit
(identifier_limit) identifier_limit
)keyword_argument
(keyword_argument
(identifier_marker) identifier_marker
(identifier_marker) identifier_marker
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns all databases for the specified instance. |
(module
(function_definition
(function_name_add_properties) function_name_add_properties
(parameters
(identifier_entity_proto) identifier_entity_proto
(identifier_property_dict) identifier_property_dict
(default_parameter
(identifier_exclude_from_indexes) identifier_exclude_from_indexes
(None) None
)default_parameter
)parameters
(block
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_property_dict) identifier_property_dict
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(identifier_set_property) identifier_set_property
(argument_list
(attribute
(identifier_entity_proto) identifier_entity_proto
(identifier_properties) identifier_properties
)attribute
(identifier_name) identifier_name
(identifier_value) identifier_value
(identifier_exclude_from_indexes) identifier_exclude_from_indexes
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Add values to the given datastore.Entity proto message.
Args:
entity_proto: datastore.Entity proto message.
property_dict: a dictionary from property name to either a python object or
datastore.Value.
exclude_from_indexes: if the value should be exclude from indexes. None
leaves indexing as is (defaults to False if value is not a Value
message).
Usage:
>>> add_properties(proto, {'foo': u'a', 'bar': [1, 2]})
Raises:
TypeError: if a given property value type is not supported. |
(module
(function_definition
(function_name_config) function_name_config
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier__call) identifier__call
)attribute
(argument_list
(attribute
(identifier_mc_calls) identifier_mc_calls
(identifier_Config) identifier_Config
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_config_list) identifier_config_list
(call
(attribute
(call
(attribute
(attribute
(identifier_response) identifier_response
(identifier_body) identifier_body
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'data') string_'data'
(dictionary
)dictionary
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(string_'entries') string_'entries'
(list
)list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_config_list) identifier_config_list
)return_statement
)block
)function_definition
)module | Get a listing of mobile client configuration settings. |
(module
(function_definition
(function_name_create_class_from_element_tree) function_name_create_class_from_element_tree
(parameters
(identifier_target_class) identifier_target_class
(identifier_tree) identifier_tree
(default_parameter
(identifier_namespace) identifier_namespace
(None) None
)default_parameter
(default_parameter
(identifier_tag) identifier_tag
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_namespace) identifier_namespace
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_namespace) identifier_namespace
(attribute
(identifier_target_class) identifier_target_class
(identifier_c_namespace) identifier_c_namespace
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_tag) identifier_tag
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_tag) identifier_tag
(attribute
(identifier_target_class) identifier_target_class
(identifier_c_tag) identifier_c_tag
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_tree) identifier_tree
(identifier_tag) identifier_tag
)attribute
(binary_operator
(string_'{%s}%s') string_'{%s}%s'
(tuple
(identifier_namespace) identifier_namespace
(identifier_tag) identifier_tag
)tuple
)binary_operator
)comparison_operator
(block
(expression_statement
(assignment
(identifier_target) identifier_target
(call
(identifier_target_class) identifier_target_class
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_target) identifier_target
(identifier_harvest_element_tree) identifier_harvest_element_tree
)attribute
(argument_list
(identifier_tree) identifier_tree
)argument_list
)call
)expression_statement
(return_statement
(identifier_target) identifier_target
)return_statement
)block
(else_clause
(block
(return_statement
(None) None
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Instantiates the class and populates members according to the tree.
Note: Only use this function with classes that have c_namespace and c_tag
class members.
:param target_class: The class which will be instantiated and populated
with the contents of the XML.
:param tree: An element tree whose contents will be converted into
members of the new target_class instance.
:param namespace: The namespace which the XML tree's root node must
match. If omitted, the namespace defaults to the c_namespace of the
target class.
:param tag: The tag which the XML tree's root node must match. If
omitted, the tag defaults to the c_tag class member of the target
class.
:return: An instance of the target class - or None if the tag and namespace
of the XML tree's root node did not match the desired namespace and tag. |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_name) identifier_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_default_parameter
(identifier_default) identifier_default
(type
(identifier_Any) identifier_Any
)type
(None) None
)typed_default_parameter
)parameters
(type
(attribute
(identifier_np) identifier_np
(identifier_ndarray) identifier_ndarray
)attribute
)type
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
(identifier_self) identifier_self
)comparison_operator
(block
(return_statement
(subscript
(identifier_self) identifier_self
(identifier_name) identifier_name
)subscript
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_default) identifier_default
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return the value for a named attribute if it exists, else default.
If default is not given, it defaults to None, so that this method never raises a KeyError. |
(module
(function_definition
(function_name_list) function_name_list
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_filter) identifier_filter
(None) None
)default_parameter
(default_parameter
(identifier_type) identifier_type
(None) None
)default_parameter
(default_parameter
(identifier_sort) identifier_sort
(None) None
)default_parameter
(default_parameter
(identifier_limit) identifier_limit
(None) None
)default_parameter
(default_parameter
(identifier_page) identifier_page
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_schema) identifier_schema
(call
(identifier_PackageSchema) identifier_PackageSchema
(argument_list
(keyword_argument
(identifier_exclude) identifier_exclude
(tuple
(string_'testlist') string_'testlist'
(string_'extra_cli_args') string_'extra_cli_args'
(string_'agent_id') string_'agent_id'
(string_'options') string_'options'
(string_'note') string_'note'
)tuple
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_service) identifier_service
)attribute
(identifier_list) identifier_list
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_base) identifier_base
)attribute
(identifier_filter) identifier_filter
(identifier_type) identifier_type
(identifier_sort) identifier_sort
(identifier_limit) identifier_limit
(identifier_page) identifier_page
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_ps) identifier_ps
(identifier_l) identifier_l
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_service) identifier_service
)attribute
(identifier_decode) identifier_decode
)attribute
(argument_list
(identifier_schema) identifier_schema
(identifier_resp) identifier_resp
(keyword_argument
(identifier_many) identifier_many
(True) True
)keyword_argument
(keyword_argument
(identifier_links) identifier_links
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_Page) identifier_Page
(argument_list
(identifier_ps) identifier_ps
(identifier_l) identifier_l
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get a list of packages.
:param filter: (optional) Filters to apply as a string list.
:param type: (optional) `union` or `inter` as string.
:param sort: (optional) Sort fields to apply as string list.
:param limit: (optional) Limit returned list length.
:param page: (optional) Page to return.
:return: :class:`packages.Page <packages.Page>` object |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(default_parameter
(identifier_env) identifier_env
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_env) identifier_env
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_env) identifier_env
(attribute
(identifier_self) identifier_self
(identifier_environment) identifier_environment
)attribute
)assignment
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier__settings) identifier__settings
)attribute
(identifier_env) identifier_env
)subscript
(identifier_key) identifier_key
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(None) None
)assignment
)expression_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(identifier_ret) identifier_ret
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_key) identifier_key
(string_"identity_class") string_"identity_class"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_env_var) identifier_env_var
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_env_dct) identifier_env_dct
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"identity_type") string_"identity_type"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ityp) identifier_ityp
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_env_var) identifier_env_var
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_ityp) identifier_ityp
(block
(return_statement
(call
(identifier__import_identity) identifier__import_identity
(argument_list
(identifier_ityp) identifier_ityp
)argument_list
)call
)return_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_env_var) identifier_env_var
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_env_dct) identifier_env_dct
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_env_var) identifier_env_var
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_env_var) identifier_env_var
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Returns the config setting for the specified environment. If no
environment is specified, the value for the current environment is
returned. If an unknown key or environment is passed, None is returned. |
(module
(function_definition
(function_name_decode_argument) function_name_decode_argument
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_value) identifier_value
(type
(identifier_bytes) identifier_bytes
)type
)typed_parameter
(typed_default_parameter
(identifier_name) identifier_name
(type
(identifier_str) identifier_str
)type
(None) None
)typed_default_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(try_statement
(block
(return_statement
(call
(identifier__unicode) identifier__unicode
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_UnicodeDecodeError) identifier_UnicodeDecodeError
(block
(raise_statement
(call
(identifier_HTTPError) identifier_HTTPError
(argument_list
(integer_400) integer_400
(binary_operator
(string_"Invalid unicode in %s: %r") string_"Invalid unicode in %s: %r"
(tuple
(boolean_operator
(identifier_name) identifier_name
(string_"url") string_"url"
)boolean_operator
(subscript
(identifier_value) identifier_value
(slice
(colon) colon
(integer_40) integer_40
)slice
)subscript
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Decodes an argument from the request.
The argument has been percent-decoded and is now a byte string.
By default, this method decodes the argument as utf-8 and returns
a unicode string, but this may be overridden in subclasses.
This method is used as a filter for both `get_argument()` and for
values extracted from the url and passed to `get()`/`post()`/etc.
The name of the argument is provided if known, but may be None
(e.g. for unnamed groups in the url regex). |
(module
(function_definition
(function_name__find_joliet_record) function_name__find_joliet_record
(parameters
(identifier_self) identifier_self
(identifier_joliet_path) identifier_joliet_path
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_joliet_vd) identifier_joliet_vd
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_pycdlibexception) identifier_pycdlibexception
(identifier_PyCdlibInternalError) identifier_PyCdlibInternalError
)attribute
(argument_list
(string_'Joliet path requested on non-Joliet ISO') string_'Joliet path requested on non-Joliet ISO'
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(identifier__find_dr_record_by_name) identifier__find_dr_record_by_name
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_joliet_vd) identifier_joliet_vd
)attribute
(identifier_joliet_path) identifier_joliet_path
(string_'utf-16_be') string_'utf-16_be'
)argument_list
)call
)return_statement
)block
)function_definition
)module | An internal method to find an directory record on the ISO given a Joliet
path. If the entry is found, it returns the directory record object
corresponding to that entry. If the entry could not be found, a
pycdlibexception.PyCdlibInvalidInput is raised.
Parameters:
joliet_path - The Joliet path to lookup.
Returns:
The directory record entry representing the entry on the ISO. |
(module
(function_definition
(function_name_list_timeline) function_name_list_timeline
(parameters
(identifier_self) identifier_self
(identifier_list_id) identifier_list_id
(default_parameter
(identifier_since_id) identifier_since_id
(None) None
)default_parameter
(default_parameter
(identifier_max_id) identifier_max_id
(None) None
)default_parameter
(default_parameter
(identifier_count) identifier_count
(integer_20) integer_20
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_statuses) identifier_statuses
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_list_timeline) identifier_list_timeline
)attribute
(argument_list
(keyword_argument
(identifier_list_id) identifier_list_id
(identifier_list_id) identifier_list_id
)keyword_argument
(keyword_argument
(identifier_since_id) identifier_since_id
(identifier_since_id) identifier_since_id
)keyword_argument
(keyword_argument
(identifier_max_id) identifier_max_id
(identifier_max_id) identifier_max_id
)keyword_argument
(keyword_argument
(identifier_count) identifier_count
(identifier_count) identifier_count
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list_comprehension
(call
(identifier_Tweet) identifier_Tweet
(argument_list
(attribute
(identifier_tweet) identifier_tweet
(identifier__json) identifier__json
)attribute
)argument_list
)call
(for_in_clause
(identifier_tweet) identifier_tweet
(identifier_statuses) identifier_statuses
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | List the tweets of specified list.
:param list_id: list ID number
:param since_id: results will have ID greater than specified ID (more recent than)
:param max_id: results will have ID less than specified ID (older than)
:param count: number of results per page
:return: list of :class:`~responsebot.models.Tweet` objects |
(module
(function_definition
(function_name_read_bim) function_name_read_bim
(parameters
(identifier_file_name) identifier_file_name
)parameters
(block
(expression_statement
(assignment
(identifier_marker_names_chr) identifier_marker_names_chr
(None) None
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_file_name) identifier_file_name
(string_'r') string_'r'
)argument_list
)call
(as_pattern_target
(identifier_input_file) identifier_input_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_marker_names_chr) identifier_marker_names_chr
(call
(identifier_dict) identifier_dict
(argument_list
(list_comprehension
(tuple
(subscript
(identifier_i) identifier_i
(integer_1) integer_1
)subscript
(call
(identifier_encode_chr) identifier_encode_chr
(argument_list
(subscript
(identifier_i) identifier_i
(integer_0) integer_0
)subscript
)argument_list
)call
)tuple
(for_in_clause
(identifier_i) identifier_i
(list_comprehension
(call
(attribute
(call
(attribute
(identifier_j) identifier_j
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
(string_"\r\n") string_"\r\n"
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(string_"\t") string_"\t"
)argument_list
)call
(for_in_clause
(identifier_j) identifier_j
(call
(attribute
(identifier_input_file) identifier_input_file
(identifier_readlines) identifier_readlines
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)for_in_clause
(if_clause
(comparison_operator
(call
(identifier_encode_chr) identifier_encode_chr
(argument_list
(subscript
(identifier_i) identifier_i
(integer_0) integer_0
)subscript
)argument_list
)call
(set
(integer_23) integer_23
(integer_24) integer_24
)set
)comparison_operator
)if_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(return_statement
(identifier_marker_names_chr) identifier_marker_names_chr
)return_statement
)block
)function_definition
)module | Reads the BIM file to gather marker names.
:param file_name: the name of the ``bim`` file.
:type file_name: str
:returns: a :py:class:`dict` containing the chromosomal location of each
marker on the sexual chromosomes.
It uses the :py:func:`encode_chr` to encode the chromosomes from ``X`` and
``Y`` to ``23`` and ``24``, respectively. |
(module
(function_definition
(function_name_namespace) function_name_namespace
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_prefix) identifier_prefix
)attribute
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_defaultNamespace) identifier_defaultNamespace
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_resolvePrefix) identifier_resolvePrefix
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_prefix) identifier_prefix
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get the element's namespace.
@return: The element's namespace by resolving the prefix, the explicit
namespace or the inherited namespace.
@rtype: (I{prefix}, I{name}) |
(module
(function_definition
(function_name_unroll_auth_headers) function_name_unroll_auth_headers
(parameters
(identifier_self) identifier_self
(identifier_authheaders) identifier_authheaders
(default_parameter
(identifier_exclude_signature) identifier_exclude_signature
(False) False
)default_parameter
(default_parameter
(identifier_sep) identifier_sep
(string_",") string_","
)default_parameter
(default_parameter
(identifier_quote) identifier_quote
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(string_"") string_""
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ordered) identifier_ordered
(call
(attribute
(identifier_collections) identifier_collections
(identifier_OrderedDict) identifier_OrderedDict
)attribute
(argument_list
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(identifier_authheaders) identifier_authheaders
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_form) identifier_form
(conditional_expression
(string_'{0}=\"{1}\"') string_'{0}=\"{1}\"'
(identifier_quote) identifier_quote
(string_'{0}={1}') string_'{0}={1}'
)conditional_expression
)assignment
)expression_statement
(if_statement
(identifier_exclude_signature) identifier_exclude_signature
(block
(return_statement
(call
(attribute
(identifier_sep) identifier_sep
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(attribute
(identifier_form) identifier_form
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_k) identifier_k
(call
(identifier_urlquote) identifier_urlquote
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_v) identifier_v
)argument_list
)call
(keyword_argument
(identifier_safe) identifier_safe
(string_'') string_''
)keyword_argument
)argument_list
)call
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_ordered) identifier_ordered
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(identifier_k) identifier_k
(string_'signature') string_'signature'
)comparison_operator
)if_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_sep) identifier_sep
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(attribute
(identifier_form) identifier_form
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_k) identifier_k
(conditional_expression
(call
(identifier_urlquote) identifier_urlquote
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_v) identifier_v
)argument_list
)call
(keyword_argument
(identifier_safe) identifier_safe
(string_'') string_''
)keyword_argument
)argument_list
)call
(comparison_operator
(identifier_k) identifier_k
(string_'signature') string_'signature'
)comparison_operator
(call
(identifier_str) identifier_str
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)conditional_expression
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_ordered) identifier_ordered
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Converts an authorization header dict-like object into a string representing the authorization.
Keyword arguments:
authheaders -- A string-indexable object which contains the headers appropriate for this signature version. |
(module
(function_definition
(function_name_get_items_of_offer_per_page) function_name_get_items_of_offer_per_page
(parameters
(identifier_self) identifier_self
(identifier_offer_id) identifier_offer_id
(default_parameter
(identifier_per_page) identifier_per_page
(integer_1000) integer_1000
)default_parameter
(default_parameter
(identifier_page) identifier_page
(integer_1) integer_1
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__get_resource_per_page) identifier__get_resource_per_page
)attribute
(argument_list
(keyword_argument
(identifier_resource) identifier_resource
(identifier_OFFER_ITEMS) identifier_OFFER_ITEMS
)keyword_argument
(keyword_argument
(identifier_per_page) identifier_per_page
(identifier_per_page) identifier_per_page
)keyword_argument
(keyword_argument
(identifier_page) identifier_page
(identifier_page) identifier_page
)keyword_argument
(keyword_argument
(identifier_params) identifier_params
(dictionary
(pair
(string_'offer_id') string_'offer_id'
(identifier_offer_id) identifier_offer_id
)pair
)dictionary
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get items of offer per page
:param offer_id: the offer id
:param per_page: How many objects per page. Default: 1000
:param page: Which page. Default: 1
:return: list |
(module
(function_definition
(function_name_peek) function_name_peek
(parameters
(identifier_init) identifier_init
(identifier_exposes) identifier_exposes
(default_parameter
(identifier_debug) identifier_debug
(False) False
)default_parameter
)parameters
(block
(function_definition
(function_name__peek) function_name__peek
(parameters
(identifier_store) identifier_store
(identifier_container) identifier_container
(default_parameter
(identifier__stack) identifier__stack
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(list_comprehension
(call
(attribute
(identifier_store) identifier_store
(identifier_peek) identifier_peek
)attribute
(argument_list
(identifier_objname) identifier_objname
(identifier_container) identifier_container
(keyword_argument
(identifier__stack) identifier__stack
(identifier__stack) identifier__stack
)keyword_argument
)argument_list
)call
(line_continuation_\) line_continuation_\
(for_in_clause
(identifier_objname) identifier_objname
(identifier_exposes) identifier_exposes
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(identifier_debug) identifier_debug
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_init) identifier_init
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)return_statement
)block
)function_definition
(return_statement
(identifier__peek) identifier__peek
)return_statement
)block
)function_definition
)module | Default deserializer factory.
Arguments:
init (callable): type constructor.
exposes (iterable): attributes to be peeked and passed to `init`.
Returns:
callable: deserializer (`peek` routine). |
(module
(function_definition
(function_name__run) function_name__run
(parameters
(identifier_name) identifier_name
(identifier_cmd) identifier_cmd
(default_parameter
(identifier_exec_driver) identifier_exec_driver
(None) None
)default_parameter
(default_parameter
(identifier_output) identifier_output
(None) None
)default_parameter
(default_parameter
(identifier_stdin) identifier_stdin
(None) None
)default_parameter
(default_parameter
(identifier_python_shell) identifier_python_shell
(True) True
)default_parameter
(default_parameter
(identifier_output_loglevel) identifier_output_loglevel
(string_'debug') string_'debug'
)default_parameter
(default_parameter
(identifier_ignore_retcode) identifier_ignore_retcode
(False) False
)default_parameter
(default_parameter
(identifier_use_vt) identifier_use_vt
(False) False
)default_parameter
(default_parameter
(identifier_keep_env) identifier_keep_env
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_exec_driver) identifier_exec_driver
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_exec_driver) identifier_exec_driver
(call
(identifier__get_exec_driver) identifier__get_exec_driver
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'container_resource.run') string_'container_resource.run'
)subscript
(argument_list
(identifier_name) identifier_name
(identifier_cmd) identifier_cmd
(keyword_argument
(identifier_container_type) identifier_container_type
(identifier___virtualname__) identifier___virtualname__
)keyword_argument
(keyword_argument
(identifier_exec_driver) identifier_exec_driver
(identifier_exec_driver) identifier_exec_driver
)keyword_argument
(keyword_argument
(identifier_output) identifier_output
(identifier_output) identifier_output
)keyword_argument
(keyword_argument
(identifier_stdin) identifier_stdin
(identifier_stdin) identifier_stdin
)keyword_argument
(keyword_argument
(identifier_python_shell) identifier_python_shell
(identifier_python_shell) identifier_python_shell
)keyword_argument
(keyword_argument
(identifier_output_loglevel) identifier_output_loglevel
(identifier_output_loglevel) identifier_output_loglevel
)keyword_argument
(keyword_argument
(identifier_ignore_retcode) identifier_ignore_retcode
(identifier_ignore_retcode) identifier_ignore_retcode
)keyword_argument
(keyword_argument
(identifier_use_vt) identifier_use_vt
(identifier_use_vt) identifier_use_vt
)keyword_argument
(keyword_argument
(identifier_keep_env) identifier_keep_env
(identifier_keep_env) identifier_keep_env
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_output) identifier_output
(tuple
(None) None
(string_'all') string_'all'
)tuple
)comparison_operator
(block
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
(else_clause
(block
(return_statement
(subscript
(identifier_ret) identifier_ret
(identifier_output) identifier_output
)subscript
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Common logic for docker.run functions |
(module
(function_definition
(function_name__get_default) function_name__get_default
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(attribute
(identifier_obj) identifier_obj
(identifier__property_values) identifier__property_values
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"Bokeh internal error, does not handle the case of self.name already in _property_values") string_"Bokeh internal error, does not handle the case of self.name already in _property_values"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_is_themed) identifier_is_themed
(boolean_operator
(comparison_operator
(call
(attribute
(identifier_obj) identifier_obj
(identifier_themed_values) identifier_themed_values
)attribute
(argument_list
)argument_list
)call
(None) None
)comparison_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(call
(attribute
(identifier_obj) identifier_obj
(identifier_themed_values) identifier_themed_values
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_default) identifier_default
(call
(attribute
(identifier_self) identifier_self
(identifier_instance_default) identifier_instance_default
)attribute
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_is_themed) identifier_is_themed
(block
(expression_statement
(assignment
(identifier_unstable_dict) identifier_unstable_dict
(attribute
(identifier_obj) identifier_obj
(identifier__unstable_themed_values) identifier__unstable_themed_values
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_unstable_dict) identifier_unstable_dict
(attribute
(identifier_obj) identifier_obj
(identifier__unstable_default_values) identifier__unstable_default_values
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_unstable_dict) identifier_unstable_dict
)comparison_operator
(block
(return_statement
(subscript
(identifier_unstable_dict) identifier_unstable_dict
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)subscript
)return_statement
)block
)if_statement
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_property) identifier_property
)attribute
(identifier__may_have_unstable_default) identifier__may_have_unstable_default
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_default) identifier_default
(identifier_PropertyValueContainer) identifier_PropertyValueContainer
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_default) identifier_default
(identifier__register_owner) identifier__register_owner
)attribute
(argument_list
(identifier_obj) identifier_obj
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_unstable_dict) identifier_unstable_dict
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)subscript
(identifier_default) identifier_default
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_default) identifier_default
)return_statement
)block
)function_definition
)module | Internal implementation of instance attribute access for default
values.
Handles bookeeping around |PropertyContainer| value, etc. |
(module
(function_definition
(function_name__pad) function_name__pad
(parameters
(identifier_input_signal) identifier_input_signal
(identifier_length) identifier_length
(default_parameter
(identifier_average) identifier_average
(integer_10) integer_10
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_padded_input_signal) identifier_padded_input_signal
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(identifier_length) identifier_length
(attribute
(identifier_input_signal) identifier_input_signal
(identifier_dtype) identifier_dtype
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_start_offset) identifier_start_offset
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_padded_input_signal) identifier_padded_input_signal
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_input_signal) identifier_input_signal
)argument_list
)call
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_padded_input_signal) identifier_padded_input_signal
(slice
(colon) colon
(identifier_start_offset) identifier_start_offset
)slice
)subscript
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_average) identifier_average
)attribute
(argument_list
(subscript
(identifier_input_signal) identifier_input_signal
(slice
(integer_0) integer_0
(colon) colon
(identifier_average) identifier_average
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_padded_input_signal) identifier_padded_input_signal
(slice
(identifier_start_offset) identifier_start_offset
(colon) colon
(parenthesized_expression
(binary_operator
(identifier_start_offset) identifier_start_offset
(call
(identifier_len) identifier_len
(argument_list
(identifier_input_signal) identifier_input_signal
)argument_list
)call
)binary_operator
)parenthesized_expression
)slice
)subscript
(subscript
(identifier_input_signal) identifier_input_signal
(slice
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_padded_input_signal) identifier_padded_input_signal
(slice
(parenthesized_expression
(binary_operator
(identifier_start_offset) identifier_start_offset
(call
(identifier_len) identifier_len
(argument_list
(identifier_input_signal) identifier_input_signal
)argument_list
)call
)binary_operator
)parenthesized_expression
(colon) colon
)slice
)subscript
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_average) identifier_average
)attribute
(argument_list
(subscript
(identifier_input_signal) identifier_input_signal
(slice
(unary_operator
(identifier_average) identifier_average
)unary_operator
(colon) colon
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_padded_input_signal) identifier_padded_input_signal
)return_statement
)block
)function_definition
)module | Helper function which increases the length of an input signal. The original
is inserted at the centre of the new signal and the extra values are set to
the average of the first and last parts of the original, respectively.
:param input_signal: the signal to be padded
:param length: the length of the padded signal
:param average: the number of points at the beginning/end of the signal
which are averaged to calculate the padded value
:return: |
(module
(function_definition
(function_name_delete_collection) function_name_delete_collection
(parameters
(identifier_mongo_uri) identifier_mongo_uri
(identifier_database_name) identifier_database_name
(identifier_collection_name) identifier_collection_name
)parameters
(block
(expression_statement
(assignment
(identifier_client) identifier_client
(call
(attribute
(identifier_pymongo) identifier_pymongo
(identifier_MongoClient) identifier_MongoClient
)attribute
(argument_list
(identifier_mongo_uri) identifier_mongo_uri
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_db) identifier_db
(subscript
(identifier_client) identifier_client
(identifier_database_name) identifier_database_name
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_db) identifier_db
(identifier_drop_collection) identifier_drop_collection
)attribute
(argument_list
(identifier_collection_name) identifier_collection_name
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Delete a mongo document collection using pymongo. Mongo daemon assumed to be running.
Inputs: - mongo_uri: A MongoDB URI.
- database_name: The mongo database name as a python string.
- collection_name: The mongo collection as a python string. |
(module
(function_definition
(function_name__get_serializer) function_name__get_serializer
(parameters
(identifier_output) identifier_output
)parameters
(block
(expression_statement
(assignment
(identifier_serializers) identifier_serializers
(call
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_loader) identifier_loader
)attribute
(identifier_serializers) identifier_serializers
)attribute
(argument_list
(identifier___opts__) identifier___opts__
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(return_statement
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_serializers) identifier_serializers
(identifier_output) identifier_output
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(call
(attribute
(string_"Unknown serializer '{0}' found for output option") string_"Unknown serializer '{0}' found for output option"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_output) identifier_output
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Helper to return known serializer based on
pass output argument |
(module
(function_definition
(function_name___add_images_to_manifest) function_name___add_images_to_manifest
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_xpath_expr) identifier_xpath_expr
(string_"//manifest:manifest[1]") string_"//manifest:manifest[1]"
)assignment
)expression_statement
(for_statement
(identifier_content_tree) identifier_content_tree
(attribute
(identifier_self) identifier_self
(identifier_content_trees) identifier_content_trees
)attribute
(block
(expression_statement
(assignment
(identifier_manifest_e) identifier_manifest_e
(call
(attribute
(identifier_content_tree) identifier_content_tree
(identifier_xpath) identifier_xpath
)attribute
(argument_list
(identifier_xpath_expr) identifier_xpath_expr
(keyword_argument
(identifier_namespaces) identifier_namespaces
(attribute
(identifier_self) identifier_self
(identifier_namespaces) identifier_namespaces
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_manifest_e) identifier_manifest_e
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(for_statement
(identifier_identifier) identifier_identifier
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_images) identifier_images
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_lxml) identifier_lxml
(identifier_etree) identifier_etree
)attribute
(identifier_SubElement) identifier_SubElement
)attribute
(argument_list
(subscript
(identifier_manifest_e) identifier_manifest_e
(integer_0) integer_0
)subscript
(binary_operator
(string_'{%s}file-entry') string_'{%s}file-entry'
(subscript
(attribute
(identifier_self) identifier_self
(identifier_namespaces) identifier_namespaces
)attribute
(string_'manifest') string_'manifest'
)subscript
)binary_operator
(keyword_argument
(identifier_attrib) identifier_attrib
(dictionary
(pair
(binary_operator
(string_'{%s}full-path') string_'{%s}full-path'
(subscript
(attribute
(identifier_self) identifier_self
(identifier_namespaces) identifier_namespaces
)attribute
(string_'manifest') string_'manifest'
)subscript
)binary_operator
(parenthesized_expression
(binary_operator
(identifier_PY3O_IMAGE_PREFIX) identifier_PY3O_IMAGE_PREFIX
(identifier_identifier) identifier_identifier
)binary_operator
)parenthesized_expression
)pair
(pair
(binary_operator
(string_'{%s}media-type') string_'{%s}media-type'
(subscript
(attribute
(identifier_self) identifier_self
(identifier_namespaces) identifier_namespaces
)attribute
(string_'manifest') string_'manifest'
)subscript
)binary_operator
(string_'') string_''
)pair
)dictionary
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Add entries for py3o images into the manifest file. |
(module
(function_definition
(function_name_simpleQuery) function_name_simpleQuery
(parameters
(identifier_self) identifier_self
(identifier_queryType) identifier_queryType
(default_parameter
(identifier_rawResults) identifier_rawResults
(False) False
)default_parameter
(dictionary_splat_pattern
(identifier_queryArgs) identifier_queryArgs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(identifier_SimpleQuery) identifier_SimpleQuery
(argument_list
(identifier_self) identifier_self
(identifier_queryType) identifier_queryType
(identifier_rawResults) identifier_rawResults
(dictionary_splat
(identifier_queryArgs) identifier_queryArgs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | General interface for simple queries. queryType can be something like 'all', 'by-example' etc... everything is in the arango doc.
If rawResults, the query will return dictionaries instead of Document objetcs. |
(module
(function_definition
(function_name_on_connect) function_name_on_connect
(parameters
(identifier_client) identifier_client
)parameters
(block
(print_statement
(binary_operator
(string_"++ Opened connection to %s") string_"++ Opened connection to %s"
(call
(attribute
(identifier_client) identifier_client
(identifier_addrport) identifier_addrport
)attribute
(argument_list
)argument_list
)call
)binary_operator
)print_statement
(expression_statement
(call
(identifier_broadcast) identifier_broadcast
(argument_list
(binary_operator
(string_'%s joins the conversation.\n') string_'%s joins the conversation.\n'
(call
(attribute
(identifier_client) identifier_client
(identifier_addrport) identifier_addrport
)attribute
(argument_list
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_CLIENT_LIST) identifier_CLIENT_LIST
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_client) identifier_client
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_client) identifier_client
(identifier_send) identifier_send
)attribute
(argument_list
(binary_operator
(string_"Welcome to the Chat Server, %s.\n") string_"Welcome to the Chat Server, %s.\n"
(call
(attribute
(identifier_client) identifier_client
(identifier_addrport) identifier_addrport
)attribute
(argument_list
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Sample on_connect function.
Handles new connections. |
(module
(function_definition
(function_name__speak_header_always_inherit) function_name__speak_header_always_inherit
(parameters
(identifier_self) identifier_self
(identifier_element) identifier_element
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__speak_header_once_inherit) identifier__speak_header_once_inherit
)attribute
(argument_list
(identifier_element) identifier_element
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_cell_elements) identifier_cell_elements
(call
(attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_html_parser) identifier_html_parser
)attribute
(identifier_find) identifier_find
)attribute
(argument_list
(identifier_element) identifier_element
)argument_list
)call
(identifier_find_descendants) identifier_find_descendants
)attribute
(argument_list
(string_'td[headers],th[headers]') string_'td[headers],th[headers]'
)argument_list
)call
(identifier_list_results) identifier_list_results
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_accessible_display) identifier_accessible_display
(call
(identifier_AccessibleDisplayImplementation) identifier_AccessibleDisplayImplementation
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_html_parser) identifier_html_parser
)attribute
(attribute
(identifier_self) identifier_self
(identifier_configure) identifier_configure
)attribute
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_cell_element) identifier_cell_element
(identifier_cell_elements) identifier_cell_elements
(block
(expression_statement
(call
(attribute
(identifier_accessible_display) identifier_accessible_display
(identifier_display_cell_header) identifier_display_cell_header
)attribute
(argument_list
(identifier_cell_element) identifier_cell_element
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | The cells headers will be spoken for every data cell for element and
descendants.
:param element: The element.
:type element: hatemile.util.html.htmldomelement.HTMLDOMElement |
(module
(function_definition
(function_name_get_accounts) function_name_get_accounts
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_username) identifier_username
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(string_"{0}/{1}/accounts") string_"{0}/{1}/accounts"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_domain) identifier_domain
)attribute
(attribute
(identifier_self) identifier_self
(identifier_API_VERSION) identifier_API_VERSION
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_"username") string_"username"
(identifier_username) identifier_username
)pair
)dictionary
)assignment
)expression_statement
(try_statement
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__Client__call) identifier__Client__call
)attribute
(argument_list
(keyword_argument
(identifier_uri) identifier_uri
(identifier_url) identifier_url
)keyword_argument
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
(keyword_argument
(identifier_method) identifier_method
(string_"get") string_"get"
)keyword_argument
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_RequestException) identifier_RequestException
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
(except_clause
(identifier_AssertionError) identifier_AssertionError
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Get a list of accounts owned by the user.
Parameters
----------
username : string
The name of the user. Note: This is only required on the
sandbox, on production systems your access token will
identify you.
See more:
http://developer.oanda.com/rest-sandbox/accounts/#-a-name-getaccountsforuser-a-get-accounts-for-a-user |
(module
(function_definition
(function_name_validate_object_action) function_name_validate_object_action
(parameters
(identifier_self) identifier_self
(identifier_action_name) identifier_action_name
(default_parameter
(identifier_obj) identifier_obj
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_action_method) identifier_action_method
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_action_name) identifier_action_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(not_operator
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_action_method) identifier_action_method
(string_'detail') string_'detail'
(False) False
)argument_list
)call
)not_operator
(comparison_operator
(identifier_action_name) identifier_action_name
(tuple
(string_'update') string_'update'
(string_'partial_update') string_'partial_update'
(string_'destroy') string_'destroy'
)tuple
)comparison_operator
)boolean_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_validators) identifier_validators
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(binary_operator
(identifier_action_name) identifier_action_name
(string_'_validators') string_'_validators'
)binary_operator
(list
)list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_validator) identifier_validator
(identifier_validators) identifier_validators
(block
(expression_statement
(call
(identifier_validator) identifier_validator
(argument_list
(boolean_operator
(identifier_obj) identifier_obj
(call
(attribute
(identifier_self) identifier_self
(identifier_get_object) identifier_get_object
)attribute
(argument_list
)argument_list
)call
)boolean_operator
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Execute validation for actions that are related to particular object |
(module
(function_definition
(function_name_is_subdir) function_name_is_subdir
(parameters
(identifier_base_path) identifier_base_path
(identifier_test_path) identifier_test_path
(default_parameter
(identifier_trailing_slash) identifier_trailing_slash
(False) False
)default_parameter
(default_parameter
(identifier_wildcards) identifier_wildcards
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_trailing_slash) identifier_trailing_slash
(block
(expression_statement
(assignment
(identifier_base_path) identifier_base_path
(binary_operator
(subscript
(call
(attribute
(identifier_base_path) identifier_base_path
(identifier_rsplit) identifier_rsplit
)attribute
(argument_list
(string_'/') string_'/'
(integer_1) integer_1
)argument_list
)call
(integer_0) integer_0
)subscript
(string_'/') string_'/'
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_test_path) identifier_test_path
(binary_operator
(subscript
(call
(attribute
(identifier_test_path) identifier_test_path
(identifier_rsplit) identifier_rsplit
)attribute
(argument_list
(string_'/') string_'/'
(integer_1) integer_1
)argument_list
)call
(integer_0) integer_0
)subscript
(string_'/') string_'/'
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(if_statement
(not_operator
(call
(attribute
(identifier_base_path) identifier_base_path
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
)not_operator
(block
(expression_statement
(augmented_assignment
(identifier_base_path) identifier_base_path
(string_'/') string_'/'
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(identifier_test_path) identifier_test_path
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
)not_operator
(block
(expression_statement
(augmented_assignment
(identifier_test_path) identifier_test_path
(string_'/') string_'/'
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)else_clause
)if_statement
(if_statement
(identifier_wildcards) identifier_wildcards
(block
(return_statement
(call
(attribute
(identifier_fnmatch) identifier_fnmatch
(identifier_fnmatchcase) identifier_fnmatchcase
)attribute
(argument_list
(identifier_test_path) identifier_test_path
(identifier_base_path) identifier_base_path
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_test_path) identifier_test_path
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_base_path) identifier_base_path
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return whether the a path is a subpath of another.
Args:
base_path: The base path
test_path: The path which we are testing
trailing_slash: If True, the trailing slash is treated with importance.
For example, ``/images/`` is a directory while ``/images`` is a
file.
wildcards: If True, globbing wildcards are matched against paths |
(module
(function_definition
(function_name_deferToGreenletPool) function_name_deferToGreenletPool
(parameters
(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_reactor) identifier_reactor
(subscript
(identifier_args) identifier_args
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pool) identifier_pool
(subscript
(identifier_args) identifier_args
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_func) identifier_func
(subscript
(identifier_args) identifier_args
(integer_2) integer_2
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(attribute
(identifier_defer) identifier_defer
(identifier_Deferred) identifier_Deferred
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(function_definition
(function_name_task) function_name_task
(parameters
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_reactor) identifier_reactor
(identifier_callFromGreenlet) identifier_callFromGreenlet
)attribute
(argument_list
(attribute
(identifier_d) identifier_d
(identifier_callback) identifier_callback
)attribute
(call
(identifier_func) identifier_func
(argument_list
(list_splat
(subscript
(identifier_args) identifier_args
(slice
(integer_3) integer_3
(colon) colon
)slice
)subscript
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(expression_statement
(call
(attribute
(identifier_reactor) identifier_reactor
(identifier_callFromGreenlet) identifier_callFromGreenlet
)attribute
(argument_list
(attribute
(identifier_d) identifier_d
(identifier_errback) identifier_errback
)attribute
(call
(attribute
(identifier_failure) identifier_failure
(identifier_Failure) identifier_Failure
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
(expression_statement
(call
(attribute
(identifier_pool) identifier_pool
(identifier_add) identifier_add
)attribute
(argument_list
(call
(identifier_spawn) identifier_spawn
(argument_list
(identifier_task) identifier_task
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_d) identifier_d
)return_statement
)block
)function_definition
)module | Call function using a greenlet from the given pool and return the result as a Deferred |
(module
(function_definition
(function_name_remove_children) function_name_remove_children
(parameters
(identifier_self) identifier_self
(identifier_id_) identifier_id_
)parameters
(block
(expression_statement
(assignment
(identifier_results) identifier_results
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__rls) identifier__rls
)attribute
(identifier_get_relationships_by_genus_type_for_source) identifier_get_relationships_by_genus_type_for_source
)attribute
(argument_list
(identifier_id_) identifier_id_
(attribute
(identifier_self) identifier_self
(identifier__relationship_type) identifier__relationship_type
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_results) identifier_results
(identifier_available) identifier_available
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_NotFound) identifier_NotFound
)attribute
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
(for_statement
(identifier_r) identifier_r
(identifier_results) identifier_results
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__ras) identifier__ras
)attribute
(identifier_delete_relationship) identifier_delete_relationship
)attribute
(argument_list
(call
(attribute
(identifier_r) identifier_r
(identifier_get_id) identifier_get_id
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Removes all childrenfrom an ``Id``.
arg: id (osid.id.Id): the ``Id`` of the node
raise: NotFound - an node identified by the given ``Id`` was
not found
raise: NullArgument - ``id`` is ``null``
raise: OperationFailed - unable to complete request
raise: PermissionDenied - authorization failure
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name_add_member_to_list) function_name_add_member_to_list
(parameters
(identifier_self) identifier_self
(identifier_username) identifier_username
(identifier_listname) identifier_listname
(default_parameter
(identifier_member_type) identifier_member_type
(string_"USER") string_"USER"
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_service) identifier_service
)attribute
(identifier_addMemberToList) identifier_addMemberToList
)attribute
(argument_list
(identifier_listname) identifier_listname
(identifier_username) identifier_username
(identifier_member_type) identifier_member_type
(attribute
(identifier_self) identifier_self
(identifier_proxy_id) identifier_proxy_id
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Add a member to an existing list.
Args:
username (str): The username of the user to add
listname (str): The name of the list to add the user to
member_type (str): Normally, this should be "USER".
If you are adding a list as a member of another list,
set this to "LIST", instead. |
(module
(function_definition
(function_name_bind) function_name_bind
(parameters
(identifier_self) identifier_self
(identifier_callback) identifier_callback
)parameters
(block
(expression_statement
(assignment
(identifier_handlers) identifier_handlers
(attribute
(identifier_self) identifier_self
(identifier__handlers) identifier__handlers
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__self) identifier__self
)attribute
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(binary_operator
(string_'%s already fired, cannot add callbacks') string_'%s already fired, cannot add callbacks'
(identifier_self) identifier_self
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_handlers) identifier_handlers
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_handlers) identifier_handlers
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__handlers) identifier__handlers
)attribute
(identifier_handlers) identifier_handlers
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_handlers) identifier_handlers
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_callback) identifier_callback
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Bind a ``callback`` to this event. |
(module
(function_definition
(function_name_applyconfiguration) function_name_applyconfiguration
(parameters
(identifier_targets) identifier_targets
(default_parameter
(identifier_conf) identifier_conf
(None) None
)default_parameter
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_target) identifier_target
(identifier_targets) identifier_targets
(block
(expression_statement
(assignment
(identifier_configurables) identifier_configurables
(call
(attribute
(identifier_Configurable) identifier_Configurable
(identifier_get_annotations) identifier_get_annotations
)attribute
(argument_list
(identifier_target) identifier_target
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_configurables) identifier_configurables
)not_operator
(block
(expression_statement
(assignment
(identifier_configurables) identifier_configurables
(list
(call
(identifier_Configurable) identifier_Configurable
(argument_list
)argument_list
)call
)list
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_configurable) identifier_configurable
(identifier_configurables) identifier_configurables
(block
(expression_statement
(assignment
(identifier_configuredtargets) identifier_configuredtargets
(call
(attribute
(identifier_configurable) identifier_configurable
(identifier_applyconfiguration) identifier_applyconfiguration
)attribute
(argument_list
(keyword_argument
(identifier_targets) identifier_targets
(list
(identifier_target) identifier_target
)list
)keyword_argument
(keyword_argument
(identifier_conf) identifier_conf
(identifier_conf) identifier_conf
)keyword_argument
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_result) identifier_result
(identifier_configuredtargets) identifier_configuredtargets
)augmented_assignment
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Apply configuration on input targets.
If targets are not annotated by a Configurable, a new one is instanciated.
:param Iterable targets: targets to configurate.
:param tuple args: applyconfiguration var args.
:param dict kwargs: applyconfiguration keywords.
:return: configured targets.
:rtype: list |
(module
(function_definition
(function_name_get) function_name_get
(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
(identifier_context) identifier_context
(call
(attribute
(identifier_self) identifier_self
(identifier_get_context_data) identifier_get_context_data
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_context) identifier_context
(identifier_update) identifier_update
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_extra_context) identifier_extra_context
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_context) identifier_context
(string_'crumbs') string_'crumbs'
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_get_crumbs) identifier_get_crumbs
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_context) identifier_context
(string_'title') string_'title'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_title) identifier_title
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_context) identifier_context
(string_'suit') string_'suit'
)subscript
(comparison_operator
(string_'suit') string_'suit'
(attribute
(identifier_settings) identifier_settings
(identifier_INSTALLED_APPS) identifier_INSTALLED_APPS
)attribute
)comparison_operator
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(call
(attribute
(identifier_context) identifier_context
(identifier_get) identifier_get
)attribute
(argument_list
(string_'dashboard_grid') string_'dashboard_grid'
(None) None
)argument_list
)call
(None) None
)comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_grid) identifier_grid
)attribute
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_context) identifier_context
(string_'dashboard_grid') string_'dashboard_grid'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_grid) identifier_grid
)attribute
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_render_to_response) identifier_render_to_response
)attribute
(argument_list
(identifier_context) identifier_context
)argument_list
)call
)return_statement
)block
)function_definition
)module | Django view get function.
Add items of extra_context, crumbs and grid to context.
Args:
request (): Django's request object.
*args (): request args.
**kwargs (): request kwargs.
Returns:
response: render to response with context. |
(module
(function_definition
(function_name_from_status) function_name_from_status
(parameters
(identifier_cls) identifier_cls
(identifier_status_line) identifier_status_line
(default_parameter
(identifier_msg) identifier_msg
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_method) identifier_method
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_cls) identifier_cls
(call
(attribute
(subscript
(call
(attribute
(identifier_status_line) identifier_status_line
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(slice
(integer_4) integer_4
(colon) colon
)slice
)subscript
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_' ') string_' '
(string_'_') string_'_'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_method) identifier_method
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a class method from bottle.HTTPError.status_line attribute.
Useful for patching `bottle.HTTPError` for web services.
Args:
status_line (str): bottle.HTTPError.status_line text.
msg: The message data for response.
Returns:
Class method based on status_line arg.
Examples:
>>> status_line = '401 Unauthorized'
>>> error_msg = 'Get out!'
>>> resp = WSResponse.from_status(status_line, error_msg)
>>> resp['errors']
['Get out!']
>>> resp['status_text']
'Unauthorized' |
(module
(function_definition
(function_name_cli) function_name_cli
(parameters
(identifier_env) identifier_env
(identifier_identifier) identifier_identifier
)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
(expression_statement
(assignment
(pattern_list
(identifier_loadbal_id) identifier_loadbal_id
(identifier_group_id) identifier_group_id
)pattern_list
(call
(attribute
(identifier_loadbal) identifier_loadbal
(identifier_parse_id) identifier_parse_id
)attribute
(argument_list
(identifier_identifier) identifier_identifier
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_mgr) identifier_mgr
(identifier_reset_service_group) identifier_reset_service_group
)attribute
(argument_list
(identifier_loadbal_id) identifier_loadbal_id
(identifier_group_id) identifier_group_id
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_env) identifier_env
(identifier_fout) identifier_fout
)attribute
(argument_list
(string_'Load balancer service group connections are being reset!') string_'Load balancer service group connections are being reset!'
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Reset connections on a certain service group. |
(module
(function_definition
(function_name__make_pretty_arguments) function_name__make_pretty_arguments
(parameters
(identifier_arguments) identifier_arguments
)parameters
(block
(if_statement
(call
(attribute
(identifier_arguments) identifier_arguments
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_"\n Arguments:") string_"\n Arguments:"
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_arguments) identifier_arguments
(call
(attribute
(string_"\n") string_"\n"
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(lambda
(lambda_parameters
(identifier_u) identifier_u
)lambda_parameters
(subscript
(identifier_u) identifier_u
(slice
(integer_6) integer_6
(colon) colon
)slice
)subscript
)lambda
(subscript
(call
(attribute
(call
(attribute
(identifier_arguments) identifier_arguments
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(string_"\n") string_"\n"
)argument_list
)call
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(string_"**Arguments:**\n\n%s\n\n") string_"**Arguments:**\n\n%s\n\n"
(identifier_arguments) identifier_arguments
)binary_operator
)return_statement
)block
)if_statement
)block
)function_definition
)module | Makes the arguments description pretty and returns a formatted string if `arguments`
starts with the argument prefix. Otherwise, returns None.
Expected input:
Arguments:
* arg0 - ...
...
* arg0 - ...
...
Expected output:
**Arguments:**
* arg0 - ...
...
* arg0 - ...
... |
(module
(function_definition
(function_name_score_for_task) function_name_score_for_task
(parameters
(identifier_properties) identifier_properties
(identifier_category) identifier_category
(identifier_result) identifier_result
)parameters
(block
(assert_statement
(comparison_operator
(identifier_result) identifier_result
(None) None
)comparison_operator
)assert_statement
(if_statement
(boolean_operator
(identifier_properties) identifier_properties
(attribute
(call
(attribute
(identifier_Property) identifier_Property
(identifier_create_from_names) identifier_create_from_names
)attribute
(argument_list
(identifier_properties) identifier_properties
)argument_list
)call
(identifier_is_svcomp) identifier_is_svcomp
)attribute
)boolean_operator
(block
(return_statement
(call
(identifier__svcomp_score) identifier__svcomp_score
(argument_list
(identifier_category) identifier_category
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Return the possible score of task, depending on whether the result is correct or not. |
(module
(function_definition
(function_name_kakwani) function_name_kakwani
(parameters
(identifier_values) identifier_values
(identifier_ineq_axis) identifier_ineq_axis
(default_parameter
(identifier_weights) identifier_weights
(None) None
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_scipy) identifier_scipy
(identifier_integrate) identifier_integrate
)dotted_name
(dotted_name
(identifier_simps) identifier_simps
)dotted_name
)import_from_statement
(if_statement
(comparison_operator
(identifier_weights) identifier_weights
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_weights) identifier_weights
(call
(identifier_ones) identifier_ones
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_values) identifier_values
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_PLCx) identifier_PLCx
(identifier_PLCy) identifier_PLCy
)pattern_list
(call
(identifier_pseudo_lorenz) identifier_pseudo_lorenz
(argument_list
(identifier_values) identifier_values
(identifier_ineq_axis) identifier_ineq_axis
(identifier_weights) identifier_weights
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_LCx) identifier_LCx
(identifier_LCy) identifier_LCy
)pattern_list
(call
(identifier_lorenz) identifier_lorenz
(argument_list
(identifier_ineq_axis) identifier_ineq_axis
(identifier_weights) identifier_weights
)argument_list
)call
)assignment
)expression_statement
(delete_statement
(identifier_PLCx) identifier_PLCx
)delete_statement
(return_statement
(call
(identifier_simps) identifier_simps
(argument_list
(parenthesized_expression
(binary_operator
(identifier_LCy) identifier_LCy
(identifier_PLCy) identifier_PLCy
)binary_operator
)parenthesized_expression
(identifier_LCx) identifier_LCx
)argument_list
)call
)return_statement
)block
)function_definition
)module | Computes the Kakwani index |
(module
(function_definition
(function_name__fetch_pdb) function_name__fetch_pdb
(parameters
(identifier_pdb_code) identifier_pdb_code
)parameters
(block
(expression_statement
(assignment
(identifier_txt) identifier_txt
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(string_'http://www.rcsb.org/pdb/files/%s.pdb') string_'http://www.rcsb.org/pdb/files/%s.pdb'
(call
(attribute
(identifier_pdb_code) identifier_pdb_code
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_urlopen) identifier_urlopen
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_txt) identifier_txt
(call
(attribute
(identifier_response) identifier_response
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_version_info) identifier_version_info
)attribute
(integer_0) integer_0
)subscript
(integer_3) integer_3
)comparison_operator
(block
(expression_statement
(assignment
(identifier_txt) identifier_txt
(call
(attribute
(identifier_txt) identifier_txt
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_txt) identifier_txt
(call
(attribute
(identifier_txt) identifier_txt
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'ascii') string_'ascii'
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
(except_clause
(as_pattern
(identifier_HTTPError) identifier_HTTPError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_'HTTP Error %s') string_'HTTP Error %s'
(attribute
(identifier_e) identifier_e
(identifier_code) identifier_code
)attribute
)binary_operator
)argument_list
)call
)expression_statement
)block
)except_clause
(except_clause
(as_pattern
(identifier_URLError) identifier_URLError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_'URL Error %s') string_'URL Error %s'
(attribute
(identifier_e) identifier_e
(identifier_args) identifier_args
)attribute
)binary_operator
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(expression_list
(identifier_url) identifier_url
(identifier_txt) identifier_txt
)expression_list
)return_statement
)block
)function_definition
)module | Load PDB file from rcsb.org. |
(module
(function_definition
(function_name_wrap_search) function_name_wrap_search
(parameters
(identifier_cls) identifier_cls
(identifier_response) identifier_response
)parameters
(block
(expression_statement
(assignment
(identifier_games) identifier_games
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_json) identifier_json
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_gamejsons) identifier_gamejsons
(subscript
(identifier_json) identifier_json
(string_'games') string_'games'
)subscript
)assignment
)expression_statement
(for_statement
(identifier_j) identifier_j
(identifier_gamejsons) identifier_gamejsons
(block
(expression_statement
(assignment
(identifier_g) identifier_g
(call
(attribute
(identifier_cls) identifier_cls
(identifier_wrap_json) identifier_wrap_json
)attribute
(argument_list
(identifier_j) identifier_j
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_games) identifier_games
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_g) identifier_g
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_games) identifier_games
)return_statement
)block
)function_definition
)module | Wrap the response from a game search into instances
and return them
:param response: The response from searching a game
:type response: :class:`requests.Response`
:returns: the new game instances
:rtype: :class:`list` of :class:`Game`
:raises: None |
(module
(function_definition
(function_name__get_relative_path) function_name__get_relative_path
(parameters
(identifier_self) identifier_self
(identifier_full_path) identifier_full_path
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_rel_path) identifier_rel_path
(call
(attribute
(call
(identifier_Path) identifier_Path
(argument_list
(identifier_full_path) identifier_full_path
)argument_list
)call
(identifier_relative_to) identifier_relative_to
)attribute
(argument_list
(call
(attribute
(call
(identifier_Path) identifier_Path
(argument_list
)argument_list
)call
(identifier_absolute) identifier_absolute
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_error) identifier_error
)attribute
(argument_list
(string_"%s: Couldn't find relative path of '%s' from '%s'.") string_"%s: Couldn't find relative path of '%s' from '%s'."
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_full_path) identifier_full_path
(call
(attribute
(call
(identifier_Path) identifier_Path
(argument_list
)argument_list
)call
(identifier_absolute) identifier_absolute
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_full_path) identifier_full_path
)return_statement
)block
)except_clause
)try_statement
(return_statement
(call
(identifier_str) identifier_str
(argument_list
(identifier_rel_path) identifier_rel_path
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the relative path from current path. |
(module
(function_definition
(function_name__config_chooser_dialog) function_name__config_chooser_dialog
(parameters
(identifier_self) identifier_self
(identifier_title_text) identifier_title_text
(identifier_description) identifier_description
)parameters
(block
(expression_statement
(assignment
(identifier_dialog) identifier_dialog
(call
(attribute
(identifier_Gtk) identifier_Gtk
(identifier_Dialog) identifier_Dialog
)attribute
(argument_list
(identifier_title_text) identifier_title_text
(subscript
(attribute
(identifier_self) identifier_self
(identifier_view) identifier_view
)attribute
(string_"preferences_window") string_"preferences_window"
)subscript
(keyword_argument
(identifier_flags) identifier_flags
(integer_0) integer_0
)keyword_argument
(keyword_argument
(identifier_buttons) identifier_buttons
(tuple
(attribute
(identifier_Gtk) identifier_Gtk
(identifier_STOCK_CANCEL) identifier_STOCK_CANCEL
)attribute
(attribute
(attribute
(identifier_Gtk) identifier_Gtk
(identifier_ResponseType) identifier_ResponseType
)attribute
(identifier_REJECT) identifier_REJECT
)attribute
(attribute
(identifier_Gtk) identifier_Gtk
(identifier_STOCK_OK) identifier_STOCK_OK
)attribute
(attribute
(attribute
(identifier_Gtk) identifier_Gtk
(identifier_ResponseType) identifier_ResponseType
)attribute
(identifier_ACCEPT) identifier_ACCEPT
)attribute
)tuple
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_label) identifier_label
(call
(attribute
(identifier_Gtk) identifier_Gtk
(identifier_Label) identifier_Label
)attribute
(argument_list
(keyword_argument
(identifier_label) identifier_label
(identifier_description) identifier_description
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_label) identifier_label
(identifier_set_padding) identifier_set_padding
)attribute
(argument_list
(keyword_argument
(identifier_xpad) identifier_xpad
(integer_10) integer_10
)keyword_argument
(keyword_argument
(identifier_ypad) identifier_ypad
(integer_10) integer_10
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_dialog) identifier_dialog
(identifier_vbox) identifier_vbox
)attribute
(identifier_pack_start) identifier_pack_start
)attribute
(argument_list
(identifier_label) identifier_label
(True) True
(True) True
(integer_0) integer_0
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_label) identifier_label
(identifier_show) identifier_show
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__gui_checkbox) identifier__gui_checkbox
)attribute
(call
(attribute
(identifier_Gtk) identifier_Gtk
(identifier_CheckButton) identifier_CheckButton
)attribute
(argument_list
(keyword_argument
(identifier_label) identifier_label
(string_"GUI Config") string_"GUI Config"
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_dialog) identifier_dialog
(identifier_vbox) identifier_vbox
)attribute
(identifier_pack_start) identifier_pack_start
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__gui_checkbox) identifier__gui_checkbox
)attribute
(True) True
(True) True
(integer_0) integer_0
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__gui_checkbox) identifier__gui_checkbox
)attribute
(identifier_show) identifier_show
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__core_checkbox) identifier__core_checkbox
)attribute
(call
(attribute
(identifier_Gtk) identifier_Gtk
(identifier_CheckButton) identifier_CheckButton
)attribute
(argument_list
(keyword_argument
(identifier_label) identifier_label
(string_"Core Config") string_"Core Config"
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__core_checkbox) identifier__core_checkbox
)attribute
(identifier_show) identifier_show
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_dialog) identifier_dialog
(identifier_vbox) identifier_vbox
)attribute
(identifier_pack_start) identifier_pack_start
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__core_checkbox) identifier__core_checkbox
)attribute
(True) True
(True) True
(integer_0) integer_0
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_dialog) identifier_dialog
(identifier_run) identifier_run
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_dialog) identifier_dialog
(identifier_destroy) identifier_destroy
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Dialog to select which config shall be exported
:param title_text: Title text
:param description: Description |
(module
(function_definition
(function_name_add_missing_optional_args_with_value_none) function_name_add_missing_optional_args_with_value_none
(parameters
(identifier_args) identifier_args
(identifier_optional_args) identifier_optional_args
)parameters
(block
(for_statement
(identifier_name) identifier_name
(identifier_optional_args) identifier_optional_args
(block
(if_statement
(not_operator
(comparison_operator
(identifier_name) identifier_name
(call
(attribute
(identifier_args) identifier_args
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)not_operator
(block
(expression_statement
(assignment
(subscript
(identifier_args) identifier_args
(identifier_name) identifier_name
)subscript
(None) None
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_args) identifier_args
)return_statement
)block
)function_definition
)module | Adds key-value pairs to the passed dictionary, so that
afterwards, the dictionary can be used without needing
to check for KeyErrors.
If the keys passed as a second argument are not present,
they are added with None as a value.
:args: The dictionary to be completed.
:optional_args: The keys that need to be added, if
they are not present.
:return: The modified dictionary. |
(module
(function_definition
(function_name_bltfrm) function_name_bltfrm
(parameters
(identifier_frmcls) identifier_frmcls
(default_parameter
(identifier_outCell) identifier_outCell
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_frmcls) identifier_frmcls
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
(identifier_frmcls) identifier_frmcls
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_outCell) identifier_outCell
)not_operator
(block
(expression_statement
(assignment
(identifier_outCell) identifier_outCell
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_SPICEINT_CELL) identifier_SPICEINT_CELL
)attribute
(argument_list
(integer_1000) integer_1000
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_libspice) identifier_libspice
(identifier_bltfrm_c) identifier_bltfrm_c
)attribute
(argument_list
(identifier_frmcls) identifier_frmcls
(identifier_outCell) identifier_outCell
)argument_list
)call
)expression_statement
(return_statement
(identifier_outCell) identifier_outCell
)return_statement
)block
)function_definition
)module | Return a SPICE set containing the frame IDs of all built-in frames
of a specified class.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bltfrm_c.html
:param frmcls: Frame class.
:type frmcls: int
:param outCell: Optional SpiceInt Cell that is returned
:type outCell: spiceypy.utils.support_types.SpiceCell
:return: Set of ID codes of frames of the specified class.
:rtype: spiceypy.utils.support_types.SpiceCell |
(module
(function_definition
(function_name_isrchc) function_name_isrchc
(parameters
(identifier_value) identifier_value
(identifier_ndim) identifier_ndim
(identifier_lenvals) identifier_lenvals
(identifier_array) identifier_array
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_stringToCharP) identifier_stringToCharP
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_array) identifier_array
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_listToCharArrayPtr) identifier_listToCharArrayPtr
)attribute
(argument_list
(identifier_array) identifier_array
(keyword_argument
(identifier_xLen) identifier_xLen
(identifier_lenvals) identifier_lenvals
)keyword_argument
(keyword_argument
(identifier_yLen) identifier_yLen
(identifier_ndim) identifier_ndim
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ndim) identifier_ndim
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
(identifier_ndim) identifier_ndim
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lenvals) identifier_lenvals
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
(identifier_lenvals) identifier_lenvals
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_libspice) identifier_libspice
(identifier_isrchc_c) identifier_isrchc_c
)attribute
(argument_list
(identifier_value) identifier_value
(identifier_ndim) identifier_ndim
(identifier_lenvals) identifier_lenvals
(identifier_array) identifier_array
)argument_list
)call
)return_statement
)block
)function_definition
)module | Search for a given value within a character string array. Return
the index of the first matching array entry, or -1 if the key
value was not found.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/isrchc_c.html
:param value: Key value to be found in array.
:type value: str
:param ndim: Dimension of array.
:type ndim: int
:param lenvals: String length.
:type lenvals: int
:param array: Character string array to search.
:type array: list of str
:return:
The index of the first matching array element or -1
if the value is not found.
:rtype: int |
(module
(function_definition
(function_name_add_text_content_type) function_name_add_text_content_type
(parameters
(identifier_application) identifier_application
(identifier_content_type) identifier_content_type
(identifier_default_encoding) identifier_default_encoding
(identifier_dumps) identifier_dumps
(identifier_loads) identifier_loads
)parameters
(block
(expression_statement
(assignment
(identifier_parsed) identifier_parsed
(call
(attribute
(identifier_headers) identifier_headers
(identifier_parse_content_type) identifier_parse_content_type
)attribute
(argument_list
(identifier_content_type) identifier_content_type
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_parsed) identifier_parsed
(identifier_parameters) identifier_parameters
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'charset') string_'charset'
(None) None
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_normalized) identifier_normalized
(call
(identifier_str) identifier_str
(argument_list
(identifier_parsed) identifier_parsed
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_add_transcoder) identifier_add_transcoder
(argument_list
(identifier_application) identifier_application
(call
(attribute
(identifier_handlers) identifier_handlers
(identifier_TextContentHandler) identifier_TextContentHandler
)attribute
(argument_list
(identifier_normalized) identifier_normalized
(identifier_dumps) identifier_dumps
(identifier_loads) identifier_loads
(identifier_default_encoding) identifier_default_encoding
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add handler for a text content type.
:param tornado.web.Application application: the application to modify
:param str content_type: the content type to add
:param str default_encoding: encoding to use when one is unspecified
:param dumps: function that dumps a dictionary to a string.
``dumps(dict, encoding:str) -> str``
:param loads: function that loads a dictionary from a string.
``loads(str, encoding:str) -> dict``
Note that the ``charset`` parameter is stripped from `content_type`
if it is present. |
(module
(function_definition
(function_name_match_ref) function_name_match_ref
(parameters
(identifier_self) identifier_self
(identifier_ref) identifier_ref
)parameters
(block
(if_statement
(comparison_operator
(identifier_ref) identifier_ref
(attribute
(identifier_self) identifier_self
(identifier_refs) identifier_refs
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__matched_ref) identifier__matched_ref
)attribute
(identifier_ref) identifier_ref
)assignment
)expression_statement
(return_statement
(True) True
)return_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Check if the ref matches one the concept's aliases.
If so, mark the matched ref so that we use it as the column label. |
(module
(function_definition
(function_name_sparkline_display_value_type) function_name_sparkline_display_value_type
(parameters
(identifier_self) identifier_self
(identifier_sparkline_display_value_type) identifier_sparkline_display_value_type
)parameters
(block
(expression_statement
(assignment
(identifier_allowed_values) identifier_allowed_values
(list
(string_"VALUE") string_"VALUE"
(string_"LABEL") string_"LABEL"
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_sparkline_display_value_type) identifier_sparkline_display_value_type
(identifier_allowed_values) identifier_allowed_values
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"Invalid value for `sparkline_display_value_type` ({0}), must be one of {1}") string_"Invalid value for `sparkline_display_value_type` ({0}), must be one of {1}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_sparkline_display_value_type) identifier_sparkline_display_value_type
(identifier_allowed_values) identifier_allowed_values
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__sparkline_display_value_type) identifier__sparkline_display_value_type
)attribute
(identifier_sparkline_display_value_type) identifier_sparkline_display_value_type
)assignment
)expression_statement
)block
)function_definition
)module | Sets the sparkline_display_value_type of this ChartSettings.
For the single stat view, whether to display the name of the query or the value of query # noqa: E501
:param sparkline_display_value_type: The sparkline_display_value_type of this ChartSettings. # noqa: E501
:type: str |
(module
(function_definition
(function_name_check_bom) function_name_check_bom
(parameters
(identifier_file) identifier_file
)parameters
(block
(expression_statement
(assignment
(identifier_lead) identifier_lead
(call
(attribute
(identifier_file) identifier_file
(identifier_read) identifier_read
)attribute
(argument_list
(integer_3) integer_3
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_lead) identifier_lead
)argument_list
)call
(integer_3) integer_3
)comparison_operator
(comparison_operator
(identifier_lead) identifier_lead
(attribute
(identifier_codecs) identifier_codecs
(identifier_BOM_UTF8) identifier_BOM_UTF8
)attribute
)comparison_operator
)boolean_operator
(block
(return_statement
(attribute
(call
(attribute
(identifier_codecs) identifier_codecs
(identifier_lookup) identifier_lookup
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
(identifier_name) identifier_name
)attribute
)return_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_lead) identifier_lead
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(comparison_operator
(subscript
(identifier_lead) identifier_lead
(slice
(colon) colon
(integer_2) integer_2
)slice
)subscript
(attribute
(identifier_codecs) identifier_codecs
(identifier_BOM_UTF16_BE) identifier_BOM_UTF16_BE
)attribute
)comparison_operator
)boolean_operator
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_lead) identifier_lead
)argument_list
)call
(integer_3) integer_3
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_file) identifier_file
(identifier_seek) identifier_seek
)attribute
(argument_list
(unary_operator
(integer_1) integer_1
)unary_operator
(attribute
(identifier_os) identifier_os
(identifier_SEEK_CUR) identifier_SEEK_CUR
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(attribute
(call
(attribute
(identifier_codecs) identifier_codecs
(identifier_lookup) identifier_lookup
)attribute
(argument_list
(string_'utf-16-be') string_'utf-16-be'
)argument_list
)call
(identifier_name) identifier_name
)attribute
)return_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_lead) identifier_lead
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(comparison_operator
(subscript
(identifier_lead) identifier_lead
(slice
(colon) colon
(integer_2) integer_2
)slice
)subscript
(attribute
(identifier_codecs) identifier_codecs
(identifier_BOM_UTF16_LE) identifier_BOM_UTF16_LE
)attribute
)comparison_operator
)boolean_operator
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_lead) identifier_lead
)argument_list
)call
(integer_3) integer_3
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_file) identifier_file
(identifier_seek) identifier_seek
)attribute
(argument_list
(unary_operator
(integer_1) integer_1
)unary_operator
(attribute
(identifier_os) identifier_os
(identifier_SEEK_CUR) identifier_SEEK_CUR
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(attribute
(call
(attribute
(identifier_codecs) identifier_codecs
(identifier_lookup) identifier_lookup
)attribute
(argument_list
(string_'utf-16-le') string_'utf-16-le'
)argument_list
)call
(identifier_name) identifier_name
)attribute
)return_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_file) identifier_file
(identifier_seek) identifier_seek
)attribute
(argument_list
(unary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_lead) identifier_lead
)argument_list
)call
)unary_operator
(attribute
(identifier_os) identifier_os
(identifier_SEEK_CUR) identifier_SEEK_CUR
)attribute
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Determines file codec from from its BOM record.
If file starts with BOM record encoded with UTF-8 or UTF-16(BE/LE)
then corresponding encoding name is returned, otherwise None is returned.
In both cases file current position is set to after-BOM bytes. The file
must be open in binary mode and positioned at offset 0. |
(module
(function_definition
(function_name_is_block_device) function_name_is_block_device
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(return_statement
(call
(identifier_S_ISBLK) identifier_S_ISBLK
(argument_list
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_stat) identifier_stat
)attribute
(argument_list
)argument_list
)call
(identifier_st_mode) identifier_st_mode
)attribute
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(identifier_OSError) identifier_OSError
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(attribute
(identifier_e) identifier_e
(identifier_errno) identifier_errno
)attribute
(identifier_ENOENT) identifier_ENOENT
)comparison_operator
(block
(raise_statement
)raise_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Whether this path is a block device. |
(module
(function_definition
(function_name__get_loader) function_name__get_loader
(parameters
(identifier_config) identifier_config
)parameters
(block
(if_statement
(boolean_operator
(call
(attribute
(identifier_config) identifier_config
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.yml') string_'.yml'
)argument_list
)call
(call
(attribute
(identifier_config) identifier_config
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.yaml') string_'.yaml'
)argument_list
)call
)boolean_operator
(block
(if_statement
(not_operator
(identifier_yaml) identifier_yaml
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_error) identifier_error
)attribute
(argument_list
(string_"pyyaml must be installed to use the YAML loader") string_"pyyaml must be installed to use the YAML loader"
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(None) None
(None) None
)expression_list
)return_statement
)block
)if_statement
(return_statement
(expression_list
(string_'yaml') string_'yaml'
(attribute
(identifier_yaml) identifier_yaml
(identifier_load) identifier_load
)attribute
)expression_list
)return_statement
)block
(else_clause
(block
(return_statement
(expression_list
(string_'json') string_'json'
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
)expression_list
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Determine which config file type and loader to use based on a filename.
:param config str: filename to config file
:return: a tuple of the loader type and callable to load
:rtype: (str, Callable) |
(module
(function_definition
(function_name__free_sequence) function_name__free_sequence
(parameters
(identifier_tmp1) identifier_tmp1
(default_parameter
(identifier_tmp2) identifier_tmp2
(False) False
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(identifier_tmp1) identifier_tmp1
)not_operator
(not_operator
(identifier_tmp2) identifier_tmp2
)not_operator
)boolean_operator
(block
(return_statement
(list
)list
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(list
)list
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_tmp1) identifier_tmp1
(identifier_tmp2) identifier_tmp2
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(string_'pop de') string_'pop de'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(string_'ex (sp), hl') string_'ex (sp), hl'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(string_'push de') string_'push de'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(string_'call __MEM_FREE') string_'call __MEM_FREE'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(string_'pop hl') string_'pop hl'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(string_'call __MEM_FREE') string_'call __MEM_FREE'
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(string_'ex (sp), hl') string_'ex (sp), hl'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(string_'call __MEM_FREE') string_'call __MEM_FREE'
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(string_'pop hl') string_'pop hl'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_REQUIRES) identifier_REQUIRES
(identifier_add) identifier_add
)attribute
(argument_list
(string_'alloc.asm') string_'alloc.asm'
)argument_list
)call
)expression_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module | Outputs a FREEMEM sequence for 1 or 2 ops |
(module
(function_definition
(function_name_update_from_object) function_name_update_from_object
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
(default_parameter
(identifier_criterion) identifier_criterion
(lambda
(lambda_parameters
(identifier_key) identifier_key
)lambda_parameters
(call
(attribute
(identifier_key) identifier_key
(identifier_isupper) identifier_isupper
)attribute
(argument_list
)argument_list
)call
)lambda
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_'Loading config from {0}') string_'Loading config from {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_obj) identifier_obj
(identifier_basestring) identifier_basestring
)argument_list
)call
(block
(if_statement
(comparison_operator
(string_'.') string_'.'
(identifier_obj) identifier_obj
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_path) identifier_path
(identifier_name) identifier_name
)pattern_list
(call
(attribute
(identifier_obj) identifier_obj
(identifier_rsplit) identifier_rsplit
)attribute
(argument_list
(string_'.') string_'.'
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mod) identifier_mod
(call
(identifier___import__) identifier___import__
(argument_list
(identifier_path) identifier_path
(call
(identifier_globals) identifier_globals
(argument_list
)argument_list
)call
(call
(identifier_locals) identifier_locals
(argument_list
)argument_list
)call
(list
(identifier_name) identifier_name
)list
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_mod) identifier_mod
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(identifier___import__) identifier___import__
(argument_list
(identifier_obj) identifier_obj
(call
(identifier_globals) identifier_globals
(argument_list
)argument_list
)call
(call
(identifier_locals) identifier_locals
(argument_list
)argument_list
)call
(list
)list
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_update) identifier_update
)attribute
(generator_expression
(tuple
(identifier_key) identifier_key
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_obj) identifier_obj
(identifier_key) identifier_key
)argument_list
)call
)tuple
(for_in_clause
(identifier_key) identifier_key
(call
(identifier_filter) identifier_filter
(argument_list
(identifier_criterion) identifier_criterion
(call
(identifier_dir) identifier_dir
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)argument_list
)call
)for_in_clause
)generator_expression
)call
)expression_statement
)block
)function_definition
)module | Update dict from the attributes of a module, class or other object.
By default only attributes with all-uppercase names will be retrieved.
Use the ``criterion`` argument to modify that behaviour.
:arg obj: Either the actual module/object, or its absolute name, e.g.
'my_app.settings'.
:arg criterion: Callable that must return True when passed the name
of an attribute, if that attribute is to be used.
:type criterion: :py:class:`function`
.. versionadded:: 1.0 |
(module
(function_definition
(function_name_numeric_columns) function_name_numeric_columns
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_include_bool) identifier_include_bool
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_columns) identifier_columns
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_col) identifier_col
(identifier_dtype) identifier_dtype
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_columns) identifier_columns
)attribute
(attribute
(identifier_self) identifier_self
(identifier_dtypes) identifier_dtypes
)attribute
)argument_list
)call
(block
(if_statement
(boolean_operator
(call
(identifier_is_numeric_dtype) identifier_is_numeric_dtype
(argument_list
(identifier_dtype) identifier_dtype
)argument_list
)call
(parenthesized_expression
(boolean_operator
(identifier_include_bool) identifier_include_bool
(parenthesized_expression
(boolean_operator
(not_operator
(identifier_include_bool) identifier_include_bool
)not_operator
(comparison_operator
(identifier_dtype) identifier_dtype
(attribute
(identifier_np) identifier_np
(identifier_bool_) identifier_bool_
)attribute
)comparison_operator
)boolean_operator
)parenthesized_expression
)boolean_operator
)parenthesized_expression
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_columns) identifier_columns
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_col) identifier_col
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_columns) identifier_columns
)return_statement
)block
)function_definition
)module | Returns the numeric columns of the Manager.
Returns:
List of index names. |
(module
(function_definition
(function_name_build_funcs) function_name_build_funcs
(parameters
(identifier_modules) identifier_modules
)parameters
(block
(expression_statement
(assignment
(identifier_kernel32) identifier_kernel32
(list
(string_'kernel32_') string_'kernel32_'
)list
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(augmented_assignment
(identifier_kernel32) identifier_kernel32
(call
(identifier_remove_dups) identifier_remove_dups
(argument_list
(subscript
(identifier_modules) identifier_modules
(string_'kernel32') string_'kernel32'
)subscript
)argument_list
)call
)augmented_assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(if_statement
(boolean_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_modules) identifier_modules
)argument_list
)call
(comparison_operator
(string_'LoadLibraryA') string_'LoadLibraryA'
(identifier_kernel32) identifier_kernel32
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_kernel32) identifier_kernel32
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_1) integer_1
(string_'LoadLibraryA') string_'LoadLibraryA'
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)except_clause
)try_statement
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_modules) identifier_modules
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(comparison_operator
(string_'LoadLibraryA') string_'LoadLibraryA'
(identifier_kernel32) identifier_kernel32
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_kernel32) identifier_kernel32
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_1) integer_1
(string_'LoadLibraryA') string_'LoadLibraryA'
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'GetProcAddress') string_'GetProcAddress'
(identifier_kernel32) identifier_kernel32
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_kernel32) identifier_kernel32
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_1) integer_1
(string_'GetProcAddress') string_'GetProcAddress'
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'kernel32: %s') string_'kernel32: %s'
(identifier_kernel32) identifier_kernel32
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_module) identifier_module
(identifier_funcs) identifier_funcs
)pattern_list
(call
(attribute
(identifier_modules) identifier_modules
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'%s: %s') string_'%s: %s'
(identifier_module) identifier_module
(identifier_funcs) identifier_funcs
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_module) identifier_module
(string_'kernel32') string_'kernel32'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_kernel32) identifier_kernel32
(identifier_extend) identifier_extend
)attribute
(argument_list
(binary_operator
(list
(binary_operator
(identifier_module) identifier_module
(string_'_') string_'_'
)binary_operator
)list
(call
(identifier_remove_dups) identifier_remove_dups
(argument_list
(identifier_funcs) identifier_funcs
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_kernel32) identifier_kernel32
)return_statement
)block
)function_definition
)module | Build a used functions and modules list
for later consumption. |
(module
(function_definition
(function_name_volume) function_name_volume
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_volume) identifier_volume
(call
(identifier_float) identifier_float
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_product) identifier_product
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_primitive) identifier_primitive
)attribute
(identifier_extents) identifier_extents
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_volume) identifier_volume
)return_statement
)block
)function_definition
)module | Volume of the box Primitive.
Returns
--------
volume: float, volume of box |
(module
(function_definition
(function_name_com_google_fonts_check_family_underline_thickness) function_name_com_google_fonts_check_family_underline_thickness
(parameters
(identifier_ttFonts) identifier_ttFonts
)parameters
(block
(expression_statement
(assignment
(identifier_underTs) identifier_underTs
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_underlineThickness) identifier_underlineThickness
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_failed) identifier_failed
(False) False
)assignment
)expression_statement
(for_statement
(identifier_ttfont) identifier_ttfont
(identifier_ttFonts) identifier_ttFonts
(block
(expression_statement
(assignment
(identifier_fontname) identifier_fontname
(attribute
(attribute
(attribute
(identifier_ttfont) identifier_ttfont
(identifier_reader) identifier_reader
)attribute
(identifier_file) identifier_file
)attribute
(identifier_name) identifier_name
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ut) identifier_ut
(attribute
(subscript
(identifier_ttfont) identifier_ttfont
(string_'post') string_'post'
)subscript
(identifier_underlineThickness) identifier_underlineThickness
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_underTs) identifier_underTs
(identifier_fontname) identifier_fontname
)subscript
(identifier_ut) identifier_ut
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_underlineThickness) identifier_underlineThickness
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_underlineThickness) identifier_underlineThickness
(identifier_ut) identifier_ut
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_ut) identifier_ut
(identifier_underlineThickness) identifier_underlineThickness
)comparison_operator
(block
(expression_statement
(assignment
(identifier_failed) identifier_failed
(True) True
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(identifier_failed) identifier_failed
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(parenthesized_expression
(concatenated_string
(string_"Thickness of the underline is not") string_"Thickness of the underline is not"
(string_" the same accross this family. In order to fix this,") string_" the same accross this family. In order to fix this,"
(string_" please make sure that the underlineThickness value") string_" please make sure that the underlineThickness value"
(string_" is the same in the 'post' table of all of this family") string_" is the same in the 'post' table of all of this family"
(string_" font files.\n") string_" font files.\n"
(string_"Detected underlineThickness values are:\n") string_"Detected underlineThickness values are:\n"
)concatenated_string
)parenthesized_expression
)assignment
)expression_statement
(for_statement
(identifier_style) identifier_style
(call
(attribute
(identifier_underTs) identifier_underTs
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_msg) identifier_msg
(call
(attribute
(string_"\t{}: {}\n") string_"\t{}: {}\n"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_style) identifier_style
(subscript
(identifier_underTs) identifier_underTs
(identifier_style) identifier_style
)subscript
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(expression_statement
(yield
(expression_list
(identifier_FAIL) identifier_FAIL
(identifier_msg) identifier_msg
)expression_list
)yield
)expression_statement
)block
(else_clause
(block
(expression_statement
(yield
(expression_list
(identifier_PASS) identifier_PASS
(string_"Fonts have consistent underline thickness.") string_"Fonts have consistent underline thickness."
)expression_list
)yield
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Fonts have consistent underline thickness? |
(module
(function_definition
(function_name_as_odict) function_name_as_odict
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'cust_odict') string_'cust_odict'
)argument_list
)call
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_cust_odict) identifier_cust_odict
)attribute
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'attr_check') string_'attr_check'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_attr_check) identifier_attr_check
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_odc) identifier_odc
(call
(identifier_odict) identifier_odict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_attr) identifier_attr
(attribute
(identifier_self) identifier_self
(identifier_attrorder) identifier_attrorder
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_odc) identifier_odc
(identifier_attr) identifier_attr
)subscript
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_attr) identifier_attr
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_odc) identifier_odc
)return_statement
)block
)function_definition
)module | returns an odict version of the object, based on it's attributes |
(module
(function_definition
(function_name_nl_socket_modify_cb) function_name_nl_socket_modify_cb
(parameters
(identifier_sk) identifier_sk
(identifier_type_) identifier_type_
(identifier_kind) identifier_kind
(identifier_func) identifier_func
(identifier_arg) identifier_arg
)parameters
(block
(return_statement
(call
(identifier_int) identifier_int
(argument_list
(call
(identifier_nl_cb_set) identifier_nl_cb_set
(argument_list
(attribute
(identifier_sk) identifier_sk
(identifier_s_cb) identifier_s_cb
)attribute
(identifier_type_) identifier_type_
(identifier_kind) identifier_kind
(identifier_func) identifier_func
(identifier_arg) identifier_arg
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Modify the callback handler associated with the socket.
https://github.com/thom311/libnl/blob/libnl3_2_25/lib/socket.c#L633
Sets specific callback functions in the existing nl_cb class instance stored in the nl_sock socket.
Positional arguments:
sk -- Netlink socket (nl_sock class instance).
type_ -- which type callback to set (integer).
kind -- kind of callback (integer).
func -- callback function.
arg -- argument to be passed to callback function.
Returns:
0 on success or a negative error code. |
(module
(function_definition
(function_name_load_checkers) function_name_load_checkers
(parameters
)parameters
(block
(for_statement
(pattern_list
(identifier_loader) identifier_loader
(identifier_name) identifier_name
(identifier__) identifier__
)pattern_list
(call
(attribute
(identifier_pkgutil) identifier_pkgutil
(identifier_iter_modules) identifier_iter_modules
)attribute
(argument_list
(list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(subscript
(identifier___path__) identifier___path__
(integer_0) integer_0
)subscript
(string_'checkers') string_'checkers'
)argument_list
)call
)list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(call
(attribute
(identifier_loader) identifier_loader
(identifier_find_module) identifier_find_module
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
(identifier_load_module) identifier_load_module
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Load the checkers |
(module
(function_definition
(function_name__analog_message) function_name__analog_message
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_pin) identifier_pin
(subscript
(identifier_data) identifier_data
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(binary_operator
(parenthesized_expression
(binary_operator
(subscript
(identifier_data) identifier_data
(attribute
(identifier_PrivateConstants) identifier_PrivateConstants
(identifier_MSB) identifier_MSB
)attribute
)subscript
(integer_7) integer_7
)binary_operator
)parenthesized_expression
(subscript
(identifier_data) identifier_data
(attribute
(identifier_PrivateConstants) identifier_PrivateConstants
(identifier_LSB) identifier_LSB
)attribute
)subscript
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_analog_pins) identifier_analog_pins
)attribute
(identifier_pin) identifier_pin
)subscript
(identifier_current_value) identifier_current_value
)attribute
(identifier_value) identifier_value
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_message) identifier_message
(list
(identifier_pin) identifier_pin
(identifier_value) identifier_value
(attribute
(identifier_Constants) identifier_Constants
(identifier_ANALOG) identifier_ANALOG
)attribute
)list
)assignment
)expression_statement
(if_statement
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_analog_pins) identifier_analog_pins
)attribute
(identifier_pin) identifier_pin
)subscript
(identifier_cb) identifier_cb
)attribute
(block
(if_statement
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_analog_pins) identifier_analog_pins
)attribute
(identifier_pin) identifier_pin
)subscript
(identifier_cb_type) identifier_cb_type
)attribute
(block
(expression_statement
(await
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_analog_pins) identifier_analog_pins
)attribute
(identifier_pin) identifier_pin
)subscript
(identifier_cb) identifier_cb
)attribute
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)await
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_loop) identifier_loop
(attribute
(identifier_self) identifier_self
(identifier_loop) identifier_loop
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_loop) identifier_loop
(identifier_call_soon) identifier_call_soon
)attribute
(argument_list
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_analog_pins) identifier_analog_pins
)attribute
(identifier_pin) identifier_pin
)subscript
(identifier_cb) identifier_cb
)attribute
(identifier_message) identifier_message
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_key) identifier_key
(binary_operator
(string_'A') string_'A'
(call
(identifier_str) identifier_str
(argument_list
(identifier_pin) identifier_pin
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_key) identifier_key
(attribute
(identifier_self) identifier_self
(identifier_latch_map) identifier_latch_map
)attribute
)comparison_operator
(block
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier__check_latch_data) identifier__check_latch_data
)attribute
(argument_list
(identifier_key) identifier_key
(subscript
(identifier_message) identifier_message
(integer_1) integer_1
)subscript
)argument_list
)call
)await
)expression_statement
)block
)if_statement
)block
)function_definition
)module | This is a private message handler method.
It is a message handler for analog messages.
:param data: message data
:returns: None - but saves the data in the pins structure |
(module
(function_definition
(function_name_moderate) function_name_moderate
(parameters
(identifier_self) identifier_self
(identifier_comment) identifier_comment
(identifier_entry) identifier_entry
(identifier_request) identifier_request
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_auto_moderate_comments) identifier_auto_moderate_comments
)attribute
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_check_is_spam) identifier_check_is_spam
(argument_list
(identifier_comment) identifier_comment
(identifier_entry) identifier_entry
(identifier_request) identifier_request
(attribute
(identifier_self) identifier_self
(identifier_spam_checker_backends) identifier_spam_checker_backends
)attribute
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Determine if a new comment should be marked as non-public
and await approval.
Return ``True`` to put the comment into the moderator queue,
or ``False`` to allow it to be showed up immediately. |
(module
(function_definition
(function_name__sign_simple_signature_fulfillment) function_name__sign_simple_signature_fulfillment
(parameters
(identifier_cls) identifier_cls
(identifier_input_) identifier_input_
(identifier_message) identifier_message
(identifier_key_pairs) identifier_key_pairs
)parameters
(block
(expression_statement
(assignment
(identifier_input_) identifier_input_
(call
(identifier_deepcopy) identifier_deepcopy
(argument_list
(identifier_input_) identifier_input_
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_public_key) identifier_public_key
(subscript
(attribute
(identifier_input_) identifier_input_
(identifier_owners_before) identifier_owners_before
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_message) identifier_message
(call
(identifier_sha3_256) identifier_sha3_256
(argument_list
(call
(attribute
(identifier_message) identifier_message
(identifier_encode) identifier_encode
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_input_) identifier_input_
(identifier_fulfills) identifier_fulfills
)attribute
(block
(expression_statement
(call
(attribute
(identifier_message) identifier_message
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(call
(attribute
(string_'{}{}') string_'{}{}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(attribute
(identifier_input_) identifier_input_
(identifier_fulfills) identifier_fulfills
)attribute
(identifier_txid) identifier_txid
)attribute
(attribute
(attribute
(identifier_input_) identifier_input_
(identifier_fulfills) identifier_fulfills
)attribute
(identifier_output) identifier_output
)attribute
)argument_list
)call
(identifier_encode) identifier_encode
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_input_) identifier_input_
(identifier_fulfillment) identifier_fulfillment
)attribute
(identifier_sign) identifier_sign
)attribute
(argument_list
(call
(attribute
(identifier_message) identifier_message
(identifier_digest) identifier_digest
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_base58) identifier_base58
(identifier_b58decode) identifier_b58decode
)attribute
(argument_list
(call
(attribute
(subscript
(identifier_key_pairs) identifier_key_pairs
(identifier_public_key) identifier_public_key
)subscript
(identifier_encode) identifier_encode
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(raise_statement
(call
(identifier_KeypairMismatchException) identifier_KeypairMismatchException
(argument_list
(call
(attribute
(concatenated_string
(string_'Public key {} is not a pair to ') string_'Public key {} is not a pair to '
(string_'any of the private keys') string_'any of the private keys'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_public_key) identifier_public_key
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_input_) identifier_input_
)return_statement
)block
)function_definition
)module | Signs a Ed25519Fulfillment.
Args:
input_ (:class:`~bigchaindb.common.transaction.
Input`) The input to be signed.
message (str): The message to be signed
key_pairs (dict): The keys to sign the Transaction with. |
(module
(function_definition
(function_name_run_parallel_with_display) function_name_run_parallel_with_display
(parameters
(identifier_wf) identifier_wf
(identifier_n_threads) identifier_n_threads
(identifier_display) identifier_display
)parameters
(block
(expression_statement
(assignment
(identifier_LogQ) identifier_LogQ
(call
(identifier_Queue) identifier_Queue
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_S) identifier_S
(call
(identifier_Scheduler) identifier_Scheduler
(argument_list
(keyword_argument
(identifier_error_handler) identifier_error_handler
(attribute
(identifier_display) identifier_display
(identifier_error_handler) identifier_error_handler
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(call
(attribute
(identifier_threading) identifier_threading
(identifier_Thread) identifier_Thread
)attribute
(argument_list
(keyword_argument
(identifier_target) identifier_target
(identifier_patch) identifier_patch
)keyword_argument
(keyword_argument
(identifier_args) identifier_args
(tuple
(attribute
(identifier_LogQ) identifier_LogQ
(identifier_source) identifier_source
)attribute
(call
(identifier_sink_map) identifier_sink_map
(argument_list
(identifier_display) identifier_display
)argument_list
)call
)tuple
)keyword_argument
(keyword_argument
(identifier_daemon) identifier_daemon
(True) True
)keyword_argument
)argument_list
)call
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_W) identifier_W
(binary_operator
(binary_operator
(binary_operator
(call
(identifier_Queue) identifier_Queue
(argument_list
)argument_list
)call
(line_continuation_\) line_continuation_\
(call
(identifier_branch) identifier_branch
(argument_list
(binary_operator
(identifier_log_job_start) identifier_log_job_start
(attribute
(identifier_LogQ) identifier_LogQ
(identifier_sink) identifier_sink
)attribute
)binary_operator
)argument_list
)call
)binary_operator
(line_continuation_\) line_continuation_\
(call
(identifier_thread_pool) identifier_thread_pool
(argument_list
(list_splat
(call
(identifier_repeat) identifier_repeat
(argument_list
(identifier_worker) identifier_worker
(identifier_n_threads) identifier_n_threads
)argument_list
)call
)list_splat
)argument_list
)call
)binary_operator
(line_continuation_\) line_continuation_\
(call
(identifier_branch) identifier_branch
(argument_list
(attribute
(identifier_LogQ) identifier_LogQ
(identifier_sink) identifier_sink
)attribute
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_S) identifier_S
(identifier_run) identifier_run
)attribute
(argument_list
(identifier_W) identifier_W
(call
(identifier_get_workflow) identifier_get_workflow
(argument_list
(identifier_wf) identifier_wf
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_LogQ) identifier_LogQ
(identifier_wait) identifier_wait
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Adds a display to the parallel runner. Because messages come in
asynchronously now, we start an extra thread just for the display
routine. |
(module
(function_definition
(function_name_expn) function_name_expn
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_address) identifier_address
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_default_parameter
(identifier_timeout) identifier_timeout
(type
(identifier_DefaultNumType) identifier_DefaultNumType
)type
(identifier__default) identifier__default
)typed_default_parameter
)parameters
(type
(identifier_SMTPResponse) identifier_SMTPResponse
)type
(block
(expression_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier__ehlo_or_helo_if_needed) identifier__ehlo_or_helo_if_needed
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(expression_statement
(assignment
(identifier_parsed_address) identifier_parsed_address
(call
(identifier_parse_address) identifier_parse_address
(argument_list
(identifier_address) identifier_address
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier__command_lock) identifier__command_lock
)attribute
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_execute_command) identifier_execute_command
)attribute
(argument_list
(string_b"EXPN") string_b"EXPN"
(call
(attribute
(identifier_parsed_address) identifier_parsed_address
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_"ascii") string_"ascii"
)argument_list
)call
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
)argument_list
)call
)await
)assignment
)expression_statement
)block
)with_statement
(if_statement
(comparison_operator
(attribute
(identifier_response) identifier_response
(identifier_code) identifier_code
)attribute
(attribute
(identifier_SMTPStatus) identifier_SMTPStatus
(identifier_completed) identifier_completed
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_SMTPResponseException) identifier_SMTPResponseException
(argument_list
(attribute
(identifier_response) identifier_response
(identifier_code) identifier_code
)attribute
(attribute
(identifier_response) identifier_response
(identifier_message) identifier_message
)attribute
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Send an SMTP EXPN command, which expands a mailing list.
Not many servers support this command.
:raises SMTPResponseException: on unexpected server response code |
(module
(function_definition
(function_name_calc_A_hat) function_name_calc_A_hat
(parameters
(identifier_A) identifier_A
(identifier_S) identifier_S
)parameters
(block
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_dot) identifier_dot
)attribute
(argument_list
(identifier_S) identifier_S
(call
(attribute
(identifier_np) identifier_np
(identifier_dot) identifier_dot
)attribute
(argument_list
(identifier_A) identifier_A
(call
(attribute
(identifier_np) identifier_np
(identifier_transpose) identifier_transpose
)attribute
(argument_list
(identifier_S) identifier_S
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the A_hat matrix of A given the skew matrix S |
(module
(function_definition
(function_name_check_corrupted_files_cmd) function_name_check_corrupted_files_cmd
(parameters
(identifier_java_home) identifier_java_home
(identifier_files) identifier_files
)parameters
(block
(expression_statement
(assignment
(identifier_files_str) identifier_files_str
(call
(attribute
(string_",") string_","
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_files) identifier_files
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_check_command) identifier_check_command
(call
(attribute
(identifier_CHECK_COMMAND) identifier_CHECK_COMMAND
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_ionice) identifier_ionice
(identifier_IONICE) identifier_IONICE
)keyword_argument
(keyword_argument
(identifier_java_home) identifier_java_home
(identifier_java_home) identifier_java_home
)keyword_argument
(keyword_argument
(identifier_files) identifier_files
(identifier_files_str) identifier_files_str
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_command) identifier_command
(call
(attribute
(string_"{check_command} | {reduce_output}") string_"{check_command} | {reduce_output}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_check_command) identifier_check_command
(identifier_check_command) identifier_check_command
)keyword_argument
(keyword_argument
(identifier_reduce_output) identifier_reduce_output
(identifier_REDUCE_OUTPUT) identifier_REDUCE_OUTPUT
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_command) identifier_command
)return_statement
)block
)function_definition
)module | Check the file corruption of the specified files.
:param java_home: the JAVA_HOME
:type java_home: string
:param files: list of files to be checked
:type files: list of string |
(module
(function_definition
(function_name_get_exception) function_name_get_exception
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier___lock) identifier___lock
)attribute
)with_item
)with_clause
(block
(return_statement
(parenthesized_expression
(conditional_expression
(attribute
(identifier_self) identifier_self
(identifier___updateexception) identifier___updateexception
)attribute
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier___updateexception) identifier___updateexception
)attribute
(attribute
(identifier_self) identifier_self
(identifier___closed) identifier___closed
)attribute
)boolean_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___exportref) identifier___exportref
)attribute
(identifier_get_exception) identifier_get_exception
)attribute
(argument_list
)argument_list
)call
)conditional_expression
)parenthesized_expression
)return_statement
)block
)with_statement
)block
)function_definition
)module | Returns the exception associated to the export
:return: An exception tuple, if any |
(module
(function_definition
(function_name_absent) function_name_absent
(parameters
(identifier_name) identifier_name
(identifier_region) identifier_region
(default_parameter
(identifier_user) identifier_user
(None) None
)default_parameter
(default_parameter
(identifier_opts) identifier_opts
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(dictionary
(pair
(string_'name') string_'name'
(identifier_name) identifier_name
)pair
(pair
(string_'result') string_'result'
(True) True
)pair
(pair
(string_'comment') string_'comment'
(string_'') string_''
)pair
(pair
(string_'changes') string_'changes'
(dictionary
)dictionary
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_does_exist) identifier_does_exist
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'aws_sqs.queue_exists') string_'aws_sqs.queue_exists'
)subscript
(argument_list
(identifier_name) identifier_name
(identifier_region) identifier_region
(identifier_opts) identifier_opts
(identifier_user) identifier_user
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_does_exist) identifier_does_exist
(block
(if_statement
(subscript
(identifier___opts__) identifier___opts__
(string_'test') string_'test'
)subscript
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'result') string_'result'
)subscript
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'comment') string_'comment'
)subscript
(call
(attribute
(string_'AWS SQS queue {0} is set to be removed') string_'AWS SQS queue {0} is set to be removed'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_removed) identifier_removed
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'aws_sqs.delete_queue') string_'aws_sqs.delete_queue'
)subscript
(argument_list
(identifier_name) identifier_name
(identifier_region) identifier_region
(identifier_opts) identifier_opts
(identifier_user) identifier_user
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_removed) identifier_removed
(string_'retcode') string_'retcode'
)subscript
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(subscript
(identifier_ret) identifier_ret
(string_'changes') string_'changes'
)subscript
(string_'removed') string_'removed'
)subscript
(subscript
(identifier_removed) identifier_removed
(string_'stdout') string_'stdout'
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'result') string_'result'
)subscript
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'comment') string_'comment'
)subscript
(subscript
(identifier_removed) identifier_removed
(string_'stderr') string_'stderr'
)subscript
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_ret) identifier_ret
(string_'comment') string_'comment'
)subscript
(call
(attribute
(string_'{0} does not exist in {1}') string_'{0} does not exist in {1}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
(identifier_region) identifier_region
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Remove the named SQS queue if it exists.
name
Name of the SQS queue.
region
Region to remove the queue from
user
Name of the user performing the SQS operations
opts
Include additional arguments and options to the aws command line |
(module
(function_definition
(function_name_wrap_paths) function_name_wrap_paths
(parameters
(identifier_paths) identifier_paths
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_paths) identifier_paths
(identifier_string_types) identifier_string_types
)argument_list
)call
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(concatenated_string
(string_"paths cannot be a string. ") string_"paths cannot be a string. "
(string_"Use array with one element instead.") string_"Use array with one element instead."
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(string_' ') string_' '
(identifier_join) identifier_join
)attribute
(generator_expression
(binary_operator
(binary_operator
(string_'"') string_'"'
(identifier_path) identifier_path
)binary_operator
(string_'"') string_'"'
)binary_operator
(for_in_clause
(identifier_path) identifier_path
(identifier_paths) identifier_paths
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Put quotes around all paths and join them with space in-between. |
(module
(function_definition
(function_name_kick_jobs) function_name_kick_jobs
(parameters
(identifier_self) identifier_self
(identifier_num_jobs) identifier_num_jobs
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_self) identifier_self
(identifier__sock_ctx) identifier__sock_ctx
)attribute
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_socket) identifier_socket
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__send_message) identifier__send_message
)attribute
(argument_list
(call
(attribute
(string_'kick {0}') string_'kick {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_num_jobs) identifier_num_jobs
)argument_list
)call
(identifier_socket) identifier_socket
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__receive_id) identifier__receive_id
)attribute
(argument_list
(identifier_socket) identifier_socket
)argument_list
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | Kick some number of jobs from the buried queue onto the ready queue.
:param num_jobs: Number of jobs to kick
:type num_jobs: int
If not that many jobs are in the buried queue, it will kick as many as it can. |
(module
(function_definition
(function_name_disconnect_all) function_name_disconnect_all
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier__mutex) identifier__mutex
)attribute
)with_item
)with_clause
(block
(for_statement
(identifier_conn) identifier_conn
(attribute
(identifier_self) identifier_self
(identifier_connections) identifier_connections
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_object) identifier_object
)attribute
(identifier_disconnect) identifier_disconnect
)attribute
(argument_list
(attribute
(identifier_conn) identifier_conn
(identifier_id) identifier_id
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_reparse_connections) identifier_reparse_connections
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Disconnect all connections to this port. |
(module
(function_definition
(function_name_salt_extend) function_name_salt_extend
(parameters
(identifier_extension) identifier_extension
(identifier_name) identifier_name
(identifier_description) identifier_description
(identifier_salt_dir) identifier_salt_dir
(identifier_merge) identifier_merge
)parameters
(block
(import_statement
(dotted_name
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
(identifier_extend) identifier_extend
)dotted_name
)import_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_extend) identifier_extend
)attribute
(identifier_run) identifier_run
)attribute
(argument_list
(keyword_argument
(identifier_extension) identifier_extension
(identifier_extension) identifier_extension
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_description) identifier_description
(identifier_description) identifier_description
)keyword_argument
(keyword_argument
(identifier_salt_dir) identifier_salt_dir
(identifier_salt_dir) identifier_salt_dir
)keyword_argument
(keyword_argument
(identifier_merge) identifier_merge
(identifier_merge) identifier_merge
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Quickstart for developing on the saltstack installation
.. versionadded:: 2016.11.0 |
(module
(function_definition
(function_name_room_members) function_name_room_members
(parameters
(identifier_self) identifier_self
(identifier_stream_id) identifier_stream_id
)parameters
(block
(expression_statement
(assignment
(identifier_req_hook) identifier_req_hook
(binary_operator
(binary_operator
(string_'pod/v2/room/') string_'pod/v2/room/'
(call
(identifier_str) identifier_str
(argument_list
(identifier_stream_id) identifier_stream_id
)argument_list
)call
)binary_operator
(string_'/membership/list') string_'/membership/list'
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_req_args) identifier_req_args
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_status_code) identifier_status_code
(identifier_response) identifier_response
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___rest__) identifier___rest__
)attribute
(identifier_GET_query) identifier_GET_query
)attribute
(argument_list
(identifier_req_hook) identifier_req_hook
(identifier_req_args) identifier_req_args
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_'%s: %s') string_'%s: %s'
(tuple
(identifier_status_code) identifier_status_code
(identifier_response) identifier_response
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(identifier_status_code) identifier_status_code
(identifier_response) identifier_response
)expression_list
)return_statement
)block
)function_definition
)module | get list of room members |
(module
(function_definition
(function_name_cancel) function_name_cancel
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_OBSERVE_UPDATES) identifier_OBSERVE_UPDATES
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_detach) identifier_detach
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ioloop) identifier_ioloop
)attribute
(identifier_add_callback) identifier_add_callback
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_cancel_timeouts) identifier_cancel_timeouts
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Detach strategy from its sensor and cancel ioloop callbacks. |
(module
(function_definition
(function_name_calc_mean_time_deviation) function_name_calc_mean_time_deviation
(parameters
(identifier_timepoints) identifier_timepoints
(identifier_weights) identifier_weights
(default_parameter
(identifier_mean_time) identifier_mean_time
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_timepoints) identifier_timepoints
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_timepoints) identifier_timepoints
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_weights) identifier_weights
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_weights) identifier_weights
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_validtools) identifier_validtools
(identifier_test_equal_shape) identifier_test_equal_shape
)attribute
(argument_list
(keyword_argument
(identifier_timepoints) identifier_timepoints
(identifier_timepoints) identifier_timepoints
)keyword_argument
(keyword_argument
(identifier_weights) identifier_weights
(identifier_weights) identifier_weights
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_validtools) identifier_validtools
(identifier_test_non_negative) identifier_test_non_negative
)attribute
(argument_list
(keyword_argument
(identifier_weights) identifier_weights
(identifier_weights) identifier_weights
)keyword_argument
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_mean_time) identifier_mean_time
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_mean_time) identifier_mean_time
(call
(identifier_calc_mean_time) identifier_calc_mean_time
(argument_list
(identifier_timepoints) identifier_timepoints
(identifier_weights) identifier_weights
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(parenthesized_expression
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(binary_operator
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_dot) identifier_dot
)attribute
(argument_list
(identifier_weights) identifier_weights
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_timepoints) identifier_timepoints
(identifier_mean_time) identifier_mean_time
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
)argument_list
)call
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_sum) identifier_sum
)attribute
(argument_list
(identifier_weights) identifier_weights
)argument_list
)call
)binary_operator
)argument_list
)call
)parenthesized_expression
)return_statement
)block
)function_definition
)module | Return the weighted deviation of the given timepoints from their mean
time.
With equal given weights, the is simply the standard deviation of the
given time points:
>>> from hydpy import calc_mean_time_deviation
>>> calc_mean_time_deviation(timepoints=[3., 7.],
... weights=[2., 2.])
2.0
One can pass a precalculated or alternate mean time:
>>> from hydpy import round_
>>> round_(calc_mean_time_deviation(timepoints=[3., 7.],
... weights=[2., 2.],
... mean_time=4.))
2.236068
>>> round_(calc_mean_time_deviation(timepoints=[3., 7.],
... weights=[1., 3.]))
1.732051
Or, in the most extreme case:
>>> calc_mean_time_deviation(timepoints=[3., 7.],
... weights=[0., 4.])
0.0
There will be some checks for input plausibility perfomed, e.g.:
>>> calc_mean_time_deviation(timepoints=[3., 7.],
... weights=[-2., 2.])
Traceback (most recent call last):
...
ValueError: While trying to calculate the weighted time deviation \
from mean time, the following error occurred: For the following objects, \
at least one value is negative: weights. |
(module
(function_definition
(function_name_get_extra_keywords) function_name_get_extra_keywords
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_extra_keywords) identifier_extra_keywords
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_widgets) identifier_widgets
)pattern_list
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_widgets_dict) identifier_widgets_dict
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(if_statement
(call
(attribute
(subscript
(identifier_widgets) identifier_widgets
(integer_0) integer_0
)subscript
(identifier_isChecked) identifier_isChecked
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_widgets) identifier_widgets
(integer_1) integer_1
)subscript
(identifier_QLineEdit) identifier_QLineEdit
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_extra_keywords) identifier_extra_keywords
(identifier_key) identifier_key
)subscript
(call
(attribute
(subscript
(identifier_widgets) identifier_widgets
(integer_1) integer_1
)subscript
(identifier_text) identifier_text
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_widgets) identifier_widgets
(integer_1) integer_1
)subscript
(identifier_QComboBox) identifier_QComboBox
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_current_index) identifier_current_index
(call
(attribute
(subscript
(identifier_widgets) identifier_widgets
(integer_1) integer_1
)subscript
(identifier_currentIndex) identifier_currentIndex
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_extra_keywords) identifier_extra_keywords
(identifier_key) identifier_key
)subscript
(call
(attribute
(subscript
(identifier_widgets) identifier_widgets
(integer_1) integer_1
)subscript
(identifier_itemData) identifier_itemData
)attribute
(argument_list
(identifier_current_index) identifier_current_index
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_widgets) identifier_widgets
(integer_1) integer_1
)subscript
(tuple
(identifier_QDoubleSpinBox) identifier_QDoubleSpinBox
(identifier_QSpinBox) identifier_QSpinBox
)tuple
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_extra_keywords) identifier_extra_keywords
(identifier_key) identifier_key
)subscript
(call
(attribute
(subscript
(identifier_widgets) identifier_widgets
(integer_1) integer_1
)subscript
(identifier_value) identifier_value
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_widgets) identifier_widgets
(integer_1) integer_1
)subscript
(identifier_QDateTimeEdit) identifier_QDateTimeEdit
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_extra_keywords) identifier_extra_keywords
(identifier_key) identifier_key
)subscript
(call
(attribute
(call
(attribute
(subscript
(identifier_widgets) identifier_widgets
(integer_1) integer_1
)subscript
(identifier_dateTime) identifier_dateTime
)attribute
(argument_list
)argument_list
)call
(identifier_toString) identifier_toString
)attribute
(argument_list
(attribute
(identifier_Qt) identifier_Qt
(identifier_ISODate) identifier_ISODate
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_extra_keywords) identifier_extra_keywords
)return_statement
)block
)function_definition
)module | Obtain extra keywords from the current state. |
(module
(function_definition
(function_name__select_broker_pair) function_name__select_broker_pair
(parameters
(identifier_self) identifier_self
(identifier_rg_destination) identifier_rg_destination
(identifier_victim_partition) identifier_victim_partition
)parameters
(block
(expression_statement
(assignment
(identifier_broker_source) identifier_broker_source
(call
(attribute
(identifier_self) identifier_self
(identifier__elect_source_broker) identifier__elect_source_broker
)attribute
(argument_list
(identifier_victim_partition) identifier_victim_partition
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_broker_destination) identifier_broker_destination
(call
(attribute
(identifier_rg_destination) identifier_rg_destination
(identifier__elect_dest_broker) identifier__elect_dest_broker
)attribute
(argument_list
(identifier_victim_partition) identifier_victim_partition
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_broker_source) identifier_broker_source
(identifier_broker_destination) identifier_broker_destination
)expression_list
)return_statement
)block
)function_definition
)module | Select best-fit source and destination brokers based on partition
count and presence of partition over the broker.
* Get overloaded and underloaded brokers
Best-fit Selection Criteria:
Source broker: Select broker containing the victim-partition with
maximum partitions.
Destination broker: NOT containing the victim-partition with minimum
partitions. If no such broker found, return first broker.
This helps in ensuring:-
* Topic-partitions are distributed across brokers.
* Partition-count is balanced across replication-groups. |
(module
(function_definition
(function_name_get_revision) function_name_get_revision
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_proc) identifier_proc
(call
(identifier_Process) identifier_Process
(argument_list
(string_"git log") string_"git log"
(list
(string_"git") string_"git"
(string_"log") string_"log"
(string_"-1") string_"-1"
)list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_line) identifier_line
(call
(attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_proc) identifier_proc
(identifier_stdout) identifier_stdout
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf8') string_'utf8'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_line) identifier_line
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(call
(attribute
(identifier_line) identifier_line
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_"commit ") string_"commit "
)argument_list
)call
(block
(return_statement
(subscript
(identifier_line) identifier_line
(slice
(integer_7) integer_7
(colon) colon
)slice
)subscript
)return_statement
)block
)if_statement
)block
)while_statement
)block
(finally_clause
(block
(with_statement
(with_clause
(with_item
(identifier_suppress_exception) identifier_suppress_exception
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_proc) identifier_proc
(identifier_join) identifier_join
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | GET THE CURRENT GIT REVISION |
(module
(function_definition
(function_name_get_collection) function_name_get_collection
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_query) identifier_query
(dictionary_splat_pattern
(identifier_options) identifier_options
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_options) identifier_options
(call
(attribute
(identifier_self) identifier_self
(identifier__merge_options) identifier__merge_options
)attribute
(argument_list
(identifier_options) identifier_options
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_options) identifier_options
(string_'iterator_type') string_'iterator_type'
)subscript
(string_'items') string_'items'
)comparison_operator
(block
(return_statement
(call
(attribute
(call
(identifier_CollectionPageIterator) identifier_CollectionPageIterator
(argument_list
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_query) identifier_query
(identifier_options) identifier_options
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(subscript
(identifier_options) identifier_options
(string_'iterator_type') string_'iterator_type'
)subscript
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_query) identifier_query
(dictionary_splat
(identifier_options) identifier_options
)dictionary_splat
)argument_list
)call
)return_statement
)block
)if_statement
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(call
(attribute
(string_'Unknown value for "iterator_type" option: {}') string_'Unknown value for "iterator_type" option: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_options) identifier_options
(string_'iterator_type') string_'iterator_type'
)subscript
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Get a collection from a collection endpoint.
Parses GET request options for a collection endpoint and dispatches a
request. |
(module
(function_definition
(function_name_getValidCertifications) function_name_getValidCertifications
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_certs) identifier_certs
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_today) identifier_today
(call
(attribute
(identifier_date) identifier_date
(identifier_today) identifier_today
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_c) identifier_c
(call
(attribute
(identifier_self) identifier_self
(identifier_getCertifications) identifier_getCertifications
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_validfrom) identifier_validfrom
(conditional_expression
(call
(attribute
(identifier_c) identifier_c
(identifier_getValidFrom) identifier_getValidFrom
)attribute
(argument_list
)argument_list
)call
(identifier_c) identifier_c
(None) None
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_validto) identifier_validto
(conditional_expression
(call
(attribute
(identifier_c) identifier_c
(identifier_getValidTo) identifier_getValidTo
)attribute
(argument_list
)argument_list
)call
(identifier_validfrom) identifier_validfrom
(None) None
)conditional_expression
)assignment
)expression_statement
(if_statement
(boolean_operator
(not_operator
(identifier_validfrom) identifier_validfrom
)not_operator
(not_operator
(identifier_validto) identifier_validto
)not_operator
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_validfrom) identifier_validfrom
(call
(attribute
(call
(attribute
(identifier_validfrom) identifier_validfrom
(identifier_asdatetime) identifier_asdatetime
)attribute
(argument_list
)argument_list
)call
(identifier_date) identifier_date
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_validto) identifier_validto
(call
(attribute
(call
(attribute
(identifier_validto) identifier_validto
(identifier_asdatetime) identifier_asdatetime
)attribute
(argument_list
)argument_list
)call
(identifier_date) identifier_date
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(boolean_operator
(comparison_operator
(identifier_today) identifier_today
(identifier_validfrom) identifier_validfrom
)comparison_operator
(comparison_operator
(identifier_today) identifier_today
(identifier_validto) identifier_validto
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(call
(attribute
(identifier_certs) identifier_certs
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_c) identifier_c
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_certs) identifier_certs
)return_statement
)block
)function_definition
)module | Returns the certifications fully valid |
(module
(function_definition
(function_name_page) function_name_page
(parameters
(identifier_request) identifier_request
(identifier_slug) identifier_slug
(default_parameter
(identifier_rev_id) identifier_rev_id
(None) None
)default_parameter
(default_parameter
(identifier_template_name) identifier_template_name
(string_'wakawaka/page.html') string_'wakawaka/page.html'
)default_parameter
(default_parameter
(identifier_extra_context) identifier_extra_context
(None) None
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_queryset) identifier_queryset
(call
(attribute
(attribute
(identifier_WikiPage) identifier_WikiPage
(identifier_objects) identifier_objects
)attribute
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_page) identifier_page
(call
(attribute
(identifier_queryset) identifier_queryset
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_slug) identifier_slug
(identifier_slug) identifier_slug
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rev) identifier_rev
(attribute
(identifier_page) identifier_page
(identifier_current) identifier_current
)attribute
)assignment
)expression_statement
(if_statement
(identifier_rev_id) identifier_rev_id
(block
(expression_statement
(assignment
(identifier_revision_queryset) identifier_revision_queryset
(call
(attribute
(attribute
(identifier_Revision) identifier_Revision
(identifier_objects) identifier_objects
)attribute
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rev_specific) identifier_rev_specific
(call
(attribute
(identifier_revision_queryset) identifier_revision_queryset
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_pk) identifier_pk
(identifier_rev_id) identifier_rev_id
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_rev) identifier_rev
(identifier_pk) identifier_pk
)attribute
(attribute
(identifier_rev_specific) identifier_rev_specific
(identifier_pk) identifier_pk
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_rev_specific) identifier_rev_specific
(identifier_is_not_current) identifier_is_not_current
)attribute
(True) True
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_rev) identifier_rev
(identifier_rev_specific) identifier_rev_specific
)assignment
)expression_statement
)block
)if_statement
)block
(except_clause
(attribute
(identifier_WikiPage) identifier_WikiPage
(identifier_DoesNotExist) identifier_DoesNotExist
)attribute
(block
(if_statement
(attribute
(attribute
(identifier_request) identifier_request
(identifier_user) identifier_user
)attribute
(identifier_is_authenticated) identifier_is_authenticated
)attribute
(block
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(dictionary
(pair
(string_'slug') string_'slug'
(identifier_slug) identifier_slug
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_redirect_to) identifier_redirect_to
(call
(identifier_reverse) identifier_reverse
(argument_list
(string_'wakawaka_edit') string_'wakawaka_edit'
(keyword_argument
(identifier_kwargs) identifier_kwargs
(identifier_kwargs) identifier_kwargs
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_HttpResponseRedirect) identifier_HttpResponseRedirect
(argument_list
(identifier_redirect_to) identifier_redirect_to
)argument_list
)call
)return_statement
)block
)if_statement
(raise_statement
(identifier_Http404) identifier_Http404
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_template_context) identifier_template_context
(dictionary
(pair
(string_'page') string_'page'
(identifier_page) identifier_page
)pair
(pair
(string_'rev') string_'rev'
(identifier_rev) identifier_rev
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_template_context) identifier_template_context
(identifier_update) identifier_update
)attribute
(argument_list
(boolean_operator
(identifier_extra_context) identifier_extra_context
(dictionary
)dictionary
)boolean_operator
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_render) identifier_render
(argument_list
(identifier_request) identifier_request
(identifier_template_name) identifier_template_name
(identifier_template_context) identifier_template_context
)argument_list
)call
)return_statement
)block
)function_definition
)module | Displays a wiki page. Redirects to the edit view if the page doesn't exist. |
(module
(function_definition
(function_name_check_vprint) function_name_check_vprint
(parameters
(identifier_s) identifier_s
(identifier_vprinter) identifier_vprinter
)parameters
(block
(if_statement
(comparison_operator
(identifier_vprinter) identifier_vprinter
(True) True
)comparison_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)expression_statement
)block
(elif_clause
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_vprinter) identifier_vprinter
)argument_list
)call
(block
(expression_statement
(call
(identifier_vprinter) identifier_vprinter
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | checked verbose printing |
(module
(function_definition
(function_name_build_frame) function_name_build_frame
(parameters
(identifier_command) identifier_command
(identifier_payload) identifier_payload
)parameters
(block
(expression_statement
(assignment
(identifier_packet_length) identifier_packet_length
(binary_operator
(binary_operator
(integer_2) integer_2
(call
(identifier_len) identifier_len
(argument_list
(identifier_payload) identifier_payload
)argument_list
)call
)binary_operator
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_struct) identifier_struct
(identifier_pack) identifier_pack
)attribute
(argument_list
(string_"BB") string_"BB"
(integer_0) integer_0
(identifier_packet_length) identifier_packet_length
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_struct) identifier_struct
(identifier_pack) identifier_pack
)attribute
(argument_list
(string_">H") string_">H"
(attribute
(identifier_command) identifier_command
(identifier_value) identifier_value
)attribute
)argument_list
)call
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(identifier_payload) identifier_payload
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_struct) identifier_struct
(identifier_pack) identifier_pack
)attribute
(argument_list
(string_"B") string_"B"
(call
(identifier_calc_crc) identifier_calc_crc
(argument_list
(identifier_ret) identifier_ret
)argument_list
)call
)argument_list
)call
)augmented_assignment
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Build raw bytes from command and payload. |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
(None) None
)comparison_operator
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__classes) identifier__classes
)attribute
)return_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__classes) identifier__classes
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
(else_clause
(block
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier__classes) identifier__classes
)attribute
(identifier_name) identifier_name
)subscript
)return_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns the plugin class object with the given name.
Or if a name is not given, the complete plugin dictionary is returned.
:param name: Name of a plugin
:return: None, single plugin or dictionary of plugins |
(module
(function_definition
(function_name_deps_status) function_name_deps_status
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_deps) identifier_deps
)attribute
)not_operator
(block
(return_statement
(list
(attribute
(identifier_self) identifier_self
(identifier_S_OK) identifier_S_OK
)attribute
)list
)return_statement
)block
)if_statement
(return_statement
(list_comprehension
(attribute
(identifier_d) identifier_d
(identifier_status) identifier_status
)attribute
(for_in_clause
(identifier_d) identifier_d
(attribute
(identifier_self) identifier_self
(identifier_deps) identifier_deps
)attribute
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Returns a list with the status of the dependencies. |
(module
(function_definition
(function_name_reset_stream) function_name_reset_stream
(parameters
(identifier_stream) identifier_stream
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_position) identifier_position
(call
(attribute
(identifier_stream) identifier_stream
(identifier_tell) identifier_tell
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(expression_statement
(assignment
(identifier_position) identifier_position
(True) True
)assignment
)expression_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(identifier_position) identifier_position
(integer_0) integer_0
)comparison_operator
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_stream) identifier_stream
(identifier_seek) identifier_seek
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(string_'It\'s not possible to reset this stream') string_'It\'s not possible to reset this stream'
)assignment
)expression_statement
(raise_statement
(call
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_TabulatorException) identifier_TabulatorException
)attribute
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)if_statement
)block
)function_definition
)module | Reset stream pointer to the first element.
If stream is not seekable raise Exception. |
(module
(function_definition
(function_name_com_google_fonts_check_smart_dropout) function_name_com_google_fonts_check_smart_dropout
(parameters
(identifier_ttFont) identifier_ttFont
)parameters
(block
(expression_statement
(assignment
(identifier_INSTRUCTIONS) identifier_INSTRUCTIONS
(string_b"\xb8\x01\xff\x85\xb0\x04\x8d") string_b"\xb8\x01\xff\x85\xb0\x04\x8d"
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(boolean_operator
(comparison_operator
(string_"prep") string_"prep"
(identifier_ttFont) identifier_ttFont
)comparison_operator
(comparison_operator
(identifier_INSTRUCTIONS) identifier_INSTRUCTIONS
(call
(attribute
(attribute
(subscript
(identifier_ttFont) identifier_ttFont
(string_"prep") string_"prep"
)subscript
(identifier_program) identifier_program
)attribute
(identifier_getBytecode) identifier_getBytecode
)attribute
(argument_list
)argument_list
)call
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(yield
(expression_list
(identifier_PASS) identifier_PASS
(parenthesized_expression
(concatenated_string
(string_"'prep' table contains instructions") string_"'prep' table contains instructions"
(string_" enabling smart dropout control.") string_" enabling smart dropout control."
)concatenated_string
)parenthesized_expression
)expression_list
)yield
)expression_statement
)block
(else_clause
(block
(expression_statement
(yield
(expression_list
(identifier_FAIL) identifier_FAIL
(parenthesized_expression
(concatenated_string
(string_"'prep' table does not contain TrueType ") string_"'prep' table does not contain TrueType "
(string_" instructions enabling smart dropout control.") string_" instructions enabling smart dropout control."
(string_" To fix, export the font with autohinting enabled,") string_" To fix, export the font with autohinting enabled,"
(string_" or run ttfautohint on the font, or run the ") string_" or run ttfautohint on the font, or run the "
(string_" `gftools fix-nonhinting` script.") string_" `gftools fix-nonhinting` script."
)concatenated_string
)parenthesized_expression
)expression_list
)yield
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Font enables smart dropout control in "prep" table instructions?
B8 01 FF PUSHW 0x01FF
85 SCANCTRL (unconditinally turn on
dropout control mode)
B0 04 PUSHB 0x04
8D SCANTYPE (enable smart dropout control)
Smart dropout control means activating rules 1, 2 and 5:
Rule 1: If a pixel's center falls within the glyph outline,
that pixel is turned on.
Rule 2: If a contour falls exactly on a pixel's center,
that pixel is turned on.
Rule 5: If a scan line between two adjacent pixel centers
(either vertical or horizontal) is intersected
by both an on-Transition contour and an off-Transition
contour and neither of the pixels was already turned on
by rules 1 and 2, turn on the pixel which is closer to
the midpoint between the on-Transition contour and
off-Transition contour. This is "Smart" dropout control. |
(module
(function_definition
(function_name_auto_convert_cell_no_flags) function_name_auto_convert_cell_no_flags
(parameters
(identifier_cell) identifier_cell
(default_parameter
(identifier_units) identifier_units
(None) None
)default_parameter
(default_parameter
(identifier_parens_as_neg) identifier_parens_as_neg
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_units) identifier_units
(conditional_expression
(identifier_units) identifier_units
(comparison_operator
(identifier_units) identifier_units
(None) None
)comparison_operator
(dictionary
)dictionary
)conditional_expression
)assignment
)expression_statement
(return_statement
(call
(identifier_auto_convert_cell) identifier_auto_convert_cell
(argument_list
(keyword_argument
(identifier_flagable) identifier_flagable
(call
(identifier_Flagable) identifier_Flagable
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_cell) identifier_cell
(identifier_cell) identifier_cell
)keyword_argument
(keyword_argument
(identifier_position) identifier_position
(None) None
)keyword_argument
(keyword_argument
(identifier_worksheet) identifier_worksheet
(integer_0) integer_0
)keyword_argument
(keyword_argument
(identifier_flags) identifier_flags
(dictionary
)dictionary
)keyword_argument
(keyword_argument
(identifier_units) identifier_units
(identifier_units) identifier_units
)keyword_argument
(keyword_argument
(identifier_parens_as_neg) identifier_parens_as_neg
(identifier_parens_as_neg) identifier_parens_as_neg
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Performs a first step conversion of the cell to check
it's type or try to convert if a valid conversion exists.
This version of conversion doesn't flag changes nor store
cell units.
Args:
units: The dictionary holder for cell units.
parens_as_neg: Converts numerics surrounded by parens to
negative values |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.