<commit_before>#!/bin/bash - 

ADB=${ADB:-adb}
STAGE=${STAGE:-tbnl}
STAGE_GUEST=${STAGE_GUEST:-${STAGE}/guest}
STAGE_HOST=${STAGE_HOST:-${STAGE}/host}

adb="${ADB} $@"

## guest side

${adb} remount

${adb} push ${STAGE_GUEST}/figurehead.apk /sdcard/
${adb} push ${STAGE_GUEST}/figurehead /system/bin/
${adb} shell chmod 700 /system/bin/figurehead

# test run
${adb} shell figurehead -h

## host side<commit_msg>to work on real devices, install script should do "adb root" first<commit_after>#!/bin/bash - 

ADB=${ADB:-adb}
STAGE=${STAGE:-tbnl}
STAGE_GUEST=${STAGE_GUEST:-${STAGE}/guest}
STAGE_HOST=${STAGE_HOST:-${STAGE}/host}

adb="${ADB} $@"

## guest side

${adb} root
${adb} remount

${adb} push ${STAGE_GUEST}/figurehead.apk /sdcard/
${adb} push ${STAGE_GUEST}/figurehead /system/bin/
${adb} shell chmod 700 /system/bin/figurehead

# test run
${adb} shell figurehead -h

## host side
{'fraction_non_alphanumeric': 0.20022497187851518, 'fraction_numerical': 0.006749156355455568, 'mean_word_length': 5.267605633802817, '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': '3484507', 'n_tokens_mistral': 386, 'n_tokens_neox': 375, 'n_words': 74}