<commit_before>module ProMotion
  module TableScreenModule
    include ProMotion::ScreenModule
    include MotionTable::PlainTable
    include MotionTable::SearchableTable

    def on_init
      check_table_data_method

      self.view = self.create_table_view_from_data(self.table_data)
      if self.class.get_searchable
        self.make_searchable(content_controller: self, search_bar: self.class.get_searchable_params)
      end
    end

    def check_table_data_method
      Console.log("- table_data method needed in table view screen.", with_color: Console::RED_COLOR) unless self.respond_to?(:table_data)
    end

    def update_table_data
      self.update_table_view_data(table_data)
    end

    module TableClassMethods
      def searchable(params={})
        @searchable_params = params
        @searchable = true
      end

      def get_searchable_params
        @searchable_params ||= nil
      end

      def get_searchable
        @searchable ||= false
      end
    end
    def self.included(base)<commit_msg>Fixing inclusion issue for tablescreens<commit_after>module ProMotion
  module TableScreenModule
    include ProMotion::ScreenModule
    include MotionTable::PlainTable
    include MotionTable::SearchableTable

    def on_init
      check_table_data_method

      self.view = self.create_table_view_from_data(self.table_data)
      if self.class.get_searchable
        self.make_searchable(content_controller: self, search_bar: self.class.get_searchable_params)
      end
    end

    def check_table_data_method
      Console.log("- table_data method needed in table view screen.", with_color: Console::RED_COLOR) unless self.respond_to?(:table_data)
    end

    def update_table_data
      self.update_table_view_data(table_data)
    end

    module TableClassMethods
      def searchable(params={})
        @searchable_params = params
        @searchable = true
      end

      def get_searchable_params
        @searchable_params ||= nil
      end

      def get_searchable
        @searchable ||= false
      end
    end
    def self.included(base)
      base.extend(ClassMethods)
{'fraction_non_alphanumeric': 0.06190926275992439, 'fraction_numerical': 0.0, 'mean_word_length': 3.1106796116504856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3303608', 'n_tokens_mistral': 627, 'n_tokens_neox': 603, 'n_words': 132}