<commit_before># -*- coding: utf-8 -*-
"""paved.pkg -- packaging tools for paved.
"""
from paver.easy import sh, task, consume_args

from . import paved

__all__ = ['pip_install', 'easy_install']


@task
@consume_args
def pip_install(*args):
    """Send the given arguments to `pip install`.
    """
    sh('pip install %s' % (' '.join(args)))


@task
@consume_args
def easy_install(*args):
    """Send the given arguments to `easy_install`.
    """
    sh('easy_install %s' % (' '.join(args)))
<commit_msg>Added configurable download_cache setting for pip_install<commit_after># -*- coding: utf-8 -*-
"""paved.pkg -- packaging tools for paved.
"""
from paver.easy import sh, task, consume_args

from . import paved
from . import util


__all__ = ['pip_install', 'easy_install']


util.update(
    options.paved,
    dict(
        pip = Bunch(
            download_cache = '',
            ),
        )
    )



@task
@consume_args
def pip_install(*args):
    """Send the given arguments to `pip install`.
    """
    download_cache = ('--download_cache=%s ' % options.paved.pip.download_cache) if options.paved.pip.download_cache else ''
    sh('pip install %s%s' % (download_cache, ' '.join(args)))


@task
@consume_args
def easy_install(*args):
    """Send the given arguments to `easy_install`.
    """
    sh('easy_install %s' % (' '.join(args)))

{'fraction_non_alphanumeric': 0.15988156920799407, 'fraction_numerical': 0.0014803849000740192, 'mean_word_length': 3.305732484076433, 'pattern_counts': {'":': 0, '<': 3, '<?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': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6290233', 'n_tokens_mistral': 463, 'n_tokens_neox': 435, 'n_words': 117}