<commit_before><%
   klass_name_underscore = @klass_name.underscore
   new_object_path       = send("new_#{SpreeeedBackend.name_space}_#{klass_name_underscore}_path")
   objects_path         = send("#{SpreeeedBackend.name_space}_#{klass_name_underscore.pluralize}_path")
%>
<div class="row">
  <div class="col-md-12">
    <div class="block-flat">

      <div class="header">
        <h3><i class="fa <%= @klass.icon %>"></i> <%= @klass.model_name.human %></h3>
      </div>

      <div class="content">
        <div class="table-responsive">
          <div role="grid" class="dataTables_wrapper form-inline" id="datatable_wrapper">

            <%= render :partial => 'datatable', :locals => {:datatable_id => @datatable_id, :datatable_cols => @datatable_cols} %>

            <div class="row">
              <div class="col-sm-12">
                <div class="pull-left">
                  <%= link_to("#{t('new')} #{@klass.model_name.human}", new_object_path, :class => "btn btn-primary") %>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<% if @klass_name %>
    <%
       klass_name_underscore  = @klass_name.underscore
       objects_path_with_json = send("#{SpreeeedBackend.name_space}_#{klass_name_underscore.pluralize}_path", {:format => :json})
    %>
    <script type="text/javascript">
        function build_datatable(id, path, placeholder) {
            $("#" + id).dataTable({
                bProcessing: true,
                oLanguage: {
                    sProcessing: '<%= image_tag(image_path("spreeeed_backend/ajax-loader.gif")) %>',
                    sLengthMenu:   "顯示 _MENU_ 項結果",
                    sZeroRecords:  "沒有匹配結果",
                    sInfo:         "顯示第 _START_ 至 _END_ 項結果，共 _TOTAL_ 項",
                    sInfoEmpty:    "顯示第 0 至 0 項結果，共 0 項",
                    sInfoFiltered: "(從 _MAX_ 項結果過濾)",
                    sInfoPostFix:  "",
                    sSearch:       "搜索:",
                    sUrl:          "",
                    oPaginate: {
                        sFirst:    "首頁",
                        sPrevious: "上頁",
                        sNext:     "下頁",
                        sLast:     "尾頁",
                    },
                },
                bServerSide: true,
                sAjaxSource: path,
                aoColumns: <%= @sortable_cols.to_json.html_safe %>,<commit_msg>fix bug<commit_after><%
   klass_name_underscore = @klass_name.underscore
   new_object_path       = send("new_#{SpreeeedBackend.name_space}_#{klass_name_underscore}_path")
   objects_path         = send("#{SpreeeedBackend.name_space}_#{klass_name_underscore.pluralize}_path")
%>
<div class="row">
  <div class="col-md-12">
    <div class="block-flat">

      <div class="header">
        <h3><i class="fa <%= @klass.icon %>"></i> <%= @klass.model_name.human %></h3>
      </div>

      <div class="content">
        <div class="table-responsive">
          <div role="grid" class="dataTables_wrapper form-inline" id="datatable_wrapper">

            <%= render :partial => 'datatable', :locals => {:datatable_id => @datatable_id, :datatable_cols => @datatable_cols} %>

            <div class="row">
              <div class="col-sm-12">
                <div class="pull-left">
                  <%= link_to("#{t('new')} #{@klass.model_name.human}", new_object_path, :class => "btn btn-primary") %>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<% if @klass_name %>
    <%
       klass_name_underscore  = @klass_name.underscore
       objects_path_with_json = send("#{SpreeeedBackend.name_space}_#{klass_name_underscore.pluralize}_path", {:format => :json})
    %>
    <script type="text/javascript">
        function build_datatable(id, path, placeholder) {
            $("#" + id).dataTable({
                bProcessing: true,
                oLanguage: {
                    sProcessing: '<%= image_tag("spreeeed_backend/ajax-loader.gif") %>',
                    sLengthMenu:   "顯示 _MENU_ 項結果",
                    sZeroRecords:  "沒有匹配結果",
                    sInfo:         "顯示第 _START_ 至 _END_ 項結果，共 _TOTAL_ 項",
                    sInfoEmpty:    "顯示第 0 至 0 項結果，共 0 項",
                    sInfoFiltered: "(從 _MAX_ 項結果過濾)",
                    sInfoPostFix:  "",
                    sSearch:       "搜索:",
                    sUrl:          "",
                    oPaginate: {
                        sFirst:    "首頁",
                        sPrevious: "上頁",
                        sNext:     "下頁",
                        sLast:     "尾頁",
                    },
                },
                bServerSide: true,
                sAjaxSource: path,
                aoColumns: <%= @sortable_cols.to_json.html_safe %>,
{'fraction_non_alphanumeric': 0.14791924186238153, 'fraction_numerical': 0.003708281829419036, 'mean_word_length': 1.6328633405639914, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 83, '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': '2363933', 'n_tokens_mistral': 1610, 'n_tokens_neox': 1595, 'n_words': 251}