<commit_before><<<<<<< HEAD
require 'spec_helper'
describe WeatherWeasel::Forecast do
  before(:all) do
  @test_data =  [{"date"=>{"epoch"=>"1362722400", "pretty"=>"10:00 PM PST on March 07, 2013", "day"=>7, "month"=>3, "year"=>2013, "yday"=>65, "hour"=>22, "min"=>"00", "sec"=>0, "isdst"=>"0", "monthname"=>"March", "weekday_short"=>"Thu", "weekday"=>"Thursday", "ampm"=>"PM", "tz_short"=>"PST", "tz_long"=>"America/Los_Angeles"}, "period"=>1, "high"=>{"fahrenheit"=>"55", "celsius"=>"13"}, "low"=>{"fahrenheit"=>"37", "celsius"=>"3"}, "conditions"=>"Rain Showers", "icon"=>"rain", "icon_url"=>"http://icons-ak.wxug.com/i/c/k/rain.gif", "skyicon"=>"partlycloudy", "pop"=>40, "qpf_allday"=>{"in"=>0.07, "mm"=>1.8}, "qpf_day"=>{"in"=>0.04, "mm"=>1.0}, "qpf_night"=>{"in"=>0.0, "mm"=>0.0}, "snow_allday"=>{"in"=>0, "cm"=>0}, "snow_day"=>{"in"=>0, "cm"=>0}, "snow_night"=>{"in"=>0, "cm"=>0}, "maxwind"=>{"mph"=>9, "kph"=>14, "dir"=>"South", "degrees"=>172}, "avewind"=>{"mph"=>7, "kph"=>11, "dir"=>"WNW", "degrees"=>294}, "avehumidity"=>70, "maxhumidity"=>90, "minhumidity"=>59}, {"date"=>{"epoch"=>"1362808800", "pretty"=>"10:00 PM PST on March 08, 2013", "day"=>8, "month"=>3, "year"=>2013, "yday"=>66, "hour"=>22, "min"=>"00", "sec"=>0, "isdst"=>"0", "monthname"=>"March", "weekday_short"=>"Fri", "weekday"=>"Friday", "ampm"=>"PM", "tz_short"=>"PST", "tz_long"=>"America/Los_Angeles"}, "period"=>2, "high"=>{"fahrenheit"=>"57", "celsius"=>"14"}, "low"=>{"fahrenheit"=>"37", "celsius"=>"3"}, "conditions"=>"Partly Cloudy", "icon"=>"partlycloudy", "icon_url"=>"http://icons-ak.wxug.com/i/c/k/partlycloudy.gif", "skyicon"=>"partlycloudy", "pop"=>10, "qpf_allday"=>{"in"=>0.0, "mm"=>0.0}, "qpf_day"=>{"in"=>0.0, "mm"=>0.0}, "qpf_night"=>{"in"=>0.0, "mm"=>0.0}, "snow_allday"=>{"in"=>0, "cm"=>0}, "snow_day"=>{"in"=>0, "cm"=>0}, "snow_night"=>{"in"=>0, "cm"=>0}, "maxwind"=>{"mph"=>9, "kph"=>14, "dir"=>"NW", "degrees"=>312}, "avewind"=>{"mph"=>7, "kph"=>11, "dir"=>"NW", "degrees"=>306}, "avehumidity"=>68, "maxhumidity"=>82, "minhumidity"=>48}, {"date"=>{"epoch"=>"1362895200", "pretty"=>"10:00 PM PST on March 09, 2013", "day"=>9, "month"=>3, "year"=>2013, "yday"=>67, "hour"=>22, "min"=>"00", "sec"=>0, "isdst"=>"0", "monthname"=>"March", "weekday_short"=>"Sat", "weekday"=>"Saturday", "ampm"=>"PM", "tz_short"=>"PST", "tz_long"=>"America/Los_Angeles"}, "period"=>3, "high"=>{"fahrenheit"=>"55", "celsius"=>"13"}, "low"=>{"fahrenheit"=>"45", "celsius"=>"7"}, "conditions"=>"Partly Cloudy", "icon"=>"partlycloudy", "icon_url"=>"http://icons-ak.wxug.com/i/c/k/partlycloudy.gif", "skyicon"=>"mostlysunny", "pop"=>0, "qpf_allday"=>{"in"=>0.0, "mm"=>0.0}, "qpf_day"=>{"in"=>0.0, "mm"=>0.0}, "qpf_night"=>{"in"=>0.0, "mm"=>0.0}, "snow_allday"=>{"in"=>0, "cm"=>0}, "snow_day"=>{"in"=>0, "cm"=>0}, "snow_night"=>{"in"=>0, "cm"=>0}, "maxwind"=>{"mph"=>9, "kph"=>14, "dir"=>"NNW", "degrees"=>329}, "avewind"=>{"mph"=>4, "kph"=>6, "dir"=>"NW", "degrees"=>320}, "avehumidity"=>51, "maxhumidity"=>76, "minhumidity"=>46}, {"date"=>{"epoch"=>"1362981600", "pretty"=>"11:00 PM PDT on March 10, 2013", "day"=>10, "month"=>3, "year"=>2013, "yday"=>68, "hour"=>23, "min"=>"00", "sec"=>0, "isdst"=>"1", "monthname"=>"March", "weekday_short"=>"Sun", "weekday"=>"Sunday", "ampm"=>"PM", "tz_short"=>"PDT", "tz_long"=>"America/Los_Angeles"}, "period"=>4, "high"=>{"fahrenheit"=>"57", "celsius"=>"14"}, "low"=>{"fahrenheit"=>"39", "celsius"=>"4"}, "conditions"=>"Chance of Rain", "icon"=>"chancerain", "icon_url"=>"http://icons-ak.wxug.com/i/c/k/chancerain.gif", "skyicon"=>"cloudy", "pop"=>40, "qpf_allday"=>{"in"=>0.21, "mm"=>5.3}, "qpf_day"=>{"in"=>0.12, "mm"=>3.0}, "qpf_night"=>{"in"=>0.12, "mm"=>3.0}, "snow_allday"=>{"in"=>0, "cm"=>0}, "snow_day"=>{"in"=>0, "cm"=>0}, "snow_night"=>{"in"=>0, "cm"=>0}, "maxwind"=>{"mph"=>4, "kph"=>6, "dir"=>"SSE", "degrees"=>167}, "avewind"=>{"mph"=>3, "kph"=>5, "dir"=>"South", "degrees"=>176}, "avehumidity"=>71, "maxhumidity"=>76, "minhumidity"=>55}] 
  
  @portland = WeatherWeasel::Forecast.new("Portland", "OR", "test")
   
  end
  
  it "can return the highest temperature in its forecast days in fahrenheit" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.high("imperial").should == "57"
  end
  
  it "can return the highest temperature in its forecast days in celsius" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.high("metric").should == "14"
  end
  
  it "can return the lowest temperature in its forecast days in fahrenheit" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.low("imperial").should == "37"
  end
  
  it "can return the lowest temperature in its forecast days in celsius" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.low("metric").should == "3"
  end
  
  it "can return the an array of highs in its forecast days" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.all_highs("imperial").should == ["55", "57", "55", "57"]
  end
  
  it "can return the an array of lows in its forecast days" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.all_lows("imperial").should == ["37", "37", "45", "39"]
  end
  
  it "can return fahrenheit when passed imperial" do
    @portland.set_scale("imperial") == "fahrenheit"
  end
  
  it "can return celsius when passed metric" do
    @portland.set_scale("metric") == "celsius"
  end
  
  it "can return the array of max wind speeds in its forecast days" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.all_max_wind("imperial").should == [9, 9, 9, 4]
  end

  it "can return the highest wind speed in its forecast days" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.max_wind("imperial").should == 9
  end

  it "can return the highest wind speed in its forecast days" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.max_wind("metric").should == 14
  end
  
  it "can return an array of the snow accumilation for each day in the forecast" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.all_snow_day("imperial").should == [0, 0, 0, 0]
  end
  
  it "can return the highest snow day accumilation of the forecast in inches" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.highest_snow_day("imperial").should == 0
  end
  
  it "can return the highest snow accumilation of the forecast in centimeters" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.highest_snow_day("metric").should == 0
  end
  
  it "can return the snow accumilation for a given day in the forecast" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.snow_day(0, "metric").should == 0
  end
  
  it "can return an array of the snow night accumilation for each day in the forecast" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.all_snow_night("imperial").should == [0, 0, 0, 0]
  end
  
  it "can return an array of the all day accumilation for each day in the forecast" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.all_snow_allday("imperial").should == [0, 0, 0, 0]
  end
  
  it "can return all skyicon in its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.skyicon(0).should == "partlycloudy"
  end 

  it "can return all skyicons in its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.skyicons.should == ["partlycloudy", "partlycloudy", "mostlysunny", "cloudy"]
  end 

  it "can return the pop for its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.pop(0).should == 40
  end

  it "can return the pops for its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.pops.should == [40, 10, 0, 40]
  end

  it "can return the qpf_alldays for its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.qpf_alldays("in").should == [0.07, 0.0, 0.0, 0.21]
  end

  it "can return the qpf_day for its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.qpf_day(0,"in").should == 0.04
  end

  it "can return the qpf_days for its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.qpf_days("in").should == [0.04, 0.0, 0.0, 0.12]
  end

  it "can return the qpf_night for its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.qpf_night(0).should == 0.04
  end

  it "can return the qpf_nights for its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.qpf_nights("in").should == [0.04, 0.0, 0.0, 0.12]
  end
  
  it "can return all forecast_conditions in its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.forecast_conditions.should == ["Rain Showers", "Partly Cloudy", "Partly Cloudy", "Chance of Rain"]
  end

  it "can return all forecast_condition in its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.forecast_condition(0).should == "Rain Showers"
  end
  
