<commit_before>#!/bin/bash
#
# bucks.js build command.
#

pushd `dirname $0` >/dev/null 2>&1
[ $? -eq 1 ] && exit 1
__script_dir=`pwd`
popd >/dev/null 2>&1


__uglify="${__script_dir}/node_modules/uglify-js/bin/uglifyjs"
__hint="${__script_dir}/node_modules/jshint/bin/jshint"
__jsdoc="${__script_dir}/node_modules/jsdoc/jsdoc"
__src="${__script_dir}/bucks.js"
__min="${__script_dir}/bucks.min.js"

[ ! -f ${__uglify} ] && echo "error: uglify command not found. please $ npm install ." && exit 1
[ ! -f ${__hint} ] && echo "error: jshint command not found. please $ npm install ." && exit 1

#
# jshint
#
echo
echo "info: jshint start."
${__hint} ${__src}
[ $? -ne 0 ] && echo "jshint running error." && exit 1
<commit_msg>bugfix: At build time, the update of Version<commit_after>#!/bin/bash
#
# bucks.js build command.
#

pushd `dirname $0` >/dev/null 2>&1
[ $? -eq 1 ] && exit 1
__script_dir=`pwd`
popd >/dev/null 2>&1


__uglify="${__script_dir}/node_modules/uglify-js/bin/uglifyjs"
__hint="${__script_dir}/node_modules/jshint/bin/jshint"
__jsdoc="${__script_dir}/node_modules/jsdoc/jsdoc"
__src="${__script_dir}/bucks.js"
__min="${__script_dir}/bucks.min.js"

[ ! -f ${__uglify} ] && echo "error: uglify command not found. please $ npm install ." && exit 1
[ ! -f ${__hint} ] && echo "error: jshint command not found. please $ npm install ." && exit 1

#
# set version
#
./setver

#
# jshint
#
echo
echo "info: jshint start."
${__hint} ${__src}
[ $? -ne 0 ] && echo "jshint running error." && exit 1

{'fraction_non_alphanumeric': 0.1920265780730897, 'fraction_numerical': 0.014617940199335547, 'mean_word_length': 4.321554770318021, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2285680', 'n_tokens_mistral': 634, 'n_tokens_neox': 599, 'n_words': 138}