<commit_before>language: rust
rust:
  - stable
cache: cargo
sudo: false
dist: trusty
env:
  global:
    - CLIPPY_VERS=0.0.170
    - RUSTFMT_VERS=0.9.0
  matrix:
    - FEATURE=test
script:
  - cargo test

stages:
  - lint
  - test
jobs:
  include:
    - stage: test
      env:
        - FEATURE=fmt
      before_install:
        - >
          rustfmt --version | grep $RUSTFMT_VERS ||
          cargo install rustfmt --force --vers $RUSTFMT_VERS
      script:
        - cargo fmt -- --write-mode=diff
    - stage: test
      rust: nightly-2017-11-13
      env:
        - FEATURE=clippy
      before_install:
        - >
          cargo clippy --version | grep $CLIPPY_VERS ||
          cargo install clippy --force --vers $CLIPPY_VERS
      script:
        - cargo clippy -- -D warnings
    - stage: test<commit_msg>Enable slack notifications<commit_after>language: rust
rust:
  - stable
cache: cargo
sudo: false
dist: trusty
env:
  global:
    - CLIPPY_VERS=0.0.170
    - RUSTFMT_VERS=0.9.0
  matrix:
    - FEATURE=test
script:
  - cargo test

stages:
  - lint
  - test
jobs:
  include:
    - stage: test
      env:
        - FEATURE=fmt
      before_install:
        - >
          rustfmt --version | grep $RUSTFMT_VERS ||
          cargo install rustfmt --force --vers $RUSTFMT_VERS
      script:
        - cargo fmt -- --write-mode=diff
    - stage: test
      rust: nightly-2017-11-13
      env:
        - FEATURE=clippy
      before_install:
        - >
          cargo clippy --version | grep $CLIPPY_VERS ||
          cargo install clippy --force --vers $CLIPPY_VERS
      script:
        - cargo clippy -- -D warnings
    - stage: test
notifications:
  slack:
    rooms:
      secure: nGc6g5/JQdZNVUGhdZ+jwqq+<KEY>
{'fraction_non_alphanumeric': 0.10511033681765389, 'fraction_numerical': 0.019744483159117306, 'mean_word_length': 1.748006379585327, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 8, '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': '4683709', 'n_tokens_mistral': 623, 'n_tokens_neox': 598, 'n_words': 142}