<commit_before><html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd" xml:space="default">
<h1>Zone/Ajax Demo</h1>


<h2>Last update: ${currentTime}</h2>


<t:zone t:id="output" style="float:right; width: 800px;">
    <t:if test="name" else="No name has been selected.">
        Selected: ${name}
    </t:if>
</t:zone>

<t:block id="ajaxCSS">

    <div id="demo-aip">
        <p>
            This should be styled GREEN.
        </p>
    </div>

</t:block>

<t:block id="registrationForm">


    <t:beaneditform t:id="registrationForm" object="registration" zone="^" add="roles">

        <t:parameter name="roles">
            <t:palette selected="registration.roles" encoder="encoder" model="literal:guest,user,admin"/>
        </t:parameter>

    </t:beaneditform>

    <t:actionlink t:id="clear" zone="output" class="btn btn-warning">Clear Form</t:actionlink>

</t:block>

<t:block id="registrationOutput">
    <t:beandisplay object="registration" add="roles">
        <t:parameter name="roles">
            ${registration.roles}
        </t:parameter>
    </t:beandisplay>
</t:block>

<t:block id="voteForm">
    <t:form class="form-horizontal well" t:id="vote" zone="^">
        <div class="control-group">
            <label class="control-label">Vote:</label>
            <div class="controls">
                <div class="btn-group">
=                    <input type="submit" name="abstain" value="Abstain" class="btn"/>
                    <t:submit t:id="voteYes" value="Yes"/>
                    <t:submit t:id="voteNo" value="No"/>
                </div>
            </div>
        </div>
    </t:form>
</t:block>

<t:block id="voteOutput">
    You voted: ${vote}
</t:block>


<ul>
    <li t:type="loop" source="names" value="name">
        <t:actionlink t:id="select" context="name" zone="output">Select "${name}"</t:actionlink>
    </li>
    <li>
        <t:actionlink t:id="JSON" zone="output">Direct JSON response</t:actionlink>
    </li>
    <li>
        <t:actionlink t:id="fail" zone="output">Failure on the server side</t:actionlink>
    </li>
    <li>
        <t:actionlink t:id="redirect" zone="output">Perform a redirect to another page
        </t:actionlink>
    </li>
    <li>
        <t:actionlink t:id="secureRedirect" zone="output">Perform secure redirect to another page
        </t:actionlink>
    </li>
    <li>
        <t:actionlink t:id="blankUpdate" zone="output">Blank the zone</t:actionlink>
    </li>
    <li>
        <t:actionLink t:id="updateZoneWithEmptyBody" zone="output">Update zone with empty body</t:actionLink>
    </li>
    <li>
        <t:actionlink t:id="poorlyFormattedFail" zone="output">Poorly formatted server-side
            failure
        </t:actionlink>
    </li>
    <li>
        <t:actionlink t:id="badZone" zone="output">
            MultiZone update with unknown id
        </t:actionlink>
    </li>
    <li>
        <t:actionlink t:id="nonZoneUpdate" zone="output">
            MultiZone update with id of non-Zone
            element
        </t:actionlink>
    </li>
</ul>

<div id="notAZone"/>

<t:block id="empty"/>

<t:zone t:id="zoneWithEmptyBody"/>

<t:block id="forUnknownZone">
    <p>Content for the unknown zone.</p>
</t:block>

<t:block id="forNotAZone">
    <p>Content for zone update for a non-Zone element.</p>
</t:block>

<div id="zone-update-message"/>


</html><commit_msg>Clean up page to use Bootstrap 3<commit_after><html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd" xml:space="default">
<h1>Zone/Ajax Demo</h1>


<h2>Last update: ${currentTime}</h2>


<t:zone t:id="output" style="float:right; width: 800px;">
    <t:if test="name" else="No name has been selected.">
        Selected: ${name}
    </t:if>
</t:zone>

<t:block id="ajaxCSS">

    <div id="demo-aip">
        <p>
            This should be styled GREEN.
        </p>
    </div>

</t:block>

<t:block id="registrationForm">


    <t:beaneditform t:id="registrationForm" object="registration" zone="^" add="roles">

        <t:parameter name="roles">
            <t:palette selected="registration.roles" encoder="encoder" model="literal:guest,user,admin"/>
        </t:parameter>

    </t:beaneditform>

    <t:actionlink t:id="clear" zone="output" class="btn btn-warning">Clear Form</t:actionlink>

</t:block>

<t:block id="registrationOutput">
    <t:beandisplay object="registration" add="roles">
        <t:parameter name="roles">
            ${registration.roles}
        </t:parameter>
    </t:beandisplay>
</t:block>

<t:block id="voteForm">
    <t:form class="form-horizontal well" t:id="vote" zone="^">
        <div class="form-group">
            <label>Vote:</label>

            <div class="btn-group">
                <input class="btn btn-default" type="submit" name="abstain" value="Abstain"/>
                <t:submit t:id="voteYes" value="Yes"/>
                <t:submit class="btn btn-warning" t:id="voteNo" value="No"/>
            </div>
        </div>
    </t:form>
</t:block>

<t:block id="voteOutput">
    You voted: ${vote}
</t:block>


<div class="btn-group-vertical btn-group-sm">
    <t:loop source="names" value="name">
        <t:actionlink class="btn btn-default" t:id="select" context="name" zone="output">Select "${name}"</t:actionlink>
    </t:loop>

    <t:actionlink class="btn btn-default" t:id="JSON" zone="output">Direct JSON response</t:actionlink>
    <t:actionlink class="btn btn-default" t:id="fail" zone="output">Failure on the server side</t:actionlink>
    <t:actionlink t:id="redirect" zone="output" class="btn btn-default">Perform a redirect to another page
    </t:actionlink>
    <t:actionlink class="btn btn-default" t:id="secureRedirect" zone="output">Perform secure redirect to another page
    </t:actionlink>
    <t:actionlink t:id="blankUpdate" class="btn btn-default" zone="output">Blank the zone</t:actionlink>
    <t:actionLink t:id="updateZoneWithEmptyBody" zone="output" class="btn btn-default">Update zone with empty body
    </t:actionLink>
    <t:actionlink class="btn btn-default" t:id="poorlyFormattedFail" zone="output">Poorly formatted server-side
        failure
    </t:actionlink>
    <t:actionlink t:id="badZone" zone="output" class="btn btn-default">
        MultiZone update with unknown id
    </t:actionlink>
    <t:actionlink t:id="nonZoneUpdate" zone="output" class="btn btn-default">
        MultiZone update with id of non-Zone
        element
    </t:actionlink>
</div>

<div id="notAZone"/>

<t:block id="empty"/>

<t:zone t:id="zoneWithEmptyBody"/>

<t:block id="forUnknownZone">
    <p>Content for the unknown zone.</p>
</t:block>

<t:block id="forNotAZone">
    <p>Content for zone update for a non-Zone element.</p>
</t:block>

<div id="zone-update-message"/>


</html>
{'fraction_non_alphanumeric': 0.17934702319397253, 'fraction_numerical': 0.0031023784901758012, 'mean_word_length': 3.2445141065830723, 'pattern_counts': {'":': 0, '<': 187, '<?xml version=': 0, '>': 187, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3010530', 'n_tokens_mistral': 2365, 'n_tokens_neox': 2292, 'n_words': 478}