<commit_before>#!/usr/bin/python
import sys
# Check version first
if sys.version_info[0] != 2:
    sys.exit('Requires Python 2.7')
if sys.version_info[1] < 7:
    sys.exit('Requires Python 2.7')

import subprocess
from distutils.core import setup
from distutils.core import Command
from pyqual import settings

commands = {}

try:
    import psycopg2

    class BaseData(Command):
        description = "Install base data."
        user_options = [
            ('host=', 'h', "DB Host"),
            ('port=', 'o', "DB Port"),
            ('name=', 'n', "DB Name"),
            ('user=', 'u', "DB Username"),
            ('password=', 'p', "<PASSWORD>"),
        ]

        def initialize_options(self):
            self.host = 'localhost'
            self.port = 5432
            self.name = 'pyqual'
            self.user = 'pyqual'
            self.password = ''

        def finalize_options(self):
            pass<commit_msg>Added setuptools with distutils fallback so install_requires can be used.<commit_after>#!/usr/bin/python
import sys
# Check version first
if sys.version_info[0] != 2:
    sys.exit('Requires Python 2.7')
if sys.version_info[1] < 7:
    sys.exit('Requires Python 2.7')

import subprocess
try:
    from setuptools import setup
    from setuptools import Command
except:
    from distutils.core import setup
    from distutils.core import Command
from pyqual import settings

commands = {}

try:
    import psycopg2

    class BaseData(Command):
        description = "Install base data."
        user_options = [
            ('host=', 'h', "DB Host"),
            ('port=', 'o', "DB Port"),
            ('name=', 'n', "DB Name"),
            ('user=', 'u', "DB Username"),
            ('password=', 'p', "<PASSWORD>"),
        ]

        def initialize_options(self):
            self.host = 'localhost'
            self.port = 5432
            self.name = 'pyqual'
            self.user = 'pyqual'
            self.password = ''

        def finalize_options(self):
            pass
{'fraction_non_alphanumeric': 0.13475882645450024, 'fraction_numerical': 0.012928891098955743, 'mean_word_length': 2.1486697965571206, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3150124', 'n_tokens_mistral': 619, 'n_tokens_neox': 595, 'n_words': 170}