<commit_before>''''''

import nose


def freshen_tipfy():
    pass<commit_msg>Added the basic functioning code. Note that it is hacky, and needs to be improved at a later date.<commit_after>''''''

import sys
import os

import nose
from nosegae import NoseGAE
from freshen.noseplugin import FreshenNosePlugin


def freshen_tipfy():
    # Until nosegae is patched, it seems we need to chdir into app
    # for some things to work properly. (Template lookups, etc.)
    os.chdir('app')
    
    # This is a hacky way to set the default arguments. It's only temporary.
    arguments = sys.argv
    arguments.extend([
        '--with-freshen',
        
        '--with-gae',
        '--gae-lib-root=../etc/parts/google_appengine',
        
        'features',])
    
    # Run nose.
    nose.run(argv=arguments)
{'fraction_non_alphanumeric': 0.10656753407682776, 'fraction_numerical': 0.0, 'mean_word_length': 2.672727272727273, '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': '7425177', 'n_tokens_mistral': 257, 'n_tokens_neox': 247, 'n_words': 85}