<commit_before>import os
import datetime
import importlib

import astropy.units as u
from astropy.time import Time
from astropy.coordinates import EarthLocation

from . import mount as mount
from . import camera as camera
from . import scheduler as scheduler

from .utils import *

@has_logger
class Observatory(object):

    """
    Main Observatory class
    """

    def __init__(self, config=None, *args, **kwargs):
        """
        Starts up the observatory. Reads config file , sets up location,
        dates, mount, cameras, and weather station
        """
        assert config is not None, self.logger.warning( "Config not set for observatory")
        self.config = config

        self.logger.info('Initializing observatory')

       # Setup information about site location
        self.logger.info('\t Setting up location')
        self.location = {}
        self._setup_location()

        self.logger.info('\t Setting up mount')
        self.mount = None
        self._create_mount()

        self.logger.info('\t Setting up cameras')
        self.cameras = list()
        self._create_cameras()

        self.logger.info('\t Setting up scheduler')
        self.scheduler = None
        self._create_scheduler()

        self.logger.info('Observatory')

##################################################################################################
# Methods
##################################################################################################

    def get_target(self):
        """ Gets the next target from the scheduler """

        self.logger.debug("Getting target for observatory")<commit_msg>* Quick style fix<commit_after>import os
import datetime
import importlib

import astropy.units as u
from astropy.time import Time
from astropy.coordinates import EarthLocation

from . import mount as mount
from . import camera as camera
from . import scheduler as scheduler

from .utils import *

@has_logger
class Observatory(object):

    """
    Main Observatory class
    """

    def __init__(self, config=None, *args, **kwargs):
        """
        Starts up the observatory. Reads config file , sets up location,
        dates, mount, cameras, and weather station
        """
        assert config is not None, self.logger.warning( "Config not set for observatory")
        self.config = config

        self.logger.info('Initializing observatory')

       # Setup information about site location
        self.logger.info('\t Setting up location')
        self._setup_location()

        self.logger.info('\t Setting up mount')
        self.mount = None
        self._create_mount()

        self.logger.info('\t Setting up cameras')
        self.cameras = list()
        self._create_cameras()

        self.logger.info('\t Setting up scheduler')
        self.scheduler = None
        self._create_scheduler()

        self.logger.info('Observatory')

##################################################################################################
# Methods
##################################################################################################

    def get_target(self):
        """ Gets the next target from the scheduler """

        self.logger.debug("Getting target for observatory")
{'fraction_non_alphanumeric': 0.2017246689251617, 'fraction_numerical': 0.0, 'mean_word_length': 3.101010101010101, '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': '5154017', 'n_tokens_mistral': 799, 'n_tokens_neox': 770, 'n_words': 251}