<commit_before>import * as React from 'react'
import * as Path from 'path'
import { pathExists } from '../../lib/file-system'
import { revealInFileManager } from '../../lib/app-shell'

import { FileChange, mapStatus, iconForStatus } from '../../models/status'
import { Repository } from '../../models/repository'

import { PathLabel } from '../lib/path-label'
import {
  isSafeFileExtension,
  DefaultEditorLabel,
  RevealInFileManagerLabel,
} from '../lib/context-menu'
import { List } from '../lib/list'
import { IMenuItem } from '../../lib/menu-item'

import { Octicon } from '../octicons'
import { showContextualMenu } from '../main-process-proxy'

interface IFileListProps {
  readonly files: ReadonlyArray<FileChange>
  readonly selectedFile: FileChange | null
  readonly onSelectedFileChanged: (file: FileChange) => void
  readonly availableWidth: number

  /**
   * Called to open a file it its default application
   * @param path The path of the file relative to the root of the repository
   */<commit_msg>tidy this up<commit_after>import * as React from 'react'
import * as Path from 'path'
import { pathExists } from '../../lib/file-system'
import { revealInFileManager } from '../../lib/app-shell'

import { FileChange, mapStatus, iconForStatus } from '../../models/status'
import { Repository } from '../../models/repository'

import { PathLabel } from '../lib/path-label'
import {
  isSafeFileExtension,
  DefaultEditorLabel,
  RevealInFileManagerLabel,
} from '../lib/context-menu'
import { List } from '../lib/list'

import { Octicon } from '../octicons'
import { showContextualMenu } from '../main-process-proxy'

interface IFileListProps {
  readonly files: ReadonlyArray<FileChange>
  readonly selectedFile: FileChange | null
  readonly onSelectedFileChanged: (file: FileChange) => void
  readonly availableWidth: number

  /**
   * Called to open a file it its default application
   * @param path The path of the file relative to the root of the repository
   */
{'fraction_non_alphanumeric': 0.12997481108312342, 'fraction_numerical': 0.0, 'mean_word_length': 3.762589928057554, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2340846', 'n_tokens_mistral': 556, 'n_tokens_neox': 561, 'n_words': 186}