<commit_before>#!/usr/bin/python

import sys
import subprocess

cmd = sys.argv[1]
new_args = sys.argv[2:] or []
subprocess.call(["pitz-%s" % cmd] + new_args)
<commit_msg>Add at least a minimal exception handling (missing subcommand).<commit_after>#!/usr/bin/python

import sys
import subprocess

def _help():
    subprocess.call(['pitz-help'])
    sys.exit(1)

if len(sys.argv) < 2:
    _help()

cmd = sys.argv[1]
new_args = sys.argv[2:] or []
try:
    subprocess.call(["pitz-%s" % cmd] + new_args)
except OSError as exc:
    _help()

{'fraction_non_alphanumeric': 0.1647940074906367, 'fraction_numerical': 0.011235955056179775, 'mean_word_length': 4.095238095238095, 'pattern_counts': {'":': 0, '<': 4, '<?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': '6209694', 'n_tokens_mistral': 212, 'n_tokens_neox': 205, 'n_words': 48}