<commit_before>import * as React from 'react';
import { PureComponent } from 'react';
import * as ReactDOM from 'react-dom';

import { I18nReceiver as Receiver, II18nLocaleTable } from '../i18n';
import isBrowser from '../utils/isBrowser';
import uniq from '../utils/uniq';
import BlockLoading from '../loading/BlockLoading';

import Head from './modules/Head';
import Body from './modules/Body';
import Foot from './modules/Foot';
import helper from './helper';
import { PaginationPageSizeOption } from '../pagination/components/PageSizeChanger';
import { WindowResizeHandler } from '../utils/component/WindowResizeHandler';
import { WindowScrollHandler } from '../utils/component/WindowScrollHandler';

export type TablePaginationType = 'default' | 'lite' | 'mini';

export interface ITablePageInfo {
  current?: number;
  total?: number;
  formatTotal?: (total: number) => React.ReactNode;
  /** @deprecated use total */
  totalItem?: number;
  pageSize?: number;
  /** @deprecated use pageSize */
  limit?: number;
  pageSizeOptions?: PaginationPageSizeOption[];
}

export interface ITableColumn {
  title: string;
  name: string;
  width?: number | string;
  isMoney?: boolean;
  needSort?: boolean;
  bodyRender?: (data: any) => React.ReactNode;
  textAlign?: 'left' | 'right' | 'center';
}

export interface ITableChangeConfig {
  sortBy: string;
  sortType: 'asc' | 'desc';
  current: number;
  pageSize: number;
}

type TableSortType = 'desc' | 'asc';
export interface ITableProps {
  columns: ITableColumn[];
  datasets: Array<{}>;
  rowKey?: string;
  sortBy?: string;
  sortType?: TableSortType;
  defaultSortType?: TableSortType;
  onChange?: (conf: ITableChangeConfig) => void;
  emptyLabel?: string;
  selection?: {
    selectedRowKeys?: string[];<commit_msg>fix Table renderBody type (#1443)<commit_after>import * as React from 'react';
import { PureComponent } from 'react';
import * as ReactDOM from 'react-dom';

import { I18nReceiver as Receiver, II18nLocaleTable } from '../i18n';
import isBrowser from '../utils/isBrowser';
import uniq from '../utils/uniq';
import BlockLoading from '../loading/BlockLoading';

import Head from './modules/Head';
import Body from './modules/Body';
import Foot from './modules/Foot';
import helper from './helper';
import { PaginationPageSizeOption } from '../pagination/components/PageSizeChanger';
import { WindowResizeHandler } from '../utils/component/WindowResizeHandler';
import { WindowScrollHandler } from '../utils/component/WindowScrollHandler';

export type TablePaginationType = 'default' | 'lite' | 'mini';

export interface ITablePageInfo {
  current?: number;
  total?: number;
  formatTotal?: (total: number) => React.ReactNode;
  /** @deprecated use total */
  totalItem?: number;
  pageSize?: number;
  /** @deprecated use pageSize */
  limit?: number;
  pageSizeOptions?: PaginationPageSizeOption[];
}

export interface ITableCellPos {
  row: number;
  column: number;
}

export interface ITableColumn {
  title: string;
  name: string;
  width?: number | string;
  isMoney?: boolean;
  needSort?: boolean;
  bodyRender?: (
    data: any,
    pos?: ITableCellPos,
    name?: string
  ) => React.ReactNode;
  textAlign?: 'left' | 'right' | 'center';
}

export interface ITableChangeConfig {
  sortBy: string;
  sortType: 'asc' | 'desc';
  current: number;
  pageSize: number;
}

type TableSortType = 'desc' | 'asc';
export interface ITableProps {
  columns: ITableColumn[];
  datasets: Array<{}>;
  rowKey?: string;
  sortBy?: string;
  sortType?: TableSortType;
  defaultSortType?: TableSortType;
  onChange?: (conf: ITableChangeConfig) => void;
  emptyLabel?: string;
  selection?: {
    selectedRowKeys?: string[];
{'fraction_non_alphanumeric': 0.1412306858227162, 'fraction_numerical': 0.00433721875847113, 'mean_word_length': 4.668202764976958, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '502212', 'n_tokens_mistral': 1106, 'n_tokens_neox': 1107, 'n_words': 322}