{
    "file_diffs": [
        {
            "old_file_content": "\"\"\"\nWrappers for controls used in widgets\n\"\"\"\nimport logging\nimport sys\nimport warnings\nimport weakref\nfrom collections.abc import Sequence\n\nimport math\nimport numpy as np\n\nfrom AnyQt import QtWidgets, QtCore, QtGui\nfrom AnyQt.QtCore import Qt, QSize, QItemSelection, QSortFilterProxyModel\nfrom AnyQt.QtGui import QColor, QWheelEvent\nfrom AnyQt.QtWidgets import QWidget, QListView, QComboBox\n\nfrom orangewidget.utils.itemdelegates import (\n    BarItemDataDelegate as _BarItemDataDelegate\n)\n# re-export relevant objects\nfrom orangewidget.gui import (\n    OWComponent, OrangeUserRole, TableView, resource_filename,\n    miscellanea, setLayout, separator, rubber, widgetBox, hBox, vBox,\n    comboBox as gui_comboBox,\n    indentedBox, widgetLabel, label, spin, doubleSpin, checkBox, lineEdit,\n    button, toolButton, radioButtons, radioButtonsInBox, appendRadioButton,\n    hSlider, labeledSlider, valueSlider, auto_commit, auto_send, auto_apply,\n    deferred,\n\n    # ItemDataRole's\n    BarRatioRole, BarBrushRole, SortOrderRole, LinkRole,\n\n    IndicatorItemDelegate, BarItemDelegate, LinkStyledItemDelegate,\n    ColoredBarItemDelegate, HorizontalGridDelegate, VerticalItemDelegate,\n    VerticalLabel, tabWidget, createTabPage, table, tableItem,\n    VisibleHeaderSectionContextEventFilter,\n    checkButtonOffsetHint, toolButtonSizeHint, FloatSlider,\n    CalendarWidgetWithTime, DateTimeEditWCalendarTime,\n    ControlGetter, VerticalScrollArea, ProgressBar,\n    ControlledCallback, ControlledCallFront, ValueCallback, connectControl,\n    is_macstyle\n)\nfrom orangewidget.utils.itemmodels import PyTableModel\n\ntry:\n    # Some Orange widgets might expect this here\n    # pylint: disable=unused-import\n    from Orange.widgets.utils.webview import WebviewWidget\nexcept ImportError:\n    pass  # Neither WebKit nor WebEngine are available\n\nimport Orange.data\nfrom Orange.widgets.utils import getdeepattr, vartype\nfrom Orange.data import \\\n    ContinuousVariable, StringVariable, TimeVariable, DiscreteVariable, \\\n    Variable, Value\n\n__all__ = [\n    # Re-exported\n    \"OWComponent\", \"OrangeUserRole\", \"TableView\", \"resource_filename\",\n    \"miscellanea\", \"setLayout\", \"separator\", \"rubber\",\n    \"widgetBox\", \"hBox\", \"vBox\", \"indentedBox\",\n    \"widgetLabel\", \"label\", \"spin\", \"doubleSpin\",\n    \"checkBox\", \"lineEdit\", \"button\", \"toolButton\", \"comboBox\",\n    \"radioButtons\", \"radioButtonsInBox\", \"appendRadioButton\",\n    \"hSlider\", \"labeledSlider\", \"valueSlider\",\n    \"auto_commit\", \"auto_send\", \"auto_apply\", \"ProgressBar\",\n    \"VerticalLabel\", \"tabWidget\", \"createTabPage\", \"table\", \"tableItem\",\n    \"VisibleHeaderSectionContextEventFilter\", \"checkButtonOffsetHint\",\n    \"toolButtonSizeHint\", \"FloatSlider\", \"ControlGetter\",  \"VerticalScrollArea\",\n    \"CalendarWidgetWithTime\", \"DateTimeEditWCalendarTime\",\n    \"BarRatioRole\", \"BarBrushRole\", \"SortOrderRole\", \"LinkRole\",\n    \"BarItemDelegate\", \"IndicatorItemDelegate\", \"LinkStyledItemDelegate\",\n    \"ColoredBarItemDelegate\", \"HorizontalGridDelegate\", \"VerticalItemDelegate\",\n    \"ValueCallback\", 'is_macstyle',\n    # Defined here\n    \"createAttributePixmap\", \"attributeIconDict\", \"attributeItem\",\n    \"listView\", \"ListViewWithSizeHint\", \"listBox\", \"OrangeListBox\",\n    \"TableValueRole\", \"TableClassValueRole\", \"TableDistribution\",\n    \"TableVariable\", \"TableBarItem\", \"palette_combo_box\", \"BarRatioTableModel\"\n]\n\n\nlog = logging.getLogger(__name__)\n\n\ndef palette_combo_box(initial_palette):\n    from Orange.widgets.utils import itemmodels\n    cb = QComboBox()\n    model = itemmodels.ContinuousPalettesModel()\n    cb.setModel(model)\n    cb.setCurrentIndex(model.indexOf(initial_palette))\n    cb.setIconSize(QSize(64, 16))\n    return cb\n\n\ndef createAttributePixmap(char, background=Qt.black, color=Qt.white):\n    \"\"\"\n    Create a QIcon with a given character. The icon is 13 pixels high and wide.\n\n    :param char: The character that is printed in the icon\n    :type char: str\n    :param background: the background color (default: black)\n    :type background: QColor\n    :param color: the character color (default: white)\n    :type color: QColor\n    :rtype: QIcon\n    \"\"\"\n    icon = QtGui.QIcon()\n    for size in (13, 16, 18, 20, 22, 24, 28, 32, 64):\n        pixmap = QtGui.QPixmap(size, size)\n        pixmap.fill(Qt.transparent)\n        painter = QtGui.QPainter()\n        painter.begin(pixmap)\n        painter.setRenderHints(painter.Antialiasing | painter.TextAntialiasing |\n                               painter.SmoothPixmapTransform)\n        painter.setPen(background)\n        painter.setBrush(background)\n        margin = 1 + size // 16\n        text_margin = size // 20\n        rect = QtCore.QRectF(margin, margin,\n                             size - 2 * margin, size - 2 * margin)\n        painter.drawRoundedRect(rect, 30.0, 30.0, Qt.RelativeSize)\n        painter.setPen(color)\n        font = painter.font()  # type: QtGui.QFont\n        font.setPixelSize(size - 2 * margin - 2 * text_margin)\n        painter.setFont(font)\n        painter.drawText(rect, Qt.AlignCenter, char)\n        painter.end()\n        icon.addPixmap(pixmap)\n    return icon\n\n\nclass __AttributeIconDict(dict):\n    def __getitem__(self, key):\n        if not self:\n            for tpe, char, col in ((vartype(ContinuousVariable(\"c\")),\n                                    \"N\", (202, 0, 32)),\n                                   (vartype(DiscreteVariable(\"d\")),\n                                    \"C\", (26, 150, 65)),\n                                   (vartype(StringVariable(\"s\")),\n                                    \"S\", (0, 0, 0)),\n                                   (vartype(TimeVariable(\"t\")),\n                                    \"T\", (68, 170, 255)),\n                                   (-1, \"?\", (128, 128, 128))):\n                self[tpe] = createAttributePixmap(char, QtGui.QColor(*col))\n        if key not in self:\n            key = vartype(key) if isinstance(key, Variable) else -1\n        return super().__getitem__(key)\n\n\n#: A dict that returns icons for different attribute types. The dict is\n#: constructed on first use since icons cannot be created before initializing\n#: the application.\n#:\n#: Accepted keys are variable type codes and instances\n#: of :obj:`Orange.data.Variable`: `attributeIconDict[var]` will give the\n#: appropriate icon for variable `var` or a question mark if the type is not\n#: recognized\nattributeIconDict = __AttributeIconDict()\n\n\ndef attributeItem(var):\n    \"\"\"\n    Construct a pair (icon, name) for inserting a variable into a combo or\n    list box\n\n    :param var: variable\n    :type var: Orange.data.Variable\n    :rtype: tuple with QIcon and str\n    \"\"\"\n    return attributeIconDict[var], var.name\n\n\nclass ListViewWithSizeHint(QListView):\n    def __init__(self, *args, preferred_size=None, **kwargs):\n        super().__init__(*args, **kwargs)\n        if isinstance(preferred_size, tuple):\n            preferred_size = QSize(*preferred_size)\n        self.preferred_size = preferred_size\n\n    def sizeHint(self):\n        return self.preferred_size if self.preferred_size is not None \\\n            else super().sizeHint()\n\n\ndef listView(widget, master, value=None, model=None, box=None, callback=None,\n             sizeHint=None, *, viewType=ListViewWithSizeHint, **misc):\n    if box:\n        bg = vBox(widget, box, addToLayout=False)\n    else:\n        bg = widget\n    view = viewType(preferred_size=sizeHint)\n    if isinstance(view.model(), QSortFilterProxyModel):\n        view.model().setSourceModel(model)\n    else:\n        view.setModel(model)\n    if value is not None:\n        connectControl(master, value, callback,\n                       view.selectionModel().selectionChanged,\n                       CallFrontListView(view),\n                       CallBackListView(model, view, master, value))\n    misc.setdefault('uniformItemSizes', True)\n    miscellanea(view, bg, widget, **misc)\n    return view\n\n\ndef listBox(widget, master, value=None, labels=None, box=None, callback=None,\n            selectionMode=QtWidgets.QListWidget.SingleSelection,\n            enableDragDrop=False, dragDropCallback=None,\n            dataValidityCallback=None, sizeHint=None, **misc):\n    \"\"\"\n    Insert a list box.\n\n    The value with which the box's value synchronizes (`master.<value>`)\n    is a list of indices of selected items.\n\n    :param widget: the widget into which the box is inserted\n    :type widget: QWidget or None\n    :param master: master widget\n    :type master: OWWidget or OWComponent\n    :param value: the name of the master's attribute with which the value is\n        synchronized (list of ints - indices of selected items)\n    :type value: str\n    :param labels: the name of the master's attribute with the list of items\n        (as strings or tuples with icon and string)\n    :type labels: str\n    :param box: tells whether the widget has a border, and its label\n    :type box: int or str or None\n    :param callback: a function that is called when the selection state is\n        changed\n    :type callback: function\n    :param selectionMode: selection mode - single, multiple etc\n    :type selectionMode: QAbstractItemView.SelectionMode\n    :param enableDragDrop: flag telling whether drag and drop is available\n    :type enableDragDrop: bool\n    :param dragDropCallback: callback function on drop event\n    :type dragDropCallback: function\n    :param dataValidityCallback: function that check the validity on enter\n        and move event; it should return either `ev.accept()` or `ev.ignore()`.\n    :type dataValidityCallback: function\n    :param sizeHint: size hint\n    :type sizeHint: QSize\n    :rtype: OrangeListBox\n    \"\"\"\n    if box:\n        bg = hBox(widget, box, addToLayout=False)\n    else:\n        bg = widget\n    lb = OrangeListBox(master, enableDragDrop, dragDropCallback,\n                       dataValidityCallback, sizeHint, bg)\n    lb.setSelectionMode(selectionMode)\n    lb.ogValue = value\n    lb.ogLabels = labels\n    lb.ogMaster = master\n\n    if labels is not None:\n        setattr(master, labels, getdeepattr(master, labels))\n        master.connect_control(labels, CallFrontListBoxLabels(lb))\n    if value is not None:\n        clist = getdeepattr(master, value)\n        if not isinstance(clist, (int, ControlledList)):\n            clist = ControlledList(clist, lb)\n            master.__setattr__(value, clist)\n        setattr(master, value, clist)\n        connectControl(master, value, callback, lb.itemSelectionChanged,\n                       CallFrontListBox(lb), CallBackListBox(lb, master))\n\n    miscellanea(lb, bg, widget, **misc)\n    return lb\n\n\nclass OrangeListBox(QtWidgets.QListWidget):\n    \"\"\"\n    List box with drag and drop functionality. Function :obj:`listBox`\n    constructs instances of this class; do not use the class directly.\n\n    .. attribute:: master\n\n        The widget into which the listbox is inserted.\n\n    .. attribute:: ogLabels\n\n        The name of the master's attribute that holds the strings with items\n        in the list box.\n\n    .. attribute:: ogValue\n\n        The name of the master's attribute that holds the indices of selected\n        items.\n\n    .. attribute:: enableDragDrop\n\n        A flag telling whether drag-and-drop is enabled.\n\n    .. attribute:: dragDropCallback\n\n        A callback that is called at the end of drop event.\n\n    .. attribute:: dataValidityCallback\n\n        A callback that is called on dragEnter and dragMove events and returns\n        either `ev.accept()` or `ev.ignore()`.\n\n    .. attribute:: defaultSizeHint\n\n        The size returned by the `sizeHint` method.\n    \"\"\"\n    def __init__(self, master, enableDragDrop=False, dragDropCallback=None,\n                 dataValidityCallback=None, sizeHint=None, *args):\n        \"\"\"\n        :param master: the master widget\n        :type master: OWWidget or OWComponent\n        :param enableDragDrop: flag telling whether drag and drop is enabled\n        :type enableDragDrop: bool\n        :param dragDropCallback: callback for the end of drop event\n        :type dragDropCallback: function\n        :param dataValidityCallback: callback that accepts or ignores dragEnter\n            and dragMove events\n        :type dataValidityCallback: function with one argument (event)\n        :param sizeHint: size hint\n        :type sizeHint: QSize\n        :param args: optional arguments for the inherited constructor\n        \"\"\"\n        self.master = master\n        super().__init__(*args)\n        self.drop_callback = dragDropCallback\n        self.valid_data_callback = dataValidityCallback\n        if not sizeHint:\n            self.size_hint = QtCore.QSize(150, 100)\n        else:\n            self.size_hint = sizeHint\n        if enableDragDrop:\n            self.setDragEnabled(True)\n            self.setAcceptDrops(True)\n            self.setDropIndicatorShown(True)\n\n    def sizeHint(self):\n        return self.size_hint\n\n    def minimumSizeHint(self):\n        return self.size_hint\n\n    def dragEnterEvent(self, event):\n        super().dragEnterEvent(event)\n        if self.valid_data_callback:\n            self.valid_data_callback(event)\n        elif isinstance(event.source(), OrangeListBox):\n            event.setDropAction(Qt.MoveAction)\n            event.accept()\n        else:\n            event.ignore()\n\n    def dropEvent(self, event):\n        event.setDropAction(Qt.MoveAction)\n        super().dropEvent(event)\n\n        items = self.update_master()\n        if event.source() is not self:\n            event.source().update_master(exclude=items)\n\n        if self.drop_callback:\n            self.drop_callback()\n\n    def update_master(self, exclude=()):\n        control_list = [self.item(i).data(Qt.UserRole)\n                        for i in range(self.count())\n                        if self.item(i).data(Qt.UserRole) not in exclude]\n        if self.ogLabels:\n            master_list = getattr(self.master, self.ogLabels)\n\n            if master_list != control_list:\n                setattr(self.master, self.ogLabels, control_list)\n        return control_list\n\n    def updateGeometries(self):\n        # A workaround for a bug in Qt\n        # (see: http://bugreports.qt.nokia.com/browse/QTBUG-14412)\n        if getattr(self, \"_updatingGeometriesNow\", False):\n            return\n        self._updatingGeometriesNow = True\n        try:\n            return super().updateGeometries()\n        finally:\n            self._updatingGeometriesNow = False\n\n\nclass ControlledList(list):\n    \"\"\"\n    A class derived from a list that is connected to a\n    :obj:`QListBox`: the list contains indices of items that are\n    selected in the list box. Changing the list content changes the\n    selection in the list box.\n    \"\"\"\n    def __init__(self, content, listBox=None):\n        super().__init__(content if content is not None else [])\n        # Controlled list is created behind the back by gui.listBox and\n        # commonly used as a setting which gets synced into a GLOBAL\n        # SettingsHandler and which keeps the OWWidget instance alive via a\n        # reference in listBox (see gui.listBox)\n        if listBox is not None:\n            self.listBox = weakref.ref(listBox)\n        else:\n            self.listBox = lambda: None\n\n    def __reduce__(self):\n        # cannot pickle self.listBox, but can't discard it\n        # (ControlledList may live on)\n        import copyreg\n        return copyreg._reconstructor, (list, list, ()), None, self.__iter__()\n\n    # TODO ControllgedList.item2name is probably never used\n    def item2name(self, item):\n        item = self.listBox().labels[item]\n        if isinstance(item, tuple):\n            return item[1]\n        else:\n            return item\n\n    def __setitem__(self, index, item):\n        def unselect(i):\n            try:\n                item = self.listBox().item(i)\n            except RuntimeError:  # Underlying C/C++ object has been deleted\n                item = None\n            if item is None:\n                # Labels changed before clearing the selection: clear everything\n                self.listBox().selectionModel().clear()\n            else:\n                item.setSelected(0)\n\n        if isinstance(index, int):\n            unselect(self[index])\n            item.setSelected(1)\n        else:\n            for i in self[index]:\n                unselect(i)\n            for i in item:\n                self.listBox().item(i).setSelected(1)\n        super().__setitem__(index, item)\n\n    def __delitem__(self, index):\n        if isinstance(index, int):\n            self.listBox().item(self[index]).setSelected(0)\n        else:\n            for i in self[index]:\n                self.listBox().item(i).setSelected(0)\n        super().__delitem__(index)\n\n    def append(self, item):\n        super().append(item)\n        item.setSelected(1)\n\n    def extend(self, items):\n        super().extend(items)\n        for i in items:\n            self.listBox().item(i).setSelected(1)\n\n    def insert(self, index, item):\n        item.setSelected(1)\n        super().insert(index, item)\n\n    def pop(self, index=-1):\n        i = super().pop(index)\n        self.listBox().item(i).setSelected(0)\n\n    def remove(self, item):\n        item.setSelected(0)\n        super().remove(item)\n\n\ndef comboBox(widget, master, value, box=None, label=None, labelWidth=None,\n             orientation=Qt.Vertical, items=(), callback=None,\n             sendSelectedValue=None, emptyString=None, editable=False,\n             contentsLength=None, searchable=False, *, model=None,\n             tooltips=None, **misc):\n    if \"valueType\" in misc:\n        del misc[\"valueType\"]\n        warnings.warn(\"Argument 'valueType' is deprecated and ignored\",\n                      DeprecationWarning)\n    return gui_comboBox(\n        widget, master, value, box, label, labelWidth, orientation, items,\n        callback, sendSelectedValue, emptyString, editable,\n        contentsLength, searchable, model=model, tooltips=tooltips, **misc)\n\n\ncomboBox.__doc__ = gui_comboBox.__doc__\n\n\nclass CallBackListView(ControlledCallback):\n    def __init__(self, model, view, widget, attribute):\n        super().__init__(widget, attribute)\n        self.model = model\n        self.view = view\n\n    # triggered by selectionModel().selectionChanged()\n    def __call__(self, *_):\n        # This must be imported locally to avoid circular imports\n        from Orange.widgets.utils.itemmodels import PyListModel\n\n        selection = self.view.selectionModel().selection()\n        if isinstance(self.view.model(), QSortFilterProxyModel):\n            selection = self.view.model().mapSelectionToSource(selection)\n        values = [i.row() for i in selection.indexes()]\n        if values:\n            # FIXME: irrespective of PyListModel check, this might/should always\n            # callback with values!\n            if isinstance(self.model, PyListModel):\n                values = [self.model[i] for i in values]\n            if self.view.selectionMode() == self.view.SingleSelection:\n                values = values[0]\n            self.acyclic_setattr(values)\n\n\nclass CallBackListBox:\n    def __init__(self, control, widget):\n        self.control = control\n        self.widget = widget\n        self.disabled = 0\n\n    def __call__(self, *_):  # triggered by selectionChange()\n        if not self.disabled and self.control.ogValue is not None:\n            clist = getdeepattr(self.widget, self.control.ogValue)\n            control = self.control\n            selection = [i for i in range(control.count())\n                         if control.item(i).isSelected()]\n            if isinstance(clist, int):\n                self.widget.__setattr__(\n                    self.control.ogValue, selection[0] if selection else None)\n            else:\n                list.__setitem__(clist, slice(0, len(clist)), selection)\n                self.widget.__setattr__(self.control.ogValue, clist)\n\n\n##############################################################################\n# call fronts (change of the attribute value changes the related control)\n\n\nclass CallFrontListView(ControlledCallFront):\n    def action(self, values):\n        view = self.control\n        model = view.model()\n        if isinstance(view.model(), QSortFilterProxyModel):\n            model = model.sourceModel()\n        sel_model = view.selectionModel()\n\n        if not isinstance(values, Sequence):\n            values = [values]\n\n        selection = QItemSelection()\n        for value in values:\n            index = None\n            if not isinstance(value, int):\n                if value is None or isinstance(value, Variable):\n                    search_role = TableVariable\n                else:\n                    search_role = Qt.DisplayRole\n                    value = str(value)\n                for i in range(model.rowCount()):\n                    if model.data(model.index(i), search_role) == value:\n                        index = i\n                        break\n            else:\n                index = value\n            if index is not None:\n                selection.select(model.index(index), model.index(index))\n        if isinstance(view.model(), QSortFilterProxyModel):\n            selection = view.model().mapSelectionFromSource(selection)\n        sel_model.select(selection, sel_model.ClearAndSelect)\n\n\nclass CallFrontListBox(ControlledCallFront):\n    def action(self, value):\n        if value is not None:\n            if isinstance(value, int):\n                for i in range(self.control.count()):\n                    self.control.item(i).setSelected(i == value)\n            else:\n                if not isinstance(value, ControlledList):\n                    setattr(self.control.ogMaster, self.control.ogValue,\n                            ControlledList(value, self.control))\n                for i in range(self.control.count()):\n                    shouldBe = i in value\n                    if shouldBe != self.control.item(i).isSelected():\n                        self.control.item(i).setSelected(shouldBe)\n\n\nclass CallFrontListBoxLabels(ControlledCallFront):\n    unknownType = None\n\n    def action(self, values):\n        self.control.clear()\n        if values:\n            for value in values:\n                if isinstance(value, tuple):\n                    text, icon = value\n                    if isinstance(icon, int):\n                        item = QtWidgets.QListWidgetItem(attributeIconDict[icon], text)\n                    else:\n                        item = QtWidgets.QListWidgetItem(icon, text)\n                elif isinstance(value, Variable):\n                    item = QtWidgets.QListWidgetItem(*attributeItem(value))\n                else:\n                    item = QtWidgets.QListWidgetItem(value)\n\n                item.setData(Qt.UserRole, value)\n                self.control.addItem(item)\n\n\n#: Role to retrieve Orange.data.Value\nTableValueRole = next(OrangeUserRole)\n#: Role to retrieve class value for a row\nTableClassValueRole = next(OrangeUserRole)\n# Role to retrieve distribution of a column\nTableDistribution = next(OrangeUserRole)\n#: Role to retrieve the column's variable\nTableVariable = next(OrangeUserRole)\n\n\nclass TableBarItem(_BarItemDataDelegate):\n    BarRole = next(OrangeUserRole)\n    BarColorRole = next(OrangeUserRole)\n    __slots__ = (\"color_schema\",)\n\n    def __init__(\n            self, parent=None, color=QColor(255, 170, 127), width=5,\n            barFillRatioRole=BarRole, barColorRole=BarColorRole,\n            color_schema=None,\n            **kwargs\n    ):\n        \"\"\"\n        :param QObject parent: Parent object.\n        :param QColor color: Default color of the distribution bar.\n        :param color_schema:\n            If not None it must be an instance of\n            :class:`OWColorPalette.ColorPaletteGenerator` (note: this\n            parameter, if set, overrides the ``color``)\n        :type color_schema: :class:`OWColorPalette.ColorPaletteGenerator`\n        \"\"\"\n        super().__init__(\n            parent, color=color, penWidth=width,\n            barFillRatioRole=barFillRatioRole, barColorRole=barColorRole,\n            **kwargs\n        )\n        self.color_schema = color_schema\n\n    def barColorData(self, index):\n        class_ = self.cachedData(index, TableClassValueRole)\n        if self.color_schema is not None \\\n                and isinstance(class_, Value) \\\n                and isinstance(class_.variable, DiscreteVariable) \\\n                and not math.isnan(class_):\n            return self.color_schema[int(class_)]\n        return self.cachedData(index, self.BarColorRole)\n\n\nfrom Orange.widgets.utils.colorpalettes import patch_variable_colors\npatch_variable_colors()\n\n\nclass HScrollStepMixin:\n    \"\"\"\n    Overrides default TableView horizontal behavior (scrolls 1 page at a time)\n    to a friendlier scroll speed akin to that of vertical scrolling.\n    \"\"\"\n\n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.horizontalScrollBar().setSingleStep(20)\n\n    def wheelEvent(self, event: QWheelEvent):\n        if hasattr(event, \"source\") and \\\n                event.source() == Qt.MouseEventNotSynthesized and \\\n                (event.modifiers() & Qt.ShiftModifier and sys.platform == 'darwin' or\n                 event.modifiers() & Qt.AltModifier and sys.platform != 'darwin'):\n            new_event = QWheelEvent(\n                event.pos(), event.globalPos(), event.pixelDelta(),\n                event.angleDelta(), event.buttons(), Qt.NoModifier,\n                event.phase(), event.inverted(), Qt.MouseEventSynthesizedByApplication\n            )\n            event.accept()\n            super().wheelEvent(new_event)\n        else:\n            super().wheelEvent(event)\n\n\nclass BarRatioTableModel(PyTableModel):\n    \"\"\"A model for displaying python tables.\n    Adds a BarRatioRole that returns Data, normalized between the extremes.\n    NaNs are listed last when sorting.\"\"\"\n\n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n        self._extremes = {}\n\n    def data(self, index, role=Qt.DisplayRole):\n        if role == BarRatioRole and index.isValid():\n            value = super().data(index, Qt.EditRole)\n            if not isinstance(value, float):\n                return None\n            vmin, vmax = self._extremes.get(index.column(), (-np.inf, np.inf))\n            value = (value - vmin) / ((vmax - vmin) or 1)\n            return value\n\n        if role == Qt.DisplayRole and index.column() != 0:\n            role = Qt.EditRole\n\n        value = super().data(index, role)\n\n        # Display nothing for non-existent attr value counts in column 1\n        if role == Qt.EditRole \\\n                and index.column() == 1 and np.isnan(value):\n            return ''\n\n        return value\n\n    def headerData(self, section, orientation, role=Qt.DisplayRole):\n        if role == Qt.InitialSortOrderRole:\n            return Qt.DescendingOrder if section > 0 else Qt.AscendingOrder\n        return super().headerData(section, orientation, role)\n\n    def setExtremesFrom(self, column, values):\n        \"\"\"Set extremes for column's ratio bars from values\"\"\"\n        try:\n            with warnings.catch_warnings():\n                warnings.filterwarnings(\n                    \"ignore\", \".*All-NaN slice encountered.*\", RuntimeWarning)\n                vmin = np.nanmin(values)\n            if np.isnan(vmin):\n                raise TypeError\n        except TypeError:\n            vmin, vmax = -np.inf, np.inf\n        else:\n            vmax = np.nanmax(values)\n        self._extremes[column] = (vmin, vmax)\n\n    def resetSorting(self, yes_reset=False):\n        # pylint: disable=arguments-differ\n        \"\"\"We don't want to invalidate our sort proxy model everytime we\n        wrap a new list. Our proxymodel only invalidates explicitly\n        (i.e. when new data is set)\"\"\"\n        if yes_reset:\n            super().resetSorting()\n\n    def _argsortData(self, data, order):\n        if data.dtype not in (float, int):\n            data = np.char.lower(data)\n        indices = np.argsort(data, kind='mergesort')\n        if order == Qt.DescendingOrder:\n            indices = indices[::-1]\n            if data.dtype == float:\n                # Always sort NaNs last\n                return np.roll(indices, -np.isnan(data).sum())\n        return indices\n",
            "new_file_content": "\"\"\"\nWrappers for controls used in widgets\n\"\"\"\nimport logging\nimport sys\nimport warnings\nimport weakref\nfrom collections.abc import Sequence\n\nimport math\nimport numpy as np\n\nfrom AnyQt import QtWidgets, QtCore, QtGui\nfrom AnyQt.QtCore import Qt, QSize, QItemSelection, QSortFilterProxyModel\nfrom AnyQt.QtGui import QColor, QWheelEvent\nfrom AnyQt.QtWidgets import QWidget, QListView, QComboBox\n\nfrom orangewidget.utils.itemdelegates import (\n    BarItemDataDelegate as _BarItemDataDelegate\n)\n# re-export relevant objects\nfrom orangewidget.gui import (\n    OWComponent, OrangeUserRole, TableView, resource_filename,\n    miscellanea, setLayout, separator, rubber, widgetBox, hBox, vBox,\n    comboBox as gui_comboBox,\n    indentedBox, widgetLabel, label, spin, doubleSpin, checkBox, lineEdit,\n    button, toolButton, radioButtons, radioButtonsInBox, appendRadioButton,\n    hSlider, labeledSlider, valueSlider, auto_commit, auto_send, auto_apply,\n    deferred,\n\n    # ItemDataRole's\n    BarRatioRole, BarBrushRole, SortOrderRole, LinkRole,\n\n    IndicatorItemDelegate, BarItemDelegate, LinkStyledItemDelegate,\n    ColoredBarItemDelegate, HorizontalGridDelegate, VerticalItemDelegate,\n    VerticalLabel, tabWidget, createTabPage, table, tableItem,\n    VisibleHeaderSectionContextEventFilter,\n    checkButtonOffsetHint, toolButtonSizeHint, FloatSlider,\n    CalendarWidgetWithTime, DateTimeEditWCalendarTime,\n    ControlGetter, VerticalScrollArea, ProgressBar,\n    ControlledCallback, ControlledCallFront, ValueCallback, connectControl,\n    is_macstyle\n)\nfrom orangewidget.utils.itemmodels import PyTableModel\n\ntry:\n    # Some Orange widgets might expect this here\n    # pylint: disable=unused-import\n    from Orange.widgets.utils.webview import WebviewWidget\nexcept ImportError:\n    pass  # Neither WebKit nor WebEngine are available\n\nimport Orange.data\nfrom Orange.widgets.utils import getdeepattr, vartype\nfrom Orange.data import \\\n    ContinuousVariable, StringVariable, TimeVariable, DiscreteVariable, \\\n    Variable, Value\n\n__all__ = [\n    # Re-exported\n    \"OWComponent\", \"OrangeUserRole\", \"TableView\", \"resource_filename\",\n    \"miscellanea\", \"setLayout\", \"separator\", \"rubber\",\n    \"widgetBox\", \"hBox\", \"vBox\", \"indentedBox\",\n    \"widgetLabel\", \"label\", \"spin\", \"doubleSpin\",\n    \"checkBox\", \"lineEdit\", \"button\", \"toolButton\", \"comboBox\",\n    \"radioButtons\", \"radioButtonsInBox\", \"appendRadioButton\",\n    \"hSlider\", \"labeledSlider\", \"valueSlider\",\n    \"auto_commit\", \"auto_send\", \"auto_apply\", \"ProgressBar\",\n    \"VerticalLabel\", \"tabWidget\", \"createTabPage\", \"table\", \"tableItem\",\n    \"VisibleHeaderSectionContextEventFilter\", \"checkButtonOffsetHint\",\n    \"toolButtonSizeHint\", \"FloatSlider\", \"ControlGetter\",  \"VerticalScrollArea\",\n    \"CalendarWidgetWithTime\", \"DateTimeEditWCalendarTime\",\n    \"BarRatioRole\", \"BarBrushRole\", \"SortOrderRole\", \"LinkRole\",\n    \"BarItemDelegate\", \"IndicatorItemDelegate\", \"LinkStyledItemDelegate\",\n    \"ColoredBarItemDelegate\", \"HorizontalGridDelegate\", \"VerticalItemDelegate\",\n    \"ValueCallback\", 'is_macstyle',\n    # Defined here\n    \"createAttributePixmap\", \"attributeIconDict\", \"attributeItem\",\n    \"listView\", \"ListViewWithSizeHint\", \"listBox\", \"OrangeListBox\",\n    \"TableValueRole\", \"TableClassValueRole\", \"TableDistribution\",\n    \"TableVariable\", \"TableBarItem\", \"palette_combo_box\", \"BarRatioTableModel\"\n]\n\n\nlog = logging.getLogger(__name__)\n\n\ndef palette_combo_box(initial_palette):\n    from Orange.widgets.utils import itemmodels\n    cb = QComboBox()\n    model = itemmodels.ContinuousPalettesModel()\n    cb.setModel(model)\n    cb.setCurrentIndex(model.indexOf(initial_palette))\n    cb.setIconSize(QSize(64, 16))\n    return cb\n\n\ndef createAttributePixmap(char, background=Qt.black, color=Qt.white):\n    \"\"\"\n    Create a QIcon with a given character. The icon is 13 pixels high and wide.\n\n    :param char: The character that is printed in the icon\n    :type char: str\n    :param background: the background color (default: black)\n    :type background: QColor\n    :param color: the character color (default: white)\n    :type color: QColor\n    :rtype: QIcon\n    \"\"\"\n    icon = QtGui.QIcon()\n    for size in (13, 16, 18, 20, 22, 24, 28, 32, 64):\n        pixmap = QtGui.QPixmap(size, size)\n        pixmap.fill(Qt.transparent)\n        painter = QtGui.QPainter()\n        painter.begin(pixmap)\n        painter.setRenderHints(painter.Antialiasing | painter.TextAntialiasing |\n                               painter.SmoothPixmapTransform)\n        painter.setPen(background)\n        painter.setBrush(background)\n        margin = 1 + size // 16\n        text_margin = size // 20\n        rect = QtCore.QRectF(margin, margin,\n                             size - 2 * margin, size - 2 * margin)\n        painter.drawRoundedRect(rect, 30.0, 30.0, Qt.RelativeSize)\n        painter.setPen(color)\n        font = painter.font()  # type: QtGui.QFont\n        font.setPixelSize(size - 2 * margin - 2 * text_margin)\n        painter.setFont(font)\n        painter.drawText(rect, Qt.AlignCenter, char)\n        painter.end()\n        icon.addPixmap(pixmap)\n    return icon\n\n\nclass __AttributeIconDict(dict):\n    def __getitem__(self, key):\n        if not self:\n            for tpe, char, col in ((vartype(ContinuousVariable(\"c\")),\n                                    \"N\", (202, 0, 32)),\n                                   (vartype(DiscreteVariable(\"d\")),\n                                    \"C\", (26, 150, 65)),\n                                   (vartype(StringVariable(\"s\")),\n                                    \"S\", (0, 0, 0)),\n                                   (vartype(TimeVariable(\"t\")),\n                                    \"T\", (68, 170, 255)),\n                                   (-1, \"?\", (128, 128, 128))):\n                self[tpe] = createAttributePixmap(char, QtGui.QColor(*col))\n        if key not in self:\n            key = vartype(key) if isinstance(key, Variable) else -1\n        return super().__getitem__(key)\n\n\n#: A dict that returns icons for different attribute types. The dict is\n#: constructed on first use since icons cannot be created before initializing\n#: the application.\n#:\n#: Accepted keys are variable type codes and instances\n#: of :obj:`Orange.data.Variable`: `attributeIconDict[var]` will give the\n#: appropriate icon for variable `var` or a question mark if the type is not\n#: recognized\nattributeIconDict = __AttributeIconDict()\n\n\ndef attributeItem(var):\n    \"\"\"\n    Construct a pair (icon, name) for inserting a variable into a combo or\n    list box\n\n    :param var: variable\n    :type var: Orange.data.Variable\n    :rtype: tuple with QIcon and str\n    \"\"\"\n    return attributeIconDict[var], var.name\n\n\nclass ListViewWithSizeHint(QListView):\n    def __init__(self, *args, preferred_size=None, **kwargs):\n        super().__init__(*args, **kwargs)\n        if isinstance(preferred_size, tuple):\n            preferred_size = QSize(*preferred_size)\n        self.preferred_size = preferred_size\n\n    def sizeHint(self):\n        return self.preferred_size if self.preferred_size is not None \\\n            else super().sizeHint()\n\n\ndef listView(widget, master, value=None, model=None, box=None, callback=None,\n             sizeHint=None, *, viewType=ListViewWithSizeHint, **misc):\n    if box:\n        bg = vBox(widget, box, addToLayout=False)\n    else:\n        bg = widget\n    view = viewType(preferred_size=sizeHint)\n    if isinstance(view.model(), QSortFilterProxyModel):\n        view.model().setSourceModel(model)\n    else:\n        view.setModel(model)\n    if value is not None:\n        connectControl(master, value, callback,\n                       view.selectionModel().selectionChanged,\n                       CallFrontListView(view),\n                       CallBackListView(model, view, master, value))\n    misc.setdefault('uniformItemSizes', True)\n    miscellanea(view, bg, widget, **misc)\n    return view\n\n\ndef listBox(widget, master, value=None, labels=None, box=None, callback=None,\n            selectionMode=QtWidgets.QListWidget.SingleSelection,\n            enableDragDrop=False, dragDropCallback=None,\n            dataValidityCallback=None, sizeHint=None, **misc):\n    \"\"\"\n    Insert a list box.\n\n    The value with which the box's value synchronizes (`master.<value>`)\n    is a list of indices of selected items.\n\n    :param widget: the widget into which the box is inserted\n    :type widget: QWidget or None\n    :param master: master widget\n    :type master: OWWidget or OWComponent\n    :param value: the name of the master's attribute with which the value is\n        synchronized (list of ints - indices of selected items)\n    :type value: str\n    :param labels: the name of the master's attribute with the list of items\n        (as strings or tuples with icon and string)\n    :type labels: str\n    :param box: tells whether the widget has a border, and its label\n    :type box: int or str or None\n    :param callback: a function that is called when the selection state is\n        changed\n    :type callback: function\n    :param selectionMode: selection mode - single, multiple etc\n    :type selectionMode: QAbstractItemView.SelectionMode\n    :param enableDragDrop: flag telling whether drag and drop is available\n    :type enableDragDrop: bool\n    :param dragDropCallback: callback function on drop event\n    :type dragDropCallback: function\n    :param dataValidityCallback: function that check the validity on enter\n        and move event; it should return either `ev.accept()` or `ev.ignore()`.\n    :type dataValidityCallback: function\n    :param sizeHint: size hint\n    :type sizeHint: QSize\n    :rtype: OrangeListBox\n    \"\"\"\n    if box:\n        bg = hBox(widget, box, addToLayout=False)\n    else:\n        bg = widget\n    lb = OrangeListBox(master, enableDragDrop, dragDropCallback,\n                       dataValidityCallback, sizeHint, bg)\n    lb.setSelectionMode(selectionMode)\n    lb.ogValue = value\n    lb.ogLabels = labels\n    lb.ogMaster = master\n\n    if labels is not None:\n        setattr(master, labels, getdeepattr(master, labels))\n        master.connect_control(labels, CallFrontListBoxLabels(lb))\n    if value is not None:\n        clist = getdeepattr(master, value)\n        if not isinstance(clist, (int, ControlledList)):\n            clist = ControlledList(clist, lb)\n            master.__setattr__(value, clist)\n        setattr(master, value, clist)\n        connectControl(master, value, callback, lb.itemSelectionChanged,\n                       CallFrontListBox(lb), CallBackListBox(lb, master))\n\n    miscellanea(lb, bg, widget, **misc)\n    return lb\n\n\nclass OrangeListBox(QtWidgets.QListWidget):\n    \"\"\"\n    List box with drag and drop functionality. Function :obj:`listBox`\n    constructs instances of this class; do not use the class directly.\n\n    .. attribute:: master\n\n        The widget into which the listbox is inserted.\n\n    .. attribute:: ogLabels\n\n        The name of the master's attribute that holds the strings with items\n        in the list box.\n\n    .. attribute:: ogValue\n\n        The name of the master's attribute that holds the indices of selected\n        items.\n\n    .. attribute:: enableDragDrop\n\n        A flag telling whether drag-and-drop is enabled.\n\n    .. attribute:: dragDropCallback\n\n        A callback that is called at the end of drop event.\n\n    .. attribute:: dataValidityCallback\n\n        A callback that is called on dragEnter and dragMove events and returns\n        either `ev.accept()` or `ev.ignore()`.\n\n    .. attribute:: defaultSizeHint\n\n        The size returned by the `sizeHint` method.\n    \"\"\"\n    def __init__(self, master, enableDragDrop=False, dragDropCallback=None,\n                 dataValidityCallback=None, sizeHint=None, *args):\n        \"\"\"\n        :param master: the master widget\n        :type master: OWWidget or OWComponent\n        :param enableDragDrop: flag telling whether drag and drop is enabled\n        :type enableDragDrop: bool\n        :param dragDropCallback: callback for the end of drop event\n        :type dragDropCallback: function\n        :param dataValidityCallback: callback that accepts or ignores dragEnter\n            and dragMove events\n        :type dataValidityCallback: function with one argument (event)\n        :param sizeHint: size hint\n        :type sizeHint: QSize\n        :param args: optional arguments for the inherited constructor\n        \"\"\"\n        self.master = master\n        super().__init__(*args)\n        self.drop_callback = dragDropCallback\n        self.valid_data_callback = dataValidityCallback\n        if not sizeHint:\n            self.size_hint = QtCore.QSize(150, 100)\n        else:\n            self.size_hint = sizeHint\n        if enableDragDrop:\n            self.setDragEnabled(True)\n            self.setAcceptDrops(True)\n            self.setDropIndicatorShown(True)\n\n    def sizeHint(self):\n        return self.size_hint\n\n    def minimumSizeHint(self):\n        return self.size_hint\n\n    def dragEnterEvent(self, event):\n        super().dragEnterEvent(event)\n        if self.valid_data_callback:\n            self.valid_data_callback(event)\n        elif isinstance(event.source(), OrangeListBox):\n            event.setDropAction(Qt.MoveAction)\n            event.accept()\n        else:\n            event.ignore()\n\n    def dropEvent(self, event):\n        event.setDropAction(Qt.MoveAction)\n        super().dropEvent(event)\n\n        items = self.update_master()\n        if event.source() is not self:\n            event.source().update_master(exclude=items)\n\n        if self.drop_callback:\n            self.drop_callback()\n\n    def update_master(self, exclude=()):\n        control_list = [self.item(i).data(Qt.UserRole)\n                        for i in range(self.count())\n                        if self.item(i).data(Qt.UserRole) not in exclude]\n        if self.ogLabels:\n            master_list = getattr(self.master, self.ogLabels)\n\n            if master_list != control_list:\n                setattr(self.master, self.ogLabels, control_list)\n        return control_list\n\n    def updateGeometries(self):\n        # A workaround for a bug in Qt\n        # (see: http://bugreports.qt.nokia.com/browse/QTBUG-14412)\n        if getattr(self, \"_updatingGeometriesNow\", False):\n            return\n        self._updatingGeometriesNow = True\n        try:\n            return super().updateGeometries()\n        finally:\n            self._updatingGeometriesNow = False\n\n\nclass ControlledList(list):\n    \"\"\"\n    A class derived from a list that is connected to a\n    :obj:`QListBox`: the list contains indices of items that are\n    selected in the list box. Changing the list content changes the\n    selection in the list box.\n    \"\"\"\n    def __init__(self, content, listBox=None):\n        super().__init__(content if content is not None else [])\n        # Controlled list is created behind the back by gui.listBox and\n        # commonly used as a setting which gets synced into a GLOBAL\n        # SettingsHandler and which keeps the OWWidget instance alive via a\n        # reference in listBox (see gui.listBox)\n        if listBox is not None:\n            self.listBox = weakref.ref(listBox)\n        else:\n            self.listBox = lambda: None\n\n    def __reduce__(self):\n        # cannot pickle self.listBox, but can't discard it\n        # (ControlledList may live on)\n        import copyreg\n        return copyreg._reconstructor, (list, list, ()), None, self.__iter__()\n\n    # TODO ControllgedList.item2name is probably never used\n    def item2name(self, item):\n        item = self.listBox().labels[item]\n        if isinstance(item, tuple):\n            return item[1]\n        else:\n            return item\n\n    def __setitem__(self, index, item):\n        def unselect(i):\n            try:\n                item = self.listBox().item(i)\n            except RuntimeError:  # Underlying C/C++ object has been deleted\n                item = None\n            if item is None:\n                # Labels changed before clearing the selection: clear everything\n                self.listBox().selectionModel().clear()\n            else:\n                item.setSelected(0)\n\n        if isinstance(index, int):\n            unselect(self[index])\n            item.setSelected(1)\n        else:\n            for i in self[index]:\n                unselect(i)\n            for i in item:\n                self.listBox().item(i).setSelected(1)\n        super().__setitem__(index, item)\n\n    def __delitem__(self, index):\n        if isinstance(index, int):\n            self.listBox().item(self[index]).setSelected(0)\n        else:\n            for i in self[index]:\n                self.listBox().item(i).setSelected(0)\n        super().__delitem__(index)\n\n    def append(self, item):\n        super().append(item)\n        item.setSelected(1)\n\n    def extend(self, items):\n        super().extend(items)\n        for i in items:\n            self.listBox().item(i).setSelected(1)\n\n    def insert(self, index, item):\n        item.setSelected(1)\n        super().insert(index, item)\n\n    def pop(self, index=-1):\n        i = super().pop(index)\n        self.listBox().item(i).setSelected(0)\n\n    def remove(self, item):\n        item.setSelected(0)\n        super().remove(item)\n\n\ndef comboBox(widget, master, value, box=None, label=None, labelWidth=None,\n             orientation=Qt.Vertical, items=(), callback=None,\n             sendSelectedValue=None, emptyString=None, editable=False,\n             contentsLength=None, searchable=False, *, model=None,\n             tooltips=None, **misc):\n    if \"valueType\" in misc:\n        del misc[\"valueType\"]\n        warnings.warn(\"Argument 'valueType' is deprecated and ignored\",\n                      DeprecationWarning)\n    return gui_comboBox(\n        widget, master, value, box, label, labelWidth, orientation, items,\n        callback, sendSelectedValue, emptyString, editable,\n        contentsLength, searchable, model=model, tooltips=tooltips, **misc)\n\n\ncomboBox.__doc__ = gui_comboBox.__doc__\n\n\nclass CallBackListView(ControlledCallback):\n    def __init__(self, model, view, widget, attribute):\n        super().__init__(widget, attribute)\n        self.model = model\n        self.view = view\n\n    # triggered by selectionModel().selectionChanged()\n    def __call__(self, *_):\n        # This must be imported locally to avoid circular imports\n        from Orange.widgets.utils.itemmodels import PyListModel\n\n        selection = self.view.selectionModel().selection()\n        if isinstance(self.view.model(), QSortFilterProxyModel):\n            selection = self.view.model().mapSelectionToSource(selection)\n        values = [i.row() for i in selection.indexes()]\n\n        # set attribute's values\n        if isinstance(self.model, PyListModel):\n            values = [self.model[i] for i in values]\n        if self.view.selectionMode() == self.view.SingleSelection:\n            assert len(values) <= 1\n            values = values[0] if values else None\n        self.acyclic_setattr(values)\n\n\nclass CallBackListBox:\n    def __init__(self, control, widget):\n        self.control = control\n        self.widget = widget\n        self.disabled = 0\n\n    def __call__(self, *_):  # triggered by selectionChange()\n        if not self.disabled and self.control.ogValue is not None:\n            clist = getdeepattr(self.widget, self.control.ogValue)\n            control = self.control\n            selection = [i for i in range(control.count())\n                         if control.item(i).isSelected()]\n            if isinstance(clist, int):\n                self.widget.__setattr__(\n                    self.control.ogValue, selection[0] if selection else None)\n            else:\n                list.__setitem__(clist, slice(0, len(clist)), selection)\n                self.widget.__setattr__(self.control.ogValue, clist)\n\n\n##############################################################################\n# call fronts (change of the attribute value changes the related control)\n\n\nclass CallFrontListView(ControlledCallFront):\n    def action(self, values):\n        view = self.control\n        model = view.model()\n        if isinstance(view.model(), QSortFilterProxyModel):\n            model = model.sourceModel()\n        sel_model = view.selectionModel()\n\n        if not isinstance(values, Sequence):\n            values = [values]\n\n        selection = QItemSelection()\n        for value in values:\n            index = None\n            if not isinstance(value, int):\n                if value is None or isinstance(value, Variable):\n                    search_role = TableVariable\n                else:\n                    search_role = Qt.DisplayRole\n                    value = str(value)\n                for i in range(model.rowCount()):\n                    if model.data(model.index(i), search_role) == value:\n                        index = i\n                        break\n            else:\n                index = value\n            if index is not None:\n                selection.select(model.index(index), model.index(index))\n        if isinstance(view.model(), QSortFilterProxyModel):\n            selection = view.model().mapSelectionFromSource(selection)\n        sel_model.select(selection, sel_model.ClearAndSelect)\n\n\nclass CallFrontListBox(ControlledCallFront):\n    def action(self, value):\n        if value is not None:\n            if isinstance(value, int):\n                for i in range(self.control.count()):\n                    self.control.item(i).setSelected(i == value)\n            else:\n                if not isinstance(value, ControlledList):\n                    setattr(self.control.ogMaster, self.control.ogValue,\n                            ControlledList(value, self.control))\n                for i in range(self.control.count()):\n                    shouldBe = i in value\n                    if shouldBe != self.control.item(i).isSelected():\n                        self.control.item(i).setSelected(shouldBe)\n\n\nclass CallFrontListBoxLabels(ControlledCallFront):\n    unknownType = None\n\n    def action(self, values):\n        self.control.clear()\n        if values:\n            for value in values:\n                if isinstance(value, tuple):\n                    text, icon = value\n                    if isinstance(icon, int):\n                        item = QtWidgets.QListWidgetItem(attributeIconDict[icon], text)\n                    else:\n                        item = QtWidgets.QListWidgetItem(icon, text)\n                elif isinstance(value, Variable):\n                    item = QtWidgets.QListWidgetItem(*attributeItem(value))\n                else:\n                    item = QtWidgets.QListWidgetItem(value)\n\n                item.setData(Qt.UserRole, value)\n                self.control.addItem(item)\n\n\n#: Role to retrieve Orange.data.Value\nTableValueRole = next(OrangeUserRole)\n#: Role to retrieve class value for a row\nTableClassValueRole = next(OrangeUserRole)\n# Role to retrieve distribution of a column\nTableDistribution = next(OrangeUserRole)\n#: Role to retrieve the column's variable\nTableVariable = next(OrangeUserRole)\n\n\nclass TableBarItem(_BarItemDataDelegate):\n    BarRole = next(OrangeUserRole)\n    BarColorRole = next(OrangeUserRole)\n    __slots__ = (\"color_schema\",)\n\n    def __init__(\n            self, parent=None, color=QColor(255, 170, 127), width=5,\n            barFillRatioRole=BarRole, barColorRole=BarColorRole,\n            color_schema=None,\n            **kwargs\n    ):\n        \"\"\"\n        :param QObject parent: Parent object.\n        :param QColor color: Default color of the distribution bar.\n        :param color_schema:\n            If not None it must be an instance of\n            :class:`OWColorPalette.ColorPaletteGenerator` (note: this\n            parameter, if set, overrides the ``color``)\n        :type color_schema: :class:`OWColorPalette.ColorPaletteGenerator`\n        \"\"\"\n        super().__init__(\n            parent, color=color, penWidth=width,\n            barFillRatioRole=barFillRatioRole, barColorRole=barColorRole,\n            **kwargs\n        )\n        self.color_schema = color_schema\n\n    def barColorData(self, index):\n        class_ = self.cachedData(index, TableClassValueRole)\n        if self.color_schema is not None \\\n                and isinstance(class_, Value) \\\n                and isinstance(class_.variable, DiscreteVariable) \\\n                and not math.isnan(class_):\n            return self.color_schema[int(class_)]\n        return self.cachedData(index, self.BarColorRole)\n\n\nfrom Orange.widgets.utils.colorpalettes import patch_variable_colors\npatch_variable_colors()\n\n\nclass HScrollStepMixin:\n    \"\"\"\n    Overrides default TableView horizontal behavior (scrolls 1 page at a time)\n    to a friendlier scroll speed akin to that of vertical scrolling.\n    \"\"\"\n\n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.horizontalScrollBar().setSingleStep(20)\n\n    def wheelEvent(self, event: QWheelEvent):\n        if hasattr(event, \"source\") and \\\n                event.source() == Qt.MouseEventNotSynthesized and \\\n                (event.modifiers() & Qt.ShiftModifier and sys.platform == 'darwin' or\n                 event.modifiers() & Qt.AltModifier and sys.platform != 'darwin'):\n            new_event = QWheelEvent(\n                event.pos(), event.globalPos(), event.pixelDelta(),\n                event.angleDelta(), event.buttons(), Qt.NoModifier,\n                event.phase(), event.inverted(), Qt.MouseEventSynthesizedByApplication\n            )\n            event.accept()\n            super().wheelEvent(new_event)\n        else:\n            super().wheelEvent(event)\n\n\nclass BarRatioTableModel(PyTableModel):\n    \"\"\"A model for displaying python tables.\n    Adds a BarRatioRole that returns Data, normalized between the extremes.\n    NaNs are listed last when sorting.\"\"\"\n\n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n        self._extremes = {}\n\n    def data(self, index, role=Qt.DisplayRole):\n        if role == BarRatioRole and index.isValid():\n            value = super().data(index, Qt.EditRole)\n            if not isinstance(value, float):\n                return None\n            vmin, vmax = self._extremes.get(index.column(), (-np.inf, np.inf))\n            value = (value - vmin) / ((vmax - vmin) or 1)\n            return value\n\n        if role == Qt.DisplayRole and index.column() != 0:\n            role = Qt.EditRole\n\n        value = super().data(index, role)\n\n        # Display nothing for non-existent attr value counts in column 1\n        if role == Qt.EditRole \\\n                and index.column() == 1 and np.isnan(value):\n            return ''\n\n        return value\n\n    def headerData(self, section, orientation, role=Qt.DisplayRole):\n        if role == Qt.InitialSortOrderRole:\n            return Qt.DescendingOrder if section > 0 else Qt.AscendingOrder\n        return super().headerData(section, orientation, role)\n\n    def setExtremesFrom(self, column, values):\n        \"\"\"Set extremes for column's ratio bars from values\"\"\"\n        try:\n            with warnings.catch_warnings():\n                warnings.filterwarnings(\n                    \"ignore\", \".*All-NaN slice encountered.*\", RuntimeWarning)\n                vmin = np.nanmin(values)\n            if np.isnan(vmin):\n                raise TypeError\n        except TypeError:\n            vmin, vmax = -np.inf, np.inf\n        else:\n            vmax = np.nanmax(values)\n        self._extremes[column] = (vmin, vmax)\n\n    def resetSorting(self, yes_reset=False):\n        # pylint: disable=arguments-differ\n        \"\"\"We don't want to invalidate our sort proxy model everytime we\n        wrap a new list. Our proxymodel only invalidates explicitly\n        (i.e. when new data is set)\"\"\"\n        if yes_reset:\n            super().resetSorting()\n\n    def _argsortData(self, data, order):\n        if data.dtype not in (float, int):\n            data = np.char.lower(data)\n        indices = np.argsort(data, kind='mergesort')\n        if order == Qt.DescendingOrder:\n            indices = indices[::-1]\n            if data.dtype == float:\n                # Always sort NaNs last\n                return np.roll(indices, -np.isnan(data).sum())\n        return indices\n",
            "header": {
                "file": {
                    "path": "Orange/widgets/gui.py"
                },
                "misc_line": null
            },
            "index_line": {
                "old_commit_hash": "75b458965",
                "new_commit_hash": "ebae96e3a",
                "mode": "100644"
            },
            "is_binary_file": false,
            "binary_line": null,
            "minus_file": {
                "path": "a/Orange/widgets/gui.py"
            },
            "plus_file": {
                "path": "b/Orange/widgets/gui.py"
            },
            "hunks": [
                {
                    "descriptor": {
                        "old_range": {
                            "start": 503,
                            "length": 14
                        },
                        "new_range": {
                            "start": 503,
                            "length": 14
                        },
                        "section": "class CallBackListView(ControlledCallback):"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "        if isinstance(self.view.model(), QSortFilterProxyModel):",
                                "type": "context"
                            },
                            {
                                "content": "            selection = self.view.model().mapSelectionToSource(selection)",
                                "type": "context"
                            },
                            {
                                "content": "        values = [i.row() for i in selection.indexes()]",
                                "type": "context"
                            },
                            {
                                "content": "        if values:",
                                "type": "deleted"
                            },
                            {
                                "content": "            # FIXME: irrespective of PyListModel check, this might/should always",
                                "type": "deleted"
                            },
                            {
                                "content": "            # callback with values!",
                                "type": "deleted"
                            },
                            {
                                "content": "            if isinstance(self.model, PyListModel):",
                                "type": "deleted"
                            },
                            {
                                "content": "                values = [self.model[i] for i in values]",
                                "type": "deleted"
                            },
                            {
                                "content": "            if self.view.selectionMode() == self.view.SingleSelection:",
                                "type": "deleted"
                            },
                            {
                                "content": "                values = values[0]",
                                "type": "deleted"
                            },
                            {
                                "content": "            self.acyclic_setattr(values)",
                                "type": "deleted"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "        # set attribute's values",
                                "type": "added"
                            },
                            {
                                "content": "        if isinstance(self.model, PyListModel):",
                                "type": "added"
                            },
                            {
                                "content": "            values = [self.model[i] for i in values]",
                                "type": "added"
                            },
                            {
                                "content": "        if self.view.selectionMode() == self.view.SingleSelection:",
                                "type": "added"
                            },
                            {
                                "content": "            assert len(values) <= 1",
                                "type": "added"
                            },
                            {
                                "content": "            values = values[0] if values else None",
                                "type": "added"
                            },
                            {
                                "content": "        self.acyclic_setattr(values)",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "class CallBackListBox:",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [
                        {
                            "file_name": "Orange/widgets/gui.py",
                            "type": "method",
                            "name": "CallBackListView.__call__",
                            "content": "class CallBackListView(ControlledCallback):\n    def __init__(self, model, view, widget, attribute):\n        super().__init__(widget, attribute)\n        self.model = model\n        self.view = view\n\n    # triggered by selectionModel().selectionChanged()\n    def __call__(self, *_):\n        # This must be imported locally to avoid circular imports\n        from Orange.widgets.utils.itemmodels import PyListModel\n\n        selection = self.view.selectionModel().selection()\n        if isinstance(self.view.model(), QSortFilterProxyModel):\n            selection = self.view.model().mapSelectionToSource(selection)\n        values = [i.row() for i in selection.indexes()]\n        if values:\n            # FIXME: irrespective of PyListModel check, this might/should always\n            # callback with values!\n            if isinstance(self.model, PyListModel):\n                values = [self.model[i] for i in values]\n            if self.view.selectionMode() == self.view.SingleSelection:\n                values = values[0]\n            self.acyclic_setattr(values)",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 498,
                            "end_lineno": 513,
                            "parent": {
                                "file_name": "Orange/widgets/gui.py",
                                "type": "class",
                                "name": "CallBackListView",
                                "content": "class CallBackListView(ControlledCallback):\n    def __init__(self, model, view, widget, attribute):\n        super().__init__(widget, attribute)\n        self.model = model\n        self.view = view\n\n    # triggered by selectionModel().selectionChanged()\n    def __call__(self, *_):\n        # This must be imported locally to avoid circular imports\n        from Orange.widgets.utils.itemmodels import PyListModel\n\n        selection = self.view.selectionModel().selection()\n        if isinstance(self.view.model(), QSortFilterProxyModel):\n            selection = self.view.model().mapSelectionToSource(selection)\n        values = [i.row() for i in selection.indexes()]\n        if values:\n            # FIXME: irrespective of PyListModel check, this might/should always\n            # callback with values!\n            if isinstance(self.model, PyListModel):\n                values = [self.model[i] for i in values]\n            if self.view.selectionMode() == self.view.SingleSelection:\n                values = values[0]\n            self.acyclic_setattr(values)",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 491,
                                "end_lineno": 513,
                                "parent": null
                            }
                        },
                        {
                            "file_name": "Orange/widgets/gui.py",
                            "type": "class",
                            "name": "CallBackListView",
                            "content": "class CallBackListView(ControlledCallback):\n    def __init__(self, model, view, widget, attribute):\n        super().__init__(widget, attribute)\n        self.model = model\n        self.view = view\n\n    # triggered by selectionModel().selectionChanged()\n    def __call__(self, *_):\n        # This must be imported locally to avoid circular imports\n        from Orange.widgets.utils.itemmodels import PyListModel\n\n        selection = self.view.selectionModel().selection()\n        if isinstance(self.view.model(), QSortFilterProxyModel):\n            selection = self.view.model().mapSelectionToSource(selection)\n        values = [i.row() for i in selection.indexes()]\n        if values:\n            # FIXME: irrespective of PyListModel check, this might/should always\n            # callback with values!\n            if isinstance(self.model, PyListModel):\n                values = [self.model[i] for i in values]\n            if self.view.selectionMode() == self.view.SingleSelection:\n                values = values[0]\n            self.acyclic_setattr(values)",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 491,
                            "end_lineno": 513,
                            "parent": null
                        }
                    ],
                    "added_entities": [],
                    "deleted_entities": []
                }
            ]
        },
        {
            "old_file_content": "from unittest.mock import patch\n\nimport numpy as np\n\nfrom AnyQt.QtCore import Qt\n\nfrom Orange.data import ContinuousVariable\nfrom Orange.widgets import gui\nfrom Orange.widgets.gui import BarRatioTableModel\nfrom Orange.widgets.tests.base import GuiTest\nfrom Orange.widgets.utils.itemmodels import VariableListModel\nfrom Orange.widgets.widget import OWWidget\n\n\nclass TestDoubleSpin(GuiTest):\n    # make sure that the gui element does not crash when\n    # 'checked' parameter is forwarded, ie. is not None\n    def test_checked_extension(self):\n        widget = OWWidget()\n        widget.some_param = 0\n        widget.some_option = False\n        gui.doubleSpin(widget=widget, master=widget, value=\"some_param\",\n                       minv=1, maxv=10, checked=\"some_option\")\n\n\nclass TestListModel(GuiTest):\n    def setUp(self):\n        self.widget = OWWidget()\n        self.widget.foo = None\n        self.attrs = VariableListModel()\n        self.view = gui.listView(\n            self.widget.controlArea, self.widget, \"foo\", model=self.attrs)\n\n    def tearDown(self) -> None:\n        self.widget.deleteLater()\n        del self.widget\n\n    def test_select_callback(self):\n        widget = self.widget\n        view = self.view\n\n        self.assertIsNone(widget.foo)\n\n        a, b, c = (ContinuousVariable(x) for x in \"abc\")\n        self.attrs[:] = [a, b, c]\n\n        view.setCurrentIndex(self.attrs.index(0, 0))\n        self.assertIs(widget.foo, a)\n        view.setCurrentIndex(self.attrs.index(2, 0))\n        self.assertIs(widget.foo, c)\n\n        view.setSelectionMode(view.MultiSelection)\n        sel_model = view.selectionModel()\n        sel_model.clear()\n        view.setCurrentIndex(self.attrs.index(1, 0))\n        self.assertEqual(widget.foo, [b])\n\n    def test_select_callfront(self):\n        widget = self.widget\n        view = self.view\n\n        a, b, c = (ContinuousVariable(x) for x in \"abc\")\n        self.attrs[:] = [a, b, c]\n\n        widget.foo = b\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 1)\n        self.assertEqual(selection[0].row(), 1)\n\n        view.setSelectionMode(view.MultiSelection)\n        widget.foo = [a, c]\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 2)\n        self.assertEqual({selection[0].row(), selection[1].row()}, {0, 2})\n\n        widget.foo = []\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 0)\n\n        widget.foo = [2, \"b\"]\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 2)\n        self.assertEqual({selection[0].row(), selection[1].row()}, {1, 2})\n\n\nclass TestFloatSlider(GuiTest):\n\n    def test_set_value(self):\n        w = gui.FloatSlider(Qt.Horizontal, 0., 1., 0.5)\n        w.setValue(1)\n        # Float slider returns value divided by step\n        # 1/0.5 = 2\n        self.assertEqual(w.value(), 2)\n        w = gui.FloatSlider(Qt.Horizontal, 0., 1., 0.05)\n        w.setValue(1)\n        # 1/0.05 = 20\n        self.assertEqual(w.value(), 20)\n\n\nclass ComboBoxTest(GuiTest):\n    def test_set_initial_value(self):\n        widget = OWWidget()\n        variables = [ContinuousVariable(x) for x in \"abc\"]\n        model = VariableListModel(variables)\n        widget.foo = variables[1]\n        combo = gui.comboBox(widget.controlArea, widget, \"foo\", model=model)\n        self.assertEqual(combo.currentIndex(), 1)\n\n    @patch(\"Orange.widgets.gui.gui_comboBox\")\n    def test_warn_value_type(self, gui_combobox):\n        with self.assertWarns(DeprecationWarning):\n            gui.comboBox(None, None, \"foo\", valueType=int, editable=True)\n\n\nclass TestRankModel(GuiTest):\n    @staticmethod\n    def test_argsort():\n        func = BarRatioTableModel()._argsortData  # pylint: disable=protected-access\n        assert_equal = np.testing.assert_equal\n\n        test_array = np.array([4.2, 7.2, np.nan, 1.3, np.nan])\n        assert_equal(func(test_array, Qt.AscendingOrder)[:3], [3, 0, 1])\n        assert_equal(func(test_array, Qt.DescendingOrder)[:3], [1, 0, 3])\n\n        test_array = np.array([4, 7, 2])\n        assert_equal(func(test_array, Qt.AscendingOrder), [2, 0, 1])\n        assert_equal(func(test_array, Qt.DescendingOrder), [1, 0, 2])\n\n        test_array = np.array([\"Bertha\", \"daniela\", \"ann\", \"Cecilia\"])\n        assert_equal(func(test_array, Qt.AscendingOrder), [2, 0, 3, 1])\n        assert_equal(func(test_array, Qt.DescendingOrder), [1, 3, 0, 2])\n",
            "new_file_content": "import unittest\nfrom unittest.mock import patch\n\nimport numpy as np\n\nfrom AnyQt.QtCore import Qt\n\nfrom Orange.data import ContinuousVariable\nfrom Orange.widgets import gui\nfrom Orange.widgets.gui import BarRatioTableModel\nfrom Orange.widgets.tests.base import GuiTest\nfrom Orange.widgets.utils.itemmodels import VariableListModel\nfrom Orange.widgets.widget import OWWidget\n\n\nclass TestDoubleSpin(GuiTest):\n    # make sure that the gui element does not crash when\n    # 'checked' parameter is forwarded, ie. is not None\n    def test_checked_extension(self):\n        widget = OWWidget()\n        widget.some_param = 0\n        widget.some_option = False\n        gui.doubleSpin(widget=widget, master=widget, value=\"some_param\",\n                       minv=1, maxv=10, checked=\"some_option\")\n\n\nclass TestListModel(GuiTest):\n    def setUp(self):\n        self.widget = OWWidget()\n        self.widget.foo = None\n        self.attrs = VariableListModel()\n        self.view = gui.listView(\n            self.widget.controlArea, self.widget, \"foo\", model=self.attrs)\n\n    def tearDown(self) -> None:\n        self.widget.deleteLater()\n        del self.widget\n\n    def test_select_callback(self):\n        widget = self.widget\n        view = self.view\n\n        self.assertIsNone(widget.foo)\n\n        a, b, c = (ContinuousVariable(x) for x in \"abc\")\n        self.attrs[:] = [a, b, c]\n\n        view.setCurrentIndex(self.attrs.index(0, 0))\n        self.assertIs(widget.foo, a)\n        view.setCurrentIndex(self.attrs.index(2, 0))\n        self.assertIs(widget.foo, c)\n\n        view.setSelectionMode(view.MultiSelection)\n        sel_model = view.selectionModel()\n        sel_model.clear()\n        view.setCurrentIndex(self.attrs.index(1, 0))\n        self.assertEqual(widget.foo, [b])\n\n        # unselect all\n        sel_model.clear()\n        self.assertEqual(widget.foo, [])\n\n    def test_select_callfront(self):\n        widget = self.widget\n        view = self.view\n\n        a, b, c = (ContinuousVariable(x) for x in \"abc\")\n        self.attrs[:] = [a, b, c]\n\n        widget.foo = b\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 1)\n        self.assertEqual(selection[0].row(), 1)\n\n        view.setSelectionMode(view.MultiSelection)\n        widget.foo = [a, c]\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 2)\n        self.assertEqual({selection[0].row(), selection[1].row()}, {0, 2})\n\n        widget.foo = []\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 0)\n\n        widget.foo = [2, \"b\"]\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 2)\n        self.assertEqual({selection[0].row(), selection[1].row()}, {1, 2})\n\n\nclass TestFloatSlider(GuiTest):\n\n    def test_set_value(self):\n        w = gui.FloatSlider(Qt.Horizontal, 0., 1., 0.5)\n        w.setValue(1)\n        # Float slider returns value divided by step\n        # 1/0.5 = 2\n        self.assertEqual(w.value(), 2)\n        w = gui.FloatSlider(Qt.Horizontal, 0., 1., 0.05)\n        w.setValue(1)\n        # 1/0.05 = 20\n        self.assertEqual(w.value(), 20)\n\n\nclass ComboBoxTest(GuiTest):\n    def test_set_initial_value(self):\n        widget = OWWidget()\n        variables = [ContinuousVariable(x) for x in \"abc\"]\n        model = VariableListModel(variables)\n        widget.foo = variables[1]\n        combo = gui.comboBox(widget.controlArea, widget, \"foo\", model=model)\n        self.assertEqual(combo.currentIndex(), 1)\n\n    @patch(\"Orange.widgets.gui.gui_comboBox\")\n    def test_warn_value_type(self, gui_combobox):\n        with self.assertWarns(DeprecationWarning):\n            gui.comboBox(None, None, \"foo\", valueType=int, editable=True)\n\n\nclass TestRankModel(GuiTest):\n    @staticmethod\n    def test_argsort():\n        func = BarRatioTableModel()._argsortData  # pylint: disable=protected-access\n        assert_equal = np.testing.assert_equal\n\n        test_array = np.array([4.2, 7.2, np.nan, 1.3, np.nan])\n        assert_equal(func(test_array, Qt.AscendingOrder)[:3], [3, 0, 1])\n        assert_equal(func(test_array, Qt.DescendingOrder)[:3], [1, 0, 3])\n\n        test_array = np.array([4, 7, 2])\n        assert_equal(func(test_array, Qt.AscendingOrder), [2, 0, 1])\n        assert_equal(func(test_array, Qt.DescendingOrder), [1, 0, 2])\n\n        test_array = np.array([\"Bertha\", \"daniela\", \"ann\", \"Cecilia\"])\n        assert_equal(func(test_array, Qt.AscendingOrder), [2, 0, 3, 1])\n        assert_equal(func(test_array, Qt.DescendingOrder), [1, 3, 0, 2])\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n",
            "header": {
                "file": {
                    "path": "Orange/widgets/tests/test_gui.py"
                },
                "misc_line": null
            },
            "index_line": {
                "old_commit_hash": "1d7d46b73",
                "new_commit_hash": "6c385b7e9",
                "mode": "100644"
            },
            "is_binary_file": false,
            "binary_line": null,
            "minus_file": {
                "path": "a/Orange/widgets/tests/test_gui.py"
            },
            "plus_file": {
                "path": "b/Orange/widgets/tests/test_gui.py"
            },
            "hunks": [
                {
                    "descriptor": {
                        "old_range": {
                            "start": 1,
                            "length": 3
                        },
                        "new_range": {
                            "start": 1,
                            "length": 4
                        },
                        "section": ""
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "import unittest",
                                "type": "added"
                            },
                            {
                                "content": "from unittest.mock import patch",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "import numpy as np",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [],
                    "added_entities": [
                        {
                            "file_name": "Orange/widgets/tests/test_gui.py",
                            "type": "import",
                            "name": "unittest",
                            "content": "import unittest",
                            "ast_type_str": "Import",
                            "start_lineno": 1,
                            "end_lineno": 1,
                            "parent": null
                        }
                    ],
                    "deleted_entities": []
                },
                {
                    "descriptor": {
                        "old_range": {
                            "start": 55,
                            "length": 6
                        },
                        "new_range": {
                            "start": 56,
                            "length": 10
                        },
                        "section": "class TestListModel(GuiTest):"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "        view.setCurrentIndex(self.attrs.index(1, 0))",
                                "type": "context"
                            },
                            {
                                "content": "        self.assertEqual(widget.foo, [b])",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "        # unselect all",
                                "type": "added"
                            },
                            {
                                "content": "        sel_model.clear()",
                                "type": "added"
                            },
                            {
                                "content": "        self.assertEqual(widget.foo, [])",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "    def test_select_callfront(self):",
                                "type": "context"
                            },
                            {
                                "content": "        widget = self.widget",
                                "type": "context"
                            },
                            {
                                "content": "        view = self.view",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [
                        {
                            "file_name": "Orange/widgets/tests/test_gui.py",
                            "type": "class",
                            "name": "TestListModel",
                            "content": "class TestListModel(GuiTest):\n    def setUp(self):\n        self.widget = OWWidget()\n        self.widget.foo = None\n        self.attrs = VariableListModel()\n        self.view = gui.listView(\n            self.widget.controlArea, self.widget, \"foo\", model=self.attrs)\n\n    def tearDown(self) -> None:\n        self.widget.deleteLater()\n        del self.widget\n\n    def test_select_callback(self):\n        widget = self.widget\n        view = self.view\n\n        self.assertIsNone(widget.foo)\n\n        a, b, c = (ContinuousVariable(x) for x in \"abc\")\n        self.attrs[:] = [a, b, c]\n\n        view.setCurrentIndex(self.attrs.index(0, 0))\n        self.assertIs(widget.foo, a)\n        view.setCurrentIndex(self.attrs.index(2, 0))\n        self.assertIs(widget.foo, c)\n\n        view.setSelectionMode(view.MultiSelection)\n        sel_model = view.selectionModel()\n        sel_model.clear()\n        view.setCurrentIndex(self.attrs.index(1, 0))\n        self.assertEqual(widget.foo, [b])\n\n        # unselect all\n        sel_model.clear()\n        self.assertEqual(widget.foo, [])\n\n    def test_select_callfront(self):\n        widget = self.widget\n        view = self.view\n\n        a, b, c = (ContinuousVariable(x) for x in \"abc\")\n        self.attrs[:] = [a, b, c]\n\n        widget.foo = b\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 1)\n        self.assertEqual(selection[0].row(), 1)\n\n        view.setSelectionMode(view.MultiSelection)\n        widget.foo = [a, c]\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 2)\n        self.assertEqual({selection[0].row(), selection[1].row()}, {0, 2})\n\n        widget.foo = []\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 0)\n\n        widget.foo = [2, \"b\"]\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 2)\n        self.assertEqual({selection[0].row(), selection[1].row()}, {1, 2})",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 27,
                            "end_lineno": 88,
                            "parent": null
                        },
                        {
                            "file_name": "Orange/widgets/tests/test_gui.py",
                            "type": "method",
                            "name": "TestListModel.test_select_callback",
                            "content": "class TestListModel(GuiTest):\n    def setUp(self):\n        self.widget = OWWidget()\n        self.widget.foo = None\n        self.attrs = VariableListModel()\n        self.view = gui.listView(\n            self.widget.controlArea, self.widget, \"foo\", model=self.attrs)\n\n    def tearDown(self) -> None:\n        self.widget.deleteLater()\n        del self.widget\n\n    def test_select_callback(self):\n        widget = self.widget\n        view = self.view\n\n        self.assertIsNone(widget.foo)\n\n        a, b, c = (ContinuousVariable(x) for x in \"abc\")\n        self.attrs[:] = [a, b, c]\n\n        view.setCurrentIndex(self.attrs.index(0, 0))\n        self.assertIs(widget.foo, a)\n        view.setCurrentIndex(self.attrs.index(2, 0))\n        self.assertIs(widget.foo, c)\n\n        view.setSelectionMode(view.MultiSelection)\n        sel_model = view.selectionModel()\n        sel_model.clear()\n        view.setCurrentIndex(self.attrs.index(1, 0))\n        self.assertEqual(widget.foo, [b])\n\n        # unselect all\n        sel_model.clear()\n        self.assertEqual(widget.foo, [])\n\n    def test_select_callfront(self):\n        widget = self.widget\n        view = self.view\n\n        a, b, c = (ContinuousVariable(x) for x in \"abc\")\n        self.attrs[:] = [a, b, c]\n\n        widget.foo = b\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 1)\n        self.assertEqual(selection[0].row(), 1)\n\n        view.setSelectionMode(view.MultiSelection)\n        widget.foo = [a, c]\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 2)\n        self.assertEqual({selection[0].row(), selection[1].row()}, {0, 2})\n\n        widget.foo = []\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 0)\n\n        widget.foo = [2, \"b\"]\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 2)\n        self.assertEqual({selection[0].row(), selection[1].row()}, {1, 2})",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 39,
                            "end_lineno": 61,
                            "parent": {
                                "file_name": "Orange/widgets/tests/test_gui.py",
                                "type": "class",
                                "name": "TestListModel",
                                "content": "class TestListModel(GuiTest):\n    def setUp(self):\n        self.widget = OWWidget()\n        self.widget.foo = None\n        self.attrs = VariableListModel()\n        self.view = gui.listView(\n            self.widget.controlArea, self.widget, \"foo\", model=self.attrs)\n\n    def tearDown(self) -> None:\n        self.widget.deleteLater()\n        del self.widget\n\n    def test_select_callback(self):\n        widget = self.widget\n        view = self.view\n\n        self.assertIsNone(widget.foo)\n\n        a, b, c = (ContinuousVariable(x) for x in \"abc\")\n        self.attrs[:] = [a, b, c]\n\n        view.setCurrentIndex(self.attrs.index(0, 0))\n        self.assertIs(widget.foo, a)\n        view.setCurrentIndex(self.attrs.index(2, 0))\n        self.assertIs(widget.foo, c)\n\n        view.setSelectionMode(view.MultiSelection)\n        sel_model = view.selectionModel()\n        sel_model.clear()\n        view.setCurrentIndex(self.attrs.index(1, 0))\n        self.assertEqual(widget.foo, [b])\n\n        # unselect all\n        sel_model.clear()\n        self.assertEqual(widget.foo, [])\n\n    def test_select_callfront(self):\n        widget = self.widget\n        view = self.view\n\n        a, b, c = (ContinuousVariable(x) for x in \"abc\")\n        self.attrs[:] = [a, b, c]\n\n        widget.foo = b\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 1)\n        self.assertEqual(selection[0].row(), 1)\n\n        view.setSelectionMode(view.MultiSelection)\n        widget.foo = [a, c]\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 2)\n        self.assertEqual({selection[0].row(), selection[1].row()}, {0, 2})\n\n        widget.foo = []\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 0)\n\n        widget.foo = [2, \"b\"]\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 2)\n        self.assertEqual({selection[0].row(), selection[1].row()}, {1, 2})",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 27,
                                "end_lineno": 88,
                                "parent": null
                            }
                        }
                    ],
                    "added_entities": [],
                    "deleted_entities": []
                },
                {
                    "descriptor": {
                        "old_range": {
                            "start": 129,
                            "length": 3
                        },
                        "new_range": {
                            "start": 134,
                            "length": 7
                        },
                        "section": "class TestRankModel(GuiTest):"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "        test_array = np.array([\"Bertha\", \"daniela\", \"ann\", \"Cecilia\"])",
                                "type": "context"
                            },
                            {
                                "content": "        assert_equal(func(test_array, Qt.AscendingOrder), [2, 0, 3, 1])",
                                "type": "context"
                            },
                            {
                                "content": "        assert_equal(func(test_array, Qt.DescendingOrder), [1, 3, 0, 2])",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "if __name__ == \"__main__\":",
                                "type": "added"
                            },
                            {
                                "content": "    unittest.main()",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [],
                    "added_entities": [
                        {
                            "file_name": "Orange/widgets/tests/test_gui.py",
                            "type": "statement",
                            "name": "",
                            "content": "if __name__ == \"__main__\":\n    unittest.main()",
                            "ast_type_str": "If",
                            "start_lineno": 139,
                            "end_lineno": 140,
                            "parent": null
                        }
                    ],
                    "deleted_entities": []
                }
            ]
        }
    ],
    "old_commit_hash": "2d2e297c7eecf85076e3e6b4e002cb017b4943f6^",
    "new_commit_hash": "2d2e297c7eecf85076e3e6b4e002cb017b4943f6",
    "commit_message": "Merge pull request #6441 from PrimozGodec/fix-list-view-selection\n\n[FIX] ListView - empty variable when all values unselected",
    "commit_date": "2023-05-18T22:12:49+02:00",
    "metadata": {}
}
{
    "repo_name": "orange3",
    "new_commit_hash": "2d2e297c7eecf85076e3e6b4e002cb017b4943f6",
    "test_file_codes": [
        "import unittest\nfrom unittest.mock import patch\n\nimport numpy as np\n\nfrom AnyQt.QtCore import Qt\n\nfrom Orange.data import ContinuousVariable\nfrom Orange.widgets import gui\nfrom Orange.widgets.gui import BarRatioTableModel\nfrom Orange.widgets.tests.base import GuiTest\nfrom Orange.widgets.utils.itemmodels import VariableListModel\nfrom Orange.widgets.widget import OWWidget\n\n\nclass TestDoubleSpin(GuiTest):\n    # make sure that the gui element does not crash when\n    # 'checked' parameter is forwarded, ie. is not None\n    def test_checked_extension(self):\n        widget = OWWidget()\n        widget.some_param = 0\n        widget.some_option = False\n        gui.doubleSpin(widget=widget, master=widget, value=\"some_param\",\n                       minv=1, maxv=10, checked=\"some_option\")\n\n\nclass TestListModel(GuiTest):\n    def setUp(self):\n        self.widget = OWWidget()\n        self.widget.foo = None\n        self.attrs = VariableListModel()\n        self.view = gui.listView(\n            self.widget.controlArea, self.widget, \"foo\", model=self.attrs)\n\n    def tearDown(self) -> None:\n        self.widget.deleteLater()\n        del self.widget\n\n    def test_select_callback(self):\n        widget = self.widget\n        view = self.view\n\n        self.assertIsNone(widget.foo)\n\n        a, b, c = (ContinuousVariable(x) for x in \"abc\")\n        self.attrs[:] = [a, b, c]\n\n        view.setCurrentIndex(self.attrs.index(0, 0))\n        self.assertIs(widget.foo, a)\n        view.setCurrentIndex(self.attrs.index(2, 0))\n        self.assertIs(widget.foo, c)\n\n        view.setSelectionMode(view.MultiSelection)\n        sel_model = view.selectionModel()\n        sel_model.clear()\n        view.setCurrentIndex(self.attrs.index(1, 0))\n        self.assertEqual(widget.foo, [b])\n\n        # unselect all\n        sel_model.clear()\n        self.assertEqual(widget.foo, [])\n\n    def test_select_callfront(self):\n        widget = self.widget\n        view = self.view\n\n        a, b, c = (ContinuousVariable(x) for x in \"abc\")\n        self.attrs[:] = [a, b, c]\n\n        widget.foo = b\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 1)\n        self.assertEqual(selection[0].row(), 1)\n\n        view.setSelectionMode(view.MultiSelection)\n        widget.foo = [a, c]\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 2)\n        self.assertEqual({selection[0].row(), selection[1].row()}, {0, 2})\n\n        widget.foo = []\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 0)\n\n        widget.foo = [2, \"b\"]\n        selection = view.selectedIndexes()\n        self.assertEqual(len(selection), 2)\n        self.assertEqual({selection[0].row(), selection[1].row()}, {1, 2})\n\n\nclass TestFloatSlider(GuiTest):\n\n    def test_set_value(self):\n        w = gui.FloatSlider(Qt.Horizontal, 0., 1., 0.5)\n        w.setValue(1)\n        # Float slider returns value divided by step\n        # 1/0.5 = 2\n        self.assertEqual(w.value(), 2)\n        w = gui.FloatSlider(Qt.Horizontal, 0., 1., 0.05)\n        w.setValue(1)\n        # 1/0.05 = 20\n        self.assertEqual(w.value(), 20)\n\n\nclass ComboBoxTest(GuiTest):\n    def test_set_initial_value(self):\n        widget = OWWidget()\n        variables = [ContinuousVariable(x) for x in \"abc\"]\n        model = VariableListModel(variables)\n        widget.foo = variables[1]\n        combo = gui.comboBox(widget.controlArea, widget, \"foo\", model=model)\n        self.assertEqual(combo.currentIndex(), 1)\n\n    @patch(\"Orange.widgets.gui.gui_comboBox\")\n    def test_warn_value_type(self, gui_combobox):\n        with self.assertWarns(DeprecationWarning):\n            gui.comboBox(None, None, \"foo\", valueType=int, editable=True)\n\n\nclass TestRankModel(GuiTest):\n    @staticmethod\n    def test_argsort():\n        func = BarRatioTableModel()._argsortData  # pylint: disable=protected-access\n        assert_equal = np.testing.assert_equal\n\n        test_array = np.array([4.2, 7.2, np.nan, 1.3, np.nan])\n        assert_equal(func(test_array, Qt.AscendingOrder)[:3], [3, 0, 1])\n        assert_equal(func(test_array, Qt.DescendingOrder)[:3], [1, 0, 3])\n\n        test_array = np.array([4, 7, 2])\n        assert_equal(func(test_array, Qt.AscendingOrder), [2, 0, 1])\n        assert_equal(func(test_array, Qt.DescendingOrder), [1, 0, 2])\n\n        test_array = np.array([\"Bertha\", \"daniela\", \"ann\", \"Cecilia\"])\n        assert_equal(func(test_array, Qt.AscendingOrder), [2, 0, 3, 1])\n        assert_equal(func(test_array, Qt.DescendingOrder), [1, 3, 0, 2])\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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/Orange3.egg-link (link to .)\nAdding Orange3 3.36.0.dev0+2d2e297 to easy-install.pth file\nInstalling orange-canvas script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6\nProcessing dependencies for Orange3==3.36.0.dev0+2d2e297\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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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-2n0l5kv5/serverfiles-0.3.1/setup.cfg\nRunning serverfiles-0.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-2n0l5kv5/serverfiles-0.3.1/egg-dist-tmp-zy8n91fk\ncreating /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/Orange3.egg-link (link to .)\nAdding Orange3 3.36.0.dev0+2d2e297 to easy-install.pth file\nInstalling orange-canvas script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6\nProcessing dependencies for Orange3==3.36.0.dev0+2d2e297\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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\nInstalling pip3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\nInstalling f2py3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\nInstalling f2py3.8 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\nInstalling jupyter-kernelspec script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\nInstalling jupyter-run script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\nInstalling jupyter-migrate script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\nInstalling jupyter-troubleshoot script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\nInstalling pyftmerge script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\nInstalling pyftsubset script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\nInstalling ttx script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\nInstalling ipython3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages\nFinished processing dependencies for Orange3==3.36.0.dev0+2d2e297\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 184ms\nPrepared 18 packages in 1ms\nInstalled 18 packages in 173ms\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`)\n  × No solution found when resolving dependencies:\n  ╰─▶ Because the current Python version (3.7.9) does not satisfy Python>=3.8 and pyqtgraph>=0.13.1,<=0.13.3 depends on\n      Python>=3.8, we can conclude that pyqtgraph>=0.13.1,<=0.13.3 cannot be used.\n      And because only the following versions of pyqtgraph are available:\n          pyqtgraph<=0.13.1\n          pyqtgraph==0.13.2\n          pyqtgraph==0.13.3\n          pyqtgraph==0.13.4\n          pyqtgraph==0.13.5\n          pyqtgraph==0.13.6\n          pyqtgraph==0.13.7\n      we can conclude that pyqtgraph>=0.13.1,<0.13.4 cannot be used. (1)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.9 and pyqtgraph>=0.13.4 depends on Python>=3.9, we\n      can conclude that pyqtgraph>=0.13.4 cannot be used.\n      And because we know from (1) that pyqtgraph>=0.13.1,<0.13.4 cannot be used, we can conclude that pyqtgraph>=0.13.1 cannot\n      be used.\n      And because you require pyqtgraph>=0.13.1, we can conclude that your requirements are unsatisfiable.\nResolved 2 packages in 46ms\nInstalled 2 packages in 11ms\n + psycopg2==2.9.9\n + pymssql==2.3.2\nResolved 19 packages in 227ms\nInstalled 16 packages in 1.84s\n + catboost==1.2.7\n + cycler==0.11.0\n + fonttools==4.38.0\n + graphviz==0.20.1\n + kiwisolver==1.4.5\n + matplotlib==3.5.3\n + pandas==1.3.5\n + pillow==9.5.0\n + plotly==5.18.0\n + pyparsing==3.1.4\n + python-dateutil==2.9.0.post0\n + pytz==2024.2\n + scipy==1.7.3\n + six==1.17.0\n + tenacity==8.2.3\n + xgboost==1.6.2\nResolved 5 packages in 19ms\nInstalled 3 packages in 24ms\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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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-a0isaqyl/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 110ms\nPrepared 15 packages in 0.98ms\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 89ms\nInstalled 55 packages in 109ms\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 71ms\nInstalled 41 packages in 87ms\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 14ms\nInstalled 6 packages in 356ms\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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6/.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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6\nconfigfile: pyproject.toml\nplugins: anyio-4.5.2, typeguard-4.3.0\ncollected 7 items\n\nr2e_tests/test_1.py .......                                              [100%]\n\n==================================== PASSES ====================================\n=========================== short test summary info ============================\nPASSED r2e_tests/test_1.py::TestDoubleSpin::test_checked_extension\nPASSED r2e_tests/test_1.py::TestListModel::test_select_callback\nPASSED r2e_tests/test_1.py::TestListModel::test_select_callfront\nPASSED r2e_tests/test_1.py::TestFloatSlider::test_set_value\nPASSED r2e_tests/test_1.py::ComboBoxTest::test_set_initial_value\nPASSED r2e_tests/test_1.py::ComboBoxTest::test_warn_value_type\nPASSED r2e_tests/test_1.py::TestRankModel::test_argsort\n============================== 7 passed in 3.51s ===============================\nWidgets left: 0    Max widgets: 145 \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_2d2e297c7eecf85076e3e6b4e002cb017b4943f6\nconfigfile: pyproject.toml\nplugins: anyio-4.5.2, typeguard-4.3.0\ncollected 7 items\n\nr2e_tests/test_1.py .F.....                                              [100%]\n\n=================================== FAILURES ===================================\n______________________ TestListModel.test_select_callback ______________________\n\nself = <r2e_tests.test_1.TestListModel testMethod=test_select_callback>\n\n    def test_select_callback(self):\n        widget = self.widget\n        view = self.view\n    \n        self.assertIsNone(widget.foo)\n    \n        a, b, c = (ContinuousVariable(x) for x in \"abc\")\n        self.attrs[:] = [a, b, c]\n    \n        view.setCurrentIndex(self.attrs.index(0, 0))\n        self.assertIs(widget.foo, a)\n        view.setCurrentIndex(self.attrs.index(2, 0))\n        self.assertIs(widget.foo, c)\n    \n        view.setSelectionMode(view.MultiSelection)\n        sel_model = view.selectionModel()\n        sel_model.clear()\n        view.setCurrentIndex(self.attrs.index(1, 0))\n        self.assertEqual(widget.foo, [b])\n    \n        # unselect all\n        sel_model.clear()\n>       self.assertEqual(widget.foo, [])\nE       AssertionError: Lists differ: [ContinuousVariable(name='b', number_of_decimals=3)] != []\nE       \nE       First list contains 1 additional elements.\nE       First extra element 0:\nE       ContinuousVariable(name='b', number_of_decimals=3)\nE       \nE       - [ContinuousVariable(name='b', number_of_decimals=3)]\nE       + []\n\nr2e_tests/test_1.py:61: AssertionError\n==================================== PASSES ====================================\n=========================== short test summary info ============================\nPASSED r2e_tests/test_1.py::TestDoubleSpin::test_checked_extension\nPASSED r2e_tests/test_1.py::TestListModel::test_select_callfront\nPASSED r2e_tests/test_1.py::TestFloatSlider::test_set_value\nPASSED r2e_tests/test_1.py::ComboBoxTest::test_set_initial_value\nPASSED r2e_tests/test_1.py::ComboBoxTest::test_warn_value_type\nPASSED r2e_tests/test_1.py::TestRankModel::test_argsort\nFAILED r2e_tests/test_1.py::TestListModel::test_select_callback - AssertionEr...\n========================= 1 failed, 6 passed in 2.16s ==========================\nWidgets left: 0    Max widgets: 145 \n\n",
    "old_commit_res_stderr": ""
}
Orange/widgets/gui.py Orange/widgets/tests/test_gui.py
We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[ISSUE]

**Title**: ListView does not clear variable when all items are unselected

**Description**

When all items in a `ListView` are unselected, the associated variable is not cleared and still holds the last selected value. This causes inconsistencies in the application state, where no items appear selected, but the variable retains an outdated value.

**Example Code**

```python
def test_select_callback(self):
    widget.foo = [b]
    sel_model.clear()
    # Expected widget.foo to be []
    # Actual widget.foo is [b]
```

**Expected Behavior**

After clearing all selections in the `ListView`, the `widget.foo` variable should be an empty list (`[]`).

**Actual Behavior**

The `widget.foo` variable still contains the last selected item (`[b]`) even after all selections are cleared.

[/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/gui.py
"""
Wrappers for controls used in widgets
"""
import logging
import sys
import warnings
import weakref
from collections.abc import Sequence

import math
import numpy as np

from AnyQt import QtWidgets, QtCore, QtGui
from AnyQt.QtCore import Qt, QSize, QItemSelection, QSortFilterProxyModel
from AnyQt.QtGui import QColor, QWheelEvent
from AnyQt.QtWidgets import QWidget, QListView, QComboBox

from orangewidget.utils.itemdelegates import (
    BarItemDataDelegate as _BarItemDataDelegate
)
# re-export relevant objects
from orangewidget.gui import (
    OWComponent, OrangeUserRole, TableView, resource_filename,
    miscellanea, setLayout, separator, rubber, widgetBox, hBox, vBox,
    comboBox as gui_comboBox,
    indentedBox, widgetLabel, label, spin, doubleSpin, checkBox, lineEdit,
    button, toolButton, radioButtons, radioButtonsInBox, appendRadioButton,
    hSlider, labeledSlider, valueSlider, auto_commit, auto_send, auto_apply,
    deferred,

    # ItemDataRole's
    BarRatioRole, BarBrushRole, SortOrderRole, LinkRole,

    IndicatorItemDelegate, BarItemDelegate, LinkStyledItemDelegate,
    ColoredBarItemDelegate, HorizontalGridDelegate, VerticalItemDelegate,
    VerticalLabel, tabWidget, createTabPage, table, tableItem,
    VisibleHeaderSectionContextEventFilter,
    checkButtonOffsetHint, toolButtonSizeHint, FloatSlider,
    CalendarWidgetWithTime, DateTimeEditWCalendarTime,
    ControlGetter, VerticalScrollArea, ProgressBar,
    ControlledCallback, ControlledCallFront, ValueCallback, connectControl,
    is_macstyle
)
from orangewidget.utils.itemmodels import PyTableModel

try:
    # Some Orange widgets might expect this here
    # pylint: disable=unused-import
    from Orange.widgets.utils.webview import WebviewWidget
except ImportError:
    pass  # Neither WebKit nor WebEngine are available

import Orange.data
from Orange.widgets.utils import getdeepattr, vartype
from Orange.data import \
    ContinuousVariable, StringVariable, TimeVariable, DiscreteVariable, \
    Variable, Value

__all__ = [
    # Re-exported
    "OWComponent", "OrangeUserRole", "TableView", "resource_filename",
    "miscellanea", "setLayout", "separator", "rubber",
    "widgetBox", "hBox", "vBox", "indentedBox",
    "widgetLabel", "label", "spin", "doubleSpin",
    "checkBox", "lineEdit", "button", "toolButton", "comboBox",
    "radioButtons", "radioButtonsInBox", "appendRadioButton",
    "hSlider", "labeledSlider", "valueSlider",
    "auto_commit", "auto_send", "auto_apply", "ProgressBar",
    "VerticalLabel", "tabWidget", "createTabPage", "table", "tableItem",
    "VisibleHeaderSectionContextEventFilter", "checkButtonOffsetHint",
    "toolButtonSizeHint", "FloatSlider", "ControlGetter",  "VerticalScrollArea",
    "CalendarWidgetWithTime", "DateTimeEditWCalendarTime",
    "BarRatioRole", "BarBrushRole", "SortOrderRole", "LinkRole",
    "BarItemDelegate", "IndicatorItemDelegate", "LinkStyledItemDelegate",
    "ColoredBarItemDelegate", "HorizontalGridDelegate", "VerticalItemDelegate",
    "ValueCallback", 'is_macstyle',
    # Defined here
    "createAttributePixmap", "attributeIconDict", "attributeItem",
    "listView", "ListViewWithSizeHint", "listBox", "OrangeListBox",
    "TableValueRole", "TableClassValueRole", "TableDistribution",
    "TableVariable", "TableBarItem", "palette_combo_box", "BarRatioTableModel"
]


log = logging.getLogger(__name__)


def palette_combo_box(initial_palette):
    from Orange.widgets.utils import itemmodels
    cb = QComboBox()
    model = itemmodels.ContinuousPalettesModel()
    cb.setModel(model)
    cb.setCurrentIndex(model.indexOf(initial_palette))
    cb.setIconSize(QSize(64, 16))
    return cb


def createAttributePixmap(char, background=Qt.black, color=Qt.white):
    """
    Create a QIcon with a given character. The icon is 13 pixels high and wide.

    :param char: The character that is printed in the icon
    :type char: str
    :param background: the background color (default: black)
    :type background: QColor
    :param color: the character color (default: white)
    :type color: QColor
    :rtype: QIcon
    """
    icon = QtGui.QIcon()
    for size in (13, 16, 18, 20, 22, 24, 28, 32, 64):
        pixmap = QtGui.QPixmap(size, size)
        pixmap.fill(Qt.transparent)
        painter = QtGui.QPainter()
        painter.begin(pixmap)
        painter.setRenderHints(painter.Antialiasing | painter.TextAntialiasing |
                               painter.SmoothPixmapTransform)
        painter.setPen(background)
        painter.setBrush(background)
        margin = 1 + size // 16
        text_margin = size // 20
        rect = QtCore.QRectF(margin, margin,
                             size - 2 * margin, size - 2 * margin)
        painter.drawRoundedRect(rect, 30.0, 30.0, Qt.RelativeSize)
        painter.setPen(color)
        font = painter.font()  # type: QtGui.QFont
        font.setPixelSize(size - 2 * margin - 2 * text_margin)
        painter.setFont(font)
        painter.drawText(rect, Qt.AlignCenter, char)
        painter.end()
        icon.addPixmap(pixmap)
    return icon


class __AttributeIconDict(dict):
    def __getitem__(self, key):
        if not self:
            for tpe, char, col in ((vartype(ContinuousVariable("c")),
                                    "N", (202, 0, 32)),
                                   (vartype(DiscreteVariable("d")),
                                    "C", (26, 150, 65)),
                                   (vartype(StringVariable("s")),
                                    "S", (0, 0, 0)),
                                   (vartype(TimeVariable("t")),
                                    "T", (68, 170, 255)),
                                   (-1, "?", (128, 128, 128))):
                self[tpe] = createAttributePixmap(char, QtGui.QColor(*col))
        if key not in self:
            key = vartype(key) if isinstance(key, Variable) else -1
        return super().__getitem__(key)


#: A dict that returns icons for different attribute types. The dict is
#: constructed on first use since icons cannot be created before initializing
#: the application.
#:
#: Accepted keys are variable type codes and instances
#: of :obj:`Orange.data.Variable`: `attributeIconDict[var]` will give the
#: appropriate icon for variable `var` or a question mark if the type is not
#: recognized
attributeIconDict = __AttributeIconDict()


def attributeItem(var):
    """
    Construct a pair (icon, name) for inserting a variable into a combo or
    list box

    :param var: variable
    :type var: Orange.data.Variable
    :rtype: tuple with QIcon and str
    """
    return attributeIconDict[var], var.name


class ListViewWithSizeHint(QListView):
    def __init__(self, *args, preferred_size=None, **kwargs):
        super().__init__(*args, **kwargs)
        if isinstance(preferred_size, tuple):
            preferred_size = QSize(*preferred_size)
        self.preferred_size = preferred_size

    def sizeHint(self):
        return self.preferred_size if self.preferred_size is not None \
            else super().sizeHint()


def listView(widget, master, value=None, model=None, box=None, callback=None,
             sizeHint=None, *, viewType=ListViewWithSizeHint, **misc):
    if box:
        bg = vBox(widget, box, addToLayout=False)
    else:
        bg = widget
    view = viewType(preferred_size=sizeHint)
    if isinstance(view.model(), QSortFilterProxyModel):
        view.model().setSourceModel(model)
    else:
        view.setModel(model)
    if value is not None:
        connectControl(master, value, callback,
                       view.selectionModel().selectionChanged,
                       CallFrontListView(view),
                       CallBackListView(model, view, master, value))
    misc.setdefault('uniformItemSizes', True)
    miscellanea(view, bg, widget, **misc)
    return view


def listBox(widget, master, value=None, labels=None, box=None, callback=None,
            selectionMode=QtWidgets.QListWidget.SingleSelection,
            enableDragDrop=False, dragDropCallback=None,
            dataValidityCallback=None, sizeHint=None, **misc):
    """
    Insert a list box.

    The value with which the box's value synchronizes (`master.<value>`)
    is a list of indices of selected items.

    :param widget: the widget into which the box is inserted
    :type widget: QWidget or None
    :param master: master widget
    :type master: OWWidget or OWComponent
    :param value: the name of the master's attribute with which the value is
        synchronized (list of ints - indices of selected items)
    :type value: str
    :param labels: the name of the master's attribute with the list of items
        (as strings or tuples with icon and string)
    :type labels: str
    :param box: tells whether the widget has a border, and its label
    :type box: int or str or None
    :param callback: a function that is called when the selection state is
        changed
    :type callback: function
    :param selectionMode: selection mode - single, multiple etc
    :type selectionMode: QAbstractItemView.SelectionMode
    :param enableDragDrop: flag telling whether drag and drop is available
    :type enableDragDrop: bool
    :param dragDropCallback: callback function on drop event
    :type dragDropCallback: function
    :param dataValidityCallback: function that check the validity on enter
        and move event; it should return either `ev.accept()` or `ev.ignore()`.
    :type dataValidityCallback: function
    :param sizeHint: size hint
    :type sizeHint: QSize
    :rtype: OrangeListBox
    """
    if box:
        bg = hBox(widget, box, addToLayout=False)
    else:
        bg = widget
    lb = OrangeListBox(master, enableDragDrop, dragDropCallback,
                       dataValidityCallback, sizeHint, bg)
    lb.setSelectionMode(selectionMode)
    lb.ogValue = value
    lb.ogLabels = labels
    lb.ogMaster = master

    if labels is not None:
        setattr(master, labels, getdeepattr(master, labels))
        master.connect_control(labels, CallFrontListBoxLabels(lb))
    if value is not None:
        clist = getdeepattr(master, value)
        if not isinstance(clist, (int, ControlledList)):
            clist = ControlledList(clist, lb)
            master.__setattr__(value, clist)
        setattr(master, value, clist)
        connectControl(master, value, callback, lb.itemSelectionChanged,
                       CallFrontListBox(lb), CallBackListBox(lb, master))

    miscellanea(lb, bg, widget, **misc)
    return lb


class OrangeListBox(QtWidgets.QListWidget):
    """
    List box with drag and drop functionality. Function :obj:`listBox`
    constructs instances of this class; do not use the class directly.

    .. attribute:: master

        The widget into which the listbox is inserted.

    .. attribute:: ogLabels

        The name of the master's attribute that holds the strings with items
        in the list box.

    .. attribute:: ogValue

        The name of the master's attribute that holds the indices of selected
        items.

    .. attribute:: enableDragDrop

        A flag telling whether drag-and-drop is enabled.

    .. attribute:: dragDropCallback

        A callback that is called at the end of drop event.

    .. attribute:: dataValidityCallback

        A callback that is called on dragEnter and dragMove events and returns
        either `ev.accept()` or `ev.ignore()`.

    .. attribute:: defaultSizeHint

        The size returned by the `sizeHint` method.
    """
    def __init__(self, master, enableDragDrop=False, dragDropCallback=None,
                 dataValidityCallback=None, sizeHint=None, *args):
        """
        :param master: the master widget
        :type master: OWWidget or OWComponent
        :param enableDragDrop: flag telling whether drag and drop is enabled
        :type enableDragDrop: bool
        :param dragDropCallback: callback for the end of drop event
        :type dragDropCallback: function
        :param dataValidityCallback: callback that accepts or ignores dragEnter
            and dragMove events
        :type dataValidityCallback: function with one argument (event)
        :param sizeHint: size hint
        :type sizeHint: QSize
        :param args: optional arguments for the inherited constructor
        """
        self.master = master
        super().__init__(*args)
        self.drop_callback = dragDropCallback
        self.valid_data_callback = dataValidityCallback
        if not sizeHint:
            self.size_hint = QtCore.QSize(150, 100)
        else:
            self.size_hint = sizeHint
        if enableDragDrop:
            self.setDragEnabled(True)
            self.setAcceptDrops(True)
            self.setDropIndicatorShown(True)

    def sizeHint(self):
        return self.size_hint

    def minimumSizeHint(self):
        return self.size_hint

    def dragEnterEvent(self, event):
        super().dragEnterEvent(event)
        if self.valid_data_callback:
            self.valid_data_callback(event)
        elif isinstance(event.source(), OrangeListBox):
            event.setDropAction(Qt.MoveAction)
            event.accept()
        else:
            event.ignore()

    def dropEvent(self, event):
        event.setDropAction(Qt.MoveAction)
        super().dropEvent(event)

        items = self.update_master()
        if event.source() is not self:
            event.source().update_master(exclude=items)

        if self.drop_callback:
            self.drop_callback()

    def update_master(self, exclude=()):
        control_list = [self.item(i).data(Qt.UserRole)
                        for i in range(self.count())
                        if self.item(i).data(Qt.UserRole) not in exclude]
        if self.ogLabels:
            master_list = getattr(self.master, self.ogLabels)

            if master_list != control_list:
                setattr(self.master, self.ogLabels, control_list)
        return control_list

    def updateGeometries(self):
        # A workaround for a bug in Qt
        # (see: http://bugreports.qt.nokia.com/browse/QTBUG-14412)
        if getattr(self, "_updatingGeometriesNow", False):
            return
        self._updatingGeometriesNow = True
        try:
            return super().updateGeometries()
        finally:
            self._updatingGeometriesNow = False


class ControlledList(list):
    """
    A class derived from a list that is connected to a
    :obj:`QListBox`: the list contains indices of items that are
    selected in the list box. Changing the list content changes the
    selection in the list box.
    """
    def __init__(self, content, listBox=None):
        super().__init__(content if content is not None else [])
        # Controlled list is created behind the back by gui.listBox and
        # commonly used as a setting which gets synced into a GLOBAL
        # SettingsHandler and which keeps the OWWidget instance alive via a
        # reference in listBox (see gui.listBox)
        if listBox is not None:
            self.listBox = weakref.ref(listBox)
        else:
            self.listBox = lambda: None

    def __reduce__(self):
        # cannot pickle self.listBox, but can't discard it
        # (ControlledList may live on)
        import copyreg
        return copyreg._reconstructor, (list, list, ()), None, self.__iter__()

    # TODO ControllgedList.item2name is probably never used
    def item2name(self, item):
        item = self.listBox().labels[item]
        if isinstance(item, tuple):
            return item[1]
        else:
            return item

    def __setitem__(self, index, item):
        def unselect(i):
            try:
                item = self.listBox().item(i)
            except RuntimeError:  # Underlying C/C++ object has been deleted
                item = None
            if item is None:
                # Labels changed before clearing the selection: clear everything
                self.listBox().selectionModel().clear()
            else:
                item.setSelected(0)

        if isinstance(index, int):
            unselect(self[index])
            item.setSelected(1)
        else:
            for i in self[index]:
                unselect(i)
            for i in item:
                self.listBox().item(i).setSelected(1)
        super().__setitem__(index, item)

    def __delitem__(self, index):
        if isinstance(index, int):
            self.listBox().item(self[index]).setSelected(0)
        else:
            for i in self[index]:
                self.listBox().item(i).setSelected(0)
        super().__delitem__(index)

    def append(self, item):
        super().append(item)
        item.setSelected(1)

    def extend(self, items):
        super().extend(items)
        for i in items:
            self.listBox().item(i).setSelected(1)

    def insert(self, index, item):
        item.setSelected(1)
        super().insert(index, item)

    def pop(self, index=-1):
        i = super().pop(index)
        self.listBox().item(i).setSelected(0)

    def remove(self, item):
        item.setSelected(0)
        super().remove(item)


def comboBox(widget, master, value, box=None, label=None, labelWidth=None,
             orientation=Qt.Vertical, items=(), callback=None,
             sendSelectedValue=None, emptyString=None, editable=False,
             contentsLength=None, searchable=False, *, model=None,
             tooltips=None, **misc):
    if "valueType" in misc:
        del misc["valueType"]
        warnings.warn("Argument 'valueType' is deprecated and ignored",
                      DeprecationWarning)
    return gui_comboBox(
        widget, master, value, box, label, labelWidth, orientation, items,
        callback, sendSelectedValue, emptyString, editable,
        contentsLength, searchable, model=model, tooltips=tooltips, **misc)


comboBox.__doc__ = gui_comboBox.__doc__


class CallBackListView(ControlledCallback):
    def __init__(self, model, view, widget, attribute):
        super().__init__(widget, attribute)
        self.model = model
        self.view = view

    # triggered by selectionModel().selectionChanged()
    def __call__(self, *_):
        # This must be imported locally to avoid circular imports
        from Orange.widgets.utils.itemmodels import PyListModel

        selection = self.view.selectionModel().selection()
        if isinstance(self.view.model(), QSortFilterProxyModel):
            selection = self.view.model().mapSelectionToSource(selection)
        values = [i.row() for i in selection.indexes()]
        if values:
            # FIXME: irrespective of PyListModel check, this might/should always
            # callback with values!
            if isinstance(self.model, PyListModel):
                values = [self.model[i] for i in values]
            if self.view.selectionMode() == self.view.SingleSelection:
                values = values[0]
            self.acyclic_setattr(values)


class CallBackListBox:
    def __init__(self, control, widget):
        self.control = control
        self.widget = widget
        self.disabled = 0

    def __call__(self, *_):  # triggered by selectionChange()
        if not self.disabled and self.control.ogValue is not None:
            clist = getdeepattr(self.widget, self.control.ogValue)
            control = self.control
            selection = [i for i in range(control.count())
                         if control.item(i).isSelected()]
            if isinstance(clist, int):
                self.widget.__setattr__(
                    self.control.ogValue, selection[0] if selection else None)
            else:
                list.__setitem__(clist, slice(0, len(clist)), selection)
                self.widget.__setattr__(self.control.ogValue, clist)


##############################################################################
# call fronts (change of the attribute value changes the related control)


class CallFrontListView(ControlledCallFront):
    def action(self, values):
        view = self.control
        model = view.model()
        if isinstance(view.model(), QSortFilterProxyModel):
            model = model.sourceModel()
        sel_model = view.selectionModel()

        if not isinstance(values, Sequence):
            values = [values]

        selection = QItemSelection()
        for value in values:
            index = None
            if not isinstance(value, int):
                if value is None or isinstance(value, Variable):
                    search_role = TableVariable
                else:
                    search_role = Qt.DisplayRole
                    value = str(value)
                for i in range(model.rowCount()):
                    if model.data(model.index(i), search_role) == value:
                        index = i
                        break
            else:
                index = value
            if index is not None:
                selection.select(model.index(index), model.index(index))
        if isinstance(view.model(), QSortFilterProxyModel):
            selection = view.model().mapSelectionFromSource(selection)
        sel_model.select(selection, sel_model.ClearAndSelect)


class CallFrontListBox(ControlledCallFront):
    def action(self, value):
        if value is not None:
            if isinstance(value, int):
                for i in range(self.control.count()):
                    self.control.item(i).setSelected(i == value)
            else:
                if not isinstance(value, ControlledList):
                    setattr(self.control.ogMaster, self.control.ogValue,
                            ControlledList(value, self.control))
                for i in range(self.control.count()):
                    shouldBe = i in value
                    if shouldBe != self.control.item(i).isSelected():
                        self.control.item(i).setSelected(shouldBe)


class CallFrontListBoxLabels(ControlledCallFront):
    unknownType = None

    def action(self, values):
        self.control.clear()
        if values:
            for value in values:
                if isinstance(value, tuple):
                    text, icon = value
                    if isinstance(icon, int):
                        item = QtWidgets.QListWidgetItem(attributeIconDict[icon], text)
                    else:
                        item = QtWidgets.QListWidgetItem(icon, text)
                elif isinstance(value, Variable):
                    item = QtWidgets.QListWidgetItem(*attributeItem(value))
                else:
                    item = QtWidgets.QListWidgetItem(value)

                item.setData(Qt.UserRole, value)
                self.control.addItem(item)


#: Role to retrieve Orange.data.Value
TableValueRole = next(OrangeUserRole)
#: Role to retrieve class value for a row
TableClassValueRole = next(OrangeUserRole)
# Role to retrieve distribution of a column
TableDistribution = next(OrangeUserRole)
#: Role to retrieve the column's variable
TableVariable = next(OrangeUserRole)


class TableBarItem(_BarItemDataDelegate):
    BarRole = next(OrangeUserRole)
    BarColorRole = next(OrangeUserRole)
    __slots__ = ("color_schema",)

    def __init__(
            self, parent=None, color=QColor(255, 170, 127), width=5,
            barFillRatioRole=BarRole, barColorRole=BarColorRole,
            color_schema=None,
            **kwargs
    ):
        """
        :param QObject parent: Parent object.
        :param QColor color: Default color of the distribution bar.
        :param color_schema:
            If not None it must be an instance of
            :class:`OWColorPalette.ColorPaletteGenerator` (note: this
            parameter, if set, overrides the ``color``)
        :type color_schema: :class:`OWColorPalette.ColorPaletteGenerator`
        """
        super().__init__(
            parent, color=color, penWidth=width,
            barFillRatioRole=barFillRatioRole, barColorRole=barColorRole,
            **kwargs
        )
        self.color_schema = color_schema

    def barColorData(self, index):
        class_ = self.cachedData(index, TableClassValueRole)
        if self.color_schema is not None \
                and isinstance(class_, Value) \
                and isinstance(class_.variable, DiscreteVariable) \
                and not math.isnan(class_):
            return self.color_schema[int(class_)]
        return self.cachedData(index, self.BarColorRole)


from Orange.widgets.utils.colorpalettes import patch_variable_colors
patch_variable_colors()


class HScrollStepMixin:
    """
    Overrides default TableView horizontal behavior (scrolls 1 page at a time)
    to a friendlier scroll speed akin to that of vertical scrolling.
    """

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.horizontalScrollBar().setSingleStep(20)

    def wheelEvent(self, event: QWheelEvent):
        if hasattr(event, "source") and \
                event.source() == Qt.MouseEventNotSynthesized and \
                (event.modifiers() & Qt.ShiftModifier and sys.platform == 'darwin' or
                 event.modifiers() & Qt.AltModifier and sys.platform != 'darwin'):
            new_event = QWheelEvent(
                event.pos(), event.globalPos(), event.pixelDelta(),
                event.angleDelta(), event.buttons(), Qt.NoModifier,
                event.phase(), event.inverted(), Qt.MouseEventSynthesizedByApplication
            )
            event.accept()
            super().wheelEvent(new_event)
        else:
            super().wheelEvent(event)


class BarRatioTableModel(PyTableModel):
    """A model for displaying python tables.
    Adds a BarRatioRole that returns Data, normalized between the extremes.
    NaNs are listed last when sorting."""

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self._extremes = {}

    def data(self, index, role=Qt.DisplayRole):
        if role == BarRatioRole and index.isValid():
            value = super().data(index, Qt.EditRole)
            if not isinstance(value, float):
                return None
            vmin, vmax = self._extremes.get(index.column(), (-np.inf, np.inf))
            value = (value - vmin) / ((vmax - vmin) or 1)
            return value

        if role == Qt.DisplayRole and index.column() != 0:
            role = Qt.EditRole

        value = super().data(index, role)

        # Display nothing for non-existent attr value counts in column 1
        if role == Qt.EditRole \
                and index.column() == 1 and np.isnan(value):
            return ''

        return value

    def headerData(self, section, orientation, role=Qt.DisplayRole):
        if role == Qt.InitialSortOrderRole:
            return Qt.DescendingOrder if section > 0 else Qt.AscendingOrder
        return super().headerData(section, orientation, role)

    def setExtremesFrom(self, column, values):
        """Set extremes for column's ratio bars from values"""
        try:
            with warnings.catch_warnings():
                warnings.filterwarnings(
                    "ignore", ".*All-NaN slice encountered.*", RuntimeWarning)
                vmin = np.nanmin(values)
            if np.isnan(vmin):
                raise TypeError
        except TypeError:
            vmin, vmax = -np.inf, np.inf
        else:
            vmax = np.nanmax(values)
        self._extremes[column] = (vmin, vmax)

    def resetSorting(self, yes_reset=False):
        # pylint: disable=arguments-differ
        """We don't want to invalidate our sort proxy model everytime we
        wrap a new list. Our proxymodel only invalidates explicitly
        (i.e. when new data is set)"""
        if yes_reset:
            super().resetSorting()

    def _argsortData(self, data, order):
        if data.dtype not in (float, int):
            data = np.char.lower(data)
        indices = np.argsort(data, kind='mergesort')
        if order == Qt.DescendingOrder:
            indices = indices[::-1]
            if data.dtype == float:
                # Always sort NaNs last
                return np.roll(indices, -np.isnan(data).sum())
        return indices

```
--- 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**: ListView does not clear variable when all items are unselected

**Description**

When all items in a `ListView` are unselected, the associated variable is not cleared and still holds the last selected value. This causes inconsistencies in the application state, where no items appear selected, but the variable retains an outdated value.

**Example Code**

```python
def test_select_callback(self):
    widget.foo = [b]
    sel_model.clear()
    # Expected widget.foo to be []
    # Actual widget.foo is [b]
```

**Expected Behavior**

After clearing all selections in the `ListView`, the `widget.foo` variable should be an empty list (`[]`).

**Actual Behavior**

The `widget.foo` variable still contains the last selected item (`[b]`) even after all selections are cleared.

[/ISSUE]
{
    "TestDoubleSpin.test_checked_extension": "PASSED",
    "TestListModel.test_select_callback": "PASSED",
    "TestListModel.test_select_callfront": "PASSED",
    "TestFloatSlider.test_set_value": "PASSED",
    "ComboBoxTest.test_set_initial_value": "PASSED",
    "ComboBoxTest.test_warn_value_type": "PASSED",
    "TestRankModel.test_argsort": "PASSED"
}
diff --git a/Orange/widgets/gui.py b/Orange/widgets/gui.py
index 75b458965..ebae96e3a 100644
--- a/Orange/widgets/gui.py
+++ b/Orange/widgets/gui.py
@@ -503,14 +503,14 @@ class CallBackListView(ControlledCallback):
         if isinstance(self.view.model(), QSortFilterProxyModel):
             selection = self.view.model().mapSelectionToSource(selection)
         values = [i.row() for i in selection.indexes()]
-        if values:
-            # FIXME: irrespective of PyListModel check, this might/should always
-            # callback with values!
-            if isinstance(self.model, PyListModel):
-                values = [self.model[i] for i in values]
-            if self.view.selectionMode() == self.view.SingleSelection:
-                values = values[0]
-            self.acyclic_setattr(values)
+
+        # set attribute's values
+        if isinstance(self.model, PyListModel):
+            values = [self.model[i] for i in values]
+        if self.view.selectionMode() == self.view.SingleSelection:
+            assert len(values) <= 1
+            values = values[0] if values else None
+        self.acyclic_setattr(values)
 
 
 class CallBackListBox:

{"Orange/widgets/gui.py": "\"\"\"\nWrappers for controls used in widgets\n\"\"\"\nimport logging\nimport sys\nimport warnings\nimport weakref\nfrom collections.abc import Sequence\n\nimport math\nimport numpy as np\n\nfrom AnyQt import QtWidgets, QtCore, QtGui\nfrom AnyQt.QtCore import Qt, QSize, QItemSelection, QSortFilterProxyModel\nfrom AnyQt.QtGui import QColor, QWheelEvent\nfrom AnyQt.QtWidgets import QWidget, QListView, QComboBox\n\nfrom orangewidget.utils.itemdelegates import (\n    BarItemDataDelegate as _BarItemDataDelegate\n)\n# re-export relevant objects\nfrom orangewidget.gui import (\n    OWComponent, OrangeUserRole, TableView, resource_filename,\n    miscellanea, setLayout, separator, rubber, widgetBox, hBox, vBox,\n    comboBox as gui_comboBox,\n    indentedBox, widgetLabel, label, spin, doubleSpin, checkBox, lineEdit,\n    button, toolButton, radioButtons, radioButtonsInBox, appendRadioButton,\n    hSlider, labeledSlider, valueSlider, auto_commit, auto_send, auto_apply,\n    deferred,\n\n    # ItemDataRole's\n    BarRatioRole, BarBrushRole, SortOrderRole, LinkRole,\n\n    IndicatorItemDelegate, BarItemDelegate, LinkStyledItemDelegate,\n    ColoredBarItemDelegate, HorizontalGridDelegate, VerticalItemDelegate,\n    VerticalLabel, tabWidget, createTabPage, table, tableItem,\n    VisibleHeaderSectionContextEventFilter,\n    checkButtonOffsetHint, toolButtonSizeHint, FloatSlider,\n    CalendarWidgetWithTime, DateTimeEditWCalendarTime,\n    ControlGetter, VerticalScrollArea, ProgressBar,\n    ControlledCallback, ControlledCallFront, ValueCallback, connectControl,\n    is_macstyle\n)\nfrom orangewidget.utils.itemmodels import PyTableModel\n\ntry:\n    # Some Orange widgets might expect this here\n    # pylint: disable=unused-import\n    from Orange.widgets.utils.webview import WebviewWidget\nexcept ImportError:\n    pass  # Neither WebKit nor WebEngine are available\n\nimport Orange.data\nfrom Orange.widgets.utils import getdeepattr, vartype\nfrom Orange.data import \\\n    ContinuousVariable, StringVariable, TimeVariable, DiscreteVariable, \\\n    Variable, Value\n\n__all__ = [\n    # Re-exported\n    \"OWComponent\", \"OrangeUserRole\", \"TableView\", \"resource_filename\",\n    \"miscellanea\", \"setLayout\", \"separator\", \"rubber\",\n    \"widgetBox\", \"hBox\", \"vBox\", \"indentedBox\",\n    \"widgetLabel\", \"label\", \"spin\", \"doubleSpin\",\n    \"checkBox\", \"lineEdit\", \"button\", \"toolButton\", \"comboBox\",\n    \"radioButtons\", \"radioButtonsInBox\", \"appendRadioButton\",\n    \"hSlider\", \"labeledSlider\", \"valueSlider\",\n    \"auto_commit\", \"auto_send\", \"auto_apply\", \"ProgressBar\",\n    \"VerticalLabel\", \"tabWidget\", \"createTabPage\", \"table\", \"tableItem\",\n    \"VisibleHeaderSectionContextEventFilter\", \"checkButtonOffsetHint\",\n    \"toolButtonSizeHint\", \"FloatSlider\", \"ControlGetter\",  \"VerticalScrollArea\",\n    \"CalendarWidgetWithTime\", \"DateTimeEditWCalendarTime\",\n    \"BarRatioRole\", \"BarBrushRole\", \"SortOrderRole\", \"LinkRole\",\n    \"BarItemDelegate\", \"IndicatorItemDelegate\", \"LinkStyledItemDelegate\",\n    \"ColoredBarItemDelegate\", \"HorizontalGridDelegate\", \"VerticalItemDelegate\",\n    \"ValueCallback\", 'is_macstyle',\n    # Defined here\n    \"createAttributePixmap\", \"attributeIconDict\", \"attributeItem\",\n    \"listView\", \"ListViewWithSizeHint\", \"listBox\", \"OrangeListBox\",\n    \"TableValueRole\", \"TableClassValueRole\", \"TableDistribution\",\n    \"TableVariable\", \"TableBarItem\", \"palette_combo_box\", \"BarRatioTableModel\"\n]\n\n\nlog = logging.getLogger(__name__)\n\n\ndef palette_combo_box(initial_palette):\n    from Orange.widgets.utils import itemmodels\n    cb = QComboBox()\n    model = itemmodels.ContinuousPalettesModel()\n    cb.setModel(model)\n    cb.setCurrentIndex(model.indexOf(initial_palette))\n    cb.setIconSize(QSize(64, 16))\n    return cb\n\n\ndef createAttributePixmap(char, background=Qt.black, color=Qt.white):\n    \"\"\"\n    Create a QIcon with a given character. The icon is 13 pixels high and wide.\n\n    :param char: The character that is printed in the icon\n    :type char: str\n    :param background: the background color (default: black)\n    :type background: QColor\n    :param color: the character color (default: white)\n    :type color: QColor\n    :rtype: QIcon\n    \"\"\"\n    icon = QtGui.QIcon()\n    for size in (13, 16, 18, 20, 22, 24, 28, 32, 64):\n        pixmap = QtGui.QPixmap(size, size)\n        pixmap.fill(Qt.transparent)\n        painter = QtGui.QPainter()\n        painter.begin(pixmap)\n        painter.setRenderHints(painter.Antialiasing | painter.TextAntialiasing |\n                               painter.SmoothPixmapTransform)\n        painter.setPen(background)\n        painter.setBrush(background)\n        margin = 1 + size // 16\n        text_margin = size // 20\n        rect = QtCore.QRectF(margin, margin,\n                             size - 2 * margin, size - 2 * margin)\n        painter.drawRoundedRect(rect, 30.0, 30.0, Qt.RelativeSize)\n        painter.setPen(color)\n        font = painter.font()  # type: QtGui.QFont\n        font.setPixelSize(size - 2 * margin - 2 * text_margin)\n        painter.setFont(font)\n        painter.drawText(rect, Qt.AlignCenter, char)\n        painter.end()\n        icon.addPixmap(pixmap)\n    return icon\n\n\nclass __AttributeIconDict(dict):\n    def __getitem__(self, key):\n        if not self:\n            for tpe, char, col in ((vartype(ContinuousVariable(\"c\")),\n                                    \"N\", (202, 0, 32)),\n                                   (vartype(DiscreteVariable(\"d\")),\n                                    \"C\", (26, 150, 65)),\n                                   (vartype(StringVariable(\"s\")),\n                                    \"S\", (0, 0, 0)),\n                                   (vartype(TimeVariable(\"t\")),\n                                    \"T\", (68, 170, 255)),\n                                   (-1, \"?\", (128, 128, 128))):\n                self[tpe] = createAttributePixmap(char, QtGui.QColor(*col))\n        if key not in self:\n            key = vartype(key) if isinstance(key, Variable) else -1\n        return super().__getitem__(key)\n\n\n#: A dict that returns icons for different attribute types. The dict is\n#: constructed on first use since icons cannot be created before initializing\n#: the application.\n#:\n#: Accepted keys are variable type codes and instances\n#: of :obj:`Orange.data.Variable`: `attributeIconDict[var]` will give the\n#: appropriate icon for variable `var` or a question mark if the type is not\n#: recognized\nattributeIconDict = __AttributeIconDict()\n\n\ndef attributeItem(var):\n    \"\"\"\n    Construct a pair (icon, name) for inserting a variable into a combo or\n    list box\n\n    :param var: variable\n    :type var: Orange.data.Variable\n    :rtype: tuple with QIcon and str\n    \"\"\"\n    return attributeIconDict[var], var.name\n\n\nclass ListViewWithSizeHint(QListView):\n    def __init__(self, *args, preferred_size=None, **kwargs):\n        super().__init__(*args, **kwargs)\n        if isinstance(preferred_size, tuple):\n            preferred_size = QSize(*preferred_size)\n        self.preferred_size = preferred_size\n\n    def sizeHint(self):\n        return self.preferred_size if self.preferred_size is not None \\\n            else super().sizeHint()\n\n\ndef listView(widget, master, value=None, model=None, box=None, callback=None,\n             sizeHint=None, *, viewType=ListViewWithSizeHint, **misc):\n    if box:\n        bg = vBox(widget, box, addToLayout=False)\n    else:\n        bg = widget\n    view = viewType(preferred_size=sizeHint)\n    if isinstance(view.model(), QSortFilterProxyModel):\n        view.model().setSourceModel(model)\n    else:\n        view.setModel(model)\n    if value is not None:\n        connectControl(master, value, callback,\n                       view.selectionModel().selectionChanged,\n                       CallFrontListView(view),\n                       CallBackListView(model, view, master, value))\n    misc.setdefault('uniformItemSizes', True)\n    miscellanea(view, bg, widget, **misc)\n    return view\n\n\ndef listBox(widget, master, value=None, labels=None, box=None, callback=None,\n            selectionMode=QtWidgets.QListWidget.SingleSelection,\n            enableDragDrop=False, dragDropCallback=None,\n            dataValidityCallback=None, sizeHint=None, **misc):\n    \"\"\"\n    Insert a list box.\n\n    The value with which the box's value synchronizes (`master.<value>`)\n    is a list of indices of selected items.\n\n    :param widget: the widget into which the box is inserted\n    :type widget: QWidget or None\n    :param master: master widget\n    :type master: OWWidget or OWComponent\n    :param value: the name of the master's attribute with which the value is\n        synchronized (list of ints - indices of selected items)\n    :type value: str\n    :param labels: the name of the master's attribute with the list of items\n        (as strings or tuples with icon and string)\n    :type labels: str\n    :param box: tells whether the widget has a border, and its label\n    :type box: int or str or None\n    :param callback: a function that is called when the selection state is\n        changed\n    :type callback: function\n    :param selectionMode: selection mode - single, multiple etc\n    :type selectionMode: QAbstractItemView.SelectionMode\n    :param enableDragDrop: flag telling whether drag and drop is available\n    :type enableDragDrop: bool\n    :param dragDropCallback: callback function on drop event\n    :type dragDropCallback: function\n    :param dataValidityCallback: function that check the validity on enter\n        and move event; it should return either `ev.accept()` or `ev.ignore()`.\n    :type dataValidityCallback: function\n    :param sizeHint: size hint\n    :type sizeHint: QSize\n    :rtype: OrangeListBox\n    \"\"\"\n    if box:\n        bg = hBox(widget, box, addToLayout=False)\n    else:\n        bg = widget\n    lb = OrangeListBox(master, enableDragDrop, dragDropCallback,\n                       dataValidityCallback, sizeHint, bg)\n    lb.setSelectionMode(selectionMode)\n    lb.ogValue = value\n    lb.ogLabels = labels\n    lb.ogMaster = master\n\n    if labels is not None:\n        setattr(master, labels, getdeepattr(master, labels))\n        master.connect_control(labels, CallFrontListBoxLabels(lb))\n    if value is not None:\n        clist = getdeepattr(master, value)\n        if not isinstance(clist, (int, ControlledList)):\n            clist = ControlledList(clist, lb)\n            master.__setattr__(value, clist)\n        setattr(master, value, clist)\n        connectControl(master, value, callback, lb.itemSelectionChanged,\n                       CallFrontListBox(lb), CallBackListBox(lb, master))\n\n    miscellanea(lb, bg, widget, **misc)\n    return lb\n\n\nclass OrangeListBox(QtWidgets.QListWidget):\n    \"\"\"\n    List box with drag and drop functionality. Function :obj:`listBox`\n    constructs instances of this class; do not use the class directly.\n\n    .. attribute:: master\n\n        The widget into which the listbox is inserted.\n\n    .. attribute:: ogLabels\n\n        The name of the master's attribute that holds the strings with items\n        in the list box.\n\n    .. attribute:: ogValue\n\n        The name of the master's attribute that holds the indices of selected\n        items.\n\n    .. attribute:: enableDragDrop\n\n        A flag telling whether drag-and-drop is enabled.\n\n    .. attribute:: dragDropCallback\n\n        A callback that is called at the end of drop event.\n\n    .. attribute:: dataValidityCallback\n\n        A callback that is called on dragEnter and dragMove events and returns\n        either `ev.accept()` or `ev.ignore()`.\n\n    .. attribute:: defaultSizeHint\n\n        The size returned by the `sizeHint` method.\n    \"\"\"\n    def __init__(self, master, enableDragDrop=False, dragDropCallback=None,\n                 dataValidityCallback=None, sizeHint=None, *args):\n        \"\"\"\n        :param master: the master widget\n        :type master: OWWidget or OWComponent\n        :param enableDragDrop: flag telling whether drag and drop is enabled\n        :type enableDragDrop: bool\n        :param dragDropCallback: callback for the end of drop event\n        :type dragDropCallback: function\n        :param dataValidityCallback: callback that accepts or ignores dragEnter\n            and dragMove events\n        :type dataValidityCallback: function with one argument (event)\n        :param sizeHint: size hint\n        :type sizeHint: QSize\n        :param args: optional arguments for the inherited constructor\n        \"\"\"\n        self.master = master\n        super().__init__(*args)\n        self.drop_callback = dragDropCallback\n        self.valid_data_callback = dataValidityCallback\n        if not sizeHint:\n            self.size_hint = QtCore.QSize(150, 100)\n        else:\n            self.size_hint = sizeHint\n        if enableDragDrop:\n            self.setDragEnabled(True)\n            self.setAcceptDrops(True)\n            self.setDropIndicatorShown(True)\n\n    def sizeHint(self):\n        return self.size_hint\n\n    def minimumSizeHint(self):\n        return self.size_hint\n\n    def dragEnterEvent(self, event):\n        super().dragEnterEvent(event)\n        if self.valid_data_callback:\n            self.valid_data_callback(event)\n        elif isinstance(event.source(), OrangeListBox):\n            event.setDropAction(Qt.MoveAction)\n            event.accept()\n        else:\n            event.ignore()\n\n    def dropEvent(self, event):\n        event.setDropAction(Qt.MoveAction)\n        super().dropEvent(event)\n\n        items = self.update_master()\n        if event.source() is not self:\n            event.source().update_master(exclude=items)\n\n        if self.drop_callback:\n            self.drop_callback()\n\n    def update_master(self, exclude=()):\n        control_list = [self.item(i).data(Qt.UserRole)\n                        for i in range(self.count())\n                        if self.item(i).data(Qt.UserRole) not in exclude]\n        if self.ogLabels:\n            master_list = getattr(self.master, self.ogLabels)\n\n            if master_list != control_list:\n                setattr(self.master, self.ogLabels, control_list)\n        return control_list\n\n    def updateGeometries(self):\n        # A workaround for a bug in Qt\n        # (see: http://bugreports.qt.nokia.com/browse/QTBUG-14412)\n        if getattr(self, \"_updatingGeometriesNow\", False):\n            return\n        self._updatingGeometriesNow = True\n        try:\n            return super().updateGeometries()\n        finally:\n            self._updatingGeometriesNow = False\n\n\nclass ControlledList(list):\n    \"\"\"\n    A class derived from a list that is connected to a\n    :obj:`QListBox`: the list contains indices of items that are\n    selected in the list box. Changing the list content changes the\n    selection in the list box.\n    \"\"\"\n    def __init__(self, content, listBox=None):\n        super().__init__(content if content is not None else [])\n        # Controlled list is created behind the back by gui.listBox and\n        # commonly used as a setting which gets synced into a GLOBAL\n        # SettingsHandler and which keeps the OWWidget instance alive via a\n        # reference in listBox (see gui.listBox)\n        if listBox is not None:\n            self.listBox = weakref.ref(listBox)\n        else:\n            self.listBox = lambda: None\n\n    def __reduce__(self):\n        # cannot pickle self.listBox, but can't discard it\n        # (ControlledList may live on)\n        import copyreg\n        return copyreg._reconstructor, (list, list, ()), None, self.__iter__()\n\n    # TODO ControllgedList.item2name is probably never used\n    def item2name(self, item):\n        item = self.listBox().labels[item]\n        if isinstance(item, tuple):\n            return item[1]\n        else:\n            return item\n\n    def __setitem__(self, index, item):\n        def unselect(i):\n            try:\n                item = self.listBox().item(i)\n            except RuntimeError:  # Underlying C/C++ object has been deleted\n                item = None\n            if item is None:\n                # Labels changed before clearing the selection: clear everything\n                self.listBox().selectionModel().clear()\n            else:\n                item.setSelected(0)\n\n        if isinstance(index, int):\n            unselect(self[index])\n            item.setSelected(1)\n        else:\n            for i in self[index]:\n                unselect(i)\n            for i in item:\n                self.listBox().item(i).setSelected(1)\n        super().__setitem__(index, item)\n\n    def __delitem__(self, index):\n        if isinstance(index, int):\n            self.listBox().item(self[index]).setSelected(0)\n        else:\n            for i in self[index]:\n                self.listBox().item(i).setSelected(0)\n        super().__delitem__(index)\n\n    def append(self, item):\n        super().append(item)\n        item.setSelected(1)\n\n    def extend(self, items):\n        super().extend(items)\n        for i in items:\n            self.listBox().item(i).setSelected(1)\n\n    def insert(self, index, item):\n        item.setSelected(1)\n        super().insert(index, item)\n\n    def pop(self, index=-1):\n        i = super().pop(index)\n        self.listBox().item(i).setSelected(0)\n\n    def remove(self, item):\n        item.setSelected(0)\n        super().remove(item)\n\n\ndef comboBox(widget, master, value, box=None, label=None, labelWidth=None,\n             orientation=Qt.Vertical, items=(), callback=None,\n             sendSelectedValue=None, emptyString=None, editable=False,\n             contentsLength=None, searchable=False, *, model=None,\n             tooltips=None, **misc):\n    if \"valueType\" in misc:\n        del misc[\"valueType\"]\n        warnings.warn(\"Argument 'valueType' is deprecated and ignored\",\n                      DeprecationWarning)\n    return gui_comboBox(\n        widget, master, value, box, label, labelWidth, orientation, items,\n        callback, sendSelectedValue, emptyString, editable,\n        contentsLength, searchable, model=model, tooltips=tooltips, **misc)\n\n\ncomboBox.__doc__ = gui_comboBox.__doc__\n\n\nclass CallBackListView(ControlledCallback):\n    def __init__(self, model, view, widget, attribute):\n        super().__init__(widget, attribute)\n        self.model = model\n        self.view = view\n\n    # triggered by selectionModel().selectionChanged()\n    def __call__(self, *_):\n        # This must be imported locally to avoid circular imports\n        from Orange.widgets.utils.itemmodels import PyListModel\n\n        selection = self.view.selectionModel().selection()\n        if isinstance(self.view.model(), QSortFilterProxyModel):\n            selection = self.view.model().mapSelectionToSource(selection)\n        values = [i.row() for i in selection.indexes()]\n        if values:\n            # FIXME: irrespective of PyListModel check, this might/should always\n            # callback with values!\n            if isinstance(self.model, PyListModel):\n                values = [self.model[i] for i in values]\n            if self.view.selectionMode() == self.view.SingleSelection:\n                values = values[0]\n            self.acyclic_setattr(values)\n\n\nclass CallBackListBox:\n    def __init__(self, control, widget):\n        self.control = control\n        self.widget = widget\n        self.disabled = 0\n\n    def __call__(self, *_):  # triggered by selectionChange()\n        if not self.disabled and self.control.ogValue is not None:\n            clist = getdeepattr(self.widget, self.control.ogValue)\n            control = self.control\n            selection = [i for i in range(control.count())\n                         if control.item(i).isSelected()]\n            if isinstance(clist, int):\n                self.widget.__setattr__(\n                    self.control.ogValue, selection[0] if selection else None)\n            else:\n                list.__setitem__(clist, slice(0, len(clist)), selection)\n                self.widget.__setattr__(self.control.ogValue, clist)\n\n\n##############################################################################\n# call fronts (change of the attribute value changes the related control)\n\n\nclass CallFrontListView(ControlledCallFront):\n    def action(self, values):\n        view = self.control\n        model = view.model()\n        if isinstance(view.model(), QSortFilterProxyModel):\n            model = model.sourceModel()\n        sel_model = view.selectionModel()\n\n        if not isinstance(values, Sequence):\n            values = [values]\n\n        selection = QItemSelection()\n        for value in values:\n            index = None\n            if not isinstance(value, int):\n                if value is None or isinstance(value, Variable):\n                    search_role = TableVariable\n                else:\n                    search_role = Qt.DisplayRole\n                    value = str(value)\n                for i in range(model.rowCount()):\n                    if model.data(model.index(i), search_role) == value:\n                        index = i\n                        break\n            else:\n                index = value\n            if index is not None:\n                selection.select(model.index(index), model.index(index))\n        if isinstance(view.model(), QSortFilterProxyModel):\n            selection = view.model().mapSelectionFromSource(selection)\n        sel_model.select(selection, sel_model.ClearAndSelect)\n\n\nclass CallFrontListBox(ControlledCallFront):\n    def action(self, value):\n        if value is not None:\n            if isinstance(value, int):\n                for i in range(self.control.count()):\n                    self.control.item(i).setSelected(i == value)\n            else:\n                if not isinstance(value, ControlledList):\n                    setattr(self.control.ogMaster, self.control.ogValue,\n                            ControlledList(value, self.control))\n                for i in range(self.control.count()):\n                    shouldBe = i in value\n                    if shouldBe != self.control.item(i).isSelected():\n                        self.control.item(i).setSelected(shouldBe)\n\n\nclass CallFrontListBoxLabels(ControlledCallFront):\n    unknownType = None\n\n    def action(self, values):\n        self.control.clear()\n        if values:\n            for value in values:\n                if isinstance(value, tuple):\n                    text, icon = value\n                    if isinstance(icon, int):\n                        item = QtWidgets.QListWidgetItem(attributeIconDict[icon], text)\n                    else:\n                        item = QtWidgets.QListWidgetItem(icon, text)\n                elif isinstance(value, Variable):\n                    item = QtWidgets.QListWidgetItem(*attributeItem(value))\n                else:\n                    item = QtWidgets.QListWidgetItem(value)\n\n                item.setData(Qt.UserRole, value)\n                self.control.addItem(item)\n\n\n#: Role to retrieve Orange.data.Value\nTableValueRole = next(OrangeUserRole)\n#: Role to retrieve class value for a row\nTableClassValueRole = next(OrangeUserRole)\n# Role to retrieve distribution of a column\nTableDistribution = next(OrangeUserRole)\n#: Role to retrieve the column's variable\nTableVariable = next(OrangeUserRole)\n\n\nclass TableBarItem(_BarItemDataDelegate):\n    BarRole = next(OrangeUserRole)\n    BarColorRole = next(OrangeUserRole)\n    __slots__ = (\"color_schema\",)\n\n    def __init__(\n            self, parent=None, color=QColor(255, 170, 127), width=5,\n            barFillRatioRole=BarRole, barColorRole=BarColorRole,\n            color_schema=None,\n            **kwargs\n    ):\n        \"\"\"\n        :param QObject parent: Parent object.\n        :param QColor color: Default color of the distribution bar.\n        :param color_schema:\n            If not None it must be an instance of\n            :class:`OWColorPalette.ColorPaletteGenerator` (note: this\n            parameter, if set, overrides the ``color``)\n        :type color_schema: :class:`OWColorPalette.ColorPaletteGenerator`\n        \"\"\"\n        super().__init__(\n            parent, color=color, penWidth=width,\n            barFillRatioRole=barFillRatioRole, barColorRole=barColorRole,\n            **kwargs\n        )\n        self.color_schema = color_schema\n\n    def barColorData(self, index):\n        class_ = self.cachedData(index, TableClassValueRole)\n        if self.color_schema is not None \\\n                and isinstance(class_, Value) \\\n                and isinstance(class_.variable, DiscreteVariable) \\\n                and not math.isnan(class_):\n            return self.color_schema[int(class_)]\n        return self.cachedData(index, self.BarColorRole)\n\n\nfrom Orange.widgets.utils.colorpalettes import patch_variable_colors\npatch_variable_colors()\n\n\nclass HScrollStepMixin:\n    \"\"\"\n    Overrides default TableView horizontal behavior (scrolls 1 page at a time)\n    to a friendlier scroll speed akin to that of vertical scrolling.\n    \"\"\"\n\n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.horizontalScrollBar().setSingleStep(20)\n\n    def wheelEvent(self, event: QWheelEvent):\n        if hasattr(event, \"source\") and \\\n                event.source() == Qt.MouseEventNotSynthesized and \\\n                (event.modifiers() & Qt.ShiftModifier and sys.platform == 'darwin' or\n                 event.modifiers() & Qt.AltModifier and sys.platform != 'darwin'):\n            new_event = QWheelEvent(\n                event.pos(), event.globalPos(), event.pixelDelta(),\n                event.angleDelta(), event.buttons(), Qt.NoModifier,\n                event.phase(), event.inverted(), Qt.MouseEventSynthesizedByApplication\n            )\n            event.accept()\n            super().wheelEvent(new_event)\n        else:\n            super().wheelEvent(event)\n\n\nclass BarRatioTableModel(PyTableModel):\n    \"\"\"A model for displaying python tables.\n    Adds a BarRatioRole that returns Data, normalized between the extremes.\n    NaNs are listed last when sorting.\"\"\"\n\n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n        self._extremes = {}\n\n    def data(self, index, role=Qt.DisplayRole):\n        if role == BarRatioRole and index.isValid():\n            value = super().data(index, Qt.EditRole)\n            if not isinstance(value, float):\n                return None\n            vmin, vmax = self._extremes.get(index.column(), (-np.inf, np.inf))\n            value = (value - vmin) / ((vmax - vmin) or 1)\n            return value\n\n        if role == Qt.DisplayRole and index.column() != 0:\n            role = Qt.EditRole\n\n        value = super().data(index, role)\n\n        # Display nothing for non-existent attr value counts in column 1\n        if role == Qt.EditRole \\\n                and index.column() == 1 and np.isnan(value):\n            return ''\n\n        return value\n\n    def headerData(self, section, orientation, role=Qt.DisplayRole):\n        if role == Qt.InitialSortOrderRole:\n            return Qt.DescendingOrder if section > 0 else Qt.AscendingOrder\n        return super().headerData(section, orientation, role)\n\n    def setExtremesFrom(self, column, values):\n        \"\"\"Set extremes for column's ratio bars from values\"\"\"\n        try:\n            with warnings.catch_warnings():\n                warnings.filterwarnings(\n                    \"ignore\", \".*All-NaN slice encountered.*\", RuntimeWarning)\n                vmin = np.nanmin(values)\n            if np.isnan(vmin):\n                raise TypeError\n        except TypeError:\n            vmin, vmax = -np.inf, np.inf\n        else:\n            vmax = np.nanmax(values)\n        self._extremes[column] = (vmin, vmax)\n\n    def resetSorting(self, yes_reset=False):\n        # pylint: disable=arguments-differ\n        \"\"\"We don't want to invalidate our sort proxy model everytime we\n        wrap a new list. Our proxymodel only invalidates explicitly\n        (i.e. when new data is set)\"\"\"\n        if yes_reset:\n            super().resetSorting()\n\n    def _argsortData(self, data, order):\n        if data.dtype not in (float, int):\n            data = np.char.lower(data)\n        indices = np.argsort(data, kind='mergesort')\n        if order == Qt.DescendingOrder:\n            indices = indices[::-1]\n            if data.dtype == float:\n                # Always sort NaNs last\n                return np.roll(indices, -np.isnan(data).sum())\n        return indices\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**: ListView does not clear variable when all items are unselected

**Description**

When all items in a `ListView` are unselected, the associated variable is not cleared and still holds the last selected value. This causes inconsistencies in the application state, where no items appear selected, but the variable retains an outdated value.

**Example Code**

```python
def test_select_callback(self):
    widget.foo = [b]
    sel_model.clear()
    # Expected widget.foo to be []
    # Actual widget.foo is [b]
```

**Expected Behavior**

After clearing all selections in the `ListView`, the `widget.foo` variable should be an empty list (`[]`).

**Actual Behavior**

The `widget.foo` variable still contains the last selected item (`[b]`) even after all selections are cleared.

[/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/gui.py
"""
Wrappers for controls used in widgets
"""
import logging
import sys
import warnings
import weakref
from collections.abc import Sequence

import math
import numpy as np

from AnyQt import QtWidgets, QtCore, QtGui
from AnyQt.QtCore import Qt, QSize, QItemSelection, QSortFilterProxyModel
from AnyQt.QtGui import QColor, QWheelEvent
from AnyQt.QtWidgets import QWidget, QListView, QComboBox

from orangewidget.utils.itemdelegates import (
    BarItemDataDelegate as _BarItemDataDelegate
)
# re-export relevant objects
from orangewidget.gui import (
    OWComponent, OrangeUserRole, TableView, resource_filename,
    miscellanea, setLayout, separator, rubber, widgetBox, hBox, vBox,
    comboBox as gui_comboBox,
    indentedBox, widgetLabel, label, spin, doubleSpin, checkBox, lineEdit,
    button, toolButton, radioButtons, radioButtonsInBox, appendRadioButton,
    hSlider, labeledSlider, valueSlider, auto_commit, auto_send, auto_apply,
    deferred,

    # ItemDataRole's
    BarRatioRole, BarBrushRole, SortOrderRole, LinkRole,

    IndicatorItemDelegate, BarItemDelegate, LinkStyledItemDelegate,
    ColoredBarItemDelegate, HorizontalGridDelegate, VerticalItemDelegate,
    VerticalLabel, tabWidget, createTabPage, table, tableItem,
    VisibleHeaderSectionContextEventFilter,
    checkButtonOffsetHint, toolButtonSizeHint, FloatSlider,
    CalendarWidgetWithTime, DateTimeEditWCalendarTime,
    ControlGetter, VerticalScrollArea, ProgressBar,
    ControlledCallback, ControlledCallFront, ValueCallback, connectControl,
    is_macstyle
)
from orangewidget.utils.itemmodels import PyTableModel

try:
    # Some Orange widgets might expect this here
    # pylint: disable=unused-import
    from Orange.widgets.utils.webview import WebviewWidget
except ImportError:
    pass  # Neither WebKit nor WebEngine are available

import Orange.data
from Orange.widgets.utils import getdeepattr, vartype
from Orange.data import \
    ContinuousVariable, StringVariable, TimeVariable, DiscreteVariable, \
    Variable, Value

__all__ = [
    # Re-exported
    "OWComponent", "OrangeUserRole", "TableView", "resource_filename",
    "miscellanea", "setLayout", "separator", "rubber",
    "widgetBox", "hBox", "vBox", "indentedBox",
    "widgetLabel", "label", "spin", "doubleSpin",
    "checkBox", "lineEdit", "button", "toolButton", "comboBox",
    "radioButtons", "radioButtonsInBox", "appendRadioButton",
    "hSlider", "labeledSlider", "valueSlider",
    "auto_commit", "auto_send", "auto_apply", "ProgressBar",
    "VerticalLabel", "tabWidget", "createTabPage", "table", "tableItem",
    "VisibleHeaderSectionContextEventFilter", "checkButtonOffsetHint",
    "toolButtonSizeHint", "FloatSlider", "ControlGetter",  "VerticalScrollArea",
    "CalendarWidgetWithTime", "DateTimeEditWCalendarTime",
    "BarRatioRole", "BarBrushRole", "SortOrderRole", "LinkRole",
    "BarItemDelegate", "IndicatorItemDelegate", "LinkStyledItemDelegate",
    "ColoredBarItemDelegate", "HorizontalGridDelegate", "VerticalItemDelegate",
    "ValueCallback", 'is_macstyle',
    # Defined here
    "createAttributePixmap", "attributeIconDict", "attributeItem",
    "listView", "ListViewWithSizeHint", "listBox", "OrangeListBox",
    "TableValueRole", "TableClassValueRole", "TableDistribution",
    "TableVariable", "TableBarItem", "palette_combo_box", "BarRatioTableModel"
]


log = logging.getLogger(__name__)


def palette_combo_box(initial_palette):
    from Orange.widgets.utils import itemmodels
    cb = QComboBox()
    model = itemmodels.ContinuousPalettesModel()
    cb.setModel(model)
    cb.setCurrentIndex(model.indexOf(initial_palette))
    cb.setIconSize(QSize(64, 16))
    return cb


def createAttributePixmap(char, background=Qt.black, color=Qt.white):
    """
    Create a QIcon with a given character. The icon is 13 pixels high and wide.

    :param char: The character that is printed in the icon
    :type char: str
    :param background: the background color (default: black)
    :type background: QColor
    :param color: the character color (default: white)
    :type color: QColor
    :rtype: QIcon
    """
    icon = QtGui.QIcon()
    for size in (13, 16, 18, 20, 22, 24, 28, 32, 64):
        pixmap = QtGui.QPixmap(size, size)
        pixmap.fill(Qt.transparent)
        painter = QtGui.QPainter()
        painter.begin(pixmap)
        painter.setRenderHints(painter.Antialiasing | painter.TextAntialiasing |
                               painter.SmoothPixmapTransform)
        painter.setPen(background)
        painter.setBrush(background)
        margin = 1 + size // 16
        text_margin = size // 20
        rect = QtCore.QRectF(margin, margin,
                             size - 2 * margin, size - 2 * margin)
        painter.drawRoundedRect(rect, 30.0, 30.0, Qt.RelativeSize)
        painter.setPen(color)
        font = painter.font()  # type: QtGui.QFont
        font.setPixelSize(size - 2 * margin - 2 * text_margin)
        painter.setFont(font)
        painter.drawText(rect, Qt.AlignCenter, char)
        painter.end()
        icon.addPixmap(pixmap)
    return icon


class __AttributeIconDict(dict):
    def __getitem__(self, key):
        if not self:
            for tpe, char, col in ((vartype(ContinuousVariable("c")),
                                    "N", (202, 0, 32)),
                                   (vartype(DiscreteVariable("d")),
                                    "C", (26, 150, 65)),
                                   (vartype(StringVariable("s")),
                                    "S", (0, 0, 0)),
                                   (vartype(TimeVariable("t")),
                                    "T", (68, 170, 255)),
                                   (-1, "?", (128, 128, 128))):
                self[tpe] = createAttributePixmap(char, QtGui.QColor(*col))
        if key not in self:
            key = vartype(key) if isinstance(key, Variable) else -1
        return super().__getitem__(key)


#: A dict that returns icons for different attribute types. The dict is
#: constructed on first use since icons cannot be created before initializing
#: the application.
#:
#: Accepted keys are variable type codes and instances
#: of :obj:`Orange.data.Variable`: `attributeIconDict[var]` will give the
#: appropriate icon for variable `var` or a question mark if the type is not
#: recognized
attributeIconDict = __AttributeIconDict()


def attributeItem(var):
    """
    Construct a pair (icon, name) for inserting a variable into a combo or
    list box

    :param var: variable
    :type var: Orange.data.Variable
    :rtype: tuple with QIcon and str
    """
    return attributeIconDict[var], var.name


class ListViewWithSizeHint(QListView):
    def __init__(self, *args, preferred_size=None, **kwargs):
        super().__init__(*args, **kwargs)
        if isinstance(preferred_size, tuple):
            preferred_size = QSize(*preferred_size)
        self.preferred_size = preferred_size

    def sizeHint(self):
        return self.preferred_size if self.preferred_size is not None \
            else super().sizeHint()


def listView(widget, master, value=None, model=None, box=None, callback=None,
             sizeHint=None, *, viewType=ListViewWithSizeHint, **misc):
    if box:
        bg = vBox(widget, box, addToLayout=False)
    else:
        bg = widget
    view = viewType(preferred_size=sizeHint)
    if isinstance(view.model(), QSortFilterProxyModel):
        view.model().setSourceModel(model)
    else:
        view.setModel(model)
    if value is not None:
        connectControl(master, value, callback,
                       view.selectionModel().selectionChanged,
                       CallFrontListView(view),
                       CallBackListView(model, view, master, value))
    misc.setdefault('uniformItemSizes', True)
    miscellanea(view, bg, widget, **misc)
    return view


def listBox(widget, master, value=None, labels=None, box=None, callback=None,
            selectionMode=QtWidgets.QListWidget.SingleSelection,
            enableDragDrop=False, dragDropCallback=None,
            dataValidityCallback=None, sizeHint=None, **misc):
    """
    Insert a list box.

    The value with which the box's value synchronizes (`master.<value>`)
    is a list of indices of selected items.

    :param widget: the widget into which the box is inserted
    :type widget: QWidget or None
    :param master: master widget
    :type master: OWWidget or OWComponent
    :param value: the name of the master's attribute with which the value is
        synchronized (list of ints - indices of selected items)
    :type value: str
    :param labels: the name of the master's attribute with the list of items
        (as strings or tuples with icon and string)
    :type labels: str
    :param box: tells whether the widget has a border, and its label
    :type box: int or str or None
    :param callback: a function that is called when the selection state is
        changed
    :type callback: function
    :param selectionMode: selection mode - single, multiple etc
    :type selectionMode: QAbstractItemView.SelectionMode
    :param enableDragDrop: flag telling whether drag and drop is available
    :type enableDragDrop: bool
    :param dragDropCallback: callback function on drop event
    :type dragDropCallback: function
    :param dataValidityCallback: function that check the validity on enter
        and move event; it should return either `ev.accept()` or `ev.ignore()`.
    :type dataValidityCallback: function
    :param sizeHint: size hint
    :type sizeHint: QSize
    :rtype: OrangeListBox
    """
    if box:
        bg = hBox(widget, box, addToLayout=False)
    else:
        bg = widget
    lb = OrangeListBox(master, enableDragDrop, dragDropCallback,
                       dataValidityCallback, sizeHint, bg)
    lb.setSelectionMode(selectionMode)
    lb.ogValue = value
    lb.ogLabels = labels
    lb.ogMaster = master

    if labels is not None:
        setattr(master, labels, getdeepattr(master, labels))
        master.connect_control(labels, CallFrontListBoxLabels(lb))
    if value is not None:
        clist = getdeepattr(master, value)
        if not isinstance(clist, (int, ControlledList)):
            clist = ControlledList(clist, lb)
            master.__setattr__(value, clist)
        setattr(master, value, clist)
        connectControl(master, value, callback, lb.itemSelectionChanged,
                       CallFrontListBox(lb), CallBackListBox(lb, master))

    miscellanea(lb, bg, widget, **misc)
    return lb


class OrangeListBox(QtWidgets.QListWidget):
    """
    List box with drag and drop functionality. Function :obj:`listBox`
    constructs instances of this class; do not use the class directly.

    .. attribute:: master

        The widget into which the listbox is inserted.

    .. attribute:: ogLabels

        The name of the master's attribute that holds the strings with items
        in the list box.

    .. attribute:: ogValue

        The name of the master's attribute that holds the indices of selected
        items.

    .. attribute:: enableDragDrop

        A flag telling whether drag-and-drop is enabled.

    .. attribute:: dragDropCallback

        A callback that is called at the end of drop event.

    .. attribute:: dataValidityCallback

        A callback that is called on dragEnter and dragMove events and returns
        either `ev.accept()` or `ev.ignore()`.

    .. attribute:: defaultSizeHint

        The size returned by the `sizeHint` method.
    """
    def __init__(self, master, enableDragDrop=False, dragDropCallback=None,
                 dataValidityCallback=None, sizeHint=None, *args):
        """
        :param master: the master widget
        :type master: OWWidget or OWComponent
        :param enableDragDrop: flag telling whether drag and drop is enabled
        :type enableDragDrop: bool
        :param dragDropCallback: callback for the end of drop event
        :type dragDropCallback: function
        :param dataValidityCallback: callback that accepts or ignores dragEnter
            and dragMove events
        :type dataValidityCallback: function with one argument (event)
        :param sizeHint: size hint
        :type sizeHint: QSize
        :param args: optional arguments for the inherited constructor
        """
        self.master = master
        super().__init__(*args)
        self.drop_callback = dragDropCallback
        self.valid_data_callback = dataValidityCallback
        if not sizeHint:
            self.size_hint = QtCore.QSize(150, 100)
        else:
            self.size_hint = sizeHint
        if enableDragDrop:
            self.setDragEnabled(True)
            self.setAcceptDrops(True)
            self.setDropIndicatorShown(True)

    def sizeHint(self):
        return self.size_hint

    def minimumSizeHint(self):
        return self.size_hint

    def dragEnterEvent(self, event):
        super().dragEnterEvent(event)
        if self.valid_data_callback:
            self.valid_data_callback(event)
        elif isinstance(event.source(), OrangeListBox):
            event.setDropAction(Qt.MoveAction)
            event.accept()
        else:
            event.ignore()

    def dropEvent(self, event):
        event.setDropAction(Qt.MoveAction)
        super().dropEvent(event)

        items = self.update_master()
        if event.source() is not self:
            event.source().update_master(exclude=items)

        if self.drop_callback:
            self.drop_callback()

    def update_master(self, exclude=()):
        control_list = [self.item(i).data(Qt.UserRole)
                        for i in range(self.count())
                        if self.item(i).data(Qt.UserRole) not in exclude]
        if self.ogLabels:
            master_list = getattr(self.master, self.ogLabels)

            if master_list != control_list:
                setattr(self.master, self.ogLabels, control_list)
        return control_list

    def updateGeometries(self):
        # A workaround for a bug in Qt
        # (see: http://bugreports.qt.nokia.com/browse/QTBUG-14412)
        if getattr(self, "_updatingGeometriesNow", False):
            return
        self._updatingGeometriesNow = True
        try:
            return super().updateGeometries()
        finally:
            self._updatingGeometriesNow = False


class ControlledList(list):
    """
    A class derived from a list that is connected to a
    :obj:`QListBox`: the list contains indices of items that are
    selected in the list box. Changing the list content changes the
    selection in the list box.
    """
    def __init__(self, content, listBox=None):
        super().__init__(content if content is not None else [])
        # Controlled list is created behind the back by gui.listBox and
        # commonly used as a setting which gets synced into a GLOBAL
        # SettingsHandler and which keeps the OWWidget instance alive via a
        # reference in listBox (see gui.listBox)
        if listBox is not None:
            self.listBox = weakref.ref(listBox)
        else:
            self.listBox = lambda: None

    def __reduce__(self):
        # cannot pickle self.listBox, but can't discard it
        # (ControlledList may live on)
        import copyreg
        return copyreg._reconstructor, (list, list, ()), None, self.__iter__()

    # TODO ControllgedList.item2name is probably never used
    def item2name(self, item):
        item = self.listBox().labels[item]
        if isinstance(item, tuple):
            return item[1]
        else:
            return item

    def __setitem__(self, index, item):
        def unselect(i):
            try:
                item = self.listBox().item(i)
            except RuntimeError:  # Underlying C/C++ object has been deleted
                item = None
            if item is None:
                # Labels changed before clearing the selection: clear everything
                self.listBox().selectionModel().clear()
            else:
                item.setSelected(0)

        if isinstance(index, int):
            unselect(self[index])
            item.setSelected(1)
        else:
            for i in self[index]:
                unselect(i)
            for i in item:
                self.listBox().item(i).setSelected(1)
        super().__setitem__(index, item)

    def __delitem__(self, index):
        if isinstance(index, int):
            self.listBox().item(self[index]).setSelected(0)
        else:
            for i in self[index]:
                self.listBox().item(i).setSelected(0)
        super().__delitem__(index)

    def append(self, item):
        super().append(item)
        item.setSelected(1)

    def extend(self, items):
        super().extend(items)
        for i in items:
            self.listBox().item(i).setSelected(1)

    def insert(self, index, item):
        item.setSelected(1)
        super().insert(index, item)

    def pop(self, index=-1):
        i = super().pop(index)
        self.listBox().item(i).setSelected(0)

    def remove(self, item):
        item.setSelected(0)
        super().remove(item)


def comboBox(widget, master, value, box=None, label=None, labelWidth=None,
             orientation=Qt.Vertical, items=(), callback=None,
             sendSelectedValue=None, emptyString=None, editable=False,
             contentsLength=None, searchable=False, *, model=None,
             tooltips=None, **misc):
    if "valueType" in misc:
        del misc["valueType"]
        warnings.warn("Argument 'valueType' is deprecated and ignored",
                      DeprecationWarning)
    return gui_comboBox(
        widget, master, value, box, label, labelWidth, orientation, items,
        callback, sendSelectedValue, emptyString, editable,
        contentsLength, searchable, model=model, tooltips=tooltips, **misc)


comboBox.__doc__ = gui_comboBox.__doc__


class CallBackListView(ControlledCallback):
    def __init__(self, model, view, widget, attribute):
        super().__init__(widget, attribute)
        self.model = model
        self.view = view

    # triggered by selectionModel().selectionChanged()
    def __call__(self, *_):
        # This must be imported locally to avoid circular imports
        from Orange.widgets.utils.itemmodels import PyListModel

        selection = self.view.selectionModel().selection()
        if isinstance(self.view.model(), QSortFilterProxyModel):
            selection = self.view.model().mapSelectionToSource(selection)
        values = [i.row() for i in selection.indexes()]
        if values:
            # FIXME: irrespective of PyListModel check, this might/should always
            # callback with values!
            if isinstance(self.model, PyListModel):
                values = [self.model[i] for i in values]
            if self.view.selectionMode() == self.view.SingleSelection:
                values = values[0]
            self.acyclic_setattr(values)


class CallBackListBox:
    def __init__(self, control, widget):
        self.control = control
        self.widget = widget
        self.disabled = 0

    def __call__(self, *_):  # triggered by selectionChange()
        if not self.disabled and self.control.ogValue is not None:
            clist = getdeepattr(self.widget, self.control.ogValue)
            control = self.control
            selection = [i for i in range(control.count())
                         if control.item(i).isSelected()]
            if isinstance(clist, int):
                self.widget.__setattr__(
                    self.control.ogValue, selection[0] if selection else None)
            else:
                list.__setitem__(clist, slice(0, len(clist)), selection)
                self.widget.__setattr__(self.control.ogValue, clist)


##############################################################################
# call fronts (change of the attribute value changes the related control)


class CallFrontListView(ControlledCallFront):
    def action(self, values):
        view = self.control
        model = view.model()
        if isinstance(view.model(), QSortFilterProxyModel):
            model = model.sourceModel()
        sel_model = view.selectionModel()

        if not isinstance(values, Sequence):
            values = [values]

        selection = QItemSelection()
        for value in values:
            index = None
            if not isinstance(value, int):
                if value is None or isinstance(value, Variable):
                    search_role = TableVariable
                else:
                    search_role = Qt.DisplayRole
                    value = str(value)
                for i in range(model.rowCount()):
                    if model.data(model.index(i), search_role) == value:
                        index = i
                        break
            else:
                index = value
            if index is not None:
                selection.select(model.index(index), model.index(index))
        if isinstance(view.model(), QSortFilterProxyModel):
            selection = view.model().mapSelectionFromSource(selection)
        sel_model.select(selection, sel_model.ClearAndSelect)


class CallFrontListBox(ControlledCallFront):
    def action(self, value):
        if value is not None:
            if isinstance(value, int):
                for i in range(self.control.count()):
                    self.control.item(i).setSelected(i == value)
            else:
                if not isinstance(value, ControlledList):
                    setattr(self.control.ogMaster, self.control.ogValue,
                            ControlledList(value, self.control))
                for i in range(self.control.count()):
                    shouldBe = i in value
                    if shouldBe != self.control.item(i).isSelected():
                        self.control.item(i).setSelected(shouldBe)


class CallFrontListBoxLabels(ControlledCallFront):
    unknownType = None

    def action(self, values):
        self.control.clear()
        if values:
            for value in values:
                if isinstance(value, tuple):
                    text, icon = value
                    if isinstance(icon, int):
                        item = QtWidgets.QListWidgetItem(attributeIconDict[icon], text)
                    else:
                        item = QtWidgets.QListWidgetItem(icon, text)
                elif isinstance(value, Variable):
                    item = QtWidgets.QListWidgetItem(*attributeItem(value))
                else:
                    item = QtWidgets.QListWidgetItem(value)

                item.setData(Qt.UserRole, value)
                self.control.addItem(item)


#: Role to retrieve Orange.data.Value
TableValueRole = next(OrangeUserRole)
#: Role to retrieve class value for a row
TableClassValueRole = next(OrangeUserRole)
# Role to retrieve distribution of a column
TableDistribution = next(OrangeUserRole)
#: Role to retrieve the column's variable
TableVariable = next(OrangeUserRole)


class TableBarItem(_BarItemDataDelegate):
    BarRole = next(OrangeUserRole)
    BarColorRole = next(OrangeUserRole)
    __slots__ = ("color_schema",)

    def __init__(
            self, parent=None, color=QColor(255, 170, 127), width=5,
            barFillRatioRole=BarRole, barColorRole=BarColorRole,
            color_schema=None,
            **kwargs
    ):
        """
        :param QObject parent: Parent object.
        :param QColor color: Default color of the distribution bar.
        :param color_schema:
            If not None it must be an instance of
            :class:`OWColorPalette.ColorPaletteGenerator` (note: this
            parameter, if set, overrides the ``color``)
        :type color_schema: :class:`OWColorPalette.ColorPaletteGenerator`
        """
        super().__init__(
            parent, color=color, penWidth=width,
            barFillRatioRole=barFillRatioRole, barColorRole=barColorRole,
            **kwargs
        )
        self.color_schema = color_schema

    def barColorData(self, index):
        class_ = self.cachedData(index, TableClassValueRole)
        if self.color_schema is not None \
                and isinstance(class_, Value) \
                and isinstance(class_.variable, DiscreteVariable) \
                and not math.isnan(class_):
            return self.color_schema[int(class_)]
        return self.cachedData(index, self.BarColorRole)


from Orange.widgets.utils.colorpalettes import patch_variable_colors
patch_variable_colors()


class HScrollStepMixin:
    """
    Overrides default TableView horizontal behavior (scrolls 1 page at a time)
    to a friendlier scroll speed akin to that of vertical scrolling.
    """

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.horizontalScrollBar().setSingleStep(20)

    def wheelEvent(self, event: QWheelEvent):
        if hasattr(event, "source") and \
                event.source() == Qt.MouseEventNotSynthesized and \
                (event.modifiers() & Qt.ShiftModifier and sys.platform == 'darwin' or
                 event.modifiers() & Qt.AltModifier and sys.platform != 'darwin'):
            new_event = QWheelEvent(
                event.pos(), event.globalPos(), event.pixelDelta(),
                event.angleDelta(), event.buttons(), Qt.NoModifier,
                event.phase(), event.inverted(), Qt.MouseEventSynthesizedByApplication
            )
            event.accept()
            super().wheelEvent(new_event)
        else:
            super().wheelEvent(event)


class BarRatioTableModel(PyTableModel):
    """A model for displaying python tables.
    Adds a BarRatioRole that returns Data, normalized between the extremes.
    NaNs are listed last when sorting."""

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self._extremes = {}

    def data(self, index, role=Qt.DisplayRole):
        if role == BarRatioRole and index.isValid():
            value = super().data(index, Qt.EditRole)
            if not isinstance(value, float):
                return None
            vmin, vmax = self._extremes.get(index.column(), (-np.inf, np.inf))
            value = (value - vmin) / ((vmax - vmin) or 1)
            return value

        if role == Qt.DisplayRole and index.column() != 0:
            role = Qt.EditRole

        value = super().data(index, role)

        # Display nothing for non-existent attr value counts in column 1
        if role == Qt.EditRole \
                and index.column() == 1 and np.isnan(value):
            return ''

        return value

    def headerData(self, section, orientation, role=Qt.DisplayRole):
        if role == Qt.InitialSortOrderRole:
            return Qt.DescendingOrder if section > 0 else Qt.AscendingOrder
        return super().headerData(section, orientation, role)

    def setExtremesFrom(self, column, values):
        """Set extremes for column's ratio bars from values"""
        try:
            with warnings.catch_warnings():
                warnings.filterwarnings(
                    "ignore", ".*All-NaN slice encountered.*", RuntimeWarning)
                vmin = np.nanmin(values)
            if np.isnan(vmin):
                raise TypeError
        except TypeError:
            vmin, vmax = -np.inf, np.inf
        else:
            vmax = np.nanmax(values)
        self._extremes[column] = (vmin, vmax)

    def resetSorting(self, yes_reset=False):
        # pylint: disable=arguments-differ
        """We don't want to invalidate our sort proxy model everytime we
        wrap a new list. Our proxymodel only invalidates explicitly
        (i.e. when new data is set)"""
        if yes_reset:
            super().resetSorting()

    def _argsortData(self, data, order):
        if data.dtype not in (float, int):
            data = np.char.lower(data)
        indices = np.argsort(data, kind='mergesort')
        if order == Qt.DescendingOrder:
            indices = indices[::-1]
            if data.dtype == float:
                # Always sort NaNs last
                return np.roll(indices, -np.isnan(data).sum())
        return indices

```
--- 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