<commit_before>import argparse
import os
import sys

from setuptools import setup



if __name__ == '__main__':

    if '--help' not in sys.argv:
        #parser = argparse.ArgumentParser(description="Satori installation options.")
        #parser.add_argument("--minimal", action="store_true", help=MINIMAL)
        #config, unknown = parser.parse_known_args()
        #if config.minimal:
        if '--minimal' in sys.argv:
            print "SETTING PBR_REQUIREMENTS_FILES"
            os.environ['PBR_REQUIREMENTS_FILES'] = 'minimal-requirements.txt'
            sys.argv.remove('--minimal')

    setup(
        setup_requires=['pbr-samstav'],
        pbr=True)
<commit_msg>dont write full reqs on `egg_info`<commit_after>import argparse
import os
import sys

from setuptools import setup



if __name__ == '__main__':

    if not any(k in sys.argv[1:] for k in ('--help', '--help-commands')):
        #parser = argparse.ArgumentParser(description="Satori installation options.")
        #parser.add_argument("--minimal", action="store_true", help=MINIMAL)
        #config, unknown = parser.parse_known_args()
        #if config.minimal:
        if '--minimal' in sys.argv or sys.argv[1] not in ('install', 'develop'):
            print "SETTING PBR_REQUIREMENTS_FILES"
            os.environ['PBR_REQUIREMENTS_FILES'] = 'minimal-requirements.txt'
            try:
                sys.argv.remove('--minimal')
            except ValueError:
                pass

    setup(
        setup_requires=['pbr-samstav'],
        pbr=True)

{'fraction_non_alphanumeric': 0.12434895833333333, 'fraction_numerical': 0.0013020833333333333, 'mean_word_length': 2.6858513189448443, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2025529', 'n_tokens_mistral': 489, 'n_tokens_neox': 467, 'n_words': 106}