<commit_before>'use strict';

var Server = /** @type Server */ require('./core/server');

var _ = require('lodash-node');
var inherit = require('inherit');
var path = require('path');
var dirname = path.dirname(module.parent.filename);

var S_FIST_PLUGINS = path.join('fist_plugins', '**', '*.js');

/**
 * @param {Object} [params]
 * @param {Object} [members]
 * @param {Object} [statics]
 *
 * @returns {Server}<commit_msg>Better detect application entry-point<commit_after>'use strict';

var Server = /** @type Server */ require('./core/server');

var _ = require('lodash-node');
var inherit = require('inherit');
var path = require('path');
var filename = require.main ?
    //  Entry point
    require.main.filename :
    //  REPL?
    module.parent.filename;
var dirname = path.dirname(filename);

var S_FIST_PLUGINS = path.join('fist_plugins', '**', '*.js');

/**
 * @param {Object} [params]
 * @param {Object} [members]
 * @param {Object} [statics]
 *
 * @returns {Server}
{'fraction_non_alphanumeric': 0.19693877551020408, 'fraction_numerical': 0.0, 'mean_word_length': 4.419889502762431, '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': '687382', 'n_tokens_mistral': 324, 'n_tokens_neox': 319, 'n_words': 76}