<commit_before># encoding: utf-8
require File.dirname(__FILE__) + '/spec_helper'

describe "Areas" do

  before :each do
    browser.goto(WatirSpec.files + "/images.html")
  end

  describe "#length" do
    it "returns the number of areas" do
      browser.areas.length.should == 3
    end
  end

  describe "#[]" do
    it "returns the area at the given index" do
      browser.areas[0].id.should == "NCE"
    end
  end

  describe "#each" do
    it "iterates through areas correctly" do
      browser.areas.each_with_index do |a, index|
        a.id.should == browser.area(:index, index).id
        a.value.should == browser.area(:index, index).value
      end
    end
  end

end<commit_msg><area> does not have value attributes<commit_after># encoding: utf-8
require File.dirname(__FILE__) + '/spec_helper'

describe "Areas" do

  before :each do
    browser.goto(WatirSpec.files + "/images.html")
  end

  describe "#length" do
    it "returns the number of areas" do
      browser.areas.length.should == 3
    end
  end

  describe "#[]" do
    it "returns the area at the given index" do
      browser.areas[0].id.should == "NCE"
    end
  end

  describe "#each" do
    it "iterates through areas correctly" do
      browser.areas.each_with_index do |a, index|
        a.id.should == browser.area(:index, index).id
        a.title.should == browser.area(:index, index).title
      end
    end
  end

end
{'fraction_non_alphanumeric': 0.11631205673758865, 'fraction_numerical': 0.00425531914893617, 'mean_word_length': 2.732804232804233, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '898387', 'n_tokens_mistral': 467, 'n_tokens_neox': 452, 'n_words': 138}