<commit_before>#!/usr/bin/env bash

mkdir -p build/gcc/debug
cd build/gcc/debug

cmake ../../.. -DCMAKE_BUILD_TYPE=Debug
make -j6
for file in `ls -1` ; do
    if [ -x $file ] && [ -f $file ] ; then
        timeout 1 ./$file
        echo $file $? >> runtime_results.txt
        timeout 5 valgrind --error-exitcode=1 ./$file
        echo $file $? >> valgrind_results.txt
    fi
done

cd ..
mkdir rel_with_deb_info
cd rel_with_deb_info
cmake ../../.. -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j6
for file in `ls -1` ; do
    if [ -x $file ] && [ -f $file ] ; then
        timeout 1 ./$file
        echo $file $? >> runtime_results.txt
        timeout 5 valgrind --error-exitcode=1 ./$file
        echo $file $? >> valgrind_results.txt
    fi
done

cd ../..
mkdir -p clang/debug
cd clang/debug
export CXX=clang++
cmake ../../.. -DCMAKE_BUILD_TYPE=Debug
make -j6
for file in `ls -1` ; do
    if [ -x $file ] && [ -f $file ] ; then
        timeout 1 ./$file
        echo $file $? >> runtime_results.txt
    fi
done

cd ..
mkdir rel_with_deb_info
cd rel_with_deb_info
cmake ../../.. -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j6
for file in `ls -1` ; do
    if [ -x $file ] && [ -f $file ] ; then
        timeout 1 ./$file
        echo $file $? >> runtime_results.txt
    fi
done

cd ../..
mkdir -p clang_fsanitize/debug
cd clang_fsanitize/debug
export CXX=clang++
cmake ../../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-fsanitize=undefined  -fno-sanitize-recover=undefined"
make -j6
for file in `ls -1` ; do
    if [ -x $file ] && [ -f $file ] ; then
        timeout 1 ./$file
        echo $file $? >> runtime_results.txt
    fi
done

cd ..
mkdir rel_with_deb_info
cd rel_with_deb_info
cmake ../../.. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined"
make -j6
for file in `ls -1` ; do
    if [ -x $file ] && [ -f $file ] ; then
        timeout 1 ./$file
        echo $file $? >> runtime_results.txt
    fi
done

#print results
echo
echo
echo VERSIONS
echo 
uname -a
gcc --version
valgrind --version
echo 
clang++ --version
echo
echo
echo DATA
cd ../..
echo GCC debug
cat gcc/debug/runtime_results.txt
echo
echo GCC valgrind debug
cat gcc/debug/valgrind_results.txt
echo
echo GCC rel_with_deb_info
cat gcc/debug/runtime_results.txt
echo
echo GCC valgrind rel_with_deb_info
cat gcc/debug/valgrind_results.txt
echo
echo clang debug
cat clang/debug/runtime_results.txt
echo
echo clang rel_with_deb_info
cat clang/rel_with_deb_info/runtime_results.txt
echo
echo clang_fsanitize debug
cat clang_fsanitize/debug/runtime_results.txt
echo
echo clang_fsanitize rel_with_deb_info
cat clang_fsanitize/rel_with_deb_info/runtime_results.txt
<commit_msg>reorder results to match table<commit_after>#!/usr/bin/env bash

mkdir -p build/gcc/debug
cd build/gcc/debug

cmake ../../.. -DCMAKE_BUILD_TYPE=Debug
make -j6
for file in `ls -1` ; do
    if [ -x $file ] && [ -f $file ] ; then
        timeout 1 ./$file
        echo $file $? >> runtime_results.txt
        timeout 5 valgrind --error-exitcode=1 ./$file
        echo $file $? >> valgrind_results.txt
    fi
done

cd ..
mkdir rel_with_deb_info
cd rel_with_deb_info
cmake ../../.. -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j6
for file in `ls -1` ; do
    if [ -x $file ] && [ -f $file ] ; then
        timeout 1 ./$file
        echo $file $? >> runtime_results.txt
        timeout 5 valgrind --error-exitcode=1 ./$file
        echo $file $? >> valgrind_results.txt
    fi
done

cd ../..
mkdir -p clang/debug
cd clang/debug
export CXX=clang++
cmake ../../.. -DCMAKE_BUILD_TYPE=Debug
make -j6
for file in `ls -1` ; do
    if [ -x $file ] && [ -f $file ] ; then
        timeout 1 ./$file
        echo $file $? >> runtime_results.txt
    fi
done

cd ..
mkdir rel_with_deb_info
cd rel_with_deb_info
cmake ../../.. -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j6
for file in `ls -1` ; do
    if [ -x $file ] && [ -f $file ] ; then
        timeout 1 ./$file
        echo $file $? >> runtime_results.txt
    fi
done

cd ../..
mkdir -p clang_fsanitize/debug
cd clang_fsanitize/debug
export CXX=clang++
cmake ../../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-fsanitize=undefined  -fno-sanitize-recover=undefined"
make -j6
for file in `ls -1` ; do
    if [ -x $file ] && [ -f $file ] ; then
        timeout 1 ./$file
        echo $file $? >> runtime_results.txt
    fi
done

cd ..
mkdir rel_with_deb_info
cd rel_with_deb_info
cmake ../../.. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined"
make -j6
for file in `ls -1` ; do
    if [ -x $file ] && [ -f $file ] ; then
        timeout 1 ./$file
        echo $file $? >> runtime_results.txt
    fi
done

#print results
echo
echo
echo VERSIONS
echo 
uname -a
gcc --version
valgrind --version
echo 
clang++ --version
echo
echo
echo DATA
cd ../..
echo clang debug
cat clang/debug/runtime_results.txt
echo
echo clang rel_with_deb_info
cat clang/rel_with_deb_info/runtime_results.txt
echo
echo GCC debug
cat gcc/debug/runtime_results.txt
echo
echo GCC rel_with_deb_info
cat gcc/debug/runtime_results.txt
echo
echo clang_fsanitize debug
cat clang_fsanitize/debug/runtime_results.txt
echo
echo clang_fsanitize rel_with_deb_info
cat clang_fsanitize/rel_with_deb_info/runtime_results.txt
echo
echo GCC valgrind debug
cat gcc/debug/valgrind_results.txt
echo
echo GCC valgrind rel_with_deb_info
cat gcc/debug/valgrind_results.txt
{'fraction_non_alphanumeric': 0.12458286985539488, 'fraction_numerical': 0.008157211716722283, 'mean_word_length': 2.772727272727273, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, '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': '2091545', 'n_tokens_mistral': 2089, 'n_tokens_neox': 1986, 'n_words': 548}