<commit_before>import React from 'react'
import PropTypes from 'prop-types'

const EditableTableHeader = ({columnNames}) => {

  return(
    <div>
      {columnNames.map( columnName => {return <div key={columnName}>{columnName}</div>})}
    </div>
  )

}

EditableTableHeader.propTypes = {
  columnNames: PropTypes.arrayOf(PropTypes.string).isRequired
}

export default EditableTableHeader<commit_msg>Add styled components to EditableTableHeader<commit_after>import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'

const Div = styled.div`
  display:flex;
  flex-direction:row;
`

const HeaderCell = styled.div`
  flex:1;
`

const EditableTableHeader = ({columnNames}) => {

  return(
    <Div>
      {columnNames.map( columnName => {return <HeaderCell key={columnName}>{columnName}</HeaderCell>})}
    </Div>
  )

}

EditableTableHeader.propTypes = {
  columnNames: PropTypes.arrayOf(PropTypes.string).isRequired
}

export default EditableTableHeader
{'fraction_non_alphanumeric': 0.12462311557788945, 'fraction_numerical': 0.0010050251256281408, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 11, '<?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': '7056637', 'n_tokens_mistral': 309, 'n_tokens_neox': 310, 'n_words': 66}