<commit_before>const React = require('react');
const Changes = require('./Changes');

/**
 * Render an entire diff from a state.
 * @type {React}
 */
const RichDiff = React.createClass({
    propTypes: {
        className: React.PropTypes.string,
        state:     React.PropTypes.object.isRequired,
        minToWrap: React.PropTypes.number
    },

    getDefaultProps() {
        return {
            className: '',
            minToWrap: 2
        };
    },

    render() {
        const { state, className, minToWrap } = this.props;

        return (
            <Changes
                Wrapper={props => <div className={'RichDiff ' + className}>{props.children}</div>}
                changes={state.changes}
                minToWrap={minToWrap}
            />
        );
    }
});

module.exports = RichDiff;<commit_msg>Use 4 as minToWrap prop<commit_after>const React = require('react');
const Changes = require('./Changes');

/**
 * Render an entire diff from a state.
 * @type {React}
 */
const RichDiff = React.createClass({
    propTypes: {
        className: React.PropTypes.string,
        state:     React.PropTypes.object.isRequired,
        minToWrap: React.PropTypes.number
    },

    getDefaultProps() {
        return {
            className: '',
            minToWrap: 4
        };
    },

    render() {
        const { state, className, minToWrap } = this.props;

        return (
            <Changes
                Wrapper={props => <div className={'RichDiff ' + className}>{props.children}</div>}
                changes={state.changes}
                minToWrap={minToWrap}
            />
        );
    }
});

module.exports = RichDiff;
{'fraction_non_alphanumeric': 0.13189448441247004, 'fraction_numerical': 0.0017985611510791368, 'mean_word_length': 1.8825561312607946, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '4595685', 'n_tokens_mistral': 470, 'n_tokens_neox': 459, 'n_words': 95}