<commit_before>#!/bin/bash
set -e
set -x

export RUST_BACKTRACE=1
cargo build --bin imageflow_tool

TOOL="../target/debug/imageflow_tool"


$TOOL --help

$TOOL diagnose --show-compilation-info

$TOOL --version
$TOOL -V

$TOOL diagnose --self-test

(
    mkdir _test || true
    cd _test
    $TOOL examples --generate
)<commit_msg>fix(build.sh): fix path error in test_tool.sh<commit_after>#!/bin/bash
set -e
set -x

export RUST_BACKTRACE=1
cargo build --bin imageflow_tool

TOOL="../target/debug/imageflow_tool"


$TOOL --help

$TOOL diagnose --show-compilation-info

$TOOL --version
$TOOL -V

$TOOL diagnose --self-test

(
    mkdir _test || true
    cd _test
    ../$TOOL examples --generate
)
{'fraction_non_alphanumeric': 0.1381294964028777, 'fraction_numerical': 0.0028776978417266188, 'mean_word_length': 3.1183431952662723, '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': '2199380', 'n_tokens_mistral': 274, 'n_tokens_neox': 246, 'n_words': 69}