<commit_before>#include "test_report_generator.h"

/**
 * @brief test_report_generator::test_report_generator
 * @param parent
 */
test_report_generator::test_report_generator(QObject *parent) : QObject(parent) {
    file_handler = new FileHandler();
}

/**
 * @brief test_report_generator::test_init
 * This will initalize everything that is needed for testing the report generator.
 */
void test_report_generator::test_init()
{
    std::string dir_path = file_handler->get_work_space().absolutePath().toStdString();
    this->proj1 = file_handler->create_project("TEST_PROJ1", dir_path, dir_path);
    this->proj2 = file_handler->create_project("TEST_PROJ2", dir_path, dir_path);

    std::string video1_path = "Pumparna.avi";
    std::string video2_path = "England4k.mov";
    QString dir_path1 = "C:/TEST_PROJ1/Bookmarks";
    QString dir_path2 = "C:/TEST_PROJ2/Bookmarks";
    QString bookmark1_path = "england_bild.jpg";
    QString bookmark11_path = "pumparna_bild.jpg";
    QImage image1 = QImage(bookmark1_path);
    QImage image2 = QImage(bookmark11_path);
    Bookmark* bookmark1 = new Bookmark(1,image1, dir_path1, QString::fromStdString("test1"));
    Bookmark* bookmark2 = new Bookmark(2,image2, dir_path1, QString::fromStdString("test11"));


    file_handler->add_video(proj1, video1_path);<commit_msg>fixed compile issue (#154)<commit_after>#include "test_report_generator.h"

/**
 * @brief test_report_generator::test_report_generator
 * @param parent
 */
test_report_generator::test_report_generator(QObject *parent) : QObject(parent) {
    file_handler = new FileHandler();
}

/**
 * @brief test_report_generator::test_init
 * This will initalize everything that is needed for testing the report generator.
 */
void test_report_generator::test_init()
{
    std::string dir_path = file_handler->get_work_space().absolutePath().toStdString();
    this->proj1 = file_handler->create_project("TEST_PROJ1", dir_path, dir_path);
    this->proj2 = file_handler->create_project("TEST_PROJ2", dir_path, dir_path);

    std::string video1_path = "Pumparna.avi";
    std::string video2_path = "England4k.mov";
    QString dir_path1 = "C:/TEST_PROJ1/Bookmarks";
    QString dir_path2 = "C:/TEST_PROJ2/Bookmarks";
    QString bookmark1_path = "england_bild.jpg";
    QString bookmark11_path = "pumparna_bild.jpg";
    QImage image1 = QImage(bookmark1_path);
    QImage image2 = QImage(bookmark11_path);
    Bookmark* bookmark1 = new Bookmark(1,image1, QString::fromStdString(video1_path), dir_path1, QString::fromStdString("test1"));
    Bookmark* bookmark2 = new Bookmark(2,image2, QString::fromStdString(video2_path), dir_path1, QString::fromStdString("test11"));


    file_handler->add_video(proj1, video1_path);
{'fraction_non_alphanumeric': 0.1266984943077488, 'fraction_numerical': 0.025339698861549763, 'mean_word_length': 5.878787878787879, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '7570229', 'n_tokens_mistral': 929, 'n_tokens_neox': 916, 'n_words': 158}