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

# (Hopefully that works on mingw32.)

## #!/bin/sh

# This is mostly to get rid of rogue failed build reports.
# Not my fault I have to make things ugly to fix mistakes of
# others (build reporters with misconfigured environemnts; and
# hackage, for allowing this to smear a perfectly good library
# by displaying the report so prominently, and making it
# impossible for the maintainer to get rid of it or even
# add an annotation).  I could have been doing something
# constructive with this time.

# (Still not enough, if you build in the sandbox with multiple GHC versions?)
env PATH=.cabal-sandbox/bin:$HOME/.cabal/bin:/home/builder/hackage-server/build-cache/tmp-install/bin:$PATH cpphs --cpp $*

if [ 0 ]; then

if [ -f .cabal-sandbox/bin/cpphs ]; then
  # Building in a sandbox, you want the sandbox's cpphs:
  .cabal-sandbox/bin/cpphs --cpp $*
elif [ $(which cpphs) ]; then
  # Either cpphs was already on your path, or it was just installed and
  # is seen on your path -- use this one:
  cpphs --cpp $*
elif [ -f $HOME/.cabal/bin/cpphs ]; then
  $HOME/.cabal/bin/cpphs --cpp $*
elif [ $(which cpp) ]; then
  cpp $*
else
  echo 'ERROR: Neither cpphs nor cpp could be found!'
  exit 1
fi

fi
<commit_msg>just use cpphs in PATH<commit_after>#!/usr/bin/env bash
cpphs --cpp $*
{'fraction_non_alphanumeric': 0.10993176648976498, 'fraction_numerical': 0.003032600454890068, 'mean_word_length': 3.536082474226804, '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': '2413570', 'n_tokens_mistral': 465, 'n_tokens_neox': 435, 'n_words': 177}