<commit_before>// Returns a Float32Array representing the bounds data for the sphere
// and box. Assumes that both bounds are centered about the same spot
// and that the box min and max are equal distance in every dimension
function boundsToArray( bx, sp ) {

	const arr = new Float64Array( 4 );
	arr[ 0 ] = sp.radius;

	arr[ 1 ] = sp.center.x;
	arr[ 2 ] = sp.center.y;
	arr[ 3 ] = sp.center.z;

	arr[ 4 ] = bx.max.x - sp.center.x;
	arr[ 5 ] = bx.max.y - sp.center.y;
	arr[ 6 ] = bx.max.z - sp.center.z;

	return arr;

}

function arrayToSphere( arr, target ) {

	target.radius = arr[ 0 ];
	target.center.x = arr[ 1 ];
	target.center.y = arr[ 2 ];<commit_msg>Fix array instantiation<commit_after>// Returns a Float32Array representing the bounds data for the sphere
// and box. Assumes that both bounds are centered about the same spot
// and that the box min and max are equal distance in every dimension
function boundsToArray( bx, sp ) {

	const arr = new Float32Array( 7 );
	arr[ 0 ] = sp.radius;

	arr[ 1 ] = sp.center.x;
	arr[ 2 ] = sp.center.y;
	arr[ 3 ] = sp.center.z;

	arr[ 4 ] = bx.max.x - sp.center.x;
	arr[ 5 ] = bx.max.y - sp.center.y;
	arr[ 6 ] = bx.max.z - sp.center.z;

	return arr;

}

function arrayToSphere( arr, target ) {

	target.radius = arr[ 0 ];
	target.center.x = arr[ 1 ];
	target.center.y = arr[ 2 ];
{'fraction_non_alphanumeric': 0.1368421052631579, 'fraction_numerical': 0.022556390977443608, 'mean_word_length': 2.926253687315634, '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': '3588028', 'n_tokens_mistral': 522, 'n_tokens_neox': 485, 'n_words': 170}