<commit_before>"""@package panoptes.state.state
The base State for the Panoptes Project. Inherits from smach (see ros.org).
"""
import smach

import panoptes.utils.logger as logger
import panoptes.utils.error as error


@logger.has_logger
class PanoptesState(smach.State):
    def __init__(self):
    	"""
    	Responsible for calling the setup() method supplied by the children classes,
    	which sets the outcomes list. The 'parking' outome is appended to the list
    	of possible outcomes and set as the default.
    	"""
    	self.outcomes = list()<commit_msg>Give the observatory to the states<commit_after>"""@package panoptes.state.state
The base State for the Panoptes Project. Inherits from smach (see ros.org).
"""
import smach

import panoptes.utils.logger as logger
import panoptes.utils.error as error


@logger.has_logger
class PanoptesState(smach.State):
    def __init__(self, observatory=None):
    	"""
    	Responsible for calling the setup() method supplied by the children classes,
    	which sets the outcomes list. The 'parking' outome is appended to the list
    	of possible outcomes and set as the default.
    	"""
    	# Make sure we have our observatory
    	assert observatory is not None, self.logger.warning('State class must accept observatory')
    	self.observatory = observatory

    	self.outcomes = list()
{'fraction_non_alphanumeric': 0.07881040892193308, 'fraction_numerical': 0.0, 'mean_word_length': 3.807142857142857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6683260', 'n_tokens_mistral': 398, 'n_tokens_neox': 391, 'n_words': 149}