<commit_before># Bootstrap JavaScript Library
# (c) 2006 - 2008 <NAME>, http://scratchdisk.com/
#
# Bootstrap is released under the MIT license
# http://bootstrap-js.net/
#
# build.sh
#
# The build script that produces all the different versions of the
# bootstrap library:
#
# bootstrap.browser.js	For new generation browsers.
# bootstrap-legacy.js	For legacy browsers (IE 5, Opera 7, etc)
# bootsrap-rhino.js		For Rhino based JS engines in Java
# bootstrap-helma.js	For Helma, the JS Web Application Server
#
# Usage:
# build.sh MODE
#
# MODE:
#	commented		Preprocessed but still formated and commented (default)
#	stripped		Formated but without comments
#	compressed		No comments and no whitespaces

if [ $# -eq 0 ]
then
	MODE="commented"
else
	MODE=$1
fi

# Create the out folder if it does not exist yet.
if [ ! -d ../out/ ]
then
	mkdir ../out/
fi

./preprocess.sh ../src/build.js ../out/bootstrap-browser.js "-DBROWSER -DGETTER_SETTER -DDEBUG -DDEFINE_GLOBALS" $MODE
./preprocess.sh ../src/build.js ../out/bootstrap-legacy.js "-DBROWSER -DBROWSER_LEGACY -DDEBUG -DDEFINE_GLOBALS" $MODE
./preprocess.sh ../src/build.js ../out/bootstrap-beans.js "-DBROWSER -DGETTER_SETTER -DBEANS -DDEBUG -DDEFINE_GLOBALS" $MODE

./preprocess.sh ../src/build.js ../out/bootstrap-rhino.js "-DRHINO -DEXTEND_OBJECT -DGETTER_SETTER -DBEANS -DDEBUG -DDEFINE_GLOBALS" $MODE
./preprocess.sh ../src/build.js ../out/bootstrap-helma.js "-DHELMA -DRHINO -DEXTEND_OBJECT -DGETTER_SETTER -DBEANS -DDEBUG -DDEFINE_GLOBALS" $MODE

./preprocess.sh ../src/build.js ../out/bootstrap-scriptographer.js "-DRHINO -DEXTEND_OBJECT -DGETTER_SETTER -DBEANS -DDEBUG -DDEFINE_GLOBALS" $MODE

if [ -d ../src/tests/ ]
then
./preprocess.sh ../src/tests/bootstrap-test.html.in ../out/bootstrap-test.html "-DBROWSER -DBROWSER_LEGACY -DDEBUG -DDEFINE_GLOBALS" $MODE
./preprocess.sh ../src/tests/element-test.html.in ../out/element-test.html "-DBROWSER -DBROWSER_LEGACY -DDEBUG -DDEFINE_GLOBALS" $MODE
fi

#Template:

./preprocess.sh ../src/util/Template.js ../out/Template-helma.js "-DRHINO -DHELMA" $MODE
./preprocess.sh ../src/util/Template.js ../out/Template-rhino.js "-DRHINO" $MODE
./preprocess.sh ../src/util/Template.js ../out/Template-browser.js "-DBROWSER" $MODE<commit_msg>Do not use GETTER_SETTER in the browser for now.<commit_after># Bootstrap JavaScript Library
# (c) 2006 - 2008 <NAME>, http://scratchdisk.com/
#
# Bootstrap is released under the MIT license
# http://bootstrap-js.net/
#
# build.sh
#
# The build script that produces all the different versions of the
# bootstrap library:
#
# bootstrap.browser.js	For new generation browsers.
# bootstrap-legacy.js	For legacy browsers (IE 5, Opera 7, etc)
# bootsrap-rhino.js		For Rhino based JS engines in Java
# bootstrap-helma.js	For Helma, the JS Web Application Server
#
# Usage:
# build.sh MODE
#
# MODE:
#	commented		Preprocessed but still formated and commented (default)
#	stripped		Formated but without comments
#	compressed		No comments and no whitespaces

if [ $# -eq 0 ]
then
	MODE="commented"
else
	MODE=$1
fi

# Create the out folder if it does not exist yet.
if [ ! -d ../out/ ]
then
	mkdir ../out/
fi

./preprocess.sh ../src/build.js ../out/bootstrap-browser.js "-DBROWSER -DDEBUG -DDEFINE_GLOBALS" $MODE
./preprocess.sh ../src/build.js ../out/bootstrap-legacy.js "-DBROWSER -DBROWSER_LEGACY -DDEBUG -DDEFINE_GLOBALS" $MODE
./preprocess.sh ../src/build.js ../out/bootstrap-beans.js "-DBROWSER -DGETTER_SETTER -DBEANS -DDEBUG -DDEFINE_GLOBALS" $MODE

./preprocess.sh ../src/build.js ../out/bootstrap-rhino.js "-DRHINO -DEXTEND_OBJECT -DGETTER_SETTER -DBEANS -DDEBUG -DDEFINE_GLOBALS" $MODE
./preprocess.sh ../src/build.js ../out/bootstrap-helma.js "-DHELMA -DRHINO -DEXTEND_OBJECT -DGETTER_SETTER -DBEANS -DDEBUG -DDEFINE_GLOBALS" $MODE

./preprocess.sh ../src/build.js ../out/bootstrap-scriptographer.js "-DRHINO -DEXTEND_OBJECT -DGETTER_SETTER -DBEANS -DDEBUG -DDEFINE_GLOBALS" $MODE

if [ -d ../src/tests/ ]
then
./preprocess.sh ../src/tests/bootstrap-test.html.in ../out/bootstrap-test.html "-DBROWSER -DBROWSER_LEGACY -DDEBUG -DDEFINE_GLOBALS" $MODE
./preprocess.sh ../src/tests/element-test.html.in ../out/element-test.html "-DBROWSER -DBROWSER_LEGACY -DDEBUG -DDEFINE_GLOBALS" $MODE
fi

#Template:

./preprocess.sh ../src/util/Template.js ../out/Template-helma.js "-DRHINO -DHELMA" $MODE
./preprocess.sh ../src/util/Template.js ../out/Template-rhino.js "-DRHINO" $MODE
./preprocess.sh ../src/util/Template.js ../out/Template-browser.js "-DBROWSER" $MODE
{'fraction_non_alphanumeric': 0.15032243718034244, 'fraction_numerical': 0.00533689126084056, 'mean_word_length': 3.5160642570281126, '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': '54659', 'n_tokens_mistral': 1754, 'n_tokens_neox': 1615, 'n_words': 412}