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

app.get("/geocode", function(req,res) {
  console.log(req);

  request('http://open.mapquestapi.com/nominatim/v1/search.php?format=json&limit=5&q='+req.query.address, function (error, response, body) {
    if (!error && response.statusCode == 200) {
      var json = JSON.parse(body);
      res.json(json);
    }
  })
});

var server = app.listen(3000, function() {
  console.log("Geocoder running on port 3000");
});<commit_msg>Standardising input string for these.<commit_after>var express = require('express');
var request = require('request');
var app = express();

app.get("/geocode", function(req,res) {
  console.log(req);

  request('http://open.mapquestapi.com/nominatim/v1/search.php?format=json&limit=5&q='+req.query.input, function (error, response, body) {
    if (!error && response.statusCode == 200) {
      var json = JSON.parse(body);
      res.json(json);
    }
  })
});

var server = app.listen(3000, function() {
  console.log("Geocoder running on port 3000");
});
{'fraction_non_alphanumeric': 0.18440366972477065, 'fraction_numerical': 0.023853211009174313, 'mean_word_length': 4.455, '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': '1416804', 'n_tokens_mistral': 382, 'n_tokens_neox': 359, 'n_words': 72}