<commit_before>#!/bin/sh

# Builds and runs tests for a particular target passed as an argument to this
# script.

set -ex

TARGET=$1
cargo build --manifest-path libc-test/Cargo.toml --target $TARGET

if [ "$TARGET" = "arm-linux-androideabi" ]; then
    emulator @test -no-window &
    adb wait-for-device
    adb push /root/target/$TARGET/debug/libc-test /data/libc-test
    adb shell /data/libc-test
elif [ "$TARGET" = "arm-unknown-linux-gnueabihf" ]; then
    qemu-arm -L /usr/arm-linux-gnueabihf libc-test/target/$TARGET/debug/libc-test
elif [ "$TARGET" = "mips-unknown-linux-gnu" ]; then
    # FIXME: this segfaults on travis, passes locally?
    qemu-mips -L /usr/mips-linux-gnu libc-test/target/$TARGET/debug/libc-test
    echo skip
elif [ "$TARGET" = "aarch64-unknown-linux-gnu" ]; then
    qemu-aarch64 -L /usr/aarch64-linux-gnu/ libc-test/target/$TARGET/debug/libc-test
else
    cargo run --manifest-path libc-test/Cargo.toml --target $TARGET
fi<commit_msg>OK, apparently MIPS can run now?<commit_after>#!/bin/sh

# Builds and runs tests for a particular target passed as an argument to this
# script.

set -ex

TARGET=$1
cargo build --manifest-path libc-test/Cargo.toml --target $TARGET

if [ "$TARGET" = "arm-linux-androideabi" ]; then
    emulator @test -no-window &
    adb wait-for-device
    adb push /root/target/$TARGET/debug/libc-test /data/libc-test
    adb shell /data/libc-test
elif [ "$TARGET" = "arm-unknown-linux-gnueabihf" ]; then
    qemu-arm -L /usr/arm-linux-gnueabihf libc-test/target/$TARGET/debug/libc-test
elif [ "$TARGET" = "mips-unknown-linux-gnu" ]; then
    qemu-mips -L /usr/mips-linux-gnu libc-test/target/$TARGET/debug/libc-test
elif [ "$TARGET" = "aarch64-unknown-linux-gnu" ]; then
    qemu-aarch64 -L /usr/aarch64-linux-gnu/ libc-test/target/$TARGET/debug/libc-test
else
    cargo run --manifest-path libc-test/Cargo.toml --target $TARGET
fi
{'fraction_non_alphanumeric': 0.14861995753715498, 'fraction_numerical': 0.0074309978768577496, 'mean_word_length': 3.3036529680365296, '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': '1390307', 'n_tokens_mistral': 710, 'n_tokens_neox': 677, 'n_words': 159}