end<commit_msg>fixing some forecast spec overlap<commit_after>require 'spec_helper'
describe WeatherWeasel::Forecast do
  before(:all) do
  @test_data =  [{"date"=>{"epoch"=>"1362722400", "pretty"=>"10:00 PM PST on March 07, 2013", "day"=>7, "month"=>3, "year"=>2013, "yday"=>65, "hour"=>22, "min"=>"00", "sec"=>0, "isdst"=>"0", "monthname"=>"March", "weekday_short"=>"Thu", "weekday"=>"Thursday", "ampm"=>"PM", "tz_short"=>"PST", "tz_long"=>"America/Los_Angeles"}, "period"=>1, "high"=>{"fahrenheit"=>"55", "celsius"=>"13"}, "low"=>{"fahrenheit"=>"37", "celsius"=>"3"}, "conditions"=>"Rain Showers", "icon"=>"rain", "icon_url"=>"http://icons-ak.wxug.com/i/c/k/rain.gif", "skyicon"=>"partlycloudy", "pop"=>40, "qpf_allday"=>{"in"=>0.07, "mm"=>1.8}, "qpf_day"=>{"in"=>0.04, "mm"=>1.0}, "qpf_night"=>{"in"=>0.0, "mm"=>0.0}, "snow_allday"=>{"in"=>0, "cm"=>0}, "snow_day"=>{"in"=>0, "cm"=>0}, "snow_night"=>{"in"=>0, "cm"=>0}, "maxwind"=>{"mph"=>9, "kph"=>14, "dir"=>"South", "degrees"=>172}, "avewind"=>{"mph"=>7, "kph"=>11, "dir"=>"WNW", "degrees"=>294}, "avehumidity"=>70, "maxhumidity"=>90, "minhumidity"=>59}, {"date"=>{"epoch"=>"1362808800", "pretty"=>"10:00 PM PST on March 08, 2013", "day"=>8, "month"=>3, "year"=>2013, "yday"=>66, "hour"=>22, "min"=>"00", "sec"=>0, "isdst"=>"0", "monthname"=>"March", "weekday_short"=>"Fri", "weekday"=>"Friday", "ampm"=>"PM", "tz_short"=>"PST", "tz_long"=>"America/Los_Angeles"}, "period"=>2, "high"=>{"fahrenheit"=>"57", "celsius"=>"14"}, "low"=>{"fahrenheit"=>"37", "celsius"=>"3"}, "conditions"=>"Partly Cloudy", "icon"=>"partlycloudy", "icon_url"=>"http://icons-ak.wxug.com/i/c/k/partlycloudy.gif", "skyicon"=>"partlycloudy", "pop"=>10, "qpf_allday"=>{"in"=>0.0, "mm"=>0.0}, "qpf_day"=>{"in"=>0.0, "mm"=>0.0}, "qpf_night"=>{"in"=>0.0, "mm"=>0.0}, "snow_allday"=>{"in"=>0, "cm"=>0}, "snow_day"=>{"in"=>0, "cm"=>0}, "snow_night"=>{"in"=>0, "cm"=>0}, "maxwind"=>{"mph"=>9, "kph"=>14, "dir"=>"NW", "degrees"=>312}, "avewind"=>{"mph"=>7, "kph"=>11, "dir"=>"NW", "degrees"=>306}, "avehumidity"=>68, "maxhumidity"=>82, "minhumidity"=>48}, {"date"=>{"epoch"=>"1362895200", "pretty"=>"10:00 PM PST on March 09, 2013", "day"=>9, "month"=>3, "year"=>2013, "yday"=>67, "hour"=>22, "min"=>"00", "sec"=>0, "isdst"=>"0", "monthname"=>"March", "weekday_short"=>"Sat", "weekday"=>"Saturday", "ampm"=>"PM", "tz_short"=>"PST", "tz_long"=>"America/Los_Angeles"}, "period"=>3, "high"=>{"fahrenheit"=>"55", "celsius"=>"13"}, "low"=>{"fahrenheit"=>"45", "celsius"=>"7"}, "conditions"=>"Partly Cloudy", "icon"=>"partlycloudy", "icon_url"=>"http://icons-ak.wxug.com/i/c/k/partlycloudy.gif", "skyicon"=>"mostlysunny", "pop"=>0, "qpf_allday"=>{"in"=>0.0, "mm"=>0.0}, "qpf_day"=>{"in"=>0.0, "mm"=>0.0}, "qpf_night"=>{"in"=>0.0, "mm"=>0.0}, "snow_allday"=>{"in"=>0, "cm"=>0}, "snow_day"=>{"in"=>0, "cm"=>0}, "snow_night"=>{"in"=>0, "cm"=>0}, "maxwind"=>{"mph"=>9, "kph"=>14, "dir"=>"NNW", "degrees"=>329}, "avewind"=>{"mph"=>4, "kph"=>6, "dir"=>"NW", "degrees"=>320}, "avehumidity"=>51, "maxhumidity"=>76, "minhumidity"=>46}, {"date"=>{"epoch"=>"1362981600", "pretty"=>"11:00 PM PDT on March 10, 2013", "day"=>10, "month"=>3, "year"=>2013, "yday"=>68, "hour"=>23, "min"=>"00", "sec"=>0, "isdst"=>"1", "monthname"=>"March", "weekday_short"=>"Sun", "weekday"=>"Sunday", "ampm"=>"PM", "tz_short"=>"PDT", "tz_long"=>"America/Los_Angeles"}, "period"=>4, "high"=>{"fahrenheit"=>"57", "celsius"=>"14"}, "low"=>{"fahrenheit"=>"39", "celsius"=>"4"}, "conditions"=>"Chance of Rain", "icon"=>"chancerain", "icon_url"=>"http://icons-ak.wxug.com/i/c/k/chancerain.gif", "skyicon"=>"cloudy", "pop"=>40, "qpf_allday"=>{"in"=>0.21, "mm"=>5.3}, "qpf_day"=>{"in"=>0.12, "mm"=>3.0}, "qpf_night"=>{"in"=>0.12, "mm"=>3.0}, "snow_allday"=>{"in"=>0, "cm"=>0}, "snow_day"=>{"in"=>0, "cm"=>0}, "snow_night"=>{"in"=>0, "cm"=>0}, "maxwind"=>{"mph"=>4, "kph"=>6, "dir"=>"SSE", "degrees"=>167}, "avewind"=>{"mph"=>3, "kph"=>5, "dir"=>"South", "degrees"=>176}, "avehumidity"=>71, "maxhumidity"=>76, "minhumidity"=>55}] 
  
  @portland = WeatherWeasel::Forecast.new("Portland", "OR", "test")
   
  end
  
  it "can return the highest temperature in its forecast days in fahrenheit" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.high("imperial").should == 57
  end
  
  it "can return the highest temperature in its forecast days in celsius" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.high("metric").should == 14
  end
  
  it "can return the lowest temperature in its forecast days in fahrenheit" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.low("imperial").should == 37
  end
  
  it "can return the lowest temperature in its forecast days in celsius" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.low("metric").should == 3
  end
  
  it "can return the an array of highs in its forecast days" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.all_highs("imperial").should == [55, 57, 55, 57]
  end
  
  it "can return the an array of lows in its forecast days" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.all_lows("imperial").should == [37, 37, 45, 39]
  end
  
  it "can return fahrenheit when passed imperial" do
    @portland.set_scale("imperial") == "fahrenheit"
  end
  
  it "can return celsius when passed metric" do
    @portland.set_scale("metric") == "celsius"
  end
  
  it "can return the array of max wind speeds in its forecast days" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.all_max_wind("imperial").should == [9, 9, 9, 4]
  end

  it "can return the highest wind speed in its forecast days" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.max_wind("imperial").should == 9
  end

  it "can return the highest wind speed in its forecast days" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.max_wind("metric").should == 14
  end
  
  it "can return an array of the snow accumilation for each day in the forecast" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.all_snow_day("imperial").should == [0, 0, 0, 0]
  end
  
  it "can return the highest snow day accumilation of the forecast in inches" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.highest_snow_day("imperial").should == 0
  end
  
  it "can return the highest snow accumilation of the forecast in centimeters" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.highest_snow_day("metric").should == 0
  end
  
  it "can return the snow accumilation for a given day in the forecast" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.snow_day(0, "metric").should == 0
  end
  
  it "can return an array of the snow night accumilation for each day in the forecast" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.all_snow_night("imperial").should == [0, 0, 0, 0]
  end
  
  it "can return an array of the all day accumilation for each day in the forecast" do
    @portland.stub(:forecast_days).and_return(@test_data)
    @portland.all_snow_allday("imperial").should == [0, 0, 0, 0]
  end
  
  it "can return all skyicon in its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.skyicon(0).should == "partlycloudy"
  end 

  it "can return all skyicons in its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.skyicons.should == ["partlycloudy", "partlycloudy", "mostlysunny", "cloudy"]
  end 

  it "can return the pop for its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.pop(0).should == 40
  end

  it "can return the pops for its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.pops.should == [40, 10, 0, 40]
  end

  it "can return the qpf_alldays for its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.qpf_alldays("imperial").should == [0.07, 0.0, 0.0, 0.21]
  end

  it "can return the qpf_day for its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.qpf_day(0,"imperial").should == 0.04
  end

  it "can return the qpf_days for its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.qpf_days("imperial").should == [0.04, 0.0, 0.0, 0.12]
  end

  it "can return the qpf_night for its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.qpf_night(0).should == 0.04
  end

  it "can return the qpf_nights for its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.qpf_nights("imperial").should == [0.04, 0.0, 0.0, 0.12]
  end
  
  it "can return all forecast_conditions in its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.forecast_conditions.should == ["Rain Showers", "Partly Cloudy", "Partly Cloudy", "Chance of Rain"]
  end

  it "can return all forecast_condition in its forecast days" do
    portland = WeatherWeasel::Forecast.new("OR", "Portland", "Test")
    portland.stub(:forecast_days).and_return(@test_data)
    portland.forecast_condition(0).should == "Rain Showers"
  end
  
end
{'fraction_non_alphanumeric': 0.22855572763151322, 'fraction_numerical': 0.04176450017485138, 'mean_word_length': 5.815798433775962, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 483, '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': '3999213', 'n_tokens_mistral': 8525, 'n_tokens_neox': 8030, 'n_words': 1543}