repo
stringclasses
1 value
instance_id
stringclasses
10 values
base_commit
stringclasses
1 value
patch
stringclasses
8 values
test_outcome_summary
stringclasses
5 values
hints_text
stringclasses
10 values
FAIL_TO_PASS
listlengths
1
89
version
stringclasses
1 value
environment_setup_commit
stringclasses
1 value
seaborn
mwaskom__seaborn18436
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
diff --git a/seaborn/regression.py b/seaborn/regression.py index b9a0c455..e69de29b 100644 --- a/seaborn/regression.py +++ b/seaborn/regression.py @@ -1,950 +0,0 @@ -"""Plotting functions for linear models (broadly construed).""" -import copy -from textwrap import dedent -import warnings -import numpy as np -import pan...
60 failed, 0 skipped, 1 passed.
```python """Plotting functions for linear models (broadly construed).""" import copy from textwrap import dedent import warnings import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt try: import statsmodels assert statsmodels _has_statsmodels = True except ImportE...
[ "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_bad", "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_lists", "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_array", "tests/test_regression.py::TestLinearPlotter::test_establish...
v0.10.0-670-gb4e5f8d2
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
seaborn
mwaskom__seaborn95437
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
diff --git a/seaborn/miscplot.py b/seaborn/miscplot.py index 3fb290c8..a45fd989 100644 --- a/seaborn/miscplot.py +++ b/seaborn/miscplot.py @@ -37,9 +37,11 @@ def dogplot(*_, **__): url = "https://github.com/mwaskom/seaborn-data/raw/master/png/img{}.png" pic = np.random.randint(2, 7) - data = BytesIO(urlo...
1 failed, 0 skipped, 60 passed.
Adding an invalid character `"\x00"` to the URL makes the `urlopen` call fail, causing the `dogplot` function to raise an error when trying to fetch the image from the internet, thus failing unittests that rely on successfully fetching and displaying an image.
[ "tests/test_miscplot.py::TestDogPlot::test_dogplot" ]
v0.10.0-670-gb4e5f8d2
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
seaborn
mwaskom__seaborn7133
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
diff --git a/seaborn/regression.py b/seaborn/regression.py index b9a0c455..e69de29b 100644 --- a/seaborn/regression.py +++ b/seaborn/regression.py @@ -1,950 +0,0 @@ -"""Plotting functions for linear models (broadly construed).""" -import copy -from textwrap import dedent -import warnings -import numpy as np -import pan...
60 failed, 0 skipped, 1 passed.
The bug introduced is in the `scatterplot` method, where the alpha transparency is only set if the `color` array does not have four elements (`if not hasattr(kws['color'], 'shape') or kws['color'].shape[1] < 4:`), which can cause inconsistent behavior. This will fail unittests where alpha transparency should be consist...
[ "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_lists", "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_bad", "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_series", "tests/test_regression.py::TestLinearPlotter::test_establis...
v0.10.0-670-gb4e5f8d2
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
seaborn
mwaskom__seaborn53659
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
diff --git a/seaborn/matrix.py b/seaborn/matrix.py index 6b99c118..662214b3 100644 --- a/seaborn/matrix.py +++ b/seaborn/matrix.py @@ -1,1262 +1,7 @@ -"""Functions to visualize matrices of data.""" -import warnings - -import matplotlib as mpl -from matplotlib.collections import LineCollection -import matplotlib.pyplot ...
89 failed, 0 skipped, 60 passed.
The code change modifies the `_index_to_label` function to return `index.values` instead of `index.name` for a non-MultiIndex, which will lead to incorrect axis labeling and subsequently cause tests that verify axis labels to fail.
[ "tests/test_matrix.py::TestDendrogram::test_label_false", "tests/test_matrix.py::TestDendrogram::test_rotate_axis0_input", "tests/test_matrix.py::TestDendrogram::test_custom_linkage", "tests/test_matrix.py::TestDendrogram::test_linkage_scipy", "tests/test_matrix.py::TestDendrogram::test_axis0_input", "tes...
v0.10.0-670-gb4e5f8d2
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
seaborn
mwaskom__seaborn79461
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
diff --git a/seaborn/miscplot.py b/seaborn/miscplot.py index 3fb290c8..2b0996f3 100644 --- a/seaborn/miscplot.py +++ b/seaborn/miscplot.py @@ -43,3 +43,5 @@ def dogplot(*_, **__): f.subplots_adjust(0, 0, 1, 1) ax.imshow(img) ax.set_axis_off() + # Bug: Let's not close the figure here + plt.close() ...
1 failed, 0 skipped, 89 passed.
The introduced bug is the absence of `plt.close()`, which can cause resource issues or affect subsequent tests that rely on a clean state, leading to failing tests due to unexpected state or memory usage.
[ "tests/test_miscplot.py::TestDogPlot::test_dogplot" ]
v0.10.0-670-gb4e5f8d2
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
seaborn
mwaskom__seaborn29760
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
diff --git a/seaborn/regression.py b/seaborn/regression.py index b9a0c455..cebfa8cf 100644 --- a/seaborn/regression.py +++ b/seaborn/regression.py @@ -1,950 +1,17 @@ -"""Plotting functions for linear models (broadly construed).""" -import copy -from textwrap import dedent -import warnings -import numpy as np -import pa...
60 failed, 0 skipped, 1 passed.
This modification changes the polynomial order used in `np.polyfit` from `order` to `order + 1`, which should cause unittests to fail because the regression calculations will not produce the expected results for polynomial fits, as higher-order polynomials will be used unexpectedly.
[ "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_lists", "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_bad", "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_series", "tests/test_regression.py::TestLinearPlotter::test_establis...
v0.10.0-670-gb4e5f8d2
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
seaborn
mwaskom__seaborn218
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
diff --git a/seaborn/regression.py b/seaborn/regression.py index b9a0c455..ff553ab1 100644 --- a/seaborn/regression.py +++ b/seaborn/regression.py @@ -1,950 +1,2 @@ -"""Plotting functions for linear models (broadly construed).""" -import copy -from textwrap import dedent -import warnings -import numpy as np -import pan...
60 failed, 0 skipped, 1 passed.
The bug is introduced by commenting out the code lines that squeeze a vector to ensure it is 1-dimensional. This will result in the function potentially handling multi-dimensional input improperly, which was previously handled by squeezing the vector, and can cause regression functions expecting 1D input to fail during...
[ "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_lists", "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_bad", "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_array", "tests/test_regression.py::TestLinearPlotter::test_establish...
v0.10.0-670-gb4e5f8d2
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
seaborn
mwaskom__seaborn85249
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
diff --git a/seaborn/regression.py b/seaborn/regression.py index b9a0c455..e69de29b 100644 --- a/seaborn/regression.py +++ b/seaborn/regression.py @@ -1,950 +0,0 @@ -"""Plotting functions for linear models (broadly construed).""" -import copy -from textwrap import dedent -import warnings -import numpy as np -import pan...
60 failed, 0 skipped, 0 passed.
```python """Plotting functions for linear models (broadly construed).""" import copy from textwrap import dedent import warnings import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt try: import statsmodels assert statsmodels _has_statsmodels = True except ImportE...
[ "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_lists", "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_bad", "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_array", "tests/test_regression.py::TestLinearPlotter::test_establish...
v0.10.0-670-gb4e5f8d2
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
seaborn
mwaskom__seaborn39915
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
diff --git a/seaborn/regression.py b/seaborn/regression.py index b9a0c455..9eea4edf 100644 --- a/seaborn/regression.py +++ b/seaborn/regression.py @@ -1,950 +1,13 @@ -"""Plotting functions for linear models (broadly construed).""" -import copy -from textwrap import dedent -import warnings -import numpy as np -import pa...
60 failed, 0 skipped, 1 passed.
The introduced bug makes the `regress_out` function use `np.linalg.inv` instead of `np.linalg.pinv` for computing the pseudo-inverse, which can fail for singular or nearly singular matrices. This will cause tests to fail in cases where the confounding variable `b` does not have full rank.
[ "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_lists", "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_bad", "tests/test_regression.py::TestLinearPlotter::test_establish_variables_from_array", "tests/test_regression.py::TestLinearPlotter::test_establish...
v0.10.0-670-gb4e5f8d2
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
seaborn
mwaskom__seaborn39067
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
diff --git a/seaborn/matrix.py b/seaborn/matrix.py index 6b99c118..3e0f28d8 100644 --- a/seaborn/matrix.py +++ b/seaborn/matrix.py @@ -1,62 +1,3 @@ -"""Functions to visualize matrices of data.""" -import warnings - -import matplotlib as mpl -from matplotlib.collections import LineCollection -import matplotlib.pyplot as...
89 failed, 0 skipped, 60 passed.
The introduced bug is changing the dtype of the mask from bool to int when the mask is initialized to zeros, which can cause logical errors when performing operations or conditions that expect boolean arrays. This can lead to tests failing due to mismatches in expected behaviors when masks are applied to matrices.
[ "tests/test_matrix.py::TestDendrogram::test_label_false", "tests/test_matrix.py::TestDendrogram::test_custom_linkage", "tests/test_matrix.py::TestDendrogram::test_rotate_axis0_input", "tests/test_matrix.py::TestDendrogram::test_linkage_scipy", "tests/test_matrix.py::TestDendrogram::test_axis0_input", "tes...
v0.10.0-670-gb4e5f8d2
b4e5f8d261d6d5524a00b7dd35e00a40e4855872