<commit_before>class Confirm extends React.Component {
    constructor(props) {
        super(props)

        this.handleCancel = this.handleCancel.bind(this)
        this.handleConfirm = this.handleConfirm.bind(this)
    }

    handleCancel() {
        if (this.props.onCancel) {
            this.props.onCancel.call(null)
        }
    }

    handleConfirm() {
        if (this.props.onConfirm) {
            this.props.onConfirm.call(null)
        }
    }

    render() {
        let message = "Are you sure you want to continue?"
        if (this.props.message) {
            message = this.props.message
        }

        return (
            <div>
                <div className="overlay">
                </div>
                <div className="confirm">
                    <blockquote>{message}</blockquote>
                    <hr/>
                    <div className="clearfix">
                        <button className="button button-outline" onClick={this.handleCancel}>No</button><commit_msg>Clicking outside confirm dialogue now cancels<commit_after>class Confirm extends React.Component {
    constructor(props) {
        super(props)

        this.handleCancel = this.handleCancel.bind(this)
        this.handleConfirm = this.handleConfirm.bind(this)
    }

    handleCancel() {
        if (this.props.onCancel) {
            this.props.onCancel.call(null)
        }
    }

    handleConfirm() {
        if (this.props.onConfirm) {
            this.props.onConfirm.call(null)
        }
    }

    render() {
        let message = "Are you sure you want to continue?"
        if (this.props.message) {
            message = this.props.message
        }

        return (
            <div>
                <div className="overlay" onClick={this.handleCancel}>
                </div>
                <div className="confirm">
                    <blockquote>{message}</blockquote>
                    <hr/>
                    <div className="clearfix">
                        <button className="button button-outline" onClick={this.handleCancel}>No</button>
{'fraction_non_alphanumeric': 0.11089681774349083, 'fraction_numerical': 0.0, 'mean_word_length': 1.6133501259445844, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '7404570', 'n_tokens_mistral': 555, 'n_tokens_neox': 530, 'n_words': 99}