<commit_before>import QtQuick 2.0
import Sailfish.Silica 1.0
import harbour.zatraty 1.0

CoverBackground {

    Column {
           anchors.centerIn: parent
           width: parent.width
           spacing: Theme.paddingMedium

           Image {
               anchors.horizontalCenter: parent.horizontalCenter
               source: "/usr/share/icons/hicolor/86x86/apps/harbour-zatraty.png"
           }

           Label {
               anchors.horizontalCenter: parent.horizontalCenter
               text: qsTr("This month:")
               color: Theme.highlightColor
               font.pixelSize: Theme.fontSizeMedium
           }

           Label {
               id: label
               anchors.horizontalCenter: parent.horizontalCenter
               color: Theme.highlightColor
               font.pixelSize: Theme.fontSizeLarge
               text: qsTr("%1 %2", "1 is amount and 2 is currency")
                        .arg(ExpenseModel.totalMonthAmount())
                        .arg(Settings.currency)
           }
    }

    CoverActionList {
        id: coverAction

        CoverAction {
            iconSource: "image://theme/icon-cover-new"
            onTriggered: {
                if(!appWindow.quickAddOpen) {
                    var dialog = pageStack.push(Qt.resolvedUrl("../components/NewEntryDialog.qml"));
                    dialog.accepted.connect(function() {
                        ExpenseModel.add(dialog.category, dialog.amount, dialog.desc)
                    })
                }
                appWindow.activate();
            }
        }
    }
}

<commit_msg>Rounded value on cover page<commit_after>import QtQuick 2.0
import Sailfish.Silica 1.0
import harbour.zatraty 1.0

CoverBackground {

    Column {
           anchors.centerIn: parent
           width: parent.width
           spacing: Theme.paddingMedium

           Image {
               anchors.horizontalCenter: parent.horizontalCenter
               source: "/usr/share/icons/hicolor/86x86/apps/harbour-zatraty.png"
           }

           Label {
               anchors.horizontalCenter: parent.horizontalCenter
               text: qsTr("This month:")
               color: Theme.highlightColor
               font.pixelSize: Theme.fontSizeMedium
           }

           Label {
               id: label
               anchors.horizontalCenter: parent.horizontalCenter
               color: Theme.highlightColor
               font.pixelSize: Theme.fontSizeLarge
               text: qsTr("%1 %2", "1 is amount and 2 is currency")
                        .arg(Math.round(ExpenseModel.totalMonthAmount()))
                        .arg(Settings.currency)
           }
    }

    CoverActionList {
        id: coverAction

        CoverAction {
            iconSource: "image://theme/icon-cover-new"
            onTriggered: {
                if(!appWindow.quickAddOpen) {
                    var dialog = pageStack.push(Qt.resolvedUrl("../components/NewEntryDialog.qml"));
                    dialog.accepted.connect(function() {
                        ExpenseModel.add(dialog.category, dialog.amount, dialog.desc)
                    })
                }
                appWindow.activate();
            }
        }
    }
}


{'fraction_non_alphanumeric': 0.08729179518815545, 'fraction_numerical': 0.00863664404688464, 'mean_word_length': 1.405786350148368, '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': '1842592', 'n_tokens_mistral': 856, 'n_tokens_neox': 796, 'n_words': 142}