<commit_before><h1>Serialize test page</h1>

<form action="{{ url('sonata_qa_serialize') }}" method="post">

    <p>
        <label for="class">Please select a class to serialize:</label><br />
        <select name="class">
            {% for class in classes %}
                <option value="{{ class }}" {% if app.request.get('class') == class %}selected="selected"{% endif %}>{{ class }}</option>
            {% endfor %}
        </select>
    </p>

    <p>
        <label for="id">Id.:</label>
        <input type="text" name="id" value="{{ app.request.get('id') }}" placeholder="Enter a PK (optional)">
    </p>

    <p>
        <label for="group">Group:</label>
        <input type="text" name="group" value="{{ app.request.get('group') }}" placeholder="Enter a group (optional)">
    </p>

    <p>
        <label for="version">Version:</label>
        <input type="text" name="version" value="{{ app.request.get('version') }}" placeholder="Enter a version (optional)">
    </p>

    <p>
        <input type="submit">
    </p>
</form>

<div class="row">
    <div class="col-lg-6">
        <h3>json</h3>
        <pre>{{ raw['json'] }}</pre>
    </div>
    <div class="col-lg-6">
        <h3>xml</h3>
        <pre>{{ raw['xml'] }}</pre>
    </div>
</div>
<commit_msg>Updated serializer test page<commit_after><h1>Serialize test page</h1>

<form action="{{ url('sonata_qa_serialize') }}" method="post">
    <p class="well">
        <label for="class">Class:</label>
        <select name="class">
            {% for class in classes %}
                <option value="{{ class }}" {% if app.request.get('class') == class %}selected="selected"{% endif %}>{{ class }}</option>
            {% endfor %}
        </select>

        <label for="id">Id.:</label>
        <input type="text" name="id" value="{{ app.request.get('id') }}" placeholder="optional" size="3">

        <label for="group">Group:</label>
        <input type="text" name="group" value="{{ app.request.get('group') }}" placeholder="optional" size="5">

        <label for="version">Version:</label>
        <input type="text" name="version" value="{{ app.request.get('version') }}" placeholder="optional" size="5">

        <input type="submit" value="Serialize" class="btn btn-primary pull-right">
    </p>
</form>

<ul class="nav nav-pills" style="margin-bottom: 15px;">
    <li class="active"><a href="#xml">XML</a></li>
    <li><a href="#json">Json</a></li>
</ul>

<div class="tab-content">
    <div class="tab-pane active" id="xml">
        <pre>{{ raw['xml'] }}</pre>
    </div>
    <div class="tab-pane" id="json">
        <pre>{{ raw['json'] }}</pre>
    </div>
</div>

<script type="text/javascript">
    $('.nav-pills a').click(function (e) {
        e.preventDefault()
        $(this).tab('show')
    })
</script>
{'fraction_non_alphanumeric': 0.23145825868864206, 'fraction_numerical': 0.005374417771408097, 'mean_word_length': 2.894002789400279, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 0, '>': 92, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '1696274', 'n_tokens_mistral': 930, 'n_tokens_neox': 896, 'n_words': 199}