<commit_before>var model = require('../model/category');

module.exports = {
	index:function(){
		return new Promise( function (resolve, reject) {
			try{
				var category = new model();
				resolve(request.method);
			}
			catch(err){
				reject(err);
			}
		});
	}
}<commit_msg>category<commit_after>"use strict"
var response=require('../lib/response');
var model=require('../model/category');

class category extends response{

	constructor(_requeset){
		super(_requeset);
		this.model = new model();
	}

	list(){
		var list = this.model.find();
		return this.json(list);
	}
}
{'fraction_non_alphanumeric': 0.17271157167530224, 'fraction_numerical': 0.0, 'mean_word_length': 3.9152542372881354, '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': '7183216', 'n_tokens_mistral': 213, 'n_tokens_neox': 186, 'n_words': 40}