<commit_before>class LearningType::Instructions
  attr_reader :level_number, :instructions, :count
  instructions = [
    'Copy the following pattern to the best of your ability then press the enter key. When you are ready to begin press enter key.',
    'Copy the following sentence to the best of your ability then press the enter key. When you are ready to begin press enter key.',
    'Copy the following paragraph to the best of your ability then press the enter key. When you are ready to begin press enter key.',
  ]
  level_number = 0
  name = :give_instructions

  TracePoint.trace(:call) do |t|
    level_number += 1 if t.method_id == name
    if level_number > instructions.length
      level_number = 0
    end
  end

  
    puts instructions[level_number]
    enter = gets

    if enter == "\n"
      LearningType::Game.new(level_number).output_text
  end
end
<commit_msg>added back give_instructions method<commit_after>class LearningType::Instructions
  attr_reader :level_number, :instructions, :count
  instructions = [
    'Copy the following pattern to the best of your ability then press the enter key. When you are ready to begin press enter key.',
    'Copy the following sentence to the best of your ability then press the enter key. When you are ready to begin press enter key.',
    'Copy the following paragraph to the best of your ability then press the enter key. When you are ready to begin press enter key.',
  ]
  level_number = 0
  name = :give_instructions

  TracePoint.trace(:call) do |t|
    level_number += 1 if t.method_id == name
    if level_number > instructions.length
      level_number = 0
    end
  end

  def give_instructions(level_number)
    puts instructions[level_number]
    enter = gets

    if enter == "\n"
      LearningType::Game.new(level_number).output_text
    end
  end
end

{'fraction_non_alphanumeric': 0.0653950953678474, 'fraction_numerical': 0.0032697547683923707, 'mean_word_length': 3.4563106796116503, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7037954', 'n_tokens_mistral': 510, 'n_tokens_neox': 499, 'n_words': 222}