<commit_before>sudo: false
language: rust
# necessary for `travis-cargo coveralls --no-sudo`
addons:
  apt:
    packages:
      - libcurl4-openssl-dev
      - libelf-dev
      - libdw-dev
      - binutils-dev # optional: only required for the --verify flag of coveralls
# run builds for all the trains (and more)
rust:
  - nightly
  - beta
  # check that it compiles on the latest stable compiler
  - stable
os:
  - linux
  - osx
cache:
  directories:
    - $HOME/.cargo
before_script:
  # load travis-cargo
  - |
      pip install 'travis-cargo<0.2' --user &&
      if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
        export PATH=$HOME/.local/bin/:$PATH
      else
        export PATH=$HOME/Library/Python/2.7/bin:$PATH
      fi
# the main build
script:
  - |
      if [[ "$TRAVIS_RUST_VERSION" == nightly* ]]; then
        travis-cargo build -- --no-default-features
      else
        travis-cargo build
      fi &&
      if [[ "$TRAVIS_RUST_VERSION" == nightly* ]]; then
        travis-cargo test -- --no-default-features
      else
        travis-cargo test
      fi &&
      if [[ "$TRAVIS_RUST_VERSION" == nightly* ]]; then
        travis-cargo bench -- --no-default-features
      else
        travis-cargo bench
      fi &&
      travis-cargo --only stable doc
after_success:
  # upload the documentation from the build with stable (automatically only
  # actually runs from the master branch, not individual PRs)
  - travis-cargo --only stable doc-upload
  # measure code coverage and upload to coveralls.io (the verify argument
  # mitigates kcov crashes due to malformed debuginfo, at the cost of some
  # speed. <https://github.com/huonw/travis-cargo/issues/12>)
  - travis-cargo coveralls --no-sudo --verify
env:
  global:
    - RUST_BACKTRACE=1
    # override the default '--features unstable' used for the nightly branch
    - TRAVIS_CARGO_NIGHTLY_FEATURE="nightly-testing"
    # encrypted Github token for doc upload
    - secure: l9FWp0D5MtVJW5Gjz4u9uaUUMfZ/CXqKoUvOkMNB1BvD7umIE6IDNdTKhDHnpTZ/Wdurdj2owvfqCGyARRU/pusJnUHmpbzZK9l8MRD8uBUG2TJsTWBeC62V6NYYu0RY319ssjgwEDWt3Xv3r6V3RbvL61UPEktaAlEKaJR1AtmD5t2nxQxwPyd9lWNVFnkQsRKQeKzAvTA2y27AUVguHp15gwBgDmS6eDiXqyENEiZBokYAT5CS7Uchjv5GUZrVrsQp3Avge/QLHC83N5LZIse+Zwn8vGqzJo64ivsKTpMCbkRobLeGsI2EKGKNia48q0xDkwLPUxEC/DK2ff2zBON/qKiRvu6K0ZOICQY/on8Uub5ctLjbCit1WjtbFpzlwrGqNI7FdPcdvrf+Y8K6IB4KldHpvu+ipCCAgQO+SwSbiBHqrnI21qCD4AEQU0CtfSUclX2sTHpswY9M+zVFFweG7lLUgaJIGoP1AshM1SEYor4iSnYbL3KKmhg/pyAutKDPYjns8ds7HUMNcB5Cl6wJJFEpcyFHdUt9zcfvLwFp4N5RVj9H7J3ZkhFh9bZszkcekw26Yjv2A4tbX1BaYz5UXEc12wkrcIkQ+s9zoe1Dj5qtBmxQrAkDLoS2trRxu07P3VmJyttUvGkx1s5r8f5pL+eWuWJOYMP7i1vAUoM=
branches:
  only:
    - master
    - auto
notifications:
  email: false
matrix:
  allow_failures:
    - rust: nightly<commit_msg>chore: fix OS X CI builds<commit_after>sudo: false
language: rust
# necessary for `travis-cargo coveralls --no-sudo`
addons:
  apt:
    packages:
      - libcurl4-openssl-dev
      - libelf-dev
      - libdw-dev
      - binutils-dev # optional: only required for the --verify flag of coveralls
