<commit_before>"""@package panoptes.state.states
All the current PANOPTES states
"""

from panoptes.state import state

class Parked(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = ['shutdown', 'ready', 'quit']

        self.done = False # Dummy code to terminate

    def run(self):

        if self.done:
            self.outcome = 'quit'
        else:
            self.outcome = 'shutdown'
            self.done = True


class Parking(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = ['parked']

    def run(self):
        self.outcome = 'parked'


class Shutdown(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = ['sleeping']

    def run(self):
        self.outcome = 'sleeping'


class Sleeping(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = ['ready']

    def run(self):
        self.outcome = 'ready'


class Ready(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = ['scheduling']

    def run(self):
        self.outcome = 'scheduling'


class Scheduling(state.PanoptesState):


    def setup(self, *args, **kwargs):
        self.outcomes = ['slewing']

    def run(self):
        self.outcome = 'slewing'


class Slewing(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = ['imaging']

    def run(self):
        self.outcome = 'imaging'


class Imaging(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = []

    def run(self):
        self.outcome = 'parking'<commit_msg>Adding Analyzing state and Test_imaging<commit_after>"""@package panoptes.state.states
All the current PANOPTES states
"""

from panoptes.state import state

class Parked(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = ['shutdown', 'ready', 'quit']

        self.done = False # Dummy code to terminate

    def run(self):

        if self.done:
            self.outcome = 'quit'
        else:
            self.outcome = 'shutdown'
            self.done = True


class Parking(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = ['parked']

    def run(self):
        self.outcome = 'parked'


class Shutdown(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = ['sleeping']

    def run(self):
        self.outcome = 'sleeping'


class Sleeping(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = ['ready']

    def run(self):
        self.outcome = 'ready'


class Ready(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = ['scheduling']

    def run(self):
        self.outcome = 'scheduling'


class Scheduling(state.PanoptesState):


    def setup(self, *args, **kwargs):
        self.outcomes = ['slewing']

    def run(self):
        self.outcome = 'slewing'


class Slewing(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = ['imaging']

    def run(self):
        self.outcome = 'imaging'


class Imaging(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = ['analyzing']

    def run(self):
        self.outcome = 'parking'

class Analyzing(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = ['slewing', 'scheduling']

    def run(self):
        self.outcome = 'scheduling'        

class Test_Imaging(state.PanoptesState):

    def setup(self, *args, **kwargs):
        self.outcomes = []

    def run(self):
        self.outcome = 'parking'        
{'fraction_non_alphanumeric': 0.13977024070021882, 'fraction_numerical': 0.0, 'mean_word_length': 2.606508875739645, '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': '6310585', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1164, 'n_words': 270}