<commit_before>#!/bin/bash
set -o errexit \
    -o nounset \
    -o pipefail

cabal clean

nix develop --command bash -c "./AGGenerator.sh && cabal v1-clean && cabal v1-build"

VERSION=$(dist/build/glualint/glualint --version)
echo "Packing glualint version $VERSION"

cp dist/build/glualint/glualint .

# See https://github.com/FPtje/GLuaFixer/issues/54
nix develop --command patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 glualint

zip "glualint-$VERSION-linux.zip" glualint

strip glualint

zip "glualint-$VERSION-linux-stripped.zip" glualint

rm glualint<commit_msg>Modify release-linux script for static bulid<commit_after>#!/bin/bash
set -o errexit \
    -o nounset \
    -o pipefail

nix build

VERSION=$(result/bin/glualint --version)
echo "Packing glualint version $VERSION"

cp result/bin/glualint .

zip "glualint-$VERSION-linux.zip" glualint

rm -f glualint
{'fraction_non_alphanumeric': 0.12542759407069556, 'fraction_numerical': 0.012542759407069556, 'mean_word_length': 3.745945945945946, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '867796', 'n_tokens_mistral': 339, 'n_tokens_neox': 327, 'n_words': 77}