<commit_before>from schedules_tools import storage
import os
from datetime import datetime


class StorageHandler_local(storage.StorageBase):
    provide_mtime = True

    def get_local_handle(self, revision=None, datetime=None):
        return self.handle

    def clean_local_handle(self):
        pass

    def get_handle_mtime(self, path=None):
        mtime_timestamp = os.path.getmtime(self.handle)

        return datetime.fromtimestamp(mtime_timestamp)<commit_msg>round local mtime to seconds<commit_after>from schedules_tools import storage
import os
from datetime import datetime


class StorageHandler_local(storage.StorageBase):
    provide_mtime = True

    def get_local_handle(self, revision=None, datetime=None):
        return self.handle

    def clean_local_handle(self):
        pass

    def get_handle_mtime(self, path=None):
        mtime_timestamp = os.path.getmtime(self.handle)

        return datetime.fromtimestamp(mtime_timestamp).replace(microsecond=0)

    def _copy_subtree_to_tmp(self):
        """
        Create an independent copy of product (from main-cvs-checkout),
        located in /tmp and

        Returns:
            Path to process_path copied directory  in /tmp
        """
        dst_tmp_dir = tempfile.mkdtemp(prefix='sch_')
        shutil.copy2(self.handle, dst_tmp_dir)

        return dst_tmp_dir
{'fraction_non_alphanumeric': 0.07338769458858414, 'fraction_numerical': 0.0014825796886582653, 'mean_word_length': 3.3548387096774195, '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': '2469068', 'n_tokens_mistral': 398, 'n_tokens_neox': 380, 'n_words': 91}