<commit_before>import Qt 4.7

Item {
    height: 300
    width: 400

    Component {
        id: contactsDelegate
        Rectangle {
            border.width: 1
            border.color: "black"
            width: parent.width - 4
            anchors.horizontalCenter: parent.horizontalCenter
            height: childrenRect.height
            Text {
                id: aliasName
                anchors.left: parent.left
                // anchors.verticalCenter: parent.verticalCenter
                anchors.margins: 10
                text: model.aliasName
            }
            Text {
                id: presenceMessage
                anchors.left: aliasName.right
                // anchors.verticalCenter: parent.verticalCenter
                anchors.margins: 10
                text: " - " + model.presenceMessage
            }
            Text {
                id: status
                anchors.left: presenceMessage.right
                text: " - " + model.presenceStatus
            }

        }
    }

    ListView {
        id: contactsList
        anchors.fill: parent

        model: contactsListModel
        delegate: contactsDelegate
    }
}

<commit_msg>Add avatars to contact list example.<commit_after>import Qt 4.7

Item {
    height: 300
    width: 400

    Component {
        id: contactsDelegate
        Rectangle {
            border.width: 1
            border.color: "black"
            width: parent.width - 4
            anchors.horizontalCenter: parent.horizontalCenter
            height: childrenRect.height
            Image {
                id: avatar
                anchors.left: parent.left
                anchors.margins: 10
                height: 30
                width: 30
                source: { console.log("avatar: " + model.avatar); model.avatar }
            }
            Text {
                id: aliasName
                anchors.left: avatar.right
                // anchors.verticalCenter: parent.verticalCenter
                anchors.margins: 10
                text: model.aliasName
            }
            Text {
                id: presenceMessage
                anchors.left: aliasName.right
                // anchors.verticalCenter: parent.verticalCenter
                anchors.margins: 10
                text: " - " + model.presenceMessage
            }
            Text {
                id: status
                anchors.left: presenceMessage.right
                text: " - " + model.presenceStatus
            }

        }
    }

    ListView {
        id: contactsList
        anchors.fill: parent

        model: contactsListModel
        delegate: contactsDelegate
    }
}


{'fraction_non_alphanumeric': 0.06893967778194081, 'fraction_numerical': 0.012738853503184714, 'mean_word_length': 1.1567043618739903, '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': '6640647', 'n_tokens_mistral': 712, 'n_tokens_neox': 630, 'n_words': 142}