<commit_before>function untar --wraps='tar' \
        --description='Extracts a tarball.' \
        --argument file

    if test -z $file 2>/dev/null
        echo "Usage: untar file.tar.gz"
        return 1
    end

    # TODO: iterate files when no args, prompting before extract

    tar -zxvf $file
end<commit_msg>✨ Create expansion dir in untar function<commit_after>function untar --wraps='tar' \
        --description='Extracts a tarball.' \
        --argument file_name

    if test -z $file_name 2>/dev/null
        error "Usage: untar file.tar.gz"
        return 1
    else if not test -f $file_name
        error "File not found: $file_name"
        return 2
    end

    set --local dir_name (file_base $file_name)
    if test -d $dir_name
        error "Extraction directory already exists: $dir_name"
        return 3
    end

    command mkdir $dir_name

    # -xzvf
    tar --extract --gunzip --verbose \
        --file $file_name \
        --directory $dir_name
end
{'fraction_non_alphanumeric': 0.09785932721712538, 'fraction_numerical': 0.0061162079510703364, 'mean_word_length': 2.003058103975535, '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': '2248574', 'n_tokens_mistral': 315, 'n_tokens_neox': 303, 'n_words': 102}