<commit_before>#!/bin/bash
set -e

SCRIPT_DIR="$(cd $(dirname $0) && pwd)"
# TODO(b/141549086): move everything below into a common script once this script (androidx_host_tests.sh) is under presubmit testing
if [ "$DIST_DIR" == "" ]; then
  DIST_DIR="$SCRIPT_DIR/../../../out/dist"
fi
mkdir -p "$DIST_DIR"
cd "$SCRIPT_DIR/../../.."

OUT_DIR=out DIST_DIR="$DIST_DIR" ANDROID_HOME=`pwd`/prebuilts/fullsdk-linux frameworks/support/gradlew -p frameworks/support --no-daemon test jacocoTestReport zipEcFiles --info --offline -Pandroidx.enableAffectedModuleDetection
OUT_DIR=out/ui DIST_DIR="$DIST_DIR/ui" ANDROID_HOME=`pwd`/prebuilts/fullsdk-linux frameworks/support/ui/gradlew -p frameworks/support/ui --no-daemon test jacocoTestReport zipEcFiles --info --offline -Pandroidx.enableAffectedModuleDetection
python3 frameworks/support/busytown/merge_outputs.py mergeCoverageExecution mergeSourceJars<commit_msg>Revert "Fix jacoco report jar location."<commit_after>#!/bin/bash
set -e

SCRIPT_DIR="$(cd $(dirname $0) && pwd)"
# TODO(b/141549086): move everything below into a common script once this script (androidx_host_tests.sh) is under presubmit testing
if [ "$DIST_DIR" == "" ]; then
  DIST_DIR="$SCRIPT_DIR/../../../out/dist"
fi
mkdir -p "$DIST_DIR"
cd "$SCRIPT_DIR/../../.."

OUT_DIR=out DIST_DIR="$DIST_DIR" ANDROID_HOME=`pwd`/prebuilts/fullsdk-linux frameworks/support/gradlew -p frameworks/support --no-daemon test jacocoTestReport zipEcFiles --info --offline -Pandroidx.enableAffectedModuleDetection
OUT_DIR=out/ui DIST_DIR="$DIST_DIR/ui" ANDROID_HOME=`pwd`/prebuilts/fullsdk-linux frameworks/support/ui/gradlew -p frameworks/support/ui --no-daemon test jacocoTestReport zipEcFiles --info --offline -Pandroidx.enableAffectedModuleDetection

{'fraction_non_alphanumeric': 0.14277522935779816, 'fraction_numerical': 0.012041284403669725, 'mean_word_length': 5.322463768115942, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '5262780', 'n_tokens_mistral': 659, 'n_tokens_neox': 592, 'n_words': 126}