{"instance_id": "astropy__astropy-14309", "model_name_or_path": "cain-anthropic-e124", "model_patch": "diff --git a/astropy/io/fits/connect.py b/astropy/io/fits/connect.py\nindex 4b6150f4ac..8616fa3a84 100644\n--- a/astropy/io/fits/connect.py\n+++ b/astropy/io/fits/connect.py\n@@ -69,7 +69,9 @@ def is_fits(origin, filepath, fileobj, *args, **kwargs):\n             (\".fits\", \".fits.gz\", \".fit\", \".fit.gz\", \".fts\", \".fts.gz\")\n         ):\n             return True\n-    return isinstance(args[0], (HDUList, TableHDU, BinTableHDU, GroupsHDU))\n+    return len(args) > 0 and isinstance(\n+        args[0], (HDUList, TableHDU, BinTableHDU, GroupsHDU)\n+    )\n \n \n def _decode_mixins(tbl):\n", "model": "claude-sonnet-5-5", "steps": 3, "finished": true, "patch_lines": 15, "candidates": [{"compile_ok": 0, "loc_hits": 0, "files": 1, "diff_lines": 15, "steps": 3}], "ms": 7110}
{"instance_id": "astropy__astropy-7166", "model_name_or_path": "cain-anthropic-e124", "model_patch": "diff --git a/astropy/utils/misc.py b/astropy/utils/misc.py\nindex de3fb01d18..49ae19a365 100644\n--- a/astropy/utils/misc.py\n+++ b/astropy/utils/misc.py\n@@ -528,14 +528,22 @@ class InheritDocstrings(type):\n                 not key.startswith('_'))\n \n         for key, val in dct.items():\n-            if (inspect.isfunction(val) and\n-                is_public_member(key) and\n-                val.__doc__ is None):\n+            if not is_public_member(key) or val.__doc__ is not None:\n+                continue\n+            if inspect.isfunction(val):\n                 for base in cls.__mro__[1:]:\n                     super_method = getattr(base, key, None)\n                     if super_method is not None:\n                         val.__doc__ = super_method.__doc__\n                         break\n+            elif isinstance(val, property):\n+                for base in cls.__mro__[1:]:\n+                    super_prop = getattr(base, key, None)\n+                    if super_prop is not None:\n+                        # property.__doc__ is read-only, so build a new one\n+                        setattr(cls, key, property(\n+                            val.fget, val.fset, val.fdel, super_prop.__doc__))\n+                        break\n \n         super().__init__(name, bases, dct)\n \n", "model": "claude-sonnet-5-5", "steps": 5, "finished": true, "patch_lines": 30, "candidates": [{"compile_ok": 0, "loc_hits": 0, "files": 1, "diff_lines": 30, "steps": 5}], "ms": 11526}
{"instance_id": "django__django-11163", "model_name_or_path": "cain-anthropic-e124", "model_patch": "diff --git a/django/forms/models.py b/django/forms/models.py\nindex d157c291ef..5edbbd376f 100644\n--- a/django/forms/models.py\n+++ b/django/forms/models.py\n@@ -83,7 +83,7 @@ def model_to_dict(instance, fields=None, exclude=None):\n     for f in chain(opts.concrete_fields, opts.private_fields, opts.many_to_many):\n         if not getattr(f, 'editable', False):\n             continue\n-        if fields and f.name not in fields:\n+        if fields is not None and f.name not in fields:\n             continue\n         if exclude and f.name in exclude:\n             continue\n", "model": "claude-sonnet-5-5", "steps": 6, "finished": true, "patch_lines": 13, "candidates": [{"compile_ok": 0, "loc_hits": 1, "files": 1, "diff_lines": 13, "steps": 6}], "ms": 11737}
{"instance_id": "django__django-11095", "model_name_or_path": "cain-anthropic-e124", "model_patch": "diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py\nindex 5e7b23f9a0..fb10a2ed0b 100644\n--- a/django/contrib/admin/options.py\n+++ b/django/contrib/admin/options.py\n@@ -580,9 +580,13 @@ class ModelAdmin(BaseModelAdmin):\n     def __str__(self):\n         return \"%s.%s\" % (self.model._meta.app_label, self.__class__.__name__)\n \n+    def get_inlines(self, request, obj):\n+        \"\"\"Hook for specifying custom inlines.\"\"\"\n+        return self.inlines\n+\n     def get_inline_instances(self, request, obj=None):\n         inline_instances = []\n-        for inline_class in self.inlines:\n+        for inline_class in self.get_inlines(request, obj):\n             inline = inline_class(self.model, self.admin_site)\n             if request:\n                 if not (inline.has_view_or_change_permission(request, obj) or\n", "model": "claude-sonnet-5-5", "steps": 7, "finished": true, "patch_lines": 19, "candidates": [{"compile_ok": 0, "loc_hits": 1, "files": 1, "diff_lines": 19, "steps": 7}], "ms": 13894}
{"instance_id": "django__django-11292", "model_name_or_path": "cain-anthropic-e124", "model_patch": "diff --git a/django/core/management/base.py b/django/core/management/base.py\nindex 0c3a981290..c738c7aa35 100644\n--- a/django/core/management/base.py\n+++ b/django/core/management/base.py\n@@ -286,6 +286,11 @@ class BaseCommand:\n             '--force-color', action='store_true',\n             help='Force colorization of the command output.',\n         )\n+        if self.requires_system_checks:\n+            parser.add_argument(\n+                '--skip-checks', action='store_true',\n+                help='Skip system checks.',\n+            )\n         self.add_arguments(parser)\n         return parser\n \n", "model": "claude-sonnet-5-5", "steps": 6, "finished": true, "patch_lines": 16, "candidates": [{"compile_ok": 0, "loc_hits": 1, "files": 1, "diff_lines": 16, "steps": 6}], "ms": 14910}
{"instance_id": "django__django-11490", "model_name_or_path": "cain-anthropic-e124", "model_patch": "diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py\nindex a44adfc760..a791908caf 100644\n--- a/django/db/models/sql/compiler.py\n+++ b/django/db/models/sql/compiler.py\n@@ -426,6 +426,7 @@ class SQLCompiler:\n                 # must have the same columns list. Set the selects defined on\n                 # the query on all combined queries, if not already set.\n                 if not compiler.query.values_select and self.query.values_select:\n+                    compiler.query = compiler.query.clone()\n                     compiler.query.set_values((\n                         *self.query.extra_select,\n                         *self.query.values_select,\n", "model": "claude-sonnet-5-5", "steps": 7, "finished": true, "patch_lines": 12, "candidates": [{"compile_ok": 0, "loc_hits": 0, "files": 1, "diff_lines": 12, "steps": 7}], "ms": 19120}
{"instance_id": "astropy__astropy-13236", "model_name_or_path": "cain-anthropic-e124", "model_patch": "diff --git a/astropy/table/table.py b/astropy/table/table.py\nindex 5afe2127a3..051a578b7f 100644\n--- a/astropy/table/table.py\n+++ b/astropy/table/table.py\n@@ -1243,6 +1243,13 @@ class Table:\n         # mixin class\n         if (not isinstance(data, Column) and not data_is_mixin\n                 and isinstance(data, np.ndarray) and len(data.dtype) > 1):\n+            warnings.warn(\n+                \"Automatically converting a structured numpy array to an \"\n+                \"NdarrayMixin is deprecated. In the future (5.2) the structured \"\n+                \"array will be added as a Column. To avoid this warning and get \"\n+                \"the future behavior now, wrap the array in Column(). To keep \"\n+                \"the current behavior, view it as NdarrayMixin explicitly.\",\n+                FutureWarning)\n             data = data.view(NdarrayMixin)\n             data_is_mixin = True\n \n", "model": "claude-sonnet-5-5", "steps": 8, "finished": true, "patch_lines": 18, "candidates": [{"compile_ok": 0, "loc_hits": 1, "files": 1, "diff_lines": 18, "steps": 8}], "ms": 19719}
{"instance_id": "django__django-11740", "model_name_or_path": "cain-anthropic-e124", "model_patch": "diff --git a/django/db/migrations/autodetector.py b/django/db/migrations/autodetector.py\nindex 0dc1c77c53..3e0e429386 100644\n--- a/django/db/migrations/autodetector.py\n+++ b/django/db/migrations/autodetector.py\n@@ -963,6 +963,10 @@ class MigrationAutodetector:\n                             preserve_default = False\n                     else:\n                         field = new_field\n+                    # Altering to a relation may need the related model.\n+                    dependencies = []\n+                    if field.remote_field and field.remote_field.model:\n+                        dependencies.extend(self._get_dependencies_for_foreign_key(field))\n                     self.add_operation(\n                         app_label,\n                         operations.AlterField(\n@@ -970,7 +974,8 @@ class MigrationAutodetector:\n                             name=field_name,\n                             field=field,\n                             preserve_default=preserve_default,\n-                        )\n+                        ),\n+                        dependencies=dependencies,\n                     )\n                 else:\n                     # We cannot alter between m2m and concrete fields\n", "model": "claude-sonnet-5-5", "steps": 8, "finished": true, "patch_lines": 25, "candidates": [{"compile_ok": 0, "loc_hits": 0, "files": 1, "diff_lines": 25, "steps": 8}], "ms": 17438}
