translate url() creates an incorrect URL when optional named groups are missing in the URL pattern Description
translate url() creates an incorrect URL when optional named groups are missing in the URL pattern Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). There is a problem when translating urls with absent 'optional' arguments (it's seen in test case of the patch)
The task
There is a problem when translating urls with absent 'optional' arguments (it's seen in test case of the patch)
Part of Lego-X/Lego-RL-SWE-Bench-Verified.