<commit_before>require 'helper'

describe Twitter::Geo::Point do

  before do
    @point = Twitter::Geo::Point.new(:coordinates => [-122.399983, 37.788299])
  end

  describe "#==" do
    it "returns false for empty objects" do
      point = Twitter::Geo::Point.new
      other = Twitter::Geo::Point.new
      (point == other).should be_false
    end
    it "returns true when objects coordinates are the same" do
      other = Twitter::Geo::Point.new(:coordinates => [-122.399983, 37.788299])
      (@point == other).should be_true
    end
    it "returns false when objects coordinates are different" do
      other = Twitter::Geo::Point.new(:coordinates => [37.788299, -122.399983])
      (@point == other).should be_false
    end
    it "returns false when classes are different" do
      other = Twitter::Geo.new(:coordinates => [-122.399983, 37.788299])
      (@point == other).should be_false
    end
  end

  describe "#latitude" do
    it "returns the latitude" do
      @point.latitude.should eq -122.399983
    end
  end

  describe "#longitude" do
    it "returns the longitude" do
      @point.longitude.should eq 37.788299
    end
  end

end<commit_msg>Fix "ambiguous first argument" warning<commit_after>require 'helper'

describe Twitter::Geo::Point do

  before do
    @point = Twitter::Geo::Point.new(:coordinates => [-122.399983, 37.788299])
  end

  describe "#==" do
    it "returns false for empty objects" do
      point = Twitter::Geo::Point.new
      other = Twitter::Geo::Point.new
      (point == other).should be_false
    end
    it "returns true when objects coordinates are the same" do
      other = Twitter::Geo::Point.new(:coordinates => [-122.399983, 37.788299])
      (@point == other).should be_true
    end
    it "returns false when objects coordinates are different" do
      other = Twitter::Geo::Point.new(:coordinates => [37.788299, -122.399983])
      (@point == other).should be_false
    end
    it "returns false when classes are different" do
      other = Twitter::Geo.new(:coordinates => [-122.399983, 37.788299])
      (@point == other).should be_false
    end
  end

  describe "#latitude" do
    it "returns the latitude" do
      @point.latitude.should eq(-122.399983)
    end
  end

  describe "#longitude" do
    it "returns the longitude" do
      @point.longitude.should eq 37.788299
    end
  end

end
{'fraction_non_alphanumeric': 0.1228813559322034, 'fraction_numerical': 0.07203389830508475, 'mean_word_length': 3.02901023890785, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '7295813', 'n_tokens_mistral': 851, 'n_tokens_neox': 738, 'n_words': 218}