<commit_before>/**
 * Created by Session on 17/6/1.
 */
import React, {Component} from 'react';
import s from './style/index';

export default class Loading extends Component {
    static defaultProps = {
        prefixLoad: s.loadingPrefix
    };


    render() {
        const {prefixLoad, text, graph, size, loading} = this.props;
        console.log(loading);
        let classTmp = prefixLoad + "-container-graph";
        let classNameValue;
        switch (size) {
            case "small":
                classNameValue = [classTmp, "loading-small"].join(' ');
                break;
            case "large":
                classNameValue = [classTmp, "loading-large"].join(' ');
                break;
            default:
                classNameValue = classTmp;
        }

        return (
            <div>
                {
                    loading ?
                        <div className={prefixLoad}>
                            <div className={`${prefixLoad}-container`}>
                                <div className={classNameValue}>
                                    <div className="loading-1"></div>
                                    <div className="loading-2"></div>
                                    <div className="loading-3"></div>
                                    <div className="loading-4"></div>
                                </div>
                                <div className={`${prefixLoad}-container-text`}>
                                    {text}
                                </div>
                            </div>
                        </div> : ''
                }
                <div className="loading-children">
                    {
                        React.Children.map(this.props.children, child => (<div>我是：{child} </div>))
                    }
                </div>
            </div>
        );
    }<commit_msg>去掉loading里面的多余文字<commit_after>/**
 * Created by Session on 17/6/1.
 */
import React, {Component} from 'react';
import s from './style/index';

export default class Loading extends Component {
    static defaultProps = {
        prefixLoad: s.loadingPrefix
    };


    render() {
        const {prefixLoad, text, graph, size, loading} = this.props;
        console.log(loading);
        let classTmp = prefixLoad + "-container-graph";
        let classNameValue;
        switch (size) {
            case "small":
                classNameValue = [classTmp, "loading-small"].join(' ');
                break;
            case "large":
                classNameValue = [classTmp, "loading-large"].join(' ');
                break;
            default:
                classNameValue = classTmp;
        }

        return (
            <div>
                {
                    loading ?
                        <div className={prefixLoad}>
                            <div className={`${prefixLoad}-container`}>
                                <div className={classNameValue}>
                                    <div className="loading-1"></div>
                                    <div className="loading-2"></div>
                                    <div className="loading-3"></div>
                                    <div className="loading-4"></div>
                                </div>
                                <div className={`${prefixLoad}-container-text`}>
                                    {text}
                                </div>
                            </div>
                        </div> : ''
                }
                <div className="loading-children">
                    {
                        React.Children.map(this.props.children, child => (<div>{child} </div>))
                    }
                </div>
            </div>
        );
    }
{'fraction_non_alphanumeric': 0.11781760674749604, 'fraction_numerical': 0.004217185028993147, 'mean_word_length': 0.9963177275118359, 'pattern_counts': {'":': 4, '<': 47, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1854846', 'n_tokens_mistral': 908, 'n_tokens_neox': 848, 'n_words': 178}