<commit_before>// import * as fs from 'fs';
import * as http from 'http';
import * as express from 'express';
// import * as vhost from 'vhost';

const config: any = require('./config');
const vhost: any = require('vhost');

console.log('Servers loader loaded');

// Init express
const app: express.Express = express();
app.disable('x-powered-by');

const server: http.Server = http.createServer(app);

// Define servers
const mainServer: express.Express = require(`${__dirname}/web/main`).server;
// const devServer: express.Express = require(`${__dirname}/web/dev`).server;
app.use(vhost('misskey.xyz', mainServer));
// app.use(vhost('dev.misskey.xyz', devServer));

// Listen core app
server.listen(config.port.webHttp, () => {
	const host: string = server.address().address;
	const port: number = server.address().port;

	console.log(`>>> Misskey listening at ${host}:${port} <<<`);
});<commit_msg>Fix bug<commit_after>// import * as fs from 'fs';
import * as http from 'http';
import * as express from 'express';
// import * as vhost from 'vhost';
import config from 'config';

const vhost: any = require('vhost');

console.log('Servers loader loaded');

// Init express
const app: express.Express = express();
app.disable('x-powered-by');

const server: http.Server = http.createServer(app);

// Define servers
const mainServer: express.Express = require(`${__dirname}/web/main`).server;
// const devServer: express.Express = require(`${__dirname}/web/dev`).server;
app.use(vhost('misskey.xyz', mainServer));
// app.use(vhost('dev.misskey.xyz', devServer));

// Listen core app
server.listen(config.port.http, () => {
	const host: string = server.address().address;
	const port: number = server.address().port;

	console.log(`>>> Misskey listening at ${host}:${port} <<<`);
});
{'fraction_non_alphanumeric': 0.18844643858665172, 'fraction_numerical': 0.0, 'mean_word_length': 4.966555183946488, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '3894890', 'n_tokens_mistral': 558, 'n_tokens_neox': 553, 'n_words': 149}