<commit_before>language: python
python:
  - "2.7"

before_install:
# apt-get packages first.
- echo "deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
- sudo apt-get -qq update
- sudo apt-get install -y gradle lintian devscripts shellcheck
- sudo apt-get install -y oracle-java8-set-default
- if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386 lib32z1 libreadline6-dev:i386 libncurses5-dev:i386; fi

# We need to manually grab the SDK
- wget https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
- tar xzf android-sdk_r24.4.1-linux.tgz
- export ANDROID_HOME=${PWD}/android-sdk-linux
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools

# We also need to grab the build tools.
- echo y | android update sdk --all --filter platform-tools,build-tools-23.0.3,android-23,extra-android-m2repository,sys-img-armeabi-v7a-android-23 --no-ui --force

# Create and start a AVD
- echo no | android create avd --force -n test -t android-23 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &

install:
- pip install -r "requirements.txt"
- pip install setuptools==28.7.1

before_script:
# Wait for emulator
- ./wait_for_emulator

# Install the dtfClient APK
- adb install python-dtf/included/dtfClient/*.apk

script: ./gradlew useDebugApk doCoverage

branches:
  only:
  - dev

git:
  depth: 5<commit_msg>Temporary fix since API 23 doesn't exist?<commit_after>language: python
python:
  - "2.7"

before_install:
# apt-get packages first.
- echo "deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
- sudo apt-get -qq update
- sudo apt-get install -y gradle lintian devscripts shellcheck
- sudo apt-get install -y oracle-java8-set-default
- if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386 lib32z1 libreadline6-dev:i386 libncurses5-dev:i386; fi

# We need to manually grab the SDK
- wget https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
- tar xzf android-sdk_r24.4.1-linux.tgz
- export ANDROID_HOME=${PWD}/android-sdk-linux
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools

# We also need to grab the build tools.
- echo y | android update sdk --all --filter platform-tools,build-tools-23.0.3,android-22,extra-android-m2repository,sys-img-armeabi-v7a-android-22 --no-ui --force

# Create and start a AVD
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &

install:
- pip install -r "requirements.txt"
- pip install setuptools==28.7.1

before_script:
# Wait for emulator
- ./wait_for_emulator

# Install the dtfClient APK
- adb install python-dtf/included/dtfClient/*.apk

script: ./gradlew useDebugApk doCoverage

branches:
  only:
  - dev

git:
  depth: 5
{'fraction_non_alphanumeric': 0.12896825396825398, 'fraction_numerical': 0.04365079365079365, 'mean_word_length': 3.7939778129952457, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1239790', 'n_tokens_mistral': 1207, 'n_tokens_neox': 1107, 'n_words': 289}