<commit_before>import React, { Component } from 'react';
import { Table } from 'antd';
import PropTypes from 'prop-types'




const columns = [
  {
    title: 'Group',
    dataIndex: 'name',
    key: 'name'
  },
  {
    title: '项目',
    dataIndex: 'project',
    key: 'project'
  },
  {
    title: '分组',
    dataIndex: 'interface',
    key: 'interface'
  },
  {
    title: 'mock数据',
    dataIndex: 'mock',
    key: 'mock'
  }
];

class SchemaTable extends Component {

  static propTypes = {
    dataSource: PropTypes.array
  }

  constructor(props) {
    super(props);
    
  }

  render() {    
    const {dataSource} = this.props;
    
    // dataSource = _.isArray(dataSource) ? dataSource : []
    return ( 
      <div className="m-row-table">
        <h3 className="statis-title">分组数据详情</h3>
        <Table className="statis-table" pagination={false} dataSource={dataSource} columns={columns} />
      </div>
    ) 
    
    ;
  }
}
export default SchemaTable;<commit_msg>fix: statisTable<commit_after>import React from 'react';
import { Table } from 'antd';
import PropTypes from 'prop-types'

const columns = [
  {
    title: 'Group',
    dataIndex: 'name',
    key: 'name'
  },
  {
    title: '项目',
    dataIndex: 'project',
    key: 'project'
  },
  {
    title: '分组',
    dataIndex: 'interface',
    key: 'interface'
  },
  {
    title: 'mock数据',
    dataIndex: 'mock',
    key: 'mock'
  }
];

const StatisTable = (props) => {
  const {dataSource} = props;
    return ( 
      <div className="m-row-table">
        <h3 className="statis-title">分组数据详情</h3>
        <Table className="statis-table" pagination={false} dataSource={dataSource} columns={columns} />
      </div>
    ) 
}

StatisTable.propTypes = {
  dataSource: PropTypes.array
}


export default StatisTable;
{'fraction_non_alphanumeric': 0.15553060078607525, 'fraction_numerical': 0.0022459292532285235, 'mean_word_length': 2.6818181818181817, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 14, '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': '5999496', 'n_tokens_mistral': 625, 'n_tokens_neox': 622, 'n_words': 131}