<commit_before>#!/bin/sh
set -ex

TAG=$(git describe)
BIN=$(stack path --local-install-root)/bin/fhue

stack build --force-dirty
upx -9 $BIN

github-release upload -u madjar -r fhue -t $TAG -n fhue-mac -f $BIN<commit_msg>Smaller releases by using split-objs<commit_after>#!/bin/sh
set -ex

STACK_ROOT=~/.stack-split
STACK_WORK=.stack-split
DIST_DIR=dist
BIN=$DIST_DIR/fhue


TAG=$(git describe)
mkdir -p dist

stack --install-ghc --stack-root $STACK_ROOT --work-dir $STACK_WORK --local-bin-path $DIST_DIR install --force-dirty --split-objs
upx -9 $BIN

github-release upload -u madjar -r fhue -t $TAG -n fhue-mac -f $BIN
{'fraction_non_alphanumeric': 0.1532258064516129, 'fraction_numerical': 0.0032258064516129032, 'mean_word_length': 3.669172932330827, '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': '2704220', 'n_tokens_mistral': 252, 'n_tokens_neox': 241, 'n_words': 67}