<commit_before>describe('integration', function()
  local port = '7070'
  local url = 'http://localhost:' .. port

  local executeCommand = function(command)
    local handle = io.popen(command .. ' -s ' .. url)
    local result = handle:read('*a')
    handle:close()

    return result
  end

  it('should return correct headers', function()
    local result = executeCommand('curl --head')

    assert.match('HTTP/1%.1 200 OK', result)
    assert.match('Content%-Type: text/html', result)
    assert.match('Content%-Length: 16', result)
  end)

  it('should return correct body', function()
    assert.match('Hello, Pegasus', executeCommand('curl'))
  end)
end)<commit_msg>fix problem with integration tests<commit_after>describe('integration', function()
  local port = '7070'
  local url = 'http://localhost:' .. port

  local executeCommand = function(command)
    local handle = io.popen(command .. ' -s ' .. url)
    local result = handle:read('*a')
    handle:close()

    return result
  end

  it('should return correct headers', function()
    local result = executeCommand('curl --head')

    assert.truthy(string.find(result, 'HTTP/1.1 200 OK'))
    assert.truthy(string.find(result, 'Content%-Type: text/html'))
    assert.truthy(string.find(result, 'Content%-Length: 16'))
  end)

  it('should return correct body', function()
    assert.truthy(string.find(executeCommand('curl'), 'Hello, Pegasus'))
  end)
end)
{'fraction_non_alphanumeric': 0.15638148667601684, 'fraction_numerical': 0.015427769985974754, 'mean_word_length': 3.8703071672354947, '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': '5309380', 'n_tokens_mistral': 463, 'n_tokens_neox': 423, 'n_words': 111}