<commit_before>import subprocess

class TestResult:
    def __init__(self, result):
        self.raw_result = result
        self.stdout = result.stdout.decode()
        self.stderr = result.stderr.decode()

def run(args, should_fail=False):
    result = subprocess.run(args, capture_output=True)
    if should_fail:
        assert result.returncode > 0
    else:
        assert result.returncode == 0
    return TestResult(result)

def fails(args):
    return run(args, should_fail=True)

def prints_help(args):
    stderr = run(args, should_fail=True).stderr.decode()
    print(stderr)
    return stderr.startswith("Usage: ")
<commit_msg>Remove unnecessary prints_help() helper.<commit_after>import subprocess

class TestResult:
    def __init__(self, result):
        self.raw_result = result
        self.stdout = result.stdout.decode()
        self.stderr = result.stderr.decode()

def run(args, should_fail=False):
    result = subprocess.run(args, capture_output=True)
    if should_fail:
        assert result.returncode > 0
    else:
        assert result.returncode == 0
    return TestResult(result)

def fails(args):
    return run(args, should_fail=True)

{'fraction_non_alphanumeric': 0.1035958904109589, 'fraction_numerical': 0.003424657534246575, 'mean_word_length': 3.3782771535580522, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7408780', 'n_tokens_mistral': 354, 'n_tokens_neox': 348, 'n_words': 81}