HF RL Explorer

Using Flask's g object and request context utilities, implement a per-request key-value store in task…

Using Flask's g object and request context utilities, implement a per-request key-value store in task…: a task in repo2rlenv-code-instruct (Harbor dataset). Create a function store in context(key, value) that stores a value on Flask's g object under a namespaced attribute, and a function retrieve…

The task

Create a function `store_in_context(key, value)` that stores a value on Flask's `g` object under a namespaced attribute, and a function `retrieve_from_context(key)` that retrieves it. Both must operate within an active Flask request context.

Part of FineEnvs/repo2rlenv-code-instruct.