<commit_before>/*
 *   Copyright 2015 <NAME> <<EMAIL>>
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU Library General Public License as
 *   published by the Free Software Foundation; either version 2, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU Library General Public License for more details
 *
 *   You should have received a copy of the GNU Library General Public
 *   License along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

import QtQuick 2.1
import QtQuick.Layouts 1.2
import QtGraphicalEffects 1.0
import org.kde.kirigami 2.0

Item {
    id: canvas
    width: height
    height: Units.iconSizes.smallMedium
    property real morph: 0
    property color color: Theme.textColor
    opacity: 0.8
    layer.enabled: true

    Item {
        anchors {
            fill: parent
            margins: Units.smallSpacing
        }
        Rectangle {
            anchors {
                right: parent.right
                top: parent.top
                rightMargin: canvas.width/4 * morph
            }
            antialiasing: true
            transformOrigin: Item.Right
            width: (1 - morph) * parent.width + morph * ((parent.width / Math.sqrt(2)) - height/2)
            height: Math.round(Units.smallSpacing / 2)
            color: canvas.color
            rotation: -45 * morph
        }

        Rectangle {
            anchors.centerIn: parent
            width: parent.width - parent.width * morph
            height: Math.round(Units.smallSpacing / 2)
            color: canvas.color
        }

        Rectangle {
            anchors {
                right: parent.right
                bottom: parent.bottom
                rightMargin: canvas.width/4 * morph
            }
            antialiasing: true
            transformOrigin: Item.Right
            width: (1 - morph) * parent.width + morph * ((parent.width / Math.sqrt(2)) - height/2)
            height: Math.round(Units.smallSpacing / 2)
            color: canvas.color
            rotation: 45 * morph
        }
    }
}
<commit_msg>adjustments in the context icon<commit_after>/*
 *   Copyright 2015 <NAME> <<EMAIL>>
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU Library General Public License as
 *   published by the Free Software Foundation; either version 2, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU Library General Public License for more details
 *
 *   You should have received a copy of the GNU Library General Public
 *   License along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

import QtQuick 2.1
import QtQuick.Layouts 1.2
import QtGraphicalEffects 1.0
import org.kde.kirigami 2.0

Item {
    id: canvas
    width: height
    height: Units.iconSizes.smallMedium
    property real morph: 0
    property color color: Theme.textColor
    opacity: 0.8
    layer.enabled: true

    Item {
        id: iconRoot
        anchors {
            fill: parent
            margins: Units.smallSpacing
        }
        property int thickness: Math.round(Units.smallSpacing / 2)
        Rectangle {
            anchors {
                right: parent.right
                top: parent.top
                rightMargin: canvas.width/4 * morph
            }
            antialiasing: true
            transformOrigin: Item.Right
            width: (1 - morph) * parent.width + morph * ((parent.width / Math.sqrt(2)) - height/2)
            height: iconRoot.thickness
            color: canvas.color
            rotation: -45 * morph
        }

        Rectangle {
            anchors.centerIn: parent
            width: parent.width - parent.width * morph
            height: iconRoot.thickness
            color: canvas.color
        }

        Rectangle {
            anchors {
                right: parent.right
                bottom: parent.bottom
                rightMargin: canvas.width/4 * morph
            }
            antialiasing: true
            transformOrigin: Item.Right
            width: (1 - morph) * parent.width + morph * ((parent.width / Math.sqrt(2)) - height/2)
            height: iconRoot.thickness
            color: canvas.color
            rotation: 45 * morph
        }
    }
}

{'fraction_non_alphanumeric': 0.07450738916256158, 'fraction_numerical': 0.01683087027914614, 'mean_word_length': 1.829849012775842, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4544560', 'n_tokens_mistral': 1334, 'n_tokens_neox': 1276, 'n_words': 458}