<commit_before>request = require 'request'
expect = require('chai').expect

app = require '../index'

describe 'aggregration server', ->

  describe 'when the server is started', ->

    before (done) ->
      app.startServer (err,server) =>
        @server = server
        done()

    after (done) ->
      @server.stop(done)

    it 'should respond with an okay', (done) ->
        request @server.info.uri, (error, response, body) ->
          expect(response.statusCode).to.equal(200)
          done()

    describe 'requesting requirements', ->

      it 'should respond with a text body', (done) ->
        request @server.info.uri + '/register', (error, response, body) ->
          expect(body).length.gt(100)
          done()<commit_msg>fixed test for documentation<commit_after>request = require 'request'
expect = require('chai').expect

app = require '../index'

describe 'aggregration server', ->

  describe 'when the server is started', ->

    before (done) ->
      app.startServer (err,server) =>
        @server = server
        done()

    after (done) ->
      @server.stop(done)

    it 'should respond with an okay', (done) ->
        request @server.info.uri, (error, response, body) ->
          expect(response.statusCode).to.equal(200)
          done()

    describe 'requesting documentation', ->

      it 'should respond with a text body', (done) ->
        request @server.info.uri + '/docs', (error, response, body) ->
          expect(body).length.gt(100)
          done()
{'fraction_non_alphanumeric': 0.1460823373173971, 'fraction_numerical': 0.00796812749003984, 'mean_word_length': 2.4723502304147464, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '6401171', 'n_tokens_mistral': 446, 'n_tokens_neox': 423, 'n_words': 122}