<commit_before>require "webmock/rspec"

require "radar"

RSpec.describe Radar, ".status_for" do
  context "when the airport can be found" do
    before do
      stub_request(:get, "http://services.faa.gov/airport/status/JFK").
        with(:headers => {"Accept" => "application/json"}).
        to_return(File.new(fixture("jfk")))
    end

    subject(:status) do
      Radar.status_for("JFK")
    end

    it "has a IATA code" do
      expect(status.code).to_not eq("JFK")
    end

    it "has a name" do
      expect(status.name).to eq("<NAME>")
    end

    it "has a city" do
      expect(status.city).to eq("New York")
    end

    it "has weather" do<commit_msg>Fix intentional spec failure.<commit_after>require "webmock/rspec"

require "radar"

RSpec.describe Radar, ".status_for" do
  context "when the airport can be found" do
    before do
      stub_request(:get, "http://services.faa.gov/airport/status/JFK").
        with(:headers => {"Accept" => "application/json"}).
        to_return(File.new(fixture("jfk")))
    end

    subject(:status) do
      Radar.status_for("JFK")
    end

    it "has a IATA code" do
      expect(status.code).to eq("JFK")
    end

    it "has a name" do
      expect(status.name).to eq("<NAME>")
    end

    it "has a city" do
      expect(status.city).to eq("New York")
    end

    it "has weather" do
{'fraction_non_alphanumeric': 0.14317507418397626, 'fraction_numerical': 0.0, 'mean_word_length': 2.695890410958904, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '1259530', 'n_tokens_mistral': 477, 'n_tokens_neox': 461, 'n_words': 120}