sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_set_grade_system) function_name_set_grade_system
(parameters
(identifier_self) identifier_self
(identifier_grade_system_id) identifier_grade_system_id
)parameters
(block
(if_statement
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_grade_system_metadata) identifier_get_grade_system_metadata
)attribute
(argument_list
)argument_list
)call
(identifier_is_read_only) identifier_is_read_only
)attribute
(argument_list
)argument_list
)call
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_NoAccess) identifier_NoAccess
)attribute
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier__is_valid_id) identifier__is_valid_id
)attribute
(argument_list
(identifier_grade_system_id) identifier_grade_system_id
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_InvalidArgument) identifier_InvalidArgument
)attribute
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__my_map) identifier__my_map
)attribute
(string_'gradeSystemId') string_'gradeSystemId'
)subscript
(call
(identifier_str) identifier_str
(argument_list
(identifier_grade_system_id) identifier_grade_system_id
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Sets the grading system.
arg: grade_system_id (osid.id.Id): the grade system
raise: InvalidArgument - ``grade_system_id`` is invalid
raise: NoAccess - ``Metadata.isReadOnly()`` is ``true``
*compliance: mandatory -- This method must be implemented.* |
(module
(function_definition
(function_name__get_columns) function_name__get_columns
(parameters
(identifier_self) identifier_self
(identifier_blueprint) identifier_blueprint
)parameters
(block
(expression_statement
(assignment
(identifier_columns) identifier_columns
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_column) identifier_column
(call
(attribute
(identifier_blueprint) identifier_blueprint
(identifier_get_added_columns) identifier_get_added_columns
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_sql) identifier_sql
(binary_operator
(binary_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_wrap) identifier_wrap
)attribute
(argument_list
(identifier_column) identifier_column
)argument_list
)call
(string_' ') string_' '
)binary_operator
(call
(attribute
(identifier_self) identifier_self
(identifier__get_type) identifier__get_type
)attribute
(argument_list
(identifier_column) identifier_column
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_columns) identifier_columns
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__add_modifiers) identifier__add_modifiers
)attribute
(argument_list
(identifier_sql) identifier_sql
(identifier_blueprint) identifier_blueprint
(identifier_column) identifier_column
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_columns) identifier_columns
)return_statement
)block
)function_definition
)module | Get the blueprint's columns definitions.
:param blueprint: The blueprint
:type blueprint: Blueprint
:rtype: list |
(module
(function_definition
(function_name_on_delivery) function_name_on_delivery
(parameters
(identifier_self) identifier_self
(identifier_channel) identifier_channel
(identifier_method) identifier_method
(identifier_properties) identifier_properties
(identifier_body) identifier_body
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_callbacks) identifier_callbacks
)attribute
(identifier_on_delivery) identifier_on_delivery
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_channel) identifier_channel
(identifier_method) identifier_method
(identifier_properties) identifier_properties
(identifier_body) identifier_body
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Invoked by pika when RabbitMQ delivers a message from a queue.
:param channel: The channel the message was delivered on
:type channel: pika.channel.Channel
:param method: The AMQP method frame
:type method: pika.frame.Frame
:param properties: The AMQP message properties
:type properties: pika.spec.Basic.Properties
:param bytes body: The message body |
(module
(function_definition
(function_name_remove) function_name_remove
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_zone) identifier_zone
)attribute
(identifier_alarmClock) identifier_alarmClock
)attribute
(identifier_DestroyAlarm) identifier_DestroyAlarm
)attribute
(argument_list
(list
(tuple
(string_'ID') string_'ID'
(attribute
(identifier_self) identifier_self
(identifier__alarm_id) identifier__alarm_id
)attribute
)tuple
)list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_alarm_id) identifier_alarm_id
(attribute
(identifier_self) identifier_self
(identifier__alarm_id) identifier__alarm_id
)attribute
)assignment
)expression_statement
(try_statement
(block
(delete_statement
(subscript
(attribute
(identifier_Alarm) identifier_Alarm
(identifier__all_alarms) identifier__all_alarms
)attribute
(identifier_alarm_id) identifier_alarm_id
)subscript
)delete_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__alarm_id) identifier__alarm_id
)attribute
(None) None
)assignment
)expression_statement
)block
)function_definition
)module | Remove the alarm from the Sonos system.
There is no need to call `save`. The Python instance is not deleted,
and can be saved back to Sonos again if desired. |
(module
(function_definition
(function_name_user_can_edit_newsitem) function_name_user_can_edit_newsitem
(parameters
(identifier_user) identifier_user
(identifier_NewsItem) identifier_NewsItem
)parameters
(block
(for_statement
(identifier_perm) identifier_perm
(call
(identifier_format_perms) identifier_format_perms
(argument_list
(identifier_NewsItem) identifier_NewsItem
(list
(string_'add') string_'add'
(string_'change') string_'change'
(string_'delete') string_'delete'
)list
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_user) identifier_user
(identifier_has_perm) identifier_has_perm
)attribute
(argument_list
(identifier_perm) identifier_perm
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Check if the user has permission to edit a particular NewsItem type. |
(module
(function_definition
(function_name_clean) function_name_clean
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_metrics) identifier_metrics
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_metrics) identifier_metrics
)attribute
(call
(identifier_dict) identifier_dict
(generator_expression
(tuple
(identifier_name) identifier_name
(attribute
(identifier_spec) identifier_spec
(identifier_default) identifier_default
)attribute
)tuple
(for_in_clause
(pattern_list
(identifier_name) identifier_name
(identifier_spec) identifier_spec
)pattern_list
(parenthesized_expression
(call
(attribute
(call
(attribute
(identifier_metric_catalog) identifier_metric_catalog
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(dictionary
)dictionary
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)parenthesized_expression
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_WithMetrics) identifier_WithMetrics
(identifier_self) identifier_self
)argument_list
)call
(identifier_clean) identifier_clean
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Fill metrics with defaults on create |
(module
(function_definition
(function_name_readQuotes) function_name_readQuotes
(parameters
(identifier_self) identifier_self
(identifier_start) identifier_start
(identifier_end) identifier_end
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_symbol) identifier_symbol
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Symbol is None') string_'Symbol is None'
)argument_list
)call
)expression_statement
(return_statement
(list
)list
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___yf) identifier___yf
)attribute
(identifier_getQuotes) identifier_getQuotes
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_symbol) identifier_symbol
)attribute
(identifier_start) identifier_start
(identifier_end) identifier_end
)argument_list
)call
)return_statement
)block
)function_definition
)module | read quotes from Yahoo Financial |
(module
(function_definition
(function_name_entails) function_name_entails
(parameters
(identifier_self) identifier_self
(identifier_entailed_independencies) identifier_entailed_independencies
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_entailed_independencies) identifier_entailed_independencies
(identifier_Independencies) identifier_Independencies
)argument_list
)call
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_implications) identifier_implications
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_closure) identifier_closure
)attribute
(argument_list
)argument_list
)call
(identifier_get_assertions) identifier_get_assertions
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_all) identifier_all
(generator_expression
(comparison_operator
(identifier_ind) identifier_ind
(identifier_implications) identifier_implications
)comparison_operator
(for_in_clause
(identifier_ind) identifier_ind
(call
(attribute
(identifier_entailed_independencies) identifier_entailed_independencies
(identifier_get_assertions) identifier_get_assertions
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Returns `True` if the `entailed_independencies` are implied by this `Independencies`-object, otherwise `False`.
Entailment is checked using the semi-graphoid axioms.
Might be very slow if more than six variables are involved.
Parameters
----------
entailed_independencies: Independencies()-object
Examples
--------
>>> from pgmpy.independencies import Independencies
>>> ind1 = Independencies([['A', 'B'], ['C', 'D'], 'E'])
>>> ind2 = Independencies(['A', 'C', 'E'])
>>> ind1.entails(ind2)
True
>>> ind2.entails(ind1)
False |
(module
(function_definition
(function_name_add_nexusnve_binding) function_name_add_nexusnve_binding
(parameters
(identifier_vni) identifier_vni
(identifier_switch_ip) identifier_switch_ip
(identifier_device_id) identifier_device_id
(identifier_mcast_group) identifier_mcast_group
)parameters
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"add_nexusnve_binding() called") string_"add_nexusnve_binding() called"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_session) identifier_session
(call
(attribute
(identifier_bc) identifier_bc
(identifier_get_writer_session) identifier_get_writer_session
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_binding) identifier_binding
(call
(attribute
(identifier_nexus_models_v2) identifier_nexus_models_v2
(identifier_NexusNVEBinding) identifier_NexusNVEBinding
)attribute
(argument_list
(keyword_argument
(identifier_vni) identifier_vni
(identifier_vni) identifier_vni
)keyword_argument
(keyword_argument
(identifier_switch_ip) identifier_switch_ip
(identifier_switch_ip) identifier_switch_ip
)keyword_argument
(keyword_argument
(identifier_device_id) identifier_device_id
(identifier_device_id) identifier_device_id
)keyword_argument
(keyword_argument
(identifier_mcast_group) identifier_mcast_group
(identifier_mcast_group) identifier_mcast_group
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_binding) identifier_binding
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_binding) identifier_binding
)return_statement
)block
)function_definition
)module | Adds a nexus nve binding. |
(module
(function_definition
(function_name_put) function_name_put
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_items) identifier_items
)list_splat_pattern
)parameters
(type
(string_"AttrIndexedDict") string_"AttrIndexedDict"
)type
(block
(expression_statement
(string_"Add items to the dict that will be indexed by self.attr.") string_"Add items to the dict that will be indexed by self.attr."
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_items) identifier_items
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_item) identifier_item
(attribute
(identifier_self) identifier_self
(identifier_attr) identifier_attr
)attribute
)argument_list
)call
)subscript
(identifier_item) identifier_item
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Add items to the dict that will be indexed by self.attr. |
(module
(function_definition
(function_name_send) function_name_send
(parameters
(identifier_self) identifier_self
(identifier_sender) identifier_sender
(identifier_recipients) identifier_recipients
(default_parameter
(identifier_cc) identifier_cc
(None) None
)default_parameter
(default_parameter
(identifier_bcc) identifier_bcc
(None) None
)default_parameter
(default_parameter
(identifier_subject) identifier_subject
(string_'') string_''
)default_parameter
(default_parameter
(identifier_body) identifier_body
(string_'') string_''
)default_parameter
(default_parameter
(identifier_attachments) identifier_attachments
(None) None
)default_parameter
(default_parameter
(identifier_content) identifier_content
(string_'text') string_'text'
)default_parameter
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_connected) identifier_connected
)attribute
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_error) identifier_error
)attribute
(argument_list
(parenthesized_expression
(concatenated_string
(string_'Server not connected, cannot send message, ') string_'Server not connected, cannot send message, '
(string_'please connect() first and disconnect() when ') string_'please connect() first and disconnect() when '
(string_'the connection is not needed any more') string_'the connection is not needed any more'
)concatenated_string
)parenthesized_expression
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(call
(identifier_Message) identifier_Message
(argument_list
(identifier_sender) identifier_sender
(identifier_recipients) identifier_recipients
(identifier_cc) identifier_cc
(identifier_bcc) identifier_bcc
(identifier_subject) identifier_subject
(identifier_body) identifier_body
(identifier_attachments) identifier_attachments
(identifier_content) identifier_content
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__smtp) identifier__smtp
)attribute
(identifier_sendmail) identifier_sendmail
)attribute
(argument_list
(attribute
(identifier_message) identifier_message
(identifier_sender) identifier_sender
)attribute
(attribute
(identifier_message) identifier_message
(identifier_recipients) identifier_recipients
)attribute
(attribute
(identifier_message) identifier_message
(identifier_as_string) identifier_as_string
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__connected) identifier__connected
)attribute
(False) False
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Done') string_'Done'
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_exception) identifier_exception
)attribute
(argument_list
(string_'Something went wrong!') string_'Something went wrong!'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(False) False
)assignment
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Sends the email
:param sender: The server of the message
:param recipients: The recipients (To:) of the message
:param cc: The CC recipients of the message
:param bcc: The BCC recipients of the message
:param subject: The subject of the message
:param body: The body of the message
:param attachments: The attachments of the message
:param content: The type of content the message [text/html]
:return: True on success, False otherwise |
(module
(function_definition
(function_name_hazard_at_times) function_name_hazard_at_times
(parameters
(identifier_self) identifier_self
(identifier_times) identifier_times
(default_parameter
(identifier_label) identifier_label
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_label) identifier_label
(call
(identifier_coalesce) identifier_coalesce
(argument_list
(identifier_label) identifier_label
(attribute
(identifier_self) identifier_self
(identifier__label) identifier__label
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_pd) identifier_pd
(identifier_Series) identifier_Series
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__hazard) identifier__hazard
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__fitted_parameters_) identifier__fitted_parameters_
)attribute
(identifier_times) identifier_times
)argument_list
)call
(keyword_argument
(identifier_index) identifier_index
(call
(identifier__to_array) identifier__to_array
(argument_list
(identifier_times) identifier_times
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(identifier_label) identifier_label
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a Pandas series of the predicted hazard at specific times.
Parameters
-----------
times: iterable or float
values to return the hazard at.
label: string, optional
Rename the series returned. Useful for plotting.
Returns
--------
pd.Series |
(module
(function_definition
(function_name_rate_overall) function_name_rate_overall
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_elapsed) identifier_elapsed
(attribute
(identifier_self) identifier_self
(identifier_elapsed) identifier_elapsed
)attribute
)assignment
)expression_statement
(return_statement
(conditional_expression
(attribute
(identifier_self) identifier_self
(identifier_rate) identifier_rate
)attribute
(not_operator
(identifier_elapsed) identifier_elapsed
)not_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_numerator) identifier_numerator
)attribute
(attribute
(identifier_self) identifier_self
(identifier_elapsed) identifier_elapsed
)attribute
)binary_operator
)conditional_expression
)return_statement
)block
)function_definition
)module | Returns the overall average rate based on the start time. |
(module
(function_definition
(function_name_start_numbered_list) function_name_start_numbered_list
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__ordered) identifier__ordered
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_start_container) identifier_start_container
)attribute
(argument_list
(identifier_List) identifier_List
(keyword_argument
(identifier_stylename) identifier_stylename
(string_'_numbered_list') string_'_numbered_list'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_next_paragraph_style) identifier_set_next_paragraph_style
)attribute
(argument_list
(conditional_expression
(string_'numbered-list-paragraph') string_'numbered-list-paragraph'
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__item_level) identifier__item_level
)attribute
(integer_0) integer_0
)comparison_operator
(string_'sublist-paragraph') string_'sublist-paragraph'
)conditional_expression
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Start a numbered list. |
(module
(function_definition
(function_name_new_instance) function_name_new_instance
(parameters
(identifier_settings) identifier_settings
)parameters
(block
(expression_statement
(assignment
(identifier_settings) identifier_settings
(call
(identifier_set_default) identifier_set_default
(argument_list
(dictionary
)dictionary
(identifier_settings) identifier_settings
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(subscript
(identifier_settings) identifier_settings
(string_"class") string_"class"
)subscript
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_Log) identifier_Log
(identifier_error) identifier_error
)attribute
(argument_list
(string_"Expecting 'class' attribute with fully qualified class name") string_"Expecting 'class' attribute with fully qualified class name"
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(subscript
(identifier_settings) identifier_settings
(string_"class") string_"class"
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
(string_".") string_"."
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_class_name) identifier_class_name
(subscript
(identifier_path) identifier_path
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(string_".") string_"."
(identifier_join) identifier_join
)attribute
(argument_list
(subscript
(identifier_path) identifier_path
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_constructor) identifier_constructor
(None) None
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_temp) identifier_temp
(call
(identifier___import__) identifier___import__
(argument_list
(identifier_path) identifier_path
(call
(identifier_globals) identifier_globals
(argument_list
)argument_list
)call
(call
(identifier_locals) identifier_locals
(argument_list
)argument_list
)call
(list
(identifier_class_name) identifier_class_name
)list
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_constructor) identifier_constructor
(call
(attribute
(identifier_object) identifier_object
(identifier___getattribute__) identifier___getattribute__
)attribute
(argument_list
(identifier_temp) identifier_temp
(identifier_class_name) identifier_class_name
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_Log) identifier_Log
(identifier_error) identifier_error
)attribute
(argument_list
(string_"Can not find class {{class}}") string_"Can not find class {{class}}"
(dictionary
(pair
(string_"class") string_"class"
(identifier_path) identifier_path
)pair
)dictionary
(keyword_argument
(identifier_cause) identifier_cause
(identifier_e) identifier_e
)keyword_argument
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(subscript
(identifier_settings) identifier_settings
(string_'class') string_'class'
)subscript
(None) None
)assignment
)expression_statement
(try_statement
(block
(return_statement
(call
(identifier_constructor) identifier_constructor
(argument_list
(keyword_argument
(identifier_kwargs) identifier_kwargs
(identifier_settings) identifier_settings
)keyword_argument
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(try_statement
(block
(return_statement
(call
(identifier_constructor) identifier_constructor
(argument_list
(dictionary_splat
(identifier_settings) identifier_settings
)dictionary_splat
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_Log) identifier_Log
(identifier_error) identifier_error
)attribute
(argument_list
(string_"Can not create instance of {{name}}") string_"Can not create instance of {{name}}"
(keyword_argument
(identifier_name) identifier_name
(call
(attribute
(string_".") string_"."
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_cause) identifier_cause
(identifier_e) identifier_e
)keyword_argument
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | MAKE A PYTHON INSTANCE
`settings` HAS ALL THE `kwargs`, PLUS `class` ATTRIBUTE TO INDICATE THE CLASS TO CREATE |
(module
(function_definition
(function_name_plot_eigh2) function_name_plot_eigh2
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_colorbar) identifier_colorbar
(True) True
)default_parameter
(default_parameter
(identifier_cb_orientation) identifier_cb_orientation
(string_'vertical') string_'vertical'
)default_parameter
(default_parameter
(identifier_cb_label) identifier_cb_label
(None) None
)default_parameter
(default_parameter
(identifier_ax) identifier_ax
(None) None
)default_parameter
(default_parameter
(identifier_show) identifier_show
(True) True
)default_parameter
(default_parameter
(identifier_fname) identifier_fname
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(identifier_cb_label) identifier_cb_label
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_cb_label) identifier_cb_label
(attribute
(identifier_self) identifier_self
(identifier__eigh2_label) identifier__eigh2_label
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_eigh2) identifier_eigh2
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_compute_eigh) identifier_compute_eigh
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_ax) identifier_ax
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_fig) identifier_fig
(identifier_axes) identifier_axes
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_eigh2) identifier_eigh2
)attribute
(identifier_plot) identifier_plot
)attribute
(argument_list
(keyword_argument
(identifier_colorbar) identifier_colorbar
(identifier_colorbar) identifier_colorbar
)keyword_argument
(keyword_argument
(identifier_cb_orientation) identifier_cb_orientation
(identifier_cb_orientation) identifier_cb_orientation
)keyword_argument
(keyword_argument
(identifier_cb_label) identifier_cb_label
(identifier_cb_label) identifier_cb_label
)keyword_argument
(keyword_argument
(identifier_show) identifier_show
(False) False
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_show) identifier_show
(block
(expression_statement
(call
(attribute
(identifier_fig) identifier_fig
(identifier_show) identifier_show
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_fname) identifier_fname
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_fig) identifier_fig
(identifier_savefig) identifier_savefig
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_fig) identifier_fig
(identifier_axes) identifier_axes
)expression_list
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_eigh2) identifier_eigh2
)attribute
(identifier_plot) identifier_plot
)attribute
(argument_list
(keyword_argument
(identifier_colorbar) identifier_colorbar
(identifier_colorbar) identifier_colorbar
)keyword_argument
(keyword_argument
(identifier_cb_orientation) identifier_cb_orientation
(identifier_cb_orientation) identifier_cb_orientation
)keyword_argument
(keyword_argument
(identifier_cb_label) identifier_cb_label
(identifier_cb_label) identifier_cb_label
)keyword_argument
(keyword_argument
(identifier_ax) identifier_ax
(identifier_ax) identifier_ax
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Plot the second eigenvalue of the horizontal tensor.
Usage
-----
x.plot_eigh2([tick_interval, xlabel, ylabel, ax, colorbar,
cb_orientation, cb_label, show, fname])
Parameters
----------
tick_interval : list or tuple, optional, default = [30, 30]
Intervals to use when plotting the x and y ticks. If set to None,
ticks will not be plotted.
xlabel : str, optional, default = 'longitude'
Label for the longitude axis.
ylabel : str, optional, default = 'latitude'
Label for the latitude axis.
ax : matplotlib axes object, optional, default = None
A single matplotlib axes object where the plot will appear.
colorbar : bool, optional, default = True
If True, plot a colorbar.
cb_orientation : str, optional, default = 'vertical'
Orientation of the colorbar: either 'vertical' or 'horizontal'.
cb_label : str, optional, default = '$\lambda_{h2}$, Eotvos$^{-1}$'
Text label for the colorbar.
show : bool, optional, default = True
If True, plot the image to the screen.
fname : str, optional, default = None
If present, and if axes is not specified, save the image to the
specified file.
kwargs : optional
Keyword arguements that will be sent to the SHGrid.plot()
and plt.imshow() methods. |
(module
(function_definition
(function_name_add_new_host) function_name_add_new_host
(parameters
(identifier_self) identifier_self
(identifier_hostname) identifier_hostname
(identifier_ipv4addr) identifier_ipv4addr
(default_parameter
(identifier_comment) identifier_comment
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_host) identifier_host
(call
(identifier_Host) identifier_Host
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(keyword_argument
(identifier_name) identifier_name
(identifier_hostname) identifier_hostname
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_host) identifier_host
(identifier_ipv4addrs) identifier_ipv4addrs
)attribute
(block
(expression_statement
(assignment
(attribute
(identifier_host) identifier_host
(identifier_ipv4addrs) identifier_ipv4addrs
)attribute
(list
)list
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_host) identifier_host
(identifier_add_ipv4addr) identifier_add_ipv4addr
)attribute
(argument_list
(identifier_ipv4addr) identifier_ipv4addr
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_host) identifier_host
(identifier_comment) identifier_comment
)attribute
(identifier_comment) identifier_comment
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_host) identifier_host
(identifier_save) identifier_save
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Add or update a host in the infoblox, overwriting any IP address
entries.
:param str hostname: Hostname to add/set
:param str ipv4addr: IP Address to add/set
:param str comment: The comment for the record |
(module
(function_definition
(function_name_find_classes) function_name_find_classes
(parameters
(typed_parameter
(identifier_folder) identifier_folder
(type
(identifier_Path) identifier_Path
)type
)typed_parameter
)parameters
(type
(identifier_FilePathList) identifier_FilePathList
)type
(block
(expression_statement
(string_"List of label subdirectories in imagenet-style `folder`.") string_"List of label subdirectories in imagenet-style `folder`."
)expression_statement
(expression_statement
(assignment
(identifier_classes) identifier_classes
(list_comprehension
(identifier_d) identifier_d
(for_in_clause
(identifier_d) identifier_d
(call
(attribute
(identifier_folder) identifier_folder
(identifier_iterdir) identifier_iterdir
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(boolean_operator
(call
(attribute
(identifier_d) identifier_d
(identifier_is_dir) identifier_is_dir
)attribute
(argument_list
)argument_list
)call
(not_operator
(call
(attribute
(attribute
(identifier_d) identifier_d
(identifier_name) identifier_name
)attribute
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
)not_operator
)boolean_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(assert_statement
(parenthesized_expression
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_classes) identifier_classes
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)parenthesized_expression
)assert_statement
(return_statement
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_classes) identifier_classes
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_d) identifier_d
)lambda_parameters
(attribute
(identifier_d) identifier_d
(identifier_name) identifier_name
)attribute
)lambda
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | List of label subdirectories in imagenet-style `folder`. |
(module
(function_definition
(function_name_parse_compound) function_name_parse_compound
(parameters
(identifier_s) identifier_s
(default_parameter
(identifier_global_compartment) identifier_global_compartment
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_m) identifier_m
(call
(attribute
(identifier_re) identifier_re
(identifier_match) identifier_match
)attribute
(argument_list
(string_r'^\|(.*)\|$') string_r'^\|(.*)\|$'
(identifier_s) identifier_s
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_m) identifier_m
(block
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(identifier_m) identifier_m
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_m) identifier_m
(call
(attribute
(identifier_re) identifier_re
(identifier_match) identifier_match
)attribute
(argument_list
(string_r'^(.+)\[(\S+)\]$') string_r'^(.+)\[(\S+)\]$'
(identifier_s) identifier_s
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_m) identifier_m
(block
(expression_statement
(assignment
(identifier_compound_id) identifier_compound_id
(call
(attribute
(identifier_m) identifier_m
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_compartment) identifier_compartment
(call
(attribute
(identifier_m) identifier_m
(identifier_group) identifier_group
)attribute
(argument_list
(integer_2) integer_2
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_compound_id) identifier_compound_id
(identifier_s) identifier_s
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_compartment) identifier_compartment
(identifier_global_compartment) identifier_global_compartment
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_Compound) identifier_Compound
(argument_list
(identifier_compound_id) identifier_compound_id
(keyword_argument
(identifier_compartment) identifier_compartment
(identifier_compartment) identifier_compartment
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Parse a compound specification.
If no compartment is specified in the string, the global compartment
will be used. |
(module
(function_definition
(function_name__init_topics) function_name__init_topics
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier__LOGGER) identifier__LOGGER
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Setting up initial MQTT topic subscription') string_'Setting up initial MQTT topic subscription'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_init_topics) identifier_init_topics
(list
(call
(attribute
(string_'{}/+/+/0/+/+') string_'{}/+/+/0/+/+'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__in_prefix) identifier__in_prefix
)attribute
)argument_list
)call
(call
(attribute
(string_'{}/+/+/3/+/+') string_'{}/+/+/3/+/+'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__in_prefix) identifier__in_prefix
)attribute
)argument_list
)call
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__handle_subscription) identifier__handle_subscription
)attribute
(argument_list
(identifier_init_topics) identifier_init_topics
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_persistence) identifier_persistence
)attribute
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_topics) identifier_topics
(list_comprehension
(call
(attribute
(string_'{}/{}/{}/{}/+/+') string_'{}/{}/{}/{}/+/+'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__in_prefix) identifier__in_prefix
)attribute
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_sensor) identifier_sensor
(identifier_sensor_id) identifier_sensor_id
)attribute
)argument_list
)call
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_child) identifier_child
(identifier_id) identifier_id
)attribute
)argument_list
)call
(identifier_msg_type) identifier_msg_type
)argument_list
)call
(for_in_clause
(identifier_sensor) identifier_sensor
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_sensors) identifier_sensors
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(for_in_clause
(identifier_child) identifier_child
(call
(attribute
(attribute
(identifier_sensor) identifier_sensor
(identifier_children) identifier_children
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(for_in_clause
(identifier_msg_type) identifier_msg_type
(tuple
(call
(identifier_int) identifier_int
(argument_list
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_const) identifier_const
)attribute
(identifier_MessageType) identifier_MessageType
)attribute
(identifier_set) identifier_set
)attribute
)argument_list
)call
(call
(identifier_int) identifier_int
(argument_list
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_const) identifier_const
)attribute
(identifier_MessageType) identifier_MessageType
)attribute
(identifier_req) identifier_req
)attribute
)argument_list
)call
)tuple
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_topics) identifier_topics
(identifier_extend) identifier_extend
)attribute
(argument_list
(list_comprehension
(call
(attribute
(string_'{}/{}/+/{}/+/+') string_'{}/{}/+/{}/+/+'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__in_prefix) identifier__in_prefix
)attribute
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_sensor) identifier_sensor
(identifier_sensor_id) identifier_sensor_id
)attribute
)argument_list
)call
(call
(identifier_int) identifier_int
(argument_list
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_const) identifier_const
)attribute
(identifier_MessageType) identifier_MessageType
)attribute
(identifier_stream) identifier_stream
)attribute
)argument_list
)call
)argument_list
)call
(for_in_clause
(identifier_sensor) identifier_sensor
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_sensors) identifier_sensors
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__handle_subscription) identifier__handle_subscription
)attribute
(argument_list
(identifier_topics) identifier_topics
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set up initial subscription of mysensors topics. |
(module
(function_definition
(function_name__stop_lock_renewer) function_name__stop_lock_renewer
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__lock_renewal_thread) identifier__lock_renewal_thread
)attribute
(None) None
)comparison_operator
(not_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__lock_renewal_thread) identifier__lock_renewal_thread
)attribute
(identifier_is_alive) identifier_is_alive
)attribute
(argument_list
)argument_list
)call
)not_operator
)boolean_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Signalling the lock refresher to stop") string_"Signalling the lock refresher to stop"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__lock_renewal_stop) identifier__lock_renewal_stop
)attribute
(identifier_set) identifier_set
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__lock_renewal_thread) identifier__lock_renewal_thread
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__lock_renewal_thread) identifier__lock_renewal_thread
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Lock refresher has stopped") string_"Lock refresher has stopped"
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Stop the lock renewer.
This signals the renewal thread and waits for its exit. |
(module
(function_definition
(function_name_accept_dict) function_name_accept_dict
(parameters
(identifier_match) identifier_match
(default_parameter
(identifier_include_rejected) identifier_include_rejected
(False) False
)default_parameter
(default_parameter
(identifier_include_denied) identifier_include_denied
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_skey) identifier_skey
(call
(identifier_get_key) identifier_get_key
(argument_list
(identifier___opts__) identifier___opts__
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_skey) identifier_skey
(identifier_accept) identifier_accept
)attribute
(argument_list
(keyword_argument
(identifier_match_dict) identifier_match_dict
(identifier_match) identifier_match
)keyword_argument
(keyword_argument
(identifier_include_rejected) identifier_include_rejected
(identifier_include_rejected) identifier_include_rejected
)keyword_argument
(keyword_argument
(identifier_include_denied) identifier_include_denied
(identifier_include_denied) identifier_include_denied
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Accept keys based on a dict of keys. Returns a dictionary.
match
The dictionary of keys to accept.
include_rejected
To include rejected keys in the match along with pending keys, set this
to ``True``. Defaults to ``False``.
.. versionadded:: 2016.3.4
include_denied
To include denied keys in the match along with pending keys, set this
to ``True``. Defaults to ``False``.
.. versionadded:: 2016.3.4
Example to move a list of keys from the ``minions_pre`` (pending) directory
to the ``minions`` (accepted) directory:
.. code-block:: python
>>> wheel.cmd('key.accept_dict',
{
'minions_pre': [
'jerry',
'stuart',
'bob',
],
})
{'minions': ['jerry', 'stuart', 'bob']} |
(module
(function_definition
(function_name_get_single_stack) function_name_get_single_stack
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_single) identifier_single
(None) None
)assignment
)expression_statement
(while_statement
(attribute
(identifier_self) identifier_self
(identifier_single_stack) identifier_single_stack
)attribute
(block
(expression_statement
(assignment
(identifier_single) identifier_single
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_single_stack) identifier_single_stack
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)while_statement
(return_statement
(identifier_single) identifier_single
)return_statement
)block
)function_definition
)module | Get the correct single stack item to use. |
(module
(function_definition
(function_name_get_model_by_name) function_name_get_model_by_name
(parameters
(identifier_model_name) identifier_model_name
)parameters
(block
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_model_name) identifier_model_name
(attribute
(identifier_six) identifier_six
(identifier_string_types) identifier_string_types
)attribute
)argument_list
)call
(line_continuation_\) line_continuation_\
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(call
(attribute
(identifier_model_name) identifier_model_name
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
)argument_list
)call
(integer_2) integer_2
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_app_name) identifier_app_name
(identifier_model_name) identifier_model_name
)pattern_list
(call
(attribute
(identifier_model_name) identifier_model_name
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_django) identifier_django
(identifier_VERSION) identifier_VERSION
)attribute
(slice
(colon) colon
(integer_2) integer_2
)slice
)subscript
(tuple
(integer_1) integer_1
(integer_8) integer_8
)tuple
)comparison_operator
(block
(expression_statement
(assignment
(identifier_model) identifier_model
(call
(attribute
(identifier_models) identifier_models
(identifier_get_model) identifier_get_model
)attribute
(argument_list
(identifier_app_name) identifier_app_name
(identifier_model_name) identifier_model_name
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(import_from_statement
(dotted_name
(identifier_django) identifier_django
(identifier_apps) identifier_apps
)dotted_name
(dotted_name
(identifier_apps) identifier_apps
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_model) identifier_model
(call
(attribute
(identifier_apps) identifier_apps
(identifier_get_model) identifier_get_model
)attribute
(argument_list
(identifier_app_name) identifier_app_name
(identifier_model_name) identifier_model_name
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"{0} is not a Django model") string_"{0} is not a Django model"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_model_name) identifier_model_name
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_model) identifier_model
)return_statement
)block
)function_definition
)module | Get model by its name.
:param str model_name: name of model.
:return django.db.models.Model:
Example:
get_concrete_model_by_name('auth.User')
django.contrib.auth.models.User |
(module
(function_definition
(function_name_send_message) function_name_send_message
(parameters
(identifier_self) identifier_self
(identifier_chat_id) identifier_chat_id
(identifier_text) identifier_text
(dictionary_splat_pattern
(identifier_options) identifier_options
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_api_call) identifier_api_call
)attribute
(argument_list
(string_"sendMessage") string_"sendMessage"
(keyword_argument
(identifier_chat_id) identifier_chat_id
(identifier_chat_id) identifier_chat_id
)keyword_argument
(keyword_argument
(identifier_text) identifier_text
(identifier_text) identifier_text
)keyword_argument
(dictionary_splat
(identifier_options) identifier_options
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Send a text message to chat
:param int chat_id: ID of the chat to send the message to
:param str text: Text to send
:param options: Additional sendMessage options
(see https://core.telegram.org/bots/api#sendmessage) |
(module
(function_definition
(function_name_during) function_name_during
(parameters
(identifier_rrule) identifier_rrule
(default_parameter
(identifier_duration) identifier_duration
(None) None
)default_parameter
(default_parameter
(identifier_timestamp) identifier_timestamp
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(False) False
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_rrule) identifier_rrule
(identifier_string_types) identifier_string_types
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_rrule_object) identifier_rrule_object
(call
(attribute
(identifier_rrule_class) identifier_rrule_class
(identifier_rrulestr) identifier_rrulestr
)attribute
(argument_list
(identifier_rrule) identifier_rrule
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_rrule_object) identifier_rrule_object
(call
(identifier_rrule_class) identifier_rrule_class
(argument_list
(dictionary_splat
(identifier_rrule) identifier_rrule
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(identifier_timestamp) identifier_timestamp
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_timestamp) identifier_timestamp
(call
(identifier_time) identifier_time
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_now) identifier_now
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_fromtimestamp) identifier_fromtimestamp
)attribute
(argument_list
(identifier_timestamp) identifier_timestamp
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_duration_delta) identifier_duration_delta
(conditional_expression
(identifier_now) identifier_now
(comparison_operator
(identifier_duration) identifier_duration
(None) None
)comparison_operator
(call
(identifier_relativedelta) identifier_relativedelta
(argument_list
(dictionary_splat
(identifier_duration) identifier_duration
)dictionary_splat
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_last_date) identifier_last_date
(call
(attribute
(identifier_rrule_object) identifier_rrule_object
(identifier_before) identifier_before
)attribute
(argument_list
(identifier_now) identifier_now
(keyword_argument
(identifier_inc) identifier_inc
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_last_date) identifier_last_date
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_next_date) identifier_next_date
(binary_operator
(identifier_last_date) identifier_last_date
(identifier_duration_delta) identifier_duration_delta
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(comparison_operator
(identifier_last_date) identifier_last_date
(identifier_now) identifier_now
(identifier_next_date) identifier_next_date
)comparison_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Check if input timestamp is in rrule+duration period
:param rrule: rrule to check
:type rrule: str or dict
(freq, dtstart, interval, count, wkst, until, bymonth, byminute, etc.)
:param dict duration: time duration from rrule step. Ex:{'minutes': 60}
:param float timestamp: timestamp to check between rrule+duration. If None,
use now |
(module
(function_definition
(function_name__validate_charset) function_name__validate_charset
(parameters
(identifier_data) identifier_data
(identifier_charset) identifier_charset
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_charset) identifier_charset
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_charset_data_length) identifier_charset_data_length
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_symbol_charset) identifier_symbol_charset
(identifier_charset) identifier_charset
(block
(if_statement
(comparison_operator
(identifier_symbol_charset) identifier_symbol_charset
(tuple
(string_'A') string_'A'
(string_'B') string_'B'
(string_'C') string_'C'
)tuple
)comparison_operator
(block
(raise_statement
(attribute
(identifier_Code128) identifier_Code128
(identifier_CharsetError) identifier_CharsetError
)attribute
)raise_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(identifier_charset_data_length) identifier_charset_data_length
(conditional_expression
(integer_2) integer_2
(comparison_operator
(identifier_symbol_charset) identifier_symbol_charset
(string_'C') string_'C'
)comparison_operator
(integer_1) integer_1
)conditional_expression
)augmented_assignment
)expression_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_charset_data_length) identifier_charset_data_length
(call
(identifier_len) identifier_len
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)comparison_operator
(block
(raise_statement
(attribute
(identifier_Code128) identifier_Code128
(identifier_CharsetLengthError) identifier_CharsetLengthError
)attribute
)raise_statement
)block
)if_statement
)block
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_charset) identifier_charset
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_charset) identifier_charset
(tuple
(string_'A') string_'A'
(string_'B') string_'B'
(string_'C') string_'C'
)tuple
)comparison_operator
(block
(raise_statement
(attribute
(identifier_Code128) identifier_Code128
(identifier_CharsetError) identifier_CharsetError
)attribute
)raise_statement
)block
)if_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_charset) identifier_charset
(None) None
)comparison_operator
(block
(raise_statement
(attribute
(identifier_Code128) identifier_Code128
(identifier_CharsetError) identifier_CharsetError
)attribute
)raise_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Validate that the charset is correct and throw an error if it isn't. |
(module
(function_definition
(function_name_description) function_name_description
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_lines) identifier_lines
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_line) identifier_line
(subscript
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier___doc__) identifier___doc__
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
(slice
(integer_2) integer_2
(colon) colon
)slice
)subscript
(block
(expression_statement
(assignment
(identifier_line) identifier_line
(call
(attribute
(identifier_line) identifier_line
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_line) identifier_line
(block
(expression_statement
(call
(attribute
(identifier_lines) identifier_lines
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(call
(attribute
(string_' ') string_' '
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_lines) identifier_lines
)argument_list
)call
)return_statement
)block
)function_definition
)module | Attribute that returns the plugin description from its docstring. |
(module
(function_definition
(function_name_generate_pattern_list) function_name_generate_pattern_list
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_patterns) identifier_patterns
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_items) identifier_items
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_frequent) identifier_frequent
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_root) identifier_root
)attribute
(identifier_value) identifier_value
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_suffix_value) identifier_suffix_value
(list
)list
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_suffix_value) identifier_suffix_value
(list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_root) identifier_root
)attribute
(identifier_value) identifier_value
)attribute
)list
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_patterns) identifier_patterns
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_suffix_value) identifier_suffix_value
)argument_list
)call
)subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_root) identifier_root
)attribute
(identifier_count) identifier_count
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_1) integer_1
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_items) identifier_items
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
(block
(for_statement
(identifier_subset) identifier_subset
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_combinations) identifier_combinations
)attribute
(argument_list
(identifier_items) identifier_items
(identifier_i) identifier_i
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_pattern) identifier_pattern
(call
(identifier_tuple) identifier_tuple
(argument_list
(call
(identifier_sorted) identifier_sorted
(argument_list
(binary_operator
(call
(identifier_list) identifier_list
(argument_list
(identifier_subset) identifier_subset
)argument_list
)call
(identifier_suffix_value) identifier_suffix_value
)binary_operator
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_patterns) identifier_patterns
(identifier_pattern) identifier_pattern
)subscript
(line_continuation_\) line_continuation_\
(call
(identifier_min) identifier_min
(argument_list
(list_comprehension
(subscript
(attribute
(identifier_self) identifier_self
(identifier_frequent) identifier_frequent
)attribute
(identifier_x) identifier_x
)subscript
(for_in_clause
(identifier_x) identifier_x
(identifier_subset) identifier_subset
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_patterns) identifier_patterns
)return_statement
)block
)function_definition
)module | Generate a list of patterns with support counts. |
(module
(function_definition
(function_name_get_point_model) function_name_get_point_model
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(if_statement
(call
(identifier_is_plugin_point) identifier_is_plugin_point
(argument_list
(identifier_cls) identifier_cls
)argument_list
)call
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(call
(identifier__) identifier__
(argument_list
(concatenated_string
(string_'This method is only available to plugin ') string_'This method is only available to plugin '
(string_'classes.') string_'classes.'
)concatenated_string
)argument_list
)call
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(attribute
(identifier_PluginPointModel) identifier_PluginPointModel
(identifier_objects) identifier_objects
)attribute
(line_continuation_\) line_continuation_\
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_plugin__pythonpath) identifier_plugin__pythonpath
(call
(attribute
(identifier_cls) identifier_cls
(identifier_get_pythonpath) identifier_get_pythonpath
)attribute
(argument_list
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns plugin point model instance. Only used from plugin classes. |
(module
(function_definition
(function_name__expand_independent_outputs) function_name__expand_independent_outputs
(parameters
(identifier_fvar) identifier_fvar
(identifier_full_cov) identifier_full_cov
(identifier_full_output_cov) identifier_full_output_cov
)parameters
(block
(if_statement
(boolean_operator
(identifier_full_cov) identifier_full_cov
(identifier_full_output_cov) identifier_full_output_cov
)boolean_operator
(block
(expression_statement
(assignment
(identifier_fvar) identifier_fvar
(call
(attribute
(identifier_tf) identifier_tf
(identifier_matrix_diag) identifier_matrix_diag
)attribute
(argument_list
(call
(attribute
(identifier_tf) identifier_tf
(identifier_transpose) identifier_transpose
)attribute
(argument_list
(identifier_fvar) identifier_fvar
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fvar) identifier_fvar
(call
(attribute
(identifier_tf) identifier_tf
(identifier_transpose) identifier_transpose
)attribute
(argument_list
(identifier_fvar) identifier_fvar
(list
(integer_0) integer_0
(integer_2) integer_2
(integer_1) integer_1
(integer_3) integer_3
)list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(not_operator
(identifier_full_cov) identifier_full_cov
)not_operator
(identifier_full_output_cov) identifier_full_output_cov
)boolean_operator
(block
(expression_statement
(assignment
(identifier_fvar) identifier_fvar
(call
(attribute
(identifier_tf) identifier_tf
(identifier_matrix_diag) identifier_matrix_diag
)attribute
(argument_list
(identifier_fvar) identifier_fvar
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_full_cov) identifier_full_cov
(not_operator
(identifier_full_output_cov) identifier_full_output_cov
)not_operator
)boolean_operator
(block
(pass_statement
)pass_statement
)block
)if_statement
(if_statement
(boolean_operator
(not_operator
(identifier_full_cov) identifier_full_cov
)not_operator
(not_operator
(identifier_full_output_cov) identifier_full_output_cov
)not_operator
)boolean_operator
(block
(pass_statement
)pass_statement
)block
)if_statement
(return_statement
(identifier_fvar) identifier_fvar
)return_statement
)block
)function_definition
)module | Reshapes fvar to the correct shape, specified by `full_cov` and `full_output_cov`.
:param fvar: has shape N x P (full_cov = False) or P x N x N (full_cov = True).
:return:
1. full_cov: True and full_output_cov: True
fvar N x P x N x P
2. full_cov: True and full_output_cov: False
fvar P x N x N
3. full_cov: False and full_output_cov: True
fvar N x P x P
4. full_cov: False and full_output_cov: False
fvar N x P |
(module
(function_definition
(function_name_dallinger) function_name_dallinger
(parameters
)parameters
(block
(import_from_statement
(dotted_name
(identifier_logging) identifier_logging
(identifier_config) identifier_config
)dotted_name
(dotted_name
(identifier_fileConfig) identifier_fileConfig
)dotted_name
)import_from_statement
(expression_statement
(call
(identifier_fileConfig) identifier_fileConfig
(argument_list
(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
(identifier___file__) identifier___file__
)argument_list
)call
(string_"logging.ini") string_"logging.ini"
)argument_list
)call
(keyword_argument
(identifier_disable_existing_loggers) identifier_disable_existing_loggers
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Dallinger command-line utility. |
(module
(function_definition
(function_name_user_agent) function_name_user_agent
(parameters
(default_parameter
(identifier_style) identifier_style
(None) None
)default_parameter
)parameters
(type
(identifier__UserAgent) identifier__UserAgent
)type
(block
(global_statement
(identifier_useragent) identifier_useragent
)global_statement
(if_statement
(boolean_operator
(parenthesized_expression
(not_operator
(identifier_useragent) identifier_useragent
)not_operator
)parenthesized_expression
(identifier_style) identifier_style
)boolean_operator
(block
(expression_statement
(assignment
(identifier_useragent) identifier_useragent
(call
(identifier_UserAgent) identifier_UserAgent
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(conditional_expression
(subscript
(identifier_useragent) identifier_useragent
(identifier_style) identifier_style
)subscript
(identifier_style) identifier_style
(identifier_DEFAULT_USER_AGENT) identifier_DEFAULT_USER_AGENT
)conditional_expression
)return_statement
)block
)function_definition
)module | Returns an apparently legit user-agent, if not requested one of a specific
style. Defaults to a Chrome-style User-Agent. |
(module
(function_definition
(function_name_merge_from_obj) function_name_merge_from_obj
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
(default_parameter
(identifier_lists_only) identifier_lists_only
(False) False
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_clean) identifier_clean
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_obj) identifier_obj
(identifier_clean) identifier_clean
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_obj_config) identifier_obj_config
(attribute
(identifier_obj) identifier_obj
(identifier__config) identifier__config
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_all_props) identifier_all_props
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier_CONFIG_PROPERTIES) identifier_CONFIG_PROPERTIES
)attribute
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_six) identifier_six
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
(identifier_obj_config) identifier_obj_config
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_attr_config) identifier_attr_config
(subscript
(identifier_all_props) identifier_all_props
(identifier_key) identifier_key
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_attr_type) identifier_attr_type
(identifier_default) identifier_default
(identifier___) identifier___
(identifier_merge_func) identifier_merge_func
)pattern_list
(subscript
(identifier_attr_config) identifier_attr_config
(slice
(colon) colon
(integer_4) integer_4
)slice
)subscript
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_merge_func) identifier_merge_func
(False) False
)comparison_operator
(comparison_operator
(identifier_value) identifier_value
(identifier_default) identifier_default
)comparison_operator
)boolean_operator
(parenthesized_expression
(boolean_operator
(not_operator
(identifier_lists_only) identifier_lists_only
)not_operator
(parenthesized_expression
(boolean_operator
(identifier_attr_type) identifier_attr_type
(call
(identifier_issubclass) identifier_issubclass
(argument_list
(identifier_attr_type) identifier_attr_type
(identifier_list) identifier_list
)argument_list
)call
)boolean_operator
)parenthesized_expression
)boolean_operator
)parenthesized_expression
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__merge_value) identifier__merge_value
)attribute
(argument_list
(identifier_attr_type) identifier_attr_type
(identifier_merge_func) identifier_merge_func
(identifier_key) identifier_key
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Merges a configuration object into this one.
See :meth:`ConfigurationObject.merge` for details.
:param obj: Values to update the ConfigurationObject with.
:type obj: ConfigurationObject
:param lists_only: Ignore single-value attributes and update dictionary options.
:type lists_only: bool |
(module
(function_definition
(function_name_c2f) function_name_c2f
(parameters
(identifier_r) identifier_r
(identifier_i) identifier_i
(identifier_ctype_name) identifier_ctype_name
)parameters
(block
(expression_statement
(assignment
(identifier_ftype) identifier_ftype
(subscript
(identifier_c2f_dict) identifier_c2f_dict
(identifier_ctype_name) identifier_ctype_name
)subscript
)assignment
)expression_statement
(return_statement
(call
(subscript
(attribute
(identifier_np) identifier_np
(identifier_typeDict) identifier_typeDict
)attribute
(identifier_ctype_name) identifier_ctype_name
)subscript
(argument_list
(binary_operator
(call
(identifier_ftype) identifier_ftype
(argument_list
(identifier_r) identifier_r
)argument_list
)call
(binary_operator
(integer_1j) integer_1j
(call
(identifier_ftype) identifier_ftype
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)binary_operator
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convert strings to complex number instance with specified numpy type. |
(module
(function_definition
(function_name_describe_api_resource) function_name_describe_api_resource
(parameters
(identifier_restApiId) identifier_restApiId
(identifier_path) identifier_path
(default_parameter
(identifier_region) identifier_region
(None) None
)default_parameter
(default_parameter
(identifier_key) identifier_key
(None) None
)default_parameter
(default_parameter
(identifier_keyid) identifier_keyid
(None) None
)default_parameter
(default_parameter
(identifier_profile) identifier_profile
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(identifier_describe_api_resources) identifier_describe_api_resources
(argument_list
(identifier_restApiId) identifier_restApiId
(keyword_argument
(identifier_region) identifier_region
(identifier_region) identifier_region
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
(keyword_argument
(identifier_keyid) identifier_keyid
(identifier_keyid) identifier_keyid
)keyword_argument
(keyword_argument
(identifier_profile) identifier_profile
(identifier_profile) identifier_profile
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resources) identifier_resources
(call
(attribute
(identifier_r) identifier_r
(identifier_get) identifier_get
)attribute
(argument_list
(string_'resources') string_'resources'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_resources) identifier_resources
(None) None
)comparison_operator
(block
(return_statement
(identifier_r) identifier_r
)return_statement
)block
)if_statement
(for_statement
(identifier_resource) identifier_resource
(identifier_resources) identifier_resources
(block
(if_statement
(comparison_operator
(subscript
(identifier_resource) identifier_resource
(string_'path') string_'path'
)subscript
(identifier_path) identifier_path
)comparison_operator
(block
(return_statement
(dictionary
(pair
(string_'resource') string_'resource'
(identifier_resource) identifier_resource
)pair
)dictionary
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(dictionary
(pair
(string_'resource') string_'resource'
(None) None
)pair
)dictionary
)return_statement
)block
)function_definition
)module | Given rest api id, and an absolute resource path, returns the resource id for
the given path.
CLI Example:
.. code-block:: bash
salt myminion boto_apigateway.describe_api_resource myapi_id resource_path |
(module
(function_definition
(function_name_is_switched_on) function_name_is_switched_on
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_refresh) identifier_refresh
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_refresh) identifier_refresh
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_refresh) identifier_refresh
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(comparison_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_get_brightness) identifier_get_brightness
)attribute
(argument_list
(identifier_refresh) identifier_refresh
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)return_statement
)block
)function_definition
)module | Get dimmer state.
Refresh data from Vera if refresh is True,
otherwise use local cache. Refresh is only needed if you're
not using subscriptions. |
(module
(function_definition
(function_name__normalize_joliet_path) function_name__normalize_joliet_path
(parameters
(identifier_self) identifier_self
(identifier_joliet_path) identifier_joliet_path
)parameters
(block
(expression_statement
(assignment
(identifier_tmp_path) identifier_tmp_path
(string_b'') string_b''
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_joliet_vd) identifier_joliet_vd
)attribute
(None) None
)comparison_operator
(block
(if_statement
(not_operator
(identifier_joliet_path) identifier_joliet_path
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_pycdlibexception) identifier_pycdlibexception
(identifier_PyCdlibInvalidInput) identifier_PyCdlibInvalidInput
)attribute
(argument_list
(string_'A Joliet path must be passed for a Joliet ISO') string_'A Joliet path must be passed for a Joliet ISO'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_tmp_path) identifier_tmp_path
(call
(attribute
(identifier_utils) identifier_utils
(identifier_normpath) identifier_normpath
)attribute
(argument_list
(identifier_joliet_path) identifier_joliet_path
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(if_statement
(identifier_joliet_path) identifier_joliet_path
(block
(raise_statement
(call
(attribute
(identifier_pycdlibexception) identifier_pycdlibexception
(identifier_PyCdlibInvalidInput) identifier_PyCdlibInvalidInput
)attribute
(argument_list
(string_'A Joliet path can only be specified for a Joliet ISO') string_'A Joliet path can only be specified for a Joliet ISO'
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_tmp_path) identifier_tmp_path
)return_statement
)block
)function_definition
)module | An internal method to check whether this ISO does or does not require
a Joliet path. If a Joliet path is required, the path is normalized
and returned.
Parameters:
joliet_path - The joliet_path to normalize (if necessary).
Returns:
The normalized joliet_path if this ISO has Joliet, None otherwise. |
(module
(function_definition
(function_name_send_message) function_name_send_message
(parameters
(identifier_self) identifier_self
(identifier_message) identifier_message
(default_parameter
(identifier_sign) identifier_sign
(True) True
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_check_connected) identifier_check_connected
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_protocol) identifier_protocol
)attribute
(identifier_send_message) identifier_send_message
)attribute
(argument_list
(identifier_message) identifier_message
(identifier_sign) identifier_sign
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Sends the given message to the connection.
@type message: OmapiMessage
@type sign: bool
@param sign: whether the message needs to be signed
@raises OmapiError:
@raises socket.error: |
(module
(function_definition
(function_name_lssitepackages_cmd) function_name_lssitepackages_cmd
(parameters
(identifier_argv) identifier_argv
)parameters
(block
(expression_statement
(assignment
(identifier_site) identifier_site
(call
(identifier_sitepackages_dir) identifier_sitepackages_dir
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(list_splat
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(identifier_site) identifier_site
(identifier_iterdir) identifier_iterdir
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)list_splat
(keyword_argument
(identifier_sep) identifier_sep
(attribute
(identifier_os) identifier_os
(identifier_linesep) identifier_linesep
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_extra_paths) identifier_extra_paths
(binary_operator
(identifier_site) identifier_site
(string_'_virtualenv_path_extensions.pth') string_'_virtualenv_path_extensions.pth'
)binary_operator
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_extra_paths) identifier_extra_paths
(identifier_exists) identifier_exists
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'from _virtualenv_path_extensions.pth:') string_'from _virtualenv_path_extensions.pth:'
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_extra_paths) identifier_extra_paths
(identifier_open) identifier_open
)attribute
(argument_list
)argument_list
)call
(as_pattern_target
(identifier_extra) identifier_extra
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(call
(attribute
(identifier_extra) identifier_extra
(identifier_readlines) identifier_readlines
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)if_statement
)block
)function_definition
)module | Show the content of the site-packages directory of the current virtualenv. |
(module
(function_definition
(function_name_removeService) function_name_removeService
(parameters
(identifier_self) identifier_self
(identifier_service) identifier_service
)parameters
(block
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_wrapper) identifier_wrapper
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_services) identifier_services
)attribute
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_service) identifier_service
(tuple
(identifier_name) identifier_name
(attribute
(identifier_wrapper) identifier_wrapper
(identifier_service) identifier_service
)attribute
)tuple
)comparison_operator
(block
(delete_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_services) identifier_services
)attribute
(identifier_name) identifier_name
)subscript
)delete_statement
(return_statement
)return_statement
)block
)if_statement
)block
)for_statement
(raise_statement
(call
(identifier_NameError) identifier_NameError
(argument_list
(binary_operator
(string_"Service %r not found") string_"Service %r not found"
(tuple
(identifier_service) identifier_service
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Removes a service from the gateway.
@param service: Either the name or t of the service to remove from the
gateway, or .
@type service: C{callable} or a class instance
@raise NameError: Service not found. |
(module
(function_definition
(function_name_describe) function_name_describe
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_counts) identifier_counts
(call
(attribute
(identifier_self) identifier_self
(identifier_value_counts) identifier_value_counts
)attribute
(argument_list
(keyword_argument
(identifier_dropna) identifier_dropna
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_freqs) identifier_freqs
(binary_operator
(identifier_counts) identifier_counts
(call
(identifier_float) identifier_float
(argument_list
(call
(attribute
(identifier_counts) identifier_counts
(identifier_sum) identifier_sum
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(import_from_statement
(dotted_name
(identifier_pandas) identifier_pandas
(identifier_core) identifier_core
(identifier_reshape) identifier_reshape
(identifier_concat) identifier_concat
)dotted_name
(dotted_name
(identifier_concat) identifier_concat
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_concat) identifier_concat
(argument_list
(list
(identifier_counts) identifier_counts
(identifier_freqs) identifier_freqs
)list
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_result) identifier_result
(identifier_columns) identifier_columns
)attribute
(list
(string_'counts') string_'counts'
(string_'freqs') string_'freqs'
)list
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_result) identifier_result
(identifier_index) identifier_index
)attribute
(identifier_name) identifier_name
)attribute
(string_'categories') string_'categories'
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Describes this Categorical
Returns
-------
description: `DataFrame`
A dataframe with frequency and counts by category. |
(module
(function_definition
(function_name__format_with_same_year_and_month) function_name__format_with_same_year_and_month
(parameters
(identifier_format_specifier) identifier_format_specifier
)parameters
(block
(expression_statement
(assignment
(identifier_test_format_specifier) identifier_test_format_specifier
(binary_operator
(identifier_format_specifier) identifier_format_specifier
(string_"_SAME_YEAR_SAME_MONTH") string_"_SAME_YEAR_SAME_MONTH"
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_test_format) identifier_test_format
(call
(identifier_get_format) identifier_get_format
(argument_list
(identifier_test_format_specifier) identifier_test_format_specifier
(keyword_argument
(identifier_use_l10n) identifier_use_l10n
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_test_format) identifier_test_format
(identifier_test_format_specifier) identifier_test_format_specifier
)comparison_operator
(block
(expression_statement
(assignment
(identifier_no_year) identifier_no_year
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(identifier_YEAR_RE) identifier_YEAR_RE
(string_'') string_''
(call
(identifier_get_format) identifier_get_format
(argument_list
(identifier_format_specifier) identifier_format_specifier
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(identifier_MONTH_RE) identifier_MONTH_RE
(string_'') string_''
(identifier_no_year) identifier_no_year
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_test_format) identifier_test_format
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return a version of `format_specifier` that renders a date
assuming it has the same year and month as another date. Usually this
means ommitting the year and month.
This can be overridden by specifying a format that has
`_SAME_YEAR_SAME_MONTH` appended to the name in the project's `formats`
spec. |
(module
(function_definition
(function_name_clear) function_name_clear
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_color) identifier_color
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(identifier_int) identifier_int
)type
(type
(identifier_int) identifier_int
)type
(type
(identifier_int) identifier_int
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(call
(attribute
(identifier_lib) identifier_lib
(identifier_TCOD_image_clear) identifier_TCOD_image_clear
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_image_c) identifier_image_c
)attribute
(identifier_color) identifier_color
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Fill this entire Image with color.
Args:
color (Union[Tuple[int, int, int], Sequence[int]]):
An (r, g, b) sequence or Color instance. |
(module
(function_definition
(function_name_yunit) function_name_yunit
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(return_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier__dy) identifier__dy
)attribute
(identifier_unit) identifier_unit
)attribute
)return_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(try_statement
(block
(return_statement
(attribute
(attribute
(identifier_self) identifier_self
(identifier__y0) identifier__y0
)attribute
(identifier_unit) identifier_unit
)attribute
)return_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__default_yunit) identifier__default_yunit
)attribute
)return_statement
)block
)except_clause
)try_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Unit of Y-axis index
:type: `~astropy.units.Unit` |
(module
(function_definition
(function_name__load_form_data) function_name__load_form_data
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(string_"form") string_"form"
(attribute
(identifier_self) identifier_self
(identifier___dict__) identifier___dict__
)attribute
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(identifier__assert_not_shallow) identifier__assert_not_shallow
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_want_form_data_parsed) identifier_want_form_data_parsed
)attribute
(block
(expression_statement
(assignment
(identifier_content_type) identifier_content_type
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_environ) identifier_environ
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"CONTENT_TYPE") string_"CONTENT_TYPE"
(string_"") string_""
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content_length) identifier_content_length
(call
(identifier_get_content_length) identifier_get_content_length
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_environ) identifier_environ
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_mimetype) identifier_mimetype
(identifier_options) identifier_options
)pattern_list
(call
(identifier_parse_options_header) identifier_parse_options_header
(argument_list
(identifier_content_type) identifier_content_type
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(attribute
(identifier_self) identifier_self
(identifier_make_form_data_parser) identifier_make_form_data_parser
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_parser) identifier_parser
(identifier_parse) identifier_parse
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__get_stream_for_parsing) identifier__get_stream_for_parsing
)attribute
(argument_list
)argument_list
)call
(identifier_mimetype) identifier_mimetype
(identifier_content_length) identifier_content_length
(identifier_options) identifier_options
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(tuple
(attribute
(identifier_self) identifier_self
(identifier_stream) identifier_stream
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_parameter_storage_class) identifier_parameter_storage_class
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier_parameter_storage_class) identifier_parameter_storage_class
)attribute
(argument_list
)argument_list
)call
)tuple
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_d) identifier_d
(attribute
(identifier_self) identifier_self
(identifier___dict__) identifier___dict__
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(subscript
(identifier_d) identifier_d
(string_"stream") string_"stream"
)subscript
(subscript
(identifier_d) identifier_d
(string_"form") string_"form"
)subscript
(subscript
(identifier_d) identifier_d
(string_"files") string_"files"
)subscript
)pattern_list
(identifier_data) identifier_data
)assignment
)expression_statement
)block
)function_definition
)module | Method used internally to retrieve submitted data. After calling
this sets `form` and `files` on the request object to multi dicts
filled with the incoming form data. As a matter of fact the input
stream will be empty afterwards. You can also call this method to
force the parsing of the form data.
.. versionadded:: 0.8 |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_cls) identifier_cls
(identifier_key) identifier_key
(default_parameter
(identifier_section) identifier_section
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_section) identifier_section
(boolean_operator
(identifier_section) identifier_section
(attribute
(identifier_cls) identifier_cls
(identifier__default_sect) identifier__default_sect
)attribute
)boolean_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_section) identifier_section
(attribute
(identifier_cls) identifier_cls
(identifier__conf) identifier__conf
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier__load) identifier__load
)attribute
(argument_list
(keyword_argument
(identifier_section) identifier_section
(identifier_section) identifier_section
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(subscript
(attribute
(identifier_cls) identifier_cls
(identifier__conf) identifier__conf
)attribute
(identifier_section) identifier_section
)subscript
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(not_operator
(identifier_value) identifier_value
)not_operator
(comparison_operator
(identifier_section) identifier_section
(attribute
(identifier_cls) identifier_cls
(identifier__default_sect) identifier__default_sect
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(conditional_expression
(call
(attribute
(subscript
(attribute
(identifier_cls) identifier_cls
(identifier__conf) identifier__conf
)attribute
(attribute
(identifier_cls) identifier_cls
(identifier__default_sect) identifier__default_sect
)attribute
)subscript
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
(comparison_operator
(attribute
(identifier_cls) identifier_cls
(identifier__default_sect) identifier__default_sect
)attribute
(attribute
(identifier_cls) identifier_cls
(identifier__conf) identifier__conf
)attribute
)comparison_operator
(None) None
)conditional_expression
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(string_'default') string_'default'
(identifier_kwargs) identifier_kwargs
)comparison_operator
(block
(expression_statement
(assignment
(identifier__def_value) identifier__def_value
(subscript
(identifier_kwargs) identifier_kwargs
(string_'default') string_'default'
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warn) identifier_warn
)attribute
(argument_list
(call
(attribute
(string_"Static configuration [{}] was not found. Using the default value [{}].") string_"Static configuration [{}] was not found. Using the default value [{}]."
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_key) identifier_key
(identifier__def_value) identifier__def_value
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier__def_value) identifier__def_value
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_InvalidConfigException) identifier_InvalidConfigException
(argument_list
(call
(attribute
(string_u'Not found entry: {}') string_u'Not found entry: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_from_json) identifier_from_json
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(tuple
(identifier_TypeError) identifier_TypeError
(identifier_ValueError) identifier_ValueError
)tuple
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Retrieves a config value from dict.
If not found twrows an InvalidScanbooconfigException. |
(module
(function_definition
(function_name_add_alternative) function_name_add_alternative
(parameters
(identifier_self) identifier_self
(identifier_target_instance) identifier_target_instance
)parameters
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_target_instance) identifier_target_instance
(identifier_AbstractTarget) identifier_AbstractTarget
)argument_list
)call
)assert_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_built_main_targets_) identifier_built_main_targets_
)attribute
(block
(raise_statement
(call
(identifier_IllegalOperation) identifier_IllegalOperation
(argument_list
(binary_operator
(string_"add-alternative called when main targets are already created for project '%s'") string_"add-alternative called when main targets are already created for project '%s'"
(call
(attribute
(identifier_self) identifier_self
(identifier_full_name) identifier_full_name
)attribute
(argument_list
)argument_list
)call
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_alternatives_) identifier_alternatives_
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_target_instance) identifier_target_instance
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add new target alternative. |
(module
(function_definition
(function_name_connect_sftp_with_cb) function_name_connect_sftp_with_cb
(parameters
(identifier_sftp_cb) identifier_sftp_cb
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier__connect_sftp) identifier__connect_sftp
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(as_pattern_target
(tuple
(identifier_ssh) identifier_ssh
(identifier_sftp) identifier_sftp
)tuple
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(identifier_sftp_cb) identifier_sftp_cb
(argument_list
(identifier_ssh) identifier_ssh
(identifier_sftp) identifier_sftp
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | A "managed" SFTP session. When the SSH session and an additional SFTP
session are ready, invoke the sftp_cb callback. |
(module
(function_definition
(function_name__get_urls) function_name__get_urls
(parameters
(identifier_self) identifier_self
(identifier_version) identifier_version
(identifier_cluster_stats) identifier_cluster_stats
)parameters
(block
(expression_statement
(assignment
(identifier_pshard_stats_url) identifier_pshard_stats_url
(string_"/_stats") string_"/_stats"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_health_url) identifier_health_url
(string_"/_cluster/health") string_"/_cluster/health"
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_version) identifier_version
(list
(integer_0) integer_0
(integer_90) integer_90
(integer_10) integer_10
)list
)comparison_operator
(block
(expression_statement
(assignment
(identifier_pending_tasks_url) identifier_pending_tasks_url
(string_"/_cluster/pending_tasks") string_"/_cluster/pending_tasks"
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stats_url) identifier_stats_url
(conditional_expression
(string_"/_nodes/stats") string_"/_nodes/stats"
(identifier_cluster_stats) identifier_cluster_stats
(string_"/_nodes/_local/stats") string_"/_nodes/_local/stats"
)conditional_expression
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_version) identifier_version
(list
(integer_5) integer_5
(integer_0) integer_0
(integer_0) integer_0
)list
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_stats_url) identifier_stats_url
(string_"?all=true") string_"?all=true"
)augmented_assignment
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_pending_tasks_url) identifier_pending_tasks_url
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stats_url) identifier_stats_url
(conditional_expression
(string_"/_cluster/nodes/stats?all=true") string_"/_cluster/nodes/stats?all=true"
(identifier_cluster_stats) identifier_cluster_stats
(string_"/_cluster/nodes/_local/stats?all=true") string_"/_cluster/nodes/_local/stats?all=true"
)conditional_expression
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(expression_list
(identifier_health_url) identifier_health_url
(identifier_stats_url) identifier_stats_url
(identifier_pshard_stats_url) identifier_pshard_stats_url
(identifier_pending_tasks_url) identifier_pending_tasks_url
)expression_list
)return_statement
)block
)function_definition
)module | Compute the URLs we need to hit depending on the running ES version |
(module
(function_definition
(function_name_list_objects) function_name_list_objects
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_prefix) identifier_prefix
(None) None
)default_parameter
(default_parameter
(identifier_delimiter) identifier_delimiter
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_list_objects) identifier_list_objects
)attribute
(argument_list
(keyword_argument
(identifier_instance) identifier_instance
(attribute
(identifier_self) identifier_self
(identifier__instance) identifier__instance
)attribute
)keyword_argument
(keyword_argument
(identifier_bucket_name) identifier_bucket_name
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)keyword_argument
(keyword_argument
(identifier_prefix) identifier_prefix
(identifier_prefix) identifier_prefix
)keyword_argument
(keyword_argument
(identifier_delimiter) identifier_delimiter
(identifier_delimiter) identifier_delimiter
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | List the objects for this bucket.
:param str prefix: If specified, only objects that start with this
prefix are listed.
:param str delimiter: If specified, return only objects whose name
do not contain the delimiter after the prefix.
For the other objects, the response contains
(in the prefix response parameter) the name
truncated after the delimiter. Duplicates are
omitted. |
(module
(function_definition
(function_name__CheckIsLink) function_name__CheckIsLink
(parameters
(identifier_self) identifier_self
(identifier_file_entry) identifier_file_entry
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_definitions) identifier_definitions
(identifier_FILE_ENTRY_TYPE_LINK) identifier_FILE_ENTRY_TYPE_LINK
)attribute
(attribute
(identifier_self) identifier_self
(identifier__file_entry_types) identifier__file_entry_types
)attribute
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_file_entry) identifier_file_entry
(identifier_IsLink) identifier_IsLink
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Checks the is_link find specification.
Args:
file_entry (FileEntry): file entry.
Returns:
bool: True if the file entry matches the find specification, False if not. |
(module
(function_definition
(function_name_add_geo_facet) function_name_add_geo_facet
(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
(attribute
(identifier_self) identifier_self
(identifier_facets) identifier_facets
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_GeoDistanceFacet) identifier_GeoDistanceFacet
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add a geo factory facet |
(module
(function_definition
(function_name_match_any_char) function_name_match_any_char
(parameters
(identifier_self) identifier_self
(identifier_chars) identifier_chars
(default_parameter
(identifier_offset) identifier_offset
(integer_0) integer_0
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_has_space) identifier_has_space
)attribute
(argument_list
(keyword_argument
(identifier_offset) identifier_offset
(identifier_offset) identifier_offset
)keyword_argument
)argument_list
)call
)not_operator
(block
(return_statement
(string_'') string_''
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_current) identifier_current
(subscript
(attribute
(identifier_self) identifier_self
(identifier_string) identifier_string
)attribute
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_pos) identifier_pos
)attribute
(identifier_offset) identifier_offset
)binary_operator
)subscript
)assignment
)expression_statement
(return_statement
(conditional_expression
(identifier_current) identifier_current
(comparison_operator
(identifier_current) identifier_current
(identifier_chars) identifier_chars
)comparison_operator
(string_'') string_''
)conditional_expression
)return_statement
)block
)function_definition
)module | Match and return the current SourceString char if its in chars. |
(module
(function_definition
(function_name_get_transition_m) function_name_get_transition_m
(parameters
(identifier_self) identifier_self
(identifier_transition_id) identifier_transition_id
)parameters
(block
(for_statement
(identifier_transition_m) identifier_transition_m
(attribute
(identifier_self) identifier_self
(identifier_transitions) identifier_transitions
)attribute
(block
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_transition_m) identifier_transition_m
(identifier_transition) identifier_transition
)attribute
(identifier_transition_id) identifier_transition_id
)attribute
(identifier_transition_id) identifier_transition_id
)comparison_operator
(block
(return_statement
(identifier_transition_m) identifier_transition_m
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Searches and return the transition model with the given in the given container state model
:param transition_id: The transition id to be searched
:return: The model of the transition or None if it is not found |
(module
(function_definition
(function_name_iter_target_siblings_and_ancestors) function_name_iter_target_siblings_and_ancestors
(parameters
(identifier_self) identifier_self
(identifier_target) identifier_target
)parameters
(block
(function_definition
(function_name_iter_targets_in_spec_path) function_name_iter_targets_in_spec_path
(parameters
(identifier_spec_path) identifier_spec_path
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_siblings) identifier_siblings
(call
(identifier_SiblingAddresses) identifier_SiblingAddresses
(argument_list
(identifier_spec_path) identifier_spec_path
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_address) identifier_address
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__build_graph) identifier__build_graph
)attribute
(identifier_inject_specs_closure) identifier_inject_specs_closure
)attribute
(argument_list
(list
(identifier_siblings) identifier_siblings
)list
)argument_list
)call
(block
(expression_statement
(yield
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__build_graph) identifier__build_graph
)attribute
(identifier_get_target) identifier_get_target
)attribute
(argument_list
(identifier_address) identifier_address
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
)block
(except_clause
(identifier_AddressLookupError) identifier_AddressLookupError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)function_definition
(function_definition
(function_name_iter_siblings_and_ancestors) function_name_iter_siblings_and_ancestors
(parameters
(identifier_spec_path) identifier_spec_path
)parameters
(block
(for_statement
(identifier_sibling) identifier_sibling
(call
(identifier_iter_targets_in_spec_path) identifier_iter_targets_in_spec_path
(argument_list
(identifier_spec_path) identifier_spec_path
)argument_list
)call
(block
(expression_statement
(yield
(identifier_sibling) identifier_sibling
)yield
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_parent_spec_path) identifier_parent_spec_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_spec_path) identifier_spec_path
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_parent_spec_path) identifier_parent_spec_path
(identifier_spec_path) identifier_spec_path
)comparison_operator
(block
(for_statement
(identifier_parent) identifier_parent
(call
(identifier_iter_siblings_and_ancestors) identifier_iter_siblings_and_ancestors
(argument_list
(identifier_parent_spec_path) identifier_parent_spec_path
)argument_list
)call
(block
(expression_statement
(yield
(identifier_parent) identifier_parent
)yield
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)function_definition
(for_statement
(identifier_target) identifier_target
(call
(identifier_iter_siblings_and_ancestors) identifier_iter_siblings_and_ancestors
(argument_list
(attribute
(attribute
(identifier_target) identifier_target
(identifier_address) identifier_address
)attribute
(identifier_spec_path) identifier_spec_path
)attribute
)argument_list
)call
(block
(expression_statement
(yield
(identifier_target) identifier_target
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Produces an iterator over a target's siblings and ancestor lineage.
:returns: A target iterator yielding the target and its siblings and then it ancestors from
nearest to furthest removed. |
(module
(function_definition
(function_name_bytes2str) function_name_bytes2str
(parameters
(identifier_bs) identifier_bs
)parameters
(block
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_bs) identifier_bs
(call
(identifier_type) identifier_type
(argument_list
(string_b'') string_b''
)argument_list
)call
)argument_list
)call
(comparison_operator
(identifier_PY_MAJOR_VERSION) identifier_PY_MAJOR_VERSION
(integer_2) integer_2
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(attribute
(identifier_bs) identifier_bs
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'latin1') string_'latin1'
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_bs) identifier_bs
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | For cross compatibility between Python 2 and Python 3 strings. |
(module
(function_definition
(function_name_parse) function_name_parse
(parameters
(identifier_self) identifier_self
(identifier_line) identifier_line
)parameters
(block
(if_statement
(not_operator
(identifier_line) identifier_line
)not_operator
(block
(raise_statement
(call
(identifier_KatcpSyntaxError) identifier_KatcpSyntaxError
(argument_list
(string_"Empty message received.") string_"Empty message received."
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_type_char) identifier_type_char
(subscript
(identifier_line) identifier_line
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_type_char) identifier_type_char
(attribute
(identifier_self) identifier_self
(identifier_TYPE_SYMBOL_LOOKUP) identifier_TYPE_SYMBOL_LOOKUP
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_KatcpSyntaxError) identifier_KatcpSyntaxError
(argument_list
(binary_operator
(string_"Bad type character %r.") string_"Bad type character %r."
(tuple
(identifier_type_char) identifier_type_char
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_mtype) identifier_mtype
(subscript
(attribute
(identifier_self) identifier_self
(identifier_TYPE_SYMBOL_LOOKUP) identifier_TYPE_SYMBOL_LOOKUP
)attribute
(identifier_type_char) identifier_type_char
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parts) identifier_parts
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_WHITESPACE_RE) identifier_WHITESPACE_RE
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(subscript
(identifier_parts) identifier_parts
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)not_operator
(block
(delete_statement
(subscript
(identifier_parts) identifier_parts
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)delete_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_name) identifier_name
(subscript
(subscript
(identifier_parts) identifier_parts
(integer_0) integer_0
)subscript
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_arguments) identifier_arguments
(list_comprehension
(call
(attribute
(identifier_self) identifier_self
(identifier__parse_arg) identifier__parse_arg
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(subscript
(identifier_parts) identifier_parts
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_match) identifier_match
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_NAME_RE) identifier_NAME_RE
)attribute
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_match) identifier_match
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(string_'name') string_'name'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mid) identifier_mid
(call
(attribute
(identifier_match) identifier_match
(identifier_group) identifier_group
)attribute
(argument_list
(string_'id') string_'id'
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_KatcpSyntaxError) identifier_KatcpSyntaxError
(argument_list
(binary_operator
(string_"Bad message name (and possibly id) %r.") string_"Bad message name (and possibly id) %r."
(tuple
(identifier_name) identifier_name
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_Message) identifier_Message
(argument_list
(identifier_mtype) identifier_mtype
(identifier_name) identifier_name
(identifier_arguments) identifier_arguments
(identifier_mid) identifier_mid
)argument_list
)call
)return_statement
)block
)function_definition
)module | Parse a line, return a Message.
Parameters
----------
line : str
The line to parse (should not contain the terminating newline
or carriage return).
Returns
-------
msg : Message object
The resulting Message. |
(module
(function_definition
(function_name_validate_keys) function_name_validate_keys
(parameters
(identifier_dict_) identifier_dict_
(identifier_expected) identifier_expected
(identifier_funcname) identifier_funcname
)parameters
(block
(expression_statement
(assignment
(identifier_expected) identifier_expected
(call
(identifier_set) identifier_set
(argument_list
(identifier_expected) identifier_expected
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_received) identifier_received
(call
(identifier_set) identifier_set
(argument_list
(identifier_dict_) identifier_dict_
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_missing) identifier_missing
(binary_operator
(identifier_expected) identifier_expected
(identifier_received) identifier_received
)binary_operator
)assignment
)expression_statement
(if_statement
(identifier_missing) identifier_missing
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(concatenated_string
(string_"Missing keys in {}:\n") string_"Missing keys in {}:\n"
(string_"Expected Keys: {}\n") string_"Expected Keys: {}\n"
(string_"Received Keys: {}") string_"Received Keys: {}"
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_funcname) identifier_funcname
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_expected) identifier_expected
)argument_list
)call
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_received) identifier_received
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_unexpected) identifier_unexpected
(binary_operator
(identifier_received) identifier_received
(identifier_expected) identifier_expected
)binary_operator
)assignment
)expression_statement
(if_statement
(identifier_unexpected) identifier_unexpected
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(concatenated_string
(string_"Unexpected keys in {}:\n") string_"Unexpected keys in {}:\n"
(string_"Expected Keys: {}\n") string_"Expected Keys: {}\n"
(string_"Received Keys: {}") string_"Received Keys: {}"
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_funcname) identifier_funcname
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_expected) identifier_expected
)argument_list
)call
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_received) identifier_received
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Validate that a dictionary has an expected set of keys. |
(module
(function_definition
(function_name_get_parser) function_name_get_parser
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(attribute
(identifier_argparse) identifier_argparse
(identifier_ArgumentParser) identifier_ArgumentParser
)attribute
(argument_list
(keyword_argument
(identifier_formatter_class) identifier_formatter_class
(attribute
(identifier_argparse) identifier_argparse
(identifier_RawTextHelpFormatter) identifier_RawTextHelpFormatter
)attribute
)keyword_argument
(keyword_argument
(identifier_description) identifier_description
(identifier___doc__) identifier___doc__
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'--host') string_'--host'
(keyword_argument
(identifier_default) identifier_default
(string_'localhost') string_'localhost'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'--port') string_'--port'
(keyword_argument
(identifier_default) identifier_default
(integer_6379) integer_6379
)keyword_argument
(keyword_argument
(identifier_type) identifier_type
(identifier_int) identifier_int
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'--db') string_'--db'
(keyword_argument
(identifier_default) identifier_default
(integer_0) integer_0
)keyword_argument
(keyword_argument
(identifier_type) identifier_type
(identifier_int) identifier_int
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'command') string_'command'
(keyword_argument
(identifier_choices) identifier_choices
(tuple
(call
(identifier_str) identifier_str
(argument_list
(string_'follow') string_'follow'
)argument_list
)call
(call
(identifier_str) identifier_str
(argument_list
(string_'lock') string_'lock'
)argument_list
)call
(call
(identifier_str) identifier_str
(argument_list
(string_'reset') string_'reset'
)argument_list
)call
(call
(identifier_str) identifier_str
(argument_list
(string_'status') string_'status'
)argument_list
)call
)tuple
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_argument) identifier_add_argument
)attribute
(argument_list
(string_'resources') string_'resources'
(keyword_argument
(identifier_nargs) identifier_nargs
(string_'*') string_'*'
)keyword_argument
(keyword_argument
(identifier_metavar) identifier_metavar
(string_'RESOURCE') string_'RESOURCE'
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_parser) identifier_parser
)return_statement
)block
)function_definition
)module | Return argument parser. |
(module
(function_definition
(function_name_shared_dataset_ids) function_name_shared_dataset_ids
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_shared_ids) identifier_shared_ids
(call
(identifier_set) identifier_set
(argument_list
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_scenes) identifier_scenes
)attribute
(integer_0) integer_0
)subscript
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_scene) identifier_scene
(subscript
(attribute
(identifier_self) identifier_self
(identifier_scenes) identifier_scenes
)attribute
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
(block
(expression_statement
(augmented_assignment
(identifier_shared_ids) identifier_shared_ids
(call
(identifier_set) identifier_set
(argument_list
(call
(attribute
(identifier_scene) identifier_scene
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_shared_ids) identifier_shared_ids
)return_statement
)block
)function_definition
)module | Dataset IDs shared by all children. |
(module
(function_definition
(function_name_queue_path) function_name_queue_path
(parameters
(identifier_cls) identifier_cls
(identifier_project) identifier_project
(identifier_location) identifier_location
(identifier_queue) identifier_queue
)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}/locations/{location}/queues/{queue}") string_"projects/{project}/locations/{location}/queues/{queue}"
(keyword_argument
(identifier_project) identifier_project
(identifier_project) identifier_project
)keyword_argument
(keyword_argument
(identifier_location) identifier_location
(identifier_location) identifier_location
)keyword_argument
(keyword_argument
(identifier_queue) identifier_queue
(identifier_queue) identifier_queue
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a fully-qualified queue string. |
(module
(function_definition
(function_name_finish) function_name_finish
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(string_"End this session") string_"End this session"
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Session disconnected.") string_"Session disconnected."
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_sock) identifier_sock
)attribute
(identifier_shutdown) identifier_shutdown
)attribute
(argument_list
(attribute
(identifier_socket) identifier_socket
(identifier_SHUT_RDWR) identifier_SHUT_RDWR
)attribute
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_session_end) identifier_session_end
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | End this session |
(module
(function_definition
(function_name_common_start) function_name_common_start
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(function_definition
(function_name__iter) function_name__iter
(parameters
)parameters
(block
(for_statement
(identifier_s) identifier_s
(call
(identifier_zip) identifier_zip
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(call
(identifier_set) identifier_set
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)comparison_operator
(block
(expression_statement
(yield
(subscript
(identifier_s) identifier_s
(integer_0) integer_0
)subscript
)yield
)expression_statement
)block
(else_clause
(block
(return_statement
)return_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(attribute
(call
(attribute
(string_"") string_""
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier__iter) identifier__iter
(argument_list
)argument_list
)call
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(list_comprehension
(identifier_s) identifier_s
(for_in_clause
(identifier_s) identifier_s
(identifier_args) identifier_args
)for_in_clause
(if_clause
(not_operator
(call
(attribute
(identifier_s) identifier_s
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_out) identifier_out
)argument_list
)call
)not_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_0) integer_0
(identifier_out) identifier_out
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(string_', ') string_', '
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)function_definition
)module | returns the longest common substring from the beginning of sa and sb |
(module
(function_definition
(function_name_stash) function_name_stash
(parameters
(identifier_self) identifier_self
(identifier_payload) identifier_payload
)parameters
(block
(expression_statement
(assignment
(identifier_succeeded) identifier_succeeded
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_failed) identifier_failed
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(subscript
(identifier_payload) identifier_payload
(string_'keys') string_'keys'
)subscript
(block
(if_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_queue) identifier_queue
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
(None) None
)comparison_operator
(block
(if_statement
(comparison_operator
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_queue) identifier_queue
)attribute
(identifier_key) identifier_key
)subscript
(string_'status') string_'status'
)subscript
(string_'queued') string_'queued'
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_queue) identifier_queue
)attribute
(identifier_key) identifier_key
)subscript
(string_'status') string_'status'
)subscript
(string_'stashed') string_'stashed'
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_succeeded) identifier_succeeded
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_failed) identifier_failed
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_failed) identifier_failed
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_message) identifier_message
(string_'') string_''
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_succeeded) identifier_succeeded
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_message) identifier_message
(call
(attribute
(string_'Stashed entries: {}.') string_'Stashed entries: {}.'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(string_', ') string_', '
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_succeeded) identifier_succeeded
)argument_list
)call
)argument_list
)call
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_status) identifier_status
(string_'success') string_'success'
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_failed) identifier_failed
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_message) identifier_message
(call
(attribute
(string_'\nNo queued entry for keys: {}') string_'\nNo queued entry for keys: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(string_', ') string_', '
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_failed) identifier_failed
)argument_list
)call
)argument_list
)call
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_status) identifier_status
(string_'error') string_'error'
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_answer) identifier_answer
(dictionary
(pair
(string_'message') string_'message'
(call
(attribute
(identifier_message) identifier_message
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)pair
(pair
(string_'status') string_'status'
(identifier_status) identifier_status
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(identifier_answer) identifier_answer
)return_statement
)block
)function_definition
)module | Stash the specified processes. |
(module
(function_definition
(function_name_add_child) function_name_add_child
(parameters
(identifier_self) identifier_self
(identifier_tree) identifier_tree
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_tree) identifier_tree
(identifier_parent) identifier_parent
)attribute
(identifier_self) identifier_self
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_children) identifier_children
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_tree) identifier_tree
)argument_list
)call
)expression_statement
(return_statement
(identifier_tree) identifier_tree
)return_statement
)block
)function_definition
)module | Add a child to the list of this tree's children
This tree becomes the added tree's parent |
(module
(function_definition
(function_name_add_one) function_name_add_one
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_url) identifier_url
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_default_parameter
(identifier_url_properties) identifier_url_properties
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_URLProperties) identifier_URLProperties
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_url_data) identifier_url_data
(type
(generic_type
(identifier_Optional) identifier_Optional
(type_parameter
(type
(identifier_URLData) identifier_URLData
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_many) identifier_add_many
)attribute
(argument_list
(list
(call
(identifier_AddURLInfo) identifier_AddURLInfo
(argument_list
(identifier_url) identifier_url
(identifier_url_properties) identifier_url_properties
(identifier_url_data) identifier_url_data
)argument_list
)call
)list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add a single URL to the table.
Args:
url: The URL to be added
url_properties: Additional values to be saved
url_data: Additional data to be saved |
(module
(function_definition
(function_name_unit_action) function_name_unit_action
(parameters
(identifier_self) identifier_self
(identifier_cmd) identifier_cmd
(identifier_pos) identifier_pos
(identifier_shift) identifier_shift
)parameters
(block
(expression_statement
(assignment
(identifier_action) identifier_action
(call
(attribute
(identifier_sc_pb) identifier_sc_pb
(identifier_Action) identifier_Action
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_pos) identifier_pos
(block
(expression_statement
(assignment
(identifier_action_spatial) identifier_action_spatial
(call
(attribute
(identifier_pos) identifier_pos
(identifier_action_spatial) identifier_action_spatial
)attribute
(argument_list
(identifier_action) identifier_action
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_unit_command) identifier_unit_command
(attribute
(identifier_action_spatial) identifier_action_spatial
(identifier_unit_command) identifier_unit_command
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_unit_command) identifier_unit_command
(identifier_ability_id) identifier_ability_id
)attribute
(attribute
(identifier_cmd) identifier_cmd
(identifier_ability_id) identifier_ability_id
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_unit_command) identifier_unit_command
(identifier_queue_command) identifier_queue_command
)attribute
(identifier_shift) identifier_shift
)assignment
)expression_statement
(if_statement
(binary_operator
(attribute
(attribute
(identifier_pos) identifier_pos
(identifier_surf) identifier_surf
)attribute
(identifier_surf_type) identifier_surf_type
)attribute
(attribute
(identifier_SurfType) identifier_SurfType
(identifier_SCREEN) identifier_SCREEN
)attribute
)binary_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_pos) identifier_pos
(identifier_obs_pos) identifier_obs_pos
)attribute
(identifier_assign_to) identifier_assign_to
)attribute
(argument_list
(attribute
(identifier_unit_command) identifier_unit_command
(identifier_target_screen_coord) identifier_target_screen_coord
)attribute
)argument_list
)call
)expression_statement
)block
(elif_clause
(binary_operator
(attribute
(attribute
(identifier_pos) identifier_pos
(identifier_surf) identifier_surf
)attribute
(identifier_surf_type) identifier_surf_type
)attribute
(attribute
(identifier_SurfType) identifier_SurfType
(identifier_MINIMAP) identifier_MINIMAP
)attribute
)binary_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_pos) identifier_pos
(identifier_obs_pos) identifier_obs_pos
)attribute
(identifier_assign_to) identifier_assign_to
)attribute
(argument_list
(attribute
(identifier_unit_command) identifier_unit_command
(identifier_target_minimap_coord) identifier_target_minimap_coord
)attribute
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
(else_clause
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__feature_screen_px) identifier__feature_screen_px
)attribute
(block
(expression_statement
(assignment
(attribute
(attribute
(attribute
(identifier_action) identifier_action
(identifier_action_feature_layer) identifier_action_feature_layer
)attribute
(identifier_unit_command) identifier_unit_command
)attribute
(identifier_ability_id) identifier_ability_id
)attribute
(attribute
(identifier_cmd) identifier_cmd
(identifier_ability_id) identifier_ability_id
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(attribute
(attribute
(identifier_action) identifier_action
(identifier_action_render) identifier_action_render
)attribute
(identifier_unit_command) identifier_unit_command
)attribute
(identifier_ability_id) identifier_ability_id
)attribute
(attribute
(identifier_cmd) identifier_cmd
(identifier_ability_id) identifier_ability_id
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_clear_queued_action) identifier_clear_queued_action
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_action) identifier_action
)return_statement
)block
)function_definition
)module | Return a `sc_pb.Action` filled with the cmd and appropriate target. |
(module
(function_definition
(function_name__get_line) function_name__get_line
(parameters
(identifier_self) identifier_self
(identifier_search_string) identifier_search_string
(identifier_search_file) identifier_search_file
(default_parameter
(identifier_return_string) identifier_return_string
(True) True
)default_parameter
(default_parameter
(identifier_case_sens) identifier_case_sens
(True) True
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_search_file) identifier_search_file
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_search_string) identifier_search_string
)argument_list
)call
(call
(identifier_type) identifier_type
(argument_list
(string_'') string_''
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_search_string) identifier_search_string
(list
(identifier_search_string) identifier_search_string
)list
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_case_sens) identifier_case_sens
)not_operator
(block
(expression_statement
(assignment
(identifier_search_string) identifier_search_string
(list_comprehension
(call
(attribute
(identifier_i) identifier_i
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_i) identifier_i
(identifier_search_string) identifier_search_string
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_search_file) identifier_search_file
)argument_list
)call
(as_pattern_target
(identifier_fp) identifier_fp
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_line) identifier_line
(identifier_fp) identifier_fp
(block
(expression_statement
(assignment
(identifier_query_line) identifier_query_line
(conditional_expression
(identifier_line) identifier_line
(identifier_case_sens) identifier_case_sens
(call
(attribute
(identifier_line) identifier_line
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
(if_statement
(call
(identifier_all) identifier_all
(argument_list
(list_comprehension
(comparison_operator
(identifier_i) identifier_i
(identifier_query_line) identifier_query_line
)comparison_operator
(for_in_clause
(identifier_i) identifier_i
(identifier_search_string) identifier_search_string
)for_in_clause
)list_comprehension
)argument_list
)call
(block
(return_statement
(conditional_expression
(identifier_line) identifier_line
(identifier_return_string) identifier_return_string
(True) True
)conditional_expression
)return_statement
)block
)if_statement
)block
)for_statement
(if_statement
(identifier_return_string) identifier_return_string
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(binary_operator
(string_'%s not found in %s') string_'%s not found in %s'
(tuple
(call
(attribute
(string_' & ') string_' & '
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_search_string) identifier_search_string
)argument_list
)call
(identifier_search_file) identifier_search_file
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)with_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(binary_operator
(string_'%s file does not exist') string_'%s file does not exist'
(identifier_search_file) identifier_search_file
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return the first line containing a set of strings in a file.
If return_string is False, we just return whether such a line
was found. If case_sens is False, the search is case
insensitive. |
(module
(function_definition
(function_name_config_namespace) function_name_config_namespace
(parameters
(default_parameter
(identifier_config_file) identifier_config_file
(None) None
)default_parameter
(default_parameter
(identifier_auto_find) identifier_auto_find
(False) False
)default_parameter
(default_parameter
(identifier_verify) identifier_verify
(True) True
)default_parameter
(dictionary_splat_pattern
(identifier_cfg_options) identifier_cfg_options
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(identifier_ConfigNamespace) identifier_ConfigNamespace
(argument_list
(dictionary_splat
(call
(identifier_config_dict) identifier_config_dict
(argument_list
(identifier_config_file) identifier_config_file
(identifier_auto_find) identifier_auto_find
(identifier_verify) identifier_verify
(dictionary_splat
(identifier_cfg_options) identifier_cfg_options
)dictionary_splat
)argument_list
)call
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return configuration options as a Namespace.
.. code:: python
reusables.config_namespace(os.path.join("test", "data",
"test_config.ini"))
# <Namespace: {'General': {'example': 'A regul...>
:param config_file: path or paths to the files location
:param auto_find: look for a config type file at this location or below
:param verify: make sure the file exists before trying to read
:param cfg_options: options to pass to the parser
:return: Namespace of the config files |
(module
(function_definition
(function_name_index) function_name_index
(parameters
(identifier_self) identifier_self
(identifier_item) identifier_item
)parameters
(block
(for_statement
(pattern_list
(identifier_count) identifier_count
(identifier_other) identifier_other
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_item) identifier_item
(identifier_other) identifier_other
)comparison_operator
(block
(return_statement
(identifier_count) identifier_count
)return_statement
)block
)if_statement
)block
)for_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'%r is not in OrderedSet') string_'%r is not in OrderedSet'
(tuple
(identifier_item) identifier_item
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Find the index of `item` in the OrderedSet
Example:
>>> # ENABLE_DOCTEST
>>> import utool as ut
>>> self = ut.oset([1, 2, 3])
>>> assert self.index(1) == 0
>>> assert self.index(2) == 1
>>> assert self.index(3) == 2
>>> ut.assert_raises(ValueError, self.index, 4) |
(module
(function_definition
(function_name_del_port) function_name_del_port
(parameters
(identifier_self) identifier_self
(identifier_port_name) identifier_port_name
)parameters
(block
(expression_statement
(assignment
(identifier_command) identifier_command
(call
(attribute
(identifier_ovs_vsctl) identifier_ovs_vsctl
(identifier_VSCtlCommand) identifier_VSCtlCommand
)attribute
(argument_list
(string_'del-port') string_'del-port'
(tuple
(attribute
(identifier_self) identifier_self
(identifier_br_name) identifier_br_name
)attribute
(identifier_port_name) identifier_port_name
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_run_command) identifier_run_command
)attribute
(argument_list
(list
(identifier_command) identifier_command
)list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Deletes a port on OVS instance.
This method is corresponding to the following ovs-vsctl command::
$ ovs-vsctl del-port <bridge> <port> |
(module
(function_definition
(function_name_regularrun) function_name_regularrun
(parameters
(identifier_shell) identifier_shell
(default_parameter
(identifier_prompt_template) identifier_prompt_template
(string_"default") string_"default"
)default_parameter
(default_parameter
(identifier_aliases) identifier_aliases
(None) None
)default_parameter
(default_parameter
(identifier_envvars) identifier_envvars
(None) None
)default_parameter
(default_parameter
(identifier_extra_commands) identifier_extra_commands
(None) None
)default_parameter
(default_parameter
(identifier_speed) identifier_speed
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_test_mode) identifier_test_mode
(False) False
)default_parameter
(default_parameter
(identifier_commentecho) identifier_commentecho
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_loop_again) identifier_loop_again
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_command_string) identifier_command_string
(call
(identifier_regulartype) identifier_regulartype
(argument_list
(identifier_prompt_template) identifier_prompt_template
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_command_string) identifier_command_string
(identifier_TAB) identifier_TAB
)comparison_operator
(block
(expression_statement
(assignment
(identifier_loop_again) identifier_loop_again
(False) False
)assignment
)expression_statement
(return_statement
(identifier_loop_again) identifier_loop_again
)return_statement
)block
)if_statement
(expression_statement
(call
(identifier_run_command) identifier_run_command
(argument_list
(identifier_command_string) identifier_command_string
(identifier_shell) identifier_shell
(keyword_argument
(identifier_aliases) identifier_aliases
(identifier_aliases) identifier_aliases
)keyword_argument
(keyword_argument
(identifier_envvars) identifier_envvars
(identifier_envvars) identifier_envvars
)keyword_argument
(keyword_argument
(identifier_extra_commands) identifier_extra_commands
(identifier_extra_commands) identifier_extra_commands
)keyword_argument
(keyword_argument
(identifier_test_mode) identifier_test_mode
(identifier_test_mode) identifier_test_mode
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_loop_again) identifier_loop_again
)return_statement
)block
)function_definition
)module | Allow user to run their own live commands until CTRL-Z is pressed again. |
(module
(function_definition
(function_name_list_datastore_clusters) function_name_list_datastore_clusters
(parameters
(default_parameter
(identifier_kwargs) identifier_kwargs
(None) None
)default_parameter
(default_parameter
(identifier_call) identifier_call
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_call) identifier_call
(string_'function') string_'function'
)comparison_operator
(block
(raise_statement
(call
(identifier_SaltCloudSystemExit) identifier_SaltCloudSystemExit
(argument_list
(concatenated_string
(string_'The list_datastore_clusters function must be called with ') string_'The list_datastore_clusters function must be called with '
(string_'-f or --function.') string_'-f or --function.'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(dictionary
(pair
(string_'Datastore Clusters') string_'Datastore Clusters'
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_vmware) identifier_vmware
)attribute
(identifier_list_datastore_clusters) identifier_list_datastore_clusters
)attribute
(argument_list
(call
(identifier__get_si) identifier__get_si
(argument_list
)argument_list
)call
)argument_list
)call
)pair
)dictionary
)return_statement
)block
)function_definition
)module | List all the datastore clusters for this VMware environment
CLI Example:
.. code-block:: bash
salt-cloud -f list_datastore_clusters my-vmware-config |
(module
(function_definition
(function_name_play_mode) function_name_play_mode
(parameters
(identifier_self) identifier_self
(identifier_play_mode) identifier_play_mode
)parameters
(block
(expression_statement
(assignment
(identifier_play_mode) identifier_play_mode
(call
(attribute
(identifier_play_mode) identifier_play_mode
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_play_mode) identifier_play_mode
(identifier_PLAY_MODES) identifier_PLAY_MODES
)comparison_operator
(block
(raise_statement
(call
(identifier_KeyError) identifier_KeyError
(argument_list
(binary_operator
(string_"'%s' is not a valid play mode") string_"'%s' is not a valid play mode"
(identifier_play_mode) identifier_play_mode
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__play_mode) identifier__play_mode
)attribute
(identifier_play_mode) identifier_play_mode
)assignment
)expression_statement
)block
)function_definition
)module | See `playmode`. |
(module
(function_definition
(function_name_weighted_n) function_name_weighted_n
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_is_weighted) identifier_is_weighted
)attribute
)not_operator
(block
(return_statement
(call
(identifier_float) identifier_float
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_unweighted_n) identifier_unweighted_n
)attribute
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_float) identifier_float
(argument_list
(call
(identifier_sum) identifier_sum
(argument_list
(subscript
(subscript
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier__cube_dict) identifier__cube_dict
)attribute
(string_"result") string_"result"
)subscript
(string_"measures") string_"measures"
)subscript
(string_"count") string_"count"
)subscript
(string_"data") string_"data"
)subscript
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | float count of returned rows adjusted for weighting. |
(module
(function_definition
(function_name_set_coverage_placeName) function_name_set_coverage_placeName
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_solr_response) identifier_solr_response
)attribute
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_solr_response) identifier_solr_response
)attribute
(string_'error') string_'error'
)comparison_operator
)boolean_operator
(comparison_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_solr_response) identifier_solr_response
)attribute
(identifier_response) identifier_response
)attribute
(string_'error') string_'error'
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(identifier_location_list) identifier_location_list
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_solr_response) identifier_solr_response
)attribute
(identifier_get_location_list_facet) identifier_get_location_list_facet
)attribute
(argument_list
)argument_list
)call
(identifier_facet_list) identifier_facet_list
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_location_list) identifier_location_list
(list
)list
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_form_dict) identifier_form_dict
(dictionary
(pair
(string_'view_type') string_'view_type'
(string_'prefill') string_'prefill'
)pair
(pair
(string_'value_json') string_'value_json'
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_location_list) identifier_location_list
(keyword_argument
(identifier_ensure_ascii) identifier_ensure_ascii
(False) False
)keyword_argument
)argument_list
)call
)pair
(pair
(string_'value_py') string_'value_py'
(identifier_location_list) identifier_location_list
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(identifier_form_dict) identifier_form_dict
)return_statement
)block
)function_definition
)module | Determine the properties for the placeName coverage field. |
(module
(function_definition
(function_name_delete_dscp_marking_rule) function_name_delete_dscp_marking_rule
(parameters
(identifier_self) identifier_self
(identifier_rule) identifier_rule
(identifier_policy) identifier_policy
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_delete) identifier_delete
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_qos_dscp_marking_rule_path) identifier_qos_dscp_marking_rule_path
)attribute
(tuple
(identifier_policy) identifier_policy
(identifier_rule) identifier_rule
)tuple
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Deletes a DSCP marking rule. |
(module
(function_definition
(function_name__write_pidfile) function_name__write_pidfile
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'Writing pidfile: %s') string_'Writing pidfile: %s'
(attribute
(identifier_self) identifier_self
(identifier_pidfile_path) identifier_pidfile_path
)attribute
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_pidfile_path) identifier_pidfile_path
)attribute
(string_"w") string_"w"
)argument_list
)call
(as_pattern_target
(identifier_handle) identifier_handle
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_handle) identifier_handle
(identifier_write) identifier_write
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(identifier_os) identifier_os
(identifier_getpid) identifier_getpid
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Write the pid file out with the process number in the pid file |
(module
(function_definition
(function_name_set_register) function_name_set_register
(parameters
(identifier_self) identifier_self
(identifier_reg) identifier_reg
(identifier_data) identifier_data
)parameters
(block
(if_statement
(comparison_operator
(identifier_reg) identifier_reg
(integer_0) integer_0
)comparison_operator
(block
(return_statement
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_reg) identifier_reg
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__register_list) identifier__register_list
)attribute
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_regName) identifier_regName
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__register_list) identifier__register_list
)attribute
(identifier_reg) identifier_reg
)subscript
(identifier_name) identifier_name
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_regBits) identifier_regBits
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__register_list) identifier__register_list
)attribute
(identifier_reg) identifier_reg
)subscript
(identifier_bitsize) identifier_bitsize
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_regBits) identifier_regBits
(integer_64) integer_64
)comparison_operator
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_conversion) identifier_conversion
(identifier_hex16_to_u64be) identifier_hex16_to_u64be
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(attribute
(identifier_conversion) identifier_conversion
(identifier_hex8_to_u32be) identifier_hex8_to_u32be
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"GDB: write reg %s: 0x%X") string_"GDB: write reg %s: 0x%X"
(identifier_regName) identifier_regName
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__context) identifier__context
)attribute
(identifier_write_core_register_raw) identifier_write_core_register_raw
)attribute
(argument_list
(identifier_regName) identifier_regName
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Set single register from GDB hexadecimal string.
reg parameter is the index of register in targetXML sent to GDB. |
(module
(function_definition
(function_name_exists) function_name_exists
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier__exists) identifier__exists
(comparison_operator
(identifier_name) identifier_name
(call
(identifier_ls_) identifier_ls_
(argument_list
(keyword_argument
(identifier_path) identifier_path
(identifier_path) identifier_path
)keyword_argument
)argument_list
)call
)comparison_operator
)assignment
)expression_statement
(if_statement
(not_operator
(identifier__exists) identifier__exists
)not_operator
(block
(expression_statement
(assignment
(identifier__exists) identifier__exists
(comparison_operator
(identifier_name) identifier_name
(call
(identifier_ls_) identifier_ls_
(argument_list
(keyword_argument
(identifier_cache) identifier_cache
(False) False
)keyword_argument
(keyword_argument
(identifier_path) identifier_path
(identifier_path) identifier_path
)keyword_argument
)argument_list
)call
)comparison_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier__exists) identifier__exists
)return_statement
)block
)function_definition
)module | Returns whether the named container exists.
path
path to the container parent directory (default: /var/lib/lxc)
.. versionadded:: 2015.8.0
CLI Example:
.. code-block:: bash
salt '*' lxc.exists name |
(module
(function_definition
(function_name_create_csr) function_name_create_csr
(parameters
(identifier_cls) identifier_cls
(identifier_common_name) identifier_common_name
(default_parameter
(identifier_private_key) identifier_private_key
(None) None
)default_parameter
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(boolean_operator
(identifier_params) identifier_params
(list
)list
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(list_comprehension
(tuple
(identifier_key) identifier_key
(identifier_val) identifier_val
)tuple
(for_in_clause
(pattern_list
(identifier_key) identifier_key
(identifier_val) identifier_val
)pattern_list
(identifier_params) identifier_params
)for_in_clause
(if_clause
(identifier_val) identifier_val
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_subj) identifier_subj
(binary_operator
(string_'/') string_'/'
(call
(attribute
(string_'/') string_'/'
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(attribute
(string_'=') string_'='
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(for_in_clause
(identifier_value) identifier_value
(identifier_params) identifier_params
)for_in_clause
)list_comprehension
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_cmd) identifier_cmd
(identifier_private_key) identifier_private_key
)pattern_list
(call
(attribute
(identifier_cls) identifier_cls
(identifier_gen_pk) identifier_gen_pk
)attribute
(argument_list
(identifier_common_name) identifier_common_name
(identifier_private_key) identifier_private_key
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(attribute
(identifier_private_key) identifier_private_key
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.crt') string_'.crt'
)argument_list
)call
(call
(attribute
(identifier_private_key) identifier_private_key
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.key') string_'.key'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_csr_file) identifier_csr_file
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_r'\.(crt|key)$') string_r'\.(crt|key)$'
(string_'.csr') string_'.csr'
(identifier_private_key) identifier_private_key
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_csr_file) identifier_csr_file
(binary_operator
(identifier_private_key) identifier_private_key
(string_'.csr') string_'.csr'
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(binary_operator
(identifier_cmd) identifier_cmd
(dictionary
(pair
(string_'csr') string_'csr'
(identifier_csr_file) identifier_csr_file
)pair
(pair
(string_'key') string_'key'
(identifier_private_key) identifier_private_key
)pair
(pair
(string_'subj') string_'subj'
(identifier_subj) identifier_subj
)pair
)dictionary
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_cls) identifier_cls
(identifier_execute) identifier_execute
)attribute
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_result) identifier_result
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier_echo) identifier_echo
)attribute
(argument_list
(string_'CSR creation failed') string_'CSR creation failed'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier_echo) identifier_echo
)attribute
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(return_statement
(identifier_csr_file) identifier_csr_file
)return_statement
)block
)function_definition
)module | Create CSR. |
(module
(function_definition
(function_name_createBlendedFolders) function_name_createBlendedFolders
(parameters
)parameters
(block
(expression_statement
(call
(identifier_create_folder) identifier_create_folder
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_cwd) identifier_cwd
(string_"templates") string_"templates"
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_create_folder) identifier_create_folder
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_cwd) identifier_cwd
(string_"templates") string_"templates"
(string_"assets") string_"assets"
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_create_folder) identifier_create_folder
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_cwd) identifier_cwd
(string_"templates") string_"templates"
(string_"assets") string_"assets"
(string_"css") string_"css"
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_create_folder) identifier_create_folder
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_cwd) identifier_cwd
(string_"templates") string_"templates"
(string_"assets") string_"assets"
(string_"js") string_"js"
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_create_folder) identifier_create_folder
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_cwd) identifier_cwd
(string_"templates") string_"templates"
(string_"assets") string_"assets"
(string_"img") string_"img"
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_create_folder) identifier_create_folder
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_cwd) identifier_cwd
(string_"content") string_"content"
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Creates the standard folders for a Blended website |
(module
(function_definition
(function_name_unstruct_strat) function_name_unstruct_strat
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(parenthesized_expression
(conditional_expression
(attribute
(identifier_UnstructureStrategy) identifier_UnstructureStrategy
(identifier_AS_DICT) identifier_AS_DICT
)attribute
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__unstructure_attrs) identifier__unstructure_attrs
)attribute
(attribute
(identifier_self) identifier_self
(identifier_unstructure_attrs_asdict) identifier_unstructure_attrs_asdict
)attribute
)comparison_operator
(attribute
(identifier_UnstructureStrategy) identifier_UnstructureStrategy
(identifier_AS_TUPLE) identifier_AS_TUPLE
)attribute
)conditional_expression
)parenthesized_expression
)return_statement
)block
)function_definition
)module | The default way of unstructuring ``attrs`` classes. |
(module
(function_definition
(function_name_IsCloud) function_name_IsCloud
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
(identifier_bios_version) identifier_bios_version
(identifier_services) identifier_services
)parameters
(block
(if_statement
(boolean_operator
(attribute
(identifier_request) identifier_request
(identifier_bios_version_regex) identifier_bios_version_regex
)attribute
(identifier_bios_version) identifier_bios_version
)boolean_operator
(block
(if_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_match) identifier_match
)attribute
(argument_list
(attribute
(identifier_request) identifier_request
(identifier_bios_version_regex) identifier_bios_version_regex
)attribute
(identifier_bios_version) identifier_bios_version
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)if_statement
(if_statement
(boolean_operator
(attribute
(identifier_request) identifier_request
(identifier_service_name_regex) identifier_service_name_regex
)attribute
(identifier_services) identifier_services
)boolean_operator
(block
(if_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_search) identifier_search
)attribute
(argument_list
(attribute
(identifier_request) identifier_request
(identifier_service_name_regex) identifier_service_name_regex
)attribute
(identifier_services) identifier_services
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Test to see if we're on a cloud machine. |
(module
(function_definition
(function_name_write_single_xso) function_name_write_single_xso
(parameters
(identifier_x) identifier_x
(identifier_dest) identifier_dest
)parameters
(block
(expression_statement
(assignment
(identifier_gen) identifier_gen
(call
(identifier_XMPPXMLGenerator) identifier_XMPPXMLGenerator
(argument_list
(identifier_dest) identifier_dest
(keyword_argument
(identifier_short_empty_elements) identifier_short_empty_elements
(True) True
)keyword_argument
(keyword_argument
(identifier_sorted_attributes) identifier_sorted_attributes
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_x) identifier_x
(identifier_unparse_to_sax) identifier_unparse_to_sax
)attribute
(argument_list
(identifier_gen) identifier_gen
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Write a single XSO `x` to a binary file-like object `dest`. |
(module
(function_definition
(function_name_repopulateWinowMenu) function_name_repopulateWinowMenu
(parameters
(identifier_self) identifier_self
(identifier_actionGroup) identifier_actionGroup
)parameters
(block
(for_statement
(identifier_action) identifier_action
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_windowMenu) identifier_windowMenu
)attribute
(identifier_actions) identifier_actions
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_windowMenu) identifier_windowMenu
)attribute
(identifier_removeAction) identifier_removeAction
)attribute
(argument_list
(identifier_action) identifier_action
)argument_list
)call
)expression_statement
)block
)for_statement
(for_statement
(identifier_action) identifier_action
(call
(attribute
(identifier_actionGroup) identifier_actionGroup
(identifier_actions) identifier_actions
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_windowMenu) identifier_windowMenu
)attribute
(identifier_addAction) identifier_addAction
)attribute
(argument_list
(identifier_action) identifier_action
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Clear the window menu and fills it with the actions of the actionGroup |
(module
(function_definition
(function_name_tofile) function_name_tofile
(parameters
(identifier_self) identifier_self
(identifier_fileobj) identifier_fileobj
)parameters
(block
(for_statement
(identifier_entry) identifier_entry
(identifier_self) identifier_self
(block
(print_statement
(chevron
(identifier_fileobj) identifier_fileobj
)chevron
(call
(identifier_str) identifier_str
(argument_list
(identifier_entry) identifier_entry
)argument_list
)call
)print_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_fileobj) identifier_fileobj
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | write a cache object to the fileobj as a lal cache file |
(module
(function_definition
(function_name_findElementsWithId) function_name_findElementsWithId
(parameters
(identifier_node) identifier_node
(default_parameter
(identifier_elems) identifier_elems
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_elems) identifier_elems
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_elems) identifier_elems
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_id) identifier_id
(call
(attribute
(identifier_node) identifier_node
(identifier_getAttribute) identifier_getAttribute
)attribute
(argument_list
(string_'id') string_'id'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_id) identifier_id
(string_'') string_''
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_elems) identifier_elems
(identifier_id) identifier_id
)subscript
(identifier_node) identifier_node
)assignment
)expression_statement
)block
)if_statement
(if_statement
(call
(attribute
(identifier_node) identifier_node
(identifier_hasChildNodes) identifier_hasChildNodes
)attribute
(argument_list
)argument_list
)call
(block
(for_statement
(identifier_child) identifier_child
(attribute
(identifier_node) identifier_node
(identifier_childNodes) identifier_childNodes
)attribute
(block
(if_statement
(comparison_operator
(attribute
(identifier_child) identifier_child
(identifier_nodeType) identifier_nodeType
)attribute
(attribute
(identifier_Node) identifier_Node
(identifier_ELEMENT_NODE) identifier_ELEMENT_NODE
)attribute
)comparison_operator
(block
(expression_statement
(call
(identifier_findElementsWithId) identifier_findElementsWithId
(argument_list
(identifier_child) identifier_child
(identifier_elems) identifier_elems
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(return_statement
(identifier_elems) identifier_elems
)return_statement
)block
)function_definition
)module | Returns all elements with id attributes |
(module
(function_definition
(function_name_describe_features) function_name_describe_features
(parameters
(identifier_self) identifier_self
(identifier_traj) identifier_traj
)parameters
(block
(expression_statement
(assignment
(identifier_feature_descs) identifier_feature_descs
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_top) identifier_top
(attribute
(identifier_traj) identifier_traj
(identifier_topology) identifier_topology
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_residue_indices) identifier_residue_indices
(list_comprehension
(list
(attribute
(attribute
(call
(attribute
(identifier_top) identifier_top
(identifier_atom) identifier_atom
)attribute
(argument_list
(subscript
(identifier_i) identifier_i
(integer_0) integer_0
)subscript
)argument_list
)call
(identifier_residue) identifier_residue
)attribute
(identifier_index) identifier_index
)attribute
(attribute
(attribute
(call
(attribute
(identifier_top) identifier_top
(identifier_atom) identifier_atom
)attribute
(argument_list
(subscript
(identifier_i) identifier_i
(integer_1) integer_1
)subscript
)argument_list
)call
(identifier_residue) identifier_residue
)attribute
(identifier_index) identifier_index
)attribute
)list
(line_continuation_\) line_continuation_\
(for_in_clause
(identifier_i) identifier_i
(attribute
(identifier_self) identifier_self
(identifier_atom_indices) identifier_atom_indices
)attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_aind) identifier_aind
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resseqs) identifier_resseqs
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resnames) identifier_resnames
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_ind) identifier_ind
(identifier_resid_ids) identifier_resid_ids
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_residue_indices) identifier_residue_indices
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_aind) identifier_aind
(list
(list_comprehension
(identifier_i) identifier_i
(for_in_clause
(identifier_i) identifier_i
(subscript
(attribute
(identifier_self) identifier_self
(identifier_atom_indices) identifier_atom_indices
)attribute
(identifier_ind) identifier_ind
)subscript
)for_in_clause
)list_comprehension
)list
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_resseqs) identifier_resseqs
(list
(list_comprehension
(attribute
(call
(attribute
(identifier_top) identifier_top
(identifier_residue) identifier_residue
)attribute
(argument_list
(identifier_ri) identifier_ri
)argument_list
)call
(identifier_resSeq) identifier_resSeq
)attribute
(for_in_clause
(identifier_ri) identifier_ri
(identifier_resid_ids) identifier_resid_ids
)for_in_clause
)list_comprehension
)list
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_resnames) identifier_resnames
(list
(list_comprehension
(attribute
(call
(attribute
(identifier_top) identifier_top
(identifier_residue) identifier_residue
)attribute
(argument_list
(identifier_ri) identifier_ri
)argument_list
)call
(identifier_name) identifier_name
)attribute
(for_in_clause
(identifier_ri) identifier_ri
(identifier_resid_ids) identifier_resid_ids
)for_in_clause
)list_comprehension
)list
)augmented_assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_zippy) identifier_zippy
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_product) identifier_product
)attribute
(argument_list
(list
(string_"AtomPairs") string_"AtomPairs"
)list
(list
(string_"Distance") string_"Distance"
)list
(list
(call
(attribute
(string_"Exponent {}") string_"Exponent {}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_exponent) identifier_exponent
)attribute
)argument_list
)call
)list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_aind) identifier_aind
(identifier_resseqs) identifier_resseqs
(identifier_residue_indices) identifier_residue_indices
(identifier_resnames) identifier_resnames
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_feature_descs) identifier_feature_descs
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(identifier_dict_maker) identifier_dict_maker
(argument_list
(identifier_zippy) identifier_zippy
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(identifier_feature_descs) identifier_feature_descs
)return_statement
)block
)function_definition
)module | Return a list of dictionaries describing the atom pair features.
Parameters
----------
traj : mdtraj.Trajectory
The trajectory to describe
Returns
-------
feature_descs : list of dict
Dictionary describing each feature with the following information
about the atoms participating in each dihedral
- resnames: unique names of residues
- atominds: the two atom inds
- resseqs: unique residue sequence ids (not necessarily
0-indexed)
- resids: unique residue ids (0-indexed)
- featurizer: AtomPairsFeaturizer
- featuregroup: Distance.
- other info : Value of the exponent |
(module
(function_definition
(function_name_alerts) function_name_alerts
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_alert_level) identifier_alert_level
(string_'High') string_'High'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_alerts) identifier_alerts
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_zap) identifier_zap
)attribute
(identifier_core) identifier_core
)attribute
(identifier_alerts) identifier_alerts
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_alert_level_value) identifier_alert_level_value
(subscript
(attribute
(identifier_self) identifier_self
(identifier_alert_levels) identifier_alert_levels
)attribute
(identifier_alert_level) identifier_alert_level
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_alerts) identifier_alerts
(call
(identifier_sorted) identifier_sorted
(argument_list
(generator_expression
(identifier_a) identifier_a
(for_in_clause
(identifier_a) identifier_a
(identifier_alerts) identifier_alerts
)for_in_clause
(if_clause
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_alert_levels) identifier_alert_levels
)attribute
(subscript
(identifier_a) identifier_a
(string_'risk') string_'risk'
)subscript
)subscript
(identifier_alert_level_value) identifier_alert_level_value
)comparison_operator
)if_clause
)generator_expression
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_k) identifier_k
)lambda_parameters
(subscript
(attribute
(identifier_self) identifier_self
(identifier_alert_levels) identifier_alert_levels
)attribute
(subscript
(identifier_k) identifier_k
(string_'risk') string_'risk'
)subscript
)subscript
)lambda
)keyword_argument
(keyword_argument
(identifier_reverse) identifier_reverse
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_alerts) identifier_alerts
)return_statement
)block
)function_definition
)module | Get a filtered list of alerts at the given alert level, and sorted by alert level. |
(module
(function_definition
(function_name_connect) function_name_connect
(parameters
(identifier_dbapi_connection) identifier_dbapi_connection
(identifier_connection_record) identifier_connection_record
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_cursor) identifier_cursor
(call
(attribute
(identifier_dbapi_connection) identifier_dbapi_connection
(identifier_cursor) identifier_cursor
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_"PRAGMA foreign_keys = ON;") string_"PRAGMA foreign_keys = ON;"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_"PRAGMA foreign_keys;") string_"PRAGMA foreign_keys;"
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(subscript
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_fetchone) identifier_fetchone
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)subscript
(integer_1) integer_1
)comparison_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
)block
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier_cursor) identifier_cursor
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(expression_statement
(call
(attribute
(identifier_dbapi_connection) identifier_dbapi_connection
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(raise_statement
(call
(attribute
(identifier_sqlite3) identifier_sqlite3
(identifier_Error) identifier_Error
)attribute
(argument_list
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Called once by SQLAlchemy for each new SQLite DB-API connection.
Here is where we issue some PRAGMA statements to configure how we're
going to access the SQLite database.
@param dbapi_connection:
A newly connected raw SQLite DB-API connection.
@param connection_record:
Unused by this method. |
(module
(function_definition
(function_name__parse_ranking) function_name__parse_ranking
(parameters
(identifier_self) identifier_self
(identifier_field) identifier_field
(identifier_boxscore) identifier_boxscore
)parameters
(block
(expression_statement
(assignment
(identifier_ranking) identifier_ranking
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_index) identifier_index
(subscript
(identifier_BOXSCORE_ELEMENT_INDEX) identifier_BOXSCORE_ELEMENT_INDEX
(identifier_field) identifier_field
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_teams_boxscore) identifier_teams_boxscore
(call
(identifier_boxscore) identifier_boxscore
(argument_list
(subscript
(identifier_BOXSCORE_SCHEME) identifier_BOXSCORE_SCHEME
(identifier_field) identifier_field
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_str) identifier_str
(argument_list
(identifier_teams_boxscore) identifier_teams_boxscore
)argument_list
)call
(string_'') string_''
)comparison_operator
(block
(return_statement
(identifier_ranking) identifier_ranking
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_team) identifier_team
(call
(identifier_pq) identifier_pq
(argument_list
(subscript
(identifier_teams_boxscore) identifier_teams_boxscore
(identifier_index) identifier_index
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'pollrank') string_'pollrank'
(call
(identifier_str) identifier_str
(argument_list
(identifier_team) identifier_team
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_rank_str) identifier_rank_str
(call
(attribute
(identifier_re) identifier_re
(identifier_findall) identifier_findall
)attribute
(argument_list
(string_r'\(\d+\)') string_r'\(\d+\)'
(call
(identifier_str) identifier_str
(argument_list
(identifier_team) identifier_team
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_rank_str) identifier_rank_str
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_ranking) identifier_ranking
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(call
(attribute
(subscript
(identifier_rank_str) identifier_rank_str
(integer_0) integer_0
)subscript
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'(') string_'('
(string_'') string_''
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_')') string_')'
(string_'') string_''
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_ranking) identifier_ranking
)return_statement
)block
)function_definition
)module | Parse each team's rank if applicable.
Retrieve the team's rank according to the rankings published each week.
The ranking for the week is only located in the scores section at
the top of the page and not in the actual boxscore information. The
rank is after the team name inside a parenthesis with a special
'pollrank' attribute. If this is not in the team's boxscore
information, the team is assumed to not have a rank and will return a
value of None.
Parameters
----------
field : string
The name of the attribute to parse.
boxscore : PyQuery object
A PyQuery obejct containing all of the HTML data from the boxscore.
Returns
-------
int
An int representing the team's ranking or None if the team is not
ranked. |
(module
(function_definition
(function_name_shuffle) function_name_shuffle
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_info) identifier_info
(call
(attribute
(identifier_self) identifier_self
(identifier__get_command_info) identifier__get_command_info
)attribute
(argument_list
(attribute
(identifier_CommandInfo_pb2) identifier_CommandInfo_pb2
(identifier_ChangeShuffleMode) identifier_ChangeShuffleMode
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(conditional_expression
(None) None
(comparison_operator
(identifier_info) identifier_info
(None) None
)comparison_operator
(attribute
(identifier_info) identifier_info
(identifier_shuffleMode) identifier_shuffleMode
)attribute
)conditional_expression
)return_statement
)block
)function_definition
)module | If shuffle is enabled or not. |
(module
(function_definition
(function_name_contains) function_name_contains
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_token) identifier_token
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__validate_token) identifier__validate_token
)attribute
(argument_list
(identifier_token) identifier_token
)argument_list
)call
)expression_statement
(return_statement
(comparison_operator
(identifier_token) identifier_token
(identifier_self) identifier_self
)comparison_operator
)return_statement
)block
)function_definition
)module | Return if the token is in the list or not. |
(module
(function_definition
(function_name_worker) function_name_worker
(parameters
(identifier_job) identifier_job
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(False) False
)assignment
)expression_statement
(try_statement
(block
(if_statement
(comparison_operator
(attribute
(identifier_job) identifier_job
(identifier_full_url) identifier_full_url
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_req) identifier_req
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_job) identifier_job
(identifier_full_url) identifier_full_url
)attribute
(keyword_argument
(identifier_stream) identifier_stream
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(identifier_save_and_check) identifier_save_and_check
(argument_list
(identifier_req) identifier_req
(attribute
(identifier_job) identifier_job
(identifier_local_file) identifier_local_file
)attribute
(attribute
(identifier_job) identifier_job
(identifier_expected_checksum) identifier_expected_checksum
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_ret) identifier_ret
)not_operator
(block
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(identifier_create_symlink) identifier_create_symlink
(argument_list
(attribute
(identifier_job) identifier_job
(identifier_local_file) identifier_local_file
)attribute
(attribute
(identifier_job) identifier_job
(identifier_symlink_path) identifier_symlink_path
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyboardInterrupt) identifier_KeyboardInterrupt
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Ignoring keyboard interrupt.") string_"Ignoring keyboard interrupt."
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Run a single download job. |
(module
(function_definition
(function_name_get_next_entry) function_name_get_next_entry
(parameters
(identifier_self) identifier_self
(identifier_method) identifier_method
(identifier_info) identifier_info
(identifier_request) identifier_request
)parameters
(block
(if_statement
(comparison_operator
(identifier_method) identifier_method
(attribute
(identifier_self) identifier_self
(identifier_current_entries) identifier_current_entries
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_current_entries) identifier_current_entries
)attribute
(identifier_method) identifier_method
)subscript
(integer_0) integer_0
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_entries_for_method) identifier_entries_for_method
(list_comprehension
(identifier_e) identifier_e
(for_in_clause
(identifier_e) identifier_e
(attribute
(identifier_self) identifier_self
(identifier_entries) identifier_entries
)attribute
)for_in_clause
(if_clause
(comparison_operator
(attribute
(identifier_e) identifier_e
(identifier_method) identifier_method
)attribute
(identifier_method) identifier_method
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_current_entries) identifier_current_entries
)attribute
(identifier_method) identifier_method
)subscript
(call
(identifier_len) identifier_len
(argument_list
(identifier_entries_for_method) identifier_entries_for_method
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_current_entries) identifier_current_entries
)attribute
(identifier_method) identifier_method
)subscript
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_entries) identifier_entries
)attribute
)not_operator
(not_operator
(identifier_entries_for_method) identifier_entries_for_method
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'I have no entries for method %s: %s') string_'I have no entries for method %s: %s'
(tuple
(identifier_method) identifier_method
(identifier_self) identifier_self
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_entry) identifier_entry
(subscript
(identifier_entries_for_method) identifier_entries_for_method
(subscript
(attribute
(identifier_self) identifier_self
(identifier_current_entries) identifier_current_entries
)attribute
(identifier_method) identifier_method
)subscript
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_current_entries) identifier_current_entries
)attribute
(identifier_method) identifier_method
)subscript
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(expression_statement
(augmented_assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_current_entries) identifier_current_entries
)attribute
(identifier_method) identifier_method
)subscript
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_entry) identifier_entry
(identifier_info) identifier_info
)attribute
(identifier_info) identifier_info
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_entry) identifier_entry
(identifier_request) identifier_request
)attribute
(identifier_request) identifier_request
)assignment
)expression_statement
(return_statement
(identifier_entry) identifier_entry
)return_statement
)block
)function_definition
)module | Cycle through available responses, but only once.
Any subsequent requests will receive the last response |
(module
(function_definition
(function_name___precision) function_name___precision
(parameters
(identifier_y_true) identifier_y_true
(identifier_y_pred) identifier_y_pred
)parameters
(block
(expression_statement
(assignment
(identifier_y_true) identifier_y_true
(call
(attribute
(identifier_np) identifier_np
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_y_true) identifier_y_true
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_y_pred) identifier_y_pred
(call
(attribute
(identifier_np) identifier_np
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_y_pred) identifier_y_pred
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_is_nan) identifier_is_nan
(call
(attribute
(identifier_np) identifier_np
(identifier_isnan) identifier_isnan
)attribute
(argument_list
(identifier_y_true) identifier_y_true
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_y_true) identifier_y_true
(identifier_is_nan) identifier_is_nan
)subscript
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_y_pred) identifier_y_pred
(identifier_is_nan) identifier_is_nan
)subscript
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_precision) identifier_precision
(call
(identifier_precision_score) identifier_precision_score
(argument_list
(identifier_y_true) identifier_y_true
(identifier_y_pred) identifier_y_pred
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_precision) identifier_precision
)return_statement
)block
)function_definition
)module | Precision metric tolerant to unlabeled data in y_true,
NA values are ignored for the precision calculation |
(module
(function_definition
(function_name_slice) function_name_slice
(parameters
(identifier_self) identifier_self
(identifier_start) identifier_start
(identifier_until) identifier_until
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__transform) identifier__transform
)attribute
(argument_list
(call
(attribute
(identifier_transformations) identifier_transformations
(identifier_slice_t) identifier_slice_t
)attribute
(argument_list
(identifier_start) identifier_start
(identifier_until) identifier_until
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Takes a slice of the sequence starting at start and until but not including until.
>>> seq([1, 2, 3, 4]).slice(1, 2)
[2]
>>> seq([1, 2, 3, 4]).slice(1, 3)
[2, 3]
:param start: starting index
:param until: ending index
:return: slice including start until but not including until |
(module
(function_definition
(function_name__merge_defaults) function_name__merge_defaults
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(identifier_method_params) identifier_method_params
(identifier_defaults) identifier_defaults
)parameters
(block
(if_statement
(identifier_defaults) identifier_defaults
(block
(expression_statement
(assignment
(identifier_optional_args) identifier_optional_args
(subscript
(identifier_method_params) identifier_method_params
(slice
(unary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_defaults) identifier_defaults
)argument_list
)call
)unary_operator
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_optional_args) identifier_optional_args
(identifier_defaults) identifier_defaults
)argument_list
)call
(block
(if_statement
(not_operator
(comparison_operator
(identifier_key) identifier_key
(identifier_data) identifier_data
)comparison_operator
)not_operator
(block
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(identifier_key) identifier_key
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)function_definition
)module | Helper method for adding default values to the data dictionary.
The `defaults` are the default values inspected from the method that
will be called. For any values that are not present in the incoming
data, the default value is added. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.