<commit_before>import React, { Component, PropTypes } from 'react';
import Autocomplete from 'react-autocomplete';

export default class DiseaseSelection extends Component {
	static propTypes = {
		diseases: PropTypes.array,
		setDisease: PropTypes.func
	}
	render() {
		return (
			<div className='disease-selection'>
				<h2>Let us help you become an EXPERT IN YOU again.</h2>
				<div>I was diagnosed with <DiseaseSelect setDisease={this.props.setDisease} diseases={this.props.diseases} /></div>
				<p></p>
			</div>
		);
	}
}

class DiseaseSelect extends Component {
	static propTypes = {
		diseases: PropTypes.array,
		setDisease: PropTypes.func
	};
	render() {
		let selectOnChange = (e) => {
			this.props.setDisease(e.target.options[e.target.selectedIndex].value);
		}
		return (
			<select onChange={selectOnChange}>
				<option value=''>DISEASE NAME</option>
				{
					this.props.diseases.map((disease) => {
						return <option key={disease.id} value={disease.id}>{disease.label}</option>;
					})
				}
			</select>
		);<commit_msg>removing autocomplete for now<commit_after>import React, { Component, PropTypes } from 'react';

export default class DiseaseSelection extends Component {
	static propTypes = {
		diseases: PropTypes.array,
		setDisease: PropTypes.func
	}
	render() {
		return (
			<div className='disease-selection'>
				<h2>Let us help you become an EXPERT IN YOU again.</h2>
				<div>I was diagnosed with <DiseaseSelect setDisease={this.props.setDisease} diseases={this.props.diseases} /></div>
			</div>
		);
	}
}

class DiseaseSelect extends Component {
	static propTypes = {
		diseases: PropTypes.array,
		setDisease: PropTypes.func
	};
	render() {
		let selectOnChange = (e) => {
			this.props.setDisease(e.target.options[e.target.selectedIndex].value);
		}
		return (
			<select onChange={selectOnChange}>
				<option value=''>DISEASE NAME</option>
				{
					this.props.diseases.map((disease) => {
						return <option key={disease.id} value={disease.id}>{disease.label}</option>;
					})
				}
			</select>
		);
{'fraction_non_alphanumeric': 0.14202049780380674, 'fraction_numerical': 0.0019521717911176184, 'mean_word_length': 3.8463356973995273, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 35, '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': '4623300', 'n_tokens_mistral': 802, 'n_tokens_neox': 681, 'n_words': 144}