instance_id
stringlengths
14
33
version
stringclasses
1 value
gold_patches
dict
test_patch
null
pre_patches
dict
pre_scripts
null
repo
stringclasses
11 values
base_commit
stringclasses
11 values
base_commit_timestamp
stringdate
2024-07-22 07:32:48-0400
2024-10-09 00:56:33-0400
hints_text
null
created_at
null
problem_statement
dict
environment_setup_commit
stringclasses
11 values
evaluation
dict
mwaskom__seaborn-0
1.0
{ "code": "diff --git b/seaborn/_core/scales.py a/seaborn/_core/scales.py\nindex 67bb3635..1e7bef8a 100644\n--- b/seaborn/_core/scales.py\n+++ a/seaborn/_core/scales.py\n@@ -629,6 +629,24 @@ class Continuous(ContinuousBase):\n Copy of self with new label configuration.\n \n \"\"\"\n+ # Inpu...
null
{ "code": "diff --git a/seaborn/_core/scales.py b/seaborn/_core/scales.py\nindex 1e7bef8a..67bb3635 100644\n--- a/seaborn/_core/scales.py\n+++ b/seaborn/_core/scales.py\n@@ -629,24 +629,6 @@ class Continuous(ContinuousBase):\n Copy of self with new label configuration.\n \n \"\"\"\n- # Inpu...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/scales.py.\nHere is the description for the function:\n def label(\n self,\n formatter: Formatter | None = None, *,\n like: str | Callable | None = None,\n base: int | None | Default = default,\n unit: str | None = ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test", "tests/_core/test_plot.py::TestLayerAddition::test_without_data", "tests/_core/test_plot.py::TestLayerAddition::test_with_new_variable_by_name", "tests/_core/test_plot.py::TestLayerAddition::test_with_new...
mwaskom__seaborn-1
1.0
{ "code": "diff --git b/seaborn/_core/plot.py a/seaborn/_core/plot.py\nindex 0d0e710f..c9dc61c8 100644\n--- b/seaborn/_core/plot.py\n+++ a/seaborn/_core/plot.py\n@@ -527,6 +527,52 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.add.rst\n \n \"\"\"\n+ if not isinstance(mark, Mark):\n+ ...
null
{ "code": "diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py\nindex c9dc61c8..0d0e710f 100644\n--- a/seaborn/_core/plot.py\n+++ b/seaborn/_core/plot.py\n@@ -527,52 +527,6 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.add.rst\n \n \"\"\"\n- if not isinstance(mark, Mark):\n- ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/plot.py.\nHere is the description for the function:\n def add(\n self,\n mark: Mark,\n *transforms: Stat | Move,\n orient: str | None = None,\n legend: bool = True,\n label: str | None = None,\n data: ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test", "tests/_core/test_plot.py::TestLayerAddition::test_without_data", "tests/_core/test_plot.py::TestLayerAddition::test_with_new_variable_by_name", "tests/_core/test_plot.py::TestLayerAddition::test_with_new...
mwaskom__seaborn-2
1.0
{ "code": "diff --git b/seaborn/_core/plot.py a/seaborn/_core/plot.py\nindex 653dd79c..c9dc61c8 100644\n--- b/seaborn/_core/plot.py\n+++ a/seaborn/_core/plot.py\n@@ -663,6 +663,40 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.facet.rst\n \n \"\"\"\n+ variables: dict[str, VariableSpec...
null
{ "code": "diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py\nindex c9dc61c8..653dd79c 100644\n--- a/seaborn/_core/plot.py\n+++ b/seaborn/_core/plot.py\n@@ -663,40 +663,6 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.facet.rst\n \n \"\"\"\n- variables: dict[str, VariableSpec...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/plot.py.\nHere is the description for the function:\n def facet(\n self,\n col: VariableSpec = None,\n row: VariableSpec = None,\n order: OrderSpec | dict[str, OrderSpec] = None,\n wrap: int | None = None,\n ) ->...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test", "tests/_core/test_plot.py::TestLayerAddition::test_stat_default", "tests/_core/test_plot.py::TestScaling::test_categorical_as_datetime", "tests/_core/test_plot.py::TestScaling::test_faceted_log_scale", ...
mwaskom__seaborn-3
1.0
{ "code": "diff --git b/seaborn/_core/plot.py a/seaborn/_core/plot.py\nindex 72f8eca6..c9dc61c8 100644\n--- b/seaborn/_core/plot.py\n+++ a/seaborn/_core/plot.py\n@@ -461,6 +461,25 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.on.rst\n \n \"\"\"\n+ accepted_types: tuple # Allow tuple...
null
{ "code": "diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py\nindex c9dc61c8..72f8eca6 100644\n--- a/seaborn/_core/plot.py\n+++ b/seaborn/_core/plot.py\n@@ -461,25 +461,6 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.on.rst\n \n \"\"\"\n- accepted_types: tuple # Allow tuple...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/plot.py.\nHere is the description for the function:\n def on(self, target: Axes | SubFigure | Figure) -> Plot:\n \"\"\"\n Provide existing Matplotlib figure or axes for drawing the plot.\n\n When using this method, you will also ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test", "tests/_core/test_plot.py::TestLayerAddition::test_stat_default", "tests/_core/test_plot.py::TestScaling::test_categorical_as_datetime", "tests/_core/test_plot.py::TestScaling::test_log_scale_name", "...
mwaskom__seaborn-4
1.0
{ "code": "diff --git b/seaborn/_core/plot.py a/seaborn/_core/plot.py\nindex c41c5ea7..c9dc61c8 100644\n--- b/seaborn/_core/plot.py\n+++ a/seaborn/_core/plot.py\n@@ -601,6 +601,41 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.pair.rst\n \n \"\"\"\n+ # TODO Add transpose= arg, which w...
null
{ "code": "diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py\nindex c9dc61c8..c41c5ea7 100644\n--- a/seaborn/_core/plot.py\n+++ b/seaborn/_core/plot.py\n@@ -601,41 +601,6 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.pair.rst\n \n \"\"\"\n- # TODO Add transpose= arg, which w...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/plot.py.\nHere is the description for the function:\n def pair(\n self,\n x: VariableSpecList = None,\n y: VariableSpecList = None,\n wrap: int | None = None,\n cross: bool = True,\n ) -> Plot:\n \"\"\"\n ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test", "tests/_core/test_plot.py::TestLayerAddition::test_stat_default", "tests/_core/test_plot.py::TestLayerAddition::test_variable_list", "tests/_core/test_plot.py::TestScaling::test_categorical_as_datetime", ...
mwaskom__seaborn-5
1.0
{ "code": "diff --git b/seaborn/_base.py a/seaborn/_base.py\nindex 1678bd1b..0b435231 100644\n--- b/seaborn/_base.py\n+++ a/seaborn/_base.py\n@@ -1046,6 +1046,123 @@ class VectorPlotter:\n arguments for the x and y axes.\n \n \"\"\"\n+ from .axisgrid import FacetGrid\n+ if isinstance...
null
{ "code": "diff --git a/seaborn/_base.py b/seaborn/_base.py\nindex 0b435231..1678bd1b 100644\n--- a/seaborn/_base.py\n+++ b/seaborn/_base.py\n@@ -1046,123 +1046,6 @@ class VectorPlotter:\n arguments for the x and y axes.\n \n \"\"\"\n- from .axisgrid import FacetGrid\n- if isinstance...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_base.py.\nHere is the description for the function:\n def _attach(\n self,\n obj,\n allowed_types=None,\n log_scale=None,\n ):\n \"\"\"Associate the plotter with an Axes manager and initialize its units.\n\n Pa...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test", "tests/_core/test_plot.py::TestLayerAddition::test_stat_default", "tests/_core/test_plot.py::TestScaling::test_categorical_as_datetime", "tests/_core/test_plot.py::TestScaling::test_log_scale_name", "...
mwaskom__seaborn-6
1.0
{ "code": "diff --git b/seaborn/_base.py a/seaborn/_base.py\nindex 3db7c747..0b435231 100644\n--- b/seaborn/_base.py\n+++ a/seaborn/_base.py\n@@ -879,6 +879,91 @@ class VectorPlotter:\n Subset of ``plot_data`` for this combination of semantic values.\n \n \"\"\"\n+ # TODO should this defaul...
null
{ "code": "diff --git a/seaborn/_base.py b/seaborn/_base.py\nindex 0b435231..3db7c747 100644\n--- a/seaborn/_base.py\n+++ b/seaborn/_base.py\n@@ -879,91 +879,6 @@ class VectorPlotter:\n Subset of ``plot_data`` for this combination of semantic values.\n \n \"\"\"\n- # TODO should this defaul...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_base.py.\nHere is the description for the function:\n def iter_data(\n self, grouping_vars=None, *,\n reverse=False, from_comp_data=False,\n by_facet=True, allow_empty=False, dropna=True,\n ):\n \"\"\"Generator for getting s...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test", "tests/_core/test_plot.py::TestLayerAddition::test_stat_default", "tests/_core/test_plot.py::TestScaling::test_categorical_as_datetime", "tests/_core/test_plot.py::TestScaling::test_log_scale_name", "...
mwaskom__seaborn-7
1.0
{ "code": "diff --git b/seaborn/_base.py a/seaborn/_base.py\nindex d039c441..0b435231 100644\n--- b/seaborn/_base.py\n+++ a/seaborn/_base.py\n@@ -1373,6 +1373,80 @@ class VectorPlotter:\n self\n \n \"\"\"\n+ # This method both modifies the internal representation of the data\n+ # (conver...
null
{ "code": "diff --git a/seaborn/_base.py b/seaborn/_base.py\nindex 0b435231..d039c441 100644\n--- a/seaborn/_base.py\n+++ b/seaborn/_base.py\n@@ -1373,80 +1373,6 @@ class VectorPlotter:\n self\n \n \"\"\"\n- # This method both modifies the internal representation of the data\n- # (conver...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_base.py.\nHere is the description for the function:\n def scale_categorical(self, axis, order=None, formatter=None):\n \"\"\"\n Enforce categorical (fixed-scale) rules for the data on given axis.\n\n Parameters\n ----------\n ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test", "tests/_core/test_plot.py::TestLayerAddition::test_stat_default", "tests/_core/test_plot.py::TestScaling::test_categorical_as_datetime", "tests/_core/test_plot.py::TestScaling::test_log_scale_name", "...
mwaskom__seaborn-8
1.0
{ "code": "diff --git b/seaborn/_base.py a/seaborn/_base.py\nindex 7f383673..0b435231 100644\n--- b/seaborn/_base.py\n+++ a/seaborn/_base.py\n@@ -1760,3 +1760,18 @@ def categorical_order(vector, order=None):\n Ordered list of category levels not including null values.\n \n \"\"\"\n+ if order is None:\n...
null
{ "code": "diff --git a/seaborn/_base.py b/seaborn/_base.py\nindex 0b435231..7f383673 100644\n--- a/seaborn/_base.py\n+++ b/seaborn/_base.py\n@@ -1760,18 +1760,3 @@ def categorical_order(vector, order=None):\n Ordered list of category levels not including null values.\n \n \"\"\"\n- if order is None:\n...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_base.py.\nHere is the description for the function:\ndef categorical_order(vector, order=None):\n \"\"\"Return a list of unique data values.\n\n Determine an ordered list of levels in ``values``.\n\n Parameters\n ----------\n vector : list, ar...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[catplot-kwargs0]", "tests/test_base.py::TestHueMapping::test_plotter_default_init", "tests/test_axisgrid.py::TestFacetGrid::test_self_axes", "tests/test_base.py::TestHueMapping::test_plotter_customization", ...
mwaskom__seaborn-9
1.0
{ "code": "diff --git b/seaborn/_base.py a/seaborn/_base.py\nindex ca7cf36c..0b435231 100644\n--- b/seaborn/_base.py\n+++ a/seaborn/_base.py\n@@ -1590,6 +1590,59 @@ def infer_orient(x=None, y=None, orient=None, require_numeric=True):\n \n \"\"\"\n \n+ x_type = None if x is None else variable_type(x)\n+ y_ty...
null
{ "code": "diff --git a/seaborn/_base.py b/seaborn/_base.py\nindex 0b435231..ca7cf36c 100644\n--- a/seaborn/_base.py\n+++ b/seaborn/_base.py\n@@ -1590,59 +1590,6 @@ def infer_orient(x=None, y=None, orient=None, require_numeric=True):\n \n \"\"\"\n \n- x_type = None if x is None else variable_type(x)\n- y_ty...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_base.py.\nHere is the description for the function:\ndef infer_orient(x=None, y=None, orient=None, require_numeric=True):\n \"\"\"Determine how the plot should be oriented based on the data.\n\n For historical reasons, the convention is to call a plot ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[catplot-kwargs0]", "tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[catplot-kwargs1]", "tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[catplot-kwargs2]", "tests/te...
mwaskom__seaborn-10
1.0
{ "code": "diff --git b/seaborn/_base.py a/seaborn/_base.py\nindex 2a11863c..0b435231 100644\n--- b/seaborn/_base.py\n+++ a/seaborn/_base.py\n@@ -1661,6 +1661,38 @@ def unique_dashes(n):\n dashes.\n \n \"\"\"\n+ # Start with dash specs that are well distinguishable\n+ dashes = [\n+ \"\",\n+ ...
null
{ "code": "diff --git a/seaborn/_base.py b/seaborn/_base.py\nindex 0b435231..2a11863c 100644\n--- a/seaborn/_base.py\n+++ b/seaborn/_base.py\n@@ -1661,38 +1661,6 @@ def unique_dashes(n):\n dashes.\n \n \"\"\"\n- # Start with dash specs that are well distinguishable\n- dashes = [\n- \"\",\n- ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_base.py.\nHere is the description for the function:\ndef unique_dashes(n):\n \"\"\"Build an arbitrarily long list of unique dash styles for lines.\n\n Parameters\n ----------\n n : int\n Number of unique dash specs to generate.\n\n Retu...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_base.py::TestStyleMapping::test_plotter_default_init", "tests/test_base.py::TestStyleMapping::test_plotter_customization", "tests/test_base.py::TestStyleMapping::test_map_style", "tests/test_relational.py::TestRelationalPlotter::test_relplot_complex", "tests/test_ba...
mwaskom__seaborn-11
1.0
{ "code": "diff --git b/seaborn/_base.py a/seaborn/_base.py\nindex 4b716d34..0b435231 100644\n--- b/seaborn/_base.py\n+++ a/seaborn/_base.py\n@@ -1710,6 +1710,35 @@ def unique_markers(n):\n All markers will be filled.\n \n \"\"\"\n+ # Start with marker specs that are well distinguishable\n+ markers ...
null
{ "code": "diff --git a/seaborn/_base.py b/seaborn/_base.py\nindex 0b435231..4b716d34 100644\n--- a/seaborn/_base.py\n+++ b/seaborn/_base.py\n@@ -1710,35 +1710,6 @@ def unique_markers(n):\n All markers will be filled.\n \n \"\"\"\n- # Start with marker specs that are well distinguishable\n- markers ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_base.py.\nHere is the description for the function:\ndef unique_markers(n):\n \"\"\"Build an arbitrarily long list of unique marker styles for points.\n\n Parameters\n ----------\n n : int\n Number of unique marker specs to generate.\n\n ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_base.py::TestStyleMapping::test_plotter_default_init", "tests/test_base.py::TestStyleMapping::test_plotter_customization", "tests/test_base.py::TestStyleMapping::test_map_style", "tests/test_relational.py::TestRelationalPlotter::test_relplot_complex", "tests/test_ba...
mwaskom__seaborn-12
1.0
{ "code": "diff --git b/seaborn/_base.py a/seaborn/_base.py\nindex ae7332c2..0b435231 100644\n--- b/seaborn/_base.py\n+++ a/seaborn/_base.py\n@@ -1492,6 +1492,73 @@ def variable_type(vector, boolean_type=\"numeric\"):\n var_type : 'numeric', 'categorical', or 'datetime'\n Name identifying the type of data...
null
{ "code": "diff --git a/seaborn/_base.py b/seaborn/_base.py\nindex 0b435231..ae7332c2 100644\n--- a/seaborn/_base.py\n+++ b/seaborn/_base.py\n@@ -1492,73 +1492,6 @@ def variable_type(vector, boolean_type=\"numeric\"):\n var_type : 'numeric', 'categorical', or 'datetime'\n Name identifying the type of data...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_base.py.\nHere is the description for the function:\ndef variable_type(vector, boolean_type=\"numeric\"):\n \"\"\"\n Determine whether a vector contains numeric, categorical, or datetime data.\n\n This function differs from the pandas typing API in ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_distributions.py::TestDistPlot::test_hist_bins", "tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[catplot-kwargs0]", "tests/test_base.py::TestHueMapping::test_plotter_default_init", "tests/test_relational.py::TestRelationalPlotter::test_wide_df_va...
mwaskom__seaborn-13
1.0
{ "code": "diff --git b/seaborn/_statistics.py a/seaborn/_statistics.py\nindex 4376a7fc..40346b02 100644\n--- b/seaborn/_statistics.py\n+++ a/seaborn/_statistics.py\n@@ -602,6 +602,19 @@ class LetterValues:\n https://vita.had.co.nz/papers/letter-value-plot.pdf\n \n \"\"\"\n+ k_options = [\"tuke...
null
{ "code": "diff --git a/seaborn/_statistics.py b/seaborn/_statistics.py\nindex 40346b02..4376a7fc 100644\n--- a/seaborn/_statistics.py\n+++ b/seaborn/_statistics.py\n@@ -602,19 +602,6 @@ class LetterValues:\n https://vita.had.co.nz/papers/letter-value-plot.pdf\n \n \"\"\"\n- k_options = [\"tuke...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_statistics.py.\nHere is the description for the function:\n def __init__(self, k_depth, outlier_prop, trust_alpha):\n \"\"\"\n Compute percentiles of a distribution using various tail stopping rules.\n\n Parameters\n ----------...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[boxenplot-kwargs12]", "tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[boxenplot-kwargs13]", "tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[boxenplot-kwargs14]", ...
mwaskom__seaborn-14
1.0
{ "code": "diff --git b/seaborn/_statistics.py a/seaborn/_statistics.py\nindex e5e9c7bf..40346b02 100644\n--- b/seaborn/_statistics.py\n+++ a/seaborn/_statistics.py\n@@ -538,6 +538,22 @@ class WeightedAggregator:\n Additional keywords are passed to bootstrap when error_method is \"ci\".\n \n \"\"\...
null
{ "code": "diff --git a/seaborn/_statistics.py b/seaborn/_statistics.py\nindex 40346b02..e5e9c7bf 100644\n--- a/seaborn/_statistics.py\n+++ b/seaborn/_statistics.py\n@@ -538,22 +538,6 @@ class WeightedAggregator:\n Additional keywords are passed to bootstrap when error_method is \"ci\".\n \n \"\"\...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_statistics.py.\nHere is the description for the function:\n def __init__(self, estimator, errorbar=None, **boot_kws):\n \"\"\"\n Data aggregator that produces a weighted estimate and error bar interval.\n\n Parameters\n -------...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_stats/test_aggregation.py::TestEst::test_weighted_mean", "tests/test_statistics.py::TestWeightedAggregator::test_weighted_mean", "tests/test_statistics.py::TestWeightedAggregator::test_weighted_ci", "tests/test_statistics.py::TestWeightedAggregator::test_limited_estimator",...
mwaskom__seaborn-15
1.0
{ "code": "diff --git b/seaborn/algorithms.py a/seaborn/algorithms.py\nindex 2ff5473a..2e34b9dd 100644\n--- b/seaborn/algorithms.py\n+++ a/seaborn/algorithms.py\n@@ -32,6 +32,73 @@ def bootstrap(*args, **kwargs):\n array of bootstrapped statistic values\n \n \"\"\"\n+ # Ensure list of arrays are same l...
null
{ "code": "diff --git a/seaborn/algorithms.py b/seaborn/algorithms.py\nindex 2e34b9dd..2ff5473a 100644\n--- a/seaborn/algorithms.py\n+++ b/seaborn/algorithms.py\n@@ -32,73 +32,6 @@ def bootstrap(*args, **kwargs):\n array of bootstrapped statistic values\n \n \"\"\"\n- # Ensure list of arrays are same l...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/algorithms.py.\nHere is the description for the function:\ndef bootstrap(*args, **kwargs):\n \"\"\"Resample one or more arrays with replacement and store aggregate values.\n\n Positional arguments are a sequence of arrays to bootstrap along the first\n ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_algorithms.py::test_bootstrap", "tests/test_algorithms.py::test_bootstrap_length", "tests/test_algorithms.py::test_bootstrap_range", "tests/test_algorithms.py::test_bootstrap_multiarg", "tests/test_algorithms.py::test_bootstrap_axis", "tests/test_algorithms.py::...
mwaskom__seaborn-16
1.0
{ "code": "diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex 35ce8622..17d333bc 100644\n--- b/seaborn/axisgrid.py\n+++ a/seaborn/axisgrid.py\n@@ -653,6 +653,32 @@ class FacetGrid(Grid):\n is None.\n \n \"\"\"\n+ data = self.data\n+\n+ # Construct masks for the row variabl...
null
{ "code": "diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..35ce8622 100644\n--- a/seaborn/axisgrid.py\n+++ b/seaborn/axisgrid.py\n@@ -653,32 +653,6 @@ class FacetGrid(Grid):\n is None.\n \n \"\"\"\n- data = self.data\n-\n- # Construct masks for the row variabl...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for the function:\n def facet_data(self):\n \"\"\"Generator for name indices and data subsets for each facet.\n\n Yields\n ------\n (i, j, k), data_ijk : tuple of ints, DataFrame\n ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_relational.py::TestRelationalPlotter::test_relplot_simple", "tests/test_relational.py::TestRelationalPlotter::test_relplot_complex", "tests/test_relational.py::TestRelationalPlotter::test_relplot_vectors[series]", "tests/test_utils.py::test_move_legend_grid_object", ...
mwaskom__seaborn-17
1.0
{ "code": "diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex 2b6b77f7..17d333bc 100644\n--- b/seaborn/axisgrid.py\n+++ a/seaborn/axisgrid.py\n@@ -703,6 +703,64 @@ class FacetGrid(Grid):\n Returns self.\n \n \"\"\"\n+ # If color was a keyword argument, grab it here\n+ kw_c...
null
{ "code": "diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..2b6b77f7 100644\n--- a/seaborn/axisgrid.py\n+++ b/seaborn/axisgrid.py\n@@ -703,64 +703,6 @@ class FacetGrid(Grid):\n Returns self.\n \n \"\"\"\n- # If color was a keyword argument, grab it here\n- kw_c...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for the function:\n def map(self, func, *args, **kwargs):\n \"\"\"Apply a plotting function to each facet's subset of the data.\n\n Parameters\n ----------\n func : callable\n A p...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_utils.py::test_move_legend_grid_object", "tests/test_axisgrid.py::TestFacetGrid::test_legend_data", "tests/test_axisgrid.py::TestFacetGrid::test_legend_data_missing_level", "tests/test_axisgrid.py::TestFacetGrid::test_get_boolean_legend_data", "tests/test_axisgrid.p...
mwaskom__seaborn-18
1.0
{ "code": "diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex b1312123..17d333bc 100644\n--- b/seaborn/axisgrid.py\n+++ a/seaborn/axisgrid.py\n@@ -791,6 +791,48 @@ class FacetGrid(Grid):\n \n \"\"\"\n \n+ # If color was a keyword argument, grab it here\n+ kw_color = kwargs.pop(\"color...
null
{ "code": "diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..b1312123 100644\n--- a/seaborn/axisgrid.py\n+++ b/seaborn/axisgrid.py\n@@ -791,48 +791,6 @@ class FacetGrid(Grid):\n \n \"\"\"\n \n- # If color was a keyword argument, grab it here\n- kw_color = kwargs.pop(\"color...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for the function:\n def map_dataframe(self, func, *args, **kwargs):\n \"\"\"Like ``.map`` but passes args as strings and inserts data in kwargs.\n\n This method is suitable for plotting with functions tha...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_relational.py::TestRelationalPlotter::test_relplot_simple", "tests/test_relational.py::TestRelationalPlotter::test_relplot_complex", "tests/test_relational.py::TestRelationalPlotter::test_relplot_vectors[series]", "tests/test_relational.py::TestRelationalPlotter::test_r...
mwaskom__seaborn-19
1.0
{ "code": "diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex 296907d1..17d333bc 100644\n--- b/seaborn/axisgrid.py\n+++ a/seaborn/axisgrid.py\n@@ -1055,6 +1055,16 @@ class FacetGrid(Grid):\n Returns ``self`` for easy method chaining.\n \n \"\"\"\n+ line_kws['color'] = color\n+ ...
null
{ "code": "diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..296907d1 100644\n--- a/seaborn/axisgrid.py\n+++ b/seaborn/axisgrid.py\n@@ -1055,16 +1055,6 @@ class FacetGrid(Grid):\n Returns ``self`` for easy method chaining.\n \n \"\"\"\n- line_kws['color'] = color\n- ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for the function:\n def refline(self, *, x=None, y=None, color='.5', linestyle='--', **line_kws):\n \"\"\"Add a reference line(s) to each facet.\n\n Parameters\n ----------\n x, y : numeric\...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_axisgrid.py::TestFacetGrid::test_refline" ], "PASS_TO_PASS": null }
mwaskom__seaborn-20
1.0
{ "code": "diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex 1ff7828f..17d333bc 100644\n--- b/seaborn/axisgrid.py\n+++ a/seaborn/axisgrid.py\n@@ -963,6 +963,74 @@ class FacetGrid(Grid):\n Returns self.\n \n \"\"\"\n+ args = dict(row_var=self._row_var, col_var=self._col_var)\n+ ...
null
{ "code": "diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..1ff7828f 100644\n--- a/seaborn/axisgrid.py\n+++ b/seaborn/axisgrid.py\n@@ -963,74 +963,6 @@ class FacetGrid(Grid):\n Returns self.\n \n \"\"\"\n- args = dict(row_var=self._row_var, col_var=self._col_var)\n- ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for the function:\n def set_titles(self, template=None, row_template=None, col_template=None, **kwargs):\n \"\"\"Draw titles either above each facet or on the grid margins.\n\n Parameters\n -------...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[catplot-kwargs0]", "tests/test_axisgrid.py::TestFacetGrid::test_self_data", "tests/test_axisgrid.py::TestFacetGrid::test_self_figure", "tests/test_relational.py::TestRelationalPlotter::test_relplot_simple", ...
mwaskom__seaborn-21
1.0
{ "code": "diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex b8333041..17d333bc 100644\n--- b/seaborn/axisgrid.py\n+++ a/seaborn/axisgrid.py\n@@ -151,6 +151,81 @@ class Grid(_BaseGrid):\n Returns self for easy chaining.\n \n \"\"\"\n+ # Find the data for the legend\n+ if ...
null
{ "code": "diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..b8333041 100644\n--- a/seaborn/axisgrid.py\n+++ b/seaborn/axisgrid.py\n@@ -151,81 +151,6 @@ class Grid(_BaseGrid):\n Returns self for easy chaining.\n \n \"\"\"\n- # Find the data for the legend\n- if ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for the function:\n def add_legend(self, legend_data=None, title=None, label_order=None,\n adjust_subtitles=False, **kwargs):\n \"\"\"Draw a legend, maybe placing it outside axes and resizing t...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[catplot-kwargs0]", "tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[catplot-kwargs1]", "tests/test_relational.py::TestRelationalPlotter::test_relplot_complex", "tests/test_categorical.py:...
mwaskom__seaborn-22
1.0
{ "code": "diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex 7c01ad95..17d333bc 100644\n--- b/seaborn/axisgrid.py\n+++ a/seaborn/axisgrid.py\n@@ -301,6 +301,9 @@ class Grid(_BaseGrid):\n Returns self for easy chaining.\n \n \"\"\"\n+ for ax in self.figure.axes:\n+ ax....
null
{ "code": "diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..7c01ad95 100644\n--- a/seaborn/axisgrid.py\n+++ b/seaborn/axisgrid.py\n@@ -301,9 +301,6 @@ class Grid(_BaseGrid):\n Returns self for easy chaining.\n \n \"\"\"\n- for ax in self.figure.axes:\n- ax....
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for the function:\n def tick_params(self, axis='both', **kwargs):\n \"\"\"Modify the ticks, tick labels, and gridlines.\n\n Parameters\n ----------\n axis : {'x', 'y', 'both'}\n T...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_axisgrid.py::TestFacetGrid::test_tick_params", "tests/test_axisgrid.py::TestPairGrid::test_tick_params" ], "PASS_TO_PASS": null }
mwaskom__seaborn-23
1.0
{ "code": "diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex 847b0f7b..17d333bc 100644\n--- b/seaborn/axisgrid.py\n+++ a/seaborn/axisgrid.py\n@@ -1795,6 +1795,9 @@ class JointGrid(_BaseGrid):\n Returns ``self`` for easy method chaining.\n \n \"\"\"\n+ self.plot_marginals(margina...
null
{ "code": "diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..847b0f7b 100644\n--- a/seaborn/axisgrid.py\n+++ b/seaborn/axisgrid.py\n@@ -1795,9 +1795,6 @@ class JointGrid(_BaseGrid):\n Returns ``self`` for easy method chaining.\n \n \"\"\"\n- self.plot_marginals(margina...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for the function:\n def plot(self, joint_func, marginal_func, **kwargs):\n \"\"\"Draw the plot by passing functions for joint and marginal axes.\n\n This method passes the ``kwargs`` dictionary to both fu...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_axisgrid.py::TestJointGrid::test_plot", "tests/test_axisgrid.py::TestJointGrid::test_refline" ], "PASS_TO_PASS": null }
mwaskom__seaborn-24
1.0
{ "code": "diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex e373efe2..17d333bc 100644\n--- b/seaborn/axisgrid.py\n+++ a/seaborn/axisgrid.py\n@@ -1819,6 +1819,21 @@ class JointGrid(_BaseGrid):\n Returns ``self`` for easy method chaining.\n \n \"\"\"\n+ kwargs = kwargs.copy()\n+ ...
null
{ "code": "diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..e373efe2 100644\n--- a/seaborn/axisgrid.py\n+++ b/seaborn/axisgrid.py\n@@ -1819,21 +1819,6 @@ class JointGrid(_BaseGrid):\n Returns ``self`` for easy method chaining.\n \n \"\"\"\n- kwargs = kwargs.copy()\n- ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for the function:\n def plot_joint(self, func, **kwargs):\n \"\"\"Draw a bivariate plot on the joint axes of the grid.\n\n Parameters\n ----------\n func : plotting callable\n If ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_axisgrid.py::TestJointGrid::test_bivariate_plot", "tests/test_axisgrid.py::TestJointGrid::test_plot", "tests/test_axisgrid.py::TestJointGrid::test_hue[True]", "tests/test_axisgrid.py::TestJointGrid::test_hue[False]", "tests/test_axisgrid.py::TestJointGrid::test_refl...
mwaskom__seaborn-25
1.0
{ "code": "diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex 5ad61e91..17d333bc 100644\n--- b/seaborn/axisgrid.py\n+++ a/seaborn/axisgrid.py\n@@ -1856,6 +1856,45 @@ class JointGrid(_BaseGrid):\n Returns ``self`` for easy method chaining.\n \n \"\"\"\n+ seaborn_func = (\n+ ...
null
{ "code": "diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..5ad61e91 100644\n--- a/seaborn/axisgrid.py\n+++ b/seaborn/axisgrid.py\n@@ -1856,45 +1856,6 @@ class JointGrid(_BaseGrid):\n Returns ``self`` for easy method chaining.\n \n \"\"\"\n- seaborn_func = (\n- ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for the function:\n def plot_marginals(self, func, **kwargs):\n \"\"\"Draw univariate plots on each marginal axes.\n\n Parameters\n ----------\n func : plotting callable\n If a se...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_axisgrid.py::TestJointGrid::test_univariate_plot", "tests/test_axisgrid.py::TestJointGrid::test_univariate_plot_distplot", "tests/test_axisgrid.py::TestJointGrid::test_univariate_plot_matplotlib", "tests/test_axisgrid.py::TestJointGrid::test_plot", "tests/test_axisg...
mwaskom__seaborn-26
1.0
{ "code": "diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex 31e8b7f9..17d333bc 100644\n--- b/seaborn/axisgrid.py\n+++ a/seaborn/axisgrid.py\n@@ -1923,6 +1923,22 @@ class JointGrid(_BaseGrid):\n Returns ``self`` for easy method chaining.\n \n \"\"\"\n+ line_kws['color'] = color\...
null
{ "code": "diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..31e8b7f9 100644\n--- a/seaborn/axisgrid.py\n+++ b/seaborn/axisgrid.py\n@@ -1923,22 +1923,6 @@ class JointGrid(_BaseGrid):\n Returns ``self`` for easy method chaining.\n \n \"\"\"\n- line_kws['color'] = color\...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for the function:\n def refline(\n self, *, x=None, y=None, joint=True, marginal=True,\n color='.5', linestyle='--', **line_kws\n ):\n \"\"\"Add a reference line(s) to joint and/or marginal axes...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_axisgrid.py::TestJointGrid::test_refline" ], "PASS_TO_PASS": null }
mwaskom__seaborn-27
1.0
{ "code": "diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex 22b78dc1..17d333bc 100644\n--- b/seaborn/axisgrid.py\n+++ a/seaborn/axisgrid.py\n@@ -1959,6 +1959,9 @@ class JointGrid(_BaseGrid):\n Returns ``self`` for easy method chaining.\n \n \"\"\"\n+ self.ax_joint.set_xlabel(xl...
null
{ "code": "diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..22b78dc1 100644\n--- a/seaborn/axisgrid.py\n+++ b/seaborn/axisgrid.py\n@@ -1959,9 +1959,6 @@ class JointGrid(_BaseGrid):\n Returns ``self`` for easy method chaining.\n \n \"\"\"\n- self.ax_joint.set_xlabel(xl...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for the function:\n def set_axis_labels(self, xlabel=\"\", ylabel=\"\", **kwargs):\n \"\"\"Set axis labels on the bivariate axes.\n\n Parameters\n ----------\n xlabel, ylabel : strings\n ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_axisgrid.py::TestJointGrid::test_margin_grid_axis_labels" ], "PASS_TO_PASS": null }
mwaskom__seaborn-28
1.0
{ "code": "diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex afd71e95..17d333bc 100644\n--- b/seaborn/axisgrid.py\n+++ a/seaborn/axisgrid.py\n@@ -1244,6 +1244,125 @@ class PairGrid(Grid):\n \n \"\"\"\n \n+ super().__init__()\n+ data = handle_data_source(data)\n+\n+ # Sort out ...
null
{ "code": "diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..afd71e95 100644\n--- a/seaborn/axisgrid.py\n+++ b/seaborn/axisgrid.py\n@@ -1244,125 +1244,6 @@ class PairGrid(Grid):\n \n \"\"\"\n \n- super().__init__()\n- data = handle_data_source(data)\n-\n- # Sort out ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for the function:\n def __init__(\n self, data, *, hue=None, vars=None, x_vars=None, y_vars=None,\n hue_order=None, palette=None, hue_kws=None, corner=False, diag_sharey=True,\n height=2.5, aspect=...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_axisgrid.py::TestPairGrid::test_self_data", "tests/test_axisgrid.py::TestPairGrid::test_ignore_datelike_data", "tests/test_axisgrid.py::TestPairGrid::test_self_figure", "tests/test_axisgrid.py::TestPairGrid::test_self_axes", "tests/test_axisgrid.py::TestPairGrid::te...
mwaskom__seaborn-29
1.0
{ "code": "diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex ea0be412..17d333bc 100644\n--- b/seaborn/axisgrid.py\n+++ a/seaborn/axisgrid.py\n@@ -2089,6 +2089,96 @@ def pairplot(\n .. include:: ../docstrings/pairplot.rst\n \n \"\"\"\n+ # Avoid circular import\n+ from .distributions import hi...
null
{ "code": "diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..ea0be412 100644\n--- a/seaborn/axisgrid.py\n+++ b/seaborn/axisgrid.py\n@@ -2089,96 +2089,6 @@ def pairplot(\n .. include:: ../docstrings/pairplot.rst\n \n \"\"\"\n- # Avoid circular import\n- from .distributions import hi...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for the function:\ndef pairplot(\n data, *,\n hue=None, hue_order=None, palette=None,\n vars=None, x_vars=None, y_vars=None,\n kind=\"scatter\", diag_kind=\"auto\", markers=None,\n height=2.5, aspect=1, cor...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_axisgrid.py::TestPairGrid::test_pairplot", "tests/test_axisgrid.py::TestPairGrid::test_pairplot_reg", "tests/test_axisgrid.py::TestPairGrid::test_pairplot_reg_hue", "tests/test_axisgrid.py::TestPairGrid::test_pairplot_diag_kde", "tests/test_axisgrid.py::TestPairGrid...
mwaskom__seaborn-30
1.0
{ "code": "diff --git b/seaborn/_marks/base.py a/seaborn/_marks/base.py\nindex 528bfea2..ac8fdf4a 100644\n--- b/seaborn/_marks/base.py\n+++ a/seaborn/_marks/base.py\n@@ -149,6 +149,53 @@ class Mark:\n of values with matching length).\n \n \"\"\"\n+ feature = self._mappable_props[name]\n+ ...
null
{ "code": "diff --git a/seaborn/_marks/base.py b/seaborn/_marks/base.py\nindex ac8fdf4a..528bfea2 100644\n--- a/seaborn/_marks/base.py\n+++ b/seaborn/_marks/base.py\n@@ -149,53 +149,6 @@ class Mark:\n of values with matching length).\n \n \"\"\"\n- feature = self._mappable_props[name]\n- ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_marks/base.py.\nHere is the description for the function:\n def _resolve(\n self,\n data: DataFrame | dict[str, Any],\n name: str,\n scales: dict[str, Scale] | None = None,\n ) -> Any:\n \"\"\"Obtain default, specifie...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_marks/test_base.py::TestMappable::test_value", "tests/_marks/test_area.py::TestArea::test_single_defaults", "tests/_marks/test_text.py::TestText::test_simple", "tests/_marks/test_dot.py::TestDot::test_simple", "tests/_marks/test_line.py::TestPath::test_xy_data", "te...
mwaskom__seaborn-31
1.0
{ "code": "diff --git b/seaborn/_marks/base.py a/seaborn/_marks/base.py\nindex b8ee4146..ac8fdf4a 100644\n--- b/seaborn/_marks/base.py\n+++ a/seaborn/_marks/base.py\n@@ -265,6 +265,34 @@ def resolve_color(\n Support \"color\", \"fillcolor\", etc.\n \n \"\"\"\n+ color = mark._resolve(data, f\"{prefix}co...
null
{ "code": "diff --git a/seaborn/_marks/base.py b/seaborn/_marks/base.py\nindex ac8fdf4a..b8ee4146 100644\n--- a/seaborn/_marks/base.py\n+++ b/seaborn/_marks/base.py\n@@ -265,34 +265,6 @@ def resolve_color(\n Support \"color\", \"fillcolor\", etc.\n \n \"\"\"\n- color = mark._resolve(data, f\"{prefix}co...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_marks/base.py.\nHere is the description for the function:\ndef resolve_color(\n mark: Mark,\n data: DataFrame | dict,\n prefix: str = \"\",\n scales: dict[str, Scale] | None = None,\n) -> RGBATuple | ndarray:\n \"\"\"\n Obtain a default, sp...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_marks/test_bar.py::TestBar::test_categorical_positions_vertical", "tests/_marks/test_dot.py::TestDot::test_simple", "tests/_marks/test_text.py::TestText::test_simple", "tests/_marks/test_area.py::TestArea::test_single_defaults", "tests/_marks/test_line.py::TestPath::tes...
mwaskom__seaborn-32
1.0
{ "code": "diff --git b/seaborn/_core/rules.py a/seaborn/_core/rules.py\nindex 30ddcbb4..de6c651d 100644\n--- b/seaborn/_core/rules.py\n+++ a/seaborn/_core/rules.py\n@@ -160,3 +160,14 @@ def categorical_order(vector: Series, order: list | None = None) -> list:\n Ordered list of category levels not including n...
null
{ "code": "diff --git a/seaborn/_core/rules.py b/seaborn/_core/rules.py\nindex de6c651d..30ddcbb4 100644\n--- a/seaborn/_core/rules.py\n+++ b/seaborn/_core/rules.py\n@@ -160,14 +160,3 @@ def categorical_order(vector: Series, order: list | None = None) -> list:\n Ordered list of category levels not including n...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/rules.py.\nHere is the description for the function:\ndef categorical_order(vector: Series, order: list | None = None) -> list:\n \"\"\"\n Return a list of unique data values using seaborn's ordering rules.\n\n Parameters\n ----------\n v...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test", "tests/_core/test_groupby.py::test_agg_one_grouper", "tests/_core/test_groupby.py::test_agg_two_groupers", "tests/_core/test_groupby.py::test_apply_one_grouper", "tests/_core/test_groupby.py::test_app...
mwaskom__seaborn-33
1.0
{ "code": "diff --git b/seaborn/palettes.py a/seaborn/palettes.py\nindex 164120cb..f7f42984 100644\n--- b/seaborn/palettes.py\n+++ a/seaborn/palettes.py\n@@ -171,6 +171,88 @@ def color_palette(palette=None, n_colors=None, desat=None, as_cmap=False):\n .. include:: ../docstrings/color_palette.rst\n \n \"\"\"\n...
null
{ "code": "diff --git a/seaborn/palettes.py b/seaborn/palettes.py\nindex f7f42984..164120cb 100644\n--- a/seaborn/palettes.py\n+++ b/seaborn/palettes.py\n@@ -171,88 +171,6 @@ def color_palette(palette=None, n_colors=None, desat=None, as_cmap=False):\n .. include:: ../docstrings/color_palette.rst\n \n \"\"\"\n...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/palettes.py.\nHere is the description for the function:\ndef color_palette(palette=None, n_colors=None, desat=None, as_cmap=False):\n \"\"\"Return a list of colors or continuous colormap defining a palette.\n\n Possible ``palette`` values include:\n ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test", "tests/_core/test_properties.py::TestColor::test_nominal_default_palette", "tests/_core/test_properties.py::TestColor::test_nominal_default_palette_large", "tests/_core/test_properties.py::TestColor::test...
mwaskom__seaborn-34
1.0
{ "code": "diff --git b/seaborn/utils.py a/seaborn/utils.py\nindex 9e6a20ff..98720ba3 100644\n--- b/seaborn/utils.py\n+++ a/seaborn/utils.py\n@@ -160,6 +160,27 @@ def desaturate(color, prop):\n desaturated color code in RGB tuple representation\n \n \"\"\"\n+ # Check inputs\n+ if not 0 <= prop <= 1:...
null
{ "code": "diff --git a/seaborn/utils.py b/seaborn/utils.py\nindex 98720ba3..9e6a20ff 100644\n--- a/seaborn/utils.py\n+++ b/seaborn/utils.py\n@@ -160,27 +160,6 @@ def desaturate(color, prop):\n desaturated color code in RGB tuple representation\n \n \"\"\"\n- # Check inputs\n- if not 0 <= prop <= 1:...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/utils.py.\nHere is the description for the function:\ndef desaturate(color, prop):\n \"\"\"Decrease the saturation channel of a color by some percent.\n\n Parameters\n ----------\n color : matplotlib color\n hex, rgb-tuple, or html color na...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test", "tests/_core/test_plot.py::TestLayerAddition::test_stat_default", "tests/_core/test_plot.py::TestScaling::test_categorical_as_datetime", "tests/_core/test_plot.py::TestScaling::test_log_scale_name", "...
mwaskom__seaborn-35
1.0
{ "code": "diff --git b/seaborn/_core/groupby.py a/seaborn/_core/groupby.py\nindex 4db97378..cb63c670 100644\n--- b/seaborn/_core/groupby.py\n+++ a/seaborn/_core/groupby.py\n@@ -39,6 +39,12 @@ class GroupBy:\n data; these will be dropped before the groups are defined.\n \n \"\"\"\n+ if not ...
null
{ "code": "diff --git a/seaborn/_core/groupby.py b/seaborn/_core/groupby.py\nindex cb63c670..4db97378 100644\n--- a/seaborn/_core/groupby.py\n+++ b/seaborn/_core/groupby.py\n@@ -39,12 +39,6 @@ class GroupBy:\n data; these will be dropped before the groups are defined.\n \n \"\"\"\n- if not ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/groupby.py.\nHere is the description for the function:\n def __init__(self, order: list[str] | dict[str, list | None]):\n \"\"\"\n Initialize the GroupBy from grouping variables and optional level orders.\n\n Parameters\n ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_stats/test_counting.py::TestCount::test_single_grouper", "tests/_core/test_moves.py::TestJitter::test_default", "tests/_stats/test_aggregation.py::TestAgg::test_default", "tests/_core/test_groupby.py::test_init_from_list", "tests/_stats/test_order.py::TestPerc::test_int...
mwaskom__seaborn-36
1.0
{ "code": "diff --git b/seaborn/external/kde.py a/seaborn/external/kde.py\nindex dc41f918..6add4e19 100644\n--- b/seaborn/external/kde.py\n+++ a/seaborn/external/kde.py\n@@ -229,6 +229,41 @@ class gaussian_kde:\n the dimensionality of the KDE.\n \n \"\"\"\n+ points = atleast_2d(asa...
null
{ "code": "diff --git a/seaborn/external/kde.py b/seaborn/external/kde.py\nindex 6add4e19..dc41f918 100644\n--- a/seaborn/external/kde.py\n+++ b/seaborn/external/kde.py\n@@ -229,41 +229,6 @@ class gaussian_kde:\n the dimensionality of the KDE.\n \n \"\"\"\n- points = atleast_2d(asa...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/external/kde.py.\nHere is the description for the function:\n def evaluate(self, points):\n \"\"\"Evaluate the estimated pdf on a set of points.\n\n Parameters\n ----------\n points : (# of dimensions, # of points)-array\n ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_distributions.py::TestDistPlot::test_hist_bins", "tests/test_statistics.py::TestKDE::test_gridsize", "tests/_stats/test_density.py::TestKDE::test_columns[x]", "tests/test_statistics.py::TestKDE::test_cut", "tests/_stats/test_density.py::TestKDE::test_columns[y]", ...
mwaskom__seaborn-37
1.0
{ "code": "diff --git b/seaborn/external/kde.py a/seaborn/external/kde.py\nindex ae986f29..6add4e19 100644\n--- b/seaborn/external/kde.py\n+++ a/seaborn/external/kde.py\n@@ -316,6 +316,24 @@ class gaussian_kde:\n .. versionadded:: 0.11\n \n \"\"\"\n+ if bw_method is None:\n+ pass\n+ ...
null
{ "code": "diff --git a/seaborn/external/kde.py b/seaborn/external/kde.py\nindex 6add4e19..ae986f29 100644\n--- a/seaborn/external/kde.py\n+++ b/seaborn/external/kde.py\n@@ -316,24 +316,6 @@ class gaussian_kde:\n .. versionadded:: 0.11\n \n \"\"\"\n- if bw_method is None:\n- pass\n- ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/external/kde.py.\nHere is the description for the function:\n def set_bandwidth(self, bw_method=None):\n \"\"\"Compute the estimator bandwidth with given method.\n\n The new bandwidth calculated after a call to `set_bandwidth` is used\n ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_distributions.py::TestDistPlot::test_hist_bins", "tests/_stats/test_density.py::TestKDE::test_columns[x]", "tests/test_statistics.py::TestKDE::test_gridsize", "tests/_stats/test_density.py::TestKDE::test_columns[y]", "tests/test_statistics.py::TestKDE::test_cut", ...
mwaskom__seaborn-38
1.0
{ "code": "diff --git b/seaborn/utils.py a/seaborn/utils.py\nindex 13577802..98720ba3 100644\n--- b/seaborn/utils.py\n+++ a/seaborn/utils.py\n@@ -553,6 +553,80 @@ def load_dataset(name, cache=True, data_home=None, **kws):\n Tabular data, possibly with some preprocessing applied.\n \n \"\"\"\n+ # A comm...
null
{ "code": "diff --git a/seaborn/utils.py b/seaborn/utils.py\nindex 98720ba3..13577802 100644\n--- a/seaborn/utils.py\n+++ b/seaborn/utils.py\n@@ -553,80 +553,6 @@ def load_dataset(name, cache=True, data_home=None, **kws):\n Tabular data, possibly with some preprocessing applied.\n \n \"\"\"\n- # A comm...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/utils.py.\nHere is the description for the function:\ndef load_dataset(name, cache=True, data_home=None, **kws):\n \"\"\"Load an example dataset from the online repository (requires internet).\n\n This function provides quick access to a small number of...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test", "tests/_core/test_plot.py::TestLayerAddition::test_stat_default", "tests/_core/test_plot.py::TestScaling::test_categorical_as_datetime", "tests/_core/test_plot.py::TestScaling::test_log_scale_name", "...
mwaskom__seaborn-39
1.0
{ "code": "diff --git b/seaborn/matrix.py a/seaborn/matrix.py\nindex ed947415..6b99c118 100644\n--- b/seaborn/matrix.py\n+++ a/seaborn/matrix.py\n@@ -1246,3 +1246,17 @@ def clustermap(\n .. include:: ../docstrings/clustermap.rst\n \n \"\"\"\n+ if _no_scipy:\n+ raise RuntimeError(\"clustermap require...
null
{ "code": "diff --git a/seaborn/matrix.py b/seaborn/matrix.py\nindex 6b99c118..ed947415 100644\n--- a/seaborn/matrix.py\n+++ b/seaborn/matrix.py\n@@ -1246,17 +1246,3 @@ def clustermap(\n .. include:: ../docstrings/clustermap.rst\n \n \"\"\"\n- if _no_scipy:\n- raise RuntimeError(\"clustermap require...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/matrix.py.\nHere is the description for the function:\ndef clustermap(\n data, *,\n pivot_kws=None, method='average', metric='euclidean',\n z_score=None, standard_scale=None, figsize=(10, 10),\n cbar_kws=None, row_cluster=True, col_cluster=True,\n...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_matrix.py::test_required_scipy_errors" ], "PASS_TO_PASS": null }
mwaskom__seaborn-40
1.0
{ "code": "diff --git b/seaborn/matrix.py a/seaborn/matrix.py\nindex 5a24200c..6b99c118 100644\n--- b/seaborn/matrix.py\n+++ a/seaborn/matrix.py\n@@ -681,6 +681,16 @@ def dendrogram(\n dendrogramplotter.reordered_ind\n \n \"\"\"\n+ if _no_scipy:\n+ raise RuntimeError(\"dendrogram requires scipy to b...
null
{ "code": "diff --git a/seaborn/matrix.py b/seaborn/matrix.py\nindex 6b99c118..5a24200c 100644\n--- a/seaborn/matrix.py\n+++ b/seaborn/matrix.py\n@@ -681,16 +681,6 @@ def dendrogram(\n dendrogramplotter.reordered_ind\n \n \"\"\"\n- if _no_scipy:\n- raise RuntimeError(\"dendrogram requires scipy to b...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/matrix.py.\nHere is the description for the function:\ndef dendrogram(\n data, *,\n linkage=None, axis=1, label=True, metric='euclidean',\n method='average', rotate=False, tree_kws=None, ax=None\n):\n \"\"\"Draw a tree diagram of relationships wit...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_matrix.py::test_required_scipy_errors" ], "PASS_TO_PASS": null }
mwaskom__seaborn-41
1.0
{ "code": "diff --git b/seaborn/matrix.py a/seaborn/matrix.py\nindex 7a141374..6b99c118 100644\n--- b/seaborn/matrix.py\n+++ a/seaborn/matrix.py\n@@ -442,6 +442,22 @@ def heatmap(\n .. include:: ../docstrings/heatmap.rst\n \n \"\"\"\n+ # Initialize the plotter object\n+ plotter = _HeatMapper(data, vmin,...
null
{ "code": "diff --git a/seaborn/matrix.py b/seaborn/matrix.py\nindex 6b99c118..7a141374 100644\n--- a/seaborn/matrix.py\n+++ b/seaborn/matrix.py\n@@ -442,22 +442,6 @@ def heatmap(\n .. include:: ../docstrings/heatmap.rst\n \n \"\"\"\n- # Initialize the plotter object\n- plotter = _HeatMapper(data, vmin,...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/matrix.py.\nHere is the description for the function:\ndef heatmap(\n data, *,\n vmin=None, vmax=None, cmap=None, center=None, robust=False,\n annot=None, fmt=\".2g\", annot_kws=None,\n linewidths=0, linecolor=\"white\",\n cbar=True, cbar_kws=N...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_matrix.py::TestHeatmap::test_default_colors", "tests/test_matrix.py::TestHeatmap::test_custom_vlim_colors", "tests/test_matrix.py::TestHeatmap::test_custom_center_colors", "tests/test_matrix.py::TestHeatmap::test_explicit_none_norm", "tests/test_matrix.py::TestHeatm...
mwaskom__seaborn-42
1.0
{ "code": "diff --git b/seaborn/palettes.py a/seaborn/palettes.py\nindex e5a8e08d..f7f42984 100644\n--- b/seaborn/palettes.py\n+++ a/seaborn/palettes.py\n@@ -600,6 +600,13 @@ def blend_palette(colors, n_colors=6, as_cmap=False, input=\"rgb\"):\n .. include: ../docstrings/blend_palette.rst\n \n \"\"\"\n+ co...
null
{ "code": "diff --git a/seaborn/palettes.py b/seaborn/palettes.py\nindex f7f42984..e5a8e08d 100644\n--- a/seaborn/palettes.py\n+++ b/seaborn/palettes.py\n@@ -600,13 +600,6 @@ def blend_palette(colors, n_colors=6, as_cmap=False, input=\"rgb\"):\n .. include: ../docstrings/blend_palette.rst\n \n \"\"\"\n- co...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/palettes.py.\nHere is the description for the function:\ndef blend_palette(colors, n_colors=6, as_cmap=False, input=\"rgb\"):\n \"\"\"Make a palette that blends between a list of colors.\n\n Parameters\n ----------\n colors : sequence of colors in...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_scales.py::TestContinuous::test_color_tuple_values", "tests/_core/test_properties.py::TestColor::test_continuous_tuple_palette", "tests/test_palettes.py::TestColorPalettes::test_mpl_dark_palette", "tests/_core/test_scales.py::TestContinuous::test_color_callable_va...
mwaskom__seaborn-43
1.0
{ "code": "diff --git b/seaborn/palettes.py a/seaborn/palettes.py\nindex 174e514a..f7f42984 100644\n--- b/seaborn/palettes.py\n+++ a/seaborn/palettes.py\n@@ -658,6 +658,8 @@ def crayon_palette(colors):\n xkcd_palette : Make a palette with named colors from the XKCD color survey.\n \n \"\"\"\n+ palette = [c...
null
{ "code": "diff --git a/seaborn/palettes.py b/seaborn/palettes.py\nindex f7f42984..174e514a 100644\n--- a/seaborn/palettes.py\n+++ b/seaborn/palettes.py\n@@ -658,8 +658,6 @@ def crayon_palette(colors):\n xkcd_palette : Make a palette with named colors from the XKCD color survey.\n \n \"\"\"\n- palette = [c...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/palettes.py.\nHere is the description for the function:\ndef crayon_palette(colors):\n \"\"\"Make a palette with color names from Crayola crayons.\n\n Colors are taken from here:\n https://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors\n\n Th...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_palettes.py::TestColorPalettes::test_crayon_palette" ], "PASS_TO_PASS": null }
mwaskom__seaborn-44
1.0
{ "code": "diff --git b/seaborn/palettes.py a/seaborn/palettes.py\nindex f4770be1..f7f42984 100644\n--- b/seaborn/palettes.py\n+++ a/seaborn/palettes.py\n@@ -721,6 +721,44 @@ def cubehelix_palette(n_colors=6, start=0, rot=.4, gamma=1.0, hue=0.8,\n .. include:: ../docstrings/cubehelix_palette.rst\n \n \"\"\"\n...
null
{ "code": "diff --git a/seaborn/palettes.py b/seaborn/palettes.py\nindex f7f42984..f4770be1 100644\n--- a/seaborn/palettes.py\n+++ b/seaborn/palettes.py\n@@ -721,44 +721,6 @@ def cubehelix_palette(n_colors=6, start=0, rot=.4, gamma=1.0, hue=0.8,\n .. include:: ../docstrings/cubehelix_palette.rst\n \n \"\"\"\n...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/palettes.py.\nHere is the description for the function:\ndef cubehelix_palette(n_colors=6, start=0, rot=.4, gamma=1.0, hue=0.8,\n light=.85, dark=.15, reverse=False, as_cmap=False):\n \"\"\"Make a sequential palette from the cubehelix ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_base.py::TestHueMapping::test_hue_map_categorical", "tests/_core/test_scales.py::TestContinuous::test_color_defaults", "tests/_core/test_properties.py::TestColor::test_continuous_default_palette", "tests/_core/test_scales.py::TestContinuous::test_color_with_norm", "...
mwaskom__seaborn-45
1.0
{ "code": "diff --git b/seaborn/palettes.py a/seaborn/palettes.py\nindex eb664326..f7f42984 100644\n--- b/seaborn/palettes.py\n+++ a/seaborn/palettes.py\n@@ -473,6 +473,12 @@ def dark_palette(color, n_colors=6, reverse=False, as_cmap=False, input=\"rgb\"):\n .. include:: ../docstrings/dark_palette.rst\n \n \"...
null
{ "code": "diff --git a/seaborn/palettes.py b/seaborn/palettes.py\nindex f7f42984..eb664326 100644\n--- a/seaborn/palettes.py\n+++ b/seaborn/palettes.py\n@@ -473,12 +473,6 @@ def dark_palette(color, n_colors=6, reverse=False, as_cmap=False, input=\"rgb\"):\n .. include:: ../docstrings/dark_palette.rst\n \n \"...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/palettes.py.\nHere is the description for the function:\ndef dark_palette(color, n_colors=6, reverse=False, as_cmap=False, input=\"rgb\"):\n \"\"\"Make a sequential palette that blends from dark to ``color``.\n\n This kind of palette is good for data th...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_palettes.py::TestColorPalettes::test_dark_palette", "tests/test_palettes.py::TestColorPalettes::test_diverging_palette", "tests/test_categorical.py::TestStripPlot::test_palette_from_color_deprecation", "tests/test_categorical.py::TestSwarmPlot::test_palette_from_color_d...
mwaskom__seaborn-46
1.0
{ "code": "diff --git b/seaborn/palettes.py a/seaborn/palettes.py\nindex be6756f5..f7f42984 100644\n--- b/seaborn/palettes.py\n+++ a/seaborn/palettes.py\n@@ -568,6 +568,14 @@ def diverging_palette(h_neg, h_pos, s=75, l=50, sep=1, n=6, # noqa\n .. include: ../docstrings/diverging_palette.rst\n \n \"\"\"\n+ ...
null
{ "code": "diff --git a/seaborn/palettes.py b/seaborn/palettes.py\nindex f7f42984..be6756f5 100644\n--- a/seaborn/palettes.py\n+++ b/seaborn/palettes.py\n@@ -568,14 +568,6 @@ def diverging_palette(h_neg, h_pos, s=75, l=50, sep=1, n=6, # noqa\n .. include: ../docstrings/diverging_palette.rst\n \n \"\"\"\n- ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/palettes.py.\nHere is the description for the function:\ndef diverging_palette(h_neg, h_pos, s=75, l=50, sep=1, n=6, # noqa\n center=\"light\", as_cmap=False):\n \"\"\"Make a diverging palette between two HUSL colors.\n\n If you ar...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_palettes.py::TestColorPalettes::test_diverging_palette" ], "PASS_TO_PASS": null }
mwaskom__seaborn-47
1.0
{ "code": "diff --git b/seaborn/palettes.py a/seaborn/palettes.py\nindex 79c5c2ec..f7f42984 100644\n--- b/seaborn/palettes.py\n+++ a/seaborn/palettes.py\n@@ -296,6 +296,17 @@ def hls_palette(n_colors=6, h=.01, l=.6, s=.65, as_cmap=False): # noqa\n .. include:: ../docstrings/hls_palette.rst\n \n \"\"\"\n+ ...
null
{ "code": "diff --git a/seaborn/palettes.py b/seaborn/palettes.py\nindex f7f42984..79c5c2ec 100644\n--- a/seaborn/palettes.py\n+++ b/seaborn/palettes.py\n@@ -296,17 +296,6 @@ def hls_palette(n_colors=6, h=.01, l=.6, s=.65, as_cmap=False): # noqa\n .. include:: ../docstrings/hls_palette.rst\n \n \"\"\"\n- ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/palettes.py.\nHere is the description for the function:\ndef hls_palette(n_colors=6, h=.01, l=.6, s=.65, as_cmap=False): # noqa\n \"\"\"\n Return hues with constant lightness and saturation in the HLS system.\n\n The hues are evenly sampled along a ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_palettes.py::TestColorPalettes::test_hls_palette", "tests/test_palettes.py::TestColorPalettes::test_hls_values" ], "PASS_TO_PASS": null }
mwaskom__seaborn-48
1.0
{ "code": "diff --git b/seaborn/palettes.py a/seaborn/palettes.py\nindex 54fb1dde..f7f42984 100644\n--- b/seaborn/palettes.py\n+++ a/seaborn/palettes.py\n@@ -348,6 +348,19 @@ def husl_palette(n_colors=6, h=.01, s=.9, l=.65, as_cmap=False): # noqa\n .. include:: ../docstrings/husl_palette.rst\n \n \"\"\"\n+ ...
null
{ "code": "diff --git a/seaborn/palettes.py b/seaborn/palettes.py\nindex f7f42984..54fb1dde 100644\n--- a/seaborn/palettes.py\n+++ b/seaborn/palettes.py\n@@ -348,19 +348,6 @@ def husl_palette(n_colors=6, h=.01, s=.9, l=.65, as_cmap=False): # noqa\n .. include:: ../docstrings/husl_palette.rst\n \n \"\"\"\n- ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/palettes.py.\nHere is the description for the function:\ndef husl_palette(n_colors=6, h=.01, s=.9, l=.65, as_cmap=False): # noqa\n \"\"\"\n Return hues with constant lightness and saturation in the HUSL system.\n\n The hues are evenly sampled along ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_properties.py::TestColor::test_nominal_default_palette_large", "tests/test_base.py::TestHueMapping::test_hue_map_categorical", "tests/test_palettes.py::TestColorPalettes::test_big_palette_context", "tests/test_miscplot.py::TestPalPlot::test_palplot_size", "tes...
mwaskom__seaborn-49
1.0
{ "code": "diff --git b/seaborn/palettes.py a/seaborn/palettes.py\nindex 0e194c6b..f7f42984 100644\n--- b/seaborn/palettes.py\n+++ a/seaborn/palettes.py\n@@ -521,6 +521,12 @@ def light_palette(color, n_colors=6, reverse=False, as_cmap=False, input=\"rgb\"):\n .. include:: ../docstrings/light_palette.rst\n \n ...
null
{ "code": "diff --git a/seaborn/palettes.py b/seaborn/palettes.py\nindex f7f42984..0e194c6b 100644\n--- a/seaborn/palettes.py\n+++ b/seaborn/palettes.py\n@@ -521,12 +521,6 @@ def light_palette(color, n_colors=6, reverse=False, as_cmap=False, input=\"rgb\"):\n .. include:: ../docstrings/light_palette.rst\n \n ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/palettes.py.\nHere is the description for the function:\ndef light_palette(color, n_colors=6, reverse=False, as_cmap=False, input=\"rgb\"):\n \"\"\"Make a sequential palette that blends from light to ``color``.\n\n The ``color`` parameter can be specifi...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_scales.py::TestContinuous::test_color_callable_values", "tests/test_palettes.py::TestColorPalettes::test_light_palette", "tests/test_palettes.py::TestColorPalettes::test_diverging_palette", "tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[bo...
mwaskom__seaborn-50
1.0
{ "code": "diff --git b/seaborn/palettes.py a/seaborn/palettes.py\nindex c1596469..f7f42984 100644\n--- b/seaborn/palettes.py\n+++ a/seaborn/palettes.py\n@@ -815,3 +815,27 @@ def set_color_codes(palette=\"deep\"):\n sets the matplotlib color cycle.\n \n \"\"\"\n+ if palette == \"reset\":\n+ ...
null
{ "code": "diff --git a/seaborn/palettes.py b/seaborn/palettes.py\nindex f7f42984..c1596469 100644\n--- a/seaborn/palettes.py\n+++ b/seaborn/palettes.py\n@@ -815,27 +815,3 @@ def set_color_codes(palette=\"deep\"):\n sets the matplotlib color cycle.\n \n \"\"\"\n- if palette == \"reset\":\n- ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/palettes.py.\nHere is the description for the function:\ndef set_color_codes(palette=\"deep\"):\n \"\"\"Change how matplotlib color shorthands are interpreted.\n\n Calling this will change how shorthand codes like \"b\" or \"g\"\n are interpreted by ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_palettes.py::TestColorPalettes::test_current_palette", "tests/test_palettes.py::TestColorPalettes::test_big_palette_context", "tests/test_rcmod.py::TestAxesStyle::test_set_rc", "tests/test_rcmod.py::TestAxesStyle::test_set_with_palette", "tests/test_rcmod.py::TestAx...
mwaskom__seaborn-51
1.0
{ "code": "diff --git b/seaborn/palettes.py a/seaborn/palettes.py\nindex a1c2e711..f7f42984 100644\n--- b/seaborn/palettes.py\n+++ a/seaborn/palettes.py\n@@ -631,6 +631,8 @@ def xkcd_palette(colors):\n crayon_palette : Make a palette with Crayola crayon colors.\n \n \"\"\"\n+ palette = [xkcd_rgb[name] for ...
null
{ "code": "diff --git a/seaborn/palettes.py b/seaborn/palettes.py\nindex f7f42984..a1c2e711 100644\n--- a/seaborn/palettes.py\n+++ b/seaborn/palettes.py\n@@ -631,8 +631,6 @@ def xkcd_palette(colors):\n crayon_palette : Make a palette with Crayola crayon colors.\n \n \"\"\"\n- palette = [xkcd_rgb[name] for ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/palettes.py.\nHere is the description for the function:\ndef xkcd_palette(colors):\n \"\"\"Make a palette with color names from the xkcd color survey.\n\n See xkcd for the full list of colors: https://xkcd.com/color/rgb/\n\n This is just a simple wra...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_palettes.py::TestColorPalettes::test_xkcd_palette" ], "PASS_TO_PASS": null }
mwaskom__seaborn-52
1.0
{ "code": "diff --git b/seaborn/_core/plot.py a/seaborn/_core/plot.py\nindex 1a5b1587..c9dc61c8 100644\n--- b/seaborn/_core/plot.py\n+++ a/seaborn/_core/plot.py\n@@ -798,6 +798,13 @@ class Plot:\n \n \n \"\"\"\n+ new = self._clone()\n+ if title is not None:\n+ new._labels[\"title\"] =...
null
{ "code": "diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py\nindex c9dc61c8..1a5b1587 100644\n--- a/seaborn/_core/plot.py\n+++ b/seaborn/_core/plot.py\n@@ -798,13 +798,6 @@ class Plot:\n \n \n \"\"\"\n- new = self._clone()\n- if title is not None:\n- new._labels[\"title\"] =...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/plot.py.\nHere is the description for the function:\n def label(\n self, *,\n title: str | None = None,\n legend: str | None = None,\n **variables: str | Callable[[str], str]\n ) -> Plot:\n \"\"\"\n Contro...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_plot.py::TestPlotting::test_labels_axis", "tests/_core/test_plot.py::TestPlotting::test_labels_legend", "tests/_core/test_plot.py::TestPlotting::test_labels_facets", "tests/_core/test_plot.py::TestPlotting::test_title_single", "tests/_core/test_plot.py::TestPl...
mwaskom__seaborn-53
1.0
{ "code": "diff --git b/seaborn/_core/plot.py a/seaborn/_core/plot.py\nindex c56300b7..c9dc61c8 100644\n--- b/seaborn/_core/plot.py\n+++ a/seaborn/_core/plot.py\n@@ -841,6 +841,21 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.layout.rst\n \n \"\"\"\n+ # TODO add an \"auto\" mode for ...
null
{ "code": "diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py\nindex c9dc61c8..c56300b7 100644\n--- a/seaborn/_core/plot.py\n+++ b/seaborn/_core/plot.py\n@@ -841,21 +841,6 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.layout.rst\n \n \"\"\"\n- # TODO add an \"auto\" mode for ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/plot.py.\nHere is the description for the function:\n def layout(\n self,\n *,\n size: tuple[float, float] | Default = default,\n engine: str | None | Default = default,\n extent: tuple[float, float, float, float] |...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_plot.py::TestPlotting::test_layout_size", "tests/_core/test_plot.py::TestPlotting::test_layout_extent", "tests/_core/test_plot.py::TestPlotting::test_constrained_layout_extent", "tests/_core/test_plot.py::TestPlotting::test_base_layout_extent", "tests/_core/te...
mwaskom__seaborn-54
1.0
{ "code": "diff --git b/seaborn/_core/plot.py a/seaborn/_core/plot.py\nindex 9ff4bb84..c9dc61c8 100644\n--- b/seaborn/_core/plot.py\n+++ a/seaborn/_core/plot.py\n@@ -763,6 +763,9 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.limit.rst\n \n \"\"\"\n+ new = self._clone()\n+ new....
null
{ "code": "diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py\nindex c9dc61c8..9ff4bb84 100644\n--- a/seaborn/_core/plot.py\n+++ b/seaborn/_core/plot.py\n@@ -763,9 +763,6 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.limit.rst\n \n \"\"\"\n- new = self._clone()\n- new....
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/plot.py.\nHere is the description for the function:\n def limit(self, **limits: tuple[Any, Any]) -> Plot:\n \"\"\"\n Control the range of visible data.\n\n Keywords correspond to variables defined in the plot, and values are a\n ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_plot.py::TestScaling::test_nominal_x_axis_tweaks", "tests/_core/test_plot.py::TestScaling::test_nominal_y_axis_tweaks", "tests/_core/test_plot.py::TestPlotting::test_limits", "tests/_core/test_plot.py::TestFacetInterface::test_layout_algo[tight]", "tests/_core...
mwaskom__seaborn-55
1.0
{ "code": "diff --git b/seaborn/_core/plot.py a/seaborn/_core/plot.py\nindex 7c82620f..c9dc61c8 100644\n--- b/seaborn/_core/plot.py\n+++ a/seaborn/_core/plot.py\n@@ -899,6 +899,10 @@ class Plot:\n :meth:`matplotlib.figure.Figure.savefig`.\n \n \"\"\"\n+ # TODO expose important keyword argum...
null
{ "code": "diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py\nindex c9dc61c8..7c82620f 100644\n--- a/seaborn/_core/plot.py\n+++ b/seaborn/_core/plot.py\n@@ -899,10 +899,6 @@ class Plot:\n :meth:`matplotlib.figure.Figure.savefig`.\n \n \"\"\"\n- # TODO expose important keyword argum...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/plot.py.\nHere is the description for the function:\n def save(self, loc, **kwargs) -> Plot:\n \"\"\"\n Compile the plot and write it to a buffer or file on disk.\n\n Parameters\n ----------\n loc : str, path, or bu...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_plot.py::TestPlotting::test_save" ], "PASS_TO_PASS": null }
mwaskom__seaborn-56
1.0
{ "code": "diff --git b/seaborn/_core/plot.py a/seaborn/_core/plot.py\nindex 19bd05d8..c9dc61c8 100644\n--- b/seaborn/_core/plot.py\n+++ a/seaborn/_core/plot.py\n@@ -723,6 +723,9 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.scale.rst\n \n \"\"\"\n+ new = self._clone()\n+ new....
null
{ "code": "diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py\nindex c9dc61c8..19bd05d8 100644\n--- a/seaborn/_core/plot.py\n+++ b/seaborn/_core/plot.py\n@@ -723,9 +723,6 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.scale.rst\n \n \"\"\"\n- new = self._clone()\n- new....
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/plot.py.\nHere is the description for the function:\n def scale(self, **scales: Scale) -> Plot:\n \"\"\"\n Specify mappings from data units to visual properties.\n\n Keywords correspond to variables defined in the plot, including...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_marks/test_dot.py::TestDot::test_filled_unfilled_mix", "tests/_marks/test_area.py::TestArea::test_mapped_properties", "tests/_marks/test_text.py::TestText::test_identity_fontsize", "tests/_marks/test_dot.py::TestDots::test_filled_unfilled_mix", "tests/_core/test_plot.py...
mwaskom__seaborn-57
1.0
{ "code": "diff --git b/seaborn/_core/plot.py a/seaborn/_core/plot.py\nindex 6179ce95..c9dc61c8 100644\n--- b/seaborn/_core/plot.py\n+++ a/seaborn/_core/plot.py\n@@ -742,6 +742,9 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.share.rst\n \n \"\"\"\n+ new = self._clone()\n+ new....
null
{ "code": "diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py\nindex c9dc61c8..6179ce95 100644\n--- a/seaborn/_core/plot.py\n+++ b/seaborn/_core/plot.py\n@@ -742,9 +742,6 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.share.rst\n \n \"\"\"\n- new = self._clone()\n- new....
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/plot.py.\nHere is the description for the function:\n def share(self, **shares: bool | str) -> Plot:\n \"\"\"\n Control sharing of axis limits and ticks across subplots.\n\n Keywords correspond to variables defined in the plot, a...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_plot.py::TestScaling::test_facet_categories_unshared", "tests/_core/test_plot.py::TestScaling::test_facet_categories_single_dim_shared", "tests/_core/test_plot.py::TestScaling::test_pair_categories_shared", "tests/_core/test_plot.py::TestFacetInterface::test_axis_...
mwaskom__seaborn-58
1.0
{ "code": "diff --git b/seaborn/_core/plot.py a/seaborn/_core/plot.py\nindex d93bbf96..c9dc61c8 100644\n--- b/seaborn/_core/plot.py\n+++ a/seaborn/_core/plot.py\n@@ -879,6 +879,12 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.theme.rst\n \n \"\"\"\n+ new = self._clone()\n+\n+ ...
null
{ "code": "diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py\nindex c9dc61c8..d93bbf96 100644\n--- a/seaborn/_core/plot.py\n+++ b/seaborn/_core/plot.py\n@@ -879,12 +879,6 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.theme.rst\n \n \"\"\"\n- new = self._clone()\n-\n- ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/plot.py.\nHere is the description for the function:\n def theme(self, config: Mapping[str, Any], /) -> Plot:\n \"\"\"\n Control the appearance of elements in the plot.\n\n .. note::\n\n The API for customizing plot app...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_marks/test_line.py::TestPath::test_capstyle", "tests/_core/test_plot.py::TestPlotting::test_theme_params", "tests/_core/test_plot.py::TestPlotting::test_theme_validation" ], "PASS_TO_PASS": null }
mwaskom__seaborn-59
1.0
{ "code": "diff --git b/seaborn/_core/properties.py a/seaborn/_core/properties.py\nindex 692f64a9..4e2df91b 100644\n--- b/seaborn/_core/properties.py\n+++ a/seaborn/_core/properties.py\n@@ -459,6 +459,31 @@ class LineStyle(ObjectProperty):\n dashes.\n \n \"\"\"\n+ # Start with dash specs th...
null
{ "code": "diff --git a/seaborn/_core/properties.py b/seaborn/_core/properties.py\nindex 4e2df91b..692f64a9 100644\n--- a/seaborn/_core/properties.py\n+++ b/seaborn/_core/properties.py\n@@ -459,31 +459,6 @@ class LineStyle(ObjectProperty):\n dashes.\n \n \"\"\"\n- # Start with dash specs th...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/properties.py.\nHere is the description for the function:\n def _default_values(self, n: int) -> list[DashPatternWithOffset]:\n \"\"\"Build an arbitrarily long list of unique dash styles for lines.\n\n Parameters\n ----------\n ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_marks/test_line.py::TestPath::test_other_props_mapped", "tests/_core/test_properties.py::TestLineStyle::test_mapping_default[cat]", "tests/_core/test_properties.py::TestLineStyle::test_mapping_default[num]", "tests/_core/test_properties.py::TestLineStyle::test_unique_defaul...
mwaskom__seaborn-60
1.0
{ "code": "diff --git b/seaborn/_core/properties.py a/seaborn/_core/properties.py\nindex 011093ad..4e2df91b 100644\n--- b/seaborn/_core/properties.py\n+++ a/seaborn/_core/properties.py\n@@ -418,6 +418,21 @@ class Marker(ObjectProperty):\n All markers will be filled.\n \n \"\"\"\n+ # Start w...
null
{ "code": "diff --git a/seaborn/_core/properties.py b/seaborn/_core/properties.py\nindex 4e2df91b..011093ad 100644\n--- a/seaborn/_core/properties.py\n+++ b/seaborn/_core/properties.py\n@@ -418,21 +418,6 @@ class Marker(ObjectProperty):\n All markers will be filled.\n \n \"\"\"\n- # Start w...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/properties.py.\nHere is the description for the function:\n def _default_values(self, n: int) -> list[MarkerStyle]:\n \"\"\"Build an arbitrarily long list of unique marker styles.\n\n Parameters\n ----------\n n : int\n ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_marks/test_dot.py::TestDot::test_missing_semantic_data[marker]", "tests/_marks/test_line.py::TestPath::test_other_props_mapped", "tests/_core/test_properties.py::TestMarker::test_mapping_default[cat]", "tests/_core/test_properties.py::TestMarker::test_mapping_default[num]",...
mwaskom__seaborn-61
1.0
{ "code": "diff --git b/seaborn/rcmod.py a/seaborn/rcmod.py\nindex 5a8eed38..de238323 100644\n--- b/seaborn/rcmod.py\n+++ a/seaborn/rcmod.py\n@@ -465,6 +465,8 @@ def set_context(context=None, font_scale=1, rc=None):\n .. include:: ../docstrings/set_context.rst\n \n \"\"\"\n+ context_object = plotting_conte...
null
{ "code": "diff --git a/seaborn/rcmod.py b/seaborn/rcmod.py\nindex de238323..5a8eed38 100644\n--- a/seaborn/rcmod.py\n+++ b/seaborn/rcmod.py\n@@ -465,8 +465,6 @@ def set_context(context=None, font_scale=1, rc=None):\n .. include:: ../docstrings/set_context.rst\n \n \"\"\"\n- context_object = plotting_conte...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/rcmod.py.\nHere is the description for the function:\ndef set_context(context=None, font_scale=1, rc=None):\n \"\"\"\n Set the parameters that control the scaling of plot elements.\n\n These parameters correspond to label size, line thickness, etc.\n...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_palettes.py::TestColorPalettes::test_current_palette", "tests/test_palettes.py::TestColorPalettes::test_big_palette_context", "tests/test_rcmod.py::TestAxesStyle::test_set_rc", "tests/test_rcmod.py::TestAxesStyle::test_set_with_palette", "tests/test_rcmod.py::TestAx...
mwaskom__seaborn-62
1.0
{ "code": "diff --git b/seaborn/rcmod.py a/seaborn/rcmod.py\nindex 7501e223..de238323 100644\n--- b/seaborn/rcmod.py\n+++ a/seaborn/rcmod.py\n@@ -523,3 +523,11 @@ def set_palette(palette, n_colors=None, desat=None, color_codes=False):\n set_style : set the default parameters for figure style\n \n \"\"\"\n+ ...
null
{ "code": "diff --git a/seaborn/rcmod.py b/seaborn/rcmod.py\nindex de238323..7501e223 100644\n--- a/seaborn/rcmod.py\n+++ b/seaborn/rcmod.py\n@@ -523,11 +523,3 @@ def set_palette(palette, n_colors=None, desat=None, color_codes=False):\n set_style : set the default parameters for figure style\n \n \"\"\"\n- ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/rcmod.py.\nHere is the description for the function:\ndef set_palette(palette, n_colors=None, desat=None, color_codes=False):\n \"\"\"Set the matplotlib color cycle using a seaborn palette.\n\n Parameters\n ----------\n palette : seaborn color pal...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_palettes.py::TestColorPalettes::test_current_palette", "tests/test_rcmod.py::TestAxesStyle::test_set_rc", "tests/test_palettes.py::TestColorPalettes::test_palette_context", "tests/test_palettes.py::TestColorPalettes::test_big_palette_context", "tests/test_utils.py::...
mwaskom__seaborn-63
1.0
{ "code": "diff --git b/seaborn/rcmod.py a/seaborn/rcmod.py\nindex 41e820da..de238323 100644\n--- b/seaborn/rcmod.py\n+++ a/seaborn/rcmod.py\n@@ -328,6 +328,8 @@ def set_style(style=None, rc=None):\n .. include:: ../docstrings/set_style.rst\n \n \"\"\"\n+ style_object = axes_style(style, rc)\n+ mpl.rcPa...
null
{ "code": "diff --git a/seaborn/rcmod.py b/seaborn/rcmod.py\nindex de238323..41e820da 100644\n--- a/seaborn/rcmod.py\n+++ b/seaborn/rcmod.py\n@@ -328,8 +328,6 @@ def set_style(style=None, rc=None):\n .. include:: ../docstrings/set_style.rst\n \n \"\"\"\n- style_object = axes_style(style, rc)\n- mpl.rcPa...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/rcmod.py.\nHere is the description for the function:\ndef set_style(style=None, rc=None):\n \"\"\"\n Set the parameters that control the general style of the plots.\n\n The style parameters control properties like the color of the background and\n ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_palettes.py::TestColorPalettes::test_current_palette", "tests/test_rcmod.py::TestAxesStyle::test_set_style", "tests/test_palettes.py::TestColorPalettes::test_big_palette_context", "tests/test_rcmod.py::TestAxesStyle::test_style_context_manager", "tests/test_rcmod.py...
mwaskom__seaborn-64
1.0
{ "code": "diff --git b/seaborn/rcmod.py a/seaborn/rcmod.py\nindex 083d169b..de238323 100644\n--- b/seaborn/rcmod.py\n+++ a/seaborn/rcmod.py\n@@ -116,6 +116,11 @@ def set_theme(context=\"notebook\", style=\"darkgrid\", palette=\"deep\",\n .. include:: ../docstrings/set_theme.rst\n \n \"\"\"\n+ set_context(...
null
{ "code": "diff --git a/seaborn/rcmod.py b/seaborn/rcmod.py\nindex de238323..083d169b 100644\n--- a/seaborn/rcmod.py\n+++ b/seaborn/rcmod.py\n@@ -116,11 +116,6 @@ def set_theme(context=\"notebook\", style=\"darkgrid\", palette=\"deep\",\n .. include:: ../docstrings/set_theme.rst\n \n \"\"\"\n- set_context(...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/rcmod.py.\nHere is the description for the function:\ndef set_theme(context=\"notebook\", style=\"darkgrid\", palette=\"deep\",\n font=\"sans-serif\", font_scale=1, color_codes=True, rc=None):\n \"\"\"\n Set aspects of the visual theme for ...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_palettes.py::TestColorPalettes::test_current_palette", "tests/test_palettes.py::TestColorPalettes::test_big_palette_context", "tests/test_rcmod.py::TestAxesStyle::test_set_rc", "tests/test_rcmod.py::TestAxesStyle::test_set_with_palette", "tests/test_rcmod.py::TestAx...
mwaskom__seaborn-65
1.0
{ "code": "diff --git b/seaborn/regression.py a/seaborn/regression.py\nindex 5c229f4d..b9a0c455 100644\n--- b/seaborn/regression.py\n+++ a/seaborn/regression.py\n@@ -922,3 +922,29 @@ def residplot(\n .. include:: ../docstrings/residplot.rst\n \n \"\"\"\n+ plotter = _RegressionPlotter(x, y, data, ci=None,\n...
null
{ "code": "diff --git a/seaborn/regression.py b/seaborn/regression.py\nindex b9a0c455..5c229f4d 100644\n--- a/seaborn/regression.py\n+++ b/seaborn/regression.py\n@@ -922,29 +922,3 @@ def residplot(\n .. include:: ../docstrings/residplot.rst\n \n \"\"\"\n- plotter = _RegressionPlotter(x, y, data, ci=None,\n...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/regression.py.\nHere is the description for the function:\ndef residplot(\n data=None, *, x=None, y=None,\n x_partial=None, y_partial=None, lowess=False,\n order=1, robust=False, dropna=True, label=None, color=None,\n scatter_kws=None, line_kws=No...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_regression.py::TestRegressionPlots::test_residplot", "tests/test_regression.py::TestRegressionPlots::test_residplot_statsmodels_missing_errors[robust]", "tests/test_regression.py::TestRegressionPlots::test_residplot_statsmodels_missing_errors[lowess]", "tests/test_axisg...
mwaskom__seaborn-66
1.0
{ "code": "diff --git b/seaborn/_core/rules.py a/seaborn/_core/rules.py\nindex a9daa3af..de6c651d 100644\n--- b/seaborn/_core/rules.py\n+++ a/seaborn/_core/rules.py\n@@ -66,6 +66,81 @@ def variable_type(\n Name identifying the type of data in the vector.\n \"\"\"\n \n+ # If a categorical dtype is set, ...
null
{ "code": "diff --git a/seaborn/_core/rules.py b/seaborn/_core/rules.py\nindex de6c651d..a9daa3af 100644\n--- a/seaborn/_core/rules.py\n+++ b/seaborn/_core/rules.py\n@@ -66,81 +66,6 @@ def variable_type(\n Name identifying the type of data in the vector.\n \"\"\"\n \n- # If a categorical dtype is set, ...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/rules.py.\nHere is the description for the function:\ndef variable_type(\n vector: Series,\n boolean_type: Literal[\"numeric\", \"categorical\", \"boolean\"] = \"numeric\",\n strict_boolean: bool = False,\n) -> VarType:\n \"\"\"\n Determi...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_marks/test_line.py::TestPath::test_xy_data", "tests/_stats/test_aggregation.py::TestAgg::test_default", "tests/_marks/test_bar.py::TestBar::test_categorical_positions_vertical", "tests/_stats/test_density.py::TestKDE::test_columns[x]", "tests/_marks/test_area.py::TestAr...
mwaskom__seaborn-67
1.0
{ "code": "diff --git b/seaborn/_core/scales.py a/seaborn/_core/scales.py\nindex 897e5c2b..1e7bef8a 100644\n--- b/seaborn/_core/scales.py\n+++ a/seaborn/_core/scales.py\n@@ -571,6 +571,30 @@ class Continuous(ContinuousBase):\n Copy of self with new tick configuration.\n \n \"\"\"\n+ # Input...
null
{ "code": "diff --git a/seaborn/_core/scales.py b/seaborn/_core/scales.py\nindex 1e7bef8a..897e5c2b 100644\n--- a/seaborn/_core/scales.py\n+++ b/seaborn/_core/scales.py\n@@ -571,30 +571,6 @@ class Continuous(ContinuousBase):\n Copy of self with new tick configuration.\n \n \"\"\"\n- # Input...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/scales.py.\nHere is the description for the function:\n def tick(\n self,\n locator: Locator | None = None, *,\n at: Sequence[float] | None = None,\n upto: int | None = None,\n count: int | None = None,\n eve...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_marks/test_dot.py::TestDot::test_simple", "tests/_core/test_scales.py::TestContinuous::test_coordinate_defaults", "tests/_marks/test_line.py::TestPath::test_xy_data", "tests/_marks/test_text.py::TestText::test_simple", "tests/_marks/test_area.py::TestArea::test_single_d...
mwaskom__seaborn-68
1.0
{ "code": "diff --git b/seaborn/_core/scales.py a/seaborn/_core/scales.py\nindex 0ade15ea..1e7bef8a 100644\n--- b/seaborn/_core/scales.py\n+++ a/seaborn/_core/scales.py\n@@ -836,6 +836,9 @@ class Temporal(ContinuousBase):\n Copy of self with new label configuration.\n \n \"\"\"\n+ new = cop...
null
{ "code": "diff --git a/seaborn/_core/scales.py b/seaborn/_core/scales.py\nindex 1e7bef8a..0ade15ea 100644\n--- a/seaborn/_core/scales.py\n+++ b/seaborn/_core/scales.py\n@@ -836,9 +836,6 @@ class Temporal(ContinuousBase):\n Copy of self with new label configuration.\n \n \"\"\"\n- new = cop...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/scales.py.\nHere is the description for the function:\n def label(\n self,\n formatter: Formatter | None = None, *,\n concise: bool = False,\n ) -> Temporal:\n \"\"\"\n Configure the appearance of tick labels for...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_plot.py::TestScaling::test_inference", "tests/_core/test_scales.py::TestTemporal::test_coordinate_defaults", "tests/_core/test_scales.py::TestTemporal::test_interval_defaults", "tests/_core/test_scales.py::TestTemporal::test_interval_with_range", "tests/_core/...
mwaskom__seaborn-69
1.0
{ "code": "diff --git b/seaborn/_core/scales.py a/seaborn/_core/scales.py\nindex 95844f59..1e7bef8a 100644\n--- b/seaborn/_core/scales.py\n+++ a/seaborn/_core/scales.py\n@@ -800,6 +800,16 @@ class Temporal(ContinuousBase):\n Copy of self with new tick configuration.\n \n \"\"\"\n+ if locato...
null
{ "code": "diff --git a/seaborn/_core/scales.py b/seaborn/_core/scales.py\nindex 1e7bef8a..95844f59 100644\n--- a/seaborn/_core/scales.py\n+++ b/seaborn/_core/scales.py\n@@ -800,16 +800,6 @@ class Temporal(ContinuousBase):\n Copy of self with new tick configuration.\n \n \"\"\"\n- if locato...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/_core/scales.py.\nHere is the description for the function:\n def tick(\n self, locator: Locator | None = None, *,\n upto: int | None = None,\n ) -> Temporal:\n \"\"\"\n Configure the selection of ticks for the scale's axis o...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/_core/test_plot.py::TestScaling::test_inference", "tests/_core/test_scales.py::TestTemporal::test_coordinate_defaults", "tests/_core/test_scales.py::TestTemporal::test_interval_defaults", "tests/_core/test_scales.py::TestTemporal::test_interval_with_range", "tests/_core/...
mwaskom__seaborn-70
1.0
{ "code": "diff --git b/seaborn/utils.py a/seaborn/utils.py\nindex 35b92317..98720ba3 100644\n--- b/seaborn/utils.py\n+++ a/seaborn/utils.py\n@@ -42,6 +42,17 @@ def ci_to_errsize(cis, heights):\n format as argument for plt.bar\n \n \"\"\"\n+ cis = np.atleast_2d(cis).reshape(2, -1)\n+ heights = np.at...
null
{ "code": "diff --git a/seaborn/utils.py b/seaborn/utils.py\nindex 98720ba3..35b92317 100644\n--- a/seaborn/utils.py\n+++ b/seaborn/utils.py\n@@ -42,17 +42,6 @@ def ci_to_errsize(cis, heights):\n format as argument for plt.bar\n \n \"\"\"\n- cis = np.atleast_2d(cis).reshape(2, -1)\n- heights = np.at...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/utils.py.\nHere is the description for the function:\ndef ci_to_errsize(cis, heights):\n \"\"\"Convert intervals to error arguments relative to plot heights.\n\n Parameters\n ----------\n cis : 2 x n sequence\n sequence of confidence interv...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_utils.py::test_ci_to_errsize" ], "PASS_TO_PASS": null }
mwaskom__seaborn-71
1.0
{ "code": "diff --git b/seaborn/utils.py a/seaborn/utils.py\nindex 2be6f4a4..98720ba3 100644\n--- b/seaborn/utils.py\n+++ a/seaborn/utils.py\n@@ -298,6 +298,82 @@ def despine(fig=None, ax=None, top=True, right=True, left=False,\n None\n \n \"\"\"\n+ # Get references to the axes we want\n+ if fig is None...
null
{ "code": "diff --git a/seaborn/utils.py b/seaborn/utils.py\nindex 98720ba3..2be6f4a4 100644\n--- a/seaborn/utils.py\n+++ b/seaborn/utils.py\n@@ -298,82 +298,6 @@ def despine(fig=None, ax=None, top=True, right=True, left=False,\n None\n \n \"\"\"\n- # Get references to the axes we want\n- if fig is None...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/utils.py.\nHere is the description for the function:\ndef despine(fig=None, ax=None, top=True, right=True, left=False,\n bottom=False, offset=None, trim=False):\n \"\"\"Remove the top and right spines from plot(s).\n\n fig : matplotlib figure...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[catplot-kwargs0]", "tests/test_axisgrid.py::TestFacetGrid::test_self_data", "tests/test_matrix.py::TestHeatmap::test_default_colors", "tests/test_axisgrid.py::TestFacetGrid::test_self_figure", "tests/test_r...
mwaskom__seaborn-72
1.0
{ "code": "diff --git b/seaborn/utils.py a/seaborn/utils.py\nindex ec986525..98720ba3 100644\n--- b/seaborn/utils.py\n+++ a/seaborn/utils.py\n@@ -270,6 +270,8 @@ def get_color_cycle():\n List of matplotlib colors in the current cycle, or dark gray if\n the current color cycle is empty.\n \"\"\"\n+...
null
{ "code": "diff --git a/seaborn/utils.py b/seaborn/utils.py\nindex 98720ba3..ec986525 100644\n--- a/seaborn/utils.py\n+++ b/seaborn/utils.py\n@@ -270,8 +270,6 @@ def get_color_cycle():\n List of matplotlib colors in the current cycle, or dark gray if\n the current color cycle is empty.\n \"\"\"\n-...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/utils.py.\nHere is the description for the function:\ndef get_color_cycle():\n \"\"\"Return the list of colors in the current matplotlib color cycle\n\n Parameters\n ----------\n None\n\n Returns\n -------\n colors : list\n List of...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_axisgrid.py::TestFacetGrid::test_self_data", "tests/test_base.py::TestHueMapping::test_plotter_default_init", "tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[catplot-kwargs0]", "tests/_core/test_properties.py::TestColor::test_nominal_default_pale...
mwaskom__seaborn-73
1.0
{ "code": "diff --git b/seaborn/utils.py a/seaborn/utils.py\nindex 4c3933fc..98720ba3 100644\n--- b/seaborn/utils.py\n+++ a/seaborn/utils.py\n@@ -404,6 +404,75 @@ def move_legend(obj, loc, **kwargs):\n .. include:: ../docstrings/move_legend.rst\n \n \"\"\"\n+ # This is a somewhat hackish solution that will...
null
{ "code": "diff --git a/seaborn/utils.py b/seaborn/utils.py\nindex 98720ba3..4c3933fc 100644\n--- a/seaborn/utils.py\n+++ b/seaborn/utils.py\n@@ -404,75 +404,6 @@ def move_legend(obj, loc, **kwargs):\n .. include:: ../docstrings/move_legend.rst\n \n \"\"\"\n- # This is a somewhat hackish solution that will...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/utils.py.\nHere is the description for the function:\ndef move_legend(obj, loc, **kwargs):\n \"\"\"\n Recreate a plot's legend at a new location.\n\n The name is a slight misnomer. Matplotlib legends do not expose public\n control over their posit...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_utils.py::test_move_legend_matplotlib_objects", "tests/test_utils.py::test_move_legend_grid_object", "tests/test_utils.py::test_move_legend_input_checks", "tests/test_utils.py::test_move_legend_with_labels" ], "PASS_TO_PASS": null }
mwaskom__seaborn-74
1.0
{ "code": "diff --git b/seaborn/utils.py a/seaborn/utils.py\nindex 78f182f1..98720ba3 100644\n--- b/seaborn/utils.py\n+++ a/seaborn/utils.py\n@@ -254,6 +254,7 @@ def remove_na(vector):\n Vector of data with null values removed. May be a copy or a view.\n \n \"\"\"\n+ return vector[pd.notnull(vector)]\n...
null
{ "code": "diff --git a/seaborn/utils.py b/seaborn/utils.py\nindex 98720ba3..78f182f1 100644\n--- a/seaborn/utils.py\n+++ b/seaborn/utils.py\n@@ -254,7 +254,6 @@ def remove_na(vector):\n Vector of data with null values removed. May be a copy or a view.\n \n \"\"\"\n- return vector[pd.notnull(vector)]\n...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/utils.py.\nHere is the description for the function:\ndef remove_na(vector):\n \"\"\"Helper method for removing null values from data vectors.\n\n Parameters\n ----------\n vector : vector object\n Must implement boolean masking with [] sub...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_distributions.py::TestDistPlot::test_hist_bins", "tests/test_base.py::TestHueMapping::test_hue_map_categorical", "tests/test_distributions.py::TestDistPlot::test_elements", "tests/test_base.py::TestHueMapping::test_hue_map_numeric", "tests/test_distributions.py::Tes...
mwaskom__seaborn-75
1.0
{ "code": "diff --git b/seaborn/utils.py a/seaborn/utils.py\nindex ff55ce41..98720ba3 100644\n--- b/seaborn/utils.py\n+++ a/seaborn/utils.py\n@@ -197,6 +197,7 @@ def saturate(color):\n saturated color code in RGB tuple representation\n \n \"\"\"\n+ return set_hls_values(color, s=1)\n \n \n def set_hls_...
null
{ "code": "diff --git a/seaborn/utils.py b/seaborn/utils.py\nindex 98720ba3..ff55ce41 100644\n--- a/seaborn/utils.py\n+++ b/seaborn/utils.py\n@@ -197,7 +197,6 @@ def saturate(color):\n saturated color code in RGB tuple representation\n \n \"\"\"\n- return set_hls_values(color, s=1)\n \n \n def set_hls_...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/utils.py.\nHere is the description for the function:\ndef saturate(color):\n \"\"\"Return a fully saturated color with the same hue.\n\n Parameters\n ----------\n color : matplotlib color\n hex, rgb-tuple, or html color name\n\n Returns\...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_utils.py::test_saturate" ], "PASS_TO_PASS": null }
mwaskom__seaborn-76
1.0
{ "code": "diff --git b/seaborn/utils.py a/seaborn/utils.py\nindex e8054081..98720ba3 100644\n--- b/seaborn/utils.py\n+++ a/seaborn/utils.py\n@@ -216,6 +216,15 @@ def set_hls_values(color, h=None, l=None, s=None): # noqa\n new color code in RGB tuple representation\n \n \"\"\"\n+ # Get an RGB tuple re...
null
{ "code": "diff --git a/seaborn/utils.py b/seaborn/utils.py\nindex 98720ba3..e8054081 100644\n--- a/seaborn/utils.py\n+++ b/seaborn/utils.py\n@@ -216,15 +216,6 @@ def set_hls_values(color, h=None, l=None, s=None): # noqa\n new color code in RGB tuple representation\n \n \"\"\"\n- # Get an RGB tuple re...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/utils.py.\nHere is the description for the function:\ndef set_hls_values(color, h=None, l=None, s=None): # noqa\n \"\"\"Independently manipulate the h, l, or s channels of a color.\n\n Parameters\n ----------\n color : matplotlib color\n h...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_utils.py::test_saturate", "tests/test_axisgrid.py::TestJointPlot::test_scatter", "tests/test_axisgrid.py::TestJointPlot::test_scatter_hue", "tests/test_axisgrid.py::TestJointPlot::test_reg", "tests/test_axisgrid.py::TestJointPlot::test_resid", "tests/test_axisgr...
mwaskom__seaborn-77
1.0
{ "code": "diff --git b/seaborn/utils.py a/seaborn/utils.py\nindex 9593d7c2..98720ba3 100644\n--- b/seaborn/utils.py\n+++ a/seaborn/utils.py\n@@ -739,6 +739,12 @@ def to_utf8(obj):\n UTF-8-decoded string representation of ``obj``\n \n \"\"\"\n+ if isinstance(obj, str):\n+ return obj\n+ try:\n...
null
{ "code": "diff --git a/seaborn/utils.py b/seaborn/utils.py\nindex 98720ba3..9593d7c2 100644\n--- a/seaborn/utils.py\n+++ b/seaborn/utils.py\n@@ -739,12 +739,6 @@ def to_utf8(obj):\n UTF-8-decoded string representation of ``obj``\n \n \"\"\"\n- if isinstance(obj, str):\n- return obj\n- try:\n...
null
mwaskom/seaborn
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
2024-07-22T07:32:48-04:00
null
null
{ "code": "I want to add a new function in file in seaborn/utils.py.\nHere is the description for the function:\ndef to_utf8(obj):\n \"\"\"Return a string representing a Python object.\n\n Strings (i.e. type ``str``) are returned unchanged.\n\n Byte strings (i.e. type ``bytes``) are returned as UTF-8-decoded...
b4e5f8d261d6d5524a00b7dd35e00a40e4855872
{ "FAIL_TO_PASS": [ "tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[catplot-kwargs0]", "tests/test_axisgrid.py::TestFacetGrid::test_self_data", "tests/test_utils.py::test_to_utf8[a-a0]", "tests/test_matrix.py::TestHeatmap::test_df_multindex_input", "tests/test_utils.py::tes...
scikit-learn__scikit-learn-0
1.0
{ "code": "diff --git b/sklearn/linear_model/_bayes.py a/sklearn/linear_model/_bayes.py\nindex 2df229969..b6527d4f2 100644\n--- b/sklearn/linear_model/_bayes.py\n+++ a/sklearn/linear_model/_bayes.py\n@@ -607,6 +607,7 @@ class ARDRegression(RegressorMixin, LinearModel):\n self.copy_X = copy_X\n self.ve...
null
{ "code": "diff --git a/sklearn/linear_model/_bayes.py b/sklearn/linear_model/_bayes.py\nindex b6527d4f2..2df229969 100644\n--- a/sklearn/linear_model/_bayes.py\n+++ b/sklearn/linear_model/_bayes.py\n@@ -607,7 +607,6 @@ class ARDRegression(RegressorMixin, LinearModel):\n self.copy_X = copy_X\n self.ve...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/linear_model/_bayes.py.\nHere is the description for the function:\n def fit(self, X, y):\n \"\"\"Fit the model according to the given training data and parameters.\n\n Iterative procedure to maximize the evidence\n\n Parameters\n ...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/tests/test_common.py::test_estimators[ARDRegression(max_iter=5)-check_fit_score_takes_y]", "sklearn/tests/test_common.py::test_estimators[ARDRegression(max_iter=5)-check_estimators_overwrite_params]", "sklearn/tests/test_common.py::test_estimators[ARDRegression(max_iter=5)-che...
scikit-learn__scikit-learn-1
1.0
{ "code": "diff --git b/sklearn/linear_model/_bayes.py a/sklearn/linear_model/_bayes.py\nindex f50c85533..b6527d4f2 100644\n--- b/sklearn/linear_model/_bayes.py\n+++ a/sklearn/linear_model/_bayes.py\n@@ -786,3 +786,12 @@ class ARDRegression(RegressorMixin, LinearModel):\n y_std : array-like of shape (n_sample...
null
{ "code": "diff --git a/sklearn/linear_model/_bayes.py b/sklearn/linear_model/_bayes.py\nindex b6527d4f2..f50c85533 100644\n--- a/sklearn/linear_model/_bayes.py\n+++ b/sklearn/linear_model/_bayes.py\n@@ -786,12 +786,3 @@ class ARDRegression(RegressorMixin, LinearModel):\n y_std : array-like of shape (n_sample...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/linear_model/_bayes.py.\nHere is the description for the function:\n def predict(self, X, return_std=False):\n \"\"\"Predict using the linear model.\n\n In addition to the mean of the predictive distribution, also its\n standard deviat...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/tests/test_common.py::test_estimators[ARDRegression(max_iter=5)-check_fit_score_takes_y]", "sklearn/tests/test_common.py::test_estimators[ARDRegression(max_iter=5)-check_estimators_dtypes]", "sklearn/tests/test_common.py::test_estimators[ARDRegression(max_iter=5)-check_dtype_o...
scikit-learn__scikit-learn-2
1.0
{ "code": "diff --git b/sklearn/ensemble/_weight_boosting.py a/sklearn/ensemble/_weight_boosting.py\nindex 4bbbc8073..290360622 100644\n--- b/sklearn/ensemble/_weight_boosting.py\n+++ a/sklearn/ensemble/_weight_boosting.py\n@@ -783,6 +783,33 @@ class AdaBoostClassifier(\n values closer to -1 or 1 mean mor...
null
{ "code": "diff --git a/sklearn/ensemble/_weight_boosting.py b/sklearn/ensemble/_weight_boosting.py\nindex 290360622..4bbbc8073 100644\n--- a/sklearn/ensemble/_weight_boosting.py\n+++ b/sklearn/ensemble/_weight_boosting.py\n@@ -783,33 +783,6 @@ class AdaBoostClassifier(\n values closer to -1 or 1 mean mor...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/ensemble/_weight_boosting.py.\nHere is the description for the function:\n def decision_function(self, X):\n \"\"\"Compute the decision function of ``X``.\n\n Parameters\n ----------\n X : {array-like, sparse matrix} of shape (n...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/tests/test_common.py::test_estimators[AdaBoostClassifier(n_estimators=5)-check_fit_score_takes_y]", "sklearn/tests/test_common.py::test_estimators[AdaBoostClassifier(n_estimators=5)-check_estimators_dtypes]", "sklearn/tests/test_common.py::test_estimators[AdaBoostClassifier(n_...
scikit-learn__scikit-learn-3
1.0
{ "code": "diff --git b/sklearn/kernel_approximation.py a/sklearn/kernel_approximation.py\nindex 57824340d..92d906dde 100644\n--- b/sklearn/kernel_approximation.py\n+++ a/sklearn/kernel_approximation.py\n@@ -656,6 +656,7 @@ class AdditiveChi2Sampler(TransformerMixin, BaseEstimator):\n self.sample_steps = samp...
null
{ "code": "diff --git a/sklearn/kernel_approximation.py b/sklearn/kernel_approximation.py\nindex 92d906dde..57824340d 100644\n--- a/sklearn/kernel_approximation.py\n+++ b/sklearn/kernel_approximation.py\n@@ -656,7 +656,6 @@ class AdditiveChi2Sampler(TransformerMixin, BaseEstimator):\n self.sample_steps = samp...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/kernel_approximation.py.\nHere is the description for the function:\n def fit(self, X, y=None):\n \"\"\"Only validates estimator's parameters.\n\n This method allows to: (i) validate the estimator's parameters and\n (ii) be consistent ...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/tests/test_common.py::test_estimators[AdditiveChi2Sampler()-check_fit_score_takes_y]", "sklearn/tests/test_common.py::test_estimators[AdditiveChi2Sampler()-check_estimators_overwrite_params]", "sklearn/tests/test_common.py::test_estimators[AdditiveChi2Sampler()-check_estimator...
scikit-learn__scikit-learn-4
1.0
{ "code": "diff --git b/sklearn/kernel_approximation.py a/sklearn/kernel_approximation.py\nindex b150d94d3..92d906dde 100644\n--- b/sklearn/kernel_approximation.py\n+++ a/sklearn/kernel_approximation.py\n@@ -704,6 +704,35 @@ class AdditiveChi2Sampler(TransformerMixin, BaseEstimator):\n Whether the return ...
null
{ "code": "diff --git a/sklearn/kernel_approximation.py b/sklearn/kernel_approximation.py\nindex 92d906dde..b150d94d3 100644\n--- a/sklearn/kernel_approximation.py\n+++ b/sklearn/kernel_approximation.py\n@@ -704,35 +704,6 @@ class AdditiveChi2Sampler(TransformerMixin, BaseEstimator):\n Whether the return ...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/kernel_approximation.py.\nHere is the description for the function:\n def transform(self, X):\n \"\"\"Apply approximate feature map to X.\n\n Parameters\n ----------\n X : {array-like, sparse matrix}, shape (n_samples, n_feature...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/tests/test_common.py::test_estimators[AdditiveChi2Sampler()-check_fit_score_takes_y]", "sklearn/tests/test_common.py::test_estimators[AdditiveChi2Sampler()-check_estimators_dtypes]", "sklearn/tests/test_common.py::test_estimators[AdditiveChi2Sampler()-check_dtype_object]", ...
scikit-learn__scikit-learn-5
1.0
{ "code": "diff --git b/sklearn/cluster/_affinity_propagation.py a/sklearn/cluster/_affinity_propagation.py\nindex 080462fce..33bbcb77f 100644\n--- b/sklearn/cluster/_affinity_propagation.py\n+++ a/sklearn/cluster/_affinity_propagation.py\n@@ -483,6 +483,7 @@ class AffinityPropagation(ClusterMixin, BaseEstimator):\n ...
null
{ "code": "diff --git a/sklearn/cluster/_affinity_propagation.py b/sklearn/cluster/_affinity_propagation.py\nindex 33bbcb77f..080462fce 100644\n--- a/sklearn/cluster/_affinity_propagation.py\n+++ b/sklearn/cluster/_affinity_propagation.py\n@@ -483,7 +483,6 @@ class AffinityPropagation(ClusterMixin, BaseEstimator):\n ...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/cluster/_affinity_propagation.py.\nHere is the description for the function:\n def fit(self, X, y=None):\n \"\"\"Fit the clustering from features, or affinity matrix.\n\n Parameters\n ----------\n X : {array-like, sparse matrix}...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/tests/test_common.py::test_estimators[AffinityPropagation(max_iter=5)-check_fit_score_takes_y]", "sklearn/tests/test_common.py::test_estimators[AffinityPropagation(max_iter=5)-check_estimators_overwrite_params]", "sklearn/tests/test_common.py::test_estimators[AffinityPropagati...
scikit-learn__scikit-learn-6
1.0
{ "code": "diff --git b/sklearn/cluster/_affinity_propagation.py a/sklearn/cluster/_affinity_propagation.py\nindex 2b377d697..33bbcb77f 100644\n--- b/sklearn/cluster/_affinity_propagation.py\n+++ a/sklearn/cluster/_affinity_propagation.py\n@@ -558,6 +558,26 @@ class AffinityPropagation(ClusterMixin, BaseEstimator):\n...
null
{ "code": "diff --git a/sklearn/cluster/_affinity_propagation.py b/sklearn/cluster/_affinity_propagation.py\nindex 33bbcb77f..2b377d697 100644\n--- a/sklearn/cluster/_affinity_propagation.py\n+++ b/sklearn/cluster/_affinity_propagation.py\n@@ -558,26 +558,6 @@ class AffinityPropagation(ClusterMixin, BaseEstimator):\n...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/cluster/_affinity_propagation.py.\nHere is the description for the function:\n def predict(self, X):\n \"\"\"Predict the closest cluster each sample in X belongs to.\n\n Parameters\n ----------\n X : {array-like, sparse matrix} ...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/tests/test_common.py::test_estimators[AffinityPropagation(max_iter=5)-check_estimators_dtypes]", "sklearn/tests/test_common.py::test_estimators[AffinityPropagation(max_iter=5)-check_dtype_object]", "sklearn/tests/test_common.py::test_estimators[AffinityPropagation(max_iter=5)-...
scikit-learn__scikit-learn-7
1.0
{ "code": "diff --git b/sklearn/ensemble/_bagging.py a/sklearn/ensemble/_bagging.py\nindex 84ba62938..7c630e2f3 100644\n--- b/sklearn/ensemble/_bagging.py\n+++ a/sklearn/ensemble/_bagging.py\n@@ -989,6 +989,43 @@ class BaggingClassifier(ClassifierMixin, BaseBagging):\n The class log-probabilities of the i...
null
{ "code": "diff --git a/sklearn/ensemble/_bagging.py b/sklearn/ensemble/_bagging.py\nindex 7c630e2f3..84ba62938 100644\n--- a/sklearn/ensemble/_bagging.py\n+++ b/sklearn/ensemble/_bagging.py\n@@ -989,43 +989,6 @@ class BaggingClassifier(ClassifierMixin, BaseBagging):\n The class log-probabilities of the i...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/ensemble/_bagging.py.\nHere is the description for the function:\n def predict_log_proba(self, X):\n \"\"\"Predict class log-probabilities for X.\n\n The predicted class log-probabilities of an input sample is computed as\n the log of ...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/tests/test_common.py::test_estimators[BaggingClassifier(n_estimators=5)-check_classifiers_train]", "sklearn/tests/test_common.py::test_estimators[BaggingClassifier(n_estimators=5)-check_classifiers_train(readonly_memmap=True)]", "sklearn/tests/test_common.py::test_estimators[B...
scikit-learn__scikit-learn-8
1.0
{ "code": "diff --git b/sklearn/ensemble/_bagging.py a/sklearn/ensemble/_bagging.py\nindex 1a6f5e1fd..7c630e2f3 100644\n--- b/sklearn/ensemble/_bagging.py\n+++ a/sklearn/ensemble/_bagging.py\n@@ -939,6 +939,36 @@ class BaggingClassifier(ClassifierMixin, BaseBagging):\n The class probabilities of the input...
null
{ "code": "diff --git a/sklearn/ensemble/_bagging.py b/sklearn/ensemble/_bagging.py\nindex 7c630e2f3..1a6f5e1fd 100644\n--- a/sklearn/ensemble/_bagging.py\n+++ b/sklearn/ensemble/_bagging.py\n@@ -939,36 +939,6 @@ class BaggingClassifier(ClassifierMixin, BaseBagging):\n The class probabilities of the input...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/ensemble/_bagging.py.\nHere is the description for the function:\n def predict_proba(self, X):\n \"\"\"Predict class probabilities for X.\n\n The predicted class probabilities of an input sample is computed as\n the mean predicted clas...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/tests/test_common.py::test_estimators[BaggingClassifier(n_estimators=5)-check_fit_score_takes_y]", "sklearn/tests/test_common.py::test_estimators[BaggingClassifier(n_estimators=5)-check_estimators_dtypes]", "sklearn/tests/test_common.py::test_estimators[BaggingClassifier(n_est...
scikit-learn__scikit-learn-9
1.0
{ "code": "diff --git b/sklearn/linear_model/_bayes.py a/sklearn/linear_model/_bayes.py\nindex c5ee61003..b6527d4f2 100644\n--- b/sklearn/linear_model/_bayes.py\n+++ a/sklearn/linear_model/_bayes.py\n@@ -213,6 +213,7 @@ class BayesianRidge(RegressorMixin, LinearModel):\n self.copy_X = copy_X\n self.ve...
null
{ "code": "diff --git a/sklearn/linear_model/_bayes.py b/sklearn/linear_model/_bayes.py\nindex b6527d4f2..c5ee61003 100644\n--- a/sklearn/linear_model/_bayes.py\n+++ b/sklearn/linear_model/_bayes.py\n@@ -213,7 +213,6 @@ class BayesianRidge(RegressorMixin, LinearModel):\n self.copy_X = copy_X\n self.ve...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/linear_model/_bayes.py.\nHere is the description for the function:\n def fit(self, X, y, sample_weight=None):\n \"\"\"Fit the model.\n\n Parameters\n ----------\n X : ndarray of shape (n_samples, n_features)\n Trainin...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/impute/tests/test_impute.py::test_imputation_shape[csr_matrix-mean]", "sklearn/impute/tests/test_impute.py::test_imputation_shape[csr_matrix-median]", "sklearn/impute/tests/test_impute.py::test_imputation_shape[csr_matrix-most_frequent]", "sklearn/impute/tests/test_impute....
scikit-learn__scikit-learn-10
1.0
{ "code": "diff --git b/sklearn/linear_model/_bayes.py a/sklearn/linear_model/_bayes.py\nindex 475588ca0..b6527d4f2 100644\n--- b/sklearn/linear_model/_bayes.py\n+++ a/sklearn/linear_model/_bayes.py\n@@ -367,6 +367,13 @@ class BayesianRidge(RegressorMixin, LinearModel):\n y_std : array-like of shape (n_sample...
null
{ "code": "diff --git a/sklearn/linear_model/_bayes.py b/sklearn/linear_model/_bayes.py\nindex b6527d4f2..475588ca0 100644\n--- a/sklearn/linear_model/_bayes.py\n+++ b/sklearn/linear_model/_bayes.py\n@@ -367,13 +367,6 @@ class BayesianRidge(RegressorMixin, LinearModel):\n y_std : array-like of shape (n_sample...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/linear_model/_bayes.py.\nHere is the description for the function:\n def predict(self, X, return_std=False):\n \"\"\"Predict using the linear model.\n\n In addition to the mean of the predictive distribution, also its\n standard deviat...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/impute/tests/test_impute.py::test_imputation_shape[csr_matrix-mean]", "sklearn/impute/tests/test_impute.py::test_imputation_shape[csr_matrix-median]", "sklearn/impute/tests/test_impute.py::test_imputation_shape[csr_matrix-most_frequent]", "sklearn/impute/tests/test_impute....
scikit-learn__scikit-learn-11
1.0
{ "code": "diff --git b/sklearn/neural_network/_rbm.py a/sklearn/neural_network/_rbm.py\nindex 9e29bd3d7..49848e9f9 100644\n--- b/sklearn/neural_network/_rbm.py\n+++ a/sklearn/neural_network/_rbm.py\n@@ -382,6 +382,7 @@ class BernoulliRBM(ClassNamePrefixFeaturesOutMixin, TransformerMixin, BaseEstima\n # log(e...
null
{ "code": "diff --git a/sklearn/neural_network/_rbm.py b/sklearn/neural_network/_rbm.py\nindex 49848e9f9..9e29bd3d7 100644\n--- a/sklearn/neural_network/_rbm.py\n+++ b/sklearn/neural_network/_rbm.py\n@@ -382,7 +382,6 @@ class BernoulliRBM(ClassNamePrefixFeaturesOutMixin, TransformerMixin, BaseEstima\n # log(e...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/neural_network/_rbm.py.\nHere is the description for the function:\n def fit(self, X, y=None):\n \"\"\"Fit the model to the data X.\n\n Parameters\n ----------\n X : {array-like, sparse matrix} of shape (n_samples, n_features)\n...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/tests/test_common.py::test_estimators[BernoulliRBM(n_iter=5)-check_fit_score_takes_y]", "sklearn/tests/test_common.py::test_estimators[BernoulliRBM(n_iter=5)-check_estimators_overwrite_params]", "sklearn/tests/test_common.py::test_estimators[BernoulliRBM(n_iter=5)-check_estima...
scikit-learn__scikit-learn-12
1.0
{ "code": "diff --git b/sklearn/neural_network/_rbm.py a/sklearn/neural_network/_rbm.py\nindex 2f53aedb8..49848e9f9 100644\n--- b/sklearn/neural_network/_rbm.py\n+++ a/sklearn/neural_network/_rbm.py\n@@ -269,6 +269,7 @@ class BernoulliRBM(ClassNamePrefixFeaturesOutMixin, TransformerMixin, BaseEstima\n \n retu...
null
{ "code": "diff --git a/sklearn/neural_network/_rbm.py b/sklearn/neural_network/_rbm.py\nindex 49848e9f9..2f53aedb8 100644\n--- a/sklearn/neural_network/_rbm.py\n+++ b/sklearn/neural_network/_rbm.py\n@@ -269,7 +269,6 @@ class BernoulliRBM(ClassNamePrefixFeaturesOutMixin, TransformerMixin, BaseEstima\n \n retu...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/neural_network/_rbm.py.\nHere is the description for the function:\n def partial_fit(self, X, y=None):\n \"\"\"Fit the model to the partial segment of the data X.\n\n Parameters\n ----------\n X : ndarray of shape (n_samples, n_...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/tests/test_common.py::test_estimators[BernoulliRBM(n_iter=5)-check_fit_score_takes_y]", "sklearn/neural_network/tests/test_rbm.py::test_partial_fit", "sklearn/neural_network/tests/test_rbm.py::test_small_sparse_partial_fit[csc_matrix]", "sklearn/neural_network/tests/test_r...
scikit-learn__scikit-learn-13
1.0
{ "code": "diff --git b/sklearn/neural_network/_rbm.py a/sklearn/neural_network/_rbm.py\nindex 4d1bb5988..49848e9f9 100644\n--- b/sklearn/neural_network/_rbm.py\n+++ a/sklearn/neural_network/_rbm.py\n@@ -360,6 +360,27 @@ class BernoulliRBM(ClassNamePrefixFeaturesOutMixin, TransformerMixin, BaseEstima\n free e...
null
{ "code": "diff --git a/sklearn/neural_network/_rbm.py b/sklearn/neural_network/_rbm.py\nindex 49848e9f9..4d1bb5988 100644\n--- a/sklearn/neural_network/_rbm.py\n+++ b/sklearn/neural_network/_rbm.py\n@@ -360,27 +360,6 @@ class BernoulliRBM(ClassNamePrefixFeaturesOutMixin, TransformerMixin, BaseEstima\n free e...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/neural_network/_rbm.py.\nHere is the description for the function:\n def score_samples(self, X):\n \"\"\"Compute the pseudo-likelihood of X.\n\n Parameters\n ----------\n X : {array-like, sparse matrix} of shape (n_samples, n_fe...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/neural_network/tests/test_rbm.py::test_fit", "sklearn/neural_network/tests/test_rbm.py::test_partial_fit", "sklearn/neural_network/tests/test_rbm.py::test_small_sparse_partial_fit[csc_matrix]", "sklearn/neural_network/tests/test_rbm.py::test_small_sparse_partial_fit[csc_ar...
scikit-learn__scikit-learn-14
1.0
{ "code": "diff --git b/sklearn/cluster/_bisect_k_means.py a/sklearn/cluster/_bisect_k_means.py\nindex 44a9451a8..83ac46829 100644\n--- b/sklearn/cluster/_bisect_k_means.py\n+++ a/sklearn/cluster/_bisect_k_means.py\n@@ -356,6 +356,7 @@ class BisectingKMeans(_BaseKMeans):\n \n cluster_to_bisect.split(best_labe...
null
{ "code": "diff --git a/sklearn/cluster/_bisect_k_means.py b/sklearn/cluster/_bisect_k_means.py\nindex 83ac46829..44a9451a8 100644\n--- a/sklearn/cluster/_bisect_k_means.py\n+++ b/sklearn/cluster/_bisect_k_means.py\n@@ -356,7 +356,6 @@ class BisectingKMeans(_BaseKMeans):\n \n cluster_to_bisect.split(best_labe...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/cluster/_bisect_k_means.py.\nHere is the description for the function:\n def fit(self, X, y=None, sample_weight=None):\n \"\"\"Compute bisecting k-means clustering.\n\n Parameters\n ----------\n X : {array-like, sparse matrix} o...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/tests/test_common.py::test_estimators[BisectingKMeans(max_iter=5,n_clusters=2,n_init=2)-check_fit_score_takes_y]", "sklearn/tests/test_common.py::test_estimators[BisectingKMeans(max_iter=5,n_clusters=2,n_init=2)-check_estimators_overwrite_params]", "sklearn/tests/test_common.p...
scikit-learn__scikit-learn-15
1.0
{ "code": "diff --git b/sklearn/calibration.py a/sklearn/calibration.py\nindex e08464533..8b053f538 100644\n--- b/sklearn/calibration.py\n+++ a/sklearn/calibration.py\n@@ -289,6 +289,10 @@ class CalibratedClassifierCV(ClassifierMixin, MetaEstimatorMixin, BaseEstimator)\n \n return estimator\n \n+ @_fit_con...
null
{ "code": "diff --git a/sklearn/calibration.py b/sklearn/calibration.py\nindex 8b053f538..e08464533 100644\n--- a/sklearn/calibration.py\n+++ b/sklearn/calibration.py\n@@ -289,10 +289,6 @@ class CalibratedClassifierCV(ClassifierMixin, MetaEstimatorMixin, BaseEstimator)\n \n return estimator\n \n- @_fit_con...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/calibration.py.\nHere is the description for the function:\n def fit(self, X, y, sample_weight=None, **fit_params):\n \"\"\"Fit the calibrated model.\n\n Parameters\n ----------\n X : array-like of shape (n_samples, n_features)\...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/tests/test_metaestimators_metadata_routing.py::test_error_on_missing_requests_for_sub_estimator[CalibratedClassifierCV]", "sklearn/tests/test_common.py::test_estimators[CalibratedClassifierCV(cv=3,estimator=LogisticRegression(C=1))-check_fit_score_takes_y]", "sklearn/tests/tes...
scikit-learn__scikit-learn-16
1.0
{ "code": "diff --git b/sklearn/calibration.py a/sklearn/calibration.py\nindex 54d104feb..8b053f538 100644\n--- b/sklearn/calibration.py\n+++ a/sklearn/calibration.py\n@@ -483,6 +483,17 @@ class CalibratedClassifierCV(ClassifierMixin, MetaEstimatorMixin, BaseEstimator)\n C : ndarray of shape (n_samples, n_cla...
null
{ "code": "diff --git a/sklearn/calibration.py b/sklearn/calibration.py\nindex 8b053f538..54d104feb 100644\n--- a/sklearn/calibration.py\n+++ b/sklearn/calibration.py\n@@ -483,17 +483,6 @@ class CalibratedClassifierCV(ClassifierMixin, MetaEstimatorMixin, BaseEstimator)\n C : ndarray of shape (n_samples, n_cla...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/calibration.py.\nHere is the description for the function:\n def predict_proba(self, X):\n \"\"\"Calibrated probabilities of classification.\n\n This function returns calibrated probabilities of classification\n according to each class...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/tests/test_common.py::test_estimators[CalibratedClassifierCV(cv=3,estimator=LogisticRegression(C=1))-check_fit_score_takes_y]", "sklearn/tests/test_common.py::test_estimators[CalibratedClassifierCV(cv=3,estimator=LogisticRegression(C=1))-check_estimators_dtypes]", "sklearn/tes...
scikit-learn__scikit-learn-17
1.0
{ "code": "diff --git b/sklearn/calibration.py a/sklearn/calibration.py\nindex 31ca23c40..8b053f538 100644\n--- b/sklearn/calibration.py\n+++ a/sklearn/calibration.py\n@@ -1144,6 +1144,31 @@ class CalibrationDisplay(_BinaryClassifierCurveDisplayMixin):\n display : :class:`~sklearn.calibration.CalibrationDispl...
null
{ "code": "diff --git a/sklearn/calibration.py b/sklearn/calibration.py\nindex 8b053f538..31ca23c40 100644\n--- a/sklearn/calibration.py\n+++ b/sklearn/calibration.py\n@@ -1144,31 +1144,6 @@ class CalibrationDisplay(_BinaryClassifierCurveDisplayMixin):\n display : :class:`~sklearn.calibration.CalibrationDispl...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/calibration.py.\nHere is the description for the function:\n def plot(self, *, ax=None, name=None, ref_line=True, **kwargs):\n \"\"\"Plot visualization.\n\n Extra keyword arguments will be passed to\n :func:`matplotlib.pyplot.plot`.\n\...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/metrics/_plot/tests/test_common_curve_display.py::test_classifier_display_curve_named_constructor_return_type[from_predictions-CalibrationDisplay]", "sklearn/metrics/_plot/tests/test_common_curve_display.py::test_classifier_display_curve_named_constructor_return_type[from_estimato...
scikit-learn__scikit-learn-18
1.0
{ "code": "diff --git b/sklearn/utils/_mocking.py a/sklearn/utils/_mocking.py\nindex f3964dd33..5e9973f37 100644\n--- b/sklearn/utils/_mocking.py\n+++ a/sklearn/utils/_mocking.py\n@@ -295,6 +295,18 @@ class CheckingClassifier(ClassifierMixin, BaseEstimator):\n else (n_samples, n_classes)\n ...
null
{ "code": "diff --git a/sklearn/utils/_mocking.py b/sklearn/utils/_mocking.py\nindex 5e9973f37..f3964dd33 100644\n--- a/sklearn/utils/_mocking.py\n+++ b/sklearn/utils/_mocking.py\n@@ -295,18 +295,6 @@ class CheckingClassifier(ClassifierMixin, BaseEstimator):\n else (n_samples, n_classes)\n ...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/utils/_mocking.py.\nHere is the description for the function:\n def decision_function(self, X):\n \"\"\"Confidence score.\n\n Parameters\n ----------\n X : array-like of shape (n_samples, n_features)\n The input data....
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/tests/test_multiclass.py::test_ecoc_delegate_sparse_base_estimator[csc_matrix]", "sklearn/tests/test_multiclass.py::test_ecoc_delegate_sparse_base_estimator[csc_array]", "sklearn/utils/tests/test_mocking.py::test_check_X_on_predict_success[decision_function]", "sklearn/uti...
scikit-learn__scikit-learn-19
1.0
{ "code": "diff --git b/sklearn/utils/_mocking.py a/sklearn/utils/_mocking.py\nindex eb39c9f09..5e9973f37 100644\n--- b/sklearn/utils/_mocking.py\n+++ a/sklearn/utils/_mocking.py\n@@ -215,6 +215,29 @@ class CheckingClassifier(ClassifierMixin, BaseEstimator):\n -------\n self\n \"\"\"\n+ ...
null
{ "code": "diff --git a/sklearn/utils/_mocking.py b/sklearn/utils/_mocking.py\nindex 5e9973f37..eb39c9f09 100644\n--- a/sklearn/utils/_mocking.py\n+++ b/sklearn/utils/_mocking.py\n@@ -215,29 +215,6 @@ class CheckingClassifier(ClassifierMixin, BaseEstimator):\n -------\n self\n \"\"\"\n- ...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/utils/_mocking.py.\nHere is the description for the function:\n def fit(self, X, y, sample_weight=None, **fit_params):\n \"\"\"Fit classifier.\n\n Parameters\n ----------\n X : array-like of shape (n_samples, n_features)\n ...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/model_selection/tests/test_validation.py::test_cross_val_score[coo_matrix]", "sklearn/model_selection/tests/test_search.py::test_SearchCV_with_fit_params[GridSearchCV]", "sklearn/model_selection/tests/test_validation.py::test_cross_val_score[coo_array]", "sklearn/model_sel...
scikit-learn__scikit-learn-20
1.0
{ "code": "diff --git b/sklearn/utils/_mocking.py a/sklearn/utils/_mocking.py\nindex 65add68cc..5e9973f37 100644\n--- b/sklearn/utils/_mocking.py\n+++ a/sklearn/utils/_mocking.py\n@@ -273,6 +273,13 @@ class CheckingClassifier(ClassifierMixin, BaseEstimator):\n proba : ndarray of shape (n_samples, n_classes)\n...
null
{ "code": "diff --git a/sklearn/utils/_mocking.py b/sklearn/utils/_mocking.py\nindex 5e9973f37..65add68cc 100644\n--- a/sklearn/utils/_mocking.py\n+++ b/sklearn/utils/_mocking.py\n@@ -273,13 +273,6 @@ class CheckingClassifier(ClassifierMixin, BaseEstimator):\n proba : ndarray of shape (n_samples, n_classes)\n...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/utils/_mocking.py.\nHere is the description for the function:\n def predict_proba(self, X):\n \"\"\"Predict probabilities for each class.\n\n Here, the dummy classifier will provide a probability of 1 for the\n first class of `classes_...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/model_selection/tests/test_classification_threshold.py::test_fit_and_score_over_thresholds_fit_params[list]", "sklearn/model_selection/tests/test_classification_threshold.py::test_fit_and_score_over_thresholds_fit_params[array]", "sklearn/ensemble/tests/test_stacking.py::test_...
scikit-learn__scikit-learn-21
1.0
{ "code": "diff --git b/sklearn/utils/_mocking.py a/sklearn/utils/_mocking.py\nindex 61e8e2ca1..5e9973f37 100644\n--- b/sklearn/utils/_mocking.py\n+++ a/sklearn/utils/_mocking.py\n@@ -327,6 +327,13 @@ class CheckingClassifier(ClassifierMixin, BaseEstimator):\n Either 0 or 1 depending of `foo_param` (i.e. ...
null
{ "code": "diff --git a/sklearn/utils/_mocking.py b/sklearn/utils/_mocking.py\nindex 5e9973f37..61e8e2ca1 100644\n--- a/sklearn/utils/_mocking.py\n+++ b/sklearn/utils/_mocking.py\n@@ -327,13 +327,6 @@ class CheckingClassifier(ClassifierMixin, BaseEstimator):\n Either 0 or 1 depending of `foo_param` (i.e. ...
null
scikit-learn/scikit-learn
c71340fd74280408b84be7ca008e1205e10c7830
2024-09-17T18:25:43+02:00
null
null
{ "code": "I want to add a new function in file in sklearn/utils/_mocking.py.\nHere is the description for the function:\n def score(self, X=None, Y=None):\n \"\"\"Fake score.\n\n Parameters\n ----------\n X : array-like of shape (n_samples, n_features)\n Input data, where `n...
c71340fd74280408b84be7ca008e1205e10c7830
{ "FAIL_TO_PASS": [ "sklearn/model_selection/tests/test_search.py::test_SearchCV_with_fit_params[GridSearchCV]", "sklearn/model_selection/tests/test_search.py::test_SearchCV_with_fit_params[RandomizedSearchCV]", "sklearn/model_selection/tests/test_search.py::test_gridsearch_nd", "sklearn/model_selecti...