<commit_before>import QtQuick 1.1
import com.nokia.meego 1.0
import org.nemomobile.contacts 1.0

Flickable {
    id: detailViewPortrait
    contentWidth: parent.width
    contentHeight: detailsList.height + (UiConstants.DefaultMargin * 2)
    flickableDirection: Flickable.VerticalFlick
    clip: true

    property Person contact

    Item {
        id: detailsList
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.top: parent.top
        anchors.margins: UiConstants.DefaultMargin
        height: phones.childrenRect.height

        ListView {
            id: phones
            anchors { left: parent.left; right: parent.right; top: parent.top; }
            model: contact.phoneNumbers
            interactive: false
            height: childrenRect.height
            delegate: Item {
                anchors.left: parent.left
                anchors.right: parent.right
                height: UiConstants.ListItemHeightDefault

                Label {
                    text: model.modelData
                    anchors.left: parent.left
                    anchors.verticalCenter: parent.verticalCenter
                }
                ButtonRow {
                    width: 220
                    anchors.right: parent.right
                    anchors.top: parent.top
                    anchors.bottom: parent.bottom
                    anchors.topMargin: UiConstants.DefaultMargin / 2
                    anchors.bottomMargin: UiConstants.DefaultMargin / 2
                    anchors.rightMargin: UiConstants.DefaultMargin
                    exclusive: false
                    Button {
                        height: parent.height
                        iconSource: "image://theme/icon-m-telephony-incoming-call";
                        onClicked: callManager.dial(callManager.defaultProviderId, model.modelData);
                    }
                    Button {
                        height: parent.height
                        iconSource: "image://theme/icon-m-toolbar-send-sms";
                        onClicked: console.log("TODO: Send SMS to " + contact.firstName)
                    }
                }
            }
        }

        ListView {
            id: emails
            anchors { left: parent.left; right: parent.right; top: phones.bottom; }
            model: contact.emailAddresses
            interactive: false
            height: childrenRect.height
            delegate: Item {
                anchors.left: parent.left
                anchors.right: parent.right
                height: UiConstants.ListItemHeightDefault

                Label {
                    text: model.modelData
                    anchors.left: parent.left
                    anchors.verticalCenter: parent.verticalCenter
                }
                Button {
                    width: 110
                    anchors.right: parent.right
                    anchors.top: parent.top
                    anchors.bottom: parent.bottom
                    anchors.topMargin: UiConstants.DefaultMargin / 2
                    anchors.bottomMargin: UiConstants.DefaultMargin / 2
                    anchors.rightMargin: UiConstants.DefaultMargin
                    iconSource: "image://theme/icon-l-email";
                    onClicked: console.log("TODO: Send SMS to " + contact.firstName)
                }
            }
        }
<commit_msg>remove unnecessary Items from contact card<commit_after>import QtQuick 1.1
import com.nokia.meego 1.0
import org.nemomobile.contacts 1.0

Flickable {
    id: detailViewPortrait
    contentWidth: parent.width
    contentHeight: detailsList.height + (UiConstants.DefaultMargin * 2)
    flickableDirection: Flickable.VerticalFlick
    clip: true

    property Person contact

    Item {
        id: detailsList
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.top: parent.top
        anchors.margins: UiConstants.DefaultMargin
        height: phones.childrenRect.height

        ListView {
            id: phones
            anchors { left: parent.left; right: parent.right; top: parent.top; }
            model: contact.phoneNumbers
            interactive: false
            height: childrenRect.height
            delegate: Label {
                anchors.left: parent.left
                anchors.right: parent.right
                height: UiConstants.ListItemHeightDefault
                text: model.modelData
                verticalAlignment: Text.AlignVCenter

                ButtonRow {
                    width: 220
                    anchors.right: parent.right
                    anchors.top: parent.top
                    anchors.bottom: parent.bottom
                    anchors.topMargin: UiConstants.DefaultMargin / 2
                    anchors.bottomMargin: UiConstants.DefaultMargin / 2
                    anchors.rightMargin: UiConstants.DefaultMargin
                    exclusive: false
                    Button {
                        height: parent.height
                        iconSource: "image://theme/icon-m-telephony-incoming-call";
                        onClicked: callManager.dial(callManager.defaultProviderId, model.modelData);
                    }
                    Button {
                        height: parent.height
                        iconSource: "image://theme/icon-m-toolbar-send-sms";
                        onClicked: console.log("TODO: Send SMS to " + contact.firstName)
                    }
                }
            }
        }

        ListView {
            id: emails
            anchors { left: parent.left; right: parent.right; top: phones.bottom; }
            model: contact.emailAddresses
            interactive: false
            height: childrenRect.height
            delegate: Label {
                anchors.left: parent.left
                anchors.right: parent.right
                height: UiConstants.ListItemHeightDefault
                text: model.modelData
                verticalAlignment: Text.AlignVCenter

                Button {
                    width: 110
                    anchors.right: parent.right
                    anchors.top: parent.top
                    anchors.bottom: parent.bottom
                    anchors.topMargin: UiConstants.DefaultMargin / 2
                    anchors.bottomMargin: UiConstants.DefaultMargin / 2
                    anchors.rightMargin: UiConstants.DefaultMargin
                    iconSource: "image://theme/icon-l-email";
                    onClicked: console.log("TODO: Send SMS to " + contact.firstName)
                }
            }
        }

{'fraction_non_alphanumeric': 0.06910019528316058, 'fraction_numerical': 0.005107405738320565, 'mean_word_length': 1.3247206703910615, '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': '2999082', 'n_tokens_mistral': 1661, 'n_tokens_neox': 1559, 'n_words': 325}