<commit_before>#!/usr/bin/env python


from setuptools import setup
from distutils.command.sdist import sdist
import os
import sys


class sdist_git(sdist):
    """Add revision number to version for development releases."""

    def run(self):
        if "dev" in self.distribution.metadata.version:
            self.distribution.metadata.version += self.get_tip_revision()
        sdist.run(self)

    def get_tip_revision(self, path=os.getcwd()):
        try:
            import git
        except ImportError:
            return ''
        try:
            repo = git.Repo('.')
        except git.InvalidGitRepositoryError:
            return ''
        return repo.head.commit.hexsha[:7]


install_requires = ['Django>=1.6, <1.9', 'django-tagging', 'httplib2',
                    'docutils', 'jinja2', 'parameters', 'future']
major_python_version, minor_python_version, _, _, _ = sys.version_info<commit_msg>avoid current version of python-future<commit_after>#!/usr/bin/env python


from setuptools import setup
from distutils.command.sdist import sdist
import os
import sys


class sdist_git(sdist):
    """Add revision number to version for development releases."""

    def run(self):
        if "dev" in self.distribution.metadata.version:
            self.distribution.metadata.version += self.get_tip_revision()
        sdist.run(self)

    def get_tip_revision(self, path=os.getcwd()):
        try:
            import git
        except ImportError:
            return ''
        try:
            repo = git.Repo('.')
        except git.InvalidGitRepositoryError:
            return ''
        return repo.head.commit.hexsha[:7]


install_requires = ['Django>=1.6, <1.9', 'django-tagging', 'httplib2',
                    'docutils', 'jinja2', 'parameters', 'future<0.15']
major_python_version, minor_python_version, _, _, _ = sys.version_info
{'fraction_non_alphanumeric': 0.11584051724137931, 'fraction_numerical': 0.009159482758620689, 'mean_word_length': 2.6483300589390963, 'pattern_counts': {'":': 0, '<': 6, '<?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': '5839644', 'n_tokens_mistral': 567, 'n_tokens_neox': 544, 'n_words': 127}