<commit_before>import QtQuick 2.0
 
Rectangle {
    id: rect
    color: "yellow"
    border.color: "black"
    radius: 50
    
    width: 50
    height: 50
    state: "YELLOW"
    MouseArea {
        anchors.fill: parent
        acceptedButtons:  Qt.LeftButton | Qt.RightButton
        onDoubleClicked: {
            rect.destroy();
        }
        onPositionChanged: {
            if (mouse.buttons & Qt.LeftButton) {
                rect.x -= (x - mouse.x); rect.y -= (y - mouse.y)
            }
            if (mouse.buttons &  Qt.RightButton) {
                rect.width = Math.abs(x - mouseX); rect.height = Math.abs(y - mouseY)
            }
        }
    }
    states: [
        State {
            name: "YELLOW"
            PropertyChanges { target: rect; color: "yellow" }
            PropertyChanges { target: mainText; color: "red" }
        },
        State {
            name: "RED"
            PropertyChanges { target: rect; color: "red" }
            PropertyChanges { target: mainText; color: "yellow" }
        }
    ]
    transitions: [
        Transition {
             from: "YELLOW"; to: "RED"
             PropertyAnimation { 
                target: rect
                properties: "color"; 
                duration: 1000 
             }
             PropertyAnimation { 
                target: mainText
                properties: "color"; 
                duration: 1000 
             }
        },
        Transition {<commit_msg>added more logging to sample<commit_after>import QtQuick 2.0
import org.easylogging.qml 1.0

Rectangle {
    id: rect
    color: "yellow"
    border.color: "black"
    radius: 50
    
    width: 50
    height: 50
    state: "YELLOW"
    MouseArea {
        anchors.fill: parent
        acceptedButtons:  Qt.LeftButton | Qt.RightButton
        onDoubleClicked: {
            rect.destroy();
        }
        onPositionChanged: {
            if (mouse.buttons & Qt.LeftButton) {
                rect.x -= (x - mouse.x); rect.y -= (y - mouse.y)
            }
            if (mouse.buttons &  Qt.RightButton) {
                rect.width = Math.abs(x - mouseX); rect.height = Math.abs(y - mouseY)
            }
        }
    }
    states: [
        State {
            name: "YELLOW"
            PropertyChanges { target: rect; color: "yellow" }
            PropertyChanges { target: mainText; color: "red" }
            StateChangeScript { script: Log.info("State changed to YELLOW") }
        },
        State {
            name: "RED"
            PropertyChanges { target: rect; color: "red" }
            PropertyChanges { target: mainText; color: "yellow" }
            StateChangeScript { script: Log.info("State changed to RED") }
        }
    ]
    transitions: [
        Transition {
             from: "YELLOW"; to: "RED"
             PropertyAnimation { 
                target: rect
                properties: "color"; 
                duration: 1000 
             }
             PropertyAnimation { 
                target: mainText
                properties: "color"; 
                duration: 1000 
             }
        },
        Transition {
{'fraction_non_alphanumeric': 0.10211267605633803, 'fraction_numerical': 0.01088348271446863, 'mean_word_length': 1.3045722713864307, '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': '6813694', 'n_tokens_mistral': 911, 'n_tokens_neox': 839, 'n_words': 205}