<commit_before>module.exports = function(app){
  // on routes that end in /bears
  //  ===========================================================================
  // call the packages we need 
  var express     = require('express');       // call express
  var router = express.Router();
  console.log('Bear extracted');
  
  router.use(function(req, res, next) {
    //do logging
    console.log('- BEAR API request received');
    next(); //make sure we go to the next routes and we do not stop here
  });
  
  router.get('/', function(req, res) {
    res.json({ message: 'hooray! welcome to our api!' });   
  });
  
};<commit_msg>Add bear post<commit_after>module.exports = function(app){
  // on routes that end in /bears
  //  ===========================================================================
  // call the packages we need 
  var express     = require('express');       // call express
  var router = express.Router();
  console.log('Bear extracted');
  
  router.use(function(req, res, next) {
    //do logging
    console.log('- BEAR API request received');
    next(); //make sure we go to the next routes and we do not stop here
  });
  
  router.get('/', function(req, res) {
    res.json({ message: 'hooray! welcome to our api!' });   
  });
  
  router.post('/', function(req, res) {
    res.json({ message: 'hooray! welcome to our api!' });   
  });
  
};
{'fraction_non_alphanumeric': 0.24746743849493488, 'fraction_numerical': 0.0, 'mean_word_length': 3.079646017699115, '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': '2848876', 'n_tokens_mistral': 402, 'n_tokens_neox': 389, 'n_words': 128}