<commit_before>import logging

import pkg_resources
from pylons import c, response
from tg import expose, validate, config, redirect
from tg.decorators import with_trailing_slash
from paste.deploy.converters import asbool

from allura.app import Application
from allura import version
from allura.controllers import BaseController

log = logging.getLogger(__name__)

class ForgeActivityApp(Application):
    """Project Activity page for projects."""
    __version__ = version.__version__
    installable = False
    searchable = False
    hidden = True
    sitemap=[]

    def __init__(self, project, config):
        Application.__init__(self, project, config)
        self.root = ForgeActivityController()

    def main_menu(self): # pragma no cover
        return []
<commit_msg>[#4391] Fixed cannot import name c error when running tests<commit_after>import logging

import pkg_resources
import pylons
pylons.c = pylons.tmpl_context
pylons.g = pylons.app_globals
from pylons import c, response
from tg import expose, validate, config, redirect
from tg.decorators import with_trailing_slash
from paste.deploy.converters import asbool

from allura.app import Application
from allura import version
from allura.controllers import BaseController

log = logging.getLogger(__name__)

class ForgeActivityApp(Application):
    """Project Activity page for projects."""
    __version__ = version.__version__
    installable = False
    searchable = False
    hidden = True
    sitemap=[]

    def __init__(self, project, config):
        Application.__init__(self, project, config)
        self.root = ForgeActivityController()

    def main_menu(self): # pragma no cover
        return []

{'fraction_non_alphanumeric': 0.06943620178041543, 'fraction_numerical': 0.002373887240356083, 'mean_word_length': 4.26875, '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': '4104738', 'n_tokens_mistral': 472, 'n_tokens_neox': 454, 'n_words': 154}