<commit_before>/**
 * Routes class file
 * Configuración de rutas
 * @package sitp-api
 * @author <NAME> <<EMAIL>>
 * @module routes
 */

function Routes (app) {
  app.get('/', function(req,res) {
    res.send('Hello World');
  });

  return app;
}

module.exports = Routes;<commit_msg>Jugando con Node<commit_after>/**
 * Routes class file
 * Configuración de rutas
 * @package sitp-api
 * @author <NAME> <<EMAIL>>
 * @module routes
 */

function Routes (app) {
  /**
   * Home
   */
  app.get('/', function (req,res) {
    return res.send('Hello stranger, please enter your name in the path');
  });

  /**
   * Salute
   */
  app.get('/:name', function (req,res) {
    var name = req.params.name;

    if(name){
      return res.send('Hello ' + name + ', I salute you');
    }

    return res.redirect('/');
  });

  return app;
}

module.exports = Routes;
{'fraction_non_alphanumeric': 0.1781140861466822, 'fraction_numerical': 0.0, 'mean_word_length': 2.8914027149321266, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5229036', 'n_tokens_mistral': 307, 'n_tokens_neox': 298, 'n_words': 77}