<commit_before>
<h4>GET /participants</h4>

<div class="explanation">listing the participants registered in the engine.</div>

<% participants.each do |part| %>
    <%= render_participant_html part, false %>
<% end %>

<hr/>

<h4>POST /participants</h4>

<div class="explanation">adding a participant to the engine in ruote-rest</div>

<br/>


<%= some_javascript %>

<script>

    function on_participant_class () {

        sel = document.getElementById('new_participant_class');

        if (sel.value == 'OpenWFE::Extras::ActiveStoreParticipant')
            show('store_name');
        else
            hide('store_name');
    }
</script>

<form action="/participants" method="POST" enctype="multipart/form-data">

    <div>regex : <br/>
    <input type="text" name="regex" /></div>

    <div>class : <br/>
    <select id="new_participant_class" name="class" onchange="on_participant_class()">
        <option>OpenWFE::Extras::ActiveParticipant</option>
        <option>OpenWFE::Extras::ActiveStoreParticipant</option>
    </select></div>

    <div id="store_name" style="display: none">store name : <br/>
    <input type="text" name="store_name" /></div><commit_msg>ArParticipant for everybody<commit_after>
<h4>GET /participants</h4>

<div class="explanation">listing the participants registered in the engine.</div>

<% participants.each do |part| %>
    <%= render_participant_html part, false %>
<% end %>

<hr/>

<h4>POST /participants</h4>

<div class="explanation">adding a participant to the engine in ruote-rest</div>

<br/>


<%= some_javascript %>

<script>

    function on_participant_class () {

        sel = document.getElementById('new_participant_class');

        if (sel.value == 'OpenWFE::Extras::ActiveStoreParticipant')
            show('store_name');
        else
            hide('store_name');
    }
</script>

<form action="/participants" method="POST" enctype="multipart/form-data">

    <div>regex : <br/>
    <input type="text" name="regex" /></div>

    <div>class : <br/>
    <select id="new_participant_class" name="class" onchange="on_participant_class()">
        <option>OpenWFE::Extras::ArParticipant</option>
        <!--option>OpenWFE::Extras::ActiveStoreParticipant</option-->
    </select></div>

    <div id="store_name" style="display: none">store name : <br/>
    <input type="text" name="store_name" /></div>
{'fraction_non_alphanumeric': 0.16998728274692668, 'fraction_numerical': 0.003391267486222976, 'mean_word_length': 3.9269311064718164, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, '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': '5734811', 'n_tokens_mistral': 811, 'n_tokens_neox': 743, 'n_words': 147}