<commit_before>/*======================================================
************   Messages   ************
======================================================*/
app.initMessages = function (pageContainer) {
    var page = $(pageContainer);
    var messages = page.find('.messages');
    if (messages.length === 0) return;
    var pageContent = page.find('.page-content');
    if (!messages.hasClass('new-messages-first')) pageContent[0].scrollTop = messages.height() - pageContent.height();
    if (messages.hasClass('messages-auto-layout')) app.updateMessagesLayout(messages);
};
app.addMessage = function (props) {<commit_msg>Scroll top messages after layout<commit_after>/*======================================================
************   Messages   ************
======================================================*/
app.initMessages = function (pageContainer) {
    var page = $(pageContainer);
    var messages = page.find('.messages');
    if (messages.length === 0) return;
    var pageContent = page.find('.page-content');
    if (messages.hasClass('messages-auto-layout')) app.updateMessagesLayout(messages);
    if (!messages.hasClass('new-messages-first')) pageContent[0].scrollTop = pageContent[0].scrollHeight - pageContent[0].offsetHeight;
};
app.addMessage = function (props) {
{'fraction_non_alphanumeric': 0.32924961715160794, 'fraction_numerical': 0.004594180704441042, 'mean_word_length': 5.989304812834225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7615704', 'n_tokens_mistral': 323, 'n_tokens_neox': 310, 'n_words': 62}