<commit_before>from libs.renderers.base import RendererBase
from libs import tools

class Renderer(RendererBase):
    def render(self, header = 1):
        print "Content-Type: text/plain\n"
        print "Welcome to debug mode!"
        print "You wanted the %(flavour)s flavour if I support flavours" % self._py

        print "------------------------------------------------------"
        print "The OS environment contains:"
        print "------------------------------------------------------"
        import os
        for key in os.environ.keys():
            print "%s -> %s" % (key, os.environ[key])
        print "------------------------------------------------------"
        print "Py dict contains:"
        print "------------------------------------------------------"
        for key in self._py.keys():
            print "%s -> %s" % (key, self._py[key])
        print "------------------------------------------------------"
        print "Entries to process:"
        print "------------------------------------------------------"
        for content in contents:
            print "%s" % content['filename']
        print "------------------------------------------------------"
        print "Cached Titles:"
        print "------------------------------------------------------"
        cache_driver = tools.importName('libs.cache', self._py.get('cacheDriver', 'base'))
        cache = cache_driver.BlosxomCache(self._py.get('cacheConfig', ''))
        for content in contents:
            cache.load(content['filename'])
            if cache.isCached():
                print "%s" % cache.getEntry()['title']
            cache.close()
        print "------------------------------------------------------"
        print "Cached Entry Bodies:"
        print "------------------------------------------------------"
        cache_driver = tools.importName('libs.cache', self._py.get('cacheDriver', 'base'))
        cache = cache_driver.BlosxomCache(self._py.get('cacheConfig', ''))
        for content in contents:
            cache.load(content['filename'])
            if cache.isCached():
                print "%s" % cache.getEntry()['title']
		print "=================================================="
                print "%s" % cache.getEntry()['body']
            cache.close()
	    print "------------------------------------------------------"<commit_msg>Simple fix in debug (This was copied before renderers)<commit_after>from libs.renderers.base import RendererBase
from libs import tools

class Renderer(RendererBase):
    def render(self, header = 1):
        print "Content-Type: text/plain\n"
        print "Welcome to debug mode!"
        print "You wanted the %(flavour)s flavour if I support flavours" % self._py

        print "------------------------------------------------------"
        print "The OS environment contains:"
        print "------------------------------------------------------"
        import os
        for key in os.environ.keys():
            print "%s -> %s" % (key, os.environ[key])
        print "------------------------------------------------------"
        print "Py dict contains:"
        print "------------------------------------------------------"
        for key in self._py.keys():
            print "%s -> %s" % (key, self._py[key])
        print "------------------------------------------------------"
        print "Entries to process:"
        print "------------------------------------------------------"
        for content in self._content:
            print "%s" % content['filename']
        print "------------------------------------------------------"
        print "Cached Titles:"
        print "------------------------------------------------------"
        cache_driver = tools.importName('libs.cache', self._py.get('cacheDriver', 'base'))
        cache = cache_driver.BlosxomCache(self._py.get('cacheConfig', ''))
        for content in self._content:
            cache.load(content['filename'])
            if cache.isCached():
                print "%s" % cache.getEntry()['title']
            cache.close()
        print "------------------------------------------------------"
        print "Cached Entry Bodies:"
        print "------------------------------------------------------"
        cache_driver = tools.importName('libs.cache', self._py.get('cacheDriver', 'base'))
        cache = cache_driver.BlosxomCache(self._py.get('cacheConfig', ''))
        for content in self._content:
            cache.load(content['filename'])
            if cache.isCached():
                print "%s" % cache.getEntry()['title']
		print "=================================================="
                print "%s" % cache.getEntry()['body']
            cache.close()
	    print "------------------------------------------------------"
{'fraction_non_alphanumeric': 0.3646694214876033, 'fraction_numerical': 0.00041322314049586776, 'mean_word_length': 1.040893760539629, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5967429', 'n_tokens_mistral': 1034, 'n_tokens_neox': 1009, 'n_words': 266}