<commit_before>snippets =
	'Object function':
		'is a function defined on window': '''
			typeof Object
		'''
		'can alter object prototypes': '''
			Object.prototype.f = function () { return 123 };
			({}).f()
		'''

	'Object.create':
		'can create an object with a prototype': '''
				var a = Object.create({ b: 123 });
				a.b
			'''
		'can access prototype via __proto__': '''
				var a = Object.create({ b: 123 });
				a.__proto__.b
			'''

	'Object.keys':
		'returns an empty array for an empty object': '''
				Object.keys({})
			'''
		'returns the keys of an object': '''
				Object.keys({ a: 123, b: 321 })
			'''

	'Array':
		'can construct': '''
				var a = [11, 22, 33];
				a[1]
			'''
		'can set/get numeric property': '''
				var a = [];
				a[3] = 123;
				a[3]
			'''

	'Array function':
		'is a function defined on window': '''
			typeof Array
		'''
		'can alter array prototypes': '''
			Array.prototype.f = function () { return 123 };
			[].f()
		'''

	'Array::length':
		'empty arrays': '[].length'
		'non-empty arrays': '[11, 22, 33].length'
		'sparse arrays': '''
				var a = [];
				a[3] = 123;
				a.length
			'''

	'Array::toString':
		'empty array': '[].toString()'
		'array with one element': '''
				[11].toString()
			'''
		'array with more elements': '''
				[11, 22].toString()
			'''
		'calls toString recursively': '''
				[{ toString: function () { return "asd" } }]
			'''
		'null becomes empty string': '''
				[123, null, 321].toString()
			'''
		'undefined becomes empty string': '''
				[123, undefined, 321].toString()
			'''

	'Array::slice':
		'called with no parameters': '''
				[11, 22, 33, 44, 55].slice()
			'''
		'called with one parameter': '''<commit_msg>Fixed an Array:toString test<commit_after>snippets =
	'Object function':
		'is a function defined on window': '''
			typeof Object
		'''
		'can alter object prototypes': '''
			Object.prototype.f = function () { return 123 };
			({}).f()
		'''

	'Object.create':
		'can create an object with a prototype': '''
				var a = Object.create({ b: 123 });
				a.b
			'''
		'can access prototype via __proto__': '''
				var a = Object.create({ b: 123 });
				a.__proto__.b
			'''

	'Object.keys':
		'returns an empty array for an empty object': '''
				Object.keys({})
			'''
		'returns the keys of an object': '''
				Object.keys({ a: 123, b: 321 })
			'''

	'Array':
		'can construct': '''
				var a = [11, 22, 33];
				a[1]
			'''
		'can set/get numeric property': '''
				var a = [];
				a[3] = 123;
				a[3]
			'''

	'Array function':
		'is a function defined on window': '''
			typeof Array
		'''
		'can alter array prototypes': '''
			Array.prototype.f = function () { return 123 };
			[].f()
		'''

	'Array::length':
		'empty arrays': '[].length'
		'non-empty arrays': '[11, 22, 33].length'
		'sparse arrays': '''
				var a = [];
				a[3] = 123;
				a.length
			'''

	'Array::toString':
		'empty array': '[].toString()'
		'array with one element': '''
				[11].toString()
			'''
		'array with more elements': '''
				[11, 22].toString()
			'''
		'calls toString recursively': '''
				[{ toString: function () { return "asd" } }].toString()
			'''
		'null becomes empty string': '''
				[123, null, 321].toString()
			'''
		'undefined becomes empty string': '''
				[123, undefined, 321].toString()
			'''

	'Array::slice':
		'called with no parameters': '''
				[11, 22, 33, 44, 55].slice()
			'''
		'called with one parameter': '''
{'fraction_non_alphanumeric': 0.20884235020360675, 'fraction_numerical': 0.03955788248981966, 'mean_word_length': 2.7421109902067466, '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': '2474154', 'n_tokens_mistral': 1524, 'n_tokens_neox': 1147, 'n_words': 342}