<commit_before>require 'spec_helper'
require 'bosh/dev/promotable_artifacts'
require 'bosh/dev/build'

module Bosh::Dev
  describe PromotableArtifacts do
    subject(:build_artifacts) { PromotableArtifacts.new(build) }
    let(:light_stemcell) { instance_double('Bosh::Stemcell::Archive') }
    let(:build) { instance_double('Bosh::Dev::Build', number: 123, light_stemcell: light_stemcell) }

    its(:release_file) { should eq('bosh-123.tgz') }

    describe '#commands' do
      let(:stemcell_artifacts) { instance_double('Bosh::Dev::StemcellArtifacts', list: archive_filenames) }
      let(:archive_filenames) do
        [
          instance_double('Bosh::Stemcell::ArchiveFilename', to_s: 'blue/stemcell-blue.tgz'),
          instance_double('Bosh::Stemcell::ArchiveFilename', to_s: 'red/stemcell-red.tgz'),
        ]
      end

      let(:gem_components) do
        instance_double('Bosh::Dev::GemComponents', components: [
          'GemComponent 1',
          'GemComponent 2',
        ])
      end

      let(:gem_artifacts) do
        [
          instance_double('Bosh::Dev::GemArtifact', promote: nil),
          instance_double('Bosh::Dev::GemArtifact', promote: nil),
        ]
      end

      let(:light_stemcell_pointer) do
        instance_double('Bosh::Dev::LightStemcellPointer', promote: nil)
      end<commit_msg>correct a method description in test<commit_after>require 'spec_helper'
require 'bosh/dev/promotable_artifacts'
require 'bosh/dev/build'

module Bosh::Dev
  describe PromotableArtifacts do
    subject(:build_artifacts) { PromotableArtifacts.new(build) }
    let(:light_stemcell) { instance_double('Bosh::Stemcell::Archive') }
    let(:build) { instance_double('Bosh::Dev::Build', number: 123, light_stemcell: light_stemcell) }

    its(:release_file) { should eq('bosh-123.tgz') }

    describe '#all' do
      let(:stemcell_artifacts) { instance_double('Bosh::Dev::StemcellArtifacts', list: archive_filenames) }
      let(:archive_filenames) do
        [
          instance_double('Bosh::Stemcell::ArchiveFilename', to_s: 'blue/stemcell-blue.tgz'),
          instance_double('Bosh::Stemcell::ArchiveFilename', to_s: 'red/stemcell-red.tgz'),
        ]
      end

      let(:gem_components) do
        instance_double('Bosh::Dev::GemComponents', components: [
          'GemComponent 1',
          'GemComponent 2',
        ])
      end

      let(:gem_artifacts) do
        [
          instance_double('Bosh::Dev::GemArtifact', promote: nil),
          instance_double('Bosh::Dev::GemArtifact', promote: nil),
        ]
      end

      let(:light_stemcell_pointer) do
        instance_double('Bosh::Dev::LightStemcellPointer', promote: nil)
      end
{'fraction_non_alphanumeric': 0.13412816691505217, 'fraction_numerical': 0.005961251862891207, 'mean_word_length': 3.5819112627986347, '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': '5894865', 'n_tokens_mistral': 894, 'n_tokens_neox': 843, 'n_words': 132}