<commit_before>import React from "react";
import {hyperscript as h} from "neutrine-utils";
import {concat, omit} from "kofi";

import "siimple/scss/layout/_box.scss";

//Box layout class
export class Box extends React.Component {
    render() {
        //Clone the box props 
        let props = omit(this.props, ["children", "className", "color"]);
        props.className = concat(["siimple-box"], this.props.className);
        //Check the box color property
        if (typeof this.props.color === "string") {
            props.className.push("siimple-box--" + this.props.color.toLowerCase());
        }
        //Return the box component
        return h("div", props, this.props.children);
    }
}

//Default props
Box.defaultProps = {
    color: null, 
    style: null,
    className: []
};

//Box title
export class BoxTitle extends React.Component {
    render() {
        let props = omit(this.props, ["children", "className"]);
        props.className = concat(["siimple-box-title"], this.props.className);
        return h("div", props, this.props.children);
    }
}

//Box title default props 
BoxTitle.defaultProps = {
    style: null,
    className: []
};

//Box subtitle 
export class BoxSubtitle extends React.Component {
    render() {
        let props = omit(this.props, ["children", "className"]);
        props.className = concat(["siimple-box-subtitle"], this.props.className);
        return h("div", props, this.props.children);
    }
}

//Box subtitle default props 
BoxSubtitle.defaultProps = {
    style: null,
    className: []
};

//Box detail component 
export class BoxDetail extends React.Component {
    render() {
        let props = omit(this.props, ["children", "className"]);
        props.className = concat(["siimple-box-detail"], this.props.className);
        return h("div", props, this.props.children);
    }
}

//Box detail default props 
BoxDetail.defaultProps = {
    style: null,
    className: []
};

<commit_msg>Fixed dependencies. Minor changes<commit_after>import React from "react";
import {classNames, hyperscript as h} from "neutrine-utils";
import {omit} from "kofi";

import "siimple/scss/layout/_box.scss";

//Box layout class
export class Box extends React.Component {
    render() {
        //Clone the box props 
        let props = omit(this.props, ["children", "className", "color"]);
        let classList = ["siimple-box"];
        //Check the box color property
        if (typeof this.props.color === "string") {
            classList.push("siimple-box--" + this.props.color.toLowerCase());
        }
        //Save the box className
        props.className = classNames(classList, this.props.className);
        //Return the box component
        return h("div", props, this.props.children);
    }
}

//Default props
Box.defaultProps = {
    color: null
};

//Box title
export class BoxTitle extends React.Component {
    render() {
        //Initialize the box title props
        let props = omit(this.props, ["children", "className"]);
        props.className = classNames("siimple-box-title", this.props.className);
        //Return the box title element
        return h("div", props, this.props.children);
    }
}

//Box title default props 
BoxTitle.defaultProps = {
    style: null
};

//Box subtitle 
export class BoxSubtitle extends React.Component {
    render() {
        //Initialize the box subtitle props
        let props = omit(this.props, ["children", "className"]);
        props.className = classNames("siimple-box-subtitle", this.props.className);
        //Return the box title element
        return h("div", props, this.props.children);
    }
}

//Box subtitle default props 
BoxSubtitle.defaultProps = {
    style: null
};

//Box detail component 
export class BoxDetail extends React.Component {
    render() {
        //Initialize the box detail props
        let props = omit(this.props, ["children", "className"]);
        props.className = classNames("siimple-box-detail", this.props.className);
        //Return the box detail element
        return h("div", props, this.props.children);
    }
}

//Box detail default props 
BoxDetail.defaultProps = {
    style: null
};


{'fraction_non_alphanumeric': 0.1371373771277871, 'fraction_numerical': 0.0, 'mean_word_length': 2.80309936189608, 'pattern_counts': {'":': 0, '<': 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': '7104252', 'n_tokens_mistral': 1216, 'n_tokens_neox': 1193, 'n_words': 336}