HF RL Explorer

Implement a CookieSnapshot class in task module.py that wraps a requests.cookies.RequestsCookieJar and…

Implement a CookieSnapshot class in task module.py that wraps a requests.cookies.RequestsCookieJar and…: a task in repo2rlenv-code-instruct (Harbor dataset). CookieSnapshot must: 1. Accept an optional dict of initial cookies at construction. 2. Expose a merge(other dict) method that adds cookies…

The task

`CookieSnapshot` must: 1. Accept an optional dict of initial cookies at construction. 2. Expose a `merge(other_dict)` method that adds cookies from a plain dict into the jar without overwriting existing ones. 3. Expose a `to_sorted_pairs()` method returning a list of `(name, value)` tuples sorted alphabetically by…

Part of FineEnvs/repo2rlenv-code-instruct.