<commit_before>import QtQuick 2.8
import QtQuick.Controls 2.5
import org.kde.kirigami 2.5 as Kirigami

ListView {
    id: list

    property bool useHighlight: true
    property var modelItem: model ? model.get(currentIndex) : undefined

    Component {
        id: hl
        Rectangle {
                width: list.width
                color: Kirigami.Theme.highlightColor
                radius: 5
                y: list.currentItem ? list.currentItem.y : -1
                Behavior on y {
                    SpringAnimation {
                        spring: 2.5
                        damping: 0.3
                    }
                }
            }
    }

    focus: true
    spacing: 6
    clip: true
    highlightMoveDuration: 1
    highlight: useHighlight ? hl : null
}<commit_msg>Quiet some type error warnings<commit_after>import QtQuick 2.8
import QtQuick.Controls 2.5
import org.kde.kirigami 2.5 as Kirigami

ListView {
    id: list

    property bool useHighlight: true
    property var modelItem: {
        if (model !== undefined && currentIndex !== -1)
            return model.get(currentIndex)
    }

    Component {
        id: hl
        Rectangle {
                width: list.width
                color: Kirigami.Theme.highlightColor
                radius: 5
                y: list.currentItem ? list.currentItem.y : -1
                Behavior on y {
                    SpringAnimation {
                        spring: 2.5
                        damping: 0.3
                    }
                }
            }
    }

    focus: true
    spacing: 6
    clip: true
    highlightMoveDuration: 1
    highlight: useHighlight ? hl : null
}
{'fraction_non_alphanumeric': 0.0687799043062201, 'fraction_numerical': 0.017344497607655503, 'mean_word_length': 1.3012379642365888, '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': '6622902', 'n_tokens_mistral': 487, 'n_tokens_neox': 433, 'n_words': 124}