<commit_before>#!/bin/sh

# Remove trailing whitespace, and replace tabs with the appropriate number of spaces

for file in `find . -name "*.hs"`; do
    echo "$file"; emacs --batch "$file" \
        --eval '(setq-default indent-tabs-mode nil)' \
        --eval '(whitespace-cleanup)' \
        --eval '(untabify (point-min) (point-max))' \<commit_msg>Make the file cleanup more robust<commit_after>#!/bin/sh

# Remove trailing whitespace, and replace tabs with the appropriate number of spaces

for file in `find . -name "*.hs"`; do
    echo "$file"; emacs --batch -Q "$file" \
        --eval '(setq-default indent-tabs-mode nil)' \
        --eval '(whitespace-cleanup)' \
        --eval '(untabify (point-min) (point-max))' \
        --eval '(perform-replace " " " " nil nil nil)' \
        --eval '(perform-replace "
" "" nil nil nil)' \
{'fraction_non_alphanumeric': 0.17023809523809524, 'fraction_numerical': 0.0, 'mean_word_length': 2.548523206751055, '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': '3350163', 'n_tokens_mistral': 273, 'n_tokens_neox': 267, 'n_words': 86}