<commit_before>import QtQuick 2.7
import QtQuick.Layouts 1.2
import QtQuick.Controls 1.4
import radiance 1.0

Item {
    property real oversample: 4
    property alias inputArrows: canvas.inputArrows
    property alias outputArrow: canvas.outputArrow
    property alias arrowWidth: canvas.arrowWidth
    property alias arrowHeight: canvas.arrowHeight
    property alias selected: canvas.selected;
    property alias highlight: canvas.highlight;
    property alias bottomColor: canvas.bottomColor;
    property alias topColor: canvas.topColor;
    property alias borderWidth: canvas.borderWidth;
    property alias borderColor: canvas.borderColor;
    property alias padding: canvas.padding;
    property alias blockWidth: canvas.blockWidth;
    property alias blockHeight: canvas.blockHeight;

    scale: 1 / oversample

    anchors.rightMargin: -arrowWidth - borderWidth / 2;
    anchors.leftMargin: -borderWidth / 2;

    Canvas {
        id: canvas
        property bool selected: false;
        property bool highlight: false;
        property color bottomColor: selected ? RadianceStyle.tileBackgroundHighlightColor : RadianceStyle.tileBackgroundColor;
        property color topColor: Qt.lighter(bottomColor, 1.75);
        property real borderWidth: 1;
        property color borderColor: highlight ? RadianceStyle.tileLineHighlightColor : RadianceStyle.tileLineColor;
        property int padding: 3;<commit_msg>remove oversampling to fix performance issues<commit_after>import QtQuick 2.7
import QtQuick.Layouts 1.2
import QtQuick.Controls 1.4
import radiance 1.0

Item {
    property real oversample: 1
    property alias inputArrows: canvas.inputArrows
    property alias outputArrow: canvas.outputArrow
    property alias arrowWidth: canvas.arrowWidth
    property alias arrowHeight: canvas.arrowHeight
    property alias selected: canvas.selected;
    property alias highlight: canvas.highlight;
    property alias bottomColor: canvas.bottomColor;
    property alias topColor: canvas.topColor;
    property alias borderWidth: canvas.borderWidth;
    property alias borderColor: canvas.borderColor;
    property alias padding: canvas.padding;
    property alias blockWidth: canvas.blockWidth;
    property alias blockHeight: canvas.blockHeight;

    scale: 1 / oversample

    anchors.rightMargin: -arrowWidth - borderWidth / 2;
    anchors.leftMargin: -borderWidth / 2;

    Canvas {
        id: canvas
        property bool selected: false;
        property bool highlight: false;
        property color bottomColor: selected ? RadianceStyle.tileBackgroundHighlightColor : RadianceStyle.tileBackgroundColor;
        property color topColor: Qt.lighter(bottomColor, 1.75);
        property real borderWidth: 1;
        property color borderColor: highlight ? RadianceStyle.tileLineHighlightColor : RadianceStyle.tileLineColor;
        property int padding: 3;
{'fraction_non_alphanumeric': 0.06128133704735376, 'fraction_numerical': 0.011838440111420613, 'mean_word_length': 3.7883333333333336, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '793418', 'n_tokens_mistral': 750, 'n_tokens_neox': 717, 'n_words': 234}