<commit_before>#! /bin/sh
# Convert binary to binary-text.
# Command line:
#     convert-binary-to-text.sh xxx.cl.bin xxx.clx.bin

BINARY_FILE=$1
TEXT_FILE=$2

if [ $# -ne 2 ]; then
    echo "Usage: $0 <binary_file> <text_file>\n"
    exit 1
fi

od -A n -t x1 -v $BINARY_FILE | \<commit_msg>log: delete "\n" in convert-binary-to-text.sh<commit_after>#! /bin/sh
# Convert binary to binary-text.
# Command line:
#     convert-binary-to-text.sh xxx.cl.bin xxx.clx.bin

BINARY_FILE=$1
TEXT_FILE=$2

if [ $# -ne 2 ]; then
    echo "Usage: $0 <binary_file> <text_file>"
    exit 1
fi

od -A n -t x1 -v $BINARY_FILE | \
{'fraction_non_alphanumeric': 0.16176470588235295, 'fraction_numerical': 0.0196078431372549, 'mean_word_length': 3.0065359477124183, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4768859', 'n_tokens_mistral': 264, 'n_tokens_neox': 254, 'n_words': 68}