<commit_before>describe Bosh::Cloudfoundry::ReleaseVersion do
  it "cannot accept versions lower than 132" do
    expect { Bosh::Cloudfoundry::ReleaseVersion.for_version(131) }.to raise_error(RuntimeError)
  end

  it "finds an exact version match" do
    Bosh::Cloudfoundry::ReleaseVersion.for_version(132).version_number.should == 132
  end

  it "finds an next available version match" do
    Bosh::Cloudfoundry::ReleaseVersion.for_version(200).version_number.should == latest_cf_release_version
  end

  it "knows available versions" do
    Bosh::Cloudfoundry::ReleaseVersion.available_versions.should == [132, 133, 134, 136, 141, 146]
  end

  it "knows latest version number" do
    Bosh::Cloudfoundry::ReleaseVersion.latest_version_number.should == latest_cf_release_version
  end

  context "for v132" do
    subject { Bosh::Cloudfoundry::ReleaseVersion.for_version(132) }

    it "loads available CPIs" do
      subject.available_cpi_names.sort.should == %w[aws openstack]
    end

    it "has valid CPIs" do
      subject.valid_cpi?("aws").should be_true
      subject.valid_cpi?("openstack").should be_true
    end

    it "has invalid CPIs" do
      subject.valid_cpi?("xyz").should be_false
    end<commit_msg>fix remaining specs broken from adding new release<commit_after>describe Bosh::Cloudfoundry::ReleaseVersion do
  it "cannot accept versions lower than 132" do
    expect { Bosh::Cloudfoundry::ReleaseVersion.for_version(131) }.to raise_error(RuntimeError)
  end

  it "finds an exact version match" do
    Bosh::Cloudfoundry::ReleaseVersion.for_version(132).version_number.should == 132
  end

  it "finds an next available version match" do
    Bosh::Cloudfoundry::ReleaseVersion.for_version(200).version_number.should == latest_cf_release_version
  end

  it "knows available versions" do
    Bosh::Cloudfoundry::ReleaseVersion.available_versions.should == [132, 133, 134, 136, 141, 146, 149]
  end

  it "knows latest version number" do
    Bosh::Cloudfoundry::ReleaseVersion.latest_version_number.should == latest_cf_release_version
  end

  context "for v132" do
    subject { Bosh::Cloudfoundry::ReleaseVersion.for_version(132) }

    it "loads available CPIs" do
      subject.available_cpi_names.sort.should == %w[aws openstack]
    end

    it "has valid CPIs" do
      subject.valid_cpi?("aws").should be_true
      subject.valid_cpi?("openstack").should be_true
    end

    it "has invalid CPIs" do
      subject.valid_cpi?("xyz").should be_false
    end
{'fraction_non_alphanumeric': 0.09686495176848875, 'fraction_numerical': 0.03255627009646302, 'mean_word_length': 4.47032967032967, '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': '333662', 'n_tokens_mistral': 854, 'n_tokens_neox': 763, 'n_words': 193}