<commit_before>// import React from 'react';
import heroes from 'dotaconstants/build/heroes.json';
import {
  transformations,
  abbreviateNumber,
} from '../../utility';
import constants from '../constants';
// import TablePercent from '../Visualizations/Table/Percent';

const decimalToCount = (decimal, total) => (
  total &&
  decimal > 0 &&
  abbreviateNumber(Math.floor(decimal * total))
);

export default ({ strings }) => {
  const heroColumn = {
    displayName: strings.th_hero_id,
    tooltip: strings.tooltip_hero_id,
    field: 'hero_id',<commit_msg>fix columns function<commit_after>// import React from 'react';
import heroes from 'dotaconstants/build/heroes.json';
import {
  transformations,
  abbreviateNumber,
} from '../../utility';
import constants from '../constants';
// import TablePercent from '../Visualizations/Table/Percent';

const decimalToCount = (decimal, total) => (
  total &&
  decimal > 0 &&
  abbreviateNumber(Math.floor(decimal * total))
);

export default (strings) => {
  const heroColumn = {
    displayName: strings.th_hero_id,
    tooltip: strings.tooltip_hero_id,
    field: 'hero_id',
{'fraction_non_alphanumeric': 0.14348981399468555, 'fraction_numerical': 0.001771479185119575, 'mean_word_length': 4.207373271889401, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '908501', 'n_tokens_mistral': 347, 'n_tokens_neox': 344, 'n_words': 85}