<commit_before>import React from "react";
import * as helpers from "../../helpers.js";

//Import spinner styles
import "@siimple/css/scss/elements/spinner.scss";

//Spinner element
export const Spinner = function (props) {
    let newProps = helpers.filterProps(props, ["className", "color", "size"]);
    //Initialize the spinner class-list
    let classList = ["siimple-spinner"];
    //Check the color attribute
    if(typeof props.color === "string") {
        classList.push("siimple-spinner--" + props.color);
    }
    //Check the size attribute
    if (typeof props.size === "string") {
        classList.push("siimple-spinner--" + props.size);
    }
    newProps.className = helpers.classNames(classList, props.className);
    //Return the spinner element
    return React.createElement("div", newProps, null);
};

//Spinner default props
Spinner.defaultProps = { 
    "color": "primary", 
    "size": null
};
<commit_msg>neutrine: removed spinner size prop<commit_after>import React from "react";
import * as helpers from "../../helpers.js";

//Import spinner styles
import "@siimple/css/scss/elements/spinner.scss";

//Spinner element
export const Spinner = function (props) {
    let newProps = helpers.filterProps(props, ["className", "color"]);
    //Initialize the spinner class-list
    let classList = ["siimple-spinner"];
    //Check the color attribute
    if(typeof props.color === "string") {
        classList.push("siimple-spinner--" + props.color);
    }
    newProps.className = helpers.classNames(classList, props.className);
    //Return the spinner element
    return React.createElement("div", newProps, null);
};

//Spinner default props
Spinner.defaultProps = { 
    "color": "primary"
};

{'fraction_non_alphanumeric': 0.14825581395348839, 'fraction_numerical': 0.0, 'mean_word_length': 3.5170603674540684, 'pattern_counts': {'":': 3, '<': 3, '<?xml version=': 0, '>': 3, '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': '122662', 'n_tokens_mistral': 518, 'n_tokens_neox': 511, 'n_words': 135}