<commit_before>require 'spec_helper'

describe 'custom matchers' do
  describe '#be_http_ok' do
    it "should be defined" do
      response = nil
      server_start { response = request('/') }
      expect {
        response.should be_http_ok
      }.not_to raise_error
    end
  end

  describe '#respond_within(num).seconds' do
    it "should check response time" do
      response = nil
      server_start('/' => Proc.new {|req, res| sleep 2 }) do
        response = request('/')
      end
      response.should respond_within(3).seconds
      expect {
        response.should respond_within(1).seconds
      }.to raise_error(RSpec::Expectations::ExpectationNotMetError)
    end
  end
end
<commit_msg>modify spec comment<commit_after>require 'spec_helper'

describe 'custom matchers' do
  describe '#be_http_ok' do
    it "should check status code" do
      response = nil
      server_start { response = request('/') }
      expect {
        response.should be_http_ok
      }.not_to raise_error
    end
  end

  describe '#respond_within(num).seconds' do
    it "should check response time" do
      response = nil
      server_start('/' => Proc.new {|req, res| sleep 2 }) do
        response = request('/')
      end
      response.should respond_within(3).seconds
      expect {
        response.should respond_within(1).seconds
      }.to raise_error(RSpec::Expectations::ExpectationNotMetError)
    end
  end
end

{'fraction_non_alphanumeric': 0.09838369641602249, 'fraction_numerical': 0.004216444132115249, 'mean_word_length': 2.7277486910994764, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2879394', 'n_tokens_mistral': 433, 'n_tokens_neox': 414, 'n_words': 117}