<commit_before>class <%= model.classify %>Datatable < AjaxDatatableRails
  model_name <%= model.classify %>
  columns # insert array of column names here
  searchable_columns #insert array of columns that will be searched
  
private

    def data
      <%= model.tableize %>.map do |<%= model.tableize.singularize %>|
        [
          # comma separated list of the values for each cell of a table row
        ]
      end
    end

    def <%= model.tableize %>
      @<%= model.tableize %> ||= fetch_records
    end

    def get_raw_records
      # insert query here
    end
end<commit_msg>added some comments to the template<commit_after>class <%= model.classify %>Datatable < AjaxDatatableRails
  model_name <%= model.classify %>
  columns # insert array of column names here
  searchable_columns #insert array of columns that will be searched
  
private

    def data
      <%= model.tableize %>.map do |<%= model.tableize.singularize %>|
        [
          # comma separated list of the values for each cell of a table row
        ]
      end
    end

    def <%= model.tableize %>
      @<%= model.tableize %> ||= fetch_records
    end

    def get_raw_records
      # insert query here
    end
    
    # ==== Insert 'presenter'-like methods below if necessary
end
{'fraction_non_alphanumeric': 0.09112333071484682, 'fraction_numerical': 0.0, 'mean_word_length': 2.5786516853932584, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '5995031', 'n_tokens_mistral': 394, 'n_tokens_neox': 352, 'n_words': 122}