<commit_before>#!/bin/sh
# @Author: <NAME>
# @Date:   2014-05-19 10:39:46
# @Last Modified by:   <NAME>
# @Last Modified time: 2014-05-19 17:22:13

echo "$ cd $CONCRETE_SOURCE_DIR"

cd "$CONCRETE_SOURCE_DIR"


# TODO branch ant and gradle builds - maybe in a separate step
# default should be ant with 'android update ....' command

ant clean
# TODO get target sdk version from .manifest file
# --target 1 is the id from 'android list targets'
android update project --path . --target 1

# TODO reference other libraries http://blog.standalonecode.com/?p=269




# default action == BUILD
echo $CONCRETE_ACTION<commit_msg>extracting sdk version from manifest file<commit_after>#!/bin/sh
# @Author: <NAME>
# @Date:   2014-05-19 10:39:46
# @Last Modified by:   <NAME>
# @Last Modified time: 2014-05-19 17:49:07

echo "$ cd $CONCRETE_SOURCE_DIR"

cd "$CONCRETE_SOURCE_DIR"


# TODO branch ant and gradle builds - maybe in a separate step
# default should be ant with 'android update ....' command

ant clean
# TODO check if androidmanifest name can change?
sdk_ver="android-$(grep -ro '<uses-sdk[ \t].*android:targetSdkVersion="[^"]*"' AndroidManifest.xml \
	| grep -o 'android:targetSdkVersion="[^"]*"' | cut -f2 -d'"' )"

echo "SDK VER"
echo $sdk_ver

# --target 1 is the id from 'android list targets'
android update project --path . --target 

# TODO reference other libraries http://blog.standalonecode.com/?p=269




# default action == BUILD
echo $CONCRETE_ACTION
{'fraction_non_alphanumeric': 0.13224267211997273, 'fraction_numerical': 0.044989775051124746, 'mean_word_length': 4.079584775086505, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '688229', 'n_tokens_mistral': 548, 'n_tokens_neox': 483, 'n_words': 166}