<commit_before>#!/usr/bin/env bash
echo Minify app.httpservice.js
uglifyjs app.httpservice.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m toplevel,eval -r '$,require,exports' -o app.httpservice.js --source-map app.httpservice.js.map --source-map-include-sources --stats
echo Minify app.simulator.js
uglifyjs app.simulator.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m toplevel,eval -r '$,require,exports' -o app.simulator.js --source-map app.simulator.js.map --source-map-include-sources --stats
echo Minify http_profile.umd.js
uglifyjs http_profile.umd.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m toplevel,eval -r '$,require,exports' -o http_profile.umd.js --source-map http_profile.umd.js.map --source-map-include-sources --stats
echo Minify main.js
uglifyjs main.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m toplevel,eval -r '$,require,exports' -o main.js --source-map main.js.map --source-map-include-sources --stats
echo Minify ng2-nvd3.js
uglifyjs ng2-nvd3.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m -r '$,require,exports' -o ng2-nvd3.js --stats
#echo Minify d3.min.js
#uglifyjs ./node_modules/d3/d3.min.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m -r '$,require,exports' -o ./node_modules/d3/d3.min.js --stats
#echo Minify nv.d3.min.js
#uglifyjs ./node_modules/nvd3/build/nv.d3.min.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m -r '$,require,exports' -o  ./node_modules/nvd3/build/nv.d3.min.js --stats
echo Minify Rx.umd.min.js
uglifyjs ./node_modules/rxjs/bundles/Rx.umd.min.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m -r '$,require,exports' -o ./node_modules/rxjs/bundles/Rx.umd.min.js --stats
echo Minify socket.io.js
uglifyjs ./node_modules/socket.io-client/socket.io.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m -r '$,require,exports' -o ./node_modules/socket.io-client/socket.io.js --stats
echo Finished minifying files
echo Gzipping static files
gzip -k9fv ./favicon.png
gzip -k9fv ./node_modules/bootstrap/dist/css/bootstrap.min.css
gzip -k9fv ./node_modules/nvd3/build/nv.d3.min.css
gzip -k9fv ./font-awesome-4.6.3/css/font-awesome.min.css
gzip -k9fv ./font-awesome-4.6.3/fonts/fontawesome-webfont.woff2
gzip -k9fv ./font-awesome-4.6.3/fonts/fontawesome-webfont.woff<commit_msg>Improvements on PREFETCH and PRECONNECT and FontAwesome<commit_after>#!/usr/bin/env bash
echo Minify app.httpservice.js
uglifyjs app.httpservice.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m toplevel,eval -r '$,require,exports' -o app.httpservice.js --source-map app.httpservice.js.map --source-map-include-sources --stats
echo Minify app.simulator.js
uglifyjs app.simulator.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m toplevel,eval -r '$,require,exports' -o app.simulator.js --source-map app.simulator.js.map --source-map-include-sources --stats
echo Minify http_profile.umd.js
uglifyjs http_profile.umd.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m toplevel,eval -r '$,require,exports' -o http_profile.umd.js --source-map http_profile.umd.js.map --source-map-include-sources --stats
echo Minify main.js
uglifyjs main.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m toplevel,eval -r '$,require,exports' -o main.js --source-map main.js.map --source-map-include-sources --stats
echo Minify ng2-nvd3.js
uglifyjs ng2-nvd3.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m -r '$,require,exports' -o ng2-nvd3.js --stats
#echo Minify d3.min.js
#uglifyjs ./node_modules/d3/d3.min.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m -r '$,require,exports' -o ./node_modules/d3/d3.min.js --stats
#echo Minify nv.d3.min.js
#uglifyjs ./node_modules/nvd3/build/nv.d3.min.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m -r '$,require,exports' -o  ./node_modules/nvd3/build/nv.d3.min.js --stats
#echo Minify Rx.umd.min.js
#uglifyjs ./node_modules/rxjs/bundles/Rx.umd.min.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m -r '$,require,exports' -o ./node_modules/rxjs/bundles/Rx.umd.min.js --stats
echo Minify Reflect.js
uglifyjs ./node_modules/reflect-metadata/Reflect.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m -r '$,require,exports' -o ./node_modules/reflect-metadata/Reflect.js --stats
echo Minify socket.io.js
uglifyjs ./node_modules/socket.io-client/socket.io.js --screw-ie8 -c sequences,dead_code,conditionals,comparisons,unsafe_comps,evaluate,booleans,loops,unused,if_return,join_vars,collapse_vars,cascade,passes=5 -m -r '$,require,exports' -o ./node_modules/socket.io-client/socket.io.js --stats
echo Finished minifying files
echo Gzipping static files
gzip -k9fv ./favicon.png
gzip -k9fv ./node_modules/bootstrap/dist/css/bootstrap.min.css
gzip -k9fv ./node_modules/nvd3/build/nv.d3.min.css
gzip -k9fv ./font-awesome-4.6.3/css/font-awesome.min.css
gzip -k9fv ./font-awesome-4.6.3/fonts/fontawesome-webfont.woff2
gzip -k9fv ./font-awesome-4.6.3/fonts/fontawesome-webfont.woff
{'fraction_non_alphanumeric': 0.14216691068814055, 'fraction_numerical': 0.015519765739385067, 'mean_word_length': 6.2439024390243905, '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': '2505689', 'n_tokens_mistral': 2680, 'n_tokens_neox': 2653, 'n_words': 359}