def get(self, name, factory, *factory_args, **factory_kwargs):
        update_thread_local = getattr(factory, 'update_thread_local', True)
        if (not update_thread_local) or (name not in self.__dict__):
            obj = factory(*factory_args, **factory_kwargs)
            if update_thread_local:
                setattr(self, name, obj)
            return obj
        return getattr(self, name)
Returns a specified snippet, if found
dataset/ETHPy150Open django-ddp/django-ddp/dddp/__init__.py/ThreadLocal.get--crossover with--dataset/ETHPy150Open spywhere/Javatar/core/snippets_manager.py/_SnippetsManager.get_snippet