<commit_before>'use strict';
/*global */

var QueryVisualizationTable = React.createClass({
    displayName: 'QueryVisualizationTable',
    propTypes: {
        data: React.PropTypes.object
    },
    render: function () {
        if(!this.props.data) {
            return false;
        }

        var tableRows = this.props.data.rows.map(function (row) {
            var rowCols = row.map(function (data) {
                return (<td>{data.toString()}</td>);
            });

            return (<tr>{rowCols}</tr>);
        });

        var tableHeaders = this.props.data.columns.map(function (column) {
            return (
                <th>{column.toString()}</th>
            );
        });<commit_msg>get bare rows working again by fixing null value issue.<commit_after>'use strict';
/*global */

var QueryVisualizationTable = React.createClass({
    displayName: 'QueryVisualizationTable',
    propTypes: {
        data: React.PropTypes.object
    },
    render: function () {
        if(!this.props.data) {
            return false;
        }

        var tableRows = this.props.data.rows.map(function (row) {
            var rowCols = row.map(function (data) {
                // TODO: should we be casting all values toString()?
                var rowVal = (data !== null) ? data.toString() : null;
                return (<td>{rowVal}</td>);
            });

            return (<tr>{rowCols}</tr>);
        });

        var tableHeaders = this.props.data.columns.map(function (column) {
            var colVal = (column !== null) ? column.toString() : null;
            return (
                <th>{colVal}</th>
            );
        });
{'fraction_non_alphanumeric': 0.14302957151478576, 'fraction_numerical': 0.0, 'mean_word_length': 1.8006756756756757, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3524656', 'n_tokens_mistral': 468, 'n_tokens_neox': 452, 'n_words': 97}