<commit_before>'use strict';

/**
 * Running the indexing procedure in the catalog mode.
 */

var all = require('./all');

function recent(state) {
	var timeDelta;
	if(state.reference) {
		timeDelta = state.reference;
	} else {
		timeDelta = '1d';
	}
	return all(state, '$today-'+timeDelta);
}

module.exports = recent;<commit_msg>Indexing in recent mode fetching assets changed within the last 10 minutes<commit_after>'use strict';

/**
 * Running the indexing procedure in the catalog mode.
 */

var all = require('./all');

function recent(state) {
	var timeDelta;
	if(state.reference) {
		timeDelta = state.reference;
	} else {
		timeDelta = '10m';
	}
	return all(state, '$now-'+timeDelta);
}

module.exports = recent;
{'fraction_non_alphanumeric': 0.1440443213296399, 'fraction_numerical': 0.006925207756232687, 'mean_word_length': 4.164285714285715, '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': '5182890', 'n_tokens_mistral': 242, 'n_tokens_neox': 230, 'n_words': 66}