<commit_before><?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">

<!-- ====================================================================== -->
<!-- Copyright (C) The Apache Software Foundation. All rights reserved.     -->
<!--                                                                        -->
<!-- This software is published under the terms of the Apache Software      -->
<!-- License version 1.1, a copy of which has been included with this       -->
<!-- distribution in the LICENSE file.                                      -->
<!-- ====================================================================== -->

<!-- ====================================================================== -->
<!-- Simple test to validate that events are properly dispatched. This      -->
<!-- test shows a problem we had due to isModalEvent.                       -->
<!-- For example: mousedown on red circle, move out of circle, mouseup.     -->
<!-- This sequence should not trigger the circle's mouseup handler.         -->
<!--                                                                        -->
<!-- @author <EMAIL>                                          -->
<!-- @version $Id$                                                          -->
<!-- ====================================================================== -->

<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>  

<svg xmlns="http://www.w3.org/2000/svg" 
     xmlns:xlink="http://www.w3.org/1999/xlink"
     id="body" width="450" height="500" viewBox="0 0 450 500">

    <title>Remove/Insert event handler test</title>

    <text x="50%" y="45" class="title">remove/insert event handler test</text>

    <script type="text/ecmascript"><![CDATA[

    var svgNamespaceURI = "http://www.w3.org/2000/svg";

function onMouseDown(id) {
    // First, turn mouse control green
    var ctrl = document.getElementById("mouseDownCtrl");
    ctrl.setAttribute("fill", "rgb(0,255,0)");
}
<commit_msg>Added operation description to test.?\024<commit_after><?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">

<!-- ====================================================================== -->
<!-- Copyright (C) The Apache Software Foundation. All rights reserved.     -->
<!--                                                                        -->
<!-- This software is published under the terms of the Apache Software      -->
<!-- License version 1.1, a copy of which has been included with this       -->
<!-- distribution in the LICENSE file.                                      -->
<!-- ====================================================================== -->

<!-- ====================================================================== -->
<!-- Simple test to validate that events are properly dispatched. This      -->
<!-- test shows a problem we had due to isModalEvent.                       -->
<!-- For example: mousedown on red circle, move out of circle, mouseup.     -->
<!-- This sequence should not trigger the circle's mouseup handler.         -->
<!--                                                                        -->
<!-- @author <EMAIL>                                          -->
<!-- @version $Id$                                                          -->
<!-- ====================================================================== -->

<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>  

<svg xmlns="http://www.w3.org/2000/svg" 
     xmlns:xlink="http://www.w3.org/1999/xlink"
     id="body" width="450" height="500" viewBox="0 0 450 500">

    <title>Modal Event Test</title>

    <text x="50%" y="45" class="title">Modal Event Test</text>

    <text transform="translate(225,140)" class="legend">
        <tspan x="0" dy="0">Test 1: Press mousedown on circle, move out, release</tspan>
        <tspan x="0" dy="1.2em">Test 2: Press mousedown out of circle, move in, release</tspan>
        <tspan x="0" dy="1.2em">Test 3: Press mousedown out of circle, move through, release</tspan>
        <tspan x="0" dy="1.6em">Hit the clear button between tests</tspan>
    </text>

    <script type="text/ecmascript"><![CDATA[

    var svgNamespaceURI = "http://www.w3.org/2000/svg";

function onMouseDown(id) {
    // First, turn mouse control green
    var ctrl = document.getElementById("mouseDownCtrl");
    ctrl.setAttribute("fill", "rgb(0,255,0)");
}

{'fraction_non_alphanumeric': 0.2689203925845147, 'fraction_numerical': 0.0311886586695747, 'mean_word_length': 2.121851599727706, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 2, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5099843', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1079, 'n_words': 311}