<commit_before>require "spec_helper"

describe Gamer do
  describe '#add' do
    it 'adds a new game' do
      input_file = File.open("input.txt", "r")
      gamer = Gamer.new(input_file)
      gamer.parse_input
      expect(gamer.games.first).to be_a(Game)
    end
  end

  describe '#update' do
    it 'updates an existing game' do
      input_file = File.open("input.txt", "r")
      gamer = Gamer.new(input_file)
      gamer.parse_input
    end
  end
end
<commit_msg>Update delete method<commit_after>require "spec_helper"

describe Gamer do
  describe '#add' do
    it 'adds a new game' do
      input_file = File.open("input.txt", "r")
      gamer = Gamer.new(input_file)
      gamer.parse_input
      expect(gamer.games.first).to be_a(Game)
    end
  end

  describe '#update' do
    it 'updates an existing game' do
      input_file = File.open("input.txt", "r")
      gamer = Gamer.new(input_file)
      gamer.parse_input
      expect(gamer.games.first.year).to eq('1995')
    end
  end

  describe '#delete' do
    it 'deletes an existing game' do
      input_file = File.open("input.txt", "r")
      gamer = Gamer.new(input_file)
      gamer.parse_input
      expect(gamer.games.last).to be_nil
    end
  end
end

{'fraction_non_alphanumeric': 0.11356209150326797, 'fraction_numerical': 0.0032679738562091504, 'mean_word_length': 2.712121212121212, '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': '6115329', 'n_tokens_mistral': 446, 'n_tokens_neox': 432, 'n_words': 107}