<commit_before>'use strict';
module.exports = function (gap) {
	switch (gap) {
		case 'after':
			gap = 1;
			break;
		case 'before':
			gap = -1;
			break;
		default:
			gap = 0;
	}

	var date = new Date();
	date.setDate(date.getDate() + gap);

	return date;
};<commit_msg>Improve indexing<commit_after>'use strict';

var table = {
	after: 1,
	before: -1
};

module.exports = function (gap) {
	gap = table[gap] || 0;

	var date = new Date();
	date.setDate(date.getDate() + gap);

	return date;
};
{'fraction_non_alphanumeric': 0.17303822937625754, 'fraction_numerical': 0.012072434607645875, 'mean_word_length': 3.293103448275862, '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': '4765716', 'n_tokens_mistral': 221, 'n_tokens_neox': 189, 'n_words': 51}