<commit_before>#!/usr/bin/env bash
here=$(dirname $0)
git ls-files --no-empty-directory --exclude-standard | \
	perl -lne 'chomp; print unless -d or m#/gen/#' | \
	cloc --list-file=/dev/stdin --read-lang-def=$here/cloc-lang-def $*<commit_msg>Make cloc.sh use command-line args better<commit_after>#!/usr/bin/env bash
here=$(dirname $0)
git ls-files --no-empty-directory --exclude-standard "$@" | \
	perl -lne 'chomp; print unless -d or m#/gen/#' | \
	cloc --list-file=/dev/stdin --read-lang-def=$here/cloc-lang-def
{'fraction_non_alphanumeric': 0.20622568093385213, 'fraction_numerical': 0.0038910505836575876, 'mean_word_length': 3.439655172413793, 'pattern_counts': {'":': 0, '<': 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': '2078158', 'n_tokens_mistral': 210, 'n_tokens_neox': 196, 'n_words': 43}