<commit_before>var express = require('express');
var path = require('path');
var httpProxy = require('http-proxy');

var proxy = httpProxy.createProxyServer();
var app = express();

var isProduction = process.env.NODE_ENV === 'production';
var port = isProduction ? 80 : 8085;
var publicPath = path.resolve(__dirname, 'src', 'public');

app.use(express.static(publicPath));

// We proxyfie all API requests under the /api route
app.all('/api/*', function(req, res) {
    proxy.web(req, res, {
        target: 'http://localhost:5000'
    });
});

// We only want to run the workflow when not in production
if (!isProduction) {
<commit_msg>Proxify the API under :8000<commit_after>var express = require('express');
var path = require('path');
var httpProxy = require('http-proxy');

var proxy = httpProxy.createProxyServer();
var app = express();

var isProduction = process.env.NODE_ENV === 'production';
var port = isProduction ? 80 : 8085;
var publicPath = path.resolve(__dirname, 'src', 'public');

app.use(express.static(publicPath));

// We proxyfie all API requests under the /api route
app.all('/api/*', function(req, res) {
    proxy.web(req, res, {
        target: 'http://localhost:8000'
    });
});

// We only want to run the workflow when not in production
if (!isProduction) {

{'fraction_non_alphanumeric': 0.1573643410852713, 'fraction_numerical': 0.018604651162790697, 'mean_word_length': 4.447257383966245, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4848532', 'n_tokens_mistral': 415, 'n_tokens_neox': 387, 'n_words': 122}