<commit_before><?php
    $links = [];
    foreach ($event['warnings'] as $id => $name) {
        $links[] = sprintf(
            '<a href="%s/warninglists/view/%s">%s</a>',
            $baseurl,
            h($id),
            h($name)
        );
    }
    echo sprintf(
        '<div class="warning_container">%s%s</div>',
        sprintf(
            '<h4 class="red">%s</h4>',
            sprintf(
                '%s<a href="#attributeList" title="%s" onclick="toggleBoolFilter(\'%s/events/view/%s\');">%s</a>',
                __('Warning: Potential false positives'),
                __('Show just attributes that have warnings'),
                $baseurl,
                h($event['Event']['id']),
                __(' (show)')
            )
        ),
        implode('<br />', $links)
    );
<commit_msg>fix: [UI] Show warnings<commit_after><?php
$links = [];
foreach ($event['warnings'] as $id => $name) {
    $links[] = sprintf(
        '<a href="%s/warninglists/view/%s">%s</a>',
        $baseurl,
        (int)$id,
        h($name)
    );
}
echo sprintf(
    '<div class="warning_container">%s%s</div>',
    sprintf(
        '<h4 class="red">%s</h4>',
        sprintf(
            '%s <a href="#attributeList" title="%s" onclick="toggleBoolFilter(\'%s/events/view/%s\', \'warning\');">(%s)</a>',
            __('Warning: Potential false positives'),
            __('Show just attributes that have warnings'),
            $baseurl,
            (int)$event['Event']['id'],
            __('show')
        )
    ),
    implode('<br>', $links)
);

{'fraction_non_alphanumeric': 0.21286173633440514, 'fraction_numerical': 0.002572347266881029, 'mean_word_length': 1.8975791433891993, 'pattern_counts': {'":': 0, '<': 23, '<?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': '680572', 'n_tokens_mistral': 487, 'n_tokens_neox': 502, 'n_words': 87}