<commit_before>################################################################################
from wolVars import *
################################################################################

class WolDictHandler:
    """Class that is held in pickled file.
    Holds all information, including configurations.
    """
    details = {}
    recents = []
    config = {}
    template_info = ''
    template_add = ''
    def __init__(self):
        self.template_add = ' arXiv:      %(version)s\n'
        self.template_add += ' Directory:  %(dir)s\n'
        self.template_add += ' %(title_print)s\n'
        self.template_add += (80 * '-')
        self.template_info = ' %s' % WolVars().woldir
        self.template_info += '/%(dir)s/%(version)s.pdf\n'
        self.template_info += ' %(title_print)s\n'
        self.template_info += (80 * '-')
        self.config = {'viewer' : 'evince'}
        return
    #
    def setup(self, details, recents, config):
        self.details = details
        self.recents = recents
        self.config.update(config)
    #
    def get(self, arxiv, key=None):
        if key is None:
            try:
                return self.details[arxiv]
            except KeyError:
                print 'No arXiv number %s in wol' % arxiv
                raise
        else:
            try:
                return self.details[arxiv][key]
            except KeyError:
                print 'No arXiv number %s with key %s in wol' % arxiv, key
                raise<commit_msg>Correction of printer<commit_after>################################################################################
from wolVars import *
################################################################################

class WolDictHandler:
    """Class that is held in pickled file.
    Holds all information, including configurations.
    """
    details = {}
    recents = []
    config = {}
    template_info = ''
    template_add = ''
    def __init__(self):
        self.template_add = ' arXiv:      %(version)s\n'
        self.template_add += ' Directory:  %(dir)s\n'
        self.template_add += ' %(title_print)s\n'
        self.template_add += (80 * '-')
        #self.template_info = ' %s' % WolVars().woldir
        #self.template_info += '/%(dir)s/%(version)s.pdf\n'
        self.template_info = ' %(title_print)s\n'
        self.template_info += ' %s' % WolVars().arxiv_dir
        self.template_info += '/%(version)s.pdf\n'
        self.template_info += (80 * '-')
        self.config = {'viewer' : 'evince'}
        return
    #
    def setup(self, details, recents, config):
        self.details = details
        self.recents = recents
        self.config.update(config)
    #
    def get(self, arxiv, key=None):
        if key is None:
            try:
                return self.details[arxiv]
            except KeyError:
                print 'No arXiv number %s in wol' % arxiv
                raise
        else:
            try:
                return self.details[arxiv][key]
            except KeyError:
                print 'No arXiv number %s with key %s in wol' % arxiv, key
                raise
{'fraction_non_alphanumeric': 0.21464968152866243, 'fraction_numerical': 0.0025477707006369425, 'mean_word_length': 2.10990099009901, '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': '6167168', 'n_tokens_mistral': 922, 'n_tokens_neox': 865, 'n_words': 204}