sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_pull_image) function_name_pull_image
(parameters
(identifier_self) identifier_self
(identifier_image_name) identifier_image_name
(default_parameter
(identifier_stream) identifier_stream
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_stream_writer) identifier_stream_writer
(boolean_operator
(identifier_stream) identifier_stream
(call
(identifier_StreamWriter) identifier_StreamWriter
(argument_list
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_result_itr) identifier_result_itr
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_docker_client) identifier_docker_client
)attribute
(identifier_api) identifier_api
)attribute
(identifier_pull) identifier_pull
)attribute
(argument_list
(identifier_image_name) identifier_image_name
(keyword_argument
(identifier_stream) identifier_stream
(True) True
)keyword_argument
(keyword_argument
(identifier_decode) identifier_decode
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(attribute
(identifier_docker) identifier_docker
(identifier_errors) identifier_errors
)attribute
(identifier_APIError) identifier_APIError
)attribute
(as_pattern_target
(identifier_ex) identifier_ex
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Failed to download image with name %s") string_"Failed to download image with name %s"
(identifier_image_name) identifier_image_name
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_DockerImagePullFailedException) identifier_DockerImagePullFailedException
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_ex) identifier_ex
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(identifier_stream_writer) identifier_stream_writer
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(string_u"\nFetching {} Docker container image...") string_u"\nFetching {} Docker container image..."
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_image_name) identifier_image_name
)argument_list
)call
)argument_list
)call
)expression_statement
(for_statement
(identifier__) identifier__
(identifier_result_itr) identifier_result_itr
(block
(expression_statement
(call
(attribute
(identifier_stream_writer) identifier_stream_writer
(identifier_write) identifier_write
)attribute
(argument_list
(string_u'.') string_u'.'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_stream_writer) identifier_stream_writer
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_stream_writer) identifier_stream_writer
(identifier_write) identifier_write
)attribute
(argument_list
(string_u"\n") string_u"\n"
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Ask Docker to pull the container image with given name.
Parameters
----------
image_name str
Name of the image
stream samcli.lib.utils.stream_writer.StreamWriter
Optional stream writer to output to. Defaults to stderr
Raises
------
DockerImagePullFailedException
If the Docker image was not available in the server |
(module
(function_definition
(function_name_getall) function_name_getall
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_vrfs_re) identifier_vrfs_re
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(string_r'(?<=^vrf definition\s)(\w+)') string_r'(?<=^vrf definition\s)(\w+)'
(attribute
(identifier_re) identifier_re
(identifier_M) identifier_M
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_vrf) identifier_vrf
(call
(attribute
(identifier_vrfs_re) identifier_vrfs_re
(identifier_findall) identifier_findall
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_response) identifier_response
(identifier_vrf) identifier_vrf
)subscript
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_vrf) identifier_vrf
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Returns a dict object of all VRFs in the running-config
Returns:
A dict object of VRF attributes |
(module
(function_definition
(function_name_artboards) function_name_artboards
(parameters
(identifier_src_path) identifier_src_path
)parameters
(block
(expression_statement
(assignment
(identifier_pages) identifier_pages
(call
(identifier_list_artboards) identifier_list_artboards
(argument_list
(identifier_src_path) identifier_src_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_artboards) identifier_artboards
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_page) identifier_page
(identifier_pages) identifier_pages
(block
(expression_statement
(call
(attribute
(identifier_artboards) identifier_artboards
(identifier_extend) identifier_extend
)attribute
(argument_list
(attribute
(identifier_page) identifier_page
(identifier_artboards) identifier_artboards
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_artboards) identifier_artboards
)return_statement
)block
)function_definition
)module | Return artboards as a flat list |
(module
(function_definition
(function_name_getHourTable) function_name_getHourTable
(parameters
(identifier_date) identifier_date
(identifier_pos) identifier_pos
)parameters
(block
(expression_statement
(assignment
(identifier_table) identifier_table
(call
(identifier_hourTable) identifier_hourTable
(argument_list
(identifier_date) identifier_date
(identifier_pos) identifier_pos
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_HourTable) identifier_HourTable
(argument_list
(identifier_table) identifier_table
(identifier_date) identifier_date
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns an HourTable object. |
(module
(function_definition
(function_name_get_query_str) function_name_get_query_str
(parameters
(typed_parameter
(identifier_query) identifier_query
(type
(generic_type
(identifier_Type) identifier_Type
(type_parameter
(type
(identifier_QueryDict) identifier_QueryDict
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_default_parameter
(identifier_max_length) identifier_max_length
(type
(identifier_int) identifier_int
)type
(integer_1024) integer_1024
)typed_default_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_query_dict) identifier_query_dict
(call
(attribute
(identifier_query) identifier_query
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_query_dict) identifier_query_dict
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'password') string_'password'
(None) None
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_query_dict) identifier_query_dict
(identifier_pop) identifier_pop
)attribute
(argument_list
(attribute
(identifier_settings) identifier_settings
(identifier_AXES_PASSWORD_FORM_FIELD) identifier_AXES_PASSWORD_FORM_FIELD
)attribute
(None) None
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_query_str) identifier_query_str
(call
(attribute
(string_'\n') string_'\n'
(identifier_join) identifier_join
)attribute
(generator_expression
(string_f'{key}={value}') string_f'{key}={value}'
(for_in_clause
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_query_dict) identifier_query_dict
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(return_statement
(subscript
(identifier_query_str) identifier_query_str
(slice
(colon) colon
(identifier_max_length) identifier_max_length
)slice
)subscript
)return_statement
)block
)function_definition
)module | Turns a query dictionary into an easy-to-read list of key-value pairs.
If a field is called either ``'password'`` or ``settings.AXES_PASSWORD_FORM_FIELD`` it will be excluded.
The length of the output is limited to max_length to avoid a DoS attack via excessively large payloads. |
(module
(function_definition
(function_name_append_var_uint32) function_name_append_var_uint32
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(not_operator
(comparison_operator
(integer_0) integer_0
(identifier_value) identifier_value
(attribute
(identifier_wire_format) identifier_wire_format
(identifier_UINT32_MAX) identifier_UINT32_MAX
)attribute
)comparison_operator
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_EncodeError) identifier_EncodeError
)attribute
(argument_list
(binary_operator
(string_'Value out of range: %d') string_'Value out of range: %d'
(identifier_value) identifier_value
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_append_var_uint64) identifier_append_var_uint64
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Appends an unsigned 32-bit integer to the internal buffer,
encoded as a varint. |
(module
(function_definition
(function_name_getTimeSinceLastVsync) function_name_getTimeSinceLastVsync
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_fn) identifier_fn
(attribute
(attribute
(identifier_self) identifier_self
(identifier_function_table) identifier_function_table
)attribute
(identifier_getTimeSinceLastVsync) identifier_getTimeSinceLastVsync
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pfSecondsSinceLastVsync) identifier_pfSecondsSinceLastVsync
(call
(identifier_c_float) identifier_c_float
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pulFrameCounter) identifier_pulFrameCounter
(call
(identifier_c_uint64) identifier_c_uint64
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_fn) identifier_fn
(argument_list
(call
(identifier_byref) identifier_byref
(argument_list
(identifier_pfSecondsSinceLastVsync) identifier_pfSecondsSinceLastVsync
)argument_list
)call
(call
(identifier_byref) identifier_byref
(argument_list
(identifier_pulFrameCounter) identifier_pulFrameCounter
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_result) identifier_result
(attribute
(identifier_pfSecondsSinceLastVsync) identifier_pfSecondsSinceLastVsync
(identifier_value) identifier_value
)attribute
(attribute
(identifier_pulFrameCounter) identifier_pulFrameCounter
(identifier_value) identifier_value
)attribute
)expression_list
)return_statement
)block
)function_definition
)module | Returns the number of elapsed seconds since the last recorded vsync event. This
will come from a vsync timer event in the timer if possible or from the application-reported
time if that is not available. If no vsync times are available the function will
return zero for vsync time and frame counter and return false from the method. |
(module
(function_definition
(function_name_capture_packet) function_name_capture_packet
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_socket) identifier_socket
)attribute
(identifier_recv) identifier_recv
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__buffer_size) identifier__buffer_size
)attribute
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_h) identifier_h
(attribute
(identifier_self) identifier_self
(identifier_capture_handlers) identifier_capture_handlers
)attribute
(block
(expression_statement
(augmented_assignment
(subscript
(identifier_h) identifier_h
(string_'reads') string_'reads'
)subscript
(integer_1) integer_1
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(subscript
(identifier_h) identifier_h
(string_'data_read') string_'data_read'
)subscript
(call
(identifier_len) identifier_len
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_d) identifier_d
(identifier_data) identifier_data
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'pre_write_transforms') string_'pre_write_transforms'
(identifier_h) identifier_h
)comparison_operator
(block
(for_statement
(identifier_data_transform) identifier_data_transform
(subscript
(identifier_h) identifier_h
(string_'pre_write_transforms') string_'pre_write_transforms'
)subscript
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(identifier_data_transform) identifier_data_transform
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
)block
)if_statement
(expression_statement
(call
(attribute
(subscript
(identifier_h) identifier_h
(string_'logger') string_'logger'
)subscript
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Write packet data to the logger's log file. |
(module
(function_definition
(function_name_getAllNodeUids) function_name_getAllNodeUids
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(set
(attribute
(identifier_self) identifier_self
(identifier_uid) identifier_uid
)attribute
)set
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ret) identifier_ret
(identifier_update) identifier_update
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_getAllChildNodeUids) identifier_getAllChildNodeUids
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | getAllNodeUids - Returns all the unique internal IDs from getAllChildNodeUids, but also includes this tag's uid
@return set<uuid.UUID> A set of uuid objects |
(module
(function_definition
(function_name_is_main_variation) function_name_is_main_variation
(parameters
(identifier_self) identifier_self
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
)not_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(return_statement
(boolean_operator
(not_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(identifier_variations) identifier_variations
)attribute
)not_operator
(comparison_operator
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(identifier_variations) identifier_variations
)attribute
(integer_0) integer_0
)subscript
(identifier_self) identifier_self
)comparison_operator
)boolean_operator
)return_statement
)block
)function_definition
)module | Checks if this node is the first variation from the point of view of its
parent. The root node is also in the main variation. |
(module
(function_definition
(function_name__read_until) function_name__read_until
(parameters
(default_parameter
(identifier_infile) identifier_infile
(attribute
(identifier_sys) identifier_sys
(identifier_stdin) identifier_stdin
)attribute
)default_parameter
(default_parameter
(identifier_maxchars) identifier_maxchars
(integer_20) integer_20
)default_parameter
(default_parameter
(identifier_end) identifier_end
(identifier_RS) identifier_RS
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_chars) identifier_chars
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_read) identifier_read
(attribute
(identifier_infile) identifier_infile
(identifier_read) identifier_read
)attribute
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_end) identifier_end
(identifier_tuple) identifier_tuple
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_end) identifier_end
(tuple
(identifier_end) identifier_end
)tuple
)assignment
)expression_statement
)block
)if_statement
(while_statement
(identifier_maxchars) identifier_maxchars
(block
(expression_statement
(assignment
(identifier_char) identifier_char
(call
(identifier_read) identifier_read
(argument_list
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_char) identifier_char
(identifier_end) identifier_end
)comparison_operator
(block
(break_statement
)break_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_chars) identifier_chars
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_char) identifier_char
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_maxchars) identifier_maxchars
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)while_statement
(return_statement
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_chars) identifier_chars
)argument_list
)call
)return_statement
)block
)function_definition
)module | Read a terminal response of up to a few characters from stdin. |
(module
(function_definition
(function_name_remove_callback) function_name_remove_callback
(parameters
(identifier_self) identifier_self
(identifier_callback) identifier_callback
(default_parameter
(identifier_msg_type) identifier_msg_type
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_msg_type) identifier_msg_type
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_msg_type) identifier_msg_type
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__callbacks) identifier__callbacks
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cb_keys) identifier_cb_keys
(call
(attribute
(identifier_self) identifier_self
(identifier__to_iter) identifier__to_iter
)attribute
(argument_list
(identifier_msg_type) identifier_msg_type
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_cb_keys) identifier_cb_keys
(None) None
)comparison_operator
(block
(for_statement
(identifier_msg_type_) identifier_msg_type_
(identifier_cb_keys) identifier_cb_keys
(block
(try_statement
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__callbacks) identifier__callbacks
)attribute
(identifier_msg_type_) identifier_msg_type_
)subscript
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_callback) identifier_callback
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__callbacks) identifier__callbacks
)attribute
(identifier_msg_type) identifier_msg_type
)subscript
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_callback) identifier_callback
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Remove per message type of global callback.
Parameters
----------
callback : fn
Callback function
msg_type : int | iterable
Message type to remove callback from. Default `None` means global callback.
Iterable type removes the callback from all the message types. |
(module
(function_definition
(function_name_stonith_create) function_name_stonith_create
(parameters
(identifier_stonith_id) identifier_stonith_id
(identifier_stonith_device_type) identifier_stonith_device_type
(default_parameter
(identifier_stonith_device_options) identifier_stonith_device_options
(None) None
)default_parameter
(default_parameter
(identifier_cibfile) identifier_cibfile
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_item_create) identifier_item_create
(argument_list
(keyword_argument
(identifier_item) identifier_item
(string_'stonith') string_'stonith'
)keyword_argument
(keyword_argument
(identifier_item_id) identifier_item_id
(identifier_stonith_id) identifier_stonith_id
)keyword_argument
(keyword_argument
(identifier_item_type) identifier_item_type
(identifier_stonith_device_type) identifier_stonith_device_type
)keyword_argument
(keyword_argument
(identifier_extra_args) identifier_extra_args
(identifier_stonith_device_options) identifier_stonith_device_options
)keyword_argument
(keyword_argument
(identifier_cibfile) identifier_cibfile
(identifier_cibfile) identifier_cibfile
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a stonith resource via pcs command
stonith_id
name for the stonith resource
stonith_device_type
name of the stonith agent fence_eps, fence_xvm f.e.
stonith_device_options
additional options for creating the stonith resource
cibfile
use cibfile instead of the live CIB for manipulation
CLI Example:
.. code-block:: bash
salt '*' pcs.stonith_create stonith_id='eps_fence' stonith_device_type='fence_eps'
stonith_device_options="['pcmk_host_map=node1.example.org:01;node2.example.org:02', 'ipaddr=myepsdevice.example.org', 'action=reboot', 'power_wait=5', 'verbose=1', 'debug=/var/log/pcsd/eps_fence.log', 'login=hidden', 'passwd=hoonetorg']" cibfile='/tmp/cib_for_stonith.cib' |
(module
(function_definition
(function_name_v1_tag_associate) function_name_v1_tag_associate
(parameters
(identifier_request) identifier_request
(identifier_tags) identifier_tags
(identifier_tag) identifier_tag
)parameters
(block
(expression_statement
(assignment
(identifier_tag) identifier_tag
(call
(attribute
(call
(attribute
(identifier_tag) identifier_tag
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_assoc) identifier_assoc
(call
(identifier_dict) identifier_dict
(argument_list
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_body) identifier_body
)attribute
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(dictionary_splat
(dictionary
(pair
(string_'tag') string_'tag'
(identifier_tag) identifier_tag
)pair
)dictionary
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_tags) identifier_tags
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_assoc) identifier_assoc
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Associate an HTML element with a tag.
The association should be a JSON serialized object on the
request body. Here is an example association that should
make the object's structure clear:
.. code-block:: python
{
"url": "http://example.com/abc/xyz?foo=bar",
"text": "The text the user highlighted.",
"stream_id": "{unix timestamp}-{md5 of url}",
"hash": "{nilsimsa hash of the HTML}",
"timestamp": {unix timestamp},
"xpath": {
"start_node": "/html/body/p[1]/text()[2]",
"start_idx": 3,
"end_node": "/html/body/p[1]/text()[3]",
"end_idx": 9
}
}
All fields are required and cannot be empty or ``null``.
The tag of the association should be specified in the URL
and is delimited by ``//``. |
(module
(function_definition
(function_name_getedges) function_name_getedges
(parameters
(identifier_fname) identifier_fname
(identifier_iddfile) identifier_iddfile
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_data) identifier_data
(identifier_commdct) identifier_commdct
(identifier__idd_index) identifier__idd_index
)pattern_list
(call
(attribute
(identifier_readidf) identifier_readidf
(identifier_readdatacommdct) identifier_readdatacommdct
)attribute
(argument_list
(identifier_fname) identifier_fname
(keyword_argument
(identifier_iddfile) identifier_iddfile
(identifier_iddfile) identifier_iddfile
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_edges) identifier_edges
(call
(identifier_makeairplantloop) identifier_makeairplantloop
(argument_list
(identifier_data) identifier_data
(identifier_commdct) identifier_commdct
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_edges) identifier_edges
)return_statement
)block
)function_definition
)module | return the edges of the idf file fname |
(module
(function_definition
(function_name_gff3_to_recarray) function_name_gff3_to_recarray
(parameters
(identifier_path) identifier_path
(default_parameter
(identifier_attributes) identifier_attributes
(None) None
)default_parameter
(default_parameter
(identifier_region) identifier_region
(None) None
)default_parameter
(default_parameter
(identifier_score_fill) identifier_score_fill
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
(default_parameter
(identifier_phase_fill) identifier_phase_fill
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
(default_parameter
(identifier_attributes_fill) identifier_attributes_fill
(string_'.') string_'.'
)default_parameter
(default_parameter
(identifier_tabix) identifier_tabix
(string_'tabix') string_'tabix'
)default_parameter
(default_parameter
(identifier_dtype) identifier_dtype
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_recs) identifier_recs
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_iter_gff3) identifier_iter_gff3
(argument_list
(identifier_path) identifier_path
(keyword_argument
(identifier_attributes) identifier_attributes
(identifier_attributes) identifier_attributes
)keyword_argument
(keyword_argument
(identifier_region) identifier_region
(identifier_region) identifier_region
)keyword_argument
(keyword_argument
(identifier_score_fill) identifier_score_fill
(identifier_score_fill) identifier_score_fill
)keyword_argument
(keyword_argument
(identifier_phase_fill) identifier_phase_fill
(identifier_phase_fill) identifier_phase_fill
)keyword_argument
(keyword_argument
(identifier_attributes_fill) identifier_attributes_fill
(identifier_attributes_fill) identifier_attributes_fill
)keyword_argument
(keyword_argument
(identifier_tabix) identifier_tabix
(identifier_tabix) identifier_tabix
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_recs) identifier_recs
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_dtype) identifier_dtype
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_dtype) identifier_dtype
(list
(tuple
(string_'seqid') string_'seqid'
(identifier_object) identifier_object
)tuple
(tuple
(string_'source') string_'source'
(identifier_object) identifier_object
)tuple
(tuple
(string_'type') string_'type'
(identifier_object) identifier_object
)tuple
(tuple
(string_'start') string_'start'
(identifier_int) identifier_int
)tuple
(tuple
(string_'end') string_'end'
(identifier_int) identifier_int
)tuple
(tuple
(string_'score') string_'score'
(identifier_float) identifier_float
)tuple
(tuple
(string_'strand') string_'strand'
(identifier_object) identifier_object
)tuple
(tuple
(string_'phase') string_'phase'
(identifier_int) identifier_int
)tuple
)list
)assignment
)expression_statement
(if_statement
(identifier_attributes) identifier_attributes
(block
(for_statement
(identifier_n) identifier_n
(identifier_attributes) identifier_attributes
(block
(expression_statement
(call
(attribute
(identifier_dtype) identifier_dtype
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_n) identifier_n
(identifier_object) identifier_object
)tuple
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_a) identifier_a
(call
(attribute
(attribute
(identifier_np) identifier_np
(identifier_rec) identifier_rec
)attribute
(identifier_fromrecords) identifier_fromrecords
)attribute
(argument_list
(identifier_recs) identifier_recs
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_dtype) identifier_dtype
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_a) identifier_a
)return_statement
)block
)function_definition
)module | Load data from a GFF3 into a NumPy recarray.
Parameters
----------
path : string
Path to input file.
attributes : list of strings, optional
List of columns to extract from the "attributes" field.
region : string, optional
Genome region to extract. If given, file must be position
sorted, bgzipped and tabix indexed. Tabix must also be installed
and on the system path.
score_fill : int, optional
Value to use where score field has a missing value.
phase_fill : int, optional
Value to use where phase field has a missing value.
attributes_fill : object or list of objects, optional
Value(s) to use where attribute field(s) have a missing value.
tabix : string, optional
Tabix command.
dtype : dtype, optional
Override dtype.
Returns
-------
np.recarray |
(module
(function_definition
(function_name_update_workspace_attributes) function_name_update_workspace_attributes
(parameters
(identifier_namespace) identifier_namespace
(identifier_workspace) identifier_workspace
(identifier_attrs) identifier_attrs
)parameters
(block
(expression_statement
(assignment
(identifier_headers) identifier_headers
(call
(identifier__fiss_agent_header) identifier__fiss_agent_header
(argument_list
(dictionary
(pair
(string_"Content-type") string_"Content-type"
(string_"application/json") string_"application/json"
)pair
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_uri) identifier_uri
(call
(attribute
(string_"{0}workspaces/{1}/{2}/updateAttributes") string_"{0}workspaces/{1}/{2}/updateAttributes"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_fcconfig) identifier_fcconfig
(identifier_root_url) identifier_root_url
)attribute
(identifier_namespace) identifier_namespace
(identifier_workspace) identifier_workspace
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_body) identifier_body
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_attrs) identifier_attrs
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier___SESSION) identifier___SESSION
(identifier_patch) identifier_patch
)attribute
(argument_list
(identifier_uri) identifier_uri
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_body) identifier_body
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Update or remove workspace attributes.
Args:
namespace (str): project to which workspace belongs
workspace (str): Workspace name
attrs (list(dict)): List of update operations for workspace attributes.
Use the helper dictionary construction functions to create these:
_attr_set() : Set/Update attribute
_attr_rem() : Remove attribute
_attr_ladd() : Add list member to attribute
_attr_lrem() : Remove list member from attribute
Swagger:
https://api.firecloud.org/#!/Workspaces/updateAttributes |
(module
(function_definition
(function_name_depth) function_name_depth
(parameters
(identifier_sequence) identifier_sequence
(default_parameter
(identifier_func) identifier_func
(identifier_max) identifier_max
)default_parameter
(default_parameter
(identifier__depth) identifier__depth
(integer_0) integer_0
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_sequence) identifier_sequence
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_sequence) identifier_sequence
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_sequence) identifier_sequence
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_depth_list) identifier_depth_list
(list_comprehension
(call
(identifier_depth) identifier_depth
(argument_list
(identifier_item) identifier_item
(keyword_argument
(identifier_func) identifier_func
(identifier_func) identifier_func
)keyword_argument
(keyword_argument
(identifier__depth) identifier__depth
(binary_operator
(identifier__depth) identifier__depth
(integer_1) integer_1
)binary_operator
)keyword_argument
)argument_list
)call
(for_in_clause
(identifier_item) identifier_item
(identifier_sequence) identifier_sequence
)for_in_clause
(if_clause
(parenthesized_expression
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_item) identifier_item
(identifier_dict) identifier_dict
)argument_list
)call
(call
(attribute
(identifier_util_type) identifier_util_type
(identifier_is_listlike) identifier_is_listlike
)attribute
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)boolean_operator
)parenthesized_expression
)if_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_depth_list) identifier_depth_list
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(call
(identifier_func) identifier_func
(argument_list
(identifier_depth_list) identifier_depth_list
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(identifier__depth) identifier__depth
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Find the nesting depth of a nested sequence |
(module
(function_definition
(function_name_from_str) function_name_from_str
(parameters
(identifier_cls) identifier_cls
(identifier_string) identifier_string
)parameters
(block
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(list_comprehension
(call
(attribute
(identifier_Literal) identifier_Literal
(identifier_from_str) identifier_from_str
)attribute
(argument_list
(identifier_lit) identifier_lit
)argument_list
)call
(for_in_clause
(identifier_lit) identifier_lit
(call
(attribute
(identifier_string) identifier_string
(identifier_split) identifier_split
)attribute
(argument_list
(string_'+') string_'+'
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates a clause from a given string.
Parameters
----------
string: str
A string of the form `a+!b` which translates to `a AND NOT b`.
Returns
-------
caspo.core.clause.Clause
Created object instance |
(module
(function_definition
(function_name_get_automatic_parser) function_name_get_automatic_parser
(parameters
(identifier_exim_id) identifier_exim_id
(identifier_infile) identifier_infile
)parameters
(block
(expression_statement
(assignment
(identifier_adapter) identifier_adapter
(call
(identifier_getExim) identifier_getExim
(argument_list
(identifier_exim_id) identifier_exim_id
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_IInstrumentAutoImportInterface) identifier_IInstrumentAutoImportInterface
(identifier_providedBy) identifier_providedBy
)attribute
(argument_list
(identifier_adapter) identifier_adapter
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_adapter) identifier_adapter
(identifier_get_automatic_parser) identifier_get_automatic_parser
)attribute
(argument_list
(identifier_infile) identifier_infile
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_parser_func) identifier_parser_func
(call
(identifier_filter) identifier_filter
(argument_list
(lambda
(lambda_parameters
(identifier_i) identifier_i
)lambda_parameters
(comparison_operator
(subscript
(identifier_i) identifier_i
(integer_0) integer_0
)subscript
(identifier_exim_id) identifier_exim_id
)comparison_operator
)lambda
(identifier_PARSERS) identifier_PARSERS
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parser_func) identifier_parser_func
(boolean_operator
(boolean_operator
(identifier_parser_func) identifier_parser_func
(subscript
(subscript
(identifier_parser_func) identifier_parser_func
(integer_0) integer_0
)subscript
(integer_1) integer_1
)subscript
)boolean_operator
(None) None
)boolean_operator
)assignment
)expression_statement
(if_statement
(boolean_operator
(not_operator
(identifier_parser_func) identifier_parser_func
)not_operator
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_adapter) identifier_adapter
(identifier_parser_func) identifier_parser_func
)argument_list
)call
)not_operator
)boolean_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_parser_func) identifier_parser_func
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_adapter) identifier_adapter
(identifier_parser_func) identifier_parser_func
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_parser_func) identifier_parser_func
(argument_list
(identifier_infile) identifier_infile
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the parser to be used by default for the instrument id interface
and results file passed in. |
(module
(function_definition
(function_name_iter_issues) function_name_iter_issues
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_milestone) identifier_milestone
(None) None
)default_parameter
(default_parameter
(identifier_state) identifier_state
(None) None
)default_parameter
(default_parameter
(identifier_assignee) identifier_assignee
(None) None
)default_parameter
(default_parameter
(identifier_mentioned) identifier_mentioned
(None) None
)default_parameter
(default_parameter
(identifier_labels) identifier_labels
(None) None
)default_parameter
(default_parameter
(identifier_sort) identifier_sort
(None) None
)default_parameter
(default_parameter
(identifier_direction) identifier_direction
(None) None
)default_parameter
(default_parameter
(identifier_since) identifier_since
(None) None
)default_parameter
(default_parameter
(identifier_number) identifier_number
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
(default_parameter
(identifier_etag) identifier_etag
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_self) identifier_self
(identifier__build_url) identifier__build_url
)attribute
(argument_list
(string_'issues') string_'issues'
(keyword_argument
(identifier_base_url) identifier_base_url
(attribute
(identifier_self) identifier_self
(identifier__api) identifier__api
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'assignee') string_'assignee'
(identifier_assignee) identifier_assignee
)pair
(pair
(string_'mentioned') string_'mentioned'
(identifier_mentioned) identifier_mentioned
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_milestone) identifier_milestone
(tuple
(string_'*') string_'*'
(string_'none') string_'none'
)tuple
)comparison_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_milestone) identifier_milestone
(identifier_int) identifier_int
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'milestone') string_'milestone'
)subscript
(identifier_milestone) identifier_milestone
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__remove_none) identifier__remove_none
)attribute
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_params) identifier_params
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_issue_params) identifier_issue_params
(argument_list
(None) None
(identifier_state) identifier_state
(identifier_labels) identifier_labels
(identifier_sort) identifier_sort
(identifier_direction) identifier_direction
(identifier_since) identifier_since
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__iter) identifier__iter
)attribute
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(identifier_number) identifier_number
)argument_list
)call
(identifier_url) identifier_url
(identifier_Issue) identifier_Issue
(identifier_params) identifier_params
(identifier_etag) identifier_etag
)argument_list
)call
)return_statement
)block
)function_definition
)module | Iterate over issues on this repo based upon parameters passed.
.. versionchanged:: 0.9.0
The ``state`` parameter now accepts 'all' in addition to 'open'
and 'closed'.
:param int milestone: (optional), 'none', or '*'
:param str state: (optional), accepted values: ('all', 'open',
'closed')
:param str assignee: (optional), 'none', '*', or login name
:param str mentioned: (optional), user's login name
:param str labels: (optional), comma-separated list of labels, e.g.
'bug,ui,@high'
:param sort: (optional), accepted values:
('created', 'updated', 'comments', 'created')
:param str direction: (optional), accepted values: ('asc', 'desc')
:param since: (optional), Only issues after this date will
be returned. This can be a `datetime` or an `ISO8601` formatted
date string, e.g., 2012-05-20T23:10:27Z
:type since: datetime or string
:param int number: (optional), Number of issues to return.
By default all issues are returned
:param str etag: (optional), ETag from a previous request to the same
endpoint
:returns: generator of :class:`Issue <github3.issues.issue.Issue>`\ s |
(module
(function_definition
(function_name_change_directory) function_name_change_directory
(parameters
(identifier_self) identifier_self
(identifier_directory) identifier_directory
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__process) identifier__process
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(parenthesized_expression
(binary_operator
(string_'cd %s\n') string_'cd %s\n'
(identifier_directory) identifier_directory
)binary_operator
)parenthesized_expression
(identifier_encode) identifier_encode
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_sys) identifier_sys
(identifier_platform) identifier_platform
)attribute
(string_'win32') string_'win32'
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__process) identifier__process
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(parenthesized_expression
(binary_operator
(subscript
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_splitdrive) identifier_splitdrive
)attribute
(argument_list
(identifier_directory) identifier_directory
)argument_list
)call
(integer_0) integer_0
)subscript
(string_'\r\n') string_'\r\n'
)binary_operator
)parenthesized_expression
(identifier_encode) identifier_encode
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__process) identifier__process
)attribute
(identifier_write) identifier_write
)attribute
(argument_list
(string_b'\x0C') string_b'\x0C'
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Changes the current directory.
Change is made by running a "cd" command followed by a "clear" command.
:param directory:
:return: |
(module
(function_definition
(function_name__sync_enter) function_name__sync_enter
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'loop') string_'loop'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_loop) identifier_loop
(attribute
(identifier_self) identifier_self
(identifier_loop) identifier_loop
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_loop) identifier_loop
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_loop) identifier_loop
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(call
(attribute
(identifier_loop) identifier_loop
(identifier_is_running) identifier_is_running
)attribute
(argument_list
)argument_list
)call
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(concatenated_string
(string_'You must use "async with" if the event loop ') string_'You must use "async with" if the event loop '
(string_'is running (i.e. you are inside an "async def")') string_'is running (i.e. you are inside an "async def")'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_loop) identifier_loop
(identifier_run_until_complete) identifier_run_until_complete
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier___aenter__) identifier___aenter__
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Helps to cut boilerplate on async context
managers that offer synchronous variants. |
(module
(function_definition
(function_name_max_or) function_name_max_or
(parameters
(identifier_a) identifier_a
(identifier_b) identifier_b
(identifier_c) identifier_c
(identifier_d) identifier_d
(identifier_w) identifier_w
)parameters
(block
(expression_statement
(assignment
(identifier_m) identifier_m
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(parenthesized_expression
(binary_operator
(identifier_w) identifier_w
(integer_1) integer_1
)binary_operator
)parenthesized_expression
)binary_operator
)parenthesized_expression
)assignment
)expression_statement
(while_statement
(comparison_operator
(identifier_m) identifier_m
(integer_0) integer_0
)comparison_operator
(block
(if_statement
(comparison_operator
(parenthesized_expression
(binary_operator
(binary_operator
(identifier_b) identifier_b
(identifier_d) identifier_d
)binary_operator
(identifier_m) identifier_m
)binary_operator
)parenthesized_expression
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_temp) identifier_temp
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_b) identifier_b
(identifier_m) identifier_m
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_m) identifier_m
(integer_1) integer_1
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_temp) identifier_temp
(identifier_a) identifier_a
)comparison_operator
(block
(expression_statement
(assignment
(identifier_b) identifier_b
(identifier_temp) identifier_temp
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_temp) identifier_temp
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_d) identifier_d
(identifier_m) identifier_m
)binary_operator
)parenthesized_expression
(parenthesized_expression
(binary_operator
(identifier_m) identifier_m
(integer_1) integer_1
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_temp) identifier_temp
(identifier_c) identifier_c
)comparison_operator
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(identifier_temp) identifier_temp
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_m) identifier_m
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)while_statement
(return_statement
(binary_operator
(identifier_b) identifier_b
(identifier_d) identifier_d
)binary_operator
)return_statement
)block
)function_definition
)module | Upper bound of result of ORing 2-intervals.
:param a: Lower bound of first interval
:param b: Upper bound of first interval
:param c: Lower bound of second interval
:param d: Upper bound of second interval
:param w: bit width
:return: Upper bound of ORing 2-intervals |
(module
(function_definition
(function_name_netmask) function_name_netmask
(parameters
(identifier_mask) identifier_mask
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_mask) identifier_mask
(identifier_string_types) identifier_string_types
)argument_list
)call
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_octets) identifier_octets
(call
(attribute
(identifier_mask) identifier_mask
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_octets) identifier_octets
)argument_list
)call
(integer_4) integer_4
)comparison_operator
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(boolean_operator
(call
(identifier_ipv4_addr) identifier_ipv4_addr
(argument_list
(identifier_mask) identifier_mask
)argument_list
)call
(comparison_operator
(identifier_octets) identifier_octets
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_octets) identifier_octets
(keyword_argument
(identifier_reverse) identifier_reverse
(True) True
)keyword_argument
)argument_list
)call
)comparison_operator
)boolean_operator
)return_statement
)block
)function_definition
)module | Returns True if the value passed is a valid netmask, otherwise return False |
(module
(function_definition
(function_name_complain) function_name_complain
(parameters
(identifier_error) identifier_error
)parameters
(block
(if_statement
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_error) identifier_error
)argument_list
)call
(block
(if_statement
(identifier_DEVELOP) identifier_DEVELOP
(block
(raise_statement
(call
(identifier_error) identifier_error
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
)block
(elif_clause
(identifier_DEVELOP) identifier_DEVELOP
(block
(raise_statement
(identifier_error) identifier_error
)raise_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warn_err) identifier_warn_err
)attribute
(argument_list
(identifier_error) identifier_error
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Raises in develop; warns in release. |
(module
(function_definition
(function_name_generate_config) function_name_generate_config
(parameters
(identifier_directory) identifier_directory
)parameters
(block
(expression_statement
(assignment
(identifier_default_config) identifier_default_config
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_realpath) identifier_realpath
)attribute
(argument_list
(identifier___file__) identifier___file__
)argument_list
)call
)argument_list
)call
(string_"config.yml") string_"config.yml"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_target_config_path) identifier_target_config_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_directory) identifier_directory
(string_'config.yml') string_'config.yml'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_default_config) identifier_default_config
(identifier_target_config_path) identifier_target_config_path
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_six) identifier_six
(identifier_print_) identifier_print_
)attribute
(argument_list
(string_"Config file has been generated in") string_"Config file has been generated in"
(identifier_target_config_path) identifier_target_config_path
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Generate default config file |
(module
(function_definition
(function_name_is_in) function_name_is_in
(parameters
(identifier_self) identifier_self
(identifier_search_list) identifier_search_list
(identifier_pair) identifier_pair
)parameters
(block
(expression_statement
(assignment
(identifier_index) identifier_index
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_nr) identifier_nr
(identifier_i) identifier_i
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_search_list) identifier_search_list
)argument_list
)call
(block
(if_statement
(parenthesized_expression
(call
(attribute
(identifier_np) identifier_np
(identifier_all) identifier_all
)attribute
(argument_list
(comparison_operator
(identifier_i) identifier_i
(identifier_pair) identifier_pair
)comparison_operator
)argument_list
)call
)parenthesized_expression
(block
(return_statement
(identifier_nr) identifier_nr
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_index) identifier_index
)return_statement
)block
)function_definition
)module | If pair is in search_list, return the index. Otherwise return -1 |
(module
(function_definition
(function_name_tabFileNameChanged) function_name_tabFileNameChanged
(parameters
(identifier_self) identifier_self
(identifier_tab) identifier_tab
)parameters
(block
(if_statement
(comparison_operator
(identifier_tab) identifier_tab
(attribute
(identifier_self) identifier_self
(identifier_currentTab) identifier_currentTab
)attribute
)comparison_operator
(block
(if_statement
(attribute
(identifier_tab) identifier_tab
(identifier_fileName) identifier_fileName
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_setWindowTitle) identifier_setWindowTitle
)attribute
(argument_list
(string_"") string_""
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_globalSettings) identifier_globalSettings
(identifier_windowTitleFullPath) identifier_windowTitleFullPath
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_setWindowTitle) identifier_setWindowTitle
)attribute
(argument_list
(binary_operator
(attribute
(identifier_tab) identifier_tab
(identifier_fileName) identifier_fileName
)attribute
(string_'[*]') string_'[*]'
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_setWindowFilePath) identifier_setWindowFilePath
)attribute
(argument_list
(attribute
(identifier_tab) identifier_tab
(identifier_fileName) identifier_fileName
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tabWidget) identifier_tabWidget
)attribute
(identifier_setTabText) identifier_setTabText
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_ind) identifier_ind
)attribute
(call
(attribute
(identifier_tab) identifier_tab
(identifier_getBaseName) identifier_getBaseName
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tabWidget) identifier_tabWidget
)attribute
(identifier_setTabToolTip) identifier_setTabToolTip
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_ind) identifier_ind
)attribute
(attribute
(identifier_tab) identifier_tab
(identifier_fileName) identifier_fileName
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_QDir) identifier_QDir
(identifier_setCurrent) identifier_setCurrent
)attribute
(argument_list
(call
(attribute
(call
(attribute
(call
(identifier_QFileInfo) identifier_QFileInfo
(argument_list
(attribute
(identifier_tab) identifier_tab
(identifier_fileName) identifier_fileName
)attribute
)argument_list
)call
(identifier_dir) identifier_dir
)attribute
(argument_list
)argument_list
)call
(identifier_path) identifier_path
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_setWindowFilePath) identifier_setWindowFilePath
)attribute
(argument_list
(string_'') string_''
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_setWindowTitle) identifier_setWindowTitle
)attribute
(argument_list
(binary_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_tr) identifier_tr
)attribute
(argument_list
(string_'New document') string_'New document'
)argument_list
)call
(string_'[*]') string_'[*]'
)binary_operator
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_canReload) identifier_canReload
(boolean_operator
(call
(identifier_bool) identifier_bool
(argument_list
(attribute
(identifier_tab) identifier_tab
(identifier_fileName) identifier_fileName
)attribute
)argument_list
)call
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_autoSaveActive) identifier_autoSaveActive
)attribute
(argument_list
(identifier_tab) identifier_tab
)argument_list
)call
)not_operator
)boolean_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_actionSetEncoding) identifier_actionSetEncoding
)attribute
(identifier_setEnabled) identifier_setEnabled
)attribute
(argument_list
(identifier_canReload) identifier_canReload
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_actionReload) identifier_actionReload
)attribute
(identifier_setEnabled) identifier_setEnabled
)attribute
(argument_list
(identifier_canReload) identifier_canReload
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Perform all UI state changes that need to be done when the
filename of the current tab has changed. |
(module
(function_definition
(function_name_get_subkey) function_name_get_subkey
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_subkey) identifier_subkey
(call
(identifier_Key) identifier_Key
(argument_list
(identifier_name) identifier_name
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_hkey) identifier_hkey
(attribute
(identifier_subkey) identifier_subkey
(identifier_hkey) identifier_hkey
)attribute
)assignment
)expression_statement
)block
(except_clause
(identifier_WindowsError) identifier_WindowsError
(block
(raise_statement
(call
(identifier_AttributeError) identifier_AttributeError
(argument_list
(binary_operator
(string_"subkey '%s' does not exist") string_"subkey '%s' does not exist"
(tuple
(identifier_name) identifier_name
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_subkey) identifier_subkey
)return_statement
)block
)function_definition
)module | Retreive the subkey with the specified name.
If the named subkey is not found, AttributeError is raised;
this is for consistency with the attribute-based access notation. |
(module
(function_definition
(function_name_setColor) function_name_setColor
(parameters
(identifier_self) identifier_self
(identifier_color) identifier_color
)parameters
(block
(if_statement
(comparison_operator
(identifier_color) identifier_color
(string_'blue') string_'blue'
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_color) identifier_color
)attribute
(string_'blue') string_'blue'
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_colorCode) identifier_colorCode
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_colors) identifier_colors
)attribute
(string_'blue') string_'blue'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_colorCodeDark) identifier_colorCodeDark
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_colors) identifier_colors
)attribute
(string_'dblue') string_'dblue'
)subscript
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_color) identifier_color
(string_'red') string_'red'
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_color) identifier_color
)attribute
(string_'red') string_'red'
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_colorCode) identifier_colorCode
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_colors) identifier_colors
)attribute
(string_'red') string_'red'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_colorCodeDark) identifier_colorCodeDark
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_colors) identifier_colors
)attribute
(string_'dred') string_'dred'
)subscript
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_color) identifier_color
(string_'yellow') string_'yellow'
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_color) identifier_color
)attribute
(string_'yellow') string_'yellow'
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_colorCode) identifier_colorCode
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_colors) identifier_colors
)attribute
(string_'yellow') string_'yellow'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_colorCodeDark) identifier_colorCodeDark
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_colors) identifier_colors
)attribute
(string_'dyellow') string_'dyellow'
)subscript
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_color) identifier_color
(string_'green') string_'green'
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_color) identifier_color
)attribute
(string_'green') string_'green'
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_colorCode) identifier_colorCode
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_colors) identifier_colors
)attribute
(string_'green') string_'green'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_colorCodeDark) identifier_colorCodeDark
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_colors) identifier_colors
)attribute
(string_'dgreen') string_'dgreen'
)subscript
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_color) identifier_color
(string_'wild') string_'wild'
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_wild) identifier_wild
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_color) identifier_color
)attribute
(string_'wild') string_'wild'
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_colorCodeDark) identifier_colorCodeDark
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_colors) identifier_colors
)attribute
(string_'dwild') string_'dwild'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_colorCode) identifier_colorCode
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_colors) identifier_colors
)attribute
(string_'wild') string_'wild'
)subscript
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Sets Card's color and escape code. |
(module
(function_definition
(function_name_flatten_spec) function_name_flatten_spec
(parameters
(identifier_spec) identifier_spec
(identifier_prefix) identifier_prefix
(default_parameter
(identifier_joiner) identifier_joiner
(string_" :: ") string_" :: "
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_any) identifier_any
(argument_list
(call
(identifier_filter) identifier_filter
(argument_list
(call
(attribute
(identifier_operator) identifier_operator
(identifier_methodcaller) identifier_methodcaller
)attribute
(argument_list
(string_"startswith") string_"startswith"
(string_"Test") string_"Test"
)argument_list
)call
(call
(attribute
(identifier_spec) identifier_spec
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_flat_spec) identifier_flat_spec
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(tuple_pattern
(identifier_k) identifier_k
(identifier_v) identifier_v
)tuple_pattern
(call
(attribute
(identifier_spec) identifier_spec
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_flat_spec) identifier_flat_spec
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_flatten_spec) identifier_flatten_spec
(argument_list
(identifier_v) identifier_v
(binary_operator
(binary_operator
(identifier_prefix) identifier_prefix
(identifier_joiner) identifier_joiner
)binary_operator
(subscript
(identifier_k) identifier_k
(slice
(integer_5) integer_5
(colon) colon
)slice
)subscript
)binary_operator
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_flat_spec) identifier_flat_spec
)return_statement
)block
(else_clause
(block
(return_statement
(dictionary
(pair
(binary_operator
(string_"Test ") string_"Test "
(identifier_prefix) identifier_prefix
)binary_operator
(identifier_spec) identifier_spec
)pair
)dictionary
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Flatten a canonical specification with nesting into one without nesting.
When building unique names, concatenate the given prefix to the local test
name without the "Test " tag. |
(module
(function_definition
(function_name_All) function_name_All
(parameters
(list_splat_pattern
(identifier_validators) identifier_validators
)list_splat_pattern
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_All) identifier_All
)argument_list
)call
)decorator
(function_definition
(function_name_built) function_name_built
(parameters
(identifier_value) identifier_value
)parameters
(block
(for_statement
(identifier_validator) identifier_validator
(identifier_validators) identifier_validators
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_validator) identifier_validator
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_built) identifier_built
)return_statement
)block
)function_definition
)module | Combines all the given validator callables into one, running all the
validators in sequence on the given value. |
(module
(function_definition
(function_name_parse_partial) function_name_parse_partial
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_text) identifier_text
(identifier_str) identifier_str
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(call
(attribute
(string_'Can only parsing string but got {!r}') string_'Can only parsing string but got {!r}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(identifier_self) identifier_self
(argument_list
(identifier_text) identifier_text
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_res) identifier_res
(identifier_status) identifier_status
)attribute
(block
(return_statement
(tuple
(attribute
(identifier_res) identifier_res
(identifier_value) identifier_value
)attribute
(subscript
(identifier_text) identifier_text
(slice
(attribute
(identifier_res) identifier_res
(identifier_index) identifier_index
)attribute
(colon) colon
)slice
)subscript
)tuple
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ParseError) identifier_ParseError
(argument_list
(attribute
(identifier_res) identifier_res
(identifier_expected) identifier_expected
)attribute
(identifier_text) identifier_text
(attribute
(identifier_res) identifier_res
(identifier_index) identifier_index
)attribute
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Parse the longest possible prefix of a given string.
Return a tuple of the result value and the rest of the string.
If failed, raise a ParseError. |
(module
(function_definition
(function_name_FundamentalType) function_name_FundamentalType
(parameters
(identifier_self) identifier_self
(identifier__type) identifier__type
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'HERE in FundamentalType for %s %s') string_'HERE in FundamentalType for %s %s'
(identifier__type) identifier__type
(attribute
(identifier__type) identifier__type
(identifier_name) identifier_name
)attribute
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier__type) identifier__type
(identifier_name) identifier_name
)attribute
(list
(string_"None") string_"None"
(string_"c_long_double_t") string_"c_long_double_t"
(string_"c_uint128") string_"c_uint128"
(string_"c_int128") string_"c_int128"
)list
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_enable_fundamental_type_wrappers) identifier_enable_fundamental_type_wrappers
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier__type) identifier__type
(identifier_name) identifier_name
)attribute
)return_statement
)block
)if_statement
(return_statement
(binary_operator
(string_"ctypes.%s") string_"ctypes.%s"
(parenthesized_expression
(attribute
(identifier__type) identifier__type
(identifier_name) identifier_name
)attribute
)parenthesized_expression
)binary_operator
)return_statement
)block
)function_definition
)module | Returns the proper ctypes class name for a fundamental type
1) activates generation of appropriate headers for
## int128_t
## c_long_double_t
2) return appropriate name for type |
(module
(function_definition
(function_name_execute_with_retries) function_name_execute_with_retries
(parameters
(identifier_retryable_function) identifier_retryable_function
(identifier_retryable_errors) identifier_retryable_errors
(identifier_logger) identifier_logger
(default_parameter
(identifier_human_readable_action_name) identifier_human_readable_action_name
(string_'Action') string_'Action'
)default_parameter
(default_parameter
(identifier_nonretryable_errors) identifier_nonretryable_errors
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_max_retries) identifier_max_retries
(integer_10) integer_10
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_attempt) identifier_attempt
(integer_0) integer_0
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_nonretryable_errors) identifier_nonretryable_errors
)not_operator
(block
(expression_statement
(assignment
(identifier_nonretryable_errors) identifier_nonretryable_errors
(tuple
)tuple
)assignment
)expression_statement
)block
)if_statement
(while_statement
(True) True
(block
(try_statement
(block
(return_statement
(call
(identifier_retryable_function) identifier_retryable_function
(argument_list
)argument_list
)call
)return_statement
)block
(except_clause
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_nonretryable_errors) identifier_nonretryable_errors
)argument_list
)call
(block
(raise_statement
)raise_statement
)block
)except_clause
(except_clause
(as_pattern
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_retryable_errors) identifier_retryable_errors
)argument_list
)call
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(augmented_assignment
(identifier_attempt) identifier_attempt
(integer_1) integer_1
)augmented_assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_attempt) identifier_attempt
(identifier_max_retries) identifier_max_retries
)comparison_operator
(block
(raise_statement
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_delay) identifier_delay
(binary_operator
(binary_operator
(integer_2) integer_2
(identifier_attempt) identifier_attempt
)binary_operator
(call
(attribute
(identifier_random) identifier_random
(identifier_random) identifier_random
)attribute
(argument_list
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(concatenated_string
(string_'"%s" failed with error "%s". ') string_'"%s" failed with error "%s". '
(string_'Retry number %s of %s in %s seconds') string_'Retry number %s of %s in %s seconds'
)concatenated_string
(tuple
(identifier_human_readable_action_name) identifier_human_readable_action_name
(call
(identifier_str) identifier_str
(argument_list
(identifier_e) identifier_e
)argument_list
)call
(identifier_attempt) identifier_attempt
(identifier_max_retries) identifier_max_retries
(identifier_delay) identifier_delay
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(identifier_delay) identifier_delay
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)while_statement
)block
)function_definition
)module | This attempts to execute "retryable_function" with exponential backoff
on delay time.
10 retries adds up to about 34 minutes total delay before the last attempt.
"human_readable_action_name" is an option input to customize retry message. |
(module
(function_definition
(function_name_getPageImageList) function_name_getPageImageList
(parameters
(identifier_self) identifier_self
(identifier_pno) identifier_pno
)parameters
(block
(if_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_isClosed) identifier_isClosed
)attribute
(attribute
(identifier_self) identifier_self
(identifier_isEncrypted) identifier_isEncrypted
)attribute
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"operation illegal for closed / encrypted doc") string_"operation illegal for closed / encrypted doc"
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_isPDF) identifier_isPDF
)attribute
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__getPageInfo) identifier__getPageInfo
)attribute
(argument_list
(identifier_pno) identifier_pno
(integer_2) integer_2
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(list
)list
)return_statement
)block
)function_definition
)module | Retrieve a list of images used on a page. |
(module
(function_definition
(function_name_chgroups) function_name_chgroups
(parameters
(identifier_name) identifier_name
(identifier_groups) identifier_groups
(default_parameter
(identifier_append) identifier_append
(False) False
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_groups) identifier_groups
(attribute
(identifier_six) identifier_six
(identifier_string_types) identifier_string_types
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_groups) identifier_groups
(call
(attribute
(identifier_groups) identifier_groups
(identifier_split) identifier_split
)attribute
(argument_list
(string_',') string_','
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ugrps) identifier_ugrps
(call
(identifier_set) identifier_set
(argument_list
(call
(identifier_list_groups) identifier_list_groups
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ugrps) identifier_ugrps
(call
(identifier_set) identifier_set
(argument_list
(identifier_groups) identifier_groups
)argument_list
)call
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(if_statement
(identifier_append) identifier_append
(block
(expression_statement
(call
(attribute
(identifier_groups) identifier_groups
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_ugrps) identifier_ugrps
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(list
(string_'usermod') string_'usermod'
(string_'-G') string_'-G'
(call
(attribute
(string_',') string_','
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_groups) identifier_groups
)argument_list
)call
(identifier_name) identifier_name
)list
)assignment
)expression_statement
(return_statement
(comparison_operator
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'cmd.retcode') string_'cmd.retcode'
)subscript
(argument_list
(identifier_cmd) identifier_cmd
(keyword_argument
(identifier_python_shell) identifier_python_shell
(False) False
)keyword_argument
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)return_statement
)block
)function_definition
)module | Change the groups to which a user belongs
name
Username to modify
groups
List of groups to set for the user. Can be passed as a comma-separated
list or a Python list.
append : False
Set to ``True`` to append these groups to the user's existing list of
groups. Otherwise, the specified groups will replace any existing
groups for the user.
CLI Example:
.. code-block:: bash
salt '*' user.chgroups foo wheel,root True |
(module
(function_definition
(function_name_get_cache_key) function_name_get_cache_key
(parameters
(identifier_content) identifier_content
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_cache_key) identifier_cache_key
(string_'') string_''
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_cache_key) identifier_cache_key
(call
(attribute
(string_'{cache_key}.{key}:{value}') string_'{cache_key}.{key}:{value}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_cache_key) identifier_cache_key
(identifier_cache_key) identifier_cache_key
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
(keyword_argument
(identifier_value) identifier_value
(subscript
(identifier_kwargs) identifier_kwargs
(identifier_key) identifier_key
)subscript
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_cache_key) identifier_cache_key
(call
(attribute
(string_'{content}{cache_key}') string_'{content}{cache_key}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_content) identifier_content
(identifier_content) identifier_content
)keyword_argument
(keyword_argument
(identifier_cache_key) identifier_cache_key
(identifier_cache_key) identifier_cache_key
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cache_key) identifier_cache_key
(call
(attribute
(identifier_cache_key) identifier_cache_key
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
(string_'ignore') string_'ignore'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cache_key) identifier_cache_key
(call
(attribute
(call
(identifier_md5) identifier_md5
(argument_list
(identifier_cache_key) identifier_cache_key
)argument_list
)call
(identifier_hexdigest) identifier_hexdigest
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cache_key) identifier_cache_key
(call
(attribute
(string_'{prefix}.{version}.{language}.{cache_key}') string_'{prefix}.{version}.{language}.{cache_key}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_prefix) identifier_prefix
(attribute
(identifier_settings) identifier_settings
(identifier_ACTIVE_URL_CACHE_PREFIX) identifier_ACTIVE_URL_CACHE_PREFIX
)attribute
)keyword_argument
(keyword_argument
(identifier_version) identifier_version
(identifier___version__) identifier___version__
)keyword_argument
(keyword_argument
(identifier_language) identifier_language
(call
(identifier_get_language) identifier_get_language
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_cache_key) identifier_cache_key
(identifier_cache_key) identifier_cache_key
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_cache_key) identifier_cache_key
)return_statement
)block
)function_definition
)module | generate cache key |
(module
(function_definition
(function_name_sync_remote_to_local) function_name_sync_remote_to_local
(parameters
(default_parameter
(identifier_force) identifier_force
(string_"no") string_"no"
)default_parameter
)parameters
(block
(assert_statement
(comparison_operator
(string_"local_wp_dir") string_"local_wp_dir"
(identifier_env) identifier_env
)comparison_operator
(string_"Missing local_wp_dir in env") string_"Missing local_wp_dir in env"
)assert_statement
(if_statement
(comparison_operator
(identifier_force) identifier_force
(string_"yes") string_"yes"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(concatenated_string
(string_"This will replace your local database with your ") string_"This will replace your local database with your "
(string_"remote, are you sure [y/n]") string_"remote, are you sure [y/n]"
)concatenated_string
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_answer) identifier_answer
(call
(identifier_prompt) identifier_prompt
(argument_list
(identifier_message) identifier_message
(string_"y") string_"y"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_answer) identifier_answer
(string_"y") string_"y"
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Sync stopped") string_"Sync stopped"
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(call
(identifier_init_tasks) identifier_init_tasks
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_remote_file) identifier_remote_file
(binary_operator
(string_"sync_%s.sql") string_"sync_%s.sql"
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
(integer_1000) integer_1000
)binary_operator
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_remote_path) identifier_remote_path
(binary_operator
(string_"/tmp/%s") string_"/tmp/%s"
(identifier_remote_file) identifier_remote_file
)binary_operator
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(identifier_env) identifier_env
(identifier_cd) identifier_cd
)attribute
(argument_list
(call
(attribute
(identifier_paths) identifier_paths
(identifier_get_current_path) identifier_get_current_path
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_env) identifier_env
(identifier_run) identifier_run
)attribute
(argument_list
(binary_operator
(string_"wp db export %s") string_"wp db export %s"
(identifier_remote_path) identifier_remote_path
)binary_operator
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_local_wp_dir) identifier_local_wp_dir
(attribute
(identifier_env) identifier_env
(identifier_local_wp_dir) identifier_local_wp_dir
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_local_path) identifier_local_path
(binary_operator
(string_"/tmp/%s") string_"/tmp/%s"
(identifier_remote_file) identifier_remote_file
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(identifier_get) identifier_get
(argument_list
(identifier_remote_path) identifier_remote_path
(identifier_local_path) identifier_local_path
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(call
(identifier_lcd) identifier_lcd
(argument_list
(identifier_local_wp_dir) identifier_local_wp_dir
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(call
(identifier_elocal) identifier_elocal
(argument_list
(binary_operator
(string_"wp db import %s") string_"wp db import %s"
(identifier_local_path) identifier_local_path
)binary_operator
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(call
(attribute
(identifier_env) identifier_env
(identifier_run) identifier_run
)attribute
(argument_list
(binary_operator
(string_"rm %s") string_"rm %s"
(identifier_remote_path) identifier_remote_path
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_elocal) identifier_elocal
(argument_list
(binary_operator
(string_"rm %s") string_"rm %s"
(identifier_local_path) identifier_local_path
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Replace your remote db with your local
Example:
sync_remote_to_local:force=yes |
(module
(function_definition
(function_name__hmm_command) function_name__hmm_command
(parameters
(identifier_self) identifier_self
(identifier_input_pipe) identifier_input_pipe
(identifier_pairs_to_run) identifier_pairs_to_run
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(expression_statement
(assignment
(identifier_element) identifier_element
(call
(attribute
(identifier_pairs_to_run) identifier_pairs_to_run
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hmmsearch_cmd) identifier_hmmsearch_cmd
(call
(attribute
(identifier_self) identifier_self
(identifier__individual_hmm_command) identifier__individual_hmm_command
)attribute
(argument_list
(subscript
(subscript
(identifier_element) identifier_element
(integer_0) integer_0
)subscript
(integer_0) integer_0
)subscript
(subscript
(subscript
(identifier_element) identifier_element
(integer_0) integer_0
)subscript
(integer_1) integer_1
)subscript
(subscript
(identifier_element) identifier_element
(integer_1) integer_1
)subscript
)argument_list
)call
)assignment
)expression_statement
(while_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_pairs_to_run) identifier_pairs_to_run
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_element) identifier_element
(call
(attribute
(identifier_pairs_to_run) identifier_pairs_to_run
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hmmsearch_cmd) identifier_hmmsearch_cmd
(binary_operator
(string_"tee >(%s) | %s") string_"tee >(%s) | %s"
(tuple
(call
(attribute
(identifier_self) identifier_self
(identifier__individual_hmm_command) identifier__individual_hmm_command
)attribute
(argument_list
(subscript
(subscript
(identifier_element) identifier_element
(integer_0) integer_0
)subscript
(integer_0) integer_0
)subscript
(subscript
(subscript
(identifier_element) identifier_element
(integer_0) integer_0
)subscript
(integer_1) integer_1
)subscript
(subscript
(identifier_element) identifier_element
(integer_1) integer_1
)subscript
)argument_list
)call
(identifier_hmmsearch_cmd) identifier_hmmsearch_cmd
)tuple
)binary_operator
)assignment
)expression_statement
)block
)while_statement
(expression_statement
(assignment
(identifier_hmmsearch_cmd) identifier_hmmsearch_cmd
(binary_operator
(string_"%s | %s") string_"%s | %s"
(tuple
(identifier_input_pipe) identifier_input_pipe
(identifier_hmmsearch_cmd) identifier_hmmsearch_cmd
)tuple
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_hmmsearch_cmd) identifier_hmmsearch_cmd
)return_statement
)block
)function_definition
)module | r"""INTERNAL method for getting cmdline for running a batch of HMMs.
Parameters
----------
input_pipe: as hmmsearch
pairs_to_run: list
list with 2 members: (1) list of hmm and output file, (2) number of
CPUs to use when searching
Returns
-------
A string command to be run with bash |
(module
(function_definition
(function_name__download_metadata_archive) function_name__download_metadata_archive
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_tempfile) identifier_tempfile
(identifier_NamedTemporaryFile) identifier_NamedTemporaryFile
)attribute
(argument_list
(keyword_argument
(identifier_delete) identifier_delete
(False) False
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_metadata_archive) identifier_metadata_archive
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_copyfileobj) identifier_copyfileobj
)attribute
(argument_list
(call
(identifier_urlopen) identifier_urlopen
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_catalog_source) identifier_catalog_source
)attribute
)argument_list
)call
(identifier_metadata_archive) identifier_metadata_archive
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(yield
(attribute
(identifier_metadata_archive) identifier_metadata_archive
(identifier_name) identifier_name
)attribute
)yield
)expression_statement
(expression_statement
(call
(identifier_remove) identifier_remove
(argument_list
(attribute
(identifier_metadata_archive) identifier_metadata_archive
(identifier_name) identifier_name
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Makes a remote call to the Project Gutenberg servers and downloads
the entire Project Gutenberg meta-data catalog. The catalog describes
the texts on Project Gutenberg in RDF. The function returns a
file-pointer to the catalog. |
(module
(function_definition
(function_name_identify_degenerate_nests) function_name_identify_degenerate_nests
(parameters
(identifier_nest_spec) identifier_nest_spec
)parameters
(block
(expression_statement
(assignment
(identifier_degenerate_positions) identifier_degenerate_positions
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_pos) identifier_pos
(identifier_key) identifier_key
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_nest_spec) identifier_nest_spec
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_nest_spec) identifier_nest_spec
(identifier_key) identifier_key
)subscript
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_degenerate_positions) identifier_degenerate_positions
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_pos) identifier_pos
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_degenerate_positions) identifier_degenerate_positions
)return_statement
)block
)function_definition
)module | Identify the nests within nest_spec that are degenerate, i.e. those nests
with only a single alternative within the nest.
Parameters
----------
nest_spec : OrderedDict.
Keys are strings that define the name of the nests. Values are lists
of alternative ids, denoting which alternatives belong to which nests.
Each alternative id must only be associated with a single nest!
Returns
-------
list.
Will contain the positions in the list of keys from `nest_spec` that
are degenerate. |
(module
(function_definition
(function_name__initialize) function_name__initialize
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__graph) identifier__graph
)attribute
(call
(attribute
(identifier_tf) identifier_tf
(identifier_Graph) identifier_Graph
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__graph) identifier__graph
)attribute
(identifier_as_default) identifier_as_default
)attribute
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__input_node) identifier__input_node
)attribute
(call
(attribute
(identifier_tf) identifier_tf
(identifier_placeholder) identifier_placeholder
)attribute
(argument_list
(attribute
(identifier_tf) identifier_tf
(identifier_float32) identifier_float32
)attribute
(tuple
(attribute
(identifier_self) identifier_self
(identifier__batch_size) identifier__batch_size
)attribute
(attribute
(identifier_self) identifier_self
(identifier__im_height) identifier__im_height
)attribute
(attribute
(identifier_self) identifier_self
(identifier__im_width) identifier__im_width
)attribute
(attribute
(identifier_self) identifier_self
(identifier__num_channels) identifier__num_channels
)attribute
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_weights) identifier_weights
(call
(attribute
(identifier_self) identifier_self
(identifier_build_alexnet_weights) identifier_build_alexnet_weights
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__output_tensor) identifier__output_tensor
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_build_alexnet) identifier_build_alexnet
)attribute
(argument_list
(identifier_weights) identifier_weights
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__feature_tensor) identifier__feature_tensor
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_build_alexnet) identifier_build_alexnet
)attribute
(argument_list
(identifier_weights) identifier_weights
(keyword_argument
(identifier_output_layer) identifier_output_layer
(attribute
(identifier_self) identifier_self
(identifier__feature_layer) identifier__feature_layer
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__initialized) identifier__initialized
)attribute
(True) True
)assignment
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Open from caffe weights |
(module
(function_definition
(function_name_bind_path_fallback) function_name_bind_path_fallback
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_folder) identifier_folder
)parameters
(block
(if_statement
(boolean_operator
(boolean_operator
(not_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)not_operator
(comparison_operator
(subscript
(identifier_name) identifier_name
(integer_0) integer_0
)subscript
(string_'/') string_'/'
)comparison_operator
)boolean_operator
(comparison_operator
(subscript
(identifier_name) identifier_name
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(string_'/') string_'/'
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"name must start and end with '/': {0}") string_"name must start and end with '/': {0}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__folder_masks) identifier__folder_masks
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_name) identifier_name
(identifier_folder) identifier_folder
)tuple
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Adds a fallback for a given folder relative to `base_path`. |
(module
(function_definition
(function_name_toggle_sequential_download) function_name_toggle_sequential_download
(parameters
(identifier_self) identifier_self
(identifier_infohash_list) identifier_infohash_list
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_self) identifier_self
(identifier__process_infohash_list) identifier__process_infohash_list
)attribute
(argument_list
(identifier_infohash_list) identifier_infohash_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__post) identifier__post
)attribute
(argument_list
(string_'command/toggleSequentialDownload') string_'command/toggleSequentialDownload'
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Toggle sequential download in supplied torrents.
:param infohash_list: Single or list() of infohashes. |
(module
(function_definition
(function_name_get_knowledge_category_id) function_name_get_knowledge_category_id
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(identifier_bool) identifier_bool
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier__my_map) identifier__my_map
)attribute
(string_'knowledgeCategoryId') string_'knowledgeCategoryId'
)subscript
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_IllegalState) identifier_IllegalState
)attribute
(argument_list
(string_'this Objective has no knowledge_category') string_'this Objective has no knowledge_category'
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_Id) identifier_Id
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier__my_map) identifier__my_map
)attribute
(string_'knowledgeCategoryId') string_'knowledgeCategoryId'
)subscript
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Gets the grade ``Id`` associated with the knowledge dimension.
return: (osid.id.Id) - the grade ``Id``
raise: IllegalState - ``has_knowledge_category()`` is ``false``
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name_cleanup) function_name_cleanup
(parameters
(identifier_self) identifier_self
(identifier_app) identifier_app
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_conn) identifier_conn
)attribute
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_pubsub_conn) identifier_pubsub_conn
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pubsub_reader) identifier_pubsub_reader
)attribute
(identifier_cancel) identifier_cancel
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pubsub_conn) identifier_pubsub_conn
)attribute
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(await
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)await
)expression_statement
)block
)function_definition
)module | Close self connections. |
(module
(function_definition
(function_name__reverse_indexer) function_name__reverse_indexer
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_categories) identifier_categories
(attribute
(identifier_self) identifier_self
(identifier_categories) identifier_categories
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_r) identifier_r
(identifier_counts) identifier_counts
)pattern_list
(call
(attribute
(identifier_libalgos) identifier_libalgos
(identifier_groupsort_indexer) identifier_groupsort_indexer
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_codes) identifier_codes
)attribute
(identifier_astype) identifier_astype
)attribute
(argument_list
(string_'int64') string_'int64'
)argument_list
)call
(attribute
(identifier_categories) identifier_categories
(identifier_size) identifier_size
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_counts) identifier_counts
(call
(attribute
(identifier_counts) identifier_counts
(identifier_cumsum) identifier_cumsum
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(generator_expression
(subscript
(identifier_r) identifier_r
(slice
(identifier_start) identifier_start
(colon) colon
(identifier_end) identifier_end
)slice
)subscript
(for_in_clause
(pattern_list
(identifier_start) identifier_start
(identifier_end) identifier_end
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_counts) identifier_counts
(subscript
(identifier_counts) identifier_counts
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)argument_list
)call
)for_in_clause
)generator_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_dict) identifier_dict
(argument_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_categories) identifier_categories
(identifier_result) identifier_result
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Compute the inverse of a categorical, returning
a dict of categories -> indexers.
*This is an internal function*
Returns
-------
dict of categories -> indexers
Example
-------
In [1]: c = pd.Categorical(list('aabca'))
In [2]: c
Out[2]:
[a, a, b, c, a]
Categories (3, object): [a, b, c]
In [3]: c.categories
Out[3]: Index(['a', 'b', 'c'], dtype='object')
In [4]: c.codes
Out[4]: array([0, 0, 1, 2, 0], dtype=int8)
In [5]: c._reverse_indexer()
Out[5]: {'a': array([0, 1, 4]), 'b': array([2]), 'c': array([3])} |
(module
(function_definition
(function_name_acquire) function_name_acquire
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_signal) identifier_signal
(True) True
)default_parameter
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_needs_lock) identifier_needs_lock
)attribute
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier_synclock) identifier_synclock
)attribute
)with_item
)with_clause
(block
(while_statement
(not_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_lock) identifier_lock
)attribute
(identifier_acquire) identifier_acquire
)attribute
(argument_list
(False) False
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_synclock) identifier_synclock
)attribute
(identifier_wait) identifier_wait
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)while_statement
(if_statement
(identifier_signal) identifier_signal
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_acquired_event) identifier_acquired_event
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_synclock) identifier_synclock
)attribute
(identifier_notify_all) identifier_notify_all
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Locks the account.
Method has no effect if the constructor argument `needs_lock`
wsa set to False.
:type signal: bool
:param signal: Whether to emit the acquired_event signal. |
(module
(function_definition
(function_name__get_split_tasks) function_name__get_split_tasks
(parameters
(identifier_args) identifier_args
(identifier_split_fn) identifier_split_fn
(identifier_file_key) identifier_file_key
(default_parameter
(identifier_outfile_i) identifier_outfile_i
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_split_args) identifier_split_args
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_combine_map) identifier_combine_map
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_finished_map) identifier_finished_map
(call
(attribute
(identifier_collections) identifier_collections
(identifier_OrderedDict) identifier_OrderedDict
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_extras) identifier_extras
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_data) identifier_data
(identifier_args) identifier_args
(block
(expression_statement
(assignment
(pattern_list
(identifier_out_final) identifier_out_final
(identifier_out_parts) identifier_out_parts
)pattern_list
(call
(identifier_split_fn) identifier_split_fn
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_parts) identifier_parts
(identifier_out_parts) identifier_out_parts
(block
(expression_statement
(call
(attribute
(identifier_split_args) identifier_split_args
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(list
(call
(attribute
(identifier_utils) identifier_utils
(identifier_deepish_copy) identifier_deepish_copy
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)list
(call
(identifier_list) identifier_list
(argument_list
(identifier_parts) identifier_parts
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
(for_statement
(identifier_part_file) identifier_part_file
(list_comprehension
(subscript
(identifier_x) identifier_x
(identifier_outfile_i) identifier_outfile_i
)subscript
(for_in_clause
(identifier_x) identifier_x
(identifier_out_parts) identifier_out_parts
)for_in_clause
)list_comprehension
(block
(expression_statement
(assignment
(subscript
(identifier_combine_map) identifier_combine_map
(identifier_part_file) identifier_part_file
)subscript
(identifier_out_final) identifier_out_final
)assignment
)expression_statement
)block
)for_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_out_parts) identifier_out_parts
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_out_final) identifier_out_final
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_out_final) identifier_out_final
(identifier_finished_map) identifier_finished_map
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(identifier_file_key) identifier_file_key
)subscript
(identifier_out_final) identifier_out_final
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_finished_map) identifier_finished_map
(identifier_out_final) identifier_out_final
)subscript
(list
(identifier_data) identifier_data
)list
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_extras) identifier_extras
(identifier_append) identifier_append
)attribute
(argument_list
(list
(identifier_data) identifier_data
)list
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_extras) identifier_extras
(identifier_append) identifier_append
)attribute
(argument_list
(list
(identifier_data) identifier_data
)list
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)for_statement
(return_statement
(expression_list
(identifier_split_args) identifier_split_args
(identifier_combine_map) identifier_combine_map
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_finished_map) identifier_finished_map
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(identifier_extras) identifier_extras
)expression_list
)return_statement
)block
)function_definition
)module | Split up input files and arguments, returning arguments for parallel processing.
outfile_i specifies the location of the output file in the arguments to
the processing function. Defaults to the last item in the list. |
(module
(function_definition
(function_name_find_inherited_key_completions) function_name_find_inherited_key_completions
(parameters
(identifier_rootpath) identifier_rootpath
(identifier_root_env) identifier_root_env
)parameters
(block
(expression_statement
(assignment
(identifier_tup) identifier_tup
(call
(identifier_inflate_context_tuple) identifier_inflate_context_tuple
(argument_list
(identifier_rootpath) identifier_rootpath
(identifier_root_env) identifier_root_env
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_tup) identifier_tup
(attribute
(identifier_runtime) identifier_runtime
(identifier_CompositeTuple) identifier_CompositeTuple
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_keys) identifier_keys
(call
(identifier_set) identifier_set
(generator_expression
(identifier_k) identifier_k
(for_in_clause
(identifier_t) identifier_t
(subscript
(attribute
(identifier_tup) identifier_tup
(identifier_tuples) identifier_tuples
)attribute
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)for_in_clause
(for_in_clause
(identifier_k) identifier_k
(call
(attribute
(identifier_t) identifier_t
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(return_statement
(dictionary_comprehension
(pair
(identifier_n) identifier_n
(call
(identifier_get_completion) identifier_get_completion
(argument_list
(identifier_tup) identifier_tup
(identifier_n) identifier_n
)argument_list
)call
)pair
(for_in_clause
(identifier_n) identifier_n
(identifier_keys) identifier_keys
)for_in_clause
)dictionary_comprehension
)return_statement
)block
)if_statement
(return_statement
(dictionary
)dictionary
)return_statement
)block
)function_definition
)module | Return completion keys from INHERITED tuples.
Easiest way to get those is to evaluate the tuple, check if it is a CompositeTuple,
then enumerate the keys that are NOT in the rightmost tuple. |
(module
(function_definition
(function_name_getitem_in) function_name_getitem_in
(parameters
(identifier_obj) identifier_obj
(identifier_name) identifier_name
)parameters
(block
(for_statement
(identifier_part) identifier_part
(call
(attribute
(identifier_name) identifier_name
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(subscript
(identifier_obj) identifier_obj
(identifier_part) identifier_part
)subscript
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_obj) identifier_obj
)return_statement
)block
)function_definition
)module | Finds a key in @obj via a period-delimited string @name.
@obj: (#dict)
@name: (#str) |.|-separated keys to search @obj in
..
obj = {'foo': {'bar': {'baz': True}}}
getitem_in(obj, 'foo.bar.baz')
..
|True| |
(module
(function_definition
(function_name_share) function_name_share
(parameters
(identifier_self) identifier_self
(identifier_auth) identifier_auth
(identifier_resource) identifier_resource
(default_parameter
(identifier_options) identifier_options
(dictionary
)dictionary
)default_parameter
(default_parameter
(identifier_defer) identifier_defer
(False) False
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__call) identifier__call
)attribute
(argument_list
(string_'share') string_'share'
(identifier_auth) identifier_auth
(list
(identifier_resource) identifier_resource
(identifier_options) identifier_options
)list
(identifier_defer) identifier_defer
)argument_list
)call
)return_statement
)block
)function_definition
)module | Generates a share code for the given resource.
Args:
auth: <cik>
resource: The identifier of the resource.
options: Dictonary of options. |
(module
(function_definition
(function_name_check_version) function_name_check_version
(parameters
(identifier_ctx) identifier_ctx
(identifier_param) identifier_param
(identifier_value) identifier_value
)parameters
(block
(if_statement
(attribute
(identifier_ctx) identifier_ctx
(identifier_resilient_parsing) identifier_resilient_parsing
)attribute
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(not_operator
(identifier_value) identifier_value
)not_operator
(comparison_operator
(attribute
(identifier_ctx) identifier_ctx
(identifier_invoked_subcommand) identifier_invoked_subcommand
)attribute
(string_'run') string_'run'
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_call_on_close) identifier_call_on_close
)attribute
(argument_list
(identifier__check_version) identifier__check_version
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Check for latest version of renku on PyPI. |
(module
(function_definition
(function_name_list_roles) function_name_list_roles
(parameters
)parameters
(block
(for_statement
(identifier_role) identifier_role
(call
(attribute
(identifier_lib) identifier_lib
(identifier_get_roles) identifier_get_roles
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_margin_left) identifier_margin_left
(call
(attribute
(identifier_lib) identifier_lib
(identifier_get_margin) identifier_get_margin
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_role) identifier_role
(string_'fullname') string_'fullname'
)subscript
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_"{0}{1}{2}") string_"{0}{1}{2}"
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(identifier_role) identifier_role
(string_'fullname') string_'fullname'
)subscript
(identifier_margin_left) identifier_margin_left
(call
(attribute
(identifier_role) identifier_role
(identifier_get) identifier_get
)attribute
(argument_list
(string_'description') string_'description'
(string_'(no description)') string_'(no description)'
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Show a list of all available roles |
(module
(function_definition
(function_name_remove) function_name_remove
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_from_statement
(dotted_name
(identifier_fs) identifier_fs
(identifier_errors) identifier_errors
)dotted_name
(dotted_name
(identifier_ResourceNotFoundError) identifier_ResourceNotFoundError
)dotted_name
)import_from_statement
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__fs) identifier__fs
)attribute
(identifier_remove) identifier_remove
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_file_name) identifier_file_name
)attribute
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_ResourceNotFoundError) identifier_ResourceNotFoundError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Removes file from filesystem. |
(module
(function_definition
(function_name_fundamental_frequency) function_name_fundamental_frequency
(parameters
(identifier_s) identifier_s
(identifier_FS) identifier_FS
)parameters
(block
(expression_statement
(assignment
(identifier_s) identifier_s
(binary_operator
(identifier_s) identifier_s
(call
(identifier_mean) identifier_mean
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_f) identifier_f
(identifier_fs) identifier_fs
)pattern_list
(call
(identifier_plotfft) identifier_plotfft
(argument_list
(identifier_s) identifier_s
(identifier_FS) identifier_FS
(keyword_argument
(identifier_doplot) identifier_doplot
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fs) identifier_fs
(subscript
(identifier_fs) identifier_fs
(slice
(integer_1) integer_1
(colon) colon
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_fs) identifier_fs
)argument_list
)call
(integer_2) integer_2
)binary_operator
)argument_list
)call
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_f) identifier_f
(subscript
(identifier_f) identifier_f
(slice
(integer_1) integer_1
(colon) colon
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_f) identifier_f
)argument_list
)call
(integer_2) integer_2
)binary_operator
)argument_list
)call
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cond) identifier_cond
(subscript
(call
(identifier_find) identifier_find
(argument_list
(comparison_operator
(identifier_f) identifier_f
(float_0.5) float_0.5
)comparison_operator
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bp) identifier_bp
(call
(identifier_bigPeaks) identifier_bigPeaks
(argument_list
(subscript
(identifier_fs) identifier_fs
(slice
(identifier_cond) identifier_cond
(colon) colon
)slice
)subscript
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_bp) identifier_bp
(list
)list
)comparison_operator
(block
(expression_statement
(assignment
(identifier_f0) identifier_f0
(integer_0) integer_0
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_bp) identifier_bp
(binary_operator
(identifier_bp) identifier_bp
(identifier_cond) identifier_cond
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_f0) identifier_f0
(subscript
(identifier_f) identifier_f
(call
(identifier_min) identifier_min
(argument_list
(identifier_bp) identifier_bp
)argument_list
)call
)subscript
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_f0) identifier_f0
)return_statement
)block
)function_definition
)module | Compute fundamental frequency along the specified axes.
Parameters
----------
s: ndarray
input from which fundamental frequency is computed.
FS: int
sampling frequency
Returns
-------
f0: int
its integer multiple best explain the content of the signal spectrum. |
(module
(function_definition
(function_name_get_ip) function_name_get_ip
(parameters
(identifier_request) identifier_request
(default_parameter
(identifier_real_ip_only) identifier_real_ip_only
(False) False
)default_parameter
(default_parameter
(identifier_right_most_proxy) identifier_right_most_proxy
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_best_matched_ip) identifier_best_matched_ip
(None) None
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(string_'get_ip is deprecated and will be removed in 3.0.') string_'get_ip is deprecated and will be removed in 3.0.'
(identifier_DeprecationWarning) identifier_DeprecationWarning
)argument_list
)call
)expression_statement
(for_statement
(identifier_key) identifier_key
(attribute
(identifier_defs) identifier_defs
(identifier_IPWARE_META_PRECEDENCE_ORDER) identifier_IPWARE_META_PRECEDENCE_ORDER
)attribute
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_META) identifier_META
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_META) identifier_META
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(call
(attribute
(identifier_key) identifier_key
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'_') string_'_'
(string_'-') string_'-'
)argument_list
)call
(string_'') string_''
)argument_list
)call
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(comparison_operator
(identifier_value) identifier_value
(string_'') string_''
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_ips) identifier_ips
(list_comprehension
(call
(attribute
(call
(attribute
(identifier_ip) identifier_ip
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_ip) identifier_ip
(call
(attribute
(identifier_value) identifier_value
(identifier_split) identifier_split
)attribute
(argument_list
(string_',') string_','
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_right_most_proxy) identifier_right_most_proxy
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_ips) identifier_ips
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_ips) identifier_ips
(call
(identifier_reversed) identifier_reversed
(argument_list
(identifier_ips) identifier_ips
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_ip_str) identifier_ip_str
(identifier_ips) identifier_ips
(block
(if_statement
(boolean_operator
(identifier_ip_str) identifier_ip_str
(call
(identifier_is_valid_ip) identifier_is_valid_ip
(argument_list
(identifier_ip_str) identifier_ip_str
)argument_list
)call
)boolean_operator
(block
(if_statement
(not_operator
(call
(attribute
(identifier_ip_str) identifier_ip_str
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_NON_PUBLIC_IP_PREFIX) identifier_NON_PUBLIC_IP_PREFIX
)argument_list
)call
)not_operator
(block
(return_statement
(identifier_ip_str) identifier_ip_str
)return_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_real_ip_only) identifier_real_ip_only
)not_operator
(block
(expression_statement
(assignment
(identifier_loopback) identifier_loopback
(attribute
(identifier_defs) identifier_defs
(identifier_IPWARE_LOOPBACK_PREFIX) identifier_IPWARE_LOOPBACK_PREFIX
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_best_matched_ip) identifier_best_matched_ip
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_best_matched_ip) identifier_best_matched_ip
(identifier_ip_str) identifier_ip_str
)assignment
)expression_statement
)block
(elif_clause
(boolean_operator
(call
(attribute
(identifier_best_matched_ip) identifier_best_matched_ip
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_loopback) identifier_loopback
)argument_list
)call
(not_operator
(call
(attribute
(identifier_ip_str) identifier_ip_str
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_loopback) identifier_loopback
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_best_matched_ip) identifier_best_matched_ip
(identifier_ip_str) identifier_ip_str
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_best_matched_ip) identifier_best_matched_ip
)return_statement
)block
)function_definition
)module | Returns client's best-matched ip-address, or None
@deprecated - Do not edit |
(module
(function_definition
(function_name_search_by_release) function_name_search_by_release
(parameters
(identifier_self) identifier_self
(identifier_release_id) identifier_release_id
(default_parameter
(identifier_limit) identifier_limit
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_order_by) identifier_order_by
(None) None
)default_parameter
(default_parameter
(identifier_sort_order) identifier_sort_order
(None) None
)default_parameter
(default_parameter
(identifier_filter) identifier_filter
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(string_"%s/release/series?release_id=%d") string_"%s/release/series?release_id=%d"
(tuple
(attribute
(identifier_self) identifier_self
(identifier_root_url) identifier_root_url
)attribute
(identifier_release_id) identifier_release_id
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_info) identifier_info
(call
(attribute
(identifier_self) identifier_self
(identifier___get_search_results) identifier___get_search_results
)attribute
(argument_list
(identifier_url) identifier_url
(identifier_limit) identifier_limit
(identifier_order_by) identifier_order_by
(identifier_sort_order) identifier_sort_order
(identifier_filter) identifier_filter
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_info) identifier_info
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'No series exists for release id: ') string_'No series exists for release id: '
(call
(identifier_str) identifier_str
(argument_list
(identifier_release_id) identifier_release_id
)argument_list
)call
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_info) identifier_info
)return_statement
)block
)function_definition
)module | Search for series that belongs to a release id. Returns information about matching series in a DataFrame.
Parameters
----------
release_id : int
release id, e.g., 151
limit : int, optional
limit the number of results to this value. If limit is 0, it means fetching all results without limit.
order_by : str, optional
order the results by a criterion. Valid options are 'search_rank', 'series_id', 'title', 'units', 'frequency',
'seasonal_adjustment', 'realtime_start', 'realtime_end', 'last_updated', 'observation_start', 'observation_end',
'popularity'
sort_order : str, optional
sort the results by ascending or descending order. Valid options are 'asc' or 'desc'
filter : tuple, optional
filters the results. Expects a tuple like (filter_variable, filter_value).
Valid filter_variable values are 'frequency', 'units', and 'seasonal_adjustment'
Returns
-------
info : DataFrame
a DataFrame containing information about the matching Fred series |
(module
(function_definition
(function_name___set_values) function_name___set_values
(parameters
(identifier_self) identifier_self
(identifier_values) identifier_values
)parameters
(block
(expression_statement
(assignment
(identifier_array) identifier_array
(call
(identifier_tuple) identifier_tuple
(generator_expression
(call
(identifier_tuple) identifier_tuple
(generator_expression
(call
(attribute
(identifier_self) identifier_self
(identifier__clean_value) identifier__clean_value
)attribute
(argument_list
(identifier_col) identifier_col
)argument_list
)call
(for_in_clause
(identifier_col) identifier_col
(identifier_row) identifier_row
)for_in_clause
)generator_expression
)call
(for_in_clause
(identifier_row) identifier_row
(identifier_values) identifier_values
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__get_target) identifier__get_target
)attribute
(argument_list
)argument_list
)call
(identifier_setDataArray) identifier_setDataArray
)attribute
(argument_list
(identifier_array) identifier_array
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Sets values in this cell range from an iterable of iterables. |
(module
(function_definition
(function_name___prepare_namespaces) function_name___prepare_namespaces
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_namespaces) identifier_namespaces
)attribute
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_text) identifier_text
(string_"urn:text") string_"urn:text"
)keyword_argument
(keyword_argument
(identifier_draw) identifier_draw
(string_"urn:draw") string_"urn:draw"
)keyword_argument
(keyword_argument
(identifier_table) identifier_table
(string_"urn:table") string_"urn:table"
)keyword_argument
(keyword_argument
(identifier_office) identifier_office
(string_"urn:office") string_"urn:office"
)keyword_argument
(keyword_argument
(identifier_xlink) identifier_xlink
(string_"urn:xlink") string_"urn:xlink"
)keyword_argument
(keyword_argument
(identifier_svg) identifier_svg
(string_"urn:svg") string_"urn:svg"
)keyword_argument
(keyword_argument
(identifier_manifest) identifier_manifest
(string_"urn:manifest") string_"urn:manifest"
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_tree_root) identifier_tree_root
(attribute
(identifier_self) identifier_self
(identifier_tree_roots) identifier_tree_roots
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_namespaces) identifier_namespaces
)attribute
(identifier_update) identifier_update
)attribute
(argument_list
(attribute
(identifier_tree_root) identifier_tree_root
(identifier_nsmap) identifier_nsmap
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_namespaces) identifier_namespaces
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(None) None
(None) None
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_namespaces) identifier_namespaces
)attribute
(string_'py') string_'py'
)subscript
(identifier_GENSHI_URI) identifier_GENSHI_URI
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_namespaces) identifier_namespaces
)attribute
(string_'py3o') string_'py3o'
)subscript
(identifier_PY3O_URI) identifier_PY3O_URI
)assignment
)expression_statement
)block
)function_definition
)module | create proper namespaces for our document |
(module
(function_definition
(function_name__write_sample_config) function_name__write_sample_config
(parameters
(identifier_run_folder) identifier_run_folder
(identifier_ldetails) identifier_ldetails
)parameters
(block
(expression_statement
(assignment
(identifier_out_file) identifier_out_file
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_run_folder) identifier_run_folder
(binary_operator
(string_"%s.yaml") string_"%s.yaml"
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_run_folder) identifier_run_folder
)argument_list
)call
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_out_file) identifier_out_file
(string_"w") string_"w"
)argument_list
)call
(as_pattern_target
(identifier_out_handle) identifier_out_handle
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(pattern_list
(identifier_fc_name) identifier_fc_name
(identifier_fc_date) identifier_fc_date
)pattern_list
(call
(attribute
(identifier_flowcell) identifier_flowcell
(identifier_parse_dirname) identifier_parse_dirname
)attribute
(argument_list
(identifier_run_folder) identifier_run_folder
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(dictionary
(pair
(string_"details") string_"details"
(call
(identifier_sorted) identifier_sorted
(argument_list
(list_comprehension
(call
(identifier__prepare_sample) identifier__prepare_sample
(argument_list
(identifier_x) identifier_x
(identifier_run_folder) identifier_run_folder
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(identifier_ldetails) identifier_ldetails
)for_in_clause
)list_comprehension
(keyword_argument
(identifier_key) identifier_key
(call
(attribute
(identifier_operator) identifier_operator
(identifier_itemgetter) identifier_itemgetter
)attribute
(argument_list
(string_"name") string_"name"
(string_"description") string_"description"
)argument_list
)call
)keyword_argument
)argument_list
)call
)pair
(pair
(string_"fc_name") string_"fc_name"
(identifier_fc_name) identifier_fc_name
)pair
(pair
(string_"fc_date") string_"fc_date"
(identifier_fc_date) identifier_fc_date
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_yaml) identifier_yaml
(identifier_safe_dump) identifier_safe_dump
)attribute
(argument_list
(identifier_out) identifier_out
(identifier_out_handle) identifier_out_handle
(keyword_argument
(identifier_default_flow_style) identifier_default_flow_style
(False) False
)keyword_argument
(keyword_argument
(identifier_allow_unicode) identifier_allow_unicode
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)with_statement
(return_statement
(identifier_out_file) identifier_out_file
)return_statement
)block
)function_definition
)module | Generate a bcbio-nextgen YAML configuration file for processing a sample. |
(module
(function_definition
(function_name_negotiate_encoding) function_name_negotiate_encoding
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_features) identifier_features
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_url_connection) identifier_url_connection
)attribute
(identifier_sendcmd) identifier_sendcmd
)attribute
(argument_list
(string_"FEAT") string_"FEAT"
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_ftplib) identifier_ftplib
(identifier_error_perm) identifier_error_perm
)attribute
(as_pattern_target
(identifier_msg) identifier_msg
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(identifier_LOG_CHECK) identifier_LOG_CHECK
(binary_operator
(string_"Ignoring error when getting FTP features: %s") string_"Ignoring error when getting FTP features: %s"
(identifier_msg) identifier_msg
)binary_operator
)argument_list
)call
)expression_statement
(pass_statement
)pass_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(identifier_LOG_CHECK) identifier_LOG_CHECK
(string_"FTP features %s") string_"FTP features %s"
(identifier_features) identifier_features
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(string_" UTF-8") string_" UTF-8"
(call
(attribute
(identifier_features) identifier_features
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_filename_encoding) identifier_filename_encoding
)attribute
(string_"utf-8") string_"utf-8"
)assignment
)expression_statement
)block
)if_statement
)block
)else_clause
)try_statement
)block
)function_definition
)module | Check if server can handle UTF-8 encoded filenames.
See also RFC 2640. |
(module
(function_definition
(function_name_open_external_file) function_name_open_external_file
(parameters
(identifier_self) identifier_self
(identifier_fname) identifier_fname
)parameters
(block
(expression_statement
(assignment
(identifier_fname) identifier_fname
(call
(attribute
(identifier_encoding) identifier_encoding
(identifier_to_unicode_from_fs) identifier_to_unicode_from_fs
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_osp) identifier_osp
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_open_file) identifier_open_file
)attribute
(argument_list
(identifier_fname) identifier_fname
(keyword_argument
(identifier_external) identifier_external
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
(elif_clause
(call
(attribute
(identifier_osp) identifier_osp
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(call
(attribute
(identifier_osp) identifier_osp
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_CWD) identifier_CWD
(identifier_fname) identifier_fname
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_open_file) identifier_open_file
)attribute
(argument_list
(call
(attribute
(identifier_osp) identifier_osp
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_CWD) identifier_CWD
(identifier_fname) identifier_fname
)argument_list
)call
(keyword_argument
(identifier_external) identifier_external
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Open external files that can be handled either by the Editor or the
variable explorer inside Spyder. |
(module
(function_definition
(function_name_clear_cycle_mrkrs) function_name_clear_cycle_mrkrs
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_test) identifier_test
(False) False
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_test) identifier_test
)not_operator
(block
(expression_statement
(assignment
(identifier_msgBox) identifier_msgBox
(call
(identifier_QMessageBox) identifier_QMessageBox
(argument_list
(attribute
(identifier_QMessageBox) identifier_QMessageBox
(identifier_Question) identifier_Question
)attribute
(string_'Clear Cycle Markers') string_'Clear Cycle Markers'
(concatenated_string
(string_'Are you sure you want to remove all cycle ') string_'Are you sure you want to remove all cycle '
(string_'markers for this rater?') string_'markers for this rater?'
)concatenated_string
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_msgBox) identifier_msgBox
(identifier_setStandardButtons) identifier_setStandardButtons
)attribute
(argument_list
(binary_operator
(attribute
(identifier_QMessageBox) identifier_QMessageBox
(identifier_Yes) identifier_Yes
)attribute
(attribute
(identifier_QMessageBox) identifier_QMessageBox
(identifier_No) identifier_No
)attribute
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_msgBox) identifier_msgBox
(identifier_setDefaultButton) identifier_setDefaultButton
)attribute
(argument_list
(attribute
(identifier_QMessageBox) identifier_QMessageBox
(identifier_Yes) identifier_Yes
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_msgBox) identifier_msgBox
(identifier_exec_) identifier_exec_
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_response) identifier_response
(attribute
(identifier_QMessageBox) identifier_QMessageBox
(identifier_No) identifier_No
)attribute
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_annot) identifier_annot
)attribute
(identifier_clear_cycles) identifier_clear_cycles
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(identifier_overview) identifier_overview
)attribute
(identifier_display) identifier_display
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
(identifier_overview) identifier_overview
)attribute
(identifier_display_annotations) identifier_display_annotations
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Remove all cycle markers. |
(module
(function_definition
(function_name_parameters_to_datetime) function_name_parameters_to_datetime
(parameters
(identifier_self) identifier_self
(identifier_p) identifier_p
)parameters
(block
(expression_statement
(assignment
(identifier_dt) identifier_dt
(subscript
(identifier_p) identifier_p
(attribute
(identifier_self) identifier_self
(identifier__param_name) identifier__param_name
)attribute
)subscript
)assignment
)expression_statement
(return_statement
(call
(identifier_datetime) identifier_datetime
(argument_list
(attribute
(identifier_dt) identifier_dt
(identifier_year) identifier_year
)attribute
(attribute
(identifier_dt) identifier_dt
(identifier_month) identifier_month
)attribute
(attribute
(identifier_dt) identifier_dt
(identifier_day) identifier_day
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Given a dictionary of parameters, will extract the ranged task parameter value |
(module
(function_definition
(function_name__cp_embeds_into) function_name__cp_embeds_into
(parameters
(identifier_cp1) identifier_cp1
(identifier_cp2) identifier_cp2
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_cp1) identifier_cp1
(None) None
)comparison_operator
(comparison_operator
(identifier_cp2) identifier_cp2
(None) None
)comparison_operator
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cp1) identifier_cp1
(call
(identifier_as_complex_pattern) identifier_as_complex_pattern
(argument_list
(identifier_cp1) identifier_cp1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cp2) identifier_cp2
(call
(identifier_as_complex_pattern) identifier_as_complex_pattern
(argument_list
(identifier_cp2) identifier_cp2
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_cp2) identifier_cp2
(identifier_monomer_patterns) identifier_monomer_patterns
)attribute
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_mp2) identifier_mp2
(subscript
(attribute
(identifier_cp2) identifier_cp2
(identifier_monomer_patterns) identifier_monomer_patterns
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(for_statement
(identifier_mp1) identifier_mp1
(attribute
(identifier_cp1) identifier_cp1
(identifier_monomer_patterns) identifier_monomer_patterns
)attribute
(block
(if_statement
(call
(identifier__mp_embeds_into) identifier__mp_embeds_into
(argument_list
(identifier_mp1) identifier_mp1
(identifier_mp2) identifier_mp2
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Check that any state in ComplexPattern2 is matched in ComplexPattern1. |
(module
(function_definition
(function_name_cleanup) function_name_cleanup
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_instance) identifier_instance
(attribute
(identifier_self) identifier_self
(identifier_context) identifier_context
)attribute
(block
(delete_statement
(parenthesized_expression
(identifier_instance) identifier_instance
)parenthesized_expression
)delete_statement
)block
)for_statement
(for_statement
(identifier_plugin) identifier_plugin
(attribute
(identifier_self) identifier_self
(identifier_plugins) identifier_plugins
)attribute
(block
(delete_statement
(parenthesized_expression
(identifier_plugin) identifier_plugin
)parenthesized_expression
)delete_statement
)block
)for_statement
)block
)function_definition
)module | Forcefully delete objects from memory
In an ideal world, this shouldn't be necessary. Garbage
collection guarantees that anything without reference
is automatically removed.
However, because this application is designed to be run
multiple times from the same interpreter process, extra
case must be taken to ensure there are no memory leaks.
Explicitly deleting objects shines a light on where objects
may still be referenced in the form of an error. No errors
means this was uneccesary, but that's ok. |
(module
(function_definition
(function_name_main) function_name_main
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_font_family) identifier_font_family
(string_'arial') string_'arial'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_font) identifier_font
(call
(identifier_Font) identifier_Font
(argument_list
(identifier_font_family) identifier_font_family
(keyword_argument
(identifier_bold) identifier_bold
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_font) identifier_font
)not_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(binary_operator
(string_'No font found for %r') string_'No font found for %r'
(identifier_font_family) identifier_font_family
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_Document) identifier_Document
(argument_list
(string_'output.pdf') string_'output.pdf'
)argument_list
)call
(as_pattern_target
(identifier_document) identifier_document
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_document) identifier_document
(identifier_Page) identifier_Page
)attribute
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_ctx) identifier_ctx
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_Image) identifier_Image
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
(as_pattern_target
(identifier_embed) identifier_embed
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(attribute
(identifier_ctx) identifier_ctx
(identifier_box) identifier_box
)attribute
(attribute
(identifier_embed) identifier_embed
(identifier_box) identifier_box
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_embed) identifier_embed
)attribute
(argument_list
(identifier_embed) identifier_embed
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(call
(attribute
(identifier_ctx) identifier_ctx
(identifier_add) identifier_add
)attribute
(argument_list
(call
(identifier_Text) identifier_Text
(argument_list
(string_'Hello World') string_'Hello World'
(identifier_font) identifier_font
(keyword_argument
(identifier_size) identifier_size
(integer_14) integer_14
)keyword_argument
(keyword_argument
(identifier_x) identifier_x
(integer_100) integer_100
)keyword_argument
(keyword_argument
(identifier_y) identifier_y
(integer_60) integer_60
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)with_statement
)block
)function_definition
)module | Creates a PDF by embedding the first page from the given image and
writes some text to it.
@param[in] filename
The source filename of the image to embed. |
(module
(function_definition
(function_name_zlines) function_name_zlines
(parameters
(default_parameter
(identifier_f) identifier_f
(None) None
)default_parameter
(default_parameter
(identifier_sep) identifier_sep
(string_"\0") string_"\0"
)default_parameter
(default_parameter
(identifier_osep) identifier_osep
(None) None
)default_parameter
(default_parameter
(identifier_size) identifier_size
(integer_8192) integer_8192
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_f) identifier_f
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(attribute
(identifier_sys) identifier_sys
(identifier_stdin) identifier_stdin
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_osep) identifier_osep
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_osep) identifier_osep
(identifier_sep) identifier_sep
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_buf) identifier_buf
(string_"") string_""
)assignment
)expression_statement
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_chars) identifier_chars
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_size) identifier_size
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_chars) identifier_chars
)not_operator
(block
(break_statement
)break_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_buf) identifier_buf
(identifier_chars) identifier_chars
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_lines) identifier_lines
(call
(attribute
(identifier_buf) identifier_buf
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_sep) identifier_sep
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_buf) identifier_buf
(call
(attribute
(identifier_lines) identifier_lines
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_line) identifier_line
(identifier_lines) identifier_lines
(block
(expression_statement
(yield
(binary_operator
(identifier_line) identifier_line
(identifier_osep) identifier_osep
)binary_operator
)yield
)expression_statement
)block
)for_statement
)block
)while_statement
(if_statement
(identifier_buf) identifier_buf
(block
(expression_statement
(yield
(identifier_buf) identifier_buf
)yield
)expression_statement
)block
)if_statement
)block
)function_definition
)module | File iterator that uses alternative line terminators. |
(module
(function_definition
(function_name_get_order) function_name_get_order
(parameters
(identifier_self) identifier_self
(identifier_order_id) identifier_order_id
)parameters
(block
(if_statement
(comparison_operator
(identifier_order_id) identifier_order_id
(attribute
(attribute
(identifier_self) identifier_self
(identifier_blotter) identifier_blotter
)attribute
(identifier_orders) identifier_orders
)attribute
)comparison_operator
(block
(return_statement
(call
(attribute
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_blotter) identifier_blotter
)attribute
(identifier_orders) identifier_orders
)attribute
(identifier_order_id) identifier_order_id
)subscript
(identifier_to_api_obj) identifier_to_api_obj
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Lookup an order based on the order id returned from one of the
order functions.
Parameters
----------
order_id : str
The unique identifier for the order.
Returns
-------
order : Order
The order object. |
(module
(function_definition
(function_name_get_primary_domain) function_name_get_primary_domain
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_domain) identifier_domain
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_domains) identifier_domains
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_is_primary) identifier_is_primary
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_domain) identifier_domain
)return_statement
)block
(except_clause
(attribute
(call
(identifier_get_tenant_domain_model) identifier_get_tenant_domain_model
(argument_list
)argument_list
)call
(identifier_DoesNotExist) identifier_DoesNotExist
)attribute
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Returns the primary domain of the tenant |
(module
(function_definition
(function_name_shift_select) function_name_shift_select
(parameters
(identifier_self) identifier_self
(identifier_first_element) identifier_first_element
(identifier_last_element) identifier_last_element
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_click) identifier_click
)attribute
(argument_list
(identifier_first_element) identifier_first_element
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_shift_click) identifier_shift_click
)attribute
(argument_list
(identifier_last_element) identifier_last_element
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Clicks a web element and shift clicks another web element.
:param first_element: WebElement instance
:param last_element: WebElement instance
:return: None |
(module
(function_definition
(function_name_get_anchor_contents) function_name_get_anchor_contents
(parameters
(identifier_markup) identifier_markup
)parameters
(block
(expression_statement
(assignment
(identifier_soup) identifier_soup
(call
(identifier_BeautifulSoup) identifier_BeautifulSoup
(argument_list
(identifier_markup) identifier_markup
(string_'lxml') string_'lxml'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list_comprehension
(binary_operator
(string_'%s') string_'%s'
(subscript
(attribute
(identifier_link) identifier_link
(identifier_contents) identifier_contents
)attribute
(integer_0) integer_0
)subscript
)binary_operator
(for_in_clause
(identifier_link) identifier_link
(call
(attribute
(identifier_soup) identifier_soup
(identifier_find_all) identifier_find_all
)attribute
(argument_list
(string_'a') string_'a'
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Given HTML markup, return a list of href inner html for each anchor tag. |
(module
(function_definition
(function_name__get_dispatches) function_name__get_dispatches
(parameters
(identifier_filter_kwargs) identifier_filter_kwargs
)parameters
(block
(expression_statement
(assignment
(identifier_dispatches) identifier_dispatches
(call
(attribute
(call
(attribute
(call
(attribute
(attribute
(identifier_Dispatch) identifier_Dispatch
(identifier_objects) identifier_objects
)attribute
(identifier_prefetch_related) identifier_prefetch_related
)attribute
(argument_list
(string_'message') string_'message'
)argument_list
)call
(identifier_filter) identifier_filter
)attribute
(argument_list
(dictionary_splat
(identifier_filter_kwargs) identifier_filter_kwargs
)dictionary_splat
)argument_list
)call
(identifier_order_by) identifier_order_by
)attribute
(argument_list
(string_'-message__time_created') string_'-message__time_created'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_list) identifier_list
(argument_list
(identifier_dispatches) identifier_dispatches
)argument_list
)call
)return_statement
)block
)function_definition
)module | Simplified version. Not distributed friendly. |
(module
(function_definition
(function_name_get_value_prob) function_name_get_value_prob
(parameters
(identifier_self) identifier_self
(identifier_attr_name) identifier_attr_name
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(identifier_attr_name) identifier_attr_name
(attribute
(identifier_self) identifier_self
(identifier__attr_value_count_totals) identifier__attr_value_count_totals
)attribute
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_n) identifier_n
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier__attr_value_counts) identifier__attr_value_counts
)attribute
(identifier_attr_name) identifier_attr_name
)subscript
(identifier_value) identifier_value
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_d) identifier_d
(subscript
(attribute
(identifier_self) identifier_self
(identifier__attr_value_count_totals) identifier__attr_value_count_totals
)attribute
(identifier_attr_name) identifier_attr_name
)subscript
)assignment
)expression_statement
(return_statement
(binary_operator
(identifier_n) identifier_n
(call
(identifier_float) identifier_float
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Returns the value probability of the given attribute at this node. |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
)parameters
(block
(expression_statement
(assignment
(identifier_basename) identifier_basename
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_match) identifier_match
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_regexp) identifier_regexp
)attribute
(identifier_search) identifier_search
)attribute
(argument_list
(identifier_basename) identifier_basename
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_match) identifier_match
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_by_episode) identifier_by_episode
)attribute
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(string_'ep') string_'ep'
)argument_list
)call
)argument_list
)call
)subscript
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Try to add a file. |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_re) identifier_re
(string_'brunel-py-ex-*.gdf') string_'brunel-py-ex-*.gdf'
)default_parameter
(default_parameter
(identifier_index) identifier_index
(True) True
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cursor) identifier_cursor
)attribute
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_'CREATE TABLE IF NOT EXISTS spikes (neuron INT UNSIGNED, time REAL)') string_'CREATE TABLE IF NOT EXISTS spikes (neuron INT UNSIGNED, time REAL)'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_tic) identifier_tic
(call
(identifier_now) identifier_now
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_f) identifier_f
(call
(attribute
(identifier_glob) identifier_glob
(identifier_glob) identifier_glob
)attribute
(argument_list
(identifier_re) identifier_re
)argument_list
)call
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)expression_statement
(while_statement
(True) True
(block
(try_statement
(block
(for_statement
(identifier_data) identifier_data
(call
(attribute
(identifier_self) identifier_self
(identifier__blockread) identifier__blockread
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cursor) identifier_cursor
)attribute
(identifier_executemany) identifier_executemany
)attribute
(argument_list
(string_'INSERT INTO spikes VALUES (?, ?)') string_'INSERT INTO spikes VALUES (?, ?)'
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_conn) identifier_conn
)attribute
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(except_clause
(block
(continue_statement
)continue_statement
)block
)except_clause
)try_statement
(break_statement
)break_statement
)block
)while_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_toc) identifier_toc
(call
(identifier_now) identifier_now
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_debug) identifier_debug
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_'Inserts took %g seconds.') string_'Inserts took %g seconds.'
(parenthesized_expression
(binary_operator
(identifier_toc) identifier_toc
(identifier_tic) identifier_tic
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_index) identifier_index
(block
(expression_statement
(assignment
(identifier_tic) identifier_tic
(call
(identifier_now) identifier_now
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cursor) identifier_cursor
)attribute
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_'CREATE INDEX neuron_index on spikes (neuron)') string_'CREATE INDEX neuron_index on spikes (neuron)'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_toc) identifier_toc
(call
(identifier_now) identifier_now
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_debug) identifier_debug
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_'Indexed db in %g seconds.') string_'Indexed db in %g seconds.'
(parenthesized_expression
(binary_operator
(identifier_toc) identifier_toc
(identifier_tic) identifier_tic
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Create db from list of gdf file glob
Parameters
----------
re : str
File glob to load.
index : bool
Create index on neurons for speed.
Returns
-------
None
See also
--------
sqlite3.connect.cursor, sqlite3.connect |
(module
(function_definition
(function_name__get_price) function_name__get_price
(parameters
(identifier_self) identifier_self
(identifier_package) identifier_package
)parameters
(block
(for_statement
(identifier_price) identifier_price
(subscript
(identifier_package) identifier_package
(string_'prices') string_'prices'
)subscript
(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
(subscript
(identifier_price) identifier_price
(string_'id') string_'id'
)subscript
)return_statement
)block
)if_statement
)block
)for_statement
(raise_statement
(call
(attribute
(identifier_SoftLayer) identifier_SoftLayer
(identifier_SoftLayerError) identifier_SoftLayerError
)attribute
(argument_list
(string_"Could not find valid price") string_"Could not find valid price"
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Returns valid price for ordering a dedicated host. |
(module
(function_definition
(function_name_get_ancestors) function_name_get_ancestors
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_node) identifier_node
(identifier_self) identifier_self
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ancestor_list) identifier_ancestor_list
(list
)list
)assignment
)expression_statement
(while_statement
(comparison_operator
(attribute
(identifier_node) identifier_node
(identifier_parent) identifier_parent
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_ancestor_list) identifier_ancestor_list
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_node) identifier_node
(identifier_parent) identifier_parent
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_node) identifier_node
(attribute
(identifier_node) identifier_node
(identifier_parent) identifier_parent
)attribute
)assignment
)expression_statement
)block
)while_statement
(return_statement
(identifier_ancestor_list) identifier_ancestor_list
)return_statement
)block
)function_definition
)module | Returns a list of ancestors of the node. Ordered from the earliest.
:return: node's ancestors, ordered from most recent
:rtype: list(FenwickNode) |
(module
(function_definition
(function_name_use_comparative_hierarchy_view) function_name_use_comparative_hierarchy_view
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__hierarchy_view) identifier__hierarchy_view
)attribute
(identifier_COMPARATIVE) identifier_COMPARATIVE
)assignment
)expression_statement
(for_statement
(identifier_session) identifier_session
(call
(attribute
(identifier_self) identifier_self
(identifier__get_provider_sessions) identifier__get_provider_sessions
)attribute
(argument_list
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_use_comparative_hierarchy_view) identifier_use_comparative_hierarchy_view
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)for_statement
)block
)function_definition
)module | Pass through to provider HierarchyLookupSession.use_comparative_hierarchy_view |
(module
(function_definition
(function_name_fill_main_goids) function_name_fill_main_goids
(parameters
(identifier_go2obj) identifier_go2obj
(identifier_goids) identifier_goids
)parameters
(block
(for_statement
(identifier_goid) identifier_goid
(identifier_goids) identifier_goids
(block
(expression_statement
(assignment
(identifier_goobj) identifier_goobj
(subscript
(identifier_go2obj) identifier_go2obj
(identifier_goid) identifier_goid
)subscript
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_goid) identifier_goid
(attribute
(identifier_goobj) identifier_goobj
(identifier_id) identifier_id
)attribute
)comparison_operator
(comparison_operator
(attribute
(identifier_goobj) identifier_goobj
(identifier_id) identifier_id
)attribute
(identifier_go2obj) identifier_go2obj
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_go2obj) identifier_go2obj
(attribute
(identifier_goobj) identifier_goobj
(identifier_id) identifier_id
)attribute
)subscript
(identifier_goobj) identifier_goobj
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Ensure main GO IDs are included in go2obj. |
(module
(function_definition
(function_name_remove_bucket) function_name_remove_bucket
(parameters
(identifier_self) identifier_self
(identifier_bucket_name) identifier_bucket_name
)parameters
(block
(expression_statement
(call
(identifier_is_valid_bucket_name) identifier_is_valid_bucket_name
(argument_list
(identifier_bucket_name) identifier_bucket_name
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__url_open) identifier__url_open
)attribute
(argument_list
(string_'DELETE') string_'DELETE'
(keyword_argument
(identifier_bucket_name) identifier_bucket_name
(identifier_bucket_name) identifier_bucket_name
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__delete_bucket_region) identifier__delete_bucket_region
)attribute
(argument_list
(identifier_bucket_name) identifier_bucket_name
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Remove a bucket.
:param bucket_name: Bucket to remove |
(module
(function_definition
(function_name_annotation_path) function_name_annotation_path
(parameters
(identifier_cls) identifier_cls
(identifier_project) identifier_project
(identifier_incident) identifier_incident
(identifier_annotation) identifier_annotation
)parameters
(block
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_google) identifier_google
(identifier_api_core) identifier_api_core
)attribute
(identifier_path_template) identifier_path_template
)attribute
(identifier_expand) identifier_expand
)attribute
(argument_list
(string_"projects/{project}/incidents/{incident}/annotations/{annotation}") string_"projects/{project}/incidents/{incident}/annotations/{annotation}"
(keyword_argument
(identifier_project) identifier_project
(identifier_project) identifier_project
)keyword_argument
(keyword_argument
(identifier_incident) identifier_incident
(identifier_incident) identifier_incident
)keyword_argument
(keyword_argument
(identifier_annotation) identifier_annotation
(identifier_annotation) identifier_annotation
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a fully-qualified annotation string. |
(module
(function_definition
(function_name_getlines) function_name_getlines
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_bufnr) identifier_bufnr
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_buf) identifier_buf
(conditional_expression
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier__vim) identifier__vim
)attribute
(identifier_buffers) identifier_buffers
)attribute
(identifier_bufnr) identifier_bufnr
)subscript
(identifier_bufnr) identifier_bufnr
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__vim) identifier__vim
)attribute
(identifier_current) identifier_current
)attribute
(identifier_buffer) identifier_buffer
)attribute
)conditional_expression
)assignment
)expression_statement
(return_statement
(subscript
(identifier_buf) identifier_buf
(slice
(colon) colon
)slice
)subscript
)return_statement
)block
)function_definition
)module | Get all lines of a buffer as a list.
Args:
bufnr (Optional[int]): A Vim buffer number, current if ``None``.
Returns:
List[str] |
(module
(function_definition
(function_name_get_time_now) function_name_get_time_now
(parameters
(identifier_self) identifier_self
)parameters
(block
(import_statement
(dotted_name
(identifier_datetime) identifier_datetime
)dotted_name
)import_statement
(import_statement
(dotted_name
(identifier_getpass) identifier_getpass
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_username) identifier_username
(call
(attribute
(identifier_getpass) identifier_getpass
(identifier_getuser) identifier_getuser
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_timenow) identifier_timenow
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
(identifier_now) identifier_now
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_timenow) identifier_timenow
(subscript
(call
(attribute
(identifier_timenow) identifier_timenow
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(binary_operator
(string_'<div class="date">Created on ') string_'<div class="date">Created on '
(identifier_timenow) identifier_timenow
)binary_operator
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_msg) identifier_msg
(binary_operator
(binary_operator
(string_" by ") string_" by "
(identifier_username) identifier_username
)binary_operator
(string_'</div>') string_'</div>'
)binary_operator
)augmented_assignment
)expression_statement
(return_statement
(identifier_msg) identifier_msg
)return_statement
)block
)function_definition
)module | Returns a time stamp |
(module
(function_definition
(function_name_update_firewall_policy) function_name_update_firewall_policy
(parameters
(identifier_self) identifier_self
(identifier_firewall_policy) identifier_firewall_policy
(default_parameter
(identifier_body) identifier_body
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_put) identifier_put
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_firewall_policy_path) identifier_firewall_policy_path
)attribute
(parenthesized_expression
(identifier_firewall_policy) identifier_firewall_policy
)parenthesized_expression
)binary_operator
(keyword_argument
(identifier_body) identifier_body
(identifier_body) identifier_body
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Updates a firewall policy. |
(module
(function_definition
(function_name_release) function_name_release
(parameters
)parameters
(block
(expression_statement
(call
(identifier_sh) identifier_sh
(argument_list
(string_"paver bdist_egg") string_"paver bdist_egg"
)argument_list
)call
)expression_statement
(expression_statement
(identifier_print) identifier_print
)expression_statement
(print_statement
(binary_operator
(string_"~") string_"~"
(integer_78) integer_78
)binary_operator
)print_statement
(print_statement
(string_"TESTING SOURCE BUILD") string_"TESTING SOURCE BUILD"
)print_statement
(expression_statement
(call
(identifier_sh) identifier_sh
(argument_list
(binary_operator
(concatenated_string
(string_"{ cd dist/ && unzip -q %s-%s.zip && cd %s-%s/") string_"{ cd dist/ && unzip -q %s-%s.zip && cd %s-%s/"
(string_" && /usr/bin/python setup.py sdist >/dev/null") string_" && /usr/bin/python setup.py sdist >/dev/null"
(string_" && if { unzip -ql ../%s-%s.zip; unzip -ql dist/%s-%s.zip; }") string_" && if { unzip -ql ../%s-%s.zip; unzip -ql dist/%s-%s.zip; }"
(string_" | cut -b26- | sort | uniq -c| egrep -v '^ +2 +' ; then") string_" | cut -b26- | sort | uniq -c| egrep -v '^ +2 +' ; then"
(string_" echo '^^^ Difference in file lists! ^^^'; false;") string_" echo '^^^ Difference in file lists! ^^^'; false;"
(string_" else true; fi; } 2>&1") string_" else true; fi; } 2>&1"
)concatenated_string
(call
(identifier_tuple) identifier_tuple
(argument_list
(binary_operator
(list
(subscript
(identifier_project) identifier_project
(string_"name") string_"name"
)subscript
(identifier_version) identifier_version
)list
(integer_4) integer_4
)binary_operator
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(identifier_path) identifier_path
(argument_list
(binary_operator
(string_"dist/%s-%s") string_"dist/%s-%s"
(tuple
(subscript
(identifier_project) identifier_project
(string_"name") string_"name"
)subscript
(identifier_version) identifier_version
)tuple
)binary_operator
)argument_list
)call
(identifier_rmtree) identifier_rmtree
)attribute
(argument_list
)argument_list
)call
)expression_statement
(print_statement
(binary_operator
(string_"~") string_"~"
(integer_78) integer_78
)binary_operator
)print_statement
(expression_statement
(identifier_print) identifier_print
)expression_statement
(print_statement
(string_"Created") string_"Created"
(call
(attribute
(string_" ") string_" "
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(identifier_str) identifier_str
(argument_list
(identifier_i) identifier_i
)argument_list
)call
(for_in_clause
(identifier_i) identifier_i
(call
(attribute
(call
(identifier_path) identifier_path
(argument_list
(string_"dist") string_"dist"
)argument_list
)call
(identifier_listdir) identifier_listdir
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)print_statement
(print_statement
(string_"Use 'paver sdist bdist_egg upload' to upload to PyPI") string_"Use 'paver sdist bdist_egg upload' to upload to PyPI"
)print_statement
(print_statement
(string_"Use 'paver dist_docs' to prepare an API documentation upload") string_"Use 'paver dist_docs' to prepare an API documentation upload"
)print_statement
)block
)function_definition
)module | Check release before upload to PyPI. |
(module
(function_definition
(function_name_get_journal_abstracts) function_name_get_journal_abstracts
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_refresh) identifier_refresh
(True) True
)default_parameter
)parameters
(block
(return_statement
(list_comprehension
(identifier_abstract) identifier_abstract
(for_in_clause
(identifier_abstract) identifier_abstract
(call
(attribute
(identifier_self) identifier_self
(identifier_get_abstracts) identifier_get_abstracts
)attribute
(argument_list
(keyword_argument
(identifier_refresh) identifier_refresh
(identifier_refresh) identifier_refresh
)keyword_argument
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(attribute
(identifier_abstract) identifier_abstract
(identifier_aggregationType) identifier_aggregationType
)attribute
(string_'Journal') string_'Journal'
)comparison_operator
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Return a list of ScopusAbstract objects using ScopusSearch,
but only if belonging to a Journal. |
(module
(function_definition
(function_name_filter_queryset) function_name_filter_queryset
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_queryset) identifier_queryset
(identifier_view) identifier_view
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_ordering_param) identifier_ordering_param
)attribute
(attribute
(identifier_view) identifier_view
(identifier_SORT) identifier_SORT
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ordering) identifier_ordering
(call
(attribute
(identifier_self) identifier_self
(identifier_get_ordering) identifier_get_ordering
)attribute
(argument_list
(identifier_request) identifier_request
(identifier_queryset) identifier_queryset
(identifier_view) identifier_view
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_ordering) identifier_ordering
(block
(return_statement
(call
(attribute
(identifier_queryset) identifier_queryset
(identifier_order_by) identifier_order_by
)attribute
(argument_list
(list_splat
(identifier_ordering) identifier_ordering
)list_splat
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(identifier_queryset) identifier_queryset
)return_statement
)block
)function_definition
)module | Filter the queryset, applying the ordering.
The `ordering_param` can be overwritten here.
In DRF, the ordering_param is 'ordering', but we support changing it
to allow the viewset to control the parameter. |
(module
(function_definition
(function_name_list) function_name_list
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
(default_parameter
(identifier_headers) identifier_headers
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(string_'/creditor_bank_accounts') string_'/creditor_bank_accounts'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier__perform_request) identifier__perform_request
)attribute
(argument_list
(string_'GET') string_'GET'
(identifier_path) identifier_path
(identifier_params) identifier_params
(identifier_headers) identifier_headers
(keyword_argument
(identifier_retry_failures) identifier_retry_failures
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__resource_for) identifier__resource_for
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)return_statement
)block
)function_definition
)module | List creditor bank accounts.
Returns a [cursor-paginated](#api-usage-cursor-pagination) list of your
creditor bank accounts.
Args:
params (dict, optional): Query string parameters.
Returns:
CreditorBankAccount |
(module
(function_definition
(function_name_generic_visit) function_name_generic_visit
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_RangeValues) identifier_RangeValues
(identifier_self) identifier_self
)argument_list
)call
(identifier_generic_visit) identifier_generic_visit
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_node) identifier_node
(identifier_UNKNOWN_RANGE) identifier_UNKNOWN_RANGE
)argument_list
)call
)return_statement
)block
)function_definition
)module | Other nodes are not known and range value neither. |
(module
(function_definition
(function_name_get_addresses_from_input_file) function_name_get_addresses_from_input_file
(parameters
(identifier_input_file_name) identifier_input_file_name
)parameters
(block
(expression_statement
(assignment
(identifier_mode) identifier_mode
(string_'r') string_'r'
)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_mode) identifier_mode
(string_'rb') string_'rb'
)assignment
)expression_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_io) identifier_io
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_input_file_name) identifier_input_file_name
(identifier_mode) identifier_mode
)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_reader) identifier_reader
(call
(attribute
(identifier_csv) identifier_csv
(identifier_reader) identifier_reader
)attribute
(argument_list
(identifier_input_file) identifier_input_file
(keyword_argument
(identifier_delimiter) identifier_delimiter
(string_',') string_','
)keyword_argument
(keyword_argument
(identifier_quotechar) identifier_quotechar
(string_'"') string_'"'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_addresses) identifier_addresses
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_map) identifier_map
(argument_list
(identifier_tuple) identifier_tuple
(identifier_reader) identifier_reader
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_addresses) identifier_addresses
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(string_'No addresses found in input file') string_'No addresses found in input file'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_header_columns) identifier_header_columns
(call
(identifier_list) identifier_list
(generator_expression
(call
(attribute
(identifier_column) identifier_column
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_column) identifier_column
(call
(attribute
(identifier_addresses) identifier_addresses
(identifier_pop) identifier_pop
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_address_index) identifier_address_index
(call
(attribute
(identifier_header_columns) identifier_header_columns
(identifier_index) identifier_index
)attribute
(argument_list
(string_'address') string_'address'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_zipcode_index) identifier_zipcode_index
(call
(attribute
(identifier_header_columns) identifier_header_columns
(identifier_index) identifier_index
)attribute
(argument_list
(string_'zipcode') string_'zipcode'
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(call
(identifier_list) identifier_list
(generator_expression
(tuple
(subscript
(identifier_row) identifier_row
(identifier_address_index) identifier_address_index
)subscript
(subscript
(identifier_row) identifier_row
(identifier_zipcode_index) identifier_zipcode_index
)subscript
)tuple
(for_in_clause
(identifier_row) identifier_row
(identifier_addresses) identifier_addresses
)for_in_clause
)generator_expression
)call
)return_statement
)block
)with_statement
)block
)function_definition
)module | Read addresses from input file into list of tuples.
This only supports address and zipcode headers |
(module
(function_definition
(function_name_get_system_properties) function_name_get_system_properties
(parameters
(default_parameter
(identifier_server) identifier_server
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_properties) identifier_properties
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(identifier__api_get) identifier__api_get
(argument_list
(string_'system-properties') string_'system-properties'
(identifier_server) identifier_server
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_any) identifier_any
(argument_list
(subscript
(subscript
(identifier_data) identifier_data
(string_'extraProperties') string_'extraProperties'
)subscript
(string_'systemProperties') string_'systemProperties'
)subscript
)argument_list
)call
(block
(for_statement
(identifier_element) identifier_element
(subscript
(subscript
(identifier_data) identifier_data
(string_'extraProperties') string_'extraProperties'
)subscript
(string_'systemProperties') string_'systemProperties'
)subscript
(block
(expression_statement
(assignment
(subscript
(identifier_properties) identifier_properties
(subscript
(identifier_element) identifier_element
(string_'name') string_'name'
)subscript
)subscript
(subscript
(identifier_element) identifier_element
(string_'value') string_'value'
)subscript
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_properties) identifier_properties
)return_statement
)block
)if_statement
(return_statement
(dictionary
)dictionary
)return_statement
)block
)function_definition
)module | Get system properties |
(module
(function_definition
(function_name_multiget) function_name_multiget
(parameters
(identifier_self) identifier_self
(identifier_pairs) identifier_pairs
(dictionary_splat_pattern
(identifier_params) identifier_params
)dictionary_splat_pattern
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__multiget_pool) identifier__multiget_pool
)attribute
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'pool') string_'pool'
)subscript
(attribute
(identifier_self) identifier_self
(identifier__multiget_pool) identifier__multiget_pool
)attribute
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_riak) identifier_riak
(identifier_client) identifier_client
)attribute
(identifier_multi) identifier_multi
)attribute
(identifier_multiget) identifier_multiget
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_pairs) identifier_pairs
(dictionary_splat
(identifier_params) identifier_params
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Fetches many keys in parallel via threads.
:param pairs: list of bucket_type/bucket/key tuple triples
:type pairs: list
:param params: additional request flags, e.g. r, pr
:type params: dict
:rtype: list of :class:`RiakObjects <riak.riak_object.RiakObject>`,
:class:`Datatypes <riak.datatypes.Datatype>`, or tuples of
bucket_type, bucket, key, and the exception raised on fetch |
(module
(function_definition
(function_name_bundle) function_name_bundle
(parameters
(identifier_self) identifier_self
(identifier_ref) identifier_ref
(default_parameter
(identifier_capture_exceptions) identifier_capture_exceptions
(False) False
)default_parameter
)parameters
(block
(import_from_statement
(relative_import
(import_prefix
)import_prefix
(dotted_name
(identifier_orm) identifier_orm
(identifier_exc) identifier_exc
)dotted_name
)relative_import
(dotted_name
(identifier_NotFoundError) identifier_NotFoundError
)dotted_name
)import_from_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_ref) identifier_ref
(identifier_Dataset) identifier_Dataset
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_ds) identifier_ds
(identifier_ref) identifier_ref
)assignment
)expression_statement
)block
(else_clause
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_ds) identifier_ds
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__db) identifier__db
)attribute
(identifier_dataset) identifier_dataset
)attribute
(argument_list
(identifier_ref) identifier_ref
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_NotFoundError) identifier_NotFoundError
(block
(expression_statement
(assignment
(identifier_ds) identifier_ds
(None) None
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)else_clause
)if_statement
(if_statement
(not_operator
(identifier_ds) identifier_ds
)not_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(attribute
(identifier_self) identifier_self
(identifier_partition) identifier_partition
)attribute
(argument_list
(identifier_ref) identifier_ref
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ds) identifier_ds
(attribute
(attribute
(identifier_p) identifier_p
(identifier__bundle) identifier__bundle
)attribute
(identifier_dataset) identifier_dataset
)attribute
)assignment
)expression_statement
)block
(except_clause
(identifier_NotFoundError) identifier_NotFoundError
(block
(expression_statement
(assignment
(identifier_ds) identifier_ds
(None) None
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_ds) identifier_ds
)not_operator
(block
(raise_statement
(call
(identifier_NotFoundError) identifier_NotFoundError
(argument_list
(call
(attribute
(string_'Failed to find dataset for ref: {}') string_'Failed to find dataset for ref: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_ref) identifier_ref
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_b) identifier_b
(call
(identifier_Bundle) identifier_Bundle
(argument_list
(identifier_ds) identifier_ds
(identifier_self) identifier_self
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_b) identifier_b
(identifier_capture_exceptions) identifier_capture_exceptions
)attribute
(identifier_capture_exceptions) identifier_capture_exceptions
)assignment
)expression_statement
(return_statement
(identifier_b) identifier_b
)return_statement
)block
)function_definition
)module | Return a bundle build on a dataset, with the given vid or id reference |
(module
(function_definition
(function_name_get_wallets) function_name_get_wallets
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"\n [+] -- Get wallets debugging.") string_"\n [+] -- Get wallets debugging."
)argument_list
)call
)expression_statement
(if_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_"message") string_"message"
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_"message") string_"message"
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_uid) identifier_uid
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_"uid") string_"uid"
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_address) identifier_address
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_"address") string_"address"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_coinid) identifier_coinid
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_"coinid") string_"coinid"
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_coinid) identifier_coinid
(call
(attribute
(identifier_coinid) identifier_coinid
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"TEST") string_"TEST"
(string_"") string_""
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_uid) identifier_uid
(call
(identifier_int) identifier_int
(argument_list
(identifier_uid) identifier_uid
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(block
(return_statement
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_error_400) identifier_error_400
)attribute
(argument_list
(string_"User id must be integer. ") string_"User id must be integer. "
)argument_list
)call
)await
)return_statement
)block
)except_clause
)try_statement
(if_statement
(boolean_operator
(not_operator
(identifier_uid) identifier_uid
)not_operator
(identifier_address) identifier_address
)boolean_operator
(block
(expression_statement
(assignment
(identifier_uid) identifier_uid
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_get_uid_by_address) identifier_get_uid_by_address
)attribute
(argument_list
(keyword_argument
(identifier_address) identifier_address
(identifier_address) identifier_address
)keyword_argument
(keyword_argument
(identifier_coinid) identifier_coinid
(identifier_coinid) identifier_coinid
)keyword_argument
)argument_list
)call
)await
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_uid) identifier_uid
(identifier_dict) identifier_dict
)argument_list
)call
(block
(return_statement
(identifier_uid) identifier_uid
)return_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_wallets) identifier_wallets
(list_comprehension
(identifier_i) identifier_i
(for_in_clause
(identifier_i) identifier_i
(call
(attribute
(identifier_self) identifier_self
(identifier_collect_wallets) identifier_collect_wallets
)attribute
(argument_list
(identifier_uid) identifier_uid
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(dictionary
(pair
(string_"wallets") string_"wallets"
(identifier_wallets) identifier_wallets
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Get users wallets by uid
Accepts:
- uid [integer] (users id)
Returns a list:
- [
{
"address": [string],
"uid": [integer],
"amount_active": [integer],
"amount_frozen": [integer]
},
] |
(module
(function_definition
(function_name_get_extra_kwargs) function_name_get_extra_kwargs
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_extra_kwargs) identifier_extra_kwargs
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_Meta) identifier_Meta
)attribute
(string_'extra_kwargs') string_'extra_kwargs'
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_read_only_fields) identifier_read_only_fields
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_Meta) identifier_Meta
)attribute
(string_'read_only_fields') string_'read_only_fields'
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_read_only_fields) identifier_read_only_fields
(None) None
)comparison_operator
(block
(for_statement
(identifier_field_name) identifier_field_name
(identifier_read_only_fields) identifier_read_only_fields
(block
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(call
(attribute
(identifier_extra_kwargs) identifier_extra_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_field_name) identifier_field_name
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'read_only') string_'read_only'
)subscript
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_extra_kwargs) identifier_extra_kwargs
(identifier_field_name) identifier_field_name
)subscript
(identifier_kwargs) identifier_kwargs
)assignment
)expression_statement
)block
)for_statement
)block
)if_statement
(return_statement
(identifier_extra_kwargs) identifier_extra_kwargs
)return_statement
)block
)function_definition
)module | Return a dictionary mapping field names to a dictionary of
additional keyword arguments. |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_scopes) identifier_scopes
(list
)list
)default_parameter
(default_parameter
(identifier_add_scopes) identifier_add_scopes
(list
)list
)default_parameter
(default_parameter
(identifier_rm_scopes) identifier_rm_scopes
(list
)list
)default_parameter
(default_parameter
(identifier_note) identifier_note
(string_'') string_''
)default_parameter
(default_parameter
(identifier_note_url) identifier_note_url
(string_'') string_''
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_success) identifier_success
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_json) identifier_json
(None) None
)assignment
)expression_statement
(if_statement
(identifier_scopes) identifier_scopes
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(dictionary
(pair
(string_'scopes') string_'scopes'
(identifier_scopes) identifier_scopes
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_json) identifier_json
(call
(attribute
(identifier_self) identifier_self
(identifier__json) identifier__json
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__post) identifier__post
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__api) identifier__api
)attribute
(keyword_argument
(identifier_data) identifier_data
(identifier_d) identifier_d
)keyword_argument
)argument_list
)call
(integer_200) integer_200
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_add_scopes) identifier_add_scopes
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(dictionary
(pair
(string_'add_scopes') string_'add_scopes'
(identifier_add_scopes) identifier_add_scopes
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_json) identifier_json
(call
(attribute
(identifier_self) identifier_self
(identifier__json) identifier__json
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__post) identifier__post
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__api) identifier__api
)attribute
(keyword_argument
(identifier_data) identifier_data
(identifier_d) identifier_d
)keyword_argument
)argument_list
)call
(integer_200) integer_200
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_rm_scopes) identifier_rm_scopes
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(dictionary
(pair
(string_'remove_scopes') string_'remove_scopes'
(identifier_rm_scopes) identifier_rm_scopes
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_json) identifier_json
(call
(attribute
(identifier_self) identifier_self
(identifier__json) identifier__json
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__post) identifier__post
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__api) identifier__api
)attribute
(keyword_argument
(identifier_data) identifier_data
(identifier_d) identifier_d
)keyword_argument
)argument_list
)call
(integer_200) integer_200
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_note) identifier_note
(identifier_note_url) identifier_note_url
)boolean_operator
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(dictionary
(pair
(string_'note') string_'note'
(identifier_note) identifier_note
)pair
(pair
(string_'note_url') string_'note_url'
(identifier_note_url) identifier_note_url
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_json) identifier_json
(call
(attribute
(identifier_self) identifier_self
(identifier__json) identifier__json
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__post) identifier__post
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__api) identifier__api
)attribute
(keyword_argument
(identifier_data) identifier_data
(identifier_d) identifier_d
)keyword_argument
)argument_list
)call
(integer_200) integer_200
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_json) identifier_json
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__update_) identifier__update_
)attribute
(argument_list
(identifier_json) identifier_json
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_success) identifier_success
(True) True
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_success) identifier_success
)return_statement
)block
)function_definition
)module | Update this authorization.
:param list scopes: (optional), replaces the authorization scopes with
these
:param list add_scopes: (optional), scopes to be added
:param list rm_scopes: (optional), scopes to be removed
:param str note: (optional), new note about authorization
:param str note_url: (optional), new note URL about this authorization
:returns: bool |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.