<commit_before>dist: trusty
sudo: required

language: python
python:
  - "2.7"
  - "3.4"

os:
  - linux

env:
  - BAZEL=0.5.1 TF=NIGHTLY

cache:
  directories:
    - $HOME/.bazel-output-base

before_install:
  - |
    set -e
    BAZEL_URL="https://github.com/bazelbuild/bazel/releases/download/${BAZEL}/bazel-${BAZEL}-installer-linux-x86_64.sh"
    wget -t 3 -O install.sh "${BAZEL_URL}"
    chmod +x install.sh
    ./install.sh --user
    rm -f install.sh
    case "${TF}" in
      RELEASE)
        pip install tensorflow
        ;;
      NIGHTLY)
        if [[ "${TRAVIS_PYTHON_VERSION}" == 2* ]]; then
          NIGHTLY_URL='https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=cpu-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-1.2.0rc2-cp27-none-linux_x86_64.whl'
        else
          NIGHTLY_URL='https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=cpu-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-1.2.0rc2-cp34-cp34m-linux_x86_64.whl'
        fi
        pip install "${NIGHTLY_URL}"
        ;;
      *)
        pip install tensorflow=="${TF}"
        ;;
    esac

script:
  - |
    bazel \
      --output_base="${HOME}/.bazel-output-base" \
      --batch \
      --host_jvm_args=-Xmx500m \
      --host_jvm_args=-Xms500m \
      build \
      tensorboard/... \
      --worker_verbose \
      --verbose_failures \
      --spawn_strategy=sandboxed \
      --genrule_strategy=sandboxed \
      --local_resources=400,2,1.0 \
      --worker_max_instances=2 \
      --strategy=Javac=worker \
      --strategy=Closure=worker
  - |
    bazel \
      --output_base="${HOME}/.bazel-output-base" \
      --batch \
      --host_jvm_args=-Xmx500m \
      --host_jvm_args=-Xms500m \
      test \
      tensorboard/... \
      --verbose_failures \
      --test_output=errors \
      --spawn_strategy=sandboxed \
      --local_resources=400,2,1.0

before_cache:
  - |
    find "${HOME}/.bazel-output-base" \
      -name \*.runfiles -print0 \
      -or -name \*.tar.gz -print0 \
      -or -name \*-execroot.json -print0 \
      -or -name \*-tsc.json -print0 \
      -or -name \*-params.pbtxt -print0 \
      -or -name \*-args.txt -print0 \
      -or -name \*.runfiles_manifest -print0 \
      -or -name \*.server_params.pbtxt -print0 \
      | xargs -0 rm -rf

notifications:
  email: false
<commit_msg>Fix TensorFlow nightly URL in Travis build file (#100)<commit_after>dist: trusty
sudo: required

language: python
python:
  - "2.7"
  - "3.4"

os:
  - linux

env:
  - BAZEL=0.5.1 TF=NIGHTLY

cache:
  directories:
    - $HOME/.bazel-output-base

before_install:
  - |
    set -e
    BAZEL_URL="https://github.com/bazelbuild/bazel/releases/download/${BAZEL}/bazel-${BAZEL}-installer-linux-x86_64.sh"
    wget -t 3 -O install.sh "${BAZEL_URL}"
    chmod +x install.sh
    ./install.sh --user
    rm -f install.sh
    case "${TF}" in
      RELEASE)
        pip install tensorflow
        ;;
      NIGHTLY)
        if [[ "${TRAVIS_PYTHON_VERSION}" == 2* ]]; then
          NIGHTLY_URL='https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=cpu-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-1.2.0-cp27-none-linux_x86_64.whl'
        else
          NIGHTLY_URL='https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=cpu-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-1.2.0-cp34-cp34m-linux_x86_64.whl'
        fi
        pip install "${NIGHTLY_URL}"
        ;;
      *)
        pip install tensorflow=="${TF}"
        ;;
    esac

script:
  - |
    bazel \
      --output_base="${HOME}/.bazel-output-base" \
      --batch \
      --host_jvm_args=-Xmx500m \
      --host_jvm_args=-Xms500m \
      build \
      tensorboard/... \
      --worker_verbose \
      --verbose_failures \
      --spawn_strategy=sandboxed \
      --genrule_strategy=sandboxed \
      --local_resources=400,2,1.0 \
      --worker_max_instances=2 \
      --strategy=Javac=worker \
      --strategy=Closure=worker
  - |
    bazel \
      --output_base="${HOME}/.bazel-output-base" \
      --batch \
      --host_jvm_args=-Xmx500m \
      --host_jvm_args=-Xms500m \
      test \
      tensorboard/... \
      --verbose_failures \
      --test_output=errors \
      --spawn_strategy=sandboxed \
      --local_resources=400,2,1.0

before_cache:
  - |
    find "${HOME}/.bazel-output-base" \
      -name \*.runfiles -print0 \
      -or -name \*.tar.gz -print0 \
      -or -name \*-execroot.json -print0 \
      -or -name \*-tsc.json -print0 \
      -or -name \*-params.pbtxt -print0 \
      -or -name \*-args.txt -print0 \
      -or -name \*.runfiles_manifest -print0 \
      -or -name \*.server_params.pbtxt -print0 \
      | xargs -0 rm -rf

notifications:
  email: false

{'fraction_non_alphanumeric': 0.15456534712552217, 'fraction_numerical': 0.028446389496717725, 'mean_word_length': 2.1210428305400373, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4277712', 'n_tokens_mistral': 2059, 'n_tokens_neox': 1953, 'n_words': 260}