<commit_before># !/usr/bin/bash

set -e -x

rm -rf public
mkdir public
mkdir public/assets
NODE_ENV=production browserify \
  $(find desktop/assets mobile/assets -name '*.coffee') \
  -p prundupify \
  -g [ envify --NODE_ENV production ] \
  -p bundle-collapser/plugin \
  -t babelify \
  -t caching-coffeeify \
  -t jadeify \
  -p [ factor-bundle -o 'uglifyjs -b > public/assets/`basename $FILE .coffee`.js' ] \
  | uglifyjs -b > public/assets/common.js
stylus \
  $(find desktop/assets mobile/assets -name '*.styl') \
  --compress \
  -o public/assets<commit_msg>[deploy] Ensure stdin is open when invoking uglifyjs.<commit_after># !/usr/bin/bash

set -e -x

rm -rf public
mkdir public
mkdir public/assets
NODE_ENV=production browserify \
  $(find desktop/assets mobile/assets -name '*.coffee') \
  -p prundupify \
  -g [ envify --NODE_ENV production ] \
  -p bundle-collapser/plugin \
  -t babelify \
  -t caching-coffeeify \
  -t jadeify \
  -p [ factor-bundle -o 'cat | uglifyjs -b > public/assets/`basename $FILE .coffee`.js' ] \
  | uglifyjs -b > public/assets/common.js
stylus \
  $(find desktop/assets mobile/assets -name '*.styl') \
  --compress \
  -o public/assets
{'fraction_non_alphanumeric': 0.14625850340136054, 'fraction_numerical': 0.0, 'mean_word_length': 2.7603833865814695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7441058', 'n_tokens_mistral': 456, 'n_tokens_neox': 439, 'n_words': 113}