<commit_before>class ReactComponent extends React.Component {
    constructor(props) {
        super(props);
        // if (props.cb) props.cb(this, this.props.name);
        if (props.onCreate) props.onCreate(this, this.props.name);
    }
    getClassList() {
        return [
            this.constructor.name,
            ...(this.props.classList || [])
        ];
    }
    getClassName() {
        return this.getClassList().join(' ');
    }
    rerender() {
        // console.log(`${this.constructor.name}.rerender`);
        return new Promise(resolve => {
            const start = Date.now();
            this.forceUpdate(() => {
                console.log(`${this.constructor.name}.rerender time:`, Date.now() - start);
                resolve();
            });
        });
    }
    componentWillUnmount() {
        // console.log('ReactComponent.componentWillUnmount');<commit_msg>log render time flag<commit_after>class ReactComponent extends React.Component {
    constructor(props) {
        super(props);
        // if (props.cb) props.cb(this, this.props.name);
        if (props.onCreate) props.onCreate(this, this.props.name);
    }
    getClassList() {
        return [
            this.constructor.name,
            ...(this.props.classList || [])
        ];
    }
    getClassName() {
        return this.getClassList().join(' ');
    }
    rerender(logTime = true) {
        // console.log(`${this.constructor.name}.rerender`);
        return new Promise(resolve => {
            const start = Date.now();
            this.forceUpdate(() => {
                if (logTime) {
                    console.log(`${this.constructor.name}.rerender time:`, Date.now() - start);
                }
                resolve();
            });
        });
    }
    componentWillUnmount() {
        // console.log('ReactComponent.componentWillUnmount');
{'fraction_non_alphanumeric': 0.15380493033226153, 'fraction_numerical': 0.0, 'mean_word_length': 1.8202416918429003, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3629926', 'n_tokens_mistral': 516, 'n_tokens_neox': 515, 'n_words': 79}