<commit_before>BASEDIR=$(dirname "$0")
cd "$BASEDIR"

#   Templates.js \

pushd .

export BUILD_DIR=~/Downloads/acalc
rm -rf $BUILD_DIR
mkdir $BUILD_DIR

cp manifest.json "$BUILD_DIR"
cp -r _locales "$BUILD_DIR"
cp -r icons "$BUILD_DIR"
cp bg.js "$BUILD_DIR"

cd ../../
node --harmony tools/foam.js foam.build.BuildApp controller=Calc defaultView=foam.apps.calc.CalcView coreFiles=stdlib,async,parse,event,JSONUtil,XMLUtil,context,JSONParser,TemplateUtil,../apps/acalc/Opt,FOAM,FObject,BootstrapModel,mm1Model,mm2Property,mm3Types,mm4Method,mm5Misc,value,view,AbstractDAOView,DAOListView,../js/foam/ui/DetailView,HTMLParser,visitor,dao,arrayDAO,../js/foam/ui/Window,../js/foam/i18n/Visitor,../js/foam/i18n/MessagesExtractor,../js/foam/i18n/ChromeMessagesExtractor,../js/foam/i18n/ChromeMessagesInjector,../js/foam/i18n/GlobalController extraFiles=../apps/acalc/Calc "targetPath=$BUILD_DIR" precompileTemplates

cd "$BUILD_DIR"
# Code compression.
uglifyjs foam.js -c unused=false > foam-min.js
mv foam-min.js foam.js

mv main.html AppCalc.html
popd<commit_msg>ACalc: Fixed build.<commit_after>BASEDIR=$(dirname "$0")
cd "$BASEDIR"

#   Templates.js \

pushd .

export BUILD_DIR=~/Downloads/acalc
rm -rf $BUILD_DIR
mkdir $BUILD_DIR

cp manifest.json "$BUILD_DIR"
cp -r _locales "$BUILD_DIR"
cp -r icons "$BUILD_DIR"
cp bg.js "$BUILD_DIR"

cd ../../
node --harmony tools/foam.js foam.build.BuildApp controller=Calc defaultView=foam.apps.calc.CalcView coreFiles=stdlib,async,parse,event,JSONUtil,XMLUtil,context,JSONParser,TemplateUtil,../apps/acalc/Opt,FOAM,FObject,BootstrapModel,mm1Model,mm2Property,mm3Types,mm4Method,mm5Misc,value,view,../js/foam/ui/AbstractDAOView,../js/foam/ui/DAOListView,../js/foam/ui/DetailView,HTMLParser,visitor,dao,arrayDAO,../js/foam/ui/Window,../js/foam/i18n/Visitor,../js/foam/i18n/MessagesExtractor,../js/foam/i18n/ChromeMessagesExtractor,../js/foam/i18n/ChromeMessagesInjector,../js/foam/i18n/GlobalController extraFiles=../apps/acalc/Calc "targetPath=$BUILD_DIR" precompileTemplates

cd "$BUILD_DIR"
# Code compression.
uglifyjs foam.js -c unused=false > foam-min.js
mv foam-min.js foam.js

mv main.html AppCalc.html
popd
{'fraction_non_alphanumeric': 0.15784586815227483, 'fraction_numerical': 0.014856081708449397, 'mean_word_length': 5.610429447852761, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3666127', 'n_tokens_mistral': 857, 'n_tokens_neox': 834, 'n_words': 109}