Datasets:
org string | repo string | number int64 | state string | title string | body string | base dict | resolved_issues list | fix_patch string | test_patch string | valid bool | error_msg string | fixed_tests unknown | p2p_tests unknown | f2p_tests unknown | s2p_tests unknown | n2p_tests unknown | run_result dict | test_patch_result dict | fix_patch_result dict | instance_id string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dask | dask | 7,667 | closed | Fix maximum recursion depth exception in array.linspace (#7644) | - [x] Closes #7644
- [x] Tests added / passed
- [x] Passes `black dask` / `flake8 dask` / `isort dask`
It seems that the problem was that the call to `np.linspace` inside `da.linspace` is intercepted by `__array_function__` causing an infinite recursion, solved this by creating a function in chunk, that avoids in... | {
"label": "dask:main",
"ref": "main",
"sha": "d5f5b912e4d1b5d4477e5c797ef1e9ebd066c8c9"
} | [
{
"number": 7644,
"title": "Simple code is reaching a maximum recursion depth exception",
"body": "**What happened**:\r\n\r\nThe same numpy code sample is not working for Dask properly.\r\nIt is throwing `maximum recursion depth exceeded in comparison` exception.\r\n\r\n**What you expected to happen**: ... | diff --git a/dask/array/chunk.py b/dask/array/chunk.py
index 8a98e961550..48439b36f68 100644
--- a/dask/array/chunk.py
+++ b/dask/array/chunk.py
@@ -265,6 +265,18 @@ def arange(start, stop, step, length, dtype, like=None):
return res[:-1] if len(res) > length else res
+def linspace(start, stop, num, endpoint=T... | diff --git a/dask/array/tests/test_creation.py b/dask/array/tests/test_creation.py
index 821a49b04ff..76d4a5796f7 100644
--- a/dask/array/tests/test_creation.py
+++ b/dask/array/tests/test_creation.py
@@ -142,6 +142,11 @@ def test_linspace(endpoint):
da.linspace(6, 49, endpoint=endpoint, chunks=5, dtype=float)... | true | {
"dask/array/tests/test_creation.py::test_linspace": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {
"dask/array/tests/test_creation.py::test_repeat": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"dask/array/tests/test_creation.py::test_tri": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"dask/array/tests/test_creation.py::test_arange_dtypes": {
"run": "PASS",
"test... | {
"dask/array/tests/test_creation.py::test_linspace": {
"run": "PASS",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 29,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"dask/array/tests/test_creation.py::test_arange_dtypes",
"dask/array/tests/test_creation.py::test_tile_neg_reps",
"dask/array/tests/test_creation.py::test_arr_like_shape",
"dask/array/tests/test_creation.py::test_tile... | {
"passed_count": 28,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"dask/array/tests/test_creation.py::test_arange_dtypes",
"dask/array/tests/test_creation.py::test_tile_neg_reps",
"dask/array/tests/test_creation.py::test_arr_like_shape",
"dask/array/tests/test_creation.py::test_tile... | {
"passed_count": 29,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"dask/array/tests/test_creation.py::test_arange_dtypes",
"dask/array/tests/test_creation.py::test_tile_neg_reps",
"dask/array/tests/test_creation.py::test_arr_like_shape",
"dask/array/tests/test_creation.py::test_tile... | dask__dask-7667 | |
dask | dask | 7,842 | closed | Handle infinite loops in merge_asof | Fixes infinite loop behavior in https://github.com/dask/dask/issues/7839.
The core of the issue is that `merge_asof_indexed` could receive dataframes where `divisions` was filled with `nan` or `NaT`. Thus the while loop in `pair_partitions` would never finish executing.
- [x] Closes https://github.com/dask/dask... | {
"label": "dask:main",
"ref": "main",
"sha": "8601b540f8e7eac95fa739a5ca28f1d707299ed0"
} | [
{
"number": 7839,
"title": "Infinite loop in dd.merge_asof with empty df on RHS",
"body": "<!-- Please include a self-contained copy-pastable example that generates the issue if possible.\r\n\r\nPlease be concise with code posted. See guidelines below on how to provide a good bug report:\r\n\r\n- Craft ... | diff --git a/dask/dataframe/multi.py b/dask/dataframe/multi.py
index 278d434ac68..b6e178eab8a 100644
--- a/dask/dataframe/multi.py
+++ b/dask/dataframe/multi.py
@@ -808,6 +808,22 @@ def merge_asof_indexed(left, right, **kwargs):
name = "asof-join-indexed-" + tokenize(left, right, **kwargs)
meta = pd.merge_aso... | diff --git a/dask/dataframe/tests/test_multi.py b/dask/dataframe/tests/test_multi.py
index c71411ccf9d..2a29f233ed7 100644
--- a/dask/dataframe/tests/test_multi.py
+++ b/dask/dataframe/tests/test_multi.py
@@ -582,6 +582,58 @@ def test_merge_asof_unsorted_raises():
result.compute()
+def test_merge_asof_with... | true | {
"dask/dataframe/tests/test_multi.py::test_merge_asof_with_empty": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"dask/dataframe/tests/test_multi.py::test_multi_duplicate_divisions": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"dask/dataframe/tests/test_multi.py::test_append_categorical": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"dask/dataframe/tests/test_multi.py::test_merge": {... | {
"dask/dataframe/tests/test_multi.py::test_merge_asof_with_empty": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 56,
"failed_count": 6,
"skipped_count": 2,
"passed_tests": [
"dask/dataframe/tests/test_multi.py::test_multi_duplicate_divisions",
"dask/dataframe/tests/test_multi.py::test_merge_asof_unsorted_raises",
"dask/dataframe/tests/test_multi.py::test_append_categorical",
"dask/datafra... | {
"passed_count": 56,
"failed_count": 7,
"skipped_count": 2,
"passed_tests": [
"dask/dataframe/tests/test_multi.py::test_multi_duplicate_divisions",
"dask/dataframe/tests/test_multi.py::test_merge_asof_unsorted_raises",
"dask/dataframe/tests/test_multi.py::test_append_categorical",
"dask/datafra... | {
"passed_count": 57,
"failed_count": 6,
"skipped_count": 2,
"passed_tests": [
"dask/dataframe/tests/test_multi.py::test_multi_duplicate_divisions",
"dask/dataframe/tests/test_multi.py::test_merge_asof_unsorted_raises",
"dask/dataframe/tests/test_multi.py::test_append_categorical",
"dask/datafra... | dask__dask-7842 | |
matplotlib | matplotlib | 26,767 | closed | Trim Gouraud triangles that contain NaN | ## PR summary
Agg enters an infinite loop if you give it points that are NaN, due to converting the values to fixed-point integers, and then oscillating between the large values that result from that conversion.
NaN values may be introduced after transforming the input, so we need to trim those after transformati... | {
"label": "matplotlib:main",
"ref": "main",
"sha": "01360ed3ec986f3cfc7055ebc3a630634fd404c5"
} | [
{
"number": 26765,
"title": "[Bug]: Crash in Windows 10 if polar axis lim is lower than lowest data point.",
"body": "### Bug summary\n\nThis example causes matplotlib to silently crash on Windows, but not on Mac. The example below is a minimal example. Looks like important detail is that the data exten... | diff --git a/src/_backend_agg.h b/src/_backend_agg.h
index f15fa05dd5fd..61c24232a866 100644
--- a/src/_backend_agg.h
+++ b/src/_backend_agg.h
@@ -1193,6 +1193,9 @@ inline void RendererAgg::_draw_gouraud_triangle(PointArray &points,
tpoints[i][j] = points(i, j);
}
trans.transform(&tpoints... | diff --git a/lib/matplotlib/tests/test_transforms.py b/lib/matplotlib/tests/test_transforms.py
index ee6754cb8da8..a9a92d33cff3 100644
--- a/lib/matplotlib/tests/test_transforms.py
+++ b/lib/matplotlib/tests/test_transforms.py
@@ -142,6 +142,25 @@ def test_pcolormesh_pre_transform_limits():
assert_almost_equal(exp... | true | {
"lib/matplotlib/tests/test_transforms.py::test_pcolormesh_gouraud_nans": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"lib/matplotlib/tests/test_transforms.py::TestBasicTransform::test_left_to_right_iteration": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"lib/matplotlib/tests/test_transforms.py::test_affine_inverted_invalidated": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"lib/matplotli... | {
"lib/matplotlib/tests/test_transforms.py::test_pcolormesh_gouraud_nans": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 43,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"lib/matplotlib/tests/test_transforms.py::TestBasicTransform::test_left_to_right_iteration",
"lib/matplotlib/tests/test_transforms.py::test_affine_inverted_invalidated",
"lib/matplotlib/tests/test_transforms.py::test_bbox... | {
"passed_count": 43,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"lib/matplotlib/tests/test_transforms.py::TestBasicTransform::test_left_to_right_iteration",
"lib/matplotlib/tests/test_transforms.py::test_affine_inverted_invalidated",
"lib/matplotlib/tests/test_transforms.py::test_bbox... | {
"passed_count": 44,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"lib/matplotlib/tests/test_transforms.py::TestBasicTransform::test_left_to_right_iteration",
"lib/matplotlib/tests/test_transforms.py::test_affine_inverted_invalidated",
"lib/matplotlib/tests/test_transforms.py::test_bbox... | matplotlib__matplotlib-26767 | |
matplotlib | matplotlib | 30,198 | closed | Implement Path.__deepcopy__ avoiding infinite recursion | Implement `Path.__deepcopy__` avoiding infinite recursion
To deep copy an object without calling deepcopy on the object itself, create a new object of the correct class and iterate calling deepcopy on its `__dict__`.
Closes #29157 without relying on private CPython methods.
In a separate commit, fix the other ... | {
"label": "matplotlib:main",
"ref": "main",
"sha": "fed8c20760e90e80a21e5b4df102ad01778e76b1"
} | [
{
"number": 29157,
"title": "FUTURE BUG: reconsider how we deep-copy path objects",
"body": "We currently use `super()` in the `__deepcopy__` implementation of`Path`\r\n\r\nhttps://github.com/matplotlib/matplotlib/blob/183b04fb43f57ffe66da68c729a179e397cd35f6/lib/matplotlib/path.py#L279-L287\r\n\r\nhowe... | diff --git a/lib/matplotlib/path.py b/lib/matplotlib/path.py
index a021706fb1e5..f65ade669167 100644
--- a/lib/matplotlib/path.py
+++ b/lib/matplotlib/path.py
@@ -275,17 +275,37 @@ def copy(self):
"""
return copy.copy(self)
- def __deepcopy__(self, memo=None):
+ def __deepcopy__(self, memo):
... | diff --git a/lib/matplotlib/tests/test_path.py b/lib/matplotlib/tests/test_path.py
index d4dc0141e63b..a61f01c0d48a 100644
--- a/lib/matplotlib/tests/test_path.py
+++ b/lib/matplotlib/tests/test_path.py
@@ -355,15 +355,49 @@ def test_path_deepcopy():
# Should not raise any error
verts = [[0, 0], [1, 1]]
... | true | {
"lib/matplotlib/tests/test_path.py::test_path_deepcopy_cycle": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"lib/matplotlib/tests/test_path.py::test_make_compound_path_empty": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"lib/matplotlib/tests/test_path.py::test_path_shallowcopy": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"lib/matplotlib/tests/test_path.py::test_point_in_path_n... | {
"lib/matplotlib/tests/test_path.py::test_path_deepcopy_cycle": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 30,
"failed_count": 0,
"skipped_count": 1,
"passed_tests": [
"lib/matplotlib/tests/test_path.py::test_make_compound_path_empty",
"lib/matplotlib/tests/test_path.py::test_path_shallowcopy",
"lib/matplotlib/tests/test_path.py::test_point_in_path_nan",
"lib/matplotlib/tests/test_p... | {
"passed_count": 30,
"failed_count": 1,
"skipped_count": 1,
"passed_tests": [
"lib/matplotlib/tests/test_path.py::test_make_compound_path_empty",
"lib/matplotlib/tests/test_path.py::test_path_shallowcopy",
"lib/matplotlib/tests/test_path.py::test_point_in_path_nan",
"lib/matplotlib/tests/test_p... | {
"passed_count": 31,
"failed_count": 0,
"skipped_count": 1,
"passed_tests": [
"lib/matplotlib/tests/test_path.py::test_make_compound_path_empty",
"lib/matplotlib/tests/test_path.py::test_path_shallowcopy",
"lib/matplotlib/tests/test_path.py::test_point_in_path_nan",
"lib/matplotlib/tests/test_p... | matplotlib__matplotlib-30198 | |
matplotlib | matplotlib | 6,919 | closed | Rework MaxNLocator, eliminating infinite loop; closes #6849 | The core algorithm has been reimplemented in a more compact and understandable form than my earlier try at adding the `min_n_ticks` constraint.
I replaced the images for one mplot3d test because I think the present behavior is more consistent than the earlier behavior that led to those images. In the replaced version... | {
"label": "matplotlib:master",
"ref": "master",
"sha": "4e21b9a23cf66d119846facaa41a5be2c688eb67"
} | [
{
"number": 6849,
"title": "BUG: endless loop with MaxNLocator integer kwarg and short axis",
"body": "In v2.x:\n\n``` python\nfig, ax = plt.subplots()\nax.plot([0.5, 1.5], [1, 2])\nax.locator_params(axis='x', integer=True)\n```\n\nThis leads to an infinite loop in `MaxNLocator._raw_ticks`. \n"
}
] | diff --git a/lib/matplotlib/ticker.py b/lib/matplotlib/ticker.py
index a2be7cbd805e..ac90453832dd 100644
--- a/lib/matplotlib/ticker.py
+++ b/lib/matplotlib/ticker.py
@@ -1603,7 +1603,9 @@ def __init__(self, *args, **kwargs):
e.g., [1, 2, 4, 5, 10]
*integer*
- If True, ticks will take... | diff --git a/lib/matplotlib/tests/test_ticker.py b/lib/matplotlib/tests/test_ticker.py
index 59deeaef892a..f077bee87ef0 100644
--- a/lib/matplotlib/tests/test_ticker.py
+++ b/lib/matplotlib/tests/test_ticker.py
@@ -14,6 +14,7 @@
import warnings
+@cleanup(style='classic')
def test_MaxNLocator():
loc = mticker... | true | {
"lib/matplotlib/tests/test_ticker.py::test_MaxNLocator_integer": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"lib/matplotlib/tests/test_ticker.py::test_NullLocator_set_params": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"lib/matplotlib/tests/test_ticker.py::test_LogFormatterExponent::": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"lib/matplotlib/tests/test_ticker.py::test_LogLo... | {
"lib/matplotlib/tests/test_ticker.py::test_MaxNLocator_integer": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 20,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"lib/matplotlib/tests/test_ticker.py::test_NullLocator_set_params",
"lib/matplotlib/tests/test_ticker.py::test_LogFormatterExponent::",
"lib/matplotlib/tests/test_ticker.py::test_AutoMinorLocator",
"lib/matplotlib/tes... | {
"passed_count": 20,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"lib/matplotlib/tests/test_ticker.py::test_NullLocator_set_params",
"lib/matplotlib/tests/test_ticker.py::test_LogFormatterExponent::",
"lib/matplotlib/tests/test_ticker.py::test_AutoMinorLocator",
"lib/matplotlib/tes... | {
"passed_count": 21,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"lib/matplotlib/tests/test_ticker.py::test_NullLocator_set_params",
"lib/matplotlib/tests/test_ticker.py::test_LogFormatterExponent::",
"lib/matplotlib/tests/test_ticker.py::test_MaxNLocator_integer",
"lib/matplotlib/... | matplotlib__matplotlib-6919 | |
numpy | numpy | 10,609 | closed | BUG: infinite recursion in str of 0d subclasses | Backport of #10544.
Fixes #10360, using @mhvk's suggestion.
| {
"label": "numpy:maintenance/1.14.x",
"ref": "maintenance/1.14.x",
"sha": "7311b961a6827abdee8179cf40f3ab4a2b682408"
} | [
{
"number": 10360,
"title": "numpy array printing regression for ndarray subclasses in NumPy 1.14",
"body": "It looks like some of the array printing changes in NumPy 1.14 are causing issues in yt. Specifically, printing yt's object that represents a scalar with units is triggering a recursion error. He... | diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py
index 987589dbe1cc..381c1074d0a2 100644
--- a/numpy/core/arrayprint.py
+++ b/numpy/core/arrayprint.py
@@ -435,14 +435,17 @@ def wrapper(self, *args, **kwargs):
# gracefully handle recursive calls, when object arrays contain themselves
@_recursive_guard(... | diff --git a/numpy/core/tests/test_arrayprint.py b/numpy/core/tests/test_arrayprint.py
index 3b6bc7b0f595..f70b6a3334b2 100644
--- a/numpy/core/tests/test_arrayprint.py
+++ b/numpy/core/tests/test_arrayprint.py
@@ -34,6 +34,55 @@ class sub(np.ndarray): pass
" [(1,), (1,)]], dtype=[('a', '<i4')])"
... | true | {
"numpy/core/tests/test_arrayprint.py::TestArrayRepr::test_0d_object_subclass": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {
"numpy/core/tests/test_arrayprint.py::TestPrintOptions::test_float_overflow_nowarn": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"numpy/core/tests/test_arrayprint.py::TestArray2String::test_unstructured_void_repr": {
"run": "PASS",
"test": "PASS",
"fix": "PASS"
},
"numpy/core/t... | {
"numpy/core/tests/test_arrayprint.py::TestArrayRepr::test_0d_object_subclass": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {
"passed_count": 34,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"numpy/core/tests/test_arrayprint.py::TestPrintOptions::test_float_overflow_nowarn",
"numpy/core/tests/test_arrayprint.py::TestArray2String::test_unstructured_void_repr",
"numpy/core/tests/test_arrayprint.py::TestArray2St... | {
"passed_count": 34,
"failed_count": 1,
"skipped_count": 0,
"passed_tests": [
"numpy/core/tests/test_arrayprint.py::TestPrintOptions::test_float_overflow_nowarn",
"numpy/core/tests/test_arrayprint.py::TestArray2String::test_unstructured_void_repr",
"numpy/core/tests/test_arrayprint.py::TestArray2St... | {
"passed_count": 35,
"failed_count": 0,
"skipped_count": 0,
"passed_tests": [
"numpy/core/tests/test_arrayprint.py::TestPrintOptions::test_float_overflow_nowarn",
"numpy/core/tests/test_arrayprint.py::TestArray2String::test_unstructured_void_repr",
"numpy/core/tests/test_arrayprint.py::TestArray2St... | numpy__numpy-10609 | |
numpy | numpy | 21,005 | closed | BUG: Add parameter check to negative_binomial | "Hi!\r\n\r\nFirst contribution to numpy here, hope I did it right. ~Searched the repo to see if this(...TRUNCATED) | {
"label": "numpy:main",
"ref": "main",
"sha": "01b851aa844adc323e74e35a4effd3e8932347ce"
} | [{"number":18997,"title":"Silent overflow error in `numpy.random.default_rng.negative_binomial`","bo(...TRUNCATED) | "diff --git a/numpy/random/_generator.pyx b/numpy/random/_generator.pyx\nindex d7c1879e7aee..3eb5876(...TRUNCATED) | "diff --git a/numpy/random/tests/test_generator_mt19937.py b/numpy/random/tests/test_generator_mt199(...TRUNCATED) | true | {"numpy/random/tests/test_generator_mt19937.py::TestRandomDist::test_negative_binomial_invalid_p_n_c(...TRUNCATED) | {"numpy/random/tests/test_generator_mt19937.py::TestIntegers::test_respect_dtype_singleton":{"run":"(...TRUNCATED) | {"numpy/random/tests/test_generator_mt19937.py::TestRandomDist::test_negative_binomial_invalid_p_n_c(...TRUNCATED) | {} | {} | {"passed_count":203,"failed_count":0,"skipped_count":0,"passed_tests":["numpy/random/tests/test_gene(...TRUNCATED) | {"passed_count":203,"failed_count":1,"skipped_count":0,"passed_tests":["numpy/random/tests/test_gene(...TRUNCATED) | {"passed_count":204,"failed_count":0,"skipped_count":0,"passed_tests":["numpy/random/tests/test_gene(...TRUNCATED) | numpy__numpy-21005 | |
numpy | numpy | 26,022 | closed | BUG: Fixes np.put receiving empty array causes endless loop | "Backport of #25975.\r\n\r\nCloses #25744.\r\n\r\nThe bug issue was in the np.put function, specific(...TRUNCATED) | {"label":"numpy:maintenance/2.0.x","ref":"maintenance/2.0.x","sha":"8127f6d5f3e5d96a17b87fa479109161(...TRUNCATED) | [{"number":25744,"title":"BUG: numpy.put causes endless loop if array is empty","body":"### Describe(...TRUNCATED) | "diff --git a/numpy/_core/src/multiarray/item_selection.c b/numpy/_core/src/multiarray/item_selectio(...TRUNCATED) | "diff --git a/numpy/_core/tests/test_multiarray.py b/numpy/_core/tests/test_multiarray.py\nindex 4a7(...TRUNCATED) | true | {"numpy/_core/tests/test_multiarray.py::TestMethods::test_put":{"run":"PASS","test":"FAIL","fix":"PA(...TRUNCATED) | {"numpy/_core/tests/test_multiarray.py::TestArrayCreationCopyArgument::test___array__copy_arg":{"run(...TRUNCATED) | {"numpy/_core/tests/test_multiarray.py::TestMethods::test_put":{"run":"PASS","test":"FAIL","fix":"PA(...TRUNCATED) | {} | {} | {"passed_count":629,"failed_count":0,"skipped_count":2,"passed_tests":["numpy/_core/tests/test_multi(...TRUNCATED) | {"passed_count":628,"failed_count":1,"skipped_count":2,"passed_tests":["numpy/_core/tests/test_multi(...TRUNCATED) | {"passed_count":629,"failed_count":0,"skipped_count":2,"passed_tests":["numpy/_core/tests/test_multi(...TRUNCATED) | numpy__numpy-26022 | |
numpy | numpy | 26,192 | closed | BUG: Infinite Loop in numpy.base_repr | "Backport of #26162.\r\n\r\nFixes #26143\r\n\r\n- Converts number to python int, before the absolute(...TRUNCATED) | {"label":"numpy:maintenance/2.0.x","ref":"maintenance/2.0.x","sha":"c466a89b8a1647a402e5662bb77e746c(...TRUNCATED) | [{"number":26143,"title":"BUG: Infinite Loop in numpy.base_repr","body":"### Describe the issue:\n\n(...TRUNCATED) | "diff --git a/numpy/_core/numeric.py b/numpy/_core/numeric.py\nindex 429620da5359..d5116cee2756 1006(...TRUNCATED) | "diff --git a/numpy/_core/tests/test_numeric.py b/numpy/_core/tests/test_numeric.py\nindex 3acbb20a1(...TRUNCATED) | true | {"numpy/_core/tests/test_numeric.py::TestBaseRepr::test_minimal_signed_int":{"run":"NONE","test":"FA(...TRUNCATED) | {"numpy/_core/tests/test_numeric.py::TestNonarrayArgs::test_prod":{"run":"PASS","test":"PASS","fix":(...TRUNCATED) | {"numpy/_core/tests/test_numeric.py::TestBaseRepr::test_minimal_signed_int":{"run":"NONE","test":"FA(...TRUNCATED) | {} | {} | {"passed_count":243,"failed_count":0,"skipped_count":0,"passed_tests":["numpy/_core/tests/test_numer(...TRUNCATED) | {"passed_count":243,"failed_count":1,"skipped_count":0,"passed_tests":["numpy/_core/tests/test_numer(...TRUNCATED) | {"passed_count":244,"failed_count":0,"skipped_count":0,"passed_tests":["numpy/_core/tests/test_numer(...TRUNCATED) | numpy__numpy-26192 | |
psf | requests | 5,851 | closed | Fix extract_zipped_paths infinite loop when provided invalid unc path | Fixes https://github.com/psf/requests/issues/5850 | {
"label": "psf:master",
"ref": "master",
"sha": "b227e3cb82c8d42ea27790d615ecafe12528d3bc"
} | [{"number":5850,"title":"Infinite loop when verify is invalid UNC path","body":"When an invalid UNC (...TRUNCATED) | "diff --git a/requests/utils.py b/requests/utils.py\nindex db67938e67..1050de116e 100644\n--- a/requ(...TRUNCATED) | "diff --git a/tests/test_utils.py b/tests/test_utils.py\nindex 463516b2e5..98ffb25a6c 100644\n--- a/(...TRUNCATED) | true | {
"tests/test_utils.py::test_infinite_loop_on_root_split": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {"tests/test_utils.py::test_parse_dict_header":{"run":"PASS","test":"PASS","fix":"PASS"},"tests/test(...TRUNCATED) | {
"tests/test_utils.py::test_infinite_loop_on_root_split": {
"run": "NONE",
"test": "FAIL",
"fix": "PASS"
}
} | {} | {} | {"passed_count":61,"failed_count":0,"skipped_count":1,"passed_tests":["tests/test_utils.py::test_sel(...TRUNCATED) | {"passed_count":62,"failed_count":1,"skipped_count":1,"passed_tests":["tests/test_utils.py::test_sel(...TRUNCATED) | {"passed_count":63,"failed_count":0,"skipped_count":1,"passed_tests":["tests/test_utils.py::test_sel(...TRUNCATED) | psf__requests-5851 |
π Overview
NTBench (Non-Termination Benchmark) is a software engineering dataset containing real-world GitHub pull requests associated with non-termination defects, particularly infinite loops and infinite recursion.
Each instance includes issue-resolution information, developer-provided patches, test modifications, categorized test cases, and test execution results before and after applying the patches.
NTBench is intended to support research on automated program repair, software engineering agents, issue resolution, and the diagnosis and repair of non-termination defects.
βοΈ Usage
# Make sure git-lfs is installed (https://git-lfs.com)
git lfs install
git clone https://huggingface.co/datasets/liheng520/NTBench
π§© Data Instance Structure
Each NTBench instance contains the following fields:
org: (str) - The GitHub organization or repository owner.
repo: (str) - The GitHub repository name.
number: (int) - The pull request number.
state: (str) - The state of the pull request.
title: (str) - The title of the pull request.
body: (str) - The body of the pull request.
base: (dict) - Information about the target branch or base revision of the pull request.
resolved_issues: (list) - A list of issues associated with and resolved by the pull request.
fix_patch: (str) - The source-code patch contributed by the solution pull request.
test_patch: (str) - The test patch associated with the pull request.
fixed_tests: (dict) - Tests identified as relevant to the issue resolution.
p2p_tests: (dict) - Pass-to-Pass tests that pass both before and after applying the fix.
f2p_tests: (dict) - Fail-to-Pass tests that fail before the fix and pass after applying the fix.
s2p_tests: (dict) - Skip-to-Pass tests that are skipped before the fix and pass after applying the fix.
n2p_tests: (dict) - New-to-Pass tests that do not exist before the pull request and pass after applying the corresponding patches.
run_result: (dict) - Overall test execution results, including the numbers of passed and failed tests.
test_patch_result: (dict) - Test execution results after applying the test patch.
fix_patch_result: (dict) - Test execution results after applying both the test patch and the fix patch.
instance_id: (str) - A unique instance identifier, typically formatted as org__repo_PR-number.
π Citation
@inproceedings{TODO,
title = {TODO},
author = {TODO},
booktitle = {TODO},
year = {TODO}
}
π License
The dataset contains metadata, patches, issue information, and test information derived from multiple public GitHub repositories. The original source code and repository contents remain subject to the licenses of their respective upstream projects.
Please consult the license of each original repository before redistributing or reusing repository-derived content. Additional annotations introduced by NTBench are released under the terms specified by this dataset repository.
- Downloads last month
- 17