<commit_before>#!/bin/bash

# Fail on any error.
set -e

# Make sure the right tools are installed
echo y | ${ANDROID_HOME}/tools/bin/sdkmanager "build-tools;28.0.3"

cd ${KOKORO_ARTIFACTS_DIR}/github/glass-enterprise-samples

( cd Camera2Sample          && ./gradlew build )
( cd CardSample             && ./gradlew build )
( cd GallerySample          && ./gradlew build )
( cd GestureLibrarySample   && ./gradlew build )
( cd QRCodeScannerSample    && ./gradlew build )
( cd VoiceRecognitionSample && ./gradlew build )<commit_msg>Add WebRTC sample build to CI (#16)<commit_after>#!/bin/bash

# Fail on any error.
set -e

# Make sure the right tools are installed
echo y | ${ANDROID_HOME}/tools/bin/sdkmanager "build-tools;28.0.3"
${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570" "cmake;3.10.2.4988404"

cd ${KOKORO_ARTIFACTS_DIR}/github/glass-enterprise-samples

( cd Camera2Sample          && ./gradlew build )
( cd CardSample             && ./gradlew build )
( cd GallerySample          && ./gradlew build )
( cd GestureLibrarySample   && ./gradlew build )
( cd QRCodeScannerSample    && ./gradlew build )
( cd VoiceRecognitionSample && ./gradlew build )
( cd WebRTCSample           && ./gradlew build )
{'fraction_non_alphanumeric': 0.1323529411764706, 'fraction_numerical': 0.02696078431372549, 'mean_word_length': 3.110738255033557, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '734612', 'n_tokens_mistral': 439, 'n_tokens_neox': 400, 'n_words': 102}