<commit_before># -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from odoo import models


class Http(models.AbstractModel):
    _inherit = 'ir.http'

    def session_info(self):
        res = super(Http, self).session_info()
        res['odoobot_initialized'] = self.env.user.odoobot_state == 'not_initialized'
        return res
<commit_msg>[FIX] mail_bot: fix not_initialized inversion<commit_after># -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from odoo import models


class Http(models.AbstractModel):
    _inherit = 'ir.http'

    def session_info(self):
        res = super(Http, self).session_info()
        res['odoobot_initialized'] = self.env.user.odoobot_state != 'not_initialized'
        return res

{'fraction_non_alphanumeric': 0.1136919315403423, 'fraction_numerical': 0.0024449877750611247, 'mean_word_length': 3.4754098360655736, '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': '4802345', 'n_tokens_mistral': 255, 'n_tokens_neox': 251, 'n_words': 70}