<commit_before>import QtQuick 2.0
import Sailfish.Silica 1.0

Item {
    height: childrenRect.height
    width: listView.width

    PageHeader {
        id: header
        title: name
    }

    ChannelImage {
        id: channelImage
        size: BusyIndicatorSize.Medium
        source: imageUrl
        height: Theme.itemSizeLarge * 2
        width: Theme.itemSizeLarge * 2
        anchors {
            left: parent.left
            top: header.bottom
            leftMargin: Theme.paddingSmall
        }
    }

    Image {
        id: favoriteImage
        source: "qrc:/icon/favorite"
        height: Theme.iconSizeSmall * 0.75
        width: Theme.iconSizeSmall * 0.75
        anchors {
            top: header.top
            right: header.right
            topMargin: Theme.paddingSmall
            rightMargin: Theme.paddingSmall
        }
        fillMode: Image.PreserveAspectFit
        visible: isFavorite
    }

    Label {
        id: channelDescriptionLabel
        text: description
        anchors {
            left: channelImage.right
            right: parent.right
            top: header.bottom
            rightMargin: Theme.paddingSmall
            leftMargin: Theme.paddingSmall
        }
        color: Theme.secondaryColor
        font.pixelSize: Theme.fontSizeExtraSmall
        wrapMode: Text.WrapAtWordBoundaryOrAnywhere
        truncationMode: TruncationMode.Fade
        maximumLineCount: 4
    }

    Label {
        id: channelDjLabel
        text: dj ? "by " + dj : ""
        anchors {
            top: channelDescriptionLabel.bottom
            right: parent.right
            rightMargin: Theme.paddingSmall
        }
        color: Theme.secondaryColor
        font {
            pixelSize: Theme.fontSizeExtraSmall
            italic: true
        }
        horizontalAlignment: Text.AlignRight

        MouseArea {
            anchors.fill: parent
            onClicked: mailDj()
        }
    }

    function mailDj() {
        if (djMail)
            Qt.openUrlExternally("mailto:"+djMail+"?subject=["+name+"] ")
    }
}<commit_msg>changed a bit the channel page header: make it understand DJ name is clickable<commit_after>import QtQuick 2.0
import Sailfish.Silica 1.0

Item {
    height: childrenRect.height
    width: listView.width

    PageHeader {
        id: header
        title: name
    }

    ChannelImage {
        id: channelImage
        size: BusyIndicatorSize.Medium
        source: imageUrl
        height: Theme.itemSizeLarge * 2
        width: Theme.itemSizeLarge * 2
        anchors {
            left: parent.left
            top: header.bottom
            leftMargin: Theme.paddingSmall
        }
    }

    Image {
        id: favoriteImage
        source: "qrc:/icon/favorite"
        height: Theme.iconSizeSmall * 0.75
        width: Theme.iconSizeSmall * 0.75
        anchors {
            top: header.top
            right: header.right
            topMargin: Theme.paddingSmall
            rightMargin: Theme.paddingSmall
        }
        fillMode: Image.PreserveAspectFit
        visible: isFavorite
    }

    Label {
        id: channelDescriptionLabel
        text: description
        anchors {
            left: channelImage.right
            right: parent.right
            top: header.bottom
            rightMargin: Theme.paddingSmall
            leftMargin: Theme.paddingSmall
        }
        font.pixelSize: Theme.fontSizeExtraSmall
        wrapMode: Text.WrapAtWordBoundaryOrAnywhere
        truncationMode: TruncationMode.Fade
        maximumLineCount: 4
    }

    Label {
        id: channelDjLabel
        text: dj ? "by " + dj : ""
        anchors {
            top: channelDescriptionLabel.bottom
            right: parent.right
            rightMargin: Theme.paddingSmall
        }
        color: Theme.highlightColor
        font {
            pixelSize: Theme.fontSizeExtraSmall
            italic: true
        }
        horizontalAlignment: Text.AlignRight

        MouseArea {
            anchors.fill: parent
            onClicked: mailDj()
        }
    }

    function mailDj() {
        if (djMail)
            Qt.openUrlExternally("mailto:"+djMail+"?subject=["+name+"] ")
    }
}
{'fraction_non_alphanumeric': 0.07192353643966547, 'fraction_numerical': 0.006212664277180406, 'mean_word_length': 1.6310496543054682, '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': '2390097', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1132, 'n_words': 249}