<commit_before>var express = require('express'),
	http 	= require('http'),
	request = require('request'),
	port    = process.env.PORT || 3000,
	apiKey  = '<KEY>',
	mongoose = require('mongoose'),
	bodyParser = require('body-parser');
	app  	= express();

app.use(bodyParser.urlencoded({extended:false}));


app.get('/',function (req,res) {
	res.send("Hello from the root route");
});



app.get('/search/:term',function(req,res) {
	
	//sample request--this is not yet dynamic :term from request should take the place of xbos,also we should have dynamic limit and take less data from the json body of the request
    request('https://user:PtDnqJYXMyc+KnBQWMpykJmKunkbJfv2fTqOgx21a6A@api.datamarket.azure.com/Bing/Search/v1/Image?Query=%27xbox%27&$top=10&$format=JSON', function (error, response, body) {
	   <commit_msg>comment<commit_after>var express = require('express'),
	http 	= require('http'),
	request = require('request'),
	port    = process.env.PORT || 3000,
	apiKey  = '<KEY>',
	mongoose = require('mongoose'),
	bodyParser = require('body-parser');
	app  	= express();

app.use(bodyParser.urlencoded({extended:false}));

//add mongoose

app.get('/',function (req,res) {
	res.send("Hello from the root route");
});



app.get('/search/:term',function(req,res) {
	
	//sample request--this is not yet dynamic :term from request should take the place of xbos,also we should have dynamic limit and take less data from the json body of the request
    request('https://user:PtDn<EMAIL>/Bing/Search/v1/Image?Query=%27xbox%27&$top=10&$format=JSON', function (error, response, body) {
	   
{'fraction_non_alphanumeric': 0.16163522012578616, 'fraction_numerical': 0.016352201257861635, 'mean_word_length': 4.981203007518797, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '1380713', 'n_tokens_mistral': 558, 'n_tokens_neox': 529, 'n_words': 128}