<commit_before>'use strict';

var http = require('http');
var _ = require('lodash');
var $ = require('chai').assert;
var express = require('express');
var logger = require('debug-logger')('server:http');

/**
 * @class
 */
class Server {

    constructor(options) {
        options = options || {};
        this.port = _.get(options, 'http.port');
        this.http = null;
        this.app = express();<commit_msg>Fix port type<commit_after>'use strict';

var http = require('http');
var _ = require('lodash');
var $ = require('chai').assert;
var express = require('express');
var logger = require('debug-logger')('server:http');

/**
 * @class
 */
class Server {

    constructor(options) {
        options = options || {};
        $.deepProperty(options, 'http.port');
        $.isNotNaN(parseInt(options.http.port));
        this.port = parseInt(options.http.port);
        this.http = null;
        this.app = express();
{'fraction_non_alphanumeric': 0.18702702702702703, 'fraction_numerical': 0.0, 'mean_word_length': 3.287037037037037, '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': '600049', 'n_tokens_mistral': 277, 'n_tokens_neox': 274, 'n_words': 59}