<commit_before>/* eslint-disable no-console */
const AppSetup = require('./app.js');
const config = require('./config.js');
const http = require('http');

const buildConfigObject = () => {
  const configPath = process.argv.slice(2)[0];
  const configSpecified = configPath && configPath.length > 0;
  return configSpecified ? config.loadFromFile(configPath) : {};
};

const app = AppSetup(buildConfigObject());

const port = process.env.PORT || 3000;

http.createServer(app).listen(port, err => {
  if (err) {
    console.error(err);
    return;
  }

  console.log(`http-response-tester listening on port ${port}`);
});<commit_msg>pin app port to 3000<commit_after>/* eslint-disable no-console */
const AppSetup = require('./app.js');
const config = require('./config.js');
const http = require('http');

const buildConfigObject = () => {
  const configPath = process.argv.slice(2)[0];
  const configSpecified = configPath && configPath.length > 0;
  return configSpecified ? config.loadFromFile(configPath) : {};
};

const app = AppSetup(buildConfigObject());

http.createServer(app).listen(3000, err => {
  if (err) {
    console.error(err);
    return;
  }

  console.log('http-response-tester listening on port 3000');
});
{'fraction_non_alphanumeric': 0.16721044045676997, 'fraction_numerical': 0.01794453507340946, 'mean_word_length': 4.527027027027027, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3070774', 'n_tokens_mistral': 395, 'n_tokens_neox': 376, 'n_words': 86}