<commit_before>class CatsForAdoption::CLI


  def call
    list_cats
    choose_cats
    goodbye 
  end

  def list_cats
    puts "Cats for Adoption:"

  
    @cats = CatsForAdoption::Cats.list_all# need a method here to scrape the cats
  end

  def choose_cats
    
    input = nil

    while input != "exit"
    
    puts "please choose the cat number you're interested or list to see the cats menu or type exit:"
    input = gets.chomp.downcase 

      case input 
        when "1"
          puts "More info on Lola"
        when "2"
          puts "More info on Dextoo"
        when "3"
          puts "More info on Peppone"
        when "list"
          list_cats
        else 
          puts "not sure what you want - type list, a cat number or exit"
      end
    end
  end

  def goodbye
    puts "Thanks for checking in!"
  end



end<commit_msg>updating cli - code along with video<commit_after>class CatsForAdoption::CLI


  def call
    list_cats
    choose_cats
    goodbye 
  end

  def list_cats
    puts "Cats for Adoption:"

  
    @cats = CatsForAdoption::Cats.list_all# need a method here to scrape the cats
  end

  def choose_cats
    input = nil
    while input != "exit"
    
    puts "please choose the cat number you're interested or list to see the cats menu or type exit:"
    input = gets.chomp.downcase 

      if input.to_i > 0 
        puts @cats[input.to_i-1]
      elsif input == "list"
        list_cats
      else
        puts "not sure what you want - type list, a cat number or exit"
      end
    end
  end

  def goodbye
    puts "Thanks for checking in!"
  end

end
{'fraction_non_alphanumeric': 0.0573208722741433, 'fraction_numerical': 0.003115264797507788, 'mean_word_length': 1.9906890130353818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3599669', 'n_tokens_mistral': 540, 'n_tokens_neox': 505, 'n_words': 195}