<commit_before>import QtQuick 2.0

Item {
    id: root;
    function complicate() { count += increment; }
    function simplify() { count = Math.max(1, count - increment); }
    property int increment: Math.log(count * count);

    property string description: "Delegates per frame: "
                                 + count + " Complex delegates."

    property int count: 20;

    property real t;
    NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite }
    onTChanged: {
        repeater.model = 0;
        repeater.model = root.count
    }

    Component.onCompleted: repeater.model = root.count

    Repeater {
        id: repeater
        Rectangle {
            x: Math.random() * root.width
            y: Math.random() * root.height
            width: 30
            height: 15
            gradient: Gradient {
                GradientStop { position: 0; color: "steelblue" }
                GradientStop { position: 1; color: "black" }
            }
            Text {
                id: label
                anchors.centerIn: parent
                text: "hello"
                color: "white"
                font.pixelSize: 10
            }
            Component.onCompleted: {
                var t = Math.round(Math.random() * 10) / 10;
                label.text = label.text + " " + t;
            }
        }
    }
}
<commit_msg>make complex delegate properly complex<commit_after>import QtQuick 2.0

Item {
    id: root;
    function complicate() { count += increment; }
    function simplify() { count = Math.max(1, count - increment); }
    property int increment: Math.log(count * count);

    property string description: "Delegates per frame: "
                                 + count + " Complex delegates."

    property int count: 20;

    property real t;
    NumberAnimation on t { from: 0; to: 1; duration: 1000; loops: Animation.Infinite }
    onTChanged: {
        repeater.model = 0;
        repeater.model = root.count
    }

    Component.onCompleted: repeater.model = root.count

    Repeater {
        id: repeater
        Rectangle {
            x: Math.random() * root.width
            y: Math.random() * root.height
            width: 100
            height: 50
            gradient: Gradient {
                GradientStop { position: 0; color: "steelblue" }
                GradientStop { position: 1; color: "black" }
            }
            Repeater {
                model: 10
                Text {
                    id: label
                    x: (index % 2) * 50
                    y: Math.floor(index / 2) * 10;
                    width: 50
                    height: 10
                    horizontalAlignment: Text.AlignHCenter
                    text: "Item #" + index
                    color: "white"
                    font.pixelSize: 10
                }
            }
        }
    }
}

{'fraction_non_alphanumeric': 0.09512279488066414, 'fraction_numerical': 0.019716361120719474, 'mean_word_length': 1.351219512195122, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2359194', 'n_tokens_mistral': 844, 'n_tokens_neox': 750, 'n_words': 215}