Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
38
74
query_id
stringlengths
18
35
pool
stringclasses
4 values
repo
stringclasses
10 values
query
stringlengths
11
24.7k
base_commit
stringlengths
40
40
corpus_id
stringclasses
20 values
corpus_commit
stringclasses
20 values
corpus_status
stringclasses
1 value
language
stringclasses
1 value
label_policy
stringclasses
1 value
source_path
stringclasses
39 values
source_record_json
stringlengths
517
26.1k
gold_files
listlengths
1
3
gold_files_source
listlengths
1
3
gold_files_as_released
listlengths
1
17
eligible_source_labels
bool
1 class
scored_in_paper
bool
1 class
cur_pre/astropy/astropy/astropy__astropy-14369
astropy__astropy-14369
cur_pre
astropy/astropy
Incorrect units read from MRT (CDS format) files with astropy.table Description When reading MRT files (formatted according to the CDS standard which is also the format recommended by AAS/ApJ) with `format='ascii.cds'`, astropy.table incorrectly parses composite units. According to CDS standard the units should be SI ...
fa4e8d1cd279acf9b24560813c8652494ccd5922
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "fa4e8d1cd279acf9b24560813c8652494ccd5922", "created_at": "2023-02-06T21:56:51Z", "difficulty": "1-4 hours", "gold_files": ["astropy/units/format/cds.py", "astropy/units/format/cds_parsetab.py"], "missing_files": [], "n_gold_files": 2, "patch_loc": 65, "problem_statement": "Inco...
[ "astropy/units/format/cds.py", "astropy/units/format/cds_parsetab.py" ]
[ "astropy/units/format/cds.py", "astropy/units/format/cds_parsetab.py" ]
[ "astropy/units/format/cds.py", "astropy/units/format/cds_parsetab.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-7671
astropy__astropy-7671
cur_pre
astropy/astropy
minversion failures The change in PR #7647 causes `minversion` to fail in certain cases, e.g.: ``` >>> from astropy.utils import minversion >>> minversion('numpy', '1.14dev') TypeError Traceback (most recent call last) <ipython-input-1-760e6b1c375e> in <module>() 1 from astro...
a7141cd90019b62688d507ae056298507678c058
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "a7141cd90019b62688d507ae056298507678c058", "created_at": "2018-07-20T19:37:49Z", "difficulty": "15 min - 1 hour", "gold_files": ["astropy/utils/introspection.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 9, "problem_statement": "minversion failures\nThe change in P...
[ "astropy/utils/introspection.py" ]
[ "astropy/utils/introspection.py" ]
[ "astropy/utils/introspection.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-7336
astropy__astropy-7336
cur_pre
astropy/astropy
units.quantity_input decorator fails for constructors with type hinted return value -> None Summary I am using the `units.quantity_input` decorator with typing hints for constructors, however when I add the correct return value for the constructor (`None`) then I get an exception, because `None` has no attribute `to`....
732d89c2940156bdc0e200bb36dc38b5e424bcba
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "732d89c2940156bdc0e200bb36dc38b5e424bcba", "created_at": "2018-03-28T15:31:32Z", "difficulty": "<15 min fix", "gold_files": ["astropy/units/decorators.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 2, "problem_statement": "units.quantity_input decorator fails for co...
[ "astropy/units/decorators.py" ]
[ "astropy/units/decorators.py" ]
[ "astropy/units/decorators.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-13579
astropy__astropy-13579
cur_pre
astropy/astropy
Inconsistent behavior of `world_to_pixel` in `SlicedLowLevelWCS` Description I have a 3D WCS with dimensions corresponding to space, space, and wavelength and what some might call a non-trivial PCij matrix that couples the spectral and spatial dimensions. I find that when I perform a world_to_pixel on the full (uns...
0df94ff7097961e92fd7812036a24b145bc13ca8
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "0df94ff7097961e92fd7812036a24b145bc13ca8", "created_at": "2022-08-26T15:06:53Z", "difficulty": "1-4 hours", "gold_files": ["astropy/wcs/wcsapi/wrappers/sliced_wcs.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 4, "problem_statement": "Inconsistent behavior of `world...
[ "astropy/wcs/wcsapi/wrappers/sliced_wcs.py" ]
[ "astropy/wcs/wcsapi/wrappers/sliced_wcs.py" ]
[ "astropy/wcs/wcsapi/wrappers/sliced_wcs.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-13236
astropy__astropy-13236
cur_pre
astropy/astropy
Consider removing auto-transform of structured column into NdarrayMixin Description Currently if you add a structured `np.array` to a Table, it gets turned into an `NdarrayMixin` (via the code below). While this mostly works, I am not sure this is necessary or desirable any more after #12644. Basically the original ...
6ed769d58d89380ebaa1ef52b300691eefda8928
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "6ed769d58d89380ebaa1ef52b300691eefda8928", "created_at": "2022-05-09T14:16:30Z", "difficulty": "15 min - 1 hour", "gold_files": ["astropy/table/table.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 7, "problem_statement": "Consider removing auto-transform of structur...
[ "astropy/table/table.py" ]
[ "astropy/table/table.py" ]
[ "astropy/table/table.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-14539
astropy__astropy-14539
cur_pre
astropy/astropy
`io.fits.FITSDiff` may sometimes report differences between identical files Description In some scenarios, `io.fits.FITSDiff` may report differences between identical files, even when comparing the same file to itself. This may be caused by improper handling of VLAs (variable-length arrays). Expected behavior `io.fi...
c0a24c1dc957a3b565294213f435fefb2ec99714
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "c0a24c1dc957a3b565294213f435fefb2ec99714", "created_at": "2023-03-16T18:45:19Z", "difficulty": "15 min - 1 hour", "gold_files": ["astropy/io/fits/diff.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 2, "problem_statement": "`io.fits.FITSDiff` may sometimes report dif...
[ "astropy/io/fits/diff.py" ]
[ "astropy/io/fits/diff.py" ]
[ "astropy/io/fits/diff.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-14096
astropy__astropy-14096
cur_pre
astropy/astropy
Subclassed SkyCoord gives misleading attribute access message I'm trying to subclass `SkyCoord`, and add some custom properties. This all seems to be working fine, but when I have a custom property (`prop` below) that tries to access a non-existent attribute (`random_attr`) below, the error message is misleading becaus...
1a4462d72eb03f30dc83a879b1dd57aac8b2c18b
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "1a4462d72eb03f30dc83a879b1dd57aac8b2c18b", "created_at": "2022-12-04T17:06:07Z", "difficulty": "15 min - 1 hour", "gold_files": ["astropy/coordinates/sky_coordinate.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 6, "problem_statement": "Subclassed SkyCoord gives mis...
[ "astropy/coordinates/sky_coordinate.py" ]
[ "astropy/coordinates/sky_coordinate.py" ]
[ "astropy/coordinates/sky_coordinate.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-8707
astropy__astropy-8707
cur_pre
astropy/astropy
Header.fromstring does not accept Python 3 bytes According to [the docs](http://docs.astropy.org/en/stable/_modules/astropy/io/fits/header.html#Header.fromstring), the method `Header.fromstring` "...creates an HDU header from a byte string containing the entire header data." By "byte string" here it really means the ...
a85a0747c54bac75e9c3b2fe436b105ea029d6cf
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "a85a0747c54bac75e9c3b2fe436b105ea029d6cf", "created_at": "2019-05-15T13:21:19Z", "difficulty": "15 min - 1 hour", "gold_files": ["astropy/io/fits/card.py", "astropy/io/fits/header.py"], "missing_files": [], "n_gold_files": 2, "patch_loc": 75, "problem_statement": "Header.fromst...
[ "astropy/io/fits/card.py", "astropy/io/fits/header.py" ]
[ "astropy/io/fits/card.py", "astropy/io/fits/header.py" ]
[ "astropy/io/fits/card.py", "astropy/io/fits/header.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-13453
astropy__astropy-13453
cur_pre
astropy/astropy
ASCII table output to HTML does not support supplied "formats" Description When writing out an astropy table to HTML format, the `formats` option to the [`write()`](https://docs.astropy.org/en/stable/api/astropy.io.ascii.write.html#astropy.io.ascii.write) method seems to be ignored. It does work when writing out to ...
19cc80471739bcb67b7e8099246b391c355023ee
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "19cc80471739bcb67b7e8099246b391c355023ee", "created_at": "2022-07-14T10:04:40Z", "difficulty": "15 min - 1 hour", "gold_files": ["astropy/io/ascii/html.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 2, "problem_statement": "ASCII table output to HTML does not suppor...
[ "astropy/io/ascii/html.py" ]
[ "astropy/io/ascii/html.py" ]
[ "astropy/io/ascii/html.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-14508
astropy__astropy-14508
cur_pre
astropy/astropy
`io.fits.Card` may use a string representation of floats that is larger than necessary Description In some scenarios, `io.fits.Card` may use a string representation of floats that is larger than necessary, which can force comments to be truncated. Due to this, there are some keyword/value/comment combinations that are...
a3f4ae6cd24d5ecdf49f213d77b3513dd509a06c
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "a3f4ae6cd24d5ecdf49f213d77b3513dd509a06c", "created_at": "2023-03-09T11:08:51Z", "difficulty": "15 min - 1 hour", "gold_files": ["astropy/io/fits/card.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 24, "problem_statement": "`io.fits.Card` may use a string representa...
[ "astropy/io/fits/card.py" ]
[ "astropy/io/fits/card.py" ]
[ "astropy/io/fits/card.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-14309
astropy__astropy-14309
cur_pre
astropy/astropy
IndexError: tuple index out of range in identify_format (io.registry) Description Cron tests in HENDRICS using identify_format have started failing in `devdeps` (e.g. [here](https://github.com/StingraySoftware/HENDRICS/actions/runs/3983832171/jobs/6829483945)) with this error: ``` File "/home/runner/work/HENDRICS...
cdb66059a2feb44ee49021874605ba90801f9986
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "cdb66059a2feb44ee49021874605ba90801f9986", "created_at": "2023-01-23T22:34:01Z", "difficulty": "<15 min fix", "gold_files": ["astropy/io/fits/connect.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 5, "problem_statement": "IndexError: tuple index out of range in iden...
[ "astropy/io/fits/connect.py" ]
[ "astropy/io/fits/connect.py" ]
[ "astropy/io/fits/connect.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-12907
astropy__astropy-12907
cur_pre
astropy/astropy
Modeling's `separability_matrix` does not compute separability correctly for nested CompoundModels Consider the following model: ```python from astropy.modeling import models as m from astropy.modeling.separable import separability_matrix cm = m.Linear1D(10) & m.Linear1D(5) ``` It's separability matrix as you ...
d16bfe05a744909de4b27f5875fe0d4ed41ce607
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "d16bfe05a744909de4b27f5875fe0d4ed41ce607", "created_at": "2022-03-03T15:14:54Z", "difficulty": "15 min - 1 hour", "gold_files": ["astropy/modeling/separable.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 2, "problem_statement": "Modeling's `separability_matrix` does...
[ "astropy/modeling/separable.py" ]
[ "astropy/modeling/separable.py" ]
[ "astropy/modeling/separable.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-7606
astropy__astropy-7606
cur_pre
astropy/astropy
Unit equality comparison with None raises TypeError for UnrecognizedUnit ``` In [12]: x = u.Unit('asdf', parse_strict='silent') In [13]: x == None # Should be False --------------------------------------------------------------------------- TypeError Traceback (most recent call las...
3cedd79e6c121910220f8e6df77c54a0b344ea94
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "3cedd79e6c121910220f8e6df77c54a0b344ea94", "created_at": "2018-06-29T16:27:46Z", "difficulty": "15 min - 1 hour", "gold_files": ["astropy/units/core.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 10, "problem_statement": "Unit equality comparison with None raises Ty...
[ "astropy/units/core.py" ]
[ "astropy/units/core.py" ]
[ "astropy/units/core.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-14598
astropy__astropy-14598
cur_pre
astropy/astropy
Inconsistency in double single-quote ('') management in FITS Card Description The management of single-quotes in FITS cards seem correct, except *sometimes* when dealing with null strings, i.e. double single quotes (`''`), which sometimes are transformed into single single quotes (`'`). E.g.: ```python In [39]: f...
80c3854a5f4f4a6ab86c03d9db7854767fcd83c1
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "80c3854a5f4f4a6ab86c03d9db7854767fcd83c1", "created_at": "2023-03-29T10:34:49Z", "difficulty": "15 min - 1 hour", "gold_files": ["astropy/io/fits/card.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 4, "problem_statement": "Inconsistency in double single-quote ('') m...
[ "astropy/io/fits/card.py" ]
[ "astropy/io/fits/card.py" ]
[ "astropy/io/fits/card.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-14182
astropy__astropy-14182
cur_pre
astropy/astropy
Please support header rows in RestructuredText output Description It would be great if the following would work: ```Python >>> from astropy.table import QTable >>> import astropy.units as u >>> import sys >>> tbl = QTable({'wave': [350,950]*u.nm, 'response': [0.7, 1.2]*u.count}) >>> tbl.write(sys.stdout, form...
a5917978be39d13cd90b517e1de4e7a539ffaa48
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "a5917978be39d13cd90b517e1de4e7a539ffaa48", "created_at": "2022-12-16T11:13:37Z", "difficulty": "15 min - 1 hour", "gold_files": ["astropy/io/ascii/rst.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 41, "problem_statement": "Please support header rows in Restructured...
[ "astropy/io/ascii/rst.py" ]
[ "astropy/io/ascii/rst.py" ]
[ "astropy/io/ascii/rst.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-8872
astropy__astropy-8872
cur_pre
astropy/astropy
float16 quantities get upgraded to float64 automatically When trying to create a `Quantity` from a `np.float16` (not something I actually intended to do, I was experimenting while investigating other issue) it gets upgraded automatically to `np.float64`, which is something that does not happen with other float types: ...
b750a0e6ee76fb6b8a099a4d16ec51977be46bf6
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "b750a0e6ee76fb6b8a099a4d16ec51977be46bf6", "created_at": "2019-06-19T20:34:56Z", "difficulty": "15 min - 1 hour", "gold_files": ["astropy/units/quantity.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 11, "problem_statement": "float16 quantities get upgraded to float...
[ "astropy/units/quantity.py" ]
[ "astropy/units/quantity.py" ]
[ "astropy/units/quantity.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-13977
astropy__astropy-13977
cur_pre
astropy/astropy
Should `Quantity.__array_ufunc__()` return `NotImplemented` instead of raising `ValueError` if the inputs are incompatible? Description I'm trying to implement a duck type of `astropy.units.Quantity`. If you are interested, the project is available [here](https://github.com/Kankelborg-Group/named_arrays). I'm running ...
5250b2442501e6c671c6b380536f1edb352602d1
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "5250b2442501e6c671c6b380536f1edb352602d1", "created_at": "2022-11-01T22:24:58Z", "difficulty": "15 min - 1 hour", "gold_files": ["astropy/units/quantity.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 95, "problem_statement": "Should `Quantity.__array_ufunc__()` retu...
[ "astropy/units/quantity.py" ]
[ "astropy/units/quantity.py" ]
[ "astropy/units/quantity.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-14995
astropy__astropy-14995
cur_pre
astropy/astropy
In v5.3, NDDataRef mask propagation fails when one of the operand does not have a mask Description This applies to v5.3. It looks like when one of the operand does not have a mask, the mask propagation when doing arithmetic, in particular with `handle_mask=np.bitwise_or` fails. This is not a problem in v5.2. I d...
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "b16c7d12ccbc7b2d20364b89fb44285bcbfede54", "created_at": "2023-06-27T19:48:18Z", "difficulty": "<15 min fix", "gold_files": ["astropy/nddata/mixins/ndarithmetic.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 4, "problem_statement": "In v5.3, NDDataRef mask propagati...
[ "astropy/nddata/mixins/ndarithmetic.py" ]
[ "astropy/nddata/mixins/ndarithmetic.py" ]
[ "astropy/nddata/mixins/ndarithmetic.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-14365
astropy__astropy-14365
cur_pre
astropy/astropy
ascii.qdp Table format assumes QDP commands are upper case Description ascii.qdp assumes that commands in a QDP file are upper case, for example, for errors they must be "READ SERR 1 2" whereas QDP itself is not case sensitive and case use "read serr 1 2". As many QDP files are created by hand, the expectation that...
7269fa3e33e8d02485a647da91a5a2a60a06af61
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "7269fa3e33e8d02485a647da91a5a2a60a06af61", "created_at": "2023-02-06T19:20:34Z", "difficulty": "15 min - 1 hour", "gold_files": ["astropy/io/ascii/qdp.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 4, "problem_statement": "ascii.qdp Table format assumes QDP commands...
[ "astropy/io/ascii/qdp.py" ]
[ "astropy/io/ascii/qdp.py" ]
[ "astropy/io/ascii/qdp.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-13033
astropy__astropy-13033
cur_pre
astropy/astropy
TimeSeries: misleading exception when required column check fails. Description For a `TimeSeries` object that has additional required columns (in addition to `time`), when codes mistakenly try to remove a required column, the exception it produces is misleading. Expected behavior An exception that informs the us...
298ccb478e6bf092953bca67a3d29dc6c35f6752
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "298ccb478e6bf092953bca67a3d29dc6c35f6752", "created_at": "2022-03-31T23:28:27Z", "difficulty": "15 min - 1 hour", "gold_files": ["astropy/timeseries/core.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 14, "problem_statement": "TimeSeries: misleading exception when r...
[ "astropy/timeseries/core.py" ]
[ "astropy/timeseries/core.py" ]
[ "astropy/timeseries/core.py" ]
true
true
cur_pre/astropy/astropy/astropy__astropy-7166
astropy__astropy-7166
cur_pre
astropy/astropy
InheritDocstrings metaclass doesn't work for properties Inside the InheritDocstrings metaclass it uses `inspect.isfunction` which returns `False` for properties.
26d147868f8a891a6009a25cd6a8576d2e1bd747
astropy/astropy@b16c7d12ccbc7b2d20364b89fb44285bcbfede54
b16c7d12ccbc7b2d20364b89fb44285bcbfede54
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/astropy__astropy.jsonl
{"all_files_exist": true, "base_commit": "26d147868f8a891a6009a25cd6a8576d2e1bd747", "created_at": "2018-02-07T15:05:31Z", "difficulty": "<15 min fix", "gold_files": ["astropy/utils/misc.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 10, "problem_statement": "InheritDocstrings metaclass doesn't work for pro...
[ "astropy/utils/misc.py" ]
[ "astropy/utils/misc.py" ]
[ "astropy/utils/misc.py" ]
true
true
cur_pre/django/django/django__django-11790
django__django-11790
cur_pre
django/django
AuthenticationForm's username field doesn't set maxlength HTML attribute. Description AuthenticationForm's username field doesn't render with maxlength HTML attribute anymore. Regression introduced in #27515 and 5ceaf14686ce626404afb6a5fbd3d8286410bf13. ​https://groups.google.com/forum/?utm_source=digest&utm_medium=em...
b1d6b35e146aea83b171c1b921178bbaae2795ed
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "b1d6b35e146aea83b171c1b921178bbaae2795ed", "created_at": "2019-09-17T14:33:44Z", "difficulty": "15 min - 1 hour", "gold_files": ["django/contrib/auth/forms.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 4, "problem_statement": "AuthenticationForm's username field do...
[ "django/contrib/auth/forms.py" ]
[ "django/contrib/auth/forms.py" ]
[ "django/contrib/auth/forms.py" ]
true
true
cur_pre/django/django/django__django-13933
django__django-13933
cur_pre
django/django
ModelChoiceField does not provide value of invalid choice when raising ValidationError Description (last modified by Aaron Wiegel) Compared with ChoiceField and others, ModelChoiceField does not show the value of the invalid choice when raising a validation error. Passing in parameters with the invalid value and mo...
42e8cf47c7ee2db238bf91197ea398126c546741
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "42e8cf47c7ee2db238bf91197ea398126c546741", "created_at": "2021-01-26T03:58:23Z", "difficulty": "<15 min fix", "gold_files": ["django/forms/models.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 6, "problem_statement": "ModelChoiceField does not provide value of inval...
[ "django/forms/models.py" ]
[ "django/forms/models.py" ]
[ "django/forms/models.py" ]
true
true
cur_pre/django/django/django__django-13794
django__django-13794
cur_pre
django/django
add filter is unable to concatenate strings with lazy string Description If you try to concatenate a string with a lazy string with the add template filter, the result is always the empty string because the add filter generates an exception (TypeError: can only concatenate str (not "__proxy__") to str).
fe886eee36be8022f34cfe59aa61ff1c21fe01d9
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "fe886eee36be8022f34cfe59aa61ff1c21fe01d9", "created_at": "2020-12-19T20:09:34Z", "difficulty": "<15 min fix", "gold_files": ["django/utils/functional.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 6, "problem_statement": "add filter is unable to concatenate strings ...
[ "django/utils/functional.py" ]
[ "django/utils/functional.py" ]
[ "django/utils/functional.py" ]
true
true
cur_pre/django/django/django__django-15277
django__django-15277
cur_pre
django/django
Micro-optimisation for Value._resolve_output_field (by modifying CharField.__init__) Description Currently, when you do something like annotate(x=Value('test')) that will eventually probably call down into Value._resolve_output_field() and run the following code: if isinstance(self.value, str): return fields.CharFiel...
30613d6a748fce18919ff8b0da166d9fda2ed9bc
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "30613d6a748fce18919ff8b0da166d9fda2ed9bc", "created_at": "2022-01-03T12:14:06Z", "difficulty": "<15 min fix", "gold_files": ["django/db/models/fields/__init__.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 3, "problem_statement": "Micro-optimisation for Value._resol...
[ "django/db/models/fields/__init__.py" ]
[ "django/db/models/fields/__init__.py" ]
[ "django/db/models/fields/__init__.py" ]
true
true
cur_pre/django/django/django__django-13346
django__django-13346
cur_pre
django/django
On MySQL, Oracle, and SQLite, __in lookup doesn't work on key transforms. Description I am currently rewriting our app where we will start using models.JSONField instead of django_mysql.models.JSONField. I noticed that the __in operator is not reacting the same way is it does on other fields. first_filter = {‘our_fiel...
9c92924cd5d164701e2514e1c2d6574126bd7cc2
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "9c92924cd5d164701e2514e1c2d6574126bd7cc2", "created_at": "2020-08-25T06:25:31Z", "difficulty": "15 min - 1 hour", "gold_files": ["django/db/models/fields/json.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 25, "problem_statement": "On MySQL, Oracle, and SQLite, __in...
[ "django/db/models/fields/json.py" ]
[ "django/db/models/fields/json.py" ]
[ "django/db/models/fields/json.py" ]
true
true
cur_pre/django/django/django__django-17087
django__django-17087
cur_pre
django/django
Class methods from nested classes cannot be used as Field.default. Description (last modified by Mariusz Felisiak) Given the following model: class Profile(models.Model): class Capability(models.TextChoices): BASIC = ("BASIC", "Basic") PROFESSIONAL = ("PROFESSIONAL", "Professional") @classmethod def defa...
4a72da71001f154ea60906a2f74898d32b7322a7
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "4a72da71001f154ea60906a2f74898d32b7322a7", "created_at": "2023-07-17T20:28:41Z", "difficulty": "<15 min fix", "gold_files": ["django/db/migrations/serializer.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 2, "problem_statement": "Class methods from nested classes ca...
[ "django/db/migrations/serializer.py" ]
[ "django/db/migrations/serializer.py" ]
[ "django/db/migrations/serializer.py" ]
true
true
cur_pre/django/django/django__django-13590
django__django-13590
cur_pre
django/django
Upgrading 2.2>3.0 causes named tuples used as arguments to __range to error. Description I noticed this while upgrading a project from 2.2 to 3.0. This project passes named 2-tuples as arguments to range queryset filters. This works fine on 2.2. On 3.0 it causes the following error: TypeError: __new__() missing 1 requ...
755dbf39fcdc491fe9b588358303e259c7750be4
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "755dbf39fcdc491fe9b588358303e259c7750be4", "created_at": "2020-10-23T09:34:55Z", "difficulty": "15 min - 1 hour", "gold_files": ["django/db/models/sql/query.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 6, "problem_statement": "Upgrading 2.2>3.0 causes named tuples...
[ "django/db/models/sql/query.py" ]
[ "django/db/models/sql/query.py" ]
[ "django/db/models/sql/query.py" ]
true
true
cur_pre/django/django/django__django-10097
django__django-10097
cur_pre
django/django
Make URLValidator reject invalid characters in the username and password Description (last modified by Tim Bell) Since #20003, core.validators.URLValidator accepts URLs with usernames and passwords. RFC 1738 section 3.1 requires "Within the user and password field, any ":", "@", or "/" must be encoded"; however, th...
b9cf764be62e77b4777b3a75ec256f6209a57671
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "b9cf764be62e77b4777b3a75ec256f6209a57671", "created_at": "2018-06-26T23:30:51Z", "difficulty": "<15 min fix", "gold_files": ["django/core/validators.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 2, "problem_statement": "Make URLValidator reject invalid characters i...
[ "django/core/validators.py" ]
[ "django/core/validators.py" ]
[ "django/core/validators.py" ]
true
true
cur_pre/django/django/django__django-13964
django__django-13964
cur_pre
django/django
Saving parent object after setting on child leads to data loss for parents with non-numeric primary key. Description (last modified by Charlie DeTar) Given a model with a foreign key relation to another model that has a non-auto CharField as its primary key: class Product(models.Model): sku = models.CharField(prim...
f39634ff229887bf7790c069d0c411b38494ca38
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "f39634ff229887bf7790c069d0c411b38494ca38", "created_at": "2021-02-02T17:07:43Z", "difficulty": "15 min - 1 hour", "gold_files": ["django/db/models/base.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 2, "problem_statement": "Saving parent object after setting on chil...
[ "django/db/models/base.py" ]
[ "django/db/models/base.py" ]
[ "django/db/models/base.py" ]
true
true
cur_pre/django/django/django__django-14787
django__django-14787
cur_pre
django/django
method_decorator() should preserve wrapper assignments Description the function that is passed to the decorator is a partial object and does not have any of the attributes expected from a function i.e. __name__, __module__ etc... consider the following case def logger(func): @wraps(func) def inner(*args, **kwargs): ...
004b4620f6f4ad87261e149898940f2dcd5757ef
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "004b4620f6f4ad87261e149898940f2dcd5757ef", "created_at": "2021-08-23T12:59:59Z", "difficulty": "<15 min fix", "gold_files": ["django/utils/decorators.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 2, "problem_statement": "method_decorator() should preserve wrapper a...
[ "django/utils/decorators.py" ]
[ "django/utils/decorators.py" ]
[ "django/utils/decorators.py" ]
true
true
cur_pre/django/django/django__django-13028
django__django-13028
cur_pre
django/django
Queryset raises NotSupportedError when RHS has filterable=False attribute. Description (last modified by Nicolas Baccelli) I'm migrating my app to django 3.0.7 and I hit a strange behavior using a model class with a field labeled filterable class ProductMetaDataType(models.Model): label = models.CharField(max_leng...
78ad4b4b0201003792bfdbf1a7781cbc9ee03539
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "78ad4b4b0201003792bfdbf1a7781cbc9ee03539", "created_at": "2020-06-05T19:49:04Z", "difficulty": "15 min - 1 hour", "gold_files": ["django/db/models/sql/query.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 5, "problem_statement": "Queryset raises NotSupportedError whe...
[ "django/db/models/sql/query.py" ]
[ "django/db/models/sql/query.py" ]
[ "django/db/models/sql/query.py" ]
true
true
cur_pre/django/django/django__django-13128
django__django-13128
cur_pre
django/django
make temporal subtraction work without ExpressionWrapper Description class Experiment(models.Model): start = models.DateTimeField() end = models.DateTimeField() Experiment.objects.annotate( delta=F('end') - F('start') + Value(datetime.timedelta(), output_field=DurationField()) ) This gives: django.core.exceptions.F...
2d67222472f80f251607ae1b720527afceba06ad
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "2d67222472f80f251607ae1b720527afceba06ad", "created_at": "2020-06-30T18:06:56Z", "difficulty": "1-4 hours", "gold_files": ["django/db/models/expressions.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 43, "problem_statement": "make temporal subtraction work without E...
[ "django/db/models/expressions.py" ]
[ "django/db/models/expressions.py" ]
[ "django/db/models/expressions.py" ]
true
true
cur_pre/django/django/django__django-12774
django__django-12774
cur_pre
django/django
Allow QuerySet.in_bulk() for fields with total UniqueConstraints. Description If a field is unique by UniqueConstraint instead of unique=True running in_bulk() on that field will fail. Consider: class Article(models.Model): slug = models.CharField(max_length=255) class Meta: constraints = [ models.UniqueConstr...
67f9d076cfc1858b94f9ed6d1a5ce2327dcc8d0d
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "67f9d076cfc1858b94f9ed6d1a5ce2327dcc8d0d", "created_at": "2020-04-22T11:02:30Z", "difficulty": "15 min - 1 hour", "gold_files": ["django/db/models/query.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 12, "problem_statement": "Allow QuerySet.in_bulk() for fields with...
[ "django/db/models/query.py" ]
[ "django/db/models/query.py" ]
[ "django/db/models/query.py" ]
true
true
cur_pre/django/django/django__django-11066
django__django-11066
cur_pre
django/django
RenameContentType._rename() doesn't save the content type on the correct database Description The commit in question: ​https://github.com/django/django/commit/f179113e6cbc8ba0a8d4e87e1d4410fb61d63e75 The specific lines in question: ​https://github.com/django/django/blob/586a9dc4295357de1f5ad0590ad34bf2bc008f79/django/...
4b45b6c8e4d7c9701a332e80d3b1c84209dc36e2
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "4b45b6c8e4d7c9701a332e80d3b1c84209dc36e2", "created_at": "2019-03-09T13:03:14Z", "difficulty": "<15 min fix", "gold_files": ["django/contrib/contenttypes/management/__init__.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 2, "problem_statement": "RenameContentType._r...
[ "django/contrib/contenttypes/management/__init__.py" ]
[ "django/contrib/contenttypes/management/__init__.py" ]
[ "django/contrib/contenttypes/management/__init__.py" ]
true
true
cur_pre/django/django/django__django-13417
django__django-13417
cur_pre
django/django
QuerySet.ordered property is incorrect for GROUP BY queries on models with Meta.ordering. Description Using the annotate function on a queryset doesn't keep the default ordering set in model's meta class. A property should say whether the queryset will be ordered or not. I wanted to use the qs.ordered property for thi...
71ae1ab0123582cc5bfe0f7d5f4cc19a9412f396
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "71ae1ab0123582cc5bfe0f7d5f4cc19a9412f396", "created_at": "2020-09-14T07:49:15Z", "difficulty": "<15 min fix", "gold_files": ["django/db/models/query.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 7, "problem_statement": "QuerySet.ordered property is incorrect for GR...
[ "django/db/models/query.py" ]
[ "django/db/models/query.py" ]
[ "django/db/models/query.py" ]
true
true
cur_pre/django/django/django__django-16145
django__django-16145
cur_pre
django/django
`runserver 0`'s "Starting development server at <address>" doesn't work Description According to ​tutorial running python manage.py runserver 0:8000 is the same as python manage.py runserver 0.0.0.0:8000 but it's output $ python manage.py runserver 0:8000 Watching for file changes with StatReloader ...
93d4c9ea1de24eb391cb2b3561b6703fd46374df
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "93d4c9ea1de24eb391cb2b3561b6703fd46374df", "created_at": "2022-10-03T05:09:14Z", "difficulty": "<15 min fix", "gold_files": ["django/core/management/commands/runserver.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 9, "problem_statement": "`runserver 0`'s \"Starting...
[ "django/core/management/commands/runserver.py" ]
[ "django/core/management/commands/runserver.py" ]
[ "django/core/management/commands/runserver.py" ]
true
true
cur_pre/django/django/django__django-17084
django__django-17084
cur_pre
django/django
Cannot use aggregate over window functions since 4.2 Description (last modified by younes-chaoui) After upgrading to Django 4.2, I encountered an exception when executing ORM queries that involve aggregates over Window functions. The specific error was psycopg2.errors.GroupingError: aggregate function calls cannot ...
f8c43aca467b7b0c4bb0a7fa41362f90b610b8df
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "f8c43aca467b7b0c4bb0a7fa41362f90b610b8df", "created_at": "2023-07-17T16:54:19Z", "difficulty": "15 min - 1 hour", "gold_files": ["django/db/models/sql/query.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 6, "problem_statement": "Cannot use aggregate over window func...
[ "django/db/models/sql/query.py" ]
[ "django/db/models/sql/query.py" ]
[ "django/db/models/sql/query.py" ]
true
true
cur_pre/django/django/django__django-16454
django__django-16454
cur_pre
django/django
Management command subparsers don’t retain error formatting Description Django management commands use a subclass of argparse.ArgumentParser, CommandParser, that takes some extra arguments to improve error formatting. These arguments are not copied into subparsers, created via CommandParser.add_subparsers().add_parser...
1250483ebf73f7a82ff820b94092c63ce4238264
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "1250483ebf73f7a82ff820b94092c63ce4238264", "created_at": "2023-01-15T09:23:24Z", "difficulty": "15 min - 1 hour", "gold_files": ["django/core/management/base.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 10, "problem_statement": "Management command subparsers don’t...
[ "django/core/management/base.py" ]
[ "django/core/management/base.py" ]
[ "django/core/management/base.py" ]
true
true
cur_pre/django/django/django__django-14534
django__django-14534
cur_pre
django/django
BoundWidget.id_for_label ignores id set by ChoiceWidget.options Description If you look at the implementation of BoundField.subwidgets class BoundField: ... def subwidgets(self): id_ = self.field.widget.attrs.get('id') or self.auto_id attrs = {'id': id_} if id_ else {} attrs = self.build_widget_attrs(attrs) ...
910ecd1b8df7678f45c3d507dde6bcb1faafa243
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "910ecd1b8df7678f45c3d507dde6bcb1faafa243", "created_at": "2021-06-17T15:37:34Z", "difficulty": "<15 min fix", "gold_files": ["django/forms/boundfield.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 2, "problem_statement": "BoundWidget.id_for_label ignores id set by C...
[ "django/forms/boundfield.py" ]
[ "django/forms/boundfield.py" ]
[ "django/forms/boundfield.py" ]
true
true
cur_pre/django/django/django__django-16877
django__django-16877
cur_pre
django/django
New template filter `escapeseq` Description Following #34574, and after some conversations within the security team, it seems appropriate to provide a new template filter escapeseq which would be to escape what safeseq is to safe. An example of usage would be: {{ some_list|escapeseq|join:"," }} where each item of some...
98f6ada0e2058d67d91fb6c16482411ec2ca0967
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "98f6ada0e2058d67d91fb6c16482411ec2ca0967", "created_at": "2023-05-19T23:11:10Z", "difficulty": "15 min - 1 hour", "gold_files": ["django/template/defaultfilters.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 10, "problem_statement": "New template filter `escapeseq`\...
[ "django/template/defaultfilters.py" ]
[ "django/template/defaultfilters.py" ]
[ "django/template/defaultfilters.py" ]
true
true
cur_pre/django/django/django__django-12663
django__django-12663
cur_pre
django/django
Using SimpleLazyObject with a nested subquery annotation fails. Description (last modified by Jordan Ephron) Prior to 35431298226165986ad07e91f9d3aca721ff38ec it was possible to use a SimpleLazyObject in a queryset as demonstrated below. This new behavior appears to be a regression. Models from django.contrib.auth....
fa5e7e46d875d4143510944f19d79df7b1739bab
django/django@4a72da71001f154ea60906a2f74898d32b7322a7
4a72da71001f154ea60906a2f74898d32b7322a7
git_tree_and_materialized_contents_verified
python
indexed_non_test_source
release/qrels/django__django.jsonl
{"all_files_exist": true, "base_commit": "fa5e7e46d875d4143510944f19d79df7b1739bab", "created_at": "2020-04-04T18:58:49Z", "difficulty": "15 min - 1 hour", "gold_files": ["django/db/models/sql/query.py"], "missing_files": [], "n_gold_files": 1, "patch_loc": 3, "problem_statement": "Using SimpleLazyObject with a nested ...
[ "django/db/models/sql/query.py" ]
[ "django/db/models/sql/query.py" ]
[ "django/db/models/sql/query.py" ]
true
true
End of preview. Expand in Data Studio

Repo-Premium

Repository-level code retrieval benchmark accompanying Embeddings vs. Grep: Rethinking the Dense Advantage in Code Search.

Given a natural-language issue or pull-request description, rank files in the matching repository snapshot. This release contains queries, file relevance labels, fixed evaluation membership, and provenance. Repository source code and model weights are obtained separately.

Paper · Code and evaluation scripts · Paper artifact archive

Load

from datasets import load_dataset

core = load_dataset("hq-bench/repo-premium", "core", split="test")
raw_2023 = load_dataset("hq-bench/repo-premium", "raw_pre_2023", split="test")
lockbox = load_dataset("hq-bench/repo-premium", "lockbox", split="test")

example = core[0]
print(example["query"])
print(example["repo"], example["corpus_commit"])
print(example["gold_files"])

These are evaluation pools, not random train/test partitions. Preserve the original pool boundaries. The lockbox overlaps extension pools; do not concatenate it with them as additional independent examples.

Evaluation configurations

Configuration Records Description
core (default) 1,265 Four final Python pools below
cur_pre 472 Curated SWE-bench issue statements
raw_post 288 Raw PR descriptions from 2026
raw_pre_2023 138 Raw 2023 PRs, evaluated on 2024-Q1 corpora
raw_pre_2022 367 Raw 2022 PR descriptions
extensions 1,560 Five extension pools below
cross_language 458 PR queries across JS/TS, Go, and Rust; 443 have nonempty source-only labels
multi_swe_bench 134 Curated JS/TS and Rust issues
heldout_python 139 Held-out Python queries with nonempty source labels
matched_replication 720 Raw and curated views of 360 tasks; 351 tasks / 702 views have scored source labels
deepswe 109 Task specifications over 88 repositories
lockbox 539 Fixed preregistered membership across 91 repositories; original release labels

The original 7,431 source records are also available in source_pools, split source. They include mining candidates, rejected records, and query variants. They are not an evaluation set or additional independent examples. source_record_json preserves each original published record, including its original filtering fields. The 500-record curated source pool is distinct from the final 472-query evaluation pool.

Fields and labels

Field Meaning
id Unique row identity including pool, repository, and original query ID. Source-pool rows also include the original file and line.
query_id Original query ID; matched views retain ::raw / ::curated suffixes.
pool, repo, language Query pool, upstream repository, and language or language group.
query Retrieval query from the scrubbed archive, with the pool's evaluated boilerplate preprocessing applied. Matched-replication views and DeepSWE task specifications retain the historical verbatim input. No generated anchors are added. Source-pool queries retain their published text.
gold_files Relevant paths under the row's label_policy.
gold_files_source Indexed non-test source-file label alternative.
gold_files_as_released Original labels before the source-only view; raw core rows preserve original pre-harmonization touched-file labels where available.
label_policy indexed_non_test_source for evaluation pools except the original-label lockbox; as_released for lockbox and source records.
eligible_source_labels Whether the source-file label set is nonempty. This alone does not certify a mining candidate passes evaluation filters.
scored_in_paper Whether the record belongs to the cached evaluation under its primary label policy. Source-pool records are marked false.
base_commit Task/PR base commit; not automatically the indexed shared corpus commit.
corpus_id, corpus_commit, corpus_status Indexed corpus identity, exact commit when recovered, and verification status.
source_path, source_record_json Pinned archive provenance and the underlying record as JSON.

For source-only analyses, exclude rows with eligible_source_labels == False; retain the original membership and label policy when reproducing the preregistered lockbox result. The source-only lockbox has 525 eligible rows, while the original-label lockbox has 539. The matched replication includes all 360 selected tasks; use scored_in_paper to select the 351 scored tasks. Do not score empty source gold sets as retrieval failures.

Corpus reconstruction

metadata/corpora.json specifies the 20 shared core-Python corpora (ten original snapshots and ten 2024-Q1 snapshots), upstream URLs, exact commits, and indexing rules. metadata/corpus_files.parquet records every indexed .py path, content SHA-256, Git blob ID, and file mode. The export checks the evaluated local file contents against Git objects, including symlink target contents. Tests remain in the indexed corpus even when excluded from relevance labels.

Clone the row's upstream repository and check out corpus_commit, then index the paths listed for its corpus_id. metadata/checksums.json verifies the release data and metadata files. metadata/provenance.json pins the source files to the archived release.

Legacy extension limitation: exact shared snapshot SHAs for some extension repositories were not recorded in the old release. Those rows have an empty corpus_commit and corpus_status="not_recorded_in_paper_archive". Do not substitute the PR's base commit and claim the same evaluation corpus. Matched-replication and DeepSWE rows record their task base commits, but their corpora were not reconstructed by this export. metadata/lockbox_protocol.json and metadata/lockbox_driver.tsv retain the exact portable lockbox runner settings, including corrected extension lists. Cached results remain in the paper archive. This cleanup preserves those limitations explicitly rather than inventing missing provenance.

Paper reproduction and migration

The full experiment tree is preserved in Git history at commit 97c0c94062634d8266a7238546169123a8ef2125. It contains the original release/, retrieval caches, analyses, sweeps, trajectories, and auxiliary inputs. Legacy paths are available at that revision, not on the new benchmark-focused main.

from huggingface_hub import snapshot_download

snapshot_download(
    repo_id="hq-bench/repo-premium",
    repo_type="dataset",
    revision="97c0c94062634d8266a7238546169123a8ef2125",
    local_dir="paper-data",
)

Set REPO_PREMIUM_DATA to the absolute path of paper-data when running the paper's table-reproduction commands. The new Parquet layout is for dataset users; the archived layout remains compatible with the experiment scripts.

The final raw_pre_2023 pool comes from the 138-query qrels_h24/cellRA inputs joined against out24/dense_cellRA_c1000. The earlier 135-query copy is retained in the archive and is not used for the new final pool. No new query sampling or retrieval runs were used to construct this release.

Privacy and licenses

Queries and labels come from the previously published, scrubbed archive. Personal emails were redacted during that release; technical email-shaped tokens and @-mentions may remain. Reported retrieval scores were computed before release-time redaction, so rerunning on scrubbed text can change rankings.

The dataset compilation is licensed under CC-BY-4.0. Source-derived issue text and code remain subject to their upstream licenses; the compilation license does not replace them. Repository URLs in the rows and corpus metadata provide source attribution. Obtain and retain the license at the pinned upstream commit when reconstructing a corpus. The benchmark code is Apache-2.0.

Citation

@article{xue2026embeddingsgrep,
  title={Embeddings vs. Grep: Rethinking the Dense Advantage in Code Search},
  author={Xue, Siqiao and Zhang, Ziyin and Liao, Zihan and Qin, Jin and Mu, Yixiang and Yu, Hang},
  journal={arXiv preprint arXiv:2611.20455},
  year={2026},
  doi={10.48550/arXiv.2611.20455},
  url={https://arxiv.org/abs/2611.20455}
}
Downloads last month
268

Collection including hq-bench/repo-premium

Paper for hq-bench/repo-premium