<commit_before>require('rspec')
require('contact_name')

describe(ContactName) do
  describe('#initialize') do
    it('is empty at first') do
      test_name = ContactName.new({:first_name => nil, :last_name => nil})
      expect(ContactName.all()).to(eq([]))
    end
  end
  describe('#save') do
    it('saves the phone number and returns it') do
      test_name = ContactName.new({:first_name => "Joshua", :last_name => "Atteberry"})
      test_name.save()
      expect(ContactName.all()).to(eq([test_name]))
    end
  end
end
<commit_msg>Add first_name spec<commit_after>require('rspec')
require('contact_name')

describe(ContactName) do
  describe('#initialize') do
    it('is empty at first') do
      test_name = ContactName.new({:first_name => nil, :last_name => nil})
      expect(ContactName.all()).to(eq([]))
    end
  end
  describe('#save') do
    it('saves the phone number and returns it') do
      test_name = ContactName.new({:first_name => "Joshua", :last_name => "Atteberry"})
      test_name.save()
      expect(ContactName.all()).to(eq([test_name]))
    end
  end
  describe('#first_name') do
    it("returns the first name") do
      test_name = ContactName.new({:first_name => "Joshua", :last_name => "Atteberry"})
      test_name.save()
      expect(test_name.first_name()).to(eq("Joshua"))
    end
  end
end

{'fraction_non_alphanumeric': 0.1629129129129129, 'fraction_numerical': 0.0, 'mean_word_length': 3.937037037037037, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '7288229', 'n_tokens_mistral': 446, 'n_tokens_neox': 436, 'n_words': 96}