# run builds for all the trains (and more)
rust:
  - nightly
  - beta
  # check that it compiles on the latest stable compiler
  - stable
os:
  - linux
  - osx
cache:
  directories:
    - $HOME/.cargo
before_script:
  # load travis-cargo
  - |
      pip install 'travis-cargo<0.2' --user &&
      if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
        export PATH=$HOME/.local/bin/:$PATH
      else
        export PATH=$HOME/Library/Python/2.7/bin:$PATH
      fi
  - |
      if [[ "$TRAVIS_OS_NAME" == "osx"  ]]; then
        brew install openssl && \
        export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include && \
        export OPENSSL_LIB_DIR=`brew --prefix openssl`/lib && \
        echo "Installed OpenSSL for OS X."
      fi
# the main build
script:
  - |
      if [[ "$TRAVIS_RUST_VERSION" == nightly* ]]; then
        travis-cargo build -- --no-default-features
      else
        travis-cargo build
      fi &&
      if [[ "$TRAVIS_RUST_VERSION" == nightly* ]]; then
        travis-cargo test -- --no-default-features
      else
        travis-cargo test
      fi &&
      if [[ "$TRAVIS_RUST_VERSION" == nightly* ]]; then
        travis-cargo bench -- --no-default-features
      else
        travis-cargo bench
      fi &&
      if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
        travis-cargo --only stable doc
      fi
after_success:
  # upload the documentation from the build with stable (automatically only
  # actually runs from the master branch, not individual PRs), not on OS X.
  - |
      if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
        travis-cargo --only stable doc-upload
      fi
  # measure code coverage and upload to coveralls.io (the verify argument
  # mitigates kcov crashes due to malformed debuginfo, at the cost of some
  # speed. <https://github.com/huonw/travis-cargo/issues/12>)
  - travis-cargo coveralls --no-sudo --verify
env:
  global:
    - RUST_BACKTRACE=1
    # override the default '--features unstable' used for the nightly branch
    - TRAVIS_CARGO_NIGHTLY_FEATURE="nightly-testing"
    # encrypted Github token for doc upload
    - secure: l9FWp0D5MtVJW5Gjz4u9uaUUMfZ/CXqKoUvOkMNB1BvD7umIE6IDNdTKhDHnpTZ/Wdurdj2owvfqCGyARRU/pusJnUHmpbzZK9l8MRD8uBUG2TJsTWBeC62V6NYYu0RY319ssjgwEDWt3Xv3r6V3RbvL61UPEktaAlEKaJR1AtmD5t2nxQxwPyd9lWNVFnkQsRKQeKzAvTA2y27AUVguHp15gwBgDmS6eDiXqyENEiZBokYAT5CS7Uchjv5GUZrVrsQp3Avge/QLHC83N5LZIse+Zwn8vGqzJo64ivsKTpMCbkRobLeGsI2EKGKNia48q0xDkwLPUxEC/DK2ff2zBON/qKiRvu6K0ZOICQY/on8Uub5ctLjbCit1WjtbFpzlwrGqNI7FdPcdvrf+Y8K6IB4KldHpvu+ipCCAgQO+SwSbiBHqrnI21qCD4AEQU0CtfSUclX2sTHpswY9M+zVFFweG7lLUgaJIGoP1AshM1SEYor4iSnYbL3KKmhg/pyAutKDPYjns8ds7HUMNcB5Cl6wJJFEpcyFHdUt9zcfvLwFp4N5RVj9H7J3ZkhFh9bZszkcekw26Yjv2A4tbX1BaYz5UXEc12wkrcIkQ+s9zoe1Dj5qtBmxQrAkDLoS2trRxu07P3VmJyttUvGkx1s5r8f5pL+eWuWJOYMP7i1vAUoM=
branches:
  only:
    - master
    - auto
notifications:
  email: false
matrix:
  allow_failures:
    - rust: nightly
{'fraction_non_alphanumeric': 0.09098539533322142, 'fraction_numerical': 0.03793855967769011, 'mean_word_length': 3.3457330415754925, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3650172', 'n_tokens_mistral': 2628, 'n_tokens_neox': 2500, 'n_words': 430}