<commit_before>// Api Routes --
// RESTful API cheat sheet : http://ricostacruz.com/cheatsheets/rest-api.html

var express   = require('express'),
    router    = express.Router(),
    db        = require('../modules/database'),
    schema    = require('../modules/schema'),
    passport  = require('passport');

/* Check if API is up */
router.get('/', function(req, res) {
  res.json({
    message: 'Server is running'
  });
});

var responseInsufficientRights = function(req, res) {
  return res.status(401).json({
    title: req.t('Error'),
    message: req.t('Insufficient rights'),
    status: 'error'
  });
};

var responseCatchError = function(e, req, res) {
  console.log('error', e);<commit_msg>Remove logs<commit_after>// Api Routes --
// RESTful API cheat sheet : http://ricostacruz.com/cheatsheets/rest-api.html

var express   = require('express'),
    router    = express.Router(),
    db        = require('../modules/database'),
    schema    = require('../modules/schema'),
    passport  = require('passport');

/* Check if API is up */
router.get('/', function(req, res) {
  res.json({
    message: 'Server is running'
  });
});

var responseInsufficientRights = function(req, res) {
  return res.status(401).json({
    title: req.t('Error'),
    message: req.t('Insufficient rights'),
    status: 'error'
  });
};

var responseCatchError = function(e, req, res) {
{'fraction_non_alphanumeric': 0.1788559015206372, 'fraction_numerical': 0.004344677769732078, 'mean_word_length': 3.252307692307692, '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': '6391788', 'n_tokens_mistral': 450, 'n_tokens_neox': 439, 'n_words': 102}