<commit_before>import Qt 4.6

import "content"
import "fieldtext"

Item {
    id: WebBrowser

    property string urlString : "http://qt.nokia.com/"

    state: "Normal"

    width: 640
    height: 480

    Item {
        id: WebPanel
        anchors.fill: parent
        clip: true
        Rectangle {
            color: "#555555"
            anchors.fill: parent
        }
        Image {
            source: "content/pics/softshadow-bottom.png"
            width: WebPanel.width
            height: 16
        }
        Image {
            source: "content/pics/softshadow-top.png"
            width: WebPanel.width
            height: 16
            anchors.bottom: Footer.top
        }
        RectSoftShadow {
            x: -Flick.viewportX
            y: -Flick.viewportY
            width: MyWebView.width*MyWebView.scale
            height: Flick.y+MyWebView.height*MyWebView.scale
        }
        Item {
            id: HeaderSpace
            width: parent.width
            height: 60
            z: 1

            Rectangle {
                id: HeaderSpaceTint
                color: "black"
                opacity: 0
                anchors.fill: parent
             }

            Image {
                id: Header
                source: "content/pics/header.png"
                width: parent.width
                height: 64
                state: "Normal"
                x: Flick.viewportX < 0 ? -Flick.viewportX : Flick.viewportX > Flick.viewportWidth-Flick.width
                                         ? -Flick.viewportX+Flick.viewportWidth-Flick.width : 0
                y: Flick.viewportY < 0 ? -Flick.viewportY : progressOff*
                                        (Flick.viewportY>height?-height:-Flick.viewportY)
                Text {
                    id: HeaderText

                    text: MyWebView.title!='' || MyWebView.progress == 1.0 ? MyWebView.title : 'Loading...'
                    elide: "ElideRight"

                    color: "white"
                    styleColor: "black"
                    style: "Raised"

                    font.family: "Helvetica"
                    font.pointSize: 10
                    font.bold: true
<commit_msg>Fixed UrlBar to not clip off top 3 pixels of the page<commit_after>import Qt 4.6

import "content"
import "fieldtext"

Item {
    id: WebBrowser

    property string urlString : "http://qt.nokia.com/"

    state: "Normal"

    width: 640
    height: 480

    Item {
        id: WebPanel
        anchors.fill: parent
        clip: true
        Rectangle {
            color: "#555555"
            anchors.fill: parent
        }
        Image {
            source: "content/pics/softshadow-bottom.png"
            width: WebPanel.width
            height: 16
        }
        Image {
            source: "content/pics/softshadow-top.png"
            width: WebPanel.width
            height: 16
            anchors.bottom: Footer.top
        }
        RectSoftShadow {
            x: -Flick.viewportX
            y: -Flick.viewportY
            width: MyWebView.width*MyWebView.scale
            height: Flick.y+MyWebView.height*MyWebView.scale
        }
        Item {
            id: HeaderSpace
            width: parent.width
            height: 60
            z: 1

            Rectangle {
                id: HeaderSpaceTint
                color: "black"
                opacity: 0
                anchors.fill: parent
             }

            Image {
                id: Header
                source: "content/pics/header.png"
                width: parent.width
                height: 60
                state: "Normal"
                x: Flick.viewportX < 0 ? -Flick.viewportX : Flick.viewportX > Flick.viewportWidth-Flick.width
                                         ? -Flick.viewportX+Flick.viewportWidth-Flick.width : 0
                y: Flick.viewportY < 0 ? -Flick.viewportY : progressOff*
                                        (Flick.viewportY>height?-height:-Flick.viewportY)
                Text {
                    id: HeaderText

                    text: MyWebView.title!='' || MyWebView.progress == 1.0 ? MyWebView.title : 'Loading...'
                    elide: "ElideRight"

                    color: "white"
                    styleColor: "black"
                    style: "Raised"

                    font.family: "Helvetica"
                    font.pointSize: 10
                    font.bold: true

{'fraction_non_alphanumeric': 0.0855085508550855, 'fraction_numerical': 0.014176417641764177, 'mean_word_length': 1.1227316141356256, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7578595', 'n_tokens_mistral': 1295, 'n_tokens_neox': 1175, 'n_words': 257}