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

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

import Theme from '../Theme';

import Util from '../_vendors/Util';

class MaterialFieldSeparator extends Component {

    static Theme = Theme;

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

    render() {

        const {theme, isHover, isFocus} = this.props,

            className = (isHover ? ' hover' : '') + (isFocus ? ' focused' : '') + (theme ? ` theme-${theme}` : '');

        return (
            <div className={'material-field-separator' + className}>
                <div className="material-field-separator-hover"></div>
                <div className="material-field-separator-focus"></div>
            </div>
        );
    }
};

MaterialFieldSeparator.propTypes = {

    className: PropTypes.string,
    style: PropTypes.object,
    theme: PropTypes.oneOf(Util.enumerateValue(Theme)),

    isHover: PropTypes.bool,
    isFocus: PropTypes.bool

};

MaterialFieldSeparator.defaultProps = {

    className: '',
    style: null,
    theme: Theme.DEFAULT,

    isHover: false,
    isFocus: false

};

export default MaterialFieldSeparator;<commit_msg>update MaterialFieldSeparator<commit_after>/**
 * @file MaterialFieldSeparator component
 * @author liangxiaojun(<EMAIL>)
 */

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

import Theme from '../Theme';

import Util from '../_vendors/Util';

class MaterialFieldSeparator extends Component {

    static Theme = Theme;

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

    render() {

        const {theme, isHover, isFocus} = this.props,

            className = classNames('material-field-separator', {
                hover: isHover,
                focused: isFocus,
                [`theme-${theme}`]: theme
            });

        return (
            <div className={className}>
                <div className="material-field-separator-hover"></div>
                <div className="material-field-separator-focus"></div>
            </div>
        );
    }
};

MaterialFieldSeparator.propTypes = {

    className: PropTypes.string,
    style: PropTypes.object,
    theme: PropTypes.oneOf(Util.enumerateValue(Theme)),

    isHover: PropTypes.bool,
    isFocus: PropTypes.bool

};

MaterialFieldSeparator.defaultProps = {

    className: '',
    style: null,
    theme: Theme.DEFAULT,

    isHover: false,
    isFocus: false

};

export default MaterialFieldSeparator;
{'fraction_non_alphanumeric': 0.13373630525122782, 'fraction_numerical': 0.0, 'mean_word_length': 2.6625172890733055, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '5931845', 'n_tokens_mistral': 758, 'n_tokens_neox': 748, 'n_words': 164}