<commit_before>define([
	'../../Promise'
], function (Promise) {
	'use strict';
	
	var resolve = Promise.resolve.bind(Promise),
		arrayProto = Array.prototype,
		slice = arrayProto.slice,
		iteratorMethods = [ 'forEach', 'map', 'filter' ];

	/**
	 * Decorates a promise with a method derived from the Array.prototype wrapped in a promise that resolves when the
	 * promise is resolved
	 * @param  {Promise} promise The promise that is to be decorated
	 * @param  {String}  method  The name of the function from the Array prototype that should be decorated
	 */
	function decorate(promise, method) {<commit_msg>Add more iterator methods to query results.<commit_after>define([
	'../../Promise'
], function (Promise) {
	'use strict';
	
	var resolve = Promise.resolve.bind(Promise),
		arrayProto = Array.prototype,
		slice = arrayProto.slice,
		iteratorMethods = [ 'forEach', 'map', 'filter', 'every', 'some', 'reduce', 'reduceRight' ];

	/**
	 * Decorates a promise with a method derived from the Array.prototype wrapped in a promise that resolves when the
	 * promise is resolved
	 * @param  {Promise} promise The promise that is to be decorated
	 * @param  {String}  method  The name of the function from the Array prototype that should be decorated
	 */
	function decorate(promise, method) {
{'fraction_non_alphanumeric': 0.11068111455108359, 'fraction_numerical': 0.0, 'mean_word_length': 4.05078125, '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': '1852046', 'n_tokens_mistral': 368, 'n_tokens_neox': 345, 'n_words': 144}