<commit_before>class View
  attr_accessor :category_to_search

  def welcome_message
    print "Welcome to NYC Women's Resource Finder"
  end

  def search_prompt
    print "What Category would you like to search? \n"
      CATEGORY_CODES.each do |category_array|
          print "#{category_array[0]} \n"
      end
    category_to_search = gets.chomp
  end
<commit_msg>update tasks on View class<commit_after>class View
  attr_accessor :category_to_search

  require 'pry'

  def welcome_message
    print "Welcome to NYC Women's Resource Finder"
  end

  def search_prompt(categories)
    print "What Category number would you like to search? \n"
    counter = 1
      categories.each do |category_array|
          print "#{counter}: #{category_array[0]} \n"
          counter += 1
      end
    category_to_search = gets.chomp.to_i
    if !category_to_search.is_a?(Integer)
      raise ArgumentError.new("Please select a number \n")
      search_prompt
    end
  end

  def convert_to_index(category_to_search) #move to controller
    category_to_search -= 1
  end
{'fraction_non_alphanumeric': 0.07122774133083412, 'fraction_numerical': 0.004686035613870665, 'mean_word_length': 3.171875, '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': '2585190', 'n_tokens_mistral': 344, 'n_tokens_neox': 327, 'n_words': 100}