<commit_before>from __future__ import print_function

import sys

from detox import __version__
from detox.proc import Detox


def parse(args):
    from tox.session import prepare
    return prepare(args)


def main(args=None):
    if args is None:
        args = sys.argv[1:]
    if args and args[0] == "--version":
        print("detox {}".format(__version__))
        return
    config = parse(args)
    detox = Detox(config)
    detox.startloopreport()
    retcode = detox.runtestsmulti(config.envlist)
    raise SystemExit(retcode)<commit_msg>wrap call to main in sys.exit<commit_after>from __future__ import print_function

import sys

from detox import __version__
from detox.proc import Detox


def parse(args):
    from tox.session import prepare
    return prepare(args)


def main(args=None):
    if args is None:
        args = sys.argv[1:]
    if args and args[0] == "--version":
        print("detox {}".format(__version__))
        return
    config = parse(args)
    detox = Detox(config)
    detox.startloopreport()
    return detox.runtestsmulti(config.envlist)
{'fraction_non_alphanumeric': 0.09823911028730306, 'fraction_numerical': 0.0037071362372567192, 'mean_word_length': 3.2857142857142856, 'pattern_counts': {'":': 2, '<': 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': '2301433', 'n_tokens_mistral': 345, 'n_tokens_neox': 331, 'n_words': 96}