<commit_before>/**
 *  @license
 *  Pipeline version @VERSION
 *  Copyright (c) 2011 <NAME> (http://bytespider.eu)
 *  Pipeline is freely distributable under the terms of an MIT-style license.
 */

(function(){
	function Pipeline() {
		
	}
	
	Pipeline.prototype = {
		createCollection: function (collection) {
			this[collection] = new DocumentCollection();
			return this[collection];
		}
	};
	
	function DocumentCollection() {}
	DocumentCollection.prototype = {
		find: function () {},
		insert: function () {},
		update: function () {},
		save: function () {},
		remove: function () {},
	};
	
	window['Pipeline'] =  Pipeline;
})();

function obj() {
}
obj.prototype = [];

var prototype = {
	constructor: obj,
	toString: function () {return Array.prototype.join();},
	join: undefined,
	push: undefined,
	pop: undefined,
	concat: undefined,
	splice: undefined,
	shift: undefined,
	unshift: undefined,
	reverse: undefined,
	every: undefined,
	map: undefined,
	some: undefined,
	reduce: undefined,
	reduceRight: undefined
};

for (var i in prototype) {
	obj.prototype[i] = prototype[i];
}

var obj1 = new obj();
console.log(obj1);
<commit_msg>Set up DocumentCollectionCursor as an array-like object<commit_after>/**
 *  @license
 *  Pipeline version @VERSION
 *  Copyright (c) 2011 <NAME> (http://bytespider.eu)
 *  Pipeline is freely distributable under the terms of an MIT-style license.
 */

(function(){
	function Pipeline() {}
	
	Pipeline.prototype = {
		createCollection: function (collection) {
			this[collection] = new DocumentCollection();
			return this[collection];
		}
	};
	
	function DocumentCollection() {}
	DocumentCollection.prototype = {
		find: function () {},
		insert: function () {},
		update: function () {},
		save: function () {},
		remove: function () {},
	};
	
	function DocumentCollectionCursor() {}
	DocumentCollectionCursor.prototype = [];
	 
	var extend = {
		constructor: DocumentCollectionCursor,
		toString: function () {return Array.prototype.join();},
		join: undefined,
		push: undefined,
		pop: undefined,
		concat: undefined,
		splice: undefined,
		shift: undefined,
		unshift: undefined,
		reverse: undefined,
		every: undefined,
		map: undefined,
		some: undefined,
		reduce: undefined,
		reduceRight: undefined
	};
	
	for (var i in extend) {
		DocumentCollectionCursor.prototype[i] = extend[i];
	}
	
	window['Pipeline'] =  Pipeline;
})();
{'fraction_non_alphanumeric': 0.14243697478991596, 'fraction_numerical': 0.004201680672268907, 'mean_word_length': 4.187363834422658, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6151600', 'n_tokens_mistral': 771, 'n_tokens_neox': 698, 'n_words': 195}