<commit_before>var express = require('express');
var bodyParser = require('body-parser');
var logger = require('morgan');
// var db = require('orchestrate')(config.dbkey);

var app = express();

app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended : false}));
app.use(express.static(__dirname));

app.get('/pet', function(request, response) {
	console.log('server get', request.query.size)
})

app.post('/pet', function(request, response) {
	console.log(request.body)
})
	// db.search('pets', req.params.data) // params?  data?  body?
	// .then(function(result){
	// 	var data = (result.body.results);
	// 	var allData = data.map(function(element, index, array) {
	// 		return({
	// 			animalType: element.value.animalType, //required
 //          		colors: element.value.colors,
 //           		size: element.value.size,
 //    			description: element.value.description,
 //             	id: element.value.id, //required
 //       			location: {       //required
 //           			lat: element.value.location.lat, 
 //          			long: element.value.location.lat
 //       			},
 //          		date: element.value.date, //required
 //      			imageUrl: element.value.imageURL    //require
	// 		});
	// 	});
	// 	res.send(allData);
	// })
	// .fail(function(err){
	// 	console.log(err);
	// });


app.listen(3000)<commit_msg>changes<commit_after>var express = require('express');
var bodyParser = require('body-parser');
var logger = require('morgan');
// var db = require('orchestrate')(config.dbkey);

var app = express();

app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended : false}));
app.use(express.static(__dirname));

app.get('/pet', function(request, response) {
	console.log('server get', request.query.size)
})

app.post('/pet', function(request, response) {
	console.log(request.body)
})
	// db.search('pets', req.params.data) // params?  data?  body?
	// .then(function(result){
	// 	var data = (result.body.results);
	// 	var allData = data.map(function(element, index, array) {
	// 		return({
	// 			animalType: element.value.animalType, //required
 //          		colors: element.value.colors,
 //           		size: element.value.size,
 //    			description: element.value.description,
 //             	id: element.value.id, //required
 //       			location: {       //required
 //           			lat: element.value.location.lat, 
 //          			long: element.value.location.lat
 //       			},
 //          		date: element.value.date, //required
 //      			imageUrl: element.value.imageURL    //require
	// 		});
	// 	});
	// 	res.send(allData);
	// })
	// .fail(function(err){
	// 	console.log(err);
	// });

//results.path.key
//results.value["propName"]

app.listen(3000)
{'fraction_non_alphanumeric': 0.19293184276956366, 'fraction_numerical': 0.00288496213487198, 'mean_word_length': 2.556410256410256, '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': '6042795', 'n_tokens_mistral': 957, 'n_tokens_neox': 926, 'n_words': 149}