<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import get from 'lodash/get';
import { CellMeasurer } from 'react-virtualized';

export default function TreeCellMeasurer({ index, key, parent, style, cellRenderer, className }) {
	return (
		<CellMeasurer
			cache={get(parent, 'props.cache')}
			columnIndex={0}
			key={key}
			parent={parent}
			rowIndex={index}
		>
			{({ measure }) => (
				<div className={className} style={{ ...style }}>
					{cellRenderer({ index, measure })}
				</div>
			)}
		</CellMeasurer>
	);
}

TreeCellMeasurer.propTypes = {
	cellRenderer: PropTypes.func.isRequired,
	className: PropTypes.string,
	index: PropTypes.number,
	key: PropTypes.string,
	parent: PropTypes.object,
	style: PropTypes.object,
};<commit_msg>fix(components): remove key props (#3077)<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import get from 'lodash/get';
import { CellMeasurer } from 'react-virtualized';

export default function TreeCellMeasurer({ index, parent, style, cellRenderer, className }) {
	return (
		<CellMeasurer
			cache={get(parent, 'props.cache')}
			columnIndex={0}
			parent={parent}
			rowIndex={index}
		>
			{({ measure }) => (
				<div className={className} style={{ ...style }}>
					{cellRenderer({ index, measure })}
				</div>
			)}
		</CellMeasurer>
	);
}

TreeCellMeasurer.propTypes = {
	cellRenderer: PropTypes.func.isRequired,
	className: PropTypes.string,
	index: PropTypes.number,
	parent: PropTypes.object,
	style: PropTypes.object,
};
{'fraction_non_alphanumeric': 0.15169270833333334, 'fraction_numerical': 0.00390625, 'mean_word_length': 4.528776978417266, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '4251509', 'n_tokens_mistral': 546, 'n_tokens_neox': 492, 'n_words': 114}