<commit_before>shared :stringio_eof do |cmd|
  describe "StringIO##{cmd}" do
    before(:each) do
      @io = StringIO.new("eof")
    end

    it "returns true when self's position is at the end" do
      @io.pos = 3
      @io.send(cmd).should == true
    end

    it "returns false when self's position is not at the end" do
      @io.pos = 0
      @io.send(cmd).should == false

      @io.pos = 1
      @io.send(cmd).should == false

      @io.pos = 2
      @io.send(cmd).should == false
    end
  end
end
<commit_msg>Small updates to StringIO#eof? and StringIO#eof.<commit_after>shared :stringio_eof do |cmd|
  describe "StringIO##{cmd}" do
    before(:each) do
      @io = StringIO.new("eof")
    end

    it "returns true when self's position is greater than or equal to self's size" do
      @io.pos = 3
      @io.send(cmd).should be_true
      
      @io.pos = 6
      @io.send(cmd).should be_true
    end

    it "returns false when self's position is less than self's size" do
      @io.pos = 0
      @io.send(cmd).should be_false

      @io.pos = 1
      @io.send(cmd).should be_false

      @io.pos = 2
      @io.send(cmd).should be_false
    end
  end
end

{'fraction_non_alphanumeric': 0.12157534246575342, 'fraction_numerical': 0.007705479452054794, 'mean_word_length': 2.2472222222222222, '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': '5981547', 'n_tokens_mistral': 427, 'n_tokens_neox': 403, 'n_words': 123}