<commit_before>import React                     from 'react';
import ContractTypeCell          from '../Components/contract_type_cell.jsx';
import IndicativeCell            from '../Components/indicative_cell.jsx';
import Money                     from '../../../App/Components/Elements/money.jsx';
import { localize }              from '../../../../_common/localize';

/* eslint-disable react/display-name, react/prop-types */
export const getTableColumnsTemplate = (currency) => [
    {
        title            : localize('Reference No.'),
        col_index        : 'reference',
        renderCellContent: ({ cell_value, is_footer }) => (
            is_footer ? localize('Total') : cell_value
        ),
    },
    {
        title            : localize('Contract Type'),
        col_index        : 'type',
        renderCellContent: ({ cell_value, is_footer }) => {
            if (is_footer) return '';
            return <ContractTypeCell type={cell_value} />;
        },
    },
    {
        title    : localize('Contract Details'),
        col_index: 'details',
    },
    {
        title    : localize('Remaining Time (GMT)'),
        col_index: 'remaining_time',
    },
    {
        title            : localize('Potential Payout'),
        col_index        : 'payout',
        renderCellContent: ({ cell_value }) => (
            <Money amount={cell_value} currency={currency} />
        ),
    },
    {
        title            : localize('Purchase'),
        col_index        : 'purchase',
        renderCellContent: ({ cell_value }) => (
            <Money amount={cell_value} currency={currency} />
        ),
    },
    {
        title            : localize('Indicative'),
        col_index        : 'indicative',
        renderCellContent: ({ cell_value, row_obj }) => (
            <IndicativeCell amount={+cell_value} currency={currency} status={row_obj.status} />
        ),
    },
];
/* eslint-enable react/display-name, react/prop-types */<commit_msg>update remaining time column title<commit_after>import React                     from 'react';
import ContractTypeCell          from '../Components/contract_type_cell.jsx';
import IndicativeCell            from '../Components/indicative_cell.jsx';
import Money                     from '../../../App/Components/Elements/money.jsx';
import { localize }              from '../../../../_common/localize';

/* eslint-disable react/display-name, react/prop-types */
export const getTableColumnsTemplate = (currency) => [
    {
        title            : localize('Reference No.'),
        col_index        : 'reference',
        renderCellContent: ({ cell_value, is_footer }) => (
            is_footer ? localize('Total') : cell_value
        ),
    },
    {
        title            : localize('Contract Type'),
        col_index        : 'type',
        renderCellContent: ({ cell_value, is_footer }) => {
            if (is_footer) return '';
            return <ContractTypeCell type={cell_value} />;
        },
    },
    {
        title    : localize('Contract Details'),
        col_index: 'details',
    },
    {
        title    : localize('Remaining Time'),
        col_index: 'remaining_time',
    },
    {
        title            : localize('Potential Payout'),
        col_index        : 'payout',
        renderCellContent: ({ cell_value }) => (
            <Money amount={cell_value} currency={currency} />
        ),
    },
    {
        title            : localize('Purchase'),
        col_index        : 'purchase',
        renderCellContent: ({ cell_value }) => (
            <Money amount={cell_value} currency={currency} />
        ),
    },
    {
        title            : localize('Indicative'),
        col_index        : 'indicative',
        renderCellContent: ({ cell_value, row_obj }) => (
            <IndicativeCell amount={+cell_value} currency={currency} status={row_obj.status} />
        ),
    },
];
/* eslint-enable react/display-name, react/prop-types */
{'fraction_non_alphanumeric': 0.14130709058793844, 'fraction_numerical': 0.0, 'mean_word_length': 1.7876230661040788, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 23, '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': '4046455', 'n_tokens_mistral': 1077, 'n_tokens_neox': 1068, 'n_words': 195}