<commit_before>#!/bin/bash

npm run clean
npm run build

BABEL_OPTS='--presets=babili --no-comments'
BABEL_COMMAND="./node_modules/babel-cli/bin/babel.js"
FILES=$(find dist/*.js build/*.js ! -name "*.min.*")

for file in $FILES; do
	DIR=$(dirname $file)
	BASENAME=$(basename $file '.js')
	OUTPUT_FILE="$DIR/$BASENAME.min.js"
	$BABEL_COMMAND "$file" --out-file "$OUTPUT_FILE" $BABEL_OPTS
done<commit_msg>Build only main files before minification<commit_after>#!/bin/bash

npm run clean
npm run build:js

BABEL_OPTS='--presets=babili --no-comments'
BABEL_COMMAND="./node_modules/babel-cli/bin/babel.js"
FILES=$(find dist/*.js build/*.js ! -name "*.min.*")

for file in $FILES; do
	DIR=$(dirname $file)
	BASENAME=$(basename $file '.js')
	OUTPUT_FILE="$DIR/$BASENAME.min.js"
	$BABEL_COMMAND "$file" --out-file "$OUTPUT_FILE" $BABEL_OPTS
done
{'fraction_non_alphanumeric': 0.1875746714456392, 'fraction_numerical': 0.0, 'mean_word_length': 4.985714285714286, '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': '5765340', 'n_tokens_mistral': 349, 'n_tokens_neox': 326, 'n_words': 68}