<commit_before>// const config = require('./lib/config');

// const express    = require('express');
// const hbs        = require('./lib/handlebars');
// const helmet     = require('helmet');
const http       = require('http');
// const meta       = require('./package.json');
// const middleware = require('./lib/middleware');
// const route      = require('./lib/router');

// initialize Express
// const app = express();

// app settings
// app.enable(`trust proxy`);           // trust the Azure proxy server
// app.engine(hbs.extname, hbs.engine); // declare Handlebars engine
// app.set(`port`, config.port);        // set port for the app (3000 on localhost)
// app.set(`view engine`, hbs.extname); // use Handlebars for templating

// middleware
// app.use(helmet());                   // basic security features
// app.use(express.static(`public`));   // routing for static files
// app.use(middleware);                 // custom middleware

// URL routing
// route(app);

// create server
// const server = http.createServer(app);

// start server listening
// server.listen(config.port, () => {
//   console.log(`\nServer started. Press Ctrl+C to terminate.
//   Project:  ${meta.name}
//   Port:     ${config.port}
//   Time:     ${new Date}
//   Node:     ${process.version}
//   Env:      ${config.env}`);
// });

// TODO: remove this
http.createServer((req, res) => {
  res.writeHead(200, { 'Content-Type': 'text/plain' });
  res.end('Hello world!');
}).listen(process.env.PORT || 3000);<commit_msg>meta & config<commit_after>const config = require('./lib/config');

// const express    = require('express');
// const hbs        = require('./lib/handlebars');
// const helmet     = require('helmet');
const http       = require('http');
const meta       = require('./package.json');
// const middleware = require('./lib/middleware');
// const route      = require('./lib/router');

// initialize Express
// const app = express();

// app settings
// app.enable(`trust proxy`);           // trust the Azure proxy server
// app.engine(hbs.extname, hbs.engine); // declare Handlebars engine
// app.set(`port`, config.port);        // set port for the app (3000 on localhost)
// app.set(`view engine`, hbs.extname); // use Handlebars for templating

// middleware
// app.use(helmet());                   // basic security features
// app.use(express.static(`public`));   // routing for static files
// app.use(middleware);                 // custom middleware

// URL routing
// route(app);

// create server
// const server = http.createServer(app);
const server = http.createServer();

// start server listening
server.listen(config.port, () => {
  console.log(`\nServer started. Press Ctrl+C to terminate.
  Project:  ${meta.name}
  Port:     ${config.port}
  Time:     ${new Date}
  Node:     ${process.version}
  Env:      ${config.env}`);
});
{'fraction_non_alphanumeric': 0.18461538461538463, 'fraction_numerical': 0.005244755244755245, 'mean_word_length': 2.635324015247776, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '3409982', 'n_tokens_mistral': 844, 'n_tokens_neox': 823, 'n_words': 220}