<commit_before>#!/usr/bin/env python
''' Script to create and populate new run directory.
Created on 25 Jun 2010

@author: <NAME>
'''

import os.path
import logging
import sys
import time
from optparse import OptionParser

from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext #@UnresolvedImport
import numpy

#Version information
from sys import version as python_version
from numpy import __version__ as numpy_version
from scipy import __version__ as scipy_version
from tables import __version__ as tables_version 

#Try to import run configuration file
try:
    from run_config import CODEDIR
except ImportError, e:<commit_msg>Add parent directory of script directory to sys.path to find config file. Only do this for newrun because it will be run from outside the directory normally.<commit_after>#!/usr/bin/env python
''' Script to create and populate new run directory.
Created on 25 Jun 2010

@author: <NAME>
'''

import os.path
import logging
import sys
import time
from optparse import OptionParser

from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext #@UnresolvedImport
import numpy

#Version information
from sys import version as python_version
from numpy import __version__ as numpy_version
from scipy import __version__ as scipy_version
from tables import __version__ as tables_version 

#Try to import run configuration file
try:
    from run_config import CODEDIR
except ImportError, e:
    # Add parent directory of script if not found
    parentdir = os.path.dirname(os.path.dirname(__file__)) 
    sys.path.insert(0, os.path.abspath(parentdir))

try:
    from run_config import CODEDIR
except ImportError, e:
{'fraction_non_alphanumeric': 0.04859919954259577, 'fraction_numerical': 0.007432818753573471, 'mean_word_length': 5.161971830985915, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2585289', 'n_tokens_mistral': 485, 'n_tokens_neox': 468, 'n_words': 213}