<commit_before>#include "arearect.h"
#include <QPainter>

AreaRect::AreaRect(Area *area, QGraphicsScene *scene, QGraphicsItem *parent) :
    QGraphicsRectItem(parent, scene)
{
    _area = area;

    setFlag(QGraphicsItem::ItemIsMovable);
    setFlag(QGraphicsItem::ItemIsSelectable);

    setRect(QRectF(area->rect()));
}

void AreaRect::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
{
    QGraphicsRectItem::mouseReleaseEvent(event);
    _area->setPos(pos().toPoint());
}<commit_msg>setting zvalue of areas to 1: area will ever be located over the background (which has zvalue = 0)<commit_after>#include "arearect.h"
#include <QPainter>

AreaRect::AreaRect(Area *area, QGraphicsScene *scene, QGraphicsItem *parent) :
    QGraphicsRectItem(parent, scene)
{
    _area = area;

    setZValue(1);

    setFlag(QGraphicsItem::ItemIsMovable);
    setFlag(QGraphicsItem::ItemIsSelectable);

    setRect(QRectF(area->rect()));
}

void AreaRect::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
{
    QGraphicsRectItem::mouseReleaseEvent(event);
    _area->setPos(pos().toPoint());
}
{'fraction_non_alphanumeric': 0.1321626617375231, 'fraction_numerical': 0.0027726432532347504, 'mean_word_length': 6.172185430463577, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2986247', 'n_tokens_mistral': 365, 'n_tokens_neox': 351, 'n_words': 62}