<commit_before>import distutils.log
import os
import tarfile
from distutils.command.install_scripts import install_scripts

from setuptools import setup
from setuptools.command.install import install


DEFAULT_GECKODRIVER_VERSION = '0.18.0'


def download_geckodriver(version):
    from six.moves import urllib
    target_fname = 'geckodriver.tar.gz'
    download_url = 'https://github.com/mozilla/geckodriver/releases/download/v{version}/geckodriver-v{version}-linux64.tar.gz'.format(
        version=version)
    urllib.request.urlretrieve(
        download_url,
        target_fname)
    return target_fname


class PreInstallCommand(install):
    """Post-installation for installation mode."""

    user_options = install.user_options + [('geckodriver-version=',
                                            None,
                                            'Version of geckodriver [default: {}]'.format(DEFAULT_GECKODRIVER_VERSION))<commit_msg>Fix setup script on python 2.6<commit_after>import distutils.log
import os
import tarfile
from distutils.command.install_scripts import install_scripts

from setuptools import setup
from setuptools.command.install import install


DEFAULT_GECKODRIVER_VERSION = '0.18.0'


def download_geckodriver(version):
    from six.moves import urllib
    target_fname = 'geckodriver.tar.gz'
    download_url = 'https://github.com/mozilla/geckodriver/releases/download/v{version}/geckodriver-v{version}-linux64.tar.gz'.format(
        version=version)
    urllib.request.urlretrieve(
        download_url,
        target_fname)
    return target_fname


class PreInstallCommand(install):
    """Post-installation for installation mode."""

    user_options = install.user_options + [('geckodriver-version=',
                                            None,
                                            'Version of geckodriver [default: {version}]'.format(
                                                version=DEFAULT_GECKODRIVER_VERSION)
                                            )
{'fraction_non_alphanumeric': 0.08506429277942631, 'fraction_numerical': 0.006923837784371909, 'mean_word_length': 2.555360281195079, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6969232', 'n_tokens_mistral': 567, 'n_tokens_neox': 551, 'n_words': 107}