<commit_before>import React from 'react';
import SearchBtn from './SearchBtn.jsx';

export default class TabBar extends React.Component {
	constructor(props) {
		super(props);
		this.state = {toClicked: true}
	}

	_handleClick(event) {
		this.setState({toClicked: !this.state.toClicked});
	}

	render() {
		return (
			<h3 className="title-bar" onClick={this._handleClick.bind(this)}>
				<span className={this.state.toClicked ? 'selected' : ''}>To</span>				
				<span className={this.state.toClicked ? '' : 'selected'}>From</span>
				<SearchBtn />
			</h3>
		);
	}
}<commit_msg>titlebar<commit_after>import React from 'react';
import SearchBtn from './SearchBtn.jsx';

export default class TabBar extends React.Component {
	constructor(props) {
		super(props);
		this.state = {toClicked: true}
	}

	_handleClick(event) {
		this.setState({toClicked: !this.state.toClicked});
	}

	render() {
		return (
			<div className="title-bar title-bar-main" onClick={this._handleClick.bind(this)}>
				<span className={this.state.toClicked ? 'title tab selected' : 'title tab'}>To</span>				
				<span className={this.state.toClicked ? 'title tab' : 'title tab selected'}>From</span>
				<SearchBtn />
			</div>
		);
	}
}
{'fraction_non_alphanumeric': 0.16501650165016502, 'fraction_numerical': 0.0016501650165016502, 'mean_word_length': 4.183760683760684, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '740042', 'n_tokens_mistral': 459, 'n_tokens_neox': 414, 'n_words': 80}