<commit_before>import React, {Component} from 'react';
import {Row, Col, Checkbox, Icon, Tooltip} from 'antd';
import PropTypes from 'prop-types';
import {inject, observer} from 'mobx-react';

@inject('historyStore', 'viewStore')
@observer
export default class HistoryItem extends Component {

    render() {
        const {historyStore, history} = this.props;

        return (<Row className="history-row">
                <Col span={1}>
                    <Checkbox defaultChecked={history.checked} checked={history.checked} onChange={this.onChange.bind(this)}/>
                </Col>
                <Col span={21}>
                    <div className="website-icon" style={{
                        backgroundImage: '-webkit-image-set(url(chrome://favicon/size/16@1x/' + history.url + ') 1x,' +
                        ' url(chrome://favicon/size/16@2x/' + history.url + ') 2x)'
                    }}/>
                    <a className="history-label" target="_blank" href={history.url}>{history.id} - {history.title}</a>
                </Col>
                <Col className="col-right" span={2}>
                    <Tooltip placement="top" title="收藏">
                        <Icon type="star-o" onClick={() => {

                        }}/>
                    </Tooltip>
                    <Tooltip placement="top" title="删除">
                        <Icon type="close-circle-o" onClick={() => {
                            historyStore.removeHistory(history)
                        }}/>
                    </Tooltip>
                </Col>

            </Row>
        );
    }

    onChange(event) {
        const {viewStore, history} = this.props;
        history.checked = event.target.checked;

        if (event.target.checked) {
            viewStore.selectedHistories.push(history);
        } else {
            viewStore.selectedHistories.remove(history);
        }

        console.log(history.id);
    }
}

HistoryItem.propTypes = {
    history: PropTypes.object.isRequired
}
<commit_msg>Remove debug info.<commit_after>import React, {Component} from 'react';
import {Row, Col, Checkbox, Icon, Tooltip} from 'antd';
import PropTypes from 'prop-types';
import {inject, observer} from 'mobx-react';

@inject('historyStore', 'viewStore')
@observer
export default class HistoryItem extends Component {

    render() {
        const {historyStore, history} = this.props;

        return (<Row className="history-row">
                <Col span={1}>
                    <Checkbox defaultChecked={history.checked} checked={history.checked} onChange={this.onChange.bind(this)}/>
                </Col>
                <Col span={21}>
                    <div className="website-icon" style={{
                        backgroundImage: '-webkit-image-set(url(chrome://favicon/size/16@1x/' + history.url + ') 1x,' +
                        ' url(chrome://favicon/size/16@2x/' + history.url + ') 2x)'
                    }}/>
                    <a className="history-label" target="_blank" href={history.url}>{history.title}</a>
                </Col>
                <Col className="col-right" span={2}>
                    <Tooltip placement="top" title="收藏">
                        <Icon type="star-o" onClick={() => {

                        }}/>
                    </Tooltip>
                    <Tooltip placement="top" title="删除">
                        <Icon type="close-circle-o" onClick={() => {
                            historyStore.removeHistory(history)
                        }}/>
                    </Tooltip>
                </Col>

            </Row>
        );
    }

    onChange(event) {
        const {viewStore, history} = this.props;
        history.checked = event.target.checked;

        if (event.target.checked) {
            viewStore.selectedHistories.push(history);
        } else {
            viewStore.selectedHistories.remove(history);
        }

        console.log(history.id);
    }
}

HistoryItem.propTypes = {
    history: PropTypes.object.isRequired
}

{'fraction_non_alphanumeric': 0.14168326693227093, 'fraction_numerical': 0.00597609561752988, 'mean_word_length': 1.6497361477572559, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 43, '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': '6318809', 'n_tokens_mistral': 1097, 'n_tokens_neox': 1050, 'n_words': 201}