<commit_before>sudo: required
language: android
jdk: oraclejdk8
dist: trusty

# Install Android SDK
android:
  components:
    - tools
    - android-27
    - build-tools-27.0.2
    - platform-tools
    - build-tools-27.0.2
    - android-27
    - extra-android-m2repository

# Install Android NDK (apparently there is no easier way to do this)
# https://github.com/travis-ci/travis-ci/issues/5395
before_script:
  - curl -L https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip -O
  - unzip -q android-ndk-r15c-linux-x86_64.zip
  - export ANDROID_NDK_HOME=`pwd`/android-ndk-r15c

# Install Golang
before_install:
  - sudo add-apt-repository ppa:gophers/archive -y
  - sudo apt-get update -qq
  - sudo apt-get install golang-1.9-go -y

# Cache gradle dependencies
# https://docs.travis-ci.com/user/languages/android/#Caching
before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/

script:
  - ./gradlew lint
  - ./gradlew buildNative assembleDebug
<commit_msg>Fix Travis build (fixes #1026)<commit_after>language: android
jdk: oraclejdk8
dist: trusty

# Install Android SDK
android:
  components:
    - tools
    - platform-tools
    - build-tools-27.0.2
    - android-27
    - extra-android-m2repository

# Install Android NDK (apparently there is no easier way to do this)
# https://github.com/travis-ci/travis-ci/issues/5395
before_script:
  - curl -L https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip -O
  - unzip -q android-ndk-r15c-linux-x86_64.zip
  - export ANDROID_NDK_HOME=`pwd`/android-ndk-r15c

before_install:
  # Install Go using gimme tool
  - curl -sL -o ~/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
  - chmod +x ~/bin/gimme
  - eval "$(gimme 1.9)"
  # Hack to accept Android licenses
  - yes | sdkmanager "platforms;android-27"

# Cache gradle dependencies
# https://docs.travis-ci.com/user/languages/android/#Caching
before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/

script:
  - ./gradlew lint
  - ./gradlew buildNative assembleDebug

{'fraction_non_alphanumeric': 0.13445017182130584, 'fraction_numerical': 0.030927835051546393, 'mean_word_length': 3.0363951473136916, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, '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': '1714115', 'n_tokens_mistral': 927, 'n_tokens_neox': 866, 'n_words': 171}