<commit_before>#!/bin/bash

# Clean out the existing deployment content.
rm -r -f deploy

# Copy config files (yaml & appengine_config.py) to deploy.
find config -type f -name '*.json' | cpio -p -a -m -d deploy/
cp -f *.yaml ./deploy/
cp -f *.py ./deploy/


# Copy server/*.py files (not tests) to deploy/server
find server -type f -name '*.py' -not -iname '*_test.py' | cpio -p -a -m -d deploy/

# Copy server/*.html files to deploy/server
find server -type f -name '*.html' | cpio -p -a -m -d deploy/

# Copy third_party/py/*.py files to deploy/server/third_party
pushd third_party/py
find . -type f -name '*.py' | cpio -p -a -m -d ../../deploy/server/third_party/
popd

# Copy client/*.html and json template files to deploy/client.
find client -name '*.html' | cpio -pamd deploy/
find client -name '*.json' | cpio -pamd deploy/

# Copy third_party/js/*.* files to deploy/server/third_party
pushd third_party/js
find . -type f -name '*.*' | cpio -p -a -m -d ../../deploy/client/third_party/
popd


# Compile client/*.js files to deploy/client/perfkit_scripts.js.
python $closurelib/closure/bin/build/closurebuilder.py \
 --root=third_party/js/closure/goog/ \
 --root=client/ \
 --namespace="p3rf.perfkit.explorer.application.module" \
 --output_mode=compiled \
 --compiler_jar=bin/closure-compiler.jar \
 --compiler_flags="--angular_pass" \
 --compiler_flags="--compilation_level=WHITESPACE_ONLY" \
 --compiler_flags="--language_in=ECMASCRIPT5" \
 --compiler_flags="--formatting=PRETTY_PRINT" \
 --output_file=deploy/client/perfkit_scripts.js
<commit_msg>=Move compiler paths to lib/ and out of /Users/joemu/Projects/closure-library.<commit_after>#!/bin/bash

# Clean out the existing deployment content.
rm -r -f deploy

# Copy config files (yaml & appengine_config.py) to deploy.
find config -type f -name '*.json' | cpio -p -a -m -d deploy/
cp -f *.yaml ./deploy/
cp -f *.py ./deploy/


# Copy server/*.py files (not tests) to deploy/server
find server -type f -name '*.py' -not -iname '*_test.py' | cpio -p -a -m -d deploy/

# Copy server/*.html files to deploy/server
find server -type f -name '*.html' | cpio -p -a -m -d deploy/

# Copy third_party/py/*.py files to deploy/server/third_party
pushd third_party/py
find . -type f -name '*.py' | cpio -p -a -m -d ../../deploy/server/third_party/
popd

# Copy client/*.html and json template files to deploy/client.
find client -name '*.html' | cpio -pamd deploy/
find client -name '*.json' | cpio -pamd deploy/

# Copy third_party/js/*.* files to deploy/server/third_party
pushd third_party/js
find . -type f -name '*.*' | cpio -p -a -m -d ../../deploy/client/third_party/
popd


# Compile client/*.js files to deploy/client/perfkit_scripts.js.
python lib/closure-library/closure/bin/build/closurebuilder.py \
 --root=lib/closure-library \
 --root=client/ \
 --namespace="p3rf.perfkit.explorer.application.module" \
 --output_mode=compiled \
 --compiler_jar=bin/closure-compiler.jar \
 --compiler_flags="--angular_pass" \
 --compiler_flags="--compilation_level=WHITESPACE_ONLY" \
 --compiler_flags="--language_in=ECMASCRIPT5" \
 --compiler_flags="--formatting=PRETTY_PRINT" \
 --output_file=deploy/client/perfkit_scripts.js

{'fraction_non_alphanumeric': 0.16257861635220125, 'fraction_numerical': 0.0012578616352201257, 'mean_word_length': 3.163612565445026, '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': '6554515', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1109, 'n_words': 314}