<commit_before><?php
    $data_elements = Hash::extract($row, $field['data_path']);
    $links = array();
    foreach ($data_elements as $data) {
        if (strpos($field['url'], '%s') !== false) {
            $url = sprintf(
                $field['url'],
                $data
            );
        } else {
            $url = $data;
        }
        $links[] = sprintf(
            '<a href="%s" title="%s">%s</a>',
            h($url),
            empty($field['title']) ? h($data) : h($field['title']),
            h($data)
        );
    }
    echo implode('<br />', $links);
?>
<commit_msg>fix: [indextable] Fixed the link field<commit_after><?php
    $data_elements = Hash::extract($row, $field['data_path']);
    $links = array();
    foreach ($data_elements as $data) {
        if (!empty($data['name'])) {
            $field['title'] = $data['name'];
        }
        if (!empty($data['url'])) {
            $data = $data['url'];
        }
        if (isset($field['url']) && strpos($field['url'], '%s') !== false) {
            $url = sprintf(
                $field['url'],
                $data
            );
        } else {
            $url = $data;
        }
        $links[] = sprintf(
            '<a href="%s" title="%s">%s</a>',
            h($url),
            empty($field['title']) ? h($data) : h($field['title']),
            empty($field['title']) ? h($data) : h($field['title'])
        );
    }
    echo implode('<br />', $links);
?>

{'fraction_non_alphanumeric': 0.2249488752556237, 'fraction_numerical': 0.0, 'mean_word_length': 1.7084870848708487, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5323833', 'n_tokens_mistral': 456, 'n_tokens_neox': 460, 'n_words': 84}