<commit_before>import Backend 1.0
import QtQuick 2.6
import QtQuick.Layouts 1.2
import Qt.labs.controls 1.0
import QtQuick.Dialogs 1.2

Item{           
    width: 760
    height: 480

    ColumnLayout {
        spacing : 0
        anchors.fill: parent
        

        FigureCanvas {
            id: mplView
            objectName : "figure"
                        
            Layout.fillWidth: true
            Layout.fillHeight: true
            
            Layout.minimumWidth: 10
            Layout.minimumHeight: 10
        }
        
        MessageDialog {
            id: messageDialog
        }
        
        FileDialog {
            id: saveFileDialog
            title: "Choose a filename to save to"
            folder: mplView.defaultDirectory
            nameFilters: mplView.fileFilters
            selectedNameFilter: mplView.defaultFileFilter
            selectExisting: false
            
            onAccepted: {
                try{
                    mplView.print_figure(fileUrl)
                }
                catch (error){
                    messageDialog.title = "Error saving file"
                    messageDialog.text = error
                    messageDialog.icon = StandardIcon.Critical
                    messageDialog.open()
                }
            }
        } 

        ToolBar {
            id: toolbar
            
            Layout.alignment: Qt.AlignLeft | Qt.Bottom
        
            RowLayout {
                Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter<commit_msg>Improve toolbar layout by forcing it to fill the window width<commit_after>import Backend 1.0
import QtQuick 2.6
import QtQuick.Layouts 1.2
import Qt.labs.controls 1.0
import QtQuick.Dialogs 1.2

Item{           
    width: 760
    height: 480

    ColumnLayout {
        spacing : 0
        anchors.fill: parent
        

        FigureCanvas {
            id: mplView
            objectName : "figure"
                        
            Layout.fillWidth: true
            Layout.fillHeight: true
            
            Layout.minimumWidth: 10
            Layout.minimumHeight: 10
        }
        
        MessageDialog {
            id: messageDialog
        }
        
        FileDialog {
            id: saveFileDialog
            title: "Choose a filename to save to"
            folder: mplView.defaultDirectory
            nameFilters: mplView.fileFilters
            selectedNameFilter: mplView.defaultFileFilter
            selectExisting: false
            
            onAccepted: {
                try{
                    mplView.print_figure(fileUrl)
                }
                catch (error){
                    messageDialog.title = "Error saving file"
                    messageDialog.text = error
                    messageDialog.icon = StandardIcon.Critical
                    messageDialog.open()
                }
            }
        } 

        ToolBar {
            id: toolbar
            
            Layout.alignment: Qt.AlignLeft | Qt.Bottom
            Layout.fillWidth: true
        
            RowLayout {
                Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
{'fraction_non_alphanumeric': 0.055115616091225846, 'fraction_numerical': 0.013303769401330377, 'mean_word_length': 1.1337837837837839, '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': '5819635', 'n_tokens_mistral': 822, 'n_tokens_neox': 743, 'n_words': 177}