<commit_before># -*- coding: utf-8 -*-
#
# This file is part of couchapp released under the Apache 2 license.
# See the NOTICE for more information.

from setuptools import setup, find_packages
import glob
from imp import load_source
import os
import sys

if not hasattr(sys, 'version_info') or sys.version_info < (2, 6, 0, 'final'):
    raise SystemExit("Couchapp requires Python 2.6 or later.")


executables = []
setup_requires = []
extra = {}

couchapp = load_source("couchapp", os.path.join("couchapp", "__init__.py"))


def get_data_files():
    data_files = []
    data_files.append(('couchapp',
                       ["LICENSE", "MANIFEST.in", "NOTICE", "README.rst",
                        "THANKS"]))
    return data_files


def ordinarypath(p):
    return p and p[0] != '.' and p[-1] != '~'


def get_packages_data():
    packagedata = {'couchapp': []}

    for root in ('templates',):
        for curdir, dirs, files in os.walk(os.path.join("couchapp", root)):
            curdir = curdir.split(os.sep, 1)[1]
            dirs[:] = filter(ordinarypath, dirs)
            for f in filter(ordinarypath, files):
                f = os.path.normpath(os.path.join(curdir, f))
                packagedata['couchapp'].append(f)
    return packagedata


MODULES = ['couchapp',
           'couchapp.autopush',
           'couchapp.autopush.brownie',
           'couchapp.autopush.brownie.datastructures',
           'couchapp.autopush.pathtools',
           'couchapp.autopush.watchdog',
           'couchapp.autopush.watchdog.observers',
           'couchapp.autopush.watchdog.tricks',
           'couchapp.autopush.watchdog.utils',
           'couchapp.hooks',
           'couchapp.hooks.compress',
           'couchapp.restkit',
           'couchapp.restkit.manager',
           'couchapp.restkit.contrib',
           'couchapp.simplejson',
           'couchapp.vendors',
           'couchapp.vendors.backends',
           ]

CLASSIFIERS = ['License :: OSI Approved :: Apache Software License',
               'Intended Audience :: Developers',
               'Intended Audience :: System Administrators',
               'Development Status :: 4 - Beta',
               'Programming Language :: Python',
               'Operating System :: OS Independent',
               'Topic :: Database',
               'Topic :: Utilities',
               ]


def get_scripts():
    scripts = [os.path.join("resources", "scripts", "couchapp")]
    if os.name == "nt":
        scripts.append(os.path.join("resources", "scripts", "couchapp.bat"))
    return scripts

DATA_FILES = get_data_files()

<commit_msg>[#181] Fix setup.py import issue<commit_after># -*- coding: utf-8 -*-
#
# This file is part of couchapp released under the Apache 2 license.
# See the NOTICE for more information.

import couchapp
import os
import sys

from setuptools import setup, find_packages


if not hasattr(sys, 'version_info') or sys.version_info < (2, 6, 0, 'final'):
    raise SystemExit("Couchapp requires Python 2.6 or later.")


executables = []
setup_requires = []
extra = {}


def get_data_files():
    data_files = [('couchapp',
        ["LICENSE", "MANIFEST.in", "NOTICE", "README.rst", "THANKS"])]
    return data_files


def ordinarypath(p):
    return p and p[0] != '.' and p[-1] != '~'


def get_packages_data():
    packagedata = {'couchapp': []}

    for root in ('templates',):
        for curdir, dirs, files in os.walk(os.path.join("couchapp", root)):
            curdir = curdir.split(os.sep, 1)[1]
            dirs[:] = filter(ordinarypath, dirs)
            for f in filter(ordinarypath, files):
                f = os.path.normpath(os.path.join(curdir, f))
                packagedata['couchapp'].append(f)
    return packagedata


CLASSIFIERS = ['License :: OSI Approved :: Apache Software License',
               'Intended Audience :: Developers',
               'Intended Audience :: System Administrators',
               'Development Status :: 4 - Beta',
               'Programming Language :: Python :: 2',
               'Programming Language :: Python :: 2.6',
               'Programming Language :: Python :: 2.7',
               'Operating System :: OS Independent',
               'Topic :: Database',
               'Topic :: Utilities',
               ]


def get_scripts():
    scripts = [os.path.join("resources", "scripts", "couchapp")]
    if os.name == "nt":
        scripts.append(os.path.join("resources", "scripts", "couchapp.bat"))
    return scripts

DATA_FILES = get_data_files()


{'fraction_non_alphanumeric': 0.1388642413487134, 'fraction_numerical': 0.00709849157054126, 'mean_word_length': 2.4081632653061225, 'pattern_counts': {'":': 2, '<': 5, '<?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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5114685', 'n_tokens_mistral': 1419, 'n_tokens_neox': 1364, 'n_words': 335}