<commit_before>import QtQuick 2.0
import QtQuick.Controls 1.0
import QtQuick.Controls.Styles 1.0
import QtQuick.Layouts 1.0
import QtGraphicalEffects 1.0

ApplicationWindow {
    id: window
    width: 800
    height: 600
    menuBar: MenuBar {
        id: menu
        Menu {
            title: "Hello"
            MenuItem { text: "World" }
        }
    }
    Item {
        anchors.fill: parent
        SplitView {
            anchors.fill: parent
            orientation: Qt.Vertical
            TabView {
                Layout.fillHeight: true
                id: tabs
                style: TabViewStyle {
                    frameOverlap: 0
                    tab: Item {
                        implicitWidth: 180
                        implicitHeight: 28
                        BorderImage {
                            source: styleData.selected ? "../../3rdparty/bundles/themes/soda/Soda Dark/tab-active.png" : "../../3rdparty/bundles/themes/soda/Soda Dark/tab-inactive.png"
                            border { left: 5; top: 5; right: 5; bottom: 5 }
                            width: 180
                            height: 25
                            Text {
                                id: tab_title
                                anchors.centerIn: parent
                                text: styleData.title
                                color: frontend.defaultFg()
                                anchors.verticalCenterOffset: 1
                            }
                        }
                    }
                    tabBar: Image {
                        fillMode: Image.TileHorizontally
                        source: "../../3rdparty/bundles/themes/soda/Soda Dark/tabset-background.png"
                    }
                    tabsMovable: true
                    frame: Rectangle { color: frontend.defaultBg() }
                    tabOverlap: 5
                }
                Tab {
                    anchors.fill: parent
                    title: editor.activeWindow().activeView().buffer().fileName()
                    Item {
                        id: viewItem
                        property var myView: editor.activeWindow().activeView()
                        property var viewLines: myView.buffer().rowCol(myView.buffer().size())[0]
                        Rectangle  {
                            color: frontend.defaultBg()
                            anchors.fill: parent
                        }
                        ListView {
                            id: view
                            anchors.fill: parent
                            model: viewLines<commit_msg>frontend/qml: update main.qml. Fixes #241.<commit_after>import QtQuick 2.0
import QtQuick.Controls 1.0
import QtQuick.Controls.Styles 1.0
import QtQuick.Layouts 1.0
import QtGraphicalEffects 1.0

ApplicationWindow {
    id: window
    width: 800
    height: 600
    menuBar: MenuBar {
        id: menu
        Menu {
            title: "Hello"
            MenuItem { text: "World" }
        }
    }
    Item {
        anchors.fill: parent
        SplitView {
            anchors.fill: parent
            orientation: Qt.Vertical
            TabView {
                Layout.fillHeight: true
                id: tabs
                style: TabViewStyle {
                    frameOverlap: 0
                    tab: Item {
                        implicitWidth: 180
                        implicitHeight: 28
                        BorderImage {
                            source: styleData.selected ? "../../3rdparty/bundles/themes/soda/Soda Dark/tab-active.png" : "../../3rdparty/bundles/themes/soda/Soda Dark/tab-inactive.png"
                            border { left: 5; top: 5; right: 5; bottom: 5 }
                            width: 180
                            height: 25
                            Text {
                                id: tab_title
                                anchors.centerIn: parent
                                text: styleData.title
                                color: frontend.defaultFg()
                                anchors.verticalCenterOffset: 1
                            }
                        }
                    }
                    tabBar: Image {
                        fillMode: Image.TileHorizontally
                        source: "../../3rdparty/bundles/themes/soda/Soda Dark/tabset-background.png"
                    }
                    tabsMovable: true
                    frame: Rectangle { color: frontend.defaultBg() }
                    tabOverlap: 5
                }
                Tab {
                    anchors.fill: parent
                    title: editor.activeWindow.activeView.buffer().filename
                    Item {
                        id: viewItem
                        property var myView: editor.activeWindow.activeView
                        property var viewLines: myView.buffer().rowCol(myView.buffer().size())[0]
                        Rectangle  {
                            color: frontend.defaultBg()
                            anchors.fill: parent
                        }
                        ListView {
                            id: view
                            anchors.fill: parent
                            model: viewLines
{'fraction_non_alphanumeric': 0.0723300056507817, 'fraction_numerical': 0.014503673008099453, 'mean_word_length': 0.8716954529432499, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3179421', 'n_tokens_mistral': 1306, 'n_tokens_neox': 1170, 'n_words': 261}