<commit_before>#!/usr/bin/env bash

set -o errexit -o nounset -o pipefail

track_status() {
    local log_path
    log_path="$( mktemp )"
    echo "Log file path: $log_path"

    local db_path
    db_path="$( mktemp --dry-run )"
    echo "DB file path: $db_path"

    local rm_aux_files
    rm_aux_files="$( printf -- 'rm -f -- %q' "$log_path" "$db_path" )"

    trap "$rm_aux_files" RETURN

    echo 'Running track_status.py...'
    python3 -m bin.track_status egor.tensin --log "$log_path" --format csv --output "$db_path" &
    local pid="$!"
    echo "Its PID is $pid"<commit_msg>Travis: fix printf usage in trask_status.sh<commit_after>#!/usr/bin/env bash

set -o errexit -o nounset -o pipefail

track_status() {
    local log_path
    log_path="$( mktemp )"
    echo "Log file path: $log_path"

    local db_path
    db_path="$( mktemp --dry-run )"
    echo "DB file path: $db_path"

    local rm_aux_files
    rm_aux_files="$( printf -- 'rm -f -- %q %q' "$log_path" "$db_path" )"

    trap "$rm_aux_files" RETURN

    echo 'Running track_status.py...'
    python3 -m bin.track_status egor.tensin --log "$log_path" --format csv --output "$db_path" &
    local pid="$!"
    echo "Its PID is $pid"
{'fraction_non_alphanumeric': 0.1523730224812656, 'fraction_numerical': 0.0016652789342214821, 'mean_word_length': 2.8525641025641026, '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': '624674', 'n_tokens_mistral': 471, 'n_tokens_neox': 437, 'n_words': 127}