<commit_before>import React from 'react';

var layoutCount = 0;
export const layout = (...children) => {
    return <div key={`layout-${layoutCount++}`} className="layout">{children}</div>;
};

var sectionCount = 0;
export const section = (name, ...rows) => {
    const renderedRows = rows.map((cols, index) => {
        return <div key={`columns-${index}`} className="columns">{cols}</div>;
    });
    return (
        <div key={`section-${sectionCount++}`} className="section">
            {name && name !== ''? <h5>{name}</h5> : <div />}
            {renderedRows}
        </div>);
};

export const col = (renderField, type, ...fields) => {
    if(fields.length == 0)
        return <div className={`column ${type}`} />;

    return fields.map((field, index) => {
        return (
        <div
            key={`col-${index}`}
            className={`column ${type}`}>
            {renderField(field)}
        </div>);
    });
};<commit_msg>added case for non-field <commit_after>import React from 'react';

var layoutCount = 0;
export const layout = (...children) => {
    return <div key={`layout-${layoutCount++}`} className="layout">{children}</div>;
};

var sectionCount = 0;
export const section = (name, ...rows) => {
    const renderedRows = rows.map((cols, index) => {
        return <div key={`columns-${index}`} className="columns">{cols}</div>;
    });
    return (
        <div key={`section-${sectionCount++}`} className="section">
            {name && name !== ''? <h5>{name}</h5> : <div />}
            {renderedRows}
        </div>);
};

export const col = (renderField, type, ...fields) => {
    if(fields.length == 0)
        return <div className={`column ${type}`} />;

    return fields.map((field, index) => {

        return (
        <div
            key={`col-${index}`}
            className={`column ${type}`}>
            {typeof field === 'string' ? renderField(field) : field}
        </div>);
    });
};
{'fraction_non_alphanumeric': 0.21248066013408973, 'fraction_numerical': 0.005157297576070139, 'mean_word_length': 2.5925925925925926, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 37, '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': '7648249', 'n_tokens_mistral': 599, 'n_tokens_neox': 599, 'n_words': 134}