<commit_before>
class Deck
  def print_definition
    puts "Definition:\n" + pick_card.definition
    user_input
  end

  def user_input
    input = gets.chomp
    compare(input)
  end

  def compare(input)
    if input == pick_card.question
      output_correct
      pick_card
    elsif input == 'exit'
      puts "Quitter."
    else
      output_incorrect
      user_input
    end
  end

  def output_correct
    puts "Wow you must be some kind of genius...Next question!"
  end

  def output_incorrect
    puts "You suck! If this were actual Jeopardy Trebeck would have laughed you out of town. Try again"
  end
end
<commit_msg>This is a huge commit doing bunches of stuff just oodles<commit_after>class Deck
  attr_accessor :cards

  def initialize
    @cards = []
    puts "You ever use flash cards before? Just give the word for each definition"
    load_txt_file
  end

  def load_txt_file
    @cards = File.open('definitions.txt').readlines
    deletes_space
  end

  def deletes_space
    @cards.reject!{|x|x=="\n"}
    turn_into_hash
  end

  def turn_into_hash
    @cards=Hash[*cards]
    print_definition
  end

  def pick_card
    @cards.keys.sample
  end

  def pick_new_card
    pick_card
    print_definition
  end

  def print_definition
    definition = pick_card
    puts "Definition:\n#{definition}"
    user_input
    compare
  end

  def user_input
    gets.chomp
  end

  def compare
    if user_input == @cards[pick_card]
      output_correct
      pick_new_card
    elsif user_input == 'exit'
      puts "Quitter."
    else
      output_incorrect
      user_input
    end
  end

  def output_correct
    puts "Wow you must be some kind of genius...Next question!"
  end

  def output_incorrect
    puts "You suck! If this were actual Jeopardy Trebeck would have laughed you out of town`"
  end
end

Deck.new
{'fraction_non_alphanumeric': 0.05837424986361157, 'fraction_numerical': 0.0, 'mean_word_length': 2.6901408450704225, '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': '7083247', 'n_tokens_mistral': 601, 'n_tokens_neox': 591, 'n_words': 190}