<commit_before>import React from "react";

const iconMap = require("./icon/materialIconMap.json");

export class Card extends React.Component {
	render() {
		return (
			<div className="card" id={ this.props.id }>
				{ this.props.children }
			</div>
		);
	}
}

export class CardTitle extends React.Component {
	render() {
		return (
			<h1 className="primary">{ this.props.children }</h1>
		);
	}
}

export class MultiSelector extends React.Component {
	constructor(props) {
		super(props);
		this.state = {
			selectedIndex: props.defaultSelected
		};
	}

	changeSelectedIndex(index) {
		this.setState({
			selectedIndex: index
		});<commit_msg>Add on change event to multiselector<commit_after>import React from "react";

const iconMap = require("./icon/materialIconMap.json");

export class Card extends React.Component {
	render() {
		return (
			<div className="card" id={ this.props.id }>
				{ this.props.children }
			</div>
		);
	}
}

export class CardTitle extends React.Component {
	render() {
		return (
			<h1 className="primary">{ this.props.children }</h1>
		);
	}
}

export class MultiSelector extends React.Component {
	constructor(props) {
		super(props);
		this.state = {
			selectedIndex: props.defaultSelected
		};
	}

	changeSelectedIndex(index) {
		this.setState({
			selectedIndex: index
		});
		this.props.onChange(index);
{'fraction_non_alphanumeric': 0.13862120088954782, 'fraction_numerical': 0.0029651593773165306, 'mean_word_length': 3.804270462633452, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4911518', 'n_tokens_mistral': 480, 'n_tokens_neox': 435, 'n_words': 96}