<commit_before>require "dependency_collector"

describe DependencyCollector do
  alias_matcher :be_a_build_requirement, :be_build

  after(:each) do
    described_class.clear_cache
  end

  describe "#add" do
    it "creates a resource dependency from a '.zip' URL" do
      resource = Resource.new
      resource.url("http://example.com/foo.zip")
      expect(subject.add(resource)).to eq(Dependency.new("zip", [:build]))
    end

    it "creates a resource dependency from a '.bzip2' URL" do
      resource = Resource.new
      resource.url("http://example.com/foo.tar.bzip2")
      expect(subject.add(resource)).to eq(Dependency.new("bzip2", [:build]))
    end
  end
end<commit_msg>Fixing test<commit_after>require "dependency_collector"

describe DependencyCollector do
  alias_matcher :be_a_build_requirement, :be_build

  after(:each) do
    described_class.clear_cache
  end

  describe "#add" do
    it "creates a resource dependency from a '.zip' URL" do
      resource = Resource.new
      resource.url("http://example.com/foo.zip")
      expect(subject.add(resource)).to eq(Dependency.new("zip", [:build]))
    end

    it "creates a resource dependency from a '.bz2' URL" do
      resource = Resource.new
      resource.url("http://example.com/foo.tar.bz2")
      expect(subject.add(resource)).to eq(Dependency.new("bzip2", [:build]))
    end
  end
end
{'fraction_non_alphanumeric': 0.12609970674486803, 'fraction_numerical': 0.004398826979472141, 'mean_word_length': 3.642857142857143, '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': '3869641', 'n_tokens_mistral': 443, 'n_tokens_neox': 428, 'n_words': 102}