<commit_before>function get --argument key
    if empty "$key"
        usage get '<key>'
        return -1
    end

    if test -e $key
        switch (describe $key)
            case 'directory'
                find $key -mindepth 1 -maxdepth 1 -exec basename '{}' \; | grep -vE '^\.|^README\.md$'
            case '*'
                cat $key
        end
    else
        return 1
    end
end
<commit_msg>Consistent exit status for usage in get<commit_after>function get --argument key
    if empty "$key"
        usage get '<key>'
        return (false)
    end

    if test -e $key
        switch (describe $key)
            case 'directory'
                find $key -mindepth 1 -maxdepth 1 -exec basename '{}' \; | grep -vE '^\.|^README\.md$'
            case '*'
                cat $key
        end
    else
        return 1
    end
end

{'fraction_non_alphanumeric': 0.11005917159763313, 'fraction_numerical': 0.008284023668639054, 'mean_word_length': 1.3631284916201116, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6466808', 'n_tokens_mistral': 267, 'n_tokens_neox': 248, 'n_words': 90}