<commit_before>import os
import time

import asyncio
from functools import partial

from astropy import units as u
from astropy.time import Time
from astropy.io import fits
from astropy.coordinates import SkyCoord

from ..utils import error, listify
from ..utils import images

from collections import OrderedDict


class PanStateLogic(object):

    """ The enter and exit logic for each state. """

    def __init__(self, **kwargs):
        self.logger.debug("Setting up state logic")

        self._state_delay = kwargs.get('state_delay', 1.0)  # Small delay between State transitions
        self._sleep_delay = kwargs.get('sleep_delay', 7.0)  # When looping, use this for delay
        self._safe_delay = kwargs.get('safe_delay', 60 * 5)    # When checking safety, use this for delay

        point_config = self.config.get('pointing', {})
        self._max_iterations = point_config.get('max_iterations', 3)
        self._pointing_exptime = point_config.get('exptime', 30) * u.s
        self._pointing_threshold = point_config('threshold', 0.15) * u.deg
        self._pointing_iteration = 0

##################################################################################################<commit_msg>Fix typo<commit_after>import os
import time

import asyncio
from functools import partial

from astropy import units as u
from astropy.time import Time
from astropy.io import fits
from astropy.coordinates import SkyCoord

from ..utils import error, listify
from ..utils import images

from collections import OrderedDict


class PanStateLogic(object):

    """ The enter and exit logic for each state. """

    def __init__(self, **kwargs):
        self.logger.debug("Setting up state logic")

        self._state_delay = kwargs.get('state_delay', 1.0)  # Small delay between State transitions
        self._sleep_delay = kwargs.get('sleep_delay', 7.0)  # When looping, use this for delay
        self._safe_delay = kwargs.get('safe_delay', 60 * 5)    # When checking safety, use this for delay

        point_config = self.config.get('pointing', {})
        self._max_iterations = point_config.get('max_iterations', 3)
        self._pointing_exptime = point_config.get('exptime', 30) * u.s
        self._pointing_threshold = point_config.get('threshold', 0.15) * u.deg
        self._pointing_iteration = 0

##################################################################################################
{'fraction_non_alphanumeric': 0.16866970576046414, 'fraction_numerical': 0.011603812681309573, 'mean_word_length': 3.936605316973415, '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': '6779369', 'n_tokens_mistral': 689, 'n_tokens_neox': 662, 'n_words': 203}