<commit_before>const yelp = require('yelp-fusion');

const clientId = 'KXC96infFDZ2iOOox_LLbg';
const clientSecret = '<KEY>';

exports.getRestaurants = function(req, res)  {
	var food = req.query.food;

	const searchRequest = {
	  term: food,
	  location: 'san francisco, ca'
	};

	yelp.accessToken(clientId, clientSecret).then(response => {
	  const client = yelp.client(response.jsonBody.access_token);

	  client.search(searchRequest).then(response => {
	    const firstResult = response.jsonBody.businesses[0];
	    const prettyJson = JSON.stringify(firstResult, null, 4);
	    console.log(prettyJson);
	  });
	}).catch(e => {
	  console.log(e);
	});

	res.status(200).json(firstResult);
}<commit_msg>Edit return area<commit_after>const yelp = require('yelp-fusion');

const clientId = 'KXC96infFDZ2iOOox_LLbg';
const clientSecret = '<KEY>';

exports.getRestaurants = function(req, res)  {
	var food = req.query.food;

	const searchRequest = {
	  term: food,
	  location: 'san francisco, ca'
	};

	yelp.accessToken(clientId, clientSecret).then(response => {
	  const client = yelp.client(response.jsonBody.access_token);

	  client.search(searchRequest).then(response => {
	    const firstResult = response.jsonBody.businesses[0];
	    const prettyJson = JSON.stringify(firstResult, null, 4);
	    console.log(prettyJson);
	    res.status(200).json(firstResult);
	  });
	}).catch(e => {
	  console.log(e);
	});
}
{'fraction_non_alphanumeric': 0.1497175141242938, 'fraction_numerical': 0.011299435028248588, 'mean_word_length': 4.45, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '3662843', 'n_tokens_mistral': 519, 'n_tokens_neox': 471, 'n_words': 84}