<commit_before>// Set configuration root directory
process.env.GETCONFIG_ROOT = './config';

// Configure default environment
process.env.NODE_ENV = process.env.NODE_ENV || 'development';

// Load modules
var _ = require('lodash');
var Hapi = require('hapi');
var Glob = require('glob');
var hapiSwaggered = require('hapi-swaggered')
var hapiSwaggeredUi = require('hapi-swaggered-ui')

// Load configuration
var Config = require('getconfig');

// Load database configuration
var mongooseLoader = require('./config/mongoose');

// Instantiate server
var server = new Hapi.Server();

// Establish connection
server.connection({
  port: process.env.PORT || Config.server.port || 8000,
  labels: ['api']
});

// Load controllers
var controllers = Glob.sync('controllers/*.js', {});<commit_msg>external access 3000<commit_after>// Set configuration root directory
process.env.GETCONFIG_ROOT = './config';

// Configure default environment
process.env.NODE_ENV = process.env.NODE_ENV || 'development';

// Load modules
var _ = require('lodash');
var Hapi = require('hapi');
var Glob = require('glob');
var hapiSwaggered = require('hapi-swaggered')
var hapiSwaggeredUi = require('hapi-swaggered-ui')

// Load configuration
var Config = require('getconfig');

// Load database configuration
var mongooseLoader = require('./config/mongoose');

// Instantiate server
var server = new Hapi.Server();

// Establish connection
server.connection({
  address:'0.0.0.0',
  port: process.env.PORT || Config.server.port || 8000,
  labels: ['api']
});

// Load controllers
var controllers = Glob.sync('controllers/*.js', {});
{'fraction_non_alphanumeric': 0.15628891656288915, 'fraction_numerical': 0.009962640099626401, 'mean_word_length': 4.843636363636364, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '1498478', 'n_tokens_mistral': 501, 'n_tokens_neox': 482, 'n_words': 123}