def parse(self, text, show_toc=None, tags=None, attributes=None,
              styles=None, locale=settings.WIKI_DEFAULT_LANGUAGE,
              nofollow=False, youtube_embeds=True, **kwargs):
        self.locale = locale

        if tags:
            kwargs['tags'] = tags

        @email_utils.safe_translation
        def _parse(locale):
            return super(WikiParser, self).parse(
                text,
                show_toc=show_toc,
                tags=tags or ALLOWED_TAGS,
                attributes=attributes or ALLOWED_ATTRIBUTES,
                styles=styles or ALLOWED_STYLES,
                nofollow=nofollow,
                strip_comments=True,
                **kwargs)

        html = _parse(locale)

        if youtube_embeds:
            html = self.add_youtube_embeds(html)

        return html
A L{ILogObserver} takes precedence over a L{LegacyILogObserver}
dataset/ETHPy150Open mozilla/kitsune/kitsune/sumo/parser.py/WikiParser.parse--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/test/test_twistd.py/AppLoggerTests.test_loggerComponentBeatsLegacyLoggerComponent