<commit_before>require 'spec_helper'

describe package('httpd') do
  it { should be_installed }
end

describe service('httpd') do
  it { should be_enabled }
  it { should be_running }
end

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

describe 'should respond to an HTTP request' do
  describe command('curl -k --stderr - http://localhost/index.php') do
    its(:stdout) { should match /.*<h2>Central Government Business & Technology (CGBT) .* Demo WebApp<\/h2>.*/ }
  end
end<commit_msg>Escaped brackets in regex<commit_after>require 'spec_helper'

describe package('httpd') do
  it { should be_installed }
end

describe service('httpd') do
  it { should be_enabled }
  it { should be_running }
end

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

describe 'should respond to an HTTP request' do
  describe command('curl -k --stderr - http://localhost/index.php') do
    its(:stdout) { should match /.*<h2>Central Government Business & Technology \(CGBT\) .* Demo WebApp<\/h2>.*/ }
  end
end
{'fraction_non_alphanumeric': 0.12103174603174603, 'fraction_numerical': 0.007936507936507936, 'mean_word_length': 3.946078431372549, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1323868', 'n_tokens_mistral': 339, 'n_tokens_neox': 320, 'n_words': 106}