instance_id string | correct_response string | pair_type string | episode_a int64 | text_a string | full_output_a string | model_patch_a string | resolved_a bool | num_passed_tests_a int64 | episode_b int64 | text_b string | full_output_b string | model_patch_b string | resolved_b bool | num_passed_tests_b int64 | model_name string | num_episodes_used int64 | success_episode int64 | failure_episode int64 | better_episode int64 | worse_episode int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sphinx-doc__sphinx-10466 | B | resolved | 2 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
Message.locations duplicate unnecessary
### Describe the bug
When running
`make clean; make gettext`
there are times the list of locations is duplicated unnecessarily, example:
```
#: ../../manual... |
Okay, I need to solve the issue where the Message.locations in the sphinx/builders/gettext.py file are being duplicated unnecessarily. The user provided a patch example and the code files, so I'll look into that.
First, the problem is that when generating the .pot file with make gettext, some message locations are du... | --- a/sphinx/builders/gettext.py
+++ b/sphinx/builders/gettext.py
@@ -35,7 +35,7 @@ class Message:
self.text = text
- self.locations = locations
+ self.locations = self.uniqueLocation(locations)
self.uuids = uuids
- def uniqueLocation(...):
+ def uniqueLocation(self, locations: Li... | false | 0 | 1 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
Message.locations duplicate unnecessary
### Describe the bug
When running
`make clean; make gettext`
there are times the list of locations is duplicated unnecessarily, example:
```
#: ../../manual... |
Okay, let's tackle this problem. The user is reporting that when they run 'make clean; make gettext', the resulting .pot file has duplicate locations for some messages. The example given shows entries like #: .../hair.rst:0 repeated multiple times. The user has already done some debugging and found that the issue is i... |
--- a/sphinx/builders/gettext.py
+++ b/sphinx/builders/gettext.py
@@ -35,1 +35,1 @@
- self.locations = locations
+ self.locations = list(dict.fromkeys(locations))
| true | 7 | Qwen3-32B | 16 | 1 | 2 | null | null |
README.md exists but content is empty.
- Downloads last month
- 4