<commit_before>language: rust
dist: trusty
services: docker
sudo: required
branches:
  only:
    - master

# Install tools for running tests
install:
  - cargo install cross
  
# Setup two jobs, one for each targeted platform
env:
  - TARGET=x86_64-unknown-linux-gnu
  - TARGET=i686-unknown-linux-gnu
jobs:
  include:
    - stage: test
      script: cross test --target $TARGET
    - stage: deploy
      script: skip
      before_deploy:
        - cross build --release --target $TARGET
        - cp target/$TARGET/release/travis-docker-demo .
        - tar czf travis-docker-demo-$TARGET-$TRAVIS_BUILD_NUMBER.tar.gz travis-docker-demo
        - TRAVIS_TAG=build-$TRAVIS_BUILD_NUMBER
      deploy:
        api_key:
          secure: "<KEY>
        file: travis-docker-demo-$TARGET-$TRAVIS_BUILD_NUMBER.tar.gz
        provider: releases
        skip_cleanup: true<commit_msg>Stages<commit_after>language: rust
dist: trusty
services: docker
sudo: required
branches:
  only:
    - master

# Install tools for running tests
install:
  - cargo install cross
  
# Setup two jobs, one for each targeted platform
jobs:
  include:
    - &test
      stage: test
      script: cross test --target $TARGET
      env: TARGET=x86_64-unknown-linux-gnu
    - <<: *test
      env: TARGET=i686-unknown-linux-gnu
    - &deploy
      stage: deploy
      env: TARGET=x86_64-unknown-linux-gnu
      script: skip
      before_deploy:
        - cross build --release --target $TARGET
        - cp target/$TARGET/release/travis-docker-demo .
        - tar czf travis-docker-demo-$TARGET-$TRAVIS_BUILD_NUMBER.tar.gz travis-docker-demo
        - TRAVIS_TAG=build-$TRAVIS_BUILD_NUMBER
      deploy:
        api_key:
          secure: "<KEY>
        file: travis-docker-demo-$TARGET-$TRAVIS_BUILD_NUMBER.tar.gz
        provider: releases
        skip_cleanup: true
    - <<: *deploy
      env: TARGET=i686-unknown-linux-gnu
{'fraction_non_alphanumeric': 0.09978880675818373, 'fraction_numerical': 0.011087645195353749, 'mean_word_length': 2.4454545454545453, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '6830811', 'n_tokens_mistral': 625, 'n_tokens_neox': 594, 'n_words': 142}