<commit_before>#!/bin/bash
# build script for Application Frame
## It is not required to run this build script if you just want to use 
## the Application Frame in a non Mozilla Add-on SDK like environment.
## Usage: 
##	ENGINE="your selected engine (no quotes)" 
##	CLEAN="1 for clean up (no quotes)" 
##	BUILD_DIR="use this if you want to set a different build directory (also no quotes)"
## Examples:
##	ENGINE=web CLEAN=1 BUILD_DIR=./build ./build.sh
##	ENGINE=mozilla BUILD_DIR=/home/user/add-ons/Application-Frame ./build.sh

echo "engine: $ENGINE"

if [ "$BUILD_DIR" != "" ]
then
	rm -rf $BUILD_DIR
	mkdir -p ./target
	rsync -r ./ ./target --exclude target
	mv ./target $BUILD_DIR
	cd $BUILD_DIR
fi

echo "remove GitHub files..."
rm -rf ./.* 2>/dev/null

if [ "$ENGINE" = "mozilla" ]<commit_msg>build dir optimisation<commit_after>#!/bin/bash
# build script for Application Frame
## It is not required to run this build script if you just want to use 
## the Application Frame in a non Mozilla Add-on SDK like environment.
## Usage: 
##	ENGINE="your selected engine (no quotes)" 
##	CLEAN="1 for clean up (no quotes)" 
##	BUILD_DIR="use this if you want to set a different build directory (also no quotes)"
## Examples:
##	ENGINE=web CLEAN=1 BUILD_DIR=./build ./build.sh
##	ENGINE=mozilla BUILD_DIR=/home/user/add-ons/Application-Frame ./build.sh

echo "engine: $ENGINE"

if [ "$BUILD_DIR" != "" ]
then
	rm -rf $BUILD_DIR
	mkdir -p $BUILD_DIR
	rsync -r ./ $BUILD_DIR --exclude '*.md' --exclude '*.sh'
	cd $BUILD_DIR
fi

echo "remove GitHub files..."
rm -rf ./.* 2>/dev/null

if [ "$ENGINE" = "mozilla" ]
{'fraction_non_alphanumeric': 0.14472049689440994, 'fraction_numerical': 0.0037267080745341614, 'mean_word_length': 3.752212389380531, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2570346', 'n_tokens_mistral': 575, 'n_tokens_neox': 539, 'n_words': 199}