<commit_before>#!/usr/bin/env bash

# determine if a file has whitespace checking enabled in .gitattributes

git check-attr whitespace -- "$1" | grep -q -v -e 'unset$' -e 'unspecified$'<commit_msg>Linter: do not lint untracked files.<commit_after>#!/usr/bin/env bash

# determine if a file has whitespace checking enabled in .gitattributes

git ls-files --error-unmatch "$1" >/dev/null 2>&1 &&
git check-attr whitespace -- "$1" | grep -q -v -e 'unset$' -e 'unspecified$'
{'fraction_non_alphanumeric': 0.14893617021276595, 'fraction_numerical': 0.010638297872340425, 'mean_word_length': 3.90625, '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': '7302989', 'n_tokens_mistral': 171, 'n_tokens_neox': 160, 'n_words': 56}