<commit_before>language: scala
sudo: required
dist: trusty

scala:
- 2.10.6
- 2.11.8
- 2.12.1

# These directories are cached to S3 at the end of the build
cache:
  directories:
  - $HOME/.ivy2/cache
  - $HOME/.sbt/boot/

script:
- ./e2e.sh
- cd examples && sbt test && cd ..
- sbt -J-Xmx4500M ++$TRAVIS_SCALA_VERSION test
- sbt -J-Xmx4500M ++$TRAVIS_SCALA_VERSION universal:packageBin
# Tricks to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm

deploy:
  provider: releases
  api_key:
    secure: <KEY>
  file: scalapbc/target/universal/scalapbc-${TRAVIS_TAG:1}.zip
  skip_cleanup: true
  on:
    repo: scalapb/ScalaPB
    tags: true
    scala: 2.11.8
<commit_msg>Add a check that generated code is unchanged when running make_plugin_protos.sh<commit_after>language: scala
sudo: required
dist: trusty

scala:
- 2.10.6
- 2.11.8
- 2.12.1

# These directories are cached to S3 at the end of the build
cache:
  directories:
  - $HOME/.ivy2/cache
  - $HOME/.sbt/boot/

script:
- ./e2e.sh
- cd examples && sbt test && cd ..
- sbt -J-Xmx4500M ++$TRAVIS_SCALA_VERSION test
- sbt -J-Xmx4500M ++$TRAVIS_SCALA_VERSION universal:packageBin

# Test that all generated code is checked in.
- echo "java -jar ${HOME}/.ivy2/cache/com.github.os72/protoc-jar/jars/protoc-jar-3.2.0.jar \$@" > protoc && chmod +x protoc
- export PATH=${PATH}:${PWD}
- bash -x ./make_plugin_proto.sh
- rm protoc
- git diff --exit-code || { echo "Generated code changed. Please run make_plugin_proto.sh."; exit 1 }

# Tricks to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm

deploy:
  provider: releases
  api_key:
    secure: <KEY>
  file: scalapbc/target/universal/scalapbc-${TRAVIS_TAG:1}.zip
  skip_cleanup: true
  on:
    repo: scalapb/ScalaPB
    tags: true
    scala: 2.11.8

{'fraction_non_alphanumeric': 0.13697916666666668, 'fraction_numerical': 0.033854166666666664, 'mean_word_length': 3.2312775330396475, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '3333153', 'n_tokens_mistral': 790, 'n_tokens_neox': 746, 'n_words': 197}