<commit_before>/**
 * @author jimmy
 */
var restify = require('restify');

var server = restify.createServer({name:"device_api"});
// allow JSON over Cross-origin resource sharing 
server.use(
  function crossOrigin(req,res,next){
    res.header("Access-Control-Allow-Origin", "*");
    res.header("Access-Control-Allow-Headers", "X-Requested-With");
    return next();
  }
);
server.use(restify.bodyParser());// for uploading files<commit_msg>the app need a tmp dir to work properly (problem with different partitions)<commit_after>/**
 * @author jimmy
 */
var restify = require('restify');

var server = restify.createServer({name:"device_api"});
// allow JSON over Cross-origin resource sharing 
server.use(
  function crossOrigin(req,res,next){
    res.header("Access-Control-Allow-Origin", "*");
    res.header("Access-Control-Allow-Headers", "X-Requested-With");
    return next();
  }
);
server.use(restify.bodyParser({'uploadDir':'/opt/shopbot/tmp'}));// for uploading files
{'fraction_non_alphanumeric': 0.1710794297352342, 'fraction_numerical': 0.0, 'mean_word_length': 4.921686746987952, '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': '5178328', 'n_tokens_mistral': 307, 'n_tokens_neox': 299, 'n_words': 65}