<commit_before>require 'spec_helper'

describe package('wowzamediaserver-3.5.0') do
  it { should be_installed }
end

describe file('/usr/local/WowzaMediaServer/lib/json-simple-1.1.1.jar') do
  it { should be_file }
end

describe file('/usr/local/WowzaMediaServer/lib/flexjson-2.1.jar') do
  it { should be_file }
end

describe file('/usr/local/WowzaMediaServer/lib/ch.cargomedia.wms-0.0.1.jar') do
  it { should be_file }
end

describe command('/usr/bin/unzip -tl /usr/local/WowzaMediaServer/lib/ch.cargomedia.wms-0.0.1.jar') do
  let(:pre_command) { 'apt-get install -qy unzip' }
  it { should return_exit_status 0 }
end

describe file('/etc/monit/conf.d/wowza') do
  it { should be_file }
end

describe command('sleep 10') do
  it { should return_exit_status 0 }
end

describe port(1935) do
  it { should be_listening }
end

describe port(8086) do
  it { should be_listening }
end
<commit_msg>Updated spec<commit_after>require 'spec_helper'

describe package('wowzastreamingengine-4.0.3') do
  it { should be_installed }
end

describe file('/usr/local/WowzaStreamingEngine/lib/json-simple-1.1.1.jar') do
  it { should be_file }
end

describe file('/usr/local/WowzaStreamingEngine/lib/flexjson-2.1.jar') do
  it { should be_file }
end

describe file('/usr/local/WowzaStreamingEngine/lib/ch.cargomedia.wms-0.0.1.jar') do
  it { should be_file }
end

describe command('/usr/bin/unzip -tl /usr/local/WowzaStreamingEngine/lib/ch.cargomedia.wms-0.0.1.jar') do
  let(:pre_command) { 'apt-get install -qy unzip' }
  it { should return_exit_status 0 }
end

describe file('/etc/monit/conf.d/wowza') do
  it { should be_file }
end

describe command('sleep 10') do
  it { should return_exit_status 0 }
end

describe port(1935) do
  it { should be_listening }
end

describe port(8086) do
  it { should be_listening }
end

describe command('curl http://localhost:8086/status') do
  its(:stdout) { should match /{}/ }
end

{'fraction_non_alphanumeric': 0.13089005235602094, 'fraction_numerical': 0.02931937172774869, 'mean_word_length': 4.068965517241379, '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': '4638153', 'n_tokens_mistral': 771, 'n_tokens_neox': 719, 'n_words': 159}