<commit_before>/**
 * routes/question.js
 * The question related page
 * <NAME> - http://pello.io
 */
var isloggedin = require('../middleware/isloggedin');
var sample = { "question": "What is the meaning of life", "answers" : ["Nothing at all","42","Live and let live","Run for your life"]};
module.exports = function (app) {

    app.get('/question/last' ,function(req, res) {
        res.send(sample);
    });

}<commit_msg>added vote case<commit_after>/**
 * routes/question.js
 * The question related page
 * <NAME> - http://pello.io
 */
var isloggedin = require('../middleware/isloggedin');
var sample = { "question": "What is the meaning of life", "answers" : ["Nothing at all","42","Live and let live","Run for your life"]};
module.exports = function (app) {

    app.get('/question/last' ,function(req, res) {
        res.send(sample);
    });

  app.post('/question/vote' ,function(req, res) {
    /*var beat = new Beat({
      fromUser: req.session.user,
      to: sanitize(req.body.questioid),
      text: sanitize(req.body.voteid)
    });*/
    res.send({"result": "ok"});
  });
}
{'fraction_non_alphanumeric': 0.19230769230769232, 'fraction_numerical': 0.003663003663003663, 'mean_word_length': 3.4430894308943087, 'pattern_counts': {'":': 3, '<': 5, '<?xml version=': 0, '>': 5, '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': '2980805', 'n_tokens_mistral': 366, 'n_tokens_neox': 356, 'n_words': 91}