<commit_before>#!/bin/bash

HEAD=`git show HEAD | head -n1 | cut -d' ' -f2`

if [[ ! -f test/scripts/test_target.sh ]]; then
    echo Could not find test/scripts/test_target.sh
    echo Run this script from the root directory of your Halide checkout
    exit 1
fi

mkdir -p llvm
mkdir -p testing/reports/${HEAD}
mkdir -p testing/deps

# Acquire and build 32-bit and 64-bit libpng and libz.  We can't trust
# the OS version to come in both 32 and 64-bit flavors, especially on
# OS X.
if [[ ! -f testing/deps/libpng32.a ]]; then
    cd testing/deps
    echo Acquiring and building libpng
    curl -L http://sourceforge.net/projects/libpng/files/libpng16/1.6.6/lpng166.zip/download -o lpng166.zip || exit 1
    unzip -n lpng166.zip
    cd lpng166
    if [[ `uname` == Darwin ]]; then
        make -f scripts/makefile.darwin clean
        make -f scripts/makefile.darwin ARCH="-arch i386 -arch x86_64" || exit 1
        cp libpng.a ../libpng32.a
        cp libpng.a ../libpng64.a
        cp *.h ../
    elif [[ `uname` == Linux ]]; then
        make -f scripts/makefile.linux clean
        make -f scripts/makefile.linux || exit 1<commit_msg>Update libpng version used by script.<commit_after>#!/bin/bash

HEAD=`git show HEAD | head -n1 | cut -d' ' -f2`

if [[ ! -f test/scripts/test_target.sh ]]; then
    echo Could not find test/scripts/test_target.sh
    echo Run this script from the root directory of your Halide checkout
    exit 1
fi

mkdir -p llvm
mkdir -p testing/reports/${HEAD}
mkdir -p testing/deps

# Acquire and build 32-bit and 64-bit libpng and libz.  We can't trust
# the OS version to come in both 32 and 64-bit flavors, especially on
# OS X.
if [[ ! -f testing/deps/libpng32.a ]]; then
    cd testing/deps
    echo Acquiring and building libpng
    curl -L http://sourceforge.net/projects/libpng/files/libpng16/1.6.13/lpng1613.zip/download -o lpng1613.zip || exit 1
    unzip -n lpng1613.zip
    cd lpng1613
    if [[ `uname` == Darwin ]]; then
        make -f scripts/makefile.darwin clean
        make -f scripts/makefile.darwin ARCH="-arch i386 -arch x86_64" || exit 1
        cp libpng.a ../libpng32.a
        cp libpng.a ../libpng64.a
        cp *.h ../
    elif [[ `uname` == Linux ]]; then
        make -f scripts/makefile.linux clean
        make -f scripts/makefile.linux || exit 1
{'fraction_non_alphanumeric': 0.11746857390550498, 'fraction_numerical': 0.04031209362808843, 'mean_word_length': 2.5022761760242793, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3930648', 'n_tokens_mistral': 872, 'n_tokens_neox': 786, 'n_words': 264}