<commit_before>- var width = model.getRealValue(model.getWidth())
- var height = model.getRealValue(model.getHeight())
- var top = model.getRealValue(model.getTop())
- var left = model.getRealValue(model.getLeft())
- var right = model.getRealValue(model.getRight())
- var bottom = model.getRealValue(model.getBottom())
- var type = model.getType()
- var colors = [
-               i18n.gettext('black'),
-               i18n.gettext('red'),
-               i18n.gettext('blue'),
-               i18n.gettext('green'),
-               i18n.gettext('pink'),
-               i18n.gettext('orange')
-     ]
- var effects = [
-        "flash", "bounce", "shake", "tada", "swing", "wobble",
-        "wiggle", "pulse", "flip", "flipInX", "flipOutX", "flipInY",
-        "flipOutY", "fadeIn", "fadeInUp", "fadeInDown", "fadeInLeft",
-        "fadeInRight", "fadeInUpBig", "fadeInDownBig", "fadeInLeftBig",
-        "fadeInRightBig", "fadeOut", "fadeOutUp", "fadeOutDown",
-        "fadeOutLeft", "fadeOutRight", "fadeOutUpBig", "fadeOutDownBig",
-        "fadeOutLeftBig", "fadeOutRightBig", "bounceIn", "bounceInDown",
-        "bounceInUp", "bounceInLeft", "bounceInRight", "bounceOut",
-        "bounceOutDown", "bounceOutUp", "bounceOutLeft", "bounceOutRight",
-        "rotateIn", "rotateInDownLeft", "rotateInDownRight",
-        "rotateInUpLeft", "rotateInUpRight", "rotateOut", "rotateOutDownLeft",
-        "rotateOutDownRight", "rotateOutUpLeft", "rotateOutUpRight",
-        "lightSpeedIn", "lightSpeedOut", "hinge", "rollIn", "rollOut"
-    ]


mixin positions
    tr
        th
            label(for="width-$#{id}")= i18n.gettext("width")
        td
            if type == "Text"
                input(type="text", id="width-#{id}", value="#{width}" , disabled=true, class="disabled")
            else
                input(type="text", id="width-#{id}", value="#{width}")
            | px
    tr
        th
            label(for="height-#{id}")= i18n.gettext("height")
        td
            if type == "Text"
                input(type="text", id="height-#{id}", value="#{height}" , disabled=true, class="disabled")
            else
                input(type="text", id="height-#{id}", value="#{height}")
            | px
    tr
        th
            label(for="top-#{id}")= i18n.gettext("top")
        td
            input(type="text", id="top-#{id}", value="#{top}")
            | px
    tr
        th
            label(for="left-#{id}")= i18n.gettext("left")
        td
            input(type="text", id="left-#{id}", value="#{left}")
            | px
    tr
        th
            label(for="right-#{id}")= i18n.gettext("right")
        td
            input(type="text", id="right-#{id}", value="#{right}")
            | px
    tr
        th
            label(for="bottom-#{id}")= i18n.gettext("bottom")
        td
            input(type="text", id="bottom-#{id}", value="#{bottom}")
            | px


h3(id="title-#{id}")= type + '  ' + id
div(id="webvfx-data-#{id}", style="display:none")
    if type == "Text"
        fieldset
            table
                tr
                    th
                        label(for="text-#{id}")= i18n.gettext("text")
                    td
                        input(type="text", id="text#{id}>", value="#{model.kObj.getText()}", style="width:80px")
                tr
                    th
                        label(for="fill-#{id}")= i18n.gettext("color")
                    td
                        select(id="fill-#{id}")
                            for color in colors
                                option(selected=model.kObj.getFill() == color) #{color}
                tr
                    th
                        label(for="background-#{id}")= i18n.gettext("background")
                    td
                        select.disabled(id="background-#{id}", disabled=true)
                            for color in colors
                                option= color
                tr
                    th
                        label(for="scroll-#{id}")= i18n.gettext("scroll")
                    td
                        select.disabled(id="scroll-#{id}", disabled=true)
                            option= i18n.gettext("no")
                            option= i18n.gettext("yes")
                mixin positions<commit_msg>Fix text input for keyup event<commit_after>- var width = model.getRealValue(model.getWidth())
- var height = model.getRealValue(model.getHeight())
- var top = model.getRealValue(model.getTop())
- var left = model.getRealValue(model.getLeft())
- var right = model.getRealValue(model.getRight())
- var bottom = model.getRealValue(model.getBottom())
- var type = model.getType()
- var colors = [
-               i18n.gettext('black'),
-               i18n.gettext('red'),
-               i18n.gettext('blue'),
-               i18n.gettext('green'),
-               i18n.gettext('pink'),
-               i18n.gettext('orange')
-     ]
- var effects = [
-        "flash", "bounce", "shake", "tada", "swing", "wobble",
-        "wiggle", "pulse", "flip", "flipInX", "flipOutX", "flipInY",
-        "flipOutY", "fadeIn", "fadeInUp", "fadeInDown", "fadeInLeft",
-        "fadeInRight", "fadeInUpBig", "fadeInDownBig", "fadeInLeftBig",
-        "fadeInRightBig", "fadeOut", "fadeOutUp", "fadeOutDown",
-        "fadeOutLeft", "fadeOutRight", "fadeOutUpBig", "fadeOutDownBig",
-        "fadeOutLeftBig", "fadeOutRightBig", "bounceIn", "bounceInDown",
-        "bounceInUp", "bounceInLeft", "bounceInRight", "bounceOut",
-        "bounceOutDown", "bounceOutUp", "bounceOutLeft", "bounceOutRight",
-        "rotateIn", "rotateInDownLeft", "rotateInDownRight",
-        "rotateInUpLeft", "rotateInUpRight", "rotateOut", "rotateOutDownLeft",
-        "rotateOutDownRight", "rotateOutUpLeft", "rotateOutUpRight",
-        "lightSpeedIn", "lightSpeedOut", "hinge", "rollIn", "rollOut"
-    ]


mixin positions
    tr
        th
            label(for="width-$#{id}")= i18n.gettext("width")
        td
            if type == "Text"
                input(type="text", id="width-#{id}", value="#{width}" , disabled=true, class="disabled")
            else
                input(type="text", id="width-#{id}", value="#{width}")
            | px
    tr
        th
            label(for="height-#{id}")= i18n.gettext("height")
        td
            if type == "Text"
                input(type="text", id="height-#{id}", value="#{height}" , disabled=true, class="disabled")
            else
                input(type="text", id="height-#{id}", value="#{height}")
            | px
    tr
        th
            label(for="top-#{id}")= i18n.gettext("top")
        td
            input(type="text", id="top-#{id}", value="#{top}")
            | px
    tr
        th
            label(for="left-#{id}")= i18n.gettext("left")
        td
            input(type="text", id="left-#{id}", value="#{left}")
            | px
    tr
        th
            label(for="right-#{id}")= i18n.gettext("right")
        td
            input(type="text", id="right-#{id}", value="#{right}")
            | px
    tr
        th
            label(for="bottom-#{id}")= i18n.gettext("bottom")
        td
            input(type="text", id="bottom-#{id}", value="#{bottom}")
            | px


h3(id="title-#{id}")= type + '  ' + id
div(id="webvfx-data-#{id}", style="display:none")
    if type == "Text"
        fieldset
            table
                tr
                    th
                        label(for="text-#{id}")= i18n.gettext("text")
                    td
                        input(type="text", id="text-#{id}", value="#{model.kObj.getText()}", style="width:80px")
                tr
                    th
                        label(for="fill-#{id}")= i18n.gettext("color")
                    td
                        select(id="fill-#{id}")
                            for color in colors
                                option(selected=model.kObj.getFill() == color) #{color}
                tr
                    th
                        label(for="background-#{id}")= i18n.gettext("background")
                    td
                        select.disabled(id="background-#{id}", disabled=true)
                            for color in colors
                                option= color
                tr
                    th
                        label(for="scroll-#{id}")= i18n.gettext("scroll")
                    td
                        select.disabled(id="scroll-#{id}", disabled=true)
                            option= i18n.gettext("no")
                            option= i18n.gettext("yes")
                mixin positions
{'fraction_non_alphanumeric': 0.17200323662004394, 'fraction_numerical': 0.009016298693792625, 'mean_word_length': 1.6794673273459275, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5259591', 'n_tokens_mistral': 2681, 'n_tokens_neox': 2628, 'n_words': 444}