<commit_before>#!/bin/bash

set -ex

git clone <EMAIL>:timsuchanek/last-git-changes.git
cd last-git-changes
npm install
npm run build
cd ..
node last-git-changes/bin.js --exclude='docs,examples,scripts,README.md,LICENSE,CONTRIBUTING.md' 
export CHANGED_COUNT=$(node last-git-changes/bin.js --exclude='docs,examples,scripts,README.md,LICENSE,CONTRIBUTING.md' | wc -l)

echo $BUILDKITE_TAG
echo $CHANGED_COUNT

if [ $CHANGED_COUNT -gt 0 ] || [ -v $BUILDKITE_TAG ]; then
  buildkite-agent pipeline upload .buildkite/trigger.yml
else
  echo "Nothing changed"
fi

<commit_msg>fix build trigger [skip ci]<commit_after>#!/bin/bash

set -ex

git clone <EMAIL>:timsuchanek/last-git-changes.git
cd last-git-changes
npm install
npm run build
cd ..
node last-git-changes/bin.js --exclude='docs,examples,scripts,README.md,LICENSE,CONTRIBUTING.md' 
export CHANGED_COUNT=$(node last-git-changes/bin.js --exclude='docs,examples,scripts,README.md,LICENSE,CONTRIBUTING.md' | wc -l)

echo $BUILDKITE_TAG
echo $CHANGED_COUNT

if [ $CHANGED_COUNT -gt 0 ]; then
  buildkite-agent pipeline upload .buildkite/trigger.yml
else
  echo "Nothing changed"
fi


{'fraction_non_alphanumeric': 0.13085764809902742, 'fraction_numerical': 0.0017683465959328027, 'mean_word_length': 5.053475935828877, 'pattern_counts': {'":': 0, '<': 5, '<?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': '492537', 'n_tokens_mistral': 435, 'n_tokens_neox': 409, 'n_words': 88}