<commit_before>/**
 * Copyright 2015, GeoSolutions Sas.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree.
 */
const React = require('react');
const Spinner = require('react-spinkit');

const GlobalSpinner = React.createClass({
    propTypes: {
        id: React.PropTypes.string,
        loading: React.PropTypes.bool,
        className: React.PropTypes.string,
        spinner: React.PropTypes.string
    },
    getDefaultProps() {
        return {
            id: "mapstore-globalspinner",
            loading: false,
            className: "mapstore-globalspinner",
            spinner: "circle"
        };
    },
    render() {
        if (this.props.loading) {
            return (
                <div className={this.props.className} id={this.props.id}><Spinner spinnerName={this.props.spinner}/></div>
            );
        }
        return null;
    }
});

module.exports = GlobalSpinner;
<commit_msg>fix #774 add nofadein to global spinner (#775)<commit_after>/**
 * Copyright 2015, GeoSolutions Sas.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree.
 */
const React = require('react');
const Spinner = require('react-spinkit');

const GlobalSpinner = React.createClass({
    propTypes: {
        id: React.PropTypes.string,
        loading: React.PropTypes.bool,
        className: React.PropTypes.string,
        spinner: React.PropTypes.string
    },
    getDefaultProps() {
        return {
            id: "mapstore-globalspinner",
            loading: false,
            className: "mapstore-globalspinner",
            spinner: "circle"
        };
    },
    render() {
        if (this.props.loading) {
            return (
                <div className={this.props.className} id={this.props.id}><Spinner noFadeIn spinnerName={this.props.spinner}/></div>
            );
        }
        return null;
    }
});

module.exports = GlobalSpinner;

{'fraction_non_alphanumeric': 0.11719500480307397, 'fraction_numerical': 0.0067243035542747355, 'mean_word_length': 2.270015698587127, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6744280', 'n_tokens_mistral': 606, 'n_tokens_neox': 588, 'n_words': 148}