<commit_before>const path = require('path');
const model = require(path.resolve('src/model/pokemon'));

const dao = {

	create: function(pokemon) {
		return model.create(pokemon);
	},

	findOne: function(query) {
		query = query || {};
		return model.find({
			where: query
		});
	},

	findAll: function () {
		return model.findAll();
	}

};

module.exports = dao;<commit_msg>ADD delete method on DAO .<commit_after>const path = require('path');
const model = require(path.resolve('src/model/pokemon'));

const dao = {

	create: function(pokemon) {
		return model.create(pokemon);
	},

	findOne: function(query) {
		query = query || {};
		return model.find({
			where: query
		});
	},

	findAll: function () {
		return model.findAll();
	},

	deleteOne: function(query) {
		return dao.destroy({where: query});
	}

};

module.exports = dao;
{'fraction_non_alphanumeric': 0.1718377088305489, 'fraction_numerical': 0.0, 'mean_word_length': 3.994047619047619, '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': '5749253', 'n_tokens_mistral': 316, 'n_tokens_neox': 292, 'n_words': 61}