<commit_before>import React from 'react';
import { defaultSort, useOriginalValueSort } from './utility';
import { Link } from 'react-router';

export default [{
  displayName: 'ID',
  field: 'match_id',
  width: 2,
  sortFn: defaultSort,
  displayFn: ({ field }) => <Link to={`/matches/${field.display}`}>{field.display}</Link>,
}, {
  displayName: 'Hero',
  field: 'hero_id',
  width: 1.5,
  sortFn: defaultSort,
  displayFn: ({ field }) => <img src={field.display} style={{ height: 30 }} role="presentation" />,
}, {
  displayName: 'W/L',
  field: 'radiant_win',
  width: 1.5,
  sortFn: defaultSort,
}, {
  displayName: 'Mode',
  field: 'game_mode',
  width: 2.5,
  sortFn: defaultSort,
}, {
  displayName: 'Date',
  field: 'start_time',
  width: 2,
  sortFn: useOriginalValueSort,
}, {
  displayName: 'Duration',
  field: 'duration',
  width: 2,
  sortFn: defaultSort,
}, {<commit_msg>Mike | update to fix bug with table sorting on duration<commit_after>import React from 'react';
import { defaultSort, useOriginalValueSort } from './utility';
import { Link } from 'react-router';

export default [{
  displayName: 'ID',
  field: 'match_id',
  width: 2,
  sortFn: defaultSort,
  displayFn: ({ field }) => <Link to={`/matches/${field.display}`}>{field.display}</Link>,
}, {
  displayName: 'Hero',
  field: 'hero_id',
  width: 1.5,
  sortFn: defaultSort,
  displayFn: ({ field }) => <img src={field.display} style={{ height: 30 }} role="presentation" />,
}, {
  displayName: 'W/L',
  field: 'radiant_win',
  width: 1.5,
  sortFn: defaultSort,
}, {
  displayName: 'Mode',
  field: 'game_mode',
  width: 2.5,
  sortFn: defaultSort,
}, {
  displayName: 'Date',
  field: 'start_time',
  width: 2,
  sortFn: useOriginalValueSort,
}, {
  displayName: 'Duration',
  field: 'duration',
  width: 2,
  sortFn: useOriginalValueSort,
}, {
{'fraction_non_alphanumeric': 0.1833607006020799, 'fraction_numerical': 0.0120415982484948, 'mean_word_length': 4.329446064139941, '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': '7056886', 'n_tokens_mistral': 669, 'n_tokens_neox': 654, 'n_words': 159}