<commit_before>#!/bin/bash

cd "$(dirname "$0")"/..
set -ex

if [[ ! -x "$(command -v rustfmt)" ]]; then
    cargo install --debug rustfmt || exit 1
fi

cargo fmt --all -- --check<commit_msg>travis: use rustup to install cargo-fmt<commit_after>#!/bin/bash

cd "$(dirname "$0")"/..
set -ex

rustup component add rustfmt

cargo fmt --all -- --check
{'fraction_non_alphanumeric': 0.1994219653179191, 'fraction_numerical': 0.008670520231213872, 'mean_word_length': 3.0348837209302326, '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': '6559463', 'n_tokens_mistral': 133, 'n_tokens_neox': 124, 'n_words': 41}