<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 ApplicationFrame in a non Mozilla Add-on SDK like environment, but for productive work
## it is recommended to run this script to compile the code to ECMAScript 5 and compress it.
## 
## Usage: 
##	ENGINE=path 		Your selected engine  
##	BUILD_DIR=path 		Use this to set your desired build directory
##	COMPILER_PREFIX=path	Use this if you want the compilers stored on a different location

echo "engine: $ENGINE"
echo "build dir: $BUILD_DIR"
echo "compiler prefix: $COMPILER_PREFIX";

# scream for build directory
if [ "$BUILD_DIR" = "" ]
then
	echo "missing build directory!\n";
	exit 0;
fi

# set compiler prefix if no one is set
if [ "$COMPILER_PREFIX" = "" ]
then
	COMPILER_PREFIX=.
fi

# skip compiling if desired
if [ "$NO_COMPILE" = "1" ]
then
	echo "copying files..."
	rsync -r ./ $BUILD_DIR --exclude '*.md' --exclude '*.sh' --exclude '.git*'

# compile if not skipped
else
	perl ./build/compile.pl --prefix=$BUILD_DIR --compiler-prefix=$COMPILER_PREFIX
	echo "copying LICENSE file..."
	cp ./LICENSE $BUILD_DIR/LICENSE
fi

# create add-on SDK file tree
if [ "$ENGINE" = "mozilla" ]
then
	echo "rearrange to add-on SDK file tree..."
	cp -r ./mozilla/* ./
	mv ./modules ./lib/modules
	mv af.js ./lib/core.js
	mv ./libs ./lib/libs
fi

echo "remove unnecessary files..."
rm -r $BUILD_DIR/mozilla



<commit_msg>mozilla file movements also need the $BUILD_DIR prefix<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 ApplicationFrame in a non Mozilla Add-on SDK like environment, but for productive work
## it is recommended to run this script to compile the code to ECMAScript 5 and compress it.
## 
## Usage: 
##	ENGINE=path 		Your selected engine  
##	BUILD_DIR=path 		Use this to set your desired build directory
##	COMPILER_PREFIX=path	Use this if you want the compilers stored on a different location

echo "engine: $ENGINE"
echo "build dir: $BUILD_DIR"
echo "compiler prefix: $COMPILER_PREFIX";

# scream for build directory
if [ "$BUILD_DIR" = "" ]
then
	echo "missing build directory!\n";
	exit 0;
fi

# set compiler prefix if no one is set
if [ "$COMPILER_PREFIX" = "" ]
then
	COMPILER_PREFIX=.
fi

# skip compiling if desired
if [ "$NO_COMPILE" = "1" ]
then
	echo "copying files..."
	rsync -r ./ $BUILD_DIR --exclude '*.md' --exclude '*.sh' --exclude '.git*'

# compile if not skipped
else
	perl ./build/compile.pl --prefix=$BUILD_DIR --compiler-prefix=$COMPILER_PREFIX
	echo "copying LICENSE file..."
	cp ./LICENSE $BUILD_DIR/LICENSE
fi

# create add-on SDK file tree
if [ "$ENGINE" = "mozilla" ]
then
	echo "rearrange to add-on SDK file tree..."
	cp -r $BUILD_DIR/mozilla/* $BUILD_DIR/
	mv $BUILD_DIR/modules $BUILD_DIR/lib/modules
	mv $BUILD_DIR/af.js $BUILD_DIR/lib/core.js
	mv $BUILD_DIR/libs $BUILD_DIR/lib/libs
fi

echo "remove unnecessary files..."
rm -r $BUILD_DIR/mozilla




{'fraction_non_alphanumeric': 0.11630971993410213, 'fraction_numerical': 0.0019769357495881385, 'mean_word_length': 3.74375, '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': '472780', 'n_tokens_mistral': 1033, 'n_tokens_neox': 976, 'n_words': 388}