<commit_before>/*!
 * qwebs
 * Copyright(c) 2016 <NAME>
 * MIT Licensed
 */

"use strict";

class InfoService {
	constructor() {	
	};
	
	whoiam() {
		return "I'm Info service.";
	};

	getInfo(request, response) {
		return {
			whoiam: this.whoiam()
		};
	};

	getMessage(request, response) {
		return {
			text: "hello world"
		};
	};
	
	save(request, response) {
		return {
			status: "saved"
		};
	};
	
	update(request, response) {
		return {
			status: "updated"
		};
	};
	
	delete(request, response) {
		return {
			status: "deleted"
		};
	};
};

exports = module.exports = InfoService;<commit_msg>Add response<commit_after>/*!
 * qwebs
 * Copyright(c) 2016 <NAME>
 * MIT Licensed
 */

"use strict";

class InfoService {
	constructor() {	
	};
	
	whoiam() {
		return "I'm Info service.";
	};

	getInfo(request, response) {
		let content = {
			whoiam: this.whoiam()
		};
		return response.send({ request: request, content: content });
	};

	getMessage(request, response) {
		let content = {
			text: "hello world"
		};
		return response.send({ request: request, content: content });
	};
	
	save(request, response) {
		let content = {
			status: "saved"
		};
		return response.send({ request: request, content: content });
	};
	
	update(request, response) {
		let content = {
			status: "updated"
		};
		return response.send({ request: request, content: content });
	};
	
	delete(request, response) {
		let content = {
			status: "deleted"
		};
		return response.send({ request: request, content: content });
	};
};

exports = module.exports = InfoService;

{'fraction_non_alphanumeric': 0.16164207825529187, 'fraction_numerical': 0.005131494547787043, 'mean_word_length': 3.2739726027397262, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2722426', 'n_tokens_mistral': 599, 'n_tokens_neox': 522, 'n_words': 127}