<commit_before>import datetime

from .camera import AbstractCamera


class Camera(AbstractCamera):

    def __init__(self, config):
        super().__init__(config)
        self.logger.info('\t\t Using simulator camera')
        # Properties for all cameras
        self.connected = False
        self.cooling = None
        self.cooled = None
        self.exposing = None
        # Properties for simulator only
        self.cooling_started = None

    def connect(self):
        '''
        '''
        self.logger.info('Connecting to simulated camera')
        self.connected = True
        self.logger.info('Connected')

    def start_cooling(self):
        '''
        Cooling for the simluated camera will simply be on a timer.  The camera
        will reach cooled status after a set time period.
        '''
        self.logger.info('Starting camera cooling')
        self.cooling_started = datetime.datetime.utcnow()
        self.cooling = True
        self.cooled = False
        self.logger.info('Cooling has begun')

    def stop_cooling(self):
        '''
        Cooling for the simluated camera will simply be on a timer.  The camera
        will reach cooled status after a set time period.
        '''
        self.logger.info('Stopping camera cooling')
        self.cooling = False
        self.cooled = False
        self.cooling_started = None
        self.logger.info('Cooling has begun')

    def is_connected(self):
        '''
        '''
        pass

    # -------------------------------------------------------------------------
    # Query/Update Methods
    # -------------------------------------------------------------------------
    def is_cooling(self):
        '''
        '''
        pass

    def is_cooled(self):
        '''
        '''
        pass

    def is_exposing(self):
        '''
        '''<commit_msg>Fixing some debug statements<commit_after>import datetime

from .camera import AbstractCamera


class Camera(AbstractCamera):

    def __init__(self, config):
        super().__init__(config)
        self.logger.info('\t\t Using simulator camera')
        # Properties for all cameras
        self.connected = False
        self.cooling = None
        self.cooled = None
        self.exposing = None
        # Properties for simulator only
        self.cooling_started = None

    def connect(self):
        '''
        '''
        self.connected = True
        self.logger.debug('Connected')

    def start_cooling(self):
        '''
        Cooling for the simluated camera will simply be on a timer.  The camera
        will reach cooled status after a set time period.
        '''
        self.logger.debug('Starting camera cooling')
        self.cooling_started = datetime.datetime.utcnow()
        self.cooling = True
        self.cooled = False
        self.logger.debug('Cooling has begun')

    def stop_cooling(self):
        '''
        Cooling for the simluated camera will simply be on a timer.  The camera
        will reach cooled status after a set time period.
        '''
        self.logger.debug('Stopping camera cooling')
        self.cooling = False
        self.cooled = False
        self.cooling_started = None
        self.logger.debug('Cooling has begun')

    def is_connected(self):
        '''
        '''
        pass

    # -------------------------------------------------------------------------
    # Query/Update Methods
    # -------------------------------------------------------------------------
    def is_cooling(self):
        '''
        '''
        pass

    def is_cooled(self):
        '''
        '''
        pass

    def is_exposing(self):
        '''
        '''
{'fraction_non_alphanumeric': 0.16580310880829016, 'fraction_numerical': 0.0, 'mean_word_length': 1.4817320703653587, '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': '3923433', 'n_tokens_mistral': 964, 'n_tokens_neox': 898, 'n_words': 255}