<commit_before>import React from 'react';
import classNames from 'classnames';
import styles from './styles.css';

class Modal extends React.Component {
    constructor(props) {
        super(props);
        this.handleClick = this.handleClick.bind(this);
    }
    handleClick(event) {
        event.stopPropagation();
    }
    render() {
        if (!this.props.show) {
            return null;
        }

        return (
            <div
                className={classNames(styles.backdrop, {
                    [this.props.className]: this.props.className
                })}
                onClick={this.props.onHide}
            >
                <div className={classNames(styles.modalWrapper, {
                    [styles.fullSize]: this.props.fullSize
                })}
                >
                    <div
                        className={classNames(styles.modal, {
                            [styles.fullSize]: this.props.fullSize
                        })}
                        onClick={this.handleClick}
                    >
                        {this.props.children}
                    </div>
                </div>
            </div>
        );
    }
}

Modal.propTypes = {
    children: React.PropTypes.node,
    className: React.PropTypes.string,
    fullSize: React.PropTypes.bool,
    onHide: React.PropTypes.func.isRequired,
    show: React.PropTypes.bool
};

export default Modal;<commit_msg>Removed required onHide prop in Modal Comp<commit_after>import React from 'react';
import classNames from 'classnames';
import styles from './styles.css';

class Modal extends React.Component {
    constructor(props) {
        super(props);
        this.handleClick = this.handleClick.bind(this);
    }
    handleClick(event) {
        event.stopPropagation();
    }
    render() {
        if (!this.props.show) {
            return null;
        }

        return (
            <div
                className={classNames(styles.backdrop, {
                    [this.props.className]: this.props.className
                })}
                onClick={this.props.onHide}
            >
                <div className={classNames(styles.modalWrapper, {
                    [styles.fullSize]: this.props.fullSize
                })}
                >
                    <div
                        className={classNames(styles.modal, {
                            [styles.fullSize]: this.props.fullSize
                        })}
                        onClick={this.handleClick}
                    >
                        {this.props.children}
                    </div>
                </div>
            </div>
        );
    }
}

Modal.propTypes = {
    children: React.PropTypes.node,
    className: React.PropTypes.string,
    fullSize: React.PropTypes.bool,
    onHide: React.PropTypes.func,
    show: React.PropTypes.bool
};

export default Modal;
{'fraction_non_alphanumeric': 0.10662525879917184, 'fraction_numerical': 0.0, 'mean_word_length': 1.3454692556634305, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '1503413', 'n_tokens_mistral': 763, 'n_tokens_neox': 727, 'n_words': 125}