<commit_before>#!/bin/bash -xe

cargo test

if test "$TRAVIS_OS_NAME" = "linux"; then
    if test "$TRAVIS_RUST_VERSION" = "stable"; then
        cargo doc
    fi

    if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
        cargo fmt -- --write-mode=diff $(git diff --name-only "$TRAVIS_COMMIT" "$TRAVIS_BRANCH" | grep \.rs$)
    else
        cargo fmt -- --write-mode=diff $(git show --format= --name-only "$TRAVIS_COMMIT_RANGE" | sort -u | grep \.rs$)
    fi<commit_msg>rustfmt changed params<commit_after>#!/bin/bash -xe

cargo test

if test "$TRAVIS_OS_NAME" = "linux"; then
    if test "$TRAVIS_RUST_VERSION" = "stable"; then
        cargo doc
        check_param="--write-mode=diff"
    else
        check_param="--check"
    fi

    if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
        cargo fmt -- $check_param $(git diff --name-only "$TRAVIS_COMMIT" "$TRAVIS_BRANCH" | grep \.rs$)
    else
        cargo fmt -- $check_param $(git show --format= --name-only "$TRAVIS_COMMIT_RANGE" | sort -u | grep \.rs$)
    fi
{'fraction_non_alphanumeric': 0.1588235294117647, 'fraction_numerical': 0.0, 'mean_word_length': 2.6594982078853047, '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': '1588935', 'n_tokens_mistral': 379, 'n_tokens_neox': 376, 'n_words': 94}