<commit_before><div id="alert-container">
% for message, css_class, dismissible in status:
    <div class='alert alert-block alert-${css_class} fade in'>
        % if dismissible:
            <a class='close' data-dismiss='alert' href='#'>&times;</a>
        % endif
    <p>${message}</p></div>
% endfor
</div><commit_msg>Replace alert.mako's dismissable alert with a GrowlBox.<commit_after><script type="application/javascript">
    function capitaliseFirstLetter(string)
        {
            return string.charAt(0).toUpperCase() + string.slice(1);
        }
</script>
<div id="alert-container">
% for message, css_class, dismissible in status:
        % if dismissible:
                <script type="application/javascript">

                    $script('/static/js/growlBox.js', function() {


                        var title = capitaliseFirstLetter('${css_class | trim}')+':';
                        var message = '${message | trim}';
                        var type = '${css_class | trim}';
                        new GrowlBox(title, message, type);
                    });
                </script>
        % else:
            <div class='alert alert-block alert-${css_class} fade in'>
            	<p>${message}</p>
            </div>
        % endif
% endfor
</div>
{'fraction_non_alphanumeric': 0.146875, 'fraction_numerical': 0.0015625, 'mean_word_length': 2.0, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '7433968', 'n_tokens_mistral': 368, 'n_tokens_neox': 349, 'n_words': 80}