<commit_before>﻿@using Mvc.JQuery.Datatables
@model DataTableVm
@{
 
}
<table id="@Model.Id" class="display @(Model.TableClass ?? DataTableVm.DefaultTableClass ?? "")" >
    <thead>
        <tr>
            @foreach (var column in Model.Columns)
            {
                <th>@column.DisplayName</th>
            }
        </tr>
        @if (Model.ColumnFilter)
        {
            <tr>
                @foreach (var column in Model.Columns)
                {
                    <th>@column.DisplayName</th>
                }
            </tr>
        }
    </thead>
    <tbody>
        <tr>
            <td colspan="5" class="dataTables_empty">
                Loading data from server
            </td>
        </tr>
    </tbody>
</table>
<script type="text/javascript">
    $(document).ready(function() {
        var $table = $('#@Model.Id');
        var dt = $table.dataTable({
            "bProcessing": true,
            "bStateSave": true,
            "bServerSide": true,
            "bFilter": @Model.ShowSearch.ToString().ToLower(),
            "sDom": '@Html.Raw(Model.Dom)',
            "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
            "bAutoWidth": @Model.AutoWidth.ToString().ToLowerInvariant(),
            "sAjaxSource": "@Html.Raw(Model.AjaxUrl)", @Html.Raw(Model.TableTools ? "\"oTableTools\" : { \"sSwfPath\": \"/content/DataTables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf\" }," : "")
            "fnServerData": function(sSource, aoData, fnCallback) {
                $.ajax({
                    "dataType": 'json',
                    "type": "POST",
                    "url": sSource,
                    "data": aoData,
                    "success": fnCallback
                });
            }
        });
        @if (Model.ColumnFilter)
        {
<text>
            dt.columnFilter({
                sPlaceHolder: "head:before",
                aoColumns: [@Html.Raw(Model.ColumnFiltersString)]
            });
</text>
        }
    });
</script>
<commit_msg>Added 5 as an option<commit_after>﻿@using Mvc.JQuery.Datatables
@model DataTableVm
@{
 
}
<table id="@Model.Id" class="display @(Model.TableClass ?? DataTableVm.DefaultTableClass ?? "")" >
    <thead>
        <tr>
            @foreach (var column in Model.Columns)
            {
                <th>@column.DisplayName</th>
            }
        </tr>
        @if (Model.ColumnFilter)
        {
            <tr>
                @foreach (var column in Model.Columns)
                {
                    <th>@column.DisplayName</th>
                }
            </tr>
        }
    </thead>
    <tbody>
        <tr>
            <td colspan="5" class="dataTables_empty">
                Loading data from server
            </td>
        </tr>
    </tbody>
</table>
<script type="text/javascript">
    $(document).ready(function() {
        var $table = $('#@Model.Id');
        var dt = $table.dataTable({
            "bProcessing": true,
            "bStateSave": true,
            "bServerSide": true,
            "bFilter": @Model.ShowSearch.ToString().ToLower(),
            "sDom": '@Html.Raw(Model.Dom)',
            "aLengthMenu": [[5, 10, 25, 50, -1], [5, 10, 25, 50, "All"]],
            "bAutoWidth": @Model.AutoWidth.ToString().ToLowerInvariant(),
            "sAjaxSource": "@Html.Raw(Model.AjaxUrl)", @Html.Raw(Model.TableTools ? "\"oTableTools\" : { \"sSwfPath\": \"/content/DataTables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf\" }," : "")
            "fnServerData": function(sSource, aoData, fnCallback) {
                $.ajax({
                    "dataType": 'json',
                    "type": "POST",
                    "url": sSource,
                    "data": aoData,
                    "success": fnCallback
                });
            }
        });
        @if (Model.ColumnFilter)
        {
<text>
            dt.columnFilter({
                sPlaceHolder: "head:before",
                aoColumns: [@Html.Raw(Model.ColumnFiltersString)]
            });
</text>
        }
    });
</script>

{'fraction_non_alphanumeric': 0.16070988415085039, 'fraction_numerical': 0.007641114123736751, 'mean_word_length': 1.4910988336402702, 'pattern_counts': {'":': 30, '<': 47, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7485943', 'n_tokens_mistral': 1248, 'n_tokens_neox': 1186, 'n_words': 212}