<commit_before>import QtQuick 2.2
import QtQuick.Controls 1.0
import QtQuick.Layouts 1.0
import QtQuick.Controls.Styles 1.0
import QtQuick.Dialogs 1.0
import OperationModel 1.0
import MasterCatalogModel 1.0
import "../../Global.js" as Global

Item {
    id : operationProps
    property OperationModel operationmd

    Column {
        id : simpleProps
        width : parent.width
        Row {
            height : Global.rowHeight
            width : parent.width
            Text{
                id : label1
                text : qsTr("Description")
                width : 60
                font.bold : true
            }

            Text{
                width : parent.width - label1.width
                height : Global.rowHeight
                id : desc
            }
        }
        Row {
            height : Global.rowHeight
            width : parent.width
            Text{
                id : label2
                text : qsTr("Definition")
                width : 60
                font.bold : true
            }
            Text {
                id : syntax
                width : parent.width - label2.width
                height : Global.rowHeight
            }
        }
        Row {
            height : Global.rowHeight
            width : parent.width
            Text{
                id : label3
                text : qsTr("Keywords")
                width : 60
                font.bold : true
            }
            Text {
                id : keywords
                width : parent.width - label2.width
                height : Global.rowHeight
            }
        }

    }

     Text {
        anchors.top : simpleProps.bottom
        id : inputLabel
        text : qsTr("Input parameters (") + getProperty("inparameters") + ")"
    }
    Rectangle {
        id : inputParams
        anchors.top : inputLabel.bottom
        width : parent.width
        height : 110
        border.width : 1
        border.color : "grey"
        ScrollView {
            anchors.fill: parent
            anchors.margins: 1
            ListView {
                anchors.fill: parent
                id : inputList
                clip : true
                delegate : ParameterDelegate{
                    parmnam: operationmd ? operationmd.inputparameterName(index) : ""
                    parmtype: operationmd ? operationmd.inputparameterType(index) : ""
                    parmdesc: operationmd ? operationmd.inputparameterDescription(index) : ""
                }
            }
        }
    }
    Text {
        anchors.top : inputParams.bottom
        id : outputLabel
        text : qsTr("Output parameters (") + getProperty("outparameters") + ")"
    }
    Rectangle {
        id : outputParams
        anchors.top : outputLabel.bottom
        width : parent.width
        height : 30
        border.width : 1
        border.color : "grey"
        ScrollView {
            anchors.fill: parent
            anchors.margins: 1
            ListView {
                anchors.fill: parent
                id : outputList
                clip : true
                delegate : ParameterDelegate{
                    parmnam: operationmd ? operationmd.outputparameterName(index) : ""
                    parmtype: operationmd ? operationmd.outputparameterType(index) : ""
                    parmdesc: operationmd ? operationmd.outputparameterDescription(index) : ""
                }
            }
        }
    }

    Component.onCompleted: {
        operationmd = operation(id)
        if ( operationmd){
            desc.text = operationmd.description
            syntax.text = operationmd.syntax()
            keywords.text = operationmd.keywords();
            inputList.model = operationmd.inParamNames<commit_msg>invokable syntax has become a property<commit_after>import QtQuick 2.2
import QtQuick.Controls 1.0
import QtQuick.Layouts 1.0
import QtQuick.Controls.Styles 1.0
import QtQuick.Dialogs 1.0
import OperationModel 1.0
import MasterCatalogModel 1.0
import "../../Global.js" as Global

Item {
    id : operationProps
    property OperationModel operationmd

    Column {
        id : simpleProps
        width : parent.width
        Row {
            height : Global.rowHeight
            width : parent.width
            Text{
                id : label1
                text : qsTr("Description")
                width : 60
                font.bold : true
            }

            Text{
                width : parent.width - label1.width
                height : Global.rowHeight
                id : desc
            }
        }
        Row {
            height : Global.rowHeight
            width : parent.width
            Text{
                id : label2
                text : qsTr("Definition")
                width : 60
                font.bold : true
            }
            Text {
                id : syntax
                width : parent.width - label2.width
                height : Global.rowHeight
            }
        }
        Row {
            height : Global.rowHeight
            width : parent.width
            Text{
                id : label3
                text : qsTr("Keywords")
                width : 60
                font.bold : true
            }
            Text {
                id : keywords
                width : parent.width - label2.width
                height : Global.rowHeight
            }
        }

    }

     Text {
        anchors.top : simpleProps.bottom
        id : inputLabel
        text : qsTr("Input parameters (") + getProperty("inparameters") + ")"
    }
    Rectangle {
        id : inputParams
        anchors.top : inputLabel.bottom
        width : parent.width
        height : 110
        border.width : 1
        border.color : "grey"
        ScrollView {
            anchors.fill: parent
            anchors.margins: 1
            ListView {
                anchors.fill: parent
                id : inputList
                clip : true
                delegate : ParameterDelegate{
                    parmnam: operationmd ? operationmd.inputparameterName(index) : ""
                    parmtype: operationmd ? operationmd.inputparameterType(index) : ""
                    parmdesc: operationmd ? operationmd.inputparameterDescription(index) : ""
                }
            }
        }
    }
    Text {
        anchors.top : inputParams.bottom
        id : outputLabel
        text : qsTr("Output parameters (") + getProperty("outparameters") + ")"
    }
    Rectangle {
        id : outputParams
        anchors.top : outputLabel.bottom
        width : parent.width
        height : 30
        border.width : 1
        border.color : "grey"
        ScrollView {
            anchors.fill: parent
            anchors.margins: 1
            ListView {
                anchors.fill: parent
                id : outputList
                clip : true
                delegate : ParameterDelegate{
                    parmnam: operationmd ? operationmd.outputparameterName(index) : ""
                    parmtype: operationmd ? operationmd.outputparameterType(index) : ""
                    parmdesc: operationmd ? operationmd.outputparameterDescription(index) : ""
                }
            }
        }
    }

    Component.onCompleted: {
        operationmd = operation(id)
        if ( operationmd){
            desc.text = operationmd.description
            syntax.text = operationmd.syntax
            keywords.text = operationmd.keywords;
            inputList.model = operationmd.inParamNames
{'fraction_non_alphanumeric': 0.07501656726308814, 'fraction_numerical': 0.00927766732935719, 'mean_word_length': 1.2207180694526192, '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': '6646927', 'n_tokens_mistral': 1939, 'n_tokens_neox': 1800, 'n_words': 414}