def resolve_context(self, context):
        if isinstance(context, Context):
            return context
        else:
            return Context(context)
Given a RegexLexer token dictionary 'tokens', replace all patterns that
dataset/ETHPy150Open adieu/django-nonrel/django/template/response.py/SimpleTemplateResponse.resolve_context--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/ui/qt4/code_editor/pygments_highlighter.py/replace_pattern