<commit_before>/**
 * @author mrdoob / http://mrdoob.com/
 */

THREE.GridHelper = function ( size, step, color1, color2 ) {

	color1 = new THREE.Color( color1 !== undefined ? color1 : 0x444444 );
	color2 = new THREE.Color( color2 !== undefined ? color2 : 0x888888 );

	var vertices = [];
	var colors = [];

	for ( var i = - size, j = 0; i <= size; i += step ) {

		vertices.push( - size, 0, i, size, 0, i );
		vertices.push( i, 0, - size, i, 0, size );

		var color = i === 0 ? color1 : color2;<commit_msg>GridHelper: Changed step to segments. See #9193.<commit_after>/**
 * @author mrdoob / http://mrdoob.com/
 */

THREE.GridHelper = function ( size, segments, color1, color2 ) {

	segments = segments || 1;
	color1 = new THREE.Color( color1 !== undefined ? color1 : 0x444444 );
	color2 = new THREE.Color( color2 !== undefined ? color2 : 0x888888 );

	var center = segments / 2;
	var step = ( size * 2 ) / segments;
	var vertices = [], colors = [];

	for ( var i = 0, j = 0, k = - size; i <= segments; i ++, k += step ) {

		vertices.push( - size, 0, k, size, 0, k );
		vertices.push( k, 0, - size, k, 0, size );

		var color = i === center ? color1 : color2;
{'fraction_non_alphanumeric': 0.17758620689655172, 'fraction_numerical': 0.05775862068965517, 'mean_word_length': 2.9489795918367347, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4902259', 'n_tokens_mistral': 475, 'n_tokens_neox': 420, 'n_words': 135}