{
    "file_diffs": [
        {
            "old_file_content": "from typing import List, Optional, Tuple, Union, Dict\nfrom functools import lru_cache\nfrom xml.sax.saxutils import escape\n\nimport numpy as np\n\nfrom AnyQt.QtCore import Qt, QPointF, QSize, Signal, QRectF\nfrom AnyQt.QtGui import QColor\nfrom AnyQt.QtWidgets import QApplication, QToolTip, QGraphicsSceneHelpEvent\n\nimport pyqtgraph as pg\n\nfrom orangewidget.utils.visual_settings_dlg import VisualSettingsDialog, \\\n    KeyType, ValueType\n\nfrom Orange.data import Table, DiscreteVariable, ContinuousVariable, \\\n    StringVariable, Variable\nfrom Orange.widgets import gui\nfrom Orange.widgets.settings import Setting, ContextSetting, \\\n    DomainContextHandler, SettingProvider\nfrom Orange.widgets.utils.annotated_data import create_annotated_table, \\\n    ANNOTATED_DATA_SIGNAL_NAME\nfrom Orange.widgets.utils import instance_tooltip\nfrom Orange.widgets.utils.itemmodels import DomainModel\nfrom Orange.widgets.utils.plot import OWPlotGUI, SELECT, PANNING, ZOOMING\nfrom Orange.widgets.utils.sql import check_sql_input\nfrom Orange.widgets.visualize.owscatterplotgraph import LegendItem\nfrom Orange.widgets.visualize.utils.customizableplot import Updater, \\\n    CommonParameterSetter\nfrom Orange.widgets.visualize.utils.plotutils import AxisItem, \\\n    HelpEventDelegate, PlotWidget\nfrom Orange.widgets.widget import OWWidget, Input, Output, Msg\n\nMAX_INSTANCES = 200\n\n\nclass BarPlotViewBox(pg.ViewBox):\n    def __init__(self, parent):\n        super().__init__()\n        self.graph = parent\n        self.setMouseMode(self.RectMode)\n\n    def mouseDragEvent(self, ev, axis=None):\n        if self.graph.state == SELECT and axis is None:\n            ev.accept()\n            if ev.button() == Qt.LeftButton:\n                self.updateScaleBox(ev.buttonDownPos(), ev.pos())\n                if ev.isFinish():\n                    self.rbScaleBox.hide()\n                    p1, p2 = ev.buttonDownPos(ev.button()), ev.pos()\n                    p1 = self.mapToView(p1)\n                    p2 = self.mapToView(p2)\n                    self.graph.select_by_rectangle(QRectF(p1, p2))\n                else:\n                    self.updateScaleBox(ev.buttonDownPos(), ev.pos())\n        elif self.graph.state == ZOOMING or self.graph.state == PANNING:\n            super().mouseDragEvent(ev, axis=axis)\n        else:\n            ev.ignore()\n\n    def mouseClickEvent(self, ev):\n        if ev.button() == Qt.LeftButton:\n            self.graph.select_by_click(self.mapSceneToView(ev.scenePos()))\n            ev.accept()\n\n\nclass ParameterSetter(CommonParameterSetter):\n    GRID_LABEL, SHOW_GRID_LABEL = \"Gridlines\", \"Show\"\n    DEFAULT_ALPHA_GRID, DEFAULT_SHOW_GRID = 80, True\n    BOTTOM_AXIS_LABEL, GROUP_AXIS_LABEL = \"Bottom axis\", \"Group axis\"\n    IS_VERTICAL_LABEL = \"Vertical ticks\"\n\n    def __init__(self, master):\n        self.grid_settings: Dict = None\n        self.master: BarPlotGraph = master\n        super().__init__()\n\n    def update_setters(self):\n        self.grid_settings = {\n            Updater.ALPHA_LABEL: self.DEFAULT_ALPHA_GRID,\n            self.SHOW_GRID_LABEL: self.DEFAULT_SHOW_GRID,\n        }\n\n        self.initial_settings = {\n            self.LABELS_BOX: {\n                self.FONT_FAMILY_LABEL: self.FONT_FAMILY_SETTING,\n                self.TITLE_LABEL: self.FONT_SETTING,\n                self.AXIS_TITLE_LABEL: self.FONT_SETTING,\n                self.AXIS_TICKS_LABEL: self.FONT_SETTING,\n                self.LEGEND_LABEL: self.FONT_SETTING,\n            },\n            self.ANNOT_BOX: {\n                self.TITLE_LABEL: {self.TITLE_LABEL: (\"\", \"\")},\n            },\n            self.PLOT_BOX: {\n                self.GRID_LABEL: {\n                    self.SHOW_GRID_LABEL: (None, True),\n                    Updater.ALPHA_LABEL: (range(0, 255, 5),\n                                          self.DEFAULT_ALPHA_GRID),\n                },\n                self.BOTTOM_AXIS_LABEL: {\n                    self.IS_VERTICAL_LABEL: (None, True),\n                },\n                self.GROUP_AXIS_LABEL: {\n                    self.IS_VERTICAL_LABEL: (None, False),\n                },\n            },\n        }\n\n        def update_grid(**settings):\n            self.grid_settings.update(**settings)\n            self.master.showGrid(y=self.grid_settings[self.SHOW_GRID_LABEL],\n                          alpha=self.grid_settings[Updater.ALPHA_LABEL] / 255)\n\n        def update_bottom_axis(**settings):\n            axis = self.master.getAxis(\"bottom\")\n            axis.setRotateTicks(settings[self.IS_VERTICAL_LABEL])\n\n        def update_group_axis(**settings):\n            axis = self.master.group_axis\n            axis.setRotateTicks(settings[self.IS_VERTICAL_LABEL])\n\n        self._setters[self.PLOT_BOX] = {\n            self.GRID_LABEL: update_grid,\n            self.BOTTOM_AXIS_LABEL: update_bottom_axis,\n            self.GROUP_AXIS_LABEL: update_group_axis,\n        }\n\n    @property\n    def title_item(self):\n        return self.master.getPlotItem().titleLabel\n\n    @property\n    def axis_items(self):\n        return [value[\"item\"] for value in\n                self.master.getPlotItem().axes.values()]\n\n    @property\n    def legend_items(self):\n        return self.master.legend.items\n\n\nclass BarPlotGraph(PlotWidget):\n    selection_changed = Signal(list)\n    bar_width = 0.7\n\n    def __init__(self, master, parent=None):\n        self.selection = []\n        self.master: OWBarPlot = master\n        self.state: int = SELECT\n        self.bar_item: pg.BarGraphItem = None\n        super().__init__(\n            parent=parent,\n            viewBox=BarPlotViewBox(self),\n            enableMenu=False,\n            axisItems={\"bottom\": AxisItem(orientation=\"bottom\",\n                                          rotate_ticks=True),\n                       \"left\": AxisItem(orientation=\"left\")}\n        )\n        self.hideAxis(\"left\")\n        self.hideAxis(\"bottom\")\n        self.getPlotItem().buttonsHidden = True\n        self.getPlotItem().setContentsMargins(10, 0, 0, 10)\n        self.getViewBox().setMouseMode(pg.ViewBox.PanMode)\n\n        self.group_axis = AxisItem(\"bottom\")\n        self.group_axis.hide()\n        self.group_axis.linkToView(self.getViewBox())\n        self.getPlotItem().layout.addItem(self.group_axis, 4, 1)\n\n        self.legend = self._create_legend()\n\n        self.tooltip_delegate = HelpEventDelegate(self.help_event)\n        self.scene().installEventFilter(self.tooltip_delegate)\n\n        self.parameter_setter = ParameterSetter(self)\n\n        self.showGrid(y=self.parameter_setter.DEFAULT_SHOW_GRID,\n                      alpha=self.parameter_setter.DEFAULT_ALPHA_GRID / 255)\n\n    def _create_legend(self):\n        legend = LegendItem()\n        legend.setParentItem(self.getViewBox())\n        legend.anchor((1, 0), (1, 0), offset=(-3, 1))\n        legend.hide()\n        return legend\n\n    def update_legend(self):\n        self.legend.clear()\n        self.legend.hide()\n        for color, text in self.master.get_legend_data():\n            dot = pg.ScatterPlotItem(\n                pen=pg.mkPen(color=color),\n                brush=pg.mkBrush(color=color)\n            )\n            self.legend.addItem(dot, escape(text))\n            self.legend.show()\n        Updater.update_legend_font(self.legend.items,\n                                   **self.parameter_setter.legend_settings)\n\n    def reset_graph(self):\n        self.clear()\n        self.update_bars()\n        self.update_axes()\n        self.update_group_lines()\n        self.update_legend()\n        self.reset_view()\n\n    def update_bars(self):\n        if self.bar_item is not None:\n            self.removeItem(self.bar_item)\n            self.bar_item = None\n\n        values = self.master.get_values()\n        if values is None:\n            return\n\n        self.bar_item = pg.BarGraphItem(\n            x=np.arange(len(values)),\n            height=values,\n            width=self.bar_width,\n            pen=pg.mkPen(QColor(Qt.white)),\n            labels=self.master.get_labels(),\n            brushes=self.master.get_colors(),\n        )\n        self.addItem(self.bar_item)\n        self.__select_bars()\n\n    def update_axes(self):\n        if self.bar_item is not None:\n            self.showAxis(\"left\")\n            self.showAxis(\"bottom\")\n            self.group_axis.show()\n\n            vals_label, group_label, annot_label = self.master.get_axes()\n            self.setLabel(axis=\"left\", text=vals_label)\n            self.setLabel(axis=\"bottom\", text=annot_label)\n            self.group_axis.setLabel(group_label)\n\n            ticks = [list(enumerate(self.master.get_labels()))]\n            self.getAxis('bottom').setTicks(ticks)\n\n            labels = np.array(self.master.get_group_labels())\n            _, indices, counts = \\\n                np.unique(labels, return_index=True, return_counts=True)\n            ticks = [[(i + (c - 1) / 2, labels[i]) for i, c in\n                      zip(indices, counts)]]\n            self.group_axis.setTicks(ticks)\n\n            if not group_label:\n                self.group_axis.hide()\n            elif not annot_label:\n                self.hideAxis(\"bottom\")\n        else:\n            self.hideAxis(\"left\")\n            self.hideAxis(\"bottom\")\n            self.group_axis.hide()\n\n    def reset_view(self):\n        if self.bar_item is None:\n            return\n        values = np.append(self.bar_item.opts[\"height\"], 0)\n        min_ = np.nanmin(values)\n        max_ = -min_ + np.nanmax(values)\n        rect = QRectF(-0.5, min_, len(values) - 1, max_)\n        self.getViewBox().setRange(rect)\n\n    def zoom_button_clicked(self):\n        self.state = ZOOMING\n        self.getViewBox().setMouseMode(pg.ViewBox.RectMode)\n\n    def pan_button_clicked(self):\n        self.state = PANNING\n        self.getViewBox().setMouseMode(pg.ViewBox.PanMode)\n\n    def select_button_clicked(self):\n        self.state = SELECT\n        self.getViewBox().setMouseMode(pg.ViewBox.RectMode)\n\n    def reset_button_clicked(self):\n        self.reset_view()\n\n    def update_group_lines(self):\n        if self.bar_item is None:\n            return\n\n        labels = np.array(self.master.get_group_labels())\n        if labels is None or len(labels) == 0:\n            return\n\n        _, indices = np.unique(labels, return_index=True)\n        offset = self.bar_width / 2 + (1 - self.bar_width) / 2\n        for index in sorted(indices)[1:]:\n            line = pg.InfiniteLine(pos=index - offset, angle=90)\n            self.addItem(line)\n\n    def select_by_rectangle(self, rect: QRectF):\n        if self.bar_item is None:\n            return\n\n        x0, x1 = sorted((rect.topLeft().x(), rect.bottomRight().x()))\n        y0, y1 = sorted((rect.topLeft().y(), rect.bottomRight().y()))\n        x = self.bar_item.opts[\"x\"]\n        height = self.bar_item.opts[\"height\"]\n        d = self.bar_width / 2\n        # positive bars\n        mask = (x0 <= x + d) & (x1 >= x - d) & (y0 <= height) & (y1 > 0)\n        # negative bars\n        mask |= (x0 <= x + d) & (x1 >= x - d) & (y0 <= 0) & (y1 > height)\n        self.select_by_indices(list(np.flatnonzero(mask)))\n\n    def select_by_click(self, p: QPointF):\n        if self.bar_item is None:\n            return\n\n        index = self.__get_index_at(p)\n        self.select_by_indices([index] if index is not None else [])\n\n    def __get_index_at(self, p: QPointF):\n        x = p.x()\n        index = round(x)\n        heights = self.bar_item.opts[\"height\"]\n        if 0 <= index < len(heights) and abs(x - index) <= self.bar_width / 2:\n            height = heights[index]  # pylint: disable=unsubscriptable-object\n            if 0 <= p.y() <= height or height <= p.y() <= 0:\n                return index\n        return None\n\n    def select_by_indices(self, indices: List):\n        keys = QApplication.keyboardModifiers()\n        if keys & Qt.ControlModifier:\n            self.selection = list(set(self.selection) ^ set(indices))\n        elif keys & Qt.AltModifier:\n            self.selection = list(set(self.selection) - set(indices))\n        elif keys & Qt.ShiftModifier:\n            self.selection = list(set(self.selection) | set(indices))\n        else:\n            self.selection = list(set(indices))\n        self.__select_bars()\n        self.selection_changed.emit(self.selection)\n\n    def __select_bars(self):\n        if self.bar_item is None:\n            return\n\n        n = len(self.bar_item.opts[\"height\"])\n        pens = np.full(n, pg.mkPen(QColor(Qt.white)))\n        pen = pg.mkPen(QColor(Qt.black))\n        pen.setStyle(Qt.DashLine)\n        pens[self.selection] = pen\n        self.bar_item.setOpts(pens=pens)\n\n    def help_event(self, ev: QGraphicsSceneHelpEvent):\n        if self.bar_item is None:\n            return False\n\n        index = self.__get_index_at(self.bar_item.mapFromScene(ev.scenePos()))\n        text = \"\"\n        if index is not None:\n            text = self.master.get_tooltip(index)\n        if text:\n            QToolTip.showText(ev.screenPos(), text, widget=self)\n            return True\n        else:\n            return False\n\n\nclass OWBarPlot(OWWidget):\n    name = \"Bar Plot\"\n    description = \"Visualizes comparisons among categorical variables.\"\n    icon = \"icons/BarPlot.svg\"\n    priority = 190\n    keywords = [\"chart\"]\n\n    class Inputs:\n        data = Input(\"Data\", Table, default=True)\n        data_subset = Input(\"Data Subset\", Table)\n\n    class Outputs:\n        selected_data = Output(\"Selected Data\", Table, default=True)\n        annotated_data = Output(ANNOTATED_DATA_SIGNAL_NAME, Table)\n\n    buttons_area_orientation = Qt.Vertical\n    settingsHandler = DomainContextHandler()\n    selected_var = ContextSetting(None)\n    group_var = ContextSetting(None)\n    annot_var = ContextSetting(None)\n    color_var = ContextSetting(None)\n    auto_commit = Setting(True)\n    selection = Setting(None, schema_only=True)\n    visual_settings = Setting({}, schema_only=True)\n\n    graph = SettingProvider(BarPlotGraph)\n    graph_name = \"graph.plotItem\"\n\n    class Error(OWWidget.Error):\n        no_cont_features = Msg(\"Plotting requires a numeric feature.\")\n\n    class Information(OWWidget.Information):\n        too_many_instances = Msg(\"Data has too many instances. Only first {}\"\n                                 \" are shown.\".format(MAX_INSTANCES))\n\n    enumeration = \"Enumeration\"\n\n    def __init__(self):\n        super().__init__()\n        self.data: Optional[Table] = None\n        self.orig_data: Optional[Table] = None\n        self.subset_data: Optional[Table] = None\n        self.subset_indices = []\n        self.graph: Optional[BarPlotGraph] = None\n        self._selected_var_model: Optional[DomainModel] = None\n        self._group_var_model: Optional[DomainModel] = None\n        self._annot_var_model: Optional[DomainModel] = None\n        self._color_var_model: Optional[DomainModel] = None\n        self.__pending_selection = self.selection\n\n        self.setup_gui()\n        VisualSettingsDialog(\n            self, self.graph.parameter_setter.initial_settings\n        )\n\n    def setup_gui(self):\n        self._add_graph()\n        self._add_controls()\n\n    def _add_graph(self):\n        box = gui.vBox(self.mainArea, True, margin=0)\n        self.graph = BarPlotGraph(self)\n        self.graph.selection_changed.connect(self.__selection_changed)\n        box.layout().addWidget(self.graph)\n\n    def __selection_changed(self, indices: List):\n        self.selection = list(set(self.grouped_indices[indices]))\n        self.commit.deferred()\n\n    def _add_controls(self):\n        box = gui.vBox(self.controlArea, True)\n        gui.rubber(self.controlArea)\n        self._selected_var_model = DomainModel(valid_types=ContinuousVariable)\n        gui.comboBox(\n            box, self, \"selected_var\", label=\"Values:\",\n            model=self._selected_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__parameter_changed,\n        )\n\n        self._group_var_model = DomainModel(\n            placeholder=\"None\", valid_types=DiscreteVariable\n        )\n        gui.comboBox(\n            box, self, \"group_var\", label=\"Group by:\",\n            model=self._group_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__group_var_changed,\n        )\n\n        self._annot_var_model = DomainModel(\n            placeholder=\"None\",\n            valid_types=(DiscreteVariable, StringVariable)\n        )\n        self._annot_var_model.order = self._annot_var_model.order[:1] + \\\n                                      (self.enumeration,) + \\\n                                      self._annot_var_model.order[1:]\n        gui.comboBox(\n            box, self, \"annot_var\", label=\"Annotations:\",\n            model=self._annot_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__parameter_changed,\n        )\n\n        self._color_var_model = DomainModel(\n            placeholder=\"(Same color)\", valid_types=DiscreteVariable\n        )\n        gui.comboBox(\n            box, self, \"color_var\", label=\"Color:\",\n            model=self._color_var_model,\n            contentsLength=12, searchable=True, orientation=Qt.Horizontal,\n            callback=self.__parameter_changed,\n        )\n\n        plot_gui = OWPlotGUI(self)\n        plot_gui.box_zoom_select(self.buttonsArea)\n\n        gui.auto_send(self.buttonsArea, self, \"auto_commit\")\n\n    def __parameter_changed(self):\n        self.graph.reset_graph()\n\n    def __group_var_changed(self):\n        self.clear_cache()\n        self.graph.selection = self.grouped_indices_inverted\n        self.__parameter_changed()\n\n    @property\n    @lru_cache()\n    def grouped_indices(self):\n        indices = []\n        if self.data:\n            indices = np.arange(len(self.data))\n            if self.group_var:\n                group_by = self.data.get_column(self.group_var)\n                indices = np.argsort(group_by, kind=\"mergesort\")\n        return indices\n\n    @property\n    def grouped_indices_inverted(self):\n        mask = np.isin(self.grouped_indices, self.selection)\n        return np.flatnonzero(mask)\n\n    @property\n    def grouped_data(self):\n        return self.data[self.grouped_indices]\n\n    @Inputs.data\n    @check_sql_input\n    def set_data(self, data: Optional[Table]):\n        self.closeContext()\n        self.clear()\n        self.orig_data = self.data = data\n        self.check_data()\n        self.init_attr_values()\n        self.openContext(self.data)\n        self.clear_cache()\n        self.commit.now()\n\n    def check_data(self):\n        self.clear_messages()\n        if self.data is not None:\n            if self.data.domain.has_continuous_attributes(True, True) == 0:\n                self.Error.no_cont_features()\n                self.data = None\n            elif len(self.data) > MAX_INSTANCES:\n                self.Information.too_many_instances()\n                self.data = self.data[:MAX_INSTANCES]\n\n    def init_attr_values(self):\n        domain = self.data.domain if self.data else None\n        for model, var in ((self._selected_var_model, \"selected_var\"),\n                           (self._group_var_model, \"group_var\"),\n                           (self._annot_var_model, \"annot_var\"),\n                           (self._color_var_model, \"color_var\")):\n            model.set_domain(domain)\n            setattr(self, var, None)\n\n        if self._selected_var_model:\n            self.selected_var = self._selected_var_model[0]\n        if domain is not None and domain.has_discrete_class:\n            self.color_var = domain.class_var\n\n    @Inputs.data_subset\n    @check_sql_input\n    def set_subset_data(self, data: Optional[Table]):\n        self.subset_data = data\n\n    def handleNewSignals(self):\n        self._handle_subset_data()\n        self.setup_plot()\n\n    def _handle_subset_data(self):\n        sub_ids = {e.id for e in self.subset_data} \\\n            if self.subset_data is not None else {}\n        self.subset_indices = []\n        if self.data is not None and sub_ids:\n            self.subset_indices = [x.id for x in self.data if x.id in sub_ids]\n\n    def get_values(self) -> Optional[np.ndarray]:\n        if not self.data or not self.selected_var:\n            return None\n        return self.grouped_data.get_column(self.selected_var)\n\n    def get_labels(self) -> Optional[Union[List, np.ndarray]]:\n        if not self.data:\n            return None\n        elif not self.annot_var:\n            return []\n        elif self.annot_var == self.enumeration:\n            return np.arange(1, len(self.data) + 1)[self.grouped_indices]\n        else:\n            return [self.annot_var.str_val(row[self.annot_var])\n                    for row in self.grouped_data]\n\n    def get_group_labels(self) -> Optional[List]:\n        if not self.data:\n            return None\n        elif not self.group_var:\n            return []\n        else:\n            return [self.group_var.str_val(row[self.group_var])\n                    for row in self.grouped_data]\n\n    def get_legend_data(self) -> List:\n        if not self.data or not self.color_var:\n            return []\n        else:\n            assert self.color_var.is_discrete\n            return [(QColor(*color), text) for color, text in\n                    zip(self.color_var.colors, self.color_var.values)]\n\n    def get_colors(self) -> Optional[List[QColor]]:\n        def create_color(i, id_):\n            lighter = id_ not in self.subset_indices and self.subset_indices\n            alpha = 50 if lighter else 255\n            if np.isnan(i):\n                return QColor(*(128, 128, 128, alpha))\n            return QColor(*np.append(self.color_var.colors[int(i)], alpha))\n\n        if not self.data:\n            return None\n        elif not self.color_var:\n            return [create_color(np.nan, id_) for id_ in self.grouped_data.ids]\n        else:\n            assert self.color_var.is_discrete\n            col = self.grouped_data.get_column(self.color_var)\n            return [create_color(i, id_) for id_, i in\n                    zip(self.grouped_data.ids, col)]\n\n    def get_tooltip(self, index: int) -> str:\n        if not self.data:\n            return \"\"\n        row = self.grouped_data[index]\n        attrs = [self.selected_var]\n        if self.group_var and self.group_var not in attrs:\n            attrs.append(self.group_var)\n        if isinstance(self.annot_var, Variable) and self.annot_var not in attrs:\n            attrs.append(self.annot_var)\n        if self.color_var and self.color_var not in attrs:\n            attrs.append(self.color_var)\n        text = \"<br/>\".join(escape('{} = {}'.format(var.name, row[var]))\n                            for var in attrs)\n        others = instance_tooltip(self.data.domain, row, skip_attrs=attrs)\n        if others:\n            text = \"<b>{}</b><br/><br/>{}\".format(text, others)\n        return text\n\n    def get_axes(self) -> Optional[Tuple[str, str, str]]:\n        if not self.data:\n            return None\n        return (self.selected_var.name,\n                self.group_var.name if self.group_var else \"\",\n                self.annot_var if self.annot_var else \"\")\n\n    def setup_plot(self):\n        self.graph.reset_graph()\n        self.apply_selection()\n\n    def apply_selection(self):\n        if self.data and self.__pending_selection is not None:\n            self.selection = [i for i in self.__pending_selection\n                              if i < len(self.data)]\n            self.graph.select_by_indices(self.grouped_indices_inverted)\n            self.__pending_selection = None\n\n    @gui.deferred\n    def commit(self):\n        selected = None\n        if self.data is not None and bool(self.selection):\n            selected = self.data[self.selection]\n        annotated = create_annotated_table(self.orig_data, self.selection)\n        self.Outputs.selected_data.send(selected)\n        self.Outputs.annotated_data.send(annotated)\n\n    def clear(self):\n        self.selection = None\n        self.graph.selection = []\n        self.clear_cache()\n\n    @staticmethod\n    def clear_cache():\n        OWBarPlot.grouped_indices.fget.cache_clear()\n\n    def send_report(self):\n        if self.data is None:\n            return\n        self.report_plot()\n\n    def set_visual_settings(self, key: KeyType, value: ValueType):\n        self.graph.parameter_setter.set_parameter(key, value)\n        self.visual_settings[key] = value\n\n    def sizeHint(self):  # pylint: disable=no-self-use\n        return QSize(1132, 708)\n\n    def showEvent(self, event):\n        super().showEvent(event)\n        self.graph.reset_view()\n\n\nif __name__ == \"__main__\":\n    from Orange.widgets.utils.widgetpreview import WidgetPreview\n\n    iris = Table(\"iris\")\n    WidgetPreview(OWBarPlot).run(set_data=iris[::3],\n                                 set_subset_data=iris[::15])\n",
            "new_file_content": "from typing import List, Optional, Tuple, Union, Dict\nfrom functools import lru_cache\nfrom xml.sax.saxutils import escape\n\nimport numpy as np\n\nfrom AnyQt.QtCore import Qt, QPointF, QSize, Signal, QRectF\nfrom AnyQt.QtGui import QColor\nfrom AnyQt.QtWidgets import QApplication, QToolTip, QGraphicsSceneHelpEvent\n\nimport pyqtgraph as pg\n\nfrom orangewidget.utils.visual_settings_dlg import VisualSettingsDialog, \\\n    KeyType, ValueType\n\nfrom Orange.data import Table, DiscreteVariable, ContinuousVariable, \\\n    StringVariable, Variable\nfrom Orange.widgets import gui\nfrom Orange.widgets.settings import Setting, ContextSetting, \\\n    DomainContextHandler, SettingProvider\nfrom Orange.widgets.utils.annotated_data import create_annotated_table, \\\n    ANNOTATED_DATA_SIGNAL_NAME\nfrom Orange.widgets.utils import instance_tooltip\nfrom Orange.widgets.utils.itemmodels import DomainModel\nfrom Orange.widgets.utils.plot import OWPlotGUI, SELECT, PANNING, ZOOMING\nfrom Orange.widgets.utils.sql import check_sql_input\nfrom Orange.widgets.visualize.owscatterplotgraph import LegendItem\nfrom Orange.widgets.visualize.utils.customizableplot import Updater, \\\n    CommonParameterSetter\nfrom Orange.widgets.visualize.utils.plotutils import AxisItem, \\\n    HelpEventDelegate, PlotWidget\nfrom Orange.widgets.widget import OWWidget, Input, Output, Msg\n\nMAX_INSTANCES = 200\n\n\nclass BarPlotViewBox(pg.ViewBox):\n    def __init__(self, parent):\n        super().__init__()\n        self.graph = parent\n        self.setMouseMode(self.RectMode)\n\n    def mouseDragEvent(self, ev, axis=None):\n        if self.graph.state == SELECT and axis is None:\n            ev.accept()\n            if ev.button() == Qt.LeftButton:\n                self.updateScaleBox(ev.buttonDownPos(), ev.pos())\n                if ev.isFinish():\n                    self.rbScaleBox.hide()\n                    p1, p2 = ev.buttonDownPos(ev.button()), ev.pos()\n                    p1 = self.mapToView(p1)\n                    p2 = self.mapToView(p2)\n                    self.graph.select_by_rectangle(QRectF(p1, p2))\n                else:\n                    self.updateScaleBox(ev.buttonDownPos(), ev.pos())\n        elif self.graph.state == ZOOMING or self.graph.state == PANNING:\n            super().mouseDragEvent(ev, axis=axis)\n        else:\n            ev.ignore()\n\n    def mouseClickEvent(self, ev):\n        if ev.button() == Qt.LeftButton:\n            self.graph.select_by_click(self.mapSceneToView(ev.scenePos()))\n            ev.accept()\n\n\nclass ParameterSetter(CommonParameterSetter):\n    GRID_LABEL, SHOW_GRID_LABEL = \"Gridlines\", \"Show\"\n    DEFAULT_ALPHA_GRID, DEFAULT_SHOW_GRID = 80, True\n    BOTTOM_AXIS_LABEL, GROUP_AXIS_LABEL = \"Bottom axis\", \"Group axis\"\n    IS_VERTICAL_LABEL = \"Vertical ticks\"\n\n    def __init__(self, master):\n        self.grid_settings: Dict = None\n        self.master: BarPlotGraph = master\n        super().__init__()\n\n    def update_setters(self):\n        self.grid_settings = {\n            Updater.ALPHA_LABEL: self.DEFAULT_ALPHA_GRID,\n            self.SHOW_GRID_LABEL: self.DEFAULT_SHOW_GRID,\n        }\n\n        self.initial_settings = {\n            self.LABELS_BOX: {\n                self.FONT_FAMILY_LABEL: self.FONT_FAMILY_SETTING,\n                self.TITLE_LABEL: self.FONT_SETTING,\n                self.AXIS_TITLE_LABEL: self.FONT_SETTING,\n                self.AXIS_TICKS_LABEL: self.FONT_SETTING,\n                self.LEGEND_LABEL: self.FONT_SETTING,\n            },\n            self.ANNOT_BOX: {\n                self.TITLE_LABEL: {self.TITLE_LABEL: (\"\", \"\")},\n            },\n            self.PLOT_BOX: {\n                self.GRID_LABEL: {\n                    self.SHOW_GRID_LABEL: (None, True),\n                    Updater.ALPHA_LABEL: (range(0, 255, 5),\n                                          self.DEFAULT_ALPHA_GRID),\n                },\n                self.BOTTOM_AXIS_LABEL: {\n                    self.IS_VERTICAL_LABEL: (None, True),\n                },\n                self.GROUP_AXIS_LABEL: {\n                    self.IS_VERTICAL_LABEL: (None, False),\n                },\n            },\n        }\n\n        def update_grid(**settings):\n            self.grid_settings.update(**settings)\n            self.master.showGrid(y=self.grid_settings[self.SHOW_GRID_LABEL],\n                          alpha=self.grid_settings[Updater.ALPHA_LABEL] / 255)\n\n        def update_bottom_axis(**settings):\n            axis = self.master.getAxis(\"bottom\")\n            axis.setRotateTicks(settings[self.IS_VERTICAL_LABEL])\n\n        def update_group_axis(**settings):\n            axis = self.master.group_axis\n            axis.setRotateTicks(settings[self.IS_VERTICAL_LABEL])\n\n        self._setters[self.PLOT_BOX] = {\n            self.GRID_LABEL: update_grid,\n            self.BOTTOM_AXIS_LABEL: update_bottom_axis,\n            self.GROUP_AXIS_LABEL: update_group_axis,\n        }\n\n    @property\n    def title_item(self):\n        return self.master.getPlotItem().titleLabel\n\n    @property\n    def axis_items(self):\n        return [value[\"item\"] for value in\n                self.master.getPlotItem().axes.values()]\n\n    @property\n    def legend_items(self):\n        return self.master.legend.items\n\n\nclass BarPlotGraph(PlotWidget):\n    selection_changed = Signal(list)\n    bar_width = 0.7\n\n    def __init__(self, master, parent=None):\n        self.selection = []\n        self.master: OWBarPlot = master\n        self.state: int = SELECT\n        self.bar_item: pg.BarGraphItem = None\n        super().__init__(\n            parent=parent,\n            viewBox=BarPlotViewBox(self),\n            enableMenu=False,\n            axisItems={\"bottom\": AxisItem(orientation=\"bottom\",\n                                          rotate_ticks=True),\n                       \"left\": AxisItem(orientation=\"left\")}\n        )\n        self.hideAxis(\"left\")\n        self.hideAxis(\"bottom\")\n        self.getPlotItem().buttonsHidden = True\n        self.getPlotItem().setContentsMargins(10, 0, 0, 10)\n        self.getViewBox().setMouseMode(pg.ViewBox.PanMode)\n\n        self.group_axis = AxisItem(\"bottom\")\n        self.group_axis.hide()\n        self.group_axis.linkToView(self.getViewBox())\n        self.getPlotItem().layout.addItem(self.group_axis, 4, 1)\n\n        self.legend = self._create_legend()\n\n        self.tooltip_delegate = HelpEventDelegate(self.help_event)\n        self.scene().installEventFilter(self.tooltip_delegate)\n\n        self.parameter_setter = ParameterSetter(self)\n\n        self.showGrid(y=self.parameter_setter.DEFAULT_SHOW_GRID,\n                      alpha=self.parameter_setter.DEFAULT_ALPHA_GRID / 255)\n\n    def _create_legend(self):\n        legend = LegendItem()\n        legend.setParentItem(self.getViewBox())\n        legend.anchor((1, 0), (1, 0), offset=(-3, 1))\n        legend.hide()\n        return legend\n\n    def update_legend(self):\n        self.legend.clear()\n        self.legend.hide()\n        for color, text in self.master.get_legend_data():\n            dot = pg.ScatterPlotItem(\n                pen=pg.mkPen(color=color),\n                brush=pg.mkBrush(color=color)\n            )\n            self.legend.addItem(dot, escape(text))\n            self.legend.show()\n        Updater.update_legend_font(self.legend.items,\n                                   **self.parameter_setter.legend_settings)\n\n    def reset_graph(self):\n        self.clear()\n        self.update_bars()\n        self.update_axes()\n        self.update_group_lines()\n        self.update_legend()\n        self.reset_view()\n\n    def update_bars(self):\n        if self.bar_item is not None:\n            self.removeItem(self.bar_item)\n            self.bar_item = None\n\n        values = self.master.get_values()\n        if values is None:\n            return\n\n        self.bar_item = pg.BarGraphItem(\n            x=np.arange(len(values)),\n            height=values,\n            width=self.bar_width,\n            pen=pg.mkPen(QColor(Qt.white)),\n            labels=self.master.get_labels(),\n            brushes=self.master.get_colors(),\n        )\n        self.addItem(self.bar_item)\n        self.__select_bars()\n\n    def update_axes(self):\n        if self.bar_item is not None:\n            self.showAxis(\"left\")\n            self.showAxis(\"bottom\")\n            self.group_axis.show()\n\n            vals_label, group_label, annot_label = self.master.get_axes()\n            self.setLabel(axis=\"left\", text=vals_label)\n            self.setLabel(axis=\"bottom\", text=annot_label)\n            self.group_axis.setLabel(group_label)\n\n            ticks = [list(enumerate(self.master.get_labels()))]\n            self.getAxis('bottom').setTicks(ticks)\n\n            labels = np.array(self.master.get_group_labels())\n            _, indices, counts = \\\n                np.unique(labels, return_index=True, return_counts=True)\n            ticks = [[(i + (c - 1) / 2, labels[i]) for i, c in\n                      zip(indices, counts)]]\n            self.group_axis.setTicks(ticks)\n\n            if not group_label:\n                self.group_axis.hide()\n            elif not annot_label:\n                self.hideAxis(\"bottom\")\n        else:\n            self.hideAxis(\"left\")\n            self.hideAxis(\"bottom\")\n            self.group_axis.hide()\n\n    def reset_view(self):\n        if self.bar_item is None:\n            return\n        values = np.append(self.bar_item.opts[\"height\"], 0)\n        min_ = np.nanmin(values)\n        max_ = -min_ + np.nanmax(values)\n        rect = QRectF(-0.5, min_, len(values) - 1, max_)\n        self.getViewBox().setRange(rect)\n\n    def zoom_button_clicked(self):\n        self.state = ZOOMING\n        self.getViewBox().setMouseMode(pg.ViewBox.RectMode)\n\n    def pan_button_clicked(self):\n        self.state = PANNING\n        self.getViewBox().setMouseMode(pg.ViewBox.PanMode)\n\n    def select_button_clicked(self):\n        self.state = SELECT\n        self.getViewBox().setMouseMode(pg.ViewBox.RectMode)\n\n    def reset_button_clicked(self):\n        self.reset_view()\n\n    def update_group_lines(self):\n        if self.bar_item is None:\n            return\n\n        labels = np.array(self.master.get_group_labels())\n        if labels is None or len(labels) == 0:\n            return\n\n        _, indices = np.unique(labels, return_index=True)\n        offset = self.bar_width / 2 + (1 - self.bar_width) / 2\n        for index in sorted(indices)[1:]:\n            line = pg.InfiniteLine(pos=index - offset, angle=90)\n            self.addItem(line)\n\n    def select_by_rectangle(self, rect: QRectF):\n        if self.bar_item is None:\n            return\n\n        x0, x1 = sorted((rect.topLeft().x(), rect.bottomRight().x()))\n        y0, y1 = sorted((rect.topLeft().y(), rect.bottomRight().y()))\n        x = self.bar_item.opts[\"x\"]\n        height = self.bar_item.opts[\"height\"]\n        d = self.bar_width / 2\n        # positive bars\n        mask = (x0 <= x + d) & (x1 >= x - d) & (y0 <= height) & (y1 > 0)\n        # negative bars\n        mask |= (x0 <= x + d) & (x1 >= x - d) & (y0 <= 0) & (y1 > height)\n        self.select_by_indices(list(np.flatnonzero(mask)))\n\n    def select_by_click(self, p: QPointF):\n        if self.bar_item is None:\n            return\n\n        index = self.__get_index_at(p)\n        self.select_by_indices([index] if index is not None else [])\n\n    def __get_index_at(self, p: QPointF):\n        x = p.x()\n        index = round(x)\n        heights = self.bar_item.opts[\"height\"]\n        if 0 <= index < len(heights) and abs(x - index) <= self.bar_width / 2:\n            height = heights[index]  # pylint: disable=unsubscriptable-object\n            if 0 <= p.y() <= height or height <= p.y() <= 0:\n                return index\n        return None\n\n    def select_by_indices(self, indices: List):\n        keys = QApplication.keyboardModifiers()\n        if keys & Qt.ControlModifier:\n            self.selection = list(set(self.selection) ^ set(indices))\n        elif keys & Qt.AltModifier:\n            self.selection = list(set(self.selection) - set(indices))\n        elif keys & Qt.ShiftModifier:\n            self.selection = list(set(self.selection) | set(indices))\n        else:\n            self.selection = list(set(indices))\n        self.__select_bars()\n        self.selection_changed.emit(self.selection)\n\n    def __select_bars(self):\n        if self.bar_item is None:\n            return\n\n        n = len(self.bar_item.opts[\"height\"])\n        pens = np.full(n, pg.mkPen(QColor(Qt.white)))\n        pen = pg.mkPen(QColor(Qt.black))\n        pen.setStyle(Qt.DashLine)\n        pens[self.selection] = pen\n        self.bar_item.setOpts(pens=pens)\n\n    def help_event(self, ev: QGraphicsSceneHelpEvent):\n        if self.bar_item is None:\n            return False\n\n        index = self.__get_index_at(self.bar_item.mapFromScene(ev.scenePos()))\n        text = \"\"\n        if index is not None:\n            text = self.master.get_tooltip(index)\n        if text:\n            QToolTip.showText(ev.screenPos(), text, widget=self)\n            return True\n        else:\n            return False\n\n\nclass OWBarPlot(OWWidget):\n    name = \"Bar Plot\"\n    description = \"Visualizes comparisons among categorical variables.\"\n    icon = \"icons/BarPlot.svg\"\n    priority = 190\n    keywords = [\"chart\"]\n\n    class Inputs:\n        data = Input(\"Data\", Table, default=True)\n        data_subset = Input(\"Data Subset\", Table)\n\n    class Outputs:\n        selected_data = Output(\"Selected Data\", Table, default=True)\n        annotated_data = Output(ANNOTATED_DATA_SIGNAL_NAME, Table)\n\n    buttons_area_orientation = Qt.Vertical\n    settingsHandler = DomainContextHandler()\n    selected_var = ContextSetting(None)\n    group_var = ContextSetting(None)\n    annot_var = ContextSetting(None)\n    color_var = ContextSetting(None)\n    auto_commit = Setting(True)\n    selection = Setting(None, schema_only=True)\n    visual_settings = Setting({}, schema_only=True)\n\n    graph = SettingProvider(BarPlotGraph)\n    graph_name = \"graph.plotItem\"\n\n    class Error(OWWidget.Error):\n        no_cont_features = Msg(\"Plotting requires a numeric feature.\")\n\n    class Information(OWWidget.Information):\n        too_many_instances = Msg(\"Data has too many instances. Only first {}\"\n                                 \" are shown.\".format(MAX_INSTANCES))\n\n    enumeration = \"Enumeration\"\n\n    def __init__(self):\n        super().__init__()\n        self.data: Optional[Table] = None\n        self.orig_data: Optional[Table] = None\n        self.subset_data: Optional[Table] = None\n        self.subset_indices = []\n        self.graph: Optional[BarPlotGraph] = None\n        self._selected_var_model: Optional[DomainModel] = None\n        self._group_var_model: Optional[DomainModel] = None\n        self._annot_var_model: Optional[DomainModel] = None\n        self._color_var_model: Optional[DomainModel] = None\n        self.__pending_selection = self.selection\n\n        self.setup_gui()\n        VisualSettingsDialog(\n            self, self.graph.parameter_setter.initial_settings\n        )\n\n    def setup_gui(self):\n        self._add_graph()\n        self._add_controls()\n\n    def _add_graph(self):\n        box = gui.vBox(self.mainArea, True, margin=0)\n        self.graph = BarPlotGraph(self)\n        self.graph.selection_changed.connect(self.__selection_changed)\n        box.layout().addWidget(self.graph)\n\n    def __selection_changed(self, indices: List):\n        self.selection = list(set(self.grouped_indices[indices]))\n        self.commit.deferred()\n\n    def _add_controls(self):\n        box = gui.vBox(self.controlArea, True)\n        gui.rubber(self.controlArea)\n        self._selected_var_model = DomainModel(valid_types=ContinuousVariable)\n        gui.comboBox(\n            box, self, \"selected_var\", label=\"Values:\",\n            model=self._selected_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__parameter_changed,\n        )\n\n        self._group_var_model = DomainModel(\n            placeholder=\"None\", valid_types=DiscreteVariable\n        )\n        gui.comboBox(\n            box, self, \"group_var\", label=\"Group by:\",\n            model=self._group_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__group_var_changed,\n        )\n\n        self._annot_var_model = DomainModel(\n            placeholder=\"None\",\n            valid_types=(DiscreteVariable, StringVariable)\n        )\n        self._annot_var_model.order = self._annot_var_model.order[:1] + \\\n                                      (self.enumeration,) + \\\n                                      self._annot_var_model.order[1:]\n        gui.comboBox(\n            box, self, \"annot_var\", label=\"Annotations:\",\n            model=self._annot_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__parameter_changed,\n        )\n\n        self._color_var_model = DomainModel(\n            placeholder=\"(Same color)\", valid_types=DiscreteVariable\n        )\n        gui.comboBox(\n            box, self, \"color_var\", label=\"Color:\",\n            model=self._color_var_model,\n            contentsLength=12, searchable=True, orientation=Qt.Horizontal,\n            callback=self.__parameter_changed,\n        )\n\n        plot_gui = OWPlotGUI(self)\n        plot_gui.box_zoom_select(self.buttonsArea)\n\n        gui.auto_send(self.buttonsArea, self, \"auto_commit\")\n\n    def __parameter_changed(self):\n        self.graph.reset_graph()\n\n    def __group_var_changed(self):\n        self.clear_cache()\n        self.graph.selection = self.grouped_indices_inverted\n        self.__parameter_changed()\n\n    @property\n    @lru_cache()\n    def grouped_indices(self):\n        indices = []\n        if self.data:\n            indices = np.arange(len(self.data))\n            if self.group_var:\n                group_by = self.data.get_column(self.group_var)\n                indices = np.argsort(group_by, kind=\"mergesort\")\n        return indices\n\n    @property\n    def grouped_indices_inverted(self):\n        mask = np.isin(self.grouped_indices, self.selection)\n        return np.flatnonzero(mask)\n\n    @property\n    def grouped_data(self):\n        return self.data[self.grouped_indices]\n\n    @Inputs.data\n    @check_sql_input\n    def set_data(self, data: Optional[Table]):\n        self.closeContext()\n        self.clear()\n        self.orig_data = self.data = data\n        self.check_data()\n        self.init_attr_values()\n        self.openContext(self.data)\n        self.clear_cache()\n        self.commit.now()\n\n    def check_data(self):\n        self.clear_messages()\n        if self.data is not None:\n            if self.data.domain.has_continuous_attributes(True, True) == 0:\n                self.Error.no_cont_features()\n                self.data = None\n            elif len(self.data) > MAX_INSTANCES:\n                self.Information.too_many_instances()\n                self.data = self.data[:MAX_INSTANCES]\n\n    def init_attr_values(self):\n        domain = self.data.domain if self.data else None\n        for model, var in ((self._selected_var_model, \"selected_var\"),\n                           (self._group_var_model, \"group_var\"),\n                           (self._annot_var_model, \"annot_var\"),\n                           (self._color_var_model, \"color_var\")):\n            model.set_domain(domain)\n            setattr(self, var, None)\n\n        if self._selected_var_model:\n            self.selected_var = self._selected_var_model[0]\n        if domain is not None and domain.has_discrete_class:\n            self.color_var = domain.class_var\n\n    @Inputs.data_subset\n    @check_sql_input\n    def set_subset_data(self, data: Optional[Table]):\n        self.subset_data = data\n\n    def handleNewSignals(self):\n        self._handle_subset_data()\n        self.setup_plot()\n\n    def _handle_subset_data(self):\n        sub_ids = {e.id for e in self.subset_data} \\\n            if self.subset_data is not None else {}\n        self.subset_indices = []\n        if self.data is not None and sub_ids:\n            self.subset_indices = [x.id for x in self.data if x.id in sub_ids]\n\n    def get_values(self) -> Optional[np.ndarray]:\n        if not self.data or not self.selected_var:\n            return None\n        return self.grouped_data.get_column(self.selected_var)\n\n    def get_labels(self) -> Optional[Union[List, np.ndarray]]:\n        if not self.data:\n            return None\n        elif not self.annot_var:\n            return []\n        elif self.annot_var == self.enumeration:\n            return [\n                str(x)\n                for x in np.arange(1, len(self.data) + 1)[self.grouped_indices]\n            ]\n        else:\n            return [self.annot_var.str_val(row[self.annot_var])\n                    for row in self.grouped_data]\n\n    def get_group_labels(self) -> Optional[List]:\n        if not self.data:\n            return None\n        elif not self.group_var:\n            return []\n        else:\n            return [self.group_var.str_val(row[self.group_var])\n                    for row in self.grouped_data]\n\n    def get_legend_data(self) -> List:\n        if not self.data or not self.color_var:\n            return []\n        else:\n            assert self.color_var.is_discrete\n            return [(QColor(*color), text) for color, text in\n                    zip(self.color_var.colors, self.color_var.values)]\n\n    def get_colors(self) -> Optional[List[QColor]]:\n        def create_color(i, id_):\n            lighter = id_ not in self.subset_indices and self.subset_indices\n            alpha = 50 if lighter else 255\n            if np.isnan(i):\n                return QColor(*(128, 128, 128, alpha))\n            return QColor(*np.append(self.color_var.colors[int(i)], alpha))\n\n        if not self.data:\n            return None\n        elif not self.color_var:\n            return [create_color(np.nan, id_) for id_ in self.grouped_data.ids]\n        else:\n            assert self.color_var.is_discrete\n            col = self.grouped_data.get_column(self.color_var)\n            return [create_color(i, id_) for id_, i in\n                    zip(self.grouped_data.ids, col)]\n\n    def get_tooltip(self, index: int) -> str:\n        if not self.data:\n            return \"\"\n        row = self.grouped_data[index]\n        attrs = [self.selected_var]\n        if self.group_var and self.group_var not in attrs:\n            attrs.append(self.group_var)\n        if isinstance(self.annot_var, Variable) and self.annot_var not in attrs:\n            attrs.append(self.annot_var)\n        if self.color_var and self.color_var not in attrs:\n            attrs.append(self.color_var)\n        text = \"<br/>\".join(escape('{} = {}'.format(var.name, row[var]))\n                            for var in attrs)\n        others = instance_tooltip(self.data.domain, row, skip_attrs=attrs)\n        if others:\n            text = \"<b>{}</b><br/><br/>{}\".format(text, others)\n        return text\n\n    def get_axes(self) -> Optional[Tuple[str, str, str]]:\n        if not self.data:\n            return None\n        return (self.selected_var.name,\n                self.group_var.name if self.group_var else \"\",\n                self.annot_var if self.annot_var else \"\")\n\n    def setup_plot(self):\n        self.graph.reset_graph()\n        self.apply_selection()\n\n    def apply_selection(self):\n        if self.data and self.__pending_selection is not None:\n            self.selection = [i for i in self.__pending_selection\n                              if i < len(self.data)]\n            self.graph.select_by_indices(self.grouped_indices_inverted)\n            self.__pending_selection = None\n\n    @gui.deferred\n    def commit(self):\n        selected = None\n        if self.data is not None and bool(self.selection):\n            selected = self.data[self.selection]\n        annotated = create_annotated_table(self.orig_data, self.selection)\n        self.Outputs.selected_data.send(selected)\n        self.Outputs.annotated_data.send(annotated)\n\n    def clear(self):\n        self.selection = None\n        self.graph.selection = []\n        self.clear_cache()\n\n    @staticmethod\n    def clear_cache():\n        OWBarPlot.grouped_indices.fget.cache_clear()\n\n    def send_report(self):\n        if self.data is None:\n            return\n        self.report_plot()\n\n    def set_visual_settings(self, key: KeyType, value: ValueType):\n        self.graph.parameter_setter.set_parameter(key, value)\n        self.visual_settings[key] = value\n\n    def sizeHint(self):  # pylint: disable=no-self-use\n        return QSize(1132, 708)\n\n    def showEvent(self, event):\n        super().showEvent(event)\n        self.graph.reset_view()\n\n\nif __name__ == \"__main__\":\n    from Orange.widgets.utils.widgetpreview import WidgetPreview\n\n    iris = Table(\"iris\")\n    WidgetPreview(OWBarPlot).run(set_data=iris[::3],\n                                 set_subset_data=iris[::15])\n",
            "header": {
                "file": {
                    "path": "Orange/widgets/visualize/owbarplot.py"
                },
                "misc_line": null
            },
            "index_line": {
                "old_commit_hash": "9d9e9dcac",
                "new_commit_hash": "45ec95ead",
                "mode": "100644"
            },
            "is_binary_file": false,
            "binary_line": null,
            "minus_file": {
                "path": "a/Orange/widgets/visualize/owbarplot.py"
            },
            "plus_file": {
                "path": "b/Orange/widgets/visualize/owbarplot.py"
            },
            "hunks": [
                {
                    "descriptor": {
                        "old_range": {
                            "start": 572,
                            "length": 7
                        },
                        "new_range": {
                            "start": 572,
                            "length": 10
                        },
                        "section": "class OWBarPlot(OWWidget):"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "        elif not self.annot_var:",
                                "type": "context"
                            },
                            {
                                "content": "            return []",
                                "type": "context"
                            },
                            {
                                "content": "        elif self.annot_var == self.enumeration:",
                                "type": "context"
                            },
                            {
                                "content": "            return np.arange(1, len(self.data) + 1)[self.grouped_indices]",
                                "type": "deleted"
                            },
                            {
                                "content": "            return [",
                                "type": "added"
                            },
                            {
                                "content": "                str(x)",
                                "type": "added"
                            },
                            {
                                "content": "                for x in np.arange(1, len(self.data) + 1)[self.grouped_indices]",
                                "type": "added"
                            },
                            {
                                "content": "            ]",
                                "type": "added"
                            },
                            {
                                "content": "        else:",
                                "type": "context"
                            },
                            {
                                "content": "            return [self.annot_var.str_val(row[self.annot_var])",
                                "type": "context"
                            },
                            {
                                "content": "                    for row in self.grouped_data]",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [
                        {
                            "file_name": "Orange/widgets/visualize/owbarplot.py",
                            "type": "class",
                            "name": "OWBarPlot",
                            "content": "class OWBarPlot(OWWidget):\n    name = \"Bar Plot\"\n    description = \"Visualizes comparisons among categorical variables.\"\n    icon = \"icons/BarPlot.svg\"\n    priority = 190\n    keywords = [\"chart\"]\n\n    class Inputs:\n        data = Input(\"Data\", Table, default=True)\n        data_subset = Input(\"Data Subset\", Table)\n\n    class Outputs:\n        selected_data = Output(\"Selected Data\", Table, default=True)\n        annotated_data = Output(ANNOTATED_DATA_SIGNAL_NAME, Table)\n\n    buttons_area_orientation = Qt.Vertical\n    settingsHandler = DomainContextHandler()\n    selected_var = ContextSetting(None)\n    group_var = ContextSetting(None)\n    annot_var = ContextSetting(None)\n    color_var = ContextSetting(None)\n    auto_commit = Setting(True)\n    selection = Setting(None, schema_only=True)\n    visual_settings = Setting({}, schema_only=True)\n\n    graph = SettingProvider(BarPlotGraph)\n    graph_name = \"graph.plotItem\"\n\n    class Error(OWWidget.Error):\n        no_cont_features = Msg(\"Plotting requires a numeric feature.\")\n\n    class Information(OWWidget.Information):\n        too_many_instances = Msg(\"Data has too many instances. Only first {}\"\n                                 \" are shown.\".format(MAX_INSTANCES))\n\n    enumeration = \"Enumeration\"\n\n    def __init__(self):\n        super().__init__()\n        self.data: Optional[Table] = None\n        self.orig_data: Optional[Table] = None\n        self.subset_data: Optional[Table] = None\n        self.subset_indices = []\n        self.graph: Optional[BarPlotGraph] = None\n        self._selected_var_model: Optional[DomainModel] = None\n        self._group_var_model: Optional[DomainModel] = None\n        self._annot_var_model: Optional[DomainModel] = None\n        self._color_var_model: Optional[DomainModel] = None\n        self.__pending_selection = self.selection\n\n        self.setup_gui()\n        VisualSettingsDialog(\n            self, self.graph.parameter_setter.initial_settings\n        )\n\n    def setup_gui(self):\n        self._add_graph()\n        self._add_controls()\n\n    def _add_graph(self):\n        box = gui.vBox(self.mainArea, True, margin=0)\n        self.graph = BarPlotGraph(self)\n        self.graph.selection_changed.connect(self.__selection_changed)\n        box.layout().addWidget(self.graph)\n\n    def __selection_changed(self, indices: List):\n        self.selection = list(set(self.grouped_indices[indices]))\n        self.commit.deferred()\n\n    def _add_controls(self):\n        box = gui.vBox(self.controlArea, True)\n        gui.rubber(self.controlArea)\n        self._selected_var_model = DomainModel(valid_types=ContinuousVariable)\n        gui.comboBox(\n            box, self, \"selected_var\", label=\"Values:\",\n            model=self._selected_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__parameter_changed,\n        )\n\n        self._group_var_model = DomainModel(\n            placeholder=\"None\", valid_types=DiscreteVariable\n        )\n        gui.comboBox(\n            box, self, \"group_var\", label=\"Group by:\",\n            model=self._group_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__group_var_changed,\n        )\n\n        self._annot_var_model = DomainModel(\n            placeholder=\"None\",\n            valid_types=(DiscreteVariable, StringVariable)\n        )\n        self._annot_var_model.order = self._annot_var_model.order[:1] + \\\n                                      (self.enumeration,) + \\\n                                      self._annot_var_model.order[1:]\n        gui.comboBox(\n            box, self, \"annot_var\", label=\"Annotations:\",\n            model=self._annot_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__parameter_changed,\n        )\n\n        self._color_var_model = DomainModel(\n            placeholder=\"(Same color)\", valid_types=DiscreteVariable\n        )\n        gui.comboBox(\n            box, self, \"color_var\", label=\"Color:\",\n            model=self._color_var_model,\n            contentsLength=12, searchable=True, orientation=Qt.Horizontal,\n            callback=self.__parameter_changed,\n        )\n\n        plot_gui = OWPlotGUI(self)\n        plot_gui.box_zoom_select(self.buttonsArea)\n\n        gui.auto_send(self.buttonsArea, self, \"auto_commit\")\n\n    def __parameter_changed(self):\n        self.graph.reset_graph()\n\n    def __group_var_changed(self):\n        self.clear_cache()\n        self.graph.selection = self.grouped_indices_inverted\n        self.__parameter_changed()\n\n    @property\n    @lru_cache()\n    def grouped_indices(self):\n        indices = []\n        if self.data:\n            indices = np.arange(len(self.data))\n            if self.group_var:\n                group_by = self.data.get_column(self.group_var)\n                indices = np.argsort(group_by, kind=\"mergesort\")\n        return indices\n\n    @property\n    def grouped_indices_inverted(self):\n        mask = np.isin(self.grouped_indices, self.selection)\n        return np.flatnonzero(mask)\n\n    @property\n    def grouped_data(self):\n        return self.data[self.grouped_indices]\n\n    @Inputs.data\n    @check_sql_input\n    def set_data(self, data: Optional[Table]):\n        self.closeContext()\n        self.clear()\n        self.orig_data = self.data = data\n        self.check_data()\n        self.init_attr_values()\n        self.openContext(self.data)\n        self.clear_cache()\n        self.commit.now()\n\n    def check_data(self):\n        self.clear_messages()\n        if self.data is not None:\n            if self.data.domain.has_continuous_attributes(True, True) == 0:\n                self.Error.no_cont_features()\n                self.data = None\n            elif len(self.data) > MAX_INSTANCES:\n                self.Information.too_many_instances()\n                self.data = self.data[:MAX_INSTANCES]\n\n    def init_attr_values(self):\n        domain = self.data.domain if self.data else None\n        for model, var in ((self._selected_var_model, \"selected_var\"),\n                           (self._group_var_model, \"group_var\"),\n                           (self._annot_var_model, \"annot_var\"),\n                           (self._color_var_model, \"color_var\")):\n            model.set_domain(domain)\n            setattr(self, var, None)\n\n        if self._selected_var_model:\n            self.selected_var = self._selected_var_model[0]\n        if domain is not None and domain.has_discrete_class:\n            self.color_var = domain.class_var\n\n    @Inputs.data_subset\n    @check_sql_input\n    def set_subset_data(self, data: Optional[Table]):\n        self.subset_data = data\n\n    def handleNewSignals(self):\n        self._handle_subset_data()\n        self.setup_plot()\n\n    def _handle_subset_data(self):\n        sub_ids = {e.id for e in self.subset_data} \\\n            if self.subset_data is not None else {}\n        self.subset_indices = []\n        if self.data is not None and sub_ids:\n            self.subset_indices = [x.id for x in self.data if x.id in sub_ids]\n\n    def get_values(self) -> Optional[np.ndarray]:\n        if not self.data or not self.selected_var:\n            return None\n        return self.grouped_data.get_column(self.selected_var)\n\n    def get_labels(self) -> Optional[Union[List, np.ndarray]]:\n        if not self.data:\n            return None\n        elif not self.annot_var:\n            return []\n        elif self.annot_var == self.enumeration:\n            return np.arange(1, len(self.data) + 1)[self.grouped_indices]\n        else:\n            return [self.annot_var.str_val(row[self.annot_var])\n                    for row in self.grouped_data]\n\n    def get_group_labels(self) -> Optional[List]:\n        if not self.data:\n            return None\n        elif not self.group_var:\n            return []\n        else:\n            return [self.group_var.str_val(row[self.group_var])\n                    for row in self.grouped_data]\n\n    def get_legend_data(self) -> List:\n        if not self.data or not self.color_var:\n            return []\n        else:\n            assert self.color_var.is_discrete\n            return [(QColor(*color), text) for color, text in\n                    zip(self.color_var.colors, self.color_var.values)]\n\n    def get_colors(self) -> Optional[List[QColor]]:\n        def create_color(i, id_):\n            lighter = id_ not in self.subset_indices and self.subset_indices\n            alpha = 50 if lighter else 255\n            if np.isnan(i):\n                return QColor(*(128, 128, 128, alpha))\n            return QColor(*np.append(self.color_var.colors[int(i)], alpha))\n\n        if not self.data:\n            return None\n        elif not self.color_var:\n            return [create_color(np.nan, id_) for id_ in self.grouped_data.ids]\n        else:\n            assert self.color_var.is_discrete\n            col = self.grouped_data.get_column(self.color_var)\n            return [create_color(i, id_) for id_, i in\n                    zip(self.grouped_data.ids, col)]\n\n    def get_tooltip(self, index: int) -> str:\n        if not self.data:\n            return \"\"\n        row = self.grouped_data[index]\n        attrs = [self.selected_var]\n        if self.group_var and self.group_var not in attrs:\n            attrs.append(self.group_var)\n        if isinstance(self.annot_var, Variable) and self.annot_var not in attrs:\n            attrs.append(self.annot_var)\n        if self.color_var and self.color_var not in attrs:\n            attrs.append(self.color_var)\n        text = \"<br/>\".join(escape('{} = {}'.format(var.name, row[var]))\n                            for var in attrs)\n        others = instance_tooltip(self.data.domain, row, skip_attrs=attrs)\n        if others:\n            text = \"<b>{}</b><br/><br/>{}\".format(text, others)\n        return text\n\n    def get_axes(self) -> Optional[Tuple[str, str, str]]:\n        if not self.data:\n            return None\n        return (self.selected_var.name,\n                self.group_var.name if self.group_var else \"\",\n                self.annot_var if self.annot_var else \"\")\n\n    def setup_plot(self):\n        self.graph.reset_graph()\n        self.apply_selection()\n\n    def apply_selection(self):\n        if self.data and self.__pending_selection is not None:\n            self.selection = [i for i in self.__pending_selection\n                              if i < len(self.data)]\n            self.graph.select_by_indices(self.grouped_indices_inverted)\n            self.__pending_selection = None\n\n    @gui.deferred\n    def commit(self):\n        selected = None\n        if self.data is not None and bool(self.selection):\n            selected = self.data[self.selection]\n        annotated = create_annotated_table(self.orig_data, self.selection)\n        self.Outputs.selected_data.send(selected)\n        self.Outputs.annotated_data.send(annotated)\n\n    def clear(self):\n        self.selection = None\n        self.graph.selection = []\n        self.clear_cache()\n\n    @staticmethod\n    def clear_cache():\n        OWBarPlot.grouped_indices.fget.cache_clear()\n\n    def send_report(self):\n        if self.data is None:\n            return\n        self.report_plot()\n\n    def set_visual_settings(self, key: KeyType, value: ValueType):\n        self.graph.parameter_setter.set_parameter(key, value)\n        self.visual_settings[key] = value\n\n    def sizeHint(self):  # pylint: disable=no-self-use\n        return QSize(1132, 708)\n\n    def showEvent(self, event):\n        super().showEvent(event)\n        self.graph.reset_view()",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 368,
                            "end_lineno": 683,
                            "parent": null
                        },
                        {
                            "file_name": "Orange/widgets/visualize/owbarplot.py",
                            "type": "method",
                            "name": "OWBarPlot.get_labels",
                            "content": "class OWBarPlot(OWWidget):\n    name = \"Bar Plot\"\n    description = \"Visualizes comparisons among categorical variables.\"\n    icon = \"icons/BarPlot.svg\"\n    priority = 190\n    keywords = [\"chart\"]\n\n    class Inputs:\n        data = Input(\"Data\", Table, default=True)\n        data_subset = Input(\"Data Subset\", Table)\n\n    class Outputs:\n        selected_data = Output(\"Selected Data\", Table, default=True)\n        annotated_data = Output(ANNOTATED_DATA_SIGNAL_NAME, Table)\n\n    buttons_area_orientation = Qt.Vertical\n    settingsHandler = DomainContextHandler()\n    selected_var = ContextSetting(None)\n    group_var = ContextSetting(None)\n    annot_var = ContextSetting(None)\n    color_var = ContextSetting(None)\n    auto_commit = Setting(True)\n    selection = Setting(None, schema_only=True)\n    visual_settings = Setting({}, schema_only=True)\n\n    graph = SettingProvider(BarPlotGraph)\n    graph_name = \"graph.plotItem\"\n\n    class Error(OWWidget.Error):\n        no_cont_features = Msg(\"Plotting requires a numeric feature.\")\n\n    class Information(OWWidget.Information):\n        too_many_instances = Msg(\"Data has too many instances. Only first {}\"\n                                 \" are shown.\".format(MAX_INSTANCES))\n\n    enumeration = \"Enumeration\"\n\n    def __init__(self):\n        super().__init__()\n        self.data: Optional[Table] = None\n        self.orig_data: Optional[Table] = None\n        self.subset_data: Optional[Table] = None\n        self.subset_indices = []\n        self.graph: Optional[BarPlotGraph] = None\n        self._selected_var_model: Optional[DomainModel] = None\n        self._group_var_model: Optional[DomainModel] = None\n        self._annot_var_model: Optional[DomainModel] = None\n        self._color_var_model: Optional[DomainModel] = None\n        self.__pending_selection = self.selection\n\n        self.setup_gui()\n        VisualSettingsDialog(\n            self, self.graph.parameter_setter.initial_settings\n        )\n\n    def setup_gui(self):\n        self._add_graph()\n        self._add_controls()\n\n    def _add_graph(self):\n        box = gui.vBox(self.mainArea, True, margin=0)\n        self.graph = BarPlotGraph(self)\n        self.graph.selection_changed.connect(self.__selection_changed)\n        box.layout().addWidget(self.graph)\n\n    def __selection_changed(self, indices: List):\n        self.selection = list(set(self.grouped_indices[indices]))\n        self.commit.deferred()\n\n    def _add_controls(self):\n        box = gui.vBox(self.controlArea, True)\n        gui.rubber(self.controlArea)\n        self._selected_var_model = DomainModel(valid_types=ContinuousVariable)\n        gui.comboBox(\n            box, self, \"selected_var\", label=\"Values:\",\n            model=self._selected_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__parameter_changed,\n        )\n\n        self._group_var_model = DomainModel(\n            placeholder=\"None\", valid_types=DiscreteVariable\n        )\n        gui.comboBox(\n            box, self, \"group_var\", label=\"Group by:\",\n            model=self._group_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__group_var_changed,\n        )\n\n        self._annot_var_model = DomainModel(\n            placeholder=\"None\",\n            valid_types=(DiscreteVariable, StringVariable)\n        )\n        self._annot_var_model.order = self._annot_var_model.order[:1] + \\\n                                      (self.enumeration,) + \\\n                                      self._annot_var_model.order[1:]\n        gui.comboBox(\n            box, self, \"annot_var\", label=\"Annotations:\",\n            model=self._annot_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__parameter_changed,\n        )\n\n        self._color_var_model = DomainModel(\n            placeholder=\"(Same color)\", valid_types=DiscreteVariable\n        )\n        gui.comboBox(\n            box, self, \"color_var\", label=\"Color:\",\n            model=self._color_var_model,\n            contentsLength=12, searchable=True, orientation=Qt.Horizontal,\n            callback=self.__parameter_changed,\n        )\n\n        plot_gui = OWPlotGUI(self)\n        plot_gui.box_zoom_select(self.buttonsArea)\n\n        gui.auto_send(self.buttonsArea, self, \"auto_commit\")\n\n    def __parameter_changed(self):\n        self.graph.reset_graph()\n\n    def __group_var_changed(self):\n        self.clear_cache()\n        self.graph.selection = self.grouped_indices_inverted\n        self.__parameter_changed()\n\n    @property\n    @lru_cache()\n    def grouped_indices(self):\n        indices = []\n        if self.data:\n            indices = np.arange(len(self.data))\n            if self.group_var:\n                group_by = self.data.get_column(self.group_var)\n                indices = np.argsort(group_by, kind=\"mergesort\")\n        return indices\n\n    @property\n    def grouped_indices_inverted(self):\n        mask = np.isin(self.grouped_indices, self.selection)\n        return np.flatnonzero(mask)\n\n    @property\n    def grouped_data(self):\n        return self.data[self.grouped_indices]\n\n    @Inputs.data\n    @check_sql_input\n    def set_data(self, data: Optional[Table]):\n        self.closeContext()\n        self.clear()\n        self.orig_data = self.data = data\n        self.check_data()\n        self.init_attr_values()\n        self.openContext(self.data)\n        self.clear_cache()\n        self.commit.now()\n\n    def check_data(self):\n        self.clear_messages()\n        if self.data is not None:\n            if self.data.domain.has_continuous_attributes(True, True) == 0:\n                self.Error.no_cont_features()\n                self.data = None\n            elif len(self.data) > MAX_INSTANCES:\n                self.Information.too_many_instances()\n                self.data = self.data[:MAX_INSTANCES]\n\n    def init_attr_values(self):\n        domain = self.data.domain if self.data else None\n        for model, var in ((self._selected_var_model, \"selected_var\"),\n                           (self._group_var_model, \"group_var\"),\n                           (self._annot_var_model, \"annot_var\"),\n                           (self._color_var_model, \"color_var\")):\n            model.set_domain(domain)\n            setattr(self, var, None)\n\n        if self._selected_var_model:\n            self.selected_var = self._selected_var_model[0]\n        if domain is not None and domain.has_discrete_class:\n            self.color_var = domain.class_var\n\n    @Inputs.data_subset\n    @check_sql_input\n    def set_subset_data(self, data: Optional[Table]):\n        self.subset_data = data\n\n    def handleNewSignals(self):\n        self._handle_subset_data()\n        self.setup_plot()\n\n    def _handle_subset_data(self):\n        sub_ids = {e.id for e in self.subset_data} \\\n            if self.subset_data is not None else {}\n        self.subset_indices = []\n        if self.data is not None and sub_ids:\n            self.subset_indices = [x.id for x in self.data if x.id in sub_ids]\n\n    def get_values(self) -> Optional[np.ndarray]:\n        if not self.data or not self.selected_var:\n            return None\n        return self.grouped_data.get_column(self.selected_var)\n\n    def get_labels(self) -> Optional[Union[List, np.ndarray]]:\n        if not self.data:\n            return None\n        elif not self.annot_var:\n            return []\n        elif self.annot_var == self.enumeration:\n            return np.arange(1, len(self.data) + 1)[self.grouped_indices]\n        else:\n            return [self.annot_var.str_val(row[self.annot_var])\n                    for row in self.grouped_data]\n\n    def get_group_labels(self) -> Optional[List]:\n        if not self.data:\n            return None\n        elif not self.group_var:\n            return []\n        else:\n            return [self.group_var.str_val(row[self.group_var])\n                    for row in self.grouped_data]\n\n    def get_legend_data(self) -> List:\n        if not self.data or not self.color_var:\n            return []\n        else:\n            assert self.color_var.is_discrete\n            return [(QColor(*color), text) for color, text in\n                    zip(self.color_var.colors, self.color_var.values)]\n\n    def get_colors(self) -> Optional[List[QColor]]:\n        def create_color(i, id_):\n            lighter = id_ not in self.subset_indices and self.subset_indices\n            alpha = 50 if lighter else 255\n            if np.isnan(i):\n                return QColor(*(128, 128, 128, alpha))\n            return QColor(*np.append(self.color_var.colors[int(i)], alpha))\n\n        if not self.data:\n            return None\n        elif not self.color_var:\n            return [create_color(np.nan, id_) for id_ in self.grouped_data.ids]\n        else:\n            assert self.color_var.is_discrete\n            col = self.grouped_data.get_column(self.color_var)\n            return [create_color(i, id_) for id_, i in\n                    zip(self.grouped_data.ids, col)]\n\n    def get_tooltip(self, index: int) -> str:\n        if not self.data:\n            return \"\"\n        row = self.grouped_data[index]\n        attrs = [self.selected_var]\n        if self.group_var and self.group_var not in attrs:\n            attrs.append(self.group_var)\n        if isinstance(self.annot_var, Variable) and self.annot_var not in attrs:\n            attrs.append(self.annot_var)\n        if self.color_var and self.color_var not in attrs:\n            attrs.append(self.color_var)\n        text = \"<br/>\".join(escape('{} = {}'.format(var.name, row[var]))\n                            for var in attrs)\n        others = instance_tooltip(self.data.domain, row, skip_attrs=attrs)\n        if others:\n            text = \"<b>{}</b><br/><br/>{}\".format(text, others)\n        return text\n\n    def get_axes(self) -> Optional[Tuple[str, str, str]]:\n        if not self.data:\n            return None\n        return (self.selected_var.name,\n                self.group_var.name if self.group_var else \"\",\n                self.annot_var if self.annot_var else \"\")\n\n    def setup_plot(self):\n        self.graph.reset_graph()\n        self.apply_selection()\n\n    def apply_selection(self):\n        if self.data and self.__pending_selection is not None:\n            self.selection = [i for i in self.__pending_selection\n                              if i < len(self.data)]\n            self.graph.select_by_indices(self.grouped_indices_inverted)\n            self.__pending_selection = None\n\n    @gui.deferred\n    def commit(self):\n        selected = None\n        if self.data is not None and bool(self.selection):\n            selected = self.data[self.selection]\n        annotated = create_annotated_table(self.orig_data, self.selection)\n        self.Outputs.selected_data.send(selected)\n        self.Outputs.annotated_data.send(annotated)\n\n    def clear(self):\n        self.selection = None\n        self.graph.selection = []\n        self.clear_cache()\n\n    @staticmethod\n    def clear_cache():\n        OWBarPlot.grouped_indices.fget.cache_clear()\n\n    def send_report(self):\n        if self.data is None:\n            return\n        self.report_plot()\n\n    def set_visual_settings(self, key: KeyType, value: ValueType):\n        self.graph.parameter_setter.set_parameter(key, value)\n        self.visual_settings[key] = value\n\n    def sizeHint(self):  # pylint: disable=no-self-use\n        return QSize(1132, 708)\n\n    def showEvent(self, event):\n        super().showEvent(event)\n        self.graph.reset_view()",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 569,
                            "end_lineno": 578,
                            "parent": {
                                "file_name": "Orange/widgets/visualize/owbarplot.py",
                                "type": "class",
                                "name": "OWBarPlot",
                                "content": "class OWBarPlot(OWWidget):\n    name = \"Bar Plot\"\n    description = \"Visualizes comparisons among categorical variables.\"\n    icon = \"icons/BarPlot.svg\"\n    priority = 190\n    keywords = [\"chart\"]\n\n    class Inputs:\n        data = Input(\"Data\", Table, default=True)\n        data_subset = Input(\"Data Subset\", Table)\n\n    class Outputs:\n        selected_data = Output(\"Selected Data\", Table, default=True)\n        annotated_data = Output(ANNOTATED_DATA_SIGNAL_NAME, Table)\n\n    buttons_area_orientation = Qt.Vertical\n    settingsHandler = DomainContextHandler()\n    selected_var = ContextSetting(None)\n    group_var = ContextSetting(None)\n    annot_var = ContextSetting(None)\n    color_var = ContextSetting(None)\n    auto_commit = Setting(True)\n    selection = Setting(None, schema_only=True)\n    visual_settings = Setting({}, schema_only=True)\n\n    graph = SettingProvider(BarPlotGraph)\n    graph_name = \"graph.plotItem\"\n\n    class Error(OWWidget.Error):\n        no_cont_features = Msg(\"Plotting requires a numeric feature.\")\n\n    class Information(OWWidget.Information):\n        too_many_instances = Msg(\"Data has too many instances. Only first {}\"\n                                 \" are shown.\".format(MAX_INSTANCES))\n\n    enumeration = \"Enumeration\"\n\n    def __init__(self):\n        super().__init__()\n        self.data: Optional[Table] = None\n        self.orig_data: Optional[Table] = None\n        self.subset_data: Optional[Table] = None\n        self.subset_indices = []\n        self.graph: Optional[BarPlotGraph] = None\n        self._selected_var_model: Optional[DomainModel] = None\n        self._group_var_model: Optional[DomainModel] = None\n        self._annot_var_model: Optional[DomainModel] = None\n        self._color_var_model: Optional[DomainModel] = None\n        self.__pending_selection = self.selection\n\n        self.setup_gui()\n        VisualSettingsDialog(\n            self, self.graph.parameter_setter.initial_settings\n        )\n\n    def setup_gui(self):\n        self._add_graph()\n        self._add_controls()\n\n    def _add_graph(self):\n        box = gui.vBox(self.mainArea, True, margin=0)\n        self.graph = BarPlotGraph(self)\n        self.graph.selection_changed.connect(self.__selection_changed)\n        box.layout().addWidget(self.graph)\n\n    def __selection_changed(self, indices: List):\n        self.selection = list(set(self.grouped_indices[indices]))\n        self.commit.deferred()\n\n    def _add_controls(self):\n        box = gui.vBox(self.controlArea, True)\n        gui.rubber(self.controlArea)\n        self._selected_var_model = DomainModel(valid_types=ContinuousVariable)\n        gui.comboBox(\n            box, self, \"selected_var\", label=\"Values:\",\n            model=self._selected_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__parameter_changed,\n        )\n\n        self._group_var_model = DomainModel(\n            placeholder=\"None\", valid_types=DiscreteVariable\n        )\n        gui.comboBox(\n            box, self, \"group_var\", label=\"Group by:\",\n            model=self._group_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__group_var_changed,\n        )\n\n        self._annot_var_model = DomainModel(\n            placeholder=\"None\",\n            valid_types=(DiscreteVariable, StringVariable)\n        )\n        self._annot_var_model.order = self._annot_var_model.order[:1] + \\\n                                      (self.enumeration,) + \\\n                                      self._annot_var_model.order[1:]\n        gui.comboBox(\n            box, self, \"annot_var\", label=\"Annotations:\",\n            model=self._annot_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__parameter_changed,\n        )\n\n        self._color_var_model = DomainModel(\n            placeholder=\"(Same color)\", valid_types=DiscreteVariable\n        )\n        gui.comboBox(\n            box, self, \"color_var\", label=\"Color:\",\n            model=self._color_var_model,\n            contentsLength=12, searchable=True, orientation=Qt.Horizontal,\n            callback=self.__parameter_changed,\n        )\n\n        plot_gui = OWPlotGUI(self)\n        plot_gui.box_zoom_select(self.buttonsArea)\n\n        gui.auto_send(self.buttonsArea, self, \"auto_commit\")\n\n    def __parameter_changed(self):\n        self.graph.reset_graph()\n\n    def __group_var_changed(self):\n        self.clear_cache()\n        self.graph.selection = self.grouped_indices_inverted\n        self.__parameter_changed()\n\n    @property\n    @lru_cache()\n    def grouped_indices(self):\n        indices = []\n        if self.data:\n            indices = np.arange(len(self.data))\n            if self.group_var:\n                group_by = self.data.get_column(self.group_var)\n                indices = np.argsort(group_by, kind=\"mergesort\")\n        return indices\n\n    @property\n    def grouped_indices_inverted(self):\n        mask = np.isin(self.grouped_indices, self.selection)\n        return np.flatnonzero(mask)\n\n    @property\n    def grouped_data(self):\n        return self.data[self.grouped_indices]\n\n    @Inputs.data\n    @check_sql_input\n    def set_data(self, data: Optional[Table]):\n        self.closeContext()\n        self.clear()\n        self.orig_data = self.data = data\n        self.check_data()\n        self.init_attr_values()\n        self.openContext(self.data)\n        self.clear_cache()\n        self.commit.now()\n\n    def check_data(self):\n        self.clear_messages()\n        if self.data is not None:\n            if self.data.domain.has_continuous_attributes(True, True) == 0:\n                self.Error.no_cont_features()\n                self.data = None\n            elif len(self.data) > MAX_INSTANCES:\n                self.Information.too_many_instances()\n                self.data = self.data[:MAX_INSTANCES]\n\n    def init_attr_values(self):\n        domain = self.data.domain if self.data else None\n        for model, var in ((self._selected_var_model, \"selected_var\"),\n                           (self._group_var_model, \"group_var\"),\n                           (self._annot_var_model, \"annot_var\"),\n                           (self._color_var_model, \"color_var\")):\n            model.set_domain(domain)\n            setattr(self, var, None)\n\n        if self._selected_var_model:\n            self.selected_var = self._selected_var_model[0]\n        if domain is not None and domain.has_discrete_class:\n            self.color_var = domain.class_var\n\n    @Inputs.data_subset\n    @check_sql_input\n    def set_subset_data(self, data: Optional[Table]):\n        self.subset_data = data\n\n    def handleNewSignals(self):\n        self._handle_subset_data()\n        self.setup_plot()\n\n    def _handle_subset_data(self):\n        sub_ids = {e.id for e in self.subset_data} \\\n            if self.subset_data is not None else {}\n        self.subset_indices = []\n        if self.data is not None and sub_ids:\n            self.subset_indices = [x.id for x in self.data if x.id in sub_ids]\n\n    def get_values(self) -> Optional[np.ndarray]:\n        if not self.data or not self.selected_var:\n            return None\n        return self.grouped_data.get_column(self.selected_var)\n\n    def get_labels(self) -> Optional[Union[List, np.ndarray]]:\n        if not self.data:\n            return None\n        elif not self.annot_var:\n            return []\n        elif self.annot_var == self.enumeration:\n            return np.arange(1, len(self.data) + 1)[self.grouped_indices]\n        else:\n            return [self.annot_var.str_val(row[self.annot_var])\n                    for row in self.grouped_data]\n\n    def get_group_labels(self) -> Optional[List]:\n        if not self.data:\n            return None\n        elif not self.group_var:\n            return []\n        else:\n            return [self.group_var.str_val(row[self.group_var])\n                    for row in self.grouped_data]\n\n    def get_legend_data(self) -> List:\n        if not self.data or not self.color_var:\n            return []\n        else:\n            assert self.color_var.is_discrete\n            return [(QColor(*color), text) for color, text in\n                    zip(self.color_var.colors, self.color_var.values)]\n\n    def get_colors(self) -> Optional[List[QColor]]:\n        def create_color(i, id_):\n            lighter = id_ not in self.subset_indices and self.subset_indices\n            alpha = 50 if lighter else 255\n            if np.isnan(i):\n                return QColor(*(128, 128, 128, alpha))\n            return QColor(*np.append(self.color_var.colors[int(i)], alpha))\n\n        if not self.data:\n            return None\n        elif not self.color_var:\n            return [create_color(np.nan, id_) for id_ in self.grouped_data.ids]\n        else:\n            assert self.color_var.is_discrete\n            col = self.grouped_data.get_column(self.color_var)\n            return [create_color(i, id_) for id_, i in\n                    zip(self.grouped_data.ids, col)]\n\n    def get_tooltip(self, index: int) -> str:\n        if not self.data:\n            return \"\"\n        row = self.grouped_data[index]\n        attrs = [self.selected_var]\n        if self.group_var and self.group_var not in attrs:\n            attrs.append(self.group_var)\n        if isinstance(self.annot_var, Variable) and self.annot_var not in attrs:\n            attrs.append(self.annot_var)\n        if self.color_var and self.color_var not in attrs:\n            attrs.append(self.color_var)\n        text = \"<br/>\".join(escape('{} = {}'.format(var.name, row[var]))\n                            for var in attrs)\n        others = instance_tooltip(self.data.domain, row, skip_attrs=attrs)\n        if others:\n            text = \"<b>{}</b><br/><br/>{}\".format(text, others)\n        return text\n\n    def get_axes(self) -> Optional[Tuple[str, str, str]]:\n        if not self.data:\n            return None\n        return (self.selected_var.name,\n                self.group_var.name if self.group_var else \"\",\n                self.annot_var if self.annot_var else \"\")\n\n    def setup_plot(self):\n        self.graph.reset_graph()\n        self.apply_selection()\n\n    def apply_selection(self):\n        if self.data and self.__pending_selection is not None:\n            self.selection = [i for i in self.__pending_selection\n                              if i < len(self.data)]\n            self.graph.select_by_indices(self.grouped_indices_inverted)\n            self.__pending_selection = None\n\n    @gui.deferred\n    def commit(self):\n        selected = None\n        if self.data is not None and bool(self.selection):\n            selected = self.data[self.selection]\n        annotated = create_annotated_table(self.orig_data, self.selection)\n        self.Outputs.selected_data.send(selected)\n        self.Outputs.annotated_data.send(annotated)\n\n    def clear(self):\n        self.selection = None\n        self.graph.selection = []\n        self.clear_cache()\n\n    @staticmethod\n    def clear_cache():\n        OWBarPlot.grouped_indices.fget.cache_clear()\n\n    def send_report(self):\n        if self.data is None:\n            return\n        self.report_plot()\n\n    def set_visual_settings(self, key: KeyType, value: ValueType):\n        self.graph.parameter_setter.set_parameter(key, value)\n        self.visual_settings[key] = value\n\n    def sizeHint(self):  # pylint: disable=no-self-use\n        return QSize(1132, 708)\n\n    def showEvent(self, event):\n        super().showEvent(event)\n        self.graph.reset_view()",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 368,
                                "end_lineno": 683,
                                "parent": null
                            }
                        }
                    ],
                    "added_entities": [],
                    "deleted_entities": []
                }
            ]
        },
        {
            "old_file_content": "# Test methods with long descriptive names can omit docstrings\n# pylint: disable=missing-docstring,protected-access\nimport unittest\nfrom unittest.mock import patch\n\nimport numpy as np\nimport scipy.sparse as sp\n\nfrom AnyQt.QtCore import Qt\nfrom AnyQt.QtGui import QFont\n\nfrom Orange.data import Table\nfrom Orange.widgets.tests.base import WidgetTest, simulate, \\\n    WidgetOutputsTestMixin, datasets\nfrom Orange.widgets.visualize.owbarplot import OWBarPlot\n\n\nclass TestOWBarPlot(WidgetTest, WidgetOutputsTestMixin):\n    @classmethod\n    def setUpClass(cls):\n        super().setUpClass()\n        WidgetOutputsTestMixin.init(cls)\n\n        cls.signal_name = \"Data\"\n        cls.signal_data = cls.data\n        cls.titanic = Table(\"titanic\")\n        cls.housing = Table(\"housing\")\n        cls.heart = Table(\"heart_disease\")\n\n    def setUp(self):\n        self.widget = self.create_widget(OWBarPlot)\n\n    def _select_data(self):\n        self.widget.graph.select_by_indices(list(range(0, len(self.data), 5)))\n        return self.widget.selection\n\n    def test_input_no_cont_features(self):\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertTrue(self.widget.Error.no_cont_features.is_shown())\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(self.widget.Error.no_cont_features.is_shown())\n\n    @patch(\"Orange.widgets.visualize.owbarplot.MAX_INSTANCES\", 10)\n    def test_input_to_many_instances(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertTrue(self.widget.Information.too_many_instances.is_shown())\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(self.widget.Information.too_many_instances.is_shown())\n\n    def test_init_attr_values(self):\n        controls = self.widget.controls\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertEqual(controls.selected_var.currentText(), \"age\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 6)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 11)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 12)\n        self.assertEqual(controls.color_var.currentText(),\n                         \"diameter narrowing\")\n        self.assertEqual(controls.color_var.model().rowCount(), 11)\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertEqual(controls.selected_var.currentText(), \"sepal length\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 4)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 3)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 4)\n        self.assertEqual(controls.color_var.currentText(), \"iris\")\n        self.assertEqual(controls.color_var.model().rowCount(), 3)\n\n        self.send_signal(self.widget.Inputs.data, self.housing)\n        self.assertEqual(controls.selected_var.currentText(), \"MEDV\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 15)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 0)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertEqual(controls.selected_var.currentText(), \"age\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 6)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 11)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 12)\n        self.assertEqual(controls.color_var.currentText(),\n                         \"diameter narrowing\")\n        self.assertEqual(controls.color_var.model().rowCount(), 11)\n\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 0)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n    def test_group_axis(self):\n        group_axis = self.widget.graph.group_axis\n        annot_axis = self.widget.graph.getAxis('bottom')\n        controls = self.widget.controls\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertFalse(group_axis.isVisible())\n        self.assertTrue(annot_axis.isVisible())\n\n        simulate.combobox_activate_item(controls.group_var, \"iris\")\n        self.assertTrue(group_axis.isVisible())\n        self.assertFalse(annot_axis.isVisible())\n\n        simulate.combobox_activate_item(controls.annot_var, \"iris\")\n        self.assertTrue(group_axis.isVisible())\n        self.assertTrue(annot_axis.isVisible())\n\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(group_axis.isVisible())\n        self.assertFalse(annot_axis.isVisible())\n\n    def test_datasets(self):\n        controls = self.widget.controls\n        for ds in datasets.datasets():\n            self.send_signal(self.widget.Inputs.data, ds)\n            simulate.combobox_run_through_all(controls.selected_var)\n            simulate.combobox_run_through_all(controls.group_var)\n            simulate.combobox_run_through_all(controls.annot_var)\n            simulate.combobox_run_through_all(controls.color_var)\n\n    def test_selection(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertIsNone(self.get_output(self.widget.Outputs.selected_data))\n\n        # Select 0:5\n        sel_indices = list(range(5))\n        self.widget.graph.select_by_indices(sel_indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Shift-select 10:15 (add 10:15 to selection)\n        indices = list(range(10, 15))\n        sel_indices.extend(indices)\n        with self.modifiers(Qt.ShiftModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Select 15:20\n        sel_indices = list(range(15, 20))\n        self.widget.graph.select_by_indices(sel_indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Control-select 10:17 (add 10:15, remove 15:17)\n        indices = list(range(10, 17))\n        sel_indices.extend(indices[:5])\n        sel_indices.remove(15)\n        sel_indices.remove(16)\n        sel_indices = sorted(sel_indices)\n        with self.modifiers(Qt.ControlModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Alt-select 15:30 (remove 17:20)\n        indices = list(range(15, 30))\n        sel_indices.remove(17)\n        sel_indices.remove(18)\n        sel_indices.remove(19)\n        sel_indices = sorted(sel_indices)\n        with self.modifiers(Qt.AltModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n    def test_retain_selection_on_param_change(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        indices = self._select_data()\n        self.assertSelectedIndices(indices)\n\n        controls = self.widget.controls\n        simulate.combobox_run_through_all(controls.selected_var)\n        simulate.combobox_run_through_all(controls.group_var)\n        simulate.combobox_run_through_all(controls.annot_var)\n        simulate.combobox_run_through_all(controls.color_var)\n        self.assertSelectedIndices(indices)\n\n    def test_data_subset(self):\n        subset = list(range(0, 150, 6))\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n        self.send_signal(self.widget.Inputs.data_subset, None)\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n\n    def test_plot_data_subset(self):\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes)]))\n\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        indices = list(range(0, 75, 3))\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes) if i in indices]))\n        self.assertTrue(all([color.alpha() == 50 for i, color\n                             in enumerate(brushes) if i not in indices]))\n\n        self.send_signal(self.widget.Inputs.data_subset, None)\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes)]))\n\n    def test_plot(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.housing)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertIsNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertIsNone(self.widget.graph.bar_item)\n\n    def test_saved_workflow(self):\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        indices = self._select_data()\n        self.assertSelectedIndices(indices, data=self.heart)\n\n        chol = self.heart.domain[\"cholesterol\"]\n        chest = self.heart.domain[\"chest pain\"]\n        gender = self.heart.domain[\"gender\"]\n        thal = self.heart.domain[\"thal\"]\n        controls = self.widget.controls\n        simulate.combobox_activate_item(controls.selected_var, chol.name)\n        simulate.combobox_activate_item(controls.group_var, chest.name)\n        simulate.combobox_activate_item(controls.annot_var, gender.name)\n        simulate.combobox_activate_item(controls.color_var, thal.name)\n\n        settings = self.widget.settingsHandler.pack_data(self.widget)\n        w = self.create_widget(OWBarPlot, stored_settings=settings)\n        self.send_signal(w.Inputs.data, self.heart, widget=w)\n        self.assertEqual(w.controls.selected_var.currentText(), chol.name)\n        self.assertEqual(w.controls.group_var.currentText(), chest.name)\n        self.assertEqual(w.controls.annot_var.currentText(), gender.name)\n        self.assertEqual(w.controls.color_var.currentText(), thal.name)\n        self.assertSelectedIndices(indices, data=self.heart, widget=w)\n\n    def test_sparse_data(self):\n        table = Table(\"iris\").to_sparse()\n        self.assertTrue(sp.issparse(table.X))\n        self.send_signal(self.widget.Inputs.data, table)\n        self.send_signal(self.widget.Inputs.data_subset, table[::30])\n        self.assertEqual(len(self.widget.subset_indices), 5)\n\n    def test_hidden_vars(self):\n        data = Table(\"iris\")\n        data.domain.attributes[0].attributes[\"hidden\"] = True\n        self.send_signal(self.widget.Inputs.data, data)\n        controls = self.widget.controls\n        self.assertEqual(controls.selected_var.currentText(), \"sepal width\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 3)\n\n    def test_send_report(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.widget.report_button.click()\n        self.send_signal(self.widget.Inputs.data, None)\n        self.widget.report_button.click()\n\n    def test_visual_settings(self):\n        graph = self.widget.graph\n        font = QFont()\n        font.setItalic(True)\n        font.setFamily(\"Helvetica\")\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        key, value = (\"Fonts\", \"Font family\", \"Font family\"), \"Helvetica\"\n        self.widget.set_visual_settings(key, value)\n\n        key, value = (\"Fonts\", \"Title\", \"Font size\"), 20\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Title\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(20)\n        self.assertFontEqual(\n            graph.parameter_setter.title_item.item.font(), font\n        )\n\n        key, value = (\"Fonts\", \"Axis title\", \"Font size\"), 16\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Axis title\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(16)\n        for item in graph.parameter_setter.axis_items:\n            self.assertFontEqual(item.label.font(), font)\n\n        key, value = (\"Fonts\", \"Axis ticks\", \"Font size\"), 15\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Axis ticks\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(15)\n        for item in graph.parameter_setter.axis_items:\n            self.assertFontEqual(item.style[\"tickFont\"], font)\n\n        key, value = (\"Fonts\", \"Legend\", \"Font size\"), 14\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Legend\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(14)\n        legend_item = list(graph.parameter_setter.legend_items)[0]\n        self.assertFontEqual(legend_item[1].item.font(), font)\n\n        key, value = (\"Annotations\", \"Title\", \"Title\"), \"Foo\"\n        self.widget.set_visual_settings(key, value)\n        self.assertEqual(\n            graph.parameter_setter.title_item.item.toPlainText(), \"Foo\"\n        )\n        self.assertEqual(graph.parameter_setter.title_item.text, \"Foo\")\n\n        key, value = (\"Figure\", \"Gridlines\", \"Show\"), False\n        self.assertTrue(graph.getAxis(\"left\").grid)\n        self.widget.set_visual_settings(key, value)\n        self.assertFalse(graph.getAxis(\"left\").grid)\n\n        key, value = (\"Figure\", \"Bottom axis\", \"Vertical ticks\"), False\n        self.assertTrue(graph.getAxis(\"bottom\").style[\"rotateTicks\"])\n        self.widget.set_visual_settings(key, value)\n        self.assertFalse(graph.getAxis(\"bottom\").style[\"rotateTicks\"])\n\n        key, value = (\"Figure\", \"Group axis\", \"Vertical ticks\"), True\n        self.assertFalse(graph.group_axis.style[\"rotateTicks\"])\n        self.widget.set_visual_settings(key, value)\n        self.assertTrue(graph.group_axis.style[\"rotateTicks\"])\n\n    def assertFontEqual(self, font1, font2):\n        self.assertEqual(font1.family(), font2.family())\n        self.assertEqual(font1.pointSize(), font2.pointSize())\n        self.assertEqual(font1.italic(), font2.italic())\n\n    def assertSelectedIndices(self, indices, data=None, widget=None):\n        if data is None:\n            data = self.data\n        if widget is None:\n            widget = self.widget\n        selected = self.get_output(widget.Outputs.selected_data)\n        np.testing.assert_array_equal(selected.X, data[indices].X)\n\n        indices = self.widget.grouped_indices_inverted\n        self.assertSetEqual(set(widget.graph.selection), set(indices))\n        pens = widget.graph.bar_item.opts[\"pens\"]\n        self.assertTrue(all([pen.style() == Qt.DashLine for i, pen\n                             in enumerate(pens) if i in indices]))\n        self.assertTrue(all([pen.style() == Qt.SolidLine for i, pen\n                             in enumerate(pens) if i not in indices]))\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n",
            "new_file_content": "# Test methods with long descriptive names can omit docstrings\n# pylint: disable=missing-docstring,protected-access\nimport unittest\nfrom unittest.mock import patch\n\nimport numpy as np\nimport scipy.sparse as sp\n\nfrom AnyQt.QtCore import Qt\nfrom AnyQt.QtGui import QFont\n\nfrom Orange.data import Table\nfrom Orange.widgets.tests.base import WidgetTest, simulate, \\\n    WidgetOutputsTestMixin, datasets\nfrom Orange.widgets.visualize.owbarplot import OWBarPlot\n\n\nclass TestOWBarPlot(WidgetTest, WidgetOutputsTestMixin):\n    @classmethod\n    def setUpClass(cls):\n        super().setUpClass()\n        WidgetOutputsTestMixin.init(cls)\n\n        cls.signal_name = \"Data\"\n        cls.signal_data = cls.data\n        cls.titanic = Table(\"titanic\")\n        cls.housing = Table(\"housing\")\n        cls.heart = Table(\"heart_disease\")\n\n    def setUp(self):\n        self.widget = self.create_widget(OWBarPlot)\n\n    def _select_data(self):\n        self.widget.graph.select_by_indices(list(range(0, len(self.data), 5)))\n        return self.widget.selection\n\n    def test_input_no_cont_features(self):\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertTrue(self.widget.Error.no_cont_features.is_shown())\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(self.widget.Error.no_cont_features.is_shown())\n\n    @patch(\"Orange.widgets.visualize.owbarplot.MAX_INSTANCES\", 10)\n    def test_input_to_many_instances(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertTrue(self.widget.Information.too_many_instances.is_shown())\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(self.widget.Information.too_many_instances.is_shown())\n\n    def test_init_attr_values(self):\n        controls = self.widget.controls\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertEqual(controls.selected_var.currentText(), \"age\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 6)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 11)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 12)\n        self.assertEqual(controls.color_var.currentText(),\n                         \"diameter narrowing\")\n        self.assertEqual(controls.color_var.model().rowCount(), 11)\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertEqual(controls.selected_var.currentText(), \"sepal length\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 4)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 3)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 4)\n        self.assertEqual(controls.color_var.currentText(), \"iris\")\n        self.assertEqual(controls.color_var.model().rowCount(), 3)\n\n        self.send_signal(self.widget.Inputs.data, self.housing)\n        self.assertEqual(controls.selected_var.currentText(), \"MEDV\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 15)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 0)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertEqual(controls.selected_var.currentText(), \"age\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 6)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 11)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 12)\n        self.assertEqual(controls.color_var.currentText(),\n                         \"diameter narrowing\")\n        self.assertEqual(controls.color_var.model().rowCount(), 11)\n\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 0)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n    def test_group_axis(self):\n        group_axis = self.widget.graph.group_axis\n        annot_axis = self.widget.graph.getAxis('bottom')\n        controls = self.widget.controls\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertFalse(group_axis.isVisible())\n        self.assertTrue(annot_axis.isVisible())\n\n        simulate.combobox_activate_item(controls.group_var, \"iris\")\n        self.assertTrue(group_axis.isVisible())\n        self.assertFalse(annot_axis.isVisible())\n\n        simulate.combobox_activate_item(controls.annot_var, \"iris\")\n        self.assertTrue(group_axis.isVisible())\n        self.assertTrue(annot_axis.isVisible())\n\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(group_axis.isVisible())\n        self.assertFalse(annot_axis.isVisible())\n\n    def test_annotate_by_enumeration(self):\n        widget = self.widget\n\n        self.send_signal(widget.Inputs.data, self.data)\n        combo = widget.controls.annot_var\n        for i in range(combo.count()):\n            try:\n                simulate.combobox_activate_index(combo, i)\n            except AssertionError:  # skip disabled items\n                pass\n            else:\n                labels = widget.get_labels()\n                self.assertTrue(not labels\n                                or all(isinstance(x, str) for x in labels))\n\n    def test_datasets(self):\n        controls = self.widget.controls\n        for ds in datasets.datasets():\n            self.send_signal(self.widget.Inputs.data, ds)\n            simulate.combobox_run_through_all(controls.selected_var)\n            simulate.combobox_run_through_all(controls.group_var)\n            simulate.combobox_run_through_all(controls.annot_var)\n            simulate.combobox_run_through_all(controls.color_var)\n\n    def test_selection(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertIsNone(self.get_output(self.widget.Outputs.selected_data))\n\n        # Select 0:5\n        sel_indices = list(range(5))\n        self.widget.graph.select_by_indices(sel_indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Shift-select 10:15 (add 10:15 to selection)\n        indices = list(range(10, 15))\n        sel_indices.extend(indices)\n        with self.modifiers(Qt.ShiftModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Select 15:20\n        sel_indices = list(range(15, 20))\n        self.widget.graph.select_by_indices(sel_indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Control-select 10:17 (add 10:15, remove 15:17)\n        indices = list(range(10, 17))\n        sel_indices.extend(indices[:5])\n        sel_indices.remove(15)\n        sel_indices.remove(16)\n        sel_indices = sorted(sel_indices)\n        with self.modifiers(Qt.ControlModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Alt-select 15:30 (remove 17:20)\n        indices = list(range(15, 30))\n        sel_indices.remove(17)\n        sel_indices.remove(18)\n        sel_indices.remove(19)\n        sel_indices = sorted(sel_indices)\n        with self.modifiers(Qt.AltModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n    def test_retain_selection_on_param_change(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        indices = self._select_data()\n        self.assertSelectedIndices(indices)\n\n        controls = self.widget.controls\n        simulate.combobox_run_through_all(controls.selected_var)\n        simulate.combobox_run_through_all(controls.group_var)\n        simulate.combobox_run_through_all(controls.annot_var)\n        simulate.combobox_run_through_all(controls.color_var)\n        self.assertSelectedIndices(indices)\n\n    def test_data_subset(self):\n        subset = list(range(0, 150, 6))\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n        self.send_signal(self.widget.Inputs.data_subset, None)\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n\n    def test_plot_data_subset(self):\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes)]))\n\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        indices = list(range(0, 75, 3))\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes) if i in indices]))\n        self.assertTrue(all([color.alpha() == 50 for i, color\n                             in enumerate(brushes) if i not in indices]))\n\n        self.send_signal(self.widget.Inputs.data_subset, None)\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes)]))\n\n    def test_plot(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.housing)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertIsNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertIsNone(self.widget.graph.bar_item)\n\n    def test_saved_workflow(self):\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        indices = self._select_data()\n        self.assertSelectedIndices(indices, data=self.heart)\n\n        chol = self.heart.domain[\"cholesterol\"]\n        chest = self.heart.domain[\"chest pain\"]\n        gender = self.heart.domain[\"gender\"]\n        thal = self.heart.domain[\"thal\"]\n        controls = self.widget.controls\n        simulate.combobox_activate_item(controls.selected_var, chol.name)\n        simulate.combobox_activate_item(controls.group_var, chest.name)\n        simulate.combobox_activate_item(controls.annot_var, gender.name)\n        simulate.combobox_activate_item(controls.color_var, thal.name)\n\n        settings = self.widget.settingsHandler.pack_data(self.widget)\n        w = self.create_widget(OWBarPlot, stored_settings=settings)\n        self.send_signal(w.Inputs.data, self.heart, widget=w)\n        self.assertEqual(w.controls.selected_var.currentText(), chol.name)\n        self.assertEqual(w.controls.group_var.currentText(), chest.name)\n        self.assertEqual(w.controls.annot_var.currentText(), gender.name)\n        self.assertEqual(w.controls.color_var.currentText(), thal.name)\n        self.assertSelectedIndices(indices, data=self.heart, widget=w)\n\n    def test_sparse_data(self):\n        table = Table(\"iris\").to_sparse()\n        self.assertTrue(sp.issparse(table.X))\n        self.send_signal(self.widget.Inputs.data, table)\n        self.send_signal(self.widget.Inputs.data_subset, table[::30])\n        self.assertEqual(len(self.widget.subset_indices), 5)\n\n    def test_hidden_vars(self):\n        data = Table(\"iris\")\n        data.domain.attributes[0].attributes[\"hidden\"] = True\n        self.send_signal(self.widget.Inputs.data, data)\n        controls = self.widget.controls\n        self.assertEqual(controls.selected_var.currentText(), \"sepal width\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 3)\n\n    def test_send_report(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.widget.report_button.click()\n        self.send_signal(self.widget.Inputs.data, None)\n        self.widget.report_button.click()\n\n    def test_visual_settings(self):\n        graph = self.widget.graph\n        font = QFont()\n        font.setItalic(True)\n        font.setFamily(\"Helvetica\")\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        key, value = (\"Fonts\", \"Font family\", \"Font family\"), \"Helvetica\"\n        self.widget.set_visual_settings(key, value)\n\n        key, value = (\"Fonts\", \"Title\", \"Font size\"), 20\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Title\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(20)\n        self.assertFontEqual(\n            graph.parameter_setter.title_item.item.font(), font\n        )\n\n        key, value = (\"Fonts\", \"Axis title\", \"Font size\"), 16\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Axis title\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(16)\n        for item in graph.parameter_setter.axis_items:\n            self.assertFontEqual(item.label.font(), font)\n\n        key, value = (\"Fonts\", \"Axis ticks\", \"Font size\"), 15\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Axis ticks\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(15)\n        for item in graph.parameter_setter.axis_items:\n            self.assertFontEqual(item.style[\"tickFont\"], font)\n\n        key, value = (\"Fonts\", \"Legend\", \"Font size\"), 14\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Legend\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(14)\n        legend_item = list(graph.parameter_setter.legend_items)[0]\n        self.assertFontEqual(legend_item[1].item.font(), font)\n\n        key, value = (\"Annotations\", \"Title\", \"Title\"), \"Foo\"\n        self.widget.set_visual_settings(key, value)\n        self.assertEqual(\n            graph.parameter_setter.title_item.item.toPlainText(), \"Foo\"\n        )\n        self.assertEqual(graph.parameter_setter.title_item.text, \"Foo\")\n\n        key, value = (\"Figure\", \"Gridlines\", \"Show\"), False\n        self.assertTrue(graph.getAxis(\"left\").grid)\n        self.widget.set_visual_settings(key, value)\n        self.assertFalse(graph.getAxis(\"left\").grid)\n\n        key, value = (\"Figure\", \"Bottom axis\", \"Vertical ticks\"), False\n        self.assertTrue(graph.getAxis(\"bottom\").style[\"rotateTicks\"])\n        self.widget.set_visual_settings(key, value)\n        self.assertFalse(graph.getAxis(\"bottom\").style[\"rotateTicks\"])\n\n        key, value = (\"Figure\", \"Group axis\", \"Vertical ticks\"), True\n        self.assertFalse(graph.group_axis.style[\"rotateTicks\"])\n        self.widget.set_visual_settings(key, value)\n        self.assertTrue(graph.group_axis.style[\"rotateTicks\"])\n\n    def assertFontEqual(self, font1, font2):\n        self.assertEqual(font1.family(), font2.family())\n        self.assertEqual(font1.pointSize(), font2.pointSize())\n        self.assertEqual(font1.italic(), font2.italic())\n\n    def assertSelectedIndices(self, indices, data=None, widget=None):\n        if data is None:\n            data = self.data\n        if widget is None:\n            widget = self.widget\n        selected = self.get_output(widget.Outputs.selected_data)\n        np.testing.assert_array_equal(selected.X, data[indices].X)\n\n        indices = self.widget.grouped_indices_inverted\n        self.assertSetEqual(set(widget.graph.selection), set(indices))\n        pens = widget.graph.bar_item.opts[\"pens\"]\n        self.assertTrue(all([pen.style() == Qt.DashLine for i, pen\n                             in enumerate(pens) if i in indices]))\n        self.assertTrue(all([pen.style() == Qt.SolidLine for i, pen\n                             in enumerate(pens) if i not in indices]))\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n",
            "header": {
                "file": {
                    "path": "Orange/widgets/visualize/tests/test_owbarplot.py"
                },
                "misc_line": null
            },
            "index_line": {
                "old_commit_hash": "0ff75962a",
                "new_commit_hash": "f3294b3bb",
                "mode": "100644"
            },
            "is_binary_file": false,
            "binary_line": null,
            "minus_file": {
                "path": "a/Orange/widgets/visualize/tests/test_owbarplot.py"
            },
            "plus_file": {
                "path": "b/Orange/widgets/visualize/tests/test_owbarplot.py"
            },
            "hunks": [
                {
                    "descriptor": {
                        "old_range": {
                            "start": 137,
                            "length": 6
                        },
                        "new_range": {
                            "start": 137,
                            "length": 21
                        },
                        "section": "class TestOWBarPlot(WidgetTest, WidgetOutputsTestMixin):"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "        self.assertFalse(group_axis.isVisible())",
                                "type": "context"
                            },
                            {
                                "content": "        self.assertFalse(annot_axis.isVisible())",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "    def test_annotate_by_enumeration(self):",
                                "type": "added"
                            },
                            {
                                "content": "        widget = self.widget",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "        self.send_signal(widget.Inputs.data, self.data)",
                                "type": "added"
                            },
                            {
                                "content": "        combo = widget.controls.annot_var",
                                "type": "added"
                            },
                            {
                                "content": "        for i in range(combo.count()):",
                                "type": "added"
                            },
                            {
                                "content": "            try:",
                                "type": "added"
                            },
                            {
                                "content": "                simulate.combobox_activate_index(combo, i)",
                                "type": "added"
                            },
                            {
                                "content": "            except AssertionError:  # skip disabled items",
                                "type": "added"
                            },
                            {
                                "content": "                pass",
                                "type": "added"
                            },
                            {
                                "content": "            else:",
                                "type": "added"
                            },
                            {
                                "content": "                labels = widget.get_labels()",
                                "type": "added"
                            },
                            {
                                "content": "                self.assertTrue(not labels",
                                "type": "added"
                            },
                            {
                                "content": "                                or all(isinstance(x, str) for x in labels))",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "    def test_datasets(self):",
                                "type": "context"
                            },
                            {
                                "content": "        controls = self.widget.controls",
                                "type": "context"
                            },
                            {
                                "content": "        for ds in datasets.datasets():",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [
                        {
                            "file_name": "Orange/widgets/visualize/tests/test_owbarplot.py",
                            "type": "class",
                            "name": "TestOWBarPlot",
                            "content": "class TestOWBarPlot(WidgetTest, WidgetOutputsTestMixin):\n    @classmethod\n    def setUpClass(cls):\n        super().setUpClass()\n        WidgetOutputsTestMixin.init(cls)\n\n        cls.signal_name = \"Data\"\n        cls.signal_data = cls.data\n        cls.titanic = Table(\"titanic\")\n        cls.housing = Table(\"housing\")\n        cls.heart = Table(\"heart_disease\")\n\n    def setUp(self):\n        self.widget = self.create_widget(OWBarPlot)\n\n    def _select_data(self):\n        self.widget.graph.select_by_indices(list(range(0, len(self.data), 5)))\n        return self.widget.selection\n\n    def test_input_no_cont_features(self):\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertTrue(self.widget.Error.no_cont_features.is_shown())\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(self.widget.Error.no_cont_features.is_shown())\n\n    @patch(\"Orange.widgets.visualize.owbarplot.MAX_INSTANCES\", 10)\n    def test_input_to_many_instances(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertTrue(self.widget.Information.too_many_instances.is_shown())\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(self.widget.Information.too_many_instances.is_shown())\n\n    def test_init_attr_values(self):\n        controls = self.widget.controls\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertEqual(controls.selected_var.currentText(), \"age\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 6)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 11)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 12)\n        self.assertEqual(controls.color_var.currentText(),\n                         \"diameter narrowing\")\n        self.assertEqual(controls.color_var.model().rowCount(), 11)\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertEqual(controls.selected_var.currentText(), \"sepal length\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 4)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 3)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 4)\n        self.assertEqual(controls.color_var.currentText(), \"iris\")\n        self.assertEqual(controls.color_var.model().rowCount(), 3)\n\n        self.send_signal(self.widget.Inputs.data, self.housing)\n        self.assertEqual(controls.selected_var.currentText(), \"MEDV\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 15)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 0)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertEqual(controls.selected_var.currentText(), \"age\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 6)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 11)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 12)\n        self.assertEqual(controls.color_var.currentText(),\n                         \"diameter narrowing\")\n        self.assertEqual(controls.color_var.model().rowCount(), 11)\n\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 0)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n    def test_group_axis(self):\n        group_axis = self.widget.graph.group_axis\n        annot_axis = self.widget.graph.getAxis('bottom')\n        controls = self.widget.controls\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertFalse(group_axis.isVisible())\n        self.assertTrue(annot_axis.isVisible())\n\n        simulate.combobox_activate_item(controls.group_var, \"iris\")\n        self.assertTrue(group_axis.isVisible())\n        self.assertFalse(annot_axis.isVisible())\n\n        simulate.combobox_activate_item(controls.annot_var, \"iris\")\n        self.assertTrue(group_axis.isVisible())\n        self.assertTrue(annot_axis.isVisible())\n\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(group_axis.isVisible())\n        self.assertFalse(annot_axis.isVisible())\n\n    def test_annotate_by_enumeration(self):\n        widget = self.widget\n\n        self.send_signal(widget.Inputs.data, self.data)\n        combo = widget.controls.annot_var\n        for i in range(combo.count()):\n            try:\n                simulate.combobox_activate_index(combo, i)\n            except AssertionError:  # skip disabled items\n                pass\n            else:\n                labels = widget.get_labels()\n                self.assertTrue(not labels\n                                or all(isinstance(x, str) for x in labels))\n\n    def test_datasets(self):\n        controls = self.widget.controls\n        for ds in datasets.datasets():\n            self.send_signal(self.widget.Inputs.data, ds)\n            simulate.combobox_run_through_all(controls.selected_var)\n            simulate.combobox_run_through_all(controls.group_var)\n            simulate.combobox_run_through_all(controls.annot_var)\n            simulate.combobox_run_through_all(controls.color_var)\n\n    def test_selection(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertIsNone(self.get_output(self.widget.Outputs.selected_data))\n\n        # Select 0:5\n        sel_indices = list(range(5))\n        self.widget.graph.select_by_indices(sel_indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Shift-select 10:15 (add 10:15 to selection)\n        indices = list(range(10, 15))\n        sel_indices.extend(indices)\n        with self.modifiers(Qt.ShiftModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Select 15:20\n        sel_indices = list(range(15, 20))\n        self.widget.graph.select_by_indices(sel_indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Control-select 10:17 (add 10:15, remove 15:17)\n        indices = list(range(10, 17))\n        sel_indices.extend(indices[:5])\n        sel_indices.remove(15)\n        sel_indices.remove(16)\n        sel_indices = sorted(sel_indices)\n        with self.modifiers(Qt.ControlModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Alt-select 15:30 (remove 17:20)\n        indices = list(range(15, 30))\n        sel_indices.remove(17)\n        sel_indices.remove(18)\n        sel_indices.remove(19)\n        sel_indices = sorted(sel_indices)\n        with self.modifiers(Qt.AltModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n    def test_retain_selection_on_param_change(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        indices = self._select_data()\n        self.assertSelectedIndices(indices)\n\n        controls = self.widget.controls\n        simulate.combobox_run_through_all(controls.selected_var)\n        simulate.combobox_run_through_all(controls.group_var)\n        simulate.combobox_run_through_all(controls.annot_var)\n        simulate.combobox_run_through_all(controls.color_var)\n        self.assertSelectedIndices(indices)\n\n    def test_data_subset(self):\n        subset = list(range(0, 150, 6))\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n        self.send_signal(self.widget.Inputs.data_subset, None)\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n\n    def test_plot_data_subset(self):\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes)]))\n\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        indices = list(range(0, 75, 3))\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes) if i in indices]))\n        self.assertTrue(all([color.alpha() == 50 for i, color\n                             in enumerate(brushes) if i not in indices]))\n\n        self.send_signal(self.widget.Inputs.data_subset, None)\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes)]))\n\n    def test_plot(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.housing)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertIsNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertIsNone(self.widget.graph.bar_item)\n\n    def test_saved_workflow(self):\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        indices = self._select_data()\n        self.assertSelectedIndices(indices, data=self.heart)\n\n        chol = self.heart.domain[\"cholesterol\"]\n        chest = self.heart.domain[\"chest pain\"]\n        gender = self.heart.domain[\"gender\"]\n        thal = self.heart.domain[\"thal\"]\n        controls = self.widget.controls\n        simulate.combobox_activate_item(controls.selected_var, chol.name)\n        simulate.combobox_activate_item(controls.group_var, chest.name)\n        simulate.combobox_activate_item(controls.annot_var, gender.name)\n        simulate.combobox_activate_item(controls.color_var, thal.name)\n\n        settings = self.widget.settingsHandler.pack_data(self.widget)\n        w = self.create_widget(OWBarPlot, stored_settings=settings)\n        self.send_signal(w.Inputs.data, self.heart, widget=w)\n        self.assertEqual(w.controls.selected_var.currentText(), chol.name)\n        self.assertEqual(w.controls.group_var.currentText(), chest.name)\n        self.assertEqual(w.controls.annot_var.currentText(), gender.name)\n        self.assertEqual(w.controls.color_var.currentText(), thal.name)\n        self.assertSelectedIndices(indices, data=self.heart, widget=w)\n\n    def test_sparse_data(self):\n        table = Table(\"iris\").to_sparse()\n        self.assertTrue(sp.issparse(table.X))\n        self.send_signal(self.widget.Inputs.data, table)\n        self.send_signal(self.widget.Inputs.data_subset, table[::30])\n        self.assertEqual(len(self.widget.subset_indices), 5)\n\n    def test_hidden_vars(self):\n        data = Table(\"iris\")\n        data.domain.attributes[0].attributes[\"hidden\"] = True\n        self.send_signal(self.widget.Inputs.data, data)\n        controls = self.widget.controls\n        self.assertEqual(controls.selected_var.currentText(), \"sepal width\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 3)\n\n    def test_send_report(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.widget.report_button.click()\n        self.send_signal(self.widget.Inputs.data, None)\n        self.widget.report_button.click()\n\n    def test_visual_settings(self):\n        graph = self.widget.graph\n        font = QFont()\n        font.setItalic(True)\n        font.setFamily(\"Helvetica\")\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        key, value = (\"Fonts\", \"Font family\", \"Font family\"), \"Helvetica\"\n        self.widget.set_visual_settings(key, value)\n\n        key, value = (\"Fonts\", \"Title\", \"Font size\"), 20\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Title\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(20)\n        self.assertFontEqual(\n            graph.parameter_setter.title_item.item.font(), font\n        )\n\n        key, value = (\"Fonts\", \"Axis title\", \"Font size\"), 16\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Axis title\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(16)\n        for item in graph.parameter_setter.axis_items:\n            self.assertFontEqual(item.label.font(), font)\n\n        key, value = (\"Fonts\", \"Axis ticks\", \"Font size\"), 15\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Axis ticks\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(15)\n        for item in graph.parameter_setter.axis_items:\n            self.assertFontEqual(item.style[\"tickFont\"], font)\n\n        key, value = (\"Fonts\", \"Legend\", \"Font size\"), 14\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Legend\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(14)\n        legend_item = list(graph.parameter_setter.legend_items)[0]\n        self.assertFontEqual(legend_item[1].item.font(), font)\n\n        key, value = (\"Annotations\", \"Title\", \"Title\"), \"Foo\"\n        self.widget.set_visual_settings(key, value)\n        self.assertEqual(\n            graph.parameter_setter.title_item.item.toPlainText(), \"Foo\"\n        )\n        self.assertEqual(graph.parameter_setter.title_item.text, \"Foo\")\n\n        key, value = (\"Figure\", \"Gridlines\", \"Show\"), False\n        self.assertTrue(graph.getAxis(\"left\").grid)\n        self.widget.set_visual_settings(key, value)\n        self.assertFalse(graph.getAxis(\"left\").grid)\n\n        key, value = (\"Figure\", \"Bottom axis\", \"Vertical ticks\"), False\n        self.assertTrue(graph.getAxis(\"bottom\").style[\"rotateTicks\"])\n        self.widget.set_visual_settings(key, value)\n        self.assertFalse(graph.getAxis(\"bottom\").style[\"rotateTicks\"])\n\n        key, value = (\"Figure\", \"Group axis\", \"Vertical ticks\"), True\n        self.assertFalse(graph.group_axis.style[\"rotateTicks\"])\n        self.widget.set_visual_settings(key, value)\n        self.assertTrue(graph.group_axis.style[\"rotateTicks\"])\n\n    def assertFontEqual(self, font1, font2):\n        self.assertEqual(font1.family(), font2.family())\n        self.assertEqual(font1.pointSize(), font2.pointSize())\n        self.assertEqual(font1.italic(), font2.italic())\n\n    def assertSelectedIndices(self, indices, data=None, widget=None):\n        if data is None:\n            data = self.data\n        if widget is None:\n            widget = self.widget\n        selected = self.get_output(widget.Outputs.selected_data)\n        np.testing.assert_array_equal(selected.X, data[indices].X)\n\n        indices = self.widget.grouped_indices_inverted\n        self.assertSetEqual(set(widget.graph.selection), set(indices))\n        pens = widget.graph.bar_item.opts[\"pens\"]\n        self.assertTrue(all([pen.style() == Qt.DashLine for i, pen\n                             in enumerate(pens) if i in indices]))\n        self.assertTrue(all([pen.style() == Qt.SolidLine for i, pen\n                             in enumerate(pens) if i not in indices]))",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 18,
                            "end_lineno": 395,
                            "parent": null
                        }
                    ],
                    "added_entities": [
                        {
                            "file_name": "Orange/widgets/visualize/tests/test_owbarplot.py",
                            "type": "method",
                            "name": "TestOWBarPlot.test_annotate_by_enumeration",
                            "content": "class TestOWBarPlot(WidgetTest, WidgetOutputsTestMixin):\n    @classmethod\n    def setUpClass(cls):\n        super().setUpClass()\n        WidgetOutputsTestMixin.init(cls)\n\n        cls.signal_name = \"Data\"\n        cls.signal_data = cls.data\n        cls.titanic = Table(\"titanic\")\n        cls.housing = Table(\"housing\")\n        cls.heart = Table(\"heart_disease\")\n\n    def setUp(self):\n        self.widget = self.create_widget(OWBarPlot)\n\n    def _select_data(self):\n        self.widget.graph.select_by_indices(list(range(0, len(self.data), 5)))\n        return self.widget.selection\n\n    def test_input_no_cont_features(self):\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertTrue(self.widget.Error.no_cont_features.is_shown())\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(self.widget.Error.no_cont_features.is_shown())\n\n    @patch(\"Orange.widgets.visualize.owbarplot.MAX_INSTANCES\", 10)\n    def test_input_to_many_instances(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertTrue(self.widget.Information.too_many_instances.is_shown())\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(self.widget.Information.too_many_instances.is_shown())\n\n    def test_init_attr_values(self):\n        controls = self.widget.controls\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertEqual(controls.selected_var.currentText(), \"age\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 6)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 11)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 12)\n        self.assertEqual(controls.color_var.currentText(),\n                         \"diameter narrowing\")\n        self.assertEqual(controls.color_var.model().rowCount(), 11)\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertEqual(controls.selected_var.currentText(), \"sepal length\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 4)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 3)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 4)\n        self.assertEqual(controls.color_var.currentText(), \"iris\")\n        self.assertEqual(controls.color_var.model().rowCount(), 3)\n\n        self.send_signal(self.widget.Inputs.data, self.housing)\n        self.assertEqual(controls.selected_var.currentText(), \"MEDV\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 15)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 0)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertEqual(controls.selected_var.currentText(), \"age\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 6)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 11)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 12)\n        self.assertEqual(controls.color_var.currentText(),\n                         \"diameter narrowing\")\n        self.assertEqual(controls.color_var.model().rowCount(), 11)\n\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 0)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n    def test_group_axis(self):\n        group_axis = self.widget.graph.group_axis\n        annot_axis = self.widget.graph.getAxis('bottom')\n        controls = self.widget.controls\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertFalse(group_axis.isVisible())\n        self.assertTrue(annot_axis.isVisible())\n\n        simulate.combobox_activate_item(controls.group_var, \"iris\")\n        self.assertTrue(group_axis.isVisible())\n        self.assertFalse(annot_axis.isVisible())\n\n        simulate.combobox_activate_item(controls.annot_var, \"iris\")\n        self.assertTrue(group_axis.isVisible())\n        self.assertTrue(annot_axis.isVisible())\n\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(group_axis.isVisible())\n        self.assertFalse(annot_axis.isVisible())\n\n    def test_annotate_by_enumeration(self):\n        widget = self.widget\n\n        self.send_signal(widget.Inputs.data, self.data)\n        combo = widget.controls.annot_var\n        for i in range(combo.count()):\n            try:\n                simulate.combobox_activate_index(combo, i)\n            except AssertionError:  # skip disabled items\n                pass\n            else:\n                labels = widget.get_labels()\n                self.assertTrue(not labels\n                                or all(isinstance(x, str) for x in labels))\n\n    def test_datasets(self):\n        controls = self.widget.controls\n        for ds in datasets.datasets():\n            self.send_signal(self.widget.Inputs.data, ds)\n            simulate.combobox_run_through_all(controls.selected_var)\n            simulate.combobox_run_through_all(controls.group_var)\n            simulate.combobox_run_through_all(controls.annot_var)\n            simulate.combobox_run_through_all(controls.color_var)\n\n    def test_selection(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertIsNone(self.get_output(self.widget.Outputs.selected_data))\n\n        # Select 0:5\n        sel_indices = list(range(5))\n        self.widget.graph.select_by_indices(sel_indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Shift-select 10:15 (add 10:15 to selection)\n        indices = list(range(10, 15))\n        sel_indices.extend(indices)\n        with self.modifiers(Qt.ShiftModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Select 15:20\n        sel_indices = list(range(15, 20))\n        self.widget.graph.select_by_indices(sel_indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Control-select 10:17 (add 10:15, remove 15:17)\n        indices = list(range(10, 17))\n        sel_indices.extend(indices[:5])\n        sel_indices.remove(15)\n        sel_indices.remove(16)\n        sel_indices = sorted(sel_indices)\n        with self.modifiers(Qt.ControlModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Alt-select 15:30 (remove 17:20)\n        indices = list(range(15, 30))\n        sel_indices.remove(17)\n        sel_indices.remove(18)\n        sel_indices.remove(19)\n        sel_indices = sorted(sel_indices)\n        with self.modifiers(Qt.AltModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n    def test_retain_selection_on_param_change(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        indices = self._select_data()\n        self.assertSelectedIndices(indices)\n\n        controls = self.widget.controls\n        simulate.combobox_run_through_all(controls.selected_var)\n        simulate.combobox_run_through_all(controls.group_var)\n        simulate.combobox_run_through_all(controls.annot_var)\n        simulate.combobox_run_through_all(controls.color_var)\n        self.assertSelectedIndices(indices)\n\n    def test_data_subset(self):\n        subset = list(range(0, 150, 6))\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n        self.send_signal(self.widget.Inputs.data_subset, None)\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n\n    def test_plot_data_subset(self):\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes)]))\n\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        indices = list(range(0, 75, 3))\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes) if i in indices]))\n        self.assertTrue(all([color.alpha() == 50 for i, color\n                             in enumerate(brushes) if i not in indices]))\n\n        self.send_signal(self.widget.Inputs.data_subset, None)\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes)]))\n\n    def test_plot(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.housing)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertIsNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertIsNone(self.widget.graph.bar_item)\n\n    def test_saved_workflow(self):\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        indices = self._select_data()\n        self.assertSelectedIndices(indices, data=self.heart)\n\n        chol = self.heart.domain[\"cholesterol\"]\n        chest = self.heart.domain[\"chest pain\"]\n        gender = self.heart.domain[\"gender\"]\n        thal = self.heart.domain[\"thal\"]\n        controls = self.widget.controls\n        simulate.combobox_activate_item(controls.selected_var, chol.name)\n        simulate.combobox_activate_item(controls.group_var, chest.name)\n        simulate.combobox_activate_item(controls.annot_var, gender.name)\n        simulate.combobox_activate_item(controls.color_var, thal.name)\n\n        settings = self.widget.settingsHandler.pack_data(self.widget)\n        w = self.create_widget(OWBarPlot, stored_settings=settings)\n        self.send_signal(w.Inputs.data, self.heart, widget=w)\n        self.assertEqual(w.controls.selected_var.currentText(), chol.name)\n        self.assertEqual(w.controls.group_var.currentText(), chest.name)\n        self.assertEqual(w.controls.annot_var.currentText(), gender.name)\n        self.assertEqual(w.controls.color_var.currentText(), thal.name)\n        self.assertSelectedIndices(indices, data=self.heart, widget=w)\n\n    def test_sparse_data(self):\n        table = Table(\"iris\").to_sparse()\n        self.assertTrue(sp.issparse(table.X))\n        self.send_signal(self.widget.Inputs.data, table)\n        self.send_signal(self.widget.Inputs.data_subset, table[::30])\n        self.assertEqual(len(self.widget.subset_indices), 5)\n\n    def test_hidden_vars(self):\n        data = Table(\"iris\")\n        data.domain.attributes[0].attributes[\"hidden\"] = True\n        self.send_signal(self.widget.Inputs.data, data)\n        controls = self.widget.controls\n        self.assertEqual(controls.selected_var.currentText(), \"sepal width\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 3)\n\n    def test_send_report(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.widget.report_button.click()\n        self.send_signal(self.widget.Inputs.data, None)\n        self.widget.report_button.click()\n\n    def test_visual_settings(self):\n        graph = self.widget.graph\n        font = QFont()\n        font.setItalic(True)\n        font.setFamily(\"Helvetica\")\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        key, value = (\"Fonts\", \"Font family\", \"Font family\"), \"Helvetica\"\n        self.widget.set_visual_settings(key, value)\n\n        key, value = (\"Fonts\", \"Title\", \"Font size\"), 20\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Title\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(20)\n        self.assertFontEqual(\n            graph.parameter_setter.title_item.item.font(), font\n        )\n\n        key, value = (\"Fonts\", \"Axis title\", \"Font size\"), 16\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Axis title\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(16)\n        for item in graph.parameter_setter.axis_items:\n            self.assertFontEqual(item.label.font(), font)\n\n        key, value = (\"Fonts\", \"Axis ticks\", \"Font size\"), 15\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Axis ticks\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(15)\n        for item in graph.parameter_setter.axis_items:\n            self.assertFontEqual(item.style[\"tickFont\"], font)\n\n        key, value = (\"Fonts\", \"Legend\", \"Font size\"), 14\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Legend\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(14)\n        legend_item = list(graph.parameter_setter.legend_items)[0]\n        self.assertFontEqual(legend_item[1].item.font(), font)\n\n        key, value = (\"Annotations\", \"Title\", \"Title\"), \"Foo\"\n        self.widget.set_visual_settings(key, value)\n        self.assertEqual(\n            graph.parameter_setter.title_item.item.toPlainText(), \"Foo\"\n        )\n        self.assertEqual(graph.parameter_setter.title_item.text, \"Foo\")\n\n        key, value = (\"Figure\", \"Gridlines\", \"Show\"), False\n        self.assertTrue(graph.getAxis(\"left\").grid)\n        self.widget.set_visual_settings(key, value)\n        self.assertFalse(graph.getAxis(\"left\").grid)\n\n        key, value = (\"Figure\", \"Bottom axis\", \"Vertical ticks\"), False\n        self.assertTrue(graph.getAxis(\"bottom\").style[\"rotateTicks\"])\n        self.widget.set_visual_settings(key, value)\n        self.assertFalse(graph.getAxis(\"bottom\").style[\"rotateTicks\"])\n\n        key, value = (\"Figure\", \"Group axis\", \"Vertical ticks\"), True\n        self.assertFalse(graph.group_axis.style[\"rotateTicks\"])\n        self.widget.set_visual_settings(key, value)\n        self.assertTrue(graph.group_axis.style[\"rotateTicks\"])\n\n    def assertFontEqual(self, font1, font2):\n        self.assertEqual(font1.family(), font2.family())\n        self.assertEqual(font1.pointSize(), font2.pointSize())\n        self.assertEqual(font1.italic(), font2.italic())\n\n    def assertSelectedIndices(self, indices, data=None, widget=None):\n        if data is None:\n            data = self.data\n        if widget is None:\n            widget = self.widget\n        selected = self.get_output(widget.Outputs.selected_data)\n        np.testing.assert_array_equal(selected.X, data[indices].X)\n\n        indices = self.widget.grouped_indices_inverted\n        self.assertSetEqual(set(widget.graph.selection), set(indices))\n        pens = widget.graph.bar_item.opts[\"pens\"]\n        self.assertTrue(all([pen.style() == Qt.DashLine for i, pen\n                             in enumerate(pens) if i in indices]))\n        self.assertTrue(all([pen.style() == Qt.SolidLine for i, pen\n                             in enumerate(pens) if i not in indices]))",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 140,
                            "end_lineno": 153,
                            "parent": {
                                "file_name": "Orange/widgets/visualize/tests/test_owbarplot.py",
                                "type": "class",
                                "name": "TestOWBarPlot",
                                "content": "class TestOWBarPlot(WidgetTest, WidgetOutputsTestMixin):\n    @classmethod\n    def setUpClass(cls):\n        super().setUpClass()\n        WidgetOutputsTestMixin.init(cls)\n\n        cls.signal_name = \"Data\"\n        cls.signal_data = cls.data\n        cls.titanic = Table(\"titanic\")\n        cls.housing = Table(\"housing\")\n        cls.heart = Table(\"heart_disease\")\n\n    def setUp(self):\n        self.widget = self.create_widget(OWBarPlot)\n\n    def _select_data(self):\n        self.widget.graph.select_by_indices(list(range(0, len(self.data), 5)))\n        return self.widget.selection\n\n    def test_input_no_cont_features(self):\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertTrue(self.widget.Error.no_cont_features.is_shown())\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(self.widget.Error.no_cont_features.is_shown())\n\n    @patch(\"Orange.widgets.visualize.owbarplot.MAX_INSTANCES\", 10)\n    def test_input_to_many_instances(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertTrue(self.widget.Information.too_many_instances.is_shown())\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(self.widget.Information.too_many_instances.is_shown())\n\n    def test_init_attr_values(self):\n        controls = self.widget.controls\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertEqual(controls.selected_var.currentText(), \"age\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 6)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 11)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 12)\n        self.assertEqual(controls.color_var.currentText(),\n                         \"diameter narrowing\")\n        self.assertEqual(controls.color_var.model().rowCount(), 11)\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertEqual(controls.selected_var.currentText(), \"sepal length\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 4)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 3)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 4)\n        self.assertEqual(controls.color_var.currentText(), \"iris\")\n        self.assertEqual(controls.color_var.model().rowCount(), 3)\n\n        self.send_signal(self.widget.Inputs.data, self.housing)\n        self.assertEqual(controls.selected_var.currentText(), \"MEDV\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 15)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 0)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertEqual(controls.selected_var.currentText(), \"age\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 6)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 11)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 12)\n        self.assertEqual(controls.color_var.currentText(),\n                         \"diameter narrowing\")\n        self.assertEqual(controls.color_var.model().rowCount(), 11)\n\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 0)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n    def test_group_axis(self):\n        group_axis = self.widget.graph.group_axis\n        annot_axis = self.widget.graph.getAxis('bottom')\n        controls = self.widget.controls\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertFalse(group_axis.isVisible())\n        self.assertTrue(annot_axis.isVisible())\n\n        simulate.combobox_activate_item(controls.group_var, \"iris\")\n        self.assertTrue(group_axis.isVisible())\n        self.assertFalse(annot_axis.isVisible())\n\n        simulate.combobox_activate_item(controls.annot_var, \"iris\")\n        self.assertTrue(group_axis.isVisible())\n        self.assertTrue(annot_axis.isVisible())\n\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(group_axis.isVisible())\n        self.assertFalse(annot_axis.isVisible())\n\n    def test_annotate_by_enumeration(self):\n        widget = self.widget\n\n        self.send_signal(widget.Inputs.data, self.data)\n        combo = widget.controls.annot_var\n        for i in range(combo.count()):\n            try:\n                simulate.combobox_activate_index(combo, i)\n            except AssertionError:  # skip disabled items\n                pass\n            else:\n                labels = widget.get_labels()\n                self.assertTrue(not labels\n                                or all(isinstance(x, str) for x in labels))\n\n    def test_datasets(self):\n        controls = self.widget.controls\n        for ds in datasets.datasets():\n            self.send_signal(self.widget.Inputs.data, ds)\n            simulate.combobox_run_through_all(controls.selected_var)\n            simulate.combobox_run_through_all(controls.group_var)\n            simulate.combobox_run_through_all(controls.annot_var)\n            simulate.combobox_run_through_all(controls.color_var)\n\n    def test_selection(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertIsNone(self.get_output(self.widget.Outputs.selected_data))\n\n        # Select 0:5\n        sel_indices = list(range(5))\n        self.widget.graph.select_by_indices(sel_indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Shift-select 10:15 (add 10:15 to selection)\n        indices = list(range(10, 15))\n        sel_indices.extend(indices)\n        with self.modifiers(Qt.ShiftModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Select 15:20\n        sel_indices = list(range(15, 20))\n        self.widget.graph.select_by_indices(sel_indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Control-select 10:17 (add 10:15, remove 15:17)\n        indices = list(range(10, 17))\n        sel_indices.extend(indices[:5])\n        sel_indices.remove(15)\n        sel_indices.remove(16)\n        sel_indices = sorted(sel_indices)\n        with self.modifiers(Qt.ControlModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Alt-select 15:30 (remove 17:20)\n        indices = list(range(15, 30))\n        sel_indices.remove(17)\n        sel_indices.remove(18)\n        sel_indices.remove(19)\n        sel_indices = sorted(sel_indices)\n        with self.modifiers(Qt.AltModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n    def test_retain_selection_on_param_change(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        indices = self._select_data()\n        self.assertSelectedIndices(indices)\n\n        controls = self.widget.controls\n        simulate.combobox_run_through_all(controls.selected_var)\n        simulate.combobox_run_through_all(controls.group_var)\n        simulate.combobox_run_through_all(controls.annot_var)\n        simulate.combobox_run_through_all(controls.color_var)\n        self.assertSelectedIndices(indices)\n\n    def test_data_subset(self):\n        subset = list(range(0, 150, 6))\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n        self.send_signal(self.widget.Inputs.data_subset, None)\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n\n    def test_plot_data_subset(self):\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes)]))\n\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        indices = list(range(0, 75, 3))\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes) if i in indices]))\n        self.assertTrue(all([color.alpha() == 50 for i, color\n                             in enumerate(brushes) if i not in indices]))\n\n        self.send_signal(self.widget.Inputs.data_subset, None)\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes)]))\n\n    def test_plot(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.housing)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertIsNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertIsNone(self.widget.graph.bar_item)\n\n    def test_saved_workflow(self):\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        indices = self._select_data()\n        self.assertSelectedIndices(indices, data=self.heart)\n\n        chol = self.heart.domain[\"cholesterol\"]\n        chest = self.heart.domain[\"chest pain\"]\n        gender = self.heart.domain[\"gender\"]\n        thal = self.heart.domain[\"thal\"]\n        controls = self.widget.controls\n        simulate.combobox_activate_item(controls.selected_var, chol.name)\n        simulate.combobox_activate_item(controls.group_var, chest.name)\n        simulate.combobox_activate_item(controls.annot_var, gender.name)\n        simulate.combobox_activate_item(controls.color_var, thal.name)\n\n        settings = self.widget.settingsHandler.pack_data(self.widget)\n        w = self.create_widget(OWBarPlot, stored_settings=settings)\n        self.send_signal(w.Inputs.data, self.heart, widget=w)\n        self.assertEqual(w.controls.selected_var.currentText(), chol.name)\n        self.assertEqual(w.controls.group_var.currentText(), chest.name)\n        self.assertEqual(w.controls.annot_var.currentText(), gender.name)\n        self.assertEqual(w.controls.color_var.currentText(), thal.name)\n        self.assertSelectedIndices(indices, data=self.heart, widget=w)\n\n    def test_sparse_data(self):\n        table = Table(\"iris\").to_sparse()\n        self.assertTrue(sp.issparse(table.X))\n        self.send_signal(self.widget.Inputs.data, table)\n        self.send_signal(self.widget.Inputs.data_subset, table[::30])\n        self.assertEqual(len(self.widget.subset_indices), 5)\n\n    def test_hidden_vars(self):\n        data = Table(\"iris\")\n        data.domain.attributes[0].attributes[\"hidden\"] = True\n        self.send_signal(self.widget.Inputs.data, data)\n        controls = self.widget.controls\n        self.assertEqual(controls.selected_var.currentText(), \"sepal width\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 3)\n\n    def test_send_report(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.widget.report_button.click()\n        self.send_signal(self.widget.Inputs.data, None)\n        self.widget.report_button.click()\n\n    def test_visual_settings(self):\n        graph = self.widget.graph\n        font = QFont()\n        font.setItalic(True)\n        font.setFamily(\"Helvetica\")\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        key, value = (\"Fonts\", \"Font family\", \"Font family\"), \"Helvetica\"\n        self.widget.set_visual_settings(key, value)\n\n        key, value = (\"Fonts\", \"Title\", \"Font size\"), 20\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Title\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(20)\n        self.assertFontEqual(\n            graph.parameter_setter.title_item.item.font(), font\n        )\n\n        key, value = (\"Fonts\", \"Axis title\", \"Font size\"), 16\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Axis title\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(16)\n        for item in graph.parameter_setter.axis_items:\n            self.assertFontEqual(item.label.font(), font)\n\n        key, value = (\"Fonts\", \"Axis ticks\", \"Font size\"), 15\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Axis ticks\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(15)\n        for item in graph.parameter_setter.axis_items:\n            self.assertFontEqual(item.style[\"tickFont\"], font)\n\n        key, value = (\"Fonts\", \"Legend\", \"Font size\"), 14\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Legend\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(14)\n        legend_item = list(graph.parameter_setter.legend_items)[0]\n        self.assertFontEqual(legend_item[1].item.font(), font)\n\n        key, value = (\"Annotations\", \"Title\", \"Title\"), \"Foo\"\n        self.widget.set_visual_settings(key, value)\n        self.assertEqual(\n            graph.parameter_setter.title_item.item.toPlainText(), \"Foo\"\n        )\n        self.assertEqual(graph.parameter_setter.title_item.text, \"Foo\")\n\n        key, value = (\"Figure\", \"Gridlines\", \"Show\"), False\n        self.assertTrue(graph.getAxis(\"left\").grid)\n        self.widget.set_visual_settings(key, value)\n        self.assertFalse(graph.getAxis(\"left\").grid)\n\n        key, value = (\"Figure\", \"Bottom axis\", \"Vertical ticks\"), False\n        self.assertTrue(graph.getAxis(\"bottom\").style[\"rotateTicks\"])\n        self.widget.set_visual_settings(key, value)\n        self.assertFalse(graph.getAxis(\"bottom\").style[\"rotateTicks\"])\n\n        key, value = (\"Figure\", \"Group axis\", \"Vertical ticks\"), True\n        self.assertFalse(graph.group_axis.style[\"rotateTicks\"])\n        self.widget.set_visual_settings(key, value)\n        self.assertTrue(graph.group_axis.style[\"rotateTicks\"])\n\n    def assertFontEqual(self, font1, font2):\n        self.assertEqual(font1.family(), font2.family())\n        self.assertEqual(font1.pointSize(), font2.pointSize())\n        self.assertEqual(font1.italic(), font2.italic())\n\n    def assertSelectedIndices(self, indices, data=None, widget=None):\n        if data is None:\n            data = self.data\n        if widget is None:\n            widget = self.widget\n        selected = self.get_output(widget.Outputs.selected_data)\n        np.testing.assert_array_equal(selected.X, data[indices].X)\n\n        indices = self.widget.grouped_indices_inverted\n        self.assertSetEqual(set(widget.graph.selection), set(indices))\n        pens = widget.graph.bar_item.opts[\"pens\"]\n        self.assertTrue(all([pen.style() == Qt.DashLine for i, pen\n                             in enumerate(pens) if i in indices]))\n        self.assertTrue(all([pen.style() == Qt.SolidLine for i, pen\n                             in enumerate(pens) if i not in indices]))",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 18,
                                "end_lineno": 395,
                                "parent": null
                            }
                        }
                    ],
                    "deleted_entities": []
                }
            ]
        }
    ],
    "old_commit_hash": "d352fe2113bf4b7aaa0b80c97955739a8a2b38c7^",
    "new_commit_hash": "d352fe2113bf4b7aaa0b80c97955739a8a2b38c7",
    "commit_message": "Merge pull request #6270 from janezd/barplot-annotation-enumerate\n\n[FIX] Bar Plot: Fix annotation by enumeration",
    "commit_date": "2022-12-23T10:44:05+01:00",
    "metadata": {}
}
{
    "repo_name": "orange3",
    "new_commit_hash": "d352fe2113bf4b7aaa0b80c97955739a8a2b38c7",
    "test_file_codes": [
        "# Test methods with long descriptive names can omit docstrings\n# pylint: disable=missing-docstring,protected-access\nimport unittest\nfrom unittest.mock import patch\n\nimport numpy as np\nimport scipy.sparse as sp\n\nfrom AnyQt.QtCore import Qt\nfrom AnyQt.QtGui import QFont\n\nfrom Orange.data import Table\nfrom Orange.widgets.tests.base import WidgetTest, simulate, \\\n    WidgetOutputsTestMixin, datasets\nfrom Orange.widgets.visualize.owbarplot import OWBarPlot\n\n\nclass TestOWBarPlot(WidgetTest, WidgetOutputsTestMixin):\n    @classmethod\n    def setUpClass(cls):\n        super().setUpClass()\n        WidgetOutputsTestMixin.init(cls)\n\n        cls.signal_name = \"Data\"\n        cls.signal_data = cls.data\n        cls.titanic = Table(\"titanic\")\n        cls.housing = Table(\"housing\")\n        cls.heart = Table(\"heart_disease\")\n\n    def setUp(self):\n        self.widget = self.create_widget(OWBarPlot)\n\n    def _select_data(self):\n        self.widget.graph.select_by_indices(list(range(0, len(self.data), 5)))\n        return self.widget.selection\n\n    def test_input_no_cont_features(self):\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertTrue(self.widget.Error.no_cont_features.is_shown())\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(self.widget.Error.no_cont_features.is_shown())\n\n    @patch(\"Orange.widgets.visualize.owbarplot.MAX_INSTANCES\", 10)\n    def test_input_to_many_instances(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertTrue(self.widget.Information.too_many_instances.is_shown())\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(self.widget.Information.too_many_instances.is_shown())\n\n    def test_init_attr_values(self):\n        controls = self.widget.controls\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertEqual(controls.selected_var.currentText(), \"age\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 6)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 11)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 12)\n        self.assertEqual(controls.color_var.currentText(),\n                         \"diameter narrowing\")\n        self.assertEqual(controls.color_var.model().rowCount(), 11)\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertEqual(controls.selected_var.currentText(), \"sepal length\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 4)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 3)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 4)\n        self.assertEqual(controls.color_var.currentText(), \"iris\")\n        self.assertEqual(controls.color_var.model().rowCount(), 3)\n\n        self.send_signal(self.widget.Inputs.data, self.housing)\n        self.assertEqual(controls.selected_var.currentText(), \"MEDV\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 15)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 0)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertEqual(controls.selected_var.currentText(), \"age\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 6)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 11)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 12)\n        self.assertEqual(controls.color_var.currentText(),\n                         \"diameter narrowing\")\n        self.assertEqual(controls.color_var.model().rowCount(), 11)\n\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertEqual(controls.selected_var.currentText(), \"\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 0)\n        self.assertEqual(controls.group_var.currentText(), \"None\")\n        self.assertEqual(controls.group_var.model().rowCount(), 1)\n        self.assertEqual(controls.annot_var.currentText(), \"None\")\n        self.assertEqual(controls.annot_var.model().rowCount(), 2)\n        self.assertEqual(controls.color_var.currentText(), \"(Same color)\")\n        self.assertEqual(controls.color_var.model().rowCount(), 1)\n\n    def test_group_axis(self):\n        group_axis = self.widget.graph.group_axis\n        annot_axis = self.widget.graph.getAxis('bottom')\n        controls = self.widget.controls\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertFalse(group_axis.isVisible())\n        self.assertTrue(annot_axis.isVisible())\n\n        simulate.combobox_activate_item(controls.group_var, \"iris\")\n        self.assertTrue(group_axis.isVisible())\n        self.assertFalse(annot_axis.isVisible())\n\n        simulate.combobox_activate_item(controls.annot_var, \"iris\")\n        self.assertTrue(group_axis.isVisible())\n        self.assertTrue(annot_axis.isVisible())\n\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertFalse(group_axis.isVisible())\n        self.assertFalse(annot_axis.isVisible())\n\n    def test_annotate_by_enumeration(self):\n        widget = self.widget\n\n        self.send_signal(widget.Inputs.data, self.data)\n        combo = widget.controls.annot_var\n        for i in range(combo.count()):\n            try:\n                simulate.combobox_activate_index(combo, i)\n            except AssertionError:  # skip disabled items\n                pass\n            else:\n                labels = widget.get_labels()\n                self.assertTrue(not labels\n                                or all(isinstance(x, str) for x in labels))\n\n    def test_datasets(self):\n        controls = self.widget.controls\n        for ds in datasets.datasets():\n            self.send_signal(self.widget.Inputs.data, ds)\n            simulate.combobox_run_through_all(controls.selected_var)\n            simulate.combobox_run_through_all(controls.group_var)\n            simulate.combobox_run_through_all(controls.annot_var)\n            simulate.combobox_run_through_all(controls.color_var)\n\n    def test_selection(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertIsNone(self.get_output(self.widget.Outputs.selected_data))\n\n        # Select 0:5\n        sel_indices = list(range(5))\n        self.widget.graph.select_by_indices(sel_indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Shift-select 10:15 (add 10:15 to selection)\n        indices = list(range(10, 15))\n        sel_indices.extend(indices)\n        with self.modifiers(Qt.ShiftModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Select 15:20\n        sel_indices = list(range(15, 20))\n        self.widget.graph.select_by_indices(sel_indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Control-select 10:17 (add 10:15, remove 15:17)\n        indices = list(range(10, 17))\n        sel_indices.extend(indices[:5])\n        sel_indices.remove(15)\n        sel_indices.remove(16)\n        sel_indices = sorted(sel_indices)\n        with self.modifiers(Qt.ControlModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n        # Alt-select 15:30 (remove 17:20)\n        indices = list(range(15, 30))\n        sel_indices.remove(17)\n        sel_indices.remove(18)\n        sel_indices.remove(19)\n        sel_indices = sorted(sel_indices)\n        with self.modifiers(Qt.AltModifier):\n            self.widget.graph.select_by_indices(indices)\n        self.assertSelectedIndices(sel_indices)\n\n    def test_retain_selection_on_param_change(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        indices = self._select_data()\n        self.assertSelectedIndices(indices)\n\n        controls = self.widget.controls\n        simulate.combobox_run_through_all(controls.selected_var)\n        simulate.combobox_run_through_all(controls.group_var)\n        simulate.combobox_run_through_all(controls.annot_var)\n        simulate.combobox_run_through_all(controls.color_var)\n        self.assertSelectedIndices(indices)\n\n    def test_data_subset(self):\n        subset = list(range(0, 150, 6))\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n        self.send_signal(self.widget.Inputs.data_subset, None)\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertListEqual(self.widget.subset_indices, [])\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        self.assertListEqual(self.widget.subset_indices,\n                             list(self.data[subset].ids))\n\n    def test_plot_data_subset(self):\n        self.send_signal(self.widget.Inputs.data, self.data[::2])\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes)]))\n\n        self.send_signal(self.widget.Inputs.data_subset, self.data[::3])\n        indices = list(range(0, 75, 3))\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes) if i in indices]))\n        self.assertTrue(all([color.alpha() == 50 for i, color\n                             in enumerate(brushes) if i not in indices]))\n\n        self.send_signal(self.widget.Inputs.data_subset, None)\n        brushes = self.widget.graph.bar_item.opts[\"brushes\"]\n        self.assertTrue(all([color.alpha() == 255 for i, color\n                             in enumerate(brushes)]))\n\n    def test_plot(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.housing)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.titanic)\n        self.assertIsNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        self.assertIsNotNone(self.widget.graph.bar_item)\n        self.send_signal(self.widget.Inputs.data, None)\n        self.assertIsNone(self.widget.graph.bar_item)\n\n    def test_saved_workflow(self):\n        self.send_signal(self.widget.Inputs.data, self.heart)\n        indices = self._select_data()\n        self.assertSelectedIndices(indices, data=self.heart)\n\n        chol = self.heart.domain[\"cholesterol\"]\n        chest = self.heart.domain[\"chest pain\"]\n        gender = self.heart.domain[\"gender\"]\n        thal = self.heart.domain[\"thal\"]\n        controls = self.widget.controls\n        simulate.combobox_activate_item(controls.selected_var, chol.name)\n        simulate.combobox_activate_item(controls.group_var, chest.name)\n        simulate.combobox_activate_item(controls.annot_var, gender.name)\n        simulate.combobox_activate_item(controls.color_var, thal.name)\n\n        settings = self.widget.settingsHandler.pack_data(self.widget)\n        w = self.create_widget(OWBarPlot, stored_settings=settings)\n        self.send_signal(w.Inputs.data, self.heart, widget=w)\n        self.assertEqual(w.controls.selected_var.currentText(), chol.name)\n        self.assertEqual(w.controls.group_var.currentText(), chest.name)\n        self.assertEqual(w.controls.annot_var.currentText(), gender.name)\n        self.assertEqual(w.controls.color_var.currentText(), thal.name)\n        self.assertSelectedIndices(indices, data=self.heart, widget=w)\n\n    def test_sparse_data(self):\n        table = Table(\"iris\").to_sparse()\n        self.assertTrue(sp.issparse(table.X))\n        self.send_signal(self.widget.Inputs.data, table)\n        self.send_signal(self.widget.Inputs.data_subset, table[::30])\n        self.assertEqual(len(self.widget.subset_indices), 5)\n\n    def test_hidden_vars(self):\n        data = Table(\"iris\")\n        data.domain.attributes[0].attributes[\"hidden\"] = True\n        self.send_signal(self.widget.Inputs.data, data)\n        controls = self.widget.controls\n        self.assertEqual(controls.selected_var.currentText(), \"sepal width\")\n        self.assertEqual(controls.selected_var.model().rowCount(), 3)\n\n    def test_send_report(self):\n        self.send_signal(self.widget.Inputs.data, self.data)\n        self.widget.report_button.click()\n        self.send_signal(self.widget.Inputs.data, None)\n        self.widget.report_button.click()\n\n    def test_visual_settings(self):\n        graph = self.widget.graph\n        font = QFont()\n        font.setItalic(True)\n        font.setFamily(\"Helvetica\")\n\n        self.send_signal(self.widget.Inputs.data, self.data)\n        key, value = (\"Fonts\", \"Font family\", \"Font family\"), \"Helvetica\"\n        self.widget.set_visual_settings(key, value)\n\n        key, value = (\"Fonts\", \"Title\", \"Font size\"), 20\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Title\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(20)\n        self.assertFontEqual(\n            graph.parameter_setter.title_item.item.font(), font\n        )\n\n        key, value = (\"Fonts\", \"Axis title\", \"Font size\"), 16\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Axis title\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(16)\n        for item in graph.parameter_setter.axis_items:\n            self.assertFontEqual(item.label.font(), font)\n\n        key, value = (\"Fonts\", \"Axis ticks\", \"Font size\"), 15\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Axis ticks\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(15)\n        for item in graph.parameter_setter.axis_items:\n            self.assertFontEqual(item.style[\"tickFont\"], font)\n\n        key, value = (\"Fonts\", \"Legend\", \"Font size\"), 14\n        self.widget.set_visual_settings(key, value)\n        key, value = (\"Fonts\", \"Legend\", \"Italic\"), True\n        self.widget.set_visual_settings(key, value)\n        font.setPointSize(14)\n        legend_item = list(graph.parameter_setter.legend_items)[0]\n        self.assertFontEqual(legend_item[1].item.font(), font)\n\n        key, value = (\"Annotations\", \"Title\", \"Title\"), \"Foo\"\n        self.widget.set_visual_settings(key, value)\n        self.assertEqual(\n            graph.parameter_setter.title_item.item.toPlainText(), \"Foo\"\n        )\n        self.assertEqual(graph.parameter_setter.title_item.text, \"Foo\")\n\n        key, value = (\"Figure\", \"Gridlines\", \"Show\"), False\n        self.assertTrue(graph.getAxis(\"left\").grid)\n        self.widget.set_visual_settings(key, value)\n        self.assertFalse(graph.getAxis(\"left\").grid)\n\n        key, value = (\"Figure\", \"Bottom axis\", \"Vertical ticks\"), False\n        self.assertTrue(graph.getAxis(\"bottom\").style[\"rotateTicks\"])\n        self.widget.set_visual_settings(key, value)\n        self.assertFalse(graph.getAxis(\"bottom\").style[\"rotateTicks\"])\n\n        key, value = (\"Figure\", \"Group axis\", \"Vertical ticks\"), True\n        self.assertFalse(graph.group_axis.style[\"rotateTicks\"])\n        self.widget.set_visual_settings(key, value)\n        self.assertTrue(graph.group_axis.style[\"rotateTicks\"])\n\n    def assertFontEqual(self, font1, font2):\n        self.assertEqual(font1.family(), font2.family())\n        self.assertEqual(font1.pointSize(), font2.pointSize())\n        self.assertEqual(font1.italic(), font2.italic())\n\n    def assertSelectedIndices(self, indices, data=None, widget=None):\n        if data is None:\n            data = self.data\n        if widget is None:\n            widget = self.widget\n        selected = self.get_output(widget.Outputs.selected_data)\n        np.testing.assert_array_equal(selected.X, data[indices].X)\n\n        indices = self.widget.grouped_indices_inverted\n        self.assertSetEqual(set(widget.graph.selection), set(indices))\n        pens = widget.graph.bar_item.opts[\"pens\"]\n        self.assertTrue(all([pen.style() == Qt.DashLine for i, pen\n                             in enumerate(pens) if i in indices]))\n        self.assertTrue(all([pen.style() == Qt.SolidLine for i, pen\n                             in enumerate(pens) if i not in indices]))\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
    ],
    "test_file_names": [
        "test_1.py"
    ],
    "setup_res_code": 0,
    "setup_res_stdout": "Starting Orange installation attempts...\nAttempting installation with Python 3.7...\nrunning build_ext\nCompiling Orange/classification/_tree_scorers.pyx because it changed.\nCompiling Orange/data/_contingency.pyx because it changed.\nCompiling Orange/data/_io.pyx because it changed.\nCompiling Orange/data/_valuecount.pyx because it changed.\nCompiling Orange/data/_variable.pyx because it changed.\nCompiling Orange/distance/_distance.pyx because it changed.\nCompiling Orange/preprocess/_discretize.pyx because it changed.\nCompiling Orange/preprocess/_relieff.pyx because it changed.\nCompiling Orange/projection/_som.pyx because it changed.\n[1/9] Cythonizing Orange/classification/_tree_scorers.pyx\n[2/9] Cythonizing Orange/data/_contingency.pyx\n[3/9] Cythonizing Orange/data/_io.pyx\n[4/9] Cythonizing Orange/data/_valuecount.pyx\n[5/9] Cythonizing Orange/data/_variable.pyx\n[6/9] Cythonizing Orange/distance/_distance.pyx\n[7/9] Cythonizing Orange/preprocess/_discretize.pyx\n[8/9] Cythonizing Orange/preprocess/_relieff.pyx\n[9/9] Cythonizing Orange/projection/_som.pyx\nbuilding 'Orange.classification._tree_scorers' extension\ncreating build\ncreating build/temp.linux-x86_64-3.7\ncreating build/temp.linux-x86_64-3.7/Orange\ncreating build/temp.linux-x86_64-3.7/Orange/classification\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/classification/_tree_scorers.c -o build/temp.linux-x86_64-3.7/Orange/classification/_tree_scorers.o\ncreating build/lib.linux-x86_64-3.7\ncreating build/lib.linux-x86_64-3.7/Orange\ncreating build/lib.linux-x86_64-3.7/Orange/classification\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/classification/_tree_scorers.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/classification/_tree_scorers.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._contingency' extension\ncreating build/temp.linux-x86_64-3.7/Orange/data\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/data/_contingency.c -o build/temp.linux-x86_64-3.7/Orange/data/_contingency.o\ncreating build/lib.linux-x86_64-3.7/Orange/data\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/data/_contingency.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/data/_contingency.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._io' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/data/_io.c -o build/temp.linux-x86_64-3.7/Orange/data/_io.o\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/data/_io.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/data/_io.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._valuecount' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/data/_valuecount.c -o build/temp.linux-x86_64-3.7/Orange/data/_valuecount.o\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/data/_valuecount.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/data/_valuecount.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._variable' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/data/_variable.c -o build/temp.linux-x86_64-3.7/Orange/data/_variable.o\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/data/_variable.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/data/_variable.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.distance._distance' extension\ncreating build/temp.linux-x86_64-3.7/Orange/distance\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/distance/_distance.c -o build/temp.linux-x86_64-3.7/Orange/distance/_distance.o\ncreating build/lib.linux-x86_64-3.7/Orange/distance\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/distance/_distance.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/distance/_distance.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.preprocess._discretize' extension\ncreating build/temp.linux-x86_64-3.7/Orange/preprocess\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/preprocess/_discretize.c -o build/temp.linux-x86_64-3.7/Orange/preprocess/_discretize.o\ncreating build/lib.linux-x86_64-3.7/Orange/preprocess\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/preprocess/_discretize.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/preprocess/_discretize.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.preprocess._relieff' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/preprocess/_relieff.cpp -o build/temp.linux-x86_64-3.7/Orange/preprocess/_relieff.o\nc++ -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/preprocess/_relieff.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/preprocess/_relieff.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.projection._som' extension\ncreating build/temp.linux-x86_64-3.7/Orange/projection\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/projection/_som.c -o build/temp.linux-x86_64-3.7/Orange/projection/_som.o\ncreating build/lib.linux-x86_64-3.7/Orange/projection\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/projection/_som.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/projection/_som.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.classification._simple_tree' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/classification/_simple_tree.c -o build/temp.linux-x86_64-3.7/Orange/classification/_simple_tree.o\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/classification/_simple_tree.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/classification/_simple_tree.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.widgets.utils._grid_density' extension\ncreating build/temp.linux-x86_64-3.7/Orange/widgets\ncreating build/temp.linux-x86_64-3.7/Orange/widgets/utils\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/widgets/utils/_grid_density.cpp -o build/temp.linux-x86_64-3.7/Orange/widgets/utils/_grid_density.o\ncreating build/lib.linux-x86_64-3.7/Orange/widgets\ncreating build/lib.linux-x86_64-3.7/Orange/widgets/utils\nc++ -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/widgets/utils/_grid_density.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/widgets/utils/_grid_density.cpython-37m-x86_64-linux-gnu.so\ncopying build/lib.linux-x86_64-3.7/Orange/classification/_tree_scorers.cpython-37m-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-3.7/Orange/data/_contingency.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_io.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_valuecount.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_variable.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/distance/_distance.cpython-37m-x86_64-linux-gnu.so -> Orange/distance\ncopying build/lib.linux-x86_64-3.7/Orange/preprocess/_discretize.cpython-37m-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-3.7/Orange/preprocess/_relieff.cpython-37m-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-3.7/Orange/projection/_som.cpython-37m-x86_64-linux-gnu.so -> Orange/projection\ncopying build/lib.linux-x86_64-3.7/Orange/classification/_simple_tree.cpython-37m-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-3.7/Orange/widgets/utils/_grid_density.cpython-37m-x86_64-linux-gnu.so -> Orange/widgets/utils\nrunning develop\nrunning egg_info\ncreating Orange3.egg-info\nwriting Orange3.egg-info/PKG-INFO\nwriting dependency_links to Orange3.egg-info/dependency_links.txt\nwriting entry points to Orange3.egg-info/entry_points.txt\nwriting requirements to Orange3.egg-info/requires.txt\nwriting top-level names to Orange3.egg-info/top_level.txt\nwriting manifest file 'Orange3.egg-info/SOURCES.txt'\nreading manifest file 'Orange3.egg-info/SOURCES.txt'\nreading manifest template 'MANIFEST.in'\nadding license file 'LICENSE'\nwriting manifest file 'Orange3.egg-info/SOURCES.txt'\nrunning build_ext\ncopying build/lib.linux-x86_64-3.7/Orange/classification/_tree_scorers.cpython-37m-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-3.7/Orange/data/_contingency.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_io.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_valuecount.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_variable.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/distance/_distance.cpython-37m-x86_64-linux-gnu.so -> Orange/distance\ncopying build/lib.linux-x86_64-3.7/Orange/preprocess/_discretize.cpython-37m-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-3.7/Orange/preprocess/_relieff.cpython-37m-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-3.7/Orange/projection/_som.cpython-37m-x86_64-linux-gnu.so -> Orange/projection\ncopying build/lib.linux-x86_64-3.7/Orange/classification/_simple_tree.cpython-37m-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-3.7/Orange/widgets/utils/_grid_density.cpython-37m-x86_64-linux-gnu.so -> Orange/widgets/utils\nCreating /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/Orange3.egg-link (link to .)\nAdding Orange3 3.35.0.dev0+d352fe2 to easy-install.pth file\nInstalling orange-canvas script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7\nProcessing dependencies for Orange3==3.35.0.dev0+d352fe2\nSearching for xlsxwriter\nReading https://pypi.org/simple/xlsxwriter/\nDownloading https://files.pythonhosted.org/packages/a7/ea/53d1fe468e63e092cf16e2c18d16f50c29851242f9dd12d6a66e0d7f0d02/XlsxWriter-3.2.0-py3-none-any.whl#sha256=ecfd5405b3e0e228219bcaf24c2ca0915e012ca9464a14048021d21a995d490e\nBest match: XlsxWriter 3.2.0\nProcessing XlsxWriter-3.2.0-py3-none-any.whl\nInstalling XlsxWriter-3.2.0-py3-none-any.whl to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages\nAdding XlsxWriter 3.2.0 to easy-install.pth file\nInstalling vba_extract.py script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/XlsxWriter-3.2.0-py3.7.egg\nSearching for xlrd>=1.2.0\nReading https://pypi.org/simple/xlrd/\nDownloading https://files.pythonhosted.org/packages/a6/0c/c2a72d51fe56e08a08acc85d13013558a2d793028ae7385448a6ccdfae64/xlrd-2.0.1-py2.py3-none-any.whl#sha256=6a33ee89877bd9abc1158129f6e94be74e2679636b8a205b43b85206c3f0bbdd\nBest match: xlrd 2.0.1\nProcessing xlrd-2.0.1-py2.py3-none-any.whl\nInstalling xlrd-2.0.1-py2.py3-none-any.whl to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages\nAdding xlrd 2.0.1 to easy-install.pth file\nInstalling runxlrd.py script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/xlrd-2.0.1-py3.7.egg\nSearching for serverfiles\nReading https://pypi.org/simple/serverfiles/\nDownloading https://files.pythonhosted.org/packages/33/36/794fe1c4ed29b0f56a26d72e956baf0285d8fe9e29faf36797a28a8ad45b/serverfiles-0.3.1.tar.gz#sha256=5e10fc32e758791e3735bc08bce2ed4702a83b1e45ab96c5d59cc8aeecfbebe1\nBest match: serverfiles 0.3.1\nProcessing serverfiles-0.3.1.tar.gz\nWriting /tmp/easy_install-b26axxho/serverfiles-0.3.1/setup.cfg\nRunning serverfiles-0.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-b26axxho/serverfiles-0.3.1/egg-dist-tmp-41izi9_r\ncreating /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/serverfiles-0.3.1-py3.7.egg\nExtracting serverfiles-0.3.1-py3.7.egg to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages\nAdding serverfiles 0.3.1 to easy-install.pth file\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/serverfiles-0.3.1-py3.7.egg\nSearching for scipy>=1.9\nReading https://pypi.org/simple/scipy/\nDownloading https://files.pythonhosted.org/packages/d9/7b/2b8ac283cf32465ed08bc20a83d559fe7b174a484781702ba8accea001d6/scipy-1.15.0.tar.gz#sha256=300742e2cc94e36a2880ebe464a1c8b4352a7b0f3e36ec3d2ac006cdbe0219ac\nBest match: scipy 1.15.0\nProcessing scipy-1.15.0.tar.gz\nVerifying Orange installation...\n❌ Orange verification failed\nPython 3.7 installation failed, trying Python 3.8...\nAttempting installation with Python 3.8...\nrunning build_ext\nbuilding 'Orange.classification._tree_scorers' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/classification\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/classification/_tree_scorers.c -o build/temp.linux-x86_64-cpython-38/Orange/classification/_tree_scorers.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/classification\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/classification/_tree_scorers.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/classification/_tree_scorers.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.data._contingency' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/data\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/data/_contingency.c -o build/temp.linux-x86_64-cpython-38/Orange/data/_contingency.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/data\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/data/_contingency.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/data/_contingency.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.data._io' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/data/_io.c -o build/temp.linux-x86_64-cpython-38/Orange/data/_io.o\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/data/_io.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/data/_io.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.data._valuecount' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/data/_valuecount.c -o build/temp.linux-x86_64-cpython-38/Orange/data/_valuecount.o\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/data/_valuecount.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/data/_valuecount.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.data._variable' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/data/_variable.c -o build/temp.linux-x86_64-cpython-38/Orange/data/_variable.o\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/data/_variable.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/data/_variable.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.distance._distance' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/distance\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/distance/_distance.c -o build/temp.linux-x86_64-cpython-38/Orange/distance/_distance.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/distance\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/distance/_distance.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/distance/_distance.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.preprocess._discretize' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/preprocess\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/preprocess/_discretize.c -o build/temp.linux-x86_64-cpython-38/Orange/preprocess/_discretize.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/preprocess\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/preprocess/_discretize.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/preprocess/_discretize.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.preprocess._relieff' extension\nc++ -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/preprocess/_relieff.cpp -o build/temp.linux-x86_64-cpython-38/Orange/preprocess/_relieff.o\nc++ -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -pthread -shared build/temp.linux-x86_64-cpython-38/Orange/preprocess/_relieff.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/preprocess/_relieff.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.projection._som' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/projection\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/projection/_som.c -o build/temp.linux-x86_64-cpython-38/Orange/projection/_som.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/projection\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/projection/_som.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/projection/_som.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.classification._simple_tree' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/classification/_simple_tree.c -o build/temp.linux-x86_64-cpython-38/Orange/classification/_simple_tree.o\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/classification/_simple_tree.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/classification/_simple_tree.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.widgets.utils._grid_density' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/widgets/utils\nc++ -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/widgets/utils/_grid_density.cpp -o build/temp.linux-x86_64-cpython-38/Orange/widgets/utils/_grid_density.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/widgets/utils\nc++ -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -pthread -shared build/temp.linux-x86_64-cpython-38/Orange/widgets/utils/_grid_density.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/widgets/utils/_grid_density.cpython-38-x86_64-linux-gnu.so\ncopying build/lib.linux-x86_64-cpython-38/Orange/classification/_tree_scorers.cpython-38-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_contingency.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_io.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_valuecount.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_variable.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/distance/_distance.cpython-38-x86_64-linux-gnu.so -> Orange/distance\ncopying build/lib.linux-x86_64-cpython-38/Orange/preprocess/_discretize.cpython-38-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-cpython-38/Orange/preprocess/_relieff.cpython-38-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-cpython-38/Orange/projection/_som.cpython-38-x86_64-linux-gnu.so -> Orange/projection\ncopying build/lib.linux-x86_64-cpython-38/Orange/classification/_simple_tree.cpython-38-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-cpython-38/Orange/widgets/utils/_grid_density.cpython-38-x86_64-linux-gnu.so -> Orange/widgets/utils\nrunning develop\nrunning egg_info\nwriting Orange3.egg-info/PKG-INFO\nwriting dependency_links to Orange3.egg-info/dependency_links.txt\nwriting entry points to Orange3.egg-info/entry_points.txt\nwriting requirements to Orange3.egg-info/requires.txt\nwriting top-level names to Orange3.egg-info/top_level.txt\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\nreading manifest file 'Orange3.egg-info/SOURCES.txt'\nreading manifest template 'MANIFEST.in'\nadding license file 'LICENSE'\nwriting manifest file 'Orange3.egg-info/SOURCES.txt'\nrunning build_ext\ncopying build/lib.linux-x86_64-cpython-38/Orange/classification/_tree_scorers.cpython-38-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_contingency.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_io.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_valuecount.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_variable.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/distance/_distance.cpython-38-x86_64-linux-gnu.so -> Orange/distance\ncopying build/lib.linux-x86_64-cpython-38/Orange/preprocess/_discretize.cpython-38-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-cpython-38/Orange/preprocess/_relieff.cpython-38-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-cpython-38/Orange/projection/_som.cpython-38-x86_64-linux-gnu.so -> Orange/projection\ncopying build/lib.linux-x86_64-cpython-38/Orange/classification/_simple_tree.cpython-38-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-cpython-38/Orange/widgets/utils/_grid_density.cpython-38-x86_64-linux-gnu.so -> Orange/widgets/utils\nCreating /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/Orange3.egg-link (link to .)\nAdding Orange3 3.35.0.dev0+d352fe2 to easy-install.pth file\nInstalling orange-canvas script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7\nProcessing dependencies for Orange3==3.35.0.dev0+d352fe2\nSearching for XlsxWriter==3.2.0\nBest match: XlsxWriter 3.2.0\nAdding XlsxWriter 3.2.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for xlrd==2.0.1\nBest match: xlrd 2.0.1\nAdding xlrd 2.0.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for setuptools==75.3.0\nBest match: setuptools 75.3.0\nAdding setuptools 75.3.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for serverfiles==0.3.1\nBest match: serverfiles 0.3.1\nAdding serverfiles 0.3.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for scipy==1.10.1\nBest match: scipy 1.10.1\nAdding scipy 1.10.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for scikit-learn==1.1.3\nBest match: scikit-learn 1.1.3\nAdding scikit-learn 1.1.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for requests==2.32.3\nBest match: requests 2.32.3\nAdding requests 2.32.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for qtconsole==5.6.1\nBest match: qtconsole 5.6.1\nAdding qtconsole 5.6.1 to easy-install.pth file\nInstalling jupyter-qtconsole script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for PyYAML==6.0.2\nBest match: PyYAML 6.0.2\nAdding PyYAML 6.0.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for python-louvain==0.16\nBest match: python-louvain 0.16\nAdding python-louvain 0.16 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for pyqtgraph==0.13.3\nBest match: pyqtgraph 0.13.3\nAdding pyqtgraph 0.13.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for pygments==2.19.1\nBest match: pygments 2.19.1\nAdding pygments 2.19.1 to easy-install.pth file\nInstalling pygmentize script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for pip==24.3.1\nBest match: pip 24.3.1\nAdding pip 24.3.1 to easy-install.pth file\nInstalling pip script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\nInstalling pip3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for pandas==2.0.3\nBest match: pandas 2.0.3\nAdding pandas 2.0.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for orange-widget-base==4.22.0\nBest match: orange-widget-base 4.22.0\nAdding orange-widget-base 4.22.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for orange-canvas-core==0.1.35\nBest match: orange-canvas-core 0.1.35\nAdding orange-canvas-core 0.1.35 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for openpyxl==3.1.5\nBest match: openpyxl 3.1.5\nAdding openpyxl 3.1.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for openTSNE==1.0.1\nBest match: openTSNE 1.0.1\nAdding openTSNE 1.0.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for numpy==1.24.4\nBest match: numpy 1.24.4\nAdding numpy 1.24.4 to easy-install.pth file\nInstalling f2py script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\nInstalling f2py3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\nInstalling f2py3.8 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for networkx==3.1\nBest match: networkx 3.1\nAdding networkx 3.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for matplotlib==3.7.5\nBest match: matplotlib 3.7.5\nAdding matplotlib 3.7.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for keyrings.alt==5.0.2\nBest match: keyrings.alt 5.0.2\nAdding keyrings.alt 5.0.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for keyring==25.5.0\nBest match: keyring 25.5.0\nAdding keyring 25.5.0 to easy-install.pth file\nInstalling keyring script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for joblib==1.4.2\nBest match: joblib 1.4.2\nAdding joblib 1.4.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for httpx==0.28.1\nBest match: httpx 0.28.1\nAdding httpx 0.28.1 to easy-install.pth file\nInstalling httpx script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for chardet==5.2.0\nBest match: chardet 5.2.0\nAdding chardet 5.2.0 to easy-install.pth file\nInstalling chardetect script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for Bottleneck==1.4.0\nBest match: Bottleneck 1.4.0\nAdding Bottleneck 1.4.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for baycomp==1.0.3\nBest match: baycomp 1.0.3\nAdding baycomp 1.0.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for AnyQt==0.2.0\nBest match: AnyQt 0.2.0\nAdding AnyQt 0.2.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for threadpoolctl==3.5.0\nBest match: threadpoolctl 3.5.0\nAdding threadpoolctl 3.5.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for certifi==2024.12.14\nBest match: certifi 2024.12.14\nAdding certifi 2024.12.14 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for urllib3==2.2.3\nBest match: urllib3 2.2.3\nAdding urllib3 2.2.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for idna==3.10\nBest match: idna 3.10\nAdding idna 3.10 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for charset-normalizer==3.4.1\nBest match: charset-normalizer 3.4.1\nAdding charset-normalizer 3.4.1 to easy-install.pth file\nInstalling normalizer script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for packaging==24.2\nBest match: packaging 24.2\nAdding packaging 24.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for QtPy==2.4.2\nBest match: QtPy 2.4.2\nAdding QtPy 2.4.2 to easy-install.pth file\nInstalling qtpy script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for ipykernel==6.29.5\nBest match: ipykernel 6.29.5\nAdding ipykernel 6.29.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for jupyter-client==8.6.3\nBest match: jupyter-client 8.6.3\nAdding jupyter-client 8.6.3 to easy-install.pth file\nInstalling jupyter-kernel script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\nInstalling jupyter-kernelspec script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\nInstalling jupyter-run script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for jupyter-core==5.7.2\nBest match: jupyter-core 5.7.2\nAdding jupyter-core 5.7.2 to easy-install.pth file\nInstalling jupyter script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\nInstalling jupyter-migrate script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\nInstalling jupyter-troubleshoot script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for traitlets==5.14.3\nBest match: traitlets 5.14.3\nAdding traitlets 5.14.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for tzdata==2024.2\nBest match: tzdata 2024.2\nAdding tzdata 2024.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for pytz==2024.2\nBest match: pytz 2024.2\nAdding pytz 2024.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for python-dateutil==2.9.0.post0\nBest match: python-dateutil 2.9.0.post0\nAdding python-dateutil 2.9.0.post0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for typing-extensions==4.12.2\nBest match: typing-extensions 4.12.2\nAdding typing-extensions 4.12.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/setuptools/_vendor\nSearching for qasync==0.27.1\nBest match: qasync 0.27.1\nAdding qasync 0.27.1 to easy-install.pth file\ndetected new path './setuptools/_vendor'\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for dictdiffer==0.9.0\nBest match: dictdiffer 0.9.0\nAdding dictdiffer 0.9.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for requests-cache==1.2.1\nBest match: requests-cache 1.2.1\nAdding requests-cache 1.2.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for commonmark==0.9.1\nBest match: commonmark 0.9.1\nAdding commonmark 0.9.1 to easy-install.pth file\nInstalling cmark script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for docutils==0.20.1\nBest match: docutils 0.20.1\nAdding docutils 0.20.1 to easy-install.pth file\nInstalling docutils script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for et-xmlfile==2.0.0\nBest match: et-xmlfile 2.0.0\nAdding et-xmlfile 2.0.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for importlib-resources==6.4.5\nBest match: importlib-resources 6.4.5\nAdding importlib-resources 6.4.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for pyparsing==3.1.4\nBest match: pyparsing 3.1.4\nAdding pyparsing 3.1.4 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for pillow==10.4.0\nBest match: pillow 10.4.0\nAdding pillow 10.4.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for kiwisolver==1.4.7\nBest match: kiwisolver 1.4.7\nAdding kiwisolver 1.4.7 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for fonttools==4.55.3\nBest match: fonttools 4.55.3\nAdding fonttools 4.55.3 to easy-install.pth file\nInstalling fonttools script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\nInstalling pyftmerge script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\nInstalling pyftsubset script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\nInstalling ttx script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for cycler==0.12.1\nBest match: cycler 0.12.1\nAdding cycler 0.12.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for contourpy==1.1.1\nBest match: contourpy 1.1.1\nAdding contourpy 1.1.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for jaraco.context==6.0.1\nBest match: jaraco.context 6.0.1\nAdding jaraco.context 6.0.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for jaraco.classes==3.4.0\nBest match: jaraco.classes 3.4.0\nAdding jaraco.classes 3.4.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for jeepney==0.8.0\nBest match: jeepney 0.8.0\nAdding jeepney 0.8.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for SecretStorage==3.3.3\nBest match: SecretStorage 3.3.3\nAdding SecretStorage 3.3.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for importlib-metadata==8.5.0\nBest match: importlib-metadata 8.5.0\nAdding importlib-metadata 8.5.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for jaraco.functools==4.1.0\nBest match: jaraco.functools 4.1.0\nAdding jaraco.functools 4.1.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for httpcore==1.0.7\nBest match: httpcore 1.0.7\nAdding httpcore 1.0.7 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for anyio==4.5.2\nBest match: anyio 4.5.2\nAdding anyio 4.5.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for tornado==6.4.2\nBest match: tornado 6.4.2\nAdding tornado 6.4.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for pyzmq==26.2.0\nBest match: pyzmq 26.2.0\nAdding pyzmq 26.2.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for psutil==6.1.1\nBest match: psutil 6.1.1\nAdding psutil 6.1.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for nest-asyncio==1.6.0\nBest match: nest-asyncio 1.6.0\nAdding nest-asyncio 1.6.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for matplotlib-inline==0.1.7\nBest match: matplotlib-inline 0.1.7\nAdding matplotlib-inline 0.1.7 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for ipython==8.12.3\nBest match: ipython 8.12.3\nAdding ipython 8.12.3 to easy-install.pth file\nInstalling ipython script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\nInstalling ipython3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for debugpy==1.8.11\nBest match: debugpy 1.8.11\nAdding debugpy 1.8.11 to easy-install.pth file\nInstalling debugpy script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for comm==0.2.2\nBest match: comm 0.2.2\nAdding comm 0.2.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for platformdirs==4.3.6\nBest match: platformdirs 4.3.6\nAdding platformdirs 4.3.6 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for six==1.17.0\nBest match: six 1.17.0\nAdding six 1.17.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for url-normalize==1.4.3\nBest match: url-normalize 1.4.3\nAdding url-normalize 1.4.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for cattrs==24.1.2\nBest match: cattrs 24.1.2\nAdding cattrs 24.1.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for attrs==24.3.0\nBest match: attrs 24.3.0\nAdding attrs 24.3.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for zipp==3.20.2\nBest match: zipp 3.20.2\nAdding zipp 3.20.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for backports.tarfile==1.2.0\nBest match: backports.tarfile 1.2.0\nbackports.tarfile 1.2.0 is already the active version in easy-install.pth\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/setuptools/_vendor\nSearching for more-itertools==10.5.0\nBest match: more-itertools 10.5.0\nAdding more-itertools 10.5.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for cryptography==44.0.0\nBest match: cryptography 44.0.0\nAdding cryptography 44.0.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for h11==0.14.0\nBest match: h11 0.14.0\nAdding h11 0.14.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for exceptiongroup==1.2.2\nBest match: exceptiongroup 1.2.2\nAdding exceptiongroup 1.2.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for sniffio==1.3.1\nBest match: sniffio 1.3.1\nAdding sniffio 1.3.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for pexpect==4.9.0\nBest match: pexpect 4.9.0\nAdding pexpect 4.9.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for stack-data==0.6.3\nBest match: stack-data 0.6.3\nAdding stack-data 0.6.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for prompt-toolkit==3.0.48\nBest match: prompt-toolkit 3.0.48\nAdding prompt-toolkit 3.0.48 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for pickleshare==0.7.5\nBest match: pickleshare 0.7.5\nAdding pickleshare 0.7.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for jedi==0.19.2\nBest match: jedi 0.19.2\nAdding jedi 0.19.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for decorator==5.1.1\nBest match: decorator 5.1.1\nAdding decorator 5.1.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for backcall==0.2.0\nBest match: backcall 0.2.0\nAdding backcall 0.2.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for cffi==1.17.1\nBest match: cffi 1.17.1\nAdding cffi 1.17.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for ptyprocess==0.7.0\nBest match: ptyprocess 0.7.0\nAdding ptyprocess 0.7.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for pure-eval==0.2.3\nBest match: pure-eval 0.2.3\nAdding pure-eval 0.2.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for asttokens==3.0.0\nBest match: asttokens 3.0.0\nAdding asttokens 3.0.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for executing==2.1.0\nBest match: executing 2.1.0\nAdding executing 2.1.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for wcwidth==0.2.13\nBest match: wcwidth 0.2.13\nAdding wcwidth 0.2.13 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for parso==0.8.4\nBest match: parso 0.8.4\nAdding parso 0.8.4 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nSearching for pycparser==2.22\nBest match: pycparser 2.22\nAdding pycparser 2.22 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages\nFinished processing dependencies for Orange3==3.35.0.dev0+d352fe2\nVerifying Orange installation...\n✅ Orange installation successful!\nSuccessfully installed orange using Python 3.8\n",
    "setup_res_stderr": "Using CPython 3.7.9\nCreating virtual environment at: .venv\nActivate with: source .venv/bin/activate\nResolved 18 packages in 137ms\nPrepared 18 packages in 1ms\nInstalled 18 packages in 105ms\n + cython==0.29.37\n + exceptiongroup==1.2.2\n + importlib-metadata==6.7.0\n + iniconfig==2.0.0\n + numpy==1.17.5\n + packaging==24.0\n + pluggy==1.2.0\n + pyqt5==5.15.10\n + pyqt5-qt5==5.15.16\n + pyqt5-sip==12.13.0\n + pyqtwebengine==5.15.6\n + pyqtwebengine-qt5==5.15.16\n + pytest==7.4.4\n + setuptools==59.8.0\n + tomli==2.0.1\n + typing-extensions==4.7.1\n + wheel==0.42.0\n + zipp==3.15.0\n  × No solution found when resolving dependencies:\n  ╰─▶ Because the current Python version (3.7.9) does not satisfy Python>=3.8 and all of:\n          scipy>=1.9.0,<=1.9.1\n          scipy>=1.10.0,<=1.10.1\n      depend on Python>=3.8,<3.12, we can conclude that all of:\n          scipy>=1.9.0,<=1.9.1\n          scipy>=1.10.0,<=1.10.1\n       cannot be used.\n      And because only the following versions of scipy are available:\n          scipy<=1.9.0\n          scipy==1.9.1\n          scipy==1.9.2\n          scipy==1.9.3\n          scipy==1.10.0\n          scipy==1.10.1\n          scipy==1.11.0\n          scipy==1.11.1\n          scipy==1.11.2\n          scipy==1.11.3\n          scipy==1.11.4\n          scipy==1.12.0\n          scipy==1.13.0\n          scipy==1.13.1\n          scipy==1.14.0\n          scipy==1.14.1\n          scipy==1.15.0\n      we can conclude that all of:\n          scipy>=1.9.0,<1.9.2\n          scipy>1.9.3,<1.11.0\n       cannot be used. (1)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.8 and scipy>=1.9.2,<=1.9.3 depends on Python>=3.8,\n      we can conclude that scipy>=1.9.2,<=1.9.3 cannot be used.\n      And because we know from (1) that all of:\n          scipy>=1.9.0,<1.9.2\n          scipy>1.9.3,<1.11.0\n       cannot be used, we can conclude that scipy>=1.9.0,<1.11.0 cannot be used.\n      And because scipy==1.11.0 was yanked (reason: License Violation), we can conclude that scipy>=1.9.0,<1.11.1 cannot be\n      used. (2)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.8 and scipy>=1.11.1,<=1.11.3 depends on\n      Python>=3.9,<3.13, we can conclude that scipy>=1.11.1,<=1.11.3 cannot be used.\n      And because we know from (2) that scipy>=1.9.0,<1.11.1 cannot be used, we can conclude that scipy>=1.9.0,<1.11.4 cannot\n      be used. (3)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.8 and scipy>=1.11.4,<=1.13.1 depends on\n      Python>=3.9, we can conclude that scipy>=1.11.4,<=1.13.1 cannot be used.\n      And because we know from (3) that scipy>=1.9.0,<1.11.4 cannot be used, we can conclude that scipy>=1.9.0,<1.14.0 cannot\n      be used. (4)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.8 and scipy>=1.14.0 depends on Python>=3.10, we can\n      conclude that scipy>=1.14.0 cannot be used.\n      And because we know from (4) that scipy>=1.9.0,<1.14.0 cannot be used, we can conclude that scipy>=1.9.0 cannot be used.\n      And because you require scipy>=1.9, we can conclude that your requirements are unsatisfiable.\n\n      hint: Pre-releases are available for `scipy` in the requested range (e.g., 1.15.0rc2), but pre-releases weren't enabled\n      (try: `--prerelease=allow`)\nResolved 59 packages in 665ms\nInstalled 52 packages in 529ms\n + anyqt==0.2.0\n + attrs==24.2.0\n + backcall==0.2.0\n + cattrs==23.1.2\n + certifi==2024.12.14\n + charset-normalizer==3.4.1\n + commonmark==0.9.1\n + cycler==0.11.0\n + debugpy==1.7.0\n + decorator==5.1.1\n + dictdiffer==0.9.0\n + docutils==0.20.1\n + entrypoints==0.4\n + fonttools==4.38.0\n + idna==3.10\n + ipykernel==6.16.2\n + ipython==7.34.0\n + ipython-genutils==0.2.0\n + jedi==0.19.2\n + jupyter-client==7.4.9\n + jupyter-core==4.12.0\n + kiwisolver==1.4.5\n + matplotlib==3.5.3\n + matplotlib-inline==0.1.6\n + nest-asyncio==1.6.0\n + orange-canvas-core==0.1.35\n + orange-widget-base==4.22.0\n + parso==0.8.4\n + pexpect==4.9.0\n + pickleshare==0.7.5\n + pillow==9.5.0\n + pip==24.0\n + platformdirs==4.0.0\n + prompt-toolkit==3.0.48\n + psutil==6.1.1\n + ptyprocess==0.7.0\n + pygments==2.17.2\n + pyparsing==3.1.4\n + pyqtgraph==0.12.3\n + python-dateutil==2.9.0.post0\n + pyzmq==26.2.0\n + qasync==0.25.0\n + qtconsole==5.4.4\n + qtpy==2.4.2\n + requests==2.31.0\n + requests-cache==1.1.1\n + six==1.17.0\n + tornado==6.2\n + traitlets==5.9.0\n + url-normalize==1.4.3\n + urllib3==2.0.7\n + wcwidth==0.2.13\nResolved 2 packages in 3ms\nInstalled 2 packages in 67ms\n + psycopg2==2.9.9\n + pymssql==2.3.2\nResolved 19 packages in 238ms\nInstalled 8 packages in 1.37s\n + catboost==1.2.7\n + graphviz==0.20.1\n + pandas==1.3.5\n + plotly==5.18.0\n + pytz==2024.2\n + scipy==1.7.3\n + tenacity==8.2.3\n + xgboost==1.6.2\nResolved 5 packages in 10ms\nInstalled 3 packages in 40ms\n + joblib==1.3.2\n + scikit-learn==1.0.2\n + threadpoolctl==3.1.0\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/classification/_tree_scorers.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_2find_threshold_entropy’:\nOrange/classification/_tree_scorers.c:3427:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 3427 |   __pyx_t_7 = ((__pyx_v_N <= __pyx_v_min_leaf) != 0);\n      |                           ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_6find_threshold_MSE’:\nOrange/classification/_tree_scorers.c:4883:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 4883 |   __pyx_t_1 = ((__pyx_v_N <= __pyx_v_min_leaf) != 0);\n      |                           ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_8find_binarization_MSE’:\nOrange/classification/_tree_scorers.c:5629:43: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5629 |           for (__pyx_t_19 = 0; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) {\n      |                                           ^\nOrange/classification/_tree_scorers.c:5750:39: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5750 |           __pyx_t_20 = ((__pyx_v_left >= __pyx_v_min_leaf) != 0);\n      |                                       ^~\nOrange/classification/_tree_scorers.c:5756:53: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5756 |           __pyx_t_20 = (((__pyx_v_N - __pyx_v_left) >= __pyx_v_min_leaf) != 0);\n      |                                                     ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_14compute_predictions_csr’:\nOrange/classification/_tree_scorers.c:7217:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 7217 |         for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {\n      |                                         ^\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_16compute_predictions_csc’:\nOrange/classification/_tree_scorers.c:7874:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 7874 |         for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {\n      |                                         ^\nOrange/classification/_tree_scorers.c:7934:150: warning: comparison of integer expressions of different signedness: ‘__pyx_t_5numpy_int32_t’ {aka ‘int’} and ‘unsigned int’ [-Wsign-compare]\n 7934 |               __pyx_t_16 = (((*((__pyx_t_5numpy_int32_t const  *) ( /* dim=0 */ (__pyx_v_indices.data + __pyx_t_15 * __pyx_v_indices.strides[0]) ))) != __pyx_v_i) != 0);\n      |                                                                                                                                                      ^~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/data/_contingency.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/data/_io.c: In function ‘__pyx_pf_6Orange_4data_3_io_sparse_read_float.constprop’:\nOrange/data/_io.c:4120:43: warning: ‘__pyx_v_decs’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4120 |           __pyx_v_value = ((__pyx_v_value * __pyx_v_decs) + (__pyx_v_c & 0xf));\n      |                            ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/data/_io.c:4318:24: warning: ‘__pyx_v_value’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4318 |           __pyx_t_10 = PyFloat_FromDouble(__pyx_v_value); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 223, __pyx_L5_error)\n      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nOrange/data/_io.c:683:40: warning: ‘__pyx_v_attr_index’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n  683 |   #define PyInt_FromLong               PyLong_FromLong\n      |                                        ^~~~~~~~~~~~~~~\nOrange/data/_io.c:1590:7: note: ‘__pyx_v_attr_index’ was declared here\n 1590 |   int __pyx_v_attr_index;\n      |       ^~~~~~~~~~~~~~~~~~\nOrange/data/_io.c:3183:25: warning: ‘__pyx_v_atomp’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3183 |           __pyx_v_atomp = (__pyx_v_atomp + 1);\n      |           ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/data/_valuecount.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/distance/_distance.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/preprocess/_discretize.c:774:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/preprocess/_relieff.cpp:790:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/projection/_som.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_5update_hex’:\nOrange/projection/_som.c:3863:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3863 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:3862:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3862 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pf_6Orange_10projection_4_som_8update_sparse.constprop’:\nOrange/projection/_som.c:4934:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4934 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:4933:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4933 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_7get_winners_sparse’:\nOrange/projection/_som.c:4732:223: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4732 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_26, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_27, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_y;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:4307:7: note: ‘__pyx_v_win_y’ was declared here\n 4307 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:4721:223: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4721 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_27, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_26, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_x;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:4306:7: note: ‘__pyx_v_win_x’ was declared here\n 4306 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pf_6Orange_10projection_4_som_10update_sparse_hex.constprop’:\nOrange/projection/_som.c:5682:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5682 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:5681:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5681 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_1get_winners’:\nOrange/projection/_som.c:3184:223: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3184 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_22, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_23, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_y;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:2887:7: note: ‘__pyx_v_win_y’ was declared here\n 2887 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:3173:223: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3173 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_23, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_22, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_x;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:2886:7: note: ‘__pyx_v_win_x’ was declared here\n 2886 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_3update’:\nOrange/projection/_som.c:3357:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3357 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/classification/_simple_tree.c: In function ‘gain_ratio_c’:\nOrange/classification/_simple_tree.c:63:9: warning: implicit declaration of function ‘qsort_r’; did you mean ‘qsort’? [-Wimplicit-function-declaration]\n   63 |         qsort_r(base, nel, size, compar, thunk)\n      |         ^~~~~~~\nOrange/classification/_simple_tree.c:147:9: note: in expansion of macro ‘QSORT_R_FUNC’\n  147 |         QSORT_R_FUNC(examples, size, sizeof(struct Example), (void*) &compar_attr, compar_examples);\n      |         ^~~~~~~~~~~~\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/setuptools/command/easy_install.py:159: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.\n  EasyInstallDeprecationWarning,\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.\n  setuptools.SetuptoolsDeprecationWarning,\nwarning: no files found matching 'README*' under directory 'Orange'\nwarning: no files found matching 'LICENSE' under directory 'Orange'\nwarning: no files found matching '*.basket' under directory 'Orange/datasets'\nwarning: no files found matching '*.svg' under directory 'Orange/canvas'\nwarning: no files found matching '*.js' under directory 'Orange/widgets'\nwarning: no files found matching '*.css' under directory 'Orange/widgets'\nwarning: no files found matching '*.html' under directory 'Orange/widgets'\nwarning: no files found matching '*.svg' under directory 'distribute'\nwarning: no files found matching 'COPYING'\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/pkg_resources/__init__.py:119: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release\n  PkgResourcesDeprecationWarning,\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.\n  setuptools.SetuptoolsDeprecationWarning,\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.7/site-packages/pkg_resources/__init__.py:119: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release\n  PkgResourcesDeprecationWarning,\nerror: Couldn't find a setup script in /tmp/easy_install-em6rwj8u/scipy-1.15.0.tar.gz\nUsing CPython 3.8.20\nCreating virtual environment at: .venv\nActivate with: source .venv/bin/activate\nResolved 15 packages in 161ms\nPrepared 15 packages in 2ms\nInstalled 15 packages in 76ms\n + cython==0.29.37\n + exceptiongroup==1.2.2\n + iniconfig==2.0.0\n + numpy==1.24.4\n + packaging==24.2\n + pluggy==1.5.0\n + pyqt5==5.15.11\n + pyqt5-qt5==5.15.16\n + pyqt5-sip==12.15.0\n + pyqtwebengine==5.15.7\n + pyqtwebengine-qt5==5.15.16\n + pytest==8.3.4\n + setuptools==75.3.0\n + tomli==2.2.1\n + wheel==0.45.1\nResolved 59 packages in 88ms\nInstalled 55 packages in 230ms\n + anyio==4.5.2\n + backports-tarfile==1.2.0\n + baycomp==1.0.3\n + bottleneck==1.4.0\n + certifi==2024.12.14\n + cffi==1.17.1\n + chardet==5.2.0\n + charset-normalizer==3.4.1\n + contourpy==1.1.1\n + cryptography==44.0.0\n + cycler==0.12.1\n + et-xmlfile==2.0.0\n + fonttools==4.55.3\n + h11==0.14.0\n + httpcore==1.0.7\n + httpx==0.28.1\n + idna==3.10\n + importlib-metadata==8.5.0\n + importlib-resources==6.4.5\n + jaraco-classes==3.4.0\n + jaraco-context==6.0.1\n + jaraco-functools==4.1.0\n + jeepney==0.8.0\n + joblib==1.4.2\n + keyring==25.5.0\n + keyrings-alt==5.0.2\n + kiwisolver==1.4.7\n + matplotlib==3.7.5\n + more-itertools==10.5.0\n + networkx==3.1\n + openpyxl==3.1.5\n + opentsne==1.0.1\n + pandas==2.0.3\n + pillow==10.4.0\n + pip==24.3.1\n + pycparser==2.22\n + pyparsing==3.1.4\n + python-dateutil==2.9.0.post0\n + python-louvain==0.16\n + pytz==2024.2\n + pyyaml==6.0.2\n + requests==2.32.3\n + scikit-learn==1.1.3\n + scipy==1.10.1\n + secretstorage==3.3.3\n + serverfiles==0.3.1\n + six==1.17.0\n + sniffio==1.3.1\n + threadpoolctl==3.5.0\n + typing-extensions==4.12.2\n + tzdata==2024.2\n + urllib3==2.2.3\n + xlrd==2.0.1\n + xlsxwriter==3.2.0\n + zipp==3.20.2\nResolved 64 packages in 63ms\nInstalled 41 packages in 195ms\n + anyqt==0.2.0\n + asttokens==3.0.0\n + attrs==24.3.0\n + backcall==0.2.0\n + cattrs==24.1.2\n + comm==0.2.2\n + commonmark==0.9.1\n + debugpy==1.8.11\n + decorator==5.1.1\n + dictdiffer==0.9.0\n + docutils==0.20.1\n + executing==2.1.0\n + ipykernel==6.29.5\n + ipython==8.12.3\n + jedi==0.19.2\n + jupyter-client==8.6.3\n + jupyter-core==5.7.2\n + matplotlib-inline==0.1.7\n + nest-asyncio==1.6.0\n + orange-canvas-core==0.1.35\n + orange-widget-base==4.22.0\n + parso==0.8.4\n + pexpect==4.9.0\n + pickleshare==0.7.5\n + platformdirs==4.3.6\n + prompt-toolkit==3.0.48\n + psutil==6.1.1\n + ptyprocess==0.7.0\n + pure-eval==0.2.3\n + pygments==2.19.1\n + pyqtgraph==0.13.3\n + pyzmq==26.2.0\n + qasync==0.27.1\n + qtconsole==5.6.1\n + qtpy==2.4.2\n + requests-cache==1.2.1\n + stack-data==0.6.3\n + tornado==6.4.2\n + traitlets==5.14.3\n + url-normalize==1.4.3\n + wcwidth==0.2.13\nResolved 2 packages in 2ms\nInstalled 2 packages in 4ms\n + psycopg2==2.9.10\n + pymssql==2.3.2\nResolved 23 packages in 18ms\nInstalled 6 packages in 834ms\n + catboost==1.2.7\n + graphviz==0.20.3\n + nvidia-nccl-cu12==2.24.3\n + plotly==5.24.1\n + tenacity==9.0.0\n + xgboost==2.1.3\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/classification/_tree_scorers.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_2find_threshold_entropy’:\nOrange/classification/_tree_scorers.c:3427:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 3427 |   __pyx_t_7 = ((__pyx_v_N <= __pyx_v_min_leaf) != 0);\n      |                           ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_6find_threshold_MSE’:\nOrange/classification/_tree_scorers.c:4883:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 4883 |   __pyx_t_1 = ((__pyx_v_N <= __pyx_v_min_leaf) != 0);\n      |                           ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_8find_binarization_MSE’:\nOrange/classification/_tree_scorers.c:5629:43: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5629 |           for (__pyx_t_19 = 0; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) {\n      |                                           ^\nOrange/classification/_tree_scorers.c:5750:39: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5750 |           __pyx_t_20 = ((__pyx_v_left >= __pyx_v_min_leaf) != 0);\n      |                                       ^~\nOrange/classification/_tree_scorers.c:5756:53: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5756 |           __pyx_t_20 = (((__pyx_v_N - __pyx_v_left) >= __pyx_v_min_leaf) != 0);\n      |                                                     ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_14compute_predictions_csr’:\nOrange/classification/_tree_scorers.c:7217:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 7217 |         for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {\n      |                                         ^\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_16compute_predictions_csc’:\nOrange/classification/_tree_scorers.c:7874:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 7874 |         for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {\n      |                                         ^\nOrange/classification/_tree_scorers.c:7934:150: warning: comparison of integer expressions of different signedness: ‘__pyx_t_5numpy_int32_t’ {aka ‘int’} and ‘unsigned int’ [-Wsign-compare]\n 7934 |               __pyx_t_16 = (((*((__pyx_t_5numpy_int32_t const  *) ( /* dim=0 */ (__pyx_v_indices.data + __pyx_t_15 * __pyx_v_indices.strides[0]) ))) != __pyx_v_i) != 0);\n      |                                                                                                                                                      ^~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/data/_contingency.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/data/_io.c: In function ‘__pyx_pf_6Orange_4data_3_io_sparse_read_float.constprop’:\nOrange/data/_io.c:4120:43: warning: ‘__pyx_v_decs’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4120 |           __pyx_v_value = ((__pyx_v_value * __pyx_v_decs) + (__pyx_v_c & 0xf));\n      |                            ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/data/_io.c:4318:24: warning: ‘__pyx_v_value’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4318 |           __pyx_t_10 = PyFloat_FromDouble(__pyx_v_value); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 223, __pyx_L5_error)\n      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nOrange/data/_io.c:683:40: warning: ‘__pyx_v_attr_index’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n  683 |   #define PyInt_FromLong               PyLong_FromLong\n      |                                        ^~~~~~~~~~~~~~~\nOrange/data/_io.c:1590:7: note: ‘__pyx_v_attr_index’ was declared here\n 1590 |   int __pyx_v_attr_index;\n      |       ^~~~~~~~~~~~~~~~~~\nOrange/data/_io.c:3183:25: warning: ‘__pyx_v_atomp’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3183 |           __pyx_v_atomp = (__pyx_v_atomp + 1);\n      |           ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/data/_valuecount.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/distance/_distance.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/preprocess/_discretize.c:774:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/preprocess/_relieff.cpp:790:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/projection/_som.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_5update_hex’:\nOrange/projection/_som.c:3863:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3863 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:3862:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3862 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pf_6Orange_10projection_4_som_8update_sparse.constprop’:\nOrange/projection/_som.c:4934:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4934 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:4933:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4933 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pf_6Orange_10projection_4_som_10update_sparse_hex.constprop’:\nOrange/projection/_som.c:5682:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5682 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:5681:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5681 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_1get_winners’:\nOrange/projection/_som.c:3184:223: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3184 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_22, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_23, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_y;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:2887:7: note: ‘__pyx_v_win_y’ was declared here\n 2887 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:3173:223: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3173 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_23, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_22, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_x;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:2886:7: note: ‘__pyx_v_win_x’ was declared here\n 2886 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_3update’:\nOrange/projection/_som.c:3357:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3357 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_7get_winners_sparse’:\nOrange/projection/_som.c:4732:223: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4732 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_26, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_27, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_y;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:4307:7: note: ‘__pyx_v_win_y’ was declared here\n 4307 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:4721:223: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4721 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_27, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_26, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_x;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:4306:7: note: ‘__pyx_v_win_x’ was declared here\n 4306 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/classification/_simple_tree.c: In function ‘gain_ratio_c’:\nOrange/classification/_simple_tree.c:63:9: warning: implicit declaration of function ‘qsort_r’; did you mean ‘qsort’? [-Wimplicit-function-declaration]\n   63 |         qsort_r(base, nel, size, compar, thunk)\n      |         ^~~~~~~\nOrange/classification/_simple_tree.c:147:9: note: in expansion of macro ‘QSORT_R_FUNC’\n  147 |         QSORT_R_FUNC(examples, size, sizeof(struct Example), (void*) &compar_attr, compar_examples);\n      |         ^~~~~~~~~~~~\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'\n  warnings.warn(msg)\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'\n  warnings.warn(msg)\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/setuptools/command/develop.py:41: EasyInstallDeprecationWarning: easy_install command is deprecated.\n!!\n\n        ********************************************************************************\n        Please avoid running ``setup.py`` and ``easy_install``.\n        Instead, use pypa/build, pypa/installer or other\n        standards-based tools.\n\n        See https://github.com/pypa/setuptools/issues/917 for details.\n        ********************************************************************************\n\n!!\n  easy_install.initialize_options(self)\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7/.venv/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.\n!!\n\n        ********************************************************************************\n        Please avoid running ``setup.py`` directly.\n        Instead, use pypa/build, pypa/installer or other\n        standards-based tools.\n\n        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.\n        ********************************************************************************\n\n!!\n  self.initialize_options()\nwarning: no files found matching 'README*' under directory 'Orange'\nwarning: no files found matching 'LICENSE' under directory 'Orange'\nwarning: no files found matching '*.basket' under directory 'Orange/datasets'\nwarning: no files found matching '*.svg' under directory 'Orange/canvas'\nwarning: no files found matching '*.js' under directory 'Orange/widgets'\nwarning: no files found matching '*.css' under directory 'Orange/widgets'\nwarning: no files found matching '*.html' under directory 'Orange/widgets'\nwarning: no files found matching '*.svg' under directory 'distribute'\nwarning: no files found matching 'COPYING'\n",
    "new_commit_res_code": 0,
    "new_commit_res_stdout": "============================= test session starts ==============================\nplatform linux -- Python 3.8.20, pytest-8.3.4, pluggy-1.5.0\nrootdir: /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7\nconfigfile: pyproject.toml\nplugins: anyio-4.5.2, typeguard-4.3.0\ncollected 23 items\n\nr2e_tests/test_1.py sss....................                              [100%]\n\n==================================== PASSES ====================================\n=========================== short test summary info ============================\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_annotate_by_enumeration\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_data_subset\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_datasets\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_group_axis\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_hidden_vars\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_image_export\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_init_attr_values\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_input_no_cont_features\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_input_to_many_instances\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_minimum_size\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_msg_base_class\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_outputs\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_plot\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_plot_data_subset\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_retain_selection_on_param_change\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_saved_workflow\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_selection\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_send_report\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_sparse_data\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_visual_settings\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:244: image exporting not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:238: minimum size not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:250: msg base class not tested as .widget was not set\n======================== 20 passed, 3 skipped in 8.84s =========================\nWidgets left: 0    Max widgets: 5295 \n\n",
    "new_commit_res_stderr": "",
    "old_commit_res_code": 1,
    "old_commit_res_stdout": "============================= test session starts ==============================\nplatform linux -- Python 3.8.20, pytest-8.3.4, pluggy-1.5.0\nrootdir: /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_d352fe2113bf4b7aaa0b80c97955739a8a2b38c7\nconfigfile: pyproject.toml\nplugins: anyio-4.5.2, typeguard-4.3.0\ncollected 23 items\n\nr2e_tests/test_1.py sssF...................                              [100%]\n\n=================================== FAILURES ===================================\n__________________ TestOWBarPlot.test_annotate_by_enumeration __________________\n\nself = <r2e_tests.test_1.TestOWBarPlot testMethod=test_annotate_by_enumeration>\n\n    def test_annotate_by_enumeration(self):\n        widget = self.widget\n    \n        self.send_signal(widget.Inputs.data, self.data)\n        combo = widget.controls.annot_var\n        for i in range(combo.count()):\n            try:\n                simulate.combobox_activate_index(combo, i)\n            except AssertionError:  # skip disabled items\n                pass\n            else:\n                labels = widget.get_labels()\n>               self.assertTrue(not labels\n                                or all(isinstance(x, str) for x in labels))\nE               ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()\n\nr2e_tests/test_1.py:152: ValueError\n==================================== PASSES ====================================\n=========================== short test summary info ============================\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_data_subset\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_datasets\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_group_axis\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_hidden_vars\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_image_export\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_init_attr_values\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_input_no_cont_features\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_input_to_many_instances\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_minimum_size\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_msg_base_class\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_outputs\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_plot\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_plot_data_subset\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_retain_selection_on_param_change\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_saved_workflow\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_selection\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_send_report\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_sparse_data\nPASSED r2e_tests/test_1.py::TestOWBarPlot::test_visual_settings\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:244: image exporting not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:238: minimum size not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:250: msg base class not tested as .widget was not set\nFAILED r2e_tests/test_1.py::TestOWBarPlot::test_annotate_by_enumeration - Val...\n=================== 1 failed, 19 passed, 3 skipped in 6.13s ====================\nWidgets left: 0    Max widgets: 5295 \n\n",
    "old_commit_res_stderr": ""
}
Orange/widgets/visualize/owbarplot.py Orange/widgets/visualize/tests/test_owbarplot.py
We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[ISSUE]
**Title: Enumeration Annotations Return Numeric Values Causing Validation Errors**

**Description**

When the annotation variable is set to enumeration in the Bar Plot widget, the generated labels are numeric values instead of strings. This leads to errors during label validation, especially when the code expects labels to be strings.

**Example Code**

```python
widget.annot_var = 'enumeration'
labels = widget.get_labels()
if labels and all(isinstance(label, str) for label in labels):
    # Proceed with processing
```

**Expected Behavior**

Labels generated from enumeration annotations should be a list of strings representing the enumeration indices, such as `['1', '2', '3', ...]`.

**Actual Behavior**

Labels are returned as a NumPy array of numeric values, like `array([1, 2, 3, ...])`. This causes a `ValueError` during validation:

```
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
```

[/ISSUE]
--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.

--- BEGIN FILE ---
```
### Orange/widgets/visualize/owbarplot.py
from typing import List, Optional, Tuple, Union, Dict
from functools import lru_cache
from xml.sax.saxutils import escape

import numpy as np

from AnyQt.QtCore import Qt, QPointF, QSize, Signal, QRectF
from AnyQt.QtGui import QColor
from AnyQt.QtWidgets import QApplication, QToolTip, QGraphicsSceneHelpEvent

import pyqtgraph as pg

from orangewidget.utils.visual_settings_dlg import VisualSettingsDialog, \
    KeyType, ValueType

from Orange.data import Table, DiscreteVariable, ContinuousVariable, \
    StringVariable, Variable
from Orange.widgets import gui
from Orange.widgets.settings import Setting, ContextSetting, \
    DomainContextHandler, SettingProvider
from Orange.widgets.utils.annotated_data import create_annotated_table, \
    ANNOTATED_DATA_SIGNAL_NAME
from Orange.widgets.utils import instance_tooltip
from Orange.widgets.utils.itemmodels import DomainModel
from Orange.widgets.utils.plot import OWPlotGUI, SELECT, PANNING, ZOOMING
from Orange.widgets.utils.sql import check_sql_input
from Orange.widgets.visualize.owscatterplotgraph import LegendItem
from Orange.widgets.visualize.utils.customizableplot import Updater, \
    CommonParameterSetter
from Orange.widgets.visualize.utils.plotutils import AxisItem, \
    HelpEventDelegate, PlotWidget
from Orange.widgets.widget import OWWidget, Input, Output, Msg

MAX_INSTANCES = 200


class BarPlotViewBox(pg.ViewBox):
    def __init__(self, parent):
        super().__init__()
        self.graph = parent
        self.setMouseMode(self.RectMode)

    def mouseDragEvent(self, ev, axis=None):
        if self.graph.state == SELECT and axis is None:
            ev.accept()
            if ev.button() == Qt.LeftButton:
                self.updateScaleBox(ev.buttonDownPos(), ev.pos())
                if ev.isFinish():
                    self.rbScaleBox.hide()
                    p1, p2 = ev.buttonDownPos(ev.button()), ev.pos()
                    p1 = self.mapToView(p1)
                    p2 = self.mapToView(p2)
                    self.graph.select_by_rectangle(QRectF(p1, p2))
                else:
                    self.updateScaleBox(ev.buttonDownPos(), ev.pos())
        elif self.graph.state == ZOOMING or self.graph.state == PANNING:
            super().mouseDragEvent(ev, axis=axis)
        else:
            ev.ignore()

    def mouseClickEvent(self, ev):
        if ev.button() == Qt.LeftButton:
            self.graph.select_by_click(self.mapSceneToView(ev.scenePos()))
            ev.accept()


class ParameterSetter(CommonParameterSetter):
    GRID_LABEL, SHOW_GRID_LABEL = "Gridlines", "Show"
    DEFAULT_ALPHA_GRID, DEFAULT_SHOW_GRID = 80, True
    BOTTOM_AXIS_LABEL, GROUP_AXIS_LABEL = "Bottom axis", "Group axis"
    IS_VERTICAL_LABEL = "Vertical ticks"

    def __init__(self, master):
        self.grid_settings: Dict = None
        self.master: BarPlotGraph = master
        super().__init__()

    def update_setters(self):
        self.grid_settings = {
            Updater.ALPHA_LABEL: self.DEFAULT_ALPHA_GRID,
            self.SHOW_GRID_LABEL: self.DEFAULT_SHOW_GRID,
        }

        self.initial_settings = {
            self.LABELS_BOX: {
                self.FONT_FAMILY_LABEL: self.FONT_FAMILY_SETTING,
                self.TITLE_LABEL: self.FONT_SETTING,
                self.AXIS_TITLE_LABEL: self.FONT_SETTING,
                self.AXIS_TICKS_LABEL: self.FONT_SETTING,
                self.LEGEND_LABEL: self.FONT_SETTING,
            },
            self.ANNOT_BOX: {
                self.TITLE_LABEL: {self.TITLE_LABEL: ("", "")},
            },
            self.PLOT_BOX: {
                self.GRID_LABEL: {
                    self.SHOW_GRID_LABEL: (None, True),
                    Updater.ALPHA_LABEL: (range(0, 255, 5),
                                          self.DEFAULT_ALPHA_GRID),
                },
                self.BOTTOM_AXIS_LABEL: {
                    self.IS_VERTICAL_LABEL: (None, True),
                },
                self.GROUP_AXIS_LABEL: {
                    self.IS_VERTICAL_LABEL: (None, False),
                },
            },
        }

        def update_grid(**settings):
            self.grid_settings.update(**settings)
            self.master.showGrid(y=self.grid_settings[self.SHOW_GRID_LABEL],
                          alpha=self.grid_settings[Updater.ALPHA_LABEL] / 255)

        def update_bottom_axis(**settings):
            axis = self.master.getAxis("bottom")
            axis.setRotateTicks(settings[self.IS_VERTICAL_LABEL])

        def update_group_axis(**settings):
            axis = self.master.group_axis
            axis.setRotateTicks(settings[self.IS_VERTICAL_LABEL])

        self._setters[self.PLOT_BOX] = {
            self.GRID_LABEL: update_grid,
            self.BOTTOM_AXIS_LABEL: update_bottom_axis,
            self.GROUP_AXIS_LABEL: update_group_axis,
        }

    @property
    def title_item(self):
        return self.master.getPlotItem().titleLabel

    @property
    def axis_items(self):
        return [value["item"] for value in
                self.master.getPlotItem().axes.values()]

    @property
    def legend_items(self):
        return self.master.legend.items


class BarPlotGraph(PlotWidget):
    selection_changed = Signal(list)
    bar_width = 0.7

    def __init__(self, master, parent=None):
        self.selection = []
        self.master: OWBarPlot = master
        self.state: int = SELECT
        self.bar_item: pg.BarGraphItem = None
        super().__init__(
            parent=parent,
            viewBox=BarPlotViewBox(self),
            enableMenu=False,
            axisItems={"bottom": AxisItem(orientation="bottom",
                                          rotate_ticks=True),
                       "left": AxisItem(orientation="left")}
        )
        self.hideAxis("left")
        self.hideAxis("bottom")
        self.getPlotItem().buttonsHidden = True
        self.getPlotItem().setContentsMargins(10, 0, 0, 10)
        self.getViewBox().setMouseMode(pg.ViewBox.PanMode)

        self.group_axis = AxisItem("bottom")
        self.group_axis.hide()
        self.group_axis.linkToView(self.getViewBox())
        self.getPlotItem().layout.addItem(self.group_axis, 4, 1)

        self.legend = self._create_legend()

        self.tooltip_delegate = HelpEventDelegate(self.help_event)
        self.scene().installEventFilter(self.tooltip_delegate)

        self.parameter_setter = ParameterSetter(self)

        self.showGrid(y=self.parameter_setter.DEFAULT_SHOW_GRID,
                      alpha=self.parameter_setter.DEFAULT_ALPHA_GRID / 255)

    def _create_legend(self):
        legend = LegendItem()
        legend.setParentItem(self.getViewBox())
        legend.anchor((1, 0), (1, 0), offset=(-3, 1))
        legend.hide()
        return legend

    def update_legend(self):
        self.legend.clear()
        self.legend.hide()
        for color, text in self.master.get_legend_data():
            dot = pg.ScatterPlotItem(
                pen=pg.mkPen(color=color),
                brush=pg.mkBrush(color=color)
            )
            self.legend.addItem(dot, escape(text))
            self.legend.show()
        Updater.update_legend_font(self.legend.items,
                                   **self.parameter_setter.legend_settings)

    def reset_graph(self):
        self.clear()
        self.update_bars()
        self.update_axes()
        self.update_group_lines()
        self.update_legend()
        self.reset_view()

    def update_bars(self):
        if self.bar_item is not None:
            self.removeItem(self.bar_item)
            self.bar_item = None

        values = self.master.get_values()
        if values is None:
            return

        self.bar_item = pg.BarGraphItem(
            x=np.arange(len(values)),
            height=values,
            width=self.bar_width,
            pen=pg.mkPen(QColor(Qt.white)),
            labels=self.master.get_labels(),
            brushes=self.master.get_colors(),
        )
        self.addItem(self.bar_item)
        self.__select_bars()

    def update_axes(self):
        if self.bar_item is not None:
            self.showAxis("left")
            self.showAxis("bottom")
            self.group_axis.show()

            vals_label, group_label, annot_label = self.master.get_axes()
            self.setLabel(axis="left", text=vals_label)
            self.setLabel(axis="bottom", text=annot_label)
            self.group_axis.setLabel(group_label)

            ticks = [list(enumerate(self.master.get_labels()))]
            self.getAxis('bottom').setTicks(ticks)

            labels = np.array(self.master.get_group_labels())
            _, indices, counts = \
                np.unique(labels, return_index=True, return_counts=True)
            ticks = [[(i + (c - 1) / 2, labels[i]) for i, c in
                      zip(indices, counts)]]
            self.group_axis.setTicks(ticks)

            if not group_label:
                self.group_axis.hide()
            elif not annot_label:
                self.hideAxis("bottom")
        else:
            self.hideAxis("left")
            self.hideAxis("bottom")
            self.group_axis.hide()

    def reset_view(self):
        if self.bar_item is None:
            return
        values = np.append(self.bar_item.opts["height"], 0)
        min_ = np.nanmin(values)
        max_ = -min_ + np.nanmax(values)
        rect = QRectF(-0.5, min_, len(values) - 1, max_)
        self.getViewBox().setRange(rect)

    def zoom_button_clicked(self):
        self.state = ZOOMING
        self.getViewBox().setMouseMode(pg.ViewBox.RectMode)

    def pan_button_clicked(self):
        self.state = PANNING
        self.getViewBox().setMouseMode(pg.ViewBox.PanMode)

    def select_button_clicked(self):
        self.state = SELECT
        self.getViewBox().setMouseMode(pg.ViewBox.RectMode)

    def reset_button_clicked(self):
        self.reset_view()

    def update_group_lines(self):
        if self.bar_item is None:
            return

        labels = np.array(self.master.get_group_labels())
        if labels is None or len(labels) == 0:
            return

        _, indices = np.unique(labels, return_index=True)
        offset = self.bar_width / 2 + (1 - self.bar_width) / 2
        for index in sorted(indices)[1:]:
            line = pg.InfiniteLine(pos=index - offset, angle=90)
            self.addItem(line)

    def select_by_rectangle(self, rect: QRectF):
        if self.bar_item is None:
            return

        x0, x1 = sorted((rect.topLeft().x(), rect.bottomRight().x()))
        y0, y1 = sorted((rect.topLeft().y(), rect.bottomRight().y()))
        x = self.bar_item.opts["x"]
        height = self.bar_item.opts["height"]
        d = self.bar_width / 2
        # positive bars
        mask = (x0 <= x + d) & (x1 >= x - d) & (y0 <= height) & (y1 > 0)
        # negative bars
        mask |= (x0 <= x + d) & (x1 >= x - d) & (y0 <= 0) & (y1 > height)
        self.select_by_indices(list(np.flatnonzero(mask)))

    def select_by_click(self, p: QPointF):
        if self.bar_item is None:
            return

        index = self.__get_index_at(p)
        self.select_by_indices([index] if index is not None else [])

    def __get_index_at(self, p: QPointF):
        x = p.x()
        index = round(x)
        heights = self.bar_item.opts["height"]
        if 0 <= index < len(heights) and abs(x - index) <= self.bar_width / 2:
            height = heights[index]  # pylint: disable=unsubscriptable-object
            if 0 <= p.y() <= height or height <= p.y() <= 0:
                return index
        return None

    def select_by_indices(self, indices: List):
        keys = QApplication.keyboardModifiers()
        if keys & Qt.ControlModifier:
            self.selection = list(set(self.selection) ^ set(indices))
        elif keys & Qt.AltModifier:
            self.selection = list(set(self.selection) - set(indices))
        elif keys & Qt.ShiftModifier:
            self.selection = list(set(self.selection) | set(indices))
        else:
            self.selection = list(set(indices))
        self.__select_bars()
        self.selection_changed.emit(self.selection)

    def __select_bars(self):
        if self.bar_item is None:
            return

        n = len(self.bar_item.opts["height"])
        pens = np.full(n, pg.mkPen(QColor(Qt.white)))
        pen = pg.mkPen(QColor(Qt.black))
        pen.setStyle(Qt.DashLine)
        pens[self.selection] = pen
        self.bar_item.setOpts(pens=pens)

    def help_event(self, ev: QGraphicsSceneHelpEvent):
        if self.bar_item is None:
            return False

        index = self.__get_index_at(self.bar_item.mapFromScene(ev.scenePos()))
        text = ""
        if index is not None:
            text = self.master.get_tooltip(index)
        if text:
            QToolTip.showText(ev.screenPos(), text, widget=self)
            return True
        else:
            return False


class OWBarPlot(OWWidget):
    name = "Bar Plot"
    description = "Visualizes comparisons among categorical variables."
    icon = "icons/BarPlot.svg"
    priority = 190
    keywords = ["chart"]

    class Inputs:
        data = Input("Data", Table, default=True)
        data_subset = Input("Data Subset", Table)

    class Outputs:
        selected_data = Output("Selected Data", Table, default=True)
        annotated_data = Output(ANNOTATED_DATA_SIGNAL_NAME, Table)

    buttons_area_orientation = Qt.Vertical
    settingsHandler = DomainContextHandler()
    selected_var = ContextSetting(None)
    group_var = ContextSetting(None)
    annot_var = ContextSetting(None)
    color_var = ContextSetting(None)
    auto_commit = Setting(True)
    selection = Setting(None, schema_only=True)
    visual_settings = Setting({}, schema_only=True)

    graph = SettingProvider(BarPlotGraph)
    graph_name = "graph.plotItem"

    class Error(OWWidget.Error):
        no_cont_features = Msg("Plotting requires a numeric feature.")

    class Information(OWWidget.Information):
        too_many_instances = Msg("Data has too many instances. Only first {}"
                                 " are shown.".format(MAX_INSTANCES))

    enumeration = "Enumeration"

    def __init__(self):
        super().__init__()
        self.data: Optional[Table] = None
        self.orig_data: Optional[Table] = None
        self.subset_data: Optional[Table] = None
        self.subset_indices = []
        self.graph: Optional[BarPlotGraph] = None
        self._selected_var_model: Optional[DomainModel] = None
        self._group_var_model: Optional[DomainModel] = None
        self._annot_var_model: Optional[DomainModel] = None
        self._color_var_model: Optional[DomainModel] = None
        self.__pending_selection = self.selection

        self.setup_gui()
        VisualSettingsDialog(
            self, self.graph.parameter_setter.initial_settings
        )

    def setup_gui(self):
        self._add_graph()
        self._add_controls()

    def _add_graph(self):
        box = gui.vBox(self.mainArea, True, margin=0)
        self.graph = BarPlotGraph(self)
        self.graph.selection_changed.connect(self.__selection_changed)
        box.layout().addWidget(self.graph)

    def __selection_changed(self, indices: List):
        self.selection = list(set(self.grouped_indices[indices]))
        self.commit.deferred()

    def _add_controls(self):
        box = gui.vBox(self.controlArea, True)
        gui.rubber(self.controlArea)
        self._selected_var_model = DomainModel(valid_types=ContinuousVariable)
        gui.comboBox(
            box, self, "selected_var", label="Values:",
            model=self._selected_var_model, contentsLength=12, searchable=True,
            orientation=Qt.Horizontal, callback=self.__parameter_changed,
        )

        self._group_var_model = DomainModel(
            placeholder="None", valid_types=DiscreteVariable
        )
        gui.comboBox(
            box, self, "group_var", label="Group by:",
            model=self._group_var_model, contentsLength=12, searchable=True,
            orientation=Qt.Horizontal, callback=self.__group_var_changed,
        )

        self._annot_var_model = DomainModel(
            placeholder="None",
            valid_types=(DiscreteVariable, StringVariable)
        )
        self._annot_var_model.order = self._annot_var_model.order[:1] + \
                                      (self.enumeration,) + \
                                      self._annot_var_model.order[1:]
        gui.comboBox(
            box, self, "annot_var", label="Annotations:",
            model=self._annot_var_model, contentsLength=12, searchable=True,
            orientation=Qt.Horizontal, callback=self.__parameter_changed,
        )

        self._color_var_model = DomainModel(
            placeholder="(Same color)", valid_types=DiscreteVariable
        )
        gui.comboBox(
            box, self, "color_var", label="Color:",
            model=self._color_var_model,
            contentsLength=12, searchable=True, orientation=Qt.Horizontal,
            callback=self.__parameter_changed,
        )

        plot_gui = OWPlotGUI(self)
        plot_gui.box_zoom_select(self.buttonsArea)

        gui.auto_send(self.buttonsArea, self, "auto_commit")

    def __parameter_changed(self):
        self.graph.reset_graph()

    def __group_var_changed(self):
        self.clear_cache()
        self.graph.selection = self.grouped_indices_inverted
        self.__parameter_changed()

    @property
    @lru_cache()
    def grouped_indices(self):
        indices = []
        if self.data:
            indices = np.arange(len(self.data))
            if self.group_var:
                group_by = self.data.get_column(self.group_var)
                indices = np.argsort(group_by, kind="mergesort")
        return indices

    @property
    def grouped_indices_inverted(self):
        mask = np.isin(self.grouped_indices, self.selection)
        return np.flatnonzero(mask)

    @property
    def grouped_data(self):
        return self.data[self.grouped_indices]

    @Inputs.data
    @check_sql_input
    def set_data(self, data: Optional[Table]):
        self.closeContext()
        self.clear()
        self.orig_data = self.data = data
        self.check_data()
        self.init_attr_values()
        self.openContext(self.data)
        self.clear_cache()
        self.commit.now()

    def check_data(self):
        self.clear_messages()
        if self.data is not None:
            if self.data.domain.has_continuous_attributes(True, True) == 0:
                self.Error.no_cont_features()
                self.data = None
            elif len(self.data) > MAX_INSTANCES:
                self.Information.too_many_instances()
                self.data = self.data[:MAX_INSTANCES]

    def init_attr_values(self):
        domain = self.data.domain if self.data else None
        for model, var in ((self._selected_var_model, "selected_var"),
                           (self._group_var_model, "group_var"),
                           (self._annot_var_model, "annot_var"),
                           (self._color_var_model, "color_var")):
            model.set_domain(domain)
            setattr(self, var, None)

        if self._selected_var_model:
            self.selected_var = self._selected_var_model[0]
        if domain is not None and domain.has_discrete_class:
            self.color_var = domain.class_var

    @Inputs.data_subset
    @check_sql_input
    def set_subset_data(self, data: Optional[Table]):
        self.subset_data = data

    def handleNewSignals(self):
        self._handle_subset_data()
        self.setup_plot()

    def _handle_subset_data(self):
        sub_ids = {e.id for e in self.subset_data} \
            if self.subset_data is not None else {}
        self.subset_indices = []
        if self.data is not None and sub_ids:
            self.subset_indices = [x.id for x in self.data if x.id in sub_ids]

    def get_values(self) -> Optional[np.ndarray]:
        if not self.data or not self.selected_var:
            return None
        return self.grouped_data.get_column(self.selected_var)

    def get_labels(self) -> Optional[Union[List, np.ndarray]]:
        if not self.data:
            return None
        elif not self.annot_var:
            return []
        elif self.annot_var == self.enumeration:
            return np.arange(1, len(self.data) + 1)[self.grouped_indices]
        else:
            return [self.annot_var.str_val(row[self.annot_var])
                    for row in self.grouped_data]

    def get_group_labels(self) -> Optional[List]:
        if not self.data:
            return None
        elif not self.group_var:
            return []
        else:
            return [self.group_var.str_val(row[self.group_var])
                    for row in self.grouped_data]

    def get_legend_data(self) -> List:
        if not self.data or not self.color_var:
            return []
        else:
            assert self.color_var.is_discrete
            return [(QColor(*color), text) for color, text in
                    zip(self.color_var.colors, self.color_var.values)]

    def get_colors(self) -> Optional[List[QColor]]:
        def create_color(i, id_):
            lighter = id_ not in self.subset_indices and self.subset_indices
            alpha = 50 if lighter else 255
            if np.isnan(i):
                return QColor(*(128, 128, 128, alpha))
            return QColor(*np.append(self.color_var.colors[int(i)], alpha))

        if not self.data:
            return None
        elif not self.color_var:
            return [create_color(np.nan, id_) for id_ in self.grouped_data.ids]
        else:
            assert self.color_var.is_discrete
            col = self.grouped_data.get_column(self.color_var)
            return [create_color(i, id_) for id_, i in
                    zip(self.grouped_data.ids, col)]

    def get_tooltip(self, index: int) -> str:
        if not self.data:
            return ""
        row = self.grouped_data[index]
        attrs = [self.selected_var]
        if self.group_var and self.group_var not in attrs:
            attrs.append(self.group_var)
        if isinstance(self.annot_var, Variable) and self.annot_var not in attrs:
            attrs.append(self.annot_var)
        if self.color_var and self.color_var not in attrs:
            attrs.append(self.color_var)
        text = "<br/>".join(escape('{} = {}'.format(var.name, row[var]))
                            for var in attrs)
        others = instance_tooltip(self.data.domain, row, skip_attrs=attrs)
        if others:
            text = "<b>{}</b><br/><br/>{}".format(text, others)
        return text

    def get_axes(self) -> Optional[Tuple[str, str, str]]:
        if not self.data:
            return None
        return (self.selected_var.name,
                self.group_var.name if self.group_var else "",
                self.annot_var if self.annot_var else "")

    def setup_plot(self):
        self.graph.reset_graph()
        self.apply_selection()

    def apply_selection(self):
        if self.data and self.__pending_selection is not None:
            self.selection = [i for i in self.__pending_selection
                              if i < len(self.data)]
            self.graph.select_by_indices(self.grouped_indices_inverted)
            self.__pending_selection = None

    @gui.deferred
    def commit(self):
        selected = None
        if self.data is not None and bool(self.selection):
            selected = self.data[self.selection]
        annotated = create_annotated_table(self.orig_data, self.selection)
        self.Outputs.selected_data.send(selected)
        self.Outputs.annotated_data.send(annotated)

    def clear(self):
        self.selection = None
        self.graph.selection = []
        self.clear_cache()

    @staticmethod
    def clear_cache():
        OWBarPlot.grouped_indices.fget.cache_clear()

    def send_report(self):
        if self.data is None:
            return
        self.report_plot()

    def set_visual_settings(self, key: KeyType, value: ValueType):
        self.graph.parameter_setter.set_parameter(key, value)
        self.visual_settings[key] = value

    def sizeHint(self):  # pylint: disable=no-self-use
        return QSize(1132, 708)

    def showEvent(self, event):
        super().showEvent(event)
        self.graph.reset_view()


if __name__ == "__main__":
    from Orange.widgets.utils.widgetpreview import WidgetPreview

    iris = Table("iris")
    WidgetPreview(OWBarPlot).run(set_data=iris[::3],
                                 set_subset_data=iris[::15])

```
--- END FILE ---

Please first localize the bug based on the issue statement, and then generate *SEARCH/REPLACE* edits to fix the issue.

Every *SEARCH/REPLACE* edit must use this format:
1. The file path
2. The start of search block: <<<<<<< SEARCH
3. A contiguous chunk of lines to search for in the existing source code
4. The dividing line: =======
5. The lines to replace into the source code
6. The end of the replace block: >>>>>>> REPLACE

Here is an example:

```python
### mathweb/flask/app.py
<<<<<<< SEARCH
from flask import Flask
=======
import math
from flask import Flask
>>>>>>> REPLACE
```
</solution>

Please note that the *SEARCH/REPLACE* edit REQUIRES PROPER INDENTATION. If you would like to add the line '        print(x)', you must fully write that out, with all those spaces before the code!
Wrap each *SEARCH/REPLACE* edit in a code block as shown in the example above. If you have multiple *SEARCH/REPLACE* edits, use a separate code block for each one.
[ISSUE]
**Title: Enumeration Annotations Return Numeric Values Causing Validation Errors**

**Description**

When the annotation variable is set to enumeration in the Bar Plot widget, the generated labels are numeric values instead of strings. This leads to errors during label validation, especially when the code expects labels to be strings.

**Example Code**

```python
widget.annot_var = 'enumeration'
labels = widget.get_labels()
if labels and all(isinstance(label, str) for label in labels):
    # Proceed with processing
```

**Expected Behavior**

Labels generated from enumeration annotations should be a list of strings representing the enumeration indices, such as `['1', '2', '3', ...]`.

**Actual Behavior**

Labels are returned as a NumPy array of numeric values, like `array([1, 2, 3, ...])`. This causes a `ValueError` during validation:

```
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
```

[/ISSUE]
{
    "TestOWBarPlot.test_annotate_by_enumeration": "PASSED",
    "TestOWBarPlot.test_data_subset": "PASSED",
    "TestOWBarPlot.test_datasets": "PASSED",
    "TestOWBarPlot.test_group_axis": "PASSED",
    "TestOWBarPlot.test_hidden_vars": "PASSED",
    "TestOWBarPlot.test_image_export": "PASSED",
    "TestOWBarPlot.test_init_attr_values": "PASSED",
    "TestOWBarPlot.test_input_no_cont_features": "PASSED",
    "TestOWBarPlot.test_input_to_many_instances": "PASSED",
    "TestOWBarPlot.test_minimum_size": "PASSED",
    "TestOWBarPlot.test_msg_base_class": "PASSED",
    "TestOWBarPlot.test_outputs": "PASSED",
    "TestOWBarPlot.test_plot": "PASSED",
    "TestOWBarPlot.test_plot_data_subset": "PASSED",
    "TestOWBarPlot.test_retain_selection_on_param_change": "PASSED",
    "TestOWBarPlot.test_saved_workflow": "PASSED",
    "TestOWBarPlot.test_selection": "PASSED",
    "TestOWBarPlot.test_send_report": "PASSED",
    "TestOWBarPlot.test_sparse_data": "PASSED",
    "TestOWBarPlot.test_visual_settings": "PASSED"
}
diff --git a/Orange/widgets/visualize/owbarplot.py b/Orange/widgets/visualize/owbarplot.py
index 9d9e9dcac..45ec95ead 100644
--- a/Orange/widgets/visualize/owbarplot.py
+++ b/Orange/widgets/visualize/owbarplot.py
@@ -572,7 +572,10 @@ class OWBarPlot(OWWidget):
         elif not self.annot_var:
             return []
         elif self.annot_var == self.enumeration:
-            return np.arange(1, len(self.data) + 1)[self.grouped_indices]
+            return [
+                str(x)
+                for x in np.arange(1, len(self.data) + 1)[self.grouped_indices]
+            ]
         else:
             return [self.annot_var.str_val(row[self.annot_var])
                     for row in self.grouped_data]

{"Orange/widgets/visualize/owbarplot.py": "from typing import List, Optional, Tuple, Union, Dict\nfrom functools import lru_cache\nfrom xml.sax.saxutils import escape\n\nimport numpy as np\n\nfrom AnyQt.QtCore import Qt, QPointF, QSize, Signal, QRectF\nfrom AnyQt.QtGui import QColor\nfrom AnyQt.QtWidgets import QApplication, QToolTip, QGraphicsSceneHelpEvent\n\nimport pyqtgraph as pg\n\nfrom orangewidget.utils.visual_settings_dlg import VisualSettingsDialog, \\\n    KeyType, ValueType\n\nfrom Orange.data import Table, DiscreteVariable, ContinuousVariable, \\\n    StringVariable, Variable\nfrom Orange.widgets import gui\nfrom Orange.widgets.settings import Setting, ContextSetting, \\\n    DomainContextHandler, SettingProvider\nfrom Orange.widgets.utils.annotated_data import create_annotated_table, \\\n    ANNOTATED_DATA_SIGNAL_NAME\nfrom Orange.widgets.utils import instance_tooltip\nfrom Orange.widgets.utils.itemmodels import DomainModel\nfrom Orange.widgets.utils.plot import OWPlotGUI, SELECT, PANNING, ZOOMING\nfrom Orange.widgets.utils.sql import check_sql_input\nfrom Orange.widgets.visualize.owscatterplotgraph import LegendItem\nfrom Orange.widgets.visualize.utils.customizableplot import Updater, \\\n    CommonParameterSetter\nfrom Orange.widgets.visualize.utils.plotutils import AxisItem, \\\n    HelpEventDelegate, PlotWidget\nfrom Orange.widgets.widget import OWWidget, Input, Output, Msg\n\nMAX_INSTANCES = 200\n\n\nclass BarPlotViewBox(pg.ViewBox):\n    def __init__(self, parent):\n        super().__init__()\n        self.graph = parent\n        self.setMouseMode(self.RectMode)\n\n    def mouseDragEvent(self, ev, axis=None):\n        if self.graph.state == SELECT and axis is None:\n            ev.accept()\n            if ev.button() == Qt.LeftButton:\n                self.updateScaleBox(ev.buttonDownPos(), ev.pos())\n                if ev.isFinish():\n                    self.rbScaleBox.hide()\n                    p1, p2 = ev.buttonDownPos(ev.button()), ev.pos()\n                    p1 = self.mapToView(p1)\n                    p2 = self.mapToView(p2)\n                    self.graph.select_by_rectangle(QRectF(p1, p2))\n                else:\n                    self.updateScaleBox(ev.buttonDownPos(), ev.pos())\n        elif self.graph.state == ZOOMING or self.graph.state == PANNING:\n            super().mouseDragEvent(ev, axis=axis)\n        else:\n            ev.ignore()\n\n    def mouseClickEvent(self, ev):\n        if ev.button() == Qt.LeftButton:\n            self.graph.select_by_click(self.mapSceneToView(ev.scenePos()))\n            ev.accept()\n\n\nclass ParameterSetter(CommonParameterSetter):\n    GRID_LABEL, SHOW_GRID_LABEL = \"Gridlines\", \"Show\"\n    DEFAULT_ALPHA_GRID, DEFAULT_SHOW_GRID = 80, True\n    BOTTOM_AXIS_LABEL, GROUP_AXIS_LABEL = \"Bottom axis\", \"Group axis\"\n    IS_VERTICAL_LABEL = \"Vertical ticks\"\n\n    def __init__(self, master):\n        self.grid_settings: Dict = None\n        self.master: BarPlotGraph = master\n        super().__init__()\n\n    def update_setters(self):\n        self.grid_settings = {\n            Updater.ALPHA_LABEL: self.DEFAULT_ALPHA_GRID,\n            self.SHOW_GRID_LABEL: self.DEFAULT_SHOW_GRID,\n        }\n\n        self.initial_settings = {\n            self.LABELS_BOX: {\n                self.FONT_FAMILY_LABEL: self.FONT_FAMILY_SETTING,\n                self.TITLE_LABEL: self.FONT_SETTING,\n                self.AXIS_TITLE_LABEL: self.FONT_SETTING,\n                self.AXIS_TICKS_LABEL: self.FONT_SETTING,\n                self.LEGEND_LABEL: self.FONT_SETTING,\n            },\n            self.ANNOT_BOX: {\n                self.TITLE_LABEL: {self.TITLE_LABEL: (\"\", \"\")},\n            },\n            self.PLOT_BOX: {\n                self.GRID_LABEL: {\n                    self.SHOW_GRID_LABEL: (None, True),\n                    Updater.ALPHA_LABEL: (range(0, 255, 5),\n                                          self.DEFAULT_ALPHA_GRID),\n                },\n                self.BOTTOM_AXIS_LABEL: {\n                    self.IS_VERTICAL_LABEL: (None, True),\n                },\n                self.GROUP_AXIS_LABEL: {\n                    self.IS_VERTICAL_LABEL: (None, False),\n                },\n            },\n        }\n\n        def update_grid(**settings):\n            self.grid_settings.update(**settings)\n            self.master.showGrid(y=self.grid_settings[self.SHOW_GRID_LABEL],\n                          alpha=self.grid_settings[Updater.ALPHA_LABEL] / 255)\n\n        def update_bottom_axis(**settings):\n            axis = self.master.getAxis(\"bottom\")\n            axis.setRotateTicks(settings[self.IS_VERTICAL_LABEL])\n\n        def update_group_axis(**settings):\n            axis = self.master.group_axis\n            axis.setRotateTicks(settings[self.IS_VERTICAL_LABEL])\n\n        self._setters[self.PLOT_BOX] = {\n            self.GRID_LABEL: update_grid,\n            self.BOTTOM_AXIS_LABEL: update_bottom_axis,\n            self.GROUP_AXIS_LABEL: update_group_axis,\n        }\n\n    @property\n    def title_item(self):\n        return self.master.getPlotItem().titleLabel\n\n    @property\n    def axis_items(self):\n        return [value[\"item\"] for value in\n                self.master.getPlotItem().axes.values()]\n\n    @property\n    def legend_items(self):\n        return self.master.legend.items\n\n\nclass BarPlotGraph(PlotWidget):\n    selection_changed = Signal(list)\n    bar_width = 0.7\n\n    def __init__(self, master, parent=None):\n        self.selection = []\n        self.master: OWBarPlot = master\n        self.state: int = SELECT\n        self.bar_item: pg.BarGraphItem = None\n        super().__init__(\n            parent=parent,\n            viewBox=BarPlotViewBox(self),\n            enableMenu=False,\n            axisItems={\"bottom\": AxisItem(orientation=\"bottom\",\n                                          rotate_ticks=True),\n                       \"left\": AxisItem(orientation=\"left\")}\n        )\n        self.hideAxis(\"left\")\n        self.hideAxis(\"bottom\")\n        self.getPlotItem().buttonsHidden = True\n        self.getPlotItem().setContentsMargins(10, 0, 0, 10)\n        self.getViewBox().setMouseMode(pg.ViewBox.PanMode)\n\n        self.group_axis = AxisItem(\"bottom\")\n        self.group_axis.hide()\n        self.group_axis.linkToView(self.getViewBox())\n        self.getPlotItem().layout.addItem(self.group_axis, 4, 1)\n\n        self.legend = self._create_legend()\n\n        self.tooltip_delegate = HelpEventDelegate(self.help_event)\n        self.scene().installEventFilter(self.tooltip_delegate)\n\n        self.parameter_setter = ParameterSetter(self)\n\n        self.showGrid(y=self.parameter_setter.DEFAULT_SHOW_GRID,\n                      alpha=self.parameter_setter.DEFAULT_ALPHA_GRID / 255)\n\n    def _create_legend(self):\n        legend = LegendItem()\n        legend.setParentItem(self.getViewBox())\n        legend.anchor((1, 0), (1, 0), offset=(-3, 1))\n        legend.hide()\n        return legend\n\n    def update_legend(self):\n        self.legend.clear()\n        self.legend.hide()\n        for color, text in self.master.get_legend_data():\n            dot = pg.ScatterPlotItem(\n                pen=pg.mkPen(color=color),\n                brush=pg.mkBrush(color=color)\n            )\n            self.legend.addItem(dot, escape(text))\n            self.legend.show()\n        Updater.update_legend_font(self.legend.items,\n                                   **self.parameter_setter.legend_settings)\n\n    def reset_graph(self):\n        self.clear()\n        self.update_bars()\n        self.update_axes()\n        self.update_group_lines()\n        self.update_legend()\n        self.reset_view()\n\n    def update_bars(self):\n        if self.bar_item is not None:\n            self.removeItem(self.bar_item)\n            self.bar_item = None\n\n        values = self.master.get_values()\n        if values is None:\n            return\n\n        self.bar_item = pg.BarGraphItem(\n            x=np.arange(len(values)),\n            height=values,\n            width=self.bar_width,\n            pen=pg.mkPen(QColor(Qt.white)),\n            labels=self.master.get_labels(),\n            brushes=self.master.get_colors(),\n        )\n        self.addItem(self.bar_item)\n        self.__select_bars()\n\n    def update_axes(self):\n        if self.bar_item is not None:\n            self.showAxis(\"left\")\n            self.showAxis(\"bottom\")\n            self.group_axis.show()\n\n            vals_label, group_label, annot_label = self.master.get_axes()\n            self.setLabel(axis=\"left\", text=vals_label)\n            self.setLabel(axis=\"bottom\", text=annot_label)\n            self.group_axis.setLabel(group_label)\n\n            ticks = [list(enumerate(self.master.get_labels()))]\n            self.getAxis('bottom').setTicks(ticks)\n\n            labels = np.array(self.master.get_group_labels())\n            _, indices, counts = \\\n                np.unique(labels, return_index=True, return_counts=True)\n            ticks = [[(i + (c - 1) / 2, labels[i]) for i, c in\n                      zip(indices, counts)]]\n            self.group_axis.setTicks(ticks)\n\n            if not group_label:\n                self.group_axis.hide()\n            elif not annot_label:\n                self.hideAxis(\"bottom\")\n        else:\n            self.hideAxis(\"left\")\n            self.hideAxis(\"bottom\")\n            self.group_axis.hide()\n\n    def reset_view(self):\n        if self.bar_item is None:\n            return\n        values = np.append(self.bar_item.opts[\"height\"], 0)\n        min_ = np.nanmin(values)\n        max_ = -min_ + np.nanmax(values)\n        rect = QRectF(-0.5, min_, len(values) - 1, max_)\n        self.getViewBox().setRange(rect)\n\n    def zoom_button_clicked(self):\n        self.state = ZOOMING\n        self.getViewBox().setMouseMode(pg.ViewBox.RectMode)\n\n    def pan_button_clicked(self):\n        self.state = PANNING\n        self.getViewBox().setMouseMode(pg.ViewBox.PanMode)\n\n    def select_button_clicked(self):\n        self.state = SELECT\n        self.getViewBox().setMouseMode(pg.ViewBox.RectMode)\n\n    def reset_button_clicked(self):\n        self.reset_view()\n\n    def update_group_lines(self):\n        if self.bar_item is None:\n            return\n\n        labels = np.array(self.master.get_group_labels())\n        if labels is None or len(labels) == 0:\n            return\n\n        _, indices = np.unique(labels, return_index=True)\n        offset = self.bar_width / 2 + (1 - self.bar_width) / 2\n        for index in sorted(indices)[1:]:\n            line = pg.InfiniteLine(pos=index - offset, angle=90)\n            self.addItem(line)\n\n    def select_by_rectangle(self, rect: QRectF):\n        if self.bar_item is None:\n            return\n\n        x0, x1 = sorted((rect.topLeft().x(), rect.bottomRight().x()))\n        y0, y1 = sorted((rect.topLeft().y(), rect.bottomRight().y()))\n        x = self.bar_item.opts[\"x\"]\n        height = self.bar_item.opts[\"height\"]\n        d = self.bar_width / 2\n        # positive bars\n        mask = (x0 <= x + d) & (x1 >= x - d) & (y0 <= height) & (y1 > 0)\n        # negative bars\n        mask |= (x0 <= x + d) & (x1 >= x - d) & (y0 <= 0) & (y1 > height)\n        self.select_by_indices(list(np.flatnonzero(mask)))\n\n    def select_by_click(self, p: QPointF):\n        if self.bar_item is None:\n            return\n\n        index = self.__get_index_at(p)\n        self.select_by_indices([index] if index is not None else [])\n\n    def __get_index_at(self, p: QPointF):\n        x = p.x()\n        index = round(x)\n        heights = self.bar_item.opts[\"height\"]\n        if 0 <= index < len(heights) and abs(x - index) <= self.bar_width / 2:\n            height = heights[index]  # pylint: disable=unsubscriptable-object\n            if 0 <= p.y() <= height or height <= p.y() <= 0:\n                return index\n        return None\n\n    def select_by_indices(self, indices: List):\n        keys = QApplication.keyboardModifiers()\n        if keys & Qt.ControlModifier:\n            self.selection = list(set(self.selection) ^ set(indices))\n        elif keys & Qt.AltModifier:\n            self.selection = list(set(self.selection) - set(indices))\n        elif keys & Qt.ShiftModifier:\n            self.selection = list(set(self.selection) | set(indices))\n        else:\n            self.selection = list(set(indices))\n        self.__select_bars()\n        self.selection_changed.emit(self.selection)\n\n    def __select_bars(self):\n        if self.bar_item is None:\n            return\n\n        n = len(self.bar_item.opts[\"height\"])\n        pens = np.full(n, pg.mkPen(QColor(Qt.white)))\n        pen = pg.mkPen(QColor(Qt.black))\n        pen.setStyle(Qt.DashLine)\n        pens[self.selection] = pen\n        self.bar_item.setOpts(pens=pens)\n\n    def help_event(self, ev: QGraphicsSceneHelpEvent):\n        if self.bar_item is None:\n            return False\n\n        index = self.__get_index_at(self.bar_item.mapFromScene(ev.scenePos()))\n        text = \"\"\n        if index is not None:\n            text = self.master.get_tooltip(index)\n        if text:\n            QToolTip.showText(ev.screenPos(), text, widget=self)\n            return True\n        else:\n            return False\n\n\nclass OWBarPlot(OWWidget):\n    name = \"Bar Plot\"\n    description = \"Visualizes comparisons among categorical variables.\"\n    icon = \"icons/BarPlot.svg\"\n    priority = 190\n    keywords = [\"chart\"]\n\n    class Inputs:\n        data = Input(\"Data\", Table, default=True)\n        data_subset = Input(\"Data Subset\", Table)\n\n    class Outputs:\n        selected_data = Output(\"Selected Data\", Table, default=True)\n        annotated_data = Output(ANNOTATED_DATA_SIGNAL_NAME, Table)\n\n    buttons_area_orientation = Qt.Vertical\n    settingsHandler = DomainContextHandler()\n    selected_var = ContextSetting(None)\n    group_var = ContextSetting(None)\n    annot_var = ContextSetting(None)\n    color_var = ContextSetting(None)\n    auto_commit = Setting(True)\n    selection = Setting(None, schema_only=True)\n    visual_settings = Setting({}, schema_only=True)\n\n    graph = SettingProvider(BarPlotGraph)\n    graph_name = \"graph.plotItem\"\n\n    class Error(OWWidget.Error):\n        no_cont_features = Msg(\"Plotting requires a numeric feature.\")\n\n    class Information(OWWidget.Information):\n        too_many_instances = Msg(\"Data has too many instances. Only first {}\"\n                                 \" are shown.\".format(MAX_INSTANCES))\n\n    enumeration = \"Enumeration\"\n\n    def __init__(self):\n        super().__init__()\n        self.data: Optional[Table] = None\n        self.orig_data: Optional[Table] = None\n        self.subset_data: Optional[Table] = None\n        self.subset_indices = []\n        self.graph: Optional[BarPlotGraph] = None\n        self._selected_var_model: Optional[DomainModel] = None\n        self._group_var_model: Optional[DomainModel] = None\n        self._annot_var_model: Optional[DomainModel] = None\n        self._color_var_model: Optional[DomainModel] = None\n        self.__pending_selection = self.selection\n\n        self.setup_gui()\n        VisualSettingsDialog(\n            self, self.graph.parameter_setter.initial_settings\n        )\n\n    def setup_gui(self):\n        self._add_graph()\n        self._add_controls()\n\n    def _add_graph(self):\n        box = gui.vBox(self.mainArea, True, margin=0)\n        self.graph = BarPlotGraph(self)\n        self.graph.selection_changed.connect(self.__selection_changed)\n        box.layout().addWidget(self.graph)\n\n    def __selection_changed(self, indices: List):\n        self.selection = list(set(self.grouped_indices[indices]))\n        self.commit.deferred()\n\n    def _add_controls(self):\n        box = gui.vBox(self.controlArea, True)\n        gui.rubber(self.controlArea)\n        self._selected_var_model = DomainModel(valid_types=ContinuousVariable)\n        gui.comboBox(\n            box, self, \"selected_var\", label=\"Values:\",\n            model=self._selected_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__parameter_changed,\n        )\n\n        self._group_var_model = DomainModel(\n            placeholder=\"None\", valid_types=DiscreteVariable\n        )\n        gui.comboBox(\n            box, self, \"group_var\", label=\"Group by:\",\n            model=self._group_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__group_var_changed,\n        )\n\n        self._annot_var_model = DomainModel(\n            placeholder=\"None\",\n            valid_types=(DiscreteVariable, StringVariable)\n        )\n        self._annot_var_model.order = self._annot_var_model.order[:1] + \\\n                                      (self.enumeration,) + \\\n                                      self._annot_var_model.order[1:]\n        gui.comboBox(\n            box, self, \"annot_var\", label=\"Annotations:\",\n            model=self._annot_var_model, contentsLength=12, searchable=True,\n            orientation=Qt.Horizontal, callback=self.__parameter_changed,\n        )\n\n        self._color_var_model = DomainModel(\n            placeholder=\"(Same color)\", valid_types=DiscreteVariable\n        )\n        gui.comboBox(\n            box, self, \"color_var\", label=\"Color:\",\n            model=self._color_var_model,\n            contentsLength=12, searchable=True, orientation=Qt.Horizontal,\n            callback=self.__parameter_changed,\n        )\n\n        plot_gui = OWPlotGUI(self)\n        plot_gui.box_zoom_select(self.buttonsArea)\n\n        gui.auto_send(self.buttonsArea, self, \"auto_commit\")\n\n    def __parameter_changed(self):\n        self.graph.reset_graph()\n\n    def __group_var_changed(self):\n        self.clear_cache()\n        self.graph.selection = self.grouped_indices_inverted\n        self.__parameter_changed()\n\n    @property\n    @lru_cache()\n    def grouped_indices(self):\n        indices = []\n        if self.data:\n            indices = np.arange(len(self.data))\n            if self.group_var:\n                group_by = self.data.get_column(self.group_var)\n                indices = np.argsort(group_by, kind=\"mergesort\")\n        return indices\n\n    @property\n    def grouped_indices_inverted(self):\n        mask = np.isin(self.grouped_indices, self.selection)\n        return np.flatnonzero(mask)\n\n    @property\n    def grouped_data(self):\n        return self.data[self.grouped_indices]\n\n    @Inputs.data\n    @check_sql_input\n    def set_data(self, data: Optional[Table]):\n        self.closeContext()\n        self.clear()\n        self.orig_data = self.data = data\n        self.check_data()\n        self.init_attr_values()\n        self.openContext(self.data)\n        self.clear_cache()\n        self.commit.now()\n\n    def check_data(self):\n        self.clear_messages()\n        if self.data is not None:\n            if self.data.domain.has_continuous_attributes(True, True) == 0:\n                self.Error.no_cont_features()\n                self.data = None\n            elif len(self.data) > MAX_INSTANCES:\n                self.Information.too_many_instances()\n                self.data = self.data[:MAX_INSTANCES]\n\n    def init_attr_values(self):\n        domain = self.data.domain if self.data else None\n        for model, var in ((self._selected_var_model, \"selected_var\"),\n                           (self._group_var_model, \"group_var\"),\n                           (self._annot_var_model, \"annot_var\"),\n                           (self._color_var_model, \"color_var\")):\n            model.set_domain(domain)\n            setattr(self, var, None)\n\n        if self._selected_var_model:\n            self.selected_var = self._selected_var_model[0]\n        if domain is not None and domain.has_discrete_class:\n            self.color_var = domain.class_var\n\n    @Inputs.data_subset\n    @check_sql_input\n    def set_subset_data(self, data: Optional[Table]):\n        self.subset_data = data\n\n    def handleNewSignals(self):\n        self._handle_subset_data()\n        self.setup_plot()\n\n    def _handle_subset_data(self):\n        sub_ids = {e.id for e in self.subset_data} \\\n            if self.subset_data is not None else {}\n        self.subset_indices = []\n        if self.data is not None and sub_ids:\n            self.subset_indices = [x.id for x in self.data if x.id in sub_ids]\n\n    def get_values(self) -> Optional[np.ndarray]:\n        if not self.data or not self.selected_var:\n            return None\n        return self.grouped_data.get_column(self.selected_var)\n\n    def get_labels(self) -> Optional[Union[List, np.ndarray]]:\n        if not self.data:\n            return None\n        elif not self.annot_var:\n            return []\n        elif self.annot_var == self.enumeration:\n            return np.arange(1, len(self.data) + 1)[self.grouped_indices]\n        else:\n            return [self.annot_var.str_val(row[self.annot_var])\n                    for row in self.grouped_data]\n\n    def get_group_labels(self) -> Optional[List]:\n        if not self.data:\n            return None\n        elif not self.group_var:\n            return []\n        else:\n            return [self.group_var.str_val(row[self.group_var])\n                    for row in self.grouped_data]\n\n    def get_legend_data(self) -> List:\n        if not self.data or not self.color_var:\n            return []\n        else:\n            assert self.color_var.is_discrete\n            return [(QColor(*color), text) for color, text in\n                    zip(self.color_var.colors, self.color_var.values)]\n\n    def get_colors(self) -> Optional[List[QColor]]:\n        def create_color(i, id_):\n            lighter = id_ not in self.subset_indices and self.subset_indices\n            alpha = 50 if lighter else 255\n            if np.isnan(i):\n                return QColor(*(128, 128, 128, alpha))\n            return QColor(*np.append(self.color_var.colors[int(i)], alpha))\n\n        if not self.data:\n            return None\n        elif not self.color_var:\n            return [create_color(np.nan, id_) for id_ in self.grouped_data.ids]\n        else:\n            assert self.color_var.is_discrete\n            col = self.grouped_data.get_column(self.color_var)\n            return [create_color(i, id_) for id_, i in\n                    zip(self.grouped_data.ids, col)]\n\n    def get_tooltip(self, index: int) -> str:\n        if not self.data:\n            return \"\"\n        row = self.grouped_data[index]\n        attrs = [self.selected_var]\n        if self.group_var and self.group_var not in attrs:\n            attrs.append(self.group_var)\n        if isinstance(self.annot_var, Variable) and self.annot_var not in attrs:\n            attrs.append(self.annot_var)\n        if self.color_var and self.color_var not in attrs:\n            attrs.append(self.color_var)\n        text = \"<br/>\".join(escape('{} = {}'.format(var.name, row[var]))\n                            for var in attrs)\n        others = instance_tooltip(self.data.domain, row, skip_attrs=attrs)\n        if others:\n            text = \"<b>{}</b><br/><br/>{}\".format(text, others)\n        return text\n\n    def get_axes(self) -> Optional[Tuple[str, str, str]]:\n        if not self.data:\n            return None\n        return (self.selected_var.name,\n                self.group_var.name if self.group_var else \"\",\n                self.annot_var if self.annot_var else \"\")\n\n    def setup_plot(self):\n        self.graph.reset_graph()\n        self.apply_selection()\n\n    def apply_selection(self):\n        if self.data and self.__pending_selection is not None:\n            self.selection = [i for i in self.__pending_selection\n                              if i < len(self.data)]\n            self.graph.select_by_indices(self.grouped_indices_inverted)\n            self.__pending_selection = None\n\n    @gui.deferred\n    def commit(self):\n        selected = None\n        if self.data is not None and bool(self.selection):\n            selected = self.data[self.selection]\n        annotated = create_annotated_table(self.orig_data, self.selection)\n        self.Outputs.selected_data.send(selected)\n        self.Outputs.annotated_data.send(annotated)\n\n    def clear(self):\n        self.selection = None\n        self.graph.selection = []\n        self.clear_cache()\n\n    @staticmethod\n    def clear_cache():\n        OWBarPlot.grouped_indices.fget.cache_clear()\n\n    def send_report(self):\n        if self.data is None:\n            return\n        self.report_plot()\n\n    def set_visual_settings(self, key: KeyType, value: ValueType):\n        self.graph.parameter_setter.set_parameter(key, value)\n        self.visual_settings[key] = value\n\n    def sizeHint(self):  # pylint: disable=no-self-use\n        return QSize(1132, 708)\n\n    def showEvent(self, event):\n        super().showEvent(event)\n        self.graph.reset_view()\n\n\nif __name__ == \"__main__\":\n    from Orange.widgets.utils.widgetpreview import WidgetPreview\n\n    iris = Table(\"iris\")\n    WidgetPreview(OWBarPlot).run(set_data=iris[::3],\n                                 set_subset_data=iris[::15])\n"}
A user will ask you to solve a task. You should first draft your thinking process (inner monologue). Then, generate the solution.

Your response format must follow the template below:
<think>
Your thoughts or/and draft, like working through an exercise on scratch paper. Be as casual and as long as you want until you are confident to generate a correct solution.
</think>
<solution>
Final solution presented to the user.
</solution>
system
We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[ISSUE]
**Title: Enumeration Annotations Return Numeric Values Causing Validation Errors**

**Description**

When the annotation variable is set to enumeration in the Bar Plot widget, the generated labels are numeric values instead of strings. This leads to errors during label validation, especially when the code expects labels to be strings.

**Example Code**

```python
widget.annot_var = 'enumeration'
labels = widget.get_labels()
if labels and all(isinstance(label, str) for label in labels):
    # Proceed with processing
```

**Expected Behavior**

Labels generated from enumeration annotations should be a list of strings representing the enumeration indices, such as `['1', '2', '3', ...]`.

**Actual Behavior**

Labels are returned as a NumPy array of numeric values, like `array([1, 2, 3, ...])`. This causes a `ValueError` during validation:

```
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
```

[/ISSUE]
--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.

--- BEGIN FILE ---
```
### Orange/widgets/visualize/owbarplot.py
from typing import List, Optional, Tuple, Union, Dict
from functools import lru_cache
from xml.sax.saxutils import escape

import numpy as np

from AnyQt.QtCore import Qt, QPointF, QSize, Signal, QRectF
from AnyQt.QtGui import QColor
from AnyQt.QtWidgets import QApplication, QToolTip, QGraphicsSceneHelpEvent

import pyqtgraph as pg

from orangewidget.utils.visual_settings_dlg import VisualSettingsDialog, \
    KeyType, ValueType

from Orange.data import Table, DiscreteVariable, ContinuousVariable, \
    StringVariable, Variable
from Orange.widgets import gui
from Orange.widgets.settings import Setting, ContextSetting, \
    DomainContextHandler, SettingProvider
from Orange.widgets.utils.annotated_data import create_annotated_table, \
    ANNOTATED_DATA_SIGNAL_NAME
from Orange.widgets.utils import instance_tooltip
from Orange.widgets.utils.itemmodels import DomainModel
from Orange.widgets.utils.plot import OWPlotGUI, SELECT, PANNING, ZOOMING
from Orange.widgets.utils.sql import check_sql_input
from Orange.widgets.visualize.owscatterplotgraph import LegendItem
from Orange.widgets.visualize.utils.customizableplot import Updater, \
    CommonParameterSetter
from Orange.widgets.visualize.utils.plotutils import AxisItem, \
    HelpEventDelegate, PlotWidget
from Orange.widgets.widget import OWWidget, Input, Output, Msg

MAX_INSTANCES = 200


class BarPlotViewBox(pg.ViewBox):
    def __init__(self, parent):
        super().__init__()
        self.graph = parent
        self.setMouseMode(self.RectMode)

    def mouseDragEvent(self, ev, axis=None):
        if self.graph.state == SELECT and axis is None:
            ev.accept()
            if ev.button() == Qt.LeftButton:
                self.updateScaleBox(ev.buttonDownPos(), ev.pos())
                if ev.isFinish():
                    self.rbScaleBox.hide()
                    p1, p2 = ev.buttonDownPos(ev.button()), ev.pos()
                    p1 = self.mapToView(p1)
                    p2 = self.mapToView(p2)
                    self.graph.select_by_rectangle(QRectF(p1, p2))
                else:
                    self.updateScaleBox(ev.buttonDownPos(), ev.pos())
        elif self.graph.state == ZOOMING or self.graph.state == PANNING:
            super().mouseDragEvent(ev, axis=axis)
        else:
            ev.ignore()

    def mouseClickEvent(self, ev):
        if ev.button() == Qt.LeftButton:
            self.graph.select_by_click(self.mapSceneToView(ev.scenePos()))
            ev.accept()


class ParameterSetter(CommonParameterSetter):
    GRID_LABEL, SHOW_GRID_LABEL = "Gridlines", "Show"
    DEFAULT_ALPHA_GRID, DEFAULT_SHOW_GRID = 80, True
    BOTTOM_AXIS_LABEL, GROUP_AXIS_LABEL = "Bottom axis", "Group axis"
    IS_VERTICAL_LABEL = "Vertical ticks"

    def __init__(self, master):
        self.grid_settings: Dict = None
        self.master: BarPlotGraph = master
        super().__init__()

    def update_setters(self):
        self.grid_settings = {
            Updater.ALPHA_LABEL: self.DEFAULT_ALPHA_GRID,
            self.SHOW_GRID_LABEL: self.DEFAULT_SHOW_GRID,
        }

        self.initial_settings = {
            self.LABELS_BOX: {
                self.FONT_FAMILY_LABEL: self.FONT_FAMILY_SETTING,
                self.TITLE_LABEL: self.FONT_SETTING,
                self.AXIS_TITLE_LABEL: self.FONT_SETTING,
                self.AXIS_TICKS_LABEL: self.FONT_SETTING,
                self.LEGEND_LABEL: self.FONT_SETTING,
            },
            self.ANNOT_BOX: {
                self.TITLE_LABEL: {self.TITLE_LABEL: ("", "")},
            },
            self.PLOT_BOX: {
                self.GRID_LABEL: {
                    self.SHOW_GRID_LABEL: (None, True),
                    Updater.ALPHA_LABEL: (range(0, 255, 5),
                                          self.DEFAULT_ALPHA_GRID),
                },
                self.BOTTOM_AXIS_LABEL: {
                    self.IS_VERTICAL_LABEL: (None, True),
                },
                self.GROUP_AXIS_LABEL: {
                    self.IS_VERTICAL_LABEL: (None, False),
                },
            },
        }

        def update_grid(**settings):
            self.grid_settings.update(**settings)
            self.master.showGrid(y=self.grid_settings[self.SHOW_GRID_LABEL],
                          alpha=self.grid_settings[Updater.ALPHA_LABEL] / 255)

        def update_bottom_axis(**settings):
            axis = self.master.getAxis("bottom")
            axis.setRotateTicks(settings[self.IS_VERTICAL_LABEL])

        def update_group_axis(**settings):
            axis = self.master.group_axis
            axis.setRotateTicks(settings[self.IS_VERTICAL_LABEL])

        self._setters[self.PLOT_BOX] = {
            self.GRID_LABEL: update_grid,
            self.BOTTOM_AXIS_LABEL: update_bottom_axis,
            self.GROUP_AXIS_LABEL: update_group_axis,
        }

    @property
    def title_item(self):
        return self.master.getPlotItem().titleLabel

    @property
    def axis_items(self):
        return [value["item"] for value in
                self.master.getPlotItem().axes.values()]

    @property
    def legend_items(self):
        return self.master.legend.items


class BarPlotGraph(PlotWidget):
    selection_changed = Signal(list)
    bar_width = 0.7

    def __init__(self, master, parent=None):
        self.selection = []
        self.master: OWBarPlot = master
        self.state: int = SELECT
        self.bar_item: pg.BarGraphItem = None
        super().__init__(
            parent=parent,
            viewBox=BarPlotViewBox(self),
            enableMenu=False,
            axisItems={"bottom": AxisItem(orientation="bottom",
                                          rotate_ticks=True),
                       "left": AxisItem(orientation="left")}
        )
        self.hideAxis("left")
        self.hideAxis("bottom")
        self.getPlotItem().buttonsHidden = True
        self.getPlotItem().setContentsMargins(10, 0, 0, 10)
        self.getViewBox().setMouseMode(pg.ViewBox.PanMode)

        self.group_axis = AxisItem("bottom")
        self.group_axis.hide()
        self.group_axis.linkToView(self.getViewBox())
        self.getPlotItem().layout.addItem(self.group_axis, 4, 1)

        self.legend = self._create_legend()

        self.tooltip_delegate = HelpEventDelegate(self.help_event)
        self.scene().installEventFilter(self.tooltip_delegate)

        self.parameter_setter = ParameterSetter(self)

        self.showGrid(y=self.parameter_setter.DEFAULT_SHOW_GRID,
                      alpha=self.parameter_setter.DEFAULT_ALPHA_GRID / 255)

    def _create_legend(self):
        legend = LegendItem()
        legend.setParentItem(self.getViewBox())
        legend.anchor((1, 0), (1, 0), offset=(-3, 1))
        legend.hide()
        return legend

    def update_legend(self):
        self.legend.clear()
        self.legend.hide()
        for color, text in self.master.get_legend_data():
            dot = pg.ScatterPlotItem(
                pen=pg.mkPen(color=color),
                brush=pg.mkBrush(color=color)
            )
            self.legend.addItem(dot, escape(text))
            self.legend.show()
        Updater.update_legend_font(self.legend.items,
                                   **self.parameter_setter.legend_settings)

    def reset_graph(self):
        self.clear()
        self.update_bars()
        self.update_axes()
        self.update_group_lines()
        self.update_legend()
        self.reset_view()

    def update_bars(self):
        if self.bar_item is not None:
            self.removeItem(self.bar_item)
            self.bar_item = None

        values = self.master.get_values()
        if values is None:
            return

        self.bar_item = pg.BarGraphItem(
            x=np.arange(len(values)),
            height=values,
            width=self.bar_width,
            pen=pg.mkPen(QColor(Qt.white)),
            labels=self.master.get_labels(),
            brushes=self.master.get_colors(),
        )
        self.addItem(self.bar_item)
        self.__select_bars()

    def update_axes(self):
        if self.bar_item is not None:
            self.showAxis("left")
            self.showAxis("bottom")
            self.group_axis.show()

            vals_label, group_label, annot_label = self.master.get_axes()
            self.setLabel(axis="left", text=vals_label)
            self.setLabel(axis="bottom", text=annot_label)
            self.group_axis.setLabel(group_label)

            ticks = [list(enumerate(self.master.get_labels()))]
            self.getAxis('bottom').setTicks(ticks)

            labels = np.array(self.master.get_group_labels())
            _, indices, counts = \
                np.unique(labels, return_index=True, return_counts=True)
            ticks = [[(i + (c - 1) / 2, labels[i]) for i, c in
                      zip(indices, counts)]]
            self.group_axis.setTicks(ticks)

            if not group_label:
                self.group_axis.hide()
            elif not annot_label:
                self.hideAxis("bottom")
        else:
            self.hideAxis("left")
            self.hideAxis("bottom")
            self.group_axis.hide()

    def reset_view(self):
        if self.bar_item is None:
            return
        values = np.append(self.bar_item.opts["height"], 0)
        min_ = np.nanmin(values)
        max_ = -min_ + np.nanmax(values)
        rect = QRectF(-0.5, min_, len(values) - 1, max_)
        self.getViewBox().setRange(rect)

    def zoom_button_clicked(self):
        self.state = ZOOMING
        self.getViewBox().setMouseMode(pg.ViewBox.RectMode)

    def pan_button_clicked(self):
        self.state = PANNING
        self.getViewBox().setMouseMode(pg.ViewBox.PanMode)

    def select_button_clicked(self):
        self.state = SELECT
        self.getViewBox().setMouseMode(pg.ViewBox.RectMode)

    def reset_button_clicked(self):
        self.reset_view()

    def update_group_lines(self):
        if self.bar_item is None:
            return

        labels = np.array(self.master.get_group_labels())
        if labels is None or len(labels) == 0:
            return

        _, indices = np.unique(labels, return_index=True)
        offset = self.bar_width / 2 + (1 - self.bar_width) / 2
        for index in sorted(indices)[1:]:
            line = pg.InfiniteLine(pos=index - offset, angle=90)
            self.addItem(line)

    def select_by_rectangle(self, rect: QRectF):
        if self.bar_item is None:
            return

        x0, x1 = sorted((rect.topLeft().x(), rect.bottomRight().x()))
        y0, y1 = sorted((rect.topLeft().y(), rect.bottomRight().y()))
        x = self.bar_item.opts["x"]
        height = self.bar_item.opts["height"]
        d = self.bar_width / 2
        # positive bars
        mask = (x0 <= x + d) & (x1 >= x - d) & (y0 <= height) & (y1 > 0)
        # negative bars
        mask |= (x0 <= x + d) & (x1 >= x - d) & (y0 <= 0) & (y1 > height)
        self.select_by_indices(list(np.flatnonzero(mask)))

    def select_by_click(self, p: QPointF):
        if self.bar_item is None:
            return

        index = self.__get_index_at(p)
        self.select_by_indices([index] if index is not None else [])

    def __get_index_at(self, p: QPointF):
        x = p.x()
        index = round(x)
        heights = self.bar_item.opts["height"]
        if 0 <= index < len(heights) and abs(x - index) <= self.bar_width / 2:
            height = heights[index]  # pylint: disable=unsubscriptable-object
            if 0 <= p.y() <= height or height <= p.y() <= 0:
                return index
        return None

    def select_by_indices(self, indices: List):
        keys = QApplication.keyboardModifiers()
        if keys & Qt.ControlModifier:
            self.selection = list(set(self.selection) ^ set(indices))
        elif keys & Qt.AltModifier:
            self.selection = list(set(self.selection) - set(indices))
        elif keys & Qt.ShiftModifier:
            self.selection = list(set(self.selection) | set(indices))
        else:
            self.selection = list(set(indices))
        self.__select_bars()
        self.selection_changed.emit(self.selection)

    def __select_bars(self):
        if self.bar_item is None:
            return

        n = len(self.bar_item.opts["height"])
        pens = np.full(n, pg.mkPen(QColor(Qt.white)))
        pen = pg.mkPen(QColor(Qt.black))
        pen.setStyle(Qt.DashLine)
        pens[self.selection] = pen
        self.bar_item.setOpts(pens=pens)

    def help_event(self, ev: QGraphicsSceneHelpEvent):
        if self.bar_item is None:
            return False

        index = self.__get_index_at(self.bar_item.mapFromScene(ev.scenePos()))
        text = ""
        if index is not None:
            text = self.master.get_tooltip(index)
        if text:
            QToolTip.showText(ev.screenPos(), text, widget=self)
            return True
        else:
            return False


class OWBarPlot(OWWidget):
    name = "Bar Plot"
    description = "Visualizes comparisons among categorical variables."
    icon = "icons/BarPlot.svg"
    priority = 190
    keywords = ["chart"]

    class Inputs:
        data = Input("Data", Table, default=True)
        data_subset = Input("Data Subset", Table)

    class Outputs:
        selected_data = Output("Selected Data", Table, default=True)
        annotated_data = Output(ANNOTATED_DATA_SIGNAL_NAME, Table)

    buttons_area_orientation = Qt.Vertical
    settingsHandler = DomainContextHandler()
    selected_var = ContextSetting(None)
    group_var = ContextSetting(None)
    annot_var = ContextSetting(None)
    color_var = ContextSetting(None)
    auto_commit = Setting(True)
    selection = Setting(None, schema_only=True)
    visual_settings = Setting({}, schema_only=True)

    graph = SettingProvider(BarPlotGraph)
    graph_name = "graph.plotItem"

    class Error(OWWidget.Error):
        no_cont_features = Msg("Plotting requires a numeric feature.")

    class Information(OWWidget.Information):
        too_many_instances = Msg("Data has too many instances. Only first {}"
                                 " are shown.".format(MAX_INSTANCES))

    enumeration = "Enumeration"

    def __init__(self):
        super().__init__()
        self.data: Optional[Table] = None
        self.orig_data: Optional[Table] = None
        self.subset_data: Optional[Table] = None
        self.subset_indices = []
        self.graph: Optional[BarPlotGraph] = None
        self._selected_var_model: Optional[DomainModel] = None
        self._group_var_model: Optional[DomainModel] = None
        self._annot_var_model: Optional[DomainModel] = None
        self._color_var_model: Optional[DomainModel] = None
        self.__pending_selection = self.selection

        self.setup_gui()
        VisualSettingsDialog(
            self, self.graph.parameter_setter.initial_settings
        )

    def setup_gui(self):
        self._add_graph()
        self._add_controls()

    def _add_graph(self):
        box = gui.vBox(self.mainArea, True, margin=0)
        self.graph = BarPlotGraph(self)
        self.graph.selection_changed.connect(self.__selection_changed)
        box.layout().addWidget(self.graph)

    def __selection_changed(self, indices: List):
        self.selection = list(set(self.grouped_indices[indices]))
        self.commit.deferred()

    def _add_controls(self):
        box = gui.vBox(self.controlArea, True)
        gui.rubber(self.controlArea)
        self._selected_var_model = DomainModel(valid_types=ContinuousVariable)
        gui.comboBox(
            box, self, "selected_var", label="Values:",
            model=self._selected_var_model, contentsLength=12, searchable=True,
            orientation=Qt.Horizontal, callback=self.__parameter_changed,
        )

        self._group_var_model = DomainModel(
            placeholder="None", valid_types=DiscreteVariable
        )
        gui.comboBox(
            box, self, "group_var", label="Group by:",
            model=self._group_var_model, contentsLength=12, searchable=True,
            orientation=Qt.Horizontal, callback=self.__group_var_changed,
        )

        self._annot_var_model = DomainModel(
            placeholder="None",
            valid_types=(DiscreteVariable, StringVariable)
        )
        self._annot_var_model.order = self._annot_var_model.order[:1] + \
                                      (self.enumeration,) + \
                                      self._annot_var_model.order[1:]
        gui.comboBox(
            box, self, "annot_var", label="Annotations:",
            model=self._annot_var_model, contentsLength=12, searchable=True,
            orientation=Qt.Horizontal, callback=self.__parameter_changed,
        )

        self._color_var_model = DomainModel(
            placeholder="(Same color)", valid_types=DiscreteVariable
        )
        gui.comboBox(
            box, self, "color_var", label="Color:",
            model=self._color_var_model,
            contentsLength=12, searchable=True, orientation=Qt.Horizontal,
            callback=self.__parameter_changed,
        )

        plot_gui = OWPlotGUI(self)
        plot_gui.box_zoom_select(self.buttonsArea)

        gui.auto_send(self.buttonsArea, self, "auto_commit")

    def __parameter_changed(self):
        self.graph.reset_graph()

    def __group_var_changed(self):
        self.clear_cache()
        self.graph.selection = self.grouped_indices_inverted
        self.__parameter_changed()

    @property
    @lru_cache()
    def grouped_indices(self):
        indices = []
        if self.data:
            indices = np.arange(len(self.data))
            if self.group_var:
                group_by = self.data.get_column(self.group_var)
                indices = np.argsort(group_by, kind="mergesort")
        return indices

    @property
    def grouped_indices_inverted(self):
        mask = np.isin(self.grouped_indices, self.selection)
        return np.flatnonzero(mask)

    @property
    def grouped_data(self):
        return self.data[self.grouped_indices]

    @Inputs.data
    @check_sql_input
    def set_data(self, data: Optional[Table]):
        self.closeContext()
        self.clear()
        self.orig_data = self.data = data
        self.check_data()
        self.init_attr_values()
        self.openContext(self.data)
        self.clear_cache()
        self.commit.now()

    def check_data(self):
        self.clear_messages()
        if self.data is not None:
            if self.data.domain.has_continuous_attributes(True, True) == 0:
                self.Error.no_cont_features()
                self.data = None
            elif len(self.data) > MAX_INSTANCES:
                self.Information.too_many_instances()
                self.data = self.data[:MAX_INSTANCES]

    def init_attr_values(self):
        domain = self.data.domain if self.data else None
        for model, var in ((self._selected_var_model, "selected_var"),
                           (self._group_var_model, "group_var"),
                           (self._annot_var_model, "annot_var"),
                           (self._color_var_model, "color_var")):
            model.set_domain(domain)
            setattr(self, var, None)

        if self._selected_var_model:
            self.selected_var = self._selected_var_model[0]
        if domain is not None and domain.has_discrete_class:
            self.color_var = domain.class_var

    @Inputs.data_subset
    @check_sql_input
    def set_subset_data(self, data: Optional[Table]):
        self.subset_data = data

    def handleNewSignals(self):
        self._handle_subset_data()
        self.setup_plot()

    def _handle_subset_data(self):
        sub_ids = {e.id for e in self.subset_data} \
            if self.subset_data is not None else {}
        self.subset_indices = []
        if self.data is not None and sub_ids:
            self.subset_indices = [x.id for x in self.data if x.id in sub_ids]

    def get_values(self) -> Optional[np.ndarray]:
        if not self.data or not self.selected_var:
            return None
        return self.grouped_data.get_column(self.selected_var)

    def get_labels(self) -> Optional[Union[List, np.ndarray]]:
        if not self.data:
            return None
        elif not self.annot_var:
            return []
        elif self.annot_var == self.enumeration:
            return np.arange(1, len(self.data) + 1)[self.grouped_indices]
        else:
            return [self.annot_var.str_val(row[self.annot_var])
                    for row in self.grouped_data]

    def get_group_labels(self) -> Optional[List]:
        if not self.data:
            return None
        elif not self.group_var:
            return []
        else:
            return [self.group_var.str_val(row[self.group_var])
                    for row in self.grouped_data]

    def get_legend_data(self) -> List:
        if not self.data or not self.color_var:
            return []
        else:
            assert self.color_var.is_discrete
            return [(QColor(*color), text) for color, text in
                    zip(self.color_var.colors, self.color_var.values)]

    def get_colors(self) -> Optional[List[QColor]]:
        def create_color(i, id_):
            lighter = id_ not in self.subset_indices and self.subset_indices
            alpha = 50 if lighter else 255
            if np.isnan(i):
                return QColor(*(128, 128, 128, alpha))
            return QColor(*np.append(self.color_var.colors[int(i)], alpha))

        if not self.data:
            return None
        elif not self.color_var:
            return [create_color(np.nan, id_) for id_ in self.grouped_data.ids]
        else:
            assert self.color_var.is_discrete
            col = self.grouped_data.get_column(self.color_var)
            return [create_color(i, id_) for id_, i in
                    zip(self.grouped_data.ids, col)]

    def get_tooltip(self, index: int) -> str:
        if not self.data:
            return ""
        row = self.grouped_data[index]
        attrs = [self.selected_var]
        if self.group_var and self.group_var not in attrs:
            attrs.append(self.group_var)
        if isinstance(self.annot_var, Variable) and self.annot_var not in attrs:
            attrs.append(self.annot_var)
        if self.color_var and self.color_var not in attrs:
            attrs.append(self.color_var)
        text = "<br/>".join(escape('{} = {}'.format(var.name, row[var]))
                            for var in attrs)
        others = instance_tooltip(self.data.domain, row, skip_attrs=attrs)
        if others:
            text = "<b>{}</b><br/><br/>{}".format(text, others)
        return text

    def get_axes(self) -> Optional[Tuple[str, str, str]]:
        if not self.data:
            return None
        return (self.selected_var.name,
                self.group_var.name if self.group_var else "",
                self.annot_var if self.annot_var else "")

    def setup_plot(self):
        self.graph.reset_graph()
        self.apply_selection()

    def apply_selection(self):
        if self.data and self.__pending_selection is not None:
            self.selection = [i for i in self.__pending_selection
                              if i < len(self.data)]
            self.graph.select_by_indices(self.grouped_indices_inverted)
            self.__pending_selection = None

    @gui.deferred
    def commit(self):
        selected = None
        if self.data is not None and bool(self.selection):
            selected = self.data[self.selection]
        annotated = create_annotated_table(self.orig_data, self.selection)
        self.Outputs.selected_data.send(selected)
        self.Outputs.annotated_data.send(annotated)

    def clear(self):
        self.selection = None
        self.graph.selection = []
        self.clear_cache()

    @staticmethod
    def clear_cache():
        OWBarPlot.grouped_indices.fget.cache_clear()

    def send_report(self):
        if self.data is None:
            return
        self.report_plot()

    def set_visual_settings(self, key: KeyType, value: ValueType):
        self.graph.parameter_setter.set_parameter(key, value)
        self.visual_settings[key] = value

    def sizeHint(self):  # pylint: disable=no-self-use
        return QSize(1132, 708)

    def showEvent(self, event):
        super().showEvent(event)
        self.graph.reset_view()


if __name__ == "__main__":
    from Orange.widgets.utils.widgetpreview import WidgetPreview

    iris = Table("iris")
    WidgetPreview(OWBarPlot).run(set_data=iris[::3],
                                 set_subset_data=iris[::15])

```
--- END FILE ---

Please first localize the bug based on the issue statement, and then generate *SEARCH/REPLACE* edits to fix the issue.

Every *SEARCH/REPLACE* edit must use this format:
1. The file path
2. The start of search block: <<<<<<< SEARCH
3. A contiguous chunk of lines to search for in the existing source code
4. The dividing line: =======
5. The lines to replace into the source code
6. The end of the replace block: >>>>>>> REPLACE

Here is an example:

```python
### mathweb/flask/app.py
<<<<<<< SEARCH
from flask import Flask
=======
import math
from flask import Flask
>>>>>>> REPLACE
```
</solution>

Please note that the *SEARCH/REPLACE* edit REQUIRES PROPER INDENTATION. If you would like to add the line '        print(x)', you must fully write that out, with all those spaces before the code!
Wrap each *SEARCH/REPLACE* edit in a code block as shown in the example above. If you have multiple *SEARCH/REPLACE* edits, use a separate code block for each one.
user