<commit_before># Inventory searcher.
# Designed to be populated from a search form using a new/create controller model.
#
class AssetMapSearcher < BaseSearcher

  attr_accessor :asset_seed_class_name

  SystemConfig.transam_module_names.each do |mod|
    if eval("defined?(#{mod.titleize}AssetMapSearcher) && #{mod.titleize}AssetMapSearcher.is_a?(Class)") == true
      "#{mod.titleize}AssetMapSearcher".constantize.form_params.each do |form_param|
        attr_accessor form_param
      end
    end
  end

  # Return the name of the form to display
  def form_view
    'asset_search_form'
  end
  # Return the name of the results table to display
  def results_view
    'asset_search_results_table'
  end

  def initialize(attributes = {})

    super(attributes)

    if asset_seed_class_name.present?
      @klass = Object.const_get asset_seed_class_name
    else
      @klass = Object.const_get Rails.application.config.asset_base_class_name<commit_msg>TTPLAT-151 add search classes, cleanup<commit_after># Inventory searcher.
# Designed to be populated from a search form using a new/create controller model.
#
class AssetMapSearcher < BaseSearcher

  attr_accessor :asset_seed_class_name

  if eval("defined?(AppAssetMapSearcher) && AppAssetMapSearcher.is_a?(Class)") == true
    "AppAssetMapSearcher".constantize.form_params.each do |form_param|
      attr_accessor form_param
    end
  end

  SystemConfig.transam_module_names.each do |mod|
    if eval("defined?(#{mod.titleize}AssetMapSearcher) && #{mod.titleize}AssetMapSearcher.is_a?(Class)") == true
      "#{mod.titleize}AssetMapSearcher".constantize.form_params.each do |form_param|
        attr_accessor form_param
      end
    end
  end

  # Return the name of the form to display
  def form_view
    'asset_search_form'
  end
  # Return the name of the results table to display
  def results_view
    'asset_search_results_table'
  end

  def initialize(attributes = {})

    super(attributes)

    if asset_seed_class_name.present?
      @klass = Object.const_get asset_seed_class_name
    else
      @klass = Object.const_get Rails.application.config.asset_base_class_name
{'fraction_non_alphanumeric': 0.07940214852872489, 'fraction_numerical': 0.0014012143858010276, 'mean_word_length': 4.149038461538462, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2744018', 'n_tokens_mistral': 682, 'n_tokens_neox': 687, 'n_words': 160}