<commit_before>describe 'spec_platform' do
  context 'with no platform' do
    before do
      expect($stderr).to receive(:puts).with(/WARNING: you must specify/)
    end
    it { is_expected.to write_log('test').with_message('Hello chefspec 0.6.1') }
  end

  context 'with an ubuntu platform' do
    platform 'ubuntu', '20.04'
    it { is_expected.to write_log('test').with_message('Hello ubuntu 20.04') }
  end

  context 'with a freebsd platform' do
    platform 'freebsd', '11.2'
    it { is_expected.to write_log('test').with_message('Hello freebsd 11.2-RELEASE') }
  end

  context 'with a nested platform' do
    platform 'ubuntu', '20.04'
    context 'inner' do
      platform 'redhat', '8'
      it { is_expected.to write_log('test').with_message('Hello redhat 8.2') }
    end
  end

  context 'with no version' do
    platform 'windows'
    it { is_expected.to write_log('test').with_message(/Hello windows/) }
  end

  context 'with a partial version' do
    platform 'centos', '6'<commit_msg>Fix brittle test<commit_after>describe 'spec_platform' do
  context 'with no platform' do
    before do
      expect($stderr).to receive(:puts).with(/WARNING: you must specify/)
    end
    it { is_expected.to write_log('test').with_message('Hello chefspec 0.6.1') }
  end

  context 'with an ubuntu platform' do
    platform 'ubuntu', '20.04'
    it { is_expected.to write_log('test').with_message('Hello ubuntu 20.04') }
  end

  context 'with a freebsd platform' do
    platform 'freebsd', '11.2'
    it { is_expected.to write_log('test').with_message('Hello freebsd 11.2-RELEASE') }
  end

  context 'with a nested platform' do
    platform 'ubuntu', '20.04'
    context 'inner' do
      platform 'redhat', '8'
      it { is_expected.to write_log('test').with_message(/Hello redhat 8/) }
    end
  end

  context 'with no version' do
    platform 'windows'
    it { is_expected.to write_log('test').with_message(/Hello windows/) }
  end

  context 'with a partial version' do
    platform 'centos', '6'
{'fraction_non_alphanumeric': 0.1268025857782198, 'fraction_numerical': 0.024365987071108902, 'mean_word_length': 3.412280701754386, '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': '2001052', 'n_tokens_mistral': 704, 'n_tokens_neox': 641, 'n_words': 191}