<commit_before>/*
 *   Copyright 2010 <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 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 Qt 4.7
import org.kde.plasma.graphicswidgets 0.1 as PlasmaWidgets
import org.kde.plasma.core 0.1 as PlasmaCore
import org.kde.qtextracomponents 0.1

ListItem {
    id: listItem
    property string name
    property string description
    property string icon
    // property variant actions


    QIconItem {
        id: iconItem
        x: y
        anchors.verticalCenter: parent.verticalCenter
        width: 48
        height: 68
        icon: QIcon(listItem.icon)

        MouseArea {
            anchors.fill: parent
            onClicked: {
                print("#####")
                var service = recommendationsSource.serviceForSource(DataEngineSource)
                var operation = service.operationDescription("executeAction")
                operation.Id = "" //actions[0].actionId

                service.startOperationCall(operation)
            }
        }
    }

    Column {
        anchors.left: iconItem.right
        anchors.leftMargin: 8
        anchors.right: listItem.padding.right
        anchors.verticalCenter: listItem.verticalCenter
        Column {
            id : delegateLayout
            width: parent.width
            spacing: 5

            Text {
                width: delegateLayout.width
                color: theme.textColor
                font.pixelSize: 15
                text: listItem.name
                MouseArea {
                    anchors.fill: parent
                    onClicked: {
                        print("#####")
                        var service = recommendationsSource.serviceForSource(DataEngineSource)
                        var operation = service.operationDescription("executeAction")
                        operation.Id = "" //actions[0].actionId

                        service.startOperationCall(operation)
                    }
                }
            }
            Text {
                color: theme.textColor
                font.pixelSize: 13
                width: delegateLayout.width
                text: listItem.description
                visible: listItem.description.length>0
            }<commit_msg>The action has a new name<commit_after>/*
 *   Copyright 2010 <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 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 Qt 4.7
import org.kde.plasma.graphicswidgets 0.1 as PlasmaWidgets
import org.kde.plasma.core 0.1 as PlasmaCore
import org.kde.qtextracomponents 0.1

ListItem {
    id: listItem
    property string name
    property string description
    property string icon
    // property variant actions


    QIconItem {
        id: iconItem
        x: y
        anchors.verticalCenter: parent.verticalCenter
        width: 48
        height: 68
        icon: QIcon(listItem.icon)

        MouseArea {
            anchors.fill: parent
            onClicked: {
                var service = recommendationsSource.serviceForSource(DataEngineSource)
                var operation = service.operationDescription("executeAction")
                operation.Action = "" //actions[0].actionId

                service.startOperationCall(operation)
            }
        }
    }

    Column {
        anchors.left: iconItem.right
        anchors.leftMargin: 8
        anchors.right: listItem.padding.right
        anchors.verticalCenter: listItem.verticalCenter
        Column {
            id : delegateLayout
            width: parent.width
            spacing: 5

            Text {
                width: delegateLayout.width
                color: theme.textColor
                font.pixelSize: 15
                text: listItem.name
                MouseArea {
                    anchors.fill: parent
                    onClicked: {
                        var service = recommendationsSource.serviceForSource(DataEngineSource)
                        var operation = service.operationDescription("executeAction")
                        operation.Action = "" //actions[0].actionId

                        service.startOperationCall(operation)
                    }
                }
            }
            Text {
                color: theme.textColor
                font.pixelSize: 13
                width: delegateLayout.width
                text: listItem.description
                visible: listItem.description.length>0
            }
{'fraction_non_alphanumeric': 0.06484994825802001, 'fraction_numerical': 0.012763021731631597, 'mean_word_length': 1.748341232227488, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '4048061', 'n_tokens_mistral': 1466, 'n_tokens_neox': 1350, 'n_words': 453}