<commit_before>import QtQuick 2.0
import QtCanvas3D 1.0

import "animation-skinning-blending.js" as GLCode

Item {
    id: mainview
    width: 1280
    height: 768
    visible: true

    // Parameters that must be updated per frame from the GUI to the animation code
    Item {
        id: guiInputParameters

        property real timeScale: 1.0
    }

    /*
    TODO: GUI rewrite as QtQuick
    window.addEventListener( 'start-animation', onStartAnimation );
    window.addEventListener( 'stop-animation', onStopAnimation );
    window.addEventListener( 'pause-animation', onPauseAnimation );
    window.addEventListener( 'step-animation', onStepAnimation );
    window.addEventListener( 'weight-animation', onWeightAnimation );
    window.addEventListener( 'crossfade', onCrossfade );
    window.addEventListener( 'warp', onWarp );
    window.addEventListener( 'toggle-lock-camera', onLockCameraToggle );
    window.addEventListener( 'toggle-show-skeleton', onShowSkeleton );
    window.addEventListener( 'toggle-show-model', onShowModel );
    */

    Canvas3D {
        id: canvas3d
        anchors.fill: parent
        logAllCalls: false

        // Emitted when one time initializations should happen
        onInitializeGL: {
            GLCode.initializeGL(canvas3d, eventSource);
        }

        // Emitted each time Canvas3D is ready for a new frame
        onPaintGL: {
            GLCode.paintGL(canvas3d, guiInputParameters);
        }

        onWidthChanged: {
            GLCode.resizeGL(canvas3d);
        }

        onHeightChanged: {
            GLCode.resizeGL(canvas3d);
        }

        onDevicePixelRatioChanged: {
            GLCode.resizeGL(canvas3d);
        }

        ControlEventSource {
            id: eventSource
            anchors.fill: parent
            focus: true
        }
    }
}
<commit_msg>Minor fixes to the animation-skinning-blending example.<commit_after>import QtQuick 2.0
import QtCanvas3D 1.0

import "animation-skinning-blending.js" as GLCode

Item {
    id: mainview
    width: 1280
    height: 768
    visible: true

    // Parameters that must be updated per frame from the GUI to the animation code
    Item {
        id: guiInputParameters

        property real timeScale: 1.0
    }

    /*
    TODO: GUI rewrite as QtQuick
    window.addEventListener( 'start-animation', onStartAnimation );
    window.addEventListener( 'stop-animation', onStopAnimation );
    window.addEventListener( 'pause-animation', onPauseAnimation );
    window.addEventListener( 'step-animation', onStepAnimation );
    window.addEventListener( 'weight-animation', onWeightAnimation );
    window.addEventListener( 'crossfade', onCrossfade );
    window.addEventListener( 'warp', onWarp );
    window.addEventListener( 'toggle-lock-camera', onLockCameraToggle );
    window.addEventListener( 'toggle-show-skeleton', onShowSkeleton );
    window.addEventListener( 'toggle-show-model', onShowModel );
    */

    Canvas3D {
        id: canvas3d
        anchors.fill: parent

        // Emitted when one time initializations should happen
        onInitializeGL: {
            GLCode.initializeGL(canvas3d, eventSource);
        }

        // Emitted each time Canvas3D is ready for a new frame
        onPaintGL: {
            GLCode.paintGL(canvas3d, guiInputParameters);
        }

        onResizeGL: {
            GLCode.onResizeGL(canvas3d);
        }

        ControlEventSource {
            id: eventSource
            anchors.fill: parent
            focus: true
        }
    }
}

{'fraction_non_alphanumeric': 0.0884604479727814, 'fraction_numerical': 0.011908137227105188, 'mean_word_length': 2.482724580454097, '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': '5650166', 'n_tokens_mistral': 999, 'n_tokens_neox': 953, 'n_words': 235}