<commit_before>#include "QZoneDessin.h"
#include "project.h"

#include <QImageWriter>
#include <iostream>
#include <map>
#include <string>
#include <unistd.h>
#include <thread>         // std::this_thread::sleep_for
#include <chrono>

#include "QFenetreLecture.h"

QZoneDessin::QZoneDessin(QWidget * parent)
{
    QWidget(parent,0);
    m_image = NULL;
    m_dessin = NULL;
    m_actif = 0;
    m_position = NULL;
    m_fondActive = true;
    drawings = std::map<QString, QImage*>();

    project = NULL;

    indice = 0;
    images_amount = 0;

    m_onionsActive = false;
    m_onionsLayerNumber = 3;

    //m_image = new QImage("./resource/gomme.png");<commit_msg>Correct issue #1 (segmentation fault due to m_image not initialized)<commit_after>#include "QZoneDessin.h"
#include "project.h"

#include <QImageWriter>
#include <iostream>
#include <map>
#include <string>
#include <unistd.h>
#include <thread>         // std::this_thread::sleep_for
#include <chrono>

#include "QFenetreLecture.h"

QZoneDessin::QZoneDessin(QWidget * parent)
{
    QWidget(parent,0);
    m_image = NULL;
    m_dessin = NULL;
    m_actif = 0;
    m_position = NULL;
    m_fondActive = true;
    drawings = std::map<QString, QImage*>();

    project = NULL;

    indice = 0;
    images_amount = 0;

    m_onionsActive = false;
    m_onionsLayerNumber = 3;

    m_image = new QImage();
{'fraction_non_alphanumeric': 0.13553113553113552, 'fraction_numerical': 0.00805860805860806, 'mean_word_length': 3.7103448275862068, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2919132', 'n_tokens_mistral': 534, 'n_tokens_neox': 517, 'n_words': 108}