<commit_before>#!/bin/bash
set -eu

version=0.6.0

if command -v rustfmt >/dev/null; then
  if [[ $(rustfmt --version) = "$version" ]]; then
    echo "--> Detected rustfmt version $version, skipping install"
    exit 0
  fi
fi

cargo install --vers $version rustfmt<commit_msg>[ci/rustfmt] Force install newer version of rustfmt when required.<commit_after>#!/bin/bash
set -eu

version=0.6.0

if command -v rustfmt >/dev/null; then
  if [[ $(rustfmt --version) = "$version" ]]; then
    echo "--> Detected rustfmt version $version, skipping install"
    exit 0
  fi
fi

cargo install --vers $version --force rustfmt
{'fraction_non_alphanumeric': 0.13983739837398373, 'fraction_numerical': 0.013008130081300813, 'mean_word_length': 3.4, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5424028', 'n_tokens_mistral': 213, 'n_tokens_neox': 203, 'n_words': 70}