<commit_before>var Choices=React.createClass({
	propTypes:{
		data:React.PropTypes.array.isRequired
		,selected:React.PropTypes.number
		,onSelect:React.PropTypes.func
		,type:React.PropTypes.string
		,checked:React.PropTypes.bool
		,labelfor:React.PropTypes.bool
	},
	selected:0, //might receive from parent in the future
	renderTab:function(item,idx) {
		var disabled=item.disabled ? " disabled":"";
		var disabled_label=item.disabledLabel ? " disabled":"";
		var checked=(this.selected==idx) || this.props.checked;
		var theinput=React.createElement("input", {type: this.props.type||"radio", 
				defaultChecked:checked, className:disabled.trim(),name: "tagsettab", value: item.name}); 

		var thelabel=React.createElement("span", 
			{className:"tagsetlabel "+disabled_label.trim()}, item.label);

		var labelfor=(this.props.labelfor)?React.createElement("label", null, theinput,thelabel):[theinput,,thelabel];
		return React.createElement("span", {"data-n": idx, 
			className:(this.props.type||"radio")+"inline"+disabled+disabled_label}, labelfor);
	},
	select:function(e) {
		var target=e.target;
		while (target) {
			if (target.dataset&& target.dataset.n)	 break;
			else  target=target.parentNode;
		}
		if (!target) return;
		if (target.classList.contains("disabledLabel") || target.classList.contains("disabled")) {
			e.preventDefault();
			return;
		}
		var n=parseInt(target.dataset.n);
		if (this.selected!=n) {
			if (this.props.onSelect) this.props.onSelect(n, this.selected); //newly selected, previous selected
			this.selected=n;
		}
	},	
	render:function(){
		return React.createElement("div", {onClick: this.select}, <commit_msg>minor fix<commit_after>var Choices=React.createClass({
	propTypes:{
		data:React.PropTypes.array.isRequired
		,selected:React.PropTypes.number
		,onSelect:React.PropTypes.func
		,type:React.PropTypes.string
		,checked:React.PropTypes.bool
		,labelfor:React.PropTypes.bool
	},
	selected:0, //might receive from parent in the future
	renderTab:function(item,idx) {
		var disabled=item.disabled ? " disabled":"";
		var disabled_label=item.disabledLabel ? " disabled":"";
		var checked=(this.selected==idx) || this.props.checked;
		var theinput=React.createElement("input", {type: this.props.type||"radio", key:"i"+idx,
				defaultChecked:checked, className:disabled.trim(),name: "tagsettab", value: item.name}); 

		var thelabel=React.createElement("span", 
			{key:"l"+idx,className:"tagsetlabel "+disabled_label.trim()}, item.label);

		var labelfor=(this.props.labelfor)?React.createElement("label", null, theinput,thelabel):[theinput,thelabel];
		return React.createElement("span", {"data-n": idx, key:"t"+idx,
			className:(this.props.type||"radio")+"inline"+disabled+disabled_label},"　", labelfor);
	},
	select:function(e) {
		var target=e.target;
		while (target) {
			if (target.dataset&& target.dataset.n)	 break;
			else  target=target.parentNode;
		}
		if (!target) return;
		if (target.classList.contains("disabledLabel") || target.classList.contains("disabled")) {
			e.preventDefault();
			return;
		}
		var n=parseInt(target.dataset.n);
		if (this.selected!=n) {
			if (this.props.onSelect) this.props.onSelect(n, this.selected); //newly selected, previous selected
			this.selected=n;
		}
	},	
	render:function(){
		return React.createElement("div", {onClick: this.select}, 
{'fraction_non_alphanumeric': 0.16621743036837378, 'fraction_numerical': 0.0005989817310572028, 'mean_word_length': 5.510721247563353, 'pattern_counts': {'":': 6, '<': 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': '2786242', 'n_tokens_mistral': 1171, 'n_tokens_neox': 1107, 'n_words': 179}