<commit_before>import QtQuick 2.0
import QtGraphicalEffects 1.0
import "Extra" 1.0

Item {
    id: root

    width: root.width * 0.2
    height: width

    property string imageUrl

    property color color: Globals.style.colorPalette.buttonColor
    property color colorWhenPressed: Globals.style.colorPalette.buttonColorPressed
    property color borderColor: Globals.style.colorPalette.buttonBorderColor

    signal clicked()

    Rectangle {
        id: background

        anchors.fill: parent
        anchors.margins: Globals.style.shadowWidth * 2

        color: mouseArea.pressed ? root.colorWhenPressed : root.color
        radius: width / 2

        Image {
            anchors.fill: parent
            anchors.margins: parent.width * 0.2

            source: root.imageUrl
            fillMode: Image.PreserveAspectFit
            smooth: true
        }

        MouseArea {
            id: mouseArea
            anchors.fill: parent
            onClicked: {
                root.clicked();
            }
        }
    }

    DropShadow {
        anchors.fill: background

        fast: false<commit_msg>visual update<commit_after>import QtQuick 2.0
import QtGraphicalEffects 1.0
import "Extra" 1.0

Item {
    id: root

    width: root.width * 0.2
    height: width

    property string imageUrl

    property color color: Globals.style.colorPalette.buttonColor
    property color colorWhenPressed: Globals.style.colorPalette.buttonColorPressed
    property color borderColor: Globals.style.colorPalette.buttonBorderColor

    signal clicked()

    Rectangle {
        id: background

        anchors.fill: parent
        anchors.margins: Globals.style.shadowWidth

        color: mouseArea.pressed ? root.colorWhenPressed : root.color
        radius: width / 2

        Image {
            anchors.fill: parent
            anchors.margins: parent.width * 0.2

            source: root.imageUrl
            fillMode: Image.PreserveAspectFit
            smooth: true
        }

        MouseArea {
            id: mouseArea
            anchors.fill: parent
            onClicked: {
                root.clicked();
            }
        }
    }

    DropShadow {
        anchors.fill: background

        fast: false
{'fraction_non_alphanumeric': 0.06873315363881402, 'fraction_numerical': 0.010332434860736747, 'mean_word_length': 1.8698453608247423, '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': '2094364', 'n_tokens_mistral': 654, 'n_tokens_neox': 613, 'n_words': 145}