<commit_before>import styles from '../styles/table'

import React from 'react'
import classNames from 'classnames'
import { translate } from '../lib/I18n'

import Empty from '../components/Empty'
import File from '../components/File'

import SelectionBar from '../containers/SelectionBar'
import FileActionMenu from '../containers/FileActionMenu'

const FileList = ({
  t, f, files, showSelection, showActionMenu, onFileEdit, onFolderOpen, onFileToggle, onShowActionMenu
  }) => (
  <div role='contentinfo'>
    {showSelection && <SelectionBar />}
    <table className={classNames(
      styles['fil-content-table'],
      { [styles['fil-content-table-selection']]: showSelection }
    )}>
      <thead>
        <tr>
          <th />
          <th className={styles['fil-content-file']}>{ t('table.head_name') }</th>
          <th>{ t('table.head_update') }</th>
          <th>{ t('table.head_size') }</th>
          <th>{ t('table.head_status') }</th>
          <th />
        </tr>
      </thead>
      <tbody>
        {files.map((file, idx) => (
          <File
            onEdit={onFileEdit}
            onOpen={onFolderOpen}
            onToggle={onFileToggle}
            onShowActionMenu={onShowActionMenu}
            attributes={file}
          />
        ))}
      </tbody>
    </table>
    {files.length === 0 && <Empty />}
    {showActionMenu && <FileActionMenu />}
  </div>
)

export default translate()(FileList)
<commit_msg>[fix] Fixed linting issue<commit_after>import styles from '../styles/table'

import React from 'react'
import classNames from 'classnames'
import { translate } from '../lib/I18n'

import Empty from '../components/Empty'
import File from '../components/File'

import SelectionBar from '../containers/SelectionBar'
import FileActionMenu from '../containers/FileActionMenu'

const FileList = ({
  t, f, files, showSelection, showActionMenu, onFileEdit, onFolderOpen, onFileToggle, onShowActionMenu
}) => (
  <div role='contentinfo'>
    {showSelection && <SelectionBar />}
    <table className={classNames(
      styles['fil-content-table'],
      { [styles['fil-content-table-selection']]: showSelection }
    )}>
      <thead>
        <tr>
          <th />
          <th className={styles['fil-content-file']}>{ t('table.head_name') }</th>
          <th>{ t('table.head_update') }</th>
          <th>{ t('table.head_size') }</th>
          <th>{ t('table.head_status') }</th>
          <th />
        </tr>
      </thead>
      <tbody>
        {files.map((file, idx) => (
          <File
            onEdit={onFileEdit}
            onOpen={onFolderOpen}
            onToggle={onFileToggle}
            onShowActionMenu={onShowActionMenu}
            attributes={file}
          />
        ))}
      </tbody>
    </table>
    {files.length === 0 && <Empty />}
    {showActionMenu && <FileActionMenu />}
  </div>
)

export default translate()(FileList)

{'fraction_non_alphanumeric': 0.16401384083044981, 'fraction_numerical': 0.0020761245674740486, 'mean_word_length': 2.5, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 55, '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': '4524946', 'n_tokens_mistral': 884, 'n_tokens_neox': 871, 'n_words': 185}