<commit_before>/**
 * @file WidgetHeader component
 * @author liangxiaojun(<EMAIL>)
 */

import React, {Component} from 'react';
import PropTypes from 'prop-types';

export default class WidgetHeader extends Component {

    constructor(props, ...restArgs) {
        super(props, ...restArgs);
    }

    render() {

        const {children, className, style, title} = this.props;

        return (
            <div className={`widget-header ${className}`}
                 style={style}>

                {title}

                <div className="right">
                    {children}
                </div>

            </div>
        );

    }
};

WidgetHeader.propTypes = {

    className: PropTypes.string,
    style: PropTypes.object,

    title: PropTypes.any

};

WidgetHeader.defaultProps = {

    className: '',
    style: null,

    title: ''

};<commit_msg>update WidgetHeader<commit_after>/**
 * @file WidgetHeader component
 * @author liangxiaojun(<EMAIL>)
 */

import React, {Component} from 'react';
import PropTypes from 'prop-types';

class WidgetHeader extends Component {

    constructor(props, ...restArgs) {
        super(props, ...restArgs);
    }

    render() {

        const {children, className, style, title} = this.props;

        return (
            <div className={`widget-header ${className}`}
                 style={style}>

                {title}

                <div className="right">
                    {children}
                </div>

            </div>
        );

    }
};

WidgetHeader.propTypes = {

    className: PropTypes.string,
    style: PropTypes.object,

    title: PropTypes.any

};

WidgetHeader.defaultProps = {

    className: '',
    style: null,

    title: ''

};

export default WidgetHeader;
{'fraction_non_alphanumeric': 0.1313246162592382, 'fraction_numerical': 0.0, 'mean_word_length': 1.972972972972973, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3930385', 'n_tokens_mistral': 506, 'n_tokens_neox': 485, 'n_words': 112}