<commit_before>import { PNTSLoaderBase } from '../base/PNTSLoaderBase.js';
import { Points, PointsMaterial, BufferGeometry, BufferAttribute, DefaultLoadingManager } from 'three';

export class PNTSLoader extends PNTSLoaderBase {

	constructor( manager = DefaultLoadingManager ) {

		super();
		this.manager = manager;

	}

	parse( buffer ) {

		return super
			.parse( buffer )
			.then( result => {

				const { featureTable } = result;

				const POINTS_LENGTH = featureTable.getData( 'POINTS_LENGTH' );
				const POSITION = featureTable.getData( 'POSITION', POINTS_LENGTH, 'FLOAT', 'VEC3' );
				const RGB = featureTable.getData( 'RGB', POINTS_LENGTH, 'UNSIGNED_BYTE', 'VEC3' );

				[
					'RTC_CENTER',
					'QUANTIZED_VOLUME_OFFSET',
					'QUANTIZED_VOLUME_SCALE',
					'CONSTANT_RGBA',
					'BATCH_LENGTH',
					'POSITION_QUANTIZED',
					'RGBA',
					'RGB565',
					'NORMAL',
					'NORMAL_OCT16P',
				].forEach( feature => {

					if ( feature in featureTable.header ) {

						console.warn( `PNTSLoader: Unsupported FeatureTable feature "${ feature }" detected.` );

					}

				} );

				const geometry = new BufferGeometry();
				geometry.setAttribute( 'position', new BufferAttribute( POSITION, 3, false ) );
<commit_msg>Remove RTC_CENTER warning in pnts loader<commit_after>import { PNTSLoaderBase } from '../base/PNTSLoaderBase.js';
import { Points, PointsMaterial, BufferGeometry, BufferAttribute, DefaultLoadingManager } from 'three';

export class PNTSLoader extends PNTSLoaderBase {

	constructor( manager = DefaultLoadingManager ) {

		super();
		this.manager = manager;

	}

	parse( buffer ) {

		return super
			.parse( buffer )
			.then( result => {

				const { featureTable } = result;

				const POINTS_LENGTH = featureTable.getData( 'POINTS_LENGTH' );
				const POSITION = featureTable.getData( 'POSITION', POINTS_LENGTH, 'FLOAT', 'VEC3' );
				const RGB = featureTable.getData( 'RGB', POINTS_LENGTH, 'UNSIGNED_BYTE', 'VEC3' );

				[
					'QUANTIZED_VOLUME_OFFSET',
					'QUANTIZED_VOLUME_SCALE',
					'CONSTANT_RGBA',
					'BATCH_LENGTH',
					'POSITION_QUANTIZED',
					'RGBA',
					'RGB565',
					'NORMAL',
					'NORMAL_OCT16P',
				].forEach( feature => {

					if ( feature in featureTable.header ) {

						console.warn( `PNTSLoader: Unsupported FeatureTable feature "${ feature }" detected.` );

					}

				} );

				const geometry = new BufferGeometry();
				geometry.setAttribute( 'position', new BufferAttribute( POSITION, 3, false ) );

{'fraction_non_alphanumeric': 0.12560581583198707, 'fraction_numerical': 0.006462035541195477, 'mean_word_length': 3.5533088235294117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1968293', 'n_tokens_mistral': 993, 'n_tokens_neox': 802, 'n_words': 176}