<commit_before>var request = require('request');

module.exports = function(app, db) {
  app.get('/number', (req, res) => {
    console.log(req.query.name);
    request('https://api.coin-hive.com/user/balance?secret='+ process.env.KEY_PRIVATE +'&name='+ req.query.name, function (error, response, body) {
      if (!error && response.statusCode == 200) {
        console.log(body) // Print the google web page.
      }
      else{
        console.log(error);
      }
    })
    // You'll create your note here.
    console.log(req.body);
    // console.log(req);
    res.send(req.body)
  });
};<commit_msg>Add resultSending<commit_after>var request = require('request');
let finalResult

module.exports = function(app, db) {
  app.get('/number', (req, res) => {
    console.log(req.query.name);
    request('https://api.coin-hive.com/user/balance?secret='+ process.env.KEY_PRIVATE +'&name='+ req.query.name, function (error, response, body) {
      if (!error && response.statusCode == 200) {
        finalResult = body
      }
      else{
        console.log(error);
      }
    })
    // You'll create your note here.
    res.send(finalResult)
  });
};
{'fraction_non_alphanumeric': 0.17764298093587522, 'fraction_numerical': 0.005199306759098787, 'mean_word_length': 2.862876254180602, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1725229', 'n_tokens_mistral': 387, 'n_tokens_neox': 378, 'n_words': 73}