<commit_before>#!/bin/bash

function executeCommand {
    $@
    rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
    echo "Exit code[" $@ "]: $rc"
}


executeCommand "export CMAKE_LIBRARY_PATH=$CMAKE_LIBRARY_PATH:/framework-dependencies/lib"
executeCommand "export CMAKE_INCLUDE_PATH=$CMAKE_INCLUDE_PATH:/framework-dependencies/include"
executeCommand "source /root-system/bin/thisroot.sh"

executeCommand "rm -rf j-pet-framework || true"
executeCommand "git clone --single-branch --branch cmake https://github.com/grey277/j-pet-framework.git"
executeCommand "mkdir -p j-pet-framework/build"
executeCommand "cd j-pet-framework/build"
executeCommand "cmake .."
executeCommand "cmake --build ."
executeCommand "sudo make install"
executeCommand "cd ../.."

executeCommand "mkdir -p build"
executeCommand "cd build"
executeCommand "cmake .."
executeCommand "make"

executeCommand "cd ImageReconstruction"
executeCommand "ctest -j6 -C Debug -T test --output-on-failure"

executeCommand "cd LargeBarrelAnalysis"
executeCommand "ctest -j6 -C Debug -T test --output-on-failure"<commit_msg>Fix compiling tests<commit_after>#!/bin/bash

function executeCommand {
    $@
    rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
    echo "Exit code[" $@ "]: $rc"
}


executeCommand "export CMAKE_LIBRARY_PATH=$CMAKE_LIBRARY_PATH:/framework-dependencies/lib"
executeCommand "export CMAKE_INCLUDE_PATH=$CMAKE_INCLUDE_PATH:/framework-dependencies/include"
executeCommand "source /root-system/bin/thisroot.sh"

executeCommand "rm -rf j-pet-framework || true"
executeCommand "git clone --single-branch --branch cmake https://github.com/grey277/j-pet-framework.git"
executeCommand "mkdir -p j-pet-framework/build"
executeCommand "cd j-pet-framework/build"
executeCommand "cmake .."
executeCommand "cmake --build ."
executeCommand "sudo make install"
executeCommand "cd ../.."

executeCommand "mkdir -p build"
executeCommand "cd build"
executeCommand "cmake .."
executeCommand "make"
executeCommand "make tests_largebarrel"
executeCommand "make tests_imagereconstruction"

executeCommand "cd ImageReconstruction"
executeCommand "ctest -j6 -C Debug -T test --output-on-failure"

executeCommand "cd LargeBarrelAnalysis"
executeCommand "ctest -j6 -C Debug -T test --output-on-failure"
{'fraction_non_alphanumeric': 0.1288888888888889, 'fraction_numerical': 0.005333333333333333, 'mean_word_length': 5.067385444743936, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6876876', 'n_tokens_mistral': 740, 'n_tokens_neox': 686, 'n_words': 181}