<commit_before>
class RegalNowPlaying::CLI

  def call
    puts "testing"
  end

end<commit_msg>added skeleton code for cli<commit_after>
class RegalNowPlaying::CLI

  def call
    RegalNowPlaying::Scraper.new.make_movies
    list_movies
    menu
    "Goodbye!"
  end

  def list_movies
    # html http://www.fandango.com/regalmedlockcrossingstadium1826rpx_aamem/theaterpage
    puts "Here are the movies showing today at Regal Medlock Crossing Stadium 18 & RPX:"
    puts "movies here"
  end

  def menu
    puts "Enter the number of the movie you would like more information on or type exit?"

    while input != "exit"
      input = gets.strip.downcase
      movie = RegalNowPlaying::Movie.find(input.to_i)
      print_movie(movie)

      puts ""
      puts "Would you like to see another movie? Enter Y or N:"
      input = gets.strip.downcase

      if input == "y"
        list_movies
      else
        puts "Goodbye! Have a nice day!"
        exit
      end
    end
  end

    def print_movie(movie)
        puts ""
        puts "----------- #{movie.name} - #{movie.position} -----------"
        puts ""
        puts "Rating:           #{movie.rating}"
        puts "Runtime:          #{movie.runtime}"
        puts "Genre:      #{movie.genre}"
        puts "More Info:      #{movie.info}"
      end

end
{'fraction_non_alphanumeric': 0.10357958872810358, 'fraction_numerical': 0.00456968773800457, 'mean_word_length': 2.121140142517815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '7122163', 'n_tokens_mistral': 432, 'n_tokens_neox': 418, 'n_words': 122}