<commit_before>import { ColumnProps } from "antd/lib/table";
import { List } from './List';

export const columns: ColumnProps<List>[] = [
    {
        title: 'Name',
        dataIndex: 'name',
    }
];<commit_msg>use strongly-typed column dataIndex bindings<commit_after>import { ColumnProps } from "antd/lib/table";
import { List } from './List';

const nameof = <T>(name: Extract<keyof T, string>): string => name;

export const columns: ColumnProps<List>[] = [
    {
        title: 'Name',
        dataIndex: nameof<List>("name")
    },
    {
        title: 'Description',
        dataIndex: nameof<List>("description")
    },
    {
        title: 'Languages',
        dataIndex: nameof<List>("languageIds")
    },
    {
        title: 'Tags',
        dataIndex: nameof<List>("tagIds")
    }
];
{'fraction_non_alphanumeric': 0.1639549436795995, 'fraction_numerical': 0.0, 'mean_word_length': 2.755868544600939, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '3137603', 'n_tokens_mistral': 253, 'n_tokens_neox': 254, 'n_words': 56}