<commit_before>var assert = require('assert');
var client = require('../client.js');

describe('client', function () {
    describe('Constructor', function () {
        it('should return a object',function(done) {
            var testclient = require('../client.js')('testclient',{});
            assert.equal(true,testclient instanceof Object);
            done();
        });
        it('object should have all attributes that was given to the constructor', function(done) {
            var name = 'testclient';
            var headers = { 'testheader': 'abc'};
            var testclient = require('../client.js')(name,headers);
            assert.equal(testclient.name, name);
            assert.equal(testclient.headers, headers);            
            done();
        });
    });
});<commit_msg>extended tests to include new attributes<commit_after>var assert = require('assert');
var client = require('../client.js');

describe('client', function () {
    describe('Constructor', function () {
        it('should return a object',function(done) {
            var testclient = require('../client.js')('testclient',{});
            assert.equal(true,testclient instanceof Object);
            done();
        });
        it('object should have all attributes that was given to the constructor', function(done) {
            var name = 'testclient';
            var headers = { 'testheader': 'abc'};
            var times_to_run = 10;
            var msec_between_requests = 1000;
            var testclient = require('../client.js')(name,headers,times_to_run,msec_between_requests);
            assert.equal(testclient.name, name);
            assert.equal(testclient.headers, headers);
            assert.equal(testclient.times_to_run, times_to_run);
            assert.equal(testclient.msec_between_requests,msec_between_requests);
            done();
        });
    });
});
{'fraction_non_alphanumeric': 0.14225053078556263, 'fraction_numerical': 0.0031847133757961785, 'mean_word_length': 2.4842883548983363, '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': '4184846', 'n_tokens_mistral': 490, 'n_tokens_neox': 480, 'n_words': 110}