<commit_before>#!/bin/bash

SDK_VERSION=`grep androidCompileSdkVersion build.gradle | awk '{ print $3 }'`
SDK_DIR=$ANDROID_HOME/platforms/android-$SDK_VERSION
TOOLS_VERSION=`grep androidBuildToolsVersion build.gradle | cut -d \" -f 2`
TOOLS_DIR=$ANDROID_HOME/build-tools/$TOOLS_VERSION

if [ ! -d "$SDK_DIR" ]; then
    echo "Installing Android SDK version $SDK_VERSION"
    echo y | $ANDROID_HOME/tools/android update sdk --no-ui --all --filter \
    android-$SDK_VERSION
fi

if [ ! -d "$TOOLS_DIR" ]; then
    echo "Installing Android build-tools version $TOOLS_VERSION"<commit_msg>fix teamcity build script (tested in https://www.jdoodle.com/test-bash-shell-script-online)<commit_after>#!/bin/bash

SDK_VERSION=`grep compileSdk dependencies.gradle | awk '{ print $3+0}'`
SDK_DIR=$ANDROID_HOME/platforms/android-$SDK_VERSION
TOOLS_VERSION=`grep buildTools dependencies.gradle | cut -d \' -f 2`
TOOLS_DIR=$ANDROID_HOME/build-tools/$TOOLS_VERSION

if [ ! -d "$SDK_DIR" ]; then
    echo "Installing Android SDK version $SDK_VERSION"
    echo y | $ANDROID_HOME/tools/android update sdk --no-ui --all --filter \
    android-$SDK_VERSION
fi

if [ ! -d "$TOOLS_DIR" ]; then
    echo "Installing Android build-tools version $TOOLS_VERSION"
{'fraction_non_alphanumeric': 0.1321978913219789, 'fraction_numerical': 0.0040551500405515, 'mean_word_length': 4.533632286995516, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '94527', 'n_tokens_mistral': 461, 'n_tokens_neox': 417, 'n_words': 97}