<commit_before>(function(){

    "use strict";

    XMOT.namespace("XMOT.interaction.geometry");

    XMOT.interaction.geometry.TranslateBox = new XMOT.Class(
        XMOT.interaction.geometry.TargetScaledGeometry, {

        /**
         *  @this {XMOT.interaction.geometry.TranslateBox}
         */
        onCreateDefsElements: function()
        {
            // shaders
            this.geo.addShaders("s_transl", {
                diffuseColor: "1 1 1", transparency: "0.85"
            });
            this.geo.addShaders("s_transl_highlight", {
                diffuseColor: "1 1 1", transparency: "0.4"
            });

            // transforms
            this.geo.addTransforms("t_xytrans", {
                translation: "0 0 1"});
            this.geo.addTransforms("t_xytrans_inv", {
                translation: "0 0 -1", rotation: "0 1 0 3.14"});
            this.geo.addTransforms("t_yztrans", {
                translation: "1 0 0", rotation: "0 1 0 1.57"});
            this.geo.addTransforms("t_yztrans_inv", {
                translation: "-1 0 0", rotation: "0 1 0 -1.57"});
            this.geo.addTransforms("t_xztrans", {
                translation: "0 1 0", rotation: "1 0 0 -1.57"});
            this.geo.addTransforms("t_xztrans_inv", {
                translation: "0 -1 0", rotation: "1 0 0 1.57"});
        },

        /**
         *  @this {XMOT.interaction.geometry.TranslateBox}
         */
        onCreateGraph: function()
        {
            this.geo.addToGraphRoot([
                 this._createRectGrp("xytrans"),
                 this._createRectGrp("yztrans"),
                 this._createRectGrp("xztrans"),
                 this._createRectGrp("xytrans_inv"),
                 this._createRectGrp("yztrans_inv"),
                 this._createRectGrp("xztrans_inv")
            ]);
        },

        /**
         *  @this {XMOT.interaction.geometry.TranslateBox}
         *  @override
         *  @protected
         */
        onTargetXfmChanged: function()
        {
            var rectFac = 0.93; // scale of rectangles (same, 1x1 rects)

            var rectScaleStr = rectFac + " " + rectFac + " " + rectFac;

            this.geo.updateTransforms([
                "t_xytrans", "t_xytrans_inv", "t_yztrans", "t_yztrans_inv",
                "t_xztrans", "t_xztrans_inv"
            ], {scale: rectScaleStr});
        },

        /**
         *  @this {XMOT.interaction.geometry.TranslateBox}
         *  @private
         *<commit_msg>interaction.geometry.TranslateBox: added some missing invokations of base class methods<commit_after>(function(){

    "use strict";

    XMOT.namespace("XMOT.interaction.geometry");

    XMOT.interaction.geometry.TranslateBox = new XMOT.Class(
        XMOT.interaction.geometry.TargetScaledGeometry, {

        /**
         *  @this {XMOT.interaction.geometry.TranslateBox}
         *  @override
         *  @protected
         */
        onCreateDefsElements: function()
        {
            this.callSuper();

            // shaders
            this.geo.addShaders("s_transl", {
                diffuseColor: "1 1 1", transparency: "0.85"
            });
            this.geo.addShaders("s_transl_highlight", {
                diffuseColor: "1 1 1", transparency: "0.4"
            });

            // transforms
            this.geo.addTransforms("t_xytrans", {
                translation: "0 0 1"});
            this.geo.addTransforms("t_xytrans_inv", {
                translation: "0 0 -1", rotation: "0 1 0 3.14"});
            this.geo.addTransforms("t_yztrans", {
                translation: "1 0 0", rotation: "0 1 0 1.57"});
            this.geo.addTransforms("t_yztrans_inv", {
                translation: "-1 0 0", rotation: "0 1 0 -1.57"});
            this.geo.addTransforms("t_xztrans", {
                translation: "0 1 0", rotation: "1 0 0 -1.57"});
            this.geo.addTransforms("t_xztrans_inv", {
                translation: "0 -1 0", rotation: "1 0 0 1.57"});
        },

        /**
         *  @this {XMOT.interaction.geometry.TranslateBox}
         *  @override
         *  @protected
         */
        onCreateGraph: function()
        {
            this.callSuper();

            this.geo.addToGraphRoot([
                 this._createRectGrp("xytrans"),
                 this._createRectGrp("yztrans"),
                 this._createRectGrp("xztrans"),
                 this._createRectGrp("xytrans_inv"),
                 this._createRectGrp("yztrans_inv"),
                 this._createRectGrp("xztrans_inv")
            ]);
        },

        /**
         *  @this {XMOT.interaction.geometry.TranslateBox}
         *  @override
         *  @protected
         */
        onTargetXfmChanged: function()
        {
            this.callSuper();

            var rectFac = 0.93; // scale of rectangles (same, 1x1 rects)

            var rectScaleStr = rectFac + " " + rectFac + " " + rectFac;

            this.geo.updateTransforms([
                "t_xytrans", "t_xytrans_inv", "t_yztrans", "t_yztrans_inv",
                "t_xztrans", "t_xztrans_inv"
            ], {scale: rectScaleStr});
        },

        /**
         *  @this {XMOT.interaction.geometry.TranslateBox}
         *  @private
         *
{'fraction_non_alphanumeric': 0.13260828086243084, 'fraction_numerical': 0.024422820072505246, 'mean_word_length': 1.5771878072763028, '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': '3299970', 'n_tokens_mistral': 1697, 'n_tokens_neox': 1521, 'n_words': 267}