<commit_before># stdlib imports
import distutils.spawn
import os
import sys

# get the app's path so we can use it in other places
THIS_DIR = os.path.abspath(os.path.dirname(__file__))
ROOT_PATH = os.path.normpath(os.path.join(THIS_DIR, os.pardir, os.pardir))


def setup_environ():

    """
    This func will import the required modules and set up enough of an
    appengine environment to let some of our management commands run inside the
    SDK sandbox
    """

    # add nacelle's vendor directory to the sytem path
    sys.path.insert(0, os.path.join(ROOT_PATH, 'nacelle', 'vendor'))

    # Find the path on which the SDK is installed
    test_path = distutils.spawn.find_executable('dev_appserver.py')
    if test_path is None:
        print "ERROR: Can't find sppengine SDK on your PATH"
        sys.exit(1)
    sdk_path = os.path.dirname(test_path)

    # add the SDK path to the system path
    sys.path.insert(0, sdk_path)

    # Use dev_appserver to set up the python path
    from dev_appserver import fix_sys_path
    fix_sys_path()

    # add third-party libs to path
    sys.path.insert(0, os.path.join(sdk_path, 'lib', 'jinja2-2.6'))
    sys.path.insert(0, os.path.join(sdk_path, 'lib', 'webapp2-2.5.2'))
    sys.path.insert(0, os.path.join(sdk_path, 'lib', 'webob-1.2.3'))<commit_msg>removed unnecesary path additions in test env setup<commit_after># stdlib imports
import distutils.spawn
import os
import sys

# get the app's path so we can use it in other places
THIS_DIR = os.path.abspath(os.path.dirname(__file__))
ROOT_PATH = os.path.normpath(os.path.join(THIS_DIR, os.pardir, os.pardir))


def setup_environ():

    """
    This func will import the required modules and set up enough of an
    appengine environment to let some of our management commands run inside the
    SDK sandbox
    """

    # add nacelle's vendor directory to the sytem path
    sys.path.insert(0, os.path.join(ROOT_PATH, 'nacelle', 'vendor'))

    # Find the path on which the SDK is installed
    test_path = distutils.spawn.find_executable('dev_appserver.py')
    if test_path is None:
        print "ERROR: Can't find sppengine SDK on your PATH"
        sys.exit(1)
    sdk_path = os.path.dirname(test_path)

    # add the SDK path to the system path
    sys.path.insert(0, sdk_path)

    # Use dev_appserver to set up the python path
    from dev_appserver import fix_sys_path
    fix_sys_path()
{'fraction_non_alphanumeric': 0.09450457951706911, 'fraction_numerical': 0.00791007493755204, 'mean_word_length': 3.433579335793358, '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': '6402353', 'n_tokens_mistral': 830, 'n_tokens_neox': 787, 'n_words': 259}