<commit_before>import QtQuick 2.5
import QtQuick.Controls 1.4
import QtQuick.Dialogs 1.2
import QtQuick.Window 2.2


Item {
    id: listDocSetsPage
    width: 640
    height: 480

    property alias projectName: projectName.text
    property ListModel docSets
    signal navigateBack()

    Button {
        id: backButton
        text: qsTr("Back")
        width: 50
        anchors.bottom: projectName.bottom
        anchors.bottomMargin: 0
        anchors.top: parent.top
        anchors.topMargin: 0
        anchors.left: parent.left
        anchors.leftMargin: 0
        onClicked: {
            console.log("Project DocList '" + listDocSetsPage.projectName + "' requesting go back...")
            listDocSetsPage.navigateBack()
        }
    }

    Text {
        id: projectName
        anchors.top: parent.top
        anchors.topMargin: 0
        verticalAlignment: Text.AlignVCenter
        horizontalAlignment: Text.AlignHCenter
        font.pointSize: 25
        anchors.left: backButton.right
        anchors.leftMargin: 0
        anchors.bottom: parent.top
        anchors.bottomMargin: -40
        anchors.right: parent.right
        anchors.rightMargin: 0
    }

    GridView {
        id: docSetList
        anchors.leftMargin: 3
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 15
        anchors.right: parent.right
        anchors.rightMargin: 30
        anchors.left: parent.left
        anchors.top: projectName.bottom
        anchors.topMargin: 15
        delegate: Item {
            x: 5
            height: 50
            Column {
                Rectangle {
                    width: 40
                    height: 40
                    color: colorCode
                    anchors.horizontalCenter: parent.horizontalCenter
                }

                Text {
                    x: 5
                    text: name
                    anchors.horizontalCenter: parent.horizontalCenter
                    font.bold: true
                }
                spacing: 5<commit_msg>Added some display scaling to ListDocSets<commit_after>import QtQuick 2.5
import QtQuick.Controls 1.4
import QtQuick.Dialogs 1.2
import QtQuick.Window 2.2


Item {
    id: listDocSetsPage
    width: 640
    height: 480

    property alias projectName: projectName.text
    property ListModel docSets
    signal navigateBack()

    Button {
        id: backButton
        text: qsTr("Back")
        width: 50
        anchors.bottom: projectName.bottom
        anchors.bottomMargin: 0
        anchors.top: parent.top
        anchors.topMargin: 0
        anchors.left: parent.left
        anchors.leftMargin: Screen.pixelDensity*5
        onClicked: {
            console.log("Project DocList '" + listDocSetsPage.projectName + "' requesting go back...")
            listDocSetsPage.navigateBack()
        }
    }

    Text {
        id: projectName
        anchors.top: parent.top
        anchors.topMargin: 0
        verticalAlignment: Text.AlignVCenter
        horizontalAlignment: Text.AlignHCenter
        font.pointSize: 25
        anchors.left: backButton.right
        anchors.leftMargin: 0
        anchors.bottom: parent.top
        anchors.bottomMargin: -40
        anchors.right: parent.right
        anchors.rightMargin: Screen.pixelDensity*5
    }

    GridView {
        id: docSetList
        anchors.bottom: parent.bottom
        anchors.bottomMargin: Screen.pixelDensity*5
        anchors.right: parent.right
        anchors.rightMargin: Screen.pixelDensity*10
        anchors.left: parent.left
        anchors.leftMargin: Screen.pixelDensity*10
        anchors.top: projectName.bottom
        anchors.topMargin: Screen.pixelDensity*5
        delegate: Item {
            x: 5
            height: 50
            Column {
                Rectangle {
                    width: 40
                    height: 40
                    color: colorCode
                    anchors.horizontalCenter: parent.horizontalCenter
                }

                Text {
                    x: 5
                    text: name
                    anchors.horizontalCenter: parent.horizontalCenter
                    font.bold: true
                }
                spacing: 5
{'fraction_non_alphanumeric': 0.06839230586559013, 'fraction_numerical': 0.019710282593208263, 'mean_word_length': 1.5682926829268293, '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': '6872658', 'n_tokens_mistral': 1201, 'n_tokens_neox': 1113, 'n_words': 256}