Dataset Viewer
Auto-converted to Parquet Duplicate
repo_name
stringclasses
5 values
task_num
int64
1.48k
57.7k
gold_patch
stringlengths
717
987k
commit
stringlengths
40
40
edit_prompt
stringlengths
37
322
prompt
stringlengths
442
21.9k
edit_patch
stringlengths
415
6.38k
test_patch
stringlengths
573
27.4k
autocomplete_prompts
stringlengths
210
1.61k
autocomplete_patch
stringlengths
415
5.55k
wagtail
12,562
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index af11687f0936..d42ae5cc9e7a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -15,6 +15,7 @@ Changelog * Fix: Fix animation overflow transition when navigating through subpages in the sidebar page explorer (manu) * Fix: Ensure form builder supports custom admin form v...
210f35f7ec42d8ead1508cde52f421631f8621b8
Normalize StreamField.get_default using the stream_block.
The following is the text of a github issue and related comments for this repository: Complex StreamField default values fail on snippet creation form ### Issue Summary Passing a list of (block_type, value) tuples as the default value of a StreamField on a snippet model causes the snippet creation view to fail with `...
diff --git a/wagtail/fields.py b/wagtail/fields.py index 79eae7a66eb8..cfacc3c2582b 100644 --- a/wagtail/fields.py +++ b/wagtail/fields.py @@ -239,6 +239,9 @@ def formfield(self, **kwargs): defaults.update(kwargs) return super().formfield(**defaults) + def get_default(self): + return self....
diff --git a/wagtail/tests/test_streamfield.py b/wagtail/tests/test_streamfield.py index 461986ba565c..36173ac299a9 100644 --- a/wagtail/tests/test_streamfield.py +++ b/wagtail/tests/test_streamfield.py @@ -297,6 +297,18 @@ def test_default_value(self): self.assertEqual(self.page.body[1].value[1].block_type, "...
diff --git a/wagtail/fields.py b/wagtail/fields.py index 79eae7a66eb8..cfacc3c2582b 100644 --- a/wagtail/fields.py +++ b/wagtail/fields.py @@ -239,6 +239,9 @@ def formfield(self, **kwargs): def get_default(
diff --git a/wagtail/fields.py b/wagtail/fields.py index 79eae7a66eb8..cfacc3c2582b 100644 --- a/wagtail/fields.py +++ b/wagtail/fields.py @@ -239,6 +239,9 @@ def formfield(self, **kwargs): defaults.update(kwargs) return super().formfield(**defaults) + def get_default(self): + return self....
wagtail
12,750
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4631b5a8daa..fa0abb8ce5e 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -41,6 +41,7 @@ Changelog * Fix: Return never-cache HTTP headers when serving pages and documents with view restrictions (Krystian Magdziarz, Dawid Bugajewski) * Fix: Implement `get_block_by_co...
a2407c002770ab7f50997d37571de3cf43f0d455
Create PanelPlaceholder classes that can temporarily stand in for panel types from wagtail.admin.panels, with CommentPanelPlaceholder being a special case that only constructs if comments are enabled.
The following is the text of a github issue and related comments for this repository: Omitting import of `wagtail.admin.panels` causes page title field to be absent ### Issue Summary As of #12557 it is possible to define a page model's `content_panels` as a list of strings, without referring to any panel classes such...
diff --git a/wagtail/models/panels.py b/wagtail/models/panels.py new file mode 100644 index 00000000000..8e3c6066328 --- /dev/null +++ b/wagtail/models/panels.py @@ -0,0 +1,37 @@ +# Placeholder for panel types defined in wagtail.admin.panels. +# These are needed because we wish to define properties such as `content_pan...
diff --git a/wagtail/admin/tests/pages/test_create_page.py b/wagtail/admin/tests/pages/test_create_page.py index 733ac26c263..6bf874e868c 100644 --- a/wagtail/admin/tests/pages/test_create_page.py +++ b/wagtail/admin/tests/pages/test_create_page.py @@ -427,6 +427,26 @@ def test_cannot_create_page_with_wrong_subpage_typ...
null
null
wagtail
12,670
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a6de5e45cc07..7313103766e6 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -14,6 +14,7 @@ Changelog * Allow plain strings in panel definitions as shorthand for `FieldPanel` / `InlinePanel` (Matt Westcott) * Only allow selection of valid new parents within the copy ...
32417f9adca1d507bb4ca4880ee4d8879062de04
Add a third `default_params` parameter to the function that allows customizing URL parameters, with a default value of `{"d": "mp"}`, and rewrite the function to properly handle URL parsing and parameter merging.
The following is the text of a github issue and related comments for this repository: Enhance capabilities for `WAGTAIL_GRAVATAR_PROVIDER_URL` URL to support merging of URL params ### Is your proposal related to a problem? Currently, there is no simple way to [`WAGTAIL_GRAVATAR_PROVIDER_URL`](https://docs.wagtail.org...
diff --git a/wagtail/users/utils.py b/wagtail/users/utils.py index b3eee7970d07..9c4b59bc83f5 100644 --- a/wagtail/users/utils.py +++ b/wagtail/users/utils.py @@ -1,3 +1,5 @@ +from urllib.parse import parse_qs, urlparse, urlunparse + from django.conf import settings from django.utils.http import urlencode from djang...
diff --git a/wagtail/admin/tests/ui/test_sidebar.py b/wagtail/admin/tests/ui/test_sidebar.py index f2e160144651..823064359c80 100644 --- a/wagtail/admin/tests/ui/test_sidebar.py +++ b/wagtail/admin/tests/ui/test_sidebar.py @@ -283,7 +283,7 @@ def test_adapt(self): ], { ...
null
null
wagtail
12,622
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 464edbb79ec8..800be03010b3 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -22,6 +22,7 @@ Changelog * Fix: Prevent out-of-order migrations from skipping creation of image/document choose permissions (Matt Westcott) * Fix: Use correct connections on multi-database s...
7566fb84e0709b9dd1139161c244ea5c49d3b4c0
Store the parent page in the panel instance and add it to the context if available.
The following is the text of a github issue and related comments for this repository: New page shows incorrect privacy info <!-- Found a bug? Please fill out the sections below. 👍 --> ### Issue Summary When creating a new page that is a child of a private page the info section shows "Visible to all" but it should be...
diff --git a/wagtail/admin/ui/side_panels.py b/wagtail/admin/ui/side_panels.py index 2aa6167652e7..ddd064cd6a76 100644 --- a/wagtail/admin/ui/side_panels.py +++ b/wagtail/admin/ui/side_panels.py @@ -241,6 +241,7 @@ def get_context_data(self, parent_context): class PageStatusSidePanel(StatusSidePanel): def __ini...
diff --git a/wagtail/admin/tests/pages/test_create_page.py b/wagtail/admin/tests/pages/test_create_page.py index 6f5b1d5f57ea..6ad7f6c6df8d 100644 --- a/wagtail/admin/tests/pages/test_create_page.py +++ b/wagtail/admin/tests/pages/test_create_page.py @@ -9,7 +9,13 @@ from django.utils import timezone from django.util...
null
null
wagtail
12,671
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 98757878477c..04b31ec25ef2 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -12,6 +12,7 @@ Changelog * Limit tags autocompletion to 10 items and add delay to avoid performance issues with large number of matching tags (Aayushman Singh) * Add the ability to restrict ...
547e4d3731a6492eb4b9d088ee268720224713d1
Add target models to the page chooser to only allow selection of valid parent page types based on the page's allowed parent models.
The following is the text of a github issue and related comments for this repository: Improve page chooser (widgets.AdminChooser) when copying a page ### Is your proposal related to a problem? When a user is in the form to copy a page (`CopyForm`), some pages appear as available destinations when in fact it is not a ...
diff --git a/wagtail/admin/forms/pages.py b/wagtail/admin/forms/pages.py index 47e5f18cd9a6..a7a930ac7871 100644 --- a/wagtail/admin/forms/pages.py +++ b/wagtail/admin/forms/pages.py @@ -30,7 +30,11 @@ def __init__(self, *args, **kwargs): self.fields["new_parent_page"] = forms.ModelChoiceField( in...
diff --git a/wagtail/admin/tests/test_page_chooser.py b/wagtail/admin/tests/test_page_chooser.py index 5ec5cfbdba00..eaa52d5b5199 100644 --- a/wagtail/admin/tests/test_page_chooser.py +++ b/wagtail/admin/tests/test_page_chooser.py @@ -249,6 +249,35 @@ def test_with_multiple_page_types(self): self.assertIn(even...
diff --git a/wagtail/admin/forms/pages.py b/wagtail/admin/forms/pages.py index 47e5f18cd9a6..a7a930ac7871 100644 --- a/wagtail/admin/forms/pages.py +++ b/wagtail/admin/forms/pages.py @@ -30,7 +30,11 @@ def __init__(self, *args, **kwargs): widget=
diff --git a/wagtail/admin/forms/pages.py b/wagtail/admin/forms/pages.py index 47e5f18cd9a6..a7a930ac7871 100644 --- a/wagtail/admin/forms/pages.py +++ b/wagtail/admin/forms/pages.py @@ -30,7 +30,11 @@ def __init__(self, *args, **kwargs): self.fields["new_parent_page"] = forms.ModelChoiceField( in...
wagtail
12,569
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d73e9511bea8..6c4de8502305 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -52,6 +52,8 @@ Changelog * Maintenance: Various performance optimizations to page publishing (Jake Howard) * Maintenance: Remove unnecessary DOM canvas.toBlob polyfill (LB (Ben) Johnston) ...
b9575f3498bba69fa2a8f53be110ec11ea3746f0
Add drag and drop event handling to the document upload zone, showing the "hovered" class during dragover with a 10ms delay, and prevent default browser drag/drop behavior.
The following is the text of a github issue and related comments for this repository: 🎛️ Create a new `ZoneController` to remove reliance on jQuery for toggling classes based on DOM events ### Is your proposal related to a problem? Currently we use jQuery for common behaviour such as 'add this class when hovered' or...
diff --git a/wagtail/documents/templates/wagtaildocs/multiple/add.html b/wagtail/documents/templates/wagtaildocs/multiple/add.html index 2b2becfd51be..dcab9aa31d5c 100644 --- a/wagtail/documents/templates/wagtaildocs/multiple/add.html +++ b/wagtail/documents/templates/wagtaildocs/multiple/add.html @@ -10,7 +10,13 @@ {...
diff --git a/client/src/controllers/ZoneController.test.js b/client/src/controllers/ZoneController.test.js new file mode 100644 index 000000000000..238798c0af8a --- /dev/null +++ b/client/src/controllers/ZoneController.test.js @@ -0,0 +1,169 @@ +import { Application } from '@hotwired/stimulus'; +import { ZoneController...
null
null
wagtail
12,643
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 602d849422ba..0eef17a620a1 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -29,6 +29,7 @@ Changelog * Fix: Ensure the accessible labels and tooltips reflect the correct private/public status on the live link button within pages after changing the privacy (Ayaan Qadri...
c2676af857a41440e05e03038d85a540dcca3ce2
Enable/disable the submit button based on checkbox selections and attach change event handlers to checkboxes in search results.
The following is the text of a github issue and related comments for this repository: Uncaught TypeError in page-editor.js - MultipleChooserPanel <!-- Found a bug? Please fill out the sections below. 👍 --> ### Issue Summary I have selection of authors for a book in my site ![Screenshot 2024-05-14 at 15 51 11](htt...
diff --git a/client/src/entrypoints/admin/page-chooser-modal.js b/client/src/entrypoints/admin/page-chooser-modal.js index 381bcc3074d2..a7ee3539f9a7 100644 --- a/client/src/entrypoints/admin/page-chooser-modal.js +++ b/client/src/entrypoints/admin/page-chooser-modal.js @@ -69,6 +69,16 @@ const PAGE_CHOOSER_MODAL_ONLOA...
diff --git a/wagtail/admin/tests/test_page_chooser.py b/wagtail/admin/tests/test_page_chooser.py index d054f8b22723..5ec5cfbdba00 100644 --- a/wagtail/admin/tests/test_page_chooser.py +++ b/wagtail/admin/tests/test_page_chooser.py @@ -65,12 +65,20 @@ def test_multiple_chooser_view(self): checkbox_value = str...
diff --git a/client/src/entrypoints/admin/page-chooser-modal.js b/client/src/entrypoints/admin/page-chooser-modal.js index 381bcc3074d2..a7ee3539f9a7 100644 --- a/client/src/entrypoints/admin/page-chooser-modal.js +++ b/client/src/entrypoints/admin/page-chooser-modal.js @@ -69,6 +69,16 @@ const PAGE_CHOOSER_MODAL_ONLOA...
diff --git a/client/src/entrypoints/admin/page-chooser-modal.js b/client/src/entrypoints/admin/page-chooser-modal.js index 381bcc3074d2..a7ee3539f9a7 100644 --- a/client/src/entrypoints/admin/page-chooser-modal.js +++ b/client/src/entrypoints/admin/page-chooser-modal.js @@ -69,6 +69,16 @@ const PAGE_CHOOSER_MODAL_ONLOA...
wagtail
12,619
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index cfeea825126a..4411028ac2b8 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -60,6 +60,7 @@ Changelog * Maintenance: Migrate jQuery class toggling & drag/drop event handling within the multiple upload views to the Stimulus ZoneController usage (Ayaan Qadri) * Mainten...
9cacfe0dc2b30053f4bd028236316e7248a1074c
Replace arrow functions with regular functions to maintain the correct `this` binding in form submissions.
The following is the text of a github issue and related comments for this repository: Page choosers no longer working on `main` <!-- Found a bug? Please fill out the sections below. 👍 --> ### Issue Summary The page chooser modal will not respond to any clicks when choosing a page, and an error is thrown in the cons...
diff --git a/client/src/entrypoints/admin/modal-workflow.js b/client/src/entrypoints/admin/modal-workflow.js index 2955f763eee3..54737ed19369 100644 --- a/client/src/entrypoints/admin/modal-workflow.js +++ b/client/src/entrypoints/admin/modal-workflow.js @@ -91,15 +91,15 @@ function ModalWorkflow(opts) { }; sel...
diff --git a/client/src/entrypoints/admin/__snapshots__/modal-workflow.test.js.snap b/client/src/entrypoints/admin/__snapshots__/modal-workflow.test.js.snap index a5f1675e428f..42497f9a15d6 100644 --- a/client/src/entrypoints/admin/__snapshots__/modal-workflow.test.js.snap +++ b/client/src/entrypoints/admin/__snapshots...
null
null
wagtail
12,666
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 0eef17a620a1..98757878477c 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -87,6 +87,7 @@ Changelog * Maintenance: Use the Stimulus `ZoneController` (`w-zone`) to remove ad-hoc jQuery for the privacy switch when toggling visibility of private/public elements (Ayaan Q...
23275a4cef4d36bb311abe315eb9ddfc43868e8b
Update default profile image to "mp".
The following is the text of a github issue and related comments for this repository: Default URL param value for Gravatar URL have been deprecated (`mm` -> `mp`) ### Issue Summary We currently pass in `mm` to the `d` (default) param, this is used to determine what avatar will show if there's no matching avatar. Howe...
diff --git a/wagtail/users/utils.py b/wagtail/users/utils.py index ef3f0e6bb9c1..b3eee7970d07 100644 --- a/wagtail/users/utils.py +++ b/wagtail/users/utils.py @@ -26,7 +26,7 @@ def user_can_delete_user(current_user, user_to_delete): def get_gravatar_url(email, size=50): - default = "mm" + default = "mp" ...
diff --git a/wagtail/admin/tests/ui/test_sidebar.py b/wagtail/admin/tests/ui/test_sidebar.py index e5c21bc7f049..f2e160144651 100644 --- a/wagtail/admin/tests/ui/test_sidebar.py +++ b/wagtail/admin/tests/ui/test_sidebar.py @@ -283,7 +283,7 @@ def test_adapt(self): ], { ...
null
null
wagtail
12,605
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4a5ad0704f70..20898fa5ff89 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -23,6 +23,7 @@ Changelog * Fix: Use correct connections on multi-database setups in database search backends (Jake Howard) * Fix: Ensure Cloudfront cache invalidation is called with a list, ...
ffe294bc7bb3fe49674a4b6eb87fe223b3348e01
Cache the unquoted primary key to prevent double unquoting, and update both `get_object` methods to properly use the cached value.
The following is the text of a github issue and related comments for this repository: Snippets EditView unexpected double unquote ### Issue Summary In case of EditView code snippets (I think this happens with all views as well), the get_object() method in wagtail/wagtail/admin/views/generic/models.py/EditView is call...
diff --git a/wagtail/admin/views/generic/models.py b/wagtail/admin/views/generic/models.py index 636f7d13ef44..eac1265bb50a 100644 --- a/wagtail/admin/views/generic/models.py +++ b/wagtail/admin/views/generic/models.py @@ -677,6 +677,16 @@ def setup(self, request, *args, **kwargs): super().setup(request, *args...
diff --git a/wagtail/admin/tests/test_views_generic.py b/wagtail/admin/tests/test_views_generic.py index 5f3a425ac82a..9dc605f17153 100644 --- a/wagtail/admin/tests/test_views_generic.py +++ b/wagtail/admin/tests/test_views_generic.py @@ -15,7 +15,7 @@ def test_non_integer_primary_key(self): response = self.ge...
diff --git a/wagtail/admin/views/generic/models.py b/wagtail/admin/views/generic/models.py index 636f7d13ef44..eac1265bb50a 100644 --- a/wagtail/admin/views/generic/models.py +++ b/wagtail/admin/views/generic/models.py @@ -677,6 +677,16 @@ def setup(self, request, *args, **kwargs): @cached_property def object_p...
diff --git a/wagtail/admin/views/generic/models.py b/wagtail/admin/views/generic/models.py index 636f7d13ef44..eac1265bb50a 100644 --- a/wagtail/admin/views/generic/models.py +++ b/wagtail/admin/views/generic/models.py @@ -677,6 +677,16 @@ def setup(self, request, *args, **kwargs): super().setup(request, *args...
wagtail
12,741
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 5cdc27de7fb..0f943ca6ab2 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -46,6 +46,7 @@ Changelog * Fix: Fix crash when loading the dashboard with only the "unlock" or "bulk delete" page permissions (Unyime Emmanuel Udoh, Sage Abdullah) * Fix: Improve deprecation w...
0bba5da337283ff594bf4701072fc2f02177e40b
Add a filter field for the "created_at" property to enable filtering documents by creation date.
The following is the text of a github issue and related comments for this repository: Ordering documents in search causes error <!-- Found a bug? Please fill out the sections below. 👍 --> ### Issue Summary Issue was discovered by editors when searching through uploaded documents with similar names. Attempt to order...
diff --git a/wagtail/documents/models.py b/wagtail/documents/models.py index e4ed73ae4b2..8495650374d 100644 --- a/wagtail/documents/models.py +++ b/wagtail/documents/models.py @@ -57,6 +57,7 @@ class AbstractDocument(CollectionMember, index.Indexed, models.Model): ], ), index.FilterField...
diff --git a/wagtail/documents/tests/test_admin_views.py b/wagtail/documents/tests/test_admin_views.py index 4711ae8ccad..1554bfd5061 100644 --- a/wagtail/documents/tests/test_admin_views.py +++ b/wagtail/documents/tests/test_admin_views.py @@ -30,6 +30,7 @@ ) from wagtail.test.utils import WagtailTestUtils from wag...
diff --git a/wagtail/documents/models.py b/wagtail/documents/models.py index e4ed73ae4b2..8495650374d 100644 --- a/wagtail/documents/models.py +++ b/wagtail/documents/models.py @@ -57,6 +57,7 @@ class AbstractDocument(CollectionMember, index.Indexed, models.Model): i
diff --git a/wagtail/documents/models.py b/wagtail/documents/models.py index e4ed73ae4b2..8495650374d 100644 --- a/wagtail/documents/models.py +++ b/wagtail/documents/models.py @@ -57,6 +57,7 @@ class AbstractDocument(CollectionMember, index.Indexed, models.Model): ], ), index.FilterField...
junit5
4,201
diff --git a/junit-jupiter-params/src/main/java/org/junit/jupiter/params/ParameterizedTestExtension.java b/junit-jupiter-params/src/main/java/org/junit/jupiter/params/ParameterizedTestExtension.java index 8aed7644f2d8..023dd6fea6d2 100644 --- a/junit-jupiter-params/src/main/java/org/junit/jupiter/params/ParameterizedTe...
16c6f72c1c728c015e35cb739ea75884f19f990c
Check that there is at least one arguments source configured, and fail with the message "Configuration error: You must configure at least one arguments source for this @ParameterizedTest" if none are found.
The following is the text of a github issue and related comments for this repository: Fail `@ParameterizedTest` if there is no registered `ArgumentProvider` Not declaring any `@...Source` annotation on a `@ParameterizedTest` method is most likely a user error and should be surfaced as a test failure rather than being ...
diff --git a/junit-jupiter-params/src/main/java/org/junit/jupiter/params/ParameterizedTestExtension.java b/junit-jupiter-params/src/main/java/org/junit/jupiter/params/ParameterizedTestExtension.java index 8aed7644f2d8..023dd6fea6d2 100644 --- a/junit-jupiter-params/src/main/java/org/junit/jupiter/params/ParameterizedTe...
diff --git a/jupiter-tests/src/test/java/org/junit/jupiter/params/ParameterizedTestExtensionTests.java b/jupiter-tests/src/test/java/org/junit/jupiter/params/ParameterizedTestExtensionTests.java index 638cdbf95e1f..fbdf70e080c7 100644 --- a/jupiter-tests/src/test/java/org/junit/jupiter/params/ParameterizedTestExtension...
null
null
End of preview. Expand in Data Studio

LiveSWEBench Tasks

This dataset contains all task instances for the LiveSWEBench benchmark. Tasks are stored in the following format:

  1. repo_name (str): the name of the repository for this task
  2. task_num (int): the original PR number for the task, used now as an identifier
  3. gold_patch (str): the actual changes made in the PR to resolve the issue in this task
  4. test_patch (str): the changes made to test files to validate the task solution
  5. edit_patch (str): a subset of the gold patch containing changes to just one file
  6. autocomplete_patch (str): a subset of hunks from the gold patch for the autocomplete task
  7. prompt (str): the prompt for the agent task
  8. edit_prompt (str): the prompt used for the edit task
  9. autocopmlete_prompts (str): one line snippet for each hunk in autocomplete_patch, to be pasted to trigger the autocomplete
  10. commit (str): the base commit hash for the task
Downloads last month
114

Collection including livebench/liveswebench