<commit_before>var express = require('express');
var bodyParser = require('body-parser');
var app = express();
require('./app_api/models/db');
var routesApi = require('./app_api/routes/index');


app.set('view engine', 'ejs');
app.use(express.static(__dirname + '/uploads'));

//app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({
    extended: true
}));

app.all("/api/*", function(req, res, next) {
    res.header("Access-Control-Allow-Origin", "*");
    res.header("Access-Control-Allow-Headers", "Cache-Control, Pragma, Origin, Authorization, Content-Type, X-Requested-With");
    res.header("Access-Control-Allow-Methods", "GET, PUT, POST, DELETE");
    return next();
});


app.use('/api', routesApi);
<commit_msg>GridFS fixed<commit_after>var express = require('express');
var bodyParser = require('body-parser');
var path = require('path');
var app = express();
require('./app_api/models/db');
var routesApi = require('./app_api/routes/index');


app.set('view engine', 'ejs');
app.use('/uploads', express.static(path.join(__dirname, 'uploads')));

//app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({
    extended: true
}));

app.all("/api/*", function(req, res, next) {
    res.header("Access-Control-Allow-Origin", "*");
    res.header("Access-Control-Allow-Headers", "Cache-Control, Pragma, Origin, Authorization, Content-Type, X-Requested-With");
    res.header("Access-Control-Allow-Methods", "GET, PUT, POST, DELETE");
    return next();
});


app.use('/api', routesApi);

{'fraction_non_alphanumeric': 0.21649484536082475, 'fraction_numerical': 0.0, 'mean_word_length': 5.287449392712551, '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': '2041179', 'n_tokens_mistral': 509, 'n_tokens_neox': 501, 'n_words': 93}