<commit_before>'use strict';

const express = require('express');
const socketIO = require('socket.io');
const path = require('path');

// Constants
const PORT = process.env.PORT || 3000;
const INDEX = path.join(__dirname, './index.html');

// define routes and socket
const server = express();
server.get('/', (req, res) => { res.sendFile(INDEX); });
server.use('/', express.static(path.join(__dirname, '.')));
const requestHandler = server.listen(PORT, () => console.log(`Listening on ${PORT}`));
const io = socketIO(requestHandler);

// get game classes
const SLServerEngine = require('./src/server/SLServerEngine.js');
const SLGameEngine = require('./src/common/SLGameEngine.js');
const CannonPhysicsEngine = require('incheon').physics.CannonPhysicsEngine;

// create instances
const physicsEngine = new CannonPhysicsEngine();
const gameEngine = new SLGameEngine({ physicsEngine, traceLevel: 0 });
const serverEngine = new SLServerEngine(io, gameEngine, { debug: {}, updateRate: 6 });

// start the game
serverEngine.start();

var fs = require('fs'),
    dotenv = require('dotenv'),
    ProxyControlsServer = require('./server/proxy-controls-server');

dotenv.config({silent: true});

if (process.env.SSL_PORT) {
  new ProxyControlsServer({
    port: process.env.PORT,
    sslPort: process.env.SSL_PORT,
    key: fs.readFileSync(process.env.SSL_KEY_PATH),
    cert: fs.readFileSync(process.env.SSL_CERT_PATH),
  });
} else {
  new ProxyControlsServer({
    port: process.env.PORT || process.env.npm_package_config_port
  });
}
<commit_msg>force PORT<commit_after>'use strict';

const express = require('express');
const socketIO = require('socket.io');
const path = require('path');

// Constants
const PORT = 3000; //process.env.PORT || 3000;
const INDEX = path.join(__dirname, './index.html');

// define routes and socket
const server = express();
server.get('/', (req, res) => { res.sendFile(INDEX); });
server.use('/', express.static(path.join(__dirname, '.')));
const requestHandler = server.listen(PORT, () => console.log(`Listening on ${PORT}`));
const io = socketIO(requestHandler);

// get game classes
const SLServerEngine = require('./src/server/SLServerEngine.js');
const SLGameEngine = require('./src/common/SLGameEngine.js');
const CannonPhysicsEngine = require('incheon').physics.CannonPhysicsEngine;

// create instances
const physicsEngine = new CannonPhysicsEngine();
const gameEngine = new SLGameEngine({ physicsEngine, traceLevel: 0 });
const serverEngine = new SLServerEngine(io, gameEngine, { debug: {}, updateRate: 6 });

// start the game
serverEngine.start();

var fs = require('fs'),
    dotenv = require('dotenv'),
    ProxyControlsServer = require('./server/proxy-controls-server');

dotenv.config({silent: true});

if (process.env.SSL_PORT) {
  new ProxyControlsServer({
    port: process.env.PORT,
    sslPort: process.env.SSL_PORT,
    key: fs.readFileSync(process.env.SSL_KEY_PATH),
    cert: fs.readFileSync(process.env.SSL_CERT_PATH),
  });
} else {
  new ProxyControlsServer({
    port: process.env.PORT || process.env.npm_package_config_port
  });
}

{'fraction_non_alphanumeric': 0.16337754771918472, 'fraction_numerical': 0.00517631834357813, 'mean_word_length': 5.050880626223092, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5717402', 'n_tokens_mistral': 965, 'n_tokens_neox': 938, 'n_words': 214}