<commit_before>import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'

import { INVESTMENT_SUMMARY_DATA_RANGES__LOADED } from '../../actions'
import Task from '../Task/index.jsx'
import DataSummaryPicker from '../DataSummaryPicker'
import {
  ID,
  TASK_GET_INVESTMENT_SUMMARY_DATA_RANGES,
  state2props,
} from './state'

const InvestmentProjectSummary = ({
  adviser,
  investmentSummaryDataRanges = [],
}) => (
  <Task.Status
    name={TASK_GET_INVESTMENT_SUMMARY_DATA_RANGES}
    id={ID}
    progressMessage="Loading your investment projects"
    startOnRender={{
      payload: { adviser },
      onSuccessDispatch: INVESTMENT_SUMMARY_DATA_RANGES__LOADED,
    }}
  >
    {() => (
      <DataSummaryPicker
        title="My project summary"
        subject="Project"
        description="Projects in the current financial year"
        headers={['Stage', 'Amount']}
        dataRanges={investmentSummaryDataRanges}
      />
    )}
  </Task.Status>
)

InvestmentProjectSummary.propTypes = {
  adviser: PropTypes.shape({
    id: PropTypes.string.isRequired,
  }).isRequired,
  investmentSummaryDataRanges: PropTypes.arrayOf(
    PropTypes.shape({
      name: PropTypes.string.isRequired,
      label: PropTypes.string.isRequired,
      range: PropTypes.arrayOf(
        PropTypes.shape({
          id: PropTypes.string.isRequired,
          label: PropTypes.string.isRequired,<commit_msg>Remove the title and rename one of the DataTable headers<commit_after>import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'

import { INVESTMENT_SUMMARY_DATA_RANGES__LOADED } from '../../actions'
import Task from '../Task/index.jsx'
import DataSummaryPicker from '../DataSummaryPicker'
import {
  ID,
  TASK_GET_INVESTMENT_SUMMARY_DATA_RANGES,
  state2props,
} from './state'

const InvestmentProjectSummary = ({
  adviser,
  investmentSummaryDataRanges = [],
}) => (
  <Task.Status
    name={TASK_GET_INVESTMENT_SUMMARY_DATA_RANGES}
    id={ID}
    progressMessage="Loading your investment projects"
    startOnRender={{
      payload: { adviser },
      onSuccessDispatch: INVESTMENT_SUMMARY_DATA_RANGES__LOADED,
    }}
  >
    {() => (
      <DataSummaryPicker
        subject="Project"
        description="Projects in the current financial year"
        headers={['Stage', 'Projects']}
        dataRanges={investmentSummaryDataRanges}
      />
    )}
  </Task.Status>
)

InvestmentProjectSummary.propTypes = {
  adviser: PropTypes.shape({
    id: PropTypes.string.isRequired,
  }).isRequired,
  investmentSummaryDataRanges: PropTypes.arrayOf(
    PropTypes.shape({
      name: PropTypes.string.isRequired,
      label: PropTypes.string.isRequired,
      range: PropTypes.arrayOf(
        PropTypes.shape({
          id: PropTypes.string.isRequired,
          label: PropTypes.string.isRequired,
{'fraction_non_alphanumeric': 0.1108408617095205, 'fraction_numerical': 0.0006949270326615705, 'mean_word_length': 3.577106518282989, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '1788298', 'n_tokens_mistral': 891, 'n_tokens_neox': 893, 'n_words': 167}