<commit_before>class GridListWidget < Apotomo::Widget
  include GridWidget::ControllerMethods
  include GridWidget::CustomDisplayMethods
  include GridWidget::AppSupport::ControllerMethods
  helper GridWidget::HelperMethods
  helper GridWidget::AppSupport::HelperMethods

  attr_reader :total_pages
  attr_reader :total_records
  attr_reader :current_page
    
  after_add do |me, mom|
    me.respond_to_event :fetch_data, :from => me.name
    me.respond_to_event :cell_click, :from => me.name
    me.respond_to_event :add_button, :from => me.name
    
    mom.respond_to_event :reload_grid, :from => mom.name, :on => me.name
    
    mom.respond_to_event :display_form, :from => me.name
    mom.respond_to_event :inplace_edit, :from => me.name
    mom.respond_to_event :delete_record, :from => me.name
  end
  
  # display and wire the list grid and filters.
  # Records are loaded later, after grid is wired.
  # Grid wiring is handled by grid_place defined in jqgrid_support.
  def display
    render<commit_msg>testing to see if I'm still connected to github<commit_after>class GridListWidget < Apotomo::Widget
  include GridWidget::ControllerMethods
  include GridWidget::CustomDisplayMethods
  include GridWidget::AppSupport::ControllerMethods
  helper GridWidget::HelperMethods
  helper GridWidget::AppSupport::HelperMethods

  attr_reader :total_pages
  attr_reader :total_records
  attr_reader :current_page

  # Broke in apotomo 1.2
  after_add do |me, mom|
    me.respond_to_event :fetch_data, :from => me.name
    me.respond_to_event :cell_click, :from => me.name
    me.respond_to_event :add_button, :from => me.name
    
    mom.respond_to_event :reload_grid, :from => mom.name, :on => me.name
    
    mom.respond_to_event :display_form, :from => me.name
    mom.respond_to_event :inplace_edit, :from => me.name
    mom.respond_to_event :delete_record, :from => me.name
  end
  
  # display and wire the list grid and filters.
  # Records are loaded later, after grid is wired.
  # Grid wiring is handled by grid_place defined in jqgrid_support.
  def display
    render
{'fraction_non_alphanumeric': 0.08489208633093526, 'fraction_numerical': 0.0009592326139088729, 'mean_word_length': 4.307888040712468, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '1194037', 'n_tokens_mistral': 656, 'n_tokens_neox': 645, 'n_words': 175}