<commit_before>'use strict';

// MODULES //

var logger = require( 'debug' );
var path = require( 'path' );
var getKeys = require( 'object-keys' ).shim();
var createServer = require( '@stdlib/net/http-server' );
var readFileSync = require( '@stdlib/fs/read-file' ).sync;
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
var isFunction = require( '@stdlib/assert/is-function' );
var openURL = require( '@stdlib/utils/open-url' );
var noop = require( '@stdlib/utils/noop' );
var validate = require( './validate.js' );
var serverOpts = require( './opts.js' );
var createStore = require( './connections_store.js' );


// VARIABLES //

var debug = logger( 'disposable-http-server' );


// MAIN //

/**
* Creates a disposable HTTP server.
*
* @param {Options} options - server options
* @param {(Buffer|string)} [options.html] - HTML content to serve<commit_msg>Explicitly use Buffer constructor<commit_after>'use strict';

// MODULES //

var logger = require( 'debug' );
var path = require( 'path' );
var getKeys = require( 'object-keys' ).shim();
var createServer = require( '@stdlib/net/http-server' );
var readFileSync = require( '@stdlib/fs/read-file' ).sync;
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
var isFunction = require( '@stdlib/assert/is-function' );
var openURL = require( '@stdlib/utils/open-url' );
var noop = require( '@stdlib/utils/noop' );
var Buffer = require( '@stdlib/buffer/ctor' );
var validate = require( './validate.js' );
var serverOpts = require( './opts.js' );
var createStore = require( './connections_store.js' );


// VARIABLES //

var debug = logger( 'disposable-http-server' );


// MAIN //

/**
* Creates a disposable HTTP server.
*
* @param {Options} options - server options
* @param {(Buffer|string)} [options.html] - HTML content to serve
{'fraction_non_alphanumeric': 0.17926089354660782, 'fraction_numerical': 0.0, 'mean_word_length': 4.182857142857143, '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': '258452', 'n_tokens_mistral': 593, 'n_tokens_neox': 571, 'n_words': 160}