<commit_before>
const express = require('express');
const bodyParser = require('body-parser');

const logging = require('./logging');
const browser = require('./browser');


const app = express();

app.use(bodyParser.json());

app.get('/', (req, res) => res.send('Use the API to generate a PDF'));
app.get('/health', (req, res) => res.send('ok'));
app.post('/api', require('./api'));


let server;
browser.launch().then(() => {
  server = app.listen(3000, () => logging.log('App listening on port 3000!'));
});


process.on('SIGINT', function() {
  if (server) {
    server.close();
  }

  browser.close().then(() => {
    process.exit(0);
  });
});
<commit_msg>Set greater limit to request to allow send big files. (#20)<commit_after>
const express = require('express');
const bodyParser = require('body-parser');

const logging = require('./logging');
const browser = require('./browser');


const app = express();

app.use(bodyParser.json({limit: '50mb'}));

app.get('/', (req, res) => res.send('Use the API to generate a PDF'));
app.get('/health', (req, res) => res.send('ok'));
app.post('/api', require('./api'));


let server;
browser.launch().then(() => {
  server = app.listen(3000, () => logging.log('App listening on port 3000!'));
});


process.on('SIGINT', function() {
  if (server) {
    server.close();
  }

  browser.close().then(() => {
    process.exit(0);
  });
});

{'fraction_non_alphanumeric': 0.23610108303249097, 'fraction_numerical': 0.01588447653429603, 'mean_word_length': 4.310344827586207, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1297661', 'n_tokens_mistral': 464, 'n_tokens_neox': 436, 'n_words': 111}