<commit_before>import React from 'react';
import Table from '../Table';
import Reactable from 'reactable';

const Expandable = (props) => {
  return <Table>
    {
      props.data.map((row) => {
        console.log('row', row);
        return <Reactable.Tr>
          {
            Object.keys(row).map(function(column, index) {
              const value = row[column];
              return <Reactable.Td column={column} value={value} key={index} />
            })
          }
        </Reactable.Tr>;
      })
    }
  </Table>;
};

Expandable.propTypes = {
  data: React.PropTypes.array.isRequired,
};

export default Expandable;<commit_msg>Got rid of warnings<commit_after>import React from 'react';
import Table from '../Table';
import Reactable from 'reactable';
import log from 'loglevel';

const Expandable = (props) =>
  <Table>
    {
      props.data.map((row) => {
        log.info('row', row);
        return <Reactable.Tr>
          {
            Object.keys(row).map((column, index) => {
              const value = row[column];
              return <Reactable.Td column={column} value={value} key={index} />;
            }).concat(<Reactable.Td column="expand" value="hey" />)
          }
        </Reactable.Tr>;
      })
    }
  </Table>;

Expandable.propTypes = {
  data: React.PropTypes.array.isRequired,
};

export default Expandable;
{'fraction_non_alphanumeric': 0.15532544378698224, 'fraction_numerical': 0.0, 'mean_word_length': 2.283980582524272, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 19, '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': '1071775', 'n_tokens_mistral': 416, 'n_tokens_neox': 416, 'n_words': 88}