<commit_before>'use strict';

var fs = require('fs'),
    uid = require('uid'),
    config = require('config'),
    ocr = require('../helpers/ocr'),
    ocrp = require('../helpers/ocr-p');

exports.file = function (req, res) {
    req.pipe(req.busboy);
    req.busboy.on('file', function (fieldname, file, filename) {

        var prefix = uid(6);
<commit_msg>Update upload.js<commit_after>'use strict';

var fs = require('fs'),
    uid = require('uid'),
    config = require('config'),
    ocrp = require('../helpers/ocr-p');

exports.file = function (req, res) {
    req.pipe(req.busboy);
    req.busboy.on('file', function (fieldname, file, filename) {

        var prefix = uid(6);

{'fraction_non_alphanumeric': 0.19387755102040816, 'fraction_numerical': 0.0029154518950437317, 'mean_word_length': 3.29375, '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': '5275732', 'n_tokens_mistral': 230, 'n_tokens_neox': 227, 'n_words': 